text: !function(e){function t(t){for(var r,o,i=t[0],l=t[1],c=t[2],d=0,p=[];d<i.length;d++)o=i[d],Object.prototype.hasOwnProperty.call(s,o)&&s[o]&&p.push(s[o][0]),s[o]=0;for(r in l)Object.prototype.hasOwnProperty.call(l,r)&&(e[r]=l[r]);for(u&&u(t);p.length;)p.shift()();return a.push.apply(a,c||[]),n()}function n(){for(var e,t=0;t<a.length;t++){for(var n=a[t],r=!0,i=1;i<n.length;i++){var l=n[i];0!==s[l]&&(r=!1)}r&&(a.splice(t--,1),e=o(o.s=n[0]))}return e}var r={},s={39:0},a=[];function o(t){if(r[t])return r[t].exports;var n=r[t]={i:t,l:!1,exports:{}};return e[t].call(n.exports,n,n.exports,o),n.l=!0,n.exports}o.e=function(e){var t=[],n=s[e];if(0!==n)if(n)t.push(n[2]);else{var r=new Promise(function(t,r){n=s[e]=[t,r]});t.push(n[2]=r);var a,i=document.createElement("script");i.charset="utf-8",i.timeout=120,o.nc&&i.setAttribute("nonce",o.nc),i.src=function(e){return o.p+"static/js/"+({5:"vendors~vue-loader~vue-selector~vue-template-compiler",11:"vendors~vue-loader~vue-selector",21:"css-loader",22:"css-modules-loader-core",48:"vendors~css-modules-loader-core",53:"vendors~vue-style-compiler",54:"vendors~vue-template-compiler",55:"vue-loader",56:"vue-selector",57:"vue-style-compiler",58:"vue-template-compiler"}[e]||e)+"."+{5:"d55384ed",11:"7fb08ee8",21:"76476c4d",22:"50bdf3d9",48:"bd65e060",53:"170e1d68",54:"b25157c7",55:"72625e4d",56:"8b4ad5a8",57:"9dd1cf2d",58:"26f688c7",60:"5a0c5a88",64:"5ed37028"}[e]+".chunk.js"}(e);var l=new Error;a=function(t){i.onerror=i.onload=null,clearTimeout(c);var n=s[e];if(0!==n){if(n){var r=t&&("load"===t.type?"missing":t.type),a=t&&t.target&&t.target.src;l.message="Loading chunk "+e+" failed.\n("+r+": "+a+")",l.name="ChunkLoadError",l.type=r,l.request=a,n[1](l)}s[e]=void 0}};var c=setTimeout(function(){a({type:"timeout",target:i})},12e4);i.onerror=i.onload=a,document.head.appendChild(i)}return Promise.all(t)},o.m=e,o.c=r,o.d=function(e,t,n){o.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:n})},o.r=function(e){"undefined"!==typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},o.t=function(e,t){if(1&t&&(e=o(e)),8&t)return e;if(4&t&&"object"===typeof e&&e&&e.__esModule)return e;var n=Object.create(null);if(o.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var r in e)o.d(n,r,function(t){return e[t]}.bind(null,r));return n},o.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return o.d(t,"a",t),t},o.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},o.p="https://codesandbox.io/",o.oe=function(e){throw console.error(e),e};var i=this.csbJsonP=this.csbJsonP||[],l=i.push.bind(i);i.push=t,i=i.slice();for(var c=0;c<i.length;c++)t(i[c]);var u=l;a.push([5,0,2,52,3]),n()}({"../../node_modules/raw-loader/index.js!./src/sandbox/eval/transpilers/vue/style-loader/addStylesClient.js":function(e,t){e.exports="/* eslint-disable */\n/*\n  MIT License http://www.opensource.org/licenses/mit-license.php\n  Author Tobias Koppers @sokra\n  Modified by Evan You @yyx990803\n*/\n\nvar hasDocument = typeof document !== 'undefined';\n\nif (typeof DEBUG !== 'undefined' && DEBUG) {\n  if (!hasDocument) {\n    throw new Error(\n      'vue-style-loader cannot be used in a non-browser environment. ' +\n        \"Use { target: 'node' } in your Webpack config to indicate a server-rendering environment.\"\n    );\n  }\n}\n\nvar listToStyles = require('./listToStyles');\n\n/*\ntype StyleObject = {\n  id: number;\n  parts: Array<StyleObjectPart>\n}\n\ntype StyleObjectPart = {\n  css: string;\n  media: string;\n  sourceMap: ?string\n}\n*/\n\nvar stylesInDom = {\n  /*\n  [id: number]: {\n    id: number,\n    refs: number,\n    parts: Array<(obj?: StyleObjectPart) => void>\n  }\n*/\n};\n\nvar head =\n  hasDocument && (document.head || document.getElementsByTagName('head')[0]);\nvar singletonElement = null;\nvar singletonCounter = 0;\nvar isProduction = false;\nvar noop = function() {};\n\n// Force single-tag solution on IE6-9, which has a hard limit on the # of <style>\n// tags it will allow on a page\nvar isOldIE =\n  typeof navigator !== 'undefined' &&\n  /msie [6-9]\\b/.test(navigator.userAgent.toLowerCase());\n\nmodule.exports = function(parentId, list, _isProduction) {\n  isProduction = _isProduction;\n\n  var styles = listToStyles(parentId, list);\n  addStylesToDom(styles);\n\n  return function update(newList) {\n    var mayRemove = [];\n    for (var i = 0; i < styles.length; i++) {\n      var item = styles[i];\n      var domStyle = stylesInDom[item.id];\n      domStyle.refs--;\n      mayRemove.push(domStyle);\n    }\n    if (newList) {\n      styles = listToStyles(parentId, newList);\n      addStylesToDom(styles);\n    } else {\n      styles = [];\n    }\n    for (var i = 0; i < mayRemove.length; i++) {\n      var domStyle = mayRemove[i];\n      if (domStyle.refs === 0) {\n        for (var j = 0; j < domStyle.parts.length; j++) {\n          domStyle.parts[j]();\n        }\n        delete stylesInDom[domStyle.id];\n      }\n    }\n  };\n};\n\nfunction addStylesToDom(styles /* Array<StyleObject> */) {\n  for (var i = 0; i < styles.length; i++) {\n    var item = styles[i];\n    var domStyle = stylesInDom[item.id];\n    if (domStyle) {\n      domStyle.refs++;\n      for (var j = 0; j < domStyle.parts.length; j++) {\n        domStyle.parts[j](item.parts[j]);\n      }\n      for (; j < item.parts.length; j++) {\n        domStyle.parts.push(addStyle(item.parts[j]));\n      }\n      if (domStyle.parts.length > item.parts.length) {\n        domStyle.parts.length = item.parts.length;\n      }\n    } else {\n      var parts = [];\n      for (var j = 0; j < item.parts.length; j++) {\n        parts.push(addStyle(item.parts[j]));\n      }\n      stylesInDom[item.id] = { id: item.id, refs: 1, parts: parts };\n    }\n  }\n}\n\nfunction createStyleElement() {\n  var styleElement = document.createElement('style');\n  styleElement.type = 'text/css';\n  head.appendChild(styleElement);\n  return styleElement;\n}\n\nfunction addStyle(obj /* StyleObjectPart */) {\n  var update, remove;\n  var styleElement = document.querySelector(\n    'style[data-vue-ssr-id~=\"' + obj.id + '\"]'\n  );\n\n  if (styleElement) {\n    if (isProduction) {\n      // has SSR styles and in production mode.\n      // simply do nothing.\n      return noop;\n    } else {\n      // has SSR styles but in dev mode.\n      // for some reason Chrome can't handle source map in server-rendered\n      // style tags - source maps in <style> only works if the style tag is\n      // created and inserted dynamically. So we remove the server rendered\n      // styles and inject new ones.\n      styleElement.parentNode.removeChild(styleElement);\n    }\n  }\n\n  if (isOldIE) {\n    // use singleton mode for IE9.\n    var styleIndex = singletonCounter++;\n    styleElement =\n      singletonElement || (singletonElement = createStyleElement());\n    update = applyToSingletonTag.bind(null, styleElement, styleIndex, false);\n    remove = applyToSingletonTag.bind(null, styleElement, styleIndex, true);\n  } else {\n    // use multi-style-tag mode in all other cases\n    styleElement = createStyleElement();\n    update = applyToTag.bind(null, styleElement);\n    remove = function() {\n      styleElement.parentNode.removeChild(styleElement);\n    };\n  }\n\n  update(obj);\n\n  return function updateStyle(newObj /* StyleObjectPart */) {\n    if (newObj) {\n      if (\n        newObj.css === obj.css &&\n        newObj.media === obj.media &&\n        newObj.sourceMap === obj.sourceMap\n      ) {\n        return;\n      }\n      update((obj = newObj));\n    } else {\n      remove();\n    }\n  };\n}\n\nvar replaceText = (function() {\n  var textStore = [];\n\n  return function(index, replacement) {\n    textStore[index] = replacement;\n    return textStore.filter(Boolean).join('\\n');\n  };\n})();\n\nfunction applyToSingletonTag(styleElement, index, remove, obj) {\n  var css = remove ? '' : obj.css;\n\n  if (styleElement.styleSheet) {\n    styleElement.styleSheet.cssText = replaceText(index, css);\n  } else {\n    var cssNode = document.createTextNode(css);\n    var childNodes = styleElement.childNodes;\n    if (childNodes[index]) styleElement.removeChild(childNodes[index]);\n    if (childNodes.length) {\n      styleElement.insertBefore(cssNode, childNodes[index]);\n    } else {\n      styleElement.appendChild(cssNode);\n    }\n  }\n}\n\nfunction applyToTag(styleElement, obj) {\n  var css = obj.css;\n  var media = obj.media;\n  var sourceMap = obj.sourceMap;\n\n  if (media) {\n    styleElement.setAttribute('media', media);\n  }\n\n  if (sourceMap) {\n    // https://developer.chrome.com/devtools/docs/javascript-debugging\n    // this makes source maps inside style tags work properly in Chrome\n    css += '\\n/*# sourceURL=' + sourceMap.sources[0] + ' */';\n    // http://stackoverflow.com/a/26603875\n    css +=\n      '\\n/*# sourceMappingURL=data:application/json;base64,' +\n      btoa(unescape(encodeURIComponent(JSON.stringify(sourceMap)))) +\n      ' */';\n  }\n\n  if (styleElement.styleSheet) {\n    styleElement.styleSheet.cssText = css;\n  } else {\n    while (styleElement.firstChild) {\n      styleElement.removeChild(styleElement.firstChild);\n    }\n    styleElement.appendChild(document.createTextNode(css));\n  }\n}\n"},"../../node_modules/raw-loader/index.js!./src/sandbox/eval/transpilers/vue/style-loader/listToStyles.js":function(e,t){e.exports="/* eslint-disable */\n/**\n * Translates the list format produced by css-loader into something\n * easier to manipulate.\n */\nmodule.exports = function listToStyles(parentId, list) {\n  var styles = [];\n  var newStyles = {};\n  for (var i = 0; i < list.length; i++) {\n    var item = list[i];\n    var id = item[0];\n    var css = item[1];\n    var media = item[2];\n    var sourceMap = item[3];\n    var part = {\n      id: parentId + ':' + i,\n      css: css,\n      media: media,\n      sourceMap: sourceMap,\n    };\n    if (!newStyles[id]) {\n      styles.push((newStyles[id] = { id: id, parts: [part] }));\n    } else {\n      newStyles[id].parts.push(part);\n    }\n  }\n  return styles;\n};\n"},"../../node_modules/raw-loader/index.js!./src/sandbox/status-screen/indicator-screen.html":function(e,t){e.exports='<link href="/static/fonts/inter/inter.css" rel="stylesheet">\n<style>\n  body {\n    color: #fff;\n    font-family: \'Inter UI\', sans-serif;\n    background: transparent;\n    -webkit-font-smoothing: antialiased;\n  }\n\n  .container {\n    display: flex;\n    align-items: center;\n    flex-direction: row;\n  }\n\n  .text {\n    font-size: 0.8rem;\n    width: 100%;\n    font-weight: 400;\n    margin-left: 1rem;\n  }\n\n  .cube {\n    transform: translate(-34px, 15px) scale(0.25, 0.25);\n  }\n\n  .cube,\n  .cube * {\n    position: absolute;\n    width: 6rem;\n    height: 6rem;\n  }\n  .cube .sides * {\n    box-sizing: border-box;\n    border: 10px solid rgba(0,0,0,0.7);\n    border-radius: 8px;\n    background: rgba(255, 255, 255, 0.6);\n  }\n\n  @keyframes rotate {\n    0% {\n      transform: rotateX(-25.5deg) rotateY(45deg);\n    }\n\n    100% {\n      transform: rotateX(-25.5deg) rotateY(405deg);\n    }\n  }\n\n  .sides {\n    animation: rotate 0.8s linear infinite;\n    animation-fill-mode: forwards;\n    transform-style: preserve-3d;\n    transform: rotateX(-25.5deg) rotateY(45deg);\n  }\n\n  .cube .sides .top {\n    animation: top-animation 3s ease infinite;\n    animation-delay: 0ms;\n    transform: rotateX(90deg) translateZ(44px);\n    animation-fill-mode: forwards;\n    transform-origin: 50% 50%;\n  }\n\n  .cube .sides .bottom {\n    animation: bottom-animation 3s ease infinite;\n    animation-delay: 0ms;\n    transform: rotateX(-90deg) translateZ(44px);\n    animation-fill-mode: forwards;\n    transform-origin: 50% 50%;\n  }\n\n  .cube .sides .front {\n    animation: front-animation 3s ease infinite;\n    animation-delay: 100ms;\n    transform: rotateY(0deg) translateZ(44px);\n    animation-fill-mode: forwards;\n    transform-origin: 50% 50%;\n  }\n\n  .cube .sides .back {\n    animation: back-animation 3s ease infinite;\n    animation-delay: 100ms;\n    transform: rotateY(-180deg) translateZ(44px);\n    animation-fill-mode: forwards;\n    transform-origin: 50% 50%;\n  }\n\n  .cube .sides .left {\n    animation: left-animation 3s ease infinite;\n    animation-delay: 100ms;\n    transform: rotateY(-90deg) translateZ(44px);\n    animation-fill-mode: forwards;\n    transform-origin: 50% 50%;\n  }\n\n  .cube .sides .right {\n    animation: right-animation 3s ease infinite;\n    animation-delay: 100ms;\n    transform: rotateY(90deg) translateZ(44px);\n    animation-fill-mode: forwards;\n    transform-origin: 50% 50%;\n  }\n\n</style>\n<div class="container">\n  <div class="cube">\n    <div class="sides">\n      <div class="top"></div>\n      <div class="right"></div>\n      <div class="bottom"></div>\n      <div class="left"></div>\n      <div class="front"></div>\n      <div class="back"></div>\n    </div>\n  </div>\n</div>\n'},"../../node_modules/raw-loader/index.js!./src/sandbox/status-screen/loading-screen.html":function(e,t){e.exports='<link href="/static/fonts/inter/inter.css" rel="stylesheet">\n<style>\n  body {\n    color: #fff;\n    font-family: \'Inter UI\', sans-serif;\n    background: #151515;\n  }\n\n  .container {\n    display: flex;\n    justify-content: center;\n    align-items: center;\n    flex-direction: row;\n  }\n\n  .text {\n    margin-top: 22rem;\n    font-size: 1rem;\n    width: 100%;\n    font-weight: 200;\n    text-align: center;\n  }\n\n  .cube,\n  .cube * {\n    position: absolute;\n    width: 6rem;\n    height: 6rem;\n  }\n  .cube .sides * {\n    box-sizing: border-box;\n    border: 0.12rem solid white;\n    border-radius: 0.25rem;\n    background: rgba(255, 255, 255, 0.1);\n  }\n\n  @keyframes rotate {\n    0% {\n      transform: rotateX(-37.5deg) rotateY(45deg);\n    }\n    50% {\n      transform: rotateX(-37.5deg) rotateY(405deg);\n    }\n    100% {\n      transform: rotateX(-37.5deg) rotateY(405deg);\n    }\n  }\n\n  .sides {\n    animation: rotate 3s ease infinite;\n    animation-delay: 0.8s;\n    transform-style: preserve-3d;\n    transform: rotateX(-37.5deg) rotateY(45deg);\n  }\n\n  .cube .sides .top {\n    animation: top-animation 3s ease infinite;\n    animation-delay: 0ms;\n    transform: rotateX(90deg) translateZ(96px);\n    animation-fill-mode: forwards;\n    transform-origin: 50% 50%;\n  }\n\n  @keyframes top-animation {\n    0% {\n      opacity: 1;\n      transform: rotateX(90deg) translateZ(100px);\n    }\n    20% {\n      opacity: 1;\n      transform: rotateX(90deg) translateZ(48px);\n    }\n    70% {\n      opacity: 1;\n      transform: rotateX(90deg) translateZ(48px);\n    }\n    90% {\n      opacity: 1;\n      transform: rotateX(90deg) translateZ(100px);\n    }\n    100% {\n      opacity: 1;\n      transform: rotateX(90deg) translateZ(100px);\n    }\n  }\n  .cube .sides .bottom {\n    animation: bottom-animation 3s ease infinite;\n    animation-delay: 0ms;\n    transform: rotateX(-90deg) translateZ(96px);\n    animation-fill-mode: forwards;\n    transform-origin: 50% 50%;\n  }\n\n  @keyframes bottom-animation {\n    0% {\n      opacity: 1;\n      transform: rotateX(-90deg) translateZ(100px);\n    }\n    20% {\n      opacity: 1;\n      transform: rotateX(-90deg) translateZ(48px);\n    }\n    70% {\n      opacity: 1;\n      transform: rotateX(-90deg) translateZ(48px);\n    }\n    90% {\n      opacity: 1;\n      transform: rotateX(-90deg) translateZ(100px);\n    }\n    100% {\n      opacity: 1;\n      transform: rotateX(-90deg) translateZ(100px);\n    }\n  }\n  .cube .sides .front {\n    animation: front-animation 3s ease infinite;\n    animation-delay: 100ms;\n    transform: rotateY(0deg) translateZ(96px);\n    animation-fill-mode: forwards;\n    transform-origin: 50% 50%;\n  }\n\n  @keyframes front-animation {\n    0% {\n      opacity: 1;\n      transform: rotateY(0deg) translateZ(96px);\n    }\n    20% {\n      opacity: 1;\n      transform: rotateY(0deg) translateZ(48px);\n    }\n    70% {\n      opacity: 1;\n      transform: rotateY(0deg) translateZ(48px);\n    }\n    90% {\n      opacity: 1;\n      transform: rotateY(0deg) translateZ(96px);\n    }\n    100% {\n      opacity: 1;\n      transform: rotateY(0deg) translateZ(96px);\n    }\n  }\n  .cube .sides .back {\n    animation: back-animation 3s ease infinite;\n    animation-delay: 100ms;\n    transform: rotateY(-180deg) translateZ(96px);\n    animation-fill-mode: forwards;\n    transform-origin: 50% 50%;\n  }\n\n  @keyframes back-animation {\n    0% {\n      opacity: 1;\n      transform: rotateY(-180deg) translateZ(96px);\n    }\n    20% {\n      opacity: 1;\n      transform: rotateY(-180deg) translateZ(48px);\n    }\n    70% {\n      opacity: 1;\n      transform: rotateY(-180deg) translateZ(48px);\n    }\n    90% {\n      opacity: 1;\n      transform: rotateY(-180deg) translateZ(96px);\n    }\n    100% {\n      opacity: 1;\n      transform: rotateY(-180deg) translateZ(96px);\n    }\n  }\n  .cube .sides .left {\n    animation: left-animation 3s ease infinite;\n    animation-delay: 100ms;\n    transform: rotateY(-90deg) translateZ(96px);\n    animation-fill-mode: forwards;\n    transform-origin: 50% 50%;\n  }\n\n  @keyframes left-animation {\n    0% {\n      opacity: 1;\n      transform: rotateY(-90deg) translateZ(96px);\n    }\n    20% {\n      opacity: 1;\n      transform: rotateY(-90deg) translateZ(48px);\n    }\n    70% {\n      opacity: 1;\n      transform: rotateY(-90deg) translateZ(48px);\n    }\n    90% {\n      opacity: 1;\n      transform: rotateY(-90deg) translateZ(96px);\n    }\n    100% {\n      opacity: 1;\n      transform: rotateY(-90deg) translateZ(96px);\n    }\n  }\n  .cube .sides .right {\n    animation: right-animation 3s ease infinite;\n    animation-delay: 100ms;\n    transform: rotateY(90deg) translateZ(96px);\n    animation-fill-mode: forwards;\n    transform-origin: 50% 50%;\n  }\n\n  @keyframes right-animation {\n    0% {\n      opacity: 1;\n      transform: rotateY(90deg) translateZ(96px);\n    }\n    20% {\n      opacity: 1;\n      transform: rotateY(90deg) translateZ(48px);\n    }\n    70% {\n      opacity: 1;\n      transform: rotateY(90deg) translateZ(48px);\n    }\n    90% {\n      opacity: 1;\n      transform: rotateY(90deg) translateZ(96px);\n    }\n    100% {\n      opacity: 1;\n      transform: rotateY(90deg) translateZ(96px);\n    }\n  }\n</style>\n<div class="container">\n  <div class="cube">\n    <div class="sides">\n      <div class="top"></div>\n      <div class="right"></div>\n      <div class="bottom"></div>\n      <div class="left"></div>\n      <div class="front"></div>\n      <div class="back"></div>\n    </div>\n  </div>\n  <div class="text">Dowloading dependencies</div>\n</div>\n'},"../../node_modules/raw-loader/index.js!./src/sandbox/status-screen/run-on-click-screen.html":function(e,t){e.exports='<link href="/static/fonts/inter/inter.css" rel="stylesheet" />\n<style>\n  body {\n    color: #fff;\n    font-family: \'Inter UI\', sans-serif;\n    background: #151515;\n    cursor: pointer;\n  }\n\n  .container {\n    display: flex;\n    justify-content: center;\n    align-items: center;\n    flex-direction: row;\n  }\n\n  .text {\n    margin-top: 24rem;\n    font-size: 1rem;\n    width: 100%;\n    max-width: 400px;\n    font-weight: 200;\n    text-align: center;\n  }\n\n  .cube,\n  .cube * {\n    position: absolute;\n    width: 6rem;\n    height: 6rem;\n  }\n  .cube .sides * {\n    opacity: 0.1;\n    box-sizing: border-box;\n    border: 0.12rem solid white;\n    border-radius: 0.25rem;\n    background: rgba(255, 255, 255, 0.1);\n  }\n  .sides {\n    transform-style: preserve-3d;\n    transform: rotateX(-37.5deg) rotateY(45deg);\n  }\n\n  .cube .sides .top {\n    transform: rotateX(90deg) translateZ(48px);\n    transform-origin: 50% 50%;\n  }\n\n  .cube .sides .bottom {\n    transform: rotateX(-90deg) translateZ(48px);\n    transform-origin: 50% 50%;\n  }\n\n  .cube .sides .front {\n    transform: rotateY(0deg) translateZ(48px);\n    transform-origin: 50% 50%;\n  }\n\n  .cube .sides .back {\n    transform: rotateY(-180deg) translateZ(48px);\n    transform-origin: 50% 50%;\n  }\n  .cube .sides .left {\n    transform: rotateY(-90deg) translateZ(48px);\n    transform-origin: 50% 50%;\n  }\n\n  .cube .sides .right {\n    transform: rotateY(90deg) translateZ(48px);\n    transform-origin: 50% 50%;\n  }\n\n  .play {\n    position: absolute;\n    background-color: white;\n    text-align: left;\n  }\n  .play:before,\n  .play:after {\n    content: \'\';\n    position: absolute;\n    background-color: inherit;\n  }\n  .play,\n  .play:before,\n  .play:after {\n    width: 1rem;\n    height: 1rem;\n    border-top-right-radius: 30%;\n  }\n\n  .play {\n    transform: rotate(-90deg) skewX(-30deg) scale(1, 0.866);\n    box-shadow: 0px 0px 8px rgba(0, 0, 0, 0.24);\n  }\n  .play:before {\n    transform: rotate(-135deg) skewX(-45deg) scale(1.414, 0.707)\n      translate(0, -50%);\n  }\n  .play:after {\n    transform: rotate(135deg) skewY(-45deg) scale(0.707, 1.414) translate(50%);\n  }\n</style>\n<div class="container">\n  <div class="cube">\n    <div class="sides">\n      <div class="top"></div>\n      <div class="right"></div>\n      <div class="bottom"></div>\n      <div class="left"></div>\n      <div class="front"></div>\n      <div class="back"></div>\n    </div>\n  </div>\n  <div class="play"></div>\n  <div class="text">\n    <h1>Aw, Snap?</h1>\n    <div>\n      We noticed that the sandbox didn\'t complete its last run. This could be\n      because of some code that crashed the browser. We paused execution so you\n      can check the code.\n    </div>\n    <div>Click to continue execution</div>\n  </div>\n</div>\n'},"../../node_modules/worker-loader/dist/cjs.js?publicPath=/&name=babel-transpiler.[hash:8].worker.js!./src/sandbox/eval/transpilers/babel/worker/index.js":function(e,t){e.exports=function(){return new Worker("/babel-transpiler.c0408c90.worker.js")}},"../../node_modules/worker-loader/dist/cjs.js?publicPath=/&name=coffee-transpiler.[hash:8].worker.js!./src/sandbox/eval/transpilers/coffee/coffee-worker.js":function(e,t){e.exports=function(){return new Worker("/coffee-transpiler.04364a1e.worker.js")}},"../../node_modules/worker-loader/dist/cjs.js?publicPath=/&name=less-transpiler.[hash:8].worker.js!./src/sandbox/eval/transpilers/less/less-worker.js":function(e,t){e.exports=function(){return new Worker("/less-transpiler.42e8aa27.worker.js")}},"../../node_modules/worker-loader/dist/cjs.js?publicPath=/&name=parcel-html-transpiler.[hash:8].worker.js!./src/sandbox/eval/presets/parcel/transpilers/html-worker.js":function(e,t){e.exports=function(){return new Worker("/parcel-html-transpiler.ae8ede27.worker.js")}},"../../node_modules/worker-loader/dist/cjs.js?publicPath=/&name=pug-transpiler.[hash:8].worker.js!./src/sandbox/eval/transpilers/pug/pug-worker.js":function(e,t){e.exports=function(){return new Worker("/pug-transpiler.61a9185f.worker.js")}},"../../node_modules/worker-loader/dist/cjs.js?publicPath=/&name=sass-transpiler.[hash:8].worker.js!./src/sandbox/eval/transpilers/sass/worker/index.js":function(e,t){e.exports=function(){return new Worker("/sass-transpiler.bb332914.worker.js")}},"../../node_modules/worker-loader/dist/cjs.js?publicPath=/&name=stylus-transpiler.[hash:8].worker.js!./src/sandbox/eval/transpilers/stylus/stylus-worker.js":function(e,t){e.exports=function(){return new Worker("/stylus-transpiler.f114d785.worker.js")}},"../../node_modules/worker-loader/dist/cjs.js?publicPath=/&name=svelte-transpiler.[hash:8].worker.js!./src/sandbox/eval/transpilers/svelte/svelte-worker.js":function(e,t){e.exports=function(){return new Worker("/svelte-transpiler.6e4355cf.worker.js")}},"../../node_modules/worker-loader/dist/cjs.js?publicPath=/&name=typescript-transpiler.[hash:8].worker.js!./src/sandbox/eval/transpilers/typescript/typescript-worker.js":function(e,t){e.exports=function(){return new Worker("/typescript-transpiler.f2cb9cce.worker.js")}},"../common/lib/registerServiceWorker.js":function(e,t,n){"use strict";(function(e){Object.defineProperty(t,"__esModule",{value:!0});const n=Boolean("localhost"===window.location.hostname||"[::1]"===window.location.hostname||window.location.hostname.match(/^127(?:\.(?:25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)){3}$/)),r=Boolean("http:"===window.location.protocol);function s(e,{onUpdated:t,onInstalled:n}={}){navigator.serviceWorker.register(e).then(e=>{e.onupdatefound=()=>{const r=e.installing;r.onstatechange=()=>{"installed"===r.state?navigator.serviceWorker.controller?t&&t():n&&n():"redundant"===r.state&&"storage"in navigator&&"estimate"in navigator.storage&&navigator.storage.estimate().then(t=>{t.usage/t.quota*100>=.95&&(e.unregister(),self.caches.keys().then(e=>{e.forEach(e=>{self.caches.delete(e)})}))})}}}).catch(e=>{console.error("Error during service worker registration:",e)})}t.default=function(t,{onUpdated:a,onInstalled:o}){if("serviceWorker"in navigator){if(new URL(e.env.PUBLIC_URL||"/",window.location).origin!==window.location.origin)return;n||r?n&&function(e,{onUpdated:t,onInstalled:n}){fetch(e).then(r=>{404===r.status||-1===r.headers.get("content-type").indexOf("javascript")?navigator.serviceWorker.ready.then(e=>{e.unregister().then(()=>{window.location.reload()})}):s(e,{onUpdated:t,onInstalled:n})}).catch(e=>{console.log("No internet connection found. App is running in offline mode.",e)})}(t,{onUpdated:a,onInstalled:o}):s(t,{onUpdated:a,onInstalled:o})}},t.unregister=function(){"serviceWorker"in navigator&&navigator.serviceWorker.ready.then(e=>{e.unregister()})}}).call(this,n("../../node_modules/process/browser.js"))},"../common/lib/utils/dependencies.js":function(e,t,n){"use strict";var r=this&&this.__awaiter||function(e,t,n,r){return new(n||(n=Promise))(function(s,a){function o(e){try{l(r.next(e))}catch(t){a(t)}}function i(e){try{l(r.throw(e))}catch(t){a(t)}}function l(e){var t;e.done?s(e.value):(t=e.value,t instanceof n?t:new n(function(e){e(t)})).then(o,i)}l((r=r.apply(e,t||[])).next())})};function s(e){return r(this,void 0,void 0,function*(){let t;for(let r=0;r<3;r++)try{return yield fetch(e).then(t=>{if(t.ok)return t.json();throw new Error("Could not fetch "+e)})}catch(n){t=n}throw t})}function a(e,t){return r(this,void 0,void 0,function*(){try{return yield s(`https://unpkg.com/${e}@${encodeURIComponent(t)}/package.json`)}catch(n){return s(`https://cdn.jsdelivr.net/npm/${e}@${encodeURIComponent(t)}/package.json`)}})}function o(e){return/^\d+\.\d+\.\d+$/.test(e)||/\//.test(e)}Object.defineProperty(t,"__esModule",{value:!0}),t.fetchPackageJSON=a,t.isAbsoluteVersion=o,t.getAbsoluteDependencies=function(e){return r(this,void 0,void 0,function*(){const t=Object.keys(e).filter(t=>!o(e[t])),n=Object.assign({},e);return yield Promise.all(t.map(t=>r(this,void 0,void 0,function*(){try{const s=yield a(t,e[t]);n[t]=s.version}catch(r){}}))),n})}},"../sandbox-hooks/console/index.js":function(e,t,n){var r,s,a;s=[t,n("../codesandbox-api/dist/codesandbox.es5.js"),n("../../node_modules/console-feed/lib/Hook/index.js"),n("../../node_modules/console-feed/lib/Transform/index.js")],void 0===(a="function"===typeof(r=function(e,t,r,s){"use strict";var a=n("../../node_modules/@babel/runtime/helpers/interopRequireDefault.js");Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(){return(0,r.default)(window.console,function(e){(0,t.dispatch)({type:"console",log:e})}),(0,t.listen)(function(e,n){if(n&&"evaluate"===e.type){var r=null,a=!1;try{if(e.command&&"{"===e.command.charAt(0))try{var o="(".concat(e.command,")");new Function(o),e.command=o}catch(i){}r=(0,eval)(e.command)}catch(i){r=i,a=!0}try{(0,t.dispatch)({type:"eval-result",error:a,result:(0,s.Encode)(r)})}catch(i){console.error(i)}}})},r=a(r)})?r.apply(t,s):r)||(e.exports=a)},"../sandbox-hooks/errors/dependency-not-found-error.js":function(e,t,n){var r,s,a;s=[t,n("../../node_modules/@babel/runtime/helpers/slicedToArray.js"),n("../../node_modules/@babel/runtime/helpers/classCallCheck.js"),n("../../node_modules/@babel/runtime/helpers/possibleConstructorReturn.js"),n("../../node_modules/@babel/runtime/helpers/getPrototypeOf.js"),n("../../node_modules/@babel/runtime/helpers/assertThisInitialized.js"),n("../../node_modules/@babel/runtime/helpers/inherits.js"),n("../../node_modules/@babel/runtime/helpers/defineProperty.js"),n("../codesandbox-api/dist/codesandbox.es5.js"),n("../sandbox-hooks/errors/sandbox-error.js")],void 0===(a="function"===typeof(r=function(e,t,r,s,a,o,i,l,c,u){"use strict";var d=n("../../node_modules/@babel/runtime/helpers/interopRequireDefault.js");Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0,t=d(t),r=d(r),s=d(s),a=d(a),o=d(o),i=d(i),l=d(l);var p=function(e){function n(e,i){var u;(0,r.default)(this,n),u=(0,s.default)(this,(0,a.default)(n).call(this)),(0,l.default)((0,o.default)(u),"type","dependency-not-found"),(0,l.default)((0,o.default)(u),"severity","error"),(0,l.default)((0,o.default)(u),"path",void 0),u.path=e;var d=e.split("/"),p=(0,t.default)(d,2),f=p[0],h=p[1],m=f.startsWith("@")?"".concat(f,"/").concat(h):f;return u.suggestions=[{title:"Add ".concat(m," as dependency"),action:function(){(0,c.dispatch)(c.actions.source.dependencies.add(m))}}],u.name="DependencyNotFoundError",u.message="Could not find dependency: '".concat(m,"'"),i&&(u.message+=" relative to '".concat(i,"'")),u}return(0,i.default)(n,e),n}((u=d(u)).default);e.default=p})?r.apply(t,s):r)||(e.exports=a)},"../sandbox-hooks/errors/index.js":function(e,t,n){var r,s,a;s=[t,n("../../node_modules/@babel/runtime/helpers/defineProperty.js"),n("../codesandbox-api/dist/codesandbox.es5.js"),n("./src/sandbox/compile.ts")],void 0===(a="function"===typeof(r=function(e,t,r,s){"use strict";var a=n("../../node_modules/@babel/runtime/helpers/interopRequireDefault.js");function o(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(e){var n=function(e){var n=(0,s.getCurrentManager)(),r=e.enhancedFrames.find(function(e){return i(n,(e._originalFileName||e.fileName||"").replace(location.origin,"").replace("file://",""))});if(r&&n){var a=r._originalFileName||r.fileName;if(a){var l=n.resolveTranspiledModule(a.replace(location.origin,"").replace("file://",""),"/");if(l){var c=l.module;return{type:"action",action:"show-error",path:c.parent?c.parent.path:c.path,title:e.error.name,message:e.error.message,line:r._originalLineNumber,column:r._originalColumnNumber,payload:{},severity:"error"}}}}else{var u=e.error;if(u.tModule||i(n,(u.fileName||"").replace(location.origin,"").replace("file://","")))return function(e){for(var n=1;n<arguments.length;n++){var r=null!=arguments[n]?arguments[n]:{};n%2?o(r,!0).forEach(function(n){(0,t.default)(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):o(r).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}({},function(e){var t=e.name,n=e.message,r=null,s=null;if(!e.hideLine)if(null!=e.line)r=e.line;else if(null!=e.lineNumber)r=e.lineNumber;else if(e.stack){var a=e.stack.match(/<anonymous>:(\d+):(\d+)/);if(a)r=a[1],s=a[2];else{var o=e.stack.match(/(\d+):(\d+)/);o&&(r=o[1],s=o[2])}}return{path:e.tModule?e.tModule.module.path:e.path,title:t,message:n,line:parseInt(r,10),column:parseInt(s,10),payload:e.payload||{},severity:e.severity||"error"}}(u),{path:u.fileName,type:"action",action:"show-error"})}return null}(e);n?(0,r.dispatch)(r.actions.error.show(n.title,n.message,{line:n.line,column:n.column,path:n.path,payload:n.payload})):r.actions.error.show(e.error.name,e.error.message,{line:e.error.lineNumber,column:e.error.columnNumber,path:e.error.fileName,payload:{}})},t=a(t);var i=function(e,t){try{return e&&e.resolveTranspiledModule(t,"/")}catch(n){return null}}})?r.apply(t,s):r)||(e.exports=a)},"../sandbox-hooks/errors/module-not-found-error.js":function(e,t,n){var r,s,a;s=[t,n("../../node_modules/@babel/runtime/helpers/classCallCheck.js"),n("../../node_modules/@babel/runtime/helpers/possibleConstructorReturn.js"),n("../../node_modules/@babel/runtime/helpers/getPrototypeOf.js"),n("../../node_modules/@babel/runtime/helpers/assertThisInitialized.js"),n("../../node_modules/@babel/runtime/helpers/inherits.js"),n("../../node_modules/@babel/runtime/helpers/defineProperty.js"),n("../sandbox-hooks/errors/sandbox-error.js")],void 0===(a="function"===typeof(r=function(e,t,r,s,a,o,i,l){"use strict";var c=n("../../node_modules/@babel/runtime/helpers/interopRequireDefault.js");Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0,t=c(t),r=c(r),s=c(s),a=c(a),o=c(o),i=c(i);var u=function(e){function n(e,o,l){var c;return(0,t.default)(this,n),c=(0,r.default)(this,(0,s.default)(n).call(this)),(0,i.default)((0,a.default)(c),"type","module-not-found"),(0,i.default)((0,a.default)(c),"severity","error"),(0,i.default)((0,a.default)(c),"path",void 0),(0,i.default)((0,a.default)(c),"isDependency",void 0),c.path=e,c.isDependency=o,c.name="ModuleNotFoundError",c.message="Could not find module in path: '".concat(e,"'"),l&&(c.message+=" relative to '".concat(l,"'")),c}return(0,o.default)(n,e),n}((l=c(l)).default);e.default=u})?r.apply(t,s):r)||(e.exports=a)},"../sandbox-hooks/errors/sandbox-error.js":function(e,t,n){var r,s,a;s=[t,n("../../node_modules/@babel/runtime/helpers/classCallCheck.js"),n("../../node_modules/@babel/runtime/helpers/possibleConstructorReturn.js"),n("../../node_modules/@babel/runtime/helpers/getPrototypeOf.js"),n("../../node_modules/@babel/runtime/helpers/assertThisInitialized.js"),n("../../node_modules/@babel/runtime/helpers/inherits.js"),n("../../node_modules/@babel/runtime/helpers/defineProperty.js")],void 0===(a="function"===typeof(r=function(e,t,r,s,a,o,i){"use strict";var l=n("../../node_modules/@babel/runtime/helpers/interopRequireDefault.js");Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0,t=l(t),r=l(r),s=l(s),a=l(a),o=l(o),i=l(i);var c=function(e){function n(e){var o;return(0,t.default)(this,n),o=(0,r.default)(this,(0,s.default)(n).call(this,e?e.message:null)),(0,i.default)((0,a.default)(o),"severity",void 0),(0,i.default)((0,a.default)(o),"type",void 0),(0,i.default)((0,a.default)(o),"module",void 0),(0,i.default)((0,a.default)(o),"payload",void 0),(0,i.default)((0,a.default)(o),"suggestions",void 0),(0,i.default)((0,a.default)(o),"suggestions",[]),e&&(o.fileName=e.fileName,o.description=e.description,o.message=e.message,o.name=e.name,o.stack=e.stack,o.number=e.number),o}return(0,o.default)(n,e),n}(Error);e.default=c})?r.apply(t,s):r)||(e.exports=a)},"../sandbox-hooks/errors/transformers/index.js":function(e,t,n){var r,s,a;s=[t,n("../codesandbox-api/dist/codesandbox.es5.js"),n("../sandbox-hooks/errors/transformers/raw-react-component-error.js")],void 0===(a="function"===typeof(r=function(e,t,r){"use strict";var s=n("../../node_modules/@babel/runtime/helpers/interopRequireDefault.js");Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(){a.forEach(function(e){return(0,t.registerErrorTransformer)(e)})};var a=[(r=s(r)).default]})?r.apply(t,s):r)||(e.exports=a)},"../sandbox-hooks/errors/transformers/raw-react-component-error.js":function(e,t,n){var r,s,a;s=[t,n("../../node_modules/@babel/runtime/helpers/slicedToArray.js"),n("../codesandbox-api/dist/codesandbox.es5.js"),n("../common/lib/utils/path.js")],void 0===(a="function"===typeof(r=function(e,t,r,s){"use strict";var a=n("../../node_modules/@babel/runtime/helpers/interopRequireDefault.js");Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(e,n){if(e.message.includes("Failed to execute 'createElement' on 'Document': The tag name provided ")){var a=function e(t){var n=Array.from(t.dependencies).find(function(e){return!/\.([\w]{2}|[\w]{3})$/.test(e.module.path)});return n?[t,n]:Array.from(t.dependencies).reduce(function(t,n){return t||e(n)},null)}(n);if(a){var o=(0,t.default)(a,2),i=o[0],l=o[1];return{name:"Raw import",message:"It seems like '".concat((0,s.basename)(i.module.path),"' is importing a raw module (").concat((0,s.basename)(l.module.path),")"),suggestions:[{title:"Rename ".concat((0,s.basename)(l.module.path)," to ").concat((0,s.basename)(l.module.path),".js"),action:function(){(0,r.dispatch)(r.actions.source.modules.rename(l.module.path,"".concat((0,s.basename)(l.module.path),".js")))}}]}}}return null},t=a(t)})?r.apply(t,s):r)||(e.exports=a)},"../sandbox-hooks/not-found-screen/index.js":function(e,t,n){var r,s,a;s=[t,n("../../node_modules/@babel/runtime/regenerator/index.js"),n("../../node_modules/@babel/runtime/helpers/asyncToGenerator.js"),n("../sandbox-hooks/not-found-screen/overlay-manager.js"),n("../sandbox-hooks/preview-secret.js")],void 0===(a="function"===typeof(r=function(e,t,r,s,a){"use strict";var o=n("../../node_modules/@babel/runtime/helpers/interopRequireDefault.js");Object.defineProperty(e,"__esModule",{value:!0}),e.show404=function(e){return l.apply(this,arguments)},t=o(t),r=o(r);var i='\n<style>\nbody {\n  font-family: "Roboto", sans-serif;\n  background-color: #1d2022;\n  width: 100vw;\n  height: 100vh;\n  -webkit-font-smoothing: antialiased;\n  -moz-font-smoothing: antialiased;\n  -moz-osx-font-smoothing: grayscale;\n  font-smoothing: antialiased;\n  text-rendering: optimizeLegibility;\n  font-smooth: always;\n  -webkit-tap-highlight-color: transparent;\n  -webkit-touch-callout: none;\n  min-height: 100%;\n  -webkit-text-size-adjust: 100%;\n  line-height: 1.4;\n  overflow: hidden;\n}\n\n.container {\n  display: -webkit-box;\n  display: -ms-flexbox;\n  display: flex;\n  -webkit-box-pack: center;\n  -ms-flex-pack: center;\n  justify-content: center;\n  -webkit-box-align: center;\n  -ms-flex-align: center;\n  align-items: center;\n  -ms-flex-direction: column;\n  flex-direction: column;\n  margin: 0 auto;\n  max-width: 530px;\n  height: 100%;\n}\n\n.title {\n  color: #efefef;\n  font-size: 3rem;\n  width: 100%;\n  font-weight: 600;\n  text-align: center;\n  margin-bottom: 1rem;\n}\n.description {\n  color: #eeeeee;\n  font-size: 1.5rem;\n  width: 100%;\n  font-weight: 300;\n  text-align: center;\n  margin-top: 0;\n}\n\nbutton {\n  text-decoration: none;\n  color: #40a9f3;\n  outline: none;\n  border: none;\n  background: transparent;\n  padding: 0;\n  margin: 0;\n  cursor: pointer;\n  font-size: 1em;\n}\n</style>\n\n<div class="container">\n<h1 class="title">404</h1>\n<p class="description">\n  We could not find the sandbox you\u2019re looking for, did you try\n  <button id="sign-in-button">signing in</button>?\n</p>\n</div>\n';function l(){return(l=(0,r.default)(t.default.mark(function e(n){return t.default.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,(0,s.createOverlay)(i);case 2:e.sent.contentDocument.getElementById("sign-in-button").onclick=function(){(0,a.requestPreviewSecretFromApp)(n)};case 4:case"end":return e.stop()}},e)}))).apply(this,arguments)}})?r.apply(t,s):r)||(e.exports=a)},"../sandbox-hooks/not-found-screen/overlay-manager.js":function(e,t,n){var r,s,a;s=[t,n("../../node_modules/@babel/runtime/regenerator/index.js"),n("../../node_modules/@babel/runtime/helpers/asyncToGenerator.js")],void 0===(a="function"===typeof(r=function(e,t,r){"use strict";var s=n("../../node_modules/@babel/runtime/helpers/interopRequireDefault.js");Object.defineProperty(e,"__esModule",{value:!0}),e.resetOverlay=function(){try{window.document.body.removeChild(a),a=null}catch(e){}},e.createOverlay=function(e){return o.apply(this,arguments)},t=s(t),r=s(r);var a=null;function o(){return(o=(0,r.default)(t.default.mark(function e(n){var r;return t.default.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,new Promise(function(e){a&&e(a);var t=document.createElement("iframe");t.setAttribute("style","position: fixed; top: 0; left: 0; width: 100%; height: 100%; border: none; z-index: 214748366;"),t.setAttribute("id","frame"),a=t,document.body.appendChild(t),t.contentDocument?e(t):document.getElementById("not-found-frame")?document.getElementById("not-found-frame").onload=function(){e(t)}:e(t)});case 2:return r=e.sent,!!document.getElementById("not-found-frame")||document.body.appendChild(r),r.contentDocument.body.innerHTML=n,e.abrupt("return",r);case 7:case"end":return e.stop()}},e)}))).apply(this,arguments)}})?r.apply(t,s):r)||(e.exports=a)},"../sandbox-hooks/preview-secret.js":function(e,t,n){var r,s,a;s=[t,n("../common/lib/utils/url-generator.js")],void 0===(a="function"===typeof(r=function(e,t){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.requestPreviewSecretFromApp=e.listenForPreviewSecret=e.setPreviewSecret=e.getPreviewSecret=void 0;var n=function(){return document.cookie.replace(new RegExp("(?:(?:^|.*;\\s*)".concat("csb_sandbox_secret","\\s*\\=\\s*([^;]*).*$)|^.*$")),"$1")};e.getPreviewSecret=n;var r=function(e){if(null!==e){var t=n();(t&&!e||e&&!t||t!==e)&&(e?(document.cookie="".concat("csb_sandbox_secret","=").concat(e),location.reload()):document.cookie="".concat("csb_sandbox_secret","=; expires=Thu, 01 Jan 1970 00:00:01 GMT;"))}};function s(){var e={width:1020,height:618},t=e.width,n=e.height,r=function(e){var t=e.width,n=e.height,r=window.screenLeft?window.screenLeft:window.screenX,s=window.screenTop?window.screenTop:window.screenY,a=r+window.innerWidth/2-t/2;return{top:s+window.innerHeight/2-n/2,left:a}}({width:t,height:n}),s=r.top,a=r.left;return"width=".concat(t,",height=").concat(n,",top=").concat(s,",left=").concat(a)}e.setPreviewSecret=r,e.listenForPreviewSecret=function(){var e=function(e){if(e.data&&"preview-secret"===e.data.$type){var t=e.data.previewSecret;r(t)}};return window.addEventListener("message",e),function(){window.removeEventListener("message",e)}},e.requestPreviewSecretFromApp=function(e){var n=(0,t.protocolAndHost)(),a=window.open(n+"/auth/sandbox/"+e,name,"scrollbars=no,toolbar=no,location=no,titlebar=no,directories=no,status=no,menubar=no, ".concat(s()));setInterval(function(){a.postMessage({$type:"request-preview-secret"},n)},500),window.addEventListener("message",function e(t){t.data&&"preview-secret"===t.data.$type&&(r(t.data.previewSecret),window.removeEventListener("message",e),a.close())})}})?r.apply(t,s):r)||(e.exports=a)},"../sandbox-hooks/react-error-overlay/components/additional.js":function(e,t,n){var r,s,a;s=[t,n("../sandbox-hooks/react-error-overlay/styles.js"),n("../sandbox-hooks/react-error-overlay/utils/dom/consumeEvent.js"),n("../sandbox-hooks/react-error-overlay/utils/dom/css.js"),n("../sandbox-hooks/react-error-overlay/utils/dom/enableTabClick.js")],void 0===(a="function"===typeof(r=function(e,t,n,r,s){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.updateAdditional=function(e,a,o,i,l){if(a.lastChild&&a.removeChild(a.lastChild),!(i<=1)){var c=e.createElement("div");(0,r.applyStyles)(c,t.additionalChildStyle);var u=e.createElement("span");(0,r.applyStyles)(u,t.groupStyle);var d=e.createElement("button");(0,r.applyStyles)(d,t.groupElemLeft),d.addEventListener("click",function(e){(0,n.consumeEvent)(e),l(-1)}),d.appendChild(e.createTextNode("\u2190")),(0,s.enableTabClick)(d);var p=e.createElement("button");(0,r.applyStyles)(p,t.groupElemRight),p.addEventListener("click",function(e){(0,n.consumeEvent)(e),l(1)}),p.appendChild(e.createTextNode("\u2192")),(0,s.enableTabClick)(p),u.appendChild(d),u.appendChild(p),c.appendChild(u);var f="".concat(o," of ").concat(i," errors on the page");c.appendChild(e.createTextNode(f)),a.appendChild(c)}}})?r.apply(t,s):r)||(e.exports=a)},"../sandbox-hooks/react-error-overlay/components/close.js":function(e,t,n){var r,s,a;s=[t,n("../sandbox-hooks/react-error-overlay/styles.js"),n("../sandbox-hooks/react-error-overlay/utils/dom/css.js")],void 0===(a="function"===typeof(r=function(e,t,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.createClose=function(e,r){var s=e.createElement("div");(0,n.applyStyles)(s,t.hintsStyle);var a=function(e,r,s){var a=e.createElement("span");return a.appendChild(e.createTextNode(r)),a.setAttribute("title",s),(0,n.applyStyles)(a,t.hintStyle),a}(e,"\xd7","Click or press Escape to dismiss.");return a.addEventListener("click",function(){return r()}),(0,n.applyStyles)(a,t.closeButtonStyle),s.appendChild(a),s}})?r.apply(t,s):r)||(e.exports=a)},"../sandbox-hooks/react-error-overlay/components/code.js":function(e,t,n){var r,s,a;s=[t,n("../../node_modules/babel-code-frame/lib/index.js"),n("../../node_modules/react-dev-utils/ansiHTML.js"),n("../sandbox-hooks/react-error-overlay/styles.js"),n("../sandbox-hooks/react-error-overlay/utils/dom/css.js")],void 0===(a="function"===typeof(r=function(e,t,r,s,a){"use strict";var o=n("../../node_modules/@babel/runtime/helpers/interopRequireDefault.js");Object.defineProperty(e,"__esModule",{value:!0}),e.createCode=function(e,n,o,i,l,c,u){var d=[],p=1/0;n.forEach(function(e){var t=e.content,n=t.match(/^\s*/);""!==t&&(p=n&&n[0]?Math.min(p,n[0].length):0)}),n.forEach(function(e){var t=e.content,n=e.lineNumber;isFinite(p)&&(t=t.substring(p)),d[n-1]=t});var f=(0,t.default)(d.join("\n"),o,null==i?0:i-(isFinite(p)?p:0),{forceColor:!0,linesAbove:l,linesBelow:l}),h=(0,r.default)(f),m=e.createElement("code");m.innerHTML=h,(0,a.applyStyles)(m,s.codeStyle);var b=m.childNodes;e:for(var v=0;v<b.length;++v)for(var y=b[v],g=y.childNodes,j=0;j<g.length;++j){var x=g[j].innerText;if(null!=x&&-1!==x.indexOf(" "+o+" |")){(0,a.applyStyles)(y,c?s.primaryErrorStyle:s.secondaryErrorStyle);break e}}var w=e.createElement("pre");if((0,a.applyStyles)(w,c?s.primaryPreStyle:s.secondaryPreStyle),w.appendChild(m),"function"===typeof u){var k=u;w.style.cursor="pointer",w.addEventListener("click",function(){k()})}return w},t=o(t),r=o(r)})?r.apply(t,s):r)||(e.exports=a)},"../sandbox-hooks/react-error-overlay/components/footer.js":function(e,t,n){var r,s,a;s=[t,n("../sandbox-hooks/react-error-overlay/styles.js"),n("../sandbox-hooks/react-error-overlay/utils/dom/css.js")],void 0===(a="function"===typeof(r=function(e,t,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.createFooter=function(e){var r=e.createElement("div");return(0,n.applyStyles)(r,t.footerStyle),r.appendChild(e.createTextNode("This screen is visible only in development. It will not appear if the app crashes in production.")),r.appendChild(e.createElement("br")),r.appendChild(e.createTextNode("Open your browser\u2019s developer console to further inspect this error.")),r.appendChild(e.createElement("br")),r.appendChild(e.createTextNode("This error overlay is powered by `react-error-overlay` used in `create-react-app`.")),r}})?r.apply(t,s):r)||(e.exports=a)},"../sandbox-hooks/react-error-overlay/components/frame.js":function(e,t,n){var r,s,a;s=[t,n("./src/sandbox/compile.ts"),n("../codesandbox-api/dist/codesandbox.es5.js"),n("../sandbox-hooks/react-error-overlay/styles.js"),n("../sandbox-hooks/react-error-overlay/utils/dom/css.js"),n("../sandbox-hooks/react-error-overlay/utils/dom/enableTabClick.js"),n("../sandbox-hooks/react-error-overlay/utils/isInternalFile.js"),n("../sandbox-hooks/react-error-overlay/components/code.js")],void 0===(a="function"===typeof(r=function(e,t,n,r,s,a,o,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.createFrame=function(e,l,c,u,d,p,f,h,m,b){var v=l.compiled,y=c.functionName,g=c._originalFileName,j=c.fileName,x=c.lineNumber,w=c.columnNumber,k=c._scriptCode,O=c._originalLineNumber,_=c._originalColumnNumber,S=c._originalScriptCode;"Object.friendlySyntaxErrorLabel"!==y&&"Object.exports.__esModule"!==y||(y="(anonymous function)");var E=function(e,t,n,r,s,a,o){var i;if(!o&&e&&"number"===typeof t){var l=/^[\/|\\].*?[\/|\\]((src|node_modules)[\/|\\].*)/.exec(e);i=l&&l[1]?l[1]:e,i+=":"+t,n&&(i+=":"+n)}else r&&"number"===typeof s?(i=r+":"+s,a&&(i+=":"+a)):i="unknown";return i}(g,O,_,j,x,w,v),T=!1,P=(0,o.isInternalFile)(g,j),M=!function(e){switch(e){case"EvalError":case"InternalError":case"RangeError":case"ReferenceError":case"SyntaxError":case"TypeError":case"URIError":return!0;default:return!1}}(b),C=P&&(M||p.hasReachedAppCode);P||(p.hasReachedAppCode=!0),C&&(++p.value,T=!0);var D=null;if(!C||m){if(p.value>0){var N=p.value,R=function(e,t,n){var o=e.createElement("div");(0,a.enableTabClick)(o);var i=e.createTextNode("\u25b6 "+t+" stack frames were collapsed.");return o.appendChild(i),o.addEventListener("click",function(){for(var t=i.textContent.match(/\u25b2/),a=e.getElementsByName("bundle-"+n),l=0;l<a.length;++l){var c=a[l];c.style.display=t?"none":""}t?(i.textContent=i.textContent.replace(/\u25b2/,"\u25b6"),i.textContent=i.textContent.replace(/expanded/,"collapsed"),(0,s.applyStyles)(o,r.omittedFramesCollapsedStyle)):(i.textContent=i.textContent.replace(/\u25b6/,"\u25b2"),i.textContent=i.textContent.replace(/collapsed/,"expanded"),(0,s.applyStyles)(o,r.omittedFramesExpandedStyle))}),(0,s.applyStyles)(o,r.omittedFramesCollapsedStyle),o}(e,N,f);window.requestAnimationFrame(function(){!function(e,t,n,o,i){var l=e.getElementsByName("bundle-"+o);if(!(l.length<1)){for(var c=l[0];null!=c&&c.parentNode!==t;)c=c.parentNode;var u=e.createElement("div");(0,a.enableTabClick)(u),u.setAttribute("name","bundle-"+o);var d=e.createTextNode("\u25bc "+n+" stack frames were expanded.");u.appendChild(d),u.addEventListener("click",function(){return i.click()}),(0,s.applyStyles)(u,r.omittedFramesExpandedStyle),u.style.display="none",t.insertBefore(u,c)}}(e,h,N,f,R)}),m&&C?D=R:h.appendChild(R),++p.bundle}p.value=0}var A=null;g&&(-1!==g.trim().indexOf(" ")||(A=function(){var e=(0,t.getCurrentManager)();if(e){var r=e.resolveTranspiledModule(g.replace(location.origin,"").replace("file://",""),"/");(0,n.dispatch)(n.actions.editor.openModule(r.module.parent?r.module.parent.path:r.module.path,window.encodeURIComponent(O||1)))}}));var I=function(e,t,n,o,i){var l,c=e.createElement("div"),u=e.createElement("div");l=t&&"Object.<anonymous>"!==t?t:"(anonymous function)";var d=n.replace("webpack://",".");o?(0,s.applyStyles)(u,Object.assign({},r.functionNameStyle,r.depStyle)):(0,s.applyStyles)(u,r.functionNameStyle),u.appendChild(e.createTextNode(l)),c.appendChild(u);var p=e.createElement("div");(0,s.applyStyles)(p,r.linkStyle);var f=e.createElement("a");if((0,s.applyStyles)(f,r.anchorStyle),f.appendChild(e.createTextNode(d)),p.appendChild(f),c.appendChild(p),"function"===typeof i){var h=i;(0,a.enableTabClick)(f),f.style.cursor="pointer",f.addEventListener("click",function(){h()})}return c}(e,y,E,C,A);T&&((0,s.applyStyles)(I,r.hiddenStyle),I.setAttribute("name","bundle-"+f));var F=!1;return C||(v&&k&&0!==k.length&&null!=x?(I.appendChild((0,i.createCode)(e,k,x,w,u,d,A)),F=!0):!v&&S&&0!==S.length&&null!=O&&(I.appendChild((0,i.createCode)(e,S,O,_,u,d,A)),F=!0)),{elem:I,hasSource:F,collapseElement:D}}})?r.apply(t,s):r)||(e.exports=a)},"../sandbox-hooks/react-error-overlay/components/frames.js":function(e,t,n){var r,s,a;s=[t,n("../sandbox-hooks/react-error-overlay/utils/dom/css.js"),n("../sandbox-hooks/react-error-overlay/styles.js"),n("../sandbox-hooks/react-error-overlay/utils/dom/enableTabClick.js"),n("../sandbox-hooks/react-error-overlay/components/frame.js")],void 0===(a="function"===typeof(r=function(e,t,n,r,s){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.createFrames=function(e,a,o,i,l){if(a.length!==o.length)throw new Error("You must give a frame settings array of identical length to resolved frames.");var c=e.createElement("div");(0,t.applyStyles)(c,n.traceStyle);var u=0,d=!0,p={value:0,bundle:1,hasReachedAppCode:!1};return a.forEach(function(f){var h=u++,m=function e(s,a,o,i,l,c){var u=o();if(null!=u){var d=u.hasSource,p=u.elem,f=u.collapseElement,h=s.createElement("div");if(h.appendChild(p),d){var m=s.createElement("div");(0,r.enableTabClick)(m),(0,t.applyStyles)(m,n.toggleStyle);var b=l[i],v=s.createTextNode("View "+(b&&b.compiled?"source":"compiled"));m.addEventListener("click",function(){b&&(b.compiled=!b.compiled);var t=e(s,a,o,i,l,c);null!=t&&(a.insertBefore(t,h),a.removeChild(h))}),m.appendChild(v),h.appendChild(m)}return null!=f&&h.appendChild(f),h}}(e,c,s.createFrame.bind(void 0,e,o[h],f,i,d,p,p.bundle,c,u===a.length,l),h,o,i);null!=m&&(d=!1,c.appendChild(m))}),p.value=0,c}})?r.apply(t,s):r)||(e.exports=a)},"../sandbox-hooks/react-error-overlay/components/overlay.js":function(e,t,n){var r,s,a;s=[t,n("./src/sandbox/compile.ts"),n("../sandbox-hooks/react-error-overlay/styles.js"),n("../sandbox-hooks/react-error-overlay/utils/dom/css.js"),n("../sandbox-hooks/react-error-overlay/components/additional.js"),n("../sandbox-hooks/react-error-overlay/components/close.js"),n("../sandbox-hooks/react-error-overlay/components/footer.js"),n("../sandbox-hooks/react-error-overlay/components/frames.js"),n("../sandbox-hooks/react-error-overlay/components/suggestions.js")],void 0===(a="function"===typeof(r=function(e,t,n,r,s,a,o,i,l){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.createOverlay=function(e,c,u,d,p,f,h,m,b,v){var y=p.map(function(){return{compiled:!1}}),g=e.createElement("div");(0,r.applyStyles)(g,n.overlayStyle);var j=e.createElement("div");(0,r.applyStyles)(j,n.containerStyle),g.appendChild(j),j.appendChild((0,a.createClose)(e,v));var x=e.createElement("div");(0,s.updateAdditional)(e,x,h,m,b),j.appendChild(x);var w=e.createElement("div");(0,r.applyStyles)(w,n.headerStyle);var k=e.createElement("div");(0,r.applyStyles)(k,n.messageHeaderStyle);var O=d;if(O=O.replace(/^Invariant Violation:\s*/,"").replace(/^Warning:\s*/,"").replace(" Check the render method","\n\nCheck the render method").replace(" Check your code at","\n\nCheck your code at"),w.appendChild(e.createTextNode(u||"")),k.appendChild(e.createTextNode(O)),j.appendChild(w),j.appendChild(k),c.originalName||c.originalMessage){var _=e.createElement("div"),S=e.createElement("div");(0,r.applyStyles)(S,n.originalHeaderStyle),S.appendChild(e.createTextNode("Original error:")),_.appendChild(S);var E=e.createElement("div");(0,r.applyStyles)(E,n.originalMessageHeaderStyle),E.appendChild(e.createTextNode("".concat(c.originalName||"",": ").concat(c.originalMessage))),_.appendChild(E),k.appendChild(_)}return(0,t.areActionsEnabled)()&&c.suggestions&&c.suggestions.length>0&&j.appendChild((0,l.createSuggestions)(c)),j.appendChild((0,i.createFrames)(e,p,y,f,u)),j.appendChild((0,o.createFooter)(e)),{overlay:g,additional:x}}})?r.apply(t,s):r)||(e.exports=a)},"../sandbox-hooks/react-error-overlay/components/suggestions.js":function(e,t,n){var r,s,a;s=[t,n("../sandbox-hooks/react-error-overlay/utils/dom/css.js"),n("../sandbox-hooks/react-error-overlay/styles.js")],void 0===(a="function"===typeof(r=function(e,t,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.createSuggestions=function(e){var r=document.createElement("div");(0,t.applyStyles)(r,n.suggestionsContainerStyle);var s=document.createElement("div");return s.appendChild(document.createTextNode("Suggested solutions:")),(0,t.applyStyles)(s,n.suggestionsTitleStyle),r.appendChild(s),e.suggestions.forEach(function(e){var s=document.createElement("button");s.appendChild(document.createTextNode(e.title)),s.setAttribute("onmouseover",'this.style.backgroundColor="#78CDF7"'),s.setAttribute("onmouseout",'this.style.backgroundColor="'.concat(n.suggestionsButtonStyle["background-color"],'"')),(0,t.applyStyles)(s,n.suggestionsButtonStyle),s.addEventListener("click",function(t){t.preventDefault(),e.action()}),r.appendChild(s)}),r}})?r.apply(t,s):r)||(e.exports=a)},"../sandbox-hooks/react-error-overlay/effects/proxyConsole.js":function(e,t,n){var r,s,a;s=[t],void 0===(a="function"===typeof(r=function(e){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.unregisterReactStack=e.registerReactStack=e.permanentRegister=void 0;var t=[];e.registerReactStack=function(){"undefined"!==typeof console&&(console.reactStack=function(e){return t.push(e)},console.reactStackEnd=function(e){return t.pop()})},e.unregisterReactStack=function(){"undefined"!==typeof console&&(console.reactStack=void 0,console.reactStackEnd=void 0)},e.permanentRegister=function(e,n){if("undefined"!==typeof console){var r=console[e];"function"===typeof r&&(console[e]=function(){try{var e=arguments[0];"string"===typeof e&&t.length>0&&n(e,t[t.length-1])}catch(s){setTimeout(function(){throw s})}return r.apply(this,arguments)})}}})?r.apply(t,s):r)||(e.exports=a)},"../sandbox-hooks/react-error-overlay/effects/stackTraceLimit.js":function(e,t,n){var r,s,a;s=[t],void 0===(a="function"===typeof(r=function(e){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.register=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:r;if(!t)try{n=Error.stackTraceLimit,Error.stackTraceLimit=e,t=!0}catch(s){}},e.unregister=function(){if(t)try{Error.stackTraceLimit=n,t=!1}catch(e){}};var t=!1,n=10,r=50})?r.apply(t,s):r)||(e.exports=a)},"../sandbox-hooks/react-error-overlay/effects/unhandledError.js":function(e,t,n){var r,s,a;s=[t],void 0===(a="function"===typeof(r=function(e){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.register=function(e,n){null===t?t=function(e,t){if(t.error){var n=t.error;n instanceof Error?e(n):e(new Error(n))}}.bind(void 0,n):e.addEventListener("error",t)},e.unregister=function(e){null!==t&&(e.removeEventListener("error",t),t=null)};var t=null})?r.apply(t,s):r)||(e.exports=a)},"../sandbox-hooks/react-error-overlay/effects/unhandledRejection.js":function(e,t,n){var r,s,a;s=[t],void 0===(a="function"===typeof(r=function(e){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.register=function(e,n){null===t?t=function(e,t){if(null==t||null==t.reason)return e(new Error("Unknown"));var n=t.reason;return n instanceof Error?e(n):e(new Error(n))}.bind(void 0,n):e.addEventListener("unhandledrejection",t)},e.unregister=function(e){null!==t&&(e.removeEventListener("unhandledrejection",t),t=null)};var t=null})?r.apply(t,s):r)||(e.exports=a)},"../sandbox-hooks/react-error-overlay/listenToRuntimeErrors.js":function(e,t,n){var r,s,a;s=[t,n("../sandbox-hooks/react-error-overlay/effects/unhandledError.js"),n("../sandbox-hooks/react-error-overlay/effects/unhandledRejection.js"),n("../sandbox-hooks/react-error-overlay/effects/stackTraceLimit.js"),n("../sandbox-hooks/react-error-overlay/effects/proxyConsole.js"),n("../sandbox-hooks/react-error-overlay/utils/warnings.js"),n("../sandbox-hooks/react-error-overlay/utils/getStackFrames.js")],void 0===(a="function"===typeof(r=function(e,t,r,s,a,o,i){"use strict";var l=n("../../node_modules/@babel/runtime/helpers/interopRequireDefault.js");Object.defineProperty(e,"__esModule",{value:!0}),e.listenToRuntimeErrors=function(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"/static/js/bundle.js",i=c(e);return(0,t.register)(window,function(e){return i(e,!1)}),(0,r.register)(window,function(e){return i(e,!0)}),(0,s.register)(),(0,a.registerReactStack)(),(0,a.permanentRegister)("error",function(e,t){var r=(0,o.massage)(e,t);i({message:r.message,stack:r.stack,__unmap_source:n},!1)}),function(){(0,s.unregister)(),(0,r.unregister)(window),(0,t.unregister)(window),(0,a.unregisterReactStack)()}},e.crashWithFrames=void 0,i=l(i);var c=function(e){return function(t){var n=arguments.length>1&&void 0!==arguments[1]&&arguments[1];(0,i.default)(t,n,3).then(function(r){null==r&&"SyntaxError"!==t.name||e({error:t,unhandledRejection:n,contextSize:3,stackFrames:r})}).catch(function(e){console.log("Could not get the stack frames of error:",e)})}};e.crashWithFrames=c})?r.apply(t,s):r)||(e.exports=a)},"../sandbox-hooks/react-error-overlay/overlay.js":function(e,t,n){var r,s,a;s=[t,n("../codesandbox-api/dist/codesandbox.es5.js"),n("./src/sandbox/compile.ts"),n("../sandbox-hooks/react-error-overlay/listenToRuntimeErrors.js"),n("../sandbox-hooks/react-error-overlay/utils/errorRegister.js"),n("../sandbox-hooks/react-error-overlay/styles.js"),n("../sandbox-hooks/react-error-overlay/utils/dom/css.js"),n("../sandbox-hooks/react-error-overlay/components/overlay.js"),n("../sandbox-hooks/react-error-overlay/components/additional.js"),n("../sandbox-hooks/errors/index.js")],void 0===(a="function"===typeof(r=function(e,t,r,s,a,o,i,l,c,u){"use strict";var d=n("../../node_modules/@babel/runtime/helpers/interopRequireDefault.js");Object.defineProperty(e,"__esModule",{value:!0}),e.inject=function(){p=(0,s.listenToRuntimeErrors)(function(e){!function(e){var n=arguments.length>1&&void 0!==arguments[1]&&arguments[1];(0,a.consume)(e,n,f).then(function(e){if(null!=e)if(b.push(e),b.forEach(function(e){var t=(0,a.getErrorRecord)(e);(0,u.default)(t)}),function(){var e=(0,r.getCurrentManager)();e&&b.forEach(function(n){var r=(0,a.getErrorRecord)(n),s=r.enhancedFrames.find(function(t){try{return e&&!!e.resolveTranspiledModule((t._originalFileName||t.fileName||"").replace(location.origin,""),"/")}catch(n){return!1}}),o=r.error.tModule;if(!o&&s){var i=s._originalFileName||s.fileName||"";o=e.resolveTranspiledModule(i.replace(location.origin,""),"/")}if(o)try{var l=(0,t.transformError)(r.error,o,e.getTranspiledModules());if(l){var c=new Error(l.name||r.error.name);c.message=l.message,c.suggestions=l.suggestions,c.originalName=r.error.name,c.originalMessage=r.error.message,r.error=c}}catch(u){console.error(u)}})}(),null!==h&&null!==m)(0,c.updateAdditional)(h.contentDocument,m,v+1,b.length,function(e){j(e)});else{if(1!==b.length)throw new Error("Something is *really* wrong.");g(v=0)}}).catch(function(e){console.log("Could not consume error:",e)})}(e.error)})},e.uninject=function(){p&&p(),w()},e.unmount=w,u=d(u);var p,f=3,h=null,m=null,b=[],v=-1;function y(e,t,n,r){x();var s=window.document.createElement("iframe");(0,i.applyStyles)(s,o.iframeStyle),h=s,s.onload=function(){if(null!=h){var s=h.contentWindow,a=h.contentDocument,o=(0,l.createOverlay)(a,r,e,t,n,f,v+1,b.length,function(e){j(e)},function(){w()}),i=o.overlay,c=o.additional;null!=s&&(s.onkeydown=function(e){keyEventHandler(function(e){return function(e){switch(e){case SHORTCUT_ESCAPE:w();break;case SHORTCUT_LEFT:j(-1);break;case SHORTCUT_RIGHT:j(1)}}(e)},e)}),null!=a.body&&(a.body.style.margin="0",a.body.style["max-width"]="100vw",a.body.appendChild(i)),m=c}},window.document.body.appendChild(s)}function g(e){v=e;var t=(0,a.getErrorRecord)(b[e]),n=t.error,r=t.unhandledRejection,s=t.enhancedFrames;y(r?"Unhandled Rejection ("+n.name+")":n.name,n.message,s,n)}function j(e){if(0!==b.length){var t=v+e;t<0?t=b.length-1:t>=b.length&&(t=0),g(t)}}function x(e){if(e){if(null==h)return;try{window.document.body.removeChild(h)}catch(t){console.error(t)}}h=null,m=null}function w(){x(!(arguments.length>0&&void 0!==arguments[0])||arguments[0]),(0,a.drain)(),b=[],v=-1}})?r.apply(t,s):r)||(e.exports=a)},"../sandbox-hooks/react-error-overlay/styles.js":function(e,t,n){var r,s,a;s=[t,n("../../node_modules/@babel/runtime/helpers/defineProperty.js")],void 0===(a="function"===typeof(r=function(e,t){"use strict";var r=n("../../node_modules/@babel/runtime/helpers/interopRequireDefault.js");function s(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}Object.defineProperty(e,"__esModule",{value:!0}),e.suggestionsButtonStyle=e.suggestionsTitleStyle=e.suggestionsContainerStyle=e.footerStyle=e.groupElemRight=e.groupElemLeft=e.groupStyle=e.hiddenStyle=e.codeStyle=e.toggleStyle=e.originalMessageHeaderStyle=e.originalHeaderStyle=e.omittedFramesExpandedStyle=e.omittedFramesCollapsedStyle=e.secondaryPreStyle=e.secondaryErrorStyle=e.primaryPreStyle=e.primaryErrorStyle=e.depStyle=e.traceStyle=e.anchorStyle=e.linkStyle=e.functionNameStyle=e.messageHeaderStyle=e.headerStyle=e.additionalChildStyle=e.closeButtonStyle=e.hintStyle=e.hintsStyle=e.overlayStyle=e.iframeStyle=e.containerStyle=void 0,t=r(t),e.iframeStyle={position:"fixed",top:"0",left:"0",width:"100%",height:"100%",border:"none","z-index":2147483646};var a={width:"100%",height:"100%","box-sizing":"border-box","text-align":"center","background-color":"rgba(244, 244, 244, 0.9)","-webkit-font-smoothing":"antialiased","-moz-font-smoothing":"antialiased","-moz-osx-font-smoothing":"grayscale","font-smoothing":"antialiased","text-rendering":"optimizeLegibility","font-smooth":"always","-webkit-tap-highlight-color":"transparent","-webkit-touch-callout":"none"};e.overlayStyle=a;var o={position:"relative",display:"inline-flex","flex-direction":"column",height:"100%",width:"1024px","max-width":"100%","overflow-x":"hidden","overflow-y":"auto",padding:"0.5rem","box-sizing":"border-box","text-align":"left","font-family":"Consolas, Menlo, monospace","font-size":"11px","white-space":"pre-wrap","word-break":"break-word","line-height":1.5,color:"#293238"};e.containerStyle=o;var i={color:"#878e91"};e.hintsStyle=i,e.hintStyle={padding:"0.5em 1em",cursor:"pointer"};var l={color:"#293238","line-height":"1rem","font-size":"1.5rem",padding:"1rem",cursor:"pointer",position:"absolute",right:0,top:0};e.closeButtonStyle=l,e.additionalChildStyle={"margin-bottom":"0.5rem"};var c={"font-size":"2em","font-family":"Roboto, sans-serif",color:"#ce1126","white-space":"pre-wrap",margin:"0 2rem 0.5rem 0",flex:"0 0 auto","max-height":"50%",overflow:"auto","font-weight":"400"};e.headerStyle=c;var u=function(e){for(var n=1;n<arguments.length;n++){var r=null!=arguments[n]?arguments[n]:{};n%2?s(r,!0).forEach(function(n){(0,t.default)(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):s(r).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}({},c,{color:"black","font-weight":"300","font-size":"1.5em","font-family":"Consolas, Menlo, monospace",margin:0,"padding-bottom":"1rem","border-bottom":"1px solid #ddd"});e.messageHeaderStyle=u,e.originalHeaderStyle={color:"rgba(0, 0, 0, 0.7)","font-size":".75em","padding-top":"1rem","padding-bottom":".5rem"},e.originalMessageHeaderStyle={color:"black","font-size":".875em","font-family":"Consolas, Menlo, monospace",margin:0,"white-space":"pre-wrap",overflow:"auto"},e.functionNameStyle={},e.linkStyle={"font-size":"0.9em","margin-bottom":"0.9em"};var d={"text-decoration":"none",color:"#878e91"};e.anchorStyle=d,e.traceStyle={"font-size":"1em",flex:"0 1 auto","min-height":"0px",overflow:"auto","padding-top":"1rem"},e.depStyle={};var p={"background-color":"#fccfcf"};e.primaryErrorStyle=p;var f={"background-color":"#fbf5b4"};e.secondaryErrorStyle=f;var h={color:"#293238",cursor:"pointer","margin-bottom":"1.5em"};e.omittedFramesCollapsedStyle=h;var m={color:"#293238",cursor:"pointer","margin-bottom":"0.6em"};e.omittedFramesExpandedStyle=m;var b={display:"block",padding:"0.5em","margin-top":"0.5em","margin-bottom":"0.5em","overflow-x":"auto","white-space":"pre-wrap","border-radius":"0.25rem"},v=Object.assign({},b,{"background-color":"rgba(206, 17, 38, 0.05)"});e.primaryPreStyle=v;var y=Object.assign({},b,{"background-color":"rgba(251, 245, 180, 0.3)"});e.secondaryPreStyle=y;var g={"margin-bottom":"1.5em",color:"#878e91",cursor:"pointer"};e.toggleStyle=g,e.codeStyle={"font-family":"Consolas, Menlo, monospace"},e.hiddenStyle={display:"none"},e.groupStyle={"margin-right":"1em"};var j={"background-color":"rgba(206, 17, 38, 0.05)",color:"#ce1126",border:"none","border-radius":"4px",padding:"3px 6px",cursor:"pointer"},x=Object.assign({},j,{"border-top-right-radius":"0px","border-bottom-right-radius":"0px","margin-right":"1px"});e.groupElemLeft=x;var w=Object.assign({},j,{"border-top-left-radius":"0px","border-bottom-left-radius":"0px"});e.groupElemRight=w;var k={"font-family":"sans-serif",color:"#878e91","margin-top":"0.5rem",flex:"0 0 auto"};e.footerStyle=k,e.suggestionsContainerStyle={"font-family":"Roboto, sans-serif","padding-top":"1rem"},e.suggestionsTitleStyle={"font-size":"1rem","font-weight":"300"},e.suggestionsButtonStyle={transition:"0.3s ease all","background-color":"#B6E7FF",color:"rgba(0, 0, 0, 0.6)",padding:"0.5rem",margin:".5rem 0","margin-bottom":".5rem","font-size":".75rem","border-radius":"4px","margin-right":".5rem",border:"1px solid #6CAEDD",cursor:"pointer"}})?r.apply(t,s):r)||(e.exports=a)},"../sandbox-hooks/react-error-overlay/utils/dom/consumeEvent.js":function(e,t,n){var r,s,a;s=[t],void 0===(a="function"===typeof(r=function(e){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.consumeEvent=function(e){e.preventDefault(),"function"===typeof e.target.blur&&e.target.blur()}})?r.apply(t,s):r)||(e.exports=a)},"../sandbox-hooks/react-error-overlay/utils/dom/css.js":function(e,t,n){var r,s,a;s=[t],void 0===(a="function"===typeof(r=function(e){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.getHead=r,e.injectCss=function(e,s){var a=r(e),o=e.createElement("style");return o.type="text/css",o.appendChild(e.createTextNode(s)),a.appendChild(o),n[++t]=o,t},e.removeCss=function(e,t){null!=n[t]&&(r(e).removeChild(n[t]),delete n[t])},e.applyStyles=function(e,t){for(var n in e.setAttribute("style",""),t)t.hasOwnProperty(n)&&(e.style[n]=t[n])};var t=0,n={};function r(e){return e.head||e.getElementsByTagName("head")[0]}})?r.apply(t,s):r)||(e.exports=a)},"../sandbox-hooks/react-error-overlay/utils/dom/enableTabClick.js":function(e,t,n){var r,s,a;s=[t],void 0===(a="function"===typeof(r=function(e){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.enableTabClick=function(e){e.setAttribute("tabindex","0"),e.addEventListener("keydown",function(e){var t=e.key,n=e.which,r=e.keyCode;"Enter"!==t&&13!==n&&13!==r||(e.preventDefault(),"function"===typeof e.target.click&&e.target.click())})}})?r.apply(t,s):r)||(e.exports=a)},"../sandbox-hooks/react-error-overlay/utils/errorRegister.js":function(e,t,n){var r,s,a;s=[t,n("../sandbox-hooks/react-error-overlay/utils/parser.js"),n("../sandbox-hooks/react-error-overlay/utils/mapper.js"),n("../sandbox-hooks/react-error-overlay/utils/unmapper.js")],void 0===(a="function"===typeof(r=function(e,t,n,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.consume=function(e){var o=arguments.length>1&&void 0!==arguments[1]&&arguments[1],i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:3,l=(0,t.parse)(e);return(e.__unmap_source?(0,r.unmap)(e.__unmap_source,l,i):(0,n.map)(l,i)).then(function(t){return t=t.filter(function(e){var t=e.functionName;return null==t||-1===t.indexOf("__stack_frame_overlay_proxy_console__")}),s[++a]={error:e,unhandledRejection:o,contextSize:i,enhancedFrames:t},a})},e.getErrorRecord=function(e){return s[e]},e.drain=function(){for(var e=Object.keys(s),t=0;t<e.length;++t)delete s[e[t]]};var s=[],a=0})?r.apply(t,s):r)||(e.exports=a)},"../sandbox-hooks/react-error-overlay/utils/getLinesAround.js":function(e,t,n){var r,s,a;s=[t,n("../sandbox-hooks/react-error-overlay/utils/stack-frame.js")],void 0===(a="function"===typeof(r=function(e,t){"use strict";function n(e,n,r){"string"===typeof r&&(r=r.split("\n"));for(var s=[],a=Math.max(0,e-1-n);a<=Math.min(r.length-1,e-1+n);++a)s.push(new t.ScriptLine(a+1,r[a],a===e-1));return s}Object.defineProperty(e,"__esModule",{value:!0}),e.getLinesAround=n,e.default=void 0;var r=n;e.default=r})?r.apply(t,s):r)||(e.exports=a)},"../sandbox-hooks/react-error-overlay/utils/getSourceMap.js":function(e,t,n){var r,s,a;s=[t,n("../../node_modules/@babel/runtime/regenerator/index.js"),n("../../node_modules/@babel/runtime/helpers/asyncToGenerator.js"),n("../../node_modules/@babel/runtime/helpers/classCallCheck.js"),n("../../node_modules/@babel/runtime/helpers/createClass.js"),n("../../node_modules/@babel/runtime/helpers/defineProperty.js"),n("../../node_modules/source-map/source-map.js")],void 0===(a="function"===typeof(r=function(e,t,r,s,a,o,i){"use strict";var l=n("../../node_modules/@babel/runtime/helpers/interopRequireDefault.js");Object.defineProperty(e,"__esModule",{value:!0}),e.extractSourceMapUrl=u,e.getSourceMap=d,e.default=e.SourceMap=void 0,t=l(t),r=l(r),s=l(s),a=l(a),o=l(o);var c=function(){function e(t){(0,s.default)(this,e),(0,o.default)(this,"__source_map",void 0),this.__source_map=t}return(0,a.default)(e,[{key:"getOriginalPosition",value:function(e,t){var n=this.__source_map.originalPositionFor({line:e,column:t});return{line:n.line,column:n.column,source:n.source}}},{key:"getGeneratedPosition",value:function(e,t,n){var r=this.__source_map.generatedPositionFor({source:e,line:t,column:n});return{line:r.line,column:r.column}}},{key:"getSource",value:function(e){return this.__source_map.sourceContentFor(e)}},{key:"getSources",value:function(){return this.__source_map.sources}}]),e}();function u(e,t){for(var n=/\/\/[#@] ?sourceMappingURL=([^\s'"]+)\s*$/gm,r=null;;){var s=n.exec(t);if(null==s)break;r=s}return r&&r[1]?Promise.resolve(r[1].toString()):Promise.reject("Cannot find a source map directive for ".concat(e,"."))}function d(e,t){return p.apply(this,arguments)}function p(){return(p=(0,r.default)(t.default.mark(function e(n,r){var s,a,o,l,d,p;return t.default.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,u(n,r);case 2:if(0!==(s=e.sent).indexOf("data:")){e.next=14;break}if(a=/^data:application\/json;([\w=:"-]+;)*base64,/,o=s.match(a)){e.next=8;break}throw new Error("Sorry, non-base64 inline source-map encoding is not supported.");case 8:return s=s.substring(o[0].length),s=window.atob(s),s=JSON.parse(s),e.abrupt("return",new c(new i.SourceMapConsumer(s)));case 14:return l=n.lastIndexOf("/"),d=n.substring(0,l+1)+s,e.next=18,fetch(d).then(function(e){return e.json()});case 18:return p=e.sent,e.abrupt("return",new c(new i.SourceMapConsumer(p)));case 20:case"end":return e.stop()}},e)}))).apply(this,arguments)}e.SourceMap=c;var f=d;e.default=f})?r.apply(t,s):r)||(e.exports=a)},"../sandbox-hooks/react-error-overlay/utils/getStackFrames.js":function(e,t,n){var r,s,a;s=[t,n("../sandbox-hooks/react-error-overlay/utils/parser.js"),n("../sandbox-hooks/react-error-overlay/utils/mapper.js"),n("../sandbox-hooks/react-error-overlay/utils/unmapper.js")],void 0===(a="function"===typeof(r=function(e,t,n,r){"use strict";function s(e){arguments.length>1&&void 0!==arguments[1]&&arguments[1];var s=arguments.length>2&&void 0!==arguments[2]?arguments[2]:3,a=(0,t.parse)(e);return(e.__unmap_source?(0,r.unmap)(e.__unmap_source,a,s):(0,n.map)(a,s)).then(function(e){return 0===e.map(function(e){return e._originalFileName}).filter(function(e){return null!=e&&-1===e.indexOf("node_modules")}).length?null:e.filter(function(e){var t=e.functionName;return null==t||-1===t.indexOf("__stack_frame_overlay_proxy_console__")})})}Object.defineProperty(e,"__esModule",{value:!0}),e.getStackFrames=s,e.default=void 0;var a=s;e.default=a})?r.apply(t,s):r)||(e.exports=a)},"../sandbox-hooks/react-error-overlay/utils/isInternalFile.js":function(e,t,n){var r,s,a;s=[t],void 0===(a="function"===typeof(r=function(e){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.isInternalFile=function(e,t){return null==e||""===e||-1!==e.indexOf("/~/")||-1!==e.indexOf("/node_modules/")||-1!==e.trim().indexOf(" ")||null==t||""===t}})?r.apply(t,s):r)||(e.exports=a)},"../sandbox-hooks/react-error-overlay/utils/mapper.js":function(e,t,n){var r,s,a;s=[t,n("../../node_modules/@babel/runtime/regenerator/index.js"),n("../../node_modules/@babel/runtime/helpers/asyncToGenerator.js"),n("./src/sandbox/compile.ts"),n("../sandbox-hooks/react-error-overlay/utils/stack-frame.js"),n("../sandbox-hooks/react-error-overlay/utils/getSourceMap.js"),n("../sandbox-hooks/react-error-overlay/utils/getLinesAround.js"),n("../../node_modules/settle-promise/lib/index.js")],void 0===(a="function"===typeof(r=function(e,t,r,s,a,o,i,l){"use strict";var c=n("../../node_modules/@babel/runtime/helpers/interopRequireDefault.js");function u(e){return d.apply(this,arguments)}function d(){return(d=(0,r.default)(t.default.mark(function e(n){var c,u,d,p=arguments;return t.default.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return c=p.length>1&&void 0!==p[1]?p[1]:3,u={},d=[],n.forEach(function(e){var t=e.fileName;null!=t&&-1===d.indexOf(t)&&d.push(t)}),e.next=6,(0,l.settle)(d.map(function(){var e=(0,r.default)(t.default.mark(function e(n){var r,a,i,l;return t.default.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if(null==(r=(0,s.getCurrentManager)())||n.startsWith("webpack")){e.next=9;break}if(!(a=n.includes("?")?r.getTranspiledModuleByHash(n.split("?")[1]):r.resolveTranspiledModule(n.replace(location.origin,""),"/"))){e.next=9;break}return i=a.source&&a.source.compiledCode,e.next=7,(0,o.getSourceMap)(n,i);case 7:l=e.sent,u[n]={fileSource:i,map:l};case 9:case"end":return e.stop()}},e)}));return function(t){return e.apply(this,arguments)}}()));case 6:return e.abrupt("return",n.map(function(e){var t=e.functionName,n=e.fileName,r=e.lineNumber,s=e.columnNumber,o=u[n]||{},l=o.map,d=o.fileSource;if(null==l||null==r)return e;var p=l.getOriginalPosition(r,s),f=p.source,h=p.line,m=p.column,b=null==f?[]:l.getSource(f);return new a.default(t,n,r,s,(0,i.getLinesAround)(r,c,d),t,f,h,m,(0,i.getLinesAround)(h,c,b))}));case 7:case"end":return e.stop()}},e)}))).apply(this,arguments)}Object.defineProperty(e,"__esModule",{value:!0}),e.map=u,e.default=void 0,t=c(t),r=c(r),a=c(a);var p=u;e.default=p})?r.apply(t,s):r)||(e.exports=a)},"../sandbox-hooks/react-error-overlay/utils/parser.js":function(e,t,n){var r,s,a;s=[t,n("../../node_modules/@babel/runtime/helpers/construct.js"),n("../../node_modules/@babel/runtime/helpers/toConsumableArray.js"),n("../sandbox-hooks/react-error-overlay/utils/stack-frame.js")],void 0===(a="function"===typeof(r=function(e,t,r,s){"use strict";var a=n("../../node_modules/@babel/runtime/helpers/interopRequireDefault.js");Object.defineProperty(e,"__esModule",{value:!0}),e.parse=d,e.default=void 0,t=a(t),r=a(r),s=a(s);var o=/\(?(.+?)(?::(\d+))?(?::(\d+))?\)?$/;function i(e){return o.exec(e).slice(1).map(function(e){var t=Number(e);return isNaN(t)?e:t})}var l=/^\s*(at|in)\s.+(:\d+)/,c=/(^|@)\S+:\d+|.+line\s+\d+\s+>\s+(eval|Function).+/;function u(e){return e.filter(function(e){return l.test(e)||c.test(e)}).map(function(e){if(c.test(e)){var n=!1;/ > (eval|Function)/.test(e)&&(e=e.replace(/ line (\d+)(?: > eval line \d+)* > (eval|Function):\d+:\d+/g,":$1"),n=!0);var a=e.split(/[@]/g),o=a.pop();return(0,t.default)(s.default,[a.join("@")||(n?"eval":null)].concat((0,r.default)(i(o))))}-1!==e.indexOf("(eval ")&&(e=e.replace(/(\(eval at [^()]*)|(\),.*$)/g,"")),-1!==e.indexOf("(at ")&&(e=e.replace(/\(at /,"("));var l=e.trim().split(/\s+/g).slice(1),u=l.pop();return(0,t.default)(s.default,[l.join(" ")||null].concat((0,r.default)(i(u))))})}function d(e){if(null==e)throw new Error("You cannot pass a null object.");if("string"===typeof e)return u(e.split("\n"));if(Array.isArray(e))return u(e);if("string"===typeof e.stack)return u(e.stack.split("\n"));throw new Error("The error you provided does not contain a stack trace.")}var p=d;e.default=p})?r.apply(t,s):r)||(e.exports=a)},"../sandbox-hooks/react-error-overlay/utils/stack-frame.js":function(e,t,n){var r,s,a;s=[t,n("../../node_modules/@babel/runtime/helpers/createClass.js"),n("../../node_modules/@babel/runtime/helpers/classCallCheck.js"),n("../../node_modules/@babel/runtime/helpers/defineProperty.js")],void 0===(a="function"===typeof(r=function(e,t,r,s){"use strict";var a=n("../../node_modules/@babel/runtime/helpers/interopRequireDefault.js");Object.defineProperty(e,"__esModule",{value:!0}),e.default=e.ScriptLine=e.StackFrame=void 0,t=a(t),r=a(r),s=a(s),e.ScriptLine=function e(t,n){var a=arguments.length>2&&void 0!==arguments[2]&&arguments[2];(0,r.default)(this,e),(0,s.default)(this,"lineNumber",void 0),(0,s.default)(this,"content",void 0),(0,s.default)(this,"highlight",void 0),this.lineNumber=t,this.content=n,this.highlight=a};var o=function(){function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,a=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:null,i=arguments.length>4&&void 0!==arguments[4]?arguments[4]:null,l=arguments.length>5&&void 0!==arguments[5]?arguments[5]:null,c=arguments.length>6&&void 0!==arguments[6]?arguments[6]:null,u=arguments.length>7&&void 0!==arguments[7]?arguments[7]:null,d=arguments.length>8&&void 0!==arguments[8]?arguments[8]:null,p=arguments.length>9&&void 0!==arguments[9]?arguments[9]:null;(0,r.default)(this,e),(0,s.default)(this,"functionName",void 0),(0,s.default)(this,"fileName",void 0),(0,s.default)(this,"lineNumber",void 0),(0,s.default)(this,"columnNumber",void 0),(0,s.default)(this,"_originalFunctionName",void 0),(0,s.default)(this,"_originalFileName",void 0),(0,s.default)(this,"_originalLineNumber",void 0),(0,s.default)(this,"_originalColumnNumber",void 0),(0,s.default)(this,"_scriptCode",void 0),(0,s.default)(this,"_originalScriptCode",void 0),this.functionName=t,this.fileName=n,this.lineNumber=a,this.columnNumber=o,this._originalFunctionName=l,this._originalFileName=c,this._originalLineNumber=u,this._originalColumnNumber=d,this._scriptCode=i,this._originalScriptCode=p}return(0,t.default)(e,[{key:"getFunctionName",value:function(){return this.functionName}},{key:"getSource",value:function(){var e="";return null!=this.fileName&&(e+=this.fileName+":"),null!=this.lineNumber&&(e+=this.lineNumber+":"),null!=this.columnNumber&&(e+=this.columnNumber+":"),e.slice(0,-1)}},{key:"toString",value:function(){var e=this.getFunctionName();return null==e?this.getSource():"".concat(e," (").concat(this.getSource(),")")}}]),e}();e.StackFrame=o;var i=o;e.default=i})?r.apply(t,s):r)||(e.exports=a)},"../sandbox-hooks/react-error-overlay/utils/unmapper.js":function(e,t,n){var r,s,a;s=[t,n("../../node_modules/@babel/runtime/regenerator/index.js"),n("../../node_modules/@babel/runtime/helpers/typeof.js"),n("../../node_modules/@babel/runtime/helpers/asyncToGenerator.js"),n("../sandbox-hooks/react-error-overlay/utils/stack-frame.js"),n("../sandbox-hooks/react-error-overlay/utils/getSourceMap.js"),n("../sandbox-hooks/react-error-overlay/utils/getLinesAround.js"),n("../../node_modules/path-browserify/index.js")],void 0===(a="function"===typeof(r=function(e,t,r,s,a,o,i,l){"use strict";var c=n("../../node_modules/@babel/runtime/helpers/interopRequireDefault.js");function u(e,t){var n=-1,r=-1;do{++n,r=t.indexOf(e,r+1)}while(-1!==r);return n}function d(e,t){return p.apply(this,arguments)}function p(){return(p=(0,s.default)(t.default.mark(function e(n,s){var c,d,p,f,h=arguments;return t.default.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if(c=h.length>2&&void 0!==h[2]?h[2]:3,d="object"===(0,r.default)(n)?n.contents:null,p="object"===(0,r.default)(n)?n.uri:n,null!=d){e.next=7;break}return e.next=6,fetch(p).then(function(e){return e.text()});case 6:d=e.sent;case 7:return e.next=9,(0,o.getSourceMap)(p,d);case 9:return f=e.sent,e.abrupt("return",s.map(function(e){var t=e.functionName,n=e.lineNumber,r=e.columnNumber;if(null!=e._originalLineNumber)return e;var s=e.fileName;if(s&&(s=l.default.normalize(s)),null==s)return e;var o=s,h=f.getSources().map(function(e){return e.replace(/[\\]+/g,"/")}).filter(function(e){var t=(e=l.default.normalize(e)).lastIndexOf(o);return-1!==t&&t===e.length-o.length}).map(function(e){return{token:e,seps:u(l.default.sep,l.default.normalize(e)),penalties:u("node_modules",e)+u("~",e)}}).sort(function(e,t){var n=Math.sign(e.seps-t.seps);return 0!==n?n:Math.sign(e.penalties-t.penalties)});if(h.length<1||null==n)return new a.default(null,null,null,null,null,t,o,n,r,null);var m=h[0].token,b=f.getGeneratedPosition(m,n,r),v=b.line,y=b.column,g=f.getSource(m);return new a.default(t,p,v,y||null,(0,i.getLinesAround)(v,c,d||[]),t,o,n,r,(0,i.getLinesAround)(n,c,g))}));case 11:case"end":return e.stop()}},e)}))).apply(this,arguments)}Object.defineProperty(e,"__esModule",{value:!0}),e.unmap=d,e.default=void 0,t=c(t),r=c(r),s=c(s),a=c(a),l=c(l);var f=d;e.default=f})?r.apply(t,s):r)||(e.exports=a)},"../sandbox-hooks/react-error-overlay/utils/warnings.js":function(e,t,n){var r,s,a;s=[t],void 0===(a="function"===typeof(r=function(e){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.massage=function(e,t){for(var n,r,s=function(e){return e.split("\n").filter(function(e){return!e.match(/^\s*in/)}).join("\n")}(e),a="",o=0;o<t.length;++o){var i=t[o],l=i.fileName,c=i.lineNumber;if(null!=l&&null!=c&&!(l===n&&"number"===typeof c&&"number"===typeof r&&Math.abs(c-r)<3)){n=l,r=c;var u=t[o].name;a+="in ".concat(u=u||"(anonymous function)"," (at ").concat(l,":").concat(c,")\n")}}return{message:s,stack:a}}})?r.apply(t,s):r)||(e.exports=a)},"../sandbox-hooks/url-listeners.js":function(e,t,n){var r,s,a;s=[t,n("../codesandbox-api/dist/codesandbox.es5.js")],void 0===(a="function"===typeof(r=function(e,t){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(){return t.isStandalone||(Object.assign(window.history,{go:function(e){var t=s+e;if(t>=0&&t<=r.length-1){var i=r[s=t],l=i.url,c=i.state,u=document.location.href;n.replaceState.call(window.history,c,"",l);var d=document.location.href;o(d),-1===d.indexOf("#")?window.dispatchEvent(new PopStateEvent("popstate",{state:c})):(a=!0,window.dispatchEvent(new HashChangeEvent("hashchange",{oldURL:u,newURL:d})))}},back:function(){window.history.go(-1)},forward:function(){window.history.go(1)},pushState:function(e,t,r){n.replaceState.call(window.history,e,t,r),i(r,e),o(document.location.href)},replaceState:function(e,t,a){n.replaceState.call(window.history,e,t,a),r[s]={state:e,url:a},o(document.location.href)}}),Object.defineProperties(window.history,{length:{get:function(){return r.length}},state:{get:function(){return r[s].state}}}),window.addEventListener("hashchange",function(){a?a=!1:(i(l(document.location),null),o(document.location.href))}),document.addEventListener("click",function(e){var t=e.target;if("A"===t.nodeName&&!t.__vue__&&-1!==t.href.indexOf("#")&&"#"!==t.href.substr(-1)){var r=t.href,s=document.location.href;n.replaceState.call(window.history,null,"",r);var c=document.location.href;s!==c&&(a=!0,window.dispatchEvent(new HashChangeEvent("hashchange",{oldURL:s,newURL:c})),i(l(document.location),null),o(document.location.href)),e.preventDefault(),e.stopPropagation()}},!0),i(l(document.location),null),setTimeout(function(){o(document.location.href)})),(0,t.listen)(function(e,t){t&&("urlback"===e.type?history.back():"urlforward"===e.type?history.forward():"refresh"===e.type&&document.location.reload())})};var n=window.history.__proto__,r=[],s=-1,a=!1;function o(e){(0,t.dispatch)({type:"urlchange",url:e,back:s>0,forward:s<r.length-1})}function i(e,t){r.splice(s+1),r.push({url:e,state:t}),s=r.length-1}function l(e){return"".concat(e.pathname).concat(e.hash)}})?r.apply(t,s):r)||(e.exports=a)},"./src/sandbox/compile.ts":function(e,t,n){"use strict";n.r(t);var r=n("../../node_modules/@babel/runtime/regenerator/index.js"),s=n.n(r),a=n("../../node_modules/@babel/runtime/helpers/asyncToGenerator.js"),o=n.n(a),i=n("../../node_modules/@babel/runtime/helpers/toArray.js"),l=n.n(i),c=n("../../node_modules/@babel/runtime/helpers/defineProperty.js"),u=n.n(c),d=n("../../node_modules/lodash/flatten.js"),p=n.n(d),f=n("../common/lib/templates/configuration/parse.js"),h=n.n(f),m=n("../common/lib/templates/index.js"),b=n.n(m),v=n("../common/lib/utils/debug.js"),y=n.n(v),g=n("../common/lib/utils/is-babel-7.js"),j=n("../common/lib/utils/path.js"),x=n("../codesandbox-api/dist/codesandbox.es5.js"),w=n("../sandbox-hooks/errors/transformers/index.js"),k=n.n(w),O=n("../sandbox-hooks/react-error-overlay/overlay.js");function _(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function S(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?_(n,!0).forEach(function(t){u()(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):_(n).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}var E=[];function T(e){return P.apply(this,arguments)}function P(){return(P=o()(s.a.mark(function e(t){return s.a.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,Promise.all(t.map(function(){var e=o()(s.a.mark(function e(t){var n,r,a;return s.a.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return n={path:"/boilerplate-".concat(t.condition).concat(t.extension),code:t.code},r=oo(),e.next=4,r.transpileModules(n);case 4:return a=r.evaluateModule(n),e.abrupt("return",S({},t,{module:a}));case 6:case"end":return e.stop()}},e)}));return function(t){return e.apply(this,arguments)}}()));case 2:E=e.sent;case 3:case"end":return e.stop()}},e)}))).apply(this,arguments)}function M(){return E}function C(e){var t=M().find(function(t){return new RegExp(t.condition).test(e.path)});if(null==t)throw new Error("No boilerplate found for ".concat(e.path,", you can create one in the future"));return t}var D=[{id:"js",extension:".js",condition:".jsx?$",code:"\nimport React from 'react';\nimport { render } from 'react-dom';\nexport default function(module) {\n  const node = document.createElement('div');\n  document.body.appendChild(node);\n  render(React.createElement(module.default), node);\n}\n"},{id:"html",extension:".html",condition:".html$",code:"\nexport default function(module) {\n  document.body.innerHTML = module\n}\n"}],N=n("../../node_modules/codesandbox-import-utils/lib/api/define.js");function R(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function A(e){var t=Object.keys(e).reduce(function(t,n){return function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?R(n,!0).forEach(function(t){u()(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):R(n).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}({},t,u()({},n.replace("/",""),{content:e[n].code,isBinary:!1}))},{}),n=Object(N.getParameters)({files:t});return new Promise(function(e){var t=document.createElement("iframe");t.setAttribute("style","transition: 0.3s ease background-color; position: fixed; bottom: 8px; right: 8px; height: 40px; width: 196px; background-color: rgba(0, 0, 0, 0.6); border-radius: 4px; border: 0; outline: 0; z-index: 214748366;"),t.setAttribute("onmouseover","this.style.backgroundColor='rgba(0, 0, 0, 0.7)';"),t.setAttribute("onmouseout","this.style.backgroundColor='rgba(0, 0, 0, 0.6)';"),t.onload=function(){t.contentDocument.body.innerHTML='\n        <form\n          action="https://codesandbox.io/api/v1/sandboxes/define"\n          method="POST"\n          target="_blank"\n          style="cursor:pointer;"\n        >\n        <input\n          type="hidden"\n          name="parameters"\n          value="'.concat(n,'"\n        />\n          <div style="display:flex;align-items:center" onclick="javascript:document.forms[0].submit();">\n            <svg style="width:24px;height:24px;margin-right:8px;" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px" width="1024px"\n              height="1024px" viewBox="0 0 1024 1024" enable-background="new 0 0 1024 1024" xml:space="preserve">\n              <g id="Layer_1">\n                <polyline\n                  fill="#FFFFFF"\n                  points="719.001,851 719.001,639.848 902,533.802 902,745.267 719.001,851"\n                />\n                <polyline\n                  fill="#FFFFFF"\n                  points="302.082,643.438 122.167,539.135 122.167,747.741 302.082,852.573 302.082,643.438"\n                />\n                <polyline\n                  fill="#FFFFFF"\n                  points="511.982,275.795 694.939,169.633 512.06,63 328.436,169.987 511.982,275.795"\n                />\n              </g>\n              <g id="Layer_2">\n                <polyline\n                  fill="none"\n                  stroke="#FFFFFF"\n                  stroke-width="80"\n                  stroke-miterlimit="10"\n                  points="899,287.833 509,513 509,963"\n                />\n                <line\n                  fill="none"\n                  stroke="#FFFFFF"\n                  stroke-width="80"\n                  stroke-miterlimit="10"\n                  x1="122.167"\n                  y1="289"\n                  x2="511.5"\n                  y2="513"\n                />\n                <polygon\n                  fill="none"\n                  stroke="#FFFFFF"\n                  stroke-width="80"\n                  stroke-miterlimit="10"\n                  points="121,739.083 510.917,963.042 901,738.333 901,288 511,62 121,289"\n                />\n              </g>\n          </svg>\n          <div style="font-size:.875rem; font-weight: 300; color: white; font-family: sans-serif">Open in CodeSandbox</div>\n        </div>\n      </form>\n      '),e()},document.body.appendChild(t)})}var I=n("../../node_modules/@babel/runtime/helpers/toConsumableArray.js"),F=n.n(I),L=n("../../node_modules/@babel/runtime/helpers/slicedToArray.js"),H=n.n(L),W=n("../../node_modules/@babel/runtime/helpers/classCallCheck.js"),q=n.n(W),z=n("../../node_modules/@babel/runtime/helpers/createClass.js"),B=n.n(z),$=n("../../node_modules/lodash-es/orderBy.js"),U=n("../../node_modules/querystring-es3/index.js"),Z=n.n(U);function J(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}var Y=function(){function e(t,n,r){var s=this,a=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},o=a.hasDotEnv,i=a.setup,l=a.teardown,c=a.htmlDisabled,d=a.preEvaluate;q()(this,e),u()(this,"loaders",void 0),u()(this,"transpilers",void 0),u()(this,"name",void 0),u()(this,"ignoredExtensions",void 0),u()(this,"htmlDisabled",void 0),u()(this,"defaultAliases",void 0),u()(this,"alias",void 0),u()(this,"hasDotEnv",void 0),u()(this,"setup",void 0),u()(this,"teardown",void 0),u()(this,"preEvaluate",void 0),u()(this,"setAdditionalAliases",function(e){s.alias=function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?J(n,!0).forEach(function(t){u()(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):J(n).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}({},s.defaultAliases,{},e),s.aliasedPathCache={}}),u()(this,"reset",function(){s.loaders=[]}),u()(this,"resetTranspilers",function(){s.transpilers.clear(),s.loaders.length=0}),u()(this,"aliasedPathCache",{}),u()(this,"parseOptions",function(e){if(null==e)return{};try{return JSON.parse(e)}catch(t){return Z.a.parse(e)}}),this.loaders=[],this.transpilers=new Set,this.name=t,this.hasDotEnv=o||!1,this.alias=r||{},this.aliasedPathCache={},this.defaultAliases=r||{},this.ignoredExtensions=n||["js","jsx","json"];var p=function(){};this.setup=i||p,this.teardown=l||p,this.preEvaluate=d||p,this.htmlDisabled=c||!1}return B()(e,[{key:"getAliasedPath",value:function(e){if(null===this.aliasedPathCache[e])return e;if(this.aliasedPathCache[e])return this.aliasedPathCache[e];var t=Object.keys(this.alias),n=t.filter(function(e){return e.endsWith("$")}).find(function(t){var n=t.slice(0,-1);return e===n});if(n)return this.aliasedPathCache[e]=this.alias[n],this.alias[n];var r=e.split("/"),s=Object($.a)(t,function(e){return-e.split("/").length}).find(function(e){return e.split("/").every(function(e,t){return r[t]===e})});if(s){var a=e.replace(s,this.alias[s]);return this.aliasedPathCache[e]=a,a}return this.aliasedPathCache[e]=null,e}},{key:"registerTranspiler",value:function(e,t){var n=this,r=arguments.length>2&&void 0!==arguments[2]&&arguments[2],s={test:e,transpilers:t};return r?this.loaders.unshift(s):this.loaders.push(s),t.forEach(function(e){return n.transpilers.add(e.transpiler)}),this.loaders}},{key:"getLoaders",value:function(e){var t=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",r=this.loaders.find(function(t){return t.test(e)}),s=n.startsWith("!")?[]:r?r.transpilers:[],a=n.split("!").filter(function(e){return e}),o=a.map(function(e){var n=e.split("?"),r=H()(n,2),s=r[0],a=r[1],o=Array.from(t.transpilers).find(function(e){return e.name===s});if(!o)throw new Error("Loader '".concat(s,"' could not be found."));return{transpiler:o,options:t.parseOptions(a)}}).reverse(),i=[].concat(F()(s),F()(o));return i}},{key:"getQuery",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",n=this.getLoaders(e,t);return"!".concat(n.map(function(e){return e.transpiler.name}).join("!"))}}]),e}(),V=n("../../node_modules/@babel/runtime/helpers/possibleConstructorReturn.js"),G=n.n(V),X=n("../../node_modules/@babel/runtime/helpers/getPrototypeOf.js"),Q=n.n(X),K=n("../../node_modules/@babel/runtime/helpers/inherits.js"),ee=n.n(K),te=function(){function e(t){q()(this,e),u()(this,"cacheable",void 0),u()(this,"name",void 0),u()(this,"HMREnabled",void 0),this.cacheable=!0,this.name=t,this.HMREnabled=!0}return B()(e,[{key:"initialize",value:function(){}},{key:"dispose",value:function(){}},{key:"cleanModule",value:function(e){}},{key:"transpile",value:function(e,t){return this.doTranspilation(e,t)}},{key:"getTranspilerContext",value:function(e){return Promise.resolve({name:this.name,HMREnabled:this.HMREnabled,cacheable:this.cacheable})}}]),e}(),ne=function(e,t){return function(e,t){return"\nfunction createStyleNode(id, content) {\n  var styleNode =\n    document.getElementById(id) || document.createElement('style');\n\n  styleNode.setAttribute('id', id);\n  styleNode.type = 'text/css';\n  if (styleNode.styleSheet) {\n    styleNode.styleSheet.cssText = content;\n  } else {\n    styleNode.innerHTML = '';\n    styleNode.appendChild(document.createTextNode(content));\n  }\n  document.head.appendChild(styleNode);\n}\n\ncreateStyleNode(\n  ".concat(JSON.stringify(e),",\n  ").concat(JSON.stringify(t),"\n);\n")}(e,t||"")};function re(e){return Object.keys(e).reduce(function(e,t){return e+"export const ".concat(t,": string;\n")},"")}var se=null,ae=function(){var e=o()(s.a.mark(function e(t,r){var a;return s.a.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if(se){e.next=5;break}return e.next=3,Promise.all([n.e(48),n.e(22)]).then(n.t.bind(null,"../../node_modules/css-modules-loader-core/lib/index.js",7)).then(function(e){return e.default});case 3:a=e.sent,se=new a;case 5:return e.abrupt("return",se.load(t,r.path,function(e){r.addDependency(e);var t=r.resolveTranspiledModule(e);return t.source?t.source.compiledCode:t.module.code}).then(function(e){return{css:e.injectableSource,exportTokens:e.exportTokens}}));case 6:case"end":return e.stop()}},e)}));return function(t,n){return e.apply(this,arguments)}}(),oe=function(e){return e+"-css"},ie=function(e){function t(){var e;return q()(this,t),(e=G()(this,Q()(t).call(this,"style-loader"))).cacheable=!1,e}return ee()(t,e),B()(t,[{key:"cleanModule",value:function(e){var t=oe(e._module.getId()),n=document.getElementById(t);null!=n&&null!=n.parentNode&&n.parentNode.removeChild(n)}},{key:"doTranspilation",value:function(e,t){var n=oe(t._module.getId()),r=t.path;if(t.options.module)return ae(e,t).then(function(e){var t=e.css,s=e.exportTokens,a=ne(n,t);return a+="\nmodule.exports=".concat(JSON.stringify(s),";"),Object(x.dispatch)({type:"add-extra-lib",path:r,code:re(s)}),Promise.resolve({transpiledCode:a})});var s=ne(n,e);return Promise.resolve({transpiledCode:s})}}]),t}(te),le=new ie,ce=n("../../node_modules/@babel/runtime/helpers/assertThisInitialized.js"),ue=n.n(ce),de=n("../../node_modules/@babel/runtime/helpers/get.js"),pe=n.n(de),fe=n("../../node_modules/worker-loader/dist/cjs.js?publicPath=/&name=babel-transpiler.[hash:8].worker.js!./src/sandbox/eval/transpilers/babel/worker/index.js"),he=n.n(fe),me=/require\s*\(['|"|`]([^"|'|`]*)['|"|`]\)|require\s*\((.*)\)/g,be=/require\s*\(['|"|`]([^"|'|`]*)['|"|`]\)|require\s*\((.*)\)/,ve=/^(\s*\*)|^(\/\/)/;function ye(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}var ge={presets:["es2015","react","stage-0"],plugins:["transform-async-to-generator","transform-object-rest-spread","transform-decorators-legacy","transform-class-properties",["transform-runtime",{helpers:!1,polyfill:!1,regenerator:!0}],["transform-regenerator",{async:!1}]]};function je(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]&&arguments[3],s=e||ge;if(t.disableCodeSandboxPlugins)return s;var a=function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?ye(n,!0).forEach(function(t){u()(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ye(n).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}({},s,{sourceMaps:"inline",sourceFileName:n,filename:n}),o=r?"transform-modules-commonjs":"transform-es2015-modules-commonjs";return a.plugins?-1===a.plugins.indexOf(o)&&(a.plugins=[].concat(F()(a.plugins),[o])):a.plugins=[o],a}function xe(e){var t=new Error(e.message);return t.name=e.name,t.columnNumber=e.columnNumber,t.fileName=e.columnNumber,t.lineNumber=e.lineNumber,t}function we(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function ke(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?we(n,!0).forEach(function(t){u()(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):we(n).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}var Oe=y()("cs:compiler:worker-transpiler"),_e=function(e){function t(e,n){var r,s=arguments.length>2&&void 0!==arguments[2]?arguments[2]:navigator.hardwareConcurrency,a=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};return q()(this,t),r=G()(this,Q()(t).call(this,e)),u()(ue()(r),"Worker",void 0),u()(ue()(r),"workers",void 0),u()(ue()(r),"idleWorkers",void 0),u()(ue()(r),"loadingWorkers",void 0),u()(ue()(r),"workerCount",void 0),u()(ue()(r),"tasks",void 0),u()(ue()(r),"initialized",void 0),u()(ue()(r),"runningTasks",void 0),u()(ue()(r),"hasFS",void 0),r.workerCount=s,r.Worker=n,r.workers=[],r.idleWorkers=[],r.tasks={},r.initialized=!1,r.hasFS=a.hasFS||!1,r.loadingWorkers=0,a.preload&&0===r.workers.length&&Promise.all(Array.from({length:r.workerCount},function(){return r.loadWorker()})),r}return ee()(t,e),B()(t,[{key:"getWorker",value:function(){return Promise.resolve(new this.Worker)}},{key:"loadWorker",value:function(){var e=o()(s.a.mark(function e(){var t,n,r,a=this;return s.a.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return this.loadingWorkers++,t=Date.now(),e.next=4,this.getWorker();case 4:n=e.sent,r=function e(r){"ready"===r.data&&(Oe("Loaded '".concat(a.name,"' worker in ").concat(Date.now()-t,"ms")),n.removeEventListener("message",e))},n.addEventListener("message",r),this.hasFS&&(BrowserFS.FileSystem.WorkerFS.attachRemoteListener(n),n.postMessage({type:"initialize-fs",codesandbox:!0})),this.idleWorkers.push(n),this.executeRemainingTasks(),this.workers.push(n);case 11:case"end":return e.stop()}},e,this)}));return function(){return e.apply(this,arguments)}}()},{key:"initialize",value:function(){var e=o()(s.a.mark(function e(){var t=this;return s.a.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if(this.initialized=!0,0!==this.workers.length){e.next=4;break}return e.next=4,Promise.all(Array.from({length:this.workerCount},function(){return t.loadWorker()}));case 4:case"end":return e.stop()}},e,this)}));return function(){return e.apply(this,arguments)}}()},{key:"dispose",value:function(){this.workers.forEach(function(e){return e.terminate()}),this.initialized=!1,this.tasks={},this.workers.length=0,this.idleWorkers.length=0,this.loadingWorkers=0}},{key:"executeRemainingTasks",value:function(){for(var e=Object.keys(this.tasks);this.idleWorkers.length&&e.length;){var t=e.shift(),n=this.tasks[t];delete this.tasks[t];var r=this.idleWorkers.shift();this.executeTask(n,r)}}},{key:"runCallbacks",value:function(e,t,n){e.forEach(function(e){return e(t,n)})}},{key:"executeTask",value:function(e,t){var n=this,r=e.message,a=e.loaderContext,i=e.callbacks;t.onmessage=function(){var e=o()(s.a.mark(function e(r){var o,l,c,u,d,p;return s.a.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if(!(o=r.data)){e.next=27;break}if("error"===o.type&&(l=xe(o.error),n.runCallbacks(i,l)),"warning"!==o.type){e.next=6;break}return a.emitWarning(o.warning),e.abrupt("return");case 6:if("clear-warnings"===o.type&&Object(x.dispatch)(x.actions.correction.clear(o.path,o.source)),"resolve-async-transpiled-module"!==o.type){e.next=19;break}return c=o.id,u=o.path,d=o.options,e.prev=9,e.next=12,a.resolveTranspiledModuleAsync(u,d);case 12:p=e.sent,t.postMessage({type:"resolve-async-transpiled-module-response",id:c,found:!0,path:p.module.path,code:p.module.code}),e.next=19;break;case 16:e.prev=16,e.t0=e.catch(9),t.postMessage({type:"resolve-async-transpiled-module-response",id:c,found:!1});case 19:if("add-dependency"!==o.type){e.next=22;break}return o.isGlob?a.addDependenciesInDirectory(o.path,{isAbsolute:o.isAbsolute,isEntry:o.isEntry}):a.addDependency(o.path,{isAbsolute:o.isAbsolute,isEntry:o.isEntry}),e.abrupt("return");case 22:if("add-transpilation-dependency"!==o.type){e.next=25;break}return a.addTranspilationDependency(o.path,{isAbsolute:o.isAbsolute,isEntry:o.isEntry}),e.abrupt("return");case 25:"result"===o.type&&n.runCallbacks(i,null,o),"error"!==o.type&&"result"!==o.type||(n.idleWorkers.unshift(t),n.executeRemainingTasks());case 27:case"end":return e.stop()}},e,null,[[9,16]])}));return function(t){return e.apply(this,arguments)}}(),t.postMessage(ke({type:"compile",codesandbox:!0},r))}},{key:"queueTask",value:function(){var e=o()(s.a.mark(function e(t,n,r,a){return s.a.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if(this.initialized=!0,!(0===this.idleWorkers.length&&this.loadingWorkers<this.workerCount)){e.next=4;break}return e.next=4,this.loadWorker();case 4:this.tasks[n]||(this.tasks[n]={message:t,loaderContext:r,callbacks:[]}),this.tasks[n].callbacks.push(a),this.executeRemainingTasks();case 7:case"end":return e.stop()}},e,this)}));return function(t,n,r,s){return e.apply(this,arguments)}}()},{key:"getTranspilerContext",value:function(){var e=o()(s.a.mark(function e(n){var r=this;return s.a.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",pe()(Q()(t.prototype),"getTranspilerContext",this).call(this,n).then(function(e){return ke({},e,{worker:!0,hasFS:r.hasFS,workerCount:r.workerCount,initialized:Boolean(r.initialized)})}));case 1:case"end":return e.stop()}},e,this)}));return function(t){return e.apply(this,arguments)}}()}]),t}(te),Se=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:1e3;return new Promise(function(t){setTimeout(t,e)})};var Ee=/\n(.*?)<[A-z](.|\n)*?\/?>/,Te=/\n(.*?)(\s|^)regeneratorRuntime\./;function Pe(e){var t=e[1];return!(t.indexOf("//")>-1||t.indexOf("*")>-1||t.indexOf("'")>-1||t.indexOf('"')>-1||t.indexOf("`")>-1)}function Me(e,t){if(function(e){return/(;|^)(import|export)(\s|{)/gm.test(e)}(e))return!0;if(t.endsWith(".min.js"))return!1;var n=e.match(Ee);if(n)return Pe(n);var r=e.match(Te);return!!r&&Pe(r)}function Ce(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function De(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Ce(n,!0).forEach(function(t){u()(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Ce(n).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}var Ne=window,Re=new(function(e){function t(){var e;return q()(this,t),e=G()(this,Q()(t).call(this,"babel-loader",he.a,3,{hasFS:!0,preload:!0})),u()(ue()(e),"worker",void 0),u()(ue()(e),"startupWorkersInitialized",!1),e}return ee()(t,e),B()(t,[{key:"getWorker",value:function(){var e=o()(s.a.mark(function e(){return s.a.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if("undefined"!==typeof Ne.babelworkers){e.next=5;break}return e.next=3,Se(50);case 3:e.next=0;break;case 5:if(0!==Ne.babelworkers.length){e.next=7;break}return e.abrupt("return",pe()(Q()(t.prototype),"getWorker",this).call(this));case 7:return e.abrupt("return",Ne.babelworkers.pop());case 8:case"end":return e.stop()}},e,this)}));return function(){return e.apply(this,arguments)}}()},{key:"doTranspilation",value:function(e,t){var n=this;return new Promise(function(r,s){var a=t.path;if((t.options.simpleRequire||a.startsWith("/node_modules"))&&!Me(e,a))return function(e){var t=[];return e.split("\n").forEach(function(e){if(!ve.test(e)){var n=e.match(me);n&&n.forEach(function(e){var n=e.match(be);n&&(n[1]?t.find(function(e){return"direct"===e.type&&e.path===n[1]})||t.push({type:"direct",path:n[1]}):n[2]&&(t.find(function(e){return"glob"===e.type&&e.path===n[2]})||t.push({type:"glob",path:n[2]})))})}}),t}(e).forEach(function(e){e.isGlob?t.addDependenciesInDirectory(e.path):t.addDependency(e.path)}),void r({transpiledCode:e});var o=t.options.configurations,i=o.babel&&o.babel.parsed,l=t.options||{},c=o.package&&o.package.parsed&&o.package.parsed.dependencies||{},u=o.package&&o.package.parsed&&o.package.parsed.devDependencies||{},d=t.options.isV7||Object(g.isBabel7)(c,u),p=Object.keys(c).some(function(e){return e.indexOf("macro")>-1}),f=je(i||l.config,l,a,d);n.queueTask({code:e,config:f,path:a,loaderOptions:l,babelTranspilerOptions:o&&o.babelTranspiler&&o.babelTranspiler.parsed,sandboxOptions:o&&o.sandbox&&o.sandbox.parsed,version:d?7:6,hasMacros:p},t._module.getId(),t,function(e,n){return e?(t.emitError(e),s(e)):r(n)})})}},{key:"getTranspilerContext",value:function(){var e=o()(s.a.mark(function e(n){var r=this;return s.a.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",new Promise(function(){var e=o()(s.a.mark(function e(a){var o,i;return s.a.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,pe()(Q()(t.prototype),"getTranspilerContext",r).call(r,n);case 2:o=e.sent,i=n.configurations&&n.configurations.babelTranspiler&&n.configurations.babelTranspiler.parsed,r.queueTask({type:"get-babel-context",babelTranspilerOptions:i},"babelContext",{},function(e,t){var n=t.version,r=t.availablePlugins,s=t.availablePresets;a(De({},o,{babelVersion:n,availablePlugins:r,availablePresets:s,babelTranspilerOptions:i}))});case 5:case"end":return e.stop()}},e)}));return function(t){return e.apply(this,arguments)}}()));case 1:case"end":return e.stop()}},e)}));return function(t){return e.apply(this,arguments)}}()}]),t}(_e)),Ae=new(function(e){function t(){return q()(this,t),G()(this,Q()(t).apply(this,arguments))}return ee()(t,e),B()(t,[{key:"doTranspilation",value:function(e){var t="\n      module.exports = JSON.parse(".concat(JSON.stringify(e||""),")\n    ");return Promise.resolve({transpiledCode:t})}}]),t}(te))("json-loader"),Ie=new(function(e){function t(){return q()(this,t),G()(this,Q()(t).call(this,"raw-loader"))}return ee()(t,e),B()(t,[{key:"doTranspilation",value:function(e){return Promise.resolve({transpiledCode:"\n      module.exports = ".concat(JSON.stringify(e),";")})}}]),t}(te)),Fe=new(function(e){function t(){return q()(this,t),G()(this,Q()(t).apply(this,arguments))}return ee()(t,e),B()(t,[{key:"doTranspilation",value:function(){var e=o()(s.a.mark(function e(t,r){var a,o,i,l,c,u;return s.a.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,Promise.all([n.e(60),n.e(64)]).then(n.bind(null,"./src/sandbox/eval/transpilers/svgr/transpiler.js"));case 2:if(a=e.sent,o=a.svgrTransform,i=r._module.module.code.startsWith("http"),l={webpack:{previousExport:'"'.concat(i?r._module.module.code:r._module.module.path,'"')}},c=t,!t.startsWith("http")){e.next=10;break}return e.next=10,fetch(t).then(function(e){return e.text()}).then(function(e){c=e});case 10:return e.next=12,o(c,l);case 12:return u=e.sent,e.abrupt("return",{transpiledCode:u});case 14:case"end":return e.stop()}},e)}));return function(t,n){return e.apply(this,arguments)}}()}]),t}(te))("svgr-loader"),Le=n("../../node_modules/worker-loader/dist/cjs.js?publicPath=/&name=sass-transpiler.[hash:8].worker.js!./src/sandbox/eval/transpilers/sass/worker/index.js"),He=n.n(Le),We=new(function(e){function t(){var e;return q()(this,t),e=G()(this,Q()(t).call(this,"sass-loader",He.a,1,{hasFS:!0})),u()(ue()(e),"worker",void 0),e.cacheable=!1,e}return ee()(t,e),B()(t,[{key:"doTranspilation",value:function(e,t){var n=this,r=null!=t.options.indentedSyntax||t.path.endsWith(".sass");return new Promise(function(s,a){""!==e&&null!=e?n.queueTask({code:e,path:t.path,indentedSyntax:r},t._module.getId(),t,function(e,n){return e?(t.emitError(e),a(e)):s(n)}):s({transpiledCode:""})})}}]),t}(_e));function qe(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function ze(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?qe(n,!0).forEach(function(t){u()(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):qe(n).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function Be(){var e=!1,t=new Y("create-react-app",["web.js","js","json","web.jsx","jsx","ts","tsx"],{"react-native$":"react-native-web","react-native/Libraries/EventEmitter/RCTDeviceEventEmitter$":"react-native-web/dist/vendor/react-native/NativeEventEmitter/RCTDeviceEventEmitter","react-native/Libraries/vendor/emitter/EventEmitter$":"react-native-web/dist/vendor/react-native/emitter/EventEmitter","react-native/Libraries/vendor/emitter/EventSubscriptionVendor$":"react-native-web/dist/vendor/react-native/emitter/EventSubscriptionVendor","react-native/Libraries/EventEmitter/NativeEventEmitter$":"react-native-web/dist/vendor/react-native/NativeEventEmitter","react-native/Libraries/Image/AssetSourceResolver$":"expo-asset/build/AssetSourceResolver","react-native/Libraries/Image/assetPathUtils$":"expo-asset/build/Image/assetPathUtils","react-native/Libraries/Image/resolveAssetSource$":"expo-asset/build/resolveAssetSource"},{hasDotEnv:!0,setup:function(n){var r=n.configurations;if(Object(g.isBabel7)(r&&r.package&&r.package.parsed&&r.package.parsed.dependencies,r&&r.package&&r.package.parsed&&r.package.parsed.devDependencies)&&!e){var s={isV7:!0,compileNodeModulesWithEnv:!0,config:{plugins:["@babel/plugin-transform-react-jsx-source","transform-flow-strip-types","transform-destructuring","babel-plugin-macros",["proposal-class-properties",{loose:!0}],["proposal-object-rest-spread",{useBuiltIns:!0}],["transform-runtime",{corejs:!1,helpers:!0,regenerator:!0}],"syntax-dynamic-import"],presets:[["env",{targets:{ie:9},ignoreBrowserslistConfig:!0,useBuiltIns:!1,modules:!1}],"react","typescript"]}};t.registerTranspiler(function(e){return/\.(t|j)sx?$/.test(e.path)&&!e.path.endsWith(".d.ts")},[{transpiler:Re,options:ze({},s,{config:ze({},s.config,{plugins:[["proposal-decorators",{legacy:!0}]].concat(F()(s.config.plugins))})})}],!0),t.registerTranspiler(function(e){return/\.svg$/.test(e.path)},[{transpiler:Fe},{transpiler:Re,options:s}],!0),t.registerTranspiler(function(e){return/\.s[c|a]ss$/.test(e.path)},[{transpiler:We},{transpiler:le}],!0),t.registerTranspiler(function(e){return/\.module\.s[c|a]ss$/.test(e.path)},[{transpiler:We},{transpiler:le,options:{module:!0}}],!0),t.registerTranspiler(function(e){return/\.module\.css$/.test(e.path)},[{transpiler:le,options:{module:!0}}],!0),e=!0}},preEvaluate:function(e){if(!e.webpackHMR)try{var t=document.body.children;if(e.manifest&&e.manifest.dependencies.find(function(e){return"react-dom"===e.name})){var n=e.resolveModule("react-dom",""),r=e.evaluateModule(n);r.unmountComponentAtNode(document.body);for(var s=0;s<t.length;s+=1)"DIV"===t[s].tagName&&r.unmountComponentAtNode(t[s])}}catch(a){0}}});return t.registerTranspiler(function(e){return/\.css$/.test(e.path)},[{transpiler:le}]),t.registerTranspiler(function(e){return/\.jsx?$/.test(e.path)},[{transpiler:Re}]),t.registerTranspiler(function(e){return/\.json$/.test(e.path)},[{transpiler:Ae}]),t.registerTranspiler(function(){return!0},[{transpiler:Ie}]),t}var $e=n("../../node_modules/worker-loader/dist/cjs.js?publicPath=/&name=typescript-transpiler.[hash:8].worker.js!./src/sandbox/eval/transpilers/typescript/typescript-worker.js"),Ue=n.n($e);function Ze(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function Je(e){return e&&e.package&&e.package.parsed?function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Ze(n,!0).forEach(function(t){u()(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Ze(n).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}({},e.package.parsed.devDependencies,{},e.package.parsed.dependencies):{}}var Ye=new(function(e){function t(){var e;return q()(this,t),e=G()(this,Q()(t).call(this,"ts-loader",Ue.a,3)),u()(ue()(e),"worker",void 0),e}return ee()(t,e),B()(t,[{key:"doTranspilation",value:function(e,t){var n=this;return new Promise(function(r,s){var a=t.path,o=null,i="3.4.1";t.options.configurations&&t.options.configurations.typescript&&t.options.configurations.typescript.parsed&&(o=t.options.configurations.typescript.parsed);var l=Je(t.options.configurations);l&&l.typescript&&(i=l.typescript),n.queueTask({code:e,path:a,config:o,typescriptVersion:i},t._module.getId(),t,function(e,n){return e?(t.emitError(e),s(e)):r(n)})})}}]),t}(_e)),Ve=n("../../node_modules/worker-loader/dist/cjs.js?publicPath=/&name=stylus-transpiler.[hash:8].worker.js!./src/sandbox/eval/transpilers/stylus/stylus-worker.js"),Ge=n.n(Ve),Xe=new(function(e){function t(){var e;return q()(this,t),e=G()(this,Q()(t).call(this,"stylus-loader",Ge.a,1)),u()(ue()(e),"worker",void 0),e.cacheable=!1,e}return ee()(t,e),B()(t,[{key:"doTranspilation",value:function(e,t){var n=this;return new Promise(function(r,s){var a=t.path;n.queueTask({code:e,path:a},t._module.getId(),t,function(e,n){return e?(t.emitError(e),s(e)):r(n)})})}}]),t}(_e)),Qe=n("../../node_modules/worker-loader/dist/cjs.js?publicPath=/&name=less-transpiler.[hash:8].worker.js!./src/sandbox/eval/transpilers/less/less-worker.js"),Ke=n.n(Qe);function et(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}var tt=new(function(e){function t(){var e;return q()(this,t),e=G()(this,Q()(t).call(this,"less-loader",Ke.a,1)),u()(ue()(e),"worker",void 0),e.cacheable=!1,e}return ee()(t,e),B()(t,[{key:"doTranspilation",value:function(e,t){var n=this;return new Promise(function(r,s){var a=t.getModules().filter(function(e){return/\.[css|less]$/.test(e.path)}).reduce(function(e,t){return function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?et(n,!0).forEach(function(t){u()(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):et(n).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}({},e,u()({},t.path,t.code))},{}),o=t.path;a[o]=e,n.queueTask({code:e,files:a,path:o},t._module.getId(),t,function(e,n){return e?(t.emitError(e),s(e)):r(n)})})}}]),t}(_e)),nt=function(e){function t(){return q()(this,t),G()(this,Q()(t).call(this,"noop-loader"))}return ee()(t,e),B()(t,[{key:"doTranspilation",value:function(e){return Promise.resolve({transpiledCode:e||""})}}]),t}(te),rt=new nt,st=new(function(e){function t(){return q()(this,t),G()(this,Q()(t).call(this,"binary-loader"))}return ee()(t,e),B()(t,[{key:"doTranspilation",value:function(e,t){return fetch(e).then(function(e){return e.blob()}).then(function(e){return{transpiledCode:e}})}}]),t}(te)),at=new(function(e){function t(){return q()(this,t),G()(this,Q()(t).call(this,"vue-loader"))}return ee()(t,e),B()(t,[{key:"doTranspilation",value:function(e,t){return Promise.all([n.e(5),n.e(11),n.e(55)]).then(n.bind(null,"./src/sandbox/eval/transpilers/vue/loader.js")).then(function(n){var r=n.default(e,t);return Promise.resolve({transpiledCode:r})})}}]),t}(te)),ot=new(function(e){function t(){return q()(this,t),G()(this,Q()(t).call(this,"vue-template-compiler"))}return ee()(t,e),B()(t,[{key:"doTranspilation",value:function(e,t){return Promise.all([n.e(5),n.e(54),n.e(58)]).then(n.bind(null,"./src/sandbox/eval/transpilers/vue/template-compiler/loader.js")).then(function(n){var r=n.default(e,t);return Promise.resolve({transpiledCode:r})})}}]),t}(te)),it=new(function(e){function t(){return q()(this,t),G()(this,Q()(t).call(this,"vue-style-compiler"))}return ee()(t,e),B()(t,[{key:"doTranspilation",value:function(e,t){return Promise.all([n.e(53),n.e(57)]).then(n.bind(null,"./src/sandbox/eval/transpilers/vue/style-compiler/loader.js")).then(function(n){return n.default(e,t)})}}]),t}(te)),lt=new(function(e){function t(){return q()(this,t),G()(this,Q()(t).call(this,"vue-selector"))}return ee()(t,e),B()(t,[{key:"doTranspilation",value:function(e,t){return Promise.all([n.e(5),n.e(11),n.e(56)]).then(n.bind(null,"./src/sandbox/eval/transpilers/vue/selector/loader.js")).then(function(n){return n.default(e,t)})}}]),t}(te)),ct=n("../../node_modules/hash-sum/hash-sum.js"),ut=n.n(ct),dt=n("../../node_modules/raw-loader/index.js!./src/sandbox/eval/transpilers/vue/style-loader/addStylesClient.js"),pt=n.n(dt),ft=n("../../node_modules/raw-loader/index.js!./src/sandbox/eval/transpilers/vue/style-loader/listToStyles.js"),ht=n.n(ft),mt=n("./src/sandbox/eval/transpilers/utils/loader-utils/index.js"),bt=new(function(e){function t(){return q()(this,t),G()(this,Q()(t).call(this,"vue-style-loader"))}return ee()(t,e),B()(t,[{key:"doTranspilation",value:function(e,t){var n=function(e,t){t.emitModule("/node_modules/vue-style-loader/addStylesClient.js",pt.a,"/",!1,!1),t.emitModule("/node_modules/vue-style-loader/listToStyles.js",ht.a,"/",!1,!1);var n=mt.a.stringifyRequest(t,t._module.query.replace("vue-style-loader!","")+"!"+t.path),r=JSON.stringify(ut()(n));t.addDependency(JSON.parse(n));var s=["// style-loader: Adds some css to the DOM by adding a <style> tag","","// load the styles","var content = require(".concat(n,")"),"if(typeof content === 'string') content = [[module.id, content, '']];","if(content.locals) module.exports = content.locals;"],a=["// add the styles to the DOM",'var update = require("/node_modules/vue-style-loader/addStylesClient.js")('+r+", content, "+!1+");"];return a=a.concat(["// Hot Module Replacement","if(module.hot) {"," // When the styles change, update the <style> tags"," if(!content.locals) {","   module.hot.accept("+n+", function() {","     var newContent = require("+n+");","     if(typeof newContent === 'string') newContent = [[module.id, newContent, '']];","     update(newContent);","   });"," }"," // When the module is disposed, remove the <style> tags"," module.hot.dispose(function() { update(); });","}"]),s.concat(a).join("\n")}(0,t);return Promise.resolve({transpiledCode:n})}}]),t}(te)),vt=new(function(e){function t(){return q()(this,t),G()(this,Q()(t).call(this,"css-loader"))}return ee()(t,e),B()(t,[{key:"doTranspilation",value:function(e,t){return n.e(21).then(n.bind(null,"./src/sandbox/eval/transpilers/vue/css-loader/loader.ts")).then(function(n){return n.default(e,t)})}}]),t}(te)),yt=new(function(e){function t(){return q()(this,t),G()(this,Q()(t).call(this,"base64-loader"))}return ee()(t,e),B()(t,[{key:"doTranspilation",value:function(e){return new Promise(function(t){var n=new FileReader;n.readAsDataURL(e),n.onloadend=function(){var e=n.result;t({transpiledCode:'module.exports = "'.concat(e.toString(),'"')})}})}}]),t}(te)),gt=n("../../node_modules/worker-loader/dist/cjs.js?publicPath=/&name=pug-transpiler.[hash:8].worker.js!./src/sandbox/eval/transpilers/pug/pug-worker.js"),jt=n.n(gt),xt=new(function(e){function t(){var e;return q()(this,t),e=G()(this,Q()(t).call(this,"pug-loader",jt.a,1)),u()(ue()(e),"worker",void 0),e.cacheable=!1,e}return ee()(t,e),B()(t,[{key:"doTranspilation",value:function(e,t){var n=this;return new Promise(function(r,s){var a=t.path;n.queueTask({code:e,path:a},t._module.getId(),t,function(e,n){return e?(t.emitError(e),s(e)):r(n)})})}}]),t}(_e)),wt=n("../../node_modules/worker-loader/dist/cjs.js?publicPath=/&name=coffee-transpiler.[hash:8].worker.js!./src/sandbox/eval/transpilers/coffee/coffee-worker.js"),kt=n.n(wt),Ot=new(function(e){function t(){var e;return q()(this,t),e=G()(this,Q()(t).call(this,"coffee-loader",kt.a,1)),u()(ue()(e),"worker",void 0),e.cacheable=!1,e}return ee()(t,e),B()(t,[{key:"doTranspilation",value:function(e,t){var n=this;return new Promise(function(r,s){var a=t.path;n.queueTask({code:e,path:a},t._module.getId(),t,function(e,n){return e?(t.emitError(e),s(e)):r(n)})})}}]),t}(_e)),_t=function(e){if(e)return("function"===typeof e&&null!=e.cid?e.options:e._isVue?e.$options||e.constructor.options:e||{}).__file};var St=new(function(e){function t(){var e;return q()(this,t),(e=G()(this,Q()(t).call(this))).name="async",e}return ee()(t,e),t}(nt));function Et(){var e=new Y("preact-cli",["js","jsx","ts","tsx","json","less","scss","sass","styl","css"],{preact$:"preact",react:"preact-compat","react-dom":"preact-compat","create-react-class":"preact-compat/lib/create-react-class","react-addons-css-transition-group":"preact-css-transition-group"});e.registerTranspiler(function(e){return/\.jsx?$/.test(e.path)},[{transpiler:Re}]);var t=["/src/components","/components","/src/routes","/routes"],n={css:[],"s[a|c]ss":[{transpiler:We}],less:[{transpiler:tt}],styl:[{transpiler:Xe}]};return Object.keys(n).forEach(function(r){e.registerTranspiler(function(e){return(n=r,new RegExp("^(".concat(t.join("|"),")\\/.*\\.").concat(n,"$"))).test(e.path);var n},[].concat(F()(n[r]),[{transpiler:le,options:{module:!0}}])),e.registerTranspiler(function(e){return new RegExp("\\.".concat(r,"$")).test(e.path)},[].concat(F()(n[r]),[{transpiler:le}]))}),e.registerTranspiler(function(e){return/\.json/.test(e.path)},[{transpiler:Ae}]),e.registerTranspiler(function(){return!1},[{transpiler:St}]),e.registerTranspiler(function(){return!0},[{transpiler:Ie}]),e}var Tt=n("../../node_modules/worker-loader/dist/cjs.js?publicPath=/&name=svelte-transpiler.[hash:8].worker.js!./src/sandbox/eval/transpilers/svelte/svelte-worker.js"),Pt=n.n(Tt),Mt=n("../../node_modules/semver/semver.js"),Ct=n.n(Mt),Dt=new(function(e){function t(){var e;return q()(this,t),e=G()(this,Q()(t).call(this,"svelte-loader",Pt.a,2)),u()(ue()(e),"worker",void 0),e}return ee()(t,e),B()(t,[{key:"doTranspilation",value:function(e,t){var n=this,r=t.options.configurations.package,s=r&&r.parsed&&r.parsed.devDependencies&&r.parsed.devDependencies.svelte&&Ct.a.coerce(r.parsed.devDependencies.svelte)||Ct.a.coerce(r.parsed.dependencies.svelte);return new Promise(function(r,a){var o=t.path;n.queueTask({code:e,path:o,version:(s||{}).version},t._module.getId(),t,function(e,n){return e?(t.emitError(e),a(e)):r(n)})})}}]),t}(_e)),Nt={isV7:!0,config:{presets:[],plugins:[],parserOpts:{plugins:["dynamicImport","objectRestSpread"]}}};var Rt=/templateUrl\s*:(\s*['"`](.*?)['"`]\s*([,}]))/gm,At=/styleUrls *:(\s*\[[^\]]*?\])/g,It=/(['`"])((?:[^\\]\\\1|.)*?)\1/g;function Ft(e,t,n){return e.replace(It,function(e,r,s){"."!==s.charAt(0)&&(s="./"+s);var a=s.split("."),o=a[a.length-1],i=t[o]||[],l="!raw-loader!".concat(i.map(function(e){return e.transpiler.name}).join("!"),"!").concat(s);return n(l,{isAbsolute:!1}),"require('"+l+"')"})}var Lt=new(function(e){function t(){return q()(this,t),G()(this,Q()(t).call(this,"binary-loader"))}return ee()(t,e),B()(t,[{key:"doTranspilation",value:function(e,t){var n=e.replace(Rt,function(e,n){return"template:"+Ft(n,t.options.preTranspilers,t.addDependency)}).replace(At,function(e,n){return"styles:"+Ft(n,t.options.preTranspilers,t.addDependency)});return Promise.resolve({transpiledCode:n})}}]),t}(te)),Ht=!1;function Wt(e){return qt.apply(this,arguments)}function qt(){return(qt=o()(s.a.mark(function e(t){var n,r,a,o,i,l;return s.a.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if(n=t.configurations["angular-config"].parsed,r=n.defaultProject,a=n.projects[r],!(o=a.architect.build).options){e.next=11;break}if(!a.root||!o.options.polyfill){e.next=11;break}return i=Object(j.absolute)(Object(j.join)(a.root,o.options.polyfill)),l=t.resolveModule(i,"/"),e.next=10,t.transpileModules(l);case 10:t.evaluateModule(l);case 11:case"end":return e.stop()}},e)}))).apply(this,arguments)}function zt(e){return Bt.apply(this,arguments)}function Bt(){return(Bt=o()(s.a.mark(function e(t){var n,r,a,o;return s.a.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if(!(n=t.configurations["angular-cli"].parsed).apps||!n.apps[0]){e.next=9;break}if(!(r=n.apps[0]).root||!r.polyfills){e.next=9;break}return a=Object(j.absolute)(Object(j.join)(r.root,r.polyfills)),o=t.resolveModule(a,"/"),e.next=8,t.transpileModules(o);case 8:t.evaluateModule(o);case 9:case"end":return e.stop()}},e)}))).apply(this,arguments)}function $t(e){return Ut.apply(this,arguments)}function Ut(){return(Ut=o()(s.a.mark(function e(t){var n,r,a,i,l,c,u,d,p,f,h,m,b;return s.a.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if(n=t.configurations["angular-config"].parsed,r=n.defaultProject,a=n.projects[r],!(i=a.architect.build).options){e.next=24;break}l=i.options,c=l.styles,u=void 0===c?[]:c,d=l.scripts,p=void 0===d?[]:d,f=0;case 7:if(!(f<u.length)){e.next=20;break}return h=u[f],m=Object(j.absolute)(Object(j.join)(a.root,h.input||h)),e.next=12,t.resolveTranspiledModuleAsync(m,null);case 12:return b=e.sent,e.next=15,b.transpile(t);case 15:b.setIsEntry(!0),b.evaluate(t);case 17:f++,e.next=7;break;case 20:return e.next=22,Promise.all(p.map(function(){var e=o()(s.a.mark(function e(n){var r,o;return s.a.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return r=Object(j.absolute)(Object(j.join)(a.root,n)),e.next=3,t.resolveTranspiledModuleAsync(r,null);case 3:return(o=e.sent).setIsEntry(!0),e.abrupt("return",o.transpile(t));case 6:case"end":return e.stop()}},e)}));return function(t){return e.apply(this,arguments)}}()));case 22:e.sent.forEach(function(e){e.evaluate(t,{asUMD:!0})});case 24:case"end":return e.stop()}},e)}))).apply(this,arguments)}function Zt(e){return Jt.apply(this,arguments)}function Jt(){return(Jt=o()(s.a.mark(function e(t){var n,r,a,i,l,c,d,p,f,h;return s.a.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if(!(n=t.configurations["angular-cli"].parsed).apps||!n.apps[0]){e.next=23;break}r=n.apps[0],a=r.styles,i=void 0===a?[]:a,l=r.scripts,c=void 0===l?[]:l,d=0;case 5:if(!(d<i.length)){e.next=18;break}return p=i[d],f=Object(j.absolute)(Object(j.join)(r.root||"src",p.input||p)),e.next=10,t.resolveTranspiledModuleAsync(f,null);case 10:return h=e.sent,e.next=13,h.transpile(t);case 13:h.setIsEntry(!0),h.evaluate(t);case 15:d++,e.next=5;break;case 18:return e.next=20,Promise.all(c.map(function(){var e=o()(s.a.mark(function e(n){var a,o;return s.a.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return a=Object(j.absolute)(Object(j.join)(r.root||"src",n)),e.next=3,t.resolveTranspiledModuleAsync(a,null);case 3:return(o=e.sent).setIsEntry(!0),e.abrupt("return",o.transpile(t));case 6:case"end":return e.stop()}},e)}));return function(t){return e.apply(this,arguments)}}()));case 20:e.sent.forEach(function(e){e.evaluate(t,{asUMD:!0})}),r.environmentSource&&r.environments&&r.environments.dev&&t.preset.setAdditionalAliases(u()({},r.environmentSource,r.environments.dev));case 23:case"end":return e.stop()}},e)}))).apply(this,arguments)}var Yt=n("../../node_modules/worker-loader/dist/cjs.js?publicPath=/&name=parcel-html-transpiler.[hash:8].worker.js!./src/sandbox/eval/presets/parcel/transpilers/html-worker.js"),Vt=n.n(Yt),Gt=new(function(e){function t(){var e;return q()(this,t),(e=G()(this,Q()(t).call(this,"html-loader",Vt.a,1))).HMREnabled=!1,e}return ee()(t,e),B()(t,[{key:"doTranspilation",value:function(e,t){var n=this;return new Promise(function(r,s){n.queueTask({code:e},t._module.getId(),t,function(e,n){return e?(t.emitError(e),s(e)):r(n)})})}}]),t}(_e));var Xt=n("../../node_modules/path-browserify/index.js"),Qt=n("../../node_modules/strip-ansi/index.js"),Kt=n.n(Qt);function en(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function tn(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?en(n,!0).forEach(function(t){u()(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):en(n).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function nn(e){return new Promise(function(t){var n=document.createElement("script");n.setAttribute("src",e),document.body.appendChild(n),n.onload=function(){t()}})}var rn=["ReactDOMRe","ReasonReact"];function sn(e){var t=Object(Xt.basename)(e).split(".");t.pop();var n=t.join(".");return n[0].toUpperCase()+n.slice(1)}var an=new Map,on=window;function ln(e,t,n){var r=an.get(n.path),s=n.path.endsWith(".re")?on.ocaml.reason_list_dependencies:on.ocaml.list_dependencies,a=r||s(n.code).filter(function(e){return-1===rn.indexOf(e)}).filter(function(e){return!t.has(e)});r||a.shift(),n.path.startsWith("/node_modules")&&an.set(n.path,a),a.forEach(function(n){var r=e.find(function(e){return e.moduleName===n&&!e.path.endsWith(".rei")});r&&ln(e,t,r)}),t.add(n)}var cn=new(function(e){function t(){var e;return q()(this,t),e=G()(this,Q()(t).call(this,"reason-loader")),u()(ue()(e),"worker",void 0),e}return ee()(t,e),B()(t,[{key:"doTranspilation",value:function(){var e=o()(s.a.mark(function e(t,n){var r,a,o,i,l,c,u,d,p,f,h;return s.a.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if(on.ocaml){e.next=7;break}return e.next=3,nn("https://cdn.jsdelivr.net/gh/jaredly/reason-react@more-docs/docs/bucklescript.js");case 3:return e.next=5,nn("https://reason.surge.sh/bucklescript-deps.js");case 5:return e.next=7,nn("https://unpkg.com/reason@3.3.4/refmt.js");case 7:if(r=n.getModules().filter(function(e){return e.path.endsWith(".re")||e.path.endsWith(".rei")||e.path.endsWith(".ml")}).map(function(e){return tn({},e,{moduleName:sn(e.path)})}),a=r.find(function(e){return e.path===n._module.module.path}),o=new Set,ln(r,o,a),o.forEach(function(e){e.path!==n._module.module.path&&n.addTranspilationDependency(e.path,{})}),i=Array.from(o).map(function(e){var t=e.path.endsWith(".re")?e.code:on.printRE(on.parseML(e.code)),n=e.moduleName,s=Object(Xt.join)(Object(Xt.dirname)(e.path),Object(Xt.basename)(e.path,".re")+".rei"),a=r.find(function(e){return e.path===s}),o="module ".concat(n);return a&&(o+=": {\n".concat(a.code,"\n}")),o+=" = {\n#1 ".concat(n,"\n").concat(t,"\n};")}).join("\n\n"),l=on.ocaml.reason_compile_super_errors(i),c=l.js_code,u=l.js_error_msg,d=l.row,p=l.column,f=l.text,!u){e.next=21;break}return(h=new Error(Kt()(f))).name="Reason Compile Error",h.fileName=n._module.module.path,h.lineNumber=d+1,h.columnNumber=p,e.abrupt("return",Promise.reject(h));case 21:return e.abrupt("return",Promise.resolve({transpiledCode:c}));case 22:case"end":return e.stop()}},e)}));return function(t,n){return e.apply(this,arguments)}}()}]),t}(te)),un=n("./src/sandbox/eval/presets/reason/reason-remap.js"),dn=n.n(un);function pn(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function fn(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?pn(n,!0).forEach(function(t){u()(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):pn(n).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}var hn=function(e){return e+"-css"},mn=new(function(e){function t(){return q()(this,t),G()(this,Q()(t).apply(this,arguments))}return ee()(t,e),B()(t,[{key:"doTranspilation",value:function(){var e=o()(s.a.mark(function e(t,n){var r,a,o,i,l,c,u,d,p,f,h,m,b,v,y;return s.a.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if(r=hn(n._module.getId()),a=n.path,o=n.getModules(),!(i=o.find(function(e){return e.path==="".concat(a,".js")}))){e.next=6;break}return e.abrupt("return",{transpiledCode:"".concat(ne(r,t),"\n").concat(i.code)});case 6:return l=o.find(function(e){return"/package.json"===e.path}),c=l.code,u=JSON.parse(c),d=u.name,p=/\/([^\/.]*)[^\/]*$/.exec(a),f=H()(p,2),h=f[1],m="".concat(d,"/").concat(h),e.next=12,ae(t,n);case 12:return b=e.sent,v=b.css,y=b.exportTokens,i=ne(r,v),i+="\nmodule.exports=".concat(JSON.stringify(fn({" _key":m},y)),";"),Object(x.dispatch)({type:"add-extra-lib",path:a,code:re(y)}),e.abrupt("return",{transpiledCode:i});case 19:case"end":return e.stop()}},e)}));return function(t,n){return e.apply(this,arguments)}}()}]),t}(ie));var bn={"codesandbox:raw":Ie,"codesandbox:json":Ae,"codesandbox:babel":Re};function vn(e,t,n){return yn.apply(this,arguments)}function yn(){return(yn=o()(s.a.mark(function e(t,n,r){var a,i,l;return s.a.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return a={},(i=t.resolveTranspiledModule("/.codesandbox/template.json","/")).setIsEntry(!0),e.next=5,Promise.all(Object.keys(r).map(function(){var e=o()(s.a.mark(function e(l){var c,u;return s.a.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return c=r[l],e.next=3,Promise.all(c.map(function(){var e=o()(s.a.mark(function e(n){var r,o,l;return s.a.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if(!a[n]){e.next=2;break}return e.abrupt("return",a[n]);case 2:if(!n.startsWith("codesandbox:")){e.next=7;break}if(r=bn[n]){e.next=6;break}throw new Error("Could not register custom transpiler: ".concat(n," is unknown to Sandpack."));case 6:return e.abrupt("return",{transpiler:r});case 7:if(!(o=t.resolveTranspiledModule(n,"/.codesandbox/template.json")).shouldTranspile()){e.next=13;break}return o.initiators.add(i),i.dependencies.add(o),e.next=13,o.transpile(t);case 13:return l=o.compilation?o.compilation.exports:o.evaluate(t),a[n]=l,e.abrupt("return",{transpiler:l});case 16:case"end":return e.stop()}},e)}));return function(t){return e.apply(this,arguments)}}()));case 3:return u=e.sent,e.abrupt("return",function(){var e=new RegExp(l);n.registerTranspiler(function(t){return e.test(t.path)},u)});case 5:case"end":return e.stop()}},e)}));return function(t){return e.apply(this,arguments)}}()));case 5:l=e.sent,n.resetTranspilers(),l.forEach(function(e){return e()});case 8:case"end":return e.stop()}},e)}))).apply(this,arguments)}function gn(e){switch(e){case m.react.name:return Be();case m.reactTs.name:return function(){var e=new Y("create-react-app-typescript",["web.ts","ts","json","web.tsx","tsx","js"]);return e.registerTranspiler(function(e){return/\.css$/.test(e.path)},[{transpiler:le}]),e.registerTranspiler(function(e){return/\.(t|j)sx?$/.test(e.path)&&!e.path.endsWith(".d.ts")},[{transpiler:Re,options:{isV7:!0,compileNodeModulesWithEnv:!0,config:{plugins:["transform-flow-strip-types","transform-destructuring","babel-plugin-macros",["proposal-decorators",{legacy:!0}],["proposal-class-properties",{loose:!0}],["proposal-object-rest-spread",{useBuiltIns:!0}],["transform-runtime",{corejs:!1,helpers:!0,regenerator:!0}],"syntax-dynamic-import"],presets:[["env",{targets:{ie:9},ignoreBrowserslistConfig:!0,useBuiltIns:!1,modules:!1}],"react","typescript"]}}}],!0),e.registerTranspiler(function(e){return/\.json$/.test(e.path)},[{transpiler:Ae}]),e.registerTranspiler(function(){return!0},[{transpiler:Ie}]),e}();case m.reason.name:return function(){var e=new Y("reason",["web.js","js","re","json","web.jsx","jsx"],dn.a,{hasDotEnv:!0});return e.registerTranspiler(function(e){return/\.css$/.test(e.path)},[{transpiler:le}]),e.registerTranspiler(function(e){return/\.jsx?$/.test(e.path)},[{transpiler:Re}]),e.registerTranspiler(function(e){return/\.json$/.test(e.path)},[{transpiler:Ae}]),e.registerTranspiler(function(e){return/\.re$/.test(e.path)},[{transpiler:cn},{transpiler:Re,options:{simpleRequire:!0}}]),e.registerTranspiler(function(){return!0},[{transpiler:Ie}]),e}();case m.vue.name:return function(){var e=new Y("vue-cli",["vue","json","js","ts"],{"@":"{{sandboxRoot}}/src",vue$:"vue/dist/vue.common.js"},{setup:function(){var e=o()(s.a.mark(function e(t){var n,r;return s.a.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if(e.prev=0,(n=t.resolveTranspiledModule("vue","/")).source){e.next=5;break}return e.next=5,n.transpile(t);case 5:(r=n.evaluate(t))&&(r.config.warnHandler=function(e,t,n){console.error("[Vue warn]: "+e+n);var r=_t(t);Object(x.dispatch)(x.actions.correction.show(e,{line:1,column:1,path:r,severity:"warning",source:"Vue"}))}),e.next=11;break;case 9:e.prev=9,e.t0=e.catch(0);case 11:case"end":return e.stop()}},e,null,[[0,9]])}));return function(t){return e.apply(this,arguments)}}()}),t={transpiler:We,config:{}},n={transpiler:tt,config:{}},r={transpiler:Xe,config:{}};return e.registerTranspiler(function(e){return/\.jsx?$/.test(e.path)},[{transpiler:Re}]),e.registerTranspiler(function(e){return/\.tsx?$/.test(e.path)},[{transpiler:Ye}]),e.registerTranspiler(function(e){return/\.json$/.test(e.path)},[{transpiler:Ae}]),e.registerTranspiler(function(e){return/\.vue$/.test(e.path)},[{transpiler:at}]),e.registerTranspiler(function(e){return/\.coffee$/.test(e.path)},[{transpiler:Ot},{transpiler:Re}]),function(){var s={css:[],scss:[t],sass:[t],less:[n],styl:[r]};Object.keys(s).forEach(function(t){e.registerTranspiler(function(e){return new RegExp("\\.".concat(t)).test(e.path)},[].concat(F()(s[t]),[{transpiler:le}]))})}(),e.registerTranspiler(function(){return!1},[{transpiler:ot}]),e.registerTranspiler(function(){return!1},[{transpiler:it}]),e.registerTranspiler(function(){return!1},[{transpiler:lt}]),e.registerTranspiler(function(){return!1},[{transpiler:bt}]),e.registerTranspiler(function(){return!1},[{transpiler:vt}]),e.registerTranspiler(function(e){return/\.png$/.test(e.path)},[{transpiler:st},{transpiler:yt}]),e.registerTranspiler(function(e){return/!noop/.test(e.path)},[{transpiler:rt}]),e.registerTranspiler(function(){return!0},[{transpiler:Ie}]),e.registerTranspiler(function(e){return/\.pug$/.test(e.path)},[{transpiler:xt}]),e}();case m.preact.name:return Et();case m.svelte.name:return function(){var e=new Y("svelte",["js","jsx","svelte"],{});return e.registerTranspiler(function(e){return/\.jsx?$/.test(e.path)},[{transpiler:Re,options:Nt}]),e.registerTranspiler(function(e){return/\.svelte$/.test(e.path)},[{transpiler:Dt},{transpiler:Re,options:Nt}]),e.registerTranspiler(function(e){return/\.html$/.test(e.path)},[{transpiler:Dt},{transpiler:Re,options:Nt}]),e.registerTranspiler(function(e){return/\.json/.test(e.path)},[{transpiler:Ae}]),e.registerTranspiler(function(){return!0},[{transpiler:Ie}]),e}();case m.angular.name:return function(){var e=new Y("angular-cli",["web.ts","ts","json","web.tsx","tsx","js"],{},{setup:function(){var e=o()(s.a.mark(function e(t){var n;return s.a.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if(Ht){e.next=13;break}return n=t.resolveModule("zone.js","/"),e.next=4,t.transpileModules(n);case 4:if(t.evaluateModule(n),t.configurations["angular-config"].generated){e.next=10;break}return e.next=8,Wt(t);case 8:e.next=12;break;case 10:return e.next=12,zt(t);case 12:Ht=!0;case 13:if(t.configurations["angular-config"].generated){e.next=18;break}return e.next=16,$t(t);case 16:e.next=20;break;case 18:return e.next=20,Zt(t);case 20:case"end":return e.stop()}},e)}));return function(t){return e.apply(this,arguments)}}()}),t={transpiler:We,options:{}},n={css:[],scss:[t],sass:[t],less:[{transpiler:tt,options:{}}],styl:[{transpiler:Xe,options:{}}]};return Object.keys(n).forEach(function(t){e.registerTranspiler(function(e){return new RegExp("\\.".concat(t)).test(e.path)},[].concat(F()(n[t]),[{transpiler:le}]))}),e.registerTranspiler(function(e){return/\.tsx?$/.test(e.path)},[{transpiler:Lt,options:{preTranspilers:n}},{transpiler:Ye}]),e.registerTranspiler(function(e){return/\.js$/.test(e.path)},[{transpiler:Re}]),e.registerTranspiler(function(e){return/\.json$/.test(e.path)},[{transpiler:Ae}]),e.registerTranspiler(function(){return!0},[{transpiler:Ie}]),e}();case m.parcel.name:return function(){var e=new Y("parcel",["js","jsx","ts","tsx","json","less","scss","sass","styl","css","vue"],{},{htmlDisabled:!0,setup:function(e){var t=e.configurations.package;t&&t.parsed&&t.parsed.alias&&e.preset.setAdditionalAliases(t.parsed.alias)}});e.registerTranspiler(function(e){return/\.coffee$/.test(e.path)},[{transpiler:Ot},{transpiler:Re}]),e.registerTranspiler(function(e){return/\.jsx?$/.test(e.path)},[{transpiler:Re,options:{dynamicCSSModules:!0}}]),e.registerTranspiler(function(e){return/\.tsx?$/.test(e.path)},[{transpiler:Ye},{transpiler:Re,options:{dynamicCSSModules:!0}}]),e.registerTranspiler(function(e){return/\.pug$/.test(e.path)},[{transpiler:xt},{transpiler:Gt}]),e.registerTranspiler(function(e){return/\.html$/.test(e.path)},[{transpiler:Gt}]),e.registerTranspiler(function(e){return/\.css$/.test(e.path)},[{transpiler:le}]),e.registerTranspiler(function(e){return/\.json$/.test(e.path)},[{transpiler:Ae}]),e.registerTranspiler(function(e){return/\.vue$/.test(e.path)},[{transpiler:at}]),e.registerTranspiler(function(){return!1},[{transpiler:ot}]),e.registerTranspiler(function(){return!1},[{transpiler:it}]),e.registerTranspiler(function(){return!1},[{transpiler:lt}]),e.registerTranspiler(function(){return!1},[{transpiler:bt}]),e.registerTranspiler(function(){return!1},[{transpiler:vt}]);var t={transpiler:We,options:{}},n={css:[],scss:[t],sass:[t],less:[{transpiler:tt,options:{}}],styl:[{transpiler:Xe,options:{}}]};return Object.keys(n).forEach(function(t){e.registerTranspiler(function(e){return new RegExp("\\.".concat(t)).test(e.path)},[].concat(F()(n[t]),[{transpiler:le}]))}),e.registerTranspiler(function(){return!0},[{transpiler:Ie}]),e.registerTranspiler(function(){return!1},[{transpiler:rt}]),e}();case m.babel.name:return function(){var e=new Y("babel-repl",["js","jsx","ts","tsx","json"],{},{});return e.registerTranspiler(function(e){return/\.jsx?$/.test(e.path)},[{transpiler:Re,options:{disableCodeSandboxPlugins:!0}}]),e.registerTranspiler(function(e){return/\.json$/.test(e.path)},[{transpiler:Ae}]),e.registerTranspiler(function(){return!0},[{transpiler:Ie}]),e}();case m.cxjs.name:return function(){var e=new Y("cxjs",["js","jsx","ts","tsx","json","less","scss","sass","styl","css"],{},{});e.registerTranspiler(function(e){return/\.jsx?$/.test(e.path)},[{transpiler:Re,options:{dynamicCSSModules:!0,compileNodeModulesWithEnv:!0}}]),e.registerTranspiler(function(e){return/\.tsx?$/.test(e.path)},[{transpiler:Ye}]),e.registerTranspiler(function(e){return/\.css$/.test(e.path)},[{transpiler:le}]),e.registerTranspiler(function(e){return/\.json$/.test(e.path)},[{transpiler:Ae}]);var t={transpiler:We,options:{}},n={css:[],scss:[t],sass:[t],less:[{transpiler:tt,options:{}}],styl:[{transpiler:Xe,options:{}}]};return Object.keys(n).forEach(function(t){e.registerTranspiler(function(e){return new RegExp("\\.".concat(t)).test(e.path)},[].concat(F()(n[t]),[{transpiler:le}]))}),e.registerTranspiler(function(){return!0},[{transpiler:Ie}]),e}();case m.dojo.name:return function(){var e=new Y("@dojo/cli-create-app",["ts","tsx","js","json"],{},{setup:function(){var e=o()(s.a.mark(function e(t){var n,r;return s.a.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return n=Object(j.absolute)(Object(j.join)("src","main.css")),e.prev=1,e.next=4,t.resolveTranspiledModuleAsync(n,null);case 4:return r=e.sent,e.next=7,r.transpile(t);case 7:r.setIsEntry(!0),r.evaluate(t),e.next=17;break;case 11:if(e.prev=11,e.t0=e.catch(1),"module-not-found"!==e.t0.type){e.next=16;break}e.next=17;break;case 16:throw e.t0;case 17:case"end":return e.stop()}},e,null,[[1,11]])}));return function(t){return e.apply(this,arguments)}}()});return e.registerTranspiler(function(e){return/\.tsx?$/.test(e.path)},[{transpiler:Ye}]),e.registerTranspiler(function(e){return/\.jsx?$/.test(e.path)},[{transpiler:Re,options:{isV7:!0,config:{parserOpts:{plugins:["objectRestSpread"]}}}}]),e.registerTranspiler(function(e){return/\.json$/.test(e.path)},[{transpiler:Ae}]),e.registerTranspiler(function(e){return/\.m\.css$/.test(e.path)},[{transpiler:mn}]),e.registerTranspiler(function(e){return/\.css$/.test(e.path)},[{transpiler:le}]),e.registerTranspiler(function(){return!0},[{transpiler:Ie}]),e}();case m.custom.name:return function(){var e=!1,t=new Y("custom",void 0,void 0,{setup:function(){var n=o()(s.a.mark(function n(r,a){var o,i;return s.a.wrap(function(n){for(;;)switch(n.prev=n.next){case 0:if(a.some(function(e){return e.module.path.startsWith("/.codesandbox")})&&(e=!1,r.clearCompiledCache(),r.clearCache()),e){n.next=17;break}if(console.log("Initializing custom template"),t.resetTranspilers(),t.registerTranspiler(function(e){return/\.jsx?$/.test(e.path)},[{transpiler:Re}]),t.registerTranspiler(function(e){return/\.json$/.test(e.path)},[{transpiler:Ae}]),o=r.configurations.customTemplate&&r.configurations.customTemplate.parsed){n.next=9;break}throw new Error("No configuration specified for the custom template");case 9:if(!(i=o.sandpack)){n.next=15;break}if(t.defaultAliases=i.defaultAliases||[],!i.transpilers){n.next=15;break}return n.next=15,vn(r,t,i.transpilers);case 15:t.registerTranspiler(function(){return!0},[{transpiler:Ie}]),e=!0;case 17:case"end":return n.stop()}},n)}));return function(e,t){return n.apply(this,arguments)}}()});return t}();default:return Be()}}var jn=n("../../node_modules/localforage/dist/localforage.js"),xn=n.n(jn),wn=n("./src/sandbox/index.js");function kn(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function On(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?kn(n,!0).forEach(function(t){u()(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):kn(n).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}var _n=y()("cs:compiler:cache"),Sn="https://codesandbox.io",En=7340032,Tn=!1;try{xn.a.config({name:"CodeSandboxApp",storeName:"sandboxes",description:"Cached transpilations of the sandboxes, for faster initialization time."}),xn.a.keys()}catch(Mo){console.warn("Problems initializing IndexedDB store."),console.warn(Mo)}function Pn(e,t){return!(!e||t>0)&&!window.__SANDBOX_DATA__}function Mn(e,t,n,r,s){return Cn.apply(this,arguments)}function Cn(){return(Cn=o()(s.a.mark(function e(t,n,r,a,o){var i,l;return s.a.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if(t){e.next=2;break}return e.abrupt("return",Promise.resolve(!1));case 2:return e.t0=On,e.t1={},e.next=6,r.serialize({entryPath:n?n.path:null,optimizeForSize:!0});case 6:return e.t2=e.sent,i=(0,e.t0)(e.t1,e.t2),e.prev=8,e.next=12,xn.a.setItem(r.id,i);case 12:e.next=18;break;case 14:e.prev=14,e.t3=e.catch(8),r.clearCache();case 18:if(!Pn(o,a)||!wn.SCRIPT_VERSION){e.next=24;break}if(!((l=JSON.stringify(i)).length>En)){e.next=22;break}return e.abrupt("return",Promise.resolve(!1));case 22:return _n("Saving cache of "+(l.length/1024).toFixed(2)+"kb to CodeSandbox API"),e.abrupt("return",window.fetch("".concat(Sn,"/api/v1/sandboxes/").concat(t,"/cache"),{method:"POST",body:JSON.stringify({version:wn.SCRIPT_VERSION,data:l}),headers:{"Content-Type":"application/json"}}).then(function(e){return e.json()}).catch(function(e){0}));case 24:return e.abrupt("return",Promise.resolve(!1));case 25:case"end":return e.stop()}},e,null,[[8,14]])}))).apply(this,arguments)}function Dn(e){return Tn?(_n("Deleting cache of API"),window.fetch("".concat(Sn,"/api/v1/sandboxes/").concat(e,"/cache"),{method:"DELETE",body:JSON.stringify({version:wn.SCRIPT_VERSION}),headers:{"Content-Type":"application/json"}}).then(function(e){return e.json()}).catch(function(e){console.error("Something went wrong while deleting cache."),console.error(e)})):Promise.resolve(!1)}function Nn(e){return Rn.apply(this,arguments)}function Rn(){return(Rn=o()(s.a.mark(function e(t){var n,r,a,o;return s.a.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if(e.prev=0,!localStorage.getItem("ignoreCache")){e.next=5;break}return localStorage.removeItem("ignoreCache"),e.abrupt("return",!1);case 5:return n=window.__SANDBOX_DATA__,e.next=8,xn.a.getItem(t.id);case 8:if(r=e.sent,s=n&&n.data,i=r,!(a=s||i?s&&!i?s:i&&!s?i:i.timestamp>s.timestamp?i:s:null)){e.next=18;break}if(o=wn.SCRIPT_VERSION,a.version!==o){e.next=18;break}return Tn=a!==r,_n("Loading cache from ".concat(a===r?"localStorage":"API"),a),e.next=17,t.load(a);case 17:return e.abrupt("return",!0);case 18:return e.abrupt("return",!1);case 21:return e.prev=21,e.t0=e.catch(0),console.warn("Problems consuming cache"),console.warn(e.t0),e.abrupt("return",!1);case 26:case"end":return e.stop()}var s,i},e,null,[[0,21]])}))).apply(this,arguments)}var An=n("../../node_modules/lodash-es/values.js"),In=n("../../node_modules/lodash-es/uniq.js"),Fn=n("../../node_modules/lodash-es/flattenDeep.js"),Ln=n("../../node_modules/browser-resolve/index.js"),Hn=n.n(Ln),Wn=n("../common/lib/utils/global.js"),qn=n("../sandbox-hooks/errors/dependency-not-found-error.js"),zn=n.n(qn),Bn=n("../sandbox-hooks/errors/module-not-found-error.js"),$n=n.n(Bn),Un=n("../../node_modules/@babel/runtime/helpers/typeof.js"),Zn=n.n(Un),Jn=function(e){function t(e,n){var r;return q()(this,t),(r=G()(this,Q()(t).call(this))).name="ModuleError",r.path=n.fileName||e.module.path,r.message=n&&"object"===Zn()(n)&&n.message?n.message:n,r.error=n,r.stack=n.stack,r}return ee()(t,e),t}(Error),Yn=n("../../node_modules/@babel/runtime/helpers/wrapNativeSuper.js");var Vn=function(e){function t(e,n){var r;return q()(this,t),r=G()(this,Q()(t).call(this)),u()(ue()(r),"path",void 0),u()(ue()(r),"message",void 0),u()(ue()(r),"warning",void 0),u()(ue()(r),"message",void 0),u()(ue()(r),"severity",void 0),u()(ue()(r),"source",void 0),u()(ue()(r),"lineNumber",void 0),u()(ue()(r),"columnNumber",void 0),r.name="ModuleWarning",r.path=n.fileName||e.module.path,r.message=n.message,r.warning=n.message,r.lineNumber=n.lineNumber,r.columnNumber=n.columnNumber,r.severity=n.severity,r.source=n.source,r}return ee()(t,e),B()(t,[{key:"serialize",value:function(){return{name:"ModuleWarning",message:this.message,fileName:this.path,lineNumber:this.lineNumber,columnNumber:this.columnNumber,source:this.source,severity:this.severity}}}]),t}(n.n(Yn)()(Error));function Gn(e){if("codesandbox-api"===e)return n("../codesandbox-api/dist/codesandbox.es5.js");throw new zn.a(e)}function Xn(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}var Qn,Kn,er,tr={},nr=[],rr=!1,sr=-1;function ar(){throw new Error("setTimeout has not been defined")}function or(){throw new Error("clearTimeout has not been defined")}function ir(e){if(Qn===setTimeout)return setTimeout(e,0);if((Qn===ar||!Qn)&&setTimeout)return Qn=setTimeout,setTimeout(e,0);try{return Qn(e,0)}catch(Mo){try{return Qn.call(null,e,0)}catch(Mo){return Qn.call(this,e,0)}}}function lr(){if(!rr){var e=ir(cr);rr=!0;for(var t=nr.length;t;){for(er=nr,nr=[];++sr<t;)er&&er[sr].run();sr=-1,t=nr.length}er=null,rr=!1,function(e){if(Kn===clearTimeout)return clearTimeout(e);if((Kn===or||!Kn)&&clearTimeout)return Kn=clearTimeout,clearTimeout(e);try{Kn(e)}catch(Mo){try{return Kn.call(null,e)}catch(Mo){return Kn.call(this,e)}}}(e)}}function cr(){rr&&er&&(rr=!1,er.length?nr=er.concat(nr):sr=-1,nr.length&&lr())}function ur(e,t){this.fun=e,this.array=t}function dr(){}function pr(e){return tr.env=function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Xn(n,!0).forEach(function(t){u()(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Xn(n).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}({NODE_ENV:"development"},e),tr}function fr(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function hr(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?fr(n,!0).forEach(function(t){u()(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):fr(n).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}!function(){try{Qn="function"===typeof setTimeout?setTimeout:ar}catch(Mo){Qn=ar}try{Kn="function"===typeof clearTimeout?clearTimeout:or}catch(Mo){Kn=or}}(),ur.prototype.run=function(){this.fun.apply(null,this.array)},tr.nextTick=function(e){var t=new Array(arguments.length-1);if(arguments.length>1)for(var n=1;n<arguments.length;n++)t[n-1]=arguments[n];nr.push(new ur(e,t)),1!==nr.length||rr||ir(lr)},tr.title="browser",tr.browser=!0,tr.env={},tr.argv=[],tr.version="",tr.versions={},tr.on=dr,tr.addListener=dr,tr.once=dr,tr.off=dr,tr.removeListener=dr,tr.removeAllListeners=dr,tr.emit=dr,tr.prependListener=dr,tr.prependOnceListener=dr,tr.listeners=function(){return[]},tr.binding=function(){throw new Error("process.binding is not supported")},tr.cwd=function(){return"/"},tr.chdir=function(){throw new Error("process.chdir is not supported")},tr.umask=function(){return 0};var mr="undefined"===typeof window?self:window,br=function(){var e=mr.requestAnimationFrame||mr.mozRequestAnimationFrame||mr.webkitRequestAnimationFrame||function(e){return mr.setTimeout(e,20)};return function(t){return e(t)}}(),vr=/^const global/m,yr=function(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},s=arguments.length>4&&void 0!==arguments[4]?arguments[4]:{},a=arguments.length>5&&void 0!==arguments[5]?arguments[5]:{},o=a.asUMD,i=void 0!==o&&o,l=n.exports,c=mr,u=pr(r);mr.global=c;var d=hr({require:t,module:n,exports:l,process:u,setImmediate:br,global:c},s);i&&(delete d.module,delete d.exports,delete d.global),vr.test(e)&&delete d.global;var p=Object.keys(d),f=p.length?p.join(", "):"",h=p.map(function(e){return d[e]});try{var m="(function evaluate("+f+") {"+e+"\n})";return(0,eval)(m).apply(this,h),n.exports}catch(Mo){var b=Mo;throw"string"===typeof Mo&&(b=new Error(Mo)),b.isEvalError=!0,b}},gr=function(){function e(){q()(this,e),u()(this,"callback",void 0),u()(this,"disposeHandler",void 0),u()(this,"data",void 0),u()(this,"type",void 0),u()(this,"dirty",!1),u()(this,"selfAccepted",!1)}return B()(e,[{key:"callDisposeHandler",value:function(){this.disposeHandler&&(this.data={},this.disposeHandler(this.data),this.disposeHandler=null)}},{key:"callAcceptCallback",value:function(){this.callback&&this.callback()}},{key:"setAcceptCallback",value:function(e){this.callback=e,this.setSelfAccepted(!1)}},{key:"setDisposeHandler",value:function(e){this.disposeHandler=e}},{key:"setSelfAccepted",value:function(e){this.selfAccepted=e,e&&(this.data={})}},{key:"setType",value:function(e){this.type=e}},{key:"setDirty",value:function(e){this.dirty=e}},{key:"isDirty",value:function(){return this.dirty}},{key:"isHot",value:function(){return"accept"===this.type}},{key:"isDeclined",value:function(e){return"decline"===this.type||!this.isHot()&&e}}]),e}(),jr=function(e){var t=e.split("!"),n=t.pop();return{queryPath:t.join("!"),modulePath:n}};function xr(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function wr(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?xr(n,!0).forEach(function(t){u()(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):xr(n).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}var kr=y()("cs:compiler:transpiled-module"),Or=function e(t,n,r){var s=arguments.length>3&&void 0!==arguments[3]&&arguments[3];q()(this,e),u()(this,"fileName",void 0),u()(this,"compiledCode",void 0),u()(this,"sourceMap",void 0),u()(this,"sourceEqualsCompiled",void 0),this.fileName=t,this.compiledCode=n,this.sourceMap=r,this.sourceEqualsCompiled=s},_r=function(){function e(t){var n=this,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";q()(this,e),u()(this,"module",void 0),u()(this,"query",void 0),u()(this,"previousSource",void 0),u()(this,"source",void 0),u()(this,"assets",void 0),u()(this,"isEntry",void 0),u()(this,"childModules",void 0),u()(this,"errors",void 0),u()(this,"warnings",void 0),u()(this,"emittedAssets",void 0),u()(this,"compilation",void 0),u()(this,"initiators",void 0),u()(this,"dependencies",void 0),u()(this,"asyncDependencies",void 0),u()(this,"transpilationDependencies",void 0),u()(this,"transpilationInitiators",void 0),u()(this,"hash",void 0),u()(this,"isTestFile",!1),u()(this,"hmrConfig",void 0),u()(this,"hasMissingDependencies",!1),u()(this,"createSourceForAsset",function(e,t,n){return new Or(e,t,n)}),u()(this,"logWarnings",function(){n.warnings.length&&n.warnings.forEach(function(e){console.warn(e.message),Object(x.dispatch)(x.actions.correction.show(e.message,{line:e.lineNumber,column:e.columnNumber,path:e.path,source:e.source,severity:e.severity||"warning"}))})}),this.module=t,this.query=r,this.errors=[],this.warnings=[],this.childModules=[],this.transpilationDependencies=new Set,this.dependencies=new Set,this.asyncDependencies=[],this.transpilationInitiators=new Set,this.initiators=new Set,this.isEntry=!1,this.isTestFile=!1,this.hash=ut()("".concat(this.module.path,":").concat(this.query))}return B()(e,[{key:"getId",value:function(){return"".concat(this.module.path,":").concat(this.query)}},{key:"dispose",value:function(e){var t=this;this.hmrConfig&&e.markHardReload(),this.reset(),this.initiators.forEach(function(e){e.resetTranspilation()}),e.preset.getLoaders(this.module,this.query).forEach(function(n){n.transpiler.cleanModule&&n.transpiler.cleanModule(t.getLoaderContext(e,n.options))}),e.removeTranspiledModule(this)}},{key:"reset",value:function(){this.childModules.forEach(function(e){e.reset()}),this.childModules=[],this.emittedAssets=[],this.resetTranspilation(),this.setIsEntry(!1),this.setIsTestFile(!1)}},{key:"resetTranspilation",value:function(){var e=this;Array.from(this.transpilationInitiators).filter(function(e){return e.source}).forEach(function(e){e.resetTranspilation()}),this.previousSource=this.source,this.source=null,this.errors=[],this.warnings=[],Array.from(this.dependencies).forEach(function(t){t.initiators.delete(e)}),this.dependencies.clear(),this.transpilationDependencies.clear(),this.asyncDependencies=[]}},{key:"resetCompilation",value:function(){this.hmrConfig&&this.hmrConfig.isHot()?this.hmrConfig.setDirty(!0):(this.compilation&&(this.compilation=null),Array.from(this.initiators).filter(function(e){return e.compilation}).forEach(function(e){e.resetCompilation()}),Array.from(this.transpilationInitiators).filter(function(e){return e.compilation}).forEach(function(e){e.resetCompilation()}),this.isEntry&&Array.from(this.dependencies).filter(function(e){return e.compilation&&e.isEntry}).forEach(function(e){e.resetCompilation()}))}},{key:"shouldTranspile",value:function(){return!this.source&&!this.isTestFile&&!(0===this.initiators.size&&this.transpilationInitiators.size>0)}},{key:"addDependency",value:function(e,t){var n=this,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},a=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(!t.startsWith("codesandbox-api"))try{var i=e.resolveTranspiledModule(t,r&&r.isAbsolute?"/":this.module.path);a?(this.transpilationDependencies.add(i),i.transpilationInitiators.add(this)):(this.dependencies.add(i),i.initiators.add(this)),r.isEntry&&i.setIsEntry(!0)}catch(Mo){if("module-not-found"===Mo.type&&Mo.isDependency){var l=jr(t),c=l.queryPath;this.asyncDependencies.push(e.downloadDependency(Mo.path,this,c))}else{if(e.fileResolver)return void this.asyncDependencies.push(new Promise(function(){var i=o()(s.a.mark(function o(i){var l;return s.a.wrap(function(s){for(;;)switch(s.prev=s.next){case 0:return s.prev=0,s.next=3,e.resolveTranspiledModule(t,r&&r.isAbsolute?"/":n.module.path,void 0,!0);case 3:l=s.sent,a?(n.transpilationDependencies.add(l),l.transpilationInitiators.add(n)):(n.dependencies.add(l),l.initiators.add(n)),r.isEntry&&l.setIsEntry(!0),i(l),s.next=13;break;case 9:s.prev=9,s.t0=s.catch(0),n.hasMissingDependencies=!0;case 13:case"end":return s.stop()}},o,null,[[0,9]])}));return function(e){return i.apply(this,arguments)}}()));0,this.hasMissingDependencies=!0}}}},{key:"update",value:function(e){return this.module.path===e.path&&this.module.code===e.code||(this.module=e,this.resetTranspilation()),this}},{key:"getLoaderContext",value:function(e){var t=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return{emitWarning:function(e){t.warnings.push(new Vn(t,e))},emitError:function(e){t.errors.push(new Jn(t,e))},emitModule:function(n,r){var s,a=arguments.length>2&&void 0!==arguments[2]?arguments[2]:j.dirname(t.module.path),o=!(arguments.length>3&&void 0!==arguments[3])||arguments[3],i=!(arguments.length>4&&void 0!==arguments[4])||arguments[4],l=n.split("!"),c=l.pop(),u={path:j.join(a,c),parent:t.module,code:r};if(!o)try{(s=e.getTranspiledModule(u,l.join("!"))).update(u)}catch(Mo){}return s=s||e.addTranspiledModule(u,l.join("!")),i&&t.childModules.push(s),t.dependencies.add(s),s.initiators.add(t),s},emitFile:function(e,n,r){t.assets[e]=t.createSourceForAsset(e,n,r)},addTranspilationDependency:function(n,r){t.addDependency(e,n,r,!0)},addDependency:function(){var n=o()(s.a.mark(function n(r){var a,o=arguments;return s.a.wrap(function(n){for(;;)switch(n.prev=n.next){case 0:a=o.length>1&&void 0!==o[1]?o[1]:{},t.addDependency(e,r,a);case 2:case"end":return n.stop()}},n)}));return function(e){return n.apply(this,arguments)}}(),addDependenciesInDirectory:function(n){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},s=e.resolveTranspiledModulesInDirectory(n,r&&r.isAbsolute?"/":t.module.path);s.forEach(function(e){t.dependencies.add(e),e.initiators.add(t),r.isEntry&&e.setIsEntry(!0)})},resolveTranspiledModule:function(n){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return e.resolveTranspiledModule(n,r.isAbsolute?"/":t.module.path,r.ignoredExtensions)},resolveTranspiledModuleAsync:function(n){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return e.resolveTranspiledModuleAsync(n,r.isAbsolute?null:t,r.ignoredExtensions)},getModules:function(){return e.getModules()},options:wr({context:j.dirname(this.module.path),configurations:e.configurations},n),webpack:!0,sourceMap:!0,target:"web",_module:this,path:this.module.path,template:e.preset.name,remainingRequests:""}}},{key:"setIsEntry",value:function(e){this.isEntry=e}},{key:"setIsTestFile",value:function(e){this.isTestFile=e}},{key:"transpile",value:function(){var e=o()(s.a.mark(function e(t){var n,r,a,i,l,c,u,d,p,f,h,m,b,v,y=this;return s.a.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if(!this.source){e.next=2;break}return e.abrupt("return",this);case 2:if(!t.transpileJobs[this.getId()]){e.next=4;break}return e.abrupt("return",this);case 4:if(t.transpileJobs[this.getId()]=!0,this.hasMissingDependencies=!1,this.dependencies.forEach(function(e){e.initiators.delete(y)}),this.transpilationDependencies.forEach(function(e){e.transpilationInitiators.delete(y)}),this.childModules.forEach(function(e){e.dispose(t)}),this.dependencies.clear(),this.transpilationDependencies.clear(),this.childModules.length=0,this.errors=[],this.warnings=[],n=this.module.code||"",r=null,null==(a=this.module.requires)||""!==this.query){e.next=23;break}i=this.getLoaderContext(t,{}),a.forEach(function(e){if(0===e.indexOf("glob:")){var t=e.replace("glob:","");i.addDependenciesInDirectory(t)}else i.addDependency(e)}),n=this.module.code,e.next=55;break;case 23:l=t.preset.getLoaders(this.module,this.query),c=0;case 25:if(!(c<l.length)){e.next=54;break}return u=l[c],(d=this.getLoaderContext(t,u.options||{})).remainingRequests=l.slice(c+1).map(function(e){return e.transpiler.name}).concat([this.module.path]).join("!"),e.prev=29,p=Date.now(),e.next=33,u.transpiler.transpile(n,d);case 33:if(f=e.sent,h=f.transpiledCode,m=f.sourceMap,kr("Transpiled '".concat(this.getId(),"' in ").concat(Date.now()-p,"ms")),!this.errors.length){e.next=39;break}throw this.errors[0];case 39:n=h,r=m,e.next=51;break;case 43:throw e.prev=43,e.t0=e.catch(29),e.t0.fileName=d.path,e.t0.tModule=this,this.resetTranspilation(),this.resetCompilation(),t.clearCache(),e.t0;case 51:c+=1,e.next=25;break;case 54:this.logWarnings();case 55:return b=n===this.module.code,v="//# sourceURL=".concat(location.origin).concat(this.module.path).concat(this.query?"?".concat(this.hash):""),n="".concat(n,"\n").concat(v),this.source=new Or(this.module.path,n,r,b),this.previousSource&&this.previousSource.compiledCode!==this.source.compiledCode&&(t.preset.getLoaders(this.module,this.query).some(function(e){return null==e.transpiler.HMREnabled||e.transpiler.HMREnabled})?this.resetCompilation():t.markHardReload()),e.next=62,Promise.all(this.asyncDependencies.map(function(){var e=o()(s.a.mark(function e(t){var n;return s.a.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,t;case 3:n=e.sent,y.dependencies.add(n),n.initiators.add(y),e.next=10;break;case 8:e.prev=8,e.t0=e.catch(0);case 10:case"end":return e.stop()}},e,null,[[0,8]])}));return function(t){return e.apply(this,arguments)}}()));case 62:return this.asyncDependencies=[],e.next=65,Promise.all(Object(Fn.a)([].concat(F()(Array.from(this.transpilationInitiators).map(function(e){return e.transpile(t)})),F()(Array.from(this.dependencies).map(function(e){return e.transpile(t)})))));case 65:return e.abrupt("return",this);case 66:case"end":return e.stop()}},e,this,[[29,43]])}));return function(t){return e.apply(this,arguments)}}()},{key:"evaluate",value:function(e){var t=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=n.asUMD,s=void 0!==r&&r,a=n.force,o=void 0!==a&&a,i=n.testGlobals,l=void 0!==i&&i,c=arguments.length>2?arguments[2]:void 0;if(null==this.source){if("/node_modules/empty/index.js"===this.module.path)return{};if(!this.module.path.startsWith("/node_modules"))throw e.clearCache(),new Error("".concat(this.module.path," hasn't been transpiled yet."));var d=this.module.path.endsWith(".json")?"module.exports = JSON.parse(".concat(JSON.stringify(this.module.code),")"):this.module.code;d+="\n//# sourceURL=".concat(location.origin).concat(this.module.path).concat(this.query?"?".concat(this.hash):""),this.source=new Or(this.module.path,d,null),c&&(c.dependencies.add(this),this.initiators.add(c))}var p=this.module;if(e.webpackHMR)if(this.compilation){if(!this.isTestFile&&(!this.hmrConfig||!this.hmrConfig.isDirty()))return this.compilation.exports}else{var f=this.hmrConfig?this.hmrConfig.isDeclined(this.isEntry):this.isEntry&&!this.isTestFile;if(f)return e.isFirstLoad?(e.clearCache(),e.deleteAPICache().then(function(){document.location.reload()})):document.location.reload(),{}}else if(this.compilation&&this.compilation.exports&&!this.isEntry)return this.compilation.exports;this.hmrConfig&&(e.setHmrStatus("dispose"),this.hmrConfig.callDisposeHandler(),e.setHmrStatus("idle"));var h=this.hmrConfig?this.hmrConfig.data:void 0;this.compilation=this.compilation||{id:this.getId(),exports:{},hot:{accept:function(n,r){if("undefined"!==typeof n&&"string"===typeof n&&Array.isArray(n))("string"===typeof n?[n]:n).forEach(function(n){var s=e.resolveTranspiledModule(n,t.module.path);s.hmrConfig=s.hmrConfig||new gr;var a=s.hmrConfig;a.setType("accept"),a.setAcceptCallback(r)});else if(t.hmrConfig=t.hmrConfig||new gr,t.hmrConfig){var s=t.hmrConfig;s.setType("accept"),s.setSelfAccepted(!0)}e.enableWebpackHMR()},decline:function(n){"undefined"===typeof n?(t.hmrConfig=t.hmrConfig||new gr,t.hmrConfig.setType("decline")):("string"===typeof n?[n]:n).forEach(function(n){var r=e.resolveTranspiledModule(n,t.module.path);r.hmrConfig=r.hmrConfig||new gr,r.hmrConfig.setType("decline")});e.enableWebpackHMR()},dispose:function(e){t.hmrConfig=t.hmrConfig||new gr,t.hmrConfig.setDisposeHandler(e)},data:h,status:function(){return e.hmrStatus},addStatusHandler:e.addStatusHandler,removeStatusHandler:e.removeStatusHandler}},this.compilation.hot.data=h;var m=this;try{var b=function t(n){if(""===n)throw new Error("Cannot import an empty path");var r=e.getPresetAliasedPath(n),s=BrowserFS.BFSRequire(r);if("os"===n){var a=t("os-browserify");return a.homedir=function(){return"/home/sandbox"},a}if(s)return s;if("module"===n)return function(){function t(){q()(this,t),u()(this,"filename",void 0),u()(this,"id",void 0),u()(this,"loaded",!1)}return B()(t,null,[{key:"_resolveFilename",value:function(t,n){if(null==n.filename)throw new Error("Module has no filename");return e.resolveModule(t,n.filename).path}},{key:"_nodeModulePaths",value:function(){return[]}}]),t}();if(n.startsWith("codesandbox-api"))return Gn(n);var i=e.resolveTranspiledModule(n,p.path),c=i.compilation;return c?c.exports:e.evaluateTranspiledModule(i,m,{force:o,testGlobals:l})};b.resolve=function(t){return e.resolveModule(t,p.path).path};var v=this.isTestFile||l?e.testRunner.testGlobals(this.module):{};v.__dirname=j.dirname(this.module.path),v.__filename=this.module.path;var y=yr(this.source.compiledCode,b,this.compilation,e.envVariables,v,{asUMD:s});e.setHmrStatus("apply");var g=this.hmrConfig;return g&&g.isHot()&&(g.setDirty(!1),g.callAcceptCallback()),e.setHmrStatus("idle"),y}catch(Mo){throw Mo.tModule=Mo.tModule||m,this.resetCompilation(),Mo}}},{key:"postTranspile",value:function(e){0!==this.initiators.size||0!==this.transpilationInitiators.size||this.isEntry||e.isFirstLoad||this.module.stubbed||(kr("Removing '".concat(this.getId(),"' from manager.")),this.dispose(e))}},{key:"postEvaluate",value:function(e){e.preset.getLoaders(this.module,this.query).some(function(e){return null!=e.transpiler.cacheable&&!e.transpiler.cacheable})&&(kr("Removing '".concat(this.getId(),"' cache as it's not cacheable.")),this.compilation=null)}},{key:"serialize",value:function(){var e=o()(s.a.mark(function e(){var t,n,r,a=arguments;return s.a.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return t=!(a.length>0&&void 0!==a[0])||a[0],n=this.source&&this.source.sourceEqualsCompiled,e.t0=this.query,e.t1=this.assets,e.t2=this.module,e.t3=this.emittedAssets,e.t4=this.isEntry,e.t5=this.isTestFile,e.t6=n,e.t7=this.childModules.map(function(e){return e.getId()}),e.t8=Array.from(this.dependencies).map(function(e){return e.getId()}),e.t9=Array.from(this.initiators).map(function(e){return e.getId()}),e.t10=Array.from(this.transpilationDependencies).map(function(e){return e.getId()}),e.t11=Array.from(this.transpilationInitiators).map(function(e){return e.getId()}),e.next=16,Promise.all(Array.from(this.asyncDependencies).map(function(e){return e.then(function(e){return e.getId()})}));case 16:return e.t12=e.sent,e.t13=this.warnings.map(function(e){return e.serialize()}),r={query:e.t0,assets:e.t1,module:e.t2,emittedAssets:e.t3,isEntry:e.t4,isTestFile:e.t5,sourceEqualsCompiled:e.t6,childModules:e.t7,dependencies:e.t8,initiators:e.t9,transpilationDependencies:e.t10,transpilationInitiators:e.t11,asyncDependencies:e.t12,warnings:e.t13},n&&t||(r.source=this.source),e.abrupt("return",r);case 21:case"end":return e.stop()}},e,this)}));return function(){return e.apply(this,arguments)}}()},{key:"load",value:function(){var e=o()(s.a.mark(function e(t,n,r){var a,o,i=this;return s.a.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:this.query=t.query,this.assets=t.assets,this.module=t.module,this.emittedAssets=t.emittedAssets,this.isEntry=t.isEntry,this.isTestFile=t.isTestFile,t.sourceEqualsCompiled?this.source=new Or(this.module.path,this.module.code,null,!0):this.source=t.source,a=function(e){if(n[e])return n[e];var t=e.split(":"),s=l()(t),a=s[0],o=s.slice(1).join(":"),i=r.transpiledModules[a].module;return r.getTranspiledModule(i,o)},o=function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],r=a(e);return t?n?r.transpilationDependencies.add(i):r.dependencies.add(i):n?r.transpilationInitiators.add(i):r.initiators.add(i),r},t.dependencies.forEach(function(e){i.dependencies.add(o(e))}),t.childModules.forEach(function(e){i.childModules.push(o(e))}),t.initiators.forEach(function(e){i.initiators.add(o(e,!0))}),t.transpilationDependencies.forEach(function(e){i.transpilationDependencies.add(o(e,!1,!0))}),t.transpilationInitiators.forEach(function(e){i.transpilationInitiators.add(o(e,!0,!0))}),t.asyncDependencies.forEach(function(e){i.asyncDependencies.push(Promise.resolve(o(e)))}),this.warnings=t.warnings.map(function(e){return new Vn(i,e)})||[],this.logWarnings();case 17:case"end":return e.stop()}},e,this)}));return function(t,n,r){return e.apply(this,arguments)}}()}]),e}(),Sr=n("../common/lib/utils/ci.js");function Er(e){var t=e.split("/"),n=t.shift();return e.startsWith("@")&&(n+="/".concat(t.shift())),t[0]&&/^\d/.test(t[0])&&(n+="/".concat(t.shift())),n}function Tr(e){return!e.main&&e.module&&(e.main=e.module),e}function Pr(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function Mr(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Pr(n,!0).forEach(function(t){u()(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Pr(n).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}var Cr={},Dr={},Nr={},Rr={};function Ar(e){for(var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=arguments.length>2?arguments[2]:void 0,r=0;r<e.length;r+=1){if("file"===e[r].type)t[n+e[r].path]=!0;e[r].files&&Ar(e[r].files,t,n)}return t}function Ir(e){for(var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=arguments.length>2?arguments[2]:void 0,r=0;r<e.length;r+=1){t[j.join(n,e[r].name)]=!0}return t}var Fr=function(e){var t=e.match(/https:\/\/github\.com\/(.*)$/);return t&&t[1]?t[1].replace(/\.git$/,""):e},Lr={csbGH:{file:function(){var e=o()(s.a.mark(function e(t,n,r){return s.a.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return","".concat(n.replace(/\/_pkg.tgz$/,"")).concat(r));case 1:case"end":return e.stop()}},e)}));return function(t,n,r){return e.apply(this,arguments)}}(),meta:function(){var e=o()(s.a.mark(function e(t,n){return s.a.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return","".concat(n.replace(/\/\.pkg.tgz$/,""),"/_csb-meta.json"));case 1:case"end":return e.stop()}},e)}));return function(t,n){return e.apply(this,arguments)}}(),normalizeMeta:Ar},unpkg:{file:function(){var e=o()(s.a.mark(function e(t,n,r){return s.a.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return","https://unpkg.com/".concat(t,"@").concat(n).concat(r));case 1:case"end":return e.stop()}},e)}));return function(t,n,r){return e.apply(this,arguments)}}(),meta:function(){var e=o()(s.a.mark(function e(t,n){return s.a.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return","https://unpkg.com/".concat(t,"@").concat(n,"/?meta"));case 1:case"end":return e.stop()}},e)}));return function(t,n){return e.apply(this,arguments)}}(),normalizeMeta:Ar},jsDelivrNPM:{file:function(){var e=o()(s.a.mark(function e(t,n,r){return s.a.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return","https://cdn.jsdelivr.net/npm/".concat(t,"@").concat(n).concat(r));case 1:case"end":return e.stop()}},e)}));return function(t,n,r){return e.apply(this,arguments)}}(),meta:function(){var e=o()(s.a.mark(function e(t,n){var r;return s.a.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if(!/^\d/.test(n)){e.next=4;break}e.t0=n,e.next=9;break;case 4:return e.t1=JSON,e.next=7,Ur(t,n,"/package.json");case 7:e.t2=e.sent.code,e.t0=e.t1.parse.call(e.t1,e.t2).version;case 9:return r=e.t0,e.abrupt("return","https://data.jsdelivr.com/v1/package/npm/".concat(t,"@").concat(r,"/flat"));case 11:case"end":return e.stop()}},e)}));return function(t,n){return e.apply(this,arguments)}}(),normalizeMeta:Ir},jsDelivrGH:{file:function(){var e=o()(s.a.mark(function e(t,n,r){return s.a.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return","https://cdn.jsdelivr.net/gh/".concat(Fr(n)).concat(r));case 1:case"end":return e.stop()}},e)}));return function(t,n,r){return e.apply(this,arguments)}}(),meta:function(){var e=o()(s.a.mark(function e(t,n){var r;return s.a.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,fetch("https://api.github.com/repos/".concat(Fr(n),"/commits/master")).then(function(e){return e.json()}).then(function(e){return e.sha});case 2:return r=e.sent,e.abrupt("return","https://data.jsdelivr.com/v1/package/gh/".concat(Fr(n),"@").concat(r,"/flat"));case 4:case"end":return e.stop()}},e)}));return function(t,n){return e.apply(this,arguments)}}(),normalizeMeta:Ir}};function Hr(e){return Wr.apply(this,arguments)}function Wr(){return(Wr=o()(s.a.mark(function e(t){var n,r,a,o,i=arguments;return s.a.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:n=i.length>1&&void 0!==i[1]?i[1]:6,r=function(){return window.fetch(t).then(function(e){if(e.ok)return e;throw new Error("Could not fetch ".concat(t))})},a=0,o=0;case 4:if(!(o<n)){e.next=23;break}if(!(Date.now()-a<3e3)){e.next=8;break}return e.next=8,Se(3e3-(Date.now()-a));case 8:return e.prev=8,a=Date.now(),e.next=12,r();case 12:return e.abrupt("return",e.sent);case 15:if(e.prev=15,e.t0=e.catch(8),console.error(e.t0),o!==n-1){e.next=20;break}throw e.t0;case 20:o++,e.next=4;break;case 23:throw new Error("Could not fetch");case 24:case"end":return e.stop()}},e,null,[[8,15]])}))).apply(this,arguments)}var qr=function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=Sr.CSB_PKG_PROTOCOL.test(e);if(n)return Lr.csbGH;var r=/\//.test(e);return r?Lr.jsDelivrGH:t?Lr.unpkg:Lr.jsDelivrNPM},zr=/\/\d*\.\d*\.\d*.*?(\/|$)/;function Br(e,t,n){return $r.apply(this,arguments)}function $r(){return($r=o()(s.a.mark(function e(t,n,r){var a,o,i;return s.a.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if(a=t.replace(zr,""),o="".concat(n||t,"@").concat(r),!Cr[o]){e.next=4;break}return e.abrupt("return",Cr[o]);case 4:return i=qr(r),Cr[o]=i.meta(a,r).then(Hr).then(function(e){return e.json()}),e.abrupt("return",Cr[o]);case 7:case"end":return e.stop()}},e)}))).apply(this,arguments)}function Ur(e,t,n){return Zr.apply(this,arguments)}function Zr(){return(Zr=o()(s.a.mark(function e(t,n,r){var a,i,l,c;return s.a.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if(!Rr[a=t+n+r]){e.next=3;break}return e.abrupt("return",Rr[a]);case 3:return i=r.replace(new RegExp(".*".concat(j.join("/node_modules",t)).replace("/","\\/")),"").replace(/#/g,"%23"),l=t.replace(zr,""),c=qr(n),Rr[a]=c.file(l,n,i).then(Hr).then(function(e){return e.text()}).catch(o()(s.a.mark(function e(){var t,r;return s.a.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return t=qr(n,!0),e.next=3,t.file(l,n,i);case 3:return r=e.sent,e.abrupt("return",Hr(r).then(function(e){return e.text()}));case 5:case"end":return e.stop()}},e)}))).then(function(e){return{path:r,code:e,downloaded:!0}}),e.abrupt("return",Rr[a]);case 8:case"end":return e.stop()}},e)}))).apply(this,arguments)}function Jr(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:["js","jsx","json"],a=arguments.length>4&&void 0!==arguments[4]?arguments[4]:{},i=t.module.path,l=function(e,t,r){(r||t)(null,Boolean(n.transpiledModules[e])||Boolean(a[e]))};return new Promise(function(c,u){Hn()(e,{filename:i,extensions:r.map(function(e){return"."+e}),packageFilter:Tr,moduleDirectory:["node_modules",n.envVariables.NODE_PATH].filter(Boolean),isFile:l,readFile:function(){var e=o()(s.a.mark(function e(o,i,l){var c,u,d,p,f,h,m,b,v;return s.a.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return c=l||i,e.prev=1,(u=n.resolveTranspiledModule(o,"/")).initiators.add(t),t.dependencies.add(u),e.abrupt("return",c(null,u.module.code));case 8:if(e.prev=8,e.t0=e.catch(1),d=o.replace(/.*\/node_modules\//,""),p=Er(d),n.transpiledModules[o]||a[o]){e.next=16;break}return(f=new Error("Could not find "+o)).code="ENOENT",e.abrupt("return",c(f));case 16:return e.next=18,Yr(t,n,r,p);case 18:if(!(h=e.sent)){e.next=36;break}return m=h.version,e.prev=21,e.next=24,Ur(p,m,o);case 24:if(!(b=e.sent)){e.next=32;break}return n.addModule(b),(v=n.addTranspiledModule(b,"")).initiators.add(t),t.dependencies.add(v),c(null,b.code),e.abrupt("return",null);case 32:e.next=36;break;case 34:e.prev=34,e.t1=e.catch(21);case 36:return e.abrupt("return",c(e.t0));case 37:case"end":return e.stop()}},e,null,[[1,8],[21,34]])}));return function(t,n,r){return e.apply(this,arguments)}}()},function(e,t){return e?u(e):c(t)})})}function Yr(e,t){return Vr.apply(this,arguments)}function Vr(){return(Vr=o()(s.a.mark(function e(t,n){var r,a,o,i,l,c,u,d,p,f,h,m=arguments;return s.a.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return r=m.length>2&&void 0!==m[2]?m[2]:["js","jsx","json"],a=m.length>3?m[3]:void 0,o=n.manifest,e.prev=3,e.next=6,Jr(j.join(a,"package.json"),t,n,r);case 6:if((i=e.sent)!==j.join("/node_modules",a,"package.json")){e.next=11;break}if(!(l=o.dependencies.find(function(e){return e.name===a}))){e.next=11;break}return e.abrupt("return",{packageJSONPath:i,version:l.version});case 11:if(c=n.transpiledModules[i]&&n.transpiledModules[i].module.code,u=JSON.parse(c),d=u.version,!(p=o.dependencyDependencies[a])||p.resolved!==d||!p.semver.startsWith("https://")){e.next=16;break}return e.abrupt("return",{packageJSONPath:i,version:p.semver});case 16:if("//empty.js"===c){e.next=18;break}return e.abrupt("return",{packageJSONPath:i,version:d});case 18:e.next=22;break;case 20:e.prev=20,e.t0=e.catch(3);case 22:if(f=null,o.dependencyDependencies[a]?f=o.dependencyDependencies[a].semver.startsWith("https://")?o.dependencyDependencies[a].semver:o.dependencyDependencies[a].resolved:(h=o.dependencies.find(function(e){return e.name===a}))&&(f=h.version),!f){e.next=26;break}return e.abrupt("return",{packageJSONPath:null,version:f});case 26:return e.abrupt("return",null);case 27:case"end":return e.stop()}},e,null,[[3,20]])}))).apply(this,arguments)}function Gr(e,t,n){return Xr.apply(this,arguments)}function Xr(){return(Xr=o()(s.a.mark(function e(t,n,r){var a,o,i,l,c,u,d,p,f,h,m,b,v,y=arguments;return s.a.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return a=y.length>3&&void 0!==y[3]?y[3]:["js","jsx","json"],o=n.module.path,i=Er(t.replace(/.*\/node_modules\//,"")),e.next=5,Yr(n,r,a,i);case 5:if(null!==(l=e.sent)){e.next=8;break}throw new zn.a(t);case 8:return c=l.packageJSONPath,u=l.version,e.next=11,Br(i,c,u);case 11:return d=e.sent,p=qr(u).normalizeMeta,f=c?j.dirname(c):j.join("/node_modules",i),m=Nr[h=i+f]||p(d.files,{},f),Nr[h]=m,Dr=Mr({},Dr,{},m),e.next=20,Jr(t,n,r,a,m);case 20:if("//empty.js"!==(b=e.sent)){e.next=24;break}return v=/^(\w|@\w)/.test(t),e.abrupt("return",{path:v?j.join("/node_modules",t):j.join(o,t),code:"module.exports = {};",requires:[],stubbed:!0});case 24:return e.abrupt("return",Ur(i,u,b));case 25:case"end":return e.stop()}},e)}))).apply(this,arguments)}var Qr={assert:"assert/assert.js",buffer:"buffer/index.js",child_process:null,cluster:null,console:"console-browserify/index.js",constants:"constants-browserify/constants.json",crypto:"crypto-browserify/index.js",dgram:null,dns:null,domain:"domain-browser/index.js",events:"events/events.js",fs:null,http:"stream-http/index.js",https:"https-browserify/index.js",module:null,net:null,os:"os-browserify/browser.js",path:"path-browserify/index.js",punycode:"punycode/punycode.js",process:"process/browser.js",querystring:"querystring-es3/index.js",readline:null,repl:null,stream:"stream-browserify/index.js",_stream_duplex:"readable-stream/duplex.js",_stream_passthrough:"readable-stream/passthrough.js",_stream_readable:"readable-stream/readable.js",_stream_transform:"readable-stream/transform.js",_stream_writable:"readable-stream/writable.js",sys:"util/util.js",timers:"timers-browserify/main.js",tls:null,tty:"tty-browserify/index.js",url:"url/url.js",util:"util/util.js",vm:"vm-browserify/index.js",zlib:"browserify-zlib/src/index.js"},Kr=n("../common/lib/utils/jest-lite.js"),es=n("../../node_modules/jest-matchers/build-es5/index.js"),ts=n.n(es),ns=n("../../node_modules/jest-mock/build-es5/index.js"),rs=n.n(ns),ss=n("../../node_modules/jest-circus/build/index.js"),as=n.n(ss),os=n("../../node_modules/jest-circus/build/utils.js"),is=n("../../node_modules/jest-each/build/index.js"),ls=n("./node_modules/jest-snapshot/build/index.js"),cs=n("../../node_modules/jest-circus/build/state.js"),us=n("../sandbox-hooks/react-error-overlay/utils/parser.js"),ds=n("../sandbox-hooks/react-error-overlay/utils/mapper.js"),ps=[],fs=function(){var e=o()(s.a.mark(function e(){var t,n;return s.a.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return t=Object(cs.getState)(),n=t.rootDescribeBlock,ps.length=0,Object(cs.dispatch)({name:"run_start"}),e.next=5,ms(n);case 5:return Object(cs.dispatch)({name:"run_finish"}),e.abrupt("return",Object(os.makeTestResults)(Object(cs.getState)().rootDescribeBlock));case 7:case"end":return e.stop()}},e)}));return function(){return e.apply(this,arguments)}}(),hs=function(e){var t=ts.a.getState().testPath,n=e.name.split(":#:"),r=H()(n,2),s=r[0],a=r[1],o=[].concat(ps).slice(1),i={currentTestName:(o.length>0?o.join(" ")+" ":"")+a};null!=s&&t===s||(i.snapshotState=new ls.SnapshotState(s,{expand:!0,updateSnapshot:"none"}),i.testPath=s),ts.a.setState(i)},ms=function(){var e=o()(s.a.mark(function e(t){var n,r,a,o,i,l,c,u,d,p,f,h,m,b,v,y,g,j,x,w,k,O,_,S,E,T,P;return s.a.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:for(ps.push(t.name),Object(cs.dispatch)({describeBlock:t,name:"run_describe_start"}),n=Object(os.getAllHooksForDescribe)(t),r=n.beforeAll,a=n.afterAll,o=!0,i=!1,l=void 0,e.prev=6,c=r[Symbol.iterator]();!(o=(u=c.next()).done);o=!0)d=u.value,vs(d);e.next=14;break;case 10:e.prev=10,e.t0=e.catch(6),i=!0,l=e.t0;case 14:e.prev=14,e.prev=15,o||null==c.return||c.return();case 17:if(e.prev=17,!i){e.next=20;break}throw l;case 20:return e.finish(17);case 21:return e.finish(14);case 22:p=!0,f=!1,h=void 0,e.prev=25,m=t.tests[Symbol.iterator]();case 27:if(p=(b=m.next()).done){e.next=34;break}return v=b.value,e.next=31,bs(v);case 31:p=!0,e.next=27;break;case 34:e.next=40;break;case 36:e.prev=36,e.t1=e.catch(25),f=!0,h=e.t1;case 40:e.prev=40,e.prev=41,p||null==m.return||m.return();case 43:if(e.prev=43,!f){e.next=46;break}throw h;case 46:return e.finish(43);case 47:return e.finish(40);case 48:y=!0,g=!1,j=void 0,e.prev=51,x=t.children[Symbol.iterator]();case 53:if(y=(w=x.next()).done){e.next=60;break}return k=w.value,e.next=57,ms(k);case 57:y=!0,e.next=53;break;case 60:e.next=66;break;case 62:e.prev=62,e.t2=e.catch(51),g=!0,j=e.t2;case 66:e.prev=66,e.prev=67,y||null==x.return||x.return();case 69:if(e.prev=69,!g){e.next=72;break}throw j;case 72:return e.finish(69);case 73:return e.finish(66);case 74:for(O=!0,_=!1,S=void 0,e.prev=77,E=a[Symbol.iterator]();!(O=(T=E.next()).done);O=!0)P=T.value,vs(P);e.next=85;break;case 81:e.prev=81,e.t3=e.catch(77),_=!0,S=e.t3;case 85:e.prev=85,e.prev=86,O||null==E.return||E.return();case 88:if(e.prev=88,!_){e.next=91;break}throw S;case 91:return e.finish(88);case 92:return e.finish(85);case 93:Object(cs.dispatch)({describeBlock:t,name:"run_describe_finish"}),ps.pop();case 95:case"end":return e.stop()}},e,null,[[6,10,14,22],[15,,17,21],[25,36,40,48],[41,,43,47],[51,62,66,74],[67,,69,73],[77,81,85,93],[86,,88,92]])}));return function(t){return e.apply(this,arguments)}}(),bs=function(){var e=o()(s.a.mark(function e(t){var n,r,a,o,i,l,c,u,d,p,f,h,m,b,v,y;return s.a.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if(n=Object.create(null),!("skip"===t.mode||Object(cs.getState)().hasFocusedTests&&"only"!==t.mode)){e.next=5;break}return Object(cs.dispatch)({name:"test_skip",test:t}),e.abrupt("return");case 5:r=Object(os.getEachHooksForTest)(t),a=r.afterEach,o=r.beforeEach,i=!0,l=!1,c=void 0,e.prev=9,u=o[Symbol.iterator]();case 11:if(i=(d=u.next()).done){e.next=18;break}return p=d.value,e.next=15,vs(p,n);case 15:i=!0,e.next=11;break;case 18:e.next=24;break;case 20:e.prev=20,e.t0=e.catch(9),l=!0,c=e.t0;case 24:e.prev=24,e.prev=25,i||null==u.return||u.return();case 27:if(e.prev=27,!l){e.next=30;break}throw c;case 30:return e.finish(27);case 31:return e.finish(24);case 32:return e.next=34,ys(t,n);case 34:f=!0,h=!1,m=void 0,e.prev=37,b=a[Symbol.iterator]();case 39:if(f=(v=b.next()).done){e.next=46;break}return y=v.value,e.next=43,vs(y,n);case 43:f=!0,e.next=39;break;case 46:e.next=52;break;case 48:e.prev=48,e.t1=e.catch(37),h=!0,m=e.t1;case 52:e.prev=52,e.prev=53,f||null==b.return||b.return();case 55:if(e.prev=55,!h){e.next=58;break}throw m;case 58:return e.finish(55);case 59:return e.finish(52);case 60:case"end":return e.stop()}},e,null,[[9,20,24,32],[25,,27,31],[37,48,52,60],[53,,55,59]])}));return function(t){return e.apply(this,arguments)}}(),vs=function(e,t){Object(cs.dispatch)({hook:e,name:"hook_start"});var n=Object(cs.getState)().testTimeout;return Object(os.callAsyncFn)(e.fn,t,{isHook:!0,timeout:n}).then(function(){return Object(cs.dispatch)({hook:e,name:"hook_success"})}).catch(function(t){return Object(cs.dispatch)({error:t,hook:e,name:"hook_failure"})})},ys=function(){var e=o()(s.a.mark(function e(t,n){var r,a;return s.a.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if(Object(cs.dispatch)({name:"test_start",test:t}),r=Object(cs.getState)(),a=r.testTimeout,t.fn){e.next=4;break}throw Error("Tests with no 'fn' should have 'mode' set to 'skipped'");case 4:return hs(t),e.abrupt("return",Object(os.callAsyncFn)(t.fn,n,{isHook:!1,timeout:a}).then(function(){return Object(cs.dispatch)({name:"test_success",test:t})}).catch(function(e){return Object(cs.dispatch)({error:e,name:"test_failure",test:t})}));case 6:case"end":return e.stop()}},e)}));return function(t,n){return e.apply(this,arguments)}}(),gs=fs;function js(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function xs(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?js(n,!0).forEach(function(t){u()(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):js(n).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}ts.a.extend({toMatchSnapshot:ls.toMatchSnapshot,toThrowErrorMatchingSnapshot:ls.toThrowErrorMatchingSnapshot}),ts.a.addSnapshotSerializer=ls.addSerializer;var ws=null,ks=function(){var e,t="/static/js/jsdom-4.0.0.min.js";return navigator.userAgent.indexOf("jsdom"),ws=ws||(e=t,new Promise(function(t,n){var r=document.createElement("script");r.setAttribute("src",e),document.body.appendChild(r),r.onload=function(){t()},r.onerror=function(e){n(e)}}))};function Os(){var e=Object(os.makeDescribe)(cs.ROOT_DESCRIBE_BLOCK_NAME),t={currentDescribeBlock:e,expand:void 0,hasFocusedTests:!1,rootDescribeBlock:e,testTimeout:5e3};ts.a.setState({assertionCalls:0,expectedAssertionsNumber:null,isExpectingAssertions:!1,suppressedErrors:[],testPath:null,currentTestName:null,snapshotState:null}),Object(cs.setState)(t)}var _s=function(){function e(t){var n=this;q()(this,e),u()(this,"tests",void 0),u()(this,"ranTests",void 0),u()(this,"manager",void 0),u()(this,"watching",!0),u()(this,"LOCALHOST_URL","http://localhost"),u()(this,"dom",void 0),u()(this,"handleMessage",function(){var e=o()(s.a.mark(function e(t){var r,a,o,i,l,c,u,d,p;return s.a.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:e.t0=t.name,e.next="test_start"===e.t0?3:"test_failure"===e.t0?7:"test_success"===e.t0?7:"start_describe_definition"===e.t0?23:"finish_describe_definition"===e.t0?24:"add_test"===e.t0?25:27;break;case 3:return e.next=5,n.testToCodeSandbox(t.test);case 5:return r=e.sent,e.abrupt("return",n.sendMessage(Kr.messages.TEST_START,{test:r}));case 7:return a=ts.a.getState(),(o=a.suppressedErrors)&&o.length&&(t.test.errors=o,t.test.status="fail",ts.a.setState({suppressedErrors:[]})),e.next=11,n.testToCodeSandbox(t.test);case 11:return(i=e.sent).errors&&i.errors.forEach(function(e){if(e.mappedErrors&&e.mappedErrors.length){var t=e.mappedErrors,n=H()(t,1)[0];Object(x.dispatch)(x.actions.error.show(e.name||"Jest Error",e.message,{line:n._originalLineNumber,column:n._originalColumnNumber,path:i.path,payload:{},source:"jest"}))}}),e.prev=13,e.abrupt("return",n.sendMessage(Kr.messages.TEST_END,{test:i}));case 17:return e.prev=17,e.t1=e.catch(13),e.next=21,n.errorToCodeSandbox(e.t1);case 21:return l=e.sent,e.abrupt("return",n.sendMessage(Kr.messages.FILE_ERROR,{path:i.path,error:l}));case 23:return e.abrupt("return",n.sendMessage(Kr.messages.DESCRIBE_START,{blockName:t.blockName}));case 24:return e.abrupt("return",n.sendMessage(Kr.messages.DESCRIBE_END));case 25:return c=t.testName.split(":#:"),u=H()(c,2),d=u[0],p=u[1],e.abrupt("return",n.sendMessage(Kr.messages.ADD_TEST,{testName:p,path:d}));case 27:return e.abrupt("return",null);case 28:case"end":return e.stop()}},e,null,[[13,17]])}));return function(t){return e.apply(this,arguments)}}()),u()(this,"handleCodeSandboxMessage",function(e){switch(e.type){case"set-test-watching":n.watching=e.watching,!0===e.watching&&(n.ranTests.clear(),n.runTests(!0));break;case"run-all-tests":n.ranTests.clear(),n.runTests(!0);break;case"run-tests":var t=e.path;n.ranTests.delete(t),n.runTests()}}),u()(this,"reportError",function(){}),this.manager=t,this.ranTests=new Set,Object(cs.addEventHandler)(this.handleMessage),Object(x.listen)(this.handleCodeSandboxMessage),this.sendMessage(Kr.messages.INITIALIZE)}return B()(e,[{key:"testGlobals",value:function(e){var t=function(t,n){return Object(cs.dispatch)({fn:n,name:"add_test",testName:"".concat(e.path,":#:").concat(t)})},n=function(t,n){return Object(cs.dispatch)({fn:n,mode:"skip",name:"add_test",testName:"".concat(e.path,":#:").concat(t)})},r=function(t,n){Object(cs.dispatch)({fn:n,mode:"only",name:"add_test",testName:"".concat(e.path,":#:").concat(t)})};t.each=Object(is.bind)(t),n.each=Object(is.bind)(n),r.each=Object(is.bind)(r),t.only=r,t.skip=n;var s=t,a=this.dom.window,o=a.document;return a.Date=Date,a.fetch=fetch,xs({},as.a,{expect:ts.a,jest:rs.a,test:t,it:s,document:o,window:a,global:a})}},{key:"findTests",value:function(t){var n=this;return this.tests&&this.tests.forEach(function(e){t[e.path]||n.sendMessage(Kr.messages.REMOVE_FILE,{path:e.path})}),this.tests=Object.keys(t).filter(e.isTest).map(function(e){return t[e]}),this.tests}},{key:"transpileTests",value:function(){var e=o()(s.a.mark(function e(){var t=this;return s.a.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",Promise.all((this.tests||[]).map(function(){var e=o()(s.a.mark(function e(n){var r,a;return s.a.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if(!((r=t.manager.getTranspiledModule(n,"")).source&&r.compilation&&t.ranTests.has(n.path))){e.next=3;break}return e.abrupt("return",null);case 3:return t.sendMessage(Kr.messages.ADD_FILE,{path:n.path}),e.prev=4,e.next=7,t.manager.transpileModules(n,!0);case 7:return r.source||t.ranTests.delete(n.path),e.abrupt("return",n);case 11:return e.prev=11,e.t0=e.catch(4),e.next=15,t.errorToCodeSandbox(e.t0);case 15:return a=e.sent,t.ranTests.delete(n.path),t.sendMessage(Kr.messages.FILE_ERROR,{path:n.path,error:a}),e.abrupt("return",null);case 19:case"end":return e.stop()}},e,null,[[4,11]])}));return function(t){return e.apply(this,arguments)}}())));case 1:case"end":return e.stop()}},e,this)}));return function(){return e.apply(this,arguments)}}()},{key:"sendMessage",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};Object(x.dispatch)(xs({type:"test",event:e},t))}},{key:"initJSDOM",value:function(){var e=o()(s.a.mark(function e(){var t,n;return s.a.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,ks();case 2:t=window.JSDOM.JSDOM,"null"===(n=document.location.origin)&&(n=this.LOCALHOST_URL),this.dom=new t("<!DOCTYPE html>",{pretendToBeVisual:!0,url:n});case 6:case"end":return e.stop()}},e,this)}));return function(){return e.apply(this,arguments)}}()},{key:"runTests",value:function(){var e=o()(s.a.mark(function e(){var t,n,r,a,i=this,l=arguments;return s.a.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if(t=l.length>0&&void 0!==l[0]&&l[0],this.watching||t){e.next=3;break}return e.abrupt("return");case 3:return e.next=5,this.initJSDOM();case 5:this.manager.clearCompiledCache(),this.sendMessage(Kr.messages.TOTAL_TEST_START),n=[];try{if(this.manager.preset.name===m.react.name)try{n=[this.manager.resolveModule("./src/setupTests.js","/")]}catch(Mo){n=[this.manager.resolveModule("./src/setupTests.ts","/")]}else this.manager.preset.name===m.reactTs.name?n=[this.manager.resolveModule("./src/setupTests.ts","/")]:this.manager.configurations.package&&(r=this.manager.configurations.package.parsed)&&r.jest&&r.jest.setupFilesAfterEnv&&(n=r.jest.setupFilesAfterEnv.map(function(e){return i.manager.resolveModule(e,"/")}))}catch(Mo){}if(!n.length){e.next=12;break}return e.next=12,Promise.all(n.map(function(e){return i.manager.transpileModules(e,!0)}));case 12:return this.manager.modules&&this.findTests(this.manager.modules),e.next=15,this.transpileTests();case 15:return e.t0=function(e){return e},a=e.sent.filter(e.t0),Os(),e.next=20,Promise.all(a.map(function(){var e=o()(s.a.mark(function e(t){var r;return s.a.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:Object(x.dispatch)(x.actions.error.clear(t.path,"jest")),e.prev=1,n.length&&n.forEach(function(e){i.manager.evaluateModule(e,{force:!0,testGlobals:!0})}),i.manager.evaluateModule(t,{force:!0,testGlobals:!0}),i.ranTests.add(t.path),e.next=14;break;case 7:return e.prev=7,e.t0=e.catch(1),i.ranTests.delete(t.path),e.next=12,i.errorToCodeSandbox(e.t0);case 12:r=e.sent,i.sendMessage(Kr.messages.FILE_ERROR,{path:t.path,error:r});case 14:case"end":return e.stop()}},e,null,[[1,7]])}));return function(t){return e.apply(this,arguments)}}()));case 20:return e.next=22,gs();case 22:setTimeout(function(){i.sendMessage(Kr.messages.TOTAL_TEST_END)});case 23:case"end":return e.stop()}},e,this)}));return function(){return e.apply(this,arguments)}}()},{key:"errorToCodeSandbox",value:function(){var e=o()(s.a.mark(function e(t){var n,r;return s.a.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return n=Object(us.parse)(t),e.next=3,Object(ds.map)(n);case 3:return r=e.sent,e.abrupt("return",{name:t.name,message:t.message,stack:t.stack,matcherResult:Boolean(t.matcherResult),mappedErrors:r});case 5:case"end":return e.stop()}},e)}));return function(t){return e.apply(this,arguments)}}()},{key:"getDescribeBlocks",value:function(e){for(var t=e,n=[];null!=t.parent;)n.push(t.parent.name),t=t.parent;return n.pop(),n.reverse()}},{key:"testToCodeSandbox",value:function(){var e=o()(s.a.mark(function e(t){var n,r,a,o,i;return s.a.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return n=t.name.split(":#:"),r=H()(n,2),a=r[0],o=r[1],e.next=3,Promise.all(t.errors.map(this.errorToCodeSandbox));case 3:return i=e.sent,e.abrupt("return",{name:o,path:a,duration:t.duration,status:t.status||"running",errors:i,blocks:this.getDescribeBlocks(t)});case 5:case"end":return e.stop()}},e,this)}));return function(t){return e.apply(this,arguments)}}()}],[{key:"isTest",value:function(e){return!(!e.includes("__tests__")||!(e.endsWith(".js")||e.endsWith(".ts")||e.endsWith(".tsx")))||[".test.js",".test.ts",".test.tsx",".spec.js",".spec.ts",".spec.tsx"].filter(function(t){return e.endsWith(t)}).length>0}}]),e}(),Ss=function(e){return Object.keys(e).sort().map(function(t){return encodeURIComponent("".concat(t,"@").concat(e[t]))}).join("+")};function Es(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function Ts(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Es(n,!0).forEach(function(t){u()(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Es(n).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}var Ps=["dgram","net","tls","fs","module","child_process"],Ms=["babel-core","@babel/core"].reduce(function(e,t){return Ts({},e,u()({},"/node_modules/".concat(t,"/package.json"),!0))},{}),Cs={path:j.join("/node_modules","empty","index.js"),code:"// empty",requires:[]},Ds=function(e,t){return Ts({},Cs,{path:j.join(j.dirname(e),t)})},Ns=y()("cs:compiler:manager"),Rs=function(){function e(t,n,r,a,i){var l=this;q()(this,e),u()(this,"id",void 0),u()(this,"transpiledModules",void 0),u()(this,"envVariables",{}),u()(this,"preset",void 0),u()(this,"externals",void 0),u()(this,"modules",void 0),u()(this,"manifest",void 0),u()(this,"dependencies",void 0),u()(this,"webpackHMR",void 0),u()(this,"hardReload",void 0),u()(this,"hmrStatus","idle"),u()(this,"hmrStatusChangeListeners",void 0),u()(this,"testRunner",void 0),u()(this,"isFirstLoad",void 0),u()(this,"fileResolver",void 0),u()(this,"transpileJobs",void 0),u()(this,"transpiledModulesByHash",void 0),u()(this,"cachedPaths",void 0),u()(this,"configurations",void 0),u()(this,"stage",void 0),u()(this,"bfsWrapper",{getTranspiledModules:function(){return l.transpiledModules},addModule:function(e){l.addModule(e)},removeModule:function(e){l.removeModule(e)},moveModule:function(e,t){l.moveModule(e,t)},updateModule:function(e){l.updateModule(e)}}),u()(this,"isFile",function(e,t,n){var r,s=n||t,a="function"===typeof s;return null==(r="transpilation"===l.stage?l.transpiledModules[e]||Dr[e]:l.transpiledModules[e])&&a&&l.fileResolver?l.fileResolver.isFile(e).then(function(e){s(null,Boolean(e))}):a?s(null,Boolean(r)):Boolean(r)}),u()(this,"readFileSync",function(e,t,n){var r=n||t,s="function"===typeof r;if(l.transpiledModules[e]){var a=l.transpiledModules[e].module.code;return s?r(null,a):a}if(s&&l.fileResolver)return l.fileResolver.readFile(e).then(function(t){l.addModule({code:t,path:e}),r(t)});var o=new Error("Could not find "+e);if(o.code="ENOENT",s)return r(o);throw o}),u()(this,"setStage",function(e){l.stage=e}),u()(this,"resolveTranspiledModuleAsync",function(){var e=o()(s.a.mark(function e(t,n,r){var a,o,i;return s.a.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return a=n||l.getTranspiledModule(l.modules["/package.json"]),e.prev=1,e.abrupt("return",Promise.resolve(l.resolveTranspiledModule(t,a.module.path,r)));case 5:if(e.prev=5,e.t0=e.catch(1),"module-not-found"!==e.t0.type||!e.t0.isDependency){e.next=10;break}return o=jr(t),i=o.queryPath,e.abrupt("return",l.downloadDependency(e.t0.path,a,i,r));case 10:throw e.t0;case 11:case"end":return e.stop()}},e,null,[[1,5]])}));return function(t,n,r){return e.apply(this,arguments)}}()),u()(this,"setHmrStatus",function(e){l.hmrStatusChangeListeners.forEach(function(t){t(e)}),l.hmrStatus=e}),u()(this,"addStatusHandler",function(e){l.hmrStatusChangeListeners.add(e)}),u()(this,"removeStatusHandler",function(e){l.hmrStatusChangeListeners.delete(e)}),this.id=t,this.preset=n,this.transpiledModules={},this.cachedPaths={},this.transpileJobs={},this.webpackHMR=!1,this.hardReload=!1,this.hmrStatus="idle",this.hmrStatusChangeListeners=new Set,this.isFirstLoad=!0,this.transpiledModulesByHash={},this.configurations={},this.stage="transpilation",this.modules=r,Object.keys(r).forEach(function(e){return l.addModule(r[e])}),this.testRunner=new _s(this),Object(Wn.getGlobal)().manager=this,BrowserFS.configure({fs:"CodeSandboxFS",options:{manager:this.bfsWrapper}},function(){i&&i()}),a.hasFileResolver&&this.setupFileResolver()}return B()(e,[{key:"setupFileResolver",value:function(){var e=new x.Protocol("file-resolver",function(){return!0},window.parent);this.fileResolver={protocol:e,isFile:function(t){return e.sendMessage({m:"isFile",p:t})},readFile:function(t){return e.sendMessage({m:"readFile",p:t})}}}},{key:"resetAllModules",value:function(){this.getTranspiledModules().forEach(function(e){e.resetTranspilation(),e.resetCompilation()})}},{key:"setManifest",value:function(e){var t=this;this.manifest=e||{contents:{},dependencies:[],dependencyDependencies:{},dependencyAliases:{}},Object.keys(this.manifest.contents).forEach(function(e){var n={path:e,code:t.manifest.contents[e].content};if(Ms[e]){var r=JSON.parse(t.manifest.contents[e].content);delete r.browser,n.code=JSON.stringify(r,null,2)}Me(n.code,e)||(n.requires=t.manifest.contents[e].requires),t.addModule(n)}),Ns("Loaded manifest.")}},{key:"evaluateModule",value:function(e){var t=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{force:!1,testGlobals:!1},r=n.force,s=n.testGlobals;if(this.hardReload&&!this.isFirstLoad)return document.location.reload(),{};this.getTranspiledModules().filter(function(e){return e.hmrConfig&&e.hmrConfig.isDirty()}).forEach(function(e){return e.evaluate(t)});var a=this.getTranspiledModule(e);r&&a.compilation&&(a.compilation=null);try{var o=this.evaluateTranspiledModule(a,void 0,{force:r,testGlobals:s});return this.setHmrStatus("idle"),o}finally{this.getTranspiledModules().forEach(function(e){return e.postEvaluate(t)})}}},{key:"evaluateTranspiledModule",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=n.force,s=void 0!==r&&r,a=n.testGlobals,o=void 0!==a&&a;return s&&e.compilation&&(e.compilation=null),e.evaluate(this,{force:s,testGlobals:o},t)}},{key:"addModule",value:function(e){this.transpiledModules[e.path]=this.transpiledModules[e.path]||{module:e,tModules:{}}}},{key:"addTranspiledModule",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";this.transpiledModules[e.path]||this.addModule(e),this.transpiledModules[e.path].module=e;var n=new _r(e,t);return this.transpiledModules[e.path].tModules[t]=n,this.transpiledModulesByHash[n.hash]=n,n}},{key:"getTranspiledModuleByHash",value:function(e){return this.transpiledModulesByHash[e]}},{key:"getTranspiledModule",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",n=this.transpiledModules[e.path];n||this.addModule(e);var r=this.transpiledModules[e.path].tModules[t];return r||(r=this.addTranspiledModule(e,t)),r}},{key:"getTranspiledModulesByModule",value:function(e){return this.transpiledModules[e.path]?Object(An.a)(this.transpiledModules[e.path].tModules):[]}},{key:"getTranspiledModules",value:function(){return Object(An.a)(this.transpiledModulesByHash)}},{key:"removeTranspiledModule",value:function(e){delete this.transpiledModulesByHash[e.hash],delete this.transpiledModules[e.module.path].tModules[e.query]}},{key:"removeModule",value:function(e){var t=this;this.cachedPaths={};var n=this.transpiledModules[e.path];Object(An.a)(n.tModules).forEach(function(e){e.dispose(t),t.removeTranspiledModule(e)}),delete this.transpiledModules[e.path]}},{key:"moveModule",value:function(e,t){this.removeModule(e),this.addModule(Ts({},e,{path:t}))}},{key:"setEnvironmentVariables",value:function(){var e=this;if(this.transpiledModules["/.env"]&&this.preset.hasDotEnv){var t=this.transpiledModules["/.env"].module.code;this.envVariables={};try{t.split("\n").forEach(function(t){var n=t.split("="),r=l()(n),s=r[0],a=r.slice(1);e.envVariables[s]=a.join("=")})}catch(Mo){console.error(Mo)}}}},{key:"transpileModules",value:function(){var e=o()(s.a.mark(function e(t){var n,r,a,o=this,i=arguments;return s.a.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return n=i.length>1&&void 0!==i[1]&&i[1],this.setHmrStatus("check"),this.setEnvironmentVariables(),(r=this.getTranspiledModule(t)).setIsEntry(!0),r.setIsTestFile(n),e.next=8,r.transpile(this);case 8:return a=e.sent,this.getTranspiledModules().forEach(function(e){return e.postTranspile(o)}),e.abrupt("return",a);case 11:case"end":return e.stop()}},e,this)}));return function(t){return e.apply(this,arguments)}}()},{key:"verifyTreeTranspiled",value:function(){var e=this;return Promise.all(this.getTranspiledModules().filter(function(e){return e.shouldTranspile()}).map(function(t){return t.transpile(e)}))}},{key:"clearCompiledCache",value:function(){this.getTranspiledModules().map(function(e){return e.resetCompilation()})}},{key:"getModules",value:function(){return Object(An.a)(this.transpiledModules).map(function(e){return e.module})}},{key:"getAliasedDependencyPath",value:function(e,t){if(!/^(\w|@\w)/.test(e))return e;if(!t.startsWith("/node_modules"))return e;var n=Er(e),r=Er(t.replace("/node_modules/",""));if(this.manifest.dependencyAliases[r]&&this.manifest.dependencyAliases[r][n]){var s=this.manifest.dependencyAliases[r][n];return e.replace(n,s)}return e}},{key:"enableWebpackHMR",value:function(){this.webpackHMR=!0}},{key:"getPresetAliasedPath",value:function(e){return this.preset.getAliasedPath(e).replace(/.*\{\{sandboxRoot\}\}/,"")}},{key:"getModuleDirectories",value:function(){var e=[this.configurations.typescript,this.configurations.jsconfig].find(function(e){return e&&!0!==e.generated});return["node_modules",e&&e.parsed&&e.parsed.compilerOptions&&e.parsed.compilerOptions.baseUrl,this.envVariables.NODE_PATH].filter(Boolean)}},{key:"resolveModuleAsync",value:function(){var e=o()(s.a.mark(function e(t,n){var r,a=this,o=arguments;return s.a.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return r=o.length>2&&void 0!==o[2]?o[2]:["js","jsx","json"],e.abrupt("return",new Promise(function(e){var s=j.dirname(n);void 0===a.cachedPaths[s]&&(a.cachedPaths[s]={});var o,i=a.cachedPaths[s][t];if(i)o=i;else{var l=a.getPresetAliasedPath(t),c=a.getAliasedDependencyPath(l,n),u=Qr[c]||c;if(Ps.indexOf(u)>-1)return a.cachedPaths[s][t]=u,void e(Ds(n,t));try{Hn()(u,{filename:n,extensions:r.map(function(e){return"."+e}),isFile:a.isFile,readFileSync:a.readFileSync,packageFilter:Tr,moduleDirectory:a.getModuleDirectories()},function(r,o){if(r)throw r;a.cachedPaths[s][t]=o,"//empty.js"!==o?a.transpiledModules[o]?e(a.transpiledModules[o].module):a.readFileSync(o,function(t){a.addModule({path:o,code:t}),e(a.transpiledModules[o].module)}):e(Ds(n,t))})}catch(Mo){a.cachedPaths[s]&&a.cachedPaths[s][t]&&delete a.cachedPaths[s][t];var d=u;0!==d.indexOf("/node_modules")&&(d=/^(\w|@\w)/.test(u)?j.join("/node_modules",u):j.join(j.dirname(n),u));var p=d.includes("/node_modules/");if(d=d.replace("/node_modules/",""),!p)throw new $n.a(u,!1,n);var f=Er(d);throw a.manifest.dependencies.find(function(e){return e.name===f})||a.manifest.dependencyDependencies[f]?new $n.a(d,!0,n):new zn.a(d,n)}}e(a.transpiledModules[o].module)}));case 2:case"end":return e.stop()}},e)}));return function(t,n){return e.apply(this,arguments)}}()},{key:"resolveModule",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:["js","jsx","json"],r=j.dirname(t);void 0===this.cachedPaths[r]&&(this.cachedPaths[r]={});var s,a=this.cachedPaths[r][e];if(a&&this.transpiledModules[a])s=a;else{var o=this.getPresetAliasedPath(e),i=this.getAliasedDependencyPath(o,t),l=Qr[i]||i;if(Ps.indexOf(l)>-1)return this.cachedPaths[r][e]=l,Ds(t,e);try{if(s=Hn.a.sync(l,{filename:t,extensions:n.map(function(e){return"."+e}),isFile:this.isFile,readFileSync:this.readFileSync,packageFilter:Tr,moduleDirectory:this.getModuleDirectories()}),this.cachedPaths[r][e]=s,"//empty.js"===s)return Ds(t,e);if(!this.transpiledModules[s])throw new Error("Could not find '".concat(s,"' in local files."))}catch(Mo){this.cachedPaths[r]&&this.cachedPaths[r][e]&&delete this.cachedPaths[r][e];var c=l;0!==c.indexOf("/node_modules")&&(c=/^(\w|@\w)/.test(l)?j.join("/node_modules",l):j.join(j.dirname(t),l));var u=c.includes("/node_modules/");if(c=c.replace("/node_modules/",""),!u)throw new $n.a(l,!1,t);var d=Er(c);throw this.manifest.dependencies.find(function(e){return e.name===d})||this.manifest.dependencyDependencies[d]?new $n.a(c,!0,t):new zn.a(c,t)}}return"//empty.js"===s?Ds(t,e):this.transpiledModules[s].module}},{key:"downloadDependency",value:function(e,t){var n=this,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"",s=arguments.length>3&&void 0!==arguments[3]?arguments[3]:this.preset.ignoredExtensions;return Gr(e,t,this,s).then(function(e){return n.getTranspiledModule(e,r)})}},{key:"updateModule",value:function(e){return this.transpiledModules[e.path].module=e,this.getTranspiledModulesByModule(e).map(function(t){return t.update(e),t})}},{key:"resolveTranspiledModule",value:function(e,t,n,r){var s=this;if(e.startsWith("webpack:"))throw new Error("Cannot resolve webpack path");var a=jr(e),o=a.queryPath,i=a.modulePath;if(r)return this.resolveModuleAsync(i,t,n||this.preset.ignoredExtensions).then(function(e){return s.getTranspiledModule(e,o)});var l=this.resolveModule(i,t,n||this.preset.ignoredExtensions);return this.getTranspiledModule(l,o)}},{key:"resolveTranspiledModulesInDirectory",value:function(e,t){var n=this,r=jr(e),s=r.queryPath,a=r.modulePath,o=j.join(j.dirname(t),a);return Object.keys(this.transpiledModules).filter(function(e){return e.startsWith(o)}).map(function(e){return n.getTranspiledModule(n.transpiledModules[e].module,s)})}},{key:"updateConfigurations",value:function(e){!!this.configurations&&JSON.stringify(e)!==JSON.stringify(this.configurations)&&this.resetAllModules(),this.configurations=e}},{key:"updateData",value:function(){var e=o()(s.a.mark(function e(t){var n,r,a,o,i,l,c,u,d,p=this;return s.a.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return this.transpileJobs={},this.hardReload=!1,this.isFirstLoad=!1,this.modules=t,n=[],r=[],Object.keys(t).forEach(function(e){var s=t[e],a=p.transpiledModules[e];a?a.module.code!==s.code&&(p.cachedPaths={},r.push(s)):(p.cachedPaths={},n.push(s))}),this.getModules().forEach(function(e){e.path.startsWith("/node_modules")||"/var/task/node_modules/browser-resolve/empty.js"===e.path||t[e.path]||e.parent||p.removeModule(e)}),n.forEach(function(e){p.addTranspiledModule(e)}),a=Object(In.a)([].concat(n,r)),(o=a.map(function(e){return p.updateModule(e)})).length>0&&this.configurations.sandbox&&(this.hardReload=this.configurations.sandbox.parsed.hardReloadOnChange),i=this.getTranspiledModules().filter(function(e){return e.hasMissingDependencies&&e.resetTranspilation(),e.errors.length>0||e.hasMissingDependencies}),l=Object(Fn.a)([o,i]),c=Object(In.a)(l),u=c.filter(function(e){return!e.isTestFile}),c.filter(function(e){return e.isTestFile}).forEach(function(e){e.resetTranspilation()}),Ns("Generated update diff, updating ".concat(u.length," modules."),u),e.next=20,Promise.all(u.map(function(e){return e.shouldTranspile()?e.transpile(p):Promise.resolve(!1)}).filter(Boolean));case 20:return d=e.sent,e.abrupt("return",d);case 22:case"end":return e.stop()}},e,this)}));return function(t){return e.apply(this,arguments)}}()},{key:"markHardReload",value:function(){this.setHmrStatus("fail"),this.hardReload=!0}},{key:"serialize",value:function(){var e=o()(s.a.mark(function e(){var t,n,r,a,i,l,c=this,u=arguments;return s.a.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return t=u.length>0&&void 0!==u[0]?u[0]:{optimizeForSize:!0},n=t.entryPath,r=t.optimizeForSize,a={},e.next=4,Promise.all(Object.keys(this.transpiledModules).map(function(e){return Promise.all(Object.keys(c.transpiledModules[e].tModules).map(function(){var t=o()(s.a.mark(function t(n){var o;return s.a.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:if(o=c.transpiledModules[e].tModules[n],!(!c.manifest.contents[o.module.path]||o.module.path.endsWith(".js")&&null==o.module.requires||o.module.downloaded)){t.next=5;break}return t.next=4,o.serialize(r);case 4:a[o.getId()]=t.sent;case 5:case"end":return t.stop()}},t)}));return function(e){return t.apply(this,arguments)}}()))}));case 4:return i=this.getDependencyQuery(),l={},Object.keys(Dr||{}).forEach(function(e){var t=j.dirname(e.replace("/node_modules",""));l[t]=l[t]||[],l[t].push(j.basename(e))}),e.abrupt("return",{transpiledModules:a,cachedPaths:this.cachedPaths,version:wn.SCRIPT_VERSION,timestamp:(new Date).getTime(),configurations:this.configurations,entry:n,meta:l,dependenciesQuery:i});case 8:case"end":return e.stop()}},e,this)}));return function(){return e.apply(this,arguments)}}()},{key:"getDependencyQuery",value:function(){if(!this.manifest||!this.manifest.dependencies)return"";var e={};return this.manifest.dependencies.forEach(function(t){e[t.name]=t.version}),Ss(e)}},{key:"load",value:function(){var e=o()(s.a.mark(function e(t){var n,r,a,o,i,l,c,u,d=this;return s.a.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:try{t&&(this.clearCache(),n=t.transpiledModules,r=t.cachedPaths,a=t.version,o=t.configurations,i=t.dependenciesQuery,l=t.meta,a===wn.SCRIPT_VERSION&&i===this.getDependencyQuery()&&(c={},Object.keys(l).forEach(function(e){l[e].forEach(function(t){c["/node_modules"+e+"/"+t]=!0})}),Dr=c,this.cachedPaths=r,this.configurations=o,u={},Object.keys(n).forEach(function(e){var t=n[e],r=d.addTranspiledModule(t.module,t.query);u[e]=r}),Object.keys(u).forEach(function(e){u[e].load(n[e],u,d)}),Ns("Loaded cache.")))}catch(Mo){0}this.clearCache();case 2:case"end":return e.stop()}},e,this)}));return function(t){return e.apply(this,arguments)}}()},{key:"dispose",value:function(){this.preset&&(this.preset.transpilers.forEach(function(e){e.dispose&&e.dispose()}),this.fileResolver&&this.fileResolver.protocol.dispose())}},{key:"deleteAPICache",value:function(){return function(){try{localStorage.setItem("ignoreCache","true")}catch(Mo){console.warn(Mo)}}(),Dn(this.id)}},{key:"clearCache",value:function(){var e=o()(s.a.mark(function e(){return s.a.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,xn.a.clear();case 3:e.next=8;break;case 5:e.prev=5,e.t0=e.catch(0);case 8:case"end":return e.stop()}},e,null,[[0,5]])}));return function(){return e.apply(this,arguments)}}()},{key:"getTranspilerContext",value:function(){var e=o()(s.a.mark(function e(){var t,n=this;return s.a.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return t={},e.next=3,Promise.all(Array.from(this.preset.transpilers).map(function(e){return e.getTranspilerContext(n).then(function(t){return{name:e.name,data:t}})}));case 3:return e.sent.forEach(function(e){t[e.name]=e.data}),e.abrupt("return",t);case 6:case"end":return e.stop()}},e,this)}));return function(){return e.apply(this,arguments)}}()}]),e}();function As(){for(var e=null;e=document.getElementById("external-css");)e.remove();for(;e=document.getElementById("external-js");)e.remove()}function Is(e){var t=e.match(/\.([^.]*)$/),n=t&&"css"===t[1]||e.includes("fonts.googleapis")?function(e){var t=document.getElementsByTagName("head")[0],n=document.createElement("link");return n.id="external-css",n.rel="stylesheet",n.type="text/css",n.href=e,n.media="all",t.appendChild(n),n}(e):function(e){var t=document.createElement("script");return t.setAttribute("src",e),t.async=!1,t.setAttribute("id","external-js"),document.head.appendChild(t),t}(e);return new Promise(function(e){n.onload=e,n.onerror=e})}var Fs="";function Ls(e){return Hs.apply(this,arguments)}function Hs(){return(Hs=o()(s.a.mark(function e(t){var n;return s.a.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if((n=t.join(""))===Fs){e.next=7;break}return As(),e.next=5,Promise.all(t.map(Is));case 5:return Fs=n,e.abrupt("return",new Promise(function(e){"complete"!==document.readyState?window.addEventListener("load",e):e()}));case 7:return e.abrupt("return",Promise.resolve());case 8:case"end":return e.stop()}},e)}))).apply(this,arguments)}var Ws=n("../../node_modules/lodash-es/pickBy.js"),qs=n("../../node_modules/raw-loader/index.js!./src/sandbox/status-screen/indicator-screen.html"),zs=n.n(qs),Bs=n("../../node_modules/raw-loader/index.js!./src/sandbox/status-screen/loading-screen.html"),$s=n.n(Bs),Us=null,Zs=0;var Js=function(e,t){e.setAttribute("style",t?"position: fixed; top: 0; left: 0; width: 100%; height: 100%; border: none; z-index: 214748366;opacity: 1;transition: opacity 0.15s ease-in;":"position: fixed; top: 10px; left: 10px; height: 45px; width: 45px; border-radius: 2px; border: none; z-index: 214748366; opacity: 0;transition: opacity 0.15s ease-in;")};function Ys(e){return new Promise(function(t){if(Zs=Date.now(),Us)return document.body.appendChild(Us),requestAnimationFrame(function(){Us.style.opacity="1"}),Js(Us,e),void t(Us);var n=document.createElement("iframe");Js(n,e),n.setAttribute("id","frame"),Us=n,document.body.appendChild(n),requestAnimationFrame(function(){n.style.opacity="1"}),n.contentDocument?t(n):document.getElementById("frame")?document.getElementById("frame").onload=function(){t(n)}:t(n)})}function Vs(e,t){return Gs.apply(this,arguments)}function Gs(){return(Gs=o()(s.a.mark(function e(t,n){var r;return s.a.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,Ys(n);case 2:return r=e.sent,!!document.getElementById("frame")||document.body.appendChild(r),r.contentDocument.body.innerHTML=t,e.abrupt("return",r);case 7:case"end":return e.stop()}},e)}))).apply(this,arguments)}var Xs=null,Qs=null,Ks=null;function ea(e){Ks&&Ks.contentDocument&&Ks.contentDocument.getElementsByClassName("text")&&Ks.contentDocument.getElementsByClassName("text").item(0)&&(Ks.contentDocument.getElementsByClassName("text").item(0).textContent=e)}function ta(){Xs=null,Ks=null,function(){try{var e=Date.now()-Zs>1e3?0:1e3;setTimeout(function(){Us&&(Us.style.opacity="0",setTimeout(function(){Us.parentNode&&document.body.removeChild(Us)},500))},e)}catch(Mo){}}(),clearTimeout(Qs),Qs=null}function na(e){var t="undefined"===typeof e.showFullScreen||e.showFullScreen;Ks?Xs&&ea(Xs.text):Qs||(Qs=window.setTimeout(o()(s.a.mark(function e(){return s.a.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if(Ks||!Xs){e.next=4;break}return e.next=3,Vs(t?$s.a:zs.a,t);case 3:Ks=e.sent;case 4:Xs&&ea(Xs.text),Qs=null;case 6:case"end":return e.stop()}},e)})),t?1e3:0)),Xs=e}function ra(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function sa(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?ra(n,!0).forEach(function(t){u()(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ra(n).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function aa(e,t){if(e.length!==t.length)return!1;for(var n=0;n<e.length;n++)if(e[n]!==t[n])return!1;return!0}function oa(e,t,n){Object.keys(e).forEach(function(r){(r.startsWith("".concat(t,"/"))||r===t)&&(e[r.replace(t,n)]="string"===typeof e[r]?e[r].replace(t,n):e[r],delete e[r])})}function ia(e,t,n){var r="".concat(t,"/").concat(n.resolved);oa(e.contents,"/node_modules/".concat(t),"/node_modules/".concat(r)),e.dependencyDependencies[r]=e.dependencyDependencies[t],delete e.dependencyDependencies[t];for(var s=0,a=Object.keys(e.dependencyDependencies);s<a.length;s++){var o=a[s];e.dependencyDependencies[o].parents=e.dependencyDependencies[o].parents.map(function(e){return e===t?r:e})}e.dependencyAliases=e.dependencyAliases||{},n.parents.forEach(function(n){e.dependencyAliases[n]=e.dependencyAliases[n]||{},e.dependencyAliases[n][t]=r}),oa(e.dependencyAliases,t,r)}var la=function(e,t){try{return Mt.intersects(e,t)}catch(Mo){return!1}};function ca(e){var t=e.sort(function(e,t){return e.dependency.name.localeCompare(t.dependency.name)}),n={contents:{},dependencies:t.map(function(e){return e.dependency}),dependencyAliases:{},dependencyDependencies:{}},r=!0,s=!1,a=void 0;try{for(var o,i=t[Symbol.iterator]();!(r=(o=i.next()).done);r=!0){for(var l=o.value,c=function(e){var t=Object.keys(l.dependencyDependencies)[e],r=l.dependencyDependencies[t],s=n.dependencies.find(function(e){return e.name===t});if(s&&!la(s.version,r.semver)&&s.version!==r.resolved&&s.version!==r.semver&&s.name!==l.dependency.name)ia(l,t,r),e=-1;else if(n.dependencyDependencies[t]){var a=n.dependencyDependencies[t];if(a.resolved===r.resolved)a.parents=Object(In.a)([].concat(F()(a.parents),F()(r.parents))),a.entries=Object(In.a)([].concat(F()(a.entries),F()(r.entries)));else if(la(a.semver,r.semver)&&aa(a.entries,r.entries)){var o=Mt.gt(r.resolved,a.resolved)?r:a;n.dependencyDependencies[t]=o,n.dependencyDependencies[t].parents=Object(In.a)([].concat(F()(a.parents),F()(r.parents)))}else ia(l,t,r),e=-1}else n.dependencyDependencies[t]=l.dependencyDependencies[t];u=e},u=0;u<Object.keys(l.dependencyDependencies).length;u++)c(u);n.dependencyAliases=sa({},n.dependencyAliases,{},l.dependencyAliases),n.contents=sa({},n.contents,{},l.contents)}}catch(d){s=!0,a=d}finally{try{r||null==i.return||i.return()}finally{if(s)throw a}}return n}var ua=/\/$|\/{2,}|\*+$/,da="**/";function pa(e,t){if(n=e,ua.test(n))return console.warn("invalidResolutionName"),null;var n,r=function(e){return e.match(/(@[^\/]+\/)?([^\/]+)/g)||[]}(e).pop();return r===e&&(e="".concat(da).concat(r)),{name:r,range:t,globPattern:e,pattern:"".concat(r,"@").concat(t)}}function fa(e){return e?Object.keys(e).map(function(t){return pa(t,e[t])}):[]}var ha=n("../../node_modules/minimatch/minimatch.js"),ma=n.n(ha);function ba(e,t){return va.apply(this,arguments)}function va(){return(va=o()(s.a.mark(function e(t,n){var r;return s.a.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,Ur(t,n,"/package.json");case 2:return r=e.sent,e.abrupt("return",r.code);case 4:case"end":return e.stop()}},e)}))).apply(this,arguments)}function ya(e,t){return ga.apply(this,arguments)}function ga(){return(ga=o()(s.a.mark(function e(t,n){var r;return s.a.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,ba(t,n);case 2:return r=e.sent,e.abrupt("return",JSON.parse(r).version);case 4:case"end":return e.stop()}},e)}))).apply(this,arguments)}function ja(e,t,n,r){var s=r[t];if(s){var a=[e,t].join("/"),o=(s.find(function(e){var t=e.globPattern;return ma()(a,t)})||{}).range;if(o)return Mt.valid(o)?ya(t,o):o}return ya(t,n)}function xa(e,t,n){return wa.apply(this,arguments)}function wa(){return(wa=o()(s.a.mark(function e(t,n,r){var a,i,l,c=arguments;return s.a.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return a=c.length>3&&void 0!==c[3]?c[3]:{},e.next=3,ba(t,n);case 3:return i=e.sent,l=JSON.parse(i),e.next=7,Promise.all(Object.keys(l.dependencies||{}).map(function(){var e=o()(s.a.mark(function e(n){var o,i;return s.a.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if(o=l.dependencies[n],!a[n]){e.next=4;break}return a[n].parents.push(t),e.abrupt("return");case 4:return e.next=6,ja(t,n,o,r);case 6:return i=e.sent,a[n]={semver:o,resolved:i,parents:[t],entries:[]},e.next=10,xa(n,o,r,a);case 10:case"end":return e.stop()}},e)}));return function(t){return e.apply(this,arguments)}}()));case 7:return e.abrupt("return",a);case 8:case"end":return e.stop()}},e)}))).apply(this,arguments)}function ka(e,t,n){return Oa.apply(this,arguments)}function Oa(){return(Oa=o()(s.a.mark(function e(t,n,r){var a,o,i,l;return s.a.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,ba(t,n);case 2:return a=e.sent,o=JSON.parse(a),i={contents:{},dependency:{name:t,version:n},peerDependencies:{},dependencyDependencies:{},dependencyAliases:{}},l={},r.forEach(function(e){l[e.name]=l[e.name]||[],l[e.name].push(e)}),i.peerDependencies=o.peerDependencies||{},e.next=10,xa(t,n,l);case 10:return i.dependencyDependencies=e.sent,i.contents=u()({},"/node_modules/".concat(t,"/package.json"),{content:a}),e.abrupt("return",i);case 13:case"end":return e.stop()}},e)}))).apply(this,arguments)}function _a(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function Sa(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?_a(n,!0).forEach(function(t){u()(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):_a(n).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function Ea(e,t,n){return Ta.apply(this,arguments)}function Ta(){return(Ta=o()(s.a.mark(function e(t,n,r){var a,o,i;return s.a.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return a=fa(n),o=Sa({"node-libs-browser":"2.2.0"},t),e.next=4,Promise.all(Object.keys(o).map(function(e){return ka(e,o[e],a)}));case 4:return i=e.sent,e.abrupt("return",ca(i));case 6:case"end":return e.stop()}},e)}))).apply(this,arguments)}var Pa=n("../common/lib/utils/dependencies.js"),Ma=60,Ca=y()("cs:sandbox:packager"),Da=1,Na="https://d1jyvh0kxilfa7.cloudfront.net",Ra="https://aiwi8rnkp5.execute-api.eu-west-1.amazonaws.com/prod/packages",Aa="https://drq28qbjmc.execute-api.eu-west-1.amazonaws.com/prod/packages";function Ia(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"GET";fetch(e,{method:t}).then(function(){}).catch(function(){})}function Fa(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"GET";return fetch(e,{method:t}).then(function(){var e=o()(s.a.mark(function e(t){var n,r;return s.a.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if(t.ok){e.next=8;break}return n=new Error(t.statusText||""+t.status),e.next=4,t.json();case 4:throw r=e.sent,n.response=r,n.statusCode=t.status,n;case 8:return e.abrupt("return",t);case 9:case"end":return e.stop()}},e)}));return function(t){return e.apply(this,arguments)}}()).then(function(e){return e.json()})}function La(e){return Ha.apply(this,arguments)}function Ha(){return(Ha=o()(s.a.mark(function e(t){var n,r,a,o=arguments;return s.a.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:n=o.length>1&&void 0!==o[1]?o[1]:"GET",r=0;case 2:return Ca("Trying to call packager for ".concat(r," time")),e.prev=4,e.next=7,Fa(t,n);case 7:return a=e.sent,e.abrupt("return",a);case 11:if(e.prev=11,e.t0=e.catch(4),!e.t0.response||504===e.t0.statusCode){e.next=15;break}throw new Error(e.t0.response.error);case 15:if(!(r<Ma)){e.next=21;break}return r+=1,e.next=19,Se(2e3);case 19:e.next=22;break;case 21:throw e.t0;case 22:e.next=2;break;case 24:case"end":return e.stop()}},e,null,[[4,11]])}))).apply(this,arguments)}function Wa(e){return"v".concat(Da,"/combinations/").concat(Object.keys(e).sort().map(function(t){return"".concat(encodeURIComponent(t.replace("/","-").replace("@","")),"@").concat(e[t])}).join("%2B"),".json")}function qa(e){var t={};return Object.keys(e).forEach(function(n){var r=e[n].split(" "),s=H()(r,1)[0];t[n]=s}),t}function za(e,t){return Ba.apply(this,arguments)}function Ba(){return(Ba=o()(s.a.mark(function e(t,n){var r,a,o,i,l,c;return s.a.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,Object(Pa.getAbsoluteDependencies)(qa(t));case 2:return r=e.sent,a=Ss(r),o=Wa(r),na({type:"loading",text:"Downloading Dependencies...",showFullScreen:n}),Ia("".concat(Ra,"/").concat(a),"POST"),e.prev=7,e.next=10,Fa("".concat(Na,"/").concat(o));case 10:return i=e.sent,e.abrupt("return",i);case 14:return e.prev=14,e.t0=e.catch(7),na({type:"loading",text:"Resolving Dependencies...",showFullScreen:n}),e.next=19,La("".concat(Aa,"/").concat(a),"POST");case 19:return l=e.sent,c=l.url,na({type:"loading",text:"Downloading Dependencies...",showFullScreen:n}),e.abrupt("return",La("".concat(Na,"/").concat(c)));case 23:case"end":return e.stop()}},e,null,[[7,14]])}))).apply(this,arguments)}function $a(e,t,n){return Ua.apply(this,arguments)}function Ua(){return(Ua=o()(s.a.mark(function e(t,n,r){var a;return s.a.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if(0===Object.keys(t).length){e.next=14;break}return e.prev=1,e.next=4,za(t,r);case 4:return a=e.sent,r&&na({type:"loading",text:"Transpiling Modules...",showFullScreen:r}),e.abrupt("return",a);case 9:throw e.prev=9,e.t0=e.catch(1),e.t0.message="Could not fetch dependencies, please try again in a couple seconds: ".concat(e.t0.message),Object(x.dispatch)(x.actions.notifications.show(e.t0.message,"error")),e.t0;case 14:return e.abrupt("return",!1);case 15:case"end":return e.stop()}},e,null,[[1,9]])}))).apply(this,arguments)}var Za=null,Ja=null;function Ya(e){return Object.keys(e).some(function(t){return e[t].includes("http")})}function Va(e){return Ga.apply(this,arguments)}function Ga(){return(Ga=o()(s.a.mark(function e(t){var n,r,a,o,i,l,c,u,d,p,f,h,m,b=arguments;return s.a.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if(n=b.length>1&&void 0!==b[1]?b[1]:{},r=n.disableExternalConnection,a=void 0!==r&&r,o=n.resolutions,i=void 0===o?void 0:o,l=n.showFullScreen,c=void 0!==l&&l,u=!1,0===Object.keys(t).length){e.next=17;break}if(d=Object(Ws.a)(t,function(e,t){return!(t.includes&&t.includes("@types"))}),p=Ss(d),Za===p){e.next=15;break}return u=!0,f=a||Ya(d),h=f?Ea:$a,e.next=11,h(d,i,c);case 11:m=e.sent,Za=p,Ja=m,na({type:"loading",text:"Transpiling Modules...",showFullScreen:c});case 15:e.next=18;break;case 17:Ja=null;case 18:return e.abrupt("return",{manifest:Ja,isNewCombination:u});case 19:case"end":return e.stop()}},e)}))).apply(this,arguments)}var Xa=n("../../node_modules/raw-loader/index.js!./src/sandbox/status-screen/run-on-click-screen.html"),Qa=n.n(Xa);function Ka(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function eo(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Ka(n,!0).forEach(function(t){u()(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Ka(n).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}n.d(t,"areActionsEnabled",function(){return ao}),n.d(t,"getCurrentManager",function(){return oo}),n.d(t,"getHTMLParts",function(){return io}),n.d(t,"default",function(){return Po});var to=!1,no=null,ro=!1,so=y()("cs:compiler");function ao(){return ro}function oo(){return no}function io(e){if(e.includes("<body>")){var t=e.match(/<head>([\s\S]*)<\/head>/m),n=e.match(/<body>([\s\S]*)<\/body>/m),r=t&&t[1]?t[1]:"";return{body:n&&n[1]?n[1]:e,head:r}}return{head:"",body:e}}function lo(e,t){var n=e.testRunner.findTests(t);Object(x.dispatch)({type:"test",event:"test_count",count:n.length})}var co=!0,uo=!1,po=null,fo=null,ho=0,mo=0,bo={"@vue/cli-plugin-babel":"@vue/babel-preset-app"},vo=["redux-devtools","redux-devtools-dock-monitor","redux-devtools-log-monitor","redux-logger","enzyme","react-addons-test-utils","react-test-renderer","identity-obj-proxy"],yo=["node-libs-browser","react-scripts","react-scripts-ts","parcel-bundler","babel-plugin-check-es2015-constants","babel-plugin-external-helpers","babel-plugin-inline-replace-variables","babel-plugin-syntax-async-functions","babel-plugin-syntax-async-generators","babel-plugin-syntax-class-constructor-call","babel-plugin-syntax-class-properties","babel-plugin-syntax-decorators","babel-plugin-syntax-do-expressions","babel-plugin-syntax-exponentiation-operator","babel-plugin-syntax-export-extensions","babel-plugin-syntax-flow","babel-plugin-syntax-function-bind","babel-plugin-syntax-function-sent","babel-plugin-syntax-jsx","babel-plugin-syntax-object-rest-spread","babel-plugin-syntax-trailing-function-commas","babel-plugin-transform-async-functions","babel-plugin-transform-async-to-generator","babel-plugin-transform-async-to-module-method","babel-plugin-transform-class-constructor-call","babel-plugin-transform-class-properties","babel-plugin-transform-decorators","babel-plugin-transform-decorators-legacy","babel-plugin-transform-do-expressions","babel-plugin-transform-es2015-arrow-functions","babel-plugin-transform-es2015-block-scoped-functions","babel-plugin-transform-es2015-block-scoping","babel-plugin-transform-es2015-classes","babel-plugin-transform-es2015-computed-properties","babel-plugin-transform-es2015-destructuring","babel-plugin-transform-es2015-duplicate-keys","babel-plugin-transform-es2015-for-of","babel-plugin-transform-es2015-function-name","babel-plugin-transform-es2015-instanceof","babel-plugin-transform-es2015-literals","babel-plugin-transform-es2015-modules-amd","babel-plugin-transform-es2015-modules-commonjs","babel-plugin-transform-es2015-modules-systemjs","babel-plugin-transform-es2015-modules-umd","babel-plugin-transform-es2015-object-super","babel-plugin-transform-es2015-parameters","babel-plugin-transform-es2015-shorthand-properties","babel-plugin-transform-es2015-spread","babel-plugin-transform-es2015-sticky-regex","babel-plugin-transform-es2015-template-literals","babel-plugin-transform-es2015-typeof-symbol","babel-plugin-transform-es2015-unicode-regex","babel-plugin-transform-es3-member-expression-literals","babel-plugin-transform-es3-property-literals","babel-plugin-transform-es5-property-mutators","babel-plugin-transform-eval","babel-plugin-transform-exponentiation-operator","babel-plugin-transform-export-extensions","babel-plugin-transform-flow-comments","babel-plugin-transform-flow-strip-types","babel-plugin-transform-function-bind","babel-plugin-transform-jscript","babel-plugin-transform-object-assign","babel-plugin-transform-object-rest-spread","babel-plugin-transform-object-set-prototype-of-to-assign","babel-plugin-transform-proto-to-assign","babel-plugin-transform-react-constant-elements","babel-plugin-transform-react-display-name","babel-plugin-transform-react-inline-elements","babel-plugin-transform-react-jsx","babel-plugin-transform-react-jsx-compat","babel-plugin-transform-react-jsx-self","babel-plugin-transform-react-jsx-source","babel-plugin-transform-regenerator","babel-plugin-transform-runtime","babel-plugin-transform-strict-mode","babel-plugin-undeclared-variables-check","babel-plugin-dynamic-import-node","babel-plugin-detective","babel-plugin-transform-prevent-infinite-loops","babel-plugin-transform-vue-jsx","flow-bin"].concat(["babel-preset-env","babel-preset-latest","babel-preset-es2015","babel-preset-es2015-loose","babel-preset-es2016","babel-preset-es2017","babel-preset-react","babel-preset-stage-0","babel-preset-stage-1","babel-preset-stage-2","babel-preset-stage-3"]);function go(e,t,n){var r=e.dependencies,s=void 0===r?{}:r,a=e.peerDependencies,o=void 0===a?{}:a,i=e.devDependencies,c=void 0===i?{}:i,u=eo({},o),d=[].concat(vo);n&&n.babel&&n.babel.parsed&&(p()(n.babel.parsed.presets||[]).filter(function(e){return"string"===typeof e}).forEach(function(e){var t=e.split("/"),n=l()(t),r=n[0],s=n.slice(1),a=e.startsWith("@")?r+"/babel-preset-"+s.join("/"):"babel-preset-".concat(e);d.push(e),d.push(a)}),p()(n.babel.parsed.plugins||[]).filter(function(e){return"string"===typeof e}).forEach(function(e){var t=e.split("/"),n=l()(t),r=n[0],s=n.slice(1),a=e.startsWith("@")?r+"/babel-plugin-"+s.join("/"):"babel-plugin-".concat(e);d.push(e),d.push(a)})),Object.keys(s).forEach(function(e){var t=bo[e]||e;"reason-react"!==e&&(u[t]=s[e])}),Object.keys(c).forEach(function(e){var t=bo[e]||e;if(d.indexOf(t)>-1){if("@vue/babel-preset-app"===t&&c[e].startsWith("^3"))return void(u[t]="3.6.0");u[t]=c[e]}});var f=n.customTemplate&&n.customTemplate.parsed&&n.customTemplate.parsed.sandpack||{},h=null==f.preInstalledDependencies?yo:f.preInstalledDependencies;return"reason"===t.name&&(u=eo({},u,{"@jaredly/bs-core":"3.0.0-alpha.2","@jaredly/reason-react":"0.3.4"})),Object(g.isBabel7)(s,c)?u["@babel/runtime"]=u["@babel/runtime"]||"7.3.1":u["babel-runtime"]=u["babel-runtime"]||"6.26.0",u.csbbust="1.0.0",h.forEach(function(e){u[e]&&delete u[e]}),u}function jo(e,t,n,r,s,a,o){return xo.apply(this,arguments)}function xo(){return(xo=o()(s.a.mark(function e(t,n,r,a,o,i,l){var c;return s.a.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if(c=!1,no&&no.id===t||(c=!0,no=new Rs(t,gn(n),r,{hasFileResolver:l})),(i||c)&&no.setManifest(a),!co||!c){e.next=6;break}return e.next=6,Nn(no);case 6:return no.updateConfigurations(o),e.next=9,no.preset.setup(no);case 9:return e.abrupt("return",no.updateData(r).then(function(e){return mo=e.length,e}));case 10:case"end":return e.stop()}},e)}))).apply(this,arguments)}function wo(){var e=function(){var e=document.body,t=document.documentElement;return Math.max(e.scrollHeight,e.offsetHeight,t.clientHeight,t.scrollHeight,t.offsetHeight)}();ho!==e&&document.body&&Object(x.dispatch)({type:"resize",height:e}),ho=e}function ko(e){return Oo.apply(this,arguments)}function Oo(){return(Oo=o()(s.a.mark(function e(t){var n,r,a,i,l,c,u,d,p,f,m,v,y,g,w,_,S,E,P,N,R,I,F,L,H,W,q,z,B,$,U,Z,J,Y,V,G,X,Q,K,ee,te,ne,re,se,ae,oe;return s.a.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:n=t.sandboxId,r=t.modules,a=t.externalResources,i=t.hasActions,l=t.isModuleView,c=void 0!==l&&l,u=t.template,d=t.entry,p=t.showOpenInCodeSandbox,f=void 0!==p&&p,m=t.skipEval,v=void 0!==m&&m,y=t.hasFileResolver,g=void 0!==y&&y,w=t.disableDependencyPreprocessing,_=void 0!==w&&w,S=t.showFullScreen,void 0!==S&&S,Object(x.dispatch)({type:"start"}),E=Date.now();try{Object(O.inject)(),Object(x.clearErrorTransformers)(),k()(),Object(O.unmount)(!(!no||!no.webpackHMR)||uo)}catch(F){console.error(F)}if(uo=!1,ro=i,P=null,e.prev=7,N=b()(u),R=h()(u,N.configurationFiles,function(e){return r[e]}),!(I=Object.keys(R).map(function(e){return R[e]}).filter(function(e){return e.error})).length){e.next=15;break}throw(F=new Error("We weren't able to parse: '".concat(I[0].path,"': ").concat(I[0].error.message))).fileName=I[0].path,F;case 15:if(r["/package.json"]){e.next=18;break}throw new Error("Could not find package.json");case 18:return L=R.package.parsed,Object(x.dispatch)({type:"status",status:"installing-dependencies"}),H=go(L,N,R),e.next=23,Va(H,{disableExternalConnection:_,resolutions:L.resolutions,showFullScreen:co});case 23:return W=e.sent,q=W.manifest,(z=W.isNewCombination)&&!co&&(no&&no.dispose(),no=null),B=Date.now(),e.next=30,jo(n,u,r,q,R,z,g);case 30:if(e.t0=e.sent,e.t0){e.next=33;break}e.t0=[];case 33:if($=e.t0,U=N.getEntries(R),Z=c?d:U.find(function(e){return Boolean(r[e])})){e.next=38;break}throw new Error("Could not find entry file: ".concat(U[0],". You can specify one in package.json by defining a `main` property."));case 38:return J=Object(j.absolute)(Z),P=r[J],Object(x.dispatch)({type:"status",status:"transpiling"}),no.setStage("transpilation"),e.next=44,no.verifyTreeTranspiled();case 44:return e.next=46,no.transpileModules(P);case 46:if(so("Transpilation time ".concat(Date.now()-B,"ms")),Object(x.dispatch)({type:"status",status:"evaluating"}),no.setStage("evaluation"),v){e.next=86;break}if(ta(),e.prev=51,!(co&&localStorage.getItem("running")&&Date.now()-+localStorage.getItem("running")>8e3)){e.next=56;break}return localStorage.removeItem("running"),new Promise(o()(s.a.mark(function e(){return s.a.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,Vs(Qa.a);case 2:e.sent.contentDocument.body.addEventListener("click",function(){document.location.reload()});case 4:case"end":return e.stop()}},e)}))),e.abrupt("return");case 56:localStorage.setItem("running",""+Date.now()),e.next=61;break;case 59:e.prev=59,e.t1=e.catch(51);case 61:return no.preset.preEvaluate(no,$),no.webpackHMR||(Y=N.getHTMLEntries(R).find(function(e){return Boolean(r[e])}),V=r[Y],G=io(V&&V.code?V.code:"vue-cli"===u?'<div id="app"></div>':'<div id="root"></div>'),X=G.head,Q=G.body,po&&po!==X&&document.location.reload(),no&&fo&&fo!==Q&&no.clearCompiledCache(),no.preset.htmlDisabled&&co||(document.body.innerHTML=Q),fo=Q,po=X),K=Date.now(),e.next=66,Ls(a);case 66:if(so("Loaded external resources in "+(Date.now()-K)+"ms"),ee=Date.now(),te=document.body.innerHTML,ne=no.evaluateModule(P,{force:c}),so("Evaluation time: ".concat(Date.now()-ee,"ms")),re=!no.preset.htmlDisabled&&te!==document.body.innerHTML,!c||re||P.path.endsWith(".html")){e.next=86;break}if(!(P.code&&P.code.includes("React"))||!ne){e.next=86;break}if(0!==M().length){e.next=84;break}return e.prev=76,e.next=79,T(D);case 79:e.next=84;break;case 81:e.prev=81,e.t2=e.catch(76),console.log("Couldn't load all boilerplates: "+e.t2.message);case 84:if(se=C(P))try{se.module.default(ne)}catch(F){console.error(F)}case 86:return e.next=88,no.preset.teardown(no,$);case 88:to||no.preset.htmlDisabled||(setInterval(wo,5e3),to=!0),f&&A(r),so("Total time: ".concat(Date.now()-E,"ms")),Object(x.dispatch)({type:"success"}),Mn(n,P,no,mo,co),setTimeout(function(){try{lo(no,r)}catch(F){0}},600),e.next=110;break;case 96:if(e.prev=96,e.t3=e.catch(7),console.log("Error in sandbox:"),console.error(e.t3),!no){e.next=105;break}if(no.clearCache(),!co||0!==mo){e.next=105;break}return e.next=105,Dn(no.id);case 105:co&&Object(O.inject)(),(ae=new Event("error")).error=e.t3,window.dispatchEvent(ae),uo=!0;case 110:e.prev=110;try{setTimeout(function(){localStorage.removeItem("running")},600)}catch(F){}if(!no){e.next=122;break}return e.t4=eo,e.t5={},e.next=117,no.serialize({optimizeForSize:!1});case 117:e.t6=e.sent,delete(oe=(0,e.t4)(e.t5,e.t6)).cachedPaths,oe.entry=P?P.path:null,Object(x.dispatch)({type:"state",state:oe});case 122:return e.finish(110);case 123:co=!1,Object(x.dispatch)({type:"status",status:"idle"}),Object(x.dispatch)({type:"done",compilatonError:uo}),"function"===typeof window.__puppeteer__&&window.__puppeteer__("done");case 127:case"end":return e.stop()}},e,null,[[7,96,110,123],[51,59],[76,81]])}))).apply(this,arguments)}!function(){var e=window.document.close;window.document.close=function(){try{for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];e.call(document,n)}finally{Object(O.inject)(),Object(x.reattach)()}}}(),Object(O.inject)();var _o=[],So=!1;function Eo(){return To.apply(this,arguments)}function To(){return(To=o()(s.a.mark(function e(){var t;return s.a.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if(!_o.length){e.next=7;break}return t=_o.pop(),So=!0,e.next=5,ko(t);case 5:So=!1,Eo();case 7:case"end":return e.stop()}},e)}))).apply(this,arguments)}function Po(e){_o[0]=e,So||Eo()}},"./src/sandbox/eval/presets/reason/reason-remap.js":function(e,t){e.exports={"stdlib/reasonReact":"@jaredly/reason-react/lib/js/src/ReasonReact.js","stdlib/reasonReactOptimizedCreateClass":"@jaredly/reason-react/lib/js/src/ReasonReactOptimizedCreateClass.js","stdlib/reactEventRe":"@jaredly/reason-react/lib/js/src/ReactEventRe.js","stdlib/reactDOMServerRe":"@jaredly/reason-react/lib/js/src/ReactDOMServerRe.js","stdlib/reactDOMRe":"@jaredly/reason-react/lib/js/src/ReactDOMRe.js","stdlib/belt_MutableSet":"@jaredly/bs-core/lib/js/belt_MutableSet.js","stdlib/belt_MutableStack":"@jaredly/bs-core/lib/js/belt_MutableStack.js","stdlib/js_unsafe":"@jaredly/bs-core/lib/js/js_unsafe.js","stdlib/caml_string":"@jaredly/bs-core/lib/js/caml_string.js","stdlib/belt_internalMapString":"@jaredly/bs-core/lib/js/belt_internalMapString.js","stdlib/belt_Id":"@jaredly/bs-core/lib/js/belt_Id.js","stdlib/caml_module":"@jaredly/bs-core/lib/js/caml_module.js","stdlib/js_internal":"@jaredly/bs-core/lib/js/js_internal.js","stdlib/char":"@jaredly/bs-core/lib/js/char.js","stdlib/js":"@jaredly/bs-core/lib/js/js.js","stdlib/caml_gc":"@jaredly/bs-core/lib/js/caml_gc.js","stdlib/js_null":"@jaredly/bs-core/lib/js/js_null.js","stdlib/belt_HashMapString":"@jaredly/bs-core/lib/js/belt_HashMapString.js","stdlib/int64":"@jaredly/bs-core/lib/js/int64.js","stdlib/sort":"@jaredly/bs-core/lib/js/sort.js","stdlib/belt_SortArrayInt":"@jaredly/bs-core/lib/js/belt_SortArrayInt.js","stdlib/caml_basic":"@jaredly/bs-core/lib/js/caml_basic.js","stdlib/js_result":"@jaredly/bs-core/lib/js/js_result.js","stdlib/caml_utils":"@jaredly/bs-core/lib/js/caml_utils.js","stdlib/js_promise":"@jaredly/bs-core/lib/js/js_promise.js","stdlib/js_obj":"@jaredly/bs-core/lib/js/js_obj.js","stdlib/belt_Map":"@jaredly/bs-core/lib/js/belt_Map.js","stdlib/js_console":"@jaredly/bs-core/lib/js/js_console.js","stdlib/caml_backtrace":"@jaredly/bs-core/lib/js/caml_backtrace.js","stdlib/oo":"@jaredly/bs-core/lib/js/oo.js","stdlib/caml_hash":"@jaredly/bs-core/lib/js/caml_hash.js","stdlib/belt_SortArray":"@jaredly/bs-core/lib/js/belt_SortArray.js","stdlib/random":"@jaredly/bs-core/lib/js/random.js","stdlib/stream":"@jaredly/bs-core/lib/js/stream.js","stdlib/belt_SetDict":"@jaredly/bs-core/lib/js/belt_SetDict.js","stdlib/caml_int32":"@jaredly/bs-core/lib/js/caml_int32.js","stdlib/format":"@jaredly/bs-core/lib/js/format.js","stdlib/stringLabels":"@jaredly/bs-core/lib/js/stringLabels.js","stdlib/belt_MutableSetString":"@jaredly/bs-core/lib/js/belt_MutableSetString.js","stdlib/stdLabels":"@jaredly/bs-core/lib/js/stdLabels.js","stdlib/caml_lexer":"@jaredly/bs-core/lib/js/caml_lexer.js","stdlib/printf":"@jaredly/bs-core/lib/js/printf.js","stdlib/unixLabels":"@jaredly/bs-core/lib/js/unixLabels.js","stdlib/bs_obj":"@jaredly/bs-core/lib/js/bs_obj.js","stdlib/moreLabels":"@jaredly/bs-core/lib/js/moreLabels.js","stdlib/js_mapperRt":"@jaredly/bs-core/lib/js/js_mapperRt.js","stdlib/belt_Set":"@jaredly/bs-core/lib/js/belt_Set.js","stdlib/js_types":"@jaredly/bs-core/lib/js/js_types.js","stdlib/caml_oo":"@jaredly/bs-core/lib/js/caml_oo.js","stdlib/belt_internalMapInt":"@jaredly/bs-core/lib/js/belt_internalMapInt.js","stdlib/pervasives":"@jaredly/bs-core/lib/js/pervasives.js","stdlib/scanf":"@jaredly/bs-core/lib/js/scanf.js","stdlib/std_exit":"@jaredly/bs-core/lib/js/std_exit.js","stdlib/belt":"@jaredly/bs-core/lib/js/belt.js","stdlib/caml_parser":"@jaredly/bs-core/lib/js/caml_parser.js","stdlib/js_cast":"@jaredly/bs-core/lib/js/js_cast.js","stdlib/belt_internalAVLset":"@jaredly/bs-core/lib/js/belt_internalAVLset.js","stdlib/belt_HashSetInt":"@jaredly/bs-core/lib/js/belt_HashSetInt.js","stdlib/belt_MutableMapString":"@jaredly/bs-core/lib/js/belt_MutableMapString.js","stdlib/caml_array":"@jaredly/bs-core/lib/js/caml_array.js","stdlib/belt_MutableSetInt":"@jaredly/bs-core/lib/js/belt_MutableSetInt.js","stdlib/digest":"@jaredly/bs-core/lib/js/digest.js","stdlib/marshal":"@jaredly/bs-core/lib/js/marshal.js","stdlib/belt_List":"@jaredly/bs-core/lib/js/belt_List.js","stdlib/caml_weak":"@jaredly/bs-core/lib/js/caml_weak.js","stdlib/js_string":"@jaredly/bs-core/lib/js/js_string.js","stdlib/callback":"@jaredly/bs-core/lib/js/callback.js","stdlib/queue":"@jaredly/bs-core/lib/js/queue.js","stdlib/camlinternalMod":"@jaredly/bs-core/lib/js/camlinternalMod.js","stdlib/caml_bytes":"@jaredly/bs-core/lib/js/caml_bytes.js","stdlib/camlinternalFormatBasics":"@jaredly/bs-core/lib/js/camlinternalFormatBasics.js","stdlib/belt_MutableMap":"@jaredly/bs-core/lib/js/belt_MutableMap.js","stdlib/belt_internalSetInt":"@jaredly/bs-core/lib/js/belt_internalSetInt.js","stdlib/belt_Array":"@jaredly/bs-core/lib/js/belt_Array.js","stdlib/caml_io":"@jaredly/bs-core/lib/js/caml_io.js","stdlib/camlinternalLazy":"@jaredly/bs-core/lib/js/camlinternalLazy.js","stdlib/gc":"@jaredly/bs-core/lib/js/gc.js","stdlib/belt_HashSetString":"@jaredly/bs-core/lib/js/belt_HashSetString.js","stdlib/belt_internalBuckets":"@jaredly/bs-core/lib/js/belt_internalBuckets.js","stdlib/belt_HashMapInt":"@jaredly/bs-core/lib/js/belt_HashMapInt.js","stdlib/parsing":"@jaredly/bs-core/lib/js/parsing.js","stdlib/js_list":"@jaredly/bs-core/lib/js/js_list.js","stdlib/belt_MutableMapInt":"@jaredly/bs-core/lib/js/belt_MutableMapInt.js","stdlib/bs_string":"@jaredly/bs-core/lib/js/bs_string.js","stdlib/caml_primitive":"@jaredly/bs-core/lib/js/caml_primitive.js","stdlib/belt_internalSetString":"@jaredly/bs-core/lib/js/belt_internalSetString.js","stdlib/js_boolean":"@jaredly/bs-core/lib/js/js_boolean.js","stdlib/list":"@jaredly/bs-core/lib/js/list.js","stdlib/js_float":"@jaredly/bs-core/lib/js/js_float.js","stdlib/js_int":"@jaredly/bs-core/lib/js/js_int.js","stdlib/unix":"@jaredly/bs-core/lib/js/unix.js","stdlib/js_int64":"@jaredly/bs-core/lib/js/js_int64.js","stdlib/set":"@jaredly/bs-core/lib/js/set.js","stdlib/array":"@jaredly/bs-core/lib/js/array.js","stdlib/arrayLabels":"@jaredly/bs-core/lib/js/arrayLabels.js","stdlib/bytes":"@jaredly/bs-core/lib/js/bytes.js","stdlib/caml_queue":"@jaredly/bs-core/lib/js/caml_queue.js","stdlib/caml_missing_polyfill":"@jaredly/bs-core/lib/js/caml_missing_polyfill.js","stdlib/lazy":"@jaredly/bs-core/lib/js/lazy.js","stdlib/node":"@jaredly/bs-core/lib/js/node.js","stdlib/string":"@jaredly/bs-core/lib/js/string.js","stdlib/block":"@jaredly/bs-core/lib/js/block.js","stdlib/js_math":"@jaredly/bs-core/lib/js/js_math.js","stdlib/js_dict":"@jaredly/bs-core/lib/js/js_dict.js","stdlib/arg":"@jaredly/bs-core/lib/js/arg.js","stdlib/belt_MapInt":"@jaredly/bs-core/lib/js/belt_MapInt.js","stdlib/belt_internalAVLtree":"@jaredly/bs-core/lib/js/belt_internalAVLtree.js","stdlib/belt_HashMap":"@jaredly/bs-core/lib/js/belt_HashMap.js","stdlib/js_global":"@jaredly/bs-core/lib/js/js_global.js","stdlib/belt_MutableQueue":"@jaredly/bs-core/lib/js/belt_MutableQueue.js","stdlib/js_null_undefined":"@jaredly/bs-core/lib/js/js_null_undefined.js","stdlib/js_option":"@jaredly/bs-core/lib/js/js_option.js","stdlib/caml_format":"@jaredly/bs-core/lib/js/caml_format.js","stdlib/printexc":"@jaredly/bs-core/lib/js/printexc.js","stdlib/genlex":"@jaredly/bs-core/lib/js/genlex.js","stdlib/caml_exceptions":"@jaredly/bs-core/lib/js/caml_exceptions.js","stdlib/weak":"@jaredly/bs-core/lib/js/weak.js","stdlib/sys":"@jaredly/bs-core/lib/js/sys.js","stdlib/filename":"@jaredly/bs-core/lib/js/filename.js","stdlib/caml_obj":"@jaredly/bs-core/lib/js/caml_obj.js","stdlib/belt_MapDict":"@jaredly/bs-core/lib/js/belt_MapDict.js","stdlib/complex":"@jaredly/bs-core/lib/js/complex.js","stdlib/js_exn":"@jaredly/bs-core/lib/js/js_exn.js","stdlib/hashtbl":"@jaredly/bs-core/lib/js/hashtbl.js","stdlib/belt_MapString":"@jaredly/bs-core/lib/js/belt_MapString.js","stdlib/js_json":"@jaredly/bs-core/lib/js/js_json.js","stdlib/js_vector":"@jaredly/bs-core/lib/js/js_vector.js","stdlib/js_date":"@jaredly/bs-core/lib/js/js_date.js","stdlib/belt_SetInt":"@jaredly/bs-core/lib/js/belt_SetInt.js","stdlib/caml_sys":"@jaredly/bs-core/lib/js/caml_sys.js","stdlib/js_nativeint":"@jaredly/bs-core/lib/js/js_nativeint.js","stdlib/js_undefined":"@jaredly/bs-core/lib/js/js_undefined.js","stdlib/caml_int64":"@jaredly/bs-core/lib/js/caml_int64.js","stdlib/caml_md5":"@jaredly/bs-core/lib/js/caml_md5.js","stdlib/caml_oo_curry":"@jaredly/bs-core/lib/js/caml_oo_curry.js","stdlib/belt_SetString":"@jaredly/bs-core/lib/js/belt_SetString.js","stdlib/caml_float":"@jaredly/bs-core/lib/js/caml_float.js","stdlib/bigarray":"@jaredly/bs-core/lib/js/bigarray.js","stdlib/caml_builtin_exceptions":"@jaredly/bs-core/lib/js/caml_builtin_exceptions.js","stdlib/obj":"@jaredly/bs-core/lib/js/obj.js","stdlib/js_typed_array":"@jaredly/bs-core/lib/js/js_typed_array.js","stdlib/map":"@jaredly/bs-core/lib/js/map.js","stdlib/int32":"@jaredly/bs-core/lib/js/int32.js","stdlib/listLabels":"@jaredly/bs-core/lib/js/listLabels.js","stdlib/belt_Range":"@jaredly/bs-core/lib/js/belt_Range.js","stdlib/belt_Option":"@jaredly/bs-core/lib/js/belt_Option.js","stdlib/js_array":"@jaredly/bs-core/lib/js/js_array.js","stdlib/camlinternalFormat":"@jaredly/bs-core/lib/js/camlinternalFormat.js","stdlib/nativeint":"@jaredly/bs-core/lib/js/nativeint.js","stdlib/lexing":"@jaredly/bs-core/lib/js/lexing.js","stdlib/js_primitive":"@jaredly/bs-core/lib/js/js_primitive.js","stdlib/camlinternalOO":"@jaredly/bs-core/lib/js/camlinternalOO.js","stdlib/belt_SortArrayString":"@jaredly/bs-core/lib/js/belt_SortArrayString.js","stdlib/buffer":"@jaredly/bs-core/lib/js/buffer.js","stdlib/bytesLabels":"@jaredly/bs-core/lib/js/bytesLabels.js","stdlib/belt_internalBucketsType":"@jaredly/bs-core/lib/js/belt_internalBucketsType.js","stdlib/curry":"@jaredly/bs-core/lib/js/curry.js","stdlib/belt_internalSetBuckets":"@jaredly/bs-core/lib/js/belt_internalSetBuckets.js","stdlib/belt_HashSet":"@jaredly/bs-core/lib/js/belt_HashSet.js","stdlib/stack":"@jaredly/bs-core/lib/js/stack.js","bs-platform":"@jaredly/bs-core"}},"./src/sandbox/eval/transpilers/utils/loader-utils/index.js":function(e,t,n){"use strict";var r={null:null,true:!0,false:!1};var s=n("../../node_modules/path-browserify/index.js"),a=n.n(s),o=/^\.\.?[\/\\]/;function i(e){return e.startsWith("/")}t.a={getRemainingRequest:function(e){return e.remainingRequests?e.remainingRequests:e.loaders.slice(e.loaderIndex+1).map(function(e){return e.request}).concat([e.resource]).join("!")},parseQuery:function(e){if("?"!==e.substr(0,1))throw new Error("A valid query string passed to parseQuery should begin with '?'");if(!(e=e.substr(1)))return{};if("{"===e.substr(0,1)&&"}"===e.substr(-1))return JSON.parse(e);var t=e.split(/[,&]/g),n={};return t.forEach(function(e){var t=e.indexOf("=");if(t>=0){var s=e.substr(0,t),a=decodeURIComponent(e.substr(t+1));r.hasOwnProperty(a)&&(a=r[a]),"[]"===s.substr(-2)?(s=decodeURIComponent(s.substr(0,s.length-2)),Array.isArray(n[s])||(n[s]=[]),n[s].push(a)):(s=decodeURIComponent(s),n[s]=a)}else"-"===e.substr(0,1)?n[decodeURIComponent(e.substr(1))]=!1:"+"===e.substr(0,1)?n[decodeURIComponent(e.substr(1))]=!0:n[decodeURIComponent(e)]=!0}),n},stringifyRequest:function(e,t){var n=t.split("!"),r=e.context||e.options&&e.options.context;return JSON.stringify(n.map(function(e){var t,n=e.match(/^(.*?)(\?.*)/),s=n?n[1]:e,l=n?n[2]:"";if(i(s)&&r){if(i(s=a.a.relative(r,s)))return s+l;!1===(t=s,o.test(t))&&(s="./"+s)}return s.replace(/\\/g,"/")+l}).join("!"))}}},"./src/sandbox/index.js":function(e,t,n){"use strict";n.r(t),n.d(t,"SCRIPT_VERSION",function(){return E});var r=n("../../node_modules/@babel/runtime/regenerator/index.js"),s=n.n(r),a=n("../../node_modules/@babel/runtime/helpers/asyncToGenerator.js"),o=n.n(a),i=n("../../node_modules/humps/humps.js"),l=n("../codesandbox-api/dist/codesandbox.es5.js"),c=n("../../node_modules/react-devtools-inline/backend.js"),u=n("../common/lib/utils/debug.js"),d=n.n(u),p=n("../common/lib/registerServiceWorker.js"),f=n.n(p),h=n("../common/lib/load-dynamic-polyfills.js"),m=n.n(h),b=n("../common/lib/sandbox/modules.js"),v=n("../common/lib/templates/configuration/package-json/index.js"),y=n("../common/lib/utils/url-generator.js"),g=n("../sandbox-hooks/console/index.js"),j=n.n(g),x=n("../sandbox-hooks/url-listeners.js"),w=n.n(x),k=n("../sandbox-hooks/preview-secret.js"),O=n("../sandbox-hooks/not-found-screen/index.js"),_=n("./src/sandbox/compile.ts");Object(c.initialize)(window);var S=d()("cs:sandbox"),E=document.currentScript&&document.currentScript.src;S("Booting sandbox"),m()().then(function(){function e(){return(e=o()(s.a.mark(function e(t,n){var r,a;return s.a.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if(!n){e.next=15;break}if("compile"!==t.type){e.next=5;break}Object(_.default)(t),e.next=15;break;case 5:if("get-transpiler-context"!==t.type){e.next=15;break}if(!(r=Object(_.getCurrentManager)())){e.next=14;break}return e.next=10,r.getTranspilerContext();case 10:a=e.sent,Object(l.dispatch)({type:"transpiler-context",data:a}),e.next=15;break;case 14:Object(l.dispatch)({type:"transpiler-context",data:{}});case 15:case"end":return e.stop()}},e)}))).apply(this,arguments)}if(f()("/sandbox-service-worker.js",{}),l.isStandalone||(Object(l.listen)(function(t,n){return e.apply(this,arguments)}),Object(l.dispatch)({type:"initialized"}),window.opener||(w()(),j()(),Object(k.listenForPreviewSecret)(),window.addEventListener("message",function(e){switch(e.data.type){case"activate":Object(c.activate)(window)}}))),l.isStandalone){var t=Object(y.getSandboxId)();window.fetch("https://codesandbox.io"+"/api/v1/sandboxes/".concat(t),{headers:{Accept:"application/json",Authorization:"Basic ".concat(Object(k.getPreviewSecret)())},credentials:"include",mode:"cors"}).then(function(e){return 404===e.status&&Object(O.show404)(t),e.json()}).then(function(e){var t=Object(i.camelizeKeys)(e);return t.data.npmDependencies=e.data.npm_dependencies,t}).then(function(e){var n={};e.data.modules.forEach(function(t){var r=Object(b.getModulePath)(e.data.modules,e.data.directories,t.id);n[r]={path:r,code:t.code}}),n["/package.json"]||(n["/package.json"]={code:Object(v.generateFileFromSandbox)(e.data),path:"/package.json"});var r={sandboxId:t,modules:n,entry:"/"+e.data.entry,externalResources:e.data.externalResources,dependencies:e.data.npmDependencies,hasActions:!1,template:e.data.template,version:3,disableDependencyPreprocessing:document.location.search.includes("csb-dynamic-download")};Object(_.default)(r)})}})},5:function(e,t,n){n("./config/polyfills.js"),e.exports=n("./src/sandbox/index.js")},jsdom:function(e,t){e.exports=jsdom}});
  //# sourceMappingURL=sandbox.4d505d94.js.map