{"version":3,"file":"polyfills-d5fd9204.js","sources":["../../../app/assets/javascripts/packs/entrypoints/polyfills.js"],"sourcesContent":["if (typeof globalThis === \"undefined\") {\n Object.defineProperty(window, \"globalThis\", {\n get: function() {\n return this;\n }\n });\n}\n\n// replaceAll\nif (!String.prototype.replaceAll) {\n String.prototype.replaceAll = function(str, newStr){\n // If a regex pattern\n if (Object.prototype.toString.call(str).toLowerCase() === \"[object regexp]\") {\n return this.replace(str, newStr);\n }\n\n // If a string\n return this.replace(new RegExp(str, \"g\"), newStr); \n };\n}\n"],"names":["globalThis","Object","defineProperty","window","get","this","String","prototype","replaceAll","str","newStr","toString","call","toLowerCase","replace","RegExp"],"mappings":"AAA0B,oBAAfA,YACFC,OAAAC,eAAeC,OAAQ,aAAc,CAC1CC,IAAK,WACI,OAAAC,IACR,IAKAC,OAAOC,UAAUC,aACpBF,OAAOC,UAAUC,WAAa,SAASC,EAAKC,GAEtC,MAAsD,oBAAtDT,OAAOM,UAAUI,SAASC,KAAKH,GAAKI,cAC/BR,KAAKS,QAAQL,EAAKC,GAIpBL,KAAKS,QAAQ,IAAIC,OAAON,EAAK,KAAMC,EAC9C"}