{"version":3,"file":"applyPolyfills.ce2492c08c129be48fb0.js","mappings":"qIAAO,WACL,IAAKA,QAAQC,UAAUC,QAAS,CAC9B,MAAMC,EAASH,QAAQC,UACvBD,QAAQC,UAAUC,QAAUC,EAAOC,mBAAqBD,EAAOE,qBACjE,CAEKL,QAAQC,UAAUK,UACrBN,QAAQC,UAAUK,QAAU,SAAiDC,GAC3E,IAAIC,EAAKC,KAET,EAAG,CACD,GAAID,EAAGN,QAAQK,GAAI,OAAOC,EAC1BA,EAAKA,EAAGE,eAAiBF,EAAGG,UAC9B,OAAgB,OAAPH,GAA+B,IAAhBA,EAAGI,UAC3B,OAAO,IACT,EAEJ,CCNE,E","sources":["webpack://matrix-licensor/./portal/Components/Shared/elementClosestPolyfill.ts","webpack://matrix-licensor/./portal/Components/Shared/applyPolyfills.ts"],"sourcesContent":["export function polyfill() {\r\n if (!Element.prototype.matches) {\r\n const elProt = Element.prototype as any;\r\n Element.prototype.matches = elProt.msMatchesSelector || elProt.webkitMatchesSelector;\r\n }\r\n\r\n if (!Element.prototype.closest) {\r\n Element.prototype.closest = function (s: K) {\r\n var el = this;\r\n\r\n do {\r\n if (el.matches(s)) return el;\r\n el = el.parentElement || el.parentNode;\r\n } while (el !== null && el.nodeType === 1);\r\n return null;\r\n };\r\n }\r\n}\r\n","// the following are polyfills for old browser (IE) support\r\nimport \"whatwg-fetch\";\r\nimport \"core-js\";\r\nimport { polyfill as closestpolyfill } from \"./elementClosestPolyfill\";\r\n\r\nfunction applyPolyfills() {\r\n // old browsers (IE) are missing some ES features, so we pollyfill some\r\n\r\n // the `import 'whatwg-fetch' above auto-applies polyfills for window.fetch\r\n // the `import 'core-js' above auto-applies polyfills for most ES features\r\n\r\n closestpolyfill();\r\n}\r\n\r\napplyPolyfills();\r\n"],"names":["Element","prototype","matches","elProt","msMatchesSelector","webkitMatchesSelector","closest","s","el","this","parentElement","parentNode","nodeType"],"sourceRoot":""}