@htmlbricks/hb-json-viewer 0.62.0 → 0.62.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/main.iife.js CHANGED
@@ -1,6 +1,6 @@
1
- (function(hr){"use strict";typeof window<"u"&&((window.__svelte??={}).v??=new Set).add("5");const Tn=1,Sn=2,An=16,Cn=1,Nn=4,Pn=8,On=16,Rn=1,Mn=2,_r="[",bt="[!",It="]",Ge={},C=Symbol(),Dn="http://www.w3.org/1999/xhtml",br=!1;var pr=Array.isArray,Ln=Array.prototype.indexOf,Ft=Array.from,pt=Object.keys,gt=Object.defineProperty,Le=Object.getOwnPropertyDescriptor,In=Object.getOwnPropertyDescriptors,Fn=Object.prototype,Bn=Array.prototype,gr=Object.getPrototypeOf,mr=Object.isExtensible;function qn(e){for(var t=0;t<e.length;t++)e[t]()}function yr(){var e,t,r=new Promise((n,s)=>{e=n,t=s});return{promise:r,resolve:e,reject:t}}function Un(e,t){if(Array.isArray(e))return e;if(!(Symbol.iterator in e))return Array.from(e);const r=[];for(const n of e)if(r.push(n),r.length===t)break;return r}const N=2,mt=4,Bt=8,ye=16,we=32,Ae=64,yt=128,ee=512,P=1024,B=2048,$e=4096,H=8192,Ce=16384,qt=32768,Ke=65536,wr=1<<17,$r=1<<18,Ie=1<<19,Vn=1<<20,it=32768,Ut=1<<21,Vt=1<<22,Ne=1<<23,wt=Symbol("$state"),Er=Symbol("legacy props"),Hn=Symbol(""),Xe=new class extends Error{name="StaleReactionError";message="The reaction that called `getAbortSignal()` was re-run or destroyed"},Ht=3,Ze=8;function Yn(){throw new Error("https://svelte.dev/e/async_derived_orphan")}function zn(e){throw new Error("https://svelte.dev/e/effect_in_teardown")}function Wn(){throw new Error("https://svelte.dev/e/effect_in_unowned_derived")}function Jn(e){throw new Error("https://svelte.dev/e/effect_orphan")}function Gn(){throw new Error("https://svelte.dev/e/effect_update_depth_exceeded")}function Kn(){throw new Error("https://svelte.dev/e/hydration_failed")}function Xn(e){throw new Error("https://svelte.dev/e/props_invalid_value")}function Zn(){throw new Error("https://svelte.dev/e/state_descriptors_fixed")}function Qn(){throw new Error("https://svelte.dev/e/state_prototype_fixed")}function es(){throw new Error("https://svelte.dev/e/state_unsafe_mutation")}function ts(){throw new Error("https://svelte.dev/e/svelte_boundary_reset_onerror")}function $t(e){console.warn("https://svelte.dev/e/hydration_mismatch")}function rs(){console.warn("https://svelte.dev/e/svelte_boundary_reset_noop")}let w=!1;function Ee(e){w=e}let $;function q(e){if(e===null)throw $t(),Ge;return $=e}function ot(){return q(fe($))}function J(e){if(w){if(fe($)!==null)throw $t(),Ge;$=e}}function at(e=1){if(w){for(var t=e,r=$;t--;)r=fe(r);$=r}}function Et(e=!0){for(var t=0,r=$;;){if(r.nodeType===Ze){var n=r.data;if(n===It){if(t===0)return r;t-=1}else(n===_r||n===bt)&&(t+=1)}var s=fe(r);e&&r.remove(),r=s}}function kr(e){if(!e||e.nodeType!==Ze)throw $t(),Ge;return e.data}function xr(e){return e===this.v}function ns(e,t){return e!=e?t==t:e!==t||e!==null&&typeof e=="object"||typeof e=="function"}function jr(e){return!ns(e,this.v)}let ss=!1,G=null;function Qe(e){G=e}function Yt(e,t=!1,r){G={p:G,i:!1,c:null,e:null,s:e,x:null,l:null}}function zt(e){var t=G,r=t.e;if(r!==null){t.e=null;for(var n of r)Jr(n)}return e!==void 0&&(t.x=e),t.i=!0,G=t.p,e??{}}function Tr(){return!0}let Fe=[];function Sr(){var e=Fe;Fe=[],qn(e)}function Wt(e){if(Fe.length===0&&!lt){var t=Fe;queueMicrotask(()=>{t===Fe&&Sr()})}Fe.push(e)}function is(){for(;Fe.length>0;)Sr()}function Ar(e){var t=m;if(t===null)return g.f|=Ne,e;if((t.f&qt)===0){if((t.f&yt)===0)throw e;t.b.error(e)}else et(e,t)}function et(e,t){for(;t!==null;){if((t.f&yt)!==0)try{t.b.error(e);return}catch(r){e=r}t=t.parent}throw e}const kt=new Set;let S=null,Y=null,le=[],xt=null,Jt=!1,lt=!1;class te{committed=!1;current=new Map;previous=new Map;#t=new Set;#e=new Set;#r=0;#n=0;#l=null;#o=[];#a=[];skipped_effects=new Set;is_fork=!1;process(t){le=[],this.apply();var r={parent:null,effect:null,effects:[],render_effects:[],block_effects:[]};for(const n of t)this.#s(n,r);this.is_fork||this.#f(),this.#n>0||this.is_fork?(this.#i(r.effects),this.#i(r.render_effects),this.#i(r.block_effects)):(S=null,Nr(r.render_effects),Nr(r.effects),this.#l?.resolve()),Y=null}#s(t,r){t.f^=P;for(var n=t.first;n!==null;){var s=n.f,i=(s&(we|Ae))!==0,o=i&&(s&P)!==0,a=o||(s&H)!==0||this.skipped_effects.has(n);if((n.f&yt)!==0&&n.b?.is_pending()&&(r={parent:r,effect:n,effects:[],render_effects:[],block_effects:[]}),!a&&n.fn!==null){i?n.f^=P:(s&mt)!==0?r.effects.push(n):vt(n)&&((n.f&ye)!==0&&r.block_effects.push(n),ht(n));var l=n.first;if(l!==null){n=l;continue}}var f=n.parent;for(n=n.next;n===null&&f!==null;)f===r.effect&&(this.#i(r.effects),this.#i(r.render_effects),this.#i(r.block_effects),r=r.parent),n=f.next,f=f.parent}}#i(t){for(const r of t)((r.f&B)!==0?this.#o:this.#a).push(r),R(r,P)}capture(t,r){this.previous.has(t)||this.previous.set(t,r),(t.f&Ne)===0&&(this.current.set(t,t.v),Y?.set(t,t.v))}activate(){S=this,this.apply()}deactivate(){S=null,Y=null}flush(){if(this.activate(),le.length>0){if(Cr(),S!==null&&S!==this)return}else this.#r===0&&this.process([]);this.deactivate()}discard(){for(const t of this.#e)t(this);this.#e.clear()}#f(){if(this.#n===0){for(const t of this.#t)t();this.#t.clear()}this.#r===0&&this.#u()}#u(){if(kt.size>1){this.previous.clear();var t=Y,r=!0,n={parent:null,effect:null,effects:[],render_effects:[],block_effects:[]};for(const s of kt){if(s===this){r=!1;continue}const i=[];for(const[a,l]of this.current){if(s.current.has(a))if(r&&l!==s.current.get(a))s.current.set(a,l);else continue;i.push(a)}if(i.length===0)continue;const o=[...s.current.keys()].filter(a=>!this.current.has(a));if(o.length>0){const a=new Set,l=new Map;for(const f of i)Pr(f,o,a,l);if(le.length>0){S=s,s.apply();for(const f of le)s.#s(f,n);le=[],s.deactivate()}}}S=null,Y=t}this.committed=!0,kt.delete(this)}increment(t){this.#r+=1,t&&(this.#n+=1)}decrement(t){this.#r-=1,t&&(this.#n-=1),this.revive()}revive(){for(const t of this.#o)R(t,B),Be(t);for(const t of this.#a)R(t,$e),Be(t);this.#o=[],this.#a=[],this.flush()}oncommit(t){this.#t.add(t)}ondiscard(t){this.#e.add(t)}settled(){return(this.#l??=yr()).promise}static ensure(){if(S===null){const t=S=new te;kt.add(S),lt||te.enqueue(()=>{S===t&&t.flush()})}return S}static enqueue(t){Wt(t)}apply(){}}function ke(e){var t=lt;lt=!0;try{for(var r;;){if(is(),le.length===0&&(S?.flush(),le.length===0))return xt=null,r;Cr()}}finally{lt=t}}function Cr(){var e=Ve;Jt=!0;try{var t=0;for(rn(!0);le.length>0;){var r=te.ensure();if(t++>1e3){var n,s;os()}r.process(le),Pe.clear()}}finally{Jt=!1,rn(e),xt=null}}function os(){try{Gn()}catch(e){et(e,xt)}}let xe=null;function Nr(e){var t=e.length;if(t!==0){for(var r=0;r<t;){var n=e[r++];if((n.f&(Ce|H))===0&&vt(n)&&(xe=new Set,ht(n),n.deps===null&&n.first===null&&n.nodes_start===null&&(n.teardown===null&&n.ac===null?Zr(n):n.fn=null),xe?.size>0)){Pe.clear();for(const s of xe){if((s.f&(Ce|H))!==0)continue;const i=[s];let o=s.parent;for(;o!==null;)xe.has(o)&&(xe.delete(o),i.push(o)),o=o.parent;for(let a=i.length-1;a>=0;a--){const l=i[a];(l.f&(Ce|H))===0&&ht(l)}}xe.clear()}}xe=null}}function Pr(e,t,r,n){if(!r.has(e)&&(r.add(e),e.reactions!==null))for(const s of e.reactions){const i=s.f;(i&N)!==0?Pr(s,t,r,n):(i&(Vt|ye))!==0&&(i&B)===0&&Or(s,t,n)&&(R(s,B),Be(s))}}function Or(e,t,r){const n=r.get(e);if(n!==void 0)return n;if(e.deps!==null)for(const s of e.deps){if(t.includes(s))return!0;if((s.f&N)!==0&&Or(s,t,r))return r.set(s,!0),!0}return r.set(e,!1),!1}function Be(e){for(var t=xt=e;t.parent!==null;){t=t.parent;var r=t.f;if(Jt&&t===m&&(r&ye)!==0&&(r&$r)===0)return;if((r&(Ae|we))!==0){if((r&P)===0)return;t.f^=P}}le.push(t)}function as(e){let t=0,r=qe(0),n;return()=>{St()&&(E(r),Gr(()=>(t===0&&(n=vn(()=>e(()=>ut(r)))),t+=1,()=>{Wt(()=>{t-=1,t===0&&(n?.(),n=void 0,ut(r))})})))}}var ls=Ke|Ie|yt;function fs(e,t,r){new us(e,t,r)}class us{parent;#t=!1;#e;#r=w?$:null;#n;#l;#o;#a=null;#s=null;#i=null;#f=null;#u=null;#v=0;#c=0;#h=!1;#d=null;#m=as(()=>(this.#d=qe(this.#v),()=>{this.#d=null}));constructor(t,r,n){this.#e=t,this.#n=r,this.#l=n,this.parent=m.b,this.#t=!!this.#n.pending,this.#o=Qt(()=>{if(m.b=this,w){const i=this.#r;ot(),i.nodeType===Ze&&i.data===bt?this.#w():this.#y()}else{var s=this.#p();try{this.#a=X(()=>n(s))}catch(i){this.error(i)}this.#c>0?this.#b():this.#t=!1}return()=>{this.#u?.remove()}},ls),w&&(this.#e=$)}#y(){try{this.#a=X(()=>this.#l(this.#e))}catch(t){this.error(t)}this.#t=!1}#w(){const t=this.#n.pending;t&&(this.#s=X(()=>t(this.#e)),te.enqueue(()=>{var r=this.#p();this.#a=this.#_(()=>(te.ensure(),X(()=>this.#l(r)))),this.#c>0?this.#b():(tt(this.#s,()=>{this.#s=null}),this.#t=!1)}))}#p(){var t=this.#e;return this.#t&&(this.#u=re(),this.#e.before(this.#u),t=this.#u),t}is_pending(){return this.#t||!!this.parent&&this.parent.is_pending()}has_pending_snippet(){return!!this.#n.pending}#_(t){var r=m,n=g,s=G;ve(this.#o),U(this.#o),Qe(this.#o.ctx);try{return t()}catch(i){return Ar(i),null}finally{ve(r),U(n),Qe(s)}}#b(){const t=this.#n.pending;this.#a!==null&&(this.#f=document.createDocumentFragment(),this.#f.append(this.#u),tn(this.#a,this.#f)),this.#s===null&&(this.#s=X(()=>t(this.#e)))}#g(t){if(!this.has_pending_snippet()){this.parent&&this.parent.#g(t);return}this.#c+=t,this.#c===0&&(this.#t=!1,this.#s&&tt(this.#s,()=>{this.#s=null}),this.#f&&(this.#e.before(this.#f),this.#f=null))}update_pending_count(t){this.#g(t),this.#v+=t,this.#d&&ft(this.#d,this.#v)}get_effect_pending(){return this.#m(),E(this.#d)}error(t){var r=this.#n.onerror;let n=this.#n.failed;if(this.#h||!r&&!n)throw t;this.#a&&(O(this.#a),this.#a=null),this.#s&&(O(this.#s),this.#s=null),this.#i&&(O(this.#i),this.#i=null),w&&(q(this.#r),at(),q(Et()));var s=!1,i=!1;const o=()=>{if(s){rs();return}s=!0,i&&ts(),te.ensure(),this.#v=0,this.#i!==null&&tt(this.#i,()=>{this.#i=null}),this.#t=this.has_pending_snippet(),this.#a=this.#_(()=>(this.#h=!1,X(()=>this.#l(this.#e)))),this.#c>0?this.#b():this.#t=!1};var a=g;try{U(null),i=!0,r?.(t,o),i=!1}catch(l){et(l,this.#o&&this.#o.parent)}finally{U(a)}n&&Wt(()=>{this.#i=this.#_(()=>{te.ensure(),this.#h=!0;try{return X(()=>{n(this.#e,()=>t,()=>o)})}catch(l){return et(l,this.#o.parent),null}finally{this.#h=!1}})})}}function cs(e,t,r,n){const s=Tt;if(r.length===0&&e.length===0){n(t.map(s));return}var i=S,o=m,a=ds();function l(){Promise.all(r.map(f=>vs(f))).then(f=>{a();try{n([...t.map(s),...f])}catch(v){(o.f&Ce)===0&&et(v,o)}i?.deactivate(),jt()}).catch(f=>{et(f,o)})}e.length>0?Promise.all(e).then(()=>{a();try{return l()}finally{i?.deactivate(),jt()}}):l()}function ds(){var e=m,t=g,r=G,n=S;return function(i=!0){ve(e),U(t),Qe(r),i&&n?.activate()}}function jt(){ve(null),U(null),Qe(null)}function Tt(e){var t=N|B,r=g!==null&&(g.f&N)!==0?g:null;return m!==null&&(m.f|=Ie),{ctx:G,deps:null,effects:null,equals:xr,f:t,fn:e,reactions:null,rv:0,v:C,wv:0,parent:r??m,ac:null}}function vs(e,t){let r=m;r===null&&Yn();var n=r.b,s=void 0,i=qe(C),o=!g,a=new Map;return $s(()=>{var l=yr();s=l.promise;try{Promise.resolve(e()).then(l.resolve,l.reject).then(()=>{f===S&&f.committed&&f.deactivate(),jt()})}catch(u){l.reject(u),jt()}var f=S;if(o){var v=!n.is_pending();n.update_pending_count(1),f.increment(v),a.get(f)?.reject(Xe),a.delete(f),a.set(f,l)}const d=(u,c=void 0)=>{if(f.activate(),c)c!==Xe&&(i.f|=Ne,ft(i,c));else{(i.f&Ne)!==0&&(i.f^=Ne),ft(i,u);for(const[_,b]of a){if(a.delete(_),_===f)break;b.reject(Xe)}}o&&(n.update_pending_count(-1),f.decrement(v))};l.promise.then(d,u=>d(null,u||"unknown"))}),gs(()=>{for(const l of a.values())l.reject(Xe)}),new Promise(l=>{function f(v){function d(){v===s?l(i):f(s)}v.then(d,d)}f(s)})}function Gt(e){const t=Tt(e);return sn(t),t}function Rr(e){const t=Tt(e);return t.equals=jr,t}function Mr(e){var t=e.effects;if(t!==null){e.effects=null;for(var r=0;r<t.length;r+=1)O(t[r])}}function hs(e){for(var t=e.parent;t!==null;){if((t.f&N)===0)return t;t=t.parent}return null}function Kt(e){var t,r=m;ve(hs(e));try{e.f&=~it,Mr(e),t=un(e)}finally{ve(r)}return t}function Dr(e){var t=Kt(e);if(e.equals(t)||(e.v=t,e.wv=ln()),!He)if(Y!==null)St()&&Y.set(e,e.v);else{var r=(e.f&ee)===0?$e:P;R(e,r)}}let Xt=new Set;const Pe=new Map;let Lr=!1;function qe(e,t){var r={f:0,v:e,reactions:null,equals:xr,rv:0,wv:0};return r}function K(e,t){const r=qe(e);return sn(r),r}function Ir(e,t=!1,r=!0){const n=qe(e);return t||(n.equals=jr),n}function D(e,t,r=!1){g!==null&&(!de||(g.f&wr)!==0)&&Tr()&&(g.f&(N|ye|Vt|wr))!==0&&!je?.includes(e)&&es();let n=r?Oe(t):t;return ft(e,n)}function ft(e,t){if(!e.equals(t)){var r=e.v;He?Pe.set(e,t):Pe.set(e,r),e.v=t;var n=te.ensure();n.capture(e,r),(e.f&N)!==0&&((e.f&B)!==0&&Kt(e),R(e,(e.f&ee)!==0?P:$e)),e.wv=ln(),Fr(e,B),m!==null&&(m.f&P)!==0&&(m.f&(we|Ae))===0&&(Z===null?xs([e]):Z.push(e)),!n.is_fork&&Xt.size>0&&!Lr&&_s()}return t}function _s(){Lr=!1;const e=Array.from(Xt);for(const t of e)(t.f&P)!==0&&R(t,$e),vt(t)&&ht(t);Xt.clear()}function ut(e){D(e,e.v+1)}function Fr(e,t){var r=e.reactions;if(r!==null)for(var n=r.length,s=0;s<n;s++){var i=r[s],o=i.f,a=(o&B)===0;if(a&&R(i,t),(o&N)!==0){var l=i;Y?.delete(l),(o&it)===0&&(o&ee&&(i.f|=it),Fr(l,$e))}else a&&((o&ye)!==0&&xe!==null&&xe.add(i),Be(i))}}function Oe(e){if(typeof e!="object"||e===null||wt in e)return e;const t=gr(e);if(t!==Fn&&t!==Bn)return e;var r=new Map,n=pr(e),s=K(0),i=Ye,o=a=>{if(Ye===i)return a();var l=g,f=Ye;U(null),an(i);var v=a();return U(l),an(f),v};return n&&r.set("length",K(e.length)),new Proxy(e,{defineProperty(a,l,f){(!("value"in f)||f.configurable===!1||f.enumerable===!1||f.writable===!1)&&Zn();var v=r.get(l);return v===void 0?v=o(()=>{var d=K(f.value);return r.set(l,d),d}):D(v,f.value,!0),!0},deleteProperty(a,l){var f=r.get(l);if(f===void 0){if(l in a){const v=o(()=>K(C));r.set(l,v),ut(s)}}else D(f,C),ut(s);return!0},get(a,l,f){if(l===wt)return e;var v=r.get(l),d=l in a;if(v===void 0&&(!d||Le(a,l)?.writable)&&(v=o(()=>{var c=Oe(d?a[l]:C),_=K(c);return _}),r.set(l,v)),v!==void 0){var u=E(v);return u===C?void 0:u}return Reflect.get(a,l,f)},getOwnPropertyDescriptor(a,l){var f=Reflect.getOwnPropertyDescriptor(a,l);if(f&&"value"in f){var v=r.get(l);v&&(f.value=E(v))}else if(f===void 0){var d=r.get(l),u=d?.v;if(d!==void 0&&u!==C)return{enumerable:!0,configurable:!0,value:u,writable:!0}}return f},has(a,l){if(l===wt)return!0;var f=r.get(l),v=f!==void 0&&f.v!==C||Reflect.has(a,l);if(f!==void 0||m!==null&&(!v||Le(a,l)?.writable)){f===void 0&&(f=o(()=>{var u=v?Oe(a[l]):C,c=K(u);return c}),r.set(l,f));var d=E(f);if(d===C)return!1}return v},set(a,l,f,v){var d=r.get(l),u=l in a;if(n&&l==="length")for(var c=f;c<d.v;c+=1){var _=r.get(c+"");_!==void 0?D(_,C):c in a&&(_=o(()=>K(C)),r.set(c+"",_))}if(d===void 0)(!u||Le(a,l)?.writable)&&(d=o(()=>K(void 0)),D(d,Oe(f)),r.set(l,d));else{u=d.v!==C;var b=o(()=>Oe(f));D(d,b)}var p=Reflect.getOwnPropertyDescriptor(a,l);if(p?.set&&p.set.call(v,f),!u){if(n&&typeof l=="string"){var I=r.get("length"),k=Number(l);Number.isInteger(k)&&k>=I.v&&D(I,k+1)}ut(s)}return!0},ownKeys(a){E(s);var l=Reflect.ownKeys(a).filter(d=>{var u=r.get(d);return u===void 0||u.v!==C});for(var[f,v]of r)v.v!==C&&!(f in a)&&l.push(f);return l},setPrototypeOf(){Qn()}})}var Br,qr,Ur,Vr;function Zt(){if(Br===void 0){Br=window,qr=/Firefox/.test(navigator.userAgent);var e=Element.prototype,t=Node.prototype,r=Text.prototype;Ur=Le(t,"firstChild").get,Vr=Le(t,"nextSibling").get,mr(e)&&(e.__click=void 0,e.__className=void 0,e.__attributes=null,e.__style=void 0,e.__e=void 0),mr(r)&&(r.__t=void 0)}}function re(e=""){return document.createTextNode(e)}function Ue(e){return Ur.call(e)}function fe(e){return Vr.call(e)}function ne(e,t){if(!w)return Ue(e);var r=Ue($);if(r===null)r=$.appendChild(re());else if(t&&r.nodeType!==Ht){var n=re();return r?.before(n),q(n),n}return q(r),r}function ct(e,t=!1){if(!w){var r=Ue(e);return r instanceof Comment&&r.data===""?fe(r):r}if(t&&$?.nodeType!==Ht){var n=re();return $?.before(n),q(n),n}return $}function ue(e,t=1,r=!1){let n=w?$:e;for(var s;t--;)s=n,n=fe(n);if(!w)return n;if(r&&n?.nodeType!==Ht){var i=re();return n===null?s?.after(i):n.before(i),q(i),i}return q(n),n}function Hr(e){e.textContent=""}function Yr(){return!1}function zr(e){var t=g,r=m;U(null),ve(null);try{return e()}finally{U(t),ve(r)}}function bs(e){m===null&&(g===null&&Jn(),Wn()),He&&zn()}function ps(e,t){var r=t.last;r===null?t.last=t.first=e:(r.next=e,e.prev=r,t.last=e)}function ce(e,t,r,n=!0){var s=m;s!==null&&(s.f&H)!==0&&(e|=H);var i={ctx:G,deps:null,nodes_start:null,nodes_end:null,f:e|B|ee,first:null,fn:t,last:null,next:null,parent:s,b:s&&s.b,prev:null,teardown:null,transitions:null,wv:0,ac:null};if(r)try{ht(i),i.f|=qt}catch(l){throw O(i),l}else t!==null&&Be(i);if(n){var o=i;if(r&&o.deps===null&&o.teardown===null&&o.nodes_start===null&&o.first===o.last&&(o.f&Ie)===0&&(o=o.first,(e&ye)!==0&&(e&Ke)!==0&&o!==null&&(o.f|=Ke)),o!==null&&(o.parent=s,s!==null&&ps(o,s),g!==null&&(g.f&N)!==0&&(e&Ae)===0)){var a=g;(a.effects??=[]).push(o)}}return i}function St(){return g!==null&&!de}function gs(e){const t=ce(Bt,null,!1);return R(t,P),t.teardown=e,t}function Wr(e){bs();var t=m.f,r=!g&&(t&we)!==0&&(t&qt)===0;if(r){var n=G;(n.e??=[]).push(e)}else return Jr(e)}function Jr(e){return ce(mt|Vn,e,!1)}function ms(e){te.ensure();const t=ce(Ae|Ie,e,!0);return()=>{O(t)}}function ys(e){te.ensure();const t=ce(Ae|Ie,e,!0);return(r={})=>new Promise(n=>{r.outro?tt(t,()=>{O(t),n(void 0)}):(O(t),n(void 0))})}function ws(e){return ce(mt,e,!1)}function $s(e){return ce(Vt|Ie,e,!0)}function Gr(e,t=0){return ce(Bt|t,e,!0)}function At(e,t=[],r=[],n=[],s=!1){cs(n,t,r,i=>{ce(s?mt:Bt,()=>e(...i.map(E)),!0)})}function Qt(e,t=0){var r=ce(ye|t,e,!0);return r}function X(e,t=!0){return ce(we|Ie,e,!0,t)}function Kr(e){var t=e.teardown;if(t!==null){const r=He,n=g;nn(!0),U(null);try{t.call(null)}finally{nn(r),U(n)}}}function Xr(e,t=!1){var r=e.first;for(e.first=e.last=null;r!==null;){const s=r.ac;s!==null&&zr(()=>{s.abort(Xe)});var n=r.next;(r.f&Ae)!==0?r.parent=null:O(r,t),r=n}}function Es(e){for(var t=e.first;t!==null;){var r=t.next;(t.f&we)===0&&O(t),t=r}}function O(e,t=!0){var r=!1;(t||(e.f&$r)!==0)&&e.nodes_start!==null&&e.nodes_end!==null&&(ks(e.nodes_start,e.nodes_end),r=!0),Xr(e,t&&!r),Ct(e,0),R(e,Ce);var n=e.transitions;if(n!==null)for(const i of n)i.stop();Kr(e);var s=e.parent;s!==null&&s.first!==null&&Zr(e),e.next=e.prev=e.teardown=e.ctx=e.deps=e.fn=e.nodes_start=e.nodes_end=e.ac=null}function ks(e,t){for(;e!==null;){var r=e===t?null:fe(e);e.remove(),e=r}}function Zr(e){var t=e.parent,r=e.prev,n=e.next;r!==null&&(r.next=n),n!==null&&(n.prev=r),t!==null&&(t.first===e&&(t.first=n),t.last===e&&(t.last=r))}function tt(e,t,r=!0){var n=[];er(e,n,!0),Qr(n,()=>{r&&O(e),t&&t()})}function Qr(e,t){var r=e.length;if(r>0){var n=()=>--r||t();for(var s of e)s.out(n)}else t()}function er(e,t,r){if((e.f&H)===0){if(e.f^=H,e.transitions!==null)for(const o of e.transitions)(o.is_global||r)&&t.push(o);for(var n=e.first;n!==null;){var s=n.next,i=(n.f&Ke)!==0||(n.f&we)!==0&&(e.f&ye)!==0;er(n,t,i?r:!1),n=s}}}function tr(e){en(e,!0)}function en(e,t){if((e.f&H)!==0){e.f^=H,(e.f&P)===0&&(R(e,B),Be(e));for(var r=e.first;r!==null;){var n=r.next,s=(r.f&Ke)!==0||(r.f&we)!==0;en(r,s?t:!1),r=n}if(e.transitions!==null)for(const i of e.transitions)(i.is_global||t)&&i.in()}}function tn(e,t){for(var r=e.nodes_start,n=e.nodes_end;r!==null;){var s=r===n?null:fe(r);t.append(r),r=s}}let Ve=!1;function rn(e){Ve=e}let He=!1;function nn(e){He=e}let g=null,de=!1;function U(e){g=e}let m=null;function ve(e){m=e}let je=null;function sn(e){g!==null&&(je===null?je=[e]:je.push(e))}let L=null,z=0,Z=null;function xs(e){Z=e}let on=1,dt=0,Ye=dt;function an(e){Ye=e}function ln(){return++on}function vt(e){var t=e.f;if((t&B)!==0)return!0;if(t&N&&(e.f&=~it),(t&$e)!==0){var r=e.deps;if(r!==null)for(var n=r.length,s=0;s<n;s++){var i=r[s];if(vt(i)&&Dr(i),i.wv>e.wv)return!0}(t&ee)!==0&&Y===null&&R(e,P)}return!1}function fn(e,t,r=!0){var n=e.reactions;if(n!==null&&!je?.includes(e))for(var s=0;s<n.length;s++){var i=n[s];(i.f&N)!==0?fn(i,t,!1):t===i&&(r?R(i,B):(i.f&P)!==0&&R(i,$e),Be(i))}}function un(e){var t=L,r=z,n=Z,s=g,i=je,o=G,a=de,l=Ye,f=e.f;L=null,z=0,Z=null,g=(f&(we|Ae))===0?e:null,je=null,Qe(e.ctx),de=!1,Ye=++dt,e.ac!==null&&(zr(()=>{e.ac.abort(Xe)}),e.ac=null);try{e.f|=Ut;var v=e.fn,d=v(),u=e.deps;if(L!==null){var c;if(Ct(e,z),u!==null&&z>0)for(u.length=z+L.length,c=0;c<L.length;c++)u[z+c]=L[c];else e.deps=u=L;if(Ve&&St()&&(e.f&ee)!==0)for(c=z;c<u.length;c++)(u[c].reactions??=[]).push(e)}else u!==null&&z<u.length&&(Ct(e,z),u.length=z);if(Tr()&&Z!==null&&!de&&u!==null&&(e.f&(N|$e|B))===0)for(c=0;c<Z.length;c++)fn(Z[c],e);return s!==null&&s!==e&&(dt++,Z!==null&&(n===null?n=Z:n.push(...Z))),(e.f&Ne)!==0&&(e.f^=Ne),d}catch(_){return Ar(_)}finally{e.f^=Ut,L=t,z=r,Z=n,g=s,je=i,Qe(o),de=a,Ye=l}}function js(e,t){let r=t.reactions;if(r!==null){var n=Ln.call(r,e);if(n!==-1){var s=r.length-1;s===0?r=t.reactions=null:(r[n]=r[s],r.pop())}}r===null&&(t.f&N)!==0&&(L===null||!L.includes(t))&&(R(t,$e),(t.f&ee)!==0&&(t.f^=ee,t.f&=~it),Mr(t),Ct(t,0))}function Ct(e,t){var r=e.deps;if(r!==null)for(var n=t;n<r.length;n++)js(e,r[n])}function ht(e){var t=e.f;if((t&Ce)===0){R(e,P);var r=m,n=Ve;m=e,Ve=!0;try{(t&ye)!==0?Es(e):Xr(e),Kr(e);var s=un(e);e.teardown=typeof s=="function"?s:null,e.wv=on;var i;br&&ss&&(e.f&B)!==0&&e.deps}finally{Ve=n,m=r}}}function E(e){var t=e.f,r=(t&N)!==0;if(g!==null&&!de){var n=m!==null&&(m.f&Ce)!==0;if(!n&&!je?.includes(e)){var s=g.deps;if((g.f&Ut)!==0)e.rv<dt&&(e.rv=dt,L===null&&s!==null&&s[z]===e?z++:L===null?L=[e]:L.includes(e)||L.push(e));else{(g.deps??=[]).push(e);var i=e.reactions;i===null?e.reactions=[g]:i.includes(g)||i.push(g)}}}if(He){if(Pe.has(e))return Pe.get(e);if(r){var o=e,a=o.v;return((o.f&P)===0&&o.reactions!==null||dn(o))&&(a=Kt(o)),Pe.set(o,a),a}}else if(r){if(o=e,Y?.has(o))return Y.get(o);vt(o)&&Dr(o),Ve&&St()&&(o.f&ee)===0&&cn(o)}else if(Y?.has(e))return Y.get(e);if((e.f&Ne)!==0)throw e.v;return e.v}function cn(e){if(e.deps!==null){e.f^=ee;for(const t of e.deps)(t.reactions??=[]).push(e),(t.f&N)!==0&&(t.f&ee)===0&&cn(t)}}function dn(e){if(e.v===C)return!0;if(e.deps===null)return!1;for(const t of e.deps)if(Pe.has(t)||(t.f&N)!==0&&dn(t))return!0;return!1}function vn(e){var t=de;try{return de=!0,e()}finally{de=t}}const Ts=-7169;function R(e,t){e.f=e.f&Ts|t}const hn=new Set,rr=new Set;function Ss(e){for(var t=0;t<e.length;t++)hn.add(e[t]);for(var r of rr)r(e)}let _n=null;function Nt(e){var t=this,r=t.ownerDocument,n=e.type,s=e.composedPath?.()||[],i=s[0]||e.target;_n=e;var o=0,a=_n===e&&e.__root;if(a){var l=s.indexOf(a);if(l!==-1&&(t===document||t===window)){e.__root=t;return}var f=s.indexOf(t);if(f===-1)return;l<=f&&(o=l)}if(i=s[o]||e.target,i!==t){gt(e,"currentTarget",{configurable:!0,get(){return i||r}});var v=g,d=m;U(null),ve(null);try{for(var u,c=[];i!==null;){var _=i.assignedSlot||i.parentNode||i.host||null;try{var b=i["__"+n];b!=null&&(!i.disabled||e.target===i)&&b.call(i,e)}catch(p){u?c.push(p):u=p}if(e.cancelBubble||_===t||_===null)break;i=_}if(u){for(let p of c)queueMicrotask(()=>{throw p});throw u}}finally{e.__root=t,delete e.currentTarget,U(v),ve(d)}}}function As(e){var t=document.createElement("template");return t.innerHTML=e.replaceAll("<!>","<!---->"),t.content}function rt(e,t){var r=m;r.nodes_start===null&&(r.nodes_start=e,r.nodes_end=t)}function V(e,t){var r=(t&Rn)!==0,n=(t&Mn)!==0,s,i=!e.startsWith("<!>");return()=>{if(w)return rt($,null),$;s===void 0&&(s=As(i?e:"<!>"+e),r||(s=Ue(s)));var o=n||qr?document.importNode(s,!0):s.cloneNode(!0);if(r){var a=Ue(o),l=o.lastChild;rt(a,l)}else rt(o,o);return o}}function Cs(){if(w)return rt($,null),$;var e=document.createDocumentFragment(),t=document.createComment(""),r=re();return e.append(t,r),rt(t,r),e}function M(e,t){if(w){m.nodes_end=$,ot();return}e!==null&&e.before(t)}const Ns=["touchstart","touchmove"];function Ps(e){return Ns.includes(e)}function _t(e,t){var r=t==null?"":typeof t=="object"?t+"":t;r!==(e.__t??=e.nodeValue)&&(e.__t=r,e.nodeValue=r+"")}function bn(e,t){return pn(e,t)}function Os(e,t){Zt(),t.intro=t.intro??!1;const r=t.target,n=w,s=$;try{for(var i=Ue(r);i&&(i.nodeType!==Ze||i.data!==_r);)i=fe(i);if(!i)throw Ge;Ee(!0),q(i);const o=pn(e,{...t,anchor:i});return Ee(!1),o}catch(o){if(o instanceof Error&&o.message.split(`
2
- `).some(a=>a.startsWith("https://svelte.dev/e/")))throw o;return o!==Ge&&console.warn("Failed to hydrate: ",o),t.recover===!1&&Kn(),Zt(),Hr(r),Ee(!1),bn(e,t)}finally{Ee(n),q(s)}}const nt=new Map;function pn(e,{target:t,anchor:r,props:n={},events:s,context:i,intro:o=!0}){Zt();var a=new Set,l=d=>{for(var u=0;u<d.length;u++){var c=d[u];if(!a.has(c)){a.add(c);var _=Ps(c);t.addEventListener(c,Nt,{passive:_});var b=nt.get(c);b===void 0?(document.addEventListener(c,Nt,{passive:_}),nt.set(c,1)):nt.set(c,b+1)}}};l(Ft(hn)),rr.add(l);var f=void 0,v=ys(()=>{var d=r??t.appendChild(re());return fs(d,{pending:()=>{}},u=>{if(i){Yt({});var c=G;c.c=i}if(s&&(n.$$events=s),w&&rt(u,null),f=e(u,n)||{},w&&(m.nodes_end=$,$===null||$.nodeType!==Ze||$.data!==It))throw $t(),Ge;i&&zt()}),()=>{for(var u of a){t.removeEventListener(u,Nt);var c=nt.get(u);--c===0?(document.removeEventListener(u,Nt),nt.delete(u)):nt.set(u,c)}rr.delete(l),d!==r&&d.parentNode?.removeChild(d)}});return nr.set(f,v),f}let nr=new WeakMap;function Rs(e,t){const r=nr.get(e);return r?(nr.delete(e),r(t)):Promise.resolve()}class Ms{anchor;#t=new Map;#e=new Map;#r=new Map;#n=!0;constructor(t,r=!0){this.anchor=t,this.#n=r}#l=()=>{var t=S;if(this.#t.has(t)){var r=this.#t.get(t),n=this.#e.get(r);if(n)tr(n);else{var s=this.#r.get(r);s&&(this.#e.set(r,s.effect),this.#r.delete(r),s.fragment.lastChild.remove(),this.anchor.before(s.fragment),n=s.effect)}for(const[i,o]of this.#t){if(this.#t.delete(i),i===t)break;const a=this.#r.get(o);a&&(O(a.effect),this.#r.delete(o))}for(const[i,o]of this.#e){if(i===r)continue;const a=()=>{if(Array.from(this.#t.values()).includes(i)){var f=document.createDocumentFragment();tn(o,f),f.append(re()),this.#r.set(i,{effect:o,fragment:f})}else O(o);this.#e.delete(i)};this.#n||!n?tt(o,a,!1):a()}}};#o=t=>{this.#t.delete(t);const r=Array.from(this.#t.values());for(const[n,s]of this.#r)r.includes(n)||(O(s.effect),this.#r.delete(n))};ensure(t,r){var n=S,s=Yr();if(r&&!this.#e.has(t)&&!this.#r.has(t))if(s){var i=document.createDocumentFragment(),o=re();i.append(o),this.#r.set(t,{effect:X(()=>r(o)),fragment:i})}else this.#e.set(t,X(()=>r(this.anchor)));if(this.#t.set(n,t),s){for(const[a,l]of this.#e)a===t?n.skipped_effects.delete(l):n.skipped_effects.add(l);for(const[a,l]of this.#r)a===t?n.skipped_effects.delete(l.effect):n.skipped_effects.add(l.effect);n.oncommit(this.#l),n.ondiscard(this.#o)}else w&&(this.anchor=$),this.#l()}}function he(e,t,r=!1){w&&ot();var n=new Ms(e),s=r?Ke:0;function i(o,a){if(w){const f=kr(e)===bt;if(o===f){var l=Et();q(l),n.anchor=l,Ee(!1),n.ensure(o,a),Ee(!0);return}}n.ensure(o,a)}Qt(()=>{var o=!1;t((a,l=!0)=>{o=!0,i(l,a)}),o||i(!1,null)},s)}function Ds(e,t){return t}function Ls(e,t,r){for(var n=e.items,s=[],i=t.length,o=0;o<i;o++)er(t[o].e,s,!0);var a=i>0&&s.length===0&&r!==null;if(a){var l=r.parentNode;Hr(l),l.append(r),n.clear(),_e(e,t[0].prev,t[i-1].next)}Qr(s,()=>{for(var f=0;f<i;f++){var v=t[f];a||(n.delete(v.k),_e(e,v.prev,v.next)),O(v.e,!a)}})}function Is(e,t,r,n,s,i=null){var o=e,a={flags:t,items:new Map,first:null};{var l=e;o=w?q(Ue(l)):l.appendChild(re())}w&&ot();var f=null,v=!1,d=new Map,u=Rr(()=>{var p=r();return pr(p)?p:p==null?[]:Ft(p)}),c,_;function b(){Fs(_,c,a,d,o,s,t,n,r),i!==null&&(c.length===0?f?tr(f):f=X(()=>i(o)):f!==null&&tt(f,()=>{f=null}))}Qt(()=>{_??=m,c=E(u);var p=c.length;if(v&&p===0)return;v=p===0;let I=!1;if(w){var k=kr(o)===bt;k!==(p===0)&&(o=Et(),q(o),Ee(!1),I=!0)}if(w){for(var y=null,T,j=0;j<p;j++){if($.nodeType===Ze&&$.data===It){o=$,I=!0,Ee(!1);break}var se=c[j],F=n(se,j);T=sr($,a,y,null,se,F,j,s,t,r),a.items.set(F,T),y=T}p>0&&q(Et())}if(w)p===0&&i&&(f=X(()=>i(o)));else if(Yr()){var ie=new Set,W=S;for(j=0;j<p;j+=1){se=c[j],F=n(se,j);var Me=a.items.get(F)??d.get(F);Me?gn(Me,se,j):(T=sr(null,a,null,null,se,F,j,s,t,r,!0),d.set(F,T)),ie.add(F)}for(const[We,Je]of a.items)ie.has(We)||W.skipped_effects.add(Je.e);W.oncommit(b)}else b();I&&Ee(!0),E(u)}),w&&(o=$)}function Fs(e,t,r,n,s,i,o,a,l){var f=t.length,v=r.items,d=r.first,u=d,c,_=null,b=[],p=[],I,k,y,T;for(T=0;T<f;T+=1){if(I=t[T],k=a(I,T),y=v.get(k),y===void 0){var j=n.get(k);if(j!==void 0){n.delete(k),v.set(k,j);var se=_?_.next:u;_e(r,_,j),_e(r,j,se),ir(j,se,s),_=j}else{var F=u?u.e.nodes_start:s;_=sr(F,r,_,_===null?r.first:_.next,I,k,T,i,o,l)}v.set(k,_),b=[],p=[],u=_.next;continue}if(gn(y,I,T),(y.e.f&H)!==0&&tr(y.e),y!==u){if(c!==void 0&&c.has(y)){if(b.length<p.length){var ie=p[0],W;_=ie.prev;var Me=b[0],We=b[b.length-1];for(W=0;W<b.length;W+=1)ir(b[W],ie,s);for(W=0;W<p.length;W+=1)c.delete(p[W]);_e(r,Me.prev,We.next),_e(r,_,Me),_e(r,We,ie),u=ie,_=We,T-=1,b=[],p=[]}else c.delete(y),ir(y,u,s),_e(r,y.prev,y.next),_e(r,y,_===null?r.first:_.next),_e(r,_,y),_=y;continue}for(b=[],p=[];u!==null&&u.k!==k;)(u.e.f&H)===0&&(c??=new Set).add(u),p.push(u),u=u.next;if(u===null)continue;y=u}b.push(y),_=y,u=y.next}if(u!==null||c!==void 0){for(var Je=c===void 0?[]:Ft(c);u!==null;)(u.e.f&H)===0&&Je.push(u),u=u.next;var ar=Je.length;if(ar>0){var h=f===0?s:null;Ls(r,Je,h)}}e.first=r.first&&r.first.e,e.last=_&&_.e;for(var A of n.values())O(A.e);n.clear()}function gn(e,t,r,n){ft(e.v,t),e.i=r}function sr(e,t,r,n,s,i,o,a,l,f,v){var d=(l&Tn)!==0,u=(l&An)===0,c=d?u?Ir(s,!1,!1):qe(s):s,_=(l&Sn)===0?o:qe(o),b={i:_,v:c,k:i,a:null,e:null,prev:r,next:n};try{if(e===null){var p=document.createDocumentFragment();p.append(e=re())}return b.e=X(()=>a(e,c,_,f),w),b.e.prev=r&&r.e,b.e.next=n&&n.e,r===null?v||(t.first=b):(r.next=b,r.e.next=b.e),n!==null&&(n.prev=b,n.e.prev=b.e),b}finally{}}function ir(e,t,r){for(var n=e.next?e.next.e.nodes_start:r,s=t?t.e.nodes_start:r,i=e.e.nodes_start;i!==null&&i!==n;){var o=fe(i);s.before(i),i=o}}function _e(e,t,r){t===null?e.first=r:(t.next=r,t.e.next=r&&r.e),r!==null&&(r.prev=t,r.e.prev=t&&t.e)}function Bs(e,t,r,n,s){w&&ot();var i=t.$$slots?.[r],o=!1;i===!0&&(i=t.children,o=!0),i===void 0||i(e,o?()=>n:n)}function mn(e,t){ws(()=>{var r=e.getRootNode(),n=r.host?r:r.head??r.ownerDocument.head;if(!n.querySelector("#"+t.hash)){const s=document.createElement("style");s.id=t.hash,s.textContent=t.code,n.appendChild(s)}})}function qs(e,t,r){var n=e==null?"":""+e;return n=n?n+" "+t:t,n===""?null:n}function Us(e,t,r,n,s,i){var o=e.__className;if(w||o!==r||o===void 0){var a=qs(r,n);(!w||a!==e.getAttribute("class"))&&(a==null?e.removeAttribute("class"):e.className=a),e.__className=r}return i}const Vs=Symbol("is custom element"),Hs=Symbol("is html");function yn(e,t,r,n){var s=Ys(e);w&&(s[t]=e.getAttribute(t),t==="src"||t==="srcset"||t==="href"&&e.nodeName==="LINK")||s[t]!==(s[t]=r)&&(t==="loading"&&(e[Hn]=r),r==null?e.removeAttribute(t):typeof r!="string"&&zs(e).includes(t)?e[t]=r:e.setAttribute(t,r))}function Ys(e){return e.__attributes??={[Vs]:e.nodeName.includes("-"),[Hs]:e.namespaceURI===Dn}}var wn=new Map;function zs(e){var t=e.getAttribute("is")||e.nodeName,r=wn.get(t);if(r)return r;wn.set(t,r=[]);for(var n,s=e,i=Element.prototype;i!==s;){n=In(s);for(var o in n)n[o].set&&r.push(o);s=gr(s)}return r}let Pt=!1;function Ws(e){var t=Pt;try{return Pt=!1,[e(),Pt]}finally{Pt=t}}function Re(e,t,r,n){var s=(r&Pn)!==0,i=(r&On)!==0,o=n,a=!0,l=()=>(a&&(a=!1,o=i?vn(n):n),o),f;if(s){var v=wt in e||Er in e;f=Le(e,t)?.set??(v&&t in e?k=>e[t]=k:void 0)}var d,u=!1;s?[d,u]=Ws(()=>e[t]):d=e[t],d===void 0&&n!==void 0&&(d=l(),f&&(Xn(),f(d)));var c;if(c=()=>{var k=e[t];return k===void 0?l():(a=!0,k)},(r&Nn)===0)return c;if(f){var _=e.$$legacy;return(function(k,y){return arguments.length>0?((!y||_||u)&&f(y?c():k),k):c()})}var b=!1,p=((r&Cn)!==0?Tt:Rr)(()=>(b=!1,c()));s&&E(p);var I=m;return(function(k,y){if(arguments.length>0){const T=y?E(p):s?Oe(k):k;return D(p,T),b=!0,o!==void 0&&(o=T),k}return He&&b||(I.f&Ce)!==0?p.v:E(p)})}function Js(e){return new Gs(e)}class Gs{#t;#e;constructor(t){var r=new Map,n=(i,o)=>{var a=Ir(o,!1,!1);return r.set(i,a),a};const s=new Proxy({...t.props||{},$$events:{}},{get(i,o){return E(r.get(o)??n(o,Reflect.get(i,o)))},has(i,o){return o===Er?!0:(E(r.get(o)??n(o,Reflect.get(i,o))),Reflect.has(i,o))},set(i,o,a){return D(r.get(o)??n(o,a),a),Reflect.set(i,o,a)}});this.#e=(t.hydrate?Os:bn)(t.component,{target:t.target,anchor:t.anchor,props:s,context:t.context,intro:t.intro??!1,recover:t.recover}),(!t?.props?.$$host||t.sync===!1)&&ke(),this.#t=s.$$events;for(const i of Object.keys(this.#e))i==="$set"||i==="$destroy"||i==="$on"||gt(this,i,{get(){return this.#e[i]},set(o){this.#e[i]=o},enumerable:!0});this.#e.$set=i=>{Object.assign(s,i)},this.#e.$destroy=()=>{Rs(this.#e)}}$set(t){this.#e.$set(t)}$on(t,r){this.#t[t]=this.#t[t]||[];const n=(...s)=>r.call(this,...s);return this.#t[t].push(n),()=>{this.#t[t]=this.#t[t].filter(s=>s!==n)}}$destroy(){this.#e.$destroy()}}let $n;typeof HTMLElement=="function"&&($n=class extends HTMLElement{$$ctor;$$s;$$c;$$cn=!1;$$d={};$$r=!1;$$p_d={};$$l={};$$l_u=new Map;$$me;constructor(e,t,r){super(),this.$$ctor=e,this.$$s=t,r&&this.attachShadow({mode:"open"})}addEventListener(e,t,r){if(this.$$l[e]=this.$$l[e]||[],this.$$l[e].push(t),this.$$c){const n=this.$$c.$on(e,t);this.$$l_u.set(t,n)}super.addEventListener(e,t,r)}removeEventListener(e,t,r){if(super.removeEventListener(e,t,r),this.$$c){const n=this.$$l_u.get(t);n&&(n(),this.$$l_u.delete(t))}}async connectedCallback(){if(this.$$cn=!0,!this.$$c){let e=function(n){return s=>{const i=document.createElement("slot");n!=="default"&&(i.name=n),M(s,i)}};if(await Promise.resolve(),!this.$$cn||this.$$c)return;const t={},r=Ks(this);for(const n of this.$$s)n in r&&(n==="default"&&!this.$$d.children?(this.$$d.children=e(n),t.default=!0):t[n]=e(n));for(const n of this.attributes){const s=this.$$g_p(n.name);s in this.$$d||(this.$$d[s]=Ot(s,n.value,this.$$p_d,"toProp"))}for(const n in this.$$p_d)!(n in this.$$d)&&this[n]!==void 0&&(this.$$d[n]=this[n],delete this[n]);this.$$c=Js({component:this.$$ctor,target:this.shadowRoot||this,props:{...this.$$d,$$slots:t,$$host:this}}),this.$$me=ms(()=>{Gr(()=>{this.$$r=!0;for(const n of pt(this.$$c)){if(!this.$$p_d[n]?.reflect)continue;this.$$d[n]=this.$$c[n];const s=Ot(n,this.$$d[n],this.$$p_d,"toAttribute");s==null?this.removeAttribute(this.$$p_d[n].attribute||n):this.setAttribute(this.$$p_d[n].attribute||n,s)}this.$$r=!1})});for(const n in this.$$l)for(const s of this.$$l[n]){const i=this.$$c.$on(n,s);this.$$l_u.set(s,i)}this.$$l={}}}attributeChangedCallback(e,t,r){this.$$r||(e=this.$$g_p(e),this.$$d[e]=Ot(e,r,this.$$p_d,"toProp"),this.$$c?.$set({[e]:this.$$d[e]}))}disconnectedCallback(){this.$$cn=!1,Promise.resolve().then(()=>{!this.$$cn&&this.$$c&&(this.$$c.$destroy(),this.$$me(),this.$$c=void 0)})}$$g_p(e){return pt(this.$$p_d).find(t=>this.$$p_d[t].attribute===e||!this.$$p_d[t].attribute&&t.toLowerCase()===e)||e}});function Ot(e,t,r,n){const s=r[e]?.type;if(t=s==="Boolean"&&typeof t!="boolean"?t!=null:t,!n||!r[e])return t;if(n==="toAttribute")switch(s){case"Object":case"Array":return t==null?null:JSON.stringify(t);case"Boolean":return t?"":null;case"Number":return t??null;default:return t}else switch(s){case"Object":case"Array":return t&&JSON.parse(t);case"Boolean":return t;case"Number":return t!=null?+t:t;default:return t}}function Ks(e){const t={};return e.childNodes.forEach(r=>{t[r.slot||"default"]=!0}),t}function En(e,t,r,n,s,i){let o=class extends $n{constructor(){super(e,r,s),this.$$p_d=t}static get observedAttributes(){return pt(t).map(a=>(t[a].attribute||a).toLowerCase())}};return pt(t).forEach(a=>{gt(o.prototype,a,{get(){return this.$$c&&a in this.$$c?this.$$c[a]:this.$$d[a]},set(l){l=Ot(a,l,t),this.$$d[a]=l;var f=this.$$c;if(f){var v=Le(f,a)?.get;v?f[a]=l:f.$set({[a]:l})}}})}),n.forEach(a=>{gt(o.prototype,a,{get(){return this.$$c?.[a]}})}),e.element=o,o}var ze={},kn;function Xs(){if(kn)return ze;kn=1,Object.defineProperty(ze,"__esModule",{value:!0}),ze.LanguageTranslator=void 0,ze.getChildStyleToPass=e,ze.addComponent=t;function e(n,s){var i,o,a="";try{if(n&&s?.length&&(!((i=Object.keys(n))===null||i===void 0)&&i.length)&&(!((o=s?.filter(function(u){return Object.keys(n).includes(u.name)}))===null||o===void 0)&&o.length))for(var l=function(u){var c=s?.filter(function(_){return _.name===u&&_.defaultValue!==n[u]});c&&(a+="".concat(u,":").concat(n[u],";"))},f=0,v=Object.keys(n);f<v.length;f++){var d=v[f];l(d)}}catch(u){console.error("error getting child style to pass",u)}finally{return a}}function t(n){var s,i=((s=n?.repoName.split("/"))===null||s===void 0?void 0:s[1])||n?.repoName;if(!i)throw new Error("wrong componentPath "+n?.repoName);if(!n?.version)throw new Error("wrong version "+n?.version);var o=n?.iifePath||"main.iife.js";if(!document.getElementById(i+"-script"))try{var a=document.createElement("script");if(a.id=i+"-script",a.src="https://cdn.jsdelivr.net/npm/".concat(n.repoName,"@").concat(n.version,"/").concat(o),n?.local)a.src="".concat(n.local);else if(location.href.includes("localhost:6006")){var l=i.split("-")[0];a.src="http://localhost:6006/webcomponents/".concat(i.replace(l+"-",""),"/").concat(o)}document.head.appendChild(a)}catch(f){console.warn(f)}}var r=(function(){function n(s){if(this.lang="",!s?.dictionary)throw new Error("no dictionary provided");this.dictionary=s.dictionary,this.setLang(s?.lang)}return n.prototype.setLang=function(s){s||(s=n.getDefaultLang()),this.lang=s},n.prototype.translateWord=function(s,i){return n.getDictionaryWord(s,this.dictionary,i||this.lang)},n.prototype.translateDate=function(s,i,o){return n.formatDate(s,i,o||this.lang)},n.getDefaultLang=function(){var s,i,o,a="en";return navigator?.languages&&(!((o=(i=(s=navigator.languages[0])===null||s===void 0?void 0:s.split("-")[0])===null||i===void 0?void 0:i.toLowerCase())===null||o===void 0)&&o.length)&&(a=navigator.languages[0].split("-")[0].toLowerCase()),a},n.getDictionaryWord=function(s,i,o){var a;if(!s)throw new Error("no wordKey provided");if(!i)throw new Error("no dictionary provided");if(o&&(!((a=i[o])===null||a===void 0)&&a[s]))return i[o][s];var l="",f=n.getDefaultLang();if(!o||f!==o){var v=i?.[f];v?.[s]&&(l=v[s])}return l},n.formatDate=function(s,i,o){if(!s)throw new Error("no date provided");if(typeof s.getMonth!="function")throw new Error("wrong date format");var a=new Intl.DateTimeFormat(o||n.getDefaultLang(),i);return a.format(s)},n})();return ze.LanguageTranslator=r,ze}Xs();var Zs=V('<span class="jn-popover svelte-2u2vu2">copied</span>'),Qs=V('<span class="jn-key svelte-2u2vu2" role="button" tabindex="0" title="Copia JSON"> </span><!> <span class="jn-sep svelte-2u2vu2">:</span>',1),ei=V('<div class="jn-row svelte-2u2vu2"><!> <span> </span></div>'),ti=V('<span class="jn-popover svelte-2u2vu2">copied</span>'),ri=V('<span class="jn-key svelte-2u2vu2" role="button" tabindex="0" title="Copia JSON"> </span><!> <span class="jn-sep svelte-2u2vu2">:</span>',1),ni=V('<span class="jn-popover svelte-2u2vu2">copied</span>'),si=V('<span class="jn-bracket svelte-2u2vu2">[</span>'),ii=V('<span class="jn-bracket svelte-2u2vu2"></span>'),oi=V(']<span class="jn-trailing"></span>',1),ai=V(' <span class="jn-trailing"></span>',1),li=V('<div class="jn-children svelte-2u2vu2"></div> <div class="jn-close svelte-2u2vu2"><!></div>',1),fi=V('<div class="jn-node svelte-2u2vu2"><div class="jn-header svelte-2u2vu2"><span class="jn-actions svelte-2u2vu2"><button class="jn-btn jn-toggle-btn svelte-2u2vu2"> </button></span> <!> <span class="jn-type svelte-2u2vu2" role="button" tabindex="0" title="Copia JSON"> </span><!> <!></div> <!></div>');const ui={hash:"svelte-2u2vu2",code:`.jn-row.svelte-2u2vu2 {font-family:ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas,
3
- "Liberation Mono", "Courier New", monospace;line-height:1.5;}.jn-node.svelte-2u2vu2 {margin-left:0.75rem;}.jn-header.svelte-2u2vu2 {display:inline-flex;align-items:baseline;gap:0.25rem;}.jn-actions.svelte-2u2vu2 {display:inline-flex;gap:0.25rem;margin-right:0.25rem;}.jn-btn.svelte-2u2vu2 {cursor:pointer;border:1px solid var(--jn-button-border);border-radius:4px;background:transparent;color:inherit;width:1.25rem;height:1.25rem;display:inline-flex;align-items:center;justify-content:center;font-size:0.85rem;line-height:1;padding:0;}.jn-btn.svelte-2u2vu2:hover {background-color:var(--jn-button-hover-bg);}.jn-key.svelte-2u2vu2 {cursor:pointer;}.jn-key.svelte-2u2vu2 {color:var(--jn-key);}.jn-sep.svelte-2u2vu2 {color:var(--jn-sep);}.jn-type.svelte-2u2vu2 {color:var(--jn-type);cursor:pointer;}.jn-popover.svelte-2u2vu2 {display:inline-block;margin-left:0.25rem;padding:0 0.35rem;border-radius:999px;font-size:0.7rem;line-height:1.4;color:var(--jn-popover-text);background-color:var(--jn-popover-bg);border:1px solid var(--jn-popover-border);vertical-align:middle;user-select:none;}.jn-bracket.svelte-2u2vu2 {color:var(--jn-bracket);}.jn-children.svelte-2u2vu2 {margin-left:1rem;border-left:1px dashed var(--jn-children-border);padding-left:0.75rem;}.jn-close.svelte-2u2vu2 {margin-left:0.75rem;color:var(--jn-close);}.jn-string.svelte-2u2vu2 {color:var(--jn-string);}.jn-number.svelte-2u2vu2 {color:var(--jn-number);}.jn-boolean.svelte-2u2vu2 {color:var(--jn-boolean);}.jn-undefined.svelte-2u2vu2 {color:var(--jn-undefined);font-style:italic;}.jn-symbol.svelte-2u2vu2 {color:var(--jn-symbol);}`};function or(e,t){Yt(t,!0),mn(e,ui);let r=Re(t,"keyPath",23,()=>[]),n=Re(t,"value",7),s=Re(t,"name",7,null),i=Re(t,"collapsed",7),o=Re(t,"status",7,"open");const a=h=>h!==null&&typeof h=="object"&&!Array.isArray(h),l=h=>Array.isArray(h),f=h=>!a(h)&&!l(h);function v(h){return h===null?"null":l(h)?`Array(${h.length})`:a(h)?"Object":typeof h}function d(h){return typeof h=="string"?`"${h}"`:h===null?"null":typeof h>"u"?"undefined":typeof h=="bigint"?h.toString()+"n":typeof h=="symbol"?h.toString():String(h)}function u(h){return l(h)?h.map((A,be)=>[be,A]):a(h)?Object.entries(h):[]}function c(h,A){return h==="open"?!1:h==="closed"?!0:A>0}const _=r().length;let b=K(Oe(i()??c(o(),_)));Wr(()=>{i()===void 0&&D(b,c(o(),_),!0)});function p(){D(b,!E(b))}function I(h){const A=new WeakSet;try{return JSON.stringify(h,(be,oe)=>{if(typeof oe=="object"&&oe!==null){if(A.has(oe))return"[Circular]";A.add(oe)}return oe},2)}catch{return String(h)}}async function k(){const h=I(n());try{navigator.clipboard&&navigator.clipboard.writeText?await navigator.clipboard.writeText(h):console.error("unsupported copying node")}catch(A){console.error("error copying node",A)}}let y=K(null),T=K(!1),j=null;function se(h){D(y,h,!0),D(T,!0),j!==null&&window.clearTimeout(j),j=window.setTimeout(()=>{D(T,!1),D(y,null),j=null},1e3)}async function F(h){await k(),se(h)}function ie(h,A){(h.key==="Enter"||h.key===" ")&&(h.preventDefault(),h.stopPropagation(),F(A))}var W={get keyPath(){return r()},set keyPath(h=[]){r(h),ke()},get value(){return n()},set value(h){n(h),ke()},get name(){return s()},set name(h=null){s(h),ke()},get collapsed(){return i()},set collapsed(h){i(h),ke()},get status(){return o()},set status(h="open"){o(h),ke()}},Me=Cs(),We=ct(Me);{var Je=h=>{var A=ei(),be=ne(A);{var oe=De=>{var Rt=Qs(),ae=ct(Rt);ae.__click=pe=>{pe.stopPropagation(),F("key")},ae.__keydown=pe=>{pe.stopPropagation(),ie(pe,"key")};var fr=ne(ae,!0);J(ae);var Mt=ue(ae);{var ur=pe=>{var cr=Zs();M(pe,cr)};he(Mt,pe=>{E(T)&&E(y)==="key"&&pe(ur)})}at(2),At(()=>_t(fr,s())),M(De,Rt)};he(be,De=>{s()!==null&&De(oe)})}var Te=ue(be,2),lr=ne(Te,!0);J(Te),J(A),At(De=>{Us(Te,1,`jn-val ${"jn-"+(typeof n()=="string"?"string":typeof n())}`,"svelte-2u2vu2"),_t(lr,De)},[()=>d(n())]),M(h,A)},ar=h=>{var A=fi(),be=ne(A),oe=ne(be),Te=ne(oe);Te.__click=x=>{x.stopPropagation(),p()};var lr=ne(Te,!0);J(Te),J(oe);var De=ue(oe,2);{var Rt=x=>{var Q=ri(),Se=ct(Q);Se.__click=ge=>{ge.stopPropagation(),F("key")},Se.__keydown=ge=>{ge.stopPropagation(),ie(ge,"key")};var Dt=ne(Se,!0);J(Se);var dr=ue(Se);{var vr=ge=>{var me=ti();M(ge,me)};he(dr,ge=>{E(T)&&E(y)==="key"&&ge(vr)})}at(2),At(()=>_t(Dt,s())),M(x,Q)};he(De,x=>{s()!==null&&x(Rt)})}var ae=ue(De,2);ae.__click=x=>{x.stopPropagation(),F("type")},ae.__keydown=x=>{x.stopPropagation(),ie(x,"type")};var fr=ne(ae,!0);J(ae);var Mt=ue(ae);{var ur=x=>{var Q=ni();M(x,Q)};he(Mt,x=>{E(T)&&E(y)==="type"&&x(ur)})}var pe=ue(Mt,2);{var cr=x=>{var Q=si();M(x,Q)},hi=x=>{var Q=ii();Q.textContent="{",M(x,Q)};he(pe,x=>{l(n())?x(cr):x(hi,!1)})}J(be);var _i=ue(be,2);{var bi=x=>{var Q=li(),Se=ct(Q);Is(Se,21,()=>u(n()),Ds,(me,st)=>{var Lt=Gt(()=>Un(E(st),2));let jn=()=>E(Lt)[0],pi=()=>E(Lt)[1];{let gi=Gt(()=>[...r(),jn()]),mi=Gt(()=>c(o(),_+1));or(me,{get name(){return jn()},get value(){return pi()},get keyPath(){return E(gi)},get status(){return o()},get collapsed(){return E(mi)}})}}),J(Se);var Dt=ue(Se,2),dr=ne(Dt);{var vr=me=>{var st=oi();at(),M(me,st)},ge=me=>{var st=ai(),Lt=ct(st,!0);Lt.nodeValue="}",at(),M(me,st)};he(dr,me=>{l(n())?me(vr):me(ge,!1)})}J(Dt),M(x,Q)};he(_i,x=>{E(b)||x(bi)})}J(A),At(x=>{yn(Te,"aria-label",E(b)?"Espandi":"Comprimi"),yn(Te,"title",E(b)?"Espandi":"Comprimi"),_t(lr,E(b)?"+":"-"),_t(fr,x)},[()=>v(n())]),M(h,A)};he(We,h=>{f(n())?h(Je):h(ar,!1)})}return M(e,Me),zt(W)}Ss(["click","keydown"]),En(or,{keyPath:{},value:{},name:{},collapsed:{},status:{}},[],[],!0);var ci=V('<div class="jn-empty svelte-g7b435">No data</div>'),di=V('<div class="hb-json-viewer svelte-g7b435"><!> <!></div>');const vi={hash:"svelte-g7b435",code:`@import url("https://fonts.googleapis.com/css2?family=Roboto:ital,wght@0,100;0,300;0,400;0,500;0,700;0,900;1,100;1,300;1,400;1,500;1,700;1,900&display=swap");:host {font-family:"Roboto", sans-serif;--jn-key: #6f42c1;--jn-sep: #8b949e;--jn-type: #1f6feb;--jn-bracket: #8b949e;--jn-children-border: rgba(128, 128, 128, .3);--jn-close: #8b949e;--jn-string: #0a7;--jn-number: #d19a66;--jn-boolean: #56b6c2;--jn-undefined: #8b949e;--jn-symbol: #8b949e;--jn-button-border: rgba(128, 128, 128, .3);--jn-button-hover-bg: rgba(128, 128, 128, .1);--jn-popover-text: #0f5132;--jn-popover-bg: #d1e7dd;--jn-popover-border: #badbcc;}
1
+ (function(_r){"use strict";typeof window<"u"&&((window.__svelte??={}).v??=new Set).add("5");const xn=1,jn=2,Tn=16,Sn=1,An=4,Cn=8,Nn=16,Pn=1,On=2,pr="[",_t="[!",Bt="]",Je={},A=Symbol(),Rn="http://www.w3.org/1999/xhtml",qt=!1;var br=Array.isArray,Mn=Array.prototype.indexOf,Ut=Array.from,pt=Object.keys,bt=Object.defineProperty,Le=Object.getOwnPropertyDescriptor,Dn=Object.getOwnPropertyDescriptors,Ln=Object.prototype,In=Array.prototype,gr=Object.getPrototypeOf,mr=Object.isExtensible;function Fn(e){for(var t=0;t<e.length;t++)e[t]()}function yr(){var e,t,r=new Promise((n,i)=>{e=n,t=i});return{promise:r,resolve:e,reject:t}}function Bn(e,t){if(Array.isArray(e))return e;if(!(Symbol.iterator in e))return Array.from(e);const r=[];for(const n of e)if(r.push(n),r.length===t)break;return r}const S=2,Vt=4,Ht=8,ge=16,me=32,Ae=64,gt=128,te=512,C=1024,I=2048,ye=4096,U=8192,we=16384,mt=32768,Ge=65536,wr=1<<17,$r=1<<18,Ie=1<<19,qn=1<<20,Fe=32768,Yt=1<<21,zt=1<<22,Ce=1<<23,yt=Symbol("$state"),Er=Symbol("legacy props"),Un=Symbol(""),Ke=new class extends Error{name="StaleReactionError";message="The reaction that called `getAbortSignal()` was re-run or destroyed"},Wt=3,Xe=8;function Vn(){throw new Error("https://svelte.dev/e/async_derived_orphan")}function Hn(e){throw new Error("https://svelte.dev/e/effect_in_teardown")}function Yn(){throw new Error("https://svelte.dev/e/effect_in_unowned_derived")}function zn(e){throw new Error("https://svelte.dev/e/effect_orphan")}function Wn(){throw new Error("https://svelte.dev/e/effect_update_depth_exceeded")}function Jn(){throw new Error("https://svelte.dev/e/hydration_failed")}function Gn(e){throw new Error("https://svelte.dev/e/props_invalid_value")}function Kn(){throw new Error("https://svelte.dev/e/state_descriptors_fixed")}function Xn(){throw new Error("https://svelte.dev/e/state_prototype_fixed")}function Zn(){throw new Error("https://svelte.dev/e/state_unsafe_mutation")}function Qn(){throw new Error("https://svelte.dev/e/svelte_boundary_reset_onerror")}function wt(e){console.warn("https://svelte.dev/e/hydration_mismatch")}function ei(){console.warn("https://svelte.dev/e/svelte_boundary_reset_noop")}let m=!1;function $e(e){m=e}let y;function F(e){if(e===null)throw wt(),Je;return y=e}function it(){return F(oe(y))}function Y(e){if(m){if(oe(y)!==null)throw wt(),Je;y=e}}function st(e=1){if(m){for(var t=e,r=y;t--;)r=oe(r);y=r}}function $t(e=!0){for(var t=0,r=y;;){if(r.nodeType===Xe){var n=r.data;if(n===Bt){if(t===0)return r;t-=1}else(n===pr||n===_t)&&(t+=1)}var i=oe(r);e&&r.remove(),r=i}}function kr(e){if(!e||e.nodeType!==Xe)throw wt(),Je;return e.data}function xr(e){return e===this.v}function ti(e,t){return e!=e?t==t:e!==t||e!==null&&typeof e=="object"||typeof e=="function"}function jr(e){return!ti(e,this.v)}let ri=!1,z=null;function Ze(e){z=e}function Jt(e,t=!1,r){z={p:z,i:!1,c:null,e:null,s:e,x:null,l:null}}function Gt(e){var t=z,r=t.e;if(r!==null){t.e=null;for(var n of r)Jr(n)}return e!==void 0&&(t.x=e),t.i=!0,z=t.p,e??{}}function Tr(){return!0}let Be=[];function Sr(){var e=Be;Be=[],Fn(e)}function Kt(e){if(Be.length===0&&!at){var t=Be;queueMicrotask(()=>{t===Be&&Sr()})}Be.push(e)}function ni(){for(;Be.length>0;)Sr()}function Ar(e){var t=b;if(t===null)return p.f|=Ce,e;if((t.f&mt)===0){if((t.f&gt)===0)throw e;t.b.error(e)}else Qe(e,t)}function Qe(e,t){for(;t!==null;){if((t.f&gt)!==0)try{t.b.error(e);return}catch(r){e=r}t=t.parent}throw e}const Et=new Set;let k=null,W=null,J=[],kt=null,Xt=!1,at=!1;class re{committed=!1;current=new Map;previous=new Map;#t=new Set;#e=new Set;#r=0;#n=0;#l=null;#s=[];#i=[];skipped_effects=new Set;is_fork=!1;is_deferred(){return this.is_fork||this.#n>0}process(t){J=[],this.apply();var r={parent:null,effect:null,effects:[],render_effects:[],block_effects:[]};for(const n of t)this.#a(n,r);this.is_fork||this.#u(),this.is_deferred()?(this.#o(r.effects),this.#o(r.render_effects),this.#o(r.block_effects)):(k=null,Nr(r.render_effects),Nr(r.effects),this.#l?.resolve()),W=null}#a(t,r){t.f^=C;for(var n=t.first;n!==null;){var i=n.f,s=(i&(me|Ae))!==0,a=s&&(i&C)!==0,o=a||(i&U)!==0||this.skipped_effects.has(n);if((n.f&gt)!==0&&n.b?.is_pending()&&(r={parent:r,effect:n,effects:[],render_effects:[],block_effects:[]}),!o&&n.fn!==null){s?n.f^=C:(i&Vt)!==0?r.effects.push(n):ct(n)&&((n.f&ge)!==0&&r.block_effects.push(n),dt(n));var l=n.first;if(l!==null){n=l;continue}}var f=n.parent;for(n=n.next;n===null&&f!==null;)f===r.effect&&(this.#o(r.effects),this.#o(r.render_effects),this.#o(r.block_effects),r=r.parent),n=f.next,f=f.parent}}#o(t){for(const r of t)((r.f&I)!==0?this.#s:this.#i).push(r),this.#f(r.deps),N(r,C)}#f(t){if(t!==null)for(const r of t)(r.f&S)===0||(r.f&Fe)===0||(r.f^=Fe,this.#f(r.deps))}capture(t,r){this.previous.has(t)||this.previous.set(t,r),(t.f&Ce)===0&&(this.current.set(t,t.v),W?.set(t,t.v))}activate(){k=this,this.apply()}deactivate(){k===this&&(k=null,W=null)}flush(){if(this.activate(),J.length>0){if(Cr(),k!==null&&k!==this)return}else this.#r===0&&this.process([]);this.deactivate()}discard(){for(const t of this.#e)t(this);this.#e.clear()}#u(){if(this.#n===0){for(const t of this.#t)t();this.#t.clear()}this.#r===0&&this.#c()}#c(){if(Et.size>1){this.previous.clear();var t=W,r=!0,n={parent:null,effect:null,effects:[],render_effects:[],block_effects:[]};for(const s of Et){if(s===this){r=!1;continue}const a=[];for(const[l,f]of this.current){if(s.current.has(l))if(r&&f!==s.current.get(l))s.current.set(l,f);else continue;a.push(l)}if(a.length===0)continue;const o=[...s.current.keys()].filter(l=>!this.current.has(l));if(o.length>0){var i=J;J=[];const l=new Set,f=new Map;for(const u of a)Pr(u,o,l,f);if(J.length>0){k=s,s.apply();for(const u of J)s.#a(u,n);s.deactivate()}J=i}}k=null,W=t}this.committed=!0,Et.delete(this)}increment(t){this.#r+=1,t&&(this.#n+=1)}decrement(t){this.#r-=1,t&&(this.#n-=1),this.revive()}revive(){for(const t of this.#s)N(t,I),qe(t);for(const t of this.#i)N(t,ye),qe(t);this.#s=[],this.#i=[],this.flush()}oncommit(t){this.#t.add(t)}ondiscard(t){this.#e.add(t)}settled(){return(this.#l??=yr()).promise}static ensure(){if(k===null){const t=k=new re;Et.add(k),at||re.enqueue(()=>{k===t&&t.flush()})}return k}static enqueue(t){Kt(t)}apply(){}}function Ee(e){var t=at;at=!0;try{for(var r;;){if(ni(),J.length===0&&(k?.flush(),J.length===0))return kt=null,r;Cr()}}finally{at=t}}function Cr(){var e=Oe;Xt=!0;var t=null;try{var r=0;for(At(!0);J.length>0;){var n=re.ensure();if(r++>1e3){var i,s;ii()}n.process(J),Ne.clear()}}finally{Xt=!1,At(e),kt=null}}function ii(){try{Wn()}catch(e){Qe(e,kt)}}let ke=null;function Nr(e){var t=e.length;if(t!==0){for(var r=0;r<t;){var n=e[r++];if((n.f&(we|U))===0&&ct(n)&&(ke=new Set,dt(n),n.deps===null&&n.first===null&&n.nodes_start===null&&(n.teardown===null&&n.ac===null?Zr(n):n.fn=null),ke?.size>0)){Ne.clear();for(const i of ke){if((i.f&(we|U))!==0)continue;const s=[i];let a=i.parent;for(;a!==null;)ke.has(a)&&(ke.delete(a),s.push(a)),a=a.parent;for(let o=s.length-1;o>=0;o--){const l=s[o];(l.f&(we|U))===0&&dt(l)}}ke.clear()}}ke=null}}function Pr(e,t,r,n){if(!r.has(e)&&(r.add(e),e.reactions!==null))for(const i of e.reactions){const s=i.f;(s&S)!==0?Pr(i,t,r,n):(s&(zt|ge))!==0&&(s&I)===0&&Or(i,t,n)&&(N(i,I),qe(i))}}function Or(e,t,r){const n=r.get(e);if(n!==void 0)return n;if(e.deps!==null)for(const i of e.deps){if(t.includes(i))return!0;if((i.f&S)!==0&&Or(i,t,r))return r.set(i,!0),!0}return r.set(e,!1),!1}function qe(e){for(var t=kt=e;t.parent!==null;){t=t.parent;var r=t.f;if(Xt&&t===b&&(r&ge)!==0&&(r&$r)===0)return;if((r&(Ae|me))!==0){if((r&C)===0)return;t.f^=C}}J.push(t)}function si(e){let t=0,r=Ue(0),n;return()=>{Tt()&&(w(r),Gr(()=>(t===0&&(n=dn(()=>e(()=>lt(r)))),t+=1,()=>{Kt(()=>{t-=1,t===0&&(n?.(),n=void 0,lt(r))})})))}}var ai=Ge|Ie|gt;function oi(e,t,r){new li(e,t,r)}class li{parent;#t=!1;#e;#r=m?y:null;#n;#l;#s;#i=null;#a=null;#o=null;#f=null;#u=null;#c=0;#d=0;#h=!1;#v=null;#m=si(()=>(this.#v=Ue(this.#c),()=>{this.#v=null}));constructor(t,r,n){this.#e=t,this.#n=r,this.#l=n,this.parent=b.b,this.#t=!!this.#n.pending,this.#s=nr(()=>{if(b.b=this,m){const s=this.#r;it(),s.nodeType===Xe&&s.data===_t?this.#w():this.#y()}else{var i=this.#b();try{this.#i=X(()=>n(i))}catch(s){this.error(s)}this.#d>0?this.#p():this.#t=!1}return()=>{this.#u?.remove()}},ai),m&&(this.#e=y)}#y(){try{this.#i=X(()=>this.#l(this.#e))}catch(t){this.error(t)}this.#t=!1}#w(){const t=this.#n.pending;t&&(this.#a=X(()=>t(this.#e)),re.enqueue(()=>{var r=this.#b();this.#i=this.#_(()=>(re.ensure(),X(()=>this.#l(r)))),this.#d>0?this.#p():(et(this.#a,()=>{this.#a=null}),this.#t=!1)}))}#b(){var t=this.#e;return this.#t&&(this.#u=K(),this.#e.before(this.#u),t=this.#u),t}is_pending(){return this.#t||!!this.parent&&this.parent.is_pending()}has_pending_snippet(){return!!this.#n.pending}#_(t){var r=b,n=p,i=z;ce(this.#s),B(this.#s),Ze(this.#s.ctx);try{return t()}catch(s){return Ar(s),null}finally{ce(r),B(n),Ze(i)}}#p(){const t=this.#n.pending;this.#i!==null&&(this.#f=document.createDocumentFragment(),this.#f.append(this.#u),tn(this.#i,this.#f)),this.#a===null&&(this.#a=X(()=>t(this.#e)))}#g(t){if(!this.has_pending_snippet()){this.parent&&this.parent.#g(t);return}this.#d+=t,this.#d===0&&(this.#t=!1,this.#a&&et(this.#a,()=>{this.#a=null}),this.#f&&(this.#e.before(this.#f),this.#f=null))}update_pending_count(t){this.#g(t),this.#c+=t,this.#v&&ot(this.#v,this.#c)}get_effect_pending(){return this.#m(),w(this.#v)}error(t){var r=this.#n.onerror;let n=this.#n.failed;if(this.#h||!r&&!n)throw t;this.#i&&(R(this.#i),this.#i=null),this.#a&&(R(this.#a),this.#a=null),this.#o&&(R(this.#o),this.#o=null),m&&(F(this.#r),st(),F($t()));var i=!1,s=!1;const a=()=>{if(i){ei();return}i=!0,s&&Qn(),re.ensure(),this.#c=0,this.#o!==null&&et(this.#o,()=>{this.#o=null}),this.#t=this.has_pending_snippet(),this.#i=this.#_(()=>(this.#h=!1,X(()=>this.#l(this.#e)))),this.#d>0?this.#p():this.#t=!1};var o=p;try{B(null),s=!0,r?.(t,a),s=!1}catch(l){Qe(l,this.#s&&this.#s.parent)}finally{B(o)}n&&Kt(()=>{this.#o=this.#_(()=>{re.ensure(),this.#h=!0;try{return X(()=>{n(this.#e,()=>t,()=>a)})}catch(l){return Qe(l,this.#s.parent),null}finally{this.#h=!1}})})}}function fi(e,t){return t}function ui(e,t,r){for(var n=[],i=t.length,s=0;s<i;s++)ir(t[s].e,n,!0);Qr(n,()=>{var a=n.length===0&&r!==null;if(a){var o=r,l=o.parentNode;Hr(l),l.append(o),e.items.clear(),ae(e,t[0].prev,t[i-1].next)}for(var f=0;f<i;f++){var u=t[f];a||(e.items.delete(u.k),ae(e,u.prev,u.next)),R(u.e,!a)}e.first===t[0]&&(e.first=t[0].prev)})}function ci(e,t,r,n,i,s=null){var a=e,o=new Map,l=null;{var f=e;a=m?F(Ve(f)):f.appendChild(K())}m&&it();var u=null,c=Rr(()=>{var x=r();return br(x)?x:x==null?[]:Ut(x)}),d,v=!0;function _(){di(j,d,a,t,n),u!==null&&(d.length===0?(u.fragment?(a.before(u.fragment),u.fragment=null):sr(u.effect),g.first=u.effect):et(u.effect,()=>{u=null}))}var g=nr(()=>{d=w(c);var x=d.length;let $=!1;if(m){var D=kr(a)===_t;D!==(x===0)&&(a=$t(),F(a),$e(!1),$=!0)}for(var L=new Set,H=k,Me=null,je=Yr(),ve=0;ve<x;ve+=1){m&&y.nodeType===Xe&&y.data===Bt&&(a=y,$=!0,$e(!1));var ht=d[ve],We=n(ht,ve),Q=v?null:o.get(We);Q?(ot(Q.v,ht),Q.i=ve,je&&H.skipped_effects.delete(Q.e)):(Q=vi(v?a:null,Me,ht,We,ve,i,t,r),v&&(Q.o=!0,Me===null?l=Q:Me.next=Q,Me=Q),o.set(We,Q)),L.add(We)}if(x===0&&s&&!u)if(v)u={fragment:null,effect:X(()=>s(a))};else{var Rt=document.createDocumentFragment(),Mt=K();Rt.append(Mt),u={fragment:Rt,effect:X(()=>s(Mt))}}if(m&&x>0&&F($t()),!v)if(je){for(const[h,T]of o)L.has(h)||H.skipped_effects.add(T.e);H.oncommit(_),H.ondiscard(()=>{})}else _();$&&$e(!0),w(c)}),j={effect:g,items:o,first:l};v=!1,m&&(a=y)}function di(e,t,r,n,i){var s=t.length,a=e.items,o=e.first,l,f=null,u=[],c=[],d,v,_,g;for(g=0;g<s;g+=1){if(d=t[g],v=i(d,g),_=a.get(v),e.first??=_,!_.o){_.o=!0;var j=f?f.next:o;ae(e,f,_),ae(e,_,j),Zt(_,j,r),f=_,u=[],c=[],o=f.next;continue}if((_.e.f&U)!==0&&sr(_.e),_!==o){if(l!==void 0&&l.has(_)){if(u.length<c.length){var x=c[0],$;f=x.prev;var D=u[0],L=u[u.length-1];for($=0;$<u.length;$+=1)Zt(u[$],x,r);for($=0;$<c.length;$+=1)l.delete(c[$]);ae(e,D.prev,L.next),ae(e,f,D),ae(e,L,x),o=x,f=L,g-=1,u=[],c=[]}else l.delete(_),Zt(_,o,r),ae(e,_.prev,_.next),ae(e,_,f===null?e.first:f.next),ae(e,f,_),f=_;continue}for(u=[],c=[];o!==null&&o.k!==v;)(o.e.f&U)===0&&(l??=new Set).add(o),c.push(o),o=o.next;if(o===null)continue;_=o}u.push(_),f=_,o=_.next}if(o!==null||l!==void 0){for(var H=l===void 0?[]:Ut(l);o!==null;)(o.e.f&U)===0&&H.push(o),o=o.next;var Me=H.length;if(Me>0){var je=s===0?r:null;ui(e,H,je)}}}function vi(e,t,r,n,i,s,a,o){var l=(a&xn)!==0,f=(a&Tn)===0,u=l?f?Ir(r,!1,!1):Ue(r):r,c=(a&jn)===0?i:Ue(i),d={i:c,v:u,k:n,a:null,e:null,o:!1,prev:t,next:null};try{if(e===null){var v=document.createDocumentFragment();v.append(e=K())}return d.e=X(()=>s(e,u,c,o)),t!==null&&(t.next=d),d}finally{}}function Zt(e,t,r){for(var n=e.next?e.next.e.nodes_start:r,i=t?t.e.nodes_start:r,s=e.e.nodes_start;s!==null&&s!==n;){var a=oe(s);i.before(s),s=a}}function ae(e,t,r){t===null?(e.first=r,e.effect.first=r&&r.e):(t.e.next&&(t.e.next.prev=null),t.next=r,t.e.next=r&&r.e),r===null?e.effect.last=t&&t.e:(r.e.prev&&(r.e.prev.next=null),r.prev=t,r.e.prev=t&&t.e)}function hi(e,t,r,n){const i=jt;if(r.length===0&&e.length===0){n(t.map(i));return}var s=k,a=b,o=_i();function l(){Promise.all(r.map(f=>pi(f))).then(f=>{o();try{n([...t.map(i),...f])}catch(u){(a.f&we)===0&&Qe(u,a)}s?.deactivate(),xt()}).catch(f=>{Qe(f,a)})}e.length>0?Promise.all(e).then(()=>{o();try{return l()}finally{s?.deactivate(),xt()}}):l()}function _i(){var e=b,t=p,r=z,n=k;return function(s=!0){ce(e),B(t),Ze(r),s&&n?.activate()}}function xt(){ce(null),B(null),Ze(null)}function jt(e){var t=S|I,r=p!==null&&(p.f&S)!==0?p:null;return b!==null&&(b.f|=Ie),{ctx:z,deps:null,effects:null,equals:xr,f:t,fn:e,reactions:null,rv:0,v:A,wv:0,parent:r??b,ac:null}}function pi(e,t){let r=b;r===null&&Vn();var n=r.b,i=void 0,s=Ue(A),a=!p,o=new Map;return xi(()=>{var l=yr();i=l.promise;try{Promise.resolve(e()).then(l.resolve,l.reject).then(()=>{f===k&&f.committed&&f.deactivate(),xt()})}catch(d){l.reject(d),xt()}var f=k;if(a){var u=!n.is_pending();n.update_pending_count(1),f.increment(u),o.get(f)?.reject(Ke),o.delete(f),o.set(f,l)}const c=(d,v=void 0)=>{if(f.activate(),v)v!==Ke&&(s.f|=Ce,ot(s,v));else{(s.f&Ce)!==0&&(s.f^=Ce),ot(s,d);for(const[_,g]of o){if(o.delete(_),_===f)break;g.reject(Ke)}}a&&(n.update_pending_count(-1),f.decrement(u))};l.promise.then(c,d=>c(null,d||"unknown"))}),wi(()=>{for(const l of o.values())l.reject(Ke)}),new Promise(l=>{function f(u){function c(){u===i?l(s):f(i)}u.then(c,c)}f(i)})}function Qt(e){const t=jt(e);return nn(t),t}function Rr(e){const t=jt(e);return t.equals=jr,t}function Mr(e){var t=e.effects;if(t!==null){e.effects=null;for(var r=0;r<t.length;r+=1)R(t[r])}}function bi(e){for(var t=e.parent;t!==null;){if((t.f&S)===0)return(t.f&we)===0?t:null;t=t.parent}return null}function er(e){var t,r=b;ce(bi(e));try{e.f&=~Fe,Mr(e),t=fn(e)}finally{ce(r)}return t}function Dr(e){var t=er(e);if(e.equals(t)||(k?.is_fork||(e.v=t),e.wv=on()),!He)if(W!==null)Tt()&&W.set(e,t);else{var r=(e.f&te)===0?ye:C;N(e,r)}}let tr=new Set;const Ne=new Map;let Lr=!1;function Ue(e,t){var r={f:0,v:e,reactions:null,equals:xr,rv:0,wv:0};return r}function G(e,t){const r=Ue(e);return nn(r),r}function Ir(e,t=!1,r=!0){const n=Ue(e);return t||(n.equals=jr),n}function O(e,t,r=!1){p!==null&&(!ue||(p.f&wr)!==0)&&Tr()&&(p.f&(S|ge|zt|wr))!==0&&!xe?.includes(e)&&Zn();let n=r?Pe(t):t;return ot(e,n)}function ot(e,t){if(!e.equals(t)){var r=e.v;He?Ne.set(e,t):Ne.set(e,r),e.v=t;var n=re.ensure();n.capture(e,r),(e.f&S)!==0&&((e.f&I)!==0&&er(e),N(e,(e.f&te)!==0?C:ye)),e.wv=on(),Fr(e,I),b!==null&&(b.f&C)!==0&&(b.f&(me|Ae))===0&&(Z===null?Si([e]):Z.push(e)),!n.is_fork&&tr.size>0&&!Lr&&gi()}return t}function gi(){Lr=!1;var e=Oe;At(!0);const t=Array.from(tr);try{for(const r of t)(r.f&C)!==0&&N(r,ye),ct(r)&&dt(r)}finally{At(e)}tr.clear()}function lt(e){O(e,e.v+1)}function Fr(e,t){var r=e.reactions;if(r!==null)for(var n=r.length,i=0;i<n;i++){var s=r[i],a=s.f,o=(a&I)===0;if(o&&N(s,t),(a&S)!==0){var l=s;W?.delete(l),(a&Fe)===0&&(a&te&&(s.f|=Fe),Fr(l,ye))}else o&&((a&ge)!==0&&ke!==null&&ke.add(s),qe(s))}}function Pe(e){if(typeof e!="object"||e===null||yt in e)return e;const t=gr(e);if(t!==Ln&&t!==In)return e;var r=new Map,n=br(e),i=G(0),s=Ye,a=o=>{if(Ye===s)return o();var l=p,f=Ye;B(null),an(s);var u=o();return B(l),an(f),u};return n&&r.set("length",G(e.length)),new Proxy(e,{defineProperty(o,l,f){(!("value"in f)||f.configurable===!1||f.enumerable===!1||f.writable===!1)&&Kn();var u=r.get(l);return u===void 0?u=a(()=>{var c=G(f.value);return r.set(l,c),c}):O(u,f.value,!0),!0},deleteProperty(o,l){var f=r.get(l);if(f===void 0){if(l in o){const u=a(()=>G(A));r.set(l,u),lt(i)}}else O(f,A),lt(i);return!0},get(o,l,f){if(l===yt)return e;var u=r.get(l),c=l in o;if(u===void 0&&(!c||Le(o,l)?.writable)&&(u=a(()=>{var v=Pe(c?o[l]:A),_=G(v);return _}),r.set(l,u)),u!==void 0){var d=w(u);return d===A?void 0:d}return Reflect.get(o,l,f)},getOwnPropertyDescriptor(o,l){var f=Reflect.getOwnPropertyDescriptor(o,l);if(f&&"value"in f){var u=r.get(l);u&&(f.value=w(u))}else if(f===void 0){var c=r.get(l),d=c?.v;if(c!==void 0&&d!==A)return{enumerable:!0,configurable:!0,value:d,writable:!0}}return f},has(o,l){if(l===yt)return!0;var f=r.get(l),u=f!==void 0&&f.v!==A||Reflect.has(o,l);if(f!==void 0||b!==null&&(!u||Le(o,l)?.writable)){f===void 0&&(f=a(()=>{var d=u?Pe(o[l]):A,v=G(d);return v}),r.set(l,f));var c=w(f);if(c===A)return!1}return u},set(o,l,f,u){var c=r.get(l),d=l in o;if(n&&l==="length")for(var v=f;v<c.v;v+=1){var _=r.get(v+"");_!==void 0?O(_,A):v in o&&(_=a(()=>G(A)),r.set(v+"",_))}if(c===void 0)(!d||Le(o,l)?.writable)&&(c=a(()=>G(void 0)),O(c,Pe(f)),r.set(l,c));else{d=c.v!==A;var g=a(()=>Pe(f));O(c,g)}var j=Reflect.getOwnPropertyDescriptor(o,l);if(j?.set&&j.set.call(u,f),!d){if(n&&typeof l=="string"){var x=r.get("length"),$=Number(l);Number.isInteger($)&&$>=x.v&&O(x,$+1)}lt(i)}return!0},ownKeys(o){w(i);var l=Reflect.ownKeys(o).filter(c=>{var d=r.get(c);return d===void 0||d.v!==A});for(var[f,u]of r)u.v!==A&&!(f in o)&&l.push(f);return l},setPrototypeOf(){Xn()}})}var Br,qr,Ur,Vr;function rr(){if(Br===void 0){Br=window,qr=/Firefox/.test(navigator.userAgent);var e=Element.prototype,t=Node.prototype,r=Text.prototype;Ur=Le(t,"firstChild").get,Vr=Le(t,"nextSibling").get,mr(e)&&(e.__click=void 0,e.__className=void 0,e.__attributes=null,e.__style=void 0,e.__e=void 0),mr(r)&&(r.__t=void 0)}}function K(e=""){return document.createTextNode(e)}function Ve(e){return Ur.call(e)}function oe(e){return Vr.call(e)}function ne(e,t){if(!m)return Ve(e);var r=Ve(y);if(r===null)r=y.appendChild(K());else if(t&&r.nodeType!==Wt){var n=K();return r?.before(n),F(n),n}return F(r),r}function ft(e,t=!1){if(!m){var r=Ve(e);return r instanceof Comment&&r.data===""?oe(r):r}if(t&&y?.nodeType!==Wt){var n=K();return y?.before(n),F(n),n}return y}function le(e,t=1,r=!1){let n=m?y:e;for(var i;t--;)i=n,n=oe(n);if(!m)return n;if(r&&n?.nodeType!==Wt){var s=K();return n===null?i?.after(s):n.before(s),F(s),s}return F(n),n}function Hr(e){e.textContent=""}function Yr(){return!1}function zr(e){var t=p,r=b;B(null),ce(null);try{return e()}finally{B(t),ce(r)}}function mi(e){b===null&&(p===null&&zn(),Yn()),He&&Hn()}function yi(e,t){var r=t.last;r===null?t.last=t.first=e:(r.next=e,e.prev=r,t.last=e)}function fe(e,t,r){var n=b;n!==null&&(n.f&U)!==0&&(e|=U);var i={ctx:z,deps:null,nodes_start:null,nodes_end:null,f:e|I|te,first:null,fn:t,last:null,next:null,parent:n,b:n&&n.b,prev:null,teardown:null,transitions:null,wv:0,ac:null};if(r)try{dt(i),i.f|=mt}catch(o){throw R(i),o}else t!==null&&qe(i);var s=i;if(r&&s.deps===null&&s.teardown===null&&s.nodes_start===null&&s.first===s.last&&(s.f&Ie)===0&&(s=s.first,(e&ge)!==0&&(e&Ge)!==0&&s!==null&&(s.f|=Ge)),s!==null&&(s.parent=n,n!==null&&yi(s,n),p!==null&&(p.f&S)!==0&&(e&Ae)===0)){var a=p;(a.effects??=[]).push(s)}return i}function Tt(){return p!==null&&!ue}function wi(e){const t=fe(Ht,null,!1);return N(t,C),t.teardown=e,t}function Wr(e){mi();var t=b.f,r=!p&&(t&me)!==0&&(t&mt)===0;if(r){var n=z;(n.e??=[]).push(e)}else return Jr(e)}function Jr(e){return fe(Vt|qn,e,!1)}function $i(e){re.ensure();const t=fe(Ae|Ie,e,!0);return()=>{R(t)}}function Ei(e){re.ensure();const t=fe(Ae|Ie,e,!0);return(r={})=>new Promise(n=>{r.outro?et(t,()=>{R(t),n(void 0)}):(R(t),n(void 0))})}function ki(e){return fe(Vt,e,!1)}function xi(e){return fe(zt|Ie,e,!0)}function Gr(e,t=0){return fe(Ht|t,e,!0)}function St(e,t=[],r=[],n=[]){hi(n,t,r,i=>{fe(Ht,()=>e(...i.map(w)),!0)})}function nr(e,t=0){var r=fe(ge|t,e,!0);return r}function X(e){return fe(me|Ie,e,!0)}function Kr(e){var t=e.teardown;if(t!==null){const r=He,n=p;rn(!0),B(null);try{t.call(null)}finally{rn(r),B(n)}}}function Xr(e,t=!1){var r=e.first;for(e.first=e.last=null;r!==null;){const i=r.ac;i!==null&&zr(()=>{i.abort(Ke)});var n=r.next;(r.f&Ae)!==0?r.parent=null:R(r,t),r=n}}function ji(e){for(var t=e.first;t!==null;){var r=t.next;(t.f&me)===0&&R(t),t=r}}function R(e,t=!0){var r=!1;(t||(e.f&$r)!==0)&&e.nodes_start!==null&&e.nodes_end!==null&&(Ti(e.nodes_start,e.nodes_end),r=!0),Xr(e,t&&!r),Ct(e,0),N(e,we);var n=e.transitions;if(n!==null)for(const s of n)s.stop();Kr(e);var i=e.parent;i!==null&&i.first!==null&&Zr(e),e.next=e.prev=e.teardown=e.ctx=e.deps=e.fn=e.nodes_start=e.nodes_end=e.ac=null}function Ti(e,t){for(;e!==null;){var r=e===t?null:oe(e);e.remove(),e=r}}function Zr(e){var t=e.parent,r=e.prev,n=e.next;r!==null&&(r.next=n),n!==null&&(n.prev=r),t!==null&&(t.first===e&&(t.first=n),t.last===e&&(t.last=r))}function et(e,t,r=!0){var n=[];ir(e,n,!0),Qr(n,()=>{r&&R(e),t&&t()})}function Qr(e,t){var r=e.length;if(r>0){var n=()=>--r||t();for(var i of e)i.out(n)}else t()}function ir(e,t,r){if((e.f&U)===0){if(e.f^=U,e.transitions!==null)for(const a of e.transitions)(a.is_global||r)&&t.push(a);for(var n=e.first;n!==null;){var i=n.next,s=(n.f&Ge)!==0||(n.f&me)!==0&&(e.f&ge)!==0;ir(n,t,s?r:!1),n=i}}}function sr(e){en(e,!0)}function en(e,t){if((e.f&U)!==0){e.f^=U,(e.f&C)===0&&(N(e,I),qe(e));for(var r=e.first;r!==null;){var n=r.next,i=(r.f&Ge)!==0||(r.f&me)!==0;en(r,i?t:!1),r=n}if(e.transitions!==null)for(const s of e.transitions)(s.is_global||t)&&s.in()}}function tn(e,t){for(var r=e.nodes_start,n=e.nodes_end;r!==null;){var i=r===n?null:oe(r);t.append(r),r=i}}let Oe=!1;function At(e){Oe=e}let He=!1;function rn(e){He=e}let p=null,ue=!1;function B(e){p=e}let b=null;function ce(e){b=e}let xe=null;function nn(e){p!==null&&(xe===null?xe=[e]:xe.push(e))}let M=null,V=0,Z=null;function Si(e){Z=e}let sn=1,ut=0,Ye=ut;function an(e){Ye=e}function on(){return++sn}function ct(e){var t=e.f;if((t&I)!==0)return!0;if(t&S&&(e.f&=~Fe),(t&ye)!==0){var r=e.deps;if(r!==null)for(var n=r.length,i=0;i<n;i++){var s=r[i];if(ct(s)&&Dr(s),s.wv>e.wv)return!0}(t&te)!==0&&W===null&&N(e,C)}return!1}function ln(e,t,r=!0){var n=e.reactions;if(n!==null&&!xe?.includes(e))for(var i=0;i<n.length;i++){var s=n[i];(s.f&S)!==0?ln(s,t,!1):t===s&&(r?N(s,I):(s.f&C)!==0&&N(s,ye),qe(s))}}function fn(e){var t=M,r=V,n=Z,i=p,s=xe,a=z,o=ue,l=Ye,f=e.f;M=null,V=0,Z=null,p=(f&(me|Ae))===0?e:null,xe=null,Ze(e.ctx),ue=!1,Ye=++ut,e.ac!==null&&(zr(()=>{e.ac.abort(Ke)}),e.ac=null);try{e.f|=Yt;var u=e.fn,c=u(),d=e.deps;if(M!==null){var v;if(Ct(e,V),d!==null&&V>0)for(d.length=V+M.length,v=0;v<M.length;v++)d[V+v]=M[v];else e.deps=d=M;if(Oe&&Tt()&&(e.f&te)!==0)for(v=V;v<d.length;v++)(d[v].reactions??=[]).push(e)}else d!==null&&V<d.length&&(Ct(e,V),d.length=V);if(Tr()&&Z!==null&&!ue&&d!==null&&(e.f&(S|ye|I))===0)for(v=0;v<Z.length;v++)ln(Z[v],e);return i!==null&&i!==e&&(ut++,Z!==null&&(n===null?n=Z:n.push(...Z))),(e.f&Ce)!==0&&(e.f^=Ce),c}catch(_){return Ar(_)}finally{e.f^=Yt,M=t,V=r,Z=n,p=i,xe=s,Ze(a),ue=o,Ye=l}}function Ai(e,t){let r=t.reactions;if(r!==null){var n=Mn.call(r,e);if(n!==-1){var i=r.length-1;i===0?r=t.reactions=null:(r[n]=r[i],r.pop())}}r===null&&(t.f&S)!==0&&(M===null||!M.includes(t))&&(N(t,ye),(t.f&te)!==0&&(t.f^=te,t.f&=~Fe),Mr(t),Ct(t,0))}function Ct(e,t){var r=e.deps;if(r!==null)for(var n=t;n<r.length;n++)Ai(e,r[n])}function dt(e){var t=e.f;if((t&we)===0){N(e,C);var r=b,n=Oe;b=e,Oe=!0;try{(t&ge)!==0?ji(e):Xr(e),Kr(e);var i=fn(e);e.teardown=typeof i=="function"?i:null,e.wv=sn;var s;qt&&ri&&(e.f&I)!==0&&e.deps}finally{Oe=n,b=r}}}function w(e){var t=e.f,r=(t&S)!==0;if(p!==null&&!ue){var n=b!==null&&(b.f&we)!==0;if(!n&&!xe?.includes(e)){var i=p.deps;if((p.f&Yt)!==0)e.rv<ut&&(e.rv=ut,M===null&&i!==null&&i[V]===e?V++:M===null?M=[e]:M.includes(e)||M.push(e));else{(p.deps??=[]).push(e);var s=e.reactions;s===null?e.reactions=[p]:s.includes(p)||s.push(p)}}}if(He){if(Ne.has(e))return Ne.get(e);if(r){var a=e,o=a.v;return((a.f&C)===0&&a.reactions!==null||cn(a))&&(o=er(a)),Ne.set(a,o),o}}else r&&!W?.has(e)&&(a=e,ct(a)&&Dr(a),Oe&&Tt()&&(a.f&te)===0&&un(a));if(W?.has(e))return W.get(e);if((e.f&Ce)!==0)throw e.v;return e.v}function un(e){if(e.deps!==null){e.f^=te;for(const t of e.deps)(t.reactions??=[]).push(e),(t.f&S)!==0&&(t.f&te)===0&&un(t)}}function cn(e){if(e.v===A)return!0;if(e.deps===null)return!1;for(const t of e.deps)if(Ne.has(t)||(t.f&S)!==0&&cn(t))return!0;return!1}function dn(e){var t=ue;try{return ue=!0,e()}finally{ue=t}}const Ci=-7169;function N(e,t){e.f=e.f&Ci|t}const vn=new Set,ar=new Set;function Ni(e){for(var t=0;t<e.length;t++)vn.add(e[t]);for(var r of ar)r(e)}let hn=null;function Nt(e){var t=this,r=t.ownerDocument,n=e.type,i=e.composedPath?.()||[],s=i[0]||e.target;hn=e;var a=0,o=hn===e&&e.__root;if(o){var l=i.indexOf(o);if(l!==-1&&(t===document||t===window)){e.__root=t;return}var f=i.indexOf(t);if(f===-1)return;l<=f&&(a=l)}if(s=i[a]||e.target,s!==t){bt(e,"currentTarget",{configurable:!0,get(){return s||r}});var u=p,c=b;B(null),ce(null);try{for(var d,v=[];s!==null;){var _=s.assignedSlot||s.parentNode||s.host||null;try{var g=s["__"+n];g!=null&&(!s.disabled||e.target===s)&&g.call(s,e)}catch(j){d?v.push(j):d=j}if(e.cancelBubble||_===t||_===null)break;s=_}if(d){for(let j of v)queueMicrotask(()=>{throw j});throw d}}finally{e.__root=t,delete e.currentTarget,B(u),ce(c)}}}function Pi(e){var t=document.createElement("template");return t.innerHTML=e.replaceAll("<!>","<!---->"),t.content}function tt(e,t){var r=b;r.nodes_start===null&&(r.nodes_start=e,r.nodes_end=t)}function q(e,t){var r=(t&Pn)!==0,n=(t&On)!==0,i,s=!e.startsWith("<!>");return()=>{if(m)return tt(y,null),y;i===void 0&&(i=Pi(s?e:"<!>"+e),r||(i=Ve(i)));var a=n||qr?document.importNode(i,!0):i.cloneNode(!0);if(r){var o=Ve(a),l=a.lastChild;tt(o,l)}else tt(a,a);return a}}function Oi(){if(m)return tt(y,null),y;var e=document.createDocumentFragment(),t=document.createComment(""),r=K();return e.append(t,r),tt(t,r),e}function P(e,t){if(m){var r=b;((r.f&mt)===0||r.nodes_end===null)&&(r.nodes_end=y),it();return}e!==null&&e.before(t)}const Ri=["touchstart","touchmove"];function Mi(e){return Ri.includes(e)}function vt(e,t){var r=t==null?"":typeof t=="object"?t+"":t;r!==(e.__t??=e.nodeValue)&&(e.__t=r,e.nodeValue=r+"")}function _n(e,t){return pn(e,t)}function Di(e,t){rr(),t.intro=t.intro??!1;const r=t.target,n=m,i=y;try{for(var s=Ve(r);s&&(s.nodeType!==Xe||s.data!==pr);)s=oe(s);if(!s)throw Je;$e(!0),F(s);const a=pn(e,{...t,anchor:s});return $e(!1),a}catch(a){if(a instanceof Error&&a.message.split(`
2
+ `).some(o=>o.startsWith("https://svelte.dev/e/")))throw a;return a!==Je&&console.warn("Failed to hydrate: ",a),t.recover===!1&&Jn(),rr(),Hr(r),$e(!1),_n(e,t)}finally{$e(n),F(i)}}const rt=new Map;function pn(e,{target:t,anchor:r,props:n={},events:i,context:s,intro:a=!0}){rr();var o=new Set,l=c=>{for(var d=0;d<c.length;d++){var v=c[d];if(!o.has(v)){o.add(v);var _=Mi(v);t.addEventListener(v,Nt,{passive:_});var g=rt.get(v);g===void 0?(document.addEventListener(v,Nt,{passive:_}),rt.set(v,1)):rt.set(v,g+1)}}};l(Ut(vn)),ar.add(l);var f=void 0,u=Ei(()=>{var c=r??t.appendChild(K());return oi(c,{pending:()=>{}},d=>{if(s){Jt({});var v=z;v.c=s}if(i&&(n.$$events=i),m&&tt(d,null),f=e(d,n)||{},m&&(b.nodes_end=y,y===null||y.nodeType!==Xe||y.data!==Bt))throw wt(),Je;s&&Gt()}),()=>{for(var d of o){t.removeEventListener(d,Nt);var v=rt.get(d);--v===0?(document.removeEventListener(d,Nt),rt.delete(d)):rt.set(d,v)}ar.delete(l),c!==r&&c.parentNode?.removeChild(c)}});return or.set(f,u),f}let or=new WeakMap;function Li(e,t){const r=or.get(e);return r?(or.delete(e),r(t)):Promise.resolve()}class Ii{anchor;#t=new Map;#e=new Map;#r=new Map;#n=new Set;#l=!0;constructor(t,r=!0){this.anchor=t,this.#l=r}#s=()=>{var t=k;if(this.#t.has(t)){var r=this.#t.get(t),n=this.#e.get(r);if(n)sr(n),this.#n.delete(r);else{var i=this.#r.get(r);i&&(this.#e.set(r,i.effect),this.#r.delete(r),i.fragment.lastChild.remove(),this.anchor.before(i.fragment),n=i.effect)}for(const[s,a]of this.#t){if(this.#t.delete(s),s===t)break;const o=this.#r.get(a);o&&(R(o.effect),this.#r.delete(a))}for(const[s,a]of this.#e){if(s===r||this.#n.has(s))continue;const o=()=>{if(Array.from(this.#t.values()).includes(s)){var f=document.createDocumentFragment();tn(a,f),f.append(K()),this.#r.set(s,{effect:a,fragment:f})}else R(a);this.#n.delete(s),this.#e.delete(s)};this.#l||!n?(this.#n.add(s),et(a,o,!1)):o()}}};#i=t=>{this.#t.delete(t);const r=Array.from(this.#t.values());for(const[n,i]of this.#r)r.includes(n)||(R(i.effect),this.#r.delete(n))};ensure(t,r){var n=k,i=Yr();if(r&&!this.#e.has(t)&&!this.#r.has(t))if(i){var s=document.createDocumentFragment(),a=K();s.append(a),this.#r.set(t,{effect:X(()=>r(a)),fragment:s})}else this.#e.set(t,X(()=>r(this.anchor)));if(this.#t.set(n,t),i){for(const[o,l]of this.#e)o===t?n.skipped_effects.delete(l):n.skipped_effects.add(l);for(const[o,l]of this.#r)o===t?n.skipped_effects.delete(l.effect):n.skipped_effects.add(l.effect);n.oncommit(this.#s),n.ondiscard(this.#i)}else m&&(this.anchor=y),this.#s()}}function de(e,t,r=!1){m&&it();var n=new Ii(e),i=r?Ge:0;function s(a,o){if(m){const f=kr(e)===_t;if(a===f){var l=$t();F(l),n.anchor=l,$e(!1),n.ensure(a,o),$e(!0);return}}n.ensure(a,o)}nr(()=>{var a=!1;t((o,l=!0)=>{a=!0,s(l,o)}),a||s(!1,null)},i)}function Fi(e,t,r,n,i){m&&it();var s=t.$$slots?.[r],a=!1;s===!0&&(s=t.children,a=!0),s===void 0||s(e,a?()=>n:n)}function bn(e,t){ki(()=>{var r=e.getRootNode(),n=r.host?r:r.head??r.ownerDocument.head;if(!n.querySelector("#"+t.hash)){const i=document.createElement("style");i.id=t.hash,i.textContent=t.code,n.appendChild(i)}})}function Bi(e,t,r){var n=e==null?"":""+e;return n=n?n+" "+t:t,n===""?null:n}function qi(e,t,r,n,i,s){var a=e.__className;if(m||a!==r||a===void 0){var o=Bi(r,n);(!m||o!==e.getAttribute("class"))&&(o==null?e.removeAttribute("class"):e.className=o),e.__className=r}return s}const Ui=Symbol("is custom element"),Vi=Symbol("is html");function gn(e,t,r,n){var i=Hi(e);m&&(i[t]=e.getAttribute(t),t==="src"||t==="srcset"||t==="href"&&e.nodeName==="LINK")||i[t]!==(i[t]=r)&&(t==="loading"&&(e[Un]=r),r==null?e.removeAttribute(t):typeof r!="string"&&Yi(e).includes(t)?e[t]=r:e.setAttribute(t,r))}function Hi(e){return e.__attributes??={[Ui]:e.nodeName.includes("-"),[Vi]:e.namespaceURI===Rn}}var mn=new Map;function Yi(e){var t=e.getAttribute("is")||e.nodeName,r=mn.get(t);if(r)return r;mn.set(t,r=[]);for(var n,i=e,s=Element.prototype;s!==i;){n=Dn(i);for(var a in n)n[a].set&&r.push(a);i=gr(i)}return r}let Pt=!1;function zi(e){var t=Pt;try{return Pt=!1,[e(),Pt]}finally{Pt=t}}function Re(e,t,r,n){var i=(r&Cn)!==0,s=(r&Nn)!==0,a=n,o=!0,l=()=>(o&&(o=!1,a=s?dn(n):n),a),f;if(i){var u=yt in e||Er in e;f=Le(e,t)?.set??(u&&t in e?$=>e[t]=$:void 0)}var c,d=!1;i?[c,d]=zi(()=>e[t]):c=e[t],c===void 0&&n!==void 0&&(c=l(),f&&(Gn(),f(c)));var v;if(v=()=>{var $=e[t];return $===void 0?l():(o=!0,$)},(r&An)===0)return v;if(f){var _=e.$$legacy;return(function($,D){return arguments.length>0?((!D||_||d)&&f(D?v():$),$):v()})}var g=!1,j=((r&Sn)!==0?jt:Rr)(()=>(g=!1,v()));i&&w(j);var x=b;return(function($,D){if(arguments.length>0){const L=D?w(j):i?Pe($):$;return O(j,L),g=!0,a!==void 0&&(a=L),$}return He&&g||(x.f&we)!==0?j.v:w(j)})}function Wi(e){return new Ji(e)}class Ji{#t;#e;constructor(t){var r=new Map,n=(s,a)=>{var o=Ir(a,!1,!1);return r.set(s,o),o};const i=new Proxy({...t.props||{},$$events:{}},{get(s,a){return w(r.get(a)??n(a,Reflect.get(s,a)))},has(s,a){return a===Er?!0:(w(r.get(a)??n(a,Reflect.get(s,a))),Reflect.has(s,a))},set(s,a,o){return O(r.get(a)??n(a,o),o),Reflect.set(s,a,o)}});this.#e=(t.hydrate?Di:_n)(t.component,{target:t.target,anchor:t.anchor,props:i,context:t.context,intro:t.intro??!1,recover:t.recover}),(!t?.props?.$$host||t.sync===!1)&&Ee(),this.#t=i.$$events;for(const s of Object.keys(this.#e))s==="$set"||s==="$destroy"||s==="$on"||bt(this,s,{get(){return this.#e[s]},set(a){this.#e[s]=a},enumerable:!0});this.#e.$set=s=>{Object.assign(i,s)},this.#e.$destroy=()=>{Li(this.#e)}}$set(t){this.#e.$set(t)}$on(t,r){this.#t[t]=this.#t[t]||[];const n=(...i)=>r.call(this,...i);return this.#t[t].push(n),()=>{this.#t[t]=this.#t[t].filter(i=>i!==n)}}$destroy(){this.#e.$destroy()}}let yn;typeof HTMLElement=="function"&&(yn=class extends HTMLElement{$$ctor;$$s;$$c;$$cn=!1;$$d={};$$r=!1;$$p_d={};$$l={};$$l_u=new Map;$$me;constructor(e,t,r){super(),this.$$ctor=e,this.$$s=t,r&&this.attachShadow({mode:"open"})}addEventListener(e,t,r){if(this.$$l[e]=this.$$l[e]||[],this.$$l[e].push(t),this.$$c){const n=this.$$c.$on(e,t);this.$$l_u.set(t,n)}super.addEventListener(e,t,r)}removeEventListener(e,t,r){if(super.removeEventListener(e,t,r),this.$$c){const n=this.$$l_u.get(t);n&&(n(),this.$$l_u.delete(t))}}async connectedCallback(){if(this.$$cn=!0,!this.$$c){let e=function(n){return i=>{const s=document.createElement("slot");n!=="default"&&(s.name=n),P(i,s)}};if(await Promise.resolve(),!this.$$cn||this.$$c)return;const t={},r=Gi(this);for(const n of this.$$s)n in r&&(n==="default"&&!this.$$d.children?(this.$$d.children=e(n),t.default=!0):t[n]=e(n));for(const n of this.attributes){const i=this.$$g_p(n.name);i in this.$$d||(this.$$d[i]=Ot(i,n.value,this.$$p_d,"toProp"))}for(const n in this.$$p_d)!(n in this.$$d)&&this[n]!==void 0&&(this.$$d[n]=this[n],delete this[n]);this.$$c=Wi({component:this.$$ctor,target:this.shadowRoot||this,props:{...this.$$d,$$slots:t,$$host:this}}),this.$$me=$i(()=>{Gr(()=>{this.$$r=!0;for(const n of pt(this.$$c)){if(!this.$$p_d[n]?.reflect)continue;this.$$d[n]=this.$$c[n];const i=Ot(n,this.$$d[n],this.$$p_d,"toAttribute");i==null?this.removeAttribute(this.$$p_d[n].attribute||n):this.setAttribute(this.$$p_d[n].attribute||n,i)}this.$$r=!1})});for(const n in this.$$l)for(const i of this.$$l[n]){const s=this.$$c.$on(n,i);this.$$l_u.set(i,s)}this.$$l={}}}attributeChangedCallback(e,t,r){this.$$r||(e=this.$$g_p(e),this.$$d[e]=Ot(e,r,this.$$p_d,"toProp"),this.$$c?.$set({[e]:this.$$d[e]}))}disconnectedCallback(){this.$$cn=!1,Promise.resolve().then(()=>{!this.$$cn&&this.$$c&&(this.$$c.$destroy(),this.$$me(),this.$$c=void 0)})}$$g_p(e){return pt(this.$$p_d).find(t=>this.$$p_d[t].attribute===e||!this.$$p_d[t].attribute&&t.toLowerCase()===e)||e}});function Ot(e,t,r,n){const i=r[e]?.type;if(t=i==="Boolean"&&typeof t!="boolean"?t!=null:t,!n||!r[e])return t;if(n==="toAttribute")switch(i){case"Object":case"Array":return t==null?null:JSON.stringify(t);case"Boolean":return t?"":null;case"Number":return t??null;default:return t}else switch(i){case"Object":case"Array":return t&&JSON.parse(t);case"Boolean":return t;case"Number":return t!=null?+t:t;default:return t}}function Gi(e){const t={};return e.childNodes.forEach(r=>{t[r.slot||"default"]=!0}),t}function wn(e,t,r,n,i,s){let a=class extends yn{constructor(){super(e,r,i),this.$$p_d=t}static get observedAttributes(){return pt(t).map(o=>(t[o].attribute||o).toLowerCase())}};return pt(t).forEach(o=>{bt(a.prototype,o,{get(){return this.$$c&&o in this.$$c?this.$$c[o]:this.$$d[o]},set(l){l=Ot(o,l,t),this.$$d[o]=l;var f=this.$$c;if(f){var u=Le(f,o)?.get;u?f[o]=l:f.$set({[o]:l})}}})}),n.forEach(o=>{bt(a.prototype,o,{get(){return this.$$c?.[o]}})}),e.element=a,a}var ze={},$n;function Ki(){if($n)return ze;$n=1,Object.defineProperty(ze,"__esModule",{value:!0}),ze.LanguageTranslator=void 0,ze.getChildStyleToPass=e,ze.addComponent=t;function e(n,i){var s,a,o="";try{if(n&&i?.length&&(!((s=Object.keys(n))===null||s===void 0)&&s.length)&&(!((a=i?.filter(function(d){return Object.keys(n).includes(d.name)}))===null||a===void 0)&&a.length))for(var l=function(d){var v=i?.filter(function(_){return _.name===d&&_.defaultValue!==n[d]});v&&(o+="".concat(d,":").concat(n[d],";"))},f=0,u=Object.keys(n);f<u.length;f++){var c=u[f];l(c)}}catch(d){console.error("error getting child style to pass",d)}finally{return o}}function t(n){var i,s=((i=n?.repoName.split("/"))===null||i===void 0?void 0:i[1])||n?.repoName;if(!s)throw new Error("wrong componentPath "+n?.repoName);if(!n?.version)throw new Error("wrong version "+n?.version);var a=n?.iifePath||"main.iife.js";if(!document.getElementById(s+"-script"))try{var o=document.createElement("script");if(o.id=s+"-script",o.src="https://cdn.jsdelivr.net/npm/".concat(n.repoName,"@").concat(n.version,"/").concat(a),n?.local)o.src="".concat(n.local);else if(location.href.includes("localhost:6006")){var l=s.split("-")[0];o.src="http://localhost:6006/webcomponents/".concat(s.replace(l+"-",""),"/").concat(a)}document.head.appendChild(o)}catch(f){console.warn(f)}}var r=(function(){function n(i){if(this.lang="",!i?.dictionary)throw new Error("no dictionary provided");this.dictionary=i.dictionary,this.setLang(i?.lang)}return n.prototype.setLang=function(i){i||(i=n.getDefaultLang()),this.lang=i},n.prototype.translateWord=function(i,s){return n.getDictionaryWord(i,this.dictionary,s||this.lang)},n.prototype.translateDate=function(i,s,a){return n.formatDate(i,s,a||this.lang)},n.getDefaultLang=function(){var i,s,a,o="en";return navigator?.languages&&(!((a=(s=(i=navigator.languages[0])===null||i===void 0?void 0:i.split("-")[0])===null||s===void 0?void 0:s.toLowerCase())===null||a===void 0)&&a.length)&&(o=navigator.languages[0].split("-")[0].toLowerCase()),o},n.getDictionaryWord=function(i,s,a){var o;if(!i)throw new Error("no wordKey provided");if(!s)throw new Error("no dictionary provided");if(a&&(!((o=s[a])===null||o===void 0)&&o[i]))return s[a][i];var l="",f=n.getDefaultLang();if(!a||f!==a){var u=s?.[f];u?.[i]&&(l=u[i])}return l},n.formatDate=function(i,s,a){if(!i)throw new Error("no date provided");if(typeof i.getMonth!="function")throw new Error("wrong date format");var o=new Intl.DateTimeFormat(a||n.getDefaultLang(),s);return o.format(i)},n})();return ze.LanguageTranslator=r,ze}Ki();var Xi=q('<span class="jn-popover svelte-2u2vu2">copied</span>'),Zi=q('<span class="jn-key svelte-2u2vu2" role="button" tabindex="0" title="Copia JSON"> </span><!> <span class="jn-sep svelte-2u2vu2">:</span>',1),Qi=q('<div class="jn-row svelte-2u2vu2"><!> <span> </span></div>'),es=q('<span class="jn-popover svelte-2u2vu2">copied</span>'),ts=q('<span class="jn-key svelte-2u2vu2" role="button" tabindex="0" title="Copia JSON"> </span><!> <span class="jn-sep svelte-2u2vu2">:</span>',1),rs=q('<span class="jn-popover svelte-2u2vu2">copied</span>'),ns=q('<span class="jn-bracket svelte-2u2vu2">[</span>'),is=q('<span class="jn-bracket svelte-2u2vu2"></span>'),ss=q(']<span class="jn-trailing"></span>',1),as=q(' <span class="jn-trailing"></span>',1),os=q('<div class="jn-children svelte-2u2vu2"></div> <div class="jn-close svelte-2u2vu2"><!></div>',1),ls=q('<div class="jn-node svelte-2u2vu2"><div class="jn-header svelte-2u2vu2"><span class="jn-actions svelte-2u2vu2"><button class="jn-btn jn-toggle-btn svelte-2u2vu2"> </button></span> <!> <span class="jn-type svelte-2u2vu2" role="button" tabindex="0" title="Copia JSON"> </span><!> <!></div> <!></div>');const fs={hash:"svelte-2u2vu2",code:`.jn-row.svelte-2u2vu2 {font-family:ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas,
3
+ "Liberation Mono", "Courier New", monospace;line-height:1.5;}.jn-node.svelte-2u2vu2 {margin-left:0.75rem;}.jn-header.svelte-2u2vu2 {display:inline-flex;align-items:baseline;gap:0.25rem;}.jn-actions.svelte-2u2vu2 {display:inline-flex;gap:0.25rem;margin-right:0.25rem;}.jn-btn.svelte-2u2vu2 {cursor:pointer;border:1px solid var(--jn-button-border);border-radius:4px;background:transparent;color:inherit;width:1.25rem;height:1.25rem;display:inline-flex;align-items:center;justify-content:center;font-size:0.85rem;line-height:1;padding:0;}.jn-btn.svelte-2u2vu2:hover {background-color:var(--jn-button-hover-bg);}.jn-key.svelte-2u2vu2 {cursor:pointer;}.jn-key.svelte-2u2vu2 {color:var(--jn-key);}.jn-sep.svelte-2u2vu2 {color:var(--jn-sep);}.jn-type.svelte-2u2vu2 {color:var(--jn-type);cursor:pointer;}.jn-popover.svelte-2u2vu2 {display:inline-block;margin-left:0.25rem;padding:0 0.35rem;border-radius:999px;font-size:0.7rem;line-height:1.4;color:var(--jn-popover-text);background-color:var(--jn-popover-bg);border:1px solid var(--jn-popover-border);vertical-align:middle;user-select:none;}.jn-bracket.svelte-2u2vu2 {color:var(--jn-bracket);}.jn-children.svelte-2u2vu2 {margin-left:1rem;border-left:1px dashed var(--jn-children-border);padding-left:0.75rem;}.jn-close.svelte-2u2vu2 {margin-left:0.75rem;color:var(--jn-close);}.jn-string.svelte-2u2vu2 {color:var(--jn-string);}.jn-number.svelte-2u2vu2 {color:var(--jn-number);}.jn-boolean.svelte-2u2vu2 {color:var(--jn-boolean);}.jn-undefined.svelte-2u2vu2 {color:var(--jn-undefined);font-style:italic;}.jn-symbol.svelte-2u2vu2 {color:var(--jn-symbol);}`};function lr(e,t){Jt(t,!0),bn(e,fs);let r=Re(t,"keyPath",23,()=>[]),n=Re(t,"value",7),i=Re(t,"name",7,null),s=Re(t,"collapsed",7),a=Re(t,"status",7,"open");const o=h=>h!==null&&typeof h=="object"&&!Array.isArray(h),l=h=>Array.isArray(h),f=h=>!o(h)&&!l(h);function u(h){return h===null?"null":l(h)?`Array(${h.length})`:o(h)?"Object":typeof h}function c(h){return typeof h=="string"?`"${h}"`:h===null?"null":typeof h>"u"?"undefined":typeof h=="bigint"?h.toString()+"n":typeof h=="symbol"?h.toString():String(h)}function d(h){return l(h)?h.map((T,he)=>[he,T]):o(h)?Object.entries(h):[]}function v(h,T){return h==="open"?!1:h==="closed"?!0:T>0}const _=r().length;let g=G(Pe(s()??v(a(),_)));Wr(()=>{s()===void 0&&O(g,v(a(),_),!0)});function j(){O(g,!w(g))}function x(h){const T=new WeakSet;try{return JSON.stringify(h,(he,ie)=>{if(typeof ie=="object"&&ie!==null){if(T.has(ie))return"[Circular]";T.add(ie)}return ie},2)}catch{return String(h)}}async function $(){const h=x(n());try{navigator.clipboard&&navigator.clipboard.writeText?await navigator.clipboard.writeText(h):console.error("unsupported copying node")}catch(T){console.error("error copying node",T)}}let D=G(null),L=G(!1),H=null;function Me(h){O(D,h,!0),O(L,!0),H!==null&&window.clearTimeout(H),H=window.setTimeout(()=>{O(L,!1),O(D,null),H=null},1e3)}async function je(h){await $(),Me(h)}function ve(h,T){(h.key==="Enter"||h.key===" ")&&(h.preventDefault(),h.stopPropagation(),je(T))}var ht={get keyPath(){return r()},set keyPath(h=[]){r(h),Ee()},get value(){return n()},set value(h){n(h),Ee()},get name(){return i()},set name(h=null){i(h),Ee()},get collapsed(){return s()},set collapsed(h){s(h),Ee()},get status(){return a()},set status(h="open"){a(h),Ee()}},We=Oi(),Q=ft(We);{var Rt=h=>{var T=Qi(),he=ne(T);{var ie=De=>{var Dt=Zi(),se=ft(Dt);se.__click=_e=>{_e.stopPropagation(),je("key")},se.__keydown=_e=>{_e.stopPropagation(),ve(_e,"key")};var ur=ne(se,!0);Y(se);var Lt=le(se);{var cr=_e=>{var dr=Xi();P(_e,dr)};de(Lt,_e=>{w(L)&&w(D)==="key"&&_e(cr)})}st(2),St(()=>vt(ur,i())),P(De,Dt)};de(he,De=>{i()!==null&&De(ie)})}var Te=le(he,2),fr=ne(Te,!0);Y(Te),Y(T),St(De=>{qi(Te,1,`jn-val ${"jn-"+(typeof n()=="string"?"string":typeof n())}`,"svelte-2u2vu2"),vt(fr,De)},[()=>c(n())]),P(h,T)},Mt=h=>{var T=ls(),he=ne(T),ie=ne(he),Te=ne(ie);Te.__click=E=>{E.stopPropagation(),j()};var fr=ne(Te,!0);Y(Te),Y(ie);var De=le(ie,2);{var Dt=E=>{var ee=ts(),Se=ft(ee);Se.__click=pe=>{pe.stopPropagation(),je("key")},Se.__keydown=pe=>{pe.stopPropagation(),ve(pe,"key")};var It=ne(Se,!0);Y(Se);var vr=le(Se);{var hr=pe=>{var be=es();P(pe,be)};de(vr,pe=>{w(L)&&w(D)==="key"&&pe(hr)})}st(2),St(()=>vt(It,i())),P(E,ee)};de(De,E=>{i()!==null&&E(Dt)})}var se=le(De,2);se.__click=E=>{E.stopPropagation(),je("type")},se.__keydown=E=>{E.stopPropagation(),ve(E,"type")};var ur=ne(se,!0);Y(se);var Lt=le(se);{var cr=E=>{var ee=rs();P(E,ee)};de(Lt,E=>{w(L)&&w(D)==="type"&&E(cr)})}var _e=le(Lt,2);{var dr=E=>{var ee=ns();P(E,ee)},vs=E=>{var ee=is();ee.textContent="{",P(E,ee)};de(_e,E=>{l(n())?E(dr):E(vs,!1)})}Y(he);var hs=le(he,2);{var _s=E=>{var ee=os(),Se=ft(ee);ci(Se,21,()=>d(n()),fi,(be,nt)=>{var Ft=Qt(()=>Bn(w(nt),2));let kn=()=>w(Ft)[0],ps=()=>w(Ft)[1];{let bs=Qt(()=>[...r(),kn()]),gs=Qt(()=>v(a(),_+1));lr(be,{get name(){return kn()},get value(){return ps()},get keyPath(){return w(bs)},get status(){return a()},get collapsed(){return w(gs)}})}}),Y(Se);var It=le(Se,2),vr=ne(It);{var hr=be=>{var nt=ss();st(),P(be,nt)},pe=be=>{var nt=as(),Ft=ft(nt,!0);Ft.nodeValue="}",st(),P(be,nt)};de(vr,be=>{l(n())?be(hr):be(pe,!1)})}Y(It),P(E,ee)};de(hs,E=>{w(g)||E(_s)})}Y(T),St(E=>{gn(Te,"aria-label",w(g)?"Espandi":"Comprimi"),gn(Te,"title",w(g)?"Espandi":"Comprimi"),vt(fr,w(g)?"+":"-"),vt(ur,E)},[()=>u(n())]),P(h,T)};de(Q,h=>{f(n())?h(Rt):h(Mt,!1)})}return P(e,We),Gt(ht)}Ni(["click","keydown"]),wn(lr,{keyPath:{},value:{},name:{},collapsed:{},status:{}},[],[],!0);var us=q('<div class="jn-empty svelte-g7b435">No data</div>'),cs=q('<div class="hb-json-viewer svelte-g7b435"><!> <!></div>');const ds={hash:"svelte-g7b435",code:`@import url("https://fonts.googleapis.com/css2?family=Roboto:ital,wght@0,100;0,300;0,400;0,500;0,700;0,900;1,100;1,300;1,400;1,500;1,700;1,900&display=swap");:host {font-family:"Roboto", sans-serif;--jn-key: #6f42c1;--jn-sep: #8b949e;--jn-type: #1f6feb;--jn-bracket: #8b949e;--jn-children-border: rgba(128, 128, 128, .3);--jn-close: #8b949e;--jn-string: #0a7;--jn-number: #d19a66;--jn-boolean: #56b6c2;--jn-undefined: #8b949e;--jn-symbol: #8b949e;--jn-button-border: rgba(128, 128, 128, .3);--jn-button-hover-bg: rgba(128, 128, 128, .1);--jn-popover-text: #0f5132;--jn-popover-bg: #d1e7dd;--jn-popover-border: #badbcc;}
4
4
  /*!
5
5
  * Bootstrap v5.1.2 (https://getbootstrap.com/)
6
6
  * Copyright 2011-2021 The Bootstrap Authors
@@ -56,5 +56,5 @@
56
56
  @media (min-width: 1200px) {
57
57
  }
58
58
  @media (min-width: 1400px) {
59
- }`};function xn(e,t){Yt(t,!0),mn(e,vi);let r=Re(t,"id",7,""),n=Re(t,"json",7),s=Re(t,"status",7,"open");Oe({}),Wr(()=>{if(typeof n()=="string")try{n(JSON.parse(n()))}catch(d){console.error("error parsing json",d)}});var i={get id(){return r()},set id(d=""){r(d),ke()},get json(){return n()},set json(d){n(d),ke()},get status(){return s()},set status(d="open"){s(d),ke()}},o=di(),a=ne(o);{var l=d=>{or(d,{get value(){return n()},name:null,keyPath:[],get status(){return s()}})},f=d=>{var u=ci();M(d,u)};he(a,d=>{n()!==void 0?d(l):d(f,!1)})}var v=ue(a,2);return Bs(v,t,"default",{}),J(o),M(e,o),zt(i)}customElements.define("hb-json-viewer",En(xn,{id:{},json:{},status:{}},["default"],[],!0)),hr.Component=xn,Object.defineProperty(hr,Symbol.toStringTag,{value:"Module"})})(this["json-viewer"]=this["json-viewer"]||{});
59
+ }`};function En(e,t){Jt(t,!0),bn(e,ds);let r=Re(t,"id",7,""),n=Re(t,"json",7),i=Re(t,"status",7,"open");Pe({}),Wr(()=>{if(typeof n()=="string")try{n(JSON.parse(n()))}catch(c){console.error("error parsing json",c)}});var s={get id(){return r()},set id(c=""){r(c),Ee()},get json(){return n()},set json(c){n(c),Ee()},get status(){return i()},set status(c="open"){i(c),Ee()}},a=cs(),o=ne(a);{var l=c=>{lr(c,{get value(){return n()},name:null,keyPath:[],get status(){return i()}})},f=c=>{var d=us();P(c,d)};de(o,c=>{n()!==void 0?c(l):c(f,!1)})}var u=le(o,2);return Fi(u,t,"default",{}),Y(a),P(e,a),Gt(s)}customElements.define("hb-json-viewer",wn(En,{id:{},json:{},status:{}},["default"],[],!0)),_r.Component=En,Object.defineProperty(_r,Symbol.toStringTag,{value:"Module"})})(this["json-viewer"]=this["json-viewer"]||{});
60
60
  //# sourceMappingURL=main.iife.js.map