decord/source/13695_text.js
2026-08-12 06:57:52 +00:00

112 lines
2.9 KiB
JavaScript

// Module ID: 13695
// Function ID: 13696
// Name: text
// Dependencies: [13696, 13644, 13640, 13641, 13660, 13697, 13698, 13663]
// Module 13695 (text)
import __core_js_shared__ from "__core-js_shared__";
let closure_5 = require("call")("".slice);
let closure_6 = require("call")("".replace);
let closure_7 = require("call")([].join);
const metroImportAll = require("getOwnPropertyDescriptor") && !require("module_13641")(() => 8 !== defineProperty(() => {
}, "length", { value: 8 }).length);
const tmp = require("getOwnPropertyDescriptor") && !require("module_13641")(() => 8 !== defineProperty(() => {
}, "length", { value: 8 }).length);
let closure_9 = String(String).split("String");
const fn = (toString, toString2) => {
let text = toString2;
if ("Symbol(" === callback(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 = require(13660) /* call */(toString, "name");
let tmp9 = !tmp8;
if (tmp8) {
tmp9 = tmp6(13697).CONFIGURABLE && toString.name !== text2;
const tmp10 = tmp6(13697).CONFIGURABLE && toString.name !== text2;
}
if (tmp9) {
if (tmp6(13640)) {
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(13660)(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(13660)(arg2, "constructor")) {
if (arg2.constructor) {
if (tmp6(13640)) {
defineProperty(toString, "prototype", { writable: false });
}
}
const enforceResult = tmp6(13698).enforce(toString);
if (!tmp6(13660)(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 = require(13663) /* all */(this);
if (source) {
source = require(13698) /* state */.get(self).source;
const tmpResult = require(13698) /* state */;
}
if (!source) {
source = __core_js_shared__(self);
}
return source;
}
fn(toString, "toString");
Function.prototype.toString = toString;
export default fn;