{"version":3,"sources":["scripts/browser-detect.js"],"sourcesContent":["/* eslint-disable no-var */ // `let` is not supported in very old browsers\n\n(function () {\n  if (!window.WeakMap || !window.Promise || typeof globalThis === \"undefined\") {\n    window.unsupportedBrowser = true;\n  } else {\n    // Some implementations of `WeakMap.prototype.has` do not accept false\n    // values and Ember's `isClassicDecorator` sometimes does that (it only\n    // checks for `null` and `undefined`).\n    try {\n      new WeakMap().has(0);\n    } catch (err) {\n      window.unsupportedBrowser = true;\n    }\n\n    var match = window.navigator.userAgent.match(/Firefox\\/([0-9]+)\\./);\n    var firefoxVersion = match ? parseInt(match[1], 10) : null;\n    if (firefoxVersion && firefoxVersion < 89) {\n      // prior to v89, Firefox has bugs with document.execCommand(\"insertText\")\n      // https://bugzil.la/1220696\n      window.unsupportedBrowser = true;\n    }\n  }\n})();\n"],"names":["window","WeakMap","Promise","globalThis","unsupportedBrowser","has","err","match","navigator","userAgent","firefoxVersion","parseInt"],"mappings":"AAAA;AAA4B;AAE5B,CAAC,YAAY;EACX,IAAI,CAACA,MAAM,CAACC,OAAR,IAAmB,CAACD,MAAM,CAACE,OAA3B,IAAsC,OAAOC,UAAP,KAAsB,WAAhE,EAA6E;IAC3EH,MAAM,CAACI,kBAAP,GAA4B,IAA5B;EACD,CAFD,MAEO;IACL;IACA;IACA;IACA,IAAI;MACF,IAAIH,OAAJ,GAAcI,GAAd,CAAkB,CAAlB;IACD,CAFD,CAEE,OAAOC,GAAP,EAAY;MACZN,MAAM,CAACI,kBAAP,GAA4B,IAA5B;IACD;;IAED,IAAIG,KAAK,GAAGP,MAAM,CAACQ,SAAP,CAAiBC,SAAjB,CAA2BF,KAA3B,CAAiC,qBAAjC,CAAZ;IACA,IAAIG,cAAc,GAAGH,KAAK,GAAGI,QAAQ,CAACJ,KAAK,CAAC,CAAD,CAAN,EAAW,EAAX,CAAX,GAA4B,IAAtD;;IACA,IAAIG,cAAc,IAAIA,cAAc,GAAG,EAAvC,EAA2C;MACzC;MACA;MACAV,MAAM,CAACI,kBAAP,GAA4B,IAA5B;IACD;EACF;AACF,CArBD;","file":"browser-detect.js"}