@oneclick.dev/cms-core-modules 0.0.110 → 0.0.111
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{Acquisition-Dt2rREU8.js → Acquisition-DgzDQH51.js} +1 -1
- package/dist/{Acquisition-DNCy8nQz.mjs → Acquisition-FV3QpaUX.mjs} +2 -2
- package/dist/{Audience-Bs7b0TNm.js → Audience-BSgNvcVb.js} +1 -1
- package/dist/{Audience-CUeMVYRy.mjs → Audience-ka0b7YPE.mjs} +2 -2
- package/dist/{ContentEditor-D9-1SJ5F.mjs → ContentEditor-pZPfo0qN.mjs} +4384 -4282
- package/dist/{ContentEditor-BprPiHMJ.js → ContentEditor-tYkh4vRV.js} +42 -42
- package/dist/{Create-89z41K73.js → Create--MOBOTA-.js} +1 -1
- package/dist/{Create-BCklc_T1.mjs → Create-BXNLRQag.mjs} +1 -1
- package/dist/DateFormatter-CSAbE3BC.js +1 -0
- package/dist/{DateFormatter-DUxlo8X8.mjs → DateFormatter-qbhRYxI_.mjs} +226 -222
- package/dist/{Detail-CNlljBfH.mjs → Detail-ChD5XurA.mjs} +1 -1
- package/dist/{Detail-C857g62L.js → Detail-RISEJJab.js} +1 -1
- package/dist/{Find-DIISO5GO.mjs → Find-zN_dKz4p.mjs} +1 -1
- package/dist/NewReservationDialog.vue_vue_type_script_setup_true_lang-Baqy-rTT.js +1 -0
- package/dist/NewReservationDialog.vue_vue_type_script_setup_true_lang-Dx4Bpa2m.mjs +1263 -0
- package/dist/{Overview-Di84CsR5.mjs → Overview-98nkJUWN.mjs} +162 -157
- package/dist/{Overview-C-Jb_BxY.mjs → Overview-BR_y8x3W.mjs} +1 -1
- package/dist/{Overview-DC9io1bk.js → Overview-CX-n6W7d.js} +1 -1
- package/dist/Overview-Dl8cMlsr.js +1 -0
- package/dist/{Overview-BKAti8nc.mjs → Overview-MpgkLB6m.mjs} +36 -36
- package/dist/{SeoHealth-az1YuNF2.js → SeoHealth-C5npw7mE.js} +1 -1
- package/dist/{SeoHealth-MC3lSCOY.mjs → SeoHealth-bVQj_Xgm.mjs} +29 -29
- package/dist/{TableView-DXHhJ-jm.mjs → TableView-Bf1fdJrD.mjs} +1838 -1822
- package/dist/TableView-DNcXyIMu.js +4 -0
- package/dist/{agenda-IOqtALWf.js → agenda-BaJu3-1c.js} +1 -1
- package/dist/{agenda-DcatSSYQ.mjs → agenda-BwVY_8oM.mjs} +3 -3
- package/dist/cms-core-modules.css +1 -1
- package/dist/{exceptions-CI0B4xVj.js → exceptions-B6P9UiCj.js} +1 -1
- package/dist/{exceptions-YCQkHa6a.mjs → exceptions-De9-FvdP.mjs} +67 -67
- package/dist/{index-CpzDEMeC.mjs → index-B8GvmAwh.mjs} +438 -478
- package/dist/{index-wjkEPsNx.mjs → index-BIF2RB7k.mjs} +1212 -1316
- package/dist/index-ByRsp77L.js +70 -0
- package/dist/{index-BhWvXMOp.mjs → index-CFzn2Lus.mjs} +5 -9
- package/dist/{index-BFLV54kw.mjs → index-CkVwMqpn.mjs} +1114 -1100
- package/dist/index-DL6orwdK.js +35 -0
- package/dist/index-DUlYrnXH.js +58 -0
- package/dist/index-DZV720u-.mjs +439 -0
- package/dist/index-D_nfGegA.js +184 -0
- package/dist/index-DtSvAFLL.js +54 -0
- package/dist/{index-D30apIn-.mjs → index-L54VBzwJ.mjs} +2 -3
- package/dist/{index-BzWmWCo5.mjs → index-hH3e-IYz.mjs} +267 -267
- package/dist/index.cjs.js +1 -1
- package/dist/index.mjs +15 -15
- package/dist/math-BJ-oX_IM.mjs +80 -0
- package/dist/math-emotyaF6.js +1 -0
- package/dist/{resources-CYOb5Bl6.mjs → resources-DwYxn2Vi.mjs} +1 -1
- package/dist/src/contentManager/components/content-editor/tiptap-extensions/ScopedSelectAll.d.ts +1 -2
- package/dist/src/contentManager/components/content-editor/tiptap-extensions/helpers/useFocus.d.ts +1 -0
- package/package.json +2 -2
- package/dist/DateFormatter-CYAD4GBN.js +0 -1
- package/dist/NewReservationDialog.vue_vue_type_script_setup_true_lang-Ceoje52V.js +0 -1
- package/dist/NewReservationDialog.vue_vue_type_script_setup_true_lang-Dh9jzvE0.mjs +0 -1255
- package/dist/Overview-UoZHUMUz.js +0 -1
- package/dist/TableView-DQW0A1oG.js +0 -4
- package/dist/array-CbATeQbk.js +0 -1
- package/dist/array-DT5pE8Gm.mjs +0 -108
- package/dist/index-A2kp8Isi.js +0 -75
- package/dist/index-B5aBwdxY.js +0 -54
- package/dist/index-BiT55eU0.js +0 -58
- package/dist/index-G7cIlnGN.js +0 -158
- package/dist/index-V78huaSJ.mjs +0 -442
- package/dist/index-vHmvbEwa.js +0 -35
package/dist/index-A2kp8Isi.js
DELETED
|
@@ -1,75 +0,0 @@
|
|
|
1
|
-
"use strict";const w=require("vue"),u=require("./index-B5aBwdxY.js"),T=require("./index-G7cIlnGN.js"),m=require("./array-CbATeQbk.js");function dt(t){this._context=t}dt.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._point=0},lineEnd:function(){(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line},point:function(t,e){switch(t=+t,e=+e,this._point){case 0:this._point=1,this._line?this._context.lineTo(t,e):this._context.moveTo(t,e);break;case 1:this._point=2;default:this._context.lineTo(t,e);break}}};function nt(t){return new dt(t)}function vt(t){return t[0]}function gt(t){return t[1]}function it(t,e){var n=m.constant(!0),i=null,s=nt,o=null,l=m.withPath(r);t=typeof t=="function"?t:t===void 0?vt:m.constant(t),e=typeof e=="function"?e:e===void 0?gt:m.constant(e);function r(h){var c,d=(h=m.array(h)).length,a,_=!1,b;for(i==null&&(o=s(b=l())),c=0;c<=d;++c)!(c<d&&n(a=h[c],c,h))===_&&((_=!_)?o.lineStart():o.lineEnd()),_&&o.point(+t(a,c,h),+e(a,c,h));if(b)return o=null,b+""||null}return r.x=function(h){return arguments.length?(t=typeof h=="function"?h:m.constant(+h),r):t},r.y=function(h){return arguments.length?(e=typeof h=="function"?h:m.constant(+h),r):e},r.defined=function(h){return arguments.length?(n=typeof h=="function"?h:m.constant(!!h),r):n},r.curve=function(h){return arguments.length?(s=h,i!=null&&(o=s(i)),r):s},r.context=function(h){return arguments.length?(h==null?i=o=null:o=s(i=h),r):i},r}function Mt(t,e,n){var i=null,s=m.constant(!0),o=null,l=nt,r=null,h=m.withPath(c);t=typeof t=="function"?t:t===void 0?vt:m.constant(+t),e=typeof e=="function"?e:e===void 0?m.constant(0):m.constant(+e),n=typeof n=="function"?n:n===void 0?gt:m.constant(+n);function c(a){var _,b,v,x=(a=m.array(a)).length,f,p=!1,g,y=new Array(x),k=new Array(x);for(o==null&&(r=l(g=h())),_=0;_<=x;++_){if(!(_<x&&s(f=a[_],_,a))===p)if(p=!p)b=_,r.areaStart(),r.lineStart();else{for(r.lineEnd(),r.lineStart(),v=_-1;v>=b;--v)r.point(y[v],k[v]);r.lineEnd(),r.areaEnd()}p&&(y[_]=+t(f,_,a),k[_]=+e(f,_,a),r.point(i?+i(f,_,a):y[_],n?+n(f,_,a):k[_]))}if(g)return r=null,g+""||null}function d(){return it().defined(s).curve(l).context(o)}return c.x=function(a){return arguments.length?(t=typeof a=="function"?a:m.constant(+a),i=null,c):t},c.x0=function(a){return arguments.length?(t=typeof a=="function"?a:m.constant(+a),c):t},c.x1=function(a){return arguments.length?(i=a==null?null:typeof a=="function"?a:m.constant(+a),c):i},c.y=function(a){return arguments.length?(e=typeof a=="function"?a:m.constant(+a),n=null,c):e},c.y0=function(a){return arguments.length?(e=typeof a=="function"?a:m.constant(+a),c):e},c.y1=function(a){return arguments.length?(n=a==null?null:typeof a=="function"?a:m.constant(+a),c):n},c.lineX0=c.lineY0=function(){return d().x(t).y(e)},c.lineY1=function(){return d().x(t).y(n)},c.lineX1=function(){return d().x(i).y(e)},c.defined=function(a){return arguments.length?(s=typeof a=="function"?a:m.constant(!!a),c):s},c.curve=function(a){return arguments.length?(l=a,o!=null&&(r=l(o)),c):l},c.context=function(a){return arguments.length?(a==null?o=r=null:r=l(o=a),c):o},c}function C(){}function H(t,e,n){t._context.bezierCurveTo((2*t._x0+t._x1)/3,(2*t._y0+t._y1)/3,(t._x0+2*t._x1)/3,(t._y0+2*t._y1)/3,(t._x0+4*t._x1+e)/6,(t._y0+4*t._y1+n)/6)}function Y(t){this._context=t}Y.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=NaN,this._point=0},lineEnd:function(){switch(this._point){case 3:H(this,this._x1,this._y1);case 2:this._context.lineTo(this._x1,this._y1);break}(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line},point:function(t,e){switch(t=+t,e=+e,this._point){case 0:this._point=1,this._line?this._context.lineTo(t,e):this._context.moveTo(t,e);break;case 1:this._point=2;break;case 2:this._point=3,this._context.lineTo((5*this._x0+this._x1)/6,(5*this._y0+this._y1)/6);default:H(this,t,e);break}this._x0=this._x1,this._x1=t,this._y0=this._y1,this._y1=e}};function Dt(t){return new Y(t)}function xt(t){this._context=t}xt.prototype={areaStart:C,areaEnd:C,lineStart:function(){this._x0=this._x1=this._x2=this._x3=this._x4=this._y0=this._y1=this._y2=this._y3=this._y4=NaN,this._point=0},lineEnd:function(){switch(this._point){case 1:{this._context.moveTo(this._x2,this._y2),this._context.closePath();break}case 2:{this._context.moveTo((this._x2+2*this._x3)/3,(this._y2+2*this._y3)/3),this._context.lineTo((this._x3+2*this._x2)/3,(this._y3+2*this._y2)/3),this._context.closePath();break}case 3:{this.point(this._x2,this._y2),this.point(this._x3,this._y3),this.point(this._x4,this._y4);break}}},point:function(t,e){switch(t=+t,e=+e,this._point){case 0:this._point=1,this._x2=t,this._y2=e;break;case 1:this._point=2,this._x3=t,this._y3=e;break;case 2:this._point=3,this._x4=t,this._y4=e,this._context.moveTo((this._x0+4*this._x1+t)/6,(this._y0+4*this._y1+e)/6);break;default:H(this,t,e);break}this._x0=this._x1,this._x1=t,this._y0=this._y1,this._y1=e}};function jt(t){return new xt(t)}function bt(t){this._context=t}bt.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=NaN,this._point=0},lineEnd:function(){(this._line||this._line!==0&&this._point===3)&&this._context.closePath(),this._line=1-this._line},point:function(t,e){switch(t=+t,e=+e,this._point){case 0:this._point=1;break;case 1:this._point=2;break;case 2:this._point=3;var n=(this._x0+4*this._x1+t)/6,i=(this._y0+4*this._y1+e)/6;this._line?this._context.lineTo(n,i):this._context.moveTo(n,i);break;case 3:this._point=4;default:H(this,t,e);break}this._x0=this._x1,this._x1=t,this._y0=this._y1,this._y1=e}};function Et(t){return new bt(t)}function mt(t,e){this._basis=new Y(t),this._beta=e}mt.prototype={lineStart:function(){this._x=[],this._y=[],this._basis.lineStart()},lineEnd:function(){var t=this._x,e=this._y,n=t.length-1;if(n>0)for(var i=t[0],s=e[0],o=t[n]-i,l=e[n]-s,r=-1,h;++r<=n;)h=r/n,this._basis.point(this._beta*t[r]+(1-this._beta)*(i+h*o),this._beta*e[r]+(1-this._beta)*(s+h*l));this._x=this._y=null,this._basis.lineEnd()},point:function(t,e){this._x.push(+t),this._y.push(+e)}};const Bt=(function t(e){function n(i){return e===1?new Y(i):new mt(i,e)}return n.beta=function(i){return t(+i)},n})(.85);function $(t,e,n){t._context.bezierCurveTo(t._x1+t._k*(t._x2-t._x0),t._y1+t._k*(t._y2-t._y0),t._x2+t._k*(t._x1-e),t._y2+t._k*(t._y1-n),t._x2,t._y2)}function st(t,e){this._context=t,this._k=(1-e)/6}st.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._point=0},lineEnd:function(){switch(this._point){case 2:this._context.lineTo(this._x2,this._y2);break;case 3:$(this,this._x1,this._y1);break}(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line},point:function(t,e){switch(t=+t,e=+e,this._point){case 0:this._point=1,this._line?this._context.lineTo(t,e):this._context.moveTo(t,e);break;case 1:this._point=2,this._x1=t,this._y1=e;break;case 2:this._point=3;default:$(this,t,e);break}this._x0=this._x1,this._x1=this._x2,this._x2=t,this._y0=this._y1,this._y1=this._y2,this._y2=e}};const Ft=(function t(e){function n(i){return new st(i,e)}return n.tension=function(i){return t(+i)},n})(0);function ot(t,e){this._context=t,this._k=(1-e)/6}ot.prototype={areaStart:C,areaEnd:C,lineStart:function(){this._x0=this._x1=this._x2=this._x3=this._x4=this._x5=this._y0=this._y1=this._y2=this._y3=this._y4=this._y5=NaN,this._point=0},lineEnd:function(){switch(this._point){case 1:{this._context.moveTo(this._x3,this._y3),this._context.closePath();break}case 2:{this._context.lineTo(this._x3,this._y3),this._context.closePath();break}case 3:{this.point(this._x3,this._y3),this.point(this._x4,this._y4),this.point(this._x5,this._y5);break}}},point:function(t,e){switch(t=+t,e=+e,this._point){case 0:this._point=1,this._x3=t,this._y3=e;break;case 1:this._point=2,this._context.moveTo(this._x4=t,this._y4=e);break;case 2:this._point=3,this._x5=t,this._y5=e;break;default:$(this,t,e);break}this._x0=this._x1,this._x1=this._x2,this._x2=t,this._y0=this._y1,this._y1=this._y2,this._y2=e}};const Rt=(function t(e){function n(i){return new ot(i,e)}return n.tension=function(i){return t(+i)},n})(0);function rt(t,e){this._context=t,this._k=(1-e)/6}rt.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._point=0},lineEnd:function(){(this._line||this._line!==0&&this._point===3)&&this._context.closePath(),this._line=1-this._line},point:function(t,e){switch(t=+t,e=+e,this._point){case 0:this._point=1;break;case 1:this._point=2;break;case 2:this._point=3,this._line?this._context.lineTo(this._x2,this._y2):this._context.moveTo(this._x2,this._y2);break;case 3:this._point=4;default:$(this,t,e);break}this._x0=this._x1,this._x1=this._x2,this._x2=t,this._y0=this._y1,this._y1=this._y2,this._y2=e}};const Lt=(function t(e){function n(i){return new rt(i,e)}return n.tension=function(i){return t(+i)},n})(0);function at(t,e,n){var i=t._x1,s=t._y1,o=t._x2,l=t._y2;if(t._l01_a>m.epsilon){var r=2*t._l01_2a+3*t._l01_a*t._l12_a+t._l12_2a,h=3*t._l01_a*(t._l01_a+t._l12_a);i=(i*r-t._x0*t._l12_2a+t._x2*t._l01_2a)/h,s=(s*r-t._y0*t._l12_2a+t._y2*t._l01_2a)/h}if(t._l23_a>m.epsilon){var c=2*t._l23_2a+3*t._l23_a*t._l12_a+t._l12_2a,d=3*t._l23_a*(t._l23_a+t._l12_a);o=(o*c+t._x1*t._l23_2a-e*t._l12_2a)/d,l=(l*c+t._y1*t._l23_2a-n*t._l12_2a)/d}t._context.bezierCurveTo(i,s,o,l,t._x2,t._y2)}function kt(t,e){this._context=t,this._alpha=e}kt.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._l01_a=this._l12_a=this._l23_a=this._l01_2a=this._l12_2a=this._l23_2a=this._point=0},lineEnd:function(){switch(this._point){case 2:this._context.lineTo(this._x2,this._y2);break;case 3:this.point(this._x2,this._y2);break}(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line},point:function(t,e){if(t=+t,e=+e,this._point){var n=this._x2-t,i=this._y2-e;this._l23_a=Math.sqrt(this._l23_2a=Math.pow(n*n+i*i,this._alpha))}switch(this._point){case 0:this._point=1,this._line?this._context.lineTo(t,e):this._context.moveTo(t,e);break;case 1:this._point=2;break;case 2:this._point=3;default:at(this,t,e);break}this._l01_a=this._l12_a,this._l12_a=this._l23_a,this._l01_2a=this._l12_2a,this._l12_2a=this._l23_2a,this._x0=this._x1,this._x1=this._x2,this._x2=t,this._y0=this._y1,this._y1=this._y2,this._y2=e}};const Ht=(function t(e){function n(i){return e?new kt(i,e):new st(i,0)}return n.alpha=function(i){return t(+i)},n})(.5);function St(t,e){this._context=t,this._alpha=e}St.prototype={areaStart:C,areaEnd:C,lineStart:function(){this._x0=this._x1=this._x2=this._x3=this._x4=this._x5=this._y0=this._y1=this._y2=this._y3=this._y4=this._y5=NaN,this._l01_a=this._l12_a=this._l23_a=this._l01_2a=this._l12_2a=this._l23_2a=this._point=0},lineEnd:function(){switch(this._point){case 1:{this._context.moveTo(this._x3,this._y3),this._context.closePath();break}case 2:{this._context.lineTo(this._x3,this._y3),this._context.closePath();break}case 3:{this.point(this._x3,this._y3),this.point(this._x4,this._y4),this.point(this._x5,this._y5);break}}},point:function(t,e){if(t=+t,e=+e,this._point){var n=this._x2-t,i=this._y2-e;this._l23_a=Math.sqrt(this._l23_2a=Math.pow(n*n+i*i,this._alpha))}switch(this._point){case 0:this._point=1,this._x3=t,this._y3=e;break;case 1:this._point=2,this._context.moveTo(this._x4=t,this._y4=e);break;case 2:this._point=3,this._x5=t,this._y5=e;break;default:at(this,t,e);break}this._l01_a=this._l12_a,this._l12_a=this._l23_a,this._l01_2a=this._l12_2a,this._l12_2a=this._l23_2a,this._x0=this._x1,this._x1=this._x2,this._x2=t,this._y0=this._y1,this._y1=this._y2,this._y2=e}};const $t=(function t(e){function n(i){return e?new St(i,e):new ot(i,0)}return n.alpha=function(i){return t(+i)},n})(.5);function wt(t,e){this._context=t,this._alpha=e}wt.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._l01_a=this._l12_a=this._l23_a=this._l01_2a=this._l12_2a=this._l23_2a=this._point=0},lineEnd:function(){(this._line||this._line!==0&&this._point===3)&&this._context.closePath(),this._line=1-this._line},point:function(t,e){if(t=+t,e=+e,this._point){var n=this._x2-t,i=this._y2-e;this._l23_a=Math.sqrt(this._l23_2a=Math.pow(n*n+i*i,this._alpha))}switch(this._point){case 0:this._point=1;break;case 1:this._point=2;break;case 2:this._point=3,this._line?this._context.lineTo(this._x2,this._y2):this._context.moveTo(this._x2,this._y2);break;case 3:this._point=4;default:at(this,t,e);break}this._l01_a=this._l12_a,this._l12_a=this._l23_a,this._l01_2a=this._l12_2a,this._l12_2a=this._l23_2a,this._x0=this._x1,this._x1=this._x2,this._x2=t,this._y0=this._y1,this._y1=this._y2,this._y2=e}};const Gt=(function t(e){function n(i){return e?new wt(i,e):new rt(i,0)}return n.alpha=function(i){return t(+i)},n})(.5);function Tt(t){this._context=t}Tt.prototype={areaStart:C,areaEnd:C,lineStart:function(){this._point=0},lineEnd:function(){this._point&&this._context.closePath()},point:function(t,e){t=+t,e=+e,this._point?this._context.lineTo(t,e):(this._point=1,this._context.moveTo(t,e))}};function It(t){return new Tt(t)}function lt(t){return t<0?-1:1}function ht(t,e,n){var i=t._x1-t._x0,s=e-t._x1,o=(t._y1-t._y0)/(i||s<0&&-0),l=(n-t._y1)/(s||i<0&&-0),r=(o*s+l*i)/(i+s);return(lt(o)+lt(l))*Math.min(Math.abs(o),Math.abs(l),.5*Math.abs(r))||0}function ct(t,e){var n=t._x1-t._x0;return n?(3*(t._y1-t._y0)/n-e)/2:e}function Z(t,e,n){var i=t._x0,s=t._y0,o=t._x1,l=t._y1,r=(o-i)/3;t._context.bezierCurveTo(i+r,s+r*e,o-r,l-r*n,o,l)}function G(t){this._context=t}G.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=this._t0=NaN,this._point=0},lineEnd:function(){switch(this._point){case 2:this._context.lineTo(this._x1,this._y1);break;case 3:Z(this,this._t0,ct(this,this._t0));break}(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line},point:function(t,e){var n=NaN;if(t=+t,e=+e,!(t===this._x1&&e===this._y1)){switch(this._point){case 0:this._point=1,this._line?this._context.lineTo(t,e):this._context.moveTo(t,e);break;case 1:this._point=2;break;case 2:this._point=3,Z(this,ct(this,n=ht(this,t,e)),n);break;default:Z(this,this._t0,n=ht(this,t,e));break}this._x0=this._x1,this._x1=t,this._y0=this._y1,this._y1=e,this._t0=n}}};function Nt(t){this._context=new Ct(t)}(Nt.prototype=Object.create(G.prototype)).point=function(t,e){G.prototype.point.call(this,e,t)};function Ct(t){this._context=t}Ct.prototype={moveTo:function(t,e){this._context.moveTo(e,t)},closePath:function(){this._context.closePath()},lineTo:function(t,e){this._context.lineTo(e,t)},bezierCurveTo:function(t,e,n,i,s,o){this._context.bezierCurveTo(e,t,i,n,o,s)}};function Xt(t){return new G(t)}function Yt(t){return new Nt(t)}function At(t){this._context=t}At.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x=[],this._y=[]},lineEnd:function(){var t=this._x,e=this._y,n=t.length;if(n)if(this._line?this._context.lineTo(t[0],e[0]):this._context.moveTo(t[0],e[0]),n===2)this._context.lineTo(t[1],e[1]);else for(var i=_t(t),s=_t(e),o=0,l=1;l<n;++o,++l)this._context.bezierCurveTo(i[0][o],s[0][o],i[1][o],s[1][o],t[l],e[l]);(this._line||this._line!==0&&n===1)&&this._context.closePath(),this._line=1-this._line,this._x=this._y=null},point:function(t,e){this._x.push(+t),this._y.push(+e)}};function _t(t){var e,n=t.length-1,i,s=new Array(n),o=new Array(n),l=new Array(n);for(s[0]=0,o[0]=2,l[0]=t[0]+2*t[1],e=1;e<n-1;++e)s[e]=1,o[e]=4,l[e]=4*t[e]+2*t[e+1];for(s[n-1]=2,o[n-1]=7,l[n-1]=8*t[n-1]+t[n],e=1;e<n;++e)i=s[e]/o[e-1],o[e]-=i,l[e]-=i*l[e-1];for(s[n-1]=l[n-1]/o[n-1],e=n-2;e>=0;--e)s[e]=(l[e]-s[e+1])/o[e];for(o[n-1]=(t[n]+s[n-1])/2,e=0;e<n-1;++e)o[e]=2*t[e+1]-s[e+1];return[s,o]}function Vt(t){return new At(t)}function V(t,e){this._context=t,this._t=e}V.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x=this._y=NaN,this._point=0},lineEnd:function(){0<this._t&&this._t<1&&this._point===2&&this._context.lineTo(this._x,this._y),(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line>=0&&(this._t=1-this._t,this._line=1-this._line)},point:function(t,e){switch(t=+t,e=+e,this._point){case 0:this._point=1,this._line?this._context.lineTo(t,e):this._context.moveTo(t,e);break;case 1:this._point=2;default:{if(this._t<=0)this._context.lineTo(this._x,e),this._context.lineTo(t,e);else{var n=this._x*(1-this._t)+t*this._t;this._context.lineTo(n,this._y),this._context.lineTo(n,e)}break}}this._x=t,this._y=e}};function zt(t){return new V(t,.5)}function Wt(t){return new V(t,0)}function Zt(t){return new V(t,1)}function ut(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);e&&(i=i.filter(function(s){return Object.getOwnPropertyDescriptor(t,s).enumerable})),n.push.apply(n,i)}return n}function qt(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{};e%2?ut(Object(n),!0).forEach(function(i){Ut(t,i,n[i])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):ut(Object(n)).forEach(function(i){Object.defineProperty(t,i,Object.getOwnPropertyDescriptor(n,i))})}return t}function E(t){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?E=function(e){return typeof e}:E=function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},E(t)}function Ut(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function I(){return I=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(t[i]=n[i])}return t},I.apply(this,arguments)}function Qt(t,e){if(t){if(typeof t=="string")return ft(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);if(n==="Object"&&t.constructor&&(n=t.constructor.name),n==="Map"||n==="Set")return Array.from(t);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return ft(t,e)}}function ft(t,e){(e==null||e>t.length)&&(e=t.length);for(var n=0,i=new Array(e);n<e;n++)i[n]=t[n];return i}function Pt(t,e){var n=typeof Symbol<"u"&&t[Symbol.iterator]||t["@@iterator"];if(!n){if(Array.isArray(t)||(n=Qt(t))||e){n&&(t=n);var i=0,s=function(){};return{s,n:function(){return i>=t.length?{done:!0}:{done:!1,value:t[i++]}},e:function(h){throw h},f:s}}throw new TypeError(`Invalid attempt to iterate non-iterable instance.
|
|
2
|
-
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var o=!0,l=!1,r;return{s:function(){n=n.call(t)},n:function(){var h=n.next();return o=h.done,h},e:function(h){l=!0,r=h},f:function(){try{!o&&n.return!=null&&n.return()}finally{if(l)throw r}}}}function Jt(t,e){var n=[],i=[];function s(o,l){if(o.length===1)n.push(o[0]),i.push(o[0]);else{for(var r=Array(o.length-1),h=0;h<r.length;h++)h===0&&n.push(o[0]),h===r.length-1&&i.push(o[h+1]),r[h]=[(1-l)*o[h][0]+l*o[h+1][0],(1-l)*o[h][1]+l*o[h+1][1]];s(r,l)}}return t.length&&s(t,e),{left:n,right:i.reverse()}}function Kt(t){var e={};return t.length===4&&(e.x2=t[2][0],e.y2=t[2][1]),t.length>=3&&(e.x1=t[1][0],e.y1=t[1][1]),e.x=t[t.length-1][0],e.y=t[t.length-1][1],t.length===4?e.type="C":t.length===3?e.type="Q":e.type="L",e}function te(t,e){e=e||2;for(var n=[],i=t,s=1/e,o=0;o<e-1;o++){var l=s/(1-s*o),r=Jt(i,l);n.push(r.left),i=r.right}return n.push(i),n}function ee(t,e,n){var i=[[t.x,t.y]];return e.x1!=null&&i.push([e.x1,e.y1]),e.x2!=null&&i.push([e.x2,e.y2]),i.push([e.x,e.y]),te(i,n).map(Kt)}var ne=/[MLCSTQAHVZmlcstqahv]|-?[\d.e+-]+/g,D={M:["x","y"],L:["x","y"],H:["x"],V:["y"],C:["x1","y1","x2","y2","x","y"],S:["x2","y2","x","y"],Q:["x1","y1","x","y"],T:["x","y"],A:["rx","ry","xAxisRotation","largeArcFlag","sweepFlag","x","y"],Z:[]};Object.keys(D).forEach(function(t){D[t.toLowerCase()]=D[t]});function q(t,e){for(var n=Array(t),i=0;i<t;i++)n[i]=e;return n}function ie(t){return"".concat(t.type).concat(D[t.type].map(function(e){return t[e]}).join(","))}function se(t,e){var n={x1:"x",y1:"y",x2:"x",y2:"y"},i=["xAxisRotation","largeArcFlag","sweepFlag"];if(t.type!==e.type&&e.type.toUpperCase()!=="M"){var s={};Object.keys(e).forEach(function(o){var l=e[o],r=t[o];r===void 0&&(i.includes(o)?r=l:(r===void 0&&n[o]&&(r=t[n[o]]),r===void 0&&(r=0))),s[o]=r}),s.type=e.type,t=s}return t}function oe(t,e,n){var i=[];if(e.type==="L"||e.type==="Q"||e.type==="C")i=i.concat(ee(t,e,n));else{var s=I({},t);s.type==="M"&&(s.type="L"),i=i.concat(q(n-1).map(function(){return s})),i.push(e)}return i}function pt(t,e,n){var i=t.length-1,s=e.length-1,o=i/s,l=q(s).reduce(function(h,c,d){var a=Math.floor(o*d);if(n&&a<t.length-1&&n(t[a],t[a+1])){var _=o*d%1<.5;h[a]&&(_?a>0?a-=1:a<t.length-1&&(a+=1):a<t.length-1?a+=1:a>0&&(a-=1))}return h[a]=(h[a]||0)+1,h},[]),r=l.reduce(function(h,c,d){if(d===t.length-1){var a=q(c,I({},t[t.length-1]));return a[0].type==="M"&&a.forEach(function(_){_.type="L"}),h.concat(a)}return h.concat(oe(t[d],t[d+1],c))},[]);return r.unshift(t[0]),r}function yt(t){for(var e=(t||"").match(ne)||[],n=[],i,s,o=0;o<e.length;++o)if(i=D[e[o]],i){s={type:e[o]};for(var l=0;l<i.length;++l)s[i[l]]=+e[o+l+1];o+=i.length,n.push(s)}return n}function re(t,e,n){var i=t==null?[]:t.slice(),s=e==null?[]:e.slice(),o=E(n)==="object"?n:{excludeSegment:n,snapEndsToInput:!0},l=o.excludeSegment,r=o.snapEndsToInput;if(!i.length&&!s.length)return function(){return[]};var h=(i.length===0||i[i.length-1].type==="Z")&&(s.length===0||s[s.length-1].type==="Z");i.length>0&&i[i.length-1].type==="Z"&&i.pop(),s.length>0&&s[s.length-1].type==="Z"&&s.pop(),i.length?s.length||s.push(i[0]):i.push(s[0]);var c=Math.abs(s.length-i.length);c!==0&&(s.length>i.length?i=pt(i,s,l):s.length<i.length&&(s=pt(s,i,l))),i=i.map(function(a,_){return se(a,s[_])});var d=i.map(function(a){return qt({},a)});return h&&(d.push({type:"Z"}),i.push({type:"Z"})),function(_){if(_===1&&r)return e??[];if(_===0)return i;for(var b=0;b<d.length;++b){var v=i[b],x=s[b],f=d[b],p=Pt(D[f.type]),g;try{for(p.s();!(g=p.n()).done;){var y=g.value;f[y]=(1-_)*v[y]+_*x[y],(y==="largeArcFlag"||y==="sweepFlag")&&(f[y]=Math.round(f[y]))}}catch(k){p.e(k)}finally{p.f()}}return d}}function U(t,e,n){var i=yt(t),s=yt(e),o=E(n)==="object"?n:{excludeSegment:n,snapEndsToInput:!0},l=o.excludeSegment,r=o.snapEndsToInput;if(!i.length&&!s.length)return function(){return""};var h=re(i,s,{excludeSegment:l,snapEndsToInput:r});return function(d){if(d===1&&r)return e??"";var a=h(d),_="",b=Pt(a),v;try{for(b.s();!(v=b.n()).done;){var x=v.value;_+=ie(x)}}catch(f){b.e(f)}finally{b.f()}return _}}var S;(function(t){t.Basis="basis",t.BasisClosed="basisClosed",t.BasisOpen="basisOpen",t.Bundle="bundle",t.Cardinal="cardinal",t.CardinalClosed="cardinalClosed",t.CardinalOpen="cardinalOpen",t.CatmullRom="catmullRom",t.CatmullRomClosed="catmullRomClosed",t.CatmullRomOpen="catmullRomOpen",t.Linear="linear",t.LinearClosed="linearClosed",t.MonotoneX="monotoneX",t.MonotoneY="monotoneY",t.Natural="natural",t.Step="step",t.StepAfter="stepAfter",t.StepBefore="stepBefore"})(S||(S={}));const X={[S.Basis]:Dt,[S.BasisClosed]:jt,[S.BasisOpen]:Et,[S.Bundle]:Bt,[S.Cardinal]:Ft,[S.CardinalClosed]:Rt,[S.CardinalOpen]:Lt,[S.CatmullRom]:Ht,[S.CatmullRomClosed]:$t,[S.CatmullRomOpen]:Gt,[S.Linear]:nt,[S.LinearClosed]:It,[S.MonotoneX]:Xt,[S.MonotoneY]:Yt,[S.Natural]:Vt,[S.Step]:zt,[S.StepAfter]:Zt,[S.StepBefore]:Wt},ae=Object.assign(Object.assign({},T.XYComponentDefaultConfig),{curveType:S.MonotoneX,lineWidth:2,lineDashArray:void 0,fallbackValue:void 0,highlightOnHover:!1,cursor:null,interpolateMissingData:!1}),le=u.injectGlobal`
|
|
3
|
-
:root {
|
|
4
|
-
--vis-line-cursor: default;
|
|
5
|
-
--vis-line-stroke-dasharray: none;
|
|
6
|
-
--vis-line-stroke-dashoffset: 0;
|
|
7
|
-
|
|
8
|
-
--vis-line-gapfill-stroke-dasharray: 2 3;
|
|
9
|
-
--vis-line-gapfill-stroke-opacity: 0.8;
|
|
10
|
-
--vis-line-gapfill-stroke-dashoffset: 0;
|
|
11
|
-
}
|
|
12
|
-
`,he=u.css`
|
|
13
|
-
label: line-component;
|
|
14
|
-
`,j=u.css`
|
|
15
|
-
label: line;
|
|
16
|
-
transition: opacity 200ms;
|
|
17
|
-
cursor: var(--vis-line-cursor);
|
|
18
|
-
`,Q=u.css`
|
|
19
|
-
label: linePath;
|
|
20
|
-
fill: none;
|
|
21
|
-
stroke-dasharray: var(--vis-line-stroke-dasharray);
|
|
22
|
-
stroke-dashoffset: var(--vis-line-stroke-dashoffset);
|
|
23
|
-
`,J=u.css`
|
|
24
|
-
label: lineSelectionHelper;
|
|
25
|
-
fill: none;
|
|
26
|
-
stroke: rgba(0, 0, 0, 0);
|
|
27
|
-
stroke-width: 8px;
|
|
28
|
-
`,K=u.css`
|
|
29
|
-
opacity: 0.2;
|
|
30
|
-
`,tt=u.css`
|
|
31
|
-
label: interpolated-path;
|
|
32
|
-
fill: none;
|
|
33
|
-
stroke-dasharray: var(--vis-line-gapfill-stroke-dasharray);
|
|
34
|
-
stroke-dashoffset: var(--vis-line-gapfill-stroke-dashoffset);
|
|
35
|
-
stroke-opacity: var(--vis-line-gapfill-stroke-opacity);
|
|
36
|
-
`,ce=Object.freeze(Object.defineProperty({__proto__:null,dim:K,globalStyles:le,interpolatedPath:tt,line:j,linePath:Q,lineSelectionHelper:J,root:he},Symbol.toStringTag,{value:"Module"}));class z extends T.XYComponentCore{constructor(e){super(),this._defaultConfig=ae,this.config=this._defaultConfig,this.curve=X[S.MonotoneX],this.events={[z.selectors.line]:{mouseover:this._highlight.bind(this),mouseleave:this._resetHighlight.bind(this)}},e&&this.setConfig(e)}get bleed(){const{config:{lineWidth:e}}=this,n=this.yScale.domain(),s=(this.yScale.range()[0]>this.yScale.range()[1]?T.Direction.North:T.Direction.South)===T.Direction.South,o=e>3,l=e>=10;return{top:!l&&(!s&&n[1]===0||s&&n[0]===0)?0:e/2,bottom:!l&&(!s&&n[0]===0||s&&n[1]===0)?0:e/2,left:o?e/2:0,right:o?e/2:0}}_render(e){super._render(e);const{config:n,datamodel:{data:i}}=this,s=u.isNumber(e)?e:n.duration;this.curve=X[n.curveType],this.lineGen=it().x(a=>a.x).y(a=>a.y).defined(a=>a.defined).curve(this.curve);const o=u.isArray(n.y)?n.y:[n.y],l=i.map((a,_)=>this.xScale(u.getNumber(a,n.x,_))),r=o.map(a=>{const _=i.map((p,g)=>{const y=u.getNumber(p,a,g),k=(u.isNumber(y)||y===null)&&isFinite(y)?y:n.fallbackValue,N=n.interpolateMissingData?(u.isNumber(y)||y===null)&&isFinite(y):isFinite(k);return{x:l[g],y:this.yScale(k??0),defined:N,value:k}}),b=_.reduce((p,g)=>g.defined||p,!1);let v=!1;const x=_.reduce((p,g,y)=>{!g.defined&&isFinite(n.fallbackValue)&&p.push(Object.assign(Object.assign({},g),{defined:!0})),!g.defined&&!v&&(v=!0);const k=y>0&&!_[y-1].defined||y<_.length-1&&!_[y+1].defined;return g.defined&&k&&(v||p.push(Object.assign(Object.assign({},g),{defined:!1})),p.push(g),v=!1),p},[]),f=b&&_.some(p=>p.value!==null);return{values:_,defined:b,gaps:x,visible:f}}),h=this.g.selectAll(`.${j}`).data(r),c=h.enter().append("g").attr("class",j);c.append("path").attr("class",Q).attr("stroke",(a,_)=>u.getColor(i,n.color,_)).attr("stroke-opacity",0).attr("stroke-width",n.lineWidth),c.append("path").attr("class",J).attr("d",this._emptyPath()),c.append("path").attr("class",tt).attr("d",this._emptyPath()).style("opacity",0);const d=c.merge(h);d.style("cursor",(a,_)=>u.getString(i,n.cursor,_)),d.each((a,_,b)=>{var v;const x=u.select(b[_]),f=x.select(`.${Q}`),p=x.select(`.${J}`),g=x.select(`.${tt}`),y=a.visible,k=u.getValue(i,n.lineDashArray,_),N=u.smartTransition(f,s).attr("stroke",u.getColor(i,n.color,_)).attr("stroke-width",n.lineWidth).attr("stroke-opacity",y?1:0).style("stroke-dasharray",(v=k?.join(" "))!==null&&v!==void 0?v:null),M=a.values.some(P=>!P.defined),A=this.lineGen(a.values);if(s&&!M){const P=f.attr("d")||this._emptyPath(),O=A||this._emptyPath();N.attrTween("d",()=>U(P,O))}else a.visible&&N.attr("d",A);p.attr("d",A).attr("visibility",y?null:"hidden"),M&&n.interpolateMissingData?u.smartTransition(g,s).attr("d",this.lineGen(a.gaps)).attr("stroke",u.getColor(i,n.color,_)).attr("stroke-width",n.lineWidth-1).style("opacity",1):g.transition().duration(s).style("opacity",0)}),u.smartTransition(h.exit(),s).style("opacity",0).remove()}_emptyPath(){const e=this.xScale.range(),n=this.yScale.range();return`M${e[0]},${n[0]} L${e[1]},${n[0]}`}_highlight(e){const{config:n}=this;n.highlightOnHover&&this.g.selectAll(`.${j}`).classed(K,i=>i!==e)}_resetHighlight(){const{config:e}=this;e.highlightOnHover&&this.g.selectAll(`.${j}`).classed(K,!1)}}z.selectors=ce;const _e=Object.assign(Object.assign({},T.XYComponentDefaultConfig),{color:void 0,curveType:S.MonotoneX,baseline:()=>0,opacity:1,cursor:null,line:!1,lineColor:void 0,lineWidth:2,lineDashArray:void 0,minHeight1Px:!1,minHeight:void 0,stackMinHeight:!1}),Ot=u.css`
|
|
37
|
-
label: area-component;
|
|
38
|
-
`,ue=u.injectGlobal`
|
|
39
|
-
:root {
|
|
40
|
-
--vis-area-cursor: default;
|
|
41
|
-
--vis-area-fill-opacity: 1;
|
|
42
|
-
--vis-area-stroke-color: none;
|
|
43
|
-
--vis-area-stroke-width: 0px;
|
|
44
|
-
--vis-area-stroke-dasharray: none;
|
|
45
|
-
--vis-area-stroke-opacity: 1;
|
|
46
|
-
--vis-area-hover-fill-opacity: none;
|
|
47
|
-
--vis-area-hover-stroke-width: none;
|
|
48
|
-
|
|
49
|
-
/* Dark Theme */
|
|
50
|
-
--vis-dark-area-stroke-color: none;
|
|
51
|
-
}
|
|
52
|
-
|
|
53
|
-
body.theme-dark ${`.${Ot}`} {
|
|
54
|
-
--vis-area-stroke-color: var(--vis-dark-area-stroke-color);
|
|
55
|
-
}
|
|
56
|
-
|
|
57
|
-
`,L=u.css`
|
|
58
|
-
label: area;
|
|
59
|
-
cursor: var(--vis-area-cursor);
|
|
60
|
-
fill-opacity: var(--vis-area-fill-opacity);
|
|
61
|
-
stroke-width: var(--vis-area-stroke-width);
|
|
62
|
-
stroke-dasharray: var(--vis-area-stroke-dasharray);
|
|
63
|
-
stroke: var(--vis-area-stroke-color);
|
|
64
|
-
stroke-opacity: var(--vis-area-stroke-opacity);
|
|
65
|
-
|
|
66
|
-
&:hover {
|
|
67
|
-
fill-opacity: var(--vis-area-hover-fill-opacity);
|
|
68
|
-
stroke-width: var(--vis-area-hover-stroke-width);
|
|
69
|
-
}
|
|
70
|
-
`,et=u.css`
|
|
71
|
-
label: areaLinePath;
|
|
72
|
-
fill: none;
|
|
73
|
-
stroke-dasharray: var(--vis-line-stroke-dasharray);
|
|
74
|
-
stroke-dashoffset: var(--vis-line-stroke-dashoffset);
|
|
75
|
-
`,fe=Object.freeze(Object.defineProperty({__proto__:null,area:L,areaLinePath:et,globalStyles:ue,root:Ot},Symbol.toStringTag,{value:"Module"}));class W extends T.XYComponentCore{constructor(e){super(),this._defaultConfig=_e,this.config=this._defaultConfig,this.stacked=!0,this.events={[W.selectors.area]:{}},e&&this.setConfig(e),this.stacked=Array.isArray(this.config.y)}get bleed(){const{config:{line:e,lineWidth:n}}=this;if(!e)return{top:0,bottom:0,left:0,right:0};const i=this.yScale.domain(),o=(this.yScale.range()[0]>this.yScale.range()[1]?T.Direction.North:T.Direction.South)===T.Direction.South,l=n>3,r=n>=10;return{top:!r&&(!o&&i[1]===0||o&&i[0]===0)?0:n/2,bottom:!r&&(!o&&i[0]===0||o&&i[1]===0)?0:n/2,left:l?n/2:0,right:l?n/2:0}}_render(e){super._render(e);const{config:n,datamodel:{data:i}}=this,s=u.isNumber(e)?e:n.duration,o=X[n.curveType];this._areaGen=Mt().x(f=>f.x).y0(f=>f.y0).y1(f=>f.y1).curve(o);const l=u.isArray(n.y)?n.y:[n.y],r=i.map((f,p)=>this.xScale(u.getNumber(f,n.x,p))),h=u.getStackedData(i,n.baseline,l,this._prevNegative);this._prevNegative=h.map(f=>!!f.isMostlyNegative);const c=[],d=h.map(f=>f.map((p,g)=>{var y,k;const N=r[g],M=this.yScale(p[0]),A=this.yScale(p[1]),P=A>M,O=n.stackMinHeight&&c[g]||0,B=P?M+O:M-O,F=P?A+O:A-O;let R=0;return(n.minHeight||n.minHeight1Px)&&Math.abs(F-B)<((y=n.minHeight)!==null&&y!==void 0?y:1)&&(R=((k=n.minHeight)!==null&&k!==void 0?k:1)-Math.abs(F-B),n.stackMinHeight&&(c[g]=O+R)),{x:N,y0:B,y1:P?F+R:F-R}})),a=d.length-1,_=[...d].reverse(),b=this.g.selectAll(`.${L}`).data(_),v=b.enter().append("path").attr("class",L).attr("d",f=>this._areaGen(f)||this._emptyPath()).style("opacity",0).style("fill",(f,p)=>u.getColor(i,n.color,a-p)),x=u.smartTransition(v.merge(b),s).style("opacity",(f,p)=>f.some(y=>y.y0-y.y1!==0)?u.getNumber(i,n.opacity,a-p):0).style("fill",(f,p)=>u.getColor(i,n.color,a-p)).style("cursor",(f,p)=>u.getString(i,n.cursor,a-p));s?x.attrTween("d",(p,g,y)=>{const k=u.select(y[g]).attr("d"),N=this._areaGen(p)||this._emptyPath();return U(k,N)}):x.attr("d",f=>this._areaGen(f)||this._emptyPath()),u.smartTransition(b.exit(),s).style("opacity",0).remove(),n.line&&this._renderLines(s,d)}_renderLines(e,n){var i;const{config:s,datamodel:{data:o}}=this,l=n.length-1,r=[...n].reverse(),h=(i=s.lineColor)!==null&&i!==void 0?i:s.color,c=this.g.selectAll(`.${et}`).data(r),d=this.g.selectAll(`.${L}`).nodes(),a=c.enter().insert("path",(v,x)=>d[x+1]).attr("class",et).attr("stroke",(v,x)=>u.getColor(o,h,l-x)).attr("stroke-width",s.lineWidth).attr("stroke-opacity",0),_=u.smartTransition(a.merge(c),e).attr("stroke",(v,x)=>u.getColor(o,h,l-x)).attr("stroke-width",s.lineWidth).attr("stroke-opacity",1).attr("cursor",(v,x)=>u.getString(o,s.cursor,l-x)).style("stroke-dasharray",(v,x)=>{var f,p;return(p=(f=u.getValue(o,s.lineDashArray,x))===null||f===void 0?void 0:f.join(" "))!==null&&p!==void 0?p:null}),b=X[s.curveType];this._lineGen=it().x(v=>v.x).y(v=>v.y1).curve(b),e?_.attrTween("d",(x,f,p)=>{const g=u.select(p[f]).attr("d")||this._emptyLinePath(),y=this._lineGen(x)||this._emptyLinePath();return U(g,y)}):_.attr("d",v=>this._lineGen(v)||this._emptyLinePath()),u.smartTransition(c.exit(),e).style("opacity",0).remove()}getYDataExtent(e){const{config:n,datamodel:i}=this,s=u.isArray(n.y)?n.y:[n.y],o=this.xScale.domain(),l=e?u.filterDataByRange(i.data,o,n.x,!0):i.data;return u.getStackedExtent(l,n.baseline,...s)}_emptyPath(){const e=this.xScale.range(),n=this.yScale.domain(),i=this.yScale((n[0]+n[1])/2),s=i;return this._areaGen([{y0:i,y1:s,x:e[0]},{y0:i,y1:s,x:e[1]}])}_emptyLinePath(){const e=this.xScale.range(),n=this.yScale.range();return`M${e[0]},${n[0]} L${e[1]},${n[0]}`}}W.selectors=fe;const pe={"data-vis-component":""},ye=w.defineComponent({__name:"index",props:{color:{type:[Function,String,Array,null]},curveType:{},baseline:{type:[Function,Number,null]},opacity:{type:[Function,Number,null]},cursor:{type:[Function,String,null]},line:{type:Boolean},lineColor:{type:[Function,String,Array,null]},lineWidth:{},lineDashArray:{type:[Function,Array,null]},minHeight1Px:{type:Boolean},minHeight:{},stackMinHeight:{type:Boolean},x:{type:[Function,Number,null]},y:{type:[Function,Number,null,Array]},id:{type:Function},xScale:{type:[Object,Function]},yScale:{type:[Object,Function]},excludeFromDomainCalculation:{type:Boolean},duration:{},events:{},attributes:{},data:{}},setup(t,{expose:e}){const n=w.inject(u.o),i=t,s=w.computed(()=>n.data.value??i.data),o=u.m(i),l=w.ref();return w.onMounted(()=>{w.nextTick(()=>{var r;l.value=new W(o.value),(r=l.value)==null||r.setData(s.value),n.update(l.value)})}),w.onUnmounted(()=>{var r;(r=l.value)==null||r.destroy(),n.destroy()}),w.watch(o,(r,h)=>{var c;u.f(r,h)||(c=l.value)==null||c.setConfig(o.value)}),w.watch(s,()=>{var r;(r=l.value)==null||r.setData(s.value)}),e({component:l}),(r,h)=>(w.openBlock(),w.createElementBlock("div",pe))}}),de={"data-vis-component":""},ve=w.defineComponent({__name:"index",props:{color:{type:[Function,String,Array,null]},curveType:{},lineWidth:{},lineDashArray:{type:[Function,Array,null]},fallbackValue:{},highlightOnHover:{type:Boolean},cursor:{type:[Function,String,null]},interpolateMissingData:{type:Boolean},x:{type:[Function,Number,null]},y:{type:[Function,Number,null,Array]},id:{type:Function},xScale:{type:[Object,Function]},yScale:{type:[Object,Function]},excludeFromDomainCalculation:{type:Boolean},duration:{},events:{},attributes:{},data:{}},setup(t,{expose:e}){const n=w.inject(u.o),i=t,s=w.computed(()=>n.data.value??i.data),o=u.m(i),l=w.ref();return w.onMounted(()=>{w.nextTick(()=>{var r;l.value=new z(o.value),(r=l.value)==null||r.setData(s.value),n.update(l.value)})}),w.onUnmounted(()=>{var r;(r=l.value)==null||r.destroy(),n.destroy()}),w.watch(o,(r,h)=>{var c;u.f(r,h)||(c=l.value)==null||c.setConfig(o.value)}),w.watch(s,()=>{var r;(r=l.value)==null||r.setData(s.value)}),e({component:l}),(r,h)=>(w.openBlock(),w.createElementBlock("div",de))}});exports.C=ve;exports.j=ye;
|
package/dist/index-B5aBwdxY.js
DELETED
|
@@ -1,54 +0,0 @@
|
|
|
1
|
-
"use strict";const Rt=require("vue");var xe="http://www.w3.org/1999/xhtml";const rn={svg:"http://www.w3.org/2000/svg",xhtml:xe,xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/"};function oe(t){var e=t+="",n=e.indexOf(":");return n>=0&&(e=t.slice(0,n))!=="xmlns"&&(t=t.slice(n+1)),rn.hasOwnProperty(e)?{space:rn[e],local:t}:t}function qr(t){return function(){var e=this.ownerDocument,n=this.namespaceURI;return n===xe&&e.documentElement.namespaceURI===xe?e.createElement(t):e.createElementNS(n,t)}}function Ur(t){return function(){return this.ownerDocument.createElementNS(t.space,t.local)}}function Bn(t){var e=oe(t);return(e.local?Ur:qr)(e)}function Gr(){}function Ie(t){return t==null?Gr:function(){return this.querySelector(t)}}function Xr(t){typeof t!="function"&&(t=Ie(t));for(var e=this._groups,n=e.length,r=new Array(n),i=0;i<n;++i)for(var s=e[i],o=s.length,a=r[i]=new Array(o),c,u,f=0;f<o;++f)(c=s[f])&&(u=t.call(c,c.__data__,f,s))&&("__data__"in c&&(u.__data__=c.__data__),a[f]=u);return new M(r,this._parents)}function Yr(t){return t==null?[]:Array.isArray(t)?t:Array.from(t)}function Zr(){return[]}function Hn(t){return t==null?Zr:function(){return this.querySelectorAll(t)}}function Kr(t){return function(){return Yr(t.apply(this,arguments))}}function Jr(t){typeof t=="function"?t=Kr(t):t=Hn(t);for(var e=this._groups,n=e.length,r=[],i=[],s=0;s<n;++s)for(var o=e[s],a=o.length,c,u=0;u<a;++u)(c=o[u])&&(r.push(t.call(c,c.__data__,u,o)),i.push(c));return new M(r,i)}function Vn(t){return function(){return this.matches(t)}}function Pn(t){return function(e){return e.matches(t)}}var Qr=Array.prototype.find;function jr(t){return function(){return Qr.call(this.children,t)}}function ti(){return this.firstElementChild}function ei(t){return this.select(t==null?ti:jr(typeof t=="function"?t:Pn(t)))}var ni=Array.prototype.filter;function ri(){return Array.from(this.children)}function ii(t){return function(){return ni.call(this.children,t)}}function si(t){return this.selectAll(t==null?ri:ii(typeof t=="function"?t:Pn(t)))}function oi(t){typeof t!="function"&&(t=Vn(t));for(var e=this._groups,n=e.length,r=new Array(n),i=0;i<n;++i)for(var s=e[i],o=s.length,a=r[i]=[],c,u=0;u<o;++u)(c=s[u])&&t.call(c,c.__data__,u,s)&&a.push(c);return new M(r,this._parents)}function Wn(t){return new Array(t.length)}function ai(){return new M(this._enter||this._groups.map(Wn),this._parents)}function Xt(t,e){this.ownerDocument=t.ownerDocument,this.namespaceURI=t.namespaceURI,this._next=null,this._parent=t,this.__data__=e}Xt.prototype={constructor:Xt,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 ci(t){return function(){return t}}function ui(t,e,n,r,i,s){for(var o=0,a,c=e.length,u=s.length;o<u;++o)(a=e[o])?(a.__data__=s[o],r[o]=a):n[o]=new Xt(t,s[o]);for(;o<c;++o)(a=e[o])&&(i[o]=a)}function fi(t,e,n,r,i,s,o){var a,c,u=new Map,f=e.length,l=s.length,h=new Array(f),p;for(a=0;a<f;++a)(c=e[a])&&(h[a]=p=o.call(c,c.__data__,a,e)+"",u.has(p)?i[a]=c:u.set(p,c));for(a=0;a<l;++a)p=o.call(t,s[a],a,s)+"",(c=u.get(p))?(r[a]=c,c.__data__=s[a],u.delete(p)):n[a]=new Xt(t,s[a]);for(a=0;a<f;++a)(c=e[a])&&u.get(h[a])===c&&(i[a]=c)}function li(t){return t.__data__}function hi(t,e){if(!arguments.length)return Array.from(this,li);var n=e?fi:ui,r=this._parents,i=this._groups;typeof t!="function"&&(t=ci(t));for(var s=i.length,o=new Array(s),a=new Array(s),c=new Array(s),u=0;u<s;++u){var f=r[u],l=i[u],h=l.length,p=di(t.call(f,f&&f.__data__,u,r)),g=p.length,d=a[u]=new Array(g),y=o[u]=new Array(g),m=c[u]=new Array(h);n(f,l,d,y,m,p,e);for(var v=0,_=0,S,x;v<g;++v)if(S=d[v]){for(v>=_&&(_=v+1);!(x=y[_])&&++_<g;);S._next=x||null}}return o=new M(o,r),o._enter=a,o._exit=c,o}function di(t){return typeof t=="object"&&"length"in t?t:Array.from(t)}function gi(){return new M(this._exit||this._groups.map(Wn),this._parents)}function pi(t,e,n){var r=this.enter(),i=this,s=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?s.remove():n(s),r&&i?r.merge(i).order():i}function vi(t){for(var e=t.selection?t.selection():t,n=this._groups,r=e._groups,i=n.length,s=r.length,o=Math.min(i,s),a=new Array(i),c=0;c<o;++c)for(var u=n[c],f=r[c],l=u.length,h=a[c]=new Array(l),p,g=0;g<l;++g)(p=u[g]||f[g])&&(h[g]=p);for(;c<i;++c)a[c]=n[c];return new M(a,this._parents)}function mi(){for(var t=this._groups,e=-1,n=t.length;++e<n;)for(var r=t[e],i=r.length-1,s=r[i],o;--i>=0;)(o=r[i])&&(s&&o.compareDocumentPosition(s)^4&&s.parentNode.insertBefore(o,s),s=o);return this}function yi(t){t||(t=_i);function e(l,h){return l&&h?t(l.__data__,h.__data__):!l-!h}for(var n=this._groups,r=n.length,i=new Array(r),s=0;s<r;++s){for(var o=n[s],a=o.length,c=i[s]=new Array(a),u,f=0;f<a;++f)(u=o[f])&&(c[f]=u);c.sort(e)}return new M(i,this._parents).order()}function _i(t,e){return t<e?-1:t>e?1:t>=e?0:NaN}function xi(){var t=arguments[0];return arguments[0]=this,t.apply(null,arguments),this}function wi(){return Array.from(this)}function bi(){for(var t=this._groups,e=0,n=t.length;e<n;++e)for(var r=t[e],i=0,s=r.length;i<s;++i){var o=r[i];if(o)return o}return null}function Ai(){let t=0;for(const e of this)++t;return t}function Ti(){return!this.node()}function Si(t){for(var e=this._groups,n=0,r=e.length;n<r;++n)for(var i=e[n],s=0,o=i.length,a;s<o;++s)(a=i[s])&&t.call(a,a.__data__,s,i);return this}function Ei(t){return function(){this.removeAttribute(t)}}function Ci(t){return function(){this.removeAttributeNS(t.space,t.local)}}function $i(t,e){return function(){this.setAttribute(t,e)}}function Ri(t,e){return function(){this.setAttributeNS(t.space,t.local,e)}}function Ni(t,e){return function(){var n=e.apply(this,arguments);n==null?this.removeAttribute(t):this.setAttribute(t,n)}}function ki(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 Oi(t,e){var n=oe(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?Ci:Ei:typeof e=="function"?n.local?ki:Ni:n.local?Ri:$i)(n,e))}function qn(t){return t.ownerDocument&&t.ownerDocument.defaultView||t.document&&t||t.defaultView}function Mi(t){return function(){this.style.removeProperty(t)}}function zi(t,e,n){return function(){this.style.setProperty(t,e,n)}}function Fi(t,e,n){return function(){var r=e.apply(this,arguments);r==null?this.style.removeProperty(t):this.style.setProperty(t,r,n)}}function Di(t,e,n){return arguments.length>1?this.each((e==null?Mi:typeof e=="function"?Fi:zi)(t,e,n??"")):it(this.node(),t)}function it(t,e){return t.style.getPropertyValue(e)||qn(t).getComputedStyle(t,null).getPropertyValue(e)}function Ii(t){return function(){delete this[t]}}function Li(t,e){return function(){this[t]=e}}function Bi(t,e){return function(){var n=e.apply(this,arguments);n==null?delete this[t]:this[t]=n}}function Hi(t,e){return arguments.length>1?this.each((e==null?Ii:typeof e=="function"?Bi:Li)(t,e)):this.node()[t]}function Un(t){return t.trim().split(/^|\s+/)}function Le(t){return t.classList||new Gn(t)}function Gn(t){this._node=t,this._names=Un(t.getAttribute("class")||"")}Gn.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 Xn(t,e){for(var n=Le(t),r=-1,i=e.length;++r<i;)n.add(e[r])}function Yn(t,e){for(var n=Le(t),r=-1,i=e.length;++r<i;)n.remove(e[r])}function Vi(t){return function(){Xn(this,t)}}function Pi(t){return function(){Yn(this,t)}}function Wi(t,e){return function(){(e.apply(this,arguments)?Xn:Yn)(this,t)}}function qi(t,e){var n=Un(t+"");if(arguments.length<2){for(var r=Le(this.node()),i=-1,s=n.length;++i<s;)if(!r.contains(n[i]))return!1;return!0}return this.each((typeof e=="function"?Wi:e?Vi:Pi)(n,e))}function Ui(){this.textContent=""}function Gi(t){return function(){this.textContent=t}}function Xi(t){return function(){var e=t.apply(this,arguments);this.textContent=e??""}}function Yi(t){return arguments.length?this.each(t==null?Ui:(typeof t=="function"?Xi:Gi)(t)):this.node().textContent}function Zi(){this.innerHTML=""}function Ki(t){return function(){this.innerHTML=t}}function Ji(t){return function(){var e=t.apply(this,arguments);this.innerHTML=e??""}}function Qi(t){return arguments.length?this.each(t==null?Zi:(typeof t=="function"?Ji:Ki)(t)):this.node().innerHTML}function ji(){this.nextSibling&&this.parentNode.appendChild(this)}function ts(){return this.each(ji)}function es(){this.previousSibling&&this.parentNode.insertBefore(this,this.parentNode.firstChild)}function ns(){return this.each(es)}function rs(t){var e=typeof t=="function"?t:Bn(t);return this.select(function(){return this.appendChild(e.apply(this,arguments))})}function is(){return null}function ss(t,e){var n=typeof t=="function"?t:Bn(t),r=e==null?is:typeof e=="function"?e:Ie(e);return this.select(function(){return this.insertBefore(n.apply(this,arguments),r.apply(this,arguments)||null)})}function os(){var t=this.parentNode;t&&t.removeChild(this)}function as(){return this.each(os)}function cs(){var t=this.cloneNode(!1),e=this.parentNode;return e?e.insertBefore(t,this.nextSibling):t}function us(){var t=this.cloneNode(!0),e=this.parentNode;return e?e.insertBefore(t,this.nextSibling):t}function fs(t){return this.select(t?us:cs)}function ls(t){return arguments.length?this.property("__data__",t):this.node().__data__}function hs(t){return function(e){t.call(this,e,this.__data__)}}function ds(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 gs(t){return function(){var e=this.__on;if(e){for(var n=0,r=-1,i=e.length,s;n<i;++n)s=e[n],(!t.type||s.type===t.type)&&s.name===t.name?this.removeEventListener(s.type,s.listener,s.options):e[++r]=s;++r?e.length=r:delete this.__on}}}function ps(t,e,n){return function(){var r=this.__on,i,s=hs(e);if(r){for(var o=0,a=r.length;o<a;++o)if((i=r[o]).type===t.type&&i.name===t.name){this.removeEventListener(i.type,i.listener,i.options),this.addEventListener(i.type,i.listener=s,i.options=n),i.value=e;return}}this.addEventListener(t.type,s,n),i={type:t.type,name:t.name,value:e,listener:s,options:n},r?r.push(i):this.__on=[i]}}function vs(t,e,n){var r=ds(t+""),i,s=r.length,o;if(arguments.length<2){var a=this.node().__on;if(a){for(var c=0,u=a.length,f;c<u;++c)for(i=0,f=a[c];i<s;++i)if((o=r[i]).type===f.type&&o.name===f.name)return f.value}return}for(a=e?ps:gs,i=0;i<s;++i)this.each(a(r[i],e,n));return this}function Zn(t,e,n){var r=qn(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 ms(t,e){return function(){return Zn(this,t,e)}}function ys(t,e){return function(){return Zn(this,t,e.apply(this,arguments))}}function _s(t,e){return this.each((typeof e=="function"?ys:ms)(t,e))}function*xs(){for(var t=this._groups,e=0,n=t.length;e<n;++e)for(var r=t[e],i=0,s=r.length,o;i<s;++i)(o=r[i])&&(yield o)}var Kn=[null];function M(t,e){this._groups=t,this._parents=e}function Et(){return new M([[document.documentElement]],Kn)}function ws(){return this}M.prototype=Et.prototype={constructor:M,select:Xr,selectAll:Jr,selectChild:ei,selectChildren:si,filter:oi,data:hi,enter:ai,exit:gi,join:pi,merge:vi,selection:ws,order:mi,sort:yi,call:xi,nodes:wi,node:bi,size:Ai,empty:Ti,each:Si,attr:Oi,style:Di,property:Hi,classed:qi,text:Yi,html:Qi,raise:ts,lower:ns,append:rs,insert:ss,remove:as,clone:fs,datum:ls,on:vs,dispatch:_s,[Symbol.iterator]:xs};function Yt(t){return typeof t=="string"?new M([[document.querySelector(t)]],[document.documentElement]):new M([[t]],Kn)}var gt;(function(t){t[t.SVG=0]="SVG",t[t.HTML=1]="HTML"})(gt||(gt={}));exports.Sizing=void 0;(function(t){t.Fit="fit",t.Extend="extend",t.FitWidth="fit_width"})(exports.Sizing||(exports.Sizing={}));function pt(t,e){return t==null||e==null?NaN:t<e?-1:t>e?1:t>=e?0:NaN}function bs(t,e){return t==null||e==null?NaN:e<t?-1:e>t?1:e>=t?0:NaN}function Be(t){let e,n,r;t.length!==2?(e=pt,n=(a,c)=>pt(t(a),c),r=(a,c)=>t(a)-c):(e=t===pt||t===bs?t:As,n=t,r=t);function i(a,c,u=0,f=a.length){if(u<f){if(e(c,c)!==0)return f;do{const l=u+f>>>1;n(a[l],c)<0?u=l+1:f=l}while(u<f)}return u}function s(a,c,u=0,f=a.length){if(u<f){if(e(c,c)!==0)return f;do{const l=u+f>>>1;n(a[l],c)<=0?u=l+1:f=l}while(u<f)}return u}function o(a,c,u=0,f=a.length){const l=i(a,c,u,f-1);return l>u&&r(a[l-1],c)>-r(a[l],c)?l-1:l}return{left:i,center:o,right:s}}function As(){return 0}function Jn(t){return t===null?NaN:+t}const Qn=Be(pt),jn=Qn.right,Ts=Qn.left;Be(Jn).center;function we(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 be(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 Ss(t,e){let n=0,r=0;if(e===void 0)for(let i of t)i!=null&&(i=+i)>=i&&(++n,r+=i);else{let i=-1;for(let s of t)(s=e(s,++i,t))!=null&&(s=+s)>=s&&(++n,r+=s)}if(n)return r/n}function Es(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 Cs(t,e,n){var r={},i=r.noTrailing,s=i===void 0?!1:i,o=r.noLeading,a=o===void 0?!1:o,c=r.debounceMode,u=c===void 0?void 0:c,f,l=!1,h=0;function p(){f&&clearTimeout(f)}function g(y){var m=y||{},v=m.upcomingOnly,_=v===void 0?!1:v;p(),l=!_}function d(){for(var y=arguments.length,m=new Array(y),v=0;v<y;v++)m[v]=arguments[v];var _=this,S=Date.now()-h;if(l)return;function x(){h=Date.now(),e.apply(_,m)}function b(){f=void 0}!a&&u&&!f&&x(),p(),u===void 0&&S>t?a?(h=Date.now(),s||(f=setTimeout(u?b:x,t))):x():s!==!0&&(f=setTimeout(u?b:x,u===void 0?t-S:t))}return d.cancel=g,d}exports.FindNearestDirection=void 0;(function(t){t.Left="left",t.Right="right",t.Auto="auto"})(exports.FindNearestDirection||(exports.FindNearestDirection={}));const ae=t=>typeof t=="number",He=t=>typeof t=="function",ce=t=>Array.isArray(t),$s=t=>t instanceof Object,Zt=t=>t.constructor.name!=="Function"&&t.constructor.name!=="Object",sn=t=>$s(t)&&!ce(t)&&!He(t)&&!Zt(t),Rs=t=>[Object,Array].includes((t||{}).constructor)&&!Object.entries(t||{}).length,yt=(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(!yt(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(o=>!n.includes(o)),s=Object.keys(e).filter(o=>!n.includes(o));if(i.length!==s.length)return!1;if(r.has(t))return!0;r.add(t);for(const o of i)if(!yt(t[o],e[o],n,r))return!1;return!0}return t===e},tr=t=>t.flat(),Kt=(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):Kt(r,e));return n}if(Zt(t))return t;if(t instanceof Object){const n={};e.set(t,n);const r=t;return Object.keys(t).reduce((i,s)=>(i[s]=e.has(r[s])?e.get(r[s]):Kt(r[s],e),i),n),n}return t},st=(t,e,n=new Map)=>{if(!t||!e||t===e)return t;const r=Zt(t)?t:Kt(t);return n.has(e)?n.get(e):(n.set(e,r),Object.keys(e).forEach(i=>{i==="__proto__"||i==="constructor"||(sn(t[i])&&sn(e[i])?r[i]=st(t[i],e[i],n):Zt(e)?r[i]=e:r[i]=Kt(e[i]))}),r)},Ae=(t,e,n)=>Cs(e,t);function Ve(t,e,n){return He(e)?e(t,n):e}function er(t,e,n){return Ve(t,e,n)}function z(t,e,n){return Ve(t,e,n)}function Ns(t){return t.filter(e=>e&&!ae(e))}function Te(t,e,n){return Math.min(Math.max(t,e),n)}function ks(t,...e){if(!t)return[void 0,void 0];if(ce(e)){let n=0,r=0;return t.forEach((i,s)=>{let o=0,a=0;for(const c of e){const u=z(i,c,s)||0;u>=0?o+=u:a+=u}o>r&&(r=o),a<n&&(n=a)}),[n,r]}}function Os(t,e,...n){const r=[];let i=0,s=0;for(const o of n){const a=z(t,o,e)||0;a>=0?r.push(i+=a):r.push(s+=a)}return r}function Ms(t,e,n,r){const i=t.map((a,c)=>z(a,e,c)||0),s=n.map((a,c)=>{const u=Ss(t,(f,l)=>z(f,a,l)||0);return u===0&&Array.isArray(r)?r[c]:u<0}),o=n.map(()=>[]);return t.forEach((a,c)=>{let u=i[c],f=i[c];n.forEach((l,h)=>{const p=z(a,l,c)||0;p>=0?o[h].push([u,u+=p]):o[h].push([f,f+=p])})}),o.forEach((a,c)=>{a.isMostlyNegative=s[c]}),o}function nr(t,...e){return t?be(t,(r,i)=>be(e,s=>z(r,s,i))):void 0}function rr(t,...e){return t?we(t,(r,i)=>we(e,s=>z(r,s,i))):void 0}function zs(t,...e){return[nr(t,...e),rr(t,...e)]}function Se(t,e,n,r=exports.FindNearestDirection.Auto){if(t.length<=1)return t[0];const s=t.map((c,u)=>[c,u]).sort(([c,u],[f,l])=>z(c,n,u)-z(f,n,l)),o=s.map(([c,u])=>z(c,n,u)),a=r===exports.FindNearestDirection.Right?Ts(o,e,0,t.length-1):jn(o,e,1,t.length);return r===exports.FindNearestDirection.Right?s[a][0]:r===exports.FindNearestDirection.Left?s[a-1][0]:e-o[a-1]>o[a]-e?s[a][0]:s[a-1][0]}function Fs(t,e,n,r=!1){if(!n)return[];const i=t.filter((s,o)=>{const a=z(s,n,o);return a>=e[0]&&a<=e[1]});if(r){if(i.length===0){const l=Se(t,e[0],n,exports.FindNearestDirection.Left),h=Se(t,e[1],n,exports.FindNearestDirection.Right);return[l,h].filter(Boolean)}const s=i[0],o=i[i.length-1],a=t.findIndex(l=>l===s),c=t.findIndex(l=>l===o),u=Math.max(0,a-1),f=Math.min(t.length-1,c+1);return t.slice(u,f+1)}return i}var K=[],Ds=function(){return K.some(function(t){return t.activeTargets.length>0})},Is=function(){return K.some(function(t){return t.skippedTargets.length>0})},on="ResizeObserver loop completed with undelivered notifications.",Ls=function(){var t;typeof ErrorEvent=="function"?t=new ErrorEvent("error",{message:on}):(t=document.createEvent("Event"),t.initEvent("error",!1,!1),t.message=on),window.dispatchEvent(t)},_t;(function(t){t.BORDER_BOX="border-box",t.CONTENT_BOX="content-box",t.DEVICE_PIXEL_CONTENT_BOX="device-pixel-content-box"})(_t||(_t={}));var J=function(t){return Object.freeze(t)},Bs=(function(){function t(e,n){this.inlineSize=e,this.blockSize=n,J(this)}return t})(),ir=(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,J(this)}return t.prototype.toJSON=function(){var e=this,n=e.x,r=e.y,i=e.top,s=e.right,o=e.bottom,a=e.left,c=e.width,u=e.height;return{x:n,y:r,top:i,right:s,bottom:o,left:a,width:c,height:u}},t.fromRect=function(e){return new t(e.x,e.y,e.width,e.height)},t})(),Pe=function(t){return t instanceof SVGElement&&"getBBox"in t},sr=function(t){if(Pe(t)){var e=t.getBBox(),n=e.width,r=e.height;return!n&&!r}var i=t,s=i.offsetWidth,o=i.offsetHeight;return!(s||o||t.getClientRects().length)},an=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)},Hs=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},vt=typeof window<"u"?window:{},Nt=new WeakMap,cn=/auto|scroll/,Vs=/^tb|vertical/,Ps=/msie|trident/i.test(vt.navigator&&vt.navigator.userAgent),B=function(t){return parseFloat(t||"0")},et=function(t,e,n){return t===void 0&&(t=0),e===void 0&&(e=0),n===void 0&&(n=!1),new Bs((n?e:t)||0,(n?t:e)||0)},un=J({devicePixelContentBoxSize:et(),borderBoxSize:et(),contentBoxSize:et(),contentRect:new ir(0,0,0,0)}),or=function(t,e){if(e===void 0&&(e=!1),Nt.has(t)&&!e)return Nt.get(t);if(sr(t))return Nt.set(t,un),un;var n=getComputedStyle(t),r=Pe(t)&&t.ownerSVGElement&&t.getBBox(),i=!Ps&&n.boxSizing==="border-box",s=Vs.test(n.writingMode||""),o=!r&&cn.test(n.overflowY||""),a=!r&&cn.test(n.overflowX||""),c=r?0:B(n.paddingTop),u=r?0:B(n.paddingRight),f=r?0:B(n.paddingBottom),l=r?0:B(n.paddingLeft),h=r?0:B(n.borderTopWidth),p=r?0:B(n.borderRightWidth),g=r?0:B(n.borderBottomWidth),d=r?0:B(n.borderLeftWidth),y=l+u,m=c+f,v=d+p,_=h+g,S=a?t.offsetHeight-_-t.clientHeight:0,x=o?t.offsetWidth-v-t.clientWidth:0,b=i?y+v:0,w=i?m+_:0,L=r?r.width:B(n.width)-b-x,C=r?r.height:B(n.height)-w-S,Pr=L+y+x+v,Wr=C+m+S+_,nn=J({devicePixelContentBoxSize:et(Math.round(L*devicePixelRatio),Math.round(C*devicePixelRatio),s),borderBoxSize:et(Pr,Wr,s),contentBoxSize:et(L,C,s),contentRect:new ir(l,c,L,C)});return Nt.set(t,nn),nn},ar=function(t,e,n){var r=or(t,n),i=r.borderBoxSize,s=r.contentBoxSize,o=r.devicePixelContentBoxSize;switch(e){case _t.DEVICE_PIXEL_CONTENT_BOX:return o;case _t.BORDER_BOX:return i;default:return s}},Ws=(function(){function t(e){var n=or(e);this.target=e,this.contentRect=n.contentRect,this.borderBoxSize=J([n.borderBoxSize]),this.contentBoxSize=J([n.contentBoxSize]),this.devicePixelContentBoxSize=J([n.devicePixelContentBoxSize])}return t})(),cr=function(t){if(sr(t))return 1/0;for(var e=0,n=t.parentNode;n;)e+=1,n=n.parentNode;return e},qs=function(){var t=1/0,e=[];K.forEach(function(o){if(o.activeTargets.length!==0){var a=[];o.activeTargets.forEach(function(u){var f=new Ws(u.target),l=cr(u.target);a.push(f),u.lastReportedSize=ar(u.target,u.observedBox),l<t&&(t=l)}),e.push(function(){o.callback.call(o.observer,a,o.observer)}),o.activeTargets.splice(0,o.activeTargets.length)}});for(var n=0,r=e;n<r.length;n++){var i=r[n];i()}return t},fn=function(t){K.forEach(function(n){n.activeTargets.splice(0,n.activeTargets.length),n.skippedTargets.splice(0,n.skippedTargets.length),n.observationTargets.forEach(function(i){i.isActive()&&(cr(i.target)>t?n.activeTargets.push(i):n.skippedTargets.push(i))})})},Us=function(){var t=0;for(fn(t);Ds();)t=qs(),fn(t);return Is()&&Ls(),t>0},ge,ur=[],Gs=function(){return ur.splice(0).forEach(function(t){return t()})},Xs=function(t){if(!ge){var e=0,n=document.createTextNode(""),r={characterData:!0};new MutationObserver(function(){return Gs()}).observe(n,r),ge=function(){n.textContent="".concat(e?e--:e++)}}ur.push(t),ge()},Ys=function(t){Xs(function(){requestAnimationFrame(t)})},It=0,Zs=function(){return!!It},Ks=250,Js={attributes:!0,characterData:!0,childList:!0,subtree:!0},ln=["resize","load","transitionend","animationend","animationstart","animationiteration","keyup","keydown","mouseup","mousedown","mouseover","mouseout","blur","focus"],hn=function(t){return t===void 0&&(t=0),Date.now()+t},pe=!1,Qs=(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=Ks),!pe){pe=!0;var r=hn(e);Ys(function(){var i=!1;try{i=Us()}finally{if(pe=!1,e=r-hn(),!Zs())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,Js)};document.body?n():vt.addEventListener("DOMContentLoaded",n)},t.prototype.start=function(){var e=this;this.stopped&&(this.stopped=!1,this.observer=new MutationObserver(this.listener),this.observe(),ln.forEach(function(n){return vt.addEventListener(n,e.listener,!0)}))},t.prototype.stop=function(){var e=this;this.stopped||(this.observer&&this.observer.disconnect(),ln.forEach(function(n){return vt.removeEventListener(n,e.listener,!0)}),this.stopped=!0)},t})(),Ee=new Qs,dn=function(t){!It&&t>0&&Ee.start(),It+=t,!It&&Ee.stop()},js=function(t){return!Pe(t)&&!Hs(t)&&getComputedStyle(t).display==="inline"},to=(function(){function t(e,n){this.target=e,this.observedBox=n||_t.CONTENT_BOX,this.lastReportedSize={inlineSize:0,blockSize:0}}return t.prototype.isActive=function(){var e=ar(this.target,this.observedBox,!0);return js(this.target)&&(this.lastReportedSize=e),this.lastReportedSize.inlineSize!==e.inlineSize||this.lastReportedSize.blockSize!==e.blockSize},t})(),eo=(function(){function t(e,n){this.activeTargets=[],this.skippedTargets=[],this.observationTargets=[],this.observer=e,this.callback=n}return t})(),kt=new WeakMap,gn=function(t,e){for(var n=0;n<t.length;n+=1)if(t[n].target===e)return n;return-1},Ot=(function(){function t(){}return t.connect=function(e,n){var r=new eo(e,n);kt.set(e,r)},t.observe=function(e,n,r){var i=kt.get(e),s=i.observationTargets.length===0;gn(i.observationTargets,n)<0&&(s&&K.push(i),i.observationTargets.push(new to(n,r&&r.box)),dn(1),Ee.schedule())},t.unobserve=function(e,n){var r=kt.get(e),i=gn(r.observationTargets,n),s=r.observationTargets.length===1;i>=0&&(s&&K.splice(K.indexOf(r),1),r.observationTargets.splice(i,1),dn(-1))},t.disconnect=function(e){var n=this,r=kt.get(e);r.observationTargets.slice().forEach(function(i){return n.unobserve(e,i.target)}),r.activeTargets.splice(0,r.activeTargets.length)},t})(),no=(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.");Ot.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(!an(e))throw new TypeError("Failed to execute 'observe' on 'ResizeObserver': parameter 1 is not of type 'Element");Ot.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(!an(e))throw new TypeError("Failed to execute 'unobserve' on 'ResizeObserver': parameter 1 is not of type 'Element");Ot.unobserve(this,e)},t.prototype.disconnect=function(){Ot.disconnect(this)},t.toString=function(){return"function ResizeObserver () { [polyfill code] }"},t})();const ro=globalThis.ResizeObserver||no,fr={duration:void 0,margin:{top:0,bottom:0,left:0,right:0},padding:{top:0,bottom:0,left:0,right:0},sizing:exports.Sizing.Fit,width:void 0,height:void 0,svgDefs:void 0,ariaLabel:void 0};class xt{constructor(e){this._defaultConfig=fr,this._isFirstRender=!0,this._renderAnimationFrameId=null,this._container=e;const n=Yt(this._container);n.attr("role","figure"),this.svg=n.append("svg").style("display","block").attr("xmlns","http://www.w3.org/2000/svg").attr("height",xt.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=st(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;Yt(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||xt.DEFAULT_CONTAINER_HEIGHT}get width(){return Te(this.containerWidth-this.config.margin.left-this.config.margin.right,0,Number.POSITIVE_INFINITY)}get height(){return Te(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===exports.Sizing.Fit||e.sizing===exports.Sizing.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 ro((n,r)=>{cancelAnimationFrame(this._resizeObserverAnimationFrameId),this._resizeObserverAnimationFrameId=requestAnimationFrame(()=>{const i=this._container.getBoundingClientRect(),s={width:i.width,height:i.height};!yt(this._containerSize,s)&&s.width&&s.height&&(this._containerSize=s,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()}}xt.DEFAULT_CONTAINER_HEIGHT=300;function io(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 so(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 oo=(function(){function t(n){var r=this;this._insertTag=function(i){var s;r.tags.length===0?r.insertionPoint?s=r.insertionPoint.nextSibling:r.prepend?s=r.container.firstChild:s=r.before:s=r.tags[r.tags.length-1].nextSibling,r.container.insertBefore(i,s),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(so(this));var i=this.tags[this.tags.length-1];if(this.isSpeedy){var s=io(i);try{s.insertRule(r,s.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})(),R="-ms-",Jt="-moz-",A="-webkit-",lr="comm",We="rule",qe="decl",ao="@import",hr="@keyframes",co="@layer",uo=Math.abs,ue=String.fromCharCode,fo=Object.assign;function lo(t,e){return $(t,0)^45?(((e<<2^$(t,0))<<2^$(t,1))<<2^$(t,2))<<2^$(t,3):0}function dr(t){return t.trim()}function ho(t,e){return(t=e.exec(t))?t[0]:t}function T(t,e,n){return t.replace(e,n)}function Ce(t,e){return t.indexOf(e)}function $(t,e){return t.charCodeAt(e)|0}function wt(t,e,n){return t.slice(e,n)}function H(t){return t.length}function Ue(t){return t.length}function Mt(t,e){return e.push(t),t}function go(t,e){return t.map(e).join("")}var fe=1,ot=1,gr=0,k=0,E=0,ct="";function le(t,e,n,r,i,s,o){return{value:t,root:e,parent:n,type:r,props:i,children:s,line:fe,column:ot,length:o,return:""}}function ut(t,e){return fo(le("",null,null,"",null,null,0),t,{length:-t.length},e)}function po(){return E}function vo(){return E=k>0?$(ct,--k):0,ot--,E===10&&(ot=1,fe--),E}function O(){return E=k<gr?$(ct,k++):0,ot++,E===10&&(ot=1,fe++),E}function V(){return $(ct,k)}function Lt(){return k}function Ct(t,e){return wt(ct,t,e)}function bt(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 pr(t){return fe=ot=1,gr=H(ct=t),k=0,[]}function vr(t){return ct="",t}function Bt(t){return dr(Ct(k-1,$e(t===91?t+2:t===40?t+1:t)))}function mo(t){for(;(E=V())&&E<33;)O();return bt(t)>2||bt(E)>3?"":" "}function yo(t,e){for(;--e&&O()&&!(E<48||E>102||E>57&&E<65||E>70&&E<97););return Ct(t,Lt()+(e<6&&V()==32&&O()==32))}function $e(t){for(;O();)switch(E){case t:return k;case 34:case 39:t!==34&&t!==39&&$e(E);break;case 40:t===41&&$e(t);break;case 92:O();break}return k}function _o(t,e){for(;O()&&t+E!==57;)if(t+E===84&&V()===47)break;return"/*"+Ct(e,k-1)+"*"+ue(t===47?t:O())}function xo(t){for(;!bt(V());)O();return Ct(t,k)}function wo(t){return vr(Ht("",null,null,null,[""],t=pr(t),0,[0],t))}function Ht(t,e,n,r,i,s,o,a,c){for(var u=0,f=0,l=o,h=0,p=0,g=0,d=1,y=1,m=1,v=0,_="",S=i,x=s,b=r,w=_;y;)switch(g=v,v=O()){case 40:if(g!=108&&$(w,l-1)==58){Ce(w+=T(Bt(v),"&","&\f"),"&\f")!=-1&&(m=-1);break}case 34:case 39:case 91:w+=Bt(v);break;case 9:case 10:case 13:case 32:w+=mo(g);break;case 92:w+=yo(Lt()-1,7);continue;case 47:switch(V()){case 42:case 47:Mt(bo(_o(O(),Lt()),e,n),c);break;default:w+="/"}break;case 123*d:a[u++]=H(w)*m;case 125*d:case 59:case 0:switch(v){case 0:case 125:y=0;case 59+f:m==-1&&(w=T(w,/\f/g,"")),p>0&&H(w)-l&&Mt(p>32?vn(w+";",r,n,l-1):vn(T(w," ","")+";",r,n,l-2),c);break;case 59:w+=";";default:if(Mt(b=pn(w,e,n,u,f,i,a,_,S=[],x=[],l),s),v===123)if(f===0)Ht(w,e,b,b,S,s,l,a,x);else switch(h===99&&$(w,3)===110?100:h){case 100:case 108:case 109:case 115:Ht(t,b,b,r&&Mt(pn(t,b,b,0,0,i,a,_,i,S=[],l),x),i,x,l,a,r?S:x);break;default:Ht(w,b,b,b,[""],x,0,a,x)}}u=f=p=0,d=m=1,_=w="",l=o;break;case 58:l=1+H(w),p=g;default:if(d<1){if(v==123)--d;else if(v==125&&d++==0&&vo()==125)continue}switch(w+=ue(v),v*d){case 38:m=f>0?1:(w+="\f",-1);break;case 44:a[u++]=(H(w)-1)*m,m=1;break;case 64:V()===45&&(w+=Bt(O())),h=V(),f=l=H(_=w+=xo(Lt())),v++;break;case 45:g===45&&H(w)==2&&(d=0)}}return s}function pn(t,e,n,r,i,s,o,a,c,u,f){for(var l=i-1,h=i===0?s:[""],p=Ue(h),g=0,d=0,y=0;g<r;++g)for(var m=0,v=wt(t,l+1,l=uo(d=o[g])),_=t;m<p;++m)(_=dr(d>0?h[m]+" "+v:T(v,/&\f/g,h[m])))&&(c[y++]=_);return le(t,e,n,i===0?We:a,c,u,f)}function bo(t,e,n){return le(t,e,n,lr,ue(po()),wt(t,2,-2),0)}function vn(t,e,n,r){return le(t,e,n,qe,wt(t,0,r),wt(t,r+1,-1),r)}function nt(t,e){for(var n="",r=Ue(t),i=0;i<r;i++)n+=e(t[i],i,t,e)||"";return n}function Ao(t,e,n,r){switch(t.type){case co:if(t.children.length)break;case ao:case qe:return t.return=t.return||t.value;case lr:return"";case hr:return t.return=t.value+"{"+nt(t.children,r)+"}";case We:t.value=t.props.join(",")}return H(n=nt(t.children,r))?t.return=t.value+"{"+n+"}":""}function To(t){var e=Ue(t);return function(n,r,i,s){for(var o="",a=0;a<e;a++)o+=t[a](n,r,i,s)||"";return o}}function So(t){return function(e){e.root||(e=e.return)&&t(e)}}function Eo(t){var e=Object.create(null);return function(n){return e[n]===void 0&&(e[n]=t(n)),e[n]}}var Co=function(e,n,r){for(var i=0,s=0;i=s,s=V(),i===38&&s===12&&(n[r]=1),!bt(s);)O();return Ct(e,k)},$o=function(e,n){var r=-1,i=44;do switch(bt(i)){case 0:i===38&&V()===12&&(n[r]=1),e[r]+=Co(k-1,n,r);break;case 2:e[r]+=Bt(i);break;case 4:if(i===44){e[++r]=V()===58?"&\f":"",n[r]=e[r].length;break}default:e[r]+=ue(i)}while(i=O());return e},Ro=function(e,n){return vr($o(pr(e),n))},mn=new WeakMap,No=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&&!mn.get(r))&&!i){mn.set(e,!0);for(var s=[],o=Ro(n,s),a=r.props,c=0,u=0;c<o.length;c++)for(var f=0;f<a.length;f++,u++)e.props[u]=s[c]?o[c].replace(/&\f/g,a[f]):a[f]+" "+o[c]}}},ko=function(e){if(e.type==="decl"){var n=e.value;n.charCodeAt(0)===108&&n.charCodeAt(2)===98&&(e.return="",e.value="")}};function mr(t,e){switch(lo(t,e)){case 5103:return A+"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 A+t+t;case 5349:case 4246:case 4810:case 6968:case 2756:return A+t+Jt+t+R+t+t;case 6828:case 4268:return A+t+R+t+t;case 6165:return A+t+R+"flex-"+t+t;case 5187:return A+t+T(t,/(\w+).+(:[^]+)/,A+"box-$1$2"+R+"flex-$1$2")+t;case 5443:return A+t+R+"flex-item-"+T(t,/flex-|-self/,"")+t;case 4675:return A+t+R+"flex-line-pack"+T(t,/align-content|flex-|-self/,"")+t;case 5548:return A+t+R+T(t,"shrink","negative")+t;case 5292:return A+t+R+T(t,"basis","preferred-size")+t;case 6060:return A+"box-"+T(t,"-grow","")+A+t+R+T(t,"grow","positive")+t;case 4554:return A+T(t,/([^-])(transform)/g,"$1"+A+"$2")+t;case 6187:return T(T(T(t,/(zoom-|grab)/,A+"$1"),/(image-set)/,A+"$1"),t,"")+t;case 5495:case 3959:return T(t,/(image-set\([^]*)/,A+"$1$`$1");case 4968:return T(T(t,/(.+:)(flex-)?(.*)/,A+"box-pack:$3"+R+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+A+t+t;case 4095:case 3583:case 4068:case 2532:return T(t,/(.+)-inline(.+)/,A+"$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(H(t)-1-e>6)switch($(t,e+1)){case 109:if($(t,e+4)!==45)break;case 102:return T(t,/(.+:)(.+)-([^]+)/,"$1"+A+"$2-$3$1"+Jt+($(t,e+3)==108?"$3":"$2-$3"))+t;case 115:return~Ce(t,"stretch")?mr(T(t,"stretch","fill-available"),e)+t:t}break;case 4949:if($(t,e+1)!==115)break;case 6444:switch($(t,H(t)-3-(~Ce(t,"!important")&&10))){case 107:return T(t,":",":"+A)+t;case 101:return T(t,/(.+:)([^;!]+)(;|!.+)?/,"$1"+A+($(t,14)===45?"inline-":"")+"box$3$1"+A+"$2$3$1"+R+"$2box$3")+t}break;case 5936:switch($(t,e+11)){case 114:return A+t+R+T(t,/[svh]\w+-[tblr]{2}/,"tb")+t;case 108:return A+t+R+T(t,/[svh]\w+-[tblr]{2}/,"tb-rl")+t;case 45:return A+t+R+T(t,/[svh]\w+-[tblr]{2}/,"lr")+t}return A+t+R+t+t}return t}var Oo=function(e,n,r,i){if(e.length>-1&&!e.return)switch(e.type){case qe:e.return=mr(e.value,e.length);break;case hr:return nt([ut(e,{value:T(e.value,"@","@"+A)})],i);case We:if(e.length)return go(e.props,function(s){switch(ho(s,/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":return nt([ut(e,{props:[T(s,/:(read-\w+)/,":"+Jt+"$1")]})],i);case"::placeholder":return nt([ut(e,{props:[T(s,/:(plac\w+)/,":"+A+"input-$1")]}),ut(e,{props:[T(s,/:(plac\w+)/,":"+Jt+"$1")]}),ut(e,{props:[T(s,/:(plac\w+)/,R+"input-$1")]})],i)}return""})}},Mo=[Oo],zo=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(d){var y=d.getAttribute("data-emotion");y.indexOf(" ")!==-1&&(document.head.appendChild(d),d.setAttribute("data-s",""))})}var i=e.stylisPlugins||Mo,s={},o,a=[];o=e.container||document.head,Array.prototype.forEach.call(document.querySelectorAll('style[data-emotion^="'+n+' "]'),function(d){for(var y=d.getAttribute("data-emotion").split(" "),m=1;m<y.length;m++)s[y[m]]=!0;a.push(d)});var c,u=[No,ko];{var f,l=[Ao,So(function(d){f.insert(d)})],h=To(u.concat(i,l)),p=function(y){return nt(wo(y),h)};c=function(y,m,v,_){f=v,p(y?y+"{"+m.styles+"}":m.styles),_&&(g.inserted[m.name]=!0)}}var g={key:n,sheet:new oo({key:n,container:o,nonce:e.nonce,speedy:e.speedy,prepend:e.prepend,insertionPoint:e.insertionPoint}),nonce:e.nonce,inserted:s,registered:{},insert:c};return g.sheet.hydrate(a),g};function Fo(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 Do={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},Io=/[A-Z]|^ms/g,Lo=/_EMO_([^_]+?)_([^]*?)_EMO_/g,yr=function(e){return e.charCodeAt(1)===45},yn=function(e){return e!=null&&typeof e!="boolean"},ve=Eo(function(t){return yr(t)?t:t.replace(Io,"-$&").toLowerCase()}),_n=function(e,n){switch(e){case"animation":case"animationName":if(typeof n=="string")return n.replace(Lo,function(r,i,s){return Y={name:i,styles:s,next:Y},i})}return Do[e]!==1&&!yr(e)&&typeof n=="number"&&n!==0?n+"px":n};function Qt(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 Y={name:i.name,styles:i.styles,next:Y},i.name;var s=n;if(s.styles!==void 0){var o=s.next;if(o!==void 0)for(;o!==void 0;)Y={name:o.name,styles:o.styles,next:Y},o=o.next;var a=s.styles+";";return a}return Bo(t,e,n)}}var c=n;if(e==null)return c;var u=e[c];return u!==void 0?u:c}function Bo(t,e,n){var r="";if(Array.isArray(n))for(var i=0;i<n.length;i++)r+=Qt(t,e,n[i])+";";else for(var s in n){var o=n[s];if(typeof o!="object"){var a=o;e!=null&&e[a]!==void 0?r+=s+"{"+e[a]+"}":yn(a)&&(r+=ve(s)+":"+_n(s,a)+";")}else if(Array.isArray(o)&&typeof o[0]=="string"&&(e==null||e[o[0]]===void 0))for(var c=0;c<o.length;c++)yn(o[c])&&(r+=ve(s)+":"+_n(s,o[c])+";");else{var u=Qt(t,e,o);switch(s){case"animation":case"animationName":{r+=ve(s)+":"+u+";";break}default:r+=s+"{"+u+"}"}}}return r}var xn=/label:\s*([^\s;{]+)\s*(;|$)/g,Y;function me(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="";Y=void 0;var s=t[0];if(s==null||s.raw===void 0)r=!1,i+=Qt(n,e,s);else{var o=s;i+=o[0]}for(var a=1;a<t.length;a++)if(i+=Qt(n,e,t[a]),r){var c=s;i+=c[a]}xn.lastIndex=0;for(var u="",f;(f=xn.exec(i))!==null;)u+="-"+f[1];var l=Fo(i)+u;return{name:l,styles:i,next:Y}}function _r(t,e,n){var r="";return n.split(" ").forEach(function(i){t[i]!==void 0?e.push(t[i]+";"):i&&(r+=i+" ")}),r}var Ho=function(e,n,r){var i=e.key+"-"+n.name;e.registered[i]===void 0&&(e.registered[i]=n.styles)},Vo=function(e,n,r){Ho(e,n);var i=e.key+"-"+n.name;if(e.inserted[n.name]===void 0){var s=n;do e.insert(n===s?"."+i:"",s,e.sheet,!0),s=s.next;while(s!==void 0)}};function wn(t,e){if(t.inserted[e.name]===void 0)return t.insert("",e,t.sheet,!0)}function bn(t,e,n){var r=[],i=_r(t,r,n);return r.length<2?n:i+e(r)}var Po=function(e){var n=zo(e);n.sheet.speedy=function(a){this.isSpeedy=a},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 l=me(u,n.registered,void 0);return Vo(n,l),n.key+"-"+l.name},i=function(){for(var c=arguments.length,u=new Array(c),f=0;f<c;f++)u[f]=arguments[f];var l=me(u,n.registered),h="animation-"+l.name;return wn(n,{name:l.name,styles:"@keyframes "+h+"{"+l.styles+"}"}),h},s=function(){for(var c=arguments.length,u=new Array(c),f=0;f<c;f++)u[f]=arguments[f];var l=me(u,n.registered);wn(n,l)},o=function(){for(var c=arguments.length,u=new Array(c),f=0;f<c;f++)u[f]=arguments[f];return bn(n.registered,r,Wo(u))};return{css:r,cx:o,injectGlobal:s,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:_r.bind(null,n.registered),merge:bn.bind(null,n.registered,r)}},Wo=function t(e){for(var n="",r=0;r<e.length;r++){var i=e[r];if(i!=null){var s=void 0;switch(typeof i){case"boolean":break;case"object":{if(Array.isArray(i))s=t(i);else{s="";for(var o in i)i[o]&&o&&(s&&(s+=" "),s+=o)}break}default:s=i}s&&(n&&(n+=" "),n+=s)}}return n},xr=Po({key:"css"}),wr=xr.injectGlobal,qo=xr.css;function br(){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()}`}const An=new WeakMap;function Uo(t,e){const n=t.substr(4,t.length-5);let r=An.get(e);if(r||(r=new Map,An.set(e,r)),r.has(n))return r.get(n);const i=getComputedStyle(e).getPropertyValue(n);return r.set(n,i),i}function Go(t,e,n=0){const[r,i,s,o]=[t.x+n,t.y+t.height-2*n,t.x+t.width-2*n,t.y+n],[a,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<o||s<a||u<r)}function Ge(t,e,n){t.prototype=e.prototype=n,n.constructor=t}function Ar(t,e){var n=Object.create(t.prototype);for(var r in e)n[r]=e[r];return n}function $t(){}var At=.7,jt=1/At,rt="\\s*([+-]?\\d+)\\s*",Tt="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)\\s*",P="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)%\\s*",Xo=/^#([0-9a-f]{3,8})$/,Yo=new RegExp(`^rgb\\(${rt},${rt},${rt}\\)$`),Zo=new RegExp(`^rgb\\(${P},${P},${P}\\)$`),Ko=new RegExp(`^rgba\\(${rt},${rt},${rt},${Tt}\\)$`),Jo=new RegExp(`^rgba\\(${P},${P},${P},${Tt}\\)$`),Qo=new RegExp(`^hsl\\(${Tt},${P},${P}\\)$`),jo=new RegExp(`^hsla\\(${Tt},${P},${P},${Tt}\\)$`),Tn={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};Ge($t,j,{copy(t){return Object.assign(new this.constructor,this,t)},displayable(){return this.rgb().displayable()},hex:Sn,formatHex:Sn,formatHex8:ta,formatHsl:ea,formatRgb:En,toString:En});function Sn(){return this.rgb().formatHex()}function ta(){return this.rgb().formatHex8()}function ea(){return Tr(this).formatHsl()}function En(){return this.rgb().formatRgb()}function j(t){var e,n;return t=(t+"").trim().toLowerCase(),(e=Xo.exec(t))?(n=e[1].length,e=parseInt(e[1],16),n===6?Cn(e):n===3?new N(e>>8&15|e>>4&240,e>>4&15|e&240,(e&15)<<4|e&15,1):n===8?zt(e>>24&255,e>>16&255,e>>8&255,(e&255)/255):n===4?zt(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=Yo.exec(t))?new N(e[1],e[2],e[3],1):(e=Zo.exec(t))?new N(e[1]*255/100,e[2]*255/100,e[3]*255/100,1):(e=Ko.exec(t))?zt(e[1],e[2],e[3],e[4]):(e=Jo.exec(t))?zt(e[1]*255/100,e[2]*255/100,e[3]*255/100,e[4]):(e=Qo.exec(t))?Nn(e[1],e[2]/100,e[3]/100,1):(e=jo.exec(t))?Nn(e[1],e[2]/100,e[3]/100,e[4]):Tn.hasOwnProperty(t)?Cn(Tn[t]):t==="transparent"?new N(NaN,NaN,NaN,0):null}function Cn(t){return new N(t>>16&255,t>>8&255,t&255,1)}function zt(t,e,n,r){return r<=0&&(t=e=n=NaN),new N(t,e,n,r)}function na(t){return t instanceof $t||(t=j(t)),t?(t=t.rgb(),new N(t.r,t.g,t.b,t.opacity)):new N}function Re(t,e,n,r){return arguments.length===1?na(t):new N(t,e,n,r??1)}function N(t,e,n,r){this.r=+t,this.g=+e,this.b=+n,this.opacity=+r}Ge(N,Re,Ar($t,{brighter(t){return t=t==null?jt:Math.pow(jt,t),new N(this.r*t,this.g*t,this.b*t,this.opacity)},darker(t){return t=t==null?At:Math.pow(At,t),new N(this.r*t,this.g*t,this.b*t,this.opacity)},rgb(){return this},clamp(){return new N(Q(this.r),Q(this.g),Q(this.b),te(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:$n,formatHex:$n,formatHex8:ra,formatRgb:Rn,toString:Rn}));function $n(){return`#${Z(this.r)}${Z(this.g)}${Z(this.b)}`}function ra(){return`#${Z(this.r)}${Z(this.g)}${Z(this.b)}${Z((isNaN(this.opacity)?1:this.opacity)*255)}`}function Rn(){const t=te(this.opacity);return`${t===1?"rgb(":"rgba("}${Q(this.r)}, ${Q(this.g)}, ${Q(this.b)}${t===1?")":`, ${t})`}`}function te(t){return isNaN(t)?1:Math.max(0,Math.min(1,t))}function Q(t){return Math.max(0,Math.min(255,Math.round(t)||0))}function Z(t){return t=Q(t),(t<16?"0":"")+t.toString(16)}function Nn(t,e,n,r){return r<=0?t=e=n=NaN:n<=0||n>=1?t=e=NaN:e<=0&&(t=NaN),new D(t,e,n,r)}function Tr(t){if(t instanceof D)return new D(t.h,t.s,t.l,t.opacity);if(t instanceof $t||(t=j(t)),!t)return new D;if(t instanceof D)return t;t=t.rgb();var e=t.r/255,n=t.g/255,r=t.b/255,i=Math.min(e,n,r),s=Math.max(e,n,r),o=NaN,a=s-i,c=(s+i)/2;return a?(e===s?o=(n-r)/a+(n<r)*6:n===s?o=(r-e)/a+2:o=(e-n)/a+4,a/=c<.5?s+i:2-s-i,o*=60):a=c>0&&c<1?0:o,new D(o,a,c,t.opacity)}function Xe(t,e,n,r){return arguments.length===1?Tr(t):new D(t,e,n,r??1)}function D(t,e,n,r){this.h=+t,this.s=+e,this.l=+n,this.opacity=+r}Ge(D,Xe,Ar($t,{brighter(t){return t=t==null?jt:Math.pow(jt,t),new D(this.h,this.s,this.l*t,this.opacity)},darker(t){return t=t==null?At:Math.pow(At,t),new D(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 N(ye(t>=240?t-240:t+120,i,r),ye(t,i,r),ye(t<120?t+240:t-120,i,r),this.opacity)},clamp(){return new D(kn(this.h),Ft(this.s),Ft(this.l),te(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=te(this.opacity);return`${t===1?"hsl(":"hsla("}${kn(this.h)}, ${Ft(this.s)*100}%, ${Ft(this.l)*100}%${t===1?")":`, ${t})`}`}}));function kn(t){return t=(t||0)%360,t<0?t+360:t}function Ft(t){return Math.max(0,Math.min(1,t||0))}function ye(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 lt=globalThis?.UNOVIS_COLORS||["#4D8CFD","#FF6B7E","#F4B83E","#A6CC74","#00C19A","#6859BE"],ia=globalThis?.UNOVIS_COLORS_DARK||["#4D8CFD","#FF6B7E","#FFC16D","#A6CC74","#00C19A","#7887E0"],G=t=>`--vis-${ae(t)?`color${t%lt.length}`:t}`;function sa(t,e=.4){const n=Xe(t);return n.l=n.l*(1+e),n.formatHex()}function oa(t,e=.4,n=.6){const r=Xe(t);return r.s=r.s*(1-n),r.l=r.l*(1-e),r.formatHex()}const ee=10,Ne=[{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"/>'}],ke=[{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 X(t){return`vis-${`pattern-${t.svg?"fill":"marker"}`}-${t.id}`}const aa=t=>`<mask id="${X(t)}">
|
|
2
|
-
<pattern id="${t.id}" viewBox="0 0 10 10" width="${ee}" height="${ee}" 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>`,ca=(t,e)=>`<marker id="${X(t)}"
|
|
8
|
-
fill="var(${G(e)})"
|
|
9
|
-
markerUnits="userSpaceOnUse"
|
|
10
|
-
refX="5"
|
|
11
|
-
refY="5"
|
|
12
|
-
markerWidth="${ee}"
|
|
13
|
-
markerHeight="${ee}">
|
|
14
|
-
${t.marker}
|
|
15
|
-
</marker>`;function ua(){const t=Ne.map(aa).concat(ke.map(ca)).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"&&ua();const Sr=globalThis?.UNOVIS_FONT_W2H_RATIO_DEFAULT||.5,Er=globalThis?.UNOVIS_TEXT_SEPARATOR_DEFAULT||[" ","-",".",","],Cr=globalThis?.UNOVIS_TEXT_HYPHEN_CHARACTER_DEFAULT||"-",mt=globalThis?.UNOVIS_TEXT_DEFAULT||{text:"",fontSize:12,fontFamily:"var(--vis-font-family)",lineHeight:1.25,marginTop:0,marginBottom:0};wr`
|
|
16
|
-
:root {
|
|
17
|
-
label: vis-root-styles;
|
|
18
|
-
--vis-font-family: Inter, Arial, "Helvetica Neue", Helvetica, sans-serif;
|
|
19
|
-
--vis-font-wh-ratio: ${Sr};
|
|
20
|
-
--vis-color-main: var(${G(0)});
|
|
21
|
-
--vis-color-main-light: ${sa(lt[0])};
|
|
22
|
-
--vis-color-main-dark: ${oa(lt[0])};
|
|
23
|
-
--vis-color-grey: #2a2a2a;
|
|
24
|
-
${lt.map((t,e)=>`${G(e)}: ${t};`)}
|
|
25
|
-
${ia.map((t,e)=>`--vis-dark-color${e}: ${t};`)}
|
|
26
|
-
${Ne.map((t,e)=>`
|
|
27
|
-
--${X(t)}: url(#${X(t)});
|
|
28
|
-
--vis-pattern-fill${e}: var(--${X(t)});
|
|
29
|
-
`)}
|
|
30
|
-
${ke.map((t,e)=>{var n;return`
|
|
31
|
-
--${X(t)}: url(#${X(t)});
|
|
32
|
-
--vis-pattern-marker${e}: var(--${X(t)});
|
|
33
|
-
--vis-pattern-dasharray${e}: ${(n=t.dashArray)===null||n===void 0?void 0:n.join(" ")};
|
|
34
|
-
`})}
|
|
35
|
-
|
|
36
|
-
body.theme-dark {
|
|
37
|
-
${lt.map((t,e)=>`${G(e)}: var(--vis-dark-color${e});`)}
|
|
38
|
-
}
|
|
39
|
-
|
|
40
|
-
body.theme-patterns {
|
|
41
|
-
${Ne.map((t,e)=>`path[style*="fill: var(${G(e)})"] {
|
|
42
|
-
mask: var(--vis-pattern-fill${e});
|
|
43
|
-
}`)}
|
|
44
|
-
${ke.map((t,e)=>`
|
|
45
|
-
path[stroke="var(${G(e)})"]:not([style*="fill"]),
|
|
46
|
-
path[style*="stroke: var(${G(e)})"]:not([style*="fill"]) {
|
|
47
|
-
marker: var(--vis-pattern-marker${e});
|
|
48
|
-
stroke-dasharray: var(--vis-pattern-dasharray${e});
|
|
49
|
-
}
|
|
50
|
-
`)}
|
|
51
|
-
}
|
|
52
|
-
`;function Ye(t=window?.document.body){return t?+Uo("var(--vis-font-wh-ratio)",t):Sr}var fa={value:()=>{}};function $r(){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 Vt(n)}function Vt(t){this._=t}function la(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}})}Vt.prototype=$r.prototype={constructor:Vt,on:function(t,e){var n=this._,r=la(t+"",n),i,s=-1,o=r.length;if(arguments.length<2){for(;++s<o;)if((i=(t=r[s]).type)&&(i=ha(n[i],t.name)))return i;return}if(e!=null&&typeof e!="function")throw new Error("invalid callback: "+e);for(;++s<o;)if(i=(t=r[s]).type)n[i]=On(n[i],t.name,e);else if(e==null)for(i in n)n[i]=On(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 Vt(t)},call:function(t,e){if((i=arguments.length-2)>0)for(var n=new Array(i),r=0,i,s;r<i;++r)n[r]=arguments[r+2];if(!this._.hasOwnProperty(t))throw new Error("unknown type: "+t);for(s=this._[t],r=0,i=s.length;r<i;++r)s[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,s=r.length;i<s;++i)r[i].value.apply(e,n)}};function ha(t,e){for(var n=0,r=t.length,i;n<r;++n)if((i=t[n]).name===e)return i.value}function On(t,e,n){for(var r=0,i=t.length;r<i;++r)if(t[r].name===e){t[r]=fa,t=t.slice(0,r).concat(t.slice(r+1));break}return n!=null&&t.push({name:e,value:n}),t}var at=0,ht=0,ft=0,Rr=1e3,ne,dt,re=0,tt=0,he=0,St=typeof performance=="object"&&performance.now?performance:Date,Nr=typeof window=="object"&&window.requestAnimationFrame?window.requestAnimationFrame.bind(window):function(t){setTimeout(t,17)};function Ze(){return tt||(Nr(da),tt=St.now()+he)}function da(){tt=0}function ie(){this._call=this._time=this._next=null}ie.prototype=kr.prototype={constructor:ie,restart:function(t,e,n){if(typeof t!="function")throw new TypeError("callback is not a function");n=(n==null?Ze():+n)+(e==null?0:+e),!this._next&&dt!==this&&(dt?dt._next=this:ne=this,dt=this),this._call=t,this._time=n,Oe()},stop:function(){this._call&&(this._call=null,this._time=1/0,Oe())}};function kr(t,e,n){var r=new ie;return r.restart(t,e,n),r}function ga(){Ze(),++at;for(var t=ne,e;t;)(e=tt-t._time)>=0&&t._call.call(void 0,e),t=t._next;--at}function Mn(){tt=(re=St.now())+he,at=ht=0;try{ga()}finally{at=0,va(),tt=0}}function pa(){var t=St.now(),e=t-re;e>Rr&&(he-=e,re=t)}function va(){for(var t,e=ne,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:ne=n);dt=t,Oe(r)}function Oe(t){if(!at){ht&&(ht=clearTimeout(ht));var e=t-tt;e>24?(t<1/0&&(ht=setTimeout(Mn,t-St.now()-he)),ft&&(ft=clearInterval(ft))):(ft||(re=St.now(),ft=setInterval(pa,Rr)),at=1,Nr(Mn))}}function zn(t,e,n){var r=new ie;return e=e==null?0:+e,r.restart(i=>{r.stop(),t(i+e)},e,n),r}var ma=$r("start","end","cancel","interrupt"),ya=[],Or=0,Fn=1,Me=2,Pt=3,Dn=4,ze=5,Wt=6;function de(t,e,n,r,i,s){var o=t.__transition;if(!o)t.__transition={};else if(n in o)return;_a(t,n,{name:e,index:r,group:i,on:ma,tween:ya,time:s.time,delay:s.delay,duration:s.duration,ease:s.ease,timer:null,state:Or})}function Ke(t,e){var n=I(t,e);if(n.state>Or)throw new Error("too late; already scheduled");return n}function W(t,e){var n=I(t,e);if(n.state>Pt)throw new Error("too late; already running");return n}function I(t,e){var n=t.__transition;if(!n||!(n=n[e]))throw new Error("transition not found");return n}function _a(t,e,n){var r=t.__transition,i;r[e]=n,n.timer=kr(s,0,n.time);function s(u){n.state=Fn,n.timer.restart(o,n.delay,n.time),n.delay<=u&&o(u-n.delay)}function o(u){var f,l,h,p;if(n.state!==Fn)return c();for(f in r)if(p=r[f],p.name===n.name){if(p.state===Pt)return zn(o);p.state===Dn?(p.state=Wt,p.timer.stop(),p.on.call("interrupt",t,t.__data__,p.index,p.group),delete r[f]):+f<e&&(p.state=Wt,p.timer.stop(),p.on.call("cancel",t,t.__data__,p.index,p.group),delete r[f])}if(zn(function(){n.state===Pt&&(n.state=Dn,n.timer.restart(a,n.delay,n.time),a(u))}),n.state=Me,n.on.call("start",t,t.__data__,n.index,n.group),n.state===Me){for(n.state=Pt,i=new Array(h=n.tween.length),f=0,l=-1;f<h;++f)(p=n.tween[f].value.call(t,t.__data__,n.index,n.group))&&(i[++l]=p);i.length=l+1}}function a(u){for(var f=u<n.duration?n.ease.call(null,u/n.duration):(n.timer.restart(c),n.state=ze,1),l=-1,h=i.length;++l<h;)i[l].call(t,f);n.state===ze&&(n.on.call("end",t,t.__data__,n.index,n.group),c())}function c(){n.state=Wt,n.timer.stop(),delete r[e];for(var u in r)return;delete t.__transition}}function Je(t,e){var n=t.__transition,r,i,s=!0,o;if(n){e=e==null?null:e+"";for(o in n){if((r=n[o]).name!==e){s=!1;continue}i=r.state>Me&&r.state<ze,r.state=Wt,r.timer.stop(),r.on.call(i?"interrupt":"cancel",t,t.__data__,r.index,r.group),delete n[o]}s&&delete t.__transition}}function xa(t){return this.each(function(){Je(this,t)})}const Qe=t=>()=>t;function wa(t,e){return function(n){return t+n*e}}function ba(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 Aa(t){return(t=+t)==1?Mr:function(e,n){return n-e?ba(e,n,t):Qe(isNaN(e)?n:e)}}function Mr(t,e){var n=e-t;return n?wa(t,n):Qe(isNaN(t)?e:t)}const se=(function t(e){var n=Aa(e);function r(i,s){var o=n((i=Re(i)).r,(s=Re(s)).r),a=n(i.g,s.g),c=n(i.b,s.b),u=Mr(i.opacity,s.opacity);return function(f){return i.r=o(f),i.g=a(f),i.b=c(f),i.opacity=u(f),i+""}}return r.gamma=t,r})(1);function Ta(t,e){e||(e=[]);var n=t?Math.min(e.length,t.length):0,r=e.slice(),i;return function(s){for(i=0;i<n;++i)r[i]=t[i]*(1-s)+e[i]*s;return r}}function Sa(t){return ArrayBuffer.isView(t)&&!(t instanceof DataView)}function Ea(t,e){var n=e?e.length:0,r=t?Math.min(n,t.length):0,i=new Array(r),s=new Array(n),o;for(o=0;o<r;++o)i[o]=je(t[o],e[o]);for(;o<n;++o)s[o]=e[o];return function(a){for(o=0;o<r;++o)s[o]=i[o](a);return s}}function Ca(t,e){var n=new Date;return t=+t,e=+e,function(r){return n.setTime(t*(1-r)+e*r),n}}function F(t,e){return t=+t,e=+e,function(n){return t*(1-n)+e*n}}function $a(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]=je(t[i],e[i]):r[i]=e[i];return function(s){for(i in n)r[i]=n[i](s);return r}}var Fe=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,_e=new RegExp(Fe.source,"g");function Ra(t){return function(){return t}}function Na(t){return function(e){return t(e)+""}}function zr(t,e){var n=Fe.lastIndex=_e.lastIndex=0,r,i,s,o=-1,a=[],c=[];for(t=t+"",e=e+"";(r=Fe.exec(t))&&(i=_e.exec(e));)(s=i.index)>n&&(s=e.slice(n,s),a[o]?a[o]+=s:a[++o]=s),(r=r[0])===(i=i[0])?a[o]?a[o]+=i:a[++o]=i:(a[++o]=null,c.push({i:o,x:F(r,i)})),n=_e.lastIndex;return n<e.length&&(s=e.slice(n),a[o]?a[o]+=s:a[++o]=s),a.length<2?c[0]?Na(c[0].x):Ra(e):(e=c.length,function(u){for(var f=0,l;f<e;++f)a[(l=c[f]).i]=l.x(u);return a.join("")})}function je(t,e){var n=typeof e,r;return e==null||n==="boolean"?Qe(e):(n==="number"?F:n==="string"?(r=j(e))?(e=r,se):zr:e instanceof j?se:e instanceof Date?Ca:Sa(e)?Ta:Array.isArray(e)?Ea:typeof e.valueOf!="function"&&typeof e.toString!="function"||isNaN(e)?$a:F)(t,e)}var In=180/Math.PI,De={translateX:0,translateY:0,rotate:0,skewX:0,scaleX:1,scaleY:1};function Fr(t,e,n,r,i,s){var o,a,c;return(o=Math.sqrt(t*t+e*e))&&(t/=o,e/=o),(c=t*n+e*r)&&(n-=t*c,r-=e*c),(a=Math.sqrt(n*n+r*r))&&(n/=a,r/=a,c/=a),t*r<e*n&&(t=-t,e=-e,c=-c,o=-o),{translateX:i,translateY:s,rotate:Math.atan2(e,t)*In,skewX:Math.atan(c)*In,scaleX:o,scaleY:a}}var Dt;function ka(t){const e=new(typeof DOMMatrix=="function"?DOMMatrix:WebKitCSSMatrix)(t+"");return e.isIdentity?De:Fr(e.a,e.b,e.c,e.d,e.e,e.f)}function Oa(t){return t==null||(Dt||(Dt=document.createElementNS("http://www.w3.org/2000/svg","g")),Dt.setAttribute("transform",t),!(t=Dt.transform.baseVal.consolidate()))?De:(t=t.matrix,Fr(t.a,t.b,t.c,t.d,t.e,t.f))}function Dr(t,e,n,r){function i(u){return u.length?u.pop()+" ":""}function s(u,f,l,h,p,g){if(u!==l||f!==h){var d=p.push("translate(",null,e,null,n);g.push({i:d-4,x:F(u,l)},{i:d-2,x:F(f,h)})}else(l||h)&&p.push("translate("+l+e+h+n)}function o(u,f,l,h){u!==f?(u-f>180?f+=360:f-u>180&&(u+=360),h.push({i:l.push(i(l)+"rotate(",null,r)-2,x:F(u,f)})):f&&l.push(i(l)+"rotate("+f+r)}function a(u,f,l,h){u!==f?h.push({i:l.push(i(l)+"skewX(",null,r)-2,x:F(u,f)}):f&&l.push(i(l)+"skewX("+f+r)}function c(u,f,l,h,p,g){if(u!==l||f!==h){var d=p.push(i(p)+"scale(",null,",",null,")");g.push({i:d-4,x:F(u,l)},{i:d-2,x:F(f,h)})}else(l!==1||h!==1)&&p.push(i(p)+"scale("+l+","+h+")")}return function(u,f){var l=[],h=[];return u=t(u),f=t(f),s(u.translateX,u.translateY,f.translateX,f.translateY,l,h),o(u.rotate,f.rotate,l,h),a(u.skewX,f.skewX,l,h),c(u.scaleX,u.scaleY,f.scaleX,f.scaleY,l,h),u=f=null,function(p){for(var g=-1,d=h.length,y;++g<d;)l[(y=h[g]).i]=y.x(p);return l.join("")}}}var Ma=Dr(ka,"px, ","px)","deg)"),za=Dr(Oa,", ",")",")");function Fa(t,e){var n,r;return function(){var i=W(this,t),s=i.tween;if(s!==n){r=n=s;for(var o=0,a=r.length;o<a;++o)if(r[o].name===e){r=r.slice(),r.splice(o,1);break}}i.tween=r}}function Da(t,e,n){var r,i;if(typeof n!="function")throw new Error;return function(){var s=W(this,t),o=s.tween;if(o!==r){i=(r=o).slice();for(var a={name:e,value:n},c=0,u=i.length;c<u;++c)if(i[c].name===e){i[c]=a;break}c===u&&i.push(a)}s.tween=i}}function Ia(t,e){var n=this._id;if(t+="",arguments.length<2){for(var r=I(this.node(),n).tween,i=0,s=r.length,o;i<s;++i)if((o=r[i]).name===t)return o.value;return null}return this.each((e==null?Fa:Da)(n,t,e))}function tn(t,e,n){var r=t._id;return t.each(function(){var i=W(this,r);(i.value||(i.value={}))[e]=n.apply(this,arguments)}),function(i){return I(i,r).value[e]}}function Ir(t,e){var n;return(typeof e=="number"?F:e instanceof j?se:(n=j(e))?(e=n,se):zr)(t,e)}function La(t){return function(){this.removeAttribute(t)}}function Ba(t){return function(){this.removeAttributeNS(t.space,t.local)}}function Ha(t,e,n){var r,i=n+"",s;return function(){var o=this.getAttribute(t);return o===i?null:o===r?s:s=e(r=o,n)}}function Va(t,e,n){var r,i=n+"",s;return function(){var o=this.getAttributeNS(t.space,t.local);return o===i?null:o===r?s:s=e(r=o,n)}}function Pa(t,e,n){var r,i,s;return function(){var o,a=n(this),c;return a==null?void this.removeAttribute(t):(o=this.getAttribute(t),c=a+"",o===c?null:o===r&&c===i?s:(i=c,s=e(r=o,a)))}}function Wa(t,e,n){var r,i,s;return function(){var o,a=n(this),c;return a==null?void this.removeAttributeNS(t.space,t.local):(o=this.getAttributeNS(t.space,t.local),c=a+"",o===c?null:o===r&&c===i?s:(i=c,s=e(r=o,a)))}}function qa(t,e){var n=oe(t),r=n==="transform"?za:Ir;return this.attrTween(t,typeof e=="function"?(n.local?Wa:Pa)(n,r,tn(this,"attr."+t,e)):e==null?(n.local?Ba:La)(n):(n.local?Va:Ha)(n,r,e))}function Ua(t,e){return function(n){this.setAttribute(t,e.call(this,n))}}function Ga(t,e){return function(n){this.setAttributeNS(t.space,t.local,e.call(this,n))}}function Xa(t,e){var n,r;function i(){var s=e.apply(this,arguments);return s!==r&&(n=(r=s)&&Ga(t,s)),n}return i._value=e,i}function Ya(t,e){var n,r;function i(){var s=e.apply(this,arguments);return s!==r&&(n=(r=s)&&Ua(t,s)),n}return i._value=e,i}function Za(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=oe(t);return this.tween(n,(r.local?Xa:Ya)(r,e))}function Ka(t,e){return function(){Ke(this,t).delay=+e.apply(this,arguments)}}function Ja(t,e){return e=+e,function(){Ke(this,t).delay=e}}function Qa(t){var e=this._id;return arguments.length?this.each((typeof t=="function"?Ka:Ja)(e,t)):I(this.node(),e).delay}function ja(t,e){return function(){W(this,t).duration=+e.apply(this,arguments)}}function tc(t,e){return e=+e,function(){W(this,t).duration=e}}function ec(t){var e=this._id;return arguments.length?this.each((typeof t=="function"?ja:tc)(e,t)):I(this.node(),e).duration}function nc(t,e){if(typeof e!="function")throw new Error;return function(){W(this,t).ease=e}}function rc(t){var e=this._id;return arguments.length?this.each(nc(e,t)):I(this.node(),e).ease}function ic(t,e){return function(){var n=e.apply(this,arguments);if(typeof n!="function")throw new Error;W(this,t).ease=n}}function sc(t){if(typeof t!="function")throw new Error;return this.each(ic(this._id,t))}function oc(t){typeof t!="function"&&(t=Vn(t));for(var e=this._groups,n=e.length,r=new Array(n),i=0;i<n;++i)for(var s=e[i],o=s.length,a=r[i]=[],c,u=0;u<o;++u)(c=s[u])&&t.call(c,c.__data__,u,s)&&a.push(c);return new U(r,this._parents,this._name,this._id)}function ac(t){if(t._id!==this._id)throw new Error;for(var e=this._groups,n=t._groups,r=e.length,i=n.length,s=Math.min(r,i),o=new Array(r),a=0;a<s;++a)for(var c=e[a],u=n[a],f=c.length,l=o[a]=new Array(f),h,p=0;p<f;++p)(h=c[p]||u[p])&&(l[p]=h);for(;a<r;++a)o[a]=e[a];return new U(o,this._parents,this._name,this._id)}function cc(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 uc(t,e,n){var r,i,s=cc(e)?Ke:W;return function(){var o=s(this,t),a=o.on;a!==r&&(i=(r=a).copy()).on(e,n),o.on=i}}function fc(t,e){var n=this._id;return arguments.length<2?I(this.node(),n).on.on(t):this.each(uc(n,t,e))}function lc(t){return function(){var e=this.parentNode;for(var n in this.__transition)if(+n!==t)return;e&&e.removeChild(this)}}function hc(){return this.on("end.remove",lc(this._id))}function dc(t){var e=this._name,n=this._id;typeof t!="function"&&(t=Ie(t));for(var r=this._groups,i=r.length,s=new Array(i),o=0;o<i;++o)for(var a=r[o],c=a.length,u=s[o]=new Array(c),f,l,h=0;h<c;++h)(f=a[h])&&(l=t.call(f,f.__data__,h,a))&&("__data__"in f&&(l.__data__=f.__data__),u[h]=l,de(u[h],e,n,h,u,I(f,n)));return new U(s,this._parents,e,n)}function gc(t){var e=this._name,n=this._id;typeof t!="function"&&(t=Hn(t));for(var r=this._groups,i=r.length,s=[],o=[],a=0;a<i;++a)for(var c=r[a],u=c.length,f,l=0;l<u;++l)if(f=c[l]){for(var h=t.call(f,f.__data__,l,c),p,g=I(f,n),d=0,y=h.length;d<y;++d)(p=h[d])&&de(p,e,n,d,h,g);s.push(h),o.push(f)}return new U(s,o,e,n)}var pc=Et.prototype.constructor;function vc(){return new pc(this._groups,this._parents)}function mc(t,e){var n,r,i;return function(){var s=it(this,t),o=(this.style.removeProperty(t),it(this,t));return s===o?null:s===n&&o===r?i:i=e(n=s,r=o)}}function Lr(t){return function(){this.style.removeProperty(t)}}function yc(t,e,n){var r,i=n+"",s;return function(){var o=it(this,t);return o===i?null:o===r?s:s=e(r=o,n)}}function _c(t,e,n){var r,i,s;return function(){var o=it(this,t),a=n(this),c=a+"";return a==null&&(c=a=(this.style.removeProperty(t),it(this,t))),o===c?null:o===r&&c===i?s:(i=c,s=e(r=o,a))}}function xc(t,e){var n,r,i,s="style."+e,o="end."+s,a;return function(){var c=W(this,t),u=c.on,f=c.value[s]==null?a||(a=Lr(e)):void 0;(u!==n||i!==f)&&(r=(n=u).copy()).on(o,i=f),c.on=r}}function wc(t,e,n){var r=(t+="")=="transform"?Ma:Ir;return e==null?this.styleTween(t,mc(t,r)).on("end.style."+t,Lr(t)):typeof e=="function"?this.styleTween(t,_c(t,r,tn(this,"style."+t,e))).each(xc(this._id,t)):this.styleTween(t,yc(t,r,e),n).on("end.style."+t,null)}function bc(t,e,n){return function(r){this.style.setProperty(t,e.call(this,r),n)}}function Ac(t,e,n){var r,i;function s(){var o=e.apply(this,arguments);return o!==i&&(r=(i=o)&&bc(t,o,n)),r}return s._value=e,s}function Tc(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,Ac(t,e,n??""))}function Sc(t){return function(){this.textContent=t}}function Ec(t){return function(){var e=t(this);this.textContent=e??""}}function Cc(t){return this.tween("text",typeof t=="function"?Ec(tn(this,"text",t)):Sc(t==null?"":t+""))}function $c(t){return function(e){this.textContent=t.call(this,e)}}function Rc(t){var e,n;function r(){var i=t.apply(this,arguments);return i!==n&&(e=(n=i)&&$c(i)),e}return r._value=t,r}function Nc(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,Rc(t))}function kc(){for(var t=this._name,e=this._id,n=Br(),r=this._groups,i=r.length,s=0;s<i;++s)for(var o=r[s],a=o.length,c,u=0;u<a;++u)if(c=o[u]){var f=I(c,e);de(c,t,n,u,o,{time:f.time+f.delay+f.duration,delay:0,duration:f.duration,ease:f.ease})}return new U(r,this._parents,t,n)}function Oc(){var t,e,n=this,r=n._id,i=n.size();return new Promise(function(s,o){var a={value:o},c={value:function(){--i===0&&s()}};n.each(function(){var u=W(this,r),f=u.on;f!==t&&(e=(t=f).copy(),e._.cancel.push(a),e._.interrupt.push(a),e._.end.push(c)),u.on=e}),i===0&&s()})}var Mc=0;function U(t,e,n,r){this._groups=t,this._parents=e,this._name=n,this._id=r}function Br(){return++Mc}var q=Et.prototype;U.prototype={constructor:U,select:dc,selectAll:gc,selectChild:q.selectChild,selectChildren:q.selectChildren,filter:oc,merge:ac,selection:vc,transition:kc,call:q.call,nodes:q.nodes,node:q.node,size:q.size,empty:q.empty,each:q.each,on:fc,attr:qa,attrTween:Za,style:wc,styleTween:Tc,text:Cc,textTween:Nc,remove:hc,tween:Ia,delay:Qa,duration:ec,ease:rc,easeVarying:sc,end:Oc,[Symbol.iterator]:q[Symbol.iterator]};function zc(t){return((t*=2)<=1?t*t*t:(t-=2)*t*t+2)/2}var Fc={time:null,delay:0,duration:250,ease:zc};function Dc(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 Ic(t){var e,n;t instanceof U?(e=t._id,t=t._name):(e=Br(),(n=Fc).time=Ze(),t=t==null?null:t+"");for(var r=this._groups,i=r.length,s=0;s<i;++s)for(var o=r[s],a=o.length,c,u=0;u<a;++u)(c=o[u])&&de(c,t,e,u,o,n||Dc(c,e));return new U(r,this._parents,t,e)}Et.prototype.interrupt=xa;Et.prototype.transition=Ic;function Lc(t,e,n){if(t.nodes().forEach(r=>Je(r)),e){const r=t.transition().duration(e);return n&&r.ease(n),r}else return t}class en{constructor(e){this.data=e}get data(){return this._data}set data(e){this._data=e}}const Hr={duration:600,events:{},attributes:{}};class Bc{constructor(e=gt.SVG){var n,r;this.type=gt.SVG,this.datamodel=new en,this.sizing=exports.Sizing.Fit,this.events={},this._defaultConfig=Hr,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=Ae(this._setUpComponentEvents,500),this._setCustomAttributesThrottled=Ae(this._setCustomAttributes,500),e===gt.SVG?this.element=document.createElementNS("http://www.w3.org/2000/svg","g"):this.element=document.createElement("div"),this.uid=br(),this.g=Yt(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=st(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")}_mapEventDatum(e){return e}_bindEvents(e=this.events,n=""){Object.keys(e).forEach(r=>{Object.keys(e[r]).forEach(i=>{const s=this.g.selectAll(`.${r}`);s.on(i+n,(o,a)=>{const c=s.nodes(),u=c.indexOf(o.currentTarget),f=e[r][i],l=this._mapEventDatum(a);return f?.(l,o,u,c)})})})}destroy(){var e;(e=this.g)===null||e===void 0||e.remove(),this.element=void 0}isDestroyed(){return!this.element}}class Hc extends en{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)}}function Vc(t,e,n,r){return Array.isArray(e)&&isFinite(n)?e[n%e.length]:er(t,e,n)||(ae(n)?`var(${G(n)})`:null)}exports.TrimMode=void 0;(function(t){t.Start="start",t.Middle="middle",t.End="end"})(exports.TrimMode||(exports.TrimMode={}));exports.VerticalAlign=void 0;(function(t){t.Top="top",t.Middle="middle",t.Bottom="bottom"})(exports.VerticalAlign||(exports.VerticalAlign={}));exports.FitMode=void 0;(function(t){t.Wrap="wrap",t.Trim="trim"})(exports.FitMode||(exports.FitMode={}));exports.TextAlign=void 0;(function(t){t.Left="left",t.Center="center",t.Right="right"})(exports.TextAlign||(exports.TextAlign={}));function Pc(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}var qt={exports:{}},Wc=qt.exports,Ln;function qc(){return Ln||(Ln=1,(function(t){(function(e){if(typeof n!="function"){var n=function(g){return g};n.nonNative=!0}const r=n("plaintext"),i=n("html"),s=n("comment"),o=/<(\w*)>/g,a=/<\/?([^\s\/>]+)/;function c(g,d,y){g=g||"",d=d||[],y=y||"";let m=f(d,y);return l(g,m)}function u(g,d){g=g||[],d=d||"";let y=f(g,d);return function(v){return l(v||"",y)}}c.init_streaming_mode=u;function f(g,d){return g=h(g),{allowable_tags:g,tag_replacement:d,state:r,tag_buffer:"",depth:0,in_quote_char:""}}function l(g,d){if(typeof g!="string")throw new TypeError("'html' parameter must be a string");let y=d.allowable_tags,m=d.tag_replacement,v=d.state,_=d.tag_buffer,S=d.depth,x=d.in_quote_char,b="";for(let w=0,L=g.length;w<L;w++){let C=g[w];if(v===r)C==="<"?(v=i,_+=C):b+=C;else if(v===i)switch(C){case"<":if(x)break;S++;break;case">":if(x)break;if(S){S--;break}x="",v=r,_+=">",y.has(p(_))?b+=_:b+=m,_="";break;case'"':case"'":C===x?x="":x=x||C,_+=C;break;case"-":_==="<!-"&&(v=s),_+=C;break;case" ":case`
|
|
53
|
-
`:if(_==="<"){v=r,b+="< ",_="";break}_+=C;break;default:_+=C;break}else v===s&&(C===">"?(_.slice(-2)=="--"&&(v=r),_=""):_+=C)}return d.state=v,d.tag_buffer=_,d.depth=S,d.in_quote_char=x,b}function h(g){let d=new Set;if(typeof g=="string"){let y;for(;y=o.exec(g);)d.add(y[1])}else!n.nonNative&&typeof g[n.iterator]=="function"?d=new Set(g):typeof g.forEach=="function"&&g.forEach(d.add,d);return d}function p(g){let d=a.exec(g);return d?d[1].toLowerCase():null}t.exports?t.exports=c:e.striptags=c})(Wc)})(qt)),qt.exports}var Uc=qc();const Gc=Pc(Uc);function Xc(t){switch(t){case exports.TextAlign.Center:return"middle";case exports.TextAlign.Right:return"end";case exports.TextAlign.Left:default:return"start"}}const Yc=t=>{switch(t){case exports.TextAlign.Left:return"start";case exports.TextAlign.Right:return"end";case exports.TextAlign.Center:return"middle";default:return null}};function Zc(t){return t.replace(/-([a-z])/g,(e,n)=>n.toUpperCase())}function Kc(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 Jc(t){return t.replace(/['"]/g,"'").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 Qc(t,e=15){return t?t.length>e?`…${t.substr(t.length-e,e)}`:t:""}function jc(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 tu(t,e=15){return t?t.length>e?`${t.substr(0,e)}…`:t:""}function eu(t,e=15,n=exports.TrimMode.Middle){if(!t)return"";let r=tu(t,e);return n===exports.TrimMode.Start?r=Qc(t,e):n===exports.TrimMode.Middle&&(r=jc(t,e)),r}function Vr(t,e=[" "]){let n=[t];for(let r=0;r<e.length;r++){const i=e[r];n.forEach((s,o)=>{const a=s.split(i),c=a.map((u,f)=>`${u}${f===a.length-1?"":i}`);n[o]=c}),n=tr(n)}return n}function nu(t,e,n=[" ","-",".",","]){const r=t.text();if(!r)return;const i=ce(n)?n:[n],s=Vr(r,i),o=parseFloat(t.attr("x"))||0;t.text("");let a=t.append("tspan").attr("x",o),c=`${s[0]}`;a.text(c),s.forEach((u,f)=>{if(f===0)return;const l=`${c}${u}`;a.text(l),a.node().getComputedTextLength()>e?(a.text(c.trim()),a=t.append("tspan").attr("x",o).attr("dy","1.2em").text(u),c=u):c+=u})}function ru(t,e,n,r,i,s){var o;e===void 0&&(e=50),n===void 0&&(n=exports.TrimMode.Middle),i===void 0&&(i=+((o=window.getComputedStyle(t.node()))===null||o===void 0?void 0:o.fontSize)||0),s===void 0&&(s=Ye());const a=t.text()||"",c=a.length,u=i*c*s,l=Math.ceil(c*e/(1.1*u));return l<c?(t.text(eu(a,l,n)),!0):!1}function Ut(t,e,n=Ye()){return t.length*e*n||0}function Gt(t,e,n){const r="http://www.w3.org/2000/svg",i=document.createElementNS(r,"svg"),s=document.createElementNS(r,"text");s.textContent=t,s.setAttribute("font-size",`${n}`),s.setAttribute("font-family",e),i.appendChild(s),document.body.appendChild(i);const o=s.getComputedTextLength();return document.body.removeChild(i),o}function iu(t,e=void 0,n=!0,r=Er,i=!1){var s,o,a;const c=`${t.text}`;if(!c)return[];const u=(s=t.fontSize)!==null&&s!==void 0?s:mt.fontSize,f=(o=t.fontFamily)!==null&&o!==void 0?o:mt.fontFamily,l=(a=t.fontWidthToHeightRatio)!==null&&a!==void 0?a:mt.fontWidthToHeightRatio,h=Array.isArray(r)?r:[r];return c.split(`
|
|
54
|
-
`).map(g=>{const d=[];if(!e)return[g];const y=Vr(g,h);let m="";for(let v=0;v<y.length;v+=1){(n?Ut(m+y[v],u,l):Gt(m+y[v],f,u))<e||v===0?m+=y[v]:(d.push(m.trim()),m=y[v]);const S=2;if(i)for(;m.trim().length>S&&(n?Ut(m,u,l):Gt(m,f,u))>e;){let b=m.trim().length-S;for(;b>0;){const w=`${m.substring(0,b)}${Cr}`;if((n?Ut(w,u,l):Gt(w,f,u))<=e||b===1){d.push(w.trim()),m=m.substring(b);break}b--}}}return m&&d.push(m.trim()),d}).flat()}function su(t,e=void 0,n=void 0,r=!0,i=Er,s=!1){const o=Array.isArray(t)?t.map(l=>st(mt,l)):[st(mt,t)],a=o.map(l=>iu(l,e,r,i,s)),c=o[0];let u=-c.fontSize*(c.lineHeight-1);const f=[];return o.forEach((l,h)=>{var p;let g=a[h];const d=h>0?f[h-1]:void 0,y=d?d.marginBottom:0,m=l.marginTop,v=Math.max(y,m);u+=v;const _=l.fontSize*l.lineHeight;let S=0;for(let x=0;x<g.length;x+=1){let b=g[x];u+=_;const w=`${b} …`,L=r?Ut(w,l.fontSize,l.fontWidthToHeightRatio):Gt(w,l.fontFamily,l.fontSize);if(S=Math.max(L,S),n&&u+_>n&&x!==g.length-1){b.charAt(b.length-1)===Cr&&(b=b.substr(0,g[x].length-1)),L<e?g[x]=w:g[x]=`${g[x].substr(0,g[x].length-2)}…`,g=g.slice(0,x+1);break}}f.push(Object.assign(Object.assign({},l),{_lines:g,_estimatedHeight:u-(d?._estimatedHeight||0),_maxWidth:Math.max(S,(p=d?._maxWidth)!==null&&p!==void 0?p:0)}))}),f}function ou(t,e=0,n,r){return t.map((i,s)=>{const o=s>0?t[s-1]:void 0,a=o?o.marginBottom/o.fontSize:0,c=i.marginTop/i.fontSize,u=Math.max(a,c),f={fontSize:i.fontSize,fontFamily:i.fontFamily,fontWeight:i.fontWeight,fill:i.color,y:s===0&&n};return`<tspan xmlns="http://www.w3.org/2000/svg" ${Object.entries(f).filter(([h,p])=>p).map(([h,p])=>`${Kc(h)}="${Jc(p.toString())}"`).join(" ")}>${i._lines.map((h,p)=>{let g;return s===0&&p===0?g=u:p===0?g=u+i.lineHeight:g=i.lineHeight,`<tspan x="${e}" dy="${g}em" dominant-baseline="${r??"auto"}">${h.length?h:" "}</tspan>`}).join("")}</tspan>`})}function au(t){return Es(t,e=>e._estimatedHeight)}const cu=["text","tspan","textPath","altGlyph","altGlyphDef","altGlyphItem","glyphRef","textRef","textArea"];function uu(t,e,n,r){var i,s;const o=su(e,n.width,void 0,n.fastMode,n.separator,n.wordBreak),a=(i=n.x)!==null&&i!==void 0?i:+t.getAttribute("x"),c=(s=n.y)!==null&&s!==void 0?s:+t.getAttribute("y"),u=a??0;let f=c??0;if(n.textAlign&&t.setAttribute("text-anchor",Xc(n.textAlign)),n.verticalAlign&&n.verticalAlign!==exports.VerticalAlign.Top){const h=au(o),p=n.verticalAlign===exports.VerticalAlign.Middle?-h/2:n.verticalAlign===exports.VerticalAlign.Bottom?-h:0;f+=p}n.textRotationAngle?t.setAttribute("transform",`rotate(${n.textRotationAngle===0||n.textRotationAngle?n.textRotationAngle:0} ${u} ${f})`):t.removeAttribute("transform");const l=new DOMParser;t.textContent="",o.forEach(h=>{const p=ou([h],u,f,r).join(""),g=Gc(p,cu),d=l.parseFromString(g,"image/svg+xml").firstChild;t.appendChild(d)})}function fu(t,e){return yt(t,e)}function lu(t){const e=Rt.getCurrentInstance(),n=e.attrs;return Rt.computed(()=>{const r={},i=e?.vnode.props??{};return Object.keys(i).forEach(s=>{r[Rt.camelize(s)]=t[Rt.camelize(s)]}),{...r,...n}})}const hu=Symbol("componentAccessorKey"),du=Symbol("tooltipAccessorKey"),gu=Symbol("crosshairAccessorKey"),pu=Symbol("axisAccessorKey"),vu=Symbol("annotationsAccessorKey");(function(){try{if(typeof document<"u"){var t=document.createElement("style");t.appendChild(document.createTextNode("[data-vis-bullet-legend],[data-vis-flow-legend]{display:block}[data-vis-leaflet-flow-map],[data-vis-leaflet-map]{display:block;position:relative}[data-vis-rolling-pin-legend]{display:block}.unovis-single-container,.unovis-xy-container{display:block;position:relative;width:100%}")),document.head.appendChild(t)}}catch(e){console.error("vite-plugin-css-injected-by-js",e)}})();exports.ComponentCore=Bc;exports.ComponentDefaultConfig=Hr;exports.ContainerCore=xt;exports.ContainerDefaultConfig=fr;exports.CoreDataModel=en;exports.SeriesDataModel=Hc;exports.ascending=pt;exports.bisectRight=jn;exports.bisector=Be;exports.c=gu;exports.clamp=Te;exports.clean=Ns;exports.css=qo;exports.e=pu;exports.f=fu;exports.filterDataByRange=Fs;exports.flatten=tr;exports.getColor=Vc;exports.getExtent=zs;exports.getFontWidthToHeightRatio=Ye;exports.getMax=rr;exports.getMin=nr;exports.getNearest=Se;exports.getNumber=z;exports.getStackedData=Ms;exports.getStackedExtent=ks;exports.getStackedValues=Os;exports.getString=er;exports.getValue=Ve;exports.guid=br;exports.injectGlobal=wr;exports.interpolate=je;exports.interpolateNumber=F;exports.interrupt=Je;exports.isArray=ce;exports.isEmpty=Rs;exports.isEqual=yt;exports.isFunction=He;exports.isNumber=ae;exports.kebabCaseToCamel=Zc;exports.m=lu;exports.max=we;exports.merge=st;exports.min=be;exports.number=Jn;exports.o=hu;exports.rectIntersect=Go;exports.renderTextToSvgTextElement=uu;exports.s=du;exports.select=Yt;exports.smartTransition=Lc;exports.t=vu;exports.textAlignToAnchor=Yc;exports.throttle=Ae;exports.trimSVGText=ru;exports.wrapSVGText=nu;
|
package/dist/index-BiT55eU0.js
DELETED
|
@@ -1,58 +0,0 @@
|
|
|
1
|
-
"use strict";const A=require("vue"),v=require("./index-B5aBwdxY.js"),n=require("./array-CbATeQbk.js"),st=Object.assign(Object.assign({},v.ContainerDefaultConfig),{tooltip:void 0,annotations:void 0});class lt extends v.ContainerCore{constructor(a,e,i){var s;super(a),this._defaultConfig=st,this.config=this._defaultConfig,e&&(this.updateContainer(e,!0),this.component=e.component),i&&this.setData(i,!0),!((s=this.component)===null||s===void 0)&&s.datamodel.data&&this.render()}setData(a,e){var i;const{config:s}=this;this.component&&this.component.setData(a),e||this.render(),(i=s.tooltip)===null||i===void 0||i.hide()}updateContainer(a,e){super.updateContainer(a),this._removeAllChildren(),this.component=a.component,a.sizing&&(this.component.sizing=a.sizing),this.element.appendChild(this.component.element);const i=a.tooltip;i&&(i.hasContainer()||i.setContainer(this._container),i.setComponents([this.component]));const s=a.annotations;s&&this.element.appendChild(s.element),this.element.appendChild(this._svgDefs.node()),this.element.appendChild(this._svgDefsExternal.node()),e||this.render()}updateComponent(a,e){this.component.setConfig(a),e||this.render()}update(a,e,i){a&&this.updateContainer(a,!0),e&&this.updateComponent(e,!0),i&&this.setData(i,!0),this.render()}getFitWidthScale(){const{config:a,component:e}=this,i=e;if(!i.getWidth)return 1;const s=i.getWidth()+a.margin.left+a.margin.right;return this.width/s}_preRender(){var a,e;super._preRender(),this.component.setSize(this.width,this.height,this.containerWidth,this.containerHeight),this.component.setContainerMargin(this.config.margin),(a=this.config.annotations)===null||a===void 0||a.setSize(this.width,this.height,this.containerWidth,this.containerHeight),(e=this.config.annotations)===null||e===void 0||e.setContainerMargin(this.config.margin)}_render(a){var e,i;const{config:s,component:g}=this;super._render(a),g.g.attr("transform",`translate(${s.margin.left},${s.margin.top})`),g.render(a),(e=s.annotations)===null||e===void 0||e.render(a),s.tooltip&&s.tooltip.update(),(i=s.onRenderComplete)===null||i===void 0||i.call(s,this.svg.node(),s.margin,this.containerWidth,this.containerHeight,this.width,this.height)}render(a=this.config.duration){const{config:e,component:i}=this;if(e.sizing===v.Sizing.Extend||e.sizing===v.Sizing.FitWidth){const s=e.sizing===v.Sizing.FitWidth,g=i,l=g.getWidth()+e.margin.left+e.margin.right,t=g.getHeight()+e.margin.top+e.margin.bottom,p=s?this.getFitWidthScale():1,r=this.svg.attr("width"),o=this.svg.attr("height"),R=l*p,h=t*p,m=r||o;v.smartTransition(this.svg,m?a:0).attr("width",R).attr("height",h).attr("viewBox",`0 0 ${l} ${s?h:t}`).attr("preserveAspectRatio","xMinYMin")}else this.svg.attr("width",this.config.width||this.containerWidth).attr("height",this.config.height||this.containerHeight);this._resizeObserver||this._setUpResizeObserver(),cancelAnimationFrame(this._renderAnimationFrameId),this._renderAnimationFrameId=requestAnimationFrame(()=>{this._preRender(),this._render(a)})}_onResize(){var a;const{config:e}=this;super._onResize(),(a=e.tooltip)===null||a===void 0||a.hide()}destroy(){var a,e;const{component:i,config:s}=this;super.destroy(),i?.destroy(),(a=s.tooltip)===null||a===void 0||a.destroy(),(e=s.annotations)===null||e===void 0||e.destroy()}}function rt(c){return c.innerRadius}function ut(c){return c.outerRadius}function ct(c){return c.startAngle}function dt(c){return c.endAngle}function gt(c){return c&&c.padAngle}function ht(c,a,e,i,s,g,l,t){var p=e-c,r=i-a,o=l-s,R=t-g,h=R*p-o*r;if(!(h*h<n.epsilon))return h=(o*(a-g)-R*(c-s))/h,[c+h*p,a+h*r]}function V(c,a,e,i,s,g,l){var t=c-e,p=a-i,r=(l?g:-g)/n.sqrt(t*t+p*p),o=r*p,R=-r*t,h=c+o,m=a+R,x=e+o,_=i+R,d=(h+x)/2,y=(m+_)/2,S=x-h,L=_-m,w=S*S+L*L,C=s-g,k=h*_-x*m,O=(L<0?-1:1)*n.sqrt(n.max(0,C*C*w-k*k)),z=(k*L-S*O)/w,F=(-k*S-L*O)/w,N=(k*L+S*O)/w,T=(-k*S+L*O)/w,E=z-d,u=F-y,b=N-d,H=T-y;return E*E+u*u>b*b+H*H&&(z=N,F=T),{cx:z,cy:F,x01:-o,y01:-R,x11:z*(s/C-1),y11:F*(s/C-1)}}function ft(){var c=rt,a=ut,e=n.constant(0),i=null,s=ct,g=dt,l=gt,t=null,p=n.withPath(r);function r(){var o,R,h=+c.apply(this,arguments),m=+a.apply(this,arguments),x=s.apply(this,arguments)-n.halfPi,_=g.apply(this,arguments)-n.halfPi,d=n.abs(_-x),y=_>x;if(t||(t=o=p()),m<h&&(R=m,m=h,h=R),!(m>n.epsilon))t.moveTo(0,0);else if(d>n.tau-n.epsilon)t.moveTo(m*n.cos(x),m*n.sin(x)),t.arc(0,0,m,x,_,!y),h>n.epsilon&&(t.moveTo(h*n.cos(_),h*n.sin(_)),t.arc(0,0,h,_,x,y));else{var S=x,L=_,w=x,C=_,k=d,O=d,z=l.apply(this,arguments)/2,F=z>n.epsilon&&(i?+i.apply(this,arguments):n.sqrt(h*h+m*m)),N=n.min(n.abs(m-h)/2,+e.apply(this,arguments)),T=N,E=N,u,b;if(F>n.epsilon){var H=n.asin(F/h*n.sin(z)),G=n.asin(F/m*n.sin(z));(k-=H*2)>n.epsilon?(H*=y?1:-1,w+=H,C-=H):(k=0,w=C=(x+_)/2),(O-=G*2)>n.epsilon?(G*=y?1:-1,S+=G,L-=G):(O=0,S=L=(x+_)/2)}var M=m*n.cos(S),P=m*n.sin(S),I=h*n.cos(C),B=h*n.sin(C);if(N>n.epsilon){var q=m*n.cos(L),$=m*n.sin(L),U=h*n.cos(w),X=h*n.sin(w),W;if(d<n.pi)if(W=ht(M,P,U,X,q,$,I,B)){var Y=M-W[0],f=P-W[1],D=q-W[0],j=$-W[1],K=1/n.sin(n.acos((Y*D+f*j)/(n.sqrt(Y*Y+f*f)*n.sqrt(D*D+j*j)))/2),Q=n.sqrt(W[0]*W[0]+W[1]*W[1]);T=n.min(N,(h-Q)/(K-1)),E=n.min(N,(m-Q)/(K+1))}else T=E=0}O>n.epsilon?E>n.epsilon?(u=V(U,X,M,P,m,E,y),b=V(q,$,I,B,m,E,y),t.moveTo(u.cx+u.x01,u.cy+u.y01),E<N?t.arc(u.cx,u.cy,E,n.atan2(u.y01,u.x01),n.atan2(b.y01,b.x01),!y):(t.arc(u.cx,u.cy,E,n.atan2(u.y01,u.x01),n.atan2(u.y11,u.x11),!y),t.arc(0,0,m,n.atan2(u.cy+u.y11,u.cx+u.x11),n.atan2(b.cy+b.y11,b.cx+b.x11),!y),t.arc(b.cx,b.cy,E,n.atan2(b.y11,b.x11),n.atan2(b.y01,b.x01),!y))):(t.moveTo(M,P),t.arc(0,0,m,S,L,!y)):t.moveTo(M,P),!(h>n.epsilon)||!(k>n.epsilon)?t.lineTo(I,B):T>n.epsilon?(u=V(I,B,q,$,h,-T,y),b=V(M,P,U,X,h,-T,y),t.lineTo(u.cx+u.x01,u.cy+u.y01),T<N?t.arc(u.cx,u.cy,T,n.atan2(u.y01,u.x01),n.atan2(b.y01,b.x01),!y):(t.arc(u.cx,u.cy,T,n.atan2(u.y01,u.x01),n.atan2(u.y11,u.x11),!y),t.arc(0,0,h,n.atan2(u.cy+u.y11,u.cx+u.x11),n.atan2(b.cy+b.y11,b.cx+b.x11),y),t.arc(b.cx,b.cy,T,n.atan2(b.y11,b.x11),n.atan2(b.y01,b.x01),!y))):t.arc(0,0,h,C,w,y)}if(t.closePath(),o)return t=null,o+""||null}return r.centroid=function(){var o=(+c.apply(this,arguments)+ +a.apply(this,arguments))/2,R=(+s.apply(this,arguments)+ +g.apply(this,arguments))/2-n.pi/2;return[n.cos(R)*o,n.sin(R)*o]},r.innerRadius=function(o){return arguments.length?(c=typeof o=="function"?o:n.constant(+o),r):c},r.outerRadius=function(o){return arguments.length?(a=typeof o=="function"?o:n.constant(+o),r):a},r.cornerRadius=function(o){return arguments.length?(e=typeof o=="function"?o:n.constant(+o),r):e},r.padRadius=function(o){return arguments.length?(i=o==null?null:typeof o=="function"?o:n.constant(+o),r):i},r.startAngle=function(o){return arguments.length?(s=typeof o=="function"?o:n.constant(+o),r):s},r.endAngle=function(o){return arguments.length?(g=typeof o=="function"?o:n.constant(+o),r):g},r.padAngle=function(o){return arguments.length?(l=typeof o=="function"?o:n.constant(+o),r):l},r.context=function(o){return arguments.length?(t=o??null,r):t},r}function pt(c,a){return a<c?-1:a>c?1:a>=c?0:NaN}function mt(c){return c}function vt(){var c=mt,a=pt,e=null,i=n.constant(0),s=n.constant(n.tau),g=n.constant(0);function l(t){var p,r=(t=n.array(t)).length,o,R,h=0,m=new Array(r),x=new Array(r),_=+i.apply(this,arguments),d=Math.min(n.tau,Math.max(-n.tau,s.apply(this,arguments)-_)),y,S=Math.min(Math.abs(d)/r,g.apply(this,arguments)),L=S*(d<0?-1:1),w;for(p=0;p<r;++p)(w=x[m[p]=p]=+c(t[p],p,t))>0&&(h+=w);for(a!=null?m.sort(function(C,k){return a(x[C],x[k])}):e!=null&&m.sort(function(C,k){return e(t[C],t[k])}),p=0,R=h?(d-r*L)/h:0;p<r;++p,_=y)o=m[p],w=x[o],y=_+(w>0?w*R:0)+L,x[o]={data:t[o],index:p,value:w,startAngle:_,endAngle:y,padAngle:S};return x}return l.value=function(t){return arguments.length?(c=typeof t=="function"?t:n.constant(+t),l):c},l.sortValues=function(t){return arguments.length?(a=t,e=null,l):a},l.sort=function(t){return arguments.length?(e=t,a=null,l):e},l.startAngle=function(t){return arguments.length?(i=typeof t=="function"?t:n.constant(+t),l):i},l.endAngle=function(t){return arguments.length?(s=typeof t=="function"?t:n.constant(+t),l):s},l.padAngle=function(t){return arguments.length?(g=typeof t=="function"?t:n.constant(+t),l):g},l}const bt=Object.assign(Object.assign({},v.ComponentDefaultConfig),{id:(c,a)=>{var e;return(e=c.id)!==null&&e!==void 0?e:a},value:void 0,angleRange:[0,2*Math.PI],padAngle:0,sortFunction:void 0,cornerRadius:0,color:void 0,radius:void 0,arcWidth:20,centralLabel:void 0,centralSubLabel:void 0,centralSubLabelWrap:!0,showEmptySegments:!1,emptySegmentAngle:.5*Math.PI/180,showBackground:!0,backgroundAngleRange:void 0,centralLabelOffsetX:void 0,centralLabelOffsetY:void 0});function yt(c,a){c.style("fill",e=>v.getColor(e.data,a.color,e.index)).style("opacity",0).each((e,i,s)=>{const g=s[i],l=(e.startAngle+e.endAngle)/2,t=(e.endAngle-e.startAngle)/2;g._animState={startAngle:l-t,endAngle:l+t,innerRadius:e.innerRadius,outerRadius:e.outerRadius,padAngle:e.padAngle}})}function At(c,a,e,i){c.style("transition",`fill ${i}ms`).style("fill",g=>v.getColor(g.data,a.color,g.index));const s=g=>a.showEmptySegments||g.value?1:0;i?v.smartTransition(c,i).style("opacity",s).attrTween("d",(l,t,p)=>{const r=p[t],o={startAngle:l.startAngle,endAngle:l.endAngle,innerRadius:l.innerRadius,outerRadius:l.outerRadius,padAngle:l.padAngle},R=v.interpolate(r._animState,o);return h=>(r._animState=R(h),e(r._animState))}):c.attr("d",e).style("opacity",s)}function xt(c,a){v.smartTransition(c,a).style("opacity",0).remove()}const Z=Array.from({length:4},(c,a)=>{const e=-Math.PI/2+a*Math.PI/2;return[e,e+Math.PI]}),[Ct,kt,Tt,Et]=Z,tt=v.css`
|
|
2
|
-
label: donut-component;
|
|
3
|
-
`,Rt=v.injectGlobal`
|
|
4
|
-
:root {
|
|
5
|
-
--vis-donut-central-label-font-size: 16px;
|
|
6
|
-
--vis-donut-central-label-text-color: #5b5f6d;
|
|
7
|
-
// Undefined by default to allow proper fallback to var(--vis-font-family)
|
|
8
|
-
/* --vis-donut-central-label-font-family: */
|
|
9
|
-
--vis-donut-central-label-font-weight: 600;
|
|
10
|
-
|
|
11
|
-
--vis-donut-central-sub-label-font-size: 12px;
|
|
12
|
-
--vis-donut-central-sub-label-text-color: #5b5f6d;
|
|
13
|
-
// Undefined by default to allow proper fallback to var(--vis-font-family)
|
|
14
|
-
/* --vis-donut-central-sub-label-font-family: */
|
|
15
|
-
--vis-donut-central-sub-label-font-weight: 500;
|
|
16
|
-
|
|
17
|
-
--vis-donut-background-color: #E7E9F3;
|
|
18
|
-
--vis-donut-segment-stroke-width: 0;
|
|
19
|
-
// The line segment color variable is not defined by default
|
|
20
|
-
// to allow it to fallback to the donut background color
|
|
21
|
-
/* --vis-donut-segment-stroke-color: none; */
|
|
22
|
-
|
|
23
|
-
--vis-dark-donut-central-label-text-color: #C2BECE;
|
|
24
|
-
--vis-dark-donut-central-sub-label-text-color: #C2BECE;
|
|
25
|
-
--vis-dark-donut-background-color: #18160C;
|
|
26
|
-
}
|
|
27
|
-
|
|
28
|
-
body.theme-dark ${`.${tt}`} {
|
|
29
|
-
--vis-donut-central-label-text-color: var(--vis-dark-donut-central-label-text-color);
|
|
30
|
-
--vis-donut-central-sub-label-text-color: var(--vis-dark-donut-central-sub-label-text-color);
|
|
31
|
-
--vis-donut-background-color: var(--vis-dark-donut-background-color);
|
|
32
|
-
}
|
|
33
|
-
`,nt=v.css`
|
|
34
|
-
label: background;
|
|
35
|
-
fill: var(--vis-donut-background-color);
|
|
36
|
-
`,J=v.css`
|
|
37
|
-
label: segment;
|
|
38
|
-
stroke-width: var(--vis-donut-segment-stroke-width);
|
|
39
|
-
stroke: var(--vis-donut-segment-stroke-color, var(--vis-donut-background-color));
|
|
40
|
-
`,et=v.css`
|
|
41
|
-
label: segment-exit;
|
|
42
|
-
`,at=v.css`
|
|
43
|
-
label: central-label;
|
|
44
|
-
text-anchor: middle;
|
|
45
|
-
dominant-baseline: middle;
|
|
46
|
-
font-size: var(--vis-donut-central-label-font-size);
|
|
47
|
-
font-family: var(--vis-donut-central-label-font-family, var(--vis-font-family));
|
|
48
|
-
font-weight: var(--vis-donut-central-label-font-weight);
|
|
49
|
-
fill: var(--vis-donut-central-label-text-color);
|
|
50
|
-
`,it=v.css`
|
|
51
|
-
label: central-label;
|
|
52
|
-
text-anchor: middle;
|
|
53
|
-
dominant-baseline: middle;
|
|
54
|
-
font-size: var(--vis-donut-central-sub-label-font-size);
|
|
55
|
-
font-family: var(--vis-donut-central-sub-label-font-family, var(--vis-font-family));
|
|
56
|
-
font-weight: var(--vis-donut-central-sub-label-font-weight);
|
|
57
|
-
fill: var(--vis-donut-central-sub-label-text-color);
|
|
58
|
-
`,_t=Object.freeze(Object.defineProperty({__proto__:null,background:nt,centralLabel:at,centralSubLabel:it,root:tt,segment:J,segmentExit:et,variables:Rt},Symbol.toStringTag,{value:"Module"}));class ot extends v.ComponentCore{constructor(a){super(),this._defaultConfig=bt,this.config=this._defaultConfig,this.datamodel=new v.SeriesDataModel,this.arcGen=ft(),this.events={},a&&this.setConfig(a),this.arcBackground=this.g.append("path"),this.arcGroup=this.g.append("g"),this.centralLabel=this.g.append("text").attr("class",at),this.centralSubLabel=this.g.append("text").attr("class",it)}get bleed(){return{top:0,bottom:0,left:0,right:0}}_render(a){var e,i,s,g,l,t,p,r,o,R,h,m,x,_;const{config:d,datamodel:y,bleed:S}=this,L=y.data.map((f,D)=>({index:D,datum:f})).filter(f=>d.showEmptySegments||v.getNumber(f.datum,d.value,f.index)),w=v.isNumber(a)?a:d.duration,[C,k,O,z]=Z.map(f=>d.angleRange&&d.angleRange[0]===f[0]&&d.angleRange[1]===f[1]),F=C||O,N=k||z,T=this._width*(N?2:1),E=this._height*(F?2:1),u=d.radius||Math.min(T-S.left-S.right,E-S.top-S.bottom)/2,b=d.arcWidth===0?0:v.clamp(u-d.arcWidth,0,u-1),H=this._height/2+(C?u/2:O?-u/2:0),G=this._width/2+(z?u/2:k?-u/2:0),M=`translate(${G},${H})`;this.arcGroup.attr("transform",M),this.arcGen.startAngle(f=>f.startAngle).endAngle(f=>f.endAngle).innerRadius(f=>f.innerRadius).outerRadius(f=>f.outerRadius).padAngle(f=>f.padAngle).cornerRadius(d.cornerRadius);const I=vt().startAngle((i=(e=d.angleRange)===null||e===void 0?void 0:e[0])!==null&&i!==void 0?i:0).endAngle((g=(s=d.angleRange)===null||s===void 0?void 0:s[1])!==null&&g!==void 0?g:2*Math.PI).padAngle(d.padAngle).value(f=>v.getNumber(f.datum,d.value,f.index)||0).sort((f,D)=>{var j;return(j=d.sortFunction)===null||j===void 0?void 0:j.call(d,f.datum,D.datum)})(L).map(f=>{const D=Object.assign(Object.assign({},f),{data:f.data.datum,index:f.data.index,innerRadius:b,outerRadius:u});return d.showEmptySegments&&f.endAngle-f.startAngle-f.padAngle<=Number.EPSILON&&(D.endAngle=f.startAngle+Math.max(d.emptySegmentAngle,d.padAngle),D.padAngle=f.padAngle/2),D}),B=this.arcGroup.selectAll(`.${J}`).data(I,f=>d.id(f.data,f.index)),q=B.enter().append("path").attr("class",J).call(yt,d),$=B.merge(q);$.call(At,d,this.arcGen,w),$.sort((f,D)=>D.value-f.value),B.exit().attr("class",et).call(xt,w);const U=k?"start":z?"end":"middle";this.centralLabel.attr("dy",d.centralSubLabel?"-0.55em":null).style("text-anchor",U).text((l=d.centralLabel)!==null&&l!==void 0?l:null),this.centralSubLabel.attr("dy",d.centralLabel?"0.55em":null).style("text-anchor",U).text((t=d.centralSubLabel)!==null&&t!==void 0?t:null),d.centralSubLabelWrap&&v.wrapSVGText(this.centralSubLabel,b*1.9);const X=(d.centralLabelOffsetX||0)+G;let W=(d.centralLabelOffsetY||0)+H;F&&d.centralLabelOffsetX===void 0&&d.centralLabelOffsetY===void 0&&(W=(C?-this.centralSubLabel.node().getBoundingClientRect().height:O?this.centralLabel.node().getBoundingClientRect().height:0)+H);const Y=`translate(${X},${W})`;this.centralLabel.attr("transform",Y),this.centralSubLabel.attr("transform",Y),this.arcBackground.attr("class",nt).attr("visibility",d.showBackground?null:"hidden").attr("transform",M),v.smartTransition(this.arcBackground,w).attr("d",this.arcGen({startAngle:(R=(r=(p=d.backgroundAngleRange)===null||p===void 0?void 0:p[0])!==null&&r!==void 0?r:(o=d.angleRange)===null||o===void 0?void 0:o[0])!==null&&R!==void 0?R:0,endAngle:(_=(m=(h=d.backgroundAngleRange)===null||h===void 0?void 0:h[1])!==null&&m!==void 0?m:(x=d.angleRange)===null||x===void 0?void 0:x[1])!==null&&_!==void 0?_:2*Math.PI,innerRadius:b,outerRadius:u}))}}ot.selectors=_t;const wt={"data-vis-component":""},St=A.defineComponent({__name:"index",props:{id:{type:Function},value:{type:[Function,Number,null]},angleRange:{},padAngle:{},sortFunction:{type:Function},cornerRadius:{},color:{type:[Function,String,Array,null]},radius:{},arcWidth:{},centralLabel:{},centralSubLabel:{},centralSubLabelWrap:{type:Boolean},showEmptySegments:{type:Boolean},emptySegmentAngle:{},showBackground:{type:Boolean},backgroundAngleRange:{},centralLabelOffsetX:{},centralLabelOffsetY:{},duration:{},events:{},attributes:{},data:{}},setup(c,{expose:a}){const e=A.inject(v.o),i=c,s=A.computed(()=>e.data.value??i.data),g=v.m(i),l=A.ref();return A.onMounted(()=>{A.nextTick(()=>{var t;l.value=new ot(g.value),(t=l.value)==null||t.setData(s.value),e.update(l.value)})}),A.onUnmounted(()=>{var t;(t=l.value)==null||t.destroy(),e.destroy()}),A.watch(g,(t,p)=>{var r;v.f(t,p)||(r=l.value)==null||r.setConfig(g.value)}),A.watch(s,()=>{var t;(t=l.value)==null||t.setData(s.value)}),a({component:l}),(t,p)=>(A.openBlock(),A.createElementBlock("div",wt))}}),Lt=A.defineComponent({__name:"index",props:{component:{},tooltip:{},annotations:{},onRenderComplete:{type:Function},duration:{},margin:{},padding:{},sizing:{},width:{},height:{},svgDefs:{},ariaLabel:{},data:{}},setup(c,{expose:a}){const e=c,{data:i}=A.toRefs(e),s=v.m(e);let g;const l=A.reactive({component:void 0,tooltip:void 0,annotations:void 0}),t=A.ref(),p=()=>{g||t.value&&l.component&&(g=new lt(t.value,{...A.toRaw(l)},i.value))};return A.watchEffect(()=>{var r;p(),(r=l.component)==null||r.config,g?.updateContainer({...A.toRaw(s.value),...A.toRaw(l)})}),A.watch(i,()=>{g?g.setData(i.value,!0):p()}),A.onUnmounted(()=>g?.destroy()),A.provide(v.o,{data:i,update:r=>l.component=r,destroy:()=>l.component=void 0}),A.provide(v.s,{data:i,update:r=>l.tooltip=r,destroy:()=>{l.tooltip=void 0}}),A.provide(v.t,{data:i,update:r=>l.annotations=r,destroy:()=>{l.annotations=void 0}}),a({component:g}),(r,o)=>(A.openBlock(),A.createElementBlock("div",{"data-vis-single-container":"",ref_key:"elRef",ref:t,class:"unovis-single-container"},[A.renderSlot(r.$slots,"default")],512))}});exports.E=St;exports.S=Lt;
|