| 154 | } |
| 155 | |
| 156 | function oe(e, t, r, i) { |
| 157 | var o, s, l, c, f, h, v, m = t && t.ownerDocument, T = t ? t.nodeType : 9; |
| 158 | if (r = r || [], "string" != typeof e || !e || 1 !== T && 9 !== T && 11 !== T) return r; |
| 159 | if (!i && ((t ? t.ownerDocument || t : w) !== d && p(t), t = t || d, g)) { |
| 160 | if (11 !== T && (f = J.exec(e))) if (o = f[1]) { |
| 161 | if (9 === T) { |
| 162 | if (!(l = t.getElementById(o))) return r; |
| 163 | if (l.id === o) return r.push(l), r |
| 164 | } else if (m && (l = m.getElementById(o)) && x(t, l) && l.id === o) return r.push(l), r |
| 165 | } else { |
| 166 | if (f[2]) return L.apply(r, t.getElementsByTagName(e)), r; |
| 167 | if ((o = f[3]) && n.getElementsByClassName && t.getElementsByClassName) return L.apply(r, t.getElementsByClassName(o)), r |
| 168 | } |
| 169 | if (n.qsa && !S[e + " "] && (!y || !y.test(e))) { |
| 170 | if (1 !== T) m = t, v = e; else if ("object" !== t.nodeName.toLowerCase()) { |
| 171 | (c = t.getAttribute("id")) ? c = c.replace(te, ne) : t.setAttribute("id", c = b), s = (h = a(e)).length; |
| 172 | while (s--) h[s] = "#" + c + " " + ve(h[s]); |
| 173 | v = h.join(","), m = K.test(e) && ge(t.parentNode) || t |
| 174 | } |
| 175 | if (v) try { |
| 176 | return L.apply(r, m.querySelectorAll(v)), r |
| 177 | } catch (e) { |
| 178 | } finally { |
| 179 | c === b && t.removeAttribute("id") |
| 180 | } |
| 181 | } |
| 182 | } |
| 183 | return u(e.replace(B, "$1"), t, r, i) |
| 184 | } |
| 185 | |
| 186 | function ae() { |
| 187 | var e = []; |