{ "version": 3, "sources": ["../../../../../../../../private/var/folders/q8/4dnqkv7n6xl37t7pmtv4lt9w0000gn/T/tmp.v0CSfc6wN6.js"], "sourcesContent": ["\uFEFFvar cacheVersion = 1;\nvar savedTimes = {};\n\nfunction loadInto(el, url, callback) {\n var xhr = new XMLHttpRequest();\n\n xhr.onreadystatechange = function (e) {\n if (xhr.readyState === 4 && xhr.status === 200) {\n el.innerHTML = xhr.responseText;\n if (callback) callback();\n }\n };\n\n xhr.open(\"GET\", url, true);\n xhr.setRequestHeader('Content-type', 'text/html');\n xhr.send();\n}\n\nfunction selfHost() {\n return window.location.protocol + \"//\" + window.location.host;\n}\n\nvar briefTimer;\nfunction addBrief(msg, data, large, confetti) {\n if (data && data.messages && data.messages.length > 0) return;\n clearTimeout(briefTimer);\n briefTimer = setTimeout(function () {\n let brief = document.querySelector(\"body > .brief\");\n brief.parentNode.removeChild(brief);\n }, 4500);\n let body = document.querySelector(\"body\");\n let brief = document.querySelector(\"body > .brief\");\n\n if (confetti) throwConfetti();\n if (!brief) {\n body.insertAdjacentHTML(\"beforeend\", '
' + msg + '
');\n }\n }\n}\n\nfunction addOverlayMessage(msg, extra, confetti) {\n let body = document.querySelector(\"body\");\n let overlay = document.querySelector(\"body > .overlay\");\n if (confetti) throwConfetti();\n if (!overlay) {\n addClass(body, \"noscroll\");\n body.insertAdjacentHTML(\"beforeend\", ' ');\n overlay = document.querySelector(\"body > .overlay\");\n\n overlay.addEventListener(\"click\", function (e) {\n hideMessageOverlay();\n stopAll(e);\n });\n\n overlay.querySelector(\".close\").addEventListener(\"click\", function (e) {\n hideMessageOverlay();\n stopAll(e);\n });\n\n overlay.firstChild.addEventListener(\"click\", function (e) {\n stopAll(e);\n });\n }\n let content = overlay.querySelector(\".content\");\n let text = content.textContent;\n if (text.indexOf(msg) < 0) {\n if (msg.indexOf(\"<\") >= 0 && msg.indexOf(\">\") >= 0) {\n content.insertAdjacentHTML(\"afterbegin\", msg + (extra ? '' + extra + \"' + msg + '
' + (extra ? '' + extra + \"