From e0e68a9ac3859d779f750587fa54db76607681c0 Mon Sep 17 00:00:00 2001 From: Mischa Date: Fri, 24 Jul 2026 22:33:19 +0200 Subject: [PATCH] perf(post): lazy-link maplibre's stylesheet instead of bundling it MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The engine was already a lazy import(), but its CSS was a static one — the usual workaround for esbuild never emitting a for a code-split chunk's stylesheet (R10). That folded the whole vendor sheet into post-form.css, so every /post load paid for a panel most submits never open, and ~78% of those bytes were rules for controls this map never creates (popups, geolocate, zoom, compass, fullscreen, terrain, scale). Build the vendor sheet as its own css-compiled/maplibre-gl.css and have location-map.js it at panel-open, concurrently with the engine's import(). Keeping the file intact rather than hand-picking the ~16 selectors in use means a maplibre upgrade can't silently un-style the map. post-form.css 92,244 → 26,784 raw (14,528 → 5,631 gzip) The href resolves from import.meta.url, so it is correct under any Grav base path without threading a URL through the template — the panel is built entirely in JS, so there is no element to hang a data-attr on. A failed stylesheet load resolves rather than rejects: the map degrades to unstyled, never to absent. The existing lazy-load guard spec already matched every maplibre-gl URL, so it covers the stylesheet too; its message now says so, and a new test asserts the other half — that opening the panel does link and apply the sheet. --- .../intotheeast/css-compiled/maplibre-gl.css | 1 + themes/intotheeast/css-compiled/post-form.css | 2 +- themes/intotheeast/js/post/post-form.js | 108 +++++++++--------- themes/intotheeast/js/src/location-map.js | 55 ++++++++- themes/intotheeast/js/src/post-form.js | 10 +- themes/intotheeast/package.json | 2 +- 6 files changed, 116 insertions(+), 62 deletions(-) create mode 100644 themes/intotheeast/css-compiled/maplibre-gl.css diff --git a/themes/intotheeast/css-compiled/maplibre-gl.css b/themes/intotheeast/css-compiled/maplibre-gl.css new file mode 100644 index 0000000..51c0b81 --- /dev/null +++ b/themes/intotheeast/css-compiled/maplibre-gl.css @@ -0,0 +1 @@ +.maplibregl-map{font:12px/20px Helvetica Neue,Arial,Helvetica,sans-serif;overflow:hidden;position:relative;-webkit-tap-highlight-color:rgb(0 0 0/0)}.maplibregl-canvas{left:0;position:absolute;top:0}.maplibregl-map:fullscreen{height:100%;width:100%}.maplibregl-ctrl-group button.maplibregl-ctrl-compass{touch-action:none}.maplibregl-canvas-container.maplibregl-interactive,.maplibregl-ctrl-group button.maplibregl-ctrl-compass{cursor:grab;-webkit-user-select:none;-moz-user-select:none;user-select:none}.maplibregl-canvas-container.maplibregl-interactive.maplibregl-track-pointer{cursor:pointer}.maplibregl-canvas-container.maplibregl-interactive:active,.maplibregl-ctrl-group button.maplibregl-ctrl-compass:active{cursor:grabbing}.maplibregl-canvas-container.maplibregl-touch-zoom-rotate,.maplibregl-canvas-container.maplibregl-touch-zoom-rotate .maplibregl-canvas{touch-action:pan-x pan-y}.maplibregl-canvas-container.maplibregl-touch-drag-pan,.maplibregl-canvas-container.maplibregl-touch-drag-pan .maplibregl-canvas{touch-action:pinch-zoom}.maplibregl-canvas-container.maplibregl-touch-zoom-rotate.maplibregl-touch-drag-pan,.maplibregl-canvas-container.maplibregl-touch-zoom-rotate.maplibregl-touch-drag-pan .maplibregl-canvas{touch-action:none}.maplibregl-canvas-container.maplibregl-touch-drag-pan.maplibregl-cooperative-gestures,.maplibregl-canvas-container.maplibregl-touch-drag-pan.maplibregl-cooperative-gestures .maplibregl-canvas{touch-action:pan-x pan-y}.maplibregl-ctrl-bottom-left,.maplibregl-ctrl-bottom-right,.maplibregl-ctrl-top-left,.maplibregl-ctrl-top-right{pointer-events:none;position:absolute;z-index:2}.maplibregl-ctrl-top-left{left:0;top:0}.maplibregl-ctrl-top-right{right:0;top:0}.maplibregl-ctrl-bottom-left{bottom:0;left:0}.maplibregl-ctrl-bottom-right{bottom:0;right:0}.maplibregl-ctrl{clear:both;pointer-events:auto;transform:translate(0)}.maplibregl-ctrl-top-left .maplibregl-ctrl{float:left;margin:10px 0 0 10px}.maplibregl-ctrl-top-right .maplibregl-ctrl{float:right;margin:10px 10px 0 0}.maplibregl-ctrl-bottom-left .maplibregl-ctrl{float:left;margin:0 0 10px 10px}.maplibregl-ctrl-bottom-right .maplibregl-ctrl{float:right;margin:0 10px 10px 0}.maplibregl-ctrl-group{background:#fff;border-radius:4px}.maplibregl-ctrl-group:not(:empty){box-shadow:0 0 0 2px #0000001a}@media (forced-colors:active){.maplibregl-ctrl-group:not(:empty){box-shadow:0 0 0 2px ButtonText}}.maplibregl-ctrl-group button{background-color:transparent;border:0;box-sizing:border-box;cursor:pointer;display:block;height:29px;outline:none;padding:0;width:29px}.maplibregl-ctrl-group button+button{border-top:1px solid #ddd}.maplibregl-ctrl button .maplibregl-ctrl-icon{background-position:50%;background-repeat:no-repeat;display:block;height:100%;width:100%}@media (forced-colors:active){.maplibregl-ctrl-icon{background-color:transparent}.maplibregl-ctrl-group button+button{border-top:1px solid ButtonText}}.maplibregl-ctrl button::-moz-focus-inner{border:0;padding:0}.maplibregl-ctrl-attrib-button:focus,.maplibregl-ctrl-group button:focus{box-shadow:0 0 2px 2px #0096ff}.maplibregl-ctrl button:disabled{cursor:not-allowed}.maplibregl-ctrl button:disabled .maplibregl-ctrl-icon{opacity:.25}.maplibregl-ctrl button:not(:disabled):hover{background-color:#0000000d}.maplibregl-ctrl-group button:focus:focus-visible{box-shadow:0 0 2px 2px #0096ff}.maplibregl-ctrl-group button:focus:not(:focus-visible){box-shadow:none}.maplibregl-ctrl-group button:focus:first-child{border-radius:4px 4px 0 0}.maplibregl-ctrl-group button:focus:last-child{border-radius:0 0 4px 4px}.maplibregl-ctrl-group button:focus:only-child{border-radius:inherit}.maplibregl-ctrl button.maplibregl-ctrl-zoom-out .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' fill='%23333' viewBox='0 0 29 29'%3E%3Cpath d='M10 13c-.75 0-1.5.75-1.5 1.5S9.25 16 10 16h9c.75 0 1.5-.75 1.5-1.5S19.75 13 19 13z'/%3E%3C/svg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-zoom-in .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' fill='%23333' viewBox='0 0 29 29'%3E%3Cpath d='M14.5 8.5c-.75 0-1.5.75-1.5 1.5v3h-3c-.75 0-1.5.75-1.5 1.5S9.25 16 10 16h3v3c0 .75.75 1.5 1.5 1.5S16 19.75 16 19v-3h3c.75 0 1.5-.75 1.5-1.5S19.75 13 19 13h-3v-3c0-.75-.75-1.5-1.5-1.5'/%3E%3C/svg%3E")}@media (forced-colors:active){.maplibregl-ctrl button.maplibregl-ctrl-zoom-out .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' fill='%23fff' viewBox='0 0 29 29'%3E%3Cpath d='M10 13c-.75 0-1.5.75-1.5 1.5S9.25 16 10 16h9c.75 0 1.5-.75 1.5-1.5S19.75 13 19 13z'/%3E%3C/svg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-zoom-in .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' fill='%23fff' viewBox='0 0 29 29'%3E%3Cpath d='M14.5 8.5c-.75 0-1.5.75-1.5 1.5v3h-3c-.75 0-1.5.75-1.5 1.5S9.25 16 10 16h3v3c0 .75.75 1.5 1.5 1.5S16 19.75 16 19v-3h3c.75 0 1.5-.75 1.5-1.5S19.75 13 19 13h-3v-3c0-.75-.75-1.5-1.5-1.5'/%3E%3C/svg%3E")}}@media (forced-colors:active) and (prefers-color-scheme:light){.maplibregl-ctrl button.maplibregl-ctrl-zoom-out .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' viewBox='0 0 29 29'%3E%3Cpath d='M10 13c-.75 0-1.5.75-1.5 1.5S9.25 16 10 16h9c.75 0 1.5-.75 1.5-1.5S19.75 13 19 13z'/%3E%3C/svg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-zoom-in .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' viewBox='0 0 29 29'%3E%3Cpath d='M14.5 8.5c-.75 0-1.5.75-1.5 1.5v3h-3c-.75 0-1.5.75-1.5 1.5S9.25 16 10 16h3v3c0 .75.75 1.5 1.5 1.5S16 19.75 16 19v-3h3c.75 0 1.5-.75 1.5-1.5S19.75 13 19 13h-3v-3c0-.75-.75-1.5-1.5-1.5'/%3E%3C/svg%3E")}}.maplibregl-ctrl button.maplibregl-ctrl-fullscreen .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' fill='%23333' viewBox='0 0 29 29'%3E%3Cpath d='M24 16v5.5c0 1.75-.75 2.5-2.5 2.5H16v-1l3-1.5-4-5.5 1-1 5.5 4 1.5-3zM6 16l1.5 3 5.5-4 1 1-4 5.5 3 1.5v1H7.5C5.75 24 5 23.25 5 21.5V16zm7-11v1l-3 1.5 4 5.5-1 1-5.5-4L6 13H5V7.5C5 5.75 5.75 5 7.5 5zm11 2.5c0-1.75-.75-2.5-2.5-2.5H16v1l3 1.5-4 5.5 1 1 5.5-4 1.5 3h1z'/%3E%3C/svg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-shrink .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' viewBox='0 0 29 29'%3E%3Cpath d='M18.5 16c-1.75 0-2.5.75-2.5 2.5V24h1l1.5-3 5.5 4 1-1-4-5.5 3-1.5v-1zM13 18.5c0-1.75-.75-2.5-2.5-2.5H5v1l3 1.5L4 24l1 1 5.5-4 1.5 3h1zm3-8c0 1.75.75 2.5 2.5 2.5H24v-1l-3-1.5L25 5l-1-1-5.5 4L17 5h-1zM10.5 13c1.75 0 2.5-.75 2.5-2.5V5h-1l-1.5 3L5 4 4 5l4 5.5L5 12v1z'/%3E%3C/svg%3E")}@media (forced-colors:active){.maplibregl-ctrl button.maplibregl-ctrl-fullscreen .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' fill='%23fff' viewBox='0 0 29 29'%3E%3Cpath d='M24 16v5.5c0 1.75-.75 2.5-2.5 2.5H16v-1l3-1.5-4-5.5 1-1 5.5 4 1.5-3zM6 16l1.5 3 5.5-4 1 1-4 5.5 3 1.5v1H7.5C5.75 24 5 23.25 5 21.5V16zm7-11v1l-3 1.5 4 5.5-1 1-5.5-4L6 13H5V7.5C5 5.75 5.75 5 7.5 5zm11 2.5c0-1.75-.75-2.5-2.5-2.5H16v1l3 1.5-4 5.5 1 1 5.5-4 1.5 3h1z'/%3E%3C/svg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-shrink .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' fill='%23fff' viewBox='0 0 29 29'%3E%3Cpath d='M18.5 16c-1.75 0-2.5.75-2.5 2.5V24h1l1.5-3 5.5 4 1-1-4-5.5 3-1.5v-1zM13 18.5c0-1.75-.75-2.5-2.5-2.5H5v1l3 1.5L4 24l1 1 5.5-4 1.5 3h1zm3-8c0 1.75.75 2.5 2.5 2.5H24v-1l-3-1.5L25 5l-1-1-5.5 4L17 5h-1zM10.5 13c1.75 0 2.5-.75 2.5-2.5V5h-1l-1.5 3L5 4 4 5l4 5.5L5 12v1z'/%3E%3C/svg%3E")}}@media (forced-colors:active) and (prefers-color-scheme:light){.maplibregl-ctrl button.maplibregl-ctrl-fullscreen .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' viewBox='0 0 29 29'%3E%3Cpath d='M24 16v5.5c0 1.75-.75 2.5-2.5 2.5H16v-1l3-1.5-4-5.5 1-1 5.5 4 1.5-3zM6 16l1.5 3 5.5-4 1 1-4 5.5 3 1.5v1H7.5C5.75 24 5 23.25 5 21.5V16zm7-11v1l-3 1.5 4 5.5-1 1-5.5-4L6 13H5V7.5C5 5.75 5.75 5 7.5 5zm11 2.5c0-1.75-.75-2.5-2.5-2.5H16v1l3 1.5-4 5.5 1 1 5.5-4 1.5 3h1z'/%3E%3C/svg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-shrink .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' viewBox='0 0 29 29'%3E%3Cpath d='M18.5 16c-1.75 0-2.5.75-2.5 2.5V24h1l1.5-3 5.5 4 1-1-4-5.5 3-1.5v-1zM13 18.5c0-1.75-.75-2.5-2.5-2.5H5v1l3 1.5L4 24l1 1 5.5-4 1.5 3h1zm3-8c0 1.75.75 2.5 2.5 2.5H24v-1l-3-1.5L25 5l-1-1-5.5 4L17 5h-1zM10.5 13c1.75 0 2.5-.75 2.5-2.5V5h-1l-1.5 3L5 4 4 5l4 5.5L5 12v1z'/%3E%3C/svg%3E")}}.maplibregl-ctrl button.maplibregl-ctrl-compass .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' fill='%23333' viewBox='0 0 29 29'%3E%3Cpath d='m10.5 14 4-8 4 8z'/%3E%3Cpath fill='%23ccc' d='m10.5 16 4 8 4-8z'/%3E%3C/svg%3E")}@media (forced-colors:active){.maplibregl-ctrl button.maplibregl-ctrl-compass .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' fill='%23fff' viewBox='0 0 29 29'%3E%3Cpath d='m10.5 14 4-8 4 8z'/%3E%3Cpath fill='%23ccc' d='m10.5 16 4 8 4-8z'/%3E%3C/svg%3E")}}@media (forced-colors:active) and (prefers-color-scheme:light){.maplibregl-ctrl button.maplibregl-ctrl-compass .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' viewBox='0 0 29 29'%3E%3Cpath d='m10.5 14 4-8 4 8z'/%3E%3Cpath fill='%23ccc' d='m10.5 16 4 8 4-8z'/%3E%3C/svg%3E")}}.maplibregl-ctrl button.maplibregl-ctrl-terrain .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='22' height='22' fill='%23333' viewBox='0 0 22 22'%3E%3Cpath d='m1.754 13.406 4.453-4.851 3.09 3.09 3.281 3.277.969-.969-3.309-3.312 3.844-4.121 6.148 6.886h1.082v-.855l-7.207-8.07-4.84 5.187L6.169 6.57l-5.48 5.965v.871ZM.688 16.844h20.625v1.375H.688Zm0 0'/%3E%3C/svg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-terrain-enabled .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='22' height='22' fill='%2333b5e5' viewBox='0 0 22 22'%3E%3Cpath d='m1.754 13.406 4.453-4.851 3.09 3.09 3.281 3.277.969-.969-3.309-3.312 3.844-4.121 6.148 6.886h1.082v-.855l-7.207-8.07-4.84 5.187L6.169 6.57l-5.48 5.965v.871ZM.688 16.844h20.625v1.375H.688Zm0 0'/%3E%3C/svg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-geolocate .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' fill='%23333' viewBox='0 0 20 20'%3E%3Cpath d='M10 4C9 4 9 5 9 5v.1A5 5 0 0 0 5.1 9H5s-1 0-1 1 1 1 1 1h.1A5 5 0 0 0 9 14.9v.1s0 1 1 1 1-1 1-1v-.1a5 5 0 0 0 3.9-3.9h.1s1 0 1-1-1-1-1-1h-.1A5 5 0 0 0 11 5.1V5s0-1-1-1m0 2.5a3.5 3.5 0 1 1 0 7 3.5 3.5 0 1 1 0-7'/%3E%3Ccircle cx='10' cy='10' r='2'/%3E%3C/svg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-geolocate:disabled .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' fill='%23aaa' viewBox='0 0 20 20'%3E%3Cpath d='M10 4C9 4 9 5 9 5v.1A5 5 0 0 0 5.1 9H5s-1 0-1 1 1 1 1 1h.1A5 5 0 0 0 9 14.9v.1s0 1 1 1 1-1 1-1v-.1a5 5 0 0 0 3.9-3.9h.1s1 0 1-1-1-1-1-1h-.1A5 5 0 0 0 11 5.1V5s0-1-1-1m0 2.5a3.5 3.5 0 1 1 0 7 3.5 3.5 0 1 1 0-7'/%3E%3Ccircle cx='10' cy='10' r='2'/%3E%3Cpath fill='red' d='m14 5 1 1-9 9-1-1z'/%3E%3C/svg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-geolocate.maplibregl-ctrl-geolocate-active .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' fill='%2333b5e5' viewBox='0 0 20 20'%3E%3Cpath d='M10 4C9 4 9 5 9 5v.1A5 5 0 0 0 5.1 9H5s-1 0-1 1 1 1 1 1h.1A5 5 0 0 0 9 14.9v.1s0 1 1 1 1-1 1-1v-.1a5 5 0 0 0 3.9-3.9h.1s1 0 1-1-1-1-1-1h-.1A5 5 0 0 0 11 5.1V5s0-1-1-1m0 2.5a3.5 3.5 0 1 1 0 7 3.5 3.5 0 1 1 0-7'/%3E%3Ccircle cx='10' cy='10' r='2'/%3E%3C/svg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-geolocate.maplibregl-ctrl-geolocate-active-error .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' fill='%23e58978' viewBox='0 0 20 20'%3E%3Cpath d='M10 4C9 4 9 5 9 5v.1A5 5 0 0 0 5.1 9H5s-1 0-1 1 1 1 1 1h.1A5 5 0 0 0 9 14.9v.1s0 1 1 1 1-1 1-1v-.1a5 5 0 0 0 3.9-3.9h.1s1 0 1-1-1-1-1-1h-.1A5 5 0 0 0 11 5.1V5s0-1-1-1m0 2.5a3.5 3.5 0 1 1 0 7 3.5 3.5 0 1 1 0-7'/%3E%3Ccircle cx='10' cy='10' r='2'/%3E%3C/svg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-geolocate.maplibregl-ctrl-geolocate-background .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' fill='%2333b5e5' viewBox='0 0 20 20'%3E%3Cpath d='M10 4C9 4 9 5 9 5v.1A5 5 0 0 0 5.1 9H5s-1 0-1 1 1 1 1 1h.1A5 5 0 0 0 9 14.9v.1s0 1 1 1 1-1 1-1v-.1a5 5 0 0 0 3.9-3.9h.1s1 0 1-1-1-1-1-1h-.1A5 5 0 0 0 11 5.1V5s0-1-1-1m0 2.5a3.5 3.5 0 1 1 0 7 3.5 3.5 0 1 1 0-7'/%3E%3C/svg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-geolocate.maplibregl-ctrl-geolocate-background-error .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' fill='%23e54e33' viewBox='0 0 20 20'%3E%3Cpath d='M10 4C9 4 9 5 9 5v.1A5 5 0 0 0 5.1 9H5s-1 0-1 1 1 1 1 1h.1A5 5 0 0 0 9 14.9v.1s0 1 1 1 1-1 1-1v-.1a5 5 0 0 0 3.9-3.9h.1s1 0 1-1-1-1-1-1h-.1A5 5 0 0 0 11 5.1V5s0-1-1-1m0 2.5a3.5 3.5 0 1 1 0 7 3.5 3.5 0 1 1 0-7'/%3E%3C/svg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-geolocate.maplibregl-ctrl-geolocate-waiting .maplibregl-ctrl-icon{animation:maplibregl-spin 2s linear infinite}@media (forced-colors:active){.maplibregl-ctrl button.maplibregl-ctrl-geolocate .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' fill='%23fff' viewBox='0 0 20 20'%3E%3Cpath d='M10 4C9 4 9 5 9 5v.1A5 5 0 0 0 5.1 9H5s-1 0-1 1 1 1 1 1h.1A5 5 0 0 0 9 14.9v.1s0 1 1 1 1-1 1-1v-.1a5 5 0 0 0 3.9-3.9h.1s1 0 1-1-1-1-1-1h-.1A5 5 0 0 0 11 5.1V5s0-1-1-1m0 2.5a3.5 3.5 0 1 1 0 7 3.5 3.5 0 1 1 0-7'/%3E%3Ccircle cx='10' cy='10' r='2'/%3E%3C/svg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-geolocate:disabled .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' fill='%23999' viewBox='0 0 20 20'%3E%3Cpath d='M10 4C9 4 9 5 9 5v.1A5 5 0 0 0 5.1 9H5s-1 0-1 1 1 1 1 1h.1A5 5 0 0 0 9 14.9v.1s0 1 1 1 1-1 1-1v-.1a5 5 0 0 0 3.9-3.9h.1s1 0 1-1-1-1-1-1h-.1A5 5 0 0 0 11 5.1V5s0-1-1-1m0 2.5a3.5 3.5 0 1 1 0 7 3.5 3.5 0 1 1 0-7'/%3E%3Ccircle cx='10' cy='10' r='2'/%3E%3Cpath fill='red' d='m14 5 1 1-9 9-1-1z'/%3E%3C/svg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-geolocate.maplibregl-ctrl-geolocate-active .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' fill='%2333b5e5' viewBox='0 0 20 20'%3E%3Cpath d='M10 4C9 4 9 5 9 5v.1A5 5 0 0 0 5.1 9H5s-1 0-1 1 1 1 1 1h.1A5 5 0 0 0 9 14.9v.1s0 1 1 1 1-1 1-1v-.1a5 5 0 0 0 3.9-3.9h.1s1 0 1-1-1-1-1-1h-.1A5 5 0 0 0 11 5.1V5s0-1-1-1m0 2.5a3.5 3.5 0 1 1 0 7 3.5 3.5 0 1 1 0-7'/%3E%3Ccircle cx='10' cy='10' r='2'/%3E%3C/svg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-geolocate.maplibregl-ctrl-geolocate-active-error .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' fill='%23e58978' viewBox='0 0 20 20'%3E%3Cpath d='M10 4C9 4 9 5 9 5v.1A5 5 0 0 0 5.1 9H5s-1 0-1 1 1 1 1 1h.1A5 5 0 0 0 9 14.9v.1s0 1 1 1 1-1 1-1v-.1a5 5 0 0 0 3.9-3.9h.1s1 0 1-1-1-1-1-1h-.1A5 5 0 0 0 11 5.1V5s0-1-1-1m0 2.5a3.5 3.5 0 1 1 0 7 3.5 3.5 0 1 1 0-7'/%3E%3Ccircle cx='10' cy='10' r='2'/%3E%3C/svg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-geolocate.maplibregl-ctrl-geolocate-background .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' fill='%2333b5e5' viewBox='0 0 20 20'%3E%3Cpath d='M10 4C9 4 9 5 9 5v.1A5 5 0 0 0 5.1 9H5s-1 0-1 1 1 1 1 1h.1A5 5 0 0 0 9 14.9v.1s0 1 1 1 1-1 1-1v-.1a5 5 0 0 0 3.9-3.9h.1s1 0 1-1-1-1-1-1h-.1A5 5 0 0 0 11 5.1V5s0-1-1-1m0 2.5a3.5 3.5 0 1 1 0 7 3.5 3.5 0 1 1 0-7'/%3E%3C/svg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-geolocate.maplibregl-ctrl-geolocate-background-error .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' fill='%23e54e33' viewBox='0 0 20 20'%3E%3Cpath d='M10 4C9 4 9 5 9 5v.1A5 5 0 0 0 5.1 9H5s-1 0-1 1 1 1 1 1h.1A5 5 0 0 0 9 14.9v.1s0 1 1 1 1-1 1-1v-.1a5 5 0 0 0 3.9-3.9h.1s1 0 1-1-1-1-1-1h-.1A5 5 0 0 0 11 5.1V5s0-1-1-1m0 2.5a3.5 3.5 0 1 1 0 7 3.5 3.5 0 1 1 0-7'/%3E%3C/svg%3E")}}@media (forced-colors:active) and (prefers-color-scheme:light){.maplibregl-ctrl button.maplibregl-ctrl-geolocate .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' viewBox='0 0 20 20'%3E%3Cpath d='M10 4C9 4 9 5 9 5v.1A5 5 0 0 0 5.1 9H5s-1 0-1 1 1 1 1 1h.1A5 5 0 0 0 9 14.9v.1s0 1 1 1 1-1 1-1v-.1a5 5 0 0 0 3.9-3.9h.1s1 0 1-1-1-1-1-1h-.1A5 5 0 0 0 11 5.1V5s0-1-1-1m0 2.5a3.5 3.5 0 1 1 0 7 3.5 3.5 0 1 1 0-7'/%3E%3Ccircle cx='10' cy='10' r='2'/%3E%3C/svg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-geolocate:disabled .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' fill='%23666' viewBox='0 0 20 20'%3E%3Cpath d='M10 4C9 4 9 5 9 5v.1A5 5 0 0 0 5.1 9H5s-1 0-1 1 1 1 1 1h.1A5 5 0 0 0 9 14.9v.1s0 1 1 1 1-1 1-1v-.1a5 5 0 0 0 3.9-3.9h.1s1 0 1-1-1-1-1-1h-.1A5 5 0 0 0 11 5.1V5s0-1-1-1m0 2.5a3.5 3.5 0 1 1 0 7 3.5 3.5 0 1 1 0-7'/%3E%3Ccircle cx='10' cy='10' r='2'/%3E%3Cpath fill='red' d='m14 5 1 1-9 9-1-1z'/%3E%3C/svg%3E")}}@keyframes maplibregl-spin{0%{transform:rotate(0)}to{transform:rotate(1turn)}}a.maplibregl-ctrl-logo{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='88' height='23' fill='none'%3E%3Cpath fill='%23000' fill-opacity='.4' fill-rule='evenodd' d='M17.408 16.796h-1.827l2.501-12.095h.198l3.324 6.533.988 2.19.988-2.19 3.258-6.533h.181l2.6 12.095h-1.81l-1.218-5.644-.362-1.71-.658 1.71-2.929 5.644h-.098l-2.914-5.644-.757-1.71-.345 1.71zm1.958-3.42-.726 3.663a1.255 1.255 0 0 1-1.232 1.011h-1.827a1.255 1.255 0 0 1-1.229-1.509l2.501-12.095a1.255 1.255 0 0 1 1.23-1.001h.197a1.25 1.25 0 0 1 1.12.685l3.19 6.273 3.125-6.263a1.25 1.25 0 0 1 1.123-.695h.181a1.255 1.255 0 0 1 1.227.991l1.443 6.71a5 5 0 0 1 .314-.787l.009-.016a4.6 4.6 0 0 1 1.777-1.887c.782-.46 1.668-.667 2.611-.667a4.6 4.6 0 0 1 1.7.32l.306.134c.21-.16.474-.256.759-.256h1.694a1.255 1.255 0 0 1 1.212.925 1.255 1.255 0 0 1 1.212-.925h1.711c.284 0 .545.094.755.252.613-.3 1.312-.45 2.075-.45 1.356 0 2.557.445 3.482 1.4q.47.48.763 1.064V4.701a1.255 1.255 0 0 1 1.255-1.255h1.86A1.255 1.255 0 0 1 54.44 4.7v9.194h2.217c.19 0 .37.043.532.118v-4.77c0-.356.147-.678.385-.906a2.42 2.42 0 0 1-.682-1.71c0-.665.267-1.253.735-1.7a2.45 2.45 0 0 1 1.722-.674 2.43 2.43 0 0 1 1.705.675q.318.302.504.683V4.7a1.255 1.255 0 0 1 1.255-1.255h1.744A1.255 1.255 0 0 1 65.812 4.7v3.335a4.8 4.8 0 0 1 1.526-.246c.938 0 1.817.214 2.59.69a4.47 4.47 0 0 1 1.67 1.743v-.98a1.255 1.255 0 0 1 1.256-1.256h1.777c.233 0 .451.064.639.174a3.4 3.4 0 0 1 1.567-.372c.346 0 .861.02 1.285.232a1.25 1.25 0 0 1 .689 1.004 4.7 4.7 0 0 1 .853-.588c.795-.44 1.675-.647 2.61-.647 1.385 0 2.65.39 3.525 1.396.836.938 1.168 2.173 1.168 3.528q-.001.515-.056 1.051a1.255 1.255 0 0 1-.947 1.09l.408.952a1.255 1.255 0 0 1-.477 1.552c-.418.268-.92.463-1.458.612-.613.171-1.304.244-2.049.244-1.06 0-2.043-.207-2.886-.698l-.015-.008c-.798-.48-1.419-1.135-1.818-1.963l-.004-.008a5.8 5.8 0 0 1-.548-2.512q0-.429.053-.843a1.3 1.3 0 0 1-.333-.086l-.166-.004c-.223 0-.426.062-.643.228-.03.024-.142.139-.142.59v3.883a1.255 1.255 0 0 1-1.256 1.256h-1.777a1.255 1.255 0 0 1-1.256-1.256V15.69l-.032.057a4.8 4.8 0 0 1-1.86 1.833 5.04 5.04 0 0 1-2.484.634 4.5 4.5 0 0 1-1.935-.424 1.25 1.25 0 0 1-.764.258h-1.71a1.255 1.255 0 0 1-1.256-1.255V7.687a2.4 2.4 0 0 1-.428.625c.253.23.412.561.412.93v7.553a1.255 1.255 0 0 1-1.256 1.255h-1.843a1.25 1.25 0 0 1-.894-.373c-.228.23-.544.373-.894.373H51.32a1.255 1.255 0 0 1-1.256-1.255v-1.251l-.061.117a4.7 4.7 0 0 1-1.782 1.884 4.77 4.77 0 0 1-2.485.67 5.6 5.6 0 0 1-1.485-.188l.009 2.764a1.255 1.255 0 0 1-1.255 1.259h-1.729a1.255 1.255 0 0 1-1.255-1.255v-3.537a1.255 1.255 0 0 1-1.167.793h-1.679a1.25 1.25 0 0 1-.77-.263 4.5 4.5 0 0 1-1.945.429c-.885 0-1.724-.21-2.495-.632l-.017-.01a5 5 0 0 1-1.081-.836 1.255 1.255 0 0 1-1.254 1.312h-1.81a1.255 1.255 0 0 1-1.228-.99l-.782-3.625-2.044 3.939a1.25 1.25 0 0 1-1.115.676h-.098a1.25 1.25 0 0 1-1.116-.68l-2.061-3.994zM35.92 16.63l.207-.114.223-.15q.493-.356.735-.785l.061-.118.033 1.332h1.678V9.242h-1.694l-.033 1.267q-.133-.329-.526-.658l-.032-.028a3.2 3.2 0 0 0-.668-.428l-.27-.12a3.3 3.3 0 0 0-1.235-.23q-1.136-.001-1.974.493a3.36 3.36 0 0 0-1.3 1.382q-.445.89-.444 2.074 0 1.2.51 2.107a3.8 3.8 0 0 0 1.382 1.381 3.9 3.9 0 0 0 1.893.477q.795 0 1.455-.33zm-2.789-5.38q-.576.675-.575 1.762 0 1.102.559 1.794.576.675 1.645.675a2.25 2.25 0 0 0 .934-.19 2.2 2.2 0 0 0 .468-.29l.178-.161a2.2 2.2 0 0 0 .397-.561q.244-.5.244-1.15v-.115q0-.708-.296-1.267l-.043-.077a2.2 2.2 0 0 0-.633-.709l-.13-.086-.047-.028a2.1 2.1 0 0 0-1.073-.285q-1.052 0-1.629.692zm2.316 2.706c.163-.17.28-.407.28-.83v-.114c0-.292-.06-.508-.15-.68a.96.96 0 0 0-.353-.389.85.85 0 0 0-.464-.127c-.4 0-.56.114-.664.239l-.01.012c-.148.174-.275.45-.275.945 0 .506.122.801.27.99.097.11.266.224.68.224.303 0 .504-.09.687-.269zm7.545 1.705a2.6 2.6 0 0 0 .331.423q.319.33.755.548l.173.074q.65.255 1.49.255 1.02 0 1.844-.493a3.45 3.45 0 0 0 1.316-1.4q.493-.904.493-2.089 0-1.909-.988-2.913-.988-1.02-2.584-1.02-.898 0-1.575.347a3 3 0 0 0-.415.262l-.199.166a3.4 3.4 0 0 0-.64.82V9.242h-1.712v11.553h1.729l-.017-5.134zm.53-1.138q.206.29.48.5l.155.11.053.034q.51.296 1.119.297 1.07 0 1.645-.675.577-.69.576-1.762 0-1.119-.576-1.777-.558-.675-1.645-.675-.435 0-.835.16a2 2 0 0 0-.284.136 2 2 0 0 0-.363.254 2.2 2.2 0 0 0-.46.569l-.082.162a2.6 2.6 0 0 0-.213 1.072v.115q0 .707.296 1.267l.135.211zm.964-.818a1.1 1.1 0 0 0 .367.385.94.94 0 0 0 .476.118c.423 0 .59-.117.687-.23.159-.194.28-.478.28-.95 0-.53-.133-.8-.266-.952l-.021-.025c-.078-.094-.231-.221-.68-.221a1 1 0 0 0-.503.135l-.012.007a.86.86 0 0 0-.335.343c-.073.133-.132.324-.132.614v.115a1.4 1.4 0 0 0 .14.66zm15.7-6.222q.347-.346.346-.856a1.05 1.05 0 0 0-.345-.79 1.18 1.18 0 0 0-.84-.329q-.51 0-.855.33a1.05 1.05 0 0 0-.346.79q0 .51.346.855.345.346.856.346.51 0 .839-.346zm4.337 9.314.033-1.332q.191.403.59.747l.098.081a4 4 0 0 0 .316.224l.223.122a3.2 3.2 0 0 0 1.44.322 3.8 3.8 0 0 0 1.875-.477 3.5 3.5 0 0 0 1.382-1.366q.527-.89.526-2.09 0-1.184-.444-2.073a3.24 3.24 0 0 0-1.283-1.399q-.823-.51-1.942-.51a3.5 3.5 0 0 0-1.527.344l-.086.043-.165.09a3 3 0 0 0-.33.214q-.432.315-.656.707a2 2 0 0 0-.099.198l.082-1.283V4.701h-1.744v12.095zm.473-2.509a2.5 2.5 0 0 0 .566.7q.117.098.245.18l.144.08a2.1 2.1 0 0 0 .975.232q1.07 0 1.645-.675.576-.69.576-1.778 0-1.102-.576-1.777-.56-.691-1.645-.692a2.2 2.2 0 0 0-1.015.235q-.22.113-.415.282l-.15.142a2.1 2.1 0 0 0-.42.594q-.223.479-.223 1.1v.115q0 .705.293 1.26zm2.616-.293c.157-.191.28-.479.28-.967 0-.51-.13-.79-.276-.961l-.021-.026c-.082-.1-.232-.225-.67-.225a.87.87 0 0 0-.681.279l-.012.011c-.154.155-.274.38-.274.807v.115c0 .285.057.499.144.669a1.1 1.1 0 0 0 .367.405c.137.082.28.123.455.123.423 0 .59-.118.686-.23zm8.266-3.013q.345-.13.724-.14l.069-.002q.493 0 .642.099l.247-1.794q-.196-.099-.717-.099a2.3 2.3 0 0 0-.545.063 2 2 0 0 0-.411.148 2.2 2.2 0 0 0-.4.249 2.5 2.5 0 0 0-.485.499 2.7 2.7 0 0 0-.32.581l-.05.137v-1.48h-1.778v7.553h1.777v-3.884q0-.546.159-.943a1.5 1.5 0 0 1 .466-.636 2.5 2.5 0 0 1 .399-.253 2 2 0 0 1 .224-.099zm9.784 2.656.05-.922q0-1.743-.856-2.698-.838-.97-2.584-.97-1.119-.001-2.007.493a3.46 3.46 0 0 0-1.4 1.382q-.493.906-.493 2.106 0 1.07.428 1.975.428.89 1.332 1.432.906.526 2.255.526.973 0 1.668-.185l.044-.012.135-.04q.613-.184.984-.421l-.542-1.267q-.3.162-.642.274l-.297.087q-.51.131-1.3.131-.954 0-1.497-.444a1.6 1.6 0 0 1-.192-.193q-.366-.44-.512-1.234l-.004-.021zm-5.427-1.256-.003.022h3.752v-.138q-.011-.727-.288-1.118a1 1 0 0 0-.156-.176q-.46-.428-1.316-.428-.986 0-1.494.604-.379.45-.494 1.234zm-27.053 2.77V4.7h-1.86v12.095h5.333V15.15zm7.103-5.908v7.553h-1.843V9.242h1.843z'/%3E%3Cpath fill='%23fff' d='m19.63 11.151-.757-1.71-.345 1.71-1.12 5.644h-1.827L18.083 4.7h.197l3.325 6.533.988 2.19.988-2.19L26.839 4.7h.181l2.6 12.095h-1.81l-1.218-5.644-.362-1.71-.658 1.71-2.93 5.644h-.098l-2.913-5.644zm14.836 5.81q-1.02 0-1.893-.478a3.8 3.8 0 0 1-1.381-1.382q-.51-.906-.51-2.106 0-1.185.444-2.074a3.36 3.36 0 0 1 1.3-1.382q.839-.494 1.974-.494a3.3 3.3 0 0 1 1.234.231 3.3 3.3 0 0 1 .97.575q.396.33.527.659l.033-1.267h1.694v7.553H37.18l-.033-1.332q-.279.593-1.02 1.053a3.17 3.17 0 0 1-1.662.444zm.296-1.482q.938 0 1.58-.642.642-.66.642-1.711v-.115q0-.708-.296-1.267a2.2 2.2 0 0 0-.807-.872 2.1 2.1 0 0 0-1.119-.313q-1.053 0-1.629.692-.575.675-.575 1.76 0 1.103.559 1.795.577.675 1.645.675zm6.521-6.237h1.711v1.4q.906-1.597 2.83-1.597 1.596 0 2.584 1.02.988 1.005.988 2.914 0 1.185-.493 2.09a3.46 3.46 0 0 1-1.316 1.399 3.5 3.5 0 0 1-1.844.493q-.954 0-1.662-.329a2.67 2.67 0 0 1-1.086-.97l.017 5.134h-1.728zm4.048 6.22q1.07 0 1.645-.674.577-.69.576-1.762 0-1.119-.576-1.777-.558-.675-1.645-.675-.592 0-1.12.296-.51.28-.822.823-.296.527-.296 1.234v.115q0 .708.296 1.267.313.543.823.855.51.296 1.119.297z'/%3E%3Cpath fill='%23e1e3e9' d='M51.325 4.7h1.86v10.45h3.473v1.646h-5.333zm7.12 4.542h1.843v7.553h-1.843zm.905-1.415a1.16 1.16 0 0 1-.856-.346 1.17 1.17 0 0 1-.346-.856 1.05 1.05 0 0 1 .346-.79q.346-.329.856-.329.494 0 .839.33a1.05 1.05 0 0 1 .345.79 1.16 1.16 0 0 1-.345.855q-.33.346-.84.346zm7.875 9.133a3.17 3.17 0 0 1-1.662-.444q-.723-.46-1.004-1.053l-.033 1.332h-1.71V4.701h1.743v4.657l-.082 1.283q.279-.658 1.086-1.119a3.5 3.5 0 0 1 1.778-.477q1.119 0 1.942.51a3.24 3.24 0 0 1 1.283 1.4q.445.888.444 2.072 0 1.201-.526 2.09a3.5 3.5 0 0 1-1.382 1.366 3.8 3.8 0 0 1-1.876.477zm-.296-1.481q1.069 0 1.645-.675.577-.69.577-1.778 0-1.102-.577-1.776-.56-.691-1.645-.692a2.12 2.12 0 0 0-1.58.659q-.642.641-.642 1.694v.115q0 .71.296 1.267a2.4 2.4 0 0 0 .807.872 2.1 2.1 0 0 0 1.119.313zm5.927-6.237h1.777v1.481q.263-.757.856-1.217a2.14 2.14 0 0 1 1.349-.46q.527 0 .724.098l-.247 1.794q-.149-.099-.642-.099-.774 0-1.416.494-.626.493-.626 1.58v3.883h-1.777V9.242zm9.534 7.718q-1.35 0-2.255-.526-.904-.543-1.332-1.432a4.6 4.6 0 0 1-.428-1.975q0-1.2.493-2.106a3.46 3.46 0 0 1 1.4-1.382q.889-.495 2.007-.494 1.744 0 2.584.97.855.956.856 2.7 0 .444-.05.92h-5.43q.18 1.005.708 1.45.542.443 1.497.443.79 0 1.3-.131a4 4 0 0 0 .938-.362l.542 1.267q-.411.263-1.119.46-.708.198-1.711.197zm1.596-4.558q.016-1.02-.444-1.432-.46-.428-1.316-.428-1.728 0-1.991 1.86z'/%3E%3Cpath d='M5.074 15.948a.484.657 0 0 0-.486.659v1.84a.484.657 0 0 0 .486.659h4.101a.484.657 0 0 0 .486-.659v-1.84a.484.657 0 0 0-.486-.659zm3.56 1.16H5.617v.838h3.017z' style='fill:%23fff;fill-rule:evenodd;stroke-width:1.03600001'/%3E%3Cg style='stroke-width:1.12603545'%3E%3Cpath d='M-9.408-1.416c-3.833-.025-7.056 2.912-7.08 6.615-.02 3.08 1.653 4.832 3.107 6.268.903.892 1.721 1.74 2.32 2.902l-.525-.004c-.543-.003-.992.304-1.24.639a1.87 1.87 0 0 0-.362 1.121l-.011 1.877c-.003.402.104.787.347 1.125.244.338.688.653 1.23.656l4.142.028c.542.003.99-.306 1.238-.641a1.87 1.87 0 0 0 .363-1.121l.012-1.875a1.87 1.87 0 0 0-.348-1.127c-.243-.338-.688-.653-1.23-.656l-.518-.004c.597-1.145 1.425-1.983 2.348-2.87 1.473-1.414 3.18-3.149 3.2-6.226-.016-3.59-2.923-6.684-6.993-6.707m-.006 1.1v.002c3.274.02 5.92 2.532 5.9 5.6-.017 2.706-1.39 4.026-2.863 5.44-1.034.994-2.118 2.033-2.814 3.633-.018.041-.052.055-.075.065q-.013.004-.02.01a.34.34 0 0 1-.226.084.34.34 0 0 1-.224-.086l-.092-.077c-.699-1.615-1.768-2.669-2.781-3.67-1.454-1.435-2.797-2.762-2.78-5.478.02-3.067 2.7-5.545 5.975-5.523m-.02 2.826c-1.62-.01-2.944 1.315-2.955 2.96-.01 1.646 1.295 2.988 2.916 2.999h.002c1.621.01 2.943-1.316 2.953-2.961.011-1.646-1.294-2.988-2.916-2.998m-.005 1.1c1.017.006 1.829.83 1.822 1.89s-.83 1.874-1.848 1.867c-1.018-.006-1.829-.83-1.822-1.89s.83-1.874 1.848-1.868m-2.155 11.857 4.14.025c.271.002.49.305.487.676l-.013 1.875c-.003.37-.224.67-.495.668l-4.14-.025c-.27-.002-.487-.306-.485-.676l.012-1.875c.003-.37.224-.67.494-.668' style='color:%23000;font-style:normal;font-variant:normal;font-weight:400;font-stretch:normal;font-size:medium;line-height:normal;font-family:sans-serif;font-variant-ligatures:normal;font-variant-position:normal;font-variant-caps:normal;font-variant-numeric:normal;font-variant-alternates:normal;font-feature-settings:normal;text-indent:0;text-align:start;text-decoration:none;text-decoration-line:none;text-decoration-style:solid;text-decoration-color:%23000;letter-spacing:normal;word-spacing:normal;text-transform:none;writing-mode:lr-tb;direction:ltr;text-orientation:mixed;dominant-baseline:auto;baseline-shift:baseline;text-anchor:start;white-space:normal;shape-padding:0;clip-rule:evenodd;display:inline;overflow:visible;visibility:visible;opacity:1;isolation:auto;mix-blend-mode:normal;color-interpolation:sRGB;color-interpolation-filters:linearRGB;solid-color:%23000;solid-opacity:1;vector-effect:none;fill:%23000;fill-opacity:.4;fill-rule:evenodd;stroke:none;stroke-width:2.47727823;stroke-linecap:butt;stroke-linejoin:miter;stroke-miterlimit:4;stroke-dasharray:none;stroke-dashoffset:0;stroke-opacity:1;color-rendering:auto;image-rendering:auto;shape-rendering:auto;text-rendering:auto' transform='translate(15.553 2.85)scale(.88807)'/%3E%3Cpath d='M-9.415-.316C-12.69-.338-15.37 2.14-15.39 5.207c-.017 2.716 1.326 4.041 2.78 5.477 1.013 1 2.081 2.055 2.78 3.67l.092.076a.34.34 0 0 0 .225.086.34.34 0 0 0 .227-.083l.019-.01c.022-.009.057-.024.074-.064.697-1.6 1.78-2.64 2.814-3.634 1.473-1.414 2.847-2.733 2.864-5.44.02-3.067-2.627-5.58-5.901-5.601m-.057 8.784c1.621.011 2.944-1.315 2.955-2.96.01-1.646-1.295-2.988-2.916-2.999-1.622-.01-2.945 1.315-2.955 2.96s1.295 2.989 2.916 3' style='clip-rule:evenodd;fill:%23e1e3e9;fill-opacity:1;fill-rule:evenodd;stroke:none;stroke-width:2.47727823;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:.4' transform='translate(15.553 2.85)scale(.88807)'/%3E%3Cpath d='M-11.594 15.465c-.27-.002-.492.297-.494.668l-.012 1.876c-.003.371.214.673.485.675l4.14.027c.271.002.492-.298.495-.668l.012-1.877c.003-.37-.215-.672-.485-.674z' style='clip-rule:evenodd;fill:%23fff;fill-opacity:1;fill-rule:evenodd;stroke:none;stroke-width:2.47727823;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:.4' transform='translate(15.553 2.85)scale(.88807)'/%3E%3C/g%3E%3C/svg%3E");background-repeat:no-repeat;cursor:pointer;display:block;height:23px;margin:0 0 -4px -4px;overflow:hidden;width:88px}a.maplibregl-ctrl-logo.maplibregl-compact{width:14px}@media (forced-colors:active){a.maplibregl-ctrl-logo{background-color:transparent;background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='88' height='23' fill='none'%3E%3Cpath fill='%23000' fill-opacity='.4' fill-rule='evenodd' d='M17.408 16.796h-1.827l2.501-12.095h.198l3.324 6.533.988 2.19.988-2.19 3.258-6.533h.181l2.6 12.095h-1.81l-1.218-5.644-.362-1.71-.658 1.71-2.929 5.644h-.098l-2.914-5.644-.757-1.71-.345 1.71zm1.958-3.42-.726 3.663a1.255 1.255 0 0 1-1.232 1.011h-1.827a1.255 1.255 0 0 1-1.229-1.509l2.501-12.095a1.255 1.255 0 0 1 1.23-1.001h.197a1.25 1.25 0 0 1 1.12.685l3.19 6.273 3.125-6.263a1.25 1.25 0 0 1 1.123-.695h.181a1.255 1.255 0 0 1 1.227.991l1.443 6.71a5 5 0 0 1 .314-.787l.009-.016a4.6 4.6 0 0 1 1.777-1.887c.782-.46 1.668-.667 2.611-.667a4.6 4.6 0 0 1 1.7.32l.306.134c.21-.16.474-.256.759-.256h1.694a1.255 1.255 0 0 1 1.212.925 1.255 1.255 0 0 1 1.212-.925h1.711c.284 0 .545.094.755.252.613-.3 1.312-.45 2.075-.45 1.356 0 2.557.445 3.482 1.4q.47.48.763 1.064V4.701a1.255 1.255 0 0 1 1.255-1.255h1.86A1.255 1.255 0 0 1 54.44 4.7v9.194h2.217c.19 0 .37.043.532.118v-4.77c0-.356.147-.678.385-.906a2.42 2.42 0 0 1-.682-1.71c0-.665.267-1.253.735-1.7a2.45 2.45 0 0 1 1.722-.674 2.43 2.43 0 0 1 1.705.675q.318.302.504.683V4.7a1.255 1.255 0 0 1 1.255-1.255h1.744A1.255 1.255 0 0 1 65.812 4.7v3.335a4.8 4.8 0 0 1 1.526-.246c.938 0 1.817.214 2.59.69a4.47 4.47 0 0 1 1.67 1.743v-.98a1.255 1.255 0 0 1 1.256-1.256h1.777c.233 0 .451.064.639.174a3.4 3.4 0 0 1 1.567-.372c.346 0 .861.02 1.285.232a1.25 1.25 0 0 1 .689 1.004 4.7 4.7 0 0 1 .853-.588c.795-.44 1.675-.647 2.61-.647 1.385 0 2.65.39 3.525 1.396.836.938 1.168 2.173 1.168 3.528q-.001.515-.056 1.051a1.255 1.255 0 0 1-.947 1.09l.408.952a1.255 1.255 0 0 1-.477 1.552c-.418.268-.92.463-1.458.612-.613.171-1.304.244-2.049.244-1.06 0-2.043-.207-2.886-.698l-.015-.008c-.798-.48-1.419-1.135-1.818-1.963l-.004-.008a5.8 5.8 0 0 1-.548-2.512q0-.429.053-.843a1.3 1.3 0 0 1-.333-.086l-.166-.004c-.223 0-.426.062-.643.228-.03.024-.142.139-.142.59v3.883a1.255 1.255 0 0 1-1.256 1.256h-1.777a1.255 1.255 0 0 1-1.256-1.256V15.69l-.032.057a4.8 4.8 0 0 1-1.86 1.833 5.04 5.04 0 0 1-2.484.634 4.5 4.5 0 0 1-1.935-.424 1.25 1.25 0 0 1-.764.258h-1.71a1.255 1.255 0 0 1-1.256-1.255V7.687a2.4 2.4 0 0 1-.428.625c.253.23.412.561.412.93v7.553a1.255 1.255 0 0 1-1.256 1.255h-1.843a1.25 1.25 0 0 1-.894-.373c-.228.23-.544.373-.894.373H51.32a1.255 1.255 0 0 1-1.256-1.255v-1.251l-.061.117a4.7 4.7 0 0 1-1.782 1.884 4.77 4.77 0 0 1-2.485.67 5.6 5.6 0 0 1-1.485-.188l.009 2.764a1.255 1.255 0 0 1-1.255 1.259h-1.729a1.255 1.255 0 0 1-1.255-1.255v-3.537a1.255 1.255 0 0 1-1.167.793h-1.679a1.25 1.25 0 0 1-.77-.263 4.5 4.5 0 0 1-1.945.429c-.885 0-1.724-.21-2.495-.632l-.017-.01a5 5 0 0 1-1.081-.836 1.255 1.255 0 0 1-1.254 1.312h-1.81a1.255 1.255 0 0 1-1.228-.99l-.782-3.625-2.044 3.939a1.25 1.25 0 0 1-1.115.676h-.098a1.25 1.25 0 0 1-1.116-.68l-2.061-3.994zM35.92 16.63l.207-.114.223-.15q.493-.356.735-.785l.061-.118.033 1.332h1.678V9.242h-1.694l-.033 1.267q-.133-.329-.526-.658l-.032-.028a3.2 3.2 0 0 0-.668-.428l-.27-.12a3.3 3.3 0 0 0-1.235-.23q-1.136-.001-1.974.493a3.36 3.36 0 0 0-1.3 1.382q-.445.89-.444 2.074 0 1.2.51 2.107a3.8 3.8 0 0 0 1.382 1.381 3.9 3.9 0 0 0 1.893.477q.795 0 1.455-.33zm-2.789-5.38q-.576.675-.575 1.762 0 1.102.559 1.794.576.675 1.645.675a2.25 2.25 0 0 0 .934-.19 2.2 2.2 0 0 0 .468-.29l.178-.161a2.2 2.2 0 0 0 .397-.561q.244-.5.244-1.15v-.115q0-.708-.296-1.267l-.043-.077a2.2 2.2 0 0 0-.633-.709l-.13-.086-.047-.028a2.1 2.1 0 0 0-1.073-.285q-1.052 0-1.629.692zm2.316 2.706c.163-.17.28-.407.28-.83v-.114c0-.292-.06-.508-.15-.68a.96.96 0 0 0-.353-.389.85.85 0 0 0-.464-.127c-.4 0-.56.114-.664.239l-.01.012c-.148.174-.275.45-.275.945 0 .506.122.801.27.99.097.11.266.224.68.224.303 0 .504-.09.687-.269zm7.545 1.705a2.6 2.6 0 0 0 .331.423q.319.33.755.548l.173.074q.65.255 1.49.255 1.02 0 1.844-.493a3.45 3.45 0 0 0 1.316-1.4q.493-.904.493-2.089 0-1.909-.988-2.913-.988-1.02-2.584-1.02-.898 0-1.575.347a3 3 0 0 0-.415.262l-.199.166a3.4 3.4 0 0 0-.64.82V9.242h-1.712v11.553h1.729l-.017-5.134zm.53-1.138q.206.29.48.5l.155.11.053.034q.51.296 1.119.297 1.07 0 1.645-.675.577-.69.576-1.762 0-1.119-.576-1.777-.558-.675-1.645-.675-.435 0-.835.16a2 2 0 0 0-.284.136 2 2 0 0 0-.363.254 2.2 2.2 0 0 0-.46.569l-.082.162a2.6 2.6 0 0 0-.213 1.072v.115q0 .707.296 1.267l.135.211zm.964-.818a1.1 1.1 0 0 0 .367.385.94.94 0 0 0 .476.118c.423 0 .59-.117.687-.23.159-.194.28-.478.28-.95 0-.53-.133-.8-.266-.952l-.021-.025c-.078-.094-.231-.221-.68-.221a1 1 0 0 0-.503.135l-.012.007a.86.86 0 0 0-.335.343c-.073.133-.132.324-.132.614v.115a1.4 1.4 0 0 0 .14.66zm15.7-6.222q.347-.346.346-.856a1.05 1.05 0 0 0-.345-.79 1.18 1.18 0 0 0-.84-.329q-.51 0-.855.33a1.05 1.05 0 0 0-.346.79q0 .51.346.855.345.346.856.346.51 0 .839-.346zm4.337 9.314.033-1.332q.191.403.59.747l.098.081a4 4 0 0 0 .316.224l.223.122a3.2 3.2 0 0 0 1.44.322 3.8 3.8 0 0 0 1.875-.477 3.5 3.5 0 0 0 1.382-1.366q.527-.89.526-2.09 0-1.184-.444-2.073a3.24 3.24 0 0 0-1.283-1.399q-.823-.51-1.942-.51a3.5 3.5 0 0 0-1.527.344l-.086.043-.165.09a3 3 0 0 0-.33.214q-.432.315-.656.707a2 2 0 0 0-.099.198l.082-1.283V4.701h-1.744v12.095zm.473-2.509a2.5 2.5 0 0 0 .566.7q.117.098.245.18l.144.08a2.1 2.1 0 0 0 .975.232q1.07 0 1.645-.675.576-.69.576-1.778 0-1.102-.576-1.777-.56-.691-1.645-.692a2.2 2.2 0 0 0-1.015.235q-.22.113-.415.282l-.15.142a2.1 2.1 0 0 0-.42.594q-.223.479-.223 1.1v.115q0 .705.293 1.26zm2.616-.293c.157-.191.28-.479.28-.967 0-.51-.13-.79-.276-.961l-.021-.026c-.082-.1-.232-.225-.67-.225a.87.87 0 0 0-.681.279l-.012.011c-.154.155-.274.38-.274.807v.115c0 .285.057.499.144.669a1.1 1.1 0 0 0 .367.405c.137.082.28.123.455.123.423 0 .59-.118.686-.23zm8.266-3.013q.345-.13.724-.14l.069-.002q.493 0 .642.099l.247-1.794q-.196-.099-.717-.099a2.3 2.3 0 0 0-.545.063 2 2 0 0 0-.411.148 2.2 2.2 0 0 0-.4.249 2.5 2.5 0 0 0-.485.499 2.7 2.7 0 0 0-.32.581l-.05.137v-1.48h-1.778v7.553h1.777v-3.884q0-.546.159-.943a1.5 1.5 0 0 1 .466-.636 2.5 2.5 0 0 1 .399-.253 2 2 0 0 1 .224-.099zm9.784 2.656.05-.922q0-1.743-.856-2.698-.838-.97-2.584-.97-1.119-.001-2.007.493a3.46 3.46 0 0 0-1.4 1.382q-.493.906-.493 2.106 0 1.07.428 1.975.428.89 1.332 1.432.906.526 2.255.526.973 0 1.668-.185l.044-.012.135-.04q.613-.184.984-.421l-.542-1.267q-.3.162-.642.274l-.297.087q-.51.131-1.3.131-.954 0-1.497-.444a1.6 1.6 0 0 1-.192-.193q-.366-.44-.512-1.234l-.004-.021zm-5.427-1.256-.003.022h3.752v-.138q-.011-.727-.288-1.118a1 1 0 0 0-.156-.176q-.46-.428-1.316-.428-.986 0-1.494.604-.379.45-.494 1.234zm-27.053 2.77V4.7h-1.86v12.095h5.333V15.15zm7.103-5.908v7.553h-1.843V9.242h1.843z'/%3E%3Cpath fill='%23fff' d='m19.63 11.151-.757-1.71-.345 1.71-1.12 5.644h-1.827L18.083 4.7h.197l3.325 6.533.988 2.19.988-2.19L26.839 4.7h.181l2.6 12.095h-1.81l-1.218-5.644-.362-1.71-.658 1.71-2.93 5.644h-.098l-2.913-5.644zm14.836 5.81q-1.02 0-1.893-.478a3.8 3.8 0 0 1-1.381-1.382q-.51-.906-.51-2.106 0-1.185.444-2.074a3.36 3.36 0 0 1 1.3-1.382q.839-.494 1.974-.494a3.3 3.3 0 0 1 1.234.231 3.3 3.3 0 0 1 .97.575q.396.33.527.659l.033-1.267h1.694v7.553H37.18l-.033-1.332q-.279.593-1.02 1.053a3.17 3.17 0 0 1-1.662.444zm.296-1.482q.938 0 1.58-.642.642-.66.642-1.711v-.115q0-.708-.296-1.267a2.2 2.2 0 0 0-.807-.872 2.1 2.1 0 0 0-1.119-.313q-1.053 0-1.629.692-.575.675-.575 1.76 0 1.103.559 1.795.577.675 1.645.675zm6.521-6.237h1.711v1.4q.906-1.597 2.83-1.597 1.596 0 2.584 1.02.988 1.005.988 2.914 0 1.185-.493 2.09a3.46 3.46 0 0 1-1.316 1.399 3.5 3.5 0 0 1-1.844.493q-.954 0-1.662-.329a2.67 2.67 0 0 1-1.086-.97l.017 5.134h-1.728zm4.048 6.22q1.07 0 1.645-.674.577-.69.576-1.762 0-1.119-.576-1.777-.558-.675-1.645-.675-.592 0-1.12.296-.51.28-.822.823-.296.527-.296 1.234v.115q0 .708.296 1.267.313.543.823.855.51.296 1.119.297z'/%3E%3Cpath fill='%23e1e3e9' d='M51.325 4.7h1.86v10.45h3.473v1.646h-5.333zm7.12 4.542h1.843v7.553h-1.843zm.905-1.415a1.16 1.16 0 0 1-.856-.346 1.17 1.17 0 0 1-.346-.856 1.05 1.05 0 0 1 .346-.79q.346-.329.856-.329.494 0 .839.33a1.05 1.05 0 0 1 .345.79 1.16 1.16 0 0 1-.345.855q-.33.346-.84.346zm7.875 9.133a3.17 3.17 0 0 1-1.662-.444q-.723-.46-1.004-1.053l-.033 1.332h-1.71V4.701h1.743v4.657l-.082 1.283q.279-.658 1.086-1.119a3.5 3.5 0 0 1 1.778-.477q1.119 0 1.942.51a3.24 3.24 0 0 1 1.283 1.4q.445.888.444 2.072 0 1.201-.526 2.09a3.5 3.5 0 0 1-1.382 1.366 3.8 3.8 0 0 1-1.876.477zm-.296-1.481q1.069 0 1.645-.675.577-.69.577-1.778 0-1.102-.577-1.776-.56-.691-1.645-.692a2.12 2.12 0 0 0-1.58.659q-.642.641-.642 1.694v.115q0 .71.296 1.267a2.4 2.4 0 0 0 .807.872 2.1 2.1 0 0 0 1.119.313zm5.927-6.237h1.777v1.481q.263-.757.856-1.217a2.14 2.14 0 0 1 1.349-.46q.527 0 .724.098l-.247 1.794q-.149-.099-.642-.099-.774 0-1.416.494-.626.493-.626 1.58v3.883h-1.777V9.242zm9.534 7.718q-1.35 0-2.255-.526-.904-.543-1.332-1.432a4.6 4.6 0 0 1-.428-1.975q0-1.2.493-2.106a3.46 3.46 0 0 1 1.4-1.382q.889-.495 2.007-.494 1.744 0 2.584.97.855.956.856 2.7 0 .444-.05.92h-5.43q.18 1.005.708 1.45.542.443 1.497.443.79 0 1.3-.131a4 4 0 0 0 .938-.362l.542 1.267q-.411.263-1.119.46-.708.198-1.711.197zm1.596-4.558q.016-1.02-.444-1.432-.46-.428-1.316-.428-1.728 0-1.991 1.86z'/%3E%3Cpath d='M5.074 15.948a.484.657 0 0 0-.486.659v1.84a.484.657 0 0 0 .486.659h4.101a.484.657 0 0 0 .486-.659v-1.84a.484.657 0 0 0-.486-.659zm3.56 1.16H5.617v.838h3.017z' style='fill:%23fff;fill-rule:evenodd;stroke-width:1.03600001'/%3E%3Cg style='stroke-width:1.12603545'%3E%3Cpath d='M-9.408-1.416c-3.833-.025-7.056 2.912-7.08 6.615-.02 3.08 1.653 4.832 3.107 6.268.903.892 1.721 1.74 2.32 2.902l-.525-.004c-.543-.003-.992.304-1.24.639a1.87 1.87 0 0 0-.362 1.121l-.011 1.877c-.003.402.104.787.347 1.125.244.338.688.653 1.23.656l4.142.028c.542.003.99-.306 1.238-.641a1.87 1.87 0 0 0 .363-1.121l.012-1.875a1.87 1.87 0 0 0-.348-1.127c-.243-.338-.688-.653-1.23-.656l-.518-.004c.597-1.145 1.425-1.983 2.348-2.87 1.473-1.414 3.18-3.149 3.2-6.226-.016-3.59-2.923-6.684-6.993-6.707m-.006 1.1v.002c3.274.02 5.92 2.532 5.9 5.6-.017 2.706-1.39 4.026-2.863 5.44-1.034.994-2.118 2.033-2.814 3.633-.018.041-.052.055-.075.065q-.013.004-.02.01a.34.34 0 0 1-.226.084.34.34 0 0 1-.224-.086l-.092-.077c-.699-1.615-1.768-2.669-2.781-3.67-1.454-1.435-2.797-2.762-2.78-5.478.02-3.067 2.7-5.545 5.975-5.523m-.02 2.826c-1.62-.01-2.944 1.315-2.955 2.96-.01 1.646 1.295 2.988 2.916 2.999h.002c1.621.01 2.943-1.316 2.953-2.961.011-1.646-1.294-2.988-2.916-2.998m-.005 1.1c1.017.006 1.829.83 1.822 1.89s-.83 1.874-1.848 1.867c-1.018-.006-1.829-.83-1.822-1.89s.83-1.874 1.848-1.868m-2.155 11.857 4.14.025c.271.002.49.305.487.676l-.013 1.875c-.003.37-.224.67-.495.668l-4.14-.025c-.27-.002-.487-.306-.485-.676l.012-1.875c.003-.37.224-.67.494-.668' style='color:%23000;font-style:normal;font-variant:normal;font-weight:400;font-stretch:normal;font-size:medium;line-height:normal;font-family:sans-serif;font-variant-ligatures:normal;font-variant-position:normal;font-variant-caps:normal;font-variant-numeric:normal;font-variant-alternates:normal;font-feature-settings:normal;text-indent:0;text-align:start;text-decoration:none;text-decoration-line:none;text-decoration-style:solid;text-decoration-color:%23000;letter-spacing:normal;word-spacing:normal;text-transform:none;writing-mode:lr-tb;direction:ltr;text-orientation:mixed;dominant-baseline:auto;baseline-shift:baseline;text-anchor:start;white-space:normal;shape-padding:0;clip-rule:evenodd;display:inline;overflow:visible;visibility:visible;opacity:1;isolation:auto;mix-blend-mode:normal;color-interpolation:sRGB;color-interpolation-filters:linearRGB;solid-color:%23000;solid-opacity:1;vector-effect:none;fill:%23000;fill-opacity:.4;fill-rule:evenodd;stroke:none;stroke-width:2.47727823;stroke-linecap:butt;stroke-linejoin:miter;stroke-miterlimit:4;stroke-dasharray:none;stroke-dashoffset:0;stroke-opacity:1;color-rendering:auto;image-rendering:auto;shape-rendering:auto;text-rendering:auto' transform='translate(15.553 2.85)scale(.88807)'/%3E%3Cpath d='M-9.415-.316C-12.69-.338-15.37 2.14-15.39 5.207c-.017 2.716 1.326 4.041 2.78 5.477 1.013 1 2.081 2.055 2.78 3.67l.092.076a.34.34 0 0 0 .225.086.34.34 0 0 0 .227-.083l.019-.01c.022-.009.057-.024.074-.064.697-1.6 1.78-2.64 2.814-3.634 1.473-1.414 2.847-2.733 2.864-5.44.02-3.067-2.627-5.58-5.901-5.601m-.057 8.784c1.621.011 2.944-1.315 2.955-2.96.01-1.646-1.295-2.988-2.916-2.999-1.622-.01-2.945 1.315-2.955 2.96s1.295 2.989 2.916 3' style='clip-rule:evenodd;fill:%23e1e3e9;fill-opacity:1;fill-rule:evenodd;stroke:none;stroke-width:2.47727823;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:.4' transform='translate(15.553 2.85)scale(.88807)'/%3E%3Cpath d='M-11.594 15.465c-.27-.002-.492.297-.494.668l-.012 1.876c-.003.371.214.673.485.675l4.14.027c.271.002.492-.298.495-.668l.012-1.877c.003-.37-.215-.672-.485-.674z' style='clip-rule:evenodd;fill:%23fff;fill-opacity:1;fill-rule:evenodd;stroke:none;stroke-width:2.47727823;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:.4' transform='translate(15.553 2.85)scale(.88807)'/%3E%3C/g%3E%3C/svg%3E")}}@media (forced-colors:active) and (prefers-color-scheme:light){a.maplibregl-ctrl-logo{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='88' height='23' fill='none'%3E%3Cpath fill='%23000' fill-opacity='.4' fill-rule='evenodd' d='M17.408 16.796h-1.827l2.501-12.095h.198l3.324 6.533.988 2.19.988-2.19 3.258-6.533h.181l2.6 12.095h-1.81l-1.218-5.644-.362-1.71-.658 1.71-2.929 5.644h-.098l-2.914-5.644-.757-1.71-.345 1.71zm1.958-3.42-.726 3.663a1.255 1.255 0 0 1-1.232 1.011h-1.827a1.255 1.255 0 0 1-1.229-1.509l2.501-12.095a1.255 1.255 0 0 1 1.23-1.001h.197a1.25 1.25 0 0 1 1.12.685l3.19 6.273 3.125-6.263a1.25 1.25 0 0 1 1.123-.695h.181a1.255 1.255 0 0 1 1.227.991l1.443 6.71a5 5 0 0 1 .314-.787l.009-.016a4.6 4.6 0 0 1 1.777-1.887c.782-.46 1.668-.667 2.611-.667a4.6 4.6 0 0 1 1.7.32l.306.134c.21-.16.474-.256.759-.256h1.694a1.255 1.255 0 0 1 1.212.925 1.255 1.255 0 0 1 1.212-.925h1.711c.284 0 .545.094.755.252.613-.3 1.312-.45 2.075-.45 1.356 0 2.557.445 3.482 1.4q.47.48.763 1.064V4.701a1.255 1.255 0 0 1 1.255-1.255h1.86A1.255 1.255 0 0 1 54.44 4.7v9.194h2.217c.19 0 .37.043.532.118v-4.77c0-.356.147-.678.385-.906a2.42 2.42 0 0 1-.682-1.71c0-.665.267-1.253.735-1.7a2.45 2.45 0 0 1 1.722-.674 2.43 2.43 0 0 1 1.705.675q.318.302.504.683V4.7a1.255 1.255 0 0 1 1.255-1.255h1.744A1.255 1.255 0 0 1 65.812 4.7v3.335a4.8 4.8 0 0 1 1.526-.246c.938 0 1.817.214 2.59.69a4.47 4.47 0 0 1 1.67 1.743v-.98a1.255 1.255 0 0 1 1.256-1.256h1.777c.233 0 .451.064.639.174a3.4 3.4 0 0 1 1.567-.372c.346 0 .861.02 1.285.232a1.25 1.25 0 0 1 .689 1.004 4.7 4.7 0 0 1 .853-.588c.795-.44 1.675-.647 2.61-.647 1.385 0 2.65.39 3.525 1.396.836.938 1.168 2.173 1.168 3.528q-.001.515-.056 1.051a1.255 1.255 0 0 1-.947 1.09l.408.952a1.255 1.255 0 0 1-.477 1.552c-.418.268-.92.463-1.458.612-.613.171-1.304.244-2.049.244-1.06 0-2.043-.207-2.886-.698l-.015-.008c-.798-.48-1.419-1.135-1.818-1.963l-.004-.008a5.8 5.8 0 0 1-.548-2.512q0-.429.053-.843a1.3 1.3 0 0 1-.333-.086l-.166-.004c-.223 0-.426.062-.643.228-.03.024-.142.139-.142.59v3.883a1.255 1.255 0 0 1-1.256 1.256h-1.777a1.255 1.255 0 0 1-1.256-1.256V15.69l-.032.057a4.8 4.8 0 0 1-1.86 1.833 5.04 5.04 0 0 1-2.484.634 4.5 4.5 0 0 1-1.935-.424 1.25 1.25 0 0 1-.764.258h-1.71a1.255 1.255 0 0 1-1.256-1.255V7.687a2.4 2.4 0 0 1-.428.625c.253.23.412.561.412.93v7.553a1.255 1.255 0 0 1-1.256 1.255h-1.843a1.25 1.25 0 0 1-.894-.373c-.228.23-.544.373-.894.373H51.32a1.255 1.255 0 0 1-1.256-1.255v-1.251l-.061.117a4.7 4.7 0 0 1-1.782 1.884 4.77 4.77 0 0 1-2.485.67 5.6 5.6 0 0 1-1.485-.188l.009 2.764a1.255 1.255 0 0 1-1.255 1.259h-1.729a1.255 1.255 0 0 1-1.255-1.255v-3.537a1.255 1.255 0 0 1-1.167.793h-1.679a1.25 1.25 0 0 1-.77-.263 4.5 4.5 0 0 1-1.945.429c-.885 0-1.724-.21-2.495-.632l-.017-.01a5 5 0 0 1-1.081-.836 1.255 1.255 0 0 1-1.254 1.312h-1.81a1.255 1.255 0 0 1-1.228-.99l-.782-3.625-2.044 3.939a1.25 1.25 0 0 1-1.115.676h-.098a1.25 1.25 0 0 1-1.116-.68l-2.061-3.994zM35.92 16.63l.207-.114.223-.15q.493-.356.735-.785l.061-.118.033 1.332h1.678V9.242h-1.694l-.033 1.267q-.133-.329-.526-.658l-.032-.028a3.2 3.2 0 0 0-.668-.428l-.27-.12a3.3 3.3 0 0 0-1.235-.23q-1.136-.001-1.974.493a3.36 3.36 0 0 0-1.3 1.382q-.445.89-.444 2.074 0 1.2.51 2.107a3.8 3.8 0 0 0 1.382 1.381 3.9 3.9 0 0 0 1.893.477q.795 0 1.455-.33zm-2.789-5.38q-.576.675-.575 1.762 0 1.102.559 1.794.576.675 1.645.675a2.25 2.25 0 0 0 .934-.19 2.2 2.2 0 0 0 .468-.29l.178-.161a2.2 2.2 0 0 0 .397-.561q.244-.5.244-1.15v-.115q0-.708-.296-1.267l-.043-.077a2.2 2.2 0 0 0-.633-.709l-.13-.086-.047-.028a2.1 2.1 0 0 0-1.073-.285q-1.052 0-1.629.692zm2.316 2.706c.163-.17.28-.407.28-.83v-.114c0-.292-.06-.508-.15-.68a.96.96 0 0 0-.353-.389.85.85 0 0 0-.464-.127c-.4 0-.56.114-.664.239l-.01.012c-.148.174-.275.45-.275.945 0 .506.122.801.27.99.097.11.266.224.68.224.303 0 .504-.09.687-.269zm7.545 1.705a2.6 2.6 0 0 0 .331.423q.319.33.755.548l.173.074q.65.255 1.49.255 1.02 0 1.844-.493a3.45 3.45 0 0 0 1.316-1.4q.493-.904.493-2.089 0-1.909-.988-2.913-.988-1.02-2.584-1.02-.898 0-1.575.347a3 3 0 0 0-.415.262l-.199.166a3.4 3.4 0 0 0-.64.82V9.242h-1.712v11.553h1.729l-.017-5.134zm.53-1.138q.206.29.48.5l.155.11.053.034q.51.296 1.119.297 1.07 0 1.645-.675.577-.69.576-1.762 0-1.119-.576-1.777-.558-.675-1.645-.675-.435 0-.835.16a2 2 0 0 0-.284.136 2 2 0 0 0-.363.254 2.2 2.2 0 0 0-.46.569l-.082.162a2.6 2.6 0 0 0-.213 1.072v.115q0 .707.296 1.267l.135.211zm.964-.818a1.1 1.1 0 0 0 .367.385.94.94 0 0 0 .476.118c.423 0 .59-.117.687-.23.159-.194.28-.478.28-.95 0-.53-.133-.8-.266-.952l-.021-.025c-.078-.094-.231-.221-.68-.221a1 1 0 0 0-.503.135l-.012.007a.86.86 0 0 0-.335.343c-.073.133-.132.324-.132.614v.115a1.4 1.4 0 0 0 .14.66zm15.7-6.222q.347-.346.346-.856a1.05 1.05 0 0 0-.345-.79 1.18 1.18 0 0 0-.84-.329q-.51 0-.855.33a1.05 1.05 0 0 0-.346.79q0 .51.346.855.345.346.856.346.51 0 .839-.346zm4.337 9.314.033-1.332q.191.403.59.747l.098.081a4 4 0 0 0 .316.224l.223.122a3.2 3.2 0 0 0 1.44.322 3.8 3.8 0 0 0 1.875-.477 3.5 3.5 0 0 0 1.382-1.366q.527-.89.526-2.09 0-1.184-.444-2.073a3.24 3.24 0 0 0-1.283-1.399q-.823-.51-1.942-.51a3.5 3.5 0 0 0-1.527.344l-.086.043-.165.09a3 3 0 0 0-.33.214q-.432.315-.656.707a2 2 0 0 0-.099.198l.082-1.283V4.701h-1.744v12.095zm.473-2.509a2.5 2.5 0 0 0 .566.7q.117.098.245.18l.144.08a2.1 2.1 0 0 0 .975.232q1.07 0 1.645-.675.576-.69.576-1.778 0-1.102-.576-1.777-.56-.691-1.645-.692a2.2 2.2 0 0 0-1.015.235q-.22.113-.415.282l-.15.142a2.1 2.1 0 0 0-.42.594q-.223.479-.223 1.1v.115q0 .705.293 1.26zm2.616-.293c.157-.191.28-.479.28-.967 0-.51-.13-.79-.276-.961l-.021-.026c-.082-.1-.232-.225-.67-.225a.87.87 0 0 0-.681.279l-.012.011c-.154.155-.274.38-.274.807v.115c0 .285.057.499.144.669a1.1 1.1 0 0 0 .367.405c.137.082.28.123.455.123.423 0 .59-.118.686-.23zm8.266-3.013q.345-.13.724-.14l.069-.002q.493 0 .642.099l.247-1.794q-.196-.099-.717-.099a2.3 2.3 0 0 0-.545.063 2 2 0 0 0-.411.148 2.2 2.2 0 0 0-.4.249 2.5 2.5 0 0 0-.485.499 2.7 2.7 0 0 0-.32.581l-.05.137v-1.48h-1.778v7.553h1.777v-3.884q0-.546.159-.943a1.5 1.5 0 0 1 .466-.636 2.5 2.5 0 0 1 .399-.253 2 2 0 0 1 .224-.099zm9.784 2.656.05-.922q0-1.743-.856-2.698-.838-.97-2.584-.97-1.119-.001-2.007.493a3.46 3.46 0 0 0-1.4 1.382q-.493.906-.493 2.106 0 1.07.428 1.975.428.89 1.332 1.432.906.526 2.255.526.973 0 1.668-.185l.044-.012.135-.04q.613-.184.984-.421l-.542-1.267q-.3.162-.642.274l-.297.087q-.51.131-1.3.131-.954 0-1.497-.444a1.6 1.6 0 0 1-.192-.193q-.366-.44-.512-1.234l-.004-.021zm-5.427-1.256-.003.022h3.752v-.138q-.011-.727-.288-1.118a1 1 0 0 0-.156-.176q-.46-.428-1.316-.428-.986 0-1.494.604-.379.45-.494 1.234zm-27.053 2.77V4.7h-1.86v12.095h5.333V15.15zm7.103-5.908v7.553h-1.843V9.242h1.843z'/%3E%3Cpath fill='%23fff' d='m19.63 11.151-.757-1.71-.345 1.71-1.12 5.644h-1.827L18.083 4.7h.197l3.325 6.533.988 2.19.988-2.19L26.839 4.7h.181l2.6 12.095h-1.81l-1.218-5.644-.362-1.71-.658 1.71-2.93 5.644h-.098l-2.913-5.644zm14.836 5.81q-1.02 0-1.893-.478a3.8 3.8 0 0 1-1.381-1.382q-.51-.906-.51-2.106 0-1.185.444-2.074a3.36 3.36 0 0 1 1.3-1.382q.839-.494 1.974-.494a3.3 3.3 0 0 1 1.234.231 3.3 3.3 0 0 1 .97.575q.396.33.527.659l.033-1.267h1.694v7.553H37.18l-.033-1.332q-.279.593-1.02 1.053a3.17 3.17 0 0 1-1.662.444zm.296-1.482q.938 0 1.58-.642.642-.66.642-1.711v-.115q0-.708-.296-1.267a2.2 2.2 0 0 0-.807-.872 2.1 2.1 0 0 0-1.119-.313q-1.053 0-1.629.692-.575.675-.575 1.76 0 1.103.559 1.795.577.675 1.645.675zm6.521-6.237h1.711v1.4q.906-1.597 2.83-1.597 1.596 0 2.584 1.02.988 1.005.988 2.914 0 1.185-.493 2.09a3.46 3.46 0 0 1-1.316 1.399 3.5 3.5 0 0 1-1.844.493q-.954 0-1.662-.329a2.67 2.67 0 0 1-1.086-.97l.017 5.134h-1.728zm4.048 6.22q1.07 0 1.645-.674.577-.69.576-1.762 0-1.119-.576-1.777-.558-.675-1.645-.675-.592 0-1.12.296-.51.28-.822.823-.296.527-.296 1.234v.115q0 .708.296 1.267.313.543.823.855.51.296 1.119.297z'/%3E%3Cpath fill='%23e1e3e9' d='M51.325 4.7h1.86v10.45h3.473v1.646h-5.333zm7.12 4.542h1.843v7.553h-1.843zm.905-1.415a1.16 1.16 0 0 1-.856-.346 1.17 1.17 0 0 1-.346-.856 1.05 1.05 0 0 1 .346-.79q.346-.329.856-.329.494 0 .839.33a1.05 1.05 0 0 1 .345.79 1.16 1.16 0 0 1-.345.855q-.33.346-.84.346zm7.875 9.133a3.17 3.17 0 0 1-1.662-.444q-.723-.46-1.004-1.053l-.033 1.332h-1.71V4.701h1.743v4.657l-.082 1.283q.279-.658 1.086-1.119a3.5 3.5 0 0 1 1.778-.477q1.119 0 1.942.51a3.24 3.24 0 0 1 1.283 1.4q.445.888.444 2.072 0 1.201-.526 2.09a3.5 3.5 0 0 1-1.382 1.366 3.8 3.8 0 0 1-1.876.477zm-.296-1.481q1.069 0 1.645-.675.577-.69.577-1.778 0-1.102-.577-1.776-.56-.691-1.645-.692a2.12 2.12 0 0 0-1.58.659q-.642.641-.642 1.694v.115q0 .71.296 1.267a2.4 2.4 0 0 0 .807.872 2.1 2.1 0 0 0 1.119.313zm5.927-6.237h1.777v1.481q.263-.757.856-1.217a2.14 2.14 0 0 1 1.349-.46q.527 0 .724.098l-.247 1.794q-.149-.099-.642-.099-.774 0-1.416.494-.626.493-.626 1.58v3.883h-1.777V9.242zm9.534 7.718q-1.35 0-2.255-.526-.904-.543-1.332-1.432a4.6 4.6 0 0 1-.428-1.975q0-1.2.493-2.106a3.46 3.46 0 0 1 1.4-1.382q.889-.495 2.007-.494 1.744 0 2.584.97.855.956.856 2.7 0 .444-.05.92h-5.43q.18 1.005.708 1.45.542.443 1.497.443.79 0 1.3-.131a4 4 0 0 0 .938-.362l.542 1.267q-.411.263-1.119.46-.708.198-1.711.197zm1.596-4.558q.016-1.02-.444-1.432-.46-.428-1.316-.428-1.728 0-1.991 1.86z'/%3E%3Cpath d='M5.074 15.948a.484.657 0 0 0-.486.659v1.84a.484.657 0 0 0 .486.659h4.101a.484.657 0 0 0 .486-.659v-1.84a.484.657 0 0 0-.486-.659zm3.56 1.16H5.617v.838h3.017z' style='fill:%23fff;fill-rule:evenodd;stroke-width:1.03600001'/%3E%3Cg style='stroke-width:1.12603545'%3E%3Cpath d='M-9.408-1.416c-3.833-.025-7.056 2.912-7.08 6.615-.02 3.08 1.653 4.832 3.107 6.268.903.892 1.721 1.74 2.32 2.902l-.525-.004c-.543-.003-.992.304-1.24.639a1.87 1.87 0 0 0-.362 1.121l-.011 1.877c-.003.402.104.787.347 1.125.244.338.688.653 1.23.656l4.142.028c.542.003.99-.306 1.238-.641a1.87 1.87 0 0 0 .363-1.121l.012-1.875a1.87 1.87 0 0 0-.348-1.127c-.243-.338-.688-.653-1.23-.656l-.518-.004c.597-1.145 1.425-1.983 2.348-2.87 1.473-1.414 3.18-3.149 3.2-6.226-.016-3.59-2.923-6.684-6.993-6.707m-.006 1.1v.002c3.274.02 5.92 2.532 5.9 5.6-.017 2.706-1.39 4.026-2.863 5.44-1.034.994-2.118 2.033-2.814 3.633-.018.041-.052.055-.075.065q-.013.004-.02.01a.34.34 0 0 1-.226.084.34.34 0 0 1-.224-.086l-.092-.077c-.699-1.615-1.768-2.669-2.781-3.67-1.454-1.435-2.797-2.762-2.78-5.478.02-3.067 2.7-5.545 5.975-5.523m-.02 2.826c-1.62-.01-2.944 1.315-2.955 2.96-.01 1.646 1.295 2.988 2.916 2.999h.002c1.621.01 2.943-1.316 2.953-2.961.011-1.646-1.294-2.988-2.916-2.998m-.005 1.1c1.017.006 1.829.83 1.822 1.89s-.83 1.874-1.848 1.867c-1.018-.006-1.829-.83-1.822-1.89s.83-1.874 1.848-1.868m-2.155 11.857 4.14.025c.271.002.49.305.487.676l-.013 1.875c-.003.37-.224.67-.495.668l-4.14-.025c-.27-.002-.487-.306-.485-.676l.012-1.875c.003-.37.224-.67.494-.668' style='color:%23000;font-style:normal;font-variant:normal;font-weight:400;font-stretch:normal;font-size:medium;line-height:normal;font-family:sans-serif;font-variant-ligatures:normal;font-variant-position:normal;font-variant-caps:normal;font-variant-numeric:normal;font-variant-alternates:normal;font-feature-settings:normal;text-indent:0;text-align:start;text-decoration:none;text-decoration-line:none;text-decoration-style:solid;text-decoration-color:%23000;letter-spacing:normal;word-spacing:normal;text-transform:none;writing-mode:lr-tb;direction:ltr;text-orientation:mixed;dominant-baseline:auto;baseline-shift:baseline;text-anchor:start;white-space:normal;shape-padding:0;clip-rule:evenodd;display:inline;overflow:visible;visibility:visible;opacity:1;isolation:auto;mix-blend-mode:normal;color-interpolation:sRGB;color-interpolation-filters:linearRGB;solid-color:%23000;solid-opacity:1;vector-effect:none;fill:%23000;fill-opacity:.4;fill-rule:evenodd;stroke:none;stroke-width:2.47727823;stroke-linecap:butt;stroke-linejoin:miter;stroke-miterlimit:4;stroke-dasharray:none;stroke-dashoffset:0;stroke-opacity:1;color-rendering:auto;image-rendering:auto;shape-rendering:auto;text-rendering:auto' transform='translate(15.553 2.85)scale(.88807)'/%3E%3Cpath d='M-9.415-.316C-12.69-.338-15.37 2.14-15.39 5.207c-.017 2.716 1.326 4.041 2.78 5.477 1.013 1 2.081 2.055 2.78 3.67l.092.076a.34.34 0 0 0 .225.086.34.34 0 0 0 .227-.083l.019-.01c.022-.009.057-.024.074-.064.697-1.6 1.78-2.64 2.814-3.634 1.473-1.414 2.847-2.733 2.864-5.44.02-3.067-2.627-5.58-5.901-5.601m-.057 8.784c1.621.011 2.944-1.315 2.955-2.96.01-1.646-1.295-2.988-2.916-2.999-1.622-.01-2.945 1.315-2.955 2.96s1.295 2.989 2.916 3' style='clip-rule:evenodd;fill:%23e1e3e9;fill-opacity:1;fill-rule:evenodd;stroke:none;stroke-width:2.47727823;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:.4' transform='translate(15.553 2.85)scale(.88807)'/%3E%3Cpath d='M-11.594 15.465c-.27-.002-.492.297-.494.668l-.012 1.876c-.003.371.214.673.485.675l4.14.027c.271.002.492-.298.495-.668l.012-1.877c.003-.37-.215-.672-.485-.674z' style='clip-rule:evenodd;fill:%23fff;fill-opacity:1;fill-rule:evenodd;stroke:none;stroke-width:2.47727823;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:.4' transform='translate(15.553 2.85)scale(.88807)'/%3E%3C/g%3E%3C/svg%3E")}}.maplibregl-ctrl.maplibregl-ctrl-attrib{background-color:#ffffff80;margin:0;padding:0 5px}@media screen{.maplibregl-ctrl-attrib.maplibregl-compact{background-color:#fff;border-radius:12px;box-sizing:content-box;color:#000;margin:10px;min-height:20px;padding:2px 24px 2px 0;position:relative}.maplibregl-ctrl-attrib.maplibregl-compact-show{padding:2px 28px 2px 8px;visibility:visible}.maplibregl-ctrl-bottom-left>.maplibregl-ctrl-attrib.maplibregl-compact-show,.maplibregl-ctrl-top-left>.maplibregl-ctrl-attrib.maplibregl-compact-show{border-radius:12px;padding:2px 8px 2px 28px}.maplibregl-ctrl-attrib.maplibregl-compact .maplibregl-ctrl-attrib-inner{display:none}.maplibregl-ctrl-attrib-button{background-color:#ffffff80;background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' fill-rule='evenodd' viewBox='0 0 20 20'%3E%3Cpath d='M4 10a6 6 0 1 0 12 0 6 6 0 1 0-12 0m5-3a1 1 0 1 0 2 0 1 1 0 1 0-2 0m0 3a1 1 0 1 1 2 0v3a1 1 0 1 1-2 0'/%3E%3C/svg%3E");border:0;border-radius:12px;box-sizing:border-box;cursor:pointer;display:none;height:24px;outline:none;position:absolute;right:0;top:0;width:24px}.maplibregl-ctrl-attrib summary.maplibregl-ctrl-attrib-button{-webkit-appearance:none;-moz-appearance:none;appearance:none;list-style:none}.maplibregl-ctrl-attrib summary.maplibregl-ctrl-attrib-button::-webkit-details-marker{display:none}.maplibregl-ctrl-bottom-left .maplibregl-ctrl-attrib-button,.maplibregl-ctrl-top-left .maplibregl-ctrl-attrib-button{left:0}.maplibregl-ctrl-attrib.maplibregl-compact .maplibregl-ctrl-attrib-button,.maplibregl-ctrl-attrib.maplibregl-compact-show .maplibregl-ctrl-attrib-inner{display:block}.maplibregl-ctrl-attrib.maplibregl-compact-show .maplibregl-ctrl-attrib-button{background-color:#0000000d}.maplibregl-ctrl-bottom-right>.maplibregl-ctrl-attrib.maplibregl-compact:after{bottom:0;right:0}.maplibregl-ctrl-top-right>.maplibregl-ctrl-attrib.maplibregl-compact:after{right:0;top:0}.maplibregl-ctrl-top-left>.maplibregl-ctrl-attrib.maplibregl-compact:after{left:0;top:0}.maplibregl-ctrl-bottom-left>.maplibregl-ctrl-attrib.maplibregl-compact:after{bottom:0;left:0}}@media screen and (forced-colors:active){.maplibregl-ctrl-attrib.maplibregl-compact:after{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' fill='%23fff' fill-rule='evenodd' viewBox='0 0 20 20'%3E%3Cpath d='M4 10a6 6 0 1 0 12 0 6 6 0 1 0-12 0m5-3a1 1 0 1 0 2 0 1 1 0 1 0-2 0m0 3a1 1 0 1 1 2 0v3a1 1 0 1 1-2 0'/%3E%3C/svg%3E")}}@media screen and (forced-colors:active) and (prefers-color-scheme:light){.maplibregl-ctrl-attrib.maplibregl-compact:after{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' fill-rule='evenodd' viewBox='0 0 20 20'%3E%3Cpath d='M4 10a6 6 0 1 0 12 0 6 6 0 1 0-12 0m5-3a1 1 0 1 0 2 0 1 1 0 1 0-2 0m0 3a1 1 0 1 1 2 0v3a1 1 0 1 1-2 0'/%3E%3C/svg%3E")}}.maplibregl-ctrl-attrib a{color:#000000bf;text-decoration:none}.maplibregl-ctrl-attrib a:hover{color:inherit;text-decoration:underline}.maplibregl-attrib-empty{display:none}.maplibregl-ctrl-scale{background-color:#ffffffbf;border:2px solid #333;border-top:#333;box-sizing:border-box;color:#333;font-size:10px;padding:0 5px}.maplibregl-popup{display:flex;left:0;pointer-events:none;position:absolute;top:0;will-change:transform}.maplibregl-popup-anchor-top,.maplibregl-popup-anchor-top-left,.maplibregl-popup-anchor-top-right{flex-direction:column}.maplibregl-popup-anchor-bottom,.maplibregl-popup-anchor-bottom-left,.maplibregl-popup-anchor-bottom-right{flex-direction:column-reverse}.maplibregl-popup-anchor-left{flex-direction:row}.maplibregl-popup-anchor-right{flex-direction:row-reverse}.maplibregl-popup-tip{border:10px solid transparent;height:0;width:0;z-index:1}.maplibregl-popup-anchor-top .maplibregl-popup-tip{align-self:center;border-bottom-color:#fff;border-top:none}.maplibregl-popup-anchor-top-left .maplibregl-popup-tip{align-self:flex-start;border-bottom-color:#fff;border-left:none;border-top:none}.maplibregl-popup-anchor-top-right .maplibregl-popup-tip{align-self:flex-end;border-bottom-color:#fff;border-right:none;border-top:none}.maplibregl-popup-anchor-bottom .maplibregl-popup-tip{align-self:center;border-bottom:none;border-top-color:#fff}.maplibregl-popup-anchor-bottom-left .maplibregl-popup-tip{align-self:flex-start;border-bottom:none;border-left:none;border-top-color:#fff}.maplibregl-popup-anchor-bottom-right .maplibregl-popup-tip{align-self:flex-end;border-bottom:none;border-right:none;border-top-color:#fff}.maplibregl-popup-anchor-left .maplibregl-popup-tip{align-self:center;border-left:none;border-right-color:#fff}.maplibregl-popup-anchor-right .maplibregl-popup-tip{align-self:center;border-left-color:#fff;border-right:none}.maplibregl-popup-close-button{background-color:transparent;border:0;border-radius:0 3px 0 0;cursor:pointer;position:absolute;right:0;top:0}.maplibregl-popup-close-button:hover{background-color:#0000000d}.maplibregl-popup-content{background:#fff;border-radius:3px;box-shadow:0 1px 2px #0000001a;padding:15px 10px;pointer-events:auto;position:relative}.maplibregl-popup-anchor-top-left .maplibregl-popup-content{border-top-left-radius:0}.maplibregl-popup-anchor-top-right .maplibregl-popup-content{border-top-right-radius:0}.maplibregl-popup-anchor-bottom-left .maplibregl-popup-content{border-bottom-left-radius:0}.maplibregl-popup-anchor-bottom-right .maplibregl-popup-content{border-bottom-right-radius:0}.maplibregl-popup-track-pointer{display:none}.maplibregl-popup-track-pointer *{pointer-events:none;-webkit-user-select:none;-moz-user-select:none;user-select:none}.maplibregl-map:hover .maplibregl-popup-track-pointer{display:flex}.maplibregl-map:active .maplibregl-popup-track-pointer{display:none}.maplibregl-marker{left:0;position:absolute;top:0;transition:opacity .2s;will-change:transform}.maplibregl-user-location-dot,.maplibregl-user-location-dot:before{background-color:#1da1f2;border-radius:50%;height:15px;width:15px}.maplibregl-user-location-dot:before{animation:maplibregl-user-location-dot-pulse 2s infinite;content:"";position:absolute}.maplibregl-user-location-dot:after{border:2px solid #fff;border-radius:50%;box-shadow:0 0 3px #00000059;box-sizing:border-box;content:"";height:19px;left:-2px;position:absolute;top:-2px;width:19px}@keyframes maplibregl-user-location-dot-pulse{0%{opacity:1;transform:scale(1)}70%{opacity:0;transform:scale(3)}to{opacity:0;transform:scale(1)}}.maplibregl-user-location-dot-stale{background-color:#aaa}.maplibregl-user-location-dot-stale:after{display:none}.maplibregl-user-location-accuracy-circle{background-color:#1da1f233;border-radius:100%;height:1px;width:1px}.maplibregl-crosshair,.maplibregl-crosshair .maplibregl-interactive,.maplibregl-crosshair .maplibregl-interactive:active{cursor:crosshair}.maplibregl-boxzoom{background:#fff;border:2px dotted #202020;height:0;left:0;opacity:.5;position:absolute;top:0;width:0}.maplibregl-cooperative-gesture-screen{align-items:center;background:#0006;color:#fff;display:flex;font-size:1.4em;inset:0;justify-content:center;line-height:1.2;opacity:0;padding:1rem;pointer-events:none;position:absolute;transition:opacity 1s ease 1s;z-index:99999}.maplibregl-cooperative-gesture-screen.maplibregl-show{opacity:1;transition:opacity .05s}.maplibregl-cooperative-gesture-screen .maplibregl-mobile-message{display:none}@media (hover:none),(width <= 480px){.maplibregl-cooperative-gesture-screen .maplibregl-desktop-message{display:none}.maplibregl-cooperative-gesture-screen .maplibregl-mobile-message{display:block}}.maplibregl-pseudo-fullscreen{height:100%!important;left:0!important;position:fixed!important;top:0!important;width:100%!important;z-index:99999} diff --git a/themes/intotheeast/css-compiled/post-form.css b/themes/intotheeast/css-compiled/post-form.css index ff1d200..b4d3354 100644 --- a/themes/intotheeast/css-compiled/post-form.css +++ b/themes/intotheeast/css-compiled/post-form.css @@ -1,4 +1,4 @@ -.CodeMirror{font-family:monospace;height:300px;color:#000;direction:ltr}.CodeMirror-lines{padding:4px 0}.CodeMirror pre.CodeMirror-line,.CodeMirror pre.CodeMirror-line-like{padding:0 4px}.CodeMirror-gutter-filler,.CodeMirror-scrollbar-filler{background-color:#fff}.CodeMirror-gutters{border-right:1px solid #ddd;background-color:#f7f7f7;white-space:nowrap}.CodeMirror-linenumber{padding:0 3px 0 5px;min-width:20px;text-align:right;color:#999;white-space:nowrap}.CodeMirror-guttermarker{color:#000}.CodeMirror-guttermarker-subtle{color:#999}.CodeMirror-cursor{border-left:1px solid #000;border-right:none;width:0}.CodeMirror div.CodeMirror-secondarycursor{border-left:1px solid silver}.cm-fat-cursor .CodeMirror-cursor{width:auto;border:0!important;background:#7e7}.cm-fat-cursor div.CodeMirror-cursors{z-index:1}.cm-fat-cursor .CodeMirror-line::selection,.cm-fat-cursor .CodeMirror-line>span::selection,.cm-fat-cursor .CodeMirror-line>span>span::selection{background:0 0}.cm-fat-cursor .CodeMirror-line::-moz-selection,.cm-fat-cursor .CodeMirror-line>span::-moz-selection,.cm-fat-cursor .CodeMirror-line>span>span::-moz-selection{background:0 0}.cm-fat-cursor{caret-color:transparent}@-moz-keyframes blink{50%{background-color:transparent}}@-webkit-keyframes blink{50%{background-color:transparent}}@keyframes blink{50%{background-color:transparent}}.cm-tab{display:inline-block;text-decoration:inherit}.CodeMirror-rulers{position:absolute;inset:-50px 0 0;overflow:hidden}.CodeMirror-ruler{border-left:1px solid #ccc;top:0;bottom:0;position:absolute}.cm-s-default .cm-header{color:#00f}.cm-s-default .cm-quote{color:#090}.cm-negative{color:#d44}.cm-positive{color:#292}.cm-header,.cm-strong{font-weight:700}.cm-em{font-style:italic}.cm-link{text-decoration:underline}.cm-strikethrough{text-decoration:line-through}.cm-s-default .cm-keyword{color:#708}.cm-s-default .cm-atom{color:#219}.cm-s-default .cm-number{color:#164}.cm-s-default .cm-def{color:#00f}.cm-s-default .cm-variable-2{color:#05a}.cm-s-default .cm-type,.cm-s-default .cm-variable-3{color:#085}.cm-s-default .cm-comment{color:#a50}.cm-s-default .cm-string{color:#a11}.cm-s-default .cm-string-2{color:#f50}.cm-s-default .cm-meta,.cm-s-default .cm-qualifier{color:#555}.cm-s-default .cm-builtin{color:#30a}.cm-s-default .cm-bracket{color:#997}.cm-s-default .cm-tag{color:#170}.cm-s-default .cm-attribute{color:#00c}.cm-s-default .cm-hr{color:#999}.cm-s-default .cm-link{color:#00c}.cm-s-default .cm-error,.cm-invalidchar{color:red}.CodeMirror-composing{border-bottom:2px solid}div.CodeMirror span.CodeMirror-matchingbracket{color:#0b0}div.CodeMirror span.CodeMirror-nonmatchingbracket{color:#a22}.CodeMirror-matchingtag{background:#ff96004d}.CodeMirror-activeline-background{background:#e8f2ff}.CodeMirror{position:relative;overflow:hidden;background:#fff}.CodeMirror-scroll{overflow:scroll!important;margin-bottom:-50px;margin-right:-50px;padding-bottom:50px;height:100%;outline:0;position:relative;z-index:0}.CodeMirror-sizer{position:relative;border-right:50px solid transparent}.CodeMirror-gutter-filler,.CodeMirror-hscrollbar,.CodeMirror-scrollbar-filler,.CodeMirror-vscrollbar{position:absolute;z-index:6;display:none;outline:0}.CodeMirror-vscrollbar{right:0;top:0;overflow-x:hidden;overflow-y:scroll}.CodeMirror-hscrollbar{bottom:0;left:0;overflow-y:hidden;overflow-x:scroll}.CodeMirror-scrollbar-filler{right:0;bottom:0}.CodeMirror-gutter-filler{left:0;bottom:0}.CodeMirror-gutters{position:absolute;left:0;top:0;min-height:100%;z-index:3}.CodeMirror-gutter{white-space:normal;height:100%;display:inline-block;vertical-align:top;margin-bottom:-50px}.CodeMirror-gutter-wrapper{position:absolute;z-index:4;background:0 0!important;border:none!important}.CodeMirror-gutter-background{position:absolute;top:0;bottom:0;z-index:4}.CodeMirror-gutter-elt{position:absolute;cursor:default;z-index:4}.CodeMirror-gutter-wrapper ::selection{background-color:transparent}.CodeMirror-gutter-wrapper ::-moz-selection{background-color:transparent}.CodeMirror-lines{cursor:text;min-height:1px}.CodeMirror pre.CodeMirror-line,.CodeMirror pre.CodeMirror-line-like{-moz-border-radius:0;-webkit-border-radius:0;border-radius:0;border-width:0;background:0 0;font-family:inherit;font-size:inherit;margin:0;white-space:pre;word-wrap:normal;line-height:inherit;color:inherit;z-index:2;position:relative;overflow:visible;-webkit-tap-highlight-color:transparent;-webkit-font-variant-ligatures:contextual;font-variant-ligatures:contextual}.CodeMirror-wrap pre.CodeMirror-line,.CodeMirror-wrap pre.CodeMirror-line-like{word-wrap:break-word;white-space:pre-wrap;word-break:normal}.CodeMirror-linebackground{position:absolute;inset:0;z-index:0}.CodeMirror-linewidget{position:relative;z-index:2;padding:.1px}.CodeMirror-code{outline:0}.CodeMirror-gutter,.CodeMirror-gutters,.CodeMirror-linenumber,.CodeMirror-scroll,.CodeMirror-sizer{-moz-box-sizing:content-box;box-sizing:content-box}.CodeMirror-measure{position:absolute;width:100%;height:0;overflow:hidden;visibility:hidden}.CodeMirror-cursor{position:absolute;pointer-events:none}.CodeMirror-measure pre{position:static}div.CodeMirror-cursors{visibility:hidden;position:relative;z-index:3}div.CodeMirror-dragcursors,.CodeMirror-focused div.CodeMirror-cursors{visibility:visible}.CodeMirror-selected{background:#d9d9d9}.CodeMirror-focused .CodeMirror-selected{background:#d7d4f0}.CodeMirror-crosshair{cursor:crosshair}.CodeMirror-line::selection,.CodeMirror-line>span::selection,.CodeMirror-line>span>span::selection{background:#d7d4f0}.CodeMirror-line::-moz-selection,.CodeMirror-line>span::-moz-selection,.CodeMirror-line>span>span::-moz-selection{background:#d7d4f0}.cm-searching{background-color:#ffa;background-color:#ff06}.cm-force-border{padding-right:.1px}@media print{.CodeMirror div.CodeMirror-cursors{visibility:hidden}}.cm-tab-wrap-hack:after{content:""}span.CodeMirror-selectedtext{background:0 0}.EasyMDEContainer{display:block}.CodeMirror-rtl pre{direction:rtl}.EasyMDEContainer.sided--no-fullscreen{display:flex;flex-direction:row;flex-wrap:wrap}.EasyMDEContainer .CodeMirror{box-sizing:border-box;height:auto;border:1px solid #ced4da;border-bottom-left-radius:4px;border-bottom-right-radius:4px;padding:10px;font:inherit;z-index:0;word-wrap:break-word}.EasyMDEContainer .CodeMirror-scroll{cursor:text}.EasyMDEContainer .CodeMirror-fullscreen{background:#fff;position:fixed!important;inset:50px 0 0;height:auto;z-index:8;border-right:none!important;border-bottom-right-radius:0!important}.EasyMDEContainer .CodeMirror-sided{width:50%!important}.EasyMDEContainer.sided--no-fullscreen .CodeMirror-sided{border-right:none!important;border-bottom-right-radius:0;position:relative;flex:1 1 auto}.EasyMDEContainer .CodeMirror-placeholder{opacity:.5}.EasyMDEContainer .CodeMirror-focused .CodeMirror-selected{background:#d9d9d9}.editor-toolbar{position:relative;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;-o-user-select:none;user-select:none;padding:9px 10px;border-top:1px solid #ced4da;border-left:1px solid #ced4da;border-right:1px solid #ced4da;border-top-left-radius:4px;border-top-right-radius:4px}.editor-toolbar.fullscreen{width:100%;height:50px;padding-top:10px;padding-bottom:10px;box-sizing:border-box;background:#fff;border:0;position:fixed;top:0;left:0;opacity:1;z-index:9}.editor-toolbar.fullscreen:before{width:20px;height:50px;background:-moz-linear-gradient(left,#fff 0,rgba(255,255,255,0) 100%);background:-webkit-gradient(linear,left top,right top,color-stop(0,#fff),color-stop(100%,rgba(255,255,255,0)));background:-webkit-linear-gradient(left,#fff 0,rgba(255,255,255,0) 100%);background:-o-linear-gradient(left,#fff 0,rgba(255,255,255,0) 100%);background:-ms-linear-gradient(left,#fff 0,rgba(255,255,255,0) 100%);background:linear-gradient(to right,#fff 0,#fff0);position:fixed;top:0;left:0;margin:0;padding:0}.editor-toolbar.fullscreen:after{width:20px;height:50px;background:-moz-linear-gradient(left,rgba(255,255,255,0) 0,#fff 100%);background:-webkit-gradient(linear,left top,right top,color-stop(0,rgba(255,255,255,0)),color-stop(100%,#fff));background:-webkit-linear-gradient(left,rgba(255,255,255,0) 0,#fff 100%);background:-o-linear-gradient(left,rgba(255,255,255,0) 0,#fff 100%);background:-ms-linear-gradient(left,rgba(255,255,255,0) 0,#fff 100%);background:linear-gradient(to right,#fff0 0,#fff);position:fixed;top:0;right:0;margin:0;padding:0}.EasyMDEContainer.sided--no-fullscreen .editor-toolbar{width:100%}.editor-toolbar .easymde-dropdown,.editor-toolbar button{background:0 0;display:inline-block;text-align:center;text-decoration:none!important;height:30px;margin:0;padding:0;border:1px solid transparent;border-radius:3px;cursor:pointer}.editor-toolbar button{font-weight:700;min-width:30px;padding:0 6px;white-space:nowrap}.editor-toolbar button.active,.editor-toolbar button:hover{background:#fcfcfc;border-color:#95a5a6}.editor-toolbar i.separator{display:inline-block;width:0;border-left:1px solid #d9d9d9;border-right:1px solid #fff;color:transparent;text-indent:-10px;margin:0 6px}.editor-toolbar button:after{font-family:Arial,Helvetica Neue,Helvetica,sans-serif;font-size:65%;vertical-align:text-bottom;position:relative;top:2px}.editor-toolbar button.heading-1:after{content:"1"}.editor-toolbar button.heading-2:after{content:"2"}.editor-toolbar button.heading-3:after{content:"3"}.editor-toolbar button.heading-bigger:after{content:"\25b2"}.editor-toolbar button.heading-smaller:after{content:"\25bc"}.editor-toolbar.disabled-for-preview button:not(.no-disable){opacity:.6;pointer-events:none}@media only screen and (max-width:700px){.editor-toolbar i.no-mobile{display:none}}.editor-statusbar{padding:8px 10px;font-size:12px;color:#959694;text-align:right}.EasyMDEContainer.sided--no-fullscreen .editor-statusbar{width:100%}.editor-statusbar span{display:inline-block;min-width:4em;margin-left:1em}.editor-statusbar .lines:before{content:"lines: "}.editor-statusbar .words:before{content:"words: "}.editor-statusbar .characters:before{content:"characters: "}.editor-preview-full{position:absolute;width:100%;height:100%;top:0;left:0;z-index:7;overflow:auto;display:none;box-sizing:border-box}.editor-preview-side{position:fixed;bottom:0;width:50%;top:50px;right:0;z-index:9;overflow:auto;display:none;box-sizing:border-box;border:1px solid #ddd;word-wrap:break-word}.editor-preview-active-side{display:block}.EasyMDEContainer.sided--no-fullscreen .editor-preview-active-side{flex:1 1 auto;height:auto;position:static}.editor-preview-active{display:block}.editor-preview{padding:10px;background:#fafafa}.editor-preview>p{margin-top:0}.editor-preview pre{background:#eee;margin-bottom:10px}.editor-preview table td,.editor-preview table th{border:1px solid #ddd;padding:5px}.cm-s-easymde .cm-tag{color:#63a35c}.cm-s-easymde .cm-attribute{color:#795da3}.cm-s-easymde .cm-string{color:#183691}.cm-s-easymde .cm-header-1{font-size:calc(1.375rem + 1.5vw)}.cm-s-easymde .cm-header-2{font-size:calc(1.325rem + .9vw)}.cm-s-easymde .cm-header-3{font-size:calc(1.3rem + .6vw)}.cm-s-easymde .cm-header-4{font-size:calc(1.275rem + .3vw)}.cm-s-easymde .cm-header-5{font-size:1.25rem}.cm-s-easymde .cm-header-6{font-size:1rem}.cm-s-easymde .cm-header-1,.cm-s-easymde .cm-header-2,.cm-s-easymde .cm-header-3,.cm-s-easymde .cm-header-4,.cm-s-easymde .cm-header-5,.cm-s-easymde .cm-header-6{margin-bottom:.5rem;line-height:1.2}.cm-s-easymde .cm-comment{background:#0000000d;border-radius:2px}.cm-s-easymde .cm-link{color:#7f8c8d}.cm-s-easymde .cm-url{color:#aab2b3}.cm-s-easymde .cm-quote{color:#7f8c8d;font-style:italic}.editor-toolbar .easymde-dropdown{position:relative;background:linear-gradient(to bottom right,#fff 0 84%,#333 50% 100%);border-radius:0;border:1px solid #fff}.editor-toolbar .easymde-dropdown:hover{background:linear-gradient(to bottom right,#fff 0 84%,#333 50% 100%)}.easymde-dropdown-content{display:block;visibility:hidden;position:absolute;background-color:#f9f9f9;box-shadow:0 8px 16px #0003;padding:8px;z-index:2;top:30px}.easymde-dropdown:active .easymde-dropdown-content,.easymde-dropdown:focus .easymde-dropdown-content,.easymde-dropdown:focus-within .easymde-dropdown-content{visibility:visible}.easymde-dropdown-content button{display:block}span[data-img-src]:after{content:"";background-image:var(--bg-image);display:block;max-height:100%;max-width:100%;background-size:contain;height:0;padding-top:var(--height);width:var(--width);background-repeat:no-repeat}.CodeMirror .cm-spell-error:not(.cm-url):not(.cm-comment):not(.cm-tag):not(.cm-word){background:#ff000026}.maplibregl-map{font:12px/20px Helvetica Neue,Arial,Helvetica,sans-serif;overflow:hidden;position:relative;-webkit-tap-highlight-color:rgb(0 0 0/0)}.maplibregl-canvas{left:0;position:absolute;top:0}.maplibregl-map:fullscreen{height:100%;width:100%}.maplibregl-ctrl-group button.maplibregl-ctrl-compass{touch-action:none}.maplibregl-canvas-container.maplibregl-interactive,.maplibregl-ctrl-group button.maplibregl-ctrl-compass{cursor:grab;-webkit-user-select:none;-moz-user-select:none;user-select:none}.maplibregl-canvas-container.maplibregl-interactive.maplibregl-track-pointer{cursor:pointer}.maplibregl-canvas-container.maplibregl-interactive:active,.maplibregl-ctrl-group button.maplibregl-ctrl-compass:active{cursor:grabbing}.maplibregl-canvas-container.maplibregl-touch-zoom-rotate,.maplibregl-canvas-container.maplibregl-touch-zoom-rotate .maplibregl-canvas{touch-action:pan-x pan-y}.maplibregl-canvas-container.maplibregl-touch-drag-pan,.maplibregl-canvas-container.maplibregl-touch-drag-pan .maplibregl-canvas{touch-action:pinch-zoom}.maplibregl-canvas-container.maplibregl-touch-zoom-rotate.maplibregl-touch-drag-pan,.maplibregl-canvas-container.maplibregl-touch-zoom-rotate.maplibregl-touch-drag-pan .maplibregl-canvas{touch-action:none}.maplibregl-canvas-container.maplibregl-touch-drag-pan.maplibregl-cooperative-gestures,.maplibregl-canvas-container.maplibregl-touch-drag-pan.maplibregl-cooperative-gestures .maplibregl-canvas{touch-action:pan-x pan-y}.maplibregl-ctrl-bottom-left,.maplibregl-ctrl-bottom-right,.maplibregl-ctrl-top-left,.maplibregl-ctrl-top-right{pointer-events:none;position:absolute;z-index:2}.maplibregl-ctrl-top-left{left:0;top:0}.maplibregl-ctrl-top-right{right:0;top:0}.maplibregl-ctrl-bottom-left{bottom:0;left:0}.maplibregl-ctrl-bottom-right{bottom:0;right:0}.maplibregl-ctrl{clear:both;pointer-events:auto;transform:translate(0)}.maplibregl-ctrl-top-left .maplibregl-ctrl{float:left;margin:10px 0 0 10px}.maplibregl-ctrl-top-right .maplibregl-ctrl{float:right;margin:10px 10px 0 0}.maplibregl-ctrl-bottom-left .maplibregl-ctrl{float:left;margin:0 0 10px 10px}.maplibregl-ctrl-bottom-right .maplibregl-ctrl{float:right;margin:0 10px 10px 0}.maplibregl-ctrl-group{background:#fff;border-radius:4px}.maplibregl-ctrl-group:not(:empty){box-shadow:0 0 0 2px #0000001a}@media (forced-colors:active){.maplibregl-ctrl-group:not(:empty){box-shadow:0 0 0 2px ButtonText}}.maplibregl-ctrl-group button{background-color:transparent;border:0;box-sizing:border-box;cursor:pointer;display:block;height:29px;outline:none;padding:0;width:29px}.maplibregl-ctrl-group button+button{border-top:1px solid #ddd}.maplibregl-ctrl button .maplibregl-ctrl-icon{background-position:50%;background-repeat:no-repeat;display:block;height:100%;width:100%}@media (forced-colors:active){.maplibregl-ctrl-icon{background-color:transparent}.maplibregl-ctrl-group button+button{border-top:1px solid ButtonText}}.maplibregl-ctrl button::-moz-focus-inner{border:0;padding:0}.maplibregl-ctrl-attrib-button:focus,.maplibregl-ctrl-group button:focus{box-shadow:0 0 2px 2px #0096ff}.maplibregl-ctrl button:disabled{cursor:not-allowed}.maplibregl-ctrl button:disabled .maplibregl-ctrl-icon{opacity:.25}.maplibregl-ctrl button:not(:disabled):hover{background-color:#0000000d}.maplibregl-ctrl-group button:focus:focus-visible{box-shadow:0 0 2px 2px #0096ff}.maplibregl-ctrl-group button:focus:not(:focus-visible){box-shadow:none}.maplibregl-ctrl-group button:focus:first-child{border-radius:4px 4px 0 0}.maplibregl-ctrl-group button:focus:last-child{border-radius:0 0 4px 4px}.maplibregl-ctrl-group button:focus:only-child{border-radius:inherit}.maplibregl-ctrl button.maplibregl-ctrl-zoom-out .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' fill='%23333' viewBox='0 0 29 29'%3E%3Cpath d='M10 13c-.75 0-1.5.75-1.5 1.5S9.25 16 10 16h9c.75 0 1.5-.75 1.5-1.5S19.75 13 19 13z'/%3E%3C/svg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-zoom-in .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' fill='%23333' viewBox='0 0 29 29'%3E%3Cpath d='M14.5 8.5c-.75 0-1.5.75-1.5 1.5v3h-3c-.75 0-1.5.75-1.5 1.5S9.25 16 10 16h3v3c0 .75.75 1.5 1.5 1.5S16 19.75 16 19v-3h3c.75 0 1.5-.75 1.5-1.5S19.75 13 19 13h-3v-3c0-.75-.75-1.5-1.5-1.5'/%3E%3C/svg%3E")}@media (forced-colors:active){.maplibregl-ctrl button.maplibregl-ctrl-zoom-out .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' fill='%23fff' viewBox='0 0 29 29'%3E%3Cpath d='M10 13c-.75 0-1.5.75-1.5 1.5S9.25 16 10 16h9c.75 0 1.5-.75 1.5-1.5S19.75 13 19 13z'/%3E%3C/svg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-zoom-in .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' fill='%23fff' viewBox='0 0 29 29'%3E%3Cpath d='M14.5 8.5c-.75 0-1.5.75-1.5 1.5v3h-3c-.75 0-1.5.75-1.5 1.5S9.25 16 10 16h3v3c0 .75.75 1.5 1.5 1.5S16 19.75 16 19v-3h3c.75 0 1.5-.75 1.5-1.5S19.75 13 19 13h-3v-3c0-.75-.75-1.5-1.5-1.5'/%3E%3C/svg%3E")}}@media (forced-colors:active) and (prefers-color-scheme:light){.maplibregl-ctrl button.maplibregl-ctrl-zoom-out .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' viewBox='0 0 29 29'%3E%3Cpath d='M10 13c-.75 0-1.5.75-1.5 1.5S9.25 16 10 16h9c.75 0 1.5-.75 1.5-1.5S19.75 13 19 13z'/%3E%3C/svg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-zoom-in .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' viewBox='0 0 29 29'%3E%3Cpath d='M14.5 8.5c-.75 0-1.5.75-1.5 1.5v3h-3c-.75 0-1.5.75-1.5 1.5S9.25 16 10 16h3v3c0 .75.75 1.5 1.5 1.5S16 19.75 16 19v-3h3c.75 0 1.5-.75 1.5-1.5S19.75 13 19 13h-3v-3c0-.75-.75-1.5-1.5-1.5'/%3E%3C/svg%3E")}}.maplibregl-ctrl button.maplibregl-ctrl-fullscreen .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' fill='%23333' viewBox='0 0 29 29'%3E%3Cpath d='M24 16v5.5c0 1.75-.75 2.5-2.5 2.5H16v-1l3-1.5-4-5.5 1-1 5.5 4 1.5-3zM6 16l1.5 3 5.5-4 1 1-4 5.5 3 1.5v1H7.5C5.75 24 5 23.25 5 21.5V16zm7-11v1l-3 1.5 4 5.5-1 1-5.5-4L6 13H5V7.5C5 5.75 5.75 5 7.5 5zm11 2.5c0-1.75-.75-2.5-2.5-2.5H16v1l3 1.5-4 5.5 1 1 5.5-4 1.5 3h1z'/%3E%3C/svg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-shrink .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' viewBox='0 0 29 29'%3E%3Cpath d='M18.5 16c-1.75 0-2.5.75-2.5 2.5V24h1l1.5-3 5.5 4 1-1-4-5.5 3-1.5v-1zM13 18.5c0-1.75-.75-2.5-2.5-2.5H5v1l3 1.5L4 24l1 1 5.5-4 1.5 3h1zm3-8c0 1.75.75 2.5 2.5 2.5H24v-1l-3-1.5L25 5l-1-1-5.5 4L17 5h-1zM10.5 13c1.75 0 2.5-.75 2.5-2.5V5h-1l-1.5 3L5 4 4 5l4 5.5L5 12v1z'/%3E%3C/svg%3E")}@media (forced-colors:active){.maplibregl-ctrl button.maplibregl-ctrl-fullscreen .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' fill='%23fff' viewBox='0 0 29 29'%3E%3Cpath d='M24 16v5.5c0 1.75-.75 2.5-2.5 2.5H16v-1l3-1.5-4-5.5 1-1 5.5 4 1.5-3zM6 16l1.5 3 5.5-4 1 1-4 5.5 3 1.5v1H7.5C5.75 24 5 23.25 5 21.5V16zm7-11v1l-3 1.5 4 5.5-1 1-5.5-4L6 13H5V7.5C5 5.75 5.75 5 7.5 5zm11 2.5c0-1.75-.75-2.5-2.5-2.5H16v1l3 1.5-4 5.5 1 1 5.5-4 1.5 3h1z'/%3E%3C/svg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-shrink .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' fill='%23fff' viewBox='0 0 29 29'%3E%3Cpath d='M18.5 16c-1.75 0-2.5.75-2.5 2.5V24h1l1.5-3 5.5 4 1-1-4-5.5 3-1.5v-1zM13 18.5c0-1.75-.75-2.5-2.5-2.5H5v1l3 1.5L4 24l1 1 5.5-4 1.5 3h1zm3-8c0 1.75.75 2.5 2.5 2.5H24v-1l-3-1.5L25 5l-1-1-5.5 4L17 5h-1zM10.5 13c1.75 0 2.5-.75 2.5-2.5V5h-1l-1.5 3L5 4 4 5l4 5.5L5 12v1z'/%3E%3C/svg%3E")}}@media (forced-colors:active) and (prefers-color-scheme:light){.maplibregl-ctrl button.maplibregl-ctrl-fullscreen .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' viewBox='0 0 29 29'%3E%3Cpath d='M24 16v5.5c0 1.75-.75 2.5-2.5 2.5H16v-1l3-1.5-4-5.5 1-1 5.5 4 1.5-3zM6 16l1.5 3 5.5-4 1 1-4 5.5 3 1.5v1H7.5C5.75 24 5 23.25 5 21.5V16zm7-11v1l-3 1.5 4 5.5-1 1-5.5-4L6 13H5V7.5C5 5.75 5.75 5 7.5 5zm11 2.5c0-1.75-.75-2.5-2.5-2.5H16v1l3 1.5-4 5.5 1 1 5.5-4 1.5 3h1z'/%3E%3C/svg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-shrink .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' viewBox='0 0 29 29'%3E%3Cpath d='M18.5 16c-1.75 0-2.5.75-2.5 2.5V24h1l1.5-3 5.5 4 1-1-4-5.5 3-1.5v-1zM13 18.5c0-1.75-.75-2.5-2.5-2.5H5v1l3 1.5L4 24l1 1 5.5-4 1.5 3h1zm3-8c0 1.75.75 2.5 2.5 2.5H24v-1l-3-1.5L25 5l-1-1-5.5 4L17 5h-1zM10.5 13c1.75 0 2.5-.75 2.5-2.5V5h-1l-1.5 3L5 4 4 5l4 5.5L5 12v1z'/%3E%3C/svg%3E")}}.maplibregl-ctrl button.maplibregl-ctrl-compass .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' fill='%23333' viewBox='0 0 29 29'%3E%3Cpath d='m10.5 14 4-8 4 8z'/%3E%3Cpath fill='%23ccc' d='m10.5 16 4 8 4-8z'/%3E%3C/svg%3E")}@media (forced-colors:active){.maplibregl-ctrl button.maplibregl-ctrl-compass .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' fill='%23fff' viewBox='0 0 29 29'%3E%3Cpath d='m10.5 14 4-8 4 8z'/%3E%3Cpath fill='%23ccc' d='m10.5 16 4 8 4-8z'/%3E%3C/svg%3E")}}@media (forced-colors:active) and (prefers-color-scheme:light){.maplibregl-ctrl button.maplibregl-ctrl-compass .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' viewBox='0 0 29 29'%3E%3Cpath d='m10.5 14 4-8 4 8z'/%3E%3Cpath fill='%23ccc' d='m10.5 16 4 8 4-8z'/%3E%3C/svg%3E")}}.maplibregl-ctrl button.maplibregl-ctrl-terrain .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='22' height='22' fill='%23333' viewBox='0 0 22 22'%3E%3Cpath d='m1.754 13.406 4.453-4.851 3.09 3.09 3.281 3.277.969-.969-3.309-3.312 3.844-4.121 6.148 6.886h1.082v-.855l-7.207-8.07-4.84 5.187L6.169 6.57l-5.48 5.965v.871ZM.688 16.844h20.625v1.375H.688Zm0 0'/%3E%3C/svg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-terrain-enabled .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='22' height='22' fill='%2333b5e5' viewBox='0 0 22 22'%3E%3Cpath d='m1.754 13.406 4.453-4.851 3.09 3.09 3.281 3.277.969-.969-3.309-3.312 3.844-4.121 6.148 6.886h1.082v-.855l-7.207-8.07-4.84 5.187L6.169 6.57l-5.48 5.965v.871ZM.688 16.844h20.625v1.375H.688Zm0 0'/%3E%3C/svg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-geolocate .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' fill='%23333' viewBox='0 0 20 20'%3E%3Cpath d='M10 4C9 4 9 5 9 5v.1A5 5 0 0 0 5.1 9H5s-1 0-1 1 1 1 1 1h.1A5 5 0 0 0 9 14.9v.1s0 1 1 1 1-1 1-1v-.1a5 5 0 0 0 3.9-3.9h.1s1 0 1-1-1-1-1-1h-.1A5 5 0 0 0 11 5.1V5s0-1-1-1m0 2.5a3.5 3.5 0 1 1 0 7 3.5 3.5 0 1 1 0-7'/%3E%3Ccircle cx='10' cy='10' r='2'/%3E%3C/svg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-geolocate:disabled .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' fill='%23aaa' viewBox='0 0 20 20'%3E%3Cpath d='M10 4C9 4 9 5 9 5v.1A5 5 0 0 0 5.1 9H5s-1 0-1 1 1 1 1 1h.1A5 5 0 0 0 9 14.9v.1s0 1 1 1 1-1 1-1v-.1a5 5 0 0 0 3.9-3.9h.1s1 0 1-1-1-1-1-1h-.1A5 5 0 0 0 11 5.1V5s0-1-1-1m0 2.5a3.5 3.5 0 1 1 0 7 3.5 3.5 0 1 1 0-7'/%3E%3Ccircle cx='10' cy='10' r='2'/%3E%3Cpath fill='red' d='m14 5 1 1-9 9-1-1z'/%3E%3C/svg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-geolocate.maplibregl-ctrl-geolocate-active .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' fill='%2333b5e5' viewBox='0 0 20 20'%3E%3Cpath d='M10 4C9 4 9 5 9 5v.1A5 5 0 0 0 5.1 9H5s-1 0-1 1 1 1 1 1h.1A5 5 0 0 0 9 14.9v.1s0 1 1 1 1-1 1-1v-.1a5 5 0 0 0 3.9-3.9h.1s1 0 1-1-1-1-1-1h-.1A5 5 0 0 0 11 5.1V5s0-1-1-1m0 2.5a3.5 3.5 0 1 1 0 7 3.5 3.5 0 1 1 0-7'/%3E%3Ccircle cx='10' cy='10' r='2'/%3E%3C/svg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-geolocate.maplibregl-ctrl-geolocate-active-error .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' fill='%23e58978' viewBox='0 0 20 20'%3E%3Cpath d='M10 4C9 4 9 5 9 5v.1A5 5 0 0 0 5.1 9H5s-1 0-1 1 1 1 1 1h.1A5 5 0 0 0 9 14.9v.1s0 1 1 1 1-1 1-1v-.1a5 5 0 0 0 3.9-3.9h.1s1 0 1-1-1-1-1-1h-.1A5 5 0 0 0 11 5.1V5s0-1-1-1m0 2.5a3.5 3.5 0 1 1 0 7 3.5 3.5 0 1 1 0-7'/%3E%3Ccircle cx='10' cy='10' r='2'/%3E%3C/svg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-geolocate.maplibregl-ctrl-geolocate-background .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' fill='%2333b5e5' viewBox='0 0 20 20'%3E%3Cpath d='M10 4C9 4 9 5 9 5v.1A5 5 0 0 0 5.1 9H5s-1 0-1 1 1 1 1 1h.1A5 5 0 0 0 9 14.9v.1s0 1 1 1 1-1 1-1v-.1a5 5 0 0 0 3.9-3.9h.1s1 0 1-1-1-1-1-1h-.1A5 5 0 0 0 11 5.1V5s0-1-1-1m0 2.5a3.5 3.5 0 1 1 0 7 3.5 3.5 0 1 1 0-7'/%3E%3C/svg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-geolocate.maplibregl-ctrl-geolocate-background-error .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' fill='%23e54e33' viewBox='0 0 20 20'%3E%3Cpath d='M10 4C9 4 9 5 9 5v.1A5 5 0 0 0 5.1 9H5s-1 0-1 1 1 1 1 1h.1A5 5 0 0 0 9 14.9v.1s0 1 1 1 1-1 1-1v-.1a5 5 0 0 0 3.9-3.9h.1s1 0 1-1-1-1-1-1h-.1A5 5 0 0 0 11 5.1V5s0-1-1-1m0 2.5a3.5 3.5 0 1 1 0 7 3.5 3.5 0 1 1 0-7'/%3E%3C/svg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-geolocate.maplibregl-ctrl-geolocate-waiting .maplibregl-ctrl-icon{animation:maplibregl-spin 2s linear infinite}@media (forced-colors:active){.maplibregl-ctrl button.maplibregl-ctrl-geolocate .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' fill='%23fff' viewBox='0 0 20 20'%3E%3Cpath d='M10 4C9 4 9 5 9 5v.1A5 5 0 0 0 5.1 9H5s-1 0-1 1 1 1 1 1h.1A5 5 0 0 0 9 14.9v.1s0 1 1 1 1-1 1-1v-.1a5 5 0 0 0 3.9-3.9h.1s1 0 1-1-1-1-1-1h-.1A5 5 0 0 0 11 5.1V5s0-1-1-1m0 2.5a3.5 3.5 0 1 1 0 7 3.5 3.5 0 1 1 0-7'/%3E%3Ccircle cx='10' cy='10' r='2'/%3E%3C/svg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-geolocate:disabled .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' fill='%23999' viewBox='0 0 20 20'%3E%3Cpath d='M10 4C9 4 9 5 9 5v.1A5 5 0 0 0 5.1 9H5s-1 0-1 1 1 1 1 1h.1A5 5 0 0 0 9 14.9v.1s0 1 1 1 1-1 1-1v-.1a5 5 0 0 0 3.9-3.9h.1s1 0 1-1-1-1-1-1h-.1A5 5 0 0 0 11 5.1V5s0-1-1-1m0 2.5a3.5 3.5 0 1 1 0 7 3.5 3.5 0 1 1 0-7'/%3E%3Ccircle cx='10' cy='10' r='2'/%3E%3Cpath fill='red' d='m14 5 1 1-9 9-1-1z'/%3E%3C/svg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-geolocate.maplibregl-ctrl-geolocate-active .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' fill='%2333b5e5' viewBox='0 0 20 20'%3E%3Cpath d='M10 4C9 4 9 5 9 5v.1A5 5 0 0 0 5.1 9H5s-1 0-1 1 1 1 1 1h.1A5 5 0 0 0 9 14.9v.1s0 1 1 1 1-1 1-1v-.1a5 5 0 0 0 3.9-3.9h.1s1 0 1-1-1-1-1-1h-.1A5 5 0 0 0 11 5.1V5s0-1-1-1m0 2.5a3.5 3.5 0 1 1 0 7 3.5 3.5 0 1 1 0-7'/%3E%3Ccircle cx='10' cy='10' r='2'/%3E%3C/svg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-geolocate.maplibregl-ctrl-geolocate-active-error .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' fill='%23e58978' viewBox='0 0 20 20'%3E%3Cpath d='M10 4C9 4 9 5 9 5v.1A5 5 0 0 0 5.1 9H5s-1 0-1 1 1 1 1 1h.1A5 5 0 0 0 9 14.9v.1s0 1 1 1 1-1 1-1v-.1a5 5 0 0 0 3.9-3.9h.1s1 0 1-1-1-1-1-1h-.1A5 5 0 0 0 11 5.1V5s0-1-1-1m0 2.5a3.5 3.5 0 1 1 0 7 3.5 3.5 0 1 1 0-7'/%3E%3Ccircle cx='10' cy='10' r='2'/%3E%3C/svg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-geolocate.maplibregl-ctrl-geolocate-background .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' fill='%2333b5e5' viewBox='0 0 20 20'%3E%3Cpath d='M10 4C9 4 9 5 9 5v.1A5 5 0 0 0 5.1 9H5s-1 0-1 1 1 1 1 1h.1A5 5 0 0 0 9 14.9v.1s0 1 1 1 1-1 1-1v-.1a5 5 0 0 0 3.9-3.9h.1s1 0 1-1-1-1-1-1h-.1A5 5 0 0 0 11 5.1V5s0-1-1-1m0 2.5a3.5 3.5 0 1 1 0 7 3.5 3.5 0 1 1 0-7'/%3E%3C/svg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-geolocate.maplibregl-ctrl-geolocate-background-error .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' fill='%23e54e33' viewBox='0 0 20 20'%3E%3Cpath d='M10 4C9 4 9 5 9 5v.1A5 5 0 0 0 5.1 9H5s-1 0-1 1 1 1 1 1h.1A5 5 0 0 0 9 14.9v.1s0 1 1 1 1-1 1-1v-.1a5 5 0 0 0 3.9-3.9h.1s1 0 1-1-1-1-1-1h-.1A5 5 0 0 0 11 5.1V5s0-1-1-1m0 2.5a3.5 3.5 0 1 1 0 7 3.5 3.5 0 1 1 0-7'/%3E%3C/svg%3E")}}@media (forced-colors:active) and (prefers-color-scheme:light){.maplibregl-ctrl button.maplibregl-ctrl-geolocate .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' viewBox='0 0 20 20'%3E%3Cpath d='M10 4C9 4 9 5 9 5v.1A5 5 0 0 0 5.1 9H5s-1 0-1 1 1 1 1 1h.1A5 5 0 0 0 9 14.9v.1s0 1 1 1 1-1 1-1v-.1a5 5 0 0 0 3.9-3.9h.1s1 0 1-1-1-1-1-1h-.1A5 5 0 0 0 11 5.1V5s0-1-1-1m0 2.5a3.5 3.5 0 1 1 0 7 3.5 3.5 0 1 1 0-7'/%3E%3Ccircle cx='10' cy='10' r='2'/%3E%3C/svg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-geolocate:disabled .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' fill='%23666' viewBox='0 0 20 20'%3E%3Cpath d='M10 4C9 4 9 5 9 5v.1A5 5 0 0 0 5.1 9H5s-1 0-1 1 1 1 1 1h.1A5 5 0 0 0 9 14.9v.1s0 1 1 1 1-1 1-1v-.1a5 5 0 0 0 3.9-3.9h.1s1 0 1-1-1-1-1-1h-.1A5 5 0 0 0 11 5.1V5s0-1-1-1m0 2.5a3.5 3.5 0 1 1 0 7 3.5 3.5 0 1 1 0-7'/%3E%3Ccircle cx='10' cy='10' r='2'/%3E%3Cpath fill='red' d='m14 5 1 1-9 9-1-1z'/%3E%3C/svg%3E")}}@keyframes maplibregl-spin{0%{transform:rotate(0)}to{transform:rotate(1turn)}}a.maplibregl-ctrl-logo{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='88' height='23' fill='none'%3E%3Cpath fill='%23000' fill-opacity='.4' fill-rule='evenodd' d='M17.408 16.796h-1.827l2.501-12.095h.198l3.324 6.533.988 2.19.988-2.19 3.258-6.533h.181l2.6 12.095h-1.81l-1.218-5.644-.362-1.71-.658 1.71-2.929 5.644h-.098l-2.914-5.644-.757-1.71-.345 1.71zm1.958-3.42-.726 3.663a1.255 1.255 0 0 1-1.232 1.011h-1.827a1.255 1.255 0 0 1-1.229-1.509l2.501-12.095a1.255 1.255 0 0 1 1.23-1.001h.197a1.25 1.25 0 0 1 1.12.685l3.19 6.273 3.125-6.263a1.25 1.25 0 0 1 1.123-.695h.181a1.255 1.255 0 0 1 1.227.991l1.443 6.71a5 5 0 0 1 .314-.787l.009-.016a4.6 4.6 0 0 1 1.777-1.887c.782-.46 1.668-.667 2.611-.667a4.6 4.6 0 0 1 1.7.32l.306.134c.21-.16.474-.256.759-.256h1.694a1.255 1.255 0 0 1 1.212.925 1.255 1.255 0 0 1 1.212-.925h1.711c.284 0 .545.094.755.252.613-.3 1.312-.45 2.075-.45 1.356 0 2.557.445 3.482 1.4q.47.48.763 1.064V4.701a1.255 1.255 0 0 1 1.255-1.255h1.86A1.255 1.255 0 0 1 54.44 4.7v9.194h2.217c.19 0 .37.043.532.118v-4.77c0-.356.147-.678.385-.906a2.42 2.42 0 0 1-.682-1.71c0-.665.267-1.253.735-1.7a2.45 2.45 0 0 1 1.722-.674 2.43 2.43 0 0 1 1.705.675q.318.302.504.683V4.7a1.255 1.255 0 0 1 1.255-1.255h1.744A1.255 1.255 0 0 1 65.812 4.7v3.335a4.8 4.8 0 0 1 1.526-.246c.938 0 1.817.214 2.59.69a4.47 4.47 0 0 1 1.67 1.743v-.98a1.255 1.255 0 0 1 1.256-1.256h1.777c.233 0 .451.064.639.174a3.4 3.4 0 0 1 1.567-.372c.346 0 .861.02 1.285.232a1.25 1.25 0 0 1 .689 1.004 4.7 4.7 0 0 1 .853-.588c.795-.44 1.675-.647 2.61-.647 1.385 0 2.65.39 3.525 1.396.836.938 1.168 2.173 1.168 3.528q-.001.515-.056 1.051a1.255 1.255 0 0 1-.947 1.09l.408.952a1.255 1.255 0 0 1-.477 1.552c-.418.268-.92.463-1.458.612-.613.171-1.304.244-2.049.244-1.06 0-2.043-.207-2.886-.698l-.015-.008c-.798-.48-1.419-1.135-1.818-1.963l-.004-.008a5.8 5.8 0 0 1-.548-2.512q0-.429.053-.843a1.3 1.3 0 0 1-.333-.086l-.166-.004c-.223 0-.426.062-.643.228-.03.024-.142.139-.142.59v3.883a1.255 1.255 0 0 1-1.256 1.256h-1.777a1.255 1.255 0 0 1-1.256-1.256V15.69l-.032.057a4.8 4.8 0 0 1-1.86 1.833 5.04 5.04 0 0 1-2.484.634 4.5 4.5 0 0 1-1.935-.424 1.25 1.25 0 0 1-.764.258h-1.71a1.255 1.255 0 0 1-1.256-1.255V7.687a2.4 2.4 0 0 1-.428.625c.253.23.412.561.412.93v7.553a1.255 1.255 0 0 1-1.256 1.255h-1.843a1.25 1.25 0 0 1-.894-.373c-.228.23-.544.373-.894.373H51.32a1.255 1.255 0 0 1-1.256-1.255v-1.251l-.061.117a4.7 4.7 0 0 1-1.782 1.884 4.77 4.77 0 0 1-2.485.67 5.6 5.6 0 0 1-1.485-.188l.009 2.764a1.255 1.255 0 0 1-1.255 1.259h-1.729a1.255 1.255 0 0 1-1.255-1.255v-3.537a1.255 1.255 0 0 1-1.167.793h-1.679a1.25 1.25 0 0 1-.77-.263 4.5 4.5 0 0 1-1.945.429c-.885 0-1.724-.21-2.495-.632l-.017-.01a5 5 0 0 1-1.081-.836 1.255 1.255 0 0 1-1.254 1.312h-1.81a1.255 1.255 0 0 1-1.228-.99l-.782-3.625-2.044 3.939a1.25 1.25 0 0 1-1.115.676h-.098a1.25 1.25 0 0 1-1.116-.68l-2.061-3.994zM35.92 16.63l.207-.114.223-.15q.493-.356.735-.785l.061-.118.033 1.332h1.678V9.242h-1.694l-.033 1.267q-.133-.329-.526-.658l-.032-.028a3.2 3.2 0 0 0-.668-.428l-.27-.12a3.3 3.3 0 0 0-1.235-.23q-1.136-.001-1.974.493a3.36 3.36 0 0 0-1.3 1.382q-.445.89-.444 2.074 0 1.2.51 2.107a3.8 3.8 0 0 0 1.382 1.381 3.9 3.9 0 0 0 1.893.477q.795 0 1.455-.33zm-2.789-5.38q-.576.675-.575 1.762 0 1.102.559 1.794.576.675 1.645.675a2.25 2.25 0 0 0 .934-.19 2.2 2.2 0 0 0 .468-.29l.178-.161a2.2 2.2 0 0 0 .397-.561q.244-.5.244-1.15v-.115q0-.708-.296-1.267l-.043-.077a2.2 2.2 0 0 0-.633-.709l-.13-.086-.047-.028a2.1 2.1 0 0 0-1.073-.285q-1.052 0-1.629.692zm2.316 2.706c.163-.17.28-.407.28-.83v-.114c0-.292-.06-.508-.15-.68a.96.96 0 0 0-.353-.389.85.85 0 0 0-.464-.127c-.4 0-.56.114-.664.239l-.01.012c-.148.174-.275.45-.275.945 0 .506.122.801.27.99.097.11.266.224.68.224.303 0 .504-.09.687-.269zm7.545 1.705a2.6 2.6 0 0 0 .331.423q.319.33.755.548l.173.074q.65.255 1.49.255 1.02 0 1.844-.493a3.45 3.45 0 0 0 1.316-1.4q.493-.904.493-2.089 0-1.909-.988-2.913-.988-1.02-2.584-1.02-.898 0-1.575.347a3 3 0 0 0-.415.262l-.199.166a3.4 3.4 0 0 0-.64.82V9.242h-1.712v11.553h1.729l-.017-5.134zm.53-1.138q.206.29.48.5l.155.11.053.034q.51.296 1.119.297 1.07 0 1.645-.675.577-.69.576-1.762 0-1.119-.576-1.777-.558-.675-1.645-.675-.435 0-.835.16a2 2 0 0 0-.284.136 2 2 0 0 0-.363.254 2.2 2.2 0 0 0-.46.569l-.082.162a2.6 2.6 0 0 0-.213 1.072v.115q0 .707.296 1.267l.135.211zm.964-.818a1.1 1.1 0 0 0 .367.385.94.94 0 0 0 .476.118c.423 0 .59-.117.687-.23.159-.194.28-.478.28-.95 0-.53-.133-.8-.266-.952l-.021-.025c-.078-.094-.231-.221-.68-.221a1 1 0 0 0-.503.135l-.012.007a.86.86 0 0 0-.335.343c-.073.133-.132.324-.132.614v.115a1.4 1.4 0 0 0 .14.66zm15.7-6.222q.347-.346.346-.856a1.05 1.05 0 0 0-.345-.79 1.18 1.18 0 0 0-.84-.329q-.51 0-.855.33a1.05 1.05 0 0 0-.346.79q0 .51.346.855.345.346.856.346.51 0 .839-.346zm4.337 9.314.033-1.332q.191.403.59.747l.098.081a4 4 0 0 0 .316.224l.223.122a3.2 3.2 0 0 0 1.44.322 3.8 3.8 0 0 0 1.875-.477 3.5 3.5 0 0 0 1.382-1.366q.527-.89.526-2.09 0-1.184-.444-2.073a3.24 3.24 0 0 0-1.283-1.399q-.823-.51-1.942-.51a3.5 3.5 0 0 0-1.527.344l-.086.043-.165.09a3 3 0 0 0-.33.214q-.432.315-.656.707a2 2 0 0 0-.099.198l.082-1.283V4.701h-1.744v12.095zm.473-2.509a2.5 2.5 0 0 0 .566.7q.117.098.245.18l.144.08a2.1 2.1 0 0 0 .975.232q1.07 0 1.645-.675.576-.69.576-1.778 0-1.102-.576-1.777-.56-.691-1.645-.692a2.2 2.2 0 0 0-1.015.235q-.22.113-.415.282l-.15.142a2.1 2.1 0 0 0-.42.594q-.223.479-.223 1.1v.115q0 .705.293 1.26zm2.616-.293c.157-.191.28-.479.28-.967 0-.51-.13-.79-.276-.961l-.021-.026c-.082-.1-.232-.225-.67-.225a.87.87 0 0 0-.681.279l-.012.011c-.154.155-.274.38-.274.807v.115c0 .285.057.499.144.669a1.1 1.1 0 0 0 .367.405c.137.082.28.123.455.123.423 0 .59-.118.686-.23zm8.266-3.013q.345-.13.724-.14l.069-.002q.493 0 .642.099l.247-1.794q-.196-.099-.717-.099a2.3 2.3 0 0 0-.545.063 2 2 0 0 0-.411.148 2.2 2.2 0 0 0-.4.249 2.5 2.5 0 0 0-.485.499 2.7 2.7 0 0 0-.32.581l-.05.137v-1.48h-1.778v7.553h1.777v-3.884q0-.546.159-.943a1.5 1.5 0 0 1 .466-.636 2.5 2.5 0 0 1 .399-.253 2 2 0 0 1 .224-.099zm9.784 2.656.05-.922q0-1.743-.856-2.698-.838-.97-2.584-.97-1.119-.001-2.007.493a3.46 3.46 0 0 0-1.4 1.382q-.493.906-.493 2.106 0 1.07.428 1.975.428.89 1.332 1.432.906.526 2.255.526.973 0 1.668-.185l.044-.012.135-.04q.613-.184.984-.421l-.542-1.267q-.3.162-.642.274l-.297.087q-.51.131-1.3.131-.954 0-1.497-.444a1.6 1.6 0 0 1-.192-.193q-.366-.44-.512-1.234l-.004-.021zm-5.427-1.256-.003.022h3.752v-.138q-.011-.727-.288-1.118a1 1 0 0 0-.156-.176q-.46-.428-1.316-.428-.986 0-1.494.604-.379.45-.494 1.234zm-27.053 2.77V4.7h-1.86v12.095h5.333V15.15zm7.103-5.908v7.553h-1.843V9.242h1.843z'/%3E%3Cpath fill='%23fff' d='m19.63 11.151-.757-1.71-.345 1.71-1.12 5.644h-1.827L18.083 4.7h.197l3.325 6.533.988 2.19.988-2.19L26.839 4.7h.181l2.6 12.095h-1.81l-1.218-5.644-.362-1.71-.658 1.71-2.93 5.644h-.098l-2.913-5.644zm14.836 5.81q-1.02 0-1.893-.478a3.8 3.8 0 0 1-1.381-1.382q-.51-.906-.51-2.106 0-1.185.444-2.074a3.36 3.36 0 0 1 1.3-1.382q.839-.494 1.974-.494a3.3 3.3 0 0 1 1.234.231 3.3 3.3 0 0 1 .97.575q.396.33.527.659l.033-1.267h1.694v7.553H37.18l-.033-1.332q-.279.593-1.02 1.053a3.17 3.17 0 0 1-1.662.444zm.296-1.482q.938 0 1.58-.642.642-.66.642-1.711v-.115q0-.708-.296-1.267a2.2 2.2 0 0 0-.807-.872 2.1 2.1 0 0 0-1.119-.313q-1.053 0-1.629.692-.575.675-.575 1.76 0 1.103.559 1.795.577.675 1.645.675zm6.521-6.237h1.711v1.4q.906-1.597 2.83-1.597 1.596 0 2.584 1.02.988 1.005.988 2.914 0 1.185-.493 2.09a3.46 3.46 0 0 1-1.316 1.399 3.5 3.5 0 0 1-1.844.493q-.954 0-1.662-.329a2.67 2.67 0 0 1-1.086-.97l.017 5.134h-1.728zm4.048 6.22q1.07 0 1.645-.674.577-.69.576-1.762 0-1.119-.576-1.777-.558-.675-1.645-.675-.592 0-1.12.296-.51.28-.822.823-.296.527-.296 1.234v.115q0 .708.296 1.267.313.543.823.855.51.296 1.119.297z'/%3E%3Cpath fill='%23e1e3e9' d='M51.325 4.7h1.86v10.45h3.473v1.646h-5.333zm7.12 4.542h1.843v7.553h-1.843zm.905-1.415a1.16 1.16 0 0 1-.856-.346 1.17 1.17 0 0 1-.346-.856 1.05 1.05 0 0 1 .346-.79q.346-.329.856-.329.494 0 .839.33a1.05 1.05 0 0 1 .345.79 1.16 1.16 0 0 1-.345.855q-.33.346-.84.346zm7.875 9.133a3.17 3.17 0 0 1-1.662-.444q-.723-.46-1.004-1.053l-.033 1.332h-1.71V4.701h1.743v4.657l-.082 1.283q.279-.658 1.086-1.119a3.5 3.5 0 0 1 1.778-.477q1.119 0 1.942.51a3.24 3.24 0 0 1 1.283 1.4q.445.888.444 2.072 0 1.201-.526 2.09a3.5 3.5 0 0 1-1.382 1.366 3.8 3.8 0 0 1-1.876.477zm-.296-1.481q1.069 0 1.645-.675.577-.69.577-1.778 0-1.102-.577-1.776-.56-.691-1.645-.692a2.12 2.12 0 0 0-1.58.659q-.642.641-.642 1.694v.115q0 .71.296 1.267a2.4 2.4 0 0 0 .807.872 2.1 2.1 0 0 0 1.119.313zm5.927-6.237h1.777v1.481q.263-.757.856-1.217a2.14 2.14 0 0 1 1.349-.46q.527 0 .724.098l-.247 1.794q-.149-.099-.642-.099-.774 0-1.416.494-.626.493-.626 1.58v3.883h-1.777V9.242zm9.534 7.718q-1.35 0-2.255-.526-.904-.543-1.332-1.432a4.6 4.6 0 0 1-.428-1.975q0-1.2.493-2.106a3.46 3.46 0 0 1 1.4-1.382q.889-.495 2.007-.494 1.744 0 2.584.97.855.956.856 2.7 0 .444-.05.92h-5.43q.18 1.005.708 1.45.542.443 1.497.443.79 0 1.3-.131a4 4 0 0 0 .938-.362l.542 1.267q-.411.263-1.119.46-.708.198-1.711.197zm1.596-4.558q.016-1.02-.444-1.432-.46-.428-1.316-.428-1.728 0-1.991 1.86z'/%3E%3Cpath d='M5.074 15.948a.484.657 0 0 0-.486.659v1.84a.484.657 0 0 0 .486.659h4.101a.484.657 0 0 0 .486-.659v-1.84a.484.657 0 0 0-.486-.659zm3.56 1.16H5.617v.838h3.017z' style='fill:%23fff;fill-rule:evenodd;stroke-width:1.03600001'/%3E%3Cg style='stroke-width:1.12603545'%3E%3Cpath d='M-9.408-1.416c-3.833-.025-7.056 2.912-7.08 6.615-.02 3.08 1.653 4.832 3.107 6.268.903.892 1.721 1.74 2.32 2.902l-.525-.004c-.543-.003-.992.304-1.24.639a1.87 1.87 0 0 0-.362 1.121l-.011 1.877c-.003.402.104.787.347 1.125.244.338.688.653 1.23.656l4.142.028c.542.003.99-.306 1.238-.641a1.87 1.87 0 0 0 .363-1.121l.012-1.875a1.87 1.87 0 0 0-.348-1.127c-.243-.338-.688-.653-1.23-.656l-.518-.004c.597-1.145 1.425-1.983 2.348-2.87 1.473-1.414 3.18-3.149 3.2-6.226-.016-3.59-2.923-6.684-6.993-6.707m-.006 1.1v.002c3.274.02 5.92 2.532 5.9 5.6-.017 2.706-1.39 4.026-2.863 5.44-1.034.994-2.118 2.033-2.814 3.633-.018.041-.052.055-.075.065q-.013.004-.02.01a.34.34 0 0 1-.226.084.34.34 0 0 1-.224-.086l-.092-.077c-.699-1.615-1.768-2.669-2.781-3.67-1.454-1.435-2.797-2.762-2.78-5.478.02-3.067 2.7-5.545 5.975-5.523m-.02 2.826c-1.62-.01-2.944 1.315-2.955 2.96-.01 1.646 1.295 2.988 2.916 2.999h.002c1.621.01 2.943-1.316 2.953-2.961.011-1.646-1.294-2.988-2.916-2.998m-.005 1.1c1.017.006 1.829.83 1.822 1.89s-.83 1.874-1.848 1.867c-1.018-.006-1.829-.83-1.822-1.89s.83-1.874 1.848-1.868m-2.155 11.857 4.14.025c.271.002.49.305.487.676l-.013 1.875c-.003.37-.224.67-.495.668l-4.14-.025c-.27-.002-.487-.306-.485-.676l.012-1.875c.003-.37.224-.67.494-.668' style='color:%23000;font-style:normal;font-variant:normal;font-weight:400;font-stretch:normal;font-size:medium;line-height:normal;font-family:sans-serif;font-variant-ligatures:normal;font-variant-position:normal;font-variant-caps:normal;font-variant-numeric:normal;font-variant-alternates:normal;font-feature-settings:normal;text-indent:0;text-align:start;text-decoration:none;text-decoration-line:none;text-decoration-style:solid;text-decoration-color:%23000;letter-spacing:normal;word-spacing:normal;text-transform:none;writing-mode:lr-tb;direction:ltr;text-orientation:mixed;dominant-baseline:auto;baseline-shift:baseline;text-anchor:start;white-space:normal;shape-padding:0;clip-rule:evenodd;display:inline;overflow:visible;visibility:visible;opacity:1;isolation:auto;mix-blend-mode:normal;color-interpolation:sRGB;color-interpolation-filters:linearRGB;solid-color:%23000;solid-opacity:1;vector-effect:none;fill:%23000;fill-opacity:.4;fill-rule:evenodd;stroke:none;stroke-width:2.47727823;stroke-linecap:butt;stroke-linejoin:miter;stroke-miterlimit:4;stroke-dasharray:none;stroke-dashoffset:0;stroke-opacity:1;color-rendering:auto;image-rendering:auto;shape-rendering:auto;text-rendering:auto' transform='translate(15.553 2.85)scale(.88807)'/%3E%3Cpath d='M-9.415-.316C-12.69-.338-15.37 2.14-15.39 5.207c-.017 2.716 1.326 4.041 2.78 5.477 1.013 1 2.081 2.055 2.78 3.67l.092.076a.34.34 0 0 0 .225.086.34.34 0 0 0 .227-.083l.019-.01c.022-.009.057-.024.074-.064.697-1.6 1.78-2.64 2.814-3.634 1.473-1.414 2.847-2.733 2.864-5.44.02-3.067-2.627-5.58-5.901-5.601m-.057 8.784c1.621.011 2.944-1.315 2.955-2.96.01-1.646-1.295-2.988-2.916-2.999-1.622-.01-2.945 1.315-2.955 2.96s1.295 2.989 2.916 3' style='clip-rule:evenodd;fill:%23e1e3e9;fill-opacity:1;fill-rule:evenodd;stroke:none;stroke-width:2.47727823;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:.4' transform='translate(15.553 2.85)scale(.88807)'/%3E%3Cpath d='M-11.594 15.465c-.27-.002-.492.297-.494.668l-.012 1.876c-.003.371.214.673.485.675l4.14.027c.271.002.492-.298.495-.668l.012-1.877c.003-.37-.215-.672-.485-.674z' style='clip-rule:evenodd;fill:%23fff;fill-opacity:1;fill-rule:evenodd;stroke:none;stroke-width:2.47727823;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:.4' transform='translate(15.553 2.85)scale(.88807)'/%3E%3C/g%3E%3C/svg%3E");background-repeat:no-repeat;cursor:pointer;display:block;height:23px;margin:0 0 -4px -4px;overflow:hidden;width:88px}a.maplibregl-ctrl-logo.maplibregl-compact{width:14px}@media (forced-colors:active){a.maplibregl-ctrl-logo{background-color:transparent;background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='88' height='23' fill='none'%3E%3Cpath fill='%23000' fill-opacity='.4' fill-rule='evenodd' d='M17.408 16.796h-1.827l2.501-12.095h.198l3.324 6.533.988 2.19.988-2.19 3.258-6.533h.181l2.6 12.095h-1.81l-1.218-5.644-.362-1.71-.658 1.71-2.929 5.644h-.098l-2.914-5.644-.757-1.71-.345 1.71zm1.958-3.42-.726 3.663a1.255 1.255 0 0 1-1.232 1.011h-1.827a1.255 1.255 0 0 1-1.229-1.509l2.501-12.095a1.255 1.255 0 0 1 1.23-1.001h.197a1.25 1.25 0 0 1 1.12.685l3.19 6.273 3.125-6.263a1.25 1.25 0 0 1 1.123-.695h.181a1.255 1.255 0 0 1 1.227.991l1.443 6.71a5 5 0 0 1 .314-.787l.009-.016a4.6 4.6 0 0 1 1.777-1.887c.782-.46 1.668-.667 2.611-.667a4.6 4.6 0 0 1 1.7.32l.306.134c.21-.16.474-.256.759-.256h1.694a1.255 1.255 0 0 1 1.212.925 1.255 1.255 0 0 1 1.212-.925h1.711c.284 0 .545.094.755.252.613-.3 1.312-.45 2.075-.45 1.356 0 2.557.445 3.482 1.4q.47.48.763 1.064V4.701a1.255 1.255 0 0 1 1.255-1.255h1.86A1.255 1.255 0 0 1 54.44 4.7v9.194h2.217c.19 0 .37.043.532.118v-4.77c0-.356.147-.678.385-.906a2.42 2.42 0 0 1-.682-1.71c0-.665.267-1.253.735-1.7a2.45 2.45 0 0 1 1.722-.674 2.43 2.43 0 0 1 1.705.675q.318.302.504.683V4.7a1.255 1.255 0 0 1 1.255-1.255h1.744A1.255 1.255 0 0 1 65.812 4.7v3.335a4.8 4.8 0 0 1 1.526-.246c.938 0 1.817.214 2.59.69a4.47 4.47 0 0 1 1.67 1.743v-.98a1.255 1.255 0 0 1 1.256-1.256h1.777c.233 0 .451.064.639.174a3.4 3.4 0 0 1 1.567-.372c.346 0 .861.02 1.285.232a1.25 1.25 0 0 1 .689 1.004 4.7 4.7 0 0 1 .853-.588c.795-.44 1.675-.647 2.61-.647 1.385 0 2.65.39 3.525 1.396.836.938 1.168 2.173 1.168 3.528q-.001.515-.056 1.051a1.255 1.255 0 0 1-.947 1.09l.408.952a1.255 1.255 0 0 1-.477 1.552c-.418.268-.92.463-1.458.612-.613.171-1.304.244-2.049.244-1.06 0-2.043-.207-2.886-.698l-.015-.008c-.798-.48-1.419-1.135-1.818-1.963l-.004-.008a5.8 5.8 0 0 1-.548-2.512q0-.429.053-.843a1.3 1.3 0 0 1-.333-.086l-.166-.004c-.223 0-.426.062-.643.228-.03.024-.142.139-.142.59v3.883a1.255 1.255 0 0 1-1.256 1.256h-1.777a1.255 1.255 0 0 1-1.256-1.256V15.69l-.032.057a4.8 4.8 0 0 1-1.86 1.833 5.04 5.04 0 0 1-2.484.634 4.5 4.5 0 0 1-1.935-.424 1.25 1.25 0 0 1-.764.258h-1.71a1.255 1.255 0 0 1-1.256-1.255V7.687a2.4 2.4 0 0 1-.428.625c.253.23.412.561.412.93v7.553a1.255 1.255 0 0 1-1.256 1.255h-1.843a1.25 1.25 0 0 1-.894-.373c-.228.23-.544.373-.894.373H51.32a1.255 1.255 0 0 1-1.256-1.255v-1.251l-.061.117a4.7 4.7 0 0 1-1.782 1.884 4.77 4.77 0 0 1-2.485.67 5.6 5.6 0 0 1-1.485-.188l.009 2.764a1.255 1.255 0 0 1-1.255 1.259h-1.729a1.255 1.255 0 0 1-1.255-1.255v-3.537a1.255 1.255 0 0 1-1.167.793h-1.679a1.25 1.25 0 0 1-.77-.263 4.5 4.5 0 0 1-1.945.429c-.885 0-1.724-.21-2.495-.632l-.017-.01a5 5 0 0 1-1.081-.836 1.255 1.255 0 0 1-1.254 1.312h-1.81a1.255 1.255 0 0 1-1.228-.99l-.782-3.625-2.044 3.939a1.25 1.25 0 0 1-1.115.676h-.098a1.25 1.25 0 0 1-1.116-.68l-2.061-3.994zM35.92 16.63l.207-.114.223-.15q.493-.356.735-.785l.061-.118.033 1.332h1.678V9.242h-1.694l-.033 1.267q-.133-.329-.526-.658l-.032-.028a3.2 3.2 0 0 0-.668-.428l-.27-.12a3.3 3.3 0 0 0-1.235-.23q-1.136-.001-1.974.493a3.36 3.36 0 0 0-1.3 1.382q-.445.89-.444 2.074 0 1.2.51 2.107a3.8 3.8 0 0 0 1.382 1.381 3.9 3.9 0 0 0 1.893.477q.795 0 1.455-.33zm-2.789-5.38q-.576.675-.575 1.762 0 1.102.559 1.794.576.675 1.645.675a2.25 2.25 0 0 0 .934-.19 2.2 2.2 0 0 0 .468-.29l.178-.161a2.2 2.2 0 0 0 .397-.561q.244-.5.244-1.15v-.115q0-.708-.296-1.267l-.043-.077a2.2 2.2 0 0 0-.633-.709l-.13-.086-.047-.028a2.1 2.1 0 0 0-1.073-.285q-1.052 0-1.629.692zm2.316 2.706c.163-.17.28-.407.28-.83v-.114c0-.292-.06-.508-.15-.68a.96.96 0 0 0-.353-.389.85.85 0 0 0-.464-.127c-.4 0-.56.114-.664.239l-.01.012c-.148.174-.275.45-.275.945 0 .506.122.801.27.99.097.11.266.224.68.224.303 0 .504-.09.687-.269zm7.545 1.705a2.6 2.6 0 0 0 .331.423q.319.33.755.548l.173.074q.65.255 1.49.255 1.02 0 1.844-.493a3.45 3.45 0 0 0 1.316-1.4q.493-.904.493-2.089 0-1.909-.988-2.913-.988-1.02-2.584-1.02-.898 0-1.575.347a3 3 0 0 0-.415.262l-.199.166a3.4 3.4 0 0 0-.64.82V9.242h-1.712v11.553h1.729l-.017-5.134zm.53-1.138q.206.29.48.5l.155.11.053.034q.51.296 1.119.297 1.07 0 1.645-.675.577-.69.576-1.762 0-1.119-.576-1.777-.558-.675-1.645-.675-.435 0-.835.16a2 2 0 0 0-.284.136 2 2 0 0 0-.363.254 2.2 2.2 0 0 0-.46.569l-.082.162a2.6 2.6 0 0 0-.213 1.072v.115q0 .707.296 1.267l.135.211zm.964-.818a1.1 1.1 0 0 0 .367.385.94.94 0 0 0 .476.118c.423 0 .59-.117.687-.23.159-.194.28-.478.28-.95 0-.53-.133-.8-.266-.952l-.021-.025c-.078-.094-.231-.221-.68-.221a1 1 0 0 0-.503.135l-.012.007a.86.86 0 0 0-.335.343c-.073.133-.132.324-.132.614v.115a1.4 1.4 0 0 0 .14.66zm15.7-6.222q.347-.346.346-.856a1.05 1.05 0 0 0-.345-.79 1.18 1.18 0 0 0-.84-.329q-.51 0-.855.33a1.05 1.05 0 0 0-.346.79q0 .51.346.855.345.346.856.346.51 0 .839-.346zm4.337 9.314.033-1.332q.191.403.59.747l.098.081a4 4 0 0 0 .316.224l.223.122a3.2 3.2 0 0 0 1.44.322 3.8 3.8 0 0 0 1.875-.477 3.5 3.5 0 0 0 1.382-1.366q.527-.89.526-2.09 0-1.184-.444-2.073a3.24 3.24 0 0 0-1.283-1.399q-.823-.51-1.942-.51a3.5 3.5 0 0 0-1.527.344l-.086.043-.165.09a3 3 0 0 0-.33.214q-.432.315-.656.707a2 2 0 0 0-.099.198l.082-1.283V4.701h-1.744v12.095zm.473-2.509a2.5 2.5 0 0 0 .566.7q.117.098.245.18l.144.08a2.1 2.1 0 0 0 .975.232q1.07 0 1.645-.675.576-.69.576-1.778 0-1.102-.576-1.777-.56-.691-1.645-.692a2.2 2.2 0 0 0-1.015.235q-.22.113-.415.282l-.15.142a2.1 2.1 0 0 0-.42.594q-.223.479-.223 1.1v.115q0 .705.293 1.26zm2.616-.293c.157-.191.28-.479.28-.967 0-.51-.13-.79-.276-.961l-.021-.026c-.082-.1-.232-.225-.67-.225a.87.87 0 0 0-.681.279l-.012.011c-.154.155-.274.38-.274.807v.115c0 .285.057.499.144.669a1.1 1.1 0 0 0 .367.405c.137.082.28.123.455.123.423 0 .59-.118.686-.23zm8.266-3.013q.345-.13.724-.14l.069-.002q.493 0 .642.099l.247-1.794q-.196-.099-.717-.099a2.3 2.3 0 0 0-.545.063 2 2 0 0 0-.411.148 2.2 2.2 0 0 0-.4.249 2.5 2.5 0 0 0-.485.499 2.7 2.7 0 0 0-.32.581l-.05.137v-1.48h-1.778v7.553h1.777v-3.884q0-.546.159-.943a1.5 1.5 0 0 1 .466-.636 2.5 2.5 0 0 1 .399-.253 2 2 0 0 1 .224-.099zm9.784 2.656.05-.922q0-1.743-.856-2.698-.838-.97-2.584-.97-1.119-.001-2.007.493a3.46 3.46 0 0 0-1.4 1.382q-.493.906-.493 2.106 0 1.07.428 1.975.428.89 1.332 1.432.906.526 2.255.526.973 0 1.668-.185l.044-.012.135-.04q.613-.184.984-.421l-.542-1.267q-.3.162-.642.274l-.297.087q-.51.131-1.3.131-.954 0-1.497-.444a1.6 1.6 0 0 1-.192-.193q-.366-.44-.512-1.234l-.004-.021zm-5.427-1.256-.003.022h3.752v-.138q-.011-.727-.288-1.118a1 1 0 0 0-.156-.176q-.46-.428-1.316-.428-.986 0-1.494.604-.379.45-.494 1.234zm-27.053 2.77V4.7h-1.86v12.095h5.333V15.15zm7.103-5.908v7.553h-1.843V9.242h1.843z'/%3E%3Cpath fill='%23fff' d='m19.63 11.151-.757-1.71-.345 1.71-1.12 5.644h-1.827L18.083 4.7h.197l3.325 6.533.988 2.19.988-2.19L26.839 4.7h.181l2.6 12.095h-1.81l-1.218-5.644-.362-1.71-.658 1.71-2.93 5.644h-.098l-2.913-5.644zm14.836 5.81q-1.02 0-1.893-.478a3.8 3.8 0 0 1-1.381-1.382q-.51-.906-.51-2.106 0-1.185.444-2.074a3.36 3.36 0 0 1 1.3-1.382q.839-.494 1.974-.494a3.3 3.3 0 0 1 1.234.231 3.3 3.3 0 0 1 .97.575q.396.33.527.659l.033-1.267h1.694v7.553H37.18l-.033-1.332q-.279.593-1.02 1.053a3.17 3.17 0 0 1-1.662.444zm.296-1.482q.938 0 1.58-.642.642-.66.642-1.711v-.115q0-.708-.296-1.267a2.2 2.2 0 0 0-.807-.872 2.1 2.1 0 0 0-1.119-.313q-1.053 0-1.629.692-.575.675-.575 1.76 0 1.103.559 1.795.577.675 1.645.675zm6.521-6.237h1.711v1.4q.906-1.597 2.83-1.597 1.596 0 2.584 1.02.988 1.005.988 2.914 0 1.185-.493 2.09a3.46 3.46 0 0 1-1.316 1.399 3.5 3.5 0 0 1-1.844.493q-.954 0-1.662-.329a2.67 2.67 0 0 1-1.086-.97l.017 5.134h-1.728zm4.048 6.22q1.07 0 1.645-.674.577-.69.576-1.762 0-1.119-.576-1.777-.558-.675-1.645-.675-.592 0-1.12.296-.51.28-.822.823-.296.527-.296 1.234v.115q0 .708.296 1.267.313.543.823.855.51.296 1.119.297z'/%3E%3Cpath fill='%23e1e3e9' d='M51.325 4.7h1.86v10.45h3.473v1.646h-5.333zm7.12 4.542h1.843v7.553h-1.843zm.905-1.415a1.16 1.16 0 0 1-.856-.346 1.17 1.17 0 0 1-.346-.856 1.05 1.05 0 0 1 .346-.79q.346-.329.856-.329.494 0 .839.33a1.05 1.05 0 0 1 .345.79 1.16 1.16 0 0 1-.345.855q-.33.346-.84.346zm7.875 9.133a3.17 3.17 0 0 1-1.662-.444q-.723-.46-1.004-1.053l-.033 1.332h-1.71V4.701h1.743v4.657l-.082 1.283q.279-.658 1.086-1.119a3.5 3.5 0 0 1 1.778-.477q1.119 0 1.942.51a3.24 3.24 0 0 1 1.283 1.4q.445.888.444 2.072 0 1.201-.526 2.09a3.5 3.5 0 0 1-1.382 1.366 3.8 3.8 0 0 1-1.876.477zm-.296-1.481q1.069 0 1.645-.675.577-.69.577-1.778 0-1.102-.577-1.776-.56-.691-1.645-.692a2.12 2.12 0 0 0-1.58.659q-.642.641-.642 1.694v.115q0 .71.296 1.267a2.4 2.4 0 0 0 .807.872 2.1 2.1 0 0 0 1.119.313zm5.927-6.237h1.777v1.481q.263-.757.856-1.217a2.14 2.14 0 0 1 1.349-.46q.527 0 .724.098l-.247 1.794q-.149-.099-.642-.099-.774 0-1.416.494-.626.493-.626 1.58v3.883h-1.777V9.242zm9.534 7.718q-1.35 0-2.255-.526-.904-.543-1.332-1.432a4.6 4.6 0 0 1-.428-1.975q0-1.2.493-2.106a3.46 3.46 0 0 1 1.4-1.382q.889-.495 2.007-.494 1.744 0 2.584.97.855.956.856 2.7 0 .444-.05.92h-5.43q.18 1.005.708 1.45.542.443 1.497.443.79 0 1.3-.131a4 4 0 0 0 .938-.362l.542 1.267q-.411.263-1.119.46-.708.198-1.711.197zm1.596-4.558q.016-1.02-.444-1.432-.46-.428-1.316-.428-1.728 0-1.991 1.86z'/%3E%3Cpath d='M5.074 15.948a.484.657 0 0 0-.486.659v1.84a.484.657 0 0 0 .486.659h4.101a.484.657 0 0 0 .486-.659v-1.84a.484.657 0 0 0-.486-.659zm3.56 1.16H5.617v.838h3.017z' style='fill:%23fff;fill-rule:evenodd;stroke-width:1.03600001'/%3E%3Cg style='stroke-width:1.12603545'%3E%3Cpath d='M-9.408-1.416c-3.833-.025-7.056 2.912-7.08 6.615-.02 3.08 1.653 4.832 3.107 6.268.903.892 1.721 1.74 2.32 2.902l-.525-.004c-.543-.003-.992.304-1.24.639a1.87 1.87 0 0 0-.362 1.121l-.011 1.877c-.003.402.104.787.347 1.125.244.338.688.653 1.23.656l4.142.028c.542.003.99-.306 1.238-.641a1.87 1.87 0 0 0 .363-1.121l.012-1.875a1.87 1.87 0 0 0-.348-1.127c-.243-.338-.688-.653-1.23-.656l-.518-.004c.597-1.145 1.425-1.983 2.348-2.87 1.473-1.414 3.18-3.149 3.2-6.226-.016-3.59-2.923-6.684-6.993-6.707m-.006 1.1v.002c3.274.02 5.92 2.532 5.9 5.6-.017 2.706-1.39 4.026-2.863 5.44-1.034.994-2.118 2.033-2.814 3.633-.018.041-.052.055-.075.065q-.013.004-.02.01a.34.34 0 0 1-.226.084.34.34 0 0 1-.224-.086l-.092-.077c-.699-1.615-1.768-2.669-2.781-3.67-1.454-1.435-2.797-2.762-2.78-5.478.02-3.067 2.7-5.545 5.975-5.523m-.02 2.826c-1.62-.01-2.944 1.315-2.955 2.96-.01 1.646 1.295 2.988 2.916 2.999h.002c1.621.01 2.943-1.316 2.953-2.961.011-1.646-1.294-2.988-2.916-2.998m-.005 1.1c1.017.006 1.829.83 1.822 1.89s-.83 1.874-1.848 1.867c-1.018-.006-1.829-.83-1.822-1.89s.83-1.874 1.848-1.868m-2.155 11.857 4.14.025c.271.002.49.305.487.676l-.013 1.875c-.003.37-.224.67-.495.668l-4.14-.025c-.27-.002-.487-.306-.485-.676l.012-1.875c.003-.37.224-.67.494-.668' style='color:%23000;font-style:normal;font-variant:normal;font-weight:400;font-stretch:normal;font-size:medium;line-height:normal;font-family:sans-serif;font-variant-ligatures:normal;font-variant-position:normal;font-variant-caps:normal;font-variant-numeric:normal;font-variant-alternates:normal;font-feature-settings:normal;text-indent:0;text-align:start;text-decoration:none;text-decoration-line:none;text-decoration-style:solid;text-decoration-color:%23000;letter-spacing:normal;word-spacing:normal;text-transform:none;writing-mode:lr-tb;direction:ltr;text-orientation:mixed;dominant-baseline:auto;baseline-shift:baseline;text-anchor:start;white-space:normal;shape-padding:0;clip-rule:evenodd;display:inline;overflow:visible;visibility:visible;opacity:1;isolation:auto;mix-blend-mode:normal;color-interpolation:sRGB;color-interpolation-filters:linearRGB;solid-color:%23000;solid-opacity:1;vector-effect:none;fill:%23000;fill-opacity:.4;fill-rule:evenodd;stroke:none;stroke-width:2.47727823;stroke-linecap:butt;stroke-linejoin:miter;stroke-miterlimit:4;stroke-dasharray:none;stroke-dashoffset:0;stroke-opacity:1;color-rendering:auto;image-rendering:auto;shape-rendering:auto;text-rendering:auto' transform='translate(15.553 2.85)scale(.88807)'/%3E%3Cpath d='M-9.415-.316C-12.69-.338-15.37 2.14-15.39 5.207c-.017 2.716 1.326 4.041 2.78 5.477 1.013 1 2.081 2.055 2.78 3.67l.092.076a.34.34 0 0 0 .225.086.34.34 0 0 0 .227-.083l.019-.01c.022-.009.057-.024.074-.064.697-1.6 1.78-2.64 2.814-3.634 1.473-1.414 2.847-2.733 2.864-5.44.02-3.067-2.627-5.58-5.901-5.601m-.057 8.784c1.621.011 2.944-1.315 2.955-2.96.01-1.646-1.295-2.988-2.916-2.999-1.622-.01-2.945 1.315-2.955 2.96s1.295 2.989 2.916 3' style='clip-rule:evenodd;fill:%23e1e3e9;fill-opacity:1;fill-rule:evenodd;stroke:none;stroke-width:2.47727823;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:.4' transform='translate(15.553 2.85)scale(.88807)'/%3E%3Cpath d='M-11.594 15.465c-.27-.002-.492.297-.494.668l-.012 1.876c-.003.371.214.673.485.675l4.14.027c.271.002.492-.298.495-.668l.012-1.877c.003-.37-.215-.672-.485-.674z' style='clip-rule:evenodd;fill:%23fff;fill-opacity:1;fill-rule:evenodd;stroke:none;stroke-width:2.47727823;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:.4' transform='translate(15.553 2.85)scale(.88807)'/%3E%3C/g%3E%3C/svg%3E")}}@media (forced-colors:active) and (prefers-color-scheme:light){a.maplibregl-ctrl-logo{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='88' height='23' fill='none'%3E%3Cpath fill='%23000' fill-opacity='.4' fill-rule='evenodd' d='M17.408 16.796h-1.827l2.501-12.095h.198l3.324 6.533.988 2.19.988-2.19 3.258-6.533h.181l2.6 12.095h-1.81l-1.218-5.644-.362-1.71-.658 1.71-2.929 5.644h-.098l-2.914-5.644-.757-1.71-.345 1.71zm1.958-3.42-.726 3.663a1.255 1.255 0 0 1-1.232 1.011h-1.827a1.255 1.255 0 0 1-1.229-1.509l2.501-12.095a1.255 1.255 0 0 1 1.23-1.001h.197a1.25 1.25 0 0 1 1.12.685l3.19 6.273 3.125-6.263a1.25 1.25 0 0 1 1.123-.695h.181a1.255 1.255 0 0 1 1.227.991l1.443 6.71a5 5 0 0 1 .314-.787l.009-.016a4.6 4.6 0 0 1 1.777-1.887c.782-.46 1.668-.667 2.611-.667a4.6 4.6 0 0 1 1.7.32l.306.134c.21-.16.474-.256.759-.256h1.694a1.255 1.255 0 0 1 1.212.925 1.255 1.255 0 0 1 1.212-.925h1.711c.284 0 .545.094.755.252.613-.3 1.312-.45 2.075-.45 1.356 0 2.557.445 3.482 1.4q.47.48.763 1.064V4.701a1.255 1.255 0 0 1 1.255-1.255h1.86A1.255 1.255 0 0 1 54.44 4.7v9.194h2.217c.19 0 .37.043.532.118v-4.77c0-.356.147-.678.385-.906a2.42 2.42 0 0 1-.682-1.71c0-.665.267-1.253.735-1.7a2.45 2.45 0 0 1 1.722-.674 2.43 2.43 0 0 1 1.705.675q.318.302.504.683V4.7a1.255 1.255 0 0 1 1.255-1.255h1.744A1.255 1.255 0 0 1 65.812 4.7v3.335a4.8 4.8 0 0 1 1.526-.246c.938 0 1.817.214 2.59.69a4.47 4.47 0 0 1 1.67 1.743v-.98a1.255 1.255 0 0 1 1.256-1.256h1.777c.233 0 .451.064.639.174a3.4 3.4 0 0 1 1.567-.372c.346 0 .861.02 1.285.232a1.25 1.25 0 0 1 .689 1.004 4.7 4.7 0 0 1 .853-.588c.795-.44 1.675-.647 2.61-.647 1.385 0 2.65.39 3.525 1.396.836.938 1.168 2.173 1.168 3.528q-.001.515-.056 1.051a1.255 1.255 0 0 1-.947 1.09l.408.952a1.255 1.255 0 0 1-.477 1.552c-.418.268-.92.463-1.458.612-.613.171-1.304.244-2.049.244-1.06 0-2.043-.207-2.886-.698l-.015-.008c-.798-.48-1.419-1.135-1.818-1.963l-.004-.008a5.8 5.8 0 0 1-.548-2.512q0-.429.053-.843a1.3 1.3 0 0 1-.333-.086l-.166-.004c-.223 0-.426.062-.643.228-.03.024-.142.139-.142.59v3.883a1.255 1.255 0 0 1-1.256 1.256h-1.777a1.255 1.255 0 0 1-1.256-1.256V15.69l-.032.057a4.8 4.8 0 0 1-1.86 1.833 5.04 5.04 0 0 1-2.484.634 4.5 4.5 0 0 1-1.935-.424 1.25 1.25 0 0 1-.764.258h-1.71a1.255 1.255 0 0 1-1.256-1.255V7.687a2.4 2.4 0 0 1-.428.625c.253.23.412.561.412.93v7.553a1.255 1.255 0 0 1-1.256 1.255h-1.843a1.25 1.25 0 0 1-.894-.373c-.228.23-.544.373-.894.373H51.32a1.255 1.255 0 0 1-1.256-1.255v-1.251l-.061.117a4.7 4.7 0 0 1-1.782 1.884 4.77 4.77 0 0 1-2.485.67 5.6 5.6 0 0 1-1.485-.188l.009 2.764a1.255 1.255 0 0 1-1.255 1.259h-1.729a1.255 1.255 0 0 1-1.255-1.255v-3.537a1.255 1.255 0 0 1-1.167.793h-1.679a1.25 1.25 0 0 1-.77-.263 4.5 4.5 0 0 1-1.945.429c-.885 0-1.724-.21-2.495-.632l-.017-.01a5 5 0 0 1-1.081-.836 1.255 1.255 0 0 1-1.254 1.312h-1.81a1.255 1.255 0 0 1-1.228-.99l-.782-3.625-2.044 3.939a1.25 1.25 0 0 1-1.115.676h-.098a1.25 1.25 0 0 1-1.116-.68l-2.061-3.994zM35.92 16.63l.207-.114.223-.15q.493-.356.735-.785l.061-.118.033 1.332h1.678V9.242h-1.694l-.033 1.267q-.133-.329-.526-.658l-.032-.028a3.2 3.2 0 0 0-.668-.428l-.27-.12a3.3 3.3 0 0 0-1.235-.23q-1.136-.001-1.974.493a3.36 3.36 0 0 0-1.3 1.382q-.445.89-.444 2.074 0 1.2.51 2.107a3.8 3.8 0 0 0 1.382 1.381 3.9 3.9 0 0 0 1.893.477q.795 0 1.455-.33zm-2.789-5.38q-.576.675-.575 1.762 0 1.102.559 1.794.576.675 1.645.675a2.25 2.25 0 0 0 .934-.19 2.2 2.2 0 0 0 .468-.29l.178-.161a2.2 2.2 0 0 0 .397-.561q.244-.5.244-1.15v-.115q0-.708-.296-1.267l-.043-.077a2.2 2.2 0 0 0-.633-.709l-.13-.086-.047-.028a2.1 2.1 0 0 0-1.073-.285q-1.052 0-1.629.692zm2.316 2.706c.163-.17.28-.407.28-.83v-.114c0-.292-.06-.508-.15-.68a.96.96 0 0 0-.353-.389.85.85 0 0 0-.464-.127c-.4 0-.56.114-.664.239l-.01.012c-.148.174-.275.45-.275.945 0 .506.122.801.27.99.097.11.266.224.68.224.303 0 .504-.09.687-.269zm7.545 1.705a2.6 2.6 0 0 0 .331.423q.319.33.755.548l.173.074q.65.255 1.49.255 1.02 0 1.844-.493a3.45 3.45 0 0 0 1.316-1.4q.493-.904.493-2.089 0-1.909-.988-2.913-.988-1.02-2.584-1.02-.898 0-1.575.347a3 3 0 0 0-.415.262l-.199.166a3.4 3.4 0 0 0-.64.82V9.242h-1.712v11.553h1.729l-.017-5.134zm.53-1.138q.206.29.48.5l.155.11.053.034q.51.296 1.119.297 1.07 0 1.645-.675.577-.69.576-1.762 0-1.119-.576-1.777-.558-.675-1.645-.675-.435 0-.835.16a2 2 0 0 0-.284.136 2 2 0 0 0-.363.254 2.2 2.2 0 0 0-.46.569l-.082.162a2.6 2.6 0 0 0-.213 1.072v.115q0 .707.296 1.267l.135.211zm.964-.818a1.1 1.1 0 0 0 .367.385.94.94 0 0 0 .476.118c.423 0 .59-.117.687-.23.159-.194.28-.478.28-.95 0-.53-.133-.8-.266-.952l-.021-.025c-.078-.094-.231-.221-.68-.221a1 1 0 0 0-.503.135l-.012.007a.86.86 0 0 0-.335.343c-.073.133-.132.324-.132.614v.115a1.4 1.4 0 0 0 .14.66zm15.7-6.222q.347-.346.346-.856a1.05 1.05 0 0 0-.345-.79 1.18 1.18 0 0 0-.84-.329q-.51 0-.855.33a1.05 1.05 0 0 0-.346.79q0 .51.346.855.345.346.856.346.51 0 .839-.346zm4.337 9.314.033-1.332q.191.403.59.747l.098.081a4 4 0 0 0 .316.224l.223.122a3.2 3.2 0 0 0 1.44.322 3.8 3.8 0 0 0 1.875-.477 3.5 3.5 0 0 0 1.382-1.366q.527-.89.526-2.09 0-1.184-.444-2.073a3.24 3.24 0 0 0-1.283-1.399q-.823-.51-1.942-.51a3.5 3.5 0 0 0-1.527.344l-.086.043-.165.09a3 3 0 0 0-.33.214q-.432.315-.656.707a2 2 0 0 0-.099.198l.082-1.283V4.701h-1.744v12.095zm.473-2.509a2.5 2.5 0 0 0 .566.7q.117.098.245.18l.144.08a2.1 2.1 0 0 0 .975.232q1.07 0 1.645-.675.576-.69.576-1.778 0-1.102-.576-1.777-.56-.691-1.645-.692a2.2 2.2 0 0 0-1.015.235q-.22.113-.415.282l-.15.142a2.1 2.1 0 0 0-.42.594q-.223.479-.223 1.1v.115q0 .705.293 1.26zm2.616-.293c.157-.191.28-.479.28-.967 0-.51-.13-.79-.276-.961l-.021-.026c-.082-.1-.232-.225-.67-.225a.87.87 0 0 0-.681.279l-.012.011c-.154.155-.274.38-.274.807v.115c0 .285.057.499.144.669a1.1 1.1 0 0 0 .367.405c.137.082.28.123.455.123.423 0 .59-.118.686-.23zm8.266-3.013q.345-.13.724-.14l.069-.002q.493 0 .642.099l.247-1.794q-.196-.099-.717-.099a2.3 2.3 0 0 0-.545.063 2 2 0 0 0-.411.148 2.2 2.2 0 0 0-.4.249 2.5 2.5 0 0 0-.485.499 2.7 2.7 0 0 0-.32.581l-.05.137v-1.48h-1.778v7.553h1.777v-3.884q0-.546.159-.943a1.5 1.5 0 0 1 .466-.636 2.5 2.5 0 0 1 .399-.253 2 2 0 0 1 .224-.099zm9.784 2.656.05-.922q0-1.743-.856-2.698-.838-.97-2.584-.97-1.119-.001-2.007.493a3.46 3.46 0 0 0-1.4 1.382q-.493.906-.493 2.106 0 1.07.428 1.975.428.89 1.332 1.432.906.526 2.255.526.973 0 1.668-.185l.044-.012.135-.04q.613-.184.984-.421l-.542-1.267q-.3.162-.642.274l-.297.087q-.51.131-1.3.131-.954 0-1.497-.444a1.6 1.6 0 0 1-.192-.193q-.366-.44-.512-1.234l-.004-.021zm-5.427-1.256-.003.022h3.752v-.138q-.011-.727-.288-1.118a1 1 0 0 0-.156-.176q-.46-.428-1.316-.428-.986 0-1.494.604-.379.45-.494 1.234zm-27.053 2.77V4.7h-1.86v12.095h5.333V15.15zm7.103-5.908v7.553h-1.843V9.242h1.843z'/%3E%3Cpath fill='%23fff' d='m19.63 11.151-.757-1.71-.345 1.71-1.12 5.644h-1.827L18.083 4.7h.197l3.325 6.533.988 2.19.988-2.19L26.839 4.7h.181l2.6 12.095h-1.81l-1.218-5.644-.362-1.71-.658 1.71-2.93 5.644h-.098l-2.913-5.644zm14.836 5.81q-1.02 0-1.893-.478a3.8 3.8 0 0 1-1.381-1.382q-.51-.906-.51-2.106 0-1.185.444-2.074a3.36 3.36 0 0 1 1.3-1.382q.839-.494 1.974-.494a3.3 3.3 0 0 1 1.234.231 3.3 3.3 0 0 1 .97.575q.396.33.527.659l.033-1.267h1.694v7.553H37.18l-.033-1.332q-.279.593-1.02 1.053a3.17 3.17 0 0 1-1.662.444zm.296-1.482q.938 0 1.58-.642.642-.66.642-1.711v-.115q0-.708-.296-1.267a2.2 2.2 0 0 0-.807-.872 2.1 2.1 0 0 0-1.119-.313q-1.053 0-1.629.692-.575.675-.575 1.76 0 1.103.559 1.795.577.675 1.645.675zm6.521-6.237h1.711v1.4q.906-1.597 2.83-1.597 1.596 0 2.584 1.02.988 1.005.988 2.914 0 1.185-.493 2.09a3.46 3.46 0 0 1-1.316 1.399 3.5 3.5 0 0 1-1.844.493q-.954 0-1.662-.329a2.67 2.67 0 0 1-1.086-.97l.017 5.134h-1.728zm4.048 6.22q1.07 0 1.645-.674.577-.69.576-1.762 0-1.119-.576-1.777-.558-.675-1.645-.675-.592 0-1.12.296-.51.28-.822.823-.296.527-.296 1.234v.115q0 .708.296 1.267.313.543.823.855.51.296 1.119.297z'/%3E%3Cpath fill='%23e1e3e9' d='M51.325 4.7h1.86v10.45h3.473v1.646h-5.333zm7.12 4.542h1.843v7.553h-1.843zm.905-1.415a1.16 1.16 0 0 1-.856-.346 1.17 1.17 0 0 1-.346-.856 1.05 1.05 0 0 1 .346-.79q.346-.329.856-.329.494 0 .839.33a1.05 1.05 0 0 1 .345.79 1.16 1.16 0 0 1-.345.855q-.33.346-.84.346zm7.875 9.133a3.17 3.17 0 0 1-1.662-.444q-.723-.46-1.004-1.053l-.033 1.332h-1.71V4.701h1.743v4.657l-.082 1.283q.279-.658 1.086-1.119a3.5 3.5 0 0 1 1.778-.477q1.119 0 1.942.51a3.24 3.24 0 0 1 1.283 1.4q.445.888.444 2.072 0 1.201-.526 2.09a3.5 3.5 0 0 1-1.382 1.366 3.8 3.8 0 0 1-1.876.477zm-.296-1.481q1.069 0 1.645-.675.577-.69.577-1.778 0-1.102-.577-1.776-.56-.691-1.645-.692a2.12 2.12 0 0 0-1.58.659q-.642.641-.642 1.694v.115q0 .71.296 1.267a2.4 2.4 0 0 0 .807.872 2.1 2.1 0 0 0 1.119.313zm5.927-6.237h1.777v1.481q.263-.757.856-1.217a2.14 2.14 0 0 1 1.349-.46q.527 0 .724.098l-.247 1.794q-.149-.099-.642-.099-.774 0-1.416.494-.626.493-.626 1.58v3.883h-1.777V9.242zm9.534 7.718q-1.35 0-2.255-.526-.904-.543-1.332-1.432a4.6 4.6 0 0 1-.428-1.975q0-1.2.493-2.106a3.46 3.46 0 0 1 1.4-1.382q.889-.495 2.007-.494 1.744 0 2.584.97.855.956.856 2.7 0 .444-.05.92h-5.43q.18 1.005.708 1.45.542.443 1.497.443.79 0 1.3-.131a4 4 0 0 0 .938-.362l.542 1.267q-.411.263-1.119.46-.708.198-1.711.197zm1.596-4.558q.016-1.02-.444-1.432-.46-.428-1.316-.428-1.728 0-1.991 1.86z'/%3E%3Cpath d='M5.074 15.948a.484.657 0 0 0-.486.659v1.84a.484.657 0 0 0 .486.659h4.101a.484.657 0 0 0 .486-.659v-1.84a.484.657 0 0 0-.486-.659zm3.56 1.16H5.617v.838h3.017z' style='fill:%23fff;fill-rule:evenodd;stroke-width:1.03600001'/%3E%3Cg style='stroke-width:1.12603545'%3E%3Cpath d='M-9.408-1.416c-3.833-.025-7.056 2.912-7.08 6.615-.02 3.08 1.653 4.832 3.107 6.268.903.892 1.721 1.74 2.32 2.902l-.525-.004c-.543-.003-.992.304-1.24.639a1.87 1.87 0 0 0-.362 1.121l-.011 1.877c-.003.402.104.787.347 1.125.244.338.688.653 1.23.656l4.142.028c.542.003.99-.306 1.238-.641a1.87 1.87 0 0 0 .363-1.121l.012-1.875a1.87 1.87 0 0 0-.348-1.127c-.243-.338-.688-.653-1.23-.656l-.518-.004c.597-1.145 1.425-1.983 2.348-2.87 1.473-1.414 3.18-3.149 3.2-6.226-.016-3.59-2.923-6.684-6.993-6.707m-.006 1.1v.002c3.274.02 5.92 2.532 5.9 5.6-.017 2.706-1.39 4.026-2.863 5.44-1.034.994-2.118 2.033-2.814 3.633-.018.041-.052.055-.075.065q-.013.004-.02.01a.34.34 0 0 1-.226.084.34.34 0 0 1-.224-.086l-.092-.077c-.699-1.615-1.768-2.669-2.781-3.67-1.454-1.435-2.797-2.762-2.78-5.478.02-3.067 2.7-5.545 5.975-5.523m-.02 2.826c-1.62-.01-2.944 1.315-2.955 2.96-.01 1.646 1.295 2.988 2.916 2.999h.002c1.621.01 2.943-1.316 2.953-2.961.011-1.646-1.294-2.988-2.916-2.998m-.005 1.1c1.017.006 1.829.83 1.822 1.89s-.83 1.874-1.848 1.867c-1.018-.006-1.829-.83-1.822-1.89s.83-1.874 1.848-1.868m-2.155 11.857 4.14.025c.271.002.49.305.487.676l-.013 1.875c-.003.37-.224.67-.495.668l-4.14-.025c-.27-.002-.487-.306-.485-.676l.012-1.875c.003-.37.224-.67.494-.668' style='color:%23000;font-style:normal;font-variant:normal;font-weight:400;font-stretch:normal;font-size:medium;line-height:normal;font-family:sans-serif;font-variant-ligatures:normal;font-variant-position:normal;font-variant-caps:normal;font-variant-numeric:normal;font-variant-alternates:normal;font-feature-settings:normal;text-indent:0;text-align:start;text-decoration:none;text-decoration-line:none;text-decoration-style:solid;text-decoration-color:%23000;letter-spacing:normal;word-spacing:normal;text-transform:none;writing-mode:lr-tb;direction:ltr;text-orientation:mixed;dominant-baseline:auto;baseline-shift:baseline;text-anchor:start;white-space:normal;shape-padding:0;clip-rule:evenodd;display:inline;overflow:visible;visibility:visible;opacity:1;isolation:auto;mix-blend-mode:normal;color-interpolation:sRGB;color-interpolation-filters:linearRGB;solid-color:%23000;solid-opacity:1;vector-effect:none;fill:%23000;fill-opacity:.4;fill-rule:evenodd;stroke:none;stroke-width:2.47727823;stroke-linecap:butt;stroke-linejoin:miter;stroke-miterlimit:4;stroke-dasharray:none;stroke-dashoffset:0;stroke-opacity:1;color-rendering:auto;image-rendering:auto;shape-rendering:auto;text-rendering:auto' transform='translate(15.553 2.85)scale(.88807)'/%3E%3Cpath d='M-9.415-.316C-12.69-.338-15.37 2.14-15.39 5.207c-.017 2.716 1.326 4.041 2.78 5.477 1.013 1 2.081 2.055 2.78 3.67l.092.076a.34.34 0 0 0 .225.086.34.34 0 0 0 .227-.083l.019-.01c.022-.009.057-.024.074-.064.697-1.6 1.78-2.64 2.814-3.634 1.473-1.414 2.847-2.733 2.864-5.44.02-3.067-2.627-5.58-5.901-5.601m-.057 8.784c1.621.011 2.944-1.315 2.955-2.96.01-1.646-1.295-2.988-2.916-2.999-1.622-.01-2.945 1.315-2.955 2.96s1.295 2.989 2.916 3' style='clip-rule:evenodd;fill:%23e1e3e9;fill-opacity:1;fill-rule:evenodd;stroke:none;stroke-width:2.47727823;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:.4' transform='translate(15.553 2.85)scale(.88807)'/%3E%3Cpath d='M-11.594 15.465c-.27-.002-.492.297-.494.668l-.012 1.876c-.003.371.214.673.485.675l4.14.027c.271.002.492-.298.495-.668l.012-1.877c.003-.37-.215-.672-.485-.674z' style='clip-rule:evenodd;fill:%23fff;fill-opacity:1;fill-rule:evenodd;stroke:none;stroke-width:2.47727823;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:.4' transform='translate(15.553 2.85)scale(.88807)'/%3E%3C/g%3E%3C/svg%3E")}}.maplibregl-ctrl.maplibregl-ctrl-attrib{background-color:#ffffff80;margin:0;padding:0 5px}@media screen{.maplibregl-ctrl-attrib.maplibregl-compact{background-color:#fff;border-radius:12px;box-sizing:content-box;color:#000;margin:10px;min-height:20px;padding:2px 24px 2px 0;position:relative}.maplibregl-ctrl-attrib.maplibregl-compact-show{padding:2px 28px 2px 8px;visibility:visible}.maplibregl-ctrl-bottom-left>.maplibregl-ctrl-attrib.maplibregl-compact-show,.maplibregl-ctrl-top-left>.maplibregl-ctrl-attrib.maplibregl-compact-show{border-radius:12px;padding:2px 8px 2px 28px}.maplibregl-ctrl-attrib.maplibregl-compact .maplibregl-ctrl-attrib-inner{display:none}.maplibregl-ctrl-attrib-button{background-color:#ffffff80;background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' fill-rule='evenodd' viewBox='0 0 20 20'%3E%3Cpath d='M4 10a6 6 0 1 0 12 0 6 6 0 1 0-12 0m5-3a1 1 0 1 0 2 0 1 1 0 1 0-2 0m0 3a1 1 0 1 1 2 0v3a1 1 0 1 1-2 0'/%3E%3C/svg%3E");border:0;border-radius:12px;box-sizing:border-box;cursor:pointer;display:none;height:24px;outline:none;position:absolute;right:0;top:0;width:24px}.maplibregl-ctrl-attrib summary.maplibregl-ctrl-attrib-button{-webkit-appearance:none;-moz-appearance:none;appearance:none;list-style:none}.maplibregl-ctrl-attrib summary.maplibregl-ctrl-attrib-button::-webkit-details-marker{display:none}.maplibregl-ctrl-bottom-left .maplibregl-ctrl-attrib-button,.maplibregl-ctrl-top-left .maplibregl-ctrl-attrib-button{left:0}.maplibregl-ctrl-attrib.maplibregl-compact .maplibregl-ctrl-attrib-button,.maplibregl-ctrl-attrib.maplibregl-compact-show .maplibregl-ctrl-attrib-inner{display:block}.maplibregl-ctrl-attrib.maplibregl-compact-show .maplibregl-ctrl-attrib-button{background-color:#0000000d}.maplibregl-ctrl-bottom-right>.maplibregl-ctrl-attrib.maplibregl-compact:after{bottom:0;right:0}.maplibregl-ctrl-top-right>.maplibregl-ctrl-attrib.maplibregl-compact:after{right:0;top:0}.maplibregl-ctrl-top-left>.maplibregl-ctrl-attrib.maplibregl-compact:after{left:0;top:0}.maplibregl-ctrl-bottom-left>.maplibregl-ctrl-attrib.maplibregl-compact:after{bottom:0;left:0}}@media screen and (forced-colors:active){.maplibregl-ctrl-attrib.maplibregl-compact:after{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' fill='%23fff' fill-rule='evenodd' viewBox='0 0 20 20'%3E%3Cpath d='M4 10a6 6 0 1 0 12 0 6 6 0 1 0-12 0m5-3a1 1 0 1 0 2 0 1 1 0 1 0-2 0m0 3a1 1 0 1 1 2 0v3a1 1 0 1 1-2 0'/%3E%3C/svg%3E")}}@media screen and (forced-colors:active) and (prefers-color-scheme:light){.maplibregl-ctrl-attrib.maplibregl-compact:after{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' fill-rule='evenodd' viewBox='0 0 20 20'%3E%3Cpath d='M4 10a6 6 0 1 0 12 0 6 6 0 1 0-12 0m5-3a1 1 0 1 0 2 0 1 1 0 1 0-2 0m0 3a1 1 0 1 1 2 0v3a1 1 0 1 1-2 0'/%3E%3C/svg%3E")}}.maplibregl-ctrl-attrib a{color:#000000bf;text-decoration:none}.maplibregl-ctrl-attrib a:hover{color:inherit;text-decoration:underline}.maplibregl-attrib-empty{display:none}.maplibregl-ctrl-scale{background-color:#ffffffbf;border:2px solid #333;border-top:#333;box-sizing:border-box;color:#333;font-size:10px;padding:0 5px}.maplibregl-popup{display:flex;left:0;pointer-events:none;position:absolute;top:0;will-change:transform}.maplibregl-popup-anchor-top,.maplibregl-popup-anchor-top-left,.maplibregl-popup-anchor-top-right{flex-direction:column}.maplibregl-popup-anchor-bottom,.maplibregl-popup-anchor-bottom-left,.maplibregl-popup-anchor-bottom-right{flex-direction:column-reverse}.maplibregl-popup-anchor-left{flex-direction:row}.maplibregl-popup-anchor-right{flex-direction:row-reverse}.maplibregl-popup-tip{border:10px solid transparent;height:0;width:0;z-index:1}.maplibregl-popup-anchor-top .maplibregl-popup-tip{align-self:center;border-bottom-color:#fff;border-top:none}.maplibregl-popup-anchor-top-left .maplibregl-popup-tip{align-self:flex-start;border-bottom-color:#fff;border-left:none;border-top:none}.maplibregl-popup-anchor-top-right .maplibregl-popup-tip{align-self:flex-end;border-bottom-color:#fff;border-right:none;border-top:none}.maplibregl-popup-anchor-bottom .maplibregl-popup-tip{align-self:center;border-bottom:none;border-top-color:#fff}.maplibregl-popup-anchor-bottom-left .maplibregl-popup-tip{align-self:flex-start;border-bottom:none;border-left:none;border-top-color:#fff}.maplibregl-popup-anchor-bottom-right .maplibregl-popup-tip{align-self:flex-end;border-bottom:none;border-right:none;border-top-color:#fff}.maplibregl-popup-anchor-left .maplibregl-popup-tip{align-self:center;border-left:none;border-right-color:#fff}.maplibregl-popup-anchor-right .maplibregl-popup-tip{align-self:center;border-left-color:#fff;border-right:none}.maplibregl-popup-close-button{background-color:transparent;border:0;border-radius:0 3px 0 0;cursor:pointer;position:absolute;right:0;top:0}.maplibregl-popup-close-button:hover{background-color:#0000000d}.maplibregl-popup-content{background:#fff;border-radius:3px;box-shadow:0 1px 2px #0000001a;padding:15px 10px;pointer-events:auto;position:relative}.maplibregl-popup-anchor-top-left .maplibregl-popup-content{border-top-left-radius:0}.maplibregl-popup-anchor-top-right .maplibregl-popup-content{border-top-right-radius:0}.maplibregl-popup-anchor-bottom-left .maplibregl-popup-content{border-bottom-left-radius:0}.maplibregl-popup-anchor-bottom-right .maplibregl-popup-content{border-bottom-right-radius:0}.maplibregl-popup-track-pointer{display:none}.maplibregl-popup-track-pointer *{pointer-events:none;-webkit-user-select:none;-moz-user-select:none;user-select:none}.maplibregl-map:hover .maplibregl-popup-track-pointer{display:flex}.maplibregl-map:active .maplibregl-popup-track-pointer{display:none}.maplibregl-marker{left:0;position:absolute;top:0;transition:opacity .2s;will-change:transform}.maplibregl-user-location-dot,.maplibregl-user-location-dot:before{background-color:#1da1f2;border-radius:50%;height:15px;width:15px}.maplibregl-user-location-dot:before{animation:maplibregl-user-location-dot-pulse 2s infinite;content:"";position:absolute}.maplibregl-user-location-dot:after{border:2px solid #fff;border-radius:50%;box-shadow:0 0 3px #00000059;box-sizing:border-box;content:"";height:19px;left:-2px;position:absolute;top:-2px;width:19px}@keyframes maplibregl-user-location-dot-pulse{0%{opacity:1;transform:scale(1)}70%{opacity:0;transform:scale(3)}to{opacity:0;transform:scale(1)}}.maplibregl-user-location-dot-stale{background-color:#aaa}.maplibregl-user-location-dot-stale:after{display:none}.maplibregl-user-location-accuracy-circle{background-color:#1da1f233;border-radius:100%;height:1px;width:1px}.maplibregl-crosshair,.maplibregl-crosshair .maplibregl-interactive,.maplibregl-crosshair .maplibregl-interactive:active{cursor:crosshair}.maplibregl-boxzoom{background:#fff;border:2px dotted #202020;height:0;left:0;opacity:.5;position:absolute;top:0;width:0}.maplibregl-cooperative-gesture-screen{align-items:center;background:#0006;color:#fff;display:flex;font-size:1.4em;inset:0;justify-content:center;line-height:1.2;opacity:0;padding:1rem;pointer-events:none;position:absolute;transition:opacity 1s ease 1s;z-index:99999}.maplibregl-cooperative-gesture-screen.maplibregl-show{opacity:1;transition:opacity .05s}.maplibregl-cooperative-gesture-screen .maplibregl-mobile-message{display:none}@media (hover:none),(width <= 480px){.maplibregl-cooperative-gesture-screen .maplibregl-desktop-message{display:none}.maplibregl-cooperative-gesture-screen .maplibregl-mobile-message{display:block}}.maplibregl-pseudo-fullscreen{height:100%!important;left:0!important;position:fixed!important;top:0!important;width:100%!important;z-index:99999}.post-edit-error{margin:1rem 0;padding:.75rem 1rem;border:1px solid #E5786A;border-radius:8px;background:#e5786a1f;color:#e5786a;font-size:.9rem;line-height:1.4}.editor-toolbar .mde-btn:before{font-style:normal;font-weight:400;font-family:inherit}.editor-toolbar .mde-bold:before{content:"B";font-weight:700}.editor-toolbar .mde-italic:before{content:"I";font-style:italic}.editor-toolbar .mde-ul:before{content:"\2022\2002\2014"}.editor-toolbar .mde-link:before{content:"\1f517"}.editor-toolbar .mde-preview:before{content:"\1f441"}.EasyMDEContainer .CodeMirror{min-height:180px}.photo-convert-status:empty{display:none}.photo-convert-status{font-size:var(--text-sm);margin-top:var(--space-2)}.photo-reauth-hint{display:none;font-size:var(--text-sm);color:var(--color-ink-muted);margin-top:var(--space-2)}.photo-reauth-hint.is-shown{display:block}.post-form-wrap select{width:100%;font-family:var(--font-ui);font-size:var(--text-base);padding:.875rem 2.5rem .875rem 1rem;min-height:44px;border:1px solid var(--color-border);border-radius:var(--radius-md);background:var(--color-canvas);color:var(--color-ink);-webkit-appearance:none;appearance:none;background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%2390887E' d='M1 1l5 5 5-5'/%3E%3C/svg%3E");background-repeat:no-repeat;background-position:right 1rem center}.post-form-wrap select:focus{outline:2px solid var(--color-accent);outline-offset:1px;border-color:var(--color-accent)}.post-form-wrap input[type=number]{width:100%;font-family:var(--font-ui);font-size:var(--text-base);padding:.875rem 1rem;min-height:44px;border:1px solid var(--color-border);border-radius:var(--radius-md);background:var(--color-canvas);color:var(--color-ink);-webkit-appearance:none;appearance:none}.post-form-wrap input[type=number]:focus{outline:2px solid var(--color-accent);outline-offset:1px;border-color:var(--color-accent)}.more-options{margin-bottom:var(--space-5);border:1px solid var(--color-border);border-radius:var(--radius-md);background:var(--color-canvas)}.more-options__summary{cursor:pointer;padding:.875rem 1rem;min-height:44px;display:flex;align-items:center;font-family:var(--font-ui);font-size:var(--text-sm);font-weight:600;color:var(--color-ink);list-style:none;user-select:none}.more-options__summary::-webkit-details-marker{display:none}.more-options__summary:before{content:"\25b8";margin-right:var(--space-2);color:var(--color-ink-muted);transition:transform .15s}.more-options[open] .more-options__summary:before{transform:rotate(90deg)}.more-options[open] .more-options__summary{border-bottom:1px solid var(--color-border)}.more-options>.form-field{padding:0 1rem}.more-options>.form-field:first-of-type{padding-top:var(--space-4)}.more-options>.form-field:last-child{padding-bottom:var(--space-4);margin-bottom:0}.btn-action.is-loading{position:relative;color:transparent;pointer-events:none}.btn-action.is-loading:after{content:"";position:absolute;top:50%;left:50%;width:16px;height:16px;margin:-8px 0 0 -8px;border:2px solid var(--color-ink-muted);border-top-color:var(--color-accent);border-radius:50%;animation:post-spin .7s linear infinite}.btn-action[disabled]{opacity:.5;cursor:not-allowed}@keyframes post-spin{to{transform:rotate(360deg)}}.post-form-wrap .notices{padding:1rem 1.1rem;border-radius:var(--radius-md);font-size:var(--text-base);margin:0 0 var(--space-5);background:var(--color-canvas);color:var(--color-ink);border-left:4px solid var(--color-accent)}.post-form-wrap .notices p{margin:0}.post-form-wrap .notices.error,.post-form-wrap .notices.red{border-left-color:var(--color-error)}.post-form-wrap .notices.success,.post-form-wrap .notices.green{border-left-color:var(--color-accent)}.post-success{margin:0 0 var(--space-5);padding:1.1rem;border-radius:var(--radius-md);background:var(--color-accent-light);border:1px solid var(--color-accent)}.post-success__title{font-family:var(--font-ui);font-size:var(--text-md);font-weight:600;color:var(--color-ink);margin:0 0 var(--space-3)}.post-success__actions{display:flex;flex-wrap:wrap;gap:var(--space-3)}.post-success__view{flex:1;min-width:140px;text-align:center;padding:.8rem 1rem;min-height:44px;border-radius:var(--radius-md);background:var(--color-accent);color:var(--color-accent-on);font-weight:600;text-decoration:none}.post-success__again{flex:1;min-width:140px;text-align:center;padding:.8rem 1rem;min-height:44px;border-radius:var(--radius-md);background:transparent;color:var(--color-ink);border:1px solid var(--color-border);font-weight:600;text-decoration:none}.filepond--credits{display:none!important}.filepond--root{font-family:var(--font-ui);font-size:var(--text-base)}.filepond--panel-root{background-color:var(--color-canvas);border:1px solid var(--color-border);border-radius:var(--radius-md)}.filepond--drop-label,.filepond--drop-label label{color:var(--color-ink-muted)}.filepond--label-action{color:var(--color-accent);text-decoration-color:var(--color-accent)}.filepond--item-panel{background-color:var(--color-surface-raised);border-radius:var(--radius-md)}.filepond--drip-blob{background-color:var(--color-accent)}.filepond--file{color:var(--color-ink)}.filepond--file-action-button{color:var(--color-ink);background-color:#00000073}.filepond--file-action-button:hover{background-color:#000000a6}.filepond--image-preview-overlay{display:none!important}.filepond--item[data-filepond-item-state=processing-complete] .filepond--file-info,.filepond--item[data-filepond-item-state=processing-complete] .filepond--file-status{opacity:0}.filepond--item[data-filepond-item-state=processing-complete]:after{content:"\2713";position:absolute;top:8px;right:8px;z-index:5;width:24px;height:24px;line-height:24px;text-align:center;border-radius:50%;background:var(--color-accent);color:#fff;font-size:15px;font-weight:700;box-shadow:0 1px 3px #00000059;pointer-events:none}.filepond--list.filepond--list{margin:.25rem}.filepond--item{width:calc(33.333% - .5rem)}.filepond--item .filepond--panel-root,.filepond--item .filepond--image-preview-wrapper{border-radius:var(--radius-sm)}.filepond--image-preview,.filepond--image-preview-wrapper,.filepond--image-clip,.filepond--image-preview canvas,.filepond--image-bitmap,.filepond--file img{-webkit-user-drag:none;-khtml-user-drag:none;user-drag:none}.filepond--item[data-filepond-item-state=idle] .filepond--file-info,.filepond--item[data-filepond-item-state=idle] .filepond--file-status{opacity:0}.photos-collapse{margin-bottom:var(--space-5);border:1px solid var(--color-border);border-radius:var(--radius-md);background:var(--color-canvas)}.photos-collapse__summary{cursor:pointer;padding:.875rem 1rem;min-height:44px;display:flex;align-items:center;font-family:var(--font-ui);font-size:var(--text-sm);font-weight:600;color:var(--color-ink);list-style:none;user-select:none}.photos-collapse__summary::-webkit-details-marker{display:none}.photos-collapse__summary:before{content:"\25b8";margin-right:var(--space-2);color:var(--color-ink-muted);transition:transform .15s}.photos-collapse[open] .photos-collapse__summary:before{transform:rotate(90deg)}.photos-collapse[open] .photos-collapse__summary{border-bottom:1px solid var(--color-border)}.photos-collapse>:not(summary){padding-left:1rem;padding-right:1rem}.photos-collapse[open] .filepond--root,.photos-collapse[open] .filepond-root{margin:var(--space-4) 0}.photos-collapse[open]>.photo-convert-status:last-child,.photos-collapse[open]>.photo-reauth-hint:last-child{padding-bottom:var(--space-4)}.EasyMDEContainer .CodeMirror{background:var(--color-canvas);color:var(--color-ink);border:1px solid var(--color-border);border-radius:0 0 var(--radius-md) var(--radius-md);font-family:var(--font-ui);font-size:var(--text-base);line-height:var(--leading-normal);padding:var(--space-1)}.EasyMDEContainer .CodeMirror-cursor{border-color:var(--color-ink)}.EasyMDEContainer .CodeMirror-selected{background:var(--color-accent-light)!important}.EasyMDEContainer .editor-toolbar{background:var(--color-surface-raised);border:1px solid var(--color-border);border-bottom:none;border-radius:var(--radius-md) var(--radius-md) 0 0;opacity:1}.EasyMDEContainer .editor-toolbar button{color:var(--color-ink)!important;min-width:34px;height:34px}.EasyMDEContainer .editor-toolbar button:hover,.EasyMDEContainer .editor-toolbar button.active{background:var(--color-accent-light);border-color:var(--color-border)}.EasyMDEContainer .editor-toolbar i.separator{border-color:var(--color-border)}.EasyMDEContainer .editor-preview,.EasyMDEContainer .editor-preview-side{background:var(--color-canvas);color:var(--color-ink)}.EasyMDEContainer .editor-preview a{color:var(--color-accent)}.photo-editor{margin-bottom:var(--space-5)}.photo-editor__head{display:flex;align-items:center;justify-content:space-between;gap:var(--space-3);margin-bottom:var(--space-2)}.photo-editor__label{font-family:var(--font-ui);font-size:var(--text-base);font-weight:600;color:var(--color-ink)}.photo-editor__add{font-family:var(--font-ui);font-size:var(--text-sm);background:var(--color-accent);color:#fff;border:none;border-radius:var(--radius-sm);padding:var(--space-2) var(--space-4);cursor:pointer}.photo-editor__add:disabled{opacity:.5;cursor:default}.photo-editor__status{font-size:var(--text-sm);color:var(--color-ink-muted);min-height:1.2em;margin:0 0 var(--space-2)}.photo-editor__status.error{color:var(--color-error)}.photo-editor__grid{display:grid;grid-template-columns:repeat(3,1fr);gap:var(--space-2)}@media (min-width: 600px){.photo-editor__grid{grid-template-columns:repeat(4,1fr)}}.photo-editor__loading,.photo-editor__empty{grid-column:1 / -1;color:var(--color-ink-muted);font-size:var(--text-sm);padding:var(--space-4) 0}.photo-editor__cell{position:relative;aspect-ratio:1 / 1;border-radius:var(--radius-sm);overflow:hidden;background:var(--color-surface-raised);cursor:grab;touch-action:none}.photo-editor__cell:active{cursor:grabbing}.photo-editor__img{width:100%;height:100%;object-fit:cover;display:block;-webkit-user-drag:none;user-select:none;pointer-events:none}.photo-editor__cell:first-child:after{content:"Cover";position:absolute;left:var(--space-1);bottom:var(--space-1);font-family:var(--font-ui);font-size:var(--text-xs, .7rem);font-weight:600;color:#fff;background:var(--color-accent);padding:1px 6px;border-radius:var(--radius-sm);pointer-events:none}.photo-editor__del{position:absolute;top:var(--space-1);right:var(--space-1);width:24px;height:24px;line-height:1;display:flex;align-items:center;justify-content:center;border:none;border-radius:50%;background:#0000008c;color:#fff;font-size:.85rem;cursor:pointer}.photo-editor__del:hover{background:#000000bf}.photo-editor__del:disabled{opacity:.4;cursor:default}.photo-editor__confirm{position:absolute;inset:0;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:var(--space-1);padding:var(--space-2);background:#000000b8;text-align:center}.photo-editor__confirm-q{color:#fff;font-family:var(--font-ui);font-size:var(--text-sm)}.photo-editor__confirm button{font-family:var(--font-ui);font-size:var(--text-xs, .72rem);border:none;border-radius:var(--radius-sm);padding:3px 10px;cursor:pointer}.photo-editor__confirm-yes{background:var(--color-error);color:#fff}.photo-editor__confirm-no{background:#fff;color:var(--color-ink)}.photo-editor__confirm button:disabled{opacity:.5;cursor:default}.photo-editor__cell.sortable-ghost{opacity:.4}.photo-editor__cell.sortable-chosen{outline:2px solid var(--color-accent)}.location-details{margin-bottom:var(--space-5);border:1px solid var(--color-border);border-radius:var(--radius-md);background:var(--color-canvas)}.location-details__summary{cursor:pointer;padding:.875rem 1rem;min-height:44px;display:flex;align-items:center;font-family:var(--font-ui);font-size:var(--text-sm);font-weight:600;color:var(--color-ink);list-style:none;user-select:none}.location-details__summary::-webkit-details-marker{display:none}.location-details__summary:before{content:"\25b8";margin-right:var(--space-2);color:var(--color-ink-muted);transition:transform .15s}.location-details[open] .location-details__summary:before{transform:rotate(90deg)}.location-details[open] .location-details__summary{border-bottom:1px solid var(--color-border)}.location-details>.form-field{padding:0 1rem}.location-details>.form-field:first-of-type{padding-top:var(--space-4)}.location-details>.form-field:last-of-type{padding-bottom:var(--space-2)}.location-details__body{padding:1rem}.location-search-row{display:flex;gap:var(--space-3);align-items:center;flex-wrap:wrap}.location-search-hint{font-size:var(--text-sm);color:var(--color-ink-muted);margin-top:var(--space-2)}.location-search-hint:empty{display:none}.location-search-results{list-style:none;margin:var(--space-3) 0 0;padding:0;border:1px solid var(--color-border);border-radius:var(--radius-md);overflow:hidden}.location-search-results:empty{display:none;margin:0;border:none}.location-search-results li+li{border-top:1px solid var(--color-border)}.location-search-results button{display:block;width:100%;text-align:left;padding:.75rem 1rem;min-height:44px;background:var(--color-canvas);border:none;font-family:var(--font-ui);font-size:var(--text-sm);color:var(--color-ink);cursor:pointer}.location-search-results button:hover,.location-search-results button:focus-visible{background:var(--color-paper)}.location-map{position:relative;width:100%;height:240px;margin-top:var(--space-4);border-radius:var(--radius-md);overflow:hidden;background:var(--color-paper)}.location-map .maplibregl-canvas{border-radius:var(--radius-md)}.location-pin{width:44px;height:44px;border-radius:50%;background:var(--color-accent);border:3px solid #fff;box-shadow:0 1px 6px #00000080;cursor:grab}.location-pin:active{cursor:grabbing}.location-field--mismatch{border-color:var(--color-error)!important;outline-color:var(--color-error)!important}.location-field-note{display:block;font-size:var(--text-sm);color:var(--color-error);margin-top:var(--space-1)} +.CodeMirror{font-family:monospace;height:300px;color:#000;direction:ltr}.CodeMirror-lines{padding:4px 0}.CodeMirror pre.CodeMirror-line,.CodeMirror pre.CodeMirror-line-like{padding:0 4px}.CodeMirror-gutter-filler,.CodeMirror-scrollbar-filler{background-color:#fff}.CodeMirror-gutters{border-right:1px solid #ddd;background-color:#f7f7f7;white-space:nowrap}.CodeMirror-linenumber{padding:0 3px 0 5px;min-width:20px;text-align:right;color:#999;white-space:nowrap}.CodeMirror-guttermarker{color:#000}.CodeMirror-guttermarker-subtle{color:#999}.CodeMirror-cursor{border-left:1px solid #000;border-right:none;width:0}.CodeMirror div.CodeMirror-secondarycursor{border-left:1px solid silver}.cm-fat-cursor .CodeMirror-cursor{width:auto;border:0!important;background:#7e7}.cm-fat-cursor div.CodeMirror-cursors{z-index:1}.cm-fat-cursor .CodeMirror-line::selection,.cm-fat-cursor .CodeMirror-line>span::selection,.cm-fat-cursor .CodeMirror-line>span>span::selection{background:0 0}.cm-fat-cursor .CodeMirror-line::-moz-selection,.cm-fat-cursor .CodeMirror-line>span::-moz-selection,.cm-fat-cursor .CodeMirror-line>span>span::-moz-selection{background:0 0}.cm-fat-cursor{caret-color:transparent}@-moz-keyframes blink{50%{background-color:transparent}}@-webkit-keyframes blink{50%{background-color:transparent}}@keyframes blink{50%{background-color:transparent}}.cm-tab{display:inline-block;text-decoration:inherit}.CodeMirror-rulers{position:absolute;inset:-50px 0 0;overflow:hidden}.CodeMirror-ruler{border-left:1px solid #ccc;top:0;bottom:0;position:absolute}.cm-s-default .cm-header{color:#00f}.cm-s-default .cm-quote{color:#090}.cm-negative{color:#d44}.cm-positive{color:#292}.cm-header,.cm-strong{font-weight:700}.cm-em{font-style:italic}.cm-link{text-decoration:underline}.cm-strikethrough{text-decoration:line-through}.cm-s-default .cm-keyword{color:#708}.cm-s-default .cm-atom{color:#219}.cm-s-default .cm-number{color:#164}.cm-s-default .cm-def{color:#00f}.cm-s-default .cm-variable-2{color:#05a}.cm-s-default .cm-type,.cm-s-default .cm-variable-3{color:#085}.cm-s-default .cm-comment{color:#a50}.cm-s-default .cm-string{color:#a11}.cm-s-default .cm-string-2{color:#f50}.cm-s-default .cm-meta,.cm-s-default .cm-qualifier{color:#555}.cm-s-default .cm-builtin{color:#30a}.cm-s-default .cm-bracket{color:#997}.cm-s-default .cm-tag{color:#170}.cm-s-default .cm-attribute{color:#00c}.cm-s-default .cm-hr{color:#999}.cm-s-default .cm-link{color:#00c}.cm-s-default .cm-error,.cm-invalidchar{color:red}.CodeMirror-composing{border-bottom:2px solid}div.CodeMirror span.CodeMirror-matchingbracket{color:#0b0}div.CodeMirror span.CodeMirror-nonmatchingbracket{color:#a22}.CodeMirror-matchingtag{background:#ff96004d}.CodeMirror-activeline-background{background:#e8f2ff}.CodeMirror{position:relative;overflow:hidden;background:#fff}.CodeMirror-scroll{overflow:scroll!important;margin-bottom:-50px;margin-right:-50px;padding-bottom:50px;height:100%;outline:0;position:relative;z-index:0}.CodeMirror-sizer{position:relative;border-right:50px solid transparent}.CodeMirror-gutter-filler,.CodeMirror-hscrollbar,.CodeMirror-scrollbar-filler,.CodeMirror-vscrollbar{position:absolute;z-index:6;display:none;outline:0}.CodeMirror-vscrollbar{right:0;top:0;overflow-x:hidden;overflow-y:scroll}.CodeMirror-hscrollbar{bottom:0;left:0;overflow-y:hidden;overflow-x:scroll}.CodeMirror-scrollbar-filler{right:0;bottom:0}.CodeMirror-gutter-filler{left:0;bottom:0}.CodeMirror-gutters{position:absolute;left:0;top:0;min-height:100%;z-index:3}.CodeMirror-gutter{white-space:normal;height:100%;display:inline-block;vertical-align:top;margin-bottom:-50px}.CodeMirror-gutter-wrapper{position:absolute;z-index:4;background:0 0!important;border:none!important}.CodeMirror-gutter-background{position:absolute;top:0;bottom:0;z-index:4}.CodeMirror-gutter-elt{position:absolute;cursor:default;z-index:4}.CodeMirror-gutter-wrapper ::selection{background-color:transparent}.CodeMirror-gutter-wrapper ::-moz-selection{background-color:transparent}.CodeMirror-lines{cursor:text;min-height:1px}.CodeMirror pre.CodeMirror-line,.CodeMirror pre.CodeMirror-line-like{-moz-border-radius:0;-webkit-border-radius:0;border-radius:0;border-width:0;background:0 0;font-family:inherit;font-size:inherit;margin:0;white-space:pre;word-wrap:normal;line-height:inherit;color:inherit;z-index:2;position:relative;overflow:visible;-webkit-tap-highlight-color:transparent;-webkit-font-variant-ligatures:contextual;font-variant-ligatures:contextual}.CodeMirror-wrap pre.CodeMirror-line,.CodeMirror-wrap pre.CodeMirror-line-like{word-wrap:break-word;white-space:pre-wrap;word-break:normal}.CodeMirror-linebackground{position:absolute;inset:0;z-index:0}.CodeMirror-linewidget{position:relative;z-index:2;padding:.1px}.CodeMirror-code{outline:0}.CodeMirror-gutter,.CodeMirror-gutters,.CodeMirror-linenumber,.CodeMirror-scroll,.CodeMirror-sizer{-moz-box-sizing:content-box;box-sizing:content-box}.CodeMirror-measure{position:absolute;width:100%;height:0;overflow:hidden;visibility:hidden}.CodeMirror-cursor{position:absolute;pointer-events:none}.CodeMirror-measure pre{position:static}div.CodeMirror-cursors{visibility:hidden;position:relative;z-index:3}div.CodeMirror-dragcursors,.CodeMirror-focused div.CodeMirror-cursors{visibility:visible}.CodeMirror-selected{background:#d9d9d9}.CodeMirror-focused .CodeMirror-selected{background:#d7d4f0}.CodeMirror-crosshair{cursor:crosshair}.CodeMirror-line::selection,.CodeMirror-line>span::selection,.CodeMirror-line>span>span::selection{background:#d7d4f0}.CodeMirror-line::-moz-selection,.CodeMirror-line>span::-moz-selection,.CodeMirror-line>span>span::-moz-selection{background:#d7d4f0}.cm-searching{background-color:#ffa;background-color:#ff06}.cm-force-border{padding-right:.1px}@media print{.CodeMirror div.CodeMirror-cursors{visibility:hidden}}.cm-tab-wrap-hack:after{content:""}span.CodeMirror-selectedtext{background:0 0}.EasyMDEContainer{display:block}.CodeMirror-rtl pre{direction:rtl}.EasyMDEContainer.sided--no-fullscreen{display:flex;flex-direction:row;flex-wrap:wrap}.EasyMDEContainer .CodeMirror{box-sizing:border-box;height:auto;border:1px solid #ced4da;border-bottom-left-radius:4px;border-bottom-right-radius:4px;padding:10px;font:inherit;z-index:0;word-wrap:break-word}.EasyMDEContainer .CodeMirror-scroll{cursor:text}.EasyMDEContainer .CodeMirror-fullscreen{background:#fff;position:fixed!important;inset:50px 0 0;height:auto;z-index:8;border-right:none!important;border-bottom-right-radius:0!important}.EasyMDEContainer .CodeMirror-sided{width:50%!important}.EasyMDEContainer.sided--no-fullscreen .CodeMirror-sided{border-right:none!important;border-bottom-right-radius:0;position:relative;flex:1 1 auto}.EasyMDEContainer .CodeMirror-placeholder{opacity:.5}.EasyMDEContainer .CodeMirror-focused .CodeMirror-selected{background:#d9d9d9}.editor-toolbar{position:relative;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;-o-user-select:none;user-select:none;padding:9px 10px;border-top:1px solid #ced4da;border-left:1px solid #ced4da;border-right:1px solid #ced4da;border-top-left-radius:4px;border-top-right-radius:4px}.editor-toolbar.fullscreen{width:100%;height:50px;padding-top:10px;padding-bottom:10px;box-sizing:border-box;background:#fff;border:0;position:fixed;top:0;left:0;opacity:1;z-index:9}.editor-toolbar.fullscreen:before{width:20px;height:50px;background:-moz-linear-gradient(left,#fff 0,rgba(255,255,255,0) 100%);background:-webkit-gradient(linear,left top,right top,color-stop(0,#fff),color-stop(100%,rgba(255,255,255,0)));background:-webkit-linear-gradient(left,#fff 0,rgba(255,255,255,0) 100%);background:-o-linear-gradient(left,#fff 0,rgba(255,255,255,0) 100%);background:-ms-linear-gradient(left,#fff 0,rgba(255,255,255,0) 100%);background:linear-gradient(to right,#fff 0,#fff0);position:fixed;top:0;left:0;margin:0;padding:0}.editor-toolbar.fullscreen:after{width:20px;height:50px;background:-moz-linear-gradient(left,rgba(255,255,255,0) 0,#fff 100%);background:-webkit-gradient(linear,left top,right top,color-stop(0,rgba(255,255,255,0)),color-stop(100%,#fff));background:-webkit-linear-gradient(left,rgba(255,255,255,0) 0,#fff 100%);background:-o-linear-gradient(left,rgba(255,255,255,0) 0,#fff 100%);background:-ms-linear-gradient(left,rgba(255,255,255,0) 0,#fff 100%);background:linear-gradient(to right,#fff0 0,#fff);position:fixed;top:0;right:0;margin:0;padding:0}.EasyMDEContainer.sided--no-fullscreen .editor-toolbar{width:100%}.editor-toolbar .easymde-dropdown,.editor-toolbar button{background:0 0;display:inline-block;text-align:center;text-decoration:none!important;height:30px;margin:0;padding:0;border:1px solid transparent;border-radius:3px;cursor:pointer}.editor-toolbar button{font-weight:700;min-width:30px;padding:0 6px;white-space:nowrap}.editor-toolbar button.active,.editor-toolbar button:hover{background:#fcfcfc;border-color:#95a5a6}.editor-toolbar i.separator{display:inline-block;width:0;border-left:1px solid #d9d9d9;border-right:1px solid #fff;color:transparent;text-indent:-10px;margin:0 6px}.editor-toolbar button:after{font-family:Arial,Helvetica Neue,Helvetica,sans-serif;font-size:65%;vertical-align:text-bottom;position:relative;top:2px}.editor-toolbar button.heading-1:after{content:"1"}.editor-toolbar button.heading-2:after{content:"2"}.editor-toolbar button.heading-3:after{content:"3"}.editor-toolbar button.heading-bigger:after{content:"\25b2"}.editor-toolbar button.heading-smaller:after{content:"\25bc"}.editor-toolbar.disabled-for-preview button:not(.no-disable){opacity:.6;pointer-events:none}@media only screen and (max-width:700px){.editor-toolbar i.no-mobile{display:none}}.editor-statusbar{padding:8px 10px;font-size:12px;color:#959694;text-align:right}.EasyMDEContainer.sided--no-fullscreen .editor-statusbar{width:100%}.editor-statusbar span{display:inline-block;min-width:4em;margin-left:1em}.editor-statusbar .lines:before{content:"lines: "}.editor-statusbar .words:before{content:"words: "}.editor-statusbar .characters:before{content:"characters: "}.editor-preview-full{position:absolute;width:100%;height:100%;top:0;left:0;z-index:7;overflow:auto;display:none;box-sizing:border-box}.editor-preview-side{position:fixed;bottom:0;width:50%;top:50px;right:0;z-index:9;overflow:auto;display:none;box-sizing:border-box;border:1px solid #ddd;word-wrap:break-word}.editor-preview-active-side{display:block}.EasyMDEContainer.sided--no-fullscreen .editor-preview-active-side{flex:1 1 auto;height:auto;position:static}.editor-preview-active{display:block}.editor-preview{padding:10px;background:#fafafa}.editor-preview>p{margin-top:0}.editor-preview pre{background:#eee;margin-bottom:10px}.editor-preview table td,.editor-preview table th{border:1px solid #ddd;padding:5px}.cm-s-easymde .cm-tag{color:#63a35c}.cm-s-easymde .cm-attribute{color:#795da3}.cm-s-easymde .cm-string{color:#183691}.cm-s-easymde .cm-header-1{font-size:calc(1.375rem + 1.5vw)}.cm-s-easymde .cm-header-2{font-size:calc(1.325rem + .9vw)}.cm-s-easymde .cm-header-3{font-size:calc(1.3rem + .6vw)}.cm-s-easymde .cm-header-4{font-size:calc(1.275rem + .3vw)}.cm-s-easymde .cm-header-5{font-size:1.25rem}.cm-s-easymde .cm-header-6{font-size:1rem}.cm-s-easymde .cm-header-1,.cm-s-easymde .cm-header-2,.cm-s-easymde .cm-header-3,.cm-s-easymde .cm-header-4,.cm-s-easymde .cm-header-5,.cm-s-easymde .cm-header-6{margin-bottom:.5rem;line-height:1.2}.cm-s-easymde .cm-comment{background:#0000000d;border-radius:2px}.cm-s-easymde .cm-link{color:#7f8c8d}.cm-s-easymde .cm-url{color:#aab2b3}.cm-s-easymde .cm-quote{color:#7f8c8d;font-style:italic}.editor-toolbar .easymde-dropdown{position:relative;background:linear-gradient(to bottom right,#fff 0 84%,#333 50% 100%);border-radius:0;border:1px solid #fff}.editor-toolbar .easymde-dropdown:hover{background:linear-gradient(to bottom right,#fff 0 84%,#333 50% 100%)}.easymde-dropdown-content{display:block;visibility:hidden;position:absolute;background-color:#f9f9f9;box-shadow:0 8px 16px #0003;padding:8px;z-index:2;top:30px}.easymde-dropdown:active .easymde-dropdown-content,.easymde-dropdown:focus .easymde-dropdown-content,.easymde-dropdown:focus-within .easymde-dropdown-content{visibility:visible}.easymde-dropdown-content button{display:block}span[data-img-src]:after{content:"";background-image:var(--bg-image);display:block;max-height:100%;max-width:100%;background-size:contain;height:0;padding-top:var(--height);width:var(--width);background-repeat:no-repeat}.CodeMirror .cm-spell-error:not(.cm-url):not(.cm-comment):not(.cm-tag):not(.cm-word){background:#ff000026}.post-edit-error{margin:1rem 0;padding:.75rem 1rem;border:1px solid #E5786A;border-radius:8px;background:#e5786a1f;color:#e5786a;font-size:.9rem;line-height:1.4}.editor-toolbar .mde-btn:before{font-style:normal;font-weight:400;font-family:inherit}.editor-toolbar .mde-bold:before{content:"B";font-weight:700}.editor-toolbar .mde-italic:before{content:"I";font-style:italic}.editor-toolbar .mde-ul:before{content:"\2022\2002\2014"}.editor-toolbar .mde-link:before{content:"\1f517"}.editor-toolbar .mde-preview:before{content:"\1f441"}.EasyMDEContainer .CodeMirror{min-height:180px}.photo-convert-status:empty{display:none}.photo-convert-status{font-size:var(--text-sm);margin-top:var(--space-2)}.photo-reauth-hint{display:none;font-size:var(--text-sm);color:var(--color-ink-muted);margin-top:var(--space-2)}.photo-reauth-hint.is-shown{display:block}.post-form-wrap select{width:100%;font-family:var(--font-ui);font-size:var(--text-base);padding:.875rem 2.5rem .875rem 1rem;min-height:44px;border:1px solid var(--color-border);border-radius:var(--radius-md);background:var(--color-canvas);color:var(--color-ink);-webkit-appearance:none;appearance:none;background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%2390887E' d='M1 1l5 5 5-5'/%3E%3C/svg%3E");background-repeat:no-repeat;background-position:right 1rem center}.post-form-wrap select:focus{outline:2px solid var(--color-accent);outline-offset:1px;border-color:var(--color-accent)}.post-form-wrap input[type=number]{width:100%;font-family:var(--font-ui);font-size:var(--text-base);padding:.875rem 1rem;min-height:44px;border:1px solid var(--color-border);border-radius:var(--radius-md);background:var(--color-canvas);color:var(--color-ink);-webkit-appearance:none;appearance:none}.post-form-wrap input[type=number]:focus{outline:2px solid var(--color-accent);outline-offset:1px;border-color:var(--color-accent)}.more-options{margin-bottom:var(--space-5);border:1px solid var(--color-border);border-radius:var(--radius-md);background:var(--color-canvas)}.more-options__summary{cursor:pointer;padding:.875rem 1rem;min-height:44px;display:flex;align-items:center;font-family:var(--font-ui);font-size:var(--text-sm);font-weight:600;color:var(--color-ink);list-style:none;user-select:none}.more-options__summary::-webkit-details-marker{display:none}.more-options__summary:before{content:"\25b8";margin-right:var(--space-2);color:var(--color-ink-muted);transition:transform .15s}.more-options[open] .more-options__summary:before{transform:rotate(90deg)}.more-options[open] .more-options__summary{border-bottom:1px solid var(--color-border)}.more-options>.form-field{padding:0 1rem}.more-options>.form-field:first-of-type{padding-top:var(--space-4)}.more-options>.form-field:last-child{padding-bottom:var(--space-4);margin-bottom:0}.btn-action.is-loading{position:relative;color:transparent;pointer-events:none}.btn-action.is-loading:after{content:"";position:absolute;top:50%;left:50%;width:16px;height:16px;margin:-8px 0 0 -8px;border:2px solid var(--color-ink-muted);border-top-color:var(--color-accent);border-radius:50%;animation:post-spin .7s linear infinite}.btn-action[disabled]{opacity:.5;cursor:not-allowed}@keyframes post-spin{to{transform:rotate(360deg)}}.post-form-wrap .notices{padding:1rem 1.1rem;border-radius:var(--radius-md);font-size:var(--text-base);margin:0 0 var(--space-5);background:var(--color-canvas);color:var(--color-ink);border-left:4px solid var(--color-accent)}.post-form-wrap .notices p{margin:0}.post-form-wrap .notices.error,.post-form-wrap .notices.red{border-left-color:var(--color-error)}.post-form-wrap .notices.success,.post-form-wrap .notices.green{border-left-color:var(--color-accent)}.post-success{margin:0 0 var(--space-5);padding:1.1rem;border-radius:var(--radius-md);background:var(--color-accent-light);border:1px solid var(--color-accent)}.post-success__title{font-family:var(--font-ui);font-size:var(--text-md);font-weight:600;color:var(--color-ink);margin:0 0 var(--space-3)}.post-success__actions{display:flex;flex-wrap:wrap;gap:var(--space-3)}.post-success__view{flex:1;min-width:140px;text-align:center;padding:.8rem 1rem;min-height:44px;border-radius:var(--radius-md);background:var(--color-accent);color:var(--color-accent-on);font-weight:600;text-decoration:none}.post-success__again{flex:1;min-width:140px;text-align:center;padding:.8rem 1rem;min-height:44px;border-radius:var(--radius-md);background:transparent;color:var(--color-ink);border:1px solid var(--color-border);font-weight:600;text-decoration:none}.filepond--credits{display:none!important}.filepond--root{font-family:var(--font-ui);font-size:var(--text-base)}.filepond--panel-root{background-color:var(--color-canvas);border:1px solid var(--color-border);border-radius:var(--radius-md)}.filepond--drop-label,.filepond--drop-label label{color:var(--color-ink-muted)}.filepond--label-action{color:var(--color-accent);text-decoration-color:var(--color-accent)}.filepond--item-panel{background-color:var(--color-surface-raised);border-radius:var(--radius-md)}.filepond--drip-blob{background-color:var(--color-accent)}.filepond--file{color:var(--color-ink)}.filepond--file-action-button{color:var(--color-ink);background-color:#00000073}.filepond--file-action-button:hover{background-color:#000000a6}.filepond--image-preview-overlay{display:none!important}.filepond--item[data-filepond-item-state=processing-complete] .filepond--file-info,.filepond--item[data-filepond-item-state=processing-complete] .filepond--file-status{opacity:0}.filepond--item[data-filepond-item-state=processing-complete]:after{content:"\2713";position:absolute;top:8px;right:8px;z-index:5;width:24px;height:24px;line-height:24px;text-align:center;border-radius:50%;background:var(--color-accent);color:#fff;font-size:15px;font-weight:700;box-shadow:0 1px 3px #00000059;pointer-events:none}.filepond--list.filepond--list{margin:.25rem}.filepond--item{width:calc(33.333% - .5rem)}.filepond--item .filepond--panel-root,.filepond--item .filepond--image-preview-wrapper{border-radius:var(--radius-sm)}.filepond--image-preview,.filepond--image-preview-wrapper,.filepond--image-clip,.filepond--image-preview canvas,.filepond--image-bitmap,.filepond--file img{-webkit-user-drag:none;-khtml-user-drag:none;user-drag:none}.filepond--item[data-filepond-item-state=idle] .filepond--file-info,.filepond--item[data-filepond-item-state=idle] .filepond--file-status{opacity:0}.photos-collapse{margin-bottom:var(--space-5);border:1px solid var(--color-border);border-radius:var(--radius-md);background:var(--color-canvas)}.photos-collapse__summary{cursor:pointer;padding:.875rem 1rem;min-height:44px;display:flex;align-items:center;font-family:var(--font-ui);font-size:var(--text-sm);font-weight:600;color:var(--color-ink);list-style:none;user-select:none}.photos-collapse__summary::-webkit-details-marker{display:none}.photos-collapse__summary:before{content:"\25b8";margin-right:var(--space-2);color:var(--color-ink-muted);transition:transform .15s}.photos-collapse[open] .photos-collapse__summary:before{transform:rotate(90deg)}.photos-collapse[open] .photos-collapse__summary{border-bottom:1px solid var(--color-border)}.photos-collapse>:not(summary){padding-left:1rem;padding-right:1rem}.photos-collapse[open] .filepond--root,.photos-collapse[open] .filepond-root{margin:var(--space-4) 0}.photos-collapse[open]>.photo-convert-status:last-child,.photos-collapse[open]>.photo-reauth-hint:last-child{padding-bottom:var(--space-4)}.EasyMDEContainer .CodeMirror{background:var(--color-canvas);color:var(--color-ink);border:1px solid var(--color-border);border-radius:0 0 var(--radius-md) var(--radius-md);font-family:var(--font-ui);font-size:var(--text-base);line-height:var(--leading-normal);padding:var(--space-1)}.EasyMDEContainer .CodeMirror-cursor{border-color:var(--color-ink)}.EasyMDEContainer .CodeMirror-selected{background:var(--color-accent-light)!important}.EasyMDEContainer .editor-toolbar{background:var(--color-surface-raised);border:1px solid var(--color-border);border-bottom:none;border-radius:var(--radius-md) var(--radius-md) 0 0;opacity:1}.EasyMDEContainer .editor-toolbar button{color:var(--color-ink)!important;min-width:34px;height:34px}.EasyMDEContainer .editor-toolbar button:hover,.EasyMDEContainer .editor-toolbar button.active{background:var(--color-accent-light);border-color:var(--color-border)}.EasyMDEContainer .editor-toolbar i.separator{border-color:var(--color-border)}.EasyMDEContainer .editor-preview,.EasyMDEContainer .editor-preview-side{background:var(--color-canvas);color:var(--color-ink)}.EasyMDEContainer .editor-preview a{color:var(--color-accent)}.photo-editor{margin-bottom:var(--space-5)}.photo-editor__head{display:flex;align-items:center;justify-content:space-between;gap:var(--space-3);margin-bottom:var(--space-2)}.photo-editor__label{font-family:var(--font-ui);font-size:var(--text-base);font-weight:600;color:var(--color-ink)}.photo-editor__add{font-family:var(--font-ui);font-size:var(--text-sm);background:var(--color-accent);color:#fff;border:none;border-radius:var(--radius-sm);padding:var(--space-2) var(--space-4);cursor:pointer}.photo-editor__add:disabled{opacity:.5;cursor:default}.photo-editor__status{font-size:var(--text-sm);color:var(--color-ink-muted);min-height:1.2em;margin:0 0 var(--space-2)}.photo-editor__status.error{color:var(--color-error)}.photo-editor__grid{display:grid;grid-template-columns:repeat(3,1fr);gap:var(--space-2)}@media (min-width: 600px){.photo-editor__grid{grid-template-columns:repeat(4,1fr)}}.photo-editor__loading,.photo-editor__empty{grid-column:1 / -1;color:var(--color-ink-muted);font-size:var(--text-sm);padding:var(--space-4) 0}.photo-editor__cell{position:relative;aspect-ratio:1 / 1;border-radius:var(--radius-sm);overflow:hidden;background:var(--color-surface-raised);cursor:grab;touch-action:none}.photo-editor__cell:active{cursor:grabbing}.photo-editor__img{width:100%;height:100%;object-fit:cover;display:block;-webkit-user-drag:none;user-select:none;pointer-events:none}.photo-editor__cell:first-child:after{content:"Cover";position:absolute;left:var(--space-1);bottom:var(--space-1);font-family:var(--font-ui);font-size:var(--text-xs, .7rem);font-weight:600;color:#fff;background:var(--color-accent);padding:1px 6px;border-radius:var(--radius-sm);pointer-events:none}.photo-editor__del{position:absolute;top:var(--space-1);right:var(--space-1);width:24px;height:24px;line-height:1;display:flex;align-items:center;justify-content:center;border:none;border-radius:50%;background:#0000008c;color:#fff;font-size:.85rem;cursor:pointer}.photo-editor__del:hover{background:#000000bf}.photo-editor__del:disabled{opacity:.4;cursor:default}.photo-editor__confirm{position:absolute;inset:0;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:var(--space-1);padding:var(--space-2);background:#000000b8;text-align:center}.photo-editor__confirm-q{color:#fff;font-family:var(--font-ui);font-size:var(--text-sm)}.photo-editor__confirm button{font-family:var(--font-ui);font-size:var(--text-xs, .72rem);border:none;border-radius:var(--radius-sm);padding:3px 10px;cursor:pointer}.photo-editor__confirm-yes{background:var(--color-error);color:#fff}.photo-editor__confirm-no{background:#fff;color:var(--color-ink)}.photo-editor__confirm button:disabled{opacity:.5;cursor:default}.photo-editor__cell.sortable-ghost{opacity:.4}.photo-editor__cell.sortable-chosen{outline:2px solid var(--color-accent)}.location-details{margin-bottom:var(--space-5);border:1px solid var(--color-border);border-radius:var(--radius-md);background:var(--color-canvas)}.location-details__summary{cursor:pointer;padding:.875rem 1rem;min-height:44px;display:flex;align-items:center;font-family:var(--font-ui);font-size:var(--text-sm);font-weight:600;color:var(--color-ink);list-style:none;user-select:none}.location-details__summary::-webkit-details-marker{display:none}.location-details__summary:before{content:"\25b8";margin-right:var(--space-2);color:var(--color-ink-muted);transition:transform .15s}.location-details[open] .location-details__summary:before{transform:rotate(90deg)}.location-details[open] .location-details__summary{border-bottom:1px solid var(--color-border)}.location-details>.form-field{padding:0 1rem}.location-details>.form-field:first-of-type{padding-top:var(--space-4)}.location-details>.form-field:last-of-type{padding-bottom:var(--space-2)}.location-details__body{padding:1rem}.location-search-row{display:flex;gap:var(--space-3);align-items:center;flex-wrap:wrap}.location-search-hint{font-size:var(--text-sm);color:var(--color-ink-muted);margin-top:var(--space-2)}.location-search-hint:empty{display:none}.location-search-results{list-style:none;margin:var(--space-3) 0 0;padding:0;border:1px solid var(--color-border);border-radius:var(--radius-md);overflow:hidden}.location-search-results:empty{display:none;margin:0;border:none}.location-search-results li+li{border-top:1px solid var(--color-border)}.location-search-results button{display:block;width:100%;text-align:left;padding:.75rem 1rem;min-height:44px;background:var(--color-canvas);border:none;font-family:var(--font-ui);font-size:var(--text-sm);color:var(--color-ink);cursor:pointer}.location-search-results button:hover,.location-search-results button:focus-visible{background:var(--color-paper)}.location-map{position:relative;width:100%;height:240px;margin-top:var(--space-4);border-radius:var(--radius-md);overflow:hidden;background:var(--color-paper)}.location-map .maplibregl-canvas{border-radius:var(--radius-md)}.location-pin{width:44px;height:44px;border-radius:50%;background:var(--color-accent);border:3px solid #fff;box-shadow:0 1px 6px #00000080;cursor:grab}.location-pin:active{cursor:grabbing}.location-field--mismatch{border-color:var(--color-error)!important;outline-color:var(--color-error)!important}.location-field-note{display:block;font-size:var(--text-sm);color:var(--color-error);margin-top:var(--space-1)} /*! Bundled license information: easymde/dist/easymde.min.css: diff --git a/themes/intotheeast/js/post/post-form.js b/themes/intotheeast/js/post/post-form.js index 53af4f3..fb8fc52 100644 --- a/themes/intotheeast/js/post/post-form.js +++ b/themes/intotheeast/js/post/post-form.js @@ -1,59 +1,59 @@ -import{a as Ju,b as at,c as Jh}from"./chunk-ZWRDP37E.js";var At=at((nl,ol)=>{(function(o,l){typeof nl=="object"&&typeof ol<"u"?ol.exports=l():typeof define=="function"&&define.amd?define(l):(o=o||self,o.CodeMirror=l())})(nl,function(){"use strict";var o=navigator.userAgent,l=navigator.platform,s=/gecko\/\d/i.test(o),a=/MSIE \d/.test(o),f=/Trident\/(?:[7-9]|\d{2,})\..*rv:(\d+)/.exec(o),h=/Edge\/(\d+)/.exec(o),c=a||f||h,d=c&&(a?document.documentMode||6:+(h||f)[1]),v=!h&&/WebKit\//.test(o),y=v&&/Qt\/\d+\.\d+/.test(o),x=!h&&/Chrome\/(\d+)/.exec(o),D=x&&+x[1],S=/Opera\//.test(o),F=/Apple Computer/.test(navigator.vendor),B=/Mac OS X 1\d\D([8-9]|\d\d)\D/.test(o),L=/PhantomJS/.test(o),T=F&&(/Mobile\/\w+/.test(o)||navigator.maxTouchPoints>2),N=/Android/.test(o),z=T||N||/webOS|BlackBerry|Opera Mini|Opera Mobi|IEMobile/i.test(o),O=T||/Mac/.test(l),I=/\bCrOS\b/.test(o),U=/win/i.test(l),j=S&&o.match(/Version\/(\d*\.\d*)/);j&&(j=Number(j[1])),j&&j>=15&&(S=!1,v=!0);var K=O&&(y||S&&(j==null||j<12.11)),de=s||c&&d>=9;function W(e){return new RegExp("(^|\\s)"+e+"(?:$|\\s)\\s*")}var oe=function(e,t){var i=e.className,r=W(t).exec(i);if(r){var n=i.slice(r.index+r[0].length);e.className=i.slice(0,r.index)+(n?r[1]+n:"")}};function X(e){for(var t=e.childNodes.length;t>0;--t)e.removeChild(e.firstChild);return e}function G(e,t){return X(e).appendChild(t)}function k(e,t,i,r){var n=document.createElement(e);if(i&&(n.className=i),r&&(n.style.cssText=r),typeof t=="string")n.appendChild(document.createTextNode(t));else if(t)for(var u=0;u=t)return p+(t-u);p+=g-u,p+=i-p%i,u=g+1}}var dt=function(){this.id=null,this.f=null,this.time=0,this.handler=lt(this.onTimeout,this)};dt.prototype.onTimeout=function(e){e.id=0,e.time<=+new Date?e.f():setTimeout(e.handler,e.time-+new Date)},dt.prototype.set=function(e,t){this.f=t;var i=+new Date+e;(!this.id||i=t)return r+Math.min(p,t-n);if(n+=u-r,n+=i-n%i,r=u+1,n>=t)return r}}var Ht=[""];function pr(e){for(;Ht.length<=e;)Ht.push(De(Ht)+" ");return Ht[e]}function De(e){return e[e.length-1]}function Pt(e,t){for(var i=[],r=0;r"\x80"&&(e.toUpperCase()!=e.toLowerCase()||Pc.test(e))}function kn(e,t){return t?t.source.indexOf("\\w")>-1&&Zo(e)?!0:t.test(e):Zo(e)}function Gl(e){for(var t in e)if(e.hasOwnProperty(t)&&e[t])return!1;return!0}var qc=/[\u0300-\u036f\u0483-\u0489\u0591-\u05bd\u05bf\u05c1\u05c2\u05c4\u05c5\u05c7\u0610-\u061a\u064b-\u065e\u0670\u06d6-\u06dc\u06de-\u06e4\u06e7\u06e8\u06ea-\u06ed\u0711\u0730-\u074a\u07a6-\u07b0\u07eb-\u07f3\u0816-\u0819\u081b-\u0823\u0825-\u0827\u0829-\u082d\u0900-\u0902\u093c\u0941-\u0948\u094d\u0951-\u0955\u0962\u0963\u0981\u09bc\u09be\u09c1-\u09c4\u09cd\u09d7\u09e2\u09e3\u0a01\u0a02\u0a3c\u0a41\u0a42\u0a47\u0a48\u0a4b-\u0a4d\u0a51\u0a70\u0a71\u0a75\u0a81\u0a82\u0abc\u0ac1-\u0ac5\u0ac7\u0ac8\u0acd\u0ae2\u0ae3\u0b01\u0b3c\u0b3e\u0b3f\u0b41-\u0b44\u0b4d\u0b56\u0b57\u0b62\u0b63\u0b82\u0bbe\u0bc0\u0bcd\u0bd7\u0c3e-\u0c40\u0c46-\u0c48\u0c4a-\u0c4d\u0c55\u0c56\u0c62\u0c63\u0cbc\u0cbf\u0cc2\u0cc6\u0ccc\u0ccd\u0cd5\u0cd6\u0ce2\u0ce3\u0d3e\u0d41-\u0d44\u0d4d\u0d57\u0d62\u0d63\u0dca\u0dcf\u0dd2-\u0dd4\u0dd6\u0ddf\u0e31\u0e34-\u0e3a\u0e47-\u0e4e\u0eb1\u0eb4-\u0eb9\u0ebb\u0ebc\u0ec8-\u0ecd\u0f18\u0f19\u0f35\u0f37\u0f39\u0f71-\u0f7e\u0f80-\u0f84\u0f86\u0f87\u0f90-\u0f97\u0f99-\u0fbc\u0fc6\u102d-\u1030\u1032-\u1037\u1039\u103a\u103d\u103e\u1058\u1059\u105e-\u1060\u1071-\u1074\u1082\u1085\u1086\u108d\u109d\u135f\u1712-\u1714\u1732-\u1734\u1752\u1753\u1772\u1773\u17b7-\u17bd\u17c6\u17c9-\u17d3\u17dd\u180b-\u180d\u18a9\u1920-\u1922\u1927\u1928\u1932\u1939-\u193b\u1a17\u1a18\u1a56\u1a58-\u1a5e\u1a60\u1a62\u1a65-\u1a6c\u1a73-\u1a7c\u1a7f\u1b00-\u1b03\u1b34\u1b36-\u1b3a\u1b3c\u1b42\u1b6b-\u1b73\u1b80\u1b81\u1ba2-\u1ba5\u1ba8\u1ba9\u1c2c-\u1c33\u1c36\u1c37\u1cd0-\u1cd2\u1cd4-\u1ce0\u1ce2-\u1ce8\u1ced\u1dc0-\u1de6\u1dfd-\u1dff\u200c\u200d\u20d0-\u20f0\u2cef-\u2cf1\u2de0-\u2dff\u302a-\u302f\u3099\u309a\ua66f-\ua672\ua67c\ua67d\ua6f0\ua6f1\ua802\ua806\ua80b\ua825\ua826\ua8c4\ua8e0-\ua8f1\ua926-\ua92d\ua947-\ua951\ua980-\ua982\ua9b3\ua9b6-\ua9b9\ua9bc\uaa29-\uaa2e\uaa31\uaa32\uaa35\uaa36\uaa43\uaa4c\uaab0\uaab2-\uaab4\uaab7\uaab8\uaabe\uaabf\uaac1\uabe5\uabe8\uabed\udc00-\udfff\ufb1e\ufe00-\ufe0f\ufe20-\ufe26\uff9e\uff9f]/;function Qo(e){return e.charCodeAt(0)>=768&&qc.test(e)}function Xl(e,t,i){for(;(i<0?t>0:ti?-1:1;;){if(t==i)return t;var n=(t+i)/2,u=r<0?Math.ceil(n):Math.floor(n);if(u==t)return e(u)?t:i;e(u)?i=u:t=u+r}}function Rc(e,t,i,r){if(!e)return r(t,i,"ltr",0);for(var n=!1,u=0;ut||t==i&&p.to==t)&&(r(Math.max(p.from,t),Math.min(p.to,i),p.level==1?"rtl":"ltr",u),n=!0)}n||r(t,i,"ltr")}var Mi=null;function Bi(e,t,i){var r;Mi=null;for(var n=0;nt)return n;u.to==t&&(u.from!=u.to&&i=="before"?r=n:Mi=n),u.from==t&&(u.from!=u.to&&i!="before"?r=n:Mi=n)}return r??Mi}var Wc=function(){var e="bbbbbbbbbtstwsbbbbbbbbbbbbbbssstwNN%%%NNNNNN,N,N1111111111NNNNNNNLLLLLLLLLLLLLLLLLLLLLLLLLLNNNNNNLLLLLLLLLLLLLLLLLLLLLLLLLLNNNNbbbbbbsbbbbbbbbbbbbbbbbbbbbbbbbbb,N%%%%NNNNLNNNNN%%11NLNNN1LNNNNNLLLLLLLLLLLLLLLLLLLLLLLNLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLN",t="nnnnnnNNr%%r,rNNmmmmmmmmmmmrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrmmmmmmmmmmmmmmmmmmmmmnnnnnnnnnn%nnrrrmrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrmmmmmmmnNmmmmmmrrmmNmmmmrr1111111111";function i(b){return b<=247?e.charAt(b):1424<=b&&b<=1524?"R":1536<=b&&b<=1785?t.charAt(b-1536):1774<=b&&b<=2220?"r":8192<=b&&b<=8203?"w":b==8204?"b":"L"}var r=/[\u0590-\u05f4\u0600-\u06ff\u0700-\u08ac]/,n=/[stwN]/,u=/[LRr]/,p=/[Lb1n]/,g=/[1n]/;function m(b,C,E){this.level=b,this.from=C,this.to=E}return function(b,C){var E=C=="ltr"?"L":"R";if(b.length==0||C=="ltr"&&!r.test(b))return!1;for(var _=b.length,M=[],P=0;P<_;++P)M.push(i(b.charCodeAt(P)));for(var R=0,Z=E;R<_;++R){var J=M[R];J=="m"?M[R]=Z:Z=J}for(var te=0,V=E;te<_;++te){var ie=M[te];ie=="1"&&V=="r"?M[te]="n":u.test(ie)&&(V=ie,ie=="r"&&(M[te]="R"))}for(var se=1,le=M[0];se<_-1;++se){var we=M[se];we=="+"&&le=="1"&&M[se+1]=="1"?M[se]="1":we==","&&le==M[se+1]&&(le=="1"||le=="n")&&(M[se]=le),le=we}for(var Le=0;Le<_;++Le){var it=M[Le];if(it==",")M[Le]="N";else if(it=="%"){var Ie=void 0;for(Ie=Le+1;Ie<_&&M[Ie]=="%";++Ie);for(var Et=Le&&M[Le-1]=="!"||Ie<_&&M[Ie]=="1"?"1":"N",wt=Le;wt-1&&(r[t]=n.slice(0,u).concat(n.slice(u+1)))}}}function je(e,t){var i=Jo(e,t);if(i.length)for(var r=Array.prototype.slice.call(arguments,2),n=0;n0}function Jr(e){e.prototype.on=function(t,i){ue(this,t,i)},e.prototype.off=function(t,i){Mt(this,t,i)}}function bt(e){e.preventDefault?e.preventDefault():e.returnValue=!1}function Zl(e){e.stopPropagation?e.stopPropagation():e.cancelBubble=!0}function Vo(e){return e.defaultPrevented!=null?e.defaultPrevented:e.returnValue==!1}function _i(e){bt(e),Zl(e)}function $o(e){return e.target||e.srcElement}function Ql(e){var t=e.which;return t==null&&(e.button&1?t=1:e.button&2?t=3:e.button&4&&(t=2)),O&&e.ctrlKey&&t==1&&(t=3),t}var Uc=function(){if(c&&d<9)return!1;var e=k("div");return"draggable"in e||"dragDrop"in e}(),ea;function jc(e){if(ea==null){var t=k("span","\u200B");G(e,k("span",[t,document.createTextNode("x")])),e.firstChild.offsetHeight!=0&&(ea=t.offsetWidth<=1&&t.offsetHeight>2&&!(c&&d<8))}var i=ea?k("span","\u200B"):k("span","\xA0",null,"display: inline-block; width: 1px; margin-right: -1px");return i.setAttribute("cm-text",""),i}var ta;function Gc(e){if(ta!=null)return ta;var t=G(e,document.createTextNode("A\u062EA")),i=q(t,0,1).getBoundingClientRect(),r=q(t,1,2).getBoundingClientRect();return X(e),!i||i.left==i.right?!1:ta=r.right-i.right<3}var ra=` +import{a as $u,b as at,c as $h}from"./chunk-ZWRDP37E.js";var At=at((ol,al)=>{(function(o,l){typeof ol=="object"&&typeof al<"u"?al.exports=l():typeof define=="function"&&define.amd?define(l):(o=o||self,o.CodeMirror=l())})(ol,function(){"use strict";var o=navigator.userAgent,l=navigator.platform,s=/gecko\/\d/i.test(o),a=/MSIE \d/.test(o),f=/Trident\/(?:[7-9]|\d{2,})\..*rv:(\d+)/.exec(o),h=/Edge\/(\d+)/.exec(o),c=a||f||h,d=c&&(a?document.documentMode||6:+(h||f)[1]),m=!h&&/WebKit\//.test(o),y=m&&/Qt\/\d+\.\d+/.test(o),x=!h&&/Chrome\/(\d+)/.exec(o),C=x&&+x[1],S=/Opera\//.test(o),F=/Apple Computer/.test(navigator.vendor),_=/Mac OS X 1\d\D([8-9]|\d\d)\D/.test(o),L=/PhantomJS/.test(o),T=F&&(/Mobile\/\w+/.test(o)||navigator.maxTouchPoints>2),O=/Android/.test(o),N=T||O||/webOS|BlackBerry|Opera Mini|Opera Mobi|IEMobile/i.test(o),I=T||/Mac/.test(l),P=/\bCrOS\b/.test(o),U=/win/i.test(l),j=S&&o.match(/Version\/(\d*\.\d*)/);j&&(j=Number(j[1])),j&&j>=15&&(S=!1,m=!0);var K=I&&(y||S&&(j==null||j<12.11)),de=s||c&&d>=9;function q(e){return new RegExp("(^|\\s)"+e+"(?:$|\\s)\\s*")}var oe=function(e,t){var n=e.className,r=q(t).exec(n);if(r){var i=n.slice(r.index+r[0].length);e.className=n.slice(0,r.index)+(i?r[1]+i:"")}};function X(e){for(var t=e.childNodes.length;t>0;--t)e.removeChild(e.firstChild);return e}function G(e,t){return X(e).appendChild(t)}function k(e,t,n,r){var i=document.createElement(e);if(n&&(i.className=n),r&&(i.style.cssText=r),typeof t=="string")i.appendChild(document.createTextNode(t));else if(t)for(var u=0;u=t)return p+(t-u);p+=g-u,p+=n-p%n,u=g+1}}var dt=function(){this.id=null,this.f=null,this.time=0,this.handler=lt(this.onTimeout,this)};dt.prototype.onTimeout=function(e){e.id=0,e.time<=+new Date?e.f():setTimeout(e.handler,e.time-+new Date)},dt.prototype.set=function(e,t){this.f=t;var n=+new Date+e;(!this.id||n=t)return r+Math.min(p,t-i);if(i+=u-r,i+=n-i%n,r=u+1,i>=t)return r}}var zt=[""];function pr(e){for(;zt.length<=e;)zt.push(Ce(zt)+" ");return zt[e]}function Ce(e){return e[e.length-1]}function Ht(e,t){for(var n=[],r=0;r"\x80"&&(e.toUpperCase()!=e.toLowerCase()||Rc.test(e))}function Si(e,t){return t?t.source.indexOf("\\w")>-1&&Qo(e)?!0:t.test(e):Qo(e)}function Xl(e){for(var t in e)if(e.hasOwnProperty(t)&&e[t])return!1;return!0}var Wc=/[\u0300-\u036f\u0483-\u0489\u0591-\u05bd\u05bf\u05c1\u05c2\u05c4\u05c5\u05c7\u0610-\u061a\u064b-\u065e\u0670\u06d6-\u06dc\u06de-\u06e4\u06e7\u06e8\u06ea-\u06ed\u0711\u0730-\u074a\u07a6-\u07b0\u07eb-\u07f3\u0816-\u0819\u081b-\u0823\u0825-\u0827\u0829-\u082d\u0900-\u0902\u093c\u0941-\u0948\u094d\u0951-\u0955\u0962\u0963\u0981\u09bc\u09be\u09c1-\u09c4\u09cd\u09d7\u09e2\u09e3\u0a01\u0a02\u0a3c\u0a41\u0a42\u0a47\u0a48\u0a4b-\u0a4d\u0a51\u0a70\u0a71\u0a75\u0a81\u0a82\u0abc\u0ac1-\u0ac5\u0ac7\u0ac8\u0acd\u0ae2\u0ae3\u0b01\u0b3c\u0b3e\u0b3f\u0b41-\u0b44\u0b4d\u0b56\u0b57\u0b62\u0b63\u0b82\u0bbe\u0bc0\u0bcd\u0bd7\u0c3e-\u0c40\u0c46-\u0c48\u0c4a-\u0c4d\u0c55\u0c56\u0c62\u0c63\u0cbc\u0cbf\u0cc2\u0cc6\u0ccc\u0ccd\u0cd5\u0cd6\u0ce2\u0ce3\u0d3e\u0d41-\u0d44\u0d4d\u0d57\u0d62\u0d63\u0dca\u0dcf\u0dd2-\u0dd4\u0dd6\u0ddf\u0e31\u0e34-\u0e3a\u0e47-\u0e4e\u0eb1\u0eb4-\u0eb9\u0ebb\u0ebc\u0ec8-\u0ecd\u0f18\u0f19\u0f35\u0f37\u0f39\u0f71-\u0f7e\u0f80-\u0f84\u0f86\u0f87\u0f90-\u0f97\u0f99-\u0fbc\u0fc6\u102d-\u1030\u1032-\u1037\u1039\u103a\u103d\u103e\u1058\u1059\u105e-\u1060\u1071-\u1074\u1082\u1085\u1086\u108d\u109d\u135f\u1712-\u1714\u1732-\u1734\u1752\u1753\u1772\u1773\u17b7-\u17bd\u17c6\u17c9-\u17d3\u17dd\u180b-\u180d\u18a9\u1920-\u1922\u1927\u1928\u1932\u1939-\u193b\u1a17\u1a18\u1a56\u1a58-\u1a5e\u1a60\u1a62\u1a65-\u1a6c\u1a73-\u1a7c\u1a7f\u1b00-\u1b03\u1b34\u1b36-\u1b3a\u1b3c\u1b42\u1b6b-\u1b73\u1b80\u1b81\u1ba2-\u1ba5\u1ba8\u1ba9\u1c2c-\u1c33\u1c36\u1c37\u1cd0-\u1cd2\u1cd4-\u1ce0\u1ce2-\u1ce8\u1ced\u1dc0-\u1de6\u1dfd-\u1dff\u200c\u200d\u20d0-\u20f0\u2cef-\u2cf1\u2de0-\u2dff\u302a-\u302f\u3099\u309a\ua66f-\ua672\ua67c\ua67d\ua6f0\ua6f1\ua802\ua806\ua80b\ua825\ua826\ua8c4\ua8e0-\ua8f1\ua926-\ua92d\ua947-\ua951\ua980-\ua982\ua9b3\ua9b6-\ua9b9\ua9bc\uaa29-\uaa2e\uaa31\uaa32\uaa35\uaa36\uaa43\uaa4c\uaab0\uaab2-\uaab4\uaab7\uaab8\uaabe\uaabf\uaac1\uabe5\uabe8\uabed\udc00-\udfff\ufb1e\ufe00-\ufe0f\ufe20-\ufe26\uff9e\uff9f]/;function Jo(e){return e.charCodeAt(0)>=768&&Wc.test(e)}function Kl(e,t,n){for(;(n<0?t>0:tn?-1:1;;){if(t==n)return t;var i=(t+n)/2,u=r<0?Math.ceil(i):Math.floor(i);if(u==t)return e(u)?t:n;e(u)?n=u:t=u+r}}function qc(e,t,n,r){if(!e)return r(t,n,"ltr",0);for(var i=!1,u=0;ut||t==n&&p.to==t)&&(r(Math.max(p.from,t),Math.min(p.to,n),p.level==1?"rtl":"ltr",u),i=!0)}i||r(t,n,"ltr")}var _n=null;function Bn(e,t,n){var r;_n=null;for(var i=0;it)return i;u.to==t&&(u.from!=u.to&&n=="before"?r=i:_n=i),u.from==t&&(u.from!=u.to&&n!="before"?r=i:_n=i)}return r??_n}var Uc=function(){var e="bbbbbbbbbtstwsbbbbbbbbbbbbbbssstwNN%%%NNNNNN,N,N1111111111NNNNNNNLLLLLLLLLLLLLLLLLLLLLLLLLLNNNNNNLLLLLLLLLLLLLLLLLLLLLLLLLLNNNNbbbbbbsbbbbbbbbbbbbbbbbbbbbbbbbbb,N%%%%NNNNLNNNNN%%11NLNNN1LNNNNNLLLLLLLLLLLLLLLLLLLLLLLNLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLN",t="nnnnnnNNr%%r,rNNmmmmmmmmmmmrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrmmmmmmmmmmmmmmmmmmmmmnnnnnnnnnn%nnrrrmrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrmmmmmmmnNmmmmmmrrmmNmmmmrr1111111111";function n(b){return b<=247?e.charAt(b):1424<=b&&b<=1524?"R":1536<=b&&b<=1785?t.charAt(b-1536):1774<=b&&b<=2220?"r":8192<=b&&b<=8203?"w":b==8204?"b":"L"}var r=/[\u0590-\u05f4\u0600-\u06ff\u0700-\u08ac]/,i=/[stwN]/,u=/[LRr]/,p=/[Lb1n]/,g=/[1n]/;function v(b,D,E){this.level=b,this.from=D,this.to=E}return function(b,D){var E=D=="ltr"?"L":"R";if(b.length==0||D=="ltr"&&!r.test(b))return!1;for(var B=b.length,M=[],H=0;H-1&&(r[t]=i.slice(0,u).concat(i.slice(u+1)))}}}function je(e,t){var n=$o(e,t);if(n.length)for(var r=Array.prototype.slice.call(arguments,2),i=0;i0}function Jr(e){e.prototype.on=function(t,n){ue(this,t,n)},e.prototype.off=function(t,n){Mt(this,t,n)}}function bt(e){e.preventDefault?e.preventDefault():e.returnValue=!1}function Ql(e){e.stopPropagation?e.stopPropagation():e.cancelBubble=!0}function Vo(e){return e.defaultPrevented!=null?e.defaultPrevented:e.returnValue==!1}function Nn(e){bt(e),Ql(e)}function ea(e){return e.target||e.srcElement}function Jl(e){var t=e.which;return t==null&&(e.button&1?t=1:e.button&2?t=3:e.button&4&&(t=2)),I&&e.ctrlKey&&t==1&&(t=3),t}var jc=function(){if(c&&d<9)return!1;var e=k("div");return"draggable"in e||"dragDrop"in e}(),ta;function Gc(e){if(ta==null){var t=k("span","\u200B");G(e,k("span",[t,document.createTextNode("x")])),e.firstChild.offsetHeight!=0&&(ta=t.offsetWidth<=1&&t.offsetHeight>2&&!(c&&d<8))}var n=ta?k("span","\u200B"):k("span","\xA0",null,"display: inline-block; width: 1px; margin-right: -1px");return n.setAttribute("cm-text",""),n}var ra;function Xc(e){if(ra!=null)return ra;var t=G(e,document.createTextNode("A\u062EA")),n=R(t,0,1).getBoundingClientRect(),r=R(t,1,2).getBoundingClientRect();return X(e),!n||n.left==n.right?!1:ra=r.right-n.right<3}var na=` -b`.split(/\n/).length!=3?function(e){for(var t=0,i=[],r=e.length;t<=r;){var n=e.indexOf(` -`,t);n==-1&&(n=e.length);var u=e.slice(t,e.charAt(n-1)=="\r"?n-1:n),p=u.indexOf("\r");p!=-1?(i.push(u.slice(0,p)),t+=p+1):(i.push(u),t=n+1)}return i}:function(e){return e.split(/\r\n?|\n/)},Xc=window.getSelection?function(e){try{return e.selectionStart!=e.selectionEnd}catch{return!1}}:function(e){var t;try{t=e.ownerDocument.selection.createRange()}catch{}return!t||t.parentElement()!=e?!1:t.compareEndPoints("StartToEnd",t)!=0},Kc=function(){var e=k("div");return"oncopy"in e?!0:(e.setAttribute("oncopy","return;"),typeof e.oncopy=="function")}(),ia=null;function Yc(e){if(ia!=null)return ia;var t=G(e,k("span","x")),i=t.getBoundingClientRect(),r=q(t,0,1).getBoundingClientRect();return ia=Math.abs(i.left-r.left)>1}var na={},Vr={};function Zc(e,t){arguments.length>2&&(t.dependencies=Array.prototype.slice.call(arguments,2)),na[e]=t}function Qc(e,t){Vr[e]=t}function Sn(e){if(typeof e=="string"&&Vr.hasOwnProperty(e))e=Vr[e];else if(e&&typeof e.name=="string"&&Vr.hasOwnProperty(e.name)){var t=Vr[e.name];typeof t=="string"&&(t={name:t}),e=jl(t,e),e.name=t.name}else{if(typeof e=="string"&&/^[\w\-]+\/[\w\-]+\+xml$/.test(e))return Sn("application/xml");if(typeof e=="string"&&/^[\w\-]+\/[\w\-]+\+json$/.test(e))return Sn("application/json")}return typeof e=="string"?{name:e}:e||{name:"null"}}function oa(e,t){t=Sn(t);var i=na[t.name];if(!i)return oa(e,"text/plain");var r=i(e,t);if($r.hasOwnProperty(t.name)){var n=$r[t.name];for(var u in n)n.hasOwnProperty(u)&&(r.hasOwnProperty(u)&&(r["_"+u]=r[u]),r[u]=n[u])}if(r.name=t.name,t.helperType&&(r.helperType=t.helperType),t.modeProps)for(var p in t.modeProps)r[p]=t.modeProps[p];return r}var $r={};function Jc(e,t){var i=$r.hasOwnProperty(e)?$r[e]:$r[e]={};Lt(t,i)}function Lr(e,t){if(t===!0)return t;if(e.copyState)return e.copyState(t);var i={};for(var r in t){var n=t[r];n instanceof Array&&(n=n.concat([])),i[r]=n}return i}function aa(e,t){for(var i;e.innerMode&&(i=e.innerMode(t),!(!i||i.mode==e));)t=i.state,e=i.mode;return i||{mode:e,state:t}}function Jl(e,t,i){return e.startState?e.startState(t,i):!0}var Ge=function(e,t,i){this.pos=this.start=0,this.string=e,this.tabSize=t||8,this.lastColumnPos=this.lastColumnValue=0,this.lineStart=0,this.lineOracle=i};Ge.prototype.eol=function(){return this.pos>=this.string.length},Ge.prototype.sol=function(){return this.pos==this.lineStart},Ge.prototype.peek=function(){return this.string.charAt(this.pos)||void 0},Ge.prototype.next=function(){if(this.post},Ge.prototype.eatSpace=function(){for(var e=this.pos;/[\s\u00a0]/.test(this.string.charAt(this.pos));)++this.pos;return this.pos>e},Ge.prototype.skipToEnd=function(){this.pos=this.string.length},Ge.prototype.skipTo=function(e){var t=this.string.indexOf(e,this.pos);if(t>-1)return this.pos=t,!0},Ge.prototype.backUp=function(e){this.pos-=e},Ge.prototype.column=function(){return this.lastColumnPos0?null:(u&&t!==!1&&(this.pos+=u[0].length),u)}},Ge.prototype.current=function(){return this.string.slice(this.start,this.pos)},Ge.prototype.hideFirstChars=function(e,t){this.lineStart+=e;try{return t()}finally{this.lineStart-=e}},Ge.prototype.lookAhead=function(e){var t=this.lineOracle;return t&&t.lookAhead(e)},Ge.prototype.baseToken=function(){var e=this.lineOracle;return e&&e.baseToken(this.pos)};function ae(e,t){if(t-=e.first,t<0||t>=e.size)throw new Error("There is no line "+(t+e.first)+" in the document.");for(var i=e;!i.lines;)for(var r=0;;++r){var n=i.children[r],u=n.chunkSize();if(t=e.first&&ti?Y(i,ae(e,i).text.length):Vc(t,ae(e,t.line).text.length)}function Vc(e,t){var i=e.ch;return i==null||i>t?Y(e.line,t):i<0?Y(e.line,0):e}function $l(e,t){for(var i=[],r=0;rthis.maxLookAhead&&(this.maxLookAhead=e),t},Zt.prototype.baseToken=function(e){if(!this.baseTokens)return null;for(;this.baseTokens[this.baseTokenPos]<=e;)this.baseTokenPos+=2;var t=this.baseTokens[this.baseTokenPos+1];return{type:t&&t.replace(/( |^)overlay .*/,""),size:this.baseTokens[this.baseTokenPos]-e}},Zt.prototype.nextLine=function(){this.line++,this.maxLookAhead>0&&this.maxLookAhead--},Zt.fromSaved=function(e,t,i){return t instanceof Fn?new Zt(e,Lr(e.mode,t.state),i,t.lookAhead):new Zt(e,Lr(e.mode,t),i)},Zt.prototype.save=function(e){var t=e!==!1?Lr(this.doc.mode,this.state):this.state;return this.maxLookAhead>0?new Fn(t,this.maxLookAhead):t};function es(e,t,i,r){var n=[e.state.modeGen],u={};as(e,t.text,e.doc.mode,i,function(b,C){return n.push(b,C)},u,r);for(var p=i.state,g=function(b){i.baseTokens=n;var C=e.state.overlays[b],E=1,_=0;i.state=!0,as(e,t.text,C.mode,i,function(M,P){for(var R=E;_M&&n.splice(E,1,M,n[E+1],Z),E+=2,_=Math.min(M,Z)}if(P)if(C.opaque)n.splice(R,E-R,M,"overlay "+P),E=R+2;else for(;Re.options.maxHighlightLength&&Lr(e.doc.mode,r.state),u=es(e,t,r);n&&(r.state=n),t.stateAfter=r.save(!n),t.styles=u.styles,u.classes?t.styleClasses=u.classes:t.styleClasses&&(t.styleClasses=null),i===e.doc.highlightFrontier&&(e.doc.modeFrontier=Math.max(e.doc.modeFrontier,++e.doc.highlightFrontier))}return t.styles}function Ni(e,t,i){var r=e.doc,n=e.display;if(!r.mode.startState)return new Zt(r,!0,t);var u=$c(e,t,i),p=u>r.first&&ae(r,u-1).stateAfter,g=p?Zt.fromSaved(r,p,u):new Zt(r,Jl(r.mode),u);return r.iter(u,t,function(m){ca(e,m.text,g);var b=g.line;m.stateAfter=b==t-1||b%5==0||b>=n.viewFrom&&bt.start)return u}throw new Error("Mode "+e.name+" failed to advance stream.")}var is=function(e,t,i){this.start=e.start,this.end=e.pos,this.string=e.current(),this.type=t||null,this.state=i};function ns(e,t,i,r){var n=e.doc,u=n.mode,p;t=be(n,t);var g=ae(n,t.line),m=Ni(e,t.line,i),b=new Ge(g.text,e.options.tabSize,m),C;for(r&&(C=[]);(r||b.pose.options.maxHighlightLength?(g=!1,p&&ca(e,t,r,C.pos),C.pos=t.length,E=null):E=os(da(i,C,r.state,_),u),_){var M=_[0].name;M&&(E="m-"+(E?M+" "+E:M))}if(!g||b!=E){for(;mp;--g){if(g<=u.first)return u.first;var m=ae(u,g-1),b=m.stateAfter;if(b&&(!i||g+(b instanceof Fn?b.lookAhead:0)<=u.modeFrontier))return g;var C=Ye(m.text,null,e.options.tabSize);(n==null||r>C)&&(n=g-1,r=C)}return n}function ed(e,t){if(e.modeFrontier=Math.min(e.modeFrontier,t),!(e.highlightFrontieri;r--){var n=ae(e,r).stateAfter;if(n&&(!(n instanceof Fn)||r+n.lookAhead=t:u.to>t);(r||(r=[])).push(new Tn(p,u.from,m?null:u.to))}}return r}function ad(e,t,i){var r;if(e)for(var n=0;n=t:u.to>t);if(g||u.from==t&&p.type=="bookmark"&&(!i||u.marker.insertLeft)){var m=u.from==null||(p.inclusiveLeft?u.from<=t:u.from0&&g)for(var ie=0;ie0)){var C=[m,1],E=ve(b.from,g.from),_=ve(b.to,g.to);(E<0||!p.inclusiveLeft&&!E)&&C.push({from:b.from,to:g.from}),(_>0||!p.inclusiveRight&&!_)&&C.push({from:g.to,to:b.to}),n.splice.apply(n,C),m+=C.length-3}}return n}function us(e){var t=e.markedSpans;if(t){for(var i=0;it)&&(!r||pa(r,u.marker)<0)&&(r=u.marker)}return r}function hs(e,t,i,r,n){var u=ae(e,t),p=rr&&u.markedSpans;if(p)for(var g=0;g=0&&E<=0||C<=0&&E>=0)&&(C<=0&&(m.marker.inclusiveRight&&n.inclusiveLeft?ve(b.to,i)>=0:ve(b.to,i)>0)||C>=0&&(m.marker.inclusiveRight&&n.inclusiveLeft?ve(b.from,r)<=0:ve(b.from,r)<0)))return!0}}}function qt(e){for(var t;t=ds(e);)e=t.find(-1,!0).line;return e}function ud(e){for(var t;t=Bn(e);)e=t.find(1,!0).line;return e}function fd(e){for(var t,i;t=Bn(e);)e=t.find(1,!0).line,(i||(i=[])).push(e);return i}function ga(e,t){var i=ae(e,t),r=qt(i);return i==r?t:Fe(r)}function ps(e,t){if(t>e.lastLine())return t;var i=ae(e,t),r;if(!mr(e,i))return t;for(;r=Bn(i);)i=r.find(1,!0).line;return Fe(i)+1}function mr(e,t){var i=rr&&t.markedSpans;if(i){for(var r=void 0,n=0;nt.maxLineLength&&(t.maxLineLength=n,t.maxLine=r)})}var ei=function(e,t,i){this.text=e,fs(this,t),this.height=i?i(this):1};ei.prototype.lineNo=function(){return Fe(this)},Jr(ei);function cd(e,t,i,r){e.text=t,e.stateAfter&&(e.stateAfter=null),e.styles&&(e.styles=null),e.order!=null&&(e.order=null),us(e),fs(e,i);var n=r?r(e):1;n!=e.height&&Yt(e,n)}function dd(e){e.parent=null,us(e)}var hd={},pd={};function gs(e,t){if(!e||/^\s*$/.test(e))return null;var i=t.addModeClass?pd:hd;return i[e]||(i[e]=e.replace(/\S+/g,"cm-$&"))}function ms(e,t){var i=H("span",null,null,v?"padding-right: .1px":null),r={pre:H("pre",[i],"CodeMirror-line"),content:i,col:0,pos:0,cm:e,trailingSpace:!1,splitSpaces:e.getOption("lineWrapping")};t.measure={};for(var n=0;n<=(t.rest?t.rest.length:0);n++){var u=n?t.rest[n-1]:t.line,p=void 0;r.pos=0,r.addToken=md,Gc(e.display.measure)&&(p=tr(u,e.doc.direction))&&(r.addToken=bd(r.addToken,p)),r.map=[];var g=t!=e.display.externalMeasured&&Fe(u);yd(u,r,ts(e,u,g)),u.styleClasses&&(u.styleClasses.bgClass&&(r.bgClass=Ee(u.styleClasses.bgClass,r.bgClass||"")),u.styleClasses.textClass&&(r.textClass=Ee(u.styleClasses.textClass,r.textClass||""))),r.map.length==0&&r.map.push(0,0,r.content.appendChild(jc(e.display.measure))),n==0?(t.measure.map=r.map,t.measure.cache={}):((t.measure.maps||(t.measure.maps=[])).push(r.map),(t.measure.caches||(t.measure.caches=[])).push({}))}if(v){var m=r.content.lastChild;(/\bcm-tab\b/.test(m.className)||m.querySelector&&m.querySelector(".cm-tab"))&&(r.content.className="cm-tab-wrap-hack")}return je(e,"renderLine",e,t.line,r.pre),r.pre.className&&(r.textClass=Ee(r.pre.className,r.textClass||"")),r}function gd(e){var t=k("span","\u2022","cm-invalidchar");return t.title="\\u"+e.charCodeAt(0).toString(16),t.setAttribute("aria-label",t.title),t}function md(e,t,i,r,n,u,p){if(t){var g=e.splitSpaces?vd(t,e.trailingSpace):t,m=e.cm.state.specialChars,b=!1,C;if(!m.test(t))e.col+=t.length,C=document.createTextNode(g),e.map.push(e.pos,e.pos+t.length,C),c&&d<9&&(b=!0),e.pos+=t.length;else{C=document.createDocumentFragment();for(var E=0;;){m.lastIndex=E;var _=m.exec(t),M=_?_.index-E:t.length-E;if(M){var P=document.createTextNode(g.slice(E,E+M));c&&d<9?C.appendChild(k("span",[P])):C.appendChild(P),e.map.push(e.pos,e.pos+M,P),e.col+=M,e.pos+=M}if(!_)break;E+=M+1;var R=void 0;if(_[0]==" "){var Z=e.cm.options.tabSize,J=Z-e.col%Z;R=C.appendChild(k("span",pr(J),"cm-tab")),R.setAttribute("role","presentation"),R.setAttribute("cm-text"," "),e.col+=J}else _[0]=="\r"||_[0]==` -`?(R=C.appendChild(k("span",_[0]=="\r"?"\u240D":"\u2424","cm-invalidchar")),R.setAttribute("cm-text",_[0]),e.col+=1):(R=e.cm.options.specialCharPlaceholder(_[0]),R.setAttribute("cm-text",_[0]),c&&d<9?C.appendChild(k("span",[R])):C.appendChild(R),e.col+=1);e.map.push(e.pos,e.pos+1,R),e.pos++}}if(e.trailingSpace=g.charCodeAt(t.length-1)==32,i||r||n||b||u||p){var te=i||"";r&&(te+=r),n&&(te+=n);var V=k("span",[C],te,u);if(p)for(var ie in p)p.hasOwnProperty(ie)&&ie!="style"&&ie!="class"&&V.setAttribute(ie,p[ie]);return e.content.appendChild(V)}e.content.appendChild(C)}}function vd(e,t){if(e.length>1&&!/ /.test(e))return e;for(var i=t,r="",n=0;nb&&E.from<=b));_++);if(E.to>=C)return e(i,r,n,u,p,g,m);e(i,r.slice(0,E.to-b),n,u,null,g,m),u=null,r=r.slice(E.to-b),b=E.to}}}function vs(e,t,i,r){var n=!r&&i.widgetNode;n&&e.map.push(e.pos,e.pos+t,n),!r&&e.cm.display.input.needsContentAttribute&&(n||(n=e.content.appendChild(document.createElement("span"))),n.setAttribute("cm-marker",i.id)),n&&(e.cm.display.input.setUneditable(n),e.content.appendChild(n)),e.pos+=t,e.trailingSpace=!1}function yd(e,t,i){var r=e.markedSpans,n=e.text,u=0;if(!r){for(var p=1;pm||we.collapsed&&le.to==m&&le.from==m)){if(le.to!=null&&le.to!=m&&M>le.to&&(M=le.to,R=""),we.className&&(P+=" "+we.className),we.css&&(_=(_?_+";":"")+we.css),we.startStyle&&le.from==m&&(Z+=" "+we.startStyle),we.endStyle&&le.to==M&&(ie||(ie=[])).push(we.endStyle,le.to),we.title&&((te||(te={})).title=we.title),we.attributes)for(var Le in we.attributes)(te||(te={}))[Le]=we.attributes[Le];we.collapsed&&(!J||pa(J.marker,we)<0)&&(J=le)}else le.from>m&&M>le.from&&(M=le.from)}if(ie)for(var it=0;it=g)break;for(var Et=Math.min(g,M);;){if(C){var wt=m+C.length;if(!J){var Xe=wt>Et?C.slice(0,Et-m):C;t.addToken(t,Xe,E?E+P:P,Z,m+Xe.length==M?R:"",_,te)}if(wt>=Et){C=C.slice(Et-m),m=Et;break}m=wt,Z=""}C=n.slice(u,u=i[b++]),E=gs(i[b++],t.cm.options)}}}function bs(e,t,i){this.line=t,this.rest=fd(t),this.size=this.rest?Fe(De(this.rest))-i+1:1,this.node=this.text=null,this.hidden=mr(e,t)}function zn(e,t,i){for(var r=[],n,u=t;u2&&u.push((m.bottom+b.top)/2-i.top)}}u.push(i.bottom-i.top)}}function Ss(e,t,i){if(e.line==t)return{map:e.measure.map,cache:e.measure.cache};if(e.rest){for(var r=0;ri)return{map:e.measure.maps[n],cache:e.measure.caches[n],before:!0}}}function Ld(e,t){t=qt(t);var i=Fe(t),r=e.display.externalMeasured=new bs(e.doc,t,i);r.lineN=i;var n=r.built=ms(e,r);return r.text=n.pre,G(e.display.lineMeasure,n.pre),r}function Es(e,t,i,r){return Jt(e,ri(e,t),i,r)}function wa(e,t){if(t>=e.display.viewFrom&&t=i.lineN&&tt)&&(u=m-g,n=u-1,t>=m&&(p="right")),n!=null){if(r=e[b+2],g==m&&i==(r.insertLeft?"left":"right")&&(p=i),i=="left"&&n==0)for(;b&&e[b-2]==e[b-3]&&e[b-1].insertLeft;)r=e[(b-=3)+2],p="left";if(i=="right"&&n==m-g)for(;b=0&&(i=e[n]).left==i.right;n--);return i}function Bd(e,t,i,r){var n=Fs(t.map,i,r),u=n.node,p=n.start,g=n.end,m=n.collapse,b;if(u.nodeType==3){for(var C=0;C<4;C++){for(;p&&Qo(t.line.text.charAt(n.coverStart+p));)--p;for(;n.coverStart+g0&&(m=r="right");var E;e.options.lineWrapping&&(E=u.getClientRects()).length>1?b=E[r=="right"?E.length-1:0]:b=u.getBoundingClientRect()}if(c&&d<9&&!p&&(!b||!b.left&&!b.right)){var _=u.parentNode.getClientRects()[0];_?b={left:_.left,right:_.left+ni(e.display),top:_.top,bottom:_.bottom}:b=As}for(var M=b.top-t.rect.top,P=b.bottom-t.rect.top,R=(M+P)/2,Z=t.view.measure.heights,J=0;J=r.text.length?(m=r.text.length,b="before"):m<=0&&(m=0,b="after"),!g)return p(b=="before"?m-1:m,b=="before");function C(P,R,Z){var J=g[R],te=J.level==1;return p(Z?P-1:P,te!=Z)}var E=Bi(g,m,b),_=Mi,M=C(m,E,b=="before");return _!=null&&(M.other=C(m,_,b!="before")),M}function zs(e,t){var i=0;t=be(e.doc,t),e.options.lineWrapping||(i=ni(e.display)*t.ch);var r=ae(e.doc,t.line),n=ir(r)+Nn(e.display);return{left:i,right:i,top:n,bottom:n+r.height}}function Da(e,t,i,r,n){var u=Y(e,t,i);return u.xRel=n,r&&(u.outside=r),u}function ka(e,t,i){var r=e.doc;if(i+=e.display.viewOffset,i<0)return Da(r.first,0,null,-1,-1);var n=Br(r,i),u=r.first+r.size-1;if(n>u)return Da(r.first+r.size-1,ae(r,u).text.length,null,1,1);t<0&&(t=0);for(var p=ae(r,n);;){var g=zd(e,p,n,t,i),m=sd(p,g.ch+(g.xRel>0||g.outside>0?1:0));if(!m)return g;var b=m.find(1);if(b.line==n)return b;p=ae(r,n=b.line)}}function Ns(e,t,i,r){r-=Ca(t);var n=t.text.length,u=Li(function(p){return Jt(e,i,p-1).bottom<=r},n,0);return n=Li(function(p){return Jt(e,i,p).top>r},u,n),{begin:u,end:n}}function Os(e,t,i,r){i||(i=ri(e,t));var n=On(e,t,Jt(e,i,r),"line").top;return Ns(e,t,i,n)}function Sa(e,t,i,r){return e.bottom<=i?!1:e.top>i?!0:(r?e.left:e.right)>t}function zd(e,t,i,r,n){n-=ir(t);var u=ri(e,t),p=Ca(t),g=0,m=t.text.length,b=!0,C=tr(t,e.doc.direction);if(C){var E=(e.options.lineWrapping?Od:Nd)(e,t,i,u,C,r,n);b=E.level!=1,g=b?E.from:E.to-1,m=b?E.to:E.from-1}var _=null,M=null,P=Li(function(se){var le=Jt(e,u,se);return le.top+=p,le.bottom+=p,Sa(le,r,n,!1)?(le.top<=n&&le.left<=r&&(_=se,M=le),!0):!1},g,m),R,Z,J=!1;if(M){var te=r-M.left=ie.bottom?1:0}return P=Xl(t.text,P,1),Da(i,P,Z,J,r-R)}function Nd(e,t,i,r,n,u,p){var g=Li(function(E){var _=n[E],M=_.level!=1;return Sa(Rt(e,Y(i,M?_.to:_.from,M?"before":"after"),"line",t,r),u,p,!0)},0,n.length-1),m=n[g];if(g>0){var b=m.level!=1,C=Rt(e,Y(i,b?m.from:m.to,b?"after":"before"),"line",t,r);Sa(C,u,p,!0)&&C.top>p&&(m=n[g-1])}return m}function Od(e,t,i,r,n,u,p){var g=Ns(e,t,r,p),m=g.begin,b=g.end;/\s/.test(t.text.charAt(b-1))&&b--;for(var C=null,E=null,_=0;_=b||M.to<=m)){var P=M.level!=1,R=Jt(e,r,P?Math.min(b,M.to)-1:Math.max(m,M.from)).right,Z=RZ)&&(C=M,E=Z)}}return C||(C=n[n.length-1]),C.fromb&&(C={from:C.from,to:b,level:C.level}),C}var zr;function ii(e){if(e.cachedTextHeight!=null)return e.cachedTextHeight;if(zr==null){zr=k("pre",null,"CodeMirror-line-like");for(var t=0;t<49;++t)zr.appendChild(document.createTextNode("x")),zr.appendChild(k("br"));zr.appendChild(document.createTextNode("x"))}G(e.measure,zr);var i=zr.offsetHeight/50;return i>3&&(e.cachedTextHeight=i),X(e.measure),i||1}function ni(e){if(e.cachedCharWidth!=null)return e.cachedCharWidth;var t=k("span","xxxxxxxxxx"),i=k("pre",[t],"CodeMirror-line-like");G(e.measure,i);var r=t.getBoundingClientRect(),n=(r.right-r.left)/10;return n>2&&(e.cachedCharWidth=n),n||10}function Ea(e){for(var t=e.display,i={},r={},n=t.gutters.clientLeft,u=t.gutters.firstChild,p=0;u;u=u.nextSibling,++p){var g=e.display.gutterSpecs[p].className;i[g]=u.offsetLeft+u.clientLeft+n,r[g]=u.clientWidth}return{fixedPos:Aa(t),gutterTotalWidth:t.gutters.offsetWidth,gutterLeft:i,gutterWidth:r,wrapperWidth:t.wrapper.clientWidth}}function Aa(e){return e.scroller.getBoundingClientRect().left-e.sizer.getBoundingClientRect().left}function Is(e){var t=ii(e.display),i=e.options.lineWrapping,r=i&&Math.max(5,e.display.scroller.clientWidth/ni(e.display)-3);return function(n){if(mr(e.doc,n))return 0;var u=0;if(n.widgets)for(var p=0;p0&&(b=ae(e.doc,m.line).text).length==m.ch){var C=Ye(b,b.length,e.options.tabSize)-b.length;m=Y(m.line,Math.max(0,Math.round((u-ks(e.display).left)/ni(e.display))-C))}return m}function Or(e,t){if(t>=e.display.viewTo||(t-=e.display.viewFrom,t<0))return null;for(var i=e.display.view,r=0;rt)&&(n.updateLineNumbers=t),e.curOp.viewChanged=!0,t>=n.viewTo)rr&&ga(e.doc,t)n.viewFrom?br(e):(n.viewFrom+=r,n.viewTo+=r);else if(t<=n.viewFrom&&i>=n.viewTo)br(e);else if(t<=n.viewFrom){var u=Hn(e,i,i+r,1);u?(n.view=n.view.slice(u.index),n.viewFrom=u.lineN,n.viewTo+=r):br(e)}else if(i>=n.viewTo){var p=Hn(e,t,t,-1);p?(n.view=n.view.slice(0,p.index),n.viewTo=p.lineN):br(e)}else{var g=Hn(e,t,t,-1),m=Hn(e,i,i+r,1);g&&m?(n.view=n.view.slice(0,g.index).concat(zn(e,g.lineN,m.lineN)).concat(n.view.slice(m.index)),n.viewTo+=r):br(e)}var b=n.externalMeasured;b&&(i=n.lineN&&t=r.viewTo)){var u=r.view[Or(e,t)];if(u.node!=null){var p=u.changes||(u.changes=[]);ze(p,i)==-1&&p.push(i)}}}function br(e){e.display.viewFrom=e.display.viewTo=e.doc.first,e.display.view=[],e.display.viewOffset=0}function Hn(e,t,i,r){var n=Or(e,t),u,p=e.display.view;if(!rr||i==e.doc.first+e.doc.size)return{index:n,lineN:i};for(var g=e.display.viewFrom,m=0;m0){if(n==p.length-1)return null;u=g+p[n].size-t,n++}else u=g-t;t+=u,i+=u}for(;ga(e.doc,i)!=i;){if(n==(r<0?0:p.length-1))return null;i+=r*p[n-(r<0?1:0)].size,n+=r}return{index:n,lineN:i}}function Id(e,t,i){var r=e.display,n=r.view;n.length==0||t>=r.viewTo||i<=r.viewFrom?(r.view=zn(e,t,i),r.viewFrom=t):(r.viewFrom>t?r.view=zn(e,t,r.viewFrom).concat(r.view):r.viewFromi&&(r.view=r.view.slice(0,Or(e,i)))),r.viewTo=i}function Hs(e){for(var t=e.display.view,i=0,r=0;r=e.display.viewTo||m.to().line0?p:e.defaultCharWidth())+"px"}if(r.other){var g=i.appendChild(k("div","\xA0","CodeMirror-cursor CodeMirror-secondarycursor"));g.style.display="",g.style.left=r.other.left+"px",g.style.top=r.other.top+"px",g.style.height=(r.other.bottom-r.other.top)*.85+"px"}}function Pn(e,t){return e.top-t.top||e.left-t.left}function Hd(e,t,i){var r=e.display,n=e.doc,u=document.createDocumentFragment(),p=ks(e.display),g=p.left,m=Math.max(r.sizerWidth,_r(e)-r.sizer.offsetLeft)-p.right,b=n.direction=="ltr";function C(V,ie,se,le){ie<0&&(ie=0),ie=Math.round(ie),le=Math.round(le),u.appendChild(k("div",null,"CodeMirror-selected","position: absolute; left: "+V+`px; - top: `+ie+"px; width: "+(se??m-V)+`px; - height: `+(le-ie)+"px"))}function E(V,ie,se){var le=ae(n,V),we=le.text.length,Le,it;function Ie(Xe,Ct){return In(e,Y(V,Xe),"div",le,Ct)}function Et(Xe,Ct,ot){var Qe=Os(e,le,null,Xe),Ke=Ct=="ltr"==(ot=="after")?"left":"right",qe=ot=="after"?Qe.begin:Qe.end-(/\s/.test(le.text.charAt(Qe.end-1))?2:1);return Ie(qe,Ke)[Ke]}var wt=tr(le,n.direction);return Rc(wt,ie||0,se??we,function(Xe,Ct,ot,Qe){var Ke=ot=="ltr",qe=Ie(Xe,Ke?"left":"right"),Dt=Ie(Ct-1,Ke?"right":"left"),vi=ie==null&&Xe==0,kr=se==null&&Ct==we,ut=Qe==0,Vt=!wt||Qe==wt.length-1;if(Dt.top-qe.top<=3){var nt=(b?vi:kr)&&ut,rl=(b?kr:vi)&&Vt,lr=nt?g:(Ke?qe:Dt).left,Rr=rl?m:(Ke?Dt:qe).right;C(lr,qe.top,Rr-lr,qe.bottom)}else{var Wr,pt,bi,il;Ke?(Wr=b&&vi&&ut?g:qe.left,pt=b?m:Et(Xe,ot,"before"),bi=b?g:Et(Ct,ot,"after"),il=b&&kr&&Vt?m:Dt.right):(Wr=b?Et(Xe,ot,"before"):g,pt=!b&&vi&&ut?m:qe.right,bi=!b&&kr&&Vt?g:Dt.left,il=b?Et(Ct,ot,"after"):m),C(Wr,qe.top,pt-Wr,qe.bottom),qe.bottom0?t.blinker=setInterval(function(){e.hasFocus()||oi(e),t.cursorDiv.style.visibility=(i=!i)?"":"hidden"},e.options.cursorBlinkRate):e.options.cursorBlinkRate<0&&(t.cursorDiv.style.visibility="hidden")}}function qs(e){e.hasFocus()||(e.display.input.focus(),e.state.focused||Ba(e))}function Ma(e){e.state.delayingBlurEvent=!0,setTimeout(function(){e.state.delayingBlurEvent&&(e.state.delayingBlurEvent=!1,e.state.focused&&oi(e))},100)}function Ba(e,t){e.state.delayingBlurEvent&&!e.state.draggingText&&(e.state.delayingBlurEvent=!1),e.options.readOnly!="nocursor"&&(e.state.focused||(je(e,"focus",e,t),e.state.focused=!0,pe(e.display.wrapper,"CodeMirror-focused"),!e.curOp&&e.display.selForContextMenu!=e.doc.sel&&(e.display.input.reset(),v&&setTimeout(function(){return e.display.input.reset(!0)},20)),e.display.input.receivedFocus()),La(e))}function oi(e,t){e.state.delayingBlurEvent||(e.state.focused&&(je(e,"blur",e,t),e.state.focused=!1,oe(e.display.wrapper,"CodeMirror-focused")),clearInterval(e.display.blinker),setTimeout(function(){e.state.focused||(e.display.shift=!1)},150))}function qn(e){for(var t=e.display,i=t.lineDiv.offsetTop,r=Math.max(0,t.scroller.getBoundingClientRect().top),n=t.lineDiv.getBoundingClientRect().top,u=0,p=0;p.005||M<-.005)&&(ne.display.sizerWidth){var R=Math.ceil(C/ni(e.display));R>e.display.maxLineLength&&(e.display.maxLineLength=R,e.display.maxLine=g.line,e.display.maxLineChanged=!0)}}}Math.abs(u)>2&&(t.scroller.scrollTop+=u)}function Rs(e){if(e.widgets)for(var t=0;t=p&&(u=Br(t,ir(ae(t,m))-e.wrapper.clientHeight),p=m)}return{from:u,to:Math.max(p,u+1)}}function Pd(e,t){if(!$e(e,"scrollCursorIntoView")){var i=e.display,r=i.sizer.getBoundingClientRect(),n=null,u=i.wrapper.ownerDocument;if(t.top+r.top<0?n=!0:t.bottom+r.top>(u.defaultView.innerHeight||u.documentElement.clientHeight)&&(n=!1),n!=null&&!L){var p=k("div","\u200B",null,`position: absolute; - top: `+(t.top-i.viewOffset-Nn(e.display))+`px; - height: `+(t.bottom-t.top+Qt(e)+i.barHeight)+`px; - left: `+t.left+"px; width: "+Math.max(2,t.right-t.left)+"px;");e.display.lineSpace.appendChild(p),p.scrollIntoView(n),e.display.lineSpace.removeChild(p)}}}function qd(e,t,i,r){r==null&&(r=0);var n;!e.options.lineWrapping&&t==i&&(i=t.sticky=="before"?Y(t.line,t.ch+1,"before"):t,t=t.ch?Y(t.line,t.sticky=="before"?t.ch-1:t.ch,"after"):t);for(var u=0;u<5;u++){var p=!1,g=Rt(e,t),m=!i||i==t?g:Rt(e,i);n={left:Math.min(g.left,m.left),top:Math.min(g.top,m.top)-r,right:Math.max(g.left,m.left),bottom:Math.max(g.bottom,m.bottom)+r};var b=_a(e,n),C=e.doc.scrollTop,E=e.doc.scrollLeft;if(b.scrollTop!=null&&(Ui(e,b.scrollTop),Math.abs(e.doc.scrollTop-C)>1&&(p=!0)),b.scrollLeft!=null&&(Ir(e,b.scrollLeft),Math.abs(e.doc.scrollLeft-E)>1&&(p=!0)),!p)break}return n}function Rd(e,t){var i=_a(e,t);i.scrollTop!=null&&Ui(e,i.scrollTop),i.scrollLeft!=null&&Ir(e,i.scrollLeft)}function _a(e,t){var i=e.display,r=ii(e.display);t.top<0&&(t.top=0);var n=e.curOp&&e.curOp.scrollTop!=null?e.curOp.scrollTop:i.scroller.scrollTop,u=xa(e),p={};t.bottom-t.top>u&&(t.bottom=t.top+u);var g=e.doc.height+ya(i),m=t.topg-r;if(t.topn+u){var C=Math.min(t.top,(b?g:t.bottom)-u);C!=n&&(p.scrollTop=C)}var E=e.options.fixedGutter?0:i.gutters.offsetWidth,_=e.curOp&&e.curOp.scrollLeft!=null?e.curOp.scrollLeft:i.scroller.scrollLeft-E,M=_r(e)-i.gutters.offsetWidth,P=t.right-t.left>M;return P&&(t.right=t.left+M),t.left<10?p.scrollLeft=0:t.left<_?p.scrollLeft=Math.max(0,t.left+E-(P?0:10)):t.right>M+_-3&&(p.scrollLeft=t.right+(P?0:10)-M),p}function za(e,t){t!=null&&(Wn(e),e.curOp.scrollTop=(e.curOp.scrollTop==null?e.doc.scrollTop:e.curOp.scrollTop)+t)}function ai(e){Wn(e);var t=e.getCursor();e.curOp.scrollToPos={from:t,to:t,margin:e.options.cursorScrollMargin}}function Wi(e,t,i){(t!=null||i!=null)&&Wn(e),t!=null&&(e.curOp.scrollLeft=t),i!=null&&(e.curOp.scrollTop=i)}function Wd(e,t){Wn(e),e.curOp.scrollToPos=t}function Wn(e){var t=e.curOp.scrollToPos;if(t){e.curOp.scrollToPos=null;var i=zs(e,t.from),r=zs(e,t.to);Ws(e,i,r,t.margin)}}function Ws(e,t,i,r){var n=_a(e,{left:Math.min(t.left,i.left),top:Math.min(t.top,i.top)-r,right:Math.max(t.right,i.right),bottom:Math.max(t.bottom,i.bottom)+r});Wi(e,n.scrollLeft,n.scrollTop)}function Ui(e,t){Math.abs(e.doc.scrollTop-t)<2||(s||Oa(e,{top:t}),Us(e,t,!0),s&&Oa(e),Xi(e,100))}function Us(e,t,i){t=Math.max(0,Math.min(e.display.scroller.scrollHeight-e.display.scroller.clientHeight,t)),!(e.display.scroller.scrollTop==t&&!i)&&(e.doc.scrollTop=t,e.display.scrollbars.setScrollTop(t),e.display.scroller.scrollTop!=t&&(e.display.scroller.scrollTop=t))}function Ir(e,t,i,r){t=Math.max(0,Math.min(t,e.display.scroller.scrollWidth-e.display.scroller.clientWidth)),!((i?t==e.doc.scrollLeft:Math.abs(e.doc.scrollLeft-t)<2)&&!r)&&(e.doc.scrollLeft=t,Ys(e),e.display.scroller.scrollLeft!=t&&(e.display.scroller.scrollLeft=t),e.display.scrollbars.setScrollLeft(t))}function ji(e){var t=e.display,i=t.gutters.offsetWidth,r=Math.round(e.doc.height+ya(e.display));return{clientHeight:t.scroller.clientHeight,viewHeight:t.wrapper.clientHeight,scrollWidth:t.scroller.scrollWidth,clientWidth:t.scroller.clientWidth,viewWidth:t.wrapper.clientWidth,barLeft:e.options.fixedGutter?i:0,docHeight:r,scrollHeight:r+Qt(e)+t.barHeight,nativeBarWidth:t.nativeBarWidth,gutterWidth:i}}var Hr=function(e,t,i){this.cm=i;var r=this.vert=k("div",[k("div",null,null,"min-width: 1px")],"CodeMirror-vscrollbar"),n=this.horiz=k("div",[k("div",null,null,"height: 100%; min-height: 1px")],"CodeMirror-hscrollbar");r.tabIndex=n.tabIndex=-1,e(r),e(n),ue(r,"scroll",function(){r.clientHeight&&t(r.scrollTop,"vertical")}),ue(n,"scroll",function(){n.clientWidth&&t(n.scrollLeft,"horizontal")}),this.checkedZeroWidth=!1,c&&d<8&&(this.horiz.style.minHeight=this.vert.style.minWidth="18px")};Hr.prototype.update=function(e){var t=e.scrollWidth>e.clientWidth+1,i=e.scrollHeight>e.clientHeight+1,r=e.nativeBarWidth;if(i){this.vert.style.display="block",this.vert.style.bottom=t?r+"px":"0";var n=e.viewHeight-(t?r:0);this.vert.firstChild.style.height=Math.max(0,e.scrollHeight-e.clientHeight+n)+"px"}else this.vert.scrollTop=0,this.vert.style.display="",this.vert.firstChild.style.height="0";if(t){this.horiz.style.display="block",this.horiz.style.right=i?r+"px":"0",this.horiz.style.left=e.barLeft+"px";var u=e.viewWidth-e.barLeft-(i?r:0);this.horiz.firstChild.style.width=Math.max(0,e.scrollWidth-e.clientWidth+u)+"px"}else this.horiz.style.display="",this.horiz.firstChild.style.width="0";return!this.checkedZeroWidth&&e.clientHeight>0&&(r==0&&this.zeroWidthHack(),this.checkedZeroWidth=!0),{right:i?r:0,bottom:t?r:0}},Hr.prototype.setScrollLeft=function(e){this.horiz.scrollLeft!=e&&(this.horiz.scrollLeft=e),this.disableHoriz&&this.enableZeroWidthBar(this.horiz,this.disableHoriz,"horiz")},Hr.prototype.setScrollTop=function(e){this.vert.scrollTop!=e&&(this.vert.scrollTop=e),this.disableVert&&this.enableZeroWidthBar(this.vert,this.disableVert,"vert")},Hr.prototype.zeroWidthHack=function(){var e=O&&!B?"12px":"18px";this.horiz.style.height=this.vert.style.width=e,this.horiz.style.visibility=this.vert.style.visibility="hidden",this.disableHoriz=new dt,this.disableVert=new dt},Hr.prototype.enableZeroWidthBar=function(e,t,i){e.style.visibility="";function r(){var n=e.getBoundingClientRect(),u=i=="vert"?document.elementFromPoint(n.right-1,(n.top+n.bottom)/2):document.elementFromPoint((n.right+n.left)/2,n.bottom-1);u!=e?e.style.visibility="hidden":t.set(1e3,r)}t.set(1e3,r)},Hr.prototype.clear=function(){var e=this.horiz.parentNode;e.removeChild(this.horiz),e.removeChild(this.vert)};var Gi=function(){};Gi.prototype.update=function(){return{bottom:0,right:0}},Gi.prototype.setScrollLeft=function(){},Gi.prototype.setScrollTop=function(){},Gi.prototype.clear=function(){};function li(e,t){t||(t=ji(e));var i=e.display.barWidth,r=e.display.barHeight;js(e,t);for(var n=0;n<4&&i!=e.display.barWidth||r!=e.display.barHeight;n++)i!=e.display.barWidth&&e.options.lineWrapping&&qn(e),js(e,ji(e)),i=e.display.barWidth,r=e.display.barHeight}function js(e,t){var i=e.display,r=i.scrollbars.update(t);i.sizer.style.paddingRight=(i.barWidth=r.right)+"px",i.sizer.style.paddingBottom=(i.barHeight=r.bottom)+"px",i.heightForcer.style.borderBottom=r.bottom+"px solid transparent",r.right&&r.bottom?(i.scrollbarFiller.style.display="block",i.scrollbarFiller.style.height=r.bottom+"px",i.scrollbarFiller.style.width=r.right+"px"):i.scrollbarFiller.style.display="",r.bottom&&e.options.coverGutterNextToScrollbar&&e.options.fixedGutter?(i.gutterFiller.style.display="block",i.gutterFiller.style.height=r.bottom+"px",i.gutterFiller.style.width=t.gutterWidth+"px"):i.gutterFiller.style.display=""}var Gs={native:Hr,null:Gi};function Xs(e){e.display.scrollbars&&(e.display.scrollbars.clear(),e.display.scrollbars.addClass&&oe(e.display.wrapper,e.display.scrollbars.addClass)),e.display.scrollbars=new Gs[e.options.scrollbarStyle](function(t){e.display.wrapper.insertBefore(t,e.display.scrollbarFiller),ue(t,"mousedown",function(){e.state.focused&&setTimeout(function(){return e.display.input.focus()},0)}),t.setAttribute("cm-not-content","true")},function(t,i){i=="horizontal"?Ir(e,t):Ui(e,t)},e),e.display.scrollbars.addClass&&pe(e.display.wrapper,e.display.scrollbars.addClass)}var Ud=0;function Pr(e){e.curOp={cm:e,viewChanged:!1,startHeight:e.doc.height,forceUpdate:!1,updateInput:0,typing:!1,changeObjs:null,cursorActivityHandlers:null,cursorActivityCalled:0,selectionChanged:!1,updateMaxLine:!1,scrollLeft:null,scrollTop:null,scrollToPos:null,focus:!1,id:++Ud,markArrays:null},xd(e.curOp)}function qr(e){var t=e.curOp;t&&Cd(t,function(i){for(var r=0;r=i.viewTo)||i.maxLineChanged&&t.options.lineWrapping,e.update=e.mustUpdate&&new Un(t,e.mustUpdate&&{top:e.scrollTop,ensure:e.scrollToPos},e.forceUpdate)}function Xd(e){e.updatedDisplay=e.mustUpdate&&Na(e.cm,e.update)}function Kd(e){var t=e.cm,i=t.display;e.updatedDisplay&&qn(t),e.barMeasure=ji(t),i.maxLineChanged&&!t.options.lineWrapping&&(e.adjustWidthTo=Es(t,i.maxLine,i.maxLine.text.length).left+3,t.display.sizerWidth=e.adjustWidthTo,e.barMeasure.scrollWidth=Math.max(i.scroller.clientWidth,i.sizer.offsetLeft+e.adjustWidthTo+Qt(t)+t.display.barWidth),e.maxScrollLeft=Math.max(0,i.sizer.offsetLeft+e.adjustWidthTo-_r(t))),(e.updatedDisplay||e.selectionChanged)&&(e.preparedSelection=i.input.prepareSelection())}function Yd(e){var t=e.cm;e.adjustWidthTo!=null&&(t.display.sizer.style.minWidth=e.adjustWidthTo+"px",e.maxScrollLeft=e.display.viewTo)){var i=+new Date+e.options.workTime,r=Ni(e,t.highlightFrontier),n=[];t.iter(r.line,Math.min(t.first+t.size,e.display.viewTo+500),function(u){if(r.line>=e.display.viewFrom){var p=u.styles,g=u.text.length>e.options.maxHighlightLength?Lr(t.mode,r.state):null,m=es(e,u,r,!0);g&&(r.state=g),u.styles=m.styles;var b=u.styleClasses,C=m.classes;C?u.styleClasses=C:b&&(u.styleClasses=null);for(var E=!p||p.length!=u.styles.length||b!=C&&(!b||!C||b.bgClass!=C.bgClass||b.textClass!=C.textClass),_=0;!E&&_i)return Xi(e,e.options.workDelay),!0}),t.highlightFrontier=r.line,t.modeFrontier=Math.max(t.modeFrontier,r.line),n.length&&St(e,function(){for(var u=0;u=i.viewFrom&&t.visible.to<=i.viewTo&&(i.updateLineNumbers==null||i.updateLineNumbers>=i.viewTo)&&i.renderedView==i.view&&Hs(e)==0)return!1;Zs(e)&&(br(e),t.dims=Ea(e));var n=r.first+r.size,u=Math.max(t.visible.from-e.options.viewportMargin,r.first),p=Math.min(n,t.visible.to+e.options.viewportMargin);i.viewFromp&&i.viewTo-p<20&&(p=Math.min(n,i.viewTo)),rr&&(u=ga(e.doc,u),p=ps(e.doc,p));var g=u!=i.viewFrom||p!=i.viewTo||i.lastWrapHeight!=t.wrapperHeight||i.lastWrapWidth!=t.wrapperWidth;Id(e,u,p),i.viewOffset=ir(ae(e.doc,i.viewFrom)),e.display.mover.style.top=i.viewOffset+"px";var m=Hs(e);if(!g&&m==0&&!t.force&&i.renderedView==i.view&&(i.updateLineNumbers==null||i.updateLineNumbers>=i.viewTo))return!1;var b=Vd(e);return m>4&&(i.lineDiv.style.display="none"),eh(e,i.updateLineNumbers,t.dims),m>4&&(i.lineDiv.style.display=""),i.renderedView=i.view,$d(b),X(i.cursorDiv),X(i.selectionDiv),i.gutters.style.height=i.sizer.style.minHeight=0,g&&(i.lastWrapHeight=t.wrapperHeight,i.lastWrapWidth=t.wrapperWidth,Xi(e,400)),i.updateLineNumbers=null,!0}function Ks(e,t){for(var i=t.viewport,r=!0;;r=!1){if(!r||!e.options.lineWrapping||t.oldDisplayWidth==_r(e)){if(i&&i.top!=null&&(i={top:Math.min(e.doc.height+ya(e.display)-xa(e),i.top)}),t.visible=Rn(e.display,e.doc,i),t.visible.from>=e.display.viewFrom&&t.visible.to<=e.display.viewTo)break}else r&&(t.visible=Rn(e.display,e.doc,i));if(!Na(e,t))break;qn(e);var n=ji(e);Ri(e),li(e,n),Ha(e,n),t.force=!1}t.signal(e,"update",e),(e.display.viewFrom!=e.display.reportedViewFrom||e.display.viewTo!=e.display.reportedViewTo)&&(t.signal(e,"viewportChange",e,e.display.viewFrom,e.display.viewTo),e.display.reportedViewFrom=e.display.viewFrom,e.display.reportedViewTo=e.display.viewTo)}function Oa(e,t){var i=new Un(e,t);if(Na(e,i)){qn(e),Ks(e,i);var r=ji(e);Ri(e),li(e,r),Ha(e,r),i.finish()}}function eh(e,t,i){var r=e.display,n=e.options.lineNumbers,u=r.lineDiv,p=u.firstChild;function g(P){var R=P.nextSibling;return v&&O&&e.display.currentWheelTarget==P?P.style.display="none":P.parentNode.removeChild(P),R}for(var m=r.view,b=r.viewFrom,C=0;C-1&&(M=!1),ys(e,E,b,i)),M&&(X(E.lineNumber),E.lineNumber.appendChild(document.createTextNode(sa(e.options,b)))),p=E.node.nextSibling}b+=E.size}for(;p;)p=g(p)}function Ia(e){var t=e.gutters.offsetWidth;e.sizer.style.marginLeft=t+"px",et(e,"gutterChanged",e)}function Ha(e,t){e.display.sizer.style.minHeight=t.docHeight+"px",e.display.heightForcer.style.top=t.docHeight+"px",e.display.gutters.style.height=t.docHeight+e.display.barHeight+Qt(e)+"px"}function Ys(e){var t=e.display,i=t.view;if(!(!t.alignWidgets&&(!t.gutters.firstChild||!e.options.fixedGutter))){for(var r=Aa(t)-t.scroller.scrollLeft+e.doc.scrollLeft,n=t.gutters.offsetWidth,u=r+"px",p=0;pg.clientWidth,b=g.scrollHeight>g.clientHeight;if(r&&m||n&&b){if(n&&O&&v){e:for(var C=t.target,E=p.view;C!=g;C=C.parentNode)for(var _=0;_=0&&ve(e,r.to())<=0)return i}return-1};var Ae=function(e,t){this.anchor=e,this.head=t};Ae.prototype.from=function(){return An(this.anchor,this.head)},Ae.prototype.to=function(){return En(this.anchor,this.head)},Ae.prototype.empty=function(){return this.head.line==this.anchor.line&&this.head.ch==this.anchor.ch};function Wt(e,t,i){var r=e&&e.options.selectionsMayTouch,n=t[i];t.sort(function(_,M){return ve(_.from(),M.from())}),i=ze(t,n);for(var u=1;u0:m>=0){var b=An(g.from(),p.from()),C=En(g.to(),p.to()),E=g.empty()?p.from()==p.head:g.from()==g.head;u<=i&&--i,t.splice(--u,2,new Ae(E?C:b,E?b:C))}}return new Bt(t,i)}function yr(e,t){return new Bt([new Ae(e,t||e)],0)}function xr(e){return e.text?Y(e.from.line+e.text.length-1,De(e.text).length+(e.text.length==1?e.from.ch:0)):e.to}function $s(e,t){if(ve(e,t.from)<0)return e;if(ve(e,t.to)<=0)return xr(t);var i=e.line+t.text.length-(t.to.line-t.from.line)-1,r=e.ch;return e.line==t.to.line&&(r+=xr(t).ch-t.to.ch),Y(i,r)}function qa(e,t){for(var i=[],r=0;r1&&e.remove(g.line+1,P-1),e.insert(g.line+1,J)}et(e,"change",e,t)}function wr(e,t,i){function r(n,u,p){if(n.linked)for(var g=0;g1&&!e.done[e.done.length-2].ranges)return e.done.pop(),De(e.done)}function ou(e,t,i,r){var n=e.history;n.undone.length=0;var u=+new Date,p,g;if((n.lastOp==r||n.lastOrigin==t.origin&&t.origin&&(t.origin.charAt(0)=="+"&&n.lastModTime>u-(e.cm?e.cm.options.historyEventDelay:500)||t.origin.charAt(0)=="*"))&&(p=oh(n,n.lastOp==r)))g=De(p.changes),ve(t.from,t.to)==0&&ve(t.from,g.to)==0?g.to=xr(t):p.changes.push(Ua(e,t));else{var m=De(n.done);for((!m||!m.ranges)&&Xn(e.sel,n.done),p={changes:[Ua(e,t)],generation:n.generation},n.done.push(p);n.done.length>n.undoDepth;)n.done.shift(),n.done[0].ranges||n.done.shift()}n.done.push(i),n.generation=++n.maxGeneration,n.lastModTime=n.lastSelTime=u,n.lastOp=n.lastSelOp=r,n.lastOrigin=n.lastSelOrigin=t.origin,g||je(e,"historyAdded")}function ah(e,t,i,r){var n=t.charAt(0);return n=="*"||n=="+"&&i.ranges.length==r.ranges.length&&i.somethingSelected()==r.somethingSelected()&&new Date-e.history.lastSelTime<=(e.cm?e.cm.options.historyEventDelay:500)}function lh(e,t,i,r){var n=e.history,u=r&&r.origin;i==n.lastSelOp||u&&n.lastSelOrigin==u&&(n.lastModTime==n.lastSelTime&&n.lastOrigin==u||ah(e,u,De(n.done),t))?n.done[n.done.length-1]=t:Xn(t,n.done),n.lastSelTime=+new Date,n.lastSelOrigin=u,n.lastSelOp=i,r&&r.clearRedo!==!1&&nu(n.undone)}function Xn(e,t){var i=De(t);i&&i.ranges&&i.equals(e)||t.push(e)}function au(e,t,i,r){var n=t["spans_"+e.id],u=0;e.iter(Math.max(e.first,i),Math.min(e.first+e.size,r),function(p){p.markedSpans&&((n||(n=t["spans_"+e.id]={}))[u]=p.markedSpans),++u})}function sh(e){if(!e)return null;for(var t,i=0;i-1&&(De(g)[E]=b[E],delete b[E])}}return r}function ja(e,t,i,r){if(r){var n=e.anchor;if(i){var u=ve(t,n)<0;u!=ve(i,n)<0?(n=t,t=i):u!=ve(t,i)<0&&(t=i)}return new Ae(n,t)}else return new Ae(i||t,t)}function Kn(e,t,i,r,n){n==null&&(n=e.cm&&(e.cm.display.shift||e.extend)),st(e,new Bt([ja(e.sel.primary(),t,i,n)],0),r)}function su(e,t,i){for(var r=[],n=e.cm&&(e.cm.display.shift||e.extend),u=0;u=t.ch:g.to>t.ch))){if(n&&(je(m,"beforeCursorEnter"),m.explicitlyCleared))if(u.markedSpans){--p;continue}else break;if(!m.atomic)continue;if(i){var E=m.find(r<0?1:-1),_=void 0;if((r<0?C:b)&&(E=pu(e,E,-r,E&&E.line==t.line?u:null)),E&&E.line==t.line&&(_=ve(E,i))&&(r<0?_<0:_>0))return ui(e,E,t,r,n)}var M=m.find(r<0?-1:1);return(r<0?b:C)&&(M=pu(e,M,r,M.line==t.line?u:null)),M?ui(e,M,t,r,n):null}}return t}function Zn(e,t,i,r,n){var u=r||1,p=ui(e,t,i,u,n)||!n&&ui(e,t,i,u,!0)||ui(e,t,i,-u,n)||!n&&ui(e,t,i,-u,!0);return p||(e.cantEdit=!0,Y(e.first,0))}function pu(e,t,i,r){return i<0&&t.ch==0?t.line>e.first?be(e,Y(t.line-1)):null:i>0&&t.ch==(r||ae(e,t.line)).text.length?t.line=0;--n)vu(e,{from:r[n].from,to:r[n].to,text:n?[""]:t.text,origin:t.origin});else vu(e,t)}}function vu(e,t){if(!(t.text.length==1&&t.text[0]==""&&ve(t.from,t.to)==0)){var i=qa(e,t);ou(e,t,i,e.cm?e.cm.curOp.id:NaN),Zi(e,t,i,ha(e,t));var r=[];wr(e,function(n,u){!u&&ze(r,n.history)==-1&&(wu(n.history,t),r.push(n.history)),Zi(n,t,null,ha(n,t))})}}function Qn(e,t,i){var r=e.cm&&e.cm.state.suppressEdits;if(!(r&&!i)){for(var n=e.history,u,p=e.sel,g=t=="undo"?n.done:n.undone,m=t=="undo"?n.undone:n.done,b=0;b=0;--M){var P=_(M);if(P)return P.v}}}}function bu(e,t){if(t!=0&&(e.first+=t,e.sel=new Bt(Pt(e.sel.ranges,function(n){return new Ae(Y(n.anchor.line+t,n.anchor.ch),Y(n.head.line+t,n.head.ch))}),e.sel.primIndex),e.cm)){yt(e.cm,e.first,e.first-t,t);for(var i=e.cm.display,r=i.viewFrom;re.lastLine())){if(t.from.lineu&&(t={from:t.from,to:Y(u,ae(e,u).text.length),text:[t.text[0]],origin:t.origin}),t.removed=Mr(e,t.from,t.to),i||(i=qa(e,t)),e.cm?ch(e.cm,t,r):Wa(e,t,r),Yn(e,i,vt),e.cantEdit&&Zn(e,Y(e.firstLine(),0))&&(e.cantEdit=!1)}}function ch(e,t,i){var r=e.doc,n=e.display,u=t.from,p=t.to,g=!1,m=u.line;e.options.lineWrapping||(m=Fe(qt(ae(r,u.line))),r.iter(m,p.line+1,function(M){if(M==n.maxLine)return g=!0,!0})),r.sel.contains(t.from,t.to)>-1&&Yl(e),Wa(r,t,i,Is(e)),e.options.lineWrapping||(r.iter(m,u.line+t.text.length,function(M){var P=_n(M);P>n.maxLineLength&&(n.maxLine=M,n.maxLineLength=P,n.maxLineChanged=!0,g=!1)}),g&&(e.curOp.updateMaxLine=!0)),ed(r,u.line),Xi(e,400);var b=t.text.length-(p.line-u.line)-1;t.full?yt(e):u.line==p.line&&t.text.length==1&&!tu(e.doc,t)?vr(e,u.line,"text"):yt(e,u.line,p.line+1,b);var C=Ot(e,"changes"),E=Ot(e,"change");if(E||C){var _={from:u,to:p,text:t.text,removed:t.removed,origin:t.origin};E&&et(e,"change",e,_),C&&(e.curOp.changeObjs||(e.curOp.changeObjs=[])).push(_)}e.display.selForContextMenu=null}function ci(e,t,i,r,n){var u;r||(r=i),ve(r,i)<0&&(u=[r,i],i=u[0],r=u[1]),typeof t=="string"&&(t=e.splitLines(t)),fi(e,{from:i,to:r,text:t,origin:n})}function yu(e,t,i,r){i1||!(this.children[0]instanceof Ji))){var g=[];this.collapse(g),this.children=[new Ji(g)],this.children[0].parent=this}},collapse:function(e){for(var t=0;t50){for(var p=n.lines.length%25+25,g=p;g10);e.parent.maybeSpill()}},iterN:function(e,t,i){for(var r=0;re.display.maxLineLength&&(e.display.maxLine=b,e.display.maxLineLength=C,e.display.maxLineChanged=!0)}r!=null&&e&&this.collapsed&&yt(e,r,n+1),this.lines.length=0,this.explicitlyCleared=!0,this.atomic&&this.doc.cantEdit&&(this.doc.cantEdit=!1,e&&du(e.doc)),e&&et(e,"markerCleared",e,this,r,n),t&&qr(e),this.parent&&this.parent.clear()}},Cr.prototype.find=function(e,t){e==null&&this.type=="bookmark"&&(e=1);for(var i,r,n=0;n0||p==0&&u.clearWhenEmpty!==!1)return u;if(u.replacedWith&&(u.collapsed=!0,u.widgetNode=H("span",[u.replacedWith],"CodeMirror-widget"),r.handleMouseEvents||u.widgetNode.setAttribute("cm-ignore-events","true"),r.insertLeft&&(u.widgetNode.insertLeft=!0)),u.collapsed){if(hs(e,t.line,t,i,u)||t.line!=i.line&&hs(e,i.line,t,i,u))throw new Error("Inserting collapsed marker partially overlapping an existing one");rd()}u.addToHistory&&ou(e,{from:t,to:i,origin:"markText"},e.sel,NaN);var g=t.line,m=e.cm,b;if(e.iter(g,i.line+1,function(E){m&&u.collapsed&&!m.options.lineWrapping&&qt(E)==m.display.maxLine&&(b=!0),u.collapsed&&g!=t.line&&Yt(E,0),nd(E,new Tn(u,g==t.line?t.ch:null,g==i.line?i.ch:null),e.cm&&e.cm.curOp),++g}),u.collapsed&&e.iter(t.line,i.line+1,function(E){mr(e,E)&&Yt(E,0)}),u.clearOnEnter&&ue(u,"beforeCursorEnter",function(){return u.clear()}),u.readOnly&&(td(),(e.history.done.length||e.history.undone.length)&&e.clearHistory()),u.collapsed&&(u.id=++Du,u.atomic=!0),m){if(b&&(m.curOp.updateMaxLine=!0),u.collapsed)yt(m,t.line,i.line+1);else if(u.className||u.startStyle||u.endStyle||u.css||u.attributes||u.title)for(var C=t.line;C<=i.line;C++)vr(m,C,"text");u.atomic&&du(m.doc),et(m,"markerAdded",m,u)}return u}var en=function(e,t){this.markers=e,this.primary=t;for(var i=0;i=0;m--)fi(this,r[m]);g?fu(this,g):this.cm&&ai(this.cm)}),undo:rt(function(){Qn(this,"undo")}),redo:rt(function(){Qn(this,"redo")}),undoSelection:rt(function(){Qn(this,"undo",!0)}),redoSelection:rt(function(){Qn(this,"redo",!0)}),setExtending:function(e){this.extend=e},getExtending:function(){return this.extend},historySize:function(){for(var e=this.history,t=0,i=0,r=0;r=e.ch)&&t.push(n.marker.parent||n.marker)}return t},findMarks:function(e,t,i){e=be(this,e),t=be(this,t);var r=[],n=e.line;return this.iter(e.line,t.line+1,function(u){var p=u.markedSpans;if(p)for(var g=0;g=m.to||m.from==null&&n!=e.line||m.from!=null&&n==t.line&&m.from>=t.ch)&&(!i||i(m.marker))&&r.push(m.marker.parent||m.marker)}++n}),r},getAllMarks:function(){var e=[];return this.iter(function(t){var i=t.markedSpans;if(i)for(var r=0;re)return t=e,!0;e-=u,++i}),be(this,Y(i,t))},indexFromPos:function(e){e=be(this,e);var t=e.ch;if(e.linet&&(t=e.from),e.to!=null&&e.to-1){t.state.draggingText(e),setTimeout(function(){return t.display.input.focus()},20);return}try{var C=e.dataTransfer.getData("Text");if(C){var E;if(t.state.draggingText&&!t.state.draggingText.copy&&(E=t.listSelections()),Yn(t.doc,yr(i,i)),E)for(var _=0;_=0;g--)ci(e.doc,"",r[g].from,r[g].to,"+delete");ai(e)})}function Xa(e,t,i){var r=Xl(e.text,t+i,i);return r<0||r>e.text.length?null:r}function Ka(e,t,i){var r=Xa(e,t.ch,i);return r==null?null:new Y(t.line,r,i<0?"after":"before")}function Ya(e,t,i,r,n){if(e){t.doc.direction=="rtl"&&(n=-n);var u=tr(i,t.doc.direction);if(u){var p=n<0?De(u):u[0],g=n<0==(p.level==1),m=g?"after":"before",b;if(p.level>0||t.doc.direction=="rtl"){var C=ri(t,i);b=n<0?i.text.length-1:0;var E=Jt(t,C,b).top;b=Li(function(_){return Jt(t,C,_).top==E},n<0==(p.level==1)?p.from:p.to-1,b),m=="before"&&(b=Xa(i,b,1))}else b=n<0?p.to:p.from;return new Y(r,b,m)}}return new Y(r,n<0?i.text.length:0,n<0?"before":"after")}function Sh(e,t,i,r){var n=tr(t,e.doc.direction);if(!n)return Ka(t,i,r);i.ch>=t.text.length?(i.ch=t.text.length,i.sticky="before"):i.ch<=0&&(i.ch=0,i.sticky="after");var u=Bi(n,i.ch,i.sticky),p=n[u];if(e.doc.direction=="ltr"&&p.level%2==0&&(r>0?p.to>i.ch:p.from=p.from&&_>=C.begin)){var M=E?"before":"after";return new Y(i.line,_,M)}}var P=function(J,te,V){for(var ie=function(Le,it){return it?new Y(i.line,g(Le,1),"before"):new Y(i.line,Le,"after")};J>=0&&J0==(se.level!=1),we=le?V.begin:g(V.end,-1);if(se.from<=we&&we0?C.end:g(C.begin,-1);return Z!=null&&!(r>0&&Z==t.text.length)&&(R=P(r>0?0:n.length-1,r,b(Z)),R)?R:null}var nn={selectAll:gu,singleSelection:function(e){return e.setSelection(e.getCursor("anchor"),e.getCursor("head"),vt)},killLine:function(e){return pi(e,function(t){if(t.empty()){var i=ae(e.doc,t.head.line).text.length;return t.head.ch==i&&t.head.line0)n=new Y(n.line,n.ch+1),e.replaceRange(u.charAt(n.ch-1)+u.charAt(n.ch-2),Y(n.line,n.ch-2),n,"+transpose");else if(n.line>e.doc.first){var p=ae(e.doc,n.line-1).text;p&&(n=new Y(n.line,1),e.replaceRange(u.charAt(0)+e.doc.lineSeparator()+p.charAt(p.length-1),Y(n.line-1,p.length-1),n,"+transpose"))}}i.push(new Ae(n,n))}e.setSelections(i)})},newlineAndIndent:function(e){return St(e,function(){for(var t=e.listSelections(),i=t.length-1;i>=0;i--)e.replaceRange(e.doc.lineSeparator(),t[i].anchor,t[i].head,"+input");t=e.listSelections();for(var r=0;re&&ve(t,this.pos)==0&&i==this.button};var an,ln;function Bh(e,t){var i=+new Date;return ln&&ln.compare(i,e,t)?(an=ln=null,"triple"):an&&an.compare(i,e,t)?(ln=new Qa(i,e,t),an=null,"double"):(an=new Qa(i,e,t),ln=null,"single")}function Pu(e){var t=this,i=t.display;if(!($e(t,e)||i.activeTouch&&i.input.supportsTouch())){if(i.input.ensurePolled(),i.shift=e.shiftKey,nr(i,e)){v||(i.scroller.draggable=!1,setTimeout(function(){return i.scroller.draggable=!0},100));return}if(!Ja(t,e)){var r=Nr(t,e),n=Ql(e),u=r?Bh(r,n):"single";ye(t).focus(),n==1&&t.state.selectingText&&t.state.selectingText(e),!(r&&_h(t,n,r,u,e))&&(n==1?r?Nh(t,r,u,e):$o(e)==i.scroller&&bt(e):n==2?(r&&Kn(t.doc,r),setTimeout(function(){return i.input.focus()},20)):n==3&&(de?t.display.input.onContextMenu(e):Ma(t)))}}}function _h(e,t,i,r,n){var u="Click";return r=="double"?u="Double"+u:r=="triple"&&(u="Triple"+u),u=(t==1?"Left":t==2?"Middle":"Right")+u,on(e,Lu(u,n),n,function(p){if(typeof p=="string"&&(p=nn[p]),!p)return!1;var g=!1;try{e.isReadOnly()&&(e.state.suppressEdits=!0),g=p(e,i)!=Ze}finally{e.state.suppressEdits=!1}return g})}function zh(e,t,i){var r=e.getOption("configureMouse"),n=r?r(e,t,i):{};if(n.unit==null){var u=I?i.shiftKey&&i.metaKey:i.altKey;n.unit=u?"rectangle":t=="single"?"char":t=="double"?"word":"line"}return(n.extend==null||e.doc.extend)&&(n.extend=e.doc.extend||i.shiftKey),n.addNew==null&&(n.addNew=O?i.metaKey:i.ctrlKey),n.moveOnDrag==null&&(n.moveOnDrag=!(O?i.altKey:i.ctrlKey)),n}function Nh(e,t,i,r){c?setTimeout(lt(qs,e),0):e.curOp.focus=he(ee(e));var n=zh(e,i,r),u=e.doc.sel,p;e.options.dragDrop&&Uc&&!e.isReadOnly()&&i=="single"&&(p=u.contains(t))>-1&&(ve((p=u.ranges[p]).from(),t)<0||t.xRel>0)&&(ve(p.to(),t)>0||t.xRel<0)?Oh(e,r,t,n):Ih(e,r,t,n)}function Oh(e,t,i,r){var n=e.display,u=!1,p=tt(e,function(b){v&&(n.scroller.draggable=!1),e.state.draggingText=!1,e.state.delayingBlurEvent&&(e.hasFocus()?e.state.delayingBlurEvent=!1:Ma(e)),Mt(n.wrapper.ownerDocument,"mouseup",p),Mt(n.wrapper.ownerDocument,"mousemove",g),Mt(n.scroller,"dragstart",m),Mt(n.scroller,"drop",p),u||(bt(b),r.addNew||Kn(e.doc,i,null,null,r.extend),v&&!F||c&&d==9?setTimeout(function(){n.wrapper.ownerDocument.body.focus({preventScroll:!0}),n.input.focus()},20):n.input.focus())}),g=function(b){u=u||Math.abs(t.clientX-b.clientX)+Math.abs(t.clientY-b.clientY)>=10},m=function(){return u=!0};v&&(n.scroller.draggable=!0),e.state.draggingText=p,p.copy=!r.moveOnDrag,ue(n.wrapper.ownerDocument,"mouseup",p),ue(n.wrapper.ownerDocument,"mousemove",g),ue(n.scroller,"dragstart",m),ue(n.scroller,"drop",p),e.state.delayingBlurEvent=!0,setTimeout(function(){return n.input.focus()},20),n.scroller.dragDrop&&n.scroller.dragDrop()}function qu(e,t,i){if(i=="char")return new Ae(t,t);if(i=="word")return e.findWordAt(t);if(i=="line")return new Ae(Y(t.line,0),be(e.doc,Y(t.line+1,0)));var r=i(e,t);return new Ae(r.from,r.to)}function Ih(e,t,i,r){c&&Ma(e);var n=e.display,u=e.doc;bt(t);var p,g,m=u.sel,b=m.ranges;if(r.addNew&&!r.extend?(g=u.sel.contains(i),g>-1?p=b[g]:p=new Ae(i,i)):(p=u.sel.primary(),g=u.sel.primIndex),r.unit=="rectangle")r.addNew||(p=new Ae(i,i)),i=Nr(e,t,!0,!0),g=-1;else{var C=qu(e,i,r.unit);r.extend?p=ja(p,C.anchor,C.head,r.extend):p=C}r.addNew?g==-1?(g=b.length,st(u,Wt(e,b.concat([p]),g),{scroll:!1,origin:"*mouse"})):b.length>1&&b[g].empty()&&r.unit=="char"&&!r.extend?(st(u,Wt(e,b.slice(0,g).concat(b.slice(g+1)),0),{scroll:!1,origin:"*mouse"}),m=u.sel):Ga(u,g,p,Ti):(g=0,st(u,new Bt([p],0),Ti),m=u.sel);var E=i;function _(V){if(ve(E,V)!=0)if(E=V,r.unit=="rectangle"){for(var ie=[],se=e.options.tabSize,le=Ye(ae(u,i.line).text,i.ch,se),we=Ye(ae(u,V.line).text,V.ch,se),Le=Math.min(le,we),it=Math.max(le,we),Ie=Math.min(i.line,V.line),Et=Math.min(e.lastLine(),Math.max(i.line,V.line));Ie<=Et;Ie++){var wt=ae(u,Ie).text,Xe=Kt(wt,Le,se);Le==it?ie.push(new Ae(Y(Ie,Xe),Y(Ie,Xe))):wt.length>Xe&&ie.push(new Ae(Y(Ie,Xe),Y(Ie,Kt(wt,it,se))))}ie.length||ie.push(new Ae(i,i)),st(u,Wt(e,m.ranges.slice(0,g).concat(ie),g),{origin:"*mouse",scroll:!1}),e.scrollIntoView(V)}else{var Ct=p,ot=qu(e,V,r.unit),Qe=Ct.anchor,Ke;ve(ot.anchor,Qe)>0?(Ke=ot.head,Qe=An(Ct.from(),ot.anchor)):(Ke=ot.anchor,Qe=En(Ct.to(),ot.head));var qe=m.ranges.slice(0);qe[g]=Hh(e,new Ae(be(u,Qe),Ke)),st(u,Wt(e,qe,g),Ti)}}var M=n.wrapper.getBoundingClientRect(),P=0;function R(V){var ie=++P,se=Nr(e,V,!0,r.unit=="rectangle");if(se)if(ve(se,E)!=0){e.curOp.focus=he(ee(e)),_(se);var le=Rn(n,u);(se.line>=le.to||se.lineM.bottom?20:0;we&&setTimeout(tt(e,function(){P==ie&&(n.scroller.scrollTop+=we,R(V))}),50)}}function Z(V){e.state.selectingText=!1,P=1/0,V&&(bt(V),n.input.focus()),Mt(n.wrapper.ownerDocument,"mousemove",J),Mt(n.wrapper.ownerDocument,"mouseup",te),u.history.lastSelOrigin=null}var J=tt(e,function(V){V.buttons===0||!Ql(V)?Z(V):R(V)}),te=tt(e,Z);e.state.selectingText=te,ue(n.wrapper.ownerDocument,"mousemove",J),ue(n.wrapper.ownerDocument,"mouseup",te)}function Hh(e,t){var i=t.anchor,r=t.head,n=ae(e.doc,i.line);if(ve(i,r)==0&&i.sticky==r.sticky)return t;var u=tr(n);if(!u)return t;var p=Bi(u,i.ch,i.sticky),g=u[p];if(g.from!=i.ch&&g.to!=i.ch)return t;var m=p+(g.from==i.ch==(g.level!=1)?0:1);if(m==0||m==u.length)return t;var b;if(r.line!=i.line)b=(r.line-i.line)*(e.doc.direction=="ltr"?1:-1)>0;else{var C=Bi(u,r.ch,r.sticky),E=C-p||(r.ch-i.ch)*(g.level==1?-1:1);C==m-1||C==m?b=E<0:b=E>0}var _=u[m+(b?-1:0)],M=b==(_.level==1),P=M?_.from:_.to,R=M?"after":"before";return i.ch==P&&i.sticky==R?t:new Ae(new Y(i.line,P,R),r)}function Ru(e,t,i,r){var n,u;if(t.touches)n=t.touches[0].clientX,u=t.touches[0].clientY;else try{n=t.clientX,u=t.clientY}catch{return!1}if(n>=Math.floor(e.display.gutters.getBoundingClientRect().right))return!1;r&&bt(t);var p=e.display,g=p.lineDiv.getBoundingClientRect();if(u>g.bottom||!Ot(e,i))return Vo(t);u-=g.top-p.viewOffset;for(var m=0;m=n){var C=Br(e.doc,u),E=e.display.gutterSpecs[m];return je(e,i,e,C,E.className,t),Vo(t)}}}function Ja(e,t){return Ru(e,t,"gutterClick",!0)}function Wu(e,t){nr(e.display,t)||Ph(e,t)||$e(e,t,"contextmenu")||de||e.display.input.onContextMenu(t)}function Ph(e,t){return Ot(e,"gutterContextMenu")?Ru(e,t,"gutterContextMenu",!1):!1}function Uu(e){e.display.wrapper.className=e.display.wrapper.className.replace(/\s*cm-s-\S+/g,"")+e.options.theme.replace(/(^|\s)\s*/g," cm-s-"),qi(e)}var gi={toString:function(){return"CodeMirror.Init"}},ju={},eo={};function qh(e){var t=e.optionHandlers;function i(r,n,u,p){e.defaults[r]=n,u&&(t[r]=p?function(g,m,b){b!=gi&&u(g,m,b)}:u)}e.defineOption=i,e.Init=gi,i("value","",function(r,n){return r.setValue(n)},!0),i("mode",null,function(r,n){r.doc.modeOption=n,Ra(r)},!0),i("indentUnit",2,Ra,!0),i("indentWithTabs",!1),i("smartIndent",!0),i("tabSize",4,function(r){Yi(r),qi(r),yt(r)},!0),i("lineSeparator",null,function(r,n){if(r.doc.lineSep=n,!!n){var u=[],p=r.doc.first;r.doc.iter(function(m){for(var b=0;;){var C=m.text.indexOf(n,b);if(C==-1)break;b=C+n.length,u.push(Y(p,C))}p++});for(var g=u.length-1;g>=0;g--)ci(r.doc,n,u[g],Y(u[g].line,u[g].ch+n.length))}}),i("specialChars",/[\u0000-\u001f\u007f-\u009f\u00ad\u061c\u200b\u200e\u200f\u2028\u2029\u202d\u202e\u2066\u2067\u2069\ufeff\ufff9-\ufffc]/g,function(r,n,u){r.state.specialChars=new RegExp(n.source+(n.test(" ")?"":"| "),"g"),u!=gi&&r.refresh()}),i("specialCharPlaceholder",gd,function(r){return r.refresh()},!0),i("electricChars",!0),i("inputStyle",z?"contenteditable":"textarea",function(){throw new Error("inputStyle can not (yet) be changed in a running editor")},!0),i("spellcheck",!1,function(r,n){return r.getInputField().spellcheck=n},!0),i("autocorrect",!1,function(r,n){return r.getInputField().autocorrect=n},!0),i("autocapitalize",!1,function(r,n){return r.getInputField().autocapitalize=n},!0),i("rtlMoveVisually",!U),i("wholeLineUpdateBefore",!0),i("theme","default",function(r){Uu(r),Ki(r)},!0),i("keyMap","default",function(r,n,u){var p=Vn(n),g=u!=gi&&Vn(u);g&&g.detach&&g.detach(r,p),p.attach&&p.attach(r,g||null)}),i("extraKeys",null),i("configureMouse",null),i("lineWrapping",!1,Wh,!0),i("gutters",[],function(r,n){r.display.gutterSpecs=Pa(n,r.options.lineNumbers),Ki(r)},!0),i("fixedGutter",!0,function(r,n){r.display.gutters.style.left=n?Aa(r.display)+"px":"0",r.refresh()},!0),i("coverGutterNextToScrollbar",!1,function(r){return li(r)},!0),i("scrollbarStyle","native",function(r){Xs(r),li(r),r.display.scrollbars.setScrollTop(r.doc.scrollTop),r.display.scrollbars.setScrollLeft(r.doc.scrollLeft)},!0),i("lineNumbers",!1,function(r,n){r.display.gutterSpecs=Pa(r.options.gutters,n),Ki(r)},!0),i("firstLineNumber",1,Ki,!0),i("lineNumberFormatter",function(r){return r},Ki,!0),i("showCursorWhenSelecting",!1,Ri,!0),i("resetSelectionOnContextMenu",!0),i("lineWiseCopyCut",!0),i("pasteLinesPerSelection",!0),i("selectionsMayTouch",!1),i("readOnly",!1,function(r,n){n=="nocursor"&&(oi(r),r.display.input.blur()),r.display.input.readOnlyChanged(n)}),i("screenReaderLabel",null,function(r,n){n=n===""?null:n,r.display.input.screenReaderLabelChanged(n)}),i("disableInput",!1,function(r,n){n||r.display.input.reset()},!0),i("dragDrop",!0,Rh),i("allowDropFileTypes",null),i("cursorBlinkRate",530),i("cursorScrollMargin",0),i("cursorHeight",1,Ri,!0),i("singleCursorHeightPerLine",!0,Ri,!0),i("workTime",100),i("workDelay",100),i("flattenSpans",!0,Yi,!0),i("addModeClass",!1,Yi,!0),i("pollInterval",100),i("undoDepth",200,function(r,n){return r.doc.history.undoDepth=n}),i("historyEventDelay",1250),i("viewportMargin",10,function(r){return r.refresh()},!0),i("maxHighlightLength",1e4,Yi,!0),i("moveInputWithCursor",!0,function(r,n){n||r.display.input.resetPosition()}),i("tabindex",null,function(r,n){return r.display.input.getField().tabIndex=n||""}),i("autofocus",null),i("direction","ltr",function(r,n){return r.doc.setDirection(n)},!0),i("phrases",null)}function Rh(e,t,i){var r=i&&i!=gi;if(!t!=!r){var n=e.display.dragFunctions,u=t?ue:Mt;u(e.display.scroller,"dragstart",n.start),u(e.display.scroller,"dragenter",n.enter),u(e.display.scroller,"dragover",n.over),u(e.display.scroller,"dragleave",n.leave),u(e.display.scroller,"drop",n.drop)}}function Wh(e){e.options.lineWrapping?(pe(e.display.wrapper,"CodeMirror-wrap"),e.display.sizer.style.minWidth="",e.display.sizerWidth=null):(oe(e.display.wrapper,"CodeMirror-wrap"),va(e)),Fa(e),yt(e),qi(e),setTimeout(function(){return li(e)},100)}function Ne(e,t){var i=this;if(!(this instanceof Ne))return new Ne(e,t);this.options=t=t?Lt(t):{},Lt(ju,t,!1);var r=t.value;typeof r=="string"?r=new xt(r,t.mode,null,t.lineSeparator,t.direction):t.mode&&(r.modeOption=t.mode),this.doc=r;var n=new Ne.inputStyles[t.inputStyle](this),u=this.display=new th(e,r,n,t);u.wrapper.CodeMirror=this,Uu(this),t.lineWrapping&&(this.display.wrapper.className+=" CodeMirror-wrap"),Xs(this),this.state={keyMaps:[],overlays:[],modeGen:0,overwrite:!1,delayingBlurEvent:!1,focused:!1,suppressEdits:!1,pasteIncoming:-1,cutIncoming:-1,selectingText:!1,draggingText:!1,highlight:new dt,keySeq:null,specialChars:null},t.autofocus&&!z&&u.input.focus(),c&&d<11&&setTimeout(function(){return i.display.input.reset(!0)},20),Uh(this),xh(),Pr(this),this.curOp.forceUpdate=!0,ru(this,r),t.autofocus&&!z||this.hasFocus()?setTimeout(function(){i.hasFocus()&&!i.state.focused&&Ba(i)},20):oi(this);for(var p in eo)eo.hasOwnProperty(p)&&eo[p](this,t[p],gi);Zs(this),t.finishInit&&t.finishInit(this);for(var g=0;g20*20}ue(t.scroller,"touchstart",function(m){if(!$e(e,m)&&!u(m)&&!Ja(e,m)){t.input.ensurePolled(),clearTimeout(i);var b=+new Date;t.activeTouch={start:b,moved:!1,prev:b-r.end<=300?r:null},m.touches.length==1&&(t.activeTouch.left=m.touches[0].pageX,t.activeTouch.top=m.touches[0].pageY)}}),ue(t.scroller,"touchmove",function(){t.activeTouch&&(t.activeTouch.moved=!0)}),ue(t.scroller,"touchend",function(m){var b=t.activeTouch;if(b&&!nr(t,m)&&b.left!=null&&!b.moved&&new Date-b.start<300){var C=e.coordsChar(t.activeTouch,"page"),E;!b.prev||p(b,b.prev)?E=new Ae(C,C):!b.prev.prev||p(b,b.prev.prev)?E=e.findWordAt(C):E=new Ae(Y(C.line,0),be(e.doc,Y(C.line+1,0))),e.setSelection(E.anchor,E.head),e.focus(),bt(m)}n()}),ue(t.scroller,"touchcancel",n),ue(t.scroller,"scroll",function(){t.scroller.clientHeight&&(Ui(e,t.scroller.scrollTop),Ir(e,t.scroller.scrollLeft,!0),je(e,"scroll",e))}),ue(t.scroller,"mousewheel",function(m){return Vs(e,m)}),ue(t.scroller,"DOMMouseScroll",function(m){return Vs(e,m)}),ue(t.wrapper,"scroll",function(){return t.wrapper.scrollTop=t.wrapper.scrollLeft=0}),t.dragFunctions={enter:function(m){$e(e,m)||_i(m)},over:function(m){$e(e,m)||(yh(e,m),_i(m))},start:function(m){return bh(e,m)},drop:tt(e,vh),leave:function(m){$e(e,m)||Eu(e)}};var g=t.input.getField();ue(g,"keyup",function(m){return Iu.call(e,m)}),ue(g,"keydown",tt(e,Ou)),ue(g,"keypress",tt(e,Hu)),ue(g,"focus",function(m){return Ba(e,m)}),ue(g,"blur",function(m){return oi(e,m)})}var Va=[];Ne.defineInitHook=function(e){return Va.push(e)};function sn(e,t,i,r){var n=e.doc,u;i==null&&(i="add"),i=="smart"&&(n.mode.indent?u=Ni(e,t).state:i="prev");var p=e.options.tabSize,g=ae(n,t),m=Ye(g.text,null,p);g.stateAfter&&(g.stateAfter=null);var b=g.text.match(/^\s*/)[0],C;if(!r&&!/\S/.test(g.text))C=0,i="not";else if(i=="smart"&&(C=n.mode.indent(u,g.text.slice(b.length),g.text),C==Ze||C>150)){if(!r)return;i="prev"}i=="prev"?t>n.first?C=Ye(ae(n,t-1).text,null,p):C=0:i=="add"?C=m+e.options.indentUnit:i=="subtract"?C=m-e.options.indentUnit:typeof i=="number"&&(C=m+i),C=Math.max(0,C);var E="",_=0;if(e.options.indentWithTabs)for(var M=Math.floor(C/p);M;--M)_+=p,E+=" ";if(_p,m=ra(t),b=null;if(g&&r.ranges.length>1)if(Ut&&Ut.text.join(` -`)==t){if(r.ranges.length%Ut.text.length==0){b=[];for(var C=0;C=0;_--){var M=r.ranges[_],P=M.from(),R=M.to();M.empty()&&(i&&i>0?P=Y(P.line,P.ch-i):e.state.overwrite&&!g?R=Y(R.line,Math.min(ae(u,R.line).text.length,R.ch+De(m).length)):g&&Ut&&Ut.lineWise&&Ut.text.join(` -`)==m.join(` -`)&&(P=R=Y(P.line,0)));var Z={from:P,to:R,text:b?b[_%b.length]:m,origin:n||(g?"paste":e.state.cutIncoming>p?"cut":"+input")};fi(e.doc,Z),et(e,"inputRead",e,Z)}t&&!g&&Xu(e,t),ai(e),e.curOp.updateInput<2&&(e.curOp.updateInput=E),e.curOp.typing=!0,e.state.pasteIncoming=e.state.cutIncoming=-1}function Gu(e,t){var i=e.clipboardData&&e.clipboardData.getData("Text");if(i)return e.preventDefault(),!t.isReadOnly()&&!t.options.disableInput&&t.hasFocus()&&St(t,function(){return $a(t,i,0,null,"paste")}),!0}function Xu(e,t){if(!(!e.options.electricChars||!e.options.smartIndent))for(var i=e.doc.sel,r=i.ranges.length-1;r>=0;r--){var n=i.ranges[r];if(!(n.head.ch>100||r&&i.ranges[r-1].head.line==n.head.line)){var u=e.getModeAt(n.head),p=!1;if(u.electricChars){for(var g=0;g-1){p=sn(e,n.head.line,"smart");break}}else u.electricInput&&u.electricInput.test(ae(e.doc,n.head.line).text.slice(0,n.head.ch))&&(p=sn(e,n.head.line,"smart"));p&&et(e,"electricInput",e,n.head.line)}}}function Ku(e){for(var t=[],i=[],r=0;ru&&(sn(this,g.head.line,r,!0),u=g.head.line,p==this.doc.sel.primIndex&&ai(this));else{var m=g.from(),b=g.to(),C=Math.max(u,m.line);u=Math.min(this.lastLine(),b.line-(b.ch?0:1))+1;for(var E=C;E0&&Ga(this.doc,p,new Ae(m,_[p].to()),vt)}}}),getTokenAt:function(r,n){return ns(this,r,n)},getLineTokens:function(r,n){return ns(this,Y(r),n,!0)},getTokenTypeAt:function(r){r=be(this.doc,r);var n=ts(this,ae(this.doc,r.line)),u=0,p=(n.length-1)/2,g=r.ch,m;if(g==0)m=n[2];else for(;;){var b=u+p>>1;if((b?n[b*2-1]:0)>=g)p=b;else if(n[b*2+1]m&&(r=m,p=!0),g=ae(this.doc,r)}else g=r;return On(this,g,{top:0,left:0},n||"page",u||p).top+(p?this.doc.height-ir(g):0)},defaultTextHeight:function(){return ii(this.display)},defaultCharWidth:function(){return ni(this.display)},getViewport:function(){return{from:this.display.viewFrom,to:this.display.viewTo}},addWidget:function(r,n,u,p,g){var m=this.display;r=Rt(this,be(this.doc,r));var b=r.bottom,C=r.left;if(n.style.position="absolute",n.setAttribute("cm-ignore-events","true"),this.display.input.setUneditable(n),m.sizer.appendChild(n),p=="over")b=r.top;else if(p=="above"||p=="near"){var E=Math.max(m.wrapper.clientHeight,this.doc.height),_=Math.max(m.sizer.clientWidth,m.lineSpace.clientWidth);(p=="above"||r.bottom+n.offsetHeight>E)&&r.top>n.offsetHeight?b=r.top-n.offsetHeight:r.bottom+n.offsetHeight<=E&&(b=r.bottom),C+n.offsetWidth>_&&(C=_-n.offsetWidth)}n.style.top=b+"px",n.style.left=n.style.right="",g=="right"?(C=m.sizer.clientWidth-n.offsetWidth,n.style.right="0px"):(g=="left"?C=0:g=="middle"&&(C=(m.sizer.clientWidth-n.offsetWidth)/2),n.style.left=C+"px"),u&&Rd(this,{left:C,top:b,right:C+n.offsetWidth,bottom:b+n.offsetHeight})},triggerOnKeyDown:ht(Ou),triggerOnKeyPress:ht(Hu),triggerOnKeyUp:Iu,triggerOnMouseDown:ht(Pu),execCommand:function(r){if(nn.hasOwnProperty(r))return nn[r].call(null,this)},triggerElectric:ht(function(r){Xu(this,r)}),findPosH:function(r,n,u,p){var g=1;n<0&&(g=-1,n=-n);for(var m=be(this.doc,r),b=0;b0&&C(u.charAt(p-1));)--p;for(;g.5||this.options.lineWrapping)&&Fa(this),je(this,"refresh",this)}),swapDoc:ht(function(r){var n=this.doc;return n.cm=null,this.state.selectingText&&this.state.selectingText(),ru(this,r),qi(this),this.display.input.reset(),Wi(this,r.scrollLeft,r.scrollTop),this.curOp.forceScroll=!0,et(this,"swapDoc",this,n),n}),phrase:function(r){var n=this.options.phrases;return n&&Object.prototype.hasOwnProperty.call(n,r)?n[r]:r},getInputField:function(){return this.display.input.getField()},getWrapperElement:function(){return this.display.wrapper},getScrollerElement:function(){return this.display.scroller},getGutterElement:function(){return this.display.gutters}},Jr(e),e.registerHelper=function(r,n,u){i.hasOwnProperty(r)||(i[r]=e[r]={_global:[]}),i[r][n]=u},e.registerGlobalHelper=function(r,n,u,p){e.registerHelper(r,n,p),i[r]._global.push({pred:u,val:p})}}function tl(e,t,i,r,n){var u=t,p=i,g=ae(e,t.line),m=n&&e.direction=="rtl"?-i:i;function b(){var te=t.line+m;return te=e.first+e.size?!1:(t=new Y(te,t.ch,t.sticky),g=ae(e,te))}function C(te){var V;if(r=="codepoint"){var ie=g.text.charCodeAt(t.ch+(i>0?0:-1));if(isNaN(ie))V=null;else{var se=i>0?ie>=55296&&ie<56320:ie>=56320&&ie<57343;V=new Y(t.line,Math.max(0,Math.min(g.text.length,t.ch+i*(se?2:1))),-i)}}else n?V=Sh(e.cm,g,t,i):V=Ka(g,t,i);if(V==null)if(!te&&b())t=Ya(n,e.cm,g,t.line,m);else return!1;else t=V;return!0}if(r=="char"||r=="codepoint")C();else if(r=="column")C(!0);else if(r=="word"||r=="group")for(var E=null,_=r=="group",M=e.cm&&e.cm.getHelper(t,"wordChars"),P=!0;!(i<0&&!C(!P));P=!1){var R=g.text.charAt(t.ch)||` -`,Z=kn(R,M)?"w":_&&R==` -`?"n":!_||/\s/.test(R)?null:"p";if(_&&!P&&!Z&&(Z="s"),E&&E!=Z){i<0&&(i=1,C(),t.sticky="after");break}if(Z&&(E=Z),i>0&&!C(!P))break}var J=Zn(e,t,u,p,!0);return ua(u,J)&&(J.hitSide=!0),J}function Zu(e,t,i,r){var n=e.doc,u=t.left,p;if(r=="page"){var g=Math.min(e.display.wrapper.clientHeight,ye(e).innerHeight||n(e).documentElement.clientHeight),m=Math.max(g-.5*ii(e.display),3);p=(i>0?t.bottom:t.top)+i*m}else r=="line"&&(p=i>0?t.bottom+3:t.top-3);for(var b;b=ka(e,u,p),!!b.outside;){if(i<0?p<=0:p>=n.height){b.hitSide=!0;break}p+=i*5}return b}var Te=function(e){this.cm=e,this.lastAnchorNode=this.lastAnchorOffset=this.lastFocusNode=this.lastFocusOffset=null,this.polling=new dt,this.composing=null,this.gracePeriod=!1,this.readDOMTimeout=null};Te.prototype.init=function(e){var t=this,i=this,r=i.cm,n=i.div=e.lineDiv;n.contentEditable=!0,el(n,r.options.spellcheck,r.options.autocorrect,r.options.autocapitalize);function u(g){for(var m=g.target;m;m=m.parentNode){if(m==n)return!0;if(/\bCodeMirror-(?:line)?widget\b/.test(m.className))break}return!1}ue(n,"paste",function(g){!u(g)||$e(r,g)||Gu(g,r)||d<=11&&setTimeout(tt(r,function(){return t.updateFromDOM()}),20)}),ue(n,"compositionstart",function(g){t.composing={data:g.data,done:!1}}),ue(n,"compositionupdate",function(g){t.composing||(t.composing={data:g.data,done:!1})}),ue(n,"compositionend",function(g){t.composing&&(g.data!=t.composing.data&&t.readFromDOMSoon(),t.composing.done=!0)}),ue(n,"touchstart",function(){return i.forceCompositionEnd()}),ue(n,"input",function(){t.composing||t.readFromDOMSoon()});function p(g){if(!(!u(g)||$e(r,g))){if(r.somethingSelected())to({lineWise:!1,text:r.getSelections()}),g.type=="cut"&&r.replaceSelection("",null,"cut");else if(r.options.lineWiseCopyCut){var m=Ku(r);to({lineWise:!0,text:m.text}),g.type=="cut"&&r.operation(function(){r.setSelections(m.ranges,0,vt),r.replaceSelection("",null,"cut")})}else return;if(g.clipboardData){g.clipboardData.clearData();var b=Ut.text.join(` -`);if(g.clipboardData.setData("Text",b),g.clipboardData.getData("Text")==b){g.preventDefault();return}}var C=Yu(),E=C.firstChild;el(E),r.display.lineSpace.insertBefore(C,r.display.lineSpace.firstChild),E.value=Ut.text.join(` -`);var _=he(Ce(n));A(E),setTimeout(function(){r.display.lineSpace.removeChild(C),_.focus(),_==n&&i.showPrimarySelection()},50)}}ue(n,"copy",p),ue(n,"cut",p)},Te.prototype.screenReaderLabelChanged=function(e){e?this.div.setAttribute("aria-label",e):this.div.removeAttribute("aria-label")},Te.prototype.prepareSelection=function(){var e=Ps(this.cm,!1);return e.focus=he(Ce(this.div))==this.div,e},Te.prototype.showSelection=function(e,t){!e||!this.cm.display.view.length||((e.focus||t)&&this.showPrimarySelection(),this.showMultipleSelections(e))},Te.prototype.getSelection=function(){return this.cm.display.wrapper.ownerDocument.getSelection()},Te.prototype.showPrimarySelection=function(){var e=this.getSelection(),t=this.cm,i=t.doc.sel.primary(),r=i.from(),n=i.to();if(t.display.viewTo==t.display.viewFrom||r.line>=t.display.viewTo||n.line=t.display.viewFrom&&Qu(t,r)||{node:g[0].measure.map[2],offset:0},b=n.linee.firstLine()&&(r=Y(r.line-1,ae(e.doc,r.line-1).length)),n.ch==ae(e.doc,n.line).text.length&&n.linet.viewTo-1)return!1;var u,p,g;r.line==t.viewFrom||(u=Or(e,r.line))==0?(p=Fe(t.view[0].line),g=t.view[0].node):(p=Fe(t.view[u].line),g=t.view[u-1].node.nextSibling);var m=Or(e,n.line),b,C;if(m==t.view.length-1?(b=t.viewTo-1,C=t.lineDiv.lastChild):(b=Fe(t.view[m+1].line)-1,C=t.view[m+1].node.previousSibling),!g)return!1;for(var E=e.doc.splitLines(Xh(e,g,C,p,b)),_=Mr(e.doc,Y(p,0),Y(b,ae(e.doc,b).text.length));E.length>1&&_.length>1;)if(De(E)==De(_))E.pop(),_.pop(),b--;else if(E[0]==_[0])E.shift(),_.shift(),p++;else break;for(var M=0,P=0,R=E[0],Z=_[0],J=Math.min(R.length,Z.length);Mr.ch&&te.charCodeAt(te.length-P-1)==V.charCodeAt(V.length-P-1);)M--,P++;E[E.length-1]=te.slice(0,te.length-P).replace(/^\u200b+/,""),E[0]=E[0].slice(M).replace(/\u200b+$/,"");var se=Y(p,M),le=Y(b,_.length?De(_).length-P:0);if(E.length>1||E[0]||ve(se,le))return ci(e.doc,E,se,le,"+input"),!0},Te.prototype.ensurePolled=function(){this.forceCompositionEnd()},Te.prototype.reset=function(){this.forceCompositionEnd()},Te.prototype.forceCompositionEnd=function(){this.composing&&(clearTimeout(this.readDOMTimeout),this.composing=null,this.updateFromDOM(),this.div.blur(),this.div.focus())},Te.prototype.readFromDOMSoon=function(){var e=this;this.readDOMTimeout==null&&(this.readDOMTimeout=setTimeout(function(){if(e.readDOMTimeout=null,e.composing)if(e.composing.done)e.composing=null;else return;e.updateFromDOM()},80))},Te.prototype.updateFromDOM=function(){var e=this;(this.cm.isReadOnly()||!this.pollContent())&&St(this.cm,function(){return yt(e.cm)})},Te.prototype.setUneditable=function(e){e.contentEditable="false"},Te.prototype.onKeyPress=function(e){e.charCode==0||this.composing||(e.preventDefault(),this.cm.isReadOnly()||tt(this.cm,$a)(this.cm,String.fromCharCode(e.charCode==null?e.keyCode:e.charCode),0))},Te.prototype.readOnlyChanged=function(e){this.div.contentEditable=String(e!="nocursor")},Te.prototype.onContextMenu=function(){},Te.prototype.resetPosition=function(){},Te.prototype.needsContentAttribute=!0;function Qu(e,t){var i=wa(e,t.line);if(!i||i.hidden)return null;var r=ae(e.doc,t.line),n=Ss(i,r,t.line),u=tr(r,e.doc.direction),p="left";if(u){var g=Bi(u,t.ch);p=g%2?"right":"left"}var m=Fs(n.map,t.ch,p);return m.offset=m.collapse=="right"?m.end:m.start,m}function Gh(e){for(var t=e;t;t=t.parentNode)if(/CodeMirror-gutter-wrapper/.test(t.className))return!0;return!1}function mi(e,t){return t&&(e.bad=!0),e}function Xh(e,t,i,r,n){var u="",p=!1,g=e.doc.lineSeparator(),m=!1;function b(M){return function(P){return P.id==M}}function C(){p&&(u+=g,m&&(u+=g),p=m=!1)}function E(M){M&&(C(),u+=M)}function _(M){if(M.nodeType==1){var P=M.getAttribute("cm-text");if(P){E(P);return}var R=M.getAttribute("cm-marker"),Z;if(R){var J=e.findMarks(Y(r,0),Y(n+1,0),b(+R));J.length&&(Z=J[0].find(0))&&E(Mr(e.doc,Z.from,Z.to).join(g));return}if(M.getAttribute("contenteditable")=="false")return;var te=/^(pre|div|p|li|table|br)$/i.test(M.nodeName);if(!/^br$/i.test(M.nodeName)&&M.textContent.length==0)return;te&&C();for(var V=0;V=9&&t.hasSelection&&(t.hasSelection=null),i.poll()}),ue(n,"paste",function(p){$e(r,p)||Gu(p,r)||(r.state.pasteIncoming=+new Date,i.fastPoll())});function u(p){if(!$e(r,p)){if(r.somethingSelected())to({lineWise:!1,text:r.getSelections()});else if(r.options.lineWiseCopyCut){var g=Ku(r);to({lineWise:!0,text:g.text}),p.type=="cut"?r.setSelections(g.ranges,null,vt):(i.prevInput="",n.value=g.text.join(` -`),A(n))}else return;p.type=="cut"&&(r.state.cutIncoming=+new Date)}}ue(n,"cut",u),ue(n,"copy",u),ue(e.scroller,"paste",function(p){if(!(nr(e,p)||$e(r,p))){if(!n.dispatchEvent){r.state.pasteIncoming=+new Date,i.focus();return}var g=new Event("paste");g.clipboardData=p.clipboardData,n.dispatchEvent(g)}}),ue(e.lineSpace,"selectstart",function(p){nr(e,p)||bt(p)}),ue(n,"compositionstart",function(){var p=r.getCursor("from");i.composing&&i.composing.range.clear(),i.composing={start:p,range:r.markText(p,r.getCursor("to"),{className:"CodeMirror-composing"})}}),ue(n,"compositionend",function(){i.composing&&(i.poll(),i.composing.range.clear(),i.composing=null)})},We.prototype.createField=function(e){this.wrapper=Yu(),this.textarea=this.wrapper.firstChild;var t=this.cm.options;el(this.textarea,t.spellcheck,t.autocorrect,t.autocapitalize)},We.prototype.screenReaderLabelChanged=function(e){e?this.textarea.setAttribute("aria-label",e):this.textarea.removeAttribute("aria-label")},We.prototype.prepareSelection=function(){var e=this.cm,t=e.display,i=e.doc,r=Ps(e);if(e.options.moveInputWithCursor){var n=Rt(e,i.sel.primary().head,"div"),u=t.wrapper.getBoundingClientRect(),p=t.lineDiv.getBoundingClientRect();r.teTop=Math.max(0,Math.min(t.wrapper.clientHeight-10,n.top+p.top-u.top)),r.teLeft=Math.max(0,Math.min(t.wrapper.clientWidth-10,n.left+p.left-u.left))}return r},We.prototype.showSelection=function(e){var t=this.cm,i=t.display;G(i.cursorDiv,e.cursors),G(i.selectionDiv,e.selection),e.teTop!=null&&(this.wrapper.style.top=e.teTop+"px",this.wrapper.style.left=e.teLeft+"px")},We.prototype.reset=function(e){if(!(this.contextMenuPending||this.composing&&e)){var t=this.cm;if(this.resetting=!0,t.somethingSelected()){this.prevInput="";var i=t.getSelection();this.textarea.value=i,t.state.focused&&A(this.textarea),c&&d>=9&&(this.hasSelection=i)}else e||(this.prevInput=this.textarea.value="",c&&d>=9&&(this.hasSelection=null));this.resetting=!1}},We.prototype.getField=function(){return this.textarea},We.prototype.supportsTouch=function(){return!1},We.prototype.focus=function(){if(this.cm.options.readOnly!="nocursor"&&(!z||he(Ce(this.textarea))!=this.textarea))try{this.textarea.focus()}catch{}},We.prototype.blur=function(){this.textarea.blur()},We.prototype.resetPosition=function(){this.wrapper.style.top=this.wrapper.style.left=0},We.prototype.receivedFocus=function(){this.slowPoll()},We.prototype.slowPoll=function(){var e=this;this.pollingFast||this.polling.set(this.cm.options.pollInterval,function(){e.poll(),e.cm.state.focused&&e.slowPoll()})},We.prototype.fastPoll=function(){var e=!1,t=this;t.pollingFast=!0;function i(){var r=t.poll();!r&&!e?(e=!0,t.polling.set(60,i)):(t.pollingFast=!1,t.slowPoll())}t.polling.set(20,i)},We.prototype.poll=function(){var e=this,t=this.cm,i=this.textarea,r=this.prevInput;if(this.contextMenuPending||this.resetting||!t.state.focused||Xc(i)&&!r&&!this.composing||t.isReadOnly()||t.options.disableInput||t.state.keySeq)return!1;var n=i.value;if(n==r&&!t.somethingSelected())return!1;if(c&&d>=9&&this.hasSelection===n||O&&/[\uf700-\uf7ff]/.test(n))return t.display.input.reset(),!1;if(t.doc.sel==t.display.selForContextMenu){var u=n.charCodeAt(0);if(u==8203&&!r&&(r="\u200B"),u==8666)return this.reset(),this.cm.execCommand("undo")}for(var p=0,g=Math.min(r.length,n.length);p1e3||n.indexOf(` -`)>-1?i.value=e.prevInput="":e.prevInput=n,e.composing&&(e.composing.range.clear(),e.composing.range=t.markText(e.composing.start,t.getCursor("to"),{className:"CodeMirror-composing"}))}),!0},We.prototype.ensurePolled=function(){this.pollingFast&&this.poll()&&(this.pollingFast=!1)},We.prototype.onKeyPress=function(){c&&d>=9&&(this.hasSelection=null),this.fastPoll()},We.prototype.onContextMenu=function(e){var t=this,i=t.cm,r=i.display,n=t.textarea;t.contextMenuPending&&t.contextMenuPending();var u=Nr(i,e),p=r.scroller.scrollTop;if(!u||S)return;var g=i.options.resetSelectionOnContextMenu;g&&i.doc.sel.contains(u)==-1&&tt(i,st)(i.doc,yr(u),vt);var m=n.style.cssText,b=t.wrapper.style.cssText,C=t.wrapper.offsetParent.getBoundingClientRect();t.wrapper.style.cssText="position: static",n.style.cssText=`position: absolute; width: 30px; height: 30px; - top: `+(e.clientY-C.top-5)+"px; left: "+(e.clientX-C.left-5)+`px; +b`.split(/\n/).length!=3?function(e){for(var t=0,n=[],r=e.length;t<=r;){var i=e.indexOf(` +`,t);i==-1&&(i=e.length);var u=e.slice(t,e.charAt(i-1)=="\r"?i-1:i),p=u.indexOf("\r");p!=-1?(n.push(u.slice(0,p)),t+=p+1):(n.push(u),t=i+1)}return n}:function(e){return e.split(/\r\n?|\n/)},Kc=window.getSelection?function(e){try{return e.selectionStart!=e.selectionEnd}catch{return!1}}:function(e){var t;try{t=e.ownerDocument.selection.createRange()}catch{}return!t||t.parentElement()!=e?!1:t.compareEndPoints("StartToEnd",t)!=0},Yc=function(){var e=k("div");return"oncopy"in e?!0:(e.setAttribute("oncopy","return;"),typeof e.oncopy=="function")}(),ia=null;function Zc(e){if(ia!=null)return ia;var t=G(e,k("span","x")),n=t.getBoundingClientRect(),r=R(t,0,1).getBoundingClientRect();return ia=Math.abs(n.left-r.left)>1}var oa={},$r={};function Qc(e,t){arguments.length>2&&(t.dependencies=Array.prototype.slice.call(arguments,2)),oa[e]=t}function Jc(e,t){$r[e]=t}function Ei(e){if(typeof e=="string"&&$r.hasOwnProperty(e))e=$r[e];else if(e&&typeof e.name=="string"&&$r.hasOwnProperty(e.name)){var t=$r[e.name];typeof t=="string"&&(t={name:t}),e=Gl(t,e),e.name=t.name}else{if(typeof e=="string"&&/^[\w\-]+\/[\w\-]+\+xml$/.test(e))return Ei("application/xml");if(typeof e=="string"&&/^[\w\-]+\/[\w\-]+\+json$/.test(e))return Ei("application/json")}return typeof e=="string"?{name:e}:e||{name:"null"}}function aa(e,t){t=Ei(t);var n=oa[t.name];if(!n)return aa(e,"text/plain");var r=n(e,t);if(Vr.hasOwnProperty(t.name)){var i=Vr[t.name];for(var u in i)i.hasOwnProperty(u)&&(r.hasOwnProperty(u)&&(r["_"+u]=r[u]),r[u]=i[u])}if(r.name=t.name,t.helperType&&(r.helperType=t.helperType),t.modeProps)for(var p in t.modeProps)r[p]=t.modeProps[p];return r}var Vr={};function $c(e,t){var n=Vr.hasOwnProperty(e)?Vr[e]:Vr[e]={};Lt(t,n)}function Lr(e,t){if(t===!0)return t;if(e.copyState)return e.copyState(t);var n={};for(var r in t){var i=t[r];i instanceof Array&&(i=i.concat([])),n[r]=i}return n}function la(e,t){for(var n;e.innerMode&&(n=e.innerMode(t),!(!n||n.mode==e));)t=n.state,e=n.mode;return n||{mode:e,state:t}}function $l(e,t,n){return e.startState?e.startState(t,n):!0}var Ge=function(e,t,n){this.pos=this.start=0,this.string=e,this.tabSize=t||8,this.lastColumnPos=this.lastColumnValue=0,this.lineStart=0,this.lineOracle=n};Ge.prototype.eol=function(){return this.pos>=this.string.length},Ge.prototype.sol=function(){return this.pos==this.lineStart},Ge.prototype.peek=function(){return this.string.charAt(this.pos)||void 0},Ge.prototype.next=function(){if(this.post},Ge.prototype.eatSpace=function(){for(var e=this.pos;/[\s\u00a0]/.test(this.string.charAt(this.pos));)++this.pos;return this.pos>e},Ge.prototype.skipToEnd=function(){this.pos=this.string.length},Ge.prototype.skipTo=function(e){var t=this.string.indexOf(e,this.pos);if(t>-1)return this.pos=t,!0},Ge.prototype.backUp=function(e){this.pos-=e},Ge.prototype.column=function(){return this.lastColumnPos0?null:(u&&t!==!1&&(this.pos+=u[0].length),u)}},Ge.prototype.current=function(){return this.string.slice(this.start,this.pos)},Ge.prototype.hideFirstChars=function(e,t){this.lineStart+=e;try{return t()}finally{this.lineStart-=e}},Ge.prototype.lookAhead=function(e){var t=this.lineOracle;return t&&t.lookAhead(e)},Ge.prototype.baseToken=function(){var e=this.lineOracle;return e&&e.baseToken(this.pos)};function ae(e,t){if(t-=e.first,t<0||t>=e.size)throw new Error("There is no line "+(t+e.first)+" in the document.");for(var n=e;!n.lines;)for(var r=0;;++r){var i=n.children[r],u=i.chunkSize();if(t=e.first&&tn?Y(n,ae(e,n).text.length):Vc(t,ae(e,t.line).text.length)}function Vc(e,t){var n=e.ch;return n==null||n>t?Y(e.line,t):n<0?Y(e.line,0):e}function es(e,t){for(var n=[],r=0;rthis.maxLookAhead&&(this.maxLookAhead=e),t},Zt.prototype.baseToken=function(e){if(!this.baseTokens)return null;for(;this.baseTokens[this.baseTokenPos]<=e;)this.baseTokenPos+=2;var t=this.baseTokens[this.baseTokenPos+1];return{type:t&&t.replace(/( |^)overlay .*/,""),size:this.baseTokens[this.baseTokenPos]-e}},Zt.prototype.nextLine=function(){this.line++,this.maxLookAhead>0&&this.maxLookAhead--},Zt.fromSaved=function(e,t,n){return t instanceof Ti?new Zt(e,Lr(e.mode,t.state),n,t.lookAhead):new Zt(e,Lr(e.mode,t),n)},Zt.prototype.save=function(e){var t=e!==!1?Lr(this.doc.mode,this.state):this.state;return this.maxLookAhead>0?new Ti(t,this.maxLookAhead):t};function ts(e,t,n,r){var i=[e.state.modeGen],u={};ls(e,t.text,e.doc.mode,n,function(b,D){return i.push(b,D)},u,r);for(var p=n.state,g=function(b){n.baseTokens=i;var D=e.state.overlays[b],E=1,B=0;n.state=!0,ls(e,t.text,D.mode,n,function(M,H){for(var W=E;BM&&i.splice(E,1,M,i[E+1],Z),E+=2,B=Math.min(M,Z)}if(H)if(D.opaque)i.splice(W,E-W,M,"overlay "+H),E=W+2;else for(;We.options.maxHighlightLength&&Lr(e.doc.mode,r.state),u=ts(e,t,r);i&&(r.state=i),t.stateAfter=r.save(!i),t.styles=u.styles,u.classes?t.styleClasses=u.classes:t.styleClasses&&(t.styleClasses=null),n===e.doc.highlightFrontier&&(e.doc.modeFrontier=Math.max(e.doc.modeFrontier,++e.doc.highlightFrontier))}return t.styles}function In(e,t,n){var r=e.doc,i=e.display;if(!r.mode.startState)return new Zt(r,!0,t);var u=ed(e,t,n),p=u>r.first&&ae(r,u-1).stateAfter,g=p?Zt.fromSaved(r,p,u):new Zt(r,$l(r.mode),u);return r.iter(u,t,function(v){da(e,v.text,g);var b=g.line;v.stateAfter=b==t-1||b%5==0||b>=i.viewFrom&&bt.start)return u}throw new Error("Mode "+e.name+" failed to advance stream.")}var is=function(e,t,n){this.start=e.start,this.end=e.pos,this.string=e.current(),this.type=t||null,this.state=n};function os(e,t,n,r){var i=e.doc,u=i.mode,p;t=be(i,t);var g=ae(i,t.line),v=In(e,t.line,n),b=new Ge(g.text,e.options.tabSize,v),D;for(r&&(D=[]);(r||b.pose.options.maxHighlightLength?(g=!1,p&&da(e,t,r,D.pos),D.pos=t.length,E=null):E=as(ha(n,D,r.state,B),u),B){var M=B[0].name;M&&(E="m-"+(E?M+" "+E:M))}if(!g||b!=E){for(;vp;--g){if(g<=u.first)return u.first;var v=ae(u,g-1),b=v.stateAfter;if(b&&(!n||g+(b instanceof Ti?b.lookAhead:0)<=u.modeFrontier))return g;var D=Ye(v.text,null,e.options.tabSize);(i==null||r>D)&&(i=g-1,r=D)}return i}function td(e,t){if(e.modeFrontier=Math.min(e.modeFrontier,t),!(e.highlightFrontiern;r--){var i=ae(e,r).stateAfter;if(i&&(!(i instanceof Ti)||r+i.lookAhead=t:u.to>t);(r||(r=[])).push(new Li(p,u.from,v?null:u.to))}}return r}function ld(e,t,n){var r;if(e)for(var i=0;i=t:u.to>t);if(g||u.from==t&&p.type=="bookmark"&&(!n||u.marker.insertLeft)){var v=u.from==null||(p.inclusiveLeft?u.from<=t:u.from0&&g)for(var ne=0;ne0)){var D=[v,1],E=me(b.from,g.from),B=me(b.to,g.to);(E<0||!p.inclusiveLeft&&!E)&&D.push({from:b.from,to:g.from}),(B>0||!p.inclusiveRight&&!B)&&D.push({from:g.to,to:b.to}),i.splice.apply(i,D),v+=D.length-3}}return i}function fs(e){var t=e.markedSpans;if(t){for(var n=0;nt)&&(!r||ga(r,u.marker)<0)&&(r=u.marker)}return r}function ps(e,t,n,r,i){var u=ae(e,t),p=rr&&u.markedSpans;if(p)for(var g=0;g=0&&E<=0||D<=0&&E>=0)&&(D<=0&&(v.marker.inclusiveRight&&i.inclusiveLeft?me(b.to,n)>=0:me(b.to,n)>0)||D>=0&&(v.marker.inclusiveRight&&i.inclusiveLeft?me(b.from,r)<=0:me(b.from,r)<0)))return!0}}}function Rt(e){for(var t;t=hs(e);)e=t.find(-1,!0).line;return e}function fd(e){for(var t;t=Bi(e);)e=t.find(1,!0).line;return e}function cd(e){for(var t,n;t=Bi(e);)e=t.find(1,!0).line,(n||(n=[])).push(e);return n}function va(e,t){var n=ae(e,t),r=Rt(n);return n==r?t:Fe(r)}function gs(e,t){if(t>e.lastLine())return t;var n=ae(e,t),r;if(!vr(e,n))return t;for(;r=Bi(n);)n=r.find(1,!0).line;return Fe(n)+1}function vr(e,t){var n=rr&&t.markedSpans;if(n){for(var r=void 0,i=0;it.maxLineLength&&(t.maxLineLength=i,t.maxLine=r)})}var en=function(e,t,n){this.text=e,cs(this,t),this.height=n?n(this):1};en.prototype.lineNo=function(){return Fe(this)},Jr(en);function dd(e,t,n,r){e.text=t,e.stateAfter&&(e.stateAfter=null),e.styles&&(e.styles=null),e.order!=null&&(e.order=null),fs(e),cs(e,n);var i=r?r(e):1;i!=e.height&&Yt(e,i)}function hd(e){e.parent=null,fs(e)}var pd={},gd={};function vs(e,t){if(!e||/^\s*$/.test(e))return null;var n=t.addModeClass?gd:pd;return n[e]||(n[e]=e.replace(/\S+/g,"cm-$&"))}function ms(e,t){var n=z("span",null,null,m?"padding-right: .1px":null),r={pre:z("pre",[n],"CodeMirror-line"),content:n,col:0,pos:0,cm:e,trailingSpace:!1,splitSpaces:e.getOption("lineWrapping")};t.measure={};for(var i=0;i<=(t.rest?t.rest.length:0);i++){var u=i?t.rest[i-1]:t.line,p=void 0;r.pos=0,r.addToken=md,Xc(e.display.measure)&&(p=tr(u,e.doc.direction))&&(r.addToken=yd(r.addToken,p)),r.map=[];var g=t!=e.display.externalMeasured&&Fe(u);xd(u,r,rs(e,u,g)),u.styleClasses&&(u.styleClasses.bgClass&&(r.bgClass=Ee(u.styleClasses.bgClass,r.bgClass||"")),u.styleClasses.textClass&&(r.textClass=Ee(u.styleClasses.textClass,r.textClass||""))),r.map.length==0&&r.map.push(0,0,r.content.appendChild(Gc(e.display.measure))),i==0?(t.measure.map=r.map,t.measure.cache={}):((t.measure.maps||(t.measure.maps=[])).push(r.map),(t.measure.caches||(t.measure.caches=[])).push({}))}if(m){var v=r.content.lastChild;(/\bcm-tab\b/.test(v.className)||v.querySelector&&v.querySelector(".cm-tab"))&&(r.content.className="cm-tab-wrap-hack")}return je(e,"renderLine",e,t.line,r.pre),r.pre.className&&(r.textClass=Ee(r.pre.className,r.textClass||"")),r}function vd(e){var t=k("span","\u2022","cm-invalidchar");return t.title="\\u"+e.charCodeAt(0).toString(16),t.setAttribute("aria-label",t.title),t}function md(e,t,n,r,i,u,p){if(t){var g=e.splitSpaces?bd(t,e.trailingSpace):t,v=e.cm.state.specialChars,b=!1,D;if(!v.test(t))e.col+=t.length,D=document.createTextNode(g),e.map.push(e.pos,e.pos+t.length,D),c&&d<9&&(b=!0),e.pos+=t.length;else{D=document.createDocumentFragment();for(var E=0;;){v.lastIndex=E;var B=v.exec(t),M=B?B.index-E:t.length-E;if(M){var H=document.createTextNode(g.slice(E,E+M));c&&d<9?D.appendChild(k("span",[H])):D.appendChild(H),e.map.push(e.pos,e.pos+M,H),e.col+=M,e.pos+=M}if(!B)break;E+=M+1;var W=void 0;if(B[0]==" "){var Z=e.cm.options.tabSize,J=Z-e.col%Z;W=D.appendChild(k("span",pr(J),"cm-tab")),W.setAttribute("role","presentation"),W.setAttribute("cm-text"," "),e.col+=J}else B[0]=="\r"||B[0]==` +`?(W=D.appendChild(k("span",B[0]=="\r"?"\u240D":"\u2424","cm-invalidchar")),W.setAttribute("cm-text",B[0]),e.col+=1):(W=e.cm.options.specialCharPlaceholder(B[0]),W.setAttribute("cm-text",B[0]),c&&d<9?D.appendChild(k("span",[W])):D.appendChild(W),e.col+=1);e.map.push(e.pos,e.pos+1,W),e.pos++}}if(e.trailingSpace=g.charCodeAt(t.length-1)==32,n||r||i||b||u||p){var te=n||"";r&&(te+=r),i&&(te+=i);var $=k("span",[D],te,u);if(p)for(var ne in p)p.hasOwnProperty(ne)&&ne!="style"&&ne!="class"&&$.setAttribute(ne,p[ne]);return e.content.appendChild($)}e.content.appendChild(D)}}function bd(e,t){if(e.length>1&&!/ /.test(e))return e;for(var n=t,r="",i=0;ib&&E.from<=b));B++);if(E.to>=D)return e(n,r,i,u,p,g,v);e(n,r.slice(0,E.to-b),i,u,null,g,v),u=null,r=r.slice(E.to-b),b=E.to}}}function bs(e,t,n,r){var i=!r&&n.widgetNode;i&&e.map.push(e.pos,e.pos+t,i),!r&&e.cm.display.input.needsContentAttribute&&(i||(i=e.content.appendChild(document.createElement("span"))),i.setAttribute("cm-marker",n.id)),i&&(e.cm.display.input.setUneditable(i),e.content.appendChild(i)),e.pos+=t,e.trailingSpace=!1}function xd(e,t,n){var r=e.markedSpans,i=e.text,u=0;if(!r){for(var p=1;pv||we.collapsed&&le.to==v&&le.from==v)){if(le.to!=null&&le.to!=v&&M>le.to&&(M=le.to,W=""),we.className&&(H+=" "+we.className),we.css&&(B=(B?B+";":"")+we.css),we.startStyle&&le.from==v&&(Z+=" "+we.startStyle),we.endStyle&&le.to==M&&(ne||(ne=[])).push(we.endStyle,le.to),we.title&&((te||(te={})).title=we.title),we.attributes)for(var Le in we.attributes)(te||(te={}))[Le]=we.attributes[Le];we.collapsed&&(!J||ga(J.marker,we)<0)&&(J=le)}else le.from>v&&M>le.from&&(M=le.from)}if(ne)for(var nt=0;nt=g)break;for(var Et=Math.min(g,M);;){if(D){var wt=v+D.length;if(!J){var Xe=wt>Et?D.slice(0,Et-v):D;t.addToken(t,Xe,E?E+H:H,Z,v+Xe.length==M?W:"",B,te)}if(wt>=Et){D=D.slice(Et-v),v=Et;break}v=wt,Z=""}D=i.slice(u,u=n[b++]),E=vs(n[b++],t.cm.options)}}}function ys(e,t,n){this.line=t,this.rest=cd(t),this.size=this.rest?Fe(Ce(this.rest))-n+1:1,this.node=this.text=null,this.hidden=vr(e,t)}function Oi(e,t,n){for(var r=[],i,u=t;u2&&u.push((v.bottom+b.top)/2-n.top)}}u.push(n.bottom-n.top)}}function Es(e,t,n){if(e.line==t)return{map:e.measure.map,cache:e.measure.cache};if(e.rest){for(var r=0;rn)return{map:e.measure.maps[i],cache:e.measure.caches[i],before:!0}}}function Md(e,t){t=Rt(t);var n=Fe(t),r=e.display.externalMeasured=new ys(e.doc,t,n);r.lineN=n;var i=r.built=ms(e,r);return r.text=i.pre,G(e.display.lineMeasure,i.pre),r}function As(e,t,n,r){return Jt(e,rn(e,t),n,r)}function Da(e,t){if(t>=e.display.viewFrom&&t=n.lineN&&tt)&&(u=v-g,i=u-1,t>=v&&(p="right")),i!=null){if(r=e[b+2],g==v&&n==(r.insertLeft?"left":"right")&&(p=n),n=="left"&&i==0)for(;b&&e[b-2]==e[b-3]&&e[b-1].insertLeft;)r=e[(b-=3)+2],p="left";if(n=="right"&&i==v-g)for(;b=0&&(n=e[i]).left==n.right;i--);return n}function Bd(e,t,n,r){var i=Ts(t.map,n,r),u=i.node,p=i.start,g=i.end,v=i.collapse,b;if(u.nodeType==3){for(var D=0;D<4;D++){for(;p&&Jo(t.line.text.charAt(i.coverStart+p));)--p;for(;i.coverStart+g0&&(v=r="right");var E;e.options.lineWrapping&&(E=u.getClientRects()).length>1?b=E[r=="right"?E.length-1:0]:b=u.getBoundingClientRect()}if(c&&d<9&&!p&&(!b||!b.left&&!b.right)){var B=u.parentNode.getClientRects()[0];B?b={left:B.left,right:B.left+on(e.display),top:B.top,bottom:B.bottom}:b=Fs}for(var M=b.top-t.rect.top,H=b.bottom-t.rect.top,W=(M+H)/2,Z=t.view.measure.heights,J=0;J=r.text.length?(v=r.text.length,b="before"):v<=0&&(v=0,b="after"),!g)return p(b=="before"?v-1:v,b=="before");function D(H,W,Z){var J=g[W],te=J.level==1;return p(Z?H-1:H,te!=Z)}var E=Bn(g,v,b),B=_n,M=D(v,E,b=="before");return B!=null&&(M.other=D(v,B,b!="before")),M}function Os(e,t){var n=0;t=be(e.doc,t),e.options.lineWrapping||(n=on(e.display)*t.ch);var r=ae(e.doc,t.line),i=nr(r)+Ii(e.display);return{left:n,right:n,top:i,bottom:i+r.height}}function ka(e,t,n,r,i){var u=Y(e,t,n);return u.xRel=i,r&&(u.outside=r),u}function Sa(e,t,n){var r=e.doc;if(n+=e.display.viewOffset,n<0)return ka(r.first,0,null,-1,-1);var i=_r(r,n),u=r.first+r.size-1;if(i>u)return ka(r.first+r.size-1,ae(r,u).text.length,null,1,1);t<0&&(t=0);for(var p=ae(r,i);;){var g=Od(e,p,i,t,n),v=ud(p,g.ch+(g.xRel>0||g.outside>0?1:0));if(!v)return g;var b=v.find(1);if(b.line==i)return b;p=ae(r,i=b.line)}}function Is(e,t,n,r){r-=Ca(t);var i=t.text.length,u=Mn(function(p){return Jt(e,n,p-1).bottom<=r},i,0);return i=Mn(function(p){return Jt(e,n,p).top>r},u,i),{begin:u,end:i}}function Ps(e,t,n,r){n||(n=rn(e,t));var i=Pi(e,t,Jt(e,n,r),"line").top;return Is(e,t,n,i)}function Ea(e,t,n,r){return e.bottom<=n?!1:e.top>n?!0:(r?e.left:e.right)>t}function Od(e,t,n,r,i){i-=nr(t);var u=rn(e,t),p=Ca(t),g=0,v=t.text.length,b=!0,D=tr(t,e.doc.direction);if(D){var E=(e.options.lineWrapping?Pd:Id)(e,t,n,u,D,r,i);b=E.level!=1,g=b?E.from:E.to-1,v=b?E.to:E.from-1}var B=null,M=null,H=Mn(function(se){var le=Jt(e,u,se);return le.top+=p,le.bottom+=p,Ea(le,r,i,!1)?(le.top<=i&&le.left<=r&&(B=se,M=le),!0):!1},g,v),W,Z,J=!1;if(M){var te=r-M.left=ne.bottom?1:0}return H=Kl(t.text,H,1),ka(n,H,Z,J,r-W)}function Id(e,t,n,r,i,u,p){var g=Mn(function(E){var B=i[E],M=B.level!=1;return Ea(Wt(e,Y(n,M?B.to:B.from,M?"before":"after"),"line",t,r),u,p,!0)},0,i.length-1),v=i[g];if(g>0){var b=v.level!=1,D=Wt(e,Y(n,b?v.from:v.to,b?"after":"before"),"line",t,r);Ea(D,u,p,!0)&&D.top>p&&(v=i[g-1])}return v}function Pd(e,t,n,r,i,u,p){var g=Is(e,t,r,p),v=g.begin,b=g.end;/\s/.test(t.text.charAt(b-1))&&b--;for(var D=null,E=null,B=0;B=b||M.to<=v)){var H=M.level!=1,W=Jt(e,r,H?Math.min(b,M.to)-1:Math.max(v,M.from)).right,Z=WZ)&&(D=M,E=Z)}}return D||(D=i[i.length-1]),D.fromb&&(D={from:D.from,to:b,level:D.level}),D}var Nr;function nn(e){if(e.cachedTextHeight!=null)return e.cachedTextHeight;if(Nr==null){Nr=k("pre",null,"CodeMirror-line-like");for(var t=0;t<49;++t)Nr.appendChild(document.createTextNode("x")),Nr.appendChild(k("br"));Nr.appendChild(document.createTextNode("x"))}G(e.measure,Nr);var n=Nr.offsetHeight/50;return n>3&&(e.cachedTextHeight=n),X(e.measure),n||1}function on(e){if(e.cachedCharWidth!=null)return e.cachedCharWidth;var t=k("span","xxxxxxxxxx"),n=k("pre",[t],"CodeMirror-line-like");G(e.measure,n);var r=t.getBoundingClientRect(),i=(r.right-r.left)/10;return i>2&&(e.cachedCharWidth=i),i||10}function Aa(e){for(var t=e.display,n={},r={},i=t.gutters.clientLeft,u=t.gutters.firstChild,p=0;u;u=u.nextSibling,++p){var g=e.display.gutterSpecs[p].className;n[g]=u.offsetLeft+u.clientLeft+i,r[g]=u.clientWidth}return{fixedPos:Fa(t),gutterTotalWidth:t.gutters.offsetWidth,gutterLeft:n,gutterWidth:r,wrapperWidth:t.wrapper.clientWidth}}function Fa(e){return e.scroller.getBoundingClientRect().left-e.sizer.getBoundingClientRect().left}function zs(e){var t=nn(e.display),n=e.options.lineWrapping,r=n&&Math.max(5,e.display.scroller.clientWidth/on(e.display)-3);return function(i){if(vr(e.doc,i))return 0;var u=0;if(i.widgets)for(var p=0;p0&&(b=ae(e.doc,v.line).text).length==v.ch){var D=Ye(b,b.length,e.options.tabSize)-b.length;v=Y(v.line,Math.max(0,Math.round((u-Ss(e.display).left)/on(e.display))-D))}return v}function Ir(e,t){if(t>=e.display.viewTo||(t-=e.display.viewFrom,t<0))return null;for(var n=e.display.view,r=0;rt)&&(i.updateLineNumbers=t),e.curOp.viewChanged=!0,t>=i.viewTo)rr&&va(e.doc,t)i.viewFrom?br(e):(i.viewFrom+=r,i.viewTo+=r);else if(t<=i.viewFrom&&n>=i.viewTo)br(e);else if(t<=i.viewFrom){var u=Hi(e,n,n+r,1);u?(i.view=i.view.slice(u.index),i.viewFrom=u.lineN,i.viewTo+=r):br(e)}else if(n>=i.viewTo){var p=Hi(e,t,t,-1);p?(i.view=i.view.slice(0,p.index),i.viewTo=p.lineN):br(e)}else{var g=Hi(e,t,t,-1),v=Hi(e,n,n+r,1);g&&v?(i.view=i.view.slice(0,g.index).concat(Oi(e,g.lineN,v.lineN)).concat(i.view.slice(v.index)),i.viewTo+=r):br(e)}var b=i.externalMeasured;b&&(n=i.lineN&&t=r.viewTo)){var u=r.view[Ir(e,t)];if(u.node!=null){var p=u.changes||(u.changes=[]);Ne(p,n)==-1&&p.push(n)}}}function br(e){e.display.viewFrom=e.display.viewTo=e.doc.first,e.display.view=[],e.display.viewOffset=0}function Hi(e,t,n,r){var i=Ir(e,t),u,p=e.display.view;if(!rr||n==e.doc.first+e.doc.size)return{index:i,lineN:n};for(var g=e.display.viewFrom,v=0;v0){if(i==p.length-1)return null;u=g+p[i].size-t,i++}else u=g-t;t+=u,n+=u}for(;va(e.doc,n)!=n;){if(i==(r<0?0:p.length-1))return null;n+=r*p[i-(r<0?1:0)].size,i+=r}return{index:i,lineN:n}}function zd(e,t,n){var r=e.display,i=r.view;i.length==0||t>=r.viewTo||n<=r.viewFrom?(r.view=Oi(e,t,n),r.viewFrom=t):(r.viewFrom>t?r.view=Oi(e,t,r.viewFrom).concat(r.view):r.viewFromn&&(r.view=r.view.slice(0,Ir(e,n)))),r.viewTo=n}function Hs(e){for(var t=e.display.view,n=0,r=0;r=e.display.viewTo||v.to().line0?p:e.defaultCharWidth())+"px"}if(r.other){var g=n.appendChild(k("div","\xA0","CodeMirror-cursor CodeMirror-secondarycursor"));g.style.display="",g.style.left=r.other.left+"px",g.style.top=r.other.top+"px",g.style.height=(r.other.bottom-r.other.top)*.85+"px"}}function Ri(e,t){return e.top-t.top||e.left-t.left}function Hd(e,t,n){var r=e.display,i=e.doc,u=document.createDocumentFragment(),p=Ss(e.display),g=p.left,v=Math.max(r.sizerWidth,Br(e)-r.sizer.offsetLeft)-p.right,b=i.direction=="ltr";function D($,ne,se,le){ne<0&&(ne=0),ne=Math.round(ne),le=Math.round(le),u.appendChild(k("div",null,"CodeMirror-selected","position: absolute; left: "+$+`px; + top: `+ne+"px; width: "+(se??v-$)+`px; + height: `+(le-ne)+"px"))}function E($,ne,se){var le=ae(i,$),we=le.text.length,Le,nt;function Pe(Xe,Dt){return zi(e,Y($,Xe),"div",le,Dt)}function Et(Xe,Dt,ot){var Qe=Ps(e,le,null,Xe),Ke=Dt=="ltr"==(ot=="after")?"left":"right",Re=ot=="after"?Qe.begin:Qe.end-(/\s/.test(le.text.charAt(Qe.end-1))?2:1);return Pe(Re,Ke)[Ke]}var wt=tr(le,i.direction);return qc(wt,ne||0,se??we,function(Xe,Dt,ot,Qe){var Ke=ot=="ltr",Re=Pe(Xe,Ke?"left":"right"),Ct=Pe(Dt-1,Ke?"right":"left"),bn=ne==null&&Xe==0,kr=se==null&&Dt==we,ut=Qe==0,$t=!wt||Qe==wt.length-1;if(Ct.top-Re.top<=3){var it=(b?bn:kr)&&ut,nl=(b?kr:bn)&&$t,lr=it?g:(Ke?Re:Ct).left,Wr=nl?v:(Ke?Ct:Re).right;D(lr,Re.top,Wr-lr,Re.bottom)}else{var qr,pt,yn,il;Ke?(qr=b&&bn&&ut?g:Re.left,pt=b?v:Et(Xe,ot,"before"),yn=b?g:Et(Dt,ot,"after"),il=b&&kr&&$t?v:Ct.right):(qr=b?Et(Xe,ot,"before"):g,pt=!b&&bn&&ut?v:Re.right,yn=!b&&kr&&$t?g:Ct.left,il=b?Et(Dt,ot,"after"):v),D(qr,Re.top,pt-qr,Re.bottom),Re.bottom0?t.blinker=setInterval(function(){e.hasFocus()||an(e),t.cursorDiv.style.visibility=(n=!n)?"":"hidden"},e.options.cursorBlinkRate):e.options.cursorBlinkRate<0&&(t.cursorDiv.style.visibility="hidden")}}function Ws(e){e.hasFocus()||(e.display.input.focus(),e.state.focused||Ba(e))}function _a(e){e.state.delayingBlurEvent=!0,setTimeout(function(){e.state.delayingBlurEvent&&(e.state.delayingBlurEvent=!1,e.state.focused&&an(e))},100)}function Ba(e,t){e.state.delayingBlurEvent&&!e.state.draggingText&&(e.state.delayingBlurEvent=!1),e.options.readOnly!="nocursor"&&(e.state.focused||(je(e,"focus",e,t),e.state.focused=!0,pe(e.display.wrapper,"CodeMirror-focused"),!e.curOp&&e.display.selForContextMenu!=e.doc.sel&&(e.display.input.reset(),m&&setTimeout(function(){return e.display.input.reset(!0)},20)),e.display.input.receivedFocus()),Ma(e))}function an(e,t){e.state.delayingBlurEvent||(e.state.focused&&(je(e,"blur",e,t),e.state.focused=!1,oe(e.display.wrapper,"CodeMirror-focused")),clearInterval(e.display.blinker),setTimeout(function(){e.state.focused||(e.display.shift=!1)},150))}function Wi(e){for(var t=e.display,n=t.lineDiv.offsetTop,r=Math.max(0,t.scroller.getBoundingClientRect().top),i=t.lineDiv.getBoundingClientRect().top,u=0,p=0;p.005||M<-.005)&&(ie.display.sizerWidth){var W=Math.ceil(D/on(e.display));W>e.display.maxLineLength&&(e.display.maxLineLength=W,e.display.maxLine=g.line,e.display.maxLineChanged=!0)}}}Math.abs(u)>2&&(t.scroller.scrollTop+=u)}function qs(e){if(e.widgets)for(var t=0;t=p&&(u=_r(t,nr(ae(t,v))-e.wrapper.clientHeight),p=v)}return{from:u,to:Math.max(p,u+1)}}function Rd(e,t){if(!Ve(e,"scrollCursorIntoView")){var n=e.display,r=n.sizer.getBoundingClientRect(),i=null,u=n.wrapper.ownerDocument;if(t.top+r.top<0?i=!0:t.bottom+r.top>(u.defaultView.innerHeight||u.documentElement.clientHeight)&&(i=!1),i!=null&&!L){var p=k("div","\u200B",null,`position: absolute; + top: `+(t.top-n.viewOffset-Ii(e.display))+`px; + height: `+(t.bottom-t.top+Qt(e)+n.barHeight)+`px; + left: `+t.left+"px; width: "+Math.max(2,t.right-t.left)+"px;");e.display.lineSpace.appendChild(p),p.scrollIntoView(i),e.display.lineSpace.removeChild(p)}}}function Wd(e,t,n,r){r==null&&(r=0);var i;!e.options.lineWrapping&&t==n&&(n=t.sticky=="before"?Y(t.line,t.ch+1,"before"):t,t=t.ch?Y(t.line,t.sticky=="before"?t.ch-1:t.ch,"after"):t);for(var u=0;u<5;u++){var p=!1,g=Wt(e,t),v=!n||n==t?g:Wt(e,n);i={left:Math.min(g.left,v.left),top:Math.min(g.top,v.top)-r,right:Math.max(g.left,v.left),bottom:Math.max(g.bottom,v.bottom)+r};var b=Na(e,i),D=e.doc.scrollTop,E=e.doc.scrollLeft;if(b.scrollTop!=null&&(jn(e,b.scrollTop),Math.abs(e.doc.scrollTop-D)>1&&(p=!0)),b.scrollLeft!=null&&(Pr(e,b.scrollLeft),Math.abs(e.doc.scrollLeft-E)>1&&(p=!0)),!p)break}return i}function qd(e,t){var n=Na(e,t);n.scrollTop!=null&&jn(e,n.scrollTop),n.scrollLeft!=null&&Pr(e,n.scrollLeft)}function Na(e,t){var n=e.display,r=nn(e.display);t.top<0&&(t.top=0);var i=e.curOp&&e.curOp.scrollTop!=null?e.curOp.scrollTop:n.scroller.scrollTop,u=wa(e),p={};t.bottom-t.top>u&&(t.bottom=t.top+u);var g=e.doc.height+xa(n),v=t.topg-r;if(t.topi+u){var D=Math.min(t.top,(b?g:t.bottom)-u);D!=i&&(p.scrollTop=D)}var E=e.options.fixedGutter?0:n.gutters.offsetWidth,B=e.curOp&&e.curOp.scrollLeft!=null?e.curOp.scrollLeft:n.scroller.scrollLeft-E,M=Br(e)-n.gutters.offsetWidth,H=t.right-t.left>M;return H&&(t.right=t.left+M),t.left<10?p.scrollLeft=0:t.leftM+B-3&&(p.scrollLeft=t.right+(H?0:10)-M),p}function Oa(e,t){t!=null&&(Ui(e),e.curOp.scrollTop=(e.curOp.scrollTop==null?e.doc.scrollTop:e.curOp.scrollTop)+t)}function ln(e){Ui(e);var t=e.getCursor();e.curOp.scrollToPos={from:t,to:t,margin:e.options.cursorScrollMargin}}function Un(e,t,n){(t!=null||n!=null)&&Ui(e),t!=null&&(e.curOp.scrollLeft=t),n!=null&&(e.curOp.scrollTop=n)}function Ud(e,t){Ui(e),e.curOp.scrollToPos=t}function Ui(e){var t=e.curOp.scrollToPos;if(t){e.curOp.scrollToPos=null;var n=Os(e,t.from),r=Os(e,t.to);Us(e,n,r,t.margin)}}function Us(e,t,n,r){var i=Na(e,{left:Math.min(t.left,n.left),top:Math.min(t.top,n.top)-r,right:Math.max(t.right,n.right),bottom:Math.max(t.bottom,n.bottom)+r});Un(e,i.scrollLeft,i.scrollTop)}function jn(e,t){Math.abs(e.doc.scrollTop-t)<2||(s||Pa(e,{top:t}),js(e,t,!0),s&&Pa(e),Kn(e,100))}function js(e,t,n){t=Math.max(0,Math.min(e.display.scroller.scrollHeight-e.display.scroller.clientHeight,t)),!(e.display.scroller.scrollTop==t&&!n)&&(e.doc.scrollTop=t,e.display.scrollbars.setScrollTop(t),e.display.scroller.scrollTop!=t&&(e.display.scroller.scrollTop=t))}function Pr(e,t,n,r){t=Math.max(0,Math.min(t,e.display.scroller.scrollWidth-e.display.scroller.clientWidth)),!((n?t==e.doc.scrollLeft:Math.abs(e.doc.scrollLeft-t)<2)&&!r)&&(e.doc.scrollLeft=t,Zs(e),e.display.scroller.scrollLeft!=t&&(e.display.scroller.scrollLeft=t),e.display.scrollbars.setScrollLeft(t))}function Gn(e){var t=e.display,n=t.gutters.offsetWidth,r=Math.round(e.doc.height+xa(e.display));return{clientHeight:t.scroller.clientHeight,viewHeight:t.wrapper.clientHeight,scrollWidth:t.scroller.scrollWidth,clientWidth:t.scroller.clientWidth,viewWidth:t.wrapper.clientWidth,barLeft:e.options.fixedGutter?n:0,docHeight:r,scrollHeight:r+Qt(e)+t.barHeight,nativeBarWidth:t.nativeBarWidth,gutterWidth:n}}var zr=function(e,t,n){this.cm=n;var r=this.vert=k("div",[k("div",null,null,"min-width: 1px")],"CodeMirror-vscrollbar"),i=this.horiz=k("div",[k("div",null,null,"height: 100%; min-height: 1px")],"CodeMirror-hscrollbar");r.tabIndex=i.tabIndex=-1,e(r),e(i),ue(r,"scroll",function(){r.clientHeight&&t(r.scrollTop,"vertical")}),ue(i,"scroll",function(){i.clientWidth&&t(i.scrollLeft,"horizontal")}),this.checkedZeroWidth=!1,c&&d<8&&(this.horiz.style.minHeight=this.vert.style.minWidth="18px")};zr.prototype.update=function(e){var t=e.scrollWidth>e.clientWidth+1,n=e.scrollHeight>e.clientHeight+1,r=e.nativeBarWidth;if(n){this.vert.style.display="block",this.vert.style.bottom=t?r+"px":"0";var i=e.viewHeight-(t?r:0);this.vert.firstChild.style.height=Math.max(0,e.scrollHeight-e.clientHeight+i)+"px"}else this.vert.scrollTop=0,this.vert.style.display="",this.vert.firstChild.style.height="0";if(t){this.horiz.style.display="block",this.horiz.style.right=n?r+"px":"0",this.horiz.style.left=e.barLeft+"px";var u=e.viewWidth-e.barLeft-(n?r:0);this.horiz.firstChild.style.width=Math.max(0,e.scrollWidth-e.clientWidth+u)+"px"}else this.horiz.style.display="",this.horiz.firstChild.style.width="0";return!this.checkedZeroWidth&&e.clientHeight>0&&(r==0&&this.zeroWidthHack(),this.checkedZeroWidth=!0),{right:n?r:0,bottom:t?r:0}},zr.prototype.setScrollLeft=function(e){this.horiz.scrollLeft!=e&&(this.horiz.scrollLeft=e),this.disableHoriz&&this.enableZeroWidthBar(this.horiz,this.disableHoriz,"horiz")},zr.prototype.setScrollTop=function(e){this.vert.scrollTop!=e&&(this.vert.scrollTop=e),this.disableVert&&this.enableZeroWidthBar(this.vert,this.disableVert,"vert")},zr.prototype.zeroWidthHack=function(){var e=I&&!_?"12px":"18px";this.horiz.style.height=this.vert.style.width=e,this.horiz.style.visibility=this.vert.style.visibility="hidden",this.disableHoriz=new dt,this.disableVert=new dt},zr.prototype.enableZeroWidthBar=function(e,t,n){e.style.visibility="";function r(){var i=e.getBoundingClientRect(),u=n=="vert"?document.elementFromPoint(i.right-1,(i.top+i.bottom)/2):document.elementFromPoint((i.right+i.left)/2,i.bottom-1);u!=e?e.style.visibility="hidden":t.set(1e3,r)}t.set(1e3,r)},zr.prototype.clear=function(){var e=this.horiz.parentNode;e.removeChild(this.horiz),e.removeChild(this.vert)};var Xn=function(){};Xn.prototype.update=function(){return{bottom:0,right:0}},Xn.prototype.setScrollLeft=function(){},Xn.prototype.setScrollTop=function(){},Xn.prototype.clear=function(){};function sn(e,t){t||(t=Gn(e));var n=e.display.barWidth,r=e.display.barHeight;Gs(e,t);for(var i=0;i<4&&n!=e.display.barWidth||r!=e.display.barHeight;i++)n!=e.display.barWidth&&e.options.lineWrapping&&Wi(e),Gs(e,Gn(e)),n=e.display.barWidth,r=e.display.barHeight}function Gs(e,t){var n=e.display,r=n.scrollbars.update(t);n.sizer.style.paddingRight=(n.barWidth=r.right)+"px",n.sizer.style.paddingBottom=(n.barHeight=r.bottom)+"px",n.heightForcer.style.borderBottom=r.bottom+"px solid transparent",r.right&&r.bottom?(n.scrollbarFiller.style.display="block",n.scrollbarFiller.style.height=r.bottom+"px",n.scrollbarFiller.style.width=r.right+"px"):n.scrollbarFiller.style.display="",r.bottom&&e.options.coverGutterNextToScrollbar&&e.options.fixedGutter?(n.gutterFiller.style.display="block",n.gutterFiller.style.height=r.bottom+"px",n.gutterFiller.style.width=t.gutterWidth+"px"):n.gutterFiller.style.display=""}var Xs={native:zr,null:Xn};function Ks(e){e.display.scrollbars&&(e.display.scrollbars.clear(),e.display.scrollbars.addClass&&oe(e.display.wrapper,e.display.scrollbars.addClass)),e.display.scrollbars=new Xs[e.options.scrollbarStyle](function(t){e.display.wrapper.insertBefore(t,e.display.scrollbarFiller),ue(t,"mousedown",function(){e.state.focused&&setTimeout(function(){return e.display.input.focus()},0)}),t.setAttribute("cm-not-content","true")},function(t,n){n=="horizontal"?Pr(e,t):jn(e,t)},e),e.display.scrollbars.addClass&&pe(e.display.wrapper,e.display.scrollbars.addClass)}var jd=0;function Hr(e){e.curOp={cm:e,viewChanged:!1,startHeight:e.doc.height,forceUpdate:!1,updateInput:0,typing:!1,changeObjs:null,cursorActivityHandlers:null,cursorActivityCalled:0,selectionChanged:!1,updateMaxLine:!1,scrollLeft:null,scrollTop:null,scrollToPos:null,focus:!1,id:++jd,markArrays:null},wd(e.curOp)}function Rr(e){var t=e.curOp;t&&Cd(t,function(n){for(var r=0;r=n.viewTo)||n.maxLineChanged&&t.options.lineWrapping,e.update=e.mustUpdate&&new ji(t,e.mustUpdate&&{top:e.scrollTop,ensure:e.scrollToPos},e.forceUpdate)}function Kd(e){e.updatedDisplay=e.mustUpdate&&Ia(e.cm,e.update)}function Yd(e){var t=e.cm,n=t.display;e.updatedDisplay&&Wi(t),e.barMeasure=Gn(t),n.maxLineChanged&&!t.options.lineWrapping&&(e.adjustWidthTo=As(t,n.maxLine,n.maxLine.text.length).left+3,t.display.sizerWidth=e.adjustWidthTo,e.barMeasure.scrollWidth=Math.max(n.scroller.clientWidth,n.sizer.offsetLeft+e.adjustWidthTo+Qt(t)+t.display.barWidth),e.maxScrollLeft=Math.max(0,n.sizer.offsetLeft+e.adjustWidthTo-Br(t))),(e.updatedDisplay||e.selectionChanged)&&(e.preparedSelection=n.input.prepareSelection())}function Zd(e){var t=e.cm;e.adjustWidthTo!=null&&(t.display.sizer.style.minWidth=e.adjustWidthTo+"px",e.maxScrollLeft=e.display.viewTo)){var n=+new Date+e.options.workTime,r=In(e,t.highlightFrontier),i=[];t.iter(r.line,Math.min(t.first+t.size,e.display.viewTo+500),function(u){if(r.line>=e.display.viewFrom){var p=u.styles,g=u.text.length>e.options.maxHighlightLength?Lr(t.mode,r.state):null,v=ts(e,u,r,!0);g&&(r.state=g),u.styles=v.styles;var b=u.styleClasses,D=v.classes;D?u.styleClasses=D:b&&(u.styleClasses=null);for(var E=!p||p.length!=u.styles.length||b!=D&&(!b||!D||b.bgClass!=D.bgClass||b.textClass!=D.textClass),B=0;!E&&Bn)return Kn(e,e.options.workDelay),!0}),t.highlightFrontier=r.line,t.modeFrontier=Math.max(t.modeFrontier,r.line),i.length&&St(e,function(){for(var u=0;u=n.viewFrom&&t.visible.to<=n.viewTo&&(n.updateLineNumbers==null||n.updateLineNumbers>=n.viewTo)&&n.renderedView==n.view&&Hs(e)==0)return!1;Qs(e)&&(br(e),t.dims=Aa(e));var i=r.first+r.size,u=Math.max(t.visible.from-e.options.viewportMargin,r.first),p=Math.min(i,t.visible.to+e.options.viewportMargin);n.viewFromp&&n.viewTo-p<20&&(p=Math.min(i,n.viewTo)),rr&&(u=va(e.doc,u),p=gs(e.doc,p));var g=u!=n.viewFrom||p!=n.viewTo||n.lastWrapHeight!=t.wrapperHeight||n.lastWrapWidth!=t.wrapperWidth;zd(e,u,p),n.viewOffset=nr(ae(e.doc,n.viewFrom)),e.display.mover.style.top=n.viewOffset+"px";var v=Hs(e);if(!g&&v==0&&!t.force&&n.renderedView==n.view&&(n.updateLineNumbers==null||n.updateLineNumbers>=n.viewTo))return!1;var b=Vd(e);return v>4&&(n.lineDiv.style.display="none"),th(e,n.updateLineNumbers,t.dims),v>4&&(n.lineDiv.style.display=""),n.renderedView=n.view,eh(b),X(n.cursorDiv),X(n.selectionDiv),n.gutters.style.height=n.sizer.style.minHeight=0,g&&(n.lastWrapHeight=t.wrapperHeight,n.lastWrapWidth=t.wrapperWidth,Kn(e,400)),n.updateLineNumbers=null,!0}function Ys(e,t){for(var n=t.viewport,r=!0;;r=!1){if(!r||!e.options.lineWrapping||t.oldDisplayWidth==Br(e)){if(n&&n.top!=null&&(n={top:Math.min(e.doc.height+xa(e.display)-wa(e),n.top)}),t.visible=qi(e.display,e.doc,n),t.visible.from>=e.display.viewFrom&&t.visible.to<=e.display.viewTo)break}else r&&(t.visible=qi(e.display,e.doc,n));if(!Ia(e,t))break;Wi(e);var i=Gn(e);qn(e),sn(e,i),Ha(e,i),t.force=!1}t.signal(e,"update",e),(e.display.viewFrom!=e.display.reportedViewFrom||e.display.viewTo!=e.display.reportedViewTo)&&(t.signal(e,"viewportChange",e,e.display.viewFrom,e.display.viewTo),e.display.reportedViewFrom=e.display.viewFrom,e.display.reportedViewTo=e.display.viewTo)}function Pa(e,t){var n=new ji(e,t);if(Ia(e,n)){Wi(e),Ys(e,n);var r=Gn(e);qn(e),sn(e,r),Ha(e,r),n.finish()}}function th(e,t,n){var r=e.display,i=e.options.lineNumbers,u=r.lineDiv,p=u.firstChild;function g(H){var W=H.nextSibling;return m&&I&&e.display.currentWheelTarget==H?H.style.display="none":H.parentNode.removeChild(H),W}for(var v=r.view,b=r.viewFrom,D=0;D-1&&(M=!1),xs(e,E,b,n)),M&&(X(E.lineNumber),E.lineNumber.appendChild(document.createTextNode(ua(e.options,b)))),p=E.node.nextSibling}b+=E.size}for(;p;)p=g(p)}function za(e){var t=e.gutters.offsetWidth;e.sizer.style.marginLeft=t+"px",et(e,"gutterChanged",e)}function Ha(e,t){e.display.sizer.style.minHeight=t.docHeight+"px",e.display.heightForcer.style.top=t.docHeight+"px",e.display.gutters.style.height=t.docHeight+e.display.barHeight+Qt(e)+"px"}function Zs(e){var t=e.display,n=t.view;if(!(!t.alignWidgets&&(!t.gutters.firstChild||!e.options.fixedGutter))){for(var r=Fa(t)-t.scroller.scrollLeft+e.doc.scrollLeft,i=t.gutters.offsetWidth,u=r+"px",p=0;pg.clientWidth,b=g.scrollHeight>g.clientHeight;if(r&&v||i&&b){if(i&&I&&m){e:for(var D=t.target,E=p.view;D!=g;D=D.parentNode)for(var B=0;B=0&&me(e,r.to())<=0)return n}return-1};var Ae=function(e,t){this.anchor=e,this.head=t};Ae.prototype.from=function(){return Fi(this.anchor,this.head)},Ae.prototype.to=function(){return Ai(this.anchor,this.head)},Ae.prototype.empty=function(){return this.head.line==this.anchor.line&&this.head.ch==this.anchor.ch};function qt(e,t,n){var r=e&&e.options.selectionsMayTouch,i=t[n];t.sort(function(B,M){return me(B.from(),M.from())}),n=Ne(t,i);for(var u=1;u0:v>=0){var b=Fi(g.from(),p.from()),D=Ai(g.to(),p.to()),E=g.empty()?p.from()==p.head:g.from()==g.head;u<=n&&--n,t.splice(--u,2,new Ae(E?D:b,E?b:D))}}return new _t(t,n)}function yr(e,t){return new _t([new Ae(e,t||e)],0)}function xr(e){return e.text?Y(e.from.line+e.text.length-1,Ce(e.text).length+(e.text.length==1?e.from.ch:0)):e.to}function eu(e,t){if(me(e,t.from)<0)return e;if(me(e,t.to)<=0)return xr(t);var n=e.line+t.text.length-(t.to.line-t.from.line)-1,r=e.ch;return e.line==t.to.line&&(r+=xr(t).ch-t.to.ch),Y(n,r)}function Wa(e,t){for(var n=[],r=0;r1&&e.remove(g.line+1,H-1),e.insert(g.line+1,J)}et(e,"change",e,t)}function wr(e,t,n){function r(i,u,p){if(i.linked)for(var g=0;g1&&!e.done[e.done.length-2].ranges)return e.done.pop(),Ce(e.done)}function au(e,t,n,r){var i=e.history;i.undone.length=0;var u=+new Date,p,g;if((i.lastOp==r||i.lastOrigin==t.origin&&t.origin&&(t.origin.charAt(0)=="+"&&i.lastModTime>u-(e.cm?e.cm.options.historyEventDelay:500)||t.origin.charAt(0)=="*"))&&(p=ah(i,i.lastOp==r)))g=Ce(p.changes),me(t.from,t.to)==0&&me(t.from,g.to)==0?g.to=xr(t):p.changes.push(ja(e,t));else{var v=Ce(i.done);for((!v||!v.ranges)&&Ki(e.sel,i.done),p={changes:[ja(e,t)],generation:i.generation},i.done.push(p);i.done.length>i.undoDepth;)i.done.shift(),i.done[0].ranges||i.done.shift()}i.done.push(n),i.generation=++i.maxGeneration,i.lastModTime=i.lastSelTime=u,i.lastOp=i.lastSelOp=r,i.lastOrigin=i.lastSelOrigin=t.origin,g||je(e,"historyAdded")}function lh(e,t,n,r){var i=t.charAt(0);return i=="*"||i=="+"&&n.ranges.length==r.ranges.length&&n.somethingSelected()==r.somethingSelected()&&new Date-e.history.lastSelTime<=(e.cm?e.cm.options.historyEventDelay:500)}function sh(e,t,n,r){var i=e.history,u=r&&r.origin;n==i.lastSelOp||u&&i.lastSelOrigin==u&&(i.lastModTime==i.lastSelTime&&i.lastOrigin==u||lh(e,u,Ce(i.done),t))?i.done[i.done.length-1]=t:Ki(t,i.done),i.lastSelTime=+new Date,i.lastSelOrigin=u,i.lastSelOp=n,r&&r.clearRedo!==!1&&ou(i.undone)}function Ki(e,t){var n=Ce(t);n&&n.ranges&&n.equals(e)||t.push(e)}function lu(e,t,n,r){var i=t["spans_"+e.id],u=0;e.iter(Math.max(e.first,n),Math.min(e.first+e.size,r),function(p){p.markedSpans&&((i||(i=t["spans_"+e.id]={}))[u]=p.markedSpans),++u})}function uh(e){if(!e)return null;for(var t,n=0;n-1&&(Ce(g)[E]=b[E],delete b[E])}}return r}function Ga(e,t,n,r){if(r){var i=e.anchor;if(n){var u=me(t,i)<0;u!=me(n,i)<0?(i=t,t=n):u!=me(t,n)<0&&(t=n)}return new Ae(i,t)}else return new Ae(n||t,t)}function Yi(e,t,n,r,i){i==null&&(i=e.cm&&(e.cm.display.shift||e.extend)),st(e,new _t([Ga(e.sel.primary(),t,n,i)],0),r)}function uu(e,t,n){for(var r=[],i=e.cm&&(e.cm.display.shift||e.extend),u=0;u=t.ch:g.to>t.ch))){if(i&&(je(v,"beforeCursorEnter"),v.explicitlyCleared))if(u.markedSpans){--p;continue}else break;if(!v.atomic)continue;if(n){var E=v.find(r<0?1:-1),B=void 0;if((r<0?D:b)&&(E=gu(e,E,-r,E&&E.line==t.line?u:null)),E&&E.line==t.line&&(B=me(E,n))&&(r<0?B<0:B>0))return fn(e,E,t,r,i)}var M=v.find(r<0?-1:1);return(r<0?b:D)&&(M=gu(e,M,r,M.line==t.line?u:null)),M?fn(e,M,t,r,i):null}}return t}function Qi(e,t,n,r,i){var u=r||1,p=fn(e,t,n,u,i)||!i&&fn(e,t,n,u,!0)||fn(e,t,n,-u,i)||!i&&fn(e,t,n,-u,!0);return p||(e.cantEdit=!0,Y(e.first,0))}function gu(e,t,n,r){return n<0&&t.ch==0?t.line>e.first?be(e,Y(t.line-1)):null:n>0&&t.ch==(r||ae(e,t.line)).text.length?t.line=0;--i)bu(e,{from:r[i].from,to:r[i].to,text:i?[""]:t.text,origin:t.origin});else bu(e,t)}}function bu(e,t){if(!(t.text.length==1&&t.text[0]==""&&me(t.from,t.to)==0)){var n=Wa(e,t);au(e,t,n,e.cm?e.cm.curOp.id:NaN),Qn(e,t,n,pa(e,t));var r=[];wr(e,function(i,u){!u&&Ne(r,i.history)==-1&&(Du(i.history,t),r.push(i.history)),Qn(i,t,null,pa(i,t))})}}function Ji(e,t,n){var r=e.cm&&e.cm.state.suppressEdits;if(!(r&&!n)){for(var i=e.history,u,p=e.sel,g=t=="undo"?i.done:i.undone,v=t=="undo"?i.undone:i.done,b=0;b=0;--M){var H=B(M);if(H)return H.v}}}}function yu(e,t){if(t!=0&&(e.first+=t,e.sel=new _t(Ht(e.sel.ranges,function(i){return new Ae(Y(i.anchor.line+t,i.anchor.ch),Y(i.head.line+t,i.head.ch))}),e.sel.primIndex),e.cm)){yt(e.cm,e.first,e.first-t,t);for(var n=e.cm.display,r=n.viewFrom;re.lastLine())){if(t.from.lineu&&(t={from:t.from,to:Y(u,ae(e,u).text.length),text:[t.text[0]],origin:t.origin}),t.removed=Mr(e,t.from,t.to),n||(n=Wa(e,t)),e.cm?dh(e.cm,t,r):Ua(e,t,r),Zi(e,n,mt),e.cantEdit&&Qi(e,Y(e.firstLine(),0))&&(e.cantEdit=!1)}}function dh(e,t,n){var r=e.doc,i=e.display,u=t.from,p=t.to,g=!1,v=u.line;e.options.lineWrapping||(v=Fe(Rt(ae(r,u.line))),r.iter(v,p.line+1,function(M){if(M==i.maxLine)return g=!0,!0})),r.sel.contains(t.from,t.to)>-1&&Zl(e),Ua(r,t,n,zs(e)),e.options.lineWrapping||(r.iter(v,u.line+t.text.length,function(M){var H=Ni(M);H>i.maxLineLength&&(i.maxLine=M,i.maxLineLength=H,i.maxLineChanged=!0,g=!1)}),g&&(e.curOp.updateMaxLine=!0)),td(r,u.line),Kn(e,400);var b=t.text.length-(p.line-u.line)-1;t.full?yt(e):u.line==p.line&&t.text.length==1&&!ru(e.doc,t)?mr(e,u.line,"text"):yt(e,u.line,p.line+1,b);var D=It(e,"changes"),E=It(e,"change");if(E||D){var B={from:u,to:p,text:t.text,removed:t.removed,origin:t.origin};E&&et(e,"change",e,B),D&&(e.curOp.changeObjs||(e.curOp.changeObjs=[])).push(B)}e.display.selForContextMenu=null}function dn(e,t,n,r,i){var u;r||(r=n),me(r,n)<0&&(u=[r,n],n=u[0],r=u[1]),typeof t=="string"&&(t=e.splitLines(t)),cn(e,{from:n,to:r,text:t,origin:i})}function xu(e,t,n,r){n1||!(this.children[0]instanceof $n))){var g=[];this.collapse(g),this.children=[new $n(g)],this.children[0].parent=this}},collapse:function(e){for(var t=0;t50){for(var p=i.lines.length%25+25,g=p;g10);e.parent.maybeSpill()}},iterN:function(e,t,n){for(var r=0;re.display.maxLineLength&&(e.display.maxLine=b,e.display.maxLineLength=D,e.display.maxLineChanged=!0)}r!=null&&e&&this.collapsed&&yt(e,r,i+1),this.lines.length=0,this.explicitlyCleared=!0,this.atomic&&this.doc.cantEdit&&(this.doc.cantEdit=!1,e&&hu(e.doc)),e&&et(e,"markerCleared",e,this,r,i),t&&Rr(e),this.parent&&this.parent.clear()}},Dr.prototype.find=function(e,t){e==null&&this.type=="bookmark"&&(e=1);for(var n,r,i=0;i0||p==0&&u.clearWhenEmpty!==!1)return u;if(u.replacedWith&&(u.collapsed=!0,u.widgetNode=z("span",[u.replacedWith],"CodeMirror-widget"),r.handleMouseEvents||u.widgetNode.setAttribute("cm-ignore-events","true"),r.insertLeft&&(u.widgetNode.insertLeft=!0)),u.collapsed){if(ps(e,t.line,t,n,u)||t.line!=n.line&&ps(e,n.line,t,n,u))throw new Error("Inserting collapsed marker partially overlapping an existing one");nd()}u.addToHistory&&au(e,{from:t,to:n,origin:"markText"},e.sel,NaN);var g=t.line,v=e.cm,b;if(e.iter(g,n.line+1,function(E){v&&u.collapsed&&!v.options.lineWrapping&&Rt(E)==v.display.maxLine&&(b=!0),u.collapsed&&g!=t.line&&Yt(E,0),od(E,new Li(u,g==t.line?t.ch:null,g==n.line?n.ch:null),e.cm&&e.cm.curOp),++g}),u.collapsed&&e.iter(t.line,n.line+1,function(E){vr(e,E)&&Yt(E,0)}),u.clearOnEnter&&ue(u,"beforeCursorEnter",function(){return u.clear()}),u.readOnly&&(rd(),(e.history.done.length||e.history.undone.length)&&e.clearHistory()),u.collapsed&&(u.id=++ku,u.atomic=!0),v){if(b&&(v.curOp.updateMaxLine=!0),u.collapsed)yt(v,t.line,n.line+1);else if(u.className||u.startStyle||u.endStyle||u.css||u.attributes||u.title)for(var D=t.line;D<=n.line;D++)mr(v,D,"text");u.atomic&&hu(v.doc),et(v,"markerAdded",v,u)}return u}var ti=function(e,t){this.markers=e,this.primary=t;for(var n=0;n=0;v--)cn(this,r[v]);g?cu(this,g):this.cm&&ln(this.cm)}),undo:rt(function(){Ji(this,"undo")}),redo:rt(function(){Ji(this,"redo")}),undoSelection:rt(function(){Ji(this,"undo",!0)}),redoSelection:rt(function(){Ji(this,"redo",!0)}),setExtending:function(e){this.extend=e},getExtending:function(){return this.extend},historySize:function(){for(var e=this.history,t=0,n=0,r=0;r=e.ch)&&t.push(i.marker.parent||i.marker)}return t},findMarks:function(e,t,n){e=be(this,e),t=be(this,t);var r=[],i=e.line;return this.iter(e.line,t.line+1,function(u){var p=u.markedSpans;if(p)for(var g=0;g=v.to||v.from==null&&i!=e.line||v.from!=null&&i==t.line&&v.from>=t.ch)&&(!n||n(v.marker))&&r.push(v.marker.parent||v.marker)}++i}),r},getAllMarks:function(){var e=[];return this.iter(function(t){var n=t.markedSpans;if(n)for(var r=0;re)return t=e,!0;e-=u,++n}),be(this,Y(n,t))},indexFromPos:function(e){e=be(this,e);var t=e.ch;if(e.linet&&(t=e.from),e.to!=null&&e.to-1){t.state.draggingText(e),setTimeout(function(){return t.display.input.focus()},20);return}try{var D=e.dataTransfer.getData("Text");if(D){var E;if(t.state.draggingText&&!t.state.draggingText.copy&&(E=t.listSelections()),Zi(t.doc,yr(n,n)),E)for(var B=0;B=0;g--)dn(e.doc,"",r[g].from,r[g].to,"+delete");ln(e)})}function Ka(e,t,n){var r=Kl(e.text,t+n,n);return r<0||r>e.text.length?null:r}function Ya(e,t,n){var r=Ka(e,t.ch,n);return r==null?null:new Y(t.line,r,n<0?"after":"before")}function Za(e,t,n,r,i){if(e){t.doc.direction=="rtl"&&(i=-i);var u=tr(n,t.doc.direction);if(u){var p=i<0?Ce(u):u[0],g=i<0==(p.level==1),v=g?"after":"before",b;if(p.level>0||t.doc.direction=="rtl"){var D=rn(t,n);b=i<0?n.text.length-1:0;var E=Jt(t,D,b).top;b=Mn(function(B){return Jt(t,D,B).top==E},i<0==(p.level==1)?p.from:p.to-1,b),v=="before"&&(b=Ka(n,b,1))}else b=i<0?p.to:p.from;return new Y(r,b,v)}}return new Y(r,i<0?n.text.length:0,i<0?"before":"after")}function Eh(e,t,n,r){var i=tr(t,e.doc.direction);if(!i)return Ya(t,n,r);n.ch>=t.text.length?(n.ch=t.text.length,n.sticky="before"):n.ch<=0&&(n.ch=0,n.sticky="after");var u=Bn(i,n.ch,n.sticky),p=i[u];if(e.doc.direction=="ltr"&&p.level%2==0&&(r>0?p.to>n.ch:p.from=p.from&&B>=D.begin)){var M=E?"before":"after";return new Y(n.line,B,M)}}var H=function(J,te,$){for(var ne=function(Le,nt){return nt?new Y(n.line,g(Le,1),"before"):new Y(n.line,Le,"after")};J>=0&&J0==(se.level!=1),we=le?$.begin:g($.end,-1);if(se.from<=we&&we0?D.end:g(D.begin,-1);return Z!=null&&!(r>0&&Z==t.text.length)&&(W=H(r>0?0:i.length-1,r,b(Z)),W)?W:null}var ii={selectAll:vu,singleSelection:function(e){return e.setSelection(e.getCursor("anchor"),e.getCursor("head"),mt)},killLine:function(e){return gn(e,function(t){if(t.empty()){var n=ae(e.doc,t.head.line).text.length;return t.head.ch==n&&t.head.line0)i=new Y(i.line,i.ch+1),e.replaceRange(u.charAt(i.ch-1)+u.charAt(i.ch-2),Y(i.line,i.ch-2),i,"+transpose");else if(i.line>e.doc.first){var p=ae(e.doc,i.line-1).text;p&&(i=new Y(i.line,1),e.replaceRange(u.charAt(0)+e.doc.lineSeparator()+p.charAt(p.length-1),Y(i.line-1,p.length-1),i,"+transpose"))}}n.push(new Ae(i,i))}e.setSelections(n)})},newlineAndIndent:function(e){return St(e,function(){for(var t=e.listSelections(),n=t.length-1;n>=0;n--)e.replaceRange(e.doc.lineSeparator(),t[n].anchor,t[n].head,"+input");t=e.listSelections();for(var r=0;re&&me(t,this.pos)==0&&n==this.button};var ai,li;function Bh(e,t){var n=+new Date;return li&&li.compare(n,e,t)?(ai=li=null,"triple"):ai&&ai.compare(n,e,t)?(li=new Ja(n,e,t),ai=null,"double"):(ai=new Ja(n,e,t),li=null,"single")}function Ru(e){var t=this,n=t.display;if(!(Ve(t,e)||n.activeTouch&&n.input.supportsTouch())){if(n.input.ensurePolled(),n.shift=e.shiftKey,ir(n,e)){m||(n.scroller.draggable=!1,setTimeout(function(){return n.scroller.draggable=!0},100));return}if(!$a(t,e)){var r=Or(t,e),i=Jl(e),u=r?Bh(r,i):"single";ye(t).focus(),i==1&&t.state.selectingText&&t.state.selectingText(e),!(r&&Nh(t,i,r,u,e))&&(i==1?r?Ih(t,r,u,e):ea(e)==n.scroller&&bt(e):i==2?(r&&Yi(t.doc,r),setTimeout(function(){return n.input.focus()},20)):i==3&&(de?t.display.input.onContextMenu(e):_a(t)))}}}function Nh(e,t,n,r,i){var u="Click";return r=="double"?u="Double"+u:r=="triple"&&(u="Triple"+u),u=(t==1?"Left":t==2?"Middle":"Right")+u,oi(e,Mu(u,i),i,function(p){if(typeof p=="string"&&(p=ii[p]),!p)return!1;var g=!1;try{e.isReadOnly()&&(e.state.suppressEdits=!0),g=p(e,n)!=Ze}finally{e.state.suppressEdits=!1}return g})}function Oh(e,t,n){var r=e.getOption("configureMouse"),i=r?r(e,t,n):{};if(i.unit==null){var u=P?n.shiftKey&&n.metaKey:n.altKey;i.unit=u?"rectangle":t=="single"?"char":t=="double"?"word":"line"}return(i.extend==null||e.doc.extend)&&(i.extend=e.doc.extend||n.shiftKey),i.addNew==null&&(i.addNew=I?n.metaKey:n.ctrlKey),i.moveOnDrag==null&&(i.moveOnDrag=!(I?n.altKey:n.ctrlKey)),i}function Ih(e,t,n,r){c?setTimeout(lt(Ws,e),0):e.curOp.focus=he(ee(e));var i=Oh(e,n,r),u=e.doc.sel,p;e.options.dragDrop&&jc&&!e.isReadOnly()&&n=="single"&&(p=u.contains(t))>-1&&(me((p=u.ranges[p]).from(),t)<0||t.xRel>0)&&(me(p.to(),t)>0||t.xRel<0)?Ph(e,r,t,i):zh(e,r,t,i)}function Ph(e,t,n,r){var i=e.display,u=!1,p=tt(e,function(b){m&&(i.scroller.draggable=!1),e.state.draggingText=!1,e.state.delayingBlurEvent&&(e.hasFocus()?e.state.delayingBlurEvent=!1:_a(e)),Mt(i.wrapper.ownerDocument,"mouseup",p),Mt(i.wrapper.ownerDocument,"mousemove",g),Mt(i.scroller,"dragstart",v),Mt(i.scroller,"drop",p),u||(bt(b),r.addNew||Yi(e.doc,n,null,null,r.extend),m&&!F||c&&d==9?setTimeout(function(){i.wrapper.ownerDocument.body.focus({preventScroll:!0}),i.input.focus()},20):i.input.focus())}),g=function(b){u=u||Math.abs(t.clientX-b.clientX)+Math.abs(t.clientY-b.clientY)>=10},v=function(){return u=!0};m&&(i.scroller.draggable=!0),e.state.draggingText=p,p.copy=!r.moveOnDrag,ue(i.wrapper.ownerDocument,"mouseup",p),ue(i.wrapper.ownerDocument,"mousemove",g),ue(i.scroller,"dragstart",v),ue(i.scroller,"drop",p),e.state.delayingBlurEvent=!0,setTimeout(function(){return i.input.focus()},20),i.scroller.dragDrop&&i.scroller.dragDrop()}function Wu(e,t,n){if(n=="char")return new Ae(t,t);if(n=="word")return e.findWordAt(t);if(n=="line")return new Ae(Y(t.line,0),be(e.doc,Y(t.line+1,0)));var r=n(e,t);return new Ae(r.from,r.to)}function zh(e,t,n,r){c&&_a(e);var i=e.display,u=e.doc;bt(t);var p,g,v=u.sel,b=v.ranges;if(r.addNew&&!r.extend?(g=u.sel.contains(n),g>-1?p=b[g]:p=new Ae(n,n)):(p=u.sel.primary(),g=u.sel.primIndex),r.unit=="rectangle")r.addNew||(p=new Ae(n,n)),n=Or(e,t,!0,!0),g=-1;else{var D=Wu(e,n,r.unit);r.extend?p=Ga(p,D.anchor,D.head,r.extend):p=D}r.addNew?g==-1?(g=b.length,st(u,qt(e,b.concat([p]),g),{scroll:!1,origin:"*mouse"})):b.length>1&&b[g].empty()&&r.unit=="char"&&!r.extend?(st(u,qt(e,b.slice(0,g).concat(b.slice(g+1)),0),{scroll:!1,origin:"*mouse"}),v=u.sel):Xa(u,g,p,Ln):(g=0,st(u,new _t([p],0),Ln),v=u.sel);var E=n;function B($){if(me(E,$)!=0)if(E=$,r.unit=="rectangle"){for(var ne=[],se=e.options.tabSize,le=Ye(ae(u,n.line).text,n.ch,se),we=Ye(ae(u,$.line).text,$.ch,se),Le=Math.min(le,we),nt=Math.max(le,we),Pe=Math.min(n.line,$.line),Et=Math.min(e.lastLine(),Math.max(n.line,$.line));Pe<=Et;Pe++){var wt=ae(u,Pe).text,Xe=Kt(wt,Le,se);Le==nt?ne.push(new Ae(Y(Pe,Xe),Y(Pe,Xe))):wt.length>Xe&&ne.push(new Ae(Y(Pe,Xe),Y(Pe,Kt(wt,nt,se))))}ne.length||ne.push(new Ae(n,n)),st(u,qt(e,v.ranges.slice(0,g).concat(ne),g),{origin:"*mouse",scroll:!1}),e.scrollIntoView($)}else{var Dt=p,ot=Wu(e,$,r.unit),Qe=Dt.anchor,Ke;me(ot.anchor,Qe)>0?(Ke=ot.head,Qe=Fi(Dt.from(),ot.anchor)):(Ke=ot.anchor,Qe=Ai(Dt.to(),ot.head));var Re=v.ranges.slice(0);Re[g]=Hh(e,new Ae(be(u,Qe),Ke)),st(u,qt(e,Re,g),Ln)}}var M=i.wrapper.getBoundingClientRect(),H=0;function W($){var ne=++H,se=Or(e,$,!0,r.unit=="rectangle");if(se)if(me(se,E)!=0){e.curOp.focus=he(ee(e)),B(se);var le=qi(i,u);(se.line>=le.to||se.lineM.bottom?20:0;we&&setTimeout(tt(e,function(){H==ne&&(i.scroller.scrollTop+=we,W($))}),50)}}function Z($){e.state.selectingText=!1,H=1/0,$&&(bt($),i.input.focus()),Mt(i.wrapper.ownerDocument,"mousemove",J),Mt(i.wrapper.ownerDocument,"mouseup",te),u.history.lastSelOrigin=null}var J=tt(e,function($){$.buttons===0||!Jl($)?Z($):W($)}),te=tt(e,Z);e.state.selectingText=te,ue(i.wrapper.ownerDocument,"mousemove",J),ue(i.wrapper.ownerDocument,"mouseup",te)}function Hh(e,t){var n=t.anchor,r=t.head,i=ae(e.doc,n.line);if(me(n,r)==0&&n.sticky==r.sticky)return t;var u=tr(i);if(!u)return t;var p=Bn(u,n.ch,n.sticky),g=u[p];if(g.from!=n.ch&&g.to!=n.ch)return t;var v=p+(g.from==n.ch==(g.level!=1)?0:1);if(v==0||v==u.length)return t;var b;if(r.line!=n.line)b=(r.line-n.line)*(e.doc.direction=="ltr"?1:-1)>0;else{var D=Bn(u,r.ch,r.sticky),E=D-p||(r.ch-n.ch)*(g.level==1?-1:1);D==v-1||D==v?b=E<0:b=E>0}var B=u[v+(b?-1:0)],M=b==(B.level==1),H=M?B.from:B.to,W=M?"after":"before";return n.ch==H&&n.sticky==W?t:new Ae(new Y(n.line,H,W),r)}function qu(e,t,n,r){var i,u;if(t.touches)i=t.touches[0].clientX,u=t.touches[0].clientY;else try{i=t.clientX,u=t.clientY}catch{return!1}if(i>=Math.floor(e.display.gutters.getBoundingClientRect().right))return!1;r&&bt(t);var p=e.display,g=p.lineDiv.getBoundingClientRect();if(u>g.bottom||!It(e,n))return Vo(t);u-=g.top-p.viewOffset;for(var v=0;v=i){var D=_r(e.doc,u),E=e.display.gutterSpecs[v];return je(e,n,e,D,E.className,t),Vo(t)}}}function $a(e,t){return qu(e,t,"gutterClick",!0)}function Uu(e,t){ir(e.display,t)||Rh(e,t)||Ve(e,t,"contextmenu")||de||e.display.input.onContextMenu(t)}function Rh(e,t){return It(e,"gutterContextMenu")?qu(e,t,"gutterContextMenu",!1):!1}function ju(e){e.display.wrapper.className=e.display.wrapper.className.replace(/\s*cm-s-\S+/g,"")+e.options.theme.replace(/(^|\s)\s*/g," cm-s-"),Wn(e)}var vn={toString:function(){return"CodeMirror.Init"}},Gu={},to={};function Wh(e){var t=e.optionHandlers;function n(r,i,u,p){e.defaults[r]=i,u&&(t[r]=p?function(g,v,b){b!=vn&&u(g,v,b)}:u)}e.defineOption=n,e.Init=vn,n("value","",function(r,i){return r.setValue(i)},!0),n("mode",null,function(r,i){r.doc.modeOption=i,qa(r)},!0),n("indentUnit",2,qa,!0),n("indentWithTabs",!1),n("smartIndent",!0),n("tabSize",4,function(r){Zn(r),Wn(r),yt(r)},!0),n("lineSeparator",null,function(r,i){if(r.doc.lineSep=i,!!i){var u=[],p=r.doc.first;r.doc.iter(function(v){for(var b=0;;){var D=v.text.indexOf(i,b);if(D==-1)break;b=D+i.length,u.push(Y(p,D))}p++});for(var g=u.length-1;g>=0;g--)dn(r.doc,i,u[g],Y(u[g].line,u[g].ch+i.length))}}),n("specialChars",/[\u0000-\u001f\u007f-\u009f\u00ad\u061c\u200b\u200e\u200f\u2028\u2029\u202d\u202e\u2066\u2067\u2069\ufeff\ufff9-\ufffc]/g,function(r,i,u){r.state.specialChars=new RegExp(i.source+(i.test(" ")?"":"| "),"g"),u!=vn&&r.refresh()}),n("specialCharPlaceholder",vd,function(r){return r.refresh()},!0),n("electricChars",!0),n("inputStyle",N?"contenteditable":"textarea",function(){throw new Error("inputStyle can not (yet) be changed in a running editor")},!0),n("spellcheck",!1,function(r,i){return r.getInputField().spellcheck=i},!0),n("autocorrect",!1,function(r,i){return r.getInputField().autocorrect=i},!0),n("autocapitalize",!1,function(r,i){return r.getInputField().autocapitalize=i},!0),n("rtlMoveVisually",!U),n("wholeLineUpdateBefore",!0),n("theme","default",function(r){ju(r),Yn(r)},!0),n("keyMap","default",function(r,i,u){var p=Vi(i),g=u!=vn&&Vi(u);g&&g.detach&&g.detach(r,p),p.attach&&p.attach(r,g||null)}),n("extraKeys",null),n("configureMouse",null),n("lineWrapping",!1,Uh,!0),n("gutters",[],function(r,i){r.display.gutterSpecs=Ra(i,r.options.lineNumbers),Yn(r)},!0),n("fixedGutter",!0,function(r,i){r.display.gutters.style.left=i?Fa(r.display)+"px":"0",r.refresh()},!0),n("coverGutterNextToScrollbar",!1,function(r){return sn(r)},!0),n("scrollbarStyle","native",function(r){Ks(r),sn(r),r.display.scrollbars.setScrollTop(r.doc.scrollTop),r.display.scrollbars.setScrollLeft(r.doc.scrollLeft)},!0),n("lineNumbers",!1,function(r,i){r.display.gutterSpecs=Ra(r.options.gutters,i),Yn(r)},!0),n("firstLineNumber",1,Yn,!0),n("lineNumberFormatter",function(r){return r},Yn,!0),n("showCursorWhenSelecting",!1,qn,!0),n("resetSelectionOnContextMenu",!0),n("lineWiseCopyCut",!0),n("pasteLinesPerSelection",!0),n("selectionsMayTouch",!1),n("readOnly",!1,function(r,i){i=="nocursor"&&(an(r),r.display.input.blur()),r.display.input.readOnlyChanged(i)}),n("screenReaderLabel",null,function(r,i){i=i===""?null:i,r.display.input.screenReaderLabelChanged(i)}),n("disableInput",!1,function(r,i){i||r.display.input.reset()},!0),n("dragDrop",!0,qh),n("allowDropFileTypes",null),n("cursorBlinkRate",530),n("cursorScrollMargin",0),n("cursorHeight",1,qn,!0),n("singleCursorHeightPerLine",!0,qn,!0),n("workTime",100),n("workDelay",100),n("flattenSpans",!0,Zn,!0),n("addModeClass",!1,Zn,!0),n("pollInterval",100),n("undoDepth",200,function(r,i){return r.doc.history.undoDepth=i}),n("historyEventDelay",1250),n("viewportMargin",10,function(r){return r.refresh()},!0),n("maxHighlightLength",1e4,Zn,!0),n("moveInputWithCursor",!0,function(r,i){i||r.display.input.resetPosition()}),n("tabindex",null,function(r,i){return r.display.input.getField().tabIndex=i||""}),n("autofocus",null),n("direction","ltr",function(r,i){return r.doc.setDirection(i)},!0),n("phrases",null)}function qh(e,t,n){var r=n&&n!=vn;if(!t!=!r){var i=e.display.dragFunctions,u=t?ue:Mt;u(e.display.scroller,"dragstart",i.start),u(e.display.scroller,"dragenter",i.enter),u(e.display.scroller,"dragover",i.over),u(e.display.scroller,"dragleave",i.leave),u(e.display.scroller,"drop",i.drop)}}function Uh(e){e.options.lineWrapping?(pe(e.display.wrapper,"CodeMirror-wrap"),e.display.sizer.style.minWidth="",e.display.sizerWidth=null):(oe(e.display.wrapper,"CodeMirror-wrap"),ba(e)),Ta(e),yt(e),Wn(e),setTimeout(function(){return sn(e)},100)}function Oe(e,t){var n=this;if(!(this instanceof Oe))return new Oe(e,t);this.options=t=t?Lt(t):{},Lt(Gu,t,!1);var r=t.value;typeof r=="string"?r=new xt(r,t.mode,null,t.lineSeparator,t.direction):t.mode&&(r.modeOption=t.mode),this.doc=r;var i=new Oe.inputStyles[t.inputStyle](this),u=this.display=new rh(e,r,i,t);u.wrapper.CodeMirror=this,ju(this),t.lineWrapping&&(this.display.wrapper.className+=" CodeMirror-wrap"),Ks(this),this.state={keyMaps:[],overlays:[],modeGen:0,overwrite:!1,delayingBlurEvent:!1,focused:!1,suppressEdits:!1,pasteIncoming:-1,cutIncoming:-1,selectingText:!1,draggingText:!1,highlight:new dt,keySeq:null,specialChars:null},t.autofocus&&!N&&u.input.focus(),c&&d<11&&setTimeout(function(){return n.display.input.reset(!0)},20),jh(this),wh(),Hr(this),this.curOp.forceUpdate=!0,nu(this,r),t.autofocus&&!N||this.hasFocus()?setTimeout(function(){n.hasFocus()&&!n.state.focused&&Ba(n)},20):an(this);for(var p in to)to.hasOwnProperty(p)&&to[p](this,t[p],vn);Qs(this),t.finishInit&&t.finishInit(this);for(var g=0;g20*20}ue(t.scroller,"touchstart",function(v){if(!Ve(e,v)&&!u(v)&&!$a(e,v)){t.input.ensurePolled(),clearTimeout(n);var b=+new Date;t.activeTouch={start:b,moved:!1,prev:b-r.end<=300?r:null},v.touches.length==1&&(t.activeTouch.left=v.touches[0].pageX,t.activeTouch.top=v.touches[0].pageY)}}),ue(t.scroller,"touchmove",function(){t.activeTouch&&(t.activeTouch.moved=!0)}),ue(t.scroller,"touchend",function(v){var b=t.activeTouch;if(b&&!ir(t,v)&&b.left!=null&&!b.moved&&new Date-b.start<300){var D=e.coordsChar(t.activeTouch,"page"),E;!b.prev||p(b,b.prev)?E=new Ae(D,D):!b.prev.prev||p(b,b.prev.prev)?E=e.findWordAt(D):E=new Ae(Y(D.line,0),be(e.doc,Y(D.line+1,0))),e.setSelection(E.anchor,E.head),e.focus(),bt(v)}i()}),ue(t.scroller,"touchcancel",i),ue(t.scroller,"scroll",function(){t.scroller.clientHeight&&(jn(e,t.scroller.scrollTop),Pr(e,t.scroller.scrollLeft,!0),je(e,"scroll",e))}),ue(t.scroller,"mousewheel",function(v){return Vs(e,v)}),ue(t.scroller,"DOMMouseScroll",function(v){return Vs(e,v)}),ue(t.wrapper,"scroll",function(){return t.wrapper.scrollTop=t.wrapper.scrollLeft=0}),t.dragFunctions={enter:function(v){Ve(e,v)||Nn(v)},over:function(v){Ve(e,v)||(xh(e,v),Nn(v))},start:function(v){return yh(e,v)},drop:tt(e,bh),leave:function(v){Ve(e,v)||Au(e)}};var g=t.input.getField();ue(g,"keyup",function(v){return zu.call(e,v)}),ue(g,"keydown",tt(e,Pu)),ue(g,"keypress",tt(e,Hu)),ue(g,"focus",function(v){return Ba(e,v)}),ue(g,"blur",function(v){return an(e,v)})}var Va=[];Oe.defineInitHook=function(e){return Va.push(e)};function si(e,t,n,r){var i=e.doc,u;n==null&&(n="add"),n=="smart"&&(i.mode.indent?u=In(e,t).state:n="prev");var p=e.options.tabSize,g=ae(i,t),v=Ye(g.text,null,p);g.stateAfter&&(g.stateAfter=null);var b=g.text.match(/^\s*/)[0],D;if(!r&&!/\S/.test(g.text))D=0,n="not";else if(n=="smart"&&(D=i.mode.indent(u,g.text.slice(b.length),g.text),D==Ze||D>150)){if(!r)return;n="prev"}n=="prev"?t>i.first?D=Ye(ae(i,t-1).text,null,p):D=0:n=="add"?D=v+e.options.indentUnit:n=="subtract"?D=v-e.options.indentUnit:typeof n=="number"&&(D=v+n),D=Math.max(0,D);var E="",B=0;if(e.options.indentWithTabs)for(var M=Math.floor(D/p);M;--M)B+=p,E+=" ";if(Bp,v=na(t),b=null;if(g&&r.ranges.length>1)if(Ut&&Ut.text.join(` +`)==t){if(r.ranges.length%Ut.text.length==0){b=[];for(var D=0;D=0;B--){var M=r.ranges[B],H=M.from(),W=M.to();M.empty()&&(n&&n>0?H=Y(H.line,H.ch-n):e.state.overwrite&&!g?W=Y(W.line,Math.min(ae(u,W.line).text.length,W.ch+Ce(v).length)):g&&Ut&&Ut.lineWise&&Ut.text.join(` +`)==v.join(` +`)&&(H=W=Y(H.line,0)));var Z={from:H,to:W,text:b?b[B%b.length]:v,origin:i||(g?"paste":e.state.cutIncoming>p?"cut":"+input")};cn(e.doc,Z),et(e,"inputRead",e,Z)}t&&!g&&Ku(e,t),ln(e),e.curOp.updateInput<2&&(e.curOp.updateInput=E),e.curOp.typing=!0,e.state.pasteIncoming=e.state.cutIncoming=-1}function Xu(e,t){var n=e.clipboardData&&e.clipboardData.getData("Text");if(n)return e.preventDefault(),!t.isReadOnly()&&!t.options.disableInput&&t.hasFocus()&&St(t,function(){return el(t,n,0,null,"paste")}),!0}function Ku(e,t){if(!(!e.options.electricChars||!e.options.smartIndent))for(var n=e.doc.sel,r=n.ranges.length-1;r>=0;r--){var i=n.ranges[r];if(!(i.head.ch>100||r&&n.ranges[r-1].head.line==i.head.line)){var u=e.getModeAt(i.head),p=!1;if(u.electricChars){for(var g=0;g-1){p=si(e,i.head.line,"smart");break}}else u.electricInput&&u.electricInput.test(ae(e.doc,i.head.line).text.slice(0,i.head.ch))&&(p=si(e,i.head.line,"smart"));p&&et(e,"electricInput",e,i.head.line)}}}function Yu(e){for(var t=[],n=[],r=0;ru&&(si(this,g.head.line,r,!0),u=g.head.line,p==this.doc.sel.primIndex&&ln(this));else{var v=g.from(),b=g.to(),D=Math.max(u,v.line);u=Math.min(this.lastLine(),b.line-(b.ch?0:1))+1;for(var E=D;E0&&Xa(this.doc,p,new Ae(v,B[p].to()),mt)}}}),getTokenAt:function(r,i){return os(this,r,i)},getLineTokens:function(r,i){return os(this,Y(r),i,!0)},getTokenTypeAt:function(r){r=be(this.doc,r);var i=rs(this,ae(this.doc,r.line)),u=0,p=(i.length-1)/2,g=r.ch,v;if(g==0)v=i[2];else for(;;){var b=u+p>>1;if((b?i[b*2-1]:0)>=g)p=b;else if(i[b*2+1]v&&(r=v,p=!0),g=ae(this.doc,r)}else g=r;return Pi(this,g,{top:0,left:0},i||"page",u||p).top+(p?this.doc.height-nr(g):0)},defaultTextHeight:function(){return nn(this.display)},defaultCharWidth:function(){return on(this.display)},getViewport:function(){return{from:this.display.viewFrom,to:this.display.viewTo}},addWidget:function(r,i,u,p,g){var v=this.display;r=Wt(this,be(this.doc,r));var b=r.bottom,D=r.left;if(i.style.position="absolute",i.setAttribute("cm-ignore-events","true"),this.display.input.setUneditable(i),v.sizer.appendChild(i),p=="over")b=r.top;else if(p=="above"||p=="near"){var E=Math.max(v.wrapper.clientHeight,this.doc.height),B=Math.max(v.sizer.clientWidth,v.lineSpace.clientWidth);(p=="above"||r.bottom+i.offsetHeight>E)&&r.top>i.offsetHeight?b=r.top-i.offsetHeight:r.bottom+i.offsetHeight<=E&&(b=r.bottom),D+i.offsetWidth>B&&(D=B-i.offsetWidth)}i.style.top=b+"px",i.style.left=i.style.right="",g=="right"?(D=v.sizer.clientWidth-i.offsetWidth,i.style.right="0px"):(g=="left"?D=0:g=="middle"&&(D=(v.sizer.clientWidth-i.offsetWidth)/2),i.style.left=D+"px"),u&&qd(this,{left:D,top:b,right:D+i.offsetWidth,bottom:b+i.offsetHeight})},triggerOnKeyDown:ht(Pu),triggerOnKeyPress:ht(Hu),triggerOnKeyUp:zu,triggerOnMouseDown:ht(Ru),execCommand:function(r){if(ii.hasOwnProperty(r))return ii[r].call(null,this)},triggerElectric:ht(function(r){Ku(this,r)}),findPosH:function(r,i,u,p){var g=1;i<0&&(g=-1,i=-i);for(var v=be(this.doc,r),b=0;b0&&D(u.charAt(p-1));)--p;for(;g.5||this.options.lineWrapping)&&Ta(this),je(this,"refresh",this)}),swapDoc:ht(function(r){var i=this.doc;return i.cm=null,this.state.selectingText&&this.state.selectingText(),nu(this,r),Wn(this),this.display.input.reset(),Un(this,r.scrollLeft,r.scrollTop),this.curOp.forceScroll=!0,et(this,"swapDoc",this,i),i}),phrase:function(r){var i=this.options.phrases;return i&&Object.prototype.hasOwnProperty.call(i,r)?i[r]:r},getInputField:function(){return this.display.input.getField()},getWrapperElement:function(){return this.display.wrapper},getScrollerElement:function(){return this.display.scroller},getGutterElement:function(){return this.display.gutters}},Jr(e),e.registerHelper=function(r,i,u){n.hasOwnProperty(r)||(n[r]=e[r]={_global:[]}),n[r][i]=u},e.registerGlobalHelper=function(r,i,u,p){e.registerHelper(r,i,p),n[r]._global.push({pred:u,val:p})}}function rl(e,t,n,r,i){var u=t,p=n,g=ae(e,t.line),v=i&&e.direction=="rtl"?-n:n;function b(){var te=t.line+v;return te=e.first+e.size?!1:(t=new Y(te,t.ch,t.sticky),g=ae(e,te))}function D(te){var $;if(r=="codepoint"){var ne=g.text.charCodeAt(t.ch+(n>0?0:-1));if(isNaN(ne))$=null;else{var se=n>0?ne>=55296&&ne<56320:ne>=56320&&ne<57343;$=new Y(t.line,Math.max(0,Math.min(g.text.length,t.ch+n*(se?2:1))),-n)}}else i?$=Eh(e.cm,g,t,n):$=Ya(g,t,n);if($==null)if(!te&&b())t=Za(i,e.cm,g,t.line,v);else return!1;else t=$;return!0}if(r=="char"||r=="codepoint")D();else if(r=="column")D(!0);else if(r=="word"||r=="group")for(var E=null,B=r=="group",M=e.cm&&e.cm.getHelper(t,"wordChars"),H=!0;!(n<0&&!D(!H));H=!1){var W=g.text.charAt(t.ch)||` +`,Z=Si(W,M)?"w":B&&W==` +`?"n":!B||/\s/.test(W)?null:"p";if(B&&!H&&!Z&&(Z="s"),E&&E!=Z){n<0&&(n=1,D(),t.sticky="after");break}if(Z&&(E=Z),n>0&&!D(!H))break}var J=Qi(e,t,u,p,!0);return fa(u,J)&&(J.hitSide=!0),J}function Qu(e,t,n,r){var i=e.doc,u=t.left,p;if(r=="page"){var g=Math.min(e.display.wrapper.clientHeight,ye(e).innerHeight||i(e).documentElement.clientHeight),v=Math.max(g-.5*nn(e.display),3);p=(n>0?t.bottom:t.top)+n*v}else r=="line"&&(p=n>0?t.bottom+3:t.top-3);for(var b;b=Sa(e,u,p),!!b.outside;){if(n<0?p<=0:p>=i.height){b.hitSide=!0;break}p+=n*5}return b}var Te=function(e){this.cm=e,this.lastAnchorNode=this.lastAnchorOffset=this.lastFocusNode=this.lastFocusOffset=null,this.polling=new dt,this.composing=null,this.gracePeriod=!1,this.readDOMTimeout=null};Te.prototype.init=function(e){var t=this,n=this,r=n.cm,i=n.div=e.lineDiv;i.contentEditable=!0,tl(i,r.options.spellcheck,r.options.autocorrect,r.options.autocapitalize);function u(g){for(var v=g.target;v;v=v.parentNode){if(v==i)return!0;if(/\bCodeMirror-(?:line)?widget\b/.test(v.className))break}return!1}ue(i,"paste",function(g){!u(g)||Ve(r,g)||Xu(g,r)||d<=11&&setTimeout(tt(r,function(){return t.updateFromDOM()}),20)}),ue(i,"compositionstart",function(g){t.composing={data:g.data,done:!1}}),ue(i,"compositionupdate",function(g){t.composing||(t.composing={data:g.data,done:!1})}),ue(i,"compositionend",function(g){t.composing&&(g.data!=t.composing.data&&t.readFromDOMSoon(),t.composing.done=!0)}),ue(i,"touchstart",function(){return n.forceCompositionEnd()}),ue(i,"input",function(){t.composing||t.readFromDOMSoon()});function p(g){if(!(!u(g)||Ve(r,g))){if(r.somethingSelected())ro({lineWise:!1,text:r.getSelections()}),g.type=="cut"&&r.replaceSelection("",null,"cut");else if(r.options.lineWiseCopyCut){var v=Yu(r);ro({lineWise:!0,text:v.text}),g.type=="cut"&&r.operation(function(){r.setSelections(v.ranges,0,mt),r.replaceSelection("",null,"cut")})}else return;if(g.clipboardData){g.clipboardData.clearData();var b=Ut.text.join(` +`);if(g.clipboardData.setData("Text",b),g.clipboardData.getData("Text")==b){g.preventDefault();return}}var D=Zu(),E=D.firstChild;tl(E),r.display.lineSpace.insertBefore(D,r.display.lineSpace.firstChild),E.value=Ut.text.join(` +`);var B=he(De(i));A(E),setTimeout(function(){r.display.lineSpace.removeChild(D),B.focus(),B==i&&n.showPrimarySelection()},50)}}ue(i,"copy",p),ue(i,"cut",p)},Te.prototype.screenReaderLabelChanged=function(e){e?this.div.setAttribute("aria-label",e):this.div.removeAttribute("aria-label")},Te.prototype.prepareSelection=function(){var e=Rs(this.cm,!1);return e.focus=he(De(this.div))==this.div,e},Te.prototype.showSelection=function(e,t){!e||!this.cm.display.view.length||((e.focus||t)&&this.showPrimarySelection(),this.showMultipleSelections(e))},Te.prototype.getSelection=function(){return this.cm.display.wrapper.ownerDocument.getSelection()},Te.prototype.showPrimarySelection=function(){var e=this.getSelection(),t=this.cm,n=t.doc.sel.primary(),r=n.from(),i=n.to();if(t.display.viewTo==t.display.viewFrom||r.line>=t.display.viewTo||i.line=t.display.viewFrom&&Ju(t,r)||{node:g[0].measure.map[2],offset:0},b=i.linee.firstLine()&&(r=Y(r.line-1,ae(e.doc,r.line-1).length)),i.ch==ae(e.doc,i.line).text.length&&i.linet.viewTo-1)return!1;var u,p,g;r.line==t.viewFrom||(u=Ir(e,r.line))==0?(p=Fe(t.view[0].line),g=t.view[0].node):(p=Fe(t.view[u].line),g=t.view[u-1].node.nextSibling);var v=Ir(e,i.line),b,D;if(v==t.view.length-1?(b=t.viewTo-1,D=t.lineDiv.lastChild):(b=Fe(t.view[v+1].line)-1,D=t.view[v+1].node.previousSibling),!g)return!1;for(var E=e.doc.splitLines(Kh(e,g,D,p,b)),B=Mr(e.doc,Y(p,0),Y(b,ae(e.doc,b).text.length));E.length>1&&B.length>1;)if(Ce(E)==Ce(B))E.pop(),B.pop(),b--;else if(E[0]==B[0])E.shift(),B.shift(),p++;else break;for(var M=0,H=0,W=E[0],Z=B[0],J=Math.min(W.length,Z.length);Mr.ch&&te.charCodeAt(te.length-H-1)==$.charCodeAt($.length-H-1);)M--,H++;E[E.length-1]=te.slice(0,te.length-H).replace(/^\u200b+/,""),E[0]=E[0].slice(M).replace(/\u200b+$/,"");var se=Y(p,M),le=Y(b,B.length?Ce(B).length-H:0);if(E.length>1||E[0]||me(se,le))return dn(e.doc,E,se,le,"+input"),!0},Te.prototype.ensurePolled=function(){this.forceCompositionEnd()},Te.prototype.reset=function(){this.forceCompositionEnd()},Te.prototype.forceCompositionEnd=function(){this.composing&&(clearTimeout(this.readDOMTimeout),this.composing=null,this.updateFromDOM(),this.div.blur(),this.div.focus())},Te.prototype.readFromDOMSoon=function(){var e=this;this.readDOMTimeout==null&&(this.readDOMTimeout=setTimeout(function(){if(e.readDOMTimeout=null,e.composing)if(e.composing.done)e.composing=null;else return;e.updateFromDOM()},80))},Te.prototype.updateFromDOM=function(){var e=this;(this.cm.isReadOnly()||!this.pollContent())&&St(this.cm,function(){return yt(e.cm)})},Te.prototype.setUneditable=function(e){e.contentEditable="false"},Te.prototype.onKeyPress=function(e){e.charCode==0||this.composing||(e.preventDefault(),this.cm.isReadOnly()||tt(this.cm,el)(this.cm,String.fromCharCode(e.charCode==null?e.keyCode:e.charCode),0))},Te.prototype.readOnlyChanged=function(e){this.div.contentEditable=String(e!="nocursor")},Te.prototype.onContextMenu=function(){},Te.prototype.resetPosition=function(){},Te.prototype.needsContentAttribute=!0;function Ju(e,t){var n=Da(e,t.line);if(!n||n.hidden)return null;var r=ae(e.doc,t.line),i=Es(n,r,t.line),u=tr(r,e.doc.direction),p="left";if(u){var g=Bn(u,t.ch);p=g%2?"right":"left"}var v=Ts(i.map,t.ch,p);return v.offset=v.collapse=="right"?v.end:v.start,v}function Xh(e){for(var t=e;t;t=t.parentNode)if(/CodeMirror-gutter-wrapper/.test(t.className))return!0;return!1}function mn(e,t){return t&&(e.bad=!0),e}function Kh(e,t,n,r,i){var u="",p=!1,g=e.doc.lineSeparator(),v=!1;function b(M){return function(H){return H.id==M}}function D(){p&&(u+=g,v&&(u+=g),p=v=!1)}function E(M){M&&(D(),u+=M)}function B(M){if(M.nodeType==1){var H=M.getAttribute("cm-text");if(H){E(H);return}var W=M.getAttribute("cm-marker"),Z;if(W){var J=e.findMarks(Y(r,0),Y(i+1,0),b(+W));J.length&&(Z=J[0].find(0))&&E(Mr(e.doc,Z.from,Z.to).join(g));return}if(M.getAttribute("contenteditable")=="false")return;var te=/^(pre|div|p|li|table|br)$/i.test(M.nodeName);if(!/^br$/i.test(M.nodeName)&&M.textContent.length==0)return;te&&D();for(var $=0;$=9&&t.hasSelection&&(t.hasSelection=null),n.poll()}),ue(i,"paste",function(p){Ve(r,p)||Xu(p,r)||(r.state.pasteIncoming=+new Date,n.fastPoll())});function u(p){if(!Ve(r,p)){if(r.somethingSelected())ro({lineWise:!1,text:r.getSelections()});else if(r.options.lineWiseCopyCut){var g=Yu(r);ro({lineWise:!0,text:g.text}),p.type=="cut"?r.setSelections(g.ranges,null,mt):(n.prevInput="",i.value=g.text.join(` +`),A(i))}else return;p.type=="cut"&&(r.state.cutIncoming=+new Date)}}ue(i,"cut",u),ue(i,"copy",u),ue(e.scroller,"paste",function(p){if(!(ir(e,p)||Ve(r,p))){if(!i.dispatchEvent){r.state.pasteIncoming=+new Date,n.focus();return}var g=new Event("paste");g.clipboardData=p.clipboardData,i.dispatchEvent(g)}}),ue(e.lineSpace,"selectstart",function(p){ir(e,p)||bt(p)}),ue(i,"compositionstart",function(){var p=r.getCursor("from");n.composing&&n.composing.range.clear(),n.composing={start:p,range:r.markText(p,r.getCursor("to"),{className:"CodeMirror-composing"})}}),ue(i,"compositionend",function(){n.composing&&(n.poll(),n.composing.range.clear(),n.composing=null)})},qe.prototype.createField=function(e){this.wrapper=Zu(),this.textarea=this.wrapper.firstChild;var t=this.cm.options;tl(this.textarea,t.spellcheck,t.autocorrect,t.autocapitalize)},qe.prototype.screenReaderLabelChanged=function(e){e?this.textarea.setAttribute("aria-label",e):this.textarea.removeAttribute("aria-label")},qe.prototype.prepareSelection=function(){var e=this.cm,t=e.display,n=e.doc,r=Rs(e);if(e.options.moveInputWithCursor){var i=Wt(e,n.sel.primary().head,"div"),u=t.wrapper.getBoundingClientRect(),p=t.lineDiv.getBoundingClientRect();r.teTop=Math.max(0,Math.min(t.wrapper.clientHeight-10,i.top+p.top-u.top)),r.teLeft=Math.max(0,Math.min(t.wrapper.clientWidth-10,i.left+p.left-u.left))}return r},qe.prototype.showSelection=function(e){var t=this.cm,n=t.display;G(n.cursorDiv,e.cursors),G(n.selectionDiv,e.selection),e.teTop!=null&&(this.wrapper.style.top=e.teTop+"px",this.wrapper.style.left=e.teLeft+"px")},qe.prototype.reset=function(e){if(!(this.contextMenuPending||this.composing&&e)){var t=this.cm;if(this.resetting=!0,t.somethingSelected()){this.prevInput="";var n=t.getSelection();this.textarea.value=n,t.state.focused&&A(this.textarea),c&&d>=9&&(this.hasSelection=n)}else e||(this.prevInput=this.textarea.value="",c&&d>=9&&(this.hasSelection=null));this.resetting=!1}},qe.prototype.getField=function(){return this.textarea},qe.prototype.supportsTouch=function(){return!1},qe.prototype.focus=function(){if(this.cm.options.readOnly!="nocursor"&&(!N||he(De(this.textarea))!=this.textarea))try{this.textarea.focus()}catch{}},qe.prototype.blur=function(){this.textarea.blur()},qe.prototype.resetPosition=function(){this.wrapper.style.top=this.wrapper.style.left=0},qe.prototype.receivedFocus=function(){this.slowPoll()},qe.prototype.slowPoll=function(){var e=this;this.pollingFast||this.polling.set(this.cm.options.pollInterval,function(){e.poll(),e.cm.state.focused&&e.slowPoll()})},qe.prototype.fastPoll=function(){var e=!1,t=this;t.pollingFast=!0;function n(){var r=t.poll();!r&&!e?(e=!0,t.polling.set(60,n)):(t.pollingFast=!1,t.slowPoll())}t.polling.set(20,n)},qe.prototype.poll=function(){var e=this,t=this.cm,n=this.textarea,r=this.prevInput;if(this.contextMenuPending||this.resetting||!t.state.focused||Kc(n)&&!r&&!this.composing||t.isReadOnly()||t.options.disableInput||t.state.keySeq)return!1;var i=n.value;if(i==r&&!t.somethingSelected())return!1;if(c&&d>=9&&this.hasSelection===i||I&&/[\uf700-\uf7ff]/.test(i))return t.display.input.reset(),!1;if(t.doc.sel==t.display.selForContextMenu){var u=i.charCodeAt(0);if(u==8203&&!r&&(r="\u200B"),u==8666)return this.reset(),this.cm.execCommand("undo")}for(var p=0,g=Math.min(r.length,i.length);p1e3||i.indexOf(` +`)>-1?n.value=e.prevInput="":e.prevInput=i,e.composing&&(e.composing.range.clear(),e.composing.range=t.markText(e.composing.start,t.getCursor("to"),{className:"CodeMirror-composing"}))}),!0},qe.prototype.ensurePolled=function(){this.pollingFast&&this.poll()&&(this.pollingFast=!1)},qe.prototype.onKeyPress=function(){c&&d>=9&&(this.hasSelection=null),this.fastPoll()},qe.prototype.onContextMenu=function(e){var t=this,n=t.cm,r=n.display,i=t.textarea;t.contextMenuPending&&t.contextMenuPending();var u=Or(n,e),p=r.scroller.scrollTop;if(!u||S)return;var g=n.options.resetSelectionOnContextMenu;g&&n.doc.sel.contains(u)==-1&&tt(n,st)(n.doc,yr(u),mt);var v=i.style.cssText,b=t.wrapper.style.cssText,D=t.wrapper.offsetParent.getBoundingClientRect();t.wrapper.style.cssText="position: static",i.style.cssText=`position: absolute; width: 30px; height: 30px; + top: `+(e.clientY-D.top-5)+"px; left: "+(e.clientX-D.left-5)+`px; z-index: 1000; background: `+(c?"rgba(255, 255, 255, .05)":"transparent")+`; - outline: none; border-width: 0; outline: none; overflow: hidden; opacity: .05; filter: alpha(opacity=5);`;var E;v&&(E=n.ownerDocument.defaultView.scrollY),r.input.focus(),v&&n.ownerDocument.defaultView.scrollTo(null,E),r.input.reset(),i.somethingSelected()||(n.value=t.prevInput=" "),t.contextMenuPending=M,r.selForContextMenu=i.doc.sel,clearTimeout(r.detectingSelectAll);function _(){if(n.selectionStart!=null){var R=i.somethingSelected(),Z="\u200B"+(R?n.value:"");n.value="\u21DA",n.value=Z,t.prevInput=R?"":"\u200B",n.selectionStart=1,n.selectionEnd=Z.length,r.selForContextMenu=i.doc.sel}}function M(){if(t.contextMenuPending==M&&(t.contextMenuPending=!1,t.wrapper.style.cssText=b,n.style.cssText=m,c&&d<9&&r.scrollbars.setScrollTop(r.scroller.scrollTop=p),n.selectionStart!=null)){(!c||c&&d<9)&&_();var R=0,Z=function(){r.selForContextMenu==i.doc.sel&&n.selectionStart==0&&n.selectionEnd>0&&t.prevInput=="\u200B"?tt(i,gu)(i):R++<10?r.detectingSelectAll=setTimeout(Z,500):(r.selForContextMenu=null,r.input.reset())};r.detectingSelectAll=setTimeout(Z,200)}}if(c&&d>=9&&_(),de){_i(e);var P=function(){Mt(window,"mouseup",P),setTimeout(M,20)};ue(window,"mouseup",P)}else setTimeout(M,50)},We.prototype.readOnlyChanged=function(e){e||this.reset(),this.textarea.disabled=e=="nocursor",this.textarea.readOnly=!!e},We.prototype.setUneditable=function(){},We.prototype.needsContentAttribute=!1;function Yh(e,t){if(t=t?Lt(t):{},t.value=e.value,!t.tabindex&&e.tabIndex&&(t.tabindex=e.tabIndex),!t.placeholder&&e.placeholder&&(t.placeholder=e.placeholder),t.autofocus==null){var i=he(Ce(e));t.autofocus=i==e||e.getAttribute("autofocus")!=null&&i==document.body}function r(){e.value=g.getValue()}var n;if(e.form&&(ue(e.form,"submit",r),!t.leaveSubmitMethodAlone)){var u=e.form;n=u.submit;try{var p=u.submit=function(){r(),u.submit=n,u.submit(),u.submit=p}}catch{}}t.finishInit=function(m){m.save=r,m.getTextArea=function(){return e},m.toTextArea=function(){m.toTextArea=isNaN,r(),e.parentNode.removeChild(m.getWrapperElement()),e.style.display="",e.form&&(Mt(e.form,"submit",r),!t.leaveSubmitMethodAlone&&typeof e.form.submit=="function"&&(e.form.submit=n))}},e.style.display="none";var g=Ne(function(m){return e.parentNode.insertBefore(m,e.nextSibling)},t);return g}function Zh(e){e.off=Mt,e.on=ue,e.wheelEventPixels=rh,e.Doc=xt,e.splitLines=ra,e.countColumn=Ye,e.findColumn=Kt,e.isWordChar=Zo,e.Pass=Ze,e.signal=je,e.Line=ei,e.changeEnd=xr,e.scrollbarModel=Gs,e.Pos=Y,e.cmpPos=ve,e.modes=na,e.mimeModes=Vr,e.resolveMode=Sn,e.getMode=oa,e.modeExtensions=$r,e.extendMode=Jc,e.copyState=Lr,e.startState=Jl,e.innerMode=aa,e.commands=nn,e.keyMap=ar,e.keyName=Mu,e.isModifierKey=Tu,e.lookupKey=hi,e.normalizeKeyMap=kh,e.StringStream=Ge,e.SharedTextMarker=en,e.TextMarker=Cr,e.LineWidget=$i,e.e_preventDefault=bt,e.e_stopPropagation=Zl,e.e_stop=_i,e.addClass=pe,e.contains=Q,e.rmClass=oe,e.keyNames=Dr}qh(Ne),jh(Ne);var Qh="iter insert remove copy getEditor constructor".split(" ");for(var io in xt.prototype)xt.prototype.hasOwnProperty(io)&&ze(Qh,io)<0&&(Ne.prototype[io]=function(e){return function(){return e.apply(this.doc,arguments)}}(xt.prototype[io]));return Jr(xt),Ne.inputStyles={textarea:We,contenteditable:Te},Ne.defineMode=function(e){!Ne.defaults.mode&&e!="null"&&(Ne.defaults.mode=e),Zc.apply(this,arguments)},Ne.defineMIME=Qc,Ne.defineMode("null",function(){return{token:function(e){return e.skipToEnd()}}}),Ne.defineMIME("text/plain","null"),Ne.defineExtension=function(e,t){Ne.prototype[e]=t},Ne.defineDocExtension=function(e,t){xt.prototype[e]=t},Ne.fromTextArea=Yh,Zh(Ne),Ne.version="5.65.21",Ne})});var ef=at((Vu,$u)=>{(function(o){typeof Vu=="object"&&typeof $u=="object"?o(At()):typeof define=="function"&&define.amd?define(["../../lib/codemirror"],o):o(CodeMirror)})(function(o){"use strict";var l=/^(\s*)(>[> ]*|[*+-] \[[x ]\]\s|[*+-]\s|(\d+)([.)]))(\s*)/,s=/^(\s*)(>[> ]*|[*+-] \[[x ]\]|[*+-]|(\d+)[.)])(\s*)$/,a=/[*+-]\s/;o.commands.newlineAndIndentContinueMarkdownList=function(h){if(h.getOption("disableInput"))return o.Pass;for(var c=h.listSelections(),d=[],v=0;v\s*$/.test(B),z=!/>\s*$/.test(B);(N||z)&&h.replaceRange("",{line:y.line,ch:0},{line:y.line,ch:y.ch+1}),d[v]=` -`}else{var O=L[1],I=L[5],U=!(a.test(L[2])||L[2].indexOf(">")>=0),j=U?parseInt(L[3],10)+1+L[4]:L[2].replace("x"," ");d[v]=` -`+O+j+I,U&&f(h,y)}}h.replaceSelections(d)};function f(h,c){var d=c.line,v=0,y=0,x=l.exec(h.getLine(d)),D=x[1];do{v+=1;var S=d+v,F=h.getLine(S),B=l.exec(F);if(B){var L=B[1],T=parseInt(x[3],10)+v-y,N=parseInt(B[3],10),z=N;if(D===L&&!isNaN(N))T===N&&(z=N+1),T>N&&(z=T+1),h.replaceRange(F.replace(l,L+z+B[4]+B[5]),{line:S,ch:0},{line:S,ch:F.length});else{if(D.length>L.length||D.length{var tf=At();tf.commands.tabAndIndentMarkdownList=function(o){var l=o.listSelections(),s=l[0].head,a=o.getStateAfter(s.line),f=a.list!==!1;if(f){o.execCommand("indentMore");return}if(o.options.indentWithTabs)o.execCommand("insertTab");else{var h=Array(o.options.tabSize+1).join(" ");o.replaceSelection(h)}};tf.commands.shiftTabAndUnindentMarkdownList=function(o){var l=o.listSelections(),s=l[0].head,a=o.getStateAfter(s.line),f=a.list!==!1;if(f){o.execCommand("indentLess");return}if(o.options.indentWithTabs)o.execCommand("insertTab");else{var h=Array(o.options.tabSize+1).join(" ");o.replaceSelection(h)}}});var af=at((nf,of)=>{(function(o){typeof nf=="object"&&typeof of=="object"?o(At()):typeof define=="function"&&define.amd?define(["../../lib/codemirror"],o):o(CodeMirror)})(function(o){"use strict";o.defineOption("fullScreen",!1,function(a,f,h){h==o.Init&&(h=!1),!h!=!f&&(f?l(a):s(a))});function l(a){var f=a.getWrapperElement();a.state.fullScreenRestore={scrollTop:window.pageYOffset,scrollLeft:window.pageXOffset,width:f.style.width,height:f.style.height},f.style.width="",f.style.height="auto",f.className+=" CodeMirror-fullscreen",document.documentElement.style.overflow="hidden",a.refresh()}function s(a){var f=a.getWrapperElement();f.className=f.className.replace(/\s*CodeMirror-fullscreen\b/,""),document.documentElement.style.overflow="";var h=a.state.fullScreenRestore;f.style.width=h.width,f.style.height=h.height,window.scrollTo(h.scrollLeft,h.scrollTop),a.refresh()}})});var al=at((lf,sf)=>{(function(o){typeof lf=="object"&&typeof sf=="object"?o(At()):typeof define=="function"&&define.amd?define(["../../lib/codemirror"],o):o(CodeMirror)})(function(o){"use strict";var l={autoSelfClosers:{area:!0,base:!0,br:!0,col:!0,command:!0,embed:!0,frame:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0,menuitem:!0},implicitlyClosed:{dd:!0,li:!0,optgroup:!0,option:!0,p:!0,rp:!0,rt:!0,tbody:!0,td:!0,tfoot:!0,th:!0,tr:!0},contextGrabbers:{dd:{dd:!0,dt:!0},dt:{dd:!0,dt:!0},li:{li:!0},option:{option:!0,optgroup:!0},optgroup:{optgroup:!0},p:{address:!0,article:!0,aside:!0,blockquote:!0,dir:!0,div:!0,dl:!0,fieldset:!0,footer:!0,form:!0,h1:!0,h2:!0,h3:!0,h4:!0,h5:!0,h6:!0,header:!0,hgroup:!0,hr:!0,menu:!0,nav:!0,ol:!0,p:!0,pre:!0,section:!0,table:!0,ul:!0},rp:{rp:!0,rt:!0},rt:{rp:!0,rt:!0},tbody:{tbody:!0,tfoot:!0},td:{td:!0,th:!0},tfoot:{tbody:!0},th:{td:!0,th:!0},thead:{tbody:!0,tfoot:!0},tr:{tr:!0}},doNotIndent:{pre:!0},allowUnquoted:!0,allowMissing:!0,caseFold:!0},s={autoSelfClosers:{},implicitlyClosed:{},contextGrabbers:{},doNotIndent:{},allowUnquoted:!1,allowMissing:!1,allowMissingTagName:!1,caseFold:!1};o.defineMode("xml",function(a,f){var h=a.indentUnit,c={},d=f.htmlMode?l:s;for(var v in d)c[v]=d[v];for(var v in f)c[v]=f[v];var y,x;function D(k,H){function q(pe){return H.tokenize=pe,pe(k,H)}var Q=k.next();if(Q=="<")return k.eat("!")?k.eat("[")?k.match("CDATA[")?q(B("atom","]]>")):null:k.match("--")?q(B("comment","-->")):k.match("DOCTYPE",!0,!0)?(k.eatWhile(/[\w\._\-]/),q(L(1))):null:k.eat("?")?(k.eatWhile(/[\w\._\-]/),H.tokenize=B("meta","?>"),"meta"):(y=k.eat("/")?"closeTag":"openTag",H.tokenize=S,"tag bracket");if(Q=="&"){var he;return k.eat("#")?k.eat("x")?he=k.eatWhile(/[a-fA-F\d]/)&&k.eat(";"):he=k.eatWhile(/[\d]/)&&k.eat(";"):he=k.eatWhile(/[\w\.\-:]/)&&k.eat(";"),he?"atom":"error"}else return k.eatWhile(/[^&<]/),null}D.isInText=!0;function S(k,H){var q=k.next();if(q==">"||q=="/"&&k.eat(">"))return H.tokenize=D,y=q==">"?"endTag":"selfcloseTag","tag bracket";if(q=="=")return y="equals",null;if(q=="<"){H.tokenize=D,H.state=I,H.tagName=H.tagStart=null;var Q=H.tokenize(k,H);return Q?Q+" tag error":"tag error"}else return/[\'\"]/.test(q)?(H.tokenize=F(q),H.stringStartCol=k.column(),H.tokenize(k,H)):(k.match(/^[^\s\u00a0=<>\"\']*[^\s\u00a0=<>\"\'\/]/),"word")}function F(k){var H=function(q,Q){for(;!q.eol();)if(q.next()==k){Q.tokenize=S;break}return"string"};return H.isInAttribute=!0,H}function B(k,H){return function(q,Q){for(;!q.eol();){if(q.match(H)){Q.tokenize=D;break}q.next()}return k}}function L(k){return function(H,q){for(var Q;(Q=H.next())!=null;){if(Q=="<")return q.tokenize=L(k+1),q.tokenize(H,q);if(Q==">")if(k==1){q.tokenize=D;break}else return q.tokenize=L(k-1),q.tokenize(H,q)}return"meta"}}function T(k){return k&&k.toLowerCase()}function N(k,H,q){this.prev=k.context,this.tagName=H||"",this.indent=k.indented,this.startOfLine=q,(c.doNotIndent.hasOwnProperty(H)||k.context&&k.context.noIndent)&&(this.noIndent=!0)}function z(k){k.context&&(k.context=k.context.prev)}function O(k,H){for(var q;;){if(!k.context||(q=k.context.tagName,!c.contextGrabbers.hasOwnProperty(T(q))||!c.contextGrabbers[T(q)].hasOwnProperty(T(H))))return;z(k)}}function I(k,H,q){return k=="openTag"?(q.tagStart=H.column(),U):k=="closeTag"?j:I}function U(k,H,q){return k=="word"?(q.tagName=H.current(),x="tag",W):c.allowMissingTagName&&k=="endTag"?(x="tag bracket",W(k,H,q)):(x="error",U)}function j(k,H,q){if(k=="word"){var Q=H.current();return q.context&&q.context.tagName!=Q&&c.implicitlyClosed.hasOwnProperty(T(q.context.tagName))&&z(q),q.context&&q.context.tagName==Q||c.matchClosing===!1?(x="tag",K):(x="tag error",de)}else return c.allowMissingTagName&&k=="endTag"?(x="tag bracket",K(k,H,q)):(x="error",de)}function K(k,H,q){return k!="endTag"?(x="error",K):(z(q),I)}function de(k,H,q){return x="error",K(k,H,q)}function W(k,H,q){if(k=="word")return x="attribute",oe;if(k=="endTag"||k=="selfcloseTag"){var Q=q.tagName,he=q.tagStart;return q.tagName=q.tagStart=null,k=="selfcloseTag"||c.autoSelfClosers.hasOwnProperty(T(Q))?O(q,Q):(O(q,Q),q.context=new N(q,Q,he==q.indented)),I}return x="error",W}function oe(k,H,q){return k=="equals"?X:(c.allowMissing||(x="error"),W(k,H,q))}function X(k,H,q){return k=="string"?G:k=="word"&&c.allowUnquoted?(x="string",W):(x="error",W(k,H,q))}function G(k,H,q){return k=="string"?G:W(k,H,q)}return{startState:function(k){var H={tokenize:D,state:I,indented:k||0,tagName:null,tagStart:null,context:null};return k!=null&&(H.baseIndent=k),H},token:function(k,H){if(!H.tagName&&k.sol()&&(H.indented=k.indentation()),k.eatSpace())return null;y=null;var q=H.tokenize(k,H);return(q||y)&&q!="comment"&&(x=null,H.state=H.state(y||q,k,H),x&&(q=x=="error"?q+" error":x)),q},indent:function(k,H,q){var Q=k.context;if(k.tokenize.isInAttribute)return k.tagStart==k.indented?k.stringStartCol+1:k.indented+h;if(Q&&Q.noIndent)return o.Pass;if(k.tokenize!=S&&k.tokenize!=D)return q?q.match(/^(\s*)/)[0].length:0;if(k.tagName)return c.multilineTagIndentPastTag!==!1?k.tagStart+k.tagName.length+2:k.tagStart+h*(c.multilineTagIndentFactor||1);if(c.alignCDATA&&/$/,blockCommentStart:"",configuration:c.htmlMode?"html":"xml",helperType:c.htmlMode?"html":"xml",skipAttribute:function(k){k.state==X&&(k.state=W)},xmlCurrentTag:function(k){return k.tagName?{name:k.tagName,close:k.type=="closeTag"}:null},xmlCurrentContext:function(k){for(var H=[],q=k.context;q;q=q.prev)H.push(q.tagName);return H.reverse()}}}),o.defineMIME("text/xml","xml"),o.defineMIME("application/xml","xml"),o.mimeModes.hasOwnProperty("text/html")||o.defineMIME("text/html",{name:"xml",htmlMode:!0})})});var cf=at((uf,ff)=>{(function(o){typeof uf=="object"&&typeof ff=="object"?o(At()):typeof define=="function"&&define.amd?define(["../lib/codemirror"],o):o(CodeMirror)})(function(o){"use strict";o.modeInfo=[{name:"APL",mime:"text/apl",mode:"apl",ext:["dyalog","apl"]},{name:"PGP",mimes:["application/pgp","application/pgp-encrypted","application/pgp-keys","application/pgp-signature"],mode:"asciiarmor",ext:["asc","pgp","sig"]},{name:"ASN.1",mime:"text/x-ttcn-asn",mode:"asn.1",ext:["asn","asn1"]},{name:"Asterisk",mime:"text/x-asterisk",mode:"asterisk",file:/^extensions\.conf$/i},{name:"Brainfuck",mime:"text/x-brainfuck",mode:"brainfuck",ext:["b","bf"]},{name:"C",mime:"text/x-csrc",mode:"clike",ext:["c","h","ino"]},{name:"C++",mime:"text/x-c++src",mode:"clike",ext:["cpp","c++","cc","cxx","hpp","h++","hh","hxx"],alias:["cpp"]},{name:"Cobol",mime:"text/x-cobol",mode:"cobol",ext:["cob","cpy","cbl"]},{name:"C#",mime:"text/x-csharp",mode:"clike",ext:["cs"],alias:["csharp","cs"]},{name:"Clojure",mime:"text/x-clojure",mode:"clojure",ext:["clj","cljc","cljx"]},{name:"ClojureScript",mime:"text/x-clojurescript",mode:"clojure",ext:["cljs"]},{name:"Closure Stylesheets (GSS)",mime:"text/x-gss",mode:"css",ext:["gss"]},{name:"CMake",mime:"text/x-cmake",mode:"cmake",ext:["cmake","cmake.in"],file:/^CMakeLists\.txt$/},{name:"CoffeeScript",mimes:["application/vnd.coffeescript","text/coffeescript","text/x-coffeescript"],mode:"coffeescript",ext:["coffee"],alias:["coffee","coffee-script"]},{name:"Common Lisp",mime:"text/x-common-lisp",mode:"commonlisp",ext:["cl","lisp","el"],alias:["lisp"]},{name:"Cypher",mime:"application/x-cypher-query",mode:"cypher",ext:["cyp","cypher"]},{name:"Cython",mime:"text/x-cython",mode:"python",ext:["pyx","pxd","pxi"]},{name:"Crystal",mime:"text/x-crystal",mode:"crystal",ext:["cr"]},{name:"CSS",mime:"text/css",mode:"css",ext:["css"]},{name:"CQL",mime:"text/x-cassandra",mode:"sql",ext:["cql"]},{name:"D",mime:"text/x-d",mode:"d",ext:["d"]},{name:"Dart",mimes:["application/dart","text/x-dart"],mode:"dart",ext:["dart"]},{name:"diff",mime:"text/x-diff",mode:"diff",ext:["diff","patch"]},{name:"Django",mime:"text/x-django",mode:"django"},{name:"Dockerfile",mime:"text/x-dockerfile",mode:"dockerfile",file:/^Dockerfile$/},{name:"DTD",mime:"application/xml-dtd",mode:"dtd",ext:["dtd"]},{name:"Dylan",mime:"text/x-dylan",mode:"dylan",ext:["dylan","dyl","intr"]},{name:"EBNF",mime:"text/x-ebnf",mode:"ebnf"},{name:"ECL",mime:"text/x-ecl",mode:"ecl",ext:["ecl"]},{name:"edn",mime:"application/edn",mode:"clojure",ext:["edn"]},{name:"Eiffel",mime:"text/x-eiffel",mode:"eiffel",ext:["e"]},{name:"Elm",mime:"text/x-elm",mode:"elm",ext:["elm"]},{name:"Embedded JavaScript",mime:"application/x-ejs",mode:"htmlembedded",ext:["ejs"]},{name:"Embedded Ruby",mime:"application/x-erb",mode:"htmlembedded",ext:["erb"]},{name:"Erlang",mime:"text/x-erlang",mode:"erlang",ext:["erl"]},{name:"Esper",mime:"text/x-esper",mode:"sql"},{name:"Factor",mime:"text/x-factor",mode:"factor",ext:["factor"]},{name:"FCL",mime:"text/x-fcl",mode:"fcl"},{name:"Forth",mime:"text/x-forth",mode:"forth",ext:["forth","fth","4th"]},{name:"Fortran",mime:"text/x-fortran",mode:"fortran",ext:["f","for","f77","f90","f95"]},{name:"F#",mime:"text/x-fsharp",mode:"mllike",ext:["fs"],alias:["fsharp"]},{name:"Gas",mime:"text/x-gas",mode:"gas",ext:["s"]},{name:"Gherkin",mime:"text/x-feature",mode:"gherkin",ext:["feature"]},{name:"GitHub Flavored Markdown",mime:"text/x-gfm",mode:"gfm",file:/^(readme|contributing|history)\.md$/i},{name:"Go",mime:"text/x-go",mode:"go",ext:["go"]},{name:"Groovy",mime:"text/x-groovy",mode:"groovy",ext:["groovy","gradle"],file:/^Jenkinsfile$/},{name:"HAML",mime:"text/x-haml",mode:"haml",ext:["haml"]},{name:"Haskell",mime:"text/x-haskell",mode:"haskell",ext:["hs"]},{name:"Haskell (Literate)",mime:"text/x-literate-haskell",mode:"haskell-literate",ext:["lhs"]},{name:"Haxe",mime:"text/x-haxe",mode:"haxe",ext:["hx"]},{name:"HXML",mime:"text/x-hxml",mode:"haxe",ext:["hxml"]},{name:"ASP.NET",mime:"application/x-aspx",mode:"htmlembedded",ext:["aspx"],alias:["asp","aspx"]},{name:"HTML",mime:"text/html",mode:"htmlmixed",ext:["html","htm","handlebars","hbs"],alias:["xhtml"]},{name:"HTTP",mime:"message/http",mode:"http"},{name:"IDL",mime:"text/x-idl",mode:"idl",ext:["pro"]},{name:"Pug",mime:"text/x-pug",mode:"pug",ext:["jade","pug"],alias:["jade"]},{name:"Java",mime:"text/x-java",mode:"clike",ext:["java"]},{name:"Java Server Pages",mime:"application/x-jsp",mode:"htmlembedded",ext:["jsp"],alias:["jsp"]},{name:"JavaScript",mimes:["text/javascript","text/ecmascript","application/javascript","application/x-javascript","application/ecmascript"],mode:"javascript",ext:["js"],alias:["ecmascript","js","node"]},{name:"JSON",mimes:["application/json","application/x-json"],mode:"javascript",ext:["json","map"],alias:["json5"]},{name:"JSON-LD",mime:"application/ld+json",mode:"javascript",ext:["jsonld"],alias:["jsonld"]},{name:"JSX",mime:"text/jsx",mode:"jsx",ext:["jsx"]},{name:"Jinja2",mime:"text/jinja2",mode:"jinja2",ext:["j2","jinja","jinja2"]},{name:"Julia",mime:"text/x-julia",mode:"julia",ext:["jl"],alias:["jl"]},{name:"Kotlin",mime:"text/x-kotlin",mode:"clike",ext:["kt"]},{name:"LESS",mime:"text/x-less",mode:"css",ext:["less"]},{name:"LiveScript",mime:"text/x-livescript",mode:"livescript",ext:["ls"],alias:["ls"]},{name:"Lua",mime:"text/x-lua",mode:"lua",ext:["lua"]},{name:"Markdown",mime:"text/x-markdown",mode:"markdown",ext:["markdown","md","mkd"]},{name:"mIRC",mime:"text/mirc",mode:"mirc"},{name:"MariaDB SQL",mime:"text/x-mariadb",mode:"sql"},{name:"Mathematica",mime:"text/x-mathematica",mode:"mathematica",ext:["m","nb","wl","wls"]},{name:"Modelica",mime:"text/x-modelica",mode:"modelica",ext:["mo"]},{name:"MUMPS",mime:"text/x-mumps",mode:"mumps",ext:["mps"]},{name:"MS SQL",mime:"text/x-mssql",mode:"sql"},{name:"mbox",mime:"application/mbox",mode:"mbox",ext:["mbox"]},{name:"MySQL",mime:"text/x-mysql",mode:"sql"},{name:"Nginx",mime:"text/x-nginx-conf",mode:"nginx",file:/nginx.*\.conf$/i},{name:"NSIS",mime:"text/x-nsis",mode:"nsis",ext:["nsh","nsi"]},{name:"NTriples",mimes:["application/n-triples","application/n-quads","text/n-triples"],mode:"ntriples",ext:["nt","nq"]},{name:"Objective-C",mime:"text/x-objectivec",mode:"clike",ext:["m"],alias:["objective-c","objc"]},{name:"Objective-C++",mime:"text/x-objectivec++",mode:"clike",ext:["mm"],alias:["objective-c++","objc++"]},{name:"OCaml",mime:"text/x-ocaml",mode:"mllike",ext:["ml","mli","mll","mly"]},{name:"Octave",mime:"text/x-octave",mode:"octave",ext:["m"]},{name:"Oz",mime:"text/x-oz",mode:"oz",ext:["oz"]},{name:"Pascal",mime:"text/x-pascal",mode:"pascal",ext:["p","pas"]},{name:"PEG.js",mime:"null",mode:"pegjs",ext:["jsonld"]},{name:"Perl",mime:"text/x-perl",mode:"perl",ext:["pl","pm"]},{name:"PHP",mimes:["text/x-php","application/x-httpd-php","application/x-httpd-php-open"],mode:"php",ext:["php","php3","php4","php5","php7","phtml"]},{name:"Pig",mime:"text/x-pig",mode:"pig",ext:["pig"]},{name:"Plain Text",mime:"text/plain",mode:"null",ext:["txt","text","conf","def","list","log"]},{name:"PLSQL",mime:"text/x-plsql",mode:"sql",ext:["pls"]},{name:"PostgreSQL",mime:"text/x-pgsql",mode:"sql"},{name:"PowerShell",mime:"application/x-powershell",mode:"powershell",ext:["ps1","psd1","psm1"]},{name:"Properties files",mime:"text/x-properties",mode:"properties",ext:["properties","ini","in"],alias:["ini","properties"]},{name:"ProtoBuf",mime:"text/x-protobuf",mode:"protobuf",ext:["proto"]},{name:"Python",mime:"text/x-python",mode:"python",ext:["BUILD","bzl","py","pyw"],file:/^(BUCK|BUILD)$/},{name:"Puppet",mime:"text/x-puppet",mode:"puppet",ext:["pp"]},{name:"Q",mime:"text/x-q",mode:"q",ext:["q"]},{name:"R",mime:"text/x-rsrc",mode:"r",ext:["r","R"],alias:["rscript"]},{name:"reStructuredText",mime:"text/x-rst",mode:"rst",ext:["rst"],alias:["rst"]},{name:"RPM Changes",mime:"text/x-rpm-changes",mode:"rpm"},{name:"RPM Spec",mime:"text/x-rpm-spec",mode:"rpm",ext:["spec"]},{name:"Ruby",mime:"text/x-ruby",mode:"ruby",ext:["rb"],alias:["jruby","macruby","rake","rb","rbx"]},{name:"Rust",mime:"text/x-rustsrc",mode:"rust",ext:["rs"]},{name:"SAS",mime:"text/x-sas",mode:"sas",ext:["sas"]},{name:"Sass",mime:"text/x-sass",mode:"sass",ext:["sass"]},{name:"Scala",mime:"text/x-scala",mode:"clike",ext:["scala"]},{name:"Scheme",mime:"text/x-scheme",mode:"scheme",ext:["scm","ss"]},{name:"SCSS",mime:"text/x-scss",mode:"css",ext:["scss"]},{name:"Shell",mimes:["text/x-sh","application/x-sh"],mode:"shell",ext:["sh","ksh","bash"],alias:["bash","sh","zsh"],file:/^PKGBUILD$/},{name:"Sieve",mime:"application/sieve",mode:"sieve",ext:["siv","sieve"]},{name:"Slim",mimes:["text/x-slim","application/x-slim"],mode:"slim",ext:["slim"]},{name:"Smalltalk",mime:"text/x-stsrc",mode:"smalltalk",ext:["st"]},{name:"Smarty",mime:"text/x-smarty",mode:"smarty",ext:["tpl"]},{name:"Solr",mime:"text/x-solr",mode:"solr"},{name:"SML",mime:"text/x-sml",mode:"mllike",ext:["sml","sig","fun","smackspec"]},{name:"Soy",mime:"text/x-soy",mode:"soy",ext:["soy"],alias:["closure template"]},{name:"SPARQL",mime:"application/sparql-query",mode:"sparql",ext:["rq","sparql"],alias:["sparul"]},{name:"Spreadsheet",mime:"text/x-spreadsheet",mode:"spreadsheet",alias:["excel","formula"]},{name:"SQL",mime:"text/x-sql",mode:"sql",ext:["sql"]},{name:"SQLite",mime:"text/x-sqlite",mode:"sql"},{name:"Squirrel",mime:"text/x-squirrel",mode:"clike",ext:["nut"]},{name:"Stylus",mime:"text/x-styl",mode:"stylus",ext:["styl"]},{name:"Swift",mime:"text/x-swift",mode:"swift",ext:["swift"]},{name:"sTeX",mime:"text/x-stex",mode:"stex"},{name:"LaTeX",mime:"text/x-latex",mode:"stex",ext:["text","ltx","tex"],alias:["tex"]},{name:"SystemVerilog",mime:"text/x-systemverilog",mode:"verilog",ext:["v","sv","svh"]},{name:"Tcl",mime:"text/x-tcl",mode:"tcl",ext:["tcl"]},{name:"Textile",mime:"text/x-textile",mode:"textile",ext:["textile"]},{name:"TiddlyWiki",mime:"text/x-tiddlywiki",mode:"tiddlywiki"},{name:"Tiki wiki",mime:"text/tiki",mode:"tiki"},{name:"TOML",mime:"text/x-toml",mode:"toml",ext:["toml"]},{name:"Tornado",mime:"text/x-tornado",mode:"tornado"},{name:"troff",mime:"text/troff",mode:"troff",ext:["1","2","3","4","5","6","7","8","9"]},{name:"TTCN",mime:"text/x-ttcn",mode:"ttcn",ext:["ttcn","ttcn3","ttcnpp"]},{name:"TTCN_CFG",mime:"text/x-ttcn-cfg",mode:"ttcn-cfg",ext:["cfg"]},{name:"Turtle",mime:"text/turtle",mode:"turtle",ext:["ttl"]},{name:"TypeScript",mime:"application/typescript",mode:"javascript",ext:["ts"],alias:["ts"]},{name:"TypeScript-JSX",mime:"text/typescript-jsx",mode:"jsx",ext:["tsx"],alias:["tsx"]},{name:"Twig",mime:"text/x-twig",mode:"twig"},{name:"Web IDL",mime:"text/x-webidl",mode:"webidl",ext:["webidl"]},{name:"VB.NET",mime:"text/x-vb",mode:"vb",ext:["vb"]},{name:"VBScript",mime:"text/vbscript",mode:"vbscript",ext:["vbs"]},{name:"Velocity",mime:"text/velocity",mode:"velocity",ext:["vtl"]},{name:"Verilog",mime:"text/x-verilog",mode:"verilog",ext:["v"]},{name:"VHDL",mime:"text/x-vhdl",mode:"vhdl",ext:["vhd","vhdl"]},{name:"Vue.js Component",mimes:["script/x-vue","text/x-vue"],mode:"vue",ext:["vue"]},{name:"XML",mimes:["application/xml","text/xml"],mode:"xml",ext:["xml","xsl","xsd","svg"],alias:["rss","wsdl","xsd"]},{name:"XQuery",mime:"application/xquery",mode:"xquery",ext:["xy","xquery"]},{name:"Yacas",mime:"text/x-yacas",mode:"yacas",ext:["ys"]},{name:"YAML",mimes:["text/x-yaml","text/yaml"],mode:"yaml",ext:["yaml","yml"],alias:["yml"]},{name:"Z80",mime:"text/x-z80",mode:"z80",ext:["z80"]},{name:"mscgen",mime:"text/x-mscgen",mode:"mscgen",ext:["mscgen","mscin","msc"]},{name:"xu",mime:"text/x-xu",mode:"mscgen",ext:["xu"]},{name:"msgenny",mime:"text/x-msgenny",mode:"mscgen",ext:["msgenny"]},{name:"WebAssembly",mime:"text/webassembly",mode:"wast",ext:["wat","wast"]}];for(var l=0;l-1&&a.substring(c+1,a.length);if(d)return o.findModeByExtension(d)},o.findModeByName=function(a){a=a.toLowerCase();for(var f=0;f{(function(o){typeof df=="object"&&typeof hf=="object"?o(At(),al(),cf()):typeof define=="function"&&define.amd?define(["../../lib/codemirror","../xml/xml","../meta"],o):o(CodeMirror)})(function(o){"use strict";o.defineMode("markdown",function(l,s){var a=o.getMode(l,"text/html"),f=a.name=="null";function h(A){if(o.findModeByName){var w=o.findModeByName(A);w&&(A=w.mime||w.mimes[0])}var ee=o.getMode(l,A);return ee.name=="null"?null:ee}s.highlightFormatting===void 0&&(s.highlightFormatting=!1),s.maxBlockquoteDepth===void 0&&(s.maxBlockquoteDepth=0),s.taskLists===void 0&&(s.taskLists=!1),s.strikethrough===void 0&&(s.strikethrough=!1),s.emoji===void 0&&(s.emoji=!1),s.fencedCodeBlockHighlighting===void 0&&(s.fencedCodeBlockHighlighting=!0),s.fencedCodeBlockDefaultMode===void 0&&(s.fencedCodeBlockDefaultMode="text/plain"),s.xml===void 0&&(s.xml=!0),s.tokenTypeOverrides===void 0&&(s.tokenTypeOverrides={});var c={header:"header",code:"comment",quote:"quote",list1:"variable-2",list2:"variable-3",list3:"keyword",hr:"hr",image:"image",imageAltText:"image-alt-text",imageMarker:"image-marker",formatting:"formatting",linkInline:"link",linkEmail:"link",linkText:"link",linkHref:"string",em:"em",strong:"strong",strikethrough:"strikethrough",emoji:"builtin"};for(var d in c)c.hasOwnProperty(d)&&s.tokenTypeOverrides[d]&&(c[d]=s.tokenTypeOverrides[d]);var v=/^([*\-_])(?:\s*\1){2,}\s*$/,y=/^(?:[*\-+]|^[0-9]+([.)]))\s+/,x=/^\[(x| )\](?=\s)/i,D=s.allowAtxHeaderWithoutSpace?/^(#+)/:/^(#+)(?: |$)/,S=/^ {0,3}(?:\={1,}|-{2,})\s*$/,F=/^[^#!\[\]*_\\<>` "'(~:]+/,B=/^(~~~+|```+)[ \t]*([\w\/+#-]*)[^\n`]*$/,L=/^\s*\[[^\]]+?\]:.*$/,T=/[!"#$%&'()*+,\-.\/:;<=>?@\[\\\]^_`{|}~\xA1\xA7\xAB\xB6\xB7\xBB\xBF\u037E\u0387\u055A-\u055F\u0589\u058A\u05BE\u05C0\u05C3\u05C6\u05F3\u05F4\u0609\u060A\u060C\u060D\u061B\u061E\u061F\u066A-\u066D\u06D4\u0700-\u070D\u07F7-\u07F9\u0830-\u083E\u085E\u0964\u0965\u0970\u0AF0\u0DF4\u0E4F\u0E5A\u0E5B\u0F04-\u0F12\u0F14\u0F3A-\u0F3D\u0F85\u0FD0-\u0FD4\u0FD9\u0FDA\u104A-\u104F\u10FB\u1360-\u1368\u1400\u166D\u166E\u169B\u169C\u16EB-\u16ED\u1735\u1736\u17D4-\u17D6\u17D8-\u17DA\u1800-\u180A\u1944\u1945\u1A1E\u1A1F\u1AA0-\u1AA6\u1AA8-\u1AAD\u1B5A-\u1B60\u1BFC-\u1BFF\u1C3B-\u1C3F\u1C7E\u1C7F\u1CC0-\u1CC7\u1CD3\u2010-\u2027\u2030-\u2043\u2045-\u2051\u2053-\u205E\u207D\u207E\u208D\u208E\u2308-\u230B\u2329\u232A\u2768-\u2775\u27C5\u27C6\u27E6-\u27EF\u2983-\u2998\u29D8-\u29DB\u29FC\u29FD\u2CF9-\u2CFC\u2CFE\u2CFF\u2D70\u2E00-\u2E2E\u2E30-\u2E42\u3001-\u3003\u3008-\u3011\u3014-\u301F\u3030\u303D\u30A0\u30FB\uA4FE\uA4FF\uA60D-\uA60F\uA673\uA67E\uA6F2-\uA6F7\uA874-\uA877\uA8CE\uA8CF\uA8F8-\uA8FA\uA8FC\uA92E\uA92F\uA95F\uA9C1-\uA9CD\uA9DE\uA9DF\uAA5C-\uAA5F\uAADE\uAADF\uAAF0\uAAF1\uABEB\uFD3E\uFD3F\uFE10-\uFE19\uFE30-\uFE52\uFE54-\uFE61\uFE63\uFE68\uFE6A\uFE6B\uFF01-\uFF03\uFF05-\uFF0A\uFF0C-\uFF0F\uFF1A\uFF1B\uFF1F\uFF20\uFF3B-\uFF3D\uFF3F\uFF5B\uFF5D\uFF5F-\uFF65]|\uD800[\uDD00-\uDD02\uDF9F\uDFD0]|\uD801\uDD6F|\uD802[\uDC57\uDD1F\uDD3F\uDE50-\uDE58\uDE7F\uDEF0-\uDEF6\uDF39-\uDF3F\uDF99-\uDF9C]|\uD804[\uDC47-\uDC4D\uDCBB\uDCBC\uDCBE-\uDCC1\uDD40-\uDD43\uDD74\uDD75\uDDC5-\uDDC9\uDDCD\uDDDB\uDDDD-\uDDDF\uDE38-\uDE3D\uDEA9]|\uD805[\uDCC6\uDDC1-\uDDD7\uDE41-\uDE43\uDF3C-\uDF3E]|\uD809[\uDC70-\uDC74]|\uD81A[\uDE6E\uDE6F\uDEF5\uDF37-\uDF3B\uDF44]|\uD82F\uDC9F|\uD836[\uDE87-\uDE8B]/,N=" ";function z(A,w,ee){return w.f=w.inline=ee,ee(A,w)}function O(A,w,ee){return w.f=w.block=ee,ee(A,w)}function I(A){return!A||!/\S/.test(A.string)}function U(A){if(A.linkTitle=!1,A.linkHref=!1,A.linkText=!1,A.em=!1,A.strong=!1,A.strikethrough=!1,A.quote=0,A.indentedCode=!1,A.f==K){var w=f;if(!w){var ee=o.innerMode(a,A.htmlState);w=ee.mode.name=="xml"&&ee.state.tagStart===null&&!ee.state.context&&ee.state.tokenize.isInText}w&&(A.f=X,A.block=j,A.htmlState=null)}return A.trailingSpace=0,A.trailingSpaceNewLine=!1,A.prevLine=A.thisLine,A.thisLine={stream:null},null}function j(A,w){var ee=A.column()===w.indentation,Ce=I(w.prevLine.stream),ye=w.indentedCode,lt=w.prevLine.hr,Lt=w.list!==!1,Ye=(w.listStack[w.listStack.length-1]||0)+3;w.indentedCode=!1;var dt=w.indentation;if(w.indentationDiff===null&&(w.indentationDiff=w.indentation,Lt)){for(w.list=null;dt=4&&(ye||w.prevLine.fencedCodeEnd||w.prevLine.header||Ce))return A.skipToEnd(),w.indentedCode=!0,c.code;if(A.eatSpace())return null;if(ee&&w.indentation<=Ye&&(Ze=A.match(D))&&Ze[1].length<=6)return w.quote=0,w.header=Ze[1].length,w.thisLine.header=!0,s.highlightFormatting&&(w.formatting="header"),w.f=w.inline,W(w);if(w.indentation<=Ye&&A.eat(">"))return w.quote=ee?1:w.quote+1,s.highlightFormatting&&(w.formatting="quote"),A.eatSpace(),W(w);if(!Pe&&!w.setext&&ee&&w.indentation<=Ye&&(Ze=A.match(y))){var vt=Ze[1]?"ol":"ul";return w.indentation=dt+A.current().length,w.list=!0,w.quote=0,w.listStack.push(w.indentation),w.em=!1,w.strong=!1,w.code=!1,w.strikethrough=!1,s.taskLists&&A.match(x,!1)&&(w.taskList=!0),w.f=w.inline,s.highlightFormatting&&(w.formatting=["list","list-"+vt]),W(w)}else{if(ee&&w.indentation<=Ye&&(Ze=A.match(B,!0)))return w.quote=0,w.fencedEndRE=new RegExp(Ze[1]+"+ *$"),w.localMode=s.fencedCodeBlockHighlighting&&h(Ze[2]||s.fencedCodeBlockDefaultMode),w.localMode&&(w.localState=o.startState(w.localMode)),w.f=w.block=de,s.highlightFormatting&&(w.formatting="code-block"),w.code=-1,W(w);if(w.setext||(!ze||!Lt)&&!w.quote&&w.list===!1&&!w.code&&!Pe&&!L.test(A.string)&&(Ze=A.lookAhead(1))&&(Ze=Ze.match(S)))return w.setext?(w.header=w.setext,w.setext=0,A.skipToEnd(),s.highlightFormatting&&(w.formatting="header")):(w.header=Ze[0].charAt(0)=="="?1:2,w.setext=w.header),w.thisLine.header=!0,w.f=w.inline,W(w);if(Pe)return A.skipToEnd(),w.hr=!0,w.thisLine.hr=!0,c.hr;if(A.peek()==="[")return z(A,w,Q)}return z(A,w,w.inline)}function K(A,w){var ee=a.token(A,w.htmlState);if(!f){var Ce=o.innerMode(a,w.htmlState);(Ce.mode.name=="xml"&&Ce.state.tagStart===null&&!Ce.state.context&&Ce.state.tokenize.isInText||w.md_inside&&A.current().indexOf(">")>-1)&&(w.f=X,w.block=j,w.htmlState=null)}return ee}function de(A,w){var ee=w.listStack[w.listStack.length-1]||0,Ce=w.indentation=A.quote?w.push(c.formatting+"-"+A.formatting[ee]+"-"+A.quote):w.push("error"))}if(A.taskOpen)return w.push("meta"),w.length?w.join(" "):null;if(A.taskClosed)return w.push("property"),w.length?w.join(" "):null;if(A.linkHref?w.push(c.linkHref,"url"):(A.strong&&w.push(c.strong),A.em&&w.push(c.em),A.strikethrough&&w.push(c.strikethrough),A.emoji&&w.push(c.emoji),A.linkText&&w.push(c.linkText),A.code&&w.push(c.code),A.image&&w.push(c.image),A.imageAltText&&w.push(c.imageAltText,"link"),A.imageMarker&&w.push(c.imageMarker)),A.header&&w.push(c.header,c.header+"-"+A.header),A.quote&&(w.push(c.quote),!s.maxBlockquoteDepth||s.maxBlockquoteDepth>=A.quote?w.push(c.quote+"-"+A.quote):w.push(c.quote+"-"+s.maxBlockquoteDepth)),A.list!==!1){var Ce=(A.listStack.length-1)%3;Ce?Ce===1?w.push(c.list2):w.push(c.list3):w.push(c.list1)}return A.trailingSpaceNewLine?w.push("trailing-space-new-line"):A.trailingSpace&&w.push("trailing-space-"+(A.trailingSpace%2?"a":"b")),w.length?w.join(" "):null}function oe(A,w){if(A.match(F,!0))return W(w)}function X(A,w){var ee=w.text(A,w);if(typeof ee<"u")return ee;if(w.list)return w.list=null,W(w);if(w.taskList){var Ce=A.match(x,!0)[1]===" ";return Ce?w.taskOpen=!0:w.taskClosed=!0,s.highlightFormatting&&(w.formatting="task"),w.taskList=!1,W(w)}if(w.taskOpen=!1,w.taskClosed=!1,w.header&&A.match(/^#+$/,!0))return s.highlightFormatting&&(w.formatting="header"),W(w);var ye=A.next();if(w.linkTitle){w.linkTitle=!1;var lt=ye;ye==="("&&(lt=")"),lt=(lt+"").replace(/([.?*+^\[\]\\(){}|-])/g,"\\$1");var Lt="^\\s*(?:[^"+lt+"\\\\]+|\\\\\\\\|\\\\.)"+lt;if(A.match(new RegExp(Lt),!0))return c.linkHref}if(ye==="`"){var Ye=w.formatting;s.highlightFormatting&&(w.formatting="code"),A.eatWhile("`");var dt=A.current().length;if(w.code==0&&(!w.quote||dt==1))return w.code=dt,W(w);if(dt==w.code){var ze=W(w);return w.code=0,ze}else return w.formatting=Ye,W(w)}else if(w.code)return W(w);if(ye==="\\"&&(A.next(),s.highlightFormatting)){var Pe=W(w),Ze=c.formatting+"-escape";return Pe?Pe+" "+Ze:Ze}if(ye==="!"&&A.match(/\[[^\]]*\] ?(?:\(|\[)/,!1))return w.imageMarker=!0,w.image=!0,s.highlightFormatting&&(w.formatting="image"),W(w);if(ye==="["&&w.imageMarker&&A.match(/[^\]]*\](\(.*?\)| ?\[.*?\])/,!1))return w.imageMarker=!1,w.imageAltText=!0,s.highlightFormatting&&(w.formatting="image"),W(w);if(ye==="]"&&w.imageAltText){s.highlightFormatting&&(w.formatting="image");var Pe=W(w);return w.imageAltText=!1,w.image=!1,w.inline=w.f=k,Pe}if(ye==="["&&!w.image)return w.linkText&&A.match(/^.*?\]/)||(w.linkText=!0,s.highlightFormatting&&(w.formatting="link")),W(w);if(ye==="]"&&w.linkText){s.highlightFormatting&&(w.formatting="link");var Pe=W(w);return w.linkText=!1,w.inline=w.f=A.match(/\(.*?\)| ?\[.*?\]/,!1)?k:X,Pe}if(ye==="<"&&A.match(/^(https?|ftps?):\/\/(?:[^\\>]|\\.)+>/,!1)){w.f=w.inline=G,s.highlightFormatting&&(w.formatting="link");var Pe=W(w);return Pe?Pe+=" ":Pe="",Pe+c.linkInline}if(ye==="<"&&A.match(/^[^> \\]+@(?:[^\\>]|\\.)+>/,!1)){w.f=w.inline=G,s.highlightFormatting&&(w.formatting="link");var Pe=W(w);return Pe?Pe+=" ":Pe="",Pe+c.linkEmail}if(s.xml&&ye==="<"&&A.match(/^(!--|\?|!\[CDATA\[|[a-z][a-z0-9-]*(?:\s+[a-z_:.\-]+(?:\s*=\s*[^>]+)?)*\s*(?:>|$))/i,!1)){var vt=A.string.indexOf(">",A.pos);if(vt!=-1){var Ti=A.string.substring(A.start,vt);/markdown\s*=\s*('|"){0,1}1('|"){0,1}/.test(Ti)&&(w.md_inside=!0)}return A.backUp(1),w.htmlState=o.startState(a),O(A,w,K)}if(s.xml&&ye==="<"&&A.match(/^\/\w*?>/))return w.md_inside=!1,"tag";if(ye==="*"||ye==="_"){for(var Xt=1,Kt=A.pos==1?" ":A.string.charAt(A.pos-2);Xt<3&&A.eat(ye);)Xt++;var Ht=A.peek()||" ",pr=!/\s/.test(Ht)&&(!T.test(Ht)||/\s/.test(Kt)||T.test(Kt)),De=!/\s/.test(Kt)&&(!T.test(Kt)||/\s/.test(Ht)||T.test(Ht)),Pt=null,gr=null;if(Xt%2&&(!w.em&&pr&&(ye==="*"||!De||T.test(Kt))?Pt=!0:w.em==ye&&De&&(ye==="*"||!pr||T.test(Ht))&&(Pt=!1)),Xt>1&&(!w.strong&&pr&&(ye==="*"||!De||T.test(Kt))?gr=!0:w.strong==ye&&De&&(ye==="*"||!pr||T.test(Ht))&&(gr=!1)),gr!=null||Pt!=null){s.highlightFormatting&&(w.formatting=Pt==null?"strong":gr==null?"em":"strong em"),Pt===!0&&(w.em=ye),gr===!0&&(w.strong=ye);var ze=W(w);return Pt===!1&&(w.em=!1),gr===!1&&(w.strong=!1),ze}}else if(ye===" "&&(A.eat("*")||A.eat("_"))){if(A.peek()===" ")return W(w);A.backUp(1)}if(s.strikethrough){if(ye==="~"&&A.eatWhile(ye)){if(w.strikethrough){s.highlightFormatting&&(w.formatting="strikethrough");var ze=W(w);return w.strikethrough=!1,ze}else if(A.match(/^[^\s]/,!1))return w.strikethrough=!0,s.highlightFormatting&&(w.formatting="strikethrough"),W(w)}else if(ye===" "&&A.match("~~",!0)){if(A.peek()===" ")return W(w);A.backUp(2)}}if(s.emoji&&ye===":"&&A.match(/^(?:[a-z_\d+][a-z_\d+-]*|\-[a-z_\d+][a-z_\d+-]*):/)){w.emoji=!0,s.highlightFormatting&&(w.formatting="emoji");var Dn=W(w);return w.emoji=!1,Dn}return ye===" "&&(A.match(/^ +$/,!1)?w.trailingSpace++:w.trailingSpace&&(w.trailingSpaceNewLine=!0)),W(w)}function G(A,w){var ee=A.next();if(ee===">"){w.f=w.inline=X,s.highlightFormatting&&(w.formatting="link");var Ce=W(w);return Ce?Ce+=" ":Ce="",Ce+c.linkInline}return A.match(/^[^>]+/,!0),c.linkInline}function k(A,w){if(A.eatSpace())return null;var ee=A.next();return ee==="("||ee==="["?(w.f=w.inline=q(ee==="("?")":"]"),s.highlightFormatting&&(w.formatting="link-string"),w.linkHref=!0,W(w)):"error"}var H={")":/^(?:[^\\\(\)]|\\.|\((?:[^\\\(\)]|\\.)*\))*?(?=\))/,"]":/^(?:[^\\\[\]]|\\.|\[(?:[^\\\[\]]|\\.)*\])*?(?=\])/};function q(A){return function(w,ee){var Ce=w.next();if(Ce===A){ee.f=ee.inline=X,s.highlightFormatting&&(ee.formatting="link-string");var ye=W(ee);return ee.linkHref=!1,ye}return w.match(H[A]),ee.linkHref=!0,W(ee)}}function Q(A,w){return A.match(/^([^\]\\]|\\.)*\]:/,!1)?(w.f=he,A.next(),s.highlightFormatting&&(w.formatting="link"),w.linkText=!0,W(w)):z(A,w,X)}function he(A,w){if(A.match("]:",!0)){w.f=w.inline=pe,s.highlightFormatting&&(w.formatting="link");var ee=W(w);return w.linkText=!1,ee}return A.match(/^([^\]\\]|\\.)+/,!0),c.linkText}function pe(A,w){return A.eatSpace()?null:(A.match(/^[^\s]+/,!0),A.peek()===void 0?w.linkTitle=!0:A.match(/^(?:\s+(?:"(?:[^"\\]|\\.)+"|'(?:[^'\\]|\\.)+'|\((?:[^)\\]|\\.)+\)))?/,!0),w.f=w.inline=X,c.linkHref+" url")}var Ee={startState:function(){return{f:j,prevLine:{stream:null},thisLine:{stream:null},block:j,htmlState:null,indentation:0,inline:X,text:oe,formatting:!1,linkText:!1,linkHref:!1,linkTitle:!1,code:0,em:!1,strong:!1,header:0,setext:0,hr:!1,taskList:!1,list:!1,listStack:[],quote:0,trailingSpace:0,trailingSpaceNewLine:!1,strikethrough:!1,emoji:!1,fencedEndRE:null}},copyState:function(A){return{f:A.f,prevLine:A.prevLine,thisLine:A.thisLine,block:A.block,htmlState:A.htmlState&&o.copyState(a,A.htmlState),indentation:A.indentation,localMode:A.localMode,localState:A.localMode?o.copyState(A.localMode,A.localState):null,inline:A.inline,text:A.text,formatting:!1,linkText:A.linkText,linkTitle:A.linkTitle,linkHref:A.linkHref,code:A.code,em:A.em,strong:A.strong,strikethrough:A.strikethrough,emoji:A.emoji,header:A.header,setext:A.setext,hr:A.hr,taskList:A.taskList,list:A.list,listStack:A.listStack.slice(0),quote:A.quote,indentedCode:A.indentedCode,trailingSpace:A.trailingSpace,trailingSpaceNewLine:A.trailingSpaceNewLine,md_inside:A.md_inside,fencedEndRE:A.fencedEndRE}},token:function(A,w){if(w.formatting=!1,A!=w.thisLine.stream){if(w.header=0,w.hr=!1,A.match(/^\s*$/,!0))return U(w),null;if(w.prevLine=w.thisLine,w.thisLine={stream:A},w.taskList=!1,w.trailingSpace=0,w.trailingSpaceNewLine=!1,!w.localState&&(w.f=w.block,w.f!=K)){var ee=A.match(/^\s*/,!0)[0].replace(/\t/g,N).length;if(w.indentation=ee,w.indentationDiff=null,ee>0)return null}}return w.f(A,w)},innerMode:function(A){return A.block==K?{state:A.htmlState,mode:a}:A.localState?{state:A.localState,mode:A.localMode}:{state:A,mode:Ee}},indent:function(A,w,ee){return A.block==K&&a.indent?a.indent(A.htmlState,w,ee):A.localState&&A.localMode.indent?A.localMode.indent(A.localState,w,ee):o.Pass},blankLine:U,getType:W,blockCommentStart:"",closeBrackets:"()[]{}''\"\"``",fold:"markdown"};return Ee},"xml"),o.defineMIME("text/markdown","markdown"),o.defineMIME("text/x-markdown","markdown")})});var sl=at((pf,gf)=>{(function(o){typeof pf=="object"&&typeof gf=="object"?o(At()):typeof define=="function"&&define.amd?define(["../../lib/codemirror"],o):o(CodeMirror)})(function(o){"use strict";o.overlayMode=function(l,s,a){return{startState:function(){return{base:o.startState(l),overlay:o.startState(s),basePos:0,baseCur:null,overlayPos:0,overlayCur:null,streamSeen:null}},copyState:function(f){return{base:o.copyState(l,f.base),overlay:o.copyState(s,f.overlay),basePos:f.basePos,baseCur:null,overlayPos:f.overlayPos,overlayCur:null}},token:function(f,h){return(f!=h.streamSeen||Math.min(h.basePos,h.overlayPos){(function(o){typeof mf=="object"&&typeof vf=="object"?o(At()):typeof define=="function"&&define.amd?define(["../../lib/codemirror"],o):o(CodeMirror)})(function(o){o.defineOption("placeholder","",function(d,v,y){var x=y&&y!=o.Init;if(v&&!x)d.on("blur",f),d.on("change",h),d.on("swapDoc",h),o.on(d.getInputField(),"compositionupdate",d.state.placeholderCompose=function(){a(d)}),h(d);else if(!v&&x){d.off("blur",f),d.off("change",h),d.off("swapDoc",h),o.off(d.getInputField(),"compositionupdate",d.state.placeholderCompose),l(d);var D=d.getWrapperElement();D.className=D.className.replace(" CodeMirror-empty","")}v&&!d.hasFocus()&&f(d)});function l(d){d.state.placeholder&&(d.state.placeholder.parentNode.removeChild(d.state.placeholder),d.state.placeholder=null)}function s(d){l(d);var v=d.state.placeholder=document.createElement("pre");v.style.cssText="height: 0; overflow: visible",v.style.direction=d.getOption("direction"),v.className="CodeMirror-placeholder CodeMirror-line-like";var y=d.getOption("placeholder");typeof y=="string"&&(y=document.createTextNode(y)),v.appendChild(y),d.display.lineSpace.insertBefore(v,d.display.lineSpace.firstChild)}function a(d){setTimeout(function(){var v=!1;if(d.lineCount()==1){var y=d.getInputField();v=y.nodeName=="TEXTAREA"?!d.getLine(0).length:!/[^\u200b]/.test(y.querySelector(".CodeMirror-line").textContent)}v?s(d):l(d)},20)}function f(d){c(d)&&s(d)}function h(d){var v=d.getWrapperElement(),y=c(d);v.className=v.className.replace(" CodeMirror-empty","")+(y?" CodeMirror-empty":""),y?s(d):l(d)}function c(d){return d.lineCount()===1&&d.getLine(0)===""}})});var wf=at((yf,xf)=>{(function(o){typeof yf=="object"&&typeof xf=="object"?o(At()):typeof define=="function"&&define.amd?define(["../../lib/codemirror"],o):o(CodeMirror)})(function(o){"use strict";o.defineOption("autoRefresh",!1,function(a,f){a.state.autoRefresh&&(s(a,a.state.autoRefresh),a.state.autoRefresh=null),f&&a.display.wrapper.offsetHeight==0&&l(a,a.state.autoRefresh={delay:f.delay||250})});function l(a,f){function h(){a.display.wrapper.offsetHeight?(s(a,f),a.display.lastWrapHeight!=a.display.wrapper.clientHeight&&a.refresh()):f.timeout=setTimeout(h,f.delay)}f.timeout=setTimeout(h,f.delay),f.hurry=function(){clearTimeout(f.timeout),f.timeout=setTimeout(h,50)},o.on(window,"mouseup",f.hurry),o.on(window,"keyup",f.hurry)}function s(a,f){clearTimeout(f.timeout),o.off(window,"mouseup",f.hurry),o.off(window,"keyup",f.hurry)}})});var kf=at((Cf,Df)=>{(function(o){typeof Cf=="object"&&typeof Df=="object"?o(At()):typeof define=="function"&&define.amd?define(["../../lib/codemirror"],o):o(CodeMirror)})(function(o){"use strict";o.defineOption("styleSelectedText",!1,function(x,D,S){var F=S&&S!=o.Init;D&&!F?(x.state.markedSelection=[],x.state.markedSelectionStyle=typeof D=="string"?D:"CodeMirror-selectedtext",v(x),x.on("cursorActivity",l),x.on("change",s)):!D&&F&&(x.off("cursorActivity",l),x.off("change",s),d(x),x.state.markedSelection=x.state.markedSelectionStyle=null)});function l(x){x.state.markedSelection&&x.operation(function(){y(x)})}function s(x){x.state.markedSelection&&x.state.markedSelection.length&&x.operation(function(){d(x)})}var a=8,f=o.Pos,h=o.cmpPos;function c(x,D,S,F){if(h(D,S)!=0)for(var B=x.state.markedSelection,L=x.state.markedSelectionStyle,T=D.line;;){var N=T==D.line?D:f(T,0),z=T+a,O=z>=S.line,I=O?S:f(z,0),U=x.markText(N,I,{className:L});if(F==null?B.push(U):B.splice(F++,0,U),O)break;T=z}}function d(x){for(var D=x.state.markedSelection,S=0;S1)return v(x);var D=x.getCursor("start"),S=x.getCursor("end"),F=x.state.markedSelection;if(!F.length)return c(x,D,S);var B=F[0].find(),L=F[F.length-1].find();if(!B||!L||S.line-D.line<=a||h(D,L.to)>=0||h(S,B.from)<=0)return v(x);for(;h(D,B.from)>0;)F.shift().clear(),B=F[0].find();for(h(D,B.from)<0&&(B.to.line-D.line0&&(S.line-L.from.line{(function(o){typeof Sf=="object"&&typeof Ef=="object"?o(At()):typeof define=="function"&&define.amd?define(["../../lib/codemirror"],o):o(CodeMirror)})(function(o){"use strict";var l=o.Pos;function s(T){var N=T.flags;return N??(T.ignoreCase?"i":"")+(T.global?"g":"")+(T.multiline?"m":"")}function a(T,N){for(var z=s(T),O=z,I=0;Ij);K++){var de=T.getLine(U++);O=O==null?de:O+` -`+de}I=I*2,N.lastIndex=z.ch;var W=N.exec(O);if(W){var oe=O.slice(0,W.index).split(` -`),X=W[0].split(` -`),G=z.line+oe.length-1,k=oe[oe.length-1].length;return{from:l(G,k),to:l(G+X.length-1,X.length==1?k+X[0].length:X[X.length-1].length),match:W}}}}function d(T,N,z){for(var O,I=0;I<=T.length;){N.lastIndex=I;var U=N.exec(T);if(!U)break;var j=U.index+U[0].length;if(j>T.length-z)break;(!O||j>O.index+O[0].length)&&(O=U),I=U.index+1}return O}function v(T,N,z){N=a(N,"g");for(var O=z.line,I=z.ch,U=T.firstLine();O>=U;O--,I=-1){var j=T.getLine(O),K=d(j,N,I<0?0:j.length-I);if(K)return{from:l(O,K.index),to:l(O,K.index+K[0].length),match:K}}}function y(T,N,z){if(!f(N))return v(T,N,z);N=a(N,"gm");for(var O,I=1,U=T.getLine(z.line).length-z.ch,j=z.line,K=T.firstLine();j>=K;){for(var de=0;de=K;de++){var W=T.getLine(j--);O=O==null?W:W+` -`+O}I*=2;var oe=d(O,N,U);if(oe){var X=O.slice(0,oe.index).split(` + outline: none; border-width: 0; outline: none; overflow: hidden; opacity: .05; filter: alpha(opacity=5);`;var E;m&&(E=i.ownerDocument.defaultView.scrollY),r.input.focus(),m&&i.ownerDocument.defaultView.scrollTo(null,E),r.input.reset(),n.somethingSelected()||(i.value=t.prevInput=" "),t.contextMenuPending=M,r.selForContextMenu=n.doc.sel,clearTimeout(r.detectingSelectAll);function B(){if(i.selectionStart!=null){var W=n.somethingSelected(),Z="\u200B"+(W?i.value:"");i.value="\u21DA",i.value=Z,t.prevInput=W?"":"\u200B",i.selectionStart=1,i.selectionEnd=Z.length,r.selForContextMenu=n.doc.sel}}function M(){if(t.contextMenuPending==M&&(t.contextMenuPending=!1,t.wrapper.style.cssText=b,i.style.cssText=v,c&&d<9&&r.scrollbars.setScrollTop(r.scroller.scrollTop=p),i.selectionStart!=null)){(!c||c&&d<9)&&B();var W=0,Z=function(){r.selForContextMenu==n.doc.sel&&i.selectionStart==0&&i.selectionEnd>0&&t.prevInput=="\u200B"?tt(n,vu)(n):W++<10?r.detectingSelectAll=setTimeout(Z,500):(r.selForContextMenu=null,r.input.reset())};r.detectingSelectAll=setTimeout(Z,200)}}if(c&&d>=9&&B(),de){Nn(e);var H=function(){Mt(window,"mouseup",H),setTimeout(M,20)};ue(window,"mouseup",H)}else setTimeout(M,50)},qe.prototype.readOnlyChanged=function(e){e||this.reset(),this.textarea.disabled=e=="nocursor",this.textarea.readOnly=!!e},qe.prototype.setUneditable=function(){},qe.prototype.needsContentAttribute=!1;function Zh(e,t){if(t=t?Lt(t):{},t.value=e.value,!t.tabindex&&e.tabIndex&&(t.tabindex=e.tabIndex),!t.placeholder&&e.placeholder&&(t.placeholder=e.placeholder),t.autofocus==null){var n=he(De(e));t.autofocus=n==e||e.getAttribute("autofocus")!=null&&n==document.body}function r(){e.value=g.getValue()}var i;if(e.form&&(ue(e.form,"submit",r),!t.leaveSubmitMethodAlone)){var u=e.form;i=u.submit;try{var p=u.submit=function(){r(),u.submit=i,u.submit(),u.submit=p}}catch{}}t.finishInit=function(v){v.save=r,v.getTextArea=function(){return e},v.toTextArea=function(){v.toTextArea=isNaN,r(),e.parentNode.removeChild(v.getWrapperElement()),e.style.display="",e.form&&(Mt(e.form,"submit",r),!t.leaveSubmitMethodAlone&&typeof e.form.submit=="function"&&(e.form.submit=i))}},e.style.display="none";var g=Oe(function(v){return e.parentNode.insertBefore(v,e.nextSibling)},t);return g}function Qh(e){e.off=Mt,e.on=ue,e.wheelEventPixels=nh,e.Doc=xt,e.splitLines=na,e.countColumn=Ye,e.findColumn=Kt,e.isWordChar=Qo,e.Pass=Ze,e.signal=je,e.Line=en,e.changeEnd=xr,e.scrollbarModel=Xs,e.Pos=Y,e.cmpPos=me,e.modes=oa,e.mimeModes=$r,e.resolveMode=Ei,e.getMode=aa,e.modeExtensions=Vr,e.extendMode=$c,e.copyState=Lr,e.startState=$l,e.innerMode=la,e.commands=ii,e.keyMap=ar,e.keyName=_u,e.isModifierKey=Lu,e.lookupKey=pn,e.normalizeKeyMap=Sh,e.StringStream=Ge,e.SharedTextMarker=ti,e.TextMarker=Dr,e.LineWidget=ei,e.e_preventDefault=bt,e.e_stopPropagation=Ql,e.e_stop=Nn,e.addClass=pe,e.contains=Q,e.rmClass=oe,e.keyNames=Cr}Wh(Oe),Gh(Oe);var Jh="iter insert remove copy getEditor constructor".split(" ");for(var io in xt.prototype)xt.prototype.hasOwnProperty(io)&&Ne(Jh,io)<0&&(Oe.prototype[io]=function(e){return function(){return e.apply(this.doc,arguments)}}(xt.prototype[io]));return Jr(xt),Oe.inputStyles={textarea:qe,contenteditable:Te},Oe.defineMode=function(e){!Oe.defaults.mode&&e!="null"&&(Oe.defaults.mode=e),Qc.apply(this,arguments)},Oe.defineMIME=Jc,Oe.defineMode("null",function(){return{token:function(e){return e.skipToEnd()}}}),Oe.defineMIME("text/plain","null"),Oe.defineExtension=function(e,t){Oe.prototype[e]=t},Oe.defineDocExtension=function(e,t){xt.prototype[e]=t},Oe.fromTextArea=Zh,Qh(Oe),Oe.version="5.65.21",Oe})});var tf=at((Vu,ef)=>{(function(o){typeof Vu=="object"&&typeof ef=="object"?o(At()):typeof define=="function"&&define.amd?define(["../../lib/codemirror"],o):o(CodeMirror)})(function(o){"use strict";var l=/^(\s*)(>[> ]*|[*+-] \[[x ]\]\s|[*+-]\s|(\d+)([.)]))(\s*)/,s=/^(\s*)(>[> ]*|[*+-] \[[x ]\]|[*+-]|(\d+)[.)])(\s*)$/,a=/[*+-]\s/;o.commands.newlineAndIndentContinueMarkdownList=function(h){if(h.getOption("disableInput"))return o.Pass;for(var c=h.listSelections(),d=[],m=0;m\s*$/.test(_),N=!/>\s*$/.test(_);(O||N)&&h.replaceRange("",{line:y.line,ch:0},{line:y.line,ch:y.ch+1}),d[m]=` +`}else{var I=L[1],P=L[5],U=!(a.test(L[2])||L[2].indexOf(">")>=0),j=U?parseInt(L[3],10)+1+L[4]:L[2].replace("x"," ");d[m]=` +`+I+j+P,U&&f(h,y)}}h.replaceSelections(d)};function f(h,c){var d=c.line,m=0,y=0,x=l.exec(h.getLine(d)),C=x[1];do{m+=1;var S=d+m,F=h.getLine(S),_=l.exec(F);if(_){var L=_[1],T=parseInt(x[3],10)+m-y,O=parseInt(_[3],10),N=O;if(C===L&&!isNaN(O))T===O&&(N=O+1),T>O&&(N=T+1),h.replaceRange(F.replace(l,L+N+_[4]+_[5]),{line:S,ch:0},{line:S,ch:F.length});else{if(C.length>L.length||C.length{var rf=At();rf.commands.tabAndIndentMarkdownList=function(o){var l=o.listSelections(),s=l[0].head,a=o.getStateAfter(s.line),f=a.list!==!1;if(f){o.execCommand("indentMore");return}if(o.options.indentWithTabs)o.execCommand("insertTab");else{var h=Array(o.options.tabSize+1).join(" ");o.replaceSelection(h)}};rf.commands.shiftTabAndUnindentMarkdownList=function(o){var l=o.listSelections(),s=l[0].head,a=o.getStateAfter(s.line),f=a.list!==!1;if(f){o.execCommand("indentLess");return}if(o.options.indentWithTabs)o.execCommand("insertTab");else{var h=Array(o.options.tabSize+1).join(" ");o.replaceSelection(h)}}});var lf=at((of,af)=>{(function(o){typeof of=="object"&&typeof af=="object"?o(At()):typeof define=="function"&&define.amd?define(["../../lib/codemirror"],o):o(CodeMirror)})(function(o){"use strict";o.defineOption("fullScreen",!1,function(a,f,h){h==o.Init&&(h=!1),!h!=!f&&(f?l(a):s(a))});function l(a){var f=a.getWrapperElement();a.state.fullScreenRestore={scrollTop:window.pageYOffset,scrollLeft:window.pageXOffset,width:f.style.width,height:f.style.height},f.style.width="",f.style.height="auto",f.className+=" CodeMirror-fullscreen",document.documentElement.style.overflow="hidden",a.refresh()}function s(a){var f=a.getWrapperElement();f.className=f.className.replace(/\s*CodeMirror-fullscreen\b/,""),document.documentElement.style.overflow="";var h=a.state.fullScreenRestore;f.style.width=h.width,f.style.height=h.height,window.scrollTo(h.scrollLeft,h.scrollTop),a.refresh()}})});var ll=at((sf,uf)=>{(function(o){typeof sf=="object"&&typeof uf=="object"?o(At()):typeof define=="function"&&define.amd?define(["../../lib/codemirror"],o):o(CodeMirror)})(function(o){"use strict";var l={autoSelfClosers:{area:!0,base:!0,br:!0,col:!0,command:!0,embed:!0,frame:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0,menuitem:!0},implicitlyClosed:{dd:!0,li:!0,optgroup:!0,option:!0,p:!0,rp:!0,rt:!0,tbody:!0,td:!0,tfoot:!0,th:!0,tr:!0},contextGrabbers:{dd:{dd:!0,dt:!0},dt:{dd:!0,dt:!0},li:{li:!0},option:{option:!0,optgroup:!0},optgroup:{optgroup:!0},p:{address:!0,article:!0,aside:!0,blockquote:!0,dir:!0,div:!0,dl:!0,fieldset:!0,footer:!0,form:!0,h1:!0,h2:!0,h3:!0,h4:!0,h5:!0,h6:!0,header:!0,hgroup:!0,hr:!0,menu:!0,nav:!0,ol:!0,p:!0,pre:!0,section:!0,table:!0,ul:!0},rp:{rp:!0,rt:!0},rt:{rp:!0,rt:!0},tbody:{tbody:!0,tfoot:!0},td:{td:!0,th:!0},tfoot:{tbody:!0},th:{td:!0,th:!0},thead:{tbody:!0,tfoot:!0},tr:{tr:!0}},doNotIndent:{pre:!0},allowUnquoted:!0,allowMissing:!0,caseFold:!0},s={autoSelfClosers:{},implicitlyClosed:{},contextGrabbers:{},doNotIndent:{},allowUnquoted:!1,allowMissing:!1,allowMissingTagName:!1,caseFold:!1};o.defineMode("xml",function(a,f){var h=a.indentUnit,c={},d=f.htmlMode?l:s;for(var m in d)c[m]=d[m];for(var m in f)c[m]=f[m];var y,x;function C(k,z){function R(pe){return z.tokenize=pe,pe(k,z)}var Q=k.next();if(Q=="<")return k.eat("!")?k.eat("[")?k.match("CDATA[")?R(_("atom","]]>")):null:k.match("--")?R(_("comment","-->")):k.match("DOCTYPE",!0,!0)?(k.eatWhile(/[\w\._\-]/),R(L(1))):null:k.eat("?")?(k.eatWhile(/[\w\._\-]/),z.tokenize=_("meta","?>"),"meta"):(y=k.eat("/")?"closeTag":"openTag",z.tokenize=S,"tag bracket");if(Q=="&"){var he;return k.eat("#")?k.eat("x")?he=k.eatWhile(/[a-fA-F\d]/)&&k.eat(";"):he=k.eatWhile(/[\d]/)&&k.eat(";"):he=k.eatWhile(/[\w\.\-:]/)&&k.eat(";"),he?"atom":"error"}else return k.eatWhile(/[^&<]/),null}C.isInText=!0;function S(k,z){var R=k.next();if(R==">"||R=="/"&&k.eat(">"))return z.tokenize=C,y=R==">"?"endTag":"selfcloseTag","tag bracket";if(R=="=")return y="equals",null;if(R=="<"){z.tokenize=C,z.state=P,z.tagName=z.tagStart=null;var Q=z.tokenize(k,z);return Q?Q+" tag error":"tag error"}else return/[\'\"]/.test(R)?(z.tokenize=F(R),z.stringStartCol=k.column(),z.tokenize(k,z)):(k.match(/^[^\s\u00a0=<>\"\']*[^\s\u00a0=<>\"\'\/]/),"word")}function F(k){var z=function(R,Q){for(;!R.eol();)if(R.next()==k){Q.tokenize=S;break}return"string"};return z.isInAttribute=!0,z}function _(k,z){return function(R,Q){for(;!R.eol();){if(R.match(z)){Q.tokenize=C;break}R.next()}return k}}function L(k){return function(z,R){for(var Q;(Q=z.next())!=null;){if(Q=="<")return R.tokenize=L(k+1),R.tokenize(z,R);if(Q==">")if(k==1){R.tokenize=C;break}else return R.tokenize=L(k-1),R.tokenize(z,R)}return"meta"}}function T(k){return k&&k.toLowerCase()}function O(k,z,R){this.prev=k.context,this.tagName=z||"",this.indent=k.indented,this.startOfLine=R,(c.doNotIndent.hasOwnProperty(z)||k.context&&k.context.noIndent)&&(this.noIndent=!0)}function N(k){k.context&&(k.context=k.context.prev)}function I(k,z){for(var R;;){if(!k.context||(R=k.context.tagName,!c.contextGrabbers.hasOwnProperty(T(R))||!c.contextGrabbers[T(R)].hasOwnProperty(T(z))))return;N(k)}}function P(k,z,R){return k=="openTag"?(R.tagStart=z.column(),U):k=="closeTag"?j:P}function U(k,z,R){return k=="word"?(R.tagName=z.current(),x="tag",q):c.allowMissingTagName&&k=="endTag"?(x="tag bracket",q(k,z,R)):(x="error",U)}function j(k,z,R){if(k=="word"){var Q=z.current();return R.context&&R.context.tagName!=Q&&c.implicitlyClosed.hasOwnProperty(T(R.context.tagName))&&N(R),R.context&&R.context.tagName==Q||c.matchClosing===!1?(x="tag",K):(x="tag error",de)}else return c.allowMissingTagName&&k=="endTag"?(x="tag bracket",K(k,z,R)):(x="error",de)}function K(k,z,R){return k!="endTag"?(x="error",K):(N(R),P)}function de(k,z,R){return x="error",K(k,z,R)}function q(k,z,R){if(k=="word")return x="attribute",oe;if(k=="endTag"||k=="selfcloseTag"){var Q=R.tagName,he=R.tagStart;return R.tagName=R.tagStart=null,k=="selfcloseTag"||c.autoSelfClosers.hasOwnProperty(T(Q))?I(R,Q):(I(R,Q),R.context=new O(R,Q,he==R.indented)),P}return x="error",q}function oe(k,z,R){return k=="equals"?X:(c.allowMissing||(x="error"),q(k,z,R))}function X(k,z,R){return k=="string"?G:k=="word"&&c.allowUnquoted?(x="string",q):(x="error",q(k,z,R))}function G(k,z,R){return k=="string"?G:q(k,z,R)}return{startState:function(k){var z={tokenize:C,state:P,indented:k||0,tagName:null,tagStart:null,context:null};return k!=null&&(z.baseIndent=k),z},token:function(k,z){if(!z.tagName&&k.sol()&&(z.indented=k.indentation()),k.eatSpace())return null;y=null;var R=z.tokenize(k,z);return(R||y)&&R!="comment"&&(x=null,z.state=z.state(y||R,k,z),x&&(R=x=="error"?R+" error":x)),R},indent:function(k,z,R){var Q=k.context;if(k.tokenize.isInAttribute)return k.tagStart==k.indented?k.stringStartCol+1:k.indented+h;if(Q&&Q.noIndent)return o.Pass;if(k.tokenize!=S&&k.tokenize!=C)return R?R.match(/^(\s*)/)[0].length:0;if(k.tagName)return c.multilineTagIndentPastTag!==!1?k.tagStart+k.tagName.length+2:k.tagStart+h*(c.multilineTagIndentFactor||1);if(c.alignCDATA&&/$/,blockCommentStart:"",configuration:c.htmlMode?"html":"xml",helperType:c.htmlMode?"html":"xml",skipAttribute:function(k){k.state==X&&(k.state=q)},xmlCurrentTag:function(k){return k.tagName?{name:k.tagName,close:k.type=="closeTag"}:null},xmlCurrentContext:function(k){for(var z=[],R=k.context;R;R=R.prev)z.push(R.tagName);return z.reverse()}}}),o.defineMIME("text/xml","xml"),o.defineMIME("application/xml","xml"),o.mimeModes.hasOwnProperty("text/html")||o.defineMIME("text/html",{name:"xml",htmlMode:!0})})});var df=at((ff,cf)=>{(function(o){typeof ff=="object"&&typeof cf=="object"?o(At()):typeof define=="function"&&define.amd?define(["../lib/codemirror"],o):o(CodeMirror)})(function(o){"use strict";o.modeInfo=[{name:"APL",mime:"text/apl",mode:"apl",ext:["dyalog","apl"]},{name:"PGP",mimes:["application/pgp","application/pgp-encrypted","application/pgp-keys","application/pgp-signature"],mode:"asciiarmor",ext:["asc","pgp","sig"]},{name:"ASN.1",mime:"text/x-ttcn-asn",mode:"asn.1",ext:["asn","asn1"]},{name:"Asterisk",mime:"text/x-asterisk",mode:"asterisk",file:/^extensions\.conf$/i},{name:"Brainfuck",mime:"text/x-brainfuck",mode:"brainfuck",ext:["b","bf"]},{name:"C",mime:"text/x-csrc",mode:"clike",ext:["c","h","ino"]},{name:"C++",mime:"text/x-c++src",mode:"clike",ext:["cpp","c++","cc","cxx","hpp","h++","hh","hxx"],alias:["cpp"]},{name:"Cobol",mime:"text/x-cobol",mode:"cobol",ext:["cob","cpy","cbl"]},{name:"C#",mime:"text/x-csharp",mode:"clike",ext:["cs"],alias:["csharp","cs"]},{name:"Clojure",mime:"text/x-clojure",mode:"clojure",ext:["clj","cljc","cljx"]},{name:"ClojureScript",mime:"text/x-clojurescript",mode:"clojure",ext:["cljs"]},{name:"Closure Stylesheets (GSS)",mime:"text/x-gss",mode:"css",ext:["gss"]},{name:"CMake",mime:"text/x-cmake",mode:"cmake",ext:["cmake","cmake.in"],file:/^CMakeLists\.txt$/},{name:"CoffeeScript",mimes:["application/vnd.coffeescript","text/coffeescript","text/x-coffeescript"],mode:"coffeescript",ext:["coffee"],alias:["coffee","coffee-script"]},{name:"Common Lisp",mime:"text/x-common-lisp",mode:"commonlisp",ext:["cl","lisp","el"],alias:["lisp"]},{name:"Cypher",mime:"application/x-cypher-query",mode:"cypher",ext:["cyp","cypher"]},{name:"Cython",mime:"text/x-cython",mode:"python",ext:["pyx","pxd","pxi"]},{name:"Crystal",mime:"text/x-crystal",mode:"crystal",ext:["cr"]},{name:"CSS",mime:"text/css",mode:"css",ext:["css"]},{name:"CQL",mime:"text/x-cassandra",mode:"sql",ext:["cql"]},{name:"D",mime:"text/x-d",mode:"d",ext:["d"]},{name:"Dart",mimes:["application/dart","text/x-dart"],mode:"dart",ext:["dart"]},{name:"diff",mime:"text/x-diff",mode:"diff",ext:["diff","patch"]},{name:"Django",mime:"text/x-django",mode:"django"},{name:"Dockerfile",mime:"text/x-dockerfile",mode:"dockerfile",file:/^Dockerfile$/},{name:"DTD",mime:"application/xml-dtd",mode:"dtd",ext:["dtd"]},{name:"Dylan",mime:"text/x-dylan",mode:"dylan",ext:["dylan","dyl","intr"]},{name:"EBNF",mime:"text/x-ebnf",mode:"ebnf"},{name:"ECL",mime:"text/x-ecl",mode:"ecl",ext:["ecl"]},{name:"edn",mime:"application/edn",mode:"clojure",ext:["edn"]},{name:"Eiffel",mime:"text/x-eiffel",mode:"eiffel",ext:["e"]},{name:"Elm",mime:"text/x-elm",mode:"elm",ext:["elm"]},{name:"Embedded JavaScript",mime:"application/x-ejs",mode:"htmlembedded",ext:["ejs"]},{name:"Embedded Ruby",mime:"application/x-erb",mode:"htmlembedded",ext:["erb"]},{name:"Erlang",mime:"text/x-erlang",mode:"erlang",ext:["erl"]},{name:"Esper",mime:"text/x-esper",mode:"sql"},{name:"Factor",mime:"text/x-factor",mode:"factor",ext:["factor"]},{name:"FCL",mime:"text/x-fcl",mode:"fcl"},{name:"Forth",mime:"text/x-forth",mode:"forth",ext:["forth","fth","4th"]},{name:"Fortran",mime:"text/x-fortran",mode:"fortran",ext:["f","for","f77","f90","f95"]},{name:"F#",mime:"text/x-fsharp",mode:"mllike",ext:["fs"],alias:["fsharp"]},{name:"Gas",mime:"text/x-gas",mode:"gas",ext:["s"]},{name:"Gherkin",mime:"text/x-feature",mode:"gherkin",ext:["feature"]},{name:"GitHub Flavored Markdown",mime:"text/x-gfm",mode:"gfm",file:/^(readme|contributing|history)\.md$/i},{name:"Go",mime:"text/x-go",mode:"go",ext:["go"]},{name:"Groovy",mime:"text/x-groovy",mode:"groovy",ext:["groovy","gradle"],file:/^Jenkinsfile$/},{name:"HAML",mime:"text/x-haml",mode:"haml",ext:["haml"]},{name:"Haskell",mime:"text/x-haskell",mode:"haskell",ext:["hs"]},{name:"Haskell (Literate)",mime:"text/x-literate-haskell",mode:"haskell-literate",ext:["lhs"]},{name:"Haxe",mime:"text/x-haxe",mode:"haxe",ext:["hx"]},{name:"HXML",mime:"text/x-hxml",mode:"haxe",ext:["hxml"]},{name:"ASP.NET",mime:"application/x-aspx",mode:"htmlembedded",ext:["aspx"],alias:["asp","aspx"]},{name:"HTML",mime:"text/html",mode:"htmlmixed",ext:["html","htm","handlebars","hbs"],alias:["xhtml"]},{name:"HTTP",mime:"message/http",mode:"http"},{name:"IDL",mime:"text/x-idl",mode:"idl",ext:["pro"]},{name:"Pug",mime:"text/x-pug",mode:"pug",ext:["jade","pug"],alias:["jade"]},{name:"Java",mime:"text/x-java",mode:"clike",ext:["java"]},{name:"Java Server Pages",mime:"application/x-jsp",mode:"htmlembedded",ext:["jsp"],alias:["jsp"]},{name:"JavaScript",mimes:["text/javascript","text/ecmascript","application/javascript","application/x-javascript","application/ecmascript"],mode:"javascript",ext:["js"],alias:["ecmascript","js","node"]},{name:"JSON",mimes:["application/json","application/x-json"],mode:"javascript",ext:["json","map"],alias:["json5"]},{name:"JSON-LD",mime:"application/ld+json",mode:"javascript",ext:["jsonld"],alias:["jsonld"]},{name:"JSX",mime:"text/jsx",mode:"jsx",ext:["jsx"]},{name:"Jinja2",mime:"text/jinja2",mode:"jinja2",ext:["j2","jinja","jinja2"]},{name:"Julia",mime:"text/x-julia",mode:"julia",ext:["jl"],alias:["jl"]},{name:"Kotlin",mime:"text/x-kotlin",mode:"clike",ext:["kt"]},{name:"LESS",mime:"text/x-less",mode:"css",ext:["less"]},{name:"LiveScript",mime:"text/x-livescript",mode:"livescript",ext:["ls"],alias:["ls"]},{name:"Lua",mime:"text/x-lua",mode:"lua",ext:["lua"]},{name:"Markdown",mime:"text/x-markdown",mode:"markdown",ext:["markdown","md","mkd"]},{name:"mIRC",mime:"text/mirc",mode:"mirc"},{name:"MariaDB SQL",mime:"text/x-mariadb",mode:"sql"},{name:"Mathematica",mime:"text/x-mathematica",mode:"mathematica",ext:["m","nb","wl","wls"]},{name:"Modelica",mime:"text/x-modelica",mode:"modelica",ext:["mo"]},{name:"MUMPS",mime:"text/x-mumps",mode:"mumps",ext:["mps"]},{name:"MS SQL",mime:"text/x-mssql",mode:"sql"},{name:"mbox",mime:"application/mbox",mode:"mbox",ext:["mbox"]},{name:"MySQL",mime:"text/x-mysql",mode:"sql"},{name:"Nginx",mime:"text/x-nginx-conf",mode:"nginx",file:/nginx.*\.conf$/i},{name:"NSIS",mime:"text/x-nsis",mode:"nsis",ext:["nsh","nsi"]},{name:"NTriples",mimes:["application/n-triples","application/n-quads","text/n-triples"],mode:"ntriples",ext:["nt","nq"]},{name:"Objective-C",mime:"text/x-objectivec",mode:"clike",ext:["m"],alias:["objective-c","objc"]},{name:"Objective-C++",mime:"text/x-objectivec++",mode:"clike",ext:["mm"],alias:["objective-c++","objc++"]},{name:"OCaml",mime:"text/x-ocaml",mode:"mllike",ext:["ml","mli","mll","mly"]},{name:"Octave",mime:"text/x-octave",mode:"octave",ext:["m"]},{name:"Oz",mime:"text/x-oz",mode:"oz",ext:["oz"]},{name:"Pascal",mime:"text/x-pascal",mode:"pascal",ext:["p","pas"]},{name:"PEG.js",mime:"null",mode:"pegjs",ext:["jsonld"]},{name:"Perl",mime:"text/x-perl",mode:"perl",ext:["pl","pm"]},{name:"PHP",mimes:["text/x-php","application/x-httpd-php","application/x-httpd-php-open"],mode:"php",ext:["php","php3","php4","php5","php7","phtml"]},{name:"Pig",mime:"text/x-pig",mode:"pig",ext:["pig"]},{name:"Plain Text",mime:"text/plain",mode:"null",ext:["txt","text","conf","def","list","log"]},{name:"PLSQL",mime:"text/x-plsql",mode:"sql",ext:["pls"]},{name:"PostgreSQL",mime:"text/x-pgsql",mode:"sql"},{name:"PowerShell",mime:"application/x-powershell",mode:"powershell",ext:["ps1","psd1","psm1"]},{name:"Properties files",mime:"text/x-properties",mode:"properties",ext:["properties","ini","in"],alias:["ini","properties"]},{name:"ProtoBuf",mime:"text/x-protobuf",mode:"protobuf",ext:["proto"]},{name:"Python",mime:"text/x-python",mode:"python",ext:["BUILD","bzl","py","pyw"],file:/^(BUCK|BUILD)$/},{name:"Puppet",mime:"text/x-puppet",mode:"puppet",ext:["pp"]},{name:"Q",mime:"text/x-q",mode:"q",ext:["q"]},{name:"R",mime:"text/x-rsrc",mode:"r",ext:["r","R"],alias:["rscript"]},{name:"reStructuredText",mime:"text/x-rst",mode:"rst",ext:["rst"],alias:["rst"]},{name:"RPM Changes",mime:"text/x-rpm-changes",mode:"rpm"},{name:"RPM Spec",mime:"text/x-rpm-spec",mode:"rpm",ext:["spec"]},{name:"Ruby",mime:"text/x-ruby",mode:"ruby",ext:["rb"],alias:["jruby","macruby","rake","rb","rbx"]},{name:"Rust",mime:"text/x-rustsrc",mode:"rust",ext:["rs"]},{name:"SAS",mime:"text/x-sas",mode:"sas",ext:["sas"]},{name:"Sass",mime:"text/x-sass",mode:"sass",ext:["sass"]},{name:"Scala",mime:"text/x-scala",mode:"clike",ext:["scala"]},{name:"Scheme",mime:"text/x-scheme",mode:"scheme",ext:["scm","ss"]},{name:"SCSS",mime:"text/x-scss",mode:"css",ext:["scss"]},{name:"Shell",mimes:["text/x-sh","application/x-sh"],mode:"shell",ext:["sh","ksh","bash"],alias:["bash","sh","zsh"],file:/^PKGBUILD$/},{name:"Sieve",mime:"application/sieve",mode:"sieve",ext:["siv","sieve"]},{name:"Slim",mimes:["text/x-slim","application/x-slim"],mode:"slim",ext:["slim"]},{name:"Smalltalk",mime:"text/x-stsrc",mode:"smalltalk",ext:["st"]},{name:"Smarty",mime:"text/x-smarty",mode:"smarty",ext:["tpl"]},{name:"Solr",mime:"text/x-solr",mode:"solr"},{name:"SML",mime:"text/x-sml",mode:"mllike",ext:["sml","sig","fun","smackspec"]},{name:"Soy",mime:"text/x-soy",mode:"soy",ext:["soy"],alias:["closure template"]},{name:"SPARQL",mime:"application/sparql-query",mode:"sparql",ext:["rq","sparql"],alias:["sparul"]},{name:"Spreadsheet",mime:"text/x-spreadsheet",mode:"spreadsheet",alias:["excel","formula"]},{name:"SQL",mime:"text/x-sql",mode:"sql",ext:["sql"]},{name:"SQLite",mime:"text/x-sqlite",mode:"sql"},{name:"Squirrel",mime:"text/x-squirrel",mode:"clike",ext:["nut"]},{name:"Stylus",mime:"text/x-styl",mode:"stylus",ext:["styl"]},{name:"Swift",mime:"text/x-swift",mode:"swift",ext:["swift"]},{name:"sTeX",mime:"text/x-stex",mode:"stex"},{name:"LaTeX",mime:"text/x-latex",mode:"stex",ext:["text","ltx","tex"],alias:["tex"]},{name:"SystemVerilog",mime:"text/x-systemverilog",mode:"verilog",ext:["v","sv","svh"]},{name:"Tcl",mime:"text/x-tcl",mode:"tcl",ext:["tcl"]},{name:"Textile",mime:"text/x-textile",mode:"textile",ext:["textile"]},{name:"TiddlyWiki",mime:"text/x-tiddlywiki",mode:"tiddlywiki"},{name:"Tiki wiki",mime:"text/tiki",mode:"tiki"},{name:"TOML",mime:"text/x-toml",mode:"toml",ext:["toml"]},{name:"Tornado",mime:"text/x-tornado",mode:"tornado"},{name:"troff",mime:"text/troff",mode:"troff",ext:["1","2","3","4","5","6","7","8","9"]},{name:"TTCN",mime:"text/x-ttcn",mode:"ttcn",ext:["ttcn","ttcn3","ttcnpp"]},{name:"TTCN_CFG",mime:"text/x-ttcn-cfg",mode:"ttcn-cfg",ext:["cfg"]},{name:"Turtle",mime:"text/turtle",mode:"turtle",ext:["ttl"]},{name:"TypeScript",mime:"application/typescript",mode:"javascript",ext:["ts"],alias:["ts"]},{name:"TypeScript-JSX",mime:"text/typescript-jsx",mode:"jsx",ext:["tsx"],alias:["tsx"]},{name:"Twig",mime:"text/x-twig",mode:"twig"},{name:"Web IDL",mime:"text/x-webidl",mode:"webidl",ext:["webidl"]},{name:"VB.NET",mime:"text/x-vb",mode:"vb",ext:["vb"]},{name:"VBScript",mime:"text/vbscript",mode:"vbscript",ext:["vbs"]},{name:"Velocity",mime:"text/velocity",mode:"velocity",ext:["vtl"]},{name:"Verilog",mime:"text/x-verilog",mode:"verilog",ext:["v"]},{name:"VHDL",mime:"text/x-vhdl",mode:"vhdl",ext:["vhd","vhdl"]},{name:"Vue.js Component",mimes:["script/x-vue","text/x-vue"],mode:"vue",ext:["vue"]},{name:"XML",mimes:["application/xml","text/xml"],mode:"xml",ext:["xml","xsl","xsd","svg"],alias:["rss","wsdl","xsd"]},{name:"XQuery",mime:"application/xquery",mode:"xquery",ext:["xy","xquery"]},{name:"Yacas",mime:"text/x-yacas",mode:"yacas",ext:["ys"]},{name:"YAML",mimes:["text/x-yaml","text/yaml"],mode:"yaml",ext:["yaml","yml"],alias:["yml"]},{name:"Z80",mime:"text/x-z80",mode:"z80",ext:["z80"]},{name:"mscgen",mime:"text/x-mscgen",mode:"mscgen",ext:["mscgen","mscin","msc"]},{name:"xu",mime:"text/x-xu",mode:"mscgen",ext:["xu"]},{name:"msgenny",mime:"text/x-msgenny",mode:"mscgen",ext:["msgenny"]},{name:"WebAssembly",mime:"text/webassembly",mode:"wast",ext:["wat","wast"]}];for(var l=0;l-1&&a.substring(c+1,a.length);if(d)return o.findModeByExtension(d)},o.findModeByName=function(a){a=a.toLowerCase();for(var f=0;f{(function(o){typeof hf=="object"&&typeof pf=="object"?o(At(),ll(),df()):typeof define=="function"&&define.amd?define(["../../lib/codemirror","../xml/xml","../meta"],o):o(CodeMirror)})(function(o){"use strict";o.defineMode("markdown",function(l,s){var a=o.getMode(l,"text/html"),f=a.name=="null";function h(A){if(o.findModeByName){var w=o.findModeByName(A);w&&(A=w.mime||w.mimes[0])}var ee=o.getMode(l,A);return ee.name=="null"?null:ee}s.highlightFormatting===void 0&&(s.highlightFormatting=!1),s.maxBlockquoteDepth===void 0&&(s.maxBlockquoteDepth=0),s.taskLists===void 0&&(s.taskLists=!1),s.strikethrough===void 0&&(s.strikethrough=!1),s.emoji===void 0&&(s.emoji=!1),s.fencedCodeBlockHighlighting===void 0&&(s.fencedCodeBlockHighlighting=!0),s.fencedCodeBlockDefaultMode===void 0&&(s.fencedCodeBlockDefaultMode="text/plain"),s.xml===void 0&&(s.xml=!0),s.tokenTypeOverrides===void 0&&(s.tokenTypeOverrides={});var c={header:"header",code:"comment",quote:"quote",list1:"variable-2",list2:"variable-3",list3:"keyword",hr:"hr",image:"image",imageAltText:"image-alt-text",imageMarker:"image-marker",formatting:"formatting",linkInline:"link",linkEmail:"link",linkText:"link",linkHref:"string",em:"em",strong:"strong",strikethrough:"strikethrough",emoji:"builtin"};for(var d in c)c.hasOwnProperty(d)&&s.tokenTypeOverrides[d]&&(c[d]=s.tokenTypeOverrides[d]);var m=/^([*\-_])(?:\s*\1){2,}\s*$/,y=/^(?:[*\-+]|^[0-9]+([.)]))\s+/,x=/^\[(x| )\](?=\s)/i,C=s.allowAtxHeaderWithoutSpace?/^(#+)/:/^(#+)(?: |$)/,S=/^ {0,3}(?:\={1,}|-{2,})\s*$/,F=/^[^#!\[\]*_\\<>` "'(~:]+/,_=/^(~~~+|```+)[ \t]*([\w\/+#-]*)[^\n`]*$/,L=/^\s*\[[^\]]+?\]:.*$/,T=/[!"#$%&'()*+,\-.\/:;<=>?@\[\\\]^_`{|}~\xA1\xA7\xAB\xB6\xB7\xBB\xBF\u037E\u0387\u055A-\u055F\u0589\u058A\u05BE\u05C0\u05C3\u05C6\u05F3\u05F4\u0609\u060A\u060C\u060D\u061B\u061E\u061F\u066A-\u066D\u06D4\u0700-\u070D\u07F7-\u07F9\u0830-\u083E\u085E\u0964\u0965\u0970\u0AF0\u0DF4\u0E4F\u0E5A\u0E5B\u0F04-\u0F12\u0F14\u0F3A-\u0F3D\u0F85\u0FD0-\u0FD4\u0FD9\u0FDA\u104A-\u104F\u10FB\u1360-\u1368\u1400\u166D\u166E\u169B\u169C\u16EB-\u16ED\u1735\u1736\u17D4-\u17D6\u17D8-\u17DA\u1800-\u180A\u1944\u1945\u1A1E\u1A1F\u1AA0-\u1AA6\u1AA8-\u1AAD\u1B5A-\u1B60\u1BFC-\u1BFF\u1C3B-\u1C3F\u1C7E\u1C7F\u1CC0-\u1CC7\u1CD3\u2010-\u2027\u2030-\u2043\u2045-\u2051\u2053-\u205E\u207D\u207E\u208D\u208E\u2308-\u230B\u2329\u232A\u2768-\u2775\u27C5\u27C6\u27E6-\u27EF\u2983-\u2998\u29D8-\u29DB\u29FC\u29FD\u2CF9-\u2CFC\u2CFE\u2CFF\u2D70\u2E00-\u2E2E\u2E30-\u2E42\u3001-\u3003\u3008-\u3011\u3014-\u301F\u3030\u303D\u30A0\u30FB\uA4FE\uA4FF\uA60D-\uA60F\uA673\uA67E\uA6F2-\uA6F7\uA874-\uA877\uA8CE\uA8CF\uA8F8-\uA8FA\uA8FC\uA92E\uA92F\uA95F\uA9C1-\uA9CD\uA9DE\uA9DF\uAA5C-\uAA5F\uAADE\uAADF\uAAF0\uAAF1\uABEB\uFD3E\uFD3F\uFE10-\uFE19\uFE30-\uFE52\uFE54-\uFE61\uFE63\uFE68\uFE6A\uFE6B\uFF01-\uFF03\uFF05-\uFF0A\uFF0C-\uFF0F\uFF1A\uFF1B\uFF1F\uFF20\uFF3B-\uFF3D\uFF3F\uFF5B\uFF5D\uFF5F-\uFF65]|\uD800[\uDD00-\uDD02\uDF9F\uDFD0]|\uD801\uDD6F|\uD802[\uDC57\uDD1F\uDD3F\uDE50-\uDE58\uDE7F\uDEF0-\uDEF6\uDF39-\uDF3F\uDF99-\uDF9C]|\uD804[\uDC47-\uDC4D\uDCBB\uDCBC\uDCBE-\uDCC1\uDD40-\uDD43\uDD74\uDD75\uDDC5-\uDDC9\uDDCD\uDDDB\uDDDD-\uDDDF\uDE38-\uDE3D\uDEA9]|\uD805[\uDCC6\uDDC1-\uDDD7\uDE41-\uDE43\uDF3C-\uDF3E]|\uD809[\uDC70-\uDC74]|\uD81A[\uDE6E\uDE6F\uDEF5\uDF37-\uDF3B\uDF44]|\uD82F\uDC9F|\uD836[\uDE87-\uDE8B]/,O=" ";function N(A,w,ee){return w.f=w.inline=ee,ee(A,w)}function I(A,w,ee){return w.f=w.block=ee,ee(A,w)}function P(A){return!A||!/\S/.test(A.string)}function U(A){if(A.linkTitle=!1,A.linkHref=!1,A.linkText=!1,A.em=!1,A.strong=!1,A.strikethrough=!1,A.quote=0,A.indentedCode=!1,A.f==K){var w=f;if(!w){var ee=o.innerMode(a,A.htmlState);w=ee.mode.name=="xml"&&ee.state.tagStart===null&&!ee.state.context&&ee.state.tokenize.isInText}w&&(A.f=X,A.block=j,A.htmlState=null)}return A.trailingSpace=0,A.trailingSpaceNewLine=!1,A.prevLine=A.thisLine,A.thisLine={stream:null},null}function j(A,w){var ee=A.column()===w.indentation,De=P(w.prevLine.stream),ye=w.indentedCode,lt=w.prevLine.hr,Lt=w.list!==!1,Ye=(w.listStack[w.listStack.length-1]||0)+3;w.indentedCode=!1;var dt=w.indentation;if(w.indentationDiff===null&&(w.indentationDiff=w.indentation,Lt)){for(w.list=null;dt=4&&(ye||w.prevLine.fencedCodeEnd||w.prevLine.header||De))return A.skipToEnd(),w.indentedCode=!0,c.code;if(A.eatSpace())return null;if(ee&&w.indentation<=Ye&&(Ze=A.match(C))&&Ze[1].length<=6)return w.quote=0,w.header=Ze[1].length,w.thisLine.header=!0,s.highlightFormatting&&(w.formatting="header"),w.f=w.inline,q(w);if(w.indentation<=Ye&&A.eat(">"))return w.quote=ee?1:w.quote+1,s.highlightFormatting&&(w.formatting="quote"),A.eatSpace(),q(w);if(!He&&!w.setext&&ee&&w.indentation<=Ye&&(Ze=A.match(y))){var mt=Ze[1]?"ol":"ul";return w.indentation=dt+A.current().length,w.list=!0,w.quote=0,w.listStack.push(w.indentation),w.em=!1,w.strong=!1,w.code=!1,w.strikethrough=!1,s.taskLists&&A.match(x,!1)&&(w.taskList=!0),w.f=w.inline,s.highlightFormatting&&(w.formatting=["list","list-"+mt]),q(w)}else{if(ee&&w.indentation<=Ye&&(Ze=A.match(_,!0)))return w.quote=0,w.fencedEndRE=new RegExp(Ze[1]+"+ *$"),w.localMode=s.fencedCodeBlockHighlighting&&h(Ze[2]||s.fencedCodeBlockDefaultMode),w.localMode&&(w.localState=o.startState(w.localMode)),w.f=w.block=de,s.highlightFormatting&&(w.formatting="code-block"),w.code=-1,q(w);if(w.setext||(!Ne||!Lt)&&!w.quote&&w.list===!1&&!w.code&&!He&&!L.test(A.string)&&(Ze=A.lookAhead(1))&&(Ze=Ze.match(S)))return w.setext?(w.header=w.setext,w.setext=0,A.skipToEnd(),s.highlightFormatting&&(w.formatting="header")):(w.header=Ze[0].charAt(0)=="="?1:2,w.setext=w.header),w.thisLine.header=!0,w.f=w.inline,q(w);if(He)return A.skipToEnd(),w.hr=!0,w.thisLine.hr=!0,c.hr;if(A.peek()==="[")return N(A,w,Q)}return N(A,w,w.inline)}function K(A,w){var ee=a.token(A,w.htmlState);if(!f){var De=o.innerMode(a,w.htmlState);(De.mode.name=="xml"&&De.state.tagStart===null&&!De.state.context&&De.state.tokenize.isInText||w.md_inside&&A.current().indexOf(">")>-1)&&(w.f=X,w.block=j,w.htmlState=null)}return ee}function de(A,w){var ee=w.listStack[w.listStack.length-1]||0,De=w.indentation=A.quote?w.push(c.formatting+"-"+A.formatting[ee]+"-"+A.quote):w.push("error"))}if(A.taskOpen)return w.push("meta"),w.length?w.join(" "):null;if(A.taskClosed)return w.push("property"),w.length?w.join(" "):null;if(A.linkHref?w.push(c.linkHref,"url"):(A.strong&&w.push(c.strong),A.em&&w.push(c.em),A.strikethrough&&w.push(c.strikethrough),A.emoji&&w.push(c.emoji),A.linkText&&w.push(c.linkText),A.code&&w.push(c.code),A.image&&w.push(c.image),A.imageAltText&&w.push(c.imageAltText,"link"),A.imageMarker&&w.push(c.imageMarker)),A.header&&w.push(c.header,c.header+"-"+A.header),A.quote&&(w.push(c.quote),!s.maxBlockquoteDepth||s.maxBlockquoteDepth>=A.quote?w.push(c.quote+"-"+A.quote):w.push(c.quote+"-"+s.maxBlockquoteDepth)),A.list!==!1){var De=(A.listStack.length-1)%3;De?De===1?w.push(c.list2):w.push(c.list3):w.push(c.list1)}return A.trailingSpaceNewLine?w.push("trailing-space-new-line"):A.trailingSpace&&w.push("trailing-space-"+(A.trailingSpace%2?"a":"b")),w.length?w.join(" "):null}function oe(A,w){if(A.match(F,!0))return q(w)}function X(A,w){var ee=w.text(A,w);if(typeof ee<"u")return ee;if(w.list)return w.list=null,q(w);if(w.taskList){var De=A.match(x,!0)[1]===" ";return De?w.taskOpen=!0:w.taskClosed=!0,s.highlightFormatting&&(w.formatting="task"),w.taskList=!1,q(w)}if(w.taskOpen=!1,w.taskClosed=!1,w.header&&A.match(/^#+$/,!0))return s.highlightFormatting&&(w.formatting="header"),q(w);var ye=A.next();if(w.linkTitle){w.linkTitle=!1;var lt=ye;ye==="("&&(lt=")"),lt=(lt+"").replace(/([.?*+^\[\]\\(){}|-])/g,"\\$1");var Lt="^\\s*(?:[^"+lt+"\\\\]+|\\\\\\\\|\\\\.)"+lt;if(A.match(new RegExp(Lt),!0))return c.linkHref}if(ye==="`"){var Ye=w.formatting;s.highlightFormatting&&(w.formatting="code"),A.eatWhile("`");var dt=A.current().length;if(w.code==0&&(!w.quote||dt==1))return w.code=dt,q(w);if(dt==w.code){var Ne=q(w);return w.code=0,Ne}else return w.formatting=Ye,q(w)}else if(w.code)return q(w);if(ye==="\\"&&(A.next(),s.highlightFormatting)){var He=q(w),Ze=c.formatting+"-escape";return He?He+" "+Ze:Ze}if(ye==="!"&&A.match(/\[[^\]]*\] ?(?:\(|\[)/,!1))return w.imageMarker=!0,w.image=!0,s.highlightFormatting&&(w.formatting="image"),q(w);if(ye==="["&&w.imageMarker&&A.match(/[^\]]*\](\(.*?\)| ?\[.*?\])/,!1))return w.imageMarker=!1,w.imageAltText=!0,s.highlightFormatting&&(w.formatting="image"),q(w);if(ye==="]"&&w.imageAltText){s.highlightFormatting&&(w.formatting="image");var He=q(w);return w.imageAltText=!1,w.image=!1,w.inline=w.f=k,He}if(ye==="["&&!w.image)return w.linkText&&A.match(/^.*?\]/)||(w.linkText=!0,s.highlightFormatting&&(w.formatting="link")),q(w);if(ye==="]"&&w.linkText){s.highlightFormatting&&(w.formatting="link");var He=q(w);return w.linkText=!1,w.inline=w.f=A.match(/\(.*?\)| ?\[.*?\]/,!1)?k:X,He}if(ye==="<"&&A.match(/^(https?|ftps?):\/\/(?:[^\\>]|\\.)+>/,!1)){w.f=w.inline=G,s.highlightFormatting&&(w.formatting="link");var He=q(w);return He?He+=" ":He="",He+c.linkInline}if(ye==="<"&&A.match(/^[^> \\]+@(?:[^\\>]|\\.)+>/,!1)){w.f=w.inline=G,s.highlightFormatting&&(w.formatting="link");var He=q(w);return He?He+=" ":He="",He+c.linkEmail}if(s.xml&&ye==="<"&&A.match(/^(!--|\?|!\[CDATA\[|[a-z][a-z0-9-]*(?:\s+[a-z_:.\-]+(?:\s*=\s*[^>]+)?)*\s*(?:>|$))/i,!1)){var mt=A.string.indexOf(">",A.pos);if(mt!=-1){var Ln=A.string.substring(A.start,mt);/markdown\s*=\s*('|"){0,1}1('|"){0,1}/.test(Ln)&&(w.md_inside=!0)}return A.backUp(1),w.htmlState=o.startState(a),I(A,w,K)}if(s.xml&&ye==="<"&&A.match(/^\/\w*?>/))return w.md_inside=!1,"tag";if(ye==="*"||ye==="_"){for(var Xt=1,Kt=A.pos==1?" ":A.string.charAt(A.pos-2);Xt<3&&A.eat(ye);)Xt++;var zt=A.peek()||" ",pr=!/\s/.test(zt)&&(!T.test(zt)||/\s/.test(Kt)||T.test(Kt)),Ce=!/\s/.test(Kt)&&(!T.test(Kt)||/\s/.test(zt)||T.test(zt)),Ht=null,gr=null;if(Xt%2&&(!w.em&&pr&&(ye==="*"||!Ce||T.test(Kt))?Ht=!0:w.em==ye&&Ce&&(ye==="*"||!pr||T.test(zt))&&(Ht=!1)),Xt>1&&(!w.strong&&pr&&(ye==="*"||!Ce||T.test(Kt))?gr=!0:w.strong==ye&&Ce&&(ye==="*"||!pr||T.test(zt))&&(gr=!1)),gr!=null||Ht!=null){s.highlightFormatting&&(w.formatting=Ht==null?"strong":gr==null?"em":"strong em"),Ht===!0&&(w.em=ye),gr===!0&&(w.strong=ye);var Ne=q(w);return Ht===!1&&(w.em=!1),gr===!1&&(w.strong=!1),Ne}}else if(ye===" "&&(A.eat("*")||A.eat("_"))){if(A.peek()===" ")return q(w);A.backUp(1)}if(s.strikethrough){if(ye==="~"&&A.eatWhile(ye)){if(w.strikethrough){s.highlightFormatting&&(w.formatting="strikethrough");var Ne=q(w);return w.strikethrough=!1,Ne}else if(A.match(/^[^\s]/,!1))return w.strikethrough=!0,s.highlightFormatting&&(w.formatting="strikethrough"),q(w)}else if(ye===" "&&A.match("~~",!0)){if(A.peek()===" ")return q(w);A.backUp(2)}}if(s.emoji&&ye===":"&&A.match(/^(?:[a-z_\d+][a-z_\d+-]*|\-[a-z_\d+][a-z_\d+-]*):/)){w.emoji=!0,s.highlightFormatting&&(w.formatting="emoji");var ki=q(w);return w.emoji=!1,ki}return ye===" "&&(A.match(/^ +$/,!1)?w.trailingSpace++:w.trailingSpace&&(w.trailingSpaceNewLine=!0)),q(w)}function G(A,w){var ee=A.next();if(ee===">"){w.f=w.inline=X,s.highlightFormatting&&(w.formatting="link");var De=q(w);return De?De+=" ":De="",De+c.linkInline}return A.match(/^[^>]+/,!0),c.linkInline}function k(A,w){if(A.eatSpace())return null;var ee=A.next();return ee==="("||ee==="["?(w.f=w.inline=R(ee==="("?")":"]"),s.highlightFormatting&&(w.formatting="link-string"),w.linkHref=!0,q(w)):"error"}var z={")":/^(?:[^\\\(\)]|\\.|\((?:[^\\\(\)]|\\.)*\))*?(?=\))/,"]":/^(?:[^\\\[\]]|\\.|\[(?:[^\\\[\]]|\\.)*\])*?(?=\])/};function R(A){return function(w,ee){var De=w.next();if(De===A){ee.f=ee.inline=X,s.highlightFormatting&&(ee.formatting="link-string");var ye=q(ee);return ee.linkHref=!1,ye}return w.match(z[A]),ee.linkHref=!0,q(ee)}}function Q(A,w){return A.match(/^([^\]\\]|\\.)*\]:/,!1)?(w.f=he,A.next(),s.highlightFormatting&&(w.formatting="link"),w.linkText=!0,q(w)):N(A,w,X)}function he(A,w){if(A.match("]:",!0)){w.f=w.inline=pe,s.highlightFormatting&&(w.formatting="link");var ee=q(w);return w.linkText=!1,ee}return A.match(/^([^\]\\]|\\.)+/,!0),c.linkText}function pe(A,w){return A.eatSpace()?null:(A.match(/^[^\s]+/,!0),A.peek()===void 0?w.linkTitle=!0:A.match(/^(?:\s+(?:"(?:[^"\\]|\\.)+"|'(?:[^'\\]|\\.)+'|\((?:[^)\\]|\\.)+\)))?/,!0),w.f=w.inline=X,c.linkHref+" url")}var Ee={startState:function(){return{f:j,prevLine:{stream:null},thisLine:{stream:null},block:j,htmlState:null,indentation:0,inline:X,text:oe,formatting:!1,linkText:!1,linkHref:!1,linkTitle:!1,code:0,em:!1,strong:!1,header:0,setext:0,hr:!1,taskList:!1,list:!1,listStack:[],quote:0,trailingSpace:0,trailingSpaceNewLine:!1,strikethrough:!1,emoji:!1,fencedEndRE:null}},copyState:function(A){return{f:A.f,prevLine:A.prevLine,thisLine:A.thisLine,block:A.block,htmlState:A.htmlState&&o.copyState(a,A.htmlState),indentation:A.indentation,localMode:A.localMode,localState:A.localMode?o.copyState(A.localMode,A.localState):null,inline:A.inline,text:A.text,formatting:!1,linkText:A.linkText,linkTitle:A.linkTitle,linkHref:A.linkHref,code:A.code,em:A.em,strong:A.strong,strikethrough:A.strikethrough,emoji:A.emoji,header:A.header,setext:A.setext,hr:A.hr,taskList:A.taskList,list:A.list,listStack:A.listStack.slice(0),quote:A.quote,indentedCode:A.indentedCode,trailingSpace:A.trailingSpace,trailingSpaceNewLine:A.trailingSpaceNewLine,md_inside:A.md_inside,fencedEndRE:A.fencedEndRE}},token:function(A,w){if(w.formatting=!1,A!=w.thisLine.stream){if(w.header=0,w.hr=!1,A.match(/^\s*$/,!0))return U(w),null;if(w.prevLine=w.thisLine,w.thisLine={stream:A},w.taskList=!1,w.trailingSpace=0,w.trailingSpaceNewLine=!1,!w.localState&&(w.f=w.block,w.f!=K)){var ee=A.match(/^\s*/,!0)[0].replace(/\t/g,O).length;if(w.indentation=ee,w.indentationDiff=null,ee>0)return null}}return w.f(A,w)},innerMode:function(A){return A.block==K?{state:A.htmlState,mode:a}:A.localState?{state:A.localState,mode:A.localMode}:{state:A,mode:Ee}},indent:function(A,w,ee){return A.block==K&&a.indent?a.indent(A.htmlState,w,ee):A.localState&&A.localMode.indent?A.localMode.indent(A.localState,w,ee):o.Pass},blankLine:U,getType:q,blockCommentStart:"",closeBrackets:"()[]{}''\"\"``",fold:"markdown"};return Ee},"xml"),o.defineMIME("text/markdown","markdown"),o.defineMIME("text/x-markdown","markdown")})});var ul=at((gf,vf)=>{(function(o){typeof gf=="object"&&typeof vf=="object"?o(At()):typeof define=="function"&&define.amd?define(["../../lib/codemirror"],o):o(CodeMirror)})(function(o){"use strict";o.overlayMode=function(l,s,a){return{startState:function(){return{base:o.startState(l),overlay:o.startState(s),basePos:0,baseCur:null,overlayPos:0,overlayCur:null,streamSeen:null}},copyState:function(f){return{base:o.copyState(l,f.base),overlay:o.copyState(s,f.overlay),basePos:f.basePos,baseCur:null,overlayPos:f.overlayPos,overlayCur:null}},token:function(f,h){return(f!=h.streamSeen||Math.min(h.basePos,h.overlayPos){(function(o){typeof mf=="object"&&typeof bf=="object"?o(At()):typeof define=="function"&&define.amd?define(["../../lib/codemirror"],o):o(CodeMirror)})(function(o){o.defineOption("placeholder","",function(d,m,y){var x=y&&y!=o.Init;if(m&&!x)d.on("blur",f),d.on("change",h),d.on("swapDoc",h),o.on(d.getInputField(),"compositionupdate",d.state.placeholderCompose=function(){a(d)}),h(d);else if(!m&&x){d.off("blur",f),d.off("change",h),d.off("swapDoc",h),o.off(d.getInputField(),"compositionupdate",d.state.placeholderCompose),l(d);var C=d.getWrapperElement();C.className=C.className.replace(" CodeMirror-empty","")}m&&!d.hasFocus()&&f(d)});function l(d){d.state.placeholder&&(d.state.placeholder.parentNode.removeChild(d.state.placeholder),d.state.placeholder=null)}function s(d){l(d);var m=d.state.placeholder=document.createElement("pre");m.style.cssText="height: 0; overflow: visible",m.style.direction=d.getOption("direction"),m.className="CodeMirror-placeholder CodeMirror-line-like";var y=d.getOption("placeholder");typeof y=="string"&&(y=document.createTextNode(y)),m.appendChild(y),d.display.lineSpace.insertBefore(m,d.display.lineSpace.firstChild)}function a(d){setTimeout(function(){var m=!1;if(d.lineCount()==1){var y=d.getInputField();m=y.nodeName=="TEXTAREA"?!d.getLine(0).length:!/[^\u200b]/.test(y.querySelector(".CodeMirror-line").textContent)}m?s(d):l(d)},20)}function f(d){c(d)&&s(d)}function h(d){var m=d.getWrapperElement(),y=c(d);m.className=m.className.replace(" CodeMirror-empty","")+(y?" CodeMirror-empty":""),y?s(d):l(d)}function c(d){return d.lineCount()===1&&d.getLine(0)===""}})});var Df=at((xf,wf)=>{(function(o){typeof xf=="object"&&typeof wf=="object"?o(At()):typeof define=="function"&&define.amd?define(["../../lib/codemirror"],o):o(CodeMirror)})(function(o){"use strict";o.defineOption("autoRefresh",!1,function(a,f){a.state.autoRefresh&&(s(a,a.state.autoRefresh),a.state.autoRefresh=null),f&&a.display.wrapper.offsetHeight==0&&l(a,a.state.autoRefresh={delay:f.delay||250})});function l(a,f){function h(){a.display.wrapper.offsetHeight?(s(a,f),a.display.lastWrapHeight!=a.display.wrapper.clientHeight&&a.refresh()):f.timeout=setTimeout(h,f.delay)}f.timeout=setTimeout(h,f.delay),f.hurry=function(){clearTimeout(f.timeout),f.timeout=setTimeout(h,50)},o.on(window,"mouseup",f.hurry),o.on(window,"keyup",f.hurry)}function s(a,f){clearTimeout(f.timeout),o.off(window,"mouseup",f.hurry),o.off(window,"keyup",f.hurry)}})});var Sf=at((Cf,kf)=>{(function(o){typeof Cf=="object"&&typeof kf=="object"?o(At()):typeof define=="function"&&define.amd?define(["../../lib/codemirror"],o):o(CodeMirror)})(function(o){"use strict";o.defineOption("styleSelectedText",!1,function(x,C,S){var F=S&&S!=o.Init;C&&!F?(x.state.markedSelection=[],x.state.markedSelectionStyle=typeof C=="string"?C:"CodeMirror-selectedtext",m(x),x.on("cursorActivity",l),x.on("change",s)):!C&&F&&(x.off("cursorActivity",l),x.off("change",s),d(x),x.state.markedSelection=x.state.markedSelectionStyle=null)});function l(x){x.state.markedSelection&&x.operation(function(){y(x)})}function s(x){x.state.markedSelection&&x.state.markedSelection.length&&x.operation(function(){d(x)})}var a=8,f=o.Pos,h=o.cmpPos;function c(x,C,S,F){if(h(C,S)!=0)for(var _=x.state.markedSelection,L=x.state.markedSelectionStyle,T=C.line;;){var O=T==C.line?C:f(T,0),N=T+a,I=N>=S.line,P=I?S:f(N,0),U=x.markText(O,P,{className:L});if(F==null?_.push(U):_.splice(F++,0,U),I)break;T=N}}function d(x){for(var C=x.state.markedSelection,S=0;S1)return m(x);var C=x.getCursor("start"),S=x.getCursor("end"),F=x.state.markedSelection;if(!F.length)return c(x,C,S);var _=F[0].find(),L=F[F.length-1].find();if(!_||!L||S.line-C.line<=a||h(C,L.to)>=0||h(S,_.from)<=0)return m(x);for(;h(C,_.from)>0;)F.shift().clear(),_=F[0].find();for(h(C,_.from)<0&&(_.to.line-C.line0&&(S.line-L.from.line{(function(o){typeof Ef=="object"&&typeof Af=="object"?o(At()):typeof define=="function"&&define.amd?define(["../../lib/codemirror"],o):o(CodeMirror)})(function(o){"use strict";var l=o.Pos;function s(T){var O=T.flags;return O??(T.ignoreCase?"i":"")+(T.global?"g":"")+(T.multiline?"m":"")}function a(T,O){for(var N=s(T),I=N,P=0;Pj);K++){var de=T.getLine(U++);I=I==null?de:I+` +`+de}P=P*2,O.lastIndex=N.ch;var q=O.exec(I);if(q){var oe=I.slice(0,q.index).split(` +`),X=q[0].split(` +`),G=N.line+oe.length-1,k=oe[oe.length-1].length;return{from:l(G,k),to:l(G+X.length-1,X.length==1?k+X[0].length:X[X.length-1].length),match:q}}}}function d(T,O,N){for(var I,P=0;P<=T.length;){O.lastIndex=P;var U=O.exec(T);if(!U)break;var j=U.index+U[0].length;if(j>T.length-N)break;(!I||j>I.index+I[0].length)&&(I=U),P=U.index+1}return I}function m(T,O,N){O=a(O,"g");for(var I=N.line,P=N.ch,U=T.firstLine();I>=U;I--,P=-1){var j=T.getLine(I),K=d(j,O,P<0?0:j.length-P);if(K)return{from:l(I,K.index),to:l(I,K.index+K[0].length),match:K}}}function y(T,O,N){if(!f(O))return m(T,O,N);O=a(O,"gm");for(var I,P=1,U=T.getLine(N.line).length-N.ch,j=N.line,K=T.firstLine();j>=K;){for(var de=0;de=K;de++){var q=T.getLine(j--);I=I==null?q:q+` +`+I}P*=2;var oe=d(I,O,U);if(oe){var X=I.slice(0,oe.index).split(` `),G=oe[0].split(` -`),k=j+X.length,H=X[X.length-1].length;return{from:l(k,H),to:l(k+G.length-1,G.length==1?H+G[0].length:G[G.length-1].length),match:oe}}}}var x,D;String.prototype.normalize?(x=function(T){return T.normalize("NFD").toLowerCase()},D=function(T){return T.normalize("NFD")}):(x=function(T){return T.toLowerCase()},D=function(T){return T});function S(T,N,z,O){if(T.length==N.length)return z;for(var I=0,U=z+Math.max(0,T.length-N.length);;){if(I==U)return I;var j=I+U>>1,K=O(T.slice(0,j)).length;if(K==z)return j;K>z?U=j:I=j+1}}function F(T,N,z,O){if(!N.length)return null;var I=O?x:D,U=I(N).split(/\r|\n\r?/);e:for(var j=z.line,K=z.ch,de=T.lastLine()+1-U.length;j<=de;j++,K=0){var W=T.getLine(j).slice(K),oe=I(W);if(U.length==1){var X=oe.indexOf(U[0]);if(X==-1)continue e;var z=S(W,oe,X,I)+K;return{from:l(j,S(W,oe,X,I)+K),to:l(j,S(W,oe,X+U[0].length,I)+K)}}else{var G=oe.length-U[0].length;if(oe.slice(G)!=U[0])continue e;for(var k=1;k=de;j--,K=-1){var W=T.getLine(j);K>-1&&(W=W.slice(0,K));var oe=I(W);if(U.length==1){var X=oe.lastIndexOf(U[0]);if(X==-1)continue e;return{from:l(j,S(W,oe,X,I)),to:l(j,S(W,oe,X+U[0].length,I))}}else{var G=U[U.length-1];if(oe.slice(0,G.length)!=G)continue e;for(var k=1,z=j-U.length+1;k(this.doc.getLine(N.line)||"").length&&(N.ch=0,N.line++)),o.cmpPos(N,this.doc.clipPos(N))!=0))return this.atOccurrence=!1;var z=this.matches(T,N);if(this.afterEmptyMatch=z&&o.cmpPos(z.from,z.to)==0,z)return this.pos=z,this.atOccurrence=!0,this.pos.match||!0;var O=l(T?this.doc.firstLine():this.doc.lastLine()+1,0);return this.pos={from:O,to:O},this.atOccurrence=!1},from:function(){if(this.atOccurrence)return this.pos.from},to:function(){if(this.atOccurrence)return this.pos.to},replace:function(T,N){if(this.atOccurrence){var z=o.splitLines(T);this.doc.replaceRange(z,this.pos.from,this.pos.to,N),this.pos.to=l(this.pos.from.line+z.length-1,z[z.length-1].length+(z.length==1?this.pos.from.ch:0))}}},o.defineExtension("getSearchCursor",function(T,N,z){return new L(this.doc,T,N,z)}),o.defineDocExtension("getSearchCursor",function(T,N,z){return new L(this,T,N,z)}),o.defineExtension("selectMatches",function(T,N){for(var z=[],O=this.getSearchCursor(T,this.getCursor("from"),N);O.findNext()&&!(o.cmpPos(O.to(),this.getCursor("to"))>0);)z.push({anchor:O.from(),head:O.to()});z.length&&this.setSelections(z,0)})})});var Lf=at((Ff,Tf)=>{(function(o){typeof Ff=="object"&&typeof Tf=="object"?o(At(),ll(),sl()):typeof define=="function"&&define.amd?define(["../../lib/codemirror","../markdown/markdown","../../addon/mode/overlay"],o):o(CodeMirror)})(function(o){"use strict";var l=/^((?:(?:aaas?|about|acap|adiumxtra|af[ps]|aim|apt|attachment|aw|beshare|bitcoin|bolo|callto|cap|chrome(?:-extension)?|cid|coap|com-eventbrite-attendee|content|crid|cvs|data|dav|dict|dlna-(?:playcontainer|playsingle)|dns|doi|dtn|dvb|ed2k|facetime|feed|file|finger|fish|ftp|geo|gg|git|gizmoproject|go|gopher|gtalk|h323|hcp|https?|iax|icap|icon|im|imap|info|ipn|ipp|irc[6s]?|iris(?:\.beep|\.lwz|\.xpc|\.xpcs)?|itms|jar|javascript|jms|keyparc|lastfm|ldaps?|magnet|mailto|maps|market|message|mid|mms|ms-help|msnim|msrps?|mtqp|mumble|mupdate|mvn|news|nfs|nih?|nntp|notes|oid|opaquelocktoken|palm|paparazzi|platform|pop|pres|proxy|psyc|query|res(?:ource)?|rmi|rsync|rtmp|rtsp|secondlife|service|session|sftp|sgn|shttp|sieve|sips?|skype|sm[bs]|snmp|soap\.beeps?|soldat|spotify|ssh|steam|svn|tag|teamspeak|tel(?:net)?|tftp|things|thismessage|tip|tn3270|tv|udp|unreal|urn|ut2004|vemmi|ventrilo|view-source|webcal|wss?|wtai|wyciwyg|xcon(?:-userid)?|xfire|xmlrpc\.beeps?|xmpp|xri|ymsgr|z39\.50[rs]?):(?:\/{1,3}|[a-z0-9%])|www\d{0,3}[.]|[a-z0-9.\-]+[.][a-z]{2,4}\/)(?:[^\s()<>]|\([^\s()<>]*\))+(?:\([^\s()<>]*\)|[^\s`*!()\[\]{};:'".,<>?«»“”‘’]))/i;o.defineMode("gfm",function(s,a){var f=0;function h(y){return y.code=!1,null}var c={startState:function(){return{code:!1,codeBlock:!1,ateSpace:!1}},copyState:function(y){return{code:y.code,codeBlock:y.codeBlock,ateSpace:y.ateSpace}},token:function(y,x){if(x.combineTokens=null,x.codeBlock)return y.match(/^```+/)?(x.codeBlock=!1,null):(y.skipToEnd(),null);if(y.sol()&&(x.code=!1),y.sol()&&y.match(/^```+/))return y.skipToEnd(),x.codeBlock=!0,null;if(y.peek()==="`"){y.next();var D=y.pos;y.eatWhile("`");var S=1+y.pos-D;return x.code?S===f&&(x.code=!1):(f=S,x.code=!0),null}else if(x.code)return y.next(),null;if(y.eatSpace())return x.ateSpace=!0,null;if((y.sol()||x.ateSpace)&&(x.ateSpace=!1,a.gitHubSpice!==!1)){if(y.match(/^(?:[a-zA-Z0-9\-_]+\/)?(?:[a-zA-Z0-9\-_]+@)?(?=.{0,6}\d)(?:[a-f0-9]{7,40}\b)/))return x.combineTokens=!0,"link";if(y.match(/^(?:[a-zA-Z0-9\-_]+\/)?(?:[a-zA-Z0-9\-_]+)?#[0-9]+\b/))return x.combineTokens=!0,"link"}return y.match(l)&&y.string.slice(y.start-2,y.start)!="]("&&(y.start==0||/\W/.test(y.string.charAt(y.start-1)))?(x.combineTokens=!0,"link"):(y.next(),null)},blankLine:h},d={taskLists:!0,strikethrough:!0,emoji:!0};for(var v in a)d[v]=a[v];return d.name="markdown",o.overlayMode(o.getMode(s,d),c)},"markdown"),o.defineMIME("text/x-gfm","gfm")})});var Mf=at(()=>{});var Bf=at((j0,fl)=>{var ul;(function(){"use strict";ul=function(o,l,s,a){a=a||{},this.dictionary=null,this.rules={},this.dictionaryTable=new Map,this.compoundRules=[],this.compoundRuleCodes={},this.replacementTable=[],this.flags=a.flags||{},this.memoized={},this.loaded=!1;var f=this,h,c,d,v,y;o&&(f.dictionary=o,l&&s?F():(typeof window<"u"?(a.dictionaryPath?h=a.dictionaryPath:h="typo/dictionaries",window.chrome&&window.chrome.runtime&&window.chrome.runtime.getURL?h=window.chrome.runtime.getURL(h):window.browser&&window.browser.runtime&&window.browser.runtime.getURL&&(h=window.browser.runtime.getURL(h))):typeof __dirname<"u"?h=__dirname+"/dictionaries":h="./dictionaries",l||x(h+"/"+o+"/"+o+".aff",D),s||x(h+"/"+o+"/"+o+".dic",S)));function x(B,L){var T=f._readFile(B,null,a?.asyncLoad);a?.asyncLoad?T.then(function(N){L(N)}):L(T)}function D(B){l=B,s&&F()}function S(B){s=B,l&&F()}function F(){for(f.rules=f._parseAFF(l),f.compoundRuleCodes={},c=0,v=f.compoundRules.length;c0&&(U.continuationClasses=O),I!=="."&&(S==="SFX"?U.match=new RegExp(I+"$"):U.match=new RegExp("^"+I)),T!="0"&&(S==="SFX"?U.remove=new RegExp(T+"$"):U.remove=T),L.push(U)}l[F]={type:S,combineable:B==="Y",entries:L},c+=f}else if(S==="COMPOUNDRULE"){for(f=parseInt(D[1],10),d=c+1,y=c+1+f;d0&&(s.get(oe)===null&&s.set(oe,[]),s.get(oe).push(X))}for(var f=1,h=l.length;f1){var x=this.parseRuleCodes(v[1]);(!("NEEDAFFIX"in this.flags)||x.indexOf(this.flags.NEEDAFFIX)===-1)&&a(y,x);for(var D=0,S=x.length;D"u"){if("COMPOUNDMIN"in this.flags&&o.length>=this.flags.COMPOUNDMIN){for(s=0,a=this.compoundRules.length;s"u"&&(s=Array.prototype.concat.apply([],this.dictionaryTable.get(o))),s&&s.indexOf(this.flags[l])!==-1))},alphabet:"",suggest:function(o,l){if(!this.loaded)throw"Dictionary not loaded.";if(l=l||5,this.memoized.hasOwnProperty(o)){var s=this.memoized[o].limit;if(l<=s||this.memoized[o].suggestions.length1&&K[1][1]!==K[1][0]&&(I=K[0]+K[1][1]+K[1][0]+K[1].substring(2),(!F||y.check(I))&&(I in B?B[I]+=1:B[I]=1)),K[1]){var de=K[1].substring(0,1).toUpperCase()===K[1].substring(0,1)?"uppercase":"lowercase";for(T=0;TG?1:oe[0].localeCompare(W[0])}I.sort(U).reverse();var j=[],K="lowercase";S.toUpperCase()===S?K="uppercase":S.substr(0,1).toUpperCase()+S.substr(1).toLowerCase()===S&&(K="capitalized");var de=l;for(z=0;z{"use strict";var _f=Bf();function Oe(o){if(o=o||{},typeof o.codeMirrorInstance!="function"||typeof o.codeMirrorInstance.defineMode!="function"){console.log("CodeMirror Spell Checker: You must provide an instance of CodeMirror via the option `codeMirrorInstance`");return}String.prototype.includes||(String.prototype.includes=function(){"use strict";return String.prototype.indexOf.apply(this,arguments)!==-1}),o.codeMirrorInstance.defineMode("spell-checker",function(l){if(!Oe.aff_loading){Oe.aff_loading=!0;var s=new XMLHttpRequest;s.open("GET","https://cdn.jsdelivr.net/codemirror.spell-checker/latest/en_US.aff",!0),s.onload=function(){s.readyState===4&&s.status===200&&(Oe.aff_data=s.responseText,Oe.num_loaded++,Oe.num_loaded==2&&(Oe.typo=new _f("en_US",Oe.aff_data,Oe.dic_data,{platform:"any"})))},s.send(null)}if(!Oe.dic_loading){Oe.dic_loading=!0;var a=new XMLHttpRequest;a.open("GET","https://cdn.jsdelivr.net/codemirror.spell-checker/latest/en_US.dic",!0),a.onload=function(){a.readyState===4&&a.status===200&&(Oe.dic_data=a.responseText,Oe.num_loaded++,Oe.num_loaded==2&&(Oe.typo=new _f("en_US",Oe.aff_data,Oe.dic_data,{platform:"any"})))},a.send(null)}var f='!"#$%&()*+,-./:;<=>?@[\\]^_`{|}~ ',h={token:function(d){var v=d.peek(),y="";if(f.includes(v))return d.next(),null;for(;(v=d.peek())!=null&&!f.includes(v);)y+=v,d.next();return Oe.typo&&!Oe.typo.check(y)?"spell-error":null}},c=o.codeMirrorInstance.getMode(l,l.backdrop||"text/plain");return o.codeMirrorInstance.overlayMode(c,h,!0)})}Oe.num_loaded=0;Oe.aff_loading=!1;Oe.dic_loading=!1;Oe.aff_data="";Oe.dic_data="";Oe.typo;zf.exports=Oe});var Yf=at(_e=>{"use strict";function Of(o,l){for(var s=0;so.length)&&(l=o.length);for(var s=0,a=new Array(l);s=o.length?{done:!0}:{done:!1,value:o[a++]}}}throw new TypeError(`Invalid attempt to iterate non-iterable instance. -In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function ep(o,l){if(typeof o!="object"||o===null)return o;var s=o[Symbol.toPrimitive];if(s!==void 0){var a=s.call(o,l||"default");if(typeof a!="object")return a;throw new TypeError("@@toPrimitive must return a primitive value.")}return(l==="string"?String:Number)(o)}function tp(o){var l=ep(o,"string");return typeof l=="symbol"?l:String(l)}function cl(){return{async:!1,baseUrl:null,breaks:!1,extensions:null,gfm:!0,headerIds:!0,headerPrefix:"",highlight:null,hooks:null,langPrefix:"language-",mangle:!0,pedantic:!1,renderer:null,sanitize:!1,sanitizer:null,silent:!1,smartypants:!1,tokenizer:null,walkTokens:null,xhtml:!1}}_e.defaults=cl();function rp(o){_e.defaults=o}var jf=/[&<>"']/,ip=new RegExp(jf.source,"g"),Gf=/[<>"']|&(?!(#\d{1,7}|#[Xx][a-fA-F0-9]{1,6}|\w+);)/,np=new RegExp(Gf.source,"g"),op={"&":"&","<":"<",">":">",'"':""","'":"'"},Hf=function(l){return op[l]};function gt(o,l){if(l){if(jf.test(o))return o.replace(ip,Hf)}else if(Gf.test(o))return o.replace(np,Hf);return o}var ap=/&(#(?:\d+)|(?:#x[0-9A-Fa-f]+)|(?:\w+));?/ig;function Xf(o){return o.replace(ap,function(l,s){return s=s.toLowerCase(),s==="colon"?":":s.charAt(0)==="#"?s.charAt(1)==="x"?String.fromCharCode(parseInt(s.substring(2),16)):String.fromCharCode(+s.substring(1)):""})}var lp=/(^|[^\[])\^/g;function Me(o,l){o=typeof o=="string"?o:o.source,l=l||"";var s={replace:function(f,h){return h=h.source||h,h=h.replace(lp,"$1"),o=o.replace(f,h),s},getRegex:function(){return new RegExp(o,l)}};return s}var sp=/[^\w:]/g,up=/^$|^[a-z][a-z0-9+.-]*:|^[?#]/i;function Pf(o,l,s){if(o){var a;try{a=decodeURIComponent(Xf(s)).replace(sp,"").toLowerCase()}catch{return null}if(a.indexOf("javascript:")===0||a.indexOf("vbscript:")===0||a.indexOf("data:")===0)return null}l&&!up.test(s)&&(s=hp(l,s));try{s=encodeURI(s).replace(/%25/g,"%")}catch{return null}return s}var oo={},fp=/^[^:]+:\/*[^/]*$/,cp=/^([^:]+:)[\s\S]*$/,dp=/^([^:]+:\/*[^/]*)[\s\S]*$/;function hp(o,l){oo[" "+o]||(fp.test(o)?oo[" "+o]=o+"/":oo[" "+o]=ao(o,"/",!0)),o=oo[" "+o];var s=o.indexOf(":")===-1;return l.substring(0,2)==="//"?s?l:o.replace(cp,"$1")+l:l.charAt(0)==="/"?s?l:o.replace(dp,"$1")+l:o+l}var lo={exec:function(){}};function qf(o,l){var s=o.replace(/\|/g,function(h,c,d){for(var v=!1,y=c;--y>=0&&d[y]==="\\";)v=!v;return v?"|":" |"}),a=s.split(/ \|/),f=0;if(a[0].trim()||a.shift(),a.length>0&&!a[a.length-1].trim()&&a.pop(),a.length>l)a.splice(l);else for(;a.length1;)l&1&&(s+=o),l>>=1,o+=o;return s+o}function Wf(o,l,s,a){var f=l.href,h=l.title?gt(l.title):null,c=o[1].replace(/\\([\[\]])/g,"$1");if(o[0].charAt(0)!=="!"){a.state.inLink=!0;var d={type:"link",raw:s,href:f,title:h,text:c,tokens:a.inlineTokens(c)};return a.state.inLink=!1,d}return{type:"image",raw:s,href:f,title:h,text:gt(c)}}function mp(o,l){var s=o.match(/^(\s+)(?:```)/);if(s===null)return l;var a=s[1];return l.split(` +`),k=j+X.length,z=X[X.length-1].length;return{from:l(k,z),to:l(k+G.length-1,G.length==1?z+G[0].length:G[G.length-1].length),match:oe}}}}var x,C;String.prototype.normalize?(x=function(T){return T.normalize("NFD").toLowerCase()},C=function(T){return T.normalize("NFD")}):(x=function(T){return T.toLowerCase()},C=function(T){return T});function S(T,O,N,I){if(T.length==O.length)return N;for(var P=0,U=N+Math.max(0,T.length-O.length);;){if(P==U)return P;var j=P+U>>1,K=I(T.slice(0,j)).length;if(K==N)return j;K>N?U=j:P=j+1}}function F(T,O,N,I){if(!O.length)return null;var P=I?x:C,U=P(O).split(/\r|\n\r?/);e:for(var j=N.line,K=N.ch,de=T.lastLine()+1-U.length;j<=de;j++,K=0){var q=T.getLine(j).slice(K),oe=P(q);if(U.length==1){var X=oe.indexOf(U[0]);if(X==-1)continue e;var N=S(q,oe,X,P)+K;return{from:l(j,S(q,oe,X,P)+K),to:l(j,S(q,oe,X+U[0].length,P)+K)}}else{var G=oe.length-U[0].length;if(oe.slice(G)!=U[0])continue e;for(var k=1;k=de;j--,K=-1){var q=T.getLine(j);K>-1&&(q=q.slice(0,K));var oe=P(q);if(U.length==1){var X=oe.lastIndexOf(U[0]);if(X==-1)continue e;return{from:l(j,S(q,oe,X,P)),to:l(j,S(q,oe,X+U[0].length,P))}}else{var G=U[U.length-1];if(oe.slice(0,G.length)!=G)continue e;for(var k=1,N=j-U.length+1;k(this.doc.getLine(O.line)||"").length&&(O.ch=0,O.line++)),o.cmpPos(O,this.doc.clipPos(O))!=0))return this.atOccurrence=!1;var N=this.matches(T,O);if(this.afterEmptyMatch=N&&o.cmpPos(N.from,N.to)==0,N)return this.pos=N,this.atOccurrence=!0,this.pos.match||!0;var I=l(T?this.doc.firstLine():this.doc.lastLine()+1,0);return this.pos={from:I,to:I},this.atOccurrence=!1},from:function(){if(this.atOccurrence)return this.pos.from},to:function(){if(this.atOccurrence)return this.pos.to},replace:function(T,O){if(this.atOccurrence){var N=o.splitLines(T);this.doc.replaceRange(N,this.pos.from,this.pos.to,O),this.pos.to=l(this.pos.from.line+N.length-1,N[N.length-1].length+(N.length==1?this.pos.from.ch:0))}}},o.defineExtension("getSearchCursor",function(T,O,N){return new L(this.doc,T,O,N)}),o.defineDocExtension("getSearchCursor",function(T,O,N){return new L(this,T,O,N)}),o.defineExtension("selectMatches",function(T,O){for(var N=[],I=this.getSearchCursor(T,this.getCursor("from"),O);I.findNext()&&!(o.cmpPos(I.to(),this.getCursor("to"))>0);)N.push({anchor:I.from(),head:I.to()});N.length&&this.setSelections(N,0)})})});var Mf=at((Tf,Lf)=>{(function(o){typeof Tf=="object"&&typeof Lf=="object"?o(At(),sl(),ul()):typeof define=="function"&&define.amd?define(["../../lib/codemirror","../markdown/markdown","../../addon/mode/overlay"],o):o(CodeMirror)})(function(o){"use strict";var l=/^((?:(?:aaas?|about|acap|adiumxtra|af[ps]|aim|apt|attachment|aw|beshare|bitcoin|bolo|callto|cap|chrome(?:-extension)?|cid|coap|com-eventbrite-attendee|content|crid|cvs|data|dav|dict|dlna-(?:playcontainer|playsingle)|dns|doi|dtn|dvb|ed2k|facetime|feed|file|finger|fish|ftp|geo|gg|git|gizmoproject|go|gopher|gtalk|h323|hcp|https?|iax|icap|icon|im|imap|info|ipn|ipp|irc[6s]?|iris(?:\.beep|\.lwz|\.xpc|\.xpcs)?|itms|jar|javascript|jms|keyparc|lastfm|ldaps?|magnet|mailto|maps|market|message|mid|mms|ms-help|msnim|msrps?|mtqp|mumble|mupdate|mvn|news|nfs|nih?|nntp|notes|oid|opaquelocktoken|palm|paparazzi|platform|pop|pres|proxy|psyc|query|res(?:ource)?|rmi|rsync|rtmp|rtsp|secondlife|service|session|sftp|sgn|shttp|sieve|sips?|skype|sm[bs]|snmp|soap\.beeps?|soldat|spotify|ssh|steam|svn|tag|teamspeak|tel(?:net)?|tftp|things|thismessage|tip|tn3270|tv|udp|unreal|urn|ut2004|vemmi|ventrilo|view-source|webcal|wss?|wtai|wyciwyg|xcon(?:-userid)?|xfire|xmlrpc\.beeps?|xmpp|xri|ymsgr|z39\.50[rs]?):(?:\/{1,3}|[a-z0-9%])|www\d{0,3}[.]|[a-z0-9.\-]+[.][a-z]{2,4}\/)(?:[^\s()<>]|\([^\s()<>]*\))+(?:\([^\s()<>]*\)|[^\s`*!()\[\]{};:'".,<>?«»“”‘’]))/i;o.defineMode("gfm",function(s,a){var f=0;function h(y){return y.code=!1,null}var c={startState:function(){return{code:!1,codeBlock:!1,ateSpace:!1}},copyState:function(y){return{code:y.code,codeBlock:y.codeBlock,ateSpace:y.ateSpace}},token:function(y,x){if(x.combineTokens=null,x.codeBlock)return y.match(/^```+/)?(x.codeBlock=!1,null):(y.skipToEnd(),null);if(y.sol()&&(x.code=!1),y.sol()&&y.match(/^```+/))return y.skipToEnd(),x.codeBlock=!0,null;if(y.peek()==="`"){y.next();var C=y.pos;y.eatWhile("`");var S=1+y.pos-C;return x.code?S===f&&(x.code=!1):(f=S,x.code=!0),null}else if(x.code)return y.next(),null;if(y.eatSpace())return x.ateSpace=!0,null;if((y.sol()||x.ateSpace)&&(x.ateSpace=!1,a.gitHubSpice!==!1)){if(y.match(/^(?:[a-zA-Z0-9\-_]+\/)?(?:[a-zA-Z0-9\-_]+@)?(?=.{0,6}\d)(?:[a-f0-9]{7,40}\b)/))return x.combineTokens=!0,"link";if(y.match(/^(?:[a-zA-Z0-9\-_]+\/)?(?:[a-zA-Z0-9\-_]+)?#[0-9]+\b/))return x.combineTokens=!0,"link"}return y.match(l)&&y.string.slice(y.start-2,y.start)!="]("&&(y.start==0||/\W/.test(y.string.charAt(y.start-1)))?(x.combineTokens=!0,"link"):(y.next(),null)},blankLine:h},d={taskLists:!0,strikethrough:!0,emoji:!0};for(var m in a)d[m]=a[m];return d.name="markdown",o.overlayMode(o.getMode(s,d),c)},"markdown"),o.defineMIME("text/x-gfm","gfm")})});var _f=at(()=>{});var Bf=at((Xg,cl)=>{var fl;(function(){"use strict";fl=function(o,l,s,a){a=a||{},this.dictionary=null,this.rules={},this.dictionaryTable=new Map,this.compoundRules=[],this.compoundRuleCodes={},this.replacementTable=[],this.flags=a.flags||{},this.memoized={},this.loaded=!1;var f=this,h,c,d,m,y;o&&(f.dictionary=o,l&&s?F():(typeof window<"u"?(a.dictionaryPath?h=a.dictionaryPath:h="typo/dictionaries",window.chrome&&window.chrome.runtime&&window.chrome.runtime.getURL?h=window.chrome.runtime.getURL(h):window.browser&&window.browser.runtime&&window.browser.runtime.getURL&&(h=window.browser.runtime.getURL(h))):typeof __dirname<"u"?h=__dirname+"/dictionaries":h="./dictionaries",l||x(h+"/"+o+"/"+o+".aff",C),s||x(h+"/"+o+"/"+o+".dic",S)));function x(_,L){var T=f._readFile(_,null,a?.asyncLoad);a?.asyncLoad?T.then(function(O){L(O)}):L(T)}function C(_){l=_,s&&F()}function S(_){s=_,l&&F()}function F(){for(f.rules=f._parseAFF(l),f.compoundRuleCodes={},c=0,m=f.compoundRules.length;c0&&(U.continuationClasses=I),P!=="."&&(S==="SFX"?U.match=new RegExp(P+"$"):U.match=new RegExp("^"+P)),T!="0"&&(S==="SFX"?U.remove=new RegExp(T+"$"):U.remove=T),L.push(U)}l[F]={type:S,combineable:_==="Y",entries:L},c+=f}else if(S==="COMPOUNDRULE"){for(f=parseInt(C[1],10),d=c+1,y=c+1+f;d0&&(s.get(oe)===null&&s.set(oe,[]),s.get(oe).push(X))}for(var f=1,h=l.length;f1){var x=this.parseRuleCodes(m[1]);(!("NEEDAFFIX"in this.flags)||x.indexOf(this.flags.NEEDAFFIX)===-1)&&a(y,x);for(var C=0,S=x.length;C"u"){if("COMPOUNDMIN"in this.flags&&o.length>=this.flags.COMPOUNDMIN){for(s=0,a=this.compoundRules.length;s"u"&&(s=Array.prototype.concat.apply([],this.dictionaryTable.get(o))),s&&s.indexOf(this.flags[l])!==-1))},alphabet:"",suggest:function(o,l){if(!this.loaded)throw"Dictionary not loaded.";if(l=l||5,this.memoized.hasOwnProperty(o)){var s=this.memoized[o].limit;if(l<=s||this.memoized[o].suggestions.length1&&K[1][1]!==K[1][0]&&(P=K[0]+K[1][1]+K[1][0]+K[1].substring(2),(!F||y.check(P))&&(P in _?_[P]+=1:_[P]=1)),K[1]){var de=K[1].substring(0,1).toUpperCase()===K[1].substring(0,1)?"uppercase":"lowercase";for(T=0;TG?1:oe[0].localeCompare(q[0])}P.sort(U).reverse();var j=[],K="lowercase";S.toUpperCase()===S?K="uppercase":S.substr(0,1).toUpperCase()+S.substr(1).toLowerCase()===S&&(K="capitalized");var de=l;for(N=0;N{"use strict";var Nf=Bf();function Ie(o){if(o=o||{},typeof o.codeMirrorInstance!="function"||typeof o.codeMirrorInstance.defineMode!="function"){console.log("CodeMirror Spell Checker: You must provide an instance of CodeMirror via the option `codeMirrorInstance`");return}String.prototype.includes||(String.prototype.includes=function(){"use strict";return String.prototype.indexOf.apply(this,arguments)!==-1}),o.codeMirrorInstance.defineMode("spell-checker",function(l){if(!Ie.aff_loading){Ie.aff_loading=!0;var s=new XMLHttpRequest;s.open("GET","https://cdn.jsdelivr.net/codemirror.spell-checker/latest/en_US.aff",!0),s.onload=function(){s.readyState===4&&s.status===200&&(Ie.aff_data=s.responseText,Ie.num_loaded++,Ie.num_loaded==2&&(Ie.typo=new Nf("en_US",Ie.aff_data,Ie.dic_data,{platform:"any"})))},s.send(null)}if(!Ie.dic_loading){Ie.dic_loading=!0;var a=new XMLHttpRequest;a.open("GET","https://cdn.jsdelivr.net/codemirror.spell-checker/latest/en_US.dic",!0),a.onload=function(){a.readyState===4&&a.status===200&&(Ie.dic_data=a.responseText,Ie.num_loaded++,Ie.num_loaded==2&&(Ie.typo=new Nf("en_US",Ie.aff_data,Ie.dic_data,{platform:"any"})))},a.send(null)}var f='!"#$%&()*+,-./:;<=>?@[\\]^_`{|}~ ',h={token:function(d){var m=d.peek(),y="";if(f.includes(m))return d.next(),null;for(;(m=d.peek())!=null&&!f.includes(m);)y+=m,d.next();return Ie.typo&&!Ie.typo.check(y)?"spell-error":null}},c=o.codeMirrorInstance.getMode(l,l.backdrop||"text/plain");return o.codeMirrorInstance.overlayMode(c,h,!0)})}Ie.num_loaded=0;Ie.aff_loading=!1;Ie.dic_loading=!1;Ie.aff_data="";Ie.dic_data="";Ie.typo;Of.exports=Ie});var Zf=at(Be=>{"use strict";function Pf(o,l){for(var s=0;so.length)&&(l=o.length);for(var s=0,a=new Array(l);s=o.length?{done:!0}:{done:!1,value:o[a++]}}}throw new TypeError(`Invalid attempt to iterate non-iterable instance. +In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function tp(o,l){if(typeof o!="object"||o===null)return o;var s=o[Symbol.toPrimitive];if(s!==void 0){var a=s.call(o,l||"default");if(typeof a!="object")return a;throw new TypeError("@@toPrimitive must return a primitive value.")}return(l==="string"?String:Number)(o)}function rp(o){var l=tp(o,"string");return typeof l=="symbol"?l:String(l)}function dl(){return{async:!1,baseUrl:null,breaks:!1,extensions:null,gfm:!0,headerIds:!0,headerPrefix:"",highlight:null,hooks:null,langPrefix:"language-",mangle:!0,pedantic:!1,renderer:null,sanitize:!1,sanitizer:null,silent:!1,smartypants:!1,tokenizer:null,walkTokens:null,xhtml:!1}}Be.defaults=dl();function np(o){Be.defaults=o}var Gf=/[&<>"']/,ip=new RegExp(Gf.source,"g"),Xf=/[<>"']|&(?!(#\d{1,7}|#[Xx][a-fA-F0-9]{1,6}|\w+);)/,op=new RegExp(Xf.source,"g"),ap={"&":"&","<":"<",">":">",'"':""","'":"'"},Hf=function(l){return ap[l]};function gt(o,l){if(l){if(Gf.test(o))return o.replace(ip,Hf)}else if(Xf.test(o))return o.replace(op,Hf);return o}var lp=/&(#(?:\d+)|(?:#x[0-9A-Fa-f]+)|(?:\w+));?/ig;function Kf(o){return o.replace(lp,function(l,s){return s=s.toLowerCase(),s==="colon"?":":s.charAt(0)==="#"?s.charAt(1)==="x"?String.fromCharCode(parseInt(s.substring(2),16)):String.fromCharCode(+s.substring(1)):""})}var sp=/(^|[^\[])\^/g;function Me(o,l){o=typeof o=="string"?o:o.source,l=l||"";var s={replace:function(f,h){return h=h.source||h,h=h.replace(sp,"$1"),o=o.replace(f,h),s},getRegex:function(){return new RegExp(o,l)}};return s}var up=/[^\w:]/g,fp=/^$|^[a-z][a-z0-9+.-]*:|^[?#]/i;function Rf(o,l,s){if(o){var a;try{a=decodeURIComponent(Kf(s)).replace(up,"").toLowerCase()}catch{return null}if(a.indexOf("javascript:")===0||a.indexOf("vbscript:")===0||a.indexOf("data:")===0)return null}l&&!fp.test(s)&&(s=pp(l,s));try{s=encodeURI(s).replace(/%25/g,"%")}catch{return null}return s}var ao={},cp=/^[^:]+:\/*[^/]*$/,dp=/^([^:]+:)[\s\S]*$/,hp=/^([^:]+:\/*[^/]*)[\s\S]*$/;function pp(o,l){ao[" "+o]||(cp.test(o)?ao[" "+o]=o+"/":ao[" "+o]=lo(o,"/",!0)),o=ao[" "+o];var s=o.indexOf(":")===-1;return l.substring(0,2)==="//"?s?l:o.replace(dp,"$1")+l:l.charAt(0)==="/"?s?l:o.replace(hp,"$1")+l:o+l}var so={exec:function(){}};function Wf(o,l){var s=o.replace(/\|/g,function(h,c,d){for(var m=!1,y=c;--y>=0&&d[y]==="\\";)m=!m;return m?"|":" |"}),a=s.split(/ \|/),f=0;if(a[0].trim()||a.shift(),a.length>0&&!a[a.length-1].trim()&&a.pop(),a.length>l)a.splice(l);else for(;a.length1;)l&1&&(s+=o),l>>=1,o+=o;return s+o}function Uf(o,l,s,a){var f=l.href,h=l.title?gt(l.title):null,c=o[1].replace(/\\([\[\]])/g,"$1");if(o[0].charAt(0)!=="!"){a.state.inLink=!0;var d={type:"link",raw:s,href:f,title:h,text:c,tokens:a.inlineTokens(c)};return a.state.inLink=!1,d}return{type:"image",raw:s,href:f,title:h,text:gt(c)}}function mp(o,l){var s=o.match(/^(\s+)(?:```)/);if(s===null)return l;var a=s[1];return l.split(` `).map(function(f){var h=f.match(/^\s+/);if(h===null)return f;var c=h[0];return c.length>=a.length?f.slice(a.length):f}).join(` -`)}var so=function(){function o(s){this.options=s||_e.defaults}var l=o.prototype;return l.space=function(a){var f=this.rules.block.newline.exec(a);if(f&&f[0].length>0)return{type:"space",raw:f[0]}},l.code=function(a){var f=this.rules.block.code.exec(a);if(f){var h=f[0].replace(/^ {1,4}/gm,"");return{type:"code",raw:f[0],codeBlockStyle:"indented",text:this.options.pedantic?h:ao(h,` -`)}}},l.fences=function(a){var f=this.rules.block.fences.exec(a);if(f){var h=f[0],c=mp(h,f[3]||"");return{type:"code",raw:h,lang:f[2]?f[2].trim().replace(this.rules.inline._escapes,"$1"):f[2],text:c}}},l.heading=function(a){var f=this.rules.block.heading.exec(a);if(f){var h=f[2].trim();if(/#$/.test(h)){var c=ao(h,"#");(this.options.pedantic||!c||/ $/.test(c))&&(h=c.trim())}return{type:"heading",raw:f[0],depth:f[1].length,text:h,tokens:this.lexer.inline(h)}}},l.hr=function(a){var f=this.rules.block.hr.exec(a);if(f)return{type:"hr",raw:f[0]}},l.blockquote=function(a){var f=this.rules.block.blockquote.exec(a);if(f){var h=f[0].replace(/^ *>[ \t]?/gm,""),c=this.lexer.state.top;this.lexer.state.top=!0;var d=this.lexer.blockTokens(h);return this.lexer.state.top=c,{type:"blockquote",raw:f[0],tokens:d,text:h}}},l.list=function(a){var f=this.rules.block.list.exec(a);if(f){var h,c,d,v,y,x,D,S,F,B,L,T,N=f[1].trim(),z=N.length>1,O={type:"list",raw:"",ordered:z,start:z?+N.slice(0,-1):"",loose:!1,items:[]};N=z?"\\d{1,9}\\"+N.slice(-1):"\\"+N,this.options.pedantic&&(N=z?N:"[*+-]");for(var I=new RegExp("^( {0,3}"+N+")((?:[ ][^\\n]*)?(?:\\n|$))");a&&(T=!1,!(!(f=I.exec(a))||this.rules.block.hr.test(a)));){if(h=f[0],a=a.substring(h.length),S=f[2].split(` +`)}var uo=function(){function o(s){this.options=s||Be.defaults}var l=o.prototype;return l.space=function(a){var f=this.rules.block.newline.exec(a);if(f&&f[0].length>0)return{type:"space",raw:f[0]}},l.code=function(a){var f=this.rules.block.code.exec(a);if(f){var h=f[0].replace(/^ {1,4}/gm,"");return{type:"code",raw:f[0],codeBlockStyle:"indented",text:this.options.pedantic?h:lo(h,` +`)}}},l.fences=function(a){var f=this.rules.block.fences.exec(a);if(f){var h=f[0],c=mp(h,f[3]||"");return{type:"code",raw:h,lang:f[2]?f[2].trim().replace(this.rules.inline._escapes,"$1"):f[2],text:c}}},l.heading=function(a){var f=this.rules.block.heading.exec(a);if(f){var h=f[2].trim();if(/#$/.test(h)){var c=lo(h,"#");(this.options.pedantic||!c||/ $/.test(c))&&(h=c.trim())}return{type:"heading",raw:f[0],depth:f[1].length,text:h,tokens:this.lexer.inline(h)}}},l.hr=function(a){var f=this.rules.block.hr.exec(a);if(f)return{type:"hr",raw:f[0]}},l.blockquote=function(a){var f=this.rules.block.blockquote.exec(a);if(f){var h=f[0].replace(/^ *>[ \t]?/gm,""),c=this.lexer.state.top;this.lexer.state.top=!0;var d=this.lexer.blockTokens(h);return this.lexer.state.top=c,{type:"blockquote",raw:f[0],tokens:d,text:h}}},l.list=function(a){var f=this.rules.block.list.exec(a);if(f){var h,c,d,m,y,x,C,S,F,_,L,T,O=f[1].trim(),N=O.length>1,I={type:"list",raw:"",ordered:N,start:N?+O.slice(0,-1):"",loose:!1,items:[]};O=N?"\\d{1,9}\\"+O.slice(-1):"\\"+O,this.options.pedantic&&(O=N?O:"[*+-]");for(var P=new RegExp("^( {0,3}"+O+")((?:[ ][^\\n]*)?(?:\\n|$))");a&&(T=!1,!(!(f=P.exec(a))||this.rules.block.hr.test(a)));){if(h=f[0],a=a.substring(h.length),S=f[2].split(` `,1)[0].replace(/^\t+/,function(G){return" ".repeat(3*G.length)}),F=a.split(` -`,1)[0],this.options.pedantic?(v=2,L=S.trimLeft()):(v=f[2].search(/[^ ]/),v=v>4?1:v,L=S.slice(v),v+=f[1].length),x=!1,!S&&/^ *$/.test(F)&&(h+=F+` -`,a=a.substring(F.length+1),T=!0),!T)for(var U=new RegExp("^ {0,"+Math.min(3,v-1)+"}(?:[*+-]|\\d{1,9}[.)])((?:[ ][^\\n]*)?(?:\\n|$))"),j=new RegExp("^ {0,"+Math.min(3,v-1)+"}((?:- *){3,}|(?:_ *){3,}|(?:\\* *){3,})(?:\\n+|$)"),K=new RegExp("^ {0,"+Math.min(3,v-1)+"}(?:```|~~~)"),de=new RegExp("^ {0,"+Math.min(3,v-1)+"}#");a&&(B=a.split(` -`,1)[0],F=B,this.options.pedantic&&(F=F.replace(/^ {1,4}(?=( {4})*[^ ])/g," ")),!(K.test(F)||de.test(F)||U.test(F)||j.test(a)));){if(F.search(/[^ ]/)>=v||!F.trim())L+=` -`+F.slice(v);else{if(x||S.search(/[^ ]/)>=4||K.test(S)||de.test(S)||j.test(S))break;L+=` -`+F}!x&&!F.trim()&&(x=!0),h+=B+` -`,a=a.substring(B.length+1),S=F.slice(v)}O.loose||(D?O.loose=!0:/\n *\n *$/.test(h)&&(D=!0)),this.options.gfm&&(c=/^\[[ xX]\] /.exec(L),c&&(d=c[0]!=="[ ] ",L=L.replace(/^\[[ xX]\] +/,""))),O.items.push({type:"list_item",raw:h,task:!!c,checked:d,loose:!1,text:L}),O.raw+=h}O.items[O.items.length-1].raw=h.trimRight(),O.items[O.items.length-1].text=L.trimRight(),O.raw=O.raw.trimRight();var W=O.items.length;for(y=0;y0&&oe.some(function(G){return/\n.*\n/.test(G.raw)});O.loose=X}if(O.loose)for(y=0;y$/,"$1").replace(this.rules.inline._escapes,"$1"):"",d=f[3]?f[3].substring(1,f[3].length-1).replace(this.rules.inline._escapes,"$1"):f[3];return{type:"def",tag:h,raw:f[0],href:c,title:d}}},l.table=function(a){var f=this.rules.block.table.exec(a);if(f){var h={type:"table",header:qf(f[1]).map(function(D){return{text:D}}),align:f[2].replace(/^ *|\| *$/g,"").split(/ *\| */),rows:f[3]&&f[3].trim()?f[3].replace(/\n[ \t]*$/,"").split(` -`):[]};if(h.header.length===h.align.length){h.raw=f[0];var c=h.align.length,d,v,y,x;for(d=0;d/i.test(f[0])&&(this.lexer.state.inLink=!1),!this.lexer.state.inRawBlock&&/^<(pre|code|kbd|script)(\s|>)/i.test(f[0])?this.lexer.state.inRawBlock=!0:this.lexer.state.inRawBlock&&/^<\/(pre|code|kbd|script)(\s|>)/i.test(f[0])&&(this.lexer.state.inRawBlock=!1),{type:this.options.sanitize?"text":"html",raw:f[0],inLink:this.lexer.state.inLink,inRawBlock:this.lexer.state.inRawBlock,text:this.options.sanitize?this.options.sanitizer?this.options.sanitizer(f[0]):gt(f[0]):f[0]}},l.link=function(a){var f=this.rules.inline.link.exec(a);if(f){var h=f[2].trim();if(!this.options.pedantic&&/^$/.test(h))return;var c=ao(h.slice(0,-1),"\\");if((h.length-c.length)%2===0)return}else{var d=pp(f[2],"()");if(d>-1){var v=f[0].indexOf("!")===0?5:4,y=v+f[1].length+d;f[2]=f[2].substring(0,d),f[0]=f[0].substring(0,y).trim(),f[3]=""}}var x=f[2],D="";if(this.options.pedantic){var S=/^([^'"]*[^\s])\s+(['"])(.*)\2/.exec(x);S&&(x=S[1],D=S[3])}else D=f[3]?f[3].slice(1,-1):"";return x=x.trim(),/^$/.test(h)?x=x.slice(1):x=x.slice(1,-1)),Wf(f,{href:x&&x.replace(this.rules.inline._escapes,"$1"),title:D&&D.replace(this.rules.inline._escapes,"$1")},f[0],this.lexer)}},l.reflink=function(a,f){var h;if((h=this.rules.inline.reflink.exec(a))||(h=this.rules.inline.nolink.exec(a))){var c=(h[2]||h[1]).replace(/\s+/g," ");if(c=f[c.toLowerCase()],!c){var d=h[0].charAt(0);return{type:"text",raw:d,text:d}}return Wf(h,c,h[0],this.lexer)}},l.emStrong=function(a,f,h){h===void 0&&(h="");var c=this.rules.inline.emStrong.lDelim.exec(a);if(c&&!(c[3]&&h.match(/(?:[0-9A-Za-z\xAA\xB2\xB3\xB5\xB9\xBA\xBC-\xBE\xC0-\xD6\xD8-\xF6\xF8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0370-\u0374\u0376\u0377\u037A-\u037D\u037F\u0386\u0388-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5\u03F7-\u0481\u048A-\u052F\u0531-\u0556\u0559\u0560-\u0588\u05D0-\u05EA\u05EF-\u05F2\u0620-\u064A\u0660-\u0669\u066E\u066F\u0671-\u06D3\u06D5\u06E5\u06E6\u06EE-\u06FC\u06FF\u0710\u0712-\u072F\u074D-\u07A5\u07B1\u07C0-\u07EA\u07F4\u07F5\u07FA\u0800-\u0815\u081A\u0824\u0828\u0840-\u0858\u0860-\u086A\u0870-\u0887\u0889-\u088E\u08A0-\u08C9\u0904-\u0939\u093D\u0950\u0958-\u0961\u0966-\u096F\u0971-\u0980\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2\u09B6-\u09B9\u09BD\u09CE\u09DC\u09DD\u09DF-\u09E1\u09E6-\u09F1\u09F4-\u09F9\u09FC\u0A05-\u0A0A\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39\u0A59-\u0A5C\u0A5E\u0A66-\u0A6F\u0A72-\u0A74\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABD\u0AD0\u0AE0\u0AE1\u0AE6-\u0AEF\u0AF9\u0B05-\u0B0C\u0B0F\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B35-\u0B39\u0B3D\u0B5C\u0B5D\u0B5F-\u0B61\u0B66-\u0B6F\u0B71-\u0B77\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99\u0B9A\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BD0\u0BE6-\u0BF2\u0C05-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C39\u0C3D\u0C58-\u0C5A\u0C5D\u0C60\u0C61\u0C66-\u0C6F\u0C78-\u0C7E\u0C80\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3\u0CB5-\u0CB9\u0CBD\u0CDD\u0CDE\u0CE0\u0CE1\u0CE6-\u0CEF\u0CF1\u0CF2\u0D04-\u0D0C\u0D0E-\u0D10\u0D12-\u0D3A\u0D3D\u0D4E\u0D54-\u0D56\u0D58-\u0D61\u0D66-\u0D78\u0D7A-\u0D7F\u0D85-\u0D96\u0D9A-\u0DB1\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0DE6-\u0DEF\u0E01-\u0E30\u0E32\u0E33\u0E40-\u0E46\u0E50-\u0E59\u0E81\u0E82\u0E84\u0E86-\u0E8A\u0E8C-\u0EA3\u0EA5\u0EA7-\u0EB0\u0EB2\u0EB3\u0EBD\u0EC0-\u0EC4\u0EC6\u0ED0-\u0ED9\u0EDC-\u0EDF\u0F00\u0F20-\u0F33\u0F40-\u0F47\u0F49-\u0F6C\u0F88-\u0F8C\u1000-\u102A\u103F-\u1049\u1050-\u1055\u105A-\u105D\u1061\u1065\u1066\u106E-\u1070\u1075-\u1081\u108E\u1090-\u1099\u10A0-\u10C5\u10C7\u10CD\u10D0-\u10FA\u10FC-\u1248\u124A-\u124D\u1250-\u1256\u1258\u125A-\u125D\u1260-\u1288\u128A-\u128D\u1290-\u12B0\u12B2-\u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310\u1312-\u1315\u1318-\u135A\u1369-\u137C\u1380-\u138F\u13A0-\u13F5\u13F8-\u13FD\u1401-\u166C\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u16EE-\u16F8\u1700-\u1711\u171F-\u1731\u1740-\u1751\u1760-\u176C\u176E-\u1770\u1780-\u17B3\u17D7\u17DC\u17E0-\u17E9\u17F0-\u17F9\u1810-\u1819\u1820-\u1878\u1880-\u1884\u1887-\u18A8\u18AA\u18B0-\u18F5\u1900-\u191E\u1946-\u196D\u1970-\u1974\u1980-\u19AB\u19B0-\u19C9\u19D0-\u19DA\u1A00-\u1A16\u1A20-\u1A54\u1A80-\u1A89\u1A90-\u1A99\u1AA7\u1B05-\u1B33\u1B45-\u1B4C\u1B50-\u1B59\u1B83-\u1BA0\u1BAE-\u1BE5\u1C00-\u1C23\u1C40-\u1C49\u1C4D-\u1C7D\u1C80-\u1C88\u1C90-\u1CBA\u1CBD-\u1CBF\u1CE9-\u1CEC\u1CEE-\u1CF3\u1CF5\u1CF6\u1CFA\u1D00-\u1DBF\u1E00-\u1F15\u1F18-\u1F1D\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D\u1F5F-\u1F7D\u1F80-\u1FB4\u1FB6-\u1FBC\u1FBE\u1FC2-\u1FC4\u1FC6-\u1FCC\u1FD0-\u1FD3\u1FD6-\u1FDB\u1FE0-\u1FEC\u1FF2-\u1FF4\u1FF6-\u1FFC\u2070\u2071\u2074-\u2079\u207F-\u2089\u2090-\u209C\u2102\u2107\u210A-\u2113\u2115\u2119-\u211D\u2124\u2126\u2128\u212A-\u212D\u212F-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2150-\u2189\u2460-\u249B\u24EA-\u24FF\u2776-\u2793\u2C00-\u2CE4\u2CEB-\u2CEE\u2CF2\u2CF3\u2CFD\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D80-\u2D96\u2DA0-\u2DA6\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE\u2DD0-\u2DD6\u2DD8-\u2DDE\u2E2F\u3005-\u3007\u3021-\u3029\u3031-\u3035\u3038-\u303C\u3041-\u3096\u309D-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312F\u3131-\u318E\u3192-\u3195\u31A0-\u31BF\u31F0-\u31FF\u3220-\u3229\u3248-\u324F\u3251-\u325F\u3280-\u3289\u32B1-\u32BF\u3400-\u4DBF\u4E00-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA62B\uA640-\uA66E\uA67F-\uA69D\uA6A0-\uA6EF\uA717-\uA71F\uA722-\uA788\uA78B-\uA7CA\uA7D0\uA7D1\uA7D3\uA7D5-\uA7D9\uA7F2-\uA801\uA803-\uA805\uA807-\uA80A\uA80C-\uA822\uA830-\uA835\uA840-\uA873\uA882-\uA8B3\uA8D0-\uA8D9\uA8F2-\uA8F7\uA8FB\uA8FD\uA8FE\uA900-\uA925\uA930-\uA946\uA960-\uA97C\uA984-\uA9B2\uA9CF-\uA9D9\uA9E0-\uA9E4\uA9E6-\uA9FE\uAA00-\uAA28\uAA40-\uAA42\uAA44-\uAA4B\uAA50-\uAA59\uAA60-\uAA76\uAA7A\uAA7E-\uAAAF\uAAB1\uAAB5\uAAB6\uAAB9-\uAABD\uAAC0\uAAC2\uAADB-\uAADD\uAAE0-\uAAEA\uAAF2-\uAAF4\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E\uAB30-\uAB5A\uAB5C-\uAB69\uAB70-\uABE2\uABF0-\uABF9\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFA6D\uFA70-\uFAD9\uFB00-\uFB06\uFB13-\uFB17\uFB1D\uFB1F-\uFB28\uFB2A-\uFB36\uFB38-\uFB3C\uFB3E\uFB40\uFB41\uFB43\uFB44\uFB46-\uFBB1\uFBD3-\uFD3D\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFB\uFE70-\uFE74\uFE76-\uFEFC\uFF10-\uFF19\uFF21-\uFF3A\uFF41-\uFF5A\uFF66-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF\uFFD2-\uFFD7\uFFDA-\uFFDC]|\uD800[\uDC00-\uDC0B\uDC0D-\uDC26\uDC28-\uDC3A\uDC3C\uDC3D\uDC3F-\uDC4D\uDC50-\uDC5D\uDC80-\uDCFA\uDD07-\uDD33\uDD40-\uDD78\uDD8A\uDD8B\uDE80-\uDE9C\uDEA0-\uDED0\uDEE1-\uDEFB\uDF00-\uDF23\uDF2D-\uDF4A\uDF50-\uDF75\uDF80-\uDF9D\uDFA0-\uDFC3\uDFC8-\uDFCF\uDFD1-\uDFD5]|\uD801[\uDC00-\uDC9D\uDCA0-\uDCA9\uDCB0-\uDCD3\uDCD8-\uDCFB\uDD00-\uDD27\uDD30-\uDD63\uDD70-\uDD7A\uDD7C-\uDD8A\uDD8C-\uDD92\uDD94\uDD95\uDD97-\uDDA1\uDDA3-\uDDB1\uDDB3-\uDDB9\uDDBB\uDDBC\uDE00-\uDF36\uDF40-\uDF55\uDF60-\uDF67\uDF80-\uDF85\uDF87-\uDFB0\uDFB2-\uDFBA]|\uD802[\uDC00-\uDC05\uDC08\uDC0A-\uDC35\uDC37\uDC38\uDC3C\uDC3F-\uDC55\uDC58-\uDC76\uDC79-\uDC9E\uDCA7-\uDCAF\uDCE0-\uDCF2\uDCF4\uDCF5\uDCFB-\uDD1B\uDD20-\uDD39\uDD80-\uDDB7\uDDBC-\uDDCF\uDDD2-\uDE00\uDE10-\uDE13\uDE15-\uDE17\uDE19-\uDE35\uDE40-\uDE48\uDE60-\uDE7E\uDE80-\uDE9F\uDEC0-\uDEC7\uDEC9-\uDEE4\uDEEB-\uDEEF\uDF00-\uDF35\uDF40-\uDF55\uDF58-\uDF72\uDF78-\uDF91\uDFA9-\uDFAF]|\uD803[\uDC00-\uDC48\uDC80-\uDCB2\uDCC0-\uDCF2\uDCFA-\uDD23\uDD30-\uDD39\uDE60-\uDE7E\uDE80-\uDEA9\uDEB0\uDEB1\uDF00-\uDF27\uDF30-\uDF45\uDF51-\uDF54\uDF70-\uDF81\uDFB0-\uDFCB\uDFE0-\uDFF6]|\uD804[\uDC03-\uDC37\uDC52-\uDC6F\uDC71\uDC72\uDC75\uDC83-\uDCAF\uDCD0-\uDCE8\uDCF0-\uDCF9\uDD03-\uDD26\uDD36-\uDD3F\uDD44\uDD47\uDD50-\uDD72\uDD76\uDD83-\uDDB2\uDDC1-\uDDC4\uDDD0-\uDDDA\uDDDC\uDDE1-\uDDF4\uDE00-\uDE11\uDE13-\uDE2B\uDE80-\uDE86\uDE88\uDE8A-\uDE8D\uDE8F-\uDE9D\uDE9F-\uDEA8\uDEB0-\uDEDE\uDEF0-\uDEF9\uDF05-\uDF0C\uDF0F\uDF10\uDF13-\uDF28\uDF2A-\uDF30\uDF32\uDF33\uDF35-\uDF39\uDF3D\uDF50\uDF5D-\uDF61]|\uD805[\uDC00-\uDC34\uDC47-\uDC4A\uDC50-\uDC59\uDC5F-\uDC61\uDC80-\uDCAF\uDCC4\uDCC5\uDCC7\uDCD0-\uDCD9\uDD80-\uDDAE\uDDD8-\uDDDB\uDE00-\uDE2F\uDE44\uDE50-\uDE59\uDE80-\uDEAA\uDEB8\uDEC0-\uDEC9\uDF00-\uDF1A\uDF30-\uDF3B\uDF40-\uDF46]|\uD806[\uDC00-\uDC2B\uDCA0-\uDCF2\uDCFF-\uDD06\uDD09\uDD0C-\uDD13\uDD15\uDD16\uDD18-\uDD2F\uDD3F\uDD41\uDD50-\uDD59\uDDA0-\uDDA7\uDDAA-\uDDD0\uDDE1\uDDE3\uDE00\uDE0B-\uDE32\uDE3A\uDE50\uDE5C-\uDE89\uDE9D\uDEB0-\uDEF8]|\uD807[\uDC00-\uDC08\uDC0A-\uDC2E\uDC40\uDC50-\uDC6C\uDC72-\uDC8F\uDD00-\uDD06\uDD08\uDD09\uDD0B-\uDD30\uDD46\uDD50-\uDD59\uDD60-\uDD65\uDD67\uDD68\uDD6A-\uDD89\uDD98\uDDA0-\uDDA9\uDEE0-\uDEF2\uDFB0\uDFC0-\uDFD4]|\uD808[\uDC00-\uDF99]|\uD809[\uDC00-\uDC6E\uDC80-\uDD43]|\uD80B[\uDF90-\uDFF0]|[\uD80C\uD81C-\uD820\uD822\uD840-\uD868\uD86A-\uD86C\uD86F-\uD872\uD874-\uD879\uD880-\uD883][\uDC00-\uDFFF]|\uD80D[\uDC00-\uDC2E]|\uD811[\uDC00-\uDE46]|\uD81A[\uDC00-\uDE38\uDE40-\uDE5E\uDE60-\uDE69\uDE70-\uDEBE\uDEC0-\uDEC9\uDED0-\uDEED\uDF00-\uDF2F\uDF40-\uDF43\uDF50-\uDF59\uDF5B-\uDF61\uDF63-\uDF77\uDF7D-\uDF8F]|\uD81B[\uDE40-\uDE96\uDF00-\uDF4A\uDF50\uDF93-\uDF9F\uDFE0\uDFE1\uDFE3]|\uD821[\uDC00-\uDFF7]|\uD823[\uDC00-\uDCD5\uDD00-\uDD08]|\uD82B[\uDFF0-\uDFF3\uDFF5-\uDFFB\uDFFD\uDFFE]|\uD82C[\uDC00-\uDD22\uDD50-\uDD52\uDD64-\uDD67\uDD70-\uDEFB]|\uD82F[\uDC00-\uDC6A\uDC70-\uDC7C\uDC80-\uDC88\uDC90-\uDC99]|\uD834[\uDEE0-\uDEF3\uDF60-\uDF78]|\uD835[\uDC00-\uDC54\uDC56-\uDC9C\uDC9E\uDC9F\uDCA2\uDCA5\uDCA6\uDCA9-\uDCAC\uDCAE-\uDCB9\uDCBB\uDCBD-\uDCC3\uDCC5-\uDD05\uDD07-\uDD0A\uDD0D-\uDD14\uDD16-\uDD1C\uDD1E-\uDD39\uDD3B-\uDD3E\uDD40-\uDD44\uDD46\uDD4A-\uDD50\uDD52-\uDEA5\uDEA8-\uDEC0\uDEC2-\uDEDA\uDEDC-\uDEFA\uDEFC-\uDF14\uDF16-\uDF34\uDF36-\uDF4E\uDF50-\uDF6E\uDF70-\uDF88\uDF8A-\uDFA8\uDFAA-\uDFC2\uDFC4-\uDFCB\uDFCE-\uDFFF]|\uD837[\uDF00-\uDF1E]|\uD838[\uDD00-\uDD2C\uDD37-\uDD3D\uDD40-\uDD49\uDD4E\uDE90-\uDEAD\uDEC0-\uDEEB\uDEF0-\uDEF9]|\uD839[\uDFE0-\uDFE6\uDFE8-\uDFEB\uDFED\uDFEE\uDFF0-\uDFFE]|\uD83A[\uDC00-\uDCC4\uDCC7-\uDCCF\uDD00-\uDD43\uDD4B\uDD50-\uDD59]|\uD83B[\uDC71-\uDCAB\uDCAD-\uDCAF\uDCB1-\uDCB4\uDD01-\uDD2D\uDD2F-\uDD3D\uDE00-\uDE03\uDE05-\uDE1F\uDE21\uDE22\uDE24\uDE27\uDE29-\uDE32\uDE34-\uDE37\uDE39\uDE3B\uDE42\uDE47\uDE49\uDE4B\uDE4D-\uDE4F\uDE51\uDE52\uDE54\uDE57\uDE59\uDE5B\uDE5D\uDE5F\uDE61\uDE62\uDE64\uDE67-\uDE6A\uDE6C-\uDE72\uDE74-\uDE77\uDE79-\uDE7C\uDE7E\uDE80-\uDE89\uDE8B-\uDE9B\uDEA1-\uDEA3\uDEA5-\uDEA9\uDEAB-\uDEBB]|\uD83C[\uDD00-\uDD0C]|\uD83E[\uDFF0-\uDFF9]|\uD869[\uDC00-\uDEDF\uDF00-\uDFFF]|\uD86D[\uDC00-\uDF38\uDF40-\uDFFF]|\uD86E[\uDC00-\uDC1D\uDC20-\uDFFF]|\uD873[\uDC00-\uDEA1\uDEB0-\uDFFF]|\uD87A[\uDC00-\uDFE0]|\uD87E[\uDC00-\uDE1D]|\uD884[\uDC00-\uDF4A])/))){var d=c[1]||c[2]||"";if(!d||d&&(h===""||this.rules.inline.punctuation.exec(h))){var v=c[0].length-1,y,x,D=v,S=0,F=c[0][0]==="*"?this.rules.inline.emStrong.rDelimAst:this.rules.inline.emStrong.rDelimUnd;for(F.lastIndex=0,f=f.slice(-1*a.length+v);(c=F.exec(f))!=null;)if(y=c[1]||c[2]||c[3]||c[4]||c[5]||c[6],!!y){if(x=y.length,c[3]||c[4]){D+=x;continue}else if((c[5]||c[6])&&v%3&&!((v+x)%3)){S+=x;continue}if(D-=x,!(D>0)){x=Math.min(x,x+D+S);var B=a.slice(0,v+c.index+(c[0].length-y.length)+x);if(Math.min(v,x)%2){var L=B.slice(1,-1);return{type:"em",raw:B,text:L,tokens:this.lexer.inlineTokens(L)}}var T=B.slice(2,-2);return{type:"strong",raw:B,text:T,tokens:this.lexer.inlineTokens(T)}}}}}},l.codespan=function(a){var f=this.rules.inline.code.exec(a);if(f){var h=f[2].replace(/\n/g," "),c=/[^ ]/.test(h),d=/^ /.test(h)&&/ $/.test(h);return c&&d&&(h=h.substring(1,h.length-1)),h=gt(h,!0),{type:"codespan",raw:f[0],text:h}}},l.br=function(a){var f=this.rules.inline.br.exec(a);if(f)return{type:"br",raw:f[0]}},l.del=function(a){var f=this.rules.inline.del.exec(a);if(f)return{type:"del",raw:f[0],text:f[2],tokens:this.lexer.inlineTokens(f[2])}},l.autolink=function(a,f){var h=this.rules.inline.autolink.exec(a);if(h){var c,d;return h[2]==="@"?(c=gt(this.options.mangle?f(h[1]):h[1]),d="mailto:"+c):(c=gt(h[1]),d=c),{type:"link",raw:h[0],text:c,href:d,tokens:[{type:"text",raw:c,text:c}]}}},l.url=function(a,f){var h;if(h=this.rules.inline.url.exec(a)){var c,d;if(h[2]==="@")c=gt(this.options.mangle?f(h[0]):h[0]),d="mailto:"+c;else{var v;do v=h[0],h[0]=this.rules.inline._backpedal.exec(h[0])[0];while(v!==h[0]);c=gt(h[0]),h[1]==="www."?d="http://"+h[0]:d=h[0]}return{type:"link",raw:h[0],text:c,href:d,tokens:[{type:"text",raw:c,text:c}]}}},l.inlineText=function(a,f){var h=this.rules.inline.text.exec(a);if(h){var c;return this.lexer.state.inRawBlock?c=this.options.sanitize?this.options.sanitizer?this.options.sanitizer(h[0]):gt(h[0]):h[0]:c=gt(this.options.smartypants?f(h[0]):h[0]),{type:"text",raw:h[0],text:c}}},o}(),ce={newline:/^(?: *(?:\n|$))+/,code:/^( {4}[^\n]+(?:\n(?: *(?:\n|$))*)?)+/,fences:/^ {0,3}(`{3,}(?=[^`\n]*(?:\n|$))|~{3,})([^\n]*)(?:\n|$)(?:|([\s\S]*?)(?:\n|$))(?: {0,3}\1[~`]* *(?=\n|$)|$)/,hr:/^ {0,3}((?:-[\t ]*){3,}|(?:_[ \t]*){3,}|(?:\*[ \t]*){3,})(?:\n+|$)/,heading:/^ {0,3}(#{1,6})(?=\s|$)(.*)(?:\n+|$)/,blockquote:/^( {0,3}> ?(paragraph|[^\n]*)(?:\n|$))+/,list:/^( {0,3}bull)([ \t][^\n]+?)?(?:\n|$)/,html:"^ {0,3}(?:<(script|pre|style|textarea)[\\s>][\\s\\S]*?(?:[^\\n]*\\n+|$)|comment[^\\n]*(\\n+|$)|<\\?[\\s\\S]*?(?:\\?>\\n*|$)|\\n*|$)|\\n*|$)|)[\\s\\S]*?(?:(?:\\n *)+\\n|$)|<(?!script|pre|style|textarea)([a-z][\\w-]*)(?:attribute)*? */?>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n *)+\\n|$)|(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n *)+\\n|$))",def:/^ {0,3}\[(label)\]: *(?:\n *)?([^<\s][^\s]*|<.*?>)(?:(?: +(?:\n *)?| *\n *)(title))? *(?:\n+|$)/,table:lo,lheading:/^((?:.|\n(?!\n))+?)\n {0,3}(=+|-+) *(?:\n+|$)/,_paragraph:/^([^\n]+(?:\n(?!hr|heading|lheading|blockquote|fences|list|html|table| +\n)[^\n]+)*)/,text:/^[^\n]+/};ce._label=/(?!\s*\])(?:\\.|[^\[\]\\])+/;ce._title=/(?:"(?:\\"?|[^"\\])*"|'[^'\n]*(?:\n[^'\n]+)*\n?'|\([^()]*\))/;ce.def=Me(ce.def).replace("label",ce._label).replace("title",ce._title).getRegex();ce.bullet=/(?:[*+-]|\d{1,9}[.)])/;ce.listItemStart=Me(/^( *)(bull) */).replace("bull",ce.bullet).getRegex();ce.list=Me(ce.list).replace(/bull/g,ce.bullet).replace("hr","\\n+(?=\\1?(?:(?:- *){3,}|(?:_ *){3,}|(?:\\* *){3,})(?:\\n+|$))").replace("def","\\n+(?="+ce.def.source+")").getRegex();ce._tag="address|article|aside|base|basefont|blockquote|body|caption|center|col|colgroup|dd|details|dialog|dir|div|dl|dt|fieldset|figcaption|figure|footer|form|frame|frameset|h[1-6]|head|header|hr|html|iframe|legend|li|link|main|menu|menuitem|meta|nav|noframes|ol|optgroup|option|p|param|section|source|summary|table|tbody|td|tfoot|th|thead|title|tr|track|ul";ce._comment=/|$)/;ce.html=Me(ce.html,"i").replace("comment",ce._comment).replace("tag",ce._tag).replace("attribute",/ +[a-zA-Z:_][\w.:-]*(?: *= *"[^"\n]*"| *= *'[^'\n]*'| *= *[^\s"'=<>`]+)?/).getRegex();ce.paragraph=Me(ce._paragraph).replace("hr",ce.hr).replace("heading"," {0,3}#{1,6} ").replace("|lheading","").replace("|table","").replace("blockquote"," {0,3}>").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)]) ").replace("html",")|<(?:script|pre|style|textarea|!--)").replace("tag",ce._tag).getRegex();ce.blockquote=Me(ce.blockquote).replace("paragraph",ce.paragraph).getRegex();ce.normal=_t({},ce);ce.gfm=_t({},ce.normal,{table:"^ *([^\\n ].*\\|.*)\\n {0,3}(?:\\| *)?(:?-+:? *(?:\\| *:?-+:? *)*)(?:\\| *)?(?:\\n((?:(?! *\\n|hr|heading|blockquote|code|fences|list|html).*(?:\\n|$))*)\\n*|$)"});ce.gfm.table=Me(ce.gfm.table).replace("hr",ce.hr).replace("heading"," {0,3}#{1,6} ").replace("blockquote"," {0,3}>").replace("code"," {4}[^\\n]").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)]) ").replace("html",")|<(?:script|pre|style|textarea|!--)").replace("tag",ce._tag).getRegex();ce.gfm.paragraph=Me(ce._paragraph).replace("hr",ce.hr).replace("heading"," {0,3}#{1,6} ").replace("|lheading","").replace("table",ce.gfm.table).replace("blockquote"," {0,3}>").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)]) ").replace("html",")|<(?:script|pre|style|textarea|!--)").replace("tag",ce._tag).getRegex();ce.pedantic=_t({},ce.normal,{html:Me(`^ *(?:comment *(?:\\n|\\s*$)|<(tag)[\\s\\S]+? *(?:\\n{2,}|\\s*$)|\\s]*)*?/?> *(?:\\n{2,}|\\s*$))`).replace("comment",ce._comment).replace(/tag/g,"(?!(?:a|em|strong|small|s|cite|q|dfn|abbr|data|time|code|var|samp|kbd|sub|sup|i|b|u|mark|ruby|rt|rp|bdi|bdo|span|br|wbr|ins|del|img)\\b)\\w+(?!:|[^\\w\\s@]*@)\\b").getRegex(),def:/^ *\[([^\]]+)\]: *]+)>?(?: +(["(][^\n]+[")]))? *(?:\n+|$)/,heading:/^(#{1,6})(.*)(?:\n+|$)/,fences:lo,lheading:/^(.+?)\n {0,3}(=+|-+) *(?:\n+|$)/,paragraph:Me(ce.normal._paragraph).replace("hr",ce.hr).replace("heading",` *#{1,6} *[^ -]`).replace("lheading",ce.lheading).replace("blockquote"," {0,3}>").replace("|fences","").replace("|list","").replace("|html","").getRegex()});var ne={escape:/^\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/,autolink:/^<(scheme:[^\s\x00-\x1f<>]*|email)>/,url:lo,tag:"^comment|^|^<[a-zA-Z][\\w-]*(?:attribute)*?\\s*/?>|^<\\?[\\s\\S]*?\\?>|^|^",link:/^!?\[(label)\]\(\s*(href)(?:\s+(title))?\s*\)/,reflink:/^!?\[(label)\]\[(ref)\]/,nolink:/^!?\[(ref)\](?:\[\])?/,reflinkSearch:"reflink|nolink(?!\\()",emStrong:{lDelim:/^(?:\*+(?:([punct_])|[^\s*]))|^_+(?:([punct*])|([^\s_]))/,rDelimAst:/^(?:[^_*\\]|\\.)*?\_\_(?:[^_*\\]|\\.)*?\*(?:[^_*\\]|\\.)*?(?=\_\_)|(?:[^*\\]|\\.)+(?=[^*])|[punct_](\*+)(?=[\s]|$)|(?:[^punct*_\s\\]|\\.)(\*+)(?=[punct_\s]|$)|[punct_\s](\*+)(?=[^punct*_\s])|[\s](\*+)(?=[punct_])|[punct_](\*+)(?=[punct_])|(?:[^punct*_\s\\]|\\.)(\*+)(?=[^punct*_\s])/,rDelimUnd:/^(?:[^_*\\]|\\.)*?\*\*(?:[^_*\\]|\\.)*?\_(?:[^_*\\]|\\.)*?(?=\*\*)|(?:[^_\\]|\\.)+(?=[^_])|[punct*](\_+)(?=[\s]|$)|(?:[^punct*_\s\\]|\\.)(\_+)(?=[punct*\s]|$)|[punct*\s](\_+)(?=[^punct*_\s])|[\s](\_+)(?=[punct*])|[punct*](\_+)(?=[punct*])/},code:/^(`+)([^`]|[^`][\s\S]*?[^`])\1(?!`)/,br:/^( {2,}|\\)\n(?!\s*$)/,del:lo,text:/^(`+|[^`])(?:(?= {2,}\n)|[\s\S]*?(?:(?=[\\?@\\[\\]`^{|}~";ne.punctuation=Me(ne.punctuation).replace(/punctuation/g,ne._punctuation).getRegex();ne.blockSkip=/\[[^\]]*?\]\([^\)]*?\)|`[^`]*?`|<[^>]*?>/g;ne.escapedEmSt=/(?:^|[^\\])(?:\\\\)*\\[*_]/g;ne._comment=Me(ce._comment).replace("(?:-->|$)","-->").getRegex();ne.emStrong.lDelim=Me(ne.emStrong.lDelim).replace(/punct/g,ne._punctuation).getRegex();ne.emStrong.rDelimAst=Me(ne.emStrong.rDelimAst,"g").replace(/punct/g,ne._punctuation).getRegex();ne.emStrong.rDelimUnd=Me(ne.emStrong.rDelimUnd,"g").replace(/punct/g,ne._punctuation).getRegex();ne._escapes=/\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/g;ne._scheme=/[a-zA-Z][a-zA-Z0-9+.-]{1,31}/;ne._email=/[a-zA-Z0-9.!#$%&'*+/=?^_`{|}~-]+(@)[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)+(?![-_])/;ne.autolink=Me(ne.autolink).replace("scheme",ne._scheme).replace("email",ne._email).getRegex();ne._attribute=/\s+[a-zA-Z:_][\w.:-]*(?:\s*=\s*"[^"]*"|\s*=\s*'[^']*'|\s*=\s*[^\s"'=<>`]+)?/;ne.tag=Me(ne.tag).replace("comment",ne._comment).replace("attribute",ne._attribute).getRegex();ne._label=/(?:\[(?:\\.|[^\[\]\\])*\]|\\.|`[^`]*`|[^\[\]\\`])*?/;ne._href=/<(?:\\.|[^\n<>\\])+>|[^\s\x00-\x1f]*/;ne._title=/"(?:\\"?|[^"\\])*"|'(?:\\'?|[^'\\])*'|\((?:\\\)?|[^)\\])*\)/;ne.link=Me(ne.link).replace("label",ne._label).replace("href",ne._href).replace("title",ne._title).getRegex();ne.reflink=Me(ne.reflink).replace("label",ne._label).replace("ref",ce._label).getRegex();ne.nolink=Me(ne.nolink).replace("ref",ce._label).getRegex();ne.reflinkSearch=Me(ne.reflinkSearch,"g").replace("reflink",ne.reflink).replace("nolink",ne.nolink).getRegex();ne.normal=_t({},ne);ne.pedantic=_t({},ne.normal,{strong:{start:/^__|\*\*/,middle:/^__(?=\S)([\s\S]*?\S)__(?!_)|^\*\*(?=\S)([\s\S]*?\S)\*\*(?!\*)/,endAst:/\*\*(?!\*)/g,endUnd:/__(?!_)/g},em:{start:/^_|\*/,middle:/^()\*(?=\S)([\s\S]*?\S)\*(?!\*)|^_(?=\S)([\s\S]*?\S)_(?!_)/,endAst:/\*(?!\*)/g,endUnd:/_(?!_)/g},link:Me(/^!?\[(label)\]\((.*?)\)/).replace("label",ne._label).getRegex(),reflink:Me(/^!?\[(label)\]\s*\[([^\]]*)\]/).replace("label",ne._label).getRegex()});ne.gfm=_t({},ne.normal,{escape:Me(ne.escape).replace("])","~|])").getRegex(),_extended_email:/[A-Za-z0-9._+-]+(@)[a-zA-Z0-9-_]+(?:\.[a-zA-Z0-9-_]*[a-zA-Z0-9])+(?![-_])/,url:/^((?:ftp|https?):\/\/|www\.)(?:[a-zA-Z0-9\-]+\.?)+[^\s<]*|^email/,_backpedal:/(?:[^?!.,:;*_'"~()&]+|\([^)]*\)|&(?![a-zA-Z0-9]+;$)|[?!.,:;*_'"~)]+(?!$))+/,del:/^(~~?)(?=[^\s~])([\s\S]*?[^\s~])\1(?=[^~]|$)/,text:/^([`~]+|[^`~])(?:(?= {2,}\n)|(?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)|[\s\S]*?(?:(?=[\\.5&&(a="x"+a.toString(16)),l+="&#"+a+";";return l}var yi=function(){function o(s){this.tokens=[],this.tokens.links=Object.create(null),this.options=s||_e.defaults,this.options.tokenizer=this.options.tokenizer||new so,this.tokenizer=this.options.tokenizer,this.tokenizer.options=this.options,this.tokenizer.lexer=this,this.inlineQueue=[],this.state={inLink:!1,inRawBlock:!1,top:!0};var a={block:ce.normal,inline:ne.normal};this.options.pedantic?(a.block=ce.pedantic,a.inline=ne.pedantic):this.options.gfm&&(a.block=ce.gfm,this.options.breaks?a.inline=ne.breaks:a.inline=ne.gfm),this.tokenizer.rules=a}o.lex=function(a,f){var h=new o(f);return h.lex(a)},o.lexInline=function(a,f){var h=new o(f);return h.inlineTokens(a)};var l=o.prototype;return l.lex=function(a){a=a.replace(/\r\n|\r/g,` -`),this.blockTokens(a,this.tokens);for(var f;f=this.inlineQueue.shift();)this.inlineTokens(f.src,f.tokens);return this.tokens},l.blockTokens=function(a,f){var h=this;f===void 0&&(f=[]),this.options.pedantic?a=a.replace(/\t/g," ").replace(/^ +$/gm,""):a=a.replace(/^( *)(\t+)/gm,function(D,S,F){return S+" ".repeat(F.length)});for(var c,d,v,y;a;)if(!(this.options.extensions&&this.options.extensions.block&&this.options.extensions.block.some(function(D){return(c=D.call({lexer:h},a,f))?(a=a.substring(c.raw.length),f.push(c),!0):!1}))){if(c=this.tokenizer.space(a)){a=a.substring(c.raw.length),c.raw.length===1&&f.length>0?f[f.length-1].raw+=` +`,1)[0],this.options.pedantic?(m=2,L=S.trimLeft()):(m=f[2].search(/[^ ]/),m=m>4?1:m,L=S.slice(m),m+=f[1].length),x=!1,!S&&/^ *$/.test(F)&&(h+=F+` +`,a=a.substring(F.length+1),T=!0),!T)for(var U=new RegExp("^ {0,"+Math.min(3,m-1)+"}(?:[*+-]|\\d{1,9}[.)])((?:[ ][^\\n]*)?(?:\\n|$))"),j=new RegExp("^ {0,"+Math.min(3,m-1)+"}((?:- *){3,}|(?:_ *){3,}|(?:\\* *){3,})(?:\\n+|$)"),K=new RegExp("^ {0,"+Math.min(3,m-1)+"}(?:```|~~~)"),de=new RegExp("^ {0,"+Math.min(3,m-1)+"}#");a&&(_=a.split(` +`,1)[0],F=_,this.options.pedantic&&(F=F.replace(/^ {1,4}(?=( {4})*[^ ])/g," ")),!(K.test(F)||de.test(F)||U.test(F)||j.test(a)));){if(F.search(/[^ ]/)>=m||!F.trim())L+=` +`+F.slice(m);else{if(x||S.search(/[^ ]/)>=4||K.test(S)||de.test(S)||j.test(S))break;L+=` +`+F}!x&&!F.trim()&&(x=!0),h+=_+` +`,a=a.substring(_.length+1),S=F.slice(m)}I.loose||(C?I.loose=!0:/\n *\n *$/.test(h)&&(C=!0)),this.options.gfm&&(c=/^\[[ xX]\] /.exec(L),c&&(d=c[0]!=="[ ] ",L=L.replace(/^\[[ xX]\] +/,""))),I.items.push({type:"list_item",raw:h,task:!!c,checked:d,loose:!1,text:L}),I.raw+=h}I.items[I.items.length-1].raw=h.trimRight(),I.items[I.items.length-1].text=L.trimRight(),I.raw=I.raw.trimRight();var q=I.items.length;for(y=0;y0&&oe.some(function(G){return/\n.*\n/.test(G.raw)});I.loose=X}if(I.loose)for(y=0;y$/,"$1").replace(this.rules.inline._escapes,"$1"):"",d=f[3]?f[3].substring(1,f[3].length-1).replace(this.rules.inline._escapes,"$1"):f[3];return{type:"def",tag:h,raw:f[0],href:c,title:d}}},l.table=function(a){var f=this.rules.block.table.exec(a);if(f){var h={type:"table",header:Wf(f[1]).map(function(C){return{text:C}}),align:f[2].replace(/^ *|\| *$/g,"").split(/ *\| */),rows:f[3]&&f[3].trim()?f[3].replace(/\n[ \t]*$/,"").split(` +`):[]};if(h.header.length===h.align.length){h.raw=f[0];var c=h.align.length,d,m,y,x;for(d=0;d/i.test(f[0])&&(this.lexer.state.inLink=!1),!this.lexer.state.inRawBlock&&/^<(pre|code|kbd|script)(\s|>)/i.test(f[0])?this.lexer.state.inRawBlock=!0:this.lexer.state.inRawBlock&&/^<\/(pre|code|kbd|script)(\s|>)/i.test(f[0])&&(this.lexer.state.inRawBlock=!1),{type:this.options.sanitize?"text":"html",raw:f[0],inLink:this.lexer.state.inLink,inRawBlock:this.lexer.state.inRawBlock,text:this.options.sanitize?this.options.sanitizer?this.options.sanitizer(f[0]):gt(f[0]):f[0]}},l.link=function(a){var f=this.rules.inline.link.exec(a);if(f){var h=f[2].trim();if(!this.options.pedantic&&/^$/.test(h))return;var c=lo(h.slice(0,-1),"\\");if((h.length-c.length)%2===0)return}else{var d=gp(f[2],"()");if(d>-1){var m=f[0].indexOf("!")===0?5:4,y=m+f[1].length+d;f[2]=f[2].substring(0,d),f[0]=f[0].substring(0,y).trim(),f[3]=""}}var x=f[2],C="";if(this.options.pedantic){var S=/^([^'"]*[^\s])\s+(['"])(.*)\2/.exec(x);S&&(x=S[1],C=S[3])}else C=f[3]?f[3].slice(1,-1):"";return x=x.trim(),/^$/.test(h)?x=x.slice(1):x=x.slice(1,-1)),Uf(f,{href:x&&x.replace(this.rules.inline._escapes,"$1"),title:C&&C.replace(this.rules.inline._escapes,"$1")},f[0],this.lexer)}},l.reflink=function(a,f){var h;if((h=this.rules.inline.reflink.exec(a))||(h=this.rules.inline.nolink.exec(a))){var c=(h[2]||h[1]).replace(/\s+/g," ");if(c=f[c.toLowerCase()],!c){var d=h[0].charAt(0);return{type:"text",raw:d,text:d}}return Uf(h,c,h[0],this.lexer)}},l.emStrong=function(a,f,h){h===void 0&&(h="");var c=this.rules.inline.emStrong.lDelim.exec(a);if(c&&!(c[3]&&h.match(/(?:[0-9A-Za-z\xAA\xB2\xB3\xB5\xB9\xBA\xBC-\xBE\xC0-\xD6\xD8-\xF6\xF8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0370-\u0374\u0376\u0377\u037A-\u037D\u037F\u0386\u0388-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5\u03F7-\u0481\u048A-\u052F\u0531-\u0556\u0559\u0560-\u0588\u05D0-\u05EA\u05EF-\u05F2\u0620-\u064A\u0660-\u0669\u066E\u066F\u0671-\u06D3\u06D5\u06E5\u06E6\u06EE-\u06FC\u06FF\u0710\u0712-\u072F\u074D-\u07A5\u07B1\u07C0-\u07EA\u07F4\u07F5\u07FA\u0800-\u0815\u081A\u0824\u0828\u0840-\u0858\u0860-\u086A\u0870-\u0887\u0889-\u088E\u08A0-\u08C9\u0904-\u0939\u093D\u0950\u0958-\u0961\u0966-\u096F\u0971-\u0980\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2\u09B6-\u09B9\u09BD\u09CE\u09DC\u09DD\u09DF-\u09E1\u09E6-\u09F1\u09F4-\u09F9\u09FC\u0A05-\u0A0A\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39\u0A59-\u0A5C\u0A5E\u0A66-\u0A6F\u0A72-\u0A74\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABD\u0AD0\u0AE0\u0AE1\u0AE6-\u0AEF\u0AF9\u0B05-\u0B0C\u0B0F\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B35-\u0B39\u0B3D\u0B5C\u0B5D\u0B5F-\u0B61\u0B66-\u0B6F\u0B71-\u0B77\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99\u0B9A\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BD0\u0BE6-\u0BF2\u0C05-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C39\u0C3D\u0C58-\u0C5A\u0C5D\u0C60\u0C61\u0C66-\u0C6F\u0C78-\u0C7E\u0C80\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3\u0CB5-\u0CB9\u0CBD\u0CDD\u0CDE\u0CE0\u0CE1\u0CE6-\u0CEF\u0CF1\u0CF2\u0D04-\u0D0C\u0D0E-\u0D10\u0D12-\u0D3A\u0D3D\u0D4E\u0D54-\u0D56\u0D58-\u0D61\u0D66-\u0D78\u0D7A-\u0D7F\u0D85-\u0D96\u0D9A-\u0DB1\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0DE6-\u0DEF\u0E01-\u0E30\u0E32\u0E33\u0E40-\u0E46\u0E50-\u0E59\u0E81\u0E82\u0E84\u0E86-\u0E8A\u0E8C-\u0EA3\u0EA5\u0EA7-\u0EB0\u0EB2\u0EB3\u0EBD\u0EC0-\u0EC4\u0EC6\u0ED0-\u0ED9\u0EDC-\u0EDF\u0F00\u0F20-\u0F33\u0F40-\u0F47\u0F49-\u0F6C\u0F88-\u0F8C\u1000-\u102A\u103F-\u1049\u1050-\u1055\u105A-\u105D\u1061\u1065\u1066\u106E-\u1070\u1075-\u1081\u108E\u1090-\u1099\u10A0-\u10C5\u10C7\u10CD\u10D0-\u10FA\u10FC-\u1248\u124A-\u124D\u1250-\u1256\u1258\u125A-\u125D\u1260-\u1288\u128A-\u128D\u1290-\u12B0\u12B2-\u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310\u1312-\u1315\u1318-\u135A\u1369-\u137C\u1380-\u138F\u13A0-\u13F5\u13F8-\u13FD\u1401-\u166C\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u16EE-\u16F8\u1700-\u1711\u171F-\u1731\u1740-\u1751\u1760-\u176C\u176E-\u1770\u1780-\u17B3\u17D7\u17DC\u17E0-\u17E9\u17F0-\u17F9\u1810-\u1819\u1820-\u1878\u1880-\u1884\u1887-\u18A8\u18AA\u18B0-\u18F5\u1900-\u191E\u1946-\u196D\u1970-\u1974\u1980-\u19AB\u19B0-\u19C9\u19D0-\u19DA\u1A00-\u1A16\u1A20-\u1A54\u1A80-\u1A89\u1A90-\u1A99\u1AA7\u1B05-\u1B33\u1B45-\u1B4C\u1B50-\u1B59\u1B83-\u1BA0\u1BAE-\u1BE5\u1C00-\u1C23\u1C40-\u1C49\u1C4D-\u1C7D\u1C80-\u1C88\u1C90-\u1CBA\u1CBD-\u1CBF\u1CE9-\u1CEC\u1CEE-\u1CF3\u1CF5\u1CF6\u1CFA\u1D00-\u1DBF\u1E00-\u1F15\u1F18-\u1F1D\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D\u1F5F-\u1F7D\u1F80-\u1FB4\u1FB6-\u1FBC\u1FBE\u1FC2-\u1FC4\u1FC6-\u1FCC\u1FD0-\u1FD3\u1FD6-\u1FDB\u1FE0-\u1FEC\u1FF2-\u1FF4\u1FF6-\u1FFC\u2070\u2071\u2074-\u2079\u207F-\u2089\u2090-\u209C\u2102\u2107\u210A-\u2113\u2115\u2119-\u211D\u2124\u2126\u2128\u212A-\u212D\u212F-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2150-\u2189\u2460-\u249B\u24EA-\u24FF\u2776-\u2793\u2C00-\u2CE4\u2CEB-\u2CEE\u2CF2\u2CF3\u2CFD\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D80-\u2D96\u2DA0-\u2DA6\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE\u2DD0-\u2DD6\u2DD8-\u2DDE\u2E2F\u3005-\u3007\u3021-\u3029\u3031-\u3035\u3038-\u303C\u3041-\u3096\u309D-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312F\u3131-\u318E\u3192-\u3195\u31A0-\u31BF\u31F0-\u31FF\u3220-\u3229\u3248-\u324F\u3251-\u325F\u3280-\u3289\u32B1-\u32BF\u3400-\u4DBF\u4E00-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA62B\uA640-\uA66E\uA67F-\uA69D\uA6A0-\uA6EF\uA717-\uA71F\uA722-\uA788\uA78B-\uA7CA\uA7D0\uA7D1\uA7D3\uA7D5-\uA7D9\uA7F2-\uA801\uA803-\uA805\uA807-\uA80A\uA80C-\uA822\uA830-\uA835\uA840-\uA873\uA882-\uA8B3\uA8D0-\uA8D9\uA8F2-\uA8F7\uA8FB\uA8FD\uA8FE\uA900-\uA925\uA930-\uA946\uA960-\uA97C\uA984-\uA9B2\uA9CF-\uA9D9\uA9E0-\uA9E4\uA9E6-\uA9FE\uAA00-\uAA28\uAA40-\uAA42\uAA44-\uAA4B\uAA50-\uAA59\uAA60-\uAA76\uAA7A\uAA7E-\uAAAF\uAAB1\uAAB5\uAAB6\uAAB9-\uAABD\uAAC0\uAAC2\uAADB-\uAADD\uAAE0-\uAAEA\uAAF2-\uAAF4\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E\uAB30-\uAB5A\uAB5C-\uAB69\uAB70-\uABE2\uABF0-\uABF9\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFA6D\uFA70-\uFAD9\uFB00-\uFB06\uFB13-\uFB17\uFB1D\uFB1F-\uFB28\uFB2A-\uFB36\uFB38-\uFB3C\uFB3E\uFB40\uFB41\uFB43\uFB44\uFB46-\uFBB1\uFBD3-\uFD3D\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFB\uFE70-\uFE74\uFE76-\uFEFC\uFF10-\uFF19\uFF21-\uFF3A\uFF41-\uFF5A\uFF66-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF\uFFD2-\uFFD7\uFFDA-\uFFDC]|\uD800[\uDC00-\uDC0B\uDC0D-\uDC26\uDC28-\uDC3A\uDC3C\uDC3D\uDC3F-\uDC4D\uDC50-\uDC5D\uDC80-\uDCFA\uDD07-\uDD33\uDD40-\uDD78\uDD8A\uDD8B\uDE80-\uDE9C\uDEA0-\uDED0\uDEE1-\uDEFB\uDF00-\uDF23\uDF2D-\uDF4A\uDF50-\uDF75\uDF80-\uDF9D\uDFA0-\uDFC3\uDFC8-\uDFCF\uDFD1-\uDFD5]|\uD801[\uDC00-\uDC9D\uDCA0-\uDCA9\uDCB0-\uDCD3\uDCD8-\uDCFB\uDD00-\uDD27\uDD30-\uDD63\uDD70-\uDD7A\uDD7C-\uDD8A\uDD8C-\uDD92\uDD94\uDD95\uDD97-\uDDA1\uDDA3-\uDDB1\uDDB3-\uDDB9\uDDBB\uDDBC\uDE00-\uDF36\uDF40-\uDF55\uDF60-\uDF67\uDF80-\uDF85\uDF87-\uDFB0\uDFB2-\uDFBA]|\uD802[\uDC00-\uDC05\uDC08\uDC0A-\uDC35\uDC37\uDC38\uDC3C\uDC3F-\uDC55\uDC58-\uDC76\uDC79-\uDC9E\uDCA7-\uDCAF\uDCE0-\uDCF2\uDCF4\uDCF5\uDCFB-\uDD1B\uDD20-\uDD39\uDD80-\uDDB7\uDDBC-\uDDCF\uDDD2-\uDE00\uDE10-\uDE13\uDE15-\uDE17\uDE19-\uDE35\uDE40-\uDE48\uDE60-\uDE7E\uDE80-\uDE9F\uDEC0-\uDEC7\uDEC9-\uDEE4\uDEEB-\uDEEF\uDF00-\uDF35\uDF40-\uDF55\uDF58-\uDF72\uDF78-\uDF91\uDFA9-\uDFAF]|\uD803[\uDC00-\uDC48\uDC80-\uDCB2\uDCC0-\uDCF2\uDCFA-\uDD23\uDD30-\uDD39\uDE60-\uDE7E\uDE80-\uDEA9\uDEB0\uDEB1\uDF00-\uDF27\uDF30-\uDF45\uDF51-\uDF54\uDF70-\uDF81\uDFB0-\uDFCB\uDFE0-\uDFF6]|\uD804[\uDC03-\uDC37\uDC52-\uDC6F\uDC71\uDC72\uDC75\uDC83-\uDCAF\uDCD0-\uDCE8\uDCF0-\uDCF9\uDD03-\uDD26\uDD36-\uDD3F\uDD44\uDD47\uDD50-\uDD72\uDD76\uDD83-\uDDB2\uDDC1-\uDDC4\uDDD0-\uDDDA\uDDDC\uDDE1-\uDDF4\uDE00-\uDE11\uDE13-\uDE2B\uDE80-\uDE86\uDE88\uDE8A-\uDE8D\uDE8F-\uDE9D\uDE9F-\uDEA8\uDEB0-\uDEDE\uDEF0-\uDEF9\uDF05-\uDF0C\uDF0F\uDF10\uDF13-\uDF28\uDF2A-\uDF30\uDF32\uDF33\uDF35-\uDF39\uDF3D\uDF50\uDF5D-\uDF61]|\uD805[\uDC00-\uDC34\uDC47-\uDC4A\uDC50-\uDC59\uDC5F-\uDC61\uDC80-\uDCAF\uDCC4\uDCC5\uDCC7\uDCD0-\uDCD9\uDD80-\uDDAE\uDDD8-\uDDDB\uDE00-\uDE2F\uDE44\uDE50-\uDE59\uDE80-\uDEAA\uDEB8\uDEC0-\uDEC9\uDF00-\uDF1A\uDF30-\uDF3B\uDF40-\uDF46]|\uD806[\uDC00-\uDC2B\uDCA0-\uDCF2\uDCFF-\uDD06\uDD09\uDD0C-\uDD13\uDD15\uDD16\uDD18-\uDD2F\uDD3F\uDD41\uDD50-\uDD59\uDDA0-\uDDA7\uDDAA-\uDDD0\uDDE1\uDDE3\uDE00\uDE0B-\uDE32\uDE3A\uDE50\uDE5C-\uDE89\uDE9D\uDEB0-\uDEF8]|\uD807[\uDC00-\uDC08\uDC0A-\uDC2E\uDC40\uDC50-\uDC6C\uDC72-\uDC8F\uDD00-\uDD06\uDD08\uDD09\uDD0B-\uDD30\uDD46\uDD50-\uDD59\uDD60-\uDD65\uDD67\uDD68\uDD6A-\uDD89\uDD98\uDDA0-\uDDA9\uDEE0-\uDEF2\uDFB0\uDFC0-\uDFD4]|\uD808[\uDC00-\uDF99]|\uD809[\uDC00-\uDC6E\uDC80-\uDD43]|\uD80B[\uDF90-\uDFF0]|[\uD80C\uD81C-\uD820\uD822\uD840-\uD868\uD86A-\uD86C\uD86F-\uD872\uD874-\uD879\uD880-\uD883][\uDC00-\uDFFF]|\uD80D[\uDC00-\uDC2E]|\uD811[\uDC00-\uDE46]|\uD81A[\uDC00-\uDE38\uDE40-\uDE5E\uDE60-\uDE69\uDE70-\uDEBE\uDEC0-\uDEC9\uDED0-\uDEED\uDF00-\uDF2F\uDF40-\uDF43\uDF50-\uDF59\uDF5B-\uDF61\uDF63-\uDF77\uDF7D-\uDF8F]|\uD81B[\uDE40-\uDE96\uDF00-\uDF4A\uDF50\uDF93-\uDF9F\uDFE0\uDFE1\uDFE3]|\uD821[\uDC00-\uDFF7]|\uD823[\uDC00-\uDCD5\uDD00-\uDD08]|\uD82B[\uDFF0-\uDFF3\uDFF5-\uDFFB\uDFFD\uDFFE]|\uD82C[\uDC00-\uDD22\uDD50-\uDD52\uDD64-\uDD67\uDD70-\uDEFB]|\uD82F[\uDC00-\uDC6A\uDC70-\uDC7C\uDC80-\uDC88\uDC90-\uDC99]|\uD834[\uDEE0-\uDEF3\uDF60-\uDF78]|\uD835[\uDC00-\uDC54\uDC56-\uDC9C\uDC9E\uDC9F\uDCA2\uDCA5\uDCA6\uDCA9-\uDCAC\uDCAE-\uDCB9\uDCBB\uDCBD-\uDCC3\uDCC5-\uDD05\uDD07-\uDD0A\uDD0D-\uDD14\uDD16-\uDD1C\uDD1E-\uDD39\uDD3B-\uDD3E\uDD40-\uDD44\uDD46\uDD4A-\uDD50\uDD52-\uDEA5\uDEA8-\uDEC0\uDEC2-\uDEDA\uDEDC-\uDEFA\uDEFC-\uDF14\uDF16-\uDF34\uDF36-\uDF4E\uDF50-\uDF6E\uDF70-\uDF88\uDF8A-\uDFA8\uDFAA-\uDFC2\uDFC4-\uDFCB\uDFCE-\uDFFF]|\uD837[\uDF00-\uDF1E]|\uD838[\uDD00-\uDD2C\uDD37-\uDD3D\uDD40-\uDD49\uDD4E\uDE90-\uDEAD\uDEC0-\uDEEB\uDEF0-\uDEF9]|\uD839[\uDFE0-\uDFE6\uDFE8-\uDFEB\uDFED\uDFEE\uDFF0-\uDFFE]|\uD83A[\uDC00-\uDCC4\uDCC7-\uDCCF\uDD00-\uDD43\uDD4B\uDD50-\uDD59]|\uD83B[\uDC71-\uDCAB\uDCAD-\uDCAF\uDCB1-\uDCB4\uDD01-\uDD2D\uDD2F-\uDD3D\uDE00-\uDE03\uDE05-\uDE1F\uDE21\uDE22\uDE24\uDE27\uDE29-\uDE32\uDE34-\uDE37\uDE39\uDE3B\uDE42\uDE47\uDE49\uDE4B\uDE4D-\uDE4F\uDE51\uDE52\uDE54\uDE57\uDE59\uDE5B\uDE5D\uDE5F\uDE61\uDE62\uDE64\uDE67-\uDE6A\uDE6C-\uDE72\uDE74-\uDE77\uDE79-\uDE7C\uDE7E\uDE80-\uDE89\uDE8B-\uDE9B\uDEA1-\uDEA3\uDEA5-\uDEA9\uDEAB-\uDEBB]|\uD83C[\uDD00-\uDD0C]|\uD83E[\uDFF0-\uDFF9]|\uD869[\uDC00-\uDEDF\uDF00-\uDFFF]|\uD86D[\uDC00-\uDF38\uDF40-\uDFFF]|\uD86E[\uDC00-\uDC1D\uDC20-\uDFFF]|\uD873[\uDC00-\uDEA1\uDEB0-\uDFFF]|\uD87A[\uDC00-\uDFE0]|\uD87E[\uDC00-\uDE1D]|\uD884[\uDC00-\uDF4A])/))){var d=c[1]||c[2]||"";if(!d||d&&(h===""||this.rules.inline.punctuation.exec(h))){var m=c[0].length-1,y,x,C=m,S=0,F=c[0][0]==="*"?this.rules.inline.emStrong.rDelimAst:this.rules.inline.emStrong.rDelimUnd;for(F.lastIndex=0,f=f.slice(-1*a.length+m);(c=F.exec(f))!=null;)if(y=c[1]||c[2]||c[3]||c[4]||c[5]||c[6],!!y){if(x=y.length,c[3]||c[4]){C+=x;continue}else if((c[5]||c[6])&&m%3&&!((m+x)%3)){S+=x;continue}if(C-=x,!(C>0)){x=Math.min(x,x+C+S);var _=a.slice(0,m+c.index+(c[0].length-y.length)+x);if(Math.min(m,x)%2){var L=_.slice(1,-1);return{type:"em",raw:_,text:L,tokens:this.lexer.inlineTokens(L)}}var T=_.slice(2,-2);return{type:"strong",raw:_,text:T,tokens:this.lexer.inlineTokens(T)}}}}}},l.codespan=function(a){var f=this.rules.inline.code.exec(a);if(f){var h=f[2].replace(/\n/g," "),c=/[^ ]/.test(h),d=/^ /.test(h)&&/ $/.test(h);return c&&d&&(h=h.substring(1,h.length-1)),h=gt(h,!0),{type:"codespan",raw:f[0],text:h}}},l.br=function(a){var f=this.rules.inline.br.exec(a);if(f)return{type:"br",raw:f[0]}},l.del=function(a){var f=this.rules.inline.del.exec(a);if(f)return{type:"del",raw:f[0],text:f[2],tokens:this.lexer.inlineTokens(f[2])}},l.autolink=function(a,f){var h=this.rules.inline.autolink.exec(a);if(h){var c,d;return h[2]==="@"?(c=gt(this.options.mangle?f(h[1]):h[1]),d="mailto:"+c):(c=gt(h[1]),d=c),{type:"link",raw:h[0],text:c,href:d,tokens:[{type:"text",raw:c,text:c}]}}},l.url=function(a,f){var h;if(h=this.rules.inline.url.exec(a)){var c,d;if(h[2]==="@")c=gt(this.options.mangle?f(h[0]):h[0]),d="mailto:"+c;else{var m;do m=h[0],h[0]=this.rules.inline._backpedal.exec(h[0])[0];while(m!==h[0]);c=gt(h[0]),h[1]==="www."?d="http://"+h[0]:d=h[0]}return{type:"link",raw:h[0],text:c,href:d,tokens:[{type:"text",raw:c,text:c}]}}},l.inlineText=function(a,f){var h=this.rules.inline.text.exec(a);if(h){var c;return this.lexer.state.inRawBlock?c=this.options.sanitize?this.options.sanitizer?this.options.sanitizer(h[0]):gt(h[0]):h[0]:c=gt(this.options.smartypants?f(h[0]):h[0]),{type:"text",raw:h[0],text:c}}},o}(),ce={newline:/^(?: *(?:\n|$))+/,code:/^( {4}[^\n]+(?:\n(?: *(?:\n|$))*)?)+/,fences:/^ {0,3}(`{3,}(?=[^`\n]*(?:\n|$))|~{3,})([^\n]*)(?:\n|$)(?:|([\s\S]*?)(?:\n|$))(?: {0,3}\1[~`]* *(?=\n|$)|$)/,hr:/^ {0,3}((?:-[\t ]*){3,}|(?:_[ \t]*){3,}|(?:\*[ \t]*){3,})(?:\n+|$)/,heading:/^ {0,3}(#{1,6})(?=\s|$)(.*)(?:\n+|$)/,blockquote:/^( {0,3}> ?(paragraph|[^\n]*)(?:\n|$))+/,list:/^( {0,3}bull)([ \t][^\n]+?)?(?:\n|$)/,html:"^ {0,3}(?:<(script|pre|style|textarea)[\\s>][\\s\\S]*?(?:[^\\n]*\\n+|$)|comment[^\\n]*(\\n+|$)|<\\?[\\s\\S]*?(?:\\?>\\n*|$)|\\n*|$)|\\n*|$)|)[\\s\\S]*?(?:(?:\\n *)+\\n|$)|<(?!script|pre|style|textarea)([a-z][\\w-]*)(?:attribute)*? */?>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n *)+\\n|$)|(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n *)+\\n|$))",def:/^ {0,3}\[(label)\]: *(?:\n *)?([^<\s][^\s]*|<.*?>)(?:(?: +(?:\n *)?| *\n *)(title))? *(?:\n+|$)/,table:so,lheading:/^((?:.|\n(?!\n))+?)\n {0,3}(=+|-+) *(?:\n+|$)/,_paragraph:/^([^\n]+(?:\n(?!hr|heading|lheading|blockquote|fences|list|html|table| +\n)[^\n]+)*)/,text:/^[^\n]+/};ce._label=/(?!\s*\])(?:\\.|[^\[\]\\])+/;ce._title=/(?:"(?:\\"?|[^"\\])*"|'[^'\n]*(?:\n[^'\n]+)*\n?'|\([^()]*\))/;ce.def=Me(ce.def).replace("label",ce._label).replace("title",ce._title).getRegex();ce.bullet=/(?:[*+-]|\d{1,9}[.)])/;ce.listItemStart=Me(/^( *)(bull) */).replace("bull",ce.bullet).getRegex();ce.list=Me(ce.list).replace(/bull/g,ce.bullet).replace("hr","\\n+(?=\\1?(?:(?:- *){3,}|(?:_ *){3,}|(?:\\* *){3,})(?:\\n+|$))").replace("def","\\n+(?="+ce.def.source+")").getRegex();ce._tag="address|article|aside|base|basefont|blockquote|body|caption|center|col|colgroup|dd|details|dialog|dir|div|dl|dt|fieldset|figcaption|figure|footer|form|frame|frameset|h[1-6]|head|header|hr|html|iframe|legend|li|link|main|menu|menuitem|meta|nav|noframes|ol|optgroup|option|p|param|section|source|summary|table|tbody|td|tfoot|th|thead|title|tr|track|ul";ce._comment=/|$)/;ce.html=Me(ce.html,"i").replace("comment",ce._comment).replace("tag",ce._tag).replace("attribute",/ +[a-zA-Z:_][\w.:-]*(?: *= *"[^"\n]*"| *= *'[^'\n]*'| *= *[^\s"'=<>`]+)?/).getRegex();ce.paragraph=Me(ce._paragraph).replace("hr",ce.hr).replace("heading"," {0,3}#{1,6} ").replace("|lheading","").replace("|table","").replace("blockquote"," {0,3}>").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)]) ").replace("html",")|<(?:script|pre|style|textarea|!--)").replace("tag",ce._tag).getRegex();ce.blockquote=Me(ce.blockquote).replace("paragraph",ce.paragraph).getRegex();ce.normal=Bt({},ce);ce.gfm=Bt({},ce.normal,{table:"^ *([^\\n ].*\\|.*)\\n {0,3}(?:\\| *)?(:?-+:? *(?:\\| *:?-+:? *)*)(?:\\| *)?(?:\\n((?:(?! *\\n|hr|heading|blockquote|code|fences|list|html).*(?:\\n|$))*)\\n*|$)"});ce.gfm.table=Me(ce.gfm.table).replace("hr",ce.hr).replace("heading"," {0,3}#{1,6} ").replace("blockquote"," {0,3}>").replace("code"," {4}[^\\n]").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)]) ").replace("html",")|<(?:script|pre|style|textarea|!--)").replace("tag",ce._tag).getRegex();ce.gfm.paragraph=Me(ce._paragraph).replace("hr",ce.hr).replace("heading"," {0,3}#{1,6} ").replace("|lheading","").replace("table",ce.gfm.table).replace("blockquote"," {0,3}>").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)]) ").replace("html",")|<(?:script|pre|style|textarea|!--)").replace("tag",ce._tag).getRegex();ce.pedantic=Bt({},ce.normal,{html:Me(`^ *(?:comment *(?:\\n|\\s*$)|<(tag)[\\s\\S]+? *(?:\\n{2,}|\\s*$)|\\s]*)*?/?> *(?:\\n{2,}|\\s*$))`).replace("comment",ce._comment).replace(/tag/g,"(?!(?:a|em|strong|small|s|cite|q|dfn|abbr|data|time|code|var|samp|kbd|sub|sup|i|b|u|mark|ruby|rt|rp|bdi|bdo|span|br|wbr|ins|del|img)\\b)\\w+(?!:|[^\\w\\s@]*@)\\b").getRegex(),def:/^ *\[([^\]]+)\]: *]+)>?(?: +(["(][^\n]+[")]))? *(?:\n+|$)/,heading:/^(#{1,6})(.*)(?:\n+|$)/,fences:so,lheading:/^(.+?)\n {0,3}(=+|-+) *(?:\n+|$)/,paragraph:Me(ce.normal._paragraph).replace("hr",ce.hr).replace("heading",` *#{1,6} *[^ +]`).replace("lheading",ce.lheading).replace("blockquote"," {0,3}>").replace("|fences","").replace("|list","").replace("|html","").getRegex()});var ie={escape:/^\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/,autolink:/^<(scheme:[^\s\x00-\x1f<>]*|email)>/,url:so,tag:"^comment|^|^<[a-zA-Z][\\w-]*(?:attribute)*?\\s*/?>|^<\\?[\\s\\S]*?\\?>|^|^",link:/^!?\[(label)\]\(\s*(href)(?:\s+(title))?\s*\)/,reflink:/^!?\[(label)\]\[(ref)\]/,nolink:/^!?\[(ref)\](?:\[\])?/,reflinkSearch:"reflink|nolink(?!\\()",emStrong:{lDelim:/^(?:\*+(?:([punct_])|[^\s*]))|^_+(?:([punct*])|([^\s_]))/,rDelimAst:/^(?:[^_*\\]|\\.)*?\_\_(?:[^_*\\]|\\.)*?\*(?:[^_*\\]|\\.)*?(?=\_\_)|(?:[^*\\]|\\.)+(?=[^*])|[punct_](\*+)(?=[\s]|$)|(?:[^punct*_\s\\]|\\.)(\*+)(?=[punct_\s]|$)|[punct_\s](\*+)(?=[^punct*_\s])|[\s](\*+)(?=[punct_])|[punct_](\*+)(?=[punct_])|(?:[^punct*_\s\\]|\\.)(\*+)(?=[^punct*_\s])/,rDelimUnd:/^(?:[^_*\\]|\\.)*?\*\*(?:[^_*\\]|\\.)*?\_(?:[^_*\\]|\\.)*?(?=\*\*)|(?:[^_\\]|\\.)+(?=[^_])|[punct*](\_+)(?=[\s]|$)|(?:[^punct*_\s\\]|\\.)(\_+)(?=[punct*\s]|$)|[punct*\s](\_+)(?=[^punct*_\s])|[\s](\_+)(?=[punct*])|[punct*](\_+)(?=[punct*])/},code:/^(`+)([^`]|[^`][\s\S]*?[^`])\1(?!`)/,br:/^( {2,}|\\)\n(?!\s*$)/,del:so,text:/^(`+|[^`])(?:(?= {2,}\n)|[\s\S]*?(?:(?=[\\?@\\[\\]`^{|}~";ie.punctuation=Me(ie.punctuation).replace(/punctuation/g,ie._punctuation).getRegex();ie.blockSkip=/\[[^\]]*?\]\([^\)]*?\)|`[^`]*?`|<[^>]*?>/g;ie.escapedEmSt=/(?:^|[^\\])(?:\\\\)*\\[*_]/g;ie._comment=Me(ce._comment).replace("(?:-->|$)","-->").getRegex();ie.emStrong.lDelim=Me(ie.emStrong.lDelim).replace(/punct/g,ie._punctuation).getRegex();ie.emStrong.rDelimAst=Me(ie.emStrong.rDelimAst,"g").replace(/punct/g,ie._punctuation).getRegex();ie.emStrong.rDelimUnd=Me(ie.emStrong.rDelimUnd,"g").replace(/punct/g,ie._punctuation).getRegex();ie._escapes=/\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/g;ie._scheme=/[a-zA-Z][a-zA-Z0-9+.-]{1,31}/;ie._email=/[a-zA-Z0-9.!#$%&'*+/=?^_`{|}~-]+(@)[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)+(?![-_])/;ie.autolink=Me(ie.autolink).replace("scheme",ie._scheme).replace("email",ie._email).getRegex();ie._attribute=/\s+[a-zA-Z:_][\w.:-]*(?:\s*=\s*"[^"]*"|\s*=\s*'[^']*'|\s*=\s*[^\s"'=<>`]+)?/;ie.tag=Me(ie.tag).replace("comment",ie._comment).replace("attribute",ie._attribute).getRegex();ie._label=/(?:\[(?:\\.|[^\[\]\\])*\]|\\.|`[^`]*`|[^\[\]\\`])*?/;ie._href=/<(?:\\.|[^\n<>\\])+>|[^\s\x00-\x1f]*/;ie._title=/"(?:\\"?|[^"\\])*"|'(?:\\'?|[^'\\])*'|\((?:\\\)?|[^)\\])*\)/;ie.link=Me(ie.link).replace("label",ie._label).replace("href",ie._href).replace("title",ie._title).getRegex();ie.reflink=Me(ie.reflink).replace("label",ie._label).replace("ref",ce._label).getRegex();ie.nolink=Me(ie.nolink).replace("ref",ce._label).getRegex();ie.reflinkSearch=Me(ie.reflinkSearch,"g").replace("reflink",ie.reflink).replace("nolink",ie.nolink).getRegex();ie.normal=Bt({},ie);ie.pedantic=Bt({},ie.normal,{strong:{start:/^__|\*\*/,middle:/^__(?=\S)([\s\S]*?\S)__(?!_)|^\*\*(?=\S)([\s\S]*?\S)\*\*(?!\*)/,endAst:/\*\*(?!\*)/g,endUnd:/__(?!_)/g},em:{start:/^_|\*/,middle:/^()\*(?=\S)([\s\S]*?\S)\*(?!\*)|^_(?=\S)([\s\S]*?\S)_(?!_)/,endAst:/\*(?!\*)/g,endUnd:/_(?!_)/g},link:Me(/^!?\[(label)\]\((.*?)\)/).replace("label",ie._label).getRegex(),reflink:Me(/^!?\[(label)\]\s*\[([^\]]*)\]/).replace("label",ie._label).getRegex()});ie.gfm=Bt({},ie.normal,{escape:Me(ie.escape).replace("])","~|])").getRegex(),_extended_email:/[A-Za-z0-9._+-]+(@)[a-zA-Z0-9-_]+(?:\.[a-zA-Z0-9-_]*[a-zA-Z0-9])+(?![-_])/,url:/^((?:ftp|https?):\/\/|www\.)(?:[a-zA-Z0-9\-]+\.?)+[^\s<]*|^email/,_backpedal:/(?:[^?!.,:;*_'"~()&]+|\([^)]*\)|&(?![a-zA-Z0-9]+;$)|[?!.,:;*_'"~)]+(?!$))+/,del:/^(~~?)(?=[^\s~])([\s\S]*?[^\s~])\1(?=[^~]|$)/,text:/^([`~]+|[^`~])(?:(?= {2,}\n)|(?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)|[\s\S]*?(?:(?=[\\.5&&(a="x"+a.toString(16)),l+="&#"+a+";";return l}var xn=function(){function o(s){this.tokens=[],this.tokens.links=Object.create(null),this.options=s||Be.defaults,this.options.tokenizer=this.options.tokenizer||new uo,this.tokenizer=this.options.tokenizer,this.tokenizer.options=this.options,this.tokenizer.lexer=this,this.inlineQueue=[],this.state={inLink:!1,inRawBlock:!1,top:!0};var a={block:ce.normal,inline:ie.normal};this.options.pedantic?(a.block=ce.pedantic,a.inline=ie.pedantic):this.options.gfm&&(a.block=ce.gfm,this.options.breaks?a.inline=ie.breaks:a.inline=ie.gfm),this.tokenizer.rules=a}o.lex=function(a,f){var h=new o(f);return h.lex(a)},o.lexInline=function(a,f){var h=new o(f);return h.inlineTokens(a)};var l=o.prototype;return l.lex=function(a){a=a.replace(/\r\n|\r/g,` +`),this.blockTokens(a,this.tokens);for(var f;f=this.inlineQueue.shift();)this.inlineTokens(f.src,f.tokens);return this.tokens},l.blockTokens=function(a,f){var h=this;f===void 0&&(f=[]),this.options.pedantic?a=a.replace(/\t/g," ").replace(/^ +$/gm,""):a=a.replace(/^( *)(\t+)/gm,function(C,S,F){return S+" ".repeat(F.length)});for(var c,d,m,y;a;)if(!(this.options.extensions&&this.options.extensions.block&&this.options.extensions.block.some(function(C){return(c=C.call({lexer:h},a,f))?(a=a.substring(c.raw.length),f.push(c),!0):!1}))){if(c=this.tokenizer.space(a)){a=a.substring(c.raw.length),c.raw.length===1&&f.length>0?f[f.length-1].raw+=` `:f.push(c);continue}if(c=this.tokenizer.code(a)){a=a.substring(c.raw.length),d=f[f.length-1],d&&(d.type==="paragraph"||d.type==="text")?(d.raw+=` `+c.raw,d.text+=` `+c.text,this.inlineQueue[this.inlineQueue.length-1].src=d.text):f.push(c);continue}if(c=this.tokenizer.fences(a)){a=a.substring(c.raw.length),f.push(c);continue}if(c=this.tokenizer.heading(a)){a=a.substring(c.raw.length),f.push(c);continue}if(c=this.tokenizer.hr(a)){a=a.substring(c.raw.length),f.push(c);continue}if(c=this.tokenizer.blockquote(a)){a=a.substring(c.raw.length),f.push(c);continue}if(c=this.tokenizer.list(a)){a=a.substring(c.raw.length),f.push(c);continue}if(c=this.tokenizer.html(a)){a=a.substring(c.raw.length),f.push(c);continue}if(c=this.tokenizer.def(a)){a=a.substring(c.raw.length),d=f[f.length-1],d&&(d.type==="paragraph"||d.type==="text")?(d.raw+=` `+c.raw,d.text+=` -`+c.raw,this.inlineQueue[this.inlineQueue.length-1].src=d.text):this.tokens.links[c.tag]||(this.tokens.links[c.tag]={href:c.href,title:c.title});continue}if(c=this.tokenizer.table(a)){a=a.substring(c.raw.length),f.push(c);continue}if(c=this.tokenizer.lheading(a)){a=a.substring(c.raw.length),f.push(c);continue}if(v=a,this.options.extensions&&this.options.extensions.startBlock&&function(){var D=1/0,S=a.slice(1),F=void 0;h.options.extensions.startBlock.forEach(function(B){F=B.call({lexer:this},S),typeof F=="number"&&F>=0&&(D=Math.min(D,F))}),D<1/0&&D>=0&&(v=a.substring(0,D+1))}(),this.state.top&&(c=this.tokenizer.paragraph(v))){d=f[f.length-1],y&&d.type==="paragraph"?(d.raw+=` +`+c.raw,this.inlineQueue[this.inlineQueue.length-1].src=d.text):this.tokens.links[c.tag]||(this.tokens.links[c.tag]={href:c.href,title:c.title});continue}if(c=this.tokenizer.table(a)){a=a.substring(c.raw.length),f.push(c);continue}if(c=this.tokenizer.lheading(a)){a=a.substring(c.raw.length),f.push(c);continue}if(m=a,this.options.extensions&&this.options.extensions.startBlock&&function(){var C=1/0,S=a.slice(1),F=void 0;h.options.extensions.startBlock.forEach(function(_){F=_.call({lexer:this},S),typeof F=="number"&&F>=0&&(C=Math.min(C,F))}),C<1/0&&C>=0&&(m=a.substring(0,C+1))}(),this.state.top&&(c=this.tokenizer.paragraph(m))){d=f[f.length-1],y&&d.type==="paragraph"?(d.raw+=` `+c.raw,d.text+=` -`+c.text,this.inlineQueue.pop(),this.inlineQueue[this.inlineQueue.length-1].src=d.text):f.push(c),y=v.length!==a.length,a=a.substring(c.raw.length);continue}if(c=this.tokenizer.text(a)){a=a.substring(c.raw.length),d=f[f.length-1],d&&d.type==="text"?(d.raw+=` +`+c.text,this.inlineQueue.pop(),this.inlineQueue[this.inlineQueue.length-1].src=d.text):f.push(c),y=m.length!==a.length,a=a.substring(c.raw.length);continue}if(c=this.tokenizer.text(a)){a=a.substring(c.raw.length),d=f[f.length-1],d&&d.type==="text"?(d.raw+=` `+c.raw,d.text+=` -`+c.text,this.inlineQueue.pop(),this.inlineQueue[this.inlineQueue.length-1].src=d.text):f.push(c);continue}if(a){var x="Infinite loop on byte: "+a.charCodeAt(0);if(this.options.silent){console.error(x);break}else throw new Error(x)}}return this.state.top=!0,f},l.inline=function(a,f){return f===void 0&&(f=[]),this.inlineQueue.push({src:a,tokens:f}),f},l.inlineTokens=function(a,f){var h=this;f===void 0&&(f=[]);var c,d,v,y=a,x,D,S;if(this.tokens.links){var F=Object.keys(this.tokens.links);if(F.length>0)for(;(x=this.tokenizer.rules.inline.reflinkSearch.exec(y))!=null;)F.includes(x[0].slice(x[0].lastIndexOf("[")+1,-1))&&(y=y.slice(0,x.index)+"["+Rf("a",x[0].length-2)+"]"+y.slice(this.tokenizer.rules.inline.reflinkSearch.lastIndex))}for(;(x=this.tokenizer.rules.inline.blockSkip.exec(y))!=null;)y=y.slice(0,x.index)+"["+Rf("a",x[0].length-2)+"]"+y.slice(this.tokenizer.rules.inline.blockSkip.lastIndex);for(;(x=this.tokenizer.rules.inline.escapedEmSt.exec(y))!=null;)y=y.slice(0,x.index+x[0].length-2)+"++"+y.slice(this.tokenizer.rules.inline.escapedEmSt.lastIndex),this.tokenizer.rules.inline.escapedEmSt.lastIndex--;for(;a;)if(D||(S=""),D=!1,!(this.options.extensions&&this.options.extensions.inline&&this.options.extensions.inline.some(function(L){return(c=L.call({lexer:h},a,f))?(a=a.substring(c.raw.length),f.push(c),!0):!1}))){if(c=this.tokenizer.escape(a)){a=a.substring(c.raw.length),f.push(c);continue}if(c=this.tokenizer.tag(a)){a=a.substring(c.raw.length),d=f[f.length-1],d&&c.type==="text"&&d.type==="text"?(d.raw+=c.raw,d.text+=c.text):f.push(c);continue}if(c=this.tokenizer.link(a)){a=a.substring(c.raw.length),f.push(c);continue}if(c=this.tokenizer.reflink(a,this.tokens.links)){a=a.substring(c.raw.length),d=f[f.length-1],d&&c.type==="text"&&d.type==="text"?(d.raw+=c.raw,d.text+=c.text):f.push(c);continue}if(c=this.tokenizer.emStrong(a,y,S)){a=a.substring(c.raw.length),f.push(c);continue}if(c=this.tokenizer.codespan(a)){a=a.substring(c.raw.length),f.push(c);continue}if(c=this.tokenizer.br(a)){a=a.substring(c.raw.length),f.push(c);continue}if(c=this.tokenizer.del(a)){a=a.substring(c.raw.length),f.push(c);continue}if(c=this.tokenizer.autolink(a,Uf)){a=a.substring(c.raw.length),f.push(c);continue}if(!this.state.inLink&&(c=this.tokenizer.url(a,Uf))){a=a.substring(c.raw.length),f.push(c);continue}if(v=a,this.options.extensions&&this.options.extensions.startInline&&function(){var L=1/0,T=a.slice(1),N=void 0;h.options.extensions.startInline.forEach(function(z){N=z.call({lexer:this},T),typeof N=="number"&&N>=0&&(L=Math.min(L,N))}),L<1/0&&L>=0&&(v=a.substring(0,L+1))}(),c=this.tokenizer.inlineText(v,vp)){a=a.substring(c.raw.length),c.raw.slice(-1)!=="_"&&(S=c.raw.slice(-1)),D=!0,d=f[f.length-1],d&&d.type==="text"?(d.raw+=c.raw,d.text+=c.text):f.push(c);continue}if(a){var B="Infinite loop on byte: "+a.charCodeAt(0);if(this.options.silent){console.error(B);break}else throw new Error(B)}}return f},Vh(o,null,[{key:"rules",get:function(){return{block:ce,inline:ne}}}]),o}(),uo=function(){function o(s){this.options=s||_e.defaults}var l=o.prototype;return l.code=function(a,f,h){var c=(f||"").match(/\S*/)[0];if(this.options.highlight){var d=this.options.highlight(a,c);d!=null&&d!==a&&(h=!0,a=d)}return a=a.replace(/\n$/,"")+` +`+c.text,this.inlineQueue.pop(),this.inlineQueue[this.inlineQueue.length-1].src=d.text):f.push(c);continue}if(a){var x="Infinite loop on byte: "+a.charCodeAt(0);if(this.options.silent){console.error(x);break}else throw new Error(x)}}return this.state.top=!0,f},l.inline=function(a,f){return f===void 0&&(f=[]),this.inlineQueue.push({src:a,tokens:f}),f},l.inlineTokens=function(a,f){var h=this;f===void 0&&(f=[]);var c,d,m,y=a,x,C,S;if(this.tokens.links){var F=Object.keys(this.tokens.links);if(F.length>0)for(;(x=this.tokenizer.rules.inline.reflinkSearch.exec(y))!=null;)F.includes(x[0].slice(x[0].lastIndexOf("[")+1,-1))&&(y=y.slice(0,x.index)+"["+qf("a",x[0].length-2)+"]"+y.slice(this.tokenizer.rules.inline.reflinkSearch.lastIndex))}for(;(x=this.tokenizer.rules.inline.blockSkip.exec(y))!=null;)y=y.slice(0,x.index)+"["+qf("a",x[0].length-2)+"]"+y.slice(this.tokenizer.rules.inline.blockSkip.lastIndex);for(;(x=this.tokenizer.rules.inline.escapedEmSt.exec(y))!=null;)y=y.slice(0,x.index+x[0].length-2)+"++"+y.slice(this.tokenizer.rules.inline.escapedEmSt.lastIndex),this.tokenizer.rules.inline.escapedEmSt.lastIndex--;for(;a;)if(C||(S=""),C=!1,!(this.options.extensions&&this.options.extensions.inline&&this.options.extensions.inline.some(function(L){return(c=L.call({lexer:h},a,f))?(a=a.substring(c.raw.length),f.push(c),!0):!1}))){if(c=this.tokenizer.escape(a)){a=a.substring(c.raw.length),f.push(c);continue}if(c=this.tokenizer.tag(a)){a=a.substring(c.raw.length),d=f[f.length-1],d&&c.type==="text"&&d.type==="text"?(d.raw+=c.raw,d.text+=c.text):f.push(c);continue}if(c=this.tokenizer.link(a)){a=a.substring(c.raw.length),f.push(c);continue}if(c=this.tokenizer.reflink(a,this.tokens.links)){a=a.substring(c.raw.length),d=f[f.length-1],d&&c.type==="text"&&d.type==="text"?(d.raw+=c.raw,d.text+=c.text):f.push(c);continue}if(c=this.tokenizer.emStrong(a,y,S)){a=a.substring(c.raw.length),f.push(c);continue}if(c=this.tokenizer.codespan(a)){a=a.substring(c.raw.length),f.push(c);continue}if(c=this.tokenizer.br(a)){a=a.substring(c.raw.length),f.push(c);continue}if(c=this.tokenizer.del(a)){a=a.substring(c.raw.length),f.push(c);continue}if(c=this.tokenizer.autolink(a,jf)){a=a.substring(c.raw.length),f.push(c);continue}if(!this.state.inLink&&(c=this.tokenizer.url(a,jf))){a=a.substring(c.raw.length),f.push(c);continue}if(m=a,this.options.extensions&&this.options.extensions.startInline&&function(){var L=1/0,T=a.slice(1),O=void 0;h.options.extensions.startInline.forEach(function(N){O=N.call({lexer:this},T),typeof O=="number"&&O>=0&&(L=Math.min(L,O))}),L<1/0&&L>=0&&(m=a.substring(0,L+1))}(),c=this.tokenizer.inlineText(m,bp)){a=a.substring(c.raw.length),c.raw.slice(-1)!=="_"&&(S=c.raw.slice(-1)),C=!0,d=f[f.length-1],d&&d.type==="text"?(d.raw+=c.raw,d.text+=c.text):f.push(c);continue}if(a){var _="Infinite loop on byte: "+a.charCodeAt(0);if(this.options.silent){console.error(_);break}else throw new Error(_)}}return f},Vh(o,null,[{key:"rules",get:function(){return{block:ce,inline:ie}}}]),o}(),fo=function(){function o(s){this.options=s||Be.defaults}var l=o.prototype;return l.code=function(a,f,h){var c=(f||"").match(/\S*/)[0];if(this.options.highlight){var d=this.options.highlight(a,c);d!=null&&d!==a&&(h=!0,a=d)}return a=a.replace(/\n$/,"")+` `,c?'
'+(h?a:gt(a,!0))+`
`:"
"+(h?a:gt(a,!0))+`
`},l.blockquote=function(a){return`
@@ -73,15 +73,15 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho `},l.tablerow=function(a){return` `+a+` `},l.tablecell=function(a,f){var h=f.header?"th":"td",c=f.align?"<"+h+' align="'+f.align+'">':"<"+h+">";return c+a+(" -`)},l.strong=function(a){return""+a+""},l.em=function(a){return""+a+""},l.codespan=function(a){return""+a+""},l.br=function(){return this.options.xhtml?"
":"
"},l.del=function(a){return""+a+""},l.link=function(a,f,h){if(a=Pf(this.options.sanitize,this.options.baseUrl,a),a===null)return h;var c='",c},l.image=function(a,f,h){if(a=Pf(this.options.sanitize,this.options.baseUrl,a),a===null)return h;var c=''+h+'":">",c},l.text=function(a){return a},o}(),dl=function(){function o(){}var l=o.prototype;return l.strong=function(a){return a},l.em=function(a){return a},l.codespan=function(a){return a},l.del=function(a){return a},l.html=function(a){return a},l.text=function(a){return a},l.link=function(a,f,h){return""+h},l.image=function(a,f,h){return""+h},l.br=function(){return""},o}(),hl=function(){function o(){this.seen={}}var l=o.prototype;return l.serialize=function(a){return a.toLowerCase().trim().replace(/<[!\/a-z].*?>/ig,"").replace(/[\u2000-\u206F\u2E00-\u2E7F\\'!"#$%&()*+,./:;<=>?@[\]^`{|}~]/g,"").replace(/\s/g,"-")},l.getNextSafeSlug=function(a,f){var h=a,c=0;if(this.seen.hasOwnProperty(h)){c=this.seen[a];do c++,h=a+"-"+c;while(this.seen.hasOwnProperty(h))}return f||(this.seen[a]=c,this.seen[h]=0),h},l.slug=function(a,f){f===void 0&&(f={});var h=this.serialize(a);return this.getNextSafeSlug(h,f.dryrun)},o}(),xi=function(){function o(s){this.options=s||_e.defaults,this.options.renderer=this.options.renderer||new uo,this.renderer=this.options.renderer,this.renderer.options=this.options,this.textRenderer=new dl,this.slugger=new hl}o.parse=function(a,f){var h=new o(f);return h.parse(a)},o.parseInline=function(a,f){var h=new o(f);return h.parseInline(a)};var l=o.prototype;return l.parse=function(a,f){f===void 0&&(f=!0);var h="",c,d,v,y,x,D,S,F,B,L,T,N,z,O,I,U,j,K,de,W=a.length;for(c=0;c0&&I.tokens[0].type==="paragraph"?(I.tokens[0].text=K+" "+I.tokens[0].text,I.tokens[0].tokens&&I.tokens[0].tokens.length>0&&I.tokens[0].tokens[0].type==="text"&&(I.tokens[0].tokens[0].text=K+" "+I.tokens[0].tokens[0].text)):I.tokens.unshift({type:"text",text:K}):O+=K),O+=this.parse(I.tokens,z),B+=this.renderer.listitem(O,j,U);h+=this.renderer.list(B,T,N);continue}case"html":{h+=this.renderer.html(L.text);continue}case"paragraph":{h+=this.renderer.paragraph(this.parseInline(L.tokens));continue}case"text":{for(B=L.tokens?this.parseInline(L.tokens):L.text;c+1";if(l)return Promise.resolve(f);if(s){s(null,f);return}return f}if(l)return Promise.reject(a);if(s){s(a);return}throw a}}function Kf(o,l){return function(s,a,f){typeof a=="function"&&(f=a,a=null);var h=_t({},a);a=_t({},fe.defaults,h);var c=bp(a.silent,a.async,f);if(typeof s>"u"||s===null)return c(new Error("marked(): input parameter is undefined or null"));if(typeof s!="string")return c(new Error("marked(): input parameter is of type "+Object.prototype.toString.call(s)+", string expected"));if(gp(a),a.hooks&&(a.hooks.options=a),f){var d=a.highlight,v;try{a.hooks&&(s=a.hooks.preprocess(s)),v=o(s,a)}catch(F){return c(F)}var y=function(B){var L;if(!B)try{a.walkTokens&&fe.walkTokens(v,a.walkTokens),L=l(v,a),a.hooks&&(L=a.hooks.postprocess(L))}catch(T){B=T}return a.highlight=d,B?c(B):f(null,L)};if(!d||d.length<3||(delete a.highlight,!v.length))return y();var x=0;fe.walkTokens(v,function(F){F.type==="code"&&(x++,setTimeout(function(){d(F.text,F.lang,function(B,L){if(B)return y(B);L!=null&&L!==F.text&&(F.text=L,F.escaped=!0),x--,x===0&&y()})},0))}),x===0&&y();return}if(a.async)return Promise.resolve(a.hooks?a.hooks.preprocess(s):s).then(function(F){return o(F,a)}).then(function(F){return a.walkTokens?Promise.all(fe.walkTokens(F,a.walkTokens)).then(function(){return F}):F}).then(function(F){return l(F,a)}).then(function(F){return a.hooks?a.hooks.postprocess(F):F}).catch(c);try{a.hooks&&(s=a.hooks.preprocess(s));var D=o(s,a);a.walkTokens&&fe.walkTokens(D,a.walkTokens);var S=l(D,a);return a.hooks&&(S=a.hooks.postprocess(S)),S}catch(F){return c(F)}}}function fe(o,l,s){return Kf(yi.lex,xi.parse)(o,l,s)}fe.options=fe.setOptions=function(o){return fe.defaults=_t({},fe.defaults,o),rp(fe.defaults),fe};fe.getDefaults=cl;fe.defaults=_e.defaults;fe.use=function(){for(var o=fe.defaults.extensions||{renderers:{},childTokens:{}},l=arguments.length,s=new Array(l),a=0;a{"use strict";var wi=At();ef();rf();af();ll();sl();bf();wf();kf();Af();Lf();al();var Ap=Nf(),pl=Yf().marked,Jf=/Mac/.test(navigator.platform),Fp=new RegExp(/()+?/g),fn={toggleBold:ho,toggleItalic:po,drawLink:Eo,toggleHeadingSmaller:cn,toggleHeadingBigger:bo,drawImage:Ao,toggleBlockquote:vo,toggleOrderedList:Do,toggleUnorderedList:Co,toggleCheckList:ko,toggleCodeBlock:mo,togglePreview:Bo,toggleStrikethrough:go,toggleHeading1:yo,toggleHeading2:xo,toggleHeading3:wo,toggleHeading4:ml,toggleHeading5:vl,toggleHeading6:bl,cleanBlock:So,drawTable:Fo,drawHorizontalRule:To,undo:Lo,redo:Mo,toggleSideBySide:Ci,toggleFullScreen:jr},Tp={toggleBold:"Cmd-B",toggleItalic:"Cmd-I",drawLink:"Cmd-K",toggleHeadingSmaller:"Cmd-H",toggleHeadingBigger:"Shift-Cmd-H",toggleHeading1:"Ctrl+Alt+1",toggleHeading2:"Ctrl+Alt+2",toggleHeading3:"Ctrl+Alt+3",toggleHeading4:"Ctrl+Alt+4",toggleHeading5:"Ctrl+Alt+5",toggleHeading6:"Ctrl+Alt+6",cleanBlock:"Cmd-E",drawImage:"Cmd-Alt-I",toggleBlockquote:"Cmd-'",toggleOrderedList:"Cmd-Alt-L",toggleUnorderedList:"Cmd-L",toggleCheckList:"Shift-Cmd-L",toggleCodeBlock:"Cmd-Alt-C",togglePreview:"Cmd-P",toggleSideBySide:"F9",toggleFullScreen:"F11"},Lp=function(o){for(var l in fn)if(fn[l]===o)return l;return null},gl=function(){var o=!1;return function(l){(/(android|bb\d+|meego).+mobile|avantgo|bada\/|blackberry|blazer|compal|elaine|fennec|hiptop|iemobile|ip(hone|od)|iris|kindle|lge |maemo|midp|mmp|mobile.+firefox|netfront|opera m(ob|in)i|palm( os)?|phone|p(ixi|re)\/|plucker|pocket|psp|series(4|6)0|symbian|treo|up\.(browser|link)|vodafone|wap|windows ce|xda|xiino|android|ipad|playbook|silk/i.test(l)||/1207|6310|6590|3gso|4thp|50[1-6]i|770s|802s|a wa|abac|ac(er|oo|s-)|ai(ko|rn)|al(av|ca|co)|amoi|an(ex|ny|yw)|aptu|ar(ch|go)|as(te|us)|attw|au(di|-m|r |s )|avan|be(ck|ll|nq)|bi(lb|rd)|bl(ac|az)|br(e|v)w|bumb|bw-(n|u)|c55\/|capi|ccwa|cdm-|cell|chtm|cldc|cmd-|co(mp|nd)|craw|da(it|ll|ng)|dbte|dc-s|devi|dica|dmob|do(c|p)o|ds(12|-d)|el(49|ai)|em(l2|ul)|er(ic|k0)|esl8|ez([4-7]0|os|wa|ze)|fetc|fly(-|_)|g1 u|g560|gene|gf-5|g-mo|go(\.w|od)|gr(ad|un)|haie|hcit|hd-(m|p|t)|hei-|hi(pt|ta)|hp( i|ip)|hs-c|ht(c(-| |_|a|g|p|s|t)|tp)|hu(aw|tc)|i-(20|go|ma)|i230|iac( |-|\/)|ibro|idea|ig01|ikom|im1k|inno|ipaq|iris|ja(t|v)a|jbro|jemu|jigs|kddi|keji|kgt( |\/)|klon|kpt |kwc-|kyo(c|k)|le(no|xi)|lg( g|\/(k|l|u)|50|54|-[a-w])|libw|lynx|m1-w|m3ga|m50\/|ma(te|ui|xo)|mc(01|21|ca)|m-cr|me(rc|ri)|mi(o8|oa|ts)|mmef|mo(01|02|bi|de|do|t(-| |o|v)|zz)|mt(50|p1|v )|mwbp|mywa|n10[0-2]|n20[2-3]|n30(0|2)|n50(0|2|5)|n7(0(0|1)|10)|ne((c|m)-|on|tf|wf|wg|wt)|nok(6|i)|nzph|o2im|op(ti|wv)|oran|owg1|p800|pan(a|d|t)|pdxg|pg(13|-([1-8]|c))|phil|pire|pl(ay|uc)|pn-2|po(ck|rt|se)|prox|psio|pt-g|qa-a|qc(07|12|21|32|60|-[2-7]|i-)|qtek|r380|r600|raks|rim9|ro(ve|zo)|s55\/|sa(ge|ma|mm|ms|ny|va)|sc(01|h-|oo|p-)|sdk\/|se(c(-|0|1)|47|mc|nd|ri)|sgh-|shar|sie(-|m)|sk-0|sl(45|id)|sm(al|ar|b3|it|t5)|so(ft|ny)|sp(01|h-|v-|v )|sy(01|mb)|t2(18|50)|t6(00|10|18)|ta(gt|lk)|tcl-|tdg-|tel(i|m)|tim-|t-mo|to(pl|sh)|ts(70|m-|m3|m5)|tx-9|up(\.b|g1|si)|utst|v400|v750|veri|vi(rg|te)|vk(40|5[0-3]|-v)|vm40|voda|vulc|vx(52|53|60|61|70|80|81|83|85|98)|w3c(-| )|webc|whit|wi(g |nc|nw)|wmlb|wonu|x700|yas-|your|zeto|zte-/i.test(l.substr(0,4)))&&(o=!0)}(navigator.userAgent||navigator.vendor||window.opera),o};function Mp(o){for(var l;(l=Fp.exec(o))!==null;){var s=l[0];if(s.indexOf("target=")===-1){var a=s.replace(/>$/,' target="_blank">');o=o.replace(s,a)}}return o}function Bp(o){for(var l=new DOMParser,s=l.parseFromString(o,"text/html"),a=s.getElementsByTagName("li"),f=0;f0){for(var F=document.createElement("i"),B=0;B"+a+""},l.em=function(a){return""+a+""},l.codespan=function(a){return""+a+""},l.br=function(){return this.options.xhtml?"
":"
"},l.del=function(a){return""+a+""},l.link=function(a,f,h){if(a=Rf(this.options.sanitize,this.options.baseUrl,a),a===null)return h;var c='
",c},l.image=function(a,f,h){if(a=Rf(this.options.sanitize,this.options.baseUrl,a),a===null)return h;var c=''+h+'":">",c},l.text=function(a){return a},o}(),hl=function(){function o(){}var l=o.prototype;return l.strong=function(a){return a},l.em=function(a){return a},l.codespan=function(a){return a},l.del=function(a){return a},l.html=function(a){return a},l.text=function(a){return a},l.link=function(a,f,h){return""+h},l.image=function(a,f,h){return""+h},l.br=function(){return""},o}(),pl=function(){function o(){this.seen={}}var l=o.prototype;return l.serialize=function(a){return a.toLowerCase().trim().replace(/<[!\/a-z].*?>/ig,"").replace(/[\u2000-\u206F\u2E00-\u2E7F\\'!"#$%&()*+,./:;<=>?@[\]^`{|}~]/g,"").replace(/\s/g,"-")},l.getNextSafeSlug=function(a,f){var h=a,c=0;if(this.seen.hasOwnProperty(h)){c=this.seen[a];do c++,h=a+"-"+c;while(this.seen.hasOwnProperty(h))}return f||(this.seen[a]=c,this.seen[h]=0),h},l.slug=function(a,f){f===void 0&&(f={});var h=this.serialize(a);return this.getNextSafeSlug(h,f.dryrun)},o}(),wn=function(){function o(s){this.options=s||Be.defaults,this.options.renderer=this.options.renderer||new fo,this.renderer=this.options.renderer,this.renderer.options=this.options,this.textRenderer=new hl,this.slugger=new pl}o.parse=function(a,f){var h=new o(f);return h.parse(a)},o.parseInline=function(a,f){var h=new o(f);return h.parseInline(a)};var l=o.prototype;return l.parse=function(a,f){f===void 0&&(f=!0);var h="",c,d,m,y,x,C,S,F,_,L,T,O,N,I,P,U,j,K,de,q=a.length;for(c=0;c0&&P.tokens[0].type==="paragraph"?(P.tokens[0].text=K+" "+P.tokens[0].text,P.tokens[0].tokens&&P.tokens[0].tokens.length>0&&P.tokens[0].tokens[0].type==="text"&&(P.tokens[0].tokens[0].text=K+" "+P.tokens[0].tokens[0].text)):P.tokens.unshift({type:"text",text:K}):I+=K),I+=this.parse(P.tokens,N),_+=this.renderer.listitem(I,j,U);h+=this.renderer.list(_,T,O);continue}case"html":{h+=this.renderer.html(L.text);continue}case"paragraph":{h+=this.renderer.paragraph(this.parseInline(L.tokens));continue}case"text":{for(_=L.tokens?this.parseInline(L.tokens):L.text;c+1";if(l)return Promise.resolve(f);if(s){s(null,f);return}return f}if(l)return Promise.reject(a);if(s){s(a);return}throw a}}function Yf(o,l){return function(s,a,f){typeof a=="function"&&(f=a,a=null);var h=Bt({},a);a=Bt({},fe.defaults,h);var c=yp(a.silent,a.async,f);if(typeof s>"u"||s===null)return c(new Error("marked(): input parameter is undefined or null"));if(typeof s!="string")return c(new Error("marked(): input parameter is of type "+Object.prototype.toString.call(s)+", string expected"));if(vp(a),a.hooks&&(a.hooks.options=a),f){var d=a.highlight,m;try{a.hooks&&(s=a.hooks.preprocess(s)),m=o(s,a)}catch(F){return c(F)}var y=function(_){var L;if(!_)try{a.walkTokens&&fe.walkTokens(m,a.walkTokens),L=l(m,a),a.hooks&&(L=a.hooks.postprocess(L))}catch(T){_=T}return a.highlight=d,_?c(_):f(null,L)};if(!d||d.length<3||(delete a.highlight,!m.length))return y();var x=0;fe.walkTokens(m,function(F){F.type==="code"&&(x++,setTimeout(function(){d(F.text,F.lang,function(_,L){if(_)return y(_);L!=null&&L!==F.text&&(F.text=L,F.escaped=!0),x--,x===0&&y()})},0))}),x===0&&y();return}if(a.async)return Promise.resolve(a.hooks?a.hooks.preprocess(s):s).then(function(F){return o(F,a)}).then(function(F){return a.walkTokens?Promise.all(fe.walkTokens(F,a.walkTokens)).then(function(){return F}):F}).then(function(F){return l(F,a)}).then(function(F){return a.hooks?a.hooks.postprocess(F):F}).catch(c);try{a.hooks&&(s=a.hooks.preprocess(s));var C=o(s,a);a.walkTokens&&fe.walkTokens(C,a.walkTokens);var S=l(C,a);return a.hooks&&(S=a.hooks.postprocess(S)),S}catch(F){return c(F)}}}function fe(o,l,s){return Yf(xn.lex,wn.parse)(o,l,s)}fe.options=fe.setOptions=function(o){return fe.defaults=Bt({},fe.defaults,o),np(fe.defaults),fe};fe.getDefaults=dl;fe.defaults=Be.defaults;fe.use=function(){for(var o=fe.defaults.extensions||{renderers:{},childTokens:{}},l=arguments.length,s=new Array(l),a=0;a{"use strict";var Dn=At();tf();nf();lf();sl();ul();yf();Df();Sf();Ff();Mf();ll();var Fp=If(),gl=Zf().marked,$f=/Mac/.test(navigator.platform),Tp=new RegExp(/()+?/g),fi={toggleBold:po,toggleItalic:go,drawLink:Ao,toggleHeadingSmaller:ci,toggleHeadingBigger:yo,drawImage:Fo,toggleBlockquote:bo,toggleOrderedList:ko,toggleUnorderedList:Co,toggleCheckList:So,toggleCodeBlock:mo,togglePreview:Bo,toggleStrikethrough:vo,toggleHeading1:xo,toggleHeading2:wo,toggleHeading3:Do,toggleHeading4:ml,toggleHeading5:bl,toggleHeading6:yl,cleanBlock:Eo,drawTable:To,drawHorizontalRule:Lo,undo:Mo,redo:_o,toggleSideBySide:Cn,toggleFullScreen:jr},Lp={toggleBold:"Cmd-B",toggleItalic:"Cmd-I",drawLink:"Cmd-K",toggleHeadingSmaller:"Cmd-H",toggleHeadingBigger:"Shift-Cmd-H",toggleHeading1:"Ctrl+Alt+1",toggleHeading2:"Ctrl+Alt+2",toggleHeading3:"Ctrl+Alt+3",toggleHeading4:"Ctrl+Alt+4",toggleHeading5:"Ctrl+Alt+5",toggleHeading6:"Ctrl+Alt+6",cleanBlock:"Cmd-E",drawImage:"Cmd-Alt-I",toggleBlockquote:"Cmd-'",toggleOrderedList:"Cmd-Alt-L",toggleUnorderedList:"Cmd-L",toggleCheckList:"Shift-Cmd-L",toggleCodeBlock:"Cmd-Alt-C",togglePreview:"Cmd-P",toggleSideBySide:"F9",toggleFullScreen:"F11"},Mp=function(o){for(var l in fi)if(fi[l]===o)return l;return null},vl=function(){var o=!1;return function(l){(/(android|bb\d+|meego).+mobile|avantgo|bada\/|blackberry|blazer|compal|elaine|fennec|hiptop|iemobile|ip(hone|od)|iris|kindle|lge |maemo|midp|mmp|mobile.+firefox|netfront|opera m(ob|in)i|palm( os)?|phone|p(ixi|re)\/|plucker|pocket|psp|series(4|6)0|symbian|treo|up\.(browser|link)|vodafone|wap|windows ce|xda|xiino|android|ipad|playbook|silk/i.test(l)||/1207|6310|6590|3gso|4thp|50[1-6]i|770s|802s|a wa|abac|ac(er|oo|s-)|ai(ko|rn)|al(av|ca|co)|amoi|an(ex|ny|yw)|aptu|ar(ch|go)|as(te|us)|attw|au(di|-m|r |s )|avan|be(ck|ll|nq)|bi(lb|rd)|bl(ac|az)|br(e|v)w|bumb|bw-(n|u)|c55\/|capi|ccwa|cdm-|cell|chtm|cldc|cmd-|co(mp|nd)|craw|da(it|ll|ng)|dbte|dc-s|devi|dica|dmob|do(c|p)o|ds(12|-d)|el(49|ai)|em(l2|ul)|er(ic|k0)|esl8|ez([4-7]0|os|wa|ze)|fetc|fly(-|_)|g1 u|g560|gene|gf-5|g-mo|go(\.w|od)|gr(ad|un)|haie|hcit|hd-(m|p|t)|hei-|hi(pt|ta)|hp( i|ip)|hs-c|ht(c(-| |_|a|g|p|s|t)|tp)|hu(aw|tc)|i-(20|go|ma)|i230|iac( |-|\/)|ibro|idea|ig01|ikom|im1k|inno|ipaq|iris|ja(t|v)a|jbro|jemu|jigs|kddi|keji|kgt( |\/)|klon|kpt |kwc-|kyo(c|k)|le(no|xi)|lg( g|\/(k|l|u)|50|54|-[a-w])|libw|lynx|m1-w|m3ga|m50\/|ma(te|ui|xo)|mc(01|21|ca)|m-cr|me(rc|ri)|mi(o8|oa|ts)|mmef|mo(01|02|bi|de|do|t(-| |o|v)|zz)|mt(50|p1|v )|mwbp|mywa|n10[0-2]|n20[2-3]|n30(0|2)|n50(0|2|5)|n7(0(0|1)|10)|ne((c|m)-|on|tf|wf|wg|wt)|nok(6|i)|nzph|o2im|op(ti|wv)|oran|owg1|p800|pan(a|d|t)|pdxg|pg(13|-([1-8]|c))|phil|pire|pl(ay|uc)|pn-2|po(ck|rt|se)|prox|psio|pt-g|qa-a|qc(07|12|21|32|60|-[2-7]|i-)|qtek|r380|r600|raks|rim9|ro(ve|zo)|s55\/|sa(ge|ma|mm|ms|ny|va)|sc(01|h-|oo|p-)|sdk\/|se(c(-|0|1)|47|mc|nd|ri)|sgh-|shar|sie(-|m)|sk-0|sl(45|id)|sm(al|ar|b3|it|t5)|so(ft|ny)|sp(01|h-|v-|v )|sy(01|mb)|t2(18|50)|t6(00|10|18)|ta(gt|lk)|tcl-|tdg-|tel(i|m)|tim-|t-mo|to(pl|sh)|ts(70|m-|m3|m5)|tx-9|up(\.b|g1|si)|utst|v400|v750|veri|vi(rg|te)|vk(40|5[0-3]|-v)|vm40|voda|vulc|vx(52|53|60|61|70|80|81|83|85|98)|w3c(-| )|webc|whit|wi(g |nc|nw)|wmlb|wonu|x700|yas-|your|zeto|zte-/i.test(l.substr(0,4)))&&(o=!0)}(navigator.userAgent||navigator.vendor||window.opera),o};function _p(o){for(var l;(l=Tp.exec(o))!==null;){var s=l[0];if(s.indexOf("target=")===-1){var a=s.replace(/>$/,' target="_blank">');o=o.replace(s,a)}}return o}function Bp(o){for(var l=new DOMParser,s=l.parseFromString(o,"text/html"),a=s.getElementsByTagName("li"),f=0;f0){for(var F=document.createElement("i"),_=0;_=0&&(x=c.getLineHandle(S),!s(x));S--);var N=c.getTokenAt({line:S,ch:1}),z=a(N).fencedChars,O,I,U,j;s(c.getLineHandle(d.line))?(O="",I=d.line):s(c.getLineHandle(d.line-1))?(O="",I=d.line-1):(O=z+` -`,I=d.line),s(c.getLineHandle(v.line))?(U="",j=v.line,v.ch===0&&(j+=1)):v.ch!==0&&s(c.getLineHandle(v.line+1))?(U="",j=v.line+1):(U=z+` -`,j=v.line+1),v.ch===0&&(j-=1),c.operation(function(){c.replaceRange(U,{line:j,ch:0},{line:j+(U?0:1),ch:0}),c.replaceRange(O,{line:I,ch:0},{line:I+(O?0:1),ch:0})}),c.setSelection({line:I+(O?1:0),ch:0},{line:j+(O?1:-1),ch:0}),c.focus()}else{var K=d.line;if(s(c.getLineHandle(d.line))&&(f(c,d.line+1)==="fenced"?(S=d.line,K=d.line+1):(F=d.line,K=d.line-1)),S===void 0)for(S=K;S>=0&&(x=c.getLineHandle(S),!s(x));S--);if(F===void 0)for(B=c.lineCount(),F=K;F=0;S--)if(x=c.getLineHandle(S),!x.text.match(/^\s*$/)&&f(c,S,x)!=="indented"){S+=1;break}for(B=c.lineCount(),F=d.line;F\s+/,"unordered-list":a,"ordered-list":a,"check-list":/^(\s*)(- \[[ xX]])(\s+)/},y=function(N,z){var O={quote:">","unordered-list":s,"ordered-list":"%%i.","check-list":"- [ ]"};return O[N].replace("%%i",z)},x=function(N,z){var O={quote:">","unordered-list":"\\"+s,"ordered-list":"\\d+.","check-list":"- \\[[ xX]]"},I=new RegExp(O[N]);return z&&I.test(z)},D=function(N,z,O){var I=a.exec(z),U=y(N,S);return I!==null?(x(N,I[2])&&(U=""),z=I[1]+U+I[3]+z.replace(f,"").replace(v[N],"$1")):O==!1&&(z=U+" "+z),z},S=1,F=["unordered-list","ordered-list","check-list"],B=Object.keys(h)[0];if(!F.includes(B)){var L=o.getLine(c.line);/^\s*- \[[ xX]]\s/.test(L)?B="check-list":/^\s*\d+\.\s/.test(L)?B="ordered-list":/^\s*[*\-+]\s/.test(L)&&(B="unordered-list")}for(var T=c.line;T<=d.line;T++)(function(N){var z=o.getLine(N);h[l]?z=z.replace(v[l],"$1"):F.includes(B)&&F.includes(l)?(z=z.replace(v[B],"$1"),z=D(l,z,!1),S+=1):(z=D(l,z,!1),S+=1),o.replaceRange(z,{line:N,ch:0},{line:N,ch:99999999999999})})(T);o.focus()}}function tc(o,l,s,a){if(!(!o.codemirror||o.isPreviewActive())){var f=o.codemirror,h=Sr(f),c=h[l];if(!c){Gr(f,c,s,a);return}var d=f.getCursor("start"),v=f.getCursor("end"),y=f.getLine(d.line),x=y.slice(0,d.ch),D=y.slice(d.ch);l=="link"?x=x.replace(/(.*)[^!]\[/,"$1"):l=="image"&&(x=x.replace(/(.*)!\[$/,"$1")),D=D.replace(/]\(.*?\)/,""),f.replaceRange(x+D,{line:d.line,ch:0},{line:d.line,ch:99999999999999}),d.ch-=s[0].length,d!==v&&(v.ch-=s[0].length),f.setSelection(d,v),f.focus()}}function xl(o,l,s,a){if(!(!o.codemirror||o.isPreviewActive())){a=typeof a>"u"?s:a;var f=o.codemirror,h=Sr(f),c,d=s,v=a,y=f.getCursor("start"),x=f.getCursor("end");h[l]?(c=f.getLine(y.line),d=c.slice(0,y.ch),v=c.slice(y.ch),l=="bold"?(d=d.replace(/(\*\*|__)(?![\s\S]*(\*\*|__))/,""),v=v.replace(/(\*\*|__)/,"")):l=="italic"?(d=d.replace(/(\*|_)(?![\s\S]*(\*|_))/,""),v=v.replace(/(\*|_)/,"")):l=="strikethrough"&&(d=d.replace(/(\*\*|~~)(?![\s\S]*(\*\*|~~))/,""),v=v.replace(/(\*\*|~~)/,"")),f.replaceRange(d+v,{line:y.line,ch:0},{line:y.line,ch:99999999999999}),l=="bold"||l=="strikethrough"?(y.ch-=2,y!==x&&(x.ch-=2)):l=="italic"&&(y.ch-=1,y!==x&&(x.ch-=1))):(c=f.getSelection(),l=="bold"?(c=c.split("**").join(""),c=c.split("__").join("")):l=="italic"?(c=c.split("*").join(""),c=c.split("_").join("")):l=="strikethrough"&&(c=c.split("~~").join("")),f.replaceSelection(d+c+v),y.ch+=s.length,x.ch=y.ch+c.length),f.setSelection(y,x),f.focus()}}function Op(o){if(!o.getWrapperElement().lastChild.classList.contains("editor-preview-active"))for(var l=o.getCursor("start"),s=o.getCursor("end"),a,f=l.line;f<=s.line;f++)a=o.getLine(f),a=a.replace(/^[ ]*([# ]+|\*|-|[> ]+|[0-9]+(.|\)))[ ]*/,""),o.replaceRange(a,{line:f,ch:0},{line:f,ch:99999999999999})}function co(o,l){if(Math.abs(o)<1024)return""+o+l[0];var s=0;do o/=1024,++s;while(Math.abs(o)>=1024&&s=19968?a+=s[f].length:a+=1;return a}var Be={bold:"fa fa-bold",italic:"fa fa-italic",strikethrough:"fa fa-strikethrough",heading:"fa fa-header fa-heading","heading-smaller":"fa fa-header fa-heading header-smaller","heading-bigger":"fa fa-header fa-heading header-bigger","heading-1":"fa fa-header fa-heading header-1","heading-2":"fa fa-header fa-heading header-2","heading-3":"fa fa-header fa-heading header-3",code:"fa fa-code",quote:"fa fa-quote-left","ordered-list":"fa fa-list-ol","unordered-list":"fa fa-list-ul","check-list":"fa fa-check-square-o","clean-block":"fa fa-eraser",link:"fa fa-link",image:"fa fa-image","upload-image":"fa fa-image",table:"fa fa-table","horizontal-rule":"fa fa-minus",preview:"fa fa-eye","side-by-side":"fa fa-columns",fullscreen:"fa fa-arrows-alt",guide:"fa fa-question-circle",undo:"fa fa-undo",redo:"fa fa-repeat fa-redo"},Ur={bold:{name:"bold",action:ho,className:Be.bold,title:"Bold",default:!0},italic:{name:"italic",action:po,className:Be.italic,title:"Italic",default:!0},strikethrough:{name:"strikethrough",action:go,className:Be.strikethrough,title:"Strikethrough"},heading:{name:"heading",action:cn,className:Be.heading,title:"Heading",default:!0},"heading-smaller":{name:"heading-smaller",action:cn,className:Be["heading-smaller"],title:"Smaller Heading"},"heading-bigger":{name:"heading-bigger",action:bo,className:Be["heading-bigger"],title:"Bigger Heading"},"heading-1":{name:"heading-1",action:yo,className:Be["heading-1"],title:"Big Heading"},"heading-2":{name:"heading-2",action:xo,className:Be["heading-2"],title:"Medium Heading"},"heading-3":{name:"heading-3",action:wo,className:Be["heading-3"],title:"Small Heading"},"separator-1":{name:"separator-1"},code:{name:"code",action:mo,className:Be.code,title:"Code"},quote:{name:"quote",action:vo,className:Be.quote,title:"Quote",default:!0},"unordered-list":{name:"unordered-list",action:Co,className:Be["unordered-list"],title:"Generic List",default:!0},"ordered-list":{name:"ordered-list",action:Do,className:Be["ordered-list"],title:"Numbered List",default:!0},"check-list":{name:"check-list",action:ko,className:Be["check-list"],title:"Check List",default:!0},"clean-block":{name:"clean-block",action:So,className:Be["clean-block"],title:"Clean block"},"separator-2":{name:"separator-2"},link:{name:"link",action:Eo,className:Be.link,title:"Create Link",default:!0},image:{name:"image",action:Ao,className:Be.image,title:"Insert Image",default:!0},"upload-image":{name:"upload-image",action:yl,className:Be["upload-image"],title:"Import an image"},table:{name:"table",action:Fo,className:Be.table,title:"Insert Table"},"horizontal-rule":{name:"horizontal-rule",action:To,className:Be["horizontal-rule"],title:"Insert Horizontal Line"},"separator-3":{name:"separator-3"},preview:{name:"preview",action:Bo,className:Be.preview,noDisable:!0,title:"Toggle Preview",default:!0},"side-by-side":{name:"side-by-side",action:Ci,className:Be["side-by-side"],noDisable:!0,noMobile:!0,title:"Toggle Side by Side",default:!0},fullscreen:{name:"fullscreen",action:jr,className:Be.fullscreen,noDisable:!0,noMobile:!0,title:"Toggle Fullscreen",default:!0},"separator-4":{name:"separator-4"},guide:{name:"guide",action:"https://www.markdownguide.org/basic-syntax/",className:Be.guide,noDisable:!0,title:"Markdown Guide",default:!0},"separator-5":{name:"separator-5"},undo:{name:"undo",action:Lo,className:Be.undo,noDisable:!0,title:"Undo"},redo:{name:"redo",action:Mo,className:Be.redo,noDisable:!0,title:"Redo"}},Ip={link:["[","](#url#)"],image:["![","](#url#)"],uploadedImage:["![](#url#)",""],table:["",` +`,Ee--),Gr(z,!1,[w,ee]),z.setSelection({line:pe,ch:0},{line:Ee,ch:0})}var c=o.codemirror,d=c.getCursor("start"),m=c.getCursor("end"),y=c.getTokenAt({line:d.line,ch:d.ch||1}),x=c.getLineHandle(d.line),C=f(c,d.line,x,y),S,F,_;if(C==="single"){var L=x.text.slice(0,d.ch).replace("`",""),T=x.text.slice(d.ch).replace("`","");c.replaceRange(L+T,{line:d.line,ch:0},{line:d.line,ch:99999999999999}),d.ch--,d!==m&&m.ch--,c.setSelection(d,m),c.focus()}else if(C==="fenced")if(d.line!==m.line||d.ch!==m.ch){for(S=d.line;S>=0&&(x=c.getLineHandle(S),!s(x));S--);var O=c.getTokenAt({line:S,ch:1}),N=a(O).fencedChars,I,P,U,j;s(c.getLineHandle(d.line))?(I="",P=d.line):s(c.getLineHandle(d.line-1))?(I="",P=d.line-1):(I=N+` +`,P=d.line),s(c.getLineHandle(m.line))?(U="",j=m.line,m.ch===0&&(j+=1)):m.ch!==0&&s(c.getLineHandle(m.line+1))?(U="",j=m.line+1):(U=N+` +`,j=m.line+1),m.ch===0&&(j-=1),c.operation(function(){c.replaceRange(U,{line:j,ch:0},{line:j+(U?0:1),ch:0}),c.replaceRange(I,{line:P,ch:0},{line:P+(I?0:1),ch:0})}),c.setSelection({line:P+(I?1:0),ch:0},{line:j+(I?1:-1),ch:0}),c.focus()}else{var K=d.line;if(s(c.getLineHandle(d.line))&&(f(c,d.line+1)==="fenced"?(S=d.line,K=d.line+1):(F=d.line,K=d.line-1)),S===void 0)for(S=K;S>=0&&(x=c.getLineHandle(S),!s(x));S--);if(F===void 0)for(_=c.lineCount(),F=K;F<_&&(x=c.getLineHandle(F),!s(x));F++);c.operation(function(){c.replaceRange("",{line:S,ch:0},{line:S+1,ch:0}),c.replaceRange("",{line:F-1,ch:0},{line:F,ch:0})}),c.focus()}else if(C==="indented"){if(d.line!==m.line||d.ch!==m.ch)S=d.line,F=m.line,m.ch===0&&F--;else{for(S=d.line;S>=0;S--)if(x=c.getLineHandle(S),!x.text.match(/^\s*$/)&&f(c,S,x)!=="indented"){S+=1;break}for(_=c.lineCount(),F=d.line;F<_;F++)if(x=c.getLineHandle(F),!x.text.match(/^\s*$/)&&f(c,F,x)!=="indented"){F-=1;break}}var de=c.getLineHandle(F+1),q=de&&c.getTokenAt({line:F+1,ch:de.text.length-1}),oe=q&&a(q).indentedCode;oe&&c.replaceRange(` +`,{line:F+1,ch:0});for(var X=S;X<=F;X++)c.indentLine(X,"subtract");c.focus()}else{var G=d.line===m.line&&d.ch===m.ch&&d.ch===0,k=d.line!==m.line;G||k?h(c,d,m,l):Gr(c,!1,["`","`"])}}function bo(o){No(o.codemirror,"quote")}function ci(o){Er(o.codemirror,"smaller")}function yo(o){Er(o.codemirror,"bigger")}function xo(o){Er(o.codemirror,void 0,1)}function wo(o){Er(o.codemirror,void 0,2)}function Do(o){Er(o.codemirror,void 0,3)}function ml(o){Er(o.codemirror,void 0,4)}function bl(o){Er(o.codemirror,void 0,5)}function yl(o){Er(o.codemirror,void 0,6)}function Co(o){var l=o.codemirror,s="*";["-","+","*"].includes(o.options.unorderedListStyle)&&(s=o.options.unorderedListStyle),No(l,"unordered-list",s)}function ko(o){No(o.codemirror,"ordered-list")}function So(o){No(o.codemirror,"check-list")}function Eo(o){Pp(o.codemirror)}function Ao(o){var l=o.options,s="https://";if(l.promptURLs){var a=prompt(l.promptTexts.link,s);if(!a)return!1;s=ec(a)}rc(o,"link",l.insertTexts.link,s)}function Fo(o){var l=o.options,s="https://";if(l.promptURLs){var a=prompt(l.promptTexts.image,s);if(!a)return!1;s=ec(a)}rc(o,"image",l.insertTexts.image,s)}function ec(o){return encodeURI(o).replace(/([\\()])/g,"\\$1")}function xl(o){o.openBrowseFileWindow()}function tc(o,l){var s=o.codemirror,a=Sr(s),f=o.options,h=l.substr(l.lastIndexOf("/")+1),c=h.substring(h.lastIndexOf(".")+1).replace(/\?.*$/,"").toLowerCase();if(["png","jpg","jpeg","gif","svg","apng","avif","webp"].includes(c))Gr(s,a.image,f.insertTexts.uploadedImage,l);else{var d=f.insertTexts.link;d[0]="["+h,Gr(s,a.link,d,l)}o.updateStatusBar("upload-image",o.options.imageTexts.sbOnUploaded.replace("#image_name#",h)),setTimeout(function(){o.updateStatusBar("upload-image",o.options.imageTexts.sbInit)},1e3)}function To(o){var l=o.codemirror,s=Sr(l),a=o.options;Gr(l,s.table,a.insertTexts.table)}function Lo(o){var l=o.codemirror,s=Sr(l),a=o.options;Gr(l,s.image,a.insertTexts.horizontalRule)}function Mo(o){var l=o.codemirror;l.undo(),l.focus()}function _o(o){var l=o.codemirror;l.redo(),l.focus()}function Cn(o){var l=o.codemirror,s=l.getWrapperElement(),a=s.nextSibling,f=o.toolbarElements&&o.toolbarElements["side-by-side"],h=!1,c=s.parentNode;a.classList.contains("editor-preview-active-side")?(o.options.sideBySideFullscreen===!1&&c.classList.remove("sided--no-fullscreen"),a.classList.remove("editor-preview-active-side"),f&&f.classList.remove("active"),s.classList.remove("CodeMirror-sided")):(setTimeout(function(){l.getOption("fullScreen")||(o.options.sideBySideFullscreen===!1?c.classList.add("sided--no-fullscreen"):jr(o)),a.classList.add("editor-preview-active-side")},1),f&&f.classList.add("active"),s.classList.add("CodeMirror-sided"),h=!0);var d=s.lastChild;if(d.classList.contains("editor-preview-active")){d.classList.remove("editor-preview-active");var m=o.toolbarElements.preview,y=o.toolbar_div;m.classList.remove("active"),y.classList.remove("disabled-for-preview")}var x=function(){var S=o.options.previewRender(o.value(),a);S!=null&&(a.innerHTML=S)};if(l.sideBySideRenderingFunction||(l.sideBySideRenderingFunction=x),h){var C=o.options.previewRender(o.value(),a);C!=null&&(a.innerHTML=C),l.on("update",l.sideBySideRenderingFunction)}else l.off("update",l.sideBySideRenderingFunction);l.refresh()}function Bo(o){var l=o.codemirror,s=l.getWrapperElement(),a=o.toolbar_div,f=o.options.toolbar?o.toolbarElements.preview:!1,h=s.lastChild,c=l.getWrapperElement().nextSibling;if(c.classList.contains("editor-preview-active-side")&&Cn(o),!h||!h.classList.contains("editor-preview-full")){if(h=document.createElement("div"),h.className="editor-preview-full",o.options.previewClass)if(Array.isArray(o.options.previewClass))for(var d=0;d\s+/,"unordered-list":a,"ordered-list":a,"check-list":/^(\s*)(- \[[ xX]])(\s+)/},y=function(O,N){var I={quote:">","unordered-list":s,"ordered-list":"%%i.","check-list":"- [ ]"};return I[O].replace("%%i",N)},x=function(O,N){var I={quote:">","unordered-list":"\\"+s,"ordered-list":"\\d+.","check-list":"- \\[[ xX]]"},P=new RegExp(I[O]);return N&&P.test(N)},C=function(O,N,I){var P=a.exec(N),U=y(O,S);return P!==null?(x(O,P[2])&&(U=""),N=P[1]+U+P[3]+N.replace(f,"").replace(m[O],"$1")):I==!1&&(N=U+" "+N),N},S=1,F=["unordered-list","ordered-list","check-list"],_=Object.keys(h)[0];if(!F.includes(_)){var L=o.getLine(c.line);/^\s*- \[[ xX]]\s/.test(L)?_="check-list":/^\s*\d+\.\s/.test(L)?_="ordered-list":/^\s*[*\-+]\s/.test(L)&&(_="unordered-list")}for(var T=c.line;T<=d.line;T++)(function(O){var N=o.getLine(O);h[l]?N=N.replace(m[l],"$1"):F.includes(_)&&F.includes(l)?(N=N.replace(m[_],"$1"),N=C(l,N,!1),S+=1):(N=C(l,N,!1),S+=1),o.replaceRange(N,{line:O,ch:0},{line:O,ch:99999999999999})})(T);o.focus()}}function rc(o,l,s,a){if(!(!o.codemirror||o.isPreviewActive())){var f=o.codemirror,h=Sr(f),c=h[l];if(!c){Gr(f,c,s,a);return}var d=f.getCursor("start"),m=f.getCursor("end"),y=f.getLine(d.line),x=y.slice(0,d.ch),C=y.slice(d.ch);l=="link"?x=x.replace(/(.*)[^!]\[/,"$1"):l=="image"&&(x=x.replace(/(.*)!\[$/,"$1")),C=C.replace(/]\(.*?\)/,""),f.replaceRange(x+C,{line:d.line,ch:0},{line:d.line,ch:99999999999999}),d.ch-=s[0].length,d!==m&&(m.ch-=s[0].length),f.setSelection(d,m),f.focus()}}function wl(o,l,s,a){if(!(!o.codemirror||o.isPreviewActive())){a=typeof a>"u"?s:a;var f=o.codemirror,h=Sr(f),c,d=s,m=a,y=f.getCursor("start"),x=f.getCursor("end");h[l]?(c=f.getLine(y.line),d=c.slice(0,y.ch),m=c.slice(y.ch),l=="bold"?(d=d.replace(/(\*\*|__)(?![\s\S]*(\*\*|__))/,""),m=m.replace(/(\*\*|__)/,"")):l=="italic"?(d=d.replace(/(\*|_)(?![\s\S]*(\*|_))/,""),m=m.replace(/(\*|_)/,"")):l=="strikethrough"&&(d=d.replace(/(\*\*|~~)(?![\s\S]*(\*\*|~~))/,""),m=m.replace(/(\*\*|~~)/,"")),f.replaceRange(d+m,{line:y.line,ch:0},{line:y.line,ch:99999999999999}),l=="bold"||l=="strikethrough"?(y.ch-=2,y!==x&&(x.ch-=2)):l=="italic"&&(y.ch-=1,y!==x&&(x.ch-=1))):(c=f.getSelection(),l=="bold"?(c=c.split("**").join(""),c=c.split("__").join("")):l=="italic"?(c=c.split("*").join(""),c=c.split("_").join("")):l=="strikethrough"&&(c=c.split("~~").join("")),f.replaceSelection(d+c+m),y.ch+=s.length,x.ch=y.ch+c.length),f.setSelection(y,x),f.focus()}}function Pp(o){if(!o.getWrapperElement().lastChild.classList.contains("editor-preview-active"))for(var l=o.getCursor("start"),s=o.getCursor("end"),a,f=l.line;f<=s.line;f++)a=o.getLine(f),a=a.replace(/^[ ]*([# ]+|\*|-|[> ]+|[0-9]+(.|\)))[ ]*/,""),o.replaceRange(a,{line:f,ch:0},{line:f,ch:99999999999999})}function ho(o,l){if(Math.abs(o)<1024)return""+o+l[0];var s=0;do o/=1024,++s;while(Math.abs(o)>=1024&&s=19968?a+=s[f].length:a+=1;return a}var _e={bold:"fa fa-bold",italic:"fa fa-italic",strikethrough:"fa fa-strikethrough",heading:"fa fa-header fa-heading","heading-smaller":"fa fa-header fa-heading header-smaller","heading-bigger":"fa fa-header fa-heading header-bigger","heading-1":"fa fa-header fa-heading header-1","heading-2":"fa fa-header fa-heading header-2","heading-3":"fa fa-header fa-heading header-3",code:"fa fa-code",quote:"fa fa-quote-left","ordered-list":"fa fa-list-ol","unordered-list":"fa fa-list-ul","check-list":"fa fa-check-square-o","clean-block":"fa fa-eraser",link:"fa fa-link",image:"fa fa-image","upload-image":"fa fa-image",table:"fa fa-table","horizontal-rule":"fa fa-minus",preview:"fa fa-eye","side-by-side":"fa fa-columns",fullscreen:"fa fa-arrows-alt",guide:"fa fa-question-circle",undo:"fa fa-undo",redo:"fa fa-repeat fa-redo"},Ur={bold:{name:"bold",action:po,className:_e.bold,title:"Bold",default:!0},italic:{name:"italic",action:go,className:_e.italic,title:"Italic",default:!0},strikethrough:{name:"strikethrough",action:vo,className:_e.strikethrough,title:"Strikethrough"},heading:{name:"heading",action:ci,className:_e.heading,title:"Heading",default:!0},"heading-smaller":{name:"heading-smaller",action:ci,className:_e["heading-smaller"],title:"Smaller Heading"},"heading-bigger":{name:"heading-bigger",action:yo,className:_e["heading-bigger"],title:"Bigger Heading"},"heading-1":{name:"heading-1",action:xo,className:_e["heading-1"],title:"Big Heading"},"heading-2":{name:"heading-2",action:wo,className:_e["heading-2"],title:"Medium Heading"},"heading-3":{name:"heading-3",action:Do,className:_e["heading-3"],title:"Small Heading"},"separator-1":{name:"separator-1"},code:{name:"code",action:mo,className:_e.code,title:"Code"},quote:{name:"quote",action:bo,className:_e.quote,title:"Quote",default:!0},"unordered-list":{name:"unordered-list",action:Co,className:_e["unordered-list"],title:"Generic List",default:!0},"ordered-list":{name:"ordered-list",action:ko,className:_e["ordered-list"],title:"Numbered List",default:!0},"check-list":{name:"check-list",action:So,className:_e["check-list"],title:"Check List",default:!0},"clean-block":{name:"clean-block",action:Eo,className:_e["clean-block"],title:"Clean block"},"separator-2":{name:"separator-2"},link:{name:"link",action:Ao,className:_e.link,title:"Create Link",default:!0},image:{name:"image",action:Fo,className:_e.image,title:"Insert Image",default:!0},"upload-image":{name:"upload-image",action:xl,className:_e["upload-image"],title:"Import an image"},table:{name:"table",action:To,className:_e.table,title:"Insert Table"},"horizontal-rule":{name:"horizontal-rule",action:Lo,className:_e["horizontal-rule"],title:"Insert Horizontal Line"},"separator-3":{name:"separator-3"},preview:{name:"preview",action:Bo,className:_e.preview,noDisable:!0,title:"Toggle Preview",default:!0},"side-by-side":{name:"side-by-side",action:Cn,className:_e["side-by-side"],noDisable:!0,noMobile:!0,title:"Toggle Side by Side",default:!0},fullscreen:{name:"fullscreen",action:jr,className:_e.fullscreen,noDisable:!0,noMobile:!0,title:"Toggle Fullscreen",default:!0},"separator-4":{name:"separator-4"},guide:{name:"guide",action:"https://www.markdownguide.org/basic-syntax/",className:_e.guide,noDisable:!0,title:"Markdown Guide",default:!0},"separator-5":{name:"separator-5"},undo:{name:"undo",action:Mo,className:_e.undo,noDisable:!0,title:"Undo"},redo:{name:"redo",action:_o,className:_e.redo,noDisable:!0,title:"Redo"}},zp={link:["[","](#url#)"],image:["![","](#url#)"],uploadedImage:["![](#url#)",""],table:["",` | Column 1 | Column 2 | Column 3 | | -------- | -------- | -------- | @@ -91,8 +91,8 @@ Please report this to https://github.com/markedjs/marked.`,o){var f="

An error ----- -`]},Hp={link:"URL for the link:",image:"URL of the image:"},Pp={locale:"en-US",format:{hour:"2-digit",minute:"2-digit"}},qp={bold:"**",code:"```",italic:"*"},Rp={sbInit:"Attach files by drag and dropping or pasting from clipboard.",sbOnDragEnter:"Drop image to upload it.",sbOnDrop:"Uploading image #images_names#...",sbProgress:"Uploading #file_name#: #progress#%",sbOnUploaded:"Uploaded #image_name#",sizeUnits:" B, KB, MB"},Wp={noFileGiven:"You must select a file.",typeNotAllowed:"This image type is not allowed.",fileTooLarge:`Image #image_name# is too big (#image_size#). -Maximum file size is #image_max_size#.`,importError:"Something went wrong when uploading the image #image_name#."};function re(o){o=o||{},o.parent=this;var l=!0;if(o.autoDownloadFontAwesome===!1&&(l=!1),o.autoDownloadFontAwesome!==!0)for(var s=document.styleSheets,a=0;a-1&&(l=!1);if(l){var f=document.createElement("link");f.rel="stylesheet",f.href="https://maxcdn.bootstrapcdn.com/font-awesome/latest/css/font-awesome.min.css",document.getElementsByTagName("head")[0].appendChild(f)}if(o.element)this.element=o.element;else if(o.element===null){console.log("EasyMDE: Error. No element was found.");return}if(o.toolbar===void 0){o.toolbar=[];for(var h in Ur)Object.prototype.hasOwnProperty.call(Ur,h)&&(h.indexOf("separator-")!=-1&&o.toolbar.push("|"),(Ur[h].default===!0||o.showIcons&&o.showIcons.constructor===Array&&o.showIcons.indexOf(h)!=-1)&&o.toolbar.push(h))}if(Object.prototype.hasOwnProperty.call(o,"previewClass")||(o.previewClass="editor-preview"),Object.prototype.hasOwnProperty.call(o,"status")||(o.status=["autosave","lines","words","cursor"],o.uploadImage&&o.status.unshift("upload-image")),o.previewRender||(o.previewRender=function(d){return this.parent.markdown(d)}),o.parsingConfig=sr({highlightFormatting:!0},o.parsingConfig||{}),o.insertTexts=sr({},Ip,o.insertTexts||{}),o.promptTexts=sr({},Hp,o.promptTexts||{}),o.blockStyles=sr({},qp,o.blockStyles||{}),o.autosave!=null&&(o.autosave.timeFormat=sr({},Pp,o.autosave.timeFormat||{})),o.iconClassMap=sr({},Be,o.iconClassMap||{}),o.shortcuts=sr({},Tp,o.shortcuts||{}),o.maxHeight=o.maxHeight||void 0,o.direction=o.direction||"ltr",typeof o.maxHeight<"u"?o.minHeight=o.maxHeight:o.minHeight=o.minHeight||"300px",o.errorCallback=o.errorCallback||function(d){alert(d)},o.uploadImage=o.uploadImage||!1,o.imageMaxSize=o.imageMaxSize||2097152,o.imageAccept=o.imageAccept||"image/png, image/jpeg, image/gif, image/avif",o.imageTexts=sr({},Rp,o.imageTexts||{}),o.errorMessages=sr({},Wp,o.errorMessages||{}),o.imagePathAbsolute=o.imagePathAbsolute||!1,o.imageCSRFName=o.imageCSRFName||"csrfmiddlewaretoken",o.imageCSRFHeader=o.imageCSRFHeader||!1,o.imageInputName=o.imageInputName||"image",o.autosave!=null&&o.autosave.unique_id!=null&&o.autosave.unique_id!=""&&(o.autosave.uniqueId=o.autosave.unique_id),o.overlayMode&&o.overlayMode.combine===void 0&&(o.overlayMode.combine=!0),this.options=o,this.render(),o.initialValue&&(!this.options.autosave||this.options.autosave.foundSavedValue!==!0)&&this.value(o.initialValue),o.uploadImage){var c=this;this.codemirror.on("dragenter",function(d,v){c.updateStatusBar("upload-image",c.options.imageTexts.sbOnDragEnter),v.stopPropagation(),v.preventDefault()}),this.codemirror.on("dragend",function(d,v){c.updateStatusBar("upload-image",c.options.imageTexts.sbInit),v.stopPropagation(),v.preventDefault()}),this.codemirror.on("dragleave",function(d,v){c.updateStatusBar("upload-image",c.options.imageTexts.sbInit),v.stopPropagation(),v.preventDefault()}),this.codemirror.on("dragover",function(d,v){c.updateStatusBar("upload-image",c.options.imageTexts.sbOnDragEnter),v.stopPropagation(),v.preventDefault()}),this.codemirror.on("drop",function(d,v){v.stopPropagation(),v.preventDefault(),o.imageUploadFunction?c.uploadImagesUsingCustomFunction(o.imageUploadFunction,v.dataTransfer.files):c.uploadImages(v.dataTransfer.files)}),this.codemirror.on("paste",function(d,v){o.imageUploadFunction?c.uploadImagesUsingCustomFunction(o.imageUploadFunction,v.clipboardData.files):c.uploadImages(v.clipboardData.files)})}}re.prototype.uploadImages=function(o,l,s){if(o.length!==0){for(var a=[],f=0;f=2){var O=z[1];if(l.imagesPreviewHandler){var I=l.imagesPreviewHandler(z[1]);typeof I=="string"&&(O=I)}if(window.EMDEimagesCache[O])F(N,window.EMDEimagesCache[O]);else{window.EMDEimagesCache[O]={};var U=document.createElement("img");U.onload=function(){window.EMDEimagesCache[O]={naturalWidth:U.naturalWidth,naturalHeight:U.naturalHeight,url:O},F(N,window.EMDEimagesCache[O])},U.src=O}}}})}this.codemirror.on("update",function(){B()}),this.gui.sideBySide=this.createSideBySide(),this._rendered=this.element,(l.autofocus===!0||o.autofocus)&&this.codemirror.focus();var L=this.codemirror;setTimeout(function(){L.refresh()}.bind(L),0)};re.prototype.cleanup=function(){document.removeEventListener("keydown",this.documentOnKeyDown)};function ic(){if(typeof localStorage=="object")try{localStorage.setItem("smde_localStorage",1),localStorage.removeItem("smde_localStorage")}catch{return!1}else return!1;return!0}re.prototype.autosave=function(){if(ic()){var o=this;if(this.options.autosave.uniqueId==null||this.options.autosave.uniqueId==""){console.log("EasyMDE: You must set a uniqueId to use the autosave feature");return}this.options.autosave.binded!==!0&&(o.element.form!=null&&o.element.form!=null&&o.element.form.addEventListener("submit",function(){clearTimeout(o.autosaveTimeoutId),o.autosaveTimeoutId=void 0,localStorage.removeItem("smde_"+o.options.autosave.uniqueId)}),this.options.autosave.binded=!0),this.options.autosave.loaded!==!0&&(typeof localStorage.getItem("smde_"+this.options.autosave.uniqueId)=="string"&&localStorage.getItem("smde_"+this.options.autosave.uniqueId)!=""&&(this.codemirror.setValue(localStorage.getItem("smde_"+this.options.autosave.uniqueId)),this.options.autosave.foundSavedValue=!0),this.options.autosave.loaded=!0);var l=o.value();l!==""?localStorage.setItem("smde_"+this.options.autosave.uniqueId,l):localStorage.removeItem("smde_"+this.options.autosave.uniqueId);var s=document.getElementById("autosaved");if(s!=null&&s!=null&&s!=""){var a=new Date,f=new Intl.DateTimeFormat([this.options.autosave.timeFormat.locale,"en-US"],this.options.autosave.timeFormat.format).format(a),h=this.options.autosave.text==null?"Autosaved: ":this.options.autosave.text;s.innerHTML=h+f}}else console.log("EasyMDE: localStorage not available, cannot autosave")};re.prototype.clearAutosavedValue=function(){if(ic()){if(this.options.autosave==null||this.options.autosave.uniqueId==null||this.options.autosave.uniqueId==""){console.log("EasyMDE: You must set a uniqueId to clear the autosave value");return}localStorage.removeItem("smde_"+this.options.autosave.uniqueId)}else console.log("EasyMDE: localStorage not available, cannot autosave")};re.prototype.openBrowseFileWindow=function(o,l){var s=this,a=this.gui.toolbar.getElementsByClassName("imageInput")[0];a.click();function f(h){s.options.imageUploadFunction?s.uploadImagesUsingCustomFunction(s.options.imageUploadFunction,h.target.files):s.uploadImages(h.target.files,o,l),a.removeEventListener("change",f)}a.addEventListener("change",f)};re.prototype.uploadImage=function(o,l,s){var a=this;l=l||function(y){ec(a,y)};function f(v){a.updateStatusBar("upload-image",v),setTimeout(function(){a.updateStatusBar("upload-image",a.options.imageTexts.sbInit)},1e4),s&&typeof s=="function"&&s(v),a.options.errorCallback(v)}function h(v){var y=a.options.imageTexts.sizeUnits.split(",");return v.replace("#image_name#",o.name).replace("#image_size#",co(o.size,y)).replace("#image_max_size#",co(a.options.imageMaxSize,y))}if(o.size>this.options.imageMaxSize){f(h(this.options.errorMessages.fileTooLarge));return}var c=new FormData;c.append("image",o),a.options.imageCSRFToken&&!a.options.imageCSRFHeader&&c.append(a.options.imageCSRFName,a.options.imageCSRFToken);var d=new XMLHttpRequest;d.upload.onprogress=function(v){if(v.lengthComputable){var y=""+Math.round(v.loaded*100/v.total);a.updateStatusBar("upload-image",a.options.imageTexts.sbProgress.replace("#file_name#",o.name).replace("#progress#",y))}},d.open("POST",this.options.imageUploadEndpoint),a.options.imageCSRFToken&&a.options.imageCSRFHeader&&d.setRequestHeader(a.options.imageCSRFName,a.options.imageCSRFToken),d.onload=function(){try{var v=JSON.parse(this.responseText)}catch{console.error("EasyMDE: The server did not return a valid json."),f(h(a.options.errorMessages.importError));return}this.status===200&&v&&!v.error&&v.data&&v.data.filePath?l((a.options.imagePathAbsolute?"":window.location.origin+"/")+v.data.filePath):v.error&&v.error in a.options.errorMessages?f(h(a.options.errorMessages[v.error])):v.error?f(h(v.error)):(console.error("EasyMDE: Received an unexpected response after uploading the image."+this.status+" ("+this.statusText+")"),f(h(a.options.errorMessages.importError)))},d.onerror=function(v){console.error("EasyMDE: An unexpected error occurred when trying to upload the image."+v.target.status+" ("+v.target.statusText+")"),f(a.options.errorMessages.importError)},d.send(c)};re.prototype.uploadImageUsingCustomFunction=function(o,l){var s=this;function a(c){ec(s,c)}function f(c){var d=h(c);s.updateStatusBar("upload-image",d),setTimeout(function(){s.updateStatusBar("upload-image",s.options.imageTexts.sbInit)},1e4),s.options.errorCallback(d)}function h(c){var d=s.options.imageTexts.sizeUnits.split(",");return c.replace("#image_name#",l.name).replace("#image_size#",co(l.size,d)).replace("#image_max_size#",co(s.options.imageMaxSize,d))}o.apply(this,[l,a,f])};re.prototype.setPreviewMaxHeight=function(){var o=this.codemirror,l=o.getWrapperElement(),s=l.nextSibling,a=parseInt(window.getComputedStyle(l).paddingTop),f=parseInt(window.getComputedStyle(l).borderTopWidth),h=parseInt(this.options.maxHeight),c=h+a*2+f*2,d=c.toString()+"px";s.style.height=d};re.prototype.createSideBySide=function(){var o=this.codemirror,l=o.getWrapperElement(),s=l.nextSibling;if(!s||!s.classList.contains("editor-preview-side")){if(s=document.createElement("div"),s.className="editor-preview-side",this.options.previewClass)if(Array.isArray(this.options.previewClass))for(var a=0;a"&&(l=l.substring(1)),o)try{if(o.matches)return o.matches(l);if(o.msMatchesSelector)return o.msMatchesSelector(l);if(o.webkitMatchesSelector)return o.webkitMatchesSelector(l)}catch{return!1}return!1}}function vc(o){return o.host&&o!==document&&o.host.nodeType&&o.host!==o?o.host:o.parentNode}function Gt(o,l,s,a){if(o){s=s||document;do{if(l!=null&&(l[0]===">"?o.parentNode===s&&Wo(o,l):Wo(o,l))||a&&o===s)return o;if(o===s)break}while(o=vc(o))}return null}var sc=/\s+/g;function zt(o,l,s){if(o&&l)if(o.classList)o.classList[s?"add":"remove"](l);else{var a=(" "+o.className+" ").replace(sc," ").replace(" "+l+" "," ");o.className=(a+(s?" "+l:"")).replace(sc," ")}}function ge(o,l,s){var a=o&&o.style;if(a){if(s===void 0)return document.defaultView&&document.defaultView.getComputedStyle?s=document.defaultView.getComputedStyle(o,""):o.currentStyle&&(s=o.currentStyle),l===void 0?s:s[l];!(l in a)&&l.indexOf("webkit")===-1&&(l="-webkit-"+l),a[l]=s+(typeof s=="string"?"":"px")}}function Ai(o,l){var s="";if(typeof o=="string")s=o;else do{var a=ge(o,"transform");a&&a!=="none"&&(s=a+" "+s)}while(!l&&(o=o.parentNode));var f=window.DOMMatrix||window.WebKitCSSMatrix||window.CSSMatrix||window.MSCSSMatrix;return f&&new f(s)}function bc(o,l,s){if(o){var a=o.getElementsByTagName(l),f=0,h=a.length;if(s)for(;f=h:c=f<=h,!c)return a;if(a===$t())break;a=Tr(a,!1)}return!1}function Fi(o,l,s,a){for(var f=0,h=0,c=o.children;h2&&arguments[2]!==void 0?arguments[2]:{},f=a.evt,h=jp(a,r0);wn.pluginEvent.bind(me)(l,s,er({dragEl:$,parentEl:Ue,ghostEl:xe,rootEl:He,nextEl:Yr,lastDownEl:Ho,cloneEl:Re,cloneHidden:Fr,dragStarted:dn,putSortable:ft,activeSortable:me.active,originalEvent:f,oldIndex:Ei,oldDraggableIndex:vn,newIndex:Nt,newDraggableIndex:Ar,hideGhostForTarget:Ec,unhideGhostForTarget:Ac,cloneNowHidden:function(){Fr=!0},cloneNowShown:function(){Fr=!1},dispatchSortableEvent:function(d){kt({sortable:s,name:d,originalEvent:f})}},h))};function kt(o){t0(er({putSortable:ft,cloneEl:Re,targetEl:$,rootEl:He,oldIndex:Ei,oldDraggableIndex:vn,newIndex:Nt,newDraggableIndex:Ar},o))}var $,Ue,xe,He,Yr,Ho,Re,Fr,Ei,Nt,vn,Ar,zo,ft,Si=!1,Uo=!1,jo=[],Xr,jt,Dl,kl,cc,dc,dn,ki,bn,yn=!1,No=!1,Po,mt,Sl=[],Ml=!1,Go=[],Ko=typeof document<"u",Oo=Nl,hc=xn||cr?"cssFloat":"float",i0=Ko&&!gc&&!Nl&&"draggable"in document.createElement("div"),Dc=function(){if(Ko){if(cr)return!1;var o=document.createElement("x");return o.style.cssText="pointer-events:auto",o.style.pointerEvents==="auto"}}(),kc=function(l,s){var a=ge(l),f=parseInt(a.width)-parseInt(a.paddingLeft)-parseInt(a.paddingRight)-parseInt(a.borderLeftWidth)-parseInt(a.borderRightWidth),h=Fi(l,0,s),c=Fi(l,1,s),d=h&&ge(h),v=c&&ge(c),y=d&&parseInt(d.marginLeft)+parseInt(d.marginRight)+Ve(h).width,x=v&&parseInt(v.marginLeft)+parseInt(v.marginRight)+Ve(c).width;if(a.display==="flex")return a.flexDirection==="column"||a.flexDirection==="column-reverse"?"vertical":"horizontal";if(a.display==="grid")return a.gridTemplateColumns.split(" ").length<=1?"vertical":"horizontal";if(h&&d.float&&d.float!=="none"){var D=d.float==="left"?"left":"right";return c&&(v.clear==="both"||v.clear===D)?"vertical":"horizontal"}return h&&(d.display==="block"||d.display==="flex"||d.display==="table"||d.display==="grid"||y>=f&&a[hc]==="none"||c&&a[hc]==="none"&&y+x>f)?"vertical":"horizontal"},n0=function(l,s,a){var f=a?l.left:l.top,h=a?l.right:l.bottom,c=a?l.width:l.height,d=a?s.left:s.top,v=a?s.right:s.bottom,y=a?s.width:s.height;return f===d||h===v||f+c/2===d+y/2},o0=function(l,s){var a;return jo.some(function(f){var h=f[Tt].options.emptyInsertThreshold;if(!(!h||Ol(f))){var c=Ve(f),d=l>=c.left-h&&l<=c.right+h,v=s>=c.top-h&&s<=c.bottom+h;if(d&&v)return a=f}}),a},Sc=function(l){function s(h,c){return function(d,v,y,x){var D=d.options.group.name&&v.options.group.name&&d.options.group.name===v.options.group.name;if(h==null&&(c||D))return!0;if(h==null||h===!1)return!1;if(c&&h==="clone")return h;if(typeof h=="function")return s(h(d,v,y,x),c)(d,v,y,x);var S=(c?d:v).options.group.name;return h===!0||typeof h=="string"&&h===S||h.join&&h.indexOf(S)>-1}}var a={},f=l.group;(!f||Ll(f)!="object")&&(f={name:f}),a.name=f.name,a.checkPull=s(f.pull,!0),a.checkPut=s(f.put),a.revertClone=f.revertClone,l.group=a},Ec=function(){!Dc&&xe&&ge(xe,"display","none")},Ac=function(){!Dc&&xe&&ge(xe,"display","")};Ko&&!gc&&document.addEventListener("click",function(o){if(Uo)return o.preventDefault(),o.stopPropagation&&o.stopPropagation(),o.stopImmediatePropagation&&o.stopImmediatePropagation(),Uo=!1,!1},!0);var Kr=function(l){if($){l=l.touches?l.touches[0]:l;var s=o0(l.clientX,l.clientY);if(s){var a={};for(var f in l)l.hasOwnProperty(f)&&(a[f]=l[f]);a.target=a.rootEl=s,a.preventDefault=void 0,a.stopPropagation=void 0,s[Tt]._onDragOver(a)}}},a0=function(l){$&&$.parentNode[Tt]._isOutsideThisEl(l.target)};function me(o,l){if(!(o&&o.nodeType&&o.nodeType===1))throw"Sortable: `el` must be an HTMLElement, not ".concat({}.toString.call(o));this.el=o,this.options=l=fr({},l),o[Tt]=this;var s={group:null,sort:!0,disabled:!1,store:null,handle:null,draggable:/^[uo]l$/i.test(o.nodeName)?">li":">*",swapThreshold:1,invertSwap:!1,invertedSwapThreshold:null,removeCloneOnHide:!0,direction:function(){return kc(o,this.options)},ghostClass:"sortable-ghost",chosenClass:"sortable-chosen",dragClass:"sortable-drag",ignore:"a, img",filter:null,preventOnFilter:!0,animation:0,easing:null,setData:function(c,d){c.setData("Text",d.textContent)},dropBubble:!1,dragoverBubble:!1,dataIdAttr:"data-id",delay:0,delayOnTouchOnly:!1,touchStartThreshold:(Number.parseInt?Number:window).parseInt(window.devicePixelRatio,10)||1,forceFallback:!1,fallbackClass:"sortable-fallback",fallbackOnBody:!1,fallbackTolerance:0,fallbackOffset:{x:0,y:0},supportPointer:me.supportPointer!==!1&&"PointerEvent"in window&&(!gn||Nl),emptyInsertThreshold:5};wn.initializePlugins(this,o,s);for(var a in s)!(a in l)&&(l[a]=s[a]);Sc(l);for(var f in this)f.charAt(0)==="_"&&typeof this[f]=="function"&&(this[f]=this[f].bind(this));this.nativeDraggable=l.forceFallback?!1:i0,this.nativeDraggable&&(this.options.touchStartThreshold=1),l.supportPointer?Se(o,"pointerdown",this._onTapStart):(Se(o,"mousedown",this._onTapStart),Se(o,"touchstart",this._onTapStart)),this.nativeDraggable&&(Se(o,"dragover",this),Se(o,"dragenter",this)),jo.push(this.el),l.store&&l.store.get&&this.sort(l.store.get(this)||[]),fr(this,Vp())}me.prototype={constructor:me,_isOutsideThisEl:function(l){!this.el.contains(l)&&l!==this.el&&(ki=null)},_getDirection:function(l,s){return typeof this.options.direction=="function"?this.options.direction.call(this,l,s,$):this.options.direction},_onTapStart:function(l){if(l.cancelable){var s=this,a=this.el,f=this.options,h=f.preventOnFilter,c=l.type,d=l.touches&&l.touches[0]||l.pointerType&&l.pointerType==="touch"&&l,v=(d||l).target,y=l.target.shadowRoot&&(l.path&&l.path[0]||l.composedPath&&l.composedPath()[0])||v,x=f.filter;if(p0(a),!$&&!(/mousedown|pointerdown/.test(c)&&l.button!==0||f.disabled)&&!y.isContentEditable&&!(!this.nativeDraggable&&gn&&v&&v.tagName.toUpperCase()==="SELECT")&&(v=Gt(v,f.draggable,a,!1),!(v&&v.animated)&&Ho!==v)){if(Ei=It(v),vn=It(v,f.draggable),typeof x=="function"){if(x.call(this,l,v,this)){kt({sortable:s,rootEl:y,name:"filter",targetEl:v,toEl:a,fromEl:a}),Ft("filter",s,{evt:l}),h&&l.preventDefault();return}}else if(x&&(x=x.split(",").some(function(D){if(D=Gt(y,D.trim(),a,!1),D)return kt({sortable:s,rootEl:D,name:"filter",targetEl:v,fromEl:a,toEl:a}),Ft("filter",s,{evt:l}),!0}),x)){h&&l.preventDefault();return}f.handle&&!Gt(y,f.handle,a,!1)||this._prepareDragStart(l,d,v)}}},_prepareDragStart:function(l,s,a){var f=this,h=f.el,c=f.options,d=h.ownerDocument,v;if(a&&!$&&a.parentNode===h){var y=Ve(a);if(He=h,$=a,Ue=$.parentNode,Yr=$.nextSibling,Ho=a,zo=c.group,me.dragged=$,Xr={target:$,clientX:(s||l).clientX,clientY:(s||l).clientY},cc=Xr.clientX-y.left,dc=Xr.clientY-y.top,this._lastX=(s||l).clientX,this._lastY=(s||l).clientY,$.style["will-change"]="all",v=function(){if(Ft("delayEnded",f,{evt:l}),me.eventCanceled){f._onDrop();return}f._disableDelayedDragEvents(),!lc&&f.nativeDraggable&&($.draggable=!0),f._triggerDragStart(l,s),kt({sortable:f,name:"choose",originalEvent:l}),zt($,c.chosenClass,!0)},c.ignore.split(",").forEach(function(x){bc($,x.trim(),El)}),Se(d,"dragover",Kr),Se(d,"mousemove",Kr),Se(d,"touchmove",Kr),c.supportPointer?(Se(d,"pointerup",f._onDrop),!this.nativeDraggable&&Se(d,"pointercancel",f._onDrop)):(Se(d,"mouseup",f._onDrop),Se(d,"touchend",f._onDrop),Se(d,"touchcancel",f._onDrop)),lc&&this.nativeDraggable&&(this.options.touchStartThreshold=4,$.draggable=!0),Ft("delayStart",this,{evt:l}),c.delay&&(!c.delayOnTouchOnly||s)&&(!this.nativeDraggable||!(xn||cr))){if(me.eventCanceled){this._onDrop();return}c.supportPointer?(Se(d,"pointerup",f._disableDelayedDrag),Se(d,"pointercancel",f._disableDelayedDrag)):(Se(d,"mouseup",f._disableDelayedDrag),Se(d,"touchend",f._disableDelayedDrag),Se(d,"touchcancel",f._disableDelayedDrag)),Se(d,"mousemove",f._delayedDragTouchMoveHandler),Se(d,"touchmove",f._delayedDragTouchMoveHandler),c.supportPointer&&Se(d,"pointermove",f._delayedDragTouchMoveHandler),f._dragStartTimer=setTimeout(v,c.delay)}else v()}},_delayedDragTouchMoveHandler:function(l){var s=l.touches?l.touches[0]:l;Math.max(Math.abs(s.clientX-this._lastX),Math.abs(s.clientY-this._lastY))>=Math.floor(this.options.touchStartThreshold/(this.nativeDraggable&&window.devicePixelRatio||1))&&this._disableDelayedDrag()},_disableDelayedDrag:function(){$&&El($),clearTimeout(this._dragStartTimer),this._disableDelayedDragEvents()},_disableDelayedDragEvents:function(){var l=this.el.ownerDocument;ke(l,"mouseup",this._disableDelayedDrag),ke(l,"touchend",this._disableDelayedDrag),ke(l,"touchcancel",this._disableDelayedDrag),ke(l,"pointerup",this._disableDelayedDrag),ke(l,"pointercancel",this._disableDelayedDrag),ke(l,"mousemove",this._delayedDragTouchMoveHandler),ke(l,"touchmove",this._delayedDragTouchMoveHandler),ke(l,"pointermove",this._delayedDragTouchMoveHandler)},_triggerDragStart:function(l,s){s=s||l.pointerType=="touch"&&l,!this.nativeDraggable||s?this.options.supportPointer?Se(document,"pointermove",this._onTouchMove):s?Se(document,"touchmove",this._onTouchMove):Se(document,"mousemove",this._onTouchMove):(Se($,"dragend",this),Se(He,"dragstart",this._onDragStart));try{document.selection?qo(function(){document.selection.empty()}):window.getSelection().removeAllRanges()}catch{}},_dragStarted:function(l,s){if(Si=!1,He&&$){Ft("dragStarted",this,{evt:s}),this.nativeDraggable&&Se(document,"dragover",a0);var a=this.options;!l&&zt($,a.dragClass,!1),zt($,a.ghostClass,!0),me.active=this,l&&this._appendGhost(),kt({sortable:this,name:"start",originalEvent:s})}else this._nulling()},_emulateDragOver:function(){if(jt){this._lastX=jt.clientX,this._lastY=jt.clientY,Ec();for(var l=document.elementFromPoint(jt.clientX,jt.clientY),s=l;l&&l.shadowRoot&&(l=l.shadowRoot.elementFromPoint(jt.clientX,jt.clientY),l!==s);)s=l;if($.parentNode[Tt]._isOutsideThisEl(l),s)do{if(s[Tt]){var a=void 0;if(a=s[Tt]._onDragOver({clientX:jt.clientX,clientY:jt.clientY,target:l,rootEl:s}),a&&!this.options.dragoverBubble)break}l=s}while(s=vc(s));Ac()}},_onTouchMove:function(l){if(Xr){var s=this.options,a=s.fallbackTolerance,f=s.fallbackOffset,h=l.touches?l.touches[0]:l,c=xe&&Ai(xe,!0),d=xe&&c&&c.a,v=xe&&c&&c.d,y=Oo&&mt&&fc(mt),x=(h.clientX-Xr.clientX+f.x)/(d||1)+(y?y[0]-Sl[0]:0)/(d||1),D=(h.clientY-Xr.clientY+f.y)/(v||1)+(y?y[1]-Sl[1]:0)/(v||1);if(!me.active&&!Si){if(a&&Math.max(Math.abs(h.clientX-this._lastX),Math.abs(h.clientY-this._lastY))=0&&(kt({rootEl:Ue,name:"add",toEl:Ue,fromEl:He,originalEvent:l}),kt({sortable:this,name:"remove",toEl:Ue,originalEvent:l}),kt({rootEl:Ue,name:"sort",toEl:Ue,fromEl:He,originalEvent:l}),kt({sortable:this,name:"sort",toEl:Ue,originalEvent:l})),ft&&ft.save()):Nt!==Ei&&Nt>=0&&(kt({sortable:this,name:"update",toEl:Ue,originalEvent:l}),kt({sortable:this,name:"sort",toEl:Ue,originalEvent:l})),me.active&&((Nt==null||Nt===-1)&&(Nt=Ei,Ar=vn),kt({sortable:this,name:"end",toEl:Ue,originalEvent:l}),this.save()))),this._nulling()},_nulling:function(){Ft("nulling",this),He=$=Ue=xe=Yr=Re=Ho=Fr=Xr=jt=dn=Nt=Ar=Ei=vn=ki=bn=ft=zo=me.dragged=me.ghost=me.clone=me.active=null;var l=this.el;Go.forEach(function(s){l.contains(s)&&(s.checked=!0)}),Go.length=Dl=kl=0},handleEvent:function(l){switch(l.type){case"drop":case"dragend":this._onDrop(l);break;case"dragenter":case"dragover":$&&(this._onDragOver(l),l0(l));break;case"selectstart":l.preventDefault();break}},toArray:function(){for(var l=[],s,a=this.el.children,f=0,h=a.length,c=this.options;ff.right+h||o.clientY>a.bottom&&o.clientX>a.left:o.clientY>f.bottom+h||o.clientX>a.right&&o.clientY>a.top}function c0(o,l,s,a,f,h,c,d){var v=a?o.clientY:o.clientX,y=a?s.height:s.width,x=a?s.top:s.left,D=a?s.bottom:s.right,S=!1;if(!c){if(d&&Pox+y*h/2:vD-Po)return-bn}else if(v>x+y*(1-f)/2&&vD-y*h/2)?v>x+y/2?1:-1:0}function d0(o){return It($)0||D>0&&S0?"Converting "+l+" photo"+(l>1?"s":"")+"\u2026":"Uploading "+D+" photo"+(D>1?"s":"")+"\u2026",s.details.open=!0):D>0?(s.summary.textContent="\u2713 "+D+" photo"+(D>1?"s":"")+" ready \u2014 tap to review",s.details.open=!1):(s.summary.textContent="Photos (1\u20136)",s.details.open=!0)}}function c(){h(),setTimeout(h,150),setTimeout(h,500)}function d(){var x=o.querySelector('button[type="submit"], input[type="submit"]');if(x&&(x.disabled=l>0),l>0)f("Converting "+l+" photo"+(l>1?"s":"")+"\u2026");else{var D=Bc();D&&/Converting/.test(D.textContent)&&f("")}h()}o.addEventListener("submit",function(x){l>0&&(x.preventDefault(),f("Hang on \u2014 a photo is still converting.","err"))},!0);function v(x){return function(D){var S=D&&D.file;return S?Hc(S).then(function(F){return F?(l++,d(),import("./heic-to-CN7JBE7H.js").then(function(B){var L=B.heicTo||B.default&&B.default.heicTo;return L({blob:S,type:"image/jpeg",quality:.85})}).then(function(B){var L=new File([B],y0(S.name),{type:"image/jpeg"});x.addFile(L)}).catch(function(){f("A photo couldn\u2019t be converted and was skipped \u2014 the others are fine.","err")}).then(function(){l--,d()}),!1):!0}):!0}}var y=0;(function x(){var D=window.GravFilePond&&window.GravFilePond.getInstances?window.GravFilePond.getInstances():[];if(!D.length){y++<120&&setTimeout(x,50);return}D.forEach(function(S){S&&!S._heicHooked&&(S._heicHooked=!0,S.setOptions({beforeAddFile:v(S),allowReorder:!0,itemInsertLocation:"after"}),a=S,["addfile","processfile","processfiles","removefile","error"].forEach(function(F){try{S.on(F,c)}catch{}}),h())})})()}function ct(o){return document.querySelector('[name="data['+o+']"]')}function C0(){var o=Array.prototype.slice.call(document.querySelectorAll(".advanced-field"));if(o.length){var l=[];if(o.forEach(function(h){var c=h.closest(".form-field");c&&l.indexOf(c)===-1&&l.push(c)}),!!l.length){var s=document.createElement("details");s.className="more-options";var a=document.createElement("summary");a.className="more-options__summary",a.textContent="More options",s.appendChild(a),l[0].parentNode.insertBefore(s,l[0]),l.forEach(function(h){s.appendChild(h)});var f=l.some(function(h){var c=h.querySelector('input[type="text"]');if(c&&c.value.trim())return!0;var d=h.querySelector('input[type="radio"]:checked');if(!d||!d.value)return!1;var v=h.querySelector('input[type="radio"][checked]');return v?d.value!==v.value:d.value!=="0"});f&&(s.open=!0)}}}var D0={0:"Sunny",1:"Partly cloudy",2:"Partly cloudy",3:"Cloudy",45:"Foggy",48:"Foggy",51:"Drizzle",53:"Drizzle",55:"Drizzle",56:"Drizzle",57:"Drizzle",61:"Rain",63:"Rain",65:"Rain",66:"Rain",67:"Rain",80:"Rain",81:"Rain",82:"Rain",71:"Snow",73:"Snow",75:"Snow",77:"Snow",85:"Snow",86:"Snow",95:"Thunderstorm",96:"Thunderstorm",99:"Thunderstorm"};function dr(o,l,s){o&&(o.className="form-status"+(s?" form-status--"+s:""),o.textContent=l||"")}function k0(){var o=document.getElementById("get-location"),l=document.getElementById("get-weather");if(!o&&!l)return;var s=document.getElementById("location-status"),a=document.getElementById("weather-status");function f(){var d=ct("lat"),v=ct("lng"),y=d?d.value.trim():"",x=v?v.value.trim():"";return y&&x?{lat:y,lng:x}:null}function h(){if(l){var d=!!f();l.disabled=!d,l.title=d?"":"Get location first"}}h();function c(d,v){var y=ct("location_city"),x=ct("location_country");if(!((!y||y.value.trim())&&(!x||x.value.trim()))){var D="https://api.bigdatacloud.net/data/reverse-geocode-client?latitude="+encodeURIComponent(d)+"&longitude="+encodeURIComponent(v)+"&localityLanguage=en";fetch(D).then(function(S){return S.json()}).then(function(S){var F=(S.city||S.locality||"").trim(),B=(S.countryName||"").trim();y&&!y.value.trim()&&F&&(y.value=F),x&&!x.value.trim()&&B&&(x.value=B);var L=[F,B].filter(Boolean).join(", ");L&&dr(s,"\u2713 Location captured \xB7 "+L,"ok")}).catch(function(){})}}o&&o.addEventListener("click",function(){if(!navigator.geolocation){dr(s,"Geolocation is not supported on this device.","err");return}o.classList.add("is-loading"),o.disabled=!0,dr(s,"Getting location\u2026"),navigator.geolocation.getCurrentPosition(function(d){var v=d.coords.latitude.toFixed(6),y=d.coords.longitude.toFixed(6),x=ct("lat"),D=ct("lng");x&&(x.value=v),D&&(D.value=y),o.classList.remove("is-loading"),o.disabled=!1,dr(s,"\u2713 Location captured \xB7 "+v+", "+y,"ok"),h(),c(v,y);var S=document.querySelector(".location-details");S&&S.open&&Ul()},function(d){o.classList.remove("is-loading"),o.disabled=!1,dr(s,"\u2717 "+(d&&d.message?d.message:"Could not get location")+" \u2014 enter coordinates manually if needed.","err")},{enableHighAccuracy:!0,timeout:15e3})}),l&&l.addEventListener("click",function(){var d=f();if(!d){dr(a,"Get location first, then fetch weather.","err");return}l.classList.add("is-loading"),l.disabled=!0,dr(a,"Fetching weather\u2026");var v="https://api.open-meteo.com/v1/forecast?latitude="+d.lat+"&longitude="+d.lng+"¤t=temperature_2m,weather_code&temperature_unit=celsius";fetch(v).then(function(y){return y.json()}).then(function(y){var x=Math.round(y.current.temperature_2m),D=D0[y.current.weather_code]||"Cloudy",S=ct("weather_temp_c"),F=ct("weather_desc");S&&(S.value=x),F&&(F.value=D),l.classList.remove("is-loading"),h(),dr(a,"\u2713 Weather set \xB7 "+D+" \xB7 "+x+"\xB0C (edit above if needed)","ok")}).catch(function(){l.classList.remove("is-loading"),h(),dr(a,"\u2717 Could not fetch weather \u2014 set it manually above.","err")})})}var Ul=function(){};function S0(o,l){var s=null;return function(){var a=arguments;clearTimeout(s),s=setTimeout(function(){o.apply(null,a)},l)}}function E0(o){return[o.name,o.admin1,o.country].filter(Boolean).join(", ")}function A0(){var o=ct("lat"),l=ct("lng");if(!o||!l)return;var s=o.closest(".form-field"),a=l.closest(".form-field");if(!s||!a)return;var f=ct("location_city"),h=ct("location_country"),c=h?h.closest(".form-field"):null,d=c||s,v=document.createElement("details");v.className="location-details";var y=document.createElement("summary");y.className="location-details__summary",y.textContent="More location details",v.appendChild(y);var x=document.createElement("div");x.className="location-details__body";var D=document.createElement("div");D.className="location-search-row";var S=document.createElement("button");S.type="button",S.id="lookup-coords",S.className="btn-action";var F="\u{1F50D} Look up coordinates";S.textContent=F,D.appendChild(S),x.appendChild(D);var B=document.createElement("p");B.id="location-search-hint",B.className="location-search-hint",B.setAttribute("role","status"),x.appendChild(B);var L=document.createElement("ul");L.id="location-search-results",L.className="location-search-results",x.appendChild(L);var T=document.createElement("div");T.id="location-map",T.className="location-map",x.appendChild(T),v.appendChild(x),d.parentNode.insertBefore(v,d.nextSibling),v.appendChild(s),v.appendChild(a);function N(G){return G===o?"location-lat-note":"location-lng-note"}function z(){[o,l].forEach(function(G){G.classList.add("location-field--mismatch"),G.setAttribute("aria-invalid","true");var k=N(G),H=document.getElementById(k);H||(H=document.createElement("span"),H.id=k,H.className="location-field-note",H.setAttribute("role","status"),H.setAttribute("aria-live","polite"),H.textContent="Not reflected on the map yet.",G.parentNode.insertBefore(H,G.nextSibling)),G.setAttribute("aria-describedby",k)})}function O(){[o,l].forEach(function(G){G.classList.remove("location-field--mismatch"),G.removeAttribute("aria-invalid"),G.removeAttribute("aria-describedby");var k=document.getElementById(N(G));k&&k.parentNode&&k.parentNode.removeChild(k)})}var I=null;function U(G){var k=String(G).trim();return!k||!/^[+-]?(\d+(\.\d*)?|\.\d+)$/.test(k)?NaN:Number(k)}function j(){var G=U(o.value),k=U(l.value),H=isFinite(G)&&isFinite(k)&&G>=-90&&G<=90&&k>=-180&&k<=180;H?(o.value=G.toFixed(6),l.value=k.toFixed(6),O(),I&&I.setPin(G,k)):o.value.trim()||l.value.trim()?z():(O(),I&&I.clearPin())}Ul=j;function K(G){o.value=G.lat.toFixed(6),l.value=G.lng.toFixed(6),O()}v.addEventListener("toggle",function(){v.open&&Mc(T,K).then(function(G){I=G,G.resize(),j()}).catch(function(){W("Map preview unavailable \u2014 you can still enter coordinates directly."),j()})}),o.addEventListener("blur",j),l.addEventListener("blur",j);var de=S0(j,400);o.addEventListener("input",de),l.addEventListener("input",de);function W(G){B.textContent=G||""}function oe(){L.innerHTML=""}function X(G){G.forEach(function(k){var H=document.createElement("li"),q=document.createElement("button");q.type="button",q.textContent=E0(k),q.addEventListener("click",function(){o.value=Number(k.latitude).toFixed(6),l.value=Number(k.longitude).toFixed(6),oe(),j()}),H.appendChild(q),L.appendChild(H)})}S.addEventListener("click",function(){oe();var G=f?f.value.trim():"",k=h?h.value.trim():"";if(!G&&!k){W("Enter a city or country first.");return}var H=G||k;W(""),S.disabled=!0,S.textContent="Searching\u2026";var q="https://geocoding-api.open-meteo.com/v1/search?name="+encodeURIComponent(H)+"&count=10&language=en&format=json",Q=new AbortController,he=setTimeout(function(){Q.abort()},1e4);fetch(q,{signal:Q.signal}).then(function(pe){if(!pe.ok)throw new Error("geocode http "+pe.status);return pe.json()}).then(function(pe){var Ee=pe&&pe.results||[];if(!Ee.length){W("No matches \u2014 try adding a country, or drag the pin on the map.");return}if(k){var A=k.toLowerCase(),w=function(ee){return(ee.admin1||"").toLowerCase().indexOf(A)!==-1||(ee.country||"").toLowerCase().indexOf(A)!==-1};Ee=Ee.slice().sort(function(ee,Ce){var ye=w(ee),lt=w(Ce);return ye===lt?0:ye?-1:1})}X(Ee)}).catch(function(){W("Couldn\u2019t reach the lookup service \u2014 check your connection and try again, or drag the pin on the map.")}).then(function(){clearTimeout(he),S.disabled=!1,S.textContent=F})}),j()}function F0(){var o=new Date;return o.setSeconds(0,0),o.setMinutes(o.getMinutes()-o.getTimezoneOffset()),o.toISOString().slice(0,16)}function T0(){var o={title:"Title",date:"Date & time",content:"Content"},l=document.querySelector('form[name="new-entry"]');if(!l)return;var s=ct("date");s&&!String(s.value).trim()&&(s.value=F0());function a(){l.querySelectorAll(".field-error").forEach(function(c){c.remove()}),l.querySelectorAll(".field-invalid").forEach(function(c){c.classList.remove("field-invalid")})}function f(c,d){c.classList.add("field-invalid");var v=document.createElement("span");v.className="field-error",v.textContent=d,c.parentNode.insertBefore(v,c.nextSibling)}function h(c){var d=l.querySelector(".photos-collapse"),v,y;if(d?(d.open=!0,y=d.querySelector(".photos-collapse__summary"),v=d):(v=document.querySelector(".filepond-root, .form-input-file"),y=v),!y)return v||null;var x=document.createElement("span");return x.className="field-error",x.textContent=c,y.insertAdjacentElement("afterend",x),v||y}l.addEventListener("submit",function(c){a();var d=null;!Yo&&document.querySelectorAll(".filepond--item").length<1&&(d=h("Add at least one photo.")),Object.keys(o).forEach(function(y){var x=ct(y);x&&!String(x.value).trim()&&(f(x,o[y]+" is required."),d||(d=x))});var v=l.querySelector(".location-field--mismatch");v&&!d&&(d=v),d&&(c.preventDefault(),typeof d.focus=="function"&&d.focus(),d.scrollIntoView({behavior:"smooth",block:"center"}))})}var ql="intotheeast:new-entry-draft";function L0(o){return Array.prototype.slice.call(o.querySelectorAll('[name^="data["]')).filter(function(l){if(l.type==="file")return!1;var s=l.name;return s.indexOf("data[_json")!==0&&s.indexOf("data[photos")!==0})}function M0(){var o=document.querySelector(".filepond-root, .form-input-file");if(!(!o||!o.parentNode)&&!o.parentNode.querySelector(".photo-reauth-hint")){var l=document.createElement("p");l.className="photo-reauth-hint is-shown",l.textContent="Your text was restored \u2014 photos need re-selecting (they can\u2019t be saved in a draft).",o.parentNode.insertBefore(l,o.nextSibling)}}function B0(){var o=document.querySelector('form[name="new-entry"]');if(!o||Yo)return;if(document.querySelector(".notices.success")){try{localStorage.removeItem(ql)}catch{}return}function l(){var h={};L0(o).forEach(function(c){c.type==="radio"?c.checked&&(h[c.name]=c.value):h[c.name]=c.value});try{localStorage.setItem(ql,JSON.stringify(h))}catch{}}var s=null;try{s=localStorage.getItem(ql)}catch{s=null}if(s){var a=null;try{a=JSON.parse(s)}catch{a=null}if(a){var f=!1;Object.keys(a).forEach(function(h){var c=a[h];if(c!=null&&String(c).trim()&&(f=!0),h!=="data[content]"){var d=o.querySelectorAll('input[type="radio"][name="'+h+'"]');if(d.length){d.forEach(function(y){y.checked=y.value===c});return}var v=o.querySelector('[name="'+h+'"]');v&&v.type!=="file"&&(v.value=c)}}),window.postFormEditor&&a["data[content]"]!=null&&window.postFormEditor.value(a["data[content]"]),f&&M0()}}o.addEventListener("input",l),o.addEventListener("change",l),window.postFormEditor&&window.postFormEditor.codemirror.on("change",l)}function _0(){var o=document.querySelector(".post-form-wrap"),l=document.querySelector(".post-form-wrap .notices.success, .post-form-wrap .notices.green");if(!(!o||!l)){var s=document.createElement("div");s.className="post-success";var a=document.createElement("p");a.className="post-success__title",a.textContent="\u2713 Saved to your journal.",s.appendChild(a);var f=document.createElement("div");f.className="post-success__actions";var h=o.getAttribute("data-trip-url");if(h){var c=document.createElement("a");c.className="post-success__view",c.href=h,c.textContent="View your journal \u2192",f.appendChild(c)}var d=document.createElement("a");d.className="post-success__again",d.href=window.location.pathname,d.textContent="Post another",f.appendChild(d),s.appendChild(f),l.parentNode.insertBefore(s,l.nextSibling),["form",".form-action-row","#location-status","#weather-status"].forEach(function(v){var y=o.querySelector(v);y&&(y.style.display="none")}),l.scrollIntoView({behavior:"smooth",block:"start"})}}var Yo=!1;function _c(o){return new URLSearchParams(window.location.search).get(o)}function hr(o,l){var s=ct(o);s&&(s.value=l==null?"":String(l))}function Rl(o,l){var s=l?"1":"0",a=document.querySelectorAll('[name="data['+o+']"]');Array.prototype.forEach.call(a,function(f){f.checked=String(f.value)===s})}function z0(o){var l=o==null?"":String(o);if(window.postFormEditor&&typeof window.postFormEditor.value=="function")window.postFormEditor.value(l);else{var s=ct("content");s&&(s.value=l)}}function zc(o,l){var s=o.querySelectorAll("input, textarea, select, button");Array.prototype.forEach.call(s,function(a){a.type==="file"||a.name&&a.name.indexOf("data[photos")===0||(a.disabled=l)}),window.postFormEditor&&window.postFormEditor.codemirror&&window.postFormEditor.codemirror.setOption("readOnly",l?"nocursor":!1)}function Wl(o,l){o&&(o.tagName==="INPUT"?o.value=l:o.textContent=l)}function N0(o,l){var s=o.querySelector(".post-edit-error");if(s){s.textContent=l;return}var a=document.createElement("div");a.className="post-edit-error",a.setAttribute("role","alert"),a.textContent=l;var f=o.querySelector("h1");f?f.insertAdjacentElement("afterend",a):o.insertBefore(a,o.firstChild)}var O0=/\.(jpe?g|png|webp|heic|heif|gif)$/i;function Nc(o){var l=/(?:^|\/)photo-0*(\d+)\./i.exec(o);return l?parseInt(l[1],10):Number.MAX_SAFE_INTEGER}function I0(o,l){var s=Nc(o),a=Nc(l);return s!==a?s-a:ol?1:0}function Oc(o,l){var s=String(o||"photo"),a=s.lastIndexOf("."),f=(a>0?s.slice(0,a):s).toLowerCase().replace(/[^a-z0-9]+/g,"-").replace(/^-+|-+$/g,"")||"photo",h=l?".jpg":a>0?s.slice(a).toLowerCase():".jpg",c=Date.now().toString(36)+Math.random().toString(36).slice(2,6);return f+"-"+c+h}function H0(o){var l=document.querySelector('form[name="new-entry"]');if(!l||!o)return;var s=o.split("/").filter(Boolean).pop();if(!s)return;var a=document.querySelector(".filepond-root, .form-input-file"),f=a?a.closest(".form-field"):null;f&&(f.style.display="none");var h=l.querySelector(".photos-collapse");h&&(h.style.display="none");var c=document.createElement("div");c.className="photo-editor",c.innerHTML='

Photos

',f&&f.parentNode?f.parentNode.insertBefore(c,f):l.insertBefore(c,l.firstElementChild);var d=c.querySelector(".photo-editor__grid"),v=c.querySelector(".photo-editor__status"),y=c.querySelector(".photo-editor__add"),x=c.querySelector(".photo-editor__input"),D=[],S=null,F=!1,B=0;function L(X,G){v.textContent=X||"",v.className="photo-editor__status gpx-status"+(G?" error":"")}function T(X){F=X,y.disabled=X,Array.prototype.forEach.call(d.querySelectorAll(".photo-editor__del, .photo-editor__confirm-yes, .photo-editor__confirm-no"),function(G){G.disabled=X}),S&&S.option("disabled",X)}function N(){return fetch("/api/v1/pages"+o+"/media",{credentials:"include",headers:{Accept:"application/json"}}).then(function(X){if(!X.ok)throw new Error("HTTP "+X.status);return X.json()}).then(function(X){return(X&&X.data||[]).filter(function(G){return G&&typeof G.filename=="string"&&O0.test(G.filename)}).map(function(G){return G.filename}).sort(I0)})}function z(X){return Cn("/api/v1/entry/"+encodeURIComponent(s)+"/photos/order",{method:"POST",headers:{"Content-Type":"application/json",Accept:"application/json"},body:JSON.stringify({order:X})})}function O(X){if(D=(X||[]).slice(),S&&(S.destroy(),S=null),d.innerHTML="",!D.length){d.innerHTML='

No photos yet \u2014 add some.

';return}var G=++B;D.forEach(function(k){var H=document.createElement("div");H.className="photo-editor__cell",H.setAttribute("data-filename",k);var q=document.createElement("img");q.className="photo-editor__img",q.loading="lazy",q.alt=k,q.src=o+"/"+encodeURIComponent(k)+"?v="+G;var Q=document.createElement("button");Q.type="button",Q.className="photo-editor__del",Q.setAttribute("aria-label","Delete "+k),Q.textContent="\u2715",Q.addEventListener("click",function(){K(H,k)}),H.appendChild(q),H.appendChild(Q),d.appendChild(H)}),D.length>1&&(S=new Tc(d,{animation:150,draggable:".photo-editor__cell",filter:".photo-editor__confirm",onEnd:j}))}function I(){return Array.prototype.map.call(d.querySelectorAll(".photo-editor__cell"),function(X){return X.getAttribute("data-filename")})}function U(X,G){if(X.length!==G.length)return!1;for(var k=0;kDelete?',X.appendChild(k),X.classList.add("is-confirming"),k.querySelector(".photo-editor__confirm-no").addEventListener("click",function(){X.classList.remove("is-confirming"),k.remove()}),k.querySelector(".photo-editor__confirm-yes").addEventListener("click",function(){k.querySelector(".photo-editor__confirm-yes").disabled=!0,k.querySelector(".photo-editor__confirm-no").disabled=!0,de(G)})}}function de(X){var G=D.slice(),k=D.filter(function(H){return H!==X});T(!0),L("Deleting\u2026"),Cn("/api/v1/pages"+o+"/media/"+encodeURIComponent(X),{method:"DELETE"},[204,404]).then(function(){return(k.length?z(k):Promise.resolve()).then(N).then(function(H){L(""),O(H)},function(){L("Photo deleted, but refreshing the list failed \u2014 reload if it looks off.",!0),O(k)})},function(H){L(Pl(H,"Couldn\u2019t delete that photo. Try again."),!0),O(G)}).then(function(){T(!1)})}function W(X){return Hc(X).then(function(G){return G?import("./heic-to-CN7JBE7H.js").then(function(k){var H=k.heicTo||k.default&&k.default.heicTo;return H({blob:X,type:"image/jpeg",quality:.85})}).then(function(k){return{blob:k,name:Oc(X.name,!0)}}):{blob:X,name:Oc(X.name,!1)}})}y.addEventListener("click",function(){F||x.click()}),x.addEventListener("change",function(){var X=Array.prototype.slice.call(x.files||[]);x.value="",X.length&&oe(X)});function oe(X){T(!0);var G=X.length,k=0,H=0,q=!1,Q=D.slice(),he=Promise.resolve();X.forEach(function(pe){he=he.then(function(){return k++,L("Uploading "+k+" of "+G+"\u2026"),W(pe).then(function(Ee){var A=new FormData;return A.append("file",Ee.blob,Ee.name),Cn("/api/v1/pages"+o+"/media",{method:"POST",body:A})}).then(null,function(Ee){H++,Ee&&(Ee.status===401||Ee.status===403)&&(q=!0)})})}),he.then(function(){return L("Finishing\u2026"),N()}).then(function(pe){var Ee=Q.filter(function(ee){return pe.indexOf(ee)!==-1}),A=pe.filter(function(ee){return Q.indexOf(ee)===-1}),w=Ee.concat(A);return w.length?z(w).catch(function(){return z(w)}).catch(function(){return Promise.all(A.map(function(ee){return Cn("/api/v1/pages"+o+"/media/"+encodeURIComponent(ee),{method:"DELETE"},[204,404]).then(function(){return!0},function(){return!1})})).then(function(ee){var Ce=new Error("reorder failed");throw Ce.rolledBack=!0,Ce.rollbackIncomplete=ee.indexOf(!1)!==-1,Ce})}).then(N):(O([]),null)}).then(function(pe){pe&&O(pe),H?L(q?"Couldn\u2019t add photos \u2014 your login session expired. Sign in again, then retry.":H+" photo"+(H>1?"s":"")+" couldn\u2019t be added.",!0):L("")}).catch(function(pe){var Ee;return pe&&pe.rolledBack?Ee=pe.rollbackIncomplete?"Couldn\u2019t finish adding photos and cleanup was incomplete \u2014 reload the page and check your photos.":"Couldn\u2019t finish adding photos \u2014 changes were rolled back. Try again.":Ee="Couldn\u2019t add photos. Please try again.",L(Ee,!0),N().then(O,function(){O(Q)})}).then(function(){T(!1)})}d.innerHTML='

Loading photos\u2026

',N().then(O).catch(function(){L("Couldn\u2019t load photos.",!0),O([])})}function P0(){var o=document.querySelector('form[name="new-entry"]'),l=document.querySelector(".post-form-wrap");if(!(!o||!l)){var s=_c("edit");if(s){Yo=!0;var a=l.querySelector("h1");a&&(a.textContent="Edit entry");var f=o.querySelector('button[type="submit"], input[type="submit"]'),h=f?f.tagName==="INPUT"?f.value:f.textContent:"Save changes";zc(o,!0),Wl(f,"Loading entry\u2026");var c=_c("return")||l.getAttribute("data-trip-url")||"";o.setAttribute("action","/post?edit="+encodeURIComponent(s)+(c?"&return="+encodeURIComponent(c):"")),fetch("/api/v1/pages"+s,{credentials:"include",headers:{Accept:"application/json"}}).then(function(d){if(!d.ok){var v=new Error("HTTP "+d.status);throw v.status=d.status,v}return d.json()}).then(function(d){var v=d&&d.data||{},y=v.header||{};hr("title",y.title!=null?y.title:v.title),hr("date",y.date?String(y.date).replace(" ","T"):""),z0(v.content),hr("lat",y.lat),hr("lng",y.lng),Ul(),hr("location_city",y.location_city),hr("location_country",y.location_country),hr("weather_desc",y.weather_desc),hr("weather_temp_c",y.weather_temp_c),hr("transport_mode",y.transport_mode),Rl("featured",y.featured),Rl("force_connect",y.force_connect),Rl("published",y.published!==void 0?y.published:v.published);var x=ct("edit_path");x&&(x.value=s+"/entry.md"),zc(o,!1),Wl(f,"Save changes");var D=o.querySelector(".more-options");D&&(D.open=!0),H0(s)}).catch(function(d){var v=d&&d.status===404?"This entry no longer exists \u2014 it may have been deleted. Head back to the journal.":"Sorry \u2014 this entry couldn\u2019t be loaded for editing. Check your connection and try again.";N0(l,v),Wl(f,h)})}}}function Ic(){window.postFormEditor=v0(),_0(),P0(),B0(),w0(),C0(),k0(),A0(),T0()}document.readyState==="loading"?document.addEventListener("DOMContentLoaded",Ic):Ic(); +`]},Hp={link:"URL for the link:",image:"URL of the image:"},Rp={locale:"en-US",format:{hour:"2-digit",minute:"2-digit"}},Wp={bold:"**",code:"```",italic:"*"},qp={sbInit:"Attach files by drag and dropping or pasting from clipboard.",sbOnDragEnter:"Drop image to upload it.",sbOnDrop:"Uploading image #images_names#...",sbProgress:"Uploading #file_name#: #progress#%",sbOnUploaded:"Uploaded #image_name#",sizeUnits:" B, KB, MB"},Up={noFileGiven:"You must select a file.",typeNotAllowed:"This image type is not allowed.",fileTooLarge:`Image #image_name# is too big (#image_size#). +Maximum file size is #image_max_size#.`,importError:"Something went wrong when uploading the image #image_name#."};function re(o){o=o||{},o.parent=this;var l=!0;if(o.autoDownloadFontAwesome===!1&&(l=!1),o.autoDownloadFontAwesome!==!0)for(var s=document.styleSheets,a=0;a-1&&(l=!1);if(l){var f=document.createElement("link");f.rel="stylesheet",f.href="https://maxcdn.bootstrapcdn.com/font-awesome/latest/css/font-awesome.min.css",document.getElementsByTagName("head")[0].appendChild(f)}if(o.element)this.element=o.element;else if(o.element===null){console.log("EasyMDE: Error. No element was found.");return}if(o.toolbar===void 0){o.toolbar=[];for(var h in Ur)Object.prototype.hasOwnProperty.call(Ur,h)&&(h.indexOf("separator-")!=-1&&o.toolbar.push("|"),(Ur[h].default===!0||o.showIcons&&o.showIcons.constructor===Array&&o.showIcons.indexOf(h)!=-1)&&o.toolbar.push(h))}if(Object.prototype.hasOwnProperty.call(o,"previewClass")||(o.previewClass="editor-preview"),Object.prototype.hasOwnProperty.call(o,"status")||(o.status=["autosave","lines","words","cursor"],o.uploadImage&&o.status.unshift("upload-image")),o.previewRender||(o.previewRender=function(d){return this.parent.markdown(d)}),o.parsingConfig=sr({highlightFormatting:!0},o.parsingConfig||{}),o.insertTexts=sr({},zp,o.insertTexts||{}),o.promptTexts=sr({},Hp,o.promptTexts||{}),o.blockStyles=sr({},Wp,o.blockStyles||{}),o.autosave!=null&&(o.autosave.timeFormat=sr({},Rp,o.autosave.timeFormat||{})),o.iconClassMap=sr({},_e,o.iconClassMap||{}),o.shortcuts=sr({},Lp,o.shortcuts||{}),o.maxHeight=o.maxHeight||void 0,o.direction=o.direction||"ltr",typeof o.maxHeight<"u"?o.minHeight=o.maxHeight:o.minHeight=o.minHeight||"300px",o.errorCallback=o.errorCallback||function(d){alert(d)},o.uploadImage=o.uploadImage||!1,o.imageMaxSize=o.imageMaxSize||2097152,o.imageAccept=o.imageAccept||"image/png, image/jpeg, image/gif, image/avif",o.imageTexts=sr({},qp,o.imageTexts||{}),o.errorMessages=sr({},Up,o.errorMessages||{}),o.imagePathAbsolute=o.imagePathAbsolute||!1,o.imageCSRFName=o.imageCSRFName||"csrfmiddlewaretoken",o.imageCSRFHeader=o.imageCSRFHeader||!1,o.imageInputName=o.imageInputName||"image",o.autosave!=null&&o.autosave.unique_id!=null&&o.autosave.unique_id!=""&&(o.autosave.uniqueId=o.autosave.unique_id),o.overlayMode&&o.overlayMode.combine===void 0&&(o.overlayMode.combine=!0),this.options=o,this.render(),o.initialValue&&(!this.options.autosave||this.options.autosave.foundSavedValue!==!0)&&this.value(o.initialValue),o.uploadImage){var c=this;this.codemirror.on("dragenter",function(d,m){c.updateStatusBar("upload-image",c.options.imageTexts.sbOnDragEnter),m.stopPropagation(),m.preventDefault()}),this.codemirror.on("dragend",function(d,m){c.updateStatusBar("upload-image",c.options.imageTexts.sbInit),m.stopPropagation(),m.preventDefault()}),this.codemirror.on("dragleave",function(d,m){c.updateStatusBar("upload-image",c.options.imageTexts.sbInit),m.stopPropagation(),m.preventDefault()}),this.codemirror.on("dragover",function(d,m){c.updateStatusBar("upload-image",c.options.imageTexts.sbOnDragEnter),m.stopPropagation(),m.preventDefault()}),this.codemirror.on("drop",function(d,m){m.stopPropagation(),m.preventDefault(),o.imageUploadFunction?c.uploadImagesUsingCustomFunction(o.imageUploadFunction,m.dataTransfer.files):c.uploadImages(m.dataTransfer.files)}),this.codemirror.on("paste",function(d,m){o.imageUploadFunction?c.uploadImagesUsingCustomFunction(o.imageUploadFunction,m.clipboardData.files):c.uploadImages(m.clipboardData.files)})}}re.prototype.uploadImages=function(o,l,s){if(o.length!==0){for(var a=[],f=0;f=2){var I=N[1];if(l.imagesPreviewHandler){var P=l.imagesPreviewHandler(N[1]);typeof P=="string"&&(I=P)}if(window.EMDEimagesCache[I])F(O,window.EMDEimagesCache[I]);else{window.EMDEimagesCache[I]={};var U=document.createElement("img");U.onload=function(){window.EMDEimagesCache[I]={naturalWidth:U.naturalWidth,naturalHeight:U.naturalHeight,url:I},F(O,window.EMDEimagesCache[I])},U.src=I}}}})}this.codemirror.on("update",function(){_()}),this.gui.sideBySide=this.createSideBySide(),this._rendered=this.element,(l.autofocus===!0||o.autofocus)&&this.codemirror.focus();var L=this.codemirror;setTimeout(function(){L.refresh()}.bind(L),0)};re.prototype.cleanup=function(){document.removeEventListener("keydown",this.documentOnKeyDown)};function ic(){if(typeof localStorage=="object")try{localStorage.setItem("smde_localStorage",1),localStorage.removeItem("smde_localStorage")}catch{return!1}else return!1;return!0}re.prototype.autosave=function(){if(ic()){var o=this;if(this.options.autosave.uniqueId==null||this.options.autosave.uniqueId==""){console.log("EasyMDE: You must set a uniqueId to use the autosave feature");return}this.options.autosave.binded!==!0&&(o.element.form!=null&&o.element.form!=null&&o.element.form.addEventListener("submit",function(){clearTimeout(o.autosaveTimeoutId),o.autosaveTimeoutId=void 0,localStorage.removeItem("smde_"+o.options.autosave.uniqueId)}),this.options.autosave.binded=!0),this.options.autosave.loaded!==!0&&(typeof localStorage.getItem("smde_"+this.options.autosave.uniqueId)=="string"&&localStorage.getItem("smde_"+this.options.autosave.uniqueId)!=""&&(this.codemirror.setValue(localStorage.getItem("smde_"+this.options.autosave.uniqueId)),this.options.autosave.foundSavedValue=!0),this.options.autosave.loaded=!0);var l=o.value();l!==""?localStorage.setItem("smde_"+this.options.autosave.uniqueId,l):localStorage.removeItem("smde_"+this.options.autosave.uniqueId);var s=document.getElementById("autosaved");if(s!=null&&s!=null&&s!=""){var a=new Date,f=new Intl.DateTimeFormat([this.options.autosave.timeFormat.locale,"en-US"],this.options.autosave.timeFormat.format).format(a),h=this.options.autosave.text==null?"Autosaved: ":this.options.autosave.text;s.innerHTML=h+f}}else console.log("EasyMDE: localStorage not available, cannot autosave")};re.prototype.clearAutosavedValue=function(){if(ic()){if(this.options.autosave==null||this.options.autosave.uniqueId==null||this.options.autosave.uniqueId==""){console.log("EasyMDE: You must set a uniqueId to clear the autosave value");return}localStorage.removeItem("smde_"+this.options.autosave.uniqueId)}else console.log("EasyMDE: localStorage not available, cannot autosave")};re.prototype.openBrowseFileWindow=function(o,l){var s=this,a=this.gui.toolbar.getElementsByClassName("imageInput")[0];a.click();function f(h){s.options.imageUploadFunction?s.uploadImagesUsingCustomFunction(s.options.imageUploadFunction,h.target.files):s.uploadImages(h.target.files,o,l),a.removeEventListener("change",f)}a.addEventListener("change",f)};re.prototype.uploadImage=function(o,l,s){var a=this;l=l||function(y){tc(a,y)};function f(m){a.updateStatusBar("upload-image",m),setTimeout(function(){a.updateStatusBar("upload-image",a.options.imageTexts.sbInit)},1e4),s&&typeof s=="function"&&s(m),a.options.errorCallback(m)}function h(m){var y=a.options.imageTexts.sizeUnits.split(",");return m.replace("#image_name#",o.name).replace("#image_size#",ho(o.size,y)).replace("#image_max_size#",ho(a.options.imageMaxSize,y))}if(o.size>this.options.imageMaxSize){f(h(this.options.errorMessages.fileTooLarge));return}var c=new FormData;c.append("image",o),a.options.imageCSRFToken&&!a.options.imageCSRFHeader&&c.append(a.options.imageCSRFName,a.options.imageCSRFToken);var d=new XMLHttpRequest;d.upload.onprogress=function(m){if(m.lengthComputable){var y=""+Math.round(m.loaded*100/m.total);a.updateStatusBar("upload-image",a.options.imageTexts.sbProgress.replace("#file_name#",o.name).replace("#progress#",y))}},d.open("POST",this.options.imageUploadEndpoint),a.options.imageCSRFToken&&a.options.imageCSRFHeader&&d.setRequestHeader(a.options.imageCSRFName,a.options.imageCSRFToken),d.onload=function(){try{var m=JSON.parse(this.responseText)}catch{console.error("EasyMDE: The server did not return a valid json."),f(h(a.options.errorMessages.importError));return}this.status===200&&m&&!m.error&&m.data&&m.data.filePath?l((a.options.imagePathAbsolute?"":window.location.origin+"/")+m.data.filePath):m.error&&m.error in a.options.errorMessages?f(h(a.options.errorMessages[m.error])):m.error?f(h(m.error)):(console.error("EasyMDE: Received an unexpected response after uploading the image."+this.status+" ("+this.statusText+")"),f(h(a.options.errorMessages.importError)))},d.onerror=function(m){console.error("EasyMDE: An unexpected error occurred when trying to upload the image."+m.target.status+" ("+m.target.statusText+")"),f(a.options.errorMessages.importError)},d.send(c)};re.prototype.uploadImageUsingCustomFunction=function(o,l){var s=this;function a(c){tc(s,c)}function f(c){var d=h(c);s.updateStatusBar("upload-image",d),setTimeout(function(){s.updateStatusBar("upload-image",s.options.imageTexts.sbInit)},1e4),s.options.errorCallback(d)}function h(c){var d=s.options.imageTexts.sizeUnits.split(",");return c.replace("#image_name#",l.name).replace("#image_size#",ho(l.size,d)).replace("#image_max_size#",ho(s.options.imageMaxSize,d))}o.apply(this,[l,a,f])};re.prototype.setPreviewMaxHeight=function(){var o=this.codemirror,l=o.getWrapperElement(),s=l.nextSibling,a=parseInt(window.getComputedStyle(l).paddingTop),f=parseInt(window.getComputedStyle(l).borderTopWidth),h=parseInt(this.options.maxHeight),c=h+a*2+f*2,d=c.toString()+"px";s.style.height=d};re.prototype.createSideBySide=function(){var o=this.codemirror,l=o.getWrapperElement(),s=l.nextSibling;if(!s||!s.classList.contains("editor-preview-side")){if(s=document.createElement("div"),s.className="editor-preview-side",this.options.previewClass)if(Array.isArray(this.options.previewClass))for(var a=0;a"&&(l=l.substring(1)),o)try{if(o.matches)return o.matches(l);if(o.msMatchesSelector)return o.msMatchesSelector(l);if(o.webkitMatchesSelector)return o.webkitMatchesSelector(l)}catch{return!1}return!1}}function bc(o){return o.host&&o!==document&&o.host.nodeType&&o.host!==o?o.host:o.parentNode}function Gt(o,l,s,a){if(o){s=s||document;do{if(l!=null&&(l[0]===">"?o.parentNode===s&&Uo(o,l):Uo(o,l))||a&&o===s)return o;if(o===s)break}while(o=bc(o))}return null}var uc=/\s+/g;function Nt(o,l,s){if(o&&l)if(o.classList)o.classList[s?"add":"remove"](l);else{var a=(" "+o.className+" ").replace(uc," ").replace(" "+l+" "," ");o.className=(a+(s?" "+l:"")).replace(uc," ")}}function ge(o,l,s){var a=o&&o.style;if(a){if(s===void 0)return document.defaultView&&document.defaultView.getComputedStyle?s=document.defaultView.getComputedStyle(o,""):o.currentStyle&&(s=o.currentStyle),l===void 0?s:s[l];!(l in a)&&l.indexOf("webkit")===-1&&(l="-webkit-"+l),a[l]=s+(typeof s=="string"?"":"px")}}function Fn(o,l){var s="";if(typeof o=="string")s=o;else do{var a=ge(o,"transform");a&&a!=="none"&&(s=a+" "+s)}while(!l&&(o=o.parentNode));var f=window.DOMMatrix||window.WebKitCSSMatrix||window.CSSMatrix||window.MSCSSMatrix;return f&&new f(s)}function yc(o,l,s){if(o){var a=o.getElementsByTagName(l),f=0,h=a.length;if(s)for(;f=h:c=f<=h,!c)return a;if(a===Vt())break;a=Tr(a,!1)}return!1}function Tn(o,l,s,a){for(var f=0,h=0,c=o.children;h2&&arguments[2]!==void 0?arguments[2]:{},f=a.evt,h=Gp(a,ng);wi.pluginEvent.bind(ve)(l,s,er({dragEl:V,parentEl:Ue,ghostEl:xe,rootEl:ze,nextEl:Yr,lastDownEl:Ho,cloneEl:We,cloneHidden:Fr,dragStarted:di,putSortable:ft,activeSortable:ve.active,originalEvent:f,oldIndex:An,oldDraggableIndex:mi,newIndex:Ot,newDraggableIndex:Ar,hideGhostForTarget:Ac,unhideGhostForTarget:Fc,cloneNowHidden:function(){Fr=!0},cloneNowShown:function(){Fr=!1},dispatchSortableEvent:function(d){kt({sortable:s,name:d,originalEvent:f})}},h))};function kt(o){rg(er({putSortable:ft,cloneEl:We,targetEl:V,rootEl:ze,oldIndex:An,oldDraggableIndex:mi,newIndex:Ot,newDraggableIndex:Ar},o))}var V,Ue,xe,ze,Yr,Ho,We,Fr,An,Ot,mi,Ar,Oo,ft,En=!1,jo=!1,Go=[],Xr,jt,kl,Sl,dc,hc,di,Sn,bi,yi=!1,Io=!1,Ro,vt,El=[],_l=!1,Xo=[],Yo=typeof document<"u",Po=Il,pc=xi||cr?"cssFloat":"float",ig=Yo&&!vc&&!Il&&"draggable"in document.createElement("div"),kc=function(){if(Yo){if(cr)return!1;var o=document.createElement("x");return o.style.cssText="pointer-events:auto",o.style.pointerEvents==="auto"}}(),Sc=function(l,s){var a=ge(l),f=parseInt(a.width)-parseInt(a.paddingLeft)-parseInt(a.paddingRight)-parseInt(a.borderLeftWidth)-parseInt(a.borderRightWidth),h=Tn(l,0,s),c=Tn(l,1,s),d=h&&ge(h),m=c&&ge(c),y=d&&parseInt(d.marginLeft)+parseInt(d.marginRight)+$e(h).width,x=m&&parseInt(m.marginLeft)+parseInt(m.marginRight)+$e(c).width;if(a.display==="flex")return a.flexDirection==="column"||a.flexDirection==="column-reverse"?"vertical":"horizontal";if(a.display==="grid")return a.gridTemplateColumns.split(" ").length<=1?"vertical":"horizontal";if(h&&d.float&&d.float!=="none"){var C=d.float==="left"?"left":"right";return c&&(m.clear==="both"||m.clear===C)?"vertical":"horizontal"}return h&&(d.display==="block"||d.display==="flex"||d.display==="table"||d.display==="grid"||y>=f&&a[pc]==="none"||c&&a[pc]==="none"&&y+x>f)?"vertical":"horizontal"},og=function(l,s,a){var f=a?l.left:l.top,h=a?l.right:l.bottom,c=a?l.width:l.height,d=a?s.left:s.top,m=a?s.right:s.bottom,y=a?s.width:s.height;return f===d||h===m||f+c/2===d+y/2},ag=function(l,s){var a;return Go.some(function(f){var h=f[Tt].options.emptyInsertThreshold;if(!(!h||Pl(f))){var c=$e(f),d=l>=c.left-h&&l<=c.right+h,m=s>=c.top-h&&s<=c.bottom+h;if(d&&m)return a=f}}),a},Ec=function(l){function s(h,c){return function(d,m,y,x){var C=d.options.group.name&&m.options.group.name&&d.options.group.name===m.options.group.name;if(h==null&&(c||C))return!0;if(h==null||h===!1)return!1;if(c&&h==="clone")return h;if(typeof h=="function")return s(h(d,m,y,x),c)(d,m,y,x);var S=(c?d:m).options.group.name;return h===!0||typeof h=="string"&&h===S||h.join&&h.indexOf(S)>-1}}var a={},f=l.group;(!f||Ml(f)!="object")&&(f={name:f}),a.name=f.name,a.checkPull=s(f.pull,!0),a.checkPut=s(f.put),a.revertClone=f.revertClone,l.group=a},Ac=function(){!kc&&xe&&ge(xe,"display","none")},Fc=function(){!kc&&xe&&ge(xe,"display","")};Yo&&!vc&&document.addEventListener("click",function(o){if(jo)return o.preventDefault(),o.stopPropagation&&o.stopPropagation(),o.stopImmediatePropagation&&o.stopImmediatePropagation(),jo=!1,!1},!0);var Kr=function(l){if(V){l=l.touches?l.touches[0]:l;var s=ag(l.clientX,l.clientY);if(s){var a={};for(var f in l)l.hasOwnProperty(f)&&(a[f]=l[f]);a.target=a.rootEl=s,a.preventDefault=void 0,a.stopPropagation=void 0,s[Tt]._onDragOver(a)}}},lg=function(l){V&&V.parentNode[Tt]._isOutsideThisEl(l.target)};function ve(o,l){if(!(o&&o.nodeType&&o.nodeType===1))throw"Sortable: `el` must be an HTMLElement, not ".concat({}.toString.call(o));this.el=o,this.options=l=fr({},l),o[Tt]=this;var s={group:null,sort:!0,disabled:!1,store:null,handle:null,draggable:/^[uo]l$/i.test(o.nodeName)?">li":">*",swapThreshold:1,invertSwap:!1,invertedSwapThreshold:null,removeCloneOnHide:!0,direction:function(){return Sc(o,this.options)},ghostClass:"sortable-ghost",chosenClass:"sortable-chosen",dragClass:"sortable-drag",ignore:"a, img",filter:null,preventOnFilter:!0,animation:0,easing:null,setData:function(c,d){c.setData("Text",d.textContent)},dropBubble:!1,dragoverBubble:!1,dataIdAttr:"data-id",delay:0,delayOnTouchOnly:!1,touchStartThreshold:(Number.parseInt?Number:window).parseInt(window.devicePixelRatio,10)||1,forceFallback:!1,fallbackClass:"sortable-fallback",fallbackOnBody:!1,fallbackTolerance:0,fallbackOffset:{x:0,y:0},supportPointer:ve.supportPointer!==!1&&"PointerEvent"in window&&(!gi||Il),emptyInsertThreshold:5};wi.initializePlugins(this,o,s);for(var a in s)!(a in l)&&(l[a]=s[a]);Ec(l);for(var f in this)f.charAt(0)==="_"&&typeof this[f]=="function"&&(this[f]=this[f].bind(this));this.nativeDraggable=l.forceFallback?!1:ig,this.nativeDraggable&&(this.options.touchStartThreshold=1),l.supportPointer?Se(o,"pointerdown",this._onTapStart):(Se(o,"mousedown",this._onTapStart),Se(o,"touchstart",this._onTapStart)),this.nativeDraggable&&(Se(o,"dragover",this),Se(o,"dragenter",this)),Go.push(this.el),l.store&&l.store.get&&this.sort(l.store.get(this)||[]),fr(this,Vp())}ve.prototype={constructor:ve,_isOutsideThisEl:function(l){!this.el.contains(l)&&l!==this.el&&(Sn=null)},_getDirection:function(l,s){return typeof this.options.direction=="function"?this.options.direction.call(this,l,s,V):this.options.direction},_onTapStart:function(l){if(l.cancelable){var s=this,a=this.el,f=this.options,h=f.preventOnFilter,c=l.type,d=l.touches&&l.touches[0]||l.pointerType&&l.pointerType==="touch"&&l,m=(d||l).target,y=l.target.shadowRoot&&(l.path&&l.path[0]||l.composedPath&&l.composedPath()[0])||m,x=f.filter;if(gg(a),!V&&!(/mousedown|pointerdown/.test(c)&&l.button!==0||f.disabled)&&!y.isContentEditable&&!(!this.nativeDraggable&&gi&&m&&m.tagName.toUpperCase()==="SELECT")&&(m=Gt(m,f.draggable,a,!1),!(m&&m.animated)&&Ho!==m)){if(An=Pt(m),mi=Pt(m,f.draggable),typeof x=="function"){if(x.call(this,l,m,this)){kt({sortable:s,rootEl:y,name:"filter",targetEl:m,toEl:a,fromEl:a}),Ft("filter",s,{evt:l}),h&&l.preventDefault();return}}else if(x&&(x=x.split(",").some(function(C){if(C=Gt(y,C.trim(),a,!1),C)return kt({sortable:s,rootEl:C,name:"filter",targetEl:m,fromEl:a,toEl:a}),Ft("filter",s,{evt:l}),!0}),x)){h&&l.preventDefault();return}f.handle&&!Gt(y,f.handle,a,!1)||this._prepareDragStart(l,d,m)}}},_prepareDragStart:function(l,s,a){var f=this,h=f.el,c=f.options,d=h.ownerDocument,m;if(a&&!V&&a.parentNode===h){var y=$e(a);if(ze=h,V=a,Ue=V.parentNode,Yr=V.nextSibling,Ho=a,Oo=c.group,ve.dragged=V,Xr={target:V,clientX:(s||l).clientX,clientY:(s||l).clientY},dc=Xr.clientX-y.left,hc=Xr.clientY-y.top,this._lastX=(s||l).clientX,this._lastY=(s||l).clientY,V.style["will-change"]="all",m=function(){if(Ft("delayEnded",f,{evt:l}),ve.eventCanceled){f._onDrop();return}f._disableDelayedDragEvents(),!sc&&f.nativeDraggable&&(V.draggable=!0),f._triggerDragStart(l,s),kt({sortable:f,name:"choose",originalEvent:l}),Nt(V,c.chosenClass,!0)},c.ignore.split(",").forEach(function(x){yc(V,x.trim(),Al)}),Se(d,"dragover",Kr),Se(d,"mousemove",Kr),Se(d,"touchmove",Kr),c.supportPointer?(Se(d,"pointerup",f._onDrop),!this.nativeDraggable&&Se(d,"pointercancel",f._onDrop)):(Se(d,"mouseup",f._onDrop),Se(d,"touchend",f._onDrop),Se(d,"touchcancel",f._onDrop)),sc&&this.nativeDraggable&&(this.options.touchStartThreshold=4,V.draggable=!0),Ft("delayStart",this,{evt:l}),c.delay&&(!c.delayOnTouchOnly||s)&&(!this.nativeDraggable||!(xi||cr))){if(ve.eventCanceled){this._onDrop();return}c.supportPointer?(Se(d,"pointerup",f._disableDelayedDrag),Se(d,"pointercancel",f._disableDelayedDrag)):(Se(d,"mouseup",f._disableDelayedDrag),Se(d,"touchend",f._disableDelayedDrag),Se(d,"touchcancel",f._disableDelayedDrag)),Se(d,"mousemove",f._delayedDragTouchMoveHandler),Se(d,"touchmove",f._delayedDragTouchMoveHandler),c.supportPointer&&Se(d,"pointermove",f._delayedDragTouchMoveHandler),f._dragStartTimer=setTimeout(m,c.delay)}else m()}},_delayedDragTouchMoveHandler:function(l){var s=l.touches?l.touches[0]:l;Math.max(Math.abs(s.clientX-this._lastX),Math.abs(s.clientY-this._lastY))>=Math.floor(this.options.touchStartThreshold/(this.nativeDraggable&&window.devicePixelRatio||1))&&this._disableDelayedDrag()},_disableDelayedDrag:function(){V&&Al(V),clearTimeout(this._dragStartTimer),this._disableDelayedDragEvents()},_disableDelayedDragEvents:function(){var l=this.el.ownerDocument;ke(l,"mouseup",this._disableDelayedDrag),ke(l,"touchend",this._disableDelayedDrag),ke(l,"touchcancel",this._disableDelayedDrag),ke(l,"pointerup",this._disableDelayedDrag),ke(l,"pointercancel",this._disableDelayedDrag),ke(l,"mousemove",this._delayedDragTouchMoveHandler),ke(l,"touchmove",this._delayedDragTouchMoveHandler),ke(l,"pointermove",this._delayedDragTouchMoveHandler)},_triggerDragStart:function(l,s){s=s||l.pointerType=="touch"&&l,!this.nativeDraggable||s?this.options.supportPointer?Se(document,"pointermove",this._onTouchMove):s?Se(document,"touchmove",this._onTouchMove):Se(document,"mousemove",this._onTouchMove):(Se(V,"dragend",this),Se(ze,"dragstart",this._onDragStart));try{document.selection?Wo(function(){document.selection.empty()}):window.getSelection().removeAllRanges()}catch{}},_dragStarted:function(l,s){if(En=!1,ze&&V){Ft("dragStarted",this,{evt:s}),this.nativeDraggable&&Se(document,"dragover",lg);var a=this.options;!l&&Nt(V,a.dragClass,!1),Nt(V,a.ghostClass,!0),ve.active=this,l&&this._appendGhost(),kt({sortable:this,name:"start",originalEvent:s})}else this._nulling()},_emulateDragOver:function(){if(jt){this._lastX=jt.clientX,this._lastY=jt.clientY,Ac();for(var l=document.elementFromPoint(jt.clientX,jt.clientY),s=l;l&&l.shadowRoot&&(l=l.shadowRoot.elementFromPoint(jt.clientX,jt.clientY),l!==s);)s=l;if(V.parentNode[Tt]._isOutsideThisEl(l),s)do{if(s[Tt]){var a=void 0;if(a=s[Tt]._onDragOver({clientX:jt.clientX,clientY:jt.clientY,target:l,rootEl:s}),a&&!this.options.dragoverBubble)break}l=s}while(s=bc(s));Fc()}},_onTouchMove:function(l){if(Xr){var s=this.options,a=s.fallbackTolerance,f=s.fallbackOffset,h=l.touches?l.touches[0]:l,c=xe&&Fn(xe,!0),d=xe&&c&&c.a,m=xe&&c&&c.d,y=Po&&vt&&cc(vt),x=(h.clientX-Xr.clientX+f.x)/(d||1)+(y?y[0]-El[0]:0)/(d||1),C=(h.clientY-Xr.clientY+f.y)/(m||1)+(y?y[1]-El[1]:0)/(m||1);if(!ve.active&&!En){if(a&&Math.max(Math.abs(h.clientX-this._lastX),Math.abs(h.clientY-this._lastY))=0&&(kt({rootEl:Ue,name:"add",toEl:Ue,fromEl:ze,originalEvent:l}),kt({sortable:this,name:"remove",toEl:Ue,originalEvent:l}),kt({rootEl:Ue,name:"sort",toEl:Ue,fromEl:ze,originalEvent:l}),kt({sortable:this,name:"sort",toEl:Ue,originalEvent:l})),ft&&ft.save()):Ot!==An&&Ot>=0&&(kt({sortable:this,name:"update",toEl:Ue,originalEvent:l}),kt({sortable:this,name:"sort",toEl:Ue,originalEvent:l})),ve.active&&((Ot==null||Ot===-1)&&(Ot=An,Ar=mi),kt({sortable:this,name:"end",toEl:Ue,originalEvent:l}),this.save()))),this._nulling()},_nulling:function(){Ft("nulling",this),ze=V=Ue=xe=Yr=We=Ho=Fr=Xr=jt=di=Ot=Ar=An=mi=Sn=bi=ft=Oo=ve.dragged=ve.ghost=ve.clone=ve.active=null;var l=this.el;Xo.forEach(function(s){l.contains(s)&&(s.checked=!0)}),Xo.length=kl=Sl=0},handleEvent:function(l){switch(l.type){case"drop":case"dragend":this._onDrop(l);break;case"dragenter":case"dragover":V&&(this._onDragOver(l),sg(l));break;case"selectstart":l.preventDefault();break}},toArray:function(){for(var l=[],s,a=this.el.children,f=0,h=a.length,c=this.options;ff.right+h||o.clientY>a.bottom&&o.clientX>a.left:o.clientY>f.bottom+h||o.clientX>a.right&&o.clientY>a.top}function dg(o,l,s,a,f,h,c,d){var m=a?o.clientY:o.clientX,y=a?s.height:s.width,x=a?s.top:s.left,C=a?s.bottom:s.right,S=!1;if(!c){if(d&&Rox+y*h/2:mC-Ro)return-bi}else if(m>x+y*(1-f)/2&&mC-y*h/2)?m>x+y/2?1:-1:0}function hg(o){return Pt(V)0||C>0&&S0?"Converting "+l+" photo"+(l>1?"s":"")+"\u2026":"Uploading "+C+" photo"+(C>1?"s":"")+"\u2026",s.details.open=!0):C>0?(s.summary.textContent="\u2713 "+C+" photo"+(C>1?"s":"")+" ready \u2014 tap to review",s.details.open=!1):(s.summary.textContent="Photos (1\u20136)",s.details.open=!0)}}function c(){h(),setTimeout(h,150),setTimeout(h,500)}function d(){var x=o.querySelector('button[type="submit"], input[type="submit"]');if(x&&(x.disabled=l>0),l>0)f("Converting "+l+" photo"+(l>1?"s":"")+"\u2026");else{var C=Bc();C&&/Converting/.test(C.textContent)&&f("")}h()}o.addEventListener("submit",function(x){l>0&&(x.preventDefault(),f("Hang on \u2014 a photo is still converting.","err"))},!0);function m(x){return function(C){var S=C&&C.file;return S?Hc(S).then(function(F){return F?(l++,d(),import("./heic-to-CN7JBE7H.js").then(function(_){var L=_.heicTo||_.default&&_.default.heicTo;return L({blob:S,type:"image/jpeg",quality:.85})}).then(function(_){var L=new File([_],wg(S.name),{type:"image/jpeg"});x.addFile(L)}).catch(function(){f("A photo couldn\u2019t be converted and was skipped \u2014 the others are fine.","err")}).then(function(){l--,d()}),!1):!0}):!0}}var y=0;(function x(){var C=window.GravFilePond&&window.GravFilePond.getInstances?window.GravFilePond.getInstances():[];if(!C.length){y++<120&&setTimeout(x,50);return}C.forEach(function(S){S&&!S._heicHooked&&(S._heicHooked=!0,S.setOptions({beforeAddFile:m(S),allowReorder:!0,itemInsertLocation:"after"}),a=S,["addfile","processfile","processfiles","removefile","error"].forEach(function(F){try{S.on(F,c)}catch{}}),h())})})()}function ct(o){return document.querySelector('[name="data['+o+']"]')}function kg(){var o=Array.prototype.slice.call(document.querySelectorAll(".advanced-field"));if(o.length){var l=[];if(o.forEach(function(h){var c=h.closest(".form-field");c&&l.indexOf(c)===-1&&l.push(c)}),!!l.length){var s=document.createElement("details");s.className="more-options";var a=document.createElement("summary");a.className="more-options__summary",a.textContent="More options",s.appendChild(a),l[0].parentNode.insertBefore(s,l[0]),l.forEach(function(h){s.appendChild(h)});var f=l.some(function(h){var c=h.querySelector('input[type="text"]');if(c&&c.value.trim())return!0;var d=h.querySelector('input[type="radio"]:checked');if(!d||!d.value)return!1;var m=h.querySelector('input[type="radio"][checked]');return m?d.value!==m.value:d.value!=="0"});f&&(s.open=!0)}}}var Sg={0:"Sunny",1:"Partly cloudy",2:"Partly cloudy",3:"Cloudy",45:"Foggy",48:"Foggy",51:"Drizzle",53:"Drizzle",55:"Drizzle",56:"Drizzle",57:"Drizzle",61:"Rain",63:"Rain",65:"Rain",66:"Rain",67:"Rain",80:"Rain",81:"Rain",82:"Rain",71:"Snow",73:"Snow",75:"Snow",77:"Snow",85:"Snow",86:"Snow",95:"Thunderstorm",96:"Thunderstorm",99:"Thunderstorm"};function dr(o,l,s){o&&(o.className="form-status"+(s?" form-status--"+s:""),o.textContent=l||"")}function Eg(){var o=document.getElementById("get-location"),l=document.getElementById("get-weather");if(!o&&!l)return;var s=document.getElementById("location-status"),a=document.getElementById("weather-status");function f(){var d=ct("lat"),m=ct("lng"),y=d?d.value.trim():"",x=m?m.value.trim():"";return y&&x?{lat:y,lng:x}:null}function h(){if(l){var d=!!f();l.disabled=!d,l.title=d?"":"Get location first"}}h();function c(d,m){var y=ct("location_city"),x=ct("location_country");if(!((!y||y.value.trim())&&(!x||x.value.trim()))){var C="https://api.bigdatacloud.net/data/reverse-geocode-client?latitude="+encodeURIComponent(d)+"&longitude="+encodeURIComponent(m)+"&localityLanguage=en";fetch(C).then(function(S){return S.json()}).then(function(S){var F=(S.city||S.locality||"").trim(),_=(S.countryName||"").trim();y&&!y.value.trim()&&F&&(y.value=F),x&&!x.value.trim()&&_&&(x.value=_);var L=[F,_].filter(Boolean).join(", ");L&&dr(s,"\u2713 Location captured \xB7 "+L,"ok")}).catch(function(){})}}o&&o.addEventListener("click",function(){if(!navigator.geolocation){dr(s,"Geolocation is not supported on this device.","err");return}o.classList.add("is-loading"),o.disabled=!0,dr(s,"Getting location\u2026"),navigator.geolocation.getCurrentPosition(function(d){var m=d.coords.latitude.toFixed(6),y=d.coords.longitude.toFixed(6),x=ct("lat"),C=ct("lng");x&&(x.value=m),C&&(C.value=y),o.classList.remove("is-loading"),o.disabled=!1,dr(s,"\u2713 Location captured \xB7 "+m+", "+y,"ok"),h(),c(m,y);var S=document.querySelector(".location-details");S&&S.open&&jl()},function(d){o.classList.remove("is-loading"),o.disabled=!1,dr(s,"\u2717 "+(d&&d.message?d.message:"Could not get location")+" \u2014 enter coordinates manually if needed.","err")},{enableHighAccuracy:!0,timeout:15e3})}),l&&l.addEventListener("click",function(){var d=f();if(!d){dr(a,"Get location first, then fetch weather.","err");return}l.classList.add("is-loading"),l.disabled=!0,dr(a,"Fetching weather\u2026");var m="https://api.open-meteo.com/v1/forecast?latitude="+d.lat+"&longitude="+d.lng+"¤t=temperature_2m,weather_code&temperature_unit=celsius";fetch(m).then(function(y){return y.json()}).then(function(y){var x=Math.round(y.current.temperature_2m),C=Sg[y.current.weather_code]||"Cloudy",S=ct("weather_temp_c"),F=ct("weather_desc");S&&(S.value=x),F&&(F.value=C),l.classList.remove("is-loading"),h(),dr(a,"\u2713 Weather set \xB7 "+C+" \xB7 "+x+"\xB0C (edit above if needed)","ok")}).catch(function(){l.classList.remove("is-loading"),h(),dr(a,"\u2717 Could not fetch weather \u2014 set it manually above.","err")})})}var jl=function(){};function Ag(o,l){var s=null;return function(){var a=arguments;clearTimeout(s),s=setTimeout(function(){o.apply(null,a)},l)}}function Fg(o){return[o.name,o.admin1,o.country].filter(Boolean).join(", ")}function Tg(){var o=ct("lat"),l=ct("lng");if(!o||!l)return;var s=o.closest(".form-field"),a=l.closest(".form-field");if(!s||!a)return;var f=ct("location_city"),h=ct("location_country"),c=h?h.closest(".form-field"):null,d=c||s,m=document.createElement("details");m.className="location-details";var y=document.createElement("summary");y.className="location-details__summary",y.textContent="More location details",m.appendChild(y);var x=document.createElement("div");x.className="location-details__body";var C=document.createElement("div");C.className="location-search-row";var S=document.createElement("button");S.type="button",S.id="lookup-coords",S.className="btn-action";var F="\u{1F50D} Look up coordinates";S.textContent=F,C.appendChild(S),x.appendChild(C);var _=document.createElement("p");_.id="location-search-hint",_.className="location-search-hint",_.setAttribute("role","status"),x.appendChild(_);var L=document.createElement("ul");L.id="location-search-results",L.className="location-search-results",x.appendChild(L);var T=document.createElement("div");T.id="location-map",T.className="location-map",x.appendChild(T),m.appendChild(x),d.parentNode.insertBefore(m,d.nextSibling),m.appendChild(s),m.appendChild(a);function O(G){return G===o?"location-lat-note":"location-lng-note"}function N(){[o,l].forEach(function(G){G.classList.add("location-field--mismatch"),G.setAttribute("aria-invalid","true");var k=O(G),z=document.getElementById(k);z||(z=document.createElement("span"),z.id=k,z.className="location-field-note",z.setAttribute("role","status"),z.setAttribute("aria-live","polite"),z.textContent="Not reflected on the map yet.",G.parentNode.insertBefore(z,G.nextSibling)),G.setAttribute("aria-describedby",k)})}function I(){[o,l].forEach(function(G){G.classList.remove("location-field--mismatch"),G.removeAttribute("aria-invalid"),G.removeAttribute("aria-describedby");var k=document.getElementById(O(G));k&&k.parentNode&&k.parentNode.removeChild(k)})}var P=null;function U(G){var k=String(G).trim();return!k||!/^[+-]?(\d+(\.\d*)?|\.\d+)$/.test(k)?NaN:Number(k)}function j(){var G=U(o.value),k=U(l.value),z=isFinite(G)&&isFinite(k)&&G>=-90&&G<=90&&k>=-180&&k<=180;z?(o.value=G.toFixed(6),l.value=k.toFixed(6),I(),P&&P.setPin(G,k)):o.value.trim()||l.value.trim()?N():(I(),P&&P.clearPin())}jl=j;function K(G){o.value=G.lat.toFixed(6),l.value=G.lng.toFixed(6),I()}m.addEventListener("toggle",function(){m.open&&_c(T,K).then(function(G){P=G,G.resize(),j()}).catch(function(){q("Map preview unavailable \u2014 you can still enter coordinates directly."),j()})}),o.addEventListener("blur",j),l.addEventListener("blur",j);var de=Ag(j,400);o.addEventListener("input",de),l.addEventListener("input",de);function q(G){_.textContent=G||""}function oe(){L.innerHTML=""}function X(G){G.forEach(function(k){var z=document.createElement("li"),R=document.createElement("button");R.type="button",R.textContent=Fg(k),R.addEventListener("click",function(){o.value=Number(k.latitude).toFixed(6),l.value=Number(k.longitude).toFixed(6),oe(),j()}),z.appendChild(R),L.appendChild(z)})}S.addEventListener("click",function(){oe();var G=f?f.value.trim():"",k=h?h.value.trim():"";if(!G&&!k){q("Enter a city or country first.");return}var z=G||k;q(""),S.disabled=!0,S.textContent="Searching\u2026";var R="https://geocoding-api.open-meteo.com/v1/search?name="+encodeURIComponent(z)+"&count=10&language=en&format=json",Q=new AbortController,he=setTimeout(function(){Q.abort()},1e4);fetch(R,{signal:Q.signal}).then(function(pe){if(!pe.ok)throw new Error("geocode http "+pe.status);return pe.json()}).then(function(pe){var Ee=pe&&pe.results||[];if(!Ee.length){q("No matches \u2014 try adding a country, or drag the pin on the map.");return}if(k){var A=k.toLowerCase(),w=function(ee){return(ee.admin1||"").toLowerCase().indexOf(A)!==-1||(ee.country||"").toLowerCase().indexOf(A)!==-1};Ee=Ee.slice().sort(function(ee,De){var ye=w(ee),lt=w(De);return ye===lt?0:ye?-1:1})}X(Ee)}).catch(function(){q("Couldn\u2019t reach the lookup service \u2014 check your connection and try again, or drag the pin on the map.")}).then(function(){clearTimeout(he),S.disabled=!1,S.textContent=F})}),j()}function Lg(){var o=new Date;return o.setSeconds(0,0),o.setMinutes(o.getMinutes()-o.getTimezoneOffset()),o.toISOString().slice(0,16)}function Mg(){var o={title:"Title",date:"Date & time",content:"Content"},l=document.querySelector('form[name="new-entry"]');if(!l)return;var s=ct("date");s&&!String(s.value).trim()&&(s.value=Lg());function a(){l.querySelectorAll(".field-error").forEach(function(c){c.remove()}),l.querySelectorAll(".field-invalid").forEach(function(c){c.classList.remove("field-invalid")})}function f(c,d){c.classList.add("field-invalid");var m=document.createElement("span");m.className="field-error",m.textContent=d,c.parentNode.insertBefore(m,c.nextSibling)}function h(c){var d=l.querySelector(".photos-collapse"),m,y;if(d?(d.open=!0,y=d.querySelector(".photos-collapse__summary"),m=d):(m=document.querySelector(".filepond-root, .form-input-file"),y=m),!y)return m||null;var x=document.createElement("span");return x.className="field-error",x.textContent=c,y.insertAdjacentElement("afterend",x),m||y}l.addEventListener("submit",function(c){a();var d=null;!Zo&&document.querySelectorAll(".filepond--item").length<1&&(d=h("Add at least one photo.")),Object.keys(o).forEach(function(y){var x=ct(y);x&&!String(x.value).trim()&&(f(x,o[y]+" is required."),d||(d=x))});var m=l.querySelector(".location-field--mismatch");m&&!d&&(d=m),d&&(c.preventDefault(),typeof d.focus=="function"&&d.focus(),d.scrollIntoView({behavior:"smooth",block:"center"}))})}var Wl="intotheeast:new-entry-draft";function _g(o){return Array.prototype.slice.call(o.querySelectorAll('[name^="data["]')).filter(function(l){if(l.type==="file")return!1;var s=l.name;return s.indexOf("data[_json")!==0&&s.indexOf("data[photos")!==0})}function Bg(){var o=document.querySelector(".filepond-root, .form-input-file");if(!(!o||!o.parentNode)&&!o.parentNode.querySelector(".photo-reauth-hint")){var l=document.createElement("p");l.className="photo-reauth-hint is-shown",l.textContent="Your text was restored \u2014 photos need re-selecting (they can\u2019t be saved in a draft).",o.parentNode.insertBefore(l,o.nextSibling)}}function Ng(){var o=document.querySelector('form[name="new-entry"]');if(!o||Zo)return;if(document.querySelector(".notices.success")){try{localStorage.removeItem(Wl)}catch{}return}function l(){var h={};_g(o).forEach(function(c){c.type==="radio"?c.checked&&(h[c.name]=c.value):h[c.name]=c.value});try{localStorage.setItem(Wl,JSON.stringify(h))}catch{}}var s=null;try{s=localStorage.getItem(Wl)}catch{s=null}if(s){var a=null;try{a=JSON.parse(s)}catch{a=null}if(a){var f=!1;Object.keys(a).forEach(function(h){var c=a[h];if(c!=null&&String(c).trim()&&(f=!0),h!=="data[content]"){var d=o.querySelectorAll('input[type="radio"][name="'+h+'"]');if(d.length){d.forEach(function(y){y.checked=y.value===c});return}var m=o.querySelector('[name="'+h+'"]');m&&m.type!=="file"&&(m.value=c)}}),window.postFormEditor&&a["data[content]"]!=null&&window.postFormEditor.value(a["data[content]"]),f&&Bg()}}o.addEventListener("input",l),o.addEventListener("change",l),window.postFormEditor&&window.postFormEditor.codemirror.on("change",l)}function Og(){var o=document.querySelector(".post-form-wrap"),l=document.querySelector(".post-form-wrap .notices.success, .post-form-wrap .notices.green");if(!(!o||!l)){var s=document.createElement("div");s.className="post-success";var a=document.createElement("p");a.className="post-success__title",a.textContent="\u2713 Saved to your journal.",s.appendChild(a);var f=document.createElement("div");f.className="post-success__actions";var h=o.getAttribute("data-trip-url");if(h){var c=document.createElement("a");c.className="post-success__view",c.href=h,c.textContent="View your journal \u2192",f.appendChild(c)}var d=document.createElement("a");d.className="post-success__again",d.href=window.location.pathname,d.textContent="Post another",f.appendChild(d),s.appendChild(f),l.parentNode.insertBefore(s,l.nextSibling),["form",".form-action-row","#location-status","#weather-status"].forEach(function(m){var y=o.querySelector(m);y&&(y.style.display="none")}),l.scrollIntoView({behavior:"smooth",block:"start"})}}var Zo=!1;function Nc(o){return new URLSearchParams(window.location.search).get(o)}function hr(o,l){var s=ct(o);s&&(s.value=l==null?"":String(l))}function ql(o,l){var s=l?"1":"0",a=document.querySelectorAll('[name="data['+o+']"]');Array.prototype.forEach.call(a,function(f){f.checked=String(f.value)===s})}function Ig(o){var l=o==null?"":String(o);if(window.postFormEditor&&typeof window.postFormEditor.value=="function")window.postFormEditor.value(l);else{var s=ct("content");s&&(s.value=l)}}function Oc(o,l){var s=o.querySelectorAll("input, textarea, select, button");Array.prototype.forEach.call(s,function(a){a.type==="file"||a.name&&a.name.indexOf("data[photos")===0||(a.disabled=l)}),window.postFormEditor&&window.postFormEditor.codemirror&&window.postFormEditor.codemirror.setOption("readOnly",l?"nocursor":!1)}function Ul(o,l){o&&(o.tagName==="INPUT"?o.value=l:o.textContent=l)}function Pg(o,l){var s=o.querySelector(".post-edit-error");if(s){s.textContent=l;return}var a=document.createElement("div");a.className="post-edit-error",a.setAttribute("role","alert"),a.textContent=l;var f=o.querySelector("h1");f?f.insertAdjacentElement("afterend",a):o.insertBefore(a,o.firstChild)}var zg=/\.(jpe?g|png|webp|heic|heif|gif)$/i;function Ic(o){var l=/(?:^|\/)photo-0*(\d+)\./i.exec(o);return l?parseInt(l[1],10):Number.MAX_SAFE_INTEGER}function Hg(o,l){var s=Ic(o),a=Ic(l);return s!==a?s-a:ol?1:0}function Pc(o,l){var s=String(o||"photo"),a=s.lastIndexOf("."),f=(a>0?s.slice(0,a):s).toLowerCase().replace(/[^a-z0-9]+/g,"-").replace(/^-+|-+$/g,"")||"photo",h=l?".jpg":a>0?s.slice(a).toLowerCase():".jpg",c=Date.now().toString(36)+Math.random().toString(36).slice(2,6);return f+"-"+c+h}function Rg(o){var l=document.querySelector('form[name="new-entry"]');if(!l||!o)return;var s=o.split("/").filter(Boolean).pop();if(!s)return;var a=document.querySelector(".filepond-root, .form-input-file"),f=a?a.closest(".form-field"):null;f&&(f.style.display="none");var h=l.querySelector(".photos-collapse");h&&(h.style.display="none");var c=document.createElement("div");c.className="photo-editor",c.innerHTML='
Photos

',f&&f.parentNode?f.parentNode.insertBefore(c,f):l.insertBefore(c,l.firstElementChild);var d=c.querySelector(".photo-editor__grid"),m=c.querySelector(".photo-editor__status"),y=c.querySelector(".photo-editor__add"),x=c.querySelector(".photo-editor__input"),C=[],S=null,F=!1,_=0;function L(X,G){m.textContent=X||"",m.className="photo-editor__status gpx-status"+(G?" error":"")}function T(X){F=X,y.disabled=X,Array.prototype.forEach.call(d.querySelectorAll(".photo-editor__del, .photo-editor__confirm-yes, .photo-editor__confirm-no"),function(G){G.disabled=X}),S&&S.option("disabled",X)}function O(){return fetch("/api/v1/pages"+o+"/media",{credentials:"include",headers:{Accept:"application/json"}}).then(function(X){if(!X.ok)throw new Error("HTTP "+X.status);return X.json()}).then(function(X){return(X&&X.data||[]).filter(function(G){return G&&typeof G.filename=="string"&&zg.test(G.filename)}).map(function(G){return G.filename}).sort(Hg)})}function N(X){return Di("/api/v1/entry/"+encodeURIComponent(s)+"/photos/order",{method:"POST",headers:{"Content-Type":"application/json",Accept:"application/json"},body:JSON.stringify({order:X})})}function I(X){if(C=(X||[]).slice(),S&&(S.destroy(),S=null),d.innerHTML="",!C.length){d.innerHTML='

No photos yet \u2014 add some.

';return}var G=++_;C.forEach(function(k){var z=document.createElement("div");z.className="photo-editor__cell",z.setAttribute("data-filename",k);var R=document.createElement("img");R.className="photo-editor__img",R.loading="lazy",R.alt=k,R.src=o+"/"+encodeURIComponent(k)+"?v="+G;var Q=document.createElement("button");Q.type="button",Q.className="photo-editor__del",Q.setAttribute("aria-label","Delete "+k),Q.textContent="\u2715",Q.addEventListener("click",function(){K(z,k)}),z.appendChild(R),z.appendChild(Q),d.appendChild(z)}),C.length>1&&(S=new Lc(d,{animation:150,draggable:".photo-editor__cell",filter:".photo-editor__confirm",onEnd:j}))}function P(){return Array.prototype.map.call(d.querySelectorAll(".photo-editor__cell"),function(X){return X.getAttribute("data-filename")})}function U(X,G){if(X.length!==G.length)return!1;for(var k=0;kDelete?',X.appendChild(k),X.classList.add("is-confirming"),k.querySelector(".photo-editor__confirm-no").addEventListener("click",function(){X.classList.remove("is-confirming"),k.remove()}),k.querySelector(".photo-editor__confirm-yes").addEventListener("click",function(){k.querySelector(".photo-editor__confirm-yes").disabled=!0,k.querySelector(".photo-editor__confirm-no").disabled=!0,de(G)})}}function de(X){var G=C.slice(),k=C.filter(function(z){return z!==X});T(!0),L("Deleting\u2026"),Di("/api/v1/pages"+o+"/media/"+encodeURIComponent(X),{method:"DELETE"},[204,404]).then(function(){return(k.length?N(k):Promise.resolve()).then(O).then(function(z){L(""),I(z)},function(){L("Photo deleted, but refreshing the list failed \u2014 reload if it looks off.",!0),I(k)})},function(z){L(Rl(z,"Couldn\u2019t delete that photo. Try again."),!0),I(G)}).then(function(){T(!1)})}function q(X){return Hc(X).then(function(G){return G?import("./heic-to-CN7JBE7H.js").then(function(k){var z=k.heicTo||k.default&&k.default.heicTo;return z({blob:X,type:"image/jpeg",quality:.85})}).then(function(k){return{blob:k,name:Pc(X.name,!0)}}):{blob:X,name:Pc(X.name,!1)}})}y.addEventListener("click",function(){F||x.click()}),x.addEventListener("change",function(){var X=Array.prototype.slice.call(x.files||[]);x.value="",X.length&&oe(X)});function oe(X){T(!0);var G=X.length,k=0,z=0,R=!1,Q=C.slice(),he=Promise.resolve();X.forEach(function(pe){he=he.then(function(){return k++,L("Uploading "+k+" of "+G+"\u2026"),q(pe).then(function(Ee){var A=new FormData;return A.append("file",Ee.blob,Ee.name),Di("/api/v1/pages"+o+"/media",{method:"POST",body:A})}).then(null,function(Ee){z++,Ee&&(Ee.status===401||Ee.status===403)&&(R=!0)})})}),he.then(function(){return L("Finishing\u2026"),O()}).then(function(pe){var Ee=Q.filter(function(ee){return pe.indexOf(ee)!==-1}),A=pe.filter(function(ee){return Q.indexOf(ee)===-1}),w=Ee.concat(A);return w.length?N(w).catch(function(){return N(w)}).catch(function(){return Promise.all(A.map(function(ee){return Di("/api/v1/pages"+o+"/media/"+encodeURIComponent(ee),{method:"DELETE"},[204,404]).then(function(){return!0},function(){return!1})})).then(function(ee){var De=new Error("reorder failed");throw De.rolledBack=!0,De.rollbackIncomplete=ee.indexOf(!1)!==-1,De})}).then(O):(I([]),null)}).then(function(pe){pe&&I(pe),z?L(R?"Couldn\u2019t add photos \u2014 your login session expired. Sign in again, then retry.":z+" photo"+(z>1?"s":"")+" couldn\u2019t be added.",!0):L("")}).catch(function(pe){var Ee;return pe&&pe.rolledBack?Ee=pe.rollbackIncomplete?"Couldn\u2019t finish adding photos and cleanup was incomplete \u2014 reload the page and check your photos.":"Couldn\u2019t finish adding photos \u2014 changes were rolled back. Try again.":Ee="Couldn\u2019t add photos. Please try again.",L(Ee,!0),O().then(I,function(){I(Q)})}).then(function(){T(!1)})}d.innerHTML='

Loading photos\u2026

',O().then(I).catch(function(){L("Couldn\u2019t load photos.",!0),I([])})}function Wg(){var o=document.querySelector('form[name="new-entry"]'),l=document.querySelector(".post-form-wrap");if(!(!o||!l)){var s=Nc("edit");if(s){Zo=!0;var a=l.querySelector("h1");a&&(a.textContent="Edit entry");var f=o.querySelector('button[type="submit"], input[type="submit"]'),h=f?f.tagName==="INPUT"?f.value:f.textContent:"Save changes";Oc(o,!0),Ul(f,"Loading entry\u2026");var c=Nc("return")||l.getAttribute("data-trip-url")||"";o.setAttribute("action","/post?edit="+encodeURIComponent(s)+(c?"&return="+encodeURIComponent(c):"")),fetch("/api/v1/pages"+s,{credentials:"include",headers:{Accept:"application/json"}}).then(function(d){if(!d.ok){var m=new Error("HTTP "+d.status);throw m.status=d.status,m}return d.json()}).then(function(d){var m=d&&d.data||{},y=m.header||{};hr("title",y.title!=null?y.title:m.title),hr("date",y.date?String(y.date).replace(" ","T"):""),Ig(m.content),hr("lat",y.lat),hr("lng",y.lng),jl(),hr("location_city",y.location_city),hr("location_country",y.location_country),hr("weather_desc",y.weather_desc),hr("weather_temp_c",y.weather_temp_c),hr("transport_mode",y.transport_mode),ql("featured",y.featured),ql("force_connect",y.force_connect),ql("published",y.published!==void 0?y.published:m.published);var x=ct("edit_path");x&&(x.value=s+"/entry.md"),Oc(o,!1),Ul(f,"Save changes");var C=o.querySelector(".more-options");C&&(C.open=!0),Rg(s)}).catch(function(d){var m=d&&d.status===404?"This entry no longer exists \u2014 it may have been deleted. Head back to the journal.":"Sorry \u2014 this entry couldn\u2019t be loaded for editing. Check your connection and try again.";Pg(l,m),Ul(f,h)})}}}function zc(){window.postFormEditor=yg(),Og(),Wg(),Ng(),Cg(),kg(),Eg(),Tg(),Mg()}document.readyState==="loading"?document.addEventListener("DOMContentLoaded",zc):zc(); /*! Bundled license information: sortablejs/modular/sortable.esm.js: diff --git a/themes/intotheeast/js/src/location-map.js b/themes/intotheeast/js/src/location-map.js index 96986a9..9c80cca 100644 --- a/themes/intotheeast/js/src/location-map.js +++ b/themes/intotheeast/js/src/location-map.js @@ -6,7 +6,8 @@ * needs (KTD1). * * maplibre-gl itself is lazy-imported on first call (KTD3) so an ordinary - * GPS-only submit, where the panel is never opened, never fetches it. The + * GPS-only submit, where the panel is never opened, never fetches it. Its + * STYLESHEET is lazy too — see ensureMaplibreCss below. The * created map/marker are cached in module scope and reused on every * subsequent call — see the panel's toggle-open handler in post-form.js, * which calls this on every open and then always calls the returned @@ -22,7 +23,48 @@ */ import { MAP_STYLE } from './map-style.js'; -var cached = null; // { container, promise } +var cached = null; // { container, promise } +var cssPromise = null; // in-flight/settled load for maplibre's stylesheet + +/** + * Inject maplibre-gl's stylesheet on demand, once. + * + * esbuild will not emit a for a code-split chunk's CSS (R10), so the + * usual fix is a static `import 'maplibre-gl/dist/maplibre-gl.css'` up in + * post-form.js — but that defeats the lazy import it accompanies: every /post + * load would then pay ~9 KB gzip of vendor CSS for a panel most submits never + * open. So package.json builds the vendor stylesheet as its own + * css-compiled/maplibre-gl.css and we it here instead, in parallel with + * the engine's import(). Keeping the vendor file intact (rather than + * hand-picking the ~16 selectors this panel actually uses) means a maplibre + * upgrade can't silently un-style the map. + * + * The href is resolved from import.meta.url — the bundle is ESM, so this is the + * URL of this chunk under `js/post/`, which makes the link correct under any + * Grav base path without threading a URL through the template. (The panel is + * built entirely in JS, so there is no Twig element to hang a data-attr on.) + * + * Resolves on error as well as load: a missing stylesheet must degrade to an + * unstyled-but-functional map, never block it. On error the dead and the + * memo are dropped so a later retry re-attempts it, mirroring the map cache's + * clear-on-failure below. + */ +function ensureMaplibreCss() { + if (cssPromise) return cssPromise; + cssPromise = new Promise(function (resolve) { + var link = document.createElement('link'); + link.rel = 'stylesheet'; + link.href = new URL('../../css-compiled/maplibre-gl.css', import.meta.url).href; + link.onload = function () { resolve(); }; + link.onerror = function () { + link.remove(); + cssPromise = null; + resolve(); + }; + document.head.appendChild(link); + }); + return cssPromise; +} function buildPinElement() { var el = document.createElement('div'); @@ -35,7 +77,14 @@ export function getOrCreateLocationMap(container, onDragEnd) { return cached.promise; } - var promise = import('maplibre-gl').then(function (mod) { + // Stylesheet and engine fetch concurrently; awaiting the CSS before + // constructing the Map means maplibre never measures the container against + // half-applied styles. + var promise = Promise.all([ + import('maplibre-gl'), + ensureMaplibreCss() + ]).then(function (loaded) { + var mod = loaded[0]; var maplibregl = mod.default || mod; var map = new maplibregl.Map({ container: container, diff --git a/themes/intotheeast/js/src/post-form.js b/themes/intotheeast/js/src/post-form.js index 77999e9..7f5b398 100644 --- a/themes/intotheeast/js/src/post-form.js +++ b/themes/intotheeast/js/src/post-form.js @@ -10,9 +10,13 @@ import EasyMDE from 'easymde'; import Sortable from 'sortablejs'; import 'easymde/dist/easymde.min.css'; -// maplibre-gl's CSS is a static import — a dynamically-imported chunk's CSS is -// never auto-linked (R10). The JS itself stays a lazy import (see location-map.js). -import 'maplibre-gl/dist/maplibre-gl.css'; +// NOTE: maplibre-gl's CSS is deliberately NOT imported here. esbuild never emits +// a for a dynamically-imported chunk's CSS (R10), and a static import +// would have folded 68 KB / ~9 KB gzip of vendor stylesheet — ~78% of it rules +// for controls this panel never creates — into post-form.css on every /post +// load. location-map.js instead injects a to the separately-built +// css-compiled/maplibre-gl.css at the moment it lazy-imports the engine, so an +// ordinary GPS-only submit pays nothing for either half. import './post-form.css'; import { apiSend, apiErrorMsg } from './api-utils.js'; import { getOrCreateLocationMap } from './location-map.js'; diff --git a/themes/intotheeast/package.json b/themes/intotheeast/package.json index a755877..37df99c 100644 --- a/themes/intotheeast/package.json +++ b/themes/intotheeast/package.json @@ -1,7 +1,7 @@ { "private": true, "scripts": { - "build": "node scripts/gen-weather-icons.js && esbuild js/src/main.js --bundle --minify --format=iife --outfile=js/main.js --loader:.woff2=file --loader:.woff=file --asset-names=../fonts/[name] && esbuild js/src/map.js --bundle --minify --format=iife --outfile=js/map.js && esbuild js/src/feed-actions.js --bundle --minify --format=iife --outfile=js/feed-actions.js && esbuild js/src/trip-publish.js --bundle --minify --format=iife --outfile=js/trip-publish.js && rm -rf js/post && esbuild js/src/post-form.js --bundle --minify --format=esm --splitting --outdir=js/post && mkdir -p css-compiled fonts && { mv js/main.css css-compiled/main.css 2>/dev/null || true; } && { mv js/map.css css-compiled/map.css 2>/dev/null || true; } && { mv js/post/post-form.css css-compiled/post-form.css 2>/dev/null || true; }" + "build": "node scripts/gen-weather-icons.js && esbuild js/src/main.js --bundle --minify --format=iife --outfile=js/main.js --loader:.woff2=file --loader:.woff=file --asset-names=../fonts/[name] && esbuild js/src/map.js --bundle --minify --format=iife --outfile=js/map.js && esbuild js/src/feed-actions.js --bundle --minify --format=iife --outfile=js/feed-actions.js && esbuild js/src/trip-publish.js --bundle --minify --format=iife --outfile=js/trip-publish.js && rm -rf js/post && esbuild js/src/post-form.js --bundle --minify --format=esm --splitting --outdir=js/post && mkdir -p css-compiled fonts && esbuild node_modules/maplibre-gl/dist/maplibre-gl.css --bundle --minify --outfile=css-compiled/maplibre-gl.css && { mv js/main.css css-compiled/main.css 2>/dev/null || true; } && { mv js/map.css css-compiled/map.css 2>/dev/null || true; } && { mv js/post/post-form.css css-compiled/post-form.css 2>/dev/null || true; }" }, "dependencies": { "@fontsource-variable/dm-sans": "latest",