From 435ce3fc369d1b55e5e3a3aa00ee570892681d76 Mon Sep 17 00:00:00 2001 From: Leandro Pereira Date: Fri, 15 Sep 2023 10:59:59 -0400 Subject: [PATCH] Update live_monaco_editor Load latest monaco editor package version --- mix.lock | 6 ++++-- priv/static/beacon_live_admin.js | 3 +++ priv/static/beacon_live_admin.js.map | 4 ++-- priv/static/beacon_live_admin.min.css.map | 2 +- priv/static/beacon_live_admin.min.js | 6 +++--- priv/static/beacon_live_admin.min.js.map | 4 ++-- 6 files changed, 15 insertions(+), 10 deletions(-) diff --git a/mix.lock b/mix.lock index 3d91c828..4dc3dc32 100644 --- a/mix.lock +++ b/mix.lock @@ -1,6 +1,6 @@ %{ "accent": {:hex, :accent, "1.1.1", "20257356446d45078b19b91608f74669b407b39af891ee3db9ee6824d1cae19d", [:mix], [{:jason, "~> 1.0", [hex: :jason, repo: "hexpm", optional: true]}, {:plug, "~> 1.3", [hex: :plug, repo: "hexpm", optional: false]}], "hexpm", "6d5afa50d4886e3370e04fa501468cbaa6c4b5fe926f72ccfa844ad9e259adae"}, - "beacon": {:git, "https://github.com/beaconCMS/beacon.git", "8930fe5370dd030671c61d2f1826ee97726eea24", []}, + "beacon": {:git, "https://github.com/beaconCMS/beacon.git", "1ab37e19d742c779416240b7fe36c79fed6d6ee5", []}, "brotli": {:hex, :brotli, "0.3.2", "59cf45a399098516f1d34f70d8e010e5c9bf326659d3ef34c7cc56793339002b", [:rebar3], [], "hexpm", "9ec3ef9c753f80d0c657b4905193c55e5198f169fa1d1c044d8601d4d931a2ad"}, "castore": {:hex, :castore, "1.0.3", "7130ba6d24c8424014194676d608cb989f62ef8039efd50ff4b3f33286d06db8", [:mix], [], "hexpm", "680ab01ef5d15b161ed6a95449fac5c6b8f60055677a8e79acf01b27baa4390b"}, "cc_precompiler": {:hex, :cc_precompiler, "0.1.7", "77de20ac77f0e53f20ca82c563520af0237c301a1ec3ab3bc598e8a96c7ee5d9", [:mix], [{:elixir_make, "~> 0.7.3", [hex: :elixir_make, repo: "hexpm", optional: false]}], "hexpm", "2768b28bf3c2b4f788c995576b39b8cb5d47eb788526d93bd52206c1d8bf4b75"}, @@ -24,7 +24,8 @@ "heroicons": {:hex, :heroicons, "0.5.3", "ee8ae8335303df3b18f2cc07f46e1cb6e761ba4cf2c901623fbe9a28c0bc51dd", [:mix], [{:castore, ">= 0.0.0", [hex: :castore, repo: "hexpm", optional: false]}, {:phoenix_live_view, ">= 0.18.2", [hex: :phoenix_live_view, repo: "hexpm", optional: false]}], "hexpm", "a210037e8a09ac17e2a0a0779d729e89c821c944434c3baa7edfc1f5b32f3502"}, "image": {:hex, :image, "0.34.0", "4bd8b5f6b0a979607e56a40996cf5509318b2de32acf6abb1f0c0ab2b48f5e65", [:mix], [{:bumblebee, "~> 0.2", [hex: :bumblebee, repo: "hexpm", optional: true]}, {:evision, "~> 0.1.26", [hex: :evision, repo: "hexpm", optional: true]}, {:exla, "~> 0.5", [hex: :exla, repo: "hexpm", optional: true]}, {:jason, "~> 1.4", [hex: :jason, repo: "hexpm", optional: true]}, {:kino, "~> 0.7", [hex: :kino, repo: "hexpm", optional: true]}, {:nx, "~> 0.5", [hex: :nx, repo: "hexpm", optional: true]}, {:phoenix_html, "~> 2.14 or ~> 3.2", [hex: :phoenix_html, repo: "hexpm", optional: false]}, {:plug, "~> 1.13", [hex: :plug, repo: "hexpm", optional: true]}, {:sweet_xml, "~> 0.7", [hex: :sweet_xml, repo: "hexpm", optional: false]}, {:vix, "~> 0.17", [hex: :vix, repo: "hexpm", optional: false]}], "hexpm", "5277d1864bb3fd44db80f6a4f244cf5a5cc5106bdf030931524f59db7080bb9f"}, "jason": {:hex, :jason, "1.4.1", "af1504e35f629ddcdd6addb3513c3853991f694921b1b9368b0bd32beb9f1b63", [:mix], [{:decimal, "~> 1.0 or ~> 2.0", [hex: :decimal, repo: "hexpm", optional: true]}], "hexpm", "fbb01ecdfd565b56261302f7e1fcc27c4fb8f32d56eab74db621fc154604a7a1"}, - "live_monaco_editor": {:hex, :live_monaco_editor, "0.1.4", "58f512e9f774c7f36f2d9f17fae275892b1b5514cfa12f162d71991074f15f42", [:mix], [{:jason, "~> 1.4", [hex: :jason, repo: "hexpm", optional: false]}, {:phoenix, "~> 1.7", [hex: :phoenix, repo: "hexpm", optional: false]}, {:phoenix_live_view, "~> 0.18", [hex: :phoenix_live_view, repo: "hexpm", optional: false]}], "hexpm", "606c8bf2d535f515d7087bc45be852fa50167677e27229ff36e19ca708d3dfef"}, + "live_monaco_editor": {:hex, :live_monaco_editor, "0.1.5", "139f24a816d20f1c9ae1753ff8b09d02d2586d2676ab544346c0a6aff8a0ccfc", [:mix], [{:jason, "~> 1.4", [hex: :jason, repo: "hexpm", optional: false]}, {:phoenix, "~> 1.7", [hex: :phoenix, repo: "hexpm", optional: false]}, {:phoenix_live_view, "~> 0.18", [hex: :phoenix_live_view, repo: "hexpm", optional: false]}], "hexpm", "803d08d60b4d2d66770ce89ec49d774090a7cdfe1089e3dba72b4a291cc5a8f3"}, + "mdex": {:hex, :mdex, "0.1.6", "ce705242117d26fe4c8a3385227ef466154f14d12975930a8f5ad6033d340e92", [:mix], [{:rustler, ">= 0.0.0", [hex: :rustler, repo: "hexpm", optional: true]}, {:rustler_precompiled, "~> 0.6", [hex: :rustler_precompiled, repo: "hexpm", optional: false]}], "hexpm", "a8c2512748adb826af7c45f754e6350ec632ca69003cc03602cf473dfef1bb14"}, "mime": {:hex, :mime, "2.0.5", "dc34c8efd439abe6ae0343edbb8556f4d63f178594894720607772a041b04b02", [:mix], [], "hexpm", "da0d64a365c45bc9935cc5c8a7fc5e49a0e0f9932a761c55d6c52b142780a05c"}, "mix_test_watch": {:hex, :mix_test_watch, "1.1.0", "330bb91c8ed271fe408c42d07e0773340a7938d8a0d281d57a14243eae9dc8c3", [:mix], [{:file_system, "~> 0.2.1 or ~> 0.3", [hex: :file_system, repo: "hexpm", optional: false]}], "hexpm", "52b6b1c476cbb70fd899ca5394506482f12e5f6b0d6acff9df95c7f1e0812ec3"}, "nimble_parsec": {:hex, :nimble_parsec, "1.3.1", "2c54013ecf170e249e9291ed0a62e5832f70a476c61da16f6aac6dca0189f2af", [:mix], [], "hexpm", "2682e3c0b2eb58d90c6375fc0cc30bc7be06f365bf72608804fb9cffa5e1b167"}, @@ -40,6 +41,7 @@ "plug_crypto": {:hex, :plug_crypto, "1.2.5", "918772575e48e81e455818229bf719d4ab4181fcbf7f85b68a35620f78d89ced", [:mix], [], "hexpm", "26549a1d6345e2172eb1c233866756ae44a9609bd33ee6f99147ab3fd87fd842"}, "postgrex": {:hex, :postgrex, "0.17.1", "01c29fd1205940ee55f7addb8f1dc25618ca63a8817e56fac4f6846fc2cddcbe", [:mix], [{:db_connection, "~> 2.1", [hex: :db_connection, repo: "hexpm", optional: false]}, {:decimal, "~> 1.5 or ~> 2.0", [hex: :decimal, repo: "hexpm", optional: false]}, {:jason, "~> 1.0", [hex: :jason, repo: "hexpm", optional: true]}, {:table, "~> 0.1.0", [hex: :table, repo: "hexpm", optional: true]}], "hexpm", "14b057b488e73be2beee508fb1955d8db90d6485c6466428fe9ccf1d6692a555"}, "ranch": {:hex, :ranch, "1.8.0", "8c7a100a139fd57f17327b6413e4167ac559fbc04ca7448e9be9057311597a1d", [:make, :rebar3], [], "hexpm", "49fbcfd3682fab1f5d109351b61257676da1a2fdbe295904176d5e521a2ddfe5"}, + "rustler_precompiled": {:hex, :rustler_precompiled, "0.6.3", "f838d94bc35e1844973ee7266127b156fdc962e9e8b7ff666c8fb4fed7964d23", [:mix], [{:castore, "~> 0.1 or ~> 1.0", [hex: :castore, repo: "hexpm", optional: false]}, {:rustler, "~> 0.23", [hex: :rustler, repo: "hexpm", optional: true]}], "hexpm", "e18ecca3669a7454b3a2be75ae6c3ef01d550bc9a8cf5fbddcfff843b881d7c6"}, "safe_code": {:git, "https://github.com/TheFirstAvenger/safe_code.git", "9907b385f1b71c0602183bf7fd8732570252b622", []}, "solid": {:hex, :solid, "0.14.1", "61b454dc7e7bf8a56926e805a0d047f817a993c28af71c9b79b840482da1ba5a", [:mix], [{:nimble_parsec, "~> 1.0", [hex: :nimble_parsec, repo: "hexpm", optional: false]}], "hexpm", "5fda2b9176d7a71f52cca7f694d8ca75aed3f1b5b76dd175ada30b2756f96bae"}, "sweet_xml": {:hex, :sweet_xml, "0.7.3", "debb256781c75ff6a8c5cbf7981146312b66f044a2898f453709a53e5031b45b", [:mix], [], "hexpm", "e110c867a1b3fe74bfc7dd9893aa851f0eed5518d0d7cad76d7baafd30e4f5ba"}, diff --git a/priv/static/beacon_live_admin.js b/priv/static/beacon_live_admin.js index c613b0d1..0126ca91 100644 --- a/priv/static/beacon_live_admin.js +++ b/priv/static/beacon_live_admin.js @@ -789,6 +789,9 @@ var BeaconLiveAdmin = (() => { } _mountEditor() { this.opts.value = this.value; + loader_default.config({ + paths: { vs: "https://cdn.jsdelivr.net/npm/monaco-editor@latest/min/vs" } + }); loader_default.init().then((monaco) => { monaco.editor.defineTheme("default", theme); let modelUri = monaco.Uri.parse(this.path); diff --git a/priv/static/beacon_live_admin.js.map b/priv/static/beacon_live_admin.js.map index bb1750f2..99e83a79 100644 --- a/priv/static/beacon_live_admin.js.map +++ b/priv/static/beacon_live_admin.js.map @@ -1,7 +1,7 @@ { "version": 3, "sources": ["../../assets/vendor/topbar.js", "../../assets/js/beacon_live_admin.js", "../../deps/live_monaco_editor/assets/node_modules/@monaco-editor/loader/lib/es/_virtual/_rollupPluginBabelHelpers.js", "../../deps/live_monaco_editor/assets/node_modules/state-local/lib/es/state-local.js", "../../deps/live_monaco_editor/assets/node_modules/@monaco-editor/loader/lib/es/config/index.js", "../../deps/live_monaco_editor/assets/node_modules/@monaco-editor/loader/lib/es/utils/curry.js", "../../deps/live_monaco_editor/assets/node_modules/@monaco-editor/loader/lib/es/utils/isObject.js", "../../deps/live_monaco_editor/assets/node_modules/@monaco-editor/loader/lib/es/validators/index.js", "../../deps/live_monaco_editor/assets/node_modules/@monaco-editor/loader/lib/es/utils/compose.js", "../../deps/live_monaco_editor/assets/node_modules/@monaco-editor/loader/lib/es/utils/deepMerge.js", "../../deps/live_monaco_editor/assets/node_modules/@monaco-editor/loader/lib/es/utils/makeCancelable.js", "../../deps/live_monaco_editor/assets/node_modules/@monaco-editor/loader/lib/es/loader/index.js", "../../deps/live_monaco_editor/assets/js/live_monaco_editor/editor/themes.js", "../../deps/live_monaco_editor/assets/js/live_monaco_editor/editor/code_editor.js", "../../deps/live_monaco_editor/assets/js/live_monaco_editor/hooks/code_editor.js"], - "sourcesContent": ["/**\n * @license MIT\n * topbar 2.0.0, 2023-02-04\n * https://buunguyen.github.io/topbar\n * Copyright (c) 2021 Buu Nguyen\n */\n(function (window, document) {\n \"use strict\";\n\n // https://gist.github.com/paulirish/1579671\n (function () {\n var lastTime = 0;\n var vendors = [\"ms\", \"moz\", \"webkit\", \"o\"];\n for (var x = 0; x < vendors.length && !window.requestAnimationFrame; ++x) {\n window.requestAnimationFrame =\n window[vendors[x] + \"RequestAnimationFrame\"];\n window.cancelAnimationFrame =\n window[vendors[x] + \"CancelAnimationFrame\"] ||\n window[vendors[x] + \"CancelRequestAnimationFrame\"];\n }\n if (!window.requestAnimationFrame)\n window.requestAnimationFrame = function (callback, element) {\n var currTime = new Date().getTime();\n var timeToCall = Math.max(0, 16 - (currTime - lastTime));\n var id = window.setTimeout(function () {\n callback(currTime + timeToCall);\n }, timeToCall);\n lastTime = currTime + timeToCall;\n return id;\n };\n if (!window.cancelAnimationFrame)\n window.cancelAnimationFrame = function (id) {\n clearTimeout(id);\n };\n })();\n\n var canvas,\n currentProgress,\n showing,\n progressTimerId = null,\n fadeTimerId = null,\n delayTimerId = null,\n addEvent = function (elem, type, handler) {\n if (elem.addEventListener) elem.addEventListener(type, handler, false);\n else if (elem.attachEvent) elem.attachEvent(\"on\" + type, handler);\n else elem[\"on\" + type] = handler;\n },\n options = {\n autoRun: true,\n barThickness: 3,\n barColors: {\n 0: \"rgba(26, 188, 156, .9)\",\n \".25\": \"rgba(52, 152, 219, .9)\",\n \".50\": \"rgba(241, 196, 15, .9)\",\n \".75\": \"rgba(230, 126, 34, .9)\",\n \"1.0\": \"rgba(211, 84, 0, .9)\",\n },\n shadowBlur: 10,\n shadowColor: \"rgba(0, 0, 0, .6)\",\n className: null,\n },\n repaint = function () {\n canvas.width = window.innerWidth;\n canvas.height = options.barThickness * 5; // need space for shadow\n\n var ctx = canvas.getContext(\"2d\");\n ctx.shadowBlur = options.shadowBlur;\n ctx.shadowColor = options.shadowColor;\n\n var lineGradient = ctx.createLinearGradient(0, 0, canvas.width, 0);\n for (var stop in options.barColors)\n lineGradient.addColorStop(stop, options.barColors[stop]);\n ctx.lineWidth = options.barThickness;\n ctx.beginPath();\n ctx.moveTo(0, options.barThickness / 2);\n ctx.lineTo(\n Math.ceil(currentProgress * canvas.width),\n options.barThickness / 2\n );\n ctx.strokeStyle = lineGradient;\n ctx.stroke();\n },\n createCanvas = function () {\n canvas = document.createElement(\"canvas\");\n var style = canvas.style;\n style.position = \"fixed\";\n style.top = style.left = style.right = style.margin = style.padding = 0;\n style.zIndex = 100001;\n style.display = \"none\";\n if (options.className) canvas.classList.add(options.className);\n document.body.appendChild(canvas);\n addEvent(window, \"resize\", repaint);\n },\n topbar = {\n config: function (opts) {\n for (var key in opts)\n if (options.hasOwnProperty(key)) options[key] = opts[key];\n },\n show: function (delay) {\n if (showing) return;\n if (delay) {\n if (delayTimerId) return;\n delayTimerId = setTimeout(() => topbar.show(), delay);\n } else {\n showing = true;\n if (fadeTimerId !== null) window.cancelAnimationFrame(fadeTimerId);\n if (!canvas) createCanvas();\n canvas.style.opacity = 1;\n canvas.style.display = \"block\";\n topbar.progress(0);\n if (options.autoRun) {\n (function loop() {\n progressTimerId = window.requestAnimationFrame(loop);\n topbar.progress(\n \"+\" + 0.05 * Math.pow(1 - Math.sqrt(currentProgress), 2)\n );\n })();\n }\n }\n },\n progress: function (to) {\n if (typeof to === \"undefined\") return currentProgress;\n if (typeof to === \"string\") {\n to =\n (to.indexOf(\"+\") >= 0 || to.indexOf(\"-\") >= 0\n ? currentProgress\n : 0) + parseFloat(to);\n }\n currentProgress = to > 1 ? 1 : to;\n repaint();\n return currentProgress;\n },\n hide: function () {\n clearTimeout(delayTimerId);\n delayTimerId = null;\n if (!showing) return;\n showing = false;\n if (progressTimerId != null) {\n window.cancelAnimationFrame(progressTimerId);\n progressTimerId = null;\n }\n (function loop() {\n if (topbar.progress(\"+.1\") >= 1) {\n canvas.style.opacity -= 0.05;\n if (canvas.style.opacity <= 0.05) {\n canvas.style.display = \"none\";\n fadeTimerId = null;\n return;\n }\n }\n fadeTimerId = window.requestAnimationFrame(loop);\n })();\n },\n };\n\n if (typeof module === \"object\" && typeof module.exports === \"object\") {\n module.exports = topbar;\n } else if (typeof define === \"function\" && define.amd) {\n define(function () {\n return topbar;\n });\n } else {\n this.topbar = topbar;\n }\n}.call(this, window, document));\n", "import topbar from \"../vendor/topbar\"\nimport { CodeEditorHook } from \"../../deps/live_monaco_editor/priv/static/live_monaco_editor.esm\"\n\nlet Hooks = {}\nHooks.CodeEditorHook = CodeEditorHook\n\ntopbar.config({barColors: {0: \"#29d\"}, shadowColor: \"rgba(0, 0, 0, .3)\"})\nwindow.addEventListener(\"phx:page-loading-start\", _info => topbar.show(300))\nwindow.addEventListener(\"phx:page-loading-stop\", _info => topbar.hide())\n\nwindow.addEventListener(\"lme:editor_mounted\", (ev) => {\n const hook = ev.detail.hook\n const editor = ev.detail.editor.standalone_code_editor\n const eventName = ev.detail.editor.path + \"_editor_lost_focus\"\n\n editor.onDidBlurEditorWidget(() => {\n hook.pushEvent(eventName, { value: editor.getValue() })\n })\n})\n\nwindow.addEventListener(\"beacon_admin:clipcopy\", (event) => {\n const result_id = `${event.target.id}-copy-to-clipboard-result`\n const el = document.getElementById(result_id);\n\n if (\"clipboard\" in navigator) {\n if (event.target.tagName === \"INPUT\") {\n txt = event.target.value;\n } else {\n txt = event.target.textContent;\n }\n\n navigator.clipboard.writeText(txt).then(() => {\n el.innerText = 'Copied to clipboard';\n // Make it visible\n el.classList.remove('invisible', 'text-red-500', 'opacity-0');\n // Fade in and translate upwards\n el.classList.add('text-green-500', 'opacity-100', '-translate-y-2');\n\n setTimeout(function() {\n el.classList.remove('text-green-500', 'opacity-100', '-translate-y-2');\n el.classList.add('invisible', 'text-red-500', 'opacity-0');\n }, 2000);\n\n }).catch(() => {\n el.innerText = 'Could not copy';\n // Make it visible\n el.classList.remove('invisible', 'text-green-500', 'opacity-0');\n // Fade in and translate upwards\n el.classList.add('text-red-500', 'opacity-100', '-translate-y-2');\n })\n } else {\n alert(\n \"Sorry, your browser does not support clipboard copy.\"\n );\n }\n});\n\nlet socketPath = document.querySelector(\"html\").getAttribute(\"phx-socket\") || \"/live\"\nlet csrfToken = document .querySelector(\"meta[name='csrf-token']\") .getAttribute(\"content\")\nlet liveSocket = new LiveView.LiveSocket(socketPath, Phoenix.Socket, {\n hooks: Hooks,\n params: { _csrf_token: csrfToken },\n})\nliveSocket.connect()\nwindow.liveSocket = liveSocket\n", "function _defineProperty(obj, key, value) {\n if (key in obj) {\n Object.defineProperty(obj, key, {\n value: value,\n enumerable: true,\n configurable: true,\n writable: true\n });\n } else {\n obj[key] = value;\n }\n\n return obj;\n}\n\nfunction ownKeys(object, enumerableOnly) {\n var keys = Object.keys(object);\n\n if (Object.getOwnPropertySymbols) {\n var symbols = Object.getOwnPropertySymbols(object);\n if (enumerableOnly) symbols = symbols.filter(function (sym) {\n return Object.getOwnPropertyDescriptor(object, sym).enumerable;\n });\n keys.push.apply(keys, symbols);\n }\n\n return keys;\n}\n\nfunction _objectSpread2(target) {\n for (var i = 1; i < arguments.length; i++) {\n var source = arguments[i] != null ? arguments[i] : {};\n\n if (i % 2) {\n ownKeys(Object(source), true).forEach(function (key) {\n _defineProperty(target, key, source[key]);\n });\n } else if (Object.getOwnPropertyDescriptors) {\n Object.defineProperties(target, Object.getOwnPropertyDescriptors(source));\n } else {\n ownKeys(Object(source)).forEach(function (key) {\n Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));\n });\n }\n }\n\n return target;\n}\n\nfunction _objectWithoutPropertiesLoose(source, excluded) {\n if (source == null) return {};\n var target = {};\n var sourceKeys = Object.keys(source);\n var key, i;\n\n for (i = 0; i < sourceKeys.length; i++) {\n key = sourceKeys[i];\n if (excluded.indexOf(key) >= 0) continue;\n target[key] = source[key];\n }\n\n return target;\n}\n\nfunction _objectWithoutProperties(source, excluded) {\n if (source == null) return {};\n\n var target = _objectWithoutPropertiesLoose(source, excluded);\n\n var key, i;\n\n if (Object.getOwnPropertySymbols) {\n var sourceSymbolKeys = Object.getOwnPropertySymbols(source);\n\n for (i = 0; i < sourceSymbolKeys.length; i++) {\n key = sourceSymbolKeys[i];\n if (excluded.indexOf(key) >= 0) continue;\n if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue;\n target[key] = source[key];\n }\n }\n\n return target;\n}\n\nfunction _slicedToArray(arr, i) {\n return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest();\n}\n\nfunction _arrayWithHoles(arr) {\n if (Array.isArray(arr)) return arr;\n}\n\nfunction _iterableToArrayLimit(arr, i) {\n if (typeof Symbol === \"undefined\" || !(Symbol.iterator in Object(arr))) return;\n var _arr = [];\n var _n = true;\n var _d = false;\n var _e = undefined;\n\n try {\n for (var _i = arr[Symbol.iterator](), _s; !(_n = (_s = _i.next()).done); _n = true) {\n _arr.push(_s.value);\n\n if (i && _arr.length === i) break;\n }\n } catch (err) {\n _d = true;\n _e = err;\n } finally {\n try {\n if (!_n && _i[\"return\"] != null) _i[\"return\"]();\n } finally {\n if (_d) throw _e;\n }\n }\n\n return _arr;\n}\n\nfunction _unsupportedIterableToArray(o, minLen) {\n if (!o) return;\n if (typeof o === \"string\") return _arrayLikeToArray(o, minLen);\n var n = Object.prototype.toString.call(o).slice(8, -1);\n if (n === \"Object\" && o.constructor) n = o.constructor.name;\n if (n === \"Map\" || n === \"Set\") return Array.from(o);\n if (n === \"Arguments\" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen);\n}\n\nfunction _arrayLikeToArray(arr, len) {\n if (len == null || len > arr.length) len = arr.length;\n\n for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i];\n\n return arr2;\n}\n\nfunction _nonIterableRest() {\n throw new TypeError(\"Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.\");\n}\n\nexport { _arrayLikeToArray as arrayLikeToArray, _arrayWithHoles as arrayWithHoles, _defineProperty as defineProperty, _iterableToArrayLimit as iterableToArrayLimit, _nonIterableRest as nonIterableRest, _objectSpread2 as objectSpread2, _objectWithoutProperties as objectWithoutProperties, _objectWithoutPropertiesLoose as objectWithoutPropertiesLoose, _slicedToArray as slicedToArray, _unsupportedIterableToArray as unsupportedIterableToArray };\n", "function _defineProperty(obj, key, value) {\n if (key in obj) {\n Object.defineProperty(obj, key, {\n value: value,\n enumerable: true,\n configurable: true,\n writable: true\n });\n } else {\n obj[key] = value;\n }\n\n return obj;\n}\n\nfunction ownKeys(object, enumerableOnly) {\n var keys = Object.keys(object);\n\n if (Object.getOwnPropertySymbols) {\n var symbols = Object.getOwnPropertySymbols(object);\n if (enumerableOnly) symbols = symbols.filter(function (sym) {\n return Object.getOwnPropertyDescriptor(object, sym).enumerable;\n });\n keys.push.apply(keys, symbols);\n }\n\n return keys;\n}\n\nfunction _objectSpread2(target) {\n for (var i = 1; i < arguments.length; i++) {\n var source = arguments[i] != null ? arguments[i] : {};\n\n if (i % 2) {\n ownKeys(Object(source), true).forEach(function (key) {\n _defineProperty(target, key, source[key]);\n });\n } else if (Object.getOwnPropertyDescriptors) {\n Object.defineProperties(target, Object.getOwnPropertyDescriptors(source));\n } else {\n ownKeys(Object(source)).forEach(function (key) {\n Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));\n });\n }\n }\n\n return target;\n}\n\nfunction compose() {\n for (var _len = arguments.length, fns = new Array(_len), _key = 0; _key < _len; _key++) {\n fns[_key] = arguments[_key];\n }\n\n return function (x) {\n return fns.reduceRight(function (y, f) {\n return f(y);\n }, x);\n };\n}\n\nfunction curry(fn) {\n return function curried() {\n var _this = this;\n\n for (var _len2 = arguments.length, args = new Array(_len2), _key2 = 0; _key2 < _len2; _key2++) {\n args[_key2] = arguments[_key2];\n }\n\n return args.length >= fn.length ? fn.apply(this, args) : function () {\n for (var _len3 = arguments.length, nextArgs = new Array(_len3), _key3 = 0; _key3 < _len3; _key3++) {\n nextArgs[_key3] = arguments[_key3];\n }\n\n return curried.apply(_this, [].concat(args, nextArgs));\n };\n };\n}\n\nfunction isObject(value) {\n return {}.toString.call(value).includes('Object');\n}\n\nfunction isEmpty(obj) {\n return !Object.keys(obj).length;\n}\n\nfunction isFunction(value) {\n return typeof value === 'function';\n}\n\nfunction hasOwnProperty(object, property) {\n return Object.prototype.hasOwnProperty.call(object, property);\n}\n\nfunction validateChanges(initial, changes) {\n if (!isObject(changes)) errorHandler('changeType');\n if (Object.keys(changes).some(function (field) {\n return !hasOwnProperty(initial, field);\n })) errorHandler('changeField');\n return changes;\n}\n\nfunction validateSelector(selector) {\n if (!isFunction(selector)) errorHandler('selectorType');\n}\n\nfunction validateHandler(handler) {\n if (!(isFunction(handler) || isObject(handler))) errorHandler('handlerType');\n if (isObject(handler) && Object.values(handler).some(function (_handler) {\n return !isFunction(_handler);\n })) errorHandler('handlersType');\n}\n\nfunction validateInitial(initial) {\n if (!initial) errorHandler('initialIsRequired');\n if (!isObject(initial)) errorHandler('initialType');\n if (isEmpty(initial)) errorHandler('initialContent');\n}\n\nfunction throwError(errorMessages, type) {\n throw new Error(errorMessages[type] || errorMessages[\"default\"]);\n}\n\nvar errorMessages = {\n initialIsRequired: 'initial state is required',\n initialType: 'initial state should be an object',\n initialContent: 'initial state shouldn\\'t be an empty object',\n handlerType: 'handler should be an object or a function',\n handlersType: 'all handlers should be a functions',\n selectorType: 'selector should be a function',\n changeType: 'provided value of changes should be an object',\n changeField: 'it seams you want to change a field in the state which is not specified in the \"initial\" state',\n \"default\": 'an unknown error accured in `state-local` package'\n};\nvar errorHandler = curry(throwError)(errorMessages);\nvar validators = {\n changes: validateChanges,\n selector: validateSelector,\n handler: validateHandler,\n initial: validateInitial\n};\n\nfunction create(initial) {\n var handler = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};\n validators.initial(initial);\n validators.handler(handler);\n var state = {\n current: initial\n };\n var didUpdate = curry(didStateUpdate)(state, handler);\n var update = curry(updateState)(state);\n var validate = curry(validators.changes)(initial);\n var getChanges = curry(extractChanges)(state);\n\n function getState() {\n var selector = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : function (state) {\n return state;\n };\n validators.selector(selector);\n return selector(state.current);\n }\n\n function setState(causedChanges) {\n compose(didUpdate, update, validate, getChanges)(causedChanges);\n }\n\n return [getState, setState];\n}\n\nfunction extractChanges(state, causedChanges) {\n return isFunction(causedChanges) ? causedChanges(state.current) : causedChanges;\n}\n\nfunction updateState(state, changes) {\n state.current = _objectSpread2(_objectSpread2({}, state.current), changes);\n return changes;\n}\n\nfunction didStateUpdate(state, handler, changes) {\n isFunction(handler) ? handler(state.current) : Object.keys(changes).forEach(function (field) {\n var _handler$field;\n\n return (_handler$field = handler[field]) === null || _handler$field === void 0 ? void 0 : _handler$field.call(handler, state.current[field]);\n });\n return changes;\n}\n\nvar index = {\n create: create\n};\n\nexport default index;\n", "var config = {\n paths: {\n vs: 'https://cdn.jsdelivr.net/npm/monaco-editor@0.36.1/min/vs'\n }\n};\n\nexport default config;\n", "function curry(fn) {\n return function curried() {\n var _this = this;\n\n for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {\n args[_key] = arguments[_key];\n }\n\n return args.length >= fn.length ? fn.apply(this, args) : function () {\n for (var _len2 = arguments.length, nextArgs = new Array(_len2), _key2 = 0; _key2 < _len2; _key2++) {\n nextArgs[_key2] = arguments[_key2];\n }\n\n return curried.apply(_this, [].concat(args, nextArgs));\n };\n };\n}\n\nexport default curry;\n", "function isObject(value) {\n return {}.toString.call(value).includes('Object');\n}\n\nexport default isObject;\n", "import curry from '../utils/curry.js';\nimport isObject from '../utils/isObject.js';\n\n/**\n * validates the configuration object and informs about deprecation\n * @param {Object} config - the configuration object \n * @return {Object} config - the validated configuration object\n */\n\nfunction validateConfig(config) {\n if (!config) errorHandler('configIsRequired');\n if (!isObject(config)) errorHandler('configType');\n\n if (config.urls) {\n informAboutDeprecation();\n return {\n paths: {\n vs: config.urls.monacoBase\n }\n };\n }\n\n return config;\n}\n/**\n * logs deprecation message\n */\n\n\nfunction informAboutDeprecation() {\n console.warn(errorMessages.deprecation);\n}\n\nfunction throwError(errorMessages, type) {\n throw new Error(errorMessages[type] || errorMessages[\"default\"]);\n}\n\nvar errorMessages = {\n configIsRequired: 'the configuration object is required',\n configType: 'the configuration object should be an object',\n \"default\": 'an unknown error accured in `@monaco-editor/loader` package',\n deprecation: \"Deprecation warning!\\n You are using deprecated way of configuration.\\n\\n Instead of using\\n monaco.config({ urls: { monacoBase: '...' } })\\n use\\n monaco.config({ paths: { vs: '...' } })\\n\\n For more please check the link https://github.com/suren-atoyan/monaco-loader#config\\n \"\n};\nvar errorHandler = curry(throwError)(errorMessages);\nvar validators = {\n config: validateConfig\n};\n\nexport default validators;\nexport { errorHandler, errorMessages };\n", "var compose = function compose() {\n for (var _len = arguments.length, fns = new Array(_len), _key = 0; _key < _len; _key++) {\n fns[_key] = arguments[_key];\n }\n\n return function (x) {\n return fns.reduceRight(function (y, f) {\n return f(y);\n }, x);\n };\n};\n\nexport default compose;\n", "import { objectSpread2 as _objectSpread2 } from '../_virtual/_rollupPluginBabelHelpers.js';\n\nfunction merge(target, source) {\n Object.keys(source).forEach(function (key) {\n if (source[key] instanceof Object) {\n if (target[key]) {\n Object.assign(source[key], merge(target[key], source[key]));\n }\n }\n });\n return _objectSpread2(_objectSpread2({}, target), source);\n}\n\nexport default merge;\n", "// The source (has been changed) is https://github.com/facebook/react/issues/5465#issuecomment-157888325\nvar CANCELATION_MESSAGE = {\n type: 'cancelation',\n msg: 'operation is manually canceled'\n};\n\nfunction makeCancelable(promise) {\n var hasCanceled_ = false;\n var wrappedPromise = new Promise(function (resolve, reject) {\n promise.then(function (val) {\n return hasCanceled_ ? reject(CANCELATION_MESSAGE) : resolve(val);\n });\n promise[\"catch\"](reject);\n });\n return wrappedPromise.cancel = function () {\n return hasCanceled_ = true;\n }, wrappedPromise;\n}\n\nexport default makeCancelable;\nexport { CANCELATION_MESSAGE };\n", "import { slicedToArray as _slicedToArray, objectWithoutProperties as _objectWithoutProperties } from '../_virtual/_rollupPluginBabelHelpers.js';\nimport state from 'state-local';\nimport config$1 from '../config/index.js';\nimport validators from '../validators/index.js';\nimport compose from '../utils/compose.js';\nimport merge from '../utils/deepMerge.js';\nimport makeCancelable from '../utils/makeCancelable.js';\n\n/** the local state of the module */\n\nvar _state$create = state.create({\n config: config$1,\n isInitialized: false,\n resolve: null,\n reject: null,\n monaco: null\n}),\n _state$create2 = _slicedToArray(_state$create, 2),\n getState = _state$create2[0],\n setState = _state$create2[1];\n/**\n * set the loader configuration\n * @param {Object} config - the configuration object\n */\n\n\nfunction config(globalConfig) {\n var _validators$config = validators.config(globalConfig),\n monaco = _validators$config.monaco,\n config = _objectWithoutProperties(_validators$config, [\"monaco\"]);\n\n setState(function (state) {\n return {\n config: merge(state.config, config),\n monaco: monaco\n };\n });\n}\n/**\n * handles the initialization of the monaco-editor\n * @return {Promise} - returns an instance of monaco (with a cancelable promise)\n */\n\n\nfunction init() {\n var state = getState(function (_ref) {\n var monaco = _ref.monaco,\n isInitialized = _ref.isInitialized,\n resolve = _ref.resolve;\n return {\n monaco: monaco,\n isInitialized: isInitialized,\n resolve: resolve\n };\n });\n\n if (!state.isInitialized) {\n setState({\n isInitialized: true\n });\n\n if (state.monaco) {\n state.resolve(state.monaco);\n return makeCancelable(wrapperPromise);\n }\n\n if (window.monaco && window.monaco.editor) {\n storeMonacoInstance(window.monaco);\n state.resolve(window.monaco);\n return makeCancelable(wrapperPromise);\n }\n\n compose(injectScripts, getMonacoLoaderScript)(configureLoader);\n }\n\n return makeCancelable(wrapperPromise);\n}\n/**\n * injects provided scripts into the document.body\n * @param {Object} script - an HTML script element\n * @return {Object} - the injected HTML script element\n */\n\n\nfunction injectScripts(script) {\n return document.body.appendChild(script);\n}\n/**\n * creates an HTML script element with/without provided src\n * @param {string} [src] - the source path of the script\n * @return {Object} - the created HTML script element\n */\n\n\nfunction createScript(src) {\n var script = document.createElement('script');\n return src && (script.src = src), script;\n}\n/**\n * creates an HTML script element with the monaco loader src\n * @return {Object} - the created HTML script element\n */\n\n\nfunction getMonacoLoaderScript(configureLoader) {\n var state = getState(function (_ref2) {\n var config = _ref2.config,\n reject = _ref2.reject;\n return {\n config: config,\n reject: reject\n };\n });\n var loaderScript = createScript(\"\".concat(state.config.paths.vs, \"/loader.js\"));\n\n loaderScript.onload = function () {\n return configureLoader();\n };\n\n loaderScript.onerror = state.reject;\n return loaderScript;\n}\n/**\n * configures the monaco loader\n */\n\n\nfunction configureLoader() {\n var state = getState(function (_ref3) {\n var config = _ref3.config,\n resolve = _ref3.resolve,\n reject = _ref3.reject;\n return {\n config: config,\n resolve: resolve,\n reject: reject\n };\n });\n var require = window.require;\n\n require.config(state.config);\n\n require(['vs/editor/editor.main'], function (monaco) {\n storeMonacoInstance(monaco);\n state.resolve(monaco);\n }, function (error) {\n state.reject(error);\n });\n}\n/**\n * store monaco instance in local state\n */\n\n\nfunction storeMonacoInstance(monaco) {\n if (!getState().monaco) {\n setState({\n monaco: monaco\n });\n }\n}\n/**\n * internal helper function\n * extracts stored monaco instance\n * @return {Object|null} - the monaco instance\n */\n\n\nfunction __getMonacoInstance() {\n return getState(function (_ref4) {\n var monaco = _ref4.monaco;\n return monaco;\n });\n}\n\nvar wrapperPromise = new Promise(function (resolve, reject) {\n return setState({\n resolve: resolve,\n reject: reject\n });\n});\nvar loader = {\n config: config,\n init: init,\n __getMonacoInstance: __getMonacoInstance\n};\n\nexport default loader;\n", "// Copied and modified from the original work available at https://github.com/livebook-dev/livebook/blob/23e58ac604de92ce54472f36fe3e28dc27576d6c/assets/js/hooks/cell_editor/live_editor/theme.js\n// Copyright (C) 2021 Dashbit\n// Licensed under Apache 2.0 available at https://www.apache.org/licenses/LICENSE-2.0\n\n// This is a port of the One Dark theme to the Monaco editor.\n// We color graded the comment so it has AA accessibility and\n// then similarly scaled the default font.\nconst colors = {\n background: \"#282c34\",\n default: \"#c4cad6\",\n lightRed: \"#e06c75\",\n blue: \"#61afef\",\n gray: \"#8c92a3\",\n green: \"#98c379\",\n purple: \"#c678dd\",\n red: \"#be5046\",\n teal: \"#56b6c2\",\n peach: \"#d19a66\",\n}\n\nconst rules = (colors) => [\n { token: \"\", foreground: colors.default },\n { token: \"variable\", foreground: colors.lightRed },\n { token: \"constant\", foreground: colors.blue },\n { token: \"constant.character.escape\", foreground: colors.blue },\n { token: \"comment\", foreground: colors.gray },\n { token: \"number\", foreground: colors.blue },\n { token: \"regexp\", foreground: colors.lightRed },\n { token: \"type\", foreground: colors.lightRed },\n { token: \"string\", foreground: colors.green },\n { token: \"keyword\", foreground: colors.purple },\n { token: \"operator\", foreground: colors.peach },\n { token: \"delimiter.bracket.embed\", foreground: colors.red },\n { token: \"sigil\", foreground: colors.teal },\n { token: \"function\", foreground: colors.blue },\n { token: \"function.call\", foreground: colors.default },\n\n // Markdown specific\n { token: \"emphasis\", fontStyle: \"italic\" },\n { token: \"strong\", fontStyle: \"bold\" },\n { token: \"keyword.md\", foreground: colors.lightRed },\n { token: \"keyword.table\", foreground: colors.lightRed },\n { token: \"string.link.md\", foreground: colors.blue },\n { token: \"variable.md\", foreground: colors.teal },\n { token: \"string.md\", foreground: colors.default },\n { token: \"variable.source.md\", foreground: colors.default },\n\n // XML specific\n { token: \"tag\", foreground: colors.lightRed },\n { token: \"metatag\", foreground: colors.lightRed },\n { token: \"attribute.name\", foreground: colors.peach },\n { token: \"attribute.value\", foreground: colors.green },\n\n // JSON specific\n { token: \"string.key\", foreground: colors.lightRed },\n { token: \"keyword.json\", foreground: colors.blue },\n\n // SQL specific\n { token: \"operator.sql\", foreground: colors.purple },\n]\n\nconst theme = {\n base: \"vs-dark\",\n inherit: false,\n rules: rules(colors),\n colors: {\n \"editor.background\": colors.background,\n \"editor.foreground\": colors.default,\n \"editorLineNumber.foreground\": \"#636d83\",\n \"editorCursor.foreground\": \"#636d83\",\n \"editor.selectionBackground\": \"#3e4451\",\n \"editor.findMatchHighlightBackground\": \"#528bff3d\",\n \"editorSuggestWidget.background\": \"#21252b\",\n \"editorSuggestWidget.border\": \"#181a1f\",\n \"editorSuggestWidget.selectedBackground\": \"#2c313a\",\n \"input.background\": \"#1b1d23\",\n \"input.border\": \"#181a1f\",\n \"editorBracketMatch.border\": \"#282c34\",\n \"editorBracketMatch.background\": \"#3e4451\",\n },\n}\n\nexport { theme }\n", "// Copied and modified from the original work available at https://github.com/livebook-dev/livebook/blob/8532bc334bdcf3c57fab9b694666e609877d279f/assets/js/hooks/cell_editor/live_editor.js\n// Copyright (C) 2021 Dashbit\n// Licensed under Apache 2.0 available at https://www.apache.org/licenses/LICENSE-2.0\n\nimport loader from \"@monaco-editor/loader\"\nimport { theme } from \"./themes\"\n\nclass CodeEditor {\n constructor(el, path, value, opts) {\n this.el = el\n this.path = path\n this.value = value\n this.opts = opts\n // https://microsoft.github.io/monaco-editor/docs.html#interfaces/editor.IStandaloneCodeEditor.html\n this.standalone_code_editor = null\n this._onMount = []\n }\n\n isMounted() {\n return !!this.standalone_code_editor\n }\n\n mount() {\n if (this.isMounted()) {\n throw new Error(\"The monaco editor is already mounted\")\n }\n\n this._mountEditor()\n }\n\n onMount(callback) {\n this._onMount.push(callback)\n }\n\n dispose() {\n if (this.isMounted()) {\n const model = this.standalone_code_editor.getModel()\n\n if (model) {\n model.dispose()\n }\n\n this.standalone_code_editor.dispose()\n }\n }\n\n _mountEditor() {\n this.opts.value = this.value\n\n loader.init().then((monaco) => {\n monaco.editor.defineTheme(\"default\", theme)\n\n let modelUri = monaco.Uri.parse(this.path)\n let language = this.opts.language\n let model = monaco.editor.createModel(this.value, language, modelUri)\n\n this.opts.language = undefined\n this.opts.model = model\n this.standalone_code_editor = monaco.editor.create(this.el, this.opts)\n\n this._onMount.forEach((callback) => callback(monaco))\n })\n }\n}\n\nexport default CodeEditor\n", "import CodeEditor from \"../editor/code_editor\"\n\nconst CodeEditorHook = {\n mounted() {\n // TODO: validate dataset\n const opts = JSON.parse(this.el.dataset.opts)\n this.codeEditor = new CodeEditor(\n this.el,\n this.el.dataset.path,\n this.el.dataset.value,\n opts\n )\n\n this.codeEditor.onMount((monaco) => {\n this.el.dispatchEvent(\n new CustomEvent(\"lme:editor_mounted\", {\n detail: { hook: this, editor: this.codeEditor },\n bubbles: true,\n })\n )\n\n this.handleEvent(\n \"lme:change_language:\" + this.el.dataset.path,\n (data) => {\n const model = this.codeEditor.standalone_code_editor.getModel()\n\n if (model.getLanguageId() !== data.mimeTypeOrLanguageId) {\n monaco.editor.setModelLanguage(model, data.mimeTypeOrLanguageId)\n }\n }\n )\n\n this.handleEvent(\"lme:set_value:\" + this.el.dataset.path, (data) => {\n this.codeEditor.standalone_code_editor.setValue(data.value)\n })\n\n this.el.querySelectorAll(\"textarea\").forEach((textarea) => {\n textarea.setAttribute(\n \"name\",\n \"live_monaco_editor[\" + this.el.dataset.path + \"]\"\n )\n })\n\n this.el.removeAttribute(\"data-value\")\n this.el.removeAttribute(\"data-opts\")\n })\n\n if (!this.codeEditor.isMounted()) {\n this.codeEditor.mount()\n }\n },\n\n destroyed() {\n if (this.codeEditor) {\n this.codeEditor.dispose()\n }\n },\n}\n\nexport { CodeEditorHook }\n"], - "mappings": ";;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAMA,OAAC,SAAUA,SAAQC,WAAU;AAC3B;AAGA,SAAC,WAAY;AACX,cAAI,WAAW;AACf,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gBAAgB,WAAW;AAAA,QAC3D,GAAG,GAAI;AAAA,MAET,CAAC,EAAE,MAAM,MAAM;AACb,WAAG,YAAY;AAEf,WAAG,UAAU,OAAO,aAAa,kBAAkB,WAAW;AAE9D,WAAG,UAAU,IAAI,gBAAgB,eAAe,gBAAgB;AAAA,MAClE,CAAC;AAAA,IACH,OAAO;AACL;AAAA,QACE;AAAA,MACF;AAAA,IACF;AAAA,EACF,CAAC;AAED,MAAI,aAAa,SAAS,cAAc,MAAM,EAAE,aAAa,YAAY,KAAK;AAC9E,MAAI,YAAY,SAAU,cAAc,yBAAyB,EAAG,aAAa,SAAS;AAC1F,MAAI,aAAa,IAAI,SAAS,WAAW,YAAY,QAAQ,QAAQ;AAAA,IACnE,OAAO;AAAA,IACP,QAAQ,EAAE,aAAa,UAAU;AAAA,EACnC,CAAC;AACD,aAAW,QAAQ;AACnB,SAAO,aAAa;", + "sourcesContent": ["/**\n * @license MIT\n * topbar 2.0.0, 2023-02-04\n * https://buunguyen.github.io/topbar\n * Copyright (c) 2021 Buu Nguyen\n */\n(function (window, document) {\n \"use strict\";\n\n // https://gist.github.com/paulirish/1579671\n (function () {\n var lastTime = 0;\n var vendors = [\"ms\", \"moz\", \"webkit\", \"o\"];\n for (var x = 0; x < vendors.length && !window.requestAnimationFrame; ++x) {\n window.requestAnimationFrame =\n window[vendors[x] + \"RequestAnimationFrame\"];\n window.cancelAnimationFrame =\n window[vendors[x] + \"CancelAnimationFrame\"] ||\n window[vendors[x] + \"CancelRequestAnimationFrame\"];\n }\n if (!window.requestAnimationFrame)\n window.requestAnimationFrame = function (callback, element) {\n var currTime = new Date().getTime();\n var timeToCall = Math.max(0, 16 - (currTime - lastTime));\n var id = window.setTimeout(function () {\n callback(currTime + timeToCall);\n }, timeToCall);\n lastTime = currTime + timeToCall;\n return id;\n };\n if (!window.cancelAnimationFrame)\n window.cancelAnimationFrame = function (id) {\n clearTimeout(id);\n };\n })();\n\n var canvas,\n currentProgress,\n showing,\n progressTimerId = null,\n fadeTimerId = null,\n delayTimerId = null,\n addEvent = function (elem, type, handler) {\n if (elem.addEventListener) elem.addEventListener(type, handler, false);\n else if (elem.attachEvent) elem.attachEvent(\"on\" + type, handler);\n else elem[\"on\" + type] = handler;\n },\n options = {\n autoRun: true,\n barThickness: 3,\n barColors: {\n 0: \"rgba(26, 188, 156, .9)\",\n \".25\": \"rgba(52, 152, 219, .9)\",\n \".50\": \"rgba(241, 196, 15, .9)\",\n \".75\": \"rgba(230, 126, 34, .9)\",\n \"1.0\": \"rgba(211, 84, 0, .9)\",\n },\n shadowBlur: 10,\n shadowColor: \"rgba(0, 0, 0, .6)\",\n className: null,\n },\n repaint = function () {\n canvas.width = window.innerWidth;\n canvas.height = options.barThickness * 5; // need space for shadow\n\n var ctx = canvas.getContext(\"2d\");\n ctx.shadowBlur = options.shadowBlur;\n ctx.shadowColor = options.shadowColor;\n\n var lineGradient = ctx.createLinearGradient(0, 0, canvas.width, 0);\n for (var stop in options.barColors)\n lineGradient.addColorStop(stop, options.barColors[stop]);\n ctx.lineWidth = options.barThickness;\n ctx.beginPath();\n ctx.moveTo(0, options.barThickness / 2);\n ctx.lineTo(\n Math.ceil(currentProgress * canvas.width),\n options.barThickness / 2\n );\n ctx.strokeStyle = lineGradient;\n ctx.stroke();\n },\n createCanvas = function () {\n canvas = document.createElement(\"canvas\");\n var style = canvas.style;\n style.position = \"fixed\";\n style.top = style.left = style.right = style.margin = style.padding = 0;\n style.zIndex = 100001;\n style.display = \"none\";\n if (options.className) canvas.classList.add(options.className);\n document.body.appendChild(canvas);\n addEvent(window, \"resize\", repaint);\n },\n topbar = {\n config: function (opts) {\n for (var key in opts)\n if (options.hasOwnProperty(key)) options[key] = opts[key];\n },\n show: function (delay) {\n if (showing) return;\n if (delay) {\n if (delayTimerId) return;\n delayTimerId = setTimeout(() => topbar.show(), delay);\n } else {\n showing = true;\n if (fadeTimerId !== null) window.cancelAnimationFrame(fadeTimerId);\n if (!canvas) createCanvas();\n canvas.style.opacity = 1;\n canvas.style.display = \"block\";\n topbar.progress(0);\n if (options.autoRun) {\n (function loop() {\n progressTimerId = window.requestAnimationFrame(loop);\n topbar.progress(\n \"+\" + 0.05 * Math.pow(1 - Math.sqrt(currentProgress), 2)\n );\n })();\n }\n }\n },\n progress: function (to) {\n if (typeof to === \"undefined\") return currentProgress;\n if (typeof to === \"string\") {\n to =\n (to.indexOf(\"+\") >= 0 || to.indexOf(\"-\") >= 0\n ? currentProgress\n : 0) + parseFloat(to);\n }\n currentProgress = to > 1 ? 1 : to;\n repaint();\n return currentProgress;\n },\n hide: function () {\n clearTimeout(delayTimerId);\n delayTimerId = null;\n if (!showing) return;\n showing = false;\n if (progressTimerId != null) {\n window.cancelAnimationFrame(progressTimerId);\n progressTimerId = null;\n }\n (function loop() {\n if (topbar.progress(\"+.1\") >= 1) {\n canvas.style.opacity -= 0.05;\n if (canvas.style.opacity <= 0.05) {\n canvas.style.display = \"none\";\n fadeTimerId = null;\n return;\n }\n }\n fadeTimerId = window.requestAnimationFrame(loop);\n })();\n },\n };\n\n if (typeof module === \"object\" && typeof module.exports === \"object\") {\n module.exports = topbar;\n } else if (typeof define === \"function\" && define.amd) {\n define(function () {\n return topbar;\n });\n } else {\n this.topbar = topbar;\n }\n}.call(this, window, document));\n", "import topbar from \"../vendor/topbar\"\nimport { CodeEditorHook } from \"../../deps/live_monaco_editor/priv/static/live_monaco_editor.esm\"\n\nlet Hooks = {}\nHooks.CodeEditorHook = CodeEditorHook\n\ntopbar.config({barColors: {0: \"#29d\"}, shadowColor: \"rgba(0, 0, 0, .3)\"})\nwindow.addEventListener(\"phx:page-loading-start\", _info => topbar.show(300))\nwindow.addEventListener(\"phx:page-loading-stop\", _info => topbar.hide())\n\nwindow.addEventListener(\"lme:editor_mounted\", (ev) => {\n const hook = ev.detail.hook\n const editor = ev.detail.editor.standalone_code_editor\n const eventName = ev.detail.editor.path + \"_editor_lost_focus\"\n\n editor.onDidBlurEditorWidget(() => {\n hook.pushEvent(eventName, { value: editor.getValue() })\n })\n})\n\nwindow.addEventListener(\"beacon_admin:clipcopy\", (event) => {\n const result_id = `${event.target.id}-copy-to-clipboard-result`\n const el = document.getElementById(result_id);\n\n if (\"clipboard\" in navigator) {\n if (event.target.tagName === \"INPUT\") {\n txt = event.target.value;\n } else {\n txt = event.target.textContent;\n }\n\n navigator.clipboard.writeText(txt).then(() => {\n el.innerText = 'Copied to clipboard';\n // Make it visible\n el.classList.remove('invisible', 'text-red-500', 'opacity-0');\n // Fade in and translate upwards\n el.classList.add('text-green-500', 'opacity-100', '-translate-y-2');\n\n setTimeout(function() {\n el.classList.remove('text-green-500', 'opacity-100', '-translate-y-2');\n el.classList.add('invisible', 'text-red-500', 'opacity-0');\n }, 2000);\n\n }).catch(() => {\n el.innerText = 'Could not copy';\n // Make it visible\n el.classList.remove('invisible', 'text-green-500', 'opacity-0');\n // Fade in and translate upwards\n el.classList.add('text-red-500', 'opacity-100', '-translate-y-2');\n })\n } else {\n alert(\n \"Sorry, your browser does not support clipboard copy.\"\n );\n }\n});\n\nlet socketPath = document.querySelector(\"html\").getAttribute(\"phx-socket\") || \"/live\"\nlet csrfToken = document .querySelector(\"meta[name='csrf-token']\") .getAttribute(\"content\")\nlet liveSocket = new LiveView.LiveSocket(socketPath, Phoenix.Socket, {\n hooks: Hooks,\n params: { _csrf_token: csrfToken },\n})\nliveSocket.connect()\nwindow.liveSocket = liveSocket\n", "function _defineProperty(obj, key, value) {\n if (key in obj) {\n Object.defineProperty(obj, key, {\n value: value,\n enumerable: true,\n configurable: true,\n writable: true\n });\n } else {\n obj[key] = value;\n }\n\n return obj;\n}\n\nfunction ownKeys(object, enumerableOnly) {\n var keys = Object.keys(object);\n\n if (Object.getOwnPropertySymbols) {\n var symbols = Object.getOwnPropertySymbols(object);\n if (enumerableOnly) symbols = symbols.filter(function (sym) {\n return Object.getOwnPropertyDescriptor(object, sym).enumerable;\n });\n keys.push.apply(keys, symbols);\n }\n\n return keys;\n}\n\nfunction _objectSpread2(target) {\n for (var i = 1; i < arguments.length; i++) {\n var source = arguments[i] != null ? arguments[i] : {};\n\n if (i % 2) {\n ownKeys(Object(source), true).forEach(function (key) {\n _defineProperty(target, key, source[key]);\n });\n } else if (Object.getOwnPropertyDescriptors) {\n Object.defineProperties(target, Object.getOwnPropertyDescriptors(source));\n } else {\n ownKeys(Object(source)).forEach(function (key) {\n Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));\n });\n }\n }\n\n return target;\n}\n\nfunction _objectWithoutPropertiesLoose(source, excluded) {\n if (source == null) return {};\n var target = {};\n var sourceKeys = Object.keys(source);\n var key, i;\n\n for (i = 0; i < sourceKeys.length; i++) {\n key = sourceKeys[i];\n if (excluded.indexOf(key) >= 0) continue;\n target[key] = source[key];\n }\n\n return target;\n}\n\nfunction _objectWithoutProperties(source, excluded) {\n if (source == null) return {};\n\n var target = _objectWithoutPropertiesLoose(source, excluded);\n\n var key, i;\n\n if (Object.getOwnPropertySymbols) {\n var sourceSymbolKeys = Object.getOwnPropertySymbols(source);\n\n for (i = 0; i < sourceSymbolKeys.length; i++) {\n key = sourceSymbolKeys[i];\n if (excluded.indexOf(key) >= 0) continue;\n if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue;\n target[key] = source[key];\n }\n }\n\n return target;\n}\n\nfunction _slicedToArray(arr, i) {\n return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest();\n}\n\nfunction _arrayWithHoles(arr) {\n if (Array.isArray(arr)) return arr;\n}\n\nfunction _iterableToArrayLimit(arr, i) {\n if (typeof Symbol === \"undefined\" || !(Symbol.iterator in Object(arr))) return;\n var _arr = [];\n var _n = true;\n var _d = false;\n var _e = undefined;\n\n try {\n for (var _i = arr[Symbol.iterator](), _s; !(_n = (_s = _i.next()).done); _n = true) {\n _arr.push(_s.value);\n\n if (i && _arr.length === i) break;\n }\n } catch (err) {\n _d = true;\n _e = err;\n } finally {\n try {\n if (!_n && _i[\"return\"] != null) _i[\"return\"]();\n } finally {\n if (_d) throw _e;\n }\n }\n\n return _arr;\n}\n\nfunction _unsupportedIterableToArray(o, minLen) {\n if (!o) return;\n if (typeof o === \"string\") return _arrayLikeToArray(o, minLen);\n var n = Object.prototype.toString.call(o).slice(8, -1);\n if (n === \"Object\" && o.constructor) n = o.constructor.name;\n if (n === \"Map\" || n === \"Set\") return Array.from(o);\n if (n === \"Arguments\" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen);\n}\n\nfunction _arrayLikeToArray(arr, len) {\n if (len == null || len > arr.length) len = arr.length;\n\n for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i];\n\n return arr2;\n}\n\nfunction _nonIterableRest() {\n throw new TypeError(\"Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.\");\n}\n\nexport { _arrayLikeToArray as arrayLikeToArray, _arrayWithHoles as arrayWithHoles, _defineProperty as defineProperty, _iterableToArrayLimit as iterableToArrayLimit, _nonIterableRest as nonIterableRest, _objectSpread2 as objectSpread2, _objectWithoutProperties as objectWithoutProperties, _objectWithoutPropertiesLoose as objectWithoutPropertiesLoose, _slicedToArray as slicedToArray, _unsupportedIterableToArray as unsupportedIterableToArray };\n", "function _defineProperty(obj, key, value) {\n if (key in obj) {\n Object.defineProperty(obj, key, {\n value: value,\n enumerable: true,\n configurable: true,\n writable: true\n });\n } else {\n obj[key] = value;\n }\n\n return obj;\n}\n\nfunction ownKeys(object, enumerableOnly) {\n var keys = Object.keys(object);\n\n if (Object.getOwnPropertySymbols) {\n var symbols = Object.getOwnPropertySymbols(object);\n if (enumerableOnly) symbols = symbols.filter(function (sym) {\n return Object.getOwnPropertyDescriptor(object, sym).enumerable;\n });\n keys.push.apply(keys, symbols);\n }\n\n return keys;\n}\n\nfunction _objectSpread2(target) {\n for (var i = 1; i < arguments.length; i++) {\n var source = arguments[i] != null ? arguments[i] : {};\n\n if (i % 2) {\n ownKeys(Object(source), true).forEach(function (key) {\n _defineProperty(target, key, source[key]);\n });\n } else if (Object.getOwnPropertyDescriptors) {\n Object.defineProperties(target, Object.getOwnPropertyDescriptors(source));\n } else {\n ownKeys(Object(source)).forEach(function (key) {\n Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));\n });\n }\n }\n\n return target;\n}\n\nfunction compose() {\n for (var _len = arguments.length, fns = new Array(_len), _key = 0; _key < _len; _key++) {\n fns[_key] = arguments[_key];\n }\n\n return function (x) {\n return fns.reduceRight(function (y, f) {\n return f(y);\n }, x);\n };\n}\n\nfunction curry(fn) {\n return function curried() {\n var _this = this;\n\n for (var _len2 = arguments.length, args = new Array(_len2), _key2 = 0; _key2 < _len2; _key2++) {\n args[_key2] = arguments[_key2];\n }\n\n return args.length >= fn.length ? fn.apply(this, args) : function () {\n for (var _len3 = arguments.length, nextArgs = new Array(_len3), _key3 = 0; _key3 < _len3; _key3++) {\n nextArgs[_key3] = arguments[_key3];\n }\n\n return curried.apply(_this, [].concat(args, nextArgs));\n };\n };\n}\n\nfunction isObject(value) {\n return {}.toString.call(value).includes('Object');\n}\n\nfunction isEmpty(obj) {\n return !Object.keys(obj).length;\n}\n\nfunction isFunction(value) {\n return typeof value === 'function';\n}\n\nfunction hasOwnProperty(object, property) {\n return Object.prototype.hasOwnProperty.call(object, property);\n}\n\nfunction validateChanges(initial, changes) {\n if (!isObject(changes)) errorHandler('changeType');\n if (Object.keys(changes).some(function (field) {\n return !hasOwnProperty(initial, field);\n })) errorHandler('changeField');\n return changes;\n}\n\nfunction validateSelector(selector) {\n if (!isFunction(selector)) errorHandler('selectorType');\n}\n\nfunction validateHandler(handler) {\n if (!(isFunction(handler) || isObject(handler))) errorHandler('handlerType');\n if (isObject(handler) && Object.values(handler).some(function (_handler) {\n return !isFunction(_handler);\n })) errorHandler('handlersType');\n}\n\nfunction validateInitial(initial) {\n if (!initial) errorHandler('initialIsRequired');\n if (!isObject(initial)) errorHandler('initialType');\n if (isEmpty(initial)) errorHandler('initialContent');\n}\n\nfunction throwError(errorMessages, type) {\n throw new Error(errorMessages[type] || errorMessages[\"default\"]);\n}\n\nvar errorMessages = {\n initialIsRequired: 'initial state is required',\n initialType: 'initial state should be an object',\n initialContent: 'initial state shouldn\\'t be an empty object',\n handlerType: 'handler should be an object or a function',\n handlersType: 'all handlers should be a functions',\n selectorType: 'selector should be a function',\n changeType: 'provided value of changes should be an object',\n changeField: 'it seams you want to change a field in the state which is not specified in the \"initial\" state',\n \"default\": 'an unknown error accured in `state-local` package'\n};\nvar errorHandler = curry(throwError)(errorMessages);\nvar validators = {\n changes: validateChanges,\n selector: validateSelector,\n handler: validateHandler,\n initial: validateInitial\n};\n\nfunction create(initial) {\n var handler = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};\n validators.initial(initial);\n validators.handler(handler);\n var state = {\n current: initial\n };\n var didUpdate = curry(didStateUpdate)(state, handler);\n var update = curry(updateState)(state);\n var validate = curry(validators.changes)(initial);\n var getChanges = curry(extractChanges)(state);\n\n function getState() {\n var selector = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : function (state) {\n return state;\n };\n validators.selector(selector);\n return selector(state.current);\n }\n\n function setState(causedChanges) {\n compose(didUpdate, update, validate, getChanges)(causedChanges);\n }\n\n return [getState, setState];\n}\n\nfunction extractChanges(state, causedChanges) {\n return isFunction(causedChanges) ? causedChanges(state.current) : causedChanges;\n}\n\nfunction updateState(state, changes) {\n state.current = _objectSpread2(_objectSpread2({}, state.current), changes);\n return changes;\n}\n\nfunction didStateUpdate(state, handler, changes) {\n isFunction(handler) ? handler(state.current) : Object.keys(changes).forEach(function (field) {\n var _handler$field;\n\n return (_handler$field = handler[field]) === null || _handler$field === void 0 ? void 0 : _handler$field.call(handler, state.current[field]);\n });\n return changes;\n}\n\nvar index = {\n create: create\n};\n\nexport default index;\n", "var config = {\n paths: {\n vs: 'https://cdn.jsdelivr.net/npm/monaco-editor@0.36.1/min/vs'\n }\n};\n\nexport default config;\n", "function curry(fn) {\n return function curried() {\n var _this = this;\n\n for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {\n args[_key] = arguments[_key];\n }\n\n return args.length >= fn.length ? fn.apply(this, args) : function () {\n for (var _len2 = arguments.length, nextArgs = new Array(_len2), _key2 = 0; _key2 < _len2; _key2++) {\n nextArgs[_key2] = arguments[_key2];\n }\n\n return curried.apply(_this, [].concat(args, nextArgs));\n };\n };\n}\n\nexport default curry;\n", "function isObject(value) {\n return {}.toString.call(value).includes('Object');\n}\n\nexport default isObject;\n", "import curry from '../utils/curry.js';\nimport isObject from '../utils/isObject.js';\n\n/**\n * validates the configuration object and informs about deprecation\n * @param {Object} config - the configuration object \n * @return {Object} config - the validated configuration object\n */\n\nfunction validateConfig(config) {\n if (!config) errorHandler('configIsRequired');\n if (!isObject(config)) errorHandler('configType');\n\n if (config.urls) {\n informAboutDeprecation();\n return {\n paths: {\n vs: config.urls.monacoBase\n }\n };\n }\n\n return config;\n}\n/**\n * logs deprecation message\n */\n\n\nfunction informAboutDeprecation() {\n console.warn(errorMessages.deprecation);\n}\n\nfunction throwError(errorMessages, type) {\n throw new Error(errorMessages[type] || errorMessages[\"default\"]);\n}\n\nvar errorMessages = {\n configIsRequired: 'the configuration object is required',\n configType: 'the configuration object should be an object',\n \"default\": 'an unknown error accured in `@monaco-editor/loader` package',\n deprecation: \"Deprecation warning!\\n You are using deprecated way of configuration.\\n\\n Instead of using\\n monaco.config({ urls: { monacoBase: '...' } })\\n use\\n monaco.config({ paths: { vs: '...' } })\\n\\n For more please check the link https://github.com/suren-atoyan/monaco-loader#config\\n \"\n};\nvar errorHandler = curry(throwError)(errorMessages);\nvar validators = {\n config: validateConfig\n};\n\nexport default validators;\nexport { errorHandler, errorMessages };\n", "var compose = function compose() {\n for (var _len = arguments.length, fns = new Array(_len), _key = 0; _key < _len; _key++) {\n fns[_key] = arguments[_key];\n }\n\n return function (x) {\n return fns.reduceRight(function (y, f) {\n return f(y);\n }, x);\n };\n};\n\nexport default compose;\n", "import { objectSpread2 as _objectSpread2 } from '../_virtual/_rollupPluginBabelHelpers.js';\n\nfunction merge(target, source) {\n Object.keys(source).forEach(function (key) {\n if (source[key] instanceof Object) {\n if (target[key]) {\n Object.assign(source[key], merge(target[key], source[key]));\n }\n }\n });\n return _objectSpread2(_objectSpread2({}, target), source);\n}\n\nexport default merge;\n", "// The source (has been changed) is https://github.com/facebook/react/issues/5465#issuecomment-157888325\nvar CANCELATION_MESSAGE = {\n type: 'cancelation',\n msg: 'operation is manually canceled'\n};\n\nfunction makeCancelable(promise) {\n var hasCanceled_ = false;\n var wrappedPromise = new Promise(function (resolve, reject) {\n promise.then(function (val) {\n return hasCanceled_ ? reject(CANCELATION_MESSAGE) : resolve(val);\n });\n promise[\"catch\"](reject);\n });\n return wrappedPromise.cancel = function () {\n return hasCanceled_ = true;\n }, wrappedPromise;\n}\n\nexport default makeCancelable;\nexport { CANCELATION_MESSAGE };\n", "import { slicedToArray as _slicedToArray, objectWithoutProperties as _objectWithoutProperties } from '../_virtual/_rollupPluginBabelHelpers.js';\nimport state from 'state-local';\nimport config$1 from '../config/index.js';\nimport validators from '../validators/index.js';\nimport compose from '../utils/compose.js';\nimport merge from '../utils/deepMerge.js';\nimport makeCancelable from '../utils/makeCancelable.js';\n\n/** the local state of the module */\n\nvar _state$create = state.create({\n config: config$1,\n isInitialized: false,\n resolve: null,\n reject: null,\n monaco: null\n}),\n _state$create2 = _slicedToArray(_state$create, 2),\n getState = _state$create2[0],\n setState = _state$create2[1];\n/**\n * set the loader configuration\n * @param {Object} config - the configuration object\n */\n\n\nfunction config(globalConfig) {\n var _validators$config = validators.config(globalConfig),\n monaco = _validators$config.monaco,\n config = _objectWithoutProperties(_validators$config, [\"monaco\"]);\n\n setState(function (state) {\n return {\n config: merge(state.config, config),\n monaco: monaco\n };\n });\n}\n/**\n * handles the initialization of the monaco-editor\n * @return {Promise} - returns an instance of monaco (with a cancelable promise)\n */\n\n\nfunction init() {\n var state = getState(function (_ref) {\n var monaco = _ref.monaco,\n isInitialized = _ref.isInitialized,\n resolve = _ref.resolve;\n return {\n monaco: monaco,\n isInitialized: isInitialized,\n resolve: resolve\n };\n });\n\n if (!state.isInitialized) {\n setState({\n isInitialized: true\n });\n\n if (state.monaco) {\n state.resolve(state.monaco);\n return makeCancelable(wrapperPromise);\n }\n\n if (window.monaco && window.monaco.editor) {\n storeMonacoInstance(window.monaco);\n state.resolve(window.monaco);\n return makeCancelable(wrapperPromise);\n }\n\n compose(injectScripts, getMonacoLoaderScript)(configureLoader);\n }\n\n return makeCancelable(wrapperPromise);\n}\n/**\n * injects provided scripts into the document.body\n * @param {Object} script - an HTML script element\n * @return {Object} - the injected HTML script element\n */\n\n\nfunction injectScripts(script) {\n return document.body.appendChild(script);\n}\n/**\n * creates an HTML script element with/without provided src\n * @param {string} [src] - the source path of the script\n * @return {Object} - the created HTML script element\n */\n\n\nfunction createScript(src) {\n var script = document.createElement('script');\n return src && (script.src = src), script;\n}\n/**\n * creates an HTML script element with the monaco loader src\n * @return {Object} - the created HTML script element\n */\n\n\nfunction getMonacoLoaderScript(configureLoader) {\n var state = getState(function (_ref2) {\n var config = _ref2.config,\n reject = _ref2.reject;\n return {\n config: config,\n reject: reject\n };\n });\n var loaderScript = createScript(\"\".concat(state.config.paths.vs, \"/loader.js\"));\n\n loaderScript.onload = function () {\n return configureLoader();\n };\n\n loaderScript.onerror = state.reject;\n return loaderScript;\n}\n/**\n * configures the monaco loader\n */\n\n\nfunction configureLoader() {\n var state = getState(function (_ref3) {\n var config = _ref3.config,\n resolve = _ref3.resolve,\n reject = _ref3.reject;\n return {\n config: config,\n resolve: resolve,\n reject: reject\n };\n });\n var require = window.require;\n\n require.config(state.config);\n\n require(['vs/editor/editor.main'], function (monaco) {\n storeMonacoInstance(monaco);\n state.resolve(monaco);\n }, function (error) {\n state.reject(error);\n });\n}\n/**\n * store monaco instance in local state\n */\n\n\nfunction storeMonacoInstance(monaco) {\n if (!getState().monaco) {\n setState({\n monaco: monaco\n });\n }\n}\n/**\n * internal helper function\n * extracts stored monaco instance\n * @return {Object|null} - the monaco instance\n */\n\n\nfunction __getMonacoInstance() {\n return getState(function (_ref4) {\n var monaco = _ref4.monaco;\n return monaco;\n });\n}\n\nvar wrapperPromise = new Promise(function (resolve, reject) {\n return setState({\n resolve: resolve,\n reject: reject\n });\n});\nvar loader = {\n config: config,\n init: init,\n __getMonacoInstance: __getMonacoInstance\n};\n\nexport default loader;\n", "// Copied and modified from the original work available at https://github.com/livebook-dev/livebook/blob/23e58ac604de92ce54472f36fe3e28dc27576d6c/assets/js/hooks/cell_editor/live_editor/theme.js\n// Copyright (C) 2021 Dashbit\n// Licensed under Apache 2.0 available at https://www.apache.org/licenses/LICENSE-2.0\n\n// This is a port of the One Dark theme to the Monaco editor.\n// We color graded the comment so it has AA accessibility and\n// then similarly scaled the default font.\nconst colors = {\n background: \"#282c34\",\n default: \"#c4cad6\",\n lightRed: \"#e06c75\",\n blue: \"#61afef\",\n gray: \"#8c92a3\",\n green: \"#98c379\",\n purple: \"#c678dd\",\n red: \"#be5046\",\n teal: \"#56b6c2\",\n peach: \"#d19a66\",\n}\n\nconst rules = (colors) => [\n { token: \"\", foreground: colors.default },\n { token: \"variable\", foreground: colors.lightRed },\n { token: \"constant\", foreground: colors.blue },\n { token: \"constant.character.escape\", foreground: colors.blue },\n { token: \"comment\", foreground: colors.gray },\n { token: \"number\", foreground: colors.blue },\n { token: \"regexp\", foreground: colors.lightRed },\n { token: \"type\", foreground: colors.lightRed },\n { token: \"string\", foreground: colors.green },\n { token: \"keyword\", foreground: colors.purple },\n { token: \"operator\", foreground: colors.peach },\n { token: \"delimiter.bracket.embed\", foreground: colors.red },\n { token: \"sigil\", foreground: colors.teal },\n { token: \"function\", foreground: colors.blue },\n { token: \"function.call\", foreground: colors.default },\n\n // Markdown specific\n { token: \"emphasis\", fontStyle: \"italic\" },\n { token: \"strong\", fontStyle: \"bold\" },\n { token: \"keyword.md\", foreground: colors.lightRed },\n { token: \"keyword.table\", foreground: colors.lightRed },\n { token: \"string.link.md\", foreground: colors.blue },\n { token: \"variable.md\", foreground: colors.teal },\n { token: \"string.md\", foreground: colors.default },\n { token: \"variable.source.md\", foreground: colors.default },\n\n // XML specific\n { token: \"tag\", foreground: colors.lightRed },\n { token: \"metatag\", foreground: colors.lightRed },\n { token: \"attribute.name\", foreground: colors.peach },\n { token: \"attribute.value\", foreground: colors.green },\n\n // JSON specific\n { token: \"string.key\", foreground: colors.lightRed },\n { token: \"keyword.json\", foreground: colors.blue },\n\n // SQL specific\n { token: \"operator.sql\", foreground: colors.purple },\n]\n\nconst theme = {\n base: \"vs-dark\",\n inherit: false,\n rules: rules(colors),\n colors: {\n \"editor.background\": colors.background,\n \"editor.foreground\": colors.default,\n \"editorLineNumber.foreground\": \"#636d83\",\n \"editorCursor.foreground\": \"#636d83\",\n \"editor.selectionBackground\": \"#3e4451\",\n \"editor.findMatchHighlightBackground\": \"#528bff3d\",\n \"editorSuggestWidget.background\": \"#21252b\",\n \"editorSuggestWidget.border\": \"#181a1f\",\n \"editorSuggestWidget.selectedBackground\": \"#2c313a\",\n \"input.background\": \"#1b1d23\",\n \"input.border\": \"#181a1f\",\n \"editorBracketMatch.border\": \"#282c34\",\n \"editorBracketMatch.background\": \"#3e4451\",\n },\n}\n\nexport { theme }\n", "// Copied and modified from the original work available at https://github.com/livebook-dev/livebook/blob/8532bc334bdcf3c57fab9b694666e609877d279f/assets/js/hooks/cell_editor/live_editor.js\n// Copyright (C) 2021 Dashbit\n// Licensed under Apache 2.0 available at https://www.apache.org/licenses/LICENSE-2.0\n\nimport loader from \"@monaco-editor/loader\"\nimport { theme } from \"./themes\"\n\nclass CodeEditor {\n constructor(el, path, value, opts) {\n this.el = el\n this.path = path\n this.value = value\n this.opts = opts\n // https://microsoft.github.io/monaco-editor/docs.html#interfaces/editor.IStandaloneCodeEditor.html\n this.standalone_code_editor = null\n this._onMount = []\n }\n\n isMounted() {\n return !!this.standalone_code_editor\n }\n\n mount() {\n if (this.isMounted()) {\n throw new Error(\"The monaco editor is already mounted\")\n }\n\n this._mountEditor()\n }\n\n onMount(callback) {\n this._onMount.push(callback)\n }\n\n dispose() {\n if (this.isMounted()) {\n const model = this.standalone_code_editor.getModel()\n\n if (model) {\n model.dispose()\n }\n\n this.standalone_code_editor.dispose()\n }\n }\n\n _mountEditor() {\n this.opts.value = this.value\n\n loader.config({\n paths: { vs: \"https://cdn.jsdelivr.net/npm/monaco-editor@latest/min/vs\" },\n })\n\n loader.init().then((monaco) => {\n monaco.editor.defineTheme(\"default\", theme)\n\n let modelUri = monaco.Uri.parse(this.path)\n let language = this.opts.language\n let model = monaco.editor.createModel(this.value, language, modelUri)\n\n this.opts.language = undefined\n this.opts.model = model\n this.standalone_code_editor = monaco.editor.create(this.el, this.opts)\n\n this._onMount.forEach((callback) => callback(monaco))\n })\n }\n}\n\nexport default CodeEditor\n", "import CodeEditor from \"../editor/code_editor\"\n\nconst CodeEditorHook = {\n mounted() {\n // TODO: validate dataset\n const opts = JSON.parse(this.el.dataset.opts)\n this.codeEditor = new CodeEditor(\n this.el,\n this.el.dataset.path,\n this.el.dataset.value,\n opts\n )\n\n this.codeEditor.onMount((monaco) => {\n this.el.dispatchEvent(\n new CustomEvent(\"lme:editor_mounted\", {\n detail: { hook: this, editor: this.codeEditor },\n bubbles: true,\n })\n )\n\n this.handleEvent(\n \"lme:change_language:\" + this.el.dataset.path,\n (data) => {\n const model = this.codeEditor.standalone_code_editor.getModel()\n\n if (model.getLanguageId() !== data.mimeTypeOrLanguageId) {\n monaco.editor.setModelLanguage(model, data.mimeTypeOrLanguageId)\n }\n }\n )\n\n this.handleEvent(\"lme:set_value:\" + this.el.dataset.path, (data) => {\n this.codeEditor.standalone_code_editor.setValue(data.value)\n })\n\n this.el.querySelectorAll(\"textarea\").forEach((textarea) => {\n textarea.setAttribute(\n \"name\",\n \"live_monaco_editor[\" + this.el.dataset.path + \"]\"\n )\n })\n\n this.el.removeAttribute(\"data-value\")\n this.el.removeAttribute(\"data-opts\")\n })\n\n if (!this.codeEditor.isMounted()) {\n this.codeEditor.mount()\n }\n },\n\n destroyed() {\n if (this.codeEditor) {\n this.codeEditor.dispose()\n }\n },\n}\n\nexport { CodeEditorHook }\n"], + "mappings": ";;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAMA,OAAC,SAAUA,SAAQC,WAAU;AAC3B;AAGA,SAAC,WAAY;AACX,cAAI,WAAW;AACf,cAAI,UAAU,CAAC,MAAM,OAAO,UAAU,GAAG;AACzC,mBAAS,IAAI,GAAG,IAAI,QAAQ,UAAU,CAACD,QAAO,uBAAuB,EAAE,GAAG;AACxE,YAAAA,QAAO,wBACLA,QAAO,QAAQ,CAAC,IAAI,uBAAuB;AAC7C,YAAAA,QAAO,uBACLA,QAAO,QAAQ,CAAC,IAAI,sBAAsB,KAC1CA,QAAO,QAAQ,CAAC,IAAI,6BAA6B;AAAA,UACrD;AACA,cAAI,CAACA,QAAO;AACV,YAAAA,QAAO,wBAAwB,SAAU,UAAU,SAAS;AAC1D,kBAAI,YAAW,oBAAI,KAAK,GAAE,QAAQ;AAClC,kBAAI,aAAa,KAAK,IAAI,GAAG,MAAM,WAAW,SAAS;AACvD,kBAAI,KAAKA,QAAO,WAAW,WAAY;AACrC,yBAAS,WAAW,UAAU;AAAA,cAChC,GAAG,UAAU;AACb,yBAAW,WAAW;AACtB,qBAAO;AAAA,YACT;AACF,cAAI,CAACA,QAAO;AACV,YAAAA,QAAO,uBAAuB,SAAU,IAAI;AAC1C,2BAAa,EAAE;AAAA,YACjB;AAAA,QACJ,GAAG;AAEH,YAAI,QACF,iBACA,SACA,kBAAkB,MAClB,cAAc,MACd,eAAe,MACf,WAAW,SAAU,MAAM,MAAM,SAAS;AACxC,cAAI,KAAK;AAAkB,iBAAK,iBAAiB,MAAM,SAAS,KAAK;AAAA,mBAC5D,KAAK;AAAa,iBAAK,YAAY,OAAO,MAAM,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,eAAe,WAAW;AAC5B,UAAI,MAAM,OAAO,YAAY,SAAS;AACpC,cAAM,MAAM,OAAO;AAAA,MACrB,OAAO;AACL,cAAM,MAAM,OAAO;AAAA,MACrB;AAEA,gBAAU,UAAU,UAAU,GAAG,EAAE,KAAK,MAAM;AAC5C,WAAG,YAAY;AAEf,WAAG,UAAU,OAAO,aAAa,gBAAgB,WAAW;AAE5D,WAAG,UAAU,IAAI,kBAAkB,eAAe,gBAAgB;AAElE,mBAAW,WAAW;AACpB,aAAG,UAAU,OAAO,kBAAkB,eAAe,gBAAgB;AACrE,aAAG,UAAU,IAAI,aAAa,gBAAgB,WAAW;AAAA,QAC3D,GAAG,GAAI;AAAA,MAET,CAAC,EAAE,MAAM,MAAM;AACb,WAAG,YAAY;AAEf,WAAG,UAAU,OAAO,aAAa,kBAAkB,WAAW;AAE9D,WAAG,UAAU,IAAI,gBAAgB,eAAe,gBAAgB;AAAA,MAClE,CAAC;AAAA,IACH,OAAO;AACL;AAAA,QACE;AAAA,MACF;AAAA,IACF;AAAA,EACF,CAAC;AAED,MAAI,aAAa,SAAS,cAAc,MAAM,EAAE,aAAa,YAAY,KAAK;AAC9E,MAAI,YAAY,SAAU,cAAc,yBAAyB,EAAG,aAAa,SAAS;AAC1F,MAAI,aAAa,IAAI,SAAS,WAAW,YAAY,QAAQ,QAAQ;AAAA,IACnE,OAAO;AAAA,IACP,QAAQ,EAAE,aAAa,UAAU;AAAA,EACnC,CAAC;AACD,aAAW,QAAQ;AACnB,SAAO,aAAa;", "names": ["window", "document", "topbar", "_defineProperty", "ownKeys", "_objectSpread2", "errorMessages", "getState", "state", "setState", "curry", "isObject", "config", "errorHandler", "throwError", "validators", "compose", "configureLoader", "require", "colors", "topbar"] } diff --git a/priv/static/beacon_live_admin.min.css.map b/priv/static/beacon_live_admin.min.css.map index d2ac1f6e..ec877fc3 100644 --- a/priv/static/beacon_live_admin.min.css.map +++ b/priv/static/beacon_live_admin.min.css.map @@ -1 +1 @@ -{"version":3,"sources":["../../assets/css/beacon_live_admin.css","","%3Cinput%20css%20o3XDJJ%3E","../../deps/live_monaco_editor/assets/node_modules/@fontsource/jetbrains-mono/index.css"],"names":[],"mappings":"AAIA,mHAAmH;ACJnH,gEAAA,ACKA,iBAME,sBAAwD,CAHxD,qBAIF,CAEA,eAEE,eACF,CAWA,KAEE,6BAA8B,CAI9B,4BAA8E,CAD9E,kNAAsP,CAEtP,8BAAkF,CANlF,eAAgB,CAEhB,eAAgB,CAChB,aAAW,CAAX,UAIF,CAOA,KAEE,mBAAoB,CADpB,QAEF,CAQA,GAGE,oBAAqB,CADrB,aAAc,CADd,QAGF,CAMA,oBACE,wCAAiC,CAAjC,gCACF,CAMA,kBAME,iBAAkB,CAClB,mBACF,CAMA,EACE,aAAc,CACd,uBACF,CAMA,SAEE,kBACF,CAOA,kBAIE,mGAAyI,CACzI,aACF,CAMA,MACE,aACF,CAMA,QAEE,aAAc,CACd,aAAc,CACd,iBAAkB,CAClB,sBACF,CAEA,IACE,aACF,CAEA,IACE,SACF,CAQA,MAGE,wBAAyB,CADzB,oBAAqB,CADrB,aAGF,CAQA,sCAME,6BAA8B,CAK9B,aAAc,CANd,mBAAoB,CAGpB,cAAe,CADf,+BAAgC,CAEhC,mBAAoB,CACpB,mBAAoB,CAEpB,QAAS,CACT,SACF,CAMA,cAEE,mBACF,CAOA,gDAIE,yBAA0B,CAC1B,wBAA6B,CAC7B,qBACF,CAMA,gBACE,YACF,CAMA,iBACE,eACF,CAMA,SACE,sBACF,CAMA,wDAEE,WACF,CAOA,cACE,4BAA6B,CAC7B,mBACF,CAMA,4BACE,uBACF,CAOA,6BACE,yBAA0B,CAC1B,YACF,CAMA,QACE,iBACF,CAMA,mDAaE,QACF,CAEA,SACE,QAEF,CAEA,gBAHE,SAKF,CAEA,WAGE,eAAgB,CAChB,QAAS,CACT,SACF,CAKA,OACE,SACF,CAMA,SACE,eACF,CAOA,mDAGE,aAAwC,CADxC,SAEF,CAJA,yCAGE,aAAwC,C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CAA,ADAA,oBCAA,ADAA,eAAA,mBCAA,CAAA,ADAA,yBAAA,iBAAA,8CCAA,ADAA,cAAA,mBCAA,ADAA,iBAAA,iBCAA,ADAA,iBCAA,CAAA,ADAA,0BAAA,gBAAA,0BCAA,ADAA,gBAAA,0BCAA,ADAA,UAAA,cCAA,ADAA,eCAA,ADAA,iCAAA,2BCAA,ADAA,iCAAA,2BCAA,ADAA,iCAAA,2BCAA,ADAA,iCAAA,2BCAA,ADAA,YAAA,YCAA,ADAA,gBAAA,eCAA,ADAA,iBAAA,8CCAA,ADAA,qBAAA,gBCAA,ADAA,oBAAA,4BCAA,ADAA,6BCAA,ADAA,4BAAA,+BCAA,ADAA,gCCAA,ADAA,UAAA,kBCAA,ADAA,mBCAA,ADAA,UAAA,oBCAA,ADAA,iBCAA,CAAA,ADAA,2EAAA,2GCAA,ADAA,yGCAA,ADAA,yFCAA,ADAA,8BAAA,wFAAA,2GCAA,ADAA,yGCAA,ADAA,yFCAA,CAAA,ADAA,2BAAA,iBCAA,ADAA,4HAAA,4BCAA,ADAA,8DCAA","file":"beacon_live_admin.min.css","sourcesContent":["@import \"tailwindcss/base\";\n@import \"tailwindcss/components\";\n@import \"tailwindcss/utilities\";\n@import \"../../deps/live_monaco_editor/priv/static/live_monaco_editor.min.css\";\n@import url(\"https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@200;300;400;500;700;800&display=swap\");\n",null,"/*\n1. Prevent padding and border from affecting element width. (https://github.com/mozdevs/cssremedy/issues/4)\n2. Allow adding a border to an element by just adding a border-width. (https://github.com/tailwindcss/tailwindcss/pull/116)\n*/\n\n*,\n::before,\n::after {\n box-sizing: border-box; /* 1 */\n border-width: 0; /* 2 */\n border-style: solid; /* 2 */\n border-color: theme('borderColor.DEFAULT', currentColor); /* 2 */\n}\n\n::before,\n::after {\n --tw-content: '';\n}\n\n/*\n1. Use a consistent sensible line-height in all browsers.\n2. Prevent adjustments of font size after orientation changes in iOS.\n3. Use a more readable tab size.\n4. Use the user's configured `sans` font-family by default.\n5. Use the user's configured `sans` font-feature-settings by default.\n6. Use the user's configured `sans` font-variation-settings by default.\n*/\n\nhtml {\n line-height: 1.5; /* 1 */\n -webkit-text-size-adjust: 100%; /* 2 */\n -moz-tab-size: 4; /* 3 */\n tab-size: 4; /* 3 */\n font-family: theme('fontFamily.sans', ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, \"Segoe UI\", Roboto, \"Helvetica Neue\", Arial, \"Noto Sans\", sans-serif, \"Apple Color Emoji\", \"Segoe UI Emoji\", \"Segoe UI Symbol\", \"Noto Color Emoji\"); /* 4 */\n font-feature-settings: theme('fontFamily.sans[1].fontFeatureSettings', normal); /* 5 */\n font-variation-settings: theme('fontFamily.sans[1].fontVariationSettings', normal); /* 6 */\n}\n\n/*\n1. Remove the margin in all browsers.\n2. Inherit line-height from `html` so users can set them as a class directly on the `html` element.\n*/\n\nbody {\n margin: 0; /* 1 */\n line-height: inherit; /* 2 */\n}\n\n/*\n1. Add the correct height in Firefox.\n2. Correct the inheritance of border color in Firefox. (https://bugzilla.mozilla.org/show_bug.cgi?id=190655)\n3. Ensure horizontal rules are visible by default.\n*/\n\nhr {\n height: 0; /* 1 */\n color: inherit; /* 2 */\n border-top-width: 1px; /* 3 */\n}\n\n/*\nAdd the correct text decoration in Chrome, Edge, and Safari.\n*/\n\nabbr:where([title]) {\n text-decoration: underline dotted;\n}\n\n/*\nRemove the default font size and weight for headings.\n*/\n\nh1,\nh2,\nh3,\nh4,\nh5,\nh6 {\n font-size: inherit;\n font-weight: inherit;\n}\n\n/*\nReset links to optimize for opt-in styling instead of opt-out.\n*/\n\na {\n color: inherit;\n text-decoration: inherit;\n}\n\n/*\nAdd the correct font weight in Edge and Safari.\n*/\n\nb,\nstrong {\n font-weight: bolder;\n}\n\n/*\n1. Use the user's configured `mono` font family by default.\n2. Correct the odd `em` font sizing in all browsers.\n*/\n\ncode,\nkbd,\nsamp,\npre {\n font-family: theme('fontFamily.mono', ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, \"Liberation Mono\", \"Courier New\", monospace); /* 1 */\n font-size: 1em; /* 2 */\n}\n\n/*\nAdd the correct font size in all browsers.\n*/\n\nsmall {\n font-size: 80%;\n}\n\n/*\nPrevent `sub` and `sup` elements from affecting the line height in all browsers.\n*/\n\nsub,\nsup {\n font-size: 75%;\n line-height: 0;\n position: relative;\n vertical-align: baseline;\n}\n\nsub {\n bottom: -0.25em;\n}\n\nsup {\n top: -0.5em;\n}\n\n/*\n1. Remove text indentation from table contents in Chrome and Safari. (https://bugs.chromium.org/p/chromium/issues/detail?id=999088, https://bugs.webkit.org/show_bug.cgi?id=201297)\n2. Correct table border color inheritance in all Chrome and Safari. (https://bugs.chromium.org/p/chromium/issues/detail?id=935729, https://bugs.webkit.org/show_bug.cgi?id=195016)\n3. Remove gaps between table borders by default.\n*/\n\ntable {\n text-indent: 0; /* 1 */\n border-color: inherit; /* 2 */\n border-collapse: collapse; /* 3 */\n}\n\n/*\n1. Change the font styles in all browsers.\n2. Remove the margin in Firefox and Safari.\n3. Remove default padding in all browsers.\n*/\n\nbutton,\ninput,\noptgroup,\nselect,\ntextarea {\n font-family: inherit; /* 1 */\n font-feature-settings: inherit; /* 1 */\n font-variation-settings: inherit; /* 1 */\n font-size: 100%; /* 1 */\n font-weight: inherit; /* 1 */\n line-height: inherit; /* 1 */\n color: inherit; /* 1 */\n margin: 0; /* 2 */\n padding: 0; /* 3 */\n}\n\n/*\nRemove the inheritance of text transform in Edge and Firefox.\n*/\n\nbutton,\nselect {\n text-transform: none;\n}\n\n/*\n1. Correct the inability to style clickable types in iOS and Safari.\n2. Remove default button styles.\n*/\n\nbutton,\n[type='button'],\n[type='reset'],\n[type='submit'] {\n -webkit-appearance: button; /* 1 */\n background-color: transparent; /* 2 */\n background-image: none; /* 2 */\n}\n\n/*\nUse the modern Firefox focus style for all focusable elements.\n*/\n\n:-moz-focusring {\n outline: auto;\n}\n\n/*\nRemove the additional `:invalid` styles in Firefox. (https://github.com/mozilla/gecko-dev/blob/2f9eacd9d3d995c937b4251a5557d95d494c9be1/layout/style/res/forms.css#L728-L737)\n*/\n\n:-moz-ui-invalid {\n box-shadow: none;\n}\n\n/*\nAdd the correct vertical alignment in Chrome and Firefox.\n*/\n\nprogress {\n vertical-align: baseline;\n}\n\n/*\nCorrect the cursor style of increment and decrement buttons in Safari.\n*/\n\n::-webkit-inner-spin-button,\n::-webkit-outer-spin-button {\n height: auto;\n}\n\n/*\n1. Correct the odd appearance in Chrome and Safari.\n2. Correct the outline style in Safari.\n*/\n\n[type='search'] {\n -webkit-appearance: textfield; /* 1 */\n outline-offset: -2px; /* 2 */\n}\n\n/*\nRemove the inner padding in Chrome and Safari on macOS.\n*/\n\n::-webkit-search-decoration {\n -webkit-appearance: none;\n}\n\n/*\n1. Correct the inability to style clickable types in iOS and Safari.\n2. Change font properties to `inherit` in Safari.\n*/\n\n::-webkit-file-upload-button {\n -webkit-appearance: button; /* 1 */\n font: inherit; /* 2 */\n}\n\n/*\nAdd the correct display in Chrome and Safari.\n*/\n\nsummary {\n display: list-item;\n}\n\n/*\nRemoves the default spacing and border for appropriate elements.\n*/\n\nblockquote,\ndl,\ndd,\nh1,\nh2,\nh3,\nh4,\nh5,\nh6,\nhr,\nfigure,\np,\npre {\n margin: 0;\n}\n\nfieldset {\n margin: 0;\n padding: 0;\n}\n\nlegend {\n padding: 0;\n}\n\nol,\nul,\nmenu {\n list-style: none;\n margin: 0;\n padding: 0;\n}\n\n/*\nReset default styling for dialogs.\n*/\ndialog {\n padding: 0;\n}\n\n/*\nPrevent resizing textareas horizontally by default.\n*/\n\ntextarea {\n resize: vertical;\n}\n\n/*\n1. Reset the default placeholder opacity in Firefox. (https://github.com/tailwindlabs/tailwindcss/issues/3300)\n2. Set the default placeholder color to the user's configured gray 400 color.\n*/\n\ninput::placeholder,\ntextarea::placeholder {\n opacity: 1; /* 1 */\n color: theme('colors.gray.400', #9ca3af); /* 2 */\n}\n\n/*\nSet the default cursor for buttons.\n*/\n\nbutton,\n[role=\"button\"] {\n cursor: pointer;\n}\n\n/*\nMake sure disabled buttons don't get the pointer cursor.\n*/\n:disabled {\n cursor: default;\n}\n\n/*\n1. Make replaced elements `display: block` by default. (https://github.com/mozdevs/cssremedy/issues/14)\n2. Add `vertical-align: middle` to align replaced elements more sensibly by default. (https://github.com/jensimmons/cssremedy/issues/14#issuecomment-634934210)\n This can trigger a poorly considered lint error in some tools but is included by design.\n*/\n\nimg,\nsvg,\nvideo,\ncanvas,\naudio,\niframe,\nembed,\nobject {\n display: block; /* 1 */\n vertical-align: middle; /* 2 */\n}\n\n/*\nConstrain images and videos to the parent width and preserve their intrinsic aspect ratio. (https://github.com/mozdevs/cssremedy/issues/14)\n*/\n\nimg,\nvideo {\n max-width: 100%;\n height: auto;\n}\n\n/* Make elements with the HTML hidden attribute stay hidden by default */\n[hidden] {\n display: none;\n}\n","/* jetbrains-mono-cyrillic-ext-400-normal */\n@font-face {\n font-family: 'JetBrains Mono';\n font-style: normal;\n font-display: swap;\n font-weight: 400;\n src: url(./files/jetbrains-mono-cyrillic-ext-400-normal.woff2) format('woff2'), url(./files/jetbrains-mono-cyrillic-ext-400-normal.woff) format('woff');\n unicode-range: U+0460-052F,U+1C80-1C88,U+20B4,U+2DE0-2DFF,U+A640-A69F,U+FE2E-FE2F;\n}\n\n/* jetbrains-mono-cyrillic-400-normal */\n@font-face {\n font-family: 'JetBrains Mono';\n font-style: normal;\n font-display: swap;\n font-weight: 400;\n src: url(./files/jetbrains-mono-cyrillic-400-normal.woff2) format('woff2'), url(./files/jetbrains-mono-cyrillic-400-normal.woff) format('woff');\n unicode-range: U+0301,U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116;\n}\n\n/* jetbrains-mono-greek-400-normal */\n@font-face {\n font-family: 'JetBrains Mono';\n font-style: normal;\n font-display: swap;\n font-weight: 400;\n src: url(./files/jetbrains-mono-greek-400-normal.woff2) format('woff2'), url(./files/jetbrains-mono-greek-400-normal.woff) format('woff');\n unicode-range: U+0370-03FF;\n}\n\n/* jetbrains-mono-vietnamese-400-normal */\n@font-face {\n font-family: 'JetBrains Mono';\n font-style: normal;\n font-display: swap;\n font-weight: 400;\n src: url(./files/jetbrains-mono-vietnamese-400-normal.woff2) format('woff2'), url(./files/jetbrains-mono-vietnamese-400-normal.woff) format('woff');\n unicode-range: U+0102-0103,U+0110-0111,U+0128-0129,U+0168-0169,U+01A0-01A1,U+01AF-01B0,U+0300-0301,U+0303-0304,U+0308-0309,U+0323,U+0329,U+1EA0-1EF9,U+20AB;\n}\n\n/* jetbrains-mono-latin-ext-400-normal */\n@font-face {\n font-family: 'JetBrains Mono';\n font-style: normal;\n font-display: swap;\n font-weight: 400;\n src: url(./files/jetbrains-mono-latin-ext-400-normal.woff2) format('woff2'), url(./files/jetbrains-mono-latin-ext-400-normal.woff) format('woff');\n unicode-range: U+0100-02AF,U+0300-0301,U+0303-0304,U+0308-0309,U+0323,U+0329,U+1E00-1EFF,U+2020,U+20A0-20AB,U+20AD-20CF,U+2113,U+2C60-2C7F,U+A720-A7FF;\n}\n\n/* jetbrains-mono-latin-400-normal */\n@font-face {\n font-family: 'JetBrains Mono';\n font-style: normal;\n font-display: swap;\n font-weight: 400;\n src: url(./files/jetbrains-mono-latin-400-normal.woff2) format('woff2'), url(./files/jetbrains-mono-latin-400-normal.woff) format('woff');\n unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0300-0301,U+0303-0304,U+0308-0309,U+0323,U+0329,U+2000-206F,U+2074,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;\n}"]} \ No newline at end of file +{"version":3,"sources":["../../assets/css/beacon_live_admin.css","","%3Cinput%20css%200TnMh9%3E","../../deps/live_monaco_editor/assets/node_modules/@fontsource/jetbrains-mono/index.css"],"names":[],"mappings":"AAIA,mHAAmH;ACJnH,gEAAA,ACKA,iBAME,sBAAwD,CAHxD,qBAIF,CAE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A,cCAA,ADAA,eCAA,ADAA,iCAAA,2BCAA,ADAA,iCAAA,2BCAA,ADAA,iCAAA,2BCAA,ADAA,iCAAA,2BCAA,ADAA,YAAA,YCAA,ADAA,gBAAA,eCAA,ADAA,iBAAA,8CCAA,ADAA,qBAAA,gBCAA,ADAA,oBAAA,4BCAA,ADAA,6BCAA,ADAA,4BAAA,+BCAA,ADAA,gCCAA,ADAA,UAAA,kBCAA,ADAA,mBCAA,ADAA,UAAA,oBCAA,ADAA,iBCAA,CAAA,ADAA,2EAAA,2GCAA,ADAA,yGCAA,ADAA,yFCAA,ADAA,8BAAA,wFAAA,2GCAA,ADAA,yGCAA,ADAA,yFCAA,CAAA,ADAA,2BAAA,iBCAA,ADAA,4HAAA,4BCAA,ADAA,8DCAA","file":"beacon_live_admin.min.css","sourcesContent":["@import \"tailwindcss/base\";\n@import \"tailwindcss/components\";\n@import \"tailwindcss/utilities\";\n@import \"../../deps/live_monaco_editor/priv/static/live_monaco_editor.min.css\";\n@import url(\"https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@200;300;400;500;700;800&display=swap\");\n",null,"/*\n1. Prevent padding and border from affecting element width. (https://github.com/mozdevs/cssremedy/issues/4)\n2. Allow adding a border to an element by just adding a border-width. (https://github.com/tailwindcss/tailwindcss/pull/116)\n*/\n\n*,\n::before,\n::after {\n box-sizing: border-box; /* 1 */\n border-width: 0; /* 2 */\n border-style: solid; /* 2 */\n border-color: theme('borderColor.DEFAULT', currentColor); /* 2 */\n}\n\n::before,\n::after {\n --tw-content: '';\n}\n\n/*\n1. Use a consistent sensible line-height in all browsers.\n2. Prevent adjustments of font size after orientation changes in iOS.\n3. Use a more readable tab size.\n4. Use the user's configured `sans` font-family by default.\n5. Use the user's configured `sans` font-feature-settings by default.\n6. Use the user's configured `sans` font-variation-settings by default.\n*/\n\nhtml {\n line-height: 1.5; /* 1 */\n -webkit-text-size-adjust: 100%; /* 2 */\n -moz-tab-size: 4; /* 3 */\n tab-size: 4; /* 3 */\n font-family: theme('fontFamily.sans', ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, \"Segoe UI\", Roboto, \"Helvetica Neue\", Arial, \"Noto Sans\", sans-serif, \"Apple Color Emoji\", \"Segoe UI Emoji\", \"Segoe UI Symbol\", \"Noto Color Emoji\"); /* 4 */\n font-feature-settings: theme('fontFamily.sans[1].fontFeatureSettings', normal); /* 5 */\n font-variation-settings: theme('fontFamily.sans[1].fontVariationSettings', normal); /* 6 */\n}\n\n/*\n1. Remove the margin in all browsers.\n2. Inherit line-height from `html` so users can set them as a class directly on the `html` element.\n*/\n\nbody {\n margin: 0; /* 1 */\n line-height: inherit; /* 2 */\n}\n\n/*\n1. Add the correct height in Firefox.\n2. Correct the inheritance of border color in Firefox. (https://bugzilla.mozilla.org/show_bug.cgi?id=190655)\n3. Ensure horizontal rules are visible by default.\n*/\n\nhr {\n height: 0; /* 1 */\n color: inherit; /* 2 */\n border-top-width: 1px; /* 3 */\n}\n\n/*\nAdd the correct text decoration in Chrome, Edge, and Safari.\n*/\n\nabbr:where([title]) {\n text-decoration: underline dotted;\n}\n\n/*\nRemove the default font size and weight for headings.\n*/\n\nh1,\nh2,\nh3,\nh4,\nh5,\nh6 {\n font-size: inherit;\n font-weight: inherit;\n}\n\n/*\nReset links to optimize for opt-in styling instead of opt-out.\n*/\n\na {\n color: inherit;\n text-decoration: inherit;\n}\n\n/*\nAdd the correct font weight in Edge and Safari.\n*/\n\nb,\nstrong {\n font-weight: bolder;\n}\n\n/*\n1. Use the user's configured `mono` font family by default.\n2. Correct the odd `em` font sizing in all browsers.\n*/\n\ncode,\nkbd,\nsamp,\npre {\n font-family: theme('fontFamily.mono', ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, \"Liberation Mono\", \"Courier New\", monospace); /* 1 */\n font-size: 1em; /* 2 */\n}\n\n/*\nAdd the correct font size in all browsers.\n*/\n\nsmall {\n font-size: 80%;\n}\n\n/*\nPrevent `sub` and `sup` elements from affecting the line height in all browsers.\n*/\n\nsub,\nsup {\n font-size: 75%;\n line-height: 0;\n position: relative;\n vertical-align: baseline;\n}\n\nsub {\n bottom: -0.25em;\n}\n\nsup {\n top: -0.5em;\n}\n\n/*\n1. Remove text indentation from table contents in Chrome and Safari. (https://bugs.chromium.org/p/chromium/issues/detail?id=999088, https://bugs.webkit.org/show_bug.cgi?id=201297)\n2. Correct table border color inheritance in all Chrome and Safari. (https://bugs.chromium.org/p/chromium/issues/detail?id=935729, https://bugs.webkit.org/show_bug.cgi?id=195016)\n3. Remove gaps between table borders by default.\n*/\n\ntable {\n text-indent: 0; /* 1 */\n border-color: inherit; /* 2 */\n border-collapse: collapse; /* 3 */\n}\n\n/*\n1. Change the font styles in all browsers.\n2. Remove the margin in Firefox and Safari.\n3. Remove default padding in all browsers.\n*/\n\nbutton,\ninput,\noptgroup,\nselect,\ntextarea {\n font-family: inherit; /* 1 */\n font-feature-settings: inherit; /* 1 */\n font-variation-settings: inherit; /* 1 */\n font-size: 100%; /* 1 */\n font-weight: inherit; /* 1 */\n line-height: inherit; /* 1 */\n color: inherit; /* 1 */\n margin: 0; /* 2 */\n padding: 0; /* 3 */\n}\n\n/*\nRemove the inheritance of text transform in Edge and Firefox.\n*/\n\nbutton,\nselect {\n text-transform: none;\n}\n\n/*\n1. Correct the inability to style clickable types in iOS and Safari.\n2. Remove default button styles.\n*/\n\nbutton,\n[type='button'],\n[type='reset'],\n[type='submit'] {\n -webkit-appearance: button; /* 1 */\n background-color: transparent; /* 2 */\n background-image: none; /* 2 */\n}\n\n/*\nUse the modern Firefox focus style for all focusable elements.\n*/\n\n:-moz-focusring {\n outline: auto;\n}\n\n/*\nRemove the additional `:invalid` styles in Firefox. (https://github.com/mozilla/gecko-dev/blob/2f9eacd9d3d995c937b4251a5557d95d494c9be1/layout/style/res/forms.css#L728-L737)\n*/\n\n:-moz-ui-invalid {\n box-shadow: none;\n}\n\n/*\nAdd the correct vertical alignment in Chrome and Firefox.\n*/\n\nprogress {\n vertical-align: baseline;\n}\n\n/*\nCorrect the cursor style of increment and decrement buttons in Safari.\n*/\n\n::-webkit-inner-spin-button,\n::-webkit-outer-spin-button {\n height: auto;\n}\n\n/*\n1. Correct the odd appearance in Chrome and Safari.\n2. Correct the outline style in Safari.\n*/\n\n[type='search'] {\n -webkit-appearance: textfield; /* 1 */\n outline-offset: -2px; /* 2 */\n}\n\n/*\nRemove the inner padding in Chrome and Safari on macOS.\n*/\n\n::-webkit-search-decoration {\n -webkit-appearance: none;\n}\n\n/*\n1. Correct the inability to style clickable types in iOS and Safari.\n2. Change font properties to `inherit` in Safari.\n*/\n\n::-webkit-file-upload-button {\n -webkit-appearance: button; /* 1 */\n font: inherit; /* 2 */\n}\n\n/*\nAdd the correct display in Chrome and Safari.\n*/\n\nsummary {\n display: list-item;\n}\n\n/*\nRemoves the default spacing and border for appropriate elements.\n*/\n\nblockquote,\ndl,\ndd,\nh1,\nh2,\nh3,\nh4,\nh5,\nh6,\nhr,\nfigure,\np,\npre {\n margin: 0;\n}\n\nfieldset {\n margin: 0;\n padding: 0;\n}\n\nlegend {\n padding: 0;\n}\n\nol,\nul,\nmenu {\n list-style: none;\n margin: 0;\n padding: 0;\n}\n\n/*\nReset default styling for dialogs.\n*/\ndialog {\n padding: 0;\n}\n\n/*\nPrevent resizing textareas horizontally by default.\n*/\n\ntextarea {\n resize: vertical;\n}\n\n/*\n1. Reset the default placeholder opacity in Firefox. (https://github.com/tailwindlabs/tailwindcss/issues/3300)\n2. Set the default placeholder color to the user's configured gray 400 color.\n*/\n\ninput::placeholder,\ntextarea::placeholder {\n opacity: 1; /* 1 */\n color: theme('colors.gray.400', #9ca3af); /* 2 */\n}\n\n/*\nSet the default cursor for buttons.\n*/\n\nbutton,\n[role=\"button\"] {\n cursor: pointer;\n}\n\n/*\nMake sure disabled buttons don't get the pointer cursor.\n*/\n:disabled {\n cursor: default;\n}\n\n/*\n1. Make replaced elements `display: block` by default. (https://github.com/mozdevs/cssremedy/issues/14)\n2. Add `vertical-align: middle` to align replaced elements more sensibly by default. (https://github.com/jensimmons/cssremedy/issues/14#issuecomment-634934210)\n This can trigger a poorly considered lint error in some tools but is included by design.\n*/\n\nimg,\nsvg,\nvideo,\ncanvas,\naudio,\niframe,\nembed,\nobject {\n display: block; /* 1 */\n vertical-align: middle; /* 2 */\n}\n\n/*\nConstrain images and videos to the parent width and preserve their intrinsic aspect ratio. (https://github.com/mozdevs/cssremedy/issues/14)\n*/\n\nimg,\nvideo {\n max-width: 100%;\n height: auto;\n}\n\n/* Make elements with the HTML hidden attribute stay hidden by default */\n[hidden] {\n display: none;\n}\n","/* jetbrains-mono-cyrillic-ext-400-normal */\n@font-face {\n font-family: 'JetBrains Mono';\n font-style: normal;\n font-display: swap;\n font-weight: 400;\n src: url(./files/jetbrains-mono-cyrillic-ext-400-normal.woff2) format('woff2'), url(./files/jetbrains-mono-cyrillic-ext-400-normal.woff) format('woff');\n unicode-range: U+0460-052F,U+1C80-1C88,U+20B4,U+2DE0-2DFF,U+A640-A69F,U+FE2E-FE2F;\n}\n\n/* jetbrains-mono-cyrillic-400-normal */\n@font-face {\n font-family: 'JetBrains Mono';\n font-style: normal;\n font-display: swap;\n font-weight: 400;\n src: url(./files/jetbrains-mono-cyrillic-400-normal.woff2) format('woff2'), url(./files/jetbrains-mono-cyrillic-400-normal.woff) format('woff');\n unicode-range: U+0301,U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116;\n}\n\n/* jetbrains-mono-greek-400-normal */\n@font-face {\n font-family: 'JetBrains Mono';\n font-style: normal;\n font-display: swap;\n font-weight: 400;\n src: url(./files/jetbrains-mono-greek-400-normal.woff2) format('woff2'), url(./files/jetbrains-mono-greek-400-normal.woff) format('woff');\n unicode-range: U+0370-03FF;\n}\n\n/* jetbrains-mono-vietnamese-400-normal */\n@font-face {\n font-family: 'JetBrains Mono';\n font-style: normal;\n font-display: swap;\n font-weight: 400;\n src: url(./files/jetbrains-mono-vietnamese-400-normal.woff2) format('woff2'), url(./files/jetbrains-mono-vietnamese-400-normal.woff) format('woff');\n unicode-range: U+0102-0103,U+0110-0111,U+0128-0129,U+0168-0169,U+01A0-01A1,U+01AF-01B0,U+0300-0301,U+0303-0304,U+0308-0309,U+0323,U+0329,U+1EA0-1EF9,U+20AB;\n}\n\n/* jetbrains-mono-latin-ext-400-normal */\n@font-face {\n font-family: 'JetBrains Mono';\n font-style: normal;\n font-display: swap;\n font-weight: 400;\n src: url(./files/jetbrains-mono-latin-ext-400-normal.woff2) format('woff2'), url(./files/jetbrains-mono-latin-ext-400-normal.woff) format('woff');\n unicode-range: U+0100-02AF,U+0300-0301,U+0303-0304,U+0308-0309,U+0323,U+0329,U+1E00-1EFF,U+2020,U+20A0-20AB,U+20AD-20CF,U+2113,U+2C60-2C7F,U+A720-A7FF;\n}\n\n/* jetbrains-mono-latin-400-normal */\n@font-face {\n font-family: 'JetBrains Mono';\n font-style: normal;\n font-display: swap;\n font-weight: 400;\n src: url(./files/jetbrains-mono-latin-400-normal.woff2) format('woff2'), url(./files/jetbrains-mono-latin-400-normal.woff) format('woff');\n unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0300-0301,U+0303-0304,U+0308-0309,U+0323,U+0329,U+2000-206F,U+2074,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;\n}"]} \ No newline at end of file diff --git a/priv/static/beacon_live_admin.min.js b/priv/static/beacon_live_admin.min.js index b4ac7b26..47bf8f22 100644 --- a/priv/static/beacon_live_admin.min.js +++ b/priv/static/beacon_live_admin.min.js @@ -1,5 +1,5 @@ -var BeaconLiveAdmin=(()=>{var K=Object.create;var C=Object.defineProperty;var J=Object.getOwnPropertyDescriptor;var Y=Object.getOwnPropertyNames;var Q=Object.getPrototypeOf,X=Object.prototype.hasOwnProperty;var Z=(e,r)=>()=>(r||e((r={exports:{}}).exports,r),r.exports);var ee=(e,r,t,n)=>{if(r&&typeof r=="object"||typeof r=="function")for(let o of Y(r))!X.call(e,o)&&o!==t&&C(e,o,{get:()=>r[o],enumerable:!(n=J(r,o))||n.enumerable});return e};var te=(e,r,t)=>(t=e!=null?K(Q(e)):{},ee(r||!e||!e.__esModule?C(t,"default",{value:e,enumerable:!0}):t,e));var x=Z((I,y)=>{(function(e,r){"use strict";(function(){for(var i=0,d=["ms","moz","webkit","o"],f=0;fp.show(),i)}else o=!0,u!==null&&e.cancelAnimationFrame(u),t||G(),t.style.opacity=1,t.style.display="block",p.progress(0),c.autoRun&&function d(){a=e.requestAnimationFrame(d),p.progress("+"+.05*Math.pow(1-Math.sqrt(n),2))}()},progress:function(i){return typeof i=="undefined"||(typeof i=="string"&&(i=(i.indexOf("+")>=0||i.indexOf("-")>=0?n:0)+parseFloat(i)),n=i>1?1:i,b()),n},hide:function(){clearTimeout(s),s=null,o&&(o=!1,a!=null&&(e.cancelAnimationFrame(a),a=null),function i(){if(p.progress("+.1")>=1&&(t.style.opacity-=.05,t.style.opacity<=.05)){t.style.display="none",u=null;return}u=e.requestAnimationFrame(i)}())}};typeof y=="object"&&typeof y.exports=="object"?y.exports=p:typeof define=="function"&&define.amd?define(function(){return p}):this.topbar=p}).call(I,window,document)});var j=te(x());function re(e,r,t){return r in e?Object.defineProperty(e,r,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[r]=t,e}function L(e,r){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);r&&(n=n.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),t.push.apply(t,n)}return t}function M(e){for(var r=1;r=0)&&(t[o]=e[o]);return t}function oe(e,r){if(e==null)return{};var t=ne(e,r),n,o;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(o=0;o=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(t[n]=e[n])}return t}function ie(e,r){return ae(e)||ue(e,r)||ce(e,r)||de()}function ae(e){if(Array.isArray(e))return e}function ue(e,r){if(!(typeof Symbol=="undefined"||!(Symbol.iterator in Object(e)))){var t=[],n=!0,o=!1,a=void 0;try{for(var u=e[Symbol.iterator](),s;!(n=(s=u.next()).done)&&(t.push(s.value),!(r&&t.length===r));n=!0);}catch(l){o=!0,a=l}finally{try{!n&&u.return!=null&&u.return()}finally{if(o)throw a}}return t}}function ce(e,r){if(e){if(typeof e=="string")return q(e,r);var t=Object.prototype.toString.call(e).slice(8,-1);if(t==="Object"&&e.constructor&&(t=e.constructor.name),t==="Map"||t==="Set")return Array.from(e);if(t==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t))return q(e,r)}}function q(e,r){(r==null||r>e.length)&&(r=e.length);for(var t=0,n=new Array(r);t=e.length?e.apply(this,o):function(){for(var u=arguments.length,s=new Array(u),l=0;l1&&arguments[1]!==void 0?arguments[1]:{};O.initial(e),O.handler(r);var t={current:e},n=h(je)(t,r),o=h(ke)(t),a=h(O.changes)(e),u=h(we)(t);function s(){var c=arguments.length>0&&arguments[0]!==void 0?arguments[0]:function(b){return b};return O.selector(c),c(t.current)}function l(c){le(n,o,a,u)(c)}return[s,l]}function we(e,r){return m(r)?r(e.current):r}function ke(e,r){return e.current=F(F({},e.current),r),r}function je(e,r,t){return m(r)?r(e.current):Object.keys(t).forEach(function(n){var o;return(o=r[n])===null||o===void 0?void 0:o.call(r,e.current[n])}),t}var Ee={create:Oe},Te=Ee,Se={paths:{vs:"https://cdn.jsdelivr.net/npm/monaco-editor@0.36.1/min/vs"}},_e=Se;function Ae(e){return function r(){for(var t=this,n=arguments.length,o=new Array(n),a=0;a=e.length?e.apply(this,o):function(){for(var u=arguments.length,s=new Array(u),l=0;l{var J=Object.create;var C=Object.defineProperty;var Y=Object.getOwnPropertyDescriptor;var Q=Object.getOwnPropertyNames;var X=Object.getPrototypeOf,Z=Object.prototype.hasOwnProperty;var ee=(e,r)=>()=>(r||e((r={exports:{}}).exports,r),r.exports);var te=(e,r,t,n)=>{if(r&&typeof r=="object"||typeof r=="function")for(let o of Q(r))!Z.call(e,o)&&o!==t&&C(e,o,{get:()=>r[o],enumerable:!(n=Y(r,o))||n.enumerable});return e};var re=(e,r,t)=>(t=e!=null?J(X(e)):{},te(r||!e||!e.__esModule?C(t,"default",{value:e,enumerable:!0}):t,e));var x=ee((I,y)=>{(function(e,r){"use strict";(function(){for(var i=0,s=["ms","moz","webkit","o"],f=0;fp.show(),i)}else o=!0,u!==null&&e.cancelAnimationFrame(u),t||V(),t.style.opacity=1,t.style.display="block",p.progress(0),c.autoRun&&function s(){a=e.requestAnimationFrame(s),p.progress("+"+.05*Math.pow(1-Math.sqrt(n),2))}()},progress:function(i){return typeof i=="undefined"||(typeof i=="string"&&(i=(i.indexOf("+")>=0||i.indexOf("-")>=0?n:0)+parseFloat(i)),n=i>1?1:i,b()),n},hide:function(){clearTimeout(d),d=null,o&&(o=!1,a!=null&&(e.cancelAnimationFrame(a),a=null),function i(){if(p.progress("+.1")>=1&&(t.style.opacity-=.05,t.style.opacity<=.05)){t.style.display="none",u=null;return}u=e.requestAnimationFrame(i)}())}};typeof y=="object"&&typeof y.exports=="object"?y.exports=p:typeof define=="function"&&define.amd?define(function(){return p}):this.topbar=p}).call(I,window,document)});var j=re(x());function ne(e,r,t){return r in e?Object.defineProperty(e,r,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[r]=t,e}function L(e,r){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);r&&(n=n.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),t.push.apply(t,n)}return t}function M(e){for(var r=1;r=0)&&(t[o]=e[o]);return t}function ie(e,r){if(e==null)return{};var t=oe(e,r),n,o;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(o=0;o=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(t[n]=e[n])}return t}function ae(e,r){return ue(e)||ce(e,r)||se(e,r)||de()}function ue(e){if(Array.isArray(e))return e}function ce(e,r){if(!(typeof Symbol=="undefined"||!(Symbol.iterator in Object(e)))){var t=[],n=!0,o=!1,a=void 0;try{for(var u=e[Symbol.iterator](),d;!(n=(d=u.next()).done)&&(t.push(d.value),!(r&&t.length===r));n=!0);}catch(l){o=!0,a=l}finally{try{!n&&u.return!=null&&u.return()}finally{if(o)throw a}}return t}}function se(e,r){if(e){if(typeof e=="string")return q(e,r);var t=Object.prototype.toString.call(e).slice(8,-1);if(t==="Object"&&e.constructor&&(t=e.constructor.name),t==="Map"||t==="Set")return Array.from(e);if(t==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t))return q(e,r)}}function q(e,r){(r==null||r>e.length)&&(r=e.length);for(var t=0,n=new Array(r);t=e.length?e.apply(this,o):function(){for(var u=arguments.length,d=new Array(u),l=0;l1&&arguments[1]!==void 0?arguments[1]:{};O.initial(e),O.handler(r);var t={current:e},n=h(Ee)(t,r),o=h(je)(t),a=h(O.changes)(e),u=h(ke)(t);function d(){var c=arguments.length>0&&arguments[0]!==void 0?arguments[0]:function(b){return b};return O.selector(c),c(t.current)}function l(c){fe(n,o,a,u)(c)}return[d,l]}function ke(e,r){return m(r)?r(e.current):r}function je(e,r){return e.current=F(F({},e.current),r),r}function Ee(e,r,t){return m(r)?r(e.current):Object.keys(t).forEach(function(n){var o;return(o=r[n])===null||o===void 0?void 0:o.call(r,e.current[n])}),t}var Te={create:we},Se=Te,_e={paths:{vs:"https://cdn.jsdelivr.net/npm/monaco-editor@0.36.1/min/vs"}},Ae=_e;function Pe(e){return function r(){for(var t=this,n=arguments.length,o=new Array(n),a=0;a=e.length?e.apply(this,o):function(){for(var u=arguments.length,d=new Array(u),l=0;l[{token:"",foreground:e.default},{token:"variable",foreground:e.lightRed},{token:"constant",foreground:e.blue},{token:"constant.character.escape",foreground:e.blue},{token:"comment",foreground:e.gray},{token:"number",foreground:e.blue},{token:"regexp",foreground:e.lightRed},{token:"type",foreground:e.lightRed},{token:"string",foreground:e.green},{token:"keyword",foreground:e.purple},{token:"operator",foreground:e.peach},{token:"delimiter.bracket.embed",foreground:e.red},{token:"sigil",foreground:e.teal},{token:"function",foreground:e.blue},{token:"function.call",foreground:e.default},{token:"emphasis",fontStyle:"italic"},{token:"strong",fontStyle:"bold"},{token:"keyword.md",foreground:e.lightRed},{token:"keyword.table",foreground:e.lightRed},{token:"string.link.md",foreground:e.blue},{token:"variable.md",foreground:e.teal},{token:"string.md",foreground:e.default},{token:"variable.source.md",foreground:e.default},{token:"tag",foreground:e.lightRed},{token:"metatag",foreground:e.lightRed},{token:"attribute.name",foreground:e.peach},{token:"attribute.value",foreground:e.green},{token:"string.key",foreground:e.lightRed},{token:"keyword.json",foreground:e.blue},{token:"operator.sql",foreground:e.purple}],Ze={base:"vs-dark",inherit:!1,rules:Xe(P),colors:{"editor.background":P.background,"editor.foreground":P.default,"editorLineNumber.foreground":"#636d83","editorCursor.foreground":"#636d83","editor.selectionBackground":"#3e4451","editor.findMatchHighlightBackground":"#528bff3d","editorSuggestWidget.background":"#21252b","editorSuggestWidget.border":"#181a1f","editorSuggestWidget.selectedBackground":"#2c313a","input.background":"#1b1d23","input.border":"#181a1f","editorBracketMatch.border":"#282c34","editorBracketMatch.background":"#3e4451"}},et=class{constructor(e,r,t,n){this.el=e,this.path=r,this.value=t,this.opts=n,this.standalone_code_editor=null,this._onMount=[]}isMounted(){return!!this.standalone_code_editor}mount(){if(this.isMounted())throw new Error("The monaco editor is already mounted");this._mountEditor()}onMount(e){this._onMount.push(e)}dispose(){if(this.isMounted()){let e=this.standalone_code_editor.getModel();e&&e.dispose(),this.standalone_code_editor.dispose()}}_mountEditor(){this.opts.value=this.value,Qe.init().then(e=>{e.editor.defineTheme("default",Ze);let r=e.Uri.parse(this.path),t=this.opts.language,n=e.editor.createModel(this.value,t,r);this.opts.language=void 0,this.opts.model=n,this.standalone_code_editor=e.editor.create(this.el,this.opts),this._onMount.forEach(o=>o(e))})}},tt=et,z={mounted(){let e=JSON.parse(this.el.dataset.opts);this.codeEditor=new tt(this.el,this.el.dataset.path,this.el.dataset.value,e),this.codeEditor.onMount(r=>{this.el.dispatchEvent(new CustomEvent("lme:editor_mounted",{detail:{hook:this,editor:this.codeEditor},bubbles:!0})),this.handleEvent("lme:change_language:"+this.el.dataset.path,t=>{let n=this.codeEditor.standalone_code_editor.getModel();n.getLanguageId()!==t.mimeTypeOrLanguageId&&r.editor.setModelLanguage(n,t.mimeTypeOrLanguageId)}),this.handleEvent("lme:set_value:"+this.el.dataset.path,t=>{this.codeEditor.standalone_code_editor.setValue(t.value)}),this.el.querySelectorAll("textarea").forEach(t=>{t.setAttribute("name","live_monaco_editor["+this.el.dataset.path+"]")}),this.el.removeAttribute("data-value"),this.el.removeAttribute("data-opts")}),this.codeEditor.isMounted()||this.codeEditor.mount()},destroyed(){this.codeEditor&&this.codeEditor.dispose()}};var U={};U.CodeEditorHook=z;j.default.config({barColors:{0:"#29d"},shadowColor:"rgba(0, 0, 0, .3)"});window.addEventListener("phx:page-loading-start",e=>j.default.show(300));window.addEventListener("phx:page-loading-stop",e=>j.default.hide());window.addEventListener("lme:editor_mounted",e=>{let r=e.detail.hook,t=e.detail.editor.standalone_code_editor,n=e.detail.editor.path+"_editor_lost_focus";t.onDidBlurEditorWidget(()=>{r.pushEvent(n,{value:t.getValue()})})});window.addEventListener("beacon_admin:clipcopy",e=>{let r=`${e.target.id}-copy-to-clipboard-result`,t=document.getElementById(r);"clipboard"in navigator?(e.target.tagName==="INPUT"?txt=e.target.value:txt=e.target.textContent,navigator.clipboard.writeText(txt).then(()=>{t.innerText="Copied to clipboard",t.classList.remove("invisible","text-red-500","opacity-0"),t.classList.add("text-green-500","opacity-100","-translate-y-2"),setTimeout(function(){t.classList.remove("text-green-500","opacity-100","-translate-y-2"),t.classList.add("invisible","text-red-500","opacity-0")},2e3)}).catch(()=>{t.innerText="Could not copy",t.classList.remove("invisible","text-green-500","opacity-0"),t.classList.add("text-red-500","opacity-100","-translate-y-2")})):alert("Sorry, your browser does not support clipboard copy.")});var rt=document.querySelector("html").getAttribute("phx-socket")||"/live",nt=document.querySelector("meta[name='csrf-token']").getAttribute("content"),$=new LiveView.LiveSocket(rt,Phoenix.Socket,{hooks:U,params:{_csrf_token:nt}});$.connect();window.liveSocket=$;})(); + `},B=Ce(qe)(N),Re={config:Le},Fe=Re,Be=function(){for(var r=arguments.length,t=new Array(r),n=0;n[{token:"",foreground:e.default},{token:"variable",foreground:e.lightRed},{token:"constant",foreground:e.blue},{token:"constant.character.escape",foreground:e.blue},{token:"comment",foreground:e.gray},{token:"number",foreground:e.blue},{token:"regexp",foreground:e.lightRed},{token:"type",foreground:e.lightRed},{token:"string",foreground:e.green},{token:"keyword",foreground:e.purple},{token:"operator",foreground:e.peach},{token:"delimiter.bracket.embed",foreground:e.red},{token:"sigil",foreground:e.teal},{token:"function",foreground:e.blue},{token:"function.call",foreground:e.default},{token:"emphasis",fontStyle:"italic"},{token:"strong",fontStyle:"bold"},{token:"keyword.md",foreground:e.lightRed},{token:"keyword.table",foreground:e.lightRed},{token:"string.link.md",foreground:e.blue},{token:"variable.md",foreground:e.teal},{token:"string.md",foreground:e.default},{token:"variable.source.md",foreground:e.default},{token:"tag",foreground:e.lightRed},{token:"metatag",foreground:e.lightRed},{token:"attribute.name",foreground:e.peach},{token:"attribute.value",foreground:e.green},{token:"string.key",foreground:e.lightRed},{token:"keyword.json",foreground:e.blue},{token:"operator.sql",foreground:e.purple}],Ze={base:"vs-dark",inherit:!1,rules:Xe(P),colors:{"editor.background":P.background,"editor.foreground":P.default,"editorLineNumber.foreground":"#636d83","editorCursor.foreground":"#636d83","editor.selectionBackground":"#3e4451","editor.findMatchHighlightBackground":"#528bff3d","editorSuggestWidget.background":"#21252b","editorSuggestWidget.border":"#181a1f","editorSuggestWidget.selectedBackground":"#2c313a","input.background":"#1b1d23","input.border":"#181a1f","editorBracketMatch.border":"#282c34","editorBracketMatch.background":"#3e4451"}},et=class{constructor(e,r,t,n){this.el=e,this.path=r,this.value=t,this.opts=n,this.standalone_code_editor=null,this._onMount=[]}isMounted(){return!!this.standalone_code_editor}mount(){if(this.isMounted())throw new Error("The monaco editor is already mounted");this._mountEditor()}onMount(e){this._onMount.push(e)}dispose(){if(this.isMounted()){let e=this.standalone_code_editor.getModel();e&&e.dispose(),this.standalone_code_editor.dispose()}}_mountEditor(){this.opts.value=this.value,D.config({paths:{vs:"https://cdn.jsdelivr.net/npm/monaco-editor@latest/min/vs"}}),D.init().then(e=>{e.editor.defineTheme("default",Ze);let r=e.Uri.parse(this.path),t=this.opts.language,n=e.editor.createModel(this.value,t,r);this.opts.language=void 0,this.opts.model=n,this.standalone_code_editor=e.editor.create(this.el,this.opts),this._onMount.forEach(o=>o(e))})}},tt=et,U={mounted(){let e=JSON.parse(this.el.dataset.opts);this.codeEditor=new tt(this.el,this.el.dataset.path,this.el.dataset.value,e),this.codeEditor.onMount(r=>{this.el.dispatchEvent(new CustomEvent("lme:editor_mounted",{detail:{hook:this,editor:this.codeEditor},bubbles:!0})),this.handleEvent("lme:change_language:"+this.el.dataset.path,t=>{let n=this.codeEditor.standalone_code_editor.getModel();n.getLanguageId()!==t.mimeTypeOrLanguageId&&r.editor.setModelLanguage(n,t.mimeTypeOrLanguageId)}),this.handleEvent("lme:set_value:"+this.el.dataset.path,t=>{this.codeEditor.standalone_code_editor.setValue(t.value)}),this.el.querySelectorAll("textarea").forEach(t=>{t.setAttribute("name","live_monaco_editor["+this.el.dataset.path+"]")}),this.el.removeAttribute("data-value"),this.el.removeAttribute("data-opts")}),this.codeEditor.isMounted()||this.codeEditor.mount()},destroyed(){this.codeEditor&&this.codeEditor.dispose()}};var $={};$.CodeEditorHook=U;j.default.config({barColors:{0:"#29d"},shadowColor:"rgba(0, 0, 0, .3)"});window.addEventListener("phx:page-loading-start",e=>j.default.show(300));window.addEventListener("phx:page-loading-stop",e=>j.default.hide());window.addEventListener("lme:editor_mounted",e=>{let r=e.detail.hook,t=e.detail.editor.standalone_code_editor,n=e.detail.editor.path+"_editor_lost_focus";t.onDidBlurEditorWidget(()=>{r.pushEvent(n,{value:t.getValue()})})});window.addEventListener("beacon_admin:clipcopy",e=>{let r=`${e.target.id}-copy-to-clipboard-result`,t=document.getElementById(r);"clipboard"in navigator?(e.target.tagName==="INPUT"?txt=e.target.value:txt=e.target.textContent,navigator.clipboard.writeText(txt).then(()=>{t.innerText="Copied to clipboard",t.classList.remove("invisible","text-red-500","opacity-0"),t.classList.add("text-green-500","opacity-100","-translate-y-2"),setTimeout(function(){t.classList.remove("text-green-500","opacity-100","-translate-y-2"),t.classList.add("invisible","text-red-500","opacity-0")},2e3)}).catch(()=>{t.innerText="Could not copy",t.classList.remove("invisible","text-green-500","opacity-0"),t.classList.add("text-red-500","opacity-100","-translate-y-2")})):alert("Sorry, your browser does not support clipboard copy.")});var rt=document.querySelector("html").getAttribute("phx-socket")||"/live",nt=document.querySelector("meta[name='csrf-token']").getAttribute("content"),G=new LiveView.LiveSocket(rt,Phoenix.Socket,{hooks:$,params:{_csrf_token:nt}});G.connect();window.liveSocket=G;})(); /** * @license MIT * topbar 2.0.0, 2023-02-04 diff --git a/priv/static/beacon_live_admin.min.js.map b/priv/static/beacon_live_admin.min.js.map index ca18a5a0..09937f1b 100644 --- a/priv/static/beacon_live_admin.min.js.map +++ b/priv/static/beacon_live_admin.min.js.map @@ -1,7 +1,7 @@ { "version": 3, "sources": ["../../assets/vendor/topbar.js", "../../assets/js/beacon_live_admin.js", "../../deps/live_monaco_editor/assets/node_modules/@monaco-editor/loader/lib/es/_virtual/_rollupPluginBabelHelpers.js", "../../deps/live_monaco_editor/assets/node_modules/state-local/lib/es/state-local.js", "../../deps/live_monaco_editor/assets/node_modules/@monaco-editor/loader/lib/es/config/index.js", "../../deps/live_monaco_editor/assets/node_modules/@monaco-editor/loader/lib/es/utils/curry.js", "../../deps/live_monaco_editor/assets/node_modules/@monaco-editor/loader/lib/es/utils/isObject.js", "../../deps/live_monaco_editor/assets/node_modules/@monaco-editor/loader/lib/es/validators/index.js", "../../deps/live_monaco_editor/assets/node_modules/@monaco-editor/loader/lib/es/utils/compose.js", "../../deps/live_monaco_editor/assets/node_modules/@monaco-editor/loader/lib/es/utils/deepMerge.js", "../../deps/live_monaco_editor/assets/node_modules/@monaco-editor/loader/lib/es/utils/makeCancelable.js", "../../deps/live_monaco_editor/assets/node_modules/@monaco-editor/loader/lib/es/loader/index.js", "../../deps/live_monaco_editor/assets/js/live_monaco_editor/editor/themes.js", "../../deps/live_monaco_editor/assets/js/live_monaco_editor/editor/code_editor.js", "../../deps/live_monaco_editor/assets/js/live_monaco_editor/hooks/code_editor.js"], - "sourcesContent": ["/**\n * @license MIT\n * topbar 2.0.0, 2023-02-04\n * https://buunguyen.github.io/topbar\n * Copyright (c) 2021 Buu Nguyen\n */\n(function (window, document) {\n \"use strict\";\n\n // https://gist.github.com/paulirish/1579671\n (function () {\n var lastTime = 0;\n var vendors = [\"ms\", \"moz\", \"webkit\", \"o\"];\n for (var x = 0; x < vendors.length && !window.requestAnimationFrame; ++x) {\n window.requestAnimationFrame =\n window[vendors[x] + \"RequestAnimationFrame\"];\n window.cancelAnimationFrame =\n window[vendors[x] + \"CancelAnimationFrame\"] ||\n window[vendors[x] + \"CancelRequestAnimationFrame\"];\n }\n if (!window.requestAnimationFrame)\n window.requestAnimationFrame = function (callback, element) {\n var currTime = new Date().getTime();\n var timeToCall = Math.max(0, 16 - (currTime - lastTime));\n var id = window.setTimeout(function () {\n callback(currTime + timeToCall);\n }, timeToCall);\n lastTime = currTime + timeToCall;\n return id;\n };\n if (!window.cancelAnimationFrame)\n window.cancelAnimationFrame = function (id) {\n clearTimeout(id);\n };\n })();\n\n var canvas,\n currentProgress,\n showing,\n progressTimerId = null,\n fadeTimerId = null,\n delayTimerId = null,\n addEvent = function (elem, type, handler) {\n if (elem.addEventListener) elem.addEventListener(type, handler, false);\n else if (elem.attachEvent) elem.attachEvent(\"on\" + type, handler);\n else elem[\"on\" + type] = handler;\n },\n options = {\n autoRun: true,\n barThickness: 3,\n barColors: {\n 0: \"rgba(26, 188, 156, .9)\",\n \".25\": \"rgba(52, 152, 219, .9)\",\n \".50\": \"rgba(241, 196, 15, .9)\",\n \".75\": \"rgba(230, 126, 34, .9)\",\n \"1.0\": \"rgba(211, 84, 0, .9)\",\n },\n shadowBlur: 10,\n shadowColor: \"rgba(0, 0, 0, .6)\",\n className: null,\n },\n repaint = function () {\n canvas.width = window.innerWidth;\n canvas.height = options.barThickness * 5; // need space for shadow\n\n var ctx = canvas.getContext(\"2d\");\n ctx.shadowBlur = options.shadowBlur;\n ctx.shadowColor = options.shadowColor;\n\n var lineGradient = ctx.createLinearGradient(0, 0, canvas.width, 0);\n for (var stop in options.barColors)\n lineGradient.addColorStop(stop, options.barColors[stop]);\n ctx.lineWidth = options.barThickness;\n ctx.beginPath();\n ctx.moveTo(0, options.barThickness / 2);\n ctx.lineTo(\n Math.ceil(currentProgress * canvas.width),\n options.barThickness / 2\n );\n ctx.strokeStyle = lineGradient;\n ctx.stroke();\n },\n createCanvas = function () {\n canvas = document.createElement(\"canvas\");\n var style = canvas.style;\n style.position = \"fixed\";\n style.top = style.left = style.right = style.margin = style.padding = 0;\n style.zIndex = 100001;\n style.display = \"none\";\n if (options.className) canvas.classList.add(options.className);\n document.body.appendChild(canvas);\n addEvent(window, \"resize\", repaint);\n },\n topbar = {\n config: function (opts) {\n for (var key in opts)\n if (options.hasOwnProperty(key)) options[key] = opts[key];\n },\n show: function (delay) {\n if (showing) return;\n if (delay) {\n if (delayTimerId) return;\n delayTimerId = setTimeout(() => topbar.show(), delay);\n } else {\n showing = true;\n if (fadeTimerId !== null) window.cancelAnimationFrame(fadeTimerId);\n if (!canvas) createCanvas();\n canvas.style.opacity = 1;\n canvas.style.display = \"block\";\n topbar.progress(0);\n if (options.autoRun) {\n (function loop() {\n progressTimerId = window.requestAnimationFrame(loop);\n topbar.progress(\n \"+\" + 0.05 * Math.pow(1 - Math.sqrt(currentProgress), 2)\n );\n })();\n }\n }\n },\n progress: function (to) {\n if (typeof to === \"undefined\") return currentProgress;\n if (typeof to === \"string\") {\n to =\n (to.indexOf(\"+\") >= 0 || to.indexOf(\"-\") >= 0\n ? currentProgress\n : 0) + parseFloat(to);\n }\n currentProgress = to > 1 ? 1 : to;\n repaint();\n return currentProgress;\n },\n hide: function () {\n clearTimeout(delayTimerId);\n delayTimerId = null;\n if (!showing) return;\n showing = false;\n if (progressTimerId != null) {\n window.cancelAnimationFrame(progressTimerId);\n progressTimerId = null;\n }\n (function loop() {\n if (topbar.progress(\"+.1\") >= 1) {\n canvas.style.opacity -= 0.05;\n if (canvas.style.opacity <= 0.05) {\n canvas.style.display = \"none\";\n fadeTimerId = null;\n return;\n }\n }\n fadeTimerId = window.requestAnimationFrame(loop);\n })();\n },\n };\n\n if (typeof module === \"object\" && typeof module.exports === \"object\") {\n module.exports = topbar;\n } else if (typeof define === \"function\" && define.amd) {\n define(function () {\n return topbar;\n });\n } else {\n this.topbar = topbar;\n }\n}.call(this, window, document));\n", "import topbar from \"../vendor/topbar\"\nimport { CodeEditorHook } from \"../../deps/live_monaco_editor/priv/static/live_monaco_editor.esm\"\n\nlet Hooks = {}\nHooks.CodeEditorHook = CodeEditorHook\n\ntopbar.config({barColors: {0: \"#29d\"}, shadowColor: \"rgba(0, 0, 0, .3)\"})\nwindow.addEventListener(\"phx:page-loading-start\", _info => topbar.show(300))\nwindow.addEventListener(\"phx:page-loading-stop\", _info => topbar.hide())\n\nwindow.addEventListener(\"lme:editor_mounted\", (ev) => {\n const hook = ev.detail.hook\n const editor = ev.detail.editor.standalone_code_editor\n const eventName = ev.detail.editor.path + \"_editor_lost_focus\"\n\n editor.onDidBlurEditorWidget(() => {\n hook.pushEvent(eventName, { value: editor.getValue() })\n })\n})\n\nwindow.addEventListener(\"beacon_admin:clipcopy\", (event) => {\n const result_id = `${event.target.id}-copy-to-clipboard-result`\n const el = document.getElementById(result_id);\n\n if (\"clipboard\" in navigator) {\n if (event.target.tagName === \"INPUT\") {\n txt = event.target.value;\n } else {\n txt = event.target.textContent;\n }\n\n navigator.clipboard.writeText(txt).then(() => {\n el.innerText = 'Copied to clipboard';\n // Make it visible\n el.classList.remove('invisible', 'text-red-500', 'opacity-0');\n // Fade in and translate upwards\n el.classList.add('text-green-500', 'opacity-100', '-translate-y-2');\n\n setTimeout(function() {\n el.classList.remove('text-green-500', 'opacity-100', '-translate-y-2');\n el.classList.add('invisible', 'text-red-500', 'opacity-0');\n }, 2000);\n\n }).catch(() => {\n el.innerText = 'Could not copy';\n // Make it visible\n el.classList.remove('invisible', 'text-green-500', 'opacity-0');\n // Fade in and translate upwards\n el.classList.add('text-red-500', 'opacity-100', '-translate-y-2');\n })\n } else {\n alert(\n \"Sorry, your browser does not support clipboard copy.\"\n );\n }\n});\n\nlet socketPath = document.querySelector(\"html\").getAttribute(\"phx-socket\") || \"/live\"\nlet csrfToken = document .querySelector(\"meta[name='csrf-token']\") .getAttribute(\"content\")\nlet liveSocket = new LiveView.LiveSocket(socketPath, Phoenix.Socket, {\n hooks: Hooks,\n params: { _csrf_token: csrfToken },\n})\nliveSocket.connect()\nwindow.liveSocket = liveSocket\n", "function _defineProperty(obj, key, value) {\n if (key in obj) {\n Object.defineProperty(obj, key, {\n value: value,\n enumerable: true,\n configurable: true,\n writable: true\n });\n } else {\n obj[key] = value;\n }\n\n return obj;\n}\n\nfunction ownKeys(object, enumerableOnly) {\n var keys = Object.keys(object);\n\n if (Object.getOwnPropertySymbols) {\n var symbols = Object.getOwnPropertySymbols(object);\n if (enumerableOnly) symbols = symbols.filter(function (sym) {\n return Object.getOwnPropertyDescriptor(object, sym).enumerable;\n });\n keys.push.apply(keys, symbols);\n }\n\n return keys;\n}\n\nfunction _objectSpread2(target) {\n for (var i = 1; i < arguments.length; i++) {\n var source = arguments[i] != null ? arguments[i] : {};\n\n if (i % 2) {\n ownKeys(Object(source), true).forEach(function (key) {\n _defineProperty(target, key, source[key]);\n });\n } else if (Object.getOwnPropertyDescriptors) {\n Object.defineProperties(target, Object.getOwnPropertyDescriptors(source));\n } else {\n ownKeys(Object(source)).forEach(function (key) {\n Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));\n });\n }\n }\n\n return target;\n}\n\nfunction _objectWithoutPropertiesLoose(source, excluded) {\n if (source == null) return {};\n var target = {};\n var sourceKeys = Object.keys(source);\n var key, i;\n\n for (i = 0; i < sourceKeys.length; i++) {\n key = sourceKeys[i];\n if (excluded.indexOf(key) >= 0) continue;\n target[key] = source[key];\n }\n\n return target;\n}\n\nfunction _objectWithoutProperties(source, excluded) {\n if (source == null) return {};\n\n var target = _objectWithoutPropertiesLoose(source, excluded);\n\n var key, i;\n\n if (Object.getOwnPropertySymbols) {\n var sourceSymbolKeys = Object.getOwnPropertySymbols(source);\n\n for (i = 0; i < sourceSymbolKeys.length; i++) {\n key = sourceSymbolKeys[i];\n if (excluded.indexOf(key) >= 0) continue;\n if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue;\n target[key] = source[key];\n }\n }\n\n return target;\n}\n\nfunction _slicedToArray(arr, i) {\n return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest();\n}\n\nfunction _arrayWithHoles(arr) {\n if (Array.isArray(arr)) return arr;\n}\n\nfunction _iterableToArrayLimit(arr, i) {\n if (typeof Symbol === \"undefined\" || !(Symbol.iterator in Object(arr))) return;\n var _arr = [];\n var _n = true;\n var _d = false;\n var _e = undefined;\n\n try {\n for (var _i = arr[Symbol.iterator](), _s; !(_n = (_s = _i.next()).done); _n = true) {\n _arr.push(_s.value);\n\n if (i && _arr.length === i) break;\n }\n } catch (err) {\n _d = true;\n _e = err;\n } finally {\n try {\n if (!_n && _i[\"return\"] != null) _i[\"return\"]();\n } finally {\n if (_d) throw _e;\n }\n }\n\n return _arr;\n}\n\nfunction _unsupportedIterableToArray(o, minLen) {\n if (!o) return;\n if (typeof o === \"string\") return _arrayLikeToArray(o, minLen);\n var n = Object.prototype.toString.call(o).slice(8, -1);\n if (n === \"Object\" && o.constructor) n = o.constructor.name;\n if (n === \"Map\" || n === \"Set\") return Array.from(o);\n if (n === \"Arguments\" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen);\n}\n\nfunction _arrayLikeToArray(arr, len) {\n if (len == null || len > arr.length) len = arr.length;\n\n for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i];\n\n return arr2;\n}\n\nfunction _nonIterableRest() {\n throw new TypeError(\"Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.\");\n}\n\nexport { _arrayLikeToArray as arrayLikeToArray, _arrayWithHoles as arrayWithHoles, _defineProperty as defineProperty, _iterableToArrayLimit as iterableToArrayLimit, _nonIterableRest as nonIterableRest, _objectSpread2 as objectSpread2, _objectWithoutProperties as objectWithoutProperties, _objectWithoutPropertiesLoose as objectWithoutPropertiesLoose, _slicedToArray as slicedToArray, _unsupportedIterableToArray as unsupportedIterableToArray };\n", "function _defineProperty(obj, key, value) {\n if (key in obj) {\n Object.defineProperty(obj, key, {\n value: value,\n enumerable: true,\n configurable: true,\n writable: true\n });\n } else {\n obj[key] = value;\n }\n\n return obj;\n}\n\nfunction ownKeys(object, enumerableOnly) {\n var keys = Object.keys(object);\n\n if (Object.getOwnPropertySymbols) {\n var symbols = Object.getOwnPropertySymbols(object);\n if (enumerableOnly) symbols = symbols.filter(function (sym) {\n return Object.getOwnPropertyDescriptor(object, sym).enumerable;\n });\n keys.push.apply(keys, symbols);\n }\n\n return keys;\n}\n\nfunction _objectSpread2(target) {\n for (var i = 1; i < arguments.length; i++) {\n var source = arguments[i] != null ? arguments[i] : {};\n\n if (i % 2) {\n ownKeys(Object(source), true).forEach(function (key) {\n _defineProperty(target, key, source[key]);\n });\n } else if (Object.getOwnPropertyDescriptors) {\n Object.defineProperties(target, Object.getOwnPropertyDescriptors(source));\n } else {\n ownKeys(Object(source)).forEach(function (key) {\n Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));\n });\n }\n }\n\n return target;\n}\n\nfunction compose() {\n for (var _len = arguments.length, fns = new Array(_len), _key = 0; _key < _len; _key++) {\n fns[_key] = arguments[_key];\n }\n\n return function (x) {\n return fns.reduceRight(function (y, f) {\n return f(y);\n }, x);\n };\n}\n\nfunction curry(fn) {\n return function curried() {\n var _this = this;\n\n for (var _len2 = arguments.length, args = new Array(_len2), _key2 = 0; _key2 < _len2; _key2++) {\n args[_key2] = arguments[_key2];\n }\n\n return args.length >= fn.length ? fn.apply(this, args) : function () {\n for (var _len3 = arguments.length, nextArgs = new Array(_len3), _key3 = 0; _key3 < _len3; _key3++) {\n nextArgs[_key3] = arguments[_key3];\n }\n\n return curried.apply(_this, [].concat(args, nextArgs));\n };\n };\n}\n\nfunction isObject(value) {\n return {}.toString.call(value).includes('Object');\n}\n\nfunction isEmpty(obj) {\n return !Object.keys(obj).length;\n}\n\nfunction isFunction(value) {\n return typeof value === 'function';\n}\n\nfunction hasOwnProperty(object, property) {\n return Object.prototype.hasOwnProperty.call(object, property);\n}\n\nfunction validateChanges(initial, changes) {\n if (!isObject(changes)) errorHandler('changeType');\n if (Object.keys(changes).some(function (field) {\n return !hasOwnProperty(initial, field);\n })) errorHandler('changeField');\n return changes;\n}\n\nfunction validateSelector(selector) {\n if (!isFunction(selector)) errorHandler('selectorType');\n}\n\nfunction validateHandler(handler) {\n if (!(isFunction(handler) || isObject(handler))) errorHandler('handlerType');\n if (isObject(handler) && Object.values(handler).some(function (_handler) {\n return !isFunction(_handler);\n })) errorHandler('handlersType');\n}\n\nfunction validateInitial(initial) {\n if (!initial) errorHandler('initialIsRequired');\n if (!isObject(initial)) errorHandler('initialType');\n if (isEmpty(initial)) errorHandler('initialContent');\n}\n\nfunction throwError(errorMessages, type) {\n throw new Error(errorMessages[type] || errorMessages[\"default\"]);\n}\n\nvar errorMessages = {\n initialIsRequired: 'initial state is required',\n initialType: 'initial state should be an object',\n initialContent: 'initial state shouldn\\'t be an empty object',\n handlerType: 'handler should be an object or a function',\n handlersType: 'all handlers should be a functions',\n selectorType: 'selector should be a function',\n changeType: 'provided value of changes should be an object',\n changeField: 'it seams you want to change a field in the state which is not specified in the \"initial\" state',\n \"default\": 'an unknown error accured in `state-local` package'\n};\nvar errorHandler = curry(throwError)(errorMessages);\nvar validators = {\n changes: validateChanges,\n selector: validateSelector,\n handler: validateHandler,\n initial: validateInitial\n};\n\nfunction create(initial) {\n var handler = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};\n validators.initial(initial);\n validators.handler(handler);\n var state = {\n current: initial\n };\n var didUpdate = curry(didStateUpdate)(state, handler);\n var update = curry(updateState)(state);\n var validate = curry(validators.changes)(initial);\n var getChanges = curry(extractChanges)(state);\n\n function getState() {\n var selector = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : function (state) {\n return state;\n };\n validators.selector(selector);\n return selector(state.current);\n }\n\n function setState(causedChanges) {\n compose(didUpdate, update, validate, getChanges)(causedChanges);\n }\n\n return [getState, setState];\n}\n\nfunction extractChanges(state, causedChanges) {\n return isFunction(causedChanges) ? causedChanges(state.current) : causedChanges;\n}\n\nfunction updateState(state, changes) {\n state.current = _objectSpread2(_objectSpread2({}, state.current), changes);\n return changes;\n}\n\nfunction didStateUpdate(state, handler, changes) {\n isFunction(handler) ? handler(state.current) : Object.keys(changes).forEach(function (field) {\n var _handler$field;\n\n return (_handler$field = handler[field]) === null || _handler$field === void 0 ? void 0 : _handler$field.call(handler, state.current[field]);\n });\n return changes;\n}\n\nvar index = {\n create: create\n};\n\nexport default index;\n", "var config = {\n paths: {\n vs: 'https://cdn.jsdelivr.net/npm/monaco-editor@0.36.1/min/vs'\n }\n};\n\nexport default config;\n", "function curry(fn) {\n return function curried() {\n var _this = this;\n\n for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {\n args[_key] = arguments[_key];\n }\n\n return args.length >= fn.length ? fn.apply(this, args) : function () {\n for (var _len2 = arguments.length, nextArgs = new Array(_len2), _key2 = 0; _key2 < _len2; _key2++) {\n nextArgs[_key2] = arguments[_key2];\n }\n\n return curried.apply(_this, [].concat(args, nextArgs));\n };\n };\n}\n\nexport default curry;\n", "function isObject(value) {\n return {}.toString.call(value).includes('Object');\n}\n\nexport default isObject;\n", "import curry from '../utils/curry.js';\nimport isObject from '../utils/isObject.js';\n\n/**\n * validates the configuration object and informs about deprecation\n * @param {Object} config - the configuration object \n * @return {Object} config - the validated configuration object\n */\n\nfunction validateConfig(config) {\n if (!config) errorHandler('configIsRequired');\n if (!isObject(config)) errorHandler('configType');\n\n if (config.urls) {\n informAboutDeprecation();\n return {\n paths: {\n vs: config.urls.monacoBase\n }\n };\n }\n\n return config;\n}\n/**\n * logs deprecation message\n */\n\n\nfunction informAboutDeprecation() {\n console.warn(errorMessages.deprecation);\n}\n\nfunction throwError(errorMessages, type) {\n throw new Error(errorMessages[type] || errorMessages[\"default\"]);\n}\n\nvar errorMessages = {\n configIsRequired: 'the configuration object is required',\n configType: 'the configuration object should be an object',\n \"default\": 'an unknown error accured in `@monaco-editor/loader` package',\n deprecation: \"Deprecation warning!\\n You are using deprecated way of configuration.\\n\\n Instead of using\\n monaco.config({ urls: { monacoBase: '...' } })\\n use\\n monaco.config({ paths: { vs: '...' } })\\n\\n For more please check the link https://github.com/suren-atoyan/monaco-loader#config\\n \"\n};\nvar errorHandler = curry(throwError)(errorMessages);\nvar validators = {\n config: validateConfig\n};\n\nexport default validators;\nexport { errorHandler, errorMessages };\n", "var compose = function compose() {\n for (var _len = arguments.length, fns = new Array(_len), _key = 0; _key < _len; _key++) {\n fns[_key] = arguments[_key];\n }\n\n return function (x) {\n return fns.reduceRight(function (y, f) {\n return f(y);\n }, x);\n };\n};\n\nexport default compose;\n", "import { objectSpread2 as _objectSpread2 } from '../_virtual/_rollupPluginBabelHelpers.js';\n\nfunction merge(target, source) {\n Object.keys(source).forEach(function (key) {\n if (source[key] instanceof Object) {\n if (target[key]) {\n Object.assign(source[key], merge(target[key], source[key]));\n }\n }\n });\n return _objectSpread2(_objectSpread2({}, target), source);\n}\n\nexport default merge;\n", "// The source (has been changed) is https://github.com/facebook/react/issues/5465#issuecomment-157888325\nvar CANCELATION_MESSAGE = {\n type: 'cancelation',\n msg: 'operation is manually canceled'\n};\n\nfunction makeCancelable(promise) {\n var hasCanceled_ = false;\n var wrappedPromise = new Promise(function (resolve, reject) {\n promise.then(function (val) {\n return hasCanceled_ ? reject(CANCELATION_MESSAGE) : resolve(val);\n });\n promise[\"catch\"](reject);\n });\n return wrappedPromise.cancel = function () {\n return hasCanceled_ = true;\n }, wrappedPromise;\n}\n\nexport default makeCancelable;\nexport { CANCELATION_MESSAGE };\n", "import { slicedToArray as _slicedToArray, objectWithoutProperties as _objectWithoutProperties } from '../_virtual/_rollupPluginBabelHelpers.js';\nimport state from 'state-local';\nimport config$1 from '../config/index.js';\nimport validators from '../validators/index.js';\nimport compose from '../utils/compose.js';\nimport merge from '../utils/deepMerge.js';\nimport makeCancelable from '../utils/makeCancelable.js';\n\n/** the local state of the module */\n\nvar _state$create = state.create({\n config: config$1,\n isInitialized: false,\n resolve: null,\n reject: null,\n monaco: null\n}),\n _state$create2 = _slicedToArray(_state$create, 2),\n getState = _state$create2[0],\n setState = _state$create2[1];\n/**\n * set the loader configuration\n * @param {Object} config - the configuration object\n */\n\n\nfunction config(globalConfig) {\n var _validators$config = validators.config(globalConfig),\n monaco = _validators$config.monaco,\n config = _objectWithoutProperties(_validators$config, [\"monaco\"]);\n\n setState(function (state) {\n return {\n config: merge(state.config, config),\n monaco: monaco\n };\n });\n}\n/**\n * handles the initialization of the monaco-editor\n * @return {Promise} - returns an instance of monaco (with a cancelable promise)\n */\n\n\nfunction init() {\n var state = getState(function (_ref) {\n var monaco = _ref.monaco,\n isInitialized = _ref.isInitialized,\n resolve = _ref.resolve;\n return {\n monaco: monaco,\n isInitialized: isInitialized,\n resolve: resolve\n };\n });\n\n if (!state.isInitialized) {\n setState({\n isInitialized: true\n });\n\n if (state.monaco) {\n state.resolve(state.monaco);\n return makeCancelable(wrapperPromise);\n }\n\n if (window.monaco && window.monaco.editor) {\n storeMonacoInstance(window.monaco);\n state.resolve(window.monaco);\n return makeCancelable(wrapperPromise);\n }\n\n compose(injectScripts, getMonacoLoaderScript)(configureLoader);\n }\n\n return makeCancelable(wrapperPromise);\n}\n/**\n * injects provided scripts into the document.body\n * @param {Object} script - an HTML script element\n * @return {Object} - the injected HTML script element\n */\n\n\nfunction injectScripts(script) {\n return document.body.appendChild(script);\n}\n/**\n * creates an HTML script element with/without provided src\n * @param {string} [src] - the source path of the script\n * @return {Object} - the created HTML script element\n */\n\n\nfunction createScript(src) {\n var script = document.createElement('script');\n return src && (script.src = src), script;\n}\n/**\n * creates an HTML script element with the monaco loader src\n * @return {Object} - the created HTML script element\n */\n\n\nfunction getMonacoLoaderScript(configureLoader) {\n var state = getState(function (_ref2) {\n var config = _ref2.config,\n reject = _ref2.reject;\n return {\n config: config,\n reject: reject\n };\n });\n var loaderScript = createScript(\"\".concat(state.config.paths.vs, \"/loader.js\"));\n\n loaderScript.onload = function () {\n return configureLoader();\n };\n\n loaderScript.onerror = state.reject;\n return loaderScript;\n}\n/**\n * configures the monaco loader\n */\n\n\nfunction configureLoader() {\n var state = getState(function (_ref3) {\n var config = _ref3.config,\n resolve = _ref3.resolve,\n reject = _ref3.reject;\n return {\n config: config,\n resolve: resolve,\n reject: reject\n };\n });\n var require = window.require;\n\n require.config(state.config);\n\n require(['vs/editor/editor.main'], function (monaco) {\n storeMonacoInstance(monaco);\n state.resolve(monaco);\n }, function (error) {\n state.reject(error);\n });\n}\n/**\n * store monaco instance in local state\n */\n\n\nfunction storeMonacoInstance(monaco) {\n if (!getState().monaco) {\n setState({\n monaco: monaco\n });\n }\n}\n/**\n * internal helper function\n * extracts stored monaco instance\n * @return {Object|null} - the monaco instance\n */\n\n\nfunction __getMonacoInstance() {\n return getState(function (_ref4) {\n var monaco = _ref4.monaco;\n return monaco;\n });\n}\n\nvar wrapperPromise = new Promise(function (resolve, reject) {\n return setState({\n resolve: resolve,\n reject: reject\n });\n});\nvar loader = {\n config: config,\n init: init,\n __getMonacoInstance: __getMonacoInstance\n};\n\nexport default loader;\n", "// Copied and modified from the original work available at https://github.com/livebook-dev/livebook/blob/23e58ac604de92ce54472f36fe3e28dc27576d6c/assets/js/hooks/cell_editor/live_editor/theme.js\n// Copyright (C) 2021 Dashbit\n// Licensed under Apache 2.0 available at https://www.apache.org/licenses/LICENSE-2.0\n\n// This is a port of the One Dark theme to the Monaco editor.\n// We color graded the comment so it has AA accessibility and\n// then similarly scaled the default font.\nconst colors = {\n background: \"#282c34\",\n default: \"#c4cad6\",\n lightRed: \"#e06c75\",\n blue: \"#61afef\",\n gray: \"#8c92a3\",\n green: \"#98c379\",\n purple: \"#c678dd\",\n red: \"#be5046\",\n teal: \"#56b6c2\",\n peach: \"#d19a66\",\n}\n\nconst rules = (colors) => [\n { token: \"\", foreground: colors.default },\n { token: \"variable\", foreground: colors.lightRed },\n { token: \"constant\", foreground: colors.blue },\n { token: \"constant.character.escape\", foreground: colors.blue },\n { token: \"comment\", foreground: colors.gray },\n { token: \"number\", foreground: colors.blue },\n { token: \"regexp\", foreground: colors.lightRed },\n { token: \"type\", foreground: colors.lightRed },\n { token: \"string\", foreground: colors.green },\n { token: \"keyword\", foreground: colors.purple },\n { token: \"operator\", foreground: colors.peach },\n { token: \"delimiter.bracket.embed\", foreground: colors.red },\n { token: \"sigil\", foreground: colors.teal },\n { token: \"function\", foreground: colors.blue },\n { token: \"function.call\", foreground: colors.default },\n\n // Markdown specific\n { token: \"emphasis\", fontStyle: \"italic\" },\n { token: \"strong\", fontStyle: \"bold\" },\n { token: \"keyword.md\", foreground: colors.lightRed },\n { token: \"keyword.table\", foreground: colors.lightRed },\n { token: \"string.link.md\", foreground: colors.blue },\n { token: \"variable.md\", foreground: colors.teal },\n { token: \"string.md\", foreground: colors.default },\n { token: \"variable.source.md\", foreground: colors.default },\n\n // XML specific\n { token: \"tag\", foreground: colors.lightRed },\n { token: \"metatag\", foreground: colors.lightRed },\n { token: \"attribute.name\", foreground: colors.peach },\n { token: \"attribute.value\", foreground: colors.green },\n\n // JSON specific\n { token: \"string.key\", foreground: colors.lightRed },\n { token: \"keyword.json\", foreground: colors.blue },\n\n // SQL specific\n { token: \"operator.sql\", foreground: colors.purple },\n]\n\nconst theme = {\n base: \"vs-dark\",\n inherit: false,\n rules: rules(colors),\n colors: {\n \"editor.background\": colors.background,\n \"editor.foreground\": colors.default,\n \"editorLineNumber.foreground\": \"#636d83\",\n \"editorCursor.foreground\": \"#636d83\",\n \"editor.selectionBackground\": \"#3e4451\",\n \"editor.findMatchHighlightBackground\": \"#528bff3d\",\n \"editorSuggestWidget.background\": \"#21252b\",\n \"editorSuggestWidget.border\": \"#181a1f\",\n \"editorSuggestWidget.selectedBackground\": \"#2c313a\",\n \"input.background\": \"#1b1d23\",\n \"input.border\": \"#181a1f\",\n \"editorBracketMatch.border\": \"#282c34\",\n \"editorBracketMatch.background\": \"#3e4451\",\n },\n}\n\nexport { theme }\n", "// Copied and modified from the original work available at https://github.com/livebook-dev/livebook/blob/8532bc334bdcf3c57fab9b694666e609877d279f/assets/js/hooks/cell_editor/live_editor.js\n// Copyright (C) 2021 Dashbit\n// Licensed under Apache 2.0 available at https://www.apache.org/licenses/LICENSE-2.0\n\nimport loader from \"@monaco-editor/loader\"\nimport { theme } from \"./themes\"\n\nclass CodeEditor {\n constructor(el, path, value, opts) {\n this.el = el\n this.path = path\n this.value = value\n this.opts = opts\n // https://microsoft.github.io/monaco-editor/docs.html#interfaces/editor.IStandaloneCodeEditor.html\n this.standalone_code_editor = null\n this._onMount = []\n }\n\n isMounted() {\n return !!this.standalone_code_editor\n }\n\n mount() {\n if (this.isMounted()) {\n throw new Error(\"The monaco editor is already mounted\")\n }\n\n this._mountEditor()\n }\n\n onMount(callback) {\n this._onMount.push(callback)\n }\n\n dispose() {\n if (this.isMounted()) {\n const model = this.standalone_code_editor.getModel()\n\n if (model) {\n model.dispose()\n }\n\n this.standalone_code_editor.dispose()\n }\n }\n\n _mountEditor() {\n this.opts.value = this.value\n\n loader.init().then((monaco) => {\n monaco.editor.defineTheme(\"default\", theme)\n\n let modelUri = monaco.Uri.parse(this.path)\n let language = this.opts.language\n let model = monaco.editor.createModel(this.value, language, modelUri)\n\n this.opts.language = undefined\n this.opts.model = model\n this.standalone_code_editor = monaco.editor.create(this.el, this.opts)\n\n this._onMount.forEach((callback) => callback(monaco))\n })\n }\n}\n\nexport default CodeEditor\n", "import CodeEditor from \"../editor/code_editor\"\n\nconst CodeEditorHook = {\n mounted() {\n // TODO: validate dataset\n const opts = JSON.parse(this.el.dataset.opts)\n this.codeEditor = new CodeEditor(\n this.el,\n this.el.dataset.path,\n this.el.dataset.value,\n opts\n )\n\n this.codeEditor.onMount((monaco) => {\n this.el.dispatchEvent(\n new CustomEvent(\"lme:editor_mounted\", {\n detail: { hook: this, editor: this.codeEditor },\n bubbles: true,\n })\n )\n\n this.handleEvent(\n \"lme:change_language:\" + this.el.dataset.path,\n (data) => {\n const model = this.codeEditor.standalone_code_editor.getModel()\n\n if (model.getLanguageId() !== data.mimeTypeOrLanguageId) {\n monaco.editor.setModelLanguage(model, data.mimeTypeOrLanguageId)\n }\n }\n )\n\n this.handleEvent(\"lme:set_value:\" + this.el.dataset.path, (data) => {\n this.codeEditor.standalone_code_editor.setValue(data.value)\n })\n\n this.el.querySelectorAll(\"textarea\").forEach((textarea) => {\n textarea.setAttribute(\n \"name\",\n \"live_monaco_editor[\" + this.el.dataset.path + \"]\"\n )\n })\n\n this.el.removeAttribute(\"data-value\")\n this.el.removeAttribute(\"data-opts\")\n })\n\n if (!this.codeEditor.isMounted()) {\n this.codeEditor.mount()\n }\n },\n\n destroyed() {\n if (this.codeEditor) {\n this.codeEditor.dispose()\n }\n },\n}\n\nexport { CodeEditorHook }\n"], - "mappings": "siBAAA,IAAAA,EAAAC,EAAA,CAAAC,EAAAC,IAAA,EAMC,SAAUC,EAAQC,EAAU,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EAAYH,EAAG,OAAO,OAAO,KAAO,qBAE1CE,EAAO,sBAAsB,IAAM,CACjCD,EAAK,UAAUE,EAAW,CAAE,MAAOD,EAAO,SAAS,CAAE,CAAC,CACxD,CAAC,CACH,CAAC,EAED,OAAO,iBAAiB,wBAA0BE,GAAU,CAC1D,IAAMC,EAAY,GAAGD,EAAM,OAAO,8BAC5BE,EAAK,SAAS,eAAeD,CAAS,EAExC,cAAe,WACbD,EAAM,OAAO,UAAY,QAC3B,IAAMA,EAAM,OAAO,MAEnB,IAAMA,EAAM,OAAO,YAGrB,UAAU,UAAU,UAAU,GAAG,EAAE,KAAK,IAAM,CAC5CE,EAAG,UAAY,sBAEfA,EAAG,UAAU,OAAO,YAAa,eAAgB,WAAW,EAE5DA,EAAG,UAAU,IAAI,iBAAkB,cAAe,gBAAgB,EAElE,WAAW,UAAW,CACpBA,EAAG,UAAU,OAAO,iBAAkB,cAAe,gBAAgB,EACrEA,EAAG,UAAU,IAAI,YAAa,eAAgB,WAAW,CAC3D,EAAG,GAAI,CAET,CAAC,EAAE,MAAM,IAAM,CACbA,EAAG,UAAY,iBAEfA,EAAG,UAAU,OAAO,YAAa,iBAAkB,WAAW,EAE9DA,EAAG,UAAU,IAAI,eAAgB,cAAe,gBAAgB,CAClE,CAAC,GAED,MACE,sDACF,CAEJ,CAAC,EAED,IAAIC,GAAa,SAAS,cAAc,MAAM,EAAE,aAAa,YAAY,GAAK,QAC1EC,GAAY,SAAU,cAAc,yBAAyB,EAAG,aAAa,SAAS,EACtFC,EAAa,IAAI,SAAS,WAAWF,GAAY,QAAQ,OAAQ,CACnE,MAAOX,EACP,OAAQ,CAAE,YAAaY,EAAU,CACnC,CAAC,EACDC,EAAW,QAAQ,EACnB,OAAO,WAAaA", + "sourcesContent": ["/**\n * @license MIT\n * topbar 2.0.0, 2023-02-04\n * https://buunguyen.github.io/topbar\n * Copyright (c) 2021 Buu Nguyen\n */\n(function (window, document) {\n \"use strict\";\n\n // https://gist.github.com/paulirish/1579671\n (function () {\n var lastTime = 0;\n var vendors = [\"ms\", \"moz\", \"webkit\", \"o\"];\n for (var x = 0; x < vendors.length && !window.requestAnimationFrame; ++x) {\n window.requestAnimationFrame =\n window[vendors[x] + \"RequestAnimationFrame\"];\n window.cancelAnimationFrame =\n window[vendors[x] + \"CancelAnimationFrame\"] ||\n window[vendors[x] + \"CancelRequestAnimationFrame\"];\n }\n if (!window.requestAnimationFrame)\n window.requestAnimationFrame = function (callback, element) {\n var currTime = new Date().getTime();\n var timeToCall = Math.max(0, 16 - (currTime - lastTime));\n var id = window.setTimeout(function () {\n callback(currTime + timeToCall);\n }, timeToCall);\n lastTime = currTime + timeToCall;\n return id;\n };\n if (!window.cancelAnimationFrame)\n window.cancelAnimationFrame = function (id) {\n clearTimeout(id);\n };\n })();\n\n var canvas,\n currentProgress,\n showing,\n progressTimerId = null,\n fadeTimerId = null,\n delayTimerId = null,\n addEvent = function (elem, type, handler) {\n if (elem.addEventListener) elem.addEventListener(type, handler, false);\n else if (elem.attachEvent) elem.attachEvent(\"on\" + type, handler);\n else elem[\"on\" + type] = handler;\n },\n options = {\n autoRun: true,\n barThickness: 3,\n barColors: {\n 0: \"rgba(26, 188, 156, .9)\",\n \".25\": \"rgba(52, 152, 219, .9)\",\n \".50\": \"rgba(241, 196, 15, .9)\",\n \".75\": \"rgba(230, 126, 34, .9)\",\n \"1.0\": \"rgba(211, 84, 0, .9)\",\n },\n shadowBlur: 10,\n shadowColor: \"rgba(0, 0, 0, .6)\",\n className: null,\n },\n repaint = function () {\n canvas.width = window.innerWidth;\n canvas.height = options.barThickness * 5; // need space for shadow\n\n var ctx = canvas.getContext(\"2d\");\n ctx.shadowBlur = options.shadowBlur;\n ctx.shadowColor = options.shadowColor;\n\n var lineGradient = ctx.createLinearGradient(0, 0, canvas.width, 0);\n for (var stop in options.barColors)\n lineGradient.addColorStop(stop, options.barColors[stop]);\n ctx.lineWidth = options.barThickness;\n ctx.beginPath();\n ctx.moveTo(0, options.barThickness / 2);\n ctx.lineTo(\n Math.ceil(currentProgress * canvas.width),\n options.barThickness / 2\n );\n ctx.strokeStyle = lineGradient;\n ctx.stroke();\n },\n createCanvas = function () {\n canvas = document.createElement(\"canvas\");\n var style = canvas.style;\n style.position = \"fixed\";\n style.top = style.left = style.right = style.margin = style.padding = 0;\n style.zIndex = 100001;\n style.display = \"none\";\n if (options.className) canvas.classList.add(options.className);\n document.body.appendChild(canvas);\n addEvent(window, \"resize\", repaint);\n },\n topbar = {\n config: function (opts) {\n for (var key in opts)\n if (options.hasOwnProperty(key)) options[key] = opts[key];\n },\n show: function (delay) {\n if (showing) return;\n if (delay) {\n if (delayTimerId) return;\n delayTimerId = setTimeout(() => topbar.show(), delay);\n } else {\n showing = true;\n if (fadeTimerId !== null) window.cancelAnimationFrame(fadeTimerId);\n if (!canvas) createCanvas();\n canvas.style.opacity = 1;\n canvas.style.display = \"block\";\n topbar.progress(0);\n if (options.autoRun) {\n (function loop() {\n progressTimerId = window.requestAnimationFrame(loop);\n topbar.progress(\n \"+\" + 0.05 * Math.pow(1 - Math.sqrt(currentProgress), 2)\n );\n })();\n }\n }\n },\n progress: function (to) {\n if (typeof to === \"undefined\") return currentProgress;\n if (typeof to === \"string\") {\n to =\n (to.indexOf(\"+\") >= 0 || to.indexOf(\"-\") >= 0\n ? currentProgress\n : 0) + parseFloat(to);\n }\n currentProgress = to > 1 ? 1 : to;\n repaint();\n return currentProgress;\n },\n hide: function () {\n clearTimeout(delayTimerId);\n delayTimerId = null;\n if (!showing) return;\n showing = false;\n if (progressTimerId != null) {\n window.cancelAnimationFrame(progressTimerId);\n progressTimerId = null;\n }\n (function loop() {\n if (topbar.progress(\"+.1\") >= 1) {\n canvas.style.opacity -= 0.05;\n if (canvas.style.opacity <= 0.05) {\n canvas.style.display = \"none\";\n fadeTimerId = null;\n return;\n }\n }\n fadeTimerId = window.requestAnimationFrame(loop);\n })();\n },\n };\n\n if (typeof module === \"object\" && typeof module.exports === \"object\") {\n module.exports = topbar;\n } else if (typeof define === \"function\" && define.amd) {\n define(function () {\n return topbar;\n });\n } else {\n this.topbar = topbar;\n }\n}.call(this, window, document));\n", "import topbar from \"../vendor/topbar\"\nimport { CodeEditorHook } from \"../../deps/live_monaco_editor/priv/static/live_monaco_editor.esm\"\n\nlet Hooks = {}\nHooks.CodeEditorHook = CodeEditorHook\n\ntopbar.config({barColors: {0: \"#29d\"}, shadowColor: \"rgba(0, 0, 0, .3)\"})\nwindow.addEventListener(\"phx:page-loading-start\", _info => topbar.show(300))\nwindow.addEventListener(\"phx:page-loading-stop\", _info => topbar.hide())\n\nwindow.addEventListener(\"lme:editor_mounted\", (ev) => {\n const hook = ev.detail.hook\n const editor = ev.detail.editor.standalone_code_editor\n const eventName = ev.detail.editor.path + \"_editor_lost_focus\"\n\n editor.onDidBlurEditorWidget(() => {\n hook.pushEvent(eventName, { value: editor.getValue() })\n })\n})\n\nwindow.addEventListener(\"beacon_admin:clipcopy\", (event) => {\n const result_id = `${event.target.id}-copy-to-clipboard-result`\n const el = document.getElementById(result_id);\n\n if (\"clipboard\" in navigator) {\n if (event.target.tagName === \"INPUT\") {\n txt = event.target.value;\n } else {\n txt = event.target.textContent;\n }\n\n navigator.clipboard.writeText(txt).then(() => {\n el.innerText = 'Copied to clipboard';\n // Make it visible\n el.classList.remove('invisible', 'text-red-500', 'opacity-0');\n // Fade in and translate upwards\n el.classList.add('text-green-500', 'opacity-100', '-translate-y-2');\n\n setTimeout(function() {\n el.classList.remove('text-green-500', 'opacity-100', '-translate-y-2');\n el.classList.add('invisible', 'text-red-500', 'opacity-0');\n }, 2000);\n\n }).catch(() => {\n el.innerText = 'Could not copy';\n // Make it visible\n el.classList.remove('invisible', 'text-green-500', 'opacity-0');\n // Fade in and translate upwards\n el.classList.add('text-red-500', 'opacity-100', '-translate-y-2');\n })\n } else {\n alert(\n \"Sorry, your browser does not support clipboard copy.\"\n );\n }\n});\n\nlet socketPath = document.querySelector(\"html\").getAttribute(\"phx-socket\") || \"/live\"\nlet csrfToken = document .querySelector(\"meta[name='csrf-token']\") .getAttribute(\"content\")\nlet liveSocket = new LiveView.LiveSocket(socketPath, Phoenix.Socket, {\n hooks: Hooks,\n params: { _csrf_token: csrfToken },\n})\nliveSocket.connect()\nwindow.liveSocket = liveSocket\n", "function _defineProperty(obj, key, value) {\n if (key in obj) {\n Object.defineProperty(obj, key, {\n value: value,\n enumerable: true,\n configurable: true,\n writable: true\n });\n } else {\n obj[key] = value;\n }\n\n return obj;\n}\n\nfunction ownKeys(object, enumerableOnly) {\n var keys = Object.keys(object);\n\n if (Object.getOwnPropertySymbols) {\n var symbols = Object.getOwnPropertySymbols(object);\n if (enumerableOnly) symbols = symbols.filter(function (sym) {\n return Object.getOwnPropertyDescriptor(object, sym).enumerable;\n });\n keys.push.apply(keys, symbols);\n }\n\n return keys;\n}\n\nfunction _objectSpread2(target) {\n for (var i = 1; i < arguments.length; i++) {\n var source = arguments[i] != null ? arguments[i] : {};\n\n if (i % 2) {\n ownKeys(Object(source), true).forEach(function (key) {\n _defineProperty(target, key, source[key]);\n });\n } else if (Object.getOwnPropertyDescriptors) {\n Object.defineProperties(target, Object.getOwnPropertyDescriptors(source));\n } else {\n ownKeys(Object(source)).forEach(function (key) {\n Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));\n });\n }\n }\n\n return target;\n}\n\nfunction _objectWithoutPropertiesLoose(source, excluded) {\n if (source == null) return {};\n var target = {};\n var sourceKeys = Object.keys(source);\n var key, i;\n\n for (i = 0; i < sourceKeys.length; i++) {\n key = sourceKeys[i];\n if (excluded.indexOf(key) >= 0) continue;\n target[key] = source[key];\n }\n\n return target;\n}\n\nfunction _objectWithoutProperties(source, excluded) {\n if (source == null) return {};\n\n var target = _objectWithoutPropertiesLoose(source, excluded);\n\n var key, i;\n\n if (Object.getOwnPropertySymbols) {\n var sourceSymbolKeys = Object.getOwnPropertySymbols(source);\n\n for (i = 0; i < sourceSymbolKeys.length; i++) {\n key = sourceSymbolKeys[i];\n if (excluded.indexOf(key) >= 0) continue;\n if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue;\n target[key] = source[key];\n }\n }\n\n return target;\n}\n\nfunction _slicedToArray(arr, i) {\n return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest();\n}\n\nfunction _arrayWithHoles(arr) {\n if (Array.isArray(arr)) return arr;\n}\n\nfunction _iterableToArrayLimit(arr, i) {\n if (typeof Symbol === \"undefined\" || !(Symbol.iterator in Object(arr))) return;\n var _arr = [];\n var _n = true;\n var _d = false;\n var _e = undefined;\n\n try {\n for (var _i = arr[Symbol.iterator](), _s; !(_n = (_s = _i.next()).done); _n = true) {\n _arr.push(_s.value);\n\n if (i && _arr.length === i) break;\n }\n } catch (err) {\n _d = true;\n _e = err;\n } finally {\n try {\n if (!_n && _i[\"return\"] != null) _i[\"return\"]();\n } finally {\n if (_d) throw _e;\n }\n }\n\n return _arr;\n}\n\nfunction _unsupportedIterableToArray(o, minLen) {\n if (!o) return;\n if (typeof o === \"string\") return _arrayLikeToArray(o, minLen);\n var n = Object.prototype.toString.call(o).slice(8, -1);\n if (n === \"Object\" && o.constructor) n = o.constructor.name;\n if (n === \"Map\" || n === \"Set\") return Array.from(o);\n if (n === \"Arguments\" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen);\n}\n\nfunction _arrayLikeToArray(arr, len) {\n if (len == null || len > arr.length) len = arr.length;\n\n for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i];\n\n return arr2;\n}\n\nfunction _nonIterableRest() {\n throw new TypeError(\"Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.\");\n}\n\nexport { _arrayLikeToArray as arrayLikeToArray, _arrayWithHoles as arrayWithHoles, _defineProperty as defineProperty, _iterableToArrayLimit as iterableToArrayLimit, _nonIterableRest as nonIterableRest, _objectSpread2 as objectSpread2, _objectWithoutProperties as objectWithoutProperties, _objectWithoutPropertiesLoose as objectWithoutPropertiesLoose, _slicedToArray as slicedToArray, _unsupportedIterableToArray as unsupportedIterableToArray };\n", "function _defineProperty(obj, key, value) {\n if (key in obj) {\n Object.defineProperty(obj, key, {\n value: value,\n enumerable: true,\n configurable: true,\n writable: true\n });\n } else {\n obj[key] = value;\n }\n\n return obj;\n}\n\nfunction ownKeys(object, enumerableOnly) {\n var keys = Object.keys(object);\n\n if (Object.getOwnPropertySymbols) {\n var symbols = Object.getOwnPropertySymbols(object);\n if (enumerableOnly) symbols = symbols.filter(function (sym) {\n return Object.getOwnPropertyDescriptor(object, sym).enumerable;\n });\n keys.push.apply(keys, symbols);\n }\n\n return keys;\n}\n\nfunction _objectSpread2(target) {\n for (var i = 1; i < arguments.length; i++) {\n var source = arguments[i] != null ? arguments[i] : {};\n\n if (i % 2) {\n ownKeys(Object(source), true).forEach(function (key) {\n _defineProperty(target, key, source[key]);\n });\n } else if (Object.getOwnPropertyDescriptors) {\n Object.defineProperties(target, Object.getOwnPropertyDescriptors(source));\n } else {\n ownKeys(Object(source)).forEach(function (key) {\n Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));\n });\n }\n }\n\n return target;\n}\n\nfunction compose() {\n for (var _len = arguments.length, fns = new Array(_len), _key = 0; _key < _len; _key++) {\n fns[_key] = arguments[_key];\n }\n\n return function (x) {\n return fns.reduceRight(function (y, f) {\n return f(y);\n }, x);\n };\n}\n\nfunction curry(fn) {\n return function curried() {\n var _this = this;\n\n for (var _len2 = arguments.length, args = new Array(_len2), _key2 = 0; _key2 < _len2; _key2++) {\n args[_key2] = arguments[_key2];\n }\n\n return args.length >= fn.length ? fn.apply(this, args) : function () {\n for (var _len3 = arguments.length, nextArgs = new Array(_len3), _key3 = 0; _key3 < _len3; _key3++) {\n nextArgs[_key3] = arguments[_key3];\n }\n\n return curried.apply(_this, [].concat(args, nextArgs));\n };\n };\n}\n\nfunction isObject(value) {\n return {}.toString.call(value).includes('Object');\n}\n\nfunction isEmpty(obj) {\n return !Object.keys(obj).length;\n}\n\nfunction isFunction(value) {\n return typeof value === 'function';\n}\n\nfunction hasOwnProperty(object, property) {\n return Object.prototype.hasOwnProperty.call(object, property);\n}\n\nfunction validateChanges(initial, changes) {\n if (!isObject(changes)) errorHandler('changeType');\n if (Object.keys(changes).some(function (field) {\n return !hasOwnProperty(initial, field);\n })) errorHandler('changeField');\n return changes;\n}\n\nfunction validateSelector(selector) {\n if (!isFunction(selector)) errorHandler('selectorType');\n}\n\nfunction validateHandler(handler) {\n if (!(isFunction(handler) || isObject(handler))) errorHandler('handlerType');\n if (isObject(handler) && Object.values(handler).some(function (_handler) {\n return !isFunction(_handler);\n })) errorHandler('handlersType');\n}\n\nfunction validateInitial(initial) {\n if (!initial) errorHandler('initialIsRequired');\n if (!isObject(initial)) errorHandler('initialType');\n if (isEmpty(initial)) errorHandler('initialContent');\n}\n\nfunction throwError(errorMessages, type) {\n throw new Error(errorMessages[type] || errorMessages[\"default\"]);\n}\n\nvar errorMessages = {\n initialIsRequired: 'initial state is required',\n initialType: 'initial state should be an object',\n initialContent: 'initial state shouldn\\'t be an empty object',\n handlerType: 'handler should be an object or a function',\n handlersType: 'all handlers should be a functions',\n selectorType: 'selector should be a function',\n changeType: 'provided value of changes should be an object',\n changeField: 'it seams you want to change a field in the state which is not specified in the \"initial\" state',\n \"default\": 'an unknown error accured in `state-local` package'\n};\nvar errorHandler = curry(throwError)(errorMessages);\nvar validators = {\n changes: validateChanges,\n selector: validateSelector,\n handler: validateHandler,\n initial: validateInitial\n};\n\nfunction create(initial) {\n var handler = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};\n validators.initial(initial);\n validators.handler(handler);\n var state = {\n current: initial\n };\n var didUpdate = curry(didStateUpdate)(state, handler);\n var update = curry(updateState)(state);\n var validate = curry(validators.changes)(initial);\n var getChanges = curry(extractChanges)(state);\n\n function getState() {\n var selector = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : function (state) {\n return state;\n };\n validators.selector(selector);\n return selector(state.current);\n }\n\n function setState(causedChanges) {\n compose(didUpdate, update, validate, getChanges)(causedChanges);\n }\n\n return [getState, setState];\n}\n\nfunction extractChanges(state, causedChanges) {\n return isFunction(causedChanges) ? causedChanges(state.current) : causedChanges;\n}\n\nfunction updateState(state, changes) {\n state.current = _objectSpread2(_objectSpread2({}, state.current), changes);\n return changes;\n}\n\nfunction didStateUpdate(state, handler, changes) {\n isFunction(handler) ? handler(state.current) : Object.keys(changes).forEach(function (field) {\n var _handler$field;\n\n return (_handler$field = handler[field]) === null || _handler$field === void 0 ? void 0 : _handler$field.call(handler, state.current[field]);\n });\n return changes;\n}\n\nvar index = {\n create: create\n};\n\nexport default index;\n", "var config = {\n paths: {\n vs: 'https://cdn.jsdelivr.net/npm/monaco-editor@0.36.1/min/vs'\n }\n};\n\nexport default config;\n", "function curry(fn) {\n return function curried() {\n var _this = this;\n\n for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {\n args[_key] = arguments[_key];\n }\n\n return args.length >= fn.length ? fn.apply(this, args) : function () {\n for (var _len2 = arguments.length, nextArgs = new Array(_len2), _key2 = 0; _key2 < _len2; _key2++) {\n nextArgs[_key2] = arguments[_key2];\n }\n\n return curried.apply(_this, [].concat(args, nextArgs));\n };\n };\n}\n\nexport default curry;\n", "function isObject(value) {\n return {}.toString.call(value).includes('Object');\n}\n\nexport default isObject;\n", "import curry from '../utils/curry.js';\nimport isObject from '../utils/isObject.js';\n\n/**\n * validates the configuration object and informs about deprecation\n * @param {Object} config - the configuration object \n * @return {Object} config - the validated configuration object\n */\n\nfunction validateConfig(config) {\n if (!config) errorHandler('configIsRequired');\n if (!isObject(config)) errorHandler('configType');\n\n if (config.urls) {\n informAboutDeprecation();\n return {\n paths: {\n vs: config.urls.monacoBase\n }\n };\n }\n\n return config;\n}\n/**\n * logs deprecation message\n */\n\n\nfunction informAboutDeprecation() {\n console.warn(errorMessages.deprecation);\n}\n\nfunction throwError(errorMessages, type) {\n throw new Error(errorMessages[type] || errorMessages[\"default\"]);\n}\n\nvar errorMessages = {\n configIsRequired: 'the configuration object is required',\n configType: 'the configuration object should be an object',\n \"default\": 'an unknown error accured in `@monaco-editor/loader` package',\n deprecation: \"Deprecation warning!\\n You are using deprecated way of configuration.\\n\\n Instead of using\\n monaco.config({ urls: { monacoBase: '...' } })\\n use\\n monaco.config({ paths: { vs: '...' } })\\n\\n For more please check the link https://github.com/suren-atoyan/monaco-loader#config\\n \"\n};\nvar errorHandler = curry(throwError)(errorMessages);\nvar validators = {\n config: validateConfig\n};\n\nexport default validators;\nexport { errorHandler, errorMessages };\n", "var compose = function compose() {\n for (var _len = arguments.length, fns = new Array(_len), _key = 0; _key < _len; _key++) {\n fns[_key] = arguments[_key];\n }\n\n return function (x) {\n return fns.reduceRight(function (y, f) {\n return f(y);\n }, x);\n };\n};\n\nexport default compose;\n", "import { objectSpread2 as _objectSpread2 } from '../_virtual/_rollupPluginBabelHelpers.js';\n\nfunction merge(target, source) {\n Object.keys(source).forEach(function (key) {\n if (source[key] instanceof Object) {\n if (target[key]) {\n Object.assign(source[key], merge(target[key], source[key]));\n }\n }\n });\n return _objectSpread2(_objectSpread2({}, target), source);\n}\n\nexport default merge;\n", "// The source (has been changed) is https://github.com/facebook/react/issues/5465#issuecomment-157888325\nvar CANCELATION_MESSAGE = {\n type: 'cancelation',\n msg: 'operation is manually canceled'\n};\n\nfunction makeCancelable(promise) {\n var hasCanceled_ = false;\n var wrappedPromise = new Promise(function (resolve, reject) {\n promise.then(function (val) {\n return hasCanceled_ ? reject(CANCELATION_MESSAGE) : resolve(val);\n });\n promise[\"catch\"](reject);\n });\n return wrappedPromise.cancel = function () {\n return hasCanceled_ = true;\n }, wrappedPromise;\n}\n\nexport default makeCancelable;\nexport { CANCELATION_MESSAGE };\n", "import { slicedToArray as _slicedToArray, objectWithoutProperties as _objectWithoutProperties } from '../_virtual/_rollupPluginBabelHelpers.js';\nimport state from 'state-local';\nimport config$1 from '../config/index.js';\nimport validators from '../validators/index.js';\nimport compose from '../utils/compose.js';\nimport merge from '../utils/deepMerge.js';\nimport makeCancelable from '../utils/makeCancelable.js';\n\n/** the local state of the module */\n\nvar _state$create = state.create({\n config: config$1,\n isInitialized: false,\n resolve: null,\n reject: null,\n monaco: null\n}),\n _state$create2 = _slicedToArray(_state$create, 2),\n getState = _state$create2[0],\n setState = _state$create2[1];\n/**\n * set the loader configuration\n * @param {Object} config - the configuration object\n */\n\n\nfunction config(globalConfig) {\n var _validators$config = validators.config(globalConfig),\n monaco = _validators$config.monaco,\n config = _objectWithoutProperties(_validators$config, [\"monaco\"]);\n\n setState(function (state) {\n return {\n config: merge(state.config, config),\n monaco: monaco\n };\n });\n}\n/**\n * handles the initialization of the monaco-editor\n * @return {Promise} - returns an instance of monaco (with a cancelable promise)\n */\n\n\nfunction init() {\n var state = getState(function (_ref) {\n var monaco = _ref.monaco,\n isInitialized = _ref.isInitialized,\n resolve = _ref.resolve;\n return {\n monaco: monaco,\n isInitialized: isInitialized,\n resolve: resolve\n };\n });\n\n if (!state.isInitialized) {\n setState({\n isInitialized: true\n });\n\n if (state.monaco) {\n state.resolve(state.monaco);\n return makeCancelable(wrapperPromise);\n }\n\n if (window.monaco && window.monaco.editor) {\n storeMonacoInstance(window.monaco);\n state.resolve(window.monaco);\n return makeCancelable(wrapperPromise);\n }\n\n compose(injectScripts, getMonacoLoaderScript)(configureLoader);\n }\n\n return makeCancelable(wrapperPromise);\n}\n/**\n * injects provided scripts into the document.body\n * @param {Object} script - an HTML script element\n * @return {Object} - the injected HTML script element\n */\n\n\nfunction injectScripts(script) {\n return document.body.appendChild(script);\n}\n/**\n * creates an HTML script element with/without provided src\n * @param {string} [src] - the source path of the script\n * @return {Object} - the created HTML script element\n */\n\n\nfunction createScript(src) {\n var script = document.createElement('script');\n return src && (script.src = src), script;\n}\n/**\n * creates an HTML script element with the monaco loader src\n * @return {Object} - the created HTML script element\n */\n\n\nfunction getMonacoLoaderScript(configureLoader) {\n var state = getState(function (_ref2) {\n var config = _ref2.config,\n reject = _ref2.reject;\n return {\n config: config,\n reject: reject\n };\n });\n var loaderScript = createScript(\"\".concat(state.config.paths.vs, \"/loader.js\"));\n\n loaderScript.onload = function () {\n return configureLoader();\n };\n\n loaderScript.onerror = state.reject;\n return loaderScript;\n}\n/**\n * configures the monaco loader\n */\n\n\nfunction configureLoader() {\n var state = getState(function (_ref3) {\n var config = _ref3.config,\n resolve = _ref3.resolve,\n reject = _ref3.reject;\n return {\n config: config,\n resolve: resolve,\n reject: reject\n };\n });\n var require = window.require;\n\n require.config(state.config);\n\n require(['vs/editor/editor.main'], function (monaco) {\n storeMonacoInstance(monaco);\n state.resolve(monaco);\n }, function (error) {\n state.reject(error);\n });\n}\n/**\n * store monaco instance in local state\n */\n\n\nfunction storeMonacoInstance(monaco) {\n if (!getState().monaco) {\n setState({\n monaco: monaco\n });\n }\n}\n/**\n * internal helper function\n * extracts stored monaco instance\n * @return {Object|null} - the monaco instance\n */\n\n\nfunction __getMonacoInstance() {\n return getState(function (_ref4) {\n var monaco = _ref4.monaco;\n return monaco;\n });\n}\n\nvar wrapperPromise = new Promise(function (resolve, reject) {\n return setState({\n resolve: resolve,\n reject: reject\n });\n});\nvar loader = {\n config: config,\n init: init,\n __getMonacoInstance: __getMonacoInstance\n};\n\nexport default loader;\n", "// Copied and modified from the original work available at https://github.com/livebook-dev/livebook/blob/23e58ac604de92ce54472f36fe3e28dc27576d6c/assets/js/hooks/cell_editor/live_editor/theme.js\n// Copyright (C) 2021 Dashbit\n// Licensed under Apache 2.0 available at https://www.apache.org/licenses/LICENSE-2.0\n\n// This is a port of the One Dark theme to the Monaco editor.\n// We color graded the comment so it has AA accessibility and\n// then similarly scaled the default font.\nconst colors = {\n background: \"#282c34\",\n default: \"#c4cad6\",\n lightRed: \"#e06c75\",\n blue: \"#61afef\",\n gray: \"#8c92a3\",\n green: \"#98c379\",\n purple: \"#c678dd\",\n red: \"#be5046\",\n teal: \"#56b6c2\",\n peach: \"#d19a66\",\n}\n\nconst rules = (colors) => [\n { token: \"\", foreground: colors.default },\n { token: \"variable\", foreground: colors.lightRed },\n { token: \"constant\", foreground: colors.blue },\n { token: \"constant.character.escape\", foreground: colors.blue },\n { token: \"comment\", foreground: colors.gray },\n { token: \"number\", foreground: colors.blue },\n { token: \"regexp\", foreground: colors.lightRed },\n { token: \"type\", foreground: colors.lightRed },\n { token: \"string\", foreground: colors.green },\n { token: \"keyword\", foreground: colors.purple },\n { token: \"operator\", foreground: colors.peach },\n { token: \"delimiter.bracket.embed\", foreground: colors.red },\n { token: \"sigil\", foreground: colors.teal },\n { token: \"function\", foreground: colors.blue },\n { token: \"function.call\", foreground: colors.default },\n\n // Markdown specific\n { token: \"emphasis\", fontStyle: \"italic\" },\n { token: \"strong\", fontStyle: \"bold\" },\n { token: \"keyword.md\", foreground: colors.lightRed },\n { token: \"keyword.table\", foreground: colors.lightRed },\n { token: \"string.link.md\", foreground: colors.blue },\n { token: \"variable.md\", foreground: colors.teal },\n { token: \"string.md\", foreground: colors.default },\n { token: \"variable.source.md\", foreground: colors.default },\n\n // XML specific\n { token: \"tag\", foreground: colors.lightRed },\n { token: \"metatag\", foreground: colors.lightRed },\n { token: \"attribute.name\", foreground: colors.peach },\n { token: \"attribute.value\", foreground: colors.green },\n\n // JSON specific\n { token: \"string.key\", foreground: colors.lightRed },\n { token: \"keyword.json\", foreground: colors.blue },\n\n // SQL specific\n { token: \"operator.sql\", foreground: colors.purple },\n]\n\nconst theme = {\n base: \"vs-dark\",\n inherit: false,\n rules: rules(colors),\n colors: {\n \"editor.background\": colors.background,\n \"editor.foreground\": colors.default,\n \"editorLineNumber.foreground\": \"#636d83\",\n \"editorCursor.foreground\": \"#636d83\",\n \"editor.selectionBackground\": \"#3e4451\",\n \"editor.findMatchHighlightBackground\": \"#528bff3d\",\n \"editorSuggestWidget.background\": \"#21252b\",\n \"editorSuggestWidget.border\": \"#181a1f\",\n \"editorSuggestWidget.selectedBackground\": \"#2c313a\",\n \"input.background\": \"#1b1d23\",\n \"input.border\": \"#181a1f\",\n \"editorBracketMatch.border\": \"#282c34\",\n \"editorBracketMatch.background\": \"#3e4451\",\n },\n}\n\nexport { theme }\n", "// Copied and modified from the original work available at https://github.com/livebook-dev/livebook/blob/8532bc334bdcf3c57fab9b694666e609877d279f/assets/js/hooks/cell_editor/live_editor.js\n// Copyright (C) 2021 Dashbit\n// Licensed under Apache 2.0 available at https://www.apache.org/licenses/LICENSE-2.0\n\nimport loader from \"@monaco-editor/loader\"\nimport { theme } from \"./themes\"\n\nclass CodeEditor {\n constructor(el, path, value, opts) {\n this.el = el\n this.path = path\n this.value = value\n this.opts = opts\n // https://microsoft.github.io/monaco-editor/docs.html#interfaces/editor.IStandaloneCodeEditor.html\n this.standalone_code_editor = null\n this._onMount = []\n }\n\n isMounted() {\n return !!this.standalone_code_editor\n }\n\n mount() {\n if (this.isMounted()) {\n throw new Error(\"The monaco editor is already mounted\")\n }\n\n this._mountEditor()\n }\n\n onMount(callback) {\n this._onMount.push(callback)\n }\n\n dispose() {\n if (this.isMounted()) {\n const model = this.standalone_code_editor.getModel()\n\n if (model) {\n model.dispose()\n }\n\n this.standalone_code_editor.dispose()\n }\n }\n\n _mountEditor() {\n this.opts.value = this.value\n\n loader.config({\n paths: { vs: \"https://cdn.jsdelivr.net/npm/monaco-editor@latest/min/vs\" },\n })\n\n loader.init().then((monaco) => {\n monaco.editor.defineTheme(\"default\", theme)\n\n let modelUri = monaco.Uri.parse(this.path)\n let language = this.opts.language\n let model = monaco.editor.createModel(this.value, language, modelUri)\n\n this.opts.language = undefined\n this.opts.model = model\n this.standalone_code_editor = monaco.editor.create(this.el, this.opts)\n\n this._onMount.forEach((callback) => callback(monaco))\n })\n }\n}\n\nexport default CodeEditor\n", "import CodeEditor from \"../editor/code_editor\"\n\nconst CodeEditorHook = {\n mounted() {\n // TODO: validate dataset\n const opts = JSON.parse(this.el.dataset.opts)\n this.codeEditor = new CodeEditor(\n this.el,\n this.el.dataset.path,\n this.el.dataset.value,\n opts\n )\n\n this.codeEditor.onMount((monaco) => {\n this.el.dispatchEvent(\n new CustomEvent(\"lme:editor_mounted\", {\n detail: { hook: this, editor: this.codeEditor },\n bubbles: true,\n })\n )\n\n this.handleEvent(\n \"lme:change_language:\" + this.el.dataset.path,\n (data) => {\n const model = this.codeEditor.standalone_code_editor.getModel()\n\n if (model.getLanguageId() !== data.mimeTypeOrLanguageId) {\n monaco.editor.setModelLanguage(model, data.mimeTypeOrLanguageId)\n }\n }\n )\n\n this.handleEvent(\"lme:set_value:\" + this.el.dataset.path, (data) => {\n this.codeEditor.standalone_code_editor.setValue(data.value)\n })\n\n this.el.querySelectorAll(\"textarea\").forEach((textarea) => {\n textarea.setAttribute(\n \"name\",\n \"live_monaco_editor[\" + this.el.dataset.path + \"]\"\n )\n })\n\n this.el.removeAttribute(\"data-value\")\n this.el.removeAttribute(\"data-opts\")\n })\n\n if (!this.codeEditor.isMounted()) {\n this.codeEditor.mount()\n }\n },\n\n destroyed() {\n if (this.codeEditor) {\n this.codeEditor.dispose()\n }\n },\n}\n\nexport { CodeEditorHook }\n"], + "mappings": "uiBAAA,IAAAA,EAAAC,GAAA,CAAAC,EAAAC,IAAA,EAMC,SAAUC,EAAQC,EAAU,CAC3B,cAGC,UAAY,CAGX,QAFIC,EAAW,EACXC,EAAU,CAAC,KAAM,MAAO,SAAU,GAAG,EAChCC,EAAI,EAAGA,EAAID,EAAQ,QAAU,CAACH,EAAO,sBAAuB,EAAEI,EACrEJ,EAAO,sBACLA,EAAOG,EAAQC,CAAC,EAAI,uBAAuB,EAC7CJ,EAAO,qBACLA,EAAOG,EAAQC,CAAC,EAAI,sBAAsB,GAC1CJ,EAAOG,EAAQC,CAAC,EAAI,6BAA6B,EAEhDJ,EAAO,wBACVA,EAAO,sBAAwB,SAAUK,EAAUC,GAAS,CAC1D,IAAIC,EAAW,IAAI,KAAK,EAAE,QAAQ,EAC9BC,EAAa,KAAK,I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AU,GAAG,EAAE,KAAK,IAAM,CAC5CE,EAAG,UAAY,sBAEfA,EAAG,UAAU,OAAO,YAAa,eAAgB,WAAW,EAE5DA,EAAG,UAAU,IAAI,iBAAkB,cAAe,gBAAgB,EAElE,WAAW,UAAW,CACpBA,EAAG,UAAU,OAAO,iBAAkB,cAAe,gBAAgB,EACrEA,EAAG,UAAU,IAAI,YAAa,eAAgB,WAAW,CAC3D,EAAG,GAAI,CAET,CAAC,EAAE,MAAM,IAAM,CACbA,EAAG,UAAY,iBAEfA,EAAG,UAAU,OAAO,YAAa,iBAAkB,WAAW,EAE9DA,EAAG,UAAU,IAAI,eAAgB,cAAe,gBAAgB,CAClE,CAAC,GAED,MACE,sDACF,CAEJ,CAAC,EAED,IAAIC,GAAa,SAAS,cAAc,MAAM,EAAE,aAAa,YAAY,GAAK,QAC1EC,GAAY,SAAU,cAAc,yBAAyB,EAAG,aAAa,SAAS,EACtFC,EAAa,IAAI,SAAS,WAAWF,GAAY,QAAQ,OAAQ,CACnE,MAAOX,EACP,OAAQ,CAAE,YAAaY,EAAU,CACnC,CAAC,EACDC,EAAW,QAAQ,EACnB,OAAO,WAAaA", "names": ["require_topbar", "__commonJSMin", "exports", "module", "window", "document", "lastTime", "vendors", "x", "callback", "element", "currTime", "timeToCall", "id", "canvas", "currentProgress", "showing", "progressTimerId", "fadeTimerId", "delayTimerId", "addEvent", "elem", "type", "handler", "options", "repaint", "ctx", "lineGradient", "stop", "createCanvas", "style", "topbar", "opts", "key", "delay", "loop", "to", "import_topbar", "_defineProperty", "obj", "key", "value", "ownKeys", "object", "enumerableOnly", "keys", "symbols", "sym", "_objectSpread2", "target", "i", "source", "_objectWithoutPropertiesLoose", "excluded", "sourceKeys", "_objectWithoutProperties", "sourceSymbolKeys", "_slicedToArray", "arr", "_arrayWithHoles", "_iterableToArrayLimit", "_unsupportedIterableToArray", "_nonIterableRest", "_arr", "_n", "_d", "_e", "_i", "_s", "err", "o", "minLen", "_arrayLikeToArray", "n", "len", "arr2", "compose", "_len", "fns", "_key", "x", "y", "f", "curry", "fn", "curried", "_this", "_len2", "args", "_key2", "_len3", "nextArgs", "_key3", "isObject", "isEmpty", "isFunction", "hasOwnProperty", "property", "validateChanges", "initial", "changes", "errorHandler", "field", "validateSelector", "selector", "validateHandler", "handler", "_handler", "validateInitial", "throwError", "errorMessages", "type", "validators", "create", "state", "didUpdate", "didStateUpdate", "update", "updateState", "validate", "getChanges", "extractChanges", "getState", "setState", "causedChanges", "_handler$field", "index", "state_local_default", "config", "config_default", "curry_default", "isObject_default", "validateConfig", "informAboutDeprecation", "validators_default", "compose_default", "merge", "deepMerge_default", "CANCELATION_MESSAGE", "makeCancelable", "promise", "hasCanceled_", "wrappedPromise", "resolve", "reject", "val", "makeCancelable_default", "_state$create", "_state$create2", "globalConfig", "_validators$config", "monaco", "init", "_ref", "isInitialized", "wrapperPromise", "storeMonacoInstance", "injectScripts", "getMonacoLoaderScript", "configureLoader", "script", "createScript", "src", "_ref2", "loaderScript", "_ref3", "require", "error", "__getMonacoInstance", "_ref4", "loader", "loader_default", "colors", "rules", "theme", "CodeEditor", "el", "path", "opts", "callback", "model", "modelUri", "language", "code_editor_default", "CodeEditorHook", "data", "textarea", "Hooks", "CodeEditorHook", "topbar", "_info", "ev", "hook", "editor", "eventName", "event", "result_id", "el", "socketPath", "csrfToken", "liveSocket"] }