decord/source/1264__isNativeReflectConstruct.js

101 lines
2.6 KiB
JavaScript
Raw Normal View History

2026-07-20 16:05:17 +00:00
// Module ID: 1264
2026-07-24 07:16:23 +00:00
// Function ID: 14274
2026-07-20 16:05:17 +00:00
// Name: _isNativeReflectConstruct
2026-07-23 10:11:24 +00:00
// Dependencies: [6, 7, 15, 17, 18, 1254]
2026-07-20 16:05:17 +00:00
// Exports: formatToPlainString
// Module 1264 (_isNativeReflectConstruct)
2026-07-23 10:11:24 +00:00
import _classCallCheck from "_classCallCheck";
import _defineProperties from "_defineProperties";
import "_possibleConstructorReturn";
import _getPrototypeOf from "_getPrototypeOf";
import _inherits from "_inherits";
2026-07-20 16:05:17 +00:00
function _isNativeReflectConstruct() {
let closure_0 = !valueOf.call(Reflect.construct(Boolean, [], () => {
}));
function _isNativeReflectConstruct() {
return closure_0;
}
const result = _isNativeReflectConstruct();
}
function formatToPlainString(FNtLb3, maxSettingsForPreset) {
const self = this;
let first = FNtLb3;
if ("string" !== typeof FNtLb3) {
2026-07-23 10:11:24 +00:00
first = self.bindFormatValues(closure_5, FNtLb3, maxSettingsForPreset)[0];
2026-07-20 16:05:17 +00:00
}
return first;
}
2026-07-23 10:11:24 +00:00
const tmp2 = ((FormatBuilder) => {
2026-07-20 16:05:17 +00:00
class StringBuilder {
constructor() {
self = this;
tmp = StringBuilder(this, StringBuilder);
2026-07-23 10:11:24 +00:00
obj = outer1_3(StringBuilder);
tmp2 = outer1_2;
if (outer1_6()) {
2026-07-20 16:05:17 +00:00
tmp6 = globalThis;
_Reflect = Reflect;
2026-07-23 10:11:24 +00:00
tmp7 = outer1_3;
2026-07-20 16:05:17 +00:00
tmp8 = arguments;
2026-07-23 10:11:24 +00:00
constructResult = Reflect.construct(obj, arguments, outer1_3(self).constructor);
2026-07-20 16:05:17 +00:00
} else {
tmp3 = arguments;
tmp4 = arguments;
constructResult = obj(...arguments);
}
tmp2Result = tmp2(self, constructResult);
tmp2Result.result = "";
return tmp2Result;
}
}
2026-07-23 10:11:24 +00:00
_inherits(StringBuilder, FormatBuilder);
2026-07-20 16:05:17 +00:00
let obj = {
key: "pushRichTextTag",
value: function pushRichTextTag(arg0, items) {
const self = this;
for (const item10004 of arg1) {
self.result = self.result + item10004;
2026-07-23 10:11:24 +00:00
continue;
2026-07-20 16:05:17 +00:00
}
}
};
2026-07-23 10:11:24 +00:00
let items = [obj, , , ];
2026-07-20 16:05:17 +00:00
obj = {
key: "pushLiteralText",
value: function pushLiteralText(arg0) {
this.result = this.result + arg0;
}
};
items[1] = obj;
obj = {
key: "pushObject",
value: function pushObject(arg0) {
const self = this;
let tmp = null != arg0;
if (tmp) {
tmp = "toString" in arg0;
}
if (tmp) {
self.result = self.result + arg0.toString();
}
}
};
items[2] = obj;
items[3] = {
key: "finish",
value: function finish() {
const items = [this.result];
return items;
}
};
2026-07-23 10:11:24 +00:00
return _defineProperties(StringBuilder, items);
})(require("_isNativeReflectConstruct").FormatBuilder);
let closure_5 = tmp2;
2026-07-20 16:05:17 +00:00
export { formatToPlainString };
export const StringBuilder = tmp2;
export const stringFormatter = { format: formatToPlainString, builder: tmp2 };