(()=>{var e,t={88:(e,t,i)=>{"use strict";const s=window.wp.blocks;var o=i(609);const n=window.wp.i18n,r=window.wp.blockEditor,a=window.wp.components,l=window.wp.element;function u(e,t){let i;if(void 0===t)for(const t of e)null!=t&&(i=t)&&(i=t);else{let s=-1;for(let o of e)null!=(o=t(o,++s,e))&&(i=o)&&(i=o)}return i}function h(e){return e}var d=1e-6;function c(e){return"translate("+e+",0)"}function p(e){return"translate(0,"+e+")"}function g(e){return t=>+e(t)}function m(e,t){return t=Math.max(0,e.bandwidth()-2*t)/2,e.round()&&(t=Math.round(t)),i=>+e(i)+t}function f(){return!this.__axis}function C(e,t){var i=[],s=null,o=null,n=6,r=6,a=3,l="undefined"!=typeof window&&window.devicePixelRatio>1?0:.5,u=1===e||4===e?-1:1,C=4===e||2===e?"x":"y",v=1===e||3===e?c:p;function w(c){var p=null==s?t.ticks?t.ticks.apply(t,i):t.domain():s,w=null==o?t.tickFormat?t.tickFormat.apply(t,i):h:o,y=Math.max(n,0)+a,E=t.range(),S=+E[0]+l,b=+E[E.length-1]+l,R=(t.bandwidth?m:g)(t.copy(),l),D=c.selection?c.selection():c,T=D.selectAll(".domain").data([null]),A=D.selectAll(".tick").data(p,t).order(),P=A.exit(),F=A.enter().append("g").attr("class","tick"),M=A.select("line"),x=A.select("text");T=T.merge(T.enter().insert("path",".tick").attr("class","domain").attr("stroke","currentColor")),A=A.merge(F),M=M.merge(F.append("line").attr("stroke","currentColor").attr(C+"2",u*n)),x=x.merge(F.append("text").attr("fill","currentColor").attr(C,u*y).attr("dy",1===e?"0em":3===e?"0.71em":"0.32em")),c!==D&&(T=T.transition(c),A=A.transition(c),M=M.transition(c),x=x.transition(c),P=P.transition(c).attr("opacity",d).attr("transform",(function(e){return isFinite(e=R(e))?v(e+l):this.getAttribute("transform")})),F.attr("opacity",d).attr("transform",(function(e){var t=this.parentNode.__axis;return v((t&&isFinite(t=t(e))?t:R(e))+l)}))),P.remove(),T.attr("d",4===e||2===e?r?"M"+u*r+","+S+"H"+l+"V"+b+"H"+u*r:"M"+l+","+S+"V"+b:r?"M"+S+","+u*r+"V"+l+"H"+b+"V"+u*r:"M"+S+","+l+"H"+b),A.attr("opacity",1).attr("transform",(function(e){return v(R(e)+l)})),M.attr(C+"2",u*n),x.attr(C,u*y).text(w),D.filter(f).attr("fill","none").attr("font-size",10).attr("font-family","sans-serif").attr("text-anchor",2===e?"start":4===e?"end":"middle"),D.each((function(){this.__axis=R}))}return w.scale=function(e){return arguments.length?(t=e,w):t},w.ticks=function(){return i=Array.from(arguments),w},w.tickArguments=function(e){return arguments.length?(i=null==e?[]:Array.from(e),w):i.slice()},w.tickValues=function(e){return arguments.length?(s=null==e?null:Array.from(e),w):s&&s.slice()},w.tickFormat=function(e){return arguments.length?(o=e,w):o},w.tickSize=function(e){return arguments.length?(n=r=+e,w):n},w.tickSizeInner=function(e){return arguments.length?(n=+e,w):n},w.tickSizeOuter=function(e){return arguments.length?(r=+e,w):r},w.tickPadding=function(e){return arguments.length?(a=+e,w):a},w.offset=function(e){return arguments.length?(l=+e,w):l},w}function v(){}function w(e){return null==e?v:function(){return this.querySelector(e)}}function y(){return[]}function E(e){return null==e?y:function(){return this.querySelectorAll(e)}}function S(e){return function(){return this.matches(e)}}function b(e){return function(t){return t.matches(e)}}var R=Array.prototype.find;function D(){return this.firstElementChild}var T=Array.prototype.filter;function A(){return Array.from(this.children)}function P(e){return new Array(e.length)}function F(e,t){this.ownerDocument=e.ownerDocument,this.namespaceURI=e.namespaceURI,this._next=null,this._parent=e,this.__data__=t}function M(e,t,i,s,o,n){for(var r,a=0,l=t.length,u=n.length;at?1:e>=t?0:NaN}F.prototype={constructor:F,appendChild:function(e){return this._parent.insertBefore(e,this._next)},insertBefore:function(e,t){return this._parent.insertBefore(e,t)},querySelector:function(e){return this._parent.querySelector(e)},querySelectorAll:function(e){return this._parent.querySelectorAll(e)}};var _="http://www.w3.org/1999/xhtml";const O={svg:"http://www.w3.org/2000/svg",xhtml:_,xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/"};function G(e){var t=e+="",i=t.indexOf(":");return i>=0&&"xmlns"!==(t=e.slice(0,i))&&(e=e.slice(i+1)),O.hasOwnProperty(t)?{space:O[t],local:e}:e}function k(e){return function(){this.removeAttribute(e)}}function V(e){return function(){this.removeAttributeNS(e.space,e.local)}}function H(e,t){return function(){this.setAttribute(e,t)}}function B(e,t){return function(){this.setAttributeNS(e.space,e.local,t)}}function W(e,t){return function(){var i=t.apply(this,arguments);null==i?this.removeAttribute(e):this.setAttribute(e,i)}}function U(e,t){return function(){var i=t.apply(this,arguments);null==i?this.removeAttributeNS(e.space,e.local):this.setAttributeNS(e.space,e.local,i)}}function z(e){return e.ownerDocument&&e.ownerDocument.defaultView||e.document&&e||e.defaultView}function $(e){return function(){this.style.removeProperty(e)}}function K(e,t,i){return function(){this.style.setProperty(e,t,i)}}function j(e,t,i){return function(){var s=t.apply(this,arguments);null==s?this.style.removeProperty(e):this.style.setProperty(e,s,i)}}function Y(e,t){return e.style.getPropertyValue(t)||z(e).getComputedStyle(e,null).getPropertyValue(t)}function q(e){return function(){delete this[e]}}function X(e,t){return function(){this[e]=t}}function Q(e,t){return function(){var i=t.apply(this,arguments);null==i?delete this[e]:this[e]=i}}function J(e){return e.trim().split(/^|\s+/)}function Z(e){return e.classList||new ee(e)}function ee(e){this._node=e,this._names=J(e.getAttribute("class")||"")}function te(e,t){for(var i=Z(e),s=-1,o=t.length;++s=0&&(this._names.splice(t,1),this._node.setAttribute("class",this._names.join(" ")))},contains:function(e){return this._names.indexOf(e)>=0}};var Te=[null];function Ae(e,t){this._groups=e,this._parents=t}function Pe(){return new Ae([[document.documentElement]],Te)}Ae.prototype=Pe.prototype={constructor:Ae,select:function(e){"function"!=typeof e&&(e=w(e));for(var t=this._groups,i=t.length,s=new Array(i),o=0;o=E&&(E=y+1);!(w=C[E])&&++E=0;)(s=o[n])&&(r&&4^s.compareDocumentPosition(r)&&r.parentNode.insertBefore(s,r),r=s);return this},sort:function(e){function t(t,i){return t&&i?e(t.__data__,i.__data__):!t-!i}e||(e=N);for(var i=this._groups,s=i.length,o=new Array(s),n=0;n1?this.each((null==t?$:"function"==typeof t?j:K)(e,t,null==i?"":i)):Y(this.node(),e)},property:function(e,t){return arguments.length>1?this.each((null==t?q:"function"==typeof t?Q:X)(e,t)):this.node()[e]},classed:function(e,t){var i=J(e+"");if(arguments.length<2){for(var s=Z(this.node()),o=-1,n=i.length;++o=0&&(t=e.slice(i+1),e=e.slice(0,i)),{type:e,name:t}}))}(e+""),r=n.length;if(!(arguments.length<2)){for(a=t?Se:Ee,s=0;s{}};function xe(){for(var e,t=0,i=arguments.length,s={};t=0&&(t=e.slice(i+1),e=e.slice(0,i)),e&&!s.hasOwnProperty(e))throw new Error("unknown type: "+e);return{type:e,name:t}}))),r=-1,a=n.length;if(!(arguments.length<2)){if(null!=t&&"function"!=typeof t)throw new Error("invalid callback: "+t);for(;++r0)for(var i,s,o=new Array(i),n=0;n=0&&t._call.call(void 0,e),t=t._next;--ke}()}finally{ke=0,function(){for(var e,t,i=Oe,s=1/0;i;)i._call?(s>i._time&&(s=i._time),e=i,i=i._next):(t=i._next,i._next=null,i=e?e._next=t:Oe=t);Ge=e,Je(s)}(),We=0}}function Qe(){var e=ze.now(),t=e-Be;t>1e3&&(Ue-=t,Be=e)}function Je(e){ke||(Ve&&(Ve=clearTimeout(Ve)),e-We>24?(e<1/0&&(Ve=setTimeout(Xe,e-ze.now()-Ue)),He&&(He=clearInterval(He))):(He||(Be=ze.now(),He=setInterval(Qe,1e3)),ke=1,$e(Xe)))}function Ze(e,t,i){var s=new Ye;return t=null==t?0:+t,s.restart((i=>{s.stop(),e(i+t)}),t,i),s}Ye.prototype=qe.prototype={constructor:Ye,restart:function(e,t,i){if("function"!=typeof e)throw new TypeError("callback is not a function");i=(null==i?Ke():+i)+(null==t?0:+t),this._next||Ge===this||(Ge?Ge._next=this:Oe=this,Ge=this),this._call=e,this._time=i,Je()},stop:function(){this._call&&(this._call=null,this._time=1/0,Je())}};var et=_e("start","end","cancel","interrupt"),tt=[];function it(e,t,i,s,o,n){var r=e.__transition;if(r){if(i in r)return}else e.__transition={};!function(e,t,i){var s,o=e.__transition;function n(l){var u,h,d,c;if(1!==i.state)return a();for(u in o)if((c=o[u]).name===i.name){if(3===c.state)return Ze(n);4===c.state?(c.state=6,c.timer.stop(),c.on.call("interrupt",e,e.__data__,c.index,c.group),delete o[u]):+u0)throw new Error("too late; already scheduled");return i}function ot(e,t){var i=nt(e,t);if(i.state>3)throw new Error("too late; already running");return i}function nt(e,t){var i=e.__transition;if(!i||!(i=i[t]))throw new Error("transition not found");return i}function rt(e,t){return e=+e,t=+t,function(i){return e*(1-i)+t*i}}var at,lt=180/Math.PI,ut={translateX:0,translateY:0,rotate:0,skewX:0,scaleX:1,scaleY:1};function ht(e,t,i,s,o,n){var r,a,l;return(r=Math.sqrt(e*e+t*t))&&(e/=r,t/=r),(l=e*i+t*s)&&(i-=e*l,s-=t*l),(a=Math.sqrt(i*i+s*s))&&(i/=a,s/=a,l/=a),e*s180?t+=360:t-e>180&&(e+=360),n.push({i:i.push(o(i)+"rotate(",null,s)-2,x:rt(e,t)})):t&&i.push(o(i)+"rotate("+t+s)}(n.rotate,r.rotate,a,l),function(e,t,i,n){e!==t?n.push({i:i.push(o(i)+"skewX(",null,s)-2,x:rt(e,t)}):t&&i.push(o(i)+"skewX("+t+s)}(n.skewX,r.skewX,a,l),function(e,t,i,s,n,r){if(e!==i||t!==s){var a=n.push(o(n)+"scale(",null,",",null,")");r.push({i:a-4,x:rt(e,i)},{i:a-2,x:rt(t,s)})}else 1===i&&1===s||n.push(o(n)+"scale("+i+","+s+")")}(n.scaleX,n.scaleY,r.scaleX,r.scaleY,a,l),n=r=null,function(e){for(var t,i=-1,s=l.length;++i>8&15|t>>4&240,t>>4&15|240&t,(15&t)<<4|15&t,1):8===i?Gt(t>>24&255,t>>16&255,t>>8&255,(255&t)/255):4===i?Gt(t>>12&15|t>>8&240,t>>8&15|t>>4&240,t>>4&15|240&t,((15&t)<<4|15&t)/255):null):(t=Tt.exec(e))?new Vt(t[1],t[2],t[3],1):(t=At.exec(e))?new Vt(255*t[1]/100,255*t[2]/100,255*t[3]/100,1):(t=Pt.exec(e))?Gt(t[1],t[2],t[3],t[4]):(t=Ft.exec(e))?Gt(255*t[1]/100,255*t[2]/100,255*t[3]/100,t[4]):(t=Mt.exec(e))?$t(t[1],t[2]/100,t[3]/100,1):(t=xt.exec(e))?$t(t[1],t[2]/100,t[3]/100,t[4]):Lt.hasOwnProperty(e)?Ot(Lt[e]):"transparent"===e?new Vt(NaN,NaN,NaN,0):null}function Ot(e){return new Vt(e>>16&255,e>>8&255,255&e,1)}function Gt(e,t,i,s){return s<=0&&(e=t=i=NaN),new Vt(e,t,i,s)}function kt(e,t,i,s){return 1===arguments.length?((o=e)instanceof wt||(o=_t(o)),o?new Vt((o=o.rgb()).r,o.g,o.b,o.opacity):new Vt):new Vt(e,t,i,null==s?1:s);var o}function Vt(e,t,i,s){this.r=+e,this.g=+t,this.b=+i,this.opacity=+s}function Ht(){return`#${zt(this.r)}${zt(this.g)}${zt(this.b)}`}function Bt(){const e=Wt(this.opacity);return`${1===e?"rgb(":"rgba("}${Ut(this.r)}, ${Ut(this.g)}, ${Ut(this.b)}${1===e?")":`, ${e})`}`}function Wt(e){return isNaN(e)?1:Math.max(0,Math.min(1,e))}function Ut(e){return Math.max(0,Math.min(255,Math.round(e)||0))}function zt(e){return((e=Ut(e))<16?"0":"")+e.toString(16)}function $t(e,t,i,s){return s<=0?e=t=i=NaN:i<=0||i>=1?e=t=NaN:t<=0&&(e=NaN),new jt(e,t,i,s)}function Kt(e){if(e instanceof jt)return new jt(e.h,e.s,e.l,e.opacity);if(e instanceof wt||(e=_t(e)),!e)return new jt;if(e instanceof jt)return e;var t=(e=e.rgb()).r/255,i=e.g/255,s=e.b/255,o=Math.min(t,i,s),n=Math.max(t,i,s),r=NaN,a=n-o,l=(n+o)/2;return a?(r=t===n?(i-s)/a+6*(i0&&l<1?0:r,new jt(r,a,l,e.opacity)}function jt(e,t,i,s){this.h=+e,this.s=+t,this.l=+i,this.opacity=+s}function Yt(e){return(e=(e||0)%360)<0?e+360:e}function qt(e){return Math.max(0,Math.min(1,e||0))}function Xt(e,t,i){return 255*(e<60?t+(i-t)*e/60:e<180?i:e<240?t+(i-t)*(240-e)/60:t)}function Qt(e,t,i,s,o){var n=e*e,r=n*e;return((1-3*e+3*n-r)*t+(4-6*n+3*r)*i+(1+3*e+3*n-3*r)*s+r*o)/6}Ct(wt,_t,{copy(e){return Object.assign(new this.constructor,this,e)},displayable(){return this.rgb().displayable()},hex:It,formatHex:It,formatHex8:function(){return this.rgb().formatHex8()},formatHsl:function(){return Kt(this).formatHsl()},formatRgb:Nt,toString:Nt}),Ct(Vt,kt,vt(wt,{brighter(e){return e=null==e?Et:Math.pow(Et,e),new Vt(this.r*e,this.g*e,this.b*e,this.opacity)},darker(e){return e=null==e?yt:Math.pow(yt,e),new Vt(this.r*e,this.g*e,this.b*e,this.opacity)},rgb(){return this},clamp(){return new Vt(Ut(this.r),Ut(this.g),Ut(this.b),Wt(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:Ht,formatHex:Ht,formatHex8:function(){return`#${zt(this.r)}${zt(this.g)}${zt(this.b)}${zt(255*(isNaN(this.opacity)?1:this.opacity))}`},formatRgb:Bt,toString:Bt})),Ct(jt,(function(e,t,i,s){return 1===arguments.length?Kt(e):new jt(e,t,i,null==s?1:s)}),vt(wt,{brighter(e){return e=null==e?Et:Math.pow(Et,e),new jt(this.h,this.s,this.l*e,this.opacity)},darker(e){return e=null==e?yt:Math.pow(yt,e),new jt(this.h,this.s,this.l*e,this.opacity)},rgb(){var e=this.h%360+360*(this.h<0),t=isNaN(e)||isNaN(this.s)?0:this.s,i=this.l,s=i+(i<.5?i:1-i)*t,o=2*i-s;return new Vt(Xt(e>=240?e-240:e+120,o,s),Xt(e,o,s),Xt(e<120?e+240:e-120,o,s),this.opacity)},clamp(){return new jt(Yt(this.h),qt(this.s),qt(this.l),Wt(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 e=Wt(this.opacity);return`${1===e?"hsl(":"hsla("}${Yt(this.h)}, ${100*qt(this.s)}%, ${100*qt(this.l)}%${1===e?")":`, ${e})`}`}}));const Jt=e=>()=>e;function Zt(e,t){var i=t-e;return i?function(e,t){return function(i){return e+i*t}}(e,i):Jt(isNaN(e)?t:e)}const ei=function e(t){var i=function(e){return 1==(e=+e)?Zt:function(t,i){return i-t?function(e,t,i){return e=Math.pow(e,i),t=Math.pow(t,i)-e,i=1/i,function(s){return Math.pow(e+s*t,i)}}(t,i,e):Jt(isNaN(t)?i:t)}}(t);function s(e,t){var s=i((e=kt(e)).r,(t=kt(t)).r),o=i(e.g,t.g),n=i(e.b,t.b),r=Zt(e.opacity,t.opacity);return function(t){return e.r=s(t),e.g=o(t),e.b=n(t),e.opacity=r(t),e+""}}return s.gamma=e,s}(1);function ti(e){return function(t){var i,s,o=t.length,n=new Array(o),r=new Array(o),a=new Array(o);for(i=0;i=1?(i=1,t-1):Math.floor(i*t),o=e[s],n=e[s+1],r=s>0?e[s-1]:2*o-n,a=sn&&(o=t.slice(n,o),a[r]?a[r]+=o:a[++r]=o),(i=i[0])===(s=s[0])?a[r]?a[r]+=s:a[++r]=s:(a[++r]=null,l.push({i:r,x:rt(i,s)})),n=si.lastIndex;return n=0&&(e=e.slice(0,t)),!e||"start"===e}))}(t)?st:ot;return function(){var r=n(this,e),a=r.on;a!==s&&(o=(s=a).copy()).on(t,i),r.on=o}}(i,e,t))},attr:function(e,t){var i=G(e),s="transform"===i?pt:ni;return this.attrTween(e,"function"==typeof t?(i.local?di:hi)(i,s,ft(this,"attr."+e,t)):null==t?(i.local?ai:ri)(i):(i.local?ui:li)(i,s,t))},attrTween:function(e,t){var i="attr."+e;if(arguments.length<2)return(i=this.tween(i))&&i._value;if(null==t)return this.tween(i,null);if("function"!=typeof t)throw new Error;var s=G(e);return this.tween(i,(s.local?ci:pi)(s,t))},style:function(e,t,i){var s="transform"==(e+="")?ct:ni;return null==t?this.styleTween(e,function(e,t){var i,s,o;return function(){var n=Y(this,e),r=(this.style.removeProperty(e),Y(this,e));return n===r?null:n===i&&r===s?o:o=t(i=n,s=r)}}(e,s)).on("end.style."+e,wi(e)):"function"==typeof t?this.styleTween(e,function(e,t,i){var s,o,n;return function(){var r=Y(this,e),a=i(this),l=a+"";return null==a&&(this.style.removeProperty(e),l=a=Y(this,e)),r===l?null:r===s&&l===o?n:(o=l,n=t(s=r,a))}}(e,s,ft(this,"style."+e,t))).each(function(e,t){var i,s,o,n,r="style."+t,a="end."+r;return function(){var l=ot(this,e),u=l.on,h=null==l.value[r]?n||(n=wi(t)):void 0;u===i&&o===h||(s=(i=u).copy()).on(a,o=h),l.on=s}}(this._id,e)):this.styleTween(e,function(e,t,i){var s,o,n=i+"";return function(){var r=Y(this,e);return r===n?null:r===s?o:o=t(s=r,i)}}(e,s,t),i).on("end.style."+e,null)},styleTween:function(e,t,i){var s="style."+(e+="");if(arguments.length<2)return(s=this.tween(s))&&s._value;if(null==t)return this.tween(s,null);if("function"!=typeof t)throw new Error;return this.tween(s,function(e,t,i){var s,o;function n(){var n=t.apply(this,arguments);return n!==o&&(s=(o=n)&&function(e,t,i){return function(s){this.style.setProperty(e,t.call(this,s),i)}}(e,n,i)),s}return n._value=t,n}(e,t,null==i?"":i))},text:function(e){return this.tween("text","function"==typeof e?function(e){return function(){var t=e(this);this.textContent=null==t?"":t}}(ft(this,"text",e)):function(e){return function(){this.textContent=e}}(null==e?"":e+""))},textTween:function(e){var t="text";if(arguments.length<1)return(t=this.tween(t))&&t._value;if(null==e)return this.tween(t,null);if("function"!=typeof e)throw new Error;return this.tween(t,function(e){var t,i;function s(){var s=e.apply(this,arguments);return s!==i&&(t=(i=s)&&function(e){return function(t){this.textContent=e.call(this,t)}}(s)),t}return s._value=e,s}(e))},remove:function(){return this.on("end.remove",function(e){return function(){var t=this.parentNode;for(var i in this.__transition)if(+i!==e)return;t&&t.removeChild(this)}}(this._id))},tween:function(e,t){var i=this._id;if(e+="",arguments.length<2){for(var s,o=nt(this.node(),i).tween,n=0,r=o.length;n2&&i.state<5,i.state=6,i.timer.stop(),i.on.call(s?"interrupt":"cancel",e,e.__data__,i.index,i.group),delete n[o]):r=!1;r&&delete e.__transition}}(this,e)}))},Fe.prototype.transition=function(e){var t,i;e instanceof Ei?(t=e._id,e=e._name):(t=Si(),(i=Ri).time=Ke(),e=null==e?null:e+"");for(var s=this._groups,o=s.length,n=0;n=Gi?10:n>=ki?5:n>=Vi?2:1;let a,l,u;return o<0?(u=Math.pow(10,-o)/r,a=Math.round(e*u),l=Math.round(t*u),a/ut&&--l,u=-u):(u=Math.pow(10,o)*r,a=Math.round(e/u),l=Math.round(t/u),a*ut&&--l),lt?1:e>=t?0:NaN}function Ui(e,t){return null==e||null==t?NaN:te?1:t>=e?0:NaN}function zi(e){let t,i,s;function o(e,s,o=0,n=e.length){if(o>>1;i(e[t],s)<0?o=t+1:n=t}while(oWi(e(t),i),s=(t,i)=>e(t)-i):(t=e===Wi||e===Ui?e:$i,i=e,s=e),{left:o,center:function(e,t,i=0,n=e.length){const r=o(e,t,i,n-1);return r>i&&s(e[r-1],t)>-s(e[r],t)?r-1:r},right:function(e,s,o=0,n=e.length){if(o>>1;i(e[t],s)<=0?o=t+1:n=t}while(o=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i;function us(e){if(!(t=ls.exec(e)))throw new Error("invalid format: "+e);var t;return new hs({fill:t[1],align:t[2],sign:t[3],symbol:t[4],zero:t[5],width:t[6],comma:t[7],precision:t[8]&&t[8].slice(1),trim:t[9],type:t[10]})}function hs(e){this.fill=void 0===e.fill?" ":e.fill+"",this.align=void 0===e.align?">":e.align+"",this.sign=void 0===e.sign?"-":e.sign+"",this.symbol=void 0===e.symbol?"":e.symbol+"",this.zero=!!e.zero,this.width=void 0===e.width?void 0:+e.width,this.comma=!!e.comma,this.precision=void 0===e.precision?void 0:+e.precision,this.trim=!!e.trim,this.type=void 0===e.type?"":e.type+""}function ds(e,t){if((i=(e=t?e.toExponential(t-1):e.toExponential()).indexOf("e"))<0)return null;var i,s=e.slice(0,i);return[s.length>1?s[0]+s.slice(2):s,+e.slice(i+1)]}function cs(e){return(e=ds(Math.abs(e)))?e[1]:NaN}function ps(e,t){var i=ds(e,t);if(!i)return e+"";var s=i[0],o=i[1];return o<0?"0."+new Array(-o).join("0")+s:s.length>o+1?s.slice(0,o+1)+"."+s.slice(o+1):s+new Array(o-s.length+2).join("0")}us.prototype=hs.prototype,hs.prototype.toString=function(){return this.fill+this.align+this.sign+this.symbol+(this.zero?"0":"")+(void 0===this.width?"":Math.max(1,0|this.width))+(this.comma?",":"")+(void 0===this.precision?"":"."+Math.max(0,0|this.precision))+(this.trim?"~":"")+this.type};const gs={"%":(e,t)=>(100*e).toFixed(t),b:e=>Math.round(e).toString(2),c:e=>e+"",d:function(e){return Math.abs(e=Math.round(e))>=1e21?e.toLocaleString("en").replace(/,/g,""):e.toString(10)},e:(e,t)=>e.toExponential(t),f:(e,t)=>e.toFixed(t),g:(e,t)=>e.toPrecision(t),o:e=>Math.round(e).toString(8),p:(e,t)=>ps(100*e,t),r:ps,s:function(e,t){var i=ds(e,t);if(!i)return e+"";var s=i[0],o=i[1],n=o-(as=3*Math.max(-8,Math.min(8,Math.floor(o/3))))+1,r=s.length;return n===r?s:n>r?s+new Array(n-r+1).join("0"):n>0?s.slice(0,n)+"."+s.slice(n):"0."+new Array(1-n).join("0")+ds(e,Math.max(0,t+n-1))[0]},X:e=>Math.round(e).toString(16).toUpperCase(),x:e=>Math.round(e).toString(16)};function ms(e){return e}var fs,Cs,vs,ws=Array.prototype.map,ys=["y","z","a","f","p","n","µ","m","","k","M","G","T","P","E","Z","Y"];function Es(e){var t=e.domain;return e.ticks=function(e){var i=t();return function(e,t,i){if(!((i=+i)>0))return[];if((e=+e)==(t=+t))return[e];const s=t=o))return[];const a=n-o+1,l=new Array(a);if(s)if(r<0)for(let e=0;e0;){if((o=Bi(l,u,i))===s)return n[r]=l,n[a]=u,t(n);if(o>0)l=Math.floor(l/o)*o,u=Math.ceil(u/o)*o;else{if(!(o<0))break;l=Math.ceil(l*o)/o,u=Math.floor(u*o)/o}s=o}return e},e}function Ss(){var e=function(){var e,t,i,s,o,n,r=is,a=is,l=Zi,u=ss;function h(){var e,t,i,l=Math.min(r.length,a.length);return u!==ss&&(e=r[0],t=r[l-1],e>t&&(i=e,e=t,t=i),u=function(i){return Math.max(e,Math.min(t,i))}),s=l>2?rs:ns,o=n=null,d}function d(t){return null==t||isNaN(t=+t)?i:(o||(o=s(r.map(e),a,l)))(e(u(t)))}return d.invert=function(i){return u(t((n||(n=s(a,r.map(e),rt)))(i)))},d.domain=function(e){return arguments.length?(r=Array.from(e,ts),h()):r.slice()},d.range=function(e){return arguments.length?(a=Array.from(e),h()):a.slice()},d.rangeRound=function(e){return a=Array.from(e),l=es,h()},d.clamp=function(e){return arguments.length?(u=!!e||ss,h()):u!==ss},d.interpolate=function(e){return arguments.length?(l=e,h()):l},d.unknown=function(e){return arguments.length?(i=e,d):i},function(i,s){return e=i,t=s,h()}}()(ss,ss);return e.copy=function(){return t=e,Ss().domain(t.domain()).range(t.range()).interpolate(t.interpolate()).clamp(t.clamp()).unknown(t.unknown());var t},Mi.apply(e,arguments),Es(e)}function bs(e){return"string"==typeof e?new Ae([[document.querySelector(e)]],[document.documentElement]):new Ae([[e]],Te)}function Rs(e,t,i){this.k=e,this.x=t,this.y=i}fs=function(e){var t,i,s=void 0===e.grouping||void 0===e.thousands?ms:(t=ws.call(e.grouping,Number),i=e.thousands+"",function(e,s){for(var o=e.length,n=[],r=0,a=t[0],l=0;o>0&&a>0&&(l+a+1>s&&(a=Math.max(1,s-l)),n.push(e.substring(o-=a,o+a)),!((l+=a+1)>s));)a=t[r=(r+1)%t.length];return n.reverse().join(i)}),o=void 0===e.currency?"":e.currency[0]+"",n=void 0===e.currency?"":e.currency[1]+"",r=void 0===e.decimal?".":e.decimal+"",a=void 0===e.numerals?ms:function(e){return function(t){return t.replace(/[0-9]/g,(function(t){return e[+t]}))}}(ws.call(e.numerals,String)),l=void 0===e.percent?"%":e.percent+"",u=void 0===e.minus?"−":e.minus+"",h=void 0===e.nan?"NaN":e.nan+"";function d(e){var t=(e=us(e)).fill,i=e.align,d=e.sign,c=e.symbol,p=e.zero,g=e.width,m=e.comma,f=e.precision,C=e.trim,v=e.type;"n"===v?(m=!0,v="g"):gs[v]||(void 0===f&&(f=12),C=!0,v="g"),(p||"0"===t&&"="===i)&&(p=!0,t="0",i="=");var w="$"===c?o:"#"===c&&/[boxX]/.test(v)?"0"+v.toLowerCase():"",y="$"===c?n:/[%p]/.test(v)?l:"",E=gs[v],S=/[defgprs%]/.test(v);function b(e){var o,n,l,c=w,b=y;if("c"===v)b=E(e)+b,e="";else{var R=(e=+e)<0||1/e<0;if(e=isNaN(e)?h:E(Math.abs(e),f),C&&(e=function(e){e:for(var t,i=e.length,s=1,o=-1;s0&&(o=0)}return o>0?e.slice(0,o)+e.slice(t+1):e}(e)),R&&0==+e&&"+"!==d&&(R=!1),c=(R?"("===d?d:u:"-"===d||"("===d?"":d)+c,b=("s"===v?ys[8+as/3]:"")+b+(R&&"("===d?")":""),S)for(o=-1,n=e.length;++o(l=e.charCodeAt(o))||l>57){b=(46===l?r+e.slice(o+1):e.slice(o))+b,e=e.slice(0,o);break}}m&&!p&&(e=s(e,1/0));var D=c.length+e.length+b.length,T=D>1)+c+e+b+T.slice(D);break;default:e=T+c+e+b}return a(e)}return f=void 0===f?6:/[gprs]/.test(v)?Math.max(1,Math.min(21,f)):Math.max(0,Math.min(20,f)),b.toString=function(){return e+""},b}return{format:d,formatPrefix:function(e,t){var i=d(((e=us(e)).type="f",e)),s=3*Math.max(-8,Math.min(8,Math.floor(cs(t)/3))),o=Math.pow(10,-s),n=ys[8+s/3];return function(e){return i(o*e)+n}}}}({thousands:",",grouping:[3],currency:["$",""]}),Cs=fs.format,vs=fs.formatPrefix,Rs.prototype={constructor:Rs,scale:function(e){return 1===e?this:new Rs(this.k*e,this.x,this.y)},translate:function(e,t){return 0===e&0===t?this:new Rs(this.k,this.x+this.k*e,this.y+this.k*t)},apply:function(e){return[e[0]*this.k+this.x,e[1]*this.k+this.y]},applyX:function(e){return e*this.k+this.x},applyY:function(e){return e*this.k+this.y},invert:function(e){return[(e[0]-this.x)/this.k,(e[1]-this.y)/this.k]},invertX:function(e){return(e-this.x)/this.k},invertY:function(e){return(e-this.y)/this.k},rescaleX:function(e){return e.copy().domain(e.range().map(this.invertX,this).map(e.invert,e))},rescaleY:function(e){return e.copy().domain(e.range().map(this.invertY,this).map(e.invert,e))},toString:function(){return"translate("+this.x+","+this.y+") scale("+this.k+")"}},new Rs(1,0,0),Rs.prototype;const Ds=({chartData:e=[],height:t="400px",width:i="100%",valueColumn:s="Value",labelsColumn:n="Label",colorColumn:r="Color",popoverColumn:h="Content",defaultBarColor:d="#4CAF50"})=>{const c=(0,l.useRef)(null),[p,g]=(0,l.useState)(null);return(0,l.useEffect)((()=>{if(!Array.isArray(e)||0===e.length||!c.current)return;const i=e[0];if(Object.keys(i).length<2)return;bs(c.current).selectAll("*").remove();const o=c.current.clientWidth,a=parseInt(t)||400,l=o-60-30,p=a-30-70,m=bs(c.current).append("svg").attr("width",o).attr("height",a).append("g").attr("transform","translate(60,30)"),f=Oi().range([0,l]).domain(e.map((e=>String(e[n])))).padding(.2);var v;m.append("g").attr("transform",`translate(0,${p})`).call((v=f,C(3,v))).selectAll("text").attr("transform","translate(-10,0)rotate(-45)").style("text-anchor","end"),m.append("text").attr("text-anchor","middle").attr("x",l/2).attr("y",p+70-10).text(n);const w=Ss().domain([0,u(e,(e=>{const t=Number(e[s]);return isNaN(t)?0:t}))]).range([p,0]);m.append("g").call(function(e){return C(4,e)}(w)),m.append("text").attr("text-anchor","middle").attr("transform","rotate(-90)").attr("y",-40).attr("x",-p/2).text(s),m.selectAll("rect").data(e).join("rect").attr("x",(e=>f(String(e[n])))).attr("y",(e=>{const t=Number(e[s]);return w(isNaN(t)?0:t)})).attr("width",f.bandwidth()).attr("height",(e=>{const t=Number(e[s]);return p-w(isNaN(t)?0:t)})).attr("fill",(e=>r&&e[r]?e[r]:d)).on("mouseover",(function(e,t){if(bs(this).transition().duration(200).attr("opacity",.8),m.append("text").attr("class","value-label").attr("x",f(String(t[n]))+f.bandwidth()/2).attr("y",w(Number(t[s]))-5).attr("text-anchor","middle").text(t[s]),h&&t[h]){const e=this.getBoundingClientRect();g({content:t[h],position:{top:e.top+window.scrollY,left:e.left+e.width/2+window.scrollX}})}})).on("mouseout",(function(){bs(this).transition().duration(200).attr("opacity",1),m.selectAll(".value-label").remove(),g(null)}))}),[e,t,i,s,n,r,h,d]),(0,o.createElement)("div",{style:{position:"relative"}},(0,o.createElement)("div",{className:"d3-container",ref:c,style:{width:i,height:t,backgroundColor:"#ffffff"}}),p&&(0,o.createElement)(a.Popover,{position:"top",focusOnMount:!1,onClose:()=>g(null),anchorRect:{top:p.position.top,left:p.position.left,bottom:p.position.top,right:p.position.left,width:0,height:0}},(0,o.createElement)("div",{style:{padding:"12px"},dangerouslySetInnerHTML:{__html:p.content}})))};var Ts=Object.defineProperty,As=Object.defineProperties,Ps=Object.getOwnPropertyDescriptor,Fs=Object.getOwnPropertyDescriptors,Ms=Object.getOwnPropertySymbols,xs=Object.prototype.hasOwnProperty,Ls=Object.prototype.propertyIsEnumerable,Is=(e,t,i)=>t in e?Ts(e,t,{enumerable:!0,configurable:!0,writable:!0,value:i}):e[t]=i,Ns=(e,t)=>{for(var i in t||(t={}))xs.call(t,i)&&Is(e,i,t[i]);if(Ms)for(var i of Ms(t))Ls.call(t,i)&&Is(e,i,t[i]);return e},_s=(e,t)=>As(e,Fs(t)),Os=(e,t)=>{for(var i in t)Ts(e,i,{get:t[i],enumerable:!0})},Gs=(e,t,i,s)=>{for(var o,n=s>1?void 0:s?Ps(t,i):t,r=e.length-1;r>=0;r--)(o=e[r])&&(n=(s?o(t,i,n):o(n))||n);return s&&n&&Ts(t,i,n),n},ks=(e,t)=>(i,s)=>t(i,s,e),Vs={};function Hs(e){return null==e||""===e?null:e}function Bs(e,t=!1){return null!=e&&(""!==e||t)}function Ws(e){return!Bs(e)}function Us(e){return null==e||0===e.length}function zs(e){return null!=e&&"function"==typeof e.toString?e.toString():null}function $s(e){if(void 0===e)return;if(null===e||""===e)return null;if("number"==typeof e)return isNaN(e)?void 0:e;const t=parseInt(e,10);return isNaN(t)?void 0:t}function Ks(e){if(void 0!==e)return null!==e&&""!==e&&("boolean"==typeof e?e:/true/i.test(e))}function js(e){if(null!=e&&""!==e)return e}function Ys(e,t){return(e?JSON.stringify(e):null)===(t?JSON.stringify(t):null)}function qs(e,t,i=!1){const s=null==e,o=null==t;if(e&&e.toNumber&&(e=e.toNumber()),t&&t.toNumber&&(t=t.toNumber()),s&&o)return 0;if(s)return-1;if(o)return 1;function n(e,t){return e>t?1:et.push(e))),t}return Object.values(e)}Os(Vs,{attrToBoolean:()=>Ks,attrToNumber:()=>$s,attrToString:()=>js,defaultComparator:()=>qs,exists:()=>Bs,jsonEquals:()=>Ys,makeNull:()=>Hs,missing:()=>Ws,missingOrEmpty:()=>Us,toStringOrNull:()=>zs,values:()=>Xs});var Qs=class{constructor(){this.existingKeys={}}addExistingKeys(e){for(let t=0;tZs,cloneObject:()=>to,deepCloneDefinition:()=>io,getAllValuesInObject:()=>so,getValueUsingField:()=>no,isNonNullObject:()=>ao,iterateObject:()=>eo,mergeDeep:()=>oo,removeAllReferences:()=>ro});var Zs=new Set(["__proto__","constructor","prototype"]);function eo(e,t){if(null!=e)if(Array.isArray(e))for(let i=0;i{if(t&&t.indexOf(e)>=0||Zs.has(e))return;const o=i[e],n=ao(o)&&o.constructor===Object;s[e]=n?io(o):o})),s}function so(e){if(!e)return[];const t=Object;if("function"==typeof t.values)return t.values(e);const i=[];for(const t in e)e.hasOwnProperty(t)&&e.propertyIsEnumerable(t)&&i.push(e[t]);return i}function oo(e,t,i=!0,s=!1){Bs(t)&&eo(t,((t,o)=>{if(Zs.has(t))return;let n=e[t];n!==o&&(s&&null==n&&null!=o&&"object"==typeof o&&o.constructor===Object&&(n={},e[t]=n),ao(o)&&ao(n)&&!Array.isArray(n)?oo(n,o,i,s):(i||void 0!==o)&&(e[t]=o))}))}function no(e,t,i){if(!t||!e)return;if(!i)return e[t];const s=t.split(".");let o=e;for(let e=0;e{"object"!=typeof e[i]||t.includes(i)||(e[i]=void 0)}));const s=Object.getPrototypeOf(e),o={};Object.getOwnPropertyNames(s).forEach((e=>{if("function"==typeof s[e]&&!t.includes(e)){const t=()=>{console.warn((e=>`AG Grid: Grid API function ${e}() cannot be called as the grid has been destroyed.\n It is recommended to remove local references to the grid api. Alternatively, check gridApi.isDestroyed() to avoid calling methods against a destroyed grid.\n To run logic when the grid is about to be destroyed use the gridPreDestroy event. See: ${i}`)(e))};o[e]={value:t,writable:!0}}})),Object.defineProperties(e,o)}function ao(e){return"object"==typeof e&&null!==e}var lo={};Os(lo,{compose:()=>Ro,debounce:()=>Eo,doOnce:()=>ho,errorOnce:()=>po,executeAfter:()=>yo,executeInAWhile:()=>fo,executeNextVMTurn:()=>wo,getFunctionName:()=>go,isFunction:()=>mo,noop:()=>Do,throttle:()=>So,waitUntil:()=>bo,warnOnce:()=>co});var uo={};function ho(e,t){uo[t]||(e(),uo[t]=!0)}function co(e){ho((()=>console.warn("AG Grid: "+e)),e)}function po(e){ho((()=>console.error("AG Grid: "+e)),e)}function go(e){if(e.name)return e.name;const t=/function\s+([^\(]+)/.exec(e.toString());return t&&2===t.length?t[1].trim():null}function mo(e){return!!(e&&e.constructor&&e.call&&e.apply)}function fo(e){yo(e,400)}var Co=[],vo=!1;function wo(e){Co.push(e),vo||(vo=!0,window.setTimeout((()=>{const e=Co.slice();Co.length=0,vo=!1,e.forEach((e=>e()))}),0))}function yo(e,t=0){e.length>0&&window.setTimeout((()=>e.forEach((e=>e()))),t)}function Eo(e,t){let i;return function(...s){const o=this;window.clearTimeout(i),i=window.setTimeout((function(){e.apply(o,s)}),t)}}function So(e,t){let i=0;return function(...s){const o=(new Date).getTime();o-i{const a=(new Date).getTime()-o>i;(e()||a)&&(t(),r=!0,null!=n&&(window.clearInterval(n),n=null),a&&s&&console.warn(s))};a(),r||(n=window.setInterval(a,10))}function Ro(...e){return t=>e.reduce(((e,t)=>t(e)),t)}var Do=()=>{},To=(e=>(e.CommunityCoreModule="@ag-grid-community/core",e.InfiniteRowModelModule="@ag-grid-community/infinite-row-model",e.ClientSideRowModelModule="@ag-grid-community/client-side-row-model",e.CsvExportModule="@ag-grid-community/csv-export",e.EnterpriseCoreModule="@ag-grid-enterprise/core",e.RowGroupingModule="@ag-grid-enterprise/row-grouping",e.ColumnsToolPanelModule="@ag-grid-enterprise/column-tool-panel",e.FiltersToolPanelModule="@ag-grid-enterprise/filter-tool-panel",e.MenuModule="@ag-grid-enterprise/menu",e.SetFilterModule="@ag-grid-enterprise/set-filter",e.MultiFilterModule="@ag-grid-enterprise/multi-filter",e.StatusBarModule="@ag-grid-enterprise/status-bar",e.SideBarModule="@ag-grid-enterprise/side-bar",e.RangeSelectionModule="@ag-grid-enterprise/range-selection",e.MasterDetailModule="@ag-grid-enterprise/master-detail",e.RichSelectModule="@ag-grid-enterprise/rich-select",e.GridChartsModule="@ag-grid-enterprise/charts",e.ViewportRowModelModule="@ag-grid-enterprise/viewport-row-model",e.ServerSideRowModelModule="@ag-grid-enterprise/server-side-row-model",e.ExcelExportModule="@ag-grid-enterprise/excel-export",e.ClipboardModule="@ag-grid-enterprise/clipboard",e.SparklinesModule="@ag-grid-enterprise/sparklines",e.AdvancedFilterModule="@ag-grid-enterprise/advanced-filter",e.AngularModule="@ag-grid-community/angular",e.ReactModule="@ag-grid-community/react",e.VueModule="@ag-grid-community/vue",e))(To||{}),Ao=class e{static register(t){e.__register(t,!0,void 0)}static registerModules(t){e.__registerModules(t,!0,void 0)}static __register(t,i,s){e.runVersionChecks(t),void 0!==s?(e.areGridScopedModules=!0,void 0===e.gridModulesMap[s]&&(e.gridModulesMap[s]={}),e.gridModulesMap[s][t.moduleName]=t):e.globalModulesMap[t.moduleName]=t,e.setModuleBased(i)}static __unRegisterGridModules(t){delete e.gridModulesMap[t]}static __registerModules(t,i,s){e.setModuleBased(i),t&&t.forEach((t=>e.__register(t,i,s)))}static isValidModuleVersion(t){const[i,s]=t.version.split(".")||[],[o,n]=e.currentModuleVersion.split(".")||[];return i===o&&s===n}static runVersionChecks(t){if(e.currentModuleVersion||(e.currentModuleVersion=t.version),t.version?e.isValidModuleVersion(t)||console.error(`AG Grid: You are using incompatible versions of AG Grid modules. Major and minor versions should always match across modules. '${t.moduleName}' is version ${t.version} but the other modules are version ${this.currentModuleVersion}. Please update all modules to the same version.`):console.error(`AG Grid: You are using incompatible versions of AG Grid modules. Major and minor versions should always match across modules. '${t.moduleName}' is incompatible. Please update all modules to the same version.`),t.validate){const e=t.validate();if(!e.isValid){const t=e;console.error(`AG Grid: ${t.message}`)}}}static setModuleBased(t){void 0===e.moduleBased?e.moduleBased=t:e.moduleBased!==t&&ho((()=>{console.warn("AG Grid: You are mixing modules (i.e. @ag-grid-community/core) and packages (ag-grid-community) - you can only use one or the other of these mechanisms."),console.warn("Please see https://www.ag-grid.com/javascript-grid/modules/ for more information.")}),"ModulePackageCheck")}static __setIsBundled(){e.isBundled=!0}static __assertRegistered(t,i,s){var o;if(this.__isRegistered(t,s))return!0;const n=i+t;let r;if(e.isBundled)r=`AG Grid: unable to use ${i} as 'ag-grid-enterprise' has not been loaded. Check you are using the Enterprise bundle:\n \n