@oneclick.dev/cms-core-modules 0.0.61 → 0.0.63

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 (46) hide show
  1. package/dist/{ContentEditor-BAepN3Yd.js → ContentEditor-DKFCmfOs.js} +1 -1
  2. package/dist/{ContentEditor-BPjWW3d1.mjs → ContentEditor-owdOIage.mjs} +1 -1
  3. package/dist/NewReservationDialog.vue_vue_type_script_setup_true_lang-DRVxQswt.js +1 -0
  4. package/dist/{NewReservationDialog.vue_vue_type_script_setup_true_lang-BJitmbPE.mjs → NewReservationDialog.vue_vue_type_script_setup_true_lang-DkgDWC2i.mjs} +130 -125
  5. package/dist/{Overview-DtWvKB3W.mjs → Overview-DiBYtvEX.mjs} +124 -119
  6. package/dist/Overview-qP1guKjx.js +1 -0
  7. package/dist/ReservationDetailDialog.vue_vue_type_script_setup_true_lang-B7ks5mbf.mjs +2332 -0
  8. package/dist/ReservationDetailDialog.vue_vue_type_script_setup_true_lang-Vxubki_v.js +349 -0
  9. package/dist/{TableView-_2cP-w_7.js → TableView-BqhL_P45.js} +100 -100
  10. package/dist/{TableView-DlhHyuUZ.mjs → TableView-Dbl8qcUy.mjs} +14991 -14728
  11. package/dist/agenda-DFNJ8C1N.mjs +1136 -0
  12. package/dist/agenda-MjkwV63A.js +1 -0
  13. package/dist/floating-ui.dom-CBBY0Ism.js +1 -0
  14. package/dist/floating-ui.dom-xfqXu4GA.mjs +1138 -0
  15. package/dist/{index-DTago6vW-Bhr8E1Y6.js → index-CgfL8UKf-DAN7RkzR.js} +10 -10
  16. package/dist/{index-DTago6vW-CnomHQ_S.mjs → index-CgfL8UKf-DUUg9HDA.mjs} +904 -875
  17. package/dist/index-DBDq-h4j.js +245 -0
  18. package/dist/{index-BDaVYdkD.mjs → index-X0L4AHBR.mjs} +2406 -2394
  19. package/dist/index-YMaY4uuk-BgpTtr73.js +1 -0
  20. package/dist/{index-YMaY4uuk-BshejgNP.mjs → index-YMaY4uuk-C_xV5K9Z.mjs} +13 -14
  21. package/dist/index.cjs.js +1 -1
  22. package/dist/index.mjs +6 -6
  23. package/dist/orders-Bqa3Z3tH.mjs +356 -0
  24. package/dist/orders-D5GJOZXN.js +1 -0
  25. package/dist/src/appointments/components/edit/EventDialog/ApproveReservationDialog.vue.d.ts +8 -0
  26. package/dist/src/appointments/components/edit/EventDialog/BookingsList.vue.d.ts +39 -9
  27. package/dist/src/appointments/components/edit/EventDialog/CancelReservationDialog.vue.d.ts +2 -2
  28. package/dist/src/appointments/components/edit/EventDialog/RejectReservationDialog.vue.d.ts +8 -0
  29. package/dist/src/appointments/components/edit/EventDialog/ReservationDetailDialog.vue.d.ts +36 -8
  30. package/dist/src/appointments/components/edit/dashboard/BookingsList.vue.d.ts +46 -9
  31. package/dist/src/appointments/components/edit/dashboard/Timeline.vue.d.ts +19 -0
  32. package/dist/src/appointments/pages/edit/orders.vue.d.ts +39 -9
  33. package/package.json +1 -1
  34. package/dist/NewReservationDialog.vue_vue_type_script_setup_true_lang-D50uTpZY.js +0 -1
  35. package/dist/Overview-B_99j5eA.js +0 -1
  36. package/dist/ReservationDetailDialog.vue_vue_type_script_setup_true_lang-CI8YgHdU.js +0 -345
  37. package/dist/ReservationDetailDialog.vue_vue_type_script_setup_true_lang-P-MWwcVh.mjs +0 -2093
  38. package/dist/agenda-D81m29_4.mjs +0 -1135
  39. package/dist/agenda-uzPPxgsW.js +0 -1
  40. package/dist/floating-ui.dom-C82nbomj.js +0 -1
  41. package/dist/floating-ui.dom-ouSgPqty.mjs +0 -1133
  42. package/dist/index-DfV8-6ON.js +0 -245
  43. package/dist/index-YMaY4uuk-BxVT7IpO.js +0 -1
  44. package/dist/orders-Bh8w0ueq.mjs +0 -346
  45. package/dist/orders-Dt0zMz97.js +0 -1
  46. package/dist/src/appointments/components/edit/EventDialog/ResendConfirmationDialog.vue.d.ts +0 -4
@@ -1,245 +0,0 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const l=require("vue"),Mt=require("@oneclick.dev/cms-kit"),st=require("lucide-vue-next"),Hs=require("./EditLayout.vue_vue_type_script_setup_true_lang-Czu6Dcde.js"),en=require("./index-DTago6vW-Bhr8E1Y6.js"),Ws=require("./index-CxETuRsG.js"),Di=require("./ReservationDetailDialog.vue_vue_type_script_setup_true_lang-CI8YgHdU.js"),Ys=require("./NewReservationDialog.vue_vue_type_script_setup_true_lang-D50uTpZY.js");var Cr="http://www.w3.org/1999/xhtml";const Ai={svg:"http://www.w3.org/2000/svg",xhtml:Cr,xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/"};function Zn(t){var e=t+="",n=e.indexOf(":");return n>=0&&(e=t.slice(0,n))!=="xmlns"&&(t=t.slice(n+1)),Ai.hasOwnProperty(e)?{space:Ai[e],local:t}:t}function Xs(t){return function(){var e=this.ownerDocument,n=this.namespaceURI;return n===Cr&&e.documentElement.namespaceURI===Cr?e.createElement(t):e.createElementNS(n,t)}}function qs(t){return function(){return this.ownerDocument.createElementNS(t.space,t.local)}}function Ko(t){var e=Zn(t);return(e.local?qs:Xs)(e)}function Gs(){}function Gr(t){return t==null?Gs:function(){return this.querySelector(t)}}function js(t){typeof t!="function"&&(t=Gr(t));for(var e=this._groups,n=e.length,r=new Array(n),i=0;i<n;++i)for(var o=e[i],a=o.length,s=r[i]=new Array(a),c,u,f=0;f<a;++f)(c=o[f])&&(u=t.call(c,c.__data__,f,o))&&("__data__"in c&&(u.__data__=c.__data__),s[f]=u);return new gt(r,this._parents)}function Zs(t){return t==null?[]:Array.isArray(t)?t:Array.from(t)}function Qs(){return[]}function Jo(t){return t==null?Qs:function(){return this.querySelectorAll(t)}}function Ks(t){return function(){return Zs(t.apply(this,arguments))}}function Js(t){typeof t=="function"?t=Ks(t):t=Jo(t);for(var e=this._groups,n=e.length,r=[],i=[],o=0;o<n;++o)for(var a=e[o],s=a.length,c,u=0;u<s;++u)(c=a[u])&&(r.push(t.call(c,c.__data__,u,a)),i.push(c));return new gt(r,i)}function ta(t){return function(){return this.matches(t)}}function ea(t){return function(e){return e.matches(t)}}var tc=Array.prototype.find;function ec(t){return function(){return tc.call(this.children,t)}}function nc(){return this.firstElementChild}function rc(t){return this.select(t==null?nc:ec(typeof t=="function"?t:ea(t)))}var ic=Array.prototype.filter;function oc(){return Array.from(this.children)}function ac(t){return function(){return ic.call(this.children,t)}}function sc(t){return this.selectAll(t==null?oc:ac(typeof t=="function"?t:ea(t)))}function cc(t){typeof t!="function"&&(t=ta(t));for(var e=this._groups,n=e.length,r=new Array(n),i=0;i<n;++i)for(var o=e[i],a=o.length,s=r[i]=[],c,u=0;u<a;++u)(c=o[u])&&t.call(c,c.__data__,u,o)&&s.push(c);return new gt(r,this._parents)}function na(t){return new Array(t.length)}function lc(){return new gt(this._enter||this._groups.map(na),this._parents)}function Dn(t,e){this.ownerDocument=t.ownerDocument,this.namespaceURI=t.namespaceURI,this._next=null,this._parent=t,this.__data__=e}Dn.prototype={constructor:Dn,appendChild:function(t){return this._parent.insertBefore(t,this._next)},insertBefore:function(t,e){return this._parent.insertBefore(t,e)},querySelector:function(t){return this._parent.querySelector(t)},querySelectorAll:function(t){return this._parent.querySelectorAll(t)}};function uc(t){return function(){return t}}function fc(t,e,n,r,i,o){for(var a=0,s,c=e.length,u=o.length;a<u;++a)(s=e[a])?(s.__data__=o[a],r[a]=s):n[a]=new Dn(t,o[a]);for(;a<c;++a)(s=e[a])&&(i[a]=s)}function dc(t,e,n,r,i,o,a){var s,c,u=new Map,f=e.length,d=o.length,h=new Array(f),g;for(s=0;s<f;++s)(c=e[s])&&(h[s]=g=a.call(c,c.__data__,s,e)+"",u.has(g)?i[s]=c:u.set(g,c));for(s=0;s<d;++s)g=a.call(t,o[s],s,o)+"",(c=u.get(g))?(r[s]=c,c.__data__=o[s],u.delete(g)):n[s]=new Dn(t,o[s]);for(s=0;s<f;++s)(c=e[s])&&u.get(h[s])===c&&(i[s]=c)}function hc(t){return t.__data__}function gc(t,e){if(!arguments.length)return Array.from(this,hc);var n=e?dc:fc,r=this._parents,i=this._groups;typeof t!="function"&&(t=uc(t));for(var o=i.length,a=new Array(o),s=new Array(o),c=new Array(o),u=0;u<o;++u){var f=r[u],d=i[u],h=d.length,g=pc(t.call(f,f&&f.__data__,u,r)),p=g.length,m=s[u]=new Array(p),w=a[u]=new Array(p),_=c[u]=new Array(h);n(f,d,m,w,_,g,e);for(var b=0,v=0,k,C;b<p;++b)if(k=m[b]){for(b>=v&&(v=b+1);!(C=w[v])&&++v<p;);k._next=C||null}}return a=new gt(a,r),a._enter=s,a._exit=c,a}function pc(t){return typeof t=="object"&&"length"in t?t:Array.from(t)}function mc(){return new gt(this._exit||this._groups.map(na),this._parents)}function vc(t,e,n){var r=this.enter(),i=this,o=this.exit();return typeof t=="function"?(r=t(r),r&&(r=r.selection())):r=r.append(t+""),e!=null&&(i=e(i),i&&(i=i.selection())),n==null?o.remove():n(o),r&&i?r.merge(i).order():i}function yc(t){for(var e=t.selection?t.selection():t,n=this._groups,r=e._groups,i=n.length,o=r.length,a=Math.min(i,o),s=new Array(i),c=0;c<a;++c)for(var u=n[c],f=r[c],d=u.length,h=s[c]=new Array(d),g,p=0;p<d;++p)(g=u[p]||f[p])&&(h[p]=g);for(;c<i;++c)s[c]=n[c];return new gt(s,this._parents)}function xc(){for(var t=this._groups,e=-1,n=t.length;++e<n;)for(var r=t[e],i=r.length-1,o=r[i],a;--i>=0;)(a=r[i])&&(o&&a.compareDocumentPosition(o)^4&&o.parentNode.insertBefore(a,o),o=a);return this}function _c(t){t||(t=wc);function e(d,h){return d&&h?t(d.__data__,h.__data__):!d-!h}for(var n=this._groups,r=n.length,i=new Array(r),o=0;o<r;++o){for(var a=n[o],s=a.length,c=i[o]=new Array(s),u,f=0;f<s;++f)(u=a[f])&&(c[f]=u);c.sort(e)}return new gt(i,this._parents).order()}function wc(t,e){return t<e?-1:t>e?1:t>=e?0:NaN}function bc(){var t=arguments[0];return arguments[0]=this,t.apply(null,arguments),this}function kc(){return Array.from(this)}function Cc(){for(var t=this._groups,e=0,n=t.length;e<n;++e)for(var r=t[e],i=0,o=r.length;i<o;++i){var a=r[i];if(a)return a}return null}function Sc(){let t=0;for(const e of this)++t;return t}function Tc(){return!this.node()}function Mc(t){for(var e=this._groups,n=0,r=e.length;n<r;++n)for(var i=e[n],o=0,a=i.length,s;o<a;++o)(s=i[o])&&t.call(s,s.__data__,o,i);return this}function Dc(t){return function(){this.removeAttribute(t)}}function Ac(t){return function(){this.removeAttributeNS(t.space,t.local)}}function Ec(t,e){return function(){this.setAttribute(t,e)}}function Nc(t,e){return function(){this.setAttributeNS(t.space,t.local,e)}}function $c(t,e){return function(){var n=e.apply(this,arguments);n==null?this.removeAttribute(t):this.setAttribute(t,n)}}function Rc(t,e){return function(){var n=e.apply(this,arguments);n==null?this.removeAttributeNS(t.space,t.local):this.setAttributeNS(t.space,t.local,n)}}function Bc(t,e){var n=Zn(t);if(arguments.length<2){var r=this.node();return n.local?r.getAttributeNS(n.space,n.local):r.getAttribute(n)}return this.each((e==null?n.local?Ac:Dc:typeof e=="function"?n.local?Rc:$c:n.local?Nc:Ec)(n,e))}function ra(t){return t.ownerDocument&&t.ownerDocument.defaultView||t.document&&t||t.defaultView}function Oc(t){return function(){this.style.removeProperty(t)}}function Vc(t,e,n){return function(){this.style.setProperty(t,e,n)}}function Fc(t,e,n){return function(){var r=e.apply(this,arguments);r==null?this.style.removeProperty(t):this.style.setProperty(t,r,n)}}function Ic(t,e,n){return arguments.length>1?this.each((e==null?Oc:typeof e=="function"?Fc:Vc)(t,e,n??"")):he(this.node(),t)}function he(t,e){return t.style.getPropertyValue(e)||ra(t).getComputedStyle(t,null).getPropertyValue(e)}function zc(t){return function(){delete this[t]}}function Lc(t,e){return function(){this[t]=e}}function Pc(t,e){return function(){var n=e.apply(this,arguments);n==null?delete this[t]:this[t]=n}}function Uc(t,e){return arguments.length>1?this.each((e==null?zc:typeof e=="function"?Pc:Lc)(t,e)):this.node()[t]}function ia(t){return t.trim().split(/^|\s+/)}function jr(t){return t.classList||new oa(t)}function oa(t){this._node=t,this._names=ia(t.getAttribute("class")||"")}oa.prototype={add:function(t){var e=this._names.indexOf(t);e<0&&(this._names.push(t),this._node.setAttribute("class",this._names.join(" ")))},remove:function(t){var e=this._names.indexOf(t);e>=0&&(this._names.splice(e,1),this._node.setAttribute("class",this._names.join(" ")))},contains:function(t){return this._names.indexOf(t)>=0}};function aa(t,e){for(var n=jr(t),r=-1,i=e.length;++r<i;)n.add(e[r])}function sa(t,e){for(var n=jr(t),r=-1,i=e.length;++r<i;)n.remove(e[r])}function Hc(t){return function(){aa(this,t)}}function Wc(t){return function(){sa(this,t)}}function Yc(t,e){return function(){(e.apply(this,arguments)?aa:sa)(this,t)}}function Xc(t,e){var n=ia(t+"");if(arguments.length<2){for(var r=jr(this.node()),i=-1,o=n.length;++i<o;)if(!r.contains(n[i]))return!1;return!0}return this.each((typeof e=="function"?Yc:e?Hc:Wc)(n,e))}function qc(){this.textContent=""}function Gc(t){return function(){this.textContent=t}}function jc(t){return function(){var e=t.apply(this,arguments);this.textContent=e??""}}function Zc(t){return arguments.length?this.each(t==null?qc:(typeof t=="function"?jc:Gc)(t)):this.node().textContent}function Qc(){this.innerHTML=""}function Kc(t){return function(){this.innerHTML=t}}function Jc(t){return function(){var e=t.apply(this,arguments);this.innerHTML=e??""}}function tl(t){return arguments.length?this.each(t==null?Qc:(typeof t=="function"?Jc:Kc)(t)):this.node().innerHTML}function el(){this.nextSibling&&this.parentNode.appendChild(this)}function nl(){return this.each(el)}function rl(){this.previousSibling&&this.parentNode.insertBefore(this,this.parentNode.firstChild)}function il(){return this.each(rl)}function ol(t){var e=typeof t=="function"?t:Ko(t);return this.select(function(){return this.appendChild(e.apply(this,arguments))})}function al(){return null}function sl(t,e){var n=typeof t=="function"?t:Ko(t),r=e==null?al:typeof e=="function"?e:Gr(e);return this.select(function(){return this.insertBefore(n.apply(this,arguments),r.apply(this,arguments)||null)})}function cl(){var t=this.parentNode;t&&t.removeChild(this)}function ll(){return this.each(cl)}function ul(){var t=this.cloneNode(!1),e=this.parentNode;return e?e.insertBefore(t,this.nextSibling):t}function fl(){var t=this.cloneNode(!0),e=this.parentNode;return e?e.insertBefore(t,this.nextSibling):t}function dl(t){return this.select(t?fl:ul)}function hl(t){return arguments.length?this.property("__data__",t):this.node().__data__}function gl(t){return function(e){t.call(this,e,this.__data__)}}function pl(t){return t.trim().split(/^|\s+/).map(function(e){var n="",r=e.indexOf(".");return r>=0&&(n=e.slice(r+1),e=e.slice(0,r)),{type:e,name:n}})}function ml(t){return function(){var e=this.__on;if(e){for(var n=0,r=-1,i=e.length,o;n<i;++n)o=e[n],(!t.type||o.type===t.type)&&o.name===t.name?this.removeEventListener(o.type,o.listener,o.options):e[++r]=o;++r?e.length=r:delete this.__on}}}function vl(t,e,n){return function(){var r=this.__on,i,o=gl(e);if(r){for(var a=0,s=r.length;a<s;++a)if((i=r[a]).type===t.type&&i.name===t.name){this.removeEventListener(i.type,i.listener,i.options),this.addEventListener(i.type,i.listener=o,i.options=n),i.value=e;return}}this.addEventListener(t.type,o,n),i={type:t.type,name:t.name,value:e,listener:o,options:n},r?r.push(i):this.__on=[i]}}function yl(t,e,n){var r=pl(t+""),i,o=r.length,a;if(arguments.length<2){var s=this.node().__on;if(s){for(var c=0,u=s.length,f;c<u;++c)for(i=0,f=s[c];i<o;++i)if((a=r[i]).type===f.type&&a.name===f.name)return f.value}return}for(s=e?vl:ml,i=0;i<o;++i)this.each(s(r[i],e,n));return this}function ca(t,e,n){var r=ra(t),i=r.CustomEvent;typeof i=="function"?i=new i(e,n):(i=r.document.createEvent("Event"),n?(i.initEvent(e,n.bubbles,n.cancelable),i.detail=n.detail):i.initEvent(e,!1,!1)),t.dispatchEvent(i)}function xl(t,e){return function(){return ca(this,t,e)}}function _l(t,e){return function(){return ca(this,t,e.apply(this,arguments))}}function wl(t,e){return this.each((typeof e=="function"?_l:xl)(t,e))}function*bl(){for(var t=this._groups,e=0,n=t.length;e<n;++e)for(var r=t[e],i=0,o=r.length,a;i<o;++i)(a=r[i])&&(yield a)}var la=[null];function gt(t,e){this._groups=t,this._parents=e}function Xe(){return new gt([[document.documentElement]],la)}function kl(){return this}gt.prototype=Xe.prototype={constructor:gt,select:js,selectAll:Js,selectChild:rc,selectChildren:sc,filter:cc,data:gc,enter:lc,exit:mc,join:vc,merge:yc,selection:kl,order:xc,sort:_c,call:bc,nodes:kc,node:Cc,size:Sc,empty:Tc,each:Mc,attr:Bc,style:Ic,property:Uc,classed:Xc,text:Zc,html:tl,raise:nl,lower:il,append:ol,insert:sl,remove:ll,clone:dl,datum:hl,on:yl,dispatch:wl,[Symbol.iterator]:bl};function Ft(t){return typeof t=="string"?new gt([[document.querySelector(t)]],[document.documentElement]):new gt([[t]],la)}function Cl(t){let e;for(;e=t.sourceEvent;)t=e;return t}function An(t,e){if(t=Cl(t),e===void 0&&(e=t.currentTarget),e){var n=e.ownerSVGElement||e;if(n.createSVGPoint){var r=n.createSVGPoint();return r.x=t.clientX,r.y=t.clientY,r=r.matrixTransform(e.getScreenCTM().inverse()),[r.x,r.y]}if(e.getBoundingClientRect){var i=e.getBoundingClientRect();return[t.clientX-i.left-e.clientLeft,t.clientY-i.top-e.clientTop]}}return[t.pageX,t.pageY]}var Re;(function(t){t[t.SVG=0]="SVG",t[t.HTML=1]="HTML"})(Re||(Re={}));var ge;(function(t){t.Fit="fit",t.Extend="extend",t.FitWidth="fit_width"})(ge||(ge={}));function Be(t,e){return t==null||e==null?NaN:t<e?-1:t>e?1:t>=e?0:NaN}function Sl(t,e){return t==null||e==null?NaN:e<t?-1:e>t?1:e>=t?0:NaN}function Zr(t){let e,n,r;t.length!==2?(e=Be,n=(s,c)=>Be(t(s),c),r=(s,c)=>t(s)-c):(e=t===Be||t===Sl?t:Tl,n=t,r=t);function i(s,c,u=0,f=s.length){if(u<f){if(e(c,c)!==0)return f;do{const d=u+f>>>1;n(s[d],c)<0?u=d+1:f=d}while(u<f)}return u}function o(s,c,u=0,f=s.length){if(u<f){if(e(c,c)!==0)return f;do{const d=u+f>>>1;n(s[d],c)<=0?u=d+1:f=d}while(u<f)}return u}function a(s,c,u=0,f=s.length){const d=i(s,c,u,f-1);return d>u&&r(s[d-1],c)>-r(s[d],c)?d-1:d}return{left:i,center:a,right:o}}function Tl(){return 0}function ua(t){return t===null?NaN:+t}const fa=Zr(Be),qe=fa.right,Ml=fa.left;Zr(ua).center;function Dl(t,e){let n,r;for(const i of t)i!=null&&(n===void 0?i>=i&&(n=r=i):(n>i&&(n=i),r<i&&(r=i)));return[n,r]}class Ei extends Map{constructor(e,n=Nl){if(super(),Object.defineProperties(this,{_intern:{value:new Map},_key:{value:n}}),e!=null)for(const[r,i]of e)this.set(r,i)}get(e){return super.get(Ni(this,e))}has(e){return super.has(Ni(this,e))}set(e,n){return super.set(Al(this,e),n)}delete(e){return super.delete(El(this,e))}}function Ni({_intern:t,_key:e},n){const r=e(n);return t.has(r)?t.get(r):n}function Al({_intern:t,_key:e},n){const r=e(n);return t.has(r)?t.get(r):(t.set(r,n),n)}function El({_intern:t,_key:e},n){const r=e(n);return t.has(r)&&(n=t.get(r),t.delete(r)),n}function Nl(t){return t!==null&&typeof t=="object"?t.valueOf():t}const $l=Math.sqrt(50),Rl=Math.sqrt(10),Bl=Math.sqrt(2);function En(t,e,n){const r=(e-t)/Math.max(0,n),i=Math.floor(Math.log10(r)),o=r/Math.pow(10,i),a=o>=$l?10:o>=Rl?5:o>=Bl?2:1;let s,c,u;return i<0?(u=Math.pow(10,-i)/a,s=Math.round(t*u),c=Math.round(e*u),s/u<t&&++s,c/u>e&&--c,u=-u):(u=Math.pow(10,i)*a,s=Math.round(t/u),c=Math.round(e/u),s*u<t&&++s,c*u>e&&--c),c<s&&.5<=n&&n<2?En(t,e,n*2):[s,c,u]}function Sr(t,e,n){if(e=+e,t=+t,n=+n,!(n>0))return[];if(t===e)return[t];const r=e<t,[i,o,a]=r?En(e,t,n):En(t,e,n);if(!(o>=i))return[];const s=o-i+1,c=new Array(s);if(r)if(a<0)for(let u=0;u<s;++u)c[u]=(o-u)/-a;else for(let u=0;u<s;++u)c[u]=(o-u)*a;else if(a<0)for(let u=0;u<s;++u)c[u]=(i+u)/-a;else for(let u=0;u<s;++u)c[u]=(i+u)*a;return c}function Tr(t,e,n){return e=+e,t=+t,n=+n,En(t,e,n)[2]}function Mr(t,e,n){e=+e,t=+t,n=+n;const r=e<t,i=r?Tr(e,t,n):Tr(t,e,n);return(r?-1:1)*(i<0?1/-i:i)}function Dr(t,e){let n;if(e===void 0)for(const r of t)r!=null&&(n<r||n===void 0&&r>=r)&&(n=r);else{let r=-1;for(let i of t)(i=e(i,++r,t))!=null&&(n<i||n===void 0&&i>=i)&&(n=i)}return n}function Oe(t,e){let n;if(e===void 0)for(const r of t)r!=null&&(n>r||n===void 0&&r>=r)&&(n=r);else{let r=-1;for(let i of t)(i=e(i,++r,t))!=null&&(n>i||n===void 0&&i>=i)&&(n=i)}return n}function Ol(t,e,n=ua){if(!(!(r=t.length)||isNaN(e=+e))){if(e<=0||r<2)return+n(t[0],0,t);if(e>=1)return+n(t[r-1],r-1,t);var r,i=(r-1)*e,o=Math.floor(i),a=+n(t[o],o,t),s=+n(t[o+1],o+1,t);return a+(s-a)*(i-o)}}function*Vl(t){for(const e of t)yield*e}function Fl(t){return Array.from(Vl(t))}function da(t,e,n){t=+t,e=+e,n=(i=arguments.length)<2?(e=t,t=0,1):i<3?1:+n;for(var r=-1,i=Math.max(0,Math.ceil((e-t)/n))|0,o=new Array(i);++r<i;)o[r]=t+r*n;return o}function Il(t,e){let n=0;if(e===void 0)for(let r of t)(r=+r)&&(n+=r);else{let r=-1;for(let i of t)(i=+e(i,++r,t))&&(n+=i)}return n}function zl(t,e,n){var r={},i=r.noTrailing,o=i===void 0?!1:i,a=r.noLeading,s=a===void 0?!1:a,c=r.debounceMode,u=c===void 0?void 0:c,f,d=!1,h=0;function g(){f&&clearTimeout(f)}function p(w){var _=w||{},b=_.upcomingOnly,v=b===void 0?!1:b;g(),d=!v}function m(){for(var w=arguments.length,_=new Array(w),b=0;b<w;b++)_[b]=arguments[b];var v=this,k=Date.now()-h;if(d)return;function C(){h=Date.now(),e.apply(v,_)}function y(){f=void 0}!s&&u&&!f&&C(),g(),u===void 0&&k>t?s?(h=Date.now(),o||(f=setTimeout(u?y:C,t))):C():o!==!0&&(f=setTimeout(u?y:C,u===void 0?t-k:t))}return m.cancel=p,m}var Rt;(function(t){t.Left="left",t.Right="right",t.Auto="auto"})(Rt||(Rt={}));const Xt=t=>typeof t=="number",Qr=t=>typeof t=="function",Ge=t=>Array.isArray(t),Ll=t=>t instanceof Object,Nn=t=>t.constructor.name!=="Function"&&t.constructor.name!=="Object",$i=t=>Ll(t)&&!Ge(t)&&!Qr(t)&&!Nn(t),Pl=t=>[Object,Array].includes((t||{}).constructor)&&!Object.entries(t||{}).length,ne=(t,e,n=[],r=new Set)=>{if(Array.isArray(t)){if(!Array.isArray(e)||t.length!==e.length)return!1;if(r.has(t))return!0;r.add(t);for(let i=0;i<t.length;i++)if(!ne(t[i],e[i],n,r))return!1;return!0}if(t instanceof Date&&e instanceof Date)return t.getTime()===e.getTime();if(typeof t=="object"&&t!==null&&e!==null){if(typeof e!="object")return!1;if(t===e)return!0;const i=Object.keys(t).filter(a=>!n.includes(a)),o=Object.keys(e).filter(a=>!n.includes(a));if(i.length!==o.length)return!1;if(r.has(t))return!0;r.add(t);for(const a of i)if(!ne(t[a],e[a],n,r))return!1;return!0}return t===e},Ar=t=>t.flat(),$n=(t,e=new Map)=>{if(typeof t!="object"||t===null)return t;if(t instanceof Date)return new Date(t.getTime());if(t instanceof Array){const n=[];e.set(t,n);for(const r of t)n.push(e.has(r)?e.get(r):$n(r,e));return n}if(Nn(t))return t;if(t instanceof Object){const n={};e.set(t,n);const r=t;return Object.keys(t).reduce((i,o)=>(i[o]=e.has(r[o])?e.get(r[o]):$n(r[o],e),i),n),n}return t},pe=(t,e,n=new Map)=>{if(!t||!e||t===e)return t;const r=Nn(t)?t:$n(t);return n.has(e)?n.get(e):(n.set(e,r),Object.keys(e).forEach(i=>{i==="__proto__"||i==="constructor"||($i(t[i])&&$i(e[i])?r[i]=pe(t[i],e[i],n):Nn(e)?r[i]=e:r[i]=$n(e[i]))}),r)},Rn=(t,e,n)=>zl(e,t);function ha(t,e,n){return Qr(e)?e(t,n):e}function Er(t,e,n){return ha(t,e,n)}function tt(t,e,n){return ha(t,e,n)}function ke(t){return t.filter(e=>e&&!Xt(e))}function Bt(t,e,n){return Math.min(Math.max(t,e),n)}function Ul(t,e,...n){const r=[];let i=0,o=0;for(const a of n){const s=tt(t,a,e)||0;s>=0?r.push(i+=s):r.push(o+=s)}return r}function ga(t,...e){return t?Oe(t,(r,i)=>Oe(e,o=>tt(r,o,i))):void 0}function pa(t,...e){return t?Dr(t,(r,i)=>Dr(e,o=>tt(r,o,i))):void 0}function dn(t,...e){return[ga(t,...e),pa(t,...e)]}function Bn(t,e,n,r=Rt.Auto){if(t.length<=1)return t[0];const o=t.map((c,u)=>[c,u]).sort(([c,u],[f,d])=>tt(c,n,u)-tt(f,n,d)),a=o.map(([c,u])=>tt(c,n,u)),s=r===Rt.Right?Ml(a,e,0,t.length-1):qe(a,e,1,t.length);return r===Rt.Right?o[s][0]:r===Rt.Left?o[s-1][0]:e-a[s-1]>a[s]-e?o[s][0]:o[s-1][0]}function Hl(t,e,n,r=!1){if(!n)return[];const i=t.filter((o,a)=>{const s=tt(o,n,a);return s>=e[0]&&s<=e[1]});if(r){if(i.length===0){const d=Bn(t,e[0],n,Rt.Left),h=Bn(t,e[1],n,Rt.Right);return[d,h].filter(Boolean)}const o=i[0],a=i[i.length-1],s=t.findIndex(d=>d===o),c=t.findIndex(d=>d===a),u=Math.max(0,s-1),f=Math.min(t.length-1,c+1);return t.slice(u,f+1)}return i}var Kt=[],Wl=function(){return Kt.some(function(t){return t.activeTargets.length>0})},Yl=function(){return Kt.some(function(t){return t.skippedTargets.length>0})},Ri="ResizeObserver loop completed with undelivered notifications.",Xl=function(){var t;typeof ErrorEvent=="function"?t=new ErrorEvent("error",{message:Ri}):(t=document.createEvent("Event"),t.initEvent("error",!1,!1),t.message=Ri),window.dispatchEvent(t)},Ie;(function(t){t.BORDER_BOX="border-box",t.CONTENT_BOX="content-box",t.DEVICE_PIXEL_CONTENT_BOX="device-pixel-content-box"})(Ie||(Ie={}));var Jt=function(t){return Object.freeze(t)},ql=(function(){function t(e,n){this.inlineSize=e,this.blockSize=n,Jt(this)}return t})(),ma=(function(){function t(e,n,r,i){return this.x=e,this.y=n,this.width=r,this.height=i,this.top=this.y,this.left=this.x,this.bottom=this.top+this.height,this.right=this.left+this.width,Jt(this)}return t.prototype.toJSON=function(){var e=this,n=e.x,r=e.y,i=e.top,o=e.right,a=e.bottom,s=e.left,c=e.width,u=e.height;return{x:n,y:r,top:i,right:o,bottom:a,left:s,width:c,height:u}},t.fromRect=function(e){return new t(e.x,e.y,e.width,e.height)},t})(),Kr=function(t){return t instanceof SVGElement&&"getBBox"in t},va=function(t){if(Kr(t)){var e=t.getBBox(),n=e.width,r=e.height;return!n&&!r}var i=t,o=i.offsetWidth,a=i.offsetHeight;return!(o||a||t.getClientRects().length)},Bi=function(t){var e;if(t instanceof Element)return!0;var n=(e=t?.ownerDocument)===null||e===void 0?void 0:e.defaultView;return!!(n&&t instanceof n.Element)},Gl=function(t){switch(t.tagName){case"INPUT":if(t.type!=="image")break;case"VIDEO":case"AUDIO":case"EMBED":case"OBJECT":case"CANVAS":case"IFRAME":case"IMG":return!0}return!1},Ve=typeof window<"u"?window:{},nn=new WeakMap,Oi=/auto|scroll/,jl=/^tb|vertical/,Zl=/msie|trident/i.test(Ve.navigator&&Ve.navigator.userAgent),St=function(t){return parseFloat(t||"0")},ue=function(t,e,n){return t===void 0&&(t=0),e===void 0&&(e=0),n===void 0&&(n=!1),new ql((n?e:t)||0,(n?t:e)||0)},Vi=Jt({devicePixelContentBoxSize:ue(),borderBoxSize:ue(),contentBoxSize:ue(),contentRect:new ma(0,0,0,0)}),ya=function(t,e){if(e===void 0&&(e=!1),nn.has(t)&&!e)return nn.get(t);if(va(t))return nn.set(t,Vi),Vi;var n=getComputedStyle(t),r=Kr(t)&&t.ownerSVGElement&&t.getBBox(),i=!Zl&&n.boxSizing==="border-box",o=jl.test(n.writingMode||""),a=!r&&Oi.test(n.overflowY||""),s=!r&&Oi.test(n.overflowX||""),c=r?0:St(n.paddingTop),u=r?0:St(n.paddingRight),f=r?0:St(n.paddingBottom),d=r?0:St(n.paddingLeft),h=r?0:St(n.borderTopWidth),g=r?0:St(n.borderRightWidth),p=r?0:St(n.borderBottomWidth),m=r?0:St(n.borderLeftWidth),w=d+u,_=c+f,b=m+g,v=h+p,k=s?t.offsetHeight-v-t.clientHeight:0,C=a?t.offsetWidth-b-t.clientWidth:0,y=i?w+b:0,x=i?_+v:0,E=r?r.width:St(n.width)-y-C,O=r?r.height:St(n.height)-x-k,B=E+w+C+b,N=O+_+k+v,M=Jt({devicePixelContentBoxSize:ue(Math.round(E*devicePixelRatio),Math.round(O*devicePixelRatio),o),borderBoxSize:ue(B,N,o),contentBoxSize:ue(E,O,o),contentRect:new ma(d,c,E,O)});return nn.set(t,M),M},xa=function(t,e,n){var r=ya(t,n),i=r.borderBoxSize,o=r.contentBoxSize,a=r.devicePixelContentBoxSize;switch(e){case Ie.DEVICE_PIXEL_CONTENT_BOX:return a;case Ie.BORDER_BOX:return i;default:return o}},Ql=(function(){function t(e){var n=ya(e);this.target=e,this.contentRect=n.contentRect,this.borderBoxSize=Jt([n.borderBoxSize]),this.contentBoxSize=Jt([n.contentBoxSize]),this.devicePixelContentBoxSize=Jt([n.devicePixelContentBoxSize])}return t})(),_a=function(t){if(va(t))return 1/0;for(var e=0,n=t.parentNode;n;)e+=1,n=n.parentNode;return e},Kl=function(){var t=1/0,e=[];Kt.forEach(function(a){if(a.activeTargets.length!==0){var s=[];a.activeTargets.forEach(function(u){var f=new Ql(u.target),d=_a(u.target);s.push(f),u.lastReportedSize=xa(u.target,u.observedBox),d<t&&(t=d)}),e.push(function(){a.callback.call(a.observer,s,a.observer)}),a.activeTargets.splice(0,a.activeTargets.length)}});for(var n=0,r=e;n<r.length;n++){var i=r[n];i()}return t},Fi=function(t){Kt.forEach(function(n){n.activeTargets.splice(0,n.activeTargets.length),n.skippedTargets.splice(0,n.skippedTargets.length),n.observationTargets.forEach(function(i){i.isActive()&&(_a(i.target)>t?n.activeTargets.push(i):n.skippedTargets.push(i))})})},Jl=function(){var t=0;for(Fi(t);Wl();)t=Kl(),Fi(t);return Yl()&&Xl(),t>0},fr,wa=[],tu=function(){return wa.splice(0).forEach(function(t){return t()})},eu=function(t){if(!fr){var e=0,n=document.createTextNode(""),r={characterData:!0};new MutationObserver(function(){return tu()}).observe(n,r),fr=function(){n.textContent="".concat(e?e--:e++)}}wa.push(t),fr()},nu=function(t){eu(function(){requestAnimationFrame(t)})},hn=0,ru=function(){return!!hn},iu=250,ou={attributes:!0,characterData:!0,childList:!0,subtree:!0},Ii=["resize","load","transitionend","animationend","animationstart","animationiteration","keyup","keydown","mouseup","mousedown","mouseover","mouseout","blur","focus"],zi=function(t){return t===void 0&&(t=0),Date.now()+t},dr=!1,au=(function(){function t(){var e=this;this.stopped=!0,this.listener=function(){return e.schedule()}}return t.prototype.run=function(e){var n=this;if(e===void 0&&(e=iu),!dr){dr=!0;var r=zi(e);nu(function(){var i=!1;try{i=Jl()}finally{if(dr=!1,e=r-zi(),!ru())return;i?n.run(1e3):e>0?n.run(e):n.start()}})}},t.prototype.schedule=function(){this.stop(),this.run()},t.prototype.observe=function(){var e=this,n=function(){return e.observer&&e.observer.observe(document.body,ou)};document.body?n():Ve.addEventListener("DOMContentLoaded",n)},t.prototype.start=function(){var e=this;this.stopped&&(this.stopped=!1,this.observer=new MutationObserver(this.listener),this.observe(),Ii.forEach(function(n){return Ve.addEventListener(n,e.listener,!0)}))},t.prototype.stop=function(){var e=this;this.stopped||(this.observer&&this.observer.disconnect(),Ii.forEach(function(n){return Ve.removeEventListener(n,e.listener,!0)}),this.stopped=!0)},t})(),Nr=new au,Li=function(t){!hn&&t>0&&Nr.start(),hn+=t,!hn&&Nr.stop()},su=function(t){return!Kr(t)&&!Gl(t)&&getComputedStyle(t).display==="inline"},cu=(function(){function t(e,n){this.target=e,this.observedBox=n||Ie.CONTENT_BOX,this.lastReportedSize={inlineSize:0,blockSize:0}}return t.prototype.isActive=function(){var e=xa(this.target,this.observedBox,!0);return su(this.target)&&(this.lastReportedSize=e),this.lastReportedSize.inlineSize!==e.inlineSize||this.lastReportedSize.blockSize!==e.blockSize},t})(),lu=(function(){function t(e,n){this.activeTargets=[],this.skippedTargets=[],this.observationTargets=[],this.observer=e,this.callback=n}return t})(),rn=new WeakMap,Pi=function(t,e){for(var n=0;n<t.length;n+=1)if(t[n].target===e)return n;return-1},on=(function(){function t(){}return t.connect=function(e,n){var r=new lu(e,n);rn.set(e,r)},t.observe=function(e,n,r){var i=rn.get(e),o=i.observationTargets.length===0;Pi(i.observationTargets,n)<0&&(o&&Kt.push(i),i.observationTargets.push(new cu(n,r&&r.box)),Li(1),Nr.schedule())},t.unobserve=function(e,n){var r=rn.get(e),i=Pi(r.observationTargets,n),o=r.observationTargets.length===1;i>=0&&(o&&Kt.splice(Kt.indexOf(r),1),r.observationTargets.splice(i,1),Li(-1))},t.disconnect=function(e){var n=this,r=rn.get(e);r.observationTargets.slice().forEach(function(i){return n.unobserve(e,i.target)}),r.activeTargets.splice(0,r.activeTargets.length)},t})(),uu=(function(){function t(e){if(arguments.length===0)throw new TypeError("Failed to construct 'ResizeObserver': 1 argument required, but only 0 present.");if(typeof e!="function")throw new TypeError("Failed to construct 'ResizeObserver': The callback provided as parameter 1 is not a function.");on.connect(this,e)}return t.prototype.observe=function(e,n){if(arguments.length===0)throw new TypeError("Failed to execute 'observe' on 'ResizeObserver': 1 argument required, but only 0 present.");if(!Bi(e))throw new TypeError("Failed to execute 'observe' on 'ResizeObserver': parameter 1 is not of type 'Element");on.observe(this,e,n)},t.prototype.unobserve=function(e){if(arguments.length===0)throw new TypeError("Failed to execute 'unobserve' on 'ResizeObserver': 1 argument required, but only 0 present.");if(!Bi(e))throw new TypeError("Failed to execute 'unobserve' on 'ResizeObserver': parameter 1 is not of type 'Element");on.unobserve(this,e)},t.prototype.disconnect=function(){on.disconnect(this)},t.toString=function(){return"function ResizeObserver () { [polyfill code] }"},t})();const fu=globalThis.ResizeObserver||uu,ba={duration:void 0,margin:{top:0,bottom:0,left:0,right:0},padding:{top:0,bottom:0,left:0,right:0},sizing:ge.Fit,width:void 0,height:void 0,svgDefs:void 0,ariaLabel:void 0};class ze{constructor(e){this._defaultConfig=ba,this._isFirstRender=!0,this._renderAnimationFrameId=null,this._container=e;const n=Ft(this._container);n.attr("role","figure"),this.svg=n.append("svg").style("display","block").attr("xmlns","http://www.w3.org/2000/svg").attr("height",ze.DEFAULT_CONTAINER_HEIGHT).attr("aria-hidden",!0),this._svgDefs=this.svg.append("defs"),this._svgDefsExternal=this.svg.append("defs"),this.element=this.svg.node()}updateContainer(e){var n;this.prevConfig=this.config,this.config=pe(this._defaultConfig,e),e?.svgDefs!==((n=this.prevConfig)===null||n===void 0?void 0:n.svgDefs)&&(this._svgDefsExternal.selectAll("*").remove(),this._svgDefsExternal.html(e.svgDefs))}_preRender(){}_render(e){const{config:n}=this;Ft(this._container).attr("aria-label",n.ariaLabel),this._isFirstRender=!1}render(e=this.config.duration){const n=this.config.width||this.containerWidth,r=this.config.height||this.containerHeight;this.svg.attr("width",n).attr("height",r),this._resizeObserver||this._setUpResizeObserver(),cancelAnimationFrame(this._renderAnimationFrameId),this._renderAnimationFrameId=requestAnimationFrame(()=>{this._preRender(),this._render(e)})}get containerWidth(){return this.config.width?this.element.clientWidth:this._container.clientWidth||this._container.getBoundingClientRect().width}get containerHeight(){return this.config.height?this.element.clientHeight:this._container.clientHeight||this._container.getBoundingClientRect().height||ze.DEFAULT_CONTAINER_HEIGHT}get width(){return Bt(this.containerWidth-this.config.margin.left-this.config.margin.right,0,Number.POSITIVE_INFINITY)}get height(){return Bt(this.containerHeight-this.config.margin.top-this.config.margin.bottom,0,Number.POSITIVE_INFINITY)}_removeAllChildren(){for(;this.element.firstChild;)this.element.removeChild(this.element.firstChild)}_onResize(){const{config:e}=this;(e.sizing===ge.Fit||e.sizing===ge.FitWidth)&&this.render(0)}_setUpResizeObserver(){if(this._resizeObserver)return;const e=this._container.getBoundingClientRect();this._containerSize={width:e.width,height:e.height},this._resizeObserver=new fu((n,r)=>{cancelAnimationFrame(this._resizeObserverAnimationFrameId),this._resizeObserverAnimationFrameId=requestAnimationFrame(()=>{const i=this._container.getBoundingClientRect(),o={width:i.width,height:i.height};!ne(this._containerSize,o)&&o.width&&o.height&&(this._containerSize=o,this._onResize())})}),this._resizeObserver.observe(this._container)}destroy(){var e;cancelAnimationFrame(this._renderAnimationFrameId),cancelAnimationFrame(this._resizeObserverAnimationFrameId),(e=this._resizeObserver)===null||e===void 0||e.disconnect(),this.svg.remove()}}ze.DEFAULT_CONTAINER_HEIGHT=300;function du(t){if(t.sheet)return t.sheet;for(var e=0;e<document.styleSheets.length;e++)if(document.styleSheets[e].ownerNode===t)return document.styleSheets[e]}function hu(t){var e=document.createElement("style");return e.setAttribute("data-emotion",t.key),t.nonce!==void 0&&e.setAttribute("nonce",t.nonce),e.appendChild(document.createTextNode("")),e.setAttribute("data-s",""),e}var gu=(function(){function t(n){var r=this;this._insertTag=function(i){var o;r.tags.length===0?r.insertionPoint?o=r.insertionPoint.nextSibling:r.prepend?o=r.container.firstChild:o=r.before:o=r.tags[r.tags.length-1].nextSibling,r.container.insertBefore(i,o),r.tags.push(i)},this.isSpeedy=n.speedy===void 0?!0:n.speedy,this.tags=[],this.ctr=0,this.nonce=n.nonce,this.key=n.key,this.container=n.container,this.prepend=n.prepend,this.insertionPoint=n.insertionPoint,this.before=null}var e=t.prototype;return e.hydrate=function(r){r.forEach(this._insertTag)},e.insert=function(r){this.ctr%(this.isSpeedy?65e3:1)===0&&this._insertTag(hu(this));var i=this.tags[this.tags.length-1];if(this.isSpeedy){var o=du(i);try{o.insertRule(r,o.cssRules.length)}catch{}}else i.appendChild(document.createTextNode(r));this.ctr++},e.flush=function(){this.tags.forEach(function(r){var i;return(i=r.parentNode)==null?void 0:i.removeChild(r)}),this.tags=[],this.ctr=0},t})(),it="-ms-",On="-moz-",H="-webkit-",ka="comm",Jr="rule",ti="decl",pu="@import",Ca="@keyframes",mu="@layer",vu=Math.abs,Qn=String.fromCharCode,yu=Object.assign;function xu(t,e){return nt(t,0)^45?(((e<<2^nt(t,0))<<2^nt(t,1))<<2^nt(t,2))<<2^nt(t,3):0}function Sa(t){return t.trim()}function _u(t,e){return(t=e.exec(t))?t[0]:t}function W(t,e,n){return t.replace(e,n)}function $r(t,e){return t.indexOf(e)}function nt(t,e){return t.charCodeAt(e)|0}function Le(t,e,n){return t.slice(e,n)}function Tt(t){return t.length}function ei(t){return t.length}function an(t,e){return e.push(t),t}function wu(t,e){return t.map(e).join("")}var Kn=1,me=1,Ta=0,ut=0,Z=0,we="";function Jn(t,e,n,r,i,o,a){return{value:t,root:e,parent:n,type:r,props:i,children:o,line:Kn,column:me,length:a,return:""}}function Ce(t,e){return yu(Jn("",null,null,"",null,null,0),t,{length:-t.length},e)}function bu(){return Z}function ku(){return Z=ut>0?nt(we,--ut):0,me--,Z===10&&(me=1,Kn--),Z}function ht(){return Z=ut<Ta?nt(we,ut++):0,me++,Z===10&&(me=1,Kn++),Z}function Dt(){return nt(we,ut)}function gn(){return ut}function je(t,e){return Le(we,t,e)}function Pe(t){switch(t){case 0:case 9:case 10:case 13:case 32:return 5;case 33:case 43:case 44:case 47:case 62:case 64:case 126:case 59:case 123:case 125:return 4;case 58:return 3;case 34:case 39:case 40:case 91:return 2;case 41:case 93:return 1}return 0}function Ma(t){return Kn=me=1,Ta=Tt(we=t),ut=0,[]}function Da(t){return we="",t}function pn(t){return Sa(je(ut-1,Rr(t===91?t+2:t===40?t+1:t)))}function Cu(t){for(;(Z=Dt())&&Z<33;)ht();return Pe(t)>2||Pe(Z)>3?"":" "}function Su(t,e){for(;--e&&ht()&&!(Z<48||Z>102||Z>57&&Z<65||Z>70&&Z<97););return je(t,gn()+(e<6&&Dt()==32&&ht()==32))}function Rr(t){for(;ht();)switch(Z){case t:return ut;case 34:case 39:t!==34&&t!==39&&Rr(Z);break;case 40:t===41&&Rr(t);break;case 92:ht();break}return ut}function Tu(t,e){for(;ht()&&t+Z!==57;)if(t+Z===84&&Dt()===47)break;return"/*"+je(e,ut-1)+"*"+Qn(t===47?t:ht())}function Mu(t){for(;!Pe(Dt());)ht();return je(t,ut)}function Du(t){return Da(mn("",null,null,null,[""],t=Ma(t),0,[0],t))}function mn(t,e,n,r,i,o,a,s,c){for(var u=0,f=0,d=a,h=0,g=0,p=0,m=1,w=1,_=1,b=0,v="",k=i,C=o,y=r,x=v;w;)switch(p=b,b=ht()){case 40:if(p!=108&&nt(x,d-1)==58){$r(x+=W(pn(b),"&","&\f"),"&\f")!=-1&&(_=-1);break}case 34:case 39:case 91:x+=pn(b);break;case 9:case 10:case 13:case 32:x+=Cu(p);break;case 92:x+=Su(gn()-1,7);continue;case 47:switch(Dt()){case 42:case 47:an(Au(Tu(ht(),gn()),e,n),c);break;default:x+="/"}break;case 123*m:s[u++]=Tt(x)*_;case 125*m:case 59:case 0:switch(b){case 0:case 125:w=0;case 59+f:_==-1&&(x=W(x,/\f/g,"")),g>0&&Tt(x)-d&&an(g>32?Hi(x+";",r,n,d-1):Hi(W(x," ","")+";",r,n,d-2),c);break;case 59:x+=";";default:if(an(y=Ui(x,e,n,u,f,i,s,v,k=[],C=[],d),o),b===123)if(f===0)mn(x,e,y,y,k,o,d,s,C);else switch(h===99&&nt(x,3)===110?100:h){case 100:case 108:case 109:case 115:mn(t,y,y,r&&an(Ui(t,y,y,0,0,i,s,v,i,k=[],d),C),i,C,d,s,r?k:C);break;default:mn(x,y,y,y,[""],C,0,s,C)}}u=f=g=0,m=_=1,v=x="",d=a;break;case 58:d=1+Tt(x),g=p;default:if(m<1){if(b==123)--m;else if(b==125&&m++==0&&ku()==125)continue}switch(x+=Qn(b),b*m){case 38:_=f>0?1:(x+="\f",-1);break;case 44:s[u++]=(Tt(x)-1)*_,_=1;break;case 64:Dt()===45&&(x+=pn(ht())),h=Dt(),f=d=Tt(v=x+=Mu(gn())),b++;break;case 45:p===45&&Tt(x)==2&&(m=0)}}return o}function Ui(t,e,n,r,i,o,a,s,c,u,f){for(var d=i-1,h=i===0?o:[""],g=ei(h),p=0,m=0,w=0;p<r;++p)for(var _=0,b=Le(t,d+1,d=vu(m=a[p])),v=t;_<g;++_)(v=Sa(m>0?h[_]+" "+b:W(b,/&\f/g,h[_])))&&(c[w++]=v);return Jn(t,e,n,i===0?Jr:s,c,u,f)}function Au(t,e,n){return Jn(t,e,n,ka,Qn(bu()),Le(t,2,-2),0)}function Hi(t,e,n,r){return Jn(t,e,n,ti,Le(t,0,r),Le(t,r+1,-1),r)}function fe(t,e){for(var n="",r=ei(t),i=0;i<r;i++)n+=e(t[i],i,t,e)||"";return n}function Eu(t,e,n,r){switch(t.type){case mu:if(t.children.length)break;case pu:case ti:return t.return=t.return||t.value;case ka:return"";case Ca:return t.return=t.value+"{"+fe(t.children,r)+"}";case Jr:t.value=t.props.join(",")}return Tt(n=fe(t.children,r))?t.return=t.value+"{"+n+"}":""}function Nu(t){var e=ei(t);return function(n,r,i,o){for(var a="",s=0;s<e;s++)a+=t[s](n,r,i,o)||"";return a}}function $u(t){return function(e){e.root||(e=e.return)&&t(e)}}function Ru(t){var e=Object.create(null);return function(n){return e[n]===void 0&&(e[n]=t(n)),e[n]}}var Bu=function(e,n,r){for(var i=0,o=0;i=o,o=Dt(),i===38&&o===12&&(n[r]=1),!Pe(o);)ht();return je(e,ut)},Ou=function(e,n){var r=-1,i=44;do switch(Pe(i)){case 0:i===38&&Dt()===12&&(n[r]=1),e[r]+=Bu(ut-1,n,r);break;case 2:e[r]+=pn(i);break;case 4:if(i===44){e[++r]=Dt()===58?"&\f":"",n[r]=e[r].length;break}default:e[r]+=Qn(i)}while(i=ht());return e},Vu=function(e,n){return Da(Ou(Ma(e),n))},Wi=new WeakMap,Fu=function(e){if(!(e.type!=="rule"||!e.parent||e.length<1)){for(var n=e.value,r=e.parent,i=e.column===r.column&&e.line===r.line;r.type!=="rule";)if(r=r.parent,!r)return;if(!(e.props.length===1&&n.charCodeAt(0)!==58&&!Wi.get(r))&&!i){Wi.set(e,!0);for(var o=[],a=Vu(n,o),s=r.props,c=0,u=0;c<a.length;c++)for(var f=0;f<s.length;f++,u++)e.props[u]=o[c]?a[c].replace(/&\f/g,s[f]):s[f]+" "+a[c]}}},Iu=function(e){if(e.type==="decl"){var n=e.value;n.charCodeAt(0)===108&&n.charCodeAt(2)===98&&(e.return="",e.value="")}};function Aa(t,e){switch(xu(t,e)){case 5103:return H+"print-"+t+t;case 5737:case 4201:case 3177:case 3433:case 1641:case 4457:case 2921:case 5572:case 6356:case 5844:case 3191:case 6645:case 3005:case 6391:case 5879:case 5623:case 6135:case 4599:case 4855:case 4215:case 6389:case 5109:case 5365:case 5621:case 3829:return H+t+t;case 5349:case 4246:case 4810:case 6968:case 2756:return H+t+On+t+it+t+t;case 6828:case 4268:return H+t+it+t+t;case 6165:return H+t+it+"flex-"+t+t;case 5187:return H+t+W(t,/(\w+).+(:[^]+)/,H+"box-$1$2"+it+"flex-$1$2")+t;case 5443:return H+t+it+"flex-item-"+W(t,/flex-|-self/,"")+t;case 4675:return H+t+it+"flex-line-pack"+W(t,/align-content|flex-|-self/,"")+t;case 5548:return H+t+it+W(t,"shrink","negative")+t;case 5292:return H+t+it+W(t,"basis","preferred-size")+t;case 6060:return H+"box-"+W(t,"-grow","")+H+t+it+W(t,"grow","positive")+t;case 4554:return H+W(t,/([^-])(transform)/g,"$1"+H+"$2")+t;case 6187:return W(W(W(t,/(zoom-|grab)/,H+"$1"),/(image-set)/,H+"$1"),t,"")+t;case 5495:case 3959:return W(t,/(image-set\([^]*)/,H+"$1$`$1");case 4968:return W(W(t,/(.+:)(flex-)?(.*)/,H+"box-pack:$3"+it+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+H+t+t;case 4095:case 3583:case 4068:case 2532:return W(t,/(.+)-inline(.+)/,H+"$1$2")+t;case 8116:case 7059:case 5753:case 5535:case 5445:case 5701:case 4933:case 4677:case 5533:case 5789:case 5021:case 4765:if(Tt(t)-1-e>6)switch(nt(t,e+1)){case 109:if(nt(t,e+4)!==45)break;case 102:return W(t,/(.+:)(.+)-([^]+)/,"$1"+H+"$2-$3$1"+On+(nt(t,e+3)==108?"$3":"$2-$3"))+t;case 115:return~$r(t,"stretch")?Aa(W(t,"stretch","fill-available"),e)+t:t}break;case 4949:if(nt(t,e+1)!==115)break;case 6444:switch(nt(t,Tt(t)-3-(~$r(t,"!important")&&10))){case 107:return W(t,":",":"+H)+t;case 101:return W(t,/(.+:)([^;!]+)(;|!.+)?/,"$1"+H+(nt(t,14)===45?"inline-":"")+"box$3$1"+H+"$2$3$1"+it+"$2box$3")+t}break;case 5936:switch(nt(t,e+11)){case 114:return H+t+it+W(t,/[svh]\w+-[tblr]{2}/,"tb")+t;case 108:return H+t+it+W(t,/[svh]\w+-[tblr]{2}/,"tb-rl")+t;case 45:return H+t+it+W(t,/[svh]\w+-[tblr]{2}/,"lr")+t}return H+t+it+t+t}return t}var zu=function(e,n,r,i){if(e.length>-1&&!e.return)switch(e.type){case ti:e.return=Aa(e.value,e.length);break;case Ca:return fe([Ce(e,{value:W(e.value,"@","@"+H)})],i);case Jr:if(e.length)return wu(e.props,function(o){switch(_u(o,/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":return fe([Ce(e,{props:[W(o,/:(read-\w+)/,":"+On+"$1")]})],i);case"::placeholder":return fe([Ce(e,{props:[W(o,/:(plac\w+)/,":"+H+"input-$1")]}),Ce(e,{props:[W(o,/:(plac\w+)/,":"+On+"$1")]}),Ce(e,{props:[W(o,/:(plac\w+)/,it+"input-$1")]})],i)}return""})}},Lu=[zu],Pu=function(e){var n=e.key;if(n==="css"){var r=document.querySelectorAll("style[data-emotion]:not([data-s])");Array.prototype.forEach.call(r,function(m){var w=m.getAttribute("data-emotion");w.indexOf(" ")!==-1&&(document.head.appendChild(m),m.setAttribute("data-s",""))})}var i=e.stylisPlugins||Lu,o={},a,s=[];a=e.container||document.head,Array.prototype.forEach.call(document.querySelectorAll('style[data-emotion^="'+n+' "]'),function(m){for(var w=m.getAttribute("data-emotion").split(" "),_=1;_<w.length;_++)o[w[_]]=!0;s.push(m)});var c,u=[Fu,Iu];{var f,d=[Eu,$u(function(m){f.insert(m)})],h=Nu(u.concat(i,d)),g=function(w){return fe(Du(w),h)};c=function(w,_,b,v){f=b,g(w?w+"{"+_.styles+"}":_.styles),v&&(p.inserted[_.name]=!0)}}var p={key:n,sheet:new gu({key:n,container:a,nonce:e.nonce,speedy:e.speedy,prepend:e.prepend,insertionPoint:e.insertionPoint}),nonce:e.nonce,inserted:o,registered:{},insert:c};return p.sheet.hydrate(s),p};function Uu(t){for(var e=0,n,r=0,i=t.length;i>=4;++r,i-=4)n=t.charCodeAt(r)&255|(t.charCodeAt(++r)&255)<<8|(t.charCodeAt(++r)&255)<<16|(t.charCodeAt(++r)&255)<<24,n=(n&65535)*1540483477+((n>>>16)*59797<<16),n^=n>>>24,e=(n&65535)*1540483477+((n>>>16)*59797<<16)^(e&65535)*1540483477+((e>>>16)*59797<<16);switch(i){case 3:e^=(t.charCodeAt(r+2)&255)<<16;case 2:e^=(t.charCodeAt(r+1)&255)<<8;case 1:e^=t.charCodeAt(r)&255,e=(e&65535)*1540483477+((e>>>16)*59797<<16)}return e^=e>>>13,e=(e&65535)*1540483477+((e>>>16)*59797<<16),((e^e>>>15)>>>0).toString(36)}var Hu={animationIterationCount:1,aspectRatio:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,scale:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1},Wu=/[A-Z]|^ms/g,Yu=/_EMO_([^_]+?)_([^]*?)_EMO_/g,Ea=function(e){return e.charCodeAt(1)===45},Yi=function(e){return e!=null&&typeof e!="boolean"},hr=Ru(function(t){return Ea(t)?t:t.replace(Wu,"-$&").toLowerCase()}),Xi=function(e,n){switch(e){case"animation":case"animationName":if(typeof n=="string")return n.replace(Yu,function(r,i,o){return Wt={name:i,styles:o,next:Wt},i})}return Hu[e]!==1&&!Ea(e)&&typeof n=="number"&&n!==0?n+"px":n};function Vn(t,e,n){if(n==null)return"";var r=n;if(r.__emotion_styles!==void 0)return r;switch(typeof n){case"boolean":return"";case"object":{var i=n;if(i.anim===1)return Wt={name:i.name,styles:i.styles,next:Wt},i.name;var o=n;if(o.styles!==void 0){var a=o.next;if(a!==void 0)for(;a!==void 0;)Wt={name:a.name,styles:a.styles,next:Wt},a=a.next;var s=o.styles+";";return s}return Xu(t,e,n)}}var c=n;if(e==null)return c;var u=e[c];return u!==void 0?u:c}function Xu(t,e,n){var r="";if(Array.isArray(n))for(var i=0;i<n.length;i++)r+=Vn(t,e,n[i])+";";else for(var o in n){var a=n[o];if(typeof a!="object"){var s=a;e!=null&&e[s]!==void 0?r+=o+"{"+e[s]+"}":Yi(s)&&(r+=hr(o)+":"+Xi(o,s)+";")}else if(Array.isArray(a)&&typeof a[0]=="string"&&(e==null||e[a[0]]===void 0))for(var c=0;c<a.length;c++)Yi(a[c])&&(r+=hr(o)+":"+Xi(o,a[c])+";");else{var u=Vn(t,e,a);switch(o){case"animation":case"animationName":{r+=hr(o)+":"+u+";";break}default:r+=o+"{"+u+"}"}}}return r}var qi=/label:\s*([^\s;{]+)\s*(;|$)/g,Wt;function gr(t,e,n){if(t.length===1&&typeof t[0]=="object"&&t[0]!==null&&t[0].styles!==void 0)return t[0];var r=!0,i="";Wt=void 0;var o=t[0];if(o==null||o.raw===void 0)r=!1,i+=Vn(n,e,o);else{var a=o;i+=a[0]}for(var s=1;s<t.length;s++)if(i+=Vn(n,e,t[s]),r){var c=o;i+=c[s]}qi.lastIndex=0;for(var u="",f;(f=qi.exec(i))!==null;)u+="-"+f[1];var d=Uu(i)+u;return{name:d,styles:i,next:Wt}}function Na(t,e,n){var r="";return n.split(" ").forEach(function(i){t[i]!==void 0?e.push(t[i]+";"):i&&(r+=i+" ")}),r}var qu=function(e,n,r){var i=e.key+"-"+n.name;e.registered[i]===void 0&&(e.registered[i]=n.styles)},Gu=function(e,n,r){qu(e,n);var i=e.key+"-"+n.name;if(e.inserted[n.name]===void 0){var o=n;do e.insert(n===o?"."+i:"",o,e.sheet,!0),o=o.next;while(o!==void 0)}};function Gi(t,e){if(t.inserted[e.name]===void 0)return t.insert("",e,t.sheet,!0)}function ji(t,e,n){var r=[],i=Na(t,r,n);return r.length<2?n:i+e(r)}var ju=function(e){var n=Pu(e);n.sheet.speedy=function(s){this.isSpeedy=s},n.compat=!0;var r=function(){for(var c=arguments.length,u=new Array(c),f=0;f<c;f++)u[f]=arguments[f];var d=gr(u,n.registered,void 0);return Gu(n,d),n.key+"-"+d.name},i=function(){for(var c=arguments.length,u=new Array(c),f=0;f<c;f++)u[f]=arguments[f];var d=gr(u,n.registered),h="animation-"+d.name;return Gi(n,{name:d.name,styles:"@keyframes "+h+"{"+d.styles+"}"}),h},o=function(){for(var c=arguments.length,u=new Array(c),f=0;f<c;f++)u[f]=arguments[f];var d=gr(u,n.registered);Gi(n,d)},a=function(){for(var c=arguments.length,u=new Array(c),f=0;f<c;f++)u[f]=arguments[f];return ji(n.registered,r,Zu(u))};return{css:r,cx:a,injectGlobal:o,keyframes:i,hydrate:function(c){c.forEach(function(u){n.inserted[u]=!0})},flush:function(){n.registered={},n.inserted={},n.sheet.flush()},sheet:n.sheet,cache:n,getRegisteredStyles:Na.bind(null,n.registered),merge:ji.bind(null,n.registered,r)}},Zu=function t(e){for(var n="",r=0;r<e.length;r++){var i=e[r];if(i!=null){var o=void 0;switch(typeof i){case"boolean":break;case"object":{if(Array.isArray(i))o=t(i);else{o="";for(var a in i)i[a]&&a&&(o&&(o+=" "),o+=a)}break}default:o=i}o&&(n&&(n+=" "),n+=o)}}return n},$a=ju({key:"css"}),Ze=$a.injectGlobal,G=$a.css;function Qu(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}var pr,Zi;function Ku(){return Zi||(Zi=1,pr=function(e,n){n||(n=[0,""]),e=String(e);var r=parseFloat(e,10);return n[0]=r,n[1]=e.match(/[\d.\-\+]*\s*(.*)/)[1]||"",n}),pr}var mr,Qi;function Ju(){if(Qi)return mr;Qi=1;var t=Ku();mr=i;var e=r("in",document.body);function n(o,a){var s=t(getComputedStyle(o).getPropertyValue(a));return s[0]*i(s[1],o)}function r(o,a){var s=document.createElement("div");s.style.height="128"+o,a.appendChild(s);var c=n(s,"height")/128;return a.removeChild(s),c}function i(o,a){if(!o)return null;switch(a=a||document.body,o=(o+""||"px").trim().toLowerCase(),(a===window||a===document)&&(a=document.body),o){case"%":return a.clientHeight/100;case"ch":case"ex":return r(o,a);case"em":return n(a,"font-size");case"rem":return n(document.body,"font-size");case"vw":return window.innerWidth/100;case"vh":return window.innerHeight/100;case"vmin":return Math.min(window.innerWidth,window.innerHeight)/100;case"vmax":return Math.max(window.innerWidth,window.innerHeight)/100;case"in":return e;case"cm":return e/2.54;case"mm":return e/25.4;case"pt":return e/72;case"pc":return e/6;case"px":return 1}var s=t(o);if(!isNaN(s[0])&&s[1]){var c=i(s[1],a);return typeof c=="number"?s[0]*c:null}return null}return mr}Ju();function Ra(){const t=()=>Math.floor((1+crypto.getRandomValues(new Uint32Array(1))[0])*65536).toString(16).substring(1);return`${t()+t()}-${t()}-${t()}-${t()}-${t()}${t()}${t()}`}function tf(t,e){const n=t.substr(4,t.length-5);return getComputedStyle(e).getPropertyValue(n)}function ef(t,e,n=0){const[r,i,o,a]=[t.x+n,t.y+t.height-2*n,t.x+t.width-2*n,t.y+n],[s,c,u,f]=[e.x+n,e.y+e.height-2*n,e.x+e.width-2*n,e.y+n];return!(i<f||c<a||o<s||u<r)}function ni(t,e,n){t.prototype=e.prototype=n,n.constructor=t}function Ba(t,e){var n=Object.create(t.prototype);for(var r in e)n[r]=e[r];return n}function Qe(){}var Ue=.7,Fn=1/Ue,de="\\s*([+-]?\\d+)\\s*",He="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)\\s*",At="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)%\\s*",nf=/^#([0-9a-f]{3,8})$/,rf=new RegExp(`^rgb\\(${de},${de},${de}\\)$`),of=new RegExp(`^rgb\\(${At},${At},${At}\\)$`),af=new RegExp(`^rgba\\(${de},${de},${de},${He}\\)$`),sf=new RegExp(`^rgba\\(${At},${At},${At},${He}\\)$`),cf=new RegExp(`^hsl\\(${He},${At},${At}\\)$`),lf=new RegExp(`^hsla\\(${He},${At},${At},${He}\\)$`),Ki={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};ni(Qe,re,{copy(t){return Object.assign(new this.constructor,this,t)},displayable(){return this.rgb().displayable()},hex:Ji,formatHex:Ji,formatHex8:uf,formatHsl:ff,formatRgb:to,toString:to});function Ji(){return this.rgb().formatHex()}function uf(){return this.rgb().formatHex8()}function ff(){return Oa(this).formatHsl()}function to(){return this.rgb().formatRgb()}function re(t){var e,n;return t=(t+"").trim().toLowerCase(),(e=nf.exec(t))?(n=e[1].length,e=parseInt(e[1],16),n===6?eo(e):n===3?new ct(e>>8&15|e>>4&240,e>>4&15|e&240,(e&15)<<4|e&15,1):n===8?sn(e>>24&255,e>>16&255,e>>8&255,(e&255)/255):n===4?sn(e>>12&15|e>>8&240,e>>8&15|e>>4&240,e>>4&15|e&240,((e&15)<<4|e&15)/255):null):(e=rf.exec(t))?new ct(e[1],e[2],e[3],1):(e=of.exec(t))?new ct(e[1]*255/100,e[2]*255/100,e[3]*255/100,1):(e=af.exec(t))?sn(e[1],e[2],e[3],e[4]):(e=sf.exec(t))?sn(e[1]*255/100,e[2]*255/100,e[3]*255/100,e[4]):(e=cf.exec(t))?io(e[1],e[2]/100,e[3]/100,1):(e=lf.exec(t))?io(e[1],e[2]/100,e[3]/100,e[4]):Ki.hasOwnProperty(t)?eo(Ki[t]):t==="transparent"?new ct(NaN,NaN,NaN,0):null}function eo(t){return new ct(t>>16&255,t>>8&255,t&255,1)}function sn(t,e,n,r){return r<=0&&(t=e=n=NaN),new ct(t,e,n,r)}function df(t){return t instanceof Qe||(t=re(t)),t?(t=t.rgb(),new ct(t.r,t.g,t.b,t.opacity)):new ct}function Br(t,e,n,r){return arguments.length===1?df(t):new ct(t,e,n,r??1)}function ct(t,e,n,r){this.r=+t,this.g=+e,this.b=+n,this.opacity=+r}ni(ct,Br,Ba(Qe,{brighter(t){return t=t==null?Fn:Math.pow(Fn,t),new ct(this.r*t,this.g*t,this.b*t,this.opacity)},darker(t){return t=t==null?Ue:Math.pow(Ue,t),new ct(this.r*t,this.g*t,this.b*t,this.opacity)},rgb(){return this},clamp(){return new ct(te(this.r),te(this.g),te(this.b),In(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:no,formatHex:no,formatHex8:hf,formatRgb:ro,toString:ro}));function no(){return`#${Zt(this.r)}${Zt(this.g)}${Zt(this.b)}`}function hf(){return`#${Zt(this.r)}${Zt(this.g)}${Zt(this.b)}${Zt((isNaN(this.opacity)?1:this.opacity)*255)}`}function ro(){const t=In(this.opacity);return`${t===1?"rgb(":"rgba("}${te(this.r)}, ${te(this.g)}, ${te(this.b)}${t===1?")":`, ${t})`}`}function In(t){return isNaN(t)?1:Math.max(0,Math.min(1,t))}function te(t){return Math.max(0,Math.min(255,Math.round(t)||0))}function Zt(t){return t=te(t),(t<16?"0":"")+t.toString(16)}function io(t,e,n,r){return r<=0?t=e=n=NaN:n<=0||n>=1?t=e=NaN:e<=0&&(t=NaN),new _t(t,e,n,r)}function Oa(t){if(t instanceof _t)return new _t(t.h,t.s,t.l,t.opacity);if(t instanceof Qe||(t=re(t)),!t)return new _t;if(t instanceof _t)return t;t=t.rgb();var e=t.r/255,n=t.g/255,r=t.b/255,i=Math.min(e,n,r),o=Math.max(e,n,r),a=NaN,s=o-i,c=(o+i)/2;return s?(e===o?a=(n-r)/s+(n<r)*6:n===o?a=(r-e)/s+2:a=(e-n)/s+4,s/=c<.5?o+i:2-o-i,a*=60):s=c>0&&c<1?0:a,new _t(a,s,c,t.opacity)}function ri(t,e,n,r){return arguments.length===1?Oa(t):new _t(t,e,n,r??1)}function _t(t,e,n,r){this.h=+t,this.s=+e,this.l=+n,this.opacity=+r}ni(_t,ri,Ba(Qe,{brighter(t){return t=t==null?Fn:Math.pow(Fn,t),new _t(this.h,this.s,this.l*t,this.opacity)},darker(t){return t=t==null?Ue:Math.pow(Ue,t),new _t(this.h,this.s,this.l*t,this.opacity)},rgb(){var t=this.h%360+(this.h<0)*360,e=isNaN(t)||isNaN(this.s)?0:this.s,n=this.l,r=n+(n<.5?n:1-n)*e,i=2*n-r;return new ct(vr(t>=240?t-240:t+120,i,r),vr(t,i,r),vr(t<120?t+240:t-120,i,r),this.opacity)},clamp(){return new _t(oo(this.h),cn(this.s),cn(this.l),In(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(){const t=In(this.opacity);return`${t===1?"hsl(":"hsla("}${oo(this.h)}, ${cn(this.s)*100}%, ${cn(this.l)*100}%${t===1?")":`, ${t})`}`}}));function oo(t){return t=(t||0)%360,t<0?t+360:t}function cn(t){return Math.max(0,Math.min(1,t||0))}function vr(t,e,n){return(t<60?e+(n-e)*t/60:t<180?n:t<240?e+(n-e)*(240-t)/60:e)*255}const Ae=globalThis?.UNOVIS_COLORS||["#4D8CFD","#FF6B7E","#F4B83E","#A6CC74","#00C19A","#6859BE"],gf=globalThis?.UNOVIS_COLORS_DARK||["#4D8CFD","#FF6B7E","#FFC16D","#A6CC74","#00C19A","#7887E0"],Ut=t=>`--vis-${Xt(t)?`color${t%Ae.length}`:t}`;function pf(t,e=.4){const n=ri(t);return n.l=n.l*(1+e),n.formatHex()}function mf(t,e=.4,n=.6){const r=ri(t);return r.s=r.s*(1-n),r.l=r.l*(1-e),r.formatHex()}const zn=10,Or=[{id:"stripes-diagonal",svg:'<path d="M-1,1 l2,-2 M0,10 l10,-10 M9,11 l2,-2" stroke="#000"/>'},{id:"dots",svg:'<path d="m0-1.5a1 1 0 010 3m10-3a1 1 0 000 3M5 3.5a1 1 0 010 3 1 1 0 010-3M0 8.5 a1 1 0 010 3m10-3a1 1 0 000 3" fill"#000"/>'},{id:"stripes-vertical",svg:'<path d="M 5,-1 L5,11" stroke="#000"/>'},{id:"crosshatch",svg:'<path d="M0 0L10 10ZM10 0L0 10Z" stroke="#000"/>'},{id:"waves",svg:'<path d="M0 4Q2.5 1 5 4 7.5 7 10 4v2Q7.5 9 5 6 2.5 3 0 6Z" fill="#000"/>'},{id:"circles",svg:'<circle cx="5" cy="5" r="3" stroke="#000" fill="#fff"/>'}],Vr=[{id:"circle",marker:'<circle cx="5" cy="5" r="5"/>',dashArray:[]},{id:"triangle",marker:'<path d="M5,0 L10,9 L0,9Z">',dashArray:[9,1]},{id:"diamond",marker:'<path d="M 0 5 L5 0 L 10 5 L 5 10 L 0 5Z">',dashArray:[2]},{id:"arrow",marker:'<path d="M4 0 0 0 6 5 0 10 4 10 10 5Z">',dashArray:[2,3,8,3]},{id:"square",marker:'<rect x="1" y="1" width="8" height="8"/>',dashArray:[6]},{id:"star",marker:'<path d="m2 9 3-9 3 9L0 3h10Z"/>',dashArray:[1,6]}];function Ht(t){return`vis-${`pattern-${t.svg?"fill":"marker"}`}-${t.id}`}const vf=t=>`<mask id="${Ht(t)}">
2
- <pattern id="${t.id}" viewBox="0 0 10 10" width="${zn}" height="${zn}" patternUnits="userSpaceOnUse">
3
- <rect width="100%" height="100%" fill="#fff"/>
4
- ${t.svg}
5
- </pattern>
6
- <rect x="-50%" y="-50%" width="200%" height="200%" fill="url(#${t.id})"/>
7
- </mask>`,yf=(t,e)=>`<marker id="${Ht(t)}"
8
- fill="var(${Ut(e)})"
9
- markerUnits="userSpaceOnUse"
10
- refX="5"
11
- refY="5"
12
- markerWidth="${zn}"
13
- markerHeight="${zn}">
14
- ${t.marker}
15
- </marker>`;function xf(){const t=Or.map(vf).concat(Vr.map(yf)).join(""),e=document.createElementNS("http://www.w3.org/2000/svg","svg");e.setAttribute("height","100%"),e.setAttribute("width","100%"),e.style.position="fixed",e.style.zIndex="-99999999",e.innerHTML=`<defs>${t}</defs>`,document.body.appendChild(e)}typeof window<"u"&&xf();const Va=globalThis?.UNOVIS_FONT_W2H_RATIO_DEFAULT||.5,Fa=globalThis?.UNOVIS_TEXT_SEPARATOR_DEFAULT||[" ","-",".",","],Ia=globalThis?.UNOVIS_TEXT_HYPHEN_CHARACTER_DEFAULT||"-",Fe=globalThis?.UNOVIS_TEXT_DEFAULT||{text:"",fontSize:12,fontFamily:"var(--vis-font-family)",lineHeight:1.25,marginTop:0,marginBottom:0};Ze`
16
- :root {
17
- label: vis-root-styles;
18
- --vis-font-family: Inter, Arial, "Helvetica Neue", Helvetica, sans-serif;
19
- --vis-font-wh-ratio: ${Va};
20
- --vis-color-main: var(${Ut(0)});
21
- --vis-color-main-light: ${pf(Ae[0])};
22
- --vis-color-main-dark: ${mf(Ae[0])};
23
- --vis-color-grey: #2a2a2a;
24
- ${Ae.map((t,e)=>`${Ut(e)}: ${t};`)}
25
- ${gf.map((t,e)=>`--vis-dark-color${e}: ${t};`)}
26
- ${Or.map((t,e)=>`
27
- --${Ht(t)}: url(#${Ht(t)});
28
- --vis-pattern-fill${e}: var(--${Ht(t)});
29
- `)}
30
- ${Vr.map((t,e)=>{var n;return`
31
- --${Ht(t)}: url(#${Ht(t)});
32
- --vis-pattern-marker${e}: var(--${Ht(t)});
33
- --vis-pattern-dasharray${e}: ${(n=t.dashArray)===null||n===void 0?void 0:n.join(" ")};
34
- `})}
35
-
36
- body.theme-dark {
37
- ${Ae.map((t,e)=>`${Ut(e)}: var(--vis-dark-color${e});`)}
38
- }
39
-
40
- body.theme-patterns {
41
- ${Or.map((t,e)=>`path[style*="fill: var(${Ut(e)})"] {
42
- mask: var(--vis-pattern-fill${e});
43
- }`)}
44
- ${Vr.map((t,e)=>`
45
- path[stroke="var(${Ut(e)})"]:not([style*="fill"]),
46
- path[style*="stroke: var(${Ut(e)})"]:not([style*="fill"]) {
47
- marker: var(--vis-pattern-marker${e});
48
- stroke-dasharray: var(--vis-pattern-dasharray${e});
49
- }
50
- `)}
51
- }
52
- `;function za(t=window?.document.body){return t?+tf("var(--vis-font-wh-ratio)",t):Va}var _f={value:()=>{}};function La(){for(var t=0,e=arguments.length,n={},r;t<e;++t){if(!(r=arguments[t]+"")||r in n||/[\s.]/.test(r))throw new Error("illegal type: "+r);n[r]=[]}return new vn(n)}function vn(t){this._=t}function wf(t,e){return t.trim().split(/^|\s+/).map(function(n){var r="",i=n.indexOf(".");if(i>=0&&(r=n.slice(i+1),n=n.slice(0,i)),n&&!e.hasOwnProperty(n))throw new Error("unknown type: "+n);return{type:n,name:r}})}vn.prototype=La.prototype={constructor:vn,on:function(t,e){var n=this._,r=wf(t+"",n),i,o=-1,a=r.length;if(arguments.length<2){for(;++o<a;)if((i=(t=r[o]).type)&&(i=bf(n[i],t.name)))return i;return}if(e!=null&&typeof e!="function")throw new Error("invalid callback: "+e);for(;++o<a;)if(i=(t=r[o]).type)n[i]=ao(n[i],t.name,e);else if(e==null)for(i in n)n[i]=ao(n[i],t.name,null);return this},copy:function(){var t={},e=this._;for(var n in e)t[n]=e[n].slice();return new vn(t)},call:function(t,e){if((i=arguments.length-2)>0)for(var n=new Array(i),r=0,i,o;r<i;++r)n[r]=arguments[r+2];if(!this._.hasOwnProperty(t))throw new Error("unknown type: "+t);for(o=this._[t],r=0,i=o.length;r<i;++r)o[r].value.apply(e,n)},apply:function(t,e,n){if(!this._.hasOwnProperty(t))throw new Error("unknown type: "+t);for(var r=this._[t],i=0,o=r.length;i<o;++i)r[i].value.apply(e,n)}};function bf(t,e){for(var n=0,r=t.length,i;n<r;++n)if((i=t[n]).name===e)return i.value}function ao(t,e,n){for(var r=0,i=t.length;r<i;++r)if(t[r].name===e){t[r]=_f,t=t.slice(0,r).concat(t.slice(r+1));break}return n!=null&&t.push({name:e,value:n}),t}var ve=0,Ee=0,Se=0,Pa=1e3,Ln,Ne,Pn=0,ie=0,tr=0,We=typeof performance=="object"&&performance.now?performance:Date,Ua=typeof window=="object"&&window.requestAnimationFrame?window.requestAnimationFrame.bind(window):function(t){setTimeout(t,17)};function ii(){return ie||(Ua(kf),ie=We.now()+tr)}function kf(){ie=0}function Un(){this._call=this._time=this._next=null}Un.prototype=Ha.prototype={constructor:Un,restart:function(t,e,n){if(typeof t!="function")throw new TypeError("callback is not a function");n=(n==null?ii():+n)+(e==null?0:+e),!this._next&&Ne!==this&&(Ne?Ne._next=this:Ln=this,Ne=this),this._call=t,this._time=n,Fr()},stop:function(){this._call&&(this._call=null,this._time=1/0,Fr())}};function Ha(t,e,n){var r=new Un;return r.restart(t,e,n),r}function Cf(){ii(),++ve;for(var t=Ln,e;t;)(e=ie-t._time)>=0&&t._call.call(void 0,e),t=t._next;--ve}function so(){ie=(Pn=We.now())+tr,ve=Ee=0;try{Cf()}finally{ve=0,Tf(),ie=0}}function Sf(){var t=We.now(),e=t-Pn;e>Pa&&(tr-=e,Pn=t)}function Tf(){for(var t,e=Ln,n,r=1/0;e;)e._call?(r>e._time&&(r=e._time),t=e,e=e._next):(n=e._next,e._next=null,e=t?t._next=n:Ln=n);Ne=t,Fr(r)}function Fr(t){if(!ve){Ee&&(Ee=clearTimeout(Ee));var e=t-ie;e>24?(t<1/0&&(Ee=setTimeout(so,t-We.now()-tr)),Se&&(Se=clearInterval(Se))):(Se||(Pn=We.now(),Se=setInterval(Sf,Pa)),ve=1,Ua(so))}}function co(t,e,n){var r=new Un;return e=e==null?0:+e,r.restart(i=>{r.stop(),t(i+e)},e,n),r}var Mf=La("start","end","cancel","interrupt"),Df=[],Wa=0,lo=1,Ir=2,yn=3,uo=4,zr=5,xn=6;function er(t,e,n,r,i,o){var a=t.__transition;if(!a)t.__transition={};else if(n in a)return;Af(t,n,{name:e,index:r,group:i,on:Mf,tween:Df,time:o.time,delay:o.delay,duration:o.duration,ease:o.ease,timer:null,state:Wa})}function oi(t,e){var n=bt(t,e);if(n.state>Wa)throw new Error("too late; already scheduled");return n}function Et(t,e){var n=bt(t,e);if(n.state>yn)throw new Error("too late; already running");return n}function bt(t,e){var n=t.__transition;if(!n||!(n=n[e]))throw new Error("transition not found");return n}function Af(t,e,n){var r=t.__transition,i;r[e]=n,n.timer=Ha(o,0,n.time);function o(u){n.state=lo,n.timer.restart(a,n.delay,n.time),n.delay<=u&&a(u-n.delay)}function a(u){var f,d,h,g;if(n.state!==lo)return c();for(f in r)if(g=r[f],g.name===n.name){if(g.state===yn)return co(a);g.state===uo?(g.state=xn,g.timer.stop(),g.on.call("interrupt",t,t.__data__,g.index,g.group),delete r[f]):+f<e&&(g.state=xn,g.timer.stop(),g.on.call("cancel",t,t.__data__,g.index,g.group),delete r[f])}if(co(function(){n.state===yn&&(n.state=uo,n.timer.restart(s,n.delay,n.time),s(u))}),n.state=Ir,n.on.call("start",t,t.__data__,n.index,n.group),n.state===Ir){for(n.state=yn,i=new Array(h=n.tween.length),f=0,d=-1;f<h;++f)(g=n.tween[f].value.call(t,t.__data__,n.index,n.group))&&(i[++d]=g);i.length=d+1}}function s(u){for(var f=u<n.duration?n.ease.call(null,u/n.duration):(n.timer.restart(c),n.state=zr,1),d=-1,h=i.length;++d<h;)i[d].call(t,f);n.state===zr&&(n.on.call("end",t,t.__data__,n.index,n.group),c())}function c(){n.state=xn,n.timer.stop(),delete r[e];for(var u in r)return;delete t.__transition}}function ai(t,e){var n=t.__transition,r,i,o=!0,a;if(n){e=e==null?null:e+"";for(a in n){if((r=n[a]).name!==e){o=!1;continue}i=r.state>Ir&&r.state<zr,r.state=xn,r.timer.stop(),r.on.call(i?"interrupt":"cancel",t,t.__data__,r.index,r.group),delete n[a]}o&&delete t.__transition}}function Ef(t){return this.each(function(){ai(this,t)})}const si=t=>()=>t;function Nf(t,e){return function(n){return t+n*e}}function $f(t,e,n){return t=Math.pow(t,n),e=Math.pow(e,n)-t,n=1/n,function(r){return Math.pow(t+r*e,n)}}function Rf(t){return(t=+t)==1?Ya:function(e,n){return n-e?$f(e,n,t):si(isNaN(e)?n:e)}}function Ya(t,e){var n=e-t;return n?Nf(t,n):si(isNaN(t)?e:t)}const Hn=(function t(e){var n=Rf(e);function r(i,o){var a=n((i=Br(i)).r,(o=Br(o)).r),s=n(i.g,o.g),c=n(i.b,o.b),u=Ya(i.opacity,o.opacity);return function(f){return i.r=a(f),i.g=s(f),i.b=c(f),i.opacity=u(f),i+""}}return r.gamma=t,r})(1);function Bf(t,e){e||(e=[]);var n=t?Math.min(e.length,t.length):0,r=e.slice(),i;return function(o){for(i=0;i<n;++i)r[i]=t[i]*(1-o)+e[i]*o;return r}}function Of(t){return ArrayBuffer.isView(t)&&!(t instanceof DataView)}function Vf(t,e){var n=e?e.length:0,r=t?Math.min(n,t.length):0,i=new Array(r),o=new Array(n),a;for(a=0;a<r;++a)i[a]=be(t[a],e[a]);for(;a<n;++a)o[a]=e[a];return function(s){for(a=0;a<r;++a)o[a]=i[a](s);return o}}function Ff(t,e){var n=new Date;return t=+t,e=+e,function(r){return n.setTime(t*(1-r)+e*r),n}}function xt(t,e){return t=+t,e=+e,function(n){return t*(1-n)+e*n}}function If(t,e){var n={},r={},i;(t===null||typeof t!="object")&&(t={}),(e===null||typeof e!="object")&&(e={});for(i in e)i in t?n[i]=be(t[i],e[i]):r[i]=e[i];return function(o){for(i in n)r[i]=n[i](o);return r}}var Lr=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,yr=new RegExp(Lr.source,"g");function zf(t){return function(){return t}}function Lf(t){return function(e){return t(e)+""}}function Xa(t,e){var n=Lr.lastIndex=yr.lastIndex=0,r,i,o,a=-1,s=[],c=[];for(t=t+"",e=e+"";(r=Lr.exec(t))&&(i=yr.exec(e));)(o=i.index)>n&&(o=e.slice(n,o),s[a]?s[a]+=o:s[++a]=o),(r=r[0])===(i=i[0])?s[a]?s[a]+=i:s[++a]=i:(s[++a]=null,c.push({i:a,x:xt(r,i)})),n=yr.lastIndex;return n<e.length&&(o=e.slice(n),s[a]?s[a]+=o:s[++a]=o),s.length<2?c[0]?Lf(c[0].x):zf(e):(e=c.length,function(u){for(var f=0,d;f<e;++f)s[(d=c[f]).i]=d.x(u);return s.join("")})}function be(t,e){var n=typeof e,r;return e==null||n==="boolean"?si(e):(n==="number"?xt:n==="string"?(r=re(e))?(e=r,Hn):Xa:e instanceof re?Hn:e instanceof Date?Ff:Of(e)?Bf:Array.isArray(e)?Vf:typeof e.valueOf!="function"&&typeof e.toString!="function"||isNaN(e)?If:xt)(t,e)}function ci(t,e){return t=+t,e=+e,function(n){return Math.round(t*(1-n)+e*n)}}var fo=180/Math.PI,Pr={translateX:0,translateY:0,rotate:0,skewX:0,scaleX:1,scaleY:1};function qa(t,e,n,r,i,o){var a,s,c;return(a=Math.sqrt(t*t+e*e))&&(t/=a,e/=a),(c=t*n+e*r)&&(n-=t*c,r-=e*c),(s=Math.sqrt(n*n+r*r))&&(n/=s,r/=s,c/=s),t*r<e*n&&(t=-t,e=-e,c=-c,a=-a),{translateX:i,translateY:o,rotate:Math.atan2(e,t)*fo,skewX:Math.atan(c)*fo,scaleX:a,scaleY:s}}var ln;function Pf(t){const e=new(typeof DOMMatrix=="function"?DOMMatrix:WebKitCSSMatrix)(t+"");return e.isIdentity?Pr:qa(e.a,e.b,e.c,e.d,e.e,e.f)}function Uf(t){return t==null||(ln||(ln=document.createElementNS("http://www.w3.org/2000/svg","g")),ln.setAttribute("transform",t),!(t=ln.transform.baseVal.consolidate()))?Pr:(t=t.matrix,qa(t.a,t.b,t.c,t.d,t.e,t.f))}function Ga(t,e,n,r){function i(u){return u.length?u.pop()+" ":""}function o(u,f,d,h,g,p){if(u!==d||f!==h){var m=g.push("translate(",null,e,null,n);p.push({i:m-4,x:xt(u,d)},{i:m-2,x:xt(f,h)})}else(d||h)&&g.push("translate("+d+e+h+n)}function a(u,f,d,h){u!==f?(u-f>180?f+=360:f-u>180&&(u+=360),h.push({i:d.push(i(d)+"rotate(",null,r)-2,x:xt(u,f)})):f&&d.push(i(d)+"rotate("+f+r)}function s(u,f,d,h){u!==f?h.push({i:d.push(i(d)+"skewX(",null,r)-2,x:xt(u,f)}):f&&d.push(i(d)+"skewX("+f+r)}function c(u,f,d,h,g,p){if(u!==d||f!==h){var m=g.push(i(g)+"scale(",null,",",null,")");p.push({i:m-4,x:xt(u,d)},{i:m-2,x:xt(f,h)})}else(d!==1||h!==1)&&g.push(i(g)+"scale("+d+","+h+")")}return function(u,f){var d=[],h=[];return u=t(u),f=t(f),o(u.translateX,u.translateY,f.translateX,f.translateY,d,h),a(u.rotate,f.rotate,d,h),s(u.skewX,f.skewX,d,h),c(u.scaleX,u.scaleY,f.scaleX,f.scaleY,d,h),u=f=null,function(g){for(var p=-1,m=h.length,w;++p<m;)d[(w=h[p]).i]=w.x(g);return d.join("")}}}var Hf=Ga(Pf,"px, ","px)","deg)"),Wf=Ga(Uf,", ",")",")");function Yf(t,e){e===void 0&&(e=t,t=be);for(var n=0,r=e.length-1,i=e[0],o=new Array(r<0?0:r);n<r;)o[n]=t(i,i=e[++n]);return function(a){var s=Math.max(0,Math.min(r-1,Math.floor(a*=r)));return o[s](a-s)}}function Xf(t,e){var n,r;return function(){var i=Et(this,t),o=i.tween;if(o!==n){r=n=o;for(var a=0,s=r.length;a<s;++a)if(r[a].name===e){r=r.slice(),r.splice(a,1);break}}i.tween=r}}function qf(t,e,n){var r,i;if(typeof n!="function")throw new Error;return function(){var o=Et(this,t),a=o.tween;if(a!==r){i=(r=a).slice();for(var s={name:e,value:n},c=0,u=i.length;c<u;++c)if(i[c].name===e){i[c]=s;break}c===u&&i.push(s)}o.tween=i}}function Gf(t,e){var n=this._id;if(t+="",arguments.length<2){for(var r=bt(this.node(),n).tween,i=0,o=r.length,a;i<o;++i)if((a=r[i]).name===t)return a.value;return null}return this.each((e==null?Xf:qf)(n,t,e))}function li(t,e,n){var r=t._id;return t.each(function(){var i=Et(this,r);(i.value||(i.value={}))[e]=n.apply(this,arguments)}),function(i){return bt(i,r).value[e]}}function ja(t,e){var n;return(typeof e=="number"?xt:e instanceof re?Hn:(n=re(e))?(e=n,Hn):Xa)(t,e)}function jf(t){return function(){this.removeAttribute(t)}}function Zf(t){return function(){this.removeAttributeNS(t.space,t.local)}}function Qf(t,e,n){var r,i=n+"",o;return function(){var a=this.getAttribute(t);return a===i?null:a===r?o:o=e(r=a,n)}}function Kf(t,e,n){var r,i=n+"",o;return function(){var a=this.getAttributeNS(t.space,t.local);return a===i?null:a===r?o:o=e(r=a,n)}}function Jf(t,e,n){var r,i,o;return function(){var a,s=n(this),c;return s==null?void this.removeAttribute(t):(a=this.getAttribute(t),c=s+"",a===c?null:a===r&&c===i?o:(i=c,o=e(r=a,s)))}}function td(t,e,n){var r,i,o;return function(){var a,s=n(this),c;return s==null?void this.removeAttributeNS(t.space,t.local):(a=this.getAttributeNS(t.space,t.local),c=s+"",a===c?null:a===r&&c===i?o:(i=c,o=e(r=a,s)))}}function ed(t,e){var n=Zn(t),r=n==="transform"?Wf:ja;return this.attrTween(t,typeof e=="function"?(n.local?td:Jf)(n,r,li(this,"attr."+t,e)):e==null?(n.local?Zf:jf)(n):(n.local?Kf:Qf)(n,r,e))}function nd(t,e){return function(n){this.setAttribute(t,e.call(this,n))}}function rd(t,e){return function(n){this.setAttributeNS(t.space,t.local,e.call(this,n))}}function id(t,e){var n,r;function i(){var o=e.apply(this,arguments);return o!==r&&(n=(r=o)&&rd(t,o)),n}return i._value=e,i}function od(t,e){var n,r;function i(){var o=e.apply(this,arguments);return o!==r&&(n=(r=o)&&nd(t,o)),n}return i._value=e,i}function ad(t,e){var n="attr."+t;if(arguments.length<2)return(n=this.tween(n))&&n._value;if(e==null)return this.tween(n,null);if(typeof e!="function")throw new Error;var r=Zn(t);return this.tween(n,(r.local?id:od)(r,e))}function sd(t,e){return function(){oi(this,t).delay=+e.apply(this,arguments)}}function cd(t,e){return e=+e,function(){oi(this,t).delay=e}}function ld(t){var e=this._id;return arguments.length?this.each((typeof t=="function"?sd:cd)(e,t)):bt(this.node(),e).delay}function ud(t,e){return function(){Et(this,t).duration=+e.apply(this,arguments)}}function fd(t,e){return e=+e,function(){Et(this,t).duration=e}}function dd(t){var e=this._id;return arguments.length?this.each((typeof t=="function"?ud:fd)(e,t)):bt(this.node(),e).duration}function hd(t,e){if(typeof e!="function")throw new Error;return function(){Et(this,t).ease=e}}function gd(t){var e=this._id;return arguments.length?this.each(hd(e,t)):bt(this.node(),e).ease}function pd(t,e){return function(){var n=e.apply(this,arguments);if(typeof n!="function")throw new Error;Et(this,t).ease=n}}function md(t){if(typeof t!="function")throw new Error;return this.each(pd(this._id,t))}function vd(t){typeof t!="function"&&(t=ta(t));for(var e=this._groups,n=e.length,r=new Array(n),i=0;i<n;++i)for(var o=e[i],a=o.length,s=r[i]=[],c,u=0;u<a;++u)(c=o[u])&&t.call(c,c.__data__,u,o)&&s.push(c);return new It(r,this._parents,this._name,this._id)}function yd(t){if(t._id!==this._id)throw new Error;for(var e=this._groups,n=t._groups,r=e.length,i=n.length,o=Math.min(r,i),a=new Array(r),s=0;s<o;++s)for(var c=e[s],u=n[s],f=c.length,d=a[s]=new Array(f),h,g=0;g<f;++g)(h=c[g]||u[g])&&(d[g]=h);for(;s<r;++s)a[s]=e[s];return new It(a,this._parents,this._name,this._id)}function xd(t){return(t+"").trim().split(/^|\s+/).every(function(e){var n=e.indexOf(".");return n>=0&&(e=e.slice(0,n)),!e||e==="start"})}function _d(t,e,n){var r,i,o=xd(e)?oi:Et;return function(){var a=o(this,t),s=a.on;s!==r&&(i=(r=s).copy()).on(e,n),a.on=i}}function wd(t,e){var n=this._id;return arguments.length<2?bt(this.node(),n).on.on(t):this.each(_d(n,t,e))}function bd(t){return function(){var e=this.parentNode;for(var n in this.__transition)if(+n!==t)return;e&&e.removeChild(this)}}function kd(){return this.on("end.remove",bd(this._id))}function Cd(t){var e=this._name,n=this._id;typeof t!="function"&&(t=Gr(t));for(var r=this._groups,i=r.length,o=new Array(i),a=0;a<i;++a)for(var s=r[a],c=s.length,u=o[a]=new Array(c),f,d,h=0;h<c;++h)(f=s[h])&&(d=t.call(f,f.__data__,h,s))&&("__data__"in f&&(d.__data__=f.__data__),u[h]=d,er(u[h],e,n,h,u,bt(f,n)));return new It(o,this._parents,e,n)}function Sd(t){var e=this._name,n=this._id;typeof t!="function"&&(t=Jo(t));for(var r=this._groups,i=r.length,o=[],a=[],s=0;s<i;++s)for(var c=r[s],u=c.length,f,d=0;d<u;++d)if(f=c[d]){for(var h=t.call(f,f.__data__,d,c),g,p=bt(f,n),m=0,w=h.length;m<w;++m)(g=h[m])&&er(g,e,n,m,h,p);o.push(h),a.push(f)}return new It(o,a,e,n)}var Td=Xe.prototype.constructor;function Md(){return new Td(this._groups,this._parents)}function Dd(t,e){var n,r,i;return function(){var o=he(this,t),a=(this.style.removeProperty(t),he(this,t));return o===a?null:o===n&&a===r?i:i=e(n=o,r=a)}}function Za(t){return function(){this.style.removeProperty(t)}}function Ad(t,e,n){var r,i=n+"",o;return function(){var a=he(this,t);return a===i?null:a===r?o:o=e(r=a,n)}}function Ed(t,e,n){var r,i,o;return function(){var a=he(this,t),s=n(this),c=s+"";return s==null&&(c=s=(this.style.removeProperty(t),he(this,t))),a===c?null:a===r&&c===i?o:(i=c,o=e(r=a,s))}}function Nd(t,e){var n,r,i,o="style."+e,a="end."+o,s;return function(){var c=Et(this,t),u=c.on,f=c.value[o]==null?s||(s=Za(e)):void 0;(u!==n||i!==f)&&(r=(n=u).copy()).on(a,i=f),c.on=r}}function $d(t,e,n){var r=(t+="")=="transform"?Hf:ja;return e==null?this.styleTween(t,Dd(t,r)).on("end.style."+t,Za(t)):typeof e=="function"?this.styleTween(t,Ed(t,r,li(this,"style."+t,e))).each(Nd(this._id,t)):this.styleTween(t,Ad(t,r,e),n).on("end.style."+t,null)}function Rd(t,e,n){return function(r){this.style.setProperty(t,e.call(this,r),n)}}function Bd(t,e,n){var r,i;function o(){var a=e.apply(this,arguments);return a!==i&&(r=(i=a)&&Rd(t,a,n)),r}return o._value=e,o}function Od(t,e,n){var r="style."+(t+="");if(arguments.length<2)return(r=this.tween(r))&&r._value;if(e==null)return this.tween(r,null);if(typeof e!="function")throw new Error;return this.tween(r,Bd(t,e,n??""))}function Vd(t){return function(){this.textContent=t}}function Fd(t){return function(){var e=t(this);this.textContent=e??""}}function Id(t){return this.tween("text",typeof t=="function"?Fd(li(this,"text",t)):Vd(t==null?"":t+""))}function zd(t){return function(e){this.textContent=t.call(this,e)}}function Ld(t){var e,n;function r(){var i=t.apply(this,arguments);return i!==n&&(e=(n=i)&&zd(i)),e}return r._value=t,r}function Pd(t){var e="text";if(arguments.length<1)return(e=this.tween(e))&&e._value;if(t==null)return this.tween(e,null);if(typeof t!="function")throw new Error;return this.tween(e,Ld(t))}function Ud(){for(var t=this._name,e=this._id,n=Qa(),r=this._groups,i=r.length,o=0;o<i;++o)for(var a=r[o],s=a.length,c,u=0;u<s;++u)if(c=a[u]){var f=bt(c,e);er(c,t,n,u,a,{time:f.time+f.delay+f.duration,delay:0,duration:f.duration,ease:f.ease})}return new It(r,this._parents,t,n)}function Hd(){var t,e,n=this,r=n._id,i=n.size();return new Promise(function(o,a){var s={value:a},c={value:function(){--i===0&&o()}};n.each(function(){var u=Et(this,r),f=u.on;f!==t&&(e=(t=f).copy(),e._.cancel.push(s),e._.interrupt.push(s),e._.end.push(c)),u.on=e}),i===0&&o()})}var Wd=0;function It(t,e,n,r){this._groups=t,this._parents=e,this._name=n,this._id=r}function Qa(){return++Wd}var Nt=Xe.prototype;It.prototype={constructor:It,select:Cd,selectAll:Sd,selectChild:Nt.selectChild,selectChildren:Nt.selectChildren,filter:vd,merge:yd,selection:Md,transition:Ud,call:Nt.call,nodes:Nt.nodes,node:Nt.node,size:Nt.size,empty:Nt.empty,each:Nt.each,on:wd,attr:ed,attrTween:ad,style:$d,styleTween:Od,text:Id,textTween:Pd,remove:kd,tween:Gf,delay:ld,duration:dd,ease:gd,easeVarying:md,end:Hd,[Symbol.iterator]:Nt[Symbol.iterator]};const ho=t=>+t;function Yd(t){return((t*=2)<=1?t*t*t:(t-=2)*t*t+2)/2}var Xd={time:null,delay:0,duration:250,ease:Yd};function qd(t,e){for(var n;!(n=t.__transition)||!(n=n[e]);)if(!(t=t.parentNode))throw new Error(`transition ${e} not found`);return n}function Gd(t){var e,n;t instanceof It?(e=t._id,t=t._name):(e=Qa(),(n=Xd).time=ii(),t=t==null?null:t+"");for(var r=this._groups,i=r.length,o=0;o<i;++o)for(var a=r[o],s=a.length,c,u=0;u<s;++u)(c=a[u])&&er(c,t,e,u,a,n||qd(c,e));return new It(r,this._parents,t,e)}Xe.prototype.interrupt=Ef;Xe.prototype.transition=Gd;function mt(t,e,n){if(t.nodes().forEach(r=>ai(r)),e){const r=t.transition().duration(e);return n&&r.ease(n),r}else return t}class ui{constructor(e){this.data=e}get data(){return this._data}set data(e){this._data=e}}var L;(function(t){t.X="x",t.Y="y"})(L||(L={}));function kt(t,e){switch(arguments.length){case 0:break;case 1:this.range(t);break;default:this.range(e).domain(t);break}return this}function Ka(t,e){switch(arguments.length){case 0:break;case 1:{typeof t=="function"?this.interpolator(t):this.range(t);break}default:{this.domain(t),typeof e=="function"?this.interpolator(e):this.range(e);break}}return this}const go=Symbol("implicit");function fi(){var t=new Ei,e=[],n=[],r=go;function i(o){let a=t.get(o);if(a===void 0){if(r!==go)return r;t.set(o,a=e.push(o)-1)}return n[a%n.length]}return i.domain=function(o){if(!arguments.length)return e.slice();e=[],t=new Ei;for(const a of o)t.has(a)||t.set(a,e.push(a)-1);return i},i.range=function(o){return arguments.length?(n=Array.from(o),i):n.slice()},i.unknown=function(o){return arguments.length?(r=o,i):r},i.copy=function(){return fi(e,n).unknown(r)},kt.apply(i,arguments),i}function nr(){var t=fi().unknown(void 0),e=t.domain,n=t.range,r=0,i=1,o,a,s=!1,c=0,u=0,f=.5;delete t.unknown;function d(){var h=e().length,g=i<r,p=g?i:r,m=g?r:i;o=(m-p)/Math.max(1,h-c+u*2),s&&(o=Math.floor(o)),p+=(m-p-o*(h-c))*f,a=o*(1-c),s&&(p=Math.round(p),a=Math.round(a));var w=da(h).map(function(_){return p+o*_});return n(g?w.reverse():w)}return t.domain=function(h){return arguments.length?(e(h),d()):e()},t.range=function(h){return arguments.length?([r,i]=h,r=+r,i=+i,d()):[r,i]},t.rangeRound=function(h){return[r,i]=h,r=+r,i=+i,s=!0,d()},t.bandwidth=function(){return a},t.step=function(){return o},t.round=function(h){return arguments.length?(s=!!h,d()):s},t.padding=function(h){return arguments.length?(c=Math.min(1,u=+h),d()):c},t.paddingInner=function(h){return arguments.length?(c=Math.min(1,h),d()):c},t.paddingOuter=function(h){return arguments.length?(u=+h,d()):u},t.align=function(h){return arguments.length?(f=Math.max(0,Math.min(1,h)),d()):f},t.copy=function(){return nr(e(),[r,i]).round(s).paddingInner(c).paddingOuter(u).align(f)},kt.apply(d(),arguments)}function Ja(t){var e=t.copy;return t.padding=t.paddingOuter,delete t.paddingInner,delete t.paddingOuter,t.copy=function(){return Ja(e())},t}function jd(){return Ja(nr.apply(null,arguments).paddingInner(1))}function Zd(t){return function(){return t}}function Ur(t){return+t}var po=[0,1];function lt(t){return t}function Hr(t,e){return(e-=t=+t)?function(n){return(n-t)/e}:Zd(isNaN(e)?NaN:.5)}function Qd(t,e){var n;return t>e&&(n=t,t=e,e=n),function(r){return Math.max(t,Math.min(e,r))}}function Kd(t,e,n){var r=t[0],i=t[1],o=e[0],a=e[1];return i<r?(r=Hr(i,r),o=n(a,o)):(r=Hr(r,i),o=n(o,a)),function(s){return o(r(s))}}function Jd(t,e,n){var r=Math.min(t.length,e.length)-1,i=new Array(r),o=new Array(r),a=-1;for(t[r]<t[0]&&(t=t.slice().reverse(),e=e.slice().reverse());++a<r;)i[a]=Hr(t[a],t[a+1]),o[a]=n(e[a],e[a+1]);return function(s){var c=qe(t,s,1,r)-1;return o[c](i[c](s))}}function Ke(t,e){return e.domain(t.domain()).range(t.range()).interpolate(t.interpolate()).clamp(t.clamp()).unknown(t.unknown())}function rr(){var t=po,e=po,n=be,r,i,o,a=lt,s,c,u;function f(){var h=Math.min(t.length,e.length);return a!==lt&&(a=Qd(t[0],t[h-1])),s=h>2?Jd:Kd,c=u=null,d}function d(h){return h==null||isNaN(h=+h)?o:(c||(c=s(t.map(r),e,n)))(r(a(h)))}return d.invert=function(h){return a(i((u||(u=s(e,t.map(r),xt)))(h)))},d.domain=function(h){return arguments.length?(t=Array.from(h,Ur),f()):t.slice()},d.range=function(h){return arguments.length?(e=Array.from(h),f()):e.slice()},d.rangeRound=function(h){return e=Array.from(h),n=ci,f()},d.clamp=function(h){return arguments.length?(a=h?!0:lt,f()):a!==lt},d.interpolate=function(h){return arguments.length?(n=h,f()):n},d.unknown=function(h){return arguments.length?(o=h,d):o},function(h,g){return r=h,i=g,f()}}function ts(){return rr()(lt,lt)}function th(t){return Math.abs(t=Math.round(t))>=1e21?t.toLocaleString("en").replace(/,/g,""):t.toString(10)}function Wn(t,e){if(!isFinite(t)||t===0)return null;var n=(t=e?t.toExponential(e-1):t.toExponential()).indexOf("e"),r=t.slice(0,n);return[r.length>1?r[0]+r.slice(2):r,+t.slice(n+1)]}function ye(t){return t=Wn(Math.abs(t)),t?t[1]:NaN}function eh(t,e){return function(n,r){for(var i=n.length,o=[],a=0,s=t[0],c=0;i>0&&s>0&&(c+s+1>r&&(s=Math.max(1,r-c)),o.push(n.substring(i-=s,i+s)),!((c+=s+1)>r));)s=t[a=(a+1)%t.length];return o.reverse().join(e)}}function nh(t){return function(e){return e.replace(/[0-9]/g,function(n){return t[+n]})}}var rh=/^(?:(.)?([<>=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i;function Ye(t){if(!(e=rh.exec(t)))throw new Error("invalid format: "+t);var e;return new di({fill:e[1],align:e[2],sign:e[3],symbol:e[4],zero:e[5],width:e[6],comma:e[7],precision:e[8]&&e[8].slice(1),trim:e[9],type:e[10]})}Ye.prototype=di.prototype;function di(t){this.fill=t.fill===void 0?" ":t.fill+"",this.align=t.align===void 0?">":t.align+"",this.sign=t.sign===void 0?"-":t.sign+"",this.symbol=t.symbol===void 0?"":t.symbol+"",this.zero=!!t.zero,this.width=t.width===void 0?void 0:+t.width,this.comma=!!t.comma,this.precision=t.precision===void 0?void 0:+t.precision,this.trim=!!t.trim,this.type=t.type===void 0?"":t.type+""}di.prototype.toString=function(){return this.fill+this.align+this.sign+this.symbol+(this.zero?"0":"")+(this.width===void 0?"":Math.max(1,this.width|0))+(this.comma?",":"")+(this.precision===void 0?"":"."+Math.max(0,this.precision|0))+(this.trim?"~":"")+this.type};function ih(t){t:for(var e=t.length,n=1,r=-1,i;n<e;++n)switch(t[n]){case".":r=i=n;break;case"0":r===0&&(r=n),i=n;break;default:if(!+t[n])break t;r>0&&(r=0);break}return r>0?t.slice(0,r)+t.slice(i+1):t}var Yn;function oh(t,e){var n=Wn(t,e);if(!n)return Yn=void 0,t.toPrecision(e);var r=n[0],i=n[1],o=i-(Yn=Math.max(-8,Math.min(8,Math.floor(i/3)))*3)+1,a=r.length;return o===a?r:o>a?r+new Array(o-a+1).join("0"):o>0?r.slice(0,o)+"."+r.slice(o):"0."+new Array(1-o).join("0")+Wn(t,Math.max(0,e+o-1))[0]}function mo(t,e){var n=Wn(t,e);if(!n)return t+"";var r=n[0],i=n[1];return i<0?"0."+new Array(-i).join("0")+r:r.length>i+1?r.slice(0,i+1)+"."+r.slice(i+1):r+new Array(i-r.length+2).join("0")}const vo={"%":(t,e)=>(t*100).toFixed(e),b:t=>Math.round(t).toString(2),c:t=>t+"",d:th,e:(t,e)=>t.toExponential(e),f:(t,e)=>t.toFixed(e),g:(t,e)=>t.toPrecision(e),o:t=>Math.round(t).toString(8),p:(t,e)=>mo(t*100,e),r:mo,s:oh,X:t=>Math.round(t).toString(16).toUpperCase(),x:t=>Math.round(t).toString(16)};function yo(t){return t}var xo=Array.prototype.map,_o=["y","z","a","f","p","n","µ","m","","k","M","G","T","P","E","Z","Y"];function ah(t){var e=t.grouping===void 0||t.thousands===void 0?yo:eh(xo.call(t.grouping,Number),t.thousands+""),n=t.currency===void 0?"":t.currency[0]+"",r=t.currency===void 0?"":t.currency[1]+"",i=t.decimal===void 0?".":t.decimal+"",o=t.numerals===void 0?yo:nh(xo.call(t.numerals,String)),a=t.percent===void 0?"%":t.percent+"",s=t.minus===void 0?"−":t.minus+"",c=t.nan===void 0?"NaN":t.nan+"";function u(d,h){d=Ye(d);var g=d.fill,p=d.align,m=d.sign,w=d.symbol,_=d.zero,b=d.width,v=d.comma,k=d.precision,C=d.trim,y=d.type;y==="n"?(v=!0,y="g"):vo[y]||(k===void 0&&(k=12),C=!0,y="g"),(_||g==="0"&&p==="=")&&(_=!0,g="0",p="=");var x=(h&&h.prefix!==void 0?h.prefix:"")+(w==="$"?n:w==="#"&&/[boxX]/.test(y)?"0"+y.toLowerCase():""),E=(w==="$"?r:/[%p]/.test(y)?a:"")+(h&&h.suffix!==void 0?h.suffix:""),O=vo[y],B=/[defgprs%]/.test(y);k=k===void 0?6:/[gprs]/.test(y)?Math.max(1,Math.min(21,k)):Math.max(0,Math.min(20,k));function N(M){var R=x,F=E,Q,pt,Gt;if(y==="c")F=O(M)+F,M="";else{M=+M;var D=M<0||1/M<0;if(M=isNaN(M)?c:O(Math.abs(M),k),C&&(M=ih(M)),D&&+M==0&&m!=="+"&&(D=!1),R=(D?m==="("?m:s:m==="-"||m==="("?"":m)+R,F=(y==="s"&&!isNaN(M)&&Yn!==void 0?_o[8+Yn/3]:"")+F+(D&&m==="("?")":""),B){for(Q=-1,pt=M.length;++Q<pt;)if(Gt=M.charCodeAt(Q),48>Gt||Gt>57){F=(Gt===46?i+M.slice(Q+1):M.slice(Q))+F,M=M.slice(0,Q);break}}}v&&!_&&(M=e(M,1/0));var $=R.length+M.length+F.length,I=$<b?new Array(b-$+1).join(g):"";switch(v&&_&&(M=e(I+M,I.length?b-F.length:1/0),I=""),p){case"<":M=R+M+F+I;break;case"=":M=R+I+M+F;break;case"^":M=I.slice(0,$=I.length>>1)+R+M+F+I.slice($);break;default:M=I+R+M+F;break}return o(M)}return N.toString=function(){return d+""},N}function f(d,h){var g=Math.max(-8,Math.min(8,Math.floor(ye(h)/3)))*3,p=Math.pow(10,-g),m=u((d=Ye(d),d.type="f",d),{suffix:_o[8+g/3]});return function(w){return m(p*w)}}return{format:u,formatPrefix:f}}var un,hi,es;sh({thousands:",",grouping:[3],currency:["$",""]});function sh(t){return un=ah(t),hi=un.format,es=un.formatPrefix,un}function ch(t){return Math.max(0,-ye(Math.abs(t)))}function lh(t,e){return Math.max(0,Math.max(-8,Math.min(8,Math.floor(ye(e)/3)))*3-ye(Math.abs(t)))}function uh(t,e){return t=Math.abs(t),e=Math.abs(e)-t,Math.max(0,ye(e)-ye(t))+1}function fh(t,e,n,r){var i=Mr(t,e,n),o;switch(r=Ye(r??",f"),r.type){case"s":{var a=Math.max(Math.abs(t),Math.abs(e));return r.precision==null&&!isNaN(o=lh(i,a))&&(r.precision=o),es(r,a)}case"":case"e":case"g":case"p":case"r":{r.precision==null&&!isNaN(o=uh(i,Math.max(Math.abs(t),Math.abs(e))))&&(r.precision=o-(r.type==="e"));break}case"f":case"%":{r.precision==null&&!isNaN(o=ch(i))&&(r.precision=o-(r.type==="%")*2);break}}return hi(r)}function oe(t){var e=t.domain;return t.ticks=function(n){var r=e();return Sr(r[0],r[r.length-1],n??10)},t.tickFormat=function(n,r){var i=e();return fh(i[0],i[i.length-1],n??10,r)},t.nice=function(n){n==null&&(n=10);var r=e(),i=0,o=r.length-1,a=r[i],s=r[o],c,u,f=10;for(s<a&&(u=a,a=s,s=u,u=i,i=o,o=u);f-- >0;){if(u=Tr(a,s,n),u===c)return r[i]=a,r[o]=s,e(r);if(u>0)a=Math.floor(a/u)*u,s=Math.ceil(s/u)*u;else if(u<0)a=Math.ceil(a*u)/u,s=Math.floor(s*u)/u;else break;c=u}return t},t}function ns(){var t=ts();return t.copy=function(){return Ke(t,ns())},kt.apply(t,arguments),oe(t)}function rs(t){var e;function n(r){return r==null||isNaN(r=+r)?e:r}return n.invert=n,n.domain=n.range=function(r){return arguments.length?(t=Array.from(r,Ur),n):t.slice()},n.unknown=function(r){return arguments.length?(e=r,n):e},n.copy=function(){return rs(t).unknown(e)},t=arguments.length?Array.from(t,Ur):[0,1],oe(n)}function is(t,e){t=t.slice();var n=0,r=t.length-1,i=t[n],o=t[r],a;return o<i&&(a=n,n=r,r=a,a=i,i=o,o=a),t[n]=e.floor(i),t[r]=e.ceil(o),t}function wo(t){return Math.log(t)}function bo(t){return Math.exp(t)}function dh(t){return-Math.log(-t)}function hh(t){return-Math.exp(-t)}function gh(t){return isFinite(t)?+("1e"+t):t<0?0:t}function ph(t){return t===10?gh:t===Math.E?Math.exp:e=>Math.pow(t,e)}function mh(t){return t===Math.E?Math.log:t===10&&Math.log10||t===2&&Math.log2||(t=Math.log(t),e=>Math.log(e)/t)}function ko(t){return(e,n)=>-t(-e,n)}function vh(t){const e=t(wo,bo),n=e.domain;let r=10,i,o;function a(){return i=mh(r),o=ph(r),n()[0]<0?(i=ko(i),o=ko(o),t(dh,hh)):t(wo,bo),e}return e.base=function(s){return arguments.length?(r=+s,a()):r},e.domain=function(s){return arguments.length?(n(s),a()):n()},e.ticks=s=>{const c=n();let u=c[0],f=c[c.length-1];const d=f<u;d&&([u,f]=[f,u]);let h=i(u),g=i(f),p,m;const w=s==null?10:+s;let _=[];if(!(r%1)&&g-h<w){if(h=Math.floor(h),g=Math.ceil(g),u>0){for(;h<=g;++h)for(p=1;p<r;++p)if(m=h<0?p/o(-h):p*o(h),!(m<u)){if(m>f)break;_.push(m)}}else for(;h<=g;++h)for(p=r-1;p>=1;--p)if(m=h>0?p/o(-h):p*o(h),!(m<u)){if(m>f)break;_.push(m)}_.length*2<w&&(_=Sr(u,f,w))}else _=Sr(h,g,Math.min(g-h,w)).map(o);return d?_.reverse():_},e.tickFormat=(s,c)=>{if(s==null&&(s=10),c==null&&(c=r===10?"s":","),typeof c!="function"&&(!(r%1)&&(c=Ye(c)).precision==null&&(c.trim=!0),c=hi(c)),s===1/0)return c;const u=Math.max(1,r*s/e.ticks().length);return f=>{let d=f/o(Math.round(i(f)));return d*r<r-.5&&(d*=r),d<=u?c(f):""}},e.nice=()=>n(is(n(),{floor:s=>o(Math.floor(i(s))),ceil:s=>o(Math.ceil(i(s)))})),e}function os(){const t=vh(rr()).domain([1,10]);return t.copy=()=>Ke(t,os()).base(t.base()),kt.apply(t,arguments),t}function Co(t){return function(e){return Math.sign(e)*Math.log1p(Math.abs(e/t))}}function So(t){return function(e){return Math.sign(e)*Math.expm1(Math.abs(e))*t}}function yh(t){var e=1,n=t(Co(e),So(e));return n.constant=function(r){return arguments.length?t(Co(e=+r),So(e)):e},oe(n)}function as(){var t=yh(rr());return t.copy=function(){return Ke(t,as()).constant(t.constant())},kt.apply(t,arguments)}function To(t){return function(e){return e<0?-Math.pow(-e,t):Math.pow(e,t)}}function xh(t){return t<0?-Math.sqrt(-t):Math.sqrt(t)}function _h(t){return t<0?-t*t:t*t}function wh(t){var e=t(lt,lt),n=1;function r(){return n===1?t(lt,lt):n===.5?t(xh,_h):t(To(n),To(1/n))}return e.exponent=function(i){return arguments.length?(n=+i,r()):n},oe(e)}function gi(){var t=wh(rr());return t.copy=function(){return Ke(t,gi()).exponent(t.exponent())},kt.apply(t,arguments),t}function bh(){return gi.apply(null,arguments).exponent(.5)}function ss(){var t=[],e=[],n=[],r;function i(){var a=0,s=Math.max(1,e.length);for(n=new Array(s-1);++a<s;)n[a-1]=Ol(t,a/s);return o}function o(a){return a==null||isNaN(a=+a)?r:e[qe(n,a)]}return o.invertExtent=function(a){var s=e.indexOf(a);return s<0?[NaN,NaN]:[s>0?n[s-1]:t[0],s<n.length?n[s]:t[t.length-1]]},o.domain=function(a){if(!arguments.length)return t.slice();t=[];for(let s of a)s!=null&&!isNaN(s=+s)&&t.push(s);return t.sort(Be),i()},o.range=function(a){return arguments.length?(e=Array.from(a),i()):e.slice()},o.unknown=function(a){return arguments.length?(r=a,o):r},o.quantiles=function(){return n.slice()},o.copy=function(){return ss().domain(t).range(e).unknown(r)},kt.apply(o,arguments)}function cs(){var t=0,e=1,n=1,r=[.5],i=[0,1],o;function a(c){return c!=null&&c<=c?i[qe(r,c,0,n)]:o}function s(){var c=-1;for(r=new Array(n);++c<n;)r[c]=((c+1)*e-(c-n)*t)/(n+1);return a}return a.domain=function(c){return arguments.length?([t,e]=c,t=+t,e=+e,s()):[t,e]},a.range=function(c){return arguments.length?(n=(i=Array.from(c)).length-1,s()):i.slice()},a.invertExtent=function(c){var u=i.indexOf(c);return u<0?[NaN,NaN]:u<1?[t,r[0]]:u>=n?[r[n-1],e]:[r[u-1],r[u]]},a.unknown=function(c){return arguments.length&&(o=c),a},a.thresholds=function(){return r.slice()},a.copy=function(){return cs().domain([t,e]).range(i).unknown(o)},kt.apply(oe(a),arguments)}function ls(){var t=[.5],e=[0,1],n,r=1;function i(o){return o!=null&&o<=o?e[qe(t,o,0,r)]:n}return i.domain=function(o){return arguments.length?(t=Array.from(o),r=Math.min(t.length,e.length-1),i):t.slice()},i.range=function(o){return arguments.length?(e=Array.from(o),r=Math.min(t.length,e.length-1),i):e.slice()},i.invertExtent=function(o){var a=e.indexOf(o);return[t[a-1],t[a]]},i.unknown=function(o){return arguments.length?(n=o,i):n},i.copy=function(){return ls().domain(t).range(e).unknown(n)},kt.apply(i,arguments)}const xr=new Date,_r=new Date;function J(t,e,n,r){function i(o){return t(o=arguments.length===0?new Date:new Date(+o)),o}return i.floor=o=>(t(o=new Date(+o)),o),i.ceil=o=>(t(o=new Date(o-1)),e(o,1),t(o),o),i.round=o=>{const a=i(o),s=i.ceil(o);return o-a<s-o?a:s},i.offset=(o,a)=>(e(o=new Date(+o),a==null?1:Math.floor(a)),o),i.range=(o,a,s)=>{const c=[];if(o=i.ceil(o),s=s==null?1:Math.floor(s),!(o<a)||!(s>0))return c;let u;do c.push(u=new Date(+o)),e(o,s),t(o);while(u<o&&o<a);return c},i.filter=o=>J(a=>{if(a>=a)for(;t(a),!o(a);)a.setTime(a-1)},(a,s)=>{if(a>=a)if(s<0)for(;++s<=0;)for(;e(a,-1),!o(a););else for(;--s>=0;)for(;e(a,1),!o(a););}),n&&(i.count=(o,a)=>(xr.setTime(+o),_r.setTime(+a),t(xr),t(_r),Math.floor(n(xr,_r))),i.every=o=>(o=Math.floor(o),!isFinite(o)||!(o>0)?null:o>1?i.filter(r?a=>r(a)%o===0:a=>i.count(0,a)%o===0):i)),i}const Xn=J(()=>{},(t,e)=>{t.setTime(+t+e)},(t,e)=>e-t);Xn.every=t=>(t=Math.floor(t),!isFinite(t)||!(t>0)?null:t>1?J(e=>{e.setTime(Math.floor(e/t)*t)},(e,n)=>{e.setTime(+e+n*t)},(e,n)=>(n-e)/t):Xn);Xn.range;const Ot=1e3,vt=Ot*60,Vt=vt*60,zt=Vt*24,pi=zt*7,Mo=zt*30,wr=zt*365,Qt=J(t=>{t.setTime(t-t.getMilliseconds())},(t,e)=>{t.setTime(+t+e*Ot)},(t,e)=>(e-t)/Ot,t=>t.getUTCSeconds());Qt.range;const mi=J(t=>{t.setTime(t-t.getMilliseconds()-t.getSeconds()*Ot)},(t,e)=>{t.setTime(+t+e*vt)},(t,e)=>(e-t)/vt,t=>t.getMinutes());mi.range;const vi=J(t=>{t.setUTCSeconds(0,0)},(t,e)=>{t.setTime(+t+e*vt)},(t,e)=>(e-t)/vt,t=>t.getUTCMinutes());vi.range;const yi=J(t=>{t.setTime(t-t.getMilliseconds()-t.getSeconds()*Ot-t.getMinutes()*vt)},(t,e)=>{t.setTime(+t+e*Vt)},(t,e)=>(e-t)/Vt,t=>t.getHours());yi.range;const xi=J(t=>{t.setUTCMinutes(0,0,0)},(t,e)=>{t.setTime(+t+e*Vt)},(t,e)=>(e-t)/Vt,t=>t.getUTCHours());xi.range;const Je=J(t=>t.setHours(0,0,0,0),(t,e)=>t.setDate(t.getDate()+e),(t,e)=>(e-t-(e.getTimezoneOffset()-t.getTimezoneOffset())*vt)/zt,t=>t.getDate()-1);Je.range;const ir=J(t=>{t.setUTCHours(0,0,0,0)},(t,e)=>{t.setUTCDate(t.getUTCDate()+e)},(t,e)=>(e-t)/zt,t=>t.getUTCDate()-1);ir.range;const us=J(t=>{t.setUTCHours(0,0,0,0)},(t,e)=>{t.setUTCDate(t.getUTCDate()+e)},(t,e)=>(e-t)/zt,t=>Math.floor(t/zt));us.range;function ae(t){return J(e=>{e.setDate(e.getDate()-(e.getDay()+7-t)%7),e.setHours(0,0,0,0)},(e,n)=>{e.setDate(e.getDate()+n*7)},(e,n)=>(n-e-(n.getTimezoneOffset()-e.getTimezoneOffset())*vt)/pi)}const or=ae(0),qn=ae(1),kh=ae(2),Ch=ae(3),xe=ae(4),Sh=ae(5),Th=ae(6);or.range;qn.range;kh.range;Ch.range;xe.range;Sh.range;Th.range;function se(t){return J(e=>{e.setUTCDate(e.getUTCDate()-(e.getUTCDay()+7-t)%7),e.setUTCHours(0,0,0,0)},(e,n)=>{e.setUTCDate(e.getUTCDate()+n*7)},(e,n)=>(n-e)/pi)}const ar=se(0),Gn=se(1),Mh=se(2),Dh=se(3),_e=se(4),Ah=se(5),Eh=se(6);ar.range;Gn.range;Mh.range;Dh.range;_e.range;Ah.range;Eh.range;const _i=J(t=>{t.setDate(1),t.setHours(0,0,0,0)},(t,e)=>{t.setMonth(t.getMonth()+e)},(t,e)=>e.getMonth()-t.getMonth()+(e.getFullYear()-t.getFullYear())*12,t=>t.getMonth());_i.range;const wi=J(t=>{t.setUTCDate(1),t.setUTCHours(0,0,0,0)},(t,e)=>{t.setUTCMonth(t.getUTCMonth()+e)},(t,e)=>e.getUTCMonth()-t.getUTCMonth()+(e.getUTCFullYear()-t.getUTCFullYear())*12,t=>t.getUTCMonth());wi.range;const Lt=J(t=>{t.setMonth(0,1),t.setHours(0,0,0,0)},(t,e)=>{t.setFullYear(t.getFullYear()+e)},(t,e)=>e.getFullYear()-t.getFullYear(),t=>t.getFullYear());Lt.every=t=>!isFinite(t=Math.floor(t))||!(t>0)?null:J(e=>{e.setFullYear(Math.floor(e.getFullYear()/t)*t),e.setMonth(0,1),e.setHours(0,0,0,0)},(e,n)=>{e.setFullYear(e.getFullYear()+n*t)});Lt.range;const Pt=J(t=>{t.setUTCMonth(0,1),t.setUTCHours(0,0,0,0)},(t,e)=>{t.setUTCFullYear(t.getUTCFullYear()+e)},(t,e)=>e.getUTCFullYear()-t.getUTCFullYear(),t=>t.getUTCFullYear());Pt.every=t=>!isFinite(t=Math.floor(t))||!(t>0)?null:J(e=>{e.setUTCFullYear(Math.floor(e.getUTCFullYear()/t)*t),e.setUTCMonth(0,1),e.setUTCHours(0,0,0,0)},(e,n)=>{e.setUTCFullYear(e.getUTCFullYear()+n*t)});Pt.range;function fs(t,e,n,r,i,o){const a=[[Qt,1,Ot],[Qt,5,5*Ot],[Qt,15,15*Ot],[Qt,30,30*Ot],[o,1,vt],[o,5,5*vt],[o,15,15*vt],[o,30,30*vt],[i,1,Vt],[i,3,3*Vt],[i,6,6*Vt],[i,12,12*Vt],[r,1,zt],[r,2,2*zt],[n,1,pi],[e,1,Mo],[e,3,3*Mo],[t,1,wr]];function s(u,f,d){const h=f<u;h&&([u,f]=[f,u]);const g=d&&typeof d.range=="function"?d:c(u,f,d),p=g?g.range(u,+f+1):[];return h?p.reverse():p}function c(u,f,d){const h=Math.abs(f-u)/d,g=Zr(([,,w])=>w).right(a,h);if(g===a.length)return t.every(Mr(u/wr,f/wr,d));if(g===0)return Xn.every(Math.max(Mr(u,f,d),1));const[p,m]=a[h/a[g-1][2]<a[g][2]/h?g-1:g];return p.every(m)}return[s,c]}const[Nh,$h]=fs(Pt,wi,ar,us,xi,vi),[Rh,Bh]=fs(Lt,_i,or,Je,yi,mi);function br(t){if(0<=t.y&&t.y<100){var e=new Date(-1,t.m,t.d,t.H,t.M,t.S,t.L);return e.setFullYear(t.y),e}return new Date(t.y,t.m,t.d,t.H,t.M,t.S,t.L)}function kr(t){if(0<=t.y&&t.y<100){var e=new Date(Date.UTC(-1,t.m,t.d,t.H,t.M,t.S,t.L));return e.setUTCFullYear(t.y),e}return new Date(Date.UTC(t.y,t.m,t.d,t.H,t.M,t.S,t.L))}function Te(t,e,n){return{y:t,m:e,d:n,H:0,M:0,S:0,L:0}}function Oh(t){var e=t.dateTime,n=t.date,r=t.time,i=t.periods,o=t.days,a=t.shortDays,s=t.months,c=t.shortMonths,u=Me(i),f=De(i),d=Me(o),h=De(o),g=Me(a),p=De(a),m=Me(s),w=De(s),_=Me(c),b=De(c),v={a:Gt,A:D,b:$,B:I,c:null,d:Ro,e:Ro,f:ig,g:gg,G:mg,H:eg,I:ng,j:rg,L:ds,m:og,M:ag,p:X,q:rt,Q:Vo,s:Fo,S:sg,u:cg,U:lg,V:ug,w:fg,W:dg,x:null,X:null,y:hg,Y:pg,Z:vg,"%":Oo},k={a:Ct,A:yt,b:K,B:ot,c:null,d:Bo,e:Bo,f:wg,g:Ng,G:Rg,H:yg,I:xg,j:_g,L:gs,m:bg,M:kg,p:z,q:Y,Q:Vo,s:Fo,S:Cg,u:Sg,U:Tg,V:Mg,w:Dg,W:Ag,x:null,X:null,y:Eg,Y:$g,Z:Bg,"%":Oo},C={a:B,A:N,b:M,B:R,c:F,d:No,e:No,f:Qh,g:Eo,G:Ao,H:$o,I:$o,j:qh,L:Zh,m:Xh,M:Gh,p:O,q:Yh,Q:Jh,s:tg,S:jh,u:Lh,U:Ph,V:Uh,w:zh,W:Hh,x:Q,X:pt,y:Eo,Y:Ao,Z:Wh,"%":Kh};v.x=y(n,v),v.X=y(r,v),v.c=y(e,v),k.x=y(n,k),k.X=y(r,k),k.c=y(e,k);function y(T,V){return function(P){var S=[],at=-1,q=0,ft=T.length,dt,jt,Mi;for(P instanceof Date||(P=new Date(+P));++at<ft;)T.charCodeAt(at)===37&&(S.push(T.slice(q,at)),(jt=Do[dt=T.charAt(++at)])!=null?dt=T.charAt(++at):jt=dt==="e"?" ":"0",(Mi=V[dt])&&(dt=Mi(P,jt)),S.push(dt),q=at+1);return S.push(T.slice(q,at)),S.join("")}}function x(T,V){return function(P){var S=Te(1900,void 0,1),at=E(S,T,P+="",0),q,ft;if(at!=P.length)return null;if("Q"in S)return new Date(S.Q);if("s"in S)return new Date(S.s*1e3+("L"in S?S.L:0));if(V&&!("Z"in S)&&(S.Z=0),"p"in S&&(S.H=S.H%12+S.p*12),S.m===void 0&&(S.m="q"in S?S.q:0),"V"in S){if(S.V<1||S.V>53)return null;"w"in S||(S.w=1),"Z"in S?(q=kr(Te(S.y,0,1)),ft=q.getUTCDay(),q=ft>4||ft===0?Gn.ceil(q):Gn(q),q=ir.offset(q,(S.V-1)*7),S.y=q.getUTCFullYear(),S.m=q.getUTCMonth(),S.d=q.getUTCDate()+(S.w+6)%7):(q=br(Te(S.y,0,1)),ft=q.getDay(),q=ft>4||ft===0?qn.ceil(q):qn(q),q=Je.offset(q,(S.V-1)*7),S.y=q.getFullYear(),S.m=q.getMonth(),S.d=q.getDate()+(S.w+6)%7)}else("W"in S||"U"in S)&&("w"in S||(S.w="u"in S?S.u%7:"W"in S?1:0),ft="Z"in S?kr(Te(S.y,0,1)).getUTCDay():br(Te(S.y,0,1)).getDay(),S.m=0,S.d="W"in S?(S.w+6)%7+S.W*7-(ft+5)%7:S.w+S.U*7-(ft+6)%7);return"Z"in S?(S.H+=S.Z/100|0,S.M+=S.Z%100,kr(S)):br(S)}}function E(T,V,P,S){for(var at=0,q=V.length,ft=P.length,dt,jt;at<q;){if(S>=ft)return-1;if(dt=V.charCodeAt(at++),dt===37){if(dt=V.charAt(at++),jt=C[dt in Do?V.charAt(at++):dt],!jt||(S=jt(T,P,S))<0)return-1}else if(dt!=P.charCodeAt(S++))return-1}return S}function O(T,V,P){var S=u.exec(V.slice(P));return S?(T.p=f.get(S[0].toLowerCase()),P+S[0].length):-1}function B(T,V,P){var S=g.exec(V.slice(P));return S?(T.w=p.get(S[0].toLowerCase()),P+S[0].length):-1}function N(T,V,P){var S=d.exec(V.slice(P));return S?(T.w=h.get(S[0].toLowerCase()),P+S[0].length):-1}function M(T,V,P){var S=_.exec(V.slice(P));return S?(T.m=b.get(S[0].toLowerCase()),P+S[0].length):-1}function R(T,V,P){var S=m.exec(V.slice(P));return S?(T.m=w.get(S[0].toLowerCase()),P+S[0].length):-1}function F(T,V,P){return E(T,e,V,P)}function Q(T,V,P){return E(T,n,V,P)}function pt(T,V,P){return E(T,r,V,P)}function Gt(T){return a[T.getDay()]}function D(T){return o[T.getDay()]}function $(T){return c[T.getMonth()]}function I(T){return s[T.getMonth()]}function X(T){return i[+(T.getHours()>=12)]}function rt(T){return 1+~~(T.getMonth()/3)}function Ct(T){return a[T.getUTCDay()]}function yt(T){return o[T.getUTCDay()]}function K(T){return c[T.getUTCMonth()]}function ot(T){return s[T.getUTCMonth()]}function z(T){return i[+(T.getUTCHours()>=12)]}function Y(T){return 1+~~(T.getUTCMonth()/3)}return{format:function(T){var V=y(T+="",v);return V.toString=function(){return T},V},parse:function(T){var V=x(T+="",!1);return V.toString=function(){return T},V},utcFormat:function(T){var V=y(T+="",k);return V.toString=function(){return T},V},utcParse:function(T){var V=x(T+="",!0);return V.toString=function(){return T},V}}}var Do={"-":"",_:" ",0:"0"},et=/^\s*\d+/,Vh=/^%/,Fh=/[\\^$*+?|[\]().{}]/g;function U(t,e,n){var r=t<0?"-":"",i=(r?-t:t)+"",o=i.length;return r+(o<n?new Array(n-o+1).join(e)+i:i)}function Ih(t){return t.replace(Fh,"\\$&")}function Me(t){return new RegExp("^(?:"+t.map(Ih).join("|")+")","i")}function De(t){return new Map(t.map((e,n)=>[e.toLowerCase(),n]))}function zh(t,e,n){var r=et.exec(e.slice(n,n+1));return r?(t.w=+r[0],n+r[0].length):-1}function Lh(t,e,n){var r=et.exec(e.slice(n,n+1));return r?(t.u=+r[0],n+r[0].length):-1}function Ph(t,e,n){var r=et.exec(e.slice(n,n+2));return r?(t.U=+r[0],n+r[0].length):-1}function Uh(t,e,n){var r=et.exec(e.slice(n,n+2));return r?(t.V=+r[0],n+r[0].length):-1}function Hh(t,e,n){var r=et.exec(e.slice(n,n+2));return r?(t.W=+r[0],n+r[0].length):-1}function Ao(t,e,n){var r=et.exec(e.slice(n,n+4));return r?(t.y=+r[0],n+r[0].length):-1}function Eo(t,e,n){var r=et.exec(e.slice(n,n+2));return r?(t.y=+r[0]+(+r[0]>68?1900:2e3),n+r[0].length):-1}function Wh(t,e,n){var r=/^(Z)|([+-]\d\d)(?::?(\d\d))?/.exec(e.slice(n,n+6));return r?(t.Z=r[1]?0:-(r[2]+(r[3]||"00")),n+r[0].length):-1}function Yh(t,e,n){var r=et.exec(e.slice(n,n+1));return r?(t.q=r[0]*3-3,n+r[0].length):-1}function Xh(t,e,n){var r=et.exec(e.slice(n,n+2));return r?(t.m=r[0]-1,n+r[0].length):-1}function No(t,e,n){var r=et.exec(e.slice(n,n+2));return r?(t.d=+r[0],n+r[0].length):-1}function qh(t,e,n){var r=et.exec(e.slice(n,n+3));return r?(t.m=0,t.d=+r[0],n+r[0].length):-1}function $o(t,e,n){var r=et.exec(e.slice(n,n+2));return r?(t.H=+r[0],n+r[0].length):-1}function Gh(t,e,n){var r=et.exec(e.slice(n,n+2));return r?(t.M=+r[0],n+r[0].length):-1}function jh(t,e,n){var r=et.exec(e.slice(n,n+2));return r?(t.S=+r[0],n+r[0].length):-1}function Zh(t,e,n){var r=et.exec(e.slice(n,n+3));return r?(t.L=+r[0],n+r[0].length):-1}function Qh(t,e,n){var r=et.exec(e.slice(n,n+6));return r?(t.L=Math.floor(r[0]/1e3),n+r[0].length):-1}function Kh(t,e,n){var r=Vh.exec(e.slice(n,n+1));return r?n+r[0].length:-1}function Jh(t,e,n){var r=et.exec(e.slice(n));return r?(t.Q=+r[0],n+r[0].length):-1}function tg(t,e,n){var r=et.exec(e.slice(n));return r?(t.s=+r[0],n+r[0].length):-1}function Ro(t,e){return U(t.getDate(),e,2)}function eg(t,e){return U(t.getHours(),e,2)}function ng(t,e){return U(t.getHours()%12||12,e,2)}function rg(t,e){return U(1+Je.count(Lt(t),t),e,3)}function ds(t,e){return U(t.getMilliseconds(),e,3)}function ig(t,e){return ds(t,e)+"000"}function og(t,e){return U(t.getMonth()+1,e,2)}function ag(t,e){return U(t.getMinutes(),e,2)}function sg(t,e){return U(t.getSeconds(),e,2)}function cg(t){var e=t.getDay();return e===0?7:e}function lg(t,e){return U(or.count(Lt(t)-1,t),e,2)}function hs(t){var e=t.getDay();return e>=4||e===0?xe(t):xe.ceil(t)}function ug(t,e){return t=hs(t),U(xe.count(Lt(t),t)+(Lt(t).getDay()===4),e,2)}function fg(t){return t.getDay()}function dg(t,e){return U(qn.count(Lt(t)-1,t),e,2)}function hg(t,e){return U(t.getFullYear()%100,e,2)}function gg(t,e){return t=hs(t),U(t.getFullYear()%100,e,2)}function pg(t,e){return U(t.getFullYear()%1e4,e,4)}function mg(t,e){var n=t.getDay();return t=n>=4||n===0?xe(t):xe.ceil(t),U(t.getFullYear()%1e4,e,4)}function vg(t){var e=t.getTimezoneOffset();return(e>0?"-":(e*=-1,"+"))+U(e/60|0,"0",2)+U(e%60,"0",2)}function Bo(t,e){return U(t.getUTCDate(),e,2)}function yg(t,e){return U(t.getUTCHours(),e,2)}function xg(t,e){return U(t.getUTCHours()%12||12,e,2)}function _g(t,e){return U(1+ir.count(Pt(t),t),e,3)}function gs(t,e){return U(t.getUTCMilliseconds(),e,3)}function wg(t,e){return gs(t,e)+"000"}function bg(t,e){return U(t.getUTCMonth()+1,e,2)}function kg(t,e){return U(t.getUTCMinutes(),e,2)}function Cg(t,e){return U(t.getUTCSeconds(),e,2)}function Sg(t){var e=t.getUTCDay();return e===0?7:e}function Tg(t,e){return U(ar.count(Pt(t)-1,t),e,2)}function ps(t){var e=t.getUTCDay();return e>=4||e===0?_e(t):_e.ceil(t)}function Mg(t,e){return t=ps(t),U(_e.count(Pt(t),t)+(Pt(t).getUTCDay()===4),e,2)}function Dg(t){return t.getUTCDay()}function Ag(t,e){return U(Gn.count(Pt(t)-1,t),e,2)}function Eg(t,e){return U(t.getUTCFullYear()%100,e,2)}function Ng(t,e){return t=ps(t),U(t.getUTCFullYear()%100,e,2)}function $g(t,e){return U(t.getUTCFullYear()%1e4,e,4)}function Rg(t,e){var n=t.getUTCDay();return t=n>=4||n===0?_e(t):_e.ceil(t),U(t.getUTCFullYear()%1e4,e,4)}function Bg(){return"+0000"}function Oo(){return"%"}function Vo(t){return+t}function Fo(t){return Math.floor(+t/1e3)}var ce,ms,vs;Og({dateTime:"%x, %X",date:"%-m/%-d/%Y",time:"%-I:%M:%S %p",periods:["AM","PM"],days:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],shortDays:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],months:["January","February","March","April","May","June","July","August","September","October","November","December"],shortMonths:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"]});function Og(t){return ce=Oh(t),ms=ce.format,ce.parse,vs=ce.utcFormat,ce.utcParse,ce}function Vg(t){return new Date(t)}function Fg(t){return t instanceof Date?+t:+new Date(+t)}function bi(t,e,n,r,i,o,a,s,c,u){var f=ts(),d=f.invert,h=f.domain,g=u(".%L"),p=u(":%S"),m=u("%I:%M"),w=u("%I %p"),_=u("%a %d"),b=u("%b %d"),v=u("%B"),k=u("%Y");function C(y){return(c(y)<y?g:s(y)<y?p:a(y)<y?m:o(y)<y?w:r(y)<y?i(y)<y?_:b:n(y)<y?v:k)(y)}return f.invert=function(y){return new Date(d(y))},f.domain=function(y){return arguments.length?h(Array.from(y,Fg)):h().map(Vg)},f.ticks=function(y){var x=h();return t(x[0],x[x.length-1],y??10)},f.tickFormat=function(y,x){return x==null?C:u(x)},f.nice=function(y){var x=h();return(!y||typeof y.range!="function")&&(y=e(x[0],x[x.length-1],y??10)),y?h(is(x,y)):f},f.copy=function(){return Ke(f,bi(t,e,n,r,i,o,a,s,c,u))},f}function Ig(){return kt.apply(bi(Rh,Bh,Lt,_i,or,Je,yi,mi,Qt,ms).domain([new Date(2e3,0,1),new Date(2e3,0,2)]),arguments)}function zg(){return kt.apply(bi(Nh,$h,Pt,wi,ar,ir,xi,vi,Qt,vs).domain([Date.UTC(2e3,0,1),Date.UTC(2e3,0,2)]),arguments)}function Lg(){var t=0,e=1,n,r,i,o,a=lt,s=!1,c;function u(d){return d==null||isNaN(d=+d)?c:a(i===0?.5:(d=(o(d)-n)*i,s?Math.max(0,Math.min(1,d)):d))}u.domain=function(d){return arguments.length?([t,e]=d,n=o(t=+t),r=o(e=+e),i=n===r?0:1/(r-n),u):[t,e]},u.clamp=function(d){return arguments.length?(s=!!d,u):s},u.interpolator=function(d){return arguments.length?(a=d,u):a};function f(d){return function(h){var g,p;return arguments.length?([g,p]=h,a=d(g,p),u):[a(0),a(1)]}}return u.range=f(be),u.rangeRound=f(ci),u.unknown=function(d){return arguments.length?(c=d,u):c},function(d){return o=d,n=d(t),r=d(e),i=n===r?0:1/(r-n),u}}function ys(t,e){return e.domain(t.domain()).interpolator(t.interpolator()).clamp(t.clamp()).unknown(t.unknown())}function xs(){var t=oe(Lg()(lt));return t.copy=function(){return ys(t,xs())},Ka.apply(t,arguments)}function Pg(){var t=0,e=.5,n=1,r=1,i,o,a,s,c,u=lt,f,d=!1,h;function g(m){return isNaN(m=+m)?h:(m=.5+((m=+f(m))-o)*(r*m<r*o?s:c),u(d?Math.max(0,Math.min(1,m)):m))}g.domain=function(m){return arguments.length?([t,e,n]=m,i=f(t=+t),o=f(e=+e),a=f(n=+n),s=i===o?0:.5/(o-i),c=o===a?0:.5/(a-o),r=o<i?-1:1,g):[t,e,n]},g.clamp=function(m){return arguments.length?(d=!!m,g):d},g.interpolator=function(m){return arguments.length?(u=m,g):u};function p(m){return function(w){var _,b,v;return arguments.length?([_,b,v]=w,u=Yf(m,[_,b,v]),g):[u(0),u(.5),u(1)]}}return g.range=p(be),g.rangeRound=p(ci),g.unknown=function(m){return arguments.length?(h=m,g):h},function(m){return f=m,i=m(t),o=m(e),a=m(n),s=i===o?0:.5/(o-i),c=o===a?0:.5/(a-o),r=o<i?-1:1,g}}function _s(){var t=oe(Pg()(lt));return t.copy=function(){return ys(t,_s())},Ka.apply(t,arguments)}const Io={scaleLinear:ns,scalePow:gi,scaleSqrt:bh,scaleLog:os,scaleSymlog:as,scaleIdentity:rs,scaleTime:Ig,scaleUtc:zg,scaleSequential:xs,scaleDiverging:_s,scaleQuantize:cs,scaleQuantile:ss,scaleThreshold:ls,scaleOrdinal:fi,scaleBand:nr,scalePoint:jd};var j;(function(t){t.X="x",t.Y="y"})(j||(j={}));var Yt;(function(t){t.West="west",t.East="east",t.North="north",t.South="south"})(Yt||(Yt={}));const Ug=Object.assign(Object.assign({},ba),{components:[],tooltip:void 0,crosshair:void 0,annotations:void 0,xAxis:void 0,yAxis:void 0,autoMargin:!0,xScale:void 0,xDomain:void 0,xDomainMinConstraint:void 0,xDomainMaxConstraint:void 0,xRange:void 0,yScale:void 0,yDomain:void 0,yDomainMinConstraint:void 0,yDomainMaxConstraint:void 0,yRange:void 0,yDirection:Yt.North,preventEmptyDomain:null,scaleByDomain:!1,clipPathExtend:2});class Hg extends ze{constructor(e,n,r){var i,o;super(e),this._defaultConfig=Ug,this.datamodel=new ui,this.config=this._defaultConfig,this._clipPathId=Ra(),this._axisMargin={top:0,bottom:0,left:0,right:0},this._firstRender=!0,this._clipPath=this.svg.append("clipPath").attr("id",this._clipPathId),this._clipPath.append("rect");const a="saturate",s=window.location.href.replace(window.location.hash,"");this.svg.attr("class",G`
53
- --highlight-filter-id: url(${s}#${a}); // defining a css variable
54
- `),this._svgDefs.append("filter").attr("id",a).attr("filterUnits","objectBoundingBox").html('<feColorMatrix type="saturate" in="SourceGraphic" values="1.35"/>'),n&&this.updateContainer(n,!0),r&&this.setData(r,!0),(this.config.xAxis||this.config.yAxis||!((i=this.components)===null||i===void 0)&&i.some(c=>c.datamodel.data))&&this.render(),(o=document.fonts)===null||o===void 0||o.ready.then(()=>{this._firstRender||this._renderAxes(0)})}get components(){return this.config.components}get width(){const e=this._getMargin();return Bt(this.containerWidth-e.left-e.right,0,Number.POSITIVE_INFINITY)}get height(){const e=this._getMargin();return Bt(this.containerHeight-e.top-e.bottom,0,Number.POSITIVE_INFINITY)}setData(e,n){var r,i,o,a,s;const{components:c,config:u}=this;if(!e)return;this.datamodel.data=e,c.forEach(d=>{d.setData(e)}),(r=u.crosshair)===null||r===void 0||r.setData(e),(i=u.xAxis)===null||i===void 0||i.setData(e),(o=u.yAxis)===null||o===void 0||o.setData(e),!ne(this.datamodel.data,e)&&((a=u.tooltip)===null||a===void 0||a.hide(),(s=u.crosshair)===null||s===void 0||s.hide()),n||this.render()}updateContainer(e,n){super.updateContainer(e),this._removeAllChildren(),this.setData(this.datamodel.data,!0),e.xAxis&&(this.config.xAxis.config.type=L.X,this.element.appendChild(e.xAxis.element)),e.yAxis&&(this.config.yAxis.config.type=L.Y,this.element.appendChild(e.yAxis.element));for(const a of this.components)this.element.appendChild(a.element);const r=e.tooltip;r&&(r.hasContainer()||r.setContainer(this._container),r.setComponents(this.components));const i=e.crosshair;i&&(i.setContainer(this.svg),i.tooltip=r,this.element.appendChild(i.element));const o=e.annotations;o&&this.element.appendChild(o.element),this.element.appendChild(this._clipPath.node()),this.element.appendChild(this._svgDefs.node()),this.element.appendChild(this._svgDefsExternal.node()),n||this.render()}updateComponents(e,n){const{config:r}=this;this.components.forEach((i,o)=>{e[o]&&i.setConfig(e[o])}),this._updateScales(...this.components,r.xAxis,r.yAxis,r.crosshair),n||this.render()}update(e,n,r){r&&(this.datamodel.data=r),e&&this.updateContainer(e,!0),n&&this.updateComponents(n,!0),this.render()}_preRender(){const{config:e}=this;super._preRender(),e.autoMargin&&this._setAutoMargin();const n=ke([...this.components,e.xAxis,e.yAxis,e.crosshair,e.annotations]),r=this._getMargin();for(const i of n)i.setSize(this.width,this.height,this.containerWidth,this.containerHeight),i.setContainerMargin(r);this._updateScales(...this.components,e.xAxis,e.yAxis,e.crosshair)}_render(e){var n,r,i,o,a;const{config:s}=this;super._render();const c=this._getMargin();for(const d of this.components)d.g.attr("transform",`translate(${c.left},${c.top})`).style("clip-path",d.clippable?`url(#${this._clipPathId})`:null).style("-webkit-clip-path",d.clippable?`url(#${this._clipPathId})`:null),d.render(e);this._renderAxes(this._firstRender?0:e);const u=s.clipPathExtend;this._clipPath.select("rect").attr("x",-u).attr("y",-u).attr("width",this.width+2*u).attr("height",this.height+2*u),(n=s.tooltip)===null||n===void 0||n.update();const f=s.crosshair;if(f){const d=this.components.filter(m=>!m.stacked).map(m=>m.config.y),h=this.components.filter(m=>m.stacked).map(m=>m.config.y),g=(r=this.components.find(m=>m.config.baseline))===null||r===void 0?void 0:r.config,p=g?.baseline;f.accessors={x:(i=this.components[0])===null||i===void 0?void 0:i.config.x,y:Ar(d),yStacked:Ar(h),baseline:p},f.g.attr("transform",`translate(${c.left},${c.top})`).style("clip-path",`url(#${this._clipPathId})`).style("-webkit-clip-path",`url(#${this._clipPathId})`),f.render()}(o=s.annotations)===null||o===void 0||o.g.attr("transform",`translate(${c.left},${c.top})`),(a=s.annotations)===null||a===void 0||a.render(),this._firstRender=!1}_updateScales(...e){const n=ke(e||this.components);this._setScales(...n),this._updateScalesDomain(...n),this._updateScalesRange(...n)}_setScales(...e){const{config:n}=this;e&&(n.xScale&&e.forEach(r=>r.setScale(j.X,n.xScale)),n.yScale&&e.forEach(r=>r.setScale(j.Y,n.yScale)))}_updateScalesDomain(...e){const{config:n}=this;if(!e)return;const r=e.filter(i=>!i.config.excludeFromDomainCalculation);Object.values(j).forEach(i=>{var o,a,s,c,u,f,d,h;const[g,p]=Dl(Fl(r.map(C=>C.getDataExtent(i,n.scaleByDomain)))),m=i===j.Y?n.yDomain:n.xDomain,w=i===j.Y?n.yDomainMinConstraint:n.xDomainMinConstraint,_=i===j.Y?n.yDomainMaxConstraint:n.xDomainMaxConstraint,b=(a=(o=m?.[0])!==null&&o!==void 0?o:g)!==null&&a!==void 0?a:0,v=(c=(s=m?.[1])!==null&&s!==void 0?s:p)!==null&&c!==void 0?c:1,k=[Bt(b,(u=w?.[0])!==null&&u!==void 0?u:Number.NEGATIVE_INFINITY,(f=w?.[1])!==null&&f!==void 0?f:Number.POSITIVE_INFINITY),Bt(v,(d=_?.[0])!==null&&d!==void 0?d:Number.NEGATIVE_INFINITY,(h=_?.[1])!==null&&h!==void 0?h:Number.POSITIVE_INFINITY)];if(k[0]===k[1]){const C=r.some(y=>{var x;return((x=y.datamodel.data)===null||x===void 0?void 0:x.length)>0});(n.preventEmptyDomain||n.preventEmptyDomain===null&&(!C||i===j.Y))&&(k[1]=k[0]+1)}e.forEach(C=>C.setScaleDomain(i,k))})}_updateScalesRange(...e){var n,r,i,o,a,s;const{config:c}=this;if(!e)return;const u=c.yDirection===Yt.South,f=[(n=c.padding.left)!==null&&n!==void 0?n:0,this.width-((r=c.padding.right)!==null&&r!==void 0?r:0)],d=[this.height-((i=c.padding.bottom)!==null&&i!==void 0?i:0),(o=c.padding.top)!==null&&o!==void 0?o:0];u&&d.reverse();for(const g of e)g.setSize(this.width,this.height,this.containerWidth,this.containerHeight),g.setScaleRange(j.X,(a=c.xRange)!==null&&a!==void 0?a:f),g.setScaleRange(j.Y,(s=c.yRange)!==null&&s!==void 0?s:d);const h=e.map(g=>g.bleed).reduce((g,p)=>{for(const m of Object.keys(g)){const w=m;g[w]<p[w]&&(g[w]=p[w])}return g},{top:0,bottom:0,left:0,right:0});for(const g of e)g.setScaleRange(j.X,[f[0]+h.left,f[1]-h.right]),g.setScaleRange(j.Y,u?[d[0]+h.top,d[1]-h.bottom]:[d[0]-h.bottom,d[1]+h.top])}_renderAxes(e){const{config:{xAxis:n,yAxis:r}}=this,i=this._getMargin();ke([n,r]).forEach(a=>{const s=a.getOffset(i);a.g.attr("transform",`translate(${s.left},${s.top})`),a.render(e)})}_setAutoMargin(){const{config:{xAxis:e,yAxis:n}}=this,r=ke([...this.components,e,n]);this._setScales(...r),this._updateScalesDomain(...r);const i=this._firstRender?2:1;for(let o=0;o<i;o+=1){const a={top:0,bottom:0,left:0,right:0};this._updateScalesRange(...r),ke([e,n]).forEach(c=>{c.preRender();const u=c.getRequiredMargin();a.top<u.top&&(a.top=u.top),a.bottom<u.bottom&&(a.bottom=u.bottom),a.left<u.left&&(a.left=u.left),a.right<u.right&&(a.right=u.right)}),this._axisMargin=a}}_getMargin(){const{config:{margin:e}}=this;return{top:e.top+this._axisMargin.top,bottom:e.bottom+this._axisMargin.bottom,left:e.left+this._axisMargin.left,right:e.right+this._axisMargin.right}}destroy(){const{components:e,config:{tooltip:n,crosshair:r,annotations:i,xAxis:o,yAxis:a}}=this;super.destroy();for(const s of e)s?.destroy();n?.destroy(),r?.destroy(),i?.destroy(),o?.destroy(),a?.destroy()}}const ws={duration:600,events:{},attributes:{}};class Wg{constructor(e=Re.SVG){var n,r;this.type=Re.SVG,this.datamodel=new ui,this.sizing=ge.Fit,this.events={},this._defaultConfig=ws,this._width=400,this._height=200,this._containerWidth=void 0,this._containerHeight=void 0,this._containerMargin={top:0,bottom:0,left:0,right:0},this._setUpComponentEventsThrottled=Rn(this._setUpComponentEvents,500),this._setCustomAttributesThrottled=Rn(this._setCustomAttributes,500),e===Re.SVG?this.element=document.createElementNS("http://www.w3.org/2000/svg","g"):this.element=document.createElement("div"),this.uid=Ra(),this.g=Ft(this.element);const i=(r=(n=this.constructor)===null||n===void 0?void 0:n.selectors)===null||r===void 0?void 0:r.root;i&&this.g.attr("class",i)}setContainerMargin(e){this._containerMargin=e}setConfig(e){this.prevConfig=this.config,this.config=pe(this._defaultConfig,e)}setData(e){this.datamodel.data=e}setSize(e,n,r,i){isFinite(e)&&(this._width=e),isFinite(n)&&(this._height=n),isFinite(r)&&(this._containerWidth=r),isFinite(i)&&(this._containerHeight=i)}render(e=this.config.duration){this._render(e);const n="animating";e&&(this.g.attr(n,""),this.g.transition(n).duration(e).on("end interrupt",()=>{this.g.attr(n,null)})),this._setUpComponentEventsThrottled(),this._setCustomAttributesThrottled()}get bleed(){return{top:0,bottom:0,left:0,right:0}}_render(e=this.config.duration){}_setCustomAttributes(){const e=this.config.attributes;Object.keys(e).forEach(n=>{Object.keys(e[n]).forEach(r=>{this.g.selectAll(`.${n}`).attr(r,e[n][r])})})}_setUpComponentEvents(){this._bindEvents(this.events),this._bindEvents(this.config.events,".user")}_bindEvents(e=this.events,n=""){Object.keys(e).forEach(r=>{Object.keys(e[r]).forEach(i=>{const o=this.g.selectAll(`.${r}`);o.on(i+n,(a,s)=>{const c=o.nodes(),u=c.indexOf(a.currentTarget),f=e[r][i];return f?.(s,a,u,c)})})})}destroy(){var e;(e=this.g)===null||e===void 0||e.remove(),this.element=void 0}isDestroyed(){return!this.element}}class Yg extends ui{constructor(e){super(e)}get data(){var e;return(e=this._data)!==null&&e!==void 0?e:[]}set data(e){Array.isArray(e)&&(this._data=e)}}const sr=Object.assign(Object.assign({},ws),{x:void 0,y:void 0,id:(t,e)=>{var n;return(n=t.id)!==null&&n!==void 0?n:`${e}`},color:t=>t.color,xScale:void 0,yScale:void 0,excludeFromDomainCalculation:!1});class ki extends Wg{constructor(){super(...arguments),this.datamodel=new Yg,this.clippable=!0,this.stacked=!1,this._defaultConfig=sr,this._xScale=Io.scaleLinear(),this._yScale=Io.scaleLinear()}get xScale(){return this.config.xScale||this._xScale}get yScale(){return this.config.yScale||this._yScale}setConfig(e){var n,r;!((n=this.config)===null||n===void 0)&&n.xScale&&(e.xScale=this.config.xScale),!((r=this.config)===null||r===void 0)&&r.yScale&&(e.yScale=this.config.yScale),super.setConfig(e)}setScaleDomain(e,n){var r,i;e===j.X&&((r=this._xScale)===null||r===void 0||r.domain(n)),e===j.Y&&((i=this._yScale)===null||i===void 0||i.domain(n))}setScaleRange(e,n){var r,i;e===j.X&&((r=this._xScale)===null||r===void 0||r.range(n)),e===j.Y&&((i=this._yScale)===null||i===void 0||i.range(n))}setScale(e,n){n&&e===j.X&&(this._xScale=n),n&&e===j.Y&&(this._yScale=n)}getDataExtent(e,n){const{config:r,datamodel:i}=this;switch(e){case j.X:return this.getXDataExtent();case j.Y:return this.getYDataExtent(n);default:return dn(i.data,r[e])}}getXDataExtent(){const{config:e,datamodel:n}=this;return dn(n.data,e.x)}getYDataExtent(e){const{config:n,datamodel:r}=this,i=this.xScale.domain(),o=e?Hl(r.data,i,n.x,!0):r.data,a=Ge(n.y)?n.y:[n.y];return dn(o,...a)}}var A;(function(t){t.Top="top",t.Bottom="bottom",t.Left="left",t.Right="right",t.Center="center",t.Auto="auto"})(A||(A={}));var zo;(function(t){t.Absolute="absolute",t.Fixed="fixed"})(zo||(zo={}));var Lo;(function(t){t.Inside="inside",t.Outside="outside",t.Center="center"})(Lo||(Lo={}));var jn;(function(t){t.Horizontal="horizontal",t.Vertical="vertical"})(jn||(jn={}));const Xg={components:[],container:void 0,followCursor:!0,allowHover:!1,horizontalPlacement:A.Auto,horizontalShift:0,verticalPlacement:A.Top,verticalShift:0,attributes:{},triggers:{},className:void 0,showDelay:void 0,hideDelay:void 0},cr=G`
55
- label: tooltip;
56
- display: inline-block;
57
- left: 0;
58
- bottom: 0;
59
- min-width: max-content;
60
- position: absolute;
61
- opacity: 0;
62
- transition: opacity;
63
- transition-duration: var(--vis-tooltip-transition-duration);
64
- z-index: 999999;
65
- padding: var(--vis-tooltip-padding);
66
- color: var(--vis-tooltip-text-color);
67
- border-radius: var(--vis-tooltip-border-radius);
68
- box-shadow: var(--vis-tooltip-box-shadow);
69
- border: solid 1px var(--vis-tooltip-border-color);
70
- background-color: var(--vis-tooltip-background-color);
71
- backdrop-filter: var(--vis-tooltip-backdrop-filter);
72
- `,qg=cr,Gg=Ze`
73
- :root {
74
- --vis-tooltip-background-color: rgba(255, 255, 255, 0.95);
75
- --vis-tooltip-border-color: #e5e9f7;
76
- --vis-tooltip-text-color: #000;
77
- --vis-tooltip-shadow-color: rgba(172, 179, 184, 0.35);
78
- --vis-tooltip-backdrop-filter: none;
79
- --vis-tooltip-padding: 10px 15px;
80
- --vis-tooltip-border-radius: 5px;
81
- --vis-tooltip-transition-duration: 300ms;
82
- --vis-tooltip-box-shadow: none;
83
-
84
- --vis-dark-tooltip-background-color: rgba(30,30,30, 0.95);
85
- --vis-dark-tooltip-text-color: #e5e9f7;
86
- --vis-dark-tooltip-border-color: var(--vis-color-grey);
87
- --vis-dark-tooltip-shadow-color: rgba(0,0,0, 0.95);
88
- }
89
-
90
- body.theme-dark ${`.${cr}`} {
91
- --vis-tooltip-background-color: var(--vis-dark-tooltip-background-color);
92
- --vis-tooltip-text-color: var(--vis-dark-tooltip-text-color);
93
- --vis-tooltip-border-color: var(--vis-dark-tooltip-border-color);
94
- --vis-tooltip-shadow-color: var(--vis-dark-tooltip-shadow-color);
95
- }
96
-
97
- body.theme-dark {
98
- --vis-tooltip-background-color: rgba(30,30,30, 0.95);
99
- --vis-tooltip-text-color: #e5e9f7;
100
- --vis-tooltip-border-color: var(--vis-color-grey);
101
- --vis-tooltip-shadow-color: rgba(0,0,0, 0.95);
102
- }
103
- `,bs=G`
104
- bottom: unset;
105
- position: fixed;
106
- `,_n=G`
107
- opacity: 1;
108
- `,wn=G`
109
- display: none;
110
- `,ks=G`
111
- label: non-interactive;
112
- pointer-events: none;
113
- user-select: none;
114
- `,jg=Object.freeze(Object.defineProperty({__proto__:null,hidden:wn,nonInteractive:ks,positionFixed:bs,root:cr,show:_n,tooltip:qg,variables:Gg},Symbol.toStringTag,{value:"Module"}));class Cs{constructor(e={}){this._defaultConfig=Xg,this.config=this._defaultConfig,this._setUpEventsThrottled=Rn(this._setUpEvents,500),this._setContainerPositionThrottled=Rn(this._setContainerPosition,500),this._isShown=!1,this.element=document.createElement("div"),this.div=Ft(this.element).attr("class",cr).classed(_n,!1).classed(wn,!0),this.setConfig(e),this.components=this.config.components,this._mutationObserver=new MutationObserver(()=>{this._isShown&&(!this.config.followCursor&&this._hoveredElement?this.placeByElement(this._hoveredElement):this._position&&this.place({x:this._position[0],y:this._position[1]}))}),this._mutationObserver.observe(this.div.node(),{childList:!0,subtree:!0})}setConfig(e){var n;this.prevConfig=this.config,this.config=pe(this._defaultConfig,e),this.prevConfig.horizontalPlacement!==this.config.horizontalPlacement&&this.overrideHorizontalPlacement(void 0),this.config.container&&this.config.container!==((n=this.prevConfig)===null||n===void 0?void 0:n.container)&&this.setContainer(this.config.container),this._setUpAttributes()}setContainer(e){var n;(n=this.element.parentNode)===null||n===void 0||n.removeChild(this.element),this._container=e,this._container.appendChild(this.element),this._setContainerPositionThrottled()}getContainer(){return this._container}hasContainer(){return!!this._container&&this._container.isConnected}setComponents(e){this.components=e}update(){this._container&&this._setUpEventsThrottled()}show(e,n){this.render(e),this.place(n)}_hide(){this.div.classed(_n,!1).on("transitionend",()=>{this.div.classed(wn,!this._isShown)}),this._isShown=!1}hide(){window.clearTimeout(this._showDelayTimeoutId),this.config.hideDelay?(window.clearTimeout(this._hideDelayTimeoutId),this._hideDelayTimeoutId=setTimeout(()=>this._hide(),this.config.hideDelay)):this._hide()}_display(){window.clearTimeout(this._hideDelayTimeoutId),this.div.classed(wn,!1).classed(_n,!0),this._isShown=!0}display(){this._isShown||(this.config.showDelay?(window.clearTimeout(this._showDelayTimeoutId),this._showDelayTimeoutId=setTimeout(()=>{this._display(),this.place({x:this._position[0],y:this._position[1]})},this.config.showDelay)):this._display())}place(e){if(this._position=[e.x,e.y],!this.hasContainer()){console.warn("Unovis | Tooltip: Container was not set or is not initialized yet");return}const{config:n}=this,r=this.element.offsetWidth,i=this.element.offsetHeight,o=this._overriddenHorizontalPlacement||(n.horizontalPlacement===A.Auto?A.Center:n.horizontalPlacement),a=n.verticalPlacement===A.Auto?e.y-i<0?A.Bottom:A.Top:n.verticalPlacement,s=5,c=o===A.Left?-r-s-n.horizontalShift:o===A.Center?-r/2:s+n.horizontalShift,u=a===A.Bottom?s+n.verticalShift:a===A.Center?-i/2:-s-n.verticalShift-i,[f,d]=this._constraintPosToContainer(e.x+c,e.y+u,r,i);this._applyPosition(f,d,i)}placeByElement(e){const{config:n}=this;this._hoveredElement=e;const r=5,i=this.element.offsetWidth,o=this.element.offsetHeight,a=this.isContainerBody(),s=a?window.innerWidth:this._container.scrollWidth,c=e.getBoundingClientRect(),u=a?[c.x,c.y]:An({clientX:c.x,clientY:c.y,pageX:c.x,pageY:c.y},this._container),f=this._overriddenHorizontalPlacement||(n.horizontalPlacement===A.Auto?u[0]-i<0?A.Right:u[0]+i>s?A.Left:A.Center:n.horizontalPlacement);let d=0;switch(f){case A.Left:d=-i-r-n.horizontalShift;break;case A.Right:d=c.width+r+n.horizontalShift;break;case A.Center:default:d=(-i+c.width)/2;break}const h=n.verticalPlacement===A.Auto?f!==A.Center?A.Center:u[1]-o<0?A.Bottom:A.Top:n.verticalPlacement;let g=-o;switch(h){case A.Center:g+=(o+c.height)/2;break;case A.Bottom:g+=o+c.height+r+n.verticalShift;break;case A.Top:default:g+=-r-n.verticalShift;break}const[p,m]=this._constraintPosToContainer(u[0]+d,u[1]+g,i,o);this._applyPosition(p,m,o)}isContainerBody(){return this._container===document.body}overrideHorizontalPlacement(e){this._overriddenHorizontalPlacement=e}render(e){var n;const{config:r,prevConfig:i}=this;e instanceof HTMLElement?this.div.select(":first-child").node()!==e&&this.div.html("").append(()=>e):e!==null&&this.div.html(e||""),this.div.classed((n=r.className)!==null&&n!==void 0?n:"",!!r.className).classed(ks,!r.allowHover),i?.className&&i.className!==r.className&&this.div.classed(i.className,!1),this.display()}_applyPosition(e,n,r){const i=this.isContainerBody(),o=i?window.innerHeight:this._container.scrollHeight;this.div.classed(bs,i).style("top",i?`${n}px`:"unset").style("bottom",i?"unset":`${o-n-r}px`).style("left",`${e}px`)}_constraintPosToContainer(e,n,r,i){const o=this.isContainerBody(),a=o?window.innerHeight:this._container.scrollHeight,s=o?window.innerWidth:this._container.scrollWidth,c=10,u=e>s-r-c,f=e<c,d=u?s-r-c:f?c:e,h=10,g=n>a-i-h,p=n<h,m=g?a-i-h:p?h:n;return[s<r?0:d,a<i?0:m]}_setContainerPosition(){var e;this._container!==document.body&&((e=getComputedStyle(this._container))===null||e===void 0?void 0:e.position)==="static"&&(this._container.style.position="relative")}_setUpEvents(){const{config:e}=this;this.components.forEach(n=>{const r=Ft(n.element);r.on("mousemove.tooltip",i=>{const{config:o}=this,a=i.composedPath&&i.composedPath()||i.path||[i.target];for(const s of Object.keys(o.triggers)){const c=o.triggers[s];if(!c)continue;const u=r.selectAll(`.${s}`).nodes();for(const f of a){if(f===r.node())break;if(f.classList.contains(s)){const d=u.indexOf(f),h=Ft(f).datum(),g=c(h,d,u),[p,m]=this.isContainerBody()?[i.clientX,i.clientY]:An(i,this._container);g===null?this.hide():(this.render(g),o.followCursor?this.place({x:p,y:m}):this.placeByElement(f)),i.stopPropagation();return}}}this._isShown&&this.hide()}).on("mouseleave.tooltip",i=>{i.stopPropagation(),this.hide()})}),e.allowHover?this.div.on("mouseenter.tooltip",this._display.bind(this)).on("mouseleave.tooltip",this.hide.bind(this)):this.div.on("mouseenter.tooltip",null).on("mouseleave.tooltip",null)}_setUpAttributes(){const e=this.config.attributes;e&&Object.keys(e).forEach(n=>{this.div.attr(n,e[n])})}destroy(){var e;this._mutationObserver.disconnect(),window.clearTimeout(this._hideDelayTimeoutId),window.clearTimeout(this._showDelayTimeoutId),(e=this.div)===null||e===void 0||e.remove()}}Cs.selectors=jg;function le(t,e,n,r){return Array.isArray(e)&&isFinite(n)?e[n%e.length]:Er(t,e,n)||(Xt(n)?`var(${Ut(n)})`:null)}function Zg({x:t,y:e,w:n,h:r,tl:i=!1,tr:o=!1,bl:a=!1,br:s=!1,r:c=0}){let u;u=`M${t+c},${e}h${n-2*c}`;let f=o?c:0,d=o?0:c;return u+=`a${f},${f} 0 0 1 ${f},${f}`,u+=`h${d}v${d}`,u+=`v${r-2*c}`,f=s?c:0,d=s?0:c,u+=`a${f},${f} 0 0 1 ${-f},${f}`,u+=`v${d}h${-d}`,u+=`h${2*c-n}`,f=a?c:0,d=a?0:c,u+=`a${f},${f} 0 0 1 ${-f},${-f}`,u+=`h${-d}v${-d}`,u+=`v${2*c-r}`,f=i?c:0,d=i?0:c,u+=`a${f},${f} 0 0 1 ${f},${-f}`,u+=`v${-d}h${d}`,u+="z",u}const Qg=Object.assign(Object.assign({},sr),{color:void 0,groupMaxWidth:void 0,groupWidth:void 0,dataStep:void 0,groupPadding:.05,barPadding:0,roundedCorners:2,barMinHeight:2,cursor:null,orientation:jn.Vertical}),Ss=G`
115
- label: grouped-bar-component;
116
- `,Kg=Ze`
117
- :root {
118
- --vis-grouped-bar-cursor: default;
119
- --vis-grouped-bar-fill-color: var(--vis-color-main);
120
- --vis-grouped-bar-stroke-color: none;
121
- --vis-grouped-bar-stroke-width: 0px;
122
- --vis-grouped-bar-hover-stroke-width: 1px;
123
- --vis-grouped-bar-hover-stroke-color: none;
124
-
125
-
126
- /* Dark Theme */
127
- --vis-dark-grouped-bar-stroke-color: none;
128
- }
129
-
130
- body.theme-dark ${`.${Ss}`} {
131
- --vis-grouped-bar-stroke-color: var(--vis-dark-grouped-bar-stroke-color);
132
- }
133
- `,bn=G`
134
- label: bar;
135
- fill: var(--vis-grouped-bar-fill-color);
136
- stroke: var(--vis-grouped-bar-stroke-color);
137
- stroke-width: var(--vis-grouped-bar-stroke-width);
138
- cursor: var(--vis-grouped-bar-cursor);
139
-
140
- &:hover {
141
- stroke-width: var(--vis-grouped-bar-hover-stroke-width);
142
- stroke: var(--vis-grouped-bar-hover-stroke-color);
143
- }
144
- `,Wr=G`
145
- label: barGroup;
146
- `,Ts=G`
147
- label: barGroupExit;
148
- `,Jg=Object.freeze(Object.defineProperty({__proto__:null,bar:bn,barGroup:Wr,barGroupExit:Ts,globalStyles:Kg,root:Ss},Symbol.toStringTag,{value:"Module"}));class Ms extends ki{constructor(e){super(),this._defaultConfig=Qg,this.config=this._defaultConfig,this.getAccessors=()=>Ge(this.config.y)?this.config.y:[this.config.y],this.events={},this._barData=[],e&&this.setConfig(e)}get bleed(){if(this._barData=this._getVisibleData(),this._barData.length===0)return{top:0,bottom:0,left:0,right:0};const e=!this.isVertical()&&this.dataScale.range()[0]>this.dataScale.range()[1],n=this.dataScale.domain(),r=this._getGroupWidth()/2,i=this._barData.map((g,p)=>tt(g,this.config.x,p)),o=Oe(i),a=Dr(i),s=this.dataScale(o),c=this.dataScale(a),u=this.dataScale.invert(s+(e?r:-r)),f=this.dataScale.invert(c+(e?-r:r)),d=u<=n[0]?this.dataScale(n[0])-this.dataScale(u):0,h=f>n[1]?this.dataScale(f)-this.dataScale(n[1]):0;return{top:this.isVertical()?0:e?-h:d,bottom:this.isVertical()?0:e?-d:h,left:this.isVertical()?d:0,right:this.isVertical()?h:0}}get dataScale(){return this.isVertical()?this.xScale:this.yScale}get valueScale(){return this.isVertical()?this.yScale:this.xScale}isVertical(){return this.config.orientation===jn.Vertical}_render(e){const{config:n}=this,r=Xt(e)?e:n.duration,i=this._getGroupWidth(),o=this.getAccessors(),a=[-i/2,i/2],s=nr().domain(da(o.length)).range(a).paddingInner(n.barPadding).paddingOuter(n.barPadding),c=this.g.selectAll(`.${Wr}`).data(this._barData,(b,v)=>{var k;return`${(k=Er(b,n.id,v))!==null&&k!==void 0?k:v}`}),u=(b,v)=>{const k=this.dataScale(tt(b,n.x,v)),C=this.isVertical()?k:0,y=this.isVertical()?0:k;return`translate(${C},${y})`},d=c.enter().append("g").attr("class",Wr).attr("transform",u).style("opacity",1).merge(c);mt(d,r).attr("transform",u).style("opacity",1);const h=c.exit().attr("class",Ts);mt(h,r).style("opacity",0).remove(),mt(h.selectAll(`.${bn}`),r).attr("transform",(b,v,k)=>this.isVertical()?`translate(0,${this.yScale(0)}) scale(1,0)`:`translate(${this.xScale(0)},0) scale(0,1)`);const g=s.bandwidth(),p=d.selectAll(`.${bn}`).data(b=>o.map(()=>b)),m=this._getValueAxisDirection(),_=p.enter().append("path").attr("class",bn).attr("d",(b,v)=>{const k=s(v),C=this.valueScale(0),y=g;return this._getBarPath(k,C,y,0,!1,m)}).style("fill",(b,v)=>le(b,n.color,v)).merge(p);mt(_,r).attr("d",(b,v)=>{const k=s(v),C=g,y=tt(b,o[v]),x=y<0;let E=x?this.valueScale(0):this.valueScale(y||0),O=Math.abs(this.valueScale(0)-this.valueScale(y))||0;if(O<n.barMinHeight){const B=m===Yt.North?-1:1;E=this.valueScale(0)+B*n.barMinHeight,O=n.barMinHeight}return this._getBarPath(k,E,C,O,x,m)}).style("fill",(b,v)=>le(b,n.color,v)).style("cursor",(b,v)=>Er(b,n.cursor,v)),mt(p.exit(),r).remove()}_getValueAxisDirection(){return this.valueScale.range()[0]>this.valueScale.range()[1]?Yt.North:Yt.South}_getVisibleData(){const{config:e,datamodel:{data:n}}=this,r=this._getGroupWidth(),i=n.length<2?0:r/2,o=this.dataScale,a=Math.abs(o.invert(i)-o.invert(0));return n?.filter((c,u)=>{const f=tt(c,e.x,u),d=o.domain(),h=+d[0],g=+d[1];return f>=h-a&&f<=g+a})}_getBarPath(e,n,r,i,o,a){const{config:s}=this,c=s.roundedCorners?Xt(s.roundedCorners)?+s.roundedCorners:r/2:0,u=Bt(c,0,Math.min(i,r)/2),f=a===Yt.North,d=this.isVertical()&&o!==f,h=this.isVertical()&&o===f,g=!this.isVertical()&&o,p=!this.isVertical()&&!o;return Zg({x:this.isVertical()?e:n+(f?0:-i),y:this.isVertical()?n+(f?0:-i):e,w:this.isVertical()?r:i,h:this.isVertical()?i:r,tl:d||g,tr:d||p,bl:h||g,br:h||p,r:u})}_getGroupWidth(){const{config:e,datamodel:{data:n}}=this;if(Pl(n))return 0;if(e.groupWidth)return Oe([e.groupWidth,e.groupMaxWidth]);const r=this.dataScale.bandwidth,i=this.dataScale.domain?this.dataScale.domain():[];let a=1+(r?i.length:i[1]-i[0])/e.dataStep||!r&&n.filter((u,f)=>{const d=tt(u,e.x,f);return d>=i[0]&&d<=i[1]}).length||n.length;!r&&a>=2&&(a+=1);const c=(a<2?1:1-e.groupPadding)*(this.isVertical()?this._width:this._height)/a;return Oe([c,e.groupMaxWidth])}getValueScaleExtent(e){const{datamodel:n}=this,r=this.getAccessors(),i=e?this._getVisibleData():n.data,o=ga(i,...r),a=pa(i,...r);return[o>0?0:o,a<0?0:a]}getDataScaleExtent(){const{config:e,datamodel:n}=this;return dn(n.data,e.x)}getYDataExtent(e){return this.isVertical()?this.getValueScaleExtent(e):this.getDataScaleExtent()}getXDataExtent(){return this.isVertical()?this.getDataScaleExtent():this.getValueScaleExtent(!1)}}Ms.selectors=Jg;function tp(t){return t}var kn=1,Cn=2,Yr=3,$e=4,Po=1e-6;function ep(t){return"translate("+t+",0)"}function np(t){return"translate(0,"+t+")"}function rp(t){return e=>+t(e)}function ip(t,e){return e=Math.max(0,t.bandwidth()-e*2)/2,t.round()&&(e=Math.round(e)),n=>+t(n)+e}function op(){return!this.__axis}function lr(t,e){var n=[],r=null,i=null,o=6,a=6,s=3,c=typeof window<"u"&&window.devicePixelRatio>1?0:.5,u=t===kn||t===$e?-1:1,f=t===$e||t===Cn?"x":"y",d=t===kn||t===Yr?ep:np;function h(g){var p=r??(e.ticks?e.ticks.apply(e,n):e.domain()),m=i??(e.tickFormat?e.tickFormat.apply(e,n):tp),w=Math.max(o,0)+s,_=e.range(),b=+_[0]+c,v=+_[_.length-1]+c,k=(e.bandwidth?ip:rp)(e.copy(),c),C=g.selection?g.selection():g,y=C.selectAll(".domain").data([null]),x=C.selectAll(".tick").data(p,e).order(),E=x.exit(),O=x.enter().append("g").attr("class","tick"),B=x.select("line"),N=x.select("text");y=y.merge(y.enter().insert("path",".tick").attr("class","domain").attr("stroke","currentColor")),x=x.merge(O),B=B.merge(O.append("line").attr("stroke","currentColor").attr(f+"2",u*o)),N=N.merge(O.append("text").attr("fill","currentColor").attr(f,u*w).attr("dy",t===kn?"0em":t===Yr?"0.71em":"0.32em")),g!==C&&(y=y.transition(g),x=x.transition(g),B=B.transition(g),N=N.transition(g),E=E.transition(g).attr("opacity",Po).attr("transform",function(M){return isFinite(M=k(M))?d(M+c):this.getAttribute("transform")}),O.attr("opacity",Po).attr("transform",function(M){var R=this.parentNode.__axis;return d((R&&isFinite(R=R(M))?R:k(M))+c)})),E.remove(),y.attr("d",t===$e||t===Cn?a?"M"+u*a+","+b+"H"+c+"V"+v+"H"+u*a:"M"+c+","+b+"V"+v:a?"M"+b+","+u*a+"V"+c+"H"+v+"V"+u*a:"M"+b+","+c+"H"+v),x.attr("opacity",1).attr("transform",function(M){return d(k(M)+c)}),B.attr(f+"2",u*o),N.attr(f,u*w).text(m),C.filter(op).attr("fill","none").attr("font-size",10).attr("font-family","sans-serif").attr("text-anchor",t===Cn?"start":t===$e?"end":"middle"),C.each(function(){this.__axis=k})}return h.scale=function(g){return arguments.length?(e=g,h):e},h.ticks=function(){return n=Array.from(arguments),h},h.tickArguments=function(g){return arguments.length?(n=g==null?[]:Array.from(g),h):n.slice()},h.tickValues=function(g){return arguments.length?(r=g==null?null:Array.from(g),h):r&&r.slice()},h.tickFormat=function(g){return arguments.length?(i=g,h):i},h.tickSize=function(g){return arguments.length?(o=a=+g,h):o},h.tickSizeInner=function(g){return arguments.length?(o=+g,h):o},h.tickSizeOuter=function(g){return arguments.length?(a=+g,h):a},h.tickPadding=function(g){return arguments.length?(s=+g,h):s},h.offset=function(g){return arguments.length?(c=+g,h):c},h}function Uo(t){return lr(kn,t)}function Ho(t){return lr(Cn,t)}function Wo(t){return lr(Yr,t)}function Yo(t){return lr($e,t)}var qt;(function(t){t.Start="start",t.Middle="middle",t.End="end"})(qt||(qt={}));var ee;(function(t){t.Top="top",t.Middle="middle",t.Bottom="bottom"})(ee||(ee={}));var $t;(function(t){t.Wrap="wrap",t.Trim="trim"})($t||($t={}));var wt;(function(t){t.Left="left",t.Center="center",t.Right="right"})(wt||(wt={}));var Sn={exports:{}},ap=Sn.exports,Xo;function sp(){return Xo||(Xo=1,(function(t){(function(e){if(typeof n!="function"){var n=function(p){return p};n.nonNative=!0}const r=n("plaintext"),i=n("html"),o=n("comment"),a=/<(\w*)>/g,s=/<\/?([^\s\/>]+)/;function c(p,m,w){p=p||"",m=m||[],w=w||"";let _=f(m,w);return d(p,_)}function u(p,m){p=p||[],m=m||"";let w=f(p,m);return function(b){return d(b||"",w)}}c.init_streaming_mode=u;function f(p,m){return p=h(p),{allowable_tags:p,tag_replacement:m,state:r,tag_buffer:"",depth:0,in_quote_char:""}}function d(p,m){if(typeof p!="string")throw new TypeError("'html' parameter must be a string");let w=m.allowable_tags,_=m.tag_replacement,b=m.state,v=m.tag_buffer,k=m.depth,C=m.in_quote_char,y="";for(let x=0,E=p.length;x<E;x++){let O=p[x];if(b===r)O==="<"?(b=i,v+=O):y+=O;else if(b===i)switch(O){case"<":if(C)break;k++;break;case">":if(C)break;if(k){k--;break}C="",b=r,v+=">",w.has(g(v))?y+=v:y+=_,v="";break;case'"':case"'":O===C?C="":C=C||O,v+=O;break;case"-":v==="<!-"&&(b=o),v+=O;break;case" ":case`
149
- `:if(v==="<"){b=r,y+="< ",v="";break}v+=O;break;default:v+=O;break}else b===o&&(O===">"?(v.slice(-2)=="--"&&(b=r),v=""):v+=O)}return m.state=b,m.tag_buffer=v,m.depth=k,m.in_quote_char=C,y}function h(p){let m=new Set;if(typeof p=="string"){let w;for(;w=a.exec(p);)m.add(w[1])}else!n.nonNative&&typeof p[n.iterator]=="function"?m=new Set(p):typeof p.forEach=="function"&&p.forEach(m.add,m);return m}function g(p){let m=s.exec(p);return m?m[1].toLowerCase():null}t.exports?t.exports=c:e.striptags=c})(ap)})(Sn)),Sn.exports}var cp=sp();const lp=Qu(cp);function up(t){switch(t){case wt.Center:return"middle";case wt.Right:return"end";case wt.Left:default:return"start"}}const fp=t=>{switch(t){case wt.Left:return"start";case wt.Right:return"end";case wt.Center:return"middle";default:return null}};function dp(t){return t.replace(/-([a-z])/g,(e,n)=>n.toUpperCase())}function hp(t){var e;return(e=t.match(/[A-Z]{2,}(?=[A-Z][a-z0-9]*|\b)|[A-Z]?[a-z0-9]*|[A-Z]|[0-9]+/g))===null||e===void 0?void 0:e.filter(Boolean).map(n=>n.toLowerCase()).join("-")}function gp(t){return t.replace(/['"]/g,"&#39;").replace(/\u0000/g,"\\0").replace(/\n/g,"\\n").replace(/\r/g,"\\r").replace(/\v/g,"\\v").replace(/\t/g,"\\t").replace(/\f/g,"\\f")}function pp(t,e=15){return t?t.length>e?`…${t.substr(t.length-e,e)}`:t:""}function mp(t,e=15){if(!t)return"";const n=Math.floor((e-3)/2);return t.length>e?`${t.substr(0,n)}…${t.substr(-n,n)}`:t}function vp(t,e=15){return t?t.length>e?`${t.substr(0,e)}…`:t:""}function yp(t,e=15,n=qt.Middle){if(!t)return"";let r=vp(t,e);return n===qt.Start?r=pp(t,e):n===qt.Middle&&(r=mp(t,e)),r}function Ds(t,e=[" "]){let n=[t];for(let r=0;r<e.length;r++){const i=e[r];n.forEach((o,a)=>{const s=o.split(i),c=s.map((u,f)=>`${u}${f===s.length-1?"":i}`);n[a]=c}),n=Ar(n)}return n}function xp(t,e,n=[" ","-",".",","]){const r=t.text();if(!r)return;const i=Ge(n)?n:[n],o=Ds(r,i),a=parseFloat(t.attr("x"))||0;t.text("");let s=t.append("tspan").attr("x",a),c=`${o[0]}`;s.text(c),o.forEach((u,f)=>{if(f===0)return;const d=`${c}${u}`;s.text(d),s.node().getComputedTextLength()>e?(s.text(c.trim()),s=t.append("tspan").attr("x",a).attr("dy","1.2em").text(u),c=u):c+=u})}function qo(t,e,n,r,i,o){var a;e===void 0&&(e=50),n===void 0&&(n=qt.Middle),i===void 0&&(i=+((a=window.getComputedStyle(t.node()))===null||a===void 0?void 0:a.fontSize)||0),o===void 0&&(o=za());const s=t.text()||"",c=s.length,u=i*c*o,d=Math.ceil(c*e/(1.1*u));return d<c?(t.text(yp(s,d,n)),!0):!1}function Tn(t,e,n=za()){return t.length*e*n||0}function Mn(t,e,n){const r="http://www.w3.org/2000/svg",i=document.createElementNS(r,"svg"),o=document.createElementNS(r,"text");o.textContent=t,o.setAttribute("font-size",`${n}`),o.setAttribute("font-family",e),i.appendChild(o),document.body.appendChild(i);const a=o.getComputedTextLength();return document.body.removeChild(i),a}function _p(t,e=void 0,n=!0,r=Fa,i=!1){var o,a,s;const c=`${t.text}`;if(!c)return[];const u=(o=t.fontSize)!==null&&o!==void 0?o:Fe.fontSize,f=(a=t.fontFamily)!==null&&a!==void 0?a:Fe.fontFamily,d=(s=t.fontWidthToHeightRatio)!==null&&s!==void 0?s:Fe.fontWidthToHeightRatio,h=Array.isArray(r)?r:[r];return c.split(`
150
- `).map(p=>{const m=[];if(!e)return[p];const w=Ds(p,h);let _="";for(let b=0;b<w.length;b+=1){(n?Tn(_+w[b],u,d):Mn(_+w[b],f,u))<e||b===0?_+=w[b]:(m.push(_.trim()),_=w[b]);const k=2;if(i)for(;_.trim().length>k&&(n?Tn(_,u,d):Mn(_,f,u))>e;){let y=_.trim().length-k;for(;y>0;){const x=`${_.substring(0,y)}${Ia}`;if((n?Tn(x,u,d):Mn(x,f,u))<=e||y===1){m.push(x.trim()),_=_.substring(y);break}y--}}}return _&&m.push(_.trim()),m}).flat()}function wp(t,e=void 0,n=void 0,r=!0,i=Fa,o=!1){const a=Array.isArray(t)?t.map(d=>pe(Fe,d)):[pe(Fe,t)],s=a.map(d=>_p(d,e,r,i,o)),c=a[0];let u=-c.fontSize*(c.lineHeight-1);const f=[];return a.forEach((d,h)=>{var g;let p=s[h];const m=h>0?f[h-1]:void 0,w=m?m.marginBottom:0,_=d.marginTop,b=Math.max(w,_);u+=b;const v=d.fontSize*d.lineHeight;let k=0;for(let C=0;C<p.length;C+=1){let y=p[C];u+=v;const x=`${y} …`,E=r?Tn(x,d.fontSize,d.fontWidthToHeightRatio):Mn(x,d.fontFamily,d.fontSize);if(k=Math.max(E,k),n&&u+v>n&&C!==p.length-1){y.charAt(y.length-1)===Ia&&(y=y.substr(0,p[C].length-1)),E<e?p[C]=x:p[C]=`${p[C].substr(0,p[C].length-2)}…`,p=p.slice(0,C+1);break}}f.push(Object.assign(Object.assign({},d),{_lines:p,_estimatedHeight:u-(m?._estimatedHeight||0),_maxWidth:Math.max(k,(g=m?._maxWidth)!==null&&g!==void 0?g:0)}))}),f}function bp(t,e=0,n){return t.map((r,i)=>{const o=i>0?t[i-1]:void 0,a=o?o.marginBottom/o.fontSize:0,s=r.marginTop/r.fontSize,c=Math.max(a,s),u={fontSize:r.fontSize,fontFamily:r.fontFamily,fontWeight:r.fontWeight,fill:r.color,y:i===0&&n};return`<tspan xmlns="http://www.w3.org/2000/svg" ${Object.entries(u).filter(([d,h])=>h).map(([d,h])=>`${hp(d)}="${gp(h.toString())}"`).join(" ")}>${r._lines.map((d,h)=>{let g;return i===0&&h===0?g=.8+c:h===0?g=c+r.lineHeight:g=r.lineHeight,`<tspan x="${e}" dy="${g}em">${d.length?d:" "}</tspan>`}).join("")}</tspan>`})}function kp(t){return Il(t,e=>e._estimatedHeight)}const Cp=["text","tspan","textPath","altGlyph","altGlyphDef","altGlyphItem","glyphRef","textRef","textArea"];function Sp(t,e,n,r){var i,o;const a=wp(e,n.width,void 0,n.fastMode,n.separator,n.wordBreak),s=(i=n.x)!==null&&i!==void 0?i:+t.getAttribute("x"),c=(o=n.y)!==null&&o!==void 0?o:+t.getAttribute("y"),u=s??0;let f=c??0;if(n.textAlign&&t.setAttribute("text-anchor",up(n.textAlign)),n.verticalAlign&&n.verticalAlign!==ee.Top){const d=kp(a),h=n.verticalAlign===ee.Middle?-d/2:n.verticalAlign===ee.Bottom?-d:0;f+=h}n.textRotationAngle?t.setAttribute("transform",`rotate(${n.textRotationAngle===0||n.textRotationAngle?n.textRotationAngle:0} ${u} ${f})`):t.removeAttribute("transform");{const d=new DOMParser;t.textContent="",a.forEach(h=>{const g=bp([h],u,f).join(""),p=lp(g,Cp),m=d.parseFromString(p,"image/svg+xml").firstChild;t.appendChild(m)})}}const Tp=Object.assign(Object.assign({},sr),{position:void 0,type:void 0,label:void 0,labelFontSize:null,labelTextFitMode:$t.Wrap,labelTextTrimType:qt.Middle,gridLine:!0,tickLine:!0,domainLine:!0,numTicks:void 0,minMaxTicksOnly:!1,minMaxTicksOnlyWhenWidthIsLess:250,minMaxTicksOnlyShowGridLines:!1,tickTextWidth:void 0,tickTextSeparator:void 0,tickTextForceWordBreak:!1,tickTextTrimType:qt.Middle,tickTextFitMode:$t.Wrap,tickTextFontSize:null,tickTextAlign:void 0,tickTextColor:null,tickTextAngle:void 0,labelMargin:8,labelColor:null,tickFormat:void 0,tickValues:void 0,fullSize:!0,tickPadding:8,tickTextHideOverlapping:void 0});function Mp(t,e){const n="--vis-",r=Object.entries(t);return Object.fromEntries(r.map(([i])=>[dp(i.replace(n,"")),i]))}function Dp(t,e){Ze({":root":t,[`body.theme-dark .${e}`]:Object.keys(t).filter(n=>n.includes("--vis-dark")).map(n=>({[n.replace("--vis-dark","--vis")]:`var(${n})`}))})}const As=G`
151
- label: axis-component;
152
- `,Ci={"--vis-axis-tick-color":"#e8e9ef","--vis-axis-grid-color":"#e8e9ef","--vis-axis-grid-line-width":"1px","--vis-axis-grid-line-dasharray":"none","--vis-axis-label-font-size":"14px","--vis-axis-label-color":"#6c778c","--vis-axis-label-weight":"500","--vis-axis-tick-label-color":"#6c778c","--vis-axis-tick-label-font-size":"12px","--vis-axis-tick-label-weight":"500","--vis-axis-tick-label-cursor":"default","--vis-axis-tick-label-text-decoration":"none","--vis-axis-tick-line-width":"1px","--vis-axis-tick-label-hide-transition":"opacity 400ms ease-in-out","--vis-dark-axis-tick-color":"#6c778c","--vis-dark-axis-tick-label-color":"#e8e9ef","--vis-dark-axis-grid-color":"#6c778c","--vis-dark-axis-label-color":"#fefefe"},Ap=Mp(Ci);Dp(Ci,As);const Si=G`
153
- label: hide-tick-line;
154
- `,Ti=G`
155
- label: hide-domain;
156
- `,Es=G`
157
- label: axis;
158
-
159
- user-select: none;
160
-
161
- .domain {
162
- stroke: var(--vis-axis-domain-color, var(--vis-axis-tick-color));
163
- stroke-width: var(--vis-axis-domain-line-width, var(--vis-axis-grid-line-width));
164
- stroke-dasharray: var(--vis-axis-domain-line-dasharray, var(--vis-axis-grid-line-dasharray));
165
- }
166
-
167
- &${`.${Si}`} {
168
- .tick > line {
169
- opacity: 0;
170
- }
171
- }
172
-
173
- &${`.${Ti}`} {
174
- .domain {
175
- opacity: 0;
176
- }
177
- }
178
- `,Ns=G`
179
- label: grid;
180
-
181
- .domain {
182
- opacity: 0;
183
- }
184
-
185
- line {
186
- stroke: var(--vis-axis-grid-color);
187
- stroke-width: var(--vis-axis-grid-line-width);
188
- stroke-dasharray: var(--vis-axis-grid-line-dasharray);
189
- }
190
- `,$s=G`
191
- label: tick;
192
-
193
- stroke: none;
194
- font-size: var(--vis-axis-tick-label-font-size);
195
- font-weight: var(--vis-axis-tick-label-weight);
196
-
197
- line {
198
- stroke: var(--vis-axis-tick-color);
199
- stroke-width: var(--vis-axis-tick-line-width);
200
- }
201
-
202
- text {
203
- fill: var(--vis-axis-tick-label-color);
204
- cursor: var(--vis-axis-tick-label-cursor);
205
- font-family: var(--vis-axis-font-family, var(--vis-font-family));
206
- text-decoration: var(--vis-axis-tick-label-text-decoration);
207
- stroke: none;
208
- }
209
- `,Xr=G`
210
- label: tick-text-exiting;
211
- `,qr=G`
212
- label: label;
213
- fill: var(--vis-axis-label-color);
214
- font-size: var(--vis-axis-label-font-size);
215
- font-weight: var(--vis-axis-label-weight);
216
- font-family: var(--vis-axis-font-family, var(--vis-font-family));
217
- text-anchor: middle;
218
- `,Rs=G`
219
- label: tick-label;
220
- `,Bs=G`
221
- label: tick-label-hideable;
222
- opacity: 0;
223
- transition: var(--vis-axis-tick-label-hide-transition);
224
- `,Ep=Object.freeze(Object.defineProperty({__proto__:null,axis:Es,cssVarDefaults:Ci,grid:Ns,hideDomain:Ti,hideTickLine:Si,label:qr,root:As,tick:$s,tickLabel:Rs,tickLabelHideable:Bs,tickTextExiting:Xr,variables:Ap},Symbol.toStringTag,{value:"Module"}));class Os extends ki{constructor(e){super(),this._defaultConfig=Tp,this.config=this._defaultConfig,this._defaultNumTicks=3,this.events={},e&&this.setConfig(e),this.axisGroup=this.g.append("g"),this.gridGroup=this.g.append("g").attr("class",Ns)}preRender(){const{config:e}=this,n=this.g.append("g").attr("opacity",0);this._renderAxis(n,0),this._axisRawBBox=n.node().getBBox(),e.tickTextAlign&&this._alignTickLabels(),this._renderAxisLabel(n),this._axisSizeBBox=this._getAxisSize(n),this._requiredMargin=this._getRequiredMargin(this._axisSizeBBox),n.remove()}getPosition(){const{config:{type:e,position:n}}=this;return n??(e===L.X?A.Bottom:A.Left)}_getAxisSize(e){return e.node().getBBox()}_getRequiredMargin(e=this._axisSizeBBox){const{config:{type:n,position:r}}=this;switch(n){case L.X:{const o=this._axisSizeBBox.x+this._axisSizeBBox.width,a=this._axisSizeBBox.x<0?Math.abs(this._axisSizeBBox.x):0,s=o-this._width>1?o-this._width:0;switch(r){case A.Top:return{top:e.height,left:a,right:s};case A.Bottom:default:return{bottom:e.height,left:a,right:s}}}case L.Y:{const i=e.height>this._height?(e.height-this._height)/2:0,o=i,a=i;switch(r){case A.Right:return{right:e.width,top:o,bottom:a};case A.Left:default:return{left:e.width,top:o,bottom:a}}}}}getRequiredMargin(){return this._requiredMargin}getOffset(e){const{config:{type:n,position:r}}=this;switch(n){case L.X:switch(r){case A.Top:return{top:e.top,left:e.left};case A.Bottom:default:return{top:e.top+this._height,left:e.left}}case L.Y:switch(r){case A.Right:return{top:e.top,left:e.left+this._width};case A.Left:default:return{top:e.top,left:e.left}}}}_render(e=this.config.duration,n=this.axisGroup){const{config:r}=this;if(this._renderAxis(n,e),this._renderAxisLabel(n),r.gridLine){const i=this._buildGrid();this.gridGroup.selectAll("*").interrupt(),mt(this.gridGroup,e).call(i).style("opacity",1)}else mt(this.gridGroup,e).style("opacity",0);r.tickTextAlign&&this._alignTickLabels(),this._resolveTickLabelOverlap(n)}_buildAxis(){const{config:{type:e,position:n,tickPadding:r}}=this,i=this._getNumTicks();switch(e){case L.X:switch(n){case A.Top:return Uo(this.xScale).ticks(i).tickPadding(r);case A.Bottom:default:return Wo(this.xScale).ticks(i).tickPadding(r)}case L.Y:switch(n){case A.Right:return Ho(this.yScale).ticks(i).tickPadding(r);case A.Left:default:return Yo(this.yScale).ticks(i).tickPadding(r)}}}_buildGrid(){const{config:e}=this;let n;switch(e.type){case L.X:switch(e.position){case A.Top:{n=Uo(this.xScale);break}case A.Bottom:default:{n=Wo(this.xScale);break}}n.tickSize(-this._height);break;case L.Y:switch(e.position){case A.Right:{n=Ho(this.yScale);break}case A.Left:default:{n=Yo(this.yScale);break}}n.tickSize(-this._width)}n.tickSizeOuter(0).tickFormat(()=>"");const r=this._getNumTicks()*2,i=n.scale(),o=i.domain(),a=()=>{if(!e.minMaxTicksOnlyShowGridLines)return o;const c=i.ticks(r);if(c.length<2)return o;const u=+c[1]-+c[0],f=o[1];return+f-+c[c.length-1]>u/2?[...c,f]:c},s=e.tickValues?this._getConfiguredTickValues():this._shouldRenderMinMaxTicksOnly()?a():i.ticks(r);return n.tickValues(s),n}_renderAxis(e=this.axisGroup,n=this.config.duration){const{config:r}=this,i=this._buildAxis(),o=i.scale(),a=r.tickValues?this._getConfiguredTickValues():this._shouldRenderMinMaxTicksOnly()?o.domain():o.ticks(this._getNumTicks()),s=a.length;i.tickValues(a),e.selectAll("*").interrupt(),mt(e,n).call(i).on("end",()=>{this._resolveTickLabelOverlap(e)}),e.selectAll("g.tick").classed($s,!0).style("font-size",r.tickTextFontSize);const f=e.selectAll("g.tick > text").filter(d=>a.some(h=>ne(d,h))).classed(Rs,!0).classed(Bs,!!r.tickTextHideOverlapping).style("fill",r.tickTextColor);if(e.selectAll("g.tick > text").filter(d=>!a.some(h=>ne(d,h))).classed(Xr,!0),f.nodes().forEach(d=>ai(d)),f.each((d,h,g)=>{var p,m;let w=(m=(p=r.tickFormat)===null||p===void 0?void 0:p.call(r,d,h,a))!==null&&m!==void 0?m:`${d}`;const _=g[h],b=r.tickTextWidth||(r.type===L.X?this._containerWidth/(s+1):this._containerWidth/5),v=getComputedStyle(_),k=Number.parseFloat(v.fontSize),C=v.fontFamily,y={verticalAlign:r.type===L.X?ee.Top:ee.Middle,width:b,textRotationAngle:r.tickTextAngle,separator:r.tickTextSeparator,wordBreak:r.tickTextForceWordBreak};if(r.tickTextFitMode===$t.Trim){const E=Ft(_).text(w);qo(E,b,r.tickTextTrimType,!0,k,.58),w=Ft(_).text()}Sp(_,{text:w,fontFamily:C,fontSize:k},y)}),e.classed(Es,!0).classed(Si,!r.tickLine).classed(Ti,!r.domainLine),r.fullSize){const d=this._getFullDomainPath(0);mt(e.select(".domain"),n).attr("d",d)}}_resolveTickLabelOverlap(e=this.axisGroup){const{config:n}=this,r=e.selectAll(`g.tick > text:not(.${Xr})`);if(!n.tickTextHideOverlapping){r.style("opacity",null);return}cancelAnimationFrame(this._collideTickLabelsAnimFrameId),this._collideTickLabelsAnimFrameId=requestAnimationFrame(()=>{this._collideTickLabels(r)})}_collideTickLabels(e){e.each((r,i,o)=>{const a=o[i];a._visible=!0});const n=3;for(let r=0;r<n;r+=1)e.each((i,o,a)=>{const s=a[o];if(!s._visible)return;const u=s.getBoundingClientRect();for(let f=o+1;f<a.length;f+=1){if(o===f)continue;const d=a[f];if(d._visible){const g=d.getBoundingClientRect();if(ef(u,g,-5)){d._visible=!1;break}}}});e.each((r,i,o)=>{const a=o[i];Ft(a).style("opacity",a._visible?1:0)})}_getNumTicks(){const{config:{type:e,numTicks:n}}=this;if(n)return n;if(e===L.X){const r=this.xScale.range(),i=r[1]-r[0];return Math.floor(i/175)}if(e===L.Y){const r=this.yScale.range(),i=Math.abs(r[0]-r[1]);return Math.pow(i,.85)/25}return this._defaultNumTicks}_getConfiguredTickValues(){const{config:e}=this,n=e.type===L.X?this.xScale:this.yScale,r=n?.domain();return e.tickValues?e.tickValues.filter(i=>i>=r[0]&&i<=r[1]):null}_shouldRenderMinMaxTicksOnly(){const{config:e}=this;return e.minMaxTicksOnly||e.type===L.X&&this._width<e.minMaxTicksOnlyWhenWidthIsLess}_getFullDomainPath(e=0){const{config:{type:n}}=this;switch(n){case L.X:return`M0.5, ${e} V0.5 H${this._width+.5} V${e}`;case L.Y:return`M${-e}, ${this._height+.5} H0.5 V0.5 H${-e}`}}_renderAxisLabel(e=this.axisGroup){var n;const{type:r,label:i,labelMargin:o,labelFontSize:a,labelTextFitMode:s}=this.config;if(e.selectAll(`.${qr}`).remove(),!i)return;const c=this.getPosition(),{width:u,height:f}=(n=this._axisRawBBox)!==null&&n!==void 0?n:e.node().getBBox(),d=r===L.Y?-90:0,h=e.append("text").attr("class",qr).attr("dy",`${this._getLabelDY()}em`).style("font-size",a).style("fill",this.config.labelColor);h.text(i);let g=!1;if(s===$t.Wrap){const k=r===L.Y?this._height:this._width;h.node().getComputedTextLength()>k&&(xp(h,k),g=!0)}let p=u,m=f;if(s===$t.Wrap){const k=h.node().getBBox();p=k.width,m=k.height}else{const k=r===L.X?p:m,C=getComputedStyle(h.node()),y=Number.parseFloat(C.fontSize);qo(h,k,this.config.labelTextTrimType,!0,y);const x=h.node().getBBox();p=x.width,m=x.height}const w=r===L.X?this._width/2:r===L.Y&&s===$t.Wrap&&g?c===A.Left?-u-m/2-10:u:Math.pow(-1,+(c===A.Left))*u,_=r===L.Y?this._height/2:r===L.X&&s===$t.Wrap?c===A.Top?-f-m/2:f:Math.pow(-1,+(c===A.Top))*f,b=r===L.X?0:Math.pow(-1,+(c===A.Left))*o,v=r===L.X?Math.pow(-1,+(c===A.Top))*o:0;h.attr("transform",`translate(${w+b},${_+v}) rotate(${d})`)}_getLabelDY(){const{type:e,position:n}=this.config;switch(e){case L.X:switch(n){case A.Top:return 0;case A.Bottom:default:return .75}case L.Y:switch(n){case A.Right:return .75;case A.Left:default:return-.25}}}_alignTickLabels(){const{config:{type:e,tickTextAlign:n,tickTextAngle:r,position:i}}=this,o=this.g.selectAll("g.tick > text"),a=fp(n),s=e===L.X?0:this._getYTickTextTranslate(n,i),c=r?`translate(${s},0) rotate(${r})`:`translate(${s},0)`;o.attr("transform",c).attr("text-anchor",a)}_getYTickTextTranslate(e,n=A.Left){var r,i,o,a;const s=this.config.tickPadding+1,c=((a=(i=(r=this._axisRawBBox)===null||r===void 0?void 0:r.width)!==null&&i!==void 0?i:(o=this.axisGroup.node())===null||o===void 0?void 0:o.getBBox().width)!==null&&a!==void 0?a:0)-s;switch(e){case wt.Left:return n===A.Left?c*-1:0;case wt.Right:return n===A.Left?0:c;case wt.Center:return n===A.Left?c*-.5:c*.5;default:return 0}}}Os.selectors=Ep;const Np=Object.assign(Object.assign({},sr),{yStacked:void 0,baseline:null,duration:100,tooltip:void 0,template:(t,e,n,r)=>"",hideWhenFarFromPointer:!0,hideWhenFarFromPointerDistance:100,snapToData:!0,getCircles:void 0,color:void 0,strokeColor:void 0,strokeWidth:void 0,onCrosshairMove:void 0,forceShowAt:void 0,skipRangeCheck:!1}),$p=Ze`
225
- :root {
226
- --vis-crosshair-line-stroke-color: #888;
227
- --vis-crosshair-line-stroke-width: 1px;
228
- --vis-crosshair-line-stroke-opacity: 1;
229
- --vis-crosshair-circle-stroke-color: #fff;
230
- --vis-crosshair-circle-stroke-width: 1px;
231
- --vis-crosshair-circle-stroke-opacity: 0.75;
232
- }
233
- `,Rp=G`
234
- label: crosshair-component;
235
- `,Vs=G`
236
- stroke: var(--vis-crosshair-line-stroke-color);
237
- stroke-width: var(--vis-crosshair-line-stroke-width);
238
- stroke-opacity: var(--vis-crosshair-line-stroke-opacity);
239
- pointer-events: none;
240
- `,Fs=G`
241
- stroke: var(--vis-crosshair-circle-stroke-color);
242
- stroke-width: var(--vis-crosshair-circle-stroke-width);
243
- stroke-opacity: var(--vis-crosshair-circle-stroke-opacity);
244
- pointer-events: none;
245
- `,Bp=Object.freeze(Object.defineProperty({__proto__:null,circle:Fs,globalStyles:$p,line:Vs,root:Rp},Symbol.toStringTag,{value:"Module"}));class Is extends ki{constructor(e){super(),this.clippable=!0,this._defaultConfig=Np,this.config=this._defaultConfig,this._xPx=void 0,this._yPx=void 0,this._mouseEvent=void 0,this._animFrameId=null,this._accessors={x:void 0,y:void 0,yStacked:void 0,baseline:void 0},e&&this.setConfig(e),this.g.style("opacity",0),this.line=this.g.append("line").attr("class",Vs)}set accessors(e){this._accessors=e}get accessors(){var e;const{config:n}=this,r=!!(n.x||n.y||n.yStacked),i=r?n.x:this._accessors.x,o=r?n.y:this._accessors.y,a=o?Ge(o)?o:[o]:void 0,s=r?n.yStacked:this._accessors.yStacked,c=(e=n.baseline)!==null&&e!==void 0?e:this._accessors.baseline;return{x:i,y:a,yStacked:s,baseline:c}}_isContainerInViewport(){var e;if(!(!((e=this.container)===null||e===void 0)&&e.node()))return!1;const n=this.container.node().getBoundingClientRect(),r=window.innerWidth||document.documentElement.clientWidth,i=window.innerHeight||document.documentElement.clientHeight,o=Math.max(0,Math.min(n.right,r)-Math.max(n.left,0)),a=Math.max(0,Math.min(n.bottom,i)-Math.max(n.top,0)),s=n.width*n.height,c=o*a;return s>0&&c/s>=.35}setContainer(e){this.container!==e&&(this.container=e,this.container.on("mousemove.crosshair",this._onMouseMove.bind(this)),this.container.on("mouseout.crosshair",this._onMouseOut.bind(this)),this.container.on("wheel.crosshair",this._onWheel.bind(this)))}_render(e){var n,r,i,o,a;const{config:s,datamodel:c}=this,u=Xt(e)?e:s.duration,f=s.forceShowAt!==void 0,d=f?this.xScale(s.forceShowAt):this._xPx,h=this.xScale.invert(d),g=!((n=c.data)===null||n===void 0)&&n.length&&this.accessors.x?c.data.indexOf(Bn(c.data,h,this.accessors.x,Rt.Left)):void 0;let p,m;s.snapToData&&(!this.accessors.y&&!this.accessors.yStacked&&(!((r=c.data)===null||r===void 0)&&r.length)&&console.warn("Unovis | Crosshair: Y accessors have not been configured. Please check if they're present in the configuration object"),!(!((i=c.data)===null||i===void 0)&&i.length)&&this._mouseEvent&&console.warn("Unovis | Crosshair: No data to snap to. Make sure the data has been passed to the container or to the crosshair itself"),p=Bn(c.data,h,this.accessors.x),m=c.data.indexOf(p));const w=this.xScale.range(),_=this.yScale.range(),b=s.snapToData&&p?Bt(Math.round(this.xScale(tt(p,this.accessors.x,m))),0,this._width):Bt(d,w[0],w[1]),v=d>=w[0]&&d<=w[1],k=this._yPx>=Math.min(_[0],_[1])&&this._yPx<=Math.max(_[0],_[1]);let C=s.skipRangeCheck?!!this._xPx:this._xPx?v&&k:v;s.hideWhenFarFromPointer&&Math.abs(b-+d)>=s.hideWhenFarFromPointerDistance&&(C=!1);const y=(o=s.tooltip)!==null&&o!==void 0?o:this.tooltip;if(C&&y&&this._isContainerInViewport()){const B=y.getContainer()||this.container.node(),N=y.isContainerBody();if(f){const M=this.container.node().getBoundingClientRect(),R=(N?d+M.left:d)+this._containerMargin.left,F=this._height/2+(N?M.top:0),Q=[R,F];this._showTooltip(p,h,Q,g)}else if(this._mouseEvent){const M=N?[this._mouseEvent.clientX,this._mouseEvent.clientY]:An(this._mouseEvent,B);this._showTooltip(p,h,M,g)}}else this._hideTooltip();if(this._mouseEvent&&((a=s.onCrosshairMove)===null||a===void 0||a.call(s,C?this.xScale.invert(this._xPx):void 0,p,m,this._mouseEvent),this._mouseEvent=void 0),mt(this.g,u).style("opacity",C?1:0),!isFinite(d))return;this.line.attr("y1",0).attr("y2",this._height),mt(this.line,u,ho).attr("x1",b).attr("x2",b);const x=Qr(s.getCircles)?s.getCircles(h,c.data,this.yScale,g):this.getCircleData(p,m),E=this.g.selectAll("circle").data(x,(B,N)=>{var M;return(M=B.id)!==null&&M!==void 0?M:N}),O=E.enter().append("circle").attr("class",Fs).attr("r",0).attr("cx",b).attr("cy",B=>B.y).style("fill",B=>B.color).style("stroke",B=>B.strokeColor).style("stroke-width",B=>B.strokeWidth);mt(O.merge(E),u,ho).attr("cx",b).attr("cy",B=>B.y).attr("r",4).style("opacity",B=>B.opacity).style("fill",B=>B.color).style("stroke",B=>B.strokeColor).style("stroke-width",B=>B.strokeWidth),E.exit().remove()}hide(e){window.cancelAnimationFrame(this._animFrameId),this._animFrameId=window.requestAnimationFrame(()=>{var n,r;this._xPx=void 0,this._yPx=void 0,this._mouseEvent=void 0,(r=(n=this.config).onCrosshairMove)===null||r===void 0||r.call(n,void 0,void 0,void 0,e),this._render()})}_onMouseMove(e){var n;const{datamodel:r,element:i}=this;!this.accessors.x&&(!((n=r.data)===null||n===void 0)&&n.length)&&console.warn("Unovis | Crosshair: X accessor function has not been configured. Please check if it's present in the configuration object");const[o,a]=An(e,i);this._xPx=o,this._yPx=a,this._mouseEvent=e,window.cancelAnimationFrame(this._animFrameId),this._animFrameId=window.requestAnimationFrame(()=>{this._render()})}_onMouseOut(e){var n;(!e||!(!((n=this.container)===null||n===void 0)&&n.node().contains(e.relatedTarget)))&&this.hide(e)}_onWheel(e){this.hide(e)}_showTooltip(e,n,r,i){var o;const{config:a,datamodel:s}=this,c=(o=a.tooltip)!==null&&o!==void 0?o:this.tooltip;if(!c||!r)return;const[u,f]=r,d=a.template(e,n,s.data,i);if(c.config.followCursor=!0,!c.config.horizontalPlacement||c.config.horizontalPlacement===A.Auto){const h=c.isContainerBody()?u-this.container.node().getBoundingClientRect().left:u;c.overrideHorizontalPlacement(h>this._containerWidth/2?A.Left:A.Right)}d&&c.show(d,{x:u,y:f})}_hideTooltip(){var e;const{config:n}=this,r=(e=n.tooltip)!==null&&e!==void 0?e:this.tooltip;r?.hide()}getYDataExtent(){return[void 0,void 0]}getCircleData(e,n){var r,i;const{config:o}=this;if(o.snapToData&&e){const a=(r=this.accessors.y)!==null&&r!==void 0?r:[],s=(i=this.accessors.yStacked)!==null&&i!==void 0?i:[],c=tt(e,this.accessors.baseline,n)||0,u=Ul(e,n,...s).map((d,h)=>({y:this.yScale(d+c),opacity:Xt(tt(e,s[h],h))?1:0,color:le(e,o.color,h),strokeColor:o.strokeColor?le(e,o.strokeColor,h):void 0,strokeWidth:o.strokeWidth?tt(e,o.strokeWidth,h):void 0})),f=a.map((d,h)=>{const g=tt(e,d,n);return{y:this.yScale(g),opacity:Xt(g)?1:0,color:le(e,o.color,u.length+h),strokeColor:o.strokeColor?le(e,o.strokeColor,h):void 0,strokeWidth:o.strokeWidth?tt(e,o.strokeWidth,h):void 0}});return u.concat(f)}return[]}}Is.selectors=Bp;const zs=Symbol("componentAccessorKey"),Ls=Symbol("tooltipAccessorKey"),Ps=Symbol("crosshairAccessorKey"),Us=Symbol("axisAccessorKey"),Op=Symbol("annotationsAccessorKey");function ur(t,e){return ne(t,e)}function tn(t){const e=l.getCurrentInstance(),n=e.attrs;return l.computed(()=>{const r={},i=e?.vnode.props??{};return Object.keys(i).forEach(o=>{r[l.camelize(o)]=t[l.camelize(o)]}),{...r,...n}})}const Go=l.defineComponent({__name:"index",props:{components:{},xScale:{type:[Object,Function]},xDomain:{},xDomainMinConstraint:{},xDomainMaxConstraint:{},xRange:{},yScale:{type:[Object,Function]},yDomain:{},yDomainMinConstraint:{},yDomainMaxConstraint:{},yRange:{},yDirection:{},xAxis:{},yAxis:{},autoMargin:{type:Boolean},tooltip:{},crosshair:{},preventEmptyDomain:{type:[Boolean,null]},scaleByDomain:{type:Boolean},annotations:{},clipPathExtend:{},duration:{},margin:{},padding:{},sizing:{},width:{},height:{},svgDefs:{},ariaLabel:{},data:{}},setup(t,{expose:e}){const n=t,{data:r}=l.toRefs(n),i=tn(n),o=l.ref(),a=l.reactive({components:[],annotations:void 0,crosshair:void 0,tooltip:void 0,xAxis:void 0,yAxis:void 0}),s=l.ref();return l.watch(r,()=>{o.value&&o.value.setData(r.value,!0)}),l.watchEffect(()=>{var c;a.components.map(u=>u.config),(c=o.value)==null||c.updateContainer({...l.toRaw(i.value),...l.toRaw(a)})}),l.onMounted(()=>{s.value&&(o.value=new Hg(s.value,{...l.toRaw(a)},r.value))}),l.onUnmounted(()=>{var c;return(c=o.value)==null?void 0:c.destroy()}),l.provide(zs,{data:r,update:c=>a.components=[...a.components,c],destroy:()=>{var c;return a.components=(c=a.components)==null?void 0:c.filter(u=>!u.isDestroyed())}}),l.provide(Us,{data:r,update:c=>a[`${c.config.type}Axis`]=c,destroy:c=>{a[`${c}Axis`]=void 0}}),l.provide(Ps,{data:r,update:c=>a.crosshair=c,destroy:()=>{a.crosshair=void 0}}),l.provide(Ls,{data:r,update:c=>a.tooltip=c,destroy:()=>{a.tooltip=void 0}}),l.provide(Op,{data:r,update:c=>a.annotations=c,destroy:()=>{a.annotations=void 0}}),e({component:o}),(c,u)=>(l.openBlock(),l.createElementBlock("div",{"data-vis-xy-container":"",ref_key:"elRef",ref:s,class:"unovis-xy-container"},[l.renderSlot(c.$slots,"default")],512))}}),Vp={"data-vis-axis":""},fn=l.defineComponent({__name:"index",props:{position:{},type:{},fullSize:{type:Boolean},label:{},labelFontSize:{},labelMargin:{},labelTextFitMode:{},labelTextTrimType:{},labelColor:{},gridLine:{type:Boolean},tickLine:{type:Boolean},domainLine:{type:Boolean},minMaxTicksOnly:{type:Boolean},minMaxTicksOnlyShowGridLines:{type:Boolean},minMaxTicksOnlyWhenWidthIsLess:{},tickFormat:{type:Function},tickValues:{},numTicks:{},tickTextFitMode:{},tickTextWidth:{},tickTextSeparator:{},tickTextForceWordBreak:{type:Boolean},tickTextTrimType:{},tickTextFontSize:{},tickTextAlign:{},tickTextColor:{},tickTextAngle:{},tickTextHideOverlapping:{type:Boolean},tickPadding:{},x:{},y:{},id:{type:Function},color:{},xScale:{type:[Object,Function]},yScale:{type:[Object,Function]},excludeFromDomainCalculation:{type:Boolean},duration:{},events:{},attributes:{},data:{}},setup(t,{expose:e}){const n=l.inject(Us),r=t,i=l.computed(()=>n.data.value??r.data),o=tn(r),a=l.ref();return l.onMounted(()=>{l.nextTick(()=>{var s;a.value=new Os(o.value),(s=a.value)==null||s.setData(i.value),n.update(a.value)})}),l.onUnmounted(()=>{var s;(s=a.value)==null||s.destroy(),n.destroy(r.type)}),l.watch(o,(s,c)=>{var u;ur(s,c)||(u=a.value)==null||u.setConfig(o.value)}),l.watch(i,()=>{var s;(s=a.value)==null||s.setData(i.value)}),e({component:a}),(s,c)=>(l.openBlock(),l.createElementBlock("div",Vp))}}),Fp={"data-vis-crosshair":""},jo=l.defineComponent({__name:"index",props:{data:{}},setup(t,{expose:e}){const n=l.inject(Ps),r=t,i=l.computed(()=>n.data.value??r.data),o=tn(r),a=l.ref();return l.onMounted(()=>{l.nextTick(()=>{var s;a.value=new Is(o.value),(s=a.value)==null||s.setData(i.value),n.update(a.value)})}),l.onUnmounted(()=>{var s;(s=a.value)==null||s.destroy(),n.destroy()}),l.watch(o,(s,c)=>{var u;ur(s,c)||(u=a.value)==null||u.setConfig(o.value)}),l.watch(i,()=>{var s;(s=a.value)==null||s.setData(i.value)}),e({component:a}),(s,c)=>(l.openBlock(),l.createElementBlock("div",Fp))}}),Ip={"data-vis-component":""},Zo=l.defineComponent({__name:"index",props:{color:{},groupWidth:{},groupMaxWidth:{},dataStep:{},groupPadding:{},barPadding:{},roundedCorners:{type:[Number,Boolean]},barMinHeight:{},cursor:{},orientation:{},x:{},y:{},id:{type:Function},xScale:{type:[Object,Function]},yScale:{type:[Object,Function]},excludeFromDomainCalculation:{type:Boolean},duration:{},events:{},attributes:{},data:{}},setup(t,{expose:e}){const n=l.inject(zs),r=t,i=l.computed(()=>n.data.value??r.data),o=tn(r),a=l.ref();return l.onMounted(()=>{l.nextTick(()=>{var s;a.value=new Ms(o.value),(s=a.value)==null||s.setData(i.value),n.update(a.value)})}),l.onUnmounted(()=>{var s;(s=a.value)==null||s.destroy(),n.destroy()}),l.watch(o,(s,c)=>{var u;ur(s,c)||(u=a.value)==null||u.setConfig(o.value)}),l.watch(i,()=>{var s;(s=a.value)==null||s.setData(i.value)}),e({component:a}),(s,c)=>(l.openBlock(),l.createElementBlock("div",Ip))}}),zp={"data-vis-tooltip":""},Qo=l.defineComponent({__name:"index",props:{components:{},container:{},followCursor:{type:Boolean},allowHover:{type:Boolean},horizontalPlacement:{},horizontalShift:{},verticalPlacement:{},verticalShift:{},triggers:{},attributes:{},className:{},hideDelay:{},showDelay:{},data:{}},setup(t,{expose:e}){const n=l.inject(Ls),r=tn(t),i=l.ref();return l.onMounted(()=>{l.nextTick(()=>{i.value=new Cs(r.value),n.update(i.value)})}),l.onUnmounted(()=>{var o;(o=i.value)==null||o.destroy(),n.destroy()}),l.watch(r,(o,a)=>{var s;ur(o,a)||(s=i.value)==null||s.setConfig(r.value)}),e({component:i}),(o,a)=>(l.openBlock(),l.createElementBlock("div",zp))}});(function(){try{if(typeof document<"u"){var t=document.createElement("style");t.appendChild(document.createTextNode(".unovis-xy-container,.unovis-single-container{display:block;position:relative;width:100%}[data-vis-leaflet-map],[data-vis-leaflet-flow-map]{display:block;position:relative}[data-vis-bullet-legend],[data-vis-rolling-pin-legend]{display:block}")),document.head.appendChild(t)}}catch(e){console.error("vite-plugin-css-injected-by-js",e)}})();const Lp={class:"flex flex-col sm:flex-row"},Pp=["data-active"],Up={class:"flex items-center gap-2"},Hp={class:"block text-muted-foreground text-xs mr-2 max-w-[120px] truncate"},Wp={class:"block text-lg leading-none font-bold sm:text-3xl"},Yp={class:"mx-auto w-full max-w-sm mt-2 mb-8"},Xp={class:"text-muted-foreground"},qp={class:"text-muted-foreground"},Gp={class:"grid"},jp=l.defineComponent({__name:"ResourceSelector",props:{resources:{type:Array,required:!0},totals:{type:Object,required:!0},viewMode:{type:String,required:!0},activeChart:{type:String,required:!1}},emits:["update:viewMode","update:activeChart"],setup(t,{emit:e}){const n=t,r=e,i=l.computed({get:()=>n.viewMode,set:u=>{r("update:viewMode",u)}}),o=l.computed({get:()=>n.activeChart,set:u=>{r("update:activeChart",u)}}),{width:a}=Ws.useWindowSize(),s=l.computed(()=>a.value<640),c=l.ref(!1);return(u,f)=>{const d=l.resolveComponent("DrawerTitle"),h=l.resolveComponent("DrawerDescription"),g=l.resolveComponent("DrawerHeader"),p=l.resolveComponent("Button"),m=l.resolveComponent("DrawerFooter"),w=l.resolveComponent("DrawerContent"),_=l.resolveComponent("Drawer"),b=l.resolveComponent("DropdownMenuTrigger"),v=l.resolveComponent("DropdownMenuLabel"),k=l.resolveComponent("DropdownMenuItem"),C=l.resolveComponent("DropdownMenuContent"),y=l.resolveComponent("DropdownMenu");return l.openBlock(),l.createElementBlock("div",Lp,[l.createElementVNode("button",{"data-active":t.viewMode==="stacked",class:"hover:bg-muted/50 flex flex-1 flex-col justify-center gap-2 border-t px-4 py-3 text-left sm:border-t-0 sm:border-l sm:px-6 sm:py-6 cursor-pointer",onClick:f[0]||(f[0]=x=>c.value=!0)},[l.createElementVNode("div",Up,[t.viewMode==="stacked"?(l.openBlock(),l.createElementBlock(l.Fragment,{key:0},[l.createVNode(l.unref(st.Layers),{class:"size-3 text-muted-foreground"}),f[5]||(f[5]=l.createElementVNode("span",{class:"block text-muted-foreground text-xs mr-2 max-w-[120px] truncate"},"All Resources",-1))],64)):(l.openBlock(),l.createElementBlock(l.Fragment,{key:1},[l.createElementVNode("div",{class:"size-3 rounded-full mr-2",style:l.normalizeStyle({backgroundColor:t.resources.find(x=>x.id===t.activeChart)?.color||"#6b7280"})},null,4),l.createElementVNode("span",Hp,l.toDisplayString(t.resources.find(x=>x.id===t.activeChart)?.name||"Select Resource"),1)],64)),l.createVNode(l.unref(st.ChevronDown),{class:"ml-auto size-4"})]),l.createElementVNode("span",Wp,l.toDisplayString(t.viewMode==="stacked"?Object.values(t.totals).reduce((x,E)=>x+E,0).toLocaleString():(t.totals[t.activeChart]||0).toLocaleString()),1)],8,Pp),l.unref(s)?(l.openBlock(),l.createBlock(_,{key:0,open:l.unref(c),"onUpdate:open":f[2]||(f[2]=x=>l.isRef(c)?c.value=x:null)},{default:l.withCtx(()=>[l.createVNode(w,null,{default:l.withCtx(()=>[l.createElementVNode("div",Yp,[l.createVNode(g,null,{default:l.withCtx(()=>[l.createVNode(d,null,{default:l.withCtx(()=>[...f[6]||(f[6]=[l.createTextVNode("Resources",-1)])]),_:1}),l.createVNode(h,null,{default:l.withCtx(()=>[...f[7]||(f[7]=[l.createTextVNode("Select the resources to display on the timeline.",-1)])]),_:1})]),_:1}),l.createVNode(m,null,{default:l.withCtx(()=>[l.createVNode(p,{onClick:f[1]||(f[1]=x=>{i.value="stacked",o.value="",c.value=!1}),variant:t.viewMode==="stacked"?"secondary":"outline"},{default:l.withCtx(()=>[l.createVNode(l.unref(st.Layers),{class:"size-3 text-muted-foreground"}),l.createElementVNode("span",Xp," All Resources ("+l.toDisplayString(Object.values(t.totals).reduce((x,E)=>x+E,0).toLocaleString())+") ",1)]),_:1},8,["variant"]),(l.openBlock(!0),l.createElementBlock(l.Fragment,null,l.renderList(t.resources,x=>(l.openBlock(),l.createBlock(p,{key:x.id,onClick:E=>{i.value="single",o.value=x.id,c.value=!1},variant:t.viewMode==="single"&&t.activeChart===x.id?"secondary":"outline"},{default:l.withCtx(()=>[l.createElementVNode("div",{class:"size-3 rounded-full",style:l.normalizeStyle({backgroundColor:x.color||"#6b7280"})},null,4),l.createElementVNode("span",qp,l.toDisplayString(x.name)+" ("+l.toDisplayString((t.totals[x.id]||0).toLocaleString())+") ",1)]),_:2},1032,["onClick","variant"]))),128))]),_:1})])]),_:1})]),_:1},8,["open"])):(l.openBlock(),l.createBlock(y,{key:1,open:l.unref(c),"onUpdate:open":f[4]||(f[4]=x=>l.isRef(c)?c.value=x:null)},{default:l.withCtx(()=>[l.createVNode(b,{"as-child":""},{default:l.withCtx(()=>[...f[8]||(f[8]=[l.createElementVNode("button",{tabindex:"-1",class:"size-0 opacity-0 self-end"},null,-1)])]),_:1}),l.createVNode(C,{class:"w-56",align:"start"},{default:l.withCtx(()=>[l.createVNode(v,null,{default:l.withCtx(()=>[...f[9]||(f[9]=[l.createTextVNode("Resources",-1)])]),_:1}),l.createElementVNode("div",Gp,[l.createVNode(k,{onClick:f[3]||(f[3]=x=>{i.value="stacked",o.value="",c.value=!1}),class:l.normalizeClass(t.viewMode==="stacked"?"bg-input":"")},{default:l.withCtx(()=>[l.createVNode(l.unref(st.Layers),{class:"size-3 text-muted-foreground"}),l.createElementVNode("span",null," All Resources ("+l.toDisplayString(Object.values(t.totals).reduce((x,E)=>x+E,0).toLocaleString())+") ",1)]),_:1},8,["class"]),(l.openBlock(!0),l.createElementBlock(l.Fragment,null,l.renderList(t.resources,x=>(l.openBlock(),l.createBlock(k,{key:x.id,onClick:E=>{i.value="single",o.value=x.id,c.value=!1},class:l.normalizeClass(t.viewMode==="single"&&t.activeChart===x.id?"bg-input":"")},{default:l.withCtx(()=>[l.createElementVNode("div",{class:"size-3 rounded-full",style:l.normalizeStyle({backgroundColor:x.color||"#6b7280"})},null,4),l.createElementVNode("span",null,l.toDisplayString(x.name)+" ("+l.toDisplayString((t.totals[x.id]||0).toLocaleString())+") ",1)]),_:2},1032,["onClick","class"]))),128))])]),_:1})]),_:1},8,["open"]))])}}}),Zp={class:"flex flex-1 flex-col justify-center gap-1 px-6 py-5 sm:py-6"},Qp={class:"flex flex-col sm:flex-row sm:items-center gap-2 sm:gap-3"},Kp={class:"flex items-center gap-1"},Jp={key:1,class:"flex items-center justify-center px-6 py-4 text-muted-foreground text-sm"},tm={key:0,class:"flex items-center justify-center h-[250px]"},em={key:1,class:"flex items-center justify-center h-[250px]"},nm=l.defineComponent({__name:"Timeline",props:{modelValue:{},selectedResource:{},viewMode:{}},emits:["update:modelValue","update:selectedResource","update:viewMode"],setup(t,{emit:e}){const n=t,r=e,{params:i}=Mt.useModuleRoute(),{config:o}=Mt.useModule(),a=Mt.useFirebaseIntegration(o.project),s=l.ref(null),c=l.ref([]),u=l.ref([]),f=l.ref(!0),d=l.ref(n.viewMode||"stacked"),h=l.ref(n.selectedResource||"");l.watch(d,D=>{r("update:viewMode",D)},{immediate:!0}),l.watch(h,D=>{r("update:selectedResource",d.value==="single"?D:null)}),l.watch(d,D=>{r("update:selectedResource",D==="single"?h.value:null)});const g=new Date,p=l.ref(n.modelValue||new Date);l.watch(()=>n.modelValue,D=>{D&&D.getTime()!==p.value.getTime()&&(p.value=D)}),l.watch(p,D=>{r("update:modelValue",D)},{immediate:!0});const m=l.computed(()=>{const D=new Date(g);D.setDate(g.getDate()-1);const $=new Date(g);return $.setDate(g.getDate()+1),p.value.toDateString()===g.toDateString()?"Today":p.value.toDateString()===D.toDateString()?"Yesterday":p.value.toDateString()===$.toDateString()?"Tomorrow":p.value.toLocaleDateString("en-US",{weekday:"long",month:"long",day:"numeric",year:"numeric"})}),w=()=>{const D=new Date(p.value);D.setDate(D.getDate()-1),p.value=D},_=()=>{const D=new Date(p.value);D.setDate(D.getDate()+1),p.value=D},b=()=>{p.value=new Date},v=l.computed(()=>s.value?.resources?.filter(D=>D.isActive)||[]),k=l.computed(()=>v.value.length===0?10:Math.max(...v.value.map(D=>D.capacity||10))),C=l.computed(()=>v.value.length===0?60:Math.min(...v.value.map(D=>D.interval||60))),y=l.computed(()=>{const D={total:{label:"Total Reservations",color:void 0}};return v.value.forEach(($,I)=>{D[$.id]={label:$.name,color:$.color||`var(--chart-${I%5+1})`}}),D});l.watch(v,D=>{D.length>0&&!h.value&&(h.value=D[0].id)},{immediate:!0});const x=l.computed(()=>[...v.value].sort((D,$)=>{const I=O.value[D.id]||0;return(O.value[$.id]||0)-I})),E=l.computed(()=>{const D=[];return C.value,c.value.forEach(($,I)=>{$.time.endsWith(":00")&&D.push(I)}),D}),O=l.computed(()=>{const D={};return v.value.forEach($=>{D[$.id]=u.value.filter(I=>I.resourceId===$.id).reduce((I,X)=>I+(X.reserved||0),0)}),D}),B=D=>{const $=D.getFullYear(),I=String(D.getMonth()+1).padStart(2,"0"),X=String(D.getDate()).padStart(2,"0");return`${$}-${I}-${X}`},N=D=>{const[$,I]=D.split(":").map(Number);return $*60+I},M=(D,$)=>(s.value?.exceptions||[]).find(X=>$>=X.startDate&&$<=X.endDate?X.resourceIds===null?!0:X.resourceIds?.includes(D):!1)||null,R=l.computed(()=>{const D=B(p.value),$=p.value.getDay();let I=1440,X=0;if(v.value.forEach(yt=>{const K=M(yt.id,D);if(K){if(K.isClosed)return;K.timeslots.forEach(ot=>{const z=N(ot.startTime),Y=N(ot.endTime);I=Math.min(I,z),X=Math.max(X,Y)})}else(yt.openingHours?.[$]||[]).forEach(z=>{const Y=N(z.start),T=N(z.end);I=Math.min(I,Y),X=Math.max(X,T)})}),I>=X)return{startMinutes:540,endMinutes:1020};const rt=Math.floor(I/60)*60,Ct=Math.ceil(X/60)*60;return{startMinutes:rt,endMinutes:Ct}}),F=()=>{const D=[],$=C.value,{startMinutes:I,endMinutes:X}=R.value;for(let rt=I;rt<X;rt+=$){const Ct=Math.floor(rt/60),yt=rt%60,K=`${String(Ct).padStart(2,"0")}:${String(yt).padStart(2,"0")}`,ot={time:K,label:K};v.value.forEach(z=>{ot[z.id]=0}),D.push(ot)}return D},Q=async()=>{s.value=await a.get(o.agendaCollection,i.value.id)},pt=async()=>{f.value=!0;try{const D=i.value.id,$=B(p.value),I=`${D}_${$}`,X=await a.get(o.reservedSpotsCollection,I);u.value=[];for(const K of v.value){const ot=X?.[K.id]||{};Object.entries(ot).forEach(([z,Y])=>{const[T,V]=z.split("-");u.value.push({resourceId:K.id,startTime:T,endTime:V,reserved:Y})})}const rt=F(),Ct=C.value,{startMinutes:yt}=R.value;u.value.forEach(K=>{const ot=N(K.startTime),z=N(K.endTime);for(let Y=ot;Y<z;Y+=Ct){const T=Math.floor((Y-yt)/Ct);if(T>=0&&T<rt.length){const V=rt[T][K.resourceId];typeof V=="number"&&(rt[T][K.resourceId]=V+(K.reserved||0))}}}),c.value=rt}catch(D){console.error("Error loading reservation data:",D),c.value=F(),u.value=[]}finally{f.value=!1}};return(async()=>(await Q(),await pt()))(),l.watch(p,()=>{pt()}),l.watch(v,()=>{v.value.length>0&&pt()}),(D,$)=>{const I=l.resolveComponent("CardTitle"),X=l.resolveComponent("Button"),rt=l.resolveComponent("CardDescription"),Ct=l.resolveComponent("CardHeader"),yt=l.resolveComponent("ChartContainer"),K=l.resolveComponent("CardContent"),ot=l.resolveComponent("Card");return l.openBlock(),l.createBlock(ot,{class:"py-4 sm:py-0"},{default:l.withCtx(()=>[l.createVNode(Ct,{class:"flex flex-col items-stretch border-b !p-0 sm:flex-row"},{default:l.withCtx(()=>[l.createElementVNode("div",Zp,[l.createElementVNode("div",Qp,[l.createVNode(I,null,{default:l.withCtx(()=>[...$[2]||($[2]=[l.createTextVNode("Reservations",-1)])]),_:1}),l.createElementVNode("div",Kp,[l.createVNode(X,{variant:"ghost",size:"icon",class:"size-8",onClick:w},{default:l.withCtx(()=>[l.createVNode(l.unref(st.ChevronLeft),{size:16})]),_:1}),l.createVNode(X,{variant:"ghost",size:"sm",class:"h-8 px-3 text-xs",onClick:b},{default:l.withCtx(()=>[...$[3]||($[3]=[l.createTextVNode(" Today ",-1)])]),_:1}),l.createVNode(X,{variant:"ghost",size:"icon",class:"size-8",onClick:_},{default:l.withCtx(()=>[l.createVNode(l.unref(st.ChevronRight),{size:16})]),_:1})])]),l.createVNode(rt,null,{default:l.withCtx(()=>[l.createTextVNode(l.toDisplayString(l.unref(m)),1)]),_:1})]),l.unref(v).length>0?(l.openBlock(),l.createBlock(jp,{key:0,resources:l.unref(v),totals:l.unref(O),viewMode:l.unref(d),"onUpdate:viewMode":$[0]||($[0]=z=>l.isRef(d)?d.value=z:null),activeChart:l.unref(h),"onUpdate:activeChart":$[1]||($[1]=z=>l.isRef(h)?h.value=z:null)},null,8,["resources","totals","viewMode","activeChart"])):(l.openBlock(),l.createElementBlock("div",Jp," No resources configured "))]),_:1}),l.createVNode(K,{class:"px-2 sm:p-6"},{default:l.withCtx(()=>[l.unref(f)?(l.openBlock(),l.createElementBlock("div",tm,[...$[4]||($[4]=[l.createElementVNode("div",{class:"text-muted-foreground"},"Loading...",-1)])])):l.unref(v).length===0?(l.openBlock(),l.createElementBlock("div",em,[...$[5]||($[5]=[l.createElementVNode("div",{class:"text-muted-foreground"},"No resources to display",-1)])])):l.unref(d)==="stacked"?(l.openBlock(),l.createBlock(yt,{key:2,config:l.unref(y),class:"aspect-auto h-[250px] w-full",cursor:""},{default:l.withCtx(()=>[l.createVNode(l.unref(Go),{data:l.unref(c),margin:{left:-24},"y-domain":[0,l.unref(k)]},{default:l.withCtx(()=>[(l.openBlock(!0),l.createElementBlock(l.Fragment,null,l.renderList(l.unref(x),z=>(l.openBlock(),l.createBlock(l.unref(Zo),{key:z.id,x:(Y,T)=>T,y:Y=>Y[z.id]||0,color:l.unref(y)[z.id]?.color,"bar-padding":.1,"rounded-corners":2},null,8,["x","y","color"]))),128)),l.createVNode(l.unref(fn),{type:"x",x:(z,Y)=>Y,"tick-line":!1,"domain-line":!1,"grid-line":!1,"tick-values":l.unref(E),"tick-format":z=>l.unref(c)[z]?.time||""},null,8,["x","tick-values","tick-format"]),l.createVNode(l.unref(fn),{type:"y","num-ticks":3,"tick-line":!1,"domain-line":!1}),l.createVNode(l.unref(Qo)),l.createVNode(l.unref(jo),{template:l.unref(en.tt)(l.unref(y),l.unref(en.Te),{labelFormatter(z){const Y=Math.round(z);return Y>=0&&Y<l.unref(c).length&&l.unref(c)[Y]?.time||""}}),color:"#0000"},null,8,["template"])]),_:1},8,["data","y-domain"])]),_:1},8,["config"])):(l.openBlock(),l.createBlock(yt,{key:3,config:l.unref(y),class:"aspect-auto h-[250px] w-full",cursor:""},{default:l.withCtx(()=>[l.createVNode(l.unref(Go),{data:l.unref(c),margin:{left:-24},"y-domain":[0,l.unref(k)]},{default:l.withCtx(()=>[l.createVNode(l.unref(Zo),{x:(z,Y)=>Y,y:z=>z[l.unref(h)]||0,color:l.unref(y)[l.unref(h)]?.color,"bar-padding":.1,"rounded-corners":!1},null,8,["x","y","color"]),l.createVNode(l.unref(fn),{type:"x",x:(z,Y)=>Y,"tick-line":!1,"domain-line":!1,"grid-line":!1,"tick-values":l.unref(E),"tick-format":z=>l.unref(c)[z]?.time||""},null,8,["x","tick-values","tick-format"]),l.createVNode(l.unref(fn),{type:"y","num-ticks":3,"tick-line":!1,"domain-line":!1}),l.createVNode(l.unref(Qo)),l.createVNode(l.unref(jo),{template:l.unref(en.tt)(l.unref(y),l.unref(en.Te),{labelFormatter(z){const Y=Math.round(z);return Y>=0&&Y<l.unref(c).length&&l.unref(c)[Y]?.time||""}}),color:"#0000"},null,8,["template"])]),_:1},8,["data","y-domain"])]),_:1},8,["config"]))]),_:1})]),_:1})}}}),rm={class:"flex flex-col sm:flex-row sm:items-center sm:justify-between gap-2"},im={class:"relative mb-4"},om={key:0,class:"mb-3 text-sm text-muted-foreground"},am={key:1,class:"flex items-center justify-center py-8"},sm={key:2,class:"text-center py-8 text-muted-foreground"},cm={key:3,class:"text-center py-8 text-muted-foreground"},lm={key:4,class:"space-y-2"},um=["onClick"],fm={class:"flex items-start justify-between"},dm={class:"flex-1"},hm={class:"font-medium"},gm={class:"text-sm text-muted-foreground"},pm={class:"text-sm text-muted-foreground"},mm={class:"flex items-center gap-4 flex-wrap"},vm={class:"flex items-center gap-2 mt-1 text-xs text-muted-foreground"},ym={class:"flex items-center gap-2 mt-1 text-xs text-muted-foreground"},xm={key:0,class:"flex items-center gap-1 mt-1 text-xs text-muted-foreground"},_m={class:"text-right"},wm={key:0,class:"inline-block px-2 py-1 text-xs rounded-full bg-blue-100 text-blue-800 dark:bg-blue-900/30 dark:text-blue-400"},bm={key:1,class:"inline-block px-2 py-1 text-xs rounded-full bg-green-100 text-green-800 dark:bg-green-900/30 dark:text-green-400"},km={key:2,class:"inline-block px-2 py-1 text-xs rounded-full bg-red-100 text-red-800 dark:bg-red-900/30 dark:text-red-400"},Cm={key:3,class:"inline-block px-2 py-1 text-xs rounded-full bg-yellow-100 text-yellow-800 dark:bg-yellow-900/30 dark:text-yellow-400"},Sm={key:4,class:"text-sm font-medium mt-1"},Tm=l.defineComponent({__name:"BookingsList",props:{activeDate:{},selectedResource:{}},setup(t){const e=t,{params:n}=Mt.useModuleRoute(),{config:r}=Mt.useModule(),i=Mt.useFirebaseIntegration(r.project),o=l.ref([]),a=l.ref([]),s=l.ref(!0),c=l.ref(""),u=l.ref(null),f=l.computed(()=>({date:d(e.activeDate),resource:null}));l.provide("event",f);const d=v=>{const k=v.getFullYear(),C=String(v.getMonth()+1).padStart(2,"0"),y=String(v.getDate()).padStart(2,"0");return`${k}-${C}-${y}`},h=l.computed(()=>{let v=o.value;return e.selectedResource&&(v=v.filter(k=>k.resourceId===e.selectedResource)),c.value.trim()&&(v=new Di.Fuse(v,{keys:["customerInfo.firstName","customerInfo.lastName","customerInfo.email","customerInfo.phone","resourceName"],threshold:.3,ignoreLocation:!0}).search(c.value).map(C=>C.item)),v}),g=l.computed(()=>({spots:o.value.reduce((v,k)=>v+(k.spots||0),0),bookings:o.value.length})),p=()=>{c.value=""},m=async()=>{try{const v=n.value.id,k=await i.get(r.agendaCollection,v);a.value=k?.resources?.filter(C=>C.isActive)||[]}catch(v){console.error("Error loading resources:",v),a.value=[]}},w=async()=>{s.value=!0,o.value=[];try{const v=n.value.id,k=d(e.activeDate),C=`${v}_${k}`;let y=await i.get(r.reservedSpotsCollection,C),x=[];if(!y){s.value=!1;return}for(const N of a.value){const M=y?.[N.id]||{};Object.entries(M).forEach(([R,F])=>{const[Q,pt]=R.split("-");x.push({resourceId:N.id,startTime:Q,endTime:pt,reserved:F})})}const E=new Set;x.forEach(N=>{const M=`${N.resourceId}_${k}_${N.startTime.replace(":","")}`;E.add(M)});const O=await i.find(r.reservationsCollection,{filters:[{field:"agendaId",operator:"==",value:v},{field:"status",operator:"==",value:"confirmed"}]});let B=[];O.forEach(N=>{if(!N.flattenedReservations?.some(F=>Array.from(E).some(Q=>F===Q)))return;(N.reservations?.filter(F=>F.date===k)||[]).forEach(F=>{const Q=a.value.find(pt=>pt.id===F.resourceId);B.push({customerInfo:N.customerInfo,amountDue:N.amountDue,amountPaid:N.amountPaid,status:N.status,reservationStatus:F.status,subtotal:N.subtotal,total:N.total,discount:N.discount,id:N.id,res_id:F.id,resourceId:F.resourceId,spots:F.spots,date:k,startTime:F.timeslot?.startTime,endTime:F.timeslot?.endTime,reservationPrice:F.totalPrice,reservationBasePrice:F.basePrice,reservationAddOnsPrice:F.addOnsPrice,pricingOptionId:F.pricingOptionId,pricingOption:F.pricingOption,resourceName:Q?.name||"Unknown",resourceColor:Q?.color})})}),o.value=B.sort((N,M)=>N.startTime?.localeCompare(M.startTime||"")||0)}catch(v){console.error("Error loading orders:",v),o.value=[]}finally{s.value=!1}},_=()=>{w()};return(async()=>(await m(),await w()))(),l.watch(()=>e.activeDate,()=>{w()}),(v,k)=>{const C=l.resolveComponent("Badge"),y=l.resolveComponent("CardTitle"),x=l.resolveComponent("CardDescription"),E=l.resolveComponent("Button"),O=l.resolveComponent("CardHeader"),B=l.resolveComponent("Input"),N=l.resolveComponent("CardContent"),M=l.resolveComponent("Card");return l.openBlock(),l.createBlock(M,null,{default:l.withCtx(()=>[l.createVNode(O,null,{default:l.withCtx(()=>[l.createElementVNode("div",rm,[l.createElementVNode("div",null,[l.createVNode(y,{class:"flex items-center gap-2"},{default:l.withCtx(()=>[k[1]||(k[1]=l.createTextVNode(" Bookings ",-1)),l.unref(g).bookings>0?(l.openBlock(),l.createBlock(C,{key:0,variant:"secondary"},{default:l.withCtx(()=>[l.createTextVNode(l.toDisplayString(l.unref(g).bookings),1)]),_:1})):l.createCommentVNode("",!0)]),_:1}),l.createVNode(x,{class:"flex items-center gap-2 mt-1"},{default:l.withCtx(()=>[l.createVNode(l.unref(st.Users),{size:14}),l.createElementVNode("span",null,l.toDisplayString(l.unref(g).spots)+" total spots",1)]),_:1})]),l.createVNode(E,{variant:"ghost",size:"icon",onClick:w,disabled:l.unref(s)},{default:l.withCtx(()=>[l.createVNode(l.unref(st.RefreshCw),{size:16,class:l.normalizeClass({"animate-spin":l.unref(s)})},null,8,["class"])]),_:1},8,["disabled"])])]),_:1}),l.createVNode(N,null,{default:l.withCtx(()=>[l.createElementVNode("div",im,[l.createVNode(l.unref(st.Search),{size:16,class:"absolute left-3 top-1/2 -translate-y-1/2 text-muted-foreground"}),l.createVNode(B,{modelValue:l.unref(c),"onUpdate:modelValue":k[0]||(k[0]=R=>l.isRef(c)?c.value=R:null),placeholder:"Search by name, email, phone, or resource...",class:"pl-9 pr-9"},null,8,["modelValue"]),l.unref(c)?(l.openBlock(),l.createBlock(E,{key:0,variant:"ghost",size:"icon",class:"absolute right-1 top-1/2 -translate-y-1/2 h-7 w-7",onClick:p},{default:l.withCtx(()=>[l.createVNode(l.unref(st.X),{size:14})]),_:1})):l.createCommentVNode("",!0)]),l.unref(c)?(l.openBlock(),l.createElementBlock("div",om," Showing "+l.toDisplayString(l.unref(h).length)+" of "+l.toDisplayString(l.unref(o).length)+" bookings ",1)):l.createCommentVNode("",!0),l.unref(s)?(l.openBlock(),l.createElementBlock("div",am,[...k[2]||(k[2]=[l.createElementVNode("div",{class:"animate-spin rounded-full h-8 w-8 border-b-2 border-primary"},null,-1)])])):l.unref(o).length===0?(l.openBlock(),l.createElementBlock("div",sm," No bookings for this day ")):l.unref(h).length===0?(l.openBlock(),l.createElementBlock("div",cm," No bookings match your search ")):(l.openBlock(),l.createElementBlock("div",lm,[(l.openBlock(!0),l.createElementBlock(l.Fragment,null,l.renderList(l.unref(h),R=>(l.openBlock(),l.createElementBlock("div",{key:R.res_id||R.id,class:"p-3 border rounded-lg hover:bg-muted/50 transition-colors cursor-pointer",onClick:F=>l.unref(u)?.openDialog(R)},[l.createElementVNode("div",fm,[l.createElementVNode("div",dm,[l.createElementVNode("div",hm,l.toDisplayString(R.customerInfo?.firstName)+" "+l.toDisplayString(R.customerInfo?.lastName||"Unknown Customer"),1),l.createElementVNode("div",gm,l.toDisplayString(R.customerInfo?.email),1),l.createElementVNode("div",pm,l.toDisplayString(R.customerInfo?.phone),1),l.createElementVNode("div",mm,[l.createElementVNode("div",vm,[l.createVNode(l.unref(st.Clock),{size:12}),l.createElementVNode("span",null,l.toDisplayString(R.startTime)+" - "+l.toDisplayString(R.endTime),1)]),l.createElementVNode("div",ym,[l.createVNode(l.unref(st.Users),{size:12}),l.createElementVNode("span",null,l.toDisplayString(R.spots)+" spots",1)]),R.resourceName?(l.openBlock(),l.createElementBlock("div",xm,[l.createElementVNode("div",{class:"w-3 h-3 rounded-full",style:l.normalizeStyle({backgroundColor:R.resourceColor||"#6b7280"})},null,4),l.createElementVNode("span",null,l.toDisplayString(R.resourceName),1)])):l.createCommentVNode("",!0)])]),l.createElementVNode("div",_m,[R.reservationStatus==="needs_approval"?(l.openBlock(),l.createElementBlock("span",wm,"Needs Approval")):R.reservationStatus==="approved"?(l.openBlock(),l.createElementBlock("span",bm,"Approved")):R.reservationStatus==="rejected"?(l.openBlock(),l.createElementBlock("span",km,"Rejected")):(l.openBlock(),l.createElementBlock("span",Cm,"Pending")),R.reservationPrice||R.reservationPrice===0?(l.openBlock(),l.createElementBlock("div",Sm," €"+l.toDisplayString(R.reservationPrice.toFixed(2)),1)):l.createCommentVNode("",!0)])])],8,um))),128))]))]),_:1}),l.createVNode(Di._sfc_main,{ref_key:"reservationDetailDialog",ref:u,onCancelled:_},null,512)]),_:1})}}}),Mm={class:"space-y-6"},Dm={class:"flex flex-col sm:flex-row sm:items-center sm:justify-between gap-4"},Am={class:"text-2xl font-semibold tracking-tight"},Em={class:"flex gap-2"},Nm={class:"grid gap-6 md:grid-cols-2 lg:grid-cols-3"},$m={class:"md:col-span-2 lg:col-span-3"},Rm=l.defineComponent({__name:"index",setup(t){const{hasPermission:e}=Mt.useModulePermissions(),{params:n,resolvePath:r}=Mt.useModuleRoute(),{config:i}=Mt.useModule(),o=Mt.useFirebaseIntegration(i.project),a=l.ref(""),s=l.ref(!0),c=l.ref(new Date),u=l.ref(null),f=l.ref("stacked"),d=l.ref(null);return(async()=>{try{const g=await o.get(i.agendaCollection,n.value.id);a.value=g?.serviceName||"",d.value=g}catch(g){console.error("Error loading data:",g)}finally{s.value=!1}})(),l.provide("agendaData",d),(g,p)=>{const m=l.resolveComponent("Button"),w=l.resolveComponent("NuxtLink");return l.openBlock(),l.createBlock(Hs._sfc_main,null,{default:l.withCtx(()=>[l.createElementVNode("div",Mm,[l.createElementVNode("div",Dm,[l.createElementVNode("div",null,[l.createElementVNode("h1",Am,l.toDisplayString(l.unref(a)||"Dashboard"),1),p[3]||(p[3]=l.createElementVNode("p",{class:"text-muted-foreground text-sm mt-1"}," Overview and analytics for your booking service ",-1))]),l.createElementVNode("div",Em,[l.unref(e)("manage-reservations")?(l.openBlock(),l.createBlock(Ys._sfc_main,{key:0})):l.createCommentVNode("",!0),l.createVNode(w,{to:l.unref(r)(`/edit/${l.unref(n).id}/agenda`)},{default:l.withCtx(()=>[l.createVNode(m,null,{default:l.withCtx(()=>[l.createVNode(l.unref(st.Calendar),{class:"size-4 mr-2"}),p[4]||(p[4]=l.createTextVNode(" View Agenda ",-1)),l.createVNode(l.unref(st.ArrowRight),{class:"size-4 ml-2"})]),_:1})]),_:1},8,["to"])])]),l.createVNode(nm,{modelValue:l.unref(c),"onUpdate:modelValue":p[0]||(p[0]=_=>l.isRef(c)?c.value=_:null),"view-mode":l.unref(f),"onUpdate:viewMode":p[1]||(p[1]=_=>l.isRef(f)?f.value=_:null),"onUpdate:selectedResource":p[2]||(p[2]=_=>u.value=_)},null,8,["modelValue","view-mode"]),l.createElementVNode("div",Nm,[l.createElementVNode("div",$m,[l.createVNode(Tm,{"active-date":l.unref(c),"selected-resource":l.unref(u)},null,8,["active-date","selected-resource"])])])])]),_:1})}}});exports.default=Rm;