mirror of
https://github.com/idanoo/GoScrobble.git
synced 2024-11-25 09:55:15 +00:00
1 line
6.8 KiB
Plaintext
1 line
6.8 KiB
Plaintext
|
{"version":3,"sources":["../sources/util.ts"],"names":["getLocalName","element","localName","tagName","toLowerCase","isElement","node","nodeType","ELEMENT_NODE","isHTMLTableCaptionElement","isHTMLInputElement","isHTMLOptGroupElement","isHTMLSelectElement","isHTMLTableElement","isHTMLTextAreaElement","safeWindow","ownerDocument","defaultView","TypeError","isHTMLFieldSetElement","isHTMLLegendElement","isHTMLSlotElement","isSVGElement","ownerSVGElement","undefined","isSVGSVGElement","isSVGTitleElement","queryIdRefs","attributeName","hasAttribute","ids","getAttribute","split","map","id","getElementById","filter","hasAnyConcreteRoles","roles","indexOf"],"mappings":";;;;;;;;;;;;;;;;;;;;;AAAA;;;;AAEA;AACA;AACA;AACA;AACO,SAASA,YAAT,CAAsBC,OAAtB,EAAgD;AAAA;;AACtD,SACC;AADD,0BAECA,OAAO,CAACC,SAFT,mEAGC;AACAD,IAAAA,OAAO,CAACE,OAAR,CAAgBC,WAAhB;AAJD;AAMA;;AAEM,SAASC,SAAT,CAAmBC,IAAnB,EAAuD;AAC7D,SAAOA,IAAI,KAAK,IAAT,IAAiBA,IAAI,CAACC,QAAL,KAAkBD,IAAI,CAACE,YAA/C;AACA;;AAEM,SAASC,yBAAT,CACNH,IADM,EAE4B;AAClC,SAAOD,SAAS,CAACC,IAAD,CAAT,IAAmBN,YAAY,CAACM,IAAD,CAAZ,KAAuB,SAAjD;AACA;;AAEM,SAASI,kBAAT,CACNJ,IADM,EAEqB;AAC3B,SAAOD,SAAS,CAACC,IAAD,CAAT,IAAmBN,YAAY,CAACM,IAAD,CAAZ,KAAuB,OAAjD;AACA;;AAEM,SAASK,qBAAT,CACNL,IADM,EAEwB;AAC9B,SAAOD,SAAS,CAACC,IAAD,CAAT,IAAmBN,YAAY,CAACM,IAAD,CAAZ,KAAuB,UAAjD;AACA;;AAEM,SAASM,mBAAT,CACNN,I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ACC,IAAD,CAAT,IAAmBN,YAAY,CAACM,IAAD,CAAZ,KAAuB,KAAjD;AACA;;AAEM,SAASoB,iBAAT,CAA2BpB,IAA3B,EAAuE;AAC7E,SAAOgB,YAAY,CAAChB,IAAD,CAAZ,IAAsBN,YAAY,CAACM,IAAD,CAAZ,KAAuB,OAApD;AACA;AAED;AACA;AACA;AACA;AACA;AACA;;;AACO,SAASqB,WAAT,CAAqBrB,IAArB,EAAiCsB,aAAjC,EAAmE;AACzE,MAAIvB,SAAS,CAACC,IAAD,CAAT,IAAmBA,IAAI,CAACuB,YAAL,CAAkBD,aAAlB,CAAvB,EAAyD;AACxD;AACA,QAAME,GAAG,GAAGxB,IAAI,CAACyB,YAAL,CAAkBH,aAAlB,EAAkCI,KAAlC,CAAwC,GAAxC,CAAZ;AAEA,WAAOF,GAAG,CACRG,GADK,CACD,UAACC,EAAD;AAAA,aAAQ5B,IAAI,CAACU,aAAL,CAAmBmB,cAAnB,CAAkCD,EAAlC,CAAR;AAAA,KADC,EAELE,MAFK,CAGL,UAACnC,OAAD;AAAA,aAAiDA,OAAO,KAAK,IAA7D;AAAA,KAHK,CAIL;AAJK,KAAP;AAMA;;AAED,SAAO,EAAP;AACA;;AAEM,SAASoC,mBAAT,CACN/B,IADM,EAENgC,KAFM,EAGY;AAClB,MAAIjC,SAAS,CAACC,IAAD,CAAb,EAAqB;AACpB,WAAOgC,KAAK,CAACC,OAAN,CAAc,sBAAQjC,IAAR,CAAd,MAAiC,CAAC,CAAzC;AACA;;AACD,SAAO,KAAP;AACA","sourcesContent":["import getRole from \"./getRole\";\n\n/**\n * Safe Element.localName for all supported environments\n * @param element\n */\nexport function getLocalName(element: Element): string {\n\treturn (\n\t\t// eslint-disable-next-line no-restricted-properties -- actual guard for environments without localName\n\t\telement.localName ??\n\t\t// eslint-disable-next-line no-restricted-properties -- required for the fallback\n\t\telement.tagName.toLowerCase()\n\t);\n}\n\nexport function isElement(node: Node | null): node is Element {\n\treturn node !== null && node.nodeType === node.ELEMENT_NODE;\n}\n\nexport function isHTMLTableCaptionElement(\n\tnode: Node | null\n): node is HTMLTableCaptionElement {\n\treturn isElement(node) && getLocalName(node) === \"caption\";\n}\n\nexport function isHTMLInputElement(\n\tnode: Node | null\n): node is H
|