@oliasoft-open-source/charts-library 5.4.0 → 5.5.0-beta-2

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 (38) hide show
  1. package/dist/assets/{Color-AVL7NMMY-994VbFdE.js → Color-AVL7NMMY-Q1jtZEj4.js} +1 -1
  2. package/dist/assets/{DocsRenderer-PQXLIZUC-bAUpr2nb.js → DocsRenderer-PQXLIZUC-DH8_P5-s.js} +2 -2
  3. package/dist/assets/{bar-chart.stories-BgSpvkVq.js → bar-chart.stories-Dxq2MpGf.js} +1 -1
  4. package/dist/assets/client-D6AIHE8P.js +1 -0
  5. package/dist/assets/{components-Dh2frV4l.js → components-iTRs0GNG.js} +1 -1
  6. package/dist/assets/{get-draggableData-DaqZhgHK.js → get-draggableData-BhNReYKn.js} +1 -1
  7. package/dist/assets/{iframe-D8t45Jkw.js → iframe-BXFCu_25.js} +5 -5
  8. package/dist/assets/{legend-CPlrxuvf.js → legend-axxK95g8.js} +2 -2
  9. package/dist/assets/{legend-context-SNdgAaoM.js → legend-context-DWzlUfd5.js} +3 -3
  10. package/dist/assets/line-chart-DCxYmFrH.js +1 -0
  11. package/dist/assets/{line-chart.stories-ChpI0UHM.js → line-chart.stories-xyxJIMgK.js} +57 -45
  12. package/dist/assets/{line-chart.test-case.stories-B-SWX8h6.js → line-chart.test-case.stories-DtWmVHPp.js} +1 -1
  13. package/dist/assets/{pie-chart.stories-CBcjkrFA.js → pie-chart.stories-BnXOfjZV.js} +1 -1
  14. package/dist/assets/{react-18-DMqmYXih.js → react-18-BZQFBYmq.js} +1 -1
  15. package/dist/assets/{react-BgjAoB93.js → react-BnokuHUr.js} +1 -1
  16. package/dist/assets/{scatter-chart.stories-BqsR5bsR.js → scatter-chart.stories-CKOOIigg.js} +1 -1
  17. package/dist/common/common.interface.d.ts +9 -0
  18. package/dist/common/helpers/callout-helpers/callout-helpers.d.ts +5 -0
  19. package/dist/common/helpers/enums.d.ts +2 -1
  20. package/dist/common/helpers/get-chart-annotation.d.ts +5 -3
  21. package/dist/common/plugins/annotation-dragger-plugin/enums.d.ts +2 -1
  22. package/dist/iframe.html +1 -1
  23. package/dist/index.js +343 -110
  24. package/dist/index.json +1 -1
  25. package/dist/line-chart/plugins/callout-plugin/callout-plugin.d.ts +11 -0
  26. package/dist/line-chart/plugins/callout-plugin/helpers.d.ts +25 -0
  27. package/dist/line-chart/utils/get-line-chart-tooltips.d.ts +4 -8
  28. package/dist/project.json +1 -1
  29. package/dist/src/components/common/common.interface.d.ts +3 -0
  30. package/dist/src/components/common/helpers/callout-helpers/callout-helpers.d.ts +5 -0
  31. package/dist/src/components/common/helpers/enums.d.ts +2 -1
  32. package/dist/src/components/common/helpers/get-chart-annotation.d.ts +5 -3
  33. package/dist/src/components/common/plugins/annotation-dragger-plugin/enums.d.ts +2 -1
  34. package/dist/src/components/line-chart/plugins/callout-plugin/callout-plugin.d.ts +11 -0
  35. package/dist/src/components/line-chart/plugins/callout-plugin/helpers.d.ts +25 -0
  36. package/package.json +1 -1
  37. package/dist/assets/client-BDy5C6da.js +0 -1
  38. package/dist/assets/line-chart-WOEGLOk2.js +0 -1
@@ -1,4 +1,4 @@
1
- import{_t as e,at as t,dt as n,ft as r,gt as i,ht as a,it as o,mt as s,pt as c}from"./iframe-D8t45Jkw.js";import{$ as l,$t as u,Bt as d,Et as f,Ft as p,Gt as m,Ht as h,It as g,Jt as _,Kt as v,Lt as y,Q as b,Qt as x,Rt as S,S as C,Tt as w,Ut as T,V as E,Vt as D,Wt as O,Xt as k,Yt as A,Zt as j,an as M,at as N,bt as P,c as F,ct as I,dt as L,en as ee,ft as te,in as R,it as ne,j as re,lt as ie,m as ae,nn as oe,nt as z,ot as se,pt as ce,qt as le,rn as B,st as ue,t as de,tn as V,wt as fe,zt as pe}from"./legend-context-SNdgAaoM.js";var me={modes:{point(e,t){return ve(e,t,{intersect:!0})},nearest(e,t,n){return ye(e,t,n)},x(e,t,n){return ve(e,t,{intersect:n.intersect,axis:`x`})},y(e,t,n){return ve(e,t,{intersect:n.intersect,axis:`y`})}}};function he(e,t,n){return(me.modes[n.mode]||me.modes.nearest)(e,t,n)}function ge(e,t,n){return n!==`x`&&n!==`y`?e.inRange(t.x,t.y,`x`,!0)||e.inRange(t.x,t.y,`y`,!0):e.inRange(t.x,t.y,n,!0)}function _e(e,t,n){return n===`x`?{x:e.x,y:t.y}:n===`y`?{x:t.x,y:e.y}:t}function ve(e,t,n){return e.filter(e=>n.intersect?e.inRange(t.x,t.y):ge(e,t,n.axis))}function ye(e,t,n){let r=1/0;return ve(e,t,n).reduce((e,i)=>{let a=v(t,_e(t,i.getCenterPoint(),n.axis));return a<r?(e=[i],r=a):a===r&&e.push(i),e},[]).sort((e,t)=>e._index-t._index).slice(0,1)}function be(e,t,n){let r=Math.cos(n),i=Math.sin(n),a=t.x,o=t.y;return{x:a+r*(e.x-a)-i*(e.y-o),y:o+i*(e.x-a)+r*(e.y-o)}}var xe=(e,t)=>t>e||e.length>t.length&&e.slice(0,t.length)===t,Se=.001,Ce=(e,t,n)=>Math.min(n,Math.max(t,e)),we=(e,t)=>e.value>=e.start-t&&e.value<=e.end+t;function Te(e,t,n){for(let r of Object.keys(e))e[r]=Ce(e[r],t,n);return e}function Ee(e,t,n,r){return!e||!t||n<=0?!1:(e.x-t.x)**2+(e.y-t.y)**2<=(n+r)**2}function De(e,{x:t,y:n,x2:r,y2:i},a,{borderWidth:o,hitTolerance:s}){let c=(o+s)/2,l=e.x>=t-c-Se&&e.x<=r+c+Se,u=e.y>=n-c-Se&&e.y<=i+c+Se;return a===`x`?l:(a===`y`||l)&&u}function Oe(e,{rect:t,center:n},r,{rotation:i,borderWidth:a,hitTolerance:o}){return De(be(e,n,oe(-i)),t,r,{borderWidth:a,hitTolerance:o})}function ke(e,t){let{centerX:n,centerY:r}=e.getProps([`centerX`,`centerY`],t);return{x:n,y:r}}function Ae(e,t,n,r=!0){let i=n.split(`.`),a=0;for(let o of t.split(`.`)){let s=i[a++];if(parseInt(o,10)<parseInt(s,10))break;if(xe(s,o)){if(r)throw Error(`${e} v${n} is not supported. v${t} or newer is required.`);return!1}}return!0}var je=e=>typeof e==`string`&&e.endsWith(`%`),Me=e=>parseFloat(e)/100,Ne=e=>Ce(Me(e),0,1),Pe=(e,t)=>({x:e,y:t,x2:e,y2:t,width:0,height:0}),Fe={box:e=>Pe(e.centerX,e.centerY),doughnutLabel:e=>Pe(e.centerX,e.centerY),ellipse:e=>({centerX:e.centerX,centerY:e.centerX,radius:0,width:0,height:0}),label:e=>Pe(e.centerX,e.centerY),line:e=>Pe(e.x,e.y),point:e=>({centerX:e.centerX,centerY:e.centerY,radius:0,width:0,height:0}),polygon:e=>Pe(e.centerX,e.centerY)};function Ie(e,t){return t===`start`?0:t===`end`?e:je(t)?Ne(t)*e:e/2}function Le(e,t,n=!0){return typeof t==`number`?t:je(t)?(n?Ne(t):Me(t))*e:e}function Re(e,t){let{x:n,width:r}=e,i=t.textAlign;return i===`center`?n+r/2:i===`end`||i===`right`?n+r:n}function ze(e,t,{borderWidth:n,position:r,xAdjust:i,yAdjust:a},o){let s=x(o),c=t.width+(s?o.width:0)+n,l=t.height+(s?o.height:0)+n,u=Be(r),d=We(e.x,c,i,u.x),f=We(e.y,l,a,u.y);return{x:d,y:f,x2:d+c,y2:f+l,width:c,height:l,centerX:d+c/2,centerY:f+l/2}}function Be(e,t=`center`){return x(e)?{x:M(e.x,t),y:M(e.y,t)}:(e=M(e,t),{x:e,y:e})}var Ve=(e,t)=>e&&e.autoFit&&t<1;function He(e,t){let n=e.font,r=_(n)?n:[n];return Ve(e,t)?r.map(function(e){let n=ee(e);return n.size=Math.floor(e.size*t),n.lineHeight=e.lineHeight,ee(n)}):r.map(e=>ee(e))}function Ue(e){return e&&(m(e.xValue)||m(e.yValue))}function We(e,t,n=0,r){return e-Ie(t,r)+n}function Ge(e,t,n){let r=n.init;if(r){if(r===!0)return qe(t,n)}else return;return Je(e,t,n)}function Ke(e,t,n){let r=!1;return t.forEach(t=>{A(e[t])?(r=!0,n[t]=e[t]):m(n[t])&&delete n[t]}),r}function qe(e,t){return Fe[t.type||`line`](e)}function Je(e,t,n){let r=h(n.init,[{chart:e,properties:t,options:n}]);if(r===!0)return qe(t,n);if(x(r))return r}var Ye=new Map,Xe=e=>isNaN(e)||e<=0,Ze=e=>e.reduce(function(e,t){return e+=t.string,e},``);function Qe(e){if(e&&typeof e==`object`){let t=e.toString();return t===`[object HTMLImageElement]`||t===`[object HTMLCanvasElement]`}}function $e(e,{x:t,y:n},r){r&&(e.translate(t,n),e.rotate(oe(r)),e.translate(-t,-n))}function et(e,t){if(t&&t.borderWidth)return e.lineCap=t.borderCapStyle||`butt`,e.setLineDash(t.borderDash),e.lineDashOffset=t.borderDashOffset,e.lineJoin=t.borderJoinStyle||`miter`,e.lineWidth=t.borderWidth,e.strokeStyle=t.borderColor,!0}function tt(e,t){e.shadowColor=t.backgroundShadowColor,e.shadowBlur=t.shadowBlur,e.shadowOffsetX=t.shadowOffsetX,e.shadowOffsetY=t.shadowOffsetY}function nt(e,t){let n=t.content;if(Qe(n))return{width:Le(n.width,t.width),height:Le(n.height,t.height)};let r=He(t),i=t.textStrokeWidth,a=_(n)?n:[n],o=a.join()+Ze(r)+i+(e._measureText?`-spriting`:``);return Ye.has(o)||Ye.set(o,ct(e,a,r,i)),Ye.get(o)}function rt(e,t,n){let{x:r,y:i,width:a,height:o}=t;e.save(),tt(e,n);let s=et(e,n);e.fillStyle=n.backgroundColor,e.beginPath(),D(e,{x:r,y:i,w:a,h:o,radius:Te(B(n.borderRadius),0,Math.min(a,o)/2)}),e.closePath(),e.fill(),s&&(e.shadowColor=n.borderShadowColor,e.stroke()),e.restore()}function it(e,t,n,r){let i=n.content;if(Qe(i)){e.save(),e.globalAlpha=dt(n.opacity,i.style.opacity),e.drawImage(i,t.x,t.y,t.width,t.height),e.restore();return}let a=_(i)?i:[i],o=He(n,r),s=n.color,c=_(s)?s:[s],l=Re(t,n),u=t.y+n.textStrokeWidth/2;e.save(),e.textBaseline=`middle`,e.textAlign=n.textAlign,at(e,n)&&lt(e,{x:l,y:u},a,o),ut(e,{x:l,y:u},a,{fonts:o,colors:c}),e.restore()}function at(e,t){if(t.textStrokeWidth>0)return e.lineJoin=`round`,e.miterLimit=2,e.lineWidth=t.textStrokeWidth,e.strokeStyle=t.textStrokeColor,!0}function ot(e,t,n,r){let{radius:i,options:a}=t,o=a.pointStyle,s=a.rotation,c=(s||0)*S;if(Qe(o)){e.save(),e.translate(n,r),e.rotate(c),e.drawImage(o,-o.width/2,-o.height/2,o.width,o.height),e.restore();return}Xe(i)||st(e,{x:n,y:r,radius:i,rotation:s,style:o,rad:c})}function st(e,{x:t,y:n,radius:r,rotation:i,style:a,rad:o}){let s,c,l,u;switch(e.beginPath(),a){default:e.arc(t,n,r,0,pe),e.closePath();break;case`triangle`:e.moveTo(t+Math.sin(o)*r,n-Math.cos(o)*r),o+=d,e.lineTo(t+Math.sin(o)*r,n-Math.cos(o)*r),o+=d,e.lineTo(t+Math.sin(o)*r,n-Math.cos(o)*r),e.closePath();break;case`rectRounded`:u=r*.516,l=r-u,s=Math.cos(o+y)*l,c=Math.sin(o+y)*l,e.arc(t-s,n-c,u,o-g,o-p),e.arc(t+c,n-s,u,o-p,o),e.arc(t+s,n+c,u,o,o+p),e.arc(t-c,n+s,u,o+p,o+g),e.closePath();break;case`rect`:if(!i){l=Math.SQRT1_2*r,e.rect(t-l,n-l,2*l,2*l);break}o+=y;case`rectRot`:s=Math.cos(o)*r,c=Math.sin(o)*r,e.moveTo(t-s,n-c),e.lineTo(t+c,n-s),e.lineTo(t+s,n+c),e.lineTo(t-c,n+s),e.closePath();break;case`crossRot`:o+=y;case`cross`:s=Math.cos(o)*r,c=Math.sin(o)*r,e.moveTo(t-s,n-c),e.lineTo(t+s,n+c),e.moveTo(t+c,n-s),e.lineTo(t-c,n+s);break;case`star`:s=Math.cos(o)*r,c=Math.sin(o)*r,e.moveTo(t-s,n-c),e.lineTo(t+s,n+c),e.moveTo(t+c,n-s),e.lineTo(t-c,n+s),o+=y,s=Math.cos(o)*r,c=Math.sin(o)*r,e.moveTo(t-s,n-c),e.lineTo(t+s,n+c),e.moveTo(t+c,n-s),e.lineTo(t-c,n+s);break;case`line`:s=Math.cos(o)*r,c=Math.sin(o)*r,e.moveTo(t-s,n-c),e.lineTo(t+s,n+c);break;case`dash`:e.moveTo(t,n),e.lineTo(t+Math.cos(o)*r,n+Math.sin(o)*r);break}e.fill()}function ct(e,t,n,r){e.save();let i=t.length,a=0,o=r;for(let s=0;s<i;s++){let i=n[Math.min(s,n.length-1)];e.font=i.string;let c=t[s];a=Math.max(a,e.measureText(c).width+r),o+=i.lineHeight}return e.restore(),{width:a,height:o}}function lt(e,{x:t,y:n},r,i){e.beginPath();let a=0;r.forEach(function(r,o){let s=i[Math.min(o,i.length-1)],c=s.lineHeight;e.font=s.string,e.strokeText(r,t,n+c/2+a),a+=c}),e.stroke()}function ut(e,{x:t,y:n},r,{fonts:i,colors:a}){let o=0;r.forEach(function(r,s){let c=a[Math.min(s,a.length-1)],l=i[Math.min(s,i.length-1)],u=l.lineHeight;e.beginPath(),e.font=l.string,e.fillStyle=c,e.fillText(r,t,n+u/2+o),o+=u,e.fill()})}function dt(e,t){let n=k(e)?e:t;return k(n)?Ce(n,0,1):1}var ft=[`left`,`bottom`,`top`,`right`];function pt(e,t){let{pointX:n,pointY:r,options:i}=t,a=i.callout,o=a&&a.display&&vt(t,a);if(!o||bt(t,a,o))return;if(e.save(),e.beginPath(),!et(e,a))return e.restore();let{separatorStart:s,separatorEnd:c}=mt(t,o),{sideStart:l,sideEnd:u}=gt(t,o,s);(a.margin>0||i.borderWidth===0)&&(e.moveTo(s.x,s.y),e.lineTo(c.x,c.y)),e.moveTo(l.x,l.y),e.lineTo(u.x,u.y);let d=be({x:n,y:r},t.getCenterPoint(),oe(-t.rotation));e.lineTo(d.x,d.y),e.stroke(),e.restore()}function mt(e,t){let{x:n,y:r,x2:i,y2:a}=e,o=ht(e,t),s,c;return t===`left`||t===`right`?(s={x:n+o,y:r},c={x:s.x,y:a}):(s={x:n,y:r+o},c={x:i,y:s.y}),{separatorStart:s,separatorEnd:c}}function ht(e,t){let{width:n,height:r,options:i}=e,a=i.callout.margin+i.borderWidth/2;return t===`right`?n+a:t===`bottom`?r+a:-a}function gt(e,t,n){let{y:r,width:i,height:a,options:o}=e,s=o.callout.start,c=_t(t,o.callout),l,u;return t===`left`||t===`right`?(l={x:n.x,y:r+Le(a,s)},u={x:l.x+c,y:l.y}):(l={x:n.x+Le(i,s),y:n.y},u={x:l.x,y:l.y+c}),{sideStart:l,sideEnd:u}}function _t(e,t){let n=t.side;return e===`left`||e===`top`?-n:n}function vt(e,t){let n=t.position;return ft.includes(n)?n:yt(e,t)}function yt(e,t){let{x:n,y:r,x2:i,y2:a,width:o,height:s,pointX:c,pointY:l,centerX:u,centerY:d,rotation:f}=e,p={x:u,y:d},m=t.start,h=Le(o,m),g=Le(s,m),_=[n,n+h,n+h,i],y=[r+g,a,r,a],b=[];for(let e=0;e<4;e++){let t=be({x:_[e],y:y[e]},p,oe(f));b.push({position:ft[e],distance:v(t,{x:c,y:l})})}return b.sort((e,t)=>e.distance-t.distance)[0].position}function bt(e,t,n){let{pointX:r,pointY:i}=e,a=t.margin,o=r,s=i;return n===`left`?o+=a:n===`right`?o-=a:n===`top`?s+=a:n===`bottom`&&(s-=a),e.inRange(o,s)}var xt={xScaleID:{min:`xMin`,max:`xMax`,start:`left`,end:`right`,startProp:`x`,endProp:`x2`},yScaleID:{min:`yMin`,max:`yMax`,start:`bottom`,end:`top`,startProp:`y`,endProp:`y2`}};function St(e,t,n){return t=typeof t==`number`?t:e.parse(t),j(t)?e.getPixelForValue(t):n}function Ct(e,t,n){let r=t[n];if(r||n===`scaleID`)return r;let i=n.charAt(0),a=Object.values(e).filter(e=>e.axis&&e.axis===i);return a.length?a[0].id:i}function wt(e,t){if(e){let n=e.options.reverse;return{start:St(e,t.min,n?t.end:t.start),end:St(e,t.max,n?t.start:t.end)}}}function Tt(e,t){let{chartArea:n,scales:r}=e,i=r[Ct(r,t,`xScaleID`)],a=r[Ct(r,t,`yScaleID`)],o=n.width/2,s=n.height/2;return i&&(o=St(i,t.xValue,i.left+i.width/2)),a&&(s=St(a,t.yValue,a.top+a.height/2)),{x:o,y:s}}function Et(e,t){let n=e.scales,r=n[Ct(n,t,`xScaleID`)],i=n[Ct(n,t,`yScaleID`)];if(!r&&!i)return{};let{left:a,right:o}=r||e.chartArea,{top:s,bottom:c}=i||e.chartArea,l=jt(r,{min:t.xMin,max:t.xMax,start:a,end:o});a=l.start,o=l.end;let u=jt(i,{min:t.yMin,max:t.yMax,start:c,end:s});return s=u.start,c=u.end,{x:a,y:s,x2:o,y2:c,width:o-a,height:c-s,centerX:a+(o-a)/2,centerY:s+(c-s)/2}}function Dt(e,t){if(!Ue(t)){let n=Et(e,t),r=t.radius;(!r||isNaN(r))&&(r=Math.min(n.width,n.height)/2,t.radius=r);let i=r*2,a=n.centerX+t.xAdjust,o=n.centerY+t.yAdjust;return{x:a-r,y:o-r,x2:a+r,y2:o+r,centerX:a,centerY:o,width:i,height:i,radius:r}}return At(e,t)}function Ot(e,t){let{scales:n,chartArea:r}=e,i=n[t.scaleID],a={x:r.left,y:r.top,x2:r.right,y2:r.bottom};return i?Mt(i,a,t):Nt(n,a,t),a}function kt(e,t){let n=Et(e,t);return n.initProperties=Ge(e,n,t),n.elements=[{type:`label`,optionScope:`label`,properties:Lt(e,n,t),initProperties:n.initProperties}],n}function At(e,t){let n=Tt(e,t),r=t.radius*2;return{x:n.x-t.radius+t.xAdjust,y:n.y-t.radius+t.yAdjust,x2:n.x+t.radius+t.xAdjust,y2:n.y+t.radius+t.yAdjust,centerX:n.x+t.xAdjust,centerY:n.y+t.yAdjust,radius:t.radius,width:r,height:r}}function jt(e,t){let n=wt(e,t)||t;return{start:Math.min(n.start,n.end),end:Math.max(n.start,n.end)}}function Mt(e,t,n){let r=St(e,n.value,NaN),i=St(e,n.endValue,r);e.isHorizontal()?(t.x=r,t.x2=i):(t.y=r,t.y2=i)}function Nt(e,t,n){for(let r of Object.keys(xt)){let i=e[Ct(e,n,r)];if(i){let{min:e,max:a,start:o,end:s,startProp:c,endProp:l}=xt[r],u=wt(i,{min:n[e],max:n[a],start:i[o],end:i[s]});t[c]=u.start,t[l]=u.end}}}function Pt({properties:e,options:t},n,r,i){let{x:a,x2:o,width:s}=e;return It({start:a,end:o,size:s,borderWidth:t.borderWidth},{position:r.x,padding:{start:i.left,end:i.right},adjust:t.label.xAdjust,size:n.width})}function Ft({properties:e,options:t},n,r,i){let{y:a,y2:o,height:s}=e;return It({start:a,end:o,size:s,borderWidth:t.borderWidth},{position:r.y,padding:{start:i.top,end:i.bottom},adjust:t.label.yAdjust,size:n.height})}function It(e,t){let{start:n,end:r,borderWidth:i}=e,{position:a,padding:{start:o,end:s},adjust:c}=t,l=r-i-n-o-s-t.size;return n+i/2+c+Ie(l,a)}function Lt(e,t,n){let r=n.label;r.backgroundColor=`transparent`,r.callout.display=!1;let i=Be(r.position),a=V(r.padding),o=nt(e.ctx,r),s=Pt({properties:t,options:n},o,i,a),c=Ft({properties:t,options:n},o,i,a),l=o.width+a.width,u=o.height+a.height;return{x:s,y:c,x2:s+l,y2:c+u,width:l,height:u,centerX:s+l/2,centerY:c+u/2,rotation:r.rotation}}var Rt=[`enter`,`leave`],zt=Rt.concat(`click`);function Bt(e,t,n){t.listened=Ke(n,zt,t.listeners),t.moveListened=!1,Rt.forEach(e=>{A(n[e])&&(t.moveListened=!0)}),(!t.listened||!t.moveListened)&&t.annotations.forEach(e=>{!t.listened&&A(e.click)&&(t.listened=!0),t.moveListened||Rt.forEach(n=>{A(e[n])&&(t.listened=!0,t.moveListened=!0)})})}function Vt(e,t,n){if(e.listened)switch(t.type){case`mousemove`:case`mouseout`:return Ht(e,t,n);case`click`:return Wt(e,t,n)}}function Ht(e,t,n){if(!e.moveListened)return;let r;r=t.type===`mousemove`?he(e.visibleElements,t,n.interaction):[];let i=e.hovered;e.hovered=r;let a={state:e,event:t},o=Ut(a,`leave`,i,r);return Ut(a,`enter`,r,i)||o}function Ut({state:e,event:t},n,r,i){let a;for(let o of r)i.indexOf(o)<0&&(a=Gt(o.options[n]||e.listeners[n],o,t)||a);return a}function Wt(e,t,n){let r=e.listeners,i=he(e.visibleElements,t,n.interaction),a;for(let e of i)a=Gt(e.options.click||r.click,e,t)||a;return a}function Gt(e,t,n){return h(e,[t.$context,n])===!0}var Kt=[`afterDraw`,`beforeDraw`];function qt(e,t,n){let r=t.visibleElements;t.hooked=Ke(n,Kt,t.hooks),t.hooked||r.forEach(e=>{t.hooked||Kt.forEach(n=>{A(e.options[n])&&(t.hooked=!0)})})}function Jt(e,t,n){if(e.hooked)return h(t.options[n]||e.hooks[n],[t.$context])}function Yt(e,t,n){let r=tn(e.scales,t,n),i=Zt(t,r,`min`,`suggestedMin`);i=Zt(t,r,`max`,`suggestedMax`)||i,i&&A(t.handleTickRangeOptions)&&t.handleTickRangeOptions()}function Xt(e,t){for(let n of e)$t(n,t)}function Zt(e,t,n,r){if(j(t[n])&&!Qt(e.options,n,r)){let r=e[n]!==t[n];return e[n]=t[n],r}}function Qt(e,t,n){return m(e[t])||m(e[n])}function $t(e,t){for(let n of[`scaleID`,`xScaleID`,`yScaleID`]){let r=Ct(t,e,n);r&&!t[r]&&en(e,n)&&console.warn(`No scale found with id '${r}' for annotation '${e.id}'`)}}function en(e,t){if(t===`scaleID`)return!0;let n=t.charAt(0);for(let t of[`Min`,`Max`,`Value`])if(m(e[n+t]))return!0;return!1}function tn(e,t,n){let r=t.axis,i=t.id,a=r+`ScaleID`,o={min:M(t.min,-1/0),max:M(t.max,1/0)};for(let s of n)s.scaleID===i?nn(s,t,[`value`,`endValue`],o):Ct(e,s,a)===i&&nn(s,t,[r+`Min`,r+`Max`,r+`Value`],o);return o}function nn(e,t,n,r){for(let i of n){let n=e[i];if(m(n)){let e=t.parse(n);r.min=Math.min(r.min,e),r.max=Math.max(r.max,e)}}}var rn=class extends f{inRange(e,t,n,r){let{x:i,y:a}=be({x:e,y:t},this.getCenterPoint(r),oe(-this.options.rotation));return De({x:i,y:a},this.getProps([`x`,`y`,`x2`,`y2`],r),n,this.options)}getCenterPoint(e){return ke(this,e)}draw(e){e.save(),$e(e,this.getCenterPoint(),this.options.rotation),rt(e,this,this.options),e.restore()}get label(){return this.elements&&this.elements[0]}resolveElementProperties(e,t){return kt(e,t)}};rn.id=`boxAnnotation`,rn.defaults={adjustScaleRange:!0,backgroundShadowColor:`transparent`,borderCapStyle:`butt`,borderDash:[],borderDashOffset:0,borderJoinStyle:`miter`,borderRadius:0,borderShadowColor:`transparent`,borderWidth:1,display:!0,init:void 0,hitTolerance:0,label:{backgroundColor:`transparent`,borderWidth:0,callout:{display:!1},color:`black`,content:null,display:!1,drawTime:void 0,font:{family:void 0,lineHeight:void 0,size:void 0,style:void 0,weight:`bold`},height:void 0,hitTolerance:void 0,opacity:void 0,padding:6,position:`center`,rotation:void 0,textAlign:`start`,textStrokeColor:void 0,textStrokeWidth:0,width:void 0,xAdjust:0,yAdjust:0,z:void 0},rotation:0,shadowBlur:0,shadowOffsetX:0,shadowOffsetY:0,xMax:void 0,xMin:void 0,xScaleID:void 0,yMax:void 0,yMin:void 0,yScaleID:void 0,z:0},rn.defaultRoutes={borderColor:`color`,backgroundColor:`color`},rn.descriptors={label:{_fallback:!0}};var an=class extends f{inRange(e,t,n,r){return Oe({x:e,y:t},{rect:this.getProps([`x`,`y`,`x2`,`y2`],r),center:this.getCenterPoint(r)},n,{rotation:this.rotation,borderWidth:0,hitTolerance:this.options.hitTolerance})}getCenterPoint(e){return ke(this,e)}draw(e){let t=this.options;!t.display||!t.content||(dn(e,this),e.save(),$e(e,this.getCenterPoint(),this.rotation),it(e,this,t,this._fitRatio),e.restore())}resolveElementProperties(e,t){let n=on(e,t);if(!n)return{};let{controllerMeta:r,point:i,radius:a}=cn(e,t,n),o=nt(e.ctx,t),s=ln(o,a);Ve(t,s)&&(o={width:o.width*s,height:o.height*s});let{position:c,xAdjust:l,yAdjust:u}=t,d=ze(i,o,{borderWidth:0,position:c,xAdjust:l,yAdjust:u});return{initProperties:Ge(e,d,t),...d,...r,rotation:t.rotation,_fitRatio:s}}};an.id=`doughnutLabelAnnotation`,an.defaults={autoFit:!0,autoHide:!0,backgroundColor:`transparent`,backgroundShadowColor:`transparent`,borderColor:`transparent`,borderDash:[],borderDashOffset:0,borderJoinStyle:`miter`,borderShadowColor:`transparent`,borderWidth:0,color:`black`,content:null,display:!0,font:{family:void 0,lineHeight:void 0,size:void 0,style:void 0,weight:void 0},height:void 0,hitTolerance:0,init:void 0,opacity:void 0,position:`center`,rotation:0,shadowBlur:0,shadowOffsetX:0,shadowOffsetY:0,spacing:1,textAlign:`center`,textStrokeColor:void 0,textStrokeWidth:0,width:void 0,xAdjust:0,yAdjust:0},an.defaultRoutes={};function on(e,t){return e.getSortedVisibleDatasetMetas().reduce(function(n,r){let i=r.controller;return i instanceof w&&sn(e,t,r.data)&&(!n||i.innerRadius<n.controller.innerRadius)&&i.options.circumference>=90?r:n},void 0)}function sn(e,t,n){if(!t.autoHide)return!0;for(let t=0;t<n.length;t++)if(!n[t].hidden&&e.getDataVisibility(t))return!0}function cn({chartArea:e},t,n){let{left:r,top:i,right:a,bottom:o}=e,{innerRadius:s,offsetX:c,offsetY:l}=n.controller,u=(r+a)/2+c,d=(i+o)/2+l,f={left:Math.max(u-s,r),right:Math.min(u+s,a),top:Math.max(d-s,i),bottom:Math.min(d+s,o)},p={x:(f.left+f.right)/2,y:(f.top+f.bottom)/2},m=t.spacing+t.borderWidth/2,h=s-m,g=p.y>d;return{controllerMeta:{_centerX:u,_centerY:d,_radius:h,_counterclockwise:g,...un(g?i+m:o-m,u,d,h)},point:p,radius:Math.min(s,Math.min(f.right-f.left,f.bottom-f.top)/2)}}function ln({width:e,height:t},n){let r=Math.sqrt(e**2+t**2);return n*2/r}function un(e,t,n,r){let i=(n-e)**2,a=r**2,o=t*-2,s=t**2+i-a,c=o**2-4*s;if(c<=0)return{_startAngle:0,_endAngle:pe};let l=(-o-Math.sqrt(c))/2,u=(-o+Math.sqrt(c))/2;return{_startAngle:le({x:t,y:n},{x:l,y:e}).angle,_endAngle:le({x:t,y:n},{x:u,y:e}).angle}}function dn(e,t){let{_centerX:n,_centerY:r,_radius:i,_startAngle:a,_endAngle:o,_counterclockwise:s,options:c}=t;e.save();let l=et(e,c);e.fillStyle=c.backgroundColor,e.beginPath(),e.arc(n,r,i,a,o,s),e.closePath(),e.fill(),l&&e.stroke(),e.restore()}var fn=class extends f{inRange(e,t,n,r){return Oe({x:e,y:t},{rect:this.getProps([`x`,`y`,`x2`,`y2`],r),center:this.getCenterPoint(r)},n,{rotation:this.rotation,borderWidth:this.options.borderWidth,hitTolerance:this.options.hitTolerance})}getCenterPoint(e){return ke(this,e)}draw(e){let t=this.options,n=!m(this._visible)||this._visible;!t.display||!t.content||!n||(e.save(),$e(e,this.getCenterPoint(),this.rotation),pt(e,this),rt(e,this,t),it(e,pn(this),t),e.restore())}resolveElementProperties(e,t){let n;if(Ue(t))n=Tt(e,t);else{let{centerX:r,centerY:i}=Et(e,t);n={x:r,y:i}}let r=V(t.padding),i=nt(e.ctx,t),a=ze(n,i,t,r);return{initProperties:Ge(e,a,t),pointX:n.x,pointY:n.y,...a,rotation:t.rotation}}};fn.id=`labelAnnotation`,fn.defaults={adjustScaleRange:!0,backgroundColor:`transparent`,backgroundShadowColor:`transparent`,borderCapStyle:`butt`,borderDash:[],borderDashOffset:0,borderJoinStyle:`miter`,borderRadius:0,borderShadowColor:`transparent`,borderWidth:0,callout:{borderCapStyle:`butt`,borderColor:void 0,borderDash:[],borderDashOffset:0,borderJoinStyle:`miter`,borderWidth:1,display:!1,margin:5,position:`auto`,side:5,start:`50%`},color:`black`,content:null,display:!0,font:{family:void 0,lineHeight:void 0,size:void 0,style:void 0,weight:void 0},height:void 0,hitTolerance:0,init:void 0,opacity:void 0,padding:6,position:`center`,rotation:0,shadowBlur:0,shadowOffsetX:0,shadowOffsetY:0,textAlign:`center`,textStrokeColor:void 0,textStrokeWidth:0,width:void 0,xAdjust:0,xMax:void 0,xMin:void 0,xScaleID:void 0,xValue:void 0,yAdjust:0,yMax:void 0,yMin:void 0,yScaleID:void 0,yValue:void 0,z:0},fn.defaultRoutes={borderColor:`color`};function pn({x:e,y:t,width:n,height:r,options:i}){let a=i.borderWidth/2,o=V(i.padding);return{x:e+o.left+a,y:t+o.top+a,width:n-o.left-o.right-i.borderWidth,height:r-o.top-o.bottom-i.borderWidth}}var mn=(e,t,n)=>({x:e.x+n*(t.x-e.x),y:e.y+n*(t.y-e.y)}),hn=(e,t,n)=>mn(t,n,Math.abs((e-t.y)/(n.y-t.y))).x,gn=(e,t,n)=>mn(t,n,Math.abs((e-t.x)/(n.x-t.x))).y,_n=e=>e*e,vn=(e,t,{x:n,y:r,x2:i,y2:a},o)=>o===`y`?{start:Math.min(r,a),end:Math.max(r,a),value:t}:{start:Math.min(n,i),end:Math.max(n,i),value:e},yn=(e,t,n,r)=>(1-r)*(1-r)*e+2*(1-r)*r*t+r*r*n,bn=(e,t,n,r)=>({x:yn(e.x,t.x,n.x,r),y:yn(e.y,t.y,n.y,r)}),xn=(e,t,n,r)=>2*(1-r)*(t-e)+2*r*(n-t),Sn=(e,t,n,r)=>-Math.atan2(xn(e.x,t.x,n.x,r),xn(e.y,t.y,n.y,r))+.5*g,Cn=class extends f{inRange(e,t,n,r){let i=(this.options.borderWidth+this.options.hitTolerance)/2;if(n!==`x`&&n!==`y`){let n={mouseX:e,mouseY:t},{path:a,ctx:o}=this;if(a){et(o,this.options),o.lineWidth+=this.options.hitTolerance;let{chart:i}=this.$context,s=e*i.currentDevicePixelRatio,c=t*i.currentDevicePixelRatio,l=o.isPointInStroke(a,s,c)||En(this,n,r);return o.restore(),l}let s=_n(i);return ree(this,n,s,r)||En(this,n,r)}return eee(this,{mouseX:e,mouseY:t},n,{hitSize:i,useFinalPosition:r})}getCenterPoint(e){return ke(this,e)}draw(e){let{x:t,y:n,x2:r,y2:i,cp:a,options:o}=this;if(e.save(),!et(e,o))return e.restore();tt(e,o);let s=Math.sqrt((r-t)**2+(i-n)**2);if(o.curve&&a)return dee(e,this,a,s),e.restore();let{startOpts:c,endOpts:l,startAdjust:u,endAdjust:d}=kn(this),f=Math.atan2(i-n,r-t);e.translate(t,n),e.rotate(f),e.beginPath(),e.moveTo(0+u,0),e.lineTo(s-d,0),e.shadowColor=o.borderShadowColor,e.stroke(),jn(e,0,u,c),jn(e,s,-d,l),e.restore()}get label(){return this.elements&&this.elements[0]}resolveElementProperties(e,t){let n=Ot(e,t),{x:r,y:i,x2:a,y2:o}=n,s=tee(n,e.chartArea),c=s?nee({x:r,y:i},{x:a,y:o},e.chartArea):{x:r,y:i,x2:a,y2:o,width:Math.abs(a-r),height:Math.abs(o-i)};c.centerX=(a+r)/2,c.centerY=(o+i)/2,c.initProperties=Ge(e,c,t),t.curve&&(c.cp=uee(c,t,v({x:c.x,y:c.y},{x:c.x2,y:c.y2})));let l=iee(e,c,t.label);return l._visible=s,c.elements=[{type:`label`,optionScope:`label`,properties:l,initProperties:c.initProperties}],c}};Cn.id=`lineAnnotation`;var wn={backgroundColor:void 0,backgroundShadowColor:void 0,borderColor:void 0,borderDash:void 0,borderDashOffset:void 0,borderShadowColor:void 0,borderWidth:void 0,display:void 0,fill:void 0,length:void 0,shadowBlur:void 0,shadowOffsetX:void 0,shadowOffsetY:void 0,width:void 0};Cn.defaults={adjustScaleRange:!0,arrowHeads:{display:!1,end:Object.assign({},wn),fill:!1,length:12,start:Object.assign({},wn),width:6},borderDash:[],borderDashOffset:0,borderShadowColor:`transparent`,borderWidth:2,curve:!1,controlPoint:{y:`-50%`},display:!0,endValue:void 0,init:void 0,hitTolerance:0,label:{backgroundColor:`rgba(0,0,0,0.8)`,backgroundShadowColor:`transparent`,borderCapStyle:`butt`,borderColor:`black`,borderDash:[],borderDashOffset:0,borderJoinStyle:`miter`,borderRadius:6,borderShadowColor:`transparent`,borderWidth:0,callout:Object.assign({},fn.defaults.callout),color:`#fff`,content:null,display:!1,drawTime:void 0,font:{family:void 0,lineHeight:void 0,size:void 0,style:void 0,weight:`bold`},height:void 0,hitTolerance:void 0,opacity:void 0,padding:6,position:`center`,rotation:0,shadowBlur:0,shadowOffsetX:0,shadowOffsetY:0,textAlign:`center`,textStrokeColor:void 0,textStrokeWidth:0,width:void 0,xAdjust:0,yAdjust:0,z:void 0},scaleID:void 0,shadowBlur:0,shadowOffsetX:0,shadowOffsetY:0,value:void 0,xMax:void 0,xMin:void 0,xScaleID:void 0,yMax:void 0,yMin:void 0,yScaleID:void 0,z:0},Cn.descriptors={arrowHeads:{start:{_fallback:!0},end:{_fallback:!0},_fallback:!0}},Cn.defaultRoutes={borderColor:`color`};function eee(e,{mouseX:t,mouseY:n},r,{hitSize:i,useFinalPosition:a}){return we(vn(t,n,e.getProps([`x`,`y`,`x2`,`y2`],a),r),i)||En(e,{mouseX:t,mouseY:n},a,r)}function tee({x:e,y:t,x2:n,y2:r},{top:i,right:a,bottom:o,left:s}){return!(e<s&&n<s||e>a&&n>a||t<i&&r<i||t>o&&r>o)}function Tn({x:e,y:t},n,{top:r,right:i,bottom:a,left:o}){return e<o&&(t=gn(o,{x:e,y:t},n),e=o),e>i&&(t=gn(i,{x:e,y:t},n),e=i),t<r&&(e=hn(r,{x:e,y:t},n),t=r),t>a&&(e=hn(a,{x:e,y:t},n),t=a),{x:e,y:t}}function nee(e,t,n){let{x:r,y:i}=Tn(e,t,n),{x:a,y:o}=Tn(t,e,n);return{x:r,y:i,x2:a,y2:o,width:Math.abs(a-r),height:Math.abs(o-i)}}function ree(e,{mouseX:t,mouseY:n},r=Se,i){let{x:a,y:o,x2:s,y2:c}=e.getProps([`x`,`y`,`x2`,`y2`],i),l=s-a,u=c-o,d=_n(l)+_n(u),f=d===0?-1:((t-a)*l+(n-o)*u)/d,p,m;return f<0?(p=a,m=o):f>1?(p=s,m=c):(p=a+f*l,m=o+f*u),_n(t-p)+_n(n-m)<=r}function En(e,{mouseX:t,mouseY:n},r,i){let a=e.label;return a.options.display&&a.inRange(t,n,i,r)}function iee(e,t,n){let r=n.borderWidth,i=V(n.padding),a=nt(e.ctx,n);return oee(t,n,{width:a.width+i.width+r,height:a.height+i.height+r,padding:i},e.chartArea)}function aee(e){let{x:t,y:n,x2:r,y2:i}=e,a=Math.atan2(i-n,r-t);return a>g/2?a-g:a<g/-2?a+g:a}function oee(e,t,n,r){let{width:i,height:a,padding:o}=n,{xAdjust:s,yAdjust:c}=t,l={x:e.x,y:e.y},d={x:e.x2,y:e.y2},f=t.rotation===`auto`?aee(e):oe(t.rotation),p=see(i,a,f),m=cee(e,t,{labelSize:p,padding:o},r),h=e.cp?bn(l,e.cp,d,m):mn(l,d,m),g={size:p.w,min:r.left,max:r.right,padding:o.left},_={size:p.h,min:r.top,max:r.bottom,padding:o.top},v=On(h.x,g)+s,y=On(h.y,_)+c;return{x:v-i/2,y:y-a/2,x2:v+i/2,y2:y+a/2,centerX:v,centerY:y,pointX:h.x,pointY:h.y,width:i,height:a,rotation:u(f)}}function see(e,t,n){let r=Math.cos(n),i=Math.sin(n);return{w:Math.abs(e*r)+Math.abs(t*i),h:Math.abs(e*i)+Math.abs(t*r)}}function cee(e,t,n,r){let i,a=lee(e,r);return i=t.position===`start`?Dn({w:e.x2-e.x,h:e.y2-e.y},n,t,a):t.position===`end`?1-Dn({w:e.x-e.x2,h:e.y-e.y2},n,t,a):Ie(1,t.position),i}function Dn(e,t,n,r){let{labelSize:i,padding:a}=t,o=e.w*r.dx,s=e.h*r.dy,c=o>0&&(i.w/2+a.left-r.x)/o,l=s>0&&(i.h/2+a.top-r.y)/s;return Ce(Math.max(c,l),0,.25)}function lee(e,t){let{x:n,x2:r,y:i,y2:a}=e,o=Math.min(i,a)-t.top,s=Math.min(n,r)-t.left,c=t.bottom-Math.max(i,a),l=t.right-Math.max(n,r);return{x:Math.min(s,l),y:Math.min(o,c),dx:s<=l?1:-1,dy:o<=c?1:-1}}function On(e,t){let{size:n,min:r,max:i,padding:a}=t,o=n/2;return n>i-r?(i+r)/2:(r>=e-a-o&&(e=r+a+o),i<=e+a+o&&(e=i-a-o),e)}function kn(e){let t=e.options,n=t.arrowHeads&&t.arrowHeads.start,r=t.arrowHeads&&t.arrowHeads.end;return{startOpts:n,endOpts:r,startAdjust:An(e,n),endAdjust:An(e,r)}}function An(e,t){if(!t||!t.display)return 0;let{length:n,width:r}=t,i=e.options.borderWidth/2,a={x:n,y:r+i},o={x:0,y:i};return Math.abs(hn(0,a,o))}function jn(e,t,n,r){if(!r||!r.display)return;let{length:i,width:a,fill:o,backgroundColor:s,borderColor:c}=r,l=Math.abs(t-i)+n;e.beginPath(),tt(e,r),et(e,r),e.moveTo(l,-a),e.lineTo(t+n,0),e.lineTo(l,a),o===!0?(e.fillStyle=s||c,e.closePath(),e.fill(),e.shadowColor=`transparent`):e.shadowColor=r.borderShadowColor,e.stroke()}function uee(e,t,n){let{x:r,y:i,x2:a,y2:o,centerX:s,centerY:c}=e,l=Math.atan2(o-i,a-r),u=Be(t.controlPoint,0);return be({x:s+Le(n,u.x,!1),y:c+Le(n,u.y,!1)},{x:s,y:c},l)}function Mn(e,{x:t,y:n},{angle:r,adjust:i},a){!a||!a.display||(e.save(),e.translate(t,n),e.rotate(r),jn(e,0,-i,a),e.restore())}function dee(e,t,n,r){let{x:i,y:a,x2:o,y2:s,options:c}=t,{startOpts:l,endOpts:u,startAdjust:d,endAdjust:f}=kn(t),p={x:i,y:a},m={x:o,y:s},h=Sn(p,n,m,0),_=Sn(p,n,m,1)-g,v=bn(p,n,m,d/r),y=bn(p,n,m,1-f/r),b=new Path2D;e.beginPath(),b.moveTo(v.x,v.y),b.quadraticCurveTo(n.x,n.y,y.x,y.y),e.shadowColor=c.borderShadowColor,e.stroke(b),t.path=b,t.ctx=e,Mn(e,v,{angle:h,adjust:d},l),Mn(e,y,{angle:_,adjust:f},u)}var Nn=class extends f{inRange(e,t,n,r){let i=this.options.rotation,a=(this.options.borderWidth+this.options.hitTolerance)/2;if(n!==`x`&&n!==`y`)return fee({x:e,y:t},this.getProps([`width`,`height`,`centerX`,`centerY`],r),i,a);let{x:o,y:s,x2:c,y2:l}=this.getProps([`x`,`y`,`x2`,`y2`],r),u=n===`y`?{start:s,end:l}:{start:o,end:c},d=be({x:e,y:t},this.getCenterPoint(r),oe(-i));return d[n]>=u.start-a-Se&&d[n]<=u.end+a+Se}getCenterPoint(e){return ke(this,e)}draw(e){let{width:t,height:n,centerX:r,centerY:i,options:a}=this;e.save(),$e(e,this.getCenterPoint(),a.rotation),tt(e,this.options),e.beginPath(),e.fillStyle=a.backgroundColor;let o=et(e,a);e.ellipse(r,i,n/2,t/2,g/2,0,2*g),e.fill(),o&&(e.shadowColor=a.borderShadowColor,e.stroke()),e.restore()}get label(){return this.elements&&this.elements[0]}resolveElementProperties(e,t){return kt(e,t)}};Nn.id=`ellipseAnnotation`,Nn.defaults={adjustScaleRange:!0,backgroundShadowColor:`transparent`,borderDash:[],borderDashOffset:0,borderShadowColor:`transparent`,borderWidth:1,display:!0,hitTolerance:0,init:void 0,label:Object.assign({},rn.defaults.label),rotation:0,shadowBlur:0,shadowOffsetX:0,shadowOffsetY:0,xMax:void 0,xMin:void 0,xScaleID:void 0,yMax:void 0,yMin:void 0,yScaleID:void 0,z:0},Nn.defaultRoutes={borderColor:`color`,backgroundColor:`color`},Nn.descriptors={label:{_fallback:!0}};function fee(e,t,n,r){let{width:i,height:a,centerX:o,centerY:s}=t,c=i/2,l=a/2;if(c<=0||l<=0)return!1;let u=oe(n||0),d=Math.cos(u),f=Math.sin(u),p=(d*(e.x-o)+f*(e.y-s))**2,m=(f*(e.x-o)-d*(e.y-s))**2;return p/(c+r)**2+m/(l+r)**2<=1.0001}var Pn=class extends f{inRange(e,t,n,r){let{x:i,y:a,x2:o,y2:s,width:c}=this.getProps([`x`,`y`,`x2`,`y2`,`width`],r),l=(this.options.borderWidth+this.options.hitTolerance)/2;return n!==`x`&&n!==`y`?Ee({x:e,y:t},this.getCenterPoint(r),c/2,l):we(n===`y`?{start:a,end:s,value:t}:{start:i,end:o,value:e},l)}getCenterPoint(e){return ke(this,e)}draw(e){let t=this.options,n=t.borderWidth;if(t.radius<.1)return;e.save(),e.fillStyle=t.backgroundColor,tt(e,t);let r=et(e,t);ot(e,this,this.centerX,this.centerY),r&&!Qe(t.pointStyle)&&(e.shadowColor=t.borderShadowColor,e.stroke()),e.restore(),t.borderWidth=n}resolveElementProperties(e,t){let n=Dt(e,t);return n.initProperties=Ge(e,n,t),n}};Pn.id=`pointAnnotation`,Pn.defaults={adjustScaleRange:!0,backgroundShadowColor:`transparent`,borderDash:[],borderDashOffset:0,borderShadowColor:`transparent`,borderWidth:1,display:!0,hitTolerance:0,init:void 0,pointStyle:`circle`,radius:10,rotation:0,shadowBlur:0,shadowOffsetX:0,shadowOffsetY:0,xAdjust:0,xMax:void 0,xMin:void 0,xScaleID:void 0,xValue:void 0,yAdjust:0,yMax:void 0,yMin:void 0,yScaleID:void 0,yValue:void 0,z:0},Pn.defaultRoutes={borderColor:`color`,backgroundColor:`color`};var Fn=class extends f{inRange(e,t,n,r){if(n!==`x`&&n!==`y`)return this.options.radius>=.1&&this.elements.length>1&&mee(this.elements,e,t,r);let i=be({x:e,y:t},this.getCenterPoint(r),oe(-this.options.rotation)),a=this.elements.map(e=>n===`y`?e.bY:e.bX),o=Math.min(...a),s=Math.max(...a);return i[n]>=o&&i[n]<=s}getCenterPoint(e){return ke(this,e)}draw(e){let{elements:t,options:n}=this;e.save(),e.beginPath(),e.fillStyle=n.backgroundColor,tt(e,n);let r=et(e,n),i=!0;for(let n of t)i?(e.moveTo(n.x,n.y),i=!1):e.lineTo(n.x,n.y);e.closePath(),e.fill(),r&&(e.shadowColor=n.borderShadowColor,e.stroke()),e.restore()}resolveElementProperties(e,t){let n=Dt(e,t),{sides:r,rotation:i}=t,a=[],o=2*g/r,s=i*S;for(let i=0;i<r;i++,s+=o){let r=pee(n,t,s);r.initProperties=Ge(e,n,t),a.push(r)}return n.elements=a,n}};Fn.id=`polygonAnnotation`,Fn.defaults={adjustScaleRange:!0,backgroundShadowColor:`transparent`,borderCapStyle:`butt`,borderDash:[],borderDashOffset:0,borderJoinStyle:`miter`,borderShadowColor:`transparent`,borderWidth:1,display:!0,hitTolerance:0,init:void 0,point:{radius:0},radius:10,rotation:0,shadowBlur:0,shadowOffsetX:0,shadowOffsetY:0,sides:3,xAdjust:0,xMax:void 0,xMin:void 0,xScaleID:void 0,xValue:void 0,yAdjust:0,yMax:void 0,yMin:void 0,yScaleID:void 0,yValue:void 0,z:0},Fn.defaultRoutes={borderColor:`color`,backgroundColor:`color`};function pee({centerX:e,centerY:t},{radius:n,borderWidth:r,hitTolerance:i},a){let o=(r+i)/2,s=Math.sin(a),c=Math.cos(a),l={x:e+s*n,y:t-c*n};return{type:`point`,optionScope:`point`,properties:{x:l.x,y:l.y,centerX:l.x,centerY:l.y,bX:e+s*(n+o),bY:t-c*(n+o)}}}function mee(e,t,n,r){let i=!1,a=e[e.length-1].getProps([`bX`,`bY`],r);for(let o of e){let e=o.getProps([`bX`,`bY`],r);e.bY>n!=a.bY>n&&t<(a.bX-e.bX)*(n-e.bY)/(a.bY-e.bY)+e.bX&&(i=!i),a=e}return i}var In={box:rn,doughnutLabel:an,ellipse:Nn,label:fn,line:Cn,point:Pn,polygon:Fn};Object.keys(In).forEach(e=>{O.describe(`elements.${In[e].id}`,{_fallback:`plugins.annotation.common`})});var hee={update:Object.assign},gee=zt.concat(Kt),Ln=(e,t)=>x(t)?Hn(e,t):e,Rn=e=>e===`color`||e===`font`;function zn(e=`line`){return In[e]?e:(console.warn(`Unknown annotation type: '${e}', defaulting to 'line'`),`line`)}function _ee(e,t,n,r){let i=yee(e,n.animations,r),a=t.annotations,o=See(t.elements,a);for(let t=0;t<a.length;t++){let n=a[t],r=Bn(o,t,n.type),s=n.setContext(xee(e,r,o,n)),c=r.resolveElementProperties(e,s);c.skip=vee(c),`elements`in c&&(bee(r,c.elements,s,i),delete c.elements),m(r.x)||Object.assign(r,c),Object.assign(r,c.initProperties),c.options=Vn(s),i.update(r,c)}}function vee(e){return isNaN(e.x)||isNaN(e.y)}function yee(e,t,n){return n===`reset`||n===`none`||n===`resize`?hee:new P(e,t)}function bee(e,t,n,r){let i=e.elements||=[];i.length=t.length;for(let e=0;e<t.length;e++){let a=t[e],o=a.properties,s=Bn(i,e,a.type,a.initProperties);o.options=Vn(n[a.optionScope].override(a)),r.update(s,o)}}function Bn(e,t,n,r){let i=In[zn(n)],a=e[t];return(!a||!(a instanceof i))&&(a=e[t]=new i,Object.assign(a,r)),a}function Vn(e){let t=In[zn(e.type)],n={};n.id=e.id,n.type=e.type,n.drawTime=e.drawTime,Object.assign(n,Hn(e,t.defaults),Hn(e,t.defaultRoutes));for(let t of gee)n[t]=e[t];return n}function Hn(e,t){let n={};for(let r of Object.keys(t)){let i=t[r],a=e[r];Rn(r)&&_(a)?n[r]=a.map(e=>Ln(e,i)):n[r]=Ln(a,i)}return n}function xee(e,t,n,r){return t.$context||=Object.assign(Object.create(e.getContext()),{element:t,get elements(){return n.filter(e=>e&&e.options)},id:r.id,type:`annotation`})}function See(e,t){let n=t.length,r=e.length;if(r<n){let t=n-r;e.splice(r,0,...Array(t))}else r>n&&e.splice(n,r-n);return e}var Cee=`3.1.0`,Un=new Map,Wn=e=>e.type!==`doughnutLabel`,wee=zt.concat(Kt),Tee={id:`annotation`,version:Cee,beforeRegister(){Ae(`chart.js`,`4.0`,fe.version)},afterRegister(){fe.register(In)},afterUnregister(){fe.unregister(In)},beforeInit(e){Un.set(e,{annotations:[],elements:[],visibleElements:[],listeners:{},listened:!1,moveListened:!1,hooks:{},hooked:!1,hovered:[]})},beforeUpdate(e,t,n){let r=Un.get(e),i=r.annotations=[],a=n.annotations;x(a)?Object.keys(a).forEach(e=>{let t=a[e];x(t)&&(t.id=e,i.push(t))}):_(a)&&i.push(...a),Xt(i.filter(Wn),e.scales)},afterDataLimits(e,t){let n=Un.get(e);Yt(e,t.scale,n.annotations.filter(Wn).filter(e=>e.display&&e.adjustScaleRange))},afterUpdate(e,t,n){let r=Un.get(e);Bt(e,r,n),_ee(e,r,n,t.mode),r.visibleElements=r.elements.filter(e=>!e.skip&&e.options.display),qt(e,r,n)},beforeDatasetsDraw(e,t,n){Gn(e,`beforeDatasetsDraw`,n.clip)},afterDatasetsDraw(e,t,n){Gn(e,`afterDatasetsDraw`,n.clip)},beforeDatasetDraw(e,t,n){Gn(e,t.index,n.clip)},beforeDraw(e,t,n){Gn(e,`beforeDraw`,n.clip)},afterDraw(e,t,n){Gn(e,`afterDraw`,n.clip)},beforeEvent(e,t,n){Vt(Un.get(e),t.event,n)&&(t.changed=!0)},afterDestroy(e){Un.delete(e)},getAnnotations(e){let t=Un.get(e);return t?t.elements:[]},_getAnnotationElementsAtEventForMode(e,t,n){return he(e,t,n)},defaults:{animations:{numbers:{properties:[`x`,`y`,`x2`,`y2`,`width`,`height`,`centerX`,`centerY`,`pointX`,`pointY`,`radius`],type:`number`},colors:{properties:[`backgroundColor`,`borderColor`],type:`color`}},clip:!0,interaction:{mode:void 0,axis:void 0,intersect:void 0},common:{drawTime:`afterDatasetsDraw`,init:!1,label:{}}},descriptors:{_indexable:!1,_scriptable:e=>!wee.includes(e)&&e!==`init`,annotations:{_allKeys:!1,_fallback:(e,t)=>`elements.${In[zn(t.type)].id}`},interaction:{_fallback:!0},common:{label:{_indexable:Rn,_fallback:!0},_indexable:Rn}},additionalOptionScopes:[``]};function Gn(e,t,n){let{ctx:r,chartArea:i}=e,a=Un.get(e);n&&T(r,i);let o=Eee(a.visibleElements,t).sort((e,t)=>e.element.options.z-t.element.options.z);for(let e of o)Dee(r,i,a,e);n&&R(r)}function Eee(e,t){let n=[];for(let r of e)if(r.options.drawTime===t&&n.push({element:r,main:!0}),r.elements&&r.elements.length)for(let e of r.elements)e.options.display&&e.options.drawTime===t&&n.push({element:e});return n}function Dee(e,t,n,r){let i=r.element;r.main?(Jt(n,i,`beforeDraw`),i.draw(e,t),Jt(n,i,`afterDraw`)):i.draw(e,t)}function Kn(e){let t=null;return()=>(t??=e(),t)}function Oee(e,t){return e.filter(e=>e!==t)}function kee(e,t){let n=new Set,r=e=>n.add(e);e.forEach(r),t.forEach(r);let i=[];return n.forEach(e=>i.push(e)),i}var Aee=class{enter(e){let t=this.entered.length;return this.entered=kee(this.entered.filter(t=>this.isNodeInDocument(t)&&(!t.contains||t.contains(e))),[e]),t===0&&this.entered.length>0}leave(e){let t=this.entered.length;return this.entered=Oee(this.entered.filter(this.isNodeInDocument),e),t>0&&this.entered.length===0}reset(){this.entered=[]}constructor(e){this.entered=[],this.isNodeInDocument=e}},jee=class{initializeExposedProperties(){Object.keys(this.config.exposeProperties).forEach(e=>{Object.defineProperty(this.item,e,{configurable:!0,enumerable:!0,get(){return console.warn(`Browser doesn't allow reading "${e}" until the drop event.`),null}})})}loadDataTransfer(e){if(e){let t={};Object.keys(this.config.exposeProperties).forEach(n=>{let r=this.config.exposeProperties[n];r!=null&&(t[n]={value:r(e,this.config.matchesTypes),configurable:!0,enumerable:!0})}),Object.defineProperties(this.item,t)}}canDrag(){return!0}beginDrag(){return this.item}isDragging(e,t){return t===e.getSourceId()}endDrag(){}constructor(e){this.config=e,this.item={},this.initializeExposedProperties()}},qn=s({FILE:()=>Jn,HTML:()=>Zn,TEXT:()=>Xn,URL:()=>Yn});const Jn=`__NATIVE_FILE__`,Yn=`__NATIVE_URL__`,Xn=`__NATIVE_TEXT__`,Zn=`__NATIVE_HTML__`;function Qn(e,t,n){return t.reduce((t,n)=>t||e.getData(n),``)??n}const $n={[Jn]:{exposeProperties:{files:e=>Array.prototype.slice.call(e.files),items:e=>e.items,dataTransfer:e=>e},matchesTypes:[`Files`]},[Zn]:{exposeProperties:{html:(e,t)=>Qn(e,t,``),dataTransfer:e=>e},matchesTypes:[`Html`,`text/html`]},[Yn]:{exposeProperties:{urls:(e,t)=>Qn(e,t,``).split(`
1
+ import{_t as e,at as t,dt as n,ft as r,gt as i,ht as a,it as o,mt as s,pt as c}from"./iframe-BXFCu_25.js";import{$ as l,$t as u,Bt as d,Et as f,Ft as p,Gt as m,Ht as h,It as g,Jt as _,Kt as v,Lt as y,Q as b,Qt as x,Rt as S,S as C,Tt as w,Ut as T,V as E,Vt as D,Wt as O,Xt as k,Yt as A,Zt as j,an as M,at as N,bt as P,c as F,ct as I,dt as L,en as ee,ft as te,in as R,it as ne,j as re,lt as ie,m as ae,nn as oe,nt as z,ot as se,pt as ce,qt as le,rn as B,st as ue,t as de,tn as V,wt as fe,zt as pe}from"./legend-context-DWzlUfd5.js";var me={modes:{point(e,t){return ve(e,t,{intersect:!0})},nearest(e,t,n){return ye(e,t,n)},x(e,t,n){return ve(e,t,{intersect:n.intersect,axis:`x`})},y(e,t,n){return ve(e,t,{intersect:n.intersect,axis:`y`})}}};function he(e,t,n){return(me.modes[n.mode]||me.modes.nearest)(e,t,n)}function ge(e,t,n){return n!==`x`&&n!==`y`?e.inRange(t.x,t.y,`x`,!0)||e.inRange(t.x,t.y,`y`,!0):e.inRange(t.x,t.y,n,!0)}function _e(e,t,n){return n===`x`?{x:e.x,y:t.y}:n===`y`?{x:t.x,y:e.y}:t}function ve(e,t,n){return e.filter(e=>n.intersect?e.inRange(t.x,t.y):ge(e,t,n.axis))}function ye(e,t,n){let r=1/0;return ve(e,t,n).reduce((e,i)=>{let a=v(t,_e(t,i.getCenterPoint(),n.axis));return a<r?(e=[i],r=a):a===r&&e.push(i),e},[]).sort((e,t)=>e._index-t._index).slice(0,1)}function be(e,t,n){let r=Math.cos(n),i=Math.sin(n),a=t.x,o=t.y;return{x:a+r*(e.x-a)-i*(e.y-o),y:o+i*(e.x-a)+r*(e.y-o)}}var xe=(e,t)=>t>e||e.length>t.length&&e.slice(0,t.length)===t,Se=.001,Ce=(e,t,n)=>Math.min(n,Math.max(t,e)),we=(e,t)=>e.value>=e.start-t&&e.value<=e.end+t;function Te(e,t,n){for(let r of Object.keys(e))e[r]=Ce(e[r],t,n);return e}function Ee(e,t,n,r){return!e||!t||n<=0?!1:(e.x-t.x)**2+(e.y-t.y)**2<=(n+r)**2}function De(e,{x:t,y:n,x2:r,y2:i},a,{borderWidth:o,hitTolerance:s}){let c=(o+s)/2,l=e.x>=t-c-Se&&e.x<=r+c+Se,u=e.y>=n-c-Se&&e.y<=i+c+Se;return a===`x`?l:(a===`y`||l)&&u}function Oe(e,{rect:t,center:n},r,{rotation:i,borderWidth:a,hitTolerance:o}){return De(be(e,n,oe(-i)),t,r,{borderWidth:a,hitTolerance:o})}function ke(e,t){let{centerX:n,centerY:r}=e.getProps([`centerX`,`centerY`],t);return{x:n,y:r}}function Ae(e,t,n,r=!0){let i=n.split(`.`),a=0;for(let o of t.split(`.`)){let s=i[a++];if(parseInt(o,10)<parseInt(s,10))break;if(xe(s,o)){if(r)throw Error(`${e} v${n} is not supported. v${t} or newer is required.`);return!1}}return!0}var je=e=>typeof e==`string`&&e.endsWith(`%`),Me=e=>parseFloat(e)/100,Ne=e=>Ce(Me(e),0,1),Pe=(e,t)=>({x:e,y:t,x2:e,y2:t,width:0,height:0}),Fe={box:e=>Pe(e.centerX,e.centerY),doughnutLabel:e=>Pe(e.centerX,e.centerY),ellipse:e=>({centerX:e.centerX,centerY:e.centerX,radius:0,width:0,height:0}),label:e=>Pe(e.centerX,e.centerY),line:e=>Pe(e.x,e.y),point:e=>({centerX:e.centerX,centerY:e.centerY,radius:0,width:0,height:0}),polygon:e=>Pe(e.centerX,e.centerY)};function Ie(e,t){return t===`start`?0:t===`end`?e:je(t)?Ne(t)*e:e/2}function Le(e,t,n=!0){return typeof t==`number`?t:je(t)?(n?Ne(t):Me(t))*e:e}function Re(e,t){let{x:n,width:r}=e,i=t.textAlign;return i===`center`?n+r/2:i===`end`||i===`right`?n+r:n}function ze(e,t,{borderWidth:n,position:r,xAdjust:i,yAdjust:a},o){let s=x(o),c=t.width+(s?o.width:0)+n,l=t.height+(s?o.height:0)+n,u=Be(r),d=We(e.x,c,i,u.x),f=We(e.y,l,a,u.y);return{x:d,y:f,x2:d+c,y2:f+l,width:c,height:l,centerX:d+c/2,centerY:f+l/2}}function Be(e,t=`center`){return x(e)?{x:M(e.x,t),y:M(e.y,t)}:(e=M(e,t),{x:e,y:e})}var Ve=(e,t)=>e&&e.autoFit&&t<1;function He(e,t){let n=e.font,r=_(n)?n:[n];return Ve(e,t)?r.map(function(e){let n=ee(e);return n.size=Math.floor(e.size*t),n.lineHeight=e.lineHeight,ee(n)}):r.map(e=>ee(e))}function Ue(e){return e&&(m(e.xValue)||m(e.yValue))}function We(e,t,n=0,r){return e-Ie(t,r)+n}function Ge(e,t,n){let r=n.init;if(r){if(r===!0)return qe(t,n)}else return;return Je(e,t,n)}function Ke(e,t,n){let r=!1;return t.forEach(t=>{A(e[t])?(r=!0,n[t]=e[t]):m(n[t])&&delete n[t]}),r}function qe(e,t){return Fe[t.type||`line`](e)}function Je(e,t,n){let r=h(n.init,[{chart:e,properties:t,options:n}]);if(r===!0)return qe(t,n);if(x(r))return r}var Ye=new Map,Xe=e=>isNaN(e)||e<=0,Ze=e=>e.reduce(function(e,t){return e+=t.string,e},``);function Qe(e){if(e&&typeof e==`object`){let t=e.toString();return t===`[object HTMLImageElement]`||t===`[object HTMLCanvasElement]`}}function $e(e,{x:t,y:n},r){r&&(e.translate(t,n),e.rotate(oe(r)),e.translate(-t,-n))}function et(e,t){if(t&&t.borderWidth)return e.lineCap=t.borderCapStyle||`butt`,e.setLineDash(t.borderDash),e.lineDashOffset=t.borderDashOffset,e.lineJoin=t.borderJoinStyle||`miter`,e.lineWidth=t.borderWidth,e.strokeStyle=t.borderColor,!0}function tt(e,t){e.shadowColor=t.backgroundShadowColor,e.shadowBlur=t.shadowBlur,e.shadowOffsetX=t.shadowOffsetX,e.shadowOffsetY=t.shadowOffsetY}function nt(e,t){let n=t.content;if(Qe(n))return{width:Le(n.width,t.width),height:Le(n.height,t.height)};let r=He(t),i=t.textStrokeWidth,a=_(n)?n:[n],o=a.join()+Ze(r)+i+(e._measureText?`-spriting`:``);return Ye.has(o)||Ye.set(o,ct(e,a,r,i)),Ye.get(o)}function rt(e,t,n){let{x:r,y:i,width:a,height:o}=t;e.save(),tt(e,n);let s=et(e,n);e.fillStyle=n.backgroundColor,e.beginPath(),D(e,{x:r,y:i,w:a,h:o,radius:Te(B(n.borderRadius),0,Math.min(a,o)/2)}),e.closePath(),e.fill(),s&&(e.shadowColor=n.borderShadowColor,e.stroke()),e.restore()}function it(e,t,n,r){let i=n.content;if(Qe(i)){e.save(),e.globalAlpha=dt(n.opacity,i.style.opacity),e.drawImage(i,t.x,t.y,t.width,t.height),e.restore();return}let a=_(i)?i:[i],o=He(n,r),s=n.color,c=_(s)?s:[s],l=Re(t,n),u=t.y+n.textStrokeWidth/2;e.save(),e.textBaseline=`middle`,e.textAlign=n.textAlign,at(e,n)&&lt(e,{x:l,y:u},a,o),ut(e,{x:l,y:u},a,{fonts:o,colors:c}),e.restore()}function at(e,t){if(t.textStrokeWidth>0)return e.lineJoin=`round`,e.miterLimit=2,e.lineWidth=t.textStrokeWidth,e.strokeStyle=t.textStrokeColor,!0}function ot(e,t,n,r){let{radius:i,options:a}=t,o=a.pointStyle,s=a.rotation,c=(s||0)*S;if(Qe(o)){e.save(),e.translate(n,r),e.rotate(c),e.drawImage(o,-o.width/2,-o.height/2,o.width,o.height),e.restore();return}Xe(i)||st(e,{x:n,y:r,radius:i,rotation:s,style:o,rad:c})}function st(e,{x:t,y:n,radius:r,rotation:i,style:a,rad:o}){let s,c,l,u;switch(e.beginPath(),a){default:e.arc(t,n,r,0,pe),e.closePath();break;case`triangle`:e.moveTo(t+Math.sin(o)*r,n-Math.cos(o)*r),o+=d,e.lineTo(t+Math.sin(o)*r,n-Math.cos(o)*r),o+=d,e.lineTo(t+Math.sin(o)*r,n-Math.cos(o)*r),e.closePath();break;case`rectRounded`:u=r*.516,l=r-u,s=Math.cos(o+y)*l,c=Math.sin(o+y)*l,e.arc(t-s,n-c,u,o-g,o-p),e.arc(t+c,n-s,u,o-p,o),e.arc(t+s,n+c,u,o,o+p),e.arc(t-c,n+s,u,o+p,o+g),e.closePath();break;case`rect`:if(!i){l=Math.SQRT1_2*r,e.rect(t-l,n-l,2*l,2*l);break}o+=y;case`rectRot`:s=Math.cos(o)*r,c=Math.sin(o)*r,e.moveTo(t-s,n-c),e.lineTo(t+c,n-s),e.lineTo(t+s,n+c),e.lineTo(t-c,n+s),e.closePath();break;case`crossRot`:o+=y;case`cross`:s=Math.cos(o)*r,c=Math.sin(o)*r,e.moveTo(t-s,n-c),e.lineTo(t+s,n+c),e.moveTo(t+c,n-s),e.lineTo(t-c,n+s);break;case`star`:s=Math.cos(o)*r,c=Math.sin(o)*r,e.moveTo(t-s,n-c),e.lineTo(t+s,n+c),e.moveTo(t+c,n-s),e.lineTo(t-c,n+s),o+=y,s=Math.cos(o)*r,c=Math.sin(o)*r,e.moveTo(t-s,n-c),e.lineTo(t+s,n+c),e.moveTo(t+c,n-s),e.lineTo(t-c,n+s);break;case`line`:s=Math.cos(o)*r,c=Math.sin(o)*r,e.moveTo(t-s,n-c),e.lineTo(t+s,n+c);break;case`dash`:e.moveTo(t,n),e.lineTo(t+Math.cos(o)*r,n+Math.sin(o)*r);break}e.fill()}function ct(e,t,n,r){e.save();let i=t.length,a=0,o=r;for(let s=0;s<i;s++){let i=n[Math.min(s,n.length-1)];e.font=i.string;let c=t[s];a=Math.max(a,e.measureText(c).width+r),o+=i.lineHeight}return e.restore(),{width:a,height:o}}function lt(e,{x:t,y:n},r,i){e.beginPath();let a=0;r.forEach(function(r,o){let s=i[Math.min(o,i.length-1)],c=s.lineHeight;e.font=s.string,e.strokeText(r,t,n+c/2+a),a+=c}),e.stroke()}function ut(e,{x:t,y:n},r,{fonts:i,colors:a}){let o=0;r.forEach(function(r,s){let c=a[Math.min(s,a.length-1)],l=i[Math.min(s,i.length-1)],u=l.lineHeight;e.beginPath(),e.font=l.string,e.fillStyle=c,e.fillText(r,t,n+u/2+o),o+=u,e.fill()})}function dt(e,t){let n=k(e)?e:t;return k(n)?Ce(n,0,1):1}var ft=[`left`,`bottom`,`top`,`right`];function pt(e,t){let{pointX:n,pointY:r,options:i}=t,a=i.callout,o=a&&a.display&&vt(t,a);if(!o||bt(t,a,o))return;if(e.save(),e.beginPath(),!et(e,a))return e.restore();let{separatorStart:s,separatorEnd:c}=mt(t,o),{sideStart:l,sideEnd:u}=gt(t,o,s);(a.margin>0||i.borderWidth===0)&&(e.moveTo(s.x,s.y),e.lineTo(c.x,c.y)),e.moveTo(l.x,l.y),e.lineTo(u.x,u.y);let d=be({x:n,y:r},t.getCenterPoint(),oe(-t.rotation));e.lineTo(d.x,d.y),e.stroke(),e.restore()}function mt(e,t){let{x:n,y:r,x2:i,y2:a}=e,o=ht(e,t),s,c;return t===`left`||t===`right`?(s={x:n+o,y:r},c={x:s.x,y:a}):(s={x:n,y:r+o},c={x:i,y:s.y}),{separatorStart:s,separatorEnd:c}}function ht(e,t){let{width:n,height:r,options:i}=e,a=i.callout.margin+i.borderWidth/2;return t===`right`?n+a:t===`bottom`?r+a:-a}function gt(e,t,n){let{y:r,width:i,height:a,options:o}=e,s=o.callout.start,c=_t(t,o.callout),l,u;return t===`left`||t===`right`?(l={x:n.x,y:r+Le(a,s)},u={x:l.x+c,y:l.y}):(l={x:n.x+Le(i,s),y:n.y},u={x:l.x,y:l.y+c}),{sideStart:l,sideEnd:u}}function _t(e,t){let n=t.side;return e===`left`||e===`top`?-n:n}function vt(e,t){let n=t.position;return ft.includes(n)?n:yt(e,t)}function yt(e,t){let{x:n,y:r,x2:i,y2:a,width:o,height:s,pointX:c,pointY:l,centerX:u,centerY:d,rotation:f}=e,p={x:u,y:d},m=t.start,h=Le(o,m),g=Le(s,m),_=[n,n+h,n+h,i],y=[r+g,a,r,a],b=[];for(let e=0;e<4;e++){let t=be({x:_[e],y:y[e]},p,oe(f));b.push({position:ft[e],distance:v(t,{x:c,y:l})})}return b.sort((e,t)=>e.distance-t.distance)[0].position}function bt(e,t,n){let{pointX:r,pointY:i}=e,a=t.margin,o=r,s=i;return n===`left`?o+=a:n===`right`?o-=a:n===`top`?s+=a:n===`bottom`&&(s-=a),e.inRange(o,s)}var xt={xScaleID:{min:`xMin`,max:`xMax`,start:`left`,end:`right`,startProp:`x`,endProp:`x2`},yScaleID:{min:`yMin`,max:`yMax`,start:`bottom`,end:`top`,startProp:`y`,endProp:`y2`}};function St(e,t,n){return t=typeof t==`number`?t:e.parse(t),j(t)?e.getPixelForValue(t):n}function Ct(e,t,n){let r=t[n];if(r||n===`scaleID`)return r;let i=n.charAt(0),a=Object.values(e).filter(e=>e.axis&&e.axis===i);return a.length?a[0].id:i}function wt(e,t){if(e){let n=e.options.reverse;return{start:St(e,t.min,n?t.end:t.start),end:St(e,t.max,n?t.start:t.end)}}}function Tt(e,t){let{chartArea:n,scales:r}=e,i=r[Ct(r,t,`xScaleID`)],a=r[Ct(r,t,`yScaleID`)],o=n.width/2,s=n.height/2;return i&&(o=St(i,t.xValue,i.left+i.width/2)),a&&(s=St(a,t.yValue,a.top+a.height/2)),{x:o,y:s}}function Et(e,t){let n=e.scales,r=n[Ct(n,t,`xScaleID`)],i=n[Ct(n,t,`yScaleID`)];if(!r&&!i)return{};let{left:a,right:o}=r||e.chartArea,{top:s,bottom:c}=i||e.chartArea,l=jt(r,{min:t.xMin,max:t.xMax,start:a,end:o});a=l.start,o=l.end;let u=jt(i,{min:t.yMin,max:t.yMax,start:c,end:s});return s=u.start,c=u.end,{x:a,y:s,x2:o,y2:c,width:o-a,height:c-s,centerX:a+(o-a)/2,centerY:s+(c-s)/2}}function Dt(e,t){if(!Ue(t)){let n=Et(e,t),r=t.radius;(!r||isNaN(r))&&(r=Math.min(n.width,n.height)/2,t.radius=r);let i=r*2,a=n.centerX+t.xAdjust,o=n.centerY+t.yAdjust;return{x:a-r,y:o-r,x2:a+r,y2:o+r,centerX:a,centerY:o,width:i,height:i,radius:r}}return At(e,t)}function Ot(e,t){let{scales:n,chartArea:r}=e,i=n[t.scaleID],a={x:r.left,y:r.top,x2:r.right,y2:r.bottom};return i?Mt(i,a,t):Nt(n,a,t),a}function kt(e,t){let n=Et(e,t);return n.initProperties=Ge(e,n,t),n.elements=[{type:`label`,optionScope:`label`,properties:Lt(e,n,t),initProperties:n.initProperties}],n}function At(e,t){let n=Tt(e,t),r=t.radius*2;return{x:n.x-t.radius+t.xAdjust,y:n.y-t.radius+t.yAdjust,x2:n.x+t.radius+t.xAdjust,y2:n.y+t.radius+t.yAdjust,centerX:n.x+t.xAdjust,centerY:n.y+t.yAdjust,radius:t.radius,width:r,height:r}}function jt(e,t){let n=wt(e,t)||t;return{start:Math.min(n.start,n.end),end:Math.max(n.start,n.end)}}function Mt(e,t,n){let r=St(e,n.value,NaN),i=St(e,n.endValue,r);e.isHorizontal()?(t.x=r,t.x2=i):(t.y=r,t.y2=i)}function Nt(e,t,n){for(let r of Object.keys(xt)){let i=e[Ct(e,n,r)];if(i){let{min:e,max:a,start:o,end:s,startProp:c,endProp:l}=xt[r],u=wt(i,{min:n[e],max:n[a],start:i[o],end:i[s]});t[c]=u.start,t[l]=u.end}}}function Pt({properties:e,options:t},n,r,i){let{x:a,x2:o,width:s}=e;return It({start:a,end:o,size:s,borderWidth:t.borderWidth},{position:r.x,padding:{start:i.left,end:i.right},adjust:t.label.xAdjust,size:n.width})}function Ft({properties:e,options:t},n,r,i){let{y:a,y2:o,height:s}=e;return It({start:a,end:o,size:s,borderWidth:t.borderWidth},{position:r.y,padding:{start:i.top,end:i.bottom},adjust:t.label.yAdjust,size:n.height})}function It(e,t){let{start:n,end:r,borderWidth:i}=e,{position:a,padding:{start:o,end:s},adjust:c}=t,l=r-i-n-o-s-t.size;return n+i/2+c+Ie(l,a)}function Lt(e,t,n){let r=n.label;r.backgroundColor=`transparent`,r.callout.display=!1;let i=Be(r.position),a=V(r.padding),o=nt(e.ctx,r),s=Pt({properties:t,options:n},o,i,a),c=Ft({properties:t,options:n},o,i,a),l=o.width+a.width,u=o.height+a.height;return{x:s,y:c,x2:s+l,y2:c+u,width:l,height:u,centerX:s+l/2,centerY:c+u/2,rotation:r.rotation}}var Rt=[`enter`,`leave`],zt=Rt.concat(`click`);function Bt(e,t,n){t.listened=Ke(n,zt,t.listeners),t.moveListened=!1,Rt.forEach(e=>{A(n[e])&&(t.moveListened=!0)}),(!t.listened||!t.moveListened)&&t.annotations.forEach(e=>{!t.listened&&A(e.click)&&(t.listened=!0),t.moveListened||Rt.forEach(n=>{A(e[n])&&(t.listened=!0,t.moveListened=!0)})})}function Vt(e,t,n){if(e.listened)switch(t.type){case`mousemove`:case`mouseout`:return Ht(e,t,n);case`click`:return Wt(e,t,n)}}function Ht(e,t,n){if(!e.moveListened)return;let r;r=t.type===`mousemove`?he(e.visibleElements,t,n.interaction):[];let i=e.hovered;e.hovered=r;let a={state:e,event:t},o=Ut(a,`leave`,i,r);return Ut(a,`enter`,r,i)||o}function Ut({state:e,event:t},n,r,i){let a;for(let o of r)i.indexOf(o)<0&&(a=Gt(o.options[n]||e.listeners[n],o,t)||a);return a}function Wt(e,t,n){let r=e.listeners,i=he(e.visibleElements,t,n.interaction),a;for(let e of i)a=Gt(e.options.click||r.click,e,t)||a;return a}function Gt(e,t,n){return h(e,[t.$context,n])===!0}var Kt=[`afterDraw`,`beforeDraw`];function qt(e,t,n){let r=t.visibleElements;t.hooked=Ke(n,Kt,t.hooks),t.hooked||r.forEach(e=>{t.hooked||Kt.forEach(n=>{A(e.options[n])&&(t.hooked=!0)})})}function Jt(e,t,n){if(e.hooked)return h(t.options[n]||e.hooks[n],[t.$context])}function Yt(e,t,n){let r=tn(e.scales,t,n),i=Zt(t,r,`min`,`suggestedMin`);i=Zt(t,r,`max`,`suggestedMax`)||i,i&&A(t.handleTickRangeOptions)&&t.handleTickRangeOptions()}function Xt(e,t){for(let n of e)$t(n,t)}function Zt(e,t,n,r){if(j(t[n])&&!Qt(e.options,n,r)){let r=e[n]!==t[n];return e[n]=t[n],r}}function Qt(e,t,n){return m(e[t])||m(e[n])}function $t(e,t){for(let n of[`scaleID`,`xScaleID`,`yScaleID`]){let r=Ct(t,e,n);r&&!t[r]&&en(e,n)&&console.warn(`No scale found with id '${r}' for annotation '${e.id}'`)}}function en(e,t){if(t===`scaleID`)return!0;let n=t.charAt(0);for(let t of[`Min`,`Max`,`Value`])if(m(e[n+t]))return!0;return!1}function tn(e,t,n){let r=t.axis,i=t.id,a=r+`ScaleID`,o={min:M(t.min,-1/0),max:M(t.max,1/0)};for(let s of n)s.scaleID===i?nn(s,t,[`value`,`endValue`],o):Ct(e,s,a)===i&&nn(s,t,[r+`Min`,r+`Max`,r+`Value`],o);return o}function nn(e,t,n,r){for(let i of n){let n=e[i];if(m(n)){let e=t.parse(n);r.min=Math.min(r.min,e),r.max=Math.max(r.max,e)}}}var rn=class extends f{inRange(e,t,n,r){let{x:i,y:a}=be({x:e,y:t},this.getCenterPoint(r),oe(-this.options.rotation));return De({x:i,y:a},this.getProps([`x`,`y`,`x2`,`y2`],r),n,this.options)}getCenterPoint(e){return ke(this,e)}draw(e){e.save(),$e(e,this.getCenterPoint(),this.options.rotation),rt(e,this,this.options),e.restore()}get label(){return this.elements&&this.elements[0]}resolveElementProperties(e,t){return kt(e,t)}};rn.id=`boxAnnotation`,rn.defaults={adjustScaleRange:!0,backgroundShadowColor:`transparent`,borderCapStyle:`butt`,borderDash:[],borderDashOffset:0,borderJoinStyle:`miter`,borderRadius:0,borderShadowColor:`transparent`,borderWidth:1,display:!0,init:void 0,hitTolerance:0,label:{backgroundColor:`transparent`,borderWidth:0,callout:{display:!1},color:`black`,content:null,display:!1,drawTime:void 0,font:{family:void 0,lineHeight:void 0,size:void 0,style:void 0,weight:`bold`},height:void 0,hitTolerance:void 0,opacity:void 0,padding:6,position:`center`,rotation:void 0,textAlign:`start`,textStrokeColor:void 0,textStrokeWidth:0,width:void 0,xAdjust:0,yAdjust:0,z:void 0},rotation:0,shadowBlur:0,shadowOffsetX:0,shadowOffsetY:0,xMax:void 0,xMin:void 0,xScaleID:void 0,yMax:void 0,yMin:void 0,yScaleID:void 0,z:0},rn.defaultRoutes={borderColor:`color`,backgroundColor:`color`},rn.descriptors={label:{_fallback:!0}};var an=class extends f{inRange(e,t,n,r){return Oe({x:e,y:t},{rect:this.getProps([`x`,`y`,`x2`,`y2`],r),center:this.getCenterPoint(r)},n,{rotation:this.rotation,borderWidth:0,hitTolerance:this.options.hitTolerance})}getCenterPoint(e){return ke(this,e)}draw(e){let t=this.options;!t.display||!t.content||(dn(e,this),e.save(),$e(e,this.getCenterPoint(),this.rotation),it(e,this,t,this._fitRatio),e.restore())}resolveElementProperties(e,t){let n=on(e,t);if(!n)return{};let{controllerMeta:r,point:i,radius:a}=cn(e,t,n),o=nt(e.ctx,t),s=ln(o,a);Ve(t,s)&&(o={width:o.width*s,height:o.height*s});let{position:c,xAdjust:l,yAdjust:u}=t,d=ze(i,o,{borderWidth:0,position:c,xAdjust:l,yAdjust:u});return{initProperties:Ge(e,d,t),...d,...r,rotation:t.rotation,_fitRatio:s}}};an.id=`doughnutLabelAnnotation`,an.defaults={autoFit:!0,autoHide:!0,backgroundColor:`transparent`,backgroundShadowColor:`transparent`,borderColor:`transparent`,borderDash:[],borderDashOffset:0,borderJoinStyle:`miter`,borderShadowColor:`transparent`,borderWidth:0,color:`black`,content:null,display:!0,font:{family:void 0,lineHeight:void 0,size:void 0,style:void 0,weight:void 0},height:void 0,hitTolerance:0,init:void 0,opacity:void 0,position:`center`,rotation:0,shadowBlur:0,shadowOffsetX:0,shadowOffsetY:0,spacing:1,textAlign:`center`,textStrokeColor:void 0,textStrokeWidth:0,width:void 0,xAdjust:0,yAdjust:0},an.defaultRoutes={};function on(e,t){return e.getSortedVisibleDatasetMetas().reduce(function(n,r){let i=r.controller;return i instanceof w&&sn(e,t,r.data)&&(!n||i.innerRadius<n.controller.innerRadius)&&i.options.circumference>=90?r:n},void 0)}function sn(e,t,n){if(!t.autoHide)return!0;for(let t=0;t<n.length;t++)if(!n[t].hidden&&e.getDataVisibility(t))return!0}function cn({chartArea:e},t,n){let{left:r,top:i,right:a,bottom:o}=e,{innerRadius:s,offsetX:c,offsetY:l}=n.controller,u=(r+a)/2+c,d=(i+o)/2+l,f={left:Math.max(u-s,r),right:Math.min(u+s,a),top:Math.max(d-s,i),bottom:Math.min(d+s,o)},p={x:(f.left+f.right)/2,y:(f.top+f.bottom)/2},m=t.spacing+t.borderWidth/2,h=s-m,g=p.y>d;return{controllerMeta:{_centerX:u,_centerY:d,_radius:h,_counterclockwise:g,...un(g?i+m:o-m,u,d,h)},point:p,radius:Math.min(s,Math.min(f.right-f.left,f.bottom-f.top)/2)}}function ln({width:e,height:t},n){let r=Math.sqrt(e**2+t**2);return n*2/r}function un(e,t,n,r){let i=(n-e)**2,a=r**2,o=t*-2,s=t**2+i-a,c=o**2-4*s;if(c<=0)return{_startAngle:0,_endAngle:pe};let l=(-o-Math.sqrt(c))/2,u=(-o+Math.sqrt(c))/2;return{_startAngle:le({x:t,y:n},{x:l,y:e}).angle,_endAngle:le({x:t,y:n},{x:u,y:e}).angle}}function dn(e,t){let{_centerX:n,_centerY:r,_radius:i,_startAngle:a,_endAngle:o,_counterclockwise:s,options:c}=t;e.save();let l=et(e,c);e.fillStyle=c.backgroundColor,e.beginPath(),e.arc(n,r,i,a,o,s),e.closePath(),e.fill(),l&&e.stroke(),e.restore()}var fn=class extends f{inRange(e,t,n,r){return Oe({x:e,y:t},{rect:this.getProps([`x`,`y`,`x2`,`y2`],r),center:this.getCenterPoint(r)},n,{rotation:this.rotation,borderWidth:this.options.borderWidth,hitTolerance:this.options.hitTolerance})}getCenterPoint(e){return ke(this,e)}draw(e){let t=this.options,n=!m(this._visible)||this._visible;!t.display||!t.content||!n||(e.save(),$e(e,this.getCenterPoint(),this.rotation),pt(e,this),rt(e,this,t),it(e,pn(this),t),e.restore())}resolveElementProperties(e,t){let n;if(Ue(t))n=Tt(e,t);else{let{centerX:r,centerY:i}=Et(e,t);n={x:r,y:i}}let r=V(t.padding),i=nt(e.ctx,t),a=ze(n,i,t,r);return{initProperties:Ge(e,a,t),pointX:n.x,pointY:n.y,...a,rotation:t.rotation}}};fn.id=`labelAnnotation`,fn.defaults={adjustScaleRange:!0,backgroundColor:`transparent`,backgroundShadowColor:`transparent`,borderCapStyle:`butt`,borderDash:[],borderDashOffset:0,borderJoinStyle:`miter`,borderRadius:0,borderShadowColor:`transparent`,borderWidth:0,callout:{borderCapStyle:`butt`,borderColor:void 0,borderDash:[],borderDashOffset:0,borderJoinStyle:`miter`,borderWidth:1,display:!1,margin:5,position:`auto`,side:5,start:`50%`},color:`black`,content:null,display:!0,font:{family:void 0,lineHeight:void 0,size:void 0,style:void 0,weight:void 0},height:void 0,hitTolerance:0,init:void 0,opacity:void 0,padding:6,position:`center`,rotation:0,shadowBlur:0,shadowOffsetX:0,shadowOffsetY:0,textAlign:`center`,textStrokeColor:void 0,textStrokeWidth:0,width:void 0,xAdjust:0,xMax:void 0,xMin:void 0,xScaleID:void 0,xValue:void 0,yAdjust:0,yMax:void 0,yMin:void 0,yScaleID:void 0,yValue:void 0,z:0},fn.defaultRoutes={borderColor:`color`};function pn({x:e,y:t,width:n,height:r,options:i}){let a=i.borderWidth/2,o=V(i.padding);return{x:e+o.left+a,y:t+o.top+a,width:n-o.left-o.right-i.borderWidth,height:r-o.top-o.bottom-i.borderWidth}}var mn=(e,t,n)=>({x:e.x+n*(t.x-e.x),y:e.y+n*(t.y-e.y)}),hn=(e,t,n)=>mn(t,n,Math.abs((e-t.y)/(n.y-t.y))).x,gn=(e,t,n)=>mn(t,n,Math.abs((e-t.x)/(n.x-t.x))).y,_n=e=>e*e,vn=(e,t,{x:n,y:r,x2:i,y2:a},o)=>o===`y`?{start:Math.min(r,a),end:Math.max(r,a),value:t}:{start:Math.min(n,i),end:Math.max(n,i),value:e},yn=(e,t,n,r)=>(1-r)*(1-r)*e+2*(1-r)*r*t+r*r*n,bn=(e,t,n,r)=>({x:yn(e.x,t.x,n.x,r),y:yn(e.y,t.y,n.y,r)}),xn=(e,t,n,r)=>2*(1-r)*(t-e)+2*r*(n-t),Sn=(e,t,n,r)=>-Math.atan2(xn(e.x,t.x,n.x,r),xn(e.y,t.y,n.y,r))+.5*g,Cn=class extends f{inRange(e,t,n,r){let i=(this.options.borderWidth+this.options.hitTolerance)/2;if(n!==`x`&&n!==`y`){let n={mouseX:e,mouseY:t},{path:a,ctx:o}=this;if(a){et(o,this.options),o.lineWidth+=this.options.hitTolerance;let{chart:i}=this.$context,s=e*i.currentDevicePixelRatio,c=t*i.currentDevicePixelRatio,l=o.isPointInStroke(a,s,c)||En(this,n,r);return o.restore(),l}let s=_n(i);return ree(this,n,s,r)||En(this,n,r)}return eee(this,{mouseX:e,mouseY:t},n,{hitSize:i,useFinalPosition:r})}getCenterPoint(e){return ke(this,e)}draw(e){let{x:t,y:n,x2:r,y2:i,cp:a,options:o}=this;if(e.save(),!et(e,o))return e.restore();tt(e,o);let s=Math.sqrt((r-t)**2+(i-n)**2);if(o.curve&&a)return dee(e,this,a,s),e.restore();let{startOpts:c,endOpts:l,startAdjust:u,endAdjust:d}=kn(this),f=Math.atan2(i-n,r-t);e.translate(t,n),e.rotate(f),e.beginPath(),e.moveTo(0+u,0),e.lineTo(s-d,0),e.shadowColor=o.borderShadowColor,e.stroke(),jn(e,0,u,c),jn(e,s,-d,l),e.restore()}get label(){return this.elements&&this.elements[0]}resolveElementProperties(e,t){let n=Ot(e,t),{x:r,y:i,x2:a,y2:o}=n,s=tee(n,e.chartArea),c=s?nee({x:r,y:i},{x:a,y:o},e.chartArea):{x:r,y:i,x2:a,y2:o,width:Math.abs(a-r),height:Math.abs(o-i)};c.centerX=(a+r)/2,c.centerY=(o+i)/2,c.initProperties=Ge(e,c,t),t.curve&&(c.cp=uee(c,t,v({x:c.x,y:c.y},{x:c.x2,y:c.y2})));let l=iee(e,c,t.label);return l._visible=s,c.elements=[{type:`label`,optionScope:`label`,properties:l,initProperties:c.initProperties}],c}};Cn.id=`lineAnnotation`;var wn={backgroundColor:void 0,backgroundShadowColor:void 0,borderColor:void 0,borderDash:void 0,borderDashOffset:void 0,borderShadowColor:void 0,borderWidth:void 0,display:void 0,fill:void 0,length:void 0,shadowBlur:void 0,shadowOffsetX:void 0,shadowOffsetY:void 0,width:void 0};Cn.defaults={adjustScaleRange:!0,arrowHeads:{display:!1,end:Object.assign({},wn),fill:!1,length:12,start:Object.assign({},wn),width:6},borderDash:[],borderDashOffset:0,borderShadowColor:`transparent`,borderWidth:2,curve:!1,controlPoint:{y:`-50%`},display:!0,endValue:void 0,init:void 0,hitTolerance:0,label:{backgroundColor:`rgba(0,0,0,0.8)`,backgroundShadowColor:`transparent`,borderCapStyle:`butt`,borderColor:`black`,borderDash:[],borderDashOffset:0,borderJoinStyle:`miter`,borderRadius:6,borderShadowColor:`transparent`,borderWidth:0,callout:Object.assign({},fn.defaults.callout),color:`#fff`,content:null,display:!1,drawTime:void 0,font:{family:void 0,lineHeight:void 0,size:void 0,style:void 0,weight:`bold`},height:void 0,hitTolerance:void 0,opacity:void 0,padding:6,position:`center`,rotation:0,shadowBlur:0,shadowOffsetX:0,shadowOffsetY:0,textAlign:`center`,textStrokeColor:void 0,textStrokeWidth:0,width:void 0,xAdjust:0,yAdjust:0,z:void 0},scaleID:void 0,shadowBlur:0,shadowOffsetX:0,shadowOffsetY:0,value:void 0,xMax:void 0,xMin:void 0,xScaleID:void 0,yMax:void 0,yMin:void 0,yScaleID:void 0,z:0},Cn.descriptors={arrowHeads:{start:{_fallback:!0},end:{_fallback:!0},_fallback:!0}},Cn.defaultRoutes={borderColor:`color`};function eee(e,{mouseX:t,mouseY:n},r,{hitSize:i,useFinalPosition:a}){return we(vn(t,n,e.getProps([`x`,`y`,`x2`,`y2`],a),r),i)||En(e,{mouseX:t,mouseY:n},a,r)}function tee({x:e,y:t,x2:n,y2:r},{top:i,right:a,bottom:o,left:s}){return!(e<s&&n<s||e>a&&n>a||t<i&&r<i||t>o&&r>o)}function Tn({x:e,y:t},n,{top:r,right:i,bottom:a,left:o}){return e<o&&(t=gn(o,{x:e,y:t},n),e=o),e>i&&(t=gn(i,{x:e,y:t},n),e=i),t<r&&(e=hn(r,{x:e,y:t},n),t=r),t>a&&(e=hn(a,{x:e,y:t},n),t=a),{x:e,y:t}}function nee(e,t,n){let{x:r,y:i}=Tn(e,t,n),{x:a,y:o}=Tn(t,e,n);return{x:r,y:i,x2:a,y2:o,width:Math.abs(a-r),height:Math.abs(o-i)}}function ree(e,{mouseX:t,mouseY:n},r=Se,i){let{x:a,y:o,x2:s,y2:c}=e.getProps([`x`,`y`,`x2`,`y2`],i),l=s-a,u=c-o,d=_n(l)+_n(u),f=d===0?-1:((t-a)*l+(n-o)*u)/d,p,m;return f<0?(p=a,m=o):f>1?(p=s,m=c):(p=a+f*l,m=o+f*u),_n(t-p)+_n(n-m)<=r}function En(e,{mouseX:t,mouseY:n},r,i){let a=e.label;return a.options.display&&a.inRange(t,n,i,r)}function iee(e,t,n){let r=n.borderWidth,i=V(n.padding),a=nt(e.ctx,n);return oee(t,n,{width:a.width+i.width+r,height:a.height+i.height+r,padding:i},e.chartArea)}function aee(e){let{x:t,y:n,x2:r,y2:i}=e,a=Math.atan2(i-n,r-t);return a>g/2?a-g:a<g/-2?a+g:a}function oee(e,t,n,r){let{width:i,height:a,padding:o}=n,{xAdjust:s,yAdjust:c}=t,l={x:e.x,y:e.y},d={x:e.x2,y:e.y2},f=t.rotation===`auto`?aee(e):oe(t.rotation),p=see(i,a,f),m=cee(e,t,{labelSize:p,padding:o},r),h=e.cp?bn(l,e.cp,d,m):mn(l,d,m),g={size:p.w,min:r.left,max:r.right,padding:o.left},_={size:p.h,min:r.top,max:r.bottom,padding:o.top},v=On(h.x,g)+s,y=On(h.y,_)+c;return{x:v-i/2,y:y-a/2,x2:v+i/2,y2:y+a/2,centerX:v,centerY:y,pointX:h.x,pointY:h.y,width:i,height:a,rotation:u(f)}}function see(e,t,n){let r=Math.cos(n),i=Math.sin(n);return{w:Math.abs(e*r)+Math.abs(t*i),h:Math.abs(e*i)+Math.abs(t*r)}}function cee(e,t,n,r){let i,a=lee(e,r);return i=t.position===`start`?Dn({w:e.x2-e.x,h:e.y2-e.y},n,t,a):t.position===`end`?1-Dn({w:e.x-e.x2,h:e.y-e.y2},n,t,a):Ie(1,t.position),i}function Dn(e,t,n,r){let{labelSize:i,padding:a}=t,o=e.w*r.dx,s=e.h*r.dy,c=o>0&&(i.w/2+a.left-r.x)/o,l=s>0&&(i.h/2+a.top-r.y)/s;return Ce(Math.max(c,l),0,.25)}function lee(e,t){let{x:n,x2:r,y:i,y2:a}=e,o=Math.min(i,a)-t.top,s=Math.min(n,r)-t.left,c=t.bottom-Math.max(i,a),l=t.right-Math.max(n,r);return{x:Math.min(s,l),y:Math.min(o,c),dx:s<=l?1:-1,dy:o<=c?1:-1}}function On(e,t){let{size:n,min:r,max:i,padding:a}=t,o=n/2;return n>i-r?(i+r)/2:(r>=e-a-o&&(e=r+a+o),i<=e+a+o&&(e=i-a-o),e)}function kn(e){let t=e.options,n=t.arrowHeads&&t.arrowHeads.start,r=t.arrowHeads&&t.arrowHeads.end;return{startOpts:n,endOpts:r,startAdjust:An(e,n),endAdjust:An(e,r)}}function An(e,t){if(!t||!t.display)return 0;let{length:n,width:r}=t,i=e.options.borderWidth/2,a={x:n,y:r+i},o={x:0,y:i};return Math.abs(hn(0,a,o))}function jn(e,t,n,r){if(!r||!r.display)return;let{length:i,width:a,fill:o,backgroundColor:s,borderColor:c}=r,l=Math.abs(t-i)+n;e.beginPath(),tt(e,r),et(e,r),e.moveTo(l,-a),e.lineTo(t+n,0),e.lineTo(l,a),o===!0?(e.fillStyle=s||c,e.closePath(),e.fill(),e.shadowColor=`transparent`):e.shadowColor=r.borderShadowColor,e.stroke()}function uee(e,t,n){let{x:r,y:i,x2:a,y2:o,centerX:s,centerY:c}=e,l=Math.atan2(o-i,a-r),u=Be(t.controlPoint,0);return be({x:s+Le(n,u.x,!1),y:c+Le(n,u.y,!1)},{x:s,y:c},l)}function Mn(e,{x:t,y:n},{angle:r,adjust:i},a){!a||!a.display||(e.save(),e.translate(t,n),e.rotate(r),jn(e,0,-i,a),e.restore())}function dee(e,t,n,r){let{x:i,y:a,x2:o,y2:s,options:c}=t,{startOpts:l,endOpts:u,startAdjust:d,endAdjust:f}=kn(t),p={x:i,y:a},m={x:o,y:s},h=Sn(p,n,m,0),_=Sn(p,n,m,1)-g,v=bn(p,n,m,d/r),y=bn(p,n,m,1-f/r),b=new Path2D;e.beginPath(),b.moveTo(v.x,v.y),b.quadraticCurveTo(n.x,n.y,y.x,y.y),e.shadowColor=c.borderShadowColor,e.stroke(b),t.path=b,t.ctx=e,Mn(e,v,{angle:h,adjust:d},l),Mn(e,y,{angle:_,adjust:f},u)}var Nn=class extends f{inRange(e,t,n,r){let i=this.options.rotation,a=(this.options.borderWidth+this.options.hitTolerance)/2;if(n!==`x`&&n!==`y`)return fee({x:e,y:t},this.getProps([`width`,`height`,`centerX`,`centerY`],r),i,a);let{x:o,y:s,x2:c,y2:l}=this.getProps([`x`,`y`,`x2`,`y2`],r),u=n===`y`?{start:s,end:l}:{start:o,end:c},d=be({x:e,y:t},this.getCenterPoint(r),oe(-i));return d[n]>=u.start-a-Se&&d[n]<=u.end+a+Se}getCenterPoint(e){return ke(this,e)}draw(e){let{width:t,height:n,centerX:r,centerY:i,options:a}=this;e.save(),$e(e,this.getCenterPoint(),a.rotation),tt(e,this.options),e.beginPath(),e.fillStyle=a.backgroundColor;let o=et(e,a);e.ellipse(r,i,n/2,t/2,g/2,0,2*g),e.fill(),o&&(e.shadowColor=a.borderShadowColor,e.stroke()),e.restore()}get label(){return this.elements&&this.elements[0]}resolveElementProperties(e,t){return kt(e,t)}};Nn.id=`ellipseAnnotation`,Nn.defaults={adjustScaleRange:!0,backgroundShadowColor:`transparent`,borderDash:[],borderDashOffset:0,borderShadowColor:`transparent`,borderWidth:1,display:!0,hitTolerance:0,init:void 0,label:Object.assign({},rn.defaults.label),rotation:0,shadowBlur:0,shadowOffsetX:0,shadowOffsetY:0,xMax:void 0,xMin:void 0,xScaleID:void 0,yMax:void 0,yMin:void 0,yScaleID:void 0,z:0},Nn.defaultRoutes={borderColor:`color`,backgroundColor:`color`},Nn.descriptors={label:{_fallback:!0}};function fee(e,t,n,r){let{width:i,height:a,centerX:o,centerY:s}=t,c=i/2,l=a/2;if(c<=0||l<=0)return!1;let u=oe(n||0),d=Math.cos(u),f=Math.sin(u),p=(d*(e.x-o)+f*(e.y-s))**2,m=(f*(e.x-o)-d*(e.y-s))**2;return p/(c+r)**2+m/(l+r)**2<=1.0001}var Pn=class extends f{inRange(e,t,n,r){let{x:i,y:a,x2:o,y2:s,width:c}=this.getProps([`x`,`y`,`x2`,`y2`,`width`],r),l=(this.options.borderWidth+this.options.hitTolerance)/2;return n!==`x`&&n!==`y`?Ee({x:e,y:t},this.getCenterPoint(r),c/2,l):we(n===`y`?{start:a,end:s,value:t}:{start:i,end:o,value:e},l)}getCenterPoint(e){return ke(this,e)}draw(e){let t=this.options,n=t.borderWidth;if(t.radius<.1)return;e.save(),e.fillStyle=t.backgroundColor,tt(e,t);let r=et(e,t);ot(e,this,this.centerX,this.centerY),r&&!Qe(t.pointStyle)&&(e.shadowColor=t.borderShadowColor,e.stroke()),e.restore(),t.borderWidth=n}resolveElementProperties(e,t){let n=Dt(e,t);return n.initProperties=Ge(e,n,t),n}};Pn.id=`pointAnnotation`,Pn.defaults={adjustScaleRange:!0,backgroundShadowColor:`transparent`,borderDash:[],borderDashOffset:0,borderShadowColor:`transparent`,borderWidth:1,display:!0,hitTolerance:0,init:void 0,pointStyle:`circle`,radius:10,rotation:0,shadowBlur:0,shadowOffsetX:0,shadowOffsetY:0,xAdjust:0,xMax:void 0,xMin:void 0,xScaleID:void 0,xValue:void 0,yAdjust:0,yMax:void 0,yMin:void 0,yScaleID:void 0,yValue:void 0,z:0},Pn.defaultRoutes={borderColor:`color`,backgroundColor:`color`};var Fn=class extends f{inRange(e,t,n,r){if(n!==`x`&&n!==`y`)return this.options.radius>=.1&&this.elements.length>1&&mee(this.elements,e,t,r);let i=be({x:e,y:t},this.getCenterPoint(r),oe(-this.options.rotation)),a=this.elements.map(e=>n===`y`?e.bY:e.bX),o=Math.min(...a),s=Math.max(...a);return i[n]>=o&&i[n]<=s}getCenterPoint(e){return ke(this,e)}draw(e){let{elements:t,options:n}=this;e.save(),e.beginPath(),e.fillStyle=n.backgroundColor,tt(e,n);let r=et(e,n),i=!0;for(let n of t)i?(e.moveTo(n.x,n.y),i=!1):e.lineTo(n.x,n.y);e.closePath(),e.fill(),r&&(e.shadowColor=n.borderShadowColor,e.stroke()),e.restore()}resolveElementProperties(e,t){let n=Dt(e,t),{sides:r,rotation:i}=t,a=[],o=2*g/r,s=i*S;for(let i=0;i<r;i++,s+=o){let r=pee(n,t,s);r.initProperties=Ge(e,n,t),a.push(r)}return n.elements=a,n}};Fn.id=`polygonAnnotation`,Fn.defaults={adjustScaleRange:!0,backgroundShadowColor:`transparent`,borderCapStyle:`butt`,borderDash:[],borderDashOffset:0,borderJoinStyle:`miter`,borderShadowColor:`transparent`,borderWidth:1,display:!0,hitTolerance:0,init:void 0,point:{radius:0},radius:10,rotation:0,shadowBlur:0,shadowOffsetX:0,shadowOffsetY:0,sides:3,xAdjust:0,xMax:void 0,xMin:void 0,xScaleID:void 0,xValue:void 0,yAdjust:0,yMax:void 0,yMin:void 0,yScaleID:void 0,yValue:void 0,z:0},Fn.defaultRoutes={borderColor:`color`,backgroundColor:`color`};function pee({centerX:e,centerY:t},{radius:n,borderWidth:r,hitTolerance:i},a){let o=(r+i)/2,s=Math.sin(a),c=Math.cos(a),l={x:e+s*n,y:t-c*n};return{type:`point`,optionScope:`point`,properties:{x:l.x,y:l.y,centerX:l.x,centerY:l.y,bX:e+s*(n+o),bY:t-c*(n+o)}}}function mee(e,t,n,r){let i=!1,a=e[e.length-1].getProps([`bX`,`bY`],r);for(let o of e){let e=o.getProps([`bX`,`bY`],r);e.bY>n!=a.bY>n&&t<(a.bX-e.bX)*(n-e.bY)/(a.bY-e.bY)+e.bX&&(i=!i),a=e}return i}var In={box:rn,doughnutLabel:an,ellipse:Nn,label:fn,line:Cn,point:Pn,polygon:Fn};Object.keys(In).forEach(e=>{O.describe(`elements.${In[e].id}`,{_fallback:`plugins.annotation.common`})});var hee={update:Object.assign},gee=zt.concat(Kt),Ln=(e,t)=>x(t)?Hn(e,t):e,Rn=e=>e===`color`||e===`font`;function zn(e=`line`){return In[e]?e:(console.warn(`Unknown annotation type: '${e}', defaulting to 'line'`),`line`)}function _ee(e,t,n,r){let i=yee(e,n.animations,r),a=t.annotations,o=See(t.elements,a);for(let t=0;t<a.length;t++){let n=a[t],r=Bn(o,t,n.type),s=n.setContext(xee(e,r,o,n)),c=r.resolveElementProperties(e,s);c.skip=vee(c),`elements`in c&&(bee(r,c.elements,s,i),delete c.elements),m(r.x)||Object.assign(r,c),Object.assign(r,c.initProperties),c.options=Vn(s),i.update(r,c)}}function vee(e){return isNaN(e.x)||isNaN(e.y)}function yee(e,t,n){return n===`reset`||n===`none`||n===`resize`?hee:new P(e,t)}function bee(e,t,n,r){let i=e.elements||=[];i.length=t.length;for(let e=0;e<t.length;e++){let a=t[e],o=a.properties,s=Bn(i,e,a.type,a.initProperties);o.options=Vn(n[a.optionScope].override(a)),r.update(s,o)}}function Bn(e,t,n,r){let i=In[zn(n)],a=e[t];return(!a||!(a instanceof i))&&(a=e[t]=new i,Object.assign(a,r)),a}function Vn(e){let t=In[zn(e.type)],n={};n.id=e.id,n.type=e.type,n.drawTime=e.drawTime,Object.assign(n,Hn(e,t.defaults),Hn(e,t.defaultRoutes));for(let t of gee)n[t]=e[t];return n}function Hn(e,t){let n={};for(let r of Object.keys(t)){let i=t[r],a=e[r];Rn(r)&&_(a)?n[r]=a.map(e=>Ln(e,i)):n[r]=Ln(a,i)}return n}function xee(e,t,n,r){return t.$context||=Object.assign(Object.create(e.getContext()),{element:t,get elements(){return n.filter(e=>e&&e.options)},id:r.id,type:`annotation`})}function See(e,t){let n=t.length,r=e.length;if(r<n){let t=n-r;e.splice(r,0,...Array(t))}else r>n&&e.splice(n,r-n);return e}var Cee=`3.1.0`,Un=new Map,Wn=e=>e.type!==`doughnutLabel`,wee=zt.concat(Kt),Tee={id:`annotation`,version:Cee,beforeRegister(){Ae(`chart.js`,`4.0`,fe.version)},afterRegister(){fe.register(In)},afterUnregister(){fe.unregister(In)},beforeInit(e){Un.set(e,{annotations:[],elements:[],visibleElements:[],listeners:{},listened:!1,moveListened:!1,hooks:{},hooked:!1,hovered:[]})},beforeUpdate(e,t,n){let r=Un.get(e),i=r.annotations=[],a=n.annotations;x(a)?Object.keys(a).forEach(e=>{let t=a[e];x(t)&&(t.id=e,i.push(t))}):_(a)&&i.push(...a),Xt(i.filter(Wn),e.scales)},afterDataLimits(e,t){let n=Un.get(e);Yt(e,t.scale,n.annotations.filter(Wn).filter(e=>e.display&&e.adjustScaleRange))},afterUpdate(e,t,n){let r=Un.get(e);Bt(e,r,n),_ee(e,r,n,t.mode),r.visibleElements=r.elements.filter(e=>!e.skip&&e.options.display),qt(e,r,n)},beforeDatasetsDraw(e,t,n){Gn(e,`beforeDatasetsDraw`,n.clip)},afterDatasetsDraw(e,t,n){Gn(e,`afterDatasetsDraw`,n.clip)},beforeDatasetDraw(e,t,n){Gn(e,t.index,n.clip)},beforeDraw(e,t,n){Gn(e,`beforeDraw`,n.clip)},afterDraw(e,t,n){Gn(e,`afterDraw`,n.clip)},beforeEvent(e,t,n){Vt(Un.get(e),t.event,n)&&(t.changed=!0)},afterDestroy(e){Un.delete(e)},getAnnotations(e){let t=Un.get(e);return t?t.elements:[]},_getAnnotationElementsAtEventForMode(e,t,n){return he(e,t,n)},defaults:{animations:{numbers:{properties:[`x`,`y`,`x2`,`y2`,`width`,`height`,`centerX`,`centerY`,`pointX`,`pointY`,`radius`],type:`number`},colors:{properties:[`backgroundColor`,`borderColor`],type:`color`}},clip:!0,interaction:{mode:void 0,axis:void 0,intersect:void 0},common:{drawTime:`afterDatasetsDraw`,init:!1,label:{}}},descriptors:{_indexable:!1,_scriptable:e=>!wee.includes(e)&&e!==`init`,annotations:{_allKeys:!1,_fallback:(e,t)=>`elements.${In[zn(t.type)].id}`},interaction:{_fallback:!0},common:{label:{_indexable:Rn,_fallback:!0},_indexable:Rn}},additionalOptionScopes:[``]};function Gn(e,t,n){let{ctx:r,chartArea:i}=e,a=Un.get(e);n&&T(r,i);let o=Eee(a.visibleElements,t).sort((e,t)=>e.element.options.z-t.element.options.z);for(let e of o)Dee(r,i,a,e);n&&R(r)}function Eee(e,t){let n=[];for(let r of e)if(r.options.drawTime===t&&n.push({element:r,main:!0}),r.elements&&r.elements.length)for(let e of r.elements)e.options.display&&e.options.drawTime===t&&n.push({element:e});return n}function Dee(e,t,n,r){let i=r.element;r.main?(Jt(n,i,`beforeDraw`),i.draw(e,t),Jt(n,i,`afterDraw`)):i.draw(e,t)}function Kn(e){let t=null;return()=>(t??=e(),t)}function Oee(e,t){return e.filter(e=>e!==t)}function kee(e,t){let n=new Set,r=e=>n.add(e);e.forEach(r),t.forEach(r);let i=[];return n.forEach(e=>i.push(e)),i}var Aee=class{enter(e){let t=this.entered.length;return this.entered=kee(this.entered.filter(t=>this.isNodeInDocument(t)&&(!t.contains||t.contains(e))),[e]),t===0&&this.entered.length>0}leave(e){let t=this.entered.length;return this.entered=Oee(this.entered.filter(this.isNodeInDocument),e),t>0&&this.entered.length===0}reset(){this.entered=[]}constructor(e){this.entered=[],this.isNodeInDocument=e}},jee=class{initializeExposedProperties(){Object.keys(this.config.exposeProperties).forEach(e=>{Object.defineProperty(this.item,e,{configurable:!0,enumerable:!0,get(){return console.warn(`Browser doesn't allow reading "${e}" until the drop event.`),null}})})}loadDataTransfer(e){if(e){let t={};Object.keys(this.config.exposeProperties).forEach(n=>{let r=this.config.exposeProperties[n];r!=null&&(t[n]={value:r(e,this.config.matchesTypes),configurable:!0,enumerable:!0})}),Object.defineProperties(this.item,t)}}canDrag(){return!0}beginDrag(){return this.item}isDragging(e,t){return t===e.getSourceId()}endDrag(){}constructor(e){this.config=e,this.item={},this.initializeExposedProperties()}},qn=s({FILE:()=>Jn,HTML:()=>Zn,TEXT:()=>Xn,URL:()=>Yn});const Jn=`__NATIVE_FILE__`,Yn=`__NATIVE_URL__`,Xn=`__NATIVE_TEXT__`,Zn=`__NATIVE_HTML__`;function Qn(e,t,n){return t.reduce((t,n)=>t||e.getData(n),``)??n}const $n={[Jn]:{exposeProperties:{files:e=>Array.prototype.slice.call(e.files),items:e=>e.items,dataTransfer:e=>e},matchesTypes:[`Files`]},[Zn]:{exposeProperties:{html:(e,t)=>Qn(e,t,``),dataTransfer:e=>e},matchesTypes:[`Html`,`text/html`]},[Yn]:{exposeProperties:{urls:(e,t)=>Qn(e,t,``).split(`
2
2
  `),dataTransfer:e=>e},matchesTypes:[`Url`,`text/uri-list`]},[Xn]:{exposeProperties:{text:(e,t)=>Qn(e,t,``),dataTransfer:e=>e},matchesTypes:[`Text`,`text/plain`]}};function Mee(e,t){let n=$n[e];if(!n)throw Error(`native type ${e} has no configuration`);let r=new jee(n);return r.loadDataTransfer(t),r}function er(e){if(!e)return null;let t=Array.prototype.slice.call(e.types||[]);return Object.keys($n).filter(e=>{let n=$n[e];return n?.matchesTypes?n.matchesTypes.some(e=>t.indexOf(e)>-1):!1})[0]||null}const Nee=Kn(()=>/firefox/i.test(navigator.userAgent)),tr=Kn(()=>!!window.safari);var nr=class{interpolate(e){let{xs:t,ys:n,c1s:r,c2s:i,c3s:a}=this,o=t.length-1;if(e===t[o])return n[o];let s=0,c=a.length-1,l;for(;s<=c;){l=Math.floor(.5*(s+c));let r=t[l];if(r<e)s=l+1;else if(r>e)c=l-1;else return n[l]}o=Math.max(0,c);let u=e-t[o],d=u*u;return n[o]+r[o]*u+i[o]*d+a[o]*u*d}constructor(e,t){let{length:n}=e,r=[];for(let e=0;e<n;e++)r.push(e);r.sort((t,n)=>e[t]<e[n]?-1:1);let i=[],a=[],o=[],s,c;for(let r=0;r<n-1;r++)s=e[r+1]-e[r],c=t[r+1]-t[r],a.push(s),i.push(c),o.push(c/s);let l=[o[0]];for(let e=0;e<a.length-1;e++){let t=o[e],n=o[e+1];if(t*n<=0)l.push(0);else{s=a[e];let r=a[e+1],i=s+r;l.push(3*i/((i+r)/t+(i+s)/n))}}l.push(o[o.length-1]);let u=[],d=[],f;for(let e=0;e<l.length-1;e++){f=o[e];let t=l[e],n=1/a[e],r=t+l[e+1]-f-f;u.push((f-t-r)*n),d.push(r*n*n)}this.xs=e,this.ys=t,this.c1s=l,this.c2s=u,this.c3s=d}},Pee=1;function rr(e){let t=e.nodeType===Pee?e:e.parentElement;if(!t)return null;let{top:n,left:r}=t.getBoundingClientRect();return{x:r,y:n}}function ir(e){return{x:e.clientX,y:e.clientY}}function Fee(e){return e.nodeName===`IMG`&&(Nee()||!document.documentElement?.contains(e))}function Iee(e,t,n,r){let i=e?t.width:n,a=e?t.height:r;return tr()&&e&&(a/=window.devicePixelRatio,i/=window.devicePixelRatio),{dragPreviewWidth:i,dragPreviewHeight:a}}function Lee(e,t,n,r,i){let a=Fee(t),o=rr(a?e:t),s={x:n.x-o.x,y:n.y-o.y},{offsetWidth:c,offsetHeight:l}=e,{anchorX:u,anchorY:d}=r,{dragPreviewWidth:f,dragPreviewHeight:p}=Iee(a,t,c,l),m=()=>{let e=new nr([0,.5,1],[s.y,s.y/l*p,s.y+p-l]).interpolate(d);return tr()&&a&&(e+=(window.devicePixelRatio-1)*p),e},h=()=>new nr([0,.5,1],[s.x,s.x/c*f,s.x+f-c]).interpolate(u),{offsetX:g,offsetY:_}=i,v=g===0||g,y=_===0||_;return{x:v?g:h(),y:y?_:m()}}var Ree=class{get window(){if(this.globalContext)return this.globalContext;if(typeof window<`u`)return window}get document(){if(this.globalContext?.document)return this.globalContext.document;if(this.window)return this.window.document}get rootElement(){return this.optionsArgs?.rootElement||this.window}constructor(e,t){this.ownerDocument=null,this.globalContext=e,this.optionsArgs=t}};function zee(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function ar(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]==null?{}:arguments[t],r=Object.keys(n);typeof Object.getOwnPropertySymbols==`function`&&(r=r.concat(Object.getOwnPropertySymbols(n).filter(function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable}))),r.forEach(function(t){zee(e,t,n[t])})}return e}var Bee=class{profile(){return{sourcePreviewNodes:this.sourcePreviewNodes.size,sourcePreviewNodeOptions:this.sourcePreviewNodeOptions.size,sourceNodeOptions:this.sourceNodeOptions.size,sourceNodes:this.sourceNodes.size,dragStartSourceIds:this.dragStartSourceIds?.length||0,dropTargetIds:this.dropTargetIds.length,dragEnterTargetIds:this.dragEnterTargetIds.length,dragOverTargetIds:this.dragOverTargetIds?.length||0}}get window(){return this.options.window}get document(){return this.options.document}get rootElement(){return this.options.rootElement}setup(){let e=this.rootElement;if(e!==void 0){if(e.__isReactDndBackendSetUp)throw Error(`Cannot have two HTML5 backends at the same time.`);e.__isReactDndBackendSetUp=!0,this.addEventListeners(e)}}teardown(){let e=this.rootElement;if(e!==void 0&&(e.__isReactDndBackendSetUp=!1,this.removeEventListeners(this.rootElement),this.clearCurrentDragSourceNode(),this.asyncEndDragFrameId)){var t;(t=this.window)==null||t.cancelAnimationFrame(this.asyncEndDragFrameId)}}connectDragPreview(e,t,n){return this.sourcePreviewNodeOptions.set(e,n),this.sourcePreviewNodes.set(e,t),()=>{this.sourcePreviewNodes.delete(e),this.sourcePreviewNodeOptions.delete(e)}}connectDragSource(e,t,n){this.sourceNodes.set(e,t),this.sourceNodeOptions.set(e,n);let r=t=>this.handleDragStart(t,e),i=e=>this.handleSelectStart(e);return t.setAttribute(`draggable`,`true`),t.addEventListener(`dragstart`,r),t.addEventListener(`selectstart`,i),()=>{this.sourceNodes.delete(e),this.sourceNodeOptions.delete(e),t.removeEventListener(`dragstart`,r),t.removeEventListener(`selectstart`,i),t.setAttribute(`draggable`,`false`)}}connectDropTarget(e,t){let n=t=>this.handleDragEnter(t,e),r=t=>this.handleDragOver(t,e),i=t=>this.handleDrop(t,e);return t.addEventListener(`dragenter`,n),t.addEventListener(`dragover`,r),t.addEventListener(`drop`,i),()=>{t.removeEventListener(`dragenter`,n),t.removeEventListener(`dragover`,r),t.removeEventListener(`drop`,i)}}addEventListeners(e){e.addEventListener&&(e.addEventListener(`dragstart`,this.handleTopDragStart),e.addEventListener(`dragstart`,this.handleTopDragStartCapture,!0),e.addEventListener(`dragend`,this.handleTopDragEndCapture,!0),e.addEventListener(`dragenter`,this.handleTopDragEnter),e.addEventListener(`dragenter`,this.handleTopDragEnterCapture,!0),e.addEventListener(`dragleave`,this.handleTopDragLeaveCapture,!0),e.addEventListener(`dragover`,this.handleTopDragOver),e.addEventListener(`dragover`,this.handleTopDragOverCapture,!0),e.addEventListener(`drop`,this.handleTopDrop),e.addEventListener(`drop`,this.handleTopDropCapture,!0))}removeEventListeners(e){e.removeEventListener&&(e.removeEventListener(`dragstart`,this.handleTopDragStart),e.removeEventListener(`dragstart`,this.handleTopDragStartCapture,!0),e.removeEventListener(`dragend`,this.handleTopDragEndCapture,!0),e.removeEventListener(`dragenter`,this.handleTopDragEnter),e.removeEventListener(`dragenter`,this.handleTopDragEnterCapture,!0),e.removeEventListener(`dragleave`,this.handleTopDragLeaveCapture,!0),e.removeEventListener(`dragover`,this.handleTopDragOver),e.removeEventListener(`dragover`,this.handleTopDragOverCapture,!0),e.removeEventListener(`drop`,this.handleTopDrop),e.removeEventListener(`drop`,this.handleTopDropCapture,!0))}getCurrentSourceNodeOptions(){let e=this.monitor.getSourceId(),t=this.sourceNodeOptions.get(e);return ar({dropEffect:this.altKeyPressed?`copy`:`move`},t||{})}getCurrentDropEffect(){return this.isDraggingNativeItem()?`copy`:this.getCurrentSourceNodeOptions().dropEffect}getCurrentSourcePreviewNodeOptions(){let e=this.monitor.getSourceId();return ar({anchorX:.5,anchorY:.5,captureDraggingState:!1},this.sourcePreviewNodeOptions.get(e)||{})}isDraggingNativeItem(){let e=this.monitor.getItemType();return Object.keys(qn).some(t=>qn[t]===e)}beginDragNativeItem(e,t){this.clearCurrentDragSourceNode(),this.currentNativeSource=Mee(e,t),this.currentNativeHandle=this.registry.addSource(e,this.currentNativeSource),this.actions.beginDrag([this.currentNativeHandle])}setCurrentDragSourceNode(e){this.clearCurrentDragSourceNode(),this.currentDragSourceNode=e,this.mouseMoveTimeoutTimer=setTimeout(()=>this.rootElement?.addEventListener(`mousemove`,this.endDragIfSourceWasRemovedFromDOM,!0),1e3)}clearCurrentDragSourceNode(){if(this.currentDragSourceNode){if(this.currentDragSourceNode=null,this.rootElement){var e;(e=this.window)==null||e.clearTimeout(this.mouseMoveTimeoutTimer||void 0),this.rootElement.removeEventListener(`mousemove`,this.endDragIfSourceWasRemovedFromDOM,!0)}return this.mouseMoveTimeoutTimer=null,!0}return!1}handleDragStart(e,t){e.defaultPrevented||(this.dragStartSourceIds||=[],this.dragStartSourceIds.unshift(t))}handleDragEnter(e,t){this.dragEnterTargetIds.unshift(t)}handleDragOver(e,t){this.dragOverTargetIds===null&&(this.dragOverTargetIds=[]),this.dragOverTargetIds.unshift(t)}handleDrop(e,t){this.dropTargetIds.unshift(t)}constructor(e,t,n){this.sourcePreviewNodes=new Map,this.sourcePreviewNodeOptions=new Map,this.sourceNodes=new Map,this.sourceNodeOptions=new Map,this.dragStartSourceIds=null,this.dropTargetIds=[],this.dragEnterTargetIds=[],this.currentNativeSource=null,this.currentNativeHandle=null,this.currentDragSourceNode=null,this.altKeyPressed=!1,this.mouseMoveTimeoutTimer=null,this.asyncEndDragFrameId=null,this.dragOverTargetIds=null,this.lastClientOffset=null,this.hoverRafId=null,this.getSourceClientOffset=e=>{let t=this.sourceNodes.get(e);return t&&rr(t)||null},this.endDragNativeItem=()=>{this.isDraggingNativeItem()&&(this.actions.endDrag(),this.currentNativeHandle&&this.registry.removeSource(this.currentNativeHandle),this.currentNativeHandle=null,this.currentNativeSource=null)},this.isNodeInDocument=e=>!!(e&&this.document&&this.document.body&&this.document.body.contains(e)),this.endDragIfSourceWasRemovedFromDOM=()=>{let e=this.currentDragSourceNode;e==null||this.isNodeInDocument(e)||(this.clearCurrentDragSourceNode()&&this.monitor.isDragging()&&this.actions.endDrag(),this.cancelHover())},this.scheduleHover=e=>{this.hoverRafId===null&&typeof requestAnimationFrame<`u`&&(this.hoverRafId=requestAnimationFrame(()=>{this.monitor.isDragging()&&this.actions.hover(e||[],{clientOffset:this.lastClientOffset}),this.hoverRafId=null}))},this.cancelHover=()=>{this.hoverRafId!==null&&typeof cancelAnimationFrame<`u`&&(cancelAnimationFrame(this.hoverRafId),this.hoverRafId=null)},this.handleTopDragStartCapture=()=>{this.clearCurrentDragSourceNode(),this.dragStartSourceIds=[]},this.handleTopDragStart=e=>{if(e.defaultPrevented)return;let{dragStartSourceIds:t}=this;this.dragStartSourceIds=null;let n=ir(e);this.monitor.isDragging()&&(this.actions.endDrag(),this.cancelHover()),this.actions.beginDrag(t||[],{publishSource:!1,getSourceClientOffset:this.getSourceClientOffset,clientOffset:n});let{dataTransfer:r}=e,i=er(r);if(this.monitor.isDragging()){if(r&&typeof r.setDragImage==`function`){let e=this.monitor.getSourceId(),t=this.sourceNodes.get(e),i=this.sourcePreviewNodes.get(e)||t;if(i){let{anchorX:e,anchorY:a,offsetX:o,offsetY:s}=this.getCurrentSourcePreviewNodeOptions(),c=Lee(t,i,n,{anchorX:e,anchorY:a},{offsetX:o,offsetY:s});r.setDragImage(i,c.x,c.y)}}try{r?.setData(`application/json`,{})}catch{}this.setCurrentDragSourceNode(e.target);let{captureDraggingState:t}=this.getCurrentSourcePreviewNodeOptions();t?this.actions.publishDragSource():setTimeout(()=>this.actions.publishDragSource(),0)}else if(i)this.beginDragNativeItem(i);else if(r&&!r.types&&(e.target&&!e.target.hasAttribute||!e.target.hasAttribute(`draggable`)))return;else e.preventDefault()},this.handleTopDragEndCapture=()=>{this.clearCurrentDragSourceNode()&&this.monitor.isDragging()&&this.actions.endDrag(),this.cancelHover()},this.handleTopDragEnterCapture=e=>{if(this.dragEnterTargetIds=[],this.isDraggingNativeItem()){var t;(t=this.currentNativeSource)==null||t.loadDataTransfer(e.dataTransfer)}if(!this.enterLeaveCounter.enter(e.target)||this.monitor.isDragging())return;let{dataTransfer:n}=e,r=er(n);r&&this.beginDragNativeItem(r,n)},this.handleTopDragEnter=e=>{let{dragEnterTargetIds:t}=this;this.dragEnterTargetIds=[],this.monitor.isDragging()&&(this.altKeyPressed=e.altKey,t.length>0&&this.actions.hover(t,{clientOffset:ir(e)}),t.some(e=>this.monitor.canDropOnTarget(e))&&(e.preventDefault(),e.dataTransfer&&(e.dataTransfer.dropEffect=this.getCurrentDropEffect())))},this.handleTopDragOverCapture=e=>{if(this.dragOverTargetIds=[],this.isDraggingNativeItem()){var t;(t=this.currentNativeSource)==null||t.loadDataTransfer(e.dataTransfer)}},this.handleTopDragOver=e=>{let{dragOverTargetIds:t}=this;if(this.dragOverTargetIds=[],!this.monitor.isDragging()){e.preventDefault(),e.dataTransfer&&(e.dataTransfer.dropEffect=`none`);return}this.altKeyPressed=e.altKey,this.lastClientOffset=ir(e),this.scheduleHover(t),(t||[]).some(e=>this.monitor.canDropOnTarget(e))?(e.preventDefault(),e.dataTransfer&&(e.dataTransfer.dropEffect=this.getCurrentDropEffect())):this.isDraggingNativeItem()?e.preventDefault():(e.preventDefault(),e.dataTransfer&&(e.dataTransfer.dropEffect=`none`))},this.handleTopDragLeaveCapture=e=>{this.isDraggingNativeItem()&&e.preventDefault(),this.enterLeaveCounter.leave(e.target)&&(this.isDraggingNativeItem()&&setTimeout(()=>this.endDragNativeItem(),0),this.cancelHover())},this.handleTopDropCapture=e=>{if(this.dropTargetIds=[],this.isDraggingNativeItem()){var t;e.preventDefault(),(t=this.currentNativeSource)==null||t.loadDataTransfer(e.dataTransfer)}else er(e.dataTransfer)&&e.preventDefault();this.enterLeaveCounter.reset()},this.handleTopDrop=e=>{let{dropTargetIds:t}=this;this.dropTargetIds=[],this.actions.hover(t,{clientOffset:ir(e)}),this.actions.drop({dropEffect:this.getCurrentDropEffect()}),this.isDraggingNativeItem()?this.endDragNativeItem():this.monitor.isDragging()&&this.actions.endDrag(),this.cancelHover()},this.handleSelectStart=e=>{let t=e.target;typeof t.dragDrop==`function`&&(t.tagName===`INPUT`||t.tagName===`SELECT`||t.tagName===`TEXTAREA`||t.isContentEditable||(e.preventDefault(),t.dragDrop()))},this.options=new Ree(t,n),this.actions=e.getActions(),this.monitor=e.getMonitor(),this.registry=e.getRegistry(),this.enterLeaveCounter=new Aee(this.isNodeInDocument)}};const Vee=function(e,t,n){return new Bee(e,t,n)};var H=e(n(),1);const or=(0,H.createContext)({dragDropManager:void 0});function sr(e){return`Minified Redux error #`+e+`; visit https://redux.js.org/Errors?code=`+e+` for the full message or use the non-minified dev environment for full errors. `}var cr=(function(){return typeof Symbol==`function`&&Symbol.observable||`@@observable`})(),lr=function(){return Math.random().toString(36).substring(7).split(``).join(`.`)},ur={INIT:`@@redux/INIT`+lr(),REPLACE:`@@redux/REPLACE`+lr(),PROBE_UNKNOWN_ACTION:function(){return`@@redux/PROBE_UNKNOWN_ACTION`+lr()}};function Hee(e){if(typeof e!=`object`||!e)return!1;for(var t=e;Object.getPrototypeOf(t)!==null;)t=Object.getPrototypeOf(t);return Object.getPrototypeOf(e)===t}function dr(e,t,n){var r;if(typeof t==`function`&&typeof n==`function`||typeof n==`function`&&typeof arguments[3]==`function`)throw Error(sr(0));if(typeof t==`function`&&n===void 0&&(n=t,t=void 0),n!==void 0){if(typeof n!=`function`)throw Error(sr(1));return n(dr)(e,t)}if(typeof e!=`function`)throw Error(sr(2));var i=e,a=t,o=[],s=o,c=!1;function l(){s===o&&(s=o.slice())}function u(){if(c)throw Error(sr(3));return a}function d(e){if(typeof e!=`function`)throw Error(sr(4));if(c)throw Error(sr(5));var t=!0;return l(),s.push(e),function(){if(t){if(c)throw Error(sr(6));t=!1,l();var n=s.indexOf(e);s.splice(n,1),o=null}}}function f(e){if(!Hee(e))throw Error(sr(7));if(e.type===void 0)throw Error(sr(8));if(c)throw Error(sr(9));try{c=!0,a=i(a,e)}finally{c=!1}for(var t=o=s,n=0;n<t.length;n++){var r=t[n];r()}return e}function p(e){if(typeof e!=`function`)throw Error(sr(10));i=e,f({type:ur.REPLACE})}function m(){var e,t=d;return e={subscribe:function(e){if(typeof e!=`object`||!e)throw Error(sr(11));function n(){e.next&&e.next(u())}return n(),{unsubscribe:t(n)}}},e[cr]=function(){return this},e}return f({type:ur.INIT}),r={dispatch:f,subscribe:d,getState:u,replaceReducer:p},r[cr]=m,r}function fr(e,t,...n){if(Uee()&&t===void 0)throw Error(`invariant requires an error message argument`);if(!e){let e;if(t===void 0)e=Error(`Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.`);else{let r=0;e=Error(t.replace(/%s/g,function(){return n[r++]})),e.name=`Invariant Violation`}throw e.framesToPop=1,e}}function Uee(){return typeof process<`u`&&!0}function Wee(e,t,n){return t.split(`.`).reduce((e,t)=>e&&e[t]?e[t]:n||null,e)}function Gee(e,t){return e.filter(e=>e!==t)}function pr(e){return typeof e==`object`}function Kee(e,t){let n=new Map,r=e=>{n.set(e,n.has(e)?n.get(e)+1:1)};e.forEach(r),t.forEach(r);let i=[];return n.forEach((e,t)=>{e===1&&i.push(t)}),i}function qee(e,t){return e.filter(e=>t.indexOf(e)>-1)}const mr=`dnd-core/INIT_COORDS`,hr=`dnd-core/BEGIN_DRAG`,gr=`dnd-core/PUBLISH_DRAG_SOURCE`,_r=`dnd-core/HOVER`,vr=`dnd-core/DROP`,yr=`dnd-core/END_DRAG`;function br(e,t){return{type:mr,payload:{sourceClientOffset:t||null,clientOffset:e||null}}}var Jee={type:mr,payload:{clientOffset:null,sourceClientOffset:null}};function Yee(e){return function(t=[],n={publishSource:!0}){let{publishSource:r=!0,clientOffset:i,getSourceClientOffset:a}=n,o=e.getMonitor(),s=e.getRegistry();e.dispatch(br(i)),Xee(t,o,s);let c=$ee(t,o);if(c==null){e.dispatch(Jee);return}let l=null;if(i){if(!a)throw Error(`getSourceClientOffset must be defined`);Zee(a),l=a(c)}e.dispatch(br(i,l));let u=s.getSource(c).beginDrag(o,c);if(u!=null)return Qee(u),s.pinSource(c),{type:hr,payload:{itemType:s.getSourceType(c),item:u,sourceId:c,clientOffset:i||null,sourceClientOffset:l||null,isSourcePublic:!!r}}}}function Xee(e,t,n){fr(!t.isDragging(),`Cannot call beginDrag while dragging.`),e.forEach(function(e){fr(n.getSource(e),`Expected sourceIds to be registered.`)})}function Zee(e){fr(typeof e==`function`,`When clientOffset is provided, getSourceClientOffset must be a function.`)}function Qee(e){fr(pr(e),`Item must be an object.`)}function $ee(e,t){let n=null;for(let r=e.length-1;r>=0;r--)if(t.canDragSource(e[r])){n=e[r];break}return n}function ete(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function tte(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]==null?{}:arguments[t],r=Object.keys(n);typeof Object.getOwnPropertySymbols==`function`&&(r=r.concat(Object.getOwnPropertySymbols(n).filter(function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable}))),r.forEach(function(t){ete(e,t,n[t])})}return e}function nte(e){return function(t={}){let n=e.getMonitor(),r=e.getRegistry();rte(n),ote(n).forEach((i,a)=>{let o={type:vr,payload:{dropResult:tte({},t,ite(i,a,r,n))}};e.dispatch(o)})}}function rte(e){fr(e.isDragging(),`Cannot call drop while not dragging.`),fr(!e.didDrop(),`Cannot call drop twice during one drag operation.`)}function ite(e,t,n,r){let i=n.getTarget(e),a=i?i.drop(r,e):void 0;return ate(a),a===void 0&&(a=t===0?{}:r.getDropResult()),a}function ate(e){fr(e===void 0||pr(e),`Drop result must either be an object or undefined.`)}function ote(e){let t=e.getTargetIds().filter(e.canDropOnTarget,e);return t.reverse(),t}function ste(e){return function(){let t=e.getMonitor(),n=e.getRegistry();cte(t);let r=t.getSourceId();return r!=null&&(n.getSource(r,!0).endDrag(t,r),n.unpinSource()),{type:yr}}}function cte(e){fr(e.isDragging(),`Cannot call endDrag while not dragging.`)}function xr(e,t){return t===null?e===null:Array.isArray(e)?e.some(e=>e===t):e===t}function lte(e){return function(t,{clientOffset:n}={}){ute(t);let r=t.slice(0),i=e.getMonitor(),a=e.getRegistry();return fte(r,a,i.getItemType()),dte(r,i,a),pte(r,i,a),{type:_r,payload:{targetIds:r,clientOffset:n||null}}}}function ute(e){fr(Array.isArray(e),`Expected targetIds to be an array.`)}function dte(e,t,n){fr(t.isDragging(),`Cannot call hover while not dragging.`),fr(!t.didDrop(),`Cannot call hover after drop.`);for(let t=0;t<e.length;t++){let r=e[t];fr(e.lastIndexOf(r)===t,`Expected targetIds to be unique in the passed array.`),fr(n.getTarget(r),`Expected targetIds to be registered.`)}}function fte(e,t,n){for(let r=e.length-1;r>=0;r--){let i=e[r];xr(t.getTargetType(i),n)||e.splice(r,1)}}function pte(e,t,n){e.forEach(function(e){n.getTarget(e).hover(t,e)})}function mte(e){return function(){if(e.getMonitor().isDragging())return{type:gr}}}function hte(e){return{beginDrag:Yee(e),publishDragSource:mte(e),hover:lte(e),drop:nte(e),endDrag:ste(e)}}var gte=class{receiveBackend(e){this.backend=e}getMonitor(){return this.monitor}getBackend(){return this.backend}getRegistry(){return this.monitor.registry}getActions(){let e=this,{dispatch:t}=this.store;function n(n){return(...r)=>{let i=n.apply(e,r);i!==void 0&&t(i)}}let r=hte(this);return Object.keys(r).reduce((e,t)=>{let i=r[t];return e[t]=n(i),e},{})}dispatch(e){this.store.dispatch(e)}constructor(e,t){this.isSetUp=!1,this.handleRefCountChange=()=>{let e=this.store.getState().refCount>0;this.backend&&(e&&!this.isSetUp?(this.backend.setup(),this.isSetUp=!0):!e&&this.isSetUp&&(this.backend.teardown(),this.isSetUp=!1))},this.store=e,this.monitor=t,e.subscribe(this.handleRefCountChange)}};function _te(e,t){return{x:e.x+t.x,y:e.y+t.y}}function Sr(e,t){return{x:e.x-t.x,y:e.y-t.y}}function vte(e){let{clientOffset:t,initialClientOffset:n,initialSourceClientOffset:r}=e;return!t||!n||!r?null:Sr(_te(t,r),n)}function yte(e){let{clientOffset:t,initialClientOffset:n}=e;return!t||!n?null:Sr(t,n)}const Cr=[],wr=[];Cr.__IS_NONE__=!0,wr.__IS_ALL__=!0;function bte(e,t){return e===Cr?!1:e===wr||t===void 0?!0:qee(t,e).length>0}var xte=class{subscribeToStateChange(e,t={}){let{handlerIds:n}=t;fr(typeof e==`function`,`listener must be a function.`),fr(n===void 0||Array.isArray(n),`handlerIds, when specified, must be an array of strings.`);let r=this.store.getState().stateId;return this.store.subscribe(()=>{let t=this.store.getState(),i=t.stateId;try{i===r||i===r+1&&!bte(t.dirtyHandlerIds,n)||e()}finally{r=i}})}subscribeToOffsetChange(e){fr(typeof e==`function`,`listener must be a function.`);let t=this.store.getState().dragOffset;return this.store.subscribe(()=>{let n=this.store.getState().dragOffset;n!==t&&(t=n,e())})}canDragSource(e){if(!e)return!1;let t=this.registry.getSource(e);return fr(t,`Expected to find a valid source. sourceId=${e}`),this.isDragging()?!1:t.canDrag(this,e)}canDropOnTarget(e){if(!e)return!1;let t=this.registry.getTarget(e);return fr(t,`Expected to find a valid target. targetId=${e}`),!this.isDragging()||this.didDrop()?!1:xr(this.registry.getTargetType(e),this.getItemType())&&t.canDrop(this,e)}isDragging(){return!!this.getItemType()}isDraggingSource(e){if(!e)return!1;let t=this.registry.getSource(e,!0);return fr(t,`Expected to find a valid source. sourceId=${e}`),!this.isDragging()||!this.isSourcePublic()||this.registry.getSourceType(e)!==this.getItemType()?!1:t.isDragging(this,e)}isOverTarget(e,t={shallow:!1}){if(!e)return!1;let{shallow:n}=t;if(!this.isDragging())return!1;let r=this.registry.getTargetType(e),i=this.getItemType();if(i&&!xr(r,i))return!1;let a=this.getTargetIds();if(!a.length)return!1;let o=a.indexOf(e);return n?o===a.length-1:o>-1}getItemType(){return this.store.getState().dragOperation.itemType}getItem(){return this.store.getState().dragOperation.item}getSourceId(){return this.store.getState().dragOperation.sourceId}getTargetIds(){return this.store.getState().dragOperation.targetIds}getDropResult(){return this.store.getState().dragOperation.dropResult}didDrop(){return this.store.getState().dragOperation.didDrop}isSourcePublic(){return!!this.store.getState().dragOperation.isSourcePublic}getInitialClientOffset(){return this.store.getState().dragOffset.initialClientOffset}getInitialSourceClientOffset(){return this.store.getState().dragOffset.initialSourceClientOffset}getClientOffset(){return this.store.getState().dragOffset.clientOffset}getSourceClientOffset(){return vte(this.store.getState().dragOffset)}getDifferenceFromInitialOffset(){return yte(this.store.getState().dragOffset)}constructor(e,t){this.store=e,this.registry=t}},Tr=typeof global<`u`?global:self,Er=Tr.MutationObserver||Tr.WebKitMutationObserver;function Dr(e){return function(){let t=setTimeout(r,0),n=setInterval(r,50);function r(){clearTimeout(t),clearInterval(n),e()}}}function Ste(e){let t=1,n=new Er(e),r=document.createTextNode(``);return n.observe(r,{characterData:!0}),function(){t=-t,r.data=t}}const Cte=typeof Er==`function`?Ste:Dr;var wte=class{enqueueTask(e){let{queue:t,requestFlush:n}=this;t.length||(n(),this.flushing=!0),t[t.length]=e}constructor(){this.queue=[],this.pendingErrors=[],this.flushing=!1,this.index=0,this.capacity=1024,this.flush=()=>{let{queue:e}=this;for(;this.index<e.length;){let t=this.index;if(this.index++,e[t].call(),this.index>this.capacity){for(let t=0,n=e.length-this.index;t<n;t++)e[t]=e[t+this.index];e.length-=this.index,this.index=0}}e.length=0,this.index=0,this.flushing=!1},this.registerPendingError=e=>{this.pendingErrors.push(e),this.requestErrorThrow()},this.requestFlush=Cte(this.flush),this.requestErrorThrow=Dr(()=>{if(this.pendingErrors.length)throw this.pendingErrors.shift()})}},Tte=class{call(){try{this.task&&this.task()}catch(e){this.onError(e)}finally{this.task=null,this.release(this)}}constructor(e,t){this.onError=e,this.release=t,this.task=null}},Ete=class{create(e){let t=this.freeTasks,n=t.length?t.pop():new Tte(this.onError,e=>t[t.length]=e);return n.task=e,n}constructor(e){this.onError=e,this.freeTasks=[]}},Or=new wte,Dte=new Ete(Or.registerPendingError);function Ote(e){Or.enqueueTask(Dte.create(e))}const kr=`dnd-core/ADD_SOURCE`,Ar=`dnd-core/ADD_TARGET`,jr=`dnd-core/REMOVE_SOURCE`,Mr=`dnd-core/REMOVE_TARGET`;function kte(e){return{type:kr,payload:{sourceId:e}}}function Ate(e){return{type:Ar,payload:{targetId:e}}}function jte(e){return{type:jr,payload:{sourceId:e}}}function Mte(e){return{type:Mr,payload:{targetId:e}}}function Nte(e){fr(typeof e.canDrag==`function`,`Expected canDrag to be a function.`),fr(typeof e.beginDrag==`function`,`Expected beginDrag to be a function.`),fr(typeof e.endDrag==`function`,`Expected endDrag to be a function.`)}function Pte(e){fr(typeof e.canDrop==`function`,`Expected canDrop to be a function.`),fr(typeof e.hover==`function`,`Expected hover to be a function.`),fr(typeof e.drop==`function`,`Expected beginDrag to be a function.`)}function Nr(e,t){if(t&&Array.isArray(e)){e.forEach(e=>Nr(e,!1));return}fr(typeof e==`string`||typeof e==`symbol`,t?`Type can only be a string, a symbol, or an array of either.`:`Type can only be a string or a symbol.`)}var Pr;(function(e){e.SOURCE=`SOURCE`,e.TARGET=`TARGET`})(Pr||={});var Fte=0;function Ite(){return Fte++}function Lte(e){let t=Ite().toString();switch(e){case Pr.SOURCE:return`S${t}`;case Pr.TARGET:return`T${t}`;default:throw Error(`Unknown Handler Role: ${e}`)}}function Fr(e){switch(e[0]){case`S`:return Pr.SOURCE;case`T`:return Pr.TARGET;default:throw Error(`Cannot parse handler ID: ${e}`)}}function Ir(e,t){let n=e.entries(),r=!1;do{let{done:e,value:[,i]}=n.next();if(i===t)return!0;r=!!e}while(!r);return!1}var Rte=class{addSource(e,t){Nr(e),Nte(t);let n=this.addHandler(Pr.SOURCE,e,t);return this.store.dispatch(kte(n)),n}addTarget(e,t){Nr(e,!0),Pte(t);let n=this.addHandler(Pr.TARGET,e,t);return this.store.dispatch(Ate(n)),n}containsHandler(e){return Ir(this.dragSources,e)||Ir(this.dropTargets,e)}getSource(e,t=!1){return fr(this.isSourceId(e),`Expected a valid source ID.`),t&&e===this.pinnedSourceId?this.pinnedSource:this.dragSources.get(e)}getTarget(e){return fr(this.isTargetId(e),`Expected a valid target ID.`),this.dropTargets.get(e)}getSourceType(e){return fr(this.isSourceId(e),`Expected a valid source ID.`),this.types.get(e)}getTargetType(e){return fr(this.isTargetId(e),`Expected a valid target ID.`),this.types.get(e)}isSourceId(e){return Fr(e)===Pr.SOURCE}isTargetId(e){return Fr(e)===Pr.TARGET}removeSource(e){fr(this.getSource(e),`Expected an existing source.`),this.store.dispatch(jte(e)),Ote(()=>{this.dragSources.delete(e),this.types.delete(e)})}removeTarget(e){fr(this.getTarget(e),`Expected an existing target.`),this.store.dispatch(Mte(e)),this.dropTargets.delete(e),this.types.delete(e)}pinSource(e){let t=this.getSource(e);fr(t,`Expected an existing source.`),this.pinnedSourceId=e,this.pinnedSource=t}unpinSource(){fr(this.pinnedSource,`No source is pinned at the time.`),this.pinnedSourceId=null,this.pinnedSource=null}addHandler(e,t,n){let r=Lte(e);return this.types.set(r,t),e===Pr.SOURCE?this.dragSources.set(r,n):e===Pr.TARGET&&this.dropTargets.set(r,n),r}constructor(e){this.types=new Map,this.dragSources=new Map,this.dropTargets=new Map,this.pinnedSourceId=null,this.pinnedSource=null,this.store=e}};const zte=(e,t)=>e===t;function Bte(e,t){return!e&&!t?!0:!e||!t?!1:e.x===t.x&&e.y===t.y}function Vte(e,t,n=zte){if(e.length!==t.length)return!1;for(let r=0;r<e.length;++r)if(!n(e[r],t[r]))return!1;return!0}function Hte(e=Cr,t){switch(t.type){case _r:break;case kr:case Ar:case Mr:case jr:return Cr;case hr:case gr:case yr:case vr:default:return wr}let{targetIds:n=[],prevTargetIds:r=[]}=t.payload,i=Kee(n,r);if(!(i.length>0||!Vte(n,r)))return Cr;let a=r[r.length-1],o=n[n.length-1];return a!==o&&(a&&i.push(a),o&&i.push(o)),i}function Ute(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Wte(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]==null?{}:arguments[t],r=Object.keys(n);typeof Object.getOwnPropertySymbols==`function`&&(r=r.concat(Object.getOwnPropertySymbols(n).filter(function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable}))),r.forEach(function(t){Ute(e,t,n[t])})}return e}var Lr={initialSourceClientOffset:null,initialClientOffset:null,clientOffset:null};function Gte(e=Lr,t){let{payload:n}=t;switch(t.type){case mr:case hr:return{initialSourceClientOffset:n.sourceClientOffset,initialClientOffset:n.clientOffset,clientOffset:n.clientOffset};case _r:return Bte(e.clientOffset,n.clientOffset)?e:Wte({},e,{clientOffset:n.clientOffset});case yr:case vr:return Lr;default:return e}}function Kte(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Rr(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]==null?{}:arguments[t],r=Object.keys(n);typeof Object.getOwnPropertySymbols==`function`&&(r=r.concat(Object.getOwnPropertySymbols(n).filter(function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable}))),r.forEach(function(t){Kte(e,t,n[t])})}return e}var qte={itemType:null,item:null,sourceId:null,targetIds:[],dropResult:null,didDrop:!1,isSourcePublic:null};function Jte(e=qte,t){let{payload:n}=t;switch(t.type){case hr:return Rr({},e,{itemType:n.itemType,item:n.item,sourceId:n.sourceId,isSourcePublic:n.isSourcePublic,dropResult:null,didDrop:!1});case gr:return Rr({},e,{isSourcePublic:!0});case _r:return Rr({},e,{targetIds:n.targetIds});case Mr:return e.targetIds.indexOf(n.targetId)===-1?e:Rr({},e,{targetIds:Gee(e.targetIds,n.targetId)});case vr:return Rr({},e,{dropResult:n.dropResult,didDrop:!0,targetIds:[]});case yr:return Rr({},e,{itemType:null,item:null,sourceId:null,dropResult:null,didDrop:!1,isSourcePublic:null,targetIds:[]});default:return e}}function Yte(e=0,t){switch(t.type){case kr:case Ar:return e+1;case jr:case Mr:return e-1;default:return e}}function Xte(e=0){return e+1}function Zte(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Qte(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]==null?{}:arguments[t],r=Object.keys(n);typeof Object.getOwnPropertySymbols==`function`&&(r=r.concat(Object.getOwnPropertySymbols(n).filter(function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable}))),r.forEach(function(t){Zte(e,t,n[t])})}return e}function $te(e={},t){return{dirtyHandlerIds:Hte(e.dirtyHandlerIds,{type:t.type,payload:Qte({},t.payload,{prevTargetIds:Wee(e,`dragOperation.targetIds`,[])})}),dragOffset:Gte(e.dragOffset,t),refCount:Yte(e.refCount,t),dragOperation:Jte(e.dragOperation,t),stateId:Xte(e.stateId)}}function ene(e,t=void 0,n={},r=!1){let i=tne(r),a=new gte(i,new xte(i,new Rte(i))),o=e(a,t,n);return a.receiveBackend(o),a}function tne(e){let t=typeof window<`u`&&window.__REDUX_DEVTOOLS_EXTENSION__;return dr($te,e&&t&&t({name:`dnd-core`,instanceId:`dnd-core`}))}var U=e(t(),1);function nne(e,t){if(e==null)return{};var n=rne(e,t),r,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i<a.length;i++)r=a[i],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function rne(e,t){if(e==null)return{};var n={},r=Object.keys(e),i,a;for(a=0;a<r.length;a++)i=r[a],!(t.indexOf(i)>=0)&&(n[i]=e[i]);return n}var zr=0,Br=Symbol.for(`__REACT_DND_CONTEXT_INSTANCE__`),ine=(0,H.memo)(function(e){var{children:t}=e;let[n,r]=ane(nne(e,[`children`]));return(0,H.useEffect)(()=>{if(r){let e=Vr();return++zr,()=>{--zr===0&&(e[Br]=null)}}},[]),(0,U.jsx)(or.Provider,{value:n,children:t})});function ane(e){return`manager`in e?[{dragDropManager:e.manager},!1]:[one(e.backend,e.context,e.options,e.debugMode),!e.context]}function one(e,t=Vr(),n,r){let i=t;return i[Br]||(i[Br]={dragDropManager:ene(e,t,n,r)}),i[Br]}function Vr(){return typeof global<`u`?global:window}const Hr=typeof window<`u`?H.useLayoutEffect:H.useEffect;var sne=e(ce(),1);function cne(e,t,n){let[r,i]=(0,H.useState)(()=>t(e)),a=(0,H.useCallback)(()=>{let a=t(e);(0,sne.default)(r,a)||(i(a),n&&n())},[r,e,n]);return Hr(a),[r,a]}function lne(e,t,n){let[r,i]=cne(e,t,n);return Hr(function(){let t=e.getHandlerId();if(t!=null)return e.subscribeToStateChange(i,{handlerIds:[t]})},[e,i]),r}function Ur(e,t,n){return lne(t,e||(()=>({})),()=>n.reconnect())}function Wr(e,t){let n=[...t||[]];return t==null&&typeof e!=`function`&&n.push(e),(0,H.useMemo)(()=>typeof e==`function`?e():e,n)}function une(e){return(0,H.useMemo)(()=>e.hooks.dragSource(),[e])}function dne(e){return(0,H.useMemo)(()=>e.hooks.dragPreview(),[e])}var Gr=!1,Kr=!1,fne=class{receiveHandlerId(e){this.sourceId=e}getHandlerId(){return this.sourceId}canDrag(){fr(!Gr,`You may not call monitor.canDrag() inside your canDrag() implementation. Read more: http://react-dnd.github.io/react-dnd/docs/api/drag-source-monitor`);try{return Gr=!0,this.internalMonitor.canDragSource(this.sourceId)}finally{Gr=!1}}isDragging(){if(!this.sourceId)return!1;fr(!Kr,`You may not call monitor.isDragging() inside your isDragging() implementation. Read more: http://react-dnd.github.io/react-dnd/docs/api/drag-source-monitor`);try{return Kr=!0,this.internalMonitor.isDraggingSource(this.sourceId)}finally{Kr=!1}}subscribeToStateChange(e,t){return this.internalMonitor.subscribeToStateChange(e,t)}isDraggingSource(e){return this.internalMonitor.isDraggingSource(e)}isOverTarget(e,t){return this.internalMonitor.isOverTarget(e,t)}getTargetIds(){return this.internalMonitor.getTargetIds()}isSourcePublic(){return this.internalMonitor.isSourcePublic()}getSourceId(){return this.internalMonitor.getSourceId()}subscribeToOffsetChange(e){return this.internalMonitor.subscribeToOffsetChange(e)}canDragSource(e){return this.internalMonitor.canDragSource(e)}canDropOnTarget(e){return this.internalMonitor.canDropOnTarget(e)}getItemType(){return this.internalMonitor.getItemType()}getItem(){return this.internalMonitor.getItem()}getDropResult(){return this.internalMonitor.getDropResult()}didDrop(){return this.internalMonitor.didDrop()}getInitialClientOffset(){return this.internalMonitor.getInitialClientOffset()}getInitialSourceClientOffset(){return this.internalMonitor.getInitialSourceClientOffset()}getSourceClientOffset(){return this.internalMonitor.getSourceClientOffset()}getClientOffset(){return this.internalMonitor.getClientOffset()}getDifferenceFromInitialOffset(){return this.internalMonitor.getDifferenceFromInitialOffset()}constructor(e){this.sourceId=null,this.internalMonitor=e.getMonitor()}},qr=!1,pne=class{receiveHandlerId(e){this.targetId=e}getHandlerId(){return this.targetId}subscribeToStateChange(e,t){return this.internalMonitor.subscribeToStateChange(e,t)}canDrop(){if(!this.targetId)return!1;fr(!qr,`You may not call monitor.canDrop() inside your canDrop() implementation. Read more: http://react-dnd.github.io/react-dnd/docs/api/drop-target-monitor`);try{return qr=!0,this.internalMonitor.canDropOnTarget(this.targetId)}finally{qr=!1}}isOver(e){return this.targetId?this.internalMonitor.isOverTarget(this.targetId,e):!1}getItemType(){return this.internalMonitor.getItemType()}getItem(){return this.internalMonitor.getItem()}getDropResult(){return this.internalMonitor.getDropResult()}didDrop(){return this.internalMonitor.didDrop()}getInitialClientOffset(){return this.internalMonitor.getInitialClientOffset()}getInitialSourceClientOffset(){return this.internalMonitor.getInitialSourceClientOffset()}getSourceClientOffset(){return this.internalMonitor.getSourceClientOffset()}getClientOffset(){return this.internalMonitor.getClientOffset()}getDifferenceFromInitialOffset(){return this.internalMonitor.getDifferenceFromInitialOffset()}constructor(e){this.targetId=null,this.internalMonitor=e.getMonitor()}};function mne(e,t,n){let r=n.getRegistry(),i=r.addTarget(e,t);return[i,()=>r.removeTarget(i)]}function hne(e,t,n){let r=n.getRegistry(),i=r.addSource(e,t);return[i,()=>r.removeSource(i)]}function Jr(e,t,n,r){let i=n?n.call(r,e,t):void 0;if(i!==void 0)return!!i;if(e===t)return!0;if(typeof e!=`object`||!e||typeof t!=`object`||!t)return!1;let a=Object.keys(e),o=Object.keys(t);if(a.length!==o.length)return!1;let s=Object.prototype.hasOwnProperty.bind(t);for(let o=0;o<a.length;o++){let c=a[o];if(!s(c))return!1;let l=e[c],u=t[c];if(i=n?n.call(r,l,u,c):void 0,i===!1||i===void 0&&l!==u)return!1}return!0}function Yr(e){return typeof e==`object`&&!!e&&Object.prototype.hasOwnProperty.call(e,`current`)}function gne(e){if(typeof e.type==`string`)return;let t=e.type.displayName||e.type.name||`the component`;throw Error(`Only native element nodes can now be passed to React DnD connectors.You can either wrap ${t} into a <div>, or turn it into a drag source or a drop target itself.`)}function _ne(e){return(t=null,n=null)=>{if(!(0,H.isValidElement)(t)){let r=t;return e(r,n),r}let r=t;return gne(r),vne(r,n?t=>e(t,n):e)}}function Xr(e){let t={};return Object.keys(e).forEach(n=>{let r=e[n];if(n.endsWith(`Ref`))t[n]=e[n];else{let e=_ne(r);t[n]=()=>e}}),t}function Zr(e,t){typeof e==`function`?e(t):e.current=t}function vne(e,t){let n=e.ref;return fr(typeof n!=`string`,`Cannot connect React DnD to an element with an existing string ref. Please convert it to use a callback ref instead, or wrap it into a <span> or <div>. Read more: https://reactjs.org/docs/refs-and-the-dom.html#callback-refs`),n?(0,H.cloneElement)(e,{ref:e=>{Zr(n,e),Zr(t,e)}}):(0,H.cloneElement)(e,{ref:t})}var yne=class{receiveHandlerId(e){this.handlerId!==e&&(this.handlerId=e,this.reconnect())}get connectTarget(){return this.dragSource}get dragSourceOptions(){return this.dragSourceOptionsInternal}set dragSourceOptions(e){this.dragSourceOptionsInternal=e}get dragPreviewOptions(){return this.dragPreviewOptionsInternal}set dragPreviewOptions(e){this.dragPreviewOptionsInternal=e}reconnect(){let e=this.reconnectDragSource();this.reconnectDragPreview(e)}reconnectDragSource(){let e=this.dragSource,t=this.didHandlerIdChange()||this.didConnectedDragSourceChange()||this.didDragSourceOptionsChange();return t&&this.disconnectDragSource(),this.handlerId?e?(t&&(this.lastConnectedHandlerId=this.handlerId,this.lastConnectedDragSource=e,this.lastConnectedDragSourceOptions=this.dragSourceOptions,this.dragSourceUnsubscribe=this.backend.connectDragSource(this.handlerId,e,this.dragSourceOptions)),t):(this.lastConnectedDragSource=e,t):t}reconnectDragPreview(e=!1){let t=this.dragPreview,n=e||this.didHandlerIdChange()||this.didConnectedDragPreviewChange()||this.didDragPreviewOptionsChange();if(n&&this.disconnectDragPreview(),this.handlerId){if(!t){this.lastConnectedDragPreview=t;return}n&&(this.lastConnectedHandlerId=this.handlerId,this.lastConnectedDragPreview=t,this.lastConnectedDragPreviewOptions=this.dragPreviewOptions,this.dragPreviewUnsubscribe=this.backend.connectDragPreview(this.handlerId,t,this.dragPreviewOptions))}}didHandlerIdChange(){return this.lastConnectedHandlerId!==this.handlerId}didConnectedDragSourceChange(){return this.lastConnectedDragSource!==this.dragSource}didConnectedDragPreviewChange(){return this.lastConnectedDragPreview!==this.dragPreview}didDragSourceOptionsChange(){return!Jr(this.lastConnectedDragSourceOptions,this.dragSourceOptions)}didDragPreviewOptionsChange(){return!Jr(this.lastConnectedDragPreviewOptions,this.dragPreviewOptions)}disconnectDragSource(){this.dragSourceUnsubscribe&&=(this.dragSourceUnsubscribe(),void 0)}disconnectDragPreview(){this.dragPreviewUnsubscribe&&(this.dragPreviewUnsubscribe(),this.dragPreviewUnsubscribe=void 0,this.dragPreviewNode=null,this.dragPreviewRef=null)}get dragSource(){return this.dragSourceNode||this.dragSourceRef&&this.dragSourceRef.current}get dragPreview(){return this.dragPreviewNode||this.dragPreviewRef&&this.dragPreviewRef.current}clearDragSource(){this.dragSourceNode=null,this.dragSourceRef=null}clearDragPreview(){this.dragPreviewNode=null,this.dragPreviewRef=null}constructor(e){this.hooks=Xr({dragSource:(e,t)=>{this.clearDragSource(),this.dragSourceOptions=t||null,Yr(e)?this.dragSourceRef=e:this.dragSourceNode=e,this.reconnectDragSource()},dragPreview:(e,t)=>{this.clearDragPreview(),this.dragPreviewOptions=t||null,Yr(e)?this.dragPreviewRef=e:this.dragPreviewNode=e,this.reconnectDragPreview()}}),this.handlerId=null,this.dragSourceRef=null,this.dragSourceOptionsInternal=null,this.dragPreviewRef=null,this.dragPreviewOptionsInternal=null,this.lastConnectedHandlerId=null,this.lastConnectedDragSource=null,this.lastConnectedDragSourceOptions=null,this.lastConnectedDragPreview=null,this.lastConnectedDragPreviewOptions=null,this.backend=e}},bne=class{get connectTarget(){return this.dropTarget}reconnect(){let e=this.didHandlerIdChange()||this.didDropTargetChange()||this.didOptionsChange();e&&this.disconnectDropTarget();let t=this.dropTarget;if(this.handlerId){if(!t){this.lastConnectedDropTarget=t;return}e&&(this.lastConnectedHandlerId=this.handlerId,this.lastConnectedDropTarget=t,this.lastConnectedDropTargetOptions=this.dropTargetOptions,this.unsubscribeDropTarget=this.backend.connectDropTarget(this.handlerId,t,this.dropTargetOptions))}}receiveHandlerId(e){e!==this.handlerId&&(this.handlerId=e,this.reconnect())}get dropTargetOptions(){return this.dropTargetOptionsInternal}set dropTargetOptions(e){this.dropTargetOptionsInternal=e}didHandlerIdChange(){return this.lastConnectedHandlerId!==this.handlerId}didDropTargetChange(){return this.lastConnectedDropTarget!==this.dropTarget}didOptionsChange(){return!Jr(this.lastConnectedDropTargetOptions,this.dropTargetOptions)}disconnectDropTarget(){this.unsubscribeDropTarget&&=(this.unsubscribeDropTarget(),void 0)}get dropTarget(){return this.dropTargetNode||this.dropTargetRef&&this.dropTargetRef.current}clearDropTarget(){this.dropTargetRef=null,this.dropTargetNode=null}constructor(e){this.hooks=Xr({dropTarget:(e,t)=>{this.clearDropTarget(),this.dropTargetOptions=t,Yr(e)?this.dropTargetRef=e:this.dropTargetNode=e,this.reconnect()}}),this.handlerId=null,this.dropTargetRef=null,this.dropTargetOptionsInternal=null,this.lastConnectedHandlerId=null,this.lastConnectedDropTarget=null,this.lastConnectedDropTargetOptions=null,this.backend=e}};function Qr(){let{dragDropManager:e}=(0,H.useContext)(or);return fr(e!=null,`Expected drag drop context`),e}function xne(e,t){let n=Qr(),r=(0,H.useMemo)(()=>new yne(n.getBackend()),[n]);return Hr(()=>(r.dragSourceOptions=e||null,r.reconnect(),()=>r.disconnectDragSource()),[r,e]),Hr(()=>(r.dragPreviewOptions=t||null,r.reconnect(),()=>r.disconnectDragPreview()),[r,t]),r}function Sne(){let e=Qr();return(0,H.useMemo)(()=>new fne(e),[e])}var Cne=class{beginDrag(){let e=this.spec,t=this.monitor,n=null;return n=typeof e.item==`object`?e.item:typeof e.item==`function`?e.item(t):{},n??null}canDrag(){let e=this.spec,t=this.monitor;return typeof e.canDrag==`boolean`?e.canDrag:typeof e.canDrag==`function`?e.canDrag(t):!0}isDragging(e,t){let n=this.spec,r=this.monitor,{isDragging:i}=n;return i?i(r):t===e.getSourceId()}endDrag(){let e=this.spec,t=this.monitor,n=this.connector,{end:r}=e;r&&r(t.getItem(),t),n.reconnect()}constructor(e,t,n){this.spec=e,this.monitor=t,this.connector=n}};function wne(e,t,n){let r=(0,H.useMemo)(()=>new Cne(e,t,n),[t,n]);return(0,H.useEffect)(()=>{r.spec=e},[e]),r}function Tne(e){return(0,H.useMemo)(()=>{let t=e.type;return fr(t!=null,`spec.type must be defined`),t},[e])}function Ene(e,t,n){let r=Qr(),i=wne(e,t,n),a=Tne(e);Hr(function(){if(a!=null){let[e,o]=hne(a,i,r);return t.receiveHandlerId(e),n.receiveHandlerId(e),o}},[r,t,n,i,a])}function Dne(e,t){let n=Wr(e,t);fr(!n.begin,`useDrag::spec.begin was deprecated in v14. Replace spec.begin() with spec.item(). (see more here - https://react-dnd.github.io/react-dnd/docs/api/use-drag)`);let r=Sne(),i=xne(n.options,n.previewOptions);return Ene(n,r,i),[Ur(n.collect,r,i),une(i),dne(i)]}function One(e){return(0,H.useMemo)(()=>e.hooks.dropTarget(),[e])}function kne(e){let t=Qr(),n=(0,H.useMemo)(()=>new bne(t.getBackend()),[t]);return Hr(()=>(n.dropTargetOptions=e||null,n.reconnect(),()=>n.disconnectDropTarget()),[e]),n}function Ane(){let e=Qr();return(0,H.useMemo)(()=>new pne(e),[e])}function jne(e){let{accept:t}=e;return(0,H.useMemo)(()=>(fr(e.accept!=null,`accept must be defined`),Array.isArray(t)?t:[t]),[t])}var Mne=class{canDrop(){let e=this.spec,t=this.monitor;return e.canDrop?e.canDrop(t.getItem(),t):!0}hover(){let e=this.spec,t=this.monitor;e.hover&&e.hover(t.getItem(),t)}drop(){let e=this.spec,t=this.monitor;if(e.drop)return e.drop(t.getItem(),t)}constructor(e,t){this.spec=e,this.monitor=t}};function Nne(e,t){let n=(0,H.useMemo)(()=>new Mne(e,t),[t]);return(0,H.useEffect)(()=>{n.spec=e},[e]),n}function Pne(e,t,n){let r=Qr(),i=Nne(e,t),a=jne(e);Hr(function(){let[e,o]=mne(a,i,r);return t.receiveHandlerId(e),n.receiveHandlerId(e),o},[r,t,i,n,a.map(e=>e.toString()).join(`|`)])}function Fne(e,t){let n=Wr(e,t),r=Ane(),i=kne(n.options);return Pne(n,r,i),[Ur(n.collect,r,i),One(i)]}var Ine=r(((e,t)=>{t.exports=`SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED`})),Lne=r(((e,t)=>{var n=Ine();function r(){}function i(){}i.resetWarningCache=r,t.exports=function(){function e(e,t,r,i,a,o){if(o!==n){var s=Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw s.name=`Invariant Violation`,s}}e.isRequired=e;function t(){return e}var a={array:e,bigint:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:t,element:e,elementType:e,instanceOf:t,node:e,objectOf:t,oneOf:t,oneOfType:t,shape:t,exact:t,checkPropTypes:i,resetWarningCache:r};return a.PropTypes=a,a}})),$r=r(((e,t)=>{t.exports=Lne()()}));function Rne(e){var t=Object.create(null);return function(n){return t[n]===void 0&&(t[n]=e(n)),t[n]}}var zne=c((()=>{})),Bne=s({default:()=>ti}),ei,ti,Vne=c((()=>{zne(),ei=/^((children|dangerouslySetInnerHTML|key|ref|autoFocus|defaultValue|defaultChecked|innerHTML|suppressContentEditableWarning|suppressHydrationWarning|valueLink|abbr|accept|acceptCharset|accessKey|action|allow|allowUserMedia|allowPaymentRequest|allowFullScreen|allowTransparency|alt|async|autoComplete|autoPlay|capture|cellPadding|cellSpacing|challenge|charSet|checked|cite|classID|className|cols|colSpan|content|contentEditable|contextMenu|controls|controlsList|coords|crossOrigin|data|dateTime|decoding|default|defer|dir|disabled|disablePictureInPicture|disableRemotePlayback|download|draggable|encType|enterKeyHint|form|formAction|formEncType|formMethod|formNoValidate|formTarget|frameBorder|headers|height|hidden|high|href|hrefLang|htmlFor|httpEquiv|id|inputMode|integrity|is|keyParams|keyType|kind|label|lang|list|loading|loop|low|marginHeight|marginWidth|max|maxLength|media|mediaGroup|method|min|minLength|multiple|muted|name|nonce|noValidate|open|optimum|pattern|placeholder|playsInline|poster|preload|profile|radioGroup|readOnly|referrerPolicy|rel|required|reversed|role|rows|rowSpan|sandbox|scope|scoped|scrolling|seamless|selected|shape|size|sizes|slot|span|spellCheck|src|srcDoc|srcLang|srcSet|start|step|style|summary|tabIndex|target|title|translate|type|useMap|value|width|wmode|wrap|about|datatype|inlist|prefix|property|resource|typeof|vocab|autoCapitalize|autoCorrect|autoSave|color|incremental|fallback|inert|itemProp|itemScope|itemType|itemID|itemRef|on|option|results|security|unselectable|accentHeight|accumulate|additive|alignmentBaseline|allowReorder|alphabetic|amplitude|arabicForm|ascent|attributeName|attributeType|autoReverse|azimuth|baseFrequency|baselineShift|baseProfile|bbox|begin|bias|by|calcMode|capHeight|clip|clipPathUnits|clipPath|clipRule|colorInterpolation|colorInterpolationFilters|colorProfile|colorRendering|contentScriptType|contentStyleType|cursor|cx|cy|d|decelerate|descent|diffuseConstant|direction|display|divisor|dominantBaseline|dur|dx|dy|edgeMode|elevation|enableBackground|end|exponent|externalResourcesRequired|fill|fillOpacity|fillRule|filter|filterRes|filterUnits|floodColor|floodOpacity|focusable|fontFamily|fontSize|fontSizeAdjust|fontStretch|fontStyle|fontVariant|fontWeight|format|from|fr|fx|fy|g1|g2|glyphName|glyphOrientationHorizontal|glyphOrientationVertical|glyphRef|gradientTransform|gradientUnits|hanging|horizAdvX|horizOriginX|ideographic|imageRendering|in|in2|intercept|k|k1|k2|k3|k4|kernelMatrix|kernelUnitLength|kerning|keyPoints|keySplines|keyTimes|lengthAdjust|letterSpacing|lightingColor|limitingConeAngle|local|markerEnd|markerMid|markerStart|markerHeight|markerUnits|markerWidth|mask|maskContentUnits|maskUnits|mathematical|mode|numOctaves|offset|opacity|operator|order|orient|orientation|origin|overflow|overlinePosition|overlineThickness|panose1|paintOrder|pathLength|patternContentUnits|patternTransform|patternUnits|pointerEvents|points|pointsAtX|pointsAtY|pointsAtZ|preserveAlpha|preserveAspectRatio|primitiveUnits|r|radius|refX|refY|renderingIntent|repeatCount|repeatDur|requiredExtensions|requiredFeatures|restart|result|rotate|rx|ry|scale|seed|shapeRendering|slope|spacing|specularConstant|specularExponent|speed|spreadMethod|startOffset|stdDeviation|stemh|stemv|stitchTiles|stopColor|stopOpacity|strikethroughPosition|strikethroughThickness|string|stroke|strokeDasharray|strokeDashoffset|strokeLinecap|strokeLinejoin|strokeMiterlimit|strokeOpacity|strokeWidth|surfaceScale|systemLanguage|tableValues|targetX|targetY|textAnchor|textDecoration|textRendering|textLength|to|transform|u1|u2|underlinePosition|underlineThickness|unicode|unicodeBidi|unicodeRange|unitsPerEm|vAlphabetic|vHanging|vIdeographic|vMathematical|values|vectorEffect|version|vertAdvY|vertOriginX|vertOriginY|viewBox|viewTarget|visibility|widths|wordSpacing|writingMode|x|xHeight|x1|x2|xChannelSelector|xlinkActuate|xlinkArcrole|xlinkHref|xlinkRole|xlinkShow|xlinkTitle|xlinkType|xmlBase|xmlns|xmlnsXlink|xmlLang|xmlSpace|y|y1|y2|yChannelSelector|z|zoomAndPan|for|class|autofocus)|(([Dd][Aa][Tt][Aa]|[Aa][Rr][Ii][Aa]|x)-.*))$/,ti=Rne(function(e){return ei.test(e)||e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&e.charCodeAt(2)<91})})),ni=e($r(),1),ri=e($r(),1),ii=e(o(),1),ai=e(te(),1),Hne=Object.defineProperty,oi=e=>{throw TypeError(e)},Une=(e,t,n)=>t in e?Hne(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,si=(e,t,n)=>Une(e,typeof t==`symbol`?t:t+``,n),ci=(e,t,n)=>t.has(e)||oi(`Cannot `+n),li=(e,t,n)=>(ci(e,t,`read from private field`),n?n.call(e):t.get(e)),ui=(e,t,n)=>t.has(e)?oi(`Cannot add the same private member more than once`):t instanceof WeakSet?t.add(e):t.set(e,n),di=(e,t,n,r)=>(ci(e,t,`write to private field`),r?r.call(e,n):t.set(e,n),n),fi,pi,mi,hi,gi,_i,vi,yi,bi,xi,Si=typeof globalThis<`u`?globalThis:typeof window<`u`?window:typeof global<`u`?global:typeof self<`u`?self:{};function Ci(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,`default`)?e.default:e}function wi(e){if(e.__esModule)return e;var t=e.default;if(typeof t==`function`){var n=function e(){return this instanceof e?Reflect.construct(t,arguments,this.constructor):t.apply(this,arguments)};n.prototype=t.prototype}else n={};return Object.defineProperty(n,`__esModule`,{value:!0}),Object.keys(e).forEach(function(t){var r=Object.getOwnPropertyDescriptor(e,t);Object.defineProperty(n,t,r.get?r:{enumerable:!0,get:function(){return e[t]}})}),n}var Ti={exports:{}},Ei;function Di(){return Ei?Ti.exports:(Ei=1,(function(e){(function(){var t={}.hasOwnProperty;function n(){for(var e=``,t=0;t<arguments.length;t++){var n=arguments[t];n&&(e=i(e,r(n)))}return e}function r(e){if(typeof e==`string`||typeof e==`number`)return e;if(typeof e!=`object`)return``;if(Array.isArray(e))return n.apply(null,e);if(e.toString!==Object.prototype.toString&&!e.toString.toString().includes(`[native code]`))return e.toString();var r=``;for(var a in e)t.call(e,a)&&e[a]&&(r=i(r,a));return r}function i(e,t){return t?e?e+` `+t:e+t:e}e.exports?(n.default=n,e.exports=n):window.classNames=n})()})(Ti),Ti.exports)}var Oi=Ci(Di()),ki=(e=>(e.TEXT=`Text`,e.BUTTON=`Button`,e.DROP_DOWN_BUTTON=`DropDownButton`,e.COMPONENT=`Component`,e))(ki||{}),Ai=(e=>(e.FIRST=`first`,e.MIDDLE=`middle`,e.LAST=`last`,e))(Ai||{}),ji=(e=>(e.DANGER=`danger`,e.RED=`red`,e.WHITE=`white`,e.SUCCESS=`success`,e.GREEN=`green`,e.MUTED=`muted`,e))(ji||{}),Mi=(e=>(e.LEFT=`left`,e.RIGHT=`right`,e.CENTER=`center`,e))(Mi||{}),Ni=(e=>(e.TOP=`top`,e.BOTTOM=`bottom`,e))(Ni||{}),Pi=(e=>(e.LIBRARY=`library`,e.ADD=`add`,e.DRAG=`drag`,e.HELP=`help`,e.NOTIFICATION=`notification`,e.MENU=`menu`,e.EDIT=`edit`,e.FAST_FORWARD=`fast forward`,e.INDENT=`indent`,e.STAR=`star`,e.LIST=`list`,e.SETTINGS=`settings`,e.CHECK=`check`,e.LOCK=`lock`,e.UNLOCK=`unlock`,e.CLOSE=`close`,e.SUCCESS=`success`,e.WARNING=`warning`,e.ERROR=`error`,e.INFO=`info`,e.LEFT=`left`,e.COLLAPSE=`collapse`,e.EXPAND=`expand`,e.SORT_ASCENDING=`sort ascending`,e.SORT_DESCENDING=`sort descending`,e.FAST_BACKWARD=`fast backward`,e.CHEVRON_DOWN=`chevron down`,e.CHEVRON_RIGHT=`chevron right`,e.CHEVRON_LEFT=`chevron left`,e.CHEVRON_DOUBLE_LEFT=`chevron double left`,e.CHEVRON_DOUBLE_RIGHT=`chevron double right`,e))(Pi||{}),Fi=(e=>(e.TEXT=`text`,e.RADIO=`radio`,e.CHECKBOX=`checkbox`,e))(Fi||{});function Ii(e,t){if(e==null)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.indexOf(r)!==-1)continue;n[r]=e[r]}return n}function Li(){return Li=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Li.apply(null,arguments)}function Ri(e,t){return Ri=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},Ri(e,t)}function zi(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,Ri(e,t)}function Bi(e,t,n){if(n||arguments.length===2)for(var r=0,i=t.length,a;r<i;r++)(a||!(r in t))&&(a||=Array.prototype.slice.call(t,0,r),a[r]=t[r]);return e.concat(a||Array.prototype.slice.call(t))}var Vi={},Hi;function Wne(){if(Hi)return Vi;Hi=1;var e=/; *([!#$%&'*+.^_`|~0-9A-Za-z-]+) *= *("(?:[\u000b\u0020\u0021\u0023-\u005b\u005d-\u007e\u0080-\u00ff]|\\[\u000b\u0020-\u00ff])*"|[!#$%&'*+.^_`|~0-9A-Za-z-]+) */g,t=/^[\u000b\u0020-\u007e\u0080-\u00ff]+$/,n=/^[!#$%&'*+.^_`|~0-9A-Za-z-]+$/,r=/\\([\u000b\u0020-\u00ff])/g,i=/([\\"])/g,a=/^[!#$%&'*+.^_`|~0-9A-Za-z-]+\/[!#$%&'*+.^_`|~0-9A-Za-z-]+$/;Vi.format=o,Vi.parse=s;function o(e){if(!e||typeof e!=`object`)throw TypeError(`argument obj is required`);var t=e.parameters,r=e.type;if(!r||!a.test(r))throw TypeError(`invalid type`);var i=r;if(t&&typeof t==`object`)for(var o,s=Object.keys(t).sort(),c=0;c<s.length;c++){if(o=s[c],!n.test(o))throw TypeError(`invalid parameter name`);i+=`; `+o+`=`+l(t[o])}return i}function s(t){if(!t)throw TypeError(`argument string is required`);var n=typeof t==`object`?c(t):t;if(typeof n!=`string`)throw TypeError(`argument string is required to be a string`);var i=n.indexOf(`;`),o=i===-1?n.trim():n.slice(0,i).trim();if(!a.test(o))throw TypeError(`invalid media type`);var s=new u(o.toLowerCase());if(i!==-1){var l,d,f;for(e.lastIndex=i;d=e.exec(n);){if(d.index!==i)throw TypeError(`invalid parameter format`);i+=d[0].length,l=d[1].toLowerCase(),f=d[2],f.charCodeAt(0)===34&&(f=f.slice(1,-1),f.indexOf(`\\`)!==-1&&(f=f.replace(r,`$1`))),s.parameters[l]=f}if(i!==n.length)throw TypeError(`invalid parameter format`)}return s}function c(e){var t;if(typeof e.getHeader==`function`?t=e.getHeader(`content-type`):typeof e.headers==`object`&&(t=e.headers&&e.headers[`content-type`]),typeof t!=`string`)throw TypeError(`content-type header is missing from object`);return t}function l(e){var r=String(e);if(n.test(r))return r;if(r.length>0&&!t.test(r))throw TypeError(`invalid parameter value`);return`"`+r.replace(i,`\\$1`)+`"`}function u(e){this.parameters=Object.create(null),this.type=e}return Vi}var Gne=Wne(),Ui=new Map,Wi=function(e){return e.cloneNode(!0)},Gi=function(){return window.location.protocol===`file:`},Ki=function(e,t,n){var r=new XMLHttpRequest;r.onreadystatechange=function(){try{if(!/\.svg/i.test(e)&&r.readyState===2){var t=r.getResponseHeader(`Content-Type`);if(!t)throw Error(`Content type not found`);var i=Gne.parse(t).type;if(!(i===`image/svg+xml`||i===`text/plain`))throw Error(`Invalid content type: ${i}`)}if(r.readyState===4){if(r.status===404||r.responseXML===null)throw Error(Gi()?`Note: SVG injection ajax calls do not work locally without adjusting security settings in your browser. Or consider using a local webserver.`:`Unable to load SVG file: `+e);if(r.status===200||Gi()&&r.status===0)n(null,r);else throw Error(`There was a problem injecting the SVG: `+r.status+` `+r.statusText)}}catch(e){if(r.abort(),e instanceof Error)n(e,r);else throw e}},r.open(`GET`,e),r.withCredentials=t,r.overrideMimeType&&r.overrideMimeType(`text/xml`),r.send()},qi={},Ji=function(e,t){qi[e]=qi[e]||[],qi[e].push(t)},Kne=function(e){for(var t=function(t,n){setTimeout(function(){if(Array.isArray(qi[e])){var n=Ui.get(e),r=qi[e][t];n instanceof SVGSVGElement&&r(null,Wi(n)),n instanceof Error&&r(n),t===qi[e].length-1&&delete qi[e]}},0)},n=0,r=qi[e].length;n<r;n++)t(n)},qne=function(e,t,n){if(Ui.has(e)){var r=Ui.get(e);if(r===void 0){Ji(e,n);return}if(r instanceof SVGSVGElement){n(null,Wi(r));return}}Ui.set(e,void 0),Ji(e,n),Ki(e,t,function(t,n){t?Ui.set(e,t):n.responseXML?.documentElement instanceof SVGSVGElement&&Ui.set(e,n.responseXML.documentElement),Kne(e)})},Jne=function(e,t,n){Ki(e,t,function(e,t){e?n(e):t.responseXML?.documentElement instanceof SVGSVGElement&&n(null,t.responseXML.documentElement)})},Yne=0,Xne=function(){return++Yne},Yi=[],Xi={},Zne=`http://www.w3.org/2000/svg`,Zi=`http://www.w3.org/1999/xlink`,Qi=function(e,t,n,r,i,a,o){var s=e.getAttribute(`data-src`)||e.getAttribute(`src`);if(!s){o(Error(`Invalid data-src or src attribute`));return}if(Yi.indexOf(e)!==-1){Yi.splice(Yi.indexOf(e),1),e=null;return}Yi.push(e),e.setAttribute(`src`,``),(r?qne:Jne)(s,i,function(r,i){if(!i){Yi.splice(Yi.indexOf(e),1),e=null,o(r);return}var c=e.getAttribute(`id`);c&&i.setAttribute(`id`,c);var l=e.getAttribute(`title`);l&&i.setAttribute(`title`,l);var u=e.getAttribute(`width`);u&&i.setAttribute(`width`,u);var d=e.getAttribute(`height`);d&&i.setAttribute(`height`,d);var f=Array.from(new Set(Bi(Bi(Bi([],(i.getAttribute(`class`)||``).split(` `),!0),[`injected-svg`],!1),(e.getAttribute(`class`)||``).split(` `),!0))).join(` `).trim();i.setAttribute(`class`,f);var p=e.getAttribute(`style`);p&&i.setAttribute(`style`,p),i.setAttribute(`data-src`,s);var m=[].filter.call(e.attributes,function(e){return/^data-\w[\w-]*$/.test(e.name)});if(Array.prototype.forEach.call(m,function(e){e.name&&e.value&&i.setAttribute(e.name,e.value)}),n){var h={clipPath:[`clip-path`],"color-profile":[`color-profile`],cursor:[`cursor`],filter:[`filter`],linearGradient:[`fill`,`stroke`],marker:[`marker`,`marker-start`,`marker-mid`,`marker-end`],mask:[`mask`],path:[],pattern:[`fill`,`stroke`],radialGradient:[`fill`,`stroke`]},g,_,v,y,b;Object.keys(h).forEach(function(e){g=e,v=h[e],_=i.querySelectorAll(g+`[id]`);for(var t=function(e,t){y=_[e].id,b=y+`-`+Xne();var n;Array.prototype.forEach.call(v,function(e){n=i.querySelectorAll(`[`+e+`*="`+y+`"]`);for(var t=0,r=n.length;t<r;t++){var a=n[t].getAttribute(e);a&&!a.match(RegExp(`url\\("?#`+y+`"?\\)`))||n[t].setAttribute(e,`url(#`+b+`)`)}});for(var r=i.querySelectorAll(`[*|href]`),a=[],o=0,s=r.length;o<s;o++){var c=r[o].getAttributeNS(Zi,`href`);c&&c.toString()===`#`+_[e].id&&a.push(r[o])}for(var l=0,u=a.length;l<u;l++)a[l].setAttributeNS(Zi,`href`,`#`+b);_[e].id=b},n=0,r=_.length;n<r;n++)t(n)})}i.removeAttribute(`xmlns:a`);for(var x=i.querySelectorAll(`script`),S=[],C,w,T=0,E=x.length;T<E;T++)w=x[T].getAttribute(`type`),(!w||w===`application/ecmascript`||w===`application/javascript`||w===`text/javascript`)&&(C=x[T].innerText||x[T].textContent,C&&S.push(C),i.removeChild(x[T]));if(S.length>0&&(t===`always`||t===`once`&&!Xi[s])){for(var D=0,O=S.length;D<O;D++)Function(S[D])(window);Xi[s]=!0}var k=i.querySelectorAll(`style`);if(Array.prototype.forEach.call(k,function(e){e.textContent+=``}),i.setAttribute(`xmlns`,Zne),i.setAttribute(`xmlns:xlink`,Zi),a(i),!e.parentNode){Yi.splice(Yi.indexOf(e),1),e=null,o(Error(`Parent node is null`));return}e.parentNode.replaceChild(i,e),Yi.splice(Yi.indexOf(e),1),e=null,o(null,i)})},Qne=function(e,t){var n=t===void 0?{}:t,r=n.afterAll,i=r===void 0?function(){}:r,a=n.afterEach,o=a===void 0?function(){}:a,s=n.beforeEach,c=s===void 0?function(){}:s,l=n.cacheRequests,u=l===void 0?!0:l,d=n.evalScripts,f=d===void 0?`never`:d,p=n.httpRequestWithCredentials,m=p===void 0?!1:p,h=n.renumerateIRIElements,g=h===void 0?!0:h;if(e&&`length`in e)for(var _=0,v=0,y=e.length;v<y;v++)Qi(e[v],f,g,u,m,c,function(t,n){o(t,n),e&&`length`in e&&e.length===++_&&i(_)});else e?Qi(e,f,g,u,m,c,function(t,n){o(t,n),i(1),e=null}):i(0)},$ne=function(e){return(e?.ownerDocument||document).defaultView||window},ere=function(e,t){for(var n in e)if(!(n in t))return!0;for(var r in t)if(e[r]!==t[r])return!0;return!1},tre=[`afterInjection`,`beforeInjection`,`desc`,`evalScripts`,`fallback`,`httpRequestWithCredentials`,`loading`,`renumerateIRIElements`,`src`,`title`,`useRequestCache`,`wrapper`],$i=`http://www.w3.org/2000/svg`,ea=`http://www.w3.org/1999/xlink`,ta=function(e){function t(){var t,n=[...arguments];return t=e.call.apply(e,[this].concat(n))||this,t.initialState={hasError:!1,isLoading:!0},t.state=t.initialState,t._isMounted=!1,t.reactWrapper=void 0,t.nonReactWrapper=void 0,t.refCallback=function(e){t.reactWrapper=e},t}zi(t,e);var n=t.prototype;return n.renderSVG=function(){var e=this;if(this.reactWrapper instanceof $ne(this.reactWrapper).Node){var t=this.props,n=t.desc,r=t.evalScripts,i=t.httpRequestWithCredentials,a=t.renumerateIRIElements,o=t.src,s=t.title,c=t.useRequestCache,l=this.props.onError,u=this.props.beforeInjection,d=this.props.afterInjection,f=this.props.wrapper,p,m;f===`svg`?(p=document.createElementNS($i,f),p.setAttribute(`xmlns`,$i),p.setAttribute(`xmlns:xlink`,ea),m=document.createElementNS($i,f)):(p=document.createElement(f),m=document.createElement(f)),p.appendChild(m),m.dataset.src=o,this.nonReactWrapper=this.reactWrapper.appendChild(p);var h=function(t){if(e.removeSVG(),!e._isMounted){l(t);return}e.setState(function(){return{hasError:!0,isLoading:!1}},function(){l(t)})};Qne(m,{afterEach:function(t,n){if(t){h(t);return}e._isMounted&&e.setState(function(){return{isLoading:!1}},function(){try{d(n)}catch(e){h(e)}})},beforeEach:function(e){if(e.setAttribute(`role`,`img`),n){var t=e.querySelector(`:scope > desc`);t&&e.removeChild(t);var r=document.createElement(`desc`);r.innerHTML=n,e.prepend(r)}if(s){var i=e.querySelector(`:scope > title`);i&&e.removeChild(i);var a=document.createElement(`title`);a.innerHTML=s,e.prepend(a)}try{u(e)}catch(e){h(e)}},cacheRequests:c,evalScripts:r,httpRequestWithCredentials:i,renumerateIRIElements:a})}},n.removeSVG=function(){var e;(e=this.nonReactWrapper)!=null&&e.parentNode&&(this.nonReactWrapper.parentNode.removeChild(this.nonReactWrapper),this.nonReactWrapper=null)},n.componentDidMount=function(){this._isMounted=!0,this.renderSVG()},n.componentDidUpdate=function(e){var t=this;ere(Li({},e),this.props)&&this.setState(function(){return t.initialState},function(){t.removeSVG(),t.renderSVG()})},n.componentWillUnmount=function(){this._isMounted=!1,this.removeSVG()},n.render=function(){var e=this.props;e.afterInjection,e.beforeInjection,e.desc,e.evalScripts;var t=e.fallback;e.httpRequestWithCredentials;var n=e.loading;e.renumerateIRIElements,e.src,e.title,e.useRequestCache;var r=e.wrapper,i=Ii(e,tre),a=r;return H.createElement(a,Li({},i,{ref:this.refCallback},r===`svg`?{xmlns:$i,xmlnsXlink:ea}:{}),this.state.isLoading&&n&&H.createElement(n,null),this.state.hasError&&t&&H.createElement(t,null))},t}(H.Component);ta.defaultProps={afterInjection:function(){},beforeInjection:function(){},desc:``,evalScripts:`never`,fallback:null,httpRequestWithCredentials:!1,loading:null,onError:function(){},renumerateIRIElements:!0,title:``,useRequestCache:!0,wrapper:`div`},ta.propTypes={afterInjection:ni.func,beforeInjection:ni.func,desc:ni.string,evalScripts:ni.oneOf([`always`,`once`,`never`]),fallback:ni.oneOfType([ni.func,ni.object,ni.string]),httpRequestWithCredentials:ni.bool,loading:ni.oneOfType([ni.func,ni.object,ni.string]),onError:ni.func,renumerateIRIElements:ni.bool,src:ni.string.isRequired,title:ni.string,useRequestCache:ni.bool,wrapper:ni.oneOf([`div`,`span`,`svg`])};var na=H.createContext(!1),ra={wrapper:`_wrapper_18jt2_1`,customSvg:`_customSvg_18jt2_8`,customPng:`_customPng_18jt2_11`,clickable:`_clickable_18jt2_16`},ia={color:void 0,size:void 0,className:void 0,style:void 0,attr:void 0},aa=H.createContext&&H.createContext(ia),oa=function(){return oa=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n],t)Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e},oa.apply(this,arguments)},nre=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols==`function`)for(var i=0,r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]]);return n};function sa(e){return e&&e.map(function(e,t){return H.createElement(e.tag,oa({key:t},e.attr),sa(e.child))})}function W(e){return function(t){return H.createElement(rre,oa({attr:oa({},e.attr)},t),sa(e.child))}}function rre(e){var t=function(t){var n=e.attr,r=e.size,i=e.title,a=nre(e,[`attr`,`size`,`title`]),o=r||t.size||`1em`,s;return t.className&&(s=t.className),e.className&&(s=(s?s+` `:``)+e.className),H.createElement(`svg`,oa({stroke:`currentColor`,fill:`currentColor`,strokeWidth:`0`},t.attr,n,a,{className:s,style:oa(oa({color:e.color||t.color},t.style),e.style),height:o,width:o,xmlns:`http://www.w3.org/2000/svg`}),i&&H.createElement(`title`,null,i),e.children)};return aa===void 0?t(ia):H.createElement(aa.Consumer,null,function(e){return t(e)})}function ire(e){return W({attr:{viewBox:`0 0 24 24`,strokeWidth:`2`,stroke:`currentColor`,fill:`none`,strokeLinecap:`round`,strokeLinejoin:`round`},child:[{tag:`path`,attr:{stroke:`none`,d:`M0 0h24v24H0z`,fill:`none`}},{tag:`path`,attr:{d:`M12 9v4`}},{tag:`path`,attr:{d:`M10.363 3.591l-8.106 13.534a1.914 1.914 0 0 0 1.636 2.871h16.214a1.914 1.914 0 0 0 1.636 -2.87l-8.106 -13.536a1.914 1.914 0 0 0 -3.274 0z`}},{tag:`path`,attr:{d:`M12 16h.01`}}]})(e)}function are(e){return W({attr:{viewBox:`0 0 24 24`,strokeWidth:`2`,stroke:`currentColor`,fill:`none`,strokeLinecap:`round`,strokeLinejoin:`round`},child:[{tag:`path`,attr:{stroke:`none`,d:`M0 0h24v24H0z`,fill:`none`}},{tag:`path`,attr:{d:`M12 5l0 14`}},{tag:`path`,attr:{d:`M18 13l-6 6`}},{tag:`path`,attr:{d:`M6 13l6 6`}}]})(e)}function ore(e){return W({attr:{viewBox:`0 0 24 24`,strokeWidth:`2`,stroke:`currentColor`,fill:`none`,strokeLinecap:`round`,strokeLinejoin:`round`},child:[{tag:`path`,attr:{stroke:`none`,d:`M0 0h24v24H0z`,fill:`none`}},{tag:`path`,attr:{d:`M5 12l14 0`}},{tag:`path`,attr:{d:`M5 12l6 6`}},{tag:`path`,attr:{d:`M5 12l6 -6`}}]})(e)}function sre(e){return W({attr:{viewBox:`0 0 24 24`,strokeWidth:`2`,stroke:`currentColor`,fill:`none`,strokeLinecap:`round`,strokeLinejoin:`round`},child:[{tag:`path`,attr:{stroke:`none`,d:`M0 0h24v24H0z`,fill:`none`}},{tag:`path`,attr:{d:`M5 12l14 0`}},{tag:`path`,attr:{d:`M13 18l6 -6`}},{tag:`path`,attr:{d:`M13 6l6 6`}}]})(e)}function cre(e){return W({attr:{viewBox:`0 0 24 24`,strokeWidth:`2`,stroke:`currentColor`,fill:`none`,strokeLinecap:`round`,strokeLinejoin:`round`},child:[{tag:`path`,attr:{stroke:`none`,d:`M0 0h24v24H0z`,fill:`none`}},{tag:`path`,attr:{d:`M12 5l0 14`}},{tag:`path`,attr:{d:`M18 11l-6 -6`}},{tag:`path`,attr:{d:`M6 11l6 -6`}}]})(e)}function lre(e){return W({attr:{viewBox:`0 0 24 24`,strokeWidth:`2`,stroke:`currentColor`,fill:`none`,strokeLinecap:`round`,strokeLinejoin:`round`},child:[{tag:`path`,attr:{stroke:`none`,d:`M0 0h24v24H0z`,fill:`none`}},{tag:`path`,attr:{d:`M16 4l4 0l0 4`}},{tag:`path`,attr:{d:`M14 10l6 -6`}},{tag:`path`,attr:{d:`M8 20l-4 0l0 -4`}},{tag:`path`,attr:{d:`M4 20l6 -6`}}]})(e)}function ure(e){return W({attr:{viewBox:`0 0 24 24`,strokeWidth:`2`,stroke:`currentColor`,fill:`none`,strokeLinecap:`round`,strokeLinejoin:`round`},child:[{tag:`path`,attr:{stroke:`none`,d:`M0 0h24v24H0z`,fill:`none`}},{tag:`path`,attr:{d:`M16 4l4 0l0 4`}},{tag:`path`,attr:{d:`M14 10l6 -6`}},{tag:`path`,attr:{d:`M8 20l-4 0l0 -4`}},{tag:`path`,attr:{d:`M4 20l6 -6`}},{tag:`path`,attr:{d:`M16 20l4 0l0 -4`}},{tag:`path`,attr:{d:`M14 14l6 6`}},{tag:`path`,attr:{d:`M8 4l-4 0l0 4`}},{tag:`path`,attr:{d:`M4 4l6 6`}}]})(e)}function dre(e){return W({attr:{viewBox:`0 0 24 24`,strokeWidth:`2`,stroke:`currentColor`,fill:`none`,strokeLinecap:`round`,strokeLinejoin:`round`},child:[{tag:`path`,attr:{stroke:`none`,d:`M0 0h24v24H0z`,fill:`none`}},{tag:`path`,attr:{d:`M5 9l4 0l0 -4`}},{tag:`path`,attr:{d:`M3 3l6 6`}},{tag:`path`,attr:{d:`M5 15l4 0l0 4`}},{tag:`path`,attr:{d:`M3 21l6 -6`}},{tag:`path`,attr:{d:`M19 9l-4 0l0 -4`}},{tag:`path`,attr:{d:`M15 9l6 -6`}},{tag:`path`,attr:{d:`M19 15l-4 0l0 4`}},{tag:`path`,attr:{d:`M15 15l6 6`}}]})(e)}function fre(e){return W({attr:{viewBox:`0 0 24 24`,strokeWidth:`2`,stroke:`currentColor`,fill:`none`,strokeLinecap:`round`,strokeLinejoin:`round`},child:[{tag:`path`,attr:{stroke:`none`,d:`M0 0h24v24H0z`,fill:`none`}},{tag:`path`,attr:{d:`M18 9l3 3l-3 3`}},{tag:`path`,attr:{d:`M15 12h6`}},{tag:`path`,attr:{d:`M6 9l-3 3l3 3`}},{tag:`path`,attr:{d:`M3 12h6`}},{tag:`path`,attr:{d:`M9 18l3 3l3 -3`}},{tag:`path`,attr:{d:`M12 15v6`}},{tag:`path`,attr:{d:`M15 6l-3 -3l-3 3`}},{tag:`path`,attr:{d:`M12 3v6`}}]})(e)}function pre(e){return W({attr:{viewBox:`0 0 24 24`,strokeWidth:`2`,stroke:`currentColor`,fill:`none`,strokeLinecap:`round`,strokeLinejoin:`round`},child:[{tag:`path`,attr:{stroke:`none`,d:`M0 0h24v24H0z`,fill:`none`}},{tag:`path`,attr:{d:`M21 17h-8l-3.5 -5h-6.5`}},{tag:`path`,attr:{d:`M21 7h-8l-3.495 5`}},{tag:`path`,attr:{d:`M18 10l3 -3l-3 -3`}},{tag:`path`,attr:{d:`M18 20l3 -3l-3 -3`}}]})(e)}function mre(e){return W({attr:{viewBox:`0 0 24 24`,strokeWidth:`2`,stroke:`currentColor`,fill:`none`,strokeLinecap:`round`,strokeLinejoin:`round`},child:[{tag:`path`,attr:{stroke:`none`,d:`M0 0h24v24H0z`,fill:`none`}},{tag:`path`,attr:{d:`M10 5a2 2 0 1 1 4 0a7 7 0 0 1 4 6v3a4 4 0 0 0 2 3h-16a4 4 0 0 0 2 -3v-3a7 7 0 0 1 4 -6`}},{tag:`path`,attr:{d:`M9 17v1a3 3 0 0 0 6 0v-1`}}]})(e)}function hre(e){return W({attr:{viewBox:`0 0 24 24`,strokeWidth:`2`,stroke:`currentColor`,fill:`none`,strokeLinecap:`round`,strokeLinejoin:`round`},child:[{tag:`path`,attr:{stroke:`none`,d:`M0 0h24v24H0z`,fill:`none`}},{tag:`path`,attr:{d:`M7 5h6a3.5 3.5 0 0 1 0 7h-6z`}},{tag:`path`,attr:{d:`M13 12h1a3.5 3.5 0 0 1 0 7h-7v-7`}}]})(e)}function gre(e){return W({attr:{viewBox:`0 0 24 24`,strokeWidth:`2`,stroke:`currentColor`,fill:`none`,strokeLinecap:`round`,strokeLinejoin:`round`},child:[{tag:`path`,attr:{stroke:`none`,d:`M0 0h24v24H0z`,fill:`none`}},{tag:`path`,attr:{d:`M13 3l0 7l6 0l-8 11l0 -7l-6 0l8 -11`}}]})(e)}function _re(e){return W({attr:{viewBox:`0 0 24 24`,strokeWidth:`2`,stroke:`currentColor`,fill:`none`,strokeLinecap:`round`,strokeLinejoin:`round`},child:[{tag:`path`,attr:{stroke:`none`,d:`M0 0h24v24H0z`,fill:`none`}},{tag:`path`,attr:{d:`M19 4v16h-12a2 2 0 0 1 -2 -2v-12a2 2 0 0 1 2 -2h12z`}},{tag:`path`,attr:{d:`M19 16h-12a2 2 0 0 0 -2 2`}},{tag:`path`,attr:{d:`M9 8h6`}}]})(e)}function vre(e){return W({attr:{viewBox:`0 0 24 24`,strokeWidth:`2`,stroke:`currentColor`,fill:`none`,strokeLinecap:`round`,strokeLinejoin:`round`},child:[{tag:`path`,attr:{stroke:`none`,d:`M0 0h24v24H0z`,fill:`none`}},{tag:`path`,attr:{d:`M3 21l18 0`}},{tag:`path`,attr:{d:`M5 21v-14l8 -4v18`}},{tag:`path`,attr:{d:`M19 21v-10l-6 -4`}},{tag:`path`,attr:{d:`M9 9l0 .01`}},{tag:`path`,attr:{d:`M9 12l0 .01`}},{tag:`path`,attr:{d:`M9 15l0 .01`}},{tag:`path`,attr:{d:`M9 18l0 .01`}}]})(e)}function yre(e){return W({attr:{viewBox:`0 0 24 24`,strokeWidth:`2`,stroke:`currentColor`,fill:`none`,strokeLinecap:`round`,strokeLinejoin:`round`},child:[{tag:`path`,attr:{stroke:`none`,d:`M0 0h24v24H0z`,fill:`none`}},{tag:`path`,attr:{d:`M5 7h1a2 2 0 0 0 2 -2a1 1 0 0 1 1 -1h6a1 1 0 0 1 1 1a2 2 0 0 0 2 2h1a2 2 0 0 1 2 2v9a2 2 0 0 1 -2 2h-14a2 2 0 0 1 -2 -2v-9a2 2 0 0 1 2 -2`}},{tag:`path`,attr:{d:`M9 13a3 3 0 1 0 6 0a3 3 0 0 0 -6 0`}}]})(e)}function bre(e){return W({attr:{viewBox:`0 0 24 24`,strokeWidth:`2`,stroke:`currentColor`,fill:`none`,strokeLinecap:`round`,strokeLinejoin:`round`},child:[{tag:`path`,attr:{stroke:`none`,d:`M0 0h24v24H0z`,fill:`none`}},{tag:`path`,attr:{d:`M3 12m0 1a1 1 0 0 1 1 -1h4a1 1 0 0 1 1 1v6a1 1 0 0 1 -1 1h-4a1 1 0 0 1 -1 -1z`}},{tag:`path`,attr:{d:`M9 8m0 1a1 1 0 0 1 1 -1h4a1 1 0 0 1 1 1v10a1 1 0 0 1 -1 1h-4a1 1 0 0 1 -1 -1z`}},{tag:`path`,attr:{d:`M15 4m0 1a1 1 0 0 1 1 -1h4a1 1 0 0 1 1 1v14a1 1 0 0 1 -1 1h-4a1 1 0 0 1 -1 -1z`}},{tag:`path`,attr:{d:`M4 20l14 0`}}]})(e)}function xre(e){return W({attr:{viewBox:`0 0 24 24`,strokeWidth:`2`,stroke:`currentColor`,fill:`none`,strokeLinecap:`round`,strokeLinejoin:`round`},child:[{tag:`path`,attr:{stroke:`none`,d:`M0 0h24v24H0z`,fill:`none`}},{tag:`path`,attr:{d:`M4 19l16 0`}},{tag:`path`,attr:{d:`M4 15l4 -6l4 2l4 -5l4 4`}}]})(e)}function Sre(e){return W({attr:{viewBox:`0 0 24 24`,strokeWidth:`2`,stroke:`currentColor`,fill:`none`,strokeLinecap:`round`,strokeLinejoin:`round`},child:[{tag:`path`,attr:{stroke:`none`,d:`M0 0h24v24H0z`,fill:`none`}},{tag:`path`,attr:{d:`M12 3v9h9`}},{tag:`path`,attr:{d:`M12 12m-9 0a9 9 0 1 0 18 0a9 9 0 1 0 -18 0`}}]})(e)}function Cre(e){return W({attr:{viewBox:`0 0 24 24`,strokeWidth:`2`,stroke:`currentColor`,fill:`none`,strokeLinecap:`round`,strokeLinejoin:`round`},child:[{tag:`path`,attr:{stroke:`none`,d:`M0 0h24v24H0z`,fill:`none`}},{tag:`path`,attr:{d:`M5 12l5 5l10 -10`}}]})(e)}function wre(e){return W({attr:{viewBox:`0 0 24 24`,strokeWidth:`2`,stroke:`currentColor`,fill:`none`,strokeLinecap:`round`,strokeLinejoin:`round`},child:[{tag:`path`,attr:{stroke:`none`,d:`M0 0h24v24H0z`,fill:`none`}},{tag:`path`,attr:{d:`M6 9l6 6l6 -6`}}]})(e)}function Tre(e){return W({attr:{viewBox:`0 0 24 24`,strokeWidth:`2`,stroke:`currentColor`,fill:`none`,strokeLinecap:`round`,strokeLinejoin:`round`},child:[{tag:`path`,attr:{stroke:`none`,d:`M0 0h24v24H0z`,fill:`none`}},{tag:`path`,attr:{d:`M15 6l-6 6l6 6`}}]})(e)}function Ere(e){return W({attr:{viewBox:`0 0 24 24`,strokeWidth:`2`,stroke:`currentColor`,fill:`none`,strokeLinecap:`round`,strokeLinejoin:`round`},child:[{tag:`path`,attr:{stroke:`none`,d:`M0 0h24v24H0z`,fill:`none`}},{tag:`path`,attr:{d:`M9 6l6 6l-6 6`}}]})(e)}function Dre(e){return W({attr:{viewBox:`0 0 24 24`,strokeWidth:`2`,stroke:`currentColor`,fill:`none`,strokeLinecap:`round`,strokeLinejoin:`round`},child:[{tag:`path`,attr:{stroke:`none`,d:`M0 0h24v24H0z`,fill:`none`}},{tag:`path`,attr:{d:`M6 15l6 -6l6 6`}}]})(e)}function Ore(e){return W({attr:{viewBox:`0 0 24 24`,strokeWidth:`2`,stroke:`currentColor`,fill:`none`,strokeLinecap:`round`,strokeLinejoin:`round`},child:[{tag:`path`,attr:{stroke:`none`,d:`M0 0h24v24H0z`,fill:`none`}},{tag:`path`,attr:{d:`M11 7l-5 5l5 5`}},{tag:`path`,attr:{d:`M17 7l-5 5l5 5`}}]})(e)}function kre(e){return W({attr:{viewBox:`0 0 24 24`,strokeWidth:`2`,stroke:`currentColor`,fill:`none`,strokeLinecap:`round`,strokeLinejoin:`round`},child:[{tag:`path`,attr:{stroke:`none`,d:`M0 0h24v24H0z`,fill:`none`}},{tag:`path`,attr:{d:`M7 7l5 5l-5 5`}},{tag:`path`,attr:{d:`M13 7l5 5l-5 5`}}]})(e)}function Are(e){return W({attr:{viewBox:`0 0 24 24`,strokeWidth:`2`,stroke:`currentColor`,fill:`none`,strokeLinecap:`round`,strokeLinejoin:`round`},child:[{tag:`path`,attr:{stroke:`none`,d:`M0 0h24v24H0z`,fill:`none`}},{tag:`path`,attr:{d:`M12 12m-9 0a9 9 0 1 0 18 0a9 9 0 1 0 -18 0`}},{tag:`path`,attr:{d:`M9 12l2 2l4 -4`}}]})(e)}function jre(e){return W({attr:{viewBox:`0 0 24 24`,strokeWidth:`2`,stroke:`currentColor`,fill:`none`,strokeLinecap:`round`,strokeLinejoin:`round`},child:[{tag:`path`,attr:{stroke:`none`,d:`M0 0h24v24H0z`,fill:`none`}},{tag:`path`,attr:{d:`M12 12m-9 0a9 9 0 1 0 18 0a9 9 0 1 0 -18 0`}},{tag:`path`,attr:{d:`M10 10l4 4m0 -4l-4 4`}}]})(e)}function Mre(e){return W({attr:{viewBox:`0 0 24 24`,strokeWidth:`2`,stroke:`currentColor`,fill:`none`,strokeLinecap:`round`,strokeLinejoin:`round`},child:[{tag:`path`,attr:{stroke:`none`,d:`M0 0h24v24H0z`,fill:`none`}},{tag:`path`,attr:{d:`M12 12m-9 0a9 9 0 1 0 18 0a9 9 0 1 0 -18 0`}}]})(e)}function Nre(e){return W({attr:{viewBox:`0 0 24 24`,strokeWidth:`2`,stroke:`currentColor`,fill:`none`,strokeLinecap:`round`,strokeLinejoin:`round`},child:[{tag:`path`,attr:{stroke:`none`,d:`M0 0h24v24H0z`,fill:`none`}},{tag:`path`,attr:{d:`M9 5h-2a2 2 0 0 0 -2 2v12a2 2 0 0 0 2 2h10a2 2 0 0 0 2 -2v-12a2 2 0 0 0 -2 -2h-2`}},{tag:`path`,attr:{d:`M9 3m0 2a2 2 0 0 1 2 -2h2a2 2 0 0 1 2 2v0a2 2 0 0 1 -2 2h-2a2 2 0 0 1 -2 -2z`}}]})(e)}function Pre(e){return W({attr:{viewBox:`0 0 24 24`,strokeWidth:`2`,stroke:`currentColor`,fill:`none`,strokeLinecap:`round`,strokeLinejoin:`round`},child:[{tag:`path`,attr:{stroke:`none`,d:`M0 0h24v24H0z`,fill:`none`}},{tag:`path`,attr:{d:`M3 12a9 9 0 1 0 18 0a9 9 0 0 0 -18 0`}},{tag:`path`,attr:{d:`M12 7v5l3 3`}}]})(e)}function Fre(e){return W({attr:{viewBox:`0 0 24 24`,strokeWidth:`2`,stroke:`currentColor`,fill:`none`,strokeLinecap:`round`,strokeLinejoin:`round`},child:[{tag:`path`,attr:{stroke:`none`,d:`M0 0h24v24H0z`,fill:`none`}},{tag:`path`,attr:{d:`M7 8l-4 4l4 4`}},{tag:`path`,attr:{d:`M17 8l4 4l-4 4`}},{tag:`path`,attr:{d:`M14 4l-4 16`}}]})(e)}function Ire(e){return W({attr:{viewBox:`0 0 24 24`,strokeWidth:`2`,stroke:`currentColor`,fill:`none`,strokeLinecap:`round`,strokeLinejoin:`round`},child:[{tag:`path`,attr:{stroke:`none`,d:`M0 0h24v24H0z`,fill:`none`}},{tag:`path`,attr:{d:`M8 8m0 2a2 2 0 0 1 2 -2h8a2 2 0 0 1 2 2v8a2 2 0 0 1 -2 2h-8a2 2 0 0 1 -2 -2z`}},{tag:`path`,attr:{d:`M16 8v-2a2 2 0 0 0 -2 -2h-8a2 2 0 0 0 -2 2v8a2 2 0 0 0 2 2h2`}}]})(e)}function Lre(e){return W({attr:{viewBox:`0 0 24 24`,strokeWidth:`2`,stroke:`currentColor`,fill:`none`,strokeLinecap:`round`,strokeLinejoin:`round`},child:[{tag:`path`,attr:{stroke:`none`,d:`M0 0h24v24H0z`,fill:`none`}},{tag:`path`,attr:{d:`M6 6v6a3 3 0 0 0 3 3h10l-4 -4m0 8l4 -4`}}]})(e)}function Rre(e){return W({attr:{viewBox:`0 0 24 24`,strokeWidth:`2`,stroke:`currentColor`,fill:`none`,strokeLinecap:`round`,strokeLinejoin:`round`},child:[{tag:`path`,attr:{stroke:`none`,d:`M0 0h24v24H0z`,fill:`none`}},{tag:`path`,attr:{d:`M6 4h10l4 4v10a2 2 0 0 1 -2 2h-12a2 2 0 0 1 -2 -2v-12a2 2 0 0 1 2 -2`}},{tag:`path`,attr:{d:`M12 14m-2 0a2 2 0 1 0 4 0a2 2 0 1 0 -4 0`}},{tag:`path`,attr:{d:`M14 4l0 4l-6 0l0 -4`}}]})(e)}function zre(e){return W({attr:{viewBox:`0 0 24 24`,strokeWidth:`2`,stroke:`currentColor`,fill:`none`,strokeLinecap:`round`,strokeLinejoin:`round`},child:[{tag:`path`,attr:{stroke:`none`,d:`M0 0h24v24H0z`,fill:`none`}},{tag:`path`,attr:{d:`M3 19l18 0`}},{tag:`path`,attr:{d:`M5 6m0 1a1 1 0 0 1 1 -1h12a1 1 0 0 1 1 1v8a1 1 0 0 1 -1 1h-12a1 1 0 0 1 -1 -1z`}}]})(e)}function Bre(e){return W({attr:{viewBox:`0 0 24 24`,strokeWidth:`2`,stroke:`currentColor`,fill:`none`,strokeLinecap:`round`,strokeLinejoin:`round`},child:[{tag:`path`,attr:{stroke:`none`,d:`M0 0h24v24H0z`,fill:`none`}},{tag:`path`,attr:{d:`M12 12m-1 0a1 1 0 1 0 2 0a1 1 0 1 0 -2 0`}},{tag:`path`,attr:{d:`M12 19m-1 0a1 1 0 1 0 2 0a1 1 0 1 0 -2 0`}},{tag:`path`,attr:{d:`M12 5m-1 0a1 1 0 1 0 2 0a1 1 0 1 0 -2 0`}}]})(e)}function Vre(e){return W({attr:{viewBox:`0 0 24 24`,strokeWidth:`2`,stroke:`currentColor`,fill:`none`,strokeLinecap:`round`,strokeLinejoin:`round`},child:[{tag:`path`,attr:{stroke:`none`,d:`M0 0h24v24H0z`,fill:`none`}},{tag:`path`,attr:{d:`M4 17v2a2 2 0 0 0 2 2h12a2 2 0 0 0 2 -2v-2`}},{tag:`path`,attr:{d:`M7 11l5 5l5 -5`}},{tag:`path`,attr:{d:`M12 4l0 12`}}]})(e)}function Hre(e){return W({attr:{viewBox:`0 0 24 24`,strokeWidth:`2`,stroke:`currentColor`,fill:`none`,strokeLinecap:`round`,strokeLinejoin:`round`},child:[{tag:`path`,attr:{stroke:`none`,d:`M0 0h24v24H0z`,fill:`none`}},{tag:`path`,attr:{d:`M7.502 19.423c2.602 2.105 6.395 2.105 8.996 0c2.602 -2.105 3.262 -5.708 1.566 -8.546l-4.89 -7.26c-.42 -.625 -1.287 -.803 -1.936 -.397a1.376 1.376 0 0 0 -.41 .397l-4.893 7.26c-1.695 2.838 -1.035 6.441 1.567 8.546z`}}]})(e)}function Ure(e){return W({attr:{viewBox:`0 0 24 24`,strokeWidth:`2`,stroke:`currentColor`,fill:`none`,strokeLinecap:`round`,strokeLinejoin:`round`},child:[{tag:`path`,attr:{stroke:`none`,d:`M0 0h24v24H0z`,fill:`none`}},{tag:`path`,attr:{d:`M12 19v.01`}},{tag:`path`,attr:{d:`M12 15v-10`}}]})(e)}function Wre(e){return W({attr:{viewBox:`0 0 24 24`,strokeWidth:`2`,stroke:`currentColor`,fill:`none`,strokeLinecap:`round`,strokeLinejoin:`round`},child:[{tag:`path`,attr:{stroke:`none`,d:`M0 0h24v24H0z`,fill:`none`}},{tag:`path`,attr:{d:`M12 6h-6a2 2 0 0 0 -2 2v10a2 2 0 0 0 2 2h10a2 2 0 0 0 2 -2v-6`}},{tag:`path`,attr:{d:`M11 13l9 -9`}},{tag:`path`,attr:{d:`M15 4h5v5`}}]})(e)}function Gre(e){return W({attr:{viewBox:`0 0 24 24`,strokeWidth:`2`,stroke:`currentColor`,fill:`none`,strokeLinecap:`round`,strokeLinejoin:`round`},child:[{tag:`path`,attr:{stroke:`none`,d:`M0 0h24v24H0z`,fill:`none`}},{tag:`path`,attr:{d:`M10.585 10.587a2 2 0 0 0 2.829 2.828`}},{tag:`path`,attr:{d:`M16.681 16.673a8.717 8.717 0 0 1 -4.681 1.327c-3.6 0 -6.6 -2 -9 -6c1.272 -2.12 2.712 -3.678 4.32 -4.674m2.86 -1.146a9.055 9.055 0 0 1 1.82 -.18c3.6 0 6.6 2 9 6c-.666 1.11 -1.379 2.067 -2.138 2.87`}},{tag:`path`,attr:{d:`M3 3l18 18`}}]})(e)}function Kre(e){return W({attr:{viewBox:`0 0 24 24`,strokeWidth:`2`,stroke:`currentColor`,fill:`none`,strokeLinecap:`round`,strokeLinejoin:`round`},child:[{tag:`path`,attr:{stroke:`none`,d:`M0 0h24v24H0z`,fill:`none`}},{tag:`path`,attr:{d:`M10 12a2 2 0 1 0 4 0a2 2 0 0 0 -4 0`}},{tag:`path`,attr:{d:`M21 12c-2.4 4 -5.4 6 -9 6c-3.6 0 -6.6 -2 -9 -6c2.4 -4 5.4 -6 9 -6c3.6 0 6.6 2 9 6`}}]})(e)}function qre(e){return W({attr:{viewBox:`0 0 24 24`,strokeWidth:`2`,stroke:`currentColor`,fill:`none`,strokeLinecap:`round`,strokeLinejoin:`round`},child:[{tag:`path`,attr:{stroke:`none`,d:`M0 0h24v24H0z`,fill:`none`}},{tag:`path`,attr:{d:`M14 3v4a1 1 0 0 0 1 1h4`}},{tag:`path`,attr:{d:`M17 21h-10a2 2 0 0 1 -2 -2v-14a2 2 0 0 1 2 -2h7l5 5v11a2 2 0 0 1 -2 2z`}}]})(e)}function Jre(e){return W({attr:{viewBox:`0 0 24 24`,strokeWidth:`2`,stroke:`currentColor`,fill:`none`,strokeLinecap:`round`,strokeLinejoin:`round`},child:[{tag:`path`,attr:{stroke:`none`,d:`M0 0h24v24H0z`,fill:`none`}},{tag:`path`,attr:{d:`M8 4h12v2.172a2 2 0 0 1 -.586 1.414l-3.914 3.914m-.5 3.5v4l-6 2v-8.5l-4.48 -4.928a2 2 0 0 1 -.52 -1.345v-2.227`}},{tag:`path`,attr:{d:`M3 3l18 18`}}]})(e)}function Yre(e){return W({attr:{viewBox:`0 0 24 24`,strokeWidth:`2`,stroke:`currentColor`,fill:`none`,strokeLinecap:`round`,strokeLinejoin:`round`},child:[{tag:`path`,attr:{stroke:`none`,d:`M0 0h24v24H0z`,fill:`none`}},{tag:`path`,attr:{d:`M4 4h16v2.172a2 2 0 0 1 -.586 1.414l-4.414 4.414v7l-6 2v-8.5l-4.48 -4.928a2 2 0 0 1 -.52 -1.345v-2.227z`}}]})(e)}function Xre(e){return W({attr:{viewBox:`0 0 24 24`,strokeWidth:`2`,stroke:`currentColor`,fill:`none`,strokeLinecap:`round`,strokeLinejoin:`round`},child:[{tag:`path`,attr:{stroke:`none`,d:`M0 0h24v24H0z`,fill:`none`}},{tag:`path`,attr:{d:`M12 12m-1 0a1 1 0 1 0 2 0a1 1 0 1 0 -2 0`}},{tag:`path`,attr:{d:`M4 8v-2a2 2 0 0 1 2 -2h2`}},{tag:`path`,attr:{d:`M4 16v2a2 2 0 0 0 2 2h2`}},{tag:`path`,attr:{d:`M16 4h2a2 2 0 0 1 2 2v2`}},{tag:`path`,attr:{d:`M16 20h2a2 2 0 0 0 2 -2v-2`}}]})(e)}function Zre(e){return W({attr:{viewBox:`0 0 24 24`,strokeWidth:`2`,stroke:`currentColor`,fill:`none`,strokeLinecap:`round`,strokeLinejoin:`round`},child:[{tag:`path`,attr:{stroke:`none`,d:`M0 0h24v24H0z`,fill:`none`}},{tag:`path`,attr:{d:`M11 19h-6a2 2 0 0 1 -2 -2v-11a2 2 0 0 1 2 -2h4l3 3h7a2 2 0 0 1 2 2v2.5`}},{tag:`path`,attr:{d:`M18 18m-3 0a3 3 0 1 0 6 0a3 3 0 1 0 -6 0`}},{tag:`path`,attr:{d:`M20.2 20.2l1.8 1.8`}}]})(e)}function Qre(e){return W({attr:{viewBox:`0 0 24 24`,strokeWidth:`2`,stroke:`currentColor`,fill:`none`,strokeLinecap:`round`,strokeLinejoin:`round`},child:[{tag:`path`,attr:{stroke:`none`,d:`M0 0h24v24H0z`,fill:`none`}},{tag:`path`,attr:{d:`M5 4h4l3 3h7a2 2 0 0 1 2 2v8a2 2 0 0 1 -2 2h-14a2 2 0 0 1 -2 -2v-11a2 2 0 0 1 2 -2`}}]})(e)}function $re(e){return W({attr:{viewBox:`0 0 24 24`,strokeWidth:`2`,stroke:`currentColor`,fill:`none`,strokeLinecap:`round`,strokeLinejoin:`round`},child:[{tag:`path`,attr:{stroke:`none`,d:`M0 0h24v24H0z`,fill:`none`}},{tag:`path`,attr:{d:`M12 12m-9 0a9 9 0 1 0 18 0a9 9 0 1 0 -18 0`}},{tag:`path`,attr:{d:`M12 12m-1 0a1 1 0 1 0 2 0a1 1 0 1 0 -2 0`}},{tag:`path`,attr:{d:`M13.41 10.59l2.59 -2.59`}},{tag:`path`,attr:{d:`M7 12a5 5 0 0 1 5 -5`}}]})(e)}function eie(e){return W({attr:{viewBox:`0 0 24 24`,strokeWidth:`2`,stroke:`currentColor`,fill:`none`,strokeLinecap:`round`,strokeLinejoin:`round`},child:[{tag:`path`,attr:{stroke:`none`,d:`M0 0h24v24H0z`,fill:`none`}},{tag:`path`,attr:{d:`M12 18m-2 0a2 2 0 1 0 4 0a2 2 0 1 0 -4 0`}},{tag:`path`,attr:{d:`M7 6m-2 0a2 2 0 1 0 4 0a2 2 0 1 0 -4 0`}},{tag:`path`,attr:{d:`M17 6m-2 0a2 2 0 1 0 4 0a2 2 0 1 0 -4 0`}},{tag:`path`,attr:{d:`M7 8v2a2 2 0 0 0 2 2h6a2 2 0 0 0 2 -2v-2`}},{tag:`path`,attr:{d:`M12 12l0 4`}}]})(e)}function tie(e){return W({attr:{viewBox:`0 0 24 24`,strokeWidth:`2`,stroke:`currentColor`,fill:`none`,strokeLinecap:`round`,strokeLinejoin:`round`},child:[{tag:`path`,attr:{stroke:`none`,d:`M0 0h24v24H0z`,fill:`none`}},{tag:`path`,attr:{d:`M9 5m-1 0a1 1 0 1 0 2 0a1 1 0 1 0 -2 0`}},{tag:`path`,attr:{d:`M9 12m-1 0a1 1 0 1 0 2 0a1 1 0 1 0 -2 0`}},{tag:`path`,attr:{d:`M9 19m-1 0a1 1 0 1 0 2 0a1 1 0 1 0 -2 0`}},{tag:`path`,attr:{d:`M15 5m-1 0a1 1 0 1 0 2 0a1 1 0 1 0 -2 0`}},{tag:`path`,attr:{d:`M15 12m-1 0a1 1 0 1 0 2 0a1 1 0 1 0 -2 0`}},{tag:`path`,attr:{d:`M15 19m-1 0a1 1 0 1 0 2 0a1 1 0 1 0 -2 0`}}]})(e)}function nie(e){return W({attr:{viewBox:`0 0 24 24`,strokeWidth:`2`,stroke:`currentColor`,fill:`none`,strokeLinecap:`round`,strokeLinejoin:`round`},child:[{tag:`path`,attr:{stroke:`none`,d:`M0 0h24v24H0z`,fill:`none`}},{tag:`path`,attr:{d:`M12 12m-9 0a9 9 0 1 0 18 0a9 9 0 1 0 -18 0`}},{tag:`path`,attr:{d:`M12 17l0 .01`}},{tag:`path`,attr:{d:`M12 13.5a1.5 1.5 0 0 1 1 -1.5a2.6 2.6 0 1 0 -3 -4`}}]})(e)}function rie(e){return W({attr:{viewBox:`0 0 24 24`,strokeWidth:`2`,stroke:`currentColor`,fill:`none`,strokeLinecap:`round`,strokeLinejoin:`round`},child:[{tag:`path`,attr:{stroke:`none`,d:`M0 0h24v24H0z`,fill:`none`}},{tag:`path`,attr:{d:`M3 12a9 9 0 1 0 18 0a9 9 0 0 0 -18 0`}},{tag:`path`,attr:{d:`M12 9h.01`}},{tag:`path`,attr:{d:`M11 12h1v4h1`}}]})(e)}function iie(e){return W({attr:{viewBox:`0 0 24 24`,strokeWidth:`2`,stroke:`currentColor`,fill:`none`,strokeLinecap:`round`,strokeLinejoin:`round`},child:[{tag:`path`,attr:{stroke:`none`,d:`M0 0h24v24H0z`,fill:`none`}},{tag:`path`,attr:{d:`M11 5l6 0`}},{tag:`path`,attr:{d:`M7 19l6 0`}},{tag:`path`,attr:{d:`M14 5l-4 14`}}]})(e)}function aie(e){return W({attr:{viewBox:`0 0 24 24`,strokeWidth:`2`,stroke:`currentColor`,fill:`none`,strokeLinecap:`round`,strokeLinejoin:`round`},child:[{tag:`path`,attr:{stroke:`none`,d:`M0 0h24v24H0z`,fill:`none`}},{tag:`path`,attr:{d:`M16.555 3.843l3.602 3.602a2.877 2.877 0 0 1 0 4.069l-2.643 2.643a2.877 2.877 0 0 1 -4.069 0l-.301 -.301l-6.558 6.558a2 2 0 0 1 -1.239 .578l-.175 .008h-1.172a1 1 0 0 1 -.993 -.883l-.007 -.117v-1.172a2 2 0 0 1 .467 -1.284l.119 -.13l.414 -.414h2v-2h2v-2l2.144 -2.144l-.301 -.301a2.877 2.877 0 0 1 0 -4.069l2.643 -2.643a2.877 2.877 0 0 1 4.069 0z`}},{tag:`path`,attr:{d:`M15 9h.01`}}]})(e)}function oie(e){return W({attr:{viewBox:`0 0 24 24`,strokeWidth:`2`,stroke:`currentColor`,fill:`none`,strokeLinecap:`round`,strokeLinejoin:`round`},child:[{tag:`path`,attr:{stroke:`none`,d:`M0 0h24v24H0z`,fill:`none`}},{tag:`path`,attr:{d:`M4 4m0 2a2 2 0 0 1 2 -2h12a2 2 0 0 1 2 2v12a2 2 0 0 1 -2 2h-12a2 2 0 0 1 -2 -2z`}},{tag:`path`,attr:{d:`M12 4l0 16`}}]})(e)}function sie(e){return W({attr:{viewBox:`0 0 24 24`,strokeWidth:`2`,stroke:`currentColor`,fill:`none`,strokeLinecap:`round`,strokeLinejoin:`round`},child:[{tag:`path`,attr:{stroke:`none`,d:`M0 0h24v24H0z`,fill:`none`}},{tag:`path`,attr:{d:`M4 4m0 2a2 2 0 0 1 2 -2h12a2 2 0 0 1 2 2v12a2 2 0 0 1 -2 2h-12a2 2 0 0 1 -2 -2z`}},{tag:`path`,attr:{d:`M4 12l16 0`}}]})(e)}function cie(e){return W({attr:{viewBox:`0 0 24 24`,strokeWidth:`2`,stroke:`currentColor`,fill:`none`,strokeLinecap:`round`,strokeLinejoin:`round`},child:[{tag:`path`,attr:{stroke:`none`,d:`M0 0h24v24H0z`,fill:`none`}},{tag:`path`,attr:{d:`M9 15l3 -3m2 -2l1 -1`}},{tag:`path`,attr:{d:`M11 6l.463 -.536a5 5 0 0 1 7.071 7.072l-.534 .464`}},{tag:`path`,attr:{d:`M3 3l18 18`}},{tag:`path`,attr:{d:`M13 18l-.397 .534a5.068 5.068 0 0 1 -7.127 0a4.972 4.972 0 0 1 0 -7.071l.524 -.463`}}]})(e)}function lie(e){return W({attr:{viewBox:`0 0 24 24`,strokeWidth:`2`,stroke:`currentColor`,fill:`none`,strokeLinecap:`round`,strokeLinejoin:`round`},child:[{tag:`path`,attr:{stroke:`none`,d:`M0 0h24v24H0z`,fill:`none`}},{tag:`path`,attr:{d:`M9 15l6 -6`}},{tag:`path`,attr:{d:`M11 6l.463 -.536a5 5 0 0 1 7.071 7.072l-.534 .464`}},{tag:`path`,attr:{d:`M13 18l-.397 .534a5.068 5.068 0 0 1 -7.127 0a4.972 4.972 0 0 1 0 -7.071l.524 -.463`}}]})(e)}function uie(e){return W({attr:{viewBox:`0 0 24 24`,strokeWidth:`2`,stroke:`currentColor`,fill:`none`,strokeLinecap:`round`,strokeLinejoin:`round`},child:[{tag:`path`,attr:{stroke:`none`,d:`M0 0h24v24H0z`,fill:`none`}},{tag:`path`,attr:{d:`M11 6h9`}},{tag:`path`,attr:{d:`M11 12h9`}},{tag:`path`,attr:{d:`M12 18h8`}},{tag:`path`,attr:{d:`M4 16a2 2 0 1 1 4 0c0 .591 -.5 1 -1 1.5l-3 2.5h4`}},{tag:`path`,attr:{d:`M6 10v-6l-2 2`}}]})(e)}function die(e){return W({attr:{viewBox:`0 0 24 24`,strokeWidth:`2`,stroke:`currentColor`,fill:`none`,strokeLinecap:`round`,strokeLinejoin:`round`},child:[{tag:`path`,attr:{stroke:`none`,d:`M0 0h24v24H0z`,fill:`none`}},{tag:`path`,attr:{d:`M9 6l11 0`}},{tag:`path`,attr:{d:`M9 12l11 0`}},{tag:`path`,attr:{d:`M9 18l11 0`}},{tag:`path`,attr:{d:`M5 6l0 .01`}},{tag:`path`,attr:{d:`M5 12l0 .01`}},{tag:`path`,attr:{d:`M5 18l0 .01`}}]})(e)}function fie(e){return W({attr:{viewBox:`0 0 24 24`,strokeWidth:`2`,stroke:`currentColor`,fill:`none`,strokeLinecap:`round`,strokeLinejoin:`round`},child:[{tag:`path`,attr:{stroke:`none`,d:`M0 0h24v24H0z`,fill:`none`}},{tag:`path`,attr:{d:`M12 3a9 9 0 1 0 9 9`}}]})(e)}function pie(e){return W({attr:{viewBox:`0 0 24 24`,strokeWidth:`2`,stroke:`currentColor`,fill:`none`,strokeLinecap:`round`,strokeLinejoin:`round`},child:[{tag:`path`,attr:{stroke:`none`,d:`M0 0h24v24H0z`,fill:`none`}},{tag:`path`,attr:{d:`M5 11m0 2a2 2 0 0 1 2 -2h10a2 2 0 0 1 2 2v6a2 2 0 0 1 -2 2h-10a2 2 0 0 1 -2 -2z`}},{tag:`path`,attr:{d:`M12 16m-1 0a1 1 0 1 0 2 0a1 1 0 1 0 -2 0`}},{tag:`path`,attr:{d:`M8 11v-5a4 4 0 0 1 8 0`}}]})(e)}function mie(e){return W({attr:{viewBox:`0 0 24 24`,strokeWidth:`2`,stroke:`currentColor`,fill:`none`,strokeLinecap:`round`,strokeLinejoin:`round`},child:[{tag:`path`,attr:{stroke:`none`,d:`M0 0h24v24H0z`,fill:`none`}},{tag:`path`,attr:{d:`M5 13a2 2 0 0 1 2 -2h10a2 2 0 0 1 2 2v6a2 2 0 0 1 -2 2h-10a2 2 0 0 1 -2 -2v-6z`}},{tag:`path`,attr:{d:`M11 16a1 1 0 1 0 2 0a1 1 0 0 0 -2 0`}},{tag:`path`,attr:{d:`M8 11v-4a4 4 0 1 1 8 0v4`}}]})(e)}function hie(e){return W({attr:{viewBox:`0 0 24 24`,strokeWidth:`2`,stroke:`currentColor`,fill:`none`,strokeLinecap:`round`,strokeLinejoin:`round`},child:[{tag:`path`,attr:{stroke:`none`,d:`M0 0h24v24H0z`,fill:`none`}},{tag:`path`,attr:{d:`M9 11a3 3 0 1 0 6 0a3 3 0 0 0 -6 0`}},{tag:`path`,attr:{d:`M17.657 16.657l-4.243 4.243a2 2 0 0 1 -2.827 0l-4.244 -4.243a8 8 0 1 1 11.314 0z`}}]})(e)}function gie(e){return W({attr:{viewBox:`0 0 24 24`,strokeWidth:`2`,stroke:`currentColor`,fill:`none`,strokeLinecap:`round`,strokeLinejoin:`round`},child:[{tag:`path`,attr:{stroke:`none`,d:`M0 0h24v24H0z`,fill:`none`}},{tag:`path`,attr:{d:`M3 20l1.3 -3.9c-2.324 -3.437 -1.426 -7.872 2.1 -10.374c3.526 -2.501 8.59 -2.296 11.845 .48c3.255 2.777 3.695 7.266 1.029 10.501c-2.666 3.235 -7.615 4.215 -11.574 2.293l-4.7 1`}}]})(e)}function _ie(e){return W({attr:{viewBox:`0 0 24 24`,strokeWidth:`2`,stroke:`currentColor`,fill:`none`,strokeLinecap:`round`,strokeLinejoin:`round`},child:[{tag:`path`,attr:{stroke:`none`,d:`M0 0h24v24H0z`,fill:`none`}},{tag:`path`,attr:{d:`M5 12l14 0`}}]})(e)}function vie(e){return W({attr:{viewBox:`0 0 24 24`,strokeWidth:`2`,stroke:`currentColor`,fill:`none`,strokeLinecap:`round`,strokeLinejoin:`round`},child:[{tag:`path`,attr:{stroke:`none`,d:`M0 0h24v24H0z`,fill:`none`}},{tag:`path`,attr:{d:`M12 3c.132 0 .263 0 .393 0a7.5 7.5 0 0 0 7.92 12.446a9 9 0 1 1 -8.313 -12.454z`}}]})(e)}function yie(e){return W({attr:{viewBox:`0 0 24 24`,strokeWidth:`2`,stroke:`currentColor`,fill:`none`,strokeLinecap:`round`,strokeLinejoin:`round`},child:[{tag:`path`,attr:{stroke:`none`,d:`M0 0h24v24H0z`,fill:`none`}},{tag:`path`,attr:{d:`M4 4m0 2a2 2 0 0 1 2 -2h12a2 2 0 0 1 2 2v12a2 2 0 0 1 -2 2h-12a2 2 0 0 1 -2 -2z`}},{tag:`path`,attr:{d:`M8 4l0 16`}},{tag:`path`,attr:{d:`M16 4l0 16`}},{tag:`path`,attr:{d:`M4 8l4 0`}},{tag:`path`,attr:{d:`M4 16l4 0`}},{tag:`path`,attr:{d:`M4 12l16 0`}},{tag:`path`,attr:{d:`M16 8l4 0`}},{tag:`path`,attr:{d:`M16 16l4 0`}}]})(e)}function bie(e){return W({attr:{viewBox:`0 0 24 24`,strokeWidth:`2`,stroke:`currentColor`,fill:`none`,strokeLinecap:`round`,strokeLinejoin:`round`},child:[{tag:`path`,attr:{stroke:`none`,d:`M0 0h24v24H0z`,fill:`none`}},{tag:`path`,attr:{d:`M13 20l7 -7`}},{tag:`path`,attr:{d:`M13 20v-6a1 1 0 0 1 1 -1h6v-7a2 2 0 0 0 -2 -2h-12a2 2 0 0 0 -2 2v12a2 2 0 0 0 2 2h7`}}]})(e)}function xie(e){return W({attr:{viewBox:`0 0 24 24`,strokeWidth:`2`,stroke:`currentColor`,fill:`none`,strokeLinecap:`round`,strokeLinejoin:`round`},child:[{tag:`path`,attr:{stroke:`none`,d:`M0 0h24v24H0z`,fill:`none`}},{tag:`path`,attr:{d:`M4 20h4l10.5 -10.5a2.828 2.828 0 1 0 -4 -4l-10.5 10.5v4`}},{tag:`path`,attr:{d:`M13.5 6.5l4 4`}}]})(e)}function Sie(e){return W({attr:{viewBox:`0 0 24 24`,strokeWidth:`2`,stroke:`currentColor`,fill:`none`,strokeLinecap:`round`,strokeLinejoin:`round`},child:[{tag:`path`,attr:{stroke:`none`,d:`M0 0h24v24H0z`,fill:`none`}},{tag:`path`,attr:{d:`M6 5m0 1a1 1 0 0 1 1 -1h2a1 1 0 0 1 1 1v12a1 1 0 0 1 -1 1h-2a1 1 0 0 1 -1 -1z`}},{tag:`path`,attr:{d:`M14 5m0 1a1 1 0 0 1 1 -1h2a1 1 0 0 1 1 1v12a1 1 0 0 1 -1 1h-2a1 1 0 0 1 -1 -1z`}}]})(e)}function Cie(e){return W({attr:{viewBox:`0 0 24 24`,strokeWidth:`2`,stroke:`currentColor`,fill:`none`,strokeLinecap:`round`,strokeLinejoin:`round`},child:[{tag:`path`,attr:{stroke:`none`,d:`M0 0h24v24H0z`,fill:`none`}},{tag:`path`,attr:{d:`M7 4v16l13 -8z`}}]})(e)}function wie(e){return W({attr:{viewBox:`0 0 24 24`,strokeWidth:`2`,stroke:`currentColor`,fill:`none`,strokeLinecap:`round`,strokeLinejoin:`round`},child:[{tag:`path`,attr:{stroke:`none`,d:`M0 0h24v24H0z`,fill:`none`}},{tag:`path`,attr:{d:`M20 5v14l-12 -7z`}},{tag:`path`,attr:{d:`M4 5l0 14`}}]})(e)}function Tie(e){return W({attr:{viewBox:`0 0 24 24`,strokeWidth:`2`,stroke:`currentColor`,fill:`none`,strokeLinecap:`round`,strokeLinejoin:`round`},child:[{tag:`path`,attr:{stroke:`none`,d:`M0 0h24v24H0z`,fill:`none`}},{tag:`path`,attr:{d:`M4 5v14l12 -7z`}},{tag:`path`,attr:{d:`M20 5l0 14`}}]})(e)}function Eie(e){return W({attr:{viewBox:`0 0 24 24`,strokeWidth:`2`,stroke:`currentColor`,fill:`none`,strokeLinecap:`round`,strokeLinejoin:`round`},child:[{tag:`path`,attr:{stroke:`none`,d:`M0 0h24v24H0z`,fill:`none`}},{tag:`path`,attr:{d:`M5 5m0 2a2 2 0 0 1 2 -2h10a2 2 0 0 1 2 2v10a2 2 0 0 1 -2 2h-10a2 2 0 0 1 -2 -2z`}}]})(e)}function Die(e){return W({attr:{viewBox:`0 0 24 24`,strokeWidth:`2`,stroke:`currentColor`,fill:`none`,strokeLinecap:`round`,strokeLinejoin:`round`},child:[{tag:`path`,attr:{stroke:`none`,d:`M0 0h24v24H0z`,fill:`none`}},{tag:`path`,attr:{d:`M3 5v14l8 -7z`}},{tag:`path`,attr:{d:`M14 5v14l8 -7z`}}]})(e)}function Oie(e){return W({attr:{viewBox:`0 0 24 24`,strokeWidth:`2`,stroke:`currentColor`,fill:`none`,strokeLinecap:`round`,strokeLinejoin:`round`},child:[{tag:`path`,attr:{stroke:`none`,d:`M0 0h24v24H0z`,fill:`none`}},{tag:`path`,attr:{d:`M21 5v14l-8 -7z`}},{tag:`path`,attr:{d:`M10 5v14l-8 -7z`}}]})(e)}function kie(e){return W({attr:{viewBox:`0 0 24 24`,strokeWidth:`2`,stroke:`currentColor`,fill:`none`,strokeLinecap:`round`,strokeLinejoin:`round`},child:[{tag:`path`,attr:{stroke:`none`,d:`M0 0h24v24H0z`,fill:`none`}},{tag:`path`,attr:{d:`M12 5l0 14`}},{tag:`path`,attr:{d:`M5 12l14 0`}}]})(e)}function Aie(e){return W({attr:{viewBox:`0 0 24 24`,strokeWidth:`2`,stroke:`currentColor`,fill:`none`,strokeLinecap:`round`,strokeLinejoin:`round`},child:[{tag:`path`,attr:{stroke:`none`,d:`M0 0h24v24H0z`,fill:`none`}},{tag:`path`,attr:{d:`M8 8a3.5 3 0 0 1 3.5 -3h1a3.5 3 0 0 1 3.5 3a3 3 0 0 1 -2 3a3 4 0 0 0 -2 4`}},{tag:`path`,attr:{d:`M12 19l0 .01`}}]})(e)}function jie(e){return W({attr:{viewBox:`0 0 24 24`,strokeWidth:`2`,stroke:`currentColor`,fill:`none`,strokeLinecap:`round`,strokeLinejoin:`round`},child:[{tag:`path`,attr:{stroke:`none`,d:`M0 0h24v24H0z`,fill:`none`}},{tag:`path`,attr:{d:`M20 11a8.1 8.1 0 0 0 -15.5 -2m-.5 -4v4h4`}},{tag:`path`,attr:{d:`M4 13a8.1 8.1 0 0 0 15.5 2m.5 4v-4h-4`}}]})(e)}function Mie(e){return W({attr:{viewBox:`0 0 24 24`,strokeWidth:`2`,stroke:`currentColor`,fill:`none`,strokeLinecap:`round`,strokeLinejoin:`round`},child:[{tag:`path`,attr:{stroke:`none`,d:`M0 0h24v24H0z`,fill:`none`}},{tag:`path`,attr:{d:`M19.933 13.041a8 8 0 1 1 -9.925 -8.788c3.899 -1 7.935 1.007 9.425 4.747`}},{tag:`path`,attr:{d:`M20 4v5h-5`}}]})(e)}function Nie(e){return W({attr:{viewBox:`0 0 24 24`,strokeWidth:`2`,stroke:`currentColor`,fill:`none`,strokeLinecap:`round`,strokeLinejoin:`round`},child:[{tag:`path`,attr:{stroke:`none`,d:`M0 0h24v24H0z`,fill:`none`}},{tag:`path`,attr:{d:`M19.95 11a8 8 0 1 0 -.5 4m.5 5v-5h-5`}}]})(e)}function Pie(e){return W({attr:{viewBox:`0 0 24 24`,strokeWidth:`2`,stroke:`currentColor`,fill:`none`,strokeLinecap:`round`,strokeLinejoin:`round`},child:[{tag:`path`,attr:{stroke:`none`,d:`M0 0h24v24H0z`,fill:`none`}},{tag:`path`,attr:{d:`M20 6v4a1 1 0 0 1 -1 1h-14a1 1 0 0 1 -1 -1v-4a1 1 0 0 1 1 -1h14a1 1 0 0 1 1 1z`}},{tag:`path`,attr:{d:`M12 15l0 4`}},{tag:`path`,attr:{d:`M14 17l-4 0`}}]})(e)}function Fie(e){return W({attr:{viewBox:`0 0 24 24`,strokeWidth:`2`,stroke:`currentColor`,fill:`none`,strokeLinecap:`round`,strokeLinejoin:`round`},child:[{tag:`path`,attr:{stroke:`none`,d:`M0 0h24v24H0z`,fill:`none`}},{tag:`path`,attr:{d:`M4 18v-4a1 1 0 0 1 1 -1h14a1 1 0 0 1 1 1v4a1 1 0 0 1 -1 1h-14a1 1 0 0 1 -1 -1z`}},{tag:`path`,attr:{d:`M12 9v-4`}},{tag:`path`,attr:{d:`M10 7l4 0`}}]})(e)}function Iie(e){return W({attr:{viewBox:`0 0 24 24`,strokeWidth:`2`,stroke:`currentColor`,fill:`none`,strokeLinecap:`round`,strokeLinejoin:`round`},child:[{tag:`path`,attr:{stroke:`none`,d:`M0 0h24v24H0z`,fill:`none`}},{tag:`path`,attr:{d:`M19.875 8c.621 0 1.125 .512 1.125 1.143v5.714c0 .631 -.504 1.143 -1.125 1.143h-15.875a1 1 0 0 1 -1 -1v-5.857c0 -.631 .504 -1.143 1.125 -1.143h15.75z`}},{tag:`path`,attr:{d:`M9 8v2`}},{tag:`path`,attr:{d:`M6 8v3`}},{tag:`path`,attr:{d:`M12 8v3`}},{tag:`path`,attr:{d:`M18 8v3`}},{tag:`path`,attr:{d:`M15 8v2`}}]})(e)}function Lie(e){return W({attr:{viewBox:`0 0 24 24`,strokeWidth:`2`,stroke:`currentColor`,fill:`none`,strokeLinecap:`round`,strokeLinejoin:`round`},child:[{tag:`path`,attr:{stroke:`none`,d:`M0 0h24v24H0z`,fill:`none`}},{tag:`path`,attr:{d:`M7 20l10 0`}},{tag:`path`,attr:{d:`M6 6l6 -1l6 1`}},{tag:`path`,attr:{d:`M12 3l0 17`}},{tag:`path`,attr:{d:`M9 12l-3 -6l-3 6a3 3 0 0 0 6 0`}},{tag:`path`,attr:{d:`M21 12l-3 -6l-3 6a3 3 0 0 0 6 0`}}]})(e)}function Rie(e){return W({attr:{viewBox:`0 0 24 24`,strokeWidth:`2`,stroke:`currentColor`,fill:`none`,strokeLinecap:`round`,strokeLinejoin:`round`},child:[{tag:`path`,attr:{stroke:`none`,d:`M0 0h24v24H0z`,fill:`none`}},{tag:`path`,attr:{d:`M10 10m-7 0a7 7 0 1 0 14 0a7 7 0 1 0 -14 0`}},{tag:`path`,attr:{d:`M21 21l-6 -6`}}]})(e)}function zie(e){return W({attr:{viewBox:`0 0 24 24`,strokeWidth:`2`,stroke:`currentColor`,fill:`none`,strokeLinecap:`round`,strokeLinejoin:`round`},child:[{tag:`path`,attr:{stroke:`none`,d:`M0 0h24v24H0z`,fill:`none`}},{tag:`path`,attr:{d:`M3 4m0 3a3 3 0 0 1 3 -3h12a3 3 0 0 1 3 3v2a3 3 0 0 1 -3 3h-12a3 3 0 0 1 -3 -3z`}},{tag:`path`,attr:{d:`M3 12m0 3a3 3 0 0 1 3 -3h12a3 3 0 0 1 3 3v2a3 3 0 0 1 -3 3h-12a3 3 0 0 1 -3 -3z`}},{tag:`path`,attr:{d:`M7 8l0 .01`}},{tag:`path`,attr:{d:`M7 16l0 .01`}}]})(e)}function Bie(e){return W({attr:{viewBox:`0 0 24 24`,strokeWidth:`2`,stroke:`currentColor`,fill:`none`,strokeLinecap:`round`,strokeLinejoin:`round`},child:[{tag:`path`,attr:{stroke:`none`,d:`M0 0h24v24H0z`,fill:`none`}},{tag:`path`,attr:{d:`M10.325 4.317c.426 -1.756 2.924 -1.756 3.35 0a1.724 1.724 0 0 0 2.573 1.066c1.543 -.94 3.31 .826 2.37 2.37a1.724 1.724 0 0 0 1.065 2.572c1.756 .426 1.756 2.924 0 3.35a1.724 1.724 0 0 0 -1.066 2.573c.94 1.543 -.826 3.31 -2.37 2.37a1.724 1.724 0 0 0 -2.572 1.065c-.426 1.756 -2.924 1.756 -3.35 0a1.724 1.724 0 0 0 -2.573 -1.066c-1.543 .94 -3.31 -.826 -2.37 -2.37a1.724 1.724 0 0 0 -1.065 -2.572c-1.756 -.426 -1.756 -2.924 0 -3.35a1.724 1.724 0 0 0 1.066 -2.573c-.94 -1.543 .826 -3.31 2.37 -2.37c1 .608 2.296 .07 2.572 -1.065z`}},{tag:`path`,attr:{d:`M9 12a3 3 0 1 0 6 0a3 3 0 0 0 -6 0`}}]})(e)}function Vie(e){return W({attr:{viewBox:`0 0 24 24`,strokeWidth:`2`,stroke:`currentColor`,fill:`none`,strokeLinecap:`round`,strokeLinejoin:`round`},child:[{tag:`path`,attr:{stroke:`none`,d:`M0 0h24v24H0z`,fill:`none`}},{tag:`path`,attr:{d:`M4 6l7 0`}},{tag:`path`,attr:{d:`M4 12l7 0`}},{tag:`path`,attr:{d:`M4 18l9 0`}},{tag:`path`,attr:{d:`M15 9l3 -3l3 3`}},{tag:`path`,attr:{d:`M18 6l0 12`}}]})(e)}function Hie(e){return W({attr:{viewBox:`0 0 24 24`,strokeWidth:`2`,stroke:`currentColor`,fill:`none`,strokeLinecap:`round`,strokeLinejoin:`round`},child:[{tag:`path`,attr:{stroke:`none`,d:`M0 0h24v24H0z`,fill:`none`}},{tag:`path`,attr:{d:`M4 6l9 0`}},{tag:`path`,attr:{d:`M4 12l7 0`}},{tag:`path`,attr:{d:`M4 18l7 0`}},{tag:`path`,attr:{d:`M15 15l3 3l3 -3`}},{tag:`path`,attr:{d:`M18 6l0 12`}}]})(e)}function Uie(e){return W({attr:{viewBox:`0 0 24 24`,strokeWidth:`2`,stroke:`currentColor`,fill:`none`,strokeLinecap:`round`,strokeLinejoin:`round`},child:[{tag:`path`,attr:{stroke:`none`,d:`M0 0h24v24H0z`,fill:`none`}},{tag:`path`,attr:{d:`M12 17.75l-6.172 3.245l1.179 -6.873l-5 -4.867l6.9 -1l3.086 -6.253l3.086 6.253l6.9 1l-5 4.867l1.179 6.873z`}}]})(e)}function Wie(e){return W({attr:{viewBox:`0 0 24 24`,strokeWidth:`2`,stroke:`currentColor`,fill:`none`,strokeLinecap:`round`,strokeLinejoin:`round`},child:[{tag:`path`,attr:{stroke:`none`,d:`M0 0h24v24H0z`,fill:`none`}},{tag:`path`,attr:{d:`M12 12m-4 0a4 4 0 1 0 8 0a4 4 0 1 0 -8 0`}},{tag:`path`,attr:{d:`M3 12h1m8 -9v1m8 8h1m-9 8v1m-6.4 -15.4l.7 .7m12.1 -.7l-.7 .7m0 11.4l.7 .7m-12.1 -.7l-.7 .7`}}]})(e)}function Gie(e){return W({attr:{viewBox:`0 0 24 24`,strokeWidth:`2`,stroke:`currentColor`,fill:`none`,strokeLinecap:`round`,strokeLinejoin:`round`},child:[{tag:`path`,attr:{stroke:`none`,d:`M0 0h24v24H0z`,fill:`none`}},{tag:`path`,attr:{d:`M3 5a2 2 0 0 1 2 -2h14a2 2 0 0 1 2 2v14a2 2 0 0 1 -2 2h-14a2 2 0 0 1 -2 -2v-14z`}},{tag:`path`,attr:{d:`M3 10h18`}},{tag:`path`,attr:{d:`M10 3v18`}}]})(e)}function Kie(e){return W({attr:{viewBox:`0 0 24 24`,strokeWidth:`2`,stroke:`currentColor`,fill:`none`,strokeLinecap:`round`,strokeLinejoin:`round`},child:[{tag:`path`,attr:{stroke:`none`,d:`M0 0h24v24H0z`,fill:`none`}},{tag:`path`,attr:{d:`M12 12m-1 0a1 1 0 1 0 2 0a1 1 0 1 0 -2 0`}},{tag:`path`,attr:{d:`M12 12m-5 0a5 5 0 1 0 10 0a5 5 0 1 0 -10 0`}},{tag:`path`,attr:{d:`M12 12m-9 0a9 9 0 1 0 18 0a9 9 0 1 0 -18 0`}}]})(e)}function qie(e){return W({attr:{viewBox:`0 0 24 24`,strokeWidth:`2`,stroke:`currentColor`,fill:`none`,strokeLinecap:`round`,strokeLinejoin:`round`},child:[{tag:`path`,attr:{stroke:`none`,d:`M0 0h24v24H0z`,fill:`none`}},{tag:`path`,attr:{d:`M4 7l16 0`}},{tag:`path`,attr:{d:`M10 11l0 6`}},{tag:`path`,attr:{d:`M14 11l0 6`}},{tag:`path`,attr:{d:`M5 7l1 12a2 2 0 0 0 2 2h8a2 2 0 0 0 2 -2l1 -12`}},{tag:`path`,attr:{d:`M9 7v-3a1 1 0 0 1 1 -1h4a1 1 0 0 1 1 1v3`}}]})(e)}function Jie(e){return W({attr:{viewBox:`0 0 24 24`,strokeWidth:`2`,stroke:`currentColor`,fill:`none`,strokeLinecap:`round`,strokeLinejoin:`round`},child:[{tag:`path`,attr:{stroke:`none`,d:`M0 0h24v24H0z`,fill:`none`}},{tag:`path`,attr:{d:`M4 17v2a2 2 0 0 0 2 2h12a2 2 0 0 0 2 -2v-2`}},{tag:`path`,attr:{d:`M7 9l5 -5l5 5`}},{tag:`path`,attr:{d:`M12 4l0 12`}}]})(e)}function Yie(e){return W({attr:{viewBox:`0 0 24 24`,strokeWidth:`2`,stroke:`currentColor`,fill:`none`,strokeLinecap:`round`,strokeLinejoin:`round`},child:[{tag:`path`,attr:{stroke:`none`,d:`M0 0h24v24H0z`,fill:`none`}},{tag:`path`,attr:{d:`M8 7a4 4 0 1 0 8 0a4 4 0 0 0 -8 0`}},{tag:`path`,attr:{d:`M6 21v-2a4 4 0 0 1 4 -4h4a4 4 0 0 1 4 4v2`}}]})(e)}function Xie(e){return W({attr:{viewBox:`0 0 24 24`,strokeWidth:`2`,stroke:`currentColor`,fill:`none`,strokeLinecap:`round`,strokeLinejoin:`round`},child:[{tag:`path`,attr:{stroke:`none`,d:`M0 0h24v24H0z`,fill:`none`}},{tag:`path`,attr:{d:`M9 7m-4 0a4 4 0 1 0 8 0a4 4 0 1 0 -8 0`}},{tag:`path`,attr:{d:`M3 21v-2a4 4 0 0 1 4 -4h4a4 4 0 0 1 4 4v2`}},{tag:`path`,attr:{d:`M16 3.13a4 4 0 0 1 0 7.75`}},{tag:`path`,attr:{d:`M21 21v-2a4 4 0 0 0 -3 -3.85`}}]})(e)}function Zie(e){return W({attr:{viewBox:`0 0 24 24`,strokeWidth:`2`,stroke:`currentColor`,fill:`none`,strokeLinecap:`round`,strokeLinejoin:`round`},child:[{tag:`path`,attr:{stroke:`none`,d:`M0 0h24v24H0z`,fill:`none`}},{tag:`path`,attr:{d:`M18 6l-12 12`}},{tag:`path`,attr:{d:`M6 6l12 12`}}]})(e)}function Qie(e){return W({attr:{viewBox:`0 0 16 16`,fill:`currentColor`},child:[{tag:`path`,attr:{d:`M9 9H4v1h5V9z`}},{tag:`path`,attr:{fillRule:`evenodd`,clipRule:`evenodd`,d:`M5 3l1-1h7l1 1v7l-1 1h-2v2l-1 1H3l-1-1V6l1-1h2V3zm1 2h4l1 1v4h2V3H6v2zm4 1H3v7h7V6z`}}]})(e)}function $ie(e){return W({attr:{viewBox:`0 0 16 16`,fill:`currentColor`},child:[{tag:`path`,attr:{d:`M9 9H4v1h5V9z`}},{tag:`path`,attr:{d:`M7 12V7H6v5h1z`}},{tag:`path`,attr:{fillRule:`evenodd`,clipRule:`evenodd`,d:`M5 3l1-1h7l1 1v7l-1 1h-2v2l-1 1H3l-1-1V6l1-1h2V3zm1 2h4l1 1v4h2V3H6v2zm4 1H3v7h7V6z`}}]})(e)}function eae(e){return W({attr:{viewBox:`0 0 1024 1024`},child:[{tag:`path`,attr:{d:`M328 544h368c4.4 0 8-3.6 8-8v-48c0-4.4-3.6-8-8-8H328c-4.4 0-8 3.6-8 8v48c0 4.4 3.6 8 8 8z`}},{tag:`path`,attr:{d:`M880 112H144c-17.7 0-32 14.3-32 32v736c0 17.7 14.3 32 32 32h736c17.7 0 32-14.3 32-32V144c0-17.7-14.3-32-32-32zm-40 728H184V184h656v656z`}}]})(e)}function tae(e){return W({attr:{viewBox:`0 0 1024 1024`},child:[{tag:`path`,attr:{d:`M328 544h152v152c0 4.4 3.6 8 8 8h48c4.4 0 8-3.6 8-8V544h152c4.4 0 8-3.6 8-8v-48c0-4.4-3.6-8-8-8H544V328c0-4.4-3.6-8-8-8h-48c-4.4 0-8 3.6-8 8v152H328c-4.4 0-8 3.6-8 8v48c0 4.4 3.6 8 8 8z`}},{tag:`path`,attr:{d:`M880 112H144c-17.7 0-32 14.3-32 32v736c0 17.7 14.3 32 32 32h736c17.7 0 32-14.3 32-32V144c0-17.7-14.3-32-32-32zm-40 728H184V184h656v656z`}}]})(e)}var nae=`data:image/svg+xml,%3csvg%20width='1em'%20height='1em'%20viewBox='0%200%2024%2024'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M18%204H6C4.89543%204%204%204.89543%204%206V18C4%2019.1046%204.89543%2020%206%2020H18C19.1046%2020%2020%2019.1046%2020%2018V6C20%204.89543%2019.1046%204%2018%204Z'%20stroke='currentColor'%20stroke-width='2'%20stroke-linecap='round'%20stroke-linejoin='round'/%3e%3c/svg%3e`,rae=`data:image/svg+xml,%3csvg%20width='1em'%20height='1em'%20viewBox='0%200%2024%2024'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M4%2012H20M12%204V12M18%2020H6C4.89543%2020%204%2019.1046%204%2018V6C4%204.8954%204.89543%204%206%204H18C19.1046%204%2020%204.8954%2020%206V18C20%2019.1046%2019.1046%2020%2018%2020Z'%20stroke='currentColor'%20stroke-width='2'%20stroke-linecap='round'%20stroke-linejoin='round'/%3e%3c/svg%3e`,iae=`data:image/svg+xml,%3csvg%20width='1em'%20height='1em'%20viewBox='0%200%2024%2024'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M4%2012H20M12%2020V12M18%204H6C4.89543%204%204%204.89543%204%206V18C4%2019.1046%204.89543%2020%206%2020H18C19.1046%2020%2020%2019.1046%2020%2018V6C20%204.89543%2019.1046%204%2018%204Z'%20stroke='currentColor'%20stroke-width='2'%20stroke-linecap='round'%20stroke-linejoin='round'/%3e%3c/svg%3e`,aae=`data:image/svg+xml,%3csvg%20fill='none'%20height='1em'%20viewBox='0%200%2024%2024'%20width='1em'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='m12%2020v-16m-8%208h8m8-6v12c0%201.1046-.8954%202-2%202h-12c-1.1046%200-2-.8954-2-2v-12c0-1.1046.8954-2%202-2h12c1.1046%200%202%20.8954%202%202z'%20stroke='currentColor'%20stroke-linecap='round'%20stroke-linejoin='round'%20stroke-width='2'/%3e%3c/svg%3e`,oae=`data:image/svg+xml,%3csvg%20width='1em'%20height='1em'%20viewBox='0%200%2024%2024'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M12%204L12%2020M20%2012H12M4%2018L4%206C4%204.89543%204.89543%204%206%204L18%204C19.1046%204%2020%204.89543%2020%206V18C20%2019.1046%2019.1046%2020%2018%2020H6C4.89543%2020%204%2019.1046%204%2018Z'%20stroke='currentColor'%20stroke-width='2'%20stroke-linecap='round'%20stroke-linejoin='round'/%3e%3c/svg%3e`,sae=`data:image/svg+xml,%3csvg%20width='1em'%20height='1em'%20viewBox='0%200%2024%2024'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M6%204C4.89543%204%204%204.89543%204%206V18C4%2019.1046%204.89543%2020%206%2020H18C19.1046%2020%2020%2019.1046%2020%2018V6C20%204.89543%2019.1046%204%2018%204M6%204H18M6%204H12M18%204H12M4%2012H20M12%204V20'%20stroke='currentColor'%20stroke-width='2'%20stroke-linecap='round'%20stroke-linejoin='round'/%3e%3c/svg%3e`,cae=({icon:e})=>{switch(e){case`add`:case`plus`:return(0,U.jsx)(kie,{});case`add above`:return(0,U.jsx)(Fie,{});case`add below`:return(0,U.jsx)(Pie,{});case`arrow down`:case`down`:return(0,U.jsx)(are,{});case`arrow left`:case`left`:return(0,U.jsx)(ore,{});case`arrow right`:case`right`:return(0,U.jsx)(sre,{});case`arrow up`:case`up`:return(0,U.jsx)(cre,{});case`bold`:return(0,U.jsx)(hre,{});case`book`:case`library`:return(0,U.jsx)(_re,{});case`camera`:return(0,U.jsx)(yre,{});case`close`:case`clear`:case`times`:return(0,U.jsx)(Zie,{});case`chart`:case`chart line`:return(0,U.jsx)(xre,{});case`chart bar`:return(0,U.jsx)(bre,{});case`chart pie`:return(0,U.jsx)(Sre,{});case`chat`:return(0,U.jsx)(gie,{});case`check`:case`checkmark`:return(0,U.jsx)(Cre,{});case`chevron up`:return(0,U.jsx)(Dre,{});case`chevron down`:return(0,U.jsx)(wre,{});case`chevron left`:return(0,U.jsx)(Tre,{});case`chevron right`:return(0,U.jsx)(Ere,{});case`chevron double left`:return(0,U.jsx)(Ore,{});case`chevron double right`:return(0,U.jsx)(kre,{});case`clock`:return(0,U.jsx)(Pre,{});case`clone`:case`copy`:case`duplicate`:return(0,U.jsx)(Ire,{});case`code`:return(0,U.jsx)(Fre,{});case`collapse`:return(0,U.jsx)(eae,{});case`collapse all`:return(0,U.jsx)(Qie,{});case`company`:return(0,U.jsx)(vre,{});case`compare`:return(0,U.jsx)(Lie,{});case`delete`:case`trash`:return(0,U.jsx)(qie,{});case`depth`:return(0,U.jsx)(Iie,{style:{transform:`rotate(-90deg)`}});case`download`:case`export`:return(0,U.jsx)(Vre,{});case`drag`:return(0,U.jsx)(tie,{});case`edit`:case`pencil`:case`rename`:return(0,U.jsx)(xie,{});case`electricity`:return(0,U.jsx)(gre,{});case`error`:return(0,U.jsx)(jre,{});case`exclamation`:return(0,U.jsx)(Ure,{});case`expand`:return(0,U.jsx)(tae,{});case`expand all`:return(0,U.jsx)($ie,{});case`external`:return(0,U.jsx)(Wre,{});case`fast forward`:return(0,U.jsx)(Die,{});case`fast backward`:return(0,U.jsx)(Oie,{});case`file`:return(0,U.jsx)(qre,{});case`filter`:return(0,U.jsx)(Yre,{});case`focus`:return(0,U.jsx)(Xre,{});case`folder`:return(0,U.jsx)(Qre,{});case`folder search`:return(0,U.jsx)(Zre,{});case`fork`:return(0,U.jsx)(eie,{});case`gauge`:return(0,U.jsx)($re,{});case`help`:return(0,U.jsx)(nie,{});case`hide`:return(0,U.jsx)(Gre,{});case`indent`:return(0,U.jsx)(Lre,{});case`info`:return(0,U.jsx)(rie,{});case`italic`:return(0,U.jsx)(iie,{});case`key`:return(0,U.jsx)(aie,{});case`laptop`:return(0,U.jsx)(zre,{});case`layout columns`:case`columns`:return(0,U.jsx)(oie,{});case`layout grid`:case`grid`:return(0,U.jsx)(ta,{src:sae});case`layout rows`:case`rows`:return(0,U.jsx)(sie,{});case`layout single`:case`square`:return(0,U.jsx)(ta,{src:nae});case`layout 3 split top`:return(0,U.jsx)(ta,{src:rae});case`layout 3 split bottom`:return(0,U.jsx)(ta,{src:iae});case`layout 3 split left`:return(0,U.jsx)(ta,{src:aae});case`layout 3 split right`:return(0,U.jsx)(ta,{src:oae});case`link`:return(0,U.jsx)(lie,{});case`list`:case`legend`:case`ul`:return(0,U.jsx)(die,{});case`list numbers`:case`ol`:return(0,U.jsx)(uie,{});case`location`:return(0,U.jsx)(hie,{});case`lock`:return(0,U.jsx)(mie,{});case`maximize`:return(0,U.jsx)(ure,{});case`menu`:return(0,U.jsx)(Bre,{});case`minimize`:return(0,U.jsx)(dre,{});case`minus`:return(0,U.jsx)(_ie,{});case`moon`:return(0,U.jsx)(vie,{});case`move`:return(0,U.jsx)(fre,{});case`note`:return(0,U.jsx)(bie,{});case`notification`:case`bell`:return(0,U.jsx)(mre,{});case`paste`:return(0,U.jsx)(Nre,{});case`pause`:return(0,U.jsx)(Sie,{});case`play`:return(0,U.jsx)(Cie,{});case`question`:return(0,U.jsx)(Aie,{});case`redo`:case`rotate`:case`rotate right`:return(0,U.jsx)(Mie,{});case`refresh`:case`sync`:return(0,U.jsx)(jie,{});case`save`:return(0,U.jsx)(Rre,{});case`scale`:return(0,U.jsx)(lre,{});case`search`:return(0,U.jsx)(Rie,{});case`server`:return(0,U.jsx)(zie,{});case`settings`:return(0,U.jsx)(Bie,{});case`show`:case`eye`:return(0,U.jsx)(Kre,{});case`sort`:case`sort descending`:case`sort down`:case`sort amount down`:return(0,U.jsx)(Hie,{});case`sort ascending`:case`sort up`:case`sort amount up`:return(0,U.jsx)(Vie,{});case`spinner`:return(0,U.jsx)(fie,{});case`split`:return(0,U.jsx)(pre,{});case`star`:return(0,U.jsx)(Uie,{});case`step backward`:return(0,U.jsx)(wie,{});case`step forward`:return(0,U.jsx)(Tie,{});case`stop`:return(0,U.jsx)(Eie,{});case`success`:return(0,U.jsx)(Are,{});case`sun`:return(0,U.jsx)(Wie,{});case`table`:return(0,U.jsx)(Gie,{});case`target`:return(0,U.jsx)(Kie,{});case`undo`:case`rotate left`:return(0,U.jsx)(Nie,{});case`unfilter`:return(0,U.jsx)(Jre,{});case`unlink`:return(0,U.jsx)(cie,{});case`unlock`:return(0,U.jsx)(pie,{});case`upload`:case`import`:return(0,U.jsx)(Jie,{});case`user`:return(0,U.jsx)(Yie,{});case`users`:case`group`:return(0,U.jsx)(Xie,{});case`video`:return(0,U.jsx)(yie,{});case`warning`:case`alert`:return(0,U.jsx)(ire,{});case`water`:case`droplet`:return(0,U.jsx)(Hre,{});case``:return null;default:return(0,U.jsx)(Mre,{})}},ca=({icon:e,onClick:t,clickable:n=!1,color:r,size:i,testId:a})=>{let o=(0,H.useContext)(na),s={color:r,fill:r,fontSize:i||`inherit`,width:i||`auto`,height:i||`auto`};return(0,U.jsx)(`div`,{className:Oi(ra.wrapper,(n||t)&&!o?ra.clickable:``),style:s,onClick:e=>t&&!o?t(e):void 0,"data-testid":a,children:(0,H.isValidElement)(e)?e:typeof e==`string`&&(e.includes(`.svg`)||e.includes(`image/svg`))?(0,U.jsx)(ta,{className:ra.customSvg,beforeInjection:e=>{i&&(e.setAttribute(`width`,String(i)),e.setAttribute(`height`,String(i)))},src:e}):typeof e==`string`&&(e.includes(`.png`)||e.includes(`image/png`))?(0,U.jsx)(`img`,{alt:`icon`,className:ra.customPng,src:e}):typeof e==`string`?(0,U.jsx)(cae,{icon:e}):null})},la={checkbox:`_checkbox_oo4mp_1`,noLabel:`_noLabel_oo4mp_17`,small:`_small_oo4mp_20`,checkmark:`_checkmark_oo4mp_43`,disabled:`_disabled_oo4mp_82`,noMargin:`_noMargin_oo4mp_96`,isInTable:`_isInTable_oo4mp_99`,helpIconEnabled:`_helpIconEnabled_oo4mp_102`},ua=function(){if(typeof Map<`u`)return Map;function e(e,t){var n=-1;return e.some(function(e,r){return e[0]===t?(n=r,!0):!1}),n}return function(){function t(){this.__entries__=[]}return Object.defineProperty(t.prototype,`size`,{get:function(){return this.__entries__.length},enumerable:!0,configurable:!0}),t.prototype.get=function(t){var n=e(this.__entries__,t),r=this.__entries__[n];return r&&r[1]},t.prototype.set=function(t,n){var r=e(this.__entries__,t);~r?this.__entries__[r][1]=n:this.__entries__.push([t,n])},t.prototype.delete=function(t){var n=this.__entries__,r=e(n,t);~r&&n.splice(r,1)},t.prototype.has=function(t){return!!~e(this.__entries__,t)},t.prototype.clear=function(){this.__entries__.splice(0)},t.prototype.forEach=function(e,t){t===void 0&&(t=null);for(var n=0,r=this.__entries__;n<r.length;n++){var i=r[n];e.call(t,i[1],i[0])}},t}()}(),da=typeof window<`u`&&typeof document<`u`&&window.document===document,fa=function(){return typeof global<`u`&&global.Math===Math?global:typeof self<`u`&&self.Math===Math?self:typeof window<`u`&&window.Math===Math?window:Function(`return this`)()}(),lae=function(){return typeof requestAnimationFrame==`function`?requestAnimationFrame.bind(fa):function(e){return setTimeout(function(){return e(Date.now())},1e3/60)}}(),uae=2;function dae(e,t){var n=!1,r=!1,i=0;function a(){n&&(n=!1,e()),r&&s()}function o(){lae(a)}function s(){var e=Date.now();if(n){if(e-i<uae)return;r=!0}else n=!0,r=!1,setTimeout(o,t);i=e}return s}var fae=20,pae=[`top`,`right`,`bottom`,`left`,`width`,`height`,`size`,`weight`],mae=typeof MutationObserver<`u`,hae=function(){function e(){this.connected_=!1,this.mutationEventsAdded_=!1,this.mutationsObserver_=null,this.observers_=[],this.onTransitionEnd_=this.onTransitionEnd_.bind(this),this.refresh=dae(this.refresh.bind(this),fae)}return e.prototype.addObserver=function(e){~this.observers_.indexOf(e)||this.observers_.push(e),this.connected_||this.connect_()},e.prototype.removeObserver=function(e){var t=this.observers_,n=t.indexOf(e);~n&&t.splice(n,1),!t.length&&this.connected_&&this.disconnect_()},e.prototype.refresh=function(){this.updateObservers_()&&this.refresh()},e.prototype.updateObservers_=function(){var e=this.observers_.filter(function(e){return e.gatherActive(),e.hasActive()});return e.forEach(function(e){return e.broadcastActive()}),e.length>0},e.prototype.connect_=function(){!da||this.connected_||(document.addEventListener(`transitionend`,this.onTransitionEnd_),window.addEventListener(`resize`,this.refresh),mae?(this.mutationsObserver_=new MutationObserver(this.refresh),this.mutationsObserver_.observe(document,{attributes:!0,childList:!0,characterData:!0,subtree:!0})):(document.addEventListener(`DOMSubtreeModified`,this.refresh),this.mutationEventsAdded_=!0),this.connected_=!0)},e.prototype.disconnect_=function(){!da||!this.connected_||(document.removeEventListener(`transitionend`,this.onTransitionEnd_),window.removeEventListener(`resize`,this.refresh),this.mutationsObserver_&&this.mutationsObserver_.disconnect(),this.mutationEventsAdded_&&document.removeEventListener(`DOMSubtreeModified`,this.refresh),this.mutationsObserver_=null,this.mutationEventsAdded_=!1,this.connected_=!1)},e.prototype.onTransitionEnd_=function(e){var t=e.propertyName,n=t===void 0?``:t;pae.some(function(e){return!!~n.indexOf(e)})&&this.refresh()},e.getInstance=function(){return this.instance_||=new e,this.instance_},e.instance_=null,e}(),pa=function(e,t){for(var n=0,r=Object.keys(t);n<r.length;n++){var i=r[n];Object.defineProperty(e,i,{value:t[i],enumerable:!1,writable:!1,configurable:!0})}return e},ma=function(e){return e&&e.ownerDocument&&e.ownerDocument.defaultView||fa},ha=va(0,0,0,0);function ga(e){return parseFloat(e)||0}function _a(e){return[...arguments].slice(1).reduce(function(t,n){var r=e[`border-`+n+`-width`];return t+ga(r)},0)}function gae(e){for(var t=[`top`,`right`,`bottom`,`left`],n={},r=0,i=t;r<i.length;r++){var a=i[r],o=e[`padding-`+a];n[a]=ga(o)}return n}function _ae(e){var t=e.getBBox();return va(0,0,t.width,t.height)}function vae(e){var t=e.clientWidth,n=e.clientHeight;if(!t&&!n)return ha;var r=ma(e).getComputedStyle(e),i=gae(r),a=i.left+i.right,o=i.top+i.bottom,s=ga(r.width),c=ga(r.height);if(r.boxSizing===`border-box`&&(Math.round(s+a)!==t&&(s-=_a(r,`left`,`right`)+a),Math.round(c+o)!==n&&(c-=_a(r,`top`,`bottom`)+o)),!bae(e)){var l=Math.round(s+a)-t,u=Math.round(c+o)-n;Math.abs(l)!==1&&(s-=l),Math.abs(u)!==1&&(c-=u)}return va(i.left,i.top,s,c)}var yae=function(){return typeof SVGGraphicsElement<`u`?function(e){return e instanceof ma(e).SVGGraphicsElement}:function(e){return e instanceof ma(e).SVGElement&&typeof e.getBBox==`function`}}();function bae(e){return e===ma(e).document.documentElement}function xae(e){return da?yae(e)?_ae(e):vae(e):ha}function Sae(e){var t=e.x,n=e.y,r=e.width,i=e.height,a=typeof DOMRectReadOnly<`u`?DOMRectReadOnly:Object,o=Object.create(a.prototype);return pa(o,{x:t,y:n,width:r,height:i,top:n,right:t+r,bottom:i+n,left:t}),o}function va(e,t,n,r){return{x:e,y:t,width:n,height:r}}var Cae=function(){function e(e){this.broadcastWidth=0,this.broadcastHeight=0,this.contentRect_=va(0,0,0,0),this.target=e}return e.prototype.isActive=function(){var e=xae(this.target);return this.contentRect_=e,e.width!==this.broadcastWidth||e.height!==this.broadcastHeight},e.prototype.broadcastRect=function(){var e=this.contentRect_;return this.broadcastWidth=e.width,this.broadcastHeight=e.height,e},e}(),wae=function(){function e(e,t){var n=Sae(t);pa(this,{target:e,contentRect:n})}return e}(),Tae=function(){function e(e,t,n){if(this.activeObservations_=[],this.observations_=new ua,typeof e!=`function`)throw TypeError(`The callback provided as parameter 1 is not a function.`);this.callback_=e,this.controller_=t,this.callbackCtx_=n}return e.prototype.observe=function(e){if(!arguments.length)throw TypeError(`1 argument required, but only 0 present.`);if(!(typeof Element>`u`||!(Element instanceof Object))){if(!(e instanceof ma(e).Element))throw TypeError(`parameter 1 is not of type "Element".`);var t=this.observations_;t.has(e)||(t.set(e,new Cae(e)),this.controller_.addObserver(this),this.controller_.refresh())}},e.prototype.unobserve=function(e){if(!arguments.length)throw TypeError(`1 argument required, but only 0 present.`);if(!(typeof Element>`u`||!(Element instanceof Object))){if(!(e instanceof ma(e).Element))throw TypeError(`parameter 1 is not of type "Element".`);var t=this.observations_;t.has(e)&&(t.delete(e),t.size||this.controller_.removeObserver(this))}},e.prototype.disconnect=function(){this.clearActive(),this.observations_.clear(),this.controller_.removeObserver(this)},e.prototype.gatherActive=function(){var e=this;this.clearActive(),this.observations_.forEach(function(t){t.isActive()&&e.activeObservations_.push(t)})},e.prototype.broadcastActive=function(){if(this.hasActive()){var e=this.callbackCtx_,t=this.activeObservations_.map(function(e){return new wae(e.target,e.broadcastRect())});this.callback_.call(e,t,e),this.clearActive()}},e.prototype.clearActive=function(){this.activeObservations_.splice(0)},e.prototype.hasActive=function(){return this.activeObservations_.length>0},e}(),ya=typeof WeakMap<`u`?new WeakMap:new ua,ba=function(){function e(t){if(!(this instanceof e))throw TypeError(`Cannot call a class as a function.`);if(!arguments.length)throw TypeError(`1 argument required, but only 0 present.`);var n=new Tae(t,hae.getInstance(),this);ya.set(this,n)}return e}();[`observe`,`unobserve`,`disconnect`].forEach(function(e){ba.prototype[e]=function(){var t;return(t=ya.get(this))[e].apply(t,arguments)}});var xa=function(){return fa.ResizeObserver===void 0?ba:fa.ResizeObserver}(),Eae=!0;function Dae(e,t){if(!Eae){if(e)return;var n=`Warning: `+t;typeof console<`u`&&console.warn(n);try{throw Error(n)}catch{}}}function Oae(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,`value`in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function Sa(e,t,n){return t&&Oae(e.prototype,t),e}function Ca(){return Ca=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Ca.apply(this,arguments)}function kae(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,wa(e,t)}function wa(e,t){return wa=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},wa(e,t)}function Aae(e,t){if(e==null)return{};var n={},r=Object.keys(e),i,a;for(a=0;a<r.length;a++)i=r[a],!(t.indexOf(i)>=0)&&(n[i]=e[i]);return n}function jae(e,t){if(e){if(typeof e==`string`)return Ta(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n===`Object`&&e.constructor&&(n=e.constructor.name),n===`Map`||n===`Set`)return Array.from(e);if(n===`Arguments`||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return Ta(e,t)}}function Ta(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function Ea(e,t){var n=typeof Symbol<`u`&&e[Symbol.iterator]||e[`@@iterator`];if(n)return(n=n.call(e)).next.bind(n);if(Array.isArray(e)||(n=jae(e))||t){n&&(e=n);var r=0;return function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}}}throw TypeError(`Invalid attempt to iterate non-iterable instance.
3
3
  In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Da(e){var t=(0,H.useRef)(null);function n(n){!n||n===t.current||(t.current=n,e(n))}return n}function Mae(e){var t=(0,H.useRef)(e);return(0,H.useMemo)(function(){function e(e){typeof e==`function`?t.current=e(t.current):t.current=e}function n(){return t.current}return[n,e]},[])}function Nae(){var e=(0,H.useRef)([]);return(0,H.useMemo)(function(){function t(){return e.current.length>0}function n(){for(var t=Ea(e.current),n;!(n=t()).done;){var r=n.value;r()}e.current=[]}function r(t){e.current.push(t)}return{hasEventSubscriptions:t,removeAllEventSubscriptions:n,addEventSubscription:r}},[])}var Oa=typeof window<`u`?H.useLayoutEffect:H.useEffect;function Pae(e,t){var n=(0,H.useRef)(e);return t?(n.current=e,n):(n.current=null,n)}var ka={top:0,left:0,right:1,bottom:1,width:1,height:1};function Fae(e){var t={},n=t.enabled,r=n===void 0?!0:n,i=t.preventDefault,a=i===void 0?!0:i,o=(0,H.useRef)(null),s=(0,H.useState)(ka),c=s[0],l=s[1];function u(){l(ka)}var d=c!==ka;function f(e){if(r){a&&e.preventDefault();var t=e.clientX,n=e.clientY;l({top:n,left:t,width:1,height:1,right:t+1,bottom:n+1})}}return{hasMousePosition:d,resetMousePosition:u,handleMouseEvent:f,trigger:{getBounds:function(){return c},getParent:o.current?function(){return o.current}:void 0},parentRef:o}}function Aa(e){return parseFloat(e.replace(`px`,``))}function ja(e,t,n){return e<t?t:e>n?n:e}function Ma(e){return e!=null}function Na(){var e=[...arguments];return function(t){for(var n=Ea(e),r;!(r=n()).done;){var i=r.value;i&&(typeof i==`function`?i(t):i.current=t)}}}function Iae(e,t){if(e!==void 0)return t||e.ResizeObserver}function Pa(e,t){var n=[];if(!e||!t||e===document.body)return n;var r=t.getComputedStyle(e);return[r.overflow,r.overflowX,r.overflowY].some(function(e){return[`auto`,`scroll`].includes(e)})&&n.push(e),[].concat(n,Pa(e.parentElement,t))}function Fa(e){return`react-laag: Could not find a valid reference for the `+e+` element. There might be 2 causes:
4
4
  - Make sure that the 'ref' is set correctly on the `+e+` element when isOpen: true. Also make sure your component forwards the ref with "forwardRef()".
@@ -1252,7 +1252,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
1252
1252
  `)+`
1253
1253
  `}function l(e,t,n,r,i,a,o){return c(s(e,t,n,r,i,a,o))}function u(e,t,n,r,i,a){return l(e,e,t,n,r,i,a)}return C9}var E9={},D9;function rHe(){if(D9)return E9;D9=1,Object.defineProperty(E9,`__esModule`,{value:!0}),E9.arrayEqual=e,E9.arrayStartsWith=t;function e(e,n){return e.length===n.length?t(e,n):!1}function t(e,t){if(t.length>e.length)return!1;for(var n=0;n<t.length;n++)if(t[n]!==e[n])return!1;return!0}return E9}var O9;function iHe(){if(O9)return S9;O9=1,Object.defineProperty(S9,`__esModule`,{value:!0}),S9.calcLineCount=l,S9.merge=u;var e=T9(),t=v9(),n=rHe();function r(e){return s(e)||o(e)||a(e)||i()}function i(){throw TypeError(`Invalid attempt to spread non-iterable instance.
1254
1254
  In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function a(e,t){if(e){if(typeof e==`string`)return c(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n===`Object`&&e.constructor&&(n=e.constructor.name),n===`Map`||n===`Set`)return Array.from(e);if(n===`Arguments`||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return c(e,t)}}function o(e){if(typeof Symbol<`u`&&Symbol.iterator in Object(e))return Array.from(e)}function s(e){if(Array.isArray(e))return c(e)}function c(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function l(e){var t=E(e.lines),n=t.oldLines,r=t.newLines;n===void 0?delete e.oldLines:e.oldLines=n,r===void 0?delete e.newLines:e.newLines=r}function u(e,t,n){e=d(e,n),t=d(t,n);var r={};(e.index||t.index)&&(r.index=e.index||t.index),(e.newFileName||t.newFileName)&&(f(e)?f(t)?(r.oldFileName=p(r,e.oldFileName,t.oldFileName),r.newFileName=p(r,e.newFileName,t.newFileName),r.oldHeader=p(r,e.oldHeader,t.oldHeader),r.newHeader=p(r,e.newHeader,t.newHeader)):(r.oldFileName=e.oldFileName,r.newFileName=e.newFileName,r.oldHeader=e.oldHeader,r.newHeader=e.newHeader):(r.oldFileName=t.oldFileName||e.oldFileName,r.newFileName=t.newFileName||e.newFileName,r.oldHeader=t.oldHeader||e.oldHeader,r.newHeader=t.newHeader||e.newHeader)),r.hunks=[];for(var i=0,a=0,o=0,s=0;i<e.hunks.length||a<t.hunks.length;){var c=e.hunks[i]||{oldStart:1/0},l=t.hunks[a]||{oldStart:1/0};if(m(c,l))r.hunks.push(h(c,o)),i++,s+=c.newLines-c.oldLines;else if(m(l,c))r.hunks.push(h(l,s)),a++,o+=l.newLines-l.oldLines;else{var u={oldStart:Math.min(c.oldStart,l.oldStart),oldLines:0,newStart:Math.min(c.newStart+o,l.oldStart+s),newLines:0,lines:[]};g(u,c.oldStart,c.lines,l.oldStart,l.lines),a++,i++,r.hunks.push(u)}}return r}function d(n,r){if(typeof n==`string`){if(/^@@/m.test(n)||/^Index:/m.test(n))return(0,t.parsePatch)(n)[0];if(!r)throw Error(`Must provide a base reference or pass in a patch`);return(0,e.structuredPatch)(void 0,void 0,r,n)}return n}function f(e){return e.newFileName&&e.newFileName!==e.oldFileName}function p(e,t,n){return t===n?t:(e.conflict=!0,{mine:t,theirs:n})}function m(e,t){return e.oldStart<t.oldStart&&e.oldStart+e.oldLines<t.oldStart}function h(e,t){return{oldStart:e.oldStart,oldLines:e.oldLines,newStart:e.newStart+t,newLines:e.newLines,lines:e.lines}}function g(e,t,n,i,a){var o={offset:t,lines:n,index:0},s={offset:i,lines:a,index:0};for(b(e,o,s),b(e,s,o);o.index<o.lines.length&&s.index<s.lines.length;){var c=o.lines[o.index],u=s.lines[s.index];if((c[0]===`-`||c[0]===`+`)&&(u[0]===`-`||u[0]===`+`))_(e,o,s);else if(c[0]===`+`&&u[0]===` `){var d;(d=e.lines).push.apply(d,r(S(o)))}else if(u[0]===`+`&&c[0]===` `){var f;(f=e.lines).push.apply(f,r(S(s)))}else c[0]===`-`&&u[0]===` `?v(e,o,s):u[0]===`-`&&c[0]===` `?v(e,s,o,!0):c===u?(e.lines.push(c),o.index++,s.index++):y(e,S(o),S(s))}x(e,o),x(e,s),l(e)}function _(e,t,i){var a=S(t),o=S(i);if(w(a)&&w(o)){if((0,n.arrayStartsWith)(a,o)&&T(i,a,a.length-o.length)){var s;(s=e.lines).push.apply(s,r(a));return}else if((0,n.arrayStartsWith)(o,a)&&T(t,o,o.length-a.length)){var c;(c=e.lines).push.apply(c,r(o));return}}else if((0,n.arrayEqual)(a,o)){var l;(l=e.lines).push.apply(l,r(a));return}y(e,a,o)}function v(e,t,n,i){var a=S(t),o=C(n,a);if(o.merged){var s;(s=e.lines).push.apply(s,r(o.merged))}else y(e,i?o:a,i?a:o)}function y(e,t,n){e.conflict=!0,e.lines.push({conflict:!0,mine:t,theirs:n})}function b(e,t,n){for(;t.offset<n.offset&&t.index<t.lines.length;){var r=t.lines[t.index++];e.lines.push(r),t.offset++}}function x(e,t){for(;t.index<t.lines.length;){var n=t.lines[t.index++];e.lines.push(n)}}function S(e){for(var t=[],n=e.lines[e.index][0];e.index<e.lines.length;){var r=e.lines[e.index];if(n===`-`&&r[0]===`+`&&(n=`+`),n===r[0])t.push(r),e.index++;else break}return t}function C(e,t){for(var n=[],r=[],i=0,a=!1,o=!1;i<t.length&&e.index<e.lines.length;){var s=e.lines[e.index],c=t[i];if(c[0]===`+`)break;if(a||=s[0]!==` `,r.push(c),i++,s[0]===`+`)for(o=!0;s[0]===`+`;)n.push(s),s=e.lines[++e.index];c.substr(1)===s.substr(1)?(n.push(s),e.index++):o=!0}if((t[i]||``)[0]===`+`&&a&&(o=!0),o)return n;for(;i<t.length;)r.push(t[i++]);return{merged:r,changes:n}}function w(e){return e.reduce(function(e,t){return e&&t[0]===`-`},!0)}function T(e,t,n){for(var r=0;r<n;r++){var i=t[t.length-n+r].substr(1);if(e.lines[e.index+r]!==` `+i)return!1}return e.index+=n,!0}function E(e){var t=0,n=0;return e.forEach(function(e){if(typeof e!=`string`){var r=E(e.mine),i=E(e.theirs);t!==void 0&&(r.oldLines===i.oldLines?t+=r.oldLines:t=void 0),n!==void 0&&(r.newLines===i.newLines?n+=r.newLines:n=void 0)}else n!==void 0&&(e[0]===`+`||e[0]===` `)&&n++,t!==void 0&&(e[0]===`-`||e[0]===` `)&&t++}),{oldLines:t,newLines:n}}return S9}var k9={},A9;function aHe(){if(A9)return k9;A9=1,Object.defineProperty(k9,`__esModule`,{value:!0}),k9.reversePatch=r;function e(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function t(t){for(var r=1;r<arguments.length;r++){var i=arguments[r]==null?{}:arguments[r];r%2?e(Object(i),!0).forEach(function(e){n(t,e,i[e])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(i)):e(Object(i)).forEach(function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(i,e))})}return t}function n(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function r(e){return Array.isArray(e)?e.map(r).reverse():t(t({},e),{},{oldFileName:e.newFileName,oldHeader:e.newHeader,newFileName:e.oldFileName,newHeader:e.oldHeader,hunks:e.hunks.map(function(e){return{oldLines:e.newLines,oldStart:e.newStart,newLines:e.oldLines,newStart:e.oldStart,linedelimiters:e.linedelimiters,lines:e.lines.map(function(e){return e.startsWith(`-`)?`+${e.slice(1)}`:e.startsWith(`+`)?`-${e.slice(1)}`:e})}})})}return k9}var j9={},M9;function oHe(){if(M9)return j9;M9=1,Object.defineProperty(j9,`__esModule`,{value:!0}),j9.convertChangesToDMP=e;function e(e){for(var t=[],n,r,i=0;i<e.length;i++)n=e[i],r=n.added?1:n.removed?-1:0,t.push([r,n.value]);return t}return j9}var N9={},P9;function sHe(){if(P9)return N9;P9=1,Object.defineProperty(N9,`__esModule`,{value:!0}),N9.convertChangesToXML=e;function e(e){for(var n=[],r=0;r<e.length;r++){var i=e[r];i.added?n.push(`<ins>`):i.removed&&n.push(`<del>`),n.push(t(i.value)),i.added?n.push(`</ins>`):i.removed&&n.push(`</del>`)}return n.join(``)}function t(e){var t=e;return t=t.replace(/&/g,`&amp;`),t=t.replace(/</g,`&lt;`),t=t.replace(/>/g,`&gt;`),t=t.replace(/"/g,`&quot;`),t}return N9}var F9;function cHe(){return F9?q7:(F9=1,(function(e){Object.defineProperty(e,`__esModule`,{value:!0}),Object.defineProperty(e,`Diff`,{enumerable:!0,get:function(){return t.default}}),Object.defineProperty(e,`diffChars`,{enumerable:!0,get:function(){return n.diffChars}}),Object.defineProperty(e,`diffWords`,{enumerable:!0,get:function(){return r.diffWords}}),Object.defineProperty(e,`diffWordsWithSpace`,{enumerable:!0,get:function(){return r.diffWordsWithSpace}}),Object.defineProperty(e,`diffLines`,{enumerable:!0,get:function(){return i.diffLines}}),Object.defineProperty(e,`diffTrimmedLines`,{enumerable:!0,get:function(){return i.diffTrimmedLines}}),Object.defineProperty(e,`diffSentences`,{enumerable:!0,get:function(){return a.diffSentences}}),Object.defineProperty(e,`diffCss`,{enumerable:!0,get:function(){return o.diffCss}}),Object.defineProperty(e,`diffJson`,{enumerable:!0,get:function(){return s.diffJson}}),Object.defineProperty(e,`canonicalize`,{enumerable:!0,get:function(){return s.canonicalize}}),Object.defineProperty(e,`diffArrays`,{enumerable:!0,get:function(){return c.diffArrays}}),Object.defineProperty(e,`applyPatch`,{enumerable:!0,get:function(){return l.applyPatch}}),Object.defineProperty(e,`applyPatches`,{enumerable:!0,get:function(){return l.applyPatches}}),Object.defineProperty(e,`parsePatch`,{enumerable:!0,get:function(){return u.parsePatch}}),Object.defineProperty(e,`merge`,{enumerable:!0,get:function(){return d.merge}}),Object.defineProperty(e,`reversePatch`,{enumerable:!0,get:function(){return f.reversePatch}}),Object.defineProperty(e,`structuredPatch`,{enumerable:!0,get:function(){return p.structuredPatch}}),Object.defineProperty(e,`createTwoFilesPatch`,{enumerable:!0,get:function(){return p.createTwoFilesPatch}}),Object.defineProperty(e,`createPatch`,{enumerable:!0,get:function(){return p.createPatch}}),Object.defineProperty(e,`formatPatch`,{enumerable:!0,get:function(){return p.formatPatch}}),Object.defineProperty(e,`convertChangesToDMP`,{enumerable:!0,get:function(){return m.convertChangesToDMP}}),Object.defineProperty(e,`convertChangesToXML`,{enumerable:!0,get:function(){return h.convertChangesToXML}});var t=g(X7()),n=YVe(),r=XVe(),i=o9(),a=ZVe(),o=QVe(),s=$Ve(),c=eHe(),l=nHe(),u=v9(),d=iHe(),f=aHe(),p=T9(),m=oHe(),h=sHe();function g(e){return e&&e.__esModule?e:{default:e}}})(q7),q7)}var I9;function lHe(){if(I9)return K7;I9=1;var e=K7&&K7.__createBinding||(Object.create?function(e,t,n,r){r===void 0&&(r=n);var i=Object.getOwnPropertyDescriptor(t,n);(!i||(`get`in i?!t.__esModule:i.writable||i.configurable))&&(i={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,i)}:function(e,t,n,r){r===void 0&&(r=n),e[r]=t[n]}),t=K7&&K7.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,`default`,{enumerable:!0,value:t})}:function(e,t){e.default=t}),n=K7&&K7.__importStar||function(n){if(n&&n.__esModule)return n;var r={};if(n!=null)for(var i in n)i!==`default`&&Object.prototype.hasOwnProperty.call(n,i)&&e(r,n,i);return t(r,n),r};Object.defineProperty(K7,`__esModule`,{value:!0}),K7.computeLineInformation=K7.DiffMethod=K7.DiffType=void 0;let r=n(cHe()),i=r;var a;(function(e){e[e.DEFAULT=0]=`DEFAULT`,e[e.ADDED=1]=`ADDED`,e[e.REMOVED=2]=`REMOVED`,e[e.CHANGED=3]=`CHANGED`})(a||(K7.DiffType=a={}));var o;(function(e){e.CHARS=`diffChars`,e.WORDS=`diffWords`,e.WORDS_WITH_SPACE=`diffWordsWithSpace`,e.LINES=`diffLines`,e.TRIMMED_LINES=`diffTrimmedLines`,e.SENTENCES=`diffSentences`,e.CSS=`diffCss`,e.JSON=`diffJson`})(o||(K7.DiffMethod=o={}));let s=e=>e===``?[]:e.replace(/\n$/,``).split(`
1255
- `),c=(e,t,n=o.CHARS)=>{let r=i[n](e,t),s={left:[],right:[]};return r.forEach(({added:e,removed:t,value:n})=>{let r={};return e&&(r.type=a.ADDED,r.value=n,s.right.push(r)),t&&(r.type=a.REMOVED,r.value=n,s.left.push(r)),!t&&!e&&(r.type=a.DEFAULT,r.value=n,s.right.push(r),s.left.push(r)),r}),s};return K7.computeLineInformation=(e,t,n=!1,i=o.CHARS,l=0,u=[])=>{let d=[];d=typeof e==`string`&&typeof t==`string`?r.diffLines(e.trimRight(),t.trimRight(),{newlineIsToken:!1,ignoreWhitespace:!1,ignoreCase:!1}):r.diffJson(e,t);let f=l,p=l,m=[],h=0,g=[],_=[],v=(e,t,r,o,l)=>s(e).map((e,m)=>{let y={},b={};if(!(_.includes(`${t}-${m}`)||l&&m!==0)){if(r||o){let r=!0;if(o){p+=1,y.lineNumber=p,y.type=a.REMOVED,y.value=e||` `;let o=d[t+1];if(o&&o.added){let a=s(o.value)[m];if(a){let{value:o,lineNumber:s,type:l}=v(a,t,!0,!1,!0)[0].right;if(_.push(`${t+1}-${m}`),b.lineNumber=s,y.value===o)r=!1,b.type=0,y.type=0,b.value=o;else if(b.type=l,n)b.value=o;else{let t=c(e,o,i);b.value=t.right,y.value=t.left}}}}else f+=1,b.lineNumber=f,b.type=a.ADDED,b.value=e;r&&!l&&(g.includes(h)||g.push(h))}else p+=1,f+=1,y.lineNumber=p,y.type=a.DEFAULT,y.value=e,b.lineNumber=f,b.type=a.DEFAULT,b.value=e;return(u?.includes(`L-${y.lineNumber}`)||u?.includes(`R-${b.lineNumber}`)&&!g.includes(h))&&g.push(h),l||(h+=1),{right:b,left:y}}}).filter(Boolean);return d.forEach(({added:e,removed:t,value:n},r)=>{m=[...m,...v(n,r,e,t)]}),{lineInformation:m,diffLines:g}},K7}var L9={},R9;function uHe(){if(R9)return L9;R9=1;var e=L9&&L9.__rest||function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols==`function`)for(var i=0,r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]]);return n},t=L9&&L9.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(L9,`__esModule`,{value:!0});let n=t(bPe());return L9.default=(t,r=!1,i=``)=>{let{variables:a={}}=t,o=e(t,[`variables`]),s={light:Object.assign({diffViewerBackground:`#fff`,diffViewerColor:`#212529`,addedBackground:`#e6ffed`,addedColor:`#24292e`,removedBackground:`#ffeef0`,removedColor:`#24292e`,changedBackground:`#fffbdd`,wordAddedBackground:`#acf2bd`,wordRemovedBackground:`#fdb8c0`,addedGutterBackground:`#cdffd8`,removedGutterBackground:`#ffdce0`,gutterBackground:`#f7f7f7`,gutterBackgroundDark:`#f3f1f1`,highlightBackground:`#fffbdd`,highlightGutterBackground:`#fff5b1`,codeFoldGutterBackground:`#dbedff`,codeFoldBackground:`#f1f8ff`,emptyLineBackground:`#fafbfc`,gutterColor:`#212529`,addedGutterColor:`#212529`,removedGutterColor:`#212529`,codeFoldContentColor:`#212529`,diffViewerTitleBackground:`#fafbfc`,diffViewerTitleColor:`#212529`,diffViewerTitleBorderColor:`#eee`},a.light||{}),dark:Object.assign({diffViewerBackground:`#2e303c`,diffViewerColor:`#FFF`,addedBackground:`#044B53`,addedColor:`white`,removedBackground:`#632F34`,removedColor:`white`,changedBackground:`#3e302c`,wordAddedBackground:`#055d67`,wordRemovedBackground:`#7d383f`,addedGutterBackground:`#034148`,removedGutterBackground:`#632b30`,gutterBackground:`#2c2f3a`,gutterBackgroundDark:`#262933`,highlightBackground:`#2a3967`,highlightGutterBackground:`#2d4077`,codeFoldGutterBackground:`#21232b`,codeFoldBackground:`#262831`,emptyLineBackground:`#363946`,gutterColor:`#666c87`,addedGutterColor:`#8c8c8c`,removedGutterColor:`#8c8c8c`,codeFoldContentColor:`#656a8b`,diffViewerTitleBackground:`#2f323e`,diffViewerTitleColor:`#555a7b`,diffViewerTitleBorderColor:`#353846`},a.dark||{})},c=r?s.dark:s.light,{css:l,cx:u}=(0,n.default)({key:`react-diff`,nonce:i}),d=l({width:`100%`,label:`content`}),f=l({[`.${d}`]:{width:`50%`},label:`split-view`}),p=l({width:`100%`,background:c.diffViewerBackground,pre:{margin:0,whiteSpace:`pre-wrap`,lineHeight:`25px`},label:`diff-container`,borderCollapse:`collapse`}),m=l({color:c.codeFoldContentColor,label:`code-fold-content`}),h=l({color:c.diffViewerColor,label:`content-text`}),g=l({background:c.diffViewerTitleBackground,padding:10,borderBottom:`1px solid ${c.diffViewerTitleBorderColor}`,label:`title-block`,":last-child":{borderLeft:`1px solid ${c.diffViewerTitleBorderColor}`},[`.${h}`]:{color:c.diffViewerTitleColor}}),_=l({color:c.gutterColor,label:`line-number`}),v=l({background:c.removedBackground,color:c.removedColor,pre:{color:c.removedColor},[`.${_}`]:{color:c.removedGutterColor},label:`diff-removed`}),y=l({background:c.addedBackground,color:c.addedColor,pre:{color:c.addedColor},[`.${_}`]:{color:c.addedGutterColor},label:`diff-added`}),b=l({background:c.changedBackground,[`.${_}`]:{color:c.gutterColor},label:`diff-changed`}),x=l({padding:2,display:`inline-flex`,borderRadius:4,wordBreak:`break-all`,label:`word-diff`}),S=l({background:c.wordAddedBackground,label:`word-added`}),C=l({background:c.wordRemovedBackground,label:`word-removed`}),w=l({backgroundColor:c.codeFoldGutterBackground,label:`code-fold-gutter`}),T=l({backgroundColor:c.codeFoldBackground,height:40,fontSize:14,fontWeight:700,label:`code-fold`,a:{textDecoration:`underline !important`,cursor:`pointer`,pre:{display:`inline`}}}),E=l({backgroundColor:c.emptyLineBackground,label:`empty-line`}),D=l({width:25,paddingLeft:10,paddingRight:10,userSelect:`none`,label:`marker`,[`&.${y}`]:{pre:{color:c.addedColor}},[`&.${v}`]:{pre:{color:c.removedColor}}}),O=l({background:c.highlightBackground,label:`highlighted-line`,[`.${S}, .${C}`]:{backgroundColor:`initial`}}),k=l({label:`highlighted-gutter`}),A=l({userSelect:`none`,minWidth:50,padding:`0 10px`,whiteSpace:`nowrap`,label:`gutter`,textAlign:`right`,background:c.gutterBackground,"&:hover":{cursor:`pointer`,background:c.gutterBackgroundDark,pre:{opacity:1}},pre:{opacity:.5},[`&.${y}`]:{background:c.addedGutterBackground},[`&.${v}`]:{background:c.removedGutterBackground},[`&.${k}`]:{background:c.highlightGutterBackground,"&:hover":{background:c.highlightGutterBackground}}}),j=l({"&:hover":{background:c.gutterBackground,cursor:`initial`},label:`empty-gutter`}),M={diffContainer:p,diffRemoved:v,diffAdded:y,diffChanged:b,splitView:f,marker:D,highlightedGutter:k,highlightedLine:O,gutter:A,line:l({verticalAlign:`baseline`,label:`line`}),wordDiff:x,wordAdded:S,wordRemoved:C,codeFoldGutter:w,codeFold:T,emptyGutter:j,emptyLine:E,lineNumber:_,contentText:h,content:d,codeFoldContent:m,titleBlock:g},N=Object.keys(o).reduce((e,t)=>Object.assign(Object.assign({},e),{[t]:l(o[t])}),{});return Object.keys(M).reduce((e,t)=>Object.assign(Object.assign({},e),{[t]:N[t]?u(M[t],N[t]):M[t]}),{})},L9}var z9={},B9;function dHe(){if(B9)return z9;B9=1,Object.defineProperty(z9,`__esModule`,{value:!0}),z9.computeHiddenBlocks=void 0;function e(e,t,n){let r=0,i,a={},o=[];return e.forEach((e,s)=>{let c=t.some(e=>e>=s-n&&e<=s+n);!c&&i==null?(i={index:r,startLine:s,endLine:s,lines:1},o.push(i),a[s]=i.index,r++):c?i=void 0:(i.endLine=s,i.lines++,a[s]=i.index)}),{lineBlocks:a,blocks:o}}return z9.computeHiddenBlocks=e,z9}var V9=Number.isNaN||function(e){return typeof e==`number`&&e!==e};function fHe(e,t){return!!(e===t||V9(e)&&V9(t))}function pHe(e,t){if(e.length!==t.length)return!1;for(var n=0;n<e.length;n++)if(!fHe(e[n],t[n]))return!1;return!0}function mHe(e,t){t===void 0&&(t=pHe);var n=null;function r(){var r=[...arguments];if(n&&n.lastThis===this&&t(r,n.lastArgs))return n.lastResult;var i=e.apply(this,r);return n={lastResult:i,lastArgs:r,lastThis:this},i}return r.clear=function(){n=null},r}var hHe=wi(Object.freeze(Object.defineProperty({__proto__:null,default:mHe},Symbol.toStringTag,{value:`Module`}))),H9;function gHe(){return H9?G7:(H9=1,(function(e){var t=G7&&G7.__createBinding||(Object.create?function(e,t,n,r){r===void 0&&(r=n);var i=Object.getOwnPropertyDescriptor(t,n);(!i||(`get`in i?!t.__esModule:i.writable||i.configurable))&&(i={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,i)}:function(e,t,n,r){r===void 0&&(r=n),e[r]=t[n]}),n=G7&&G7.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,`default`,{enumerable:!0,value:t})}:function(e,t){e.default=t}),r=G7&&G7.__importStar||function(e){if(e&&e.__esModule)return e;var r={};if(e!=null)for(var i in e)i!==`default`&&Object.prototype.hasOwnProperty.call(e,i)&&t(r,e,i);return n(r,e),r},i=G7&&G7.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(e,`__esModule`,{value:!0}),e.DiffMethod=e.LineNumberPrefix=void 0;let a=U.default,o=r(H.default),s=i(Di()),c=lHe();Object.defineProperty(e,`DiffMethod`,{enumerable:!0,get:function(){return c.DiffMethod}});let l=i(uHe()),u=dHe(),d=hHe,f=d.default||d;var p;(function(e){e.LEFT=`L`,e.RIGHT=`R`})(p||(e.LineNumberPrefix=p={}));class m extends o.Component{constructor(e){super(e),this.resetCodeBlocks=()=>this.state.expandedBlocks.length>0?(this.setState({expandedBlocks:[]}),!0):!1,this.onBlockExpand=e=>{let t=this.state.expandedBlocks.slice();t.push(e),this.setState({expandedBlocks:t})},this.computeStyles=f(l.default),this.onLineNumberClickProxy=e=>this.props.onLineNumberClick?t=>this.props.onLineNumberClick(e,t):()=>{},this.renderWordDiff=(e,t)=>e.map((e,n)=>(0,a.jsx)(`span`,{className:(0,s.default)(this.styles.wordDiff,{[this.styles.wordAdded]:e.type===c.DiffType.ADDED,[this.styles.wordRemoved]:e.type===c.DiffType.REMOVED}),children:t?t(e.value):e.value},n)),this.renderLine=(e,t,n,r,i,l)=>{let u=`${n}-${e}`,d=`${l}-${i}`,f=this.props.highlightLines.includes(u)||this.props.highlightLines.includes(d),p=t===c.DiffType.ADDED,m=t===c.DiffType.REMOVED,h=t===c.DiffType.CHANGED,g;return g=Array.isArray(r)?this.renderWordDiff(r,this.props.renderContent):this.props.renderContent?this.props.renderContent(r):r,(0,a.jsxs)(o.Fragment,{children:[!this.props.hideLineNumbers&&(0,a.jsx)(`td`,{onClick:e&&this.onLineNumberClickProxy(u),className:(0,s.default)(this.styles.gutter,{[this.styles.emptyGutter]:!e,[this.styles.diffAdded]:p,[this.styles.diffRemoved]:m,[this.styles.diffChanged]:h,[this.styles.highlightedGutter]:f}),children:(0,a.jsx)(`pre`,{className:this.styles.lineNumber,children:e})}),!this.props.splitView&&!this.props.hideLineNumbers&&(0,a.jsx)(`td`,{onClick:i&&this.onLineNumberClickProxy(d),className:(0,s.default)(this.styles.gutter,{[this.styles.emptyGutter]:!i,[this.styles.diffAdded]:p,[this.styles.diffRemoved]:m,[this.styles.diffChanged]:h,[this.styles.highlightedGutter]:f}),children:(0,a.jsx)(`pre`,{className:this.styles.lineNumber,children:i})}),this.props.renderGutter?this.props.renderGutter({lineNumber:e,type:t,prefix:n,value:r,additionalLineNumber:i,additionalPrefix:l,styles:this.styles}):null,!this.props.hideMarkers&&(0,a.jsx)(`td`,{className:(0,s.default)(this.styles.marker,{[this.styles.emptyLine]:!g,[this.styles.diffAdded]:p,[this.styles.diffRemoved]:m,[this.styles.diffChanged]:h,[this.styles.highlightedLine]:f}),children:(0,a.jsxs)(`pre`,{children:[p&&`+`,m&&`-`]})}),(0,a.jsx)(`td`,{className:(0,s.default)(this.styles.content,{[this.styles.emptyLine]:!g,[this.styles.diffAdded]:p,[this.styles.diffRemoved]:m,[this.styles.diffChanged]:h,[this.styles.highlightedLine]:f}),children:(0,a.jsx)(`pre`,{className:this.styles.contentText,children:g})})]})},this.renderSplitView=({left:e,right:t},n)=>(0,a.jsxs)(`tr`,{className:this.styles.line,children:[this.renderLine(e.lineNumber,e.type,p.LEFT,e.value),this.renderLine(t.lineNumber,t.type,p.RIGHT,t.value)]},n),this.renderInlineView=({left:e,right:t},n)=>{let r;return e.type===c.DiffType.REMOVED&&t.type===c.DiffType.ADDED?(0,a.jsxs)(o.Fragment,{children:[(0,a.jsx)(`tr`,{className:this.styles.line,children:this.renderLine(e.lineNumber,e.type,p.LEFT,e.value,null)}),(0,a.jsx)(`tr`,{className:this.styles.line,children:this.renderLine(null,t.type,p.RIGHT,t.value,t.lineNumber)})]},n):(e.type===c.DiffType.REMOVED&&(r=this.renderLine(e.lineNumber,e.type,p.LEFT,e.value,null)),e.type===c.DiffType.DEFAULT&&(r=this.renderLine(e.lineNumber,e.type,p.LEFT,e.value,t.lineNumber,p.RIGHT)),t.type===c.DiffType.ADDED&&(r=this.renderLine(null,t.type,p.RIGHT,t.value,t.lineNumber)),(0,a.jsx)(`tr`,{className:this.styles.line,children:r},n))},this.onBlockClickProxy=e=>()=>this.onBlockExpand(e),this.renderSkippedLineIndicator=(e,t,n,r)=>{let{hideLineNumbers:i,splitView:c}=this.props,l=this.props.codeFoldMessageRenderer?this.props.codeFoldMessageRenderer(e,n,r):(0,a.jsxs)(`pre`,{className:this.styles.codeFoldContent,children:[`Expand `,e,` lines ...`]}),u=(0,a.jsx)(`td`,{children:(0,a.jsx)(`a`,{onClick:this.onBlockClickProxy(t),tabIndex:0,children:l})}),d=!c&&!i;return(0,a.jsxs)(`tr`,{className:this.styles.codeFold,children:[!i&&(0,a.jsx)(`td`,{className:this.styles.codeFoldGutter}),this.props.renderGutter?(0,a.jsx)(`td`,{className:this.styles.codeFoldGutter}):null,(0,a.jsx)(`td`,{className:(0,s.default)({[this.styles.codeFoldGutter]:d})}),d?(0,a.jsxs)(o.Fragment,{children:[(0,a.jsx)(`td`,{}),u]}):(0,a.jsxs)(o.Fragment,{children:[u,this.props.renderGutter?(0,a.jsx)(`td`,{}):null,(0,a.jsx)(`td`,{})]}),(0,a.jsx)(`td`,{}),(0,a.jsx)(`td`,{})]},`${n}-${r}`)},this.renderDiff=()=>{let{oldValue:e,newValue:t,splitView:n,disableWordDiff:r,compareMethod:i,linesOffset:s}=this.props,{lineInformation:l,diffLines:d}=(0,c.computeLineInformation)(e,t,r,i,s,this.props.alwaysShowLines),f=this.props.extraLinesSurroundingDiff<0?0:Math.round(this.props.extraLinesSurroundingDiff),{lineBlocks:p,blocks:m}=(0,u.computeHiddenBlocks)(l,d,f);return l.map((e,t)=>{if(this.props.showDiffOnly){let n=p[t];if(n!==void 0){let r=m[n].endLine===t;if(!this.state.expandedBlocks.includes(n)&&r)return(0,a.jsx)(o.Fragment,{children:this.renderSkippedLineIndicator(m[n].lines,n,e.left.lineNumber,e.right.lineNumber)},t);if(!this.state.expandedBlocks.includes(n))return null}}return n?this.renderSplitView(e,t):this.renderInlineView(e,t)})},this.render=()=>{let{oldValue:e,newValue:t,useDarkTheme:n,leftTitle:r,rightTitle:i,splitView:o,hideLineNumbers:l,hideMarkers:u,nonce:d}=this.props;if(this.props.compareMethod!==c.DiffMethod.JSON&&(typeof e!=`string`||typeof t!=`string`))throw Error(`"oldValue" and "newValue" should be strings`);this.styles=this.computeStyles(this.props.styles,n,d);let f=this.renderDiff(),p=l?2:3,m=l?2:4;u&&(--p,--m);let h=this.props.renderGutter?1:0,g=(r||i)&&(0,a.jsxs)(`tr`,{children:[(0,a.jsx)(`td`,{colSpan:(o?p:m)+h,className:this.styles.titleBlock,children:(0,a.jsx)(`pre`,{className:this.styles.contentText,children:r})}),o&&(0,a.jsx)(`td`,{colSpan:p+h,className:this.styles.titleBlock,children:(0,a.jsx)(`pre`,{className:this.styles.contentText,children:i})})]});return(0,a.jsx)(`table`,{className:(0,s.default)(this.styles.diffContainer,{[this.styles.splitView]:o}),children:(0,a.jsxs)(`tbody`,{children:[g,f]})})},this.state={expandedBlocks:[]}}}m.defaultProps={oldValue:``,newValue:``,splitView:!0,highlightLines:[],disableWordDiff:!1,compareMethod:c.DiffMethod.CHARS,styles:{},hideLineNumbers:!1,hideMarkers:!1,extraLinesSurroundingDiff:3,showDiffOnly:!0,useDarkTheme:!1,linesOffset:0,nonce:``},e.default=m})(G7),G7)}gHe();const _He=2,vHe=5,yHe=1,bHe=`round`,xHe=`transparent`,SHe=`rgba(0, 0, 0, 0.1)`,CHe=`dblclick`,wHe={TRANSLATIONS:`translations`,LANGUAGE_KEY:`languageKey`},THe=1e-4,EHe=1e7,U9=()=>{let e=(0,H.useContext)(de);if(e===void 0)throw Error(`useLegend must be used within a LegendProvider`);return e},W9=({chartRef:e,options:t})=>{let{state:n,dispatch:r}=U9()??{},{annotations:i,interactions:{onLegendClick:a},legend:{customLegend:o}}=t??{};(0,H.useEffect)(()=>{n?.datasets?.forEach((t,n)=>{let r=t?.hidden??!1;e?.current?.setDatasetVisibility(Number(n),!r),e?.current?.update(`none`)})},[n]);let s=(0,H.useCallback)((t,n)=>{let{datasetIndex:o=-1}=n??{},s=null,c=e?.current,l=c?.data?.datasets??[],u=l?.[o]??{};if(i?.controlAnnotation&&u?.isAnnotation&&(s=u?.annotationIndex??null),a){let e=n?.hidden??!1;a(n?.text,e)}r({type:F,payload:{chartInstance:c,dsConfig:{datasetIndex:o,datasets:l,dataset:u},annotationConfig:{annotationIndex:s}}}),c?.update()},[e,i,r]),c=(0,H.useMemo)(()=>ae(t,s),[t,s]),l=(0,H.useMemo)(()=>({[E]:o?.customLegendPlugin&&{containerID:o?.customLegendContainerID}}),[o]);return{legendClick:s,annotation:n?.annotation,legend:c,customLegendPlugin:l}},DHe=(e=[])=>{let t={};return e.length&&(t=e.reduce((e,t,n)=>(e[`annotation${n+1}`]=t,e),{})),{annotations:t}};var OHe=function(){},G9=typeof window<`u`,kHe=G9?H.useLayoutEffect:H.useEffect,AHe={x:0,y:0,width:0,height:0,top:0,left:0,bottom:0,right:0};function jHe(){var e=(0,H.useState)(null),t=e[0],n=e[1],r=(0,H.useState)(AHe),i=r[0],a=r[1],o=(0,H.useMemo)(function(){return new window.ResizeObserver(function(e){if(e[0]){var t=e[0].contentRect,n=t.x,r=t.y,i=t.width,o=t.height,s=t.top,c=t.left,l=t.bottom,u=t.right;a({x:n,y:r,width:i,height:o,top:s,left:c,bottom:l,right:u})}})},[]);return kHe(function(){if(t)return o.observe(t),function(){o.disconnect()}},[t]),[n,i]}var MHe=G9&&window.ResizeObserver!==void 0?jHe:(function(){return[OHe,AHe]}),NHe={color:void 0,size:void 0,className:void 0,style:void 0,attr:void 0},PHe=H.createContext&&H.createContext(NHe),K9=function(){return K9=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n],t)Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e},K9.apply(this,arguments)},FHe=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols==`function`)for(var i=0,r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]]);return n};function IHe(e){return e&&e.map(function(e,t){return H.createElement(e.tag,K9({key:t},e.attr),IHe(e.child))})}function q9(e){return function(t){return H.createElement(LHe,K9({attr:K9({},e.attr)},t),IHe(e.child))}}function LHe(e){var t=function(t){var n=e.attr,r=e.size,i=e.title,a=FHe(e,[`attr`,`size`,`title`]),o=r||t.size||`1em`,s;return t.className&&(s=t.className),e.className&&(s=(s?s+` `:``)+e.className),H.createElement(`svg`,K9({stroke:`currentColor`,fill:`currentColor`,strokeWidth:`0`},t.attr,n,a,{className:s,style:K9(K9({color:e.color||t.color},t.style),e.style),height:o,width:o,xmlns:`http://www.w3.org/2000/svg`}),i&&H.createElement(`title`,null,i),e.children)};return PHe===void 0?t(NHe):H.createElement(PHe.Consumer,null,function(e){return t(e)})}function RHe(e){return q9({tag:`svg`,attr:{viewBox:`0 0 24 24`,strokeWidth:`2`,stroke:`currentColor`,fill:`none`,strokeLinecap:`round`,strokeLinejoin:`round`},child:[{tag:`path`,attr:{stroke:`none`,d:`M0 0h24v24H0z`,fill:`none`}},{tag:`path`,attr:{d:`M18 9l3 3l-3 3`}},{tag:`path`,attr:{d:`M15 12h6`}},{tag:`path`,attr:{d:`M6 9l-3 3l3 3`}},{tag:`path`,attr:{d:`M3 12h6`}},{tag:`path`,attr:{d:`M9 18l3 3l3 -3`}},{tag:`path`,attr:{d:`M12 15v6`}},{tag:`path`,attr:{d:`M15 6l-3 -3l-3 3`}},{tag:`path`,attr:{d:`M12 3v6`}}]})(e)}function zHe(e){return q9({tag:`svg`,attr:{viewBox:`0 0 24 24`,strokeWidth:`2`,stroke:`currentColor`,fill:`none`,strokeLinecap:`round`,strokeLinejoin:`round`},child:[{tag:`path`,attr:{stroke:`none`,d:`M0 0h24v24H0z`,fill:`none`}},{tag:`path`,attr:{d:`M12 12m-9 0a9 9 0 1 0 18 0a9 9 0 1 0 -18 0`}},{tag:`path`,attr:{d:`M5.7 5.7l12.6 12.6`}}]})(e)}function BHe(e){return q9({tag:`svg`,attr:{viewBox:`0 0 24 24`,strokeWidth:`2`,stroke:`currentColor`,fill:`none`,strokeLinecap:`round`,strokeLinejoin:`round`},child:[{tag:`path`,attr:{stroke:`none`,d:`M0 0h24v24H0z`,fill:`none`}},{tag:`path`,attr:{d:`M7 3.34a10 10 0 1 1 -4.995 8.984l-.005 -.324l.005 -.324a10 10 0 0 1 4.995 -8.336z`,strokeWidth:`0`,fill:`currentColor`}}]})(e)}function VHe(e){return q9({tag:`svg`,attr:{viewBox:`0 0 24 24`,strokeWidth:`2`,stroke:`currentColor`,fill:`none`,strokeLinecap:`round`,strokeLinejoin:`round`},child:[{tag:`path`,attr:{stroke:`none`,d:`M0 0h24v24H0z`,fill:`none`}},{tag:`path`,attr:{d:`M8 13v-7.5a1.5 1.5 0 0 1 3 0v6.5`}},{tag:`path`,attr:{d:`M11 5.5v-2a1.5 1.5 0 1 1 3 0v8.5`}},{tag:`path`,attr:{d:`M14 5.5a1.5 1.5 0 0 1 3 0v6.5`}},{tag:`path`,attr:{d:`M17 7.5a1.5 1.5 0 0 1 3 0v8.5a6 6 0 0 1 -6 6h-2h.208a6 6 0 0 1 -5.012 -2.7a69.74 69.74 0 0 1 -.196 -.3c-.312 -.479 -1.407 -2.388 -3.286 -5.728a1.5 1.5 0 0 1 .536 -2.022a1.867 1.867 0 0 1 2.28 .28l1.47 1.47`}}]})(e)}function HHe(e){return q9({tag:`svg`,attr:{viewBox:`0 0 24 24`,strokeWidth:`2`,stroke:`currentColor`,fill:`none`,strokeLinecap:`round`,strokeLinejoin:`round`},child:[{tag:`path`,attr:{stroke:`none`,d:`M0 0h24v24H0z`,fill:`none`}},{tag:`path`,attr:{d:`M9 6l11 0`}},{tag:`path`,attr:{d:`M9 12l11 0`}},{tag:`path`,attr:{d:`M9 18l11 0`}},{tag:`path`,attr:{d:`M5 6l0 .01`}},{tag:`path`,attr:{d:`M5 12l0 .01`}},{tag:`path`,attr:{d:`M5 18l0 .01`}}]})(e)}function UHe(e){return q9({tag:`svg`,attr:{viewBox:`0 0 24 24`,strokeWidth:`2`,stroke:`currentColor`,fill:`none`,strokeLinecap:`round`,strokeLinejoin:`round`},child:[{tag:`path`,attr:{stroke:`none`,d:`M0 0h24v24H0z`,fill:`none`}},{tag:`path`,attr:{d:`M5 4h14a1 1 0 0 1 1 1v5a1 1 0 0 1 -1 1h-7a1 1 0 0 0 -1 1v7a1 1 0 0 1 -1 1h-5a1 1 0 0 1 -1 -1v-14a1 1 0 0 1 1 -1`}},{tag:`path`,attr:{d:`M4 8l2 0`}},{tag:`path`,attr:{d:`M4 12l3 0`}},{tag:`path`,attr:{d:`M4 16l2 0`}},{tag:`path`,attr:{d:`M8 4l0 2`}},{tag:`path`,attr:{d:`M12 4l0 3`}},{tag:`path`,attr:{d:`M16 4l0 2`}}]})(e)}function WHe(e){return q9({tag:`svg`,attr:{viewBox:`0 0 24 24`,strokeWidth:`2`,stroke:`currentColor`,fill:`none`,strokeLinecap:`round`,strokeLinejoin:`round`},child:[{tag:`path`,attr:{stroke:`none`,d:`M0 0h24v24H0z`,fill:`none`}},{tag:`path`,attr:{d:`M19 2h-14a3 3 0 0 0 -3 3v14a3 3 0 0 0 3 3h14a3 3 0 0 0 3 -3v-14a3 3 0 0 0 -3 -3z`,strokeWidth:`0`,fill:`currentColor`}}]})(e)}function GHe(e){return q9({tag:`svg`,attr:{viewBox:`0 0 24 24`,strokeWidth:`2`,stroke:`currentColor`,fill:`none`,strokeLinecap:`round`,strokeLinejoin:`round`},child:[{tag:`path`,attr:{stroke:`none`,d:`M0 0h24v24H0z`,fill:`none`}},{tag:`path`,attr:{d:`M18 6l-12 12`}},{tag:`path`,attr:{d:`M6 6l12 12`}}]})(e)}function KHe(e){return q9({tag:`svg`,attr:{viewBox:`0 0 24 24`,strokeWidth:`2`,stroke:`currentColor`,fill:`none`,strokeLinecap:`round`,strokeLinejoin:`round`},child:[{tag:`path`,attr:{stroke:`none`,d:`M0 0h24v24H0z`,fill:`none`}},{tag:`path`,attr:{d:`M10 10m-7 0a7 7 0 1 0 14 0a7 7 0 1 0 -14 0`}},{tag:`path`,attr:{d:`M7 10l6 0`}},{tag:`path`,attr:{d:`M10 7l0 6`}},{tag:`path`,attr:{d:`M21 21l-6 -6`}}]})(e)}var J9={legend:`_legend_wpro0_1`,isDragging:`_isDragging_wpro0_8`,legendItems:`_legendItems_wpro0_11`,isHidden:`_isHidden_wpro0_47`,legendToggle:`_legendToggle_wpro0_50`,legendItem:`_legendItem_wpro0_11`,legendItemSymbol:`_legendItemSymbol_wpro0_80`,legendItemBox:`_legendItemBox_wpro0_90`,legendItemLine:`_legendItemLine_wpro0_95`,legendItemPoint:`_legendItemPoint_wpro0_103`,legendItemText:`_legendItemText_wpro0_110`,scrollbars:`_scrollbars_wpro0_113`,dropzoneContainer:`_dropzoneContainer_wpro0_140`,dropzone:`_dropzone_wpro0_140`,left:`_left_wpro0_149`,right:`_right_wpro0_153`,top:`_top_wpro0_157`,bottom:`_bottom_wpro0_161`,dropzonePlaceholder:`_dropzonePlaceholder_wpro0_165`,isActive:`_isActive_wpro0_173`,resizeContainer:`_resizeContainer_wpro0_176`},Y9=e=>(0,U.jsx)(`svg`,{xmlns:`http://www.w3.org/2000/svg`,viewBox:`0 0 24 24`,width:`1em`,height:`1em`,...e,children:(0,U.jsx)(`circle`,{cx:12,cy:12,r:12,fill:`currentColor`})});let X9=function(e){return e.LINE=`line`,e.BAR=`bar`,e.PIE=`pie`,e.SCATTER=`scatter`,e}({}),qHe=function(e){return e.VERTICAL=`vertical`,e.HORIZONTAL=`horizontal`,e}({});var JHe=e=>(0,U.jsx)(`svg`,{xmlns:`http://www.w3.org/2000/svg`,viewBox:`0 0 24 24`,width:`1em`,height:`1em`,...e,children:(0,U.jsx)(`rect`,{x:2,y:2,width:20,height:20,fill:`currentColor`})}),YHe=e=>(0,U.jsx)(`svg`,{xmlns:`http://www.w3.org/2000/svg`,viewBox:`0 0 24 24`,width:`1em`,height:`1em`,...e,children:(0,U.jsx)(`rect`,{x:3,y:3,width:18,height:18,fill:`currentColor`,transform:`rotate(45 12 12)`})}),XHe=e=>(0,U.jsx)(`svg`,{height:`1em`,viewBox:`0 0 24 24`,width:`1em`,xmlns:`http://www.w3.org/2000/svg`,xmlnsXlink:`http://www.w3.org/1999/xlink`,...e,children:(0,U.jsx)(`path`,{d:`m22.7998 22.0623h-21.5996c-.21066.0001-.417617-.0554-.600067-.1607-.182451-.1053-.333965-.2567-.439311-.4392-.1053464-.1824-.16081228-.3893-.160822-.6s.0554372-.4176.160767-.6l10.799833-18.70518c.1139-.17137.2684-.31191.4497-.40913.1814-.09722.3839-.14809.5897-.14809s.4083.05087.5897.14809c.1813.09722.3358.23776.4497.40913l10.7998 18.70518c.1054.1824.1608.3893.1608.6s-.0555.4176-.1608.6c-.1054.1825-.2569.3339-.4393.4392-.1825.1053-.3894.1608-.6001.1607z`,fill:`currentColor`})}),Z9=16,ZHe=({dataset:e})=>{let{borderColor:t,borderDash:n,borderWidth:r}=e??{},[i,a]=n??[],o=i&&a?(Z9-i)/2%(i+a)*-1:0,s=e?.borderDash?.join(` `)||``;return(0,U.jsx)(`span`,{className:J9.legendItemLine,children:(0,U.jsx)(`svg`,{xmlns:`http://www.w3.org/2000/svg`,viewBox:`0 0 ${Z9} ${Z9}`,width:`100%`,height:`100%`,children:(0,U.jsx)(`line`,{x1:`0`,y1:`50%`,x2:`100%`,y2:`50%`,stroke:t,strokeWidth:r,strokeDasharray:s,strokeDashoffset:o})})})},QHe=({dataset:e})=>{let{pointBackgroundColor:t,pointRadius:n,pointStyle:r=``}=e??{};if(!n)return null;let i=n*2,a={circle:(0,U.jsx)(Y9,{}),triangle:(0,U.jsx)(XHe,{}),rectRot:(0,U.jsx)(YHe,{}),rect:(0,U.jsx)(JHe,{})};return(0,U.jsx)(`span`,{className:J9.legendItemPoint,children:(0,U.jsx)(ca,{icon:a?.[r]??(0,U.jsx)(Y9,{}),size:i,color:t})})},$He=({dataset:e})=>{let{backgroundColor:t}=e??{},n={backgroundColor:t};return(0,U.jsx)(`span`,{className:J9.legendItemBox,style:n})};const eUe=({dataset:e})=>{let{annotationType:t,showLine:n}=e??{};switch(t){case C.Box:case C.Ellipse:return(0,U.jsx)($He,{dataset:e});case C.Line:return(0,U.jsx)(ZHe,{dataset:e});default:return(0,U.jsxs)(U.Fragment,{children:[n&&(0,U.jsx)(ZHe,{dataset:e}),(0,U.jsx)(QHe,{dataset:e})]})}};eUe.__docgenInfo={description:``,methods:[],displayName:`LegendItemLine`};var tUe=e(b(),1),nUe=16,rUe=(e,t,n)=>{switch(t){case X9.LINE:return(0,U.jsx)(eUe,{dataset:e});case X9.BAR:{let{backgroundColor:t}=e??{},r=t instanceof Array?t?.[n]:t;return(0,U.jsx)(`span`,{className:J9.legendItemBox,children:(0,U.jsx)(WHe,{color:r})})}case X9.PIE:return(0,U.jsx)(`span`,{className:J9.legendItemPoint,children:(0,U.jsx)(ca,{icon:(0,U.jsx)(Y9,{})})});case X9.SCATTER:{let{backgroundColor:t,borderColor:r}=e??{},i=t instanceof Array?t?.[n]:t;return(0,U.jsx)(`span`,{className:J9.legendItemPoint,children:(0,U.jsx)(BHe,{color:i??r})})}default:return null}},iUe=({hidden:e,dataset:t,handleClick:n,chartType:r,index:i})=>(0,U.jsxs)(`div`,{className:(0,tUe.default)(J9?.legendItem,e&&J9?.isHidden),onClick:n,children:[(0,U.jsx)(`span`,{className:J9.legendItemSymbol,style:{width:nUe},children:rUe(t,r,i)}),(0,U.jsx)(`span`,{className:J9.legendItemText,children:t?.label})]}),aUe=iUe;iUe.__docgenInfo={description:``,methods:[],displayName:`LegendItem`,props:{hidden:{required:!0,tsType:{name:`boolean`},description:``},dataset:{required:!0,tsType:{name:`union`,raw:`| IGeneratedLineChartDataset
1255
+ `),c=(e,t,n=o.CHARS)=>{let r=i[n](e,t),s={left:[],right:[]};return r.forEach(({added:e,removed:t,value:n})=>{let r={};return e&&(r.type=a.ADDED,r.value=n,s.right.push(r)),t&&(r.type=a.REMOVED,r.value=n,s.left.push(r)),!t&&!e&&(r.type=a.DEFAULT,r.value=n,s.right.push(r),s.left.push(r)),r}),s};return K7.computeLineInformation=(e,t,n=!1,i=o.CHARS,l=0,u=[])=>{let d=[];d=typeof e==`string`&&typeof t==`string`?r.diffLines(e.trimRight(),t.trimRight(),{newlineIsToken:!1,ignoreWhitespace:!1,ignoreCase:!1}):r.diffJson(e,t);let f=l,p=l,m=[],h=0,g=[],_=[],v=(e,t,r,o,l)=>s(e).map((e,m)=>{let y={},b={};if(!(_.includes(`${t}-${m}`)||l&&m!==0)){if(r||o){let r=!0;if(o){p+=1,y.lineNumber=p,y.type=a.REMOVED,y.value=e||` `;let o=d[t+1];if(o&&o.added){let a=s(o.value)[m];if(a){let{value:o,lineNumber:s,type:l}=v(a,t,!0,!1,!0)[0].right;if(_.push(`${t+1}-${m}`),b.lineNumber=s,y.value===o)r=!1,b.type=0,y.type=0,b.value=o;else if(b.type=l,n)b.value=o;else{let t=c(e,o,i);b.value=t.right,y.value=t.left}}}}else f+=1,b.lineNumber=f,b.type=a.ADDED,b.value=e;r&&!l&&(g.includes(h)||g.push(h))}else p+=1,f+=1,y.lineNumber=p,y.type=a.DEFAULT,y.value=e,b.lineNumber=f,b.type=a.DEFAULT,b.value=e;return(u?.includes(`L-${y.lineNumber}`)||u?.includes(`R-${b.lineNumber}`)&&!g.includes(h))&&g.push(h),l||(h+=1),{right:b,left:y}}}).filter(Boolean);return d.forEach(({added:e,removed:t,value:n},r)=>{m=[...m,...v(n,r,e,t)]}),{lineInformation:m,diffLines:g}},K7}var L9={},R9;function uHe(){if(R9)return L9;R9=1;var e=L9&&L9.__rest||function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols==`function`)for(var i=0,r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]]);return n},t=L9&&L9.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(L9,`__esModule`,{value:!0});let n=t(bPe());return L9.default=(t,r=!1,i=``)=>{let{variables:a={}}=t,o=e(t,[`variables`]),s={light:Object.assign({diffViewerBackground:`#fff`,diffViewerColor:`#212529`,addedBackground:`#e6ffed`,addedColor:`#24292e`,removedBackground:`#ffeef0`,removedColor:`#24292e`,changedBackground:`#fffbdd`,wordAddedBackground:`#acf2bd`,wordRemovedBackground:`#fdb8c0`,addedGutterBackground:`#cdffd8`,removedGutterBackground:`#ffdce0`,gutterBackground:`#f7f7f7`,gutterBackgroundDark:`#f3f1f1`,highlightBackground:`#fffbdd`,highlightGutterBackground:`#fff5b1`,codeFoldGutterBackground:`#dbedff`,codeFoldBackground:`#f1f8ff`,emptyLineBackground:`#fafbfc`,gutterColor:`#212529`,addedGutterColor:`#212529`,removedGutterColor:`#212529`,codeFoldContentColor:`#212529`,diffViewerTitleBackground:`#fafbfc`,diffViewerTitleColor:`#212529`,diffViewerTitleBorderColor:`#eee`},a.light||{}),dark:Object.assign({diffViewerBackground:`#2e303c`,diffViewerColor:`#FFF`,addedBackground:`#044B53`,addedColor:`white`,removedBackground:`#632F34`,removedColor:`white`,changedBackground:`#3e302c`,wordAddedBackground:`#055d67`,wordRemovedBackground:`#7d383f`,addedGutterBackground:`#034148`,removedGutterBackground:`#632b30`,gutterBackground:`#2c2f3a`,gutterBackgroundDark:`#262933`,highlightBackground:`#2a3967`,highlightGutterBackground:`#2d4077`,codeFoldGutterBackground:`#21232b`,codeFoldBackground:`#262831`,emptyLineBackground:`#363946`,gutterColor:`#666c87`,addedGutterColor:`#8c8c8c`,removedGutterColor:`#8c8c8c`,codeFoldContentColor:`#656a8b`,diffViewerTitleBackground:`#2f323e`,diffViewerTitleColor:`#555a7b`,diffViewerTitleBorderColor:`#353846`},a.dark||{})},c=r?s.dark:s.light,{css:l,cx:u}=(0,n.default)({key:`react-diff`,nonce:i}),d=l({width:`100%`,label:`content`}),f=l({[`.${d}`]:{width:`50%`},label:`split-view`}),p=l({width:`100%`,background:c.diffViewerBackground,pre:{margin:0,whiteSpace:`pre-wrap`,lineHeight:`25px`},label:`diff-container`,borderCollapse:`collapse`}),m=l({color:c.codeFoldContentColor,label:`code-fold-content`}),h=l({color:c.diffViewerColor,label:`content-text`}),g=l({background:c.diffViewerTitleBackground,padding:10,borderBottom:`1px solid ${c.diffViewerTitleBorderColor}`,label:`title-block`,":last-child":{borderLeft:`1px solid ${c.diffViewerTitleBorderColor}`},[`.${h}`]:{color:c.diffViewerTitleColor}}),_=l({color:c.gutterColor,label:`line-number`}),v=l({background:c.removedBackground,color:c.removedColor,pre:{color:c.removedColor},[`.${_}`]:{color:c.removedGutterColor},label:`diff-removed`}),y=l({background:c.addedBackground,color:c.addedColor,pre:{color:c.addedColor},[`.${_}`]:{color:c.addedGutterColor},label:`diff-added`}),b=l({background:c.changedBackground,[`.${_}`]:{color:c.gutterColor},label:`diff-changed`}),x=l({padding:2,display:`inline-flex`,borderRadius:4,wordBreak:`break-all`,label:`word-diff`}),S=l({background:c.wordAddedBackground,label:`word-added`}),C=l({background:c.wordRemovedBackground,label:`word-removed`}),w=l({backgroundColor:c.codeFoldGutterBackground,label:`code-fold-gutter`}),T=l({backgroundColor:c.codeFoldBackground,height:40,fontSize:14,fontWeight:700,label:`code-fold`,a:{textDecoration:`underline !important`,cursor:`pointer`,pre:{display:`inline`}}}),E=l({backgroundColor:c.emptyLineBackground,label:`empty-line`}),D=l({width:25,paddingLeft:10,paddingRight:10,userSelect:`none`,label:`marker`,[`&.${y}`]:{pre:{color:c.addedColor}},[`&.${v}`]:{pre:{color:c.removedColor}}}),O=l({background:c.highlightBackground,label:`highlighted-line`,[`.${S}, .${C}`]:{backgroundColor:`initial`}}),k=l({label:`highlighted-gutter`}),A=l({userSelect:`none`,minWidth:50,padding:`0 10px`,whiteSpace:`nowrap`,label:`gutter`,textAlign:`right`,background:c.gutterBackground,"&:hover":{cursor:`pointer`,background:c.gutterBackgroundDark,pre:{opacity:1}},pre:{opacity:.5},[`&.${y}`]:{background:c.addedGutterBackground},[`&.${v}`]:{background:c.removedGutterBackground},[`&.${k}`]:{background:c.highlightGutterBackground,"&:hover":{background:c.highlightGutterBackground}}}),j=l({"&:hover":{background:c.gutterBackground,cursor:`initial`},label:`empty-gutter`}),M={diffContainer:p,diffRemoved:v,diffAdded:y,diffChanged:b,splitView:f,marker:D,highlightedGutter:k,highlightedLine:O,gutter:A,line:l({verticalAlign:`baseline`,label:`line`}),wordDiff:x,wordAdded:S,wordRemoved:C,codeFoldGutter:w,codeFold:T,emptyGutter:j,emptyLine:E,lineNumber:_,contentText:h,content:d,codeFoldContent:m,titleBlock:g},N=Object.keys(o).reduce((e,t)=>Object.assign(Object.assign({},e),{[t]:l(o[t])}),{});return Object.keys(M).reduce((e,t)=>Object.assign(Object.assign({},e),{[t]:N[t]?u(M[t],N[t]):M[t]}),{})},L9}var z9={},B9;function dHe(){if(B9)return z9;B9=1,Object.defineProperty(z9,`__esModule`,{value:!0}),z9.computeHiddenBlocks=void 0;function e(e,t,n){let r=0,i,a={},o=[];return e.forEach((e,s)=>{let c=t.some(e=>e>=s-n&&e<=s+n);!c&&i==null?(i={index:r,startLine:s,endLine:s,lines:1},o.push(i),a[s]=i.index,r++):c?i=void 0:(i.endLine=s,i.lines++,a[s]=i.index)}),{lineBlocks:a,blocks:o}}return z9.computeHiddenBlocks=e,z9}var V9=Number.isNaN||function(e){return typeof e==`number`&&e!==e};function fHe(e,t){return!!(e===t||V9(e)&&V9(t))}function pHe(e,t){if(e.length!==t.length)return!1;for(var n=0;n<e.length;n++)if(!fHe(e[n],t[n]))return!1;return!0}function mHe(e,t){t===void 0&&(t=pHe);var n=null;function r(){var r=[...arguments];if(n&&n.lastThis===this&&t(r,n.lastArgs))return n.lastResult;var i=e.apply(this,r);return n={lastResult:i,lastArgs:r,lastThis:this},i}return r.clear=function(){n=null},r}var hHe=wi(Object.freeze(Object.defineProperty({__proto__:null,default:mHe},Symbol.toStringTag,{value:`Module`}))),H9;function gHe(){return H9?G7:(H9=1,(function(e){var t=G7&&G7.__createBinding||(Object.create?function(e,t,n,r){r===void 0&&(r=n);var i=Object.getOwnPropertyDescriptor(t,n);(!i||(`get`in i?!t.__esModule:i.writable||i.configurable))&&(i={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,i)}:function(e,t,n,r){r===void 0&&(r=n),e[r]=t[n]}),n=G7&&G7.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,`default`,{enumerable:!0,value:t})}:function(e,t){e.default=t}),r=G7&&G7.__importStar||function(e){if(e&&e.__esModule)return e;var r={};if(e!=null)for(var i in e)i!==`default`&&Object.prototype.hasOwnProperty.call(e,i)&&t(r,e,i);return n(r,e),r},i=G7&&G7.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(e,`__esModule`,{value:!0}),e.DiffMethod=e.LineNumberPrefix=void 0;let a=U.default,o=r(H.default),s=i(Di()),c=lHe();Object.defineProperty(e,`DiffMethod`,{enumerable:!0,get:function(){return c.DiffMethod}});let l=i(uHe()),u=dHe(),d=hHe,f=d.default||d;var p;(function(e){e.LEFT=`L`,e.RIGHT=`R`})(p||(e.LineNumberPrefix=p={}));class m extends o.Component{constructor(e){super(e),this.resetCodeBlocks=()=>this.state.expandedBlocks.length>0?(this.setState({expandedBlocks:[]}),!0):!1,this.onBlockExpand=e=>{let t=this.state.expandedBlocks.slice();t.push(e),this.setState({expandedBlocks:t})},this.computeStyles=f(l.default),this.onLineNumberClickProxy=e=>this.props.onLineNumberClick?t=>this.props.onLineNumberClick(e,t):()=>{},this.renderWordDiff=(e,t)=>e.map((e,n)=>(0,a.jsx)(`span`,{className:(0,s.default)(this.styles.wordDiff,{[this.styles.wordAdded]:e.type===c.DiffType.ADDED,[this.styles.wordRemoved]:e.type===c.DiffType.REMOVED}),children:t?t(e.value):e.value},n)),this.renderLine=(e,t,n,r,i,l)=>{let u=`${n}-${e}`,d=`${l}-${i}`,f=this.props.highlightLines.includes(u)||this.props.highlightLines.includes(d),p=t===c.DiffType.ADDED,m=t===c.DiffType.REMOVED,h=t===c.DiffType.CHANGED,g;return g=Array.isArray(r)?this.renderWordDiff(r,this.props.renderContent):this.props.renderContent?this.props.renderContent(r):r,(0,a.jsxs)(o.Fragment,{children:[!this.props.hideLineNumbers&&(0,a.jsx)(`td`,{onClick:e&&this.onLineNumberClickProxy(u),className:(0,s.default)(this.styles.gutter,{[this.styles.emptyGutter]:!e,[this.styles.diffAdded]:p,[this.styles.diffRemoved]:m,[this.styles.diffChanged]:h,[this.styles.highlightedGutter]:f}),children:(0,a.jsx)(`pre`,{className:this.styles.lineNumber,children:e})}),!this.props.splitView&&!this.props.hideLineNumbers&&(0,a.jsx)(`td`,{onClick:i&&this.onLineNumberClickProxy(d),className:(0,s.default)(this.styles.gutter,{[this.styles.emptyGutter]:!i,[this.styles.diffAdded]:p,[this.styles.diffRemoved]:m,[this.styles.diffChanged]:h,[this.styles.highlightedGutter]:f}),children:(0,a.jsx)(`pre`,{className:this.styles.lineNumber,children:i})}),this.props.renderGutter?this.props.renderGutter({lineNumber:e,type:t,prefix:n,value:r,additionalLineNumber:i,additionalPrefix:l,styles:this.styles}):null,!this.props.hideMarkers&&(0,a.jsx)(`td`,{className:(0,s.default)(this.styles.marker,{[this.styles.emptyLine]:!g,[this.styles.diffAdded]:p,[this.styles.diffRemoved]:m,[this.styles.diffChanged]:h,[this.styles.highlightedLine]:f}),children:(0,a.jsxs)(`pre`,{children:[p&&`+`,m&&`-`]})}),(0,a.jsx)(`td`,{className:(0,s.default)(this.styles.content,{[this.styles.emptyLine]:!g,[this.styles.diffAdded]:p,[this.styles.diffRemoved]:m,[this.styles.diffChanged]:h,[this.styles.highlightedLine]:f}),children:(0,a.jsx)(`pre`,{className:this.styles.contentText,children:g})})]})},this.renderSplitView=({left:e,right:t},n)=>(0,a.jsxs)(`tr`,{className:this.styles.line,children:[this.renderLine(e.lineNumber,e.type,p.LEFT,e.value),this.renderLine(t.lineNumber,t.type,p.RIGHT,t.value)]},n),this.renderInlineView=({left:e,right:t},n)=>{let r;return e.type===c.DiffType.REMOVED&&t.type===c.DiffType.ADDED?(0,a.jsxs)(o.Fragment,{children:[(0,a.jsx)(`tr`,{className:this.styles.line,children:this.renderLine(e.lineNumber,e.type,p.LEFT,e.value,null)}),(0,a.jsx)(`tr`,{className:this.styles.line,children:this.renderLine(null,t.type,p.RIGHT,t.value,t.lineNumber)})]},n):(e.type===c.DiffType.REMOVED&&(r=this.renderLine(e.lineNumber,e.type,p.LEFT,e.value,null)),e.type===c.DiffType.DEFAULT&&(r=this.renderLine(e.lineNumber,e.type,p.LEFT,e.value,t.lineNumber,p.RIGHT)),t.type===c.DiffType.ADDED&&(r=this.renderLine(null,t.type,p.RIGHT,t.value,t.lineNumber)),(0,a.jsx)(`tr`,{className:this.styles.line,children:r},n))},this.onBlockClickProxy=e=>()=>this.onBlockExpand(e),this.renderSkippedLineIndicator=(e,t,n,r)=>{let{hideLineNumbers:i,splitView:c}=this.props,l=this.props.codeFoldMessageRenderer?this.props.codeFoldMessageRenderer(e,n,r):(0,a.jsxs)(`pre`,{className:this.styles.codeFoldContent,children:[`Expand `,e,` lines ...`]}),u=(0,a.jsx)(`td`,{children:(0,a.jsx)(`a`,{onClick:this.onBlockClickProxy(t),tabIndex:0,children:l})}),d=!c&&!i;return(0,a.jsxs)(`tr`,{className:this.styles.codeFold,children:[!i&&(0,a.jsx)(`td`,{className:this.styles.codeFoldGutter}),this.props.renderGutter?(0,a.jsx)(`td`,{className:this.styles.codeFoldGutter}):null,(0,a.jsx)(`td`,{className:(0,s.default)({[this.styles.codeFoldGutter]:d})}),d?(0,a.jsxs)(o.Fragment,{children:[(0,a.jsx)(`td`,{}),u]}):(0,a.jsxs)(o.Fragment,{children:[u,this.props.renderGutter?(0,a.jsx)(`td`,{}):null,(0,a.jsx)(`td`,{})]}),(0,a.jsx)(`td`,{}),(0,a.jsx)(`td`,{})]},`${n}-${r}`)},this.renderDiff=()=>{let{oldValue:e,newValue:t,splitView:n,disableWordDiff:r,compareMethod:i,linesOffset:s}=this.props,{lineInformation:l,diffLines:d}=(0,c.computeLineInformation)(e,t,r,i,s,this.props.alwaysShowLines),f=this.props.extraLinesSurroundingDiff<0?0:Math.round(this.props.extraLinesSurroundingDiff),{lineBlocks:p,blocks:m}=(0,u.computeHiddenBlocks)(l,d,f);return l.map((e,t)=>{if(this.props.showDiffOnly){let n=p[t];if(n!==void 0){let r=m[n].endLine===t;if(!this.state.expandedBlocks.includes(n)&&r)return(0,a.jsx)(o.Fragment,{children:this.renderSkippedLineIndicator(m[n].lines,n,e.left.lineNumber,e.right.lineNumber)},t);if(!this.state.expandedBlocks.includes(n))return null}}return n?this.renderSplitView(e,t):this.renderInlineView(e,t)})},this.render=()=>{let{oldValue:e,newValue:t,useDarkTheme:n,leftTitle:r,rightTitle:i,splitView:o,hideLineNumbers:l,hideMarkers:u,nonce:d}=this.props;if(this.props.compareMethod!==c.DiffMethod.JSON&&(typeof e!=`string`||typeof t!=`string`))throw Error(`"oldValue" and "newValue" should be strings`);this.styles=this.computeStyles(this.props.styles,n,d);let f=this.renderDiff(),p=l?2:3,m=l?2:4;u&&(--p,--m);let h=this.props.renderGutter?1:0,g=(r||i)&&(0,a.jsxs)(`tr`,{children:[(0,a.jsx)(`td`,{colSpan:(o?p:m)+h,className:this.styles.titleBlock,children:(0,a.jsx)(`pre`,{className:this.styles.contentText,children:r})}),o&&(0,a.jsx)(`td`,{colSpan:p+h,className:this.styles.titleBlock,children:(0,a.jsx)(`pre`,{className:this.styles.contentText,children:i})})]});return(0,a.jsx)(`table`,{className:(0,s.default)(this.styles.diffContainer,{[this.styles.splitView]:o}),children:(0,a.jsxs)(`tbody`,{children:[g,f]})})},this.state={expandedBlocks:[]}}}m.defaultProps={oldValue:``,newValue:``,splitView:!0,highlightLines:[],disableWordDiff:!1,compareMethod:c.DiffMethod.CHARS,styles:{},hideLineNumbers:!1,hideMarkers:!1,extraLinesSurroundingDiff:3,showDiffOnly:!0,useDarkTheme:!1,linesOffset:0,nonce:``},e.default=m})(G7),G7)}gHe();const _He=2,vHe=5,yHe=1,bHe=`round`,xHe=`transparent`,SHe=`rgba(0, 0, 0, 0.1)`,CHe=`dblclick`,wHe={TRANSLATIONS:`translations`,LANGUAGE_KEY:`languageKey`},THe=1e-4,EHe=1e7,U9=()=>{let e=(0,H.useContext)(de);if(e===void 0)throw Error(`useLegend must be used within a LegendProvider`);return e},W9=({chartRef:e,options:t})=>{let{state:n,dispatch:r}=U9()??{},{annotations:i,interactions:{onLegendClick:a},legend:{customLegend:o}}=t??{};(0,H.useEffect)(()=>{n?.datasets?.forEach((t,n)=>{let r=t?.hidden??!1;e?.current?.setDatasetVisibility(Number(n),!r),e?.current?.update(`none`)})},[n]);let s=(0,H.useCallback)((t,n)=>{let{datasetIndex:o=-1}=n??{},s=null,c=e?.current,l=c?.data?.datasets??[],u=l?.[o]??{};if(i?.controlAnnotation&&u?.isAnnotation&&(s=u?.annotationIndex??null),a){let e=n?.hidden??!1;a(n?.text,e)}r({type:F,payload:{chartInstance:c,dsConfig:{datasetIndex:o,datasets:l,dataset:u},annotationConfig:{annotationIndex:s}}}),c?.update()},[e,i,r]),c=(0,H.useMemo)(()=>ae(t,s),[t,s]),l=(0,H.useMemo)(()=>({[E]:o?.customLegendPlugin&&{containerID:o?.customLegendContainerID}}),[o]);return{legendClick:s,annotation:n?.annotation,legend:c,customLegendPlugin:l}},DHe=(e=[])=>{let t={};return e.length&&(t=e.reduce((e,t,n)=>{let r=t?.id??`annotation${n+1}`;return e[r]={...t,id:r},e},{})),{annotations:t}};var OHe=function(){},G9=typeof window<`u`,kHe=G9?H.useLayoutEffect:H.useEffect,AHe={x:0,y:0,width:0,height:0,top:0,left:0,bottom:0,right:0};function jHe(){var e=(0,H.useState)(null),t=e[0],n=e[1],r=(0,H.useState)(AHe),i=r[0],a=r[1],o=(0,H.useMemo)(function(){return new window.ResizeObserver(function(e){if(e[0]){var t=e[0].contentRect,n=t.x,r=t.y,i=t.width,o=t.height,s=t.top,c=t.left,l=t.bottom,u=t.right;a({x:n,y:r,width:i,height:o,top:s,left:c,bottom:l,right:u})}})},[]);return kHe(function(){if(t)return o.observe(t),function(){o.disconnect()}},[t]),[n,i]}var MHe=G9&&window.ResizeObserver!==void 0?jHe:(function(){return[OHe,AHe]}),NHe={color:void 0,size:void 0,className:void 0,style:void 0,attr:void 0},PHe=H.createContext&&H.createContext(NHe),K9=function(){return K9=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n],t)Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e},K9.apply(this,arguments)},FHe=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols==`function`)for(var i=0,r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]]);return n};function IHe(e){return e&&e.map(function(e,t){return H.createElement(e.tag,K9({key:t},e.attr),IHe(e.child))})}function q9(e){return function(t){return H.createElement(LHe,K9({attr:K9({},e.attr)},t),IHe(e.child))}}function LHe(e){var t=function(t){var n=e.attr,r=e.size,i=e.title,a=FHe(e,[`attr`,`size`,`title`]),o=r||t.size||`1em`,s;return t.className&&(s=t.className),e.className&&(s=(s?s+` `:``)+e.className),H.createElement(`svg`,K9({stroke:`currentColor`,fill:`currentColor`,strokeWidth:`0`},t.attr,n,a,{className:s,style:K9(K9({color:e.color||t.color},t.style),e.style),height:o,width:o,xmlns:`http://www.w3.org/2000/svg`}),i&&H.createElement(`title`,null,i),e.children)};return PHe===void 0?t(NHe):H.createElement(PHe.Consumer,null,function(e){return t(e)})}function RHe(e){return q9({tag:`svg`,attr:{viewBox:`0 0 24 24`,strokeWidth:`2`,stroke:`currentColor`,fill:`none`,strokeLinecap:`round`,strokeLinejoin:`round`},child:[{tag:`path`,attr:{stroke:`none`,d:`M0 0h24v24H0z`,fill:`none`}},{tag:`path`,attr:{d:`M18 9l3 3l-3 3`}},{tag:`path`,attr:{d:`M15 12h6`}},{tag:`path`,attr:{d:`M6 9l-3 3l3 3`}},{tag:`path`,attr:{d:`M3 12h6`}},{tag:`path`,attr:{d:`M9 18l3 3l3 -3`}},{tag:`path`,attr:{d:`M12 15v6`}},{tag:`path`,attr:{d:`M15 6l-3 -3l-3 3`}},{tag:`path`,attr:{d:`M12 3v6`}}]})(e)}function zHe(e){return q9({tag:`svg`,attr:{viewBox:`0 0 24 24`,strokeWidth:`2`,stroke:`currentColor`,fill:`none`,strokeLinecap:`round`,strokeLinejoin:`round`},child:[{tag:`path`,attr:{stroke:`none`,d:`M0 0h24v24H0z`,fill:`none`}},{tag:`path`,attr:{d:`M12 12m-9 0a9 9 0 1 0 18 0a9 9 0 1 0 -18 0`}},{tag:`path`,attr:{d:`M5.7 5.7l12.6 12.6`}}]})(e)}function BHe(e){return q9({tag:`svg`,attr:{viewBox:`0 0 24 24`,strokeWidth:`2`,stroke:`currentColor`,fill:`none`,strokeLinecap:`round`,strokeLinejoin:`round`},child:[{tag:`path`,attr:{stroke:`none`,d:`M0 0h24v24H0z`,fill:`none`}},{tag:`path`,attr:{d:`M7 3.34a10 10 0 1 1 -4.995 8.984l-.005 -.324l.005 -.324a10 10 0 0 1 4.995 -8.336z`,strokeWidth:`0`,fill:`currentColor`}}]})(e)}function VHe(e){return q9({tag:`svg`,attr:{viewBox:`0 0 24 24`,strokeWidth:`2`,stroke:`currentColor`,fill:`none`,strokeLinecap:`round`,strokeLinejoin:`round`},child:[{tag:`path`,attr:{stroke:`none`,d:`M0 0h24v24H0z`,fill:`none`}},{tag:`path`,attr:{d:`M8 13v-7.5a1.5 1.5 0 0 1 3 0v6.5`}},{tag:`path`,attr:{d:`M11 5.5v-2a1.5 1.5 0 1 1 3 0v8.5`}},{tag:`path`,attr:{d:`M14 5.5a1.5 1.5 0 0 1 3 0v6.5`}},{tag:`path`,attr:{d:`M17 7.5a1.5 1.5 0 0 1 3 0v8.5a6 6 0 0 1 -6 6h-2h.208a6 6 0 0 1 -5.012 -2.7a69.74 69.74 0 0 1 -.196 -.3c-.312 -.479 -1.407 -2.388 -3.286 -5.728a1.5 1.5 0 0 1 .536 -2.022a1.867 1.867 0 0 1 2.28 .28l1.47 1.47`}}]})(e)}function HHe(e){return q9({tag:`svg`,attr:{viewBox:`0 0 24 24`,strokeWidth:`2`,stroke:`currentColor`,fill:`none`,strokeLinecap:`round`,strokeLinejoin:`round`},child:[{tag:`path`,attr:{stroke:`none`,d:`M0 0h24v24H0z`,fill:`none`}},{tag:`path`,attr:{d:`M9 6l11 0`}},{tag:`path`,attr:{d:`M9 12l11 0`}},{tag:`path`,attr:{d:`M9 18l11 0`}},{tag:`path`,attr:{d:`M5 6l0 .01`}},{tag:`path`,attr:{d:`M5 12l0 .01`}},{tag:`path`,attr:{d:`M5 18l0 .01`}}]})(e)}function UHe(e){return q9({tag:`svg`,attr:{viewBox:`0 0 24 24`,strokeWidth:`2`,stroke:`currentColor`,fill:`none`,strokeLinecap:`round`,strokeLinejoin:`round`},child:[{tag:`path`,attr:{stroke:`none`,d:`M0 0h24v24H0z`,fill:`none`}},{tag:`path`,attr:{d:`M5 4h14a1 1 0 0 1 1 1v5a1 1 0 0 1 -1 1h-7a1 1 0 0 0 -1 1v7a1 1 0 0 1 -1 1h-5a1 1 0 0 1 -1 -1v-14a1 1 0 0 1 1 -1`}},{tag:`path`,attr:{d:`M4 8l2 0`}},{tag:`path`,attr:{d:`M4 12l3 0`}},{tag:`path`,attr:{d:`M4 16l2 0`}},{tag:`path`,attr:{d:`M8 4l0 2`}},{tag:`path`,attr:{d:`M12 4l0 3`}},{tag:`path`,attr:{d:`M16 4l0 2`}}]})(e)}function WHe(e){return q9({tag:`svg`,attr:{viewBox:`0 0 24 24`,strokeWidth:`2`,stroke:`currentColor`,fill:`none`,strokeLinecap:`round`,strokeLinejoin:`round`},child:[{tag:`path`,attr:{stroke:`none`,d:`M0 0h24v24H0z`,fill:`none`}},{tag:`path`,attr:{d:`M19 2h-14a3 3 0 0 0 -3 3v14a3 3 0 0 0 3 3h14a3 3 0 0 0 3 -3v-14a3 3 0 0 0 -3 -3z`,strokeWidth:`0`,fill:`currentColor`}}]})(e)}function GHe(e){return q9({tag:`svg`,attr:{viewBox:`0 0 24 24`,strokeWidth:`2`,stroke:`currentColor`,fill:`none`,strokeLinecap:`round`,strokeLinejoin:`round`},child:[{tag:`path`,attr:{stroke:`none`,d:`M0 0h24v24H0z`,fill:`none`}},{tag:`path`,attr:{d:`M18 6l-12 12`}},{tag:`path`,attr:{d:`M6 6l12 12`}}]})(e)}function KHe(e){return q9({tag:`svg`,attr:{viewBox:`0 0 24 24`,strokeWidth:`2`,stroke:`currentColor`,fill:`none`,strokeLinecap:`round`,strokeLinejoin:`round`},child:[{tag:`path`,attr:{stroke:`none`,d:`M0 0h24v24H0z`,fill:`none`}},{tag:`path`,attr:{d:`M10 10m-7 0a7 7 0 1 0 14 0a7 7 0 1 0 -14 0`}},{tag:`path`,attr:{d:`M7 10l6 0`}},{tag:`path`,attr:{d:`M10 7l0 6`}},{tag:`path`,attr:{d:`M21 21l-6 -6`}}]})(e)}var J9={legend:`_legend_wpro0_1`,isDragging:`_isDragging_wpro0_8`,legendItems:`_legendItems_wpro0_11`,isHidden:`_isHidden_wpro0_47`,legendToggle:`_legendToggle_wpro0_50`,legendItem:`_legendItem_wpro0_11`,legendItemSymbol:`_legendItemSymbol_wpro0_80`,legendItemBox:`_legendItemBox_wpro0_90`,legendItemLine:`_legendItemLine_wpro0_95`,legendItemPoint:`_legendItemPoint_wpro0_103`,legendItemText:`_legendItemText_wpro0_110`,scrollbars:`_scrollbars_wpro0_113`,dropzoneContainer:`_dropzoneContainer_wpro0_140`,dropzone:`_dropzone_wpro0_140`,left:`_left_wpro0_149`,right:`_right_wpro0_153`,top:`_top_wpro0_157`,bottom:`_bottom_wpro0_161`,dropzonePlaceholder:`_dropzonePlaceholder_wpro0_165`,isActive:`_isActive_wpro0_173`,resizeContainer:`_resizeContainer_wpro0_176`},Y9=e=>(0,U.jsx)(`svg`,{xmlns:`http://www.w3.org/2000/svg`,viewBox:`0 0 24 24`,width:`1em`,height:`1em`,...e,children:(0,U.jsx)(`circle`,{cx:12,cy:12,r:12,fill:`currentColor`})});let X9=function(e){return e.LINE=`line`,e.BAR=`bar`,e.PIE=`pie`,e.SCATTER=`scatter`,e}({}),qHe=function(e){return e.VERTICAL=`vertical`,e.HORIZONTAL=`horizontal`,e}({});var JHe=e=>(0,U.jsx)(`svg`,{xmlns:`http://www.w3.org/2000/svg`,viewBox:`0 0 24 24`,width:`1em`,height:`1em`,...e,children:(0,U.jsx)(`rect`,{x:2,y:2,width:20,height:20,fill:`currentColor`})}),YHe=e=>(0,U.jsx)(`svg`,{xmlns:`http://www.w3.org/2000/svg`,viewBox:`0 0 24 24`,width:`1em`,height:`1em`,...e,children:(0,U.jsx)(`rect`,{x:3,y:3,width:18,height:18,fill:`currentColor`,transform:`rotate(45 12 12)`})}),XHe=e=>(0,U.jsx)(`svg`,{height:`1em`,viewBox:`0 0 24 24`,width:`1em`,xmlns:`http://www.w3.org/2000/svg`,xmlnsXlink:`http://www.w3.org/1999/xlink`,...e,children:(0,U.jsx)(`path`,{d:`m22.7998 22.0623h-21.5996c-.21066.0001-.417617-.0554-.600067-.1607-.182451-.1053-.333965-.2567-.439311-.4392-.1053464-.1824-.16081228-.3893-.160822-.6s.0554372-.4176.160767-.6l10.799833-18.70518c.1139-.17137.2684-.31191.4497-.40913.1814-.09722.3839-.14809.5897-.14809s.4083.05087.5897.14809c.1813.09722.3358.23776.4497.40913l10.7998 18.70518c.1054.1824.1608.3893.1608.6s-.0555.4176-.1608.6c-.1054.1825-.2569.3339-.4393.4392-.1825.1053-.3894.1608-.6001.1607z`,fill:`currentColor`})}),Z9=16,ZHe=({dataset:e})=>{let{borderColor:t,borderDash:n,borderWidth:r}=e??{},[i,a]=n??[],o=i&&a?(Z9-i)/2%(i+a)*-1:0,s=e?.borderDash?.join(` `)||``;return(0,U.jsx)(`span`,{className:J9.legendItemLine,children:(0,U.jsx)(`svg`,{xmlns:`http://www.w3.org/2000/svg`,viewBox:`0 0 ${Z9} ${Z9}`,width:`100%`,height:`100%`,children:(0,U.jsx)(`line`,{x1:`0`,y1:`50%`,x2:`100%`,y2:`50%`,stroke:t,strokeWidth:r,strokeDasharray:s,strokeDashoffset:o})})})},QHe=({dataset:e})=>{let{pointBackgroundColor:t,pointRadius:n,pointStyle:r=``}=e??{};if(!n)return null;let i=n*2,a={circle:(0,U.jsx)(Y9,{}),triangle:(0,U.jsx)(XHe,{}),rectRot:(0,U.jsx)(YHe,{}),rect:(0,U.jsx)(JHe,{})};return(0,U.jsx)(`span`,{className:J9.legendItemPoint,children:(0,U.jsx)(ca,{icon:a?.[r]??(0,U.jsx)(Y9,{}),size:i,color:t})})},$He=({dataset:e})=>{let{backgroundColor:t}=e??{},n={backgroundColor:t};return(0,U.jsx)(`span`,{className:J9.legendItemBox,style:n})};const eUe=({dataset:e})=>{let{annotationType:t,showLine:n}=e??{};switch(t){case C.Box:case C.Ellipse:return(0,U.jsx)($He,{dataset:e});case C.Line:return(0,U.jsx)(ZHe,{dataset:e});default:return(0,U.jsxs)(U.Fragment,{children:[n&&(0,U.jsx)(ZHe,{dataset:e}),(0,U.jsx)(QHe,{dataset:e})]})}};eUe.__docgenInfo={description:``,methods:[],displayName:`LegendItemLine`};var tUe=e(b(),1),nUe=16,rUe=(e,t,n)=>{switch(t){case X9.LINE:return(0,U.jsx)(eUe,{dataset:e});case X9.BAR:{let{backgroundColor:t}=e??{},r=t instanceof Array?t?.[n]:t;return(0,U.jsx)(`span`,{className:J9.legendItemBox,children:(0,U.jsx)(WHe,{color:r})})}case X9.PIE:return(0,U.jsx)(`span`,{className:J9.legendItemPoint,children:(0,U.jsx)(ca,{icon:(0,U.jsx)(Y9,{})})});case X9.SCATTER:{let{backgroundColor:t,borderColor:r}=e??{},i=t instanceof Array?t?.[n]:t;return(0,U.jsx)(`span`,{className:J9.legendItemPoint,children:(0,U.jsx)(BHe,{color:i??r})})}default:return null}},iUe=({hidden:e,dataset:t,handleClick:n,chartType:r,index:i})=>(0,U.jsxs)(`div`,{className:(0,tUe.default)(J9?.legendItem,e&&J9?.isHidden),onClick:n,children:[(0,U.jsx)(`span`,{className:J9.legendItemSymbol,style:{width:nUe},children:rUe(t,r,i)}),(0,U.jsx)(`span`,{className:J9.legendItemText,children:t?.label})]}),aUe=iUe;iUe.__docgenInfo={description:``,methods:[],displayName:`LegendItem`,props:{hidden:{required:!0,tsType:{name:`boolean`},description:``},dataset:{required:!0,tsType:{name:`union`,raw:`| IGeneratedLineChartDataset
1256
1256
  | IGenerateBarChartDataset
1257
1257
  | IGeneratedPieChartDataset
1258
1258
  | IGeneratedScatterChartDataset`,elements:[{name:`IGeneratedLineChartDataset`},{name:`IGenerateBarChartDataset`},{name:`IGeneratedPieChartDataset`},{name:`IGeneratedScatterChartDataset`}]},description:``},handleClick:{required:!0,tsType:{name:`MouseEventHandler`,elements:[{name:`HTMLDivElement`}],raw:`MouseEventHandler<HTMLDivElement>`},description:``},chartType:{required:!0,tsType:{name:`ChartType`},description:``},index:{required:!0,tsType:{name:`number`},description:``}}};var Q9=e(te(),1),oUe=e=>{let t=(0,Q9.get)(e,`options.plugins.annotation.annotations`,null);return!t||!Object.keys(t).length?[]:Object.values(t)},sUe=e=>(0,Q9.cloneDeep)(e?.options?.plugins?.legend?.labels?.generateLabels?.(e))??[];const cUe=e=>{let t=sUe(e),n=oUe(e);return(0,Q9.map)(t,e=>{let t=(0,Q9.find)(n,t=>e.text===t?.label?.content);return t?{...e,hidden:!t?.display}:e})};var lUe=r(((e,t)=>{(function(n){var r;typeof e==`object`?t.exports=n():typeof define==`function`&&define.amd?define(n):(typeof window<`u`?r=window:typeof global<`u`?r=global:typeof self<`u`&&(r=self),r.objectHash=n())})(function(){return function e(t,n,r){function i(s,c){if(!n[s]){if(!t[s]){var l=typeof a==`function`&&a;if(!c&&l)return l(s,!0);if(o)return o(s,!0);throw Error(`Cannot find module '`+s+`'`)}c=n[s]={exports:{}},t[s][0].call(c.exports,function(e){var n=t[s][1][e];return i(n||e)},c,c.exports,e,t,n,r)}return n[s].exports}for(var o=typeof a==`function`&&a,s=0;s<r.length;s++)i(r[s]);return i}({1:[function(e,t,n){(function(r,i,a,o,s,c,l,u,d){var f=e(`crypto`);function p(e,t){t=g(e,t);var n;return(n=t.algorithm===`passthrough`?new y:f.createHash(t.algorithm)).write===void 0&&(n.write=n.update,n.end=n.update),v(t,n).dispatch(e),n.update||n.end(``),n.digest?n.digest(t.encoding===`buffer`?void 0:t.encoding):(e=n.read(),t.encoding===`buffer`?e:e.toString(t.encoding))}(n=t.exports=p).sha1=function(e){return p(e)},n.keys=function(e){return p(e,{excludeValues:!0,algorithm:`sha1`,encoding:`hex`})},n.MD5=function(e){return p(e,{algorithm:`md5`,encoding:`hex`})},n.keysMD5=function(e){return p(e,{algorithm:`md5`,encoding:`hex`,excludeValues:!0})};var m=f.getHashes?f.getHashes().slice():[`sha1`,`md5`],h=(m.push(`passthrough`),[`buffer`,`hex`,`binary`,`base64`]);function g(e,t){var n={};if(n.algorithm=(t||={}).algorithm||`sha1`,n.encoding=t.encoding||`hex`,n.excludeValues=!!t.excludeValues,n.algorithm=n.algorithm.toLowerCase(),n.encoding=n.encoding.toLowerCase(),n.ignoreUnknown=!0===t.ignoreUnknown,n.respectType=!1!==t.respectType,n.respectFunctionNames=!1!==t.respectFunctionNames,n.respectFunctionProperties=!1!==t.respectFunctionProperties,n.unorderedArrays=!0===t.unorderedArrays,n.unorderedSets=!1!==t.unorderedSets,n.unorderedObjects=!1!==t.unorderedObjects,n.replacer=t.replacer||void 0,n.excludeKeys=t.excludeKeys||void 0,e===void 0)throw Error(`Object argument required.`);for(var r=0;r<m.length;++r)m[r].toLowerCase()===n.algorithm.toLowerCase()&&(n.algorithm=m[r]);if(m.indexOf(n.algorithm)===-1)throw Error(`Algorithm "`+n.algorithm+`" not supported. supported values: `+m.join(`, `));if(h.indexOf(n.encoding)===-1&&n.algorithm!==`passthrough`)throw Error(`Encoding "`+n.encoding+`" not supported. supported values: `+h.join(`, `));return n}function _(e){if(typeof e==`function`)return/^function\s+\w*\s*\(\s*\)\s*{\s+\[native code\]\s+}$/i.exec(Function.prototype.toString.call(e))!=null}function v(e,t,n){n||=[];function r(e){return t.update?t.update(e,`utf8`):t.write(e,`utf8`)}return{dispatch:function(t){return this[`_`+((t=e.replacer?e.replacer(t):t)===null?`null`:typeof t)](t)},_object:function(t){var i,o=Object.prototype.toString.call(t),s=/\[object (.*)\]/i.exec(o);if(s=(s=s?s[1]:`unknown:[`+o+`]`).toLowerCase(),0<=(o=n.indexOf(t)))return this.dispatch(`[CIRCULAR:`+o+`]`);if(n.push(t),a!==void 0&&a.isBuffer&&a.isBuffer(t))return r(`buffer:`),r(t);if(s===`object`||s===`function`||s===`asyncfunction`)return o=Object.keys(t),e.unorderedObjects&&(o=o.sort()),!1===e.respectType||_(t)||o.splice(0,0,`prototype`,`__proto__`,`constructor`),e.excludeKeys&&(o=o.filter(function(t){return!e.excludeKeys(t)})),r(`object:`+o.length+`:`),i=this,o.forEach(function(n){i.dispatch(n),r(`:`),e.excludeValues||i.dispatch(t[n]),r(`,`)});if(!this[`_`+s]){if(e.ignoreUnknown)return r(`[`+s+`]`);throw Error(`Unknown object type "`+s+`"`)}this[`_`+s](t)},_array:function(t,i){i=i===void 0?!1!==e.unorderedArrays:i;var a=this;if(r(`array:`+t.length+`:`),!i||t.length<=1)return t.forEach(function(e){return a.dispatch(e)});var o=[],i=t.map(function(t){var r=new y,i=n.slice();return v(e,r,i).dispatch(t),o=o.concat(i.slice(n.length)),r.read().toString()});return n=n.concat(o),i.sort(),this._array(i,!1)},_date:function(e){return r(`date:`+e.toJSON())},_symbol:function(e){return r(`symbol:`+e.toString())},_error:function(e){return r(`error:`+e.toString())},_boolean:function(e){return r(`bool:`+e.toString())},_string:function(e){r(`string:`+e.length+`:`),r(e.toString())},_function:function(t){r(`fn:`),_(t)?this.dispatch(`[native]`):this.dispatch(t.toString()),!1!==e.respectFunctionNames&&this.dispatch(`function-name:`+String(t.name)),e.respectFunctionProperties&&this._object(t)},_number:function(e){return r(`number:`+e.toString())},_xml:function(e){return r(`xml:`+e.toString())},_null:function(){return r(`Null`)},_undefined:function(){return r(`Undefined`)},_regexp:function(e){return r(`regex:`+e.toString())},_uint8array:function(e){return r(`uint8array:`),this.dispatch(Array.prototype.slice.call(e))},_uint8clampedarray:function(e){return r(`uint8clampedarray:`),this.dispatch(Array.prototype.slice.call(e))},_int8array:function(e){return r(`int8array:`),this.dispatch(Array.prototype.slice.call(e))},_uint16array:function(e){return r(`uint16array:`),this.dispatch(Array.prototype.slice.call(e))},_int16array:function(e){return r(`int16array:`),this.dispatch(Array.prototype.slice.call(e))},_uint32array:function(e){return r(`uint32array:`),this.dispatch(Array.prototype.slice.call(e))},_int32array:function(e){return r(`int32array:`),this.dispatch(Array.prototype.slice.call(e))},_float32array:function(e){return r(`float32array:`),this.dispatch(Array.prototype.slice.call(e))},_float64array:function(e){return r(`float64array:`),this.dispatch(Array.prototype.slice.call(e))},_arraybuffer:function(e){return r(`arraybuffer:`),this.dispatch(new Uint8Array(e))},_url:function(e){return r(`url:`+e.toString())},_map:function(t){return r(`map:`),t=Array.from(t),this._array(t,!1!==e.unorderedSets)},_set:function(t){return r(`set:`),t=Array.from(t),this._array(t,!1!==e.unorderedSets)},_file:function(e){return r(`file:`),this.dispatch([e.name,e.size,e.type,e.lastModfied])},_blob:function(){if(e.ignoreUnknown)return r(`[blob]`);throw Error(`Hashing Blob objects is currently not supported