Linux unitednationsplay.com 3.10.0-1160.45.1.el7.x86_64 #1 SMP Wed Oct 13 17:20:51 UTC 2021 x86_64
nginx/1.20.1
Server IP : 188.130.139.92 & Your IP : 3.148.250.110
Domains :
Cant Read [ /etc/named.conf ]
User : web
Terminal
Auto Root
Create File
Create Folder
Localroot Suggester
Backdoor Destroyer
Readme
/
home /
www /
wb /
node_modules /
webpack /
lib /
util /
Delete
Unzip
Name
Size
Permission
Date
Action
hash
[ DIR ]
drwxrwxr-x
2022-08-30 11:49
ArrayHelpers.js
1.45
KB
-rw-rw-r--
2022-08-30 11:49
ArrayQueue.js
2.15
KB
-rw-rw-r--
2022-08-30 11:49
AsyncQueue.js
9.41
KB
-rw-rw-r--
2022-08-30 11:49
Hash.js
925
B
-rw-rw-r--
2022-08-30 11:49
IterableHelpers.js
962
B
-rw-rw-r--
2022-08-30 11:49
LazyBucketSortedSet.js
5.6
KB
-rw-rw-r--
2022-08-30 11:49
LazySet.js
4.46
KB
-rw-rw-r--
2022-08-30 11:49
MapHelpers.js
472
B
-rw-rw-r--
2022-08-30 11:49
ParallelismFactorCalculator.js
1.49
KB
-rw-rw-r--
2022-08-30 11:49
Queue.js
1.02
KB
-rw-rw-r--
2022-08-30 11:49
Semaphore.js
1008
B
-rw-rw-r--
2022-08-30 11:49
SetHelpers.js
2.26
KB
-rw-rw-r--
2022-08-30 11:49
SortableSet.js
3.55
KB
-rw-rw-r--
2022-08-30 11:49
StackedCacheMap.js
2.23
KB
-rw-rw-r--
2022-08-30 11:49
StackedMap.js
3.37
KB
-rw-rw-r--
2022-08-30 11:49
StringXor.js
1.09
KB
-rw-rw-r--
2022-08-30 11:49
TupleQueue.js
1.29
KB
-rw-rw-r--
2022-08-30 11:49
TupleSet.js
2.84
KB
-rw-rw-r--
2022-08-30 11:49
URLAbsoluteSpecifier.js
2.49
KB
-rw-rw-r--
2022-08-30 11:49
WeakTupleMap.js
3.36
KB
-rw-rw-r--
2022-08-30 11:49
binarySearchBounds.js
1.86
KB
-rw-rw-r--
2022-08-30 11:49
cleverMerge.js
16.15
KB
-rw-rw-r--
2022-08-30 11:49
comparators.js
12.15
KB
-rw-rw-r--
2022-08-30 11:49
compileBooleanMatcher.js
5.68
KB
-rw-rw-r--
2022-08-30 11:49
create-schema-validation.js
711
B
-rw-rw-r--
2022-08-30 11:49
createHash.js
4.71
KB
-rw-rw-r--
2022-08-30 11:49
deprecation.js
6.3
KB
-rw-rw-r--
2022-08-30 11:49
deterministicGrouping.js
13.44
KB
-rw-rw-r--
2022-08-30 11:49
extractUrlAndGlobal.js
531
B
-rw-rw-r--
2022-08-30 11:49
findGraphRoots.js
5.97
KB
-rw-rw-r--
2022-08-30 11:49
fs.js
11.15
KB
-rw-rw-r--
2022-08-30 11:49
identifier.js
10.79
KB
-rw-rw-r--
2022-08-30 11:49
internalSerializables.js
10.4
KB
-rw-rw-r--
2022-08-30 11:49
makeSerializable.js
640
B
-rw-rw-r--
2022-08-30 11:49
memoize.js
604
B
-rw-rw-r--
2022-08-30 11:49
nonNumericOnlyHash.js
556
B
-rw-rw-r--
2022-08-30 11:49
numberHash.js
1.04
KB
-rw-rw-r--
2022-08-30 11:49
objectToMap.js
346
B
-rw-rw-r--
2022-08-30 11:49
processAsyncTree.js
1.45
KB
-rw-rw-r--
2022-08-30 11:49
propertyAccess.js
1.16
KB
-rw-rw-r--
2022-08-30 11:49
registerExternalSerializer.js
7.73
KB
-rw-rw-r--
2022-08-30 11:49
runtime.js
14.26
KB
-rw-rw-r--
2022-08-30 11:49
semver.js
15.36
KB
-rw-rw-r--
2022-08-30 11:49
serialization.js
3.92
KB
-rw-rw-r--
2022-08-30 11:49
smartGrouping.js
5.15
KB
-rw-rw-r--
2022-08-30 11:49
source.js
1.72
KB
-rw-rw-r--
2022-08-30 11:49
Save
Rename
/* MIT License http://www.opensource.org/licenses/mit-license.php Author Tobias Koppers @sokra */ "use strict"; const quoteMeta = str => { return str.replace(/[-[\]\\/{}()*+?.^$|]/g, "\\$&"); }; const toSimpleString = str => { if (`${+str}` === str) { return str; } return JSON.stringify(str); }; /** * @param {Record<string|number, boolean>} map value map * @returns {boolean|(function(string): string)} true/false, when unconditionally true/false, or a template function to determine the value at runtime */ const compileBooleanMatcher = map => { const positiveItems = Object.keys(map).filter(i => map[i]); const negativeItems = Object.keys(map).filter(i => !map[i]); if (positiveItems.length === 0) return false; if (negativeItems.length === 0) return true; return compileBooleanMatcherFromLists(positiveItems, negativeItems); }; /** * @param {string[]} positiveItems positive items * @param {string[]} negativeItems negative items * @returns {function(string): string} a template function to determine the value at runtime */ const compileBooleanMatcherFromLists = (positiveItems, negativeItems) => { if (positiveItems.length === 0) return () => "false"; if (negativeItems.length === 0) return () => "true"; if (positiveItems.length === 1) return value => `${toSimpleString(positiveItems[0])} == ${value}`; if (negativeItems.length === 1) return value => `${toSimpleString(negativeItems[0])} != ${value}`; const positiveRegexp = itemsToRegexp(positiveItems); const negativeRegexp = itemsToRegexp(negativeItems); if (positiveRegexp.length <= negativeRegexp.length) { return value => `/^${positiveRegexp}$/.test(${value})`; } else { return value => `!/^${negativeRegexp}$/.test(${value})`; } }; const popCommonItems = (itemsSet, getKey, condition) => { const map = new Map(); for (const item of itemsSet) { const key = getKey(item); if (key) { let list = map.get(key); if (list === undefined) { list = []; map.set(key, list); } list.push(item); } } const result = []; for (const list of map.values()) { if (condition(list)) { for (const item of list) { itemsSet.delete(item); } result.push(list); } } return result; }; const getCommonPrefix = items => { let prefix = items[0]; for (let i = 1; i < items.length; i++) { const item = items[i]; for (let p = 0; p < prefix.length; p++) { if (item[p] !== prefix[p]) { prefix = prefix.slice(0, p); break; } } } return prefix; }; const getCommonSuffix = items => { let suffix = items[0]; for (let i = 1; i < items.length; i++) { const item = items[i]; for (let p = item.length - 1, s = suffix.length - 1; s >= 0; p--, s--) { if (item[p] !== suffix[s]) { suffix = suffix.slice(s + 1); break; } } } return suffix; }; const itemsToRegexp = itemsArr => { if (itemsArr.length === 1) { return quoteMeta(itemsArr[0]); } const finishedItems = []; // merge single char items: (a|b|c|d|ef) => ([abcd]|ef) let countOfSingleCharItems = 0; for (const item of itemsArr) { if (item.length === 1) { countOfSingleCharItems++; } } // special case for only single char items if (countOfSingleCharItems === itemsArr.length) { return `[${quoteMeta(itemsArr.sort().join(""))}]`; } const items = new Set(itemsArr.sort()); if (countOfSingleCharItems > 2) { let singleCharItems = ""; for (const item of items) { if (item.length === 1) { singleCharItems += item; items.delete(item); } } finishedItems.push(`[${quoteMeta(singleCharItems)}]`); } // special case for 2 items with common prefix/suffix if (finishedItems.length === 0 && items.size === 2) { const prefix = getCommonPrefix(itemsArr); const suffix = getCommonSuffix( itemsArr.map(item => item.slice(prefix.length)) ); if (prefix.length > 0 || suffix.length > 0) { return `${quoteMeta(prefix)}${itemsToRegexp( itemsArr.map(i => i.slice(prefix.length, -suffix.length || undefined)) )}${quoteMeta(suffix)}`; } } // special case for 2 items with common suffix if (finishedItems.length === 0 && items.size === 2) { const it = items[Symbol.iterator](); const a = it.next().value; const b = it.next().value; if (a.length > 0 && b.length > 0 && a.slice(-1) === b.slice(-1)) { return `${itemsToRegexp([a.slice(0, -1), b.slice(0, -1)])}${quoteMeta( a.slice(-1) )}`; } } // find common prefix: (a1|a2|a3|a4|b5) => (a(1|2|3|4)|b5) const prefixed = popCommonItems( items, item => (item.length >= 1 ? item[0] : false), list => { if (list.length >= 3) return true; if (list.length <= 1) return false; return list[0][1] === list[1][1]; } ); for (const prefixedItems of prefixed) { const prefix = getCommonPrefix(prefixedItems); finishedItems.push( `${quoteMeta(prefix)}${itemsToRegexp( prefixedItems.map(i => i.slice(prefix.length)) )}` ); } // find common suffix: (a1|b1|c1|d1|e2) => ((a|b|c|d)1|e2) const suffixed = popCommonItems( items, item => (item.length >= 1 ? item.slice(-1) : false), list => { if (list.length >= 3) return true; if (list.length <= 1) return false; return list[0].slice(-2) === list[1].slice(-2); } ); for (const suffixedItems of suffixed) { const suffix = getCommonSuffix(suffixedItems); finishedItems.push( `${itemsToRegexp( suffixedItems.map(i => i.slice(0, -suffix.length)) )}${quoteMeta(suffix)}` ); } // TODO further optimize regexp, i. e. // use ranges: (1|2|3|4|a) => [1-4a] const conditional = finishedItems.concat(Array.from(items, quoteMeta)); if (conditional.length === 1) return conditional[0]; return `(${conditional.join("|")})`; }; compileBooleanMatcher.fromLists = compileBooleanMatcherFromLists; compileBooleanMatcher.itemsToRegexp = itemsToRegexp; module.exports = compileBooleanMatcher;