146 lines
4.3 KiB
JavaScript
146 lines
4.3 KiB
JavaScript
// Module ID: 4368
|
|
// Function ID: 4369
|
|
// Name: baseClone
|
|
// Dependencies: [606, 599, 4369, 4370, 770, 621, 4371, 4372, 4375, 4379, 4383, 4384, 4385, 775, 4391, 4393, 4395, 792, 4380, 616, 600, 4377]
|
|
|
|
// Module 4368 (baseClone)
|
|
let obj = {};
|
|
obj["[object Uint32Array]"] = true;
|
|
obj["[object Uint16Array]"] = true;
|
|
obj["[object Uint8ClampedArray]"] = true;
|
|
obj["[object Uint8Array]"] = true;
|
|
obj["[object Symbol]"] = true;
|
|
obj["[object String]"] = true;
|
|
obj["[object Set]"] = true;
|
|
obj["[object RegExp]"] = true;
|
|
obj["[object Object]"] = true;
|
|
obj["[object Number]"] = true;
|
|
obj["[object Map]"] = true;
|
|
obj["[object Int32Array]"] = true;
|
|
obj["[object Int16Array]"] = true;
|
|
obj["[object Int8Array]"] = true;
|
|
obj["[object Float64Array]"] = true;
|
|
obj["[object Float32Array]"] = true;
|
|
obj["[object Date]"] = true;
|
|
obj["[object Boolean]"] = true;
|
|
obj["[object DataView]"] = true;
|
|
obj["[object ArrayBuffer]"] = true;
|
|
obj["[object Array]"] = true;
|
|
obj["[object Arguments]"] = true;
|
|
obj["[object WeakMap]"] = false;
|
|
obj["[object Function]"] = false;
|
|
obj["[object Error]"] = false;
|
|
function baseClone(arr) {
|
|
const _require = arr;
|
|
const dependencyMap = arg1;
|
|
let obj = arg2;
|
|
let closure_3 = arg5;
|
|
if (!arg2) {
|
|
{
|
|
if (_require(606)(arr)) {
|
|
const tmp10 = tmp32(599)(arr);
|
|
if (tmp10) {
|
|
const tmp18 = tmp32(4369)(arr);
|
|
obj = tmp18;
|
|
let tmp14 = tmp18;
|
|
if (!tmp) {
|
|
return tmp32(4370)(arr, tmp18);
|
|
}
|
|
} else {
|
|
const tmp11 = tmp32(770)(arr);
|
|
let tmp12 = tmp11 == "[object Function]";
|
|
if (!tmp12) {
|
|
tmp12 = "[object GeneratorFunction]" == tmp11;
|
|
}
|
|
if (tmp32(621)(arr)) {
|
|
return tmp32(4371)(arr, tmp);
|
|
} else {
|
|
if (tmp11 != "[object Object]") {
|
|
if (tmp11 != "[object Arguments]") {
|
|
if (obj[tmp11]) {
|
|
tmp14 = tmp32(4385)(arr, tmp11, tmp);
|
|
obj = tmp14;
|
|
} else {
|
|
obj = arr;
|
|
if (!arg4) {
|
|
obj = {};
|
|
}
|
|
return obj;
|
|
}
|
|
}
|
|
}
|
|
if (!tmp2) {
|
|
if (!tmp12) {
|
|
obj = tmp32(4372)(arr);
|
|
}
|
|
tmp14 = obj;
|
|
if (!tmp) {
|
|
if (tmp2) {
|
|
let tmp32Result = tmp32(4375);
|
|
let tmp32ResultResult = tmp32Result(arr, tmp32(4379)(obj, arr));
|
|
} else {
|
|
tmp32Result = tmp32(4383);
|
|
tmp32ResultResult = tmp32Result(arr, tmp32(4384)(obj, arr));
|
|
}
|
|
return tmp32ResultResult;
|
|
}
|
|
}
|
|
obj = {};
|
|
}
|
|
}
|
|
let obj3 = arg5;
|
|
if (!arg5) {
|
|
const tmp21 = new tmp32(775)();
|
|
closure_3 = tmp21;
|
|
obj3 = tmp21;
|
|
}
|
|
const value = obj3.get(arr);
|
|
if (value) {
|
|
return value;
|
|
} else {
|
|
let result = obj3.set(arr, tmp14);
|
|
if (tmp32(4391)(arr)) {
|
|
const item = arr.forEach((arg0) => {
|
|
obj.add(callback(arg0, closure_1, closure_2, arg0, closure_0, callback));
|
|
});
|
|
} else if (tmp32(4393)(arr)) {
|
|
const item1 = arr.forEach((arg0, arg1) => {
|
|
const result = obj.set(arg1, callback(arg0, closure_1, closure_2, arg1, closure_0, callback));
|
|
});
|
|
}
|
|
if (!tmp3) {
|
|
let tmp29;
|
|
if (!tmp10) {
|
|
tmp29 = tmp32(tmp2 ? 4380 : 616)(arr);
|
|
}
|
|
let closure_5 = tmp29;
|
|
if (!tmp29) {
|
|
tmp29 = arr;
|
|
}
|
|
tmp32(600)(tmp29, (arg0, arg1) => {
|
|
let tmp = arg1;
|
|
let tmp2 = arg0;
|
|
if (closure_5) {
|
|
tmp2 = arr[arg0];
|
|
tmp = arg0;
|
|
}
|
|
arr(table[21])(obj, tmp, callback(tmp2, table, closure_2, tmp, arr, callback));
|
|
});
|
|
return tmp14;
|
|
}
|
|
}
|
|
} else {
|
|
return arr;
|
|
}
|
|
}
|
|
} else {
|
|
if (arg4) {
|
|
let tmp4 = arg2(arr, arg3, arg4, arg5);
|
|
} else {
|
|
tmp4 = arg2(arr);
|
|
}
|
|
obj = tmp4;
|
|
}
|
|
}
|
|
|
|
export default baseClone;
|