netscape-bookmark-parser 1.2.0 → 1.2.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/deno-wasm_bg-Brhw7cJv.js +21 -0
- package/dist/deno-wasm_bg-Brhw7cJv.js.map +1 -0
- package/dist/deno-wasm_bg-wasm-BfK4r2Sm.js +12 -0
- package/dist/deno-wasm_bg-wasm-BfK4r2Sm.js.map +1 -0
- package/dist/index.d.ts +370 -6
- package/dist/index.js +4203 -11
- package/dist/index.js.map +1 -1
- package/dist/web.d.ts +2 -4
- package/dist/web.js +13 -3
- package/dist/web.js.map +1 -1
- package/package.json +6 -6
package/dist/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","names":["DOMParser: typeof NodeDOMParser","NodeDOMParser","json: Record<string, unknown>","DOMParser","DOMParser"],"sources":["../src/dom.ts","../src/node-dom.ts","../src/BookmarksTree/BookmarksTree.ts","../src/BookmarksParser/BookmarksParser.ts"],"sourcesContent":["/**\n * Copyright (c) 2025-2026 kurage(@umitsukidev)\n *\n * This software is released under the MIT License.\n * https://opensource.org/licenses/MIT\n */\n\nimport type { DOMParser as NodeDOMParser } from \"@b-fuze/deno-dom\";\n\nexport let DOMParser: typeof NodeDOMParser =\n\tglobalThis.DOMParser as unknown as typeof NodeDOMParser;\n\nexport const setDOMParser = (parser: typeof NodeDOMParser): void => {\n\tDOMParser = parser;\n};\n","/**\n * Copyright (c) 2025-2026 kurage(@umitsukidev)\n *\n * This software is released under the MIT License.\n * https://opensource.org/licenses/MIT\n */\n\nimport { DOMParser as NodeDOMParser } from \"@b-fuze/deno-dom\";\nimport { setDOMParser } from \"./dom.ts\";\n\nsetDOMParser(NodeDOMParser);\n","/**\n * Copyright (c) 2025-2026 kurage(@umitsukidev)\n *\n * This software is released under the MIT License.\n * https://opensource.org/licenses/MIT\n */\n\nimport { DOMParser } from \"../dom.ts\";\nimport type { Element, HTMLDocument } from \"#dom-types\";\n\n/**\n * A class representing a bookmark tree in Netscape Bookmark format\n *\n * This class extends Map and manages folders (BookmarksTree) and bookmarks (URL strings)\n * in a hierarchical structure.\n *\n * @example\n * ```typescript\n * const tree = new BookmarksTree();\n * tree.set(\"Google\", \"https://google.com\");\n *\n * const folder = new BookmarksTree();\n * folder.set(\"GitHub\", \"https://github.com\");\n * tree.set(\"Development\", folder);\n * ```\n */\nexport class BookmarksTree extends Map<string, string | BookmarksTree> {\n\t/**\n\t * Creates a new BookmarksTree instance\n\t */\n\tconstructor() {\n\t\tsuper();\n\t}\n\n\t/**\n\t * Converts the BookmarksTree to a JSON object\n\t *\n\t * Folders are recursively converted to objects, and bookmarks are preserved as strings.\n\t *\n\t * @returns JSON object representation of the bookmark data\n\t *\n\t * @example\n\t * ```typescript\n\t * const tree = new BookmarksTree();\n\t * tree.set(\"Google\", \"https://google.com\");\n\t * const json = tree.toJSON();\n\t * // { \"Google\": \"https://google.com\" }\n\t * ```\n\t */\n\ttoJSON(): Record<string, unknown> {\n\t\tconst json: Record<string, unknown> = {};\n\n\t\tfor (const [key, value] of this.entries()) {\n\t\t\tif (typeof value === \"string\") {\n\t\t\t\tjson[key] = value;\n\t\t\t} else if (value instanceof BookmarksTree) {\n\t\t\t\tjson[key] = value.toJSON();\n\t\t\t}\n\t\t}\n\n\t\treturn json;\n\t}\n\n\t/**\n\t * Creates a BookmarksTree from a JSON object\n\t *\n\t * String properties are treated as bookmarks, and object properties are\n\t * recursively processed as folders.\n\t *\n\t * @param json The source JSON object to convert\n\t * @returns A new BookmarksTree instance\n\t *\n\t * @example\n\t * ```typescript\n\t * const json = { \"Google\": \"https://google.com\", \"Development\": { \"GitHub\": \"https://github.com\" } };\n\t * const tree = BookmarksTree.fromJSON(json);\n\t * ```\n\t */\n\tstatic fromJSON(json: Record<string, unknown>): BookmarksTree {\n\t\tconst tree = new BookmarksTree();\n\n\t\tif (typeof json === \"object\" && json !== null) {\n\t\t\tfor (const [key, value] of Object.entries(json)) {\n\t\t\t\tif (typeof value === \"string\") {\n\t\t\t\t\ttree.set(key, value);\n\t\t\t\t} else if (typeof value === \"object\" && value !== null) {\n\t\t\t\t\ttree.set(key, BookmarksTree.fromJSON(value as Record<string, unknown>));\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\treturn tree;\n\t}\n\n\t/**\n\t * Creates a BookmarksTree from an HTML document (Netscape Bookmark format)\n\t *\n\t * Parses Netscape Bookmark format HTML and generates a BookmarksTree that preserves\n\t * the hierarchical structure. H3 elements within DT elements are treated as folders,\n\t * and A elements are treated as bookmarks.\n\t *\n\t * @param dom The HTML document to parse\n\t * @returns A new BookmarksTree instance\n\t *\n\t * @example\n\t * ```typescript\n\t * const parser = new DOMParser();\n\t * const dom = parser.parseFromString(bookmarkHtml, \"text/html\");\n\t * const tree = BookmarksTree.fromDOM(dom);\n\t * ```\n\t */\n\tstatic fromDOM(dom: HTMLDocument): BookmarksTree {\n\t\tconst tree = new BookmarksTree();\n\t\tconst document = dom;\n\n\t\tconst processElement = (element: Element, currentTree: BookmarksTree) => {\n\t\t\tconst children = Array.from(element.children) as Element[];\n\n\t\t\tfor (let i = 0; i < children.length; i++) {\n\t\t\t\tconst child = children[i];\n\n\t\t\t\tif (child.tagName === \"DT\") {\n\t\t\t\t\tconst h3 = child.querySelector(\"h3\");\n\t\t\t\t\tconst link = child.querySelector(\"a\");\n\n\t\t\t\t\tif (h3) {\n\t\t\t\t\t\t// フォルダの場合\n\t\t\t\t\t\tconst folderName = h3.textContent?.trim() || \"\";\n\t\t\t\t\t\tif (folderName) {\n\t\t\t\t\t\t\tconst folderTree = new BookmarksTree();\n\t\t\t\t\t\t\tcurrentTree.set(folderName, folderTree);\n\t\t\t\t\t\t\tprocessElement(child, folderTree);\n\t\t\t\t\t\t}\n\t\t\t\t\t} else if (link) {\n\t\t\t\t\t\t// リンクの場合\n\t\t\t\t\t\tconst href = link.getAttribute(\"href\");\n\t\t\t\t\t\tconst title = link.textContent?.trim() || \"\";\n\t\t\t\t\t\tif (href && title) {\n\t\t\t\t\t\t\tcurrentTree.set(title, href);\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t} else if (child.tagName === \"DL\") {\n\t\t\t\t\t// ネストしたDLタグの場合も処理\n\t\t\t\t\tprocessElement(child, currentTree);\n\t\t\t\t}\n\t\t\t}\n\t\t};\n\n\t\t// HTMLのBODY全体から処理を開始\n\t\tconst body = document.body;\n\t\tif (body) {\n\t\t\tprocessElement(body, tree);\n\t\t}\n\n\t\treturn tree;\n\t}\n\n\t/**\n\t * Converts the BookmarksTree to an HTML document\n\t *\n\t * Generates an HTML document in Netscape Bookmark format.\n\t *\n\t * @returns HTML document in Netscape Bookmark format\n\t *\n\t * @example\n\t * ```typescript\n\t * const tree = new BookmarksTree();\n\t * tree.set(\"Google\", \"https://google.com\");\n\t * const dom = tree.toDOM();\n\t * ```\n\t */\n\ttoDOM(): HTMLDocument {\n\t\treturn new DOMParser().parseFromString(this.HTMLString, \"text/html\");\n\t}\n\n\t/**\n\t * Gets the BookmarksTree as an HTML string in Netscape Bookmark format\n\t *\n\t * Generates a complete HTML document string including DOCTYPE, metadata, and body\n\t * in Netscape Bookmark format.\n\t *\n\t * @returns HTML string in Netscape Bookmark format\n\t *\n\t * @example\n\t * ```typescript\n\t * const tree = new BookmarksTree();\n\t * tree.set(\"Google\", \"https://google.com\");\n\t * const html = tree.HTMLString;\n\t * console.log(html); // <!DOCTYPE NETSCAPE-Bookmark-file-1>...\n\t * ```\n\t */\n\tget HTMLString(): string {\n\t\tconst escapeHtml = (text: string): string => {\n\t\t\treturn text\n\t\t\t\t.replace(/&/g, \"&\")\n\t\t\t\t.replace(/</g, \"<\")\n\t\t\t\t.replace(/>/g, \">\")\n\t\t\t\t.replace(/\"/g, \""\")\n\t\t\t\t.replace(/'/g, \"'\");\n\t\t};\n\n\t\tconst createBookmarkList = (tree: BookmarksTree, indent: string = \"\"): string => {\n\t\t\tlet html = `${indent}<DL><p>\\n`;\n\n\t\t\tfor (const [key, value] of tree.entries()) {\n\t\t\t\tif (typeof value === \"string\") {\n\t\t\t\t\t// ブックマークの場合: <DT><A HREF=\"url\">タイトル</A>\n\t\t\t\t\thtml += `${indent} <DT><A HREF=\"${escapeHtml(value)}\">${escapeHtml(key)}</A>\\n`;\n\t\t\t\t} else if (value instanceof BookmarksTree) {\n\t\t\t\t\t// フォルダの場合: <DT><H3>フォルダ名</H3>\n\t\t\t\t\thtml += `${indent} <DT><H3>${escapeHtml(key)}</H3>\\n`;\n\t\t\t\t\thtml += createBookmarkList(value, indent + \" \");\n\t\t\t\t\thtml += `${indent} </DL><p>\\n`;\n\t\t\t\t}\n\t\t\t}\n\n\t\t\tif (indent === \"\") {\n\t\t\t\t// ルートレベルの場合は閉じタグを追加\n\t\t\t\thtml += `</DL>\\n`;\n\t\t\t}\n\n\t\t\treturn html;\n\t\t};\n\n\t\tconst htmlTemplate = `<!DOCTYPE NETSCAPE-Bookmark-file-1>\n<HTML>\n<META HTTP-EQUIV=\"Content-Type\" CONTENT=\"text/html; charset=UTF-8\">\n<TITLE>Bookmark</TITLE>\n<H1>Bookmark</H1>\n<BODY>\n${createBookmarkList(this)}</BODY>\n</HTML>`;\n\t\treturn htmlTemplate;\n\t}\n\n\t/**\n\t * @deprecated Use {@link HTMLString} instead.\n\t *\n\t * Gets the BookmarksTree as an HTML string in Netscape Bookmark format.\n\t */\n\tget HTMLText(): string {\n\t\treturn this.HTMLString;\n\t}\n}\n","/**\n * Copyright (c) 2025-2026 kurage(@umitsukidev)\n *\n * This software is released under the MIT License.\n * https://opensource.org/licenses/MIT\n */\n\nimport { DOMParser } from \"../dom.ts\";\nimport type { HTMLDocument } from \"#dom-types\";\nimport { BookmarksTree } from \"../BookmarksTree/index.ts\";\n\n/**\n * A parser for Netscape Bookmark format files\n *\n * This class provides static methods to parse Netscape Bookmark format HTML strings\n * and convert them into BookmarksTree instances for easier manipulation.\n *\n * @example\n * ```typescript\n * const bookmarkHtml = `<!DOCTYPE NETSCAPE-Bookmark-file-1>\n * <HTML>\n * <BODY>\n * <DL><p>\n * <DT><A HREF=\"https://google.com\">Google</A>\n * <DT><H3>Development</H3>\n * <DL><p>\n * <DT><A HREF=\"https://github.com\">GitHub</A>\n * </DL><p>\n * </DL>\n * </BODY>\n * </HTML>`;\n *\n * const tree = BookmarksParser.parse(bookmarkHtml);\n * ```\n */\nexport class BookmarksParser {\n\t/**\n\t * Alias for the {@link parseFromHTMLString} method.\n\t *\n\t * @param htmlString HTML string in Netscape Bookmark format\n\t * @returns The parsed BookmarksTree\n\t *\n\t * @example\n\t * ```typescript\n\t * const bookmarkHtml = `<!DOCTYPE NETSCAPE-Bookmark-file-1>\n\t * <HTML>\n\t * <BODY>\n\t * <DL><p>\n\t * <DT><A HREF=\"https://google.com\">Google</A>\n\t * <DT><H3>Development</H3>\n\t * <DL><p>\n\t * <DT><A HREF=\"https://github.com\">GitHub</A>\n\t * </DL><p>\n\t * </DL>\n\t * </BODY>\n\t * </HTML>`;\n\t *\n\t * const tree = BookmarksParser.parse(bookmarkHtml);\n\t * ```\n\t */\n\tstatic parse(htmlString: string): BookmarksTree {\n\t\treturn this.parseFromHTMLString(htmlString);\n\t}\n\n\t/**\n\t * Parses a Netscape Bookmark format HTML string and returns a BookmarksTree.\n\t *\n\t * @param htmlString HTML string in Netscape Bookmark format\n\t * @returns The parsed BookmarksTree\n\t *\n\t * @example\n\t * ```typescript\n\t * const bookmarkHtml = `<!DOCTYPE NETSCAPE-Bookmark-file-1>\n\t * <HTML>\n\t * <BODY>\n\t * <DL><p>\n\t * <DT><A HREF=\"https://google.com\">Google</A>\n\t * <DT><H3>Development</H3>\n\t * <DL><p>\n\t * <DT><A HREF=\"https://github.com\">GitHub</A>\n\t * </DL><p>\n\t * </DL>\n\t * </BODY>\n\t * </HTML>`;\n\t *\n\t * const tree = BookmarksParser.parseFromHTMLString(bookmarkHtml);\n\t * ```\n\t */\n\tstatic parseFromHTMLString(htmlString: string): BookmarksTree {\n\t\tconst dom = new DOMParser().parseFromString(htmlString, \"text/html\");\n\t\tconst tree = BookmarksTree.fromDOM(dom);\n\t\treturn tree;\n\t}\n\n\t/**\n\t * Creates a BookmarksTree from an existing HTMLDocument.\n\t *\n\t * This is an alias for {@link BookmarksTree.fromDOM}.\n\t *\n\t * Use this when you already have a parsed HTMLDocument and want to convert it to a BookmarksTree.\n\t *\n\t * @param dom An HTMLDocument instance\n\t * @returns The parsed BookmarksTree\n\t *\n\t * @example\n\t * ```typescript\n\t * const dom = new DOMParser().parseFromString(bookmarkHtml, \"text/html\");\n\t * const tree = BookmarksParser.parseFromDOM(dom);\n\t * ```\n\t */\n\tstatic parseFromDOM(dom: HTMLDocument): BookmarksTree {\n\t\treturn BookmarksTree.fromDOM(dom);\n\t}\n\n\t/**\n\t * Parses a JSON string and returns a BookmarksTree.\n\t *\n\t * @param jsonString JSON string representing the bookmark structure\n\t * @returns The parsed BookmarksTree\n\t *\n\t * @example\n\t * ```typescript\n\t * const json = '{\"Google\":\"https://google.com\",\"Development\":{\"GitHub\":\"https://github.com\"}}';\n\t * const tree = BookmarksParser.parseFromJSONString(json);\n\t * ```\n\t */\n\tstatic parseFromJSONString(jsonString: string): BookmarksTree {\n\t\tconst obj = JSON.parse(jsonString);\n\t\treturn BookmarksTree.fromJSON(obj);\n\t}\n\n\t/**\n\t * Parses a JSON object and returns a BookmarksTree.\n\t *\n\t * This is an alias for {@link BookmarksTree.fromJSON}.\n\t *\n\t * @param jsonObj JSON object representing the bookmark structure\n\t * @returns The parsed BookmarksTree\n\t *\n\t * @example\n\t * ```typescript\n\t * const obj = { \"Google\": \"https://google.com\", \"Development\": { \"GitHub\": \"https://github.com\" } };\n\t * const tree = BookmarksParser.parseFromJSON(obj);\n\t * ```\n\t */\n\tstatic parseFromJSON(jsonObj: Record<string, unknown>): BookmarksTree {\n\t\treturn BookmarksTree.fromJSON(jsonObj);\n\t}\n}\n"],"mappings":";;;AASA,IAAWA,cACV,WAAW;AAEZ,MAAa,gB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AoB,YAAmC;EAC7D,MAAM,MAAM,IAAIC,aAAW,CAAC,gBAAgB,YAAY,YAAY;AAEpE,SADa,cAAc,QAAQ,IAAI;;;;;;;;;;;;;;;;;;CAoBxC,OAAO,aAAa,KAAkC;AACrD,SAAO,cAAc,QAAQ,IAAI;;;;;;;;;;;;;;CAelC,OAAO,oBAAoB,YAAmC;EAC7D,MAAM,MAAM,KAAK,MAAM,WAAW;AAClC,SAAO,cAAc,SAAS,IAAI;;;;;;;;;;;;;;;;CAiBnC,OAAO,cAAc,SAAiD;AACrE,SAAO,cAAc,SAAS,QAAQ"}
|
|
1
|
+
{"version":3,"file":"index.js","names":["len0","len1","UtilTypes","Element","DocumentFragment","Element","DocumentFragment","DOM","NWDom","Sizzle","NWAPI","Sizzle","Element","Document","DocumentFragment","DocumentFragment","Element","DOMParser","parse","NodeDOMParser"],"sources":["../node_modules/.pnpm/@jsr+b-fuze__deno-dom@0.1.56/node_modules/@jsr/b-fuze__deno-dom/build/deno-wasm/deno-wasm.js","../node_modules/.pnpm/@jsr+b-fuze__deno-dom@0.1.56/node_modules/@jsr/b-fuze__deno-dom/build/deno-wasm/deno-wasm-dynamic.js","../node_modules/.pnpm/@jsr+b-fuze__deno-dom@0.1.56/node_modules/@jsr/b-fuze__deno-dom/src/parser.js","../node_modules/.pnpm/@jsr+b-fuze__deno-dom@0.1.56/node_modules/@jsr/b-fuze__deno-dom/src/constructor-lock.js","../node_modules/.pnpm/@jsr+b-fuze__deno-dom@0.1.56/node_modules/@jsr/b-fuze__deno-dom/src/dom/html-collection.js","../node_modules/.pnpm/@jsr+b-fuze__deno-dom@0.1.56/node_modules/@jsr/b-fuze__deno-dom/src/dom/node-list.js","../node_modules/.pnpm/@jsr+b-fuze__deno-dom@0.1.56/node_modules/@jsr/b-fuze__deno-dom/src/dom/utils-types.js","../node_modules/.pnpm/@jsr+b-fuze__deno-dom@0.1.56/node_modules/@jsr/b-fuze__deno-dom/src/dom/utils.js","../node_modules/.pnpm/@jsr+b-fuze__deno-dom@0.1.56/node_modules/@jsr/b-fuze__deno-dom/src/dom/node.js","../node_modules/.pnpm/@jsr+b-fuze__deno-dom@0.1.56/node_modules/@jsr/b-fuze__deno-dom/src/dom/string-cache.js","../node_modules/.pnpm/@jsr+b-fuze__deno-dom@0.1.56/node_modules/@jsr/b-fuze__deno-dom/src/dom/element.js","../node_modules/.pnpm/@jsr+b-fuze__deno-dom@0.1.56/node_modules/@jsr/b-fuze__deno-dom/src/dom/selectors/custom-api.js","../node_modules/.pnpm/@jsr+b-fuze__deno-dom@0.1.56/node_modules/@jsr/b-fuze__deno-dom/src/dom/document-fragment.js","../node_modules/.pnpm/@jsr+b-fuze__deno-dom@0.1.56/node_modules/@jsr/b-fuze__deno-dom/src/dom/elements/html-template-element.js","../node_modules/.pnpm/@jsr+b-fuze__deno-dom@0.1.56/node_modules/@jsr/b-fuze__deno-dom/src/dom/selectors/nwsapi.js","../node_modules/.pnpm/@jsr+b-fuze__deno-dom@0.1.56/node_modules/@jsr/b-fuze__deno-dom/src/dom/selectors/nwsapi-types.js","../node_modules/.pnpm/@jsr+b-fuze__deno-dom@0.1.56/node_modules/@jsr/b-fuze__deno-dom/src/dom/selectors/sizzle.js","../node_modules/.pnpm/@jsr+b-fuze__deno-dom@0.1.56/node_modules/@jsr/b-fuze__deno-dom/src/dom/selectors/sizzle-types.js","../node_modules/.pnpm/@jsr+b-fuze__deno-dom@0.1.56/node_modules/@jsr/b-fuze__deno-dom/src/dom/selectors/selectors.js","../node_modules/.pnpm/@jsr+b-fuze__deno-dom@0.1.56/node_modules/@jsr/b-fuze__deno-dom/src/dom/document.js","../node_modules/.pnpm/@jsr+b-fuze__deno-dom@0.1.56/node_modules/@jsr/b-fuze__deno-dom/src/deserialize.js","../node_modules/.pnpm/@jsr+b-fuze__deno-dom@0.1.56/node_modules/@jsr/b-fuze__deno-dom/src/dom/dom-parser.js","../node_modules/.pnpm/@jsr+b-fuze__deno-dom@0.1.56/node_modules/@jsr/b-fuze__deno-dom/src/api.js","../node_modules/.pnpm/@jsr+b-fuze__deno-dom@0.1.56/node_modules/@jsr/b-fuze__deno-dom/deno-dom-wasm.js","../src/dom.ts","../src/node-dom.ts","../src/BookmarksTree/BookmarksTree.ts","../src/BookmarksParser/BookmarksParser.ts"],"sourcesContent":["// FIXME: find a better way to use the raw output from wasm-pack\n// instead of replacing the JS entrypoint wholesale like this\n\nexport function prepareExports(wasmImports) {\n const {\n memory,\n __wbindgen_export_0,\n __wbindgen_malloc,\n __wbindgen_realloc,\n __wbindgen_free,\n parse_wasm,\n parse_frag_wasm,\n } = wasmImports;\n\n {\n const table = __wbindgen_export_0;\n const offset = table.grow(4);\n table.set(0, undefined);\n table.set(offset + 0, undefined);\n table.set(offset + 1, null);\n table.set(offset + 2, true);\n table.set(offset + 3, false);\n }\n\n let WASM_VECTOR_LEN = 0;\n\n let cachedUint8ArrayMemory0 = null;\n\n function getUint8ArrayMemory0() {\n if (\n cachedUint8ArrayMemory0 === null ||\n cachedUint8ArrayMemory0.byteLength === 0\n ) {\n cachedUint8ArrayMemory0 = new Uint8Array(memory.buffer);\n }\n return cachedUint8ArrayMemory0;\n }\n\n const cachedTextEncoder = typeof TextEncoder !== \"undefined\"\n ? new TextEncoder(\"utf-8\")\n : {\n encode: () => {\n throw Error(\"TextEncoder not available\");\n },\n };\n\n const encodeString = function (arg, view) {\n return cachedTextEncoder.encodeInto(arg, view);\n };\n\n function passStringToWasm0(arg, malloc, realloc) {\n if (realloc === undefined) {\n const buf = cachedTextEncoder.encode(arg);\n const ptr = malloc(buf.length, 1) >>> 0;\n getUint8ArrayMemory0().subarray(ptr, ptr + buf.length).set(buf);\n WASM_VECTOR_LEN = buf.length;\n return ptr;\n }\n\n let len = arg.length;\n let ptr = malloc(len, 1) >>> 0;\n\n const mem = getUint8ArrayMemory0();\n\n let offset = 0;\n\n for (; offset < len; offset++) {\n const code = arg.charCodeAt(offset);\n if (code > 0x7F) break;\n mem[ptr + offset] = code;\n }\n\n if (offset !== len) {\n if (offset !== 0) {\n arg = arg.slice(offset);\n }\n ptr = realloc(ptr, len, len = offset + arg.length * 3, 1) >>> 0;\n const view = getUint8ArrayMemory0().subarray(ptr + offset, ptr + len);\n const ret = encodeString(arg, view);\n\n offset += ret.written;\n ptr = realloc(ptr, len, offset, 1) >>> 0;\n }\n\n WASM_VECTOR_LEN = offset;\n return ptr;\n }\n\n const cachedTextDecoder = typeof TextDecoder !== \"undefined\"\n ? new TextDecoder(\"utf-8\", { ignoreBOM: true, fatal: true })\n : {\n decode: () => {\n throw Error(\"TextDecoder not available\");\n },\n };\n\n if (typeof TextDecoder !== \"undefined\") cachedTextDecoder.decode();\n\n function getStringFromWasm0(ptr, len) {\n ptr = ptr >>> 0;\n return cachedTextDecoder.decode(\n getUint8ArrayMemory0().subarray(ptr, ptr + len),\n );\n }\n\n /**\n * @param {string} html\n * @returns {string}\n */\n function parse(html) {\n let deferred2_0;\n let deferred2_1;\n try {\n const ptr0 = passStringToWasm0(\n html,\n __wbindgen_malloc,\n __wbindgen_realloc,\n );\n const len0 = WASM_VECTOR_LEN;\n const ret = parse_wasm(ptr0, len0);\n deferred2_0 = ret[0];\n deferred2_1 = ret[1];\n return getStringFromWasm0(ret[0], ret[1]);\n } finally {\n __wbindgen_free(deferred2_0, deferred2_1, 1);\n }\n }\n\n /**\n * @param {string} html\n * @param {string} context_local_name\n * @returns {string}\n */\n function parse_frag(html, context_local_name) {\n let deferred3_0;\n let deferred3_1;\n try {\n const ptr0 = passStringToWasm0(\n html,\n __wbindgen_malloc,\n __wbindgen_realloc,\n );\n const len0 = WASM_VECTOR_LEN;\n const ptr1 = passStringToWasm0(\n context_local_name,\n __wbindgen_malloc,\n __wbindgen_realloc,\n );\n const len1 = WASM_VECTOR_LEN;\n const ret = parse_frag_wasm(ptr0, len0, ptr1, len1);\n deferred3_0 = ret[0];\n deferred3_1 = ret[1];\n return getStringFromWasm0(ret[0], ret[1]);\n } finally {\n __wbindgen_free(deferred3_0, deferred3_1, 1);\n }\n }\n\n return { parse, parse_frag };\n}\n","// FIXME: find a better way to use the raw output from wasm-pack\n// instead of replacing the JS entrypoint wholesale like this\n\nimport { prepareExports } from \"./deno-wasm.js\";\n\nfunction hasSuitableDenoVersion(version) {\n const [major, minor] = version.split(\".\").map(Number);\n return major >= 2 && minor >= 1;\n}\n\nconst wasmImports = await (async () => {\n let moduleImports;\n\n if (\n typeof Deno === \"object\" &&\n hasSuitableDenoVersion(Deno.version?.deno || \"0.0.0\")\n ) {\n moduleImports = await import(\"./deno-wasm_bg.wasm\");\n } else {\n moduleImports = (await import(\"./deno-wasm_bg-wasm.js\")).default;\n }\n\n const { parse, parse_frag, ...remappedImports } = moduleImports;\n remappedImports.parse_wasm = parse;\n remappedImports.parse_frag_wasm = parse_frag;\n\n return remappedImports;\n})();\n\nexport const { parse, parse_frag } = prepareExports(wasmImports);\n","/**\n * Parser interface\n */ export let parse = (_html)=>{\n console.error(\"Error: deno-dom: No parser registered\");\n Deno.exit(1);\n};\nexport let parseFrag = (_html, _contextLocalName)=>{\n console.error(\"Error: deno-dom: No parser registered\");\n Deno.exit(1);\n};\nconst originalParse = parse;\nexport function register(func, fragFunc) {\n if (parse !== originalParse) {\n return;\n }\n parse = func;\n parseFrag = fragFunc;\n}\n//# sourceMappingURL=parser.js.map","/**\n * Used to enforce illegal constructors\n */ export const CTOR_KEY = Symbol(\"CTOR_KEY\");\n//# sourceMappingURL=constructor-lock.js.map","const HTMLCollectionFakeClass = (()=>{\n var _computedKey;\n _computedKey = Symbol.hasInstance;\n return class HTMLCollection {\n constructor(){\n throw new TypeError(\"Illegal constructor\");\n }\n static [_computedKey](value) {\n return value?.constructor === HTMLCollectionClass;\n }\n };\n})();\nexport const HTMLCollectionMutatorSym = Symbol(\"HTMLCollectionMutatorSym\");\n// We define the `HTMLCollection` inside a closure to ensure that its\n// `.name === \"HTMLCollection\"` property stays intact, as we need to manipulate\n// its prototype and completely change its TypeScript-recognized type.\nconst HTMLCollectionClass = (()=>{\n // @ts-ignore\n class HTMLCollection extends Array {\n forEach(cb, thisArg) {\n super.forEach(cb, thisArg);\n }\n item(index) {\n return this[index] ?? null;\n }\n [HTMLCollectionMutatorSym]() {\n return {\n push: Array.prototype.push.bind(this),\n splice: Array.prototype.splice.bind(this),\n indexOf: Array.prototype.indexOf.bind(this)\n };\n }\n toString() {\n return \"[object HTMLCollection]\";\n }\n }\n return HTMLCollection;\n})();\nfor (const staticMethod of [\n \"from\",\n \"isArray\",\n \"of\"\n]){\n HTMLCollectionClass[staticMethod] = undefined;\n}\nfor (const instanceMethod of [\n \"concat\",\n \"copyWithin\",\n \"every\",\n \"fill\",\n \"filter\",\n \"find\",\n \"findIndex\",\n \"flat\",\n \"flatMap\",\n \"includes\",\n \"indexOf\",\n \"join\",\n \"lastIndexOf\",\n \"map\",\n \"pop\",\n \"push\",\n \"reduce\",\n \"reduceRight\",\n \"reverse\",\n \"shift\",\n \"slice\",\n \"some\",\n \"sort\",\n \"splice\",\n \"toLocaleString\",\n \"unshift\",\n // Unlike NodeList, HTMLCollection also doesn't implement these\n \"entries\",\n \"forEach\",\n \"keys\",\n \"values\"\n]){\n HTMLCollectionClass.prototype[instanceMethod] = undefined;\n}\nexport const HTMLCollection = HTMLCollectionClass;\nexport const HTMLCollectionPublic = HTMLCollectionFakeClass;\n//# sourceMappingURL=html-collection.js.map","import { Node } from \"./node.js\";\nimport { HTMLCollection } from \"./html-collection.js\";\nconst NodeListFakeClass = (()=>{\n var _computedKey;\n _computedKey = Symbol.hasInstance;\n return class NodeList {\n constructor(){\n throw new TypeError(\"Illegal constructor\");\n }\n static [_computedKey](value) {\n return value?.constructor === NodeListClass;\n }\n };\n})();\nexport const nodeListMutatorSym = Symbol(\"nodeListMutatorSym\");\nconst nodeListCachedMutator = Symbol(\"nodeListCachedMutator\");\n// Array methods that we need for NodeList mutator implementation\nconst { push, splice, slice, indexOf, filter } = Array.prototype;\n// Implementation of a NodeList mutator\nclass NodeListMutatorImpl {\n arrayInstance;\n // There should only ever be one elementView per element. Element views\n // are basically just the source of HTMLCollections/.children properties\n // on elements that are always in sync with their .childNodes counterpart.\n elementViews;\n constructor(arrayInstance){\n this.arrayInstance = arrayInstance;\n this.elementViews = [];\n }\n push(...items) {\n // Copy the new items to the element view (if any)\n for (const view of this.elementViews){\n for (const item of items){\n if (item.nodeType === Node.ELEMENT_NODE) {\n push.call(view, item);\n }\n }\n }\n return push.call(this.arrayInstance, ...items);\n }\n splice(index, deleteCount = 0, ...items) {\n // Delete and insert new elements in an element view (if any)\n for (const view of this.elementViews){\n const toDelete = filter.call(slice.call(this.arrayInstance, index, index + deleteCount), (item)=>item.nodeType === Node.ELEMENT_NODE);\n const toInsert = items.filter((item)=>item.nodeType === Node.ELEMENT_NODE);\n // Find where to start splicing in the element view\n let elementViewSpliceIndex = -1;\n for(let idx = index; idx < this.arrayInstance.length; idx++){\n const item = this.arrayInstance[idx];\n if (item.nodeType === Node.ELEMENT_NODE) {\n elementViewSpliceIndex = indexOf.call(view, item);\n break;\n }\n }\n // If no element is found just do everything at the end\n // of the view\n if (elementViewSpliceIndex === -1) {\n elementViewSpliceIndex = view.length;\n }\n if (toDelete.length) {\n splice.call(view, elementViewSpliceIndex, toDelete.length);\n }\n // Finally, insert all the found elements\n splice.call(view, elementViewSpliceIndex, 0, ...toInsert);\n }\n return splice.call(this.arrayInstance, index, deleteCount, ...items);\n }\n indexOf(item, fromIndex = 0) {\n return indexOf.call(this.arrayInstance, item, fromIndex);\n }\n indexOfElementsView(item, fromIndex = 0) {\n return indexOf.call(this.elementsView(), item, fromIndex);\n }\n // Return the elements-only view for this NodeList. Creates one if\n // it doesn't already exist.\n elementsView() {\n let view = this.elementViews[0];\n if (!view) {\n view = new HTMLCollection();\n this.elementViews.push(view);\n push.call(view, ...filter.call(this.arrayInstance, (item)=>item.nodeType === Node.ELEMENT_NODE));\n }\n return view;\n }\n}\n// We define the `NodeList` inside a closure to ensure that its\n// `.name === \"NodeList\"` property stays intact, as we need to manipulate\n// its prototype and completely change its TypeScript-recognized type.\nconst NodeListClass = (()=>{\n // @ts-ignore\n class NodeList extends Array {\n forEach(cb, thisArg) {\n super.forEach(cb, thisArg);\n }\n item(index) {\n return this[index] ?? null;\n }\n [nodeListMutatorSym]() {\n const cachedMutator = this[nodeListCachedMutator];\n if (cachedMutator) {\n return cachedMutator;\n } else {\n const cachedMutator = new NodeListMutatorImpl(this);\n this[nodeListCachedMutator] = cachedMutator;\n return cachedMutator;\n }\n }\n toString() {\n return \"[object NodeList]\";\n }\n }\n return NodeList;\n})();\nfor (const staticMethod of [\n \"from\",\n \"isArray\",\n \"of\"\n]){\n NodeListClass[staticMethod] = undefined;\n}\nfor (const instanceMethod of [\n \"concat\",\n \"copyWithin\",\n \"every\",\n \"fill\",\n \"filter\",\n \"find\",\n \"findIndex\",\n \"flat\",\n \"flatMap\",\n \"includes\",\n \"indexOf\",\n \"join\",\n \"lastIndexOf\",\n \"map\",\n \"pop\",\n \"push\",\n \"reduce\",\n \"reduceRight\",\n \"reverse\",\n \"shift\",\n \"slice\",\n \"some\",\n \"sort\",\n \"splice\",\n \"toLocaleString\",\n \"unshift\"\n]){\n NodeListClass.prototype[instanceMethod] = undefined;\n}\nexport const NodeList = NodeListClass;\nexport const NodeListPublic = NodeListFakeClass;\n//# sourceMappingURL=node-list.js.map","/**\n * Ugly solution to circular imports... FIXME: Make this better\n */ export default {\n Element: null,\n Document: null,\n DocumentFragment: null\n};\n//# sourceMappingURL=utils-types.js.map","import { Node, nodesAndTextNodes, NodeType } from \"./node.js\";\nimport UtilTypes from \"./utils-types.js\";\nexport const upperCaseCharRe = /[A-Z]/;\nexport const lowerCaseCharRe = /[a-z]/;\n/**\n * Convert JS property name to dataset attribute name without\n * validation\n */ export function getDatasetHtmlAttrName(name) {\n let attributeName = \"data-\";\n for (const char of name){\n if (upperCaseCharRe.test(char)) {\n attributeName += \"-\" + char.toLowerCase();\n } else {\n attributeName += char;\n }\n }\n return attributeName;\n}\nexport function getDatasetJavascriptName(name) {\n let javascriptName = \"\";\n let prevChar = \"\";\n for (const char of name.slice(\"data-\".length)){\n if (prevChar === \"-\" && lowerCaseCharRe.test(char)) {\n javascriptName += char.toUpperCase();\n prevChar = \"\";\n } else {\n javascriptName += prevChar;\n prevChar = char;\n }\n }\n return javascriptName + prevChar;\n}\nexport function getElementsByClassName(element, classNames, search) {\n for (const child of element.childNodes){\n if (child.nodeType === NodeType.ELEMENT_NODE) {\n let matchesCount = 0;\n for (const singleClassName of classNames){\n if (child.classList.contains(singleClassName)) {\n matchesCount++;\n }\n }\n // ensure that all class names are present\n if (matchesCount === classNames.length) {\n search.push(child);\n }\n getElementsByClassName(child, classNames, search);\n }\n }\n return search;\n}\nfunction getOuterHTMLOpeningTag(parentElement) {\n return \"<\" + parentElement.localName + getElementAttributesString(parentElement) + \">\";\n}\nconst voidElements = new Set([\n \"area\",\n \"base\",\n \"br\",\n \"col\",\n \"embed\",\n \"hr\",\n \"img\",\n \"input\",\n \"link\",\n \"meta\",\n \"param\",\n \"source\",\n \"track\",\n \"wbr\"\n]);\n/**\n * .innerHTML/.outerHTML implementation without recursion to avoid stack\n * overflows\n */ export function getOuterOrInnerHtml(parentElement, asOuterHtml) {\n let outerHTMLOpeningTag = \"\";\n let outerHTMLClosingTag = \"\";\n let innerHTML = \"\";\n if (asOuterHtml) {\n outerHTMLOpeningTag = getOuterHTMLOpeningTag(parentElement);\n outerHTMLClosingTag = `</${parentElement.localName}>`;\n if (voidElements.has(parentElement.localName)) {\n return outerHTMLOpeningTag;\n }\n }\n const initialChildNodes = parentElement.localName === \"template\" ? parentElement.content.childNodes : parentElement.childNodes;\n const childNodeDepth = [\n initialChildNodes\n ];\n const indexDepth = [\n 0\n ];\n const closingTagDepth = [\n outerHTMLClosingTag\n ];\n let depth = 0;\n depthLoop: while(depth > -1){\n const child = childNodeDepth[depth][indexDepth[depth]];\n if (child) {\n switch(child.nodeType){\n case NodeType.ELEMENT_NODE:\n {\n innerHTML += getOuterHTMLOpeningTag(child);\n const childLocalName = child.localName;\n // Void elements don't have a closing tag nor print innerHTML\n if (!voidElements.has(childLocalName)) {\n if (childLocalName === \"template\") {\n childNodeDepth.push(child.content.childNodes);\n } else {\n childNodeDepth.push(child.childNodes);\n }\n indexDepth.push(0);\n closingTagDepth.push(`</${childLocalName}>`);\n depth++;\n continue depthLoop;\n }\n break;\n }\n case NodeType.COMMENT_NODE:\n innerHTML += `<!--${child.data}-->`;\n break;\n case NodeType.TEXT_NODE:\n // Special handling for rawtext-like elements.\n switch(child.parentNode.localName){\n case \"style\":\n case \"script\":\n case \"xmp\":\n case \"iframe\":\n case \"noembed\":\n case \"noframes\":\n case \"plaintext\":\n {\n innerHTML += child.data;\n break;\n }\n case \"noscript\":\n {\n innerHTML += child.data;\n break;\n }\n default:\n {\n // escaping: https://html.spec.whatwg.org/multipage/parsing.html#escapingString\n innerHTML += child.data.replace(/&/g, \"&\").replace(/\\xA0/g, \" \").replace(/</g, \"<\").replace(/>/g, \">\");\n break;\n }\n }\n break;\n }\n } else {\n depth--;\n indexDepth.pop();\n childNodeDepth.pop();\n innerHTML += closingTagDepth.pop();\n }\n // Go to next child\n indexDepth[depth]++;\n }\n // If innerHTML is requested then the opening tag should be an empty string\n return outerHTMLOpeningTag + innerHTML;\n}\nexport function getElementAttributesString(element) {\n let out = \"\";\n for (const attribute of element.getAttributeNames()){\n // attribute names should already all be lower-case\n out += ` ${attribute}`;\n // escaping: https://html.spec.whatwg.org/multipage/parsing.html#escapingString\n out += `=\"${element.getAttribute(attribute).replace(/&/g, \"&\").replace(/\\xA0/g, \" \").replace(/\"/g, \""\")}\"`;\n }\n return out;\n}\nexport function insertBeforeAfter(node, nodes, before) {\n const parentNode = node.parentNode;\n const mutator = parentNode._getChildNodesMutator();\n // Find the previous/next sibling to `node` that isn't in `nodes` before the\n // nodes in `nodes` are removed from their parents.\n let viablePrevNextSibling = null;\n {\n const difference = before ? -1 : +1;\n for(let i = mutator.indexOf(node) + difference; 0 <= i && i < parentNode.childNodes.length; i += difference){\n if (!nodes.includes(parentNode.childNodes[i])) {\n viablePrevNextSibling = parentNode.childNodes[i];\n break;\n }\n }\n }\n nodes = nodesAndTextNodes(nodes, parentNode);\n let index;\n if (viablePrevNextSibling) {\n index = mutator.indexOf(viablePrevNextSibling) + (before ? 1 : 0);\n } else {\n index = before ? 0 : parentNode.childNodes.length;\n }\n mutator.splice(index, 0, ...nodes);\n}\nexport function isDocumentFragment(node) {\n let obj = node;\n if (!(obj && typeof obj === \"object\")) {\n return false;\n }\n while(true){\n switch(obj.constructor){\n case UtilTypes.DocumentFragment:\n return true;\n case Node:\n case UtilTypes.Element:\n return false;\n // FIXME: We should probably throw here?\n case Object:\n case null:\n case undefined:\n return false;\n default:\n obj = Reflect.getPrototypeOf(obj);\n }\n }\n}\n/**\n * Sets the new parent for the children via _setParent() on all\n * the child nodes and removes them from the DocumentFragment's\n * childNode list.\n *\n * A helper function for appendChild, etc. It should be called\n * _after_ the children are already pushed onto the new parent's\n * childNodes.\n */ export function moveDocumentFragmentChildren(fragment, newParent) {\n const childCount = fragment.childNodes.length;\n for (const child of fragment.childNodes){\n child._setParent(newParent);\n }\n const mutator = fragment._getChildNodesMutator();\n mutator.splice(0, childCount);\n}\n//# sourceMappingURL=utils.js.map","import { CTOR_KEY } from \"../constructor-lock.js\";\nimport { NodeList, nodeListMutatorSym } from \"./node-list.js\";\nimport { insertBeforeAfter, isDocumentFragment, moveDocumentFragmentChildren } from \"./utils.js\";\nexport var NodeType = /*#__PURE__*/ function(NodeType) {\n NodeType[NodeType[\"ELEMENT_NODE\"] = 1] = \"ELEMENT_NODE\";\n NodeType[NodeType[\"ATTRIBUTE_NODE\"] = 2] = \"ATTRIBUTE_NODE\";\n NodeType[NodeType[\"TEXT_NODE\"] = 3] = \"TEXT_NODE\";\n NodeType[NodeType[\"CDATA_SECTION_NODE\"] = 4] = \"CDATA_SECTION_NODE\";\n NodeType[NodeType[\"ENTITY_REFERENCE_NODE\"] = 5] = \"ENTITY_REFERENCE_NODE\";\n NodeType[NodeType[\"ENTITY_NODE\"] = 6] = \"ENTITY_NODE\";\n NodeType[NodeType[\"PROCESSING_INSTRUCTION_NODE\"] = 7] = \"PROCESSING_INSTRUCTION_NODE\";\n NodeType[NodeType[\"COMMENT_NODE\"] = 8] = \"COMMENT_NODE\";\n NodeType[NodeType[\"DOCUMENT_NODE\"] = 9] = \"DOCUMENT_NODE\";\n NodeType[NodeType[\"DOCUMENT_TYPE_NODE\"] = 10] = \"DOCUMENT_TYPE_NODE\";\n NodeType[NodeType[\"DOCUMENT_FRAGMENT_NODE\"] = 11] = \"DOCUMENT_FRAGMENT_NODE\";\n NodeType[NodeType[\"NOTATION_NODE\"] = 12] = \"NOTATION_NODE\";\n return NodeType;\n}({});\n/**\n * Throws if any of the nodes are an ancestor\n * of `parentNode`\n */ export function nodesAndTextNodes(nodes, parentNode) {\n return nodes.flatMap((n)=>{\n if (isDocumentFragment(n)) {\n const children = Array.from(n.childNodes);\n moveDocumentFragmentChildren(n, parentNode);\n return children;\n } else {\n const node = n instanceof Node ? n : new Text(String(n));\n // Make sure the node isn't an ancestor of parentNode\n if (n === node && parentNode) {\n parentNode._assertNotAncestor(node);\n }\n // Remove from parentNode (if any)\n node._remove(true);\n // Set new parent\n node._setParent(parentNode, true);\n return [\n node\n ];\n }\n });\n}\nexport class Node extends EventTarget {\n nodeName;\n nodeType;\n #nodeValue;\n parentNode;\n #ownerDocument;\n get parentElement() {\n if (this.parentNode?.nodeType === NodeType.ELEMENT_NODE) {\n return this.parentNode;\n }\n return null;\n }\n // Instance constants defined after Node\n // class body below to avoid clutter\n static ELEMENT_NODE = NodeType.ELEMENT_NODE;\n static ATTRIBUTE_NODE = NodeType.ATTRIBUTE_NODE;\n static TEXT_NODE = NodeType.TEXT_NODE;\n static CDATA_SECTION_NODE = NodeType.CDATA_SECTION_NODE;\n static ENTITY_REFERENCE_NODE = NodeType.ENTITY_REFERENCE_NODE;\n static ENTITY_NODE = NodeType.ENTITY_NODE;\n static PROCESSING_INSTRUCTION_NODE = NodeType.PROCESSING_INSTRUCTION_NODE;\n static COMMENT_NODE = NodeType.COMMENT_NODE;\n static DOCUMENT_NODE = NodeType.DOCUMENT_NODE;\n static DOCUMENT_TYPE_NODE = NodeType.DOCUMENT_TYPE_NODE;\n static DOCUMENT_FRAGMENT_NODE = NodeType.DOCUMENT_FRAGMENT_NODE;\n static NOTATION_NODE = NodeType.NOTATION_NODE;\n constructor(nodeName, nodeType, parentNode, key){\n if (key !== CTOR_KEY) {\n throw new TypeError(\"Illegal constructor.\");\n }\n super(), this.nodeName = nodeName, this.nodeType = nodeType, this.#nodeValue = null, this.parentNode = null, this.#ownerDocument = null, this.#childNodes = null;\n this.#nodeValue = null;\n if (parentNode) {\n parentNode.appendChild(this);\n }\n }\n #childNodes;\n get childNodes() {\n return this.#childNodes || (this.#childNodes = new NodeList());\n }\n _getChildNodesMutator() {\n return this.childNodes[nodeListMutatorSym]();\n }\n _hasInitializedChildNodes() {\n return Boolean(this.#childNodes);\n }\n /**\n * Update ancestor chain & owner document for this child\n * and all its children.\n */ _setParent(newParent, force = false) {\n const sameParent = this.parentNode === newParent;\n const shouldUpdateParentAndAncestors = !sameParent || force;\n if (shouldUpdateParentAndAncestors) {\n this.parentNode = newParent;\n if (newParent) {\n if (!sameParent) {\n this._setOwnerDocument(newParent.#ownerDocument);\n }\n }\n // Update ancestors for child nodes\n if (this._hasInitializedChildNodes()) {\n for (const child of this.childNodes){\n child._setParent(this, shouldUpdateParentAndAncestors);\n }\n }\n }\n }\n _assertNotAncestor(child) {\n // Check this child isn't an ancestor\n if (child.contains(this)) {\n throw new DOMException(\"The new child is an ancestor of the parent\");\n }\n }\n _setOwnerDocument(document) {\n if (this.#ownerDocument !== document) {\n this.#ownerDocument = document;\n if (this._hasInitializedChildNodes()) {\n for (const child of this.childNodes){\n child._setOwnerDocument(document);\n }\n }\n }\n }\n contains(child) {\n let node = child;\n while(node){\n if (node === this) {\n return true;\n }\n node = node.parentNode;\n }\n return false;\n }\n get ownerDocument() {\n return this.#ownerDocument;\n }\n get nodeValue() {\n return this.#nodeValue;\n }\n set nodeValue(value) {\n // Setting is ignored\n }\n get textContent() {\n let out = \"\";\n for (const child of this.childNodes){\n switch(child.nodeType){\n case NodeType.TEXT_NODE:\n out += child.nodeValue;\n break;\n case NodeType.ELEMENT_NODE:\n out += child.textContent;\n break;\n }\n }\n return out;\n }\n set textContent(content) {\n for (const child of this.childNodes){\n child._setParent(null);\n }\n this._getChildNodesMutator().splice(0, this.childNodes.length);\n this.appendChild(new Text(content));\n }\n get firstChild() {\n if (!this._hasInitializedChildNodes()) {\n return null;\n }\n return this.childNodes[0] || null;\n }\n get lastChild() {\n if (!this._hasInitializedChildNodes()) {\n return null;\n }\n return this.childNodes[this.childNodes.length - 1] || null;\n }\n hasChildNodes() {\n return this._hasInitializedChildNodes() && Boolean(this.childNodes.length);\n }\n cloneNode(deep = false) {\n const copy = this._shallowClone();\n copy._setOwnerDocument(this.ownerDocument);\n if (deep && this._hasInitializedChildNodes()) {\n for (const child of this.childNodes){\n copy.appendChild(child.cloneNode(true));\n }\n }\n return copy;\n }\n _shallowClone() {\n throw new Error(\"Illegal invocation\");\n }\n _remove(skipSetParent = false) {\n const parent = this.parentNode;\n if (parent) {\n const nodeList = parent._getChildNodesMutator();\n const idx = nodeList.indexOf(this);\n nodeList.splice(idx, 1);\n if (!skipSetParent) {\n this._setParent(null);\n }\n }\n }\n appendChild(child) {\n if (isDocumentFragment(child)) {\n const mutator = this._getChildNodesMutator();\n mutator.push(...child.childNodes);\n moveDocumentFragmentChildren(child, this);\n return child;\n } else {\n return child._appendTo(this);\n }\n }\n _appendTo(parentNode) {\n parentNode._assertNotAncestor(this); // FIXME: Should this really be a method?\n const oldParentNode = this.parentNode;\n // Check if we already own this child\n if (oldParentNode === parentNode) {\n if (parentNode._getChildNodesMutator().indexOf(this) !== -1) {\n return this;\n }\n } else if (oldParentNode) {\n this._remove();\n }\n this._setParent(parentNode, true);\n parentNode._getChildNodesMutator().push(this);\n return this;\n }\n removeChild(child) {\n // Just copy Firefox's error messages\n if (child && typeof child === \"object\") {\n if (child.parentNode === this) {\n child._remove();\n return child;\n } else {\n throw new DOMException(\"Node.removeChild: The node to be removed is not a child of this node\");\n }\n } else {\n throw new TypeError(\"Node.removeChild: Argument 1 is not an object.\");\n }\n }\n replaceChild(newChild, oldChild) {\n if (oldChild.parentNode !== this) {\n throw new Error(\"Old child's parent is not the current node.\");\n }\n oldChild._replaceWith(newChild);\n return oldChild;\n }\n insertBefore(newNode, refNode) {\n this._assertNotAncestor(newNode);\n const mutator = this._getChildNodesMutator();\n if (refNode === null) {\n this.appendChild(newNode);\n return newNode;\n }\n const index = mutator.indexOf(refNode);\n if (index === -1) {\n throw new Error(\"DOMException: Child to insert before is not a child of this node\");\n }\n if (isDocumentFragment(newNode)) {\n mutator.splice(index, 0, ...newNode.childNodes);\n moveDocumentFragmentChildren(newNode, this);\n } else {\n const oldParentNode = newNode.parentNode;\n const oldMutator = oldParentNode?._getChildNodesMutator();\n if (oldMutator) {\n oldMutator.splice(oldMutator.indexOf(newNode), 1);\n }\n newNode._setParent(this, oldParentNode !== this);\n mutator.splice(index, 0, newNode);\n }\n return newNode;\n }\n _replaceWith(...nodes) {\n if (this.parentNode) {\n const parentNode = this.parentNode;\n const mutator = parentNode._getChildNodesMutator();\n let viableNextSibling = null;\n {\n const thisIndex = mutator.indexOf(this);\n for(let i = thisIndex + 1; i < parentNode.childNodes.length; i++){\n if (!nodes.includes(parentNode.childNodes[i])) {\n viableNextSibling = parentNode.childNodes[i];\n break;\n }\n }\n }\n nodes = nodesAndTextNodes(nodes, parentNode);\n let index = viableNextSibling ? mutator.indexOf(viableNextSibling) : parentNode.childNodes.length;\n let deleteNumber;\n if (parentNode.childNodes[index - 1] === this) {\n index--;\n deleteNumber = 1;\n } else {\n deleteNumber = 0;\n }\n mutator.splice(index, deleteNumber, ...nodes);\n this._setParent(null);\n }\n }\n get nextSibling() {\n const parent = this.parentNode;\n if (!parent) {\n return null;\n }\n const index = parent._getChildNodesMutator().indexOf(this);\n const next = parent.childNodes[index + 1] || null;\n return next;\n }\n get previousSibling() {\n const parent = this.parentNode;\n if (!parent) {\n return null;\n }\n const index = parent._getChildNodesMutator().indexOf(this);\n const prev = parent.childNodes[index - 1] || null;\n return prev;\n }\n // Node.compareDocumentPosition()'s bitmask values\n static DOCUMENT_POSITION_DISCONNECTED = 1;\n static DOCUMENT_POSITION_PRECEDING = 2;\n static DOCUMENT_POSITION_FOLLOWING = 4;\n static DOCUMENT_POSITION_CONTAINS = 8;\n static DOCUMENT_POSITION_CONTAINED_BY = 16;\n static DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC = 32;\n /**\n * FIXME: Does not implement attribute node checks\n * ref: https://dom.spec.whatwg.org/#dom-node-comparedocumentposition\n * MDN: https://developer.mozilla.org/en-US/docs/Web/API/Node/compareDocumentPosition\n */ compareDocumentPosition(other) {\n if (other === this) {\n return 0;\n }\n // Note: major browser implementations differ in their rejection error of\n // non-Node or nullish values so we just copy the most relevant error message\n // from Firefox\n if (!(other instanceof Node)) {\n throw new TypeError(\"Node.compareDocumentPosition: Argument 1 does not implement interface Node.\");\n }\n let node1Root = other;\n let node2Root = this;\n const node1Hierarchy = [\n node1Root\n ];\n const node2Hierarchy = [\n node2Root\n ];\n while(node1Root.parentNode ?? node2Root.parentNode){\n node1Root = node1Root.parentNode ? (node1Hierarchy.push(node1Root.parentNode), node1Root.parentNode) : node1Root;\n node2Root = node2Root.parentNode ? (node2Hierarchy.push(node2Root.parentNode), node2Root.parentNode) : node2Root;\n }\n // Check if they don't share the same root node\n if (node1Root !== node2Root) {\n return Node.DOCUMENT_POSITION_DISCONNECTED | Node.DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC | Node.DOCUMENT_POSITION_PRECEDING;\n }\n const longerHierarchy = node1Hierarchy.length > node2Hierarchy.length ? node1Hierarchy : node2Hierarchy;\n const shorterHierarchy = longerHierarchy === node1Hierarchy ? node2Hierarchy : node1Hierarchy;\n // Check if either is a container of the other\n if (longerHierarchy[longerHierarchy.length - shorterHierarchy.length] === shorterHierarchy[0]) {\n return longerHierarchy === node1Hierarchy ? Node.DOCUMENT_POSITION_CONTAINED_BY | Node.DOCUMENT_POSITION_FOLLOWING : Node.DOCUMENT_POSITION_CONTAINS | Node.DOCUMENT_POSITION_PRECEDING;\n }\n // Find their first common ancestor and see whether they\n // are preceding or following\n const longerStart = longerHierarchy.length - shorterHierarchy.length;\n for(let i = shorterHierarchy.length - 1; i >= 0; i--){\n const shorterHierarchyNode = shorterHierarchy[i];\n const longerHierarchyNode = longerHierarchy[longerStart + i];\n // We found the first common ancestor\n if (longerHierarchyNode !== shorterHierarchyNode) {\n const siblings = shorterHierarchyNode.parentNode._getChildNodesMutator();\n if (siblings.indexOf(shorterHierarchyNode) < siblings.indexOf(longerHierarchyNode)) {\n // Shorter is before longer\n if (shorterHierarchy === node1Hierarchy) {\n // Other is before this\n return Node.DOCUMENT_POSITION_PRECEDING;\n } else {\n // This is before other\n return Node.DOCUMENT_POSITION_FOLLOWING;\n }\n } else {\n // Longer is before shorter\n if (longerHierarchy === node1Hierarchy) {\n // Other is before this\n return Node.DOCUMENT_POSITION_PRECEDING;\n } else {\n // Other is after this\n return Node.DOCUMENT_POSITION_FOLLOWING;\n }\n }\n }\n }\n // FIXME: Should probably throw here because this\n // point should be unreachable code as per the\n // intended logic\n return Node.DOCUMENT_POSITION_FOLLOWING;\n }\n getRootNode(opts = {}) {\n if (this.parentNode) {\n return this.parentNode.getRootNode(opts);\n }\n if (opts.composed && this.host) {\n return this.host.getRootNode(opts);\n }\n return this;\n }\n}\nNode.prototype.ELEMENT_NODE = NodeType.ELEMENT_NODE;\nNode.prototype.ATTRIBUTE_NODE = NodeType.ATTRIBUTE_NODE;\nNode.prototype.TEXT_NODE = NodeType.TEXT_NODE;\nNode.prototype.CDATA_SECTION_NODE = NodeType.CDATA_SECTION_NODE;\nNode.prototype.ENTITY_REFERENCE_NODE = NodeType.ENTITY_REFERENCE_NODE;\nNode.prototype.ENTITY_NODE = NodeType.ENTITY_NODE;\nNode.prototype.PROCESSING_INSTRUCTION_NODE = NodeType.PROCESSING_INSTRUCTION_NODE;\nNode.prototype.COMMENT_NODE = NodeType.COMMENT_NODE;\nNode.prototype.DOCUMENT_NODE = NodeType.DOCUMENT_NODE;\nNode.prototype.DOCUMENT_TYPE_NODE = NodeType.DOCUMENT_TYPE_NODE;\nNode.prototype.DOCUMENT_FRAGMENT_NODE = NodeType.DOCUMENT_FRAGMENT_NODE;\nNode.prototype.NOTATION_NODE = NodeType.NOTATION_NODE;\nexport class CharacterData extends Node {\n #nodeValue = \"\";\n constructor(data, nodeName, nodeType, parentNode, key){\n super(nodeName, nodeType, parentNode, key);\n this.#nodeValue = data;\n }\n get nodeValue() {\n return this.#nodeValue;\n }\n set nodeValue(value) {\n this.#nodeValue = String(value ?? \"\");\n }\n get data() {\n return this.#nodeValue;\n }\n set data(value) {\n this.nodeValue = value;\n }\n get textContent() {\n return this.#nodeValue;\n }\n set textContent(value) {\n this.nodeValue = value;\n }\n get length() {\n return this.data.length;\n }\n before(...nodes) {\n if (this.parentNode) {\n insertBeforeAfter(this, nodes, true);\n }\n }\n after(...nodes) {\n if (this.parentNode) {\n insertBeforeAfter(this, nodes, false);\n }\n }\n remove() {\n this._remove();\n }\n replaceWith(...nodes) {\n this._replaceWith(...nodes);\n }\n}\nexport class Text extends CharacterData {\n constructor(text = \"\"){\n super(String(text), \"#text\", NodeType.TEXT_NODE, null, CTOR_KEY);\n }\n _shallowClone() {\n return new Text(this.textContent);\n }\n}\nexport class Comment extends CharacterData {\n constructor(text = \"\"){\n super(String(text), \"#comment\", NodeType.COMMENT_NODE, null, CTOR_KEY);\n }\n _shallowClone() {\n return new Comment(this.textContent);\n }\n get textContent() {\n return this.nodeValue;\n }\n}\n//# sourceMappingURL=node.js.map","const upperCasedStringCache = new Map();\nconst lowerCasedStringCache = new Map();\nexport function getUpperCase(string) {\n return upperCasedStringCache.get(string) ?? upperCasedStringCache.set(string, string.toUpperCase()).get(string);\n}\nexport function getLowerCase(string) {\n return lowerCasedStringCache.get(string) ?? lowerCasedStringCache.set(string, string.toLowerCase()).get(string);\n}\n//# sourceMappingURL=string-cache.js.map","var _computedKey, _computedKey1, _computedKey2;\nimport { CTOR_KEY } from \"../constructor-lock.js\";\nimport { fragmentNodesFromString } from \"../deserialize.js\";\nimport { Node, nodesAndTextNodes, NodeType } from \"./node.js\";\nimport { NodeList, nodeListMutatorSym } from \"./node-list.js\";\nimport { getDatasetHtmlAttrName, getDatasetJavascriptName, getElementsByClassName, getOuterOrInnerHtml, insertBeforeAfter, lowerCaseCharRe, upperCaseCharRe } from \"./utils.js\";\nimport UtilTypes from \"./utils-types.js\";\nimport { getLowerCase, getUpperCase } from \"./string-cache.js\";\n_computedKey = Symbol.iterator;\nexport class DOMTokenList {\n // Minimum number of classnames/tokens in order to switch from\n // an array-backed to a set-backed list\n static #DOM_TOKEN_LIST_MIN_SET_SIZE = 32;\n #_value = \"\";\n get #value() {\n return this.#_value;\n }\n set #value(value) {\n this.#_value = value;\n this.#onChange(value);\n }\n #set = [];\n #onChange;\n constructor(onChange, key){\n if (key !== CTOR_KEY) {\n throw new TypeError(\"Illegal constructor\");\n }\n this.#onChange = onChange;\n }\n static #invalidToken(token) {\n return token === \"\" || /[\\t\\n\\f\\r ]/.test(token);\n }\n #setIndices() {\n const classes = Array.from(this.#set);\n for(let i = 0; i < classes.length; i++){\n this[i] = classes[i];\n }\n }\n set value(input) {\n this.#value = input;\n this.#set = input.trim().split(/[\\t\\n\\f\\r\\s]+/g).filter(Boolean);\n if (this.#set.length > DOMTokenList.#DOM_TOKEN_LIST_MIN_SET_SIZE) {\n this.#set = new Set(this.#set);\n } else {\n const deduplicatedSet = [];\n for (const element of this.#set){\n if (!deduplicatedSet.includes(element)) {\n deduplicatedSet.push(element);\n }\n }\n this.#set = deduplicatedSet;\n }\n this.#setIndices();\n }\n get value() {\n return this.#_value;\n }\n get length() {\n if (this.#set.constructor === Array) {\n return this.#set.length;\n } else {\n return this.#set.size;\n }\n }\n *entries() {\n const array = Array.from(this.#set);\n for(let i = 0; i < array.length; i++){\n yield [\n i,\n array[i]\n ];\n }\n }\n *values() {\n yield* this.#set.values();\n }\n *keys() {\n const length = this.length;\n for(let i = 0; i < length; i++){\n yield i;\n }\n }\n *[_computedKey]() {\n yield* this.#set.values();\n }\n item(index) {\n index = Number(index);\n if (Number.isNaN(index) || index === Infinity) index = 0;\n return this[Math.trunc(index) % 2 ** 32] ?? null;\n }\n contains(element) {\n if (this.#set.constructor === Array) {\n return this.#set.includes(element);\n } else {\n return this.#set.has(element);\n }\n }\n #arrayAdd(element) {\n const array = this.#set;\n if (!array.includes(element)) {\n this[array.length] = element;\n array.push(element);\n }\n }\n #setAdd(element) {\n const set = this.#set;\n const { size } = set;\n set.add(element);\n if (size < set.size) {\n this[size] = element;\n }\n }\n add(...elements) {\n const method = (this.#set.constructor === Array ? this.#arrayAdd : this.#setAdd).bind(this);\n for (const element of elements){\n if (DOMTokenList.#invalidToken(element)) {\n throw new DOMException(\"Failed to execute 'add' on 'DOMTokenList': The token provided must not be empty.\");\n }\n method(element);\n }\n this.#updateClassString();\n }\n #arrayRemove(element) {\n const array = this.#set;\n const index = array.indexOf(element);\n if (index >= 0) {\n array.splice(index, 1);\n }\n }\n #setRemove(element) {\n this.#set.delete(element);\n }\n remove(...elements) {\n const method = (this.#set.constructor === Array ? this.#arrayRemove : this.#setRemove).bind(this);\n const size = this.length;\n for (const element of elements){\n if (DOMTokenList.#invalidToken(element)) {\n throw new DOMException(\"Failed to execute 'remove' on 'DOMTokenList': The token provided must not be empty.\");\n }\n method(element);\n }\n const newSize = this.length;\n if (size !== newSize) {\n for(let i = newSize; i < size; i++){\n delete this[i];\n }\n this.#setIndices();\n }\n this.#updateClassString();\n }\n replace(oldToken, newToken) {\n const isArrayBacked = this.#set.constructor === Array;\n const removeMethod = (isArrayBacked ? this.#arrayRemove : this.#setRemove).bind(this);\n const addMethod = (isArrayBacked ? this.#arrayAdd : this.#setAdd).bind(this);\n if ([\n oldToken,\n newToken\n ].some((v)=>DOMTokenList.#invalidToken(v))) {\n throw new DOMException(\"Failed to execute 'replace' on 'DOMTokenList': The token provided must not be empty.\");\n }\n if (!this.contains(oldToken)) {\n return false;\n }\n if (this.contains(newToken)) {\n this.remove(oldToken);\n } else {\n removeMethod(oldToken);\n addMethod(newToken);\n this.#setIndices();\n this.#updateClassString();\n }\n return true;\n }\n supports() {\n throw new Error(\"Not implemented\");\n }\n toggle(element, force) {\n if (force !== undefined) {\n const operation = force ? \"add\" : \"remove\";\n this[operation](element);\n return false;\n } else {\n const contains = this.contains(element);\n const operation = contains ? \"remove\" : \"add\";\n this[operation](element);\n return !contains;\n }\n }\n forEach(callback) {\n for (const [i, value] of this.entries()){\n callback(value, i, this);\n }\n }\n #updateClassString() {\n this.#value = Array.from(this.#set).join(\" \");\n if (this.#set.constructor === Array && this.#set.length > DOMTokenList.#DOM_TOKEN_LIST_MIN_SET_SIZE) {\n this.#set = new Set(this.#set);\n }\n }\n}\nconst initializeClassListSym = Symbol(\"initializeClassListSym\");\nconst domTokenListCurrentElementSym = Symbol(\"domTokenListCurrentElementSym\");\n_computedKey1 = Symbol.iterator;\n/**\n * The purpose of this uninitialized DOMTokenList is to consume less memory\n * than the actual DOMTokenList class. By measurements of Deno v2.1.0 (V8 13.0.245.12-rusty)\n * this class consumes 48 bytes while the smallest DOMTokenList consumes 488\n * bytes\n */ class UninitializedDOMTokenList {\n // This will always be populated with the current element\n // being queried\n [domTokenListCurrentElementSym];\n constructor(currentElement){\n this[domTokenListCurrentElementSym] = currentElement;\n }\n #getInitialized() {\n const currentClassList = this[domTokenListCurrentElementSym].classList;\n if (currentClassList === this) {\n return null;\n }\n return currentClassList;\n }\n set value(input) {\n this[domTokenListCurrentElementSym][initializeClassListSym]();\n this[domTokenListCurrentElementSym].classList.value = String(input);\n }\n get value() {\n return this.#getInitialized()?.value ?? \"\";\n }\n get length() {\n return this.#getInitialized()?.length ?? 0;\n }\n *entries() {\n const initialized = this.#getInitialized();\n if (initialized) {\n yield* initialized.entries();\n }\n }\n *values() {\n const initialized = this.#getInitialized();\n if (initialized) {\n yield* initialized.values();\n }\n }\n *keys() {\n const initialized = this.#getInitialized();\n if (initialized) {\n yield* initialized.keys();\n }\n }\n *[_computedKey1]() {\n yield* this.values();\n }\n item(index) {\n return this.#getInitialized()?.item(index) ?? null;\n }\n contains(element) {\n return this.#getInitialized()?.contains(element) ?? false;\n }\n add(...elements) {\n this[domTokenListCurrentElementSym][initializeClassListSym]();\n this[domTokenListCurrentElementSym].classList.add(...elements);\n }\n remove(...elements) {\n this.#getInitialized()?.remove(...elements);\n }\n replace(oldToken, newToken) {\n return this.#getInitialized()?.replace(oldToken, newToken) ?? false;\n }\n supports() {\n throw new Error(\"Not implemented\");\n }\n toggle(element, force) {\n if (force === false) {\n return this.#getInitialized()?.toggle(element, force) ?? false;\n }\n this[domTokenListCurrentElementSym][initializeClassListSym]();\n this[domTokenListCurrentElementSym].classList.add(element);\n return true;\n }\n forEach(callback) {\n this.#getInitialized()?.forEach(callback);\n }\n}\nconst setNamedNodeMapOwnerElementSym = Symbol(\"setNamedNodeMapOwnerElementSym\");\nconst setAttrValueSym = Symbol(\"setAttrValueSym\");\nexport class Attr extends Node {\n #namedNodeMap = null;\n #name = \"\";\n #value = \"\";\n #ownerElement = null;\n constructor(map, name, value, key){\n if (key !== CTOR_KEY) {\n throw new TypeError(\"Illegal constructor\");\n }\n super(name, NodeType.ATTRIBUTE_NODE, null, CTOR_KEY);\n this.#name = name;\n this.#value = value;\n this.#namedNodeMap = map;\n }\n [setNamedNodeMapOwnerElementSym](ownerElement) {\n this.#ownerElement = ownerElement;\n this.#namedNodeMap = ownerElement?.attributes ?? null;\n if (ownerElement) {\n this._setOwnerDocument(ownerElement.ownerDocument);\n }\n }\n [setAttrValueSym](value) {\n this.#value = value;\n }\n _shallowClone() {\n const newAttr = new Attr(null, this.#name, this.#value, CTOR_KEY);\n newAttr._setOwnerDocument(this.ownerDocument);\n return newAttr;\n }\n cloneNode() {\n return super.cloneNode();\n }\n appendChild() {\n throw new DOMException(\"Cannot add children to an Attribute\");\n }\n replaceChild() {\n throw new DOMException(\"Cannot add children to an Attribute\");\n }\n insertBefore() {\n throw new DOMException(\"Cannot add children to an Attribute\");\n }\n removeChild() {\n throw new DOMException(\"The node to be removed is not a child of this node\");\n }\n get name() {\n return this.#name;\n }\n get localName() {\n // TODO: When we make namespaces a thing this needs\n // to be updated\n return this.#name;\n }\n get value() {\n return this.#value;\n }\n set value(value) {\n this.#value = String(value);\n if (this.#namedNodeMap) {\n this.#namedNodeMap[setNamedNodeMapValueSym](this.#name, this.#value, true);\n }\n }\n get ownerElement() {\n return this.#ownerElement ?? null;\n }\n get specified() {\n return true;\n }\n // TODO\n get prefix() {\n return null;\n }\n}\nconst setNamedNodeMapValueSym = Symbol(\"setNamedNodeMapValueSym\");\nconst getNamedNodeMapValueSym = Symbol(\"getNamedNodeMapValueSym\");\nconst getNamedNodeMapAttrNamesSym = Symbol(\"getNamedNodeMapAttrNamesSym\");\nconst getNamedNodeMapAttrNodeSym = Symbol(\"getNamedNodeMapAttrNodeSym\");\nconst removeNamedNodeMapAttrSym = Symbol(\"removeNamedNodeMapAttrSym\");\n_computedKey2 = Symbol.iterator;\nexport class NamedNodeMap {\n static #indexedAttrAccess = function(map, index) {\n if (index + 1 > this.length) {\n return undefined;\n }\n const attribute = Object.keys(map).filter((attribute)=>map[attribute] !== undefined)[index]?.slice(1); // Remove \"a\" for safeAttrName\n return this[getNamedNodeMapAttrNodeSym](attribute);\n };\n #onAttrNodeChange;\n constructor(ownerElement, onAttrNodeChange, key){\n if (key !== CTOR_KEY) {\n throw new TypeError(\"Illegal constructor.\");\n }\n this.#ownerElement = ownerElement;\n this.#onAttrNodeChange = onAttrNodeChange;\n // Retain ordering of any preceding id or class attributes\n for (const attr of ownerElement.getAttributeNames()){\n this[setNamedNodeMapValueSym](attr, ownerElement.getAttribute(attr));\n }\n }\n #attrNodeCache = {};\n #map = {};\n #length = 0;\n #capacity = 0;\n #ownerElement = null;\n [getNamedNodeMapAttrNodeSym](attribute) {\n const safeAttrName = \"a\" + attribute;\n let attrNode = this.#attrNodeCache[safeAttrName];\n if (!attrNode) {\n attrNode = this.#attrNodeCache[safeAttrName] = new Attr(this, attribute, this.#map[safeAttrName], CTOR_KEY);\n attrNode[setNamedNodeMapOwnerElementSym](this.#ownerElement);\n }\n return attrNode;\n }\n [getNamedNodeMapAttrNamesSym]() {\n const names = [];\n for (const [name, value] of Object.entries(this.#map)){\n if (value !== undefined) {\n names.push(name.slice(1)); // Remove \"a\" for safeAttrName\n }\n }\n return names;\n }\n [getNamedNodeMapValueSym](attribute) {\n const safeAttrName = \"a\" + attribute;\n return this.#map[safeAttrName];\n }\n [setNamedNodeMapValueSym](attribute, value, bubble = false) {\n const safeAttrName = \"a\" + attribute;\n if (this.#map[safeAttrName] === undefined) {\n this.#length++;\n if (this.#length > this.#capacity) {\n this.#capacity = this.#length;\n const index = this.#capacity - 1;\n Object.defineProperty(this, String(this.#capacity - 1), {\n get: NamedNodeMap.#indexedAttrAccess.bind(this, this.#map, index)\n });\n }\n } else if (this.#attrNodeCache[safeAttrName]) {\n this.#attrNodeCache[safeAttrName][setAttrValueSym](value);\n }\n this.#map[safeAttrName] = value;\n if (bubble) {\n this.#onAttrNodeChange(attribute, value);\n }\n }\n /**\n * Called when an attribute is removed from\n * an element\n */ [removeNamedNodeMapAttrSym](attribute) {\n const safeAttrName = \"a\" + attribute;\n if (this.#map[safeAttrName] !== undefined) {\n this.#length--;\n this.#map[safeAttrName] = undefined;\n this.#onAttrNodeChange(attribute, null);\n const attrNode = this.#attrNodeCache[safeAttrName];\n if (attrNode) {\n attrNode[setNamedNodeMapOwnerElementSym](null);\n this.#attrNodeCache[safeAttrName] = undefined;\n }\n }\n }\n *[_computedKey2]() {\n for(let i = 0; i < this.length; i++){\n yield this[i];\n }\n }\n get length() {\n return this.#length;\n }\n // FIXME: This method should accept anything and basically\n // coerce any non numbers (and Infinity/-Infinity) into 0\n item(index) {\n if (index >= this.#length) {\n return null;\n }\n return this[index];\n }\n getNamedItem(attribute) {\n const safeAttrName = \"a\" + attribute;\n if (this.#map[safeAttrName] !== undefined) {\n return this[getNamedNodeMapAttrNodeSym](attribute);\n }\n return null;\n }\n setNamedItem(attrNode) {\n if (attrNode.ownerElement) {\n throw new DOMException(\"Attribute already in use\");\n }\n const safeAttrName = \"a\" + attrNode.name;\n const previousAttr = this.#attrNodeCache[safeAttrName];\n if (previousAttr) {\n previousAttr[setNamedNodeMapOwnerElementSym](null);\n this.#map[safeAttrName] = undefined;\n }\n attrNode[setNamedNodeMapOwnerElementSym](this.#ownerElement);\n this.#attrNodeCache[safeAttrName] = attrNode;\n this[setNamedNodeMapValueSym](attrNode.name, attrNode.value, true);\n }\n removeNamedItem(attribute) {\n const safeAttrName = \"a\" + attribute;\n if (this.#map[safeAttrName] !== undefined) {\n const attrNode = this[getNamedNodeMapAttrNodeSym](attribute);\n this[removeNamedNodeMapAttrSym](attribute);\n return attrNode;\n }\n throw new DOMException(\"Node was not found\");\n }\n}\nconst XML_NAMESTART_CHAR_RE_SRC = \":A-Za-z_\" + String.raw`\\u{C0}-\\u{D6}\\u{D8}-\\u{F6}\\u{F8}-\\u{2FF}\\u{370}-\\u{37D}` + String.raw`\\u{37F}-\\u{1FFF}\\u{200C}-\\u{200D}\\u{2070}-\\u{218F}\\u{2C00}-\\u{2FEF}` + String.raw`\\u{3001}-\\u{D7FF}\\u{F900}-\\u{FDCF}\\u{FDF0}-\\u{FFFD}\\u{10000}-\\u{EFFFF}`;\nconst XML_NAME_CHAR_RE_SRC = XML_NAMESTART_CHAR_RE_SRC + String.raw`\\u{B7}\\u{0300}-\\u{036F}\\u{203F}-\\u{2040}0-9.-`;\nconst xmlNamestartCharRe = new RegExp(`[${XML_NAMESTART_CHAR_RE_SRC}]`, \"u\");\nconst xmlNameCharRe = new RegExp(`[${XML_NAME_CHAR_RE_SRC}]`, \"u\");\nexport class Element extends Node {\n #namedNodeMap = null;\n get attributes() {\n if (!this.#namedNodeMap) {\n this.#namedNodeMap = new NamedNodeMap(this, (attribute, value)=>{\n const isRemoved = value === null;\n if (value === null) {\n value = \"\";\n }\n switch(attribute){\n case \"class\":\n {\n if (isRemoved) {\n this.#hasClassNameAttribute = -1;\n } else if (this.#hasClassNameAttribute === -1) {\n this.#hasClassNameAttribute = this.#hasIdAttribute + 1;\n }\n // This must happen after the attribute is marked removed\n this.#currentClassName = value;\n this.#classList.value = value;\n break;\n }\n case \"id\":\n {\n if (isRemoved) {\n this.#hasIdAttribute = -1;\n } else if (this.#hasIdAttribute === -1) {\n this.#hasIdAttribute = this.#hasClassNameAttribute + 1;\n }\n this.#currentId = value;\n break;\n }\n }\n }, CTOR_KEY);\n }\n return this.#namedNodeMap;\n }\n #datasetProxy = null;\n #currentId = \"\";\n #currentClassName = \"\";\n #hasIdAttribute = -1;\n #hasClassNameAttribute = -1;\n // Only initialize a classList when we need one\n #classListInstance = new UninitializedDOMTokenList(this);\n get #classList() {\n return this.#classListInstance;\n }\n [initializeClassListSym]() {\n if (this.#classListInstance.constructor === DOMTokenList) {\n return;\n }\n this.#classListInstance = new DOMTokenList((className)=>{\n if (this.#currentClassName !== className) {\n this.#currentClassName = className;\n if (this.#hasClassNameAttribute === -1) {\n this.#hasClassNameAttribute = this.#hasIdAttribute + 1;\n }\n if (this.#namedNodeMap && (this.hasAttribute(\"class\") || className !== \"\")) {\n this.attributes[setNamedNodeMapValueSym](\"class\", className);\n }\n }\n }, CTOR_KEY);\n }\n constructor(tagName, parentNode, attributes, key){\n super(tagName, NodeType.ELEMENT_NODE, parentNode, key);\n for (const attr of attributes){\n this.setAttribute(attr[0], attr[1]);\n }\n this.nodeName = getUpperCase(tagName);\n }\n get tagName() {\n return this.nodeName;\n }\n get localName() {\n return getLowerCase(this.tagName);\n }\n _shallowClone() {\n // FIXME: This attribute copying needs to also be fixed in other\n // elements that override _shallowClone like <template>\n const attributes = [];\n for (const attribute of this.getAttributeNames()){\n attributes.push([\n attribute,\n this.getAttribute(attribute)\n ]);\n }\n return new Element(this.nodeName, null, attributes, CTOR_KEY);\n }\n get childElementCount() {\n return this._getChildNodesMutator().elementsView().length;\n }\n get className() {\n return this.#currentClassName;\n }\n set className(className) {\n this.#classList.value = className;\n }\n get classList() {\n return this.#classList;\n }\n get outerHTML() {\n return getOuterOrInnerHtml(this, true);\n }\n set outerHTML(html) {\n if (this.parentNode) {\n const { parentElement, parentNode } = this;\n let contextLocalName = parentElement?.localName;\n switch(parentNode.nodeType){\n case NodeType.DOCUMENT_NODE:\n {\n throw new DOMException(\"Modifications are not allowed for this document\");\n }\n // setting outerHTML, step 4. Document Fragment\n // ref: https://w3c.github.io/DOM-Parsing/#dom-element-outerhtml\n case NodeType.DOCUMENT_FRAGMENT_NODE:\n {\n contextLocalName = \"body\";\n // fall-through\n }\n default:\n {\n const { childNodes: newChildNodes } = fragmentNodesFromString(html, contextLocalName).childNodes[0];\n const mutator = parentNode._getChildNodesMutator();\n const insertionIndex = mutator.indexOf(this);\n for(let i = newChildNodes.length - 1; i >= 0; i--){\n const child = newChildNodes[i];\n mutator.splice(insertionIndex, 0, child);\n child._setParent(parentNode);\n child._setOwnerDocument(parentNode.ownerDocument);\n }\n this.remove();\n }\n }\n }\n }\n get innerHTML() {\n return getOuterOrInnerHtml(this, false);\n }\n set innerHTML(html) {\n // Remove all children\n for (const child of this.childNodes){\n child._setParent(null);\n }\n const mutator = this._getChildNodesMutator();\n mutator.splice(0, this.childNodes.length);\n // Parse HTML into new children\n if (html.length) {\n const parsed = fragmentNodesFromString(html, this.localName);\n for (const child of parsed.childNodes[0].childNodes){\n mutator.push(child);\n }\n for (const child of this.childNodes){\n child._setParent(this);\n child._setOwnerDocument(this.ownerDocument);\n }\n }\n }\n get innerText() {\n return this.textContent;\n }\n set innerText(text) {\n this.textContent = text;\n }\n get children() {\n return this._getChildNodesMutator().elementsView();\n }\n get id() {\n return this.#currentId || \"\";\n }\n set id(id) {\n this.setAttribute(\"id\", id);\n }\n get dataset() {\n if (this.#datasetProxy) {\n return this.#datasetProxy;\n }\n this.#datasetProxy = new Proxy({}, {\n get: (_target, property, _receiver)=>{\n if (typeof property === \"string\") {\n const attributeName = getDatasetHtmlAttrName(property);\n return this.getAttribute(attributeName) ?? undefined;\n }\n return undefined;\n },\n set: (_target, property, value, _receiver)=>{\n if (typeof property === \"string\") {\n let attributeName = \"data-\";\n let prevChar = \"\";\n for (const char of property){\n // Step 1. https://html.spec.whatwg.org/multipage/dom.html#dom-domstringmap-setitem\n if (prevChar === \"-\" && lowerCaseCharRe.test(char)) {\n throw new DOMException(\"An invalid or illegal string was specified\");\n }\n // Step 4. https://html.spec.whatwg.org/multipage/dom.html#dom-domstringmap-setitem\n if (!xmlNameCharRe.test(char)) {\n throw new DOMException(\"String contains an invalid character\");\n }\n // Step 2. https://html.spec.whatwg.org/multipage/dom.html#dom-domstringmap-setitem\n if (upperCaseCharRe.test(char)) {\n attributeName += \"-\";\n }\n attributeName += char.toLowerCase();\n prevChar = char;\n }\n this.setAttribute(attributeName, String(value));\n }\n return true;\n },\n deleteProperty: (_target, property)=>{\n if (typeof property === \"string\") {\n const attributeName = getDatasetHtmlAttrName(property);\n this.removeAttribute(attributeName);\n }\n return true;\n },\n ownKeys: (_target)=>{\n return this.getAttributeNames().flatMap((attributeName)=>{\n if (attributeName.startsWith?.(\"data-\")) {\n return [\n getDatasetJavascriptName(attributeName)\n ];\n } else {\n return [];\n }\n });\n },\n getOwnPropertyDescriptor: (_target, property)=>{\n if (typeof property === \"string\") {\n const attributeName = getDatasetHtmlAttrName(property);\n if (this.hasAttribute(attributeName)) {\n return {\n writable: true,\n enumerable: true,\n configurable: true\n };\n }\n }\n return undefined;\n },\n has: (_target, property)=>{\n if (typeof property === \"string\") {\n const attributeName = getDatasetHtmlAttrName(property);\n return this.hasAttribute(attributeName);\n }\n return false;\n }\n });\n return this.#datasetProxy;\n }\n getAttributeNames() {\n if (!this.#namedNodeMap) {\n const attributes = [];\n // We preserve the order of the \"id\" and \"class\" attributes when\n // returning the list of names with an uninitialized NamedNodeMap\n const startWithClassAttr = Number(this.#hasIdAttribute > this.#hasClassNameAttribute);\n for(let i = 0; i < 2; i++){\n const attributeIdx = (i + startWithClassAttr) % 2;\n switch(attributeIdx){\n // \"id\" attribute\n case 0:\n {\n ~this.#hasIdAttribute && attributes.push(\"id\");\n break;\n }\n // \"class\" attribute\n case 1:\n {\n ~this.#hasClassNameAttribute && attributes.push(\"class\");\n break;\n }\n }\n }\n return attributes;\n }\n return this.attributes[getNamedNodeMapAttrNamesSym]();\n }\n getAttribute(rawName) {\n const name = getLowerCase(String(rawName));\n switch(name){\n case \"id\":\n {\n if (~this.#hasIdAttribute) {\n return this.#currentId;\n } else {\n return null;\n }\n }\n case \"class\":\n {\n if (~this.#hasClassNameAttribute) {\n return this.#currentClassName;\n } else {\n return null;\n }\n }\n }\n if (!this.#namedNodeMap) {\n return null;\n }\n return this.attributes[getNamedNodeMapValueSym](name) ?? null;\n }\n setAttribute(rawName, value) {\n const name = getLowerCase(String(rawName));\n const strValue = String(value);\n let isNormalAttribute = false;\n switch(name){\n case \"id\":\n {\n this.#currentId = strValue;\n if (this.#hasIdAttribute === -1) {\n this.#hasIdAttribute = this.#hasClassNameAttribute + 1;\n }\n break;\n }\n case \"class\":\n {\n this.#classList.value = strValue;\n if (this.#hasClassNameAttribute === -1) {\n this.#hasClassNameAttribute = this.#hasIdAttribute + 1;\n }\n break;\n }\n default:\n {\n isNormalAttribute = true;\n }\n }\n if (this.#namedNodeMap || isNormalAttribute) {\n this.attributes[setNamedNodeMapValueSym](name, strValue);\n }\n }\n removeAttribute(rawName) {\n const name = getLowerCase(String(rawName));\n switch(name){\n case \"id\":\n {\n this.#currentId = \"\";\n this.#hasIdAttribute = -1;\n break;\n }\n case \"class\":\n {\n this.#classList.value = \"\";\n this.#hasClassNameAttribute = -1;\n break;\n }\n }\n if (!this.#namedNodeMap) {\n return;\n }\n this.attributes[removeNamedNodeMapAttrSym](name);\n }\n toggleAttribute(rawName, force) {\n const name = getLowerCase(String(rawName));\n if (this.hasAttribute(name)) {\n if (force === undefined || force === false) {\n this.removeAttribute(name);\n return false;\n }\n return true;\n }\n if (force === undefined || force === true) {\n this.setAttribute(name, \"\");\n return true;\n }\n return false;\n }\n hasAttribute(rawName) {\n const name = getLowerCase(String(rawName));\n switch(name){\n case \"id\":\n {\n return Boolean(~this.#hasIdAttribute);\n }\n case \"class\":\n {\n return Boolean(~this.#hasClassNameAttribute);\n }\n }\n if (!this.#namedNodeMap) {\n return false;\n }\n return this.attributes[getNamedNodeMapValueSym](name) !== undefined;\n }\n hasAttributeNS(_namespace, rawName) {\n const name = getLowerCase(String(rawName));\n switch(name){\n case \"id\":\n {\n return Boolean(~this.#hasIdAttribute);\n }\n case \"class\":\n {\n return Boolean(~this.#hasClassNameAttribute);\n }\n }\n if (!this.#namedNodeMap) {\n return false;\n }\n // TODO: Use namespace\n return this.attributes[getNamedNodeMapValueSym](name) !== undefined;\n }\n /**\n * https://dom.spec.whatwg.org/#concept-element-attributes-get-by-name\n */ getAttributeNode(rawName) {\n const name = getLowerCase(String(rawName));\n return this.attributes.getNamedItem(name);\n }\n /**\n * https://dom.spec.whatwg.org/#concept-element-attributes-set\n */ setAttributeNode(attr) {\n if (attr?.constructor !== Attr) {\n throw new TypeError(\"Element.setAttributeNode: Argument 1 does not implement interface Attr\");\n }\n const attrName = attr.localName;\n const oldAttr = this.attributes.getNamedItem(attrName);\n if (oldAttr === attr) {\n return attr;\n }\n this.attributes.setNamedItem(attr);\n return oldAttr;\n }\n replaceWith(...nodes) {\n this._replaceWith(...nodes);\n }\n remove() {\n this._remove();\n }\n append(...nodes) {\n const mutator = this._getChildNodesMutator();\n mutator.push(...nodesAndTextNodes(nodes, this));\n }\n prepend(...nodes) {\n const mutator = this._getChildNodesMutator();\n mutator.splice(0, 0, ...nodesAndTextNodes(nodes, this));\n }\n before(...nodes) {\n if (this.parentNode) {\n insertBeforeAfter(this, nodes, true);\n }\n }\n after(...nodes) {\n if (this.parentNode) {\n insertBeforeAfter(this, nodes, false);\n }\n }\n get firstElementChild() {\n const elements = this._getChildNodesMutator().elementsView();\n return elements[0] ?? null;\n }\n get lastElementChild() {\n const elements = this._getChildNodesMutator().elementsView();\n return elements[elements.length - 1] ?? null;\n }\n get nextElementSibling() {\n const parent = this.parentNode;\n if (!parent) {\n return null;\n }\n const mutator = parent._getChildNodesMutator();\n const index = mutator.indexOfElementsView(this);\n const elements = mutator.elementsView();\n return elements[index + 1] ?? null;\n }\n get previousElementSibling() {\n const parent = this.parentNode;\n if (!parent) {\n return null;\n }\n const mutator = parent._getChildNodesMutator();\n const index = mutator.indexOfElementsView(this);\n const elements = mutator.elementsView();\n return elements[index - 1] ?? null;\n }\n querySelector(selectors) {\n if (!this.ownerDocument) {\n throw new Error(\"Element must have an owner document\");\n }\n return this.ownerDocument._nwapi.first(selectors, this);\n }\n querySelectorAll(selectors) {\n if (!this.ownerDocument) {\n throw new Error(\"Element must have an owner document\");\n }\n const nodeList = new NodeList();\n const mutator = nodeList[nodeListMutatorSym]();\n for (const match of this.ownerDocument._nwapi.select(selectors, this)){\n mutator.push(match);\n }\n return nodeList;\n }\n matches(selectorString) {\n return this.ownerDocument._nwapi.match(selectorString, this);\n }\n closest(selectorString) {\n const { match } = this.ownerDocument._nwapi; // See note below\n // deno-lint-ignore no-this-alias\n let el = this;\n do {\n // Note: Not using `el.matches(selectorString)` because on a browser if you override\n // `matches`, you *don't* see it being used by `closest`.\n if (match(selectorString, el)) {\n return el;\n }\n el = el.parentElement;\n }while (el !== null)\n return null;\n }\n // TODO: DRY!!!\n getElementById(id) {\n if (!this._hasInitializedChildNodes()) {\n return null;\n }\n for (const child of this.childNodes){\n if (child.nodeType === NodeType.ELEMENT_NODE) {\n if (child.id === id) {\n return child;\n }\n const search = child.getElementById(id);\n if (search) {\n return search;\n }\n }\n }\n return null;\n }\n getElementsByTagName(tagName) {\n if (!this._hasInitializedChildNodes()) {\n return [];\n }\n const fixCaseTagName = getUpperCase(tagName);\n if (fixCaseTagName === \"*\") {\n return this._getElementsByTagNameWildcard([]);\n } else {\n return this._getElementsByTagName(fixCaseTagName, []);\n }\n }\n _getElementsByTagNameWildcard(search) {\n if (!this._hasInitializedChildNodes()) {\n return search;\n }\n for (const child of this.childNodes){\n if (child.nodeType === NodeType.ELEMENT_NODE) {\n search.push(child);\n child._getElementsByTagNameWildcard(search);\n }\n }\n return search;\n }\n _getElementsByTagName(tagName, search) {\n if (!this._hasInitializedChildNodes()) {\n return search;\n }\n for (const child of this.childNodes){\n if (child.nodeType === NodeType.ELEMENT_NODE) {\n if (child.tagName === tagName) {\n search.push(child);\n }\n child._getElementsByTagName(tagName, search);\n }\n }\n return search;\n }\n getElementsByClassName(className) {\n if (!this._hasInitializedChildNodes()) {\n return [];\n }\n return getElementsByClassName(this, className.trim().split(/\\s+/), []);\n }\n getElementsByTagNameNS(_namespace, localName) {\n if (!this._hasInitializedChildNodes()) {\n return [];\n }\n // TODO: Use namespace\n return this.getElementsByTagName(localName);\n }\n}\nUtilTypes.Element = Element;\n//# sourceMappingURL=element.js.map","/**\n * Symbols for using getElementsByTagName/ClassName on document-fragment\n */ export const customByTagNameSym = Symbol();\nexport const customByClassNameSym = Symbol();\n//# sourceMappingURL=custom-api.js.map","import { CTOR_KEY } from \"../constructor-lock.js\";\nimport { NodeList, nodeListMutatorSym } from \"./node-list.js\";\nimport { Node, nodesAndTextNodes, NodeType } from \"./node.js\";\nimport { customByClassNameSym, customByTagNameSym } from \"./selectors/custom-api.js\";\nimport { getElementsByClassName } from \"./utils.js\";\nimport UtilTypes from \"./utils-types.js\";\nexport class DocumentFragment extends Node {\n constructor(){\n super(\"#document-fragment\", NodeType.DOCUMENT_FRAGMENT_NODE, null, CTOR_KEY);\n }\n get childElementCount() {\n return this._getChildNodesMutator().elementsView().length;\n }\n get children() {\n return this._getChildNodesMutator().elementsView();\n }\n get firstElementChild() {\n const elements = this._getChildNodesMutator().elementsView();\n return elements[0] ?? null;\n }\n get lastElementChild() {\n const elements = this._getChildNodesMutator().elementsView();\n return elements[elements.length - 1] ?? null;\n }\n _shallowClone() {\n return new DocumentFragment();\n }\n append(...nodes) {\n const mutator = this._getChildNodesMutator();\n mutator.push(...nodesAndTextNodes(nodes, this));\n }\n prepend(...nodes) {\n const mutator = this._getChildNodesMutator();\n mutator.splice(0, 0, ...nodesAndTextNodes(nodes, this));\n }\n replaceChildren(...nodes) {\n const mutator = this._getChildNodesMutator();\n // Remove all current child nodes\n for (const child of this.childNodes){\n child._setParent(null);\n }\n mutator.splice(0, this.childNodes.length);\n // Add new children\n mutator.splice(0, 0, ...nodesAndTextNodes(nodes, this));\n }\n // TODO: DRY!!!\n getElementById(id) {\n for (const child of this.childNodes){\n if (child.nodeType === NodeType.ELEMENT_NODE) {\n if (child.id === id) {\n return child;\n }\n const search = child.getElementById(id);\n if (search) {\n return search;\n }\n }\n }\n return null;\n }\n querySelector(selectors) {\n if (!this.ownerDocument) {\n throw new Error(\"DocumentFragment must have an owner document\");\n }\n return this.ownerDocument._nwapi.first(selectors, this);\n }\n querySelectorAll(selectors) {\n if (!this.ownerDocument) {\n throw new Error(\"DocumentFragment must have an owner document\");\n }\n const nodeList = new NodeList();\n const mutator = nodeList[nodeListMutatorSym]();\n mutator.push(...this.ownerDocument._nwapi.select(selectors, this));\n return nodeList;\n }\n}\nUtilTypes.DocumentFragment = DocumentFragment;\n// Add required methods just for Sizzle.js selector to work on\n// DocumentFragment's\nfunction documentFragmentGetElementsByTagName(tagName) {\n const search = [];\n if (tagName === \"*\") {\n return documentFragmentGetElementsByTagNameWildcard(this, search);\n }\n for (const child of this.childNodes){\n if (child.nodeType === NodeType.ELEMENT_NODE) {\n if (child.tagName === tagName) {\n search.push(child);\n }\n child._getElementsByTagName(tagName, search);\n }\n }\n return search;\n}\nfunction documentFragmentGetElementsByClassName(className) {\n return getElementsByClassName(this, className.trim().split(/\\s+/), []);\n}\nfunction documentFragmentGetElementsByTagNameWildcard(fragment, search) {\n for (const child of fragment.childNodes){\n if (child.nodeType === NodeType.ELEMENT_NODE) {\n search.push(child);\n child._getElementsByTagNameWildcard(search);\n }\n }\n return search;\n}\nDocumentFragment.prototype[customByTagNameSym] = documentFragmentGetElementsByTagName;\nDocumentFragment.prototype[customByClassNameSym] = documentFragmentGetElementsByClassName;\n//# sourceMappingURL=document-fragment.js.map","import { Element } from \"../element.js\";\nimport { DocumentFragment } from \"../document-fragment.js\";\nimport { getElementAttributesString, getOuterOrInnerHtml } from \"../utils.js\";\nimport { fragmentNodesFromString } from \"../../deserialize.js\";\nimport { CTOR_KEY } from \"../../constructor-lock.js\";\nexport class HTMLTemplateElement extends Element {\n /**\n * This blocks access to the .#contents property when the\n * super() constructor is running which invokes (our\n * overridden) _setParent() method. Without it, we get\n * the following error thrown:\n *\n * TypeError: Cannot read private member #content from\n * an object whose class did not declare it\n *\n * FIXME: Maybe find a cleaner way to do this\n */ __contentIsSet = false;\n #content = null;\n constructor(parentNode, attributes, key, content){\n super(\"TEMPLATE\", parentNode, attributes, key);\n this.#content = content;\n this.__contentIsSet = true;\n }\n get content() {\n return this.#content;\n }\n _setOwnerDocument(document) {\n super._setOwnerDocument(document);\n if (this.__contentIsSet) {\n this.content._setOwnerDocument(document);\n }\n }\n _shallowClone() {\n const frag = new DocumentFragment();\n const attributes = this.getAttributeNames().map((name)=>[\n name,\n this.getAttribute(name)\n ]);\n return new HTMLTemplateElement(null, attributes, CTOR_KEY, frag);\n }\n cloneNode(deep = false) {\n const newNode = super.cloneNode(deep);\n if (deep) {\n const destContent = newNode.content;\n for (const child of this.content.childNodes){\n destContent.appendChild(child.cloneNode(deep));\n }\n }\n return newNode;\n }\n get innerHTML() {\n return getOuterOrInnerHtml(this, false);\n }\n // Replace children in the `.content`\n set innerHTML(html) {\n const content = this.content;\n // Remove all children\n for (const child of content.childNodes){\n child._setParent(null);\n }\n const mutator = content._getChildNodesMutator();\n mutator.splice(0, content.childNodes.length);\n // Parse HTML into new children\n if (html.length) {\n const parsed = fragmentNodesFromString(html, this.localName);\n mutator.push(...parsed.childNodes[0].childNodes);\n for (const child of content.childNodes){\n child._setParent(content);\n child._setOwnerDocument(content.ownerDocument);\n }\n }\n }\n get outerHTML() {\n return `<template${getElementAttributesString(this)}>${this.innerHTML}</template>`;\n }\n}\n//# sourceMappingURL=html-template-element.js.map","// @ts-nocheck: 3rd-party\n/*\n * Copyright (C) 2007-2019 Diego Perini\n * All rights reserved.\n *\n * nwsapi.js - Fast CSS Selectors API Engine\n *\n * Author: Diego Perini <diego.perini at gmail com>\n * Version: 2.2.0\n * Created: 20070722\n * Release: 20210622\n *\n * License:\n * http://javascript.nwbox.com/nwsapi/MIT-LICENSE\n * Download:\n * http://javascript.nwbox.com/nwsapi/nwsapi.js\n */\n\nexport default document => {\n const NW = Factory({ document, DOMException }, \"null\");\n NW.configure({\n IDS_DUPES: false,\n LOGERRORS: false,\n });\n\n return NW;\n};\n\nfunction Factory(global, Export) {\n\n var version = 'nwsapi-2.2.0',\n\n doc = global.document,\n root = doc.documentElement,\n slice = Array.prototype.slice,\n\n WSP = '[\\\\x20\\\\t\\\\r\\\\n\\\\f]',\n\n CFG = {\n // extensions\n operators: '[~*^$|]=|=',\n combinators: '[\\\\x20\\\\t>+~](?=[^>+~])'\n },\n\n NOT = {\n // not enclosed in double/single/parens/square\n double_enc: '(?=(?:[^\"]*[\"][^\"]*[\"])*[^\"]*$)',\n single_enc: \"(?=(?:[^']*['][^']*['])*[^']*$)\",\n parens_enc: '(?![^\\\\x28]*\\\\x29)',\n square_enc: '(?![^\\\\x5b]*\\\\x5d)'\n },\n\n REX = {\n // regular expressions\n HasEscapes: RegExp('\\\\\\\\'),\n HexNumbers: RegExp('^[0-9a-fA-F]'),\n EscOrQuote: RegExp('^\\\\\\\\|[\\\\x22\\\\x27]'),\n RegExpChar: RegExp('(?:(?!\\\\\\\\)[\\\\\\\\^$.*+?()[\\\\]{}|\\\\/])', 'g'),\n TrimSpaces: RegExp('[\\\\r\\\\n\\\\f]|^' + WSP + '+|' + WSP + '+$', 'g'),\n CommaGroup: RegExp('(\\\\s*,\\\\s*)' + NOT.square_enc + NOT.parens_enc, 'g'),\n SplitGroup: RegExp('((?:\\\\x28[^\\\\x29]*\\\\x29|\\\\[[^\\\\]]*\\\\]|\\\\\\\\.|[^,])+)', 'g'),\n FixEscapes: RegExp('\\\\\\\\([0-9a-fA-F]{1,6}' + WSP + '?|.)|([\\\\x22\\\\x27])', 'g'),\n CombineWSP: RegExp('[\\\\n\\\\r\\\\f\\\\x20]+' + NOT.single_enc + NOT.double_enc, 'g'),\n TabCharWSP: RegExp('(\\\\x20?\\\\t+\\\\x20?)' + NOT.single_enc + NOT.double_enc, 'g'),\n PseudosWSP: RegExp('\\\\s+([-+])\\\\s+' + NOT.square_enc, 'g')\n },\n\n STD = {\n combinator: RegExp('\\\\s?([>+~])\\\\s?', 'g'),\n apimethods: RegExp('^(?:[a-z]+|\\\\*)\\\\|', 'i'),\n namespaces: RegExp('(\\\\*|[a-z]+)\\\\|[-a-z]+', 'i')\n },\n\n GROUPS = {\n // pseudo-classes requiring parameters\n linguistic: '(dir|lang)\\\\x28\\\\s?([-\\\\w]{2,})\\\\s?(?:\\\\x29|$)',\n logicalsel: '(is|where|matches|not)\\\\x28\\\\s?([^()]*|[^\\\\x28]*\\\\x28[^\\\\x29]*\\\\x29)\\\\s?(?:\\\\x29|$)',\n treestruct: '(nth(?:-last)?(?:-child|-of-type))(?:\\\\x28\\\\s?(even|odd|(?:[-+]?\\\\d*)(?:n\\\\s?[-+]?\\\\s?\\\\d*)?)\\\\s?(?:\\\\x29|$))',\n // pseudo-classes not requiring parameters\n locationpc: '(any-link|link|visited|target)\\\\b',\n useraction: '(hover|active|focus|focus-within)\\\\b',\n structural: '(root|empty|(?:(?:first|last|only)(?:-child|-of-type)))\\\\b',\n inputstate: '(enabled|disabled|read-only|read-write|placeholder-shown|default)\\\\b',\n inputvalue: '(checked|indeterminate|required|optional|valid|invalid|in-range|out-of-range)\\\\b',\n // pseudo-elements starting with single colon (:)\n pseudo_sng: '(after|before|first-letter|first-line)\\\\b',\n // pseudo-elements starting with double colon (::)\n pseudo_dbl: ':(after|before|first-letter|first-line|selection|placeholder|-webkit-[-a-zA-Z0-9]{2,})\\\\b'\n },\n\n Patterns = {\n // pseudo-classes\n treestruct: RegExp('^:(?:' + GROUPS.treestruct + ')(.*)', 'i'),\n structural: RegExp('^:(?:' + GROUPS.structural + ')(.*)', 'i'),\n linguistic: RegExp('^:(?:' + GROUPS.linguistic + ')(.*)', 'i'),\n useraction: RegExp('^:(?:' + GROUPS.useraction + ')(.*)', 'i'),\n inputstate: RegExp('^:(?:' + GROUPS.inputstate + ')(.*)', 'i'),\n inputvalue: RegExp('^:(?:' + GROUPS.inputvalue + ')(.*)', 'i'),\n locationpc: RegExp('^:(?:' + GROUPS.locationpc + ')(.*)', 'i'),\n logicalsel: RegExp('^:(?:' + GROUPS.logicalsel + ')(.*)', 'i'),\n pseudo_dbl: RegExp('^:(?:' + GROUPS.pseudo_dbl + ')(.*)', 'i'),\n pseudo_sng: RegExp('^:(?:' + GROUPS.pseudo_sng + ')(.*)', 'i'),\n // combinator symbols\n children: RegExp('^' + WSP + '?\\\\>' + WSP + '?(.*)'),\n adjacent: RegExp('^' + WSP + '?\\\\+' + WSP + '?(.*)'),\n relative: RegExp('^' + WSP + '?\\\\~' + WSP + '?(.*)'),\n ancestor: RegExp('^' + WSP + '+(.*)'),\n // universal & namespace\n universal: RegExp('^\\\\*(.*)'),\n namespace: RegExp('^(\\\\w+|\\\\*)?\\\\|(.*)')\n },\n\n // regexp to aproximate detection of RTL languages (Arabic)\n RTL = RegExp('^[\\\\u0591-\\\\u08ff\\\\ufb1d-\\\\ufdfd\\\\ufe70-\\\\ufefc ]+$'),\n\n // emulate firefox error strings\n qsNotArgs = 'Not enough arguments',\n qsInvalid = ' is not a valid selector',\n\n // detect structural pseudo-classes in selectors\n reNthElem = RegExp('(:nth(?:-last)?-child)', 'i'),\n reNthType = RegExp('(:nth(?:-last)?-of-type)', 'i'),\n\n // placeholder for global regexp\n reOptimizer,\n reValidator,\n\n // special handling configuration flags\n Config = {\n IDS_DUPES: true,\n MIXEDCASE: true,\n LOGERRORS: true,\n VERBOSITY: true\n },\n\n NAMESPACE,\n QUIRKS_MODE,\n HTML_DOCUMENT,\n\n ATTR_STD_OPS = {\n '=': 1, '^=': 1, '$=': 1, '|=': 1, '*=': 1, '~=': 1\n },\n\n HTML_TABLE = {\n 'accept': 1, 'accept-charset': 1, 'align': 1, 'alink': 1, 'axis': 1,\n 'bgcolor': 1, 'charset': 1, 'checked': 1, 'clear': 1, 'codetype': 1, 'color': 1,\n 'compact': 1, 'declare': 1, 'defer': 1, 'dir': 1, 'direction': 1, 'disabled': 1,\n 'enctype': 1, 'face': 1, 'frame': 1, 'hreflang': 1, 'http-equiv': 1, 'lang': 1,\n 'language': 1, 'link': 1, 'media': 1, 'method': 1, 'multiple': 1, 'nohref': 1,\n 'noresize': 1, 'noshade': 1, 'nowrap': 1, 'readonly': 1, 'rel': 1, 'rev': 1,\n 'rules': 1, 'scope': 1, 'scrolling': 1, 'selected': 1, 'shape': 1, 'target': 1,\n 'text': 1, 'type': 1, 'valign': 1, 'valuetype': 1, 'vlink': 1\n },\n\n Combinators = { },\n\n Selectors = { },\n\n Operators = {\n '=': { p1: '^',\n p2: '$',\n p3: 'true' },\n '^=': { p1: '^',\n p2: '',\n p3: 'true' },\n '$=': { p1: '',\n p2: '$',\n p3: 'true' },\n '*=': { p1: '',\n p2: '',\n p3: 'true' },\n '|=': { p1: '^',\n p2: '(-|$)',\n p3: 'true' },\n '~=': { p1: '(^|\\\\s)',\n p2: '(\\\\s|$)',\n p3: 'true' }\n },\n\n concatCall =\n function(nodes, callback) {\n var i = 0, l = nodes.length, list = Array(l);\n while (l > i) {\n if (false === callback(list[i] = nodes[i])) break;\n ++i;\n }\n return list;\n },\n\n concatList =\n function(list, nodes) {\n var i = -1, l = nodes.length;\n while (l--) { list[list.length] = nodes[++i]; }\n return list;\n },\n\n documentOrder =\n function(a, b) {\n if (!hasDupes && a === b) {\n hasDupes = true;\n return 0;\n }\n return a.compareDocumentPosition(b) & 4 ? -1 : 1;\n },\n\n hasDupes = false,\n\n unique =\n function(nodes) {\n var i = 0, j = -1, l = nodes.length + 1, list = [ ];\n while (--l) {\n if (nodes[i++] === nodes[i]) continue;\n list[++j] = nodes[i - 1];\n }\n hasDupes = false;\n return list;\n },\n\n // check context for mixed content\n hasMixedCaseTagNames =\n function(context) {\n var ns, api = 'getElementsByTagNameNS';\n\n // current host context (ownerDocument)\n context = context.ownerDocument || context;\n\n // documentElement (root) element namespace or default html/xhtml namespace\n ns = context.documentElement.namespaceURI || 'http://www.w3.org/1999/xhtml';\n\n // checking the number of non HTML nodes in the document\n return (context[api]('*', '*').length - context[api](ns, '*').length) > 0;\n },\n\n switchContext =\n function(context, force) {\n var oldDoc = doc;\n doc = context.ownerDocument || context;\n if (force || oldDoc !== doc) {\n // force a new check for each document change\n // performed before the next select operation\n root = doc.documentElement;\n HTML_DOCUMENT = isHTML(doc);\n QUIRKS_MODE = HTML_DOCUMENT &&\n doc.compatMode.indexOf('CSS') < 0;\n NAMESPACE = root && root.namespaceURI;\n Snapshot.doc = doc;\n Snapshot.root = root;\n }\n return (Snapshot.from = context);\n },\n\n // convert single codepoint to UTF-16 encoding\n codePointToUTF16 =\n function(codePoint) {\n // out of range, use replacement character\n if (codePoint < 1 || codePoint > 0x10ffff ||\n (codePoint > 0xd7ff && codePoint < 0xe000)) {\n return '\\\\ufffd';\n }\n // javascript strings are UTF-16 encoded\n if (codePoint < 0x10000) {\n var lowHex = '000' + codePoint.toString(16);\n return '\\\\u' + lowHex.substr(lowHex.length - 4);\n }\n // supplementary high + low surrogates\n return '\\\\u' + (((codePoint - 0x10000) >> 0x0a) + 0xd800).toString(16) +\n '\\\\u' + (((codePoint - 0x10000) % 0x400) + 0xdc00).toString(16);\n },\n\n // convert single codepoint to string\n stringFromCodePoint =\n function(codePoint) {\n // out of range, use replacement character\n if (codePoint < 1 || codePoint > 0x10ffff ||\n (codePoint > 0xd7ff && codePoint < 0xe000)) {\n return '\\ufffd';\n }\n if (codePoint < 0x10000) {\n return String.fromCharCode(codePoint);\n }\n return String.fromCodePoint ?\n String.fromCodePoint(codePoint) :\n String.fromCharCode(\n ((codePoint - 0x10000) >> 0x0a) + 0xd800,\n ((codePoint - 0x10000) % 0x400) + 0xdc00);\n },\n\n // convert escape sequence in a CSS string or identifier\n // to javascript string with javascript escape sequences\n convertEscapes =\n function(str) {\n return REX.HasEscapes.test(str) ?\n str.replace(REX.FixEscapes,\n function(substring, p1, p2) {\n // unescaped \" or '\n return p2 ? '\\\\' + p2 :\n // javascript strings are UTF-16 encoded\n REX.HexNumbers.test(p1) ? codePointToUTF16(parseInt(p1, 16)) :\n // \\' \\\"\n REX.EscOrQuote.test(p1) ? substring :\n // \\g \\h \\. \\# etc\n p1;\n }\n ) : str;\n },\n\n // convert escape sequence in a CSS string or identifier\n // to javascript string with characters representations\n unescapeIdentifier =\n function(str) {\n return REX.HasEscapes.test(str) ?\n str.replace(REX.FixEscapes,\n function(substring, p1, p2) {\n // unescaped \" or '\n return p2 ? p2 :\n // javascript strings are UTF-16 encoded\n REX.HexNumbers.test(p1) ? stringFromCodePoint(parseInt(p1, 16)) :\n // \\' \\\"\n REX.EscOrQuote.test(p1) ? substring :\n // \\g \\h \\. \\# etc\n p1;\n }\n ) : str;\n },\n\n method = {\n '#': 'getElementById',\n '*': 'getElementsByTagNameNS',\n '.': 'getElementsByClassName'\n },\n\n compat = {\n '#': function(c, n) { REX.HasEscapes.test(n) && (n = unescapeIdentifier(n)); return function(e, f) { return byId(n, c); }; },\n '*': function(c, n) { REX.HasEscapes.test(n) && (n = unescapeIdentifier(n)); return function(e, f) { return byTag(n, c); }; },\n '.': function(c, n) { REX.HasEscapes.test(n) && (n = unescapeIdentifier(n)); return function(e, f) { return byClass(n, c); }; }\n },\n\n // find duplicate ids using iterative walk\n byIdRaw =\n function(id, context) {\n var node = context, nodes = [ ], next = node.firstElementChild;\n while ((node = next)) {\n node.id == id && (nodes[nodes.length] = node);\n if ((next = node.firstElementChild || node.nextElementSibling)) continue;\n while (!next && (node = node.parentElement) && node !== context) {\n next = node.nextElementSibling;\n }\n }\n return nodes;\n },\n\n // context agnostic getElementById\n byId =\n function(id, context) {\n var e, nodes, api = method['#'];\n\n // duplicates id allowed\n if (Config.IDS_DUPES === false) {\n if (api in context) {\n return (e = context[api](id)) ? [ e ] : none;\n }\n } else {\n if ('all' in context) {\n if ((e = context.all[id])) {\n if (e.nodeType == 1) return e.getAttribute('id') != id ? [ ] : [ e ];\n else if (id == 'length') return (e = context[api](id)) ? [ e ] : none;\n for (i = 0, l = e.length, nodes = [ ]; l > i; ++i) {\n if (e[i].id == id) nodes[nodes.length] = e[i];\n }\n return nodes && nodes.length ? nodes : [ nodes ];\n } else return none;\n }\n }\n\n return byIdRaw(id, context);\n },\n\n // context agnostic getElementsByTagName\n byTag =\n function(tag, context) {\n var e, nodes, api = method['*'];\n // DOCUMENT_NODE (9) & ELEMENT_NODE (1)\n if (api in context) {\n return slice.call(context[api]('*', tag));\n } else {\n tag = tag.toLowerCase();\n // DOCUMENT_FRAGMENT_NODE (11)\n if ((e = context.firstElementChild)) {\n if (!(e.nextElementSibling || tag == '*' || e.localName == tag)) {\n return slice.call(e[api]('*', tag));\n } else {\n nodes = [ ];\n do {\n if (tag == '*' || e.localName == tag) nodes[nodes.length] = e;\n concatList(nodes, e[api]('*', tag));\n } while ((e = e.nextElementSibling));\n }\n } else nodes = none;\n }\n return nodes;\n },\n\n // context agnostic getElementsByClassName\n byClass =\n function(cls, context) {\n var e, nodes, api = method['.'], reCls;\n // DOCUMENT_NODE (9) & ELEMENT_NODE (1)\n if (api in context) {\n return slice.call(context[api](cls));\n } else {\n // DOCUMENT_FRAGMENT_NODE (11)\n if ((e = context.firstElementChild)) {\n reCls = RegExp('(^|\\\\s)' + cls + '(\\\\s|$)', QUIRKS_MODE ? 'i' : '');\n if (!(e.nextElementSibling || reCls.test(e.className))) {\n return slice.call(e[api](cls));\n } else {\n nodes = [ ];\n do {\n if (reCls.test(e.className)) nodes[nodes.length] = e;\n concatList(nodes, e[api](cls));\n } while ((e = e.nextElementSibling));\n }\n } else nodes = none;\n }\n return nodes;\n },\n\n // namespace aware hasAttribute\n // helper for XML/XHTML documents\n hasAttributeNS =\n function(e, name) {\n var i, l, attr = e.getAttributeNames();\n name = RegExp(':?' + name + '$', HTML_DOCUMENT ? 'i' : '');\n for (i = 0, l = attr.length; l > i; ++i) {\n if (name.test(attr[i])) return true;\n }\n return false;\n },\n\n // fast resolver for the :nth-child() and :nth-last-child() pseudo-classes\n nthElement = (function() {\n var idx = 0, len = 0, set = 0, parent = undefined, parents = Array(), nodes = Array();\n return function(element, dir) {\n // ensure caches are emptied after each run, invoking with dir = 2\n if (dir == 2) {\n idx = 0; len = 0; set = 0; nodes.length = 0;\n parents.length = 0; parent = undefined;\n return -1;\n }\n var e, i, j, k, l;\n if (parent === element.parentElement) {\n i = set; j = idx; l = len;\n } else {\n l = parents.length;\n parent = element.parentElement;\n for (i = -1, j = 0, k = l - 1; l > j; ++j, --k) {\n if (parents[j] === parent) { i = j; break; }\n if (parents[k] === parent) { i = k; break; }\n }\n if (i < 0) {\n parents[i = l] = parent;\n l = 0; nodes[i] = Array();\n e = parent && parent.firstElementChild || element;\n while (e) { nodes[i][l] = e; if (e === element) j = l; e = e.nextElementSibling; ++l; }\n set = i; idx = 0; len = l;\n if (l < 2) return l;\n } else {\n l = nodes[i].length;\n set = i;\n }\n }\n if (element !== nodes[i][j] && element !== nodes[i][j = 0]) {\n for (j = 0, e = nodes[i], k = l - 1; l > j; ++j, --k) {\n if (e[j] === element) { break; }\n if (e[k] === element) { j = k; break; }\n }\n }\n idx = j + 1; len = l;\n return dir ? l - j : idx;\n };\n })(),\n\n // fast resolver for the :nth-of-type() and :nth-last-of-type() pseudo-classes\n nthOfType = (function() {\n var idx = 0, len = 0, set = 0, parent = undefined, parents = Array(), nodes = Array();\n return function(element, dir) {\n // ensure caches are emptied after each run, invoking with dir = 2\n if (dir == 2) {\n idx = 0; len = 0; set = 0; nodes.length = 0;\n parents.length = 0; parent = undefined;\n return -1;\n }\n var e, i, j, k, l, name = element.localName;\n if (nodes[set] && nodes[set][name] && parent === element.parentElement) {\n i = set; j = idx; l = len;\n } else {\n l = parents.length;\n parent = element.parentElement;\n for (i = -1, j = 0, k = l - 1; l > j; ++j, --k) {\n if (parents[j] === parent) { i = j; break; }\n if (parents[k] === parent) { i = k; break; }\n }\n if (i < 0 || !nodes[i][name]) {\n parents[i = l] = parent;\n nodes[i] || (nodes[i] = Object());\n l = 0; nodes[i][name] = Array();\n e = parent && parent.firstElementChild || element;\n while (e) { if (e === element) j = l; if (e.localName == name) { nodes[i][name][l] = e; ++l; } e = e.nextElementSibling; }\n set = i; idx = j; len = l;\n if (l < 2) return l;\n } else {\n l = nodes[i][name].length;\n set = i;\n }\n }\n if (element !== nodes[i][name][j] && element !== nodes[i][name][j = 0]) {\n for (j = 0, e = nodes[i][name], k = l - 1; l > j; ++j, --k) {\n if (e[j] === element) { break; }\n if (e[k] === element) { j = k; break; }\n }\n }\n idx = j + 1; len = l;\n return dir ? l - j : idx;\n };\n })(),\n\n // check if the document type is HTML\n isHTML =\n function(node) {\n var doc = node.ownerDocument || node;\n return doc.nodeType == 9 &&\n // contentType not in IE <= 11\n 'contentType' in doc ?\n doc.contentType.indexOf('/html') > 0 :\n doc.createElement('DiV').localName == 'div';\n },\n\n // configure the engine to use special handling\n configure =\n function(option, clear) {\n if (typeof option == 'string') { return !!Config[option]; }\n if (typeof option != 'object') { return Config; }\n for (var i in option) {\n Config[i] = !!option[i];\n }\n // clear lambda cache\n if (clear) {\n matchResolvers = { };\n selectResolvers = { };\n }\n setIdentifierSyntax();\n return true;\n },\n\n // centralized error and exceptions handling\n emit =\n function(message, proto) {\n var err;\n if (Config.VERBOSITY) {\n if (proto) {\n err = new proto(message);\n } else {\n err = new global.DOMException(message, 'SyntaxError');\n }\n throw err;\n }\n if (Config.LOGERRORS && console && console.log) {\n console.log(message);\n }\n },\n\n // execute the engine initialization code\n initialize =\n function(doc) {\n setIdentifierSyntax();\n lastContext = switchContext(doc, true);\n },\n\n // build validation regexps used by the engine\n setIdentifierSyntax =\n function() {\n\n //\n // NOTE: SPECIAL CASES IN CSS SYNTAX PARSING RULES\n //\n // The <EOF-token> https://drafts.csswg.org/css-syntax/#typedef-eof-token\n // allow mangled|unclosed selector syntax at the end of selectors strings\n //\n // Literal equivalent hex representations of the characters: \" ' ` ] )\n //\n // \\\\x22 = \" - double quotes \\\\x5b = [ - open square bracket\n // \\\\x27 = ' - single quote \\\\x5d = ] - closed square bracket\n // \\\\x60 = ` - back tick \\\\x28 = ( - open round parens\n // \\\\x5c = \\ - back slash \\\\x29 = ) - closed round parens\n //\n // using hex format prevents false matches of opened/closed instances\n // pairs, coloring breakage and other editors highlightning problems.\n //\n\n var identifier =\n // doesn't start with a digit\n '(?=[^0-9])' +\n // can start with double dash\n '(?:-{2}' +\n // may include ascii chars\n '|[a-zA-Z0-9-_]' +\n // non-ascii chars\n '|[^\\\\x00-\\\\x9f]' +\n // escaped chars\n '|\\\\\\\\[^\\\\r\\\\n\\\\f0-9a-fA-F]' +\n // unicode chars\n '|\\\\\\\\[0-9a-fA-F]{1,6}(?:\\\\r\\\\n|\\\\s)?' +\n // any escaped chars\n '|\\\\\\\\.' +\n ')+',\n\n pseudonames = '[-\\\\w]+',\n pseudoparms = '(?:[-+]?\\\\d*)(?:n\\\\s?[-+]?\\\\s?\\\\d*)',\n doublequote = '\"[^\"\\\\\\\\]*(?:\\\\\\\\.[^\"\\\\\\\\]*)*(?:\"|$)',\n singlequote = \"'[^'\\\\\\\\]*(?:\\\\\\\\.[^'\\\\\\\\]*)*(?:'|$)\",\n\n attrparser = identifier + '|' + doublequote + '|' + singlequote,\n\n attrvalues = '([\\\\x22\\\\x27]?)((?!\\\\3)*|(?:\\\\\\\\?.)*?)(?:\\\\3|$)',\n\n attributes =\n '\\\\[' +\n // attribute presence\n '(?:\\\\*\\\\|)?' +\n WSP + '?' +\n '(' + identifier + '(?::' + identifier + ')?)' +\n WSP + '?' +\n '(?:' +\n '(' + CFG.operators + ')' + WSP + '?' +\n '(?:' + attrparser + ')' +\n ')?' +\n // attribute case sensitivity\n WSP + '?' + '(i)?' + WSP + '?' +\n '(?:\\\\]|$)',\n\n attrmatcher = attributes.replace(attrparser, attrvalues),\n\n pseudoclass =\n '(?:\\\\x28' + WSP + '*' +\n '(?:' + pseudoparms + '?)?|' +\n // universal * &\n // namespace *|*\n '(?:\\\\*|\\\\|)|' +\n '(?:' +\n '(?::' + pseudonames +\n '(?:\\\\x28' + pseudoparms + '?(?:\\\\x29|$))?|' +\n ')|' +\n '(?:[.#]?' + identifier + ')|' +\n '(?:' + attributes + ')' +\n ')+|' +\n '(?:' + WSP + '?,' + WSP + '?)|' +\n '(?:' + WSP + '?)|' +\n '(?:\\\\x29|$))*',\n\n standardValidator =\n '(?=' + WSP + '?[^>+~(){}<>])' +\n '(?:' +\n // universal * &\n // namespace *|*\n '(?:\\\\*|\\\\|)|' +\n '(?:[.#]?' + identifier + ')+|' +\n '(?:' + attributes + ')+|' +\n '(?:::?' + pseudonames + pseudoclass + ')|' +\n '(?:' + WSP + '?' + CFG.combinators + WSP + '?)|' +\n '(?:' + WSP + '?,' + WSP + '?)|' +\n '(?:' + WSP + '?)' +\n ')+';\n\n // the following global RE is used to return the\n // deepest localName in selector strings and then\n // use it to retrieve all possible matching nodes\n // that will be filtered by compiled resolvers\n reOptimizer = RegExp(\n '(?:([.:#*]?)' +\n '(' + identifier + ')' +\n '(?:' +\n ':[-\\\\w]+|' +\n '\\\\[[^\\\\]]+(?:\\\\]|$)|' +\n '\\\\x28[^\\\\x29]+(?:\\\\x29|$)' +\n ')*)$');\n\n // global\n reValidator = RegExp(standardValidator, 'g');\n\n Patterns.id = RegExp('^#(' + identifier + ')(.*)');\n Patterns.tagName = RegExp('^(' + identifier + ')(.*)');\n Patterns.className = RegExp('^\\\\.(' + identifier + ')(.*)');\n Patterns.attribute = RegExp('^(?:' + attrmatcher + ')(.*)');\n },\n\n F_INIT = '\"use strict\";return function Resolver(c,f,x,r)',\n\n S_HEAD = 'var e,n,o,j=r.length-1,k=-1',\n M_HEAD = 'var e,n,o',\n\n S_LOOP = 'main:while((e=c[++k]))',\n N_LOOP = 'main:while((e=c.item(++k)))',\n M_LOOP = 'e=c;',\n\n S_BODY = 'r[++j]=c[k];',\n N_BODY = 'r[++j]=c.item(k);',\n M_BODY = '',\n\n S_TAIL = 'continue main;',\n M_TAIL = 'r=true;',\n\n S_TEST = 'if(f(c[k])){break main;}',\n N_TEST = 'if(f(c.item(k))){break main;}',\n M_TEST = 'f(c);',\n\n S_VARS = [ ],\n M_VARS = [ ],\n\n // compile groups or single selector strings into\n // executable functions for matching or selecting\n compile =\n function(selector, mode, callback) {\n var factory, token, head = '', loop = '', macro = '', source = '', vars = '';\n\n // 'mode' can be boolean or null\n // true = select / false = match\n // null to use collection.item()\n switch (mode) {\n case true:\n if (selectLambdas[selector]) { return selectLambdas[selector]; }\n macro = S_BODY + (callback ? S_TEST : '') + S_TAIL;\n head = S_HEAD;\n loop = S_LOOP;\n break;\n case false:\n if (matchLambdas[selector]) { return matchLambdas[selector]; }\n macro = M_BODY + (callback ? M_TEST : '') + M_TAIL;\n head = M_HEAD;\n loop = M_LOOP;\n break;\n case null:\n if (selectLambdas[selector]) { return selectLambdas[selector]; }\n macro = N_BODY + (callback ? N_TEST : '') + S_TAIL;\n head = S_HEAD;\n loop = N_LOOP;\n break;\n default:\n break;\n }\n\n source = compileSelector(selector, macro, mode, callback, false);\n\n loop += mode || mode === null ? '{' + source + '}' : source;\n\n if (mode || mode === null && selector.includes(':nth')) {\n loop += reNthElem.test(selector) ? 's.nthElement(null, 2);' : '';\n loop += reNthType.test(selector) ? 's.nthOfType(null, 2);' : '';\n }\n\n if (S_VARS[0] || M_VARS[0]) {\n vars = ',' + (S_VARS.join(',') || M_VARS.join(','));\n S_VARS.length = 0;\n M_VARS.length = 0;\n }\n\n factory = Function('s', F_INIT + '{' + head + vars + ';' + loop + 'return r;}')(Snapshot);\n\n return mode || mode === null ? (selectLambdas[selector] = factory) : (matchLambdas[selector] = factory);\n },\n\n // build conditional code to check components of selector strings\n compileSelector =\n function(expression, source, mode, callback, not) {\n\n // N is the negation pseudo-class flag\n // D is the default inverted negation flag\n var a, b, n, f, i, l, name, NS,\n N = not ? '!' : '', D = not ? '' : '!',\n compat, expr, match, result, status, symbol, test,\n type, selector = expression, selector_string, vars;\n\n // original 'select' or 'match' selector string before normalization\n selector_string = mode ? lastSelected : lastMatched;\n\n // isolate selector combinators/components and normalize whitespace\n selector = selector.replace(STD.combinator, '$1');//.replace(STD.whitespace, ' ');\n\n while (selector) {\n\n // get namespace prefix if present or get first char of selector\n symbol = STD.apimethods.test(selector) ? '|' : selector[0];\n\n switch (symbol) {\n\n // universal resolver\n case '*':\n match = selector.match(Patterns.universal);\n if (N == '!') {\n source = 'if(' + N + 'true' +\n '){' + source + '}';\n }\n break;\n\n // id resolver\n case '#':\n match = selector.match(Patterns.id);\n source = 'if(' + N + '(/^' + match[1] + '$/.test(e.getAttribute(\"id\"))' +\n ')){' + source + '}';\n break;\n\n // class name resolver\n case '.':\n match = selector.match(Patterns.className);\n compat = (QUIRKS_MODE ? 'i' : '') + '.test(e.getAttribute(\"class\"))';\n source = 'if(' + N + '(/(^|\\\\s)' + match[1] + '(\\\\s|$)/' + compat +\n ')){' + source + '}';\n break;\n\n // tag name resolver\n case (/[_a-z]/i.test(symbol) ? symbol : undefined):\n match = selector.match(Patterns.tagName);\n source = 'if(' + N + '(e.localName' +\n (Config.MIXEDCASE || hasMixedCaseTagNames(doc) ?\n '==\"' + match[1].toLowerCase() + '\"' :\n '==\"' + match[1].toUpperCase() + '\"') +\n ')){' + source + '}';\n break;\n\n // namespace resolver\n case '|':\n match = selector.match(Patterns.namespace);\n if (match[1] == '*') {\n source = 'if(' + N + 'true){' + source + '}';\n } else if (!match[1]) {\n source = 'if(' + N + '(!e.namespaceURI)){' + source + '}';\n } else if (typeof match[1] == 'string' && root.prefix == match[1]) {\n source = 'if(' + N + '(e.namespaceURI==\"' + NAMESPACE + '\")){' + source + '}';\n } else {\n emit('\\'' + selector_string + '\\'' + qsInvalid);\n }\n break;\n\n // attributes resolver\n case '[':\n match = selector.match(Patterns.attribute);\n NS = match[0].match(STD.namespaces);\n name = match[1];\n expr = name.split(':');\n expr = expr.length == 2 ? expr[1] : expr[0];\n if (match[2] && !(test = Operators[match[2]])) {\n emit('\\'' + selector_string + '\\'' + qsInvalid);\n return '';\n }\n if (match[4] === '') {\n test = match[2] == '~=' ?\n { p1: '^\\\\s', p2: '+$', p3: 'true' } :\n match[2] in ATTR_STD_OPS && match[2] != '~=' ?\n { p1: '^', p2: '$', p3: 'true' } : test;\n } else if (match[2] == '~=' && match[4].includes(' ')) {\n // whitespace separated list but value contains space\n source = 'if(' + N + 'false){' + source + '}';\n break;\n } else if (match[4]) {\n match[4] = convertEscapes(match[4]).replace(REX.RegExpChar, '\\\\$&');\n }\n type = match[5] == 'i' || (HTML_DOCUMENT && HTML_TABLE[expr.toLowerCase()]) ? 'i' : '';\n source = 'if(' + N + '(' +\n (!match[2] ? (NS ? 's.hasAttributeNS(e,\"' + name + '\")' : 'e.hasAttribute&&e.hasAttribute(\"' + name + '\")') :\n !match[4] && ATTR_STD_OPS[match[2]] && match[2] != '~=' ? 'e.getAttribute&&e.getAttribute(\"' + name + '\")==\"\"' :\n '(/' + test.p1 + match[4] + test.p2 + '/' + type + ').test(e.getAttribute&&e.getAttribute(\"' + name + '\"))==' + test.p3) +\n ')){' + source + '}';\n break;\n\n // *** General sibling combinator\n // E ~ F (F relative sibling of E)\n case '~':\n match = selector.match(Patterns.relative);\n source = 'n=e;while((e=e.previousElementSibling)){' + source + '}e=n;';\n break;\n // *** Adjacent sibling combinator\n // E + F (F adiacent sibling of E)\n case '+':\n match = selector.match(Patterns.adjacent);\n source = 'n=e;if((e=e.previousElementSibling)){' + source + '}e=n;';\n break;\n // *** Descendant combinator\n // E F (E ancestor of F)\n case '\\x09':\n case '\\x20':\n match = selector.match(Patterns.ancestor);\n source = 'n=e;while((e=e.parentElement)){' + source + '}e=n;';\n break;\n // *** Child combinator\n // E > F (F children of E)\n case '>':\n match = selector.match(Patterns.children);\n source = 'n=e;if((e=e.parentElement)){' + source + '}e=n;';\n break;\n\n // *** user supplied combinators extensions\n case (symbol in Combinators ? symbol : undefined):\n // for other registered combinators extensions\n match[match.length - 1] = '*';\n source = Combinators[symbol](match) + source;\n break;\n\n // *** tree-structural pseudo-classes\n // :root, :empty, :first-child, :last-child, :only-child, :first-of-type, :last-of-type, :only-of-type\n case ':':\n if ((match = selector.match(Patterns.structural))) {\n match[1] = match[1].toLowerCase();\n switch (match[1]) {\n case 'root':\n // there can only be one :root element, so exit the loop once found\n source = 'if(' + N + '(e===s.root)){' + source + (mode ? 'break main;' : '') + '}';\n break;\n case 'empty':\n // matches elements that don't contain elements or text nodes\n source = 'n=e.firstChild;while(n&&!(/1|3/).test(n.nodeType)){n=n.nextSibling}if(' + D + 'n){' + source + '}';\n break;\n\n // *** child-indexed pseudo-classes\n // :first-child, :last-child, :only-child\n case 'only-child':\n source = 'if(' + N + '(!e.nextElementSibling&&!e.previousElementSibling)){' + source + '}';\n break;\n case 'last-child':\n source = 'if(' + N + '(!e.nextElementSibling)){' + source + '}';\n break;\n case 'first-child':\n source = 'if(' + N + '(!e.previousElementSibling)){' + source + '}';\n break;\n\n // *** typed child-indexed pseudo-classes\n // :only-of-type, :last-of-type, :first-of-type\n case 'only-of-type':\n source = 'o=e.localName;' +\n 'n=e;while((n=n.nextElementSibling)&&n.localName!=o);if(!n){' +\n 'n=e;while((n=n.previousElementSibling)&&n.localName!=o);}if(' + D + 'n){' + source + '}';\n break;\n case 'last-of-type':\n source = 'n=e;o=e.localName;while((n=n.nextElementSibling)&&n.localName!=o);if(' + D + 'n){' + source + '}';\n break;\n case 'first-of-type':\n source = 'n=e;o=e.localName;while((n=n.previousElementSibling)&&n.localName!=o);if(' + D + 'n){' + source + '}';\n break;\n default:\n emit('\\'' + selector_string + '\\'' + qsInvalid);\n break;\n }\n }\n\n // *** child-indexed & typed child-indexed pseudo-classes\n // :nth-child, :nth-of-type, :nth-last-child, :nth-last-of-type\n else if ((match = selector.match(Patterns.treestruct))) {\n match[1] = match[1].toLowerCase();\n switch (match[1]) {\n case 'nth-child':\n case 'nth-of-type':\n case 'nth-last-child':\n case 'nth-last-of-type':\n expr = /-of-type/i.test(match[1]);\n if (match[1] && match[2]) {\n type = /last/i.test(match[1]);\n if (match[2] == 'n') {\n source = 'if(' + N + 'true){' + source + '}';\n break;\n } else if (match[2] == '1') {\n test = type ? 'next' : 'previous';\n source = expr ? 'n=e;o=e.localName;' +\n 'while((n=n.' + test + 'ElementSibling)&&n.localName!=o);if(' + D + 'n){' + source + '}' :\n 'if(' + N + '!e.' + test + 'ElementSibling){' + source + '}';\n break;\n } else if (match[2] == 'even' || match[2] == '2n0' || match[2] == '2n+0' || match[2] == '2n') {\n test = 'n%2==0';\n } else if (match[2] == 'odd' || match[2] == '2n1' || match[2] == '2n+1') {\n test = 'n%2==1';\n } else {\n f = /n/i.test(match[2]);\n n = match[2].split('n');\n a = parseInt(n[0], 10) || 0;\n b = parseInt(n[1], 10) || 0;\n if (n[0] == '-') { a = -1; }\n if (n[0] == '+') { a = +1; }\n test = (b ? '(n' + (b > 0 ? '-' : '+') + Math.abs(b) + ')' : 'n') + '%' + a + '==0' ;\n test =\n a >= +1 ? (f ? 'n>' + (b - 1) + (Math.abs(a) != 1 ? '&&' + test : '') : 'n==' + a) :\n a <= -1 ? (f ? 'n<' + (b + 1) + (Math.abs(a) != 1 ? '&&' + test : '') : 'n==' + a) :\n a === 0 ? (n[0] ? 'n==' + b : 'n>' + (b - 1)) : 'false';\n }\n expr = expr ? 'OfType' : 'Element';\n type = type ? 'true' : 'false';\n source = 'n=s.nth' + expr + '(e,' + type + ');if(' + N + '(' + test + ')){' + source + '}';\n } else {\n emit('\\'' + selector_string + '\\'' + qsInvalid);\n }\n break;\n default:\n emit('\\'' + selector_string + '\\'' + qsInvalid);\n break;\n }\n }\n\n // *** logical combination pseudo-classes\n // :is( s1, [ s2, ... ]), :not( s1, [ s2, ... ])\n else if ((match = selector.match(Patterns.logicalsel))) {\n match[1] = match[1].toLowerCase();\n switch (match[1]) {\n case 'is':\n case 'where':\n case 'matches':\n expr = match[2].replace(REX.CommaGroup, ',').replace(REX.TrimSpaces, '');\n source = 'if(s.match(\"' + expr.replace(/\\x22/g, '\\\\\"') + '\",e)){' + source + '}';\n break;\n case 'not':\n expr = match[2].replace(REX.CommaGroup, ',').replace(REX.TrimSpaces, '');\n source = 'if(!s.match(\"' + expr.replace(/\\x22/g, '\\\\\"') + '\",e)){' + source + '}';\n break;\n default:\n emit('\\'' + selector_string + '\\'' + qsInvalid);\n break;\n }\n }\n\n // *** linguistic pseudo-classes\n // :dir( ltr / rtl ), :lang( en )\n else if ((match = selector.match(Patterns.linguistic))) {\n match[1] = match[1].toLowerCase();\n switch (match[1]) {\n case 'dir':\n source = 'var p;if(' + N + '(' +\n '(/' + match[2] + '/i.test(e.dir))||(p=s.ancestor(\"[dir]\", e))&&' +\n '(/' + match[2] + '/i.test(p.dir))||(e.dir==\"\"||e.dir==\"auto\")&&' +\n '(' + (match[2] == 'ltr' ? '!':'')+ RTL +'.test(e.textContent)))' +\n '){' + source + '};';\n break;\n case 'lang':\n expr = '(?:^|-)' + match[2] + '(?:-|$)';\n source = 'var p;if(' + N + '(' +\n '(e.isConnected&&(e.lang==\"\"&&(p=s.ancestor(\"[lang]\",e)))&&' +\n '(p.lang==\"' + match[2] + '\")||/'+ expr +'/i.test(e.lang)))' +\n '){' + source + '};';\n break;\n default:\n emit('\\'' + selector_string + '\\'' + qsInvalid);\n break;\n }\n }\n\n // *** location pseudo-classes\n // :any-link, :link, :visited, :target\n else if ((match = selector.match(Patterns.locationpc))) {\n match[1] = match[1].toLowerCase();\n switch (match[1]) {\n case 'any-link':\n source = 'if(' + N + '(/^a|area$/i.test(e.localName)&&e.hasAttribute(\"href\")||e.visited)){' + source + '}';\n break;\n case 'link':\n source = 'if(' + N + '(/^a|area$/i.test(e.localName)&&e.hasAttribute(\"href\"))){' + source + '}';\n break;\n case 'visited':\n source = 'if(' + N + '(/^a|area$/i.test(e.localName)&&e.hasAttribute(\"href\")&&e.visited)){' + source + '}';\n break;\n case 'target':\n source = 'if(' + N + '((s.doc.compareDocumentPosition(e)&16)&&s.doc.location.hash&&e.id==s.doc.location.hash.slice(1))){' + source + '}';\n break;\n default:\n emit('\\'' + selector_string + '\\'' + qsInvalid);\n break;\n }\n }\n\n // *** user actions pseudo-classes\n // :hover, :active, :focus\n else if ((match = selector.match(Patterns.useraction))) {\n match[1] = match[1].toLowerCase();\n switch (match[1]) {\n case 'hover':\n source = 'hasFocus' in doc && doc.hasFocus() ?\n 'if(' + N + '(e===s.doc.hoverElement)){' + source + '}' :\n 'if(' + D + 'true){' + source + '}';\n break;\n case 'active':\n source = 'hasFocus' in doc && doc.hasFocus() ?\n 'if(' + N + '(e===s.doc.activeElement)){' + source + '}' :\n 'if(' + D + 'true){' + source + '}';\n break;\n case 'focus':\n source = 'hasFocus' in doc ?\n 'if(' + N + '(e===s.doc.activeElement&&s.doc.hasFocus()&&(e.type||e.href||typeof e.tabIndex==\"number\"))){' + source + '}' :\n 'if(' + N + '(e===s.doc.activeElement&&(e.type||e.href))){' + source + '}';\n break;\n case 'focus-within':\n source = 'hasFocus' in doc ?\n 'n=s.doc.activeElement;while(e){if(e===n||e.parentNode===n)break;}' +\n 'if(' + N + '(e===n&&s.doc.hasFocus()&&(e.type||e.href||typeof e.tabIndex==\"number\"))){' + source + '}' : source;\n break;\n default:\n emit('\\'' + selector_string + '\\'' + qsInvalid);\n break;\n }\n }\n\n // *** user interface and form pseudo-classes\n // :enabled, :disabled, :read-only, :read-write, :placeholder-shown, :default\n else if ((match = selector.match(Patterns.inputstate))) {\n match[1] = match[1].toLowerCase();\n switch (match[1]) {\n case 'enabled':\n source = 'if(' + N + '((\"form\" in e||/^optgroup$/i.test(e.localName))&&\"disabled\" in e &&e.disabled===false' +\n ')){' + source + '}';\n break;\n case 'disabled':\n // https://www.w3.org/TR/html5/forms.html#enabling-and-disabling-form-controls:-the-disabled-attribute\n source = 'if(' + N + '((\"form\" in e||/^optgroup$/i.test(e.localName))&&\"disabled\" in e&&' +\n '(e.disabled===true||(n=s.ancestor(\"fieldset\",e))&&(n=s.first(\"legend\",n))&&!n.contains(e))' +\n ')){' + source + '}';\n break;\n case 'read-only':\n source =\n 'if(' + N + '(' +\n '(/^textarea$/i.test(e.localName)&&(e.readOnly||e.disabled))||' +\n '(\"|password|text|\".includes(\"|\"+e.type+\"|\")&&e.readOnly)' +\n ')){' + source + '}';\n break;\n case 'read-write':\n source =\n 'if(' + N + '(' +\n '((/^textarea$/i.test(e.localName)&&!e.readOnly&&!e.disabled)||' +\n '(\"|password|text|\".includes(\"|\"+e.type+\"|\")&&!e.readOnly&&!e.disabled))||' +\n '(e.hasAttribute(\"contenteditable\")||(s.doc.designMode==\"on\"))' +\n ')){' + source + '}';\n break;\n case 'placeholder-shown':\n source =\n 'if(' + N + '(' +\n '(/^input|textarea$/i.test(e.localName))&&e.hasAttribute(\"placeholder\")&&' +\n '(\"|textarea|password|number|search|email|text|tel|url|\".includes(\"|\"+e.type+\"|\"))&&' +\n '(!s.match(\":focus\",e))' +\n ')){' + source + '}';\n break;\n case 'default':\n source =\n 'if(' + N + '(\"form\" in e && e.form)){' +\n 'var x=0;n=[];' +\n 'if(e.type==\"image\")n=e.form.getElementsByTagName(\"input\");' +\n 'if(e.type==\"submit\")n=e.form.elements;' +\n 'while(n[x]&&e!==n[x]){' +\n 'if(n[x].type==\"image\")break;' +\n 'if(n[x].type==\"submit\")break;' +\n 'x++;' +\n '}' +\n '}' +\n 'if(' + N + '(e.form&&(e===n[x]&&\"|image|submit|\".includes(\"|\"+e.type+\"|\"))||' +\n '((/^option$/i.test(e.localName))&&e.defaultSelected)||' +\n '((\"|radio|checkbox|\".includes(\"|\"+e.type+\"|\"))&&e.defaultChecked)' +\n ')){' + source + '}';\n break;\n default:\n emit('\\'' + selector_string + '\\'' + qsInvalid);\n break;\n }\n }\n\n // *** input pseudo-classes (for form validation)\n // :checked, :indeterminate, :valid, :invalid, :in-range, :out-of-range, :required, :optional\n else if ((match = selector.match(Patterns.inputvalue))) {\n match[1] = match[1].toLowerCase();\n switch (match[1]) {\n case 'checked':\n source = 'if(' + N + '(/^input$/i.test(e.localName)&&' +\n '(\"|radio|checkbox|\".includes(\"|\"+e.type+\"|\")&&e.checked)||' +\n '(/^option$/i.test(e.localName)&&(e.selected||e.checked))' +\n ')){' + source + '}';\n break;\n case 'indeterminate':\n source =\n 'if(' + N + '(/^progress$/i.test(e.localName)&&!e.hasAttribute(\"value\"))||' +\n '(/^input$/i.test(e.localName)&&(\"checkbox\"==e.type&&e.indeterminate)||' +\n '(\"radio\"==e.type&&e.name&&!s.first(\"input[name=\"+e.name+\"]:checked\",e.form))' +\n ')){' + source + '}';\n break;\n case 'required':\n source =\n 'if(' + N +\n '(/^input|select|textarea$/i.test(e.localName)&&e.required)' +\n '){' + source + '}';\n break;\n case 'optional':\n source =\n 'if(' + N +\n '(/^input|select|textarea$/i.test(e.localName)&&!e.required)' +\n '){' + source + '}';\n break;\n case 'invalid':\n source =\n 'if(' + N + '((' +\n '(/^form$/i.test(e.localName)&&!e.noValidate)||' +\n '(e.willValidate&&!e.formNoValidate))&&!e.checkValidity())||' +\n '(/^fieldset$/i.test(e.localName)&&s.first(\":invalid\",e))' +\n '){' + source + '}';\n break;\n case 'valid':\n source =\n 'if(' + N + '((' +\n '(/^form$/i.test(e.localName)&&!e.noValidate)||' +\n '(e.willValidate&&!e.formNoValidate))&&e.checkValidity())||' +\n '(/^fieldset$/i.test(e.localName)&&s.first(\":valid\",e))' +\n '){' + source + '}';\n break;\n case 'in-range':\n source =\n 'if(' + N +\n '(/^input$/i.test(e.localName))&&' +\n '(e.willValidate&&!e.formNoValidate)&&' +\n '(!e.validity.rangeUnderflow&&!e.validity.rangeOverflow)&&' +\n '(\"|date|datetime-local|month|number|range|time|week|\".includes(\"|\"+e.type+\"|\"))&&' +\n '(\"range\"==e.type||e.getAttribute(\"min\")||e.getAttribute(\"max\"))' +\n '){' + source + '}';\n break;\n case 'out-of-range':\n source =\n 'if(' + N +\n '(/^input$/i.test(e.localName))&&' +\n '(e.willValidate&&!e.formNoValidate)&&' +\n '(e.validity.rangeUnderflow||e.validity.rangeOverflow)&&' +\n '(\"|date|datetime-local|month|number|range|time|week|\".includes(\"|\"+e.type+\"|\"))&&' +\n '(\"range\"==e.type||e.getAttribute(\"min\")||e.getAttribute(\"max\"))' +\n '){' + source + '}';\n break;\n default:\n emit('\\'' + selector_string + '\\'' + qsInvalid);\n break;\n }\n }\n\n // allow pseudo-elements starting with single colon (:)\n // :after, :before, :first-letter, :first-line\n // assert: e.type is in double-colon format, like ::after\n else if ((match = selector.match(Patterns.pseudo_sng))) {\n source = 'if(e.element&&e.type.toLowerCase()==\"' +\n ':' + match[0].toLowerCase() + '\"){e=e.element;' + source + '}';\n }\n\n // allow pseudo-elements starting with double colon (::)\n // ::after, ::before, ::marker, ::placeholder, ::inactive-selection, ::selection, ::-webkit-<foo-bar>\n // assert: e.type is in double-colon format, like ::after\n else if ((match = selector.match(Patterns.pseudo_dbl))) {\n source = 'if(e.element&&e.type.toLowerCase()==\"' +\n match[0].toLowerCase() + '\"){e=e.element;' + source + '}';\n }\n\n else {\n\n // reset\n expr = false;\n status = false;\n\n // process registered selector extensions\n for (expr in Selectors) {\n if ((match = selector.match(Selectors[expr].Expression))) {\n result = Selectors[expr].Callback(match, source, mode, callback);\n if ('match' in result) { match = result.match; }\n vars = result.modvar;\n if (mode) {\n // add extra select() vars\n vars && S_VARS.indexOf(vars) < 0 && (S_VARS[S_VARS.length] = vars);\n } else {\n // add extra match() vars\n vars && M_VARS.indexOf(vars) < 0 && (M_VARS[M_VARS.length] = vars);\n }\n // extension source code\n source = result.source;\n // extension status code\n status = result.status;\n // break on status error\n if (status) { break; }\n }\n }\n\n if (!status) {\n emit('unknown pseudo-class selector \\'' + selector + '\\'');\n return '';\n }\n\n if (!expr) {\n emit('unknown token in selector \\'' + selector + '\\'');\n return '';\n }\n\n }\n break;\n\n default:\n emit('\\'' + selector_string + '\\'' + qsInvalid);\n break;\n\n }\n // end of switch symbol\n\n if (!match) {\n emit('\\'' + selector_string + '\\'' + qsInvalid);\n return '';\n }\n\n // pop last component\n selector = match.pop();\n }\n // end of while selector\n\n return source;\n },\n\n // replace ':scope' pseudo-class with element references\n makeref =\n function(selectors, element) {\n return selectors.replace(/:scope/ig,\n element.localName +\n (element.id ? '#' + element.id : '') +\n (element.className ? '.' + element.classList[0] : ''));\n },\n\n // equivalent of w3c 'closest' method\n ancestor =\n function _closest(selectors, element, callback) {\n\n if ((/:scope/i).test(selectors)) {\n selectors = makeref(selectors, element);\n }\n\n while (element) {\n if (match(selectors, element, callback)) break;\n element = element.parentElement;\n }\n return element;\n },\n\n match_assert =\n function(f, element, callback) {\n for (var i = 0, l = f.length, r = false; l > i; ++i)\n f[i](element, callback, null, false) && (r = true);\n return r;\n },\n\n match_collect =\n function(selectors, callback) {\n for (var i = 0, l = selectors.length, f = [ ]; l > i; ++i)\n f[i] = compile(selectors[i], false, callback);\n return { factory: f };\n },\n\n // equivalent of w3c 'matches' method\n match =\n function _matches(selectors, element, callback) {\n\n var expressions, parsed;\n\n if (element && matchResolvers[selectors]) {\n return match_assert(matchResolvers[selectors].factory, element, callback);\n }\n\n lastMatched = selectors;\n\n // arguments validation\n if (arguments.length === 0) {\n emit(qsNotArgs, TypeError);\n return Config.VERBOSITY ? undefined : false;\n } else if (arguments[0] === '') {\n emit('\\'\\'' + qsInvalid);\n return Config.VERBOSITY ? undefined : false;\n }\n\n // input NULL or UNDEFINED\n if (typeof selectors != 'string') {\n selectors = '' + selectors;\n }\n\n if ((/:scope/i).test(selectors)) {\n selectors = makeref(selectors, element);\n }\n\n // normalize input string\n parsed = selectors.\n replace(/\\x00|\\\\$/g, '\\ufffd').\n replace(REX.CombineWSP, '\\x20').\n replace(REX.PseudosWSP, '$1').\n replace(REX.TabCharWSP, '\\t').\n replace(REX.CommaGroup, ',').\n replace(REX.TrimSpaces, '');\n\n // parse, validate and split possible compound selectors\n if ((expressions = parsed.match(reValidator)) && expressions.join('') == parsed) {\n expressions = parsed.match(REX.SplitGroup);\n if (parsed[parsed.length - 1] == ',') {\n emit(qsInvalid);\n return Config.VERBOSITY ? undefined : false;\n }\n } else {\n emit('\\'' + selectors + '\\'' + qsInvalid);\n return Config.VERBOSITY ? undefined : false;\n }\n\n matchResolvers[selectors] = match_collect(expressions, callback);\n\n return match_assert(matchResolvers[selectors].factory, element, callback);\n },\n\n // equivalent of w3c 'querySelector' method\n first =\n function _querySelector(selectors, context, callback) {\n if (arguments.length === 0) {\n emit(qsNotArgs, TypeError);\n }\n return select(selectors, context,\n typeof callback == 'function' ?\n function firstMatch(element) {\n callback(element);\n return false;\n } :\n function firstMatch() {\n return false;\n }\n )[0] || null;\n },\n\n // equivalent of w3c 'querySelectorAll' method\n select =\n function _querySelectorAll(selectors, context, callback) {\n\n var expressions, nodes, parsed, resolver;\n\n context || (context = doc);\n\n if (selectors) {\n if ((resolver = selectResolvers[selectors])) {\n if (resolver.context === context && resolver.callback === callback) {\n var f = resolver.factory, h = resolver.htmlset, n = resolver.nodeset, nodes = [ ];\n if (n.length > 1) {\n for (var i = 0, l = n.length, list; l > i; ++i) {\n list = compat[n[i][0]](context, n[i].slice(1))();\n if (f[i] !== null) {\n f[i](list, callback, context, nodes);\n } else {\n nodes = nodes.concat(list);\n }\n }\n if (l > 1 && nodes.length > 1) {\n nodes.sort(documentOrder);\n hasDupes && (nodes = unique(nodes));\n }\n } else {\n if (f[0]) {\n nodes = f[0](h[0](), callback, context, nodes);\n } else {\n nodes = h[0]();\n }\n }\n return typeof callback == 'function' ?\n concatCall(nodes, callback) : nodes;\n }\n }\n }\n\n lastSelected = selectors;\n\n // arguments validation\n if (arguments.length === 0) {\n emit(qsNotArgs, TypeError);\n return Config.VERBOSITY ? undefined : none;\n } else if (arguments[0] === '') {\n emit('\\'\\'' + qsInvalid);\n return Config.VERBOSITY ? undefined : none;\n } else if (lastContext !== context) {\n lastContext = switchContext(context);\n }\n\n // input NULL or UNDEFINED\n if (typeof selectors != 'string') {\n selectors = '' + selectors;\n }\n\n if ((/:scope/i).test(selectors)) {\n selectors = makeref(selectors, context);\n }\n\n // normalize input string\n parsed = selectors.\n replace(/\\x00|\\\\$/g, '\\ufffd').\n replace(REX.CombineWSP, '\\x20').\n replace(REX.PseudosWSP, '$1').\n replace(REX.TabCharWSP, '\\t').\n replace(REX.CommaGroup, ',').\n replace(REX.TrimSpaces, '');\n\n // parse, validate and split possible compound selectors\n if ((expressions = parsed.match(reValidator)) && expressions.join('') == parsed) {\n expressions = parsed.match(REX.SplitGroup);\n if (parsed[parsed.length - 1] == ',') {\n emit(qsInvalid);\n return Config.VERBOSITY ? undefined : false;\n }\n } else {\n emit('\\'' + selectors + '\\'' + qsInvalid);\n return Config.VERBOSITY ? undefined : false;\n }\n\n // save/reuse factory and closure collection\n selectResolvers[selectors] = collect(expressions, context, callback);\n\n nodes = selectResolvers[selectors].results;\n\n return typeof callback == 'function' ?\n concatCall(nodes, callback) : nodes;\n },\n\n // optimize selectors avoiding duplicated checks\n optimize =\n function(selector, token) {\n var index = token.index,\n length = token[1].length + token[2].length;\n return selector.slice(0, index) +\n (' >+~'.indexOf(selector.charAt(index - 1)) > -1 ?\n (':['.indexOf(selector.charAt(index + length + 1)) > -1 ?\n '*' : '') : '') + selector.slice(index + length - (token[1] == '*' ? 1 : 0));\n },\n\n // prepare factory resolvers and closure collections\n collect =\n function(selectors, context, callback) {\n\n var i, l, seen = { }, token = ['', '*', '*'], optimized = selectors,\n factory = [ ], htmlset = [ ], nodeset = [ ], results = [ ], type;\n\n for (i = 0, l = selectors.length; l > i; ++i) {\n\n if (!seen[selectors[i]] && (seen[selectors[i]] = true)) {\n type = selectors[i].match(reOptimizer);\n if (type && type[1] != ':' && (token = type)) {\n token[1] || (token[1] = '*');\n optimized[i] = optimize(optimized[i], token);\n } else {\n token = ['', '*', '*'];\n }\n\t\t}\n\n nodeset[i] = token[1] + token[2];\n htmlset[i] = compat[token[1]](context, token[2]);\n factory[i] = compile(optimized[i], true, null);\n\n factory[i] ?\n factory[i](htmlset[i](), callback, context, results) :\n result.concat(htmlset[i]());\n }\n\n if (l > 1) {\n results.sort(documentOrder);\n hasDupes && (results = unique(results));\n }\n\n return {\n callback: callback,\n context: context,\n factory: factory,\n htmlset: htmlset,\n nodeset: nodeset,\n results: results\n };\n\n },\n\n // QSA placeholders to native references\n _closest, _matches, _querySelector, _querySelectorAll,\n\n // overrides QSA methods (only for browsers)\n install =\n function(all) {\n\n // save native QSA references\n _closest = Element.prototype.closest;\n _matches = Element.prototype.matches;\n _querySelector = Document.prototype.querySelector;\n _querySelectorAll = Document.prototype.querySelectorAll;\n\n Element.prototype.closest =\n function closest() {\n var ctor = Object.getPrototypeOf(this).__proto__.__proto__.constructor.name;\n if (!('nodeType' in this)) { emit('\\'closest\\' called on an object that does not implement interface ' + ctor + '.', TypeError); }\n return arguments.length < 1 ? ancestor.apply(this, [ ]) :\n arguments.length < 2 ? ancestor.apply(this, [ arguments[0], this ]) :\n ancestor.apply(this, [ arguments[0], this, typeof arguments[1] == 'function' ? arguments[1] : undefined ]);\n };\n\n Element.prototype.matches =\n function matches() {\n var ctor = Object.getPrototypeOf(this).__proto__.__proto__.constructor.name;\n if (!('nodeType' in this)) { emit('\\'matches\\' called on an object that does not implement interface ' + ctor + '.', TypeError); }\n return arguments.length < 1 ? match.apply(this, [ ]) :\n arguments.length < 2 ? match.apply(this, [ arguments[0], this ]) :\n match.apply(this, [ arguments[0], this, typeof arguments[1] == 'function' ? arguments[1] : undefined ]);\n };\n\n Element.prototype.querySelector =\n Document.prototype.querySelector =\n DocumentFragment.prototype.querySelector =\n function querySelector() {\n var ctor = Object.getPrototypeOf(this).__proto__.__proto__.constructor.name;\n if (!('nodeType' in this)) { emit('\\'querySelector\\' called on an object that does not implement interface ' + ctor + '.', TypeError); }\n return arguments.length < 1 ? first.apply(this, [ ]) :\n arguments.length < 2 ? first.apply(this, [ arguments[0], this ]) :\n first.apply(this, [ arguments[0], this, typeof arguments[1] == 'function' ? arguments[1] : undefined ]);\n };\n\n Element.prototype.querySelectorAll =\n Document.prototype.querySelectorAll =\n DocumentFragment.prototype.querySelectorAll =\n function querySelectorAll() {\n var ctor = Object.getPrototypeOf(this).__proto__.__proto__.constructor.name;\n if (!('nodeType' in this)) { emit('\\'querySelectorAll\\' called on an object that does not implement interface ' + ctor + '.', TypeError); }\n return arguments.length < 1 ? select.apply(this, [ ]) :\n arguments.length < 2 ? select.apply(this, [ arguments[0], this ]) :\n select.apply(this, [ arguments[0], this, typeof arguments[1] == 'function' ? arguments[1] : undefined ]);\n };\n\n if (all) {\n document.addEventListener('load', function(e) {\n var c, d, r, s, t = e.target;\n if (/iframe/i.test(t.localName)) {\n c = '(' + Export + ')(this, ' + Factory + ');'; d = t.contentDocument;\n s = d.createElement('script'); s.textContent = c + 'NW.Dom.install()';\n r = d.documentElement; r.removeChild(r.insertBefore(s, r.firstChild));\n }\n }, true);\n }\n\n },\n\n // restore QSA methods (only for browsers)\n uninstall =\n function() {\n // reinstates QSA native references\n Element.prototype.closest = _closest;\n Element.prototype.matches = _matches;\n Element.prototype.querySelector =\n Document.prototype.querySelector =\n DocumentFragment.prototype.querySelector = _querySelector;\n Element.prototype.querySelectorAll =\n Document.prototype.querySelectorAll =\n DocumentFragment.prototype.querySelectorAll = _querySelectorAll;\n },\n\n // empty set\n none = Array(),\n\n // context\n lastContext,\n\n // selector\n lastMatched,\n lastSelected,\n\n // cached lambdas\n matchLambdas = { },\n selectLambdas = { },\n\n // cached resolvers\n matchResolvers = { },\n selectResolvers = { },\n\n // passed to resolvers\n Snapshot = {\n\n doc: doc,\n from: doc,\n root: root,\n\n byTag: byTag,\n\n first: first,\n match: match,\n\n ancestor: ancestor,\n\n nthOfType: nthOfType,\n nthElement: nthElement,\n\n hasAttributeNS: hasAttributeNS\n },\n\n // public exported methods/objects\n Dom = {\n\n // exported cache objects\n\n lastMatched: lastMatched,\n lastSelected: lastSelected,\n\n matchLambdas: matchLambdas,\n selectLambdas: selectLambdas,\n\n matchResolvers: matchResolvers,\n selectResolvers: selectResolvers,\n\n // exported compiler macros\n\n CFG: CFG,\n\n M_BODY: M_BODY,\n S_BODY: S_BODY,\n M_TEST: M_TEST,\n S_TEST: S_TEST,\n\n // exported engine methods\n\n byId: byId,\n byTag: byTag,\n byClass: byClass,\n\n match: match,\n first: first,\n select: select,\n closest: ancestor,\n\n compile: compile,\n configure: configure,\n\n emit: emit,\n Config: Config,\n Snapshot: Snapshot,\n\n Version: version,\n\n install: install,\n uninstall: uninstall,\n\n Operators: Operators,\n Selectors: Selectors,\n\n // register a new selector combinator symbol and its related function resolver\n registerCombinator:\n function(combinator, resolver) {\n var i = 0, l = combinator.length, symbol;\n for (; l > i; ++i) {\n if (combinator[i] != '=') {\n symbol = combinator[i];\n break;\n }\n }\n if (CFG.combinators.indexOf(symbol) < 0) {\n CFG.combinators = CFG.combinators.replace('](', symbol + '](');\n CFG.combinators = CFG.combinators.replace('])', symbol + '])');\n Combinators[combinator] = resolver;\n setIdentifierSyntax();\n } else {\n console.warn('Warning: the \\'' + combinator + '\\' combinator is already registered.');\n }\n },\n\n // register a new attribute operator symbol and its related function resolver\n registerOperator:\n function(operator, resolver) {\n var i = 0, l = operator.length, symbol;\n for (; l > i; ++i) {\n if (operator[i] != '=') {\n symbol = operator[i];\n break;\n }\n }\n if (CFG.operators.indexOf(symbol) < 0 && !Operators[operator]) {\n CFG.operators = CFG.operators.replace(']=', symbol + ']=');\n Operators[operator] = resolver;\n setIdentifierSyntax();\n } else {\n console.warn('Warning: the \\'' + operator + '\\' operator is already registered.');\n }\n },\n\n // register a new selector symbol and its related function resolver\n registerSelector:\n function(name, rexp, func) {\n Selectors[name] || (Selectors[name] = {\n Expression: rexp,\n Callback: func\n });\n }\n\n };\n\n initialize(doc);\n\n return Dom;\n}\n","import NWDom from \"./nwsapi.js\";\nexport const DOM = NWDom;\n//# sourceMappingURL=nwsapi-types.js.map","/*!\n * Sizzle CSS Selector Engine v2.3.7-pre\n * https://sizzlejs.com/\n *\n * Copyright JS Foundation and other contributors\n * Released under the MIT license\n * https://js.foundation/\n *\n * Date: 2022-04-02\n *\n * git commit hash for Deno DOM: ede0e97563c8473b8cfa4045c7c2cd6129ecc1aa\n */\n\nimport { customByTagNameSym, customByClassNameSym } from \"./custom-api.js\";\n\nexport default document => {\n\tconst sizzleWindow = {\n\t\tdocument,\n\t};\n\n\tSetupSizzle(sizzleWindow);\n\tconst { Sizzle } = sizzleWindow;\n\n\treturn {\n\t\tfirst(selectors, context) {\n\t\t\treturn Sizzle(selectors, context)[0] ?? null;\n\t\t},\n\n\t\tselect(selectors, context) {\n\t\t\treturn Sizzle(selectors, context);\n\t\t},\n\n\t\tmatch(selectors, context) {\n\t\t\treturn Sizzle.matchesSelector(context, selectors);\n\t\t},\n\t};\n};\n\nfunction SetupSizzle(window) {\n\tvar i,\n\t\tsupport,\n\t\tExpr,\n\t\tgetText,\n\t\tisXML,\n\t\ttokenize,\n\t\tcompile,\n\t\tselect,\n\t\toutermostContext,\n\t\tsortInput,\n\t\thasDuplicate,\n\t\t// Local document vars\n\t\tsetDocument,\n\t\tdocument,\n\t\tdocElem,\n\t\tdocumentIsHTML,\n\t\trbuggyQSA,\n\t\trbuggyMatches,\n\t\tmatches,\n\t\tcontains,\n\t\t// Instance-specific data\n\t\texpando = \"sizzle\" + 1 * new Date(),\n\t\tpreferredDoc = window.document,\n\t\tdirruns = 0,\n\t\tdone = 0,\n\t\tclassCache = createCache(),\n\t\ttokenCache = createCache(),\n\t\tcompilerCache = createCache(),\n\t\tnonnativeSelectorCache = createCache(),\n\t\tsortOrder = function (a, b) {\n\t\t\tif (a === b) {\n\t\t\t\thasDuplicate = true;\n\t\t\t}\n\t\t\treturn 0;\n\t\t},\n\t\t// Instance methods\n\t\thasOwn = {}.hasOwnProperty,\n\t\tarr = [],\n\t\tpop = arr.pop,\n\t\tpushNative = arr.push,\n\t\tpush = arr.push,\n\t\tslice = arr.slice,\n\t\t// Use a stripped-down indexOf as it's faster than native\n\t\t// https://jsperf.com/thor-indexof-vs-for/5\n\t\tindexOf = function (list, elem) {\n\t\t\tvar i = 0,\n\t\t\t\tlen = list.length;\n\t\t\tfor (; i < len; i++) {\n\t\t\t\tif (list[i] === elem) {\n\t\t\t\t\treturn i;\n\t\t\t\t}\n\t\t\t}\n\t\t\treturn -1;\n\t\t},\n\t\tbooleans =\n\t\t\t\"checked|selected|async|autofocus|autoplay|controls|defer|disabled|hidden|\" +\n\t\t\t\"ismap|loop|multiple|open|readonly|required|scoped\",\n\t\t// Regular expressions\n\n\t\t// http://www.w3.org/TR/css3-selectors/#whitespace\n\t\twhitespace = \"[\\\\x20\\\\t\\\\r\\\\n\\\\f]\",\n\t\t// https://www.w3.org/TR/css-syntax-3/#ident-token-diagram\n\t\tidentifier =\n\t\t\t\"(?:\\\\\\\\[\\\\da-fA-F]{1,6}\" +\n\t\t\twhitespace +\n\t\t\t\"?|\\\\\\\\[^\\\\r\\\\n\\\\f]|[\\\\w-]|[^\\0-\\\\x7f])+\",\n\t\t// Attribute selectors: http://www.w3.org/TR/selectors/#attribute-selectors\n\t\tattributes =\n\t\t\t\"\\\\[\" +\n\t\t\twhitespace +\n\t\t\t\"*(\" +\n\t\t\tidentifier +\n\t\t\t\")(?:\" +\n\t\t\twhitespace +\n\t\t\t// Operator (capture 2)\n\t\t\t\"*([*^$|!~]?=)\" +\n\t\t\twhitespace +\n\t\t\t// \"Attribute values must be CSS identifiers [capture 5]\n\t\t\t// or strings [capture 3 or capture 4]\"\n\t\t\t\"*(?:'((?:\\\\\\\\.|[^\\\\\\\\'])*)'|\\\"((?:\\\\\\\\.|[^\\\\\\\\\\\"])*)\\\"|(\" +\n\t\t\tidentifier +\n\t\t\t\"))|)\" +\n\t\t\twhitespace +\n\t\t\t\"*\\\\]\",\n\t\tpseudos =\n\t\t\t\":(\" +\n\t\t\tidentifier +\n\t\t\t\")(?:\\\\((\" +\n\t\t\t// To reduce the number of selectors needing tokenize in the preFilter, prefer arguments:\n\t\t\t// 1. quoted (capture 3; capture 4 or capture 5)\n\t\t\t\"('((?:\\\\\\\\.|[^\\\\\\\\'])*)'|\\\"((?:\\\\\\\\.|[^\\\\\\\\\\\"])*)\\\")|\" +\n\t\t\t// 2. simple (capture 6)\n\t\t\t\"((?:\\\\\\\\.|[^\\\\\\\\()[\\\\]]|\" +\n\t\t\tattributes +\n\t\t\t\")*)|\" +\n\t\t\t// 3. anything else (capture 2)\n\t\t\t\".*\" +\n\t\t\t\")\\\\)|)\",\n\t\t// Leading and non-escaped trailing whitespace, capturing some non-whitespace characters preceding the latter\n\t\trwhitespace = new RegExp(whitespace + \"+\", \"g\"),\n\t\trtrim = new RegExp(\n\t\t\t\"^\" + whitespace + \"+|((?:^|[^\\\\\\\\])(?:\\\\\\\\.)*)\" + whitespace + \"+$\",\n\t\t\t\"g\"\n\t\t),\n\t\trcomma = new RegExp(\"^\" + whitespace + \"*,\" + whitespace + \"*\"),\n\t\trcombinators = new RegExp(\n\t\t\t\"^\" + whitespace + \"*([>+~]|\" + whitespace + \")\" + whitespace + \"*\"\n\t\t),\n\t\trdescend = new RegExp(whitespace + \"|>\"),\n\t\trpseudo = new RegExp(pseudos),\n\t\tridentifier = new RegExp(\"^\" + identifier + \"$\"),\n\t\tmatchExpr = {\n\t\t\tID: new RegExp(\"^#(\" + identifier + \")\"),\n\t\t\tCLASS: new RegExp(\"^\\\\.(\" + identifier + \")\"),\n\t\t\tTAG: new RegExp(\"^(\" + identifier + \"|[*])\"),\n\t\t\tATTR: new RegExp(\"^\" + attributes),\n\t\t\tPSEUDO: new RegExp(\"^\" + pseudos),\n\t\t\tCHILD: new RegExp(\n\t\t\t\t\"^:(only|first|last|nth|nth-last)-(child|of-type)(?:\\\\(\" +\n\t\t\t\t\twhitespace +\n\t\t\t\t\t\"*(even|odd|(([+-]|)(\\\\d*)n|)\" +\n\t\t\t\t\twhitespace +\n\t\t\t\t\t\"*(?:([+-]|)\" +\n\t\t\t\t\twhitespace +\n\t\t\t\t\t\"*(\\\\d+)|))\" +\n\t\t\t\t\twhitespace +\n\t\t\t\t\t\"*\\\\)|)\",\n\t\t\t\t\"i\"\n\t\t\t),\n\t\t\tbool: new RegExp(\"^(?:\" + booleans + \")$\", \"i\"),\n\n\t\t\t// For use in libraries implementing .is()\n\t\t\t// We use this for POS matching in `select`\n\t\t\tneedsContext: new RegExp(\n\t\t\t\t\"^\" +\n\t\t\t\t\twhitespace +\n\t\t\t\t\t\"*[>+~]|:(even|odd|eq|gt|lt|nth|first|last)(?:\\\\(\" +\n\t\t\t\t\twhitespace +\n\t\t\t\t\t\"*((?:-\\\\d)?\\\\d*)\" +\n\t\t\t\t\twhitespace +\n\t\t\t\t\t\"*\\\\)|)(?=[^-]|$)\",\n\t\t\t\t\"i\"\n\t\t\t),\n\t\t},\n\t\trhtml = /HTML$/i,\n\t\trinputs = /^(?:input|select|textarea|button)$/i,\n\t\trheader = /^h\\d$/i,\n\t\trnative = /^[^{]+\\{\\s*\\[native \\w/,\n\t\t// Easily-parseable/retrievable ID or TAG or CLASS selectors\n\t\trquickExpr = /^(?:#([\\w-]+)|(\\w+)|\\.([\\w-]+))$/,\n\t\trsibling = /[+~]/,\n\t\t// CSS escapes\n\t\t// http://www.w3.org/TR/CSS21/syndata.html#escaped-characters\n\t\trunescape = new RegExp(\n\t\t\t\"\\\\\\\\[\\\\da-fA-F]{1,6}\" + whitespace + \"?|\\\\\\\\([^\\\\r\\\\n\\\\f])\",\n\t\t\t\"g\"\n\t\t),\n\t\tfunescape = function (escape, nonHex) {\n\t\t\tvar high = \"0x\" + escape.slice(1) - 0x10000;\n\n\t\t\treturn nonHex\n\t\t\t\t? // Strip the backslash prefix from a non-hex escape sequence\n\t\t\t\t nonHex\n\t\t\t\t: // Replace a hexadecimal escape sequence with the encoded Unicode code point\n\t\t\t\t// Support: IE <=11+\n\t\t\t\t// For values outside the Basic Multilingual Plane (BMP), manually construct a\n\t\t\t\t// surrogate pair\n\t\t\t\thigh < 0\n\t\t\t\t? String.fromCharCode(high + 0x10000)\n\t\t\t\t: String.fromCharCode((high >> 10) | 0xd800, (high & 0x3ff) | 0xdc00);\n\t\t},\n\t\t// CSS string/identifier serialization\n\t\t// https://drafts.csswg.org/cssom/#common-serializing-idioms\n\t\trcssescape = /([\\0-\\x1f\\x7f]|^-?\\d)|^-$|[^\\0-\\x1f\\x7f-\\uFFFF\\w-]/g,\n\t\tfcssescape = function (ch, asCodePoint) {\n\t\t\tif (asCodePoint) {\n\t\t\t\t// U+0000 NULL becomes U+FFFD REPLACEMENT CHARACTER\n\t\t\t\tif (ch === \"\\0\") {\n\t\t\t\t\treturn \"\\uFFFD\";\n\t\t\t\t}\n\n\t\t\t\t// Control characters and (dependent upon position) numbers get escaped as code points\n\t\t\t\treturn (\n\t\t\t\t\tch.slice(0, -1) +\n\t\t\t\t\t\"\\\\\" +\n\t\t\t\t\tch.charCodeAt(ch.length - 1).toString(16) +\n\t\t\t\t\t\" \"\n\t\t\t\t);\n\t\t\t}\n\n\t\t\t// Other potentially-special ASCII characters get backslash-escaped\n\t\t\treturn \"\\\\\" + ch;\n\t\t},\n\t\t// Used for iframes\n\t\t// See setDocument()\n\t\t// Removing the function wrapper causes a \"Permission Denied\"\n\t\t// error in IE\n\t\tunloadHandler = function () {\n\t\t\tsetDocument();\n\t\t},\n\t\tinDisabledFieldset = addCombinator(\n\t\t\tfunction (elem) {\n\t\t\t\treturn (\n\t\t\t\t\telem.disabled === true && elem.nodeName.toLowerCase() === \"fieldset\"\n\t\t\t\t);\n\t\t\t},\n\t\t\t{ dir: \"parentNode\", next: \"legend\" }\n\t\t);\n\n\t// Optimize for push.apply( _, NodeList )\n\ttry {\n\t\tpush.apply(\n\t\t\t(arr = slice.call(preferredDoc.childNodes)),\n\t\t\tpreferredDoc.childNodes\n\t\t);\n\n\t\t// Support: Android<4.0\n\t\t// Detect silently failing push.apply\n\t\t// eslint-disable-next-line no-unused-expressions\n\t\tarr[preferredDoc.childNodes.length].nodeType;\n\t} catch (e) {\n\t\tpush = {\n\t\t\tapply: arr.length\n\t\t\t\t? // Leverage slice if possible\n\t\t\t\t function (target, els) {\n\t\t\t\t\t\tpushNative.apply(target, slice.call(els));\n\t\t\t\t }\n\t\t\t\t: // Support: IE<9\n\t\t\t\t // Otherwise append directly\n\t\t\t\t function (target, els) {\n\t\t\t\t\t\tvar j = target.length,\n\t\t\t\t\t\t\ti = 0;\n\n\t\t\t\t\t\t// Can't trust NodeList.length\n\t\t\t\t\t\twhile ((target[j++] = els[i++])) {}\n\t\t\t\t\t\ttarget.length = j - 1;\n\t\t\t\t },\n\t\t};\n\t}\n\n\tfunction Sizzle(selector, context, results, seed) {\n\t\tvar m,\n\t\t\ti,\n\t\t\telem,\n\t\t\tnid,\n\t\t\tmatch,\n\t\t\tgroups,\n\t\t\tnewSelector,\n\t\t\tnewContext = context && context.ownerDocument,\n\t\t\t// nodeType defaults to 9, since context defaults to document\n\t\t\tnodeType = context ? context.nodeType : 9;\n\n\t\tresults = results || [];\n\n\t\t// Return early from calls with invalid selector or context\n\t\tif (\n\t\t\ttypeof selector !== \"string\" ||\n\t\t\t!selector ||\n\t\t\t(nodeType !== 1 && nodeType !== 9 && nodeType !== 11)\n\t\t) {\n\t\t\treturn results;\n\t\t}\n\n\t\t// Try to shortcut find operations (as opposed to filters) in HTML documents\n\t\tif (!seed) {\n\t\t\tsetDocument(context);\n\t\t\tcontext = context || document;\n\n\t\t\tif (documentIsHTML) {\n\t\t\t\t// If the selector is sufficiently simple, try using a \"get*By*\" DOM method\n\t\t\t\t// (excepting DocumentFragment context, where the methods don't exist)\n\t\t\t\tif (nodeType !== 11 && (match = rquickExpr.exec(selector))) {\n\t\t\t\t\t// ID selector\n\t\t\t\t\tif ((m = match[1])) {\n\t\t\t\t\t\t// Document context\n\t\t\t\t\t\tif (nodeType === 9) {\n\t\t\t\t\t\t\tif ((elem = context.getElementById(m))) {\n\t\t\t\t\t\t\t\t// Support: IE, Opera, Webkit\n\t\t\t\t\t\t\t\t// TODO: identify versions\n\t\t\t\t\t\t\t\t// getElementById can match elements by name instead of ID\n\t\t\t\t\t\t\t\tif (elem.id === m) {\n\t\t\t\t\t\t\t\t\tresults.push(elem);\n\t\t\t\t\t\t\t\t\treturn results;\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t\treturn results;\n\t\t\t\t\t\t\t}\n\n\t\t\t\t\t\t\t// Element context\n\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t// Support: IE, Opera, Webkit\n\t\t\t\t\t\t\t// TODO: identify versions\n\t\t\t\t\t\t\t// getElementById can match elements by name instead of ID\n\t\t\t\t\t\t\tif (\n\t\t\t\t\t\t\t\tnewContext &&\n\t\t\t\t\t\t\t\t(elem = newContext.getElementById(m)) &&\n\t\t\t\t\t\t\t\tcontains(context, elem) &&\n\t\t\t\t\t\t\t\telem.id === m\n\t\t\t\t\t\t\t) {\n\t\t\t\t\t\t\t\tresults.push(elem);\n\t\t\t\t\t\t\t\treturn results;\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\n\t\t\t\t\t\t// Type selector\n\t\t\t\t\t} else if (match[2]) {\n\t\t\t\t\t\tpush.apply(results, context.getElementsByTagName(selector));\n\t\t\t\t\t\treturn results;\n\n\t\t\t\t\t\t// Class selector\n\t\t\t\t\t} else if (\n\t\t\t\t\t\t(m = match[3]) &&\n\t\t\t\t\t\tsupport.getElementsByClassName &&\n\t\t\t\t\t\tcontext.getElementsByClassName\n\t\t\t\t\t) {\n\t\t\t\t\t\tpush.apply(results, context.getElementsByClassName(m));\n\t\t\t\t\t\treturn results;\n\t\t\t\t\t}\n\t\t\t\t}\n\n\t\t\t\t// Take advantage of querySelectorAll\n\t\t\t\tif (\n\t\t\t\t\tsupport.qsa &&\n\t\t\t\t\t!nonnativeSelectorCache[selector + \" \"] &&\n\t\t\t\t\t(!rbuggyQSA || !rbuggyQSA.test(selector)) &&\n\t\t\t\t\t// Support: IE 8 only\n\t\t\t\t\t// Exclude object elements\n\t\t\t\t\t(nodeType !== 1 || context.nodeName.toLowerCase() !== \"object\")\n\t\t\t\t) {\n\t\t\t\t\tnewSelector = selector;\n\t\t\t\t\tnewContext = context;\n\n\t\t\t\t\t// qSA considers elements outside a scoping root when evaluating child or\n\t\t\t\t\t// descendant combinators, which is not what we want.\n\t\t\t\t\t// In such cases, we work around the behavior by prefixing every selector in the\n\t\t\t\t\t// list with an ID selector referencing the scope context.\n\t\t\t\t\t// The technique has to be used as well when a leading combinator is used\n\t\t\t\t\t// as such selectors are not recognized by querySelectorAll.\n\t\t\t\t\t// Thanks to Andrew Dupont for this technique.\n\t\t\t\t\tif (\n\t\t\t\t\t\tnodeType === 1 &&\n\t\t\t\t\t\t(rdescend.test(selector) || rcombinators.test(selector))\n\t\t\t\t\t) {\n\t\t\t\t\t\t// Expand context for sibling selectors\n\t\t\t\t\t\tnewContext =\n\t\t\t\t\t\t\t(rsibling.test(selector) && testContext(context.parentNode)) ||\n\t\t\t\t\t\t\tcontext;\n\n\t\t\t\t\t\t// We can use :scope instead of the ID hack if the browser\n\t\t\t\t\t\t// supports it & if we're not changing the context.\n\t\t\t\t\t\tif (newContext !== context || !support.scope) {\n\t\t\t\t\t\t\t// Capture the context ID, setting it first if necessary\n\t\t\t\t\t\t\tif ((nid = context.getAttribute(\"id\"))) {\n\t\t\t\t\t\t\t\tnid = nid.replace(rcssescape, fcssescape);\n\t\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t\tcontext.setAttribute(\"id\", (nid = expando));\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\n\t\t\t\t\t\t// Prefix every selector in the list\n\t\t\t\t\t\tgroups = tokenize(selector);\n\t\t\t\t\t\ti = groups.length;\n\t\t\t\t\t\twhile (i--) {\n\t\t\t\t\t\t\tgroups[i] =\n\t\t\t\t\t\t\t\t(nid ? \"#\" + nid : \":scope\") + \" \" + toSelector(groups[i]);\n\t\t\t\t\t\t}\n\t\t\t\t\t\tnewSelector = groups.join(\",\");\n\t\t\t\t\t}\n\n\t\t\t\t\ttry {\n\t\t\t\t\t\tpush.apply(results, newContext.querySelectorAll(newSelector));\n\t\t\t\t\t\treturn results;\n\t\t\t\t\t} catch (qsaError) {\n\t\t\t\t\t\tnonnativeSelectorCache(selector, true);\n\t\t\t\t\t} finally {\n\t\t\t\t\t\tif (nid === expando) {\n\t\t\t\t\t\t\tcontext.removeAttribute(\"id\");\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\t// All others\n\t\treturn select(selector.replace(rtrim, \"$1\"), context, results, seed);\n\t}\n\n\t/**\n\t * Create key-value caches of limited size\n\t * @returns {function(string, object)} Returns the Object data after storing it on itself with\n\t *\tproperty name the (space-suffixed) string and (if the cache is larger than Expr.cacheLength)\n\t *\tdeleting the oldest entry\n\t */\n\tfunction createCache() {\n\t\tvar keys = [];\n\n\t\tfunction cache(key, value) {\n\t\t\t// Use (key + \" \") to avoid collision with native prototype properties (see Issue #157)\n\t\t\tif (keys.push(key + \" \") > Expr.cacheLength) {\n\t\t\t\t// Only keep the most recent entries\n\t\t\t\tdelete cache[keys.shift()];\n\t\t\t}\n\t\t\treturn (cache[key + \" \"] = value);\n\t\t}\n\t\treturn cache;\n\t}\n\n\t/**\n\t * Mark a function for special use by Sizzle\n\t * @param {Function} fn The function to mark\n\t */\n\tfunction markFunction(fn) {\n\t\tfn[expando] = true;\n\t\treturn fn;\n\t}\n\n\t/**\n\t * Support testing using an element\n\t * @param {Function} fn Passed the created element and returns a boolean result\n\t */\n\tfunction assert(fn) {\n\t\t// deno-dom: we don't need to assert anything\n\t\treturn true;\n\n\t\tvar el = document.createElement(\"fieldset\");\n\n\t\ttry {\n\t\t\treturn !!fn(el);\n\t\t} catch (e) {\n\t\t\treturn false;\n\t\t} finally {\n\t\t\t// Remove from its parent by default\n\t\t\tif (el.parentNode) {\n\t\t\t\tel.parentNode.removeChild(el);\n\t\t\t}\n\n\t\t\t// release memory in IE\n\t\t\tel = null;\n\t\t}\n\t}\n\n\t/**\n\t * Adds the same handler for all of the specified attrs\n\t * @param {String} attrs Pipe-separated list of attributes\n\t * @param {Function} handler The method that will be applied\n\t */\n\tfunction addHandle(attrs, handler) {\n\t\tvar arr = attrs.split(\"|\"),\n\t\t\ti = arr.length;\n\n\t\twhile (i--) {\n\t\t\tExpr.attrHandle[arr[i]] = handler;\n\t\t}\n\t}\n\n\t/**\n\t * Checks document order of two siblings\n\t * @param {Element} a\n\t * @param {Element} b\n\t * @returns {Number} Returns less than 0 if a precedes b, greater than 0 if a follows b\n\t */\n\tfunction siblingCheck(a, b) {\n\t\tvar cur = b && a,\n\t\t\tdiff =\n\t\t\t\tcur &&\n\t\t\t\ta.nodeType === 1 &&\n\t\t\t\tb.nodeType === 1 &&\n\t\t\t\ta.sourceIndex - b.sourceIndex;\n\n\t\t// Use IE sourceIndex if available on both nodes\n\t\tif (diff) {\n\t\t\treturn diff;\n\t\t}\n\n\t\t// Check if b follows a\n\t\tif (cur) {\n\t\t\twhile ((cur = cur.nextSibling)) {\n\t\t\t\tif (cur === b) {\n\t\t\t\t\treturn -1;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\treturn a ? 1 : -1;\n\t}\n\n\t/**\n\t * Returns a function to use in pseudos for input types\n\t * @param {String} type\n\t */\n\tfunction createInputPseudo(type) {\n\t\treturn function (elem) {\n\t\t\tvar name = elem.nodeName.toLowerCase();\n\t\t\treturn name === \"input\" && elem.type === type;\n\t\t};\n\t}\n\n\t/**\n\t * Returns a function to use in pseudos for buttons\n\t * @param {String} type\n\t */\n\tfunction createButtonPseudo(type) {\n\t\treturn function (elem) {\n\t\t\tvar name = elem.nodeName.toLowerCase();\n\t\t\treturn (name === \"input\" || name === \"button\") && elem.type === type;\n\t\t};\n\t}\n\n\t/**\n\t * Returns a function to use in pseudos for :enabled/:disabled\n\t * @param {Boolean} disabled true for :disabled; false for :enabled\n\t */\n\tfunction createDisabledPseudo(disabled) {\n\t\t// Known :disabled false positives: fieldset[disabled] > legend:nth-of-type(n+2) :can-disable\n\t\treturn function (elem) {\n\t\t\t// Only certain elements can match :enabled or :disabled\n\t\t\t// https://html.spec.whatwg.org/multipage/scripting.html#selector-enabled\n\t\t\t// https://html.spec.whatwg.org/multipage/scripting.html#selector-disabled\n\t\t\tif (\"form\" in elem) {\n\t\t\t\t// Check for inherited disabledness on relevant non-disabled elements:\n\t\t\t\t// * listed form-associated elements in a disabled fieldset\n\t\t\t\t// https://html.spec.whatwg.org/multipage/forms.html#category-listed\n\t\t\t\t// https://html.spec.whatwg.org/multipage/forms.html#concept-fe-disabled\n\t\t\t\t// * option elements in a disabled optgroup\n\t\t\t\t// https://html.spec.whatwg.org/multipage/forms.html#concept-option-disabled\n\t\t\t\t// All such elements have a \"form\" property.\n\t\t\t\tif (elem.parentNode && elem.disabled === false) {\n\t\t\t\t\t// Option elements defer to a parent optgroup if present\n\t\t\t\t\tif (\"label\" in elem) {\n\t\t\t\t\t\tif (\"label\" in elem.parentNode) {\n\t\t\t\t\t\t\treturn elem.parentNode.disabled === disabled;\n\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\treturn elem.disabled === disabled;\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\n\t\t\t\t\t// Support: IE 6 - 11\n\t\t\t\t\t// Use the isDisabled shortcut property to check for disabled fieldset ancestors\n\t\t\t\t\treturn (\n\t\t\t\t\t\telem.isDisabled === disabled ||\n\t\t\t\t\t\t// Where there is no isDisabled, check manually\n\t\t\t\t\t\t/* jshint -W018 */\n\t\t\t\t\t\t(elem.isDisabled !== !disabled &&\n\t\t\t\t\t\t\tinDisabledFieldset(elem) === disabled)\n\t\t\t\t\t);\n\t\t\t\t}\n\n\t\t\t\treturn elem.disabled === disabled;\n\n\t\t\t\t// Try to winnow out elements that can't be disabled before trusting the disabled property.\n\t\t\t\t// Some victims get caught in our net (label, legend, menu, track), but it shouldn't\n\t\t\t\t// even exist on them, let alone have a boolean value.\n\t\t\t} else if (\"label\" in elem) {\n\t\t\t\treturn elem.disabled === disabled;\n\t\t\t}\n\n\t\t\t// Remaining elements are neither :enabled nor :disabled\n\t\t\treturn false;\n\t\t};\n\t}\n\n\t/**\n\t * Returns a function to use in pseudos for positionals\n\t * @param {Function} fn\n\t */\n\tfunction createPositionalPseudo(fn) {\n\t\treturn markFunction(function (argument) {\n\t\t\targument = +argument;\n\t\t\treturn markFunction(function (seed, matches) {\n\t\t\t\tvar j,\n\t\t\t\t\tmatchIndexes = fn([], seed.length, argument),\n\t\t\t\t\ti = matchIndexes.length;\n\n\t\t\t\t// Match elements found at the specified indexes\n\t\t\t\twhile (i--) {\n\t\t\t\t\tif (seed[(j = matchIndexes[i])]) {\n\t\t\t\t\t\tseed[j] = !(matches[j] = seed[j]);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t});\n\t\t});\n\t}\n\n\t/**\n\t * Checks a node for validity as a Sizzle context\n\t * @param {Element|Object=} context\n\t * @returns {Element|Object|Boolean} The input node if acceptable, otherwise a falsy value\n\t */\n\tfunction testContext(context) {\n\t\treturn (\n\t\t\tcontext && typeof context.getElementsByTagName !== \"undefined\" && context\n\t\t);\n\t}\n\n\t// Expose support vars for convenience\n\tsupport = Sizzle.support = {};\n\n\t/**\n\t * Detects XML nodes\n\t * @param {Element|Object} elem An element or a document\n\t * @returns {Boolean} True iff elem is a non-HTML XML node\n\t */\n\tisXML = Sizzle.isXML = function (elem) {\n\t\tvar namespace = elem && elem.namespaceURI,\n\t\t\tdocElem = elem && (elem.ownerDocument || elem).documentElement;\n\n\t\t// Support: IE <=8\n\t\t// Assume HTML when documentElement doesn't yet exist, such as inside loading iframes\n\t\t// https://bugs.jquery.com/ticket/4833\n\t\treturn !rhtml.test(namespace || (docElem && docElem.nodeName) || \"HTML\");\n\t};\n\n\t/**\n\t * Sets document-related variables once based on the current document\n\t * @param {Element|Object} [doc] An element or document object to use to set the document\n\t * @returns {Object} Returns the current document\n\t */\n\tsetDocument = Sizzle.setDocument = function (node) {\n\t\tvar hasCompare,\n\t\t\tsubWindow,\n\t\t\tdoc = node ? node.ownerDocument || node : preferredDoc;\n\n\t\t// Return early if doc is invalid or already selected\n\t\t// Support: IE 11+, Edge 17 - 18+\n\t\t// IE/Edge sometimes throw a \"Permission denied\" error when strict-comparing\n\t\t// two documents; shallow comparisons work.\n\t\t// eslint-disable-next-line eqeqeq\n\t\tif (doc == document || doc.nodeType !== 9 || !doc.documentElement) {\n\t\t\treturn document;\n\t\t}\n\n\t\t// Update global variables\n\t\tdocument = doc;\n\t\tdocElem = document.documentElement;\n\t\tdocumentIsHTML = !isXML(document);\n\n\t\t// Support: IE 9 - 11+, Edge 12 - 18+\n\t\t// Accessing iframe documents after unload throws \"permission denied\" errors (jQuery #13936)\n\t\t// Support: IE 11+, Edge 17 - 18+\n\t\t// IE/Edge sometimes throw a \"Permission denied\" error when strict-comparing\n\t\t// two documents; shallow comparisons work.\n\t\t// eslint-disable-next-line eqeqeq\n\t\tif (\n\t\t\tpreferredDoc != document &&\n\t\t\t(subWindow = document.defaultView) &&\n\t\t\tsubWindow.top !== subWindow\n\t\t) {\n\t\t\t// Support: IE 11, Edge\n\t\t\tif (subWindow.addEventListener) {\n\t\t\t\tsubWindow.addEventListener(\"unload\", unloadHandler, false);\n\n\t\t\t\t// Support: IE 9 - 10 only\n\t\t\t} else if (subWindow.attachEvent) {\n\t\t\t\tsubWindow.attachEvent(\"onunload\", unloadHandler);\n\t\t\t}\n\t\t}\n\n\t\t// Support: IE 8 - 11+, Edge 12 - 18+, Chrome <=16 - 25 only, Firefox <=3.6 - 31 only,\n\t\t// Safari 4 - 5 only, Opera <=11.6 - 12.x only\n\t\t// IE/Edge & older browsers don't support the :scope pseudo-class.\n\t\t// Support: Safari 6.0 only\n\t\t// Safari 6.0 supports :scope but it's an alias of :root there.\n\t\tsupport.scope = assert(function (el) {\n\t\t\tdocElem.appendChild(el).appendChild(document.createElement(\"div\"));\n\t\t\treturn (\n\t\t\t\ttypeof el.querySelectorAll !== \"undefined\" &&\n\t\t\t\t!el.querySelectorAll(\":scope fieldset div\").length\n\t\t\t);\n\t\t});\n\n\t\t/* Attributes\n\t---------------------------------------------------------------------- */\n\n\t\t// Support: IE<8\n\t\t// Verify that getAttribute really returns attributes and not properties\n\t\t// (excepting IE8 booleans)\n\t\tsupport.attributes = assert(function (el) {\n\t\t\tel.className = \"i\";\n\t\t\treturn !el.getAttribute(\"className\");\n\t\t});\n\n\t\t/* getElement(s)By*\n\t---------------------------------------------------------------------- */\n\n\t\t// Check if getElementsByTagName(\"*\") returns only elements\n\t\tsupport.getElementsByTagName = assert(function (el) {\n\t\t\tel.appendChild(document.createComment(\"\"));\n\t\t\treturn !el.getElementsByTagName(\"*\").length;\n\t\t});\n\n\t\t// Support: IE<9\n\t\tsupport.getElementsByClassName = rnative.test(\n\t\t\tdocument.getElementsByClassName\n\t\t);\n\n\t\t// Support: IE<10\n\t\t// Check if getElementById returns elements by name\n\t\t// The broken getElementById methods don't pick up programmatically-set names,\n\t\t// so use a roundabout getElementsByName test\n\t\tsupport.getById = assert(function (el) {\n\t\t\tdocElem.appendChild(el).id = expando;\n\t\t\treturn (\n\t\t\t\t!document.getElementsByName ||\n\t\t\t\t!document.getElementsByName(expando).length\n\t\t\t);\n\t\t});\n\n\t\t// ID filter and find\n\t\tif (support.getById) {\n\t\t\tExpr.filter[\"ID\"] = function (id) {\n\t\t\t\tvar attrId = id.replace(runescape, funescape);\n\t\t\t\treturn function (elem) {\n\t\t\t\t\treturn elem.getAttribute(\"id\") === attrId;\n\t\t\t\t};\n\t\t\t};\n\t\t\tExpr.find[\"ID\"] = function (id, context) {\n\t\t\t\tif (typeof context.getElementById !== \"undefined\" && documentIsHTML) {\n\t\t\t\t\tvar elem = context.getElementById(id);\n\t\t\t\t\treturn elem ? [elem] : [];\n\t\t\t\t}\n\t\t\t};\n\t\t} else {\n\t\t\tExpr.filter[\"ID\"] = function (id) {\n\t\t\t\tvar attrId = id.replace(runescape, funescape);\n\t\t\t\treturn function (elem) {\n\t\t\t\t\tvar node =\n\t\t\t\t\t\ttypeof elem.getAttributeNode !== \"undefined\" &&\n\t\t\t\t\t\telem.getAttributeNode(\"id\");\n\t\t\t\t\treturn node && node.value === attrId;\n\t\t\t\t};\n\t\t\t};\n\n\t\t\t// Support: IE 6 - 7 only\n\t\t\t// getElementById is not reliable as a find shortcut\n\t\t\tExpr.find[\"ID\"] = function (id, context) {\n\t\t\t\tif (typeof context.getElementById !== \"undefined\" && documentIsHTML) {\n\t\t\t\t\tvar node,\n\t\t\t\t\t\ti,\n\t\t\t\t\t\telems,\n\t\t\t\t\t\telem = context.getElementById(id);\n\n\t\t\t\t\tif (elem) {\n\t\t\t\t\t\t// Verify the id attribute\n\t\t\t\t\t\tnode = elem.getAttributeNode(\"id\");\n\t\t\t\t\t\tif (node && node.value === id) {\n\t\t\t\t\t\t\treturn [elem];\n\t\t\t\t\t\t}\n\n\t\t\t\t\t\t// Fall back on getElementsByName\n\t\t\t\t\t\telems = context.getElementsByName(id);\n\t\t\t\t\t\ti = 0;\n\t\t\t\t\t\twhile ((elem = elems[i++])) {\n\t\t\t\t\t\t\tnode = elem.getAttributeNode(\"id\");\n\t\t\t\t\t\t\tif (node && node.value === id) {\n\t\t\t\t\t\t\t\treturn [elem];\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\n\t\t\t\t\treturn [];\n\t\t\t\t}\n\t\t\t};\n\t\t}\n\n\t\t// Tag\n\t\tExpr.find[\"TAG\"] = support.getElementsByTagName\n\t\t\t? function (tag, context) {\n\t\t\t\t\tif (typeof context.getElementsByTagName !== \"undefined\") {\n\t\t\t\t\t\treturn context.getElementsByTagName(tag);\n\n\t\t\t\t\t} else if (context[customByTagNameSym]) {\n\t\t\t\t\t\t// deno-dom: use DocumentFragment's custom API\n\t\t\t\t\t\treturn context[customByTagNameSym](tag);\n\n\t\t\t\t\t\t// DocumentFragment nodes don't have gEBTN\n\t\t\t\t\t} else if (support.qsa) {\n\t\t\t\t\t\treturn context.querySelectorAll(tag);\n\t\t\t\t\t}\n\t\t\t }\n\t\t\t: function (tag, context) {\n\t\t\t\t\tvar elem,\n\t\t\t\t\t\ttmp = [],\n\t\t\t\t\t\ti = 0,\n\t\t\t\t\t\t// By happy coincidence, a (broken) gEBTN appears on DocumentFragment nodes too\n\t\t\t\t\t\tresults = context.getElementsByTagName(tag);\n\n\t\t\t\t\t// Filter out possible comments\n\t\t\t\t\tif (tag === \"*\") {\n\t\t\t\t\t\twhile ((elem = results[i++])) {\n\t\t\t\t\t\t\tif (elem.nodeType === 1) {\n\t\t\t\t\t\t\t\ttmp.push(elem);\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\n\t\t\t\t\t\treturn tmp;\n\t\t\t\t\t}\n\t\t\t\t\treturn results;\n\t\t\t };\n\n\t\t// Class\n\t\tExpr.find[\"CLASS\"] =\n\t\t\tsupport.getElementsByClassName &&\n\t\t\tfunction (className, context) {\n\t\t\t\tif (\n\t\t\t\t\ttypeof context.getElementsByClassName !== \"undefined\" &&\n\t\t\t\t\tdocumentIsHTML\n\t\t\t\t) {\n\t\t\t\t\treturn context.getElementsByClassName(className);\n\t\t\t\t} else if (context[customByClassNameSym]) {\n\t\t\t\t\t// deno-dom: use DocumentFragment's custom API\n\t\t\t\t\treturn context[customByClassNameSym](className);\n\t\t\t\t}\n\t\t\t};\n\n\t\t/* QSA/matchesSelector\n\t---------------------------------------------------------------------- */\n\n\t\t// QSA and matchesSelector support\n\n\t\t// matchesSelector(:active) reports false when true (IE9/Opera 11.5)\n\t\trbuggyMatches = [];\n\n\t\t// qSa(:focus) reports false when true (Chrome 21)\n\t\t// We allow this because of a bug in IE8/9 that throws an error\n\t\t// whenever `document.activeElement` is accessed on an iframe\n\t\t// So, we allow :focus to pass through QSA all the time to avoid the IE error\n\t\t// See https://bugs.jquery.com/ticket/13378\n\t\trbuggyQSA = [];\n\n\t\tif ((support.qsa = rnative.test(document.querySelectorAll))) {\n\t\t\t// Build QSA regex\n\t\t\t// Regex strategy adopted from Diego Perini\n\t\t\tassert(function (el) {\n\t\t\t\tvar input;\n\n\t\t\t\t// Select is set to empty string on purpose\n\t\t\t\t// This is to test IE's treatment of not explicitly\n\t\t\t\t// setting a boolean content attribute,\n\t\t\t\t// since its presence should be enough\n\t\t\t\t// https://bugs.jquery.com/ticket/12359\n\t\t\t\tdocElem.appendChild(el).innerHTML =\n\t\t\t\t\t\"<a id='\" +\n\t\t\t\t\texpando +\n\t\t\t\t\t\"'></a>\" +\n\t\t\t\t\t\"<select id='\" +\n\t\t\t\t\texpando +\n\t\t\t\t\t\"-\\r\\\\' msallowcapture=''>\" +\n\t\t\t\t\t\"<option selected=''></option></select>\";\n\n\t\t\t\t// Support: IE8, Opera 11-12.16\n\t\t\t\t// Nothing should be selected when empty strings follow ^= or $= or *=\n\t\t\t\t// The test attribute must be unknown in Opera but \"safe\" for WinRT\n\t\t\t\t// https://msdn.microsoft.com/en-us/library/ie/hh465388.aspx#attribute_section\n\t\t\t\tif (el.querySelectorAll(\"[msallowcapture^='']\").length) {\n\t\t\t\t\trbuggyQSA.push(\"[*^$]=\" + whitespace + \"*(?:''|\\\"\\\")\");\n\t\t\t\t}\n\n\t\t\t\t// Support: IE8\n\t\t\t\t// Boolean attributes and \"value\" are not treated correctly\n\t\t\t\tif (!el.querySelectorAll(\"[selected]\").length) {\n\t\t\t\t\trbuggyQSA.push(\"\\\\[\" + whitespace + \"*(?:value|\" + booleans + \")\");\n\t\t\t\t}\n\n\t\t\t\t// Support: Chrome<29, Android<4.4, Safari<7.0+, iOS<7.0+, PhantomJS<1.9.8+\n\t\t\t\tif (!el.querySelectorAll(\"[id~=\" + expando + \"-]\").length) {\n\t\t\t\t\trbuggyQSA.push(\"~=\");\n\t\t\t\t}\n\n\t\t\t\t// Support: IE 11+, Edge 15 - 18+\n\t\t\t\t// IE 11/Edge don't find elements on a `[name='']` query in some cases.\n\t\t\t\t// Adding a temporary attribute to the document before the selection works\n\t\t\t\t// around the issue.\n\t\t\t\t// Interestingly, IE 10 & older don't seem to have the issue.\n\t\t\t\tinput = document.createElement(\"input\");\n\t\t\t\tinput.setAttribute(\"name\", \"\");\n\t\t\t\tel.appendChild(input);\n\t\t\t\tif (!el.querySelectorAll(\"[name='']\").length) {\n\t\t\t\t\trbuggyQSA.push(\n\t\t\t\t\t\t\"\\\\[\" +\n\t\t\t\t\t\t\twhitespace +\n\t\t\t\t\t\t\t\"*name\" +\n\t\t\t\t\t\t\twhitespace +\n\t\t\t\t\t\t\t\"*=\" +\n\t\t\t\t\t\t\twhitespace +\n\t\t\t\t\t\t\t\"*(?:''|\\\"\\\")\"\n\t\t\t\t\t);\n\t\t\t\t}\n\n\t\t\t\t// Webkit/Opera - :checked should return selected option elements\n\t\t\t\t// http://www.w3.org/TR/2011/REC-css3-selectors-20110929/#checked\n\t\t\t\t// IE8 throws error here and will not see later tests\n\t\t\t\tif (!el.querySelectorAll(\":checked\").length) {\n\t\t\t\t\trbuggyQSA.push(\":checked\");\n\t\t\t\t}\n\n\t\t\t\t// Support: Safari 8+, iOS 8+\n\t\t\t\t// https://bugs.webkit.org/show_bug.cgi?id=136851\n\t\t\t\t// In-page `selector#id sibling-combinator selector` fails\n\t\t\t\tif (!el.querySelectorAll(\"a#\" + expando + \"+*\").length) {\n\t\t\t\t\trbuggyQSA.push(\".#.+[+~]\");\n\t\t\t\t}\n\n\t\t\t\t// Support: Firefox <=3.6 - 5 only\n\t\t\t\t// Old Firefox doesn't throw on a badly-escaped identifier.\n\t\t\t\tel.querySelectorAll(\"\\\\\\f\");\n\t\t\t\trbuggyQSA.push(\"[\\\\r\\\\n\\\\f]\");\n\t\t\t});\n\n\t\t\tassert(function (el) {\n\t\t\t\tel.innerHTML =\n\t\t\t\t\t\"<a href='' disabled='disabled'></a>\" +\n\t\t\t\t\t\"<select disabled='disabled'><option/></select>\";\n\n\t\t\t\t// Support: Windows 8 Native Apps\n\t\t\t\t// The type and name attributes are restricted during .innerHTML assignment\n\t\t\t\tvar input = document.createElement(\"input\");\n\t\t\t\tinput.setAttribute(\"type\", \"hidden\");\n\t\t\t\tel.appendChild(input).setAttribute(\"name\", \"D\");\n\n\t\t\t\t// Support: IE8\n\t\t\t\t// Enforce case-sensitivity of name attribute\n\t\t\t\tif (el.querySelectorAll(\"[name=d]\").length) {\n\t\t\t\t\trbuggyQSA.push(\"name\" + whitespace + \"*[*^$|!~]?=\");\n\t\t\t\t}\n\n\t\t\t\t// FF 3.5 - :enabled/:disabled and hidden elements (hidden elements are still enabled)\n\t\t\t\t// IE8 throws error here and will not see later tests\n\t\t\t\tif (el.querySelectorAll(\":enabled\").length !== 2) {\n\t\t\t\t\trbuggyQSA.push(\":enabled\", \":disabled\");\n\t\t\t\t}\n\n\t\t\t\t// Support: IE9-11+\n\t\t\t\t// IE's :disabled selector does not pick up the children of disabled fieldsets\n\t\t\t\tdocElem.appendChild(el).disabled = true;\n\t\t\t\tif (el.querySelectorAll(\":disabled\").length !== 2) {\n\t\t\t\t\trbuggyQSA.push(\":enabled\", \":disabled\");\n\t\t\t\t}\n\n\t\t\t\t// Support: Opera 10 - 11 only\n\t\t\t\t// Opera 10-11 does not throw on post-comma invalid pseudos\n\t\t\t\tel.querySelectorAll(\"*,:x\");\n\t\t\t\trbuggyQSA.push(\",.*:\");\n\t\t\t});\n\t\t}\n\n\t\tif (\n\t\t\t(support.matchesSelector = rnative.test(\n\t\t\t\t(matches =\n\t\t\t\t\tdocElem.matches ||\n\t\t\t\t\tdocElem.webkitMatchesSelector ||\n\t\t\t\t\tdocElem.mozMatchesSelector ||\n\t\t\t\t\tdocElem.oMatchesSelector ||\n\t\t\t\t\tdocElem.msMatchesSelector)\n\t\t\t))\n\t\t) {\n\t\t\tassert(function (el) {\n\t\t\t\t// Check to see if it's possible to do matchesSelector\n\t\t\t\t// on a disconnected node (IE 9)\n\t\t\t\tsupport.disconnectedMatch = matches.call(el, \"*\");\n\n\t\t\t\t// This should fail with an exception\n\t\t\t\t// Gecko does not error, returns false instead\n\t\t\t\tmatches.call(el, \"[s!='']:x\");\n\t\t\t\trbuggyMatches.push(\"!=\", pseudos);\n\t\t\t});\n\t\t}\n\n\t\trbuggyQSA = rbuggyQSA.length && new RegExp(rbuggyQSA.join(\"|\"));\n\t\trbuggyMatches = rbuggyMatches.length && new RegExp(rbuggyMatches.join(\"|\"));\n\n\t\t/* Contains\n\t---------------------------------------------------------------------- */\n\t\thasCompare = rnative.test(docElem.compareDocumentPosition);\n\n\t\t// Element contains another\n\t\t// Purposefully self-exclusive\n\t\t// As in, an element does not contain itself\n\t\tcontains =\n\t\t\thasCompare || rnative.test(docElem.contains)\n\t\t\t\t? function (a, b) {\n\t\t\t\t\t\tvar adown = a.nodeType === 9 ? a.documentElement : a,\n\t\t\t\t\t\t\tbup = b && b.parentNode;\n\t\t\t\t\t\treturn (\n\t\t\t\t\t\t\ta === bup ||\n\t\t\t\t\t\t\t!!(\n\t\t\t\t\t\t\t\tbup &&\n\t\t\t\t\t\t\t\tbup.nodeType === 1 &&\n\t\t\t\t\t\t\t\t(adown.contains\n\t\t\t\t\t\t\t\t\t? adown.contains(bup)\n\t\t\t\t\t\t\t\t\t: a.compareDocumentPosition &&\n\t\t\t\t\t\t\t\t\t a.compareDocumentPosition(bup) & 16)\n\t\t\t\t\t\t\t)\n\t\t\t\t\t\t);\n\t\t\t\t }\n\t\t\t\t: function (a, b) {\n\t\t\t\t\t\tif (b) {\n\t\t\t\t\t\t\twhile ((b = b.parentNode)) {\n\t\t\t\t\t\t\t\tif (b === a) {\n\t\t\t\t\t\t\t\t\treturn true;\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t\treturn false;\n\t\t\t\t };\n\n\t\t/* Sorting\n\t---------------------------------------------------------------------- */\n\n\t\t// Document order sorting\n\t\tsortOrder = hasCompare\n\t\t\t? function (a, b) {\n\t\t\t\t\t// Flag for duplicate removal\n\t\t\t\t\tif (a === b) {\n\t\t\t\t\t\thasDuplicate = true;\n\t\t\t\t\t\treturn 0;\n\t\t\t\t\t}\n\n\t\t\t\t\t// Sort on method existence if only one input has compareDocumentPosition\n\t\t\t\t\tvar compare = !a.compareDocumentPosition - !b.compareDocumentPosition;\n\t\t\t\t\tif (compare) {\n\t\t\t\t\t\treturn compare;\n\t\t\t\t\t}\n\n\t\t\t\t\t// Calculate position if both inputs belong to the same document\n\t\t\t\t\t// Support: IE 11+, Edge 17 - 18+\n\t\t\t\t\t// IE/Edge sometimes throw a \"Permission denied\" error when strict-comparing\n\t\t\t\t\t// two documents; shallow comparisons work.\n\t\t\t\t\t// eslint-disable-next-line eqeqeq\n\t\t\t\t\tcompare =\n\t\t\t\t\t\t(a.ownerDocument || a) == (b.ownerDocument || b)\n\t\t\t\t\t\t\t? a.compareDocumentPosition(b)\n\t\t\t\t\t\t\t: // Otherwise we know they are disconnected\n\t\t\t\t\t\t\t 1;\n\n\t\t\t\t\t// Disconnected nodes\n\t\t\t\t\tif (\n\t\t\t\t\t\tcompare & 1 ||\n\t\t\t\t\t\t(!support.sortDetached && b.compareDocumentPosition(a) === compare)\n\t\t\t\t\t) {\n\t\t\t\t\t\t// Choose the first element that is related to our preferred document\n\t\t\t\t\t\t// Support: IE 11+, Edge 17 - 18+\n\t\t\t\t\t\t// IE/Edge sometimes throw a \"Permission denied\" error when strict-comparing\n\t\t\t\t\t\t// two documents; shallow comparisons work.\n\t\t\t\t\t\t// eslint-disable-next-line eqeqeq\n\t\t\t\t\t\tif (\n\t\t\t\t\t\t\ta == document ||\n\t\t\t\t\t\t\t(a.ownerDocument == preferredDoc && contains(preferredDoc, a))\n\t\t\t\t\t\t) {\n\t\t\t\t\t\t\treturn -1;\n\t\t\t\t\t\t}\n\n\t\t\t\t\t\t// Support: IE 11+, Edge 17 - 18+\n\t\t\t\t\t\t// IE/Edge sometimes throw a \"Permission denied\" error when strict-comparing\n\t\t\t\t\t\t// two documents; shallow comparisons work.\n\t\t\t\t\t\t// eslint-disable-next-line eqeqeq\n\t\t\t\t\t\tif (\n\t\t\t\t\t\t\tb == document ||\n\t\t\t\t\t\t\t(b.ownerDocument == preferredDoc && contains(preferredDoc, b))\n\t\t\t\t\t\t) {\n\t\t\t\t\t\t\treturn 1;\n\t\t\t\t\t\t}\n\n\t\t\t\t\t\t// Maintain original order\n\t\t\t\t\t\treturn sortInput\n\t\t\t\t\t\t\t? indexOf(sortInput, a) - indexOf(sortInput, b)\n\t\t\t\t\t\t\t: 0;\n\t\t\t\t\t}\n\n\t\t\t\t\treturn compare & 4 ? -1 : 1;\n\t\t\t }\n\t\t\t: function (a, b) {\n\t\t\t\t\t// Exit early if the nodes are identical\n\t\t\t\t\tif (a === b) {\n\t\t\t\t\t\thasDuplicate = true;\n\t\t\t\t\t\treturn 0;\n\t\t\t\t\t}\n\n\t\t\t\t\tvar cur,\n\t\t\t\t\t\ti = 0,\n\t\t\t\t\t\taup = a.parentNode,\n\t\t\t\t\t\tbup = b.parentNode,\n\t\t\t\t\t\tap = [a],\n\t\t\t\t\t\tbp = [b];\n\n\t\t\t\t\t// Parentless nodes are either documents or disconnected\n\t\t\t\t\tif (!aup || !bup) {\n\t\t\t\t\t\t// Support: IE 11+, Edge 17 - 18+\n\t\t\t\t\t\t// IE/Edge sometimes throw a \"Permission denied\" error when strict-comparing\n\t\t\t\t\t\t// two documents; shallow comparisons work.\n\t\t\t\t\t\t/* eslint-disable eqeqeq */\n\t\t\t\t\t\treturn a == document\n\t\t\t\t\t\t\t? -1\n\t\t\t\t\t\t\t: b == document\n\t\t\t\t\t\t\t? 1\n\t\t\t\t\t\t\t: /* eslint-enable eqeqeq */\n\t\t\t\t\t\t\taup\n\t\t\t\t\t\t\t? -1\n\t\t\t\t\t\t\t: bup\n\t\t\t\t\t\t\t? 1\n\t\t\t\t\t\t\t: sortInput\n\t\t\t\t\t\t\t? indexOf(sortInput, a) - indexOf(sortInput, b)\n\t\t\t\t\t\t\t: 0;\n\n\t\t\t\t\t\t// If the nodes are siblings, we can do a quick check\n\t\t\t\t\t} else if (aup === bup) {\n\t\t\t\t\t\treturn siblingCheck(a, b);\n\t\t\t\t\t}\n\n\t\t\t\t\t// Otherwise we need full lists of their ancestors for comparison\n\t\t\t\t\tcur = a;\n\t\t\t\t\twhile ((cur = cur.parentNode)) {\n\t\t\t\t\t\tap.unshift(cur);\n\t\t\t\t\t}\n\t\t\t\t\tcur = b;\n\t\t\t\t\twhile ((cur = cur.parentNode)) {\n\t\t\t\t\t\tbp.unshift(cur);\n\t\t\t\t\t}\n\n\t\t\t\t\t// Walk down the tree looking for a discrepancy\n\t\t\t\t\twhile (ap[i] === bp[i]) {\n\t\t\t\t\t\ti++;\n\t\t\t\t\t}\n\n\t\t\t\t\treturn i\n\t\t\t\t\t\t? // Do a sibling check if the nodes have a common ancestor\n\t\t\t\t\t\t siblingCheck(ap[i], bp[i])\n\t\t\t\t\t\t: // Otherwise nodes in our document sort first\n\t\t\t\t\t\t// Support: IE 11+, Edge 17 - 18+\n\t\t\t\t\t\t// IE/Edge sometimes throw a \"Permission denied\" error when strict-comparing\n\t\t\t\t\t\t// two documents; shallow comparisons work.\n\t\t\t\t\t\t/* eslint-disable eqeqeq */\n\t\t\t\t\t\tap[i] == preferredDoc\n\t\t\t\t\t\t? -1\n\t\t\t\t\t\t: bp[i] == preferredDoc\n\t\t\t\t\t\t? 1\n\t\t\t\t\t\t: /* eslint-enable eqeqeq */\n\t\t\t\t\t\t 0;\n\t\t\t };\n\n\t\treturn document;\n\t};\n\n\tSizzle.matches = function (expr, elements) {\n\t\treturn Sizzle(expr, null, null, elements);\n\t};\n\n\tSizzle.matchesSelector = function (elem, expr) {\n\t\tsetDocument(elem);\n\n\t\tif (\n\t\t\tsupport.matchesSelector &&\n\t\t\tdocumentIsHTML &&\n\t\t\t!nonnativeSelectorCache[expr + \" \"] &&\n\t\t\t(!rbuggyMatches || !rbuggyMatches.test(expr)) &&\n\t\t\t(!rbuggyQSA || !rbuggyQSA.test(expr))\n\t\t) {\n\t\t\ttry {\n\t\t\t\tvar ret = matches.call(elem, expr);\n\n\t\t\t\t// IE 9's matchesSelector returns false on disconnected nodes\n\t\t\t\tif (\n\t\t\t\t\tret ||\n\t\t\t\t\tsupport.disconnectedMatch ||\n\t\t\t\t\t// As well, disconnected nodes are said to be in a document\n\t\t\t\t\t// fragment in IE 9\n\t\t\t\t\t(elem.document && elem.document.nodeType !== 11)\n\t\t\t\t) {\n\t\t\t\t\treturn ret;\n\t\t\t\t}\n\t\t\t} catch (e) {\n\t\t\t\tnonnativeSelectorCache(expr, true);\n\t\t\t}\n\t\t}\n\n\t\treturn Sizzle(expr, document, null, [elem]).length > 0;\n\t};\n\n\tSizzle.contains = function (context, elem) {\n\t\t// Set document vars if needed\n\t\t// Support: IE 11+, Edge 17 - 18+\n\t\t// IE/Edge sometimes throw a \"Permission denied\" error when strict-comparing\n\t\t// two documents; shallow comparisons work.\n\t\t// eslint-disable-next-line eqeqeq\n\t\tif ((context.ownerDocument || context) != document) {\n\t\t\tsetDocument(context);\n\t\t}\n\t\treturn contains(context, elem);\n\t};\n\n\tSizzle.attr = function (elem, name) {\n\t\t// Set document vars if needed\n\t\t// Support: IE 11+, Edge 17 - 18+\n\t\t// IE/Edge sometimes throw a \"Permission denied\" error when strict-comparing\n\t\t// two documents; shallow comparisons work.\n\t\t// eslint-disable-next-line eqeqeq\n\t\tif ((elem.ownerDocument || elem) != document) {\n\t\t\tsetDocument(elem);\n\t\t}\n\n\t\tvar fn = Expr.attrHandle[name.toLowerCase()],\n\t\t\t// Don't get fooled by Object.prototype properties (jQuery #13807)\n\t\t\tval =\n\t\t\t\tfn && hasOwn.call(Expr.attrHandle, name.toLowerCase())\n\t\t\t\t\t? fn(elem, name, !documentIsHTML)\n\t\t\t\t\t: undefined;\n\n\t\treturn val !== undefined\n\t\t\t? val\n\t\t\t: support.attributes || !documentIsHTML\n\t\t\t? elem.getAttribute(name)\n\t\t\t: (val = elem.getAttributeNode(name)) && val.specified\n\t\t\t? val.value\n\t\t\t: null;\n\t};\n\n\tSizzle.escape = function (sel) {\n\t\treturn (sel + \"\").replace(rcssescape, fcssescape);\n\t};\n\n\tSizzle.error = function (msg) {\n\t\t// throw new Error(\"Syntax error, unrecognized expression: \" + msg);\n\t\t// deno-dom: syntax errors should be DOMExceptions\n\t\tthrow new DOMException(`'${ msg }' is not a valid selector`);\n\t};\n\n\t/**\n\t * Document sorting and removing duplicates\n\t * @param {ArrayLike} results\n\t */\n\tSizzle.uniqueSort = function (results) {\n\t\tvar elem,\n\t\t\tduplicates = [],\n\t\t\tj = 0,\n\t\t\ti = 0;\n\n\t\t// Unless we *know* we can detect duplicates, assume their presence\n\t\thasDuplicate = !support.detectDuplicates;\n\t\tsortInput = !support.sortStable && results.slice(0);\n\t\tresults.sort(sortOrder);\n\n\t\tif (hasDuplicate) {\n\t\t\twhile ((elem = results[i++])) {\n\t\t\t\tif (elem === results[i]) {\n\t\t\t\t\tj = duplicates.push(i);\n\t\t\t\t}\n\t\t\t}\n\t\t\twhile (j--) {\n\t\t\t\tresults.splice(duplicates[j], 1);\n\t\t\t}\n\t\t}\n\n\t\t// Clear input after sorting to release objects\n\t\t// See https://github.com/jquery/sizzle/pull/225\n\t\tsortInput = null;\n\n\t\treturn results;\n\t};\n\n\t/**\n\t * Utility function for retrieving the text value of an array of DOM nodes\n\t * @param {Array|Element} elem\n\t */\n\tgetText = Sizzle.getText = function (elem) {\n\t\tvar node,\n\t\t\tret = \"\",\n\t\t\ti = 0,\n\t\t\tnodeType = elem.nodeType;\n\n\t\tif (!nodeType) {\n\t\t\t// If no nodeType, this is expected to be an array\n\t\t\twhile ((node = elem[i++])) {\n\t\t\t\t// Do not traverse comment nodes\n\t\t\t\tret += getText(node);\n\t\t\t}\n\t\t} else if (nodeType === 1 || nodeType === 9 || nodeType === 11) {\n\t\t\t// Use textContent for elements\n\t\t\t// innerText usage removed for consistency of new lines (jQuery #11153)\n\t\t\tif (typeof elem.textContent === \"string\") {\n\t\t\t\treturn elem.textContent;\n\t\t\t} else {\n\t\t\t\t// Traverse its children\n\t\t\t\tfor (elem = elem.firstChild; elem; elem = elem.nextSibling) {\n\t\t\t\t\tret += getText(elem);\n\t\t\t\t}\n\t\t\t}\n\t\t} else if (nodeType === 3 || nodeType === 4) {\n\t\t\treturn elem.nodeValue;\n\t\t}\n\n\t\t// Do not include comment or processing instruction nodes\n\n\t\treturn ret;\n\t};\n\n\tExpr = Sizzle.selectors = {\n\t\t// Can be adjusted by the user\n\t\tcacheLength: 50,\n\n\t\tcreatePseudo: markFunction,\n\n\t\tmatch: matchExpr,\n\n\t\tattrHandle: {},\n\n\t\tfind: {},\n\n\t\trelative: {\n\t\t\t\">\": { dir: \"parentNode\", first: true },\n\t\t\t\" \": { dir: \"parentNode\" },\n\t\t\t\"+\": { dir: \"previousSibling\", first: true },\n\t\t\t\"~\": { dir: \"previousSibling\" },\n\t\t},\n\n\t\tpreFilter: {\n\t\t\tATTR: function (match) {\n\t\t\t\tmatch[1] = match[1].replace(runescape, funescape);\n\n\t\t\t\t// Move the given value to match[3] whether quoted or unquoted\n\t\t\t\tmatch[3] = (match[3] || match[4] || match[5] || \"\").replace(\n\t\t\t\t\trunescape,\n\t\t\t\t\tfunescape\n\t\t\t\t);\n\n\t\t\t\tif (match[2] === \"~=\") {\n\t\t\t\t\tmatch[3] = \" \" + match[3] + \" \";\n\t\t\t\t}\n\n\t\t\t\treturn match.slice(0, 4);\n\t\t\t},\n\n\t\t\tCHILD: function (match) {\n\t\t\t\t/* matches from matchExpr[\"CHILD\"]\n\t\t\t\t1 type (only|nth|...)\n\t\t\t\t2 what (child|of-type)\n\t\t\t\t3 argument (even|odd|\\d*|\\d*n([+-]\\d+)?|...)\n\t\t\t\t4 xn-component of xn+y argument ([+-]?\\d*n|)\n\t\t\t\t5 sign of xn-component\n\t\t\t\t6 x of xn-component\n\t\t\t\t7 sign of y-component\n\t\t\t\t8 y of y-component\n\t\t\t*/\n\t\t\t\tmatch[1] = match[1].toLowerCase();\n\n\t\t\t\tif (match[1].slice(0, 3) === \"nth\") {\n\t\t\t\t\t// nth-* requires argument\n\t\t\t\t\tif (!match[3]) {\n\t\t\t\t\t\tSizzle.error(match[0]);\n\t\t\t\t\t}\n\n\t\t\t\t\t// numeric x and y parameters for Expr.filter.CHILD\n\t\t\t\t\t// remember that false/true cast respectively to 0/1\n\t\t\t\t\tmatch[4] = +(match[4]\n\t\t\t\t\t\t? match[5] + (match[6] || 1)\n\t\t\t\t\t\t: 2 * (match[3] === \"even\" || match[3] === \"odd\"));\n\t\t\t\t\tmatch[5] = +(match[7] + match[8] || match[3] === \"odd\");\n\n\t\t\t\t\t// other types prohibit arguments\n\t\t\t\t} else if (match[3]) {\n\t\t\t\t\tSizzle.error(match[0]);\n\t\t\t\t}\n\n\t\t\t\treturn match;\n\t\t\t},\n\n\t\t\tPSEUDO: function (match) {\n\t\t\t\tvar excess,\n\t\t\t\t\tunquoted = !match[6] && match[2];\n\n\t\t\t\tif (matchExpr[\"CHILD\"].test(match[0])) {\n\t\t\t\t\treturn null;\n\t\t\t\t}\n\n\t\t\t\t// Accept quoted arguments as-is\n\t\t\t\tif (match[3]) {\n\t\t\t\t\tmatch[2] = match[4] || match[5] || \"\";\n\n\t\t\t\t\t// Strip excess characters from unquoted arguments\n\t\t\t\t} else if (\n\t\t\t\t\tunquoted &&\n\t\t\t\t\trpseudo.test(unquoted) &&\n\t\t\t\t\t// Get excess from tokenize (recursively)\n\t\t\t\t\t(excess = tokenize(unquoted, true)) &&\n\t\t\t\t\t// advance to the next closing parenthesis\n\t\t\t\t\t(excess =\n\t\t\t\t\t\tunquoted.indexOf(\")\", unquoted.length - excess) - unquoted.length)\n\t\t\t\t) {\n\t\t\t\t\t// excess is a negative index\n\t\t\t\t\tmatch[0] = match[0].slice(0, excess);\n\t\t\t\t\tmatch[2] = unquoted.slice(0, excess);\n\t\t\t\t}\n\n\t\t\t\t// Return only captures needed by the pseudo filter method (type and argument)\n\t\t\t\treturn match.slice(0, 3);\n\t\t\t},\n\t\t},\n\n\t\tfilter: {\n\t\t\tTAG: function (nodeNameSelector) {\n\t\t\t\tvar nodeName = nodeNameSelector\n\t\t\t\t\t.replace(runescape, funescape)\n\t\t\t\t\t.toLowerCase();\n\t\t\t\treturn nodeNameSelector === \"*\"\n\t\t\t\t\t? function () {\n\t\t\t\t\t\t\treturn true;\n\t\t\t\t\t }\n\t\t\t\t\t: function (elem) {\n\t\t\t\t\t\t\treturn elem.nodeName && elem.nodeName.toLowerCase() === nodeName;\n\t\t\t\t\t };\n\t\t\t},\n\n\t\t\tCLASS: function (className) {\n\t\t\t\tvar pattern = classCache[className + \" \"];\n\n\t\t\t\treturn (\n\t\t\t\t\tpattern ||\n\t\t\t\t\t((pattern = new RegExp(\n\t\t\t\t\t\t\"(^|\" + whitespace + \")\" + className + \"(\" + whitespace + \"|$)\"\n\t\t\t\t\t)) &&\n\t\t\t\t\t\tclassCache(className, function (elem) {\n\t\t\t\t\t\t\treturn pattern.test(\n\t\t\t\t\t\t\t\t(typeof elem.className === \"string\" && elem.className) ||\n\t\t\t\t\t\t\t\t\t(typeof elem.getAttribute !== \"undefined\" &&\n\t\t\t\t\t\t\t\t\t\telem.getAttribute(\"class\")) ||\n\t\t\t\t\t\t\t\t\t\"\"\n\t\t\t\t\t\t\t);\n\t\t\t\t\t\t}))\n\t\t\t\t);\n\t\t\t},\n\n\t\t\tATTR: function (name, operator, check) {\n\t\t\t\treturn function (elem) {\n\t\t\t\t\tvar result = Sizzle.attr(elem, name);\n\n\t\t\t\t\tif (result == null) {\n\t\t\t\t\t\treturn operator === \"!=\";\n\t\t\t\t\t}\n\t\t\t\t\tif (!operator) {\n\t\t\t\t\t\treturn true;\n\t\t\t\t\t}\n\n\t\t\t\t\tresult += \"\";\n\n\t\t\t\t\t/* eslint-disable max-len */\n\n\t\t\t\t\treturn operator === \"=\"\n\t\t\t\t\t\t? result === check\n\t\t\t\t\t\t: operator === \"!=\"\n\t\t\t\t\t\t? result !== check\n\t\t\t\t\t\t: operator === \"^=\"\n\t\t\t\t\t\t? check && result.indexOf(check) === 0\n\t\t\t\t\t\t: operator === \"*=\"\n\t\t\t\t\t\t? check && result.indexOf(check) > -1\n\t\t\t\t\t\t: operator === \"$=\"\n\t\t\t\t\t\t? check && result.slice(-check.length) === check\n\t\t\t\t\t\t: operator === \"~=\"\n\t\t\t\t\t\t? (\" \" + result.replace(rwhitespace, \" \") + \" \").indexOf(check) > -1\n\t\t\t\t\t\t: operator === \"|=\"\n\t\t\t\t\t\t? result === check ||\n\t\t\t\t\t\t result.slice(0, check.length + 1) === check + \"-\"\n\t\t\t\t\t\t: false;\n\t\t\t\t\t/* eslint-enable max-len */\n\t\t\t\t};\n\t\t\t},\n\n\t\t\tCHILD: function (type, what, _argument, first, last) {\n\t\t\t\tvar simple = type.slice(0, 3) !== \"nth\",\n\t\t\t\t\tforward = type.slice(-4) !== \"last\",\n\t\t\t\t\tofType = what === \"of-type\";\n\n\t\t\t\treturn first === 1 && last === 0\n\t\t\t\t\t? // Shortcut for :nth-*(n)\n\t\t\t\t\t function (elem) {\n\t\t\t\t\t\t\treturn !!elem.parentNode;\n\t\t\t\t\t }\n\t\t\t\t\t: function (elem, _context, xml) {\n\t\t\t\t\t\t\tvar cache,\n\t\t\t\t\t\t\t\tuniqueCache,\n\t\t\t\t\t\t\t\touterCache,\n\t\t\t\t\t\t\t\tnode,\n\t\t\t\t\t\t\t\tnodeIndex,\n\t\t\t\t\t\t\t\tstart,\n\t\t\t\t\t\t\t\tdir = simple !== forward ? \"nextSibling\" : \"previousSibling\",\n\t\t\t\t\t\t\t\tparent = elem.parentNode,\n\t\t\t\t\t\t\t\tname = ofType && elem.nodeName.toLowerCase(),\n\t\t\t\t\t\t\t\tuseCache = !xml && !ofType,\n\t\t\t\t\t\t\t\tdiff = false;\n\n\t\t\t\t\t\t\tif (parent) {\n\t\t\t\t\t\t\t\t// :(first|last|only)-(child|of-type)\n\t\t\t\t\t\t\t\tif (simple) {\n\t\t\t\t\t\t\t\t\twhile (dir) {\n\t\t\t\t\t\t\t\t\t\tnode = elem;\n\t\t\t\t\t\t\t\t\t\twhile ((node = node[dir])) {\n\t\t\t\t\t\t\t\t\t\t\tif (\n\t\t\t\t\t\t\t\t\t\t\t\tofType\n\t\t\t\t\t\t\t\t\t\t\t\t\t? node.nodeName.toLowerCase() === name\n\t\t\t\t\t\t\t\t\t\t\t\t\t: node.nodeType === 1\n\t\t\t\t\t\t\t\t\t\t\t) {\n\t\t\t\t\t\t\t\t\t\t\t\treturn false;\n\t\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\t}\n\n\t\t\t\t\t\t\t\t\t\t// Reverse direction for :only-* (if we haven't yet done so)\n\t\t\t\t\t\t\t\t\t\tstart = dir = type === \"only\" && !start && \"nextSibling\";\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\treturn true;\n\t\t\t\t\t\t\t\t}\n\n\t\t\t\t\t\t\t\tstart = [forward ? parent.firstChild : parent.lastChild];\n\n\t\t\t\t\t\t\t\t// non-xml :nth-child(...) stores cache data on `parent`\n\t\t\t\t\t\t\t\tif (forward && useCache) {\n\t\t\t\t\t\t\t\t\t// Seek `elem` from a previously-cached index\n\n\t\t\t\t\t\t\t\t\t// ...in a gzip-friendly way\n\t\t\t\t\t\t\t\t\tnode = parent;\n\t\t\t\t\t\t\t\t\touterCache = node[expando] || (node[expando] = {});\n\n\t\t\t\t\t\t\t\t\t// Support: IE <9 only\n\t\t\t\t\t\t\t\t\t// Defend against cloned attroperties (jQuery gh-1709)\n\t\t\t\t\t\t\t\t\tuniqueCache =\n\t\t\t\t\t\t\t\t\t\touterCache[node.uniqueID] ||\n\t\t\t\t\t\t\t\t\t\t(outerCache[node.uniqueID] = {});\n\n\t\t\t\t\t\t\t\t\tcache = uniqueCache[type] || [];\n\t\t\t\t\t\t\t\t\tnodeIndex = cache[0] === dirruns && cache[1];\n\t\t\t\t\t\t\t\t\tdiff = nodeIndex && cache[2];\n\t\t\t\t\t\t\t\t\tnode = nodeIndex && parent.childNodes[nodeIndex];\n\n\t\t\t\t\t\t\t\t\twhile (\n\t\t\t\t\t\t\t\t\t\t(node =\n\t\t\t\t\t\t\t\t\t\t\t(++nodeIndex && node && node[dir]) ||\n\t\t\t\t\t\t\t\t\t\t\t// Fallback to seeking `elem` from the start\n\t\t\t\t\t\t\t\t\t\t\t(diff = nodeIndex = 0) ||\n\t\t\t\t\t\t\t\t\t\t\tstart.pop())\n\t\t\t\t\t\t\t\t\t) {\n\t\t\t\t\t\t\t\t\t\t// When found, cache indexes on `parent` and break\n\t\t\t\t\t\t\t\t\t\tif (node.nodeType === 1 && ++diff && node === elem) {\n\t\t\t\t\t\t\t\t\t\t\tuniqueCache[type] = [dirruns, nodeIndex, diff];\n\t\t\t\t\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t\t\t// Use previously-cached element index if available\n\t\t\t\t\t\t\t\t\tif (useCache) {\n\t\t\t\t\t\t\t\t\t\t// ...in a gzip-friendly way\n\t\t\t\t\t\t\t\t\t\tnode = elem;\n\t\t\t\t\t\t\t\t\t\touterCache = node[expando] || (node[expando] = {});\n\n\t\t\t\t\t\t\t\t\t\t// Support: IE <9 only\n\t\t\t\t\t\t\t\t\t\t// Defend against cloned attroperties (jQuery gh-1709)\n\t\t\t\t\t\t\t\t\t\tuniqueCache =\n\t\t\t\t\t\t\t\t\t\t\touterCache[node.uniqueID] ||\n\t\t\t\t\t\t\t\t\t\t\t(outerCache[node.uniqueID] = {});\n\n\t\t\t\t\t\t\t\t\t\tcache = uniqueCache[type] || [];\n\t\t\t\t\t\t\t\t\t\tnodeIndex = cache[0] === dirruns && cache[1];\n\t\t\t\t\t\t\t\t\t\tdiff = nodeIndex;\n\t\t\t\t\t\t\t\t\t}\n\n\t\t\t\t\t\t\t\t\t// xml :nth-child(...)\n\t\t\t\t\t\t\t\t\t// or :nth-last-child(...) or :nth(-last)?-of-type(...)\n\t\t\t\t\t\t\t\t\tif (diff === false) {\n\t\t\t\t\t\t\t\t\t\t// Use the same loop as above to seek `elem` from the start\n\t\t\t\t\t\t\t\t\t\twhile (\n\t\t\t\t\t\t\t\t\t\t\t(node =\n\t\t\t\t\t\t\t\t\t\t\t\t(++nodeIndex && node && node[dir]) ||\n\t\t\t\t\t\t\t\t\t\t\t\t(diff = nodeIndex = 0) ||\n\t\t\t\t\t\t\t\t\t\t\t\tstart.pop())\n\t\t\t\t\t\t\t\t\t\t) {\n\t\t\t\t\t\t\t\t\t\t\tif (\n\t\t\t\t\t\t\t\t\t\t\t\t(ofType\n\t\t\t\t\t\t\t\t\t\t\t\t\t? node.nodeName.toLowerCase() === name\n\t\t\t\t\t\t\t\t\t\t\t\t\t: node.nodeType === 1) &&\n\t\t\t\t\t\t\t\t\t\t\t\t++diff\n\t\t\t\t\t\t\t\t\t\t\t) {\n\t\t\t\t\t\t\t\t\t\t\t\t// Cache the index of each encountered element\n\t\t\t\t\t\t\t\t\t\t\t\tif (useCache) {\n\t\t\t\t\t\t\t\t\t\t\t\t\touterCache = node[expando] || (node[expando] = {});\n\n\t\t\t\t\t\t\t\t\t\t\t\t\t// Support: IE <9 only\n\t\t\t\t\t\t\t\t\t\t\t\t\t// Defend against cloned attroperties (jQuery gh-1709)\n\t\t\t\t\t\t\t\t\t\t\t\t\tuniqueCache =\n\t\t\t\t\t\t\t\t\t\t\t\t\t\touterCache[node.uniqueID] ||\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t(outerCache[node.uniqueID] = {});\n\n\t\t\t\t\t\t\t\t\t\t\t\t\tuniqueCache[type] = [dirruns, diff];\n\t\t\t\t\t\t\t\t\t\t\t\t}\n\n\t\t\t\t\t\t\t\t\t\t\t\tif (node === elem) {\n\t\t\t\t\t\t\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t}\n\n\t\t\t\t\t\t\t\t// Incorporate the offset, then check against cycle size\n\t\t\t\t\t\t\t\tdiff -= last;\n\t\t\t\t\t\t\t\treturn (\n\t\t\t\t\t\t\t\t\tdiff === first || (diff % first === 0 && diff / first >= 0)\n\t\t\t\t\t\t\t\t);\n\t\t\t\t\t\t\t}\n\t\t\t\t\t };\n\t\t\t},\n\n\t\t\tPSEUDO: function (pseudo, argument) {\n\t\t\t\t// pseudo-class names are case-insensitive\n\t\t\t\t// http://www.w3.org/TR/selectors/#pseudo-classes\n\t\t\t\t// Prioritize by case sensitivity in case custom pseudos are added with uppercase letters\n\t\t\t\t// Remember that setFilters inherits from pseudos\n\t\t\t\tvar args,\n\t\t\t\t\tfn =\n\t\t\t\t\t\tExpr.pseudos[pseudo] ||\n\t\t\t\t\t\tExpr.setFilters[pseudo.toLowerCase()] ||\n\t\t\t\t\t\tSizzle.error(\"unsupported pseudo: \" + pseudo);\n\n\t\t\t\t// The user may use createPseudo to indicate that\n\t\t\t\t// arguments are needed to create the filter function\n\t\t\t\t// just as Sizzle does\n\t\t\t\tif (fn[expando]) {\n\t\t\t\t\treturn fn(argument);\n\t\t\t\t}\n\n\t\t\t\t// But maintain support for old signatures\n\t\t\t\tif (fn.length > 1) {\n\t\t\t\t\targs = [pseudo, pseudo, \"\", argument];\n\t\t\t\t\treturn Expr.setFilters.hasOwnProperty(pseudo.toLowerCase())\n\t\t\t\t\t\t? markFunction(function (seed, matches) {\n\t\t\t\t\t\t\t\tvar idx,\n\t\t\t\t\t\t\t\t\tmatched = fn(seed, argument),\n\t\t\t\t\t\t\t\t\ti = matched.length;\n\t\t\t\t\t\t\t\twhile (i--) {\n\t\t\t\t\t\t\t\t\tidx = indexOf(seed, matched[i]);\n\t\t\t\t\t\t\t\t\tseed[idx] = !(matches[idx] = matched[i]);\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t })\n\t\t\t\t\t\t: function (elem) {\n\t\t\t\t\t\t\t\treturn fn(elem, 0, args);\n\t\t\t\t\t\t };\n\t\t\t\t}\n\n\t\t\t\treturn fn;\n\t\t\t},\n\t\t},\n\n\t\tpseudos: {\n\t\t\t// Potentially complex pseudos\n\t\t\tnot: markFunction(function (selector) {\n\t\t\t\t// Trim the selector passed to compile\n\t\t\t\t// to avoid treating leading and trailing\n\t\t\t\t// spaces as combinators\n\t\t\t\tvar input = [],\n\t\t\t\t\tresults = [],\n\t\t\t\t\tmatcher = compile(selector.replace(rtrim, \"$1\"));\n\n\t\t\t\treturn matcher[expando]\n\t\t\t\t\t? markFunction(function (seed, matches, _context, xml) {\n\t\t\t\t\t\t\tvar elem,\n\t\t\t\t\t\t\t\tunmatched = matcher(seed, null, xml, []),\n\t\t\t\t\t\t\t\ti = seed.length;\n\n\t\t\t\t\t\t\t// Match elements unmatched by `matcher`\n\t\t\t\t\t\t\twhile (i--) {\n\t\t\t\t\t\t\t\tif ((elem = unmatched[i])) {\n\t\t\t\t\t\t\t\t\tseed[i] = !(matches[i] = elem);\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t}\n\t\t\t\t\t })\n\t\t\t\t\t: function (elem, _context, xml) {\n\t\t\t\t\t\t\tinput[0] = elem;\n\t\t\t\t\t\t\tmatcher(input, null, xml, results);\n\n\t\t\t\t\t\t\t// Don't keep the element (issue #299)\n\t\t\t\t\t\t\tinput[0] = null;\n\t\t\t\t\t\t\treturn !results.pop();\n\t\t\t\t\t };\n\t\t\t}),\n\n\t\t\thas: markFunction(function (selector) {\n\t\t\t\treturn function (elem) {\n\t\t\t\t\treturn Sizzle(selector, elem).length > 0;\n\t\t\t\t};\n\t\t\t}),\n\n\t\t\tcontains: markFunction(function (text) {\n\t\t\t\ttext = text.replace(runescape, funescape);\n\t\t\t\treturn function (elem) {\n\t\t\t\t\treturn (elem.textContent || getText(elem)).indexOf(text) > -1;\n\t\t\t\t};\n\t\t\t}),\n\n\t\t\t// \"Whether an element is represented by a :lang() selector\n\t\t\t// is based solely on the element's language value\n\t\t\t// being equal to the identifier C,\n\t\t\t// or beginning with the identifier C immediately followed by \"-\".\n\t\t\t// The matching of C against the element's language value is performed case-insensitively.\n\t\t\t// The identifier C does not have to be a valid language name.\"\n\t\t\t// http://www.w3.org/TR/selectors/#lang-pseudo\n\t\t\tlang: markFunction(function (lang) {\n\t\t\t\t// lang value must be a valid identifier\n\t\t\t\tif (!ridentifier.test(lang || \"\")) {\n\t\t\t\t\tSizzle.error(\"unsupported lang: \" + lang);\n\t\t\t\t}\n\t\t\t\tlang = lang.replace(runescape, funescape).toLowerCase();\n\t\t\t\treturn function (elem) {\n\t\t\t\t\tvar elemLang;\n\t\t\t\t\tdo {\n\t\t\t\t\t\tif (\n\t\t\t\t\t\t\t(elemLang = documentIsHTML\n\t\t\t\t\t\t\t\t? elem.lang\n\t\t\t\t\t\t\t\t: elem.getAttribute(\"xml:lang\") || elem.getAttribute(\"lang\"))\n\t\t\t\t\t\t) {\n\t\t\t\t\t\t\telemLang = elemLang.toLowerCase();\n\t\t\t\t\t\t\treturn elemLang === lang || elemLang.indexOf(lang + \"-\") === 0;\n\t\t\t\t\t\t}\n\t\t\t\t\t} while ((elem = elem.parentNode) && elem.nodeType === 1);\n\t\t\t\t\treturn false;\n\t\t\t\t};\n\t\t\t}),\n\n\t\t\t// Miscellaneous\n\t\t\ttarget: function (elem) {\n\t\t\t\tvar hash = window.location && window.location.hash;\n\t\t\t\treturn hash && hash.slice(1) === elem.id;\n\t\t\t},\n\n\t\t\troot: function (elem) {\n\t\t\t\treturn elem === docElem;\n\t\t\t},\n\n\t\t\tfocus: function (elem) {\n\t\t\t\treturn (\n\t\t\t\t\telem === document.activeElement &&\n\t\t\t\t\t(!document.hasFocus || document.hasFocus()) &&\n\t\t\t\t\t!!(elem.type || elem.href || ~elem.tabIndex)\n\t\t\t\t);\n\t\t\t},\n\n\t\t\t// Boolean properties\n\t\t\tenabled: createDisabledPseudo(false),\n\t\t\tdisabled: createDisabledPseudo(true),\n\n\t\t\tchecked: function (elem) {\n\t\t\t\t// In CSS3, :checked should return both checked and selected elements\n\t\t\t\t// http://www.w3.org/TR/2011/REC-css3-selectors-20110929/#checked\n\t\t\t\tvar nodeName = elem.nodeName.toLowerCase();\n\t\t\t\treturn (\n\t\t\t\t\t(nodeName === \"input\" && !!elem.checked) ||\n\t\t\t\t\t(nodeName === \"option\" && !!elem.selected)\n\t\t\t\t);\n\t\t\t},\n\n\t\t\tselected: function (elem) {\n\t\t\t\t// Accessing this property makes selected-by-default\n\t\t\t\t// options in Safari work properly\n\t\t\t\tif (elem.parentNode) {\n\t\t\t\t\t// eslint-disable-next-line no-unused-expressions\n\t\t\t\t\telem.parentNode.selectedIndex;\n\t\t\t\t}\n\n\t\t\t\treturn elem.selected === true;\n\t\t\t},\n\n\t\t\t// Contents\n\t\t\tempty: function (elem) {\n\t\t\t\t// http://www.w3.org/TR/selectors/#empty-pseudo\n\t\t\t\t// :empty is negated by element (1) or content nodes (text: 3; cdata: 4; entity ref: 5),\n\t\t\t\t// but not by others (comment: 8; processing instruction: 7; etc.)\n\t\t\t\t// nodeType < 6 works because attributes (2) do not appear as children\n\t\t\t\tfor (elem = elem.firstChild; elem; elem = elem.nextSibling) {\n\t\t\t\t\tif (elem.nodeType < 6) {\n\t\t\t\t\t\treturn false;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\treturn true;\n\t\t\t},\n\n\t\t\tparent: function (elem) {\n\t\t\t\treturn !Expr.pseudos[\"empty\"](elem);\n\t\t\t},\n\n\t\t\t// Element/input types\n\t\t\theader: function (elem) {\n\t\t\t\treturn rheader.test(elem.nodeName);\n\t\t\t},\n\n\t\t\tinput: function (elem) {\n\t\t\t\treturn rinputs.test(elem.nodeName);\n\t\t\t},\n\n\t\t\tbutton: function (elem) {\n\t\t\t\tvar name = elem.nodeName.toLowerCase();\n\t\t\t\treturn (\n\t\t\t\t\t(name === \"input\" && elem.type === \"button\") || name === \"button\"\n\t\t\t\t);\n\t\t\t},\n\n\t\t\ttext: function (elem) {\n\t\t\t\tvar attr;\n\t\t\t\treturn (\n\t\t\t\t\telem.nodeName.toLowerCase() === \"input\" &&\n\t\t\t\t\telem.type === \"text\" &&\n\t\t\t\t\t// Support: IE<8\n\t\t\t\t\t// New HTML5 attribute values (e.g., \"search\") appear with elem.type === \"text\"\n\t\t\t\t\t((attr = elem.getAttribute(\"type\")) == null ||\n\t\t\t\t\t\tattr.toLowerCase() === \"text\")\n\t\t\t\t);\n\t\t\t},\n\n\t\t\t// Position-in-collection\n\t\t\tfirst: createPositionalPseudo(function () {\n\t\t\t\treturn [0];\n\t\t\t}),\n\n\t\t\tlast: createPositionalPseudo(function (_matchIndexes, length) {\n\t\t\t\treturn [length - 1];\n\t\t\t}),\n\n\t\t\teq: createPositionalPseudo(function (_matchIndexes, length, argument) {\n\t\t\t\treturn [argument < 0 ? argument + length : argument];\n\t\t\t}),\n\n\t\t\teven: createPositionalPseudo(function (matchIndexes, length) {\n\t\t\t\tvar i = 0;\n\t\t\t\tfor (; i < length; i += 2) {\n\t\t\t\t\tmatchIndexes.push(i);\n\t\t\t\t}\n\t\t\t\treturn matchIndexes;\n\t\t\t}),\n\n\t\t\todd: createPositionalPseudo(function (matchIndexes, length) {\n\t\t\t\tvar i = 1;\n\t\t\t\tfor (; i < length; i += 2) {\n\t\t\t\t\tmatchIndexes.push(i);\n\t\t\t\t}\n\t\t\t\treturn matchIndexes;\n\t\t\t}),\n\n\t\t\tlt: createPositionalPseudo(function (matchIndexes, length, argument) {\n\t\t\t\tvar i =\n\t\t\t\t\targument < 0\n\t\t\t\t\t\t? argument + length\n\t\t\t\t\t\t: argument > length\n\t\t\t\t\t\t? length\n\t\t\t\t\t\t: argument;\n\t\t\t\tfor (; --i >= 0; ) {\n\t\t\t\t\tmatchIndexes.push(i);\n\t\t\t\t}\n\t\t\t\treturn matchIndexes;\n\t\t\t}),\n\n\t\t\tgt: createPositionalPseudo(function (matchIndexes, length, argument) {\n\t\t\t\tvar i = argument < 0 ? argument + length : argument;\n\t\t\t\tfor (; ++i < length; ) {\n\t\t\t\t\tmatchIndexes.push(i);\n\t\t\t\t}\n\t\t\t\treturn matchIndexes;\n\t\t\t}),\n\t\t},\n\t};\n\n\tExpr.pseudos[\"nth\"] = Expr.pseudos[\"eq\"];\n\n\t// Add button/input type pseudos\n\tfor (i in {\n\t\tradio: true,\n\t\tcheckbox: true,\n\t\tfile: true,\n\t\tpassword: true,\n\t\timage: true,\n\t}) {\n\t\tExpr.pseudos[i] = createInputPseudo(i);\n\t}\n\tfor (i in { submit: true, reset: true }) {\n\t\tExpr.pseudos[i] = createButtonPseudo(i);\n\t}\n\n\t// Easy API for creating new setFilters\n\tfunction setFilters() {}\n\tsetFilters.prototype = Expr.filters = Expr.pseudos;\n\tExpr.setFilters = new setFilters();\n\n\ttokenize = Sizzle.tokenize = function (selector, parseOnly) {\n\t\tvar matched,\n\t\t\tmatch,\n\t\t\ttokens,\n\t\t\ttype,\n\t\t\tsoFar,\n\t\t\tgroups,\n\t\t\tpreFilters,\n\t\t\tcached = tokenCache[selector + \" \"];\n\n\t\tif (cached) {\n\t\t\treturn parseOnly ? 0 : cached.slice(0);\n\t\t}\n\n\t\tsoFar = selector;\n\t\tgroups = [];\n\t\tpreFilters = Expr.preFilter;\n\n\t\twhile (soFar) {\n\t\t\t// Comma and first run\n\t\t\tif (!matched || (match = rcomma.exec(soFar))) {\n\t\t\t\tif (match) {\n\t\t\t\t\t// Don't consume trailing commas as valid\n\t\t\t\t\tsoFar = soFar.slice(match[0].length) || soFar;\n\t\t\t\t}\n\t\t\t\tgroups.push((tokens = []));\n\t\t\t}\n\n\t\t\tmatched = false;\n\n\t\t\t// Combinators\n\t\t\tif ((match = rcombinators.exec(soFar))) {\n\t\t\t\tmatched = match.shift();\n\t\t\t\ttokens.push({\n\t\t\t\t\tvalue: matched,\n\n\t\t\t\t\t// Cast descendant combinators to space\n\t\t\t\t\ttype: match[0].replace(rtrim, \" \"),\n\t\t\t\t});\n\t\t\t\tsoFar = soFar.slice(matched.length);\n\t\t\t}\n\n\t\t\t// Filters\n\t\t\tfor (type in Expr.filter) {\n\t\t\t\tif (\n\t\t\t\t\t(match = matchExpr[type].exec(soFar)) &&\n\t\t\t\t\t(!preFilters[type] || (match = preFilters[type](match)))\n\t\t\t\t) {\n\t\t\t\t\tmatched = match.shift();\n\t\t\t\t\ttokens.push({\n\t\t\t\t\t\tvalue: matched,\n\t\t\t\t\t\ttype: type,\n\t\t\t\t\t\tmatches: match,\n\t\t\t\t\t});\n\t\t\t\t\tsoFar = soFar.slice(matched.length);\n\t\t\t\t}\n\t\t\t}\n\n\t\t\tif (!matched) {\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}\n\n\t\t// Return the length of the invalid excess\n\t\t// if we're just parsing\n\t\t// Otherwise, throw an error or return tokens\n\t\treturn parseOnly\n\t\t\t? soFar.length\n\t\t\t: soFar\n\t\t\t? Sizzle.error(selector)\n\t\t\t: // Cache the tokens\n\t\t\t tokenCache(selector, groups).slice(0);\n\t};\n\n\tfunction toSelector(tokens) {\n\t\tvar i = 0,\n\t\t\tlen = tokens.length,\n\t\t\tselector = \"\";\n\t\tfor (; i < len; i++) {\n\t\t\tselector += tokens[i].value;\n\t\t}\n\t\treturn selector;\n\t}\n\n\tfunction addCombinator(matcher, combinator, base) {\n\t\tvar dir = combinator.dir,\n\t\t\tskip = combinator.next,\n\t\t\tkey = skip || dir,\n\t\t\tcheckNonElements = base && key === \"parentNode\",\n\t\t\tdoneName = done++;\n\n\t\treturn combinator.first\n\t\t\t? // Check against closest ancestor/preceding element\n\t\t\t function (elem, context, xml) {\n\t\t\t\t\twhile ((elem = elem[dir])) {\n\t\t\t\t\t\tif (elem.nodeType === 1 || checkNonElements) {\n\t\t\t\t\t\t\treturn matcher(elem, context, xml);\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t\treturn false;\n\t\t\t }\n\t\t\t: // Check against all ancestor/preceding elements\n\t\t\t function (elem, context, xml) {\n\t\t\t\t\tvar oldCache,\n\t\t\t\t\t\tuniqueCache,\n\t\t\t\t\t\touterCache,\n\t\t\t\t\t\tnewCache = [dirruns, doneName];\n\n\t\t\t\t\t// We can't set arbitrary data on XML nodes, so they don't benefit from combinator caching\n\t\t\t\t\tif (xml) {\n\t\t\t\t\t\twhile ((elem = elem[dir])) {\n\t\t\t\t\t\t\tif (elem.nodeType === 1 || checkNonElements) {\n\t\t\t\t\t\t\t\tif (matcher(elem, context, xml)) {\n\t\t\t\t\t\t\t\t\treturn true;\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t} else {\n\t\t\t\t\t\twhile ((elem = elem[dir])) {\n\t\t\t\t\t\t\tif (elem.nodeType === 1 || checkNonElements) {\n\t\t\t\t\t\t\t\touterCache = elem[expando] || (elem[expando] = {});\n\n\t\t\t\t\t\t\t\t// Support: IE <9 only\n\t\t\t\t\t\t\t\t// Defend against cloned attroperties (jQuery gh-1709)\n\t\t\t\t\t\t\t\tuniqueCache =\n\t\t\t\t\t\t\t\t\touterCache[elem.uniqueID] || (outerCache[elem.uniqueID] = {});\n\n\t\t\t\t\t\t\t\tif (skip && skip === elem.nodeName.toLowerCase()) {\n\t\t\t\t\t\t\t\t\telem = elem[dir] || elem;\n\t\t\t\t\t\t\t\t} else if (\n\t\t\t\t\t\t\t\t\t(oldCache = uniqueCache[key]) &&\n\t\t\t\t\t\t\t\t\toldCache[0] === dirruns &&\n\t\t\t\t\t\t\t\t\toldCache[1] === doneName\n\t\t\t\t\t\t\t\t) {\n\t\t\t\t\t\t\t\t\t// Assign to newCache so results back-propagate to previous elements\n\t\t\t\t\t\t\t\t\treturn (newCache[2] = oldCache[2]);\n\t\t\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t\t\t// Reuse newcache so results back-propagate to previous elements\n\t\t\t\t\t\t\t\t\tuniqueCache[key] = newCache;\n\n\t\t\t\t\t\t\t\t\t// A match means we're done; a fail means we have to keep checking\n\t\t\t\t\t\t\t\t\tif ((newCache[2] = matcher(elem, context, xml))) {\n\t\t\t\t\t\t\t\t\t\treturn true;\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t\treturn false;\n\t\t\t };\n\t}\n\n\tfunction elementMatcher(matchers) {\n\t\treturn matchers.length > 1\n\t\t\t? function (elem, context, xml) {\n\t\t\t\t\tvar i = matchers.length;\n\t\t\t\t\twhile (i--) {\n\t\t\t\t\t\tif (!matchers[i](elem, context, xml)) {\n\t\t\t\t\t\t\treturn false;\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t\treturn true;\n\t\t\t }\n\t\t\t: matchers[0];\n\t}\n\n\tfunction multipleContexts(selector, contexts, results) {\n\t\tvar i = 0,\n\t\t\tlen = contexts.length;\n\t\tfor (; i < len; i++) {\n\t\t\tSizzle(selector, contexts[i], results);\n\t\t}\n\t\treturn results;\n\t}\n\n\tfunction condense(unmatched, map, filter, context, xml) {\n\t\tvar elem,\n\t\t\tnewUnmatched = [],\n\t\t\ti = 0,\n\t\t\tlen = unmatched.length,\n\t\t\tmapped = map != null;\n\n\t\tfor (; i < len; i++) {\n\t\t\tif ((elem = unmatched[i])) {\n\t\t\t\tif (!filter || filter(elem, context, xml)) {\n\t\t\t\t\tnewUnmatched.push(elem);\n\t\t\t\t\tif (mapped) {\n\t\t\t\t\t\tmap.push(i);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\treturn newUnmatched;\n\t}\n\n\tfunction setMatcher(\n\t\tpreFilter,\n\t\tselector,\n\t\tmatcher,\n\t\tpostFilter,\n\t\tpostFinder,\n\t\tpostSelector\n\t) {\n\t\tif (postFilter && !postFilter[expando]) {\n\t\t\tpostFilter = setMatcher(postFilter);\n\t\t}\n\t\tif (postFinder && !postFinder[expando]) {\n\t\t\tpostFinder = setMatcher(postFinder, postSelector);\n\t\t}\n\t\treturn markFunction(function (seed, results, context, xml) {\n\t\t\tvar temp,\n\t\t\t\ti,\n\t\t\t\telem,\n\t\t\t\tpreMap = [],\n\t\t\t\tpostMap = [],\n\t\t\t\tpreexisting = results.length,\n\t\t\t\t// Get initial elements from seed or context\n\t\t\t\telems =\n\t\t\t\t\tseed ||\n\t\t\t\t\tmultipleContexts(\n\t\t\t\t\t\tselector || \"*\",\n\t\t\t\t\t\tcontext.nodeType ? [context] : context,\n\t\t\t\t\t\t[]\n\t\t\t\t\t),\n\t\t\t\t// Prefilter to get matcher input, preserving a map for seed-results synchronization\n\t\t\t\tmatcherIn =\n\t\t\t\t\tpreFilter && (seed || !selector)\n\t\t\t\t\t\t? condense(elems, preMap, preFilter, context, xml)\n\t\t\t\t\t\t: elems,\n\t\t\t\tmatcherOut = matcher\n\t\t\t\t\t? // If we have a postFinder, or filtered seed, or non-seed postFilter or preexisting results,\n\t\t\t\t\t postFinder || (seed ? preFilter : preexisting || postFilter)\n\t\t\t\t\t\t? // ...intermediate processing is necessary\n\t\t\t\t\t\t []\n\t\t\t\t\t\t: // ...otherwise use results directly\n\t\t\t\t\t\t results\n\t\t\t\t\t: matcherIn;\n\n\t\t\t// Find primary matches\n\t\t\tif (matcher) {\n\t\t\t\tmatcher(matcherIn, matcherOut, context, xml);\n\t\t\t}\n\n\t\t\t// Apply postFilter\n\t\t\tif (postFilter) {\n\t\t\t\ttemp = condense(matcherOut, postMap);\n\t\t\t\tpostFilter(temp, [], context, xml);\n\n\t\t\t\t// Un-match failing elements by moving them back to matcherIn\n\t\t\t\ti = temp.length;\n\t\t\t\twhile (i--) {\n\t\t\t\t\tif ((elem = temp[i])) {\n\t\t\t\t\t\tmatcherOut[postMap[i]] = !(matcherIn[postMap[i]] = elem);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\n\t\t\tif (seed) {\n\t\t\t\tif (postFinder || preFilter) {\n\t\t\t\t\tif (postFinder) {\n\t\t\t\t\t\t// Get the final matcherOut by condensing this intermediate into postFinder contexts\n\t\t\t\t\t\ttemp = [];\n\t\t\t\t\t\ti = matcherOut.length;\n\t\t\t\t\t\twhile (i--) {\n\t\t\t\t\t\t\tif ((elem = matcherOut[i])) {\n\t\t\t\t\t\t\t\t// Restore matcherIn since elem is not yet a final match\n\t\t\t\t\t\t\t\ttemp.push((matcherIn[i] = elem));\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t\tpostFinder(null, (matcherOut = []), temp, xml);\n\t\t\t\t\t}\n\n\t\t\t\t\t// Move matched elements from seed to results to keep them synchronized\n\t\t\t\t\ti = matcherOut.length;\n\t\t\t\t\twhile (i--) {\n\t\t\t\t\t\tif (\n\t\t\t\t\t\t\t(elem = matcherOut[i]) &&\n\t\t\t\t\t\t\t(temp = postFinder ? indexOf(seed, elem) : preMap[i]) > -1\n\t\t\t\t\t\t) {\n\t\t\t\t\t\t\tseed[temp] = !(results[temp] = elem);\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\n\t\t\t\t// Add elements to results, through postFinder if defined\n\t\t\t} else {\n\t\t\t\tmatcherOut = condense(\n\t\t\t\t\tmatcherOut === results\n\t\t\t\t\t\t? matcherOut.splice(preexisting, matcherOut.length)\n\t\t\t\t\t\t: matcherOut\n\t\t\t\t);\n\t\t\t\tif (postFinder) {\n\t\t\t\t\tpostFinder(null, results, matcherOut, xml);\n\t\t\t\t} else {\n\t\t\t\t\tpush.apply(results, matcherOut);\n\t\t\t\t}\n\t\t\t}\n\t\t});\n\t}\n\n\tfunction matcherFromTokens(tokens) {\n\t\tvar checkContext,\n\t\t\tmatcher,\n\t\t\tj,\n\t\t\tlen = tokens.length,\n\t\t\tleadingRelative = Expr.relative[tokens[0].type],\n\t\t\timplicitRelative = leadingRelative || Expr.relative[\" \"],\n\t\t\ti = leadingRelative ? 1 : 0,\n\t\t\t// The foundational matcher ensures that elements are reachable from top-level context(s)\n\t\t\tmatchContext = addCombinator(\n\t\t\t\tfunction (elem) {\n\t\t\t\t\treturn elem === checkContext;\n\t\t\t\t},\n\t\t\t\timplicitRelative,\n\t\t\t\ttrue\n\t\t\t),\n\t\t\tmatchAnyContext = addCombinator(\n\t\t\t\tfunction (elem) {\n\t\t\t\t\treturn indexOf(checkContext, elem) > -1;\n\t\t\t\t},\n\t\t\t\timplicitRelative,\n\t\t\t\ttrue\n\t\t\t),\n\t\t\tmatchers = [\n\t\t\t\tfunction (elem, context, xml) {\n\t\t\t\t\tvar ret =\n\t\t\t\t\t\t(!leadingRelative && (xml || context !== outermostContext)) ||\n\t\t\t\t\t\t((checkContext = context).nodeType\n\t\t\t\t\t\t\t? matchContext(elem, context, xml)\n\t\t\t\t\t\t\t: matchAnyContext(elem, context, xml));\n\n\t\t\t\t\t// Avoid hanging onto element (issue #299)\n\t\t\t\t\tcheckContext = null;\n\t\t\t\t\treturn ret;\n\t\t\t\t},\n\t\t\t];\n\n\t\tfor (; i < len; i++) {\n\t\t\tif ((matcher = Expr.relative[tokens[i].type])) {\n\t\t\t\tmatchers = [addCombinator(elementMatcher(matchers), matcher)];\n\t\t\t} else {\n\t\t\t\tmatcher = Expr.filter[tokens[i].type].apply(null, tokens[i].matches);\n\n\t\t\t\t// Return special upon seeing a positional matcher\n\t\t\t\tif (matcher[expando]) {\n\t\t\t\t\t// Find the next relative operator (if any) for proper handling\n\t\t\t\t\tj = ++i;\n\t\t\t\t\tfor (; j < len; j++) {\n\t\t\t\t\t\tif (Expr.relative[tokens[j].type]) {\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t\treturn setMatcher(\n\t\t\t\t\t\ti > 1 && elementMatcher(matchers),\n\t\t\t\t\t\ti > 1 &&\n\t\t\t\t\t\t\ttoSelector(\n\t\t\t\t\t\t\t\t// If the preceding token was a descendant combinator, insert an implicit any-element `*`\n\t\t\t\t\t\t\t\ttokens\n\t\t\t\t\t\t\t\t\t.slice(0, i - 1)\n\t\t\t\t\t\t\t\t\t.concat({ value: tokens[i - 2].type === \" \" ? \"*\" : \"\" })\n\t\t\t\t\t\t\t).replace(rtrim, \"$1\"),\n\t\t\t\t\t\tmatcher,\n\t\t\t\t\t\ti < j && matcherFromTokens(tokens.slice(i, j)),\n\t\t\t\t\t\tj < len && matcherFromTokens((tokens = tokens.slice(j))),\n\t\t\t\t\t\tj < len && toSelector(tokens)\n\t\t\t\t\t);\n\t\t\t\t}\n\t\t\t\tmatchers.push(matcher);\n\t\t\t}\n\t\t}\n\n\t\treturn elementMatcher(matchers);\n\t}\n\n\tfunction matcherFromGroupMatchers(elementMatchers, setMatchers) {\n\t\tvar bySet = setMatchers.length > 0,\n\t\t\tbyElement = elementMatchers.length > 0,\n\t\t\tsuperMatcher = function (seed, context, xml, results, outermost) {\n\t\t\t\tvar elem,\n\t\t\t\t\tj,\n\t\t\t\t\tmatcher,\n\t\t\t\t\tmatchedCount = 0,\n\t\t\t\t\ti = \"0\",\n\t\t\t\t\tunmatched = seed && [],\n\t\t\t\t\tsetMatched = [],\n\t\t\t\t\tcontextBackup = outermostContext,\n\t\t\t\t\t// We must always have either seed elements or outermost context\n\t\t\t\t\telems = seed || (byElement && Expr.find[\"TAG\"](\"*\", outermost)),\n\t\t\t\t\t// Use integer dirruns iff this is the outermost matcher\n\t\t\t\t\tdirrunsUnique = (dirruns +=\n\t\t\t\t\t\tcontextBackup == null ? 1 : Math.random() || 0.1),\n\t\t\t\t\tlen = elems.length;\n\n\t\t\t\tif (outermost) {\n\t\t\t\t\t// Support: IE 11+, Edge 17 - 18+\n\t\t\t\t\t// IE/Edge sometimes throw a \"Permission denied\" error when strict-comparing\n\t\t\t\t\t// two documents; shallow comparisons work.\n\t\t\t\t\t// eslint-disable-next-line eqeqeq\n\t\t\t\t\toutermostContext = context == document || context || outermost;\n\t\t\t\t}\n\n\t\t\t\t// Add elements passing elementMatchers directly to results\n\t\t\t\t// Support: IE<9, Safari\n\t\t\t\t// Tolerate NodeList properties (IE: \"length\"; Safari: <number>) matching elements by id\n\t\t\t\tfor (; i !== len && (elem = elems[i]) != null; i++) {\n\t\t\t\t\tif (byElement && elem) {\n\t\t\t\t\t\tj = 0;\n\n\t\t\t\t\t\t// Support: IE 11+, Edge 17 - 18+\n\t\t\t\t\t\t// IE/Edge sometimes throw a \"Permission denied\" error when strict-comparing\n\t\t\t\t\t\t// two documents; shallow comparisons work.\n\t\t\t\t\t\t// eslint-disable-next-line eqeqeq\n\t\t\t\t\t\tif (!context && elem.ownerDocument != document) {\n\t\t\t\t\t\t\tsetDocument(elem);\n\t\t\t\t\t\t\txml = !documentIsHTML;\n\t\t\t\t\t\t}\n\t\t\t\t\t\twhile ((matcher = elementMatchers[j++])) {\n\t\t\t\t\t\t\tif (matcher(elem, context || document, xml)) {\n\t\t\t\t\t\t\t\tresults.push(elem);\n\t\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t\tif (outermost) {\n\t\t\t\t\t\t\tdirruns = dirrunsUnique;\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\n\t\t\t\t\t// Track unmatched elements for set filters\n\t\t\t\t\tif (bySet) {\n\t\t\t\t\t\t// They will have gone through all possible matchers\n\t\t\t\t\t\tif ((elem = !matcher && elem)) {\n\t\t\t\t\t\t\tmatchedCount--;\n\t\t\t\t\t\t}\n\n\t\t\t\t\t\t// Lengthen the array for every element, matched or not\n\t\t\t\t\t\tif (seed) {\n\t\t\t\t\t\t\tunmatched.push(elem);\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\n\t\t\t\t// `i` is now the count of elements visited above, and adding it to `matchedCount`\n\t\t\t\t// makes the latter nonnegative.\n\t\t\t\tmatchedCount += i;\n\n\t\t\t\t// Apply set filters to unmatched elements\n\t\t\t\t// NOTE: This can be skipped if there are no unmatched elements (i.e., `matchedCount`\n\t\t\t\t// equals `i`), unless we didn't visit _any_ elements in the above loop because we have\n\t\t\t\t// no element matchers and no seed.\n\t\t\t\t// Incrementing an initially-string \"0\" `i` allows `i` to remain a string only in that\n\t\t\t\t// case, which will result in a \"00\" `matchedCount` that differs from `i` but is also\n\t\t\t\t// numerically zero.\n\t\t\t\tif (bySet && i !== matchedCount) {\n\t\t\t\t\tj = 0;\n\t\t\t\t\twhile ((matcher = setMatchers[j++])) {\n\t\t\t\t\t\tmatcher(unmatched, setMatched, context, xml);\n\t\t\t\t\t}\n\n\t\t\t\t\tif (seed) {\n\t\t\t\t\t\t// Reintegrate element matches to eliminate the need for sorting\n\t\t\t\t\t\tif (matchedCount > 0) {\n\t\t\t\t\t\t\twhile (i--) {\n\t\t\t\t\t\t\t\tif (!(unmatched[i] || setMatched[i])) {\n\t\t\t\t\t\t\t\t\tsetMatched[i] = pop.call(results);\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\n\t\t\t\t\t\t// Discard index placeholder values to get only actual matches\n\t\t\t\t\t\tsetMatched = condense(setMatched);\n\t\t\t\t\t}\n\n\t\t\t\t\t// Add matches to results\n\t\t\t\t\tpush.apply(results, setMatched);\n\n\t\t\t\t\t// Seedless set matches succeeding multiple successful matchers stipulate sorting\n\t\t\t\t\tif (\n\t\t\t\t\t\toutermost &&\n\t\t\t\t\t\t!seed &&\n\t\t\t\t\t\tsetMatched.length > 0 &&\n\t\t\t\t\t\tmatchedCount + setMatchers.length > 1\n\t\t\t\t\t) {\n\t\t\t\t\t\tSizzle.uniqueSort(results);\n\t\t\t\t\t}\n\t\t\t\t}\n\n\t\t\t\t// Override manipulation of globals by nested matchers\n\t\t\t\tif (outermost) {\n\t\t\t\t\tdirruns = dirrunsUnique;\n\t\t\t\t\toutermostContext = contextBackup;\n\t\t\t\t}\n\n\t\t\t\treturn unmatched;\n\t\t\t};\n\n\t\treturn bySet ? markFunction(superMatcher) : superMatcher;\n\t}\n\n\tcompile = Sizzle.compile = function (\n\t\tselector,\n\t\tmatch /* Internal Use Only */\n\t) {\n\t\tvar i,\n\t\t\tsetMatchers = [],\n\t\t\telementMatchers = [],\n\t\t\tcached = compilerCache[selector + \" \"];\n\n\t\tif (!cached) {\n\t\t\t// Generate a function of recursive functions that can be used to check each element\n\t\t\tif (!match) {\n\t\t\t\tmatch = tokenize(selector);\n\t\t\t}\n\t\t\ti = match.length;\n\t\t\twhile (i--) {\n\t\t\t\tcached = matcherFromTokens(match[i]);\n\t\t\t\tif (cached[expando]) {\n\t\t\t\t\tsetMatchers.push(cached);\n\t\t\t\t} else {\n\t\t\t\t\telementMatchers.push(cached);\n\t\t\t\t}\n\t\t\t}\n\n\t\t\t// Cache the compiled function\n\t\t\tcached = compilerCache(\n\t\t\t\tselector,\n\t\t\t\tmatcherFromGroupMatchers(elementMatchers, setMatchers)\n\t\t\t);\n\n\t\t\t// Save selector and tokenization\n\t\t\tcached.selector = selector;\n\t\t}\n\t\treturn cached;\n\t};\n\n\t/**\n\t * A low-level selection function that works with Sizzle's compiled\n\t * selector functions\n\t * @param {String|Function} selector A selector or a pre-compiled\n\t * selector function built with Sizzle.compile\n\t * @param {Element} context\n\t * @param {Array} [results]\n\t * @param {Array} [seed] A set of elements to match against\n\t */\n\tselect = Sizzle.select = function (selector, context, results, seed) {\n\t\tvar i,\n\t\t\ttokens,\n\t\t\ttoken,\n\t\t\ttype,\n\t\t\tfind,\n\t\t\tcompiled = typeof selector === \"function\" && selector,\n\t\t\tmatch = !seed && tokenize((selector = compiled.selector || selector));\n\n\t\tresults = results || [];\n\n\t\t// Try to minimize operations if there is only one selector in the list and no seed\n\t\t// (the latter of which guarantees us context)\n\t\tif (match.length === 1) {\n\t\t\t// Reduce context if the leading compound selector is an ID\n\t\t\ttokens = match[0] = match[0].slice(0);\n\t\t\tif (\n\t\t\t\ttokens.length > 2 &&\n\t\t\t\t(token = tokens[0]).type === \"ID\" &&\n\t\t\t\tcontext.nodeType === 9 &&\n\t\t\t\tdocumentIsHTML &&\n\t\t\t\tExpr.relative[tokens[1].type]\n\t\t\t) {\n\t\t\t\tcontext = (Expr.find[\"ID\"](\n\t\t\t\t\ttoken.matches[0].replace(runescape, funescape),\n\t\t\t\t\tcontext\n\t\t\t\t) || [])[0];\n\t\t\t\tif (!context) {\n\t\t\t\t\treturn results;\n\n\t\t\t\t\t// Precompiled matchers will still verify ancestry, so step up a level\n\t\t\t\t} else if (compiled) {\n\t\t\t\t\tcontext = context.parentNode;\n\t\t\t\t}\n\n\t\t\t\tselector = selector.slice(tokens.shift().value.length);\n\t\t\t}\n\n\t\t\t// Fetch a seed set for right-to-left matching\n\t\t\ti = matchExpr[\"needsContext\"].test(selector) ? 0 : tokens.length;\n\t\t\twhile (i--) {\n\t\t\t\ttoken = tokens[i];\n\n\t\t\t\t// Abort if we hit a combinator\n\t\t\t\tif (Expr.relative[(type = token.type)]) {\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t\tif ((find = Expr.find[type])) {\n\t\t\t\t\t// Search, expanding context for leading sibling combinators\n\t\t\t\t\tif (\n\t\t\t\t\t\t(seed = find(\n\t\t\t\t\t\t\ttoken.matches[0].replace(runescape, funescape),\n\t\t\t\t\t\t\t(rsibling.test(tokens[0].type) &&\n\t\t\t\t\t\t\t\ttestContext(context.parentNode)) ||\n\t\t\t\t\t\t\t\tcontext\n\t\t\t\t\t\t))\n\t\t\t\t\t) {\n\t\t\t\t\t\t// If seed is empty or no tokens remain, we can return early\n\t\t\t\t\t\ttokens.splice(i, 1);\n\t\t\t\t\t\tselector = seed.length && toSelector(tokens);\n\t\t\t\t\t\tif (!selector) {\n\t\t\t\t\t\t\tpush.apply(results, seed);\n\t\t\t\t\t\t\treturn results;\n\t\t\t\t\t\t}\n\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\t// Compile and execute a filtering function if one is not provided\n\t\t// Provide `match` to avoid retokenization if we modified the selector above\n\t\t(compiled || compile(selector, match))(\n\t\t\tseed,\n\t\t\tcontext,\n\t\t\t!documentIsHTML,\n\t\t\tresults,\n\t\t\t!context ||\n\t\t\t\t(rsibling.test(selector) && testContext(context.parentNode)) ||\n\t\t\t\tcontext\n\t\t);\n\t\treturn results;\n\t};\n\n\t// One-time assignments\n\n\t// Sort stability\n\tsupport.sortStable = expando.split(\"\").sort(sortOrder).join(\"\") === expando;\n\n\t// Support: Chrome 14-35+\n\t// Always assume duplicates if they aren't passed to the comparison function\n\tsupport.detectDuplicates = !!hasDuplicate;\n\n\t// Initialize against the default document\n\tsetDocument();\n\n\t// Support: Webkit<537.32 - Safari 6.0.3/Chrome 25 (fixed in Chrome 27)\n\t// Detached nodes confoundingly follow *each other*\n\tsupport.sortDetached = assert(function (el) {\n\t\t// Should return 1, but returns 4 (following)\n\t\treturn el.compareDocumentPosition(document.createElement(\"fieldset\")) & 1;\n\t});\n\n\t// Support: IE<8\n\t// Prevent attribute/property \"interpolation\"\n\t// https://msdn.microsoft.com/en-us/library/ms536429%28VS.85%29.aspx\n\tif (\n\t\t!assert(function (el) {\n\t\t\tel.innerHTML = \"<a href='#'></a>\";\n\t\t\treturn el.firstChild.getAttribute(\"href\") === \"#\";\n\t\t})\n\t) {\n\t\taddHandle(\"type|href|height|width\", function (elem, name, isXML) {\n\t\t\tif (!isXML) {\n\t\t\t\treturn elem.getAttribute(name, name.toLowerCase() === \"type\" ? 1 : 2);\n\t\t\t}\n\t\t});\n\t}\n\n\t// Support: IE<9\n\t// Use defaultValue in place of getAttribute(\"value\")\n\tif (\n\t\t!support.attributes ||\n\t\t!assert(function (el) {\n\t\t\tel.innerHTML = \"<input/>\";\n\t\t\tel.firstChild.setAttribute(\"value\", \"\");\n\t\t\treturn el.firstChild.getAttribute(\"value\") === \"\";\n\t\t})\n\t) {\n\t\taddHandle(\"value\", function (elem, _name, isXML) {\n\t\t\tif (!isXML && elem.nodeName.toLowerCase() === \"input\") {\n\t\t\t\treturn elem.defaultValue;\n\t\t\t}\n\t\t});\n\t}\n\n\t// Support: IE<9\n\t// Use getAttributeNode to fetch booleans when getAttribute lies\n\tif (\n\t\t!assert(function (el) {\n\t\t\treturn el.getAttribute(\"disabled\") == null;\n\t\t})\n\t) {\n\t\taddHandle(booleans, function (elem, name, isXML) {\n\t\t\tvar val;\n\t\t\tif (!isXML) {\n\t\t\t\treturn elem[name] === true\n\t\t\t\t\t? name.toLowerCase()\n\t\t\t\t\t: (val = elem.getAttributeNode(name)) && val.specified\n\t\t\t\t\t? val.value\n\t\t\t\t\t: null;\n\t\t\t}\n\t\t});\n\t}\n\n\t// EXPOSE\n\tvar _sizzle = window.Sizzle;\n\n\tSizzle.noConflict = function () {\n\t\tif (window.Sizzle === Sizzle) {\n\t\t\twindow.Sizzle = _sizzle;\n\t\t}\n\n\t\treturn Sizzle;\n\t};\n\n\tif (typeof define === \"function\" && define.amd) {\n\t\tdefine(function () {\n\t\t\treturn Sizzle;\n\t\t});\n\n\t\t// Sizzle requires that there be a global window in Common-JS like environments\n\t} else if (typeof module !== \"undefined\" && module.exports) {\n\t\tmodule.exports = Sizzle;\n\t} else {\n\t\twindow.Sizzle = Sizzle;\n\t}\n\n\t// EXPOSE\n};\n","import Sizzle from \"./sizzle.js\";\nexport const DOM = Sizzle;\n//# sourceMappingURL=sizzle-types.js.map","import { DOM as NWAPI } from \"./nwsapi-types.js\";\nimport { DOM as Sizzle } from \"./sizzle-types.js\";\nlet codeGenerationAllowed = null;\nexport function getSelectorEngine() {\n if (codeGenerationAllowed === null) {\n try {\n new Function(\"\");\n codeGenerationAllowed = true;\n } catch (e) {\n codeGenerationAllowed = false;\n }\n }\n if (codeGenerationAllowed) {\n return NWAPI;\n } else {\n return Sizzle;\n }\n}\n/**\n * Explicitly disable querySelector/All code generation with the `Function`\n * constructor forcing the Sizzle engine. Enables those APIs on platforms\n * like Deno Deploy that don't allow code generation.\n */ export function disableCodeGeneration() {\n codeGenerationAllowed = false;\n}\n//# sourceMappingURL=selectors.js.map","import { CTOR_KEY } from \"../constructor-lock.js\";\nimport { Comment, Node, NodeType, Text } from \"./node.js\";\nimport { NodeList, nodeListMutatorSym } from \"./node-list.js\";\nimport { Element } from \"./element.js\";\nimport { DocumentFragment } from \"./document-fragment.js\";\nimport { HTMLTemplateElement } from \"./elements/html-template-element.js\";\nimport { getSelectorEngine } from \"./selectors/selectors.js\";\nimport { getElementsByClassName } from \"./utils.js\";\nimport UtilTypes from \"./utils-types.js\";\nimport { getUpperCase } from \"./string-cache.js\";\nexport class DOMImplementation {\n constructor(key){\n if (key !== CTOR_KEY) {\n throw new TypeError(\"Illegal constructor.\");\n }\n }\n createDocument() {\n throw new Error(\"Unimplemented\"); // TODO\n }\n createHTMLDocument(titleStr) {\n titleStr += \"\";\n const doc = new HTMLDocument(CTOR_KEY);\n const docType = new DocumentType(\"html\", \"\", \"\", CTOR_KEY);\n doc.appendChild(docType);\n const html = new Element(\"html\", doc, [], CTOR_KEY);\n html._setOwnerDocument(doc);\n const head = new Element(\"head\", html, [], CTOR_KEY);\n const body = new Element(\"body\", html, [], CTOR_KEY);\n const title = new Element(\"title\", head, [], CTOR_KEY);\n const titleText = new Text(titleStr);\n title.appendChild(titleText);\n doc.head = head;\n doc.body = body;\n return doc;\n }\n createDocumentType(qualifiedName, publicId, systemId) {\n const doctype = new DocumentType(qualifiedName, publicId, systemId, CTOR_KEY);\n return doctype;\n }\n}\nexport class DocumentType extends Node {\n #qualifiedName = \"\";\n #publicId = \"\";\n #systemId = \"\";\n constructor(name, publicId, systemId, key){\n super(\"html\", NodeType.DOCUMENT_TYPE_NODE, null, key);\n this.#qualifiedName = name;\n this.#publicId = publicId;\n this.#systemId = systemId;\n }\n get name() {\n return this.#qualifiedName;\n }\n get publicId() {\n return this.#publicId;\n }\n get systemId() {\n return this.#systemId;\n }\n _shallowClone() {\n return new DocumentType(this.#qualifiedName, this.#publicId, this.#systemId, CTOR_KEY);\n }\n}\nexport class Document extends Node {\n head = null;\n body = null;\n implementation;\n #documentURI = \"about:blank\";\n #nwapi = null;\n constructor(){\n super(\"#document\", NodeType.DOCUMENT_NODE, null, CTOR_KEY);\n this.implementation = new DOMImplementation(CTOR_KEY);\n }\n _shallowClone() {\n return new Document();\n }\n // Expose the document's NWAPI for Element's access to\n // querySelector/querySelectorAll\n get _nwapi() {\n return this.#nwapi || (this.#nwapi = getSelectorEngine()(this));\n }\n get documentURI() {\n return this.#documentURI;\n }\n get title() {\n return this.querySelector(\"title\")?.textContent || \"\";\n }\n set title(value) {\n let titleElement = this.querySelector(\"title\");\n if (!titleElement) {\n const { head } = this;\n if (!head) return;\n titleElement = this.createElement(\"title\");\n head.appendChild(titleElement);\n }\n titleElement.textContent = value;\n }\n get cookie() {\n return \"\"; // TODO\n }\n set cookie(newCookie) {\n // TODO\n }\n get visibilityState() {\n return \"visible\";\n }\n get hidden() {\n return false;\n }\n get compatMode() {\n return \"CSS1Compat\";\n }\n get documentElement() {\n for (const node of this.childNodes){\n if (node.nodeType === NodeType.ELEMENT_NODE) {\n return node;\n }\n }\n return null;\n }\n get doctype() {\n for (const node of this.childNodes){\n if (node.nodeType === NodeType.DOCUMENT_TYPE_NODE) {\n return node;\n }\n }\n return null;\n }\n get childElementCount() {\n let count = 0;\n for (const { nodeType } of this.childNodes){\n if (nodeType === NodeType.ELEMENT_NODE) {\n count++;\n }\n }\n return count;\n }\n appendChild(child) {\n super.appendChild(child);\n child._setOwnerDocument(this);\n return child;\n }\n createElement(tagName, options) {\n tagName = getUpperCase(tagName);\n switch(tagName){\n case \"TEMPLATE\":\n {\n const frag = new DocumentFragment();\n const elm = new HTMLTemplateElement(null, [], CTOR_KEY, frag);\n elm._setOwnerDocument(this);\n return elm;\n }\n default:\n {\n const elm = new Element(tagName, null, [], CTOR_KEY);\n elm._setOwnerDocument(this);\n return elm;\n }\n }\n }\n createElementNS(namespace, qualifiedName, options) {\n if (namespace === \"http://www.w3.org/1999/xhtml\") {\n return this.createElement(qualifiedName, options);\n } else {\n throw new Error(`createElementNS: \"${namespace}\" namespace unimplemented`); // TODO\n }\n }\n createTextNode(data) {\n return new Text(data);\n }\n createComment(data) {\n return new Comment(data);\n }\n createDocumentFragment() {\n const fragment = new DocumentFragment();\n fragment._setOwnerDocument(this);\n return fragment;\n }\n importNode(node, deep = false) {\n const copy = node.cloneNode(deep);\n copy._setOwnerDocument(this);\n return copy;\n }\n adoptNode(node) {\n if (node instanceof Document) {\n throw new DOMException(\"Adopting a Document node is not supported.\", \"NotSupportedError\");\n }\n node._setParent(null);\n node._setOwnerDocument(this);\n return node;\n }\n // FIXME: This is a bad solution. The correct solution\n // would be to make `.body` and `.head` dynamic getters,\n // but that would be a breaking change since `.body`\n // and `.head` would need to be typed as `Element | null`.\n // Currently they're typed as `Element` which is incorrect...\n cloneNode(deep) {\n const doc = super.cloneNode(deep);\n for (const child of doc.documentElement?.childNodes || []){\n switch(child.nodeName){\n case \"BODY\":\n {\n doc.body = child;\n break;\n }\n case \"HEAD\":\n {\n doc.head = child;\n break;\n }\n }\n }\n return doc;\n }\n querySelector(selectors) {\n return this._nwapi.first(selectors, this);\n }\n querySelectorAll(selectors) {\n const nodeList = new NodeList();\n const mutator = nodeList[nodeListMutatorSym]();\n for (const match of this._nwapi.select(selectors, this)){\n mutator.push(match);\n }\n return nodeList;\n }\n // TODO: DRY!!!\n getElementById(id) {\n if (!this._hasInitializedChildNodes()) {\n return null;\n }\n for (const child of this.childNodes){\n if (child.nodeType === NodeType.ELEMENT_NODE) {\n if (child.id === id) {\n return child;\n }\n const search = child.getElementById(id);\n if (search) {\n return search;\n }\n }\n }\n return null;\n }\n getElementsByTagName(tagName) {\n if (tagName === \"*\") {\n return this.documentElement ? this._getElementsByTagNameWildcard(this.documentElement, []) : [];\n } else {\n return this._getElementsByTagName(getUpperCase(tagName), []);\n }\n }\n _getElementsByTagNameWildcard(node, search) {\n for (const child of this.childNodes){\n if (child.nodeType === NodeType.ELEMENT_NODE) {\n search.push(child);\n child._getElementsByTagNameWildcard(search);\n }\n }\n return search;\n }\n _getElementsByTagName(tagName, search) {\n for (const child of this.childNodes){\n if (child.nodeType === NodeType.ELEMENT_NODE) {\n if (child.tagName === tagName) {\n search.push(child);\n }\n child._getElementsByTagName(tagName, search);\n }\n }\n return search;\n }\n getElementsByTagNameNS(_namespace, localName) {\n return this.getElementsByTagName(localName);\n }\n getElementsByClassName(className) {\n return getElementsByClassName(this, className.trim().split(/\\s+/), []);\n }\n hasFocus() {\n return true;\n }\n}\nexport class HTMLDocument extends Document {\n constructor(key){\n if (key !== CTOR_KEY) {\n throw new TypeError(\"Illegal constructor.\");\n }\n super();\n }\n _shallowClone() {\n return new HTMLDocument(CTOR_KEY);\n }\n}\nUtilTypes.Document = Document;\n//# sourceMappingURL=document.js.map","import { parse, parseFrag } from \"./parser.js\";\nimport { CTOR_KEY } from \"./constructor-lock.js\";\nimport { Comment, NodeType, Text } from \"./dom/node.js\";\nimport { DocumentType } from \"./dom/document.js\";\nimport { DocumentFragment } from \"./dom/document-fragment.js\";\nimport { HTMLTemplateElement } from \"./dom/elements/html-template-element.js\";\nimport { Element } from \"./dom/element.js\";\nexport function nodesFromString(html) {\n const parsed = JSON.parse(parse(html));\n const node = nodeFromArray(parsed, null);\n return node;\n}\nexport function fragmentNodesFromString(html, contextLocalName) {\n const parsed = JSON.parse(parseFrag(html, contextLocalName));\n const node = nodeFromArray(parsed, null);\n return node;\n}\nfunction nodeFromArray(data, parentNode) {\n // For reference only:\n // type node = [NodeType, nodeName, attributes, node[]]\n // | [NodeType, characterData]\n // <template> element gets special treatment, until\n // we implement all the HTML elements\n if (data[1] === \"template\") {\n const content = nodeFromArray(data[3], null);\n const contentFrag = new DocumentFragment();\n const fragMutator = contentFrag._getChildNodesMutator();\n for (const child of content.childNodes){\n fragMutator.push(child);\n child._setParent(contentFrag);\n }\n return new HTMLTemplateElement(parentNode, data[2], CTOR_KEY, contentFrag);\n }\n const elm = new Element(data[1], parentNode, data[2], CTOR_KEY);\n const childNodes = elm._getChildNodesMutator();\n let childNode;\n for (const child of data.slice(3)){\n switch(child[0]){\n case NodeType.TEXT_NODE:\n childNode = new Text(child[1]);\n childNode.parentNode = elm;\n childNodes.push(childNode);\n break;\n case NodeType.COMMENT_NODE:\n childNode = new Comment(child[1]);\n childNode.parentNode = elm;\n childNodes.push(childNode);\n break;\n case NodeType.DOCUMENT_NODE:\n case NodeType.ELEMENT_NODE:\n nodeFromArray(child, elm);\n break;\n case NodeType.DOCUMENT_TYPE_NODE:\n childNode = new DocumentType(child[1], child[2], child[3], CTOR_KEY);\n childNode.parentNode = elm;\n childNodes.push(childNode);\n break;\n }\n }\n return elm;\n}\n//# sourceMappingURL=deserialize.js.map","import { CTOR_KEY } from \"../constructor-lock.js\";\nimport { nodesFromString } from \"../deserialize.js\";\nimport { DocumentType, HTMLDocument } from \"./document.js\";\nexport class DOMParser {\n parseFromString(source, mimeType) {\n if (mimeType !== \"text/html\") {\n throw new Error(`DOMParser: \"${mimeType}\" unimplemented`); // TODO\n }\n const doc = new HTMLDocument(CTOR_KEY);\n const fakeDoc = nodesFromString(String(source));\n let htmlNode = null;\n let hasDoctype = false;\n for (const child of [\n ...fakeDoc.childNodes\n ]){\n doc.appendChild(child);\n if (child instanceof DocumentType) {\n hasDoctype = true;\n } else if (child.nodeName === \"HTML\") {\n htmlNode = child;\n }\n }\n if (!hasDoctype) {\n const docType = new DocumentType(\"html\", \"\", \"\", CTOR_KEY);\n // doc.insertBefore(docType, doc.firstChild);\n if (doc.childNodes.length === 0) {\n doc.appendChild(docType);\n } else {\n doc.insertBefore(docType, doc.childNodes[0]);\n }\n }\n if (htmlNode) {\n for (const child of htmlNode.childNodes){\n switch(child.tagName){\n case \"HEAD\":\n doc.head = child;\n break;\n case \"BODY\":\n doc.body = child;\n break;\n }\n }\n }\n return doc;\n }\n}\n//# sourceMappingURL=dom-parser.js.map","export { nodesFromString } from \"./deserialize.js\";\nexport * from \"./dom/node.js\";\nexport * from \"./dom/element.js\";\nexport * from \"./dom/document.js\";\nexport * from \"./dom/document-fragment.js\";\nexport * from \"./dom/dom-parser.js\";\nexport * from \"./dom/elements/html-template-element.js\";\nexport { disableCodeGeneration as denoDomDisableQuerySelectorCodeGeneration } from \"./dom/selectors/selectors.js\";\n// Re-export private constructors without constructor signature\nimport { CharacterData as ConstructibleCharacterData, Node as ConstructibleNode } from \"./dom/node.js\";\nimport { HTMLDocument as ConstructibleHTMLDocument } from \"./dom/document.js\";\nimport { Attr as ConstructibleAttr, Element as ConstructibleElement } from \"./dom/element.js\";\nexport const Node = ConstructibleNode;\nexport const HTMLDocument = ConstructibleHTMLDocument;\nexport const CharacterData = ConstructibleCharacterData;\nexport const Element = ConstructibleElement;\nexport const Attr = ConstructibleAttr;\nexport { NodeListPublic as NodeList } from \"./dom/node-list.js\";\nexport { HTMLCollectionPublic as HTMLCollection } from \"./dom/html-collection.js\";\nimport { NodeList } from \"./dom/node-list.js\";\nimport { HTMLCollection } from \"./dom/html-collection.js\";\n// Prevent childNodes and HTMLCollections from being seen as an arrays\nconst oldHasInstance = Array[Symbol.hasInstance];\nObject.defineProperty(Array, Symbol.hasInstance, {\n value (value) {\n switch(value?.constructor){\n case HTMLCollection:\n case NodeList:\n return false;\n default:\n return oldHasInstance.call(this, value);\n }\n },\n configurable: true\n});\nconst oldIsArray = Array.isArray;\nObject.defineProperty(Array, \"isArray\", {\n value: (value)=>{\n switch(value?.constructor){\n case HTMLCollection:\n case NodeList:\n return false;\n default:\n return oldIsArray.call(Array, value);\n }\n },\n configurable: true\n});\n//# sourceMappingURL=api.js.map","/**\n * @module\n *\n * This module exposes the Deno DOM API with the WASM (Web Assembly) backend\n *\n * @example\n * ```typescript\n * import { DOMParser, Element } from \"jsr:@b-fuze/deno-dom\";\n *\n * const doc = new DOMParser().parseFromString(\n * `\n * <h1>Hello World!</h1>\n * <p>Hello from <a href=\"https://deno.land/\">Deno!</a></p>\n * `,\n * \"text/html\",\n * );\n *\n * const p = doc.querySelector(\"p\")!;\n * console.log(p.textContent); // \"Hello from Deno!\"\n * ```\n */ import { parse, parse_frag } from \"./build/deno-wasm/deno-wasm-dynamic.js\";\nimport { register } from \"./src/parser.js\";\nregister(parse, parse_frag);\nexport * from \"./src/api.js\";\n//# sourceMappingURL=deno-dom-wasm.js.map","/**\n * Copyright (c) 2025-2026 kurage(@umitsukidev)\n *\n * This software is released under the MIT License.\n * https://opensource.org/licenses/MIT\n */\n\nimport type { DOMParser as NodeDOMParser } from \"@b-fuze/deno-dom\";\n\nexport let DOMParser: typeof NodeDOMParser =\n\tglobalThis.DOMParser as unknown as typeof NodeDOMParser;\n\nexport const setDOMParser = (parser: typeof NodeDOMParser): void => {\n\tDOMParser = parser;\n};\n","/**\n * Copyright (c) 2025-2026 kurage(@umitsukidev)\n *\n * This software is released under the MIT License.\n * https://opensource.org/licenses/MIT\n */\n\nimport { DOMParser as NodeDOMParser } from \"@b-fuze/deno-dom\";\nimport { setDOMParser } from \"./dom.ts\";\n\nsetDOMParser(NodeDOMParser);\n","/**\n * Copyright (c) 2025-2026 kurage(@umitsukidev)\n *\n * This software is released under the MIT License.\n * https://opensource.org/licenses/MIT\n */\n\nimport { DOMParser } from \"../dom.ts\";\nimport type { Element, HTMLDocument } from \"#dom-types\";\n\n/**\n * A class representing a bookmark tree in Netscape Bookmark format\n *\n * This class extends Map and manages folders (BookmarksTree) and bookmarks (URL strings)\n * in a hierarchical structure.\n *\n * @example\n * ```typescript\n * const tree = new BookmarksTree();\n * tree.set(\"Google\", \"https://google.com\");\n *\n * const folder = new BookmarksTree();\n * folder.set(\"GitHub\", \"https://github.com\");\n * tree.set(\"Development\", folder);\n * ```\n */\nexport class BookmarksTree extends Map<string, string | BookmarksTree> {\n\t/**\n\t * Creates a new BookmarksTree instance\n\t */\n\tconstructor() {\n\t\tsuper();\n\t}\n\n\t/**\n\t * Converts the BookmarksTree to a JSON object\n\t *\n\t * Folders are recursively converted to objects, and bookmarks are preserved as strings.\n\t *\n\t * @returns JSON object representation of the bookmark data\n\t *\n\t * @example\n\t * ```typescript\n\t * const tree = new BookmarksTree();\n\t * tree.set(\"Google\", \"https://google.com\");\n\t * const json = tree.toJSON();\n\t * // { \"Google\": \"https://google.com\" }\n\t * ```\n\t */\n\ttoJSON(): Record<string, unknown> {\n\t\tconst json: Record<string, unknown> = {};\n\n\t\tfor (const [key, value] of this.entries()) {\n\t\t\tif (typeof value === \"string\") {\n\t\t\t\tjson[key] = value;\n\t\t\t} else if (value instanceof BookmarksTree) {\n\t\t\t\tjson[key] = value.toJSON();\n\t\t\t}\n\t\t}\n\n\t\treturn json;\n\t}\n\n\t/**\n\t * Creates a BookmarksTree from a JSON object\n\t *\n\t * String properties are treated as bookmarks, and object properties are\n\t * recursively processed as folders.\n\t *\n\t * @param json The source JSON object to convert\n\t * @returns A new BookmarksTree instance\n\t *\n\t * @example\n\t * ```typescript\n\t * const json = { \"Google\": \"https://google.com\", \"Development\": { \"GitHub\": \"https://github.com\" } };\n\t * const tree = BookmarksTree.fromJSON(json);\n\t * ```\n\t */\n\tstatic fromJSON(json: Record<string, unknown>): BookmarksTree {\n\t\tconst tree = new BookmarksTree();\n\n\t\tif (typeof json === \"object\" && json !== null) {\n\t\t\tfor (const [key, value] of Object.entries(json)) {\n\t\t\t\tif (typeof value === \"string\") {\n\t\t\t\t\ttree.set(key, value);\n\t\t\t\t} else if (typeof value === \"object\" && value !== null) {\n\t\t\t\t\ttree.set(key, BookmarksTree.fromJSON(value as Record<string, unknown>));\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\treturn tree;\n\t}\n\n\t/**\n\t * Creates a BookmarksTree from an HTML document (Netscape Bookmark format)\n\t *\n\t * Parses Netscape Bookmark format HTML and generates a BookmarksTree that preserves\n\t * the hierarchical structure. H3 elements within DT elements are treated as folders,\n\t * and A elements are treated as bookmarks.\n\t *\n\t * @param dom The HTML document to parse\n\t * @returns A new BookmarksTree instance\n\t *\n\t * @example\n\t * ```typescript\n\t * const parser = new DOMParser();\n\t * const dom = parser.parseFromString(bookmarkHtml, \"text/html\");\n\t * const tree = BookmarksTree.fromDOM(dom);\n\t * ```\n\t */\n\tstatic fromDOM(dom: HTMLDocument): BookmarksTree {\n\t\tconst tree = new BookmarksTree();\n\t\tconst document = dom;\n\n\t\tconst processElement = (element: Element, currentTree: BookmarksTree) => {\n\t\t\tconst children = Array.from(element.children) as Element[];\n\n\t\t\tfor (let i = 0; i < children.length; i++) {\n\t\t\t\tconst child = children[i];\n\n\t\t\t\tif (child.tagName === \"DT\") {\n\t\t\t\t\tconst h3 = child.querySelector(\"h3\");\n\t\t\t\t\tconst link = child.querySelector(\"a\");\n\n\t\t\t\t\tif (h3) {\n\t\t\t\t\t\t// フォルダの場合\n\t\t\t\t\t\tconst folderName = h3.textContent?.trim() || \"\";\n\t\t\t\t\t\tif (folderName) {\n\t\t\t\t\t\t\tconst folderTree = new BookmarksTree();\n\t\t\t\t\t\t\tcurrentTree.set(folderName, folderTree);\n\t\t\t\t\t\t\tprocessElement(child, folderTree);\n\t\t\t\t\t\t}\n\t\t\t\t\t} else if (link) {\n\t\t\t\t\t\t// リンクの場合\n\t\t\t\t\t\tconst href = link.getAttribute(\"href\");\n\t\t\t\t\t\tconst title = link.textContent?.trim() || \"\";\n\t\t\t\t\t\tif (href && title) {\n\t\t\t\t\t\t\tcurrentTree.set(title, href);\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t} else if (child.tagName === \"DL\") {\n\t\t\t\t\t// ネストしたDLタグの場合も処理\n\t\t\t\t\tprocessElement(child, currentTree);\n\t\t\t\t}\n\t\t\t}\n\t\t};\n\n\t\t// HTMLのBODY全体から処理を開始\n\t\tconst body = document.body;\n\t\tif (body) {\n\t\t\tprocessElement(body, tree);\n\t\t}\n\n\t\treturn tree;\n\t}\n\n\t/**\n\t * Converts the BookmarksTree to an HTML document\n\t *\n\t * Generates an HTML document in Netscape Bookmark format.\n\t *\n\t * @returns HTML document in Netscape Bookmark format\n\t *\n\t * @example\n\t * ```typescript\n\t * const tree = new BookmarksTree();\n\t * tree.set(\"Google\", \"https://google.com\");\n\t * const dom = tree.toDOM();\n\t * ```\n\t */\n\ttoDOM(): HTMLDocument {\n\t\treturn new DOMParser().parseFromString(this.HTMLString, \"text/html\");\n\t}\n\n\t/**\n\t * Gets the BookmarksTree as an HTML string in Netscape Bookmark format\n\t *\n\t * Generates a complete HTML document string including DOCTYPE, metadata, and body\n\t * in Netscape Bookmark format.\n\t *\n\t * @returns HTML string in Netscape Bookmark format\n\t *\n\t * @example\n\t * ```typescript\n\t * const tree = new BookmarksTree();\n\t * tree.set(\"Google\", \"https://google.com\");\n\t * const html = tree.HTMLString;\n\t * console.log(html); // <!DOCTYPE NETSCAPE-Bookmark-file-1>...\n\t * ```\n\t */\n\tget HTMLString(): string {\n\t\tconst escapeHtml = (text: string): string => {\n\t\t\treturn text\n\t\t\t\t.replace(/&/g, \"&\")\n\t\t\t\t.replace(/</g, \"<\")\n\t\t\t\t.replace(/>/g, \">\")\n\t\t\t\t.replace(/\"/g, \""\")\n\t\t\t\t.replace(/'/g, \"'\");\n\t\t};\n\n\t\tconst createBookmarkList = (tree: BookmarksTree, indent: string = \"\"): string => {\n\t\t\tlet html = `${indent}<DL><p>\\n`;\n\n\t\t\tfor (const [key, value] of tree.entries()) {\n\t\t\t\tif (typeof value === \"string\") {\n\t\t\t\t\t// ブックマークの場合: <DT><A HREF=\"url\">タイトル</A>\n\t\t\t\t\thtml += `${indent} <DT><A HREF=\"${escapeHtml(value)}\">${escapeHtml(key)}</A>\\n`;\n\t\t\t\t} else if (value instanceof BookmarksTree) {\n\t\t\t\t\t// フォルダの場合: <DT><H3>フォルダ名</H3>\n\t\t\t\t\thtml += `${indent} <DT><H3>${escapeHtml(key)}</H3>\\n`;\n\t\t\t\t\thtml += createBookmarkList(value, indent + \" \");\n\t\t\t\t\thtml += `${indent} </DL><p>\\n`;\n\t\t\t\t}\n\t\t\t}\n\n\t\t\tif (indent === \"\") {\n\t\t\t\t// ルートレベルの場合は閉じタグを追加\n\t\t\t\thtml += `</DL>\\n`;\n\t\t\t}\n\n\t\t\treturn html;\n\t\t};\n\n\t\tconst htmlTemplate = `<!DOCTYPE NETSCAPE-Bookmark-file-1>\n<HTML>\n<META HTTP-EQUIV=\"Content-Type\" CONTENT=\"text/html; charset=UTF-8\">\n<TITLE>Bookmark</TITLE>\n<H1>Bookmark</H1>\n<BODY>\n${createBookmarkList(this)}</BODY>\n</HTML>`;\n\t\treturn htmlTemplate;\n\t}\n\n\t/**\n\t * @deprecated Use {@link HTMLString} instead.\n\t *\n\t * Gets the BookmarksTree as an HTML string in Netscape Bookmark format.\n\t */\n\tget HTMLText(): string {\n\t\treturn this.HTMLString;\n\t}\n}\n","/**\n * Copyright (c) 2025-2026 kurage(@umitsukidev)\n *\n * This software is released under the MIT License.\n * https://opensource.org/licenses/MIT\n */\n\nimport { DOMParser } from \"../dom.ts\";\nimport type { HTMLDocument } from \"#dom-types\";\nimport { BookmarksTree } from \"../BookmarksTree/index.ts\";\n\n/**\n * A parser for Netscape Bookmark format files\n *\n * This class provides static methods to parse Netscape Bookmark format HTML strings\n * and convert them into BookmarksTree instances for easier manipulation.\n *\n * @example\n * ```typescript\n * const bookmarkHtml = `<!DOCTYPE NETSCAPE-Bookmark-file-1>\n * <HTML>\n * <BODY>\n * <DL><p>\n * <DT><A HREF=\"https://google.com\">Google</A>\n * <DT><H3>Development</H3>\n * <DL><p>\n * <DT><A HREF=\"https://github.com\">GitHub</A>\n * </DL><p>\n * </DL>\n * </BODY>\n * </HTML>`;\n *\n * const tree = BookmarksParser.parse(bookmarkHtml);\n * ```\n */\nexport class BookmarksParser {\n\t/**\n\t * Alias for the {@link parseFromHTMLString} method.\n\t *\n\t * @param htmlString HTML string in Netscape Bookmark format\n\t * @returns The parsed BookmarksTree\n\t *\n\t * @example\n\t * ```typescript\n\t * const bookmarkHtml = `<!DOCTYPE NETSCAPE-Bookmark-file-1>\n\t * <HTML>\n\t * <BODY>\n\t * <DL><p>\n\t * <DT><A HREF=\"https://google.com\">Google</A>\n\t * <DT><H3>Development</H3>\n\t * <DL><p>\n\t * <DT><A HREF=\"https://github.com\">GitHub</A>\n\t * </DL><p>\n\t * </DL>\n\t * </BODY>\n\t * </HTML>`;\n\t *\n\t * const tree = BookmarksParser.parse(bookmarkHtml);\n\t * ```\n\t */\n\tstatic parse(htmlString: string): BookmarksTree {\n\t\treturn this.parseFromHTMLString(htmlString);\n\t}\n\n\t/**\n\t * Parses a Netscape Bookmark format HTML string and returns a BookmarksTree.\n\t *\n\t * @param htmlString HTML string in Netscape Bookmark format\n\t * @returns The parsed BookmarksTree\n\t *\n\t * @example\n\t * ```typescript\n\t * const bookmarkHtml = `<!DOCTYPE NETSCAPE-Bookmark-file-1>\n\t * <HTML>\n\t * <BODY>\n\t * <DL><p>\n\t * <DT><A HREF=\"https://google.com\">Google</A>\n\t * <DT><H3>Development</H3>\n\t * <DL><p>\n\t * <DT><A HREF=\"https://github.com\">GitHub</A>\n\t * </DL><p>\n\t * </DL>\n\t * </BODY>\n\t * </HTML>`;\n\t *\n\t * const tree = BookmarksParser.parseFromHTMLString(bookmarkHtml);\n\t * ```\n\t */\n\tstatic parseFromHTMLString(htmlString: string): BookmarksTree {\n\t\tconst dom = new DOMParser().parseFromString(htmlString, \"text/html\");\n\t\tconst tree = BookmarksTree.fromDOM(dom);\n\t\treturn tree;\n\t}\n\n\t/**\n\t * Creates a BookmarksTree from an existing HTMLDocument.\n\t *\n\t * This is an alias for {@link BookmarksTree.fromDOM}.\n\t *\n\t * Use this when you already have a parsed HTMLDocument and want to convert it to a BookmarksTree.\n\t *\n\t * @param dom An HTMLDocument instance\n\t * @returns The parsed BookmarksTree\n\t *\n\t * @example\n\t * ```typescript\n\t * const dom = new DOMParser().parseFromString(bookmarkHtml, \"text/html\");\n\t * const tree = BookmarksParser.parseFromDOM(dom);\n\t * ```\n\t */\n\tstatic parseFromDOM(dom: HTMLDocument): BookmarksTree {\n\t\treturn BookmarksTree.fromDOM(dom);\n\t}\n\n\t/**\n\t * Parses a JSON string and returns a BookmarksTree.\n\t *\n\t * @param jsonString JSON string representing the bookmark structure\n\t * @returns The parsed BookmarksTree\n\t *\n\t * @example\n\t * ```typescript\n\t * const json = '{\"Google\":\"https://google.com\",\"Development\":{\"GitHub\":\"https://github.com\"}}';\n\t * const tree = BookmarksParser.parseFromJSONString(json);\n\t * ```\n\t */\n\tstatic parseFromJSONString(jsonString: string): BookmarksTree {\n\t\tconst obj = JSON.parse(jsonString);\n\t\treturn BookmarksTree.fromJSON(obj);\n\t}\n\n\t/**\n\t * Parses a JSON object and returns a BookmarksTree.\n\t *\n\t * This is an alias for {@link BookmarksTree.fromJSON}.\n\t *\n\t * @param jsonObj JSON object representing the bookmark structure\n\t * @returns The parsed BookmarksTree\n\t *\n\t * @example\n\t * ```typescript\n\t * const obj = { \"Google\": \"https://google.com\", \"Development\": { \"GitHub\": \"https://github.com\" } };\n\t * const tree = BookmarksParser.parseFromJSON(obj);\n\t * ```\n\t */\n\tstatic parseFromJSON(jsonObj: Record<string, unknown>): BookmarksTree {\n\t\treturn BookmarksTree.fromJSON(jsonObj);\n\t}\n}\n"],"x_google_ignoreList":[0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23],"mappings":";AAGA,SAAgB,eAAe,aAAa;CAC1C,MAAM,EACJ,QACA,qBACA,mBACA,oBACA,iBACA,YACA,oBACE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