vanilla-jsoneditor
Version:
A web-based tool to view, edit, format, transform, and validate JSON
1 lines • 580 kB
JavaScript
var e=["mainAxis","crossAxis","fallbackPlacements","fallbackStrategy","fallbackAxisSideDirection","flipAlignment"],n=["mainAxis","crossAxis","limiter"];function t(e,n){if(null==e)return{};var t,o,r=function(e,n){if(null==e)return{};var t,o,r={},i=Object.keys(e);for(o=0;o<i.length;o++)t=i[o],n.indexOf(t)>=0||(r[t]=e[t]);return r}(e,n);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(o=0;o<i.length;o++)t=i[o],n.indexOf(t)>=0||Object.prototype.propertyIsEnumerable.call(e,t)&&(r[t]=e[t])}return r}function o(e,n){var t="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!t){if(Array.isArray(e)||(t=k(e))||n&&e&&"number"==typeof e.length){t&&(e=t);var o=0,r=function(){};return{s:r,n:function(){return o>=e.length?{done:!0}:{done:!1,value:e[o++]}},e:function(e){throw e},f:r}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var i,a=!0,s=!1;return{s:function(){t=t.call(e)},n:function(){var e=t.next();return a=e.done,e},e:function(e){s=!0,i=e},f:function(){try{a||null==t.return||t.return()}finally{if(s)throw i}}}}function r(){/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */r=function(){return n};var e,n={},t=Object.prototype,o=t.hasOwnProperty,i=Object.defineProperty||function(e,n,t){e[n]=t.value},a="function"==typeof Symbol?Symbol:{},s=a.iterator||"@@iterator",l=a.asyncIterator||"@@asyncIterator",c=a.toStringTag||"@@toStringTag";function u(e,n,t){return Object.defineProperty(e,n,{value:t,enumerable:!0,configurable:!0,writable:!0}),e[n]}try{u({},"")}catch(e){u=function(e,n,t){return e[n]=t}}function d(e,n,t,o){var r=n&&n.prototype instanceof j?n:j,a=Object.create(r.prototype),s=new R(o||[]);return i(a,"_invoke",{value:q(e,t,s)}),a}function f(e,n,t){try{return{type:"normal",arg:e.call(n,t)}}catch(e){return{type:"throw",arg:e}}}n.wrap=d;var v="suspendedStart",p="suspendedYield",m="executing",g="completed",h={};function j(){}function b(){}function y(){}var x={};u(x,s,(function(){return this}));var $=Object.getPrototypeOf,w=$&&$($(I([])));w&&w!==t&&o.call(w,s)&&(x=w);var k=y.prototype=j.prototype=Object.create(x);function C(e){["next","throw","return"].forEach((function(n){u(e,n,(function(e){return this._invoke(n,e)}))}))}function S(e,n){function t(r,i,a,s){var l=f(e[r],e,i);if("throw"!==l.type){var c=l.arg,u=c.value;return u&&"object"==M(u)&&o.call(u,"__await")?n.resolve(u.__await).then((function(e){t("next",e,a,s)}),(function(e){t("throw",e,a,s)})):n.resolve(u).then((function(e){c.value=e,a(c)}),(function(e){return t("throw",e,a,s)}))}s(l.arg)}var r;i(this,"_invoke",{value:function(e,o){function i(){return new n((function(n,r){t(e,o,n,r)}))}return r=r?r.then(i,i):i()}})}function q(n,t,o){var r=v;return function(i,a){if(r===m)throw new Error("Generator is already running");if(r===g){if("throw"===i)throw a;return{value:e,done:!0}}for(o.method=i,o.arg=a;;){var s=o.delegate;if(s){var l=O(s,o);if(l){if(l===h)continue;return l}}if("next"===o.method)o.sent=o._sent=o.arg;else if("throw"===o.method){if(r===v)throw r=g,o.arg;o.dispatchException(o.arg)}else"return"===o.method&&o.abrupt("return",o.arg);r=m;var c=f(n,t,o);if("normal"===c.type){if(r=o.done?g:p,c.arg===h)continue;return{value:c.arg,done:o.done}}"throw"===c.type&&(r=g,o.method="throw",o.arg=c.arg)}}}function O(n,t){var o=t.method,r=n.iterator[o];if(r===e)return t.delegate=null,"throw"===o&&n.iterator.return&&(t.method="return",t.arg=e,O(n,t),"throw"===t.method)||"return"!==o&&(t.method="throw",t.arg=new TypeError("The iterator does not provide a '"+o+"' method")),h;var i=f(r,n.iterator,t.arg);if("throw"===i.type)return t.method="throw",t.arg=i.arg,t.delegate=null,h;var a=i.arg;return a?a.done?(t[n.resultName]=a.value,t.next=n.nextLoc,"return"!==t.method&&(t.method="next",t.arg=e),t.delegate=null,h):a:(t.method="throw",t.arg=new TypeError("iterator result is not an object"),t.delegate=null,h)}function z(e){var n={tryLoc:e[0]};1 in e&&(n.catchLoc=e[1]),2 in e&&(n.finallyLoc=e[2],n.afterLoc=e[3]),this.tryEntries.push(n)}function E(e){var n=e.completion||{};n.type="normal",delete n.arg,e.completion=n}function R(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(z,this),this.reset(!0)}function I(n){if(n||""===n){var t=n[s];if(t)return t.call(n);if("function"==typeof n.next)return n;if(!isNaN(n.length)){var r=-1,i=function t(){for(;++r<n.length;)if(o.call(n,r))return t.value=n[r],t.done=!1,t;return t.value=e,t.done=!0,t};return i.next=i}}throw new TypeError(M(n)+" is not iterable")}return b.prototype=y,i(k,"constructor",{value:y,configurable:!0}),i(y,"constructor",{value:b,configurable:!0}),b.displayName=u(y,c,"GeneratorFunction"),n.isGeneratorFunction=function(e){var n="function"==typeof e&&e.constructor;return!!n&&(n===b||"GeneratorFunction"===(n.displayName||n.name))},n.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,y):(e.__proto__=y,u(e,c,"GeneratorFunction")),e.prototype=Object.create(k),e},n.awrap=function(e){return{__await:e}},C(S.prototype),u(S.prototype,l,(function(){return this})),n.AsyncIterator=S,n.async=function(e,t,o,r,i){void 0===i&&(i=Promise);var a=new S(d(e,t,o,r),i);return n.isGeneratorFunction(t)?a:a.next().then((function(e){return e.done?e.value:a.next()}))},C(k),u(k,c,"Generator"),u(k,s,(function(){return this})),u(k,"toString",(function(){return"[object Generator]"})),n.keys=function(e){var n=Object(e),t=[];for(var o in n)t.push(o);return t.reverse(),function e(){for(;t.length;){var o=t.pop();if(o in n)return e.value=o,e.done=!1,e}return e.done=!0,e}},n.values=I,R.prototype={constructor:R,reset:function(n){if(this.prev=0,this.next=0,this.sent=this._sent=e,this.done=!1,this.delegate=null,this.method="next",this.arg=e,this.tryEntries.forEach(E),!n)for(var t in this)"t"===t.charAt(0)&&o.call(this,t)&&!isNaN(+t.slice(1))&&(this[t]=e)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(n){if(this.done)throw n;var t=this;function r(o,r){return s.type="throw",s.arg=n,t.next=o,r&&(t.method="next",t.arg=e),!!r}for(var i=this.tryEntries.length-1;i>=0;--i){var a=this.tryEntries[i],s=a.completion;if("root"===a.tryLoc)return r("end");if(a.tryLoc<=this.prev){var l=o.call(a,"catchLoc"),c=o.call(a,"finallyLoc");if(l&&c){if(this.prev<a.catchLoc)return r(a.catchLoc,!0);if(this.prev<a.finallyLoc)return r(a.finallyLoc)}else if(l){if(this.prev<a.catchLoc)return r(a.catchLoc,!0)}else{if(!c)throw new Error("try statement without catch or finally");if(this.prev<a.finallyLoc)return r(a.finallyLoc)}}}},abrupt:function(e,n){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.tryLoc<=this.prev&&o.call(r,"finallyLoc")&&this.prev<r.finallyLoc){var i=r;break}}i&&("break"===e||"continue"===e)&&i.tryLoc<=n&&n<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=e,a.arg=n,i?(this.method="next",this.next=i.finallyLoc,h):this.complete(a)},complete:function(e,n){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&n&&(this.next=n),h},finish:function(e){for(var n=this.tryEntries.length-1;n>=0;--n){var t=this.tryEntries[n];if(t.finallyLoc===e)return this.complete(t.completion,t.afterLoc),E(t),h}},catch:function(e){for(var n=this.tryEntries.length-1;n>=0;--n){var t=this.tryEntries[n];if(t.tryLoc===e){var o=t.completion;if("throw"===o.type){var r=o.arg;E(t)}return r}}throw new Error("illegal catch attempt")},delegateYield:function(n,t,o){return this.delegate={iterator:I(n),resultName:t,nextLoc:o},"next"===this.method&&(this.arg=e),h}},n}function i(e,n,t,o,r,i,a){try{var s=e[i](a),l=s.value}catch(e){return void t(e)}s.done?n(l):Promise.resolve(l).then(o,r)}function a(e){return function(){var n=this,t=arguments;return new Promise((function(o,r){var a=e.apply(n,t);function s(e){i(a,o,r,s,l,"next",e)}function l(e){i(a,o,r,s,l,"throw",e)}s(void 0)}))}}function s(e,n){return c(e)||function(e,n){var t=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=t){var o,r,i,a,s=[],l=!0,c=!1;try{if(i=(t=t.call(e)).next,0===n){if(Object(t)!==t)return;l=!1}else for(;!(l=(o=i.call(t)).done)&&(s.push(o.value),s.length!==n);l=!0);}catch(e){c=!0,r=e}finally{try{if(!l&&null!=t.return&&(a=t.return(),Object(a)!==a))return}finally{if(c)throw r}}return s}}(e,n)||k(e,n)||l()}function l(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function c(e){if(Array.isArray(e))return e}function u(e,n,t){return n=f(n),function(e,n){if(n&&("object"===M(n)||"function"==typeof n))return n;if(void 0!==n)throw new TypeError("Derived constructors may only return object or undefined");return v(e)}(e,d()?Reflect.construct(n,t||[],f(e).constructor):n.apply(e,t))}function d(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(d=function(){return!!e})()}function f(e){return f=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},f(e)}function v(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function p(e,n){if("function"!=typeof n&&null!==n)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(n&&n.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),n&&m(e,n)}function m(e,n){return m=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,n){return e.__proto__=n,e},m(e,n)}function g(e,n){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);n&&(o=o.filter((function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable}))),t.push.apply(t,o)}return t}function h(e){for(var n=1;n<arguments.length;n++){var t=null!=arguments[n]?arguments[n]:{};n%2?g(Object(t),!0).forEach((function(n){x(e,n,t[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):g(Object(t)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))}))}return e}function j(e,n){if(!(e instanceof n))throw new TypeError("Cannot call a class as a function")}function b(e,n){for(var t=0;t<n.length;t++){var o=n[t];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,$(o.key),o)}}function y(e,n,t){return n&&b(e.prototype,n),t&&b(e,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function x(e,n,t){return(n=$(n))in e?Object.defineProperty(e,n,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[n]=t,e}function $(e){var n=function(e,n){if("object"!=M(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var o=t.call(e,n||"default");if("object"!=M(o))return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===n?String:Number)(e)}(e,"string");return"symbol"==M(n)?n:String(n)}function w(e){return function(e){if(Array.isArray(e))return S(e)}(e)||C(e)||k(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function k(e,n){if(e){if("string"==typeof e)return S(e,n);var t=Object.prototype.toString.call(e).slice(8,-1);return"Object"===t&&e.constructor&&(t=e.constructor.name),"Map"===t||"Set"===t?Array.from(e):"Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t)?S(e,n):void 0}}function C(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}function S(e,n){(null==n||n>e.length)&&(n=e.length);for(var t=0,o=new Array(n);t<n;t++)o[t]=e[t];return o}function M(e){return M="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},M(e)}import{parseJSONPointer as q,compileJSONPointer as O,getIn as z,immutableJSONPatch as E,isJSONPatchAdd as R,isJSONPatchRemove as I,isJSONPatchReplace as P,isJSONPatchCopy as T,isJSONPatchMove as N,parsePath as A,isJSONArray as B,isJSONObject as F,startsWithJSONPointer as L,existsIn as U,revertJSONPatch as D,setIn as J,appendToJSONPointer as V}from"immutable-json-patch";import H from"json-source-map";import{jsonrepair as _}from"jsonrepair";import*as W from"lodash-es";import{map as Q,minBy as Y,isEmpty as K,memoize as G,sortBy as Z,initial as X,last as ee,isEqual as ne,first as te,noop as oe,cloneDeepWith as re,times as ie,groupBy as ae,forEachRight as se,range as le,debounce as ce,partition as ue,mapValues as de,uniqueId as fe,throttle as ve}from"lodash-es";import{faCheckSquare as pe,faSquare as me,faClock as ge,faLightbulb as he}from"@fortawesome/free-regular-svg-icons";import{faTimes as je,faCog as be,faExclamationTriangle as ye,faAngleRight as xe,faAngleDown as $e,faCheck as we,faArrowDown as ke,faWrench as Ce,faCaretDown as Se,faPen as Me,faCut as qe,faCopy as Oe,faPaste as ze,faClone as Ee,faCropAlt as Re,faSortAmountDownAlt as Ie,faFilter as Pe,faTrashCan as Te,faArrowRightArrowLeft as Ne,faPlus as Ae,faCaretSquareUp as Be,faCaretSquareDown as Fe,faCaretRight as Le,faSearch as Ue,faEllipsisV as De,faUndo as Je,faRedo as Ve,faClose as He,faEdit as _e,faChevronDown as We,faChevronUp as Qe,faCircleNotch as Ye,faCode as Ke,faEye as Ge,faCaretUp as Ze,faRotate as Xe,faCaretLeft as en}from"@fortawesome/free-solid-svg-icons";import nn from"natural-compare-lite";import tn from"memoize-one";import{Compartment as on,EditorState as rn,EditorSelection as an}from"@codemirror/state";import{keymap as sn,lineNumbers as ln,highlightActiveLineGutter as cn,highlightSpecialChars as un,drawSelection as dn,dropCursor as fn,rectangularSelection as vn,crosshairCursor as pn,highlightActiveLine as mn,EditorView as gn}from"@codemirror/view";import{indentWithTab as hn,history as jn,defaultKeymap as bn,historyKeymap as yn,undo as xn,redo as $n,undoDepth as wn,redoDepth as kn}from"@codemirror/commands";import{lintGutter as Cn,lintKeymap as Sn,linter as Mn}from"@codemirror/lint";import{json as qn}from"@codemirror/lang-json";import{HighlightStyle as On,syntaxHighlighting as zn,foldGutter as En,indentOnInput as Rn,defaultHighlightStyle as In,bracketMatching as Pn,foldKeymap as Tn,indentUnit as Nn}from"@codemirror/language";import{highlightSelectionMatches as An,searchKeymap as Bn,search as Fn,openSearchPanel as Ln,closeSearchPanel as Un}from"@codemirror/search";import{closeBrackets as Dn,autocompletion as Jn,closeBracketsKeymap as Vn,completionKeymap as Hn}from"@codemirror/autocomplete";import{tags as _n}from"@lezer/highlight";import{indentationMarkers as Wn}from"@replit/codemirror-indentation-markers";import{wrappedLineIndent as Qn}from"codemirror-wrapped-line-indent";import Yn from"ajv";import Kn from"jmespath";function Gn(){}var Zn=function(e){return e};function Xn(e,n){for(var t in n)e[t]=n[t];return e}function et(e){return e()}function nt(){return Object.create(null)}function tt(e){e.forEach(et)}function ot(e){return"function"==typeof e}function rt(e,n){return e!=e?n==n:e!==n||e&&"object"===M(e)||"function"==typeof e}function it(e,n){return e!=e?n==n:e!==n}function at(e,n,t,o){if(e){var r=st(e,n,t,o);return e[0](r)}}function st(e,n,t,o){return e[1]&&o?Xn(t.ctx.slice(),e[1](o(n))):t.ctx}function lt(e,n,t,o){if(e[2]&&o){var r=e[2](o(t));if(void 0===n.dirty)return r;if("object"===M(r)){for(var i=[],a=Math.max(n.dirty.length,r.length),s=0;s<a;s+=1)i[s]=n.dirty[s]|r[s];return i}return n.dirty|r}return n.dirty}function ct(e,n,t,o,r,i){if(r){var a=st(n,t,o,i);e.p(a,r)}}function ut(e){if(e.ctx.length>32){for(var n=[],t=e.ctx.length/32,o=0;o<t;o++)n[o]=-1;return n}return-1}function dt(e){var n={};for(var t in e)"$"!==t[0]&&(n[t]=e[t]);return n}function ft(e,n){var t={};for(var o in n=new Set(n),e)n.has(o)||"$"===o[0]||(t[o]=e[o]);return t}function vt(e){return null==e?"":e}function pt(e){return e&&ot(e.destroy)?e.destroy:Gn}var mt="undefined"!=typeof window,gt=mt?function(){return window.performance.now()}:function(){return Date.now()},ht=mt?function(e){return requestAnimationFrame(e)}:Gn,jt=new Set;function bt(e){jt.forEach((function(n){n.c(e)||(jt.delete(n),n.f())})),0!==jt.size&&ht(bt)}var yt="undefined"!=typeof window?window:"undefined"!=typeof globalThis?globalThis:global;function xt(e,n){e.appendChild(n)}function $t(e,n,t){var o=wt(e);if(!o.getElementById(n)){var r=Ot("style");r.id=n,r.textContent=t,Ct(o,r)}}function wt(e){if(!e)return document;var n=e.getRootNode?e.getRootNode():e.ownerDocument;return n&&n.host?n:e.ownerDocument}function kt(e){var n=Ot("style");return n.textContent="/* empty */",Ct(wt(e),n),n.sheet}function Ct(e,n){return xt(e.head||e,n),n.sheet}function St(e,n,t){e.insertBefore(n,t||null)}function Mt(e){e.parentNode&&e.parentNode.removeChild(e)}function qt(e,n){for(var t=0;t<e.length;t+=1)e[t]&&e[t].d(n)}function Ot(e){return document.createElement(e)}function zt(e){return document.createElementNS("http://www.w3.org/2000/svg",e)}function Et(e){return document.createTextNode(e)}function Rt(){return Et(" ")}function It(){return Et("")}function Pt(e,n,t,o){return e.addEventListener(n,t,o),function(){return e.removeEventListener(n,t,o)}}function Tt(e){return function(n){return n.preventDefault(),e.call(this,n)}}function Nt(e){return function(n){return n.stopPropagation(),e.call(this,n)}}function At(e,n,t){null==t?e.removeAttribute(n):e.getAttribute(n)!==t&&e.setAttribute(n,t)}var Bt=["width","height"];function Ft(e,n){var t=Object.getOwnPropertyDescriptors(e.__proto__);for(var o in n)null==n[o]?e.removeAttribute(o):"style"===o?e.style.cssText=n[o]:"__value"===o?e.value=e[o]=n[o]:t[o]&&t[o].set&&-1===Bt.indexOf(o)?e[o]=n[o]:At(e,o,n[o])}function Lt(e,n){for(var t in n)At(e,t,n[t])}function Ut(e,n){n=""+n,e.data!==n&&(e.data=n)}function Dt(e,n){e.value=null==n?"":n}function Jt(e,n,t,o){null==t?e.style.removeProperty(n):e.style.setProperty(n,t,o?"important":"")}function Vt(e,n,t){for(var o=0;o<e.options.length;o+=1){var r=e.options[o];if(r.__value===n)return void(r.selected=!0)}t&&void 0===n||(e.selectedIndex=-1)}function Ht(e,n,t){e.classList.toggle(n,!!t)}function _t(e,n){var t=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},o=t.bubbles,r=void 0!==o&&o,i=t.cancelable;return new CustomEvent(e,{detail:n,bubbles:r,cancelable:void 0!==i&&i})}function Wt(e,n){return new e(n)}var Qt,Yt=new Map,Kt=0;function Gt(e,n,t,o,r,i,a){for(var s=arguments.length>7&&void 0!==arguments[7]?arguments[7]:0,l=16.666/o,c="{\n",u=0;u<=1;u+=l){var d=n+(t-n)*i(u);c+=100*u+"%{".concat(a(d,1-d),"}\n")}var f=c+"100% {".concat(a(t,1-t),"}\n}"),v="__svelte_".concat(function(e){for(var n=5381,t=e.length;t--;)n=(n<<5)-n^e.charCodeAt(t);return n>>>0}(f),"_").concat(s),p=wt(e),m=Yt.get(p)||function(e,n){var t={stylesheet:kt(n),rules:{}};return Yt.set(e,t),t}(p,e),g=m.stylesheet,h=m.rules;h[v]||(h[v]=!0,g.insertRule("@keyframes ".concat(v," ").concat(f),g.cssRules.length));var j=e.style.animation||"";return e.style.animation="".concat(j?"".concat(j,", "):"").concat(v," ").concat(o,"ms linear ").concat(r,"ms 1 both"),Kt+=1,v}function Zt(e,n){var t=(e.style.animation||"").split(", "),o=t.filter(n?function(e){return e.indexOf(n)<0}:function(e){return-1===e.indexOf("__svelte")}),r=t.length-o.length;r&&(e.style.animation=o.join(", "),(Kt-=r)||ht((function(){Kt||(Yt.forEach((function(e){var n=e.stylesheet.ownerNode;n&&Mt(n)})),Yt.clear())})))}function Xt(e){Qt=e}function eo(){if(!Qt)throw new Error("Function called outside component initialization");return Qt}function no(e){eo().$$.on_mount.push(e)}function to(e){eo().$$.on_destroy.push(e)}function oo(){var e=eo();return function(n,t){var o=(arguments.length>2&&void 0!==arguments[2]?arguments[2]:{}).cancelable,r=void 0!==o&&o,i=e.$$.callbacks[n];if(i){var a=_t(n,t,{cancelable:r});return i.slice().forEach((function(n){n.call(e,a)})),!a.defaultPrevented}return!0}}function ro(e,n){return eo().$$.context.set(e,n),n}function io(e){return eo().$$.context.get(e)}function ao(e,n){var t=this,o=e.$$.callbacks[n.type];o&&o.slice().forEach((function(e){return e.call(t,n)}))}var so=[],lo=[],co=[],uo=[],fo=Promise.resolve(),vo=!1;function po(){vo||(vo=!0,fo.then(xo))}function mo(){return po(),fo}function go(e){co.push(e)}function ho(e){uo.push(e)}var jo,bo=new Set,yo=0;function xo(){if(0===yo){var e=Qt;do{try{for(;yo<so.length;){var n=so[yo];yo++,Xt(n),$o(n.$$)}}catch(e){throw so.length=0,yo=0,e}for(Xt(null),so.length=0,yo=0;lo.length;)lo.pop()();for(var t=0;t<co.length;t+=1){var o=co[t];bo.has(o)||(bo.add(o),o())}co.length=0}while(so.length);for(;uo.length;)uo.pop()();vo=!1,bo.clear(),Xt(e)}}function $o(e){if(null!==e.fragment){e.update(),tt(e.before_update);var n=e.dirty;e.dirty=[-1],e.fragment&&e.fragment.p(e.ctx,n),e.after_update.forEach(go)}}function wo(e,n,t){e.dispatchEvent(_t("".concat(n?"intro":"outro").concat(t)))}var ko,Co=new Set;function So(){ko={r:0,c:[],p:ko}}function Mo(){ko.r||tt(ko.c),ko=ko.p}function qo(e,n){e&&e.i&&(Co.delete(e),e.i(n))}function Oo(e,n,t,o){if(e&&e.o){if(Co.has(e))return;Co.add(e),ko.c.push((function(){Co.delete(e),o&&(t&&e.d(1),o())})),e.o(n)}else o&&o()}var zo={duration:0};function Eo(e,n,t,o){var r,i=n(e,t,{direction:"both"}),a=o?0:1,s=null,l=null,c=null;function u(){c&&Zt(e,c)}function d(e,n){var t=e.b-a;return n*=Math.abs(t),{a:a,b:e.b,d:t,duration:n,start:e.start,end:e.start+n,group:e.group}}function f(n){var t,o=i||zo,f=o.delay,v=void 0===f?0:f,p=o.duration,m=void 0===p?300:p,g=o.easing,h=void 0===g?Zn:g,j=o.tick,b=void 0===j?Gn:j,y=o.css,x={start:gt()+v,b:n};n||(x.group=ko,ko.r+=1),"inert"in e&&(n?void 0!==r&&(e.inert=r):(r=e.inert,e.inert=!0)),s||l?l=x:(y&&(u(),c=Gt(e,a,n,m,v,h,y)),n&&b(0,1),s=d(x,m),go((function(){return wo(e,n,"start")})),t=function(n){if(l&&n>l.start&&(s=d(l,m),l=null,wo(e,s.b,"start"),y&&(u(),c=Gt(e,a,s.b,s.duration,0,h,i.css))),s)if(n>=s.end)b(a=s.b,1-a),wo(e,s.b,"end"),l||(s.b?u():--s.group.r||tt(s.group.c)),s=null;else if(n>=s.start){var t=n-s.start;a=s.a+s.d*h(t/s.duration),b(a,1-a)}return!(!s&&!l)},0===jt.size&&ht(bt),new Promise((function(e){jt.add({c:t,f:e})})))}return{run:function(e){ot(i)?(jo||(jo=Promise.resolve()).then((function(){jo=null})),jo).then((function(){i=i({direction:e?"in":"out"}),f(e)})):f(e)},end:function(){u(),s=l=null}}}function Ro(e){return void 0!==(null==e?void 0:e.length)?e:Array.from(e)}function Io(e,n){e.d(1),n.delete(e.key)}function Po(e,n){Oo(e,1,1,(function(){n.delete(e.key)}))}function To(e,n,t,o,r,i,a,s,l,c,u,d){for(var f=e.length,v=i.length,p=f,m={};p--;)m[e[p].key]=p;var g=[],h=new Map,j=new Map,b=[];p=v;for(var y=function(){var e=d(r,i,p),s=t(e),l=a.get(s);l?o&&b.push((function(){return l.p(e,n)})):(l=c(s,e)).c(),h.set(s,g[p]=l),s in m&&j.set(s,Math.abs(p-m[s]))};p--;)y();var x=new Set,$=new Set;function w(e){qo(e,1),e.m(s,u),a.set(e.key,e),u=e.first,v--}for(;f&&v;){var k=g[v-1],C=e[f-1],S=k.key,M=C.key;k===C?(u=k.first,f--,v--):h.has(M)?!a.has(S)||x.has(S)?w(k):$.has(M)?f--:j.get(S)>j.get(M)?($.add(S),w(k)):(x.add(M),f--):(l(C,a),f--)}for(;f--;){var q=e[f];h.has(q.key)||l(q,a)}for(;v;)w(g[v-1]);return tt(b),g}function No(e,n){for(var t={},o={},r={$$scope:1},i=e.length;i--;){var a=e[i],s=n[i];if(s){for(var l in a)l in s||(o[l]=1);for(var c in s)r[c]||(t[c]=s[c],r[c]=1);e[i]=s}else for(var u in a)r[u]=1}for(var d in o)d in t||(t[d]=void 0);return t}function Ao(e){return"object"===M(e)&&null!==e?e:{}}function Bo(e,n,t){var o=e.$$.props[n];void 0!==o&&(e.$$.bound[o]=t,t(e.$$.ctx[o]))}function Fo(e){e&&e.c()}function Lo(e,n,t){var o=e.$$,r=o.fragment,i=o.after_update;r&&r.m(n,t),go((function(){var n,t=e.$$.on_mount.map(et).filter(ot);e.$$.on_destroy?(n=e.$$.on_destroy).push.apply(n,w(t)):tt(t);e.$$.on_mount=[]})),i.forEach(go)}function Uo(e,n){var t,o,r,i=e.$$;null!==i.fragment&&(t=i.after_update,o=[],r=[],co.forEach((function(e){return-1===t.indexOf(e)?o.push(e):r.push(e)})),r.forEach((function(e){return e()})),co=o,tt(i.on_destroy),i.fragment&&i.fragment.d(n),i.on_destroy=i.fragment=null,i.ctx=[])}function Do(e,n,t,o,r,i){var a=arguments.length>6&&void 0!==arguments[6]?arguments[6]:null,s=arguments.length>7&&void 0!==arguments[7]?arguments[7]:[-1],l=Qt;Xt(e);var c=e.$$={fragment:null,ctx:[],props:i,update:Gn,not_equal:r,bound:nt(),on_mount:[],on_destroy:[],on_disconnect:[],before_update:[],after_update:[],context:new Map(n.context||(l?l.$$.context:[])),callbacks:nt(),dirty:s,skip_bound:!1,root:n.target||l.$$.root};a&&a(c.root);var u=!1;if(c.ctx=t?t(e,n.props||{},(function(n,t){var o=!(arguments.length<=2)&&arguments.length-2?arguments.length<=2?void 0:arguments[2]:t;return c.ctx&&r(c.ctx[n],c.ctx[n]=o)&&(!c.skip_bound&&c.bound[n]&&c.bound[n](o),u&&function(e,n){-1===e.$$.dirty[0]&&(so.push(e),po(),e.$$.dirty.fill(0)),e.$$.dirty[n/31|0]|=1<<n%31}(e,n)),t})):[],c.update(),u=!0,tt(c.before_update),c.fragment=!!o&&o(c.ctx),n.target){if(n.hydrate){var d=function(e){return Array.from(e.childNodes)}(n.target);c.fragment&&c.fragment.l(d),d.forEach(Mt)}else c.fragment&&c.fragment.c();n.intro&&qo(e.$$.fragment),Lo(e,n.target,n.anchor),xo()}Xt(l)}var Jo=function(){function e(){j(this,e),x(this,"$$",void 0),x(this,"$$set",void 0)}return y(e,[{key:"$destroy",value:function(){Uo(this,1),this.$destroy=Gn}},{key:"$on",value:function(e,n){if(!ot(n))return Gn;var t=this.$$.callbacks[e]||(this.$$.callbacks[e]=[]);return t.push(n),function(){var e=t.indexOf(n);-1!==e&&t.splice(e,1)}}},{key:"$set",value:function(e){var n;this.$$set&&(n=e,0!==Object.keys(n).length)&&(this.$$.skip_bound=!0,this.$$set(e),this.$$.skip_bound=!1)}}]),e}();function Vo(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:function(e){var n=function(e){try{if("undefined"!=typeof window&&void 0!==window.localStorage)return window.localStorage[e]}catch(e){}}("debug");return null!=n&&n.endsWith("*")?e.startsWith(n.slice(0,-1)):e===n}(e);if(!n)return Ho;var t=function(e){for(var n=0,t=0;t<e.length;t++)n=(n<<5)-n+e.charCodeAt(t),n|=0;return _o[Math.abs(n)%_o.length]}(e);return function(){for(var n,o=arguments.length,r=new Array(o),i=0;i<o;i++)r[i]=arguments[i];(n=console).log.apply(n,["%c".concat(e),"color:".concat(t)].concat(r))}}function Ho(){}"undefined"!=typeof window&&(window.__svelte||(window.__svelte={v:new Set})).v.add("4");var _o=["#0000CC","#0099FF","#009400","#8dd200","#CCCC00","#CC9933","#ae04e7","#ff35d7","#FF3333","#FF6600","#FF9933","#FFCC33"];function Wo(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},t=n.delay,o=void 0===t?0:t,r=n.duration,i=void 0===r?400:r,a=n.easing,s=void 0===a?Zn:a,l=+getComputedStyle(e).opacity;return{delay:o,duration:i,easing:s,css:function(e){return"opacity: ".concat(e*l)}}}var Qo=yt.window;function Yo(e){$t(e,"svelte-n7cvum",".svelte-n7cvum{box-sizing:border-box}.bg.svelte-n7cvum{position:fixed;z-index:1000;top:0;left:0;display:flex;flex-direction:column;justify-content:center;width:100vw;height:100vh;background:rgba(0, 0, 0, 0.66)}@supports (-webkit-touch-callout: none){}.wrap.svelte-n7cvum{position:relative;margin:2rem;max-height:100%}.window.svelte-n7cvum{position:relative;width:40rem;max-width:100%;max-height:100%;margin:2rem auto;color:black;border-radius:0.5rem;background:white}.content.svelte-n7cvum{position:relative;padding:1rem;max-height:calc(100vh - 4rem);overflow:auto}.close.svelte-n7cvum{display:block;box-sizing:border-box;position:absolute;z-index:1000;top:1rem;right:1rem;margin:0;padding:0;width:1.5rem;height:1.5rem;border:0;color:black;border-radius:1.5rem;background:white;box-shadow:0 0 0 1px black;transition:transform 0.2s cubic-bezier(0.25, 0.1, 0.25, 1),\n background 0.2s cubic-bezier(0.25, 0.1, 0.25, 1);-webkit-appearance:none}.close.svelte-n7cvum:before,.close.svelte-n7cvum:after{content:'';display:block;box-sizing:border-box;position:absolute;top:50%;width:1rem;height:1px;background:black;transform-origin:center;transition:height 0.2s cubic-bezier(0.25, 0.1, 0.25, 1),\n background 0.2s cubic-bezier(0.25, 0.1, 0.25, 1)}.close.svelte-n7cvum:before{-webkit-transform:translate(0, -50%) rotate(45deg);-moz-transform:translate(0, -50%) rotate(45deg);transform:translate(0, -50%) rotate(45deg);left:0.25rem}.close.svelte-n7cvum:after{-webkit-transform:translate(0, -50%) rotate(-45deg);-moz-transform:translate(0, -50%) rotate(-45deg);transform:translate(0, -50%) rotate(-45deg);left:0.25rem}.close.svelte-n7cvum:hover{background:black}.close.svelte-n7cvum:hover:before,.close.svelte-n7cvum:hover:after{height:2px;background:white}.close.svelte-n7cvum:focus{border-color:#3399ff;box-shadow:0 0 0 2px #3399ff}.close.svelte-n7cvum:active{transform:scale(0.9)}.close.svelte-n7cvum:hover,.close.svelte-n7cvum:focus,.close.svelte-n7cvum:active{outline:none}")}function Ko(e){var n,t,o,r,i,a,s,l,c,u,d,f,v,p,m,g,h,j,b=e[1].closeButton&&Go(e),y=e[2];return y&&(a=Wt(y,{})),{c:function(){n=Ot("div"),t=Ot("div"),o=Ot("div"),b&&b.c(),r=Rt(),i=Ot("div"),a&&Fo(a.$$.fragment),At(i,"class",s=vt(e[1].classContent)+" svelte-n7cvum"),At(i,"style",e[9]),Ht(i,"content",!e[0]),At(o,"class",l=vt(e[1].classWindow)+" svelte-n7cvum"),At(o,"role","dialog"),At(o,"aria-modal","true"),At(o,"aria-label",c=e[1].ariaLabelledBy?null:e[1].ariaLabel||null),At(o,"aria-labelledby",u=e[1].ariaLabelledBy||null),At(o,"style",e[8]),Ht(o,"window",!e[0]),At(t,"class",f=vt(e[1].classWindowWrap)+" svelte-n7cvum"),At(t,"style",e[7]),Ht(t,"wrap",!e[0]),At(n,"aria-hidden","true"),At(n,"id",v=e[1].id),At(n,"class",p=vt(e[1].classBg)+" svelte-n7cvum"),At(n,"style",e[6]),Ht(n,"bg",!e[0])},m:function(s,l){St(s,n,l),xt(n,t),xt(t,o),b&&b.m(o,null),xt(o,r),xt(o,i),a&&Lo(a,i,null),e[50](o),e[51](t),e[52](n),g=!0,h||(j=[Pt(o,"introstart",(function(){ot(e[13])&&e[13].apply(this,arguments)})),Pt(o,"outrostart",(function(){ot(e[14])&&e[14].apply(this,arguments)})),Pt(o,"introend",(function(){ot(e[15])&&e[15].apply(this,arguments)})),Pt(o,"outroend",(function(){ot(e[16])&&e[16].apply(this,arguments)})),Pt(n,"mousedown",e[20]),Pt(n,"mouseup",e[21])],h=!0)},p:function(d,m){if((e=d)[1].closeButton?b?(b.p(e,m),2&m[0]&&qo(b,1)):((b=Go(e)).c(),qo(b,1),b.m(o,r)):b&&(So(),Oo(b,1,1,(function(){b=null})),Mo()),4&m[0]&&y!==(y=e[2])){if(a){So();var h=a;Oo(h.$$.fragment,1,0,(function(){Uo(h,1)})),Mo()}y?(Fo((a=Wt(y,{})).$$.fragment),qo(a.$$.fragment,1),Lo(a,i,null)):a=null}(!g||2&m[0]&&s!==(s=vt(e[1].classContent)+" svelte-n7cvum"))&&At(i,"class",s),(!g||512&m[0])&&At(i,"style",e[9]),(!g||3&m[0])&&Ht(i,"content",!e[0]),(!g||2&m[0]&&l!==(l=vt(e[1].classWindow)+" svelte-n7cvum"))&&At(o,"class",l),(!g||2&m[0]&&c!==(c=e[1].ariaLabelledBy?null:e[1].ariaLabel||null))&&At(o,"aria-label",c),(!g||2&m[0]&&u!==(u=e[1].ariaLabelledBy||null))&&At(o,"aria-labelledby",u),(!g||256&m[0])&&At(o,"style",e[8]),(!g||3&m[0])&&Ht(o,"window",!e[0]),(!g||2&m[0]&&f!==(f=vt(e[1].classWindowWrap)+" svelte-n7cvum"))&&At(t,"class",f),(!g||128&m[0])&&At(t,"style",e[7]),(!g||3&m[0])&&Ht(t,"wrap",!e[0]),(!g||2&m[0]&&v!==(v=e[1].id))&&At(n,"id",v),(!g||2&m[0]&&p!==(p=vt(e[1].classBg)+" svelte-n7cvum"))&&At(n,"class",p),(!g||64&m[0])&&At(n,"style",e[6]),(!g||3&m[0])&&Ht(n,"bg",!e[0])},i:function(t){g||(qo(b),a&&qo(a.$$.fragment,t),t&&go((function(){g&&(d||(d=Eo(o,e[12],e[1].transitionWindowProps,!0)),d.run(1))})),t&&go((function(){g&&(m||(m=Eo(n,e[11],e[1].transitionBgProps,!0)),m.run(1))})),g=!0)},o:function(t){Oo(b),a&&Oo(a.$$.fragment,t),t&&(d||(d=Eo(o,e[12],e[1].transitionWindowProps,!1)),d.run(0)),t&&(m||(m=Eo(n,e[11],e[1].transitionBgProps,!1)),m.run(0)),g=!1},d:function(t){t&&Mt(n),b&&b.d(),a&&Uo(a),e[50](null),t&&d&&d.end(),e[51](null),e[52](null),t&&m&&m.end(),h=!1,tt(j)}}}function Go(e){var n,t,o,r,i,a=[Xo,Zo],s=[];function l(e,t){return 2&t[0]&&(n=null),null==n&&(n=!!e[17](e[1].closeButton)),n?0:1}return t=l(e,[-1,-1,-1]),o=s[t]=a[t](e),{c:function(){o.c(),r=It()},m:function(e,n){s[t].m(e,n),St(e,r,n),i=!0},p:function(e,n){var i=t;(t=l(e,n))===i?s[t].p(e,n):(So(),Oo(s[i],1,1,(function(){s[i]=null})),Mo(),(o=s[t])?o.p(e,n):(o=s[t]=a[t](e)).c(),qo(o,1),o.m(r.parentNode,r))},i:function(e){i||(qo(o),i=!0)},o:function(e){Oo(o),i=!1},d:function(e){e&&Mt(r),s[t].d(e)}}}function Zo(e){var n,t,o,r;return{c:function(){At(n=Ot("button"),"class",t=vt(e[1].classCloseButton)+" svelte-n7cvum"),At(n,"aria-label","Close modal"),At(n,"style",e[10]),At(n,"type","button"),Ht(n,"close",!e[0])},m:function(t,i){St(t,n,i),o||(r=Pt(n,"click",e[18]),o=!0)},p:function(e,o){2&o[0]&&t!==(t=vt(e[1].classCloseButton)+" svelte-n7cvum")&&At(n,"class",t),1024&o[0]&&At(n,"style",e[10]),3&o[0]&&Ht(n,"close",!e[0])},i:Gn,o:Gn,d:function(e){e&&Mt(n),o=!1,r()}}}function Xo(e){var n,t,o,r=e[1].closeButton;function i(e,n){return{props:{onClose:e[18]}}}return r&&(n=Wt(r,i(e))),{c:function(){n&&Fo(n.$$.fragment),t=It()},m:function(e,r){n&&Lo(n,e,r),St(e,t,r),o=!0},p:function(e,o){if(2&o[0]&&r!==(r=e[1].closeButton)){if(n){So();var a=n;Oo(a.$$.fragment,1,0,(function(){Uo(a,1)})),Mo()}r?(Fo((n=Wt(r,i(e))).$$.fragment),qo(n.$$.fragment,1),Lo(n,t.parentNode,t)):n=null}},i:function(e){o||(n&&qo(n.$$.fragment,e),o=!0)},o:function(e){n&&Oo(n.$$.fragment,e),o=!1},d:function(e){e&&Mt(t),n&&Uo(n,e)}}}function er(e){var n,t,o,r,i=e[2]&&Ko(e),a=e[49].default,s=at(a,e,e[48],null);return{c:function(){i&&i.c(),n=Rt(),s&&s.c()},m:function(a,l){i&&i.m(a,l),St(a,n,l),s&&s.m(a,l),t=!0,o||(r=Pt(Qo,"keydown",e[19]),o=!0)},p:function(e,o){e[2]?i?(i.p(e,o),4&o[0]&&qo(i,1)):((i=Ko(e)).c(),qo(i,1),i.m(n.parentNode,n)):i&&(So(),Oo(i,1,1,(function(){i=null})),Mo()),s&&s.p&&(!t||131072&o[1])&&ct(s,a,e,e[48],t?lt(a,e[48],o,null):ut(e[48]),null)},i:function(e){t||(qo(i),qo(s,e),t=!0)},o:function(e){Oo(i),Oo(s,e),t=!1},d:function(e){e&&Mt(n),i&&i.d(e),s&&s.d(e),o=!1,r()}}}function nr(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return function(t){return new e(h(h({},t),{},{props:h(h({},n),t.props)}))}}function tr(e,n,t){var o,r,i,a,s,l,c,u,d,f,v,p,m,g,j,b=n.$$slots,y=void 0===b?{}:b,x=n.$$scope,$=oo(),w=ro,k=n.isTabbable,C=void 0===k?function(e){return e.tabIndex>=0&&!e.hidden&&!e.disabled&&"none"!==e.style.display&&"hidden"!==e.type&&Boolean(e.offsetWidth||e.offsetHeight||e.getClientRects().length)}:k,S=n.show,M=void 0===S?null:S,q=n.id,O=void 0===q?null:q,z=n.key,E=void 0===z?"simple-modal":z,R=n.ariaLabel,I=void 0===R?null:R,P=n.ariaLabelledBy,T=void 0===P?null:P,N=n.closeButton,A=void 0===N||N,B=n.closeOnEsc,F=void 0===B||B,L=n.closeOnOuterClick,U=void 0===L||L,D=n.styleBg,J=void 0===D?{}:D,V=n.styleWindowWrap,H=void 0===V?{}:V,_=n.styleWindow,W=void 0===_?{}:_,Q=n.styleContent,Y=void 0===Q?{}:Q,K=n.styleCloseButton,G=void 0===K?{}:K,Z=n.classBg,X=void 0===Z?null:Z,ee=n.classWindowWrap,ne=void 0===ee?null:ee,te=n.classWindow,oe=void 0===te?null:te,re=n.classContent,ie=void 0===re?null:re,ae=n.classCloseButton,se=void 0===ae?null:ae,le=n.unstyled,ce=void 0!==le&&le,ue=n.setContext,de=void 0===ue?w:ue,fe=n.transitionBg,ve=void 0===fe?Wo:fe,pe=n.transitionBgProps,me=void 0===pe?{duration:250}:pe,ge=n.transitionWindow,he=void 0===ge?ve:ge,je=n.transitionWindowProps,be=void 0===je?me:je,ye=n.disableFocusTrap,xe=void 0!==ye&&ye,$e={id:O,ariaLabel:I,ariaLabelledBy:T,closeButton:A,closeOnEsc:F,closeOnOuterClick:U,styleBg:J,styleWindowWrap:H,styleWindow:W,styleContent:Y,styleCloseButton:G,classBg:X,classWindowWrap:ne,classWindow:oe,classContent:ie,classCloseButton:se,transitionBg:ve,transitionBgProps:me,transitionWindow:he,transitionWindowProps:be,disableFocusTrap:xe,isTabbable:C,unstyled:ce},we=h({},$e),ke=null,Ce=function(e){return e?Object.keys(e).reduce((function(n,t){return"".concat(n,"; ").concat(function(e){return e.replace(/([a-zA-Z])(?=[A-Z])/g,"$1-").toLowerCase()}(t),": ").concat(e[t])}),""):""},Se=function(e){return!!(e&&e.constructor&&e.call&&e.apply)},Me=function(){},qe=Me,Oe=Me,ze=Me,Ee=Me,Re=function(e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};t(2,ke=nr(e,arguments.length>1&&void 0!==arguments[1]?arguments[1]:{})),t(1,we=h(h({},$e),n)),t(6,s=Ce(Object.assign({},{width:window.innerWidth,height:window.innerHeight},we.styleBg))),t(7,l=Ce(we.styleWindowWrap)),t(8,c=Ce(we.styleWindow)),t(9,u=Ce(we.styleContent)),t(10,d=Ce(we.styleCloseButton)),t(11,f=we.transitionBg),t(12,v=we.transitionWindow),Pe(),t(13,qe=function(e){o.onOpen&&o.onOpen(e),$("open"),$("opening")}),t(14,Oe=function(e){o.onClose&&o.onClose(e),$("close"),$("closing")}),t(15,ze=function(e){o.onOpened&&o.onOpened(e),$("opened")}),t(16,Ee=function(e){o.onClosed&&o.onClosed(e),$("closed")})},Ie=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};ke&&(t(14,Oe=e.onClose||Oe),t(16,Ee=e.onClosed||Ee),t(2,ke=null),Te())},Pe=function(){a=window.scrollY,p=document.body.style.position,m=document.body.style.overflow,g=document.body.style.width,document.body.style.position="fixed",document.body.style.top="-".concat(a,"px"),document.body.style.overflow="hidden",document.body.style.width="100%"},Te=function(){document.body.style.position=p||"",document.body.style.top="",document.body.style.overflow=m||"",document.body.style.width=g||"",window.scrollTo({top:a,left:0,behavior:"instant"})};de(E,{open:Re,close:Ie});var Ne=!1;return to((function(){Ne&&Ie()})),no((function(){t(47,Ne=!0)})),e.$$set=function(e){"isTabbable"in e&&t(22,C=e.isTabbable),"show"in e&&t(23,M=e.show),"id"in e&&t(24,O=e.id),"key"in e&&t(25,E=e.key),"ariaLabel"in e&&t(26,I=e.ariaLabel),"ariaLabelledBy"in e&&t(27,T=e.ariaLabelledBy),"closeButton"in e&&t(28,A=e.closeButton),"closeOnEsc"in e&&t(29,F=e.closeOnEsc),"closeOnOuterClick"in e&&t(30,U=e.closeOnOuterClick),"styleBg"in e&&t(31,J=e.styleBg),"styleWindowWrap"in e&&t(32,H=e.styleWindowWrap),"styleWindow"in e&&t(33,W=e.styleWindow),"styleContent"in e&&t(34,Y=e.styleContent),"styleCloseButton"in e&&t(35,G=e.styleCloseButton),"classBg"in e&&t(36,X=e.classBg),"classWindowWrap"in e&&t(37,ne=e.classWindowWrap),"classWindow"in e&&t(38,oe=e.classWindow),"classContent"in e&&t(39,ie=e.classContent),"classCloseButton"in e&&t(40,se=e.classCloseButton),"unstyled"in e&&t(0,ce=e.unstyled),"setContext"in e&&t(41,de=e.setContext),"transitionBg"in e&&t(42,ve=e.transitionBg),"transitionBgProps"in e&&t(43,me=e.transitionBgProps),"transitionWindow"in e&&t(44,he=e.transitionWindow),"transitionWindowProps"in e&&t(45,be=e.transitionWindowProps),"disableFocusTrap"in e&&t(46,xe=e.disableFocusTrap),"$$scope"in e&&t(48,x=e.$$scope)},e.$$.update=function(){8388608&e.$$.dirty[0]|65536&e.$$.dirty[1]&&Ne&&(Se(M)?Re(M):Ie())},[ce,we,ke,o,r,i,s,l,c,u,d,f,v,qe,Oe,ze,Ee,Se,Ie,function(e){if(we.closeOnEsc&&ke&&"Escape"===e.key&&(e.preventDefault(),Ie()),ke&&"Tab"===e.key&&!we.disableFocusTrap){var n=i.querySelectorAll("*"),t=Array.from(n).filter(we.isTabbable).sort((function(e,n){return e.tabIndex-n.tabIndex})),o=t.indexOf(document.activeElement);-1===o&&e.shiftKey&&(o=0),o+=t.length+(e.shiftKey?-1:1),t[o%=t.length].focus(),e.preventDefault()}},function(e){!we.closeOnOuterClick||e.target!==o&&e.target!==r||(j=e.target)},function(e){we.closeOnOuterClick&&e.target===j&&(e.preventDefault(),Ie())},C,M,O,E,I,T,A,F,U,J,H,W,Y,G,X,ne,oe,ie,se,de,ve,me,he,be,xe,Ne,x,y,function(e){lo[e?"unshift":"push"]((function(){t(5,i=e)}))},function(e){lo[e?"unshift":"push"]((function(){t(4,r=e)}))},function(e){lo[e?"unshift":"push"]((function(){t(3,o=e)}))}]}var or,rr,ir,ar,sr,lr,cr,ur=function(e){function n(e){var t;return j(this,n),Do(v(t=u(this,n)),e,tr,er,rt,{isTabbable:22,show:23,id:24,key:25,ariaLabel:26,ariaLabelledBy:27,closeButton:28,closeOnEsc:29,closeOnOuterClick:30,styleBg:31,styleWindowWrap:32,styleWindow:33,styleContent:34,styleCloseButton:35,classBg:36,classWindowWrap:37,classWindow:38,classContent:39,classCloseButton:40,unstyled:0,setContext:41,transitionBg:42,transitionBgProps:43,transitionWindow:44,transitionWindowProps:45,disableFocusTrap:46},Yo,[-1,-1,-1]),t}return p(n,Jo),y(n)}();!function(e){e.text="text",e.tree="tree",e.table="table"}(or||(or={})),function(e){e.after="after",e.inside="inside",e.key="key",e.value="value",e.multi="multi",e.text="text"}(rr||(rr={})),function(e){e.after="after",e.key="key",e.value="value",e.inside="inside"}(ir||(ir={})),function(e){e.info="info",e.warning="warning",e.error="error"}(ar||(ar={})),function(e){e.key="key",e.value="value"}(sr||(sr={})),function(e){e.asc="asc",e.desc="desc"}(lr||(lr={})),function(e){e.no="no",e.self="self",e.nextInside="nextInside"}(cr||(cr={}));var dr=50,fr=200,vr=400,pr=1200,mr=1e3,gr=100,hr=100,jr=2e4,br=[{start:0,end:gr}],yr=104857600,xr=1048576,$r=10485760,wr=10240,kr={closeButton:!1,classBg:"jse-modal-bg",classWindow:"jse-modal-window",classWindowWrap:"jse-modal-window-wrap",classContent:"jse-modal-container"},Cr=h(h({},kr),{},{classWindow:"jse-modal-window jse-modal-window-sort"}),Sr=h(h({},kr),{},{classWindow:"jse-modal-window jse-modal-window-transform"}),Mr=h(h({},kr),{},{classWindow:"jse-modal-window jse-modal-window-jsoneditor"}),qr="Insert or paste contents, enter [ insert a new array, enter { to insert a new object, or start typing to insert a new value",Or="Open context menu (Click here, right click on the selection, or use the context menu button or Ctrl+Q)",zr="hover-insert-inside",Er="hover-insert-after",Rr="hover-collection",Ir="valid",Pr="repairable",Tr=336,Nr=260,Ar=x(x({},lr.asc,"ascending"),lr.desc,"descending"),Br=0;function Fr(){return++Br}function Lr(e){return parseInt(e,10)}function Ur(e){return Dr.test(e)}var Dr=/^-?(?:0|[1-9]\d*)(?:\.\d+)?(?:[eE][+-]?\d+)?$/;function Jr(e){return"object"===M(e)&&null!==e&&(void 0===e.constructor||"Object"===e.constructor.name)}function Vr(e){return"object"===M(e)&&null!==e&&(void 0===e.constructor||"Object"===e.constructor.name||"Array"===e.constructor.name)}function Hr(e){if("number"==typeof e)return e>9466848e5&&isFinite(e)&&Math.floor(e)===e&&!isNaN(new Date(e).valueOf());if("bigint"==typeof e)return Hr(Number(e));try{var n=e?e.valueOf():e;if(n!==e)return Hr(n)}catch(e){return!1}return!1}function _r(e){(Wr=Wr||window.document.createElement("div")).style.color="",Wr.style.color=e;var n=Wr.style.color;return""!==n?n.replace(/\s+/g,"").toLowerCase():null}var Wr=null;function Qr(e,n){if("number"==typeof e||"string"==typeof e||"boolean"==typeof e||void 0===e)return M(e);if("bigint"==typeof e)return"number";if(null===e)return"null";if(Array.isArray(e))return"array";if(Jr(e))return"object";var t=n.stringify(e);return t&&Ur(t)?"number":"true"===t||"false"===t?"boolean":"null"===t?"null":"unknown"}var Yr=/^https?:\/\/\S+$/;function Kr(e){return"string"==typeof e&&Yr.test(e)}function Gr(e,n){if(""===e)return"";var t=e.trim();return"null"===t?null:"true"===t||"false"!==t&&(Ur(t)?n.parse(t):e)}function Zr(e){return Xr.test(e)}var Xr=/^-?[0-9]+$/,ei=1e4,ni=[];function ti(e){var n=arguments.length>1&&void 0!==arguments[1]&&arguments[1],t={};if(!Array.isArray(e))throw new TypeError("Array expected");function o(e,r){(!Array.isArray(e)&&!Jr(e)||n&&r.length>0)&&(t[O(r)]=!0),Jr(e)&&Object.keys(e).forEach((function(n){o(e[n],r.concat(n))}))}for(var r=Math.min(e.length,ei),i=0;i<r;i++){o(e[i],ni)}return Object.keys(t).sort().map(q)}function oi(e,n,t){if(!(n<=e))for(var o=e;o<n;o++)t(o)}function ri(e,n){return e.length>n?e.slice(0,n):e}function ii(e){return h({},e)}function ai(e){return Object.values(e)}function si(e,n,t,o){var r=e.slice(0),i=r.splice(n,t);return r.splice.apply(r,[n+o,0].concat(w(i))),r}function li(e,n){try{return n.parse(e)}catch(t){return n.parse(_(e))}}function ci(e,n){try{return li(e,n)}catch(e){return}}function ui(e,n){e=e.replace(fi,"");try{return n(e)}catch(e){}try{return n("["+e+"]")}catch(e){}try{return n("{"+e+"}")}catch(e){}throw new Error("Failed to parse partial JSON")}function di(e){e=e.replace(fi,"");try{return _(e)}catch(e){}try{var n=_("["+e+"]");return n.substring(1,n.length-1)}catch(e){}try{var t=_("{"+e+"}");return t.substring(1,t.length-1)}catch(e){}throw new Error("Failed to repair partial JSON")}var fi=/,\s*$/;function vi(e,n){var t=wi.exec(n);if(t){var o=Lr(t[2]),r=function(e,n){for(var t=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:e.length,r=0,i=t;i<o;i++)e.charAt(i)===n&&r++;return r}(e,"\n",0,o),i=o-e.lastIndexOf("\n",o)-1;return{position:o,line:r,column:i,message:n.replace(wi,(function(){return"line ".concat(r+1," column ").concat(i+1)}))}}var a=ki.exec(n),s=a?Lr(a[1]):null,l=null!==s?s-1:null,c=Ci.exec(n),u=c?Lr(c[1]):null,d=null!==u?u-1:null,f=null!==l&&null!==d?function(e,n,t){var o=e.indexOf("\n"),r=1;for(;r<n&&-1!==o;)o=e.indexOf("\n",o+1),r++;return-1!==o?o+t+1:null}(e,l,d):null;return{position:f,line:l,column:d,message:n.replace(/^JSON.parse: /,"").replace(/ of the JSON data$/,"")}}function pi(e){return Jr(e)?void 0!==e.json?void 0!==e.text?'Content must contain either a property "json" or a property "text" but not both':null:void 0===e.text?'Content must contain either a property "json" or a property "text"':"string"!=typeof e.text?'Content "text" property must be a string containing a JSON document. Did you mean to use the "json" property instead?':null:"Content must be an object"}function mi(e){return Jr(e)&&(void 0!==e.json||"string"==typeof e.text)}function gi(e){return Jr(e)&&"string"==typeof e.text}function hi(e){return Jr(e)&&void 0!==e.json}function ji(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:void 0,t=arguments.length>2&&void 0!==arguments[2]?arguments[2]:JSON;return gi(e)?e:{text:t.stringify(e.json,null,n)}}function bi(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:JSON;return hi(e)?e:{json:n.parse(e.text)}}function yi(e,n,t){return ji(e,n,t).text}function xi(e,n){return $i(e,n)>n}function $i(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1/0;if(gi(e))return e.text.length;var t=e.json,o=0;return function e(t){if(Array.isArray(t)){if((o+=t.length-1+2)>n)return o;for(var r=0;r<t.length;r++){if(e(t[r]),o>n)return o}}else if(Jr(t)){var i=Object.keys(t);o+=2+i.length+(i.length-1);for(var a=0;a<i.length;a++){var s=i[a],l=t[s];o+=s.length+2,e(l)}}else o+="string"==typeof t?t.length+2:String(t).length}(t),o}var wi=/(position|char) (\d+)/,ki=/line (\d+)/,Ci=/column (\d+)/;function Si(e,n){return e.parse===n.parse&&e.stringify===n.stringify}function Mi(e){return qi.test(e)&&e.length>2}var qi=/^[[{]\S/;function Oi(e){var n=e.escapeControlCharacters,t=e.escapeUnicodeCharacters;return n?t?zi:Ei:t?Ri:Ii}var zi={escapeValue:function(e){return Pi(Bi(String(e)))},unescapeValue:function(e){return Fi(Ti(e))}},Ei={escapeValue:function(e){return Bi(String(e))},unescapeValue:function(e){return Fi(e)}},Ri={escapeValue:function(e){return Pi(String(e))},unescapeValue:function(e){return Ti(e)}},Ii={escapeValue:function(e){return String(e)},unescapeValue:function(e){return e}};function Pi(e){return e.replace(/[^\x20-\x7F]/g,(function(e){var n;return"\b"===e||"\f"===e||"\n"===e||"\r"===e||"\t"===e?e:"\\u"+("000"+(null===(n=e.codePointAt(0))||void 0===n?void 0:n.toString(16))).slice(-4)}))}function Ti(e){return e.replace(/\\u[a-fA-F0-9]{4}/g,(function(e){try{var n=JSON.parse('"'+e+'"');return Ni[n]||n}catch(n){return e}}))}var Ni={'"':'\\"',"\\":"\\\\","\b":"\\b","\f":"\\f","\n":"\\n","\r":"\\r","\t":"\\t"},Ai={'\\"':'"',"\\\\":"\\","\\/":"/","\\b":"\b","\\f":"\f","\\n":"\n","\\r":"\r","\\t":"\t"};function Bi(e){return e.replace(/["\b\f\n\r\t\\]/g,(function(e){return Ni[e]||e}))}function Fi(e){return e.replace(/\\["bfnrt\\]/g,(function(e){return Ai[e]||e}))}function Li(e){return"string"!=typeof e?String(e):e.endsWith("\n")?e+"\n":e}function Ui(e,n){return Ji(e,(function(e){return e.nodeName.toUpperCase()===n.toUpperCase()}))}function Di(e,n,t){return Ji(e,(function(e){return function(e,n,t){return"function"==typeof e.getAttribute&&e.getAttribute(n)===t}(e,n,t)}))}function Ji(e,n){return!!Vi(e,n)}function Vi(e,n){for(var t=e;t&&!n(t);)t=t.parentNode;return t||void 0}function Hi(e){if(null!=e.firstChild){var n=document.createRange(),t=window.getSelection();n.setStart(e,1),n.collapse(!0),null==t||t.removeAllRanges(),null==t||t.addRange(n)}else e.focus()}function _i(e,n,t,o){var r=Wi(e);if(r){var i=r.document.activeElement?r.document.activeElement:null;i&&i.isContentEditable&&(i.textContent=t?n:i.textContent+n,Hi(i),o&&o(i))}}function Wi(e){return e&&e.ownerDocument?e.ownerDocument.defaultView:null}function Qi(e){var n=Wi(e),t=null==n?void 0:n.document.activeElement;return!!t&&Ji(t,(function(n){return n===e}))}function Yi(e,n){return Vi(e,(function(e){return e.nodeName===n}))}function Ki(e){return Di(e,"data-type","selectable-key")?rr.key:Di(e,"data-type","selectable-value")?rr.value:Di(e,"data-type","insert-selection-area-inside")?rr.inside:Di(e,"data-type","insert-selection-area-after")?rr.after:rr.multi}function Gi(e){return encodeURIComponent(O(e))}function Zi(e){var n=Vi(e,(function(e){return!(null==e||!e.hasAttribute)&&e.hasAttribute("data-path")})),t=null==n?void 0:n.getAttribute("data-path");return t?q(decodeURIComponent(t)):null}function Xi(e){var n=e.allElements,t=e.currentElement,o=e.direction,r=e.hasPrio,i=void 0===r?function(){return!0}:r,a=e.margin,s=void 0===a?10:a,l=Q(n.filter((function(e){var n=e.getBoundingClientRect();return n.width>0&&n.height>0})),u),c=u(t);function u(e){var n=e.getBoundingClientRect();return{x:n.left+n.width/2,y:n.top+n.height/2,rect:n,element:e}}function d(e,n){var t=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1,o=e.x-n.x,r=(e.y-n.y)*t;return Math.sqrt(o*o+r*r)}var f=function(e){return d(e,c)};if("Left"===o||"Right"===o){var v="Left"===o?l.filter((function(e){return n=c,e.rect.left+s<n.rect.left;var n})):l.filter((function(e){return n=c,e.rect.right>n.rect.right+s;var n})),p=v.filter((function(e