{"version":3,"names":["t","a","b","m","Error","String","prototype","replaceAll","searchValue","replaceValue","RegExp","this","replace","SLEN","length","result","i","j","LEN","indexOf","substring","call","e","console","error","unsupportedBrowser","window","WeakMap","Promise","globalThis","CSS","supports","has","err","match","navigator","userAgent","firefoxVersion","parseInt","Object","defineProperty","get","set","__defineGetter__","__defineSetter__"],"sourceRoot":"theme-150033/","sources":["_html/common/head_tag_1.js"],"sourcesContent":["\n  <!-- polyfill for old browsers -->\n\n  (function () {\n    var t = {\n      equal: (a, b, m) => {\n        if (a !== b) {\n          throw new Error(m)\n        }\n      }\n    }\n\n    if (!String.prototype.replaceAll) {\n      function replaceAll(searchValue, replaceValue) {\n        var isRegexp = searchValue instanceof RegExp;\n\n        if (isRegexp) {\n          return this.replace(new RegExp(searchValue, 'g'), replaceValue)\n        } else {\n          var SLEN = searchValue.length\n          if (SLEN === 0) {\n            return this.replace(new RegExp('', 'g'), replaceValue)\n          }\n          var result = '';\n          var i = 0, j = 0;\n\n          var LEN = this.length\n          while (i < LEN) {\n            j = this.indexOf(searchValue, i)\n            if (j === -1) {\n              result += this.substring(i)\n              break\n            } else {\n              result += this.substring(i, j) + replaceValue\n              i = j + SLEN\n            }\n          }\n          return result\n        }\n      }\n\n      try {\n        // Make sure this polyfill is valid\n        t.equal(replaceAll.call('abcabc', /a/g, 'z'), 'abcabc'.replace(/a/g, 'z'), 'replaceAll with a global regex matches replace with the same args');\n        t.equal(replaceAll.call('abcabc', 'a', 'z'), 'zbczbc', 'replaceAll with a string replaces all');\n        t.equal(replaceAll.call('x', '', '_'), '_x_', 'an empty string to replace, replaces each code unit in a single char string');\n        t.equal(replaceAll.call('xxx', '', '_'), '_x_x_x_', 'an empty string to replace, replaces each code unit in a multi char string');\n        t.equal(replaceAll.call('xxx', /(?:)/g, '_'), '_x_x_x_', 'an empty regex to replace, replaces each code unit');\n        String.prototype.replaceAll = replaceAll\n      } catch (e) {\n        console.error('Could not polyfill String.replaceAll', e)\n      }\n    }\n  })();\n\n  (function () {\n    let unsupportedBrowser\n    if (\n      !window.WeakMap ||\n      !window.Promise ||\n      typeof globalThis === \"undefined\" ||\n      !String.prototype.replaceAll ||\n      !CSS.supports\n    ) {\n      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        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        unsupportedBrowser = true;\n      }\n    }\n\n    if (Object.defineProperty) {\n      Object.defineProperty(window, 'unsupportedBrowser', {\n        get() {\n          return unsupportedBrowser\n        },\n        set() {\n        }\n      })\n    } else if (Object.__defineGetter__ && Object.__defineSetter__) {\n      Object.__defineGetter__.call(window, 'unsupportedBrowser', function () {\n        return unsupportedBrowser\n      })\n      Object.__defineSetter__.call(window, 'unsupportedBrowser', function () {\n      })\n    }\n  })();\n\n"],"mappings":"CAGE,WACE,IAAIA,EACK,CAACC,EAAGC,EAAGC,KACZ,GAAIF,IAAMC,EACR,MAAM,IAAIE,MAAMD,EAClB;AAIJ,IAAKE,OAAOC,UAAUC,WAAY,CAChC,SAASA,EAAWC,EAAaC,GAG/B,GAFeD,aAAuBE,OAGpC,OAAOC,KAAKC,QAAQ,IAAIF,OAAOF,EAAa,KAAMC;AAElD,IAAII,EAAOL,EAAYM;AACvB,GAAa,IAATD,EACF,OAAOF,KAAKC,QAAQ,IAAIF,OAAO,GAAI,KAAMD;AAM3C,IAJA,IAAIM,EAAS,GACTC,EAAI,EAAGC,EAAI,EAEXC,EAAMP,KAAKG,OACRE,EAAIE,GAAK,CAEd,IAAW,KADXD,EAAIN,KAAKQ,QAAQX,EAAaQ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