118 lines
3 KiB
JavaScript
118 lines
3 KiB
JavaScript
// Module ID: 13897
|
|
// Function ID: 13898
|
|
// Name: text
|
|
// Dependencies: [13898, 13846, 13842, 13843, 13862, 13899, 13900, 13865]
|
|
|
|
// Module 13897 (text)
|
|
import getOwnPropertyDescriptor from "getOwnPropertyDescriptor" /* 13842 */;
|
|
import _mod13843 from "module_13843" /* 13843 */;
|
|
import call from "call" /* 13846 */;
|
|
import call2 from "call" /* 13862 */;
|
|
import all from "all" /* 13865 */;
|
|
import state from "state" /* 13900 */;
|
|
import closure_2 from "__core-js_shared__" /* 13898 */;
|
|
|
|
let closure_5 = call("".slice);
|
|
let closure_6 = call("".replace);
|
|
let closure_7 = call([].join);
|
|
let closure_8 = getOwnPropertyDescriptor && !_mod13843(() => 8 !== defineProperty(() => {
|
|
|
|
}, "length", { value: 8 }).length);
|
|
const tmp = getOwnPropertyDescriptor && !_mod13843(() => 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(13899).CONFIGURABLE && toString.name !== text2;
|
|
const tmp10 = tmp6(13899).CONFIGURABLE && toString.name !== text2;
|
|
}
|
|
if (tmp9) {
|
|
if (tmp6(13842)) {
|
|
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(13862)(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(13862)(arg2, "constructor")) {
|
|
if (arg2.constructor) {
|
|
if (tmp6(13842)) {
|
|
defineProperty(toString, "prototype", { writable: false });
|
|
}
|
|
}
|
|
const enforceResult = tmp6(13900).enforce(toString);
|
|
if (!tmp6(13862)(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;
|