Server IP : 185.86.78.101 / Your IP : 216.73.216.124 Web Server : Apache System : Linux 675867-vds-valikoshka1996.gmhost.pp.ua 5.4.0-150-generic #167-Ubuntu SMP Mon May 15 17:35:05 UTC 2023 x86_64 User : www ( 1000) PHP Version : 7.4.33 Disable Function : passthru,exec,system,putenv,chroot,chgrp,chown,shell_exec,popen,proc_open,pcntl_exec,ini_alter,ini_restore,dl,openlog,syslog,readlink,symlink,popepassthru,pcntl_alarm,pcntl_fork,pcntl_waitpid,pcntl_wait,pcntl_wifexited,pcntl_wifstopped,pcntl_wifsignaled,pcntl_wifcontinued,pcntl_wexitstatus,pcntl_wtermsig,pcntl_wstopsig,pcntl_signal,pcntl_signal_dispatch,pcntl_get_last_error,pcntl_strerror,pcntl_sigprocmask,pcntl_sigwaitinfo,pcntl_sigtimedwait,pcntl_exec,pcntl_getpriority,pcntl_setpriority,imap_open,apache_setenv MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : OFF | Sudo : ON | Pkexec : OFF Directory : /www/wwwroot/mifepriston.org/node_modules/css-select/lib/ |
Upload File : |
var attributes = require("./attributes.js"); var Pseudos = require("./pseudos"); /* all available rules */ module.exports = { __proto__: null, attribute: attributes.compile, pseudo: Pseudos.compile, //tags tag: function(next, data, options) { var name = data.name; var adapter = options.adapter; return function tag(elem) { return adapter.getName(elem) === name && next(elem); }; }, //traversal descendant: function(next, data, options) { // eslint-disable-next-line no-undef var isFalseCache = typeof WeakSet !== "undefined" ? new WeakSet() : null; var adapter = options.adapter; return function descendant(elem) { var found = false; while (!found && (elem = adapter.getParent(elem))) { if (!isFalseCache || !isFalseCache.has(elem)) { found = next(elem); if (!found && isFalseCache) { isFalseCache.add(elem); } } } return found; }; }, _flexibleDescendant: function(next, data, options) { var adapter = options.adapter; // Include element itself, only used while querying an array return function descendant(elem) { var found = next(elem); while (!found && (elem = adapter.getParent(elem))) { found = next(elem); } return found; }; }, parent: function(next, data, options) { if (options && options.strict) { throw new Error("Parent selector isn't part of CSS3"); } var adapter = options.adapter; return function parent(elem) { return adapter.getChildren(elem).some(test); }; function test(elem) { return adapter.isTag(elem) && next(elem); } }, child: function(next, data, options) { var adapter = options.adapter; return function child(elem) { var parent = adapter.getParent(elem); return !!parent && next(parent); }; }, sibling: function(next, data, options) { var adapter = options.adapter; return function sibling(elem) { var siblings = adapter.getSiblings(elem); for (var i = 0; i < siblings.length; i++) { if (adapter.isTag(siblings[i])) { if (siblings[i] === elem) break; if (next(siblings[i])) return true; } } return false; }; }, adjacent: function(next, data, options) { var adapter = options.adapter; return function adjacent(elem) { var siblings = adapter.getSiblings(elem), lastElement; for (var i = 0; i < siblings.length; i++) { if (adapter.isTag(siblings[i])) { if (siblings[i] === elem) break; lastElement = siblings[i]; } } return !!lastElement && next(lastElement); }; }, universal: function(next) { return next; } };