{"version":3,"names":["ownerDocument","node","document"],"sources":["owner-document.ts"],"sourcesContent":["/**\n * Returns the document that owns `node`, falling back to the ambient\n * `document` global when `node` is null or detached. Use this instead of\n * reading `document` directly so realm-sensitive checks (e.g. `instanceof`)\n * work correctly across iframes.\n */\nexport function ownerDocument(node: Node | null | undefined): Document {\n\treturn node?.ownerDocument ?? document;\n}\n"],"mappings":"AAAA;AACA;AACA;AACA;AACA;AACA;AACA,OAAO,SAASA,aAAaA,CAACC,IAA6B,EAAY;EACtE,OAAOA,IAAI,EAAED,aAAa,IAAIE,QAAQ;AACvC","ignoreList":[]}