decord/source/__polyfill/10xxx/module_10604.js
github-actions da5b5e5efe chore: update source for alpha 346.6
Skipped 1 file(s) >100MB (GitHub limit): source/__polyfill/04xxx/module_4821.js (118.4 MB)
2026-09-12 13:45:10 +00:00

88 lines
2.5 KiB
JavaScript

// Module ID: 10604
// Function ID: 10605
// Dependencies: [41, 42, 93, 95, 96, 98, 10574]
// Module 10604
import AbstractTimeExpressionParser from "AbstractTimeExpressionParser" /* 10574 */;
import _classCallCheck_mod from "_classCallCheck" /* 41 */;
import _createClass from "_createClass" /* 42 */;
import _possibleConstructorReturn from "_possibleConstructorReturn" /* 93 */;
import _getPrototypeOf from "_getPrototypeOf" /* 95 */;
import _get from "_get" /* 96 */;
import _inherits from "_inherits" /* 98 */;
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) {
}
}
let _classCallCheck = _classCallCheck_mod;
class DETimeExpressionParser {
constructor() {
self = this;
tmp = closure_0(this, DETimeExpressionParser);
tmp2 = c2;
obj = c2(DETimeExpressionParser);
tmp3 = closure_1;
if (closure_4()) {
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);
}
}
_classCallCheck = DETimeExpressionParser;
_inherits(DETimeExpressionParser, AbstractTimeExpressionParser.AbstractTimeExpressionParser);
const entry = {
key: "primaryPrefix",
value: function primaryPrefix() {
return "(?:(?:um|von)\\s*)?";
}
};
let items = [
entry,
{
key: "followingPhase",
value: function followingPhase() {
return "\\s*(?:\\-|\\\u2013|\\~|\\\u301C|bis)\\s*";
}
},
{
key: "extractPrimaryTimeComponents",
value: function extractPrimaryTimeComponents(arg0, arg1) {
let fnResult = null;
if (!str.match(/^\s*\d{4}\s*$/)) {
const self = this;
let fn = _get(_getPrototypeOf(_classCallCheck.prototype), "extractPrimaryTimeComponents", this);
if (typeof fn === "function") {
fn = (items) => fn.apply(self, items);
}
const items = [arg0, arg1];
fnResult = fn(items);
}
return fnResult;
}
}
];
export default _createClass(DETimeExpressionParser, items);