118 lines
3 KiB
JavaScript
118 lines
3 KiB
JavaScript
// Module ID: 13824
|
|
// Function ID: 13825
|
|
// Name: text
|
|
// Dependencies: [13825, 13773, 13769, 13770, 13789, 13826, 13827, 13792]
|
|
|
|
// Module 13824 (text)
|
|
import getOwnPropertyDescriptor from "getOwnPropertyDescriptor" /* 13769 */;
|
|
import _mod13770 from "module_13770" /* 13770 */;
|
|
import call from "call" /* 13773 */;
|
|
import call2 from "call" /* 13789 */;
|
|
import all from "all" /* 13792 */;
|
|
import state from "state" /* 13827 */;
|
|
import closure_2 from "__core-js_shared__" /* 13825 */;
|
|
|
|
let closure_5 = call("".slice);
|
|
let closure_6 = call("".replace);
|
|
let closure_7 = call([].join);
|
|
let closure_8 = getOwnPropertyDescriptor && !_mod13770(() => 8 !== defineProperty(() => {
|
|
|
|
}, "length", { value: 8 }).length);
|
|
const tmp = getOwnPropertyDescriptor && !_mod13770(() => 8 !== defineProperty(() => {
|
|
|
|
}, "length", { value: 8 }).length);
|
|
let closure_9 = String(String).split("String");
|
|
const fn = (toString, toString2) => {
|
|
let text = toString2;
|
|
if ("Symbol(" === callback2(String(toString2), 0, 7)) {
|
|
text = `${"[" + closure_6(tmp(toString2), /^Symbol\(([^)]*)\).*$/, "$1")}]`;
|
|
}
|
|
let getter = arg2;
|
|
if (arg2) {
|
|
getter = arg2.getter;
|
|
}
|
|
let text1 = text;
|
|
if (getter) {
|
|
text1 = `get ${tmp2}`;
|
|
}
|
|
let setter = arg2;
|
|
if (arg2) {
|
|
setter = arg2.setter;
|
|
}
|
|
let text2 = text1;
|
|
if (setter) {
|
|
text2 = `set ${tmp4}`;
|
|
}
|
|
const tmp8 = call2(toString, "name");
|
|
let tmp9 = !tmp8;
|
|
if (tmp8) {
|
|
tmp9 = tmp6(13826).CONFIGURABLE && toString.name !== text2;
|
|
const tmp10 = tmp6(13826).CONFIGURABLE && toString.name !== text2;
|
|
}
|
|
if (tmp9) {
|
|
if (tmp6(13769)) {
|
|
let obj = { value: null, configurable: true };
|
|
obj[0] = text2;
|
|
defineProperty(toString, "name", obj);
|
|
} else {
|
|
toString.name = text2;
|
|
}
|
|
}
|
|
let tmp13 = closure_8;
|
|
if (closure_8) {
|
|
tmp13 = arg2;
|
|
}
|
|
if (tmp13) {
|
|
tmp13 = tmp6(13789)(arg2, "arity");
|
|
}
|
|
if (tmp13) {
|
|
tmp13 = toString.length !== arg2.arity;
|
|
}
|
|
if (tmp13) {
|
|
obj = { value: null };
|
|
obj[0] = arg2.arity;
|
|
defineProperty(toString, "length", obj);
|
|
}
|
|
try {
|
|
if (arg2) {
|
|
if (tmp6(13789)(arg2, "constructor")) {
|
|
if (arg2.constructor) {
|
|
if (tmp6(13769)) {
|
|
defineProperty(toString, "prototype", { writable: false });
|
|
}
|
|
}
|
|
const enforceResult = tmp6(13827).enforce(toString);
|
|
if (!tmp6(13789)(enforceResult, "source")) {
|
|
let str11 = "";
|
|
if (typeof text2 === "string") {
|
|
str11 = text2;
|
|
}
|
|
enforceResult.source = closure_7(closure_9, str11);
|
|
const tmp19 = closure_7;
|
|
const tmp20 = closure_9;
|
|
}
|
|
return toString;
|
|
}
|
|
}
|
|
if (toString.prototype) {
|
|
toString.prototype = undefined;
|
|
}
|
|
} catch (err) {
|
|
}
|
|
};
|
|
function toString() {
|
|
const self = this;
|
|
let source = all(this);
|
|
if (source) {
|
|
source = state.get(self).source;
|
|
const tmpResult = state;
|
|
}
|
|
if (!source) {
|
|
source = callback(self);
|
|
}
|
|
return source;
|
|
}
|
|
fn(toString, "toString");
|
|
Function.prototype.toString = toString;
|
|
|
|
export default fn;
|