2614 lines
124 KiB
TypeScript
2614 lines
124 KiB
TypeScript
/* Metro module 7224; source: lib/uploader/native/CloudUploader.tsx; dependencies: [5, 6, 7, 15, 17, 102, 18, 27, 661, 4503, 3, 7144, 1244, 4697, 4660, 4692, 7225, 477, 7226, 4648, 4650, 22, 7227, 2] */
|
|
import Module00005 from '../../../by-id/module-00005.js'; /* Metro dependency 5 */
|
|
import ClassCallCheck from '../../../by-id/module-00006-ClassCallCheck.js'; /* Metro dependency 6 */
|
|
import CreateClass from '../../../by-id/module-00007-CreateClass.js'; /* Metro dependency 7 */
|
|
import PossibleConstructorReturn from '../../../by-id/module-00015-PossibleConstructorReturn.js'; /* Metro dependency 15 */
|
|
import Module00017 from '../../../by-id/module-00017.js'; /* Metro dependency 17 */
|
|
import Inherits from '../../../by-id/module-00018-Inherits.js'; /* Metro dependency 18 */
|
|
import Module00102 from '../../../by-id/module-00102.js'; /* Metro dependency 102 */
|
|
import * as FileImportTrackerModule from '../../../by-id/module-00002-FileImportTracker.js'; /* Metro dependency 2 */
|
|
import * as ReactNativeModule from '../../../by-id/module-00027-ReactNative.js'; /* Metro dependency 27 */
|
|
import * as UploadModule from '../Upload.tsx'; /* Metro dependency 4650 */
|
|
|
|
function _fun57807(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#57807, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7402:6, offset: 0x016b665d, size: 416 bytes, params: 8, frame: 21
|
|
const env0_0 = require;
|
|
const _arrayLikeToArray_57810 = function(a0, a1) {
|
|
var r0;
|
|
var r1;
|
|
var r2;
|
|
var value3;
|
|
var length;
|
|
var value5;
|
|
var value = undefined;
|
|
var value2 = value == null;
|
|
reducibleJoin2: while (true) {
|
|
if (value2) {
|
|
r0 = value2;
|
|
break reducibleJoin2;
|
|
}
|
|
value3 = value > a0.length;
|
|
r0 = value3;
|
|
break reducibleJoin2;
|
|
}
|
|
reducibleJoin4: while (true) {
|
|
if (r0) {
|
|
length = a0.length;
|
|
r1 = length;
|
|
break reducibleJoin4;
|
|
}
|
|
r1 = value;
|
|
break reducibleJoin4;
|
|
}
|
|
value = (0, global.Array)(r1);
|
|
var value4 = 0;
|
|
if (value4 < r1) {
|
|
r2 = value4;
|
|
reducibleLoop5: while (true) {
|
|
value[r2] = a0[r2];
|
|
value5 = typeof r2 === 'bigint' ? r2 + 1n : +r2 + 1;
|
|
if (value5 < r1) {
|
|
r2 = value5;
|
|
continue reducibleLoop5;
|
|
}
|
|
break reducibleLoop5;
|
|
}
|
|
}
|
|
return value;
|
|
};
|
|
const Object = global.Object;
|
|
Object.defineProperty(exports, '__esModule', {value: true});
|
|
let value = ReactNativeModule;
|
|
const NativeEventEmitter = value.NativeEventEmitter;
|
|
const NativeModules = value.NativeModules;
|
|
value = require(661) /* metro dependency 661: Constants */;
|
|
const env0_10 = value.AbortCodes;
|
|
const env0_11 = value.NOOP;
|
|
value = require(4503) /* metro dependency 4503: MessageConstants */;
|
|
const env0_12 = value.DEFAULT_MOBILE_PRE_COMPRESSION_MAX_ATTACHMENT_SIZE;
|
|
const env0_13 = value.FileUploadErrorTypes;
|
|
value = importDefault(3) /* metro dependency 3: Logger */;
|
|
value = new value('CloudUploader(Native).tsx');
|
|
const MediaManager = NativeModules.MediaManager;
|
|
let nativeEventEmitter = new NativeEventEmitter(MediaManager);
|
|
nativeEventEmitter = importDefault(7227) /* metro dependency 7227: UploaderBase */;
|
|
nativeEventEmitter = _fun57814(nativeEventEmitter);
|
|
(FileImportTrackerModule).fileFinishedImporting('lib/uploader/native/CloudUploader.tsx');
|
|
exports.default = nativeEventEmitter;
|
|
function _createForOfIteratorHelperLoose_57808(a0, a1) { // fn#57808, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7402:348, offset: 0x016b67fd, size: 370 bytes, params: 3, frame: 20
|
|
var r6;
|
|
var r9;
|
|
var r5;
|
|
var value3;
|
|
var regexp;
|
|
const env0_0 = a0;
|
|
const Symbol = global.Symbol;
|
|
let value = typeof Symbol !== 'undefined';
|
|
let r1 = value && a0[global.Symbol.iterator];
|
|
r1 = !r1 ? a0['@@iterator'] : r1;
|
|
if (r1) {
|
|
value = r1.call(a0);
|
|
return value.next.bind(value);
|
|
}
|
|
const Array = global.Array;
|
|
if (Array.isArray(a0)) {
|
|
if (r1) {
|
|
}
|
|
return _fun57809;
|
|
}
|
|
value = undefined;
|
|
if (a0) {
|
|
if (typeof a0 === 'string') {
|
|
value = _arrayLikeToArray_57810(a0, value);
|
|
r5 = value;
|
|
} else {
|
|
value3 = ({}).toString.call(a0).slice(8, -1);
|
|
r6 = value3 === 'Object' && a0.constructor;
|
|
r9 = r6 ? a0.constructor.name : value3;
|
|
if (r9 === 'Map') {
|
|
r6 = global.Array.from(a0);
|
|
} else if (r9 === 'Set') {
|
|
r6 = global.Array.from(a0);
|
|
} else if (r9 === 'Arguments') {
|
|
value = _arrayLikeToArray_57810(a0, value);
|
|
r6 = value;
|
|
} else {
|
|
regexp = RegExp('^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$', '');
|
|
if (regexp.test(r9)) {
|
|
value = _arrayLikeToArray_57810(a0, value);
|
|
r6 = value;
|
|
} else {
|
|
r6 = value;
|
|
}
|
|
}
|
|
r5 = r6;
|
|
}
|
|
} else {
|
|
r5 = value;
|
|
}
|
|
if (r5) {
|
|
if (r5) {
|
|
}
|
|
return _fun57809;
|
|
}
|
|
const TypeError = global.TypeError;
|
|
throw new TypeError('Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.');
|
|
function _fun57809() { // fn#57809, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7402:919, offset: 0x00c39d73, size: 69 bytes, params: 1, frame: 5
|
|
return env0_1 >= env0_0.length ? {done: true} : {done: false,
|
|
value: env0_0[typeof env0_1 === 'bigint' ? env0_1 : +env0_1]};
|
|
}
|
|
|
|
}
|
|
|
|
function _isNativeReflectConstruct_57811() { // fn#57811, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7402:1258, offset: 0x016b696f, size: 94 bytes, params: 1, frame: 18
|
|
var Boolean;
|
|
var prototype;
|
|
var valueOf;
|
|
var call;
|
|
var Reflect;
|
|
var construct;
|
|
var closure;
|
|
var value;
|
|
var error;
|
|
try {
|
|
Boolean = global.Boolean;
|
|
prototype = Boolean.prototype;
|
|
valueOf = prototype.valueOf;
|
|
call = valueOf.call;
|
|
Reflect = global.Reflect;
|
|
construct = Reflect.construct;
|
|
Boolean = global.Boolean;
|
|
closure = function() {
|
|
};
|
|
value = Reflect.apply(construct, Reflect, [Boolean, [], closure]);
|
|
value = Reflect.apply(call, valueOf, [value]);
|
|
var result = !value;
|
|
} catch (error) {
|
|
}
|
|
return (_isNativeReflectConstruct_57811_isNativeReflectConstruct = function() {
|
|
return !!result;
|
|
})();
|
|
}
|
|
|
|
function _fun57814(a0) { // fn#57814, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7402:1526, offset: 0x016b69cd, size: 150 bytes, params: 2, frame: 17
|
|
const CloudUploader2 = CloudUploader;
|
|
Inherits(CloudUploader2, a0);
|
|
const env0_1 = Module00005(_fun57817);
|
|
const items2 = [{key: 'uploadFiles', value: value_57827}];
|
|
const env0_0 = Module00005(_fun57829);
|
|
items2[1] = {key: 'startUpload', value: value_57832};
|
|
items2[2] = {key: 'observeCompressionProgress', value: value_57833};
|
|
return CreateClass(CloudUploader2, items2);
|
|
function CloudUploader(a0) { // fn#57815, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7402:1538, offset: 0x016b6a63, size: 202 bytes, params: 2, frame: 19
|
|
var r0;
|
|
var Reflect;
|
|
let value = copyRestArgs(0, undefined);
|
|
let binding = env1_4;
|
|
binding(this, CloudUploader);
|
|
const items2 = [];
|
|
arraySpread(items2, value, 0, items2);
|
|
value = env1_7(CloudUploader);
|
|
binding = env1_6;
|
|
if (_isNativeReflectConstruct_57811()) {
|
|
Reflect = global.Reflect;
|
|
value = Reflect.construct(value, items2, env1_7(this).constructor);
|
|
r0 = value;
|
|
} else {
|
|
value = value.apply(this, items2);
|
|
r0 = value;
|
|
}
|
|
value = binding(this, r0);
|
|
let Map = global.Map;
|
|
const value4 = Object.create(Map.prototype, {constructor: {value: Map}});
|
|
let map = new Map();
|
|
value.mediaEventSubscriptions = map instanceof Object ? map : value4;
|
|
Map = global.Map;
|
|
const value6 = Object.create(Map.prototype, {constructor: {value: Map}});
|
|
map = new Map();
|
|
value.uploadItems = map instanceof Object ? map : value6;
|
|
value.preCompressionFileSizes = [];
|
|
return value;
|
|
}
|
|
|
|
function* _fun57817(a0) { // fn#57817, original name: ?anon_0_, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7402:1924, offset: 0x016b6b36, size: 1007 bytes, params: 2, frame: 36
|
|
var environment;
|
|
var r12;
|
|
var r14;
|
|
var value7;
|
|
var object;
|
|
var _file;
|
|
var length;
|
|
var _handleStart;
|
|
var binding2;
|
|
var property;
|
|
var value8;
|
|
var getKestrelConfig;
|
|
var value9;
|
|
var files;
|
|
var value11;
|
|
var value12;
|
|
var done;
|
|
var value13;
|
|
var binding3;
|
|
var value14;
|
|
var getFileSize;
|
|
var item;
|
|
var uri;
|
|
var value15;
|
|
var value16;
|
|
var value17;
|
|
var preCompressionFileSizes;
|
|
var push;
|
|
var value18;
|
|
var binding4;
|
|
var value19;
|
|
var getUploadTarget;
|
|
var target;
|
|
var value20;
|
|
var Math;
|
|
var max;
|
|
var getMaxFileSize;
|
|
var channelId;
|
|
var value21;
|
|
var value22;
|
|
var value23;
|
|
var enabled;
|
|
var binding5;
|
|
var value24;
|
|
var getEffectiveKestrelLimit;
|
|
var value25;
|
|
var value26;
|
|
var value27;
|
|
var getMaxTotalAttachmentSize;
|
|
var value28;
|
|
var value29;
|
|
var value30;
|
|
var _handleError;
|
|
var ENTITY_TOO_LARGE;
|
|
var object2;
|
|
var PRECOMPRESSION_SUM_TOO_LARGE;
|
|
var object3;
|
|
var PRECOMPRESSION_INDIVIDUAL_FILE_TOO_LARGE;
|
|
var object4;
|
|
var log;
|
|
var id;
|
|
var HermesInternal;
|
|
var concat;
|
|
var value31;
|
|
var binding6;
|
|
var value32;
|
|
var enqueue;
|
|
var error;
|
|
var _handleException;
|
|
if (false) {
|
|
return undefined;
|
|
}
|
|
const env0_1 = a0;
|
|
value = environment.__proto__.__proto__;
|
|
let binding = env2_1;
|
|
const env0_3 = binding(env2_2[11]).backgroundTaskIdentifierInvalid;
|
|
this.once('start', env2_3(_fun57819));
|
|
let closure = onCompleteTask;
|
|
this.once('error', closure);
|
|
this.once('complete', closure);
|
|
const Promise = global.Promise;
|
|
const promise = new Promise(_fun57821);
|
|
try {
|
|
this.files = a0;
|
|
} catch (error) {
|
|
binding = env2_14;
|
|
log = binding.log;
|
|
id = this.id;
|
|
Reflect.apply(log, binding, ['' + id + ' failed in CloudUploader uploadFiles ' + error]);
|
|
this._handleException(error);
|
|
return promise;
|
|
}
|
|
try {
|
|
} catch (error) {
|
|
binding = env2_14;
|
|
log = binding.log;
|
|
id = this.id;
|
|
Reflect.apply(log, binding, ['' + id + ' failed in CloudUploader uploadFiles ' + error]);
|
|
this._handleException(error);
|
|
return promise;
|
|
}
|
|
try {
|
|
closure = _superPropGet_57824;
|
|
} catch (error) {
|
|
binding = env2_14;
|
|
log = binding.log;
|
|
id = this.id;
|
|
Reflect.apply(log, binding, ['' + id + ' failed in CloudUploader uploadFiles ' + error]);
|
|
this._handleException(error);
|
|
return promise;
|
|
}
|
|
try {
|
|
value7 = closure(dependencyMap, 'upload', this, 3);
|
|
} catch (error) {
|
|
binding = env2_14;
|
|
log = binding.log;
|
|
id = this.id;
|
|
Reflect.apply(log, binding, ['' + id + ' failed in CloudUploader uploadFiles ' + error]);
|
|
this._handleException(error);
|
|
return promise;
|
|
}
|
|
try {
|
|
object = [];
|
|
} catch (error) {
|
|
binding = env2_14;
|
|
log = binding.log;
|
|
id = this.id;
|
|
Reflect.apply(log, binding, ['' + id + ' failed in CloudUploader uploadFiles ' + error]);
|
|
this._handleException(error);
|
|
return promise;
|
|
}
|
|
try {
|
|
object[0] = a0;
|
|
} catch (error) {
|
|
binding = env2_14;
|
|
log = binding.log;
|
|
id = this.id;
|
|
Reflect.apply(log, binding, ['' + id + ' failed in CloudUploader uploadFiles ' + error]);
|
|
this._handleException(error);
|
|
return promise;
|
|
}
|
|
try {
|
|
value7(object);
|
|
} catch (error) {
|
|
binding = env2_14;
|
|
log = binding.log;
|
|
id = this.id;
|
|
Reflect.apply(log, binding, ['' + id + ' failed in CloudUploader uploadFiles ' + error]);
|
|
this._handleException(error);
|
|
return promise;
|
|
}
|
|
try {
|
|
_file = this._file;
|
|
} catch (error) {
|
|
binding = env2_14;
|
|
log = binding.log;
|
|
id = this.id;
|
|
Reflect.apply(log, binding, ['' + id + ' failed in CloudUploader uploadFiles ' + error]);
|
|
this._handleException(error);
|
|
return promise;
|
|
}
|
|
try {
|
|
length = a0.length;
|
|
} catch (error) {
|
|
binding = env2_14;
|
|
log = binding.log;
|
|
id = this.id;
|
|
Reflect.apply(log, binding, ['' + id + ' failed in CloudUploader uploadFiles ' + error]);
|
|
this._handleException(error);
|
|
return promise;
|
|
}
|
|
try {
|
|
_file.attachmentsCount = length;
|
|
} catch (error) {
|
|
binding = env2_14;
|
|
log = binding.log;
|
|
id = this.id;
|
|
Reflect.apply(log, binding, ['' + id + ' failed in CloudUploader uploadFiles ' + error]);
|
|
this._handleException(error);
|
|
return promise;
|
|
}
|
|
try {
|
|
_handleStart = this._handleStart;
|
|
} catch (error) {
|
|
binding = env2_14;
|
|
log = binding.log;
|
|
id = this.id;
|
|
Reflect.apply(log, binding, ['' + id + ' failed in CloudUploader uploadFiles ' + error]);
|
|
this._handleException(error);
|
|
return promise;
|
|
}
|
|
try {
|
|
Reflect.apply(_handleStart, this, [undefined]);
|
|
} catch (error) {
|
|
binding = env2_14;
|
|
log = binding.log;
|
|
id = this.id;
|
|
Reflect.apply(log, binding, ['' + id + ' failed in CloudUploader uploadFiles ' + error]);
|
|
this._handleException(error);
|
|
return promise;
|
|
}
|
|
try {
|
|
binding = env2_0;
|
|
} catch (error) {
|
|
binding = env2_14;
|
|
log = binding.log;
|
|
id = this.id;
|
|
Reflect.apply(log, binding, ['' + id + ' failed in CloudUploader uploadFiles ' + error]);
|
|
this._handleException(error);
|
|
return promise;
|
|
}
|
|
try {
|
|
binding2 = env2_2;
|
|
} catch (error) {
|
|
binding = env2_14;
|
|
log = binding.log;
|
|
id = this.id;
|
|
Reflect.apply(log, binding, ['' + id + ' failed in CloudUploader uploadFiles ' + error]);
|
|
this._handleException(error);
|
|
return promise;
|
|
}
|
|
try {
|
|
property = binding2[13];
|
|
} catch (error) {
|
|
binding = env2_14;
|
|
log = binding.log;
|
|
id = this.id;
|
|
Reflect.apply(log, binding, ['' + id + ' failed in CloudUploader uploadFiles ' + error]);
|
|
this._handleException(error);
|
|
return promise;
|
|
}
|
|
try {
|
|
value8 = binding(property);
|
|
} catch (error) {
|
|
binding = env2_14;
|
|
log = binding.log;
|
|
id = this.id;
|
|
Reflect.apply(log, binding, ['' + id + ' failed in CloudUploader uploadFiles ' + error]);
|
|
this._handleException(error);
|
|
return promise;
|
|
}
|
|
try {
|
|
getKestrelConfig = value8.getKestrelConfig;
|
|
} catch (error) {
|
|
binding = env2_14;
|
|
log = binding.log;
|
|
id = this.id;
|
|
Reflect.apply(log, binding, ['' + id + ' failed in CloudUploader uploadFiles ' + error]);
|
|
this._handleException(error);
|
|
return promise;
|
|
}
|
|
try {
|
|
object = {};
|
|
} catch (error) {
|
|
binding = env2_14;
|
|
log = binding.log;
|
|
id = this.id;
|
|
Reflect.apply(log, binding, ['' + id + ' failed in CloudUploader uploadFiles ' + error]);
|
|
this._handleException(error);
|
|
return promise;
|
|
}
|
|
try {
|
|
object.location = 'CloudUploader.native.uploadFiles';
|
|
} catch (error) {
|
|
binding = env2_14;
|
|
log = binding.log;
|
|
id = this.id;
|
|
Reflect.apply(log, binding, ['' + id + ' failed in CloudUploader uploadFiles ' + error]);
|
|
this._handleException(error);
|
|
return promise;
|
|
}
|
|
try {
|
|
value9 = Reflect.apply(getKestrelConfig, value8, [object]);
|
|
} catch (error) {
|
|
binding = env2_14;
|
|
log = binding.log;
|
|
id = this.id;
|
|
Reflect.apply(log, binding, ['' + id + ' failed in CloudUploader uploadFiles ' + error]);
|
|
this._handleException(error);
|
|
return promise;
|
|
}
|
|
const value10 = 0;
|
|
try {
|
|
binding = env2_16;
|
|
} catch (error) {
|
|
binding = env2_14;
|
|
log = binding.log;
|
|
id = this.id;
|
|
Reflect.apply(log, binding, ['' + id + ' failed in CloudUploader uploadFiles ' + error]);
|
|
this._handleException(error);
|
|
return promise;
|
|
}
|
|
try {
|
|
files = this.files;
|
|
} catch (error) {
|
|
binding = env2_14;
|
|
log = binding.log;
|
|
id = this.id;
|
|
Reflect.apply(log, binding, ['' + id + ' failed in CloudUploader uploadFiles ' + error]);
|
|
this._handleException(error);
|
|
return promise;
|
|
}
|
|
try {
|
|
value11 = binding(files);
|
|
} catch (error) {
|
|
binding = env2_14;
|
|
log = binding.log;
|
|
id = this.id;
|
|
Reflect.apply(log, binding, ['' + id + ' failed in CloudUploader uploadFiles ' + error]);
|
|
this._handleException(error);
|
|
return promise;
|
|
}
|
|
try {
|
|
value12 = value11();
|
|
} catch (error) {
|
|
binding = env2_14;
|
|
log = binding.log;
|
|
id = this.id;
|
|
Reflect.apply(log, binding, ['' + id + ' failed in CloudUploader uploadFiles ' + error]);
|
|
this._handleException(error);
|
|
return promise;
|
|
}
|
|
try {
|
|
done = value12.done;
|
|
} catch (error) {
|
|
binding = env2_14;
|
|
log = binding.log;
|
|
id = this.id;
|
|
Reflect.apply(log, binding, ['' + id + ' failed in CloudUploader uploadFiles ' + error]);
|
|
this._handleException(error);
|
|
return promise;
|
|
}
|
|
if (!done) {
|
|
r12 = value12;
|
|
r14 = value10;
|
|
reducibleLoop35: while (true) {
|
|
try {
|
|
value13 = r12.value;
|
|
} catch (error) {
|
|
binding = env2_14;
|
|
log = binding.log;
|
|
id = this.id;
|
|
HermesInternal = global.HermesInternal;
|
|
concat = HermesInternal.concat;
|
|
Reflect.apply(log, binding, ['' + id + ' failed in CloudUploader uploadFiles ' + error]);
|
|
_handleException = this._handleException;
|
|
Reflect.apply(_handleException, this, [error]);
|
|
return promise;
|
|
}
|
|
try {
|
|
binding = env2_0;
|
|
} catch (error) {
|
|
binding = env2_14;
|
|
log = binding.log;
|
|
id = this.id;
|
|
HermesInternal = global.HermesInternal;
|
|
concat = HermesInternal.concat;
|
|
Reflect.apply(log, binding, ['' + id + ' failed in CloudUploader uploadFiles ' + error]);
|
|
_handleException = this._handleException;
|
|
Reflect.apply(_handleException, this, [error]);
|
|
return promise;
|
|
}
|
|
try {
|
|
binding3 = env2_2;
|
|
} catch (error) {
|
|
binding = env2_14;
|
|
log = binding.log;
|
|
id = this.id;
|
|
HermesInternal = global.HermesInternal;
|
|
concat = HermesInternal.concat;
|
|
Reflect.apply(log, binding, ['' + id + ' failed in CloudUploader uploadFiles ' + error]);
|
|
_handleException = this._handleException;
|
|
Reflect.apply(_handleException, this, [error]);
|
|
return promise;
|
|
}
|
|
try {
|
|
property = binding3[14];
|
|
} catch (error) {
|
|
binding = env2_14;
|
|
log = binding.log;
|
|
id = this.id;
|
|
HermesInternal = global.HermesInternal;
|
|
concat = HermesInternal.concat;
|
|
Reflect.apply(log, binding, ['' + id + ' failed in CloudUploader uploadFiles ' + error]);
|
|
_handleException = this._handleException;
|
|
Reflect.apply(_handleException, this, [error]);
|
|
return promise;
|
|
}
|
|
try {
|
|
value14 = binding(property);
|
|
} catch (error) {
|
|
binding = env2_14;
|
|
log = binding.log;
|
|
id = this.id;
|
|
HermesInternal = global.HermesInternal;
|
|
concat = HermesInternal.concat;
|
|
Reflect.apply(log, binding, ['' + id + ' failed in CloudUploader uploadFiles ' + error]);
|
|
_handleException = this._handleException;
|
|
Reflect.apply(_handleException, this, [error]);
|
|
return promise;
|
|
}
|
|
try {
|
|
getFileSize = value14.getFileSize;
|
|
} catch (error) {
|
|
binding = env2_14;
|
|
log = binding.log;
|
|
id = this.id;
|
|
HermesInternal = global.HermesInternal;
|
|
concat = HermesInternal.concat;
|
|
Reflect.apply(log, binding, ['' + id + ' failed in CloudUploader uploadFiles ' + error]);
|
|
_handleException = this._handleException;
|
|
Reflect.apply(_handleException, this, [error]);
|
|
return promise;
|
|
}
|
|
try {
|
|
item = value13.item;
|
|
} catch (error) {
|
|
binding = env2_14;
|
|
log = binding.log;
|
|
id = this.id;
|
|
HermesInternal = global.HermesInternal;
|
|
concat = HermesInternal.concat;
|
|
Reflect.apply(log, binding, ['' + id + ' failed in CloudUploader uploadFiles ' + error]);
|
|
_handleException = this._handleException;
|
|
Reflect.apply(_handleException, this, [error]);
|
|
return promise;
|
|
}
|
|
try {
|
|
uri = item.uri;
|
|
} catch (error) {
|
|
binding = env2_14;
|
|
log = binding.log;
|
|
id = this.id;
|
|
HermesInternal = global.HermesInternal;
|
|
concat = HermesInternal.concat;
|
|
Reflect.apply(log, binding, ['' + id + ' failed in CloudUploader uploadFiles ' + error]);
|
|
_handleException = this._handleException;
|
|
Reflect.apply(_handleException, this, [error]);
|
|
return promise;
|
|
}
|
|
try {
|
|
value15 = Reflect.apply(getFileSize, value14, [uri]);
|
|
} catch (error) {
|
|
binding = env2_14;
|
|
log = binding.log;
|
|
id = this.id;
|
|
HermesInternal = global.HermesInternal;
|
|
concat = HermesInternal.concat;
|
|
Reflect.apply(log, binding, ['' + id + ' failed in CloudUploader uploadFiles ' + error]);
|
|
_handleException = this._handleException;
|
|
Reflect.apply(_handleException, this, [error]);
|
|
return promise;
|
|
}
|
|
yield value15;
|
|
try {
|
|
value16 = undefined;
|
|
value17 = false;
|
|
} catch (error) {
|
|
binding = env2_14;
|
|
log = binding.log;
|
|
id = this.id;
|
|
HermesInternal = global.HermesInternal;
|
|
concat = HermesInternal.concat;
|
|
Reflect.apply(log, binding, ['' + id + ' failed in CloudUploader uploadFiles ' + error]);
|
|
_handleException = this._handleException;
|
|
Reflect.apply(_handleException, this, [error]);
|
|
return promise;
|
|
}
|
|
if (value17) {
|
|
return value16;
|
|
}
|
|
try {
|
|
preCompressionFileSizes = this.preCompressionFileSizes;
|
|
} catch (error) {
|
|
binding = env2_14;
|
|
log = binding.log;
|
|
id = this.id;
|
|
HermesInternal = global.HermesInternal;
|
|
concat = HermesInternal.concat;
|
|
Reflect.apply(log, binding, ['' + id + ' failed in CloudUploader uploadFiles ' + error]);
|
|
_handleException = this._handleException;
|
|
Reflect.apply(_handleException, this, [error]);
|
|
return promise;
|
|
}
|
|
try {
|
|
push = preCompressionFileSizes.push;
|
|
} catch (error) {
|
|
binding = env2_14;
|
|
log = binding.log;
|
|
id = this.id;
|
|
HermesInternal = global.HermesInternal;
|
|
concat = HermesInternal.concat;
|
|
Reflect.apply(log, binding, ['' + id + ' failed in CloudUploader uploadFiles ' + error]);
|
|
_handleException = this._handleException;
|
|
Reflect.apply(_handleException, this, [error]);
|
|
return promise;
|
|
}
|
|
try {
|
|
Reflect.apply(push, preCompressionFileSizes, [value16]);
|
|
} catch (error) {
|
|
binding = env2_14;
|
|
log = binding.log;
|
|
id = this.id;
|
|
HermesInternal = global.HermesInternal;
|
|
concat = HermesInternal.concat;
|
|
Reflect.apply(log, binding, ['' + id + ' failed in CloudUploader uploadFiles ' + error]);
|
|
_handleException = this._handleException;
|
|
Reflect.apply(_handleException, this, [error]);
|
|
return promise;
|
|
}
|
|
try {
|
|
value13.preCompressionSize = value16;
|
|
} catch (error) {
|
|
binding = env2_14;
|
|
log = binding.log;
|
|
id = this.id;
|
|
HermesInternal = global.HermesInternal;
|
|
concat = HermesInternal.concat;
|
|
Reflect.apply(log, binding, ['' + id + ' failed in CloudUploader uploadFiles ' + error]);
|
|
_handleException = this._handleException;
|
|
Reflect.apply(_handleException, this, [error]);
|
|
return promise;
|
|
}
|
|
try {
|
|
value18 = r14 + value16;
|
|
} catch (error) {
|
|
binding = env2_14;
|
|
log = binding.log;
|
|
id = this.id;
|
|
HermesInternal = global.HermesInternal;
|
|
concat = HermesInternal.concat;
|
|
Reflect.apply(log, binding, ['' + id + ' failed in CloudUploader uploadFiles ' + error]);
|
|
_handleException = this._handleException;
|
|
Reflect.apply(_handleException, this, [error]);
|
|
return promise;
|
|
}
|
|
try {
|
|
_file = this._file;
|
|
} catch (error) {
|
|
binding = env2_14;
|
|
log = binding.log;
|
|
id = this.id;
|
|
HermesInternal = global.HermesInternal;
|
|
concat = HermesInternal.concat;
|
|
Reflect.apply(log, binding, ['' + id + ' failed in CloudUploader uploadFiles ' + error]);
|
|
_handleException = this._handleException;
|
|
Reflect.apply(_handleException, this, [error]);
|
|
return promise;
|
|
}
|
|
try {
|
|
_file.totalPreCompressionSize = value18;
|
|
} catch (error) {
|
|
binding = env2_14;
|
|
log = binding.log;
|
|
id = this.id;
|
|
HermesInternal = global.HermesInternal;
|
|
concat = HermesInternal.concat;
|
|
Reflect.apply(log, binding, ['' + id + ' failed in CloudUploader uploadFiles ' + error]);
|
|
_handleException = this._handleException;
|
|
Reflect.apply(_handleException, this, [error]);
|
|
return promise;
|
|
}
|
|
try {
|
|
_file = this._file;
|
|
} catch (error) {
|
|
binding = env2_14;
|
|
log = binding.log;
|
|
id = this.id;
|
|
HermesInternal = global.HermesInternal;
|
|
concat = HermesInternal.concat;
|
|
Reflect.apply(log, binding, ['' + id + ' failed in CloudUploader uploadFiles ' + error]);
|
|
_handleException = this._handleException;
|
|
Reflect.apply(_handleException, this, [error]);
|
|
return promise;
|
|
}
|
|
try {
|
|
_file.currentSize = value18;
|
|
} catch (error) {
|
|
binding = env2_14;
|
|
log = binding.log;
|
|
id = this.id;
|
|
HermesInternal = global.HermesInternal;
|
|
concat = HermesInternal.concat;
|
|
Reflect.apply(log, binding, ['' + id + ' failed in CloudUploader uploadFiles ' + error]);
|
|
_handleException = this._handleException;
|
|
Reflect.apply(_handleException, this, [error]);
|
|
return promise;
|
|
}
|
|
try {
|
|
binding = env2_0;
|
|
} catch (error) {
|
|
binding = env2_14;
|
|
log = binding.log;
|
|
id = this.id;
|
|
HermesInternal = global.HermesInternal;
|
|
concat = HermesInternal.concat;
|
|
Reflect.apply(log, binding, ['' + id + ' failed in CloudUploader uploadFiles ' + error]);
|
|
_handleException = this._handleException;
|
|
Reflect.apply(_handleException, this, [error]);
|
|
return promise;
|
|
}
|
|
try {
|
|
binding4 = env2_2;
|
|
} catch (error) {
|
|
binding = env2_14;
|
|
log = binding.log;
|
|
id = this.id;
|
|
HermesInternal = global.HermesInternal;
|
|
concat = HermesInternal.concat;
|
|
Reflect.apply(log, binding, ['' + id + ' failed in CloudUploader uploadFiles ' + error]);
|
|
_handleException = this._handleException;
|
|
Reflect.apply(_handleException, this, [error]);
|
|
return promise;
|
|
}
|
|
try {
|
|
property = binding4[15];
|
|
} catch (error) {
|
|
binding = env2_14;
|
|
log = binding.log;
|
|
id = this.id;
|
|
HermesInternal = global.HermesInternal;
|
|
concat = HermesInternal.concat;
|
|
Reflect.apply(log, binding, ['' + id + ' failed in CloudUploader uploadFiles ' + error]);
|
|
_handleException = this._handleException;
|
|
Reflect.apply(_handleException, this, [error]);
|
|
return promise;
|
|
}
|
|
try {
|
|
value19 = binding(property);
|
|
} catch (error) {
|
|
binding = env2_14;
|
|
log = binding.log;
|
|
id = this.id;
|
|
HermesInternal = global.HermesInternal;
|
|
concat = HermesInternal.concat;
|
|
Reflect.apply(log, binding, ['' + id + ' failed in CloudUploader uploadFiles ' + error]);
|
|
_handleException = this._handleException;
|
|
Reflect.apply(_handleException, this, [error]);
|
|
return promise;
|
|
}
|
|
try {
|
|
getUploadTarget = value19.getUploadTarget;
|
|
} catch (error) {
|
|
binding = env2_14;
|
|
log = binding.log;
|
|
id = this.id;
|
|
HermesInternal = global.HermesInternal;
|
|
concat = HermesInternal.concat;
|
|
Reflect.apply(log, binding, ['' + id + ' failed in CloudUploader uploadFiles ' + error]);
|
|
_handleException = this._handleException;
|
|
Reflect.apply(_handleException, this, [error]);
|
|
return promise;
|
|
}
|
|
try {
|
|
item = value13.item;
|
|
} catch (error) {
|
|
binding = env2_14;
|
|
log = binding.log;
|
|
id = this.id;
|
|
HermesInternal = global.HermesInternal;
|
|
concat = HermesInternal.concat;
|
|
Reflect.apply(log, binding, ['' + id + ' failed in CloudUploader uploadFiles ' + error]);
|
|
_handleException = this._handleException;
|
|
Reflect.apply(_handleException, this, [error]);
|
|
return promise;
|
|
}
|
|
try {
|
|
target = item.target;
|
|
} catch (error) {
|
|
binding = env2_14;
|
|
log = binding.log;
|
|
id = this.id;
|
|
HermesInternal = global.HermesInternal;
|
|
concat = HermesInternal.concat;
|
|
Reflect.apply(log, binding, ['' + id + ' failed in CloudUploader uploadFiles ' + error]);
|
|
_handleException = this._handleException;
|
|
Reflect.apply(_handleException, this, [error]);
|
|
return promise;
|
|
}
|
|
try {
|
|
value20 = Reflect.apply(getUploadTarget, value19, [target]);
|
|
} catch (error) {
|
|
binding = env2_14;
|
|
log = binding.log;
|
|
id = this.id;
|
|
HermesInternal = global.HermesInternal;
|
|
concat = HermesInternal.concat;
|
|
Reflect.apply(log, binding, ['' + id + ' failed in CloudUploader uploadFiles ' + error]);
|
|
_handleException = this._handleException;
|
|
Reflect.apply(_handleException, this, [error]);
|
|
return promise;
|
|
}
|
|
try {
|
|
Math = global.Math;
|
|
} catch (error) {
|
|
binding = env2_14;
|
|
log = binding.log;
|
|
id = this.id;
|
|
HermesInternal = global.HermesInternal;
|
|
concat = HermesInternal.concat;
|
|
Reflect.apply(log, binding, ['' + id + ' failed in CloudUploader uploadFiles ' + error]);
|
|
_handleException = this._handleException;
|
|
Reflect.apply(_handleException, this, [error]);
|
|
return promise;
|
|
}
|
|
try {
|
|
max = Math.max;
|
|
} catch (error) {
|
|
binding = env2_14;
|
|
log = binding.log;
|
|
id = this.id;
|
|
HermesInternal = global.HermesInternal;
|
|
concat = HermesInternal.concat;
|
|
Reflect.apply(log, binding, ['' + id + ' failed in CloudUploader uploadFiles ' + error]);
|
|
_handleException = this._handleException;
|
|
Reflect.apply(_handleException, this, [error]);
|
|
return promise;
|
|
}
|
|
try {
|
|
getMaxFileSize = value20.getMaxFileSize;
|
|
} catch (error) {
|
|
binding = env2_14;
|
|
log = binding.log;
|
|
id = this.id;
|
|
HermesInternal = global.HermesInternal;
|
|
concat = HermesInternal.concat;
|
|
Reflect.apply(log, binding, ['' + id + ' failed in CloudUploader uploadFiles ' + error]);
|
|
_handleException = this._handleException;
|
|
Reflect.apply(_handleException, this, [error]);
|
|
return promise;
|
|
}
|
|
try {
|
|
channelId = value13.channelId;
|
|
} catch (error) {
|
|
binding = env2_14;
|
|
log = binding.log;
|
|
id = this.id;
|
|
HermesInternal = global.HermesInternal;
|
|
concat = HermesInternal.concat;
|
|
Reflect.apply(log, binding, ['' + id + ' failed in CloudUploader uploadFiles ' + error]);
|
|
_handleException = this._handleException;
|
|
Reflect.apply(_handleException, this, [error]);
|
|
return promise;
|
|
}
|
|
try {
|
|
value21 = Reflect.apply(getMaxFileSize, value20, [channelId]);
|
|
} catch (error) {
|
|
binding = env2_14;
|
|
log = binding.log;
|
|
id = this.id;
|
|
HermesInternal = global.HermesInternal;
|
|
concat = HermesInternal.concat;
|
|
Reflect.apply(log, binding, ['' + id + ' failed in CloudUploader uploadFiles ' + error]);
|
|
_handleException = this._handleException;
|
|
Reflect.apply(_handleException, this, [error]);
|
|
return promise;
|
|
}
|
|
try {
|
|
binding = env2_12;
|
|
} catch (error) {
|
|
binding = env2_14;
|
|
log = binding.log;
|
|
id = this.id;
|
|
HermesInternal = global.HermesInternal;
|
|
concat = HermesInternal.concat;
|
|
Reflect.apply(log, binding, ['' + id + ' failed in CloudUploader uploadFiles ' + error]);
|
|
_handleException = this._handleException;
|
|
Reflect.apply(_handleException, this, [error]);
|
|
return promise;
|
|
}
|
|
try {
|
|
value22 = Reflect.apply(max, Math, [value21, binding]);
|
|
} catch (error) {
|
|
binding = env2_14;
|
|
log = binding.log;
|
|
id = this.id;
|
|
HermesInternal = global.HermesInternal;
|
|
concat = HermesInternal.concat;
|
|
Reflect.apply(log, binding, ['' + id + ' failed in CloudUploader uploadFiles ' + error]);
|
|
_handleException = this._handleException;
|
|
Reflect.apply(_handleException, this, [error]);
|
|
return promise;
|
|
}
|
|
try {
|
|
value23 = value16 > value22;
|
|
} catch (error) {
|
|
binding = env2_14;
|
|
log = binding.log;
|
|
id = this.id;
|
|
HermesInternal = global.HermesInternal;
|
|
concat = HermesInternal.concat;
|
|
Reflect.apply(log, binding, ['' + id + ' failed in CloudUploader uploadFiles ' + error]);
|
|
_handleException = this._handleException;
|
|
Reflect.apply(_handleException, this, [error]);
|
|
return promise;
|
|
}
|
|
if (value23) {
|
|
try {
|
|
_handleError = this._handleError;
|
|
} catch (error) {
|
|
binding = env2_14;
|
|
log = binding.log;
|
|
id = this.id;
|
|
HermesInternal = global.HermesInternal;
|
|
concat = HermesInternal.concat;
|
|
Reflect.apply(log, binding, ['' + id + ' failed in CloudUploader uploadFiles ' + error]);
|
|
_handleException = this._handleException;
|
|
Reflect.apply(_handleException, this, [error]);
|
|
return promise;
|
|
}
|
|
try {
|
|
object = {};
|
|
} catch (error) {
|
|
binding = env2_14;
|
|
log = binding.log;
|
|
id = this.id;
|
|
HermesInternal = global.HermesInternal;
|
|
concat = HermesInternal.concat;
|
|
Reflect.apply(log, binding, ['' + id + ' failed in CloudUploader uploadFiles ' + error]);
|
|
_handleException = this._handleException;
|
|
Reflect.apply(_handleException, this, [error]);
|
|
return promise;
|
|
}
|
|
try {
|
|
binding = env2_10;
|
|
} catch (error) {
|
|
binding = env2_14;
|
|
log = binding.log;
|
|
id = this.id;
|
|
HermesInternal = global.HermesInternal;
|
|
concat = HermesInternal.concat;
|
|
Reflect.apply(log, binding, ['' + id + ' failed in CloudUploader uploadFiles ' + error]);
|
|
_handleException = this._handleException;
|
|
Reflect.apply(_handleException, this, [error]);
|
|
return promise;
|
|
}
|
|
try {
|
|
ENTITY_TOO_LARGE = binding.ENTITY_TOO_LARGE;
|
|
} catch (error) {
|
|
binding = env2_14;
|
|
log = binding.log;
|
|
id = this.id;
|
|
HermesInternal = global.HermesInternal;
|
|
concat = HermesInternal.concat;
|
|
Reflect.apply(log, binding, ['' + id + ' failed in CloudUploader uploadFiles ' + error]);
|
|
_handleException = this._handleException;
|
|
Reflect.apply(_handleException, this, [error]);
|
|
return promise;
|
|
}
|
|
try {
|
|
object.code = ENTITY_TOO_LARGE;
|
|
} catch (error) {
|
|
binding = env2_14;
|
|
log = binding.log;
|
|
id = this.id;
|
|
HermesInternal = global.HermesInternal;
|
|
concat = HermesInternal.concat;
|
|
Reflect.apply(log, binding, ['' + id + ' failed in CloudUploader uploadFiles ' + error]);
|
|
_handleException = this._handleException;
|
|
Reflect.apply(_handleException, this, [error]);
|
|
return promise;
|
|
}
|
|
try {
|
|
object4 = {};
|
|
} catch (error) {
|
|
binding = env2_14;
|
|
log = binding.log;
|
|
id = this.id;
|
|
HermesInternal = global.HermesInternal;
|
|
concat = HermesInternal.concat;
|
|
Reflect.apply(log, binding, ['' + id + ' failed in CloudUploader uploadFiles ' + error]);
|
|
_handleException = this._handleException;
|
|
Reflect.apply(_handleException, this, [error]);
|
|
return promise;
|
|
}
|
|
try {
|
|
binding = env2_13;
|
|
} catch (error) {
|
|
binding = env2_14;
|
|
log = binding.log;
|
|
id = this.id;
|
|
HermesInternal = global.HermesInternal;
|
|
concat = HermesInternal.concat;
|
|
Reflect.apply(log, binding, ['' + id + ' failed in CloudUploader uploadFiles ' + error]);
|
|
_handleException = this._handleException;
|
|
Reflect.apply(_handleException, this, [error]);
|
|
return promise;
|
|
}
|
|
try {
|
|
PRECOMPRESSION_INDIVIDUAL_FILE_TOO_LARGE = binding.PRECOMPRESSION_INDIVIDUAL_FILE_TOO_LARGE;
|
|
} catch (error) {
|
|
binding = env2_14;
|
|
log = binding.log;
|
|
id = this.id;
|
|
HermesInternal = global.HermesInternal;
|
|
concat = HermesInternal.concat;
|
|
Reflect.apply(log, binding, ['' + id + ' failed in CloudUploader uploadFiles ' + error]);
|
|
_handleException = this._handleException;
|
|
Reflect.apply(_handleException, this, [error]);
|
|
return promise;
|
|
}
|
|
try {
|
|
object4.type = PRECOMPRESSION_INDIVIDUAL_FILE_TOO_LARGE;
|
|
} catch (error) {
|
|
binding = env2_14;
|
|
log = binding.log;
|
|
id = this.id;
|
|
HermesInternal = global.HermesInternal;
|
|
concat = HermesInternal.concat;
|
|
Reflect.apply(log, binding, ['' + id + ' failed in CloudUploader uploadFiles ' + error]);
|
|
_handleException = this._handleException;
|
|
Reflect.apply(_handleException, this, [error]);
|
|
return promise;
|
|
}
|
|
try {
|
|
object.reason = object4;
|
|
} catch (error) {
|
|
binding = env2_14;
|
|
log = binding.log;
|
|
id = this.id;
|
|
HermesInternal = global.HermesInternal;
|
|
concat = HermesInternal.concat;
|
|
Reflect.apply(log, binding, ['' + id + ' failed in CloudUploader uploadFiles ' + error]);
|
|
_handleException = this._handleException;
|
|
Reflect.apply(_handleException, this, [error]);
|
|
return promise;
|
|
}
|
|
try {
|
|
Reflect.apply(_handleError, this, [object]);
|
|
} catch (error) {
|
|
binding = env2_14;
|
|
log = binding.log;
|
|
id = this.id;
|
|
HermesInternal = global.HermesInternal;
|
|
concat = HermesInternal.concat;
|
|
Reflect.apply(log, binding, ['' + id + ' failed in CloudUploader uploadFiles ' + error]);
|
|
_handleException = this._handleException;
|
|
Reflect.apply(_handleException, this, [error]);
|
|
return promise;
|
|
}
|
|
return promise;
|
|
}
|
|
try {
|
|
enabled = value9.enabled;
|
|
} catch (error) {
|
|
binding = env2_14;
|
|
log = binding.log;
|
|
id = this.id;
|
|
HermesInternal = global.HermesInternal;
|
|
concat = HermesInternal.concat;
|
|
Reflect.apply(log, binding, ['' + id + ' failed in CloudUploader uploadFiles ' + error]);
|
|
_handleException = this._handleException;
|
|
Reflect.apply(_handleException, this, [error]);
|
|
return promise;
|
|
}
|
|
if (enabled) {
|
|
try {
|
|
binding = env2_0;
|
|
} catch (error) {
|
|
binding = env2_14;
|
|
log = binding.log;
|
|
id = this.id;
|
|
HermesInternal = global.HermesInternal;
|
|
concat = HermesInternal.concat;
|
|
Reflect.apply(log, binding, ['' + id + ' failed in CloudUploader uploadFiles ' + error]);
|
|
_handleException = this._handleException;
|
|
Reflect.apply(_handleException, this, [error]);
|
|
return promise;
|
|
}
|
|
try {
|
|
binding5 = env2_2;
|
|
} catch (error) {
|
|
binding = env2_14;
|
|
log = binding.log;
|
|
id = this.id;
|
|
HermesInternal = global.HermesInternal;
|
|
concat = HermesInternal.concat;
|
|
Reflect.apply(log, binding, ['' + id + ' failed in CloudUploader uploadFiles ' + error]);
|
|
_handleException = this._handleException;
|
|
Reflect.apply(_handleException, this, [error]);
|
|
return promise;
|
|
}
|
|
try {
|
|
property = binding5[13];
|
|
} catch (error) {
|
|
binding = env2_14;
|
|
log = binding.log;
|
|
id = this.id;
|
|
HermesInternal = global.HermesInternal;
|
|
concat = HermesInternal.concat;
|
|
Reflect.apply(log, binding, ['' + id + ' failed in CloudUploader uploadFiles ' + error]);
|
|
_handleException = this._handleException;
|
|
Reflect.apply(_handleException, this, [error]);
|
|
return promise;
|
|
}
|
|
try {
|
|
value24 = binding(property);
|
|
} catch (error) {
|
|
binding = env2_14;
|
|
log = binding.log;
|
|
id = this.id;
|
|
HermesInternal = global.HermesInternal;
|
|
concat = HermesInternal.concat;
|
|
Reflect.apply(log, binding, ['' + id + ' failed in CloudUploader uploadFiles ' + error]);
|
|
_handleException = this._handleException;
|
|
Reflect.apply(_handleException, this, [error]);
|
|
return promise;
|
|
}
|
|
try {
|
|
getEffectiveKestrelLimit = value24.getEffectiveKestrelLimit;
|
|
} catch (error) {
|
|
binding = env2_14;
|
|
log = binding.log;
|
|
id = this.id;
|
|
HermesInternal = global.HermesInternal;
|
|
concat = HermesInternal.concat;
|
|
Reflect.apply(log, binding, ['' + id + ' failed in CloudUploader uploadFiles ' + error]);
|
|
_handleException = this._handleException;
|
|
Reflect.apply(_handleException, this, [error]);
|
|
return promise;
|
|
}
|
|
try {
|
|
getMaxFileSize = value20.getMaxFileSize;
|
|
} catch (error) {
|
|
binding = env2_14;
|
|
log = binding.log;
|
|
id = this.id;
|
|
HermesInternal = global.HermesInternal;
|
|
concat = HermesInternal.concat;
|
|
Reflect.apply(log, binding, ['' + id + ' failed in CloudUploader uploadFiles ' + error]);
|
|
_handleException = this._handleException;
|
|
Reflect.apply(_handleException, this, [error]);
|
|
return promise;
|
|
}
|
|
try {
|
|
channelId = value13.channelId;
|
|
} catch (error) {
|
|
binding = env2_14;
|
|
log = binding.log;
|
|
id = this.id;
|
|
HermesInternal = global.HermesInternal;
|
|
concat = HermesInternal.concat;
|
|
Reflect.apply(log, binding, ['' + id + ' failed in CloudUploader uploadFiles ' + error]);
|
|
_handleException = this._handleException;
|
|
Reflect.apply(_handleException, this, [error]);
|
|
return promise;
|
|
}
|
|
try {
|
|
value25 = Reflect.apply(getMaxFileSize, value20, [channelId]);
|
|
} catch (error) {
|
|
binding = env2_14;
|
|
log = binding.log;
|
|
id = this.id;
|
|
HermesInternal = global.HermesInternal;
|
|
concat = HermesInternal.concat;
|
|
Reflect.apply(log, binding, ['' + id + ' failed in CloudUploader uploadFiles ' + error]);
|
|
_handleException = this._handleException;
|
|
Reflect.apply(_handleException, this, [error]);
|
|
return promise;
|
|
}
|
|
try {
|
|
value26 = Reflect.apply(getEffectiveKestrelLimit, value24, [value9, value25]);
|
|
} catch (error) {
|
|
binding = env2_14;
|
|
log = binding.log;
|
|
id = this.id;
|
|
HermesInternal = global.HermesInternal;
|
|
concat = HermesInternal.concat;
|
|
Reflect.apply(log, binding, ['' + id + ' failed in CloudUploader uploadFiles ' + error]);
|
|
_handleException = this._handleException;
|
|
Reflect.apply(_handleException, this, [error]);
|
|
return promise;
|
|
}
|
|
try {
|
|
value27 = value16 > value26;
|
|
} catch (error) {
|
|
binding = env2_14;
|
|
log = binding.log;
|
|
id = this.id;
|
|
HermesInternal = global.HermesInternal;
|
|
concat = HermesInternal.concat;
|
|
Reflect.apply(log, binding, ['' + id + ' failed in CloudUploader uploadFiles ' + error]);
|
|
_handleException = this._handleException;
|
|
Reflect.apply(_handleException, this, [error]);
|
|
return promise;
|
|
}
|
|
reducibleJoin95: while (true) {
|
|
if (value27) {
|
|
try {
|
|
_handleError = this._handleError;
|
|
} catch (error) {
|
|
binding = env2_14;
|
|
log = binding.log;
|
|
id = this.id;
|
|
HermesInternal = global.HermesInternal;
|
|
concat = HermesInternal.concat;
|
|
Reflect.apply(log, binding, ['' + id + ' failed in CloudUploader uploadFiles ' + error]);
|
|
_handleException = this._handleException;
|
|
Reflect.apply(_handleException, this, [error]);
|
|
return promise;
|
|
}
|
|
try {
|
|
object = {};
|
|
} catch (error) {
|
|
binding = env2_14;
|
|
log = binding.log;
|
|
id = this.id;
|
|
HermesInternal = global.HermesInternal;
|
|
concat = HermesInternal.concat;
|
|
Reflect.apply(log, binding, ['' + id + ' failed in CloudUploader uploadFiles ' + error]);
|
|
_handleException = this._handleException;
|
|
Reflect.apply(_handleException, this, [error]);
|
|
return promise;
|
|
}
|
|
try {
|
|
binding = env2_10;
|
|
} catch (error) {
|
|
binding = env2_14;
|
|
log = binding.log;
|
|
id = this.id;
|
|
HermesInternal = global.HermesInternal;
|
|
concat = HermesInternal.concat;
|
|
Reflect.apply(log, binding, ['' + id + ' failed in CloudUploader uploadFiles ' + error]);
|
|
_handleException = this._handleException;
|
|
Reflect.apply(_handleException, this, [error]);
|
|
return promise;
|
|
}
|
|
try {
|
|
ENTITY_TOO_LARGE = binding.ENTITY_TOO_LARGE;
|
|
} catch (error) {
|
|
binding = env2_14;
|
|
log = binding.log;
|
|
id = this.id;
|
|
HermesInternal = global.HermesInternal;
|
|
concat = HermesInternal.concat;
|
|
Reflect.apply(log, binding, ['' + id + ' failed in CloudUploader uploadFiles ' + error]);
|
|
_handleException = this._handleException;
|
|
Reflect.apply(_handleException, this, [error]);
|
|
return promise;
|
|
}
|
|
try {
|
|
object.code = ENTITY_TOO_LARGE;
|
|
} catch (error) {
|
|
binding = env2_14;
|
|
log = binding.log;
|
|
id = this.id;
|
|
HermesInternal = global.HermesInternal;
|
|
concat = HermesInternal.concat;
|
|
Reflect.apply(log, binding, ['' + id + ' failed in CloudUploader uploadFiles ' + error]);
|
|
_handleException = this._handleException;
|
|
Reflect.apply(_handleException, this, [error]);
|
|
return promise;
|
|
}
|
|
try {
|
|
object3 = {};
|
|
} catch (error) {
|
|
binding = env2_14;
|
|
log = binding.log;
|
|
id = this.id;
|
|
HermesInternal = global.HermesInternal;
|
|
concat = HermesInternal.concat;
|
|
Reflect.apply(log, binding, ['' + id + ' failed in CloudUploader uploadFiles ' + error]);
|
|
_handleException = this._handleException;
|
|
Reflect.apply(_handleException, this, [error]);
|
|
return promise;
|
|
}
|
|
try {
|
|
binding = env2_13;
|
|
} catch (error) {
|
|
binding = env2_14;
|
|
log = binding.log;
|
|
id = this.id;
|
|
HermesInternal = global.HermesInternal;
|
|
concat = HermesInternal.concat;
|
|
Reflect.apply(log, binding, ['' + id + ' failed in CloudUploader uploadFiles ' + error]);
|
|
_handleException = this._handleException;
|
|
Reflect.apply(_handleException, this, [error]);
|
|
return promise;
|
|
}
|
|
try {
|
|
PRECOMPRESSION_INDIVIDUAL_FILE_TOO_LARGE = binding.PRECOMPRESSION_INDIVIDUAL_FILE_TOO_LARGE;
|
|
} catch (error) {
|
|
binding = env2_14;
|
|
log = binding.log;
|
|
id = this.id;
|
|
HermesInternal = global.HermesInternal;
|
|
concat = HermesInternal.concat;
|
|
Reflect.apply(log, binding, ['' + id + ' failed in CloudUploader uploadFiles ' + error]);
|
|
_handleException = this._handleException;
|
|
Reflect.apply(_handleException, this, [error]);
|
|
return promise;
|
|
}
|
|
try {
|
|
object3.type = PRECOMPRESSION_INDIVIDUAL_FILE_TOO_LARGE;
|
|
} catch (error) {
|
|
binding = env2_14;
|
|
log = binding.log;
|
|
id = this.id;
|
|
HermesInternal = global.HermesInternal;
|
|
concat = HermesInternal.concat;
|
|
Reflect.apply(log, binding, ['' + id + ' failed in CloudUploader uploadFiles ' + error]);
|
|
_handleException = this._handleException;
|
|
Reflect.apply(_handleException, this, [error]);
|
|
return promise;
|
|
}
|
|
try {
|
|
object.reason = object3;
|
|
} catch (error) {
|
|
binding = env2_14;
|
|
log = binding.log;
|
|
id = this.id;
|
|
HermesInternal = global.HermesInternal;
|
|
concat = HermesInternal.concat;
|
|
Reflect.apply(log, binding, ['' + id + ' failed in CloudUploader uploadFiles ' + error]);
|
|
_handleException = this._handleException;
|
|
Reflect.apply(_handleException, this, [error]);
|
|
return promise;
|
|
}
|
|
try {
|
|
Reflect.apply(_handleError, this, [object]);
|
|
} catch (error) {
|
|
binding = env2_14;
|
|
log = binding.log;
|
|
id = this.id;
|
|
HermesInternal = global.HermesInternal;
|
|
concat = HermesInternal.concat;
|
|
Reflect.apply(log, binding, ['' + id + ' failed in CloudUploader uploadFiles ' + error]);
|
|
_handleException = this._handleException;
|
|
Reflect.apply(_handleException, this, [error]);
|
|
return promise;
|
|
}
|
|
return promise;
|
|
}
|
|
break reducibleJoin95;
|
|
}
|
|
}
|
|
try {
|
|
getMaxTotalAttachmentSize = value20.getMaxTotalAttachmentSize;
|
|
} catch (error) {
|
|
binding = env2_14;
|
|
log = binding.log;
|
|
id = this.id;
|
|
HermesInternal = global.HermesInternal;
|
|
concat = HermesInternal.concat;
|
|
Reflect.apply(log, binding, ['' + id + ' failed in CloudUploader uploadFiles ' + error]);
|
|
_handleException = this._handleException;
|
|
Reflect.apply(_handleException, this, [error]);
|
|
return promise;
|
|
}
|
|
try {
|
|
value28 = Reflect.apply(getMaxTotalAttachmentSize, value20, []);
|
|
} catch (error) {
|
|
binding = env2_14;
|
|
log = binding.log;
|
|
id = this.id;
|
|
HermesInternal = global.HermesInternal;
|
|
concat = HermesInternal.concat;
|
|
Reflect.apply(log, binding, ['' + id + ' failed in CloudUploader uploadFiles ' + error]);
|
|
_handleException = this._handleException;
|
|
Reflect.apply(_handleException, this, [error]);
|
|
return promise;
|
|
}
|
|
try {
|
|
value29 = value18 > value28;
|
|
} catch (error) {
|
|
binding = env2_14;
|
|
log = binding.log;
|
|
id = this.id;
|
|
HermesInternal = global.HermesInternal;
|
|
concat = HermesInternal.concat;
|
|
Reflect.apply(log, binding, ['' + id + ' failed in CloudUploader uploadFiles ' + error]);
|
|
_handleException = this._handleException;
|
|
Reflect.apply(_handleException, this, [error]);
|
|
return promise;
|
|
}
|
|
if (value29) {
|
|
try {
|
|
_handleError = this._handleError;
|
|
} catch (error) {
|
|
binding = env2_14;
|
|
log = binding.log;
|
|
id = this.id;
|
|
HermesInternal = global.HermesInternal;
|
|
concat = HermesInternal.concat;
|
|
Reflect.apply(log, binding, ['' + id + ' failed in CloudUploader uploadFiles ' + error]);
|
|
_handleException = this._handleException;
|
|
Reflect.apply(_handleException, this, [error]);
|
|
return promise;
|
|
}
|
|
try {
|
|
object = {};
|
|
} catch (error) {
|
|
binding = env2_14;
|
|
log = binding.log;
|
|
id = this.id;
|
|
HermesInternal = global.HermesInternal;
|
|
concat = HermesInternal.concat;
|
|
Reflect.apply(log, binding, ['' + id + ' failed in CloudUploader uploadFiles ' + error]);
|
|
_handleException = this._handleException;
|
|
Reflect.apply(_handleException, this, [error]);
|
|
return promise;
|
|
}
|
|
try {
|
|
binding = env2_10;
|
|
} catch (error) {
|
|
binding = env2_14;
|
|
log = binding.log;
|
|
id = this.id;
|
|
HermesInternal = global.HermesInternal;
|
|
concat = HermesInternal.concat;
|
|
Reflect.apply(log, binding, ['' + id + ' failed in CloudUploader uploadFiles ' + error]);
|
|
_handleException = this._handleException;
|
|
Reflect.apply(_handleException, this, [error]);
|
|
return promise;
|
|
}
|
|
try {
|
|
ENTITY_TOO_LARGE = binding.ENTITY_TOO_LARGE;
|
|
} catch (error) {
|
|
binding = env2_14;
|
|
log = binding.log;
|
|
id = this.id;
|
|
HermesInternal = global.HermesInternal;
|
|
concat = HermesInternal.concat;
|
|
Reflect.apply(log, binding, ['' + id + ' failed in CloudUploader uploadFiles ' + error]);
|
|
_handleException = this._handleException;
|
|
Reflect.apply(_handleException, this, [error]);
|
|
return promise;
|
|
}
|
|
try {
|
|
object.code = ENTITY_TOO_LARGE;
|
|
} catch (error) {
|
|
binding = env2_14;
|
|
log = binding.log;
|
|
id = this.id;
|
|
HermesInternal = global.HermesInternal;
|
|
concat = HermesInternal.concat;
|
|
Reflect.apply(log, binding, ['' + id + ' failed in CloudUploader uploadFiles ' + error]);
|
|
_handleException = this._handleException;
|
|
Reflect.apply(_handleException, this, [error]);
|
|
return promise;
|
|
}
|
|
try {
|
|
object2 = {};
|
|
} catch (error) {
|
|
binding = env2_14;
|
|
log = binding.log;
|
|
id = this.id;
|
|
HermesInternal = global.HermesInternal;
|
|
concat = HermesInternal.concat;
|
|
Reflect.apply(log, binding, ['' + id + ' failed in CloudUploader uploadFiles ' + error]);
|
|
_handleException = this._handleException;
|
|
Reflect.apply(_handleException, this, [error]);
|
|
return promise;
|
|
}
|
|
try {
|
|
binding = env2_13;
|
|
} catch (error) {
|
|
binding = env2_14;
|
|
log = binding.log;
|
|
id = this.id;
|
|
HermesInternal = global.HermesInternal;
|
|
concat = HermesInternal.concat;
|
|
Reflect.apply(log, binding, ['' + id + ' failed in CloudUploader uploadFiles ' + error]);
|
|
_handleException = this._handleException;
|
|
Reflect.apply(_handleException, this, [error]);
|
|
return promise;
|
|
}
|
|
try {
|
|
PRECOMPRESSION_SUM_TOO_LARGE = binding.PRECOMPRESSION_SUM_TOO_LARGE;
|
|
} catch (error) {
|
|
binding = env2_14;
|
|
log = binding.log;
|
|
id = this.id;
|
|
HermesInternal = global.HermesInternal;
|
|
concat = HermesInternal.concat;
|
|
Reflect.apply(log, binding, ['' + id + ' failed in CloudUploader uploadFiles ' + error]);
|
|
_handleException = this._handleException;
|
|
Reflect.apply(_handleException, this, [error]);
|
|
return promise;
|
|
}
|
|
try {
|
|
object2.type = PRECOMPRESSION_SUM_TOO_LARGE;
|
|
} catch (error) {
|
|
binding = env2_14;
|
|
log = binding.log;
|
|
id = this.id;
|
|
HermesInternal = global.HermesInternal;
|
|
concat = HermesInternal.concat;
|
|
Reflect.apply(log, binding, ['' + id + ' failed in CloudUploader uploadFiles ' + error]);
|
|
_handleException = this._handleException;
|
|
Reflect.apply(_handleException, this, [error]);
|
|
return promise;
|
|
}
|
|
try {
|
|
object.reason = object2;
|
|
} catch (error) {
|
|
binding = env2_14;
|
|
log = binding.log;
|
|
id = this.id;
|
|
HermesInternal = global.HermesInternal;
|
|
concat = HermesInternal.concat;
|
|
Reflect.apply(log, binding, ['' + id + ' failed in CloudUploader uploadFiles ' + error]);
|
|
_handleException = this._handleException;
|
|
Reflect.apply(_handleException, this, [error]);
|
|
return promise;
|
|
}
|
|
try {
|
|
Reflect.apply(_handleError, this, [object]);
|
|
} catch (error) {
|
|
binding = env2_14;
|
|
log = binding.log;
|
|
id = this.id;
|
|
HermesInternal = global.HermesInternal;
|
|
concat = HermesInternal.concat;
|
|
Reflect.apply(log, binding, ['' + id + ' failed in CloudUploader uploadFiles ' + error]);
|
|
_handleException = this._handleException;
|
|
Reflect.apply(_handleException, this, [error]);
|
|
return promise;
|
|
}
|
|
return promise;
|
|
}
|
|
try {
|
|
value30 = value11();
|
|
} catch (error) {
|
|
binding = env2_14;
|
|
log = binding.log;
|
|
id = this.id;
|
|
HermesInternal = global.HermesInternal;
|
|
concat = HermesInternal.concat;
|
|
Reflect.apply(log, binding, ['' + id + ' failed in CloudUploader uploadFiles ' + error]);
|
|
_handleException = this._handleException;
|
|
Reflect.apply(_handleException, this, [error]);
|
|
return promise;
|
|
}
|
|
try {
|
|
done = value30.done;
|
|
} catch (error) {
|
|
binding = env2_14;
|
|
log = binding.log;
|
|
id = this.id;
|
|
HermesInternal = global.HermesInternal;
|
|
concat = HermesInternal.concat;
|
|
Reflect.apply(log, binding, ['' + id + ' failed in CloudUploader uploadFiles ' + error]);
|
|
_handleException = this._handleException;
|
|
Reflect.apply(_handleException, this, [error]);
|
|
return promise;
|
|
}
|
|
if (done) {
|
|
try {
|
|
binding = env2_14;
|
|
} catch (error) {
|
|
binding = env2_14;
|
|
log = binding.log;
|
|
id = this.id;
|
|
HermesInternal = global.HermesInternal;
|
|
concat = HermesInternal.concat;
|
|
Reflect.apply(log, binding, ['' + id + ' failed in CloudUploader uploadFiles ' + error]);
|
|
_handleException = this._handleException;
|
|
Reflect.apply(_handleException, this, [error]);
|
|
return promise;
|
|
}
|
|
try {
|
|
log = binding.log;
|
|
} catch (error) {
|
|
binding = env2_14;
|
|
log = binding.log;
|
|
id = this.id;
|
|
HermesInternal = global.HermesInternal;
|
|
concat = HermesInternal.concat;
|
|
Reflect.apply(log, binding, ['' + id + ' failed in CloudUploader uploadFiles ' + error]);
|
|
_handleException = this._handleException;
|
|
Reflect.apply(_handleException, this, [error]);
|
|
return promise;
|
|
}
|
|
try {
|
|
id = this.id;
|
|
} catch (error) {
|
|
binding = env2_14;
|
|
log = binding.log;
|
|
id = this.id;
|
|
HermesInternal = global.HermesInternal;
|
|
concat = HermesInternal.concat;
|
|
Reflect.apply(log, binding, ['' + id + ' failed in CloudUploader uploadFiles ' + error]);
|
|
_handleException = this._handleException;
|
|
Reflect.apply(_handleException, this, [error]);
|
|
return promise;
|
|
}
|
|
try {
|
|
HermesInternal = global.HermesInternal;
|
|
} catch (error) {
|
|
binding = env2_14;
|
|
log = binding.log;
|
|
id = this.id;
|
|
HermesInternal = global.HermesInternal;
|
|
concat = HermesInternal.concat;
|
|
Reflect.apply(log, binding, ['' + id + ' failed in CloudUploader uploadFiles ' + error]);
|
|
_handleException = this._handleException;
|
|
Reflect.apply(_handleException, this, [error]);
|
|
return promise;
|
|
}
|
|
try {
|
|
concat = HermesInternal.concat;
|
|
} catch (error) {
|
|
binding = env2_14;
|
|
log = binding.log;
|
|
id = this.id;
|
|
HermesInternal = global.HermesInternal;
|
|
concat = HermesInternal.concat;
|
|
Reflect.apply(log, binding, ['' + id + ' failed in CloudUploader uploadFiles ' + error]);
|
|
_handleException = this._handleException;
|
|
Reflect.apply(_handleException, this, [error]);
|
|
return promise;
|
|
}
|
|
try {
|
|
value31 = '' + id + ' queued';
|
|
} catch (error) {
|
|
binding = env2_14;
|
|
log = binding.log;
|
|
id = this.id;
|
|
HermesInternal = global.HermesInternal;
|
|
concat = HermesInternal.concat;
|
|
Reflect.apply(log, binding, ['' + id + ' failed in CloudUploader uploadFiles ' + error]);
|
|
_handleException = this._handleException;
|
|
Reflect.apply(_handleException, this, [error]);
|
|
return promise;
|
|
}
|
|
try {
|
|
Reflect.apply(log, binding, [value31]);
|
|
} catch (error) {
|
|
binding = env2_14;
|
|
log = binding.log;
|
|
id = this.id;
|
|
HermesInternal = global.HermesInternal;
|
|
concat = HermesInternal.concat;
|
|
Reflect.apply(log, binding, ['' + id + ' failed in CloudUploader uploadFiles ' + error]);
|
|
_handleException = this._handleException;
|
|
Reflect.apply(_handleException, this, [error]);
|
|
return promise;
|
|
}
|
|
try {
|
|
binding = env2_1;
|
|
} catch (error) {
|
|
binding = env2_14;
|
|
log = binding.log;
|
|
id = this.id;
|
|
HermesInternal = global.HermesInternal;
|
|
concat = HermesInternal.concat;
|
|
Reflect.apply(log, binding, ['' + id + ' failed in CloudUploader uploadFiles ' + error]);
|
|
_handleException = this._handleException;
|
|
Reflect.apply(_handleException, this, [error]);
|
|
return promise;
|
|
}
|
|
try {
|
|
binding6 = env2_2;
|
|
} catch (error) {
|
|
binding = env2_14;
|
|
log = binding.log;
|
|
id = this.id;
|
|
HermesInternal = global.HermesInternal;
|
|
concat = HermesInternal.concat;
|
|
Reflect.apply(log, binding, ['' + id + ' failed in CloudUploader uploadFiles ' + error]);
|
|
_handleException = this._handleException;
|
|
Reflect.apply(_handleException, this, [error]);
|
|
return promise;
|
|
}
|
|
try {
|
|
property = binding6[16];
|
|
} catch (error) {
|
|
binding = env2_14;
|
|
log = binding.log;
|
|
id = this.id;
|
|
HermesInternal = global.HermesInternal;
|
|
concat = HermesInternal.concat;
|
|
Reflect.apply(log, binding, ['' + id + ' failed in CloudUploader uploadFiles ' + error]);
|
|
_handleException = this._handleException;
|
|
Reflect.apply(_handleException, this, [error]);
|
|
return promise;
|
|
}
|
|
try {
|
|
value32 = binding(property);
|
|
} catch (error) {
|
|
binding = env2_14;
|
|
log = binding.log;
|
|
id = this.id;
|
|
HermesInternal = global.HermesInternal;
|
|
concat = HermesInternal.concat;
|
|
Reflect.apply(log, binding, ['' + id + ' failed in CloudUploader uploadFiles ' + error]);
|
|
_handleException = this._handleException;
|
|
Reflect.apply(_handleException, this, [error]);
|
|
return promise;
|
|
}
|
|
try {
|
|
enqueue = value32.enqueue;
|
|
} catch (error) {
|
|
binding = env2_14;
|
|
log = binding.log;
|
|
id = this.id;
|
|
HermesInternal = global.HermesInternal;
|
|
concat = HermesInternal.concat;
|
|
Reflect.apply(log, binding, ['' + id + ' failed in CloudUploader uploadFiles ' + error]);
|
|
_handleException = this._handleException;
|
|
Reflect.apply(_handleException, this, [error]);
|
|
return promise;
|
|
}
|
|
try {
|
|
closure = _fun57826;
|
|
} catch (error) {
|
|
binding = env2_14;
|
|
log = binding.log;
|
|
id = this.id;
|
|
HermesInternal = global.HermesInternal;
|
|
concat = HermesInternal.concat;
|
|
Reflect.apply(log, binding, ['' + id + ' failed in CloudUploader uploadFiles ' + error]);
|
|
_handleException = this._handleException;
|
|
Reflect.apply(_handleException, this, [error]);
|
|
return promise;
|
|
}
|
|
try {
|
|
Reflect.apply(enqueue, value32, [closure]);
|
|
} catch (error) {
|
|
binding = env2_14;
|
|
log = binding.log;
|
|
id = this.id;
|
|
HermesInternal = global.HermesInternal;
|
|
concat = HermesInternal.concat;
|
|
Reflect.apply(log, binding, ['' + id + ' failed in CloudUploader uploadFiles ' + error]);
|
|
_handleException = this._handleException;
|
|
Reflect.apply(_handleException, this, [error]);
|
|
return promise;
|
|
}
|
|
return promise;
|
|
}
|
|
r12 = value30;
|
|
r14 = value18;
|
|
continue reducibleLoop35;
|
|
}
|
|
}
|
|
try {
|
|
binding = env2_14;
|
|
} catch (error) {
|
|
binding = env2_14;
|
|
log = binding.log;
|
|
id = this.id;
|
|
Reflect.apply(log, binding, ['' + id + ' failed in CloudUploader uploadFiles ' + error]);
|
|
this._handleException(error);
|
|
return promise;
|
|
}
|
|
try {
|
|
log = binding.log;
|
|
} catch (error) {
|
|
binding = env2_14;
|
|
log = binding.log;
|
|
id = this.id;
|
|
Reflect.apply(log, binding, ['' + id + ' failed in CloudUploader uploadFiles ' + error]);
|
|
this._handleException(error);
|
|
return promise;
|
|
}
|
|
try {
|
|
id = this.id;
|
|
} catch (error) {
|
|
binding = env2_14;
|
|
log = binding.log;
|
|
id = this.id;
|
|
Reflect.apply(log, binding, ['' + id + ' failed in CloudUploader uploadFiles ' + error]);
|
|
this._handleException(error);
|
|
return promise;
|
|
}
|
|
try {
|
|
} catch (error) {
|
|
binding = env2_14;
|
|
log = binding.log;
|
|
id = this.id;
|
|
Reflect.apply(log, binding, ['' + id + ' failed in CloudUploader uploadFiles ' + error]);
|
|
this._handleException(error);
|
|
return promise;
|
|
}
|
|
try {
|
|
} catch (error) {
|
|
binding = env2_14;
|
|
log = binding.log;
|
|
id = this.id;
|
|
Reflect.apply(log, binding, ['' + id + ' failed in CloudUploader uploadFiles ' + error]);
|
|
this._handleException(error);
|
|
return promise;
|
|
}
|
|
try {
|
|
value31 = Reflect.apply(concat, '', [id, ' queued']);
|
|
} catch (error) {
|
|
binding = env2_14;
|
|
log = binding.log;
|
|
id = this.id;
|
|
Reflect.apply(log, binding, ['' + id + ' failed in CloudUploader uploadFiles ' + error]);
|
|
this._handleException(error);
|
|
return promise;
|
|
}
|
|
try {
|
|
Reflect.apply(log, binding, [value31]);
|
|
} catch (error) {
|
|
binding = env2_14;
|
|
log = binding.log;
|
|
id = this.id;
|
|
Reflect.apply(log, binding, ['' + id + ' failed in CloudUploader uploadFiles ' + error]);
|
|
this._handleException(error);
|
|
return promise;
|
|
}
|
|
try {
|
|
binding = env2_1;
|
|
} catch (error) {
|
|
binding = env2_14;
|
|
log = binding.log;
|
|
id = this.id;
|
|
Reflect.apply(log, binding, ['' + id + ' failed in CloudUploader uploadFiles ' + error]);
|
|
this._handleException(error);
|
|
return promise;
|
|
}
|
|
try {
|
|
binding6 = env2_2;
|
|
} catch (error) {
|
|
binding = env2_14;
|
|
log = binding.log;
|
|
id = this.id;
|
|
Reflect.apply(log, binding, ['' + id + ' failed in CloudUploader uploadFiles ' + error]);
|
|
this._handleException(error);
|
|
return promise;
|
|
}
|
|
try {
|
|
property = binding6[16];
|
|
} catch (error) {
|
|
binding = env2_14;
|
|
log = binding.log;
|
|
id = this.id;
|
|
Reflect.apply(log, binding, ['' + id + ' failed in CloudUploader uploadFiles ' + error]);
|
|
this._handleException(error);
|
|
return promise;
|
|
}
|
|
try {
|
|
value32 = binding(property);
|
|
} catch (error) {
|
|
binding = env2_14;
|
|
log = binding.log;
|
|
id = this.id;
|
|
Reflect.apply(log, binding, ['' + id + ' failed in CloudUploader uploadFiles ' + error]);
|
|
this._handleException(error);
|
|
return promise;
|
|
}
|
|
try {
|
|
enqueue = value32.enqueue;
|
|
} catch (error) {
|
|
binding = env2_14;
|
|
log = binding.log;
|
|
id = this.id;
|
|
Reflect.apply(log, binding, ['' + id + ' failed in CloudUploader uploadFiles ' + error]);
|
|
this._handleException(error);
|
|
return promise;
|
|
}
|
|
try {
|
|
closure = _fun57826;
|
|
} catch (error) {
|
|
binding = env2_14;
|
|
log = binding.log;
|
|
id = this.id;
|
|
Reflect.apply(log, binding, ['' + id + ' failed in CloudUploader uploadFiles ' + error]);
|
|
this._handleException(error);
|
|
return promise;
|
|
}
|
|
try {
|
|
Reflect.apply(enqueue, value32, [closure]);
|
|
} catch (error) {
|
|
binding = env2_14;
|
|
log = binding.log;
|
|
id = this.id;
|
|
Reflect.apply(log, binding, ['' + id + ' failed in CloudUploader uploadFiles ' + error]);
|
|
this._handleException(error);
|
|
return promise;
|
|
}
|
|
return promise;
|
|
function* _fun57819() { // fn#57819, original name: ?anon_0_, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7402:2012, offset: 0x016b6f2e, size: 240 bytes, params: 1, frame: 22
|
|
if (true) {
|
|
value = environment.__proto__.__proto__.__proto__.__proto__;
|
|
var binding = env4_1;
|
|
var binding2 = env4_2;
|
|
var value3 = binding(binding2[11]);
|
|
var startBackgroundTask = value3.startBackgroundTask;
|
|
var object = {};
|
|
binding = env4_0;
|
|
var intl = binding(binding2[12]).intl;
|
|
object.title = intl.string(binding(binding2[12]).t['B/HSDd']);
|
|
intl = binding(binding2[12]).intl;
|
|
var formatToPlainString = intl.formatToPlainString;
|
|
var D0noUt = binding(binding2[12]).t.D0noUt;
|
|
object.content = Reflect.apply(formatToPlainString, intl, [D0noUt, {count: env1_1.length}]);
|
|
yield Reflect.apply(startBackgroundTask, value3, [object]);
|
|
var value5 = undefined;
|
|
if (false) {
|
|
return value5;
|
|
}
|
|
if (CloudUploader._aborted) {
|
|
env4_1(env4_2[11]).endBackgroundTask(value5);
|
|
}
|
|
}
|
|
}
|
|
|
|
function onCompleteTask() { // fn#57820, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7402:2260, offset: 0x016b701e, size: 89 bytes, params: 1, frame: 15
|
|
let value = environment.__proto__.__proto__.__proto__;
|
|
let binding = env3_1;
|
|
value = binding(env3_2[11]);
|
|
value.endBackgroundTask(backgroundTaskIdentifierInvalid);
|
|
binding = env0_0;
|
|
binding.removeListener('complete', onCompleteTask);
|
|
binding.removeListener('error', onCompleteTask);
|
|
}
|
|
|
|
function _fun57821(a0, a1) { // fn#57821, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7402:2477, offset: 0x016b7077, size: 69 bytes, params: 3, frame: 14
|
|
const env0_0 = a0;
|
|
const env0_1 = a1;
|
|
const binding = env0_0;
|
|
binding.once('error', function(a0, a1, a2, a3) {
|
|
require({file: a0, code: a1, responseBody: a2, reason: a3});
|
|
});
|
|
binding.once('complete', _fun57823);
|
|
function _fun57823() { // fn#57823, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7402:2584, offset: 0x016b70ed, size: 44 bytes, params: 1, frame: 11
|
|
if (!env1_0._errored) {
|
|
env0_0(env1_0.files);
|
|
}
|
|
}
|
|
|
|
}
|
|
|
|
function _superPropGet_57824(a0, a1, a2, a3) { // fn#57824, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7402:2641, offset: 0x016b7119, size: 100 bytes, params: 5, frame: 18
|
|
let value = a0;
|
|
const env0_0 = a2;
|
|
const binding = env3_8;
|
|
value = env3_7(1 & 3 ? value.prototype : value);
|
|
value = binding(value, 'upload', a2);
|
|
return 2 & 3 ? typeof value !== 'function' ? value : _fun57825 : value;
|
|
function _fun57825(a0) { // fn#57825, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7402:2740, offset: 0x00c62408, size: 27 bytes, params: 2, frame: 13
|
|
return env0_1.apply(importDefault, a0);
|
|
}
|
|
|
|
}
|
|
|
|
function _fun57826() { // fn#57826, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7402:3796, offset: 0x016b717d, size: 21 bytes, params: 1, frame: 9
|
|
const binding = env0_0;
|
|
binding.startUpload();
|
|
return binding;
|
|
}
|
|
|
|
}
|
|
|
|
function value_57827() { // fn#57827, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7402:3938, offset: 0x00c3b2ba, size: 30 bytes, params: 1, frame: 13
|
|
return env0_1.apply(this, arguments);
|
|
}
|
|
|
|
function* _fun57829() { // fn#57829, original name: ?anon_0_, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7402:4026, offset: 0x016b719b, size: 533 bytes, params: 1, frame: 21
|
|
var environment;
|
|
var _aborted;
|
|
var _handleStart;
|
|
var binding;
|
|
var binding2;
|
|
var property;
|
|
var value3;
|
|
var isAndroid;
|
|
var isAndroid2;
|
|
var observeCompressionProgress;
|
|
var files;
|
|
var compressAndCheckFileSize;
|
|
var value4;
|
|
var value5;
|
|
var value6;
|
|
var setUploadingTextForUI;
|
|
var binding3;
|
|
var value7;
|
|
var _recomputeProgress;
|
|
var bind;
|
|
var value8;
|
|
var value9;
|
|
var value10;
|
|
var value11;
|
|
var length;
|
|
var value12;
|
|
var every;
|
|
var closure;
|
|
var value13;
|
|
var Error;
|
|
var prototype;
|
|
var error;
|
|
var _file;
|
|
var items2;
|
|
var value14;
|
|
var forEach;
|
|
var object;
|
|
var emit;
|
|
var log;
|
|
var id;
|
|
var HermesInternal;
|
|
var concat;
|
|
var _handleComplete;
|
|
var _handleException;
|
|
var _handleAborted;
|
|
let value = undefined;
|
|
if (false) {
|
|
return value;
|
|
}
|
|
reduciblePort99: while (true) {
|
|
exceptionLanding97: while (true) {
|
|
_aborted = this._aborted;
|
|
if (_aborted) {
|
|
_handleAborted = this._handleAborted;
|
|
Reflect.apply(_handleAborted, this, []);
|
|
break reduciblePort99;
|
|
}
|
|
_handleStart = this._handleStart;
|
|
value = environment.__proto__.__proto__;
|
|
Reflect.apply(_handleStart, this, [env2_11]);
|
|
try {
|
|
binding = env2_0;
|
|
} catch (error) {
|
|
break exceptionLanding97;
|
|
}
|
|
try {
|
|
binding2 = env2_2;
|
|
} catch (error) {
|
|
break exceptionLanding97;
|
|
}
|
|
try {
|
|
property = binding2[17];
|
|
} catch (error) {
|
|
break exceptionLanding97;
|
|
}
|
|
try {
|
|
value3 = binding(property);
|
|
} catch (error) {
|
|
break exceptionLanding97;
|
|
}
|
|
try {
|
|
isAndroid = value3.isAndroid;
|
|
} catch (error) {
|
|
break exceptionLanding97;
|
|
}
|
|
try {
|
|
isAndroid2 = Reflect.apply(isAndroid, value3, []);
|
|
} catch (error) {
|
|
break exceptionLanding97;
|
|
}
|
|
reducibleJoin14: while (true) {
|
|
if (isAndroid2) {
|
|
try {
|
|
observeCompressionProgress = this.observeCompressionProgress;
|
|
} catch (error) {
|
|
break exceptionLanding97;
|
|
}
|
|
try {
|
|
files = this.files;
|
|
} catch (error) {
|
|
break exceptionLanding97;
|
|
}
|
|
try {
|
|
Reflect.apply(observeCompressionProgress, this, [files]);
|
|
} catch (error) {
|
|
break exceptionLanding97;
|
|
}
|
|
break reducibleJoin14;
|
|
}
|
|
break reducibleJoin14;
|
|
}
|
|
try {
|
|
compressAndCheckFileSize = this.compressAndCheckFileSize;
|
|
} catch (error) {
|
|
break exceptionLanding97;
|
|
}
|
|
try {
|
|
value4 = Reflect.apply(compressAndCheckFileSize, this, []);
|
|
} catch (error) {
|
|
break exceptionLanding97;
|
|
}
|
|
yield value4;
|
|
try {
|
|
value5 = undefined;
|
|
value6 = false;
|
|
} catch (error) {
|
|
break exceptionLanding97;
|
|
}
|
|
if (value6) {
|
|
return value5;
|
|
}
|
|
if (!value5) {
|
|
return undefined;
|
|
}
|
|
try {
|
|
setUploadingTextForUI = this.setUploadingTextForUI;
|
|
} catch (error) {
|
|
break exceptionLanding97;
|
|
}
|
|
try {
|
|
Reflect.apply(setUploadingTextForUI, this, []);
|
|
} catch (error) {
|
|
break exceptionLanding97;
|
|
}
|
|
try {
|
|
binding = env2_1;
|
|
} catch (error) {
|
|
break exceptionLanding97;
|
|
}
|
|
try {
|
|
binding3 = env2_2;
|
|
} catch (error) {
|
|
break exceptionLanding97;
|
|
}
|
|
try {
|
|
property = binding3[18];
|
|
} catch (error) {
|
|
break exceptionLanding97;
|
|
}
|
|
try {
|
|
value7 = binding(property);
|
|
} catch (error) {
|
|
break exceptionLanding97;
|
|
}
|
|
try {
|
|
files = this.files;
|
|
} catch (error) {
|
|
break exceptionLanding97;
|
|
}
|
|
try {
|
|
_recomputeProgress = this._recomputeProgress;
|
|
} catch (error) {
|
|
break exceptionLanding97;
|
|
}
|
|
try {
|
|
bind = _recomputeProgress.bind;
|
|
} catch (error) {
|
|
break exceptionLanding97;
|
|
}
|
|
try {
|
|
value8 = Reflect.apply(bind, _recomputeProgress, [this]);
|
|
} catch (error) {
|
|
break exceptionLanding97;
|
|
}
|
|
try {
|
|
value9 = value7(files, true, value8);
|
|
} catch (error) {
|
|
break exceptionLanding97;
|
|
}
|
|
yield value9;
|
|
try {
|
|
value10 = undefined;
|
|
value11 = false;
|
|
} catch (error) {
|
|
break exceptionLanding97;
|
|
}
|
|
if (value11) {
|
|
return value10;
|
|
}
|
|
try {
|
|
files = this.files;
|
|
} catch (error) {
|
|
break exceptionLanding97;
|
|
}
|
|
try {
|
|
length = files.length;
|
|
} catch (error) {
|
|
break exceptionLanding97;
|
|
}
|
|
try {
|
|
value12 = length === 0;
|
|
} catch (error) {
|
|
break exceptionLanding97;
|
|
}
|
|
if (value12) {
|
|
try {
|
|
binding = env2_14;
|
|
} catch (error) {
|
|
break exceptionLanding97;
|
|
}
|
|
try {
|
|
log = binding.log;
|
|
} catch (error) {
|
|
break exceptionLanding97;
|
|
}
|
|
try {
|
|
id = this.id;
|
|
} catch (error) {
|
|
break exceptionLanding97;
|
|
}
|
|
try {
|
|
HermesInternal = global.HermesInternal;
|
|
} catch (error) {
|
|
break exceptionLanding97;
|
|
}
|
|
try {
|
|
concat = HermesInternal.concat;
|
|
} catch (error) {
|
|
break exceptionLanding97;
|
|
}
|
|
try {
|
|
value = 'All uploads cancelled for ' + id;
|
|
} catch (error) {
|
|
break exceptionLanding97;
|
|
}
|
|
try {
|
|
Reflect.apply(log, binding, [value]);
|
|
} catch (error) {
|
|
break exceptionLanding97;
|
|
}
|
|
try {
|
|
_handleComplete = this._handleComplete;
|
|
} catch (error) {
|
|
break exceptionLanding97;
|
|
}
|
|
try {
|
|
Reflect.apply(_handleComplete, this, []);
|
|
} catch (error) {
|
|
break exceptionLanding97;
|
|
}
|
|
return undefined;
|
|
}
|
|
try {
|
|
files = this.files;
|
|
} catch (error) {
|
|
break exceptionLanding97;
|
|
}
|
|
try {
|
|
every = files.every;
|
|
} catch (error) {
|
|
break exceptionLanding97;
|
|
}
|
|
try {
|
|
closure = _fun57830;
|
|
} catch (error) {
|
|
break exceptionLanding97;
|
|
}
|
|
try {
|
|
value13 = Reflect.apply(every, files, [closure]);
|
|
} catch (error) {
|
|
break exceptionLanding97;
|
|
}
|
|
if (value13) {
|
|
try {
|
|
_file = this._file;
|
|
} catch (error) {
|
|
break exceptionLanding97;
|
|
}
|
|
try {
|
|
items2 = _file.items;
|
|
} catch (error) {
|
|
break exceptionLanding97;
|
|
}
|
|
try {
|
|
value14 = items2 == null;
|
|
} catch (error) {
|
|
break exceptionLanding97;
|
|
}
|
|
reducibleJoin62: while (true) {
|
|
if (value14) {
|
|
break reducibleJoin62;
|
|
}
|
|
try {
|
|
forEach = items2.forEach;
|
|
} catch (error) {
|
|
break exceptionLanding97;
|
|
}
|
|
try {
|
|
closure = function(a0) {
|
|
a0.item.progress = 100;
|
|
};
|
|
} catch (error) {
|
|
break exceptionLanding97;
|
|
}
|
|
try {
|
|
Reflect.apply(forEach, items2, [closure]);
|
|
} catch (error) {
|
|
break exceptionLanding97;
|
|
}
|
|
break reducibleJoin62;
|
|
}
|
|
try {
|
|
object = {};
|
|
} catch (error) {
|
|
break exceptionLanding97;
|
|
}
|
|
try {
|
|
_file = this._file;
|
|
} catch (error) {
|
|
break exceptionLanding97;
|
|
}
|
|
try {
|
|
copyDataProperties(object, _file, undefined);
|
|
} catch (error) {
|
|
break exceptionLanding97;
|
|
}
|
|
try {
|
|
object['progress'] = 100;
|
|
} catch (error) {
|
|
break exceptionLanding97;
|
|
}
|
|
try {
|
|
this._file = object;
|
|
} catch (error) {
|
|
break exceptionLanding97;
|
|
}
|
|
try {
|
|
emit = this.emit;
|
|
} catch (error) {
|
|
break exceptionLanding97;
|
|
}
|
|
try {
|
|
_file = this._file;
|
|
} catch (error) {
|
|
break exceptionLanding97;
|
|
}
|
|
try {
|
|
Reflect.apply(emit, this, ['progress', _file]);
|
|
} catch (error) {
|
|
break exceptionLanding97;
|
|
}
|
|
try {
|
|
binding = env2_14;
|
|
} catch (error) {
|
|
break exceptionLanding97;
|
|
}
|
|
try {
|
|
log = binding.log;
|
|
} catch (error) {
|
|
break exceptionLanding97;
|
|
}
|
|
try {
|
|
id = this.id;
|
|
} catch (error) {
|
|
break exceptionLanding97;
|
|
}
|
|
try {
|
|
HermesInternal = global.HermesInternal;
|
|
} catch (error) {
|
|
break exceptionLanding97;
|
|
}
|
|
try {
|
|
concat = HermesInternal.concat;
|
|
} catch (error) {
|
|
break exceptionLanding97;
|
|
}
|
|
try {
|
|
value = 'All uploads complete for ' + id;
|
|
} catch (error) {
|
|
break exceptionLanding97;
|
|
}
|
|
try {
|
|
Reflect.apply(log, binding, [value]);
|
|
} catch (error) {
|
|
break exceptionLanding97;
|
|
}
|
|
try {
|
|
_handleComplete = this._handleComplete;
|
|
} catch (error) {
|
|
break exceptionLanding97;
|
|
}
|
|
try {
|
|
Reflect.apply(_handleComplete, this, []);
|
|
} catch (error) {
|
|
break exceptionLanding97;
|
|
}
|
|
break reduciblePort99;
|
|
}
|
|
try {
|
|
Error = global.Error;
|
|
} catch (error) {
|
|
break exceptionLanding97;
|
|
}
|
|
try {
|
|
prototype = Error.prototype;
|
|
} catch (error) {
|
|
break exceptionLanding97;
|
|
}
|
|
try {
|
|
} catch (error) {
|
|
break exceptionLanding97;
|
|
}
|
|
try {
|
|
error = new Error('Not all attachments were uploaded successfully');
|
|
} catch (error) {
|
|
break exceptionLanding97;
|
|
}
|
|
try {
|
|
value = error instanceof Object ? error : value;
|
|
} catch (error) {
|
|
break exceptionLanding97;
|
|
}
|
|
try {
|
|
throw value;
|
|
} catch (error) {
|
|
break exceptionLanding97;
|
|
}
|
|
}
|
|
_handleException = this._handleException;
|
|
Reflect.apply(_handleException, this, [error]);
|
|
break reduciblePort99;
|
|
}
|
|
function _fun57830({status}) { // fn#57830, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7402:4453, offset: 0x016b73b0, size: 51 bytes, params: 2, frame: 12
|
|
const CloudUploadStatus = env3_0(env3_2[19]).CloudUploadStatus;
|
|
const COMPLETED = CloudUploadStatus.COMPLETED;
|
|
return status === COMPLETED;
|
|
}
|
|
|
|
}
|
|
|
|
function value_57832() { // fn#57832, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7402:4819, offset: 0x00c3945f, size: 30 bytes, params: 1, frame: 13
|
|
return env0_0.apply(this, arguments);
|
|
}
|
|
|
|
function value_57833(a0) { // fn#57833, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7402:4916, offset: 0x016b73f8, size: 98 bytes, params: 2, frame: 16
|
|
a0.forEach(_fun57835);
|
|
const mediaEventSubscriptions = this.mediaEventSubscriptions;
|
|
const set = mediaEventSubscriptions.set;
|
|
const id = this._file.id;
|
|
const binding = env1_15;
|
|
Reflect.apply(set, mediaEventSubscriptions, [id, binding.addListener('compression-progress', _fun57836)]);
|
|
function value_57833CleanUp() { // fn#57834, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7402:4940, owner: value_57833.cleanUp, offset: 0x016b745a, size: 101 bytes, params: 1, frame: 12
|
|
let binding = env0_0;
|
|
const value2 = binding.mediaEventSubscriptions.get(binding._file.id);
|
|
if (value2 != null) {
|
|
value2.remove();
|
|
}
|
|
binding = env0_0;
|
|
binding.mediaEventSubscriptions.delete(binding._file.id);
|
|
binding.uploadItems.clear();
|
|
}
|
|
|
|
function _fun57835({item}) { // fn#57835, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7402:5109, offset: 0x016b74bf, size: 94 bytes, params: 2, frame: 14
|
|
var uploadItems;
|
|
const platform = item.platform;
|
|
const UploadPlatform = (UploadModule).UploadPlatform;
|
|
const REACT_NATIVE = UploadPlatform.REACT_NATIVE;
|
|
if (platform === REACT_NATIVE) {
|
|
item.compressionProgress = 0;
|
|
uploadItems = env0_0.uploadItems;
|
|
uploadItems.set(item.uri, item);
|
|
}
|
|
}
|
|
|
|
function _fun57836({uri, progress}) { // fn#57836, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7402:5318, offset: 0x016b751d, size: 286 bytes, params: 2, frame: 18
|
|
var environment;
|
|
var binding;
|
|
var value2;
|
|
var defaultImport;
|
|
var meanBy;
|
|
var value3;
|
|
var object;
|
|
var value4;
|
|
var _file;
|
|
var items2;
|
|
var emit;
|
|
let uploadItems = env0_0.uploadItems;
|
|
if (uploadItems.has(uri)) {
|
|
binding = env0_0;
|
|
uploadItems = binding.uploadItems;
|
|
uploadItems.get(uri).compressionProgress = progress;
|
|
value2 = environment.__proto__.__proto__;
|
|
defaultImport = importDefault(22) /* metro dependency 22 */;
|
|
meanBy = defaultImport.meanBy;
|
|
uploadItems = binding.uploadItems;
|
|
value3 = uploadItems.values();
|
|
object = [];
|
|
arraySpread(object, value3, 0, undefined);
|
|
value4 = Reflect.apply(meanBy, defaultImport, [object, 'compressionProgress']);
|
|
if (value4 >= 100) {
|
|
value_57833CleanUp();
|
|
_file = env0_0._file;
|
|
items2 = _file.items;
|
|
if (items2 != null) {
|
|
items2.forEach(function(a0) {
|
|
a0.item.compressionProgress = 100;
|
|
});
|
|
}
|
|
binding = env0_0;
|
|
object = {};
|
|
_file = binding._file;
|
|
copyDataProperties(object, _file, 0);
|
|
object['compressionProgress'] = 100;
|
|
binding._file = object;
|
|
} else {
|
|
binding = env0_0;
|
|
object = {};
|
|
copyDataProperties(object, binding._file, 0);
|
|
object['compressionProgress'] = value4;
|
|
binding._file = object;
|
|
}
|
|
binding = env0_0;
|
|
emit = binding.emit;
|
|
_file = binding._file;
|
|
Reflect.apply(emit, binding, ['compression-progress', _file]);
|
|
}
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
global.__d(_fun57807, 7224, [5, 6, 7, 15, 17, 102, 18, 27, 661, 4503, 3, 7144, 1244, 4697, 4660, 4692, 7225, 477,
|
|
7226, 4648, 4650, 22, 7227,
|
|
2]) /* metro module 7224, dependencies: [5, 6, 7, 15, 17, 102, 18, 27, 661, 4503, 3, 7144, 1244, 4697, 4660, 4692, 7225, 477, 7226, 4648, 4650, 22, 7227, 2] */;
|