Skipped 1 file(s) >100MB (GitHub limit): source/__polyfill/04xxx/module_4821.js (118.4 MB)
90 lines
2.6 KiB
JavaScript
90 lines
2.6 KiB
JavaScript
// Module ID: 10595
|
|
// Function ID: 10596
|
|
// Dependencies: [41, 42, 93, 95, 98, 10579]
|
|
|
|
// Module 10595
|
|
import Filter from "Filter" /* 10579 */;
|
|
import _classCallCheck_mod from "_classCallCheck" /* 41 */;
|
|
import _createClass from "_createClass" /* 42 */;
|
|
import _possibleConstructorReturn from "_possibleConstructorReturn" /* 93 */;
|
|
import _getPrototypeOf from "_getPrototypeOf" /* 95 */;
|
|
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 ENUnlikelyFormatFilter {
|
|
constructor() {
|
|
self = this;
|
|
tmp = closure_0(this, ENUnlikelyFormatFilter);
|
|
tmp2 = c2;
|
|
obj = c2(ENUnlikelyFormatFilter);
|
|
tmp3 = closure_1;
|
|
if (closure_3()) {
|
|
tmp5 = globalThis;
|
|
_Reflect = Reflect;
|
|
constructResult = Reflect.construct(obj, [], tmp2(self).constructor);
|
|
} else {
|
|
constructResult = obj.apply(self, undefined);
|
|
}
|
|
return tmp3(self, constructResult);
|
|
}
|
|
}
|
|
_classCallCheck = ENUnlikelyFormatFilter;
|
|
_inherits(ENUnlikelyFormatFilter, Filter.Filter);
|
|
const entry = {
|
|
key: "isValid",
|
|
value: function isValid(text, text2) {
|
|
closure_0 = text2;
|
|
const str2 = text2.text.trim();
|
|
if (str2 === str3.trim()) {
|
|
return true;
|
|
} else {
|
|
if ("may" === str2.toLowerCase()) {
|
|
const str5 = text.text.substring(0, text2.index);
|
|
if (!str6.match(/\b(in)$/i)) {
|
|
text.debug(() => {
|
|
console.log("Removing unlikely result: " + closure_0);
|
|
});
|
|
return false;
|
|
}
|
|
str6 = text.text.substring(0, text2.index).trim();
|
|
}
|
|
const formatted = str2.toLowerCase();
|
|
const endsWithResult = formatted.endsWith("the second");
|
|
let flag2 = !endsWithResult;
|
|
if (endsWithResult) {
|
|
flag2 = false;
|
|
if (str9.trim().length > 0) {
|
|
text.debug(() => {
|
|
console.log("Removing unlikely result: " + closure_0);
|
|
});
|
|
flag2 = false;
|
|
}
|
|
str9 = text.text.substring(text2.index + text2.text.length);
|
|
}
|
|
return flag2;
|
|
}
|
|
str3 = text.text;
|
|
}
|
|
};
|
|
const items = [entry];
|
|
|
|
export default _createClass(ENUnlikelyFormatFilter, items);
|