@toa.io/extensions.introspection 1.0.0-alpha.308 → 1.0.0-alpha.310

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.
Files changed (27) hide show
  1. package/package.json +7 -7
  2. package/ui/dist/_app/immutable/chunks/{BvrbTWE5.js → 3fj1QkUy.js} +1 -1
  3. package/ui/dist/_app/immutable/chunks/BQ9nmkXV.js +1 -0
  4. package/ui/dist/_app/immutable/chunks/BbFulXbk.js +1 -0
  5. package/ui/dist/_app/immutable/chunks/BevATjyM.js +6 -0
  6. package/ui/dist/_app/immutable/chunks/{CyuNt1Yc.js → CYIfCZpC.js} +1 -1
  7. package/ui/dist/_app/immutable/chunks/{mN1X6kWf.js → Ca35eOAI.js} +1 -1
  8. package/ui/dist/_app/immutable/chunks/{BizxCnFA.js → CmOIvXoq.js} +1 -1
  9. package/ui/dist/_app/immutable/chunks/{DXPoxRl1.js → DT2OxQwL.js} +1 -1
  10. package/ui/dist/_app/immutable/chunks/DxKTFrYR.js +1 -0
  11. package/ui/dist/_app/immutable/entry/{app.DkI63irP.js → app.DXWPaeYZ.js} +2 -2
  12. package/ui/dist/_app/immutable/entry/start.0CnmxFj_.js +1 -0
  13. package/ui/dist/_app/immutable/nodes/{0.BOiirZZ5.js → 0.C7PGFY2W.js} +1 -1
  14. package/ui/dist/_app/immutable/nodes/{1.DO-EUw5i.js → 1.DZ5bdJCI.js} +1 -1
  15. package/ui/dist/_app/immutable/nodes/{2.CCD_51dX.js → 2.X3rEp2Q2.js} +1 -1
  16. package/ui/dist/_app/immutable/nodes/3.1K5M7vak.js +1 -0
  17. package/ui/dist/_app/immutable/nodes/4.DQLIwxSq.js +1 -0
  18. package/ui/dist/_app/immutable/nodes/{5.Cu46fsYa.js → 5.BL3yRDAK.js} +1 -1
  19. package/ui/dist/_app/version.json +1 -1
  20. package/ui/dist/index.html +12 -12
  21. package/ui/dist/_app/immutable/chunks/C4dbyEfF.js +0 -1
  22. package/ui/dist/_app/immutable/chunks/CVI-G-nc.js +0 -1
  23. package/ui/dist/_app/immutable/chunks/CfwVa1wg.js +0 -6
  24. package/ui/dist/_app/immutable/chunks/EttRBGeu.js +0 -1
  25. package/ui/dist/_app/immutable/entry/start.B8fkM05S.js +0 -1
  26. package/ui/dist/_app/immutable/nodes/3.Yjra7El3.js +0 -1
  27. package/ui/dist/_app/immutable/nodes/4.CCtpGkWO.js +0 -1
@@ -1,2 +1,2 @@
1
- import{$ as e,A as t,C as n,Ct as r,E as i,F as a,I as o,L as s,M as c,N as l,O as u,Ot as d,R as f,St as p,T as m,U as h,V as g,X as _,Y as v,_ as y,a as b,at as x,b as S,c as C,ct as w,dt as T,et as E,f as D,ft as O,h as ee,i as k,j as A,jt as j,kt as M,m as te,nt as N,o as P,p as ne,q as F,rt as re,st as ie,tt as I,vt as ae}from"./sTot5bBi.js";import{s as oe,t as se}from"./C4dbyEfF.js";import"./EttRBGeu.js";import"./xihTtKlq.js";import{F as ce,I as le,N as ue,c as de,l as fe}from"./CfwVa1wg.js";import"./CVI-G-nc.js";import{$ as pe,C as me,S as L,_ as he,_t as ge,c as _e,d as ve,et as ye,f as be,g as xe,gt as Se,h as Ce,l as we,m as Te,n as Ee,o as De,p as Oe,s as ke,t as Ae,u as je,v as Me,x as Ne,y as Pe}from"./mN1X6kWf.js";import{t as Fe}from"./DXPoxRl1.js";var Ie={value:()=>{}};function Le(){for(var e=0,t=arguments.length,n={},r;e<t;++e){if(!(r=arguments[e]+``)||r in n||/[\s.]/.test(r))throw Error(`illegal type: `+r);n[r]=[]}return new Re(n)}function Re(e){this._=e}function ze(e,t){return e.trim().split(/^|\s+/).map(function(e){var n=``,r=e.indexOf(`.`);if(r>=0&&(n=e.slice(r+1),e=e.slice(0,r)),e&&!t.hasOwnProperty(e))throw Error(`unknown type: `+e);return{type:e,name:n}})}Re.prototype=Le.prototype={constructor:Re,on:function(e,t){var n=this._,r=ze(e+``,n),i,a=-1,o=r.length;if(arguments.length<2){for(;++a<o;)if((i=(e=r[a]).type)&&(i=Be(n[i],e.name)))return i;return}if(t!=null&&typeof t!=`function`)throw Error(`invalid callback: `+t);for(;++a<o;)if(i=(e=r[a]).type)n[i]=Ve(n[i],e.name,t);else if(t==null)for(i in n)n[i]=Ve(n[i],e.name,null);return this},copy:function(){var e={},t=this._;for(var n in t)e[n]=t[n].slice();return new Re(e)},call:function(e,t){if((i=arguments.length-2)>0)for(var n=Array(i),r=0,i,a;r<i;++r)n[r]=arguments[r+2];if(!this._.hasOwnProperty(e))throw Error(`unknown type: `+e);for(a=this._[e],r=0,i=a.length;r<i;++r)a[r].value.apply(t,n)},apply:function(e,t,n){if(!this._.hasOwnProperty(e))throw Error(`unknown type: `+e);for(var r=this._[e],i=0,a=r.length;i<a;++i)r[i].value.apply(t,n)}};function Be(e,t){for(var n=0,r=e.length,i;n<r;++n)if((i=e[n]).name===t)return i.value}function Ve(e,t,n){for(var r=0,i=e.length;r<i;++r)if(e[r].name===t){e[r]=Ie,e=e.slice(0,r).concat(e.slice(r+1));break}return n!=null&&e.push({name:t,value:n}),e}var He={svg:`http://www.w3.org/2000/svg`,xhtml:`http://www.w3.org/1999/xhtml`,xlink:`http://www.w3.org/1999/xlink`,xml:`http://www.w3.org/XML/1998/namespace`,xmlns:`http://www.w3.org/2000/xmlns/`};function Ue(e){var t=e+=``,n=t.indexOf(`:`);return n>=0&&(t=e.slice(0,n))!==`xmlns`&&(e=e.slice(n+1)),He.hasOwnProperty(t)?{space:He[t],local:e}:e}function We(e){return function(){var t=this.ownerDocument,n=this.namespaceURI;return n===`http://www.w3.org/1999/xhtml`&&t.documentElement.namespaceURI===`http://www.w3.org/1999/xhtml`?t.createElement(e):t.createElementNS(n,e)}}function Ge(e){return function(){return this.ownerDocument.createElementNS(e.space,e.local)}}function Ke(e){var t=Ue(e);return(t.local?Ge:We)(t)}function qe(){}function Je(e){return e==null?qe:function(){return this.querySelector(e)}}function Ye(e){typeof e!=`function`&&(e=Je(e));for(var t=this._groups,n=t.length,r=Array(n),i=0;i<n;++i)for(var a=t[i],o=a.length,s=r[i]=Array(o),c,l,u=0;u<o;++u)(c=a[u])&&(l=e.call(c,c.__data__,u,a))&&(`__data__`in c&&(l.__data__=c.__data__),s[u]=l);return new R(r,this._parents)}function Xe(e){return e==null?[]:Array.isArray(e)?e:Array.from(e)}function Ze(){return[]}function Qe(e){return e==null?Ze:function(){return this.querySelectorAll(e)}}function $e(e){return function(){return Xe(e.apply(this,arguments))}}function et(e){e=typeof e==`function`?$e(e):Qe(e);for(var t=this._groups,n=t.length,r=[],i=[],a=0;a<n;++a)for(var o=t[a],s=o.length,c,l=0;l<s;++l)(c=o[l])&&(r.push(e.call(c,c.__data__,l,o)),i.push(c));return new R(r,i)}function tt(e){return function(){return this.matches(e)}}function nt(e){return function(t){return t.matches(e)}}var rt=Array.prototype.find;function it(e){return function(){return rt.call(this.children,e)}}function at(){return this.firstElementChild}function ot(e){return this.select(e==null?at:it(typeof e==`function`?e:nt(e)))}var st=Array.prototype.filter;function ct(){return Array.from(this.children)}function lt(e){return function(){return st.call(this.children,e)}}function ut(e){return this.selectAll(e==null?ct:lt(typeof e==`function`?e:nt(e)))}function dt(e){typeof e!=`function`&&(e=tt(e));for(var t=this._groups,n=t.length,r=Array(n),i=0;i<n;++i)for(var a=t[i],o=a.length,s=r[i]=[],c,l=0;l<o;++l)(c=a[l])&&e.call(c,c.__data__,l,a)&&s.push(c);return new R(r,this._parents)}function ft(e){return Array(e.length)}function pt(){return new R(this._enter||this._groups.map(ft),this._parents)}function mt(e,t){this.ownerDocument=e.ownerDocument,this.namespaceURI=e.namespaceURI,this._next=null,this._parent=e,this.__data__=t}mt.prototype={constructor:mt,appendChild:function(e){return this._parent.insertBefore(e,this._next)},insertBefore:function(e,t){return this._parent.insertBefore(e,t)},querySelector:function(e){return this._parent.querySelector(e)},querySelectorAll:function(e){return this._parent.querySelectorAll(e)}};function ht(e){return function(){return e}}function gt(e,t,n,r,i,a){for(var o=0,s,c=t.length,l=a.length;o<l;++o)(s=t[o])?(s.__data__=a[o],r[o]=s):n[o]=new mt(e,a[o]);for(;o<c;++o)(s=t[o])&&(i[o]=s)}function _t(e,t,n,r,i,a,o){var s,c,l=new Map,u=t.length,d=a.length,f=Array(u),p;for(s=0;s<u;++s)(c=t[s])&&(f[s]=p=o.call(c,c.__data__,s,t)+``,l.has(p)?i[s]=c:l.set(p,c));for(s=0;s<d;++s)p=o.call(e,a[s],s,a)+``,(c=l.get(p))?(r[s]=c,c.__data__=a[s],l.delete(p)):n[s]=new mt(e,a[s]);for(s=0;s<u;++s)(c=t[s])&&l.get(f[s])===c&&(i[s]=c)}function vt(e){return e.__data__}function yt(e,t){if(!arguments.length)return Array.from(this,vt);var n=t?_t:gt,r=this._parents,i=this._groups;typeof e!=`function`&&(e=ht(e));for(var a=i.length,o=Array(a),s=Array(a),c=Array(a),l=0;l<a;++l){var u=r[l],d=i[l],f=d.length,p=bt(e.call(u,u&&u.__data__,l,r)),m=p.length,h=s[l]=Array(m),g=o[l]=Array(m);n(u,d,h,g,c[l]=Array(f),p,t);for(var _=0,v=0,y,b;_<m;++_)if(y=h[_]){for(_>=v&&(v=_+1);!(b=g[v])&&++v<m;);y._next=b||null}}return o=new R(o,r),o._enter=s,o._exit=c,o}function bt(e){return typeof e==`object`&&`length`in e?e:Array.from(e)}function xt(){return new R(this._exit||this._groups.map(ft),this._parents)}function St(e,t,n){var r=this.enter(),i=this,a=this.exit();return typeof e==`function`?(r=e(r),r&&=r.selection()):r=r.append(e+``),t!=null&&(i=t(i),i&&=i.selection()),n==null?a.remove():n(a),r&&i?r.merge(i).order():i}function Ct(e){for(var t=e.selection?e.selection():e,n=this._groups,r=t._groups,i=n.length,a=r.length,o=Math.min(i,a),s=Array(i),c=0;c<o;++c)for(var l=n[c],u=r[c],d=l.length,f=s[c]=Array(d),p,m=0;m<d;++m)(p=l[m]||u[m])&&(f[m]=p);for(;c<i;++c)s[c]=n[c];return new R(s,this._parents)}function wt(){for(var e=this._groups,t=-1,n=e.length;++t<n;)for(var r=e[t],i=r.length-1,a=r[i],o;--i>=0;)(o=r[i])&&(a&&o.compareDocumentPosition(a)^4&&a.parentNode.insertBefore(o,a),a=o);return this}function Tt(e){e||=Et;function t(t,n){return t&&n?e(t.__data__,n.__data__):!t-!n}for(var n=this._groups,r=n.length,i=Array(r),a=0;a<r;++a){for(var o=n[a],s=o.length,c=i[a]=Array(s),l,u=0;u<s;++u)(l=o[u])&&(c[u]=l);c.sort(t)}return new R(i,this._parents).order()}function Et(e,t){return e<t?-1:e>t?1:e>=t?0:NaN}function Dt(){var e=arguments[0];return arguments[0]=this,e.apply(null,arguments),this}function Ot(){return Array.from(this)}function kt(){for(var e=this._groups,t=0,n=e.length;t<n;++t)for(var r=e[t],i=0,a=r.length;i<a;++i){var o=r[i];if(o)return o}return null}function At(){let e=0;for(let t of this)++e;return e}function jt(){return!this.node()}function Mt(e){for(var t=this._groups,n=0,r=t.length;n<r;++n)for(var i=t[n],a=0,o=i.length,s;a<o;++a)(s=i[a])&&e.call(s,s.__data__,a,i);return this}function Nt(e){return function(){this.removeAttribute(e)}}function Pt(e){return function(){this.removeAttributeNS(e.space,e.local)}}function Ft(e,t){return function(){this.setAttribute(e,t)}}function It(e,t){return function(){this.setAttributeNS(e.space,e.local,t)}}function Lt(e,t){return function(){var n=t.apply(this,arguments);n==null?this.removeAttribute(e):this.setAttribute(e,n)}}function Rt(e,t){return function(){var n=t.apply(this,arguments);n==null?this.removeAttributeNS(e.space,e.local):this.setAttributeNS(e.space,e.local,n)}}function zt(e,t){var n=Ue(e);if(arguments.length<2){var r=this.node();return n.local?r.getAttributeNS(n.space,n.local):r.getAttribute(n)}return this.each((t==null?n.local?Pt:Nt:typeof t==`function`?n.local?Rt:Lt:n.local?It:Ft)(n,t))}function Bt(e){return e.ownerDocument&&e.ownerDocument.defaultView||e.document&&e||e.defaultView}function Vt(e){return function(){this.style.removeProperty(e)}}function Ht(e,t,n){return function(){this.style.setProperty(e,t,n)}}function Ut(e,t,n){return function(){var r=t.apply(this,arguments);r==null?this.style.removeProperty(e):this.style.setProperty(e,r,n)}}function Wt(e,t,n){return arguments.length>1?this.each((t==null?Vt:typeof t==`function`?Ut:Ht)(e,t,n??``)):Gt(this.node(),e)}function Gt(e,t){return e.style.getPropertyValue(t)||Bt(e).getComputedStyle(e,null).getPropertyValue(t)}function Kt(e){return function(){delete this[e]}}function qt(e,t){return function(){this[e]=t}}function Jt(e,t){return function(){var n=t.apply(this,arguments);n==null?delete this[e]:this[e]=n}}function Yt(e,t){return arguments.length>1?this.each((t==null?Kt:typeof t==`function`?Jt:qt)(e,t)):this.node()[e]}function Xt(e){return e.trim().split(/^|\s+/)}function Zt(e){return e.classList||new Qt(e)}function Qt(e){this._node=e,this._names=Xt(e.getAttribute(`class`)||``)}Qt.prototype={add:function(e){this._names.indexOf(e)<0&&(this._names.push(e),this._node.setAttribute(`class`,this._names.join(` `)))},remove:function(e){var t=this._names.indexOf(e);t>=0&&(this._names.splice(t,1),this._node.setAttribute(`class`,this._names.join(` `)))},contains:function(e){return this._names.indexOf(e)>=0}};function $t(e,t){for(var n=Zt(e),r=-1,i=t.length;++r<i;)n.add(t[r])}function en(e,t){for(var n=Zt(e),r=-1,i=t.length;++r<i;)n.remove(t[r])}function tn(e){return function(){$t(this,e)}}function nn(e){return function(){en(this,e)}}function rn(e,t){return function(){(t.apply(this,arguments)?$t:en)(this,e)}}function an(e,t){var n=Xt(e+``);if(arguments.length<2){for(var r=Zt(this.node()),i=-1,a=n.length;++i<a;)if(!r.contains(n[i]))return!1;return!0}return this.each((typeof t==`function`?rn:t?tn:nn)(n,t))}function on(){this.textContent=``}function sn(e){return function(){this.textContent=e}}function cn(e){return function(){var t=e.apply(this,arguments);this.textContent=t??``}}function ln(e){return arguments.length?this.each(e==null?on:(typeof e==`function`?cn:sn)(e)):this.node().textContent}function un(){this.innerHTML=``}function dn(e){return function(){this.innerHTML=e}}function fn(e){return function(){var t=e.apply(this,arguments);this.innerHTML=t??``}}function pn(e){return arguments.length?this.each(e==null?un:(typeof e==`function`?fn:dn)(e)):this.node().innerHTML}function mn(){this.nextSibling&&this.parentNode.appendChild(this)}function hn(){return this.each(mn)}function gn(){this.previousSibling&&this.parentNode.insertBefore(this,this.parentNode.firstChild)}function _n(){return this.each(gn)}function vn(e){var t=typeof e==`function`?e:Ke(e);return this.select(function(){return this.appendChild(t.apply(this,arguments))})}function yn(){return null}function bn(e,t){var n=typeof e==`function`?e:Ke(e),r=t==null?yn:typeof t==`function`?t:Je(t);return this.select(function(){return this.insertBefore(n.apply(this,arguments),r.apply(this,arguments)||null)})}function xn(){var e=this.parentNode;e&&e.removeChild(this)}function Sn(){return this.each(xn)}function Cn(){var e=this.cloneNode(!1),t=this.parentNode;return t?t.insertBefore(e,this.nextSibling):e}function wn(){var e=this.cloneNode(!0),t=this.parentNode;return t?t.insertBefore(e,this.nextSibling):e}function Tn(e){return this.select(e?wn:Cn)}function En(e){return arguments.length?this.property(`__data__`,e):this.node().__data__}function Dn(e){return function(t){e.call(this,t,this.__data__)}}function On(e){return e.trim().split(/^|\s+/).map(function(e){var t=``,n=e.indexOf(`.`);return n>=0&&(t=e.slice(n+1),e=e.slice(0,n)),{type:e,name:t}})}function kn(e){return function(){var t=this.__on;if(t){for(var n=0,r=-1,i=t.length,a;n<i;++n)a=t[n],(!e.type||a.type===e.type)&&a.name===e.name?this.removeEventListener(a.type,a.listener,a.options):t[++r]=a;++r?t.length=r:delete this.__on}}}function An(e,t,n){return function(){var r=this.__on,i,a=Dn(t);if(r){for(var o=0,s=r.length;o<s;++o)if((i=r[o]).type===e.type&&i.name===e.name){this.removeEventListener(i.type,i.listener,i.options),this.addEventListener(i.type,i.listener=a,i.options=n),i.value=t;return}}this.addEventListener(e.type,a,n),i={type:e.type,name:e.name,value:t,listener:a,options:n},r?r.push(i):this.__on=[i]}}function jn(e,t,n){var r=On(e+``),i,a=r.length,o;if(arguments.length<2){var s=this.node().__on;if(s){for(var c=0,l=s.length,u;c<l;++c)for(i=0,u=s[c];i<a;++i)if((o=r[i]).type===u.type&&o.name===u.name)return u.value}return}for(s=t?An:kn,i=0;i<a;++i)this.each(s(r[i],t,n));return this}function Mn(e,t,n){var r=Bt(e),i=r.CustomEvent;typeof i==`function`?i=new i(t,n):(i=r.document.createEvent(`Event`),n?(i.initEvent(t,n.bubbles,n.cancelable),i.detail=n.detail):i.initEvent(t,!1,!1)),e.dispatchEvent(i)}function Nn(e,t){return function(){return Mn(this,e,t)}}function Pn(e,t){return function(){return Mn(this,e,t.apply(this,arguments))}}function Fn(e,t){return this.each((typeof t==`function`?Pn:Nn)(e,t))}function*In(){for(var e=this._groups,t=0,n=e.length;t<n;++t)for(var r=e[t],i=0,a=r.length,o;i<a;++i)(o=r[i])&&(yield o)}var Ln=[null];function R(e,t){this._groups=e,this._parents=t}function Rn(){return new R([[document.documentElement]],Ln)}function zn(){return this}R.prototype=Rn.prototype={constructor:R,select:Ye,selectAll:et,selectChild:ot,selectChildren:ut,filter:dt,data:yt,enter:pt,exit:xt,join:St,merge:Ct,selection:zn,order:wt,sort:Tt,call:Dt,nodes:Ot,node:kt,size:At,empty:jt,each:Mt,attr:zt,style:Wt,property:Yt,classed:an,text:ln,html:pn,raise:hn,lower:_n,append:vn,insert:bn,remove:Sn,clone:Tn,datum:En,on:jn,dispatch:Fn,[Symbol.iterator]:In};function z(e){return typeof e==`string`?new R([[document.querySelector(e)]],[document.documentElement]):new R([[e]],Ln)}function Bn(e){let t;for(;t=e.sourceEvent;)e=t;return e}function B(e,t){if(e=Bn(e),t===void 0&&(t=e.currentTarget),t){var n=t.ownerSVGElement||t;if(n.createSVGPoint){var r=n.createSVGPoint();return r.x=e.clientX,r.y=e.clientY,r=r.matrixTransform(t.getScreenCTM().inverse()),[r.x,r.y]}if(t.getBoundingClientRect){var i=t.getBoundingClientRect();return[e.clientX-i.left-t.clientLeft,e.clientY-i.top-t.clientTop]}}return[e.pageX,e.pageY]}var Vn={capture:!0,passive:!1};function Hn(e){e.preventDefault(),e.stopImmediatePropagation()}function Un(e){var t=e.document.documentElement,n=z(e).on(`dragstart.drag`,Hn,Vn);`onselectstart`in t?n.on(`selectstart.drag`,Hn,Vn):(t.__noselect=t.style.MozUserSelect,t.style.MozUserSelect=`none`)}function Wn(e,t){var n=e.document.documentElement,r=z(e).on(`dragstart.drag`,null);t&&(r.on(`click.drag`,Hn,Vn),setTimeout(function(){r.on(`click.drag`,null)},0)),`onselectstart`in n?r.on(`selectstart.drag`,null):(n.style.MozUserSelect=n.__noselect,delete n.__noselect)}function Gn(e,t,n){e.prototype=t.prototype=n,n.constructor=e}function Kn(e,t){var n=Object.create(e.prototype);for(var r in t)n[r]=t[r];return n}function qn(){}var Jn=.7,Yn=1/Jn,V=`\\s*([+-]?\\d+)\\s*`,Xn=`\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)\\s*`,H=`\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)%\\s*`,Zn=/^#([0-9a-f]{3,8})$/,Qn=RegExp(`^rgb\\(${V},${V},${V}\\)$`),$n=RegExp(`^rgb\\(${H},${H},${H}\\)$`),er=RegExp(`^rgba\\(${V},${V},${V},${Xn}\\)$`),tr=RegExp(`^rgba\\(${H},${H},${H},${Xn}\\)$`),nr=RegExp(`^hsl\\(${Xn},${H},${H}\\)$`),rr=RegExp(`^hsla\\(${Xn},${H},${H},${Xn}\\)$`),ir={aliceblue:15792383,antiquewhite:16444375,aqua:65535,aquamarine:8388564,azure:15794175,beige:16119260,bisque:16770244,black:0,blanchedalmond:16772045,blue:255,blueviolet:9055202,brown:10824234,burlywood:14596231,cadetblue:6266528,chartreuse:8388352,chocolate:13789470,coral:16744272,cornflowerblue:6591981,cornsilk:16775388,crimson:14423100,cyan:65535,darkblue:139,darkcyan:35723,darkgoldenrod:12092939,darkgray:11119017,darkgreen:25600,darkgrey:11119017,darkkhaki:12433259,darkmagenta:9109643,darkolivegreen:5597999,darkorange:16747520,darkorchid:10040012,darkred:9109504,darksalmon:15308410,darkseagreen:9419919,darkslateblue:4734347,darkslategray:3100495,darkslategrey:3100495,darkturquoise:52945,darkviolet:9699539,deeppink:16716947,deepskyblue:49151,dimgray:6908265,dimgrey:6908265,dodgerblue:2003199,firebrick:11674146,floralwhite:16775920,forestgreen:2263842,fuchsia:16711935,gainsboro:14474460,ghostwhite:16316671,gold:16766720,goldenrod:14329120,gray:8421504,green:32768,greenyellow:11403055,grey:8421504,honeydew:15794160,hotpink:16738740,indianred:13458524,indigo:4915330,ivory:16777200,khaki:15787660,lavender:15132410,lavenderblush:16773365,lawngreen:8190976,lemonchiffon:16775885,lightblue:11393254,lightcoral:15761536,lightcyan:14745599,lightgoldenrodyellow:16448210,lightgray:13882323,lightgreen:9498256,lightgrey:13882323,lightpink:16758465,lightsalmon:16752762,lightseagreen:2142890,lightskyblue:8900346,lightslategray:7833753,lightslategrey:7833753,lightsteelblue:11584734,lightyellow:16777184,lime:65280,limegreen:3329330,linen:16445670,magenta:16711935,maroon:8388608,mediumaquamarine:6737322,mediumblue:205,mediumorchid:12211667,mediumpurple:9662683,mediumseagreen:3978097,mediumslateblue:8087790,mediumspringgreen:64154,mediumturquoise:4772300,mediumvioletred:13047173,midnightblue:1644912,mintcream:16121850,mistyrose:16770273,moccasin:16770229,navajowhite:16768685,navy:128,oldlace:16643558,olive:8421376,olivedrab:7048739,orange:16753920,orangered:16729344,orchid:14315734,palegoldenrod:15657130,palegreen:10025880,paleturquoise:11529966,palevioletred:14381203,papayawhip:16773077,peachpuff:16767673,peru:13468991,pink:16761035,plum:14524637,powderblue:11591910,purple:8388736,rebeccapurple:6697881,red:16711680,rosybrown:12357519,royalblue:4286945,saddlebrown:9127187,salmon:16416882,sandybrown:16032864,seagreen:3050327,seashell:16774638,sienna:10506797,silver:12632256,skyblue:8900331,slateblue:6970061,slategray:7372944,slategrey:7372944,snow:16775930,springgreen:65407,steelblue:4620980,tan:13808780,teal:32896,thistle:14204888,tomato:16737095,turquoise:4251856,violet:15631086,wheat:16113331,white:16777215,whitesmoke:16119285,yellow:16776960,yellowgreen:10145074};Gn(qn,lr,{copy(e){return Object.assign(new this.constructor,this,e)},displayable(){return this.rgb().displayable()},hex:ar,formatHex:ar,formatHex8:or,formatHsl:sr,formatRgb:cr,toString:cr});function ar(){return this.rgb().formatHex()}function or(){return this.rgb().formatHex8()}function sr(){return yr(this).formatHsl()}function cr(){return this.rgb().formatRgb()}function lr(e){var t,n;return e=(e+``).trim().toLowerCase(),(t=Zn.exec(e))?(n=t[1].length,t=parseInt(t[1],16),n===6?ur(t):n===3?new U(t>>8&15|t>>4&240,t>>4&15|t&240,(t&15)<<4|t&15,1):n===8?dr(t>>24&255,t>>16&255,t>>8&255,(t&255)/255):n===4?dr(t>>12&15|t>>8&240,t>>8&15|t>>4&240,t>>4&15|t&240,((t&15)<<4|t&15)/255):null):(t=Qn.exec(e))?new U(t[1],t[2],t[3],1):(t=$n.exec(e))?new U(t[1]*255/100,t[2]*255/100,t[3]*255/100,1):(t=er.exec(e))?dr(t[1],t[2],t[3],t[4]):(t=tr.exec(e))?dr(t[1]*255/100,t[2]*255/100,t[3]*255/100,t[4]):(t=nr.exec(e))?vr(t[1],t[2]/100,t[3]/100,1):(t=rr.exec(e))?vr(t[1],t[2]/100,t[3]/100,t[4]):ir.hasOwnProperty(e)?ur(ir[e]):e===`transparent`?new U(NaN,NaN,NaN,0):null}function ur(e){return new U(e>>16&255,e>>8&255,e&255,1)}function dr(e,t,n,r){return r<=0&&(e=t=n=NaN),new U(e,t,n,r)}function fr(e){return e instanceof qn||(e=lr(e)),e?(e=e.rgb(),new U(e.r,e.g,e.b,e.opacity)):new U}function pr(e,t,n,r){return arguments.length===1?fr(e):new U(e,t,n,r??1)}function U(e,t,n,r){this.r=+e,this.g=+t,this.b=+n,this.opacity=+r}Gn(U,pr,Kn(qn,{brighter(e){return e=e==null?Yn:Yn**+e,new U(this.r*e,this.g*e,this.b*e,this.opacity)},darker(e){return e=e==null?Jn:Jn**+e,new U(this.r*e,this.g*e,this.b*e,this.opacity)},rgb(){return this},clamp(){return new U(W(this.r),W(this.g),W(this.b),_r(this.opacity))},displayable(){return-.5<=this.r&&this.r<255.5&&-.5<=this.g&&this.g<255.5&&-.5<=this.b&&this.b<255.5&&0<=this.opacity&&this.opacity<=1},hex:mr,formatHex:mr,formatHex8:hr,formatRgb:gr,toString:gr}));function mr(){return`#${G(this.r)}${G(this.g)}${G(this.b)}`}function hr(){return`#${G(this.r)}${G(this.g)}${G(this.b)}${G((isNaN(this.opacity)?1:this.opacity)*255)}`}function gr(){let e=_r(this.opacity);return`${e===1?`rgb(`:`rgba(`}${W(this.r)}, ${W(this.g)}, ${W(this.b)}${e===1?`)`:`, ${e})`}`}function _r(e){return isNaN(e)?1:Math.max(0,Math.min(1,e))}function W(e){return Math.max(0,Math.min(255,Math.round(e)||0))}function G(e){return e=W(e),(e<16?`0`:``)+e.toString(16)}function vr(e,t,n,r){return r<=0?e=t=n=NaN:n<=0||n>=1?e=t=NaN:t<=0&&(e=NaN),new K(e,t,n,r)}function yr(e){if(e instanceof K)return new K(e.h,e.s,e.l,e.opacity);if(e instanceof qn||(e=lr(e)),!e)return new K;if(e instanceof K)return e;e=e.rgb();var t=e.r/255,n=e.g/255,r=e.b/255,i=Math.min(t,n,r),a=Math.max(t,n,r),o=NaN,s=a-i,c=(a+i)/2;return s?(o=t===a?(n-r)/s+(n<r)*6:n===a?(r-t)/s+2:(t-n)/s+4,s/=c<.5?a+i:2-a-i,o*=60):s=c>0&&c<1?0:o,new K(o,s,c,e.opacity)}function br(e,t,n,r){return arguments.length===1?yr(e):new K(e,t,n,r??1)}function K(e,t,n,r){this.h=+e,this.s=+t,this.l=+n,this.opacity=+r}Gn(K,br,Kn(qn,{brighter(e){return e=e==null?Yn:Yn**+e,new K(this.h,this.s,this.l*e,this.opacity)},darker(e){return e=e==null?Jn:Jn**+e,new K(this.h,this.s,this.l*e,this.opacity)},rgb(){var e=this.h%360+(this.h<0)*360,t=isNaN(e)||isNaN(this.s)?0:this.s,n=this.l,r=n+(n<.5?n:1-n)*t,i=2*n-r;return new U(Cr(e>=240?e-240:e+120,i,r),Cr(e,i,r),Cr(e<120?e+240:e-120,i,r),this.opacity)},clamp(){return new K(xr(this.h),Sr(this.s),Sr(this.l),_r(this.opacity))},displayable(){return(0<=this.s&&this.s<=1||isNaN(this.s))&&0<=this.l&&this.l<=1&&0<=this.opacity&&this.opacity<=1},formatHsl(){let e=_r(this.opacity);return`${e===1?`hsl(`:`hsla(`}${xr(this.h)}, ${Sr(this.s)*100}%, ${Sr(this.l)*100}%${e===1?`)`:`, ${e})`}`}}));function xr(e){return e=(e||0)%360,e<0?e+360:e}function Sr(e){return Math.max(0,Math.min(1,e||0))}function Cr(e,t,n){return(e<60?t+(n-t)*e/60:e<180?n:e<240?t+(n-t)*(240-e)/60:t)*255}var wr=e=>()=>e;function Tr(e,t){return function(n){return e+n*t}}function Er(e,t,n){return e**=+n,t=t**+n-e,n=1/n,function(r){return(e+r*t)**+n}}function Dr(e){return(e=+e)==1?Or:function(t,n){return n-t?Er(t,n,e):wr(isNaN(t)?n:t)}}function Or(e,t){var n=t-e;return n?Tr(e,n):wr(isNaN(e)?t:e)}var kr=(function e(t){var n=Dr(t);function r(e,t){var r=n((e=pr(e)).r,(t=pr(t)).r),i=n(e.g,t.g),a=n(e.b,t.b),o=Or(e.opacity,t.opacity);return function(t){return e.r=r(t),e.g=i(t),e.b=a(t),e.opacity=o(t),e+``}}return r.gamma=e,r})(1);function q(e,t){return e=+e,t=+t,function(n){return e*(1-n)+t*n}}var Ar=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,jr=new RegExp(Ar.source,`g`);function Mr(e){return function(){return e}}function Nr(e){return function(t){return e(t)+``}}function Pr(e,t){var n=Ar.lastIndex=jr.lastIndex=0,r,i,a,o=-1,s=[],c=[];for(e+=``,t+=``;(r=Ar.exec(e))&&(i=jr.exec(t));)(a=i.index)>n&&(a=t.slice(n,a),s[o]?s[o]+=a:s[++o]=a),(r=r[0])===(i=i[0])?s[o]?s[o]+=i:s[++o]=i:(s[++o]=null,c.push({i:o,x:q(r,i)})),n=jr.lastIndex;return n<t.length&&(a=t.slice(n),s[o]?s[o]+=a:s[++o]=a),s.length<2?c[0]?Nr(c[0].x):Mr(t):(t=c.length,function(e){for(var n=0,r;n<t;++n)s[(r=c[n]).i]=r.x(e);return s.join(``)})}var Fr=180/Math.PI,Ir={translateX:0,translateY:0,rotate:0,skewX:0,scaleX:1,scaleY:1};function Lr(e,t,n,r,i,a){var o,s,c;return(o=Math.sqrt(e*e+t*t))&&(e/=o,t/=o),(c=e*n+t*r)&&(n-=e*c,r-=t*c),(s=Math.sqrt(n*n+r*r))&&(n/=s,r/=s,c/=s),e*r<t*n&&(e=-e,t=-t,c=-c,o=-o),{translateX:i,translateY:a,rotate:Math.atan2(t,e)*Fr,skewX:Math.atan(c)*Fr,scaleX:o,scaleY:s}}var Rr;function zr(e){let t=new(typeof DOMMatrix==`function`?DOMMatrix:WebKitCSSMatrix)(e+``);return t.isIdentity?Ir:Lr(t.a,t.b,t.c,t.d,t.e,t.f)}function Br(e){return e==null||(Rr||=document.createElementNS(`http://www.w3.org/2000/svg`,`g`),Rr.setAttribute(`transform`,e),!(e=Rr.transform.baseVal.consolidate()))?Ir:(e=e.matrix,Lr(e.a,e.b,e.c,e.d,e.e,e.f))}function Vr(e,t,n,r){function i(e){return e.length?e.pop()+` `:``}function a(e,r,i,a,o,s){if(e!==i||r!==a){var c=o.push(`translate(`,null,t,null,n);s.push({i:c-4,x:q(e,i)},{i:c-2,x:q(r,a)})}else(i||a)&&o.push(`translate(`+i+t+a+n)}function o(e,t,n,a){e===t?t&&n.push(i(n)+`rotate(`+t+r):(e-t>180?t+=360:t-e>180&&(e+=360),a.push({i:n.push(i(n)+`rotate(`,null,r)-2,x:q(e,t)}))}function s(e,t,n,a){e===t?t&&n.push(i(n)+`skewX(`+t+r):a.push({i:n.push(i(n)+`skewX(`,null,r)-2,x:q(e,t)})}function c(e,t,n,r,a,o){if(e!==n||t!==r){var s=a.push(i(a)+`scale(`,null,`,`,null,`)`);o.push({i:s-4,x:q(e,n)},{i:s-2,x:q(t,r)})}else(n!==1||r!==1)&&a.push(i(a)+`scale(`+n+`,`+r+`)`)}return function(t,n){var r=[],i=[];return t=e(t),n=e(n),a(t.translateX,t.translateY,n.translateX,n.translateY,r,i),o(t.rotate,n.rotate,r,i),s(t.skewX,n.skewX,r,i),c(t.scaleX,t.scaleY,n.scaleX,n.scaleY,r,i),t=n=null,function(e){for(var t=-1,n=i.length,a;++t<n;)r[(a=i[t]).i]=a.x(e);return r.join(``)}}}var Hr=Vr(zr,`px, `,`px)`,`deg)`),Ur=Vr(Br,`, `,`)`,`)`),Wr=1e-12;function Gr(e){return((e=Math.exp(e))+1/e)/2}function Kr(e){return((e=Math.exp(e))-1/e)/2}function qr(e){return((e=Math.exp(2*e))-1)/(e+1)}var Jr=(function e(t,n,r){function i(e,i){var a=e[0],o=e[1],s=e[2],c=i[0],l=i[1],u=i[2],d=c-a,f=l-o,p=d*d+f*f,m,h;if(p<Wr)h=Math.log(u/s)/t,m=function(e){return[a+e*d,o+e*f,s*Math.exp(t*e*h)]};else{var g=Math.sqrt(p),_=(u*u-s*s+r*p)/(2*s*n*g),v=(u*u-s*s-r*p)/(2*u*n*g),y=Math.log(Math.sqrt(_*_+1)-_);h=(Math.log(Math.sqrt(v*v+1)-v)-y)/t,m=function(e){var r=e*h,i=Gr(y),c=s/(n*g)*(i*qr(t*r+y)-Kr(y));return[a+c*d,o+c*f,s*i/Gr(t*r+y)]}}return m.duration=h*1e3*t/Math.SQRT2,m}return i.rho=function(t){var n=Math.max(.001,+t),r=n*n;return e(n,r,r*r)},i})(Math.SQRT2,2,4),Yr=0,Xr=0,Zr=0,Qr=1e3,$r,ei,ti=0,ni=0,ri=0,ii=typeof performance==`object`&&performance.now?performance:Date,ai=typeof window==`object`&&window.requestAnimationFrame?window.requestAnimationFrame.bind(window):function(e){setTimeout(e,17)};function oi(){return ni||=(ai(si),ii.now()+ri)}function si(){ni=0}function ci(){this._call=this._time=this._next=null}ci.prototype=li.prototype={constructor:ci,restart:function(e,t,n){if(typeof e!=`function`)throw TypeError(`callback is not a function`);n=(n==null?oi():+n)+(t==null?0:+t),!this._next&&ei!==this&&(ei?ei._next=this:$r=this,ei=this),this._call=e,this._time=n,mi()},stop:function(){this._call&&(this._call=null,this._time=1/0,mi())}};function li(e,t,n){var r=new ci;return r.restart(e,t,n),r}function ui(){oi(),++Yr;for(var e=$r,t;e;)(t=ni-e._time)>=0&&e._call.call(void 0,t),e=e._next;--Yr}function di(){ni=(ti=ii.now())+ri,Yr=Xr=0;try{ui()}finally{Yr=0,pi(),ni=0}}function fi(){var e=ii.now(),t=e-ti;t>Qr&&(ri-=t,ti=e)}function pi(){for(var e,t=$r,n,r=1/0;t;)t._call?(r>t._time&&(r=t._time),e=t,t=t._next):(n=t._next,t._next=null,t=e?e._next=n:$r=n);ei=e,mi(r)}function mi(e){Yr||(Xr&&=clearTimeout(Xr),e-ni>24?(e<1/0&&(Xr=setTimeout(di,e-ii.now()-ri)),Zr&&=clearInterval(Zr)):(Zr||=(ti=ii.now(),setInterval(fi,Qr)),Yr=1,ai(di)))}function hi(e,t,n){var r=new ci;return t=t==null?0:+t,r.restart(n=>{r.stop(),e(n+t)},t,n),r}var gi=Le(`start`,`end`,`cancel`,`interrupt`),_i=[];function vi(e,t,n,r,i,a){var o=e.__transition;if(!o)e.__transition={};else if(n in o)return;bi(e,n,{name:t,index:r,group:i,on:gi,tween:_i,time:a.time,delay:a.delay,duration:a.duration,ease:a.ease,timer:null,state:0})}function yi(e,t){var n=Y(e,t);if(n.state>0)throw Error(`too late; already scheduled`);return n}function J(e,t){var n=Y(e,t);if(n.state>3)throw Error(`too late; already running`);return n}function Y(e,t){var n=e.__transition;if(!n||!(n=n[t]))throw Error(`transition not found`);return n}function bi(e,t,n){var r=e.__transition,i;r[t]=n,n.timer=li(a,0,n.time);function a(e){n.state=1,n.timer.restart(o,n.delay,n.time),n.delay<=e&&o(e-n.delay)}function o(a){var l,u,d,f;if(n.state!==1)return c();for(l in r)if(f=r[l],f.name===n.name){if(f.state===3)return hi(o);f.state===4?(f.state=6,f.timer.stop(),f.on.call(`interrupt`,e,e.__data__,f.index,f.group),delete r[l]):+l<t&&(f.state=6,f.timer.stop(),f.on.call(`cancel`,e,e.__data__,f.index,f.group),delete r[l])}if(hi(function(){n.state===3&&(n.state=4,n.timer.restart(s,n.delay,n.time),s(a))}),n.state=2,n.on.call(`start`,e,e.__data__,n.index,n.group),n.state===2){for(n.state=3,i=Array(d=n.tween.length),l=0,u=-1;l<d;++l)(f=n.tween[l].value.call(e,e.__data__,n.index,n.group))&&(i[++u]=f);i.length=u+1}}function s(t){for(var r=t<n.duration?n.ease.call(null,t/n.duration):(n.timer.restart(c),n.state=5,1),a=-1,o=i.length;++a<o;)i[a].call(e,r);n.state===5&&(n.on.call(`end`,e,e.__data__,n.index,n.group),c())}function c(){for(var i in n.state=6,n.timer.stop(),delete r[t],r)return;delete e.__transition}}function xi(e,t){var n=e.__transition,r,i,a=!0,o;if(n){for(o in t=t==null?null:t+``,n){if((r=n[o]).name!==t){a=!1;continue}i=r.state>2&&r.state<5,r.state=6,r.timer.stop(),r.on.call(i?`interrupt`:`cancel`,e,e.__data__,r.index,r.group),delete n[o]}a&&delete e.__transition}}function Si(e){return this.each(function(){xi(this,e)})}function Ci(e,t){var n,r;return function(){var i=J(this,e),a=i.tween;if(a!==n){r=n=a;for(var o=0,s=r.length;o<s;++o)if(r[o].name===t){r=r.slice(),r.splice(o,1);break}}i.tween=r}}function wi(e,t,n){var r,i;if(typeof n!=`function`)throw Error();return function(){var a=J(this,e),o=a.tween;if(o!==r){i=(r=o).slice();for(var s={name:t,value:n},c=0,l=i.length;c<l;++c)if(i[c].name===t){i[c]=s;break}c===l&&i.push(s)}a.tween=i}}function Ti(e,t){var n=this._id;if(e+=``,arguments.length<2){for(var r=Y(this.node(),n).tween,i=0,a=r.length,o;i<a;++i)if((o=r[i]).name===e)return o.value;return null}return this.each((t==null?Ci:wi)(n,e,t))}function Ei(e,t,n){var r=e._id;return e.each(function(){var e=J(this,r);(e.value||={})[t]=n.apply(this,arguments)}),function(e){return Y(e,r).value[t]}}function Di(e,t){var n;return(typeof t==`number`?q:t instanceof lr?kr:(n=lr(t))?(t=n,kr):Pr)(e,t)}function Oi(e){return function(){this.removeAttribute(e)}}function ki(e){return function(){this.removeAttributeNS(e.space,e.local)}}function Ai(e,t,n){var r,i=n+``,a;return function(){var o=this.getAttribute(e);return o===i?null:o===r?a:a=t(r=o,n)}}function ji(e,t,n){var r,i=n+``,a;return function(){var o=this.getAttributeNS(e.space,e.local);return o===i?null:o===r?a:a=t(r=o,n)}}function Mi(e,t,n){var r,i,a;return function(){var o,s=n(this),c;return s==null?void this.removeAttribute(e):(o=this.getAttribute(e),c=s+``,o===c?null:o===r&&c===i?a:(i=c,a=t(r=o,s)))}}function Ni(e,t,n){var r,i,a;return function(){var o,s=n(this),c;return s==null?void this.removeAttributeNS(e.space,e.local):(o=this.getAttributeNS(e.space,e.local),c=s+``,o===c?null:o===r&&c===i?a:(i=c,a=t(r=o,s)))}}function Pi(e,t){var n=Ue(e),r=n===`transform`?Ur:Di;return this.attrTween(e,typeof t==`function`?(n.local?Ni:Mi)(n,r,Ei(this,`attr.`+e,t)):t==null?(n.local?ki:Oi)(n):(n.local?ji:Ai)(n,r,t))}function Fi(e,t){return function(n){this.setAttribute(e,t.call(this,n))}}function Ii(e,t){return function(n){this.setAttributeNS(e.space,e.local,t.call(this,n))}}function Li(e,t){var n,r;function i(){var i=t.apply(this,arguments);return i!==r&&(n=(r=i)&&Ii(e,i)),n}return i._value=t,i}function Ri(e,t){var n,r;function i(){var i=t.apply(this,arguments);return i!==r&&(n=(r=i)&&Fi(e,i)),n}return i._value=t,i}function zi(e,t){var n=`attr.`+e;if(arguments.length<2)return(n=this.tween(n))&&n._value;if(t==null)return this.tween(n,null);if(typeof t!=`function`)throw Error();var r=Ue(e);return this.tween(n,(r.local?Li:Ri)(r,t))}function Bi(e,t){return function(){yi(this,e).delay=+t.apply(this,arguments)}}function Vi(e,t){return t=+t,function(){yi(this,e).delay=t}}function Hi(e){var t=this._id;return arguments.length?this.each((typeof e==`function`?Bi:Vi)(t,e)):Y(this.node(),t).delay}function Ui(e,t){return function(){J(this,e).duration=+t.apply(this,arguments)}}function Wi(e,t){return t=+t,function(){J(this,e).duration=t}}function Gi(e){var t=this._id;return arguments.length?this.each((typeof e==`function`?Ui:Wi)(t,e)):Y(this.node(),t).duration}function Ki(e,t){if(typeof t!=`function`)throw Error();return function(){J(this,e).ease=t}}function qi(e){var t=this._id;return arguments.length?this.each(Ki(t,e)):Y(this.node(),t).ease}function Ji(e,t){return function(){var n=t.apply(this,arguments);if(typeof n!=`function`)throw Error();J(this,e).ease=n}}function Yi(e){if(typeof e!=`function`)throw Error();return this.each(Ji(this._id,e))}function Xi(e){typeof e!=`function`&&(e=tt(e));for(var t=this._groups,n=t.length,r=Array(n),i=0;i<n;++i)for(var a=t[i],o=a.length,s=r[i]=[],c,l=0;l<o;++l)(c=a[l])&&e.call(c,c.__data__,l,a)&&s.push(c);return new X(r,this._parents,this._name,this._id)}function Zi(e){if(e._id!==this._id)throw Error();for(var t=this._groups,n=e._groups,r=t.length,i=n.length,a=Math.min(r,i),o=Array(r),s=0;s<a;++s)for(var c=t[s],l=n[s],u=c.length,d=o[s]=Array(u),f,p=0;p<u;++p)(f=c[p]||l[p])&&(d[p]=f);for(;s<r;++s)o[s]=t[s];return new X(o,this._parents,this._name,this._id)}function Qi(e){return(e+``).trim().split(/^|\s+/).every(function(e){var t=e.indexOf(`.`);return t>=0&&(e=e.slice(0,t)),!e||e===`start`})}function $i(e,t,n){var r,i,a=Qi(t)?yi:J;return function(){var o=a(this,e),s=o.on;s!==r&&(i=(r=s).copy()).on(t,n),o.on=i}}function ea(e,t){var n=this._id;return arguments.length<2?Y(this.node(),n).on.on(e):this.each($i(n,e,t))}function ta(e){return function(){var t=this.parentNode;for(var n in this.__transition)if(+n!==e)return;t&&t.removeChild(this)}}function na(){return this.on(`end.remove`,ta(this._id))}function ra(e){var t=this._name,n=this._id;typeof e!=`function`&&(e=Je(e));for(var r=this._groups,i=r.length,a=Array(i),o=0;o<i;++o)for(var s=r[o],c=s.length,l=a[o]=Array(c),u,d,f=0;f<c;++f)(u=s[f])&&(d=e.call(u,u.__data__,f,s))&&(`__data__`in u&&(d.__data__=u.__data__),l[f]=d,vi(l[f],t,n,f,l,Y(u,n)));return new X(a,this._parents,t,n)}function ia(e){var t=this._name,n=this._id;typeof e!=`function`&&(e=Qe(e));for(var r=this._groups,i=r.length,a=[],o=[],s=0;s<i;++s)for(var c=r[s],l=c.length,u,d=0;d<l;++d)if(u=c[d]){for(var f=e.call(u,u.__data__,d,c),p,m=Y(u,n),h=0,g=f.length;h<g;++h)(p=f[h])&&vi(p,t,n,h,f,m);a.push(f),o.push(u)}return new X(a,o,t,n)}var aa=Rn.prototype.constructor;function oa(){return new aa(this._groups,this._parents)}function sa(e,t){var n,r,i;return function(){var a=Gt(this,e),o=(this.style.removeProperty(e),Gt(this,e));return a===o?null:a===n&&o===r?i:i=t(n=a,r=o)}}function ca(e){return function(){this.style.removeProperty(e)}}function la(e,t,n){var r,i=n+``,a;return function(){var o=Gt(this,e);return o===i?null:o===r?a:a=t(r=o,n)}}function ua(e,t,n){var r,i,a;return function(){var o=Gt(this,e),s=n(this),c=s+``;return s??(c=s=(this.style.removeProperty(e),Gt(this,e))),o===c?null:o===r&&c===i?a:(i=c,a=t(r=o,s))}}function da(e,t){var n,r,i,a=`style.`+t,o=`end.`+a,s;return function(){var c=J(this,e),l=c.on,u=c.value[a]==null?s||=ca(t):void 0;(l!==n||i!==u)&&(r=(n=l).copy()).on(o,i=u),c.on=r}}function fa(e,t,n){var r=(e+=``)==`transform`?Hr:Di;return t==null?this.styleTween(e,sa(e,r)).on(`end.style.`+e,ca(e)):typeof t==`function`?this.styleTween(e,ua(e,r,Ei(this,`style.`+e,t))).each(da(this._id,e)):this.styleTween(e,la(e,r,t),n).on(`end.style.`+e,null)}function pa(e,t,n){return function(r){this.style.setProperty(e,t.call(this,r),n)}}function ma(e,t,n){var r,i;function a(){var a=t.apply(this,arguments);return a!==i&&(r=(i=a)&&pa(e,a,n)),r}return a._value=t,a}function ha(e,t,n){var r=`style.`+(e+=``);if(arguments.length<2)return(r=this.tween(r))&&r._value;if(t==null)return this.tween(r,null);if(typeof t!=`function`)throw Error();return this.tween(r,ma(e,t,n??``))}function ga(e){return function(){this.textContent=e}}function _a(e){return function(){var t=e(this);this.textContent=t??``}}function va(e){return this.tween(`text`,typeof e==`function`?_a(Ei(this,`text`,e)):ga(e==null?``:e+``))}function ya(e){return function(t){this.textContent=e.call(this,t)}}function ba(e){var t,n;function r(){var r=e.apply(this,arguments);return r!==n&&(t=(n=r)&&ya(r)),t}return r._value=e,r}function xa(e){var t=`text`;if(arguments.length<1)return(t=this.tween(t))&&t._value;if(e==null)return this.tween(t,null);if(typeof e!=`function`)throw Error();return this.tween(t,ba(e))}function Sa(){for(var e=this._name,t=this._id,n=Ta(),r=this._groups,i=r.length,a=0;a<i;++a)for(var o=r[a],s=o.length,c,l=0;l<s;++l)if(c=o[l]){var u=Y(c,t);vi(c,e,n,l,o,{time:u.time+u.delay+u.duration,delay:0,duration:u.duration,ease:u.ease})}return new X(r,this._parents,e,n)}function Ca(){var e,t,n=this,r=n._id,i=n.size();return new Promise(function(a,o){var s={value:o},c={value:function(){--i===0&&a()}};n.each(function(){var n=J(this,r),i=n.on;i!==e&&(t=(e=i).copy(),t._.cancel.push(s),t._.interrupt.push(s),t._.end.push(c)),n.on=t}),i===0&&a()})}var wa=0;function X(e,t,n,r){this._groups=e,this._parents=t,this._name=n,this._id=r}function Ta(){return++wa}var Z=Rn.prototype;X.prototype={constructor:X,select:ra,selectAll:ia,selectChild:Z.selectChild,selectChildren:Z.selectChildren,filter:Xi,merge:Zi,selection:oa,transition:Sa,call:Z.call,nodes:Z.nodes,node:Z.node,size:Z.size,empty:Z.empty,each:Z.each,on:ea,attr:Pi,attrTween:zi,style:fa,styleTween:ha,text:va,textTween:xa,remove:na,tween:Ti,delay:Hi,duration:Gi,ease:qi,easeVarying:Yi,end:Ca,[Symbol.iterator]:Z[Symbol.iterator]};function Ea(e){return((e*=2)<=1?e*e*e:(e-=2)*e*e+2)/2}var Da={time:null,delay:0,duration:250,ease:Ea};function Oa(e,t){for(var n;!(n=e.__transition)||!(n=n[t]);)if(!(e=e.parentNode))throw Error(`transition ${t} not found`);return n}function ka(e){var t,n;e instanceof X?(t=e._id,e=e._name):(t=Ta(),(n=Da).time=oi(),e=e==null?null:e+``);for(var r=this._groups,i=r.length,a=0;a<i;++a)for(var o=r[a],s=o.length,c,l=0;l<s;++l)(c=o[l])&&vi(c,e,t,l,o,n||Oa(c,t));return new X(r,this._parents,e,t)}Rn.prototype.interrupt=Si,Rn.prototype.transition=ka;var Aa=e=>()=>e;function ja(e,{sourceEvent:t,target:n,transform:r,dispatch:i}){Object.defineProperties(this,{type:{value:e,enumerable:!0,configurable:!0},sourceEvent:{value:t,enumerable:!0,configurable:!0},target:{value:n,enumerable:!0,configurable:!0},transform:{value:r,enumerable:!0,configurable:!0},_:{value:i}})}function Q(e,t,n){this.k=e,this.x=t,this.y=n}Q.prototype={constructor:Q,scale:function(e){return e===1?this:new Q(this.k*e,this.x,this.y)},translate:function(e,t){return e===0&t===0?this:new Q(this.k,this.x+this.k*e,this.y+this.k*t)},apply:function(e){return[e[0]*this.k+this.x,e[1]*this.k+this.y]},applyX:function(e){return e*this.k+this.x},applyY:function(e){return e*this.k+this.y},invert:function(e){return[(e[0]-this.x)/this.k,(e[1]-this.y)/this.k]},invertX:function(e){return(e-this.x)/this.k},invertY:function(e){return(e-this.y)/this.k},rescaleX:function(e){return e.copy().domain(e.range().map(this.invertX,this).map(e.invert,e))},rescaleY:function(e){return e.copy().domain(e.range().map(this.invertY,this).map(e.invert,e))},toString:function(){return`translate(`+this.x+`,`+this.y+`) scale(`+this.k+`)`}};var Ma=new Q(1,0,0);Na.prototype=Q.prototype;function Na(e){for(;!e.__zoom;)if(!(e=e.parentNode))return Ma;return e.__zoom}function Pa(e){e.stopImmediatePropagation()}function Fa(e){e.preventDefault(),e.stopImmediatePropagation()}function Ia(e){return(!e.ctrlKey||e.type===`wheel`)&&!e.button}function La(){var e=this;return e instanceof SVGElement?(e=e.ownerSVGElement||e,e.hasAttribute(`viewBox`)?(e=e.viewBox.baseVal,[[e.x,e.y],[e.x+e.width,e.y+e.height]]):[[0,0],[e.width.baseVal.value,e.height.baseVal.value]]):[[0,0],[e.clientWidth,e.clientHeight]]}function Ra(){return this.__zoom||Ma}function za(e){return-e.deltaY*(e.deltaMode===1?.05:e.deltaMode?1:.002)*(e.ctrlKey?10:1)}function Ba(){return navigator.maxTouchPoints||`ontouchstart`in this}function Va(e,t,n){var r=e.invertX(t[0][0])-n[0][0],i=e.invertX(t[1][0])-n[1][0],a=e.invertY(t[0][1])-n[0][1],o=e.invertY(t[1][1])-n[1][1];return e.translate(i>r?(r+i)/2:Math.min(0,r)||Math.max(0,i),o>a?(a+o)/2:Math.min(0,a)||Math.max(0,o))}function Ha(){var e=Ia,t=La,n=Va,r=za,i=Ba,a=[0,1/0],o=[[-1/0,-1/0],[1/0,1/0]],s=250,c=Jr,l=Le(`start`,`zoom`,`end`),u,d,f,p=500,m=150,h=0,g=10;function _(e){e.property(`__zoom`,Ra).on(`wheel.zoom`,w,{passive:!1}).on(`mousedown.zoom`,T).on(`dblclick.zoom`,E).filter(i).on(`touchstart.zoom`,D).on(`touchmove.zoom`,O).on(`touchend.zoom touchcancel.zoom`,ee).style(`-webkit-tap-highlight-color`,`rgba(0,0,0,0)`)}_.transform=function(e,t,n,r){var i=e.selection?e.selection():e;i.property(`__zoom`,Ra),e===i?i.interrupt().each(function(){S(this,arguments).event(r).start().zoom(null,typeof t==`function`?t.apply(this,arguments):t).end()}):x(e,t,n,r)},_.scaleBy=function(e,t,n,r){_.scaleTo(e,function(){return this.__zoom.k*(typeof t==`function`?t.apply(this,arguments):t)},n,r)},_.scaleTo=function(e,r,i,a){_.transform(e,function(){var e=t.apply(this,arguments),a=this.__zoom,s=i==null?b(e):typeof i==`function`?i.apply(this,arguments):i,c=a.invert(s),l=typeof r==`function`?r.apply(this,arguments):r;return n(y(v(a,l),s,c),e,o)},i,a)},_.translateBy=function(e,r,i,a){_.transform(e,function(){return n(this.__zoom.translate(typeof r==`function`?r.apply(this,arguments):r,typeof i==`function`?i.apply(this,arguments):i),t.apply(this,arguments),o)},null,a)},_.translateTo=function(e,r,i,a,s){_.transform(e,function(){var e=t.apply(this,arguments),s=this.__zoom,c=a==null?b(e):typeof a==`function`?a.apply(this,arguments):a;return n(Ma.translate(c[0],c[1]).scale(s.k).translate(typeof r==`function`?-r.apply(this,arguments):-r,typeof i==`function`?-i.apply(this,arguments):-i),e,o)},a,s)};function v(e,t){return t=Math.max(a[0],Math.min(a[1],t)),t===e.k?e:new Q(t,e.x,e.y)}function y(e,t,n){var r=t[0]-n[0]*e.k,i=t[1]-n[1]*e.k;return r===e.x&&i===e.y?e:new Q(e.k,r,i)}function b(e){return[(+e[0][0]+ +e[1][0])/2,(+e[0][1]+ +e[1][1])/2]}function x(e,n,r,i){e.on(`start.zoom`,function(){S(this,arguments).event(i).start()}).on(`interrupt.zoom end.zoom`,function(){S(this,arguments).event(i).end()}).tween(`zoom`,function(){var e=this,a=arguments,o=S(e,a).event(i),s=t.apply(e,a),l=r==null?b(s):typeof r==`function`?r.apply(e,a):r,u=Math.max(s[1][0]-s[0][0],s[1][1]-s[0][1]),d=e.__zoom,f=typeof n==`function`?n.apply(e,a):n,p=c(d.invert(l).concat(u/d.k),f.invert(l).concat(u/f.k));return function(e){if(e===1)e=f;else{var t=p(e),n=u/t[2];e=new Q(n,l[0]-t[0]*n,l[1]-t[1]*n)}o.zoom(null,e)}})}function S(e,t,n){return!n&&e.__zooming||new C(e,t)}function C(e,n){this.that=e,this.args=n,this.active=0,this.sourceEvent=null,this.extent=t.apply(e,n),this.taps=0}C.prototype={event:function(e){return e&&(this.sourceEvent=e),this},start:function(){return++this.active===1&&(this.that.__zooming=this,this.emit(`start`)),this},zoom:function(e,t){return this.mouse&&e!==`mouse`&&(this.mouse[1]=t.invert(this.mouse[0])),this.touch0&&e!==`touch`&&(this.touch0[1]=t.invert(this.touch0[0])),this.touch1&&e!==`touch`&&(this.touch1[1]=t.invert(this.touch1[0])),this.that.__zoom=t,this.emit(`zoom`),this},end:function(){return--this.active===0&&(delete this.that.__zooming,this.emit(`end`)),this},emit:function(e){var t=z(this.that).datum();l.call(e,this.that,new ja(e,{sourceEvent:this.sourceEvent,target:_,type:e,transform:this.that.__zoom,dispatch:l}),t)}};function w(t,...i){if(!e.apply(this,arguments))return;var s=S(this,i).event(t),c=this.__zoom,l=Math.max(a[0],Math.min(a[1],c.k*2**r.apply(this,arguments))),u=B(t);if(s.wheel)(s.mouse[0][0]!==u[0]||s.mouse[0][1]!==u[1])&&(s.mouse[1]=c.invert(s.mouse[0]=u)),clearTimeout(s.wheel);else if(c.k===l)return;else s.mouse=[u,c.invert(u)],xi(this),s.start();Fa(t),s.wheel=setTimeout(d,m),s.zoom(`mouse`,n(y(v(c,l),s.mouse[0],s.mouse[1]),s.extent,o));function d(){s.wheel=null,s.end()}}function T(t,...r){if(f||!e.apply(this,arguments))return;var i=t.currentTarget,a=S(this,r,!0).event(t),s=z(t.view).on(`mousemove.zoom`,d,!0).on(`mouseup.zoom`,p,!0),c=B(t,i),l=t.clientX,u=t.clientY;Un(t.view),Pa(t),a.mouse=[c,this.__zoom.invert(c)],xi(this),a.start();function d(e){if(Fa(e),!a.moved){var t=e.clientX-l,r=e.clientY-u;a.moved=t*t+r*r>h}a.event(e).zoom(`mouse`,n(y(a.that.__zoom,a.mouse[0]=B(e,i),a.mouse[1]),a.extent,o))}function p(e){s.on(`mousemove.zoom mouseup.zoom`,null),Wn(e.view,a.moved),Fa(e),a.event(e).end()}}function E(r,...i){if(e.apply(this,arguments)){var a=this.__zoom,c=B(r.changedTouches?r.changedTouches[0]:r,this),l=a.invert(c),u=a.k*(r.shiftKey?.5:2),d=n(y(v(a,u),c,l),t.apply(this,i),o);Fa(r),s>0?z(this).transition().duration(s).call(x,d,c,r):z(this).call(_.transform,d,c,r)}}function D(t,...n){if(e.apply(this,arguments)){var r=t.touches,i=r.length,a=S(this,n,t.changedTouches.length===i).event(t),o,s,c,l;for(Pa(t),s=0;s<i;++s)c=r[s],l=B(c,this),l=[l,this.__zoom.invert(l),c.identifier],a.touch0?!a.touch1&&a.touch0[2]!==l[2]&&(a.touch1=l,a.taps=0):(a.touch0=l,o=!0,a.taps=1+!!u);u&&=clearTimeout(u),o&&(a.taps<2&&(d=l[0],u=setTimeout(function(){u=null},p)),xi(this),a.start())}}function O(e,...t){if(this.__zooming){var r=S(this,t).event(e),i=e.changedTouches,a=i.length,s,c,l,u;for(Fa(e),s=0;s<a;++s)c=i[s],l=B(c,this),r.touch0&&r.touch0[2]===c.identifier?r.touch0[0]=l:r.touch1&&r.touch1[2]===c.identifier&&(r.touch1[0]=l);if(c=r.that.__zoom,r.touch1){var d=r.touch0[0],f=r.touch0[1],p=r.touch1[0],m=r.touch1[1],h=(h=p[0]-d[0])*h+(h=p[1]-d[1])*h,g=(g=m[0]-f[0])*g+(g=m[1]-f[1])*g;c=v(c,Math.sqrt(h/g)),l=[(d[0]+p[0])/2,(d[1]+p[1])/2],u=[(f[0]+m[0])/2,(f[1]+m[1])/2]}else if(r.touch0)l=r.touch0[0],u=r.touch0[1];else return;r.zoom(`touch`,n(y(c,l,u),r.extent,o))}}function ee(e,...t){if(this.__zooming){var n=S(this,t).event(e),r=e.changedTouches,i=r.length,a,o;for(Pa(e),f&&clearTimeout(f),f=setTimeout(function(){f=null},p),a=0;a<i;++a)o=r[a],n.touch0&&n.touch0[2]===o.identifier?delete n.touch0:n.touch1&&n.touch1[2]===o.identifier&&delete n.touch1;if(n.touch1&&!n.touch0&&(n.touch0=n.touch1,delete n.touch1),n.touch0)n.touch0[1]=this.__zoom.invert(n.touch0[0]);else if(n.end(),n.taps===2&&(o=B(o,this),Math.hypot(d[0]-o[0],d[1]-o[1])<g)){var s=z(this).on(`dblclick.zoom`);s&&s.apply(this,arguments)}}}return _.wheelDelta=function(e){return arguments.length?(r=typeof e==`function`?e:Aa(+e),_):r},_.filter=function(t){return arguments.length?(e=typeof t==`function`?t:Aa(!!t),_):e},_.touchable=function(e){return arguments.length?(i=typeof e==`function`?e:Aa(!!e),_):i},_.extent=function(e){return arguments.length?(t=typeof e==`function`?e:Aa([[+e[0][0],+e[0][1]],[+e[1][0],+e[1][1]]]),_):t},_.scaleExtent=function(e){return arguments.length?(a[0]=+e[0],a[1]=+e[1],_):[a[0],a[1]]},_.translateExtent=function(e){return arguments.length?(o[0][0]=+e[0][0],o[1][0]=+e[1][0],o[0][1]=+e[0][1],o[1][1]=+e[1][1],_):[[o[0][0],o[0][1]],[o[1][0],o[1][1]]]},_.constrain=function(e){return arguments.length?(n=e,_):n},_.duration=function(e){return arguments.length?(s=+e,_):s},_.interpolate=function(e){return arguments.length?(c=e,_):c},_.on=function(){var e=l.on.apply(l,arguments);return e===l?_:e},_.clickDistance=function(e){return arguments.length?(h=(e=+e)*e,_):Math.sqrt(h)},_.tapDistance=function(e){return arguments.length?(g=+e,_):g},_}var Ua=[.25,2],Wa=16,Ga=(e,t)=>{let n=t.onchange,r=Ha().scaleExtent(Ua).filter(Ka).on(`zoom`,e=>n(e.transform)),i=z(e);return i.call(r).on(`dblclick.zoom`,null),e.addEventListener(`wheel`,a,{passive:!1}),t.onready?.({reset:()=>r.transform(i,Ma)}),{update:e=>{n=e.onchange},destroy:()=>{e.removeEventListener(`wheel`,a),z(e).on(`.zoom`,null)}};function a(t){if(qa(t)||Ja(t.target,`[data-scrollable]`))return;t.preventDefault();let n=t.deltaMode===WheelEvent.DOM_DELTA_LINE?Wa:1,{k:a}=Na(e);r.translateBy(i,-t.deltaX*n/a,-t.deltaY*n/a)}};function Ka(e){return e.type===`wheel`?qa(e)&&!Ja(e.target,`[data-scrollable]`):e.ctrlKey||`button`in e&&e.button!==0?!1:!Ja(e.target,`button, a, [data-scrollable]`)}function qa(e){return e.ctrlKey||e.metaKey}function Ja(e,t){return e instanceof Element&&e.closest(t)!==null}function Ya(e,t){let n=e.map(e=>({kind:`component`,id:je(e),node:e})),r=new Map,i=new Map;for(let e of t){let t=Xa(e.src),n=je(e.dst);`service`in e.src&&r.set(t,{kind:`service`,id:t,name:e.src.service});let a=i.get(`${t} ${n}`),o=+!!to(e);a===void 0?i.set(`${t} ${n}`,{id:`${t} ${n}`,from:t,to:n,calls:1,events:o}):(a.calls++,a.events+=o)}return{vertices:[...r.values(),...n],links:[...i.values()],calls:t}}function Xa(e){return`service`in e?Za+e.service:je(e)}var Za=`svc:`,Qa=`@`;function $a(e){return e.startsWith(Za)?Qa+e.slice(4):Ce(e)}function eo(e){return e.startsWith(Qa)?Za+e.slice(1):e.includes(`.`)?e:`${we}.${e}`}function to(e){return`event`in e.src}function no(e,t){return t===null?[]:e.filter(e=>e.from===t||e.to===t)}function ro(e,t){let n=new Set;if(t===null)return n;n.add(t);for(let r of e)r.from===t&&n.add(r.to),r.to===t&&n.add(r.from);return n}function io(e){return e.kind===`component`?Ce(e.id):e.name}function ao(e,t){return e.kind===`component`?Te(e.node,t)>0:ve(e.name,t)}function oo(e,t){let n=e.vertices.find(e=>e.id===t);if(n===void 0)return null;let r=new Map(e.vertices.map(e=>[e.id,e])),i=new Map,a=new Map,o=!1;for(let s of e.calls){let e=Xa(s.src),c=je(s.dst);if(e===t&&c===t){o=!0;continue}let l=c===t?`in`:e===t?`out`:null;if(l===null)continue;let u=l===`in`?e:c,d=r.get(u);if(d===void 0)continue;let f=l===`in`?{row:co(n,s),theirs:lo(s)}:{row:lo(s),theirs:co(d,s)};so(l===`in`?i:a,`${l}:${u}`,d,f,to(s))}return{vertex:n,incoming:[...i.values()].sort(uo),outgoing:[...a.values()].sort(uo),self:o}}function so(e,t,n,r,i){let a=e.get(t);a===void 0&&(a={id:t,vertex:n,wires:[]},e.set(t,a));let o={...r,id:`${t} ${r.row} ${r.theirs} ${i}`,event:i};a.wires.some(e=>e.id===o.id)||a.wires.push(o)}function co(e,t){if(e.kind!==`component`)return null;let n=t.src;if(`event`in n){let t=je(n),r=e.node.receivers.find(e=>e.source===t&&e.event===n.event);if(r!==void 0)return`receiver:${r.label}`}return`operation:${t.dst.operation}`}function lo(e){return`event`in e.src?`event:${e.src.event}`:`operation`in e.src?`operation:${e.src.operation}`:null}function uo(e,t){return e.vertex.kind===t.vertex.kind?e.vertex.id.localeCompare(t.vertex.id):e.vertex.kind===`service`?1:-1}var fo=ae(null),po=`card`,mo=`transition-spring transition-morph`;function ho(e){return`card-`+e.replace(/[^a-z0-9]+/gi,`-`)}async function go(e){fo.set(e),await h(),await se(`${oe}/${$a(e)}/`)}async function _o(){window.navigation?.canGoBack===!0?window.history.back():await se(`${oe}/`)}var vo=4,yo=(e,t)=>{let n=t,r=null;return e.addEventListener(`pointerdown`,i),e.addEventListener(`click`,a),e.addEventListener(`keydown`,o),{update:e=>n=e,destroy:()=>{e.removeEventListener(`pointerdown`,i),e.removeEventListener(`click`,a),e.removeEventListener(`keydown`,o)}};function i(e){r={x:e.clientX,y:e.clientY}}function a(t){let i=r;if(r=null,!(i!==null&&Math.hypot(t.clientX-i.x,t.clientY-i.y)>vo)){if(t.target instanceof Element){let n=t.target.closest(`button, a`);if(n!==null&&n!==e)return}n(t.shiftKey)}}function o(t){t.target===e&&(t.key===`Enter`||t.key===` `)&&(t.preventDefault(),n(t.shiftKey))}},bo=(e,t)=>{let{into:n,id:r}=t,i=new ResizeObserver(()=>a());return i.observe(e),{update:e=>{n=e.into,r=e.id,a()},destroy:()=>i.disconnect()};function a(){n.set(r,{width:e.offsetWidth,height:e.offsetHeight})}},$={width:220,height:61,gap:32,row:20},xo={height:40},So={width:400,height:320},Co=.25,wo={height:20,prefix:`band:`},To=6,Eo=32;function Do(e,t,n=4){let r=new Map,i=e.vertices.filter(e=>e.kind===`service`),a=e.vertices.filter(e=>e.kind===`component`).sort(Mo),o={x:$.width+$.gap,y:$.height+$.row},s=[{label:`user`,of:a.filter(e=>!xe(e.node))},{label:`system`,of:a.filter(e=>xe(e.node))}].filter(e=>e.of.length>0),c=[],l=0;for(let e of s)c.push({id:wo.prefix+e.label,label:e.label,x:0,y:l,width:0}),l+=wo.height+$.row,e.of.forEach((e,t)=>r.set(e.id,{x:t%n*o.x,y:l+Math.floor(t/n)*o.y})),l+=Math.ceil(e.of.length/n)*o.y;i.forEach((e,t)=>r.set(e.id,{x:t%n*o.x,y:l+Math.floor(t/n)*(xo.height+$.row)}));let u=[...r.values()].reduce((e,t)=>Math.max(e,t.x),0)+$.width;for(let e of c)e.width=u,r.set(e.id,{x:e.x,y:e.y});let d=new Map(i.map(e=>[e.id,xo.height]));jo(r,t,e=>({width:e.startsWith(wo.prefix)?u:$.width,height:e.startsWith(wo.prefix)?wo.height:d.get(e)??$.height}));for(let e of c){let t=r.get(e.id);t!==void 0&&Object.assign(e,t),r.delete(e.id)}return{positions:r,bands:c}}function Oo(e,t,n,r=null){let i=new Map([[e.vertex.id,{x:0,y:0}]]),a=Ao(n,e.vertex.id,So).height/2;return o(e.incoming,-1),o(e.outgoing,1),jo(i,t,t=>Ao(n,t,t===e.vertex.id?So:$));function o(e,t){let o=$.width+$.gap;ko(e).forEach((e,s)=>{let c=$.gap+s*o,l=e.map(e=>Ao(n,e.id,$).height),u=l.reduce((e,t)=>e+t,0)+$.row*(e.length-1),d=a-u/2;e.forEach((e,n)=>{let a=e.id===r?So.width:$.width;i.set(e.id,{x:t<0?-(c+a):So.width+c,y:d}),d+=l[n]+$.row})})}}function ko(e){if(e.length===0)return[];if(e.length<=To)return[e];let t=Math.ceil(e.length/2);return[e.slice(0,t),e.slice(t)]}function Ao(e,t,n){return e.get(t)??n}function jo(e,t,n){if(e.size===0)return e;let r={left:1/0,top:1/0,right:-1/0,bottom:-1/0};for(let[t,i]of e){let{width:e,height:a}=n(t);r.left=Math.min(r.left,i.x),r.top=Math.min(r.top,i.y),r.right=Math.max(r.right,i.x+e),r.bottom=Math.max(r.bottom,i.y+a)}let i={width:r.right-r.left,height:r.bottom-r.top},a={x:Math.max(Eo,(t.width-i.width)/2)-r.left,y:Math.max(Eo,(t.height-i.height)/2)-r.top};for(let[t,n]of e)e.set(t,{x:n.x+a.x,y:n.y+a.y});return e}function Mo(e,t){return e.id.localeCompare(t.id)}var No=new Set([`$$slots`,`$$events`,`$$legacy`]);function Po(e,t){let n=b(t,No),r=[[`path`,{d:`M21 16V8a2 2 0 0 0-1-1.73l-7-4a2 2 0 0 0-2 0l-7 4A2 2 0 0 0 3 8v8a2 2 0 0 0 1 1.73l7 4a2 2 0 0 0 2 0l7-4A2 2 0 0 0 21 16z`}],[`circle`,{cx:`12`,cy:`12`,r:`4`}]];ce(e,P({name:`bolt`},()=>n,{get iconNode(){return r}}))}var Fo=c(`<!> <!>`,1);function Io(e,n){r(n,!0);var i=A(),o=I(i);{let e=w(()=>[`bg-muted items-center`,n.class]);S(o,()=>he,(r,i)=>{i(r,{variant:`muted`,size:`sm`,get style(){return`height: ${xo.height??``}px`},get class(){return g(e)},children:(e,r)=>{var i=Fo(),o=I(i);S(o,()=>Pe,(e,t)=>{t(e,{children:(e,t)=>{Po(e,{class:`text-muted-foreground size-4`})},$$slots:{default:!0}})});var s=N(o,2);S(s,()=>L,(e,r)=>{r(e,{children:(e,r)=>{var i=A(),o=I(i);S(o,()=>Me,(e,r)=>{r(e,{class:`gap-0`,children:(e,r)=>{d();var i=a();v(()=>u(i,n.name)),t(e,i)},$$slots:{default:!0}})}),t(e,i)},$$slots:{default:!0}})}),t(e,i)},$$slots:{default:!0}})})}t(e,i),p()}var Lo=1/3,Ro=2/3;function zo(e,t,n){return Vo(e,t,n,Ro)}function Bo(e,t,n){return Vo(e,t,n,Lo)}function Vo(e,t,n,r){let i=t>=e.x+e.width/2,a=e.y+(n?.y??e.height*r);if(n?.x===void 0)return{x:i?e.x+e.width:e.x,y:a,away:i?1:-1};let o=e.x+n.x;return{x:o,y:a,away:t>=o?1:-1}}function Ho(e,t){let n=Math.max(40,Math.abs(t.x-e.x)/2),r={x:e.x+e.away*n,y:e.y},i={x:t.x+t.away*n,y:t.y};return`M${e.x},${e.y} C${r.x},${r.y} ${i.x},${i.y} ${t.x},${t.y}`}function Uo(e){let t=e.x+e.width/2,n=e.y+e.height;return`M${t-10},${n} C${t-28},${n+28} ${t+28},${n+28} ${t+10},${n}`}var Wo=l(`<path fill="none" stroke="currentColor" stroke-width="1.5" class="transition-opacity" marker-end="url(#map-arrow)"></path>`),Go=l(`<svg aria-hidden="true"><defs><marker id="map-arrow" viewBox="0 0 8 8" refX="7" refY="4" markerWidth="8" markerHeight="8" orient="auto-start-reverse"><path d="M0,0 L8,4 L0,8 z" fill="currentColor"></path></marker></defs><!></svg>`);function Ko(e,i){r(i,!0);let a=w(()=>i.arcs.map(e=>{let t=o(e.from),n=o(e.to);if(t===null||n===null)return null;let r=e.from===e.to?Uo(t):Ho(zo(t,n.x,e.out),Bo(n,t.x,e.in));return{id:e.id,d:r,dashed:e.dashed===!0,dimmed:e.dimmed===!0}}).filter(e=>e!==null));function o(e){let t=i.positions.get(e),n=i.sizes.get(e);return t===void 0||n===void 0?null:{...t,...n}}var s=Go(),c=N(E(s));n(c,17,()=>g(a),e=>e.id,(e,n)=>{var r=Wo();v(()=>{D(r,`d`,g(n).d),D(r,`stroke-dasharray`,g(n).dashed?`4 3`:void 0),D(r,`opacity`,g(n).dimmed?Co:void 0)}),t(e,r)}),M(s),v(()=>te(s,0,ee([`pointer-events-none absolute overflow-visible`,i.class]))),t(e,s),p()}var qo=c(`<span class="text-muted-foreground"> </span>`),Jo=c(`<!> `,1),Yo=c(`<!> <!>`,1),Xo=c(`<button type="button" class="text-muted-foreground hover:bg-muted hover:text-foreground -m-1 shrink-0
1
+ import{$ as e,A as t,C as n,Ct as r,E as i,F as a,I as o,L as s,M as c,N as l,O as u,Ot as d,R as f,St as p,T as m,U as h,V as g,X as _,Y as v,_ as y,a as b,at as x,b as S,c as C,ct as w,dt as T,et as E,f as D,ft as O,h as ee,i as k,j as A,jt as j,kt as M,m as te,nt as N,o as P,p as ne,q as F,rt as re,st as ie,tt as I,vt as ae}from"./sTot5bBi.js";import{s as oe,t as se}from"./BQ9nmkXV.js";import"./DxKTFrYR.js";import"./xihTtKlq.js";import{F as ce,I as le,N as ue,c as de,l as fe}from"./BevATjyM.js";import"./BbFulXbk.js";import{$ as pe,C as me,S as L,_ as he,_t as ge,c as _e,d as ve,et as ye,f as be,g as xe,gt as Se,h as Ce,l as we,m as Te,n as Ee,o as De,p as Oe,s as ke,t as Ae,u as je,v as Me,x as Ne,y as Pe}from"./Ca35eOAI.js";import{t as Fe}from"./DT2OxQwL.js";var Ie={value:()=>{}};function Le(){for(var e=0,t=arguments.length,n={},r;e<t;++e){if(!(r=arguments[e]+``)||r in n||/[\s.]/.test(r))throw Error(`illegal type: `+r);n[r]=[]}return new Re(n)}function Re(e){this._=e}function ze(e,t){return e.trim().split(/^|\s+/).map(function(e){var n=``,r=e.indexOf(`.`);if(r>=0&&(n=e.slice(r+1),e=e.slice(0,r)),e&&!t.hasOwnProperty(e))throw Error(`unknown type: `+e);return{type:e,name:n}})}Re.prototype=Le.prototype={constructor:Re,on:function(e,t){var n=this._,r=ze(e+``,n),i,a=-1,o=r.length;if(arguments.length<2){for(;++a<o;)if((i=(e=r[a]).type)&&(i=Be(n[i],e.name)))return i;return}if(t!=null&&typeof t!=`function`)throw Error(`invalid callback: `+t);for(;++a<o;)if(i=(e=r[a]).type)n[i]=Ve(n[i],e.name,t);else if(t==null)for(i in n)n[i]=Ve(n[i],e.name,null);return this},copy:function(){var e={},t=this._;for(var n in t)e[n]=t[n].slice();return new Re(e)},call:function(e,t){if((i=arguments.length-2)>0)for(var n=Array(i),r=0,i,a;r<i;++r)n[r]=arguments[r+2];if(!this._.hasOwnProperty(e))throw Error(`unknown type: `+e);for(a=this._[e],r=0,i=a.length;r<i;++r)a[r].value.apply(t,n)},apply:function(e,t,n){if(!this._.hasOwnProperty(e))throw Error(`unknown type: `+e);for(var r=this._[e],i=0,a=r.length;i<a;++i)r[i].value.apply(t,n)}};function Be(e,t){for(var n=0,r=e.length,i;n<r;++n)if((i=e[n]).name===t)return i.value}function Ve(e,t,n){for(var r=0,i=e.length;r<i;++r)if(e[r].name===t){e[r]=Ie,e=e.slice(0,r).concat(e.slice(r+1));break}return n!=null&&e.push({name:t,value:n}),e}var He={svg:`http://www.w3.org/2000/svg`,xhtml:`http://www.w3.org/1999/xhtml`,xlink:`http://www.w3.org/1999/xlink`,xml:`http://www.w3.org/XML/1998/namespace`,xmlns:`http://www.w3.org/2000/xmlns/`};function Ue(e){var t=e+=``,n=t.indexOf(`:`);return n>=0&&(t=e.slice(0,n))!==`xmlns`&&(e=e.slice(n+1)),He.hasOwnProperty(t)?{space:He[t],local:e}:e}function We(e){return function(){var t=this.ownerDocument,n=this.namespaceURI;return n===`http://www.w3.org/1999/xhtml`&&t.documentElement.namespaceURI===`http://www.w3.org/1999/xhtml`?t.createElement(e):t.createElementNS(n,e)}}function Ge(e){return function(){return this.ownerDocument.createElementNS(e.space,e.local)}}function Ke(e){var t=Ue(e);return(t.local?Ge:We)(t)}function qe(){}function Je(e){return e==null?qe:function(){return this.querySelector(e)}}function Ye(e){typeof e!=`function`&&(e=Je(e));for(var t=this._groups,n=t.length,r=Array(n),i=0;i<n;++i)for(var a=t[i],o=a.length,s=r[i]=Array(o),c,l,u=0;u<o;++u)(c=a[u])&&(l=e.call(c,c.__data__,u,a))&&(`__data__`in c&&(l.__data__=c.__data__),s[u]=l);return new R(r,this._parents)}function Xe(e){return e==null?[]:Array.isArray(e)?e:Array.from(e)}function Ze(){return[]}function Qe(e){return e==null?Ze:function(){return this.querySelectorAll(e)}}function $e(e){return function(){return Xe(e.apply(this,arguments))}}function et(e){e=typeof e==`function`?$e(e):Qe(e);for(var t=this._groups,n=t.length,r=[],i=[],a=0;a<n;++a)for(var o=t[a],s=o.length,c,l=0;l<s;++l)(c=o[l])&&(r.push(e.call(c,c.__data__,l,o)),i.push(c));return new R(r,i)}function tt(e){return function(){return this.matches(e)}}function nt(e){return function(t){return t.matches(e)}}var rt=Array.prototype.find;function it(e){return function(){return rt.call(this.children,e)}}function at(){return this.firstElementChild}function ot(e){return this.select(e==null?at:it(typeof e==`function`?e:nt(e)))}var st=Array.prototype.filter;function ct(){return Array.from(this.children)}function lt(e){return function(){return st.call(this.children,e)}}function ut(e){return this.selectAll(e==null?ct:lt(typeof e==`function`?e:nt(e)))}function dt(e){typeof e!=`function`&&(e=tt(e));for(var t=this._groups,n=t.length,r=Array(n),i=0;i<n;++i)for(var a=t[i],o=a.length,s=r[i]=[],c,l=0;l<o;++l)(c=a[l])&&e.call(c,c.__data__,l,a)&&s.push(c);return new R(r,this._parents)}function ft(e){return Array(e.length)}function pt(){return new R(this._enter||this._groups.map(ft),this._parents)}function mt(e,t){this.ownerDocument=e.ownerDocument,this.namespaceURI=e.namespaceURI,this._next=null,this._parent=e,this.__data__=t}mt.prototype={constructor:mt,appendChild:function(e){return this._parent.insertBefore(e,this._next)},insertBefore:function(e,t){return this._parent.insertBefore(e,t)},querySelector:function(e){return this._parent.querySelector(e)},querySelectorAll:function(e){return this._parent.querySelectorAll(e)}};function ht(e){return function(){return e}}function gt(e,t,n,r,i,a){for(var o=0,s,c=t.length,l=a.length;o<l;++o)(s=t[o])?(s.__data__=a[o],r[o]=s):n[o]=new mt(e,a[o]);for(;o<c;++o)(s=t[o])&&(i[o]=s)}function _t(e,t,n,r,i,a,o){var s,c,l=new Map,u=t.length,d=a.length,f=Array(u),p;for(s=0;s<u;++s)(c=t[s])&&(f[s]=p=o.call(c,c.__data__,s,t)+``,l.has(p)?i[s]=c:l.set(p,c));for(s=0;s<d;++s)p=o.call(e,a[s],s,a)+``,(c=l.get(p))?(r[s]=c,c.__data__=a[s],l.delete(p)):n[s]=new mt(e,a[s]);for(s=0;s<u;++s)(c=t[s])&&l.get(f[s])===c&&(i[s]=c)}function vt(e){return e.__data__}function yt(e,t){if(!arguments.length)return Array.from(this,vt);var n=t?_t:gt,r=this._parents,i=this._groups;typeof e!=`function`&&(e=ht(e));for(var a=i.length,o=Array(a),s=Array(a),c=Array(a),l=0;l<a;++l){var u=r[l],d=i[l],f=d.length,p=bt(e.call(u,u&&u.__data__,l,r)),m=p.length,h=s[l]=Array(m),g=o[l]=Array(m);n(u,d,h,g,c[l]=Array(f),p,t);for(var _=0,v=0,y,b;_<m;++_)if(y=h[_]){for(_>=v&&(v=_+1);!(b=g[v])&&++v<m;);y._next=b||null}}return o=new R(o,r),o._enter=s,o._exit=c,o}function bt(e){return typeof e==`object`&&`length`in e?e:Array.from(e)}function xt(){return new R(this._exit||this._groups.map(ft),this._parents)}function St(e,t,n){var r=this.enter(),i=this,a=this.exit();return typeof e==`function`?(r=e(r),r&&=r.selection()):r=r.append(e+``),t!=null&&(i=t(i),i&&=i.selection()),n==null?a.remove():n(a),r&&i?r.merge(i).order():i}function Ct(e){for(var t=e.selection?e.selection():e,n=this._groups,r=t._groups,i=n.length,a=r.length,o=Math.min(i,a),s=Array(i),c=0;c<o;++c)for(var l=n[c],u=r[c],d=l.length,f=s[c]=Array(d),p,m=0;m<d;++m)(p=l[m]||u[m])&&(f[m]=p);for(;c<i;++c)s[c]=n[c];return new R(s,this._parents)}function wt(){for(var e=this._groups,t=-1,n=e.length;++t<n;)for(var r=e[t],i=r.length-1,a=r[i],o;--i>=0;)(o=r[i])&&(a&&o.compareDocumentPosition(a)^4&&a.parentNode.insertBefore(o,a),a=o);return this}function Tt(e){e||=Et;function t(t,n){return t&&n?e(t.__data__,n.__data__):!t-!n}for(var n=this._groups,r=n.length,i=Array(r),a=0;a<r;++a){for(var o=n[a],s=o.length,c=i[a]=Array(s),l,u=0;u<s;++u)(l=o[u])&&(c[u]=l);c.sort(t)}return new R(i,this._parents).order()}function Et(e,t){return e<t?-1:e>t?1:e>=t?0:NaN}function Dt(){var e=arguments[0];return arguments[0]=this,e.apply(null,arguments),this}function Ot(){return Array.from(this)}function kt(){for(var e=this._groups,t=0,n=e.length;t<n;++t)for(var r=e[t],i=0,a=r.length;i<a;++i){var o=r[i];if(o)return o}return null}function At(){let e=0;for(let t of this)++e;return e}function jt(){return!this.node()}function Mt(e){for(var t=this._groups,n=0,r=t.length;n<r;++n)for(var i=t[n],a=0,o=i.length,s;a<o;++a)(s=i[a])&&e.call(s,s.__data__,a,i);return this}function Nt(e){return function(){this.removeAttribute(e)}}function Pt(e){return function(){this.removeAttributeNS(e.space,e.local)}}function Ft(e,t){return function(){this.setAttribute(e,t)}}function It(e,t){return function(){this.setAttributeNS(e.space,e.local,t)}}function Lt(e,t){return function(){var n=t.apply(this,arguments);n==null?this.removeAttribute(e):this.setAttribute(e,n)}}function Rt(e,t){return function(){var n=t.apply(this,arguments);n==null?this.removeAttributeNS(e.space,e.local):this.setAttributeNS(e.space,e.local,n)}}function zt(e,t){var n=Ue(e);if(arguments.length<2){var r=this.node();return n.local?r.getAttributeNS(n.space,n.local):r.getAttribute(n)}return this.each((t==null?n.local?Pt:Nt:typeof t==`function`?n.local?Rt:Lt:n.local?It:Ft)(n,t))}function Bt(e){return e.ownerDocument&&e.ownerDocument.defaultView||e.document&&e||e.defaultView}function Vt(e){return function(){this.style.removeProperty(e)}}function Ht(e,t,n){return function(){this.style.setProperty(e,t,n)}}function Ut(e,t,n){return function(){var r=t.apply(this,arguments);r==null?this.style.removeProperty(e):this.style.setProperty(e,r,n)}}function Wt(e,t,n){return arguments.length>1?this.each((t==null?Vt:typeof t==`function`?Ut:Ht)(e,t,n??``)):Gt(this.node(),e)}function Gt(e,t){return e.style.getPropertyValue(t)||Bt(e).getComputedStyle(e,null).getPropertyValue(t)}function Kt(e){return function(){delete this[e]}}function qt(e,t){return function(){this[e]=t}}function Jt(e,t){return function(){var n=t.apply(this,arguments);n==null?delete this[e]:this[e]=n}}function Yt(e,t){return arguments.length>1?this.each((t==null?Kt:typeof t==`function`?Jt:qt)(e,t)):this.node()[e]}function Xt(e){return e.trim().split(/^|\s+/)}function Zt(e){return e.classList||new Qt(e)}function Qt(e){this._node=e,this._names=Xt(e.getAttribute(`class`)||``)}Qt.prototype={add:function(e){this._names.indexOf(e)<0&&(this._names.push(e),this._node.setAttribute(`class`,this._names.join(` `)))},remove:function(e){var t=this._names.indexOf(e);t>=0&&(this._names.splice(t,1),this._node.setAttribute(`class`,this._names.join(` `)))},contains:function(e){return this._names.indexOf(e)>=0}};function $t(e,t){for(var n=Zt(e),r=-1,i=t.length;++r<i;)n.add(t[r])}function en(e,t){for(var n=Zt(e),r=-1,i=t.length;++r<i;)n.remove(t[r])}function tn(e){return function(){$t(this,e)}}function nn(e){return function(){en(this,e)}}function rn(e,t){return function(){(t.apply(this,arguments)?$t:en)(this,e)}}function an(e,t){var n=Xt(e+``);if(arguments.length<2){for(var r=Zt(this.node()),i=-1,a=n.length;++i<a;)if(!r.contains(n[i]))return!1;return!0}return this.each((typeof t==`function`?rn:t?tn:nn)(n,t))}function on(){this.textContent=``}function sn(e){return function(){this.textContent=e}}function cn(e){return function(){var t=e.apply(this,arguments);this.textContent=t??``}}function ln(e){return arguments.length?this.each(e==null?on:(typeof e==`function`?cn:sn)(e)):this.node().textContent}function un(){this.innerHTML=``}function dn(e){return function(){this.innerHTML=e}}function fn(e){return function(){var t=e.apply(this,arguments);this.innerHTML=t??``}}function pn(e){return arguments.length?this.each(e==null?un:(typeof e==`function`?fn:dn)(e)):this.node().innerHTML}function mn(){this.nextSibling&&this.parentNode.appendChild(this)}function hn(){return this.each(mn)}function gn(){this.previousSibling&&this.parentNode.insertBefore(this,this.parentNode.firstChild)}function _n(){return this.each(gn)}function vn(e){var t=typeof e==`function`?e:Ke(e);return this.select(function(){return this.appendChild(t.apply(this,arguments))})}function yn(){return null}function bn(e,t){var n=typeof e==`function`?e:Ke(e),r=t==null?yn:typeof t==`function`?t:Je(t);return this.select(function(){return this.insertBefore(n.apply(this,arguments),r.apply(this,arguments)||null)})}function xn(){var e=this.parentNode;e&&e.removeChild(this)}function Sn(){return this.each(xn)}function Cn(){var e=this.cloneNode(!1),t=this.parentNode;return t?t.insertBefore(e,this.nextSibling):e}function wn(){var e=this.cloneNode(!0),t=this.parentNode;return t?t.insertBefore(e,this.nextSibling):e}function Tn(e){return this.select(e?wn:Cn)}function En(e){return arguments.length?this.property(`__data__`,e):this.node().__data__}function Dn(e){return function(t){e.call(this,t,this.__data__)}}function On(e){return e.trim().split(/^|\s+/).map(function(e){var t=``,n=e.indexOf(`.`);return n>=0&&(t=e.slice(n+1),e=e.slice(0,n)),{type:e,name:t}})}function kn(e){return function(){var t=this.__on;if(t){for(var n=0,r=-1,i=t.length,a;n<i;++n)a=t[n],(!e.type||a.type===e.type)&&a.name===e.name?this.removeEventListener(a.type,a.listener,a.options):t[++r]=a;++r?t.length=r:delete this.__on}}}function An(e,t,n){return function(){var r=this.__on,i,a=Dn(t);if(r){for(var o=0,s=r.length;o<s;++o)if((i=r[o]).type===e.type&&i.name===e.name){this.removeEventListener(i.type,i.listener,i.options),this.addEventListener(i.type,i.listener=a,i.options=n),i.value=t;return}}this.addEventListener(e.type,a,n),i={type:e.type,name:e.name,value:t,listener:a,options:n},r?r.push(i):this.__on=[i]}}function jn(e,t,n){var r=On(e+``),i,a=r.length,o;if(arguments.length<2){var s=this.node().__on;if(s){for(var c=0,l=s.length,u;c<l;++c)for(i=0,u=s[c];i<a;++i)if((o=r[i]).type===u.type&&o.name===u.name)return u.value}return}for(s=t?An:kn,i=0;i<a;++i)this.each(s(r[i],t,n));return this}function Mn(e,t,n){var r=Bt(e),i=r.CustomEvent;typeof i==`function`?i=new i(t,n):(i=r.document.createEvent(`Event`),n?(i.initEvent(t,n.bubbles,n.cancelable),i.detail=n.detail):i.initEvent(t,!1,!1)),e.dispatchEvent(i)}function Nn(e,t){return function(){return Mn(this,e,t)}}function Pn(e,t){return function(){return Mn(this,e,t.apply(this,arguments))}}function Fn(e,t){return this.each((typeof t==`function`?Pn:Nn)(e,t))}function*In(){for(var e=this._groups,t=0,n=e.length;t<n;++t)for(var r=e[t],i=0,a=r.length,o;i<a;++i)(o=r[i])&&(yield o)}var Ln=[null];function R(e,t){this._groups=e,this._parents=t}function Rn(){return new R([[document.documentElement]],Ln)}function zn(){return this}R.prototype=Rn.prototype={constructor:R,select:Ye,selectAll:et,selectChild:ot,selectChildren:ut,filter:dt,data:yt,enter:pt,exit:xt,join:St,merge:Ct,selection:zn,order:wt,sort:Tt,call:Dt,nodes:Ot,node:kt,size:At,empty:jt,each:Mt,attr:zt,style:Wt,property:Yt,classed:an,text:ln,html:pn,raise:hn,lower:_n,append:vn,insert:bn,remove:Sn,clone:Tn,datum:En,on:jn,dispatch:Fn,[Symbol.iterator]:In};function z(e){return typeof e==`string`?new R([[document.querySelector(e)]],[document.documentElement]):new R([[e]],Ln)}function Bn(e){let t;for(;t=e.sourceEvent;)e=t;return e}function B(e,t){if(e=Bn(e),t===void 0&&(t=e.currentTarget),t){var n=t.ownerSVGElement||t;if(n.createSVGPoint){var r=n.createSVGPoint();return r.x=e.clientX,r.y=e.clientY,r=r.matrixTransform(t.getScreenCTM().inverse()),[r.x,r.y]}if(t.getBoundingClientRect){var i=t.getBoundingClientRect();return[e.clientX-i.left-t.clientLeft,e.clientY-i.top-t.clientTop]}}return[e.pageX,e.pageY]}var Vn={capture:!0,passive:!1};function Hn(e){e.preventDefault(),e.stopImmediatePropagation()}function Un(e){var t=e.document.documentElement,n=z(e).on(`dragstart.drag`,Hn,Vn);`onselectstart`in t?n.on(`selectstart.drag`,Hn,Vn):(t.__noselect=t.style.MozUserSelect,t.style.MozUserSelect=`none`)}function Wn(e,t){var n=e.document.documentElement,r=z(e).on(`dragstart.drag`,null);t&&(r.on(`click.drag`,Hn,Vn),setTimeout(function(){r.on(`click.drag`,null)},0)),`onselectstart`in n?r.on(`selectstart.drag`,null):(n.style.MozUserSelect=n.__noselect,delete n.__noselect)}function Gn(e,t,n){e.prototype=t.prototype=n,n.constructor=e}function Kn(e,t){var n=Object.create(e.prototype);for(var r in t)n[r]=t[r];return n}function qn(){}var Jn=.7,Yn=1/Jn,V=`\\s*([+-]?\\d+)\\s*`,Xn=`\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)\\s*`,H=`\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)%\\s*`,Zn=/^#([0-9a-f]{3,8})$/,Qn=RegExp(`^rgb\\(${V},${V},${V}\\)$`),$n=RegExp(`^rgb\\(${H},${H},${H}\\)$`),er=RegExp(`^rgba\\(${V},${V},${V},${Xn}\\)$`),tr=RegExp(`^rgba\\(${H},${H},${H},${Xn}\\)$`),nr=RegExp(`^hsl\\(${Xn},${H},${H}\\)$`),rr=RegExp(`^hsla\\(${Xn},${H},${H},${Xn}\\)$`),ir={aliceblue:15792383,antiquewhite:16444375,aqua:65535,aquamarine:8388564,azure:15794175,beige:16119260,bisque:16770244,black:0,blanchedalmond:16772045,blue:255,blueviolet:9055202,brown:10824234,burlywood:14596231,cadetblue:6266528,chartreuse:8388352,chocolate:13789470,coral:16744272,cornflowerblue:6591981,cornsilk:16775388,crimson:14423100,cyan:65535,darkblue:139,darkcyan:35723,darkgoldenrod:12092939,darkgray:11119017,darkgreen:25600,darkgrey:11119017,darkkhaki:12433259,darkmagenta:9109643,darkolivegreen:5597999,darkorange:16747520,darkorchid:10040012,darkred:9109504,darksalmon:15308410,darkseagreen:9419919,darkslateblue:4734347,darkslategray:3100495,darkslategrey:3100495,darkturquoise:52945,darkviolet:9699539,deeppink:16716947,deepskyblue:49151,dimgray:6908265,dimgrey:6908265,dodgerblue:2003199,firebrick:11674146,floralwhite:16775920,forestgreen:2263842,fuchsia:16711935,gainsboro:14474460,ghostwhite:16316671,gold:16766720,goldenrod:14329120,gray:8421504,green:32768,greenyellow:11403055,grey:8421504,honeydew:15794160,hotpink:16738740,indianred:13458524,indigo:4915330,ivory:16777200,khaki:15787660,lavender:15132410,lavenderblush:16773365,lawngreen:8190976,lemonchiffon:16775885,lightblue:11393254,lightcoral:15761536,lightcyan:14745599,lightgoldenrodyellow:16448210,lightgray:13882323,lightgreen:9498256,lightgrey:13882323,lightpink:16758465,lightsalmon:16752762,lightseagreen:2142890,lightskyblue:8900346,lightslategray:7833753,lightslategrey:7833753,lightsteelblue:11584734,lightyellow:16777184,lime:65280,limegreen:3329330,linen:16445670,magenta:16711935,maroon:8388608,mediumaquamarine:6737322,mediumblue:205,mediumorchid:12211667,mediumpurple:9662683,mediumseagreen:3978097,mediumslateblue:8087790,mediumspringgreen:64154,mediumturquoise:4772300,mediumvioletred:13047173,midnightblue:1644912,mintcream:16121850,mistyrose:16770273,moccasin:16770229,navajowhite:16768685,navy:128,oldlace:16643558,olive:8421376,olivedrab:7048739,orange:16753920,orangered:16729344,orchid:14315734,palegoldenrod:15657130,palegreen:10025880,paleturquoise:11529966,palevioletred:14381203,papayawhip:16773077,peachpuff:16767673,peru:13468991,pink:16761035,plum:14524637,powderblue:11591910,purple:8388736,rebeccapurple:6697881,red:16711680,rosybrown:12357519,royalblue:4286945,saddlebrown:9127187,salmon:16416882,sandybrown:16032864,seagreen:3050327,seashell:16774638,sienna:10506797,silver:12632256,skyblue:8900331,slateblue:6970061,slategray:7372944,slategrey:7372944,snow:16775930,springgreen:65407,steelblue:4620980,tan:13808780,teal:32896,thistle:14204888,tomato:16737095,turquoise:4251856,violet:15631086,wheat:16113331,white:16777215,whitesmoke:16119285,yellow:16776960,yellowgreen:10145074};Gn(qn,lr,{copy(e){return Object.assign(new this.constructor,this,e)},displayable(){return this.rgb().displayable()},hex:ar,formatHex:ar,formatHex8:or,formatHsl:sr,formatRgb:cr,toString:cr});function ar(){return this.rgb().formatHex()}function or(){return this.rgb().formatHex8()}function sr(){return yr(this).formatHsl()}function cr(){return this.rgb().formatRgb()}function lr(e){var t,n;return e=(e+``).trim().toLowerCase(),(t=Zn.exec(e))?(n=t[1].length,t=parseInt(t[1],16),n===6?ur(t):n===3?new U(t>>8&15|t>>4&240,t>>4&15|t&240,(t&15)<<4|t&15,1):n===8?dr(t>>24&255,t>>16&255,t>>8&255,(t&255)/255):n===4?dr(t>>12&15|t>>8&240,t>>8&15|t>>4&240,t>>4&15|t&240,((t&15)<<4|t&15)/255):null):(t=Qn.exec(e))?new U(t[1],t[2],t[3],1):(t=$n.exec(e))?new U(t[1]*255/100,t[2]*255/100,t[3]*255/100,1):(t=er.exec(e))?dr(t[1],t[2],t[3],t[4]):(t=tr.exec(e))?dr(t[1]*255/100,t[2]*255/100,t[3]*255/100,t[4]):(t=nr.exec(e))?vr(t[1],t[2]/100,t[3]/100,1):(t=rr.exec(e))?vr(t[1],t[2]/100,t[3]/100,t[4]):ir.hasOwnProperty(e)?ur(ir[e]):e===`transparent`?new U(NaN,NaN,NaN,0):null}function ur(e){return new U(e>>16&255,e>>8&255,e&255,1)}function dr(e,t,n,r){return r<=0&&(e=t=n=NaN),new U(e,t,n,r)}function fr(e){return e instanceof qn||(e=lr(e)),e?(e=e.rgb(),new U(e.r,e.g,e.b,e.opacity)):new U}function pr(e,t,n,r){return arguments.length===1?fr(e):new U(e,t,n,r??1)}function U(e,t,n,r){this.r=+e,this.g=+t,this.b=+n,this.opacity=+r}Gn(U,pr,Kn(qn,{brighter(e){return e=e==null?Yn:Yn**+e,new U(this.r*e,this.g*e,this.b*e,this.opacity)},darker(e){return e=e==null?Jn:Jn**+e,new U(this.r*e,this.g*e,this.b*e,this.opacity)},rgb(){return this},clamp(){return new U(W(this.r),W(this.g),W(this.b),_r(this.opacity))},displayable(){return-.5<=this.r&&this.r<255.5&&-.5<=this.g&&this.g<255.5&&-.5<=this.b&&this.b<255.5&&0<=this.opacity&&this.opacity<=1},hex:mr,formatHex:mr,formatHex8:hr,formatRgb:gr,toString:gr}));function mr(){return`#${G(this.r)}${G(this.g)}${G(this.b)}`}function hr(){return`#${G(this.r)}${G(this.g)}${G(this.b)}${G((isNaN(this.opacity)?1:this.opacity)*255)}`}function gr(){let e=_r(this.opacity);return`${e===1?`rgb(`:`rgba(`}${W(this.r)}, ${W(this.g)}, ${W(this.b)}${e===1?`)`:`, ${e})`}`}function _r(e){return isNaN(e)?1:Math.max(0,Math.min(1,e))}function W(e){return Math.max(0,Math.min(255,Math.round(e)||0))}function G(e){return e=W(e),(e<16?`0`:``)+e.toString(16)}function vr(e,t,n,r){return r<=0?e=t=n=NaN:n<=0||n>=1?e=t=NaN:t<=0&&(e=NaN),new K(e,t,n,r)}function yr(e){if(e instanceof K)return new K(e.h,e.s,e.l,e.opacity);if(e instanceof qn||(e=lr(e)),!e)return new K;if(e instanceof K)return e;e=e.rgb();var t=e.r/255,n=e.g/255,r=e.b/255,i=Math.min(t,n,r),a=Math.max(t,n,r),o=NaN,s=a-i,c=(a+i)/2;return s?(o=t===a?(n-r)/s+(n<r)*6:n===a?(r-t)/s+2:(t-n)/s+4,s/=c<.5?a+i:2-a-i,o*=60):s=c>0&&c<1?0:o,new K(o,s,c,e.opacity)}function br(e,t,n,r){return arguments.length===1?yr(e):new K(e,t,n,r??1)}function K(e,t,n,r){this.h=+e,this.s=+t,this.l=+n,this.opacity=+r}Gn(K,br,Kn(qn,{brighter(e){return e=e==null?Yn:Yn**+e,new K(this.h,this.s,this.l*e,this.opacity)},darker(e){return e=e==null?Jn:Jn**+e,new K(this.h,this.s,this.l*e,this.opacity)},rgb(){var e=this.h%360+(this.h<0)*360,t=isNaN(e)||isNaN(this.s)?0:this.s,n=this.l,r=n+(n<.5?n:1-n)*t,i=2*n-r;return new U(Cr(e>=240?e-240:e+120,i,r),Cr(e,i,r),Cr(e<120?e+240:e-120,i,r),this.opacity)},clamp(){return new K(xr(this.h),Sr(this.s),Sr(this.l),_r(this.opacity))},displayable(){return(0<=this.s&&this.s<=1||isNaN(this.s))&&0<=this.l&&this.l<=1&&0<=this.opacity&&this.opacity<=1},formatHsl(){let e=_r(this.opacity);return`${e===1?`hsl(`:`hsla(`}${xr(this.h)}, ${Sr(this.s)*100}%, ${Sr(this.l)*100}%${e===1?`)`:`, ${e})`}`}}));function xr(e){return e=(e||0)%360,e<0?e+360:e}function Sr(e){return Math.max(0,Math.min(1,e||0))}function Cr(e,t,n){return(e<60?t+(n-t)*e/60:e<180?n:e<240?t+(n-t)*(240-e)/60:t)*255}var wr=e=>()=>e;function Tr(e,t){return function(n){return e+n*t}}function Er(e,t,n){return e**=+n,t=t**+n-e,n=1/n,function(r){return(e+r*t)**+n}}function Dr(e){return(e=+e)==1?Or:function(t,n){return n-t?Er(t,n,e):wr(isNaN(t)?n:t)}}function Or(e,t){var n=t-e;return n?Tr(e,n):wr(isNaN(e)?t:e)}var kr=(function e(t){var n=Dr(t);function r(e,t){var r=n((e=pr(e)).r,(t=pr(t)).r),i=n(e.g,t.g),a=n(e.b,t.b),o=Or(e.opacity,t.opacity);return function(t){return e.r=r(t),e.g=i(t),e.b=a(t),e.opacity=o(t),e+``}}return r.gamma=e,r})(1);function q(e,t){return e=+e,t=+t,function(n){return e*(1-n)+t*n}}var Ar=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,jr=new RegExp(Ar.source,`g`);function Mr(e){return function(){return e}}function Nr(e){return function(t){return e(t)+``}}function Pr(e,t){var n=Ar.lastIndex=jr.lastIndex=0,r,i,a,o=-1,s=[],c=[];for(e+=``,t+=``;(r=Ar.exec(e))&&(i=jr.exec(t));)(a=i.index)>n&&(a=t.slice(n,a),s[o]?s[o]+=a:s[++o]=a),(r=r[0])===(i=i[0])?s[o]?s[o]+=i:s[++o]=i:(s[++o]=null,c.push({i:o,x:q(r,i)})),n=jr.lastIndex;return n<t.length&&(a=t.slice(n),s[o]?s[o]+=a:s[++o]=a),s.length<2?c[0]?Nr(c[0].x):Mr(t):(t=c.length,function(e){for(var n=0,r;n<t;++n)s[(r=c[n]).i]=r.x(e);return s.join(``)})}var Fr=180/Math.PI,Ir={translateX:0,translateY:0,rotate:0,skewX:0,scaleX:1,scaleY:1};function Lr(e,t,n,r,i,a){var o,s,c;return(o=Math.sqrt(e*e+t*t))&&(e/=o,t/=o),(c=e*n+t*r)&&(n-=e*c,r-=t*c),(s=Math.sqrt(n*n+r*r))&&(n/=s,r/=s,c/=s),e*r<t*n&&(e=-e,t=-t,c=-c,o=-o),{translateX:i,translateY:a,rotate:Math.atan2(t,e)*Fr,skewX:Math.atan(c)*Fr,scaleX:o,scaleY:s}}var Rr;function zr(e){let t=new(typeof DOMMatrix==`function`?DOMMatrix:WebKitCSSMatrix)(e+``);return t.isIdentity?Ir:Lr(t.a,t.b,t.c,t.d,t.e,t.f)}function Br(e){return e==null||(Rr||=document.createElementNS(`http://www.w3.org/2000/svg`,`g`),Rr.setAttribute(`transform`,e),!(e=Rr.transform.baseVal.consolidate()))?Ir:(e=e.matrix,Lr(e.a,e.b,e.c,e.d,e.e,e.f))}function Vr(e,t,n,r){function i(e){return e.length?e.pop()+` `:``}function a(e,r,i,a,o,s){if(e!==i||r!==a){var c=o.push(`translate(`,null,t,null,n);s.push({i:c-4,x:q(e,i)},{i:c-2,x:q(r,a)})}else(i||a)&&o.push(`translate(`+i+t+a+n)}function o(e,t,n,a){e===t?t&&n.push(i(n)+`rotate(`+t+r):(e-t>180?t+=360:t-e>180&&(e+=360),a.push({i:n.push(i(n)+`rotate(`,null,r)-2,x:q(e,t)}))}function s(e,t,n,a){e===t?t&&n.push(i(n)+`skewX(`+t+r):a.push({i:n.push(i(n)+`skewX(`,null,r)-2,x:q(e,t)})}function c(e,t,n,r,a,o){if(e!==n||t!==r){var s=a.push(i(a)+`scale(`,null,`,`,null,`)`);o.push({i:s-4,x:q(e,n)},{i:s-2,x:q(t,r)})}else(n!==1||r!==1)&&a.push(i(a)+`scale(`+n+`,`+r+`)`)}return function(t,n){var r=[],i=[];return t=e(t),n=e(n),a(t.translateX,t.translateY,n.translateX,n.translateY,r,i),o(t.rotate,n.rotate,r,i),s(t.skewX,n.skewX,r,i),c(t.scaleX,t.scaleY,n.scaleX,n.scaleY,r,i),t=n=null,function(e){for(var t=-1,n=i.length,a;++t<n;)r[(a=i[t]).i]=a.x(e);return r.join(``)}}}var Hr=Vr(zr,`px, `,`px)`,`deg)`),Ur=Vr(Br,`, `,`)`,`)`),Wr=1e-12;function Gr(e){return((e=Math.exp(e))+1/e)/2}function Kr(e){return((e=Math.exp(e))-1/e)/2}function qr(e){return((e=Math.exp(2*e))-1)/(e+1)}var Jr=(function e(t,n,r){function i(e,i){var a=e[0],o=e[1],s=e[2],c=i[0],l=i[1],u=i[2],d=c-a,f=l-o,p=d*d+f*f,m,h;if(p<Wr)h=Math.log(u/s)/t,m=function(e){return[a+e*d,o+e*f,s*Math.exp(t*e*h)]};else{var g=Math.sqrt(p),_=(u*u-s*s+r*p)/(2*s*n*g),v=(u*u-s*s-r*p)/(2*u*n*g),y=Math.log(Math.sqrt(_*_+1)-_);h=(Math.log(Math.sqrt(v*v+1)-v)-y)/t,m=function(e){var r=e*h,i=Gr(y),c=s/(n*g)*(i*qr(t*r+y)-Kr(y));return[a+c*d,o+c*f,s*i/Gr(t*r+y)]}}return m.duration=h*1e3*t/Math.SQRT2,m}return i.rho=function(t){var n=Math.max(.001,+t),r=n*n;return e(n,r,r*r)},i})(Math.SQRT2,2,4),Yr=0,Xr=0,Zr=0,Qr=1e3,$r,ei,ti=0,ni=0,ri=0,ii=typeof performance==`object`&&performance.now?performance:Date,ai=typeof window==`object`&&window.requestAnimationFrame?window.requestAnimationFrame.bind(window):function(e){setTimeout(e,17)};function oi(){return ni||=(ai(si),ii.now()+ri)}function si(){ni=0}function ci(){this._call=this._time=this._next=null}ci.prototype=li.prototype={constructor:ci,restart:function(e,t,n){if(typeof e!=`function`)throw TypeError(`callback is not a function`);n=(n==null?oi():+n)+(t==null?0:+t),!this._next&&ei!==this&&(ei?ei._next=this:$r=this,ei=this),this._call=e,this._time=n,mi()},stop:function(){this._call&&(this._call=null,this._time=1/0,mi())}};function li(e,t,n){var r=new ci;return r.restart(e,t,n),r}function ui(){oi(),++Yr;for(var e=$r,t;e;)(t=ni-e._time)>=0&&e._call.call(void 0,t),e=e._next;--Yr}function di(){ni=(ti=ii.now())+ri,Yr=Xr=0;try{ui()}finally{Yr=0,pi(),ni=0}}function fi(){var e=ii.now(),t=e-ti;t>Qr&&(ri-=t,ti=e)}function pi(){for(var e,t=$r,n,r=1/0;t;)t._call?(r>t._time&&(r=t._time),e=t,t=t._next):(n=t._next,t._next=null,t=e?e._next=n:$r=n);ei=e,mi(r)}function mi(e){Yr||(Xr&&=clearTimeout(Xr),e-ni>24?(e<1/0&&(Xr=setTimeout(di,e-ii.now()-ri)),Zr&&=clearInterval(Zr)):(Zr||=(ti=ii.now(),setInterval(fi,Qr)),Yr=1,ai(di)))}function hi(e,t,n){var r=new ci;return t=t==null?0:+t,r.restart(n=>{r.stop(),e(n+t)},t,n),r}var gi=Le(`start`,`end`,`cancel`,`interrupt`),_i=[];function vi(e,t,n,r,i,a){var o=e.__transition;if(!o)e.__transition={};else if(n in o)return;bi(e,n,{name:t,index:r,group:i,on:gi,tween:_i,time:a.time,delay:a.delay,duration:a.duration,ease:a.ease,timer:null,state:0})}function yi(e,t){var n=Y(e,t);if(n.state>0)throw Error(`too late; already scheduled`);return n}function J(e,t){var n=Y(e,t);if(n.state>3)throw Error(`too late; already running`);return n}function Y(e,t){var n=e.__transition;if(!n||!(n=n[t]))throw Error(`transition not found`);return n}function bi(e,t,n){var r=e.__transition,i;r[t]=n,n.timer=li(a,0,n.time);function a(e){n.state=1,n.timer.restart(o,n.delay,n.time),n.delay<=e&&o(e-n.delay)}function o(a){var l,u,d,f;if(n.state!==1)return c();for(l in r)if(f=r[l],f.name===n.name){if(f.state===3)return hi(o);f.state===4?(f.state=6,f.timer.stop(),f.on.call(`interrupt`,e,e.__data__,f.index,f.group),delete r[l]):+l<t&&(f.state=6,f.timer.stop(),f.on.call(`cancel`,e,e.__data__,f.index,f.group),delete r[l])}if(hi(function(){n.state===3&&(n.state=4,n.timer.restart(s,n.delay,n.time),s(a))}),n.state=2,n.on.call(`start`,e,e.__data__,n.index,n.group),n.state===2){for(n.state=3,i=Array(d=n.tween.length),l=0,u=-1;l<d;++l)(f=n.tween[l].value.call(e,e.__data__,n.index,n.group))&&(i[++u]=f);i.length=u+1}}function s(t){for(var r=t<n.duration?n.ease.call(null,t/n.duration):(n.timer.restart(c),n.state=5,1),a=-1,o=i.length;++a<o;)i[a].call(e,r);n.state===5&&(n.on.call(`end`,e,e.__data__,n.index,n.group),c())}function c(){for(var i in n.state=6,n.timer.stop(),delete r[t],r)return;delete e.__transition}}function xi(e,t){var n=e.__transition,r,i,a=!0,o;if(n){for(o in t=t==null?null:t+``,n){if((r=n[o]).name!==t){a=!1;continue}i=r.state>2&&r.state<5,r.state=6,r.timer.stop(),r.on.call(i?`interrupt`:`cancel`,e,e.__data__,r.index,r.group),delete n[o]}a&&delete e.__transition}}function Si(e){return this.each(function(){xi(this,e)})}function Ci(e,t){var n,r;return function(){var i=J(this,e),a=i.tween;if(a!==n){r=n=a;for(var o=0,s=r.length;o<s;++o)if(r[o].name===t){r=r.slice(),r.splice(o,1);break}}i.tween=r}}function wi(e,t,n){var r,i;if(typeof n!=`function`)throw Error();return function(){var a=J(this,e),o=a.tween;if(o!==r){i=(r=o).slice();for(var s={name:t,value:n},c=0,l=i.length;c<l;++c)if(i[c].name===t){i[c]=s;break}c===l&&i.push(s)}a.tween=i}}function Ti(e,t){var n=this._id;if(e+=``,arguments.length<2){for(var r=Y(this.node(),n).tween,i=0,a=r.length,o;i<a;++i)if((o=r[i]).name===e)return o.value;return null}return this.each((t==null?Ci:wi)(n,e,t))}function Ei(e,t,n){var r=e._id;return e.each(function(){var e=J(this,r);(e.value||={})[t]=n.apply(this,arguments)}),function(e){return Y(e,r).value[t]}}function Di(e,t){var n;return(typeof t==`number`?q:t instanceof lr?kr:(n=lr(t))?(t=n,kr):Pr)(e,t)}function Oi(e){return function(){this.removeAttribute(e)}}function ki(e){return function(){this.removeAttributeNS(e.space,e.local)}}function Ai(e,t,n){var r,i=n+``,a;return function(){var o=this.getAttribute(e);return o===i?null:o===r?a:a=t(r=o,n)}}function ji(e,t,n){var r,i=n+``,a;return function(){var o=this.getAttributeNS(e.space,e.local);return o===i?null:o===r?a:a=t(r=o,n)}}function Mi(e,t,n){var r,i,a;return function(){var o,s=n(this),c;return s==null?void this.removeAttribute(e):(o=this.getAttribute(e),c=s+``,o===c?null:o===r&&c===i?a:(i=c,a=t(r=o,s)))}}function Ni(e,t,n){var r,i,a;return function(){var o,s=n(this),c;return s==null?void this.removeAttributeNS(e.space,e.local):(o=this.getAttributeNS(e.space,e.local),c=s+``,o===c?null:o===r&&c===i?a:(i=c,a=t(r=o,s)))}}function Pi(e,t){var n=Ue(e),r=n===`transform`?Ur:Di;return this.attrTween(e,typeof t==`function`?(n.local?Ni:Mi)(n,r,Ei(this,`attr.`+e,t)):t==null?(n.local?ki:Oi)(n):(n.local?ji:Ai)(n,r,t))}function Fi(e,t){return function(n){this.setAttribute(e,t.call(this,n))}}function Ii(e,t){return function(n){this.setAttributeNS(e.space,e.local,t.call(this,n))}}function Li(e,t){var n,r;function i(){var i=t.apply(this,arguments);return i!==r&&(n=(r=i)&&Ii(e,i)),n}return i._value=t,i}function Ri(e,t){var n,r;function i(){var i=t.apply(this,arguments);return i!==r&&(n=(r=i)&&Fi(e,i)),n}return i._value=t,i}function zi(e,t){var n=`attr.`+e;if(arguments.length<2)return(n=this.tween(n))&&n._value;if(t==null)return this.tween(n,null);if(typeof t!=`function`)throw Error();var r=Ue(e);return this.tween(n,(r.local?Li:Ri)(r,t))}function Bi(e,t){return function(){yi(this,e).delay=+t.apply(this,arguments)}}function Vi(e,t){return t=+t,function(){yi(this,e).delay=t}}function Hi(e){var t=this._id;return arguments.length?this.each((typeof e==`function`?Bi:Vi)(t,e)):Y(this.node(),t).delay}function Ui(e,t){return function(){J(this,e).duration=+t.apply(this,arguments)}}function Wi(e,t){return t=+t,function(){J(this,e).duration=t}}function Gi(e){var t=this._id;return arguments.length?this.each((typeof e==`function`?Ui:Wi)(t,e)):Y(this.node(),t).duration}function Ki(e,t){if(typeof t!=`function`)throw Error();return function(){J(this,e).ease=t}}function qi(e){var t=this._id;return arguments.length?this.each(Ki(t,e)):Y(this.node(),t).ease}function Ji(e,t){return function(){var n=t.apply(this,arguments);if(typeof n!=`function`)throw Error();J(this,e).ease=n}}function Yi(e){if(typeof e!=`function`)throw Error();return this.each(Ji(this._id,e))}function Xi(e){typeof e!=`function`&&(e=tt(e));for(var t=this._groups,n=t.length,r=Array(n),i=0;i<n;++i)for(var a=t[i],o=a.length,s=r[i]=[],c,l=0;l<o;++l)(c=a[l])&&e.call(c,c.__data__,l,a)&&s.push(c);return new X(r,this._parents,this._name,this._id)}function Zi(e){if(e._id!==this._id)throw Error();for(var t=this._groups,n=e._groups,r=t.length,i=n.length,a=Math.min(r,i),o=Array(r),s=0;s<a;++s)for(var c=t[s],l=n[s],u=c.length,d=o[s]=Array(u),f,p=0;p<u;++p)(f=c[p]||l[p])&&(d[p]=f);for(;s<r;++s)o[s]=t[s];return new X(o,this._parents,this._name,this._id)}function Qi(e){return(e+``).trim().split(/^|\s+/).every(function(e){var t=e.indexOf(`.`);return t>=0&&(e=e.slice(0,t)),!e||e===`start`})}function $i(e,t,n){var r,i,a=Qi(t)?yi:J;return function(){var o=a(this,e),s=o.on;s!==r&&(i=(r=s).copy()).on(t,n),o.on=i}}function ea(e,t){var n=this._id;return arguments.length<2?Y(this.node(),n).on.on(e):this.each($i(n,e,t))}function ta(e){return function(){var t=this.parentNode;for(var n in this.__transition)if(+n!==e)return;t&&t.removeChild(this)}}function na(){return this.on(`end.remove`,ta(this._id))}function ra(e){var t=this._name,n=this._id;typeof e!=`function`&&(e=Je(e));for(var r=this._groups,i=r.length,a=Array(i),o=0;o<i;++o)for(var s=r[o],c=s.length,l=a[o]=Array(c),u,d,f=0;f<c;++f)(u=s[f])&&(d=e.call(u,u.__data__,f,s))&&(`__data__`in u&&(d.__data__=u.__data__),l[f]=d,vi(l[f],t,n,f,l,Y(u,n)));return new X(a,this._parents,t,n)}function ia(e){var t=this._name,n=this._id;typeof e!=`function`&&(e=Qe(e));for(var r=this._groups,i=r.length,a=[],o=[],s=0;s<i;++s)for(var c=r[s],l=c.length,u,d=0;d<l;++d)if(u=c[d]){for(var f=e.call(u,u.__data__,d,c),p,m=Y(u,n),h=0,g=f.length;h<g;++h)(p=f[h])&&vi(p,t,n,h,f,m);a.push(f),o.push(u)}return new X(a,o,t,n)}var aa=Rn.prototype.constructor;function oa(){return new aa(this._groups,this._parents)}function sa(e,t){var n,r,i;return function(){var a=Gt(this,e),o=(this.style.removeProperty(e),Gt(this,e));return a===o?null:a===n&&o===r?i:i=t(n=a,r=o)}}function ca(e){return function(){this.style.removeProperty(e)}}function la(e,t,n){var r,i=n+``,a;return function(){var o=Gt(this,e);return o===i?null:o===r?a:a=t(r=o,n)}}function ua(e,t,n){var r,i,a;return function(){var o=Gt(this,e),s=n(this),c=s+``;return s??(c=s=(this.style.removeProperty(e),Gt(this,e))),o===c?null:o===r&&c===i?a:(i=c,a=t(r=o,s))}}function da(e,t){var n,r,i,a=`style.`+t,o=`end.`+a,s;return function(){var c=J(this,e),l=c.on,u=c.value[a]==null?s||=ca(t):void 0;(l!==n||i!==u)&&(r=(n=l).copy()).on(o,i=u),c.on=r}}function fa(e,t,n){var r=(e+=``)==`transform`?Hr:Di;return t==null?this.styleTween(e,sa(e,r)).on(`end.style.`+e,ca(e)):typeof t==`function`?this.styleTween(e,ua(e,r,Ei(this,`style.`+e,t))).each(da(this._id,e)):this.styleTween(e,la(e,r,t),n).on(`end.style.`+e,null)}function pa(e,t,n){return function(r){this.style.setProperty(e,t.call(this,r),n)}}function ma(e,t,n){var r,i;function a(){var a=t.apply(this,arguments);return a!==i&&(r=(i=a)&&pa(e,a,n)),r}return a._value=t,a}function ha(e,t,n){var r=`style.`+(e+=``);if(arguments.length<2)return(r=this.tween(r))&&r._value;if(t==null)return this.tween(r,null);if(typeof t!=`function`)throw Error();return this.tween(r,ma(e,t,n??``))}function ga(e){return function(){this.textContent=e}}function _a(e){return function(){var t=e(this);this.textContent=t??``}}function va(e){return this.tween(`text`,typeof e==`function`?_a(Ei(this,`text`,e)):ga(e==null?``:e+``))}function ya(e){return function(t){this.textContent=e.call(this,t)}}function ba(e){var t,n;function r(){var r=e.apply(this,arguments);return r!==n&&(t=(n=r)&&ya(r)),t}return r._value=e,r}function xa(e){var t=`text`;if(arguments.length<1)return(t=this.tween(t))&&t._value;if(e==null)return this.tween(t,null);if(typeof e!=`function`)throw Error();return this.tween(t,ba(e))}function Sa(){for(var e=this._name,t=this._id,n=Ta(),r=this._groups,i=r.length,a=0;a<i;++a)for(var o=r[a],s=o.length,c,l=0;l<s;++l)if(c=o[l]){var u=Y(c,t);vi(c,e,n,l,o,{time:u.time+u.delay+u.duration,delay:0,duration:u.duration,ease:u.ease})}return new X(r,this._parents,e,n)}function Ca(){var e,t,n=this,r=n._id,i=n.size();return new Promise(function(a,o){var s={value:o},c={value:function(){--i===0&&a()}};n.each(function(){var n=J(this,r),i=n.on;i!==e&&(t=(e=i).copy(),t._.cancel.push(s),t._.interrupt.push(s),t._.end.push(c)),n.on=t}),i===0&&a()})}var wa=0;function X(e,t,n,r){this._groups=e,this._parents=t,this._name=n,this._id=r}function Ta(){return++wa}var Z=Rn.prototype;X.prototype={constructor:X,select:ra,selectAll:ia,selectChild:Z.selectChild,selectChildren:Z.selectChildren,filter:Xi,merge:Zi,selection:oa,transition:Sa,call:Z.call,nodes:Z.nodes,node:Z.node,size:Z.size,empty:Z.empty,each:Z.each,on:ea,attr:Pi,attrTween:zi,style:fa,styleTween:ha,text:va,textTween:xa,remove:na,tween:Ti,delay:Hi,duration:Gi,ease:qi,easeVarying:Yi,end:Ca,[Symbol.iterator]:Z[Symbol.iterator]};function Ea(e){return((e*=2)<=1?e*e*e:(e-=2)*e*e+2)/2}var Da={time:null,delay:0,duration:250,ease:Ea};function Oa(e,t){for(var n;!(n=e.__transition)||!(n=n[t]);)if(!(e=e.parentNode))throw Error(`transition ${t} not found`);return n}function ka(e){var t,n;e instanceof X?(t=e._id,e=e._name):(t=Ta(),(n=Da).time=oi(),e=e==null?null:e+``);for(var r=this._groups,i=r.length,a=0;a<i;++a)for(var o=r[a],s=o.length,c,l=0;l<s;++l)(c=o[l])&&vi(c,e,t,l,o,n||Oa(c,t));return new X(r,this._parents,e,t)}Rn.prototype.interrupt=Si,Rn.prototype.transition=ka;var Aa=e=>()=>e;function ja(e,{sourceEvent:t,target:n,transform:r,dispatch:i}){Object.defineProperties(this,{type:{value:e,enumerable:!0,configurable:!0},sourceEvent:{value:t,enumerable:!0,configurable:!0},target:{value:n,enumerable:!0,configurable:!0},transform:{value:r,enumerable:!0,configurable:!0},_:{value:i}})}function Q(e,t,n){this.k=e,this.x=t,this.y=n}Q.prototype={constructor:Q,scale:function(e){return e===1?this:new Q(this.k*e,this.x,this.y)},translate:function(e,t){return e===0&t===0?this:new Q(this.k,this.x+this.k*e,this.y+this.k*t)},apply:function(e){return[e[0]*this.k+this.x,e[1]*this.k+this.y]},applyX:function(e){return e*this.k+this.x},applyY:function(e){return e*this.k+this.y},invert:function(e){return[(e[0]-this.x)/this.k,(e[1]-this.y)/this.k]},invertX:function(e){return(e-this.x)/this.k},invertY:function(e){return(e-this.y)/this.k},rescaleX:function(e){return e.copy().domain(e.range().map(this.invertX,this).map(e.invert,e))},rescaleY:function(e){return e.copy().domain(e.range().map(this.invertY,this).map(e.invert,e))},toString:function(){return`translate(`+this.x+`,`+this.y+`) scale(`+this.k+`)`}};var Ma=new Q(1,0,0);Na.prototype=Q.prototype;function Na(e){for(;!e.__zoom;)if(!(e=e.parentNode))return Ma;return e.__zoom}function Pa(e){e.stopImmediatePropagation()}function Fa(e){e.preventDefault(),e.stopImmediatePropagation()}function Ia(e){return(!e.ctrlKey||e.type===`wheel`)&&!e.button}function La(){var e=this;return e instanceof SVGElement?(e=e.ownerSVGElement||e,e.hasAttribute(`viewBox`)?(e=e.viewBox.baseVal,[[e.x,e.y],[e.x+e.width,e.y+e.height]]):[[0,0],[e.width.baseVal.value,e.height.baseVal.value]]):[[0,0],[e.clientWidth,e.clientHeight]]}function Ra(){return this.__zoom||Ma}function za(e){return-e.deltaY*(e.deltaMode===1?.05:e.deltaMode?1:.002)*(e.ctrlKey?10:1)}function Ba(){return navigator.maxTouchPoints||`ontouchstart`in this}function Va(e,t,n){var r=e.invertX(t[0][0])-n[0][0],i=e.invertX(t[1][0])-n[1][0],a=e.invertY(t[0][1])-n[0][1],o=e.invertY(t[1][1])-n[1][1];return e.translate(i>r?(r+i)/2:Math.min(0,r)||Math.max(0,i),o>a?(a+o)/2:Math.min(0,a)||Math.max(0,o))}function Ha(){var e=Ia,t=La,n=Va,r=za,i=Ba,a=[0,1/0],o=[[-1/0,-1/0],[1/0,1/0]],s=250,c=Jr,l=Le(`start`,`zoom`,`end`),u,d,f,p=500,m=150,h=0,g=10;function _(e){e.property(`__zoom`,Ra).on(`wheel.zoom`,w,{passive:!1}).on(`mousedown.zoom`,T).on(`dblclick.zoom`,E).filter(i).on(`touchstart.zoom`,D).on(`touchmove.zoom`,O).on(`touchend.zoom touchcancel.zoom`,ee).style(`-webkit-tap-highlight-color`,`rgba(0,0,0,0)`)}_.transform=function(e,t,n,r){var i=e.selection?e.selection():e;i.property(`__zoom`,Ra),e===i?i.interrupt().each(function(){S(this,arguments).event(r).start().zoom(null,typeof t==`function`?t.apply(this,arguments):t).end()}):x(e,t,n,r)},_.scaleBy=function(e,t,n,r){_.scaleTo(e,function(){return this.__zoom.k*(typeof t==`function`?t.apply(this,arguments):t)},n,r)},_.scaleTo=function(e,r,i,a){_.transform(e,function(){var e=t.apply(this,arguments),a=this.__zoom,s=i==null?b(e):typeof i==`function`?i.apply(this,arguments):i,c=a.invert(s),l=typeof r==`function`?r.apply(this,arguments):r;return n(y(v(a,l),s,c),e,o)},i,a)},_.translateBy=function(e,r,i,a){_.transform(e,function(){return n(this.__zoom.translate(typeof r==`function`?r.apply(this,arguments):r,typeof i==`function`?i.apply(this,arguments):i),t.apply(this,arguments),o)},null,a)},_.translateTo=function(e,r,i,a,s){_.transform(e,function(){var e=t.apply(this,arguments),s=this.__zoom,c=a==null?b(e):typeof a==`function`?a.apply(this,arguments):a;return n(Ma.translate(c[0],c[1]).scale(s.k).translate(typeof r==`function`?-r.apply(this,arguments):-r,typeof i==`function`?-i.apply(this,arguments):-i),e,o)},a,s)};function v(e,t){return t=Math.max(a[0],Math.min(a[1],t)),t===e.k?e:new Q(t,e.x,e.y)}function y(e,t,n){var r=t[0]-n[0]*e.k,i=t[1]-n[1]*e.k;return r===e.x&&i===e.y?e:new Q(e.k,r,i)}function b(e){return[(+e[0][0]+ +e[1][0])/2,(+e[0][1]+ +e[1][1])/2]}function x(e,n,r,i){e.on(`start.zoom`,function(){S(this,arguments).event(i).start()}).on(`interrupt.zoom end.zoom`,function(){S(this,arguments).event(i).end()}).tween(`zoom`,function(){var e=this,a=arguments,o=S(e,a).event(i),s=t.apply(e,a),l=r==null?b(s):typeof r==`function`?r.apply(e,a):r,u=Math.max(s[1][0]-s[0][0],s[1][1]-s[0][1]),d=e.__zoom,f=typeof n==`function`?n.apply(e,a):n,p=c(d.invert(l).concat(u/d.k),f.invert(l).concat(u/f.k));return function(e){if(e===1)e=f;else{var t=p(e),n=u/t[2];e=new Q(n,l[0]-t[0]*n,l[1]-t[1]*n)}o.zoom(null,e)}})}function S(e,t,n){return!n&&e.__zooming||new C(e,t)}function C(e,n){this.that=e,this.args=n,this.active=0,this.sourceEvent=null,this.extent=t.apply(e,n),this.taps=0}C.prototype={event:function(e){return e&&(this.sourceEvent=e),this},start:function(){return++this.active===1&&(this.that.__zooming=this,this.emit(`start`)),this},zoom:function(e,t){return this.mouse&&e!==`mouse`&&(this.mouse[1]=t.invert(this.mouse[0])),this.touch0&&e!==`touch`&&(this.touch0[1]=t.invert(this.touch0[0])),this.touch1&&e!==`touch`&&(this.touch1[1]=t.invert(this.touch1[0])),this.that.__zoom=t,this.emit(`zoom`),this},end:function(){return--this.active===0&&(delete this.that.__zooming,this.emit(`end`)),this},emit:function(e){var t=z(this.that).datum();l.call(e,this.that,new ja(e,{sourceEvent:this.sourceEvent,target:_,type:e,transform:this.that.__zoom,dispatch:l}),t)}};function w(t,...i){if(!e.apply(this,arguments))return;var s=S(this,i).event(t),c=this.__zoom,l=Math.max(a[0],Math.min(a[1],c.k*2**r.apply(this,arguments))),u=B(t);if(s.wheel)(s.mouse[0][0]!==u[0]||s.mouse[0][1]!==u[1])&&(s.mouse[1]=c.invert(s.mouse[0]=u)),clearTimeout(s.wheel);else if(c.k===l)return;else s.mouse=[u,c.invert(u)],xi(this),s.start();Fa(t),s.wheel=setTimeout(d,m),s.zoom(`mouse`,n(y(v(c,l),s.mouse[0],s.mouse[1]),s.extent,o));function d(){s.wheel=null,s.end()}}function T(t,...r){if(f||!e.apply(this,arguments))return;var i=t.currentTarget,a=S(this,r,!0).event(t),s=z(t.view).on(`mousemove.zoom`,d,!0).on(`mouseup.zoom`,p,!0),c=B(t,i),l=t.clientX,u=t.clientY;Un(t.view),Pa(t),a.mouse=[c,this.__zoom.invert(c)],xi(this),a.start();function d(e){if(Fa(e),!a.moved){var t=e.clientX-l,r=e.clientY-u;a.moved=t*t+r*r>h}a.event(e).zoom(`mouse`,n(y(a.that.__zoom,a.mouse[0]=B(e,i),a.mouse[1]),a.extent,o))}function p(e){s.on(`mousemove.zoom mouseup.zoom`,null),Wn(e.view,a.moved),Fa(e),a.event(e).end()}}function E(r,...i){if(e.apply(this,arguments)){var a=this.__zoom,c=B(r.changedTouches?r.changedTouches[0]:r,this),l=a.invert(c),u=a.k*(r.shiftKey?.5:2),d=n(y(v(a,u),c,l),t.apply(this,i),o);Fa(r),s>0?z(this).transition().duration(s).call(x,d,c,r):z(this).call(_.transform,d,c,r)}}function D(t,...n){if(e.apply(this,arguments)){var r=t.touches,i=r.length,a=S(this,n,t.changedTouches.length===i).event(t),o,s,c,l;for(Pa(t),s=0;s<i;++s)c=r[s],l=B(c,this),l=[l,this.__zoom.invert(l),c.identifier],a.touch0?!a.touch1&&a.touch0[2]!==l[2]&&(a.touch1=l,a.taps=0):(a.touch0=l,o=!0,a.taps=1+!!u);u&&=clearTimeout(u),o&&(a.taps<2&&(d=l[0],u=setTimeout(function(){u=null},p)),xi(this),a.start())}}function O(e,...t){if(this.__zooming){var r=S(this,t).event(e),i=e.changedTouches,a=i.length,s,c,l,u;for(Fa(e),s=0;s<a;++s)c=i[s],l=B(c,this),r.touch0&&r.touch0[2]===c.identifier?r.touch0[0]=l:r.touch1&&r.touch1[2]===c.identifier&&(r.touch1[0]=l);if(c=r.that.__zoom,r.touch1){var d=r.touch0[0],f=r.touch0[1],p=r.touch1[0],m=r.touch1[1],h=(h=p[0]-d[0])*h+(h=p[1]-d[1])*h,g=(g=m[0]-f[0])*g+(g=m[1]-f[1])*g;c=v(c,Math.sqrt(h/g)),l=[(d[0]+p[0])/2,(d[1]+p[1])/2],u=[(f[0]+m[0])/2,(f[1]+m[1])/2]}else if(r.touch0)l=r.touch0[0],u=r.touch0[1];else return;r.zoom(`touch`,n(y(c,l,u),r.extent,o))}}function ee(e,...t){if(this.__zooming){var n=S(this,t).event(e),r=e.changedTouches,i=r.length,a,o;for(Pa(e),f&&clearTimeout(f),f=setTimeout(function(){f=null},p),a=0;a<i;++a)o=r[a],n.touch0&&n.touch0[2]===o.identifier?delete n.touch0:n.touch1&&n.touch1[2]===o.identifier&&delete n.touch1;if(n.touch1&&!n.touch0&&(n.touch0=n.touch1,delete n.touch1),n.touch0)n.touch0[1]=this.__zoom.invert(n.touch0[0]);else if(n.end(),n.taps===2&&(o=B(o,this),Math.hypot(d[0]-o[0],d[1]-o[1])<g)){var s=z(this).on(`dblclick.zoom`);s&&s.apply(this,arguments)}}}return _.wheelDelta=function(e){return arguments.length?(r=typeof e==`function`?e:Aa(+e),_):r},_.filter=function(t){return arguments.length?(e=typeof t==`function`?t:Aa(!!t),_):e},_.touchable=function(e){return arguments.length?(i=typeof e==`function`?e:Aa(!!e),_):i},_.extent=function(e){return arguments.length?(t=typeof e==`function`?e:Aa([[+e[0][0],+e[0][1]],[+e[1][0],+e[1][1]]]),_):t},_.scaleExtent=function(e){return arguments.length?(a[0]=+e[0],a[1]=+e[1],_):[a[0],a[1]]},_.translateExtent=function(e){return arguments.length?(o[0][0]=+e[0][0],o[1][0]=+e[1][0],o[0][1]=+e[0][1],o[1][1]=+e[1][1],_):[[o[0][0],o[0][1]],[o[1][0],o[1][1]]]},_.constrain=function(e){return arguments.length?(n=e,_):n},_.duration=function(e){return arguments.length?(s=+e,_):s},_.interpolate=function(e){return arguments.length?(c=e,_):c},_.on=function(){var e=l.on.apply(l,arguments);return e===l?_:e},_.clickDistance=function(e){return arguments.length?(h=(e=+e)*e,_):Math.sqrt(h)},_.tapDistance=function(e){return arguments.length?(g=+e,_):g},_}var Ua=[.25,2],Wa=16,Ga=(e,t)=>{let n=t.onchange,r=Ha().scaleExtent(Ua).filter(Ka).on(`zoom`,e=>n(e.transform)),i=z(e);return i.call(r).on(`dblclick.zoom`,null),e.addEventListener(`wheel`,a,{passive:!1}),t.onready?.({reset:()=>r.transform(i,Ma)}),{update:e=>{n=e.onchange},destroy:()=>{e.removeEventListener(`wheel`,a),z(e).on(`.zoom`,null)}};function a(t){if(qa(t)||Ja(t.target,`[data-scrollable]`))return;t.preventDefault();let n=t.deltaMode===WheelEvent.DOM_DELTA_LINE?Wa:1,{k:a}=Na(e);r.translateBy(i,-t.deltaX*n/a,-t.deltaY*n/a)}};function Ka(e){return e.type===`wheel`?qa(e)&&!Ja(e.target,`[data-scrollable]`):e.ctrlKey||`button`in e&&e.button!==0?!1:!Ja(e.target,`button, a, [data-scrollable]`)}function qa(e){return e.ctrlKey||e.metaKey}function Ja(e,t){return e instanceof Element&&e.closest(t)!==null}function Ya(e,t){let n=e.map(e=>({kind:`component`,id:je(e),node:e})),r=new Map,i=new Map;for(let e of t){let t=Xa(e.src),n=je(e.dst);`service`in e.src&&r.set(t,{kind:`service`,id:t,name:e.src.service});let a=i.get(`${t} ${n}`),o=+!!to(e);a===void 0?i.set(`${t} ${n}`,{id:`${t} ${n}`,from:t,to:n,calls:1,events:o}):(a.calls++,a.events+=o)}return{vertices:[...r.values(),...n],links:[...i.values()],calls:t}}function Xa(e){return`service`in e?Za+e.service:je(e)}var Za=`svc:`,Qa=`@`;function $a(e){return e.startsWith(Za)?Qa+e.slice(4):Ce(e)}function eo(e){return e.startsWith(Qa)?Za+e.slice(1):e.includes(`.`)?e:`${we}.${e}`}function to(e){return`event`in e.src}function no(e,t){return t===null?[]:e.filter(e=>e.from===t||e.to===t)}function ro(e,t){let n=new Set;if(t===null)return n;n.add(t);for(let r of e)r.from===t&&n.add(r.to),r.to===t&&n.add(r.from);return n}function io(e){return e.kind===`component`?Ce(e.id):e.name}function ao(e,t){return e.kind===`component`?Te(e.node,t)>0:ve(e.name,t)}function oo(e,t){let n=e.vertices.find(e=>e.id===t);if(n===void 0)return null;let r=new Map(e.vertices.map(e=>[e.id,e])),i=new Map,a=new Map,o=!1;for(let s of e.calls){let e=Xa(s.src),c=je(s.dst);if(e===t&&c===t){o=!0;continue}let l=c===t?`in`:e===t?`out`:null;if(l===null)continue;let u=l===`in`?e:c,d=r.get(u);if(d===void 0)continue;let f=l===`in`?{row:co(n,s),theirs:lo(s)}:{row:lo(s),theirs:co(d,s)};so(l===`in`?i:a,`${l}:${u}`,d,f,to(s))}return{vertex:n,incoming:[...i.values()].sort(uo),outgoing:[...a.values()].sort(uo),self:o}}function so(e,t,n,r,i){let a=e.get(t);a===void 0&&(a={id:t,vertex:n,wires:[]},e.set(t,a));let o={...r,id:`${t} ${r.row} ${r.theirs} ${i}`,event:i};a.wires.some(e=>e.id===o.id)||a.wires.push(o)}function co(e,t){if(e.kind!==`component`)return null;let n=t.src;if(`event`in n){let t=je(n),r=e.node.receivers.find(e=>e.source===t&&e.event===n.event);if(r!==void 0)return`receiver:${r.label}`}return`operation:${t.dst.operation}`}function lo(e){return`event`in e.src?`event:${e.src.event}`:`operation`in e.src?`operation:${e.src.operation}`:null}function uo(e,t){return e.vertex.kind===t.vertex.kind?e.vertex.id.localeCompare(t.vertex.id):e.vertex.kind===`service`?1:-1}var fo=ae(null),po=`card`,mo=`transition-spring transition-morph`;function ho(e){return`card-`+e.replace(/[^a-z0-9]+/gi,`-`)}async function go(e){fo.set(e),await h(),await se(`${oe}/${$a(e)}/`)}async function _o(){window.navigation?.canGoBack===!0?window.history.back():await se(`${oe}/`)}var vo=4,yo=(e,t)=>{let n=t,r=null;return e.addEventListener(`pointerdown`,i),e.addEventListener(`click`,a),e.addEventListener(`keydown`,o),{update:e=>n=e,destroy:()=>{e.removeEventListener(`pointerdown`,i),e.removeEventListener(`click`,a),e.removeEventListener(`keydown`,o)}};function i(e){r={x:e.clientX,y:e.clientY}}function a(t){let i=r;if(r=null,!(i!==null&&Math.hypot(t.clientX-i.x,t.clientY-i.y)>vo)){if(t.target instanceof Element){let n=t.target.closest(`button, a`);if(n!==null&&n!==e)return}n(t.shiftKey)}}function o(t){t.target===e&&(t.key===`Enter`||t.key===` `)&&(t.preventDefault(),n(t.shiftKey))}},bo=(e,t)=>{let{into:n,id:r}=t,i=new ResizeObserver(()=>a());return i.observe(e),{update:e=>{n=e.into,r=e.id,a()},destroy:()=>i.disconnect()};function a(){n.set(r,{width:e.offsetWidth,height:e.offsetHeight})}},$={width:220,height:61,gap:32,row:20},xo={height:40},So={width:400,height:320},Co=.25,wo={height:20,prefix:`band:`},To=6,Eo=32;function Do(e,t,n=4){let r=new Map,i=e.vertices.filter(e=>e.kind===`service`),a=e.vertices.filter(e=>e.kind===`component`).sort(Mo),o={x:$.width+$.gap,y:$.height+$.row},s=[{label:`user`,of:a.filter(e=>!xe(e.node))},{label:`system`,of:a.filter(e=>xe(e.node))}].filter(e=>e.of.length>0),c=[],l=0;for(let e of s)c.push({id:wo.prefix+e.label,label:e.label,x:0,y:l,width:0}),l+=wo.height+$.row,e.of.forEach((e,t)=>r.set(e.id,{x:t%n*o.x,y:l+Math.floor(t/n)*o.y})),l+=Math.ceil(e.of.length/n)*o.y;i.forEach((e,t)=>r.set(e.id,{x:t%n*o.x,y:l+Math.floor(t/n)*(xo.height+$.row)}));let u=[...r.values()].reduce((e,t)=>Math.max(e,t.x),0)+$.width;for(let e of c)e.width=u,r.set(e.id,{x:e.x,y:e.y});let d=new Map(i.map(e=>[e.id,xo.height]));jo(r,t,e=>({width:e.startsWith(wo.prefix)?u:$.width,height:e.startsWith(wo.prefix)?wo.height:d.get(e)??$.height}));for(let e of c){let t=r.get(e.id);t!==void 0&&Object.assign(e,t),r.delete(e.id)}return{positions:r,bands:c}}function Oo(e,t,n,r=null){let i=new Map([[e.vertex.id,{x:0,y:0}]]),a=Ao(n,e.vertex.id,So).height/2;return o(e.incoming,-1),o(e.outgoing,1),jo(i,t,t=>Ao(n,t,t===e.vertex.id?So:$));function o(e,t){let o=$.width+$.gap;ko(e).forEach((e,s)=>{let c=$.gap+s*o,l=e.map(e=>Ao(n,e.id,$).height),u=l.reduce((e,t)=>e+t,0)+$.row*(e.length-1),d=a-u/2;e.forEach((e,n)=>{let a=e.id===r?So.width:$.width;i.set(e.id,{x:t<0?-(c+a):So.width+c,y:d}),d+=l[n]+$.row})})}}function ko(e){if(e.length===0)return[];if(e.length<=To)return[e];let t=Math.ceil(e.length/2);return[e.slice(0,t),e.slice(t)]}function Ao(e,t,n){return e.get(t)??n}function jo(e,t,n){if(e.size===0)return e;let r={left:1/0,top:1/0,right:-1/0,bottom:-1/0};for(let[t,i]of e){let{width:e,height:a}=n(t);r.left=Math.min(r.left,i.x),r.top=Math.min(r.top,i.y),r.right=Math.max(r.right,i.x+e),r.bottom=Math.max(r.bottom,i.y+a)}let i={width:r.right-r.left,height:r.bottom-r.top},a={x:Math.max(Eo,(t.width-i.width)/2)-r.left,y:Math.max(Eo,(t.height-i.height)/2)-r.top};for(let[t,n]of e)e.set(t,{x:n.x+a.x,y:n.y+a.y});return e}function Mo(e,t){return e.id.localeCompare(t.id)}var No=new Set([`$$slots`,`$$events`,`$$legacy`]);function Po(e,t){let n=b(t,No),r=[[`path`,{d:`M21 16V8a2 2 0 0 0-1-1.73l-7-4a2 2 0 0 0-2 0l-7 4A2 2 0 0 0 3 8v8a2 2 0 0 0 1 1.73l7 4a2 2 0 0 0 2 0l7-4A2 2 0 0 0 21 16z`}],[`circle`,{cx:`12`,cy:`12`,r:`4`}]];ce(e,P({name:`bolt`},()=>n,{get iconNode(){return r}}))}var Fo=c(`<!> <!>`,1);function Io(e,n){r(n,!0);var i=A(),o=I(i);{let e=w(()=>[`bg-muted items-center`,n.class]);S(o,()=>he,(r,i)=>{i(r,{variant:`muted`,size:`sm`,get style(){return`height: ${xo.height??``}px`},get class(){return g(e)},children:(e,r)=>{var i=Fo(),o=I(i);S(o,()=>Pe,(e,t)=>{t(e,{children:(e,t)=>{Po(e,{class:`text-muted-foreground size-4`})},$$slots:{default:!0}})});var s=N(o,2);S(s,()=>L,(e,r)=>{r(e,{children:(e,r)=>{var i=A(),o=I(i);S(o,()=>Me,(e,r)=>{r(e,{class:`gap-0`,children:(e,r)=>{d();var i=a();v(()=>u(i,n.name)),t(e,i)},$$slots:{default:!0}})}),t(e,i)},$$slots:{default:!0}})}),t(e,i)},$$slots:{default:!0}})})}t(e,i),p()}var Lo=1/3,Ro=2/3;function zo(e,t,n){return Vo(e,t,n,Ro)}function Bo(e,t,n){return Vo(e,t,n,Lo)}function Vo(e,t,n,r){let i=t>=e.x+e.width/2,a=e.y+(n?.y??e.height*r);if(n?.x===void 0)return{x:i?e.x+e.width:e.x,y:a,away:i?1:-1};let o=e.x+n.x;return{x:o,y:a,away:t>=o?1:-1}}function Ho(e,t){let n=Math.max(40,Math.abs(t.x-e.x)/2),r={x:e.x+e.away*n,y:e.y},i={x:t.x+t.away*n,y:t.y};return`M${e.x},${e.y} C${r.x},${r.y} ${i.x},${i.y} ${t.x},${t.y}`}function Uo(e){let t=e.x+e.width/2,n=e.y+e.height;return`M${t-10},${n} C${t-28},${n+28} ${t+28},${n+28} ${t+10},${n}`}var Wo=l(`<path fill="none" stroke="currentColor" stroke-width="1.5" class="transition-opacity" marker-end="url(#map-arrow)"></path>`),Go=l(`<svg aria-hidden="true"><defs><marker id="map-arrow" viewBox="0 0 8 8" refX="7" refY="4" markerWidth="8" markerHeight="8" orient="auto-start-reverse"><path d="M0,0 L8,4 L0,8 z" fill="currentColor"></path></marker></defs><!></svg>`);function Ko(e,i){r(i,!0);let a=w(()=>i.arcs.map(e=>{let t=o(e.from),n=o(e.to);if(t===null||n===null)return null;let r=e.from===e.to?Uo(t):Ho(zo(t,n.x,e.out),Bo(n,t.x,e.in));return{id:e.id,d:r,dashed:e.dashed===!0,dimmed:e.dimmed===!0}}).filter(e=>e!==null));function o(e){let t=i.positions.get(e),n=i.sizes.get(e);return t===void 0||n===void 0?null:{...t,...n}}var s=Go(),c=N(E(s));n(c,17,()=>g(a),e=>e.id,(e,n)=>{var r=Wo();v(()=>{D(r,`d`,g(n).d),D(r,`stroke-dasharray`,g(n).dashed?`4 3`:void 0),D(r,`opacity`,g(n).dimmed?Co:void 0)}),t(e,r)}),M(s),v(()=>te(s,0,ee([`pointer-events-none absolute overflow-visible`,i.class]))),t(e,s),p()}var qo=c(`<span class="text-muted-foreground"> </span>`),Jo=c(`<!> `,1),Yo=c(`<!> <!>`,1),Xo=c(`<button type="button" class="text-muted-foreground hover:bg-muted hover:text-foreground -m-1 shrink-0
2
2
  cursor-pointer rounded-md p-1 transition-colors"><!></button>`),Zo=c(`<div class="flex items-start gap-2"><!> <!></div> <!>`,1);function Qo(e,n){r(n,!0);let a=()=>O(_e,`$dict`,o),[o,c]=T(),l=k(n,`open`,3,!1);var d=A(),f=I(d);{let e=w(()=>[`bg-card flex-col items-stretch gap-0`,n.class]);S(f,()=>he,(r,o)=>{o(r,{variant:`outline`,size:`sm`,get class(){return g(e)},children:(e,r)=>{var o=Zo(),c=I(o),d=E(c);S(d,()=>L,(e,r)=>{r(e,{class:`min-w-0`,children:(e,r)=>{var a=Yo(),o=I(a);S(o,()=>Me,(e,r)=>{r(e,{class:`gap-0`,children:(e,r)=>{var a=Jo(),o=I(a),s=e=>{var r=qo(),i=E(r);M(r),v(()=>u(i,`${n.node.namespace??``}.`)),t(e,r)};i(o,e=>{n.node.namespace!=="default"&&e(s)});var c=N(o,1,!0);v(()=>u(c,n.node.component)),t(e,a)},$$slots:{default:!0}})});var s=N(o,2);S(s,()=>Ne,(e,t)=>{t(e,{class:`text-xs line-clamp-none`,children:(e,t)=>{De(e,{get node(){return n.node}})},$$slots:{default:!0}})}),t(e,a)},$$slots:{default:!0}})});var f=N(d,2),p=e=>{var r=Xo(),i=E(r);{let e=w(()=>[`size-4 transition-transform`,l()&&`rotate-180`]);ke(i,{get class(){return g(e)}})}M(r),v(()=>{D(r,`aria-expanded`,l()),D(r,`aria-label`,a().map.expand)}),s(`click`,r,function(...e){n.ontoggle?.apply(this,e)}),t(e,r)};i(f,e=>{n.ontoggle!==void 0&&e(p)}),M(c);var m=N(c,2),h=e=>{Ee(e,{get node(){return n.node},class:`pt-3`})};i(m,e=>{l()&&e(h)}),t(e,o)},$$slots:{default:!0}})})}t(e,d),p(),c()}o([`click`]);var $o=c(`<div class="text-muted-foreground absolute top-0 left-0 flex items-center gap-3"><span class="text-xs font-medium tracking-wide uppercase"> </span> <!></div>`),es=c(`<div class="absolute top-0 left-0 cursor-pointer transition-opacity" role="button" tabindex="0"><!></div>`),ts=c(`<!> <!> <!>`,1);function ns(e,a){r(a,!0);let o=()=>O(Oe,`$query`,l),s=()=>O(_e,`$dict`,l),c=()=>O(fo,`$flying`,l),[l,d]=T(),m=new pe,h=ie(null),b=w(()=>Do(a.graph,a.view)),S=w(()=>g(b).positions),C=w(()=>ro(a.graph.links,g(h))),ee=w(()=>no(a.graph.links,g(h)).map(e=>({id:e.id,from:e.from,to:e.to,dashed:e.events===e.calls})));_(()=>{let e=a.graph.vertices.filter(e=>ao(e,o())),t=e.length===1?e[0].id:null;return be.set(t===null?null:()=>void go(t)),()=>be.set(null)});function k(e){return ao(e,o())?g(h)===null||g(C).has(e.id):!1}var A=ts(),j=I(A);Ko(j,{class:`text-muted-foreground/50`,get arcs(){return g(ee)},get positions(){return g(S)},get sizes(){return m}});var te=N(j,2);n(te,17,()=>g(b).bands,e=>e.id,(e,n)=>{var r=$o();let i;var a=E(r),o=E(a,!0);M(a);var c=N(a,2);me(c,{class:`flex-1`}),M(r),v(()=>{i=ne(r,``,i,{translate:`${g(n).x??``}px ${g(n).y??``}px`,width:`${g(n).width??``}px`,height:`${wo.height??``}px`}),u(o,s().space[g(n).label])}),t(e,r)});var P=N(te,2);n(P,17,()=>a.graph.vertices,e=>e.id,(e,n)=>{let r=w(()=>g(S).get(g(n).id)??{x:0,y:0});var a=es();let o;var s=E(a),l=e=>{Qo(e,{get node(){return g(n).node}})},u=e=>{Io(e,{get name(){return g(n).name}})};i(s,e=>{g(n).kind===`component`?e(l):e(u,-1)}),M(a),y(a,(e,t)=>bo?.(e,t),()=>({into:m,id:g(n).id})),y(a,(e,t)=>yo?.(e,t),()=>()=>void go(g(n).id)),v((e,t)=>{D(a,`aria-label`,e),o=ne(a,``,o,t)},[()=>io(g(n)),()=>({translate:`${g(r).x??``}px ${g(r).y??``}px`,width:`${$.width??``}px`,opacity:k(g(n))?1:Co,"view-transition-name":c()===g(n).id?po:void 0,"view-transition-class":c()===g(n).id?mo:void 0})]),f(`mouseenter`,a,()=>x(h,g(n).id,!0)),f(`mouseleave`,a,()=>x(h,null)),t(e,a)}),t(e,A),p(),d()}var rs=(e,t)=>{let n=new ResizeObserver(()=>s()),r=new MutationObserver(()=>s()),{into:i,of:a}=t,o=new Set;return n.observe(e),r.observe(e,{childList:!0,subtree:!0}),s(),{update:e=>{i=e.into,a=e.of,s()},destroy:()=>{n.disconnect(),r.disconnect();for(let e of o)i.delete(e)}};function s(){let t=new Set;for(let n of e.querySelectorAll(`[data-row]`)){if(n.dataset.row===void 0)continue;let e=`${a} ${n.dataset.row}`;t.add(e);let r={top:l(n).top,height:n.offsetHeight,right:c(n)},o=i.get(e);(o===void 0||o.top!==r.top||o.height!==r.height||o.right!==r.right)&&i.set(e,r)}for(let e of o)t.has(e)||i.delete(e);o=t}function c(e){let t=0;for(let n of e.children)n instanceof HTMLElement&&(t=Math.max(t,l(n).left+n.offsetWidth));return t===0?l(e).left+e.offsetWidth:t}function l(t){let n={top:0,left:0},r=t;for(;r!==null&&r!==e;)n.top+=r.offsetTop,n.left+=r.offsetLeft,r=r.offsetParent;return n}},is=(e,t)=>{let n=t;return e.addEventListener(`mouseover`,r),e.addEventListener(`mouseleave`,i),e.addEventListener(`focusin`,r),e.addEventListener(`focusout`,i),{update:e=>n=e,destroy:()=>{e.removeEventListener(`mouseover`,r),e.removeEventListener(`mouseleave`,i),e.removeEventListener(`focusin`,r),e.removeEventListener(`focusout`,i)}};function r(e){let t=e.target instanceof Element?e.target.closest(`[data-row]`):null;n(t?.getAttribute(`data-row`)??null)}function i(){n(null)}},as=c(`<div class="pointer-events-none absolute inset-y-0 end-2 flex items-center"><!></div>`),os=c(`<div role="button" tabindex="0"><div class="transition-opacity"><!></div> <!></div>`),ss=c(`<!> <!> <div class="absolute top-0 left-0"><!></div>`,1);function cs(e,o){r(o,!0);let s=()=>O(fo,`$flying`,m),c=()=>O(Oe,`$query`,m),l=()=>O(_e,`$dict`,m),[m,h]=T();_(()=>fo.set(o.id));let b=new pe,S=new pe,C=ie(null),k=ie(null),j=w(()=>oo(o.graph,o.id));function P(){return(g(j)?.incoming??[]).filter(e=>e.vertex.kind===`service`).map(e=>e.id)}let F=new ye(P()),re=w(()=>g(j)===null?new Map:Oo(g(j),o.view,b,g(C))),ae=w(()=>{if(g(j)===null)return[];let e=[];for(let t of g(j).incoming)if(!F.has(t.id))for(let n of t.wires)e.push({id:n.id,from:t.id,to:g(j).vertex.id,out:ce(t.id,n.theirs,8),in:ce(g(j).vertex.id,n.row),dashed:n.event,dimmed:!oe(t,n)});for(let t of g(j).outgoing)if(!F.has(t.id))for(let n of t.wires)e.push({id:n.id,from:g(j).vertex.id,to:t.id,out:ce(g(j).vertex.id,n.row,8),in:ce(t.id,n.theirs),dashed:n.event,dimmed:!oe(t,n)});return g(j).self&&e.push({id:`self`,from:g(j).vertex.id,to:g(j).vertex.id,dimmed:g(k)!==null}),e});function oe(e,t){return g(k)===null?!0:g(k).of===`card`?g(k).id===e.id:g(k).id===t.row}function se(e){return g(k)===null?!0:g(k).of===`card`?g(k).id===e.id:e.wires.some(e=>e.row===g(k)?.id)}function ce(e,t,n){if(t===null)return;let r=S.get(`${e} ${t}`);if(r!==void 0)return{y:r.top+r.height/2,x:n===void 0?void 0:r.right+n}}function le(e){de(()=>{x(C,g(C)===e.id?null:e.id,!0)})}function ue(e,t){t?F.has(e.id)?F.delete(e.id):F.add(e.id):go(e.vertex.id)}let me=w(()=>[...g(j)?.incoming??[],...g(j)?.outgoing??[]].find(e=>e.vertex.id===s())?.id??null);function L(e){return g(re).get(e)??{x:0,y:0}}var he=A(),ge=I(he),ve=e=>{var r=ss(),o=I(r);Ko(o,{class:`text-muted-foreground/50 z-10`,get arcs(){return g(ae)},get positions(){return g(re)},get sizes(){return b}});var p=N(o,2);n(p,17,()=>[...g(j).incoming,...g(j).outgoing],e=>e.id,(e,n)=>{var r=os();let o;var s=E(r);let p;var m=E(s),h=e=>{{let t=w(()=>g(C)===g(n).id);Qo(e,{get node(){return g(n).vertex.node},get open(){return g(t)},ontoggle:()=>le(g(n))})}},_=e=>{Io(e,{get name(){return g(n).vertex.name}})};i(m,e=>{g(n).vertex.kind===`component`?e(h):e(_,-1)}),M(s);var T=N(s,2),O=e=>{var n=as(),r=E(n);Fe(r,{children:(e,n)=>{d();var r=a();v(()=>u(r,l().map.restore)),t(e,r)},$$slots:{default:!0}}),M(n),t(e,n)},A=w(()=>F.has(g(n).id)&&g(n).vertex.kind===`service`);i(T,e=>{g(A)&&e(O)}),M(r),y(r,(e,t)=>bo?.(e,t),()=>({into:b,id:g(n).id})),y(r,(e,t)=>rs?.(e,t),()=>({into:S,of:g(n).id})),y(r,(e,t)=>fe?.(e,t),()=>({name:ho(g(n).id),classes:mo})),y(r,(e,t)=>yo?.(e,t),()=>e=>ue(g(n),e)),v((e,t,i)=>{te(r,1,ee([`absolute top-0 left-0 cursor-pointer`,g(C)===g(n).id?`z-0`:`z-20`])),D(r,`aria-label`,e),o=ne(r,``,o,t),p=ne(s,``,p,i)},[()=>io(g(n).vertex),()=>({translate:`${L(g(n).id).x??``}px ${L(g(n).id).y??``}px`,width:`${(g(C)===g(n).id?So.width:$.width)??``}px`,"view-transition-name":g(me)===g(n).id?po:void 0,"view-transition-class":g(me)===g(n).id?mo:void 0}),()=>({opacity:ao(g(n).vertex,c())&&se(g(n))&&!F.has(g(n).id)?1:Co})]),f(`mouseenter`,r,()=>x(k,F.has(g(n).id)?null:{of:`card`,id:g(n).id},!0)),f(`mouseleave`,r,()=>x(k,null)),t(e,r)});var m=N(p,2);let h;var _=E(m),T=e=>{Ae(e,{class:`bg-card`,get node(){return g(j).vertex.node},collapsible:!1})},O=e=>{Io(e,{get name(){return g(j).vertex.name}})};i(_,e=>{g(j).vertex.kind===`component`?e(T):e(O,-1)}),M(m),y(m,(e,t)=>bo?.(e,t),()=>({into:b,id:g(j).vertex.id})),y(m,(e,t)=>rs?.(e,t),()=>({into:S,of:g(j).vertex.id})),y(m,(e,t)=>is?.(e,t),()=>e=>x(k,e===null?null:{of:`row`,id:e},!0)),v(e=>h=ne(m,``,h,e),[()=>({translate:`${L(g(j).vertex.id).x??``}px ${L(g(j).vertex.id).y??``}px`,width:`${So.width??``}px`,"view-transition-name":s()===g(j).vertex.id?po:void 0,"view-transition-class":s()===g(j).vertex.id?mo:void 0})]),t(e,r)};i(ge,e=>{g(j)!==null&&e(ve)}),t(e,he),p(),h()}var ls=c(`<p class="text-muted-foreground absolute inset-x-0 top-4 text-center text-sm"> </p>`),us=c(`<!> <div class="absolute top-0 left-0 origin-top-left"><!></div>`,1),ds=c(`<div><!></div>`);function fs(n,a){r(a,!0);let o=()=>O(_e,`$dict`,s),[s,c]=T(),l=k(a,`focus`,3,null),d=ie(re(Ma)),h=ie(null),b=re({width:0,height:0});_(()=>S(l()));function S(e){g(h)?.reset()}function D(e){e.key===`Escape`&&l()!==null&&_o()}var P=ds();f(`keydown`,e,D);var ae=E(P);{let e=(e,n)=>{var r=w(()=>j(n?.(),2));let a=()=>g(r)[0],s=()=>g(r)[1],c=w(()=>Ya(a(),s()));var f=us(),p=I(f),h=e=>{var n=ls(),r=E(n,!0);M(n),v(()=>u(r,o().map.empty)),t(e,n)};i(p,e=>{g(c).links.length===0&&e(h)});var _=N(p,2);let y;var x=E(_),S=e=>{ns(e,{get graph(){return g(c)},get view(){return b}})},C=e=>{var n=A(),r=I(n);m(r,l,e=>{cs(e,{get graph(){return g(c)},get view(){return b},get id(){return l()}})}),t(e,n)};i(x,e=>{l()===null?e(S):e(C,-1)}),M(_),v(()=>y=ne(_,``,y,{translate:`${g(d).x??``}px ${g(d).y??``}px`,scale:g(d).k})),t(e,f)},n=w(()=>le(ge,Se));ue(ae,{get store(){return g(n)},awaited:e,$$slots:{awaited:!0}})}M(P),F(()=>C(P,`clientWidth`,e=>b.width=e)),F(()=>C(P,`clientHeight`,e=>b.height=e)),y(P,(e,t)=>Ga?.(e,t),()=>({onchange:e=>x(d,e,!0),onready:e=>x(h,e,!0)})),v(()=>te(P,1,ee([`bg-muted/30 relative touch-none overflow-hidden`,a.class]))),t(n,P),p(),c()}export{eo as n,fs as t};
@@ -1,4 +1,4 @@
1
- import{A as e,At as t,B as n,C as r,Ct as i,E as a,F as o,G as s,M as c,O as l,Ot as u,P as d,St as f,U as p,V as m,W as h,X as g,Y as _,Z as v,a as y,at as b,b as x,bt as ee,ct as S,d as C,dt as w,et as T,f as te,ft as E,g as ne,h as D,ht as O,i as k,it as A,j,kt as M,lt as N,m as P,nt as F,o as I,ot as re,p as L,rt as R,s as z,st as B,tt as V,vt as ie,w as ae,wt as oe,x as H,xt as se,y as ce,z as le}from"./sTot5bBi.js";import"./EttRBGeu.js";import"./xihTtKlq.js";import{C as ue,D as de,F as fe,L as pe,P as me,R as he,S as ge,c as _e,n as ve,z as ye}from"./CfwVa1wg.js";var be=ge.resource(`/introspection/nodes/`),xe=ge.resource(`/introspection/edges/`),Se=ge.resource(`/introspection/signals/`,{credentials:`include`}),Ce=6e4,we=1440*Ce,Te=75*Ce,Ee=7*we;async function De(){return await be.json(je(Te),{credentials:`include`})}async function Oe(){return await xe.json(je(Ee),{credentials:`include`})}async function ke(){return await Se.json()}async function Ae(e,t){let n=await Se.json({method:`POST`,body:{type:`halt`,seconds:e,quiescence:t}});return n instanceof Error?n:void 0}function je(e){return`?${new URLSearchParams({criteria:`UPDATED>${Date.now()-e}`}).toString()}`}var Me=ye({get:De,values:he(),persist:`introspection:nodes`,bind:de,stale:!0}),Ne=ye({get:Oe,values:he(),persist:`introspection:edges`,bind:de,stale:!0}),Pe=pe({get:ke,bind:de});async function Fe(e,t){return await Ae(e,t)}function Ie(e){return typeof e==`function`}function Le(e){return typeof e==`object`&&!!e}var Re=[`string`,`number`,`bigint`,`boolean`];function ze(e){return e==null||Re.includes(typeof e)?!0:Array.isArray(e)?e.every(e=>ze(e)):typeof e==`object`&&Object.getPrototypeOf(e)===Object.prototype}var Be=Symbol(`box`),Ve=Symbol(`is-writable`);function U(e,t){let n=S(e);return t?{[Be]:!0,[Ve]:!0,get current(){return m(n)},set current(e){t(e)}}:{[Be]:!0,get current(){return e()}}}function He(e){return Le(e)&&Be in e}function Ue(e){return He(e)&&Ve in e}function We(e){return He(e)?e:Ie(e)?U(e):qe(e)}function Ge(e){return Object.entries(e).reduce((e,[t,n])=>He(n)?(Ue(n)?Object.defineProperty(e,t,{get(){return n.current},set(e){n.current=e}}):Object.defineProperty(e,t,{get(){return n.current}}),e):Object.assign(e,{[t]:n}),{})}function Ke(e){return Ue(e)?{[Be]:!0,get current(){return e.current}}:e}function qe(e){let t=B(R(e));return{[Be]:!0,[Ve]:!0,get current(){return m(t)},set current(e){b(t,e,!0)}}}function Je(...e){return function(t){for(let n of e)if(n){if(t.defaultPrevented)return;typeof n==`function`?n.call(this,t):n.current?.call(this,t)}}}var Ye=/\/\*[^*]*\*+([^/*][^*]*\*+)*\//g,Xe=/\n/g,Ze=/^\s*/,Qe=/^(\*?[-#/*\\\w]+(\[[0-9a-z_-]+\])?)\s*/,$e=/^:\s*/,et=/^((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]*?\)|[^};])+)/,tt=/^[;\s]*/,nt=/^\s+|\s+$/g,rt=`
1
+ import{A as e,At as t,B as n,C as r,Ct as i,E as a,F as o,G as s,M as c,O as l,Ot as u,P as d,St as f,U as p,V as m,W as h,X as g,Y as _,Z as v,a as y,at as b,b as x,bt as ee,ct as S,d as C,dt as w,et as T,f as te,ft as E,g as ne,h as D,ht as O,i as k,it as A,j,kt as M,lt as N,m as P,nt as F,o as I,ot as re,p as L,rt as R,s as z,st as B,tt as V,vt as ie,w as ae,wt as oe,x as H,xt as se,y as ce,z as le}from"./sTot5bBi.js";import"./DxKTFrYR.js";import"./xihTtKlq.js";import{C as ue,D as de,F as fe,L as pe,P as me,R as he,S as ge,c as _e,n as ve,z as ye}from"./BevATjyM.js";var be=ge.resource(`/introspection/nodes/`),xe=ge.resource(`/introspection/edges/`),Se=ge.resource(`/introspection/signals/`,{credentials:`include`}),Ce=6e4,we=1440*Ce,Te=75*Ce,Ee=7*we;async function De(){return await be.json(je(Te),{credentials:`include`})}async function Oe(){return await xe.json(je(Ee),{credentials:`include`})}async function ke(){return await Se.json()}async function Ae(e,t){let n=await Se.json({method:`POST`,body:{type:`halt`,seconds:e,quiescence:t}});return n instanceof Error?n:void 0}function je(e){return`?${new URLSearchParams({criteria:`UPDATED>${Date.now()-e}`}).toString()}`}var Me=ye({get:De,values:he(),persist:`introspection:nodes`,bind:de,stale:!0}),Ne=ye({get:Oe,values:he(),persist:`introspection:edges`,bind:de,stale:!0}),Pe=pe({get:ke,bind:de});async function Fe(e,t){return await Ae(e,t)}function Ie(e){return typeof e==`function`}function Le(e){return typeof e==`object`&&!!e}var Re=[`string`,`number`,`bigint`,`boolean`];function ze(e){return e==null||Re.includes(typeof e)?!0:Array.isArray(e)?e.every(e=>ze(e)):typeof e==`object`&&Object.getPrototypeOf(e)===Object.prototype}var Be=Symbol(`box`),Ve=Symbol(`is-writable`);function U(e,t){let n=S(e);return t?{[Be]:!0,[Ve]:!0,get current(){return m(n)},set current(e){t(e)}}:{[Be]:!0,get current(){return e()}}}function He(e){return Le(e)&&Be in e}function Ue(e){return He(e)&&Ve in e}function We(e){return He(e)?e:Ie(e)?U(e):qe(e)}function Ge(e){return Object.entries(e).reduce((e,[t,n])=>He(n)?(Ue(n)?Object.defineProperty(e,t,{get(){return n.current},set(e){n.current=e}}):Object.defineProperty(e,t,{get(){return n.current}}),e):Object.assign(e,{[t]:n}),{})}function Ke(e){return Ue(e)?{[Be]:!0,get current(){return e.current}}:e}function qe(e){let t=B(R(e));return{[Be]:!0,[Ve]:!0,get current(){return m(t)},set current(e){b(t,e,!0)}}}function Je(...e){return function(t){for(let n of e)if(n){if(t.defaultPrevented)return;typeof n==`function`?n.call(this,t):n.current?.call(this,t)}}}var Ye=/\/\*[^*]*\*+([^/*][^*]*\*+)*\//g,Xe=/\n/g,Ze=/^\s*/,Qe=/^(\*?[-#/*\\\w]+(\[[0-9a-z_-]+\])?)\s*/,$e=/^:\s*/,et=/^((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]*?\)|[^};])+)/,tt=/^[;\s]*/,nt=/^\s+|\s+$/g,rt=`
2
2
  `,it=`/`,at=`*`,ot=``,st=`comment`,ct=`declaration`;function lt(e,t){if(typeof e!=`string`)throw TypeError(`First argument must be a string`);if(!e)return[];t||={};var n=1,r=1;function i(e){var t=e.match(Xe);t&&(n+=t.length);var i=e.lastIndexOf(rt);r=~i?e.length-i:r+e.length}function a(){var e={line:n,column:r};return function(t){return t.position=new o(e),l(),t}}function o(e){this.start=e,this.end={line:n,column:r},this.source=t.source}o.prototype.content=e;function s(i){var a=Error(t.source+`:`+n+`:`+r+`: `+i);if(a.reason=i,a.filename=t.source,a.line=n,a.column=r,a.source=e,!t.silent)throw a}function c(t){var n=t.exec(e);if(n){var r=n[0];return i(r),e=e.slice(r.length),n}}function l(){c(Ze)}function u(e){var t;for(e||=[];t=d();)t!==!1&&e.push(t);return e}function d(){var t=a();if(it==e.charAt(0)&&at==e.charAt(1)){for(var n=2;ot!=e.charAt(n)&&(at!=e.charAt(n)||it!=e.charAt(n+1));)++n;if(n+=2,ot===e.charAt(n-1))return s(`End of comment missing`);var o=e.slice(2,n-2);return r+=2,i(o),e=e.slice(n),r+=2,t({type:st,comment:o})}}function f(){var e=a(),t=c(Qe);if(t){if(d(),!c($e))return s(`property missing ':'`);var n=c(et),r=e({type:ct,property:ut(t[0].replace(Ye,ot)),value:n?ut(n[0].replace(Ye,ot)):ot});return c(tt),r}}function p(){var e=[];u(e);for(var t;t=f();)t!==!1&&(e.push(t),u(e));return e}return l(),p()}function ut(e){return e?e.replace(nt,ot):ot}function dt(e,t){let n=null;if(!e||typeof e!=`string`)return n;let r=lt(e),i=typeof t==`function`;return r.forEach(e=>{if(e.type!==`declaration`)return;let{property:r,value:a}=e;i?t(r,a,e):a&&(n||={},n[r]=a)}),n}var ft=/\d/,pt=[`-`,`_`,`/`,`.`];function mt(e=``){if(!ft.test(e))return e!==e.toLowerCase()}function ht(e){let t=[],n=``,r,i;for(let a of e){let e=pt.includes(a);if(e===!0){t.push(n),n=``,r=void 0;continue}let o=mt(a);if(i===!1){if(r===!1&&o===!0){t.push(n),n=a,r=o;continue}if(r===!0&&o===!1&&n.length>1){let e=n.at(-1);t.push(n.slice(0,Math.max(0,n.length-1))),n=e+a,r=o;continue}}n+=a,r=o,i=e}return t.push(n),t}function gt(e){return e?ht(e).map(e=>vt(e)).join(``):``}function _t(e){return yt(gt(e||``))}function vt(e){return e?e[0].toUpperCase()+e.slice(1):``}function yt(e){return e?e[0].toLowerCase()+e.slice(1):``}function bt(e){if(!e)return{};let t={};function n(e,n){if(e.startsWith(`-moz-`)||e.startsWith(`-webkit-`)||e.startsWith(`-ms-`)||e.startsWith(`-o-`)){t[gt(e)]=n;return}if(e.startsWith(`--`)){t[e]=n;return}t[_t(e)]=n}return dt(e,n),t}function xt(...e){return(...t)=>{for(let n of e)typeof n==`function`&&n(...t)}}function St(e,t){let n=RegExp(e,`g`);return e=>{if(typeof e!=`string`)throw TypeError(`expected an argument of type string, but got ${typeof e}`);return e.match(n)?e.replace(n,t):e}}var Ct=St(/[A-Z]/,e=>`-${e.toLowerCase()}`);function wt(e){if(!e||typeof e!=`object`||Array.isArray(e))throw TypeError(`expected an argument of type object, but got ${typeof e}`);return Object.keys(e).map(t=>`${Ct(t)}: ${e[t]};`).join(`
3
3
  `)}function Tt(e={}){return wt(e).replace(`
4
4
  `,` `)}var Et=new Set(`onabort.onanimationcancel.onanimationend.onanimationiteration.onanimationstart.onauxclick.onbeforeinput.onbeforetoggle.onblur.oncancel.oncanplay.oncanplaythrough.onchange.onclick.onclose.oncompositionend.oncompositionstart.oncompositionupdate.oncontextlost.oncontextmenu.oncontextrestored.oncopy.oncuechange.oncut.ondblclick.ondrag.ondragend.ondragenter.ondragleave.ondragover.ondragstart.ondrop.ondurationchange.onemptied.onended.onerror.onfocus.onfocusin.onfocusout.onformdata.ongotpointercapture.oninput.oninvalid.onkeydown.onkeypress.onkeyup.onload.onloadeddata.onloadedmetadata.onloadstart.onlostpointercapture.onmousedown.onmouseenter.onmouseleave.onmousemove.onmouseout.onmouseover.onmouseup.onpaste.onpause.onplay.onplaying.onpointercancel.onpointerdown.onpointerenter.onpointerleave.onpointermove.onpointerout.onpointerover.onpointerup.onprogress.onratechange.onreset.onresize.onscroll.onscrollend.onsecuritypolicyviolation.onseeked.onseeking.onselect.onselectionchange.onselectstart.onslotchange.onstalled.onsubmit.onsuspend.ontimeupdate.ontoggle.ontouchcancel.ontouchend.ontouchmove.ontouchstart.ontransitioncancel.ontransitionend.ontransitionrun.ontransitionstart.onvolumechange.onwaiting.onwebkitanimationend.onwebkitanimationiteration.onwebkitanimationstart.onwebkittransitionend.onwheel`.split(`.`));function Dt(e){return Et.has(e)}function Ot(...e){let t={...e[0]};for(let n=1;n<e.length;n++){let r=e[n];if(r){for(let e of Object.keys(r)){let n=t[e],i=r[e],a=typeof n==`function`,o=typeof i==`function`;if(a&&typeof o&&Dt(e))t[e]=Je(n,i);else if(a&&o)t[e]=xt(n,i);else if(e===`class`){let r=ze(n),a=ze(i);r&&a?t[e]=ne(n,i):r?t[e]=ne(n):a&&(t[e]=ne(i))}else if(e===`style`){let r=typeof n==`object`,a=typeof i==`object`,o=typeof n==`string`,s=typeof i==`string`;if(r&&a)t[e]={...n,...i};else if(r&&s){let r=bt(i);t[e]={...n,...r}}else if(o&&a)t[e]={...bt(n),...i};else if(o&&s){let r=bt(n),a=bt(i);t[e]={...r,...a}}else r?t[e]=n:a?t[e]=i:o?t[e]=n:s&&(t[e]=i)}else t[e]=i===void 0?n:i}for(let e of Object.getOwnPropertySymbols(r)){let n=t[e],i=r[e];t[e]=i===void 0?n:i}}}return typeof t.style==`object`&&(t.style=Tt(t.style).replaceAll(`
@@ -1 +1 @@
1
- import"./sTot5bBi.js";import{a as e}from"./C4dbyEfF.js";var t={get data(){return e.data},get error(){return e.error},get form(){return e.form},get params(){return e.params},get route(){return e.route},get state(){return e.state},get status(){return e.status},get url(){return e.url}};export{t};
1
+ import"./sTot5bBi.js";import{a as e}from"./BQ9nmkXV.js";var t={get data(){return e.data},get error(){return e.error},get form(){return e.form},get params(){return e.params},get route(){return e.route},get state(){return e.state},get status(){return e.status},get url(){return e.url}};export{t};
@@ -1 +1 @@
1
- import{A as e,At as t,Ct as n,M as r,St as i,a,d as o,et as s,i as c,kt as l,s as u,x as d}from"./sTot5bBi.js";import"./xihTtKlq.js";import{O as f}from"./mN1X6kWf.js";var p=new Set([`$$slots`,`$$events`,`$$legacy`,`ref`,`class`,`children`]),m=r(`<kbd><!></kbd>`);function h(r,h){n(h,!0);let g=c(h,`ref`,15,null),_=a(h,p);var v=m();o(v,e=>({"data-slot":`kbd`,class:e,..._}),[()=>f(`h-5 w-fit min-w-5 gap-1 rounded-sm bg-muted px-1 font-sans text-xs font-medium text-muted-foreground in-data-[slot=tooltip-content]:bg-background/20 in-data-[slot=tooltip-content]:text-background dark:in-data-[slot=tooltip-content]:bg-background/10 [&_svg:not([class*='size-'])]:size-3 pointer-events-none inline-flex items-center justify-center select-none`,h.class)]);var y=s(v);d(y,()=>h.children??t),l(v),u(v,e=>g(e),()=>g()),e(r,v),i()}export{h as t};
1
+ import{A as e,At as t,Ct as n,M as r,St as i,a,d as o,et as s,i as c,kt as l,s as u,x as d}from"./sTot5bBi.js";import"./xihTtKlq.js";import{O as f}from"./Ca35eOAI.js";var p=new Set([`$$slots`,`$$events`,`$$legacy`,`ref`,`class`,`children`]),m=r(`<kbd><!></kbd>`);function h(r,h){n(h,!0);let g=c(h,`ref`,15,null),_=a(h,p);var v=m();o(v,e=>({"data-slot":`kbd`,class:e,..._}),[()=>f(`h-5 w-fit min-w-5 gap-1 rounded-sm bg-muted px-1 font-sans text-xs font-medium text-muted-foreground in-data-[slot=tooltip-content]:bg-background/20 in-data-[slot=tooltip-content]:text-background dark:in-data-[slot=tooltip-content]:bg-background/10 [&_svg:not([class*='size-'])]:size-3 pointer-events-none inline-flex items-center justify-center select-none`,h.class)]);var y=s(v);d(y,()=>h.children??t),l(v),u(v,e=>g(e),()=>g()),e(r,v),i()}export{h as t};
@@ -0,0 +1 @@
1
+ import"./sTot5bBi.js";var e=`1789573547721`;export{e as t};
@@ -1,2 +1,2 @@
1
- const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["/.introspection/_app/immutable/nodes/0.BOiirZZ5.js","/.introspection/_app/immutable/chunks/sTot5bBi.js","/.introspection/_app/immutable/chunks/C4dbyEfF.js","/.introspection/_app/immutable/chunks/EttRBGeu.js","/.introspection/_app/immutable/chunks/xihTtKlq.js","/.introspection/_app/immutable/chunks/CfwVa1wg.js","/.introspection/_app/immutable/chunks/BizxCnFA.js","/.introspection/_app/immutable/chunks/CVI-G-nc.js","/.introspection/_app/immutable/assets/0.lZd8PDGB.css","/.introspection/_app/immutable/nodes/1.DO-EUw5i.js","/.introspection/_app/immutable/nodes/2.CCD_51dX.js","/.introspection/_app/immutable/chunks/BvrbTWE5.js","/.introspection/_app/immutable/chunks/mN1X6kWf.js","/.introspection/_app/immutable/chunks/DSlJ2Pi2.js","/.introspection/_app/immutable/chunks/DXPoxRl1.js","/.introspection/_app/immutable/assets/2.BghF56l_.css","/.introspection/_app/immutable/nodes/3.Yjra7El3.js","/.introspection/_app/immutable/chunks/CyuNt1Yc.js","/.introspection/_app/immutable/nodes/4.CCtpGkWO.js","/.introspection/_app/immutable/nodes/5.Cu46fsYa.js"])))=>i.map(i=>d[i]);
2
- import{A as e,Ct as t,E as n,F as r,M as i,O as a,St as o,U as s,V as c,X as l,Y as u,Z as d,at as f,b as p,ct as m,et as h,i as g,j as _,kt as v,n as y,nt as b,r as x,s as S,st as C,tt as w}from"../chunks/sTot5bBi.js";import"../chunks/xihTtKlq.js";var T=`modulepreload`,E=function(e,t){return new URL(e,t).href},D={},O=function(e,t,n){let r=Promise.resolve();if(t&&t.length>0){let e=document.getElementsByTagName(`link`),i=document.querySelector(`meta[property=csp-nonce]`),a=i?.nonce||i?.getAttribute(`nonce`);function o(e){return Promise.all(e.map(e=>Promise.resolve(e).then(e=>({status:`fulfilled`,value:e}),e=>({status:`rejected`,reason:e}))))}function s(e){return import.meta.resolve?import.meta.resolve(e):new URL(e,import.meta.url).href}r=o(t.map(t=>{if(t=E(t,n),t=s(t),t in D)return;D[t]=!0;let r=t.endsWith(`.css`);for(let n=e.length-1;n>=0;n--){let i=e[n];if(i.href===t&&(!r||i.rel===`stylesheet`))return}let i=document.createElement(`link`);if(i.rel=r?`stylesheet`:T,r||(i.as=`script`),i.crossOrigin=``,i.href=t,a&&i.setAttribute(`nonce`,a),document.head.appendChild(i),r)return new Promise((e,n)=>{i.addEventListener(`load`,e),i.addEventListener(`error`,()=>n(Error(`Unable to preload CSS for ${t}`)))})}))}function i(e){let t=new Event(`vite:preloadError`,{cancelable:!0});if(t.payload=e,window.dispatchEvent(t),!t.defaultPrevented)throw e}return r.then(t=>{for(let e of t||[])e.status===`rejected`&&i(e.reason);return e().catch(i)})};function k(e){return e.match(/^[0-9a-f]{32}$/)}var A={id:k},j=i(`<div id="svelte-announcer" aria-live="assertive" aria-atomic="true" style="position: absolute; left: 0; top: 0; clip: rect(0 0 0 0); clip-path: inset(50%); overflow: hidden; white-space: nowrap; width: 1px; height: 1px"><!></div>`),M=i(`<!> <!>`,1);function N(i,x){t(x,!0);let T=g(x,`components`,23,()=>[]),E=g(x,`data_0`,3,null),D=g(x,`data_1`,3,null),O=g(x,`data_2`,3,null);d(()=>x.stores.page.set(x.page)),l(()=>{x.stores,x.page,x.constructors,T(),x.form,E(),D(),O(),x.stores.page.notify()});let k=C(!1),A=C(!1),N=C(null);y(()=>{let e=x.stores.page.subscribe(()=>{c(k)&&(f(A,!0),s().then(()=>{f(N,document.title||`untitled page`,!0)}))});return f(k,!0),e});let P=m(()=>x.constructors[2]);var F=M(),I=w(F),L=t=>{let r=m(()=>x.constructors[0]);var i=_(),a=w(i);p(a,()=>c(r),(t,r)=>{S(r(t,{get data(){return E()},get form(){return x.form},get params(){return x.page.params},children:(t,r)=>{var i=_(),a=w(i),o=t=>{let n=m(()=>x.constructors[1]);var r=_(),i=w(r);p(i,()=>c(n),(t,n)=>{S(n(t,{get data(){return D()},get form(){return x.form},get params(){return x.page.params},children:(t,n)=>{var r=_(),i=w(r);p(i,()=>c(P),(e,t)=>{S(t(e,{get data(){return O()},get form(){return x.form},get params(){return x.page.params}}),e=>T()[2]=e,()=>T()?.[2])}),e(t,r)},$$slots:{default:!0}}),e=>T()[1]=e,()=>T()?.[1])}),e(t,r)},s=t=>{let n=m(()=>x.constructors[1]);var r=_(),i=w(r);p(i,()=>c(n),(e,t)=>{S(t(e,{get data(){return D()},get form(){return x.form},get params(){return x.page.params}}),e=>T()[1]=e,()=>T()?.[1])}),e(t,r)};n(a,e=>{x.constructors[2]?e(o):e(s,-1)}),e(t,i)},$$slots:{default:!0}}),e=>T()[0]=e,()=>T()?.[0])}),e(t,i)},R=t=>{let n=m(()=>x.constructors[0]);var r=_(),i=w(r);p(i,()=>c(n),(e,t)=>{S(t(e,{get data(){return E()},get form(){return x.form},get params(){return x.page.params}}),e=>T()[0]=e,()=>T()?.[0])}),e(t,r)};n(I,e=>{x.constructors[1]?e(L):e(R,-1)});var z=b(I,2),B=t=>{var i=j(),o=h(i),s=t=>{var n=r();u(()=>a(n,c(N))),e(t,n)};n(o,e=>{c(A)&&e(s)}),v(i),e(t,i)};n(z,e=>{c(k)&&e(B)}),e(i,F),o()}var P=x(N),F=[()=>O(()=>import(`../nodes/0.BOiirZZ5.js`),__vite__mapDeps([0,1,2,3,4,5,6,7,8]),import.meta.url),()=>O(()=>import(`../nodes/1.DO-EUw5i.js`),__vite__mapDeps([9,1,4,6,2,3]),import.meta.url),()=>O(()=>import(`../nodes/2.CCD_51dX.js`),__vite__mapDeps([10,1,2,3,4,5,11,12,6,7,13,14,15]),import.meta.url),()=>O(()=>import(`../nodes/3.Yjra7El3.js`),__vite__mapDeps([16,1,4,13,17,2,3,5,7,12,14]),import.meta.url),()=>O(()=>import(`../nodes/4.CCtpGkWO.js`),__vite__mapDeps([18,1,4,6,2,3,17,5,7,12,14]),import.meta.url),()=>O(()=>import(`../nodes/5.Cu46fsYa.js`),__vite__mapDeps([19,1,4,11,3,5,12,13]),import.meta.url)],I=[],L={"/(private)":[3,[2]],"/(private)/list":[5,[2]],"/(private)/[id]":[4,[2]]},R={handleError:(({error:e})=>{console.error(e)}),reroute:(()=>{}),transport:{}},z=Object.fromEntries(Object.entries(R.transport).map(([e,t])=>[e,t.decode])),B=Object.fromEntries(Object.entries(R.transport).map(([e,t])=>[e,t.encode])),V=!1,H=(e,t)=>z[e](t),U=()=>O(()=>import(`../chunks/Bjy-W4x2.js`).then(e=>e.default),[],import.meta.url);export{H as decode,z as decoders,L as dictionary,B as encoders,U as get_error_template,V as hash,R as hooks,A as matchers,F as nodes,P as root,I as server_loads};
1
+ const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["/.introspection/_app/immutable/nodes/0.C7PGFY2W.js","/.introspection/_app/immutable/chunks/sTot5bBi.js","/.introspection/_app/immutable/chunks/BQ9nmkXV.js","/.introspection/_app/immutable/chunks/DxKTFrYR.js","/.introspection/_app/immutable/chunks/xihTtKlq.js","/.introspection/_app/immutable/chunks/BevATjyM.js","/.introspection/_app/immutable/chunks/CmOIvXoq.js","/.introspection/_app/immutable/chunks/BbFulXbk.js","/.introspection/_app/immutable/assets/0.lZd8PDGB.css","/.introspection/_app/immutable/nodes/1.DZ5bdJCI.js","/.introspection/_app/immutable/nodes/2.X3rEp2Q2.js","/.introspection/_app/immutable/chunks/3fj1QkUy.js","/.introspection/_app/immutable/chunks/Ca35eOAI.js","/.introspection/_app/immutable/chunks/DSlJ2Pi2.js","/.introspection/_app/immutable/chunks/DT2OxQwL.js","/.introspection/_app/immutable/assets/2.BghF56l_.css","/.introspection/_app/immutable/nodes/3.1K5M7vak.js","/.introspection/_app/immutable/chunks/CYIfCZpC.js","/.introspection/_app/immutable/nodes/4.DQLIwxSq.js","/.introspection/_app/immutable/nodes/5.BL3yRDAK.js"])))=>i.map(i=>d[i]);
2
+ import{A as e,Ct as t,E as n,F as r,M as i,O as a,St as o,U as s,V as c,X as l,Y as u,Z as d,at as f,b as p,ct as m,et as h,i as g,j as _,kt as v,n as y,nt as b,r as x,s as S,st as C,tt as w}from"../chunks/sTot5bBi.js";import"../chunks/xihTtKlq.js";var T=`modulepreload`,E=function(e,t){return new URL(e,t).href},D={},O=function(e,t,n){let r=Promise.resolve();if(t&&t.length>0){let e=document.getElementsByTagName(`link`),i=document.querySelector(`meta[property=csp-nonce]`),a=i?.nonce||i?.getAttribute(`nonce`);function o(e){return Promise.all(e.map(e=>Promise.resolve(e).then(e=>({status:`fulfilled`,value:e}),e=>({status:`rejected`,reason:e}))))}function s(e){return import.meta.resolve?import.meta.resolve(e):new URL(e,import.meta.url).href}r=o(t.map(t=>{if(t=E(t,n),t=s(t),t in D)return;D[t]=!0;let r=t.endsWith(`.css`);for(let n=e.length-1;n>=0;n--){let i=e[n];if(i.href===t&&(!r||i.rel===`stylesheet`))return}let i=document.createElement(`link`);if(i.rel=r?`stylesheet`:T,r||(i.as=`script`),i.crossOrigin=``,i.href=t,a&&i.setAttribute(`nonce`,a),document.head.appendChild(i),r)return new Promise((e,n)=>{i.addEventListener(`load`,e),i.addEventListener(`error`,()=>n(Error(`Unable to preload CSS for ${t}`)))})}))}function i(e){let t=new Event(`vite:preloadError`,{cancelable:!0});if(t.payload=e,window.dispatchEvent(t),!t.defaultPrevented)throw e}return r.then(t=>{for(let e of t||[])e.status===`rejected`&&i(e.reason);return e().catch(i)})};function k(e){return e.match(/^[0-9a-f]{32}$/)}var A={id:k},j=i(`<div id="svelte-announcer" aria-live="assertive" aria-atomic="true" style="position: absolute; left: 0; top: 0; clip: rect(0 0 0 0); clip-path: inset(50%); overflow: hidden; white-space: nowrap; width: 1px; height: 1px"><!></div>`),M=i(`<!> <!>`,1);function N(i,x){t(x,!0);let T=g(x,`components`,23,()=>[]),E=g(x,`data_0`,3,null),D=g(x,`data_1`,3,null),O=g(x,`data_2`,3,null);d(()=>x.stores.page.set(x.page)),l(()=>{x.stores,x.page,x.constructors,T(),x.form,E(),D(),O(),x.stores.page.notify()});let k=C(!1),A=C(!1),N=C(null);y(()=>{let e=x.stores.page.subscribe(()=>{c(k)&&(f(A,!0),s().then(()=>{f(N,document.title||`untitled page`,!0)}))});return f(k,!0),e});let P=m(()=>x.constructors[2]);var F=M(),I=w(F),L=t=>{let r=m(()=>x.constructors[0]);var i=_(),a=w(i);p(a,()=>c(r),(t,r)=>{S(r(t,{get data(){return E()},get form(){return x.form},get params(){return x.page.params},children:(t,r)=>{var i=_(),a=w(i),o=t=>{let n=m(()=>x.constructors[1]);var r=_(),i=w(r);p(i,()=>c(n),(t,n)=>{S(n(t,{get data(){return D()},get form(){return x.form},get params(){return x.page.params},children:(t,n)=>{var r=_(),i=w(r);p(i,()=>c(P),(e,t)=>{S(t(e,{get data(){return O()},get form(){return x.form},get params(){return x.page.params}}),e=>T()[2]=e,()=>T()?.[2])}),e(t,r)},$$slots:{default:!0}}),e=>T()[1]=e,()=>T()?.[1])}),e(t,r)},s=t=>{let n=m(()=>x.constructors[1]);var r=_(),i=w(r);p(i,()=>c(n),(e,t)=>{S(t(e,{get data(){return D()},get form(){return x.form},get params(){return x.page.params}}),e=>T()[1]=e,()=>T()?.[1])}),e(t,r)};n(a,e=>{x.constructors[2]?e(o):e(s,-1)}),e(t,i)},$$slots:{default:!0}}),e=>T()[0]=e,()=>T()?.[0])}),e(t,i)},R=t=>{let n=m(()=>x.constructors[0]);var r=_(),i=w(r);p(i,()=>c(n),(e,t)=>{S(t(e,{get data(){return E()},get form(){return x.form},get params(){return x.page.params}}),e=>T()[0]=e,()=>T()?.[0])}),e(t,r)};n(I,e=>{x.constructors[1]?e(L):e(R,-1)});var z=b(I,2),B=t=>{var i=j(),o=h(i),s=t=>{var n=r();u(()=>a(n,c(N))),e(t,n)};n(o,e=>{c(A)&&e(s)}),v(i),e(t,i)};n(z,e=>{c(k)&&e(B)}),e(i,F),o()}var P=x(N),F=[()=>O(()=>import(`../nodes/0.C7PGFY2W.js`),__vite__mapDeps([0,1,2,3,4,5,6,7,8]),import.meta.url),()=>O(()=>import(`../nodes/1.DZ5bdJCI.js`),__vite__mapDeps([9,1,4,6,2,3]),import.meta.url),()=>O(()=>import(`../nodes/2.X3rEp2Q2.js`),__vite__mapDeps([10,1,2,3,4,5,11,12,6,7,13,14,15]),import.meta.url),()=>O(()=>import(`../nodes/3.1K5M7vak.js`),__vite__mapDeps([16,1,4,13,17,2,3,5,7,12,14]),import.meta.url),()=>O(()=>import(`../nodes/4.DQLIwxSq.js`),__vite__mapDeps([18,1,4,6,2,3,17,5,7,12,14]),import.meta.url),()=>O(()=>import(`../nodes/5.BL3yRDAK.js`),__vite__mapDeps([19,1,4,11,3,5,12,13]),import.meta.url)],I=[],L={"/(private)":[3,[2]],"/(private)/list":[5,[2]],"/(private)/[id]":[4,[2]]},R={handleError:(({error:e})=>{console.error(e)}),reroute:(()=>{}),transport:{}},z=Object.fromEntries(Object.entries(R.transport).map(([e,t])=>[e,t.decode])),B=Object.fromEntries(Object.entries(R.transport).map(([e,t])=>[e,t.encode])),V=!1,H=(e,t)=>z[e](t),U=()=>O(()=>import(`../chunks/Bjy-W4x2.js`).then(e=>e.default),[],import.meta.url);export{H as decode,z as decoders,L as dictionary,B as encoders,U as get_error_template,V as hash,R as hooks,A as matchers,F as nodes,P as root,I as server_loads};
@@ -0,0 +1 @@
1
+ import{o as e,r as t}from"../chunks/BQ9nmkXV.js";export{e as load_css,t as start};
@@ -1 +1 @@
1
- import{A as e,Ct as t,K as n,M as r,Nt as i,Q as a,St as o,V as s,X as c,Y as l,ct as u,dt as d,f,ft as p,j as m,tt as h,v as g,vt as _,x as v}from"../chunks/sTot5bBi.js";import{n as y}from"../chunks/C4dbyEfF.js";import"../chunks/EttRBGeu.js";import"../chunks/xihTtKlq.js";import{D as b,E as x,O as S,S as C,i as w,k as T,s as E,t as D,w as O,x as k}from"../chunks/CfwVa1wg.js";import{t as A}from"../chunks/BizxCnFA.js";import"../chunks/CVI-G-nc.js";var j=x();j.on(`*`,(e,t)=>{t===void 0?console.debug(e):console.debug(e,t)});var M=_({status:`disconnected`,events:[]});j.on(`*`,(e,t)=>{M.update(n=>(n.events.push({label:e,payload:t}),n.events=n.events.slice(-128),n))});function N(e){M.update(t=>(t.status=e,(e===`connected`||e===`disconnected`)&&t.events.push({label:e}),t))}function P(){M.update(()=>({status:`disconnected`,events:[]}))}var F=C.resource(`/presence/`);async function I(e,t){return await F.multipart(e,{credentials:`include`,...t})}var L=null,R=null;async function z(e){if(L!==null&&L!==e&&V(),L!==e)for(L=e;L===e;){N(`connecting`);let t=await B(e).catch(e=>e);t!==void 0&&(t.name===`AbortError`?console.debug(`Realtime connection aborted`):(console.warn(`Realtime connection exception`,t),await new Promise(e=>setTimeout(e,3e3))))}}async function B(e){R=new AbortController;let t=R.signal,n=Intl.DateTimeFormat().resolvedOptions().timeZone,r=await I(e,{signal:t,body:{timezone:n}});if(r instanceof Error)throw N(`disconnected`),r;console.debug(`Realtime connected`,e),N(`connected`);for await(let e of r)H(e);console.debug(`Realtime connection lost`,e)}function V(){if(L!==null){if(L=null,R===null)throw Error(`Realtime controller is NULL`);R.abort(),P()}}function H(e){typeof e==`string`?j.emit(`heartbeat`):j.emit(e.event,e.data)}function U(){S.subscribe(e=>{let t=b.extract();e?z(t.id):V()})}function W(e){let t=e.replace(/-/g,`+`).replace(/_/g,`/`);return atob(t.padEnd(t.length+(4-t.length%4)%4,`=`))}function G(){let e=w(`challenge`);return e===null?null:W(e)}function K(){C.events.on(`challenge`,e=>T.set(e)),C.events.on(`error`,e=>{e.code===401&&T.set(null)}),T.subscribe(e=>C.authenticate(e));let e=G();e!==null&&T.set(e),k()}var q=i({prerender:()=>!1,ssr:()=>!1,trailingSlash:()=>J});K(),U();var J=`always`,Y=r(`<meta name="description"/>`);function X(r,i){t(i,!0);let _=()=>p(D,`$dict`,b),[b,x]=d(),S=u(()=>A.data.meta?.title??O.title),C=u(()=>A.data.meta?.description??O.description);y(E),c(()=>{document.dir=_().dir});var w=m();g(`12qhfyh`,t=>{var r=Y();l(()=>f(r,`content`,s(C))),n(()=>{a.title=s(S)??``}),e(t,r)});var T=h(w);v(T,()=>i.children),e(r,w),o(),x()}export{X as component,q as universal};
1
+ import{A as e,Ct as t,K as n,M as r,Nt as i,Q as a,St as o,V as s,X as c,Y as l,ct as u,dt as d,f,ft as p,j as m,tt as h,v as g,vt as _,x as v}from"../chunks/sTot5bBi.js";import{n as y}from"../chunks/BQ9nmkXV.js";import"../chunks/DxKTFrYR.js";import"../chunks/xihTtKlq.js";import{D as b,E as x,O as S,S as C,i as w,k as T,s as E,t as D,w as O,x as k}from"../chunks/BevATjyM.js";import{t as A}from"../chunks/CmOIvXoq.js";import"../chunks/BbFulXbk.js";var j=x();j.on(`*`,(e,t)=>{t===void 0?console.debug(e):console.debug(e,t)});var M=_({status:`disconnected`,events:[]});j.on(`*`,(e,t)=>{M.update(n=>(n.events.push({label:e,payload:t}),n.events=n.events.slice(-128),n))});function N(e){M.update(t=>(t.status=e,(e===`connected`||e===`disconnected`)&&t.events.push({label:e}),t))}function P(){M.update(()=>({status:`disconnected`,events:[]}))}var F=C.resource(`/presence/`);async function I(e,t){return await F.multipart(e,{credentials:`include`,...t})}var L=null,R=null;async function z(e){if(L!==null&&L!==e&&V(),L!==e)for(L=e;L===e;){N(`connecting`);let t=await B(e).catch(e=>e);t!==void 0&&(t.name===`AbortError`?console.debug(`Realtime connection aborted`):(console.warn(`Realtime connection exception`,t),await new Promise(e=>setTimeout(e,3e3))))}}async function B(e){R=new AbortController;let t=R.signal,n=Intl.DateTimeFormat().resolvedOptions().timeZone,r=await I(e,{signal:t,body:{timezone:n}});if(r instanceof Error)throw N(`disconnected`),r;console.debug(`Realtime connected`,e),N(`connected`);for await(let e of r)H(e);console.debug(`Realtime connection lost`,e)}function V(){if(L!==null){if(L=null,R===null)throw Error(`Realtime controller is NULL`);R.abort(),P()}}function H(e){typeof e==`string`?j.emit(`heartbeat`):j.emit(e.event,e.data)}function U(){S.subscribe(e=>{let t=b.extract();e?z(t.id):V()})}function W(e){let t=e.replace(/-/g,`+`).replace(/_/g,`/`);return atob(t.padEnd(t.length+(4-t.length%4)%4,`=`))}function G(){let e=w(`challenge`);return e===null?null:W(e)}function K(){C.events.on(`challenge`,e=>T.set(e)),C.events.on(`error`,e=>{e.code===401&&T.set(null)}),T.subscribe(e=>C.authenticate(e));let e=G();e!==null&&T.set(e),k()}var q=i({prerender:()=>!1,ssr:()=>!1,trailingSlash:()=>J});K(),U();var J=`always`,Y=r(`<meta name="description"/>`);function X(r,i){t(i,!0);let _=()=>p(D,`$dict`,b),[b,x]=d(),S=u(()=>A.data.meta?.title??O.title),C=u(()=>A.data.meta?.description??O.description);y(E),c(()=>{document.dir=_().dir});var w=m();g(`12qhfyh`,t=>{var r=Y();l(()=>f(r,`content`,s(C))),n(()=>{a.title=s(S)??``}),e(t,r)});var T=h(w);v(T,()=>i.children),e(r,w),o(),x()}export{X as component,q as universal};
@@ -1 +1 @@
1
- import{A as e,Ct as t,M as n,O as r,St as i,Y as a,et as o,kt as s,nt as c,tt as l}from"../chunks/sTot5bBi.js";import"../chunks/xihTtKlq.js";import{t as u}from"../chunks/BizxCnFA.js";var d=n(`<h1> </h1> <p> </p>`,1);function f(n,f){t(f,!0);var p=d(),m=l(p),h=o(m,!0);s(m);var g=c(m,2),_=o(g,!0);s(g),a(()=>{r(h,u.status),r(_,u.error?.message)}),e(n,p),i()}export{f as component};
1
+ import{A as e,Ct as t,M as n,O as r,St as i,Y as a,et as o,kt as s,nt as c,tt as l}from"../chunks/sTot5bBi.js";import"../chunks/xihTtKlq.js";import{t as u}from"../chunks/CmOIvXoq.js";var d=n(`<h1> </h1> <p> </p>`,1);function f(n,f){t(f,!0);var p=d(),m=l(p),h=o(m,!0);s(m);var g=c(m,2),_=o(g,!0);s(g),a(()=>{r(h,u.status),r(_,u.error?.message)}),e(n,p),i()}export{f as component};