Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

merged master

  • Loading branch information...
commit cf968beb988e14a4d337c48cb4e011a17070b065 1 parent 0199e91
@rvagg rvagg authored
View
183 qwery.js
@@ -13,19 +13,15 @@
var context = this
, doc = document
, old = context.qwery
+ , c, i, j, k, l, m, o, p, r, v
+ , el, node, classes, item, items, token
, html = doc.documentElement
- , byClass = 'getElementsByClassName'
- , byTag = 'getElementsByTagName'
- , byId = 'getElementById'
- , qSA = 'querySelectorAll'
, id = /#([\w\-]+)/
, clas = /\.[\w\-]+/g
, idOnly = /^#([\w\-]+$)/
, classOnly = /^\.([\w\-]+)$/
, tagOnly = /^([\w\-]+)$/
, tagAndOrClass = /^([\w]+)?\.([\w\-]+)$/
- , sibFirst = /^\s*[\~+]/
- , splittable = /(^|,)\s*[>~+]/
, normalizr = /\s*([\s\+\~>])\s*/g
, splitters = /[\s\>\+\~]/
, splittersMore = /(?![\s\w\-\/\?\&\=\:\.\(\)\!,@#%<>\{\}\$\*\^'"]*\]|[\s\w\+\-]*\))/
@@ -48,7 +44,9 @@
}
, '+': function (node, contestant, p1, p2) {
if (!node) return false
- return (p1 = previous(node)) && (p2 = previous(contestant)) && p1 == p2 && p1
+ p1 = previous(node)
+ p2 = previous(contestant)
+ return p1 && p2 && p1 == p2 && p1
}
}
, hrefExtended = function() {
@@ -64,7 +62,8 @@
return this.c[k] || undefined
}
, s: function (k, v) {
- return (this.c[k] = v)
+ this.c[k] = v
+ return v
}
}
@@ -73,23 +72,17 @@
, attrCache = new cache()
, tokenCache = new cache()
- function each(a, fn) {
- // don't bother with native forEach, slow for this simple case
- for (var i = 0, l = a.length; i < l; i++) fn.call(null, a[i])
- }
-
function flatten(ar) {
- var r = []
- each(ar, function(a) {
- // concat won't work properly with NodeList
- if (arrayLike(a)) each(a, function(e) { r.push(e) })
- else r.push(a)
- });
+ r = []
+ for (i = 0, l = ar.length; i < l; i++) {
+ if (arrayLike(ar[i])) r = r.concat(ar[i])
+ else r.push(ar[i])
+ }
return r
}
function previous(n) {
- while (n = n.previousSibling) if (n.nodeType === 1) break;
+ while (n = n.previousSibling) if (n.nodeType == 1) break;
return n
}
@@ -107,7 +100,7 @@
// div.hello[title="world"]:foo('bar'), div, .hello, [title="world"], title, =, world, :foo('bar'), foo, ('bar'), bar]
function interpret(whole, tag, idsAndClasses, wholeAttribute, attribute, qualifier, value, wholePseudo, pseudo, wholePseudoVal, pseudoVal) {
- var i, m, c, k, o, classes
+ var m, c, k;
if (tag && this.tagName.toLowerCase() !== tag) return false
if (idsAndClasses && (m = idsAndClasses.match(id)) && m[1] !== this.id) return false
if (idsAndClasses && (classes = idsAndClasses.match(clas))) {
@@ -157,80 +150,70 @@
return 0
}
- function _qwery(selector, _root) {
- var r = [], ret = [], m, token, tag, els, root, intr, item, skipCheck
+ function _qwery(selector) {
+ var r = [], ret = [], i, j = 0, k, l, m, p, token, tag, els, root, intr, item, children
, tokens = tokenCache.g(selector) || tokenCache.s(selector, selector.split(tokenizr))
, dividedTokens = selector.match(dividers)
+ tokens = tokens.slice(0) // this makes a copy of the array so the cached original is not affected
if (!tokens.length) return r
- tokens = tokens.slice(0) // this makes a copy of the array so the cached original is not affected
token = tokens.pop()
- if (!(root = tokens.length && (m = tokens[tokens.length - 1].match(idOnly)) ? doc[byId](m[1]) : doc))
- return r
- if (tokens.length && tokens[0] === '')
- root = _root
- else if (tokens.length && (m = tokens[0].match(idOnly)) && !(root = doc[byId](m[1])))
- return r;
+ root = tokens.length && (m = tokens[tokens.length - 1].match(idOnly)) ? doc.getElementById(m[1]) : doc
+
+ if (!root) return r
intr = q(token)
- els = root.nodeType !== 9 && dividedTokens && /^[+~]$/.test(dividedTokens[dividedTokens.length - 1]) ?
- function (r) {
+ els = dividedTokens && /^[+~]$/.test(dividedTokens[dividedTokens.length - 1]) ? function (r) {
while (root = root.nextSibling) {
- root.nodeType === 1 && (intr[1] ? intr[1] === root.tagName.toLowerCase() : 1) && r.push(root)
+ root.nodeType == 1 && (intr[1] ? intr[1] == root.tagName.toLowerCase() : 1) && r.push(root)
}
return r
}([]) :
- root[byTag](intr[1] || '*')
- each(els, function(e) { if (item = interpret.apply(e, intr)) r.push(item) })
+ root.getElementsByTagName(intr[1] || '*')
+ for (i = 0, l = els.length; i < l; i++) if (item = interpret.apply(els[i], intr)) r[j++] = item
if (!tokens.length) return r
// loop through all descendent tokens
- //sibFirst.test(selector) && (_root = null)
- each(r, function(e) { if (ancestorMatch(e, tokens, dividedTokens)) { ret.push(e)} })
+ for (j = 0, l = r.length, k = 0; j < l; j++) {
+ if (_ancestorMatch(r[j], tokens, dividedTokens)) {
+ ret[k++] = r[j];
+ }
+ }
return ret
}
function is(el, selector, root) {
if (isNode(selector)) return el == selector
+
if (arrayLike(selector)) return !!~flatten(selector).indexOf(el) // if selector is an array, is el a member?
-
+
var selectors = selector.split(','), tokens, dividedTokens
while (selector = selectors.pop()) {
tokens = tokenCache.g(selector) || tokenCache.s(selector, selector.split(tokenizr))
dividedTokens = selector.match(dividers)
tokens = tokens.slice(0) // copy array
- if (interpret.apply(el, q(tokens.pop())) && (!tokens.length || ancestorMatch(el, tokens, dividedTokens, root))) {
+ if (interpret.apply(el, q(tokens.pop())) && (!tokens.length || _ancestorMatch(el, tokens, dividedTokens, root))) {
return true
}
- }
+ }
}
-
- function ancestorMatch(el, tokens, dividedTokens, root) {
- var i = tokens.length, chunks, cands = [ el ], ncands, base
- , findCands = function(cand) {
- base = cand
- while (cand = walker[dividedTokens[i]](cand, base)) {
- interpret.apply(cand, chunks) && ncands.push(cand);
- }
- }
-
- while (i--) {
- chunks = q(tokens[i])
- ncands = []
- each(cands, findCands)
- if (!ncands.length) return false
- cands = ncands
- }
- if (root) {
- for (i = 0; i < cands.length; i++) {
- if (isAncestor(cands[i], root)) return true
+
+ function _ancestorMatch(el, tokens, dividedTokens, root) {
+ var p = el, found;
+ // loop through each token backwards crawling up tree
+ for (i = tokens.length; i--;) {
+ // loop through parent nodes
+ while (p = walker[dividedTokens[i]](p, el)) {
+ if (found = interpret.apply(p, q(tokens[i]))) break;
}
- return false;
}
- return cands.length > 0
- }
+ if (root && found) found = isAncestor(found, root)
+
+ return !!found
+ }
+
function isNode(el) {
return (el && el.nodeType && (el.nodeType == 1 || el.nodeType == 9))
}
@@ -253,43 +236,24 @@
function normalizeRoot(root) {
if (!root) return doc
- if (typeof root === 'string') return qwery(root)[0]
+ if (typeof root == 'string') return qwery(root)[0]
if (arrayLike(root)) return root[0]
return root
}
function qwery(selector, _root) {
- var m, el, root = normalizeRoot(_root)
+ var root = normalizeRoot(_root)
if (!root || !selector) return []
if (selector === window || isNode(selector)) {
return !_root || (selector !== window && isNode(root) && isAncestor(selector, root)) ? [selector] : []
}
if (selector && arrayLike(selector)) return flatten(selector)
- if (m = selector.match(idOnly)) return (el = doc[byId](m[1])) ? [el] : []
- if (m = selector.match(tagOnly)) return flatten(root[byTag](m[1]))
+ if (m = selector.match(idOnly)) return (el = doc.getElementById(m[1])) ? [el] : []
+ if (m = selector.match(tagOnly)) return flatten(root.getElementsByTagName(m[1]))
return select(selector, root)
}
- function relationshipFirst(root, collector) {
- var quick = function(s) {
- collector(root, s)
- }
- , splitter = function(s) {
- var oid, nid, ctx = root;
- if (!(nid = oid = root.getAttribute('id')))
- root.setAttribute('id', nid = '__qwerymeupscotty')
- ctx = doc
- s = '#' + nid + s
- collector(ctx, s)
- !oid && root.setAttribute('id', oid)
- }
-
- return function(s) {
- (root !== doc && splittable.test(s) ? splitter : quick)(s)
- }
- }
-
var isAncestor = 'compareDocumentPosition' in html ?
function (element, container) {
return (container.compareDocumentPosition(element) & 16) == 16
@@ -304,36 +268,43 @@
},
supportsCSS3 = function () {
- try {
- return doc[byClass] && doc.querySelector && doc[qSA] && doc[qSA](':nth-of-type(1)').length
- } catch (e) { return false }
+ if (!doc.querySelector || !doc.querySelectorAll) return false
+
+ try { return (doc.querySelectorAll(':nth-of-type(1)').length) }
+ catch (e) { return false }
}(),
- select = false && supportsCSS3 ?
+ select = supportsCSS3 ?
function (selector, root) {
- var results = [], m = selector.match(classOnly)
- if (m) return flatten(root[byClass](m[1]))
- if (root === doc || !splittable.test(selector)) return root[qSA](selector)
- each(selector.split(','), relationshipFirst(root, function(ctx, s) {
- results.push(ctx[qSA](s))
- }))
- return flatten(results)
+ return doc.getElementsByClassName && (m = selector.match(classOnly)) ?
+ flatten(root.getElementsByClassName(m[1])) :
+ flatten(root.querySelectorAll(selector))
} :
function (selector, root) {
- var result = [], m, r, skipCheck
selector = selector.replace(normalizr, '$1')
+ var result = [], element, collection, collections = [], i
if (m = selector.match(tagAndOrClass)) {
- // simple & common case, safe to use non-CSS3 qSA if present
- if (root[qSA]) return flatten(root[qSA](selector))
+ items = root.getElementsByTagName(m[1] || '*');
r = classCache.g(m[2]) || classCache.s(m[2], new RegExp('(^|\\s+)' + m[2] + '(\\s+|$)'));
- each(root[byTag](m[1] || '*'), function(it) { r.test(it.className) && result.push(it) })
+ for (i = 0, l = items.length, j = 0; i < l; i++) {
+ r.test(items[i].className) && (result[j++] = items[i]);
+ }
return result
}
- each(selector.split(','), relationshipFirst(root, function(ctx, s) {
- each(_qwery(s, ctx), function(e) {
- if (ctx === doc || isAncestor(e, root)) result.push(e)
- })
- }))
+ for (i = 0, items = selector.split(','), l = items.length; i < l; i++) {
+ collections[i] = _qwery(items[i])
+ }
+ for (i = 0, l = collections.length; i < l && (collection = collections[i]); i++) {
+ var ret = collection
+ if (root !== doc) {
+ ret = []
+ for (j = 0, m = collection.length; j < m && (element = collection[j]); j++) {
+ // make sure element is a descendent of root
+ isAncestor(element, root) && ret.push(element)
+ }
+ }
+ result = result.concat(ret)
+ }
return uniq(result)
}
View
2  qwery.min.js
@@ -4,4 +4,4 @@
* copyright Dustin Diaz & Jacob Thornton 2011
* MIT License
*/
-!function(a,b){typeof module!="undefined"?module.exports=b():typeof define=="function"&&typeof define.amd=="object"?define(b):this[a]=b()}("qwery",function(){function C(){this.c={}}function H(a,b){for(var c=0,d=a.length;c<d;c++)b.call(null,a[c])}function I(a){var b=[];return H(a,function(a){U(a)?H(a,function(a){b.push(a)}):b.push(a)}),b}function J(a){while(a=a.previousSibling)if(a.nodeType===1)break;return a}function K(a,b){return b!="href"&&b!="src"||!B?a.getAttribute(b):a.getAttribute(b,2)}function L(a){return a.match(z)}function M(a,b,c,d,e,f,g,h,k,l,m){var n,o,p,q,r,s;if(b&&this.tagName.toLowerCase()!==b)return!1;if(c&&(o=c.match(i))&&o[1]!==this.id)return!1;if(c&&(s=c.match(j)))for(n=s.length;n--;){p=s[n].slice(1);if(!(D.g(p)||D.s(p,new RegExp("(^|\\s+)"+p+"(\\s+|$)"))).test(this.className))return!1}if(k&&W.pseudos[k]&&!W.pseudos[k](this,m))return!1;if(d&&!g){r=this.attributes;for(q in r)if(Object.prototype.hasOwnProperty.call(r,q)&&(r[q].name||q)==e)return this}return d&&!O(f,K(this,e)||"",g)?!1:this}function N(a){return E.g(a)||E.s(a,a.replace(t,"\\$1"))}function O(a,b,c){switch(a){case"=":return b==c;case"^=":return b.match(F.g("^="+c)||F.s("^="+c,new RegExp("^"+N(c))));case"$=":return b.match(F.g("$="+c)||F.s("$="+c,new RegExp(N(c)+"$")));case"*=":return b.match(F.g(c)||F.s(c,new RegExp(N(c))));case"~=":return b.match(F.g("~="+c)||F.s("~="+c,new RegExp("(?:^|\\s+)"+N(c)+"(?:\\s+|$)")));case"|=":return b.match(F.g("|="+c)||F.s("|="+c,new RegExp("^"+N(c)+"(-|$)")))}return 0}function P(a,c){var d=[],e=[],h,i,j,l,m,n,o,p,q=G.g(a)||G.s(a,a.split(y)),r=a.match(x);if(!q.length)return d;q=q.slice(0),i=q.pop();if(!(m=q.length&&(h=q[q.length-1].match(k))?b[g](h[1]):b))return d;if(q.length&&q[0]==="")m=c;else if(q.length&&(h=q[0].match(k))&&!(m=b[g](h[1])))return d;return n=L(i),l=m.nodeType!==9&&r&&/^[+~]$/.test(r[r.length-1])?function(a){while(m=m.nextSibling)m.nodeType===1&&(n[1]?n[1]===m.tagName.toLowerCase():1)&&a.push(m);return a}([]):m[f](n[1]||"*"),H(l,function(a){(o=M.apply(a,n))&&d.push(o)}),q.length?(H(d,function(a){R(a,q,r)&&e.push(a)}),e):d}function Q(a,b,c){if(S(b))return a==b;if(U(b))return!!~I(b).indexOf(a);var d=b.split(","),e,f;while(b=d.pop()){e=G.g(b)||G.s(b,b.split(y)),f=b.match(x),e=e.slice(0);if(M.apply(a,L(e.pop()))&&(!e.length||R(a,e,f,c)))return!0}}function R(a,b,c,d){var e=b.length,f,g=[a],h,i,j=function(a){i=a;while(a=A[c[e]](a,i))M.apply(a,f)&&h.push(a)};while(e--){f=L(b[e]),h=[],H(g,j);if(!h.length)return!1;g=h}if(d){for(e=0;e<g.length;e++)if(Y(g[e],d))return!0;return!1}return g.length>0}function S(a){return a&&a.nodeType&&(a.nodeType==1||a.nodeType==9)}function T(a){var b=[],c,d;e:for(c=0;c<a.length;c++){for(d=0;d<b.length;d++)if(b[d]==a[c])continue e;b[b.length]=a[c]}return b}function U(a){return typeof a=="object"&&isFinite(a.length)}function V(a){return a?typeof a=="string"?W(a)[0]:U(a)?a[0]:a:b}function W(a,c){var d,e,h=V(c);return!h||!a?[]:a===window||S(a)?!c||a!==window&&S(h)&&Y(a,h)?[a]:[]:a&&U(a)?I(a):(d=a.match(k))?(e=b[g](d[1]))?[e]:[]:(d=a.match(m))?I(h[f](d[1])):$(a,h)}function X(a,c){var d=function(b){c(a,b)},e=function(d){var e,f,g=a;(f=e=a.getAttribute("id"))||a.setAttribute("id",f="__qwerymeupscotty"),g=b,d="#"+f+d,c(g,d),!e&&a.setAttribute("id",e)};return function(c){(a!==b&&p.test(c)?e:d)(c)}}var a=this,b=document,c=a.qwery,d=b.documentElement,e="getElementsByClassName",f="getElementsByTagName",g="getElementById",h="querySelectorAll",i=/#([\w\-]+)/,j=/\.[\w\-]+/g,k=/^#([\w\-]+$)/,l=/^\.([\w\-]+)$/,m=/^([\w\-]+)$/,n=/^([\w]+)?\.([\w\-]+)$/,o=/^\s*[\~+]/,p=/(^|,)\s*[>~+]/,q=/\s*([\s\+\~>])\s*/g,r=/[\s\>\+\~]/,s=/(?![\s\w\-\/\?\&\=\:\.\(\)\!,@#%<>\{\}\$\*\^'"]*\]|[\s\w\+\-]*\))/,t=/([.*+?\^=!:${}()|\[\]\/\\])/g,u=/^([a-z0-9]+)?(?:([\.\#]+[\w\-\.#]+)?)/,v=/\[([\w\-]+)(?:([\|\^\$\*\~]?\=)['"]?([ \w\-\/\?\&\=\:\.\(\)\!,@#%<>\{\}\$\*\^]+)["']?)?\]/,w=/:([\w\-]+)(\(['"]?([\s\w\+\-]+)['"]?\))?/,x=new RegExp("("+r.source+")"+s.source,"g"),y=new RegExp(r.source+s.source),z=new RegExp(u.source+"("+v.source+")?"+"("+w.source+")?"),A={" ":function(a){return a&&a!==d&&a.parentNode},">":function(a,b){return a&&a.parentNode==b.parentNode&&a.parentNode},"~":function(a){return a&&a.previousSibling},"+":function(a,b,c,d){return a?(c=J(a))&&(d=J(b))&&c==d&&c:!1}},B=function(){var a=b.createElement("p");return(a.innerHTML='<a href="#x">x</a>')&&a.firstChild.getAttribute("href")!="#x"}();C.prototype={g:function(a){return this.c[a]||undefined},s:function(a,b){return this.c[a]=b}};var D=new C,E=new C,F=new C,G=new C,Y="compareDocumentPosition"in d?function(a,b){return(b.compareDocumentPosition(a)&16)==16}:"contains"in d?function(a,c){return c=c==b||c==window?d:c,c!==a&&c.contains(a)}:function(a,b){while(a=a.parentNode)if(a===b)return 1;return 0},Z=function(){try{return b[e]&&b.querySelector&&b[h]&&b[h](":nth-of-type(1)").length}catch(a){return!1}}(),$=function(a,c){var d=[],e,g,i;return a=a.replace(q,"$1"),(e=a.match(n))?c[h]?I(c[h](a)):(g=D.g(e[2])||D.s(e[2],new RegExp("(^|\\s+)"+e[2]+"(\\s+|$)")),H(c[f](e[1]||"*"),function(a){g.test(a.className)&&d.push(a)}),d):(H(a.split(","),X(c,function(a,e){H(P(e,a),function(e){(a===b||Y(e,c))&&d.push(e)})})),T(d))};return W.uniq=T,W.is=Q,W.pseudos={},W.noConflict=function(){return a.qwery=c,this},W})
+!function(a,b){typeof module!="undefined"?module.exports=b():typeof define=="function"&&typeof define.amd=="object"?define(b):this[a]=b()}("qwery",function(){function M(){this.c={}}function R(a){l=[];for(e=0,h=a.length;e<h;e++)bb(a[e])?l=l.concat(a[e]):l.push(a[e]);return l}function S(a){while(a=a.previousSibling)if(a.nodeType==1)break;return a}function T(a,b){return(b=="href"||b=="src")&&L?a.getAttribute(b,2):a.getAttribute(b)}function U(a){return a.match(J)}function V(a,b,c,d,f,g,h,i,k,l,m){var n,o,q;if(b&&this.tagName.toLowerCase()!==b)return!1;if(c&&(n=c.match(u))&&n[1]!==this.id)return!1;if(c&&(p=c.match(v)))for(e=p.length;e--;){o=p[e].slice(1);if(!(N.g(o)||N.s(o,new RegExp("(^|\\s+)"+o+"(\\s+|$)"))).test(this.className))return!1}if(k&&bd.pseudos[k]&&!bd.pseudos[k](this,m))return!1;if(d&&!h){j=this.attributes;for(q in j)if(Object.prototype.hasOwnProperty.call(j,q)&&(j[q].name||q)==f)return this}return d&&!X(g,T(this,f)||"",h)?!1:this}function W(a){return O.g(a)||O.s(a,a.replace(D,"\\$1"))}function X(a,b,c){switch(a){case"=":return b==c;case"^=":return b.match(P.g("^="+c)||P.s("^="+c,new RegExp("^"+W(c))));case"$=":return b.match(P.g("$="+c)||P.s("$="+c,new RegExp(W(c)+"$")));case"*=":return b.match(P.g(c)||P.s(c,new RegExp(W(c))));case"~=":return b.match(P.g("~="+c)||P.s("~="+c,new RegExp("(?:^|\\s+)"+W(c)+"(?:\\s+|$)")));case"|=":return b.match(P.g("|="+c)||P.s("|="+c,new RegExp("^"+W(c)+"(-|$)")))}return 0}function Y(a){var c=[],d=[],e,f=0,g,h,i,j,k,l,m,n,o,p,q,r=Q.g(a)||Q.s(a,a.split(I)),s=a.match(H);r=r.slice(0);if(!r.length)return c;k=r.pop(),n=r.length&&(i=r[r.length-1].match(w))?b.getElementById(i[1]):b;if(!n)return c;o=U(k),m=s&&/^[+~]$/.test(s[s.length-1])?function(a){while(n=n.nextSibling)n.nodeType==1&&(o[1]?o[1]==n.tagName.toLowerCase():1)&&a.push(n);return a}([]):n.getElementsByTagName(o[1]||"*");for(e=0,h=m.length;e<h;e++)if(p=V.apply(m[e],o))c[f++]=p;if(!r.length)return c;for(f=0,h=c.length,g=0;f<h;f++)$(c[f],r,s)&&(d[g++]=c[f]);return d}function Z(a,b,c){if(_(b))return a==b;if(bb(b))return!!~R(b).indexOf(a);var d=b.split(","),e,f;while(b=d.pop()){e=Q.g(b)||Q.s(b,b.split(I)),f=b.match(H),e=e.slice(0);if(V.apply(a,U(e.pop()))&&(!e.length||$(a,e,f,c)))return!0}}function $(a,b,c,d){var f=a,g;for(e=b.length;e--;)while(f=K[c[e]](f,a))if(g=V.apply(f,U(b[e])))break;return d&&g&&(g=be(g,d)),!!g}function _(a){return a&&a.nodeType&&(a.nodeType==1||a.nodeType==9)}function ba(a){var b=[],c,d;e:for(c=0;c<a.length;c++){for(d=0;d<b.length;d++)if(b[d]==a[c])continue e;b[b.length]=a[c]}return b}function bb(a){return typeof a=="object"&&isFinite(a.length)}function bc(a){return a?typeof a=="string"?bd(a)[0]:bb(a)?a[0]:a:b}function bd(a,c){var d=bc(c);return!d||!a?[]:a===window||_(a)?!c||a!==window&&_(d)&&be(a,d)?[a]:[]:a&&bb(a)?R(a):(i=a.match(w))?(n=b.getElementById(i[1]))?[n]:[]:(i=a.match(y))?R(d.getElementsByTagName(i[1])):bg(a,d)}var a=this,b=document,c=a.qwery,d,e,f,g,h,i,j,k,l,m,n,o,p,q,r,s,t=b.documentElement,u=/#([\w\-]+)/,v=/\.[\w\-]+/g,w=/^#([\w\-]+$)/,x=/^\.([\w\-]+)$/,y=/^([\w\-]+)$/,z=/^([\w]+)?\.([\w\-]+)$/,A=/\s*([\s\+\~>])\s*/g,B=/[\s\>\+\~]/,C=/(?![\s\w\-\/\?\&\=\:\.\(\)\!,@#%<>\{\}\$\*\^'"]*\]|[\s\w\+\-]*\))/,D=/([.*+?\^=!:${}()|\[\]\/\\])/g,E=/^([a-z0-9]+)?(?:([\.\#]+[\w\-\.#]+)?)/,F=/\[([\w\-]+)(?:([\|\^\$\*\~]?\=)['"]?([ \w\-\/\?\&\=\:\.\(\)\!,@#%<>\{\}\$\*\^]+)["']?)?\]/,G=/:([\w\-]+)(\(['"]?([\s\w\+\-]+)['"]?\))?/,H=new RegExp("("+B.source+")"+C.source,"g"),I=new RegExp(B.source+C.source),J=new RegExp(E.source+"("+F.source+")?"+"("+G.source+")?"),K={" ":function(a){return a&&a!==t&&a.parentNode},">":function(a,b){return a&&a.parentNode==b.parentNode&&a.parentNode},"~":function(a){return a&&a.previousSibling},"+":function(a,b,c,d){return a?(c=S(a),d=S(b),c&&d&&c==d&&c):!1}},L=function(){var a=b.createElement("p");return(a.innerHTML='<a href="#x">x</a>')&&a.firstChild.getAttribute("href")!="#x"}();M.prototype={g:function(a){return this.c[a]||undefined},s:function(a,b){return this.c[a]=b,b}};var N=new M,O=new M,P=new M,Q=new M,be="compareDocumentPosition"in t?function(a,b){return(b.compareDocumentPosition(a)&16)==16}:"contains"in t?function(a,c){return c=c==b||c==window?t:c,c!==a&&c.contains(a)}:function(a,b){while(a=a.parentNode)if(a===b)return 1;return 0},bf=function(){if(!b.querySelector||!b.querySelectorAll)return!1;try{return b.querySelectorAll(":nth-of-type(1)").length}catch(a){return!1}}(),bg=bf?function(a,c){return b.getElementsByClassName&&(i=a.match(x))?R(c.getElementsByClassName(i[1])):R(c.querySelectorAll(a))}:function(a,c){a=a.replace(A,"$1");var d=[],e,g,j=[],k;if(i=a.match(z)){r=c.getElementsByTagName(i[1]||"*"),l=N.g(i[2])||N.s(i[2],new RegExp("(^|\\s+)"+i[2]+"(\\s+|$)"));for(k=0,h=r.length,f=0;k<h;k++)l.test(r[k].className)&&(d[f++]=r[k]);return d}for(k=0,r=a.split(","),h=r.length;k<h;k++)j[k]=Y(r[k]);for(k=0,h=j.length;k<h&&(g=j[k]);k++){var m=g;if(c!==b){m=[];for(f=0,i=g.length;f<i&&(e=g[f]);f++)be(e,c)&&m.push(e)}d=d.concat(m)}return ba(d)};return bd.uniq=ba,bd.is=Z,bd.pseudos={},bd.noConflict=function(){return a.qwery=c,this},bd})
View
BIN  vendor/.DS_Store
Binary file not shown
View
2  vendor/nw.js
@@ -1677,4 +1677,4 @@
}
};
-})(this);
+})(this);
View
2  vendor/sizzle.js
@@ -1397,4 +1397,4 @@ var posProcess = function( selector, context ) {
window.Sizzle = Sizzle;
-})();
+})();
Please sign in to comment.
Something went wrong with that request. Please try again.