vanilla-jsoneditor
Version:
A web-based tool to view, edit, format, transform, and validate JSON
1 lines • 1.32 MB
JavaScript
var e,t,n,r,i,o,a,s,c,l,u,f,h,d,v,p,m,g,y,b,w,x,k,j,S,C,$,_,O,M,E,A,P,T,R,N,I,D,z,L,B,q,F,V,W,H,U,J,K,G,Q,Y,X,Z,ee,te,ne,re,ie,oe,ae,se,ce,le,ue,fe,he,de,ve,pe,me,ge,ye,be,we,xe,ke,je,Se,Ce,$e,_e,Oe,Me,Ee,Ae,Pe,Te,Re,Ne,Ie,De,ze,Le,Be,qe,Fe,Ve,We,He,Ue,Je,Ke,Ge,Qe,Ye,Xe,Ze,et,tt,nt,rt,it,ot,at,st,ct,lt,ut,ft,ht,dt,vt,pt,mt,gt,yt,bt,wt,xt,kt,jt,St,Ct,$t,_t,Ot,Mt,Et,At,Pt,Tt,Rt,Nt,It,Dt,zt,Lt,Bt,qt,Ft,Vt,Wt,Ht,Ut,Jt,Kt,Gt,Qt,Yt,Xt,Zt,en,tn,nn,rn,on,an,sn,cn,ln,un,fn,hn,dn,vn,pn,mn,gn,yn,bn,wn,xn,kn,jn,Sn,Cn,$n,_n,On,Mn,En,An,Pn,Tn,Rn,Nn,In,Dn,zn,Ln,Bn,qn,Fn,Vn,Wn,Hn,Un,Jn,Kn,Gn,Qn,Yn,Xn,Zn,er,tr,nr,rr,ir,or,ar,sr,cr,lr,ur,fr,hr,dr,vr,pr,mr,gr,yr,br,wr,xr,kr,jr,Sr,Cr,$r,_r,Or,Mr,Er,Ar,Pr,Tr,Rr,Nr,Ir,Dr,zr,Lr,Br,qr,Fr,Vr,Wr,Hr,Ur,Jr,Kr,Gr,Qr,Yr,Xr,Zr,ei,ti,ni,ri,ii,oi,ai,si,ci,li,ui,fi,hi,di,vi=["mainAxis","crossAxis","fallbackPlacements","fallbackStrategy","fallbackAxisSideDirection","flipAlignment"],pi=["mainAxis","crossAxis","limiter"];function mi(e,t){return t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}function gi(){return gi="undefined"!=typeof Reflect&&Reflect.get?Reflect.get.bind():function(e,t,n){var r=function(e,t){for(;!Object.prototype.hasOwnProperty.call(e,t)&&null!==(e=Ti(e)););return e}(e,t);if(r){var i=Object.getOwnPropertyDescriptor(r,t);return i.get?i.get.call(arguments.length<3?e:n):i.value}},gi.apply(this,arguments)}function yi(e,t){if(null==e)return{};var n,r,i=function(e,t){if(null==e)return{};var n,r,i={},o=Object.keys(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||(i[n]=e[n]);return i}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}function bi(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=Fi(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var r=0,i=function(){};return{s:i,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:i}}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 o,a=!0,s=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return a=e.done,e},e:function(e){s=!0,o=e},f:function(){try{a||null==n.return||n.return()}finally{if(s)throw o}}}}function wi(){/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */wi=function(){return t};var e,t={},n=Object.prototype,r=n.hasOwnProperty,i=Object.defineProperty||function(e,t,n){e[t]=n.value},o="function"==typeof Symbol?Symbol:{},a=o.iterator||"@@iterator",s=o.asyncIterator||"@@asyncIterator",c=o.toStringTag||"@@toStringTag";function l(e,t,n){return Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{l({},"")}catch(e){l=function(e,t,n){return e[t]=n}}function u(e,t,n,r){var o=t&&t.prototype instanceof g?t:g,a=Object.create(o.prototype),s=new E(r||[]);return i(a,"_invoke",{value:$(e,n,s)}),a}function f(e,t,n){try{return{type:"normal",arg:e.call(t,n)}}catch(e){return{type:"throw",arg:e}}}t.wrap=u;var h="suspendedStart",d="suspendedYield",v="executing",p="completed",m={};function g(){}function y(){}function b(){}var w={};l(w,a,(function(){return this}));var x=Object.getPrototypeOf,k=x&&x(x(A([])));k&&k!==n&&r.call(k,a)&&(w=k);var j=b.prototype=g.prototype=Object.create(w);function S(e){["next","throw","return"].forEach((function(t){l(e,t,(function(e){return this._invoke(t,e)}))}))}function C(e,t){function n(i,o,a,s){var c=f(e[i],e,o);if("throw"!==c.type){var l=c.arg,u=l.value;return u&&"object"==Hi(u)&&r.call(u,"__await")?t.resolve(u.__await).then((function(e){n("next",e,a,s)}),(function(e){n("throw",e,a,s)})):t.resolve(u).then((function(e){l.value=e,a(l)}),(function(e){return n("throw",e,a,s)}))}s(c.arg)}var o;i(this,"_invoke",{value:function(e,r){function i(){return new t((function(t,i){n(e,r,t,i)}))}return o=o?o.then(i,i):i()}})}function $(t,n,r){var i=h;return function(o,a){if(i===v)throw new Error("Generator is already running");if(i===p){if("throw"===o)throw a;return{value:e,done:!0}}for(r.method=o,r.arg=a;;){var s=r.delegate;if(s){var c=_(s,r);if(c){if(c===m)continue;return c}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if(i===h)throw i=p,r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);i=v;var l=f(t,n,r);if("normal"===l.type){if(i=r.done?p:d,l.arg===m)continue;return{value:l.arg,done:r.done}}"throw"===l.type&&(i=p,r.method="throw",r.arg=l.arg)}}}function _(t,n){var r=n.method,i=t.iterator[r];if(i===e)return n.delegate=null,"throw"===r&&t.iterator.return&&(n.method="return",n.arg=e,_(t,n),"throw"===n.method)||"return"!==r&&(n.method="throw",n.arg=new TypeError("The iterator does not provide a '"+r+"' method")),m;var o=f(i,t.iterator,n.arg);if("throw"===o.type)return n.method="throw",n.arg=o.arg,n.delegate=null,m;var a=o.arg;return a?a.done?(n[t.resultName]=a.value,n.next=t.nextLoc,"return"!==n.method&&(n.method="next",n.arg=e),n.delegate=null,m):a:(n.method="throw",n.arg=new TypeError("iterator result is not an object"),n.delegate=null,m)}function O(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function M(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function E(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(O,this),this.reset(!0)}function A(t){if(t||""===t){var n=t[a];if(n)return n.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var i=-1,o=function n(){for(;++i<t.length;)if(r.call(t,i))return n.value=t[i],n.done=!1,n;return n.value=e,n.done=!0,n};return o.next=o}}throw new TypeError(Hi(t)+" is not iterable")}return y.prototype=b,i(j,"constructor",{value:b,configurable:!0}),i(b,"constructor",{value:y,configurable:!0}),y.displayName=l(b,c,"GeneratorFunction"),t.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===y||"GeneratorFunction"===(t.displayName||t.name))},t.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,b):(e.__proto__=b,l(e,c,"GeneratorFunction")),e.prototype=Object.create(j),e},t.awrap=function(e){return{__await:e}},S(C.prototype),l(C.prototype,s,(function(){return this})),t.AsyncIterator=C,t.async=function(e,n,r,i,o){void 0===o&&(o=Promise);var a=new C(u(e,n,r,i),o);return t.isGeneratorFunction(n)?a:a.next().then((function(e){return e.done?e.value:a.next()}))},S(j),l(j,c,"Generator"),l(j,a,(function(){return this})),l(j,"toString",(function(){return"[object Generator]"})),t.keys=function(e){var t=Object(e),n=[];for(var r in t)n.push(r);return n.reverse(),function e(){for(;n.length;){var r=n.pop();if(r in t)return e.value=r,e.done=!1,e}return e.done=!0,e}},t.values=A,E.prototype={constructor:E,reset:function(t){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(M),!t)for(var n in this)"t"===n.charAt(0)&&r.call(this,n)&&!isNaN(+n.slice(1))&&(this[n]=e)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var n=this;function i(r,i){return s.type="throw",s.arg=t,n.next=r,i&&(n.method="next",n.arg=e),!!i}for(var o=this.tryEntries.length-1;o>=0;--o){var a=this.tryEntries[o],s=a.completion;if("root"===a.tryLoc)return i("end");if(a.tryLoc<=this.prev){var c=r.call(a,"catchLoc"),l=r.call(a,"finallyLoc");if(c&&l){if(this.prev<a.catchLoc)return i(a.catchLoc,!0);if(this.prev<a.finallyLoc)return i(a.finallyLoc)}else if(c){if(this.prev<a.catchLoc)return i(a.catchLoc,!0)}else{if(!l)throw new Error("try statement without catch or finally");if(this.prev<a.finallyLoc)return i(a.finallyLoc)}}}},abrupt:function(e,t){for(var n=this.tryEntries.length-1;n>=0;--n){var i=this.tryEntries[n];if(i.tryLoc<=this.prev&&r.call(i,"finallyLoc")&&this.prev<i.finallyLoc){var o=i;break}}o&&("break"===e||"continue"===e)&&o.tryLoc<=t&&t<=o.finallyLoc&&(o=null);var a=o?o.completion:{};return a.type=e,a.arg=t,o?(this.method="next",this.next=o.finallyLoc,m):this.complete(a)},complete:function(e,t){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&&t&&(this.next=t),m},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.finallyLoc===e)return this.complete(n.completion,n.afterLoc),M(n),m}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.tryLoc===e){var r=n.completion;if("throw"===r.type){var i=r.arg;M(n)}return i}}throw new Error("illegal catch attempt")},delegateYield:function(t,n,r){return this.delegate={iterator:A(t),resultName:n,nextLoc:r},"next"===this.method&&(this.arg=e),m}},t}function xi(e,t,n,r,i,o,a){try{var s=e[o](a),c=s.value}catch(e){return void n(e)}s.done?t(c):Promise.resolve(c).then(r,i)}function ki(e){return function(){var t=this,n=arguments;return new Promise((function(r,i){var o=e.apply(t,n);function a(e){xi(o,r,i,a,s,"next",e)}function s(e){xi(o,r,i,a,s,"throw",e)}a(void 0)}))}}function ji(e,t){return Ci(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,i,o,a,s=[],c=!0,l=!1;try{if(o=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;c=!1}else for(;!(c=(r=o.call(n)).done)&&(s.push(r.value),s.length!==t);c=!0);}catch(e){l=!0,i=e}finally{try{if(!c&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(l)throw i}}return s}}(e,t)||Fi(e,t)||Si()}function Si(){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 Ci(e){if(Array.isArray(e))return e}function $i(e){var t="function"==typeof Map?new Map:void 0;return $i=function(e){if(null===e||(n=e,-1===Function.toString.call(n).indexOf("[native code]")))return e;var n;if("function"!=typeof e)throw new TypeError("Super expression must either be null or a function");if(void 0!==t){if(t.has(e))return t.get(e);t.set(e,r)}function r(){return _i(e,arguments,Ti(this).constructor)}return r.prototype=Object.create(e.prototype,{constructor:{value:r,enumerable:!1,writable:!0,configurable:!0}}),Mi(r,e)},$i(e)}function _i(e,t,n){return _i=Pi()?Reflect.construct.bind():function(e,t,n){var r=[null];r.push.apply(r,t);var i=new(Function.bind.apply(e,r));return n&&Mi(i,n.prototype),i},_i.apply(null,arguments)}function Oi(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&Mi(e,t)}function Mi(e,t){return Mi=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},Mi(e,t)}function Ei(e){var t=Pi();return function(){var n,r=Ti(e);if(t){var i=Ti(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return function(e,t){if(t&&("object"===Hi(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return Ai(e)}(this,n)}}function Ai(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Pi(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}function Ti(e){return Ti=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},Ti(e)}function Ri(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Ni(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Ri(Object(n),!0).forEach((function(t){Li(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Ri(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Ii(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Di(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,Bi(r.key),r)}}function zi(e,t,n){return t&&Di(e.prototype,t),n&&Di(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function Li(e,t,n){return(t=Bi(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Bi(e){var t=function(e,t){if("object"!==Hi(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!==Hi(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===Hi(t)?t:String(t)}function qi(e){return function(e){if(Array.isArray(e))return Wi(e)}(e)||Vi(e)||Fi(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 Fi(e,t){if(e){if("string"==typeof e)return Wi(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Wi(e,t):void 0}}function Vi(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}function Wi(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function Hi(e){return Hi="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},Hi(e)}function Ui(){}var Ji=function(e){return e};function Ki(e,t){for(var n in t)e[n]=t[n];return e}function Gi(e){return e()}function Qi(){return Object.create(null)}function Yi(e){e.forEach(Gi)}function Xi(e){return"function"==typeof e}function Zi(e,t){return e!=e?t==t:e!==t||e&&"object"===Hi(e)||"function"==typeof e}function eo(e,t){return e!=e?t==t:e!==t}function to(e,t,n,r){if(e){var i=no(e,t,n,r);return e[0](i)}}function no(e,t,n,r){return e[1]&&r?Ki(n.ctx.slice(),e[1](r(t))):n.ctx}function ro(e,t,n,r){if(e[2]&&r){var i=e[2](r(n));if(void 0===t.dirty)return i;if("object"===Hi(i)){for(var o=[],a=Math.max(t.dirty.length,i.length),s=0;s<a;s+=1)o[s]=t.dirty[s]|i[s];return o}return t.dirty|i}return t.dirty}function io(e,t,n,r,i,o){if(i){var a=no(t,n,r,o);e.p(a,i)}}function oo(e){if(e.ctx.length>32){for(var t=[],n=e.ctx.length/32,r=0;r<n;r++)t[r]=-1;return t}return-1}function ao(e){var t={};for(var n in e)"$"!==n[0]&&(t[n]=e[n]);return t}function so(e,t){var n={};for(var r in t=new Set(t),e)t.has(r)||"$"===r[0]||(n[r]=e[r]);return n}function co(e){return null==e?"":e}function lo(e){return e&&Xi(e.destroy)?e.destroy:Ui}var uo="undefined"!=typeof window,fo=uo?function(){return window.performance.now()}:function(){return Date.now()},ho=uo?function(e){return requestAnimationFrame(e)}:Ui,vo=new Set;function po(e){vo.forEach((function(t){t.c(e)||(vo.delete(t),t.f())})),0!==vo.size&&ho(po)}var mo="undefined"!=typeof window?window:"undefined"!=typeof globalThis?globalThis:global;function go(e,t){e.appendChild(t)}function yo(e,t,n){var r=bo(e);if(!r.getElementById(t)){var i=Co("style");i.id=t,i.textContent=n,xo(r,i)}}function bo(e){if(!e)return document;var t=e.getRootNode?e.getRootNode():e.ownerDocument;return t&&t.host?t:e.ownerDocument}function wo(e){var t=Co("style");return t.textContent="/* empty */",xo(bo(e),t),t.sheet}function xo(e,t){return go(e.head||e,t),t.sheet}function ko(e,t,n){e.insertBefore(t,n||null)}function jo(e){e.parentNode&&e.parentNode.removeChild(e)}function So(e,t){for(var n=0;n<e.length;n+=1)e[n]&&e[n].d(t)}function Co(e){return document.createElement(e)}function $o(e){return document.createElementNS("http://www.w3.org/2000/svg",e)}function _o(e){return document.createTextNode(e)}function Oo(){return _o(" ")}function Mo(){return _o("")}function Eo(e,t,n,r){return e.addEventListener(t,n,r),function(){return e.removeEventListener(t,n,r)}}function Ao(e){return function(t){return t.preventDefault(),e.call(this,t)}}function Po(e){return function(t){return t.stopPropagation(),e.call(this,t)}}function To(e,t,n){null==n?e.removeAttribute(t):e.getAttribute(t)!==n&&e.setAttribute(t,n)}var Ro=["width","height"];function No(e,t){var n=Object.getOwnPropertyDescriptors(e.__proto__);for(var r in t)null==t[r]?e.removeAttribute(r):"style"===r?e.style.cssText=t[r]:"__value"===r?e.value=e[r]=t[r]:n[r]&&n[r].set&&-1===Ro.indexOf(r)?e[r]=t[r]:To(e,r,t[r])}function Io(e,t){for(var n in t)To(e,n,t[n])}function Do(e,t){t=""+t,e.data!==t&&(e.data=t)}function zo(e,t){e.value=null==t?"":t}function Lo(e,t,n,r){null==n?e.style.removeProperty(t):e.style.setProperty(t,n,r?"important":"")}function Bo(e,t,n){for(var r=0;r<e.options.length;r+=1){var i=e.options[r];if(i.__value===t)return void(i.selected=!0)}n&&void 0===t||(e.selectedIndex=-1)}function qo(e,t,n){e.classList.toggle(t,!!n)}function Fo(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=n.bubbles,i=void 0!==r&&r,o=n.cancelable;return new CustomEvent(e,{detail:t,bubbles:i,cancelable:void 0!==o&&o})}function Vo(e,t){return new e(t)}var Wo,Ho=new Map,Uo=0;function Jo(e,t,n,r,i,o,a){for(var s=arguments.length>7&&void 0!==arguments[7]?arguments[7]:0,c=16.666/r,l="{\n",u=0;u<=1;u+=c){var f=t+(n-t)*o(u);l+=100*u+"%{".concat(a(f,1-f),"}\n")}var h=l+"100% {".concat(a(n,1-n),"}\n}"),d="__svelte_".concat(function(e){for(var t=5381,n=e.length;n--;)t=(t<<5)-t^e.charCodeAt(n);return t>>>0}(h),"_").concat(s),v=bo(e),p=Ho.get(v)||function(e,t){var n={stylesheet:wo(t),rules:{}};return Ho.set(e,n),n}(v,e),m=p.stylesheet,g=p.rules;g[d]||(g[d]=!0,m.insertRule("@keyframes ".concat(d," ").concat(h),m.cssRules.length));var y=e.style.animation||"";return e.style.animation="".concat(y?"".concat(y,", "):"").concat(d," ").concat(r,"ms linear ").concat(i,"ms 1 both"),Uo+=1,d}function Ko(e,t){var n=(e.style.animation||"").split(", "),r=n.filter(t?function(e){return e.indexOf(t)<0}:function(e){return-1===e.indexOf("__svelte")}),i=n.length-r.length;i&&(e.style.animation=r.join(", "),(Uo-=i)||ho((function(){Uo||(Ho.forEach((function(e){var t=e.stylesheet.ownerNode;t&&jo(t)})),Ho.clear())})))}function Go(e){Wo=e}function Qo(){if(!Wo)throw new Error("Function called outside component initialization");return Wo}function Yo(e){Qo().$$.on_mount.push(e)}function Xo(e){Qo().$$.on_destroy.push(e)}function Zo(){var e=Qo();return function(t,n){var r=(arguments.length>2&&void 0!==arguments[2]?arguments[2]:{}).cancelable,i=void 0!==r&&r,o=e.$$.callbacks[t];if(o){var a=Fo(t,n,{cancelable:i});return o.slice().forEach((function(t){t.call(e,a)})),!a.defaultPrevented}return!0}}function ea(e,t){return Qo().$$.context.set(e,t),t}function ta(e){return Qo().$$.context.get(e)}function na(e,t){var n=this,r=e.$$.callbacks[t.type];r&&r.slice().forEach((function(e){return e.call(n,t)}))}var ra=[],ia=[],oa=[],aa=[],sa=Promise.resolve(),ca=!1;function la(){ca||(ca=!0,sa.then(ma))}function ua(){return la(),sa}function fa(e){oa.push(e)}function ha(e){aa.push(e)}var da,va=new Set,pa=0;function ma(){if(0===pa){var e=Wo;do{try{for(;pa<ra.length;){var t=ra[pa];pa++,Go(t),ga(t.$$)}}catch(e){throw ra.length=0,pa=0,e}for(Go(null),ra.length=0,pa=0;ia.length;)ia.pop()();for(var n=0;n<oa.length;n+=1){var r=oa[n];va.has(r)||(va.add(r),r())}oa.length=0}while(ra.length);for(;aa.length;)aa.pop()();ca=!1,va.clear(),Go(e)}}function ga(e){if(null!==e.fragment){e.update(),Yi(e.before_update);var t=e.dirty;e.dirty=[-1],e.fragment&&e.fragment.p(e.ctx,t),e.after_update.forEach(fa)}}function ya(e,t,n){e.dispatchEvent(Fo("".concat(t?"intro":"outro").concat(n)))}var ba,wa=new Set;function xa(){ba={r:0,c:[],p:ba}}function ka(){ba.r||Yi(ba.c),ba=ba.p}function ja(e,t){e&&e.i&&(wa.delete(e),e.i(t))}function Sa(e,t,n,r){if(e&&e.o){if(wa.has(e))return;wa.add(e),ba.c.push((function(){wa.delete(e),r&&(n&&e.d(1),r())})),e.o(t)}else r&&r()}var Ca={duration:0};function $a(e,t,n,r){var i,o=t(e,n,{direction:"both"}),a=r?0:1,s=null,c=null,l=null;function u(){l&&Ko(e,l)}function f(e,t){var n=e.b-a;return t*=Math.abs(n),{a:a,b:e.b,d:n,duration:t,start:e.start,end:e.start+t,group:e.group}}function h(t){var n,r=o||Ca,h=r.delay,d=void 0===h?0:h,v=r.duration,p=void 0===v?300:v,m=r.easing,g=void 0===m?Ji:m,y=r.tick,b=void 0===y?Ui:y,w=r.css,x={start:fo()+d,b:t};t||(x.group=ba,ba.r+=1),"inert"in e&&(t?void 0!==i&&(e.inert=i):(i=e.inert,e.inert=!0)),s||c?c=x:(w&&(u(),l=Jo(e,a,t,p,d,g,w)),t&&b(0,1),s=f(x,p),fa((function(){return ya(e,t,"start")})),n=function(t){if(c&&t>c.start&&(s=f(c,p),c=null,ya(e,s.b,"start"),w&&(u(),l=Jo(e,a,s.b,s.duration,0,g,o.css))),s)if(t>=s.end)b(a=s.b,1-a),ya(e,s.b,"end"),c||(s.b?u():--s.group.r||Yi(s.group.c)),s=null;else if(t>=s.start){var n=t-s.start;a=s.a+s.d*g(n/s.duration),b(a,1-a)}return!(!s&&!c)},0===vo.size&&ho(po),new Promise((function(e){vo.add({c:n,f:e})})))}return{run:function(e){Xi(o)?(da||(da=Promise.resolve()).then((function(){da=null})),da).then((function(){o=o({direction:e?"in":"out"}),h(e)})):h(e)},end:function(){u(),s=c=null}}}function _a(e){return void 0!==(null==e?void 0:e.length)?e:Array.from(e)}function Oa(e,t){e.d(1),t.delete(e.key)}function Ma(e,t){Sa(e,1,1,(function(){t.delete(e.key)}))}function Ea(e,t,n,r,i,o,a,s,c,l,u,f){for(var h=e.length,d=o.length,v=h,p={};v--;)p[e[v].key]=v;var m=[],g=new Map,y=new Map,b=[];v=d;for(var w=function(){var e=f(i,o,v),s=n(e),c=a.get(s);c?r&&b.push((function(){return c.p(e,t)})):(c=l(s,e)).c(),g.set(s,m[v]=c),s in p&&y.set(s,Math.abs(v-p[s]))};v--;)w();var x=new Set,k=new Set;function j(e){ja(e,1),e.m(s,u),a.set(e.key,e),u=e.first,d--}for(;h&&d;){var S=m[d-1],C=e[h-1],$=S.key,_=C.key;S===C?(u=S.first,h--,d--):g.has(_)?!a.has($)||x.has($)?j(S):k.has(_)?h--:y.get($)>y.get(_)?(k.add($),j(S)):(x.add(_),h--):(c(C,a),h--)}for(;h--;){var O=e[h];g.has(O.key)||c(O,a)}for(;d;)j(m[d-1]);return Yi(b),m}function Aa(e,t){for(var n={},r={},i={$$scope:1},o=e.length;o--;){var a=e[o],s=t[o];if(s){for(var c in a)c in s||(r[c]=1);for(var l in s)i[l]||(n[l]=s[l],i[l]=1);e[o]=s}else for(var u in a)i[u]=1}for(var f in r)f in n||(n[f]=void 0);return n}function Pa(e){return"object"===Hi(e)&&null!==e?e:{}}function Ta(e,t,n){var r=e.$$.props[t];void 0!==r&&(e.$$.bound[r]=n,n(e.$$.ctx[r]))}function Ra(e){e&&e.c()}function Na(e,t,n){var r=e.$$,i=r.fragment,o=r.after_update;i&&i.m(t,n),fa((function(){var t,n=e.$$.on_mount.map(Gi).filter(Xi);e.$$.on_destroy?(t=e.$$.on_destroy).push.apply(t,qi(n)):Yi(n);e.$$.on_mount=[]})),o.forEach(fa)}function Ia(e,t){var n,r,i,o=e.$$;null!==o.fragment&&(n=o.after_update,r=[],i=[],oa.forEach((function(e){return-1===n.indexOf(e)?r.push(e):i.push(e)})),i.forEach((function(e){return e()})),oa=r,Yi(o.on_destroy),o.fragment&&o.fragment.d(t),o.on_destroy=o.fragment=null,o.ctx=[])}function Da(e,t,n,r,i,o){var a=arguments.length>6&&void 0!==arguments[6]?arguments[6]:null,s=arguments.length>7&&void 0!==arguments[7]?arguments[7]:[-1],c=Wo;Go(e);var l=e.$$={fragment:null,ctx:[],props:o,update:Ui,not_equal:i,bound:Qi(),on_mount:[],on_destroy:[],on_disconnect:[],before_update:[],after_update:[],context:new Map(t.context||(c?c.$$.context:[])),callbacks:Qi(),dirty:s,skip_bound:!1,root:t.target||c.$$.root};a&&a(l.root);var u=!1;if(l.ctx=n?n(e,t.props||{},(function(t,n){var r=!(arguments.length<=2)&&arguments.length-2?arguments.length<=2?void 0:arguments[2]:n;return l.ctx&&i(l.ctx[t],l.ctx[t]=r)&&(!l.skip_bound&&l.bound[t]&&l.bound[t](r),u&&function(e,t){-1===e.$$.dirty[0]&&(ra.push(e),la(),e.$$.dirty.fill(0)),e.$$.dirty[t/31|0]|=1<<t%31}(e,t)),n})):[],l.update(),u=!0,Yi(l.before_update),l.fragment=!!r&&r(l.ctx),t.target){if(t.hydrate){var f=function(e){return Array.from(e.childNodes)}(t.target);l.fragment&&l.fragment.l(f),f.forEach(jo)}else l.fragment&&l.fragment.c();t.intro&&ja(e.$$.fragment),Na(e,t.target,t.anchor),ma()}Go(c)}var za=function(){function e(){Ii(this,e),Li(this,"$$",void 0),Li(this,"$$set",void 0)}return zi(e,[{key:"$destroy",value:function(){Ia(this,1),this.$destroy=Ui}},{key:"$on",value:function(e,t){if(!Xi(t))return Ui;var n=this.$$.callbacks[e]||(this.$$.callbacks[e]=[]);return n.push(t),function(){var e=n.indexOf(t);-1!==e&&n.splice(e,1)}}},{key:"$set",value:function(e){var t;this.$$set&&(t=e,0!==Object.keys(t).length)&&(this.$$.skip_bound=!0,this.$$set(e),this.$$.skip_bound=!1)}}]),e}();function La(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:function(e){var t=function(e){try{if("undefined"!=typeof window&&void 0!==window.localStorage)return window.localStorage[e]}catch(e){}}("debug");return null!=t&&t.endsWith("*")?e.startsWith(t.slice(0,-1)):e===t}(e);if(!t)return Ba;var n=function(e){for(var t=0,n=0;n<e.length;n++)t=(t<<5)-t+e.charCodeAt(n),t|=0;return qa[Math.abs(t)%qa.length]}(e);return function(){for(var t,r=arguments.length,i=new Array(r),o=0;o<r;o++)i[o]=arguments[o];(t=console).log.apply(t,["%c".concat(e),"color:".concat(n)].concat(i))}}function Ba(){}"undefined"!=typeof window&&(window.__svelte||(window.__svelte={v:new Set})).v.add("4");var qa=["#0000CC","#0099FF","#009400","#8dd200","#CCCC00","#CC9933","#ae04e7","#ff35d7","#FF3333","#FF6600","#FF9933","#FFCC33"];function Fa(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.delay,r=void 0===n?0:n,i=t.duration,o=void 0===i?400:i,a=t.easing,s=void 0===a?Ji:a,c=+getComputedStyle(e).opacity;return{delay:r,duration:o,easing:s,css:function(e){return"opacity: ".concat(e*c)}}}var Va=mo.window;function Wa(e){yo(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 Ha(e){var t,n,r,i,o,a,s,c,l,u,f,h,d,v,p,m,g,y,b=e[1].closeButton&&Ua(e),w=e[2];return w&&(a=Vo(w,{})),{c:function(){t=Co("div"),n=Co("div"),r=Co("div"),b&&b.c(),i=Oo(),o=Co("div"),a&&Ra(a.$$.fragment),To(o,"class",s=co(e[1].classContent)+" svelte-n7cvum"),To(o,"style",e[9]),qo(o,"content",!e[0]),To(r,"class",c=co(e[1].classWindow)+" svelte-n7cvum"),To(r,"role","dialog"),To(r,"aria-modal","true"),To(r,"aria-label",l=e[1].ariaLabelledBy?null:e[1].ariaLabel||null),To(r,"aria-labelledby",u=e[1].ariaLabelledBy||null),To(r,"style",e[8]),qo(r,"window",!e[0]),To(n,"class",h=co(e[1].classWindowWrap)+" svelte-n7cvum"),To(n,"style",e[7]),qo(n,"wrap",!e[0]),To(t,"aria-hidden","true"),To(t,"id",d=e[1].id),To(t,"class",v=co(e[1].classBg)+" svelte-n7cvum"),To(t,"style",e[6]),qo(t,"bg",!e[0])},m:function(s,c){ko(s,t,c),go(t,n),go(n,r),b&&b.m(r,null),go(r,i),go(r,o),a&&Na(a,o,null),e[50](r),e[51](n),e[52](t),m=!0,g||(y=[Eo(r,"introstart",(function(){Xi(e[13])&&e[13].apply(this,arguments)})),Eo(r,"outrostart",(function(){Xi(e[14])&&e[14].apply(this,arguments)})),Eo(r,"introend",(function(){Xi(e[15])&&e[15].apply(this,arguments)})),Eo(r,"outroend",(function(){Xi(e[16])&&e[16].apply(this,arguments)})),Eo(t,"mousedown",e[20]),Eo(t,"mouseup",e[21])],g=!0)},p:function(f,p){if((e=f)[1].closeButton?b?(b.p(e,p),2&p[0]&&ja(b,1)):((b=Ua(e)).c(),ja(b,1),b.m(r,i)):b&&(xa(),Sa(b,1,1,(function(){b=null})),ka()),4&p[0]&&w!==(w=e[2])){if(a){xa();var g=a;Sa(g.$$.fragment,1,0,(function(){Ia(g,1)})),ka()}w?(Ra((a=Vo(w,{})).$$.fragment),ja(a.$$.fragment,1),Na(a,o,null)):a=null}(!m||2&p[0]&&s!==(s=co(e[1].classContent)+" svelte-n7cvum"))&&To(o,"class",s),(!m||512&p[0])&&To(o,"style",e[9]),(!m||3&p[0])&&qo(o,"content",!e[0]),(!m||2&p[0]&&c!==(c=co(e[1].classWindow)+" svelte-n7cvum"))&&To(r,"class",c),(!m||2&p[0]&&l!==(l=e[1].ariaLabelledBy?null:e[1].ariaLabel||null))&&To(r,"aria-label",l),(!m||2&p[0]&&u!==(u=e[1].ariaLabelledBy||null))&&To(r,"aria-labelledby",u),(!m||256&p[0])&&To(r,"style",e[8]),(!m||3&p[0])&&qo(r,"window",!e[0]),(!m||2&p[0]&&h!==(h=co(e[1].classWindowWrap)+" svelte-n7cvum"))&&To(n,"class",h),(!m||128&p[0])&&To(n,"style",e[7]),(!m||3&p[0])&&qo(n,"wrap",!e[0]),(!m||2&p[0]&&d!==(d=e[1].id))&&To(t,"id",d),(!m||2&p[0]&&v!==(v=co(e[1].classBg)+" svelte-n7cvum"))&&To(t,"class",v),(!m||64&p[0])&&To(t,"style",e[6]),(!m||3&p[0])&&qo(t,"bg",!e[0])},i:function(n){m||(ja(b),a&&ja(a.$$.fragment,n),n&&fa((function(){m&&(f||(f=$a(r,e[12],e[1].transitionWindowProps,!0)),f.run(1))})),n&&fa((function(){m&&(p||(p=$a(t,e[11],e[1].transitionBgProps,!0)),p.run(1))})),m=!0)},o:function(n){Sa(b),a&&Sa(a.$$.fragment,n),n&&(f||(f=$a(r,e[12],e[1].transitionWindowProps,!1)),f.run(0)),n&&(p||(p=$a(t,e[11],e[1].transitionBgProps,!1)),p.run(0)),m=!1},d:function(n){n&&jo(t),b&&b.d(),a&&Ia(a),e[50](null),n&&f&&f.end(),e[51](null),e[52](null),n&&p&&p.end(),g=!1,Yi(y)}}}function Ua(e){var t,n,r,i,o,a=[Ka,Ja],s=[];function c(e,n){return 2&n[0]&&(t=null),null==t&&(t=!!e[17](e[1].closeButton)),t?0:1}return n=c(e,[-1,-1,-1]),r=s[n]=a[n](e),{c:function(){r.c(),i=Mo()},m:function(e,t){s[n].m(e,t),ko(e,i,t),o=!0},p:function(e,t){var o=n;(n=c(e,t))===o?s[n].p(e,t):(xa(),Sa(s[o],1,1,(function(){s[o]=null})),ka(),(r=s[n])?r.p(e,t):(r=s[n]=a[n](e)).c(),ja(r,1),r.m(i.parentNode,i))},i:function(e){o||(ja(r),o=!0)},o:function(e){Sa(r),o=!1},d:function(e){e&&jo(i),s[n].d(e)}}}function Ja(e){var t,n,r,i;return{c:function(){To(t=Co("button"),"class",n=co(e[1].classCloseButton)+" svelte-n7cvum"),To(t,"aria-label","Close modal"),To(t,"style",e[10]),To(t,"type","button"),qo(t,"close",!e[0])},m:function(n,o){ko(n,t,o),r||(i=Eo(t,"click",e[18]),r=!0)},p:function(e,r){2&r[0]&&n!==(n=co(e[1].classCloseButton)+" svelte-n7cvum")&&To(t,"class",n),1024&r[0]&&To(t,"style",e[10]),3&r[0]&&qo(t,"close",!e[0])},i:Ui,o:Ui,d:function(e){e&&jo(t),r=!1,i()}}}function Ka(e){var t,n,r,i=e[1].closeButton;function o(e,t){return{props:{onClose:e[18]}}}return i&&(t=Vo(i,o(e))),{c:function(){t&&Ra(t.$$.fragment),n=Mo()},m:function(e,i){t&&Na(t,e,i),ko(e,n,i),r=!0},p:function(e,r){if(2&r[0]&&i!==(i=e[1].closeButton)){if(t){xa();var a=t;Sa(a.$$.fragment,1,0,(function(){Ia(a,1)})),ka()}i?(Ra((t=Vo(i,o(e))).$$.fragment),ja(t.$$.fragment,1),Na(t,n.parentNode,n)):t=null}},i:function(e){r||(t&&ja(t.$$.fragment,e),r=!0)},o:function(e){t&&Sa(t.$$.fragment,e),r=!1},d:function(e){e&&jo(n),t&&Ia(t,e)}}}function Ga(e){var t,n,r,i,o=e[2]&&Ha(e),a=e[49].default,s=to(a,e,e[48],null);return{c:function(){o&&o.c(),t=Oo(),s&&s.c()},m:function(a,c){o&&o.m(a,c),ko(a,t,c),s&&s.m(a,c),n=!0,r||(i=Eo(Va,"keydown",e[19]),r=!0)},p:function(e,r){e[2]?o?(o.p(e,r),4&r[0]&&ja(o,1)):((o=Ha(e)).c(),ja(o,1),o.m(t.parentNode,t)):o&&(xa(),Sa(o,1,1,(function(){o=null})),ka()),s&&s.p&&(!n||131072&r[1])&&io(s,a,e,e[48],n?ro(a,e[48],r,null):oo(e[48]),null)},i:function(e){n||(ja(o),ja(s,e),n=!0)},o:function(e){Sa(o),Sa(s,e),n=!1},d:function(e){e&&jo(t),o&&o.d(e),s&&s.d(e),r=!1,i()}}}function Qa(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return function(n){return new e(Ni(Ni({},n),{},{props:Ni(Ni({},t),n.props)}))}}function Ya(e,t,n){var r,i,o,a,s,c,l,u,f,h,d,v,p,m,g,y=t.$$slots,b=void 0===y?{}:y,w=t.$$scope,x=Zo(),k=ea,j=t.isTabbable,S=void 0===j?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)}:j,C=t.show,$=void 0===C?null:C,_=t.id,O=void 0===_?null:_,M=t.key,E=void 0===M?"simple-modal":M,A=t.ariaLabel,P=void 0===A?null:A,T=t.ariaLabelledBy,R=void 0===T?null:T,N=t.closeButton,I=void 0===N||N,D=t.closeOnEsc,z=void 0===D||D,L=t.closeOnOuterClick,B=void 0===L||L,q=t.styleBg,F=void 0===q?{}:q,V=t.styleWindowWrap,W=void 0===V?{}:V,H=t.styleWindow,U=void 0===H?{}:H,J=t.styleContent,K=void 0===J?{}:J,G=t.styleCloseButton,Q=void 0===G?{}:G,Y=t.classBg,X=void 0===Y?null:Y,Z=t.classWindowWrap,ee=void 0===Z?null:Z,te=t.classWindow,ne=void 0===te?null:te,re=t.classContent,ie=void 0===re?null:re,oe=t.classCloseButton,ae=void 0===oe?null:oe,se=t.unstyled,ce=void 0!==se&&se,le=t.setContext,ue=void 0===le?k:le,fe=t.transitionBg,he=void 0===fe?Fa:fe,de=t.transitionBgProps,ve=void 0===de?{duration:250}:de,pe=t.transitionWindow,me=void 0===pe?he:pe,ge=t.transitionWindowProps,ye=void 0===ge?ve:ge,be=t.disableFocusTrap,we=void 0!==be&&be,xe={id:O,ariaLabel:P,ariaLabelledBy:R,closeButton:I,closeOnEsc:z,closeOnOuterClick:B,styleBg:F,styleWindowWrap:W,styleWindow:U,styleContent:K,styleCloseButton:Q,classBg:X,classWindowWrap:ee,classWindow:ne,classContent:ie,classCloseButton:ae,transitionBg:he,transitionBgProps:ve,transitionWindow:me,transitionWindowProps:ye,disableFocusTrap:we,isTabbable:S,unstyled:ce},ke=Ni({},xe),je=null,Se=function(e){return e?Object.keys(e).reduce((function(t,n){return"".concat(t,"; ").concat(function(e){return e.replace(/([a-zA-Z])(?=[A-Z])/g,"$1-").toLowerCase()}(n),": ").concat(e[n])}),""):""},Ce=function(e){return!!(e&&e.constructor&&e.call&&e.apply)},$e=function(){},_e=$e,Oe=$e,Me=$e,Ee=$e,Ae=function(e){var t=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};n(2,je=Qa(e,arguments.length>1&&void 0!==arguments[1]?arguments[1]:{})),n(1,ke=Ni(Ni({},xe),t)),n(6,s=Se(Object.assign({},{width:window.innerWidth,height:window.innerHeight},ke.styleBg))),n(7,c=Se(ke.styleWindowWrap)),n(8,l=Se(ke.styleWindow)),n(9,u=Se(ke.styleContent)),n(10,f=Se(ke.styleCloseButton)),n(11,h=ke.transitionBg),n(12,d=ke.transitionWindow),Te(),n(13,_e=function(e){r.onOpen&&r.onOpen(e),x("open"),x("opening")}),n(14,Oe=function(e){r.onClose&&r.onClose(e),x("close"),x("closing")}),n(15,Me=function(e){r.onOpened&&r.onOpened(e),x("opened")}),n(16,Ee=function(e){r.onClosed&&r.onClosed(e),x("closed")})},Pe=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};je&&(n(14,Oe=e.onClose||Oe),n(16,Ee=e.onClosed||Ee),n(2,je=null),Re())},Te=function(){a=window.scrollY,v=document.body.style.position,p=document.body.style.overflow,m=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%"},Re=function(){document.body.style.position=v||"",document.body.style.top="",document.body.style.overflow=p||"",document.body.style.width=m||"",window.scrollTo({top:a,left:0,behavior:"instant"})};ue(E,{open:Ae,close:Pe});var Ne=!1;return Xo((function(){Ne&&Pe()})),Yo((function(){n(47,Ne=!0)})),e.$$set=function(e){"isTabbable"in e&&n(22,S=e.isTabbable),"show"in e&&n(23,$=e.show),"id"in e&&n(24,O=e.id),"key"in e&&n(25,E=e.key),"ariaLabel"in e&&n(26,P=e.ariaLabel),"ariaLabelledBy"in e&&n(27,R=e.ariaLabelledBy),"closeButton"in e&&n(28,I=e.closeButton),"closeOnEsc"in e&&n(29,z=e.closeOnEsc),"closeOnOuterClick"in e&&n(30,B=e.closeOnOuterClick),"styleBg"in e&&n(31,F=e.styleBg),"styleWindowWrap"in e&&n(32,W=e.styleWindowWrap),"styleWindow"in e&&n(33,U=e.styleWindow),"styleContent"in e&&n(34,K=e.styleContent),"styleCloseButton"in e&&n(35,Q=e.styleCloseButton),"classBg"in e&&n(36,X=e.classBg),"classWindowWrap"in e&&n(37,ee=e.classWindowWrap),"classWindow"in e&&n(38,ne=e.classWindow),"classContent"in e&&n(39,ie=e.classContent),"classCloseButton"in e&&n(40,ae=e.classCloseButton),"unstyled"in e&&n(0,ce=e.unstyled),"setContext"in e&&n(41,ue=e.setContext),"transitionBg"in e&&n(42,he=e.transitionBg),"transitionBgProps"in e&&n(43,ve=e.transitionBgProps),"transitionWindow"in e&&n(44,me=e.transitionWindow),"transitionWindowProps"in e&&n(45,ye=e.transitionWindowProps),"disableFocusTrap"in e&&n(46,we=e.disableFocusTrap),"$$scope"in e&&n(48,w=e.$$scope)},e.$$.update=function(){8388608&e.$$.dirty[0]|65536&e.$$.dirty[1]&&Ne&&(Ce($)?Ae($):Pe())},[ce,ke,je,r,i,o,s,c,l,u,f,h,d,_e,Oe,Me,Ee,Ce,Pe,function(e){if(ke.closeOnEsc&&je&&"Escape"===e.key&&(e.preventDefault(),Pe()),je&&"Tab"===e.key&&!ke.disableFocusTrap){var t=o.querySelectorAll("*"),n=Array.from(t).filter(ke.isTabbable).sort((function(e,t){return e.tabIndex-t.tabIndex})),r=n.indexOf(document.activeElement);-1===r&&e.shiftKey&&(r=0),r+=n.length+(e.shiftKey?-1:1),n[r%=n.length].focus(),e.preventDefault()}},function(e){!ke.closeOnOuterClick||e.target!==r&&e.target!==i||(g=e.target)},function(e){ke.closeOnOuterClick&&e.target===g&&(e.preventDefault(),Pe())},S,$,O,E,P,R,I,z,B,F,W,U,K,Q,X,ee,ne,ie,ae,ue,he,ve,me,ye,we,Ne,w,b,function(e){ia[e?"unshift":"push"]((function(){n(5,o=e)}))},function(e){ia[e?"unshift":"push"]((function(){n(4,i=e)}))},function(e){ia[e?"unshift":"push"]((function(){n(3,r=e)}))}]}var Xa,Za,es,ts,ns,rs,is=function(e){Oi(n,za);var t=Ei(n);function n(e){var r;return Ii(this,n),Da(Ai(r=t.call(this)),e,Ya,Ga,Zi,{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},Wa,[-1,-1,-1]),r}return zi(n)}();!function(e){e.text="text",e.tree="tree",e.table="table"}(Xa||(Xa={})),function(e){e.after="after",e.inside="inside",e.key="key",e.value="value",e.multi="multi",e.text="text"}(Za||(Za={})),function(e){e.after="after",e.key="key",e.value="value",e.inside="inside"}(es||(es={})),function(e){e.info="info",e.warning="warning",e.error="error"}(ts||(ts={})),function(e){e.key="key",e.value="value"}(ns||(ns={})),function(e){e.asc="asc",e.desc="desc"}(rs||(rs={}));var os=50,as=200,ss=400,cs=1200,ls=1e3,us=100,fs=100,hs=2e4,ds=[{start:0,end:us}],vs=104857600,ps=1048576,ms=10485760,gs=10240,ys={closeButton:!1,classBg:"jse-modal-bg",classWindow:"jse-modal-window",classWindowWrap:"jse-modal-window-wrap",classContent:"jse-modal-container"},bs=Ni(Ni({},ys),{},{classWindow:"jse-modal-window jse-modal-window-sort"}),ws=Ni(Ni({},ys),{},{classWindow:"jse-modal-window jse-modal-window-transform"}),xs=Ni(Ni({},ys),{},{classWindow:"jse-modal-window jse-modal-window-jsoneditor"}),ks="Insert or paste contents, enter [ insert a new array, enter { to insert a new object, or start typing to insert a new value",js="Open context menu (Click here, right click on the selection, or use the context menu button or Ctrl+Q)",Ss="hover-insert-inside",Cs="hover-insert-after",$s="hover-collection",_s="valid",Os="repairable",Ms=336,Es=260,As="NO",Ps="SELF",Ts="NEXT_INSIDE",Rs=(Li(e={},rs.asc,"ascending"),Li(e,rs.desc,"descending"),e),Ns=0;function Is(){return++Ns}function Ds(e){return Ds="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},Ds(e)}function zs(e){return Array.isArray(e)}function Ls(e){return null!==e&&"object"===Ds(e)&&e.constructor===Object}function Bs(e){return!(!e||"object"!==Ds(e))&&"add"===e.op}function qs(e){return!(!e||"object"!==Ds(e))&&"remove"===e.op}function Fs(e){return!(!e||"object"!==Ds(e))&&"replace"===e.op}function Vs(e){return!(!e||"object"!==Ds(e))&&"copy"===e.op}function Ws(e){return!(!e||"object"!==Ds(e))&&"move"===e.op}function Hs(e){return Hs="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},Hs(e)}function Us(e,t){return e===t}function Js(e){return e.slice(0,e.length-1)}function Ks(e){return"object"===Hs(e)&&null!==e}function Gs(e){return Gs="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},Gs(e)}function Qs(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Ys(e,t,n){return(t=function(e){var t=function(e,t){if("object"!==Gs(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!==Gs(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===Gs(t)?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Xs(e){if(zs(e)){var t=e.slice();return Object.getOwnPropertySymbols(e).forEach((function(n){t[n]=e[n]})),t}if(Ls(e)){var n=function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Qs(Object(n),!0).forEach((function(t){Ys(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Qs(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({},e);return Object.getOwnPropertySymbols(e).forEach((function(t){n[t]=e[t]})),n}return e}function Zs(e,t,n){if(e[t]===n)return e;var r=Xs(e);return r[t]=n,r}function ec(e,t){for(var n=e,r=0;r<t.length;)n=Ls(n)?n[t[r]]:zs(n)?n[parseInt(t[r])]:void 0,r++;return n}function tc(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(0===t.length)return n;var i=t[0],o=tc(e?e[i]:void 0,t.slice(1),n,r);if(Ls(e)||zs(e))return Zs(e,i,o);if(r){var a=nc.test(i)?[]:{};return a[i]=o,a}throw new Error("Path does not exist")}var nc=/^\d+$/;function rc(e,t,n){if(0===t.length)return n(e);if(!Ks(e))throw new Error("Path doesn't exist");var r=t[0];return Zs(e,r,rc(e[r],t.slice(1),n))}function ic(e,t){if(0===t.length)return e;if(!Ks(e))throw new Error("Path does not exist");if(1===t.length){var n=t[0];if(n in e){var r=Xs(e);return zs(r)&&r.splice(parseInt(n),1),Ls(r)&&delete r[n],r}return e}var i=t[0];return Zs(e,i,ic(e[i],t.slice(1)))}function oc(e,t,n){var r=t.slice(0,t.length-1),i=t[t.length-1];return rc(e,r,(function(e){if(!Array.isArray(e))throw new TypeError("Array expected at path "+JSON.stringify(r));var t=Xs(e);return t.splice(parseInt(i),0,n),t}))}function ac(e,t){return void 0!==e&&(0===t.length||null!==e&&ac(e[t[0]],t.slice(1)))}function sc(e){var t=e.split("/");return t.shift(),t.map((function(e){return e.replace(/~1/g,"/").replace(/~0/g,"~")}))}function cc(e){return e.map(lc).join("")}function lc(e){return"/"+String(e).replace(/~/g,"~0").replace(/\//g,"~1")}function uc(e,t){return e+lc(t)}function fc(e,t){return e.startsWith(t)&&(e.length===t.length||"/"===e[t.length])}function hc(e,t,n){for(var r=e,i=0;i<t.length;i++){wc(t[i]);var o=t[i];if(n&&n.before){var a=n.before(r,o);if(void 0!==a){if(void 0!==a.document&&(r=a.document),void 0!==a.json)throw new Error('Deprecation warning: returned object property ".json" has been renamed to ".document"');void 0!==a.operation&&(o=a.operation)}}var s=r,c=xc(r,o.path);if("add"===o.op)r=pc(r,c,o.value);else if("remove"===o.op)r=vc(r,c);else if("replace"===o.op)r=dc(r,c,o.value);else if("copy"===o.op)r=mc(r,c,kc(o.from));else if("move"===o.op)r=gc(r,c,kc(o.from));else{if("test"!==o.op)throw new Error("Unknown JSONPatch operation "+JSON.stringify(o));yc(r,c,o.value)}if(n&&n.after){var l=n.after(r,o,s);void 0!==l&&(r=l)}}return r}function dc(e,t,n){return tc(e,t,n)}function vc(e,t){return ic(e,t)}function pc(e,t,n){return bc(e,t)?oc(e,t,n):tc(e,t,n)}function mc(e,t,n){var r=ec(e,n);return bc(e,t)?oc(e,t,r):tc(e,t,ec(e,n))}function gc(e,t,n){var r=ec(e,n),i=ic(e,n);return bc(i,t)?oc(i,t,r):tc(i,t,r)}function yc(e,t,n){if(void 0===n)throw new Error('Test failed: no value provided (path: "'.concat(cc(t),'")'));if(!ac(e,t))throw new Error('Test failed: path not found (path: "'.concat(cc(t),'")'));if(!function(e,t){return JSON.stringify(e)===JSON.stringify(t)}(ec(e,t),n))throw new Error('Test failed, value differs (path: "'.concat(cc(t),'")'))}function bc(e,t){if(0===t.length)return!1;var n=ec(e,Js(t));return Array.isArray(n)}function wc(e){if(!["add","remove","replace","copy","move","test"].includes(e.op))throw new Error("Unknown JSONPatch op "+JSON.stringify(e.op));if("string"!=typeof e.path)throw new Error('Required property "path" missing or not a string in operation '+JSON.stringify(e));if(("copy"===e.op||"move"===e.op)&&"string"!=typeof e.from)throw new Error('Required property "from" missing or not a string in operation '+JSON.stringify(e))}function xc(e,t){return function(e,t){if("-"!==function(e){return e[e.length-1]}(t))return t;var n=Js(t),r=ec(e,n);return n.concat(r.length)}(e,sc(t))}function kc(e){return sc(e)}function jc(e){return function(e){if(Array.isArray(e))return Sc(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(!e)return;if("string"==typeof e)return Sc(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return Sc(e,t)}(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 Sc(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function Cc(e,t,n){var r=[];return hc(e,t,{before:function(e,t){var i,o,a=xc(e,t.path);if("add"===t.op)i=Oc(e,a);else if("remove"===t.op)i=_c(e,a);else if("replace"===t.op)i=$c(e,a);else if("copy"===t.op)i=function(e,t){return Oc(e,t)}(e,a);else if("move"===t.op)i=function(e,t,n){if(t.length<n.length&&function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:Us;if(e.length<t.length)return!1;for(var r=0;r<t.length;r++)if(!n(e[r],t[r]))return!1;return!0}(n,t))return[{op:"replace",path:cc(t),value:e}];var r={op:"move",from:cc(t),path:cc(n)};return!bc(e,t)&&ac(e,t)?[r].concat(jc(_c(e,t))):[r]}(e,a,kc(t.from));else{if("test"!==t.op)throw new Error("Unknown JSONPatch operation "+JSON.stringify(t));i=[]}if(n&&n.before){var s=n.before(e,t,i);if(s&&s.revertOperations&&(i=s.revertOperations),s&&s.document&&(o=s.document),s&&s.json)throw new Error('Deprecation warning: returned object property ".json" has been renamed to ".document"')}if(r=i.concat(r),void 0!==o)return{document:o}}}),r}function $c(e,t){return[{op:"replace",path:cc(t),value:ec(e,t)}]}function _c(e,t){return[{op:"add",path:cc(t),value:ec(e,t)}]}function Oc(e,t){return bc(e,t)||!ac(e,t)?[{op:"remove",path:cc(t)}]:$c(e,t)}"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self&&self;function Mc(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var Ec={},Ac={b:"\b",f:"\f",n:"\n",r:"\r",t:"\t",'"':'"',"/":"/","\\":"\\"},Pc="a".charCodeAt();Ec.parse=function(e,t,n){var r={},i=0,o=0,a=0,s=n&&n.bigint&&"undefined"!=typeof BigInt;return{data:c("",!0),pointers:r};function c(t,n){var r;l(),m(t,"value");var i=h();switch(i){case"t":f("rue"),r=!0;break;case"f":f("alse"),r=!1;break;case"n":f("ull"),r=null;break;case'"':r=u();break;case"[":r=function(e){l();var t=[],n=0;if("]"==h())return t;d();for(;;){var r=e+"/"+n;t.push(c(r)),l();var i=h();if("]"==i)break;","!=i&&w(),l(),n++}return t}(t);break;case"{":r=function(e){l();var t={};if("}"==h())return t;d();for(;;){var n=y();'"'!=h()&&w();var r=u(),i=e+"/"+Wc(r);g(i,"key",n),m(i,"keyEnd"),l(),":"!=h()&&w(),l(),t[r]=c(i),l();var o=h();if("}"==o)break;","!=o&&w(),l()}return t}(t);break;default:d(),"-0123456789".inde