decord/source/__helpers/10xxx/10569__isNativeReflectConstruct.js
github-actions 67d978d9fb chore: update source for alpha 346.0
Skipped 1 file(s) >100MB (GitHub limit): source/__vendor/09xxx/9672_m.js (378.6 MB)
2026-09-07 16:44:02 +00:00

89 lines
3 KiB
JavaScript

// Module ID: 10569
// Function ID: 10570
// Name: _isNativeReflectConstruct
// Dependencies: [41, 42, 93, 95, 98, 10437, 10566, 10438, 10568]
// Module 10569 (_isNativeReflectConstruct)
import _isNativeReflectConstruct2 from "_isNativeReflectConstruct" /* 10568 */;
import closure_2 from "_classCallCheck" /* 41 */;
import _createClass from "_createClass" /* 42 */;
import closure_3 from "_possibleConstructorReturn" /* 93 */;
import closure_4 from "_getPrototypeOf" /* 95 */;
import _inherits from "_inherits" /* 98 */;
const RUMonthNameParser = require;
function _isNativeReflectConstruct() {
try {
const _Boolean = Boolean;
const call = valueOf.call;
const _Reflect = Reflect;
const _Boolean2 = Boolean;
if (typeof call === "unknown") {
let callResult = valueOf();
} else {
callResult = call(constructResult);
}
closure_0 = !callResult;
_isNativeReflectConstruct = function _isNativeReflectConstruct() {
return closure_0;
};
return _isNativeReflectConstruct();
} catch (err) {
}
}
class RUMonthNameParser {
constructor() {
self = this;
tmp = closure_2(this, RUMonthNameParser);
tmp2 = closure_4;
obj = closure_4(RUMonthNameParser);
tmp3 = closure_3;
if (_isNativeReflectConstruct()) {
tmp7 = globalThis;
_Reflect = Reflect;
tmp8 = arguments;
constructResult = Reflect.construct(obj, arguments, tmp2(self).constructor);
} else {
tmp4 = arguments;
tmp5 = arguments;
constructResult = obj(...arguments);
}
return tmp3(self, constructResult);
}
}
_inherits(RUMonthNameParser, _isNativeReflectConstruct2.AbstractParserWithLeftBoundaryChecking);
const items = [
{
key: "innerPatternString",
value: function innerPatternString(arg0) {
return "((?:\u0432)\\s*)?(" + RUMonthNameParser(10437).matchAnyPattern(RUMonthNameParser(10566).MONTH_DICTIONARY) + ")\\s*(?:[,-]?\\s*(" + RUMonthNameParser(10566).YEAR_PATTERN + ")?)?(?=[^\\s\\w]|\\s+[^0-9]|\\s+$|$)";
}
},
{
key: "innerExtract",
value: function innerExtract(createParsingResult, index) {
const formatted = index[2].toLowerCase();
if (index[0].length <= 3) {
if (!RUMonthNameParser(10566).FULL_MONTH_NAME_DICTIONARY[formatted]) {
return null;
}
}
const parsingResult = createParsingResult.createParsingResult(index.index, index.index + index[0].length);
const start = parsingResult.start;
start.imply("day", 1);
const tmp9 = RUMonthNameParser(10566).MONTH_DICTIONARY[formatted];
const start2 = parsingResult.start;
start2.assign("month", tmp9);
if (index[3]) {
const start4 = parsingResult.start;
start4.assign("year", tmp7(10566).parseYear(index[3]));
} else {
const start3 = parsingResult.start;
start3.imply("year", tmp7(10438).findYearClosestToRef(createParsingResult.refDate, 1, tmp9));
}
return parsingResult;
}
}
];
export default _createClass(RUMonthNameParser, items);