{"version":3,"sources":["scripts/start-app.js","scripts/discourse-boot.js"],"sourcesContent":["document.addEventListener(\"discourse-booted\", (e) => {\n  performance.mark(\"discourse-booted\");\n  const config = e.detail;\n  const app = require(`${config.modulePrefix}/app`)[\"default\"].create(config);\n  app.start();\n});\n","(function () {\n  if (window.unsupportedBrowser) {\n    throw \"Unsupported browser detected\";\n  }\n\n  // In Ember 3.28, the `ember` package is responsible for configuring `Helper.helper`,\n  // so we need to require('ember') before setting up any helpers.\n  // https://github.com/emberjs/ember.js/blob/744e536d37/packages/ember/index.js#L493-L493\n  // In modern Ember, the Helper.helper definition has moved to the helper module itself\n  // https://github.com/emberjs/ember.js/blob/0c5518ea7b/packages/%40ember/-internals/glimmer/lib/helper.ts#L134-L138\n  require(\"ember\");\n\n  let element = document.querySelector(\n    `meta[name=\"discourse/config/environment\"]`\n  );\n  const config = JSON.parse(\n    decodeURIComponent(element.getAttribute(\"content\"))\n  );\n  const event = new CustomEvent(\"discourse-booted\", { detail: config });\n  document.dispatchEvent(event);\n})();\n"],"names":["document","addEventListener","e","performance","mark","config","detail","app","require","modulePrefix","create","start","window","unsupportedBrowser","require","element","document","querySelector","config","JSON","parse","decodeURIComponent","getAttribute","event","CustomEvent","detail","dispatchEvent"],"mappings":"AAAAA,QAAQ,CAACC,gBAAgB,CAAC,kBAAkB,EAAGC,CAAC,IAAK;EACnDC,WAAW,CAACC,IAAI,CAAC,kBAAkB,CAAC;EACpC,MAAMC,MAAM,GAAGH,CAAC,CAACI,MAAM;EACvB,MAAMC,GAAG,GAAGC,OAAO,CAAE,GAAEH,MAAM,CAACI,YAAa,MAAK,CAAC,CAAC,SAAS,CAAC,CAACC,MAAM,CAACL,MAAM,CAAC;EAC3EE,GAAG,CAACI,KAAK,EAAE;AACb,CAAC,CAAC;;ACLF,CAAC,YAAY;EACX,IAAIC,MAAM,CAACC,kBAAkB,EAAE;IAC7B,MAAM,8BAA8B;EACtC;;EAEA;EACA;EACA;EACA;EACA;EACAC,OAAO,CAAC,OAAO,CAAC;EAEhB,IAAIC,OAAO,GAAGC,QAAQ,CAACC,aAAa,CACjC,2CAA0C,CAC5C;EACD,MAAMC,MAAM,GAAGC,IAAI,CAACC,KAAK,CACvBC,kBAAkB,CAACN,OAAO,CAACO,YAAY,CAAC,SAAS,CAAC,CAAC,CACpD;EACD,MAAMC,KAAK,GAAG,IAAIC,WAAW,CAAC,kBAAkB,EAAE;IAAEC,MAAM,EAAEP;EAAO,CAAC,CAAC;EACrEF,QAAQ,CAACU,aAAa,CAACH,KAAK,CAAC;AAC/B,CAAC,GAAG;","file":"start-discourse.js"}