blogwright-analytics 0.4.0-beta.2 → 0.4.0-beta.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (113) hide show
  1. package/README.md +103 -10
  2. package/dist/adapters/transform-diagnostics.d.ts +4 -0
  3. package/dist/adapters/transform-diagnostics.js +4 -0
  4. package/dist/app/_app/immutable/assets/0.BfwUqNJ-.css +1 -0
  5. package/dist/app/_app/immutable/assets/2.lkfjnM1s.css +1 -0
  6. package/dist/app/_app/immutable/assets/DefaultTooltip.CXdtNw-m.css +1 -0
  7. package/dist/app/_app/immutable/assets/Tooltip.BsTJVNOF.css +1 -0
  8. package/dist/app/_app/immutable/chunks/4DYKm5b2.js +1 -0
  9. package/dist/app/_app/immutable/chunks/B6Dt35mA.js +1 -0
  10. package/dist/app/_app/immutable/chunks/BAneOF1f.js +1 -0
  11. package/dist/app/_app/immutable/chunks/BQHoVMm0.js +1 -0
  12. package/dist/app/_app/immutable/chunks/{Doz7YX1W.js → BUku_rSO.js} +1 -1
  13. package/dist/app/_app/immutable/chunks/BoX17NrM.js +1 -0
  14. package/dist/app/_app/immutable/chunks/{vDgBJUjM.js → BpoiI2_d.js} +1 -1
  15. package/dist/app/_app/immutable/chunks/Bsj_2e-_.js +1 -0
  16. package/dist/app/_app/immutable/chunks/{-aNGNaBT.js → BumHYZmq.js} +1 -1
  17. package/dist/app/_app/immutable/chunks/{BJngAqxk.js → C0tbX_qQ.js} +1 -1
  18. package/dist/app/_app/immutable/chunks/C7qhOD3U.js +1 -0
  19. package/dist/app/_app/immutable/chunks/C8TrOru6.js +1 -0
  20. package/dist/app/_app/immutable/chunks/{DJc8C0NK.js → CAgm0Ruv.js} +1 -1
  21. package/dist/app/_app/immutable/chunks/CSrT-PUe.js +1 -0
  22. package/dist/app/_app/immutable/chunks/CU11V7_a.js +1 -0
  23. package/dist/app/_app/immutable/chunks/CdRe9NtS.js +1 -0
  24. package/dist/app/_app/immutable/chunks/Ch6MextH.js +1 -0
  25. package/dist/app/_app/immutable/chunks/{DCkHk5n_.js → Cr8mHXFf.js} +1 -1
  26. package/dist/app/_app/immutable/chunks/CuOP1eLc.js +2 -0
  27. package/dist/app/_app/immutable/chunks/{Bc-53cml.js → CwPKxnpy.js} +1 -1
  28. package/dist/app/_app/immutable/chunks/{FH_3TS2H.js → Cz3xtWLM.js} +1 -1
  29. package/dist/app/_app/immutable/chunks/D26njVw7.js +5 -0
  30. package/dist/app/_app/immutable/chunks/D6rPBWFd.js +1 -0
  31. package/dist/app/_app/immutable/chunks/D8dq3MNd.js +1 -0
  32. package/dist/app/_app/immutable/chunks/DOqi3Wfa.js +1 -0
  33. package/dist/app/_app/immutable/chunks/DRQZHPoe.js +1 -0
  34. package/dist/app/_app/immutable/chunks/DUJFqVVs.js +1 -0
  35. package/dist/app/_app/immutable/chunks/DVCZGvXq.js +3 -0
  36. package/dist/app/_app/immutable/chunks/Dco3y1p7.js +1 -0
  37. package/dist/app/_app/immutable/chunks/DmKBckYv.js +1 -0
  38. package/dist/app/_app/immutable/chunks/DnQEoGed.js +1 -0
  39. package/dist/app/_app/immutable/chunks/DoNmKjPy.js +1 -0
  40. package/dist/app/_app/immutable/chunks/DodcabfQ.js +1 -0
  41. package/dist/app/_app/immutable/chunks/DugTr35P.js +1 -0
  42. package/dist/app/_app/immutable/chunks/{xIq_fFFM.js → RBkNRIpl.js} +1 -1
  43. package/dist/app/_app/immutable/chunks/{DKMlMI4a.js → Sb-KFJGv.js} +1 -1
  44. package/dist/app/_app/immutable/chunks/XoU76ysy.js +1 -0
  45. package/dist/app/_app/immutable/chunks/imr7FUlI.js +15 -0
  46. package/dist/app/_app/immutable/chunks/{Dh958be7.js → xefVn_UF.js} +1 -1
  47. package/dist/app/_app/immutable/entry/app.w1HyN1Pe.js +2 -0
  48. package/dist/app/_app/immutable/entry/start.Iz8smxW0.js +1 -0
  49. package/dist/app/_app/immutable/nodes/0.BjQeslHk.js +1 -0
  50. package/dist/app/_app/immutable/nodes/1.DfqY5csg.js +1 -0
  51. package/dist/app/_app/immutable/nodes/2.CByBWAMF.js +10 -0
  52. package/dist/app/_app/version.json +1 -1
  53. package/dist/app/index.html +40 -36
  54. package/dist/aws/firehose.d.ts +32 -1
  55. package/dist/aws/firehose.js +11 -0
  56. package/dist/commands.js +1 -1
  57. package/dist/nodes.d.ts +65 -18
  58. package/dist/nodes.js +378 -58
  59. package/dist/path-filter.d.ts +4 -0
  60. package/dist/path-filter.js +34 -0
  61. package/dist/plugin.d.ts +2 -2
  62. package/dist/plugin.js +2 -2
  63. package/dist/queries.d.ts +16 -7
  64. package/dist/queries.js +82 -12
  65. package/dist/reporting-range.d.ts +53 -0
  66. package/dist/reporting-range.js +57 -0
  67. package/dist/server.js +47 -5
  68. package/dist/traffic-breakdown.d.ts +2 -0
  69. package/dist/traffic-breakdown.js +15 -0
  70. package/dist/transform/diagnostics.d.ts +17 -0
  71. package/dist/transform/diagnostics.js +1 -0
  72. package/dist/transform/handler.d.ts +6 -5
  73. package/dist/transform/handler.js +34 -11
  74. package/dist/transform-bundle/index.mjs +53 -13
  75. package/dist/transform-bundle/transform-manifest.json +2 -2
  76. package/dist/view-granularity.d.ts +27 -0
  77. package/dist/view-granularity.js +18 -0
  78. package/package.json +12 -3
  79. package/dist/app/_app/immutable/assets/0.BTQrrh5B.css +0 -1
  80. package/dist/app/_app/immutable/assets/2.DoCaRy3T.css +0 -1
  81. package/dist/app/_app/immutable/assets/DefaultTooltip.BXd66MzC.css +0 -1
  82. package/dist/app/_app/immutable/chunks/1aEdY044.js +0 -15
  83. package/dist/app/_app/immutable/chunks/B3vZDoek.js +0 -1
  84. package/dist/app/_app/immutable/chunks/B5KRA4hC.js +0 -1
  85. package/dist/app/_app/immutable/chunks/BC0iYSWx.js +0 -2
  86. package/dist/app/_app/immutable/chunks/BZrG8lR6.js +0 -5
  87. package/dist/app/_app/immutable/chunks/Bd1gDe3Y.js +0 -1
  88. package/dist/app/_app/immutable/chunks/Bkszif4s.js +0 -1
  89. package/dist/app/_app/immutable/chunks/BnKf2MvA.js +0 -1
  90. package/dist/app/_app/immutable/chunks/CKcppAud.js +0 -1
  91. package/dist/app/_app/immutable/chunks/CRTcXoMo.js +0 -1
  92. package/dist/app/_app/immutable/chunks/CvyVA_jC.js +0 -1
  93. package/dist/app/_app/immutable/chunks/CxBzrV8P.js +0 -1
  94. package/dist/app/_app/immutable/chunks/CyCGwyzf.js +0 -1
  95. package/dist/app/_app/immutable/chunks/D-mRKj3n.js +0 -1
  96. package/dist/app/_app/immutable/chunks/D0Ty6LN0.js +0 -1
  97. package/dist/app/_app/immutable/chunks/D2BnX0Uk.js +0 -3
  98. package/dist/app/_app/immutable/chunks/DBwYG1VY.js +0 -1
  99. package/dist/app/_app/immutable/chunks/DMoYijy0.js +0 -1
  100. package/dist/app/_app/immutable/chunks/DRmJpyQa.js +0 -1
  101. package/dist/app/_app/immutable/chunks/DVXZkpbf.js +0 -1
  102. package/dist/app/_app/immutable/chunks/DorUkkYD.js +0 -1
  103. package/dist/app/_app/immutable/chunks/DtuTIrAM.js +0 -1
  104. package/dist/app/_app/immutable/chunks/V9ZjaxiY.js +0 -1
  105. package/dist/app/_app/immutable/chunks/ZvRY-WVy.js +0 -1
  106. package/dist/app/_app/immutable/chunks/caXkbKD3.js +0 -1
  107. package/dist/app/_app/immutable/chunks/oNmA_rTI.js +0 -1
  108. package/dist/app/_app/immutable/chunks/yT96EWBw.js +0 -1
  109. package/dist/app/_app/immutable/entry/app.cy9eKSTf.js +0 -2
  110. package/dist/app/_app/immutable/entry/start.B2ycr8Ji.js +0 -1
  111. package/dist/app/_app/immutable/nodes/0.UTMEigHJ.js +0 -1
  112. package/dist/app/_app/immutable/nodes/1.CMX4YrAG.js +0 -1
  113. package/dist/app/_app/immutable/nodes/2.CQMIFodk.js +0 -6
@@ -0,0 +1,15 @@
1
+ import{A as e,B as t,Ct as n,Ft as r,H as i,M as a,P as o,U as s,V as c,W as l,Z as u,_t as d,a as f,at as p,b as m,c as h,ft as g,g as _,ht as v,i as y,j as b,jt as x,k as S,lt as C,m as w,o as T,st as E,ut as D,vt as O,wt as k,x as A}from"./DVCZGvXq.js";import"./xihTtKlq.js";import{t as j}from"./DmKBckYv.js";import{s as M,t as N}from"./Sb-KFJGv.js";import{i as P}from"./C7qhOD3U.js";import{t as F}from"./Dfvzj6n2.js";import{C as I,c as ee,l as L,s as te,x as R}from"./xefVn_UF.js";import{t as ne}from"./RBkNRIpl.js";import{i as z}from"./BQHoVMm0.js";import{a as B,r as V}from"./DRQZHPoe.js";import{i as H}from"./RobXhXPM.js";import{n as U,r as W,t as G}from"./D26njVw7.js";import{n as K,t as re}from"./Cr8mHXFf.js";import{n as ie,r as ae,t as q}from"./CuOP1eLc.js";import{a as oe,n as se,o as ce,s as le,u as ue}from"./DodcabfQ.js";import{t as J}from"./BR2LaRms.js";import{n as de,r as fe,t as pe}from"./DnQEoGed.js";import{n as me,r as he,t as ge}from"./CU11V7_a.js";import{n as _e,r as ve,t as ye}from"./B6Dt35mA.js";var be=class{constructor(e,t){this._context=e,this._x=t}areaStart(){this._line=0}areaEnd(){this._line=NaN}lineStart(){this._point=0}lineEnd(){(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line}point(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;default:this._x?this._context.bezierCurveTo(this._x0=(this._x0+e)/2,this._y0,this._x0,t,e,t):this._context.bezierCurveTo(this._x0,this._y0=(this._y0+t)/2,e,this._y0,e,t)}this._x0=e,this._y0=t}},xe=class{constructor(e){this._context=e}lineStart(){this._point=0}lineEnd(){}point(e,t){if(e=+e,t=+t,this._point===0)this._point=1;else{let n=J(this._x0,this._y0),r=J(this._x0,this._y0=(this._y0+t)/2),i=J(e,this._y0),a=J(e,t);this._context.moveTo(...n),this._context.bezierCurveTo(...r,...i,...a)}this._x0=e,this._y0=t}};function Se(e){return new be(e,!0)}function Ce(e){return new be(e,!1)}function we(e){return new xe(e)}function Te(e){return e.source}function Ee(e){return e.target}function De(e){let t=Te,n=Ee,r=ce,i=le,a=null,o=null,s=re(c);function c(){let c,l=ue.call(arguments),u=t.apply(this,l),d=n.apply(this,l);if(a??(o=e(c=s())),o.lineStart(),l[0]=u,o.point(+r.apply(this,l),+i.apply(this,l)),l[0]=d,o.point(+r.apply(this,l),+i.apply(this,l)),o.lineEnd(),c)return o=null,c+``||null}return c.source=function(e){return arguments.length?(t=e,c):t},c.target=function(e){return arguments.length?(n=e,c):n},c.x=function(e){return arguments.length?(r=typeof e==`function`?e:K(+e),c):r},c.y=function(e){return arguments.length?(i=typeof e==`function`?e:K(+e),c):i},c.context=function(t){return arguments.length?(t==null?a=o=null:o=e(a=t),c):a},c}function Oe(){let e=De(we);return e.angle=e.x,delete e.x,e.radius=e.y,delete e.y,e}function Y(e,t){this._context=e,this._t=t}Y.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(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;default:if(this._t<=0)this._context.lineTo(this._x,t),this._context.lineTo(e,t);else{var n=this._x*(1-this._t)+e*this._t;this._context.lineTo(n,this._y),this._context.lineTo(n,t)}}this._x=e,this._y=t}};function ke(e){return new Y(e,.5)}function Ae(e){return new Y(e,0)}function je(e){return new Y(e,1)}var Me=i(`<!> <!>`,1);function Ne(e,r){k(r,!0);let i=y(r,`labelPlacement`,3,`top-right`),a=y(r,`labelXOffset`,3,0),s=y(r,`labelYOffset`,3,0),l=j(),d=O(()=>r.x!=null||r.x1!=null&&r.x2!=null&&r.x1===r.x2),f=O(()=>({x1:r.x1==null?r.x==null?l.xRange[0]:l.xScale(r.x):l.xScale(r.x1),y1:r.y1==null?r.y!=null&&r.x==null?l.yScale(r.y):l.yRange[0]:l.yScale(r.y1),x2:r.x2==null?r.x==null?l.xRange[1]:l.xScale(r.x):l.xScale(r.x2),y2:r.y2==null?r.y==null?l.yRange[1]:l.yScale(r.y):l.yScale(r.y2)})),p=O(()=>!u(d)&&u(f).x1!==u(f).x2&&u(f).y1!==u(f).y2),m=O(()=>{let e=Math.atan2(u(f).y2-u(f).y1,u(f).x2-u(f).x1)*(180/Math.PI);return e>90?e-=180:e<-90&&(e+=180),e}),h=O(()=>{let e=i().includes(`left`),t=i().includes(`right`),n=i().includes(`top`),r=i().includes(`bottom`);if(u(d))return{x:u(f).x1+(e?-a():a()),y:(n?u(f).y2:r?u(f).y1:(u(f).y1-u(f).y2)/2)+([`top`,`bottom-left`,`bottom-right`].includes(i())?-s():s()),dy:-2,textAnchor:e?`end`:t?`start`:`middle`,verticalAnchor:i()===`top`?`end`:i()===`bottom`||n?`start`:r?`end`:`middle`};let o=e?u(f).x1:t?u(f).x2:(u(f).x1+u(f).x2)/2,c=e?u(f).y1:t?u(f).y2:(u(f).y1+u(f).y2)/2,l=i()===`left`?`end`:i()===`right`||e?`start`:t?`end`:`middle`,h=n?`end`:r?`start`:`middle`;if(u(p)){let e=[`left`,`top-right`,`bottom-right`].includes(i())?-1:1,t=n?1:-1,r=e*a(),d=t*s()+2,f=u(m)*Math.PI/180,p=Math.cos(f),g=Math.sin(f);return{x:o,y:c,rotate:u(m),dx:r*p+d*g,dy:r*g-d*p,textAnchor:l,verticalAnchor:h}}return{x:o+([`left`,`top-right`,`bottom-right`].includes(i())?-a():a()),y:c+(n?-s():s()),dy:-2,textAnchor:l,verticalAnchor:h}});var _=Me(),v=D(_);{let e=O(()=>M(`lc-annotation-line`,r.props?.line?.class));S(v,()=>r.Line,(t,n)=>{n(t,T({get x1(){return u(f).x1},get y1(){return u(f).y1},get x2(){return u(f).x2},get y2(){return u(f).y2}},()=>r.props?.line,{get class(){return u(e)}}))})}var b=g(v,2),x=e=>{var n=c(),i=D(n);{let e=O(()=>M(`lc-annotation-line-label`,r.props?.label?.class));S(i,()=>r.Text,(t,n)=>{n(t,T({get value(){return r.label}},()=>u(h),()=>r.props?.label,{get class(){return u(e)}}))})}t(e,n)};o(b,e=>{r.label&&e(x)}),t(e,_),n()}var Pe=new Set([`$$slots`,`$$events`,`$$legacy`]);function Fe(e,t){let n=f(t,Pe);Ne(e,T({get Line(){return he},get Text(){return W}},()=>n))}var Ie=new Set([`$$slots`,`$$events`,`$$legacy`]);function Le(e,t){let n=f(t,Ie);Ne(e,T({get Line(){return me},get Text(){return U}},()=>n))}var Re=new Set([`$$slots`,`$$events`,`$$legacy`]);function ze(e,t){let n=f(t,Re);Ne(e,T({get Line(){return ge},get Text(){return G}},()=>n))}var Be=new Set([`$$slots`,`$$events`,`$$legacy`]);function Ve(e,r){k(r,!0);let i=R(),a=f(r,Be);var s=c(),l=D(s),u=e=>{Fe(e,T(()=>a))},d=e=>{Le(e,T(()=>a))},p=e=>{ze(e,T(()=>a))};o(l,e=>{i===`svg`?e(u):i===`canvas`?e(d,1):i===`html`&&e(p,2)}),t(e,s),n()}var He=new Set([`$$slots`,`$$events`,`$$legacy`]);function Ue(e,r){k(r,!0);let i=R(),a=f(r,He);var s=c(),l=D(s),u=e=>{ve(e,T(()=>a))},d=e=>{_e(e,T(()=>a))},p=e=>{ye(e,T(()=>a))};o(l,e=>{i===`svg`?e(u):i===`canvas`?e(d,1):i===`html`&&e(p,2)}),t(e,s),n()}function We(e,t){return Math.abs(e.x-t.x)<1e-6&&Math.abs(e.y-t.y)<1e-6}function Ge(e,t){return We(e,t)?``:`M ${e.x} ${e.y} L ${t.x} ${t.y}`}function X(e){return Math.abs(e)<1e-6}function Ke({source:e,target:t,sweep:n}){return n===`horizontal-vertical`?`M ${e.x} ${e.y} L ${t.x} ${e.y} L ${t.x} ${t.y}`:`M ${e.x} ${e.y} L ${e.x} ${t.y} L ${t.x} ${t.y}`}function qe(e){let{radius:t,dx:n,dy:r,source:i,target:a,sweep:o}=e,s=Math.max(0,Math.min(t,Math.abs(n),Math.abs(r)));if(X(s))return Ke(e);let c=Math.sign(n),l=Math.sign(r);if(o===`horizontal-vertical`){let e={x:a.x-s*c,y:i.y},t={x:a.x,y:i.y+s*l};return`M ${i.x} ${i.y} L ${e.x} ${e.y} L ${t.x} ${t.y} L ${a.x} ${a.y}`}{let e={x:i.x,y:a.y-s*l},t={x:i.x+s*c,y:a.y};return`M ${i.x} ${i.y} L ${e.x} ${e.y} L ${t.x} ${t.y} L ${a.x} ${a.y}`}}function Je(e){let{radius:t,dx:n,dy:r,source:i,target:a,sweep:o}=e,s=Math.max(0,Math.min(t,Math.abs(n),Math.abs(r)));if(X(s))return Ke(e);let c=Math.sign(n),l=Math.sign(r);if(o===`horizontal-vertical`){let e={x:a.x-s*c,y:i.y},t={x:a.x,y:i.y+s*l},n=+(c*l>0);return`M ${i.x} ${i.y} L ${e.x} ${e.y} A ${s} ${s} 0 0 ${n} ${t.x} ${t.y} L ${a.x} ${a.y}`}{let e={x:i.x,y:a.y-s*l},t={x:i.x+s*c,y:a.y},n=c*l>0?0:1;return`M ${i.x} ${i.y} L ${e.x} ${e.y} A ${s} ${s} 0 0 ${n} ${t.x} ${t.y} L ${a.x} ${a.y}`}}function Ye({source:e,target:t,dx:n,dy:r,bend:i=22.5}){let a=Math.hypot(n,r),o=i*Math.PI/180;if(Math.abs(o)<1e-6||a<1e-6)return Ge(e,t);let s=a/(2*Math.sin(Math.abs(o))),c=+(Math.abs(i)>90),l=+(i>0);return`M${e.x},${e.y}A${s},${s} 0 ${c} ${l} ${t.x},${t.y}`}var Xe={square:Ke,beveled:qe,rounded:Je,swoop:Ye};function Ze(e){let{source:t,target:n,type:r}=e;if(We(t,n))return``;let i=n.x-t.x,a=n.y-t.y;return r===`straight`||r!==`swoop`&&(X(i)||X(a))?Ge(t,n):(Xe[r]||Xe.square)({...e,dx:i,dy:a})}var Z=`M0,0L0,0`;function Qe({source:e,target:t,sweep:n,curve:r,orientation:i=`horizontal`}){let a=t.x-e.x,o=t.y-e.y;if(i===`vertical`&&n===`none`){let{x:n,y:i}=e,{x:a,y:o}=t;if(r===ke){let e=(i+o)/2;return`M${n},${i}L${n},${e}L${a},${e}L${a},${o}`}if(r===Ae)return`M${n},${i}L${a},${i}L${a},${o}`;if(r===je)return`M${n},${i}L${n},${o}L${a},${o}`}let s=oe().curve(r),c=[],l=X(a)||X(o);if(n===`none`||l?c=[[e.x,e.y],[t.x,t.y]]:n===`horizontal-vertical`?c=[[e.x,e.y],[t.x,e.y],[t.x,t.y]]:n===`vertical-horizontal`&&(c=[[e.x,e.y],[e.x,t.y],[t.x,t.y]]),c.length===2&&X(a)&&X(a))return Z;let u=s(c);return!u||u.includes(`NaN`)?Z:u}function $e(e,t){let n=e.x-Math.PI/2,r=e.y,i=t.x-Math.PI/2,a=t.y,o=Math.cos(n),s=Math.sin(n),c=Math.cos(i),l=Math.sin(i),u=Math.abs(i-n)>Math.PI?+(i<=n):+(i>n);return{sa:n,sr:r,ta:i,tr:a,sc:o,ss:s,tc:c,ts:l,sx:r*o,sy:r*s,tx:a*c,ty:a*l,sweepFlag:u}}function et({source:e,target:t,type:n,radius:r,bend:i=22.5}){let{sr:a,ta:o,tr:s,sc:c,ss:l,tc:u,ts:d,sx:f,sy:p,tx:m,ty:h,sweepFlag:g}=$e(e,t);if(n===`straight`)return`M${f},${p}L${m},${h}`;if(n===`swoop`){let e=m-f,t=h-p,n=Math.hypot(e,t),r=i*Math.PI/180;if(Math.abs(r)<1e-6||n<1e-6)return`M${f},${p}L${m},${h}`;let a=n/(2*Math.sin(Math.abs(r)));return`M${f},${p}A${a},${a} 0 ${+(Math.abs(i)>90)} ${+(i>0)} ${m},${h}`}if(n===`rounded`){let e=.2,t=m-f,n=h-p,r=e*(t+n),i=e*(n-t);return`M${f},${p}C${f+r},${p+i} ${m+i},${h-r} ${m},${h}`}if(n===`square`){if(a<1e-6)return`M${f},${p}L${m},${h}`;let e=(a+s)/2;return`M${f},${p}L${e*c},${e*l}A${e},${e},0,0,${g},${e*u},${e*d}L${m},${h}`}let _=a*u,v=a*d,y=_-f,b=v-p,x=Math.hypot(y,b);if(x<1e-6)return`M${f},${p}L${m},${h}`;let S=Math.abs(s-a)||1,C=Math.max(0,Math.min(r,x,S)),w=y/x,T=b/x,E=Math.sign(s-a)||1;return`M${f},${p}L${_-C*w},${v-C*T}L${_+E*C*u},${v+E*C*d}L${m},${h}`}function tt({source:e,target:t,curve:n}){let{sr:r,tr:i,sc:a,ss:o,tc:s,ts:c,sx:l,sy:u,tx:d,ty:f,sweepFlag:p}=$e(e,t);if((n===Ae||n===je||n===ke)&&r<1e-6)return`M${l},${u}L${d},${f}`;if(n===Ae)return`M${l},${u}A${r},${r},0,0,${p},${r*s},${r*c}L${d},${f}`;if(n===je)return`M${l},${u}L${i*a},${i*o}A${i},${i},0,0,${p},${d},${f}`;if(n===ke){let e=(r+i)/2;return`M${l},${u}L${e*a},${e*o}A${e},${e},0,0,${p},${e*s},${e*c}L${d},${f}`}return n?se().curve(n)([[e.x,e.y],[t.x,t.y]])??Z:Oe().angle(e=>e.x).radius(e=>e.y)({source:e,target:t})??Z}var Q={x:0,y:0};function $(e){return typeof e==`string`||typeof e==`function`}var nt=new Set(`$$slots.$$events.$$legacy.Path.x1.y1.x2.y2.data.sankey.source.target.x.y.orientation.curve.type.sweep.radius.bend.radial.marker.markerStart.markerMid.markerEnd.motion.pathRef.pathData.class`.split(`.`));function rt(e,r){k(r,!0);let i=j(),s=y(r,`sankey`,3,!1),l=y(r,`type`,3,`d3`),d=y(r,`radius`,3,20),p=y(r,`bend`,3,22.5),m=y(r,`pathRef`,15),h=f(r,nt),g=O(()=>r.radial??i.radial??!1),_=O(()=>r.orientation?r.orientation:s()?`horizontal`:`vertical`),v=O(()=>r.curve?r.curve:u(_)===`horizontal`?Se:Ce),x=O(()=>l()===`d3`?r.sweep??`none`:r.sweep&&r.sweep!==`none`?r.sweep:u(_)===`vertical`?`horizontal-vertical`:`vertical-horizontal`),C=O(()=>$(r.x1)||$(r.y1)||$(r.x2)||$(r.y2)),w=O(()=>!u(C)&&(typeof r.x1==`number`||typeof r.y1==`number`||typeof r.x2==`number`||typeof r.y2==`number`)),E=O(()=>r.source?r.source:s()?e=>({node:e.source,y:e.y0,isSource:!0}):e=>e.source),A=O(()=>r.target?r.target:s()?e=>({node:e.target,y:e.y1,isSource:!1}):e=>e.target),P=O(()=>r.x?r.x:s()?e=>e.isSource?e.node.x1:e.node.x0:u(g)?e=>e.x:e=>u(_)===`horizontal`?e.y:e.x),F=O(()=>r.y?r.y:s()||u(g)?e=>e.y:e=>u(_)===`horizontal`?e.x:e.y),I=O(()=>N(r.x1)),ee=O(()=>N(r.y1)),L=O(()=>N(r.x2)),te=O(()=>N(r.y2)),R=e=>{let t=u(I)(e),n=u(ee)(e),a=u(L)(e),o=u(te)(e),s=typeof r.x1==`string`||typeof r.x1==`function`?i.xScale:null,c=typeof r.y1==`string`||typeof r.y1==`function`?i.yScale:null,l=s&&t!=null?s(t):typeof t==`number`?t:0,d=c&&n!=null?c(n):typeof n==`number`?n:0,f=s&&a!=null?s(a):typeof a==`number`?a:0,p=c&&o!=null?c(o):typeof o==`number`?o:0;return{source:{x:Number.isFinite(l)?l:0,y:Number.isFinite(d)?d:0},target:{x:Number.isFinite(f)?f:0,y:Number.isFinite(p)?p:0}}},ne=O(()=>{if(u(w))return{x:typeof r.x1==`number`?r.x1:0,y:typeof r.y1==`number`?r.y1:0};if(!r.data)return Q;try{let e=u(E)(r.data);if(e==null)return Q;let t=u(P)(e),n=u(F)(e);return{x:Number.isFinite(t)?t:0,y:Number.isFinite(n)?n:0}}catch(e){return console.error(`Error accessing source coordinates:`,e,`Data:`,r.data),Q}}),z=O(()=>{if(u(w))return{x:typeof r.x2==`number`?r.x2:100,y:typeof r.y2==`number`?r.y2:100};if(!r.data)return Q;try{let e=u(A)(r.data);if(e==null)return Q;let t=u(P)(e),n=u(F)(e);return{x:Number.isFinite(t)?t:0,y:Number.isFinite(n)?n:0}}catch(e){return console.error(`Error accessing target coordinates:`,e,`Data:`,r.data),Q}});function H(e,t){return r.pathData?r.pathData:u(g)?l()===`d3`?tt({source:e,target:t,curve:u(v)}):et({source:e,target:t,type:l(),radius:d(),bend:p()}):l()===`d3`?Qe({source:e,target:t,sweep:u(x),curve:u(v),orientation:u(_)}):Ze({source:e,target:t,sweep:u(x),type:l(),radius:d(),bend:p()})}let U=O(()=>u(C)?``:H(u(ne),u(z))),W=B(r.motion),G=W?{type:W.type,options:{interpolate:ae,...W.options}}:void 0,K=V(``,()=>u(U),G),re=()=>K.current,ie=O(()=>u(C)?r.data??i.data??[]:[]);function q(e,t){return typeof e==`function`?e(t):e}function oe(e){return q(r.class,e)}let se=O(()=>r.stroke),ce=O(()=>r.fill),le=O(()=>h[`stroke-width`]??r.strokeWidth);var ue=c(),J=D(ue),de=e=>{var n=c(),o=D(n);b(o,17,()=>u(ie),a,(e,n)=>{let a=O(()=>R(u(n))),o=O(()=>q(u(se),u(n))??(i.config.c?i.cGet(u(n)):void 0));var s=c(),l=D(s);{let e=O(()=>H(u(a).source,u(a).target)),t=O(()=>q(u(ce),u(n))),i=O(()=>q(u(le),u(n))),s=O(()=>M(`lc-link`,oe(u(n))));S(l,()=>r.Path,(n,a)=>{a(n,T({get pathData(){return u(e)},get marker(){return r.marker},get markerStart(){return r.markerStart},get markerMid(){return r.markerMid},get markerEnd(){return r.markerEnd}},()=>h,{get stroke(){return u(o)},get fill(){return u(t)},get"stroke-width"(){return u(i)},get class(){return u(s)}}))})}t(e,s)}),t(e,n)},fe=e=>{var n=c(),i=D(n);{let e=O(()=>M(`lc-link`,typeof r.class==`string`?r.class:void 0));S(i,()=>r.Path,(t,n)=>{n(t,T({pathData:re,get marker(){return r.marker},get markerStart(){return r.markerStart},get markerMid(){return r.markerMid},get markerEnd(){return r.markerEnd}},()=>h,{get class(){return u(e)},get pathRef(){return m()},set pathRef(e){m(e)}}))})}t(e,n)};o(J,e=>{u(C)?e(de):e(fe,-1)}),t(e,ue),n()}var it=new Set([`$$slots`,`$$events`,`$$legacy`,`pathRef`]);function at(e,t){k(t,!0);let r=y(t,`pathRef`,15),i=f(t,it);rt(e,T({get Path(){return ie}},()=>i,{get pathRef(){return r()},set pathRef(e){r(e)}})),n()}var ot=new Set([`$$slots`,`$$events`,`$$legacy`]);function st(e,t){let n=f(t,ot);rt(e,T({get Path(){return q}},()=>n))}var ct=new Set([`$$slots`,`$$events`,`$$legacy`,`pathRef`]);function lt(e,r){k(r,!0);let i=R(),a=y(r,`pathRef`,15),s=f(r,ct);var l=c(),u=D(l),d=e=>{at(e,T(()=>s,{get pathRef(){return a()},set pathRef(e){a(e)}}))},p=e=>{st(e,T(()=>s))};o(u,e=>{i===`svg`?e(d):i===`canvas`&&e(p,1)}),t(e,l),n()}var ut=new Set([`$$slots`,`$$events`,`$$legacy`]);function dt(e,r){k(r,!0);let i=R(),a=f(r,ut);var s=c(),l=D(s),u=e=>{W(e,T(()=>a))},d=e=>{U(e,T(()=>a))},p=e=>{G(e,T(()=>a))};o(l,e=>{i===`svg`?e(u):i===`canvas`?e(d,1):i===`html`&&e(p,2)}),t(e,s),n()}var ft=i(`<!> <!> <!>`,1);function pt(e,r){k(r,!0);let i=y(r,`r`,3,4),a=y(r,`labelPlacement`,3,`center`),s=y(r,`labelXOffset`,3,0),c=y(r,`labelYOffset`,3,0),l=j(),d=I(),f=O(()=>{if(d.projection&&typeof r.x==`number`&&typeof r.y==`number`){let[e,t]=d.projection([r.x,r.y])??[0,0];return{x:e,y:t}}return{x:r.x?l.xScale(r.x)+(P(l.xScale)?l.xScale.bandwidth()/2:0):0,y:r.y?l.yScale(r.y)+(P(l.yScale)?l.yScale.bandwidth()/2:0):l.height}}),p=O(()=>{let e=a().includes(`left`)?-1:+!!a().includes(`right`),t=a().includes(`top`)?-1:+!!a().includes(`bottom`),n=Math.hypot(e,t)||1,r=a().includes(`left`)?-1:1,o=a().includes(`top`)?-1:1;return{x:u(f).x+i()*e/n+s()*r,y:u(f).y+i()*t/n+c()*o,dy:-2,textAnchor:a().includes(`left`)?`end`:a().includes(`right`)?`start`:`middle`,verticalAnchor:a().includes(`top`)?`end`:a().includes(`bottom`)?`start`:`middle`}}),m=O(()=>{if(!r.link)return null;let e=a().includes(`left`)?-1:+!!a().includes(`right`),t=a().includes(`top`)?-1:+!!a().includes(`bottom`);if(e===0&&t===0)return null;let n=Math.hypot(e,t);return{source:{x:u(f).x+i()*e/n,y:u(f).y+i()*t/n},target:{x:u(p).x,y:u(p).y}}}),h=O(()=>typeof r.link==`object`?r.link:{});function _(e){r.details&&(e.stopPropagation(),l.tooltip.show(e,{annotation:{label:r.label,details:r.details}}))}function v(e){r.details&&(e.stopPropagation(),l.tooltip.hide())}var b=ft(),x=D(b);{let e=O(()=>M(`lc-annotation-point`,r.link&&`lc-annotation-point-ring`,r.props?.circle?.class));Ue(x,T({get cx(){return u(f).x},get cy(){return u(f).y},get r(){return i()},onpointermove:_,onmousemove:_,ontouchmove:_,onpointerleave:v,onmouseleave:v,ontouchend:v},()=>r.props?.circle,{get class(){return u(e)}}))}var S=g(x,2),C=e=>{{let t=O(()=>M(`lc-annotation-point-link`,typeof u(h).class==`string`?u(h).class:void 0));lt(e,T({get x1(){return u(m).source.x},get y1(){return u(m).source.y},get x2(){return u(m).target.x},get y2(){return u(m).target.y},type:`straight`},()=>u(h),{get class(){return u(t)}}))}};o(S,e=>{u(m)&&e(C)});var w=g(S,2),E=e=>{{let t=O(()=>M(`lc-annotation-point-label`,r.props?.label?.class));dt(e,T({get value(){return r.label}},()=>u(p),()=>r.props?.label,{get class(){return u(t)}}))}};o(w,e=>{r.label&&e(E)}),t(e,b),n()}var mt=i(`<!> <!> <!> <!>`,1);function ht(e,r){k(r,!0);let i=y(r,`labelPlacement`,3,`center`),a=y(r,`labelXOffset`,3,0),s=y(r,`labelYOffset`,3,0),l=j(),d=O(()=>{let e=r.x?.[0]!=null,t=r.x?.[1]!=null,n=e?l.xScale(r.x[0]):l.xRange[0],i=t?l.xScale(r.x[1]):l.xRange[1],a=r.y?.[0]==null?l.yRange[0]:l.yScale(r.y[0]),o=r.y?.[1]==null?l.yRange[1]:l.yScale(r.y[1]),s=P(l.xScale)?l.xScale.padding()*l.xScale.step()/2:0,c=P(l.xScale)?l.xScale.step():0,u=n<=i?e:t,d=n<=i?t:e,f=Math.min(n,i)-(u?s:0),p=Math.max(n,i)+(d?c-s:0);return{x:f,y:Math.min(a,o),width:p-f,height:Math.abs(o-a)}}),f=O(()=>({x:((i().includes(`left`)?u(d).x:i().includes(`right`)?(u(d).x??0)+u(d).width:(u(d).x??0)+u(d).width/2)??0)+(i().includes(`right`)?-a():a()),y:((i().includes(`top`)?u(d).y:i().includes(`bottom`)?(u(d).y??0)+u(d).height:(u(d).y??0)+u(d).height/2)??0)+(i().includes(`bottom`)?-s():s()),dy:-2,textAnchor:i().includes(`left`)?`start`:i().includes(`right`)?`end`:`middle`,verticalAnchor:i().includes(`top`)?`start`:i().includes(`bottom`)?`end`:`middle`}));var p=mt(),m=D(p),h=e=>{var n=c(),i=D(n);{let e=O(()=>M(`lc-annotation-range`,r.props?.rect?.class,r.class));S(i,()=>r.Rect,(t,n)=>{n(t,T(()=>u(d),()=>r.props?.rect,{get fill(){return r.fill},get class(){return u(e)}}))})}t(e,n)};o(m,e=>{(r.fill||r.class)&&e(h)});var _=g(m,2),v=e=>{var n=c(),i=D(n);{let e=(e,n)=>{let i=()=>(n?.()).gradient;var a=c(),o=D(a);S(o,()=>r.Rect,(e,t)=>{t(e,T(()=>u(d),()=>r.props?.rect,{get fill(){return i()}}))}),t(e,a)};S(i,()=>r.LinearGradient,(t,n)=>{n(t,T(()=>r.gradient,{children:e,$$slots:{default:!0}}))})}t(e,n)};o(_,e=>{r.gradient&&e(v)});var b=g(_,2),x=e=>{var n=c(),i=D(n);{let e=(e,n)=>{let i=()=>(n?.()).pattern;var a=c(),o=D(a);S(o,()=>r.Rect,(e,t)=>{t(e,T(()=>u(d),()=>r.props?.rect,{get fill(){return i()}}))}),t(e,a)};S(i,()=>r.Pattern,(t,n)=>{n(t,T(()=>r.pattern,{children:e,$$slots:{default:!0}}))})}t(e,n)};o(b,e=>{r.pattern&&e(x)});var C=g(b,2),w=e=>{var n=c(),i=D(n);{let e=O(()=>M(`lc-annotation-range-label`,r.props?.label?.class));S(i,()=>r.Text,(t,n)=>{n(t,T({get value(){return r.label}},()=>u(f),()=>r.props?.label,{get class(){return u(e)}}))})}t(e,n)};o(C,e=>{r.label&&e(w)}),t(e,p),n()}var gt=new Set([`$$slots`,`$$events`,`$$legacy`,`id`,`stops`,`vertical`,`x1`,`y1`,`x2`,`y2`,`rotate`,`units`,`ref`,`class`,`stopsContent`,`children`]),_t=s(`<stop></stop>`),vt=s(`<defs><linearGradient><!></linearGradient></defs><!>`,1);function yt(i,s){let S=l();k(s,!0);let T=y(s,`id`,19,()=>z(`linearGradient-`,S)),j=y(s,`stops`,19,()=>[`var(--tw-gradient-from)`,`var(--tw-gradient-to)`]),N=y(s,`vertical`,3,!1),P=y(s,`x1`,3,`0%`),F=y(s,`y1`,3,`0%`),I=y(s,`x2`,19,()=>N()?`0%`:`100%`),ee=y(s,`y2`,19,()=>N()?`100%`:`0%`),L=y(s,`units`,3,`objectBoundingBox`),te=y(s,`ref`,15),R=f(s,gt),B=d(void 0);E(()=>{te(u(B))});var V=vt(),H=D(V),U=C(H);w(U,e=>({id:T(),x1:P(),y1:F(),x2:I(),y2:ee(),gradientTransform:s.rotate?`rotate(${s.rotate})`:``,gradientUnits:L(),...e}),[()=>ne(R,`lc-linear-gradient`)]);var W=C(U),G=n=>{var i=c(),a=D(i);e(a,()=>s.stopsContent??r),t(n,i)},K=e=>{var n=c(),r=D(n);b(r,17,j,a,(e,n,r)=>{var i=c(),a=D(i),l=e=>{var r=_t();p(e=>{_(r,`offset`,u(n)[0]),_(r,`stop-color`,u(n)[1]),m(r,0,e)},[()=>A(M(`lc-linear-gradient-stop`,s.class))]),t(e,r)},d=O(()=>Array.isArray(u(n))),f=e=>{var i=_t();p(e=>{_(i,`offset`,`${r*(100/(j().length-1))}%`),_(i,`stop-color`,u(n)),m(i,0,e)},[()=>A(M(`lc-linear-gradient-stop`,s.class))]),t(e,i)};o(a,e=>{u(d)?e(l):e(f,-1)}),t(e,i)}),t(e,n)};o(W,e=>{s.stopsContent?e(G):j()&&e(K,1)}),x(U),h(U,e=>v(B,e),()=>u(B)),x(H);var re=g(H);e(re,()=>s.children??r,()=>({id:T(),gradient:`url(#${T()})`})),t(i,V),n()}function bt(e,t,n,r,i,a){let o=[];if(e){let t=Array.isArray(e)?e:e===!0?[{}]:[e];for(let e of t){let t=e.color??`var(--color-surface-content, currentColor)`,n=e.width??1,a=e.opacity??1,s=Math.round(e.rotate??0)%360;s>180?s-=360:s>90?s-=180:s<-180?s+=360:s<-90&&(s+=180);let c=``;c=s===0?`
2
+ M 0 0 L ${r} 0
3
+ M 0 ${i} L ${r} ${i}
4
+ `:s===90?`
5
+ M 0 0 L 0 ${i}
6
+ M ${r} 0 L ${r} ${i}
7
+ `:s>0?`
8
+ M 0 ${-i} L ${r*2} ${i}
9
+ M ${-r} ${-i} L ${r} ${i}
10
+ M ${-r} 0 L ${r} ${i*2}
11
+ `:`
12
+ M ${-r} ${i} L ${r} ${-i}
13
+ M ${-r} ${i*2} L ${r*2} ${-i}
14
+ M 0 ${i*2} L ${r*2} 0
15
+ `,o.push({type:`line`,path:c,stroke:t,strokeWidth:n,opacity:a})}}if(t){let e=Array.isArray(t)?t:t===!0?[{}]:[t];for(let t of e){let e=t.color??`var(--color-surface-content, currentColor)`,r=t.opacity??1,i=t.radius??1;t.stagger?o.push({type:`circle`,cx:n/4,cy:n/4,r:i,fill:e,opacity:r},{type:`circle`,cx:n*3/4,cy:n*3/4,r:i,fill:e,opacity:r}):o.push({type:`circle`,cx:n/2,cy:n/2,r:i,fill:e,opacity:r})}}if(a){let e=Array.isArray(a)?a:a===!0?[{}]:[a];for(let t of e){let e=t.inset??0,n=t.color??`var(--color-surface-content, currentColor)`,a=t.opacity??1;o.push({type:`rect`,x:e,y:e,width:Math.max(0,r-2*e),height:Math.max(0,i-2*e),rx:t.rx,ry:t.ry,fill:n,opacity:a})}}return o}var xt=new Set([`$$slots`,`$$events`,`$$legacy`,`id`,`size`,`width`,`height`,`lines`,`circles`,`rects`,`background`,`patternContent`,`children`]),St=s(`<rect></rect>`),Ct=s(`<path fill="none"></path>`),wt=s(`<circle></circle>`),Tt=s(`<!><!><!><!>`,1),Et=s(`<defs><pattern><!></pattern></defs><!>`,1);function Dt(i,s){let d=l();k(s,!0);let m=y(s,`id`,19,()=>z(`pattern-`,d)),h=y(s,`size`,3,4),v=y(s,`width`,19,h),S=y(s,`height`,19,h),T=f(s,xt),E=O(()=>bt(s.lines,s.circles,h(),v(),S(),s.rects));var A=Et(),j=D(A),M=C(j);w(M,e=>({id:m(),width:v(),height:S(),patternUnits:`userSpaceOnUse`,...e}),[()=>ne(T,`lc-pattern`)]);var N=C(M),P=n=>{var i=c(),a=D(i);e(a,()=>s.patternContent??r),t(n,i)},F=e=>{var n=Tt(),r=D(n),i=e=>{var n=St();p(()=>{_(n,`width`,v()),_(n,`height`,S()),_(n,`fill`,s.background)}),t(e,n)};o(r,e=>{s.background&&e(i)});var c=g(r);b(c,17,()=>u(E).filter(e=>e.type===`line`),a,(e,n)=>{var r=Ct();p(()=>{_(r,`d`,u(n).path),_(r,`stroke`,u(n).stroke),_(r,`stroke-width`,u(n).strokeWidth),_(r,`opacity`,u(n).opacity)}),t(e,r)});var l=g(c);b(l,17,()=>u(E).filter(e=>e.type===`circle`),a,(e,n)=>{var r=wt();p(()=>{_(r,`cx`,u(n).cx),_(r,`cy`,u(n).cy),_(r,`r`,u(n).r),_(r,`fill`,u(n).fill),_(r,`opacity`,u(n).opacity)}),t(e,r)});var d=g(l);b(d,17,()=>u(E).filter(e=>e.type===`rect`),a,(e,n)=>{var r=St();p(()=>{_(r,`x`,u(n).x),_(r,`y`,u(n).y),_(r,`width`,u(n).width),_(r,`height`,u(n).height),_(r,`rx`,u(n).rx),_(r,`ry`,u(n).ry),_(r,`fill`,u(n).fill),_(r,`opacity`,u(n).opacity)}),t(e,r)}),t(e,n)};o(N,e=>{s.patternContent?e(P):e(F,-1)}),x(M),x(j);var I=g(j);e(I,()=>s.children??r,()=>({id:m(),pattern:`url(#${m()})`})),t(i,A),n()}var Ot=new Set([`$$slots`,`$$events`,`$$legacy`]);function kt(e,t){let n=f(t,Ot);ht(e,T({get LinearGradient(){return yt},get Pattern(){return Dt},get Rect(){return fe},get Text(){return W}},()=>n))}var At=new Set([`$$slots`,`$$events`,`$$legacy`,`id`,`stops`,`vertical`,`x1`,`y1`,`x2`,`y2`,`class`,`children`]);function jt(i,a){let o=l();k(a,!0);let s=y(a,`id`,19,()=>z(`linearGradient-`,o)),p=y(a,`stops`,19,()=>[`var(--tw-gradient-from)`,`var(--tw-gradient-to)`]),m=y(a,`vertical`,3,!1),h=y(a,`x1`,3,`0%`),g=y(a,`y1`,3,`0%`),_=y(a,`x2`,19,()=>m()?`0%`:`100%`),b=y(a,`y2`,19,()=>m()?`100%`:`0%`);f(a,At);let x=j(),S=d(void 0);function C(e){let t=p().map((t,n)=>{if(Array.isArray(t)){let{fill:n}=L(e.canvas,{styles:{fill:t[1]},classes:a.class});return{offset:H(t[0]),color:n}}{let{fill:r}=L(e.canvas,{styles:{fill:t},classes:a.class});return{offset:n/(p().length-1),color:r}}}),n=te(e,x.padding.left,x.padding.top,m()?x.padding.left:x.width-x.padding.right,m()?x.height+x.padding.bottom:x.padding.top,t);v(S,n,!0)}x.registerComponent({name:`Gradient`,kind:`group`,canvasRender:{render:C,deps:()=>[h(),g(),_(),b(),p(),a.class]}});var w=c(),T=D(w);{let t=O(()=>({id:s(),gradient:F(u(S))}));e(T,()=>a.children??r,()=>u(t))}t(i,w),n()}function Mt(i,a){let o=l();k(a,!0);let s=j(),f=y(a,`id`,19,()=>z(`pattern-`,o)),p=y(a,`size`,3,4),m=y(a,`width`,19,p),h=y(a,`height`,19,p),g=O(()=>bt(a.lines,a.circles,p(),m(),h(),a.rects)),_=d(null);function b(e){let t=ee(e,m(),h(),u(g),a.background);v(_,t,!0)}s.registerComponent({name:`Pattern`,kind:`group`,canvasRender:{render:b,deps:()=>[m(),h(),u(g),a.background]}});var x=c(),S=D(x);{let t=O(()=>({id:f(),pattern:F(u(_))}));e(S,()=>a.children??r,()=>u(t))}t(i,x),n()}var Nt=new Set([`$$slots`,`$$events`,`$$legacy`]);function Pt(e,t){let n=f(t,Nt);ht(e,T({get LinearGradient(){return jt},get Pattern(){return Mt},get Rect(){return de},get Text(){return U}},()=>n))}function Ft(i,a){let o=l();k(a,!0);let s=y(a,`id`,19,()=>z(`linearGradient-`,o)),d=y(a,`stops`,19,()=>[`var(--tw-gradient-from)`,`var(--tw-gradient-to)`]),f=y(a,`vertical`,3,!1);function p(){if(!d()?.length)return``;let e;e=a.rotate===void 0?f()?`to bottom`:`to right`:`${(f()?180:90)+a.rotate}deg`;let t=d().map((e,t)=>Array.isArray(e)?`${e[1]} ${e[0]}`:`${e} ${t*(100/(d().length-1))}%`).join(`, `);return`linear-gradient(${e}, ${t})`}var m=c(),h=D(m);{let t=O(()=>({id:s(),gradient:p()}));e(h,()=>a.children??r,()=>u(t))}t(i,m),n()}function It(i,a){let o=l();k(a,!0);let s=y(a,`id`,19,()=>z(`pattern-`,o)),d=y(a,`size`,3,4),f=y(a,`width`,19,d),p=y(a,`height`,19,d);function m(e,t){return t===1?e:`color-mix(in srgb, ${e} ${t*100}%, transparent)`}function h(){let e=[];if(a.lines){let t=Array.isArray(a.lines)?a.lines:a.lines===!0?[{}]:[a.lines];for(let n of t){let t=m(n.color??`var(--color-surface-content, currentColor)`,n.opacity??1),r=n.width??1,i=Math.round(n.rotate??0)%360;i>180?i-=360:i>90?i-=180:i<-180?i+=360:i<-90&&(i+=180);let a,o;i===0?(a=0,o=p()):i===90?(a=90,o=f()):i>0?(a=45,o=f()*p()/Math.sqrt(f()*f()+p()*p())):(a=135,o=f()*p()/Math.sqrt(f()*f()+p()*p())),e.push(`repeating-linear-gradient(${a}deg, ${t} 0 ${r}px, transparent ${r}px ${o}px)`)}}if(a.circles){let t=Array.isArray(a.circles)?a.circles:a.circles===!0?[{}]:[a.circles];for(let n of t){let t=m(n.color??`var(--color-surface-content, currentColor)`,n.opacity??1),r=n.radius??1;n.stagger?e.push(`radial-gradient(circle at 25% 25%, ${t} ${r}px, transparent ${r}px) 0 0 / ${d()}px ${d()}px`,`radial-gradient(circle at 75% 75%, ${t} ${r}px, transparent ${r}px) 0 0 / ${d()}px ${d()}px`):e.push(`radial-gradient(circle at center, ${t} ${r}px, transparent ${r}px) 0 0 / ${d()}px ${d()}px`)}}let t=a.background!=null&&/gradient\(|url\(/i.test(a.background);return t&&e.push(`${a.background} 0 0 / ${f()}px ${p()}px`),e.length===0?a.background??`transparent`:!t&&a.background?`${e.join(`, `)}, ${a.background}`:e.join(`, `)}var g=c(),_=D(g);{let t=O(()=>({id:s(),pattern:h()}));e(_,()=>a.children??r,()=>u(t))}t(i,g),n()}var Lt=new Set([`$$slots`,`$$events`,`$$legacy`]);function Rt(e,t){let n=f(t,Lt);ht(e,T({get LinearGradient(){return Ft},get Pattern(){return It},get Rect(){return pe},get Text(){return G}},()=>n))}var zt=new Set([`$$slots`,`$$events`,`$$legacy`]);function Bt(e,r){k(r,!0);let i=R(),a=f(r,zt);var s=c(),l=D(s),u=e=>{kt(e,T(()=>a))},d=e=>{Pt(e,T(()=>a))},p=e=>{Rt(e,T(()=>a))};o(l,e=>{i===`svg`?e(u):i===`canvas`?e(d,1):i===`html`&&e(p,2)}),t(e,s),n()}function Vt(e,r){k(r,!0);let i=j(),s=O(()=>r.annotations.filter(e=>(e.layer===r.layer||e.layer==null&&r.layer===`above`)&&(i.series.highlightKey==null||e.seriesKey==null||e.seriesKey===i.series.highlightKey)&&i.series.visibleSeries.some(t=>e.seriesKey==null||e.seriesKey===t.key)));var l=c(),d=D(l);b(d,17,()=>u(s),a,(e,n)=>{var r=c(),i=D(r),a=e=>{pt(e,T(()=>u(n)))},s=e=>{Ve(e,T(()=>u(n)))},l=e=>{Bt(e,T(()=>u(n)))};o(i,e=>{u(n).type===`point`?e(a):u(n).type===`line`?e(s,1):u(n).type===`range`&&e(l,2)}),t(e,r)}),t(e,l),n()}export{Vt as default};
@@ -1 +1 @@
1
- import{G as e,ft as t}from"./D2BnX0Uk.js";import{B as n,H as r,o as i}from"./Bd1gDe3Y.js";import{s as a}from"./DKMlMI4a.js";var o=new i(`GeoContext`);function s(){return o.getOr({projection:void 0})}function c(e){return o.set(e)}var l=new i(`LayerContext`);function u(){return l.get()}function d(e){return l.set(e)}var f=(e,t,n,r)=>{if(n===`length`||n===`prototype`||n===`arguments`||n===`caller`)return;let i=Object.getOwnPropertyDescriptor(e,n),a=Object.getOwnPropertyDescriptor(t,n);!p(i,a)&&r||Object.defineProperty(e,n,a)},p=function(e,t){return e===void 0||e.configurable||e.writable===t.writable&&e.enumerable===t.enumerable&&e.configurable===t.configurable&&(e.writable||e.value===t.value)},ee=(e,t)=>{let n=Object.getPrototypeOf(t);n!==Object.getPrototypeOf(e)&&Object.setPrototypeOf(e,n)},m=(e,t)=>`/* Wrapped ${e}*/\n${t}`,h=Object.getOwnPropertyDescriptor(Function.prototype,`toString`),g=Object.getOwnPropertyDescriptor(Function.prototype.toString,`name`),_=(e,t,n)=>{let r=n===``?``:`with ${n.trim()}() `,i=m.bind(null,r,t.toString());Object.defineProperty(i,"name",g);let{writable:a,enumerable:o,configurable:s}=h;Object.defineProperty(e,"toString",{value:i,writable:a,enumerable:o,configurable:s})};function v(e,t,{ignoreNonConfigurable:n=!1}={}){let{name:r}=e;for(let r of Reflect.ownKeys(t))f(e,t,r,n);return ee(e,t),_(e,t,r),e}var y=2147483647,b=new WeakMap,x=new WeakMap,S=new WeakMap;function C(e,t){let n=e.get(t);if(n){if(n.maxAge<=Date.now()){e.delete(t);return}return n}}function w(e,{cacheKey:t,cache:n=new Map,maxAge:r}={}){if(r===0)return e;if(typeof r==`number`&&Number.isFinite(r)){if(r>y)throw TypeError(`The \`maxAge\` option cannot exceed ${y}.`);if(r<0)throw TypeError("The `maxAge` option should not be a negative number.")}let i=function(...a){let o=t?t(a):a[0],s=C(n,o);if(s)return s.data;let c=e.apply(this,a),l=typeof r==`function`?r(...a):r;if(l!==void 0&&l!==1/0){if(!Number.isFinite(l))throw TypeError("The `maxAge` function must return a finite number, `0`, or `Infinity`.");if(l<=0)return c;if(l>y)throw TypeError(`The \`maxAge\` function result cannot exceed ${y}.`)}if(n.set(o,{data:c,maxAge:l===void 0||l===1/0?1/0:Date.now()+l}),l!==void 0&&l!==1/0){let e=setTimeout(()=>{n.delete(o),x.get(i)?.delete(e)},l);e.unref?.();let t=x.get(i)??new Set;t.add(e),x.set(i,t)}return c};return v(i,e,{ignoreNonConfigurable:!0}),b.set(i,n),S.set(i,t??(e=>e[0])),i}function T(e,t,n,r,[i,a,o,s]){let c=n-i-a,l=r-a-o,u=n-o-s,d=r-s-i;return[`M${e+i},${t}`,`h${c}`,a>0?`a${a},${a} 0 0 1 ${a},${a}`:``,`v${l}`,o>0?`a${o},${o} 0 0 1 ${-o},${o}`:``,`h${-u}`,s>0?`a${s},${s} 0 0 1 ${-s},${-s}`:``,`v${-d}`,i>0?`a${i},${i} 0 0 1 ${i},${-i}`:``,`z`].filter(Boolean).join(` `)}function E(e){if(e==null||e===``||e===`none`)return null;let t;return t=typeof e==`number`?[e,e]:Array.isArray(e)?e.filter(e=>Number.isFinite(e)):e.split(/[\s,]+/).filter(e=>e.length>0).map(e=>Number(e.replace(`px`,``))).filter(e=>Number.isFinite(e)),t.length===0||t.every(e=>e===0)?null:(t.length%2==1&&(t=[...t,...t]),t)}function D(e,t,n=`to right`){let r=[],i=0;for(let n=0;n<e.length;n++){let a=e[n],o=n%2==0?t:`transparent`;r.push(`${o} ${i}px ${i+a}px`),i+=a}return`repeating-linear-gradient(${n}, ${r.join(`, `)})`}function O(e,t=0){let n=e;return n=n.replace(/([MLTQCSAZ])(-?\d*\.?\d+),(-?\d*\.?\d+)/g,(e,n,r,i)=>`${n}${r},${t}`),n=n.replace(/([v])(-?\d*\.?\d+)/g,(e,t,n)=>`${t}0`),n=n.replace(/a(-?\d*\.?\d+),(-?\d*\.?\d+) (\d+) (\d+) (\d+) (-?\d*\.?\d+),(-?\d*\.?\d+)/g,(e,t,n,r,i,a,o,s)=>`a${t},0 ${r} ${i} ${a} ${o},0`),n}function k(e){return!e||e===`none`||e===`transparent`||/rgba\(\s*\d+\s*,\s*\d+\s*,\s*\d+\s*,\s*0\s*\)/.test(e)}function A(e){return typeof e==`string`?e.includes(`var(`)||e.toLowerCase()===`currentcolor`:!1}var j=`__layerchart_canvas_styles_id`;function M(e){if(!e)return{};let t={},n=e.split(`;`).filter(e=>e.trim());for(let e of n){let n=e.indexOf(`:`);if(n===-1)continue;let r=e.slice(0,n).trim(),i=e.slice(n+1).trim();if(!r||!i)continue;let a=r.replace(/-([a-z])/g,(e,t)=>t.toUpperCase());t[a]=i}return t}var N=[`fill`,`fillOpacity`,`stroke`,`strokeOpacity`,`strokeWidth`,`strokeDasharray`,`opacity`,`fontWeight`,`fontSize`,`fontFamily`,`textAnchor`,`textAlign`,`paintOrder`];function P(e,{styles:t,classes:n}={}){if(typeof document>`u`){let e={...t};return e.fontSize||=`10px`,e.fontFamily||=`sans-serif`,e}try{let r=document.getElementById(j);return r||(r=document.createElementNS(`http://www.w3.org/2000/svg`,`svg`),r.setAttribute(`id`,j),r.style.display=`none`,e.after(r)),r=r,r.removeAttribute(`style`),r.removeAttribute(`class`),t&&Object.assign(r.style,t),r.style.display=`none`,n&&r.setAttribute(`class`,a(n).split(` `).filter(e=>!e.startsWith(`transition-`)).join(` `)),N.reduce((e,t)=>(e[t]=window.getComputedStyle(r)[t],e),{})}catch(e){return console.error(`Unable to get computed styles`,e),{}}}function F(e,{styles:t,classes:n}={}){return JSON.stringify({canvasId:e.id,styles:t,classes:n})}var I=w(P,{cacheKey:([e,t])=>F(e,t)});function L(e,t,n={},{applyText:r}={}){let i=M(n.style),a={...n.styles,...i},o;if(typeof document>`u`||n.classes==null&&!Object.values(a).some(A))o=a,typeof document>`u`&&!o.stroke&&!o.fill&&(o={...o,stroke:`black`});else{let{constantStyles:t,variableStyles:r}=Object.entries(a).reduce((e,[t,n])=>(A(n)?e.variableStyles[t]=n:(typeof n==`number`||typeof n==`string`)&&(e.constantStyles[t]=n),e),{constantStyles:{},variableStyles:{}});o={...I(e.canvas,{styles:r,classes:n.classes}),...t}}let s=o?.paintOrder===`stroke`?[`stroke`,`fill`]:[`fill`,`stroke`];if(o?.opacity&&(e.globalAlpha*=Number(o?.opacity)),r){let t=o.fontSize||`10px`,n=o.fontFamily||`sans-serif`;e.font=`${o.fontWeight||``} ${t} ${n}`.trim(),o.textAnchor===`middle`?e.textAlign=`center`:o.textAnchor===`end`?e.textAlign=`right`:o.textAnchor===`start`?e.textAlign=`left`:o.textAlign&&(e.textAlign=o.textAlign)}if(o.strokeDasharray&&o.strokeDasharray!==`none`){let t=o.strokeDasharray.split(/[\s,]+/).filter(e=>e.length>0).map(e=>Number(e.replace(`px`,``)));t.length>0&&t.every(e=>!isNaN(e))&&e.setLineDash(t)}for(let r of s)if(r===`fill`){let r=n.styles?.fill&&(typeof CanvasGradient<`u`&&n.styles?.fill instanceof CanvasGradient||typeof CanvasPattern<`u`&&n.styles?.fill instanceof CanvasPattern||!A(n.styles?.fill))?n.styles.fill:o?.fill;if(r&&!k(r)){let n=e.globalAlpha,i=Number(o?.fillOpacity);e.globalAlpha*=isNaN(i)?1:i,e.fillStyle=r,t.fill(e),e.globalAlpha=n}}else if(r===`stroke`){let r=n.styles?.stroke&&(typeof CanvasGradient<`u`&&n.styles?.stroke instanceof CanvasGradient||!A(n.styles?.stroke))?n.styles?.stroke:o?.stroke;if(r&&![`none`].includes(r)){let n=e.globalAlpha,i=Number(o?.strokeOpacity);Number(o?.opacity),!isNaN(i)&&i!==1&&(e.globalAlpha*=i),e.lineWidth=typeof o?.strokeWidth==`string`?Number(o?.strokeWidth?.replace(`px`,``)):o?.strokeWidth??1,e.strokeStyle=r,t.stroke(e),e.globalAlpha=n}}}function R(e,t,n={}){let r=new Path2D(t??``);L(e,{fill:e=>e.fill(r),stroke:e=>e.stroke(r)},n)}function z(e,t,n,r={}){t&&L(e,{fill:e=>e.fillText(t.toString(),n.x,n.y),stroke:e=>e.strokeText(t.toString(),n.x,n.y)},r,{applyText:!0})}function B(e,t,n={}){let{x:r,y:i,width:a,height:o,corners:s}=t,c=t.rx??0,l=t.ry??c;if(!(s&&!s.every(e=>e===s[0]))&&c===0&&l===0&&!s){L(e,{fill:e=>e.fillRect(r,i,a,o),stroke:e=>e.strokeRect(r,i,a,o)},n);return}if(typeof e.roundRect==`function`){e.beginPath(),e.roundRect(r,i,a,o,s??[c,l]),L(e,{fill:e=>e.fill(),stroke:e=>e.stroke()},n),e.closePath();return}if(s){R(e,T(r,i,a,o,s),n);return}let u=Math.min(c,a/2),d=Math.min(l,o/2);R(e,[`M${r+u},${i}`,`h${a-2*u}`,`a${u},${d} 0 0 1 ${u},${d}`,`v${o-2*d}`,`a${u},${d} 0 0 1 ${-u},${d}`,`h${2*u-a}`,`a${u},${d} 0 0 1 ${-u},${-d}`,`v${2*d-o}`,`a${u},${d} 0 0 1 ${u},${-d}`,`z`].join(` `),n)}function V(e,t,n={}){e.beginPath(),e.arc(t.cx,t.cy,t.r,0,2*Math.PI),L(e,{fill:e=>{e.fill()},stroke:e=>{e.stroke()}},n),e.closePath()}function H(e,t,n){let r=typeof window<`u`&&window.devicePixelRatio||1;return e.canvas.width=t*r,e.canvas.height=n*r,e.canvas.style.width=`${t}px`,e.canvas.style.height=`${n}px`,e.scale(r,r),{width:e.canvas.width,height:e.canvas.height}}function U(e,t,n){let r=(typeof window<`u`?window.devicePixelRatio:null)??1,[i,a,o,s]=e.getImageData(t*r,n*r,1,1).data;return{r:i,g:a,b:o,a:s}}function W(e,t,n,r,i,a){let o=e.createLinearGradient(t,n,r,i);for(let{offset:e,color:t}of a)o.addColorStop(e,t);return o}var G=w(W,{cacheKey:e=>JSON.stringify(e.slice(1))});function K(e,t,n,r,i){let a=document.createElement(`canvas`),o=a.getContext(`2d`);e.canvas.after(a);let s=(typeof window<`u`?window.devicePixelRatio:1)||1;a.width=Math.max(1,Math.round(t*s)),a.height=Math.max(1,Math.round(n*s)),o.scale(s,s),i&&(o.fillStyle=i,o.fillRect(0,0,t,n));for(let e of r){if(o.save(),e.type===`circle`)V(o,{cx:e.cx,cy:e.cy,r:e.r},{styles:{fill:e.fill,opacity:e.opacity}});else if(e.type===`line`)R(o,e.path,{styles:{stroke:e.stroke,strokeWidth:e.strokeWidth,opacity:e.opacity}});else if(e.type===`rect`){let t=typeof e.rx==`string`?J(e.rx,e.width):e.rx,n=typeof e.ry==`string`?J(e.ry,e.height):e.ry??t;B(o,{x:e.x,y:e.y,width:e.width,height:e.height,rx:t,ry:n},{styles:{fill:e.fill,opacity:e.opacity}})}o.restore()}let c=e.createPattern(a,`repeat`);if(c){let e=t/a.width,r=n/a.height;c.setTransform(new DOMMatrix([e,0,0,r,0,0]))}return e.canvas.parentElement?.removeChild(a),c}var q=w(K,{cacheKey:e=>JSON.stringify(e.slice(1))});function J(e,t){if(e.endsWith(`%`)){let n=parseFloat(e);return Number.isFinite(n)?t/2*(n/100):0}let n=parseFloat(e);return Number.isFinite(n)?n:0}function Y(e){return typeof e==`string`||typeof e==`function`}function X(...e){return e.some(e=>e!==void 0&&Y(e))}function Z(e,t,n,i=0){if(e==null)return i;if(typeof e==`number`)return e;let a;if(typeof e==`string`)a=r(t,e);else if(typeof e==`function`)a=e(t);else return i;if(n){let e=n(a);return typeof e==`number`&&isFinite(e)?e:i}return typeof a==`number`?a:i}function Q(e,t){if(e!=null){if(typeof e==`number`)return e;if(typeof e==`string`)return r(t,e);if(typeof e==`function`)return e(t)}}function $(e,t,n,r,i=[0,0]){let a=Q(e,n),o=Q(t,n);return a==null||o==null?i:r([a,o])??i}function te(e){return e.startsWith(`#`)||e.includes(`(`)}function ne(e,t,n,...i){if(e!=null){if(typeof e==`function`){let r=e(t,...i);return r==null?void 0:String(n?n(r):r)}if(typeof e==`string`){if(te(e))return e;let i=r(t,e);return i===void 0?e:String(n?n(i):i)}}}function re(e,t,...n){if(e!==void 0)return typeof e==`function`?e(t,...n):e}function ie(r){let i=t(r),a=t(()=>e(i)&&typeof e(i)==`object`?n(e(i)):e(i));return{get current(){return e(a)}}}export{s as C,d as S,O as _,$ as a,w as b,q as c,V as d,R as f,D as g,H as h,Z as i,I as l,z as m,X as n,re as o,B as p,ne as r,G as s,ie as t,U as u,E as v,c as w,u as x,T as y};
1
+ import{Z as e,vt as t}from"./DVCZGvXq.js";import{G as n,U as r,o as i}from"./DmKBckYv.js";import{s as a}from"./Sb-KFJGv.js";var o=new i(`GeoContext`);function s(){return o.getOr({projection:void 0})}function c(e){return o.set(e)}var l=new i(`LayerContext`);function u(){return l.get()}function d(e){return l.set(e)}var f=(e,t,n,r)=>{if(n===`length`||n===`prototype`||n===`arguments`||n===`caller`)return;let i=Object.getOwnPropertyDescriptor(e,n),a=Object.getOwnPropertyDescriptor(t,n);!p(i,a)&&r||Object.defineProperty(e,n,a)},p=function(e,t){return e===void 0||e.configurable||e.writable===t.writable&&e.enumerable===t.enumerable&&e.configurable===t.configurable&&(e.writable||e.value===t.value)},ee=(e,t)=>{let n=Object.getPrototypeOf(t);n!==Object.getPrototypeOf(e)&&Object.setPrototypeOf(e,n)},m=(e,t)=>`/* Wrapped ${e}*/\n${t}`,h=Object.getOwnPropertyDescriptor(Function.prototype,`toString`),g=Object.getOwnPropertyDescriptor(Function.prototype.toString,`name`),_=(e,t,n)=>{let r=n===``?``:`with ${n.trim()}() `,i=m.bind(null,r,t.toString());Object.defineProperty(i,"name",g);let{writable:a,enumerable:o,configurable:s}=h;Object.defineProperty(e,"toString",{value:i,writable:a,enumerable:o,configurable:s})};function v(e,t,{ignoreNonConfigurable:n=!1}={}){let{name:r}=e;for(let r of Reflect.ownKeys(t))f(e,t,r,n);return ee(e,t),_(e,t,r),e}var y=2147483647,b=new WeakMap,x=new WeakMap,S=new WeakMap;function C(e,t){let n=e.get(t);if(n){if(n.maxAge<=Date.now()){e.delete(t);return}return n}}function w(e,{cacheKey:t,cache:n=new Map,maxAge:r}={}){if(r===0)return e;if(typeof r==`number`&&Number.isFinite(r)){if(r>y)throw TypeError(`The \`maxAge\` option cannot exceed ${y}.`);if(r<0)throw TypeError("The `maxAge` option should not be a negative number.")}let i=function(...a){let o=t?t(a):a[0],s=C(n,o);if(s)return s.data;let c=e.apply(this,a),l=typeof r==`function`?r(...a):r;if(l!==void 0&&l!==1/0){if(!Number.isFinite(l))throw TypeError("The `maxAge` function must return a finite number, `0`, or `Infinity`.");if(l<=0)return c;if(l>y)throw TypeError(`The \`maxAge\` function result cannot exceed ${y}.`)}if(n.set(o,{data:c,maxAge:l===void 0||l===1/0?1/0:Date.now()+l}),l!==void 0&&l!==1/0){let e=setTimeout(()=>{n.delete(o),x.get(i)?.delete(e)},l);e.unref?.();let t=x.get(i)??new Set;t.add(e),x.set(i,t)}return c};return v(i,e,{ignoreNonConfigurable:!0}),b.set(i,n),S.set(i,t??(e=>e[0])),i}function T(e,t,n,r,[i,a,o,s]){let c=n-i-a,l=r-a-o,u=n-o-s,d=r-s-i;return[`M${e+i},${t}`,`h${c}`,a>0?`a${a},${a} 0 0 1 ${a},${a}`:``,`v${l}`,o>0?`a${o},${o} 0 0 1 ${-o},${o}`:``,`h${-u}`,s>0?`a${s},${s} 0 0 1 ${-s},${-s}`:``,`v${-d}`,i>0?`a${i},${i} 0 0 1 ${i},${-i}`:``,`z`].filter(Boolean).join(` `)}function E(e){if(e==null||e===``||e===`none`)return null;let t;return t=typeof e==`number`?[e,e]:Array.isArray(e)?e.filter(e=>Number.isFinite(e)):e.split(/[\s,]+/).filter(e=>e.length>0).map(e=>Number(e.replace(`px`,``))).filter(e=>Number.isFinite(e)),t.length===0||t.every(e=>e===0)?null:(t.length%2==1&&(t=[...t,...t]),t)}function D(e,t,n=`to right`){let r=[],i=0;for(let n=0;n<e.length;n++){let a=e[n],o=n%2==0?t:`transparent`;r.push(`${o} ${i}px ${i+a}px`),i+=a}return`repeating-linear-gradient(${n}, ${r.join(`, `)})`}function O(e,t=0){let n=e;return n=n.replace(/([MLTQCSAZ])(-?\d*\.?\d+),(-?\d*\.?\d+)/g,(e,n,r,i)=>`${n}${r},${t}`),n=n.replace(/([v])(-?\d*\.?\d+)/g,(e,t,n)=>`${t}0`),n=n.replace(/a(-?\d*\.?\d+),(-?\d*\.?\d+) (\d+) (\d+) (\d+) (-?\d*\.?\d+),(-?\d*\.?\d+)/g,(e,t,n,r,i,a,o,s)=>`a${t},0 ${r} ${i} ${a} ${o},0`),n}function k(e){return!e||e===`none`||e===`transparent`||/rgba\(\s*\d+\s*,\s*\d+\s*,\s*\d+\s*,\s*0\s*\)/.test(e)}function A(e){return typeof e==`string`?e.includes(`var(`)||e.toLowerCase()===`currentcolor`:!1}var j=`__layerchart_canvas_styles_id`;function M(e){if(!e)return{};let t={},n=e.split(`;`).filter(e=>e.trim());for(let e of n){let n=e.indexOf(`:`);if(n===-1)continue;let r=e.slice(0,n).trim(),i=e.slice(n+1).trim();if(!r||!i)continue;let a=r.replace(/-([a-z])/g,(e,t)=>t.toUpperCase());t[a]=i}return t}var N=[`fill`,`fillOpacity`,`stroke`,`strokeOpacity`,`strokeWidth`,`strokeDasharray`,`opacity`,`fontWeight`,`fontSize`,`fontFamily`,`textAnchor`,`textAlign`,`paintOrder`];function P(e,{styles:t,classes:n}={}){if(typeof document>`u`){let e={...t};return e.fontSize||=`10px`,e.fontFamily||=`sans-serif`,e}try{let r=document.getElementById(j);return r||(r=document.createElementNS(`http://www.w3.org/2000/svg`,`svg`),r.setAttribute(`id`,j),r.style.display=`none`,e.after(r)),r=r,r.removeAttribute(`style`),r.removeAttribute(`class`),t&&Object.assign(r.style,t),r.style.display=`none`,n&&r.setAttribute(`class`,a(n).split(` `).filter(e=>!e.startsWith(`transition-`)).join(` `)),N.reduce((e,t)=>(e[t]=window.getComputedStyle(r)[t],e),{})}catch(e){return console.error(`Unable to get computed styles`,e),{}}}function F(e,{styles:t,classes:n}={}){return JSON.stringify({canvasId:e.id,styles:t,classes:n})}var I=w(P,{cacheKey:([e,t])=>F(e,t)});function L(e,t,n={},{applyText:r}={}){let i=M(n.style),a={...n.styles,...i},o;if(typeof document>`u`||n.classes==null&&!Object.values(a).some(A))o=a,typeof document>`u`&&!o.stroke&&!o.fill&&(o={...o,stroke:`black`});else{let{constantStyles:t,variableStyles:r}=Object.entries(a).reduce((e,[t,n])=>(A(n)?e.variableStyles[t]=n:(typeof n==`number`||typeof n==`string`)&&(e.constantStyles[t]=n),e),{constantStyles:{},variableStyles:{}});o={...I(e.canvas,{styles:r,classes:n.classes}),...t}}let s=o?.paintOrder===`stroke`?[`stroke`,`fill`]:[`fill`,`stroke`];if(o?.opacity&&(e.globalAlpha*=Number(o?.opacity)),r){let t=o.fontSize||`10px`,n=o.fontFamily||`sans-serif`;e.font=`${o.fontWeight||``} ${t} ${n}`.trim(),o.textAnchor===`middle`?e.textAlign=`center`:o.textAnchor===`end`?e.textAlign=`right`:o.textAnchor===`start`?e.textAlign=`left`:o.textAlign&&(e.textAlign=o.textAlign)}if(o.strokeDasharray&&o.strokeDasharray!==`none`){let t=o.strokeDasharray.split(/[\s,]+/).filter(e=>e.length>0).map(e=>Number(e.replace(`px`,``)));t.length>0&&t.every(e=>!isNaN(e))&&e.setLineDash(t)}for(let r of s)if(r===`fill`){let r=n.styles?.fill&&(typeof CanvasGradient<`u`&&n.styles?.fill instanceof CanvasGradient||typeof CanvasPattern<`u`&&n.styles?.fill instanceof CanvasPattern||!A(n.styles?.fill))?n.styles.fill:o?.fill;if(r&&!k(r)){let n=e.globalAlpha,i=Number(o?.fillOpacity);e.globalAlpha*=isNaN(i)?1:i,e.fillStyle=r,t.fill(e),e.globalAlpha=n}}else if(r===`stroke`){let r=n.styles?.stroke&&(typeof CanvasGradient<`u`&&n.styles?.stroke instanceof CanvasGradient||!A(n.styles?.stroke))?n.styles?.stroke:o?.stroke;if(r&&![`none`].includes(r)){let n=e.globalAlpha,i=Number(o?.strokeOpacity);Number(o?.opacity),!isNaN(i)&&i!==1&&(e.globalAlpha*=i),e.lineWidth=typeof o?.strokeWidth==`string`?Number(o?.strokeWidth?.replace(`px`,``)):o?.strokeWidth??1,e.strokeStyle=r,t.stroke(e),e.globalAlpha=n}}}function R(e,t,n={}){let r=new Path2D(t??``);L(e,{fill:e=>e.fill(r),stroke:e=>e.stroke(r)},n)}function z(e,t,n,r={}){t&&L(e,{fill:e=>e.fillText(t.toString(),n.x,n.y),stroke:e=>e.strokeText(t.toString(),n.x,n.y)},r,{applyText:!0})}function B(e,t,n={}){let{x:r,y:i,width:a,height:o,corners:s}=t,c=t.rx??0,l=t.ry??c;if(!(s&&!s.every(e=>e===s[0]))&&c===0&&l===0&&!s){L(e,{fill:e=>e.fillRect(r,i,a,o),stroke:e=>e.strokeRect(r,i,a,o)},n);return}if(typeof e.roundRect==`function`){e.beginPath(),e.roundRect(r,i,a,o,s??[c,l]),L(e,{fill:e=>e.fill(),stroke:e=>e.stroke()},n),e.closePath();return}if(s){R(e,T(r,i,a,o,s),n);return}let u=Math.min(c,a/2),d=Math.min(l,o/2);R(e,[`M${r+u},${i}`,`h${a-2*u}`,`a${u},${d} 0 0 1 ${u},${d}`,`v${o-2*d}`,`a${u},${d} 0 0 1 ${-u},${d}`,`h${2*u-a}`,`a${u},${d} 0 0 1 ${-u},${-d}`,`v${2*d-o}`,`a${u},${d} 0 0 1 ${u},${-d}`,`z`].join(` `),n)}function V(e,t,n={}){e.beginPath(),e.arc(t.cx,t.cy,t.r,0,2*Math.PI),L(e,{fill:e=>{e.fill()},stroke:e=>{e.stroke()}},n),e.closePath()}function H(e,t,n){let r=typeof window<`u`&&window.devicePixelRatio||1;return e.canvas.width=t*r,e.canvas.height=n*r,e.canvas.style.width=`${t}px`,e.canvas.style.height=`${n}px`,e.scale(r,r),{width:e.canvas.width,height:e.canvas.height}}function U(e,t,n){let r=(typeof window<`u`?window.devicePixelRatio:null)??1,[i,a,o,s]=e.getImageData(t*r,n*r,1,1).data;return{r:i,g:a,b:o,a:s}}function W(e,t,n,r,i,a){let o=e.createLinearGradient(t,n,r,i);for(let{offset:e,color:t}of a)o.addColorStop(e,t);return o}var G=w(W,{cacheKey:e=>JSON.stringify(e.slice(1))});function K(e,t,n,r,i){let a=document.createElement(`canvas`),o=a.getContext(`2d`);e.canvas.after(a);let s=(typeof window<`u`?window.devicePixelRatio:1)||1;a.width=Math.max(1,Math.round(t*s)),a.height=Math.max(1,Math.round(n*s)),o.scale(s,s),i&&(o.fillStyle=i,o.fillRect(0,0,t,n));for(let e of r){if(o.save(),e.type===`circle`)V(o,{cx:e.cx,cy:e.cy,r:e.r},{styles:{fill:e.fill,opacity:e.opacity}});else if(e.type===`line`)R(o,e.path,{styles:{stroke:e.stroke,strokeWidth:e.strokeWidth,opacity:e.opacity}});else if(e.type===`rect`){let t=typeof e.rx==`string`?J(e.rx,e.width):e.rx,n=typeof e.ry==`string`?J(e.ry,e.height):e.ry??t;B(o,{x:e.x,y:e.y,width:e.width,height:e.height,rx:t,ry:n},{styles:{fill:e.fill,opacity:e.opacity}})}o.restore()}let c=e.createPattern(a,`repeat`);if(c){let e=t/a.width,r=n/a.height;c.setTransform(new DOMMatrix([e,0,0,r,0,0]))}return e.canvas.parentElement?.removeChild(a),c}var q=w(K,{cacheKey:e=>JSON.stringify(e.slice(1))});function J(e,t){if(e.endsWith(`%`)){let n=parseFloat(e);return Number.isFinite(n)?t/2*(n/100):0}let n=parseFloat(e);return Number.isFinite(n)?n:0}function Y(e){return typeof e==`string`||typeof e==`function`}function X(...e){return e.some(e=>e!==void 0&&Y(e))}function Z(e,t,r,i=0){if(e==null)return i;if(typeof e==`number`)return e;let a;if(typeof e==`string`)a=n(t,e);else if(typeof e==`function`)a=e(t);else return i;if(r){let e=r(a);return typeof e==`number`&&isFinite(e)?e:i}return typeof a==`number`?a:i}function Q(e,t){if(e!=null){if(typeof e==`number`)return e;if(typeof e==`string`)return n(t,e);if(typeof e==`function`)return e(t)}}function $(e,t,n,r,i=[0,0]){let a=Q(e,n),o=Q(t,n);return a==null||o==null?i:r([a,o])??i}function te(e){return e.startsWith(`#`)||e.includes(`(`)}function ne(e,t,r,...i){if(e!=null){if(typeof e==`function`){let n=e(t,...i);return n==null?void 0:String(r?r(n):n)}if(typeof e==`string`){if(te(e))return e;let i=n(t,e);return i===void 0?e:String(r?r(i):i)}}}function re(e,t,...n){if(e!==void 0)return typeof e==`function`?e(t,...n):e}function ie(n){let i=t(n),a=t(()=>e(i)&&typeof e(i)==`object`?r(e(i)):e(i));return{get current(){return e(a)}}}export{s as C,d as S,O as _,$ as a,w as b,q as c,V as d,R as f,D as g,H as h,Z as i,I as l,z as m,X as n,re as o,B as p,ne as r,G as s,ie as t,U as u,E as v,c as w,u as x,T as y};
@@ -0,0 +1,2 @@
1
+ const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["../nodes/0.BjQeslHk.js","../chunks/DVCZGvXq.js","../chunks/xihTtKlq.js","../assets/0.BfwUqNJ-.css","../nodes/1.DfqY5csg.js","../chunks/Cz3xtWLM.js","../chunks/DUJFqVVs.js","../nodes/2.CByBWAMF.js","../chunks/HclGiUj8.js","../chunks/DmKBckYv.js","../chunks/BUku_rSO.js","../chunks/D6rPBWFd.js","../chunks/Y5urAfNy.js","../chunks/Sb-KFJGv.js","../chunks/xefVn_UF.js","../chunks/BQHoVMm0.js","../chunks/BAneOF1f.js","../chunks/DRQZHPoe.js","../chunks/C58PZtCD.js","../assets/Group.DaJMILJc.css","../chunks/CuOP1eLc.js","../assets/Path.CvpwNZ6g.css","../chunks/CAgm0Ruv.js","../chunks/Db0q5_zr.js","../chunks/CCch3uox.js","../chunks/C7qhOD3U.js","../chunks/BID1NNRh.js","../chunks/BumHYZmq.js","../chunks/RobXhXPM.js","../chunks/Dfvzj6n2.js","../chunks/RBkNRIpl.js","../chunks/D26njVw7.js","../assets/Text.j9l35qB0.css","../chunks/CSrT-PUe.js","../assets/Tooltip.BsTJVNOF.css","../chunks/Cr8mHXFf.js","../chunks/C0tbX_qQ.js","../chunks/DodcabfQ.js","../chunks/BR2LaRms.js","../chunks/DnQEoGed.js","../chunks/BpoiI2_d.js","../assets/Rect.CtRaGMmQ.css","../chunks/CU11V7_a.js","../assets/Line.fkmsECm9.css","../chunks/B6Dt35mA.js","../assets/Circle.C5MKzgk2.css","../chunks/BoX17NrM.js","../chunks/DoNmKjPy.js","../assets/2.lkfjnM1s.css"])))=>i.map(i=>d[i]);
2
+ import{$ as e,B as t,Ct as n,G as r,H as i,L as a,P as o,V as s,Z as c,_t as l,at as u,c as d,ft as f,ht as p,i as m,jt as h,k as g,lt as _,n as v,ot as y,r as b,st as x,ut as S,vt as C,wt as w}from"../chunks/DVCZGvXq.js";import{t as T}from"../chunks/HclGiUj8.js";import"../chunks/xihTtKlq.js";var E={},D=i(`<div id="svelte-announcer" aria-live="assertive" aria-atomic="true" style="position: absolute; left: 0; top: 0; clip: rect(0 0 0 0); clip-path: inset(50%); overflow: hidden; white-space: nowrap; width: 1px; height: 1px"><!></div>`),O=i(`<!> <!>`,1);function k(i,b){w(b,!0);let T=m(b,`components`,23,()=>[]),E=m(b,`data_0`,3,null),k=m(b,`data_1`,3,null);x(()=>b.stores.page.set(b.page)),y(()=>{b.stores,b.page,b.constructors,T(),b.form,E(),k(),b.stores.page.notify()});let A=l(!1),j=l(!1),M=l(null);v(()=>{let t=b.stores.page.subscribe(()=>{c(A)&&(p(j,!0),e().then(()=>{p(M,document.title||`untitled page`,!0)}))});return p(A,!0),t});let N=C(()=>b.constructors[1]);var P=O(),F=S(P),I=e=>{let n=C(()=>b.constructors[0]);var r=s(),i=S(r);g(i,()=>c(n),(e,n)=>{d(n(e,{get data(){return E()},get form(){return b.form},get params(){return b.page.params},children:(e,n)=>{var r=s(),i=S(r);g(i,()=>c(N),(e,t)=>{d(t(e,{get data(){return k()},get form(){return b.form},get params(){return b.page.params}}),e=>T()[1]=e,()=>T()?.[1])}),t(e,r)},$$slots:{default:!0}}),e=>T()[0]=e,()=>T()?.[0])}),t(e,r)},L=e=>{let n=C(()=>b.constructors[0]);var r=s(),i=S(r);g(i,()=>c(n),(e,t)=>{d(t(e,{get data(){return E()},get form(){return b.form},get params(){return b.page.params}}),e=>T()[0]=e,()=>T()?.[0])}),t(e,r)};o(F,e=>{b.constructors[1]?e(I):e(L,-1)});var R=f(F,2),z=e=>{var n=D(),i=_(n),s=e=>{var n=r();u(()=>a(n,c(M))),t(e,n)};o(i,e=>{c(j)&&e(s)}),h(n),t(e,n)};o(R,e=>{c(A)&&e(z)}),t(i,P),n()}var A=b(k),j=[()=>T(()=>import(`../nodes/0.BjQeslHk.js`),__vite__mapDeps([0,1,2,3]),import.meta.url),()=>T(()=>import(`../nodes/1.DfqY5csg.js`),__vite__mapDeps([4,1,5,6,2]),import.meta.url),()=>T(()=>import(`../nodes/2.CByBWAMF.js`),__vite__mapDeps([7,1,8,2,9,6,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48]),import.meta.url)],M=[],N={"/":[2]},P={handleError:(({error:e})=>{console.error(e)}),reroute:(()=>{}),transport:{}},F=Object.fromEntries(Object.entries(P.transport).map(([e,t])=>[e,t.decode])),I=Object.fromEntries(Object.entries(P.transport).map(([e,t])=>[e,t.encode])),L=!1,R=(e,t)=>F[e](t),z=()=>T(()=>import(`../chunks/Bjy-W4x2.js`).then(e=>e.default),[],import.meta.url);export{R as decode,F as decoders,N as dictionary,I as encoders,z as get_error_template,L as hash,P as hooks,E as matchers,j as nodes,A as root,M as server_loads};
@@ -0,0 +1 @@
1
+ import{i as e,t}from"../chunks/Cz3xtWLM.js";export{e as load_css,t as start};
@@ -0,0 +1 @@
1
+ import{A as e,B as t,Lt as n,V as r,ut as i}from"../chunks/DVCZGvXq.js";import"../chunks/xihTtKlq.js";var a=n({prerender:()=>!0,ssr:()=>!1});function o(n,a){var o=r(),s=i(o);e(s,()=>a.children),t(n,o)}export{o as component,a as universal};
@@ -0,0 +1 @@
1
+ import{B as e,Ct as t,H as n,L as r,at as i,dt as a,ft as o,ut as s,wt as c}from"../chunks/DVCZGvXq.js";import{r as l}from"../chunks/Cz3xtWLM.js";import"../chunks/xihTtKlq.js";var u={get data(){return l.data},get error(){return l.error},get form(){return l.form},get params(){return l.params},get route(){return l.route},get state(){return l.state},get status(){return l.status},get url(){return l.url}},d=n(`<h1> </h1> <p> </p>`,1);function f(n,l){c(l,!0);var f=d(),p=s(f),m=a(p,!0),h=o(p,2),g=a(h,!0);i(()=>{r(m,u.status),r(g,u.error?.message)}),e(n,f),t()}export{f as component};