=i-1){var u=a[t];u.x0=r,u.y0=o,u.x1=s,u.y1=l;return}for(var d=h[t],c=n/2+d,g=t+1,p=i-1;g>>1;h[f]l-o){var E=n?(r*v+s*m)/n:s;e(t,g,m,r,o,E,l),e(g,i,v,E,o,s,l)}else{var _=n?(o*v+l*m)/n:l;e(t,g,m,r,o,s,_),e(g,i,v,r,_,s,l)}}(0,l,e.value,t,i,n,r)}function vU(e,t,i,n,r){(1&e.depth?vD:vf)(e,t,i,n,r)}var vH=function e(t){function i(e,i,n,r,o){if((s=e._squarify)&&s.ratio===t)for(var s,a,l,h,u,d=-1,c=s.length,g=e.value;++d1?t:1)},i}(vM),vV={field:"value",tile:"treemapSquarify",size:[1,1],round:!1,ignoreParentValue:!0,padding:0,paddingInner:0,paddingOuter:0,paddingTop:0,paddingRight:0,paddingBottom:0,paddingLeft:0,as:["x","y"],sort:function(e,t){return t.value-e.value},ratio:.5*(1+Math.sqrt(5))};function vW(e,t){var i,n,r,o=(t=(0,em.f0)({},vV,t)).as;if(!(0,em.kJ)(o)||2!==o.length)throw TypeError('Invalid as: it must be an array with 2 strings (e.g. [ "x", "y" ])!');try{r=fw(t)}catch(e){console.warn(e)}var s=(i=t.tile,n=t.ratio,"treemapSquarify"===i?ep[i].ratio(n):ep[i]),a=vF().tile(s).size(t.size).round(t.round).padding(t.padding).paddingInner(t.paddingInner).paddingOuter(t.paddingOuter).paddingTop(t.paddingTop).paddingRight(t.paddingRight).paddingBottom(t.paddingBottom).paddingLeft(t.paddingLeft)(fC(e).sum(function(e){return t.ignoreParentValue&&e.children?0:e[r]}).sort(t.sort)),l=o[0],h=o[1];return a.each(function(e){e[l]=[e.x0,e.x1,e.x1,e.x0],e[h]=[e.y1,e.y1,e.y0,e.y0],["x0","x1","y0","y1"].forEach(function(t){-1===o.indexOf(t)&&delete e[t]})}),fO(a)}function vG(e){var t=e.data,i=e.colorField,n=e.rawFields,r=e.hierarchyConfig,o=void 0===r?{}:r,s=o.activeDepth,a=e.seriesField,l=e.type||"partition",h=({partition:vE,treemap:vW})[l](t,(0,ef.pi)((0,ef.pi)({field:a||"value"},(0,em.CE)(o,["activeDepth"])),{type:"hierarchy.".concat(l),as:["x","y"]})),u=[];return h.forEach(function(e){if(0===e.depth||s>0&&e.depth>s)return null;for(var t,r,l,h,d,c,g=e.data.name,p=(0,ef.pi)({},e);p.depth>1;)g="".concat(null===(r=p.parent.data)||void 0===r?void 0:r.name," / ").concat(g),p=p.parent;var f=(0,ef.pi)((0,ef.pi)((0,ef.pi)({},us(e.data,(0,ef.ev)((0,ef.ev)([],n||[],!0),[o.field],!1))),((t={})[vd]=g,t[vh]=p.data.name,t)),e);a&&(f[a]=e.data[a]||(null===(h=null===(l=e.parent)||void 0===l?void 0:l.data)||void 0===h?void 0:h[a])),i&&(f[i]=e.data[i]||(null===(c=null===(d=e.parent)||void 0===d?void 0:d.data)||void 0===c?void 0:c[i])),f.ext=o,f[p9]={hierarchyConfig:o,colorField:i,rawFields:n},u.push(f)}),u}function vz(e){var t,i=e.chart,n=e.options,r=n.color,o=n.colorField,s=void 0===o?vh:o,a=n.sunburstStyle,l=n.rawFields,h=void 0===l?[]:l,u=n.shape,d=vG(n);return i.data(d),a&&(t=function(e){return up({},{fillOpacity:Math.pow(.85,e.depth)},(0,em.mf)(a)?a(e):a)}),da(up({},e,{options:{xField:"x",yField:"y",seriesField:s,rawFields:(0,em.jj)((0,ef.ev)((0,ef.ev)([],vc,!0),h,!0)),polygon:{color:r,style:t,shape:u}}})),e}function vY(e){return e.chart.axis(!1),e}function vK(e){var t=e.chart,i=e.options.label,n=uv(t,"polygon");if(i){var r=i.fields,o=i.callback,s=(0,ef._T)(i,["fields","callback"]);n.label({fields:void 0===r?["name"]:r,callback:o,cfg:uC(s)})}else n.label(!1);return e}function v$(e){var t=e.chart,i=e.options,n=i.innerRadius,r=i.radius,o=i.reflect,s=t.coordinate({type:"polar",cfg:{innerRadius:n,radius:r}});return o&&s.reflect(o),e}function vX(e){var t,i=e.options,n=i.hierarchyConfig,r=i.meta;return um(u0({},((t={})[vu]=(0,em.U2)(r,(0,em.U2)(n,["field"],"value")),t)))(e)}function vj(e){var t=e.chart,i=e.options.tooltip;if(!1===i)t.tooltip(!1);else{var n=i;(0,em.U2)(i,"fields")||(n=up({},{customItems:function(e){return e.map(function(e){var i=(0,em.U2)(t.getOptions(),"scales"),n=(0,em.U2)(i,[vd,"formatter"],function(e){return e}),r=(0,em.U2)(i,[vu,"formatter"],function(e){return e});return(0,ef.pi)((0,ef.pi)({},e),{name:n(e.data[vd]),value:r(e.data.value)})})}},n)),t.tooltip(n)}return e}function vq(e){var t,i,n=e.chart,r=e.options,o=r.drilldown;return uX({chart:n,options:(t=r.drilldown,i=r.interactions,(null==t?void 0:t.enabled)?up({},r,{interactions:(0,ef.ev)((0,ef.ev)([],void 0===i?[]:i,!0),[{type:"drill-down",cfg:{drillDownConfig:t,transformData:vG}}],!1)}):r)}),(null==o?void 0:o.enabled)&&(n.appendPadding=uT(n.appendPadding,(0,em.U2)(o,["breadCrumb","position"]))),e}function vZ(e){return um(uq,uY("sunburstStyle"),vz,vY,vX,uK,v$,vj,vK,vq,uj,u1())(e)}function vJ(e,t){if((0,em.kJ)(e))return e.find(function(e){return e.type===t})}function vQ(e,t){var i=vJ(e,t);return i&&!1!==i.enable}function v0(e){var t=e.interactions,i=e.drilldown;return(0,em.U2)(i,"enabled")||vQ(t,"treemap-drill-down")}function v1(e){var t=e.data,i=e.colorField,n=e.enableDrillDown,r=e.hierarchyConfig,o=vW(t,(0,ef.pi)((0,ef.pi)({},r),{type:"hierarchy.treemap",field:"value",as:["x","y"]})),s=[];return o.forEach(function(e){if(0===e.depth||n&&1!==e.depth||!n&&e.children)return null;var o=e.ancestors().map(function(e){return{data:e.data,height:e.height,value:e.value}}),a=n&&(0,em.kJ)(t.path)?o.concat(t.path.slice(1)):o,l=Object.assign({},e.data,(0,ef.pi)({x:e.x,y:e.y,depth:e.depth,value:e.value,path:a},e));if(!e.data[i]&&e.parent){var h=e.ancestors().find(function(e){return e.data[i]});l[i]=null==h?void 0:h.data[i]}else l[i]=e.data[i];l[p9]={hierarchyConfig:r,colorField:i,enableDrillDown:n},s.push(l)}),s}function v2(e){return up({options:{rawFields:["value"],tooltip:{fields:["name","value",e.options.colorField,"path"],formatter:function(e){return{name:e.name,value:e.value}}}}},e)}function v4(e){var t=e.chart,i=e.options,n=i.color,r=i.colorField,o=i.rectStyle,s=i.hierarchyConfig,a=i.rawFields,l=v1({data:i.data,colorField:i.colorField,enableDrillDown:v0(i),hierarchyConfig:s});return t.data(l),da(up({},e,{options:{xField:"x",yField:"y",seriesField:r,rawFields:a,polygon:{color:n,style:o}}})),t.coordinate().reflect("y"),e}function v5(e){return e.chart.axis(!1),e}function v6(e){var t,i,n=e.chart,r=e.options,o=r.interactions,s=r.drilldown;uX({chart:n,options:(t=r.drilldown,i=r.interactions,v0(r)?up({},r,{interactions:(0,ef.ev)((0,ef.ev)([],void 0===i?[]:i,!0),[{type:"drill-down",cfg:{drillDownConfig:t,transformData:v1}}],!1)}):r)});var a=vJ(o,"view-zoom");return a&&(!1!==a.enable?n.getCanvas().on("mousewheel",function(e){e.preventDefault()}):n.getCanvas().off("mousewheel")),v0(r)&&(n.appendPadding=uT(n.appendPadding,(0,em.U2)(s,["breadCrumb","position"]))),e}function v3(e){return um(v2,uq,uY("rectStyle"),v4,v5,uK,u$,v6,uj,u1())(e)}!function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.type="sunburst",t}(0,ef.ZT)(t,e),t.getDefaultOptions=function(){return vg},t.prototype.getDefaultOptions=function(){return t.getDefaultOptions()},t.prototype.getSchemaAdaptor=function(){return vZ},t.SUNBURST_ANCESTOR_FIELD=vh,t.SUNBURST_PATH_FIELD=vd,t.NODE_ANCESTORS_FIELD=fN}(dc);var v9={colorField:"name",rectStyle:{lineWidth:1,stroke:"#fff"},hierarchyConfig:{tile:"treemapSquarify"},label:{fields:["name"],layout:{type:"limit-in-shape"}},tooltip:{showMarkers:!1,showTitle:!1},drilldown:{enabled:!1,breadCrumb:{position:"bottom-left",rootText:"初始",dividerText:"/",textStyle:{fontSize:12,fill:"rgba(0, 0, 0, 0.65)",cursor:"pointer"},activeTextStyle:{fill:"#87B5FF"}}}};!function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.type="treemap",t}(0,ef.ZT)(t,e),t.getDefaultOptions=function(){return v9},t.prototype.changeData=function(e){var t,i=this.options,n=i.colorField,r=i.interactions,o=i.hierarchyConfig;this.updateOption({data:e});var s=v1({data:e,colorField:n,enableDrillDown:vQ(r,"treemap-drill-down"),hierarchyConfig:o});this.chart.changeData(s),(t=this.chart.interactions["drill-down"])&&t.context.actions.find(function(e){return"drill-down-action"===e.name}).reset()},t.prototype.getDefaultOptions=function(){return t.getDefaultOptions()},t.prototype.getSchemaAdaptor=function(){return v3}}(dc);var v7="path",v8={appendPadding:[10,0,20,0],blendMode:"multiply",tooltip:{showTitle:!1,showMarkers:!1,fields:["id","size"],formatter:function(e){return{name:e.id,value:e.size}}},legend:{position:"top-left"},label:{style:{textAlign:"center",fill:"#fff"}},interactions:[{type:"legend-filter",enable:!1}],state:{active:{style:{stroke:"#000"}},selected:{style:{stroke:"#000",lineWidth:2}},inactive:{style:{fillOpacity:.3,strokeOpacity:.3}}},defaultInteractions:["tooltip","venn-legend-active"]};function Ee(e){e&&e.geometries[0].elements.forEach(function(e){e.shape.toFront()})}var Et=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return(0,ef.ZT)(t,e),t.prototype.syncElementsPos=function(){Ee(this.context.view)},t.prototype.active=function(){e.prototype.active.call(this),this.syncElementsPos()},t.prototype.toggle=function(){e.prototype.toggle.call(this),this.syncElementsPos()},t.prototype.reset=function(){e.prototype.reset.call(this),this.syncElementsPos()},t}(rb("element-active")),Ei=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return(0,ef.ZT)(t,e),t.prototype.syncElementsPos=function(){Ee(this.context.view)},t.prototype.highlight=function(){e.prototype.highlight.call(this),this.syncElementsPos()},t.prototype.toggle=function(){e.prototype.toggle.call(this),this.syncElementsPos()},t.prototype.clear=function(){e.prototype.clear.call(this),this.syncElementsPos()},t.prototype.reset=function(){e.prototype.reset.call(this),this.syncElementsPos()},t}(rb("element-highlight")),En=rb("element-selected"),Er=rb("element-single-selected"),Eo=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return(0,ef.ZT)(t,e),t.prototype.syncElementsPos=function(){Ee(this.context.view)},t.prototype.selected=function(){e.prototype.selected.call(this),this.syncElementsPos()},t.prototype.toggle=function(){e.prototype.toggle.call(this),this.syncElementsPos()},t.prototype.reset=function(){e.prototype.reset.call(this),this.syncElementsPos()},t}(En),Es=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return(0,ef.ZT)(t,e),t.prototype.syncElementsPos=function(){Ee(this.context.view)},t.prototype.selected=function(){e.prototype.selected.call(this),this.syncElementsPos()},t.prototype.toggle=function(){e.prototype.toggle.call(this),this.syncElementsPos()},t.prototype.reset=function(){e.prototype.reset.call(this),this.syncElementsPos()},t}(Er);rA("venn-element-active",Et),rA("venn-element-highlight",Ei),rA("venn-element-selected",Eo),rA("venn-element-single-selected",Es),r3("venn-element-active",{start:[{trigger:"element:mouseenter",action:"venn-element-active:active"}],end:[{trigger:"element:mouseleave",action:"venn-element-active:reset"}]}),r3("venn-element-highlight",{start:[{trigger:"element:mouseenter",action:"venn-element-highlight:highlight"}],end:[{trigger:"element:mouseleave",action:"venn-element-highlight:reset"}]}),r3("venn-element-selected",{start:[{trigger:"element:click",action:"venn-element-selected:toggle"}],rollback:[{trigger:"dblclick",action:["venn-element-selected:reset"]}]}),r3("venn-element-single-selected",{start:[{trigger:"element:click",action:"venn-element-single-selected:toggle"}],rollback:[{trigger:"dblclick",action:["venn-element-single-selected:reset"]}]}),r3("venn-legend-active",{start:[{trigger:"legend-item:mouseenter",action:["list-active:active","venn-element-active:active"]}],end:[{trigger:"legend-item:mouseleave",action:["list-active:reset","venn-element-active:reset"]}]}),r3("venn-legend-highlight",{start:[{trigger:"legend-item:mouseenter",action:["legend-item-highlight:highlight","venn-element-highlight:highlight"]}],end:[{trigger:"legend-item:mouseleave",action:["legend-item-highlight:reset","venn-element-highlight:reset"]}]}),oV("venn",function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return(0,ef.ZT)(t,e),t.prototype.getLabelPoint=function(e,t,i){var n=e.data,r=n.x,o=n.y,s=e.customLabelInfo,a=s.offsetX,l=s.offsetY;return{content:e.content[i],x:r+a,y:o+l}},t}(o3));var Ea=Array.isArray,El=" \n\v\f\r \xa0 \u2028\u2029",Eh=RegExp("([a-z])["+El+",]*((-?\\d*\\.?\\d*(?:e[\\-+]?\\d+)?["+El+"]*,?["+El+"]*)+)","ig"),Eu=RegExp("(-?\\d*\\.?\\d*(?:e[\\-+]?\\d+)?)["+El+"]*,?["+El+"]*","ig");o$("schema","venn",{draw:function(e,t){var i=function(e){if(!e)return null;if(Ea(e))return e;var t={a:7,c:6,o:2,h:1,l:2,m:2,r:4,q:4,s:4,t:2,v:1,u:3,z:0},i=[];return String(e).replace(Eh,function(e,n,r){var o=[],s=n.toLowerCase();if(r.replace(Eu,function(e,t){t&&o.push(+t)}),"m"===s&&o.length>2&&(i.push([n].concat(o.splice(0,2))),s="l",n="m"===n?"l":"L"),"o"===s&&1===o.length&&i.push([n,o[0]]),"r"===s)i.push([n].concat(o));else for(;o.length>=t[s]&&(i.push([n].concat(o.splice(0,t[s]))),t[s]););return""}),i}(e.data[v7]),n=up({},e.defaultStyle,{fill:e.color},e.style),r=t.addGroup({name:"venn-shape"});r.addShape("path",{attrs:(0,ef.pi)((0,ef.pi)({},n),{path:i}),name:"venn-path"});var o=e.customInfo,s=o.offsetX,a=o.offsetY,l=sr.transform(null,[["t",s,a]]);return r.setMatrix(l),r},getMarker:function(e){var t=e.color;return{symbol:"circle",style:{lineWidth:0,stroke:t,fill:t,r:4}}}});var Ed={normal:function(e){return e},multiply:function(e,t){return e*t/255},screen:function(e,t){return 255*(1-(1-e/255)*(1-t/255))},overlay:function(e,t){return t<128?2*e*t/255:255*(1-2*(1-e/255)*(1-t/255))},darken:function(e,t){return e>t?t:e},lighten:function(e,t){return e>t?e:t},dodge:function(e,t){return 255===e?255:(e=255*(t/255)/(1-e/255))>255?255:e},burn:function(e,t){return 255===t?255:0===e?0:255*(1-Math.min(1,(1-t/255)/(e/255)))}},Ec=function(e){if(!Ed[e])throw Error("unknown blend mode "+e);return Ed[e]};function Eg(e){var t,i=e.replace("/s+/g","");return"string"!=typeof i||i.startsWith("rgba")||i.startsWith("#")?(i.startsWith("rgba")&&(t=i.replace("rgba(","").replace(")","").split(",")),i.startsWith("#")&&(t=eQ.rgb2arr(i).concat([1])),t.map(function(e,t){return 3===t?Number(e):0|e})):eQ.rgb2arr(eQ.toRGB(i)).concat([1])}var Ep=i(69916);function Ef(e,t){var i,n=function(e){for(var t=[],i=0;it[i].radius+1e-10)return!1;return!0}(t,e)}),o=0,s=0,a=[];if(r.length>1){var l=EC(r);for(i=0;i-1){var f=e[d.parentIndex[p]],m=Math.atan2(d.x-f.x,d.y-f.y),v=Math.atan2(u.x-f.x,u.y-f.y),E=v-m;E<0&&(E+=2*Math.PI);var _=v-E/2,C=Ev(c,{x:f.x+f.radius*Math.sin(_),y:f.y+f.radius*Math.cos(_)});C>2*f.radius&&(C=2*f.radius),(null===g||g.width>C)&&(g={circle:f,width:C,p1:d,p2:u})}null!==g&&(a.push(g),o+=Em(g.circle.radius,g.width),u=d)}}else{var S=e[0];for(i=1;iMath.abs(S.radius-e[i].radius)){y=!0;break}y?o=s=0:(o=S.radius*S.radius*Math.PI,a.push({circle:S,p1:{x:S.x,y:S.y+S.radius},p2:{x:S.x-1e-10,y:S.y+S.radius},width:2*S.radius}))}return s/=2,t&&(t.area=o+s,t.arcArea=o,t.polygonArea=s,t.arcs=a,t.innerPoints=r,t.intersectionPoints=n),o+s}function Em(e,t){return e*e*Math.acos(1-t/e)-(e-t)*Math.sqrt(t*(2*e-t))}function Ev(e,t){return Math.sqrt((e.x-t.x)*(e.x-t.x)+(e.y-t.y)*(e.y-t.y))}function EE(e,t,i){if(i>=e+t)return 0;if(i<=Math.abs(e-t))return Math.PI*Math.min(e,t)*Math.min(e,t);var n=e-(i*i-t*t+e*e)/(2*i),r=t-(i*i-e*e+t*t)/(2*i);return Em(e,n)+Em(t,r)}function E_(e,t){var i=Ev(e,t),n=e.radius,r=t.radius;if(i>=n+r||i<=Math.abs(n-r))return[];var o=(n*n-r*r+i*i)/(2*i),s=Math.sqrt(n*n-o*o),a=e.x+o*(t.x-e.x)/i,l=e.y+o*(t.y-e.y)/i,h=-(t.y-e.y)*(s/i),u=-(t.x-e.x)*(s/i);return[{x:a+h,y:l-u},{x:a-h,y:l+u}]}function EC(e){for(var t={x:0,y:0},i=0;i=Math.min(r[u].size,r[d].size)&&(h=0),o[u].push({set:d,size:l.size,weight:h}),o[d].push({set:u,size:l.size,weight:h})}var c=[];for(i in o)if(o.hasOwnProperty(i)){for(var g=0,s=0;s=8){var r=function(e,t){var i,n,r,o,s,a=(t=t||{}).restarts||10,l=[],h={};for(r=0;r=Math.min(l[t].size,l[r].size)?s=1:e.size<=1e-10&&(s=-1),n[t][r]=n[r][t]=s}),{distances:i,constraints:n}),c=d.distances,g=d.constraints,p=(0,Ep.norm2)(c.map(Ep.norm2))/c.length;c=c.map(function(e){return e.map(function(e){return e/p})});var f=function(e,t){return function(e,t,i,n){var r,o=0;for(r=0;r0&&p<=d||c<0&&p>=d||(o+=2*f*f,t[2*r]+=4*f*(s-h),t[2*r+1]+=4*f*(a-u),t[2*l]+=4*f*(h-s),t[2*l+1]+=4*f*(u-a))}return o}(e,t,c,g)};for(r=0;rt?1:-1}),t=0;t=a&&(s=r[n],a=l)}var h=(0,Ep.nelderMead)(function(e){return -1*ES({x:e[0],y:e[1]},t,i)},[s.x,s.y],{maxIterations:500,minErrorDelta:1e-10}).x,u={x:h[0],y:h[1]},d=!0;for(n=0;nt[n].radius){d=!1;break}for(n=0;n0&&console.log("WARNING: area "+o+" not represented on screen")}return i}(l,a);return a.forEach(function(e){var t=e.sets,i=t.join(",");e.id=i;var n=function(e){var t={};Ef(e,t);var i=t.arcs;if(0===i.length)return"M 0 0";if(1==i.length){var n,r,o,s,a,l=i[0].circle;return n=l.x,r=l.y,o=l.radius,s=[],a=n-o,s.push("M",a,r),s.push("A",o,o,0,1,0,a+2*o,r),s.push("A",o,o,0,1,0,a,r),s.join(" ")}for(var h=["\nM",i[0].p2.x,i[0].p2.y],u=0;uc;h.push("\nA",c,c,0,g?1:0,1,d.p1.x,d.p1.y)}return h.join(" ")}(t.map(function(e){return l[e]}));/[zZ]$/.test(n)||(n+=" Z"),e[v7]=n;var r=h[i]||{x:0,y:0};(0,em.f0)(e,r)}),a}(i,Math.max(d.width-(l+u),0),Math.max(d.height-(a+h),0),0);t.data(c);var g=dl(up({},e,{options:{xField:"x",yField:"y",sizeField:o,seriesField:"id",rawFields:[r,o],schema:{shape:"venn",style:n}}})).ext.geometry;g.customInfo({offsetX:u,offsetY:a});var p=function(e,t){var i=e.options.color;if("function"!=typeof i){var n=ER(e,t,"string"==typeof i?[i]:i);return function(e){return n(e.id)}}return i}(e,c);return"function"==typeof p&&g.color("id",function(t){return p(c.find(function(e){return e.id===t}),ER(e,c)(t))}),e}function Ew(e){var t=e.chart,i=e.options.label,n=uy(t.appendPadding),r=n[0],o=n[3],s=uv(t,"schema");if(i){var a=i.callback,l=(0,ef._T)(i,["callback"]);s.label({fields:["id"],callback:a,cfg:(0,em.b$)({},uC(l),{type:"venn",customLabelInfo:{offsetX:o,offsetY:r}})})}else s.label(!1);return e}function EO(e){var t=e.chart,i=e.options,n=i.legend,r=i.sizeField;return t.legend("id",n),t.legend(r,!1),e}function Ex(e){return e.chart.axis(!1),e}function ED(e){var t=e.options,i=e.chart,n=t.interactions;if(n){var r={"legend-active":"venn-legend-active","legend-highlight":"venn-legend-highlight"};uX(up({},e,{options:{interactions:n.map(function(e){return(0,ef.pi)((0,ef.pi)({},e),{type:r[e.type]||e.type})})}}))}return i.removeInteraction("legend-active"),i.removeInteraction("legend-highlight"),e}function EM(e){return um(EL,uq,EN,EI,Ew,u0({}),EO,Ex,u$,ED,uj)(e)}!function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.type="venn",t}(0,ef.ZT)(t,e),t.getDefaultOptions=function(){return v8},t.prototype.getDefaultOptions=function(){return t.getDefaultOptions()},t.prototype.getSchemaAdaptor=function(){return EM},t.prototype.triggerResize=function(){this.chart.destroyed||(this.chart.forceFit(),this.chart.clear(),this.execAdaptor(),this.chart.render(!0))}}(dc);var Ek="violinY",EP="minMax",EF="quantile",EB="median",EU="violin_view",EH=up({},dc.getDefaultOptions(),{syncViewPadding:!0,kde:{type:"triangular",sampleSize:32,width:3},violinStyle:{lineWidth:1,fillOpacity:.3,strokeOpacity:.75},xAxis:{grid:{line:null},tickLine:{alignTick:!1}},yAxis:{grid:{line:{style:{lineWidth:.5,lineDash:[4,4]}}}},legend:{position:"top-left"},tooltip:{showMarkers:!1}}),EV=i(53843),EW=i.n(EV);function EG(e,t){var i=e.length*t;if(0===e.length)throw Error("quantile requires at least one data point.");if(t<0||t>1)throw Error("quantiles must be between 0 and 1");return 1===t?e[e.length-1]:0===t?e[0]:i%1!=0?e[Math.ceil(i)-1]:e.length%2==0?(e[i-1]+e[i])/2:e[i]}function Ez(e,t,i){var n=e[t];e[t]=e[i],e[i]=n}function EY(e,t,i,n){for(i=i||0,n=n||e.length-1;n>i;){if(n-i>600){var r=n-i+1,o=t-i+1,s=Math.log(r),a=.5*Math.exp(2*s/3),l=.5*Math.sqrt(s*a*(r-a)/r);o-r/2<0&&(l*=-1);var h=Math.max(i,Math.floor(t-o*a/r+l)),u=Math.min(n,Math.floor(t+(r-o)*a/r+l));EY(e,t,h,u)}var d=e[t],c=i,g=n;for(Ez(e,i,t),e[n]>d&&Ez(e,i,n);cd;)g--}e[i]===d?Ez(e,i,g):Ez(e,++g,n),g<=t&&(i=g+1),t<=g&&(n=g-1)}}function EK(e,t){var i=e.slice();if(Array.isArray(t)){!function(e,t){for(var i=[0],n=0;n0?u:d};return dn(up({},e,{options:{xField:r,yField:_e,seriesField:r,rawFields:[o,_t,_n,_e],widthRatio:l,interval:{style:h,shape:g||"waterfall",color:f}}})).ext.geometry.customInfo((0,ef.pi)((0,ef.pi)({},p),{leaderLine:a})),e}function _l(e){var t,i,n=e.options,r=n.xAxis,o=n.yAxis,s=n.xField,a=n.yField,l=n.meta,h=up({},{alias:a},(0,em.U2)(l,a));return um(u0(((t={})[s]=r,t[a]=o,t[_e]=o,t),up({},l,((i={})[_e]=h,i[_t]=h,i[_i]=h,i))))(e)}function _h(e){var t=e.chart,i=e.options,n=i.xAxis,r=i.yAxis,o=i.xField,s=i.yField;return!1===n?t.axis(o,!1):t.axis(o,n),!1===r?(t.axis(s,!1),t.axis(_e,!1)):(t.axis(s,r),t.axis(_e,r)),e}function _u(e){var t=e.chart,i=e.options,n=i.legend,r=i.total,o=i.risingFill,s=i.fallingFill,a=u3(i.locale);if(!1===n)t.legend(!1);else{var l=[{name:a.get(["general","increase"]),value:"increase",marker:{symbol:"square",style:{r:5,fill:o}}},{name:a.get(["general","decrease"]),value:"decrease",marker:{symbol:"square",style:{r:5,fill:s}}}];r&&l.push({name:r.label||"",value:"total",marker:{symbol:"square",style:up({},{r:5},(0,em.U2)(r,"style"))}}),t.legend(up({},{custom:!0,position:"top",items:l},n)),t.removeInteraction("legend-filter")}return e}function _d(e){var t=e.chart,i=e.options,n=i.label,r=i.labelMode,o=i.xField,s=uv(t,"interval");if(n){var a=n.callback,l=(0,ef._T)(n,["callback"]);s.label({fields:"absolute"===r?[_i,o]:[_t,o],callback:a,cfg:uC(l)})}else s.label(!1);return e}function _c(e){var t=e.chart,i=e.options,n=i.tooltip,r=i.xField,o=i.yField;if(!1!==n){t.tooltip((0,ef.pi)({showCrosshairs:!1,showMarkers:!1,shared:!0,fields:[o]},n));var s=t.geometries[0];(null==n?void 0:n.formatter)?s.tooltip("".concat(r,"*").concat(o),n.formatter):s.tooltip(o)}else t.tooltip(!1);return e}function _g(e){return um(_s,uq,_a,_l,_h,_u,_c,_d,uZ,uX,uj,u1())(e)}o$("interval","waterfall",{draw:function(e,t){var i=e.customInfo,n=e.points,r=e.nextPoints,o=t.addGroup(),s=this.parsePath(function(e){for(var t=[],i=0;i>2),e.width=2048/t,e.height=2048/t,(g=e.getContext("2d",{willReadFrequently:!0})).fillStyle=g.strokeStyle="red",g.textAlign="center",{context:g,ratio:t}),v=c.board?c.board:_A((i[0]>>5)*i[1]),E=u.length,_=[],C=u.map(function(e,t,i){return e.text=_E.call(this,e,t,i),e.font=n.call(this,e,t,i),e.style=_C.call(this,e,t,i),e.weight=o.call(this,e,t,i),e.rotate=s.call(this,e,t,i),e.size=~~r.call(this,e,t,i),e.padding=a.call(this,e,t,i),e}).sort(function(e,t){return t.size-e.size}),S=-1,y=c.board?[{x:0,y:0},{x:p,y:f}]:null;return function(){for(var e=Date.now();Date.now()-e>1,t.y=f*(h()+.5)>>1,function(e,t,i,n){if(!t.sprite){var r=e.context,o=e.ratio;r.clearRect(0,0,2048/o,2048/o);var s=0,a=0,l=0,h=i.length;for(--n;++n>5<<5,d=~~Math.max(Math.abs(f+m),Math.abs(f-m))}else u=u+31>>5<<5;if(d>l&&(l=d),s+u>=2048&&(s=0,a+=l,l=0),a+d>=2048)break;r.translate((s+(u>>1))/o,(a+(d>>1))/o),t.rotate&&r.rotate(t.rotate*_v),r.fillText(t.text,0,0),t.padding&&(r.lineWidth=2*t.padding,r.strokeText(t.text,0,0)),r.restore(),t.width=u,t.height=d,t.xoff=s,t.yoff=a,t.x1=u>>1,t.y1=d>>1,t.x0=-t.x1,t.y0=-t.y1,t.hasText=!0,s+=u}for(var E=r.getImageData(0,0,2048/o,2048/o).data,_=[];--n>=0;)if((t=i[n]).hasText){for(var u=t.width,C=u>>5,d=t.y1-t.y0,S=0;S>5),R=E[(a+b)*2048+(s+S)<<2]?1<<31-S%32:0;_[A]|=R,y|=R}y?T=b:(t.y0++,d--,b--,a++)}t.y1=t.y0+T,t.sprite=_.slice(0,(t.y1-t.y0)*C)}}}(m,t,C,S),t.hasText&&function(e,t,n){for(var r,o,s,a=t.x,u=t.y,d=Math.sqrt(i[0]*i[0]+i[1]*i[1]),c=l(i),g=.5>h()?1:-1,p=-g;(r=c(p+=g))&&!(Math.min(Math.abs(o=~~r[0]),Math.abs(s=~~r[1]))>=d);)if(t.x=a+o,t.y=u+s,!(t.x+t.x0<0)&&!(t.y+t.y0<0)&&!(t.x+t.x1>i[0])&&!(t.y+t.y1>i[1])&&(!n||!function(e,t,i){i>>=5;for(var n,r=e.sprite,o=e.width>>5,s=e.x-(o<<4),a=127&s,l=32-a,h=e.y1-e.y0,u=(e.y+e.y0)*i+(s>>5),d=0;d>>a:0))&t[u+c])return!0;u+=i}return!1}(t,e,i[0]))&&(!n||t.x+t.x1>n[0].x&&t.x+t.x0n[0].y&&t.y+t.y0>5,v=i[0]>>5,E=t.x-(m<<4),_=127&E,C=32-_,S=t.y1-t.y0,y=void 0,T=(t.y+t.y0)*v+(E>>5),b=0;b>>_:0);T+=v}return delete t.sprite,!0}return!1}(v,t,y)&&(_.push(t),y?c.hasImage||function(e,t){var i=e[0],n=e[1];t.x+t.x0n.x&&(n.x=t.x+t.x1),t.y+t.y1>n.y&&(n.y=t.y+t.y1)}(y,t):y=[{x:t.x+t.x0,y:t.y+t.y0},{x:t.x+t.x1,y:t.y+t.y1}],t.x-=i[0]>>1,t.y-=i[1]>>1)}c._tags=_,c._bounds=y}(),c},c.createMask=function(e){var t=document.createElement("canvas"),n=i[0],r=i[1];if(n&&r){var o=n>>5,s=_A((n>>5)*r);t.width=n,t.height=r;var a=t.getContext("2d");a.drawImage(e,0,0,e.width,e.height,0,0,n,r);for(var l=a.getImageData(0,0,n,r).data,h=0;h>5),g=h*n+u<<2,p=l[g]>=250&&l[g+1]>=250&&l[g+2]>=250?1<<31-u%32:0;s[d]|=p}c.board=s,c.hasImage=!0}},c.timeInterval=function(e){d=null==e?1/0:e},c.words=function(e){u=e},c.size=function(e){i=[+e[0],+e[1]]},c.font=function(e){n=_R(e)},c.fontWeight=function(e){o=_R(e)},c.rotate=function(e){s=_R(e)},c.spiral=function(e){l=_L[e]||e},c.fontSize=function(e){r=_R(e)},c.padding=function(e){a=_R(e)},c.random=function(e){h=_R(e)},["font","fontSize","fontWeight","padding","rotate","size","spiral","timeInterval","random"].forEach(function(e){(0,em.UM)(t[e])||c[e](t[e])}),c.words(W),t.imageMask&&c.createMask(t.imageMask),(g=c.start()._tags).forEach(function(e){e.x+=t.size[0]/2,e.y+=t.size[1]/2}),f=(p=t.size)[0],m=p[1],g.push({text:"",value:0,x:0,y:0,opacity:0}),g.push({text:"",value:0,x:f,y:m,opacity:0}),g}function _I(e){var t=e.chart,i=e.options,n=i.colorField,r=i.color,o=_N(e);return t.data(o),ds(up({},e,{options:{xField:"x",yField:"y",seriesField:n&&_p,rawFields:(0,em.mf)(r)&&(0,ef.ev)((0,ef.ev)([],(0,em.U2)(i,"rawFields",[]),!0),["datum"],!1),point:{color:r,shape:"word-cloud"}}})).ext.geometry.label(!1),t.coordinate().reflect("y"),t.axis(!1),e}function _w(e){return um(u0({x:{nice:!1},y:{nice:!1}}))(e)}function _O(e){var t=e.chart,i=e.options,n=i.legend,r=i.colorField;return!1===n?t.legend(!1):r&&t.legend(_p,n),e}function _x(e){um(_I,_w,u$,_O,uX,uj,uq,uZ)(e)}o$("point","word-cloud",{draw:function(e,t){var i=e.x,n=e.y,r=t.addShape("text",{attrs:(0,ef.pi)((0,ef.pi)({},{fontSize:e.data.size,text:e.data.text,textAlign:"center",fontFamily:e.data.font,fontWeight:e.data.weight,fill:e.color||e.defaultStyle.stroke,textBaseline:"alphabetic"}),{x:i,y:n})}),o=e.data.rotate;return"number"==typeof o&&sr.rotate(r,o*Math.PI/180),r}}),function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.type="word-cloud",t}(0,ef.ZT)(t,e),t.getDefaultOptions=function(){return _f},t.prototype.changeData=function(e){this.updateOption({data:e}),this.options.imageMask?this.render():this.chart.changeData(_N({chart:this.chart,options:this.options}))},t.prototype.getDefaultOptions=function(){return t.getDefaultOptions()},t.prototype.render=function(){var t=this;return new Promise(function(i){var n=t.options.imageMask;if(!n){e.prototype.render.call(t),i();return}var r=function(n){t.options=(0,ef.pi)((0,ef.pi)({},t.options),{imageMask:n||null}),e.prototype.render.call(t),i()};new Promise(function(e,t){if(n instanceof HTMLImageElement){e(n);return}if((0,em.HD)(n)){var i=new Image;i.crossOrigin="anonymous",i.src=n,i.onload=function(){e(i)},i.onerror=function(){uo(X.ERROR,!1,"image %s load failed !!!",n),t()};return}uo(X.WARN,void 0===n,"The type of imageMask option must be String or HTMLImageElement."),t()}).then(r).catch(r)})},t.prototype.getSchemaAdaptor=function(){return _x},t.prototype.triggerResize=function(){var t=this;this.chart.destroyed||(this.execAdaptor(),window.setTimeout(function(){e.prototype.triggerResize.call(t)}))}}(dc),function(e){function t(t,i,n,r){var o=e.call(this,t,up({},r,i))||this;return o.type="g2-plot",o.defaultOptions=r,o.adaptor=n,o}(0,ef.ZT)(t,e),t.prototype.getDefaultOptions=function(){return this.defaultOptions},t.prototype.getSchemaAdaptor=function(){return this.adaptor}}(dc),u6["en-US"]={locale:"en-US",general:{increase:"Increase",decrease:"Decrease",root:"Root"},statistic:{total:"Total"},conversionTag:{label:"Rate"},legend:{},tooltip:{},slider:{},scrollbar:{},waterfall:{total:"Total"}},u6["zh-CN"]={locale:"zh-CN",general:{increase:"增加",decrease:"减少",root:"初始"},statistic:{total:"总计"},conversionTag:{label:"转化率"},legend:{},tooltip:{},slider:{},scrollbar:{},waterfall:{total:"总计"}}},31506:function(e,t,i){"use strict";i.d(t,{Dg:function(){return h},lh:function(){return a},m$:function(){return o},vs:function(){return l},zu:function(){return s}});var n=i(35600),r=i(31437);function o(e,t,i){var r=[0,0,0,0,0,0,0,0,0];return n.vc(r,i),n.Jp(e,r,t)}function s(e,t,i){var r=[0,0,0,0,0,0,0,0,0];return n.Us(r,i),n.Jp(e,r,t)}function a(e,t,i){var r=[0,0,0,0,0,0,0,0,0];return n.xJ(r,i),n.Jp(e,r,t)}function l(e,t){for(var i=e?[].concat(e):[1,0,0,0,1,0,0,0,1],r=0,l=t.length;r=0;return i?o?2*Math.PI-n:n:o?n:2*Math.PI-n}},39499:function(e,t,i){"use strict";i.d(t,{e9:function(){return l},Wq:function(){return L},tr:function(){return c},wb:function(){return f},zx:function(){return S}});var n=i(21030),r=/[MLHVQTCSAZ]([^MLHVQTCSAZ]*)/ig,o=/[^\s\,]+/ig,s=function(e){var t=e||[];return(0,n.kJ)(t)?t:(0,n.HD)(t)?(t=t.match(r),(0,n.S6)(t,function(e,i){if((e=e.match(o))[0].length>1){var r=e[0].charAt(0);e.splice(1,0,e[0].substr(1)),e[0]=r}(0,n.S6)(e,function(t,i){isNaN(t)||(e[i]=+t)}),t[i]=e}),t):void 0},a=i(31437),l=function(e,t,i){void 0===t&&(t=!1),void 0===i&&(i=[[0,0],[1,1]]);for(var n,r,o,s=!!t,l=[],h=0,u=e.length;h2&&(i.push([n].concat(o.splice(0,2))),s="l",n="m"===n?"l":"L"),"o"===s&&1===o.length&&i.push([n,o[0]]),"r"===s)i.push([n].concat(o));else for(;o.length>=t[s]&&(i.push([n].concat(o.splice(0,t[s]))),t[s]););return""}),i}var g=/[a-z]/;function p(e,t){return[t[0]+(t[0]-e[0]),t[1]+(t[1]-e[1])]}function f(e){var t=c(e);if(!t||!t.length)return[["M",0,0]];for(var i=!1,n=0;n=0){i=!0;break}}if(!i)return t;var o=[],s=0,a=0,l=0,h=0,u=0,d=t[0];("M"===d[0]||"m"===d[0])&&(s=+d[1],a=+d[2],l=s,h=a,u++,o[0]=["M",s,a]);for(var n=u,f=t.length;n1&&(i*=Math.sqrt(p),r*=Math.sqrt(p));var f=i*i*(g*g)+r*r*(c*c),m=f?Math.sqrt((i*i*(r*r)-f)/f):1;s===a&&(m*=-1),isNaN(m)&&(m=0);var C=r?m*i*g/r:0,S=i?-(m*r)*c/i:0,y=(l+u)/2+Math.cos(o)*C-Math.sin(o)*S,T=(h+d)/2+Math.sin(o)*C+Math.cos(o)*S,b=[(c-C)/i,(g-S)/r],A=[(-1*c-C)/i,(-1*g-S)/r],R=E([1,0],b),L=E(b,A);return -1>=v(b,A)&&(L=Math.PI),v(b,A)>=1&&(L=0),0===a&&L>0&&(L-=2*Math.PI),1===a&&L<0&&(L+=2*Math.PI),{cx:y,cy:T,rx:_(e,[u,d])?0:i,ry:_(e,[u,d])?0:r,startAngle:R,endAngle:R+L,xRotation:o,arcFlag:s,sweepFlag:a}}(i,u);c.arcParams=g}if("Z"===d)i=o,r=e[a+1];else{var p=u.length;i=[u[p-2],u[p-1]]}r&&"Z"===r[0]&&(r=e[a],t[a]&&(t[a].prePoint=i)),c.currentPoint=i,t[a]&&_(i,t[a].currentPoint)&&(t[a].prePoint=c.prePoint);var f=r?[r[r.length-2],r[r.length-1]]:null;c.nextPoint=f;var m=c.prePoint;if(["L","H","V"].includes(d))c.startTangent=[m[0]-i[0],m[1]-i[1]],c.endTangent=[i[0]-m[0],i[1]-m[1]];else if("Q"===d){var S=[u[1],u[2]];c.startTangent=[m[0]-S[0],m[1]-S[1]],c.endTangent=[i[0]-S[0],i[1]-S[1]]}else if("T"===d){var y=t[h-1],S=C(y.currentPoint,m);"Q"===y.command?(c.command="Q",c.startTangent=[m[0]-S[0],m[1]-S[1]],c.endTangent=[i[0]-S[0],i[1]-S[1]]):(c.command="TL",c.startTangent=[m[0]-i[0],m[1]-i[1]],c.endTangent=[i[0]-m[0],i[1]-m[1]])}else if("C"===d){var T=[u[1],u[2]],b=[u[3],u[4]];c.startTangent=[m[0]-T[0],m[1]-T[1]],c.endTangent=[i[0]-b[0],i[1]-b[1]],0===c.startTangent[0]&&0===c.startTangent[1]&&(c.startTangent=[T[0]-b[0],T[1]-b[1]]),0===c.endTangent[0]&&0===c.endTangent[1]&&(c.endTangent=[b[0]-T[0],b[1]-T[1]])}else if("S"===d){var y=t[h-1],T=C(y.currentPoint,m),b=[u[1],u[2]];"C"===y.command?(c.command="C",c.startTangent=[m[0]-T[0],m[1]-T[1]],c.endTangent=[i[0]-b[0],i[1]-b[1]]):(c.command="SQ",c.startTangent=[m[0]-b[0],m[1]-b[1]],c.endTangent=[i[0]-b[0],i[1]-b[1]])}else if("A"===d){var A=.001,R=c.arcParams||{},L=R.cx,N=void 0===L?0:L,I=R.cy,w=void 0===I?0:I,O=R.rx,x=void 0===O?0:O,D=R.ry,M=void 0===D?0:D,k=R.sweepFlag,P=void 0===k?0:k,F=R.startAngle,B=void 0===F?0:F,U=R.endAngle,H=void 0===U?0:U;0===P&&(A*=-1);var V=x*Math.cos(B-A)+N,W=M*Math.sin(B-A)+w;c.startTangent=[V-o[0],W-o[1]];var G=x*Math.cos(B+H+A)+N,z=M*Math.sin(B+H-A)+w;c.endTangent=[m[0]-G,m[1]-z]}t.push(c)}return t}function y(e){return 1e-6>Math.abs(e)?0:e<0?-1:1}function T(e,t,i){var n=!1,r=e.length;if(r<=2)return!1;for(var o=0;o0!=y(l[1]-i)>0&&0>y(t-(i-a[1])*(a[0]-l[0])/(a[1]-l[1])-a[0])&&(n=!n)}return n}var b=function(e,t,i){return e>=t&&e<=i};function A(e){for(var t=[],i=e.length,n=0;n1){var s=e[0],a=e[i-1];t.push({from:{x:a[0],y:a[1]},to:{x:s[0],y:s[1]}})}return t}function R(e){var t=e.map(function(e){return e[0]}),i=e.map(function(e){return e[1]});return{minX:Math.min.apply(null,t),maxX:Math.max.apply(null,t),minY:Math.min.apply(null,i),maxY:Math.max.apply(null,i)}}function L(e,t){if(e.length<2||t.length<2)return!1;var i=R(e),r=R(t);if(r.minX>i.maxX||r.maxXi.maxY||r.maxY.001*l*h){var d=(r.x*s.y-r.y*s.x)/a,c=(r.x*o.y-r.y*o.x)/a;b(d,0,1)&&b(c,0,1)&&(u={x:e.x+d*o.x,y:e.y+d*o.y})}return u}(i.from,i.to,e.from,e.to))return t=!0,!1}),t)return l=!0,!1}),l}},21030:function(e,t,i){"use strict";i.d(t,{Ct:function(){return eY},f0:function(){return ew},uZ:function(){return z},VS:function(){return ef},d9:function(){return ev},FX:function(){return o},Ds:function(){return eE},b$:function(){return eC},e5:function(){return a},S6:function(){return p},yW:function(){return B},hX:function(){return s},sE:function(){return _},cx:function(){return C},Wx:function(){return S},ri:function(){return Y},xH:function(){return y},U5:function(){return Q},U2:function(){return eO},Lo:function(){return ez},rx:function(){return R},ru:function(){return G},vM:function(){return V},Ms:function(){return W},wH:function(){return ee},YM:function(){return P},q9:function(){return o},cq:function(){return eS},kJ:function(){return c},jn:function(){return ea},J_:function(){return el},kK:function(){return eg},xb:function(){return eT},Xy:function(){return eA},mf:function(){return u},BD:function(){return m},UM:function(){return d},Ft:function(){return eh},hj:function(){return K},vQ:function(){return $},Kn:function(){return g},PO:function(){return E},HD:function(){return x},P9:function(){return h},o8:function(){return ec},XP:function(){return f},Z$:function(){return F},vl:function(){return en},UI:function(){return eR},Q8:function(){return eN},Fp:function(){return b},UT:function(){return X},HP:function(){return e_},VV:function(){return A},F:function(){return j},CD:function(){return ew},wQ:function(){return q},ZT:function(){return eH},CE:function(){return ek},ei:function(){return eM},u4:function(){return w},Od:function(){return O},U7:function(){return ep},t8:function(){return ex},dp:function(){return eV},G:function(){return U},MR:function(){return D},ng:function(){return er},P2:function(){return eP},qo:function(){return eF},c$:function(){return J},BB:function(){return ei},jj:function(){return M},EL:function(){return eU},jC:function(){return eo},VO:function(){return et},I:function(){return k}});var n,r=function(e){return null!==e&&"function"!=typeof e&&isFinite(e.length)},o=function(e,t){return!!r(e)&&e.indexOf(t)>-1},s=function(e,t){if(!r(e))return e;for(var i=[],n=0;nt[r])return 1;if(e[r]i?i:e},Y=function(e,t){var i=t.toString(),n=i.indexOf(".");if(-1===n)return Math.round(e);var r=i.substr(n+1).length;return r>20&&(r=20),parseFloat(e.toFixed(r))},K=function(e){return h(e,"Number")};function $(e,t,i){return void 0===i&&(i=1e-5),Math.abs(e-t)n&&(i=o,n=s)}return i}},j=function(e,t){if(c(e)){for(var i,n=1/0,r=0;rt?(n&&(clearTimeout(n),n=null),a=h,s=e.apply(r,o),n||(r=o=null)):n||!1===i.trailing||(n=setTimeout(l,u)),s};return h.cancel=function(){clearTimeout(n),a=0,n=r=o=null},h},eF=function(e){return r(e)?Array.prototype.slice.call(e):[]},eB={},eU=function(e){return eB[e=e||"g"]?eB[e]+=1:eB[e]=1,e+eB[e]},eH=function(){};function eV(e){return d(e)?0:r(e)?e.length:Object.keys(e).length}var eW=i(97582),eG=e_(function(e,t){void 0===t&&(t={});var i=t.fontSize,r=t.fontFamily,o=t.fontWeight,s=t.fontStyle,a=t.fontVariant;return n||(n=document.createElement("canvas").getContext("2d")),n.font=[s,a,o,i+"px",r].join(" "),n.measureText(x(e)?e:"").width},function(e,t){return void 0===t&&(t={}),(0,eW.pr)([e],et(t)).join("")}),ez=function(e,t,i,n){void 0===n&&(n="...");var r,o,s=eG(n,i),a=x(e)?e:ei(e),l=t,h=[];if(eG(e,i)<=t)return e;for(;!((o=eG(r=a.substr(0,16),i))+s>l)||!(o>l);)if(h.push(r),l-=o,!(a=a.substr(16)))return h.join("");for(;!((o=eG(r=a.substr(0,1),i))+s>l);)if(h.push(r),l-=o,!(a=a.substr(1)))return h.join("");return""+h.join("")+n},eY=function(){function e(){this.map={}}return e.prototype.has=function(e){return void 0!==this.map[e]},e.prototype.get=function(e,t){var i=this.map[e];return void 0===i?t:i},e.prototype.set=function(e,t){this.map[e]=t},e.prototype.clear=function(){this.map={}},e.prototype.delete=function(e){delete this.map[e]},e.prototype.size=function(){return Object.keys(this.map).length},e}()},53406:function(e,t,i){"use strict";i.d(t,{r:function(){return eO}});var n,r,o,s,a,l=i(87462),h=i(63366),u=i(67294),d=i(33703),c=i(73546),g=i(82690);function p(e){if(null==e)return window;if("[object Window]"!==e.toString()){var t=e.ownerDocument;return t&&t.defaultView||window}return e}function f(e){var t=p(e).Element;return e instanceof t||e instanceof Element}function m(e){var t=p(e).HTMLElement;return e instanceof t||e instanceof HTMLElement}function v(e){if("undefined"==typeof ShadowRoot)return!1;var t=p(e).ShadowRoot;return e instanceof t||e instanceof ShadowRoot}var E=Math.max,_=Math.min,C=Math.round;function S(){var e=navigator.userAgentData;return null!=e&&e.brands&&Array.isArray(e.brands)?e.brands.map(function(e){return e.brand+"/"+e.version}).join(" "):navigator.userAgent}function y(){return!/^((?!chrome|android).)*safari/i.test(S())}function T(e,t,i){void 0===t&&(t=!1),void 0===i&&(i=!1);var n=e.getBoundingClientRect(),r=1,o=1;t&&m(e)&&(r=e.offsetWidth>0&&C(n.width)/e.offsetWidth||1,o=e.offsetHeight>0&&C(n.height)/e.offsetHeight||1);var s=(f(e)?p(e):window).visualViewport,a=!y()&&i,l=(n.left+(a&&s?s.offsetLeft:0))/r,h=(n.top+(a&&s?s.offsetTop:0))/o,u=n.width/r,d=n.height/o;return{width:u,height:d,top:h,right:l+u,bottom:h+d,left:l,x:l,y:h}}function b(e){var t=p(e);return{scrollLeft:t.pageXOffset,scrollTop:t.pageYOffset}}function A(e){return e?(e.nodeName||"").toLowerCase():null}function R(e){return((f(e)?e.ownerDocument:e.document)||window.document).documentElement}function L(e){return T(R(e)).left+b(e).scrollLeft}function N(e){return p(e).getComputedStyle(e)}function I(e){var t=N(e),i=t.overflow,n=t.overflowX,r=t.overflowY;return/auto|scroll|overlay|hidden/.test(i+r+n)}function w(e){var t=T(e),i=e.offsetWidth,n=e.offsetHeight;return 1>=Math.abs(t.width-i)&&(i=t.width),1>=Math.abs(t.height-n)&&(n=t.height),{x:e.offsetLeft,y:e.offsetTop,width:i,height:n}}function O(e){return"html"===A(e)?e:e.assignedSlot||e.parentNode||(v(e)?e.host:null)||R(e)}function x(e,t){void 0===t&&(t=[]);var i,n=function e(t){return["html","body","#document"].indexOf(A(t))>=0?t.ownerDocument.body:m(t)&&I(t)?t:e(O(t))}(e),r=n===(null==(i=e.ownerDocument)?void 0:i.body),o=p(n),s=r?[o].concat(o.visualViewport||[],I(n)?n:[]):n,a=t.concat(s);return r?a:a.concat(x(O(s)))}function D(e){return m(e)&&"fixed"!==N(e).position?e.offsetParent:null}function M(e){for(var t=p(e),i=D(e);i&&["table","td","th"].indexOf(A(i))>=0&&"static"===N(i).position;)i=D(i);return i&&("html"===A(i)||"body"===A(i)&&"static"===N(i).position)?t:i||function(e){var t=/firefox/i.test(S());if(/Trident/i.test(S())&&m(e)&&"fixed"===N(e).position)return null;var i=O(e);for(v(i)&&(i=i.host);m(i)&&0>["html","body"].indexOf(A(i));){var n=N(i);if("none"!==n.transform||"none"!==n.perspective||"paint"===n.contain||-1!==["transform","perspective"].indexOf(n.willChange)||t&&"filter"===n.willChange||t&&n.filter&&"none"!==n.filter)return i;i=i.parentNode}return null}(e)||t}var k="bottom",P="right",F="left",B="auto",U=["top",k,P,F],H="start",V="viewport",W="popper",G=U.reduce(function(e,t){return e.concat([t+"-"+H,t+"-end"])},[]),z=[].concat(U,[B]).reduce(function(e,t){return e.concat([t,t+"-"+H,t+"-end"])},[]),Y=["beforeRead","read","afterRead","beforeMain","main","afterMain","beforeWrite","write","afterWrite"],K={placement:"bottom",modifiers:[],strategy:"absolute"};function $(){for(var e=arguments.length,t=Array(e),i=0;i=0?"x":"y"}function J(e){var t,i=e.reference,n=e.element,r=e.placement,o=r?j(r):null,s=r?q(r):null,a=i.x+i.width/2-n.width/2,l=i.y+i.height/2-n.height/2;switch(o){case"top":t={x:a,y:i.y-n.height};break;case k:t={x:a,y:i.y+i.height};break;case P:t={x:i.x+i.width,y:l};break;case F:t={x:i.x-n.width,y:l};break;default:t={x:i.x,y:i.y}}var h=o?Z(o):null;if(null!=h){var u="y"===h?"height":"width";switch(s){case H:t[h]=t[h]-(i[u]/2-n[u]/2);break;case"end":t[h]=t[h]+(i[u]/2-n[u]/2)}}return t}var Q={top:"auto",right:"auto",bottom:"auto",left:"auto"};function ee(e){var t,i,n,r,o,s,a,l=e.popper,h=e.popperRect,u=e.placement,d=e.variation,c=e.offsets,g=e.position,f=e.gpuAcceleration,m=e.adaptive,v=e.roundOffsets,E=e.isFixed,_=c.x,S=void 0===_?0:_,y=c.y,T=void 0===y?0:y,b="function"==typeof v?v({x:S,y:T}):{x:S,y:T};S=b.x,T=b.y;var A=c.hasOwnProperty("x"),L=c.hasOwnProperty("y"),I=F,w="top",O=window;if(m){var x=M(l),D="clientHeight",B="clientWidth";x===p(l)&&"static"!==N(x=R(l)).position&&"absolute"===g&&(D="scrollHeight",B="scrollWidth"),("top"===u||(u===F||u===P)&&"end"===d)&&(w=k,T-=(E&&x===O&&O.visualViewport?O.visualViewport.height:x[D])-h.height,T*=f?1:-1),(u===F||("top"===u||u===k)&&"end"===d)&&(I=P,S-=(E&&x===O&&O.visualViewport?O.visualViewport.width:x[B])-h.width,S*=f?1:-1)}var U=Object.assign({position:g},m&&Q),H=!0===v?(t={x:S,y:T},i=p(l),n=t.x,r=t.y,{x:C(n*(o=i.devicePixelRatio||1))/o||0,y:C(r*o)/o||0}):{x:S,y:T};return(S=H.x,T=H.y,f)?Object.assign({},U,((a={})[w]=L?"0":"",a[I]=A?"0":"",a.transform=1>=(O.devicePixelRatio||1)?"translate("+S+"px, "+T+"px)":"translate3d("+S+"px, "+T+"px, 0)",a)):Object.assign({},U,((s={})[w]=L?T+"px":"",s[I]=A?S+"px":"",s.transform="",s))}var et={left:"right",right:"left",bottom:"top",top:"bottom"};function ei(e){return e.replace(/left|right|bottom|top/g,function(e){return et[e]})}var en={start:"end",end:"start"};function er(e){return e.replace(/start|end/g,function(e){return en[e]})}function eo(e,t){var i=t.getRootNode&&t.getRootNode();if(e.contains(t))return!0;if(i&&v(i)){var n=t;do{if(n&&e.isSameNode(n))return!0;n=n.parentNode||n.host}while(n)}return!1}function es(e){return Object.assign({},e,{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}function ea(e,t,i){var n,r,o,s,a,l,h,u,d,c;return t===V?es(function(e,t){var i=p(e),n=R(e),r=i.visualViewport,o=n.clientWidth,s=n.clientHeight,a=0,l=0;if(r){o=r.width,s=r.height;var h=y();(h||!h&&"fixed"===t)&&(a=r.offsetLeft,l=r.offsetTop)}return{width:o,height:s,x:a+L(e),y:l}}(e,i)):f(t)?((n=T(t,!1,"fixed"===i)).top=n.top+t.clientTop,n.left=n.left+t.clientLeft,n.bottom=n.top+t.clientHeight,n.right=n.left+t.clientWidth,n.width=t.clientWidth,n.height=t.clientHeight,n.x=n.left,n.y=n.top,n):es((r=R(e),s=R(r),a=b(r),l=null==(o=r.ownerDocument)?void 0:o.body,h=E(s.scrollWidth,s.clientWidth,l?l.scrollWidth:0,l?l.clientWidth:0),u=E(s.scrollHeight,s.clientHeight,l?l.scrollHeight:0,l?l.clientHeight:0),d=-a.scrollLeft+L(r),c=-a.scrollTop,"rtl"===N(l||s).direction&&(d+=E(s.clientWidth,l?l.clientWidth:0)-h),{width:h,height:u,x:d,y:c}))}function el(){return{top:0,right:0,bottom:0,left:0}}function eh(e){return Object.assign({},el(),e)}function eu(e,t){return t.reduce(function(t,i){return t[i]=e,t},{})}function ed(e,t){void 0===t&&(t={});var i,n,r,o,s,a,l,h=t,u=h.placement,d=void 0===u?e.placement:u,c=h.strategy,g=void 0===c?e.strategy:c,p=h.boundary,v=h.rootBoundary,C=h.elementContext,S=void 0===C?W:C,y=h.altBoundary,b=h.padding,L=void 0===b?0:b,I=eh("number"!=typeof L?L:eu(L,U)),w=e.rects.popper,D=e.elements[void 0!==y&&y?S===W?"reference":W:S],F=(i=f(D)?D:D.contextElement||R(e.elements.popper),a=(s=[].concat("clippingParents"===(n=void 0===p?"clippingParents":p)?(r=x(O(i)),f(o=["absolute","fixed"].indexOf(N(i).position)>=0&&m(i)?M(i):i)?r.filter(function(e){return f(e)&&eo(e,o)&&"body"!==A(e)}):[]):[].concat(n),[void 0===v?V:v]))[0],(l=s.reduce(function(e,t){var n=ea(i,t,g);return e.top=E(n.top,e.top),e.right=_(n.right,e.right),e.bottom=_(n.bottom,e.bottom),e.left=E(n.left,e.left),e},ea(i,a,g))).width=l.right-l.left,l.height=l.bottom-l.top,l.x=l.left,l.y=l.top,l),B=T(e.elements.reference),H=J({reference:B,element:w,strategy:"absolute",placement:d}),G=es(Object.assign({},w,H)),z=S===W?G:B,Y={top:F.top-z.top+I.top,bottom:z.bottom-F.bottom+I.bottom,left:F.left-z.left+I.left,right:z.right-F.right+I.right},K=e.modifiersData.offset;if(S===W&&K){var $=K[d];Object.keys(Y).forEach(function(e){var t=[P,k].indexOf(e)>=0?1:-1,i=["top",k].indexOf(e)>=0?"y":"x";Y[e]+=$[i]*t})}return Y}function ec(e,t,i){return E(e,_(t,i))}function eg(e,t,i){return void 0===i&&(i={x:0,y:0}),{top:e.top-t.height-i.y,right:e.right-t.width+i.x,bottom:e.bottom-t.height+i.y,left:e.left-t.width-i.x}}function ep(e){return["top",P,k,F].some(function(t){return e[t]>=0})}var ef=(o=void 0===(r=(n={defaultModifiers:[{name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:function(e){var t=e.state,i=e.instance,n=e.options,r=n.scroll,o=void 0===r||r,s=n.resize,a=void 0===s||s,l=p(t.elements.popper),h=[].concat(t.scrollParents.reference,t.scrollParents.popper);return o&&h.forEach(function(e){e.addEventListener("scroll",i.update,X)}),a&&l.addEventListener("resize",i.update,X),function(){o&&h.forEach(function(e){e.removeEventListener("scroll",i.update,X)}),a&&l.removeEventListener("resize",i.update,X)}},data:{}},{name:"popperOffsets",enabled:!0,phase:"read",fn:function(e){var t=e.state,i=e.name;t.modifiersData[i]=J({reference:t.rects.reference,element:t.rects.popper,strategy:"absolute",placement:t.placement})},data:{}},{name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:function(e){var t=e.state,i=e.options,n=i.gpuAcceleration,r=i.adaptive,o=i.roundOffsets,s=void 0===o||o,a={placement:j(t.placement),variation:q(t.placement),popper:t.elements.popper,popperRect:t.rects.popper,gpuAcceleration:void 0===n||n,isFixed:"fixed"===t.options.strategy};null!=t.modifiersData.popperOffsets&&(t.styles.popper=Object.assign({},t.styles.popper,ee(Object.assign({},a,{offsets:t.modifiersData.popperOffsets,position:t.options.strategy,adaptive:void 0===r||r,roundOffsets:s})))),null!=t.modifiersData.arrow&&(t.styles.arrow=Object.assign({},t.styles.arrow,ee(Object.assign({},a,{offsets:t.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:s})))),t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-placement":t.placement})},data:{}},{name:"applyStyles",enabled:!0,phase:"write",fn:function(e){var t=e.state;Object.keys(t.elements).forEach(function(e){var i=t.styles[e]||{},n=t.attributes[e]||{},r=t.elements[e];m(r)&&A(r)&&(Object.assign(r.style,i),Object.keys(n).forEach(function(e){var t=n[e];!1===t?r.removeAttribute(e):r.setAttribute(e,!0===t?"":t)}))})},effect:function(e){var t=e.state,i={popper:{position:t.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(t.elements.popper.style,i.popper),t.styles=i,t.elements.arrow&&Object.assign(t.elements.arrow.style,i.arrow),function(){Object.keys(t.elements).forEach(function(e){var n=t.elements[e],r=t.attributes[e]||{},o=Object.keys(t.styles.hasOwnProperty(e)?t.styles[e]:i[e]).reduce(function(e,t){return e[t]="",e},{});m(n)&&A(n)&&(Object.assign(n.style,o),Object.keys(r).forEach(function(e){n.removeAttribute(e)}))})}},requires:["computeStyles"]},{name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:function(e){var t=e.state,i=e.options,n=e.name,r=i.offset,o=void 0===r?[0,0]:r,s=z.reduce(function(e,i){var n,r,s,a,l,h;return e[i]=(n=t.rects,s=[F,"top"].indexOf(r=j(i))>=0?-1:1,l=(a="function"==typeof o?o(Object.assign({},n,{placement:i})):o)[0],h=a[1],l=l||0,h=(h||0)*s,[F,P].indexOf(r)>=0?{x:h,y:l}:{x:l,y:h}),e},{}),a=s[t.placement],l=a.x,h=a.y;null!=t.modifiersData.popperOffsets&&(t.modifiersData.popperOffsets.x+=l,t.modifiersData.popperOffsets.y+=h),t.modifiersData[n]=s}},{name:"flip",enabled:!0,phase:"main",fn:function(e){var t=e.state,i=e.options,n=e.name;if(!t.modifiersData[n]._skip){for(var r=i.mainAxis,o=void 0===r||r,s=i.altAxis,a=void 0===s||s,l=i.fallbackPlacements,h=i.padding,u=i.boundary,d=i.rootBoundary,c=i.altBoundary,g=i.flipVariations,p=void 0===g||g,f=i.allowedAutoPlacements,m=t.options.placement,v=j(m)===m,E=l||(v||!p?[ei(m)]:function(e){if(j(e)===B)return[];var t=ei(e);return[er(e),t,er(t)]}(m)),_=[m].concat(E).reduce(function(e,i){var n,r,o,s,a,l,c,g,m,v,E,_;return e.concat(j(i)===B?(r=(n={placement:i,boundary:u,rootBoundary:d,padding:h,flipVariations:p,allowedAutoPlacements:f}).placement,o=n.boundary,s=n.rootBoundary,a=n.padding,l=n.flipVariations,g=void 0===(c=n.allowedAutoPlacements)?z:c,0===(E=(v=(m=q(r))?l?G:G.filter(function(e){return q(e)===m}):U).filter(function(e){return g.indexOf(e)>=0})).length&&(E=v),Object.keys(_=E.reduce(function(e,i){return e[i]=ed(t,{placement:i,boundary:o,rootBoundary:s,padding:a})[j(i)],e},{})).sort(function(e,t){return _[e]-_[t]})):i)},[]),C=t.rects.reference,S=t.rects.popper,y=new Map,T=!0,b=_[0],A=0;A<_.length;A++){var R=_[A],L=j(R),N=q(R)===H,I=["top",k].indexOf(L)>=0,w=I?"width":"height",O=ed(t,{placement:R,boundary:u,rootBoundary:d,altBoundary:c,padding:h}),x=I?N?P:F:N?k:"top";C[w]>S[w]&&(x=ei(x));var D=ei(x),M=[];if(o&&M.push(O[L]<=0),a&&M.push(O[x]<=0,O[D]<=0),M.every(function(e){return e})){b=R,T=!1;break}y.set(R,M)}if(T)for(var V=p?3:1,W=function(e){var t=_.find(function(t){var i=y.get(t);if(i)return i.slice(0,e).every(function(e){return e})});if(t)return b=t,"break"},Y=V;Y>0&&"break"!==W(Y);Y--);t.placement!==b&&(t.modifiersData[n]._skip=!0,t.placement=b,t.reset=!0)}},requiresIfExists:["offset"],data:{_skip:!1}},{name:"preventOverflow",enabled:!0,phase:"main",fn:function(e){var t=e.state,i=e.options,n=e.name,r=i.mainAxis,o=i.altAxis,s=i.boundary,a=i.rootBoundary,l=i.altBoundary,h=i.padding,u=i.tether,d=void 0===u||u,c=i.tetherOffset,g=void 0===c?0:c,p=ed(t,{boundary:s,rootBoundary:a,padding:h,altBoundary:l}),f=j(t.placement),m=q(t.placement),v=!m,C=Z(f),S="x"===C?"y":"x",y=t.modifiersData.popperOffsets,T=t.rects.reference,b=t.rects.popper,A="function"==typeof g?g(Object.assign({},t.rects,{placement:t.placement})):g,R="number"==typeof A?{mainAxis:A,altAxis:A}:Object.assign({mainAxis:0,altAxis:0},A),L=t.modifiersData.offset?t.modifiersData.offset[t.placement]:null,N={x:0,y:0};if(y){if(void 0===r||r){var I,O="y"===C?"top":F,x="y"===C?k:P,D="y"===C?"height":"width",B=y[C],U=B+p[O],V=B-p[x],W=d?-b[D]/2:0,G=m===H?T[D]:b[D],z=m===H?-b[D]:-T[D],Y=t.elements.arrow,K=d&&Y?w(Y):{width:0,height:0},$=t.modifiersData["arrow#persistent"]?t.modifiersData["arrow#persistent"].padding:el(),X=$[O],J=$[x],Q=ec(0,T[D],K[D]),ee=v?T[D]/2-W-Q-X-R.mainAxis:G-Q-X-R.mainAxis,et=v?-T[D]/2+W+Q+J+R.mainAxis:z+Q+J+R.mainAxis,ei=t.elements.arrow&&M(t.elements.arrow),en=ei?"y"===C?ei.clientTop||0:ei.clientLeft||0:0,er=null!=(I=null==L?void 0:L[C])?I:0,eo=B+ee-er-en,es=B+et-er,ea=ec(d?_(U,eo):U,B,d?E(V,es):V);y[C]=ea,N[C]=ea-B}if(void 0!==o&&o){var eh,eu,eg="x"===C?"top":F,ep="x"===C?k:P,ef=y[S],em="y"===S?"height":"width",ev=ef+p[eg],eE=ef-p[ep],e_=-1!==["top",F].indexOf(f),eC=null!=(eu=null==L?void 0:L[S])?eu:0,eS=e_?ev:ef-T[em]-b[em]-eC+R.altAxis,ey=e_?ef+T[em]+b[em]-eC-R.altAxis:eE,eT=d&&e_?(eh=ec(eS,ef,ey))>ey?ey:eh:ec(d?eS:ev,ef,d?ey:eE);y[S]=eT,N[S]=eT-ef}t.modifiersData[n]=N}},requiresIfExists:["offset"]},{name:"arrow",enabled:!0,phase:"main",fn:function(e){var t,i,n=e.state,r=e.name,o=e.options,s=n.elements.arrow,a=n.modifiersData.popperOffsets,l=j(n.placement),h=Z(l),u=[F,P].indexOf(l)>=0?"height":"width";if(s&&a){var d=eh("number"!=typeof(t="function"==typeof(t=o.padding)?t(Object.assign({},n.rects,{placement:n.placement})):t)?t:eu(t,U)),c=w(s),g="y"===h?"top":F,p="y"===h?k:P,f=n.rects.reference[u]+n.rects.reference[h]-a[h]-n.rects.popper[u],m=a[h]-n.rects.reference[h],v=M(s),E=v?"y"===h?v.clientHeight||0:v.clientWidth||0:0,_=d[g],C=E-c[u]-d[p],S=E/2-c[u]/2+(f/2-m/2),y=ec(_,S,C);n.modifiersData[r]=((i={})[h]=y,i.centerOffset=y-S,i)}},effect:function(e){var t=e.state,i=e.options.element,n=void 0===i?"[data-popper-arrow]":i;null!=n&&("string"!=typeof n||(n=t.elements.popper.querySelector(n)))&&eo(t.elements.popper,n)&&(t.elements.arrow=n)},requires:["popperOffsets"],requiresIfExists:["preventOverflow"]},{name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:function(e){var t=e.state,i=e.name,n=t.rects.reference,r=t.rects.popper,o=t.modifiersData.preventOverflow,s=ed(t,{elementContext:"reference"}),a=ed(t,{altBoundary:!0}),l=eg(s,n),h=eg(a,r,o),u=ep(l),d=ep(h);t.modifiersData[i]={referenceClippingOffsets:l,popperEscapeOffsets:h,isReferenceHidden:u,hasPopperEscaped:d},t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-reference-hidden":u,"data-popper-escaped":d})}}]}).defaultModifiers)?[]:r,a=void 0===(s=n.defaultOptions)?K:s,function(e,t,i){void 0===i&&(i=a);var n,r={placement:"bottom",orderedModifiers:[],options:Object.assign({},K,a),modifiersData:{},elements:{reference:e,popper:t},attributes:{},styles:{}},s=[],l=!1,h={state:r,setOptions:function(i){var n,l,d,c,g,p="function"==typeof i?i(r.options):i;u(),r.options=Object.assign({},a,r.options,p),r.scrollParents={reference:f(e)?x(e):e.contextElement?x(e.contextElement):[],popper:x(t)};var m=(l=Object.keys(n=[].concat(o,r.options.modifiers).reduce(function(e,t){var i=e[t.name];return e[t.name]=i?Object.assign({},i,t,{options:Object.assign({},i.options,t.options),data:Object.assign({},i.data,t.data)}):t,e},{})).map(function(e){return n[e]}),d=new Map,c=new Set,g=[],l.forEach(function(e){d.set(e.name,e)}),l.forEach(function(e){c.has(e.name)||function e(t){c.add(t.name),[].concat(t.requires||[],t.requiresIfExists||[]).forEach(function(t){if(!c.has(t)){var i=d.get(t);i&&e(i)}}),g.push(t)}(e)}),Y.reduce(function(e,t){return e.concat(g.filter(function(e){return e.phase===t}))},[]));return r.orderedModifiers=m.filter(function(e){return e.enabled}),r.orderedModifiers.forEach(function(e){var t=e.name,i=e.options,n=e.effect;if("function"==typeof n){var o=n({state:r,name:t,instance:h,options:void 0===i?{}:i});s.push(o||function(){})}}),h.update()},forceUpdate:function(){if(!l){var e,t,i,n,o,s,a,u,d,c,g,f,v=r.elements,E=v.reference,_=v.popper;if($(E,_)){r.rects={reference:(t=M(_),i="fixed"===r.options.strategy,n=m(t),u=m(t)&&(s=C((o=t.getBoundingClientRect()).width)/t.offsetWidth||1,a=C(o.height)/t.offsetHeight||1,1!==s||1!==a),d=R(t),c=T(E,u,i),g={scrollLeft:0,scrollTop:0},f={x:0,y:0},(n||!n&&!i)&&(("body"!==A(t)||I(d))&&(g=(e=t)!==p(e)&&m(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:b(e)),m(t)?(f=T(t,!0),f.x+=t.clientLeft,f.y+=t.clientTop):d&&(f.x=L(d))),{x:c.left+g.scrollLeft-f.x,y:c.top+g.scrollTop-f.y,width:c.width,height:c.height}),popper:w(_)},r.reset=!1,r.placement=r.options.placement,r.orderedModifiers.forEach(function(e){return r.modifiersData[e.name]=Object.assign({},e.data)});for(var S=0;S{!r&&s(("function"==typeof n?n():n)||document.body)},[n,r]),(0,c.Z)(()=>{if(o&&!r)return(0,eE.Z)(t,o),()=>{(0,eE.Z)(t,null)}},[t,o,r]),r)?u.isValidElement(i)?u.cloneElement(i,{ref:a}):(0,e_.jsx)(u.Fragment,{children:i}):(0,e_.jsx)(u.Fragment,{children:o?ev.createPortal(i,o):o})});var eS=i(34867);function ey(e){return(0,eS.Z)("MuiPopper",e)}(0,i(1588).Z)("MuiPopper",["root"]);var eT=i(7293);let eb=u.createContext({disableDefaultClasses:!1}),eA=["anchorEl","children","direction","disablePortal","modifiers","open","placement","popperOptions","popperRef","slotProps","slots","TransitionProps","ownerState"],eR=["anchorEl","children","container","direction","disablePortal","keepMounted","modifiers","open","placement","popperOptions","popperRef","style","transition","slotProps","slots"];function eL(e){return"function"==typeof e?e():e}let eN=()=>(0,em.Z)({root:["root"]},function(e){let{disableDefaultClasses:t}=u.useContext(eb);return i=>t?"":e(i)}(ey)),eI={},ew=u.forwardRef(function(e,t){var i;let{anchorEl:n,children:r,direction:o,disablePortal:s,modifiers:a,open:g,placement:p,popperOptions:f,popperRef:m,slotProps:v={},slots:E={},TransitionProps:_}=e,C=(0,h.Z)(e,eA),S=u.useRef(null),y=(0,d.Z)(S,t),T=u.useRef(null),b=(0,d.Z)(T,m),A=u.useRef(b);(0,c.Z)(()=>{A.current=b},[b]),u.useImperativeHandle(m,()=>T.current,[]);let R=function(e,t){if("ltr"===t)return e;switch(e){case"bottom-end":return"bottom-start";case"bottom-start":return"bottom-end";case"top-end":return"top-start";case"top-start":return"top-end";default:return e}}(p,o),[L,N]=u.useState(R),[I,w]=u.useState(eL(n));u.useEffect(()=>{T.current&&T.current.forceUpdate()}),u.useEffect(()=>{n&&w(eL(n))},[n]),(0,c.Z)(()=>{if(!I||!g)return;let e=e=>{N(e.placement)},t=[{name:"preventOverflow",options:{altBoundary:s}},{name:"flip",options:{altBoundary:s}},{name:"onUpdate",enabled:!0,phase:"afterWrite",fn:({state:t})=>{e(t)}}];null!=a&&(t=t.concat(a)),f&&null!=f.modifiers&&(t=t.concat(f.modifiers));let i=ef(I,S.current,(0,l.Z)({placement:R},f,{modifiers:t}));return A.current(i),()=>{i.destroy(),A.current(null)}},[I,s,a,g,f,R]);let O={placement:L};null!==_&&(O.TransitionProps=_);let x=eN(),D=null!=(i=E.root)?i:"div",M=(0,eT.y)({elementType:D,externalSlotProps:v.root,externalForwardedProps:C,additionalProps:{role:"tooltip",ref:y},ownerState:e,className:x.root});return(0,e_.jsx)(D,(0,l.Z)({},M,{children:"function"==typeof r?r(O):r}))}),eO=u.forwardRef(function(e,t){let i;let{anchorEl:n,children:r,container:o,direction:s="ltr",disablePortal:a=!1,keepMounted:d=!1,modifiers:c,open:p,placement:f="bottom",popperOptions:m=eI,popperRef:v,style:E,transition:_=!1,slotProps:C={},slots:S={}}=e,y=(0,h.Z)(e,eR),[T,b]=u.useState(!0);if(!d&&!p&&(!_||T))return null;if(o)i=o;else if(n){let e=eL(n);i=e&&void 0!==e.nodeType?(0,g.Z)(e).body:(0,g.Z)(null).body}let A=!p&&d&&(!_||T)?"none":void 0;return(0,e_.jsx)(eC,{disablePortal:a,container:i,children:(0,e_.jsx)(ew,(0,l.Z)({anchorEl:n,direction:s,disablePortal:a,modifiers:c,ref:t,open:_?!T:p,placement:f,popperOptions:m,popperRef:v,slotProps:C,slots:S},y,{style:(0,l.Z)({position:"fixed",top:0,left:0,display:A},E),TransitionProps:_?{in:p,onEnter:()=>{b(!1)},onExited:()=>{b(!0)}}:void 0,children:r}))})})},70758:function(e,t,i){"use strict";i.d(t,{U:function(){return l}});var n=i(87462),r=i(67294),o=i(99962),s=i(33703),a=i(30437);function l(e={}){let{disabled:t=!1,focusableWhenDisabled:i,href:l,rootRef:h,tabIndex:u,to:d,type:c}=e,g=r.useRef(),[p,f]=r.useState(!1),{isFocusVisibleRef:m,onFocus:v,onBlur:E,ref:_}=(0,o.Z)(),[C,S]=r.useState(!1);t&&!i&&C&&S(!1),r.useEffect(()=>{m.current=C},[C,m]);let[y,T]=r.useState(""),b=e=>t=>{var i;C&&t.preventDefault(),null==(i=e.onMouseLeave)||i.call(e,t)},A=e=>t=>{var i;E(t),!1===m.current&&S(!1),null==(i=e.onBlur)||i.call(e,t)},R=e=>t=>{var i,n;g.current||(g.current=t.currentTarget),v(t),!0===m.current&&(S(!0),null==(n=e.onFocusVisible)||n.call(e,t)),null==(i=e.onFocus)||i.call(e,t)},L=()=>{let e=g.current;return"BUTTON"===y||"INPUT"===y&&["button","submit","reset"].includes(null==e?void 0:e.type)||"A"===y&&(null==e?void 0:e.href)},N=e=>i=>{if(!t){var n;null==(n=e.onClick)||n.call(e,i)}},I=e=>i=>{var n;t||(f(!0),document.addEventListener("mouseup",()=>{f(!1)},{once:!0})),null==(n=e.onMouseDown)||n.call(e,i)},w=e=>i=>{var n,r;null==(n=e.onKeyDown)||n.call(e,i),!i.defaultMuiPrevented&&(i.target!==i.currentTarget||L()||" "!==i.key||i.preventDefault(),i.target!==i.currentTarget||" "!==i.key||t||f(!0),i.target!==i.currentTarget||L()||"Enter"!==i.key||t||(null==(r=e.onClick)||r.call(e,i),i.preventDefault()))},O=e=>i=>{var n,r;i.target===i.currentTarget&&f(!1),null==(n=e.onKeyUp)||n.call(e,i),i.target!==i.currentTarget||L()||t||" "!==i.key||i.defaultMuiPrevented||null==(r=e.onClick)||r.call(e,i)},x=r.useCallback(e=>{var t;T(null!=(t=null==e?void 0:e.tagName)?t:"")},[]),D=(0,s.Z)(x,h,_,g),M={};return void 0!==u&&(M.tabIndex=u),"BUTTON"===y?(M.type=null!=c?c:"button",i?M["aria-disabled"]=t:M.disabled=t):""!==y&&(l||d||(M.role="button",M.tabIndex=null!=u?u:0),t&&(M["aria-disabled"]=t,M.tabIndex=i?null!=u?u:0:-1)),{getRootProps:(t={})=>{let i=(0,n.Z)({},(0,a._)(e),(0,a._)(t)),r=(0,n.Z)({type:c},i,M,t,{onBlur:A(i),onClick:N(i),onFocus:R(i),onKeyDown:w(i),onKeyUp:O(i),onMouseDown:I(i),onMouseLeave:b(i),ref:D});return delete r.onFocusVisible,r},focusVisible:C,setFocusVisible:S,active:p,rootRef:D}}},26558:function(e,t,i){"use strict";i.d(t,{Z:function(){return r}});var n=i(67294);let r=n.createContext(null)},22644:function(e,t,i){"use strict";i.d(t,{F:function(){return n}});let n={blur:"list:blur",focus:"list:focus",itemClick:"list:itemClick",itemHover:"list:itemHover",itemsChange:"list:itemsChange",keyDown:"list:keyDown",resetHighlight:"list:resetHighlight",textNavigation:"list:textNavigation"}},7333:function(e,t,i){"use strict";i.d(t,{R$:function(){return a},Rl:function(){return o}});var n=i(87462),r=i(22644);function o(e,t,i){var n;let r,o;let{items:s,isItemDisabled:a,disableListWrap:l,disabledItemsFocusable:h,itemComparer:u,focusManagement:d}=i,c=s.length-1,g=null==e?-1:s.findIndex(t=>u(t,e)),p=!l;switch(t){case"reset":if(-1==("DOM"===d?0:-1))return null;r=0,o="next",p=!1;break;case"start":r=0,o="next",p=!1;break;case"end":r=c,o="previous",p=!1;break;default:{let e=g+t;e<0?!p&&-1!==g||Math.abs(t)>1?(r=0,o="next"):(r=c,o="previous"):e>c?!p||Math.abs(t)>1?(r=c,o="previous"):(r=0,o="next"):(r=e,o=t>=0?"next":"previous")}}let f=function(e,t,i,n,r,o){if(0===i.length||!n&&i.every((e,t)=>r(e,t)))return -1;let s=e;for(;;){if(!o&&"next"===t&&s===i.length||!o&&"previous"===t&&-1===s)return -1;let e=!n&&r(i[s],s);if(!e)return s;s+="next"===t?1:-1,o&&(s=(s+i.length)%i.length)}}(r,o,s,h,a,p);return -1!==f||null===e||a(e,g)?null!=(n=s[f])?n:null:e}function s(e,t,i){let{itemComparer:r,isItemDisabled:o,selectionMode:s,items:a}=i,{selectedValues:l}=t,h=a.findIndex(t=>r(e,t));if(o(e,h))return t;let u="none"===s?[]:"single"===s?r(l[0],e)?l:[e]:l.some(t=>r(t,e))?l.filter(t=>!r(t,e)):[...l,e];return(0,n.Z)({},t,{selectedValues:u,highlightedValue:e})}function a(e,t){let{type:i,context:a}=t;switch(i){case r.F.keyDown:return function(e,t,i){let r=t.highlightedValue,{orientation:a,pageSize:l}=i;switch(e){case"Home":return(0,n.Z)({},t,{highlightedValue:o(r,"start",i)});case"End":return(0,n.Z)({},t,{highlightedValue:o(r,"end",i)});case"PageUp":return(0,n.Z)({},t,{highlightedValue:o(r,-l,i)});case"PageDown":return(0,n.Z)({},t,{highlightedValue:o(r,l,i)});case"ArrowUp":if("vertical"!==a)break;return(0,n.Z)({},t,{highlightedValue:o(r,-1,i)});case"ArrowDown":if("vertical"!==a)break;return(0,n.Z)({},t,{highlightedValue:o(r,1,i)});case"ArrowLeft":if("vertical"===a)break;return(0,n.Z)({},t,{highlightedValue:o(r,"horizontal-ltr"===a?-1:1,i)});case"ArrowRight":if("vertical"===a)break;return(0,n.Z)({},t,{highlightedValue:o(r,"horizontal-ltr"===a?1:-1,i)});case"Enter":case" ":if(null===t.highlightedValue)break;return s(t.highlightedValue,t,i)}return t}(t.key,e,a);case r.F.itemClick:return s(t.item,e,a);case r.F.blur:return"DOM"===a.focusManagement?e:(0,n.Z)({},e,{highlightedValue:null});case r.F.textNavigation:return function(e,t,i){let{items:r,isItemDisabled:s,disabledItemsFocusable:a,getItemAsString:l}=i,h=t.length>1,u=h?e.highlightedValue:o(e.highlightedValue,1,i);for(let d=0;dl(e,i.highlightedValue)))?a:null:"DOM"===h&&0===t.length&&(u=o(null,"reset",r));let d=null!=(s=i.selectedValues)?s:[],c=d.filter(t=>e.some(e=>l(e,t)));return(0,n.Z)({},i,{highlightedValue:u,selectedValues:c})}(t.items,t.previousItems,e,a);case r.F.resetHighlight:return(0,n.Z)({},e,{highlightedValue:o(null,"reset",a)});default:return e}}},96592:function(e,t,i){"use strict";i.d(t,{s:function(){return _}});var n=i(87462),r=i(67294),o=i(33703),s=i(22644),a=i(7333);let l="select:change-selection",h="select:change-highlight";var u=i(78031),d=i(6414);function c(e,t){let i=r.useRef(e);return r.useEffect(()=>{i.current=e},null!=t?t:[e]),i}let g={},p=()=>{},f=(e,t)=>e===t,m=()=>!1,v=e=>"string"==typeof e?e:String(e),E=()=>({highlightedValue:null,selectedValues:[]});function _(e){let{controlledProps:t=g,disabledItemsFocusable:i=!1,disableListWrap:_=!1,focusManagement:C="activeDescendant",getInitialState:S=E,getItemDomElement:y,getItemId:T,isItemDisabled:b=m,rootRef:A,onStateChange:R=p,items:L,itemComparer:N=f,getItemAsString:I=v,onChange:w,onHighlightChange:O,onItemsChange:x,orientation:D="vertical",pageSize:M=5,reducerActionContext:k=g,selectionMode:P="single",stateReducer:F}=e,B=r.useRef(null),U=(0,o.Z)(A,B),H=r.useCallback((e,t,i)=>{if(null==O||O(e,t,i),"DOM"===C&&null!=t&&(i===s.F.itemClick||i===s.F.keyDown||i===s.F.textNavigation)){var n;null==y||null==(n=y(t))||n.focus()}},[y,O,C]),V=r.useMemo(()=>({highlightedValue:N,selectedValues:(e,t)=>(0,d.H)(e,t,N)}),[N]),W=r.useCallback((e,t,i,n,r)=>{switch(null==R||R(e,t,i,n,r),t){case"highlightedValue":H(e,i,n);break;case"selectedValues":null==w||w(e,i,n)}},[H,w,R]),G=r.useMemo(()=>({disabledItemsFocusable:i,disableListWrap:_,focusManagement:C,isItemDisabled:b,itemComparer:N,items:L,getItemAsString:I,onHighlightChange:H,orientation:D,pageSize:M,selectionMode:P,stateComparers:V}),[i,_,C,b,N,L,I,H,D,M,P,V]),z=S(),Y=null!=F?F:a.R$,K=r.useMemo(()=>(0,n.Z)({},k,G),[k,G]),[$,X]=(0,u.r)({reducer:Y,actionContext:K,initialState:z,controlledProps:t,stateComparers:V,onStateChange:W}),{highlightedValue:j,selectedValues:q}=$,Z=function(e){let t=r.useRef({searchString:"",lastTime:null});return r.useCallback(i=>{if(1===i.key.length&&" "!==i.key){let n=t.current,r=i.key.toLowerCase(),o=performance.now();n.searchString.length>0&&n.lastTime&&o-n.lastTime>500?n.searchString=r:(1!==n.searchString.length||r!==n.searchString)&&(n.searchString+=r),n.lastTime=o,e(n.searchString,i)}},[e])}((e,t)=>X({type:s.F.textNavigation,event:t,searchString:e})),J=c(q),Q=c(j),ee=r.useRef([]);r.useEffect(()=>{(0,d.H)(ee.current,L,N)||(X({type:s.F.itemsChange,event:null,items:L,previousItems:ee.current}),ee.current=L,null==x||x(L))},[L,N,X,x]);let{notifySelectionChanged:et,notifyHighlightChanged:ei,registerHighlightChangeHandler:en,registerSelectionChangeHandler:er}=function(){let e=function(){let e=r.useRef();return e.current||(e.current=function(){let e=new Map;return{subscribe:function(t,i){let n=e.get(t);return n?n.add(i):(n=new Set([i]),e.set(t,n)),()=>{n.delete(i),0===n.size&&e.delete(t)}},publish:function(t,...i){let n=e.get(t);n&&n.forEach(e=>e(...i))}}}()),e.current}(),t=r.useCallback(t=>{e.publish(l,t)},[e]),i=r.useCallback(t=>{e.publish(h,t)},[e]),n=r.useCallback(t=>e.subscribe(l,t),[e]),o=r.useCallback(t=>e.subscribe(h,t),[e]);return{notifySelectionChanged:t,notifyHighlightChanged:i,registerSelectionChangeHandler:n,registerHighlightChangeHandler:o}}();r.useEffect(()=>{et(q)},[q,et]),r.useEffect(()=>{ei(j)},[j,ei]);let eo=e=>t=>{var i;if(null==(i=e.onKeyDown)||i.call(e,t),t.defaultMuiPrevented)return;let n=["Home","End","PageUp","PageDown"];"vertical"===D?n.push("ArrowUp","ArrowDown"):n.push("ArrowLeft","ArrowRight"),"activeDescendant"===C&&n.push(" ","Enter"),n.includes(t.key)&&t.preventDefault(),X({type:s.F.keyDown,key:t.key,event:t}),Z(t)},es=e=>t=>{var i,n;null==(i=e.onBlur)||i.call(e,t),t.defaultMuiPrevented||null!=(n=B.current)&&n.contains(t.relatedTarget)||X({type:s.F.blur,event:t})},ea=r.useCallback(e=>{var t;let i=L.findIndex(t=>N(t,e)),n=(null!=(t=J.current)?t:[]).some(t=>null!=t&&N(e,t)),r=b(e,i),o=null!=Q.current&&N(e,Q.current),s="DOM"===C;return{disabled:r,focusable:s,highlighted:o,index:i,selected:n}},[L,b,N,J,Q,C]),el=r.useMemo(()=>({dispatch:X,getItemState:ea,registerHighlightChangeHandler:en,registerSelectionChangeHandler:er}),[X,ea,en,er]);return r.useDebugValue({state:$}),{contextValue:el,dispatch:X,getRootProps:(e={})=>(0,n.Z)({},e,{"aria-activedescendant":"activeDescendant"===C&&null!=j?T(j):void 0,onBlur:es(e),onKeyDown:eo(e),tabIndex:"DOM"===C?-1:0,ref:U}),rootRef:U,state:$}}},43069:function(e,t,i){"use strict";i.d(t,{J:function(){return h}});var n=i(87462),r=i(67294),o=i(33703),s=i(73546),a=i(22644),l=i(26558);function h(e){let t;let{handlePointerOverEvents:i=!1,item:h,rootRef:u}=e,d=r.useRef(null),c=(0,o.Z)(d,u),g=r.useContext(l.Z);if(!g)throw Error("useListItem must be used within a ListProvider");let{dispatch:p,getItemState:f,registerHighlightChangeHandler:m,registerSelectionChangeHandler:v}=g,{highlighted:E,selected:_,focusable:C}=f(h),S=function(){let[,e]=r.useState({});return r.useCallback(()=>{e({})},[])}();(0,s.Z)(()=>m(function(e){e!==h||E?e!==h&&E&&S():S()})),(0,s.Z)(()=>v(function(e){_?e.includes(h)||S():e.includes(h)&&S()}),[v,S,_,h]);let y=r.useCallback(e=>t=>{var i;null==(i=e.onClick)||i.call(e,t),t.defaultPrevented||p({type:a.F.itemClick,item:h,event:t})},[p,h]),T=r.useCallback(e=>t=>{var i;null==(i=e.onMouseOver)||i.call(e,t),t.defaultPrevented||p({type:a.F.itemHover,item:h,event:t})},[p,h]);return C&&(t=E?0:-1),{getRootProps:(e={})=>(0,n.Z)({},e,{onClick:y(e),onPointerOver:i?T(e):void 0,ref:c,tabIndex:t}),highlighted:E,rootRef:c,selected:_}}},10238:function(e,t,i){"use strict";i.d(t,{$:function(){return o}});var n=i(87462),r=i(28442);function o(e,t,i){return void 0===e||(0,r.X)(e)?t:(0,n.Z)({},t,{ownerState:(0,n.Z)({},t.ownerState,i)})}},6414:function(e,t,i){"use strict";function n(e,t,i=(e,t)=>e===t){return e.length===t.length&&e.every((e,n)=>i(e,t[n]))}i.d(t,{H:function(){return n}})},2900:function(e,t,i){"use strict";i.d(t,{f:function(){return r}});var n=i(87462);function r(e,t){return function(i={}){let r=(0,n.Z)({},i,e(i)),o=(0,n.Z)({},r,t(r));return o}}},30437:function(e,t,i){"use strict";function n(e,t=[]){if(void 0===e)return{};let i={};return Object.keys(e).filter(i=>i.match(/^on[A-Z]/)&&"function"==typeof e[i]&&!t.includes(i)).forEach(t=>{i[t]=e[t]}),i}i.d(t,{_:function(){return n}})},28442:function(e,t,i){"use strict";function n(e){return"string"==typeof e}i.d(t,{X:function(){return n}})},24407:function(e,t,i){"use strict";i.d(t,{L:function(){return a}});var n=i(87462),r=i(90512),o=i(30437);function s(e){if(void 0===e)return{};let t={};return Object.keys(e).filter(t=>!(t.match(/^on[A-Z]/)&&"function"==typeof e[t])).forEach(i=>{t[i]=e[i]}),t}function a(e){let{getSlotProps:t,additionalProps:i,externalSlotProps:a,externalForwardedProps:l,className:h}=e;if(!t){let e=(0,r.Z)(null==l?void 0:l.className,null==a?void 0:a.className,h,null==i?void 0:i.className),t=(0,n.Z)({},null==i?void 0:i.style,null==l?void 0:l.style,null==a?void 0:a.style),o=(0,n.Z)({},i,l,a);return e.length>0&&(o.className=e),Object.keys(t).length>0&&(o.style=t),{props:o,internalRef:void 0}}let u=(0,o._)((0,n.Z)({},l,a)),d=s(a),c=s(l),g=t(u),p=(0,r.Z)(null==g?void 0:g.className,null==i?void 0:i.className,h,null==l?void 0:l.className,null==a?void 0:a.className),f=(0,n.Z)({},null==g?void 0:g.style,null==i?void 0:i.style,null==l?void 0:l.style,null==a?void 0:a.style),m=(0,n.Z)({},g,i,c,d);return p.length>0&&(m.className=p),Object.keys(f).length>0&&(m.style=f),{props:m,internalRef:g.ref}}},71276:function(e,t,i){"use strict";function n(e,t,i){return"function"==typeof e?e(t,i):e}i.d(t,{x:function(){return n}})},12247:function(e,t,i){"use strict";i.d(t,{Y:function(){return o},s:function(){return r}});var n=i(67294);let r=n.createContext(null);function o(){let[e,t]=n.useState(new Map),i=n.useRef(new Set),r=n.useCallback(function(e){i.current.delete(e),t(t=>{let i=new Map(t);return i.delete(e),i})},[]),o=n.useCallback(function(e,n){let o;return o="function"==typeof e?e(i.current):e,i.current.add(o),t(e=>{let t=new Map(e);return t.set(o,n),t}),{id:o,deregister:()=>r(o)}},[r]),s=n.useMemo(()=>(function(e){let t=Array.from(e.keys()).map(t=>{let i=e.get(t);return{key:t,subitem:i}});return t.sort((e,t)=>{let i=e.subitem.ref.current,n=t.subitem.ref.current;return null===i||null===n||i===n?0:i.compareDocumentPosition(n)&Node.DOCUMENT_POSITION_PRECEDING?1:-1}),new Map(t.map(e=>[e.key,e.subitem]))})(e),[e]),a=n.useCallback(function(e){return Array.from(s.keys()).indexOf(e)},[s]),l=n.useMemo(()=>({getItemIndex:a,registerItem:o,totalSubitemCount:e.size}),[a,o,e.size]);return{contextValue:l,subitems:s}}r.displayName="CompoundComponentContext"},14072:function(e,t,i){"use strict";i.d(t,{B:function(){return s}});var n=i(67294),r=i(73546),o=i(12247);function s(e,t){let i=n.useContext(o.s);if(null===i)throw Error("useCompoundItem must be used within a useCompoundParent");let{registerItem:s}=i,[a,l]=n.useState("function"==typeof e?void 0:e);return(0,r.Z)(()=>{let{id:i,deregister:n}=s(e,t);return l(i),n},[s,t,e]),{id:a,index:void 0!==a?i.getItemIndex(a):-1,totalItemCount:i.totalSubitemCount}}},78031:function(e,t,i){"use strict";i.d(t,{r:function(){return h}});var n=i(87462),r=i(67294);function o(e,t){return e===t}let s={},a=()=>{};function l(e,t){let i=(0,n.Z)({},e);return Object.keys(t).forEach(e=>{void 0!==t[e]&&(i[e]=t[e])}),i}function h(e){let t=r.useRef(null),{reducer:i,initialState:h,controlledProps:u=s,stateComparers:d=s,onStateChange:c=a,actionContext:g}=e,p=r.useCallback((e,n)=>{t.current=n;let r=l(e,u),o=i(r,n);return o},[u,i]),[f,m]=r.useReducer(p,h),v=r.useCallback(e=>{m((0,n.Z)({},e,{context:g}))},[g]);return!function(e){let{nextState:t,initialState:i,stateComparers:n,onStateChange:s,controlledProps:a,lastActionRef:h}=e,u=r.useRef(i);r.useEffect(()=>{if(null===h.current)return;let e=l(u.current,a);Object.keys(t).forEach(i=>{var r,a,l;let u=null!=(r=n[i])?r:o,d=t[i],c=e[i];(null!=c||null==d)&&(null==c||null!=d)&&(null==c||null==d||u(d,c))||null==s||s(null!=(a=h.current.event)?a:null,i,d,null!=(l=h.current.type)?l:"",t)}),u.current=t,h.current=null},[u,t,h,s,n,a])}({nextState:f,initialState:h,stateComparers:null!=d?d:s,onStateChange:null!=c?c:a,controlledProps:u,lastActionRef:t}),[l(f,u),v]}},7293:function(e,t,i){"use strict";i.d(t,{y:function(){return u}});var n=i(87462),r=i(63366),o=i(33703),s=i(10238),a=i(24407),l=i(71276);let h=["elementType","externalSlotProps","ownerState","skipResolvingSlotProps"];function u(e){var t;let{elementType:i,externalSlotProps:u,ownerState:d,skipResolvingSlotProps:c=!1}=e,g=(0,r.Z)(e,h),p=c?{}:(0,l.x)(u,d),{props:f,internalRef:m}=(0,a.L)((0,n.Z)({},g,{externalSlotProps:p})),v=(0,o.Z)(m,null==p?void 0:p.ref,null==(t=e.additionalProps)?void 0:t.ref),E=(0,s.$)(i,(0,n.Z)({},f,{ref:v}),d);return E}},48665:function(e,t,i){"use strict";i.d(t,{Z:function(){return v}});var n=i(87462),r=i(63366),o=i(67294),s=i(90512),a=i(49731),l=i(86523),h=i(39707),u=i(96682),d=i(85893);let c=["className","component"];var g=i(37078),p=i(1812),f=i(2548);let m=function(e={}){let{themeId:t,defaultTheme:i,defaultClassName:g="MuiBox-root",generateClassName:p}=e,f=(0,a.ZP)("div",{shouldForwardProp:e=>"theme"!==e&&"sx"!==e&&"as"!==e})(l.Z),m=o.forwardRef(function(e,o){let a=(0,u.Z)(i),l=(0,h.Z)(e),{className:m,component:v="div"}=l,E=(0,r.Z)(l,c);return(0,d.jsx)(f,(0,n.Z)({as:v,ref:o,className:(0,s.Z)(m,p?p(g):g),theme:t&&a[t]||a},E))});return m}({themeId:f.Z,defaultTheme:p.Z,defaultClassName:"MuiBox-root",generateClassName:g.Z.generate});var v=m},41118:function(e,t,i){"use strict";i.d(t,{Z:function(){return y}});var n=i(63366),r=i(87462),o=i(67294),s=i(90512),a=i(94780),l=i(14142),h=i(18719),u=i(20407),d=i(74312),c=i(78653),g=i(26821);function p(e){return(0,g.d6)("MuiCard",e)}(0,g.sI)("MuiCard",["root","colorPrimary","colorNeutral","colorDanger","colorSuccess","colorWarning","colorContext","variantPlain","variantOutlined","variantSoft","variantSolid","sizeSm","sizeMd","sizeLg","horizontal","vertical"]);var f=i(58859),m=i(30220),v=i(85893);let E=["className","color","component","invertedColors","size","variant","children","orientation","slots","slotProps"],_=e=>{let{size:t,variant:i,color:n,orientation:r}=e,o={root:["root",r,i&&`variant${(0,l.Z)(i)}`,n&&`color${(0,l.Z)(n)}`,t&&`size${(0,l.Z)(t)}`]};return(0,a.Z)(o,p,{})},C=(0,d.Z)("div",{name:"JoyCard",slot:"Root",overridesResolver:(e,t)=>t.root})(({theme:e,ownerState:t})=>{var i,n;let{p:o,padding:s,borderRadius:a}=(0,f.V)({theme:e,ownerState:t},["p","padding","borderRadius"]);return[(0,r.Z)({"--Icon-color":"neutral"!==t.color||"solid"===t.variant?"currentColor":e.vars.palette.text.icon,"--Card-childRadius":"max((var(--Card-radius) - var(--variant-borderWidth, 0px)) - var(--Card-padding), min(var(--Card-padding) / 2, (var(--Card-radius) - var(--variant-borderWidth, 0px)) / 2))","--AspectRatio-radius":"var(--Card-childRadius)","--unstable_actionMargin":"calc(-1 * var(--variant-borderWidth, 0px))","--unstable_actionRadius":"var(--Card-radius)","--CardCover-radius":"calc(var(--Card-radius) - var(--variant-borderWidth, 0px))","--CardOverflow-offset":"calc(-1 * var(--Card-padding))","--CardOverflow-radius":"calc(var(--Card-radius) - var(--variant-borderWidth, 0px))","--Divider-inset":"calc(-1 * var(--Card-padding))"},"sm"===t.size&&{"--Card-radius":e.vars.radius.sm,"--Card-padding":"0.625rem",gap:"0.5rem"},"md"===t.size&&{"--Card-radius":e.vars.radius.md,"--Card-padding":"1rem",gap:"0.75rem 1rem"},"lg"===t.size&&{"--Card-radius":e.vars.radius.lg,"--Card-padding":"1.5rem",gap:"1rem 1.5rem"},{padding:"var(--Card-padding)",borderRadius:"var(--Card-radius)",backgroundColor:e.vars.palette.background.surface,position:"relative",display:"flex",flexDirection:"horizontal"===t.orientation?"row":"column"},e.typography[`body-${t.size}`],null==(i=e.variants[t.variant])?void 0:i[t.color]),"context"!==t.color&&t.invertedColors&&(null==(n=e.colorInversion[t.variant])?void 0:n[t.color]),void 0!==o&&{"--Card-padding":o},void 0!==s&&{"--Card-padding":s},void 0!==a&&{"--Card-radius":a}]}),S=o.forwardRef(function(e,t){let i=(0,u.Z)({props:e,name:"JoyCard"}),{className:a,color:l="neutral",component:d="div",invertedColors:g=!1,size:p="md",variant:f="outlined",children:S,orientation:y="vertical",slots:T={},slotProps:b={}}=i,A=(0,n.Z)(i,E),{getColor:R}=(0,c.VT)(f),L=R(e.color,l),N=(0,r.Z)({},i,{color:L,component:d,orientation:y,size:p,variant:f}),I=_(N),w=(0,r.Z)({},A,{component:d,slots:T,slotProps:b}),[O,x]=(0,m.Z)("root",{ref:t,className:(0,s.Z)(I.root,a),elementType:C,externalForwardedProps:w,ownerState:N}),D=(0,v.jsx)(O,(0,r.Z)({},x,{children:o.Children.map(S,(e,t)=>{if(!o.isValidElement(e))return e;let i={};if((0,h.Z)(e,["Divider"])){i.inset="inset"in e.props?e.props.inset:"context";let t="vertical"===y?"horizontal":"vertical";i.orientation="orientation"in e.props?e.props.orientation:t}return(0,h.Z)(e,["CardOverflow"])&&("horizontal"===y&&(i["data-parent"]="Card-horizontal"),"vertical"===y&&(i["data-parent"]="Card-vertical")),0===t&&(i["data-first-child"]=""),t===o.Children.count(S)-1&&(i["data-last-child"]=""),o.cloneElement(e,i)})}));return g?(0,v.jsx)(c.do,{variant:f,children:D}):D});var y=S},30208:function(e,t,i){"use strict";i.d(t,{Z:function(){return _}});var n=i(87462),r=i(63366),o=i(67294),s=i(90512),a=i(94780),l=i(20407),h=i(74312),u=i(26821);function d(e){return(0,u.d6)("MuiCardContent",e)}(0,u.sI)("MuiCardContent",["root"]);let c=(0,u.sI)("MuiCardOverflow",["root","colorPrimary","colorNeutral","colorDanger","colorSuccess","colorWarning","colorContext","variantPlain","variantOutlined","variantSoft","variantSolid"]);var g=i(30220),p=i(85893);let f=["className","component","children","orientation","slots","slotProps"],m=()=>(0,a.Z)({root:["root"]},d,{}),v=(0,h.Z)("div",{name:"JoyCardContent",slot:"Root",overridesResolver:(e,t)=>t.root})(({ownerState:e})=>({display:"flex",flexDirection:"horizontal"===e.orientation?"row":"column",flex:9999,zIndex:1,columnGap:"var(--Card-padding)",rowGap:"max(2px, calc(0.1875 * var(--Card-padding)))",padding:"var(--unstable_padding)",[`.${c.root} > &`]:{"--unstable_padding":"calc(var(--Card-padding) * 0.75) 0px"}})),E=o.forwardRef(function(e,t){let i=(0,l.Z)({props:e,name:"JoyCardContent"}),{className:o,component:a="div",children:h,orientation:u="vertical",slots:d={},slotProps:c={}}=i,E=(0,r.Z)(i,f),_=(0,n.Z)({},E,{component:a,slots:d,slotProps:c}),C=(0,n.Z)({},i,{component:a,orientation:u}),S=m(),[y,T]=(0,g.Z)("root",{ref:t,className:(0,s.Z)(S.root,o),elementType:v,externalForwardedProps:_,ownerState:C});return(0,p.jsx)(y,(0,n.Z)({},T,{children:h}))});var _=E},76043:function(e,t,i){"use strict";var n=i(67294);let r=n.createContext(void 0);t.Z=r},43614:function(e,t,i){"use strict";var n=i(67294);let r=n.createContext(void 0);t.Z=r},50984:function(e,t,i){"use strict";i.d(t,{C:function(){return s}});var n=i(87462);i(67294);var r=i(74312),o=i(58859);i(85893);let s=(0,r.Z)("ul")(({theme:e,ownerState:t})=>{var i;let{p:r,padding:s,borderRadius:a}=(0,o.V)({theme:e,ownerState:t},["p","padding","borderRadius"]);function l(i){return"sm"===i?{"--ListDivider-gap":"0.25rem","--ListItem-minHeight":"2rem","--ListItem-paddingY":"0.25rem","--ListItem-paddingX":"0.5rem","--ListItemDecorator-size":"horizontal"===t.orientation?"1.5rem":"2rem","--Icon-fontSize":e.vars.fontSize.lg}:"md"===i?{"--ListDivider-gap":"0.375rem","--ListItem-minHeight":"2.5rem","--ListItem-paddingY":"0.375rem","--ListItem-paddingX":"0.75rem","--ListItemDecorator-size":"horizontal"===t.orientation?"1.75rem":"2.5rem","--Icon-fontSize":e.vars.fontSize.xl}:"lg"===i?{"--ListDivider-gap":"0.5rem","--ListItem-minHeight":"3rem","--ListItem-paddingY":"0.5rem","--ListItem-paddingX":"1rem","--ListItemDecorator-size":"horizontal"===t.orientation?"2.25rem":"3rem","--Icon-fontSize":e.vars.fontSize.xl2}:{}}return[t.nesting&&(0,n.Z)({},l(t.instanceSize),{"--ListItem-paddingRight":"var(--ListItem-paddingX)","--ListItem-paddingLeft":"var(--NestedListItem-paddingLeft)","--ListItemButton-marginBlock":"0px","--ListItemButton-marginInline":"0px","--ListItem-marginBlock":"0px","--ListItem-marginInline":"0px",padding:0,marginInlineStart:"var(--NestedList-marginLeft)",marginInlineEnd:"var(--NestedList-marginRight)",marginBlockStart:"var(--List-gap)",marginBlockEnd:"initial"}),!t.nesting&&(0,n.Z)({},l(t.size),{"--List-gap":"0px","--List-nestedInsetStart":"0px","--ListItem-paddingLeft":"var(--ListItem-paddingX)","--ListItem-paddingRight":"var(--ListItem-paddingX)","--unstable_List-childRadius":"calc(max(var(--List-radius) - var(--List-padding), min(var(--List-padding) / 2, var(--List-radius) / 2)) - var(--variant-borderWidth, 0px))","--ListItem-radius":"var(--unstable_List-childRadius)","--ListItem-startActionTranslateX":"calc(0.5 * var(--ListItem-paddingLeft))","--ListItem-endActionTranslateX":"calc(-0.5 * var(--ListItem-paddingRight))",margin:"initial"},e.typography[`body-${t.size}`],"horizontal"===t.orientation?(0,n.Z)({},t.wrap?{padding:"var(--List-padding)",marginInlineStart:"calc(-1 * var(--List-gap))",marginBlockStart:"calc(-1 * var(--List-gap))"}:{paddingInline:"var(--List-padding, var(--ListDivider-gap))",paddingBlock:"var(--List-padding)"}):{paddingBlock:"var(--List-padding, var(--ListDivider-gap))",paddingInline:"var(--List-padding)"}),(0,n.Z)({boxSizing:"border-box",borderRadius:"var(--List-radius)",listStyle:"none",display:"flex",flexDirection:"horizontal"===t.orientation?"row":"column"},t.wrap&&{flexWrap:"wrap"},{flexGrow:1,position:"relative"},null==(i=e.variants[t.variant])?void 0:i[t.color],{"--unstable_List-borderWidth":"var(--variant-borderWidth, 0px)"},void 0!==a&&{"--List-radius":a},void 0!==r&&{"--List-padding":r},void 0!==s&&{"--List-padding":s})]});(0,r.Z)(s,{name:"JoyList",slot:"Root",overridesResolver:(e,t)=>t.root})({})},3419:function(e,t,i){"use strict";i.d(t,{Z:function(){return u},M:function(){return h}});var n=i(87462),r=i(67294),o=i(40780);let s=r.createContext(!1),a=r.createContext(!1);var l=i(85893);let h={"--NestedList-marginRight":"0px","--NestedList-marginLeft":"0px","--NestedListItem-paddingLeft":"var(--ListItem-paddingX)","--ListItemButton-marginBlock":"0px","--ListItemButton-marginInline":"0px","--ListItem-marginBlock":"0px","--ListItem-marginInline":"0px"};var u=function(e){let{children:t,nested:i,row:h=!1,wrap:u=!1}=e,d=(0,l.jsx)(o.Z.Provider,{value:h,children:(0,l.jsx)(s.Provider,{value:u,children:r.Children.map(t,(e,i)=>r.isValidElement(e)?r.cloneElement(e,(0,n.Z)({},0===i&&{"data-first-child":""},i===r.Children.count(t)-1&&{"data-last-child":""})):e)})});return void 0===i?d:(0,l.jsx)(a.Provider,{value:i,children:d})}},40780:function(e,t,i){"use strict";var n=i(67294);let r=n.createContext(!1);t.Z=r},39984:function(e,t,i){"use strict";i.d(t,{r:function(){return l}});var n=i(87462);i(67294);var r=i(74312),o=i(26821);let s=(0,o.sI)("MuiListItem",["root","startAction","endAction","nested","nesting","sticky","colorPrimary","colorNeutral","colorDanger","colorSuccess","colorWarning","colorContext","variantPlain","variantSoft","variantOutlined","variantSolid"]),a=(0,o.sI)("MuiListItemButton",["root","horizontal","vertical","colorPrimary","colorNeutral","colorDanger","colorSuccess","colorWarning","colorContext","focusVisible","disabled","selected","variantPlain","variantSoft","variantOutlined","variantSolid"]);i(85893);let l=(0,r.Z)("div")(({theme:e,ownerState:t})=>{var i,r,o,l,h;return(0,n.Z)({"--Icon-margin":"initial","--Icon-color":"neutral"!==t.color||"solid"===t.variant?"currentColor":e.vars.palette.text.icon,WebkitTapHighlightColor:"transparent",boxSizing:"border-box",position:"relative",font:"inherit",display:"flex",flexDirection:"row",alignItems:"center",alignSelf:"stretch"},"vertical"===t.orientation&&{flexDirection:"column",justifyContent:"center"},{textAlign:"initial",textDecoration:"initial",backgroundColor:"initial",cursor:"pointer",marginInline:"var(--ListItemButton-marginInline)",marginBlock:"var(--ListItemButton-marginBlock)"},void 0===t["data-first-child"]&&{marginInlineStart:t.row?"var(--List-gap)":void 0,marginBlockStart:t.row?void 0:"var(--List-gap)"},{paddingBlock:"calc(var(--ListItem-paddingY) - var(--variant-borderWidth, 0px))",paddingInlineStart:"calc(var(--ListItem-paddingLeft) + var(--ListItem-startActionWidth, var(--unstable_startActionWidth, 0px)))",paddingInlineEnd:"calc(var(--ListItem-paddingRight) + var(--ListItem-endActionWidth, var(--unstable_endActionWidth, 0px)))",minBlockSize:"var(--ListItem-minHeight)",border:"1px solid transparent",borderRadius:"var(--ListItem-radius)",flex:"var(--unstable_ListItem-flex, none)",fontSize:"inherit",lineHeight:"inherit",minInlineSize:0,[e.focus.selector]:(0,n.Z)({},e.focus.default,{zIndex:1})},null==(i=e.variants[t.variant])?void 0:i[t.color],{[`.${s.root} > &`]:{"--unstable_ListItem-flex":"1 0 0%"},[`&.${a.selected}`]:(0,n.Z)({},null==(r=e.variants[`${t.variant}Active`])?void 0:r[t.color],{"--Icon-color":"currentColor"}),[`&:not(.${a.selected}, [aria-selected="true"])`]:{"&:hover":null==(o=e.variants[`${t.variant}Hover`])?void 0:o[t.color],"&:active":null==(l=e.variants[`${t.variant}Active`])?void 0:l[t.color]},[`&.${a.disabled}`]:(0,n.Z)({},null==(h=e.variants[`${t.variant}Disabled`])?void 0:h[t.color])})});(0,r.Z)(l,{name:"JoyListItemButton",slot:"Root",overridesResolver:(e,t)=>t.root})(({ownerState:e,theme:t})=>(0,n.Z)({},!e.row&&{[`&.${a.selected}`]:{fontWeight:t.vars.fontWeight.md}}))},57814:function(e,t,i){"use strict";i.d(t,{Z:function(){return R}});var n=i(87462),r=i(63366),o=i(67294),s=i(94780),a=i(92996),l=i(33703),h=i(43069),u=i(14072),d=i(30220),c=i(39984),g=i(74312),p=i(20407),f=i(78653),m=i(55907),v=i(26821);function E(e){return(0,v.d6)("MuiOption",e)}let _=(0,v.sI)("MuiOption",["root","colorPrimary","colorNeutral","colorDanger","colorSuccess","colorWarning","colorContext","focusVisible","disabled","selected","highlighted","variantPlain","variantSoft","variantOutlined","variantSolid"]);var C=i(40780),S=i(85893);let y=["component","children","disabled","value","label","variant","color","slots","slotProps"],T=e=>{let{disabled:t,highlighted:i,selected:n}=e;return(0,s.Z)({root:["root",t&&"disabled",i&&"highlighted",n&&"selected"]},E,{})},b=(0,g.Z)(c.r,{name:"JoyOption",slot:"Root",overridesResolver:(e,t)=>t.root})(({theme:e,ownerState:t})=>{var i;let n=null==(i=e.variants[`${t.variant}Hover`])?void 0:i[t.color];return{[`&.${_.highlighted}:not([aria-selected="true"])`]:{backgroundColor:null==n?void 0:n.backgroundColor}}}),A=o.forwardRef(function(e,t){var i;let s=(0,p.Z)({props:e,name:"JoyOption"}),{component:c="li",children:g,disabled:v=!1,value:E,label:_,variant:A="plain",color:R="neutral",slots:L={},slotProps:N={}}=s,I=(0,r.Z)(s,y),w=o.useContext(C.Z),{variant:O=A,color:x=R}=(0,m.yP)(e.variant,e.color),D=o.useRef(null),M=(0,l.Z)(D,t),k=null!=_?_:"string"==typeof g?g:null==(i=D.current)?void 0:i.innerText,{getRootProps:P,selected:F,highlighted:B,index:U}=function(e){let{value:t,label:i,disabled:r,rootRef:s,id:d}=e,{getRootProps:c,rootRef:g,highlighted:p,selected:f}=(0,h.J)({item:t}),m=(0,a.Z)(d),v=o.useRef(null),E=o.useMemo(()=>({disabled:r,label:i,value:t,ref:v,id:m}),[r,i,t,m]),{index:_}=(0,u.B)(t,E),C=(0,l.Z)(s,v,g);return{getRootProps:(e={})=>(0,n.Z)({},e,c(e),{id:m,ref:C,role:"option","aria-selected":f}),highlighted:p,index:_,selected:f,rootRef:C}}({disabled:v,label:k,value:E,rootRef:M}),{getColor:H}=(0,f.VT)(O),V=H(e.color,x),W=(0,n.Z)({},s,{disabled:v,selected:F,highlighted:B,index:U,component:c,variant:O,color:V,row:w}),G=T(W),z=(0,n.Z)({},I,{component:c,slots:L,slotProps:N}),[Y,K]=(0,d.Z)("root",{ref:t,getSlotProps:P,elementType:b,externalForwardedProps:z,className:G.root,ownerState:W});return(0,S.jsx)(Y,(0,n.Z)({},K,{children:g}))});var R=A},99056:function(e,t,i){"use strict";i.d(t,{Z:function(){return ea}});var n,r=i(63366),o=i(87462),s=i(67294),a=i(90512),l=i(14142),h=i(33703),u=i(53406),d=i(92996),c=i(73546),g=i(70758);let p={buttonClick:"buttonClick"};var f=i(96592);let m=e=>{let{label:t,value:i}=e;return"string"==typeof t?t:"string"==typeof i?i:String(e)};var v=i(12247),E=i(7333),_=i(22644);function C(e,t){var i,n,r;let{open:s}=e,{context:{selectionMode:a}}=t;if(t.type===p.buttonClick){let n=null!=(i=e.selectedValues[0])?i:(0,E.Rl)(null,"start",t.context);return(0,o.Z)({},e,{open:!s,highlightedValue:s?null:n})}let l=(0,E.R$)(e,t);switch(t.type){case _.F.keyDown:if(e.open){if("Escape"===t.event.key||"single"===a&&("Enter"===t.event.key||" "===t.event.key))return(0,o.Z)({},l,{open:!1})}else{if("Enter"===t.event.key||" "===t.event.key||"ArrowDown"===t.event.key)return(0,o.Z)({},e,{open:!0,highlightedValue:null!=(n=e.selectedValues[0])?n:(0,E.Rl)(null,"start",t.context)});if("ArrowUp"===t.event.key)return(0,o.Z)({},e,{open:!0,highlightedValue:null!=(r=e.selectedValues[0])?r:(0,E.Rl)(null,"end",t.context)})}break;case _.F.itemClick:if("single"===a)return(0,o.Z)({},l,{open:!1});break;case _.F.blur:return(0,o.Z)({},l,{open:!1})}return l}var S=i(2900);let y={clip:"rect(1px, 1px, 1px, 1px)",clipPath:"inset(50%)",height:"1px",width:"1px",margin:"-1px",overflow:"hidden",padding:0,position:"absolute",left:"50%",bottom:0},T=()=>{};function b(e){return Array.isArray(e)?0===e.length?"":JSON.stringify(e.map(e=>e.value)):(null==e?void 0:e.value)==null?"":"string"==typeof e.value||"number"==typeof e.value?e.value:JSON.stringify(e.value)}function A(e){e.preventDefault()}var R=i(26558),L=i(85893);function N(e){let{value:t,children:i}=e,{dispatch:n,getItemIndex:r,getItemState:o,registerHighlightChangeHandler:a,registerSelectionChangeHandler:l,registerItem:h,totalSubitemCount:u}=t,d=s.useMemo(()=>({dispatch:n,getItemState:o,getItemIndex:r,registerHighlightChangeHandler:a,registerSelectionChangeHandler:l}),[n,r,o,a,l]),c=s.useMemo(()=>({getItemIndex:r,registerItem:h,totalSubitemCount:u}),[h,r,u]);return(0,L.jsx)(v.s.Provider,{value:c,children:(0,L.jsx)(R.Z.Provider,{value:d,children:i})})}var I=i(94780),w=i(50984),O=i(3419),x=i(43614),D=i(74312),M=i(20407),k=i(30220),P=i(26821);function F(e){return(0,P.d6)("MuiSvgIcon",e)}(0,P.sI)("MuiSvgIcon",["root","colorInherit","colorPrimary","colorNeutral","colorDanger","colorSuccess","colorWarning","fontSizeInherit","fontSizeXs","fontSizeSm","fontSizeMd","fontSizeLg","fontSizeXl","fontSizeXl2","fontSizeXl3","fontSizeXl4","sizeSm","sizeMd","sizeLg"]);let B=["children","className","color","component","fontSize","htmlColor","inheritViewBox","titleAccess","viewBox","size","slots","slotProps"],U=e=>{let{color:t,size:i,fontSize:n}=e,r={root:["root",t&&"inherit"!==t&&`color${(0,l.Z)(t)}`,i&&`size${(0,l.Z)(i)}`,n&&`fontSize${(0,l.Z)(n)}`]};return(0,I.Z)(r,F,{})},H={sm:"xl",md:"xl2",lg:"xl3"},V=(0,D.Z)("svg",{name:"JoySvgIcon",slot:"Root",overridesResolver:(e,t)=>t.root})(({theme:e,ownerState:t})=>{var i;return(0,o.Z)({},t.instanceSize&&{"--Icon-fontSize":e.vars.fontSize[H[t.instanceSize]]},t.instanceFontSize&&"inherit"!==t.instanceFontSize&&{"--Icon-fontSize":e.vars.fontSize[t.instanceFontSize]},{userSelect:"none",margin:"var(--Icon-margin)",width:"1em",height:"1em",display:"inline-block",fill:t.hasSvgAsChild?void 0:"currentColor",flexShrink:0,fontSize:`var(--Icon-fontSize, ${e.vars.fontSize[H[t.size]]||"unset"})`},t.fontSize&&"inherit"!==t.fontSize&&{fontSize:`var(--Icon-fontSize, ${e.fontSize[t.fontSize]})`},!t.htmlColor&&(0,o.Z)({color:`var(--Icon-color, ${e.vars.palette.text.icon})`},"inherit"===t.color&&{color:"inherit"},"inherit"!==t.color&&"context"!==t.color&&e.vars.palette[t.color]&&{color:`rgba(${null==(i=e.vars.palette[t.color])?void 0:i.mainChannel} / 1)`}))}),W=s.forwardRef(function(e,t){let i=(0,M.Z)({props:e,name:"JoySvgIcon"}),{children:n,className:l,color:h,component:u="svg",fontSize:d,htmlColor:c,inheritViewBox:g=!1,titleAccess:p,viewBox:f="0 0 24 24",size:m="md",slots:v={},slotProps:E={}}=i,_=(0,r.Z)(i,B),C=s.isValidElement(n)&&"svg"===n.type,S=(0,o.Z)({},i,{color:h,component:u,size:m,instanceSize:e.size,fontSize:d,instanceFontSize:e.fontSize,inheritViewBox:g,viewBox:f,hasSvgAsChild:C}),y=U(S),T=(0,o.Z)({},_,{component:u,slots:v,slotProps:E}),[b,A]=(0,k.Z)("root",{ref:t,className:(0,a.Z)(y.root,l),elementType:V,externalForwardedProps:T,ownerState:S,additionalProps:(0,o.Z)({color:c,focusable:!1},p&&{role:"img"},!p&&{"aria-hidden":!0},!g&&{viewBox:f},C&&n.props)});return(0,L.jsxs)(b,(0,o.Z)({},A,{children:[C?n.props.children:n,p?(0,L.jsx)("title",{children:p}):null]}))});var G=function(e,t){function i(i,n){return(0,L.jsx)(W,(0,o.Z)({"data-testid":`${t}Icon`,ref:n},i,{children:e}))}return i.muiName=W.muiName,s.memo(s.forwardRef(i))}((0,L.jsx)("path",{d:"m12 5.83 2.46 2.46c.39.39 1.02.39 1.41 0 .39-.39.39-1.02 0-1.41L12.7 3.7a.9959.9959 0 0 0-1.41 0L8.12 6.88c-.39.39-.39 1.02 0 1.41.39.39 1.02.39 1.41 0L12 5.83zm0 12.34-2.46-2.46a.9959.9959 0 0 0-1.41 0c-.39.39-.39 1.02 0 1.41l3.17 3.18c.39.39 1.02.39 1.41 0l3.17-3.17c.39-.39.39-1.02 0-1.41a.9959.9959 0 0 0-1.41 0L12 18.17z"}),"Unfold"),z=i(78653),Y=i(58859);function K(e){return(0,P.d6)("MuiSelect",e)}let $=(0,P.sI)("MuiSelect",["root","button","indicator","startDecorator","endDecorator","popper","listbox","colorPrimary","colorNeutral","colorDanger","colorSuccess","colorWarning","colorContext","variantPlain","variantOutlined","variantSoft","variantSolid","sizeSm","sizeMd","sizeLg","focusVisible","disabled","expanded"]);var X=i(76043),j=i(55907);let q=["action","autoFocus","children","defaultValue","defaultListboxOpen","disabled","getSerializedValue","placeholder","listboxId","listboxOpen","onChange","onListboxOpenChange","onClose","renderValue","required","value","size","variant","color","startDecorator","endDecorator","indicator","aria-describedby","aria-label","aria-labelledby","id","name","slots","slotProps"];function Z(e){var t;return null!=(t=null==e?void 0:e.label)?t:""}let J=[{name:"offset",options:{offset:[0,4]}},{name:"equalWidth",enabled:!0,phase:"beforeWrite",requires:["computeStyles"],fn:({state:e})=>{e.styles.popper.width=`${e.rects.reference.width}px`}}],Q=e=>{let{color:t,disabled:i,focusVisible:n,size:r,variant:o,open:s}=e,a={root:["root",i&&"disabled",n&&"focusVisible",s&&"expanded",o&&`variant${(0,l.Z)(o)}`,t&&`color${(0,l.Z)(t)}`,r&&`size${(0,l.Z)(r)}`],button:["button"],startDecorator:["startDecorator"],endDecorator:["endDecorator"],indicator:["indicator",s&&"expanded"],listbox:["listbox",s&&"expanded",i&&"disabled"]};return(0,I.Z)(a,K,{})},ee=(0,D.Z)("div",{name:"JoySelect",slot:"Root",overridesResolver:(e,t)=>t.root})(({theme:e,ownerState:t})=>{var i,n,r,s;let a=null==(i=e.variants[`${t.variant}`])?void 0:i[t.color],{borderRadius:l}=(0,Y.V)({theme:e,ownerState:t},["borderRadius"]);return[(0,o.Z)({"--Select-radius":e.vars.radius.sm,"--Select-gap":"0.5rem","--Select-placeholderOpacity":.64,"--Select-decoratorColor":e.vars.palette.text.icon,"--Select-focusedThickness":e.vars.focus.thickness},"context"===t.color?{"--Select-focusedHighlight":e.vars.palette.focusVisible}:{"--Select-focusedHighlight":null==(n=e.vars.palette["neutral"===t.color?"primary":t.color])?void 0:n[500]},{"--Select-indicatorColor":null!=a&&a.backgroundColor?null==a?void 0:a.color:e.vars.palette.text.tertiary},"sm"===t.size&&{"--Select-minHeight":"2rem","--Select-paddingInline":"0.5rem","--Select-decoratorChildHeight":"min(1.5rem, var(--Select-minHeight))","--Icon-fontSize":e.vars.fontSize.xl},"md"===t.size&&{"--Select-minHeight":"2.5rem","--Select-paddingInline":"0.75rem","--Select-decoratorChildHeight":"min(2rem, var(--Select-minHeight))","--Icon-fontSize":e.vars.fontSize.xl2},"lg"===t.size&&{"--Select-minHeight":"3rem","--Select-paddingInline":"1rem","--Select-decoratorChildHeight":"min(2.375rem, var(--Select-minHeight))","--Icon-fontSize":e.vars.fontSize.xl2},{"--Select-decoratorChildOffset":"min(calc(var(--Select-paddingInline) - (var(--Select-minHeight) - 2 * var(--variant-borderWidth, 0px) - var(--Select-decoratorChildHeight)) / 2), var(--Select-paddingInline))","--_Select-paddingBlock":"max((var(--Select-minHeight) - 2 * var(--variant-borderWidth, 0px) - var(--Select-decoratorChildHeight)) / 2, 0px)","--Select-decoratorChildRadius":"max(var(--Select-radius) - var(--variant-borderWidth, 0px) - var(--_Select-paddingBlock), min(var(--_Select-paddingBlock) + var(--variant-borderWidth, 0px), var(--Select-radius) / 2))","--Button-minHeight":"var(--Select-decoratorChildHeight)","--IconButton-size":"var(--Select-decoratorChildHeight)","--Button-radius":"var(--Select-decoratorChildRadius)","--IconButton-radius":"var(--Select-decoratorChildRadius)",boxSizing:"border-box"},"plain"!==t.variant&&{boxShadow:e.shadow.xs},{minWidth:0,minHeight:"var(--Select-minHeight)",position:"relative",display:"flex",alignItems:"center",borderRadius:"var(--Select-radius)",cursor:"pointer"},!(null!=a&&a.backgroundColor)&&{backgroundColor:e.vars.palette.background.surface},t.size&&{paddingBlock:({sm:2,md:3,lg:4})[t.size]},{paddingInline:"var(--Select-paddingInline)"},e.typography[`body-${t.size}`],a,{"&::before":{boxSizing:"border-box",content:'""',display:"block",position:"absolute",pointerEvents:"none",top:0,left:0,right:0,bottom:0,zIndex:1,borderRadius:"inherit",margin:"calc(var(--variant-borderWidth, 0px) * -1)"},[`&.${$.focusVisible}`]:{"--Select-indicatorColor":null==a?void 0:a.color,"&::before":{boxShadow:"inset 0 0 0 var(--Select-focusedThickness) var(--Select-focusedHighlight)"}},[`&.${$.disabled}`]:{"--Select-indicatorColor":"inherit"}}),{"&:hover":null==(r=e.variants[`${t.variant}Hover`])?void 0:r[t.color],[`&.${$.disabled}`]:null==(s=e.variants[`${t.variant}Disabled`])?void 0:s[t.color]},void 0!==l&&{"--Select-radius":l}]}),et=(0,D.Z)("button",{name:"JoySelect",slot:"Button",overridesResolver:(e,t)=>t.button})(({ownerState:e})=>(0,o.Z)({border:0,outline:0,background:"none",padding:0,fontSize:"inherit",color:"inherit",alignSelf:"stretch",display:"flex",alignItems:"center",flex:1,fontFamily:"inherit",cursor:"pointer",whiteSpace:"nowrap",overflow:"hidden"},(null===e.value||void 0===e.value)&&{opacity:"var(--Select-placeholderOpacity)"},{"&::before":{content:'""',display:"block",position:"absolute",top:"calc(-1 * var(--variant-borderWidth, 0px))",left:"calc(-1 * var(--variant-borderWidth, 0px))",right:"calc(-1 * var(--variant-borderWidth, 0px))",bottom:"calc(-1 * var(--variant-borderWidth, 0px))",borderRadius:"var(--Select-radius)"}})),ei=(0,D.Z)(w.C,{name:"JoySelect",slot:"Listbox",overridesResolver:(e,t)=>t.listbox})(({theme:e,ownerState:t})=>{var i;let n="context"===t.color?void 0:null==(i=e.variants[t.variant])?void 0:i[t.color];return(0,o.Z)({"--focus-outline-offset":`calc(${e.vars.focus.thickness} * -1)`,"--ListItem-stickyBackground":(null==n?void 0:n.backgroundColor)||(null==n?void 0:n.background)||e.vars.palette.background.popup,"--ListItem-stickyTop":"calc(var(--List-padding, var(--ListDivider-gap)) * -1)"},O.M,{minWidth:"max-content",maxHeight:"44vh",overflow:"auto",outline:0,boxShadow:e.shadow.md,borderRadius:`var(--List-radius, ${e.vars.radius.sm})`,zIndex:`var(--unstable_popup-zIndex, ${e.vars.zIndex.popup})`},!(null!=n&&n.backgroundColor)&&{backgroundColor:e.vars.palette.background.popup})}),en=(0,D.Z)("span",{name:"JoySelect",slot:"StartDecorator",overridesResolver:(e,t)=>t.startDecorator})({"--Button-margin":"0 0 0 calc(var(--Select-decoratorChildOffset) * -1)","--IconButton-margin":"0 0 0 calc(var(--Select-decoratorChildOffset) * -1)","--Icon-margin":"0 0 0 calc(var(--Select-paddingInline) / -4)",display:"inherit",alignItems:"center",color:"var(--Select-decoratorColor)",marginInlineEnd:"var(--Select-gap)"}),er=(0,D.Z)("span",{name:"JoySelect",slot:"EndDecorator",overridesResolver:(e,t)=>t.endDecorator})({"--Button-margin":"0 calc(var(--Select-decoratorChildOffset) * -1) 0 0","--IconButton-margin":"0 calc(var(--Select-decoratorChildOffset) * -1) 0 0","--Icon-margin":"0 calc(var(--Select-paddingInline) / -4) 0 0",display:"inherit",alignItems:"center",color:"var(--Select-decoratorColor)",marginInlineStart:"var(--Select-gap)"}),eo=(0,D.Z)("span",{name:"JoySelect",slot:"Indicator"})(({ownerState:e,theme:t})=>(0,o.Z)({},"sm"===e.size&&{"--Icon-fontSize":t.vars.fontSize.lg},"md"===e.size&&{"--Icon-fontSize":t.vars.fontSize.xl},"lg"===e.size&&{"--Icon-fontSize":t.vars.fontSize.xl2},{"--Icon-color":"neutral"!==e.color||"solid"===e.variant?"currentColor":t.vars.palette.text.icon,display:"inherit",alignItems:"center",marginInlineStart:"var(--Select-gap)",marginInlineEnd:"calc(var(--Select-paddingInline) / -4)",[`.${$.endDecorator} + &`]:{marginInlineStart:"calc(var(--Select-gap) / 2)"},[`&.${$.expanded}, .${$.disabled} > &`]:{"--Icon-color":"currentColor"}})),es=s.forwardRef(function(e,t){var i,l,E,_,R,I,w;let D=(0,M.Z)({props:e,name:"JoySelect"}),{action:P,autoFocus:F,children:B,defaultValue:U,defaultListboxOpen:H=!1,disabled:V,getSerializedValue:W,placeholder:Y,listboxId:K,listboxOpen:es,onChange:ea,onListboxOpenChange:el,onClose:eh,renderValue:eu,required:ed=!1,value:ec,size:eg="md",variant:ep="outlined",color:ef="neutral",startDecorator:em,endDecorator:ev,indicator:eE=n||(n=(0,L.jsx)(G,{})),"aria-describedby":e_,"aria-label":eC,"aria-labelledby":eS,id:ey,name:eT,slots:eb={},slotProps:eA={}}=D,eR=(0,r.Z)(D,q),eL=s.useContext(X.Z),eN=null!=(i=null!=(l=e.disabled)?l:null==eL?void 0:eL.disabled)?i:V,eI=null!=(E=null!=(_=e.size)?_:null==eL?void 0:eL.size)?E:eg,{getColor:ew}=(0,z.VT)(ep),eO=ew(e.color,null!=eL&&eL.error?"danger":null!=(R=null==eL?void 0:eL.color)?R:ef),ex=null!=eu?eu:Z,[eD,eM]=s.useState(null),ek=s.useRef(null),eP=s.useRef(null),eF=s.useRef(null),eB=(0,h.Z)(t,ek);s.useImperativeHandle(P,()=>({focusVisible:()=>{var e;null==(e=eP.current)||e.focus()}}),[]),s.useEffect(()=>{eM(ek.current)},[]),s.useEffect(()=>{F&&eP.current.focus()},[F]);let eU=s.useCallback(e=>{null==el||el(e),e||null==eh||eh()},[eh,el]),{buttonActive:eH,buttonFocusVisible:eV,contextValue:eW,disabled:eG,getButtonProps:ez,getListboxProps:eY,getHiddenInputProps:eK,getOptionMetadata:e$,open:eX,value:ej}=function(e){let t,i,n;let{areOptionsEqual:r,buttonRef:a,defaultOpen:l=!1,defaultValue:u,disabled:E=!1,listboxId:_,listboxRef:R,multiple:L=!1,name:N,required:I,onChange:w,onHighlightChange:O,onOpenChange:x,open:D,options:M,getOptionAsString:k=m,getSerializedValue:P=b,value:F}=e,B=s.useRef(null),U=(0,h.Z)(a,B),H=s.useRef(null),V=(0,d.Z)(_);void 0===F&&void 0===u?t=[]:void 0!==u&&(t=L?u:null==u?[]:[u]);let W=s.useMemo(()=>{if(void 0!==F)return L?F:null==F?[]:[F]},[F,L]),{subitems:G,contextValue:z}=(0,v.Y)(),Y=s.useMemo(()=>null!=M?new Map(M.map((e,t)=>[e.value,{value:e.value,label:e.label,disabled:e.disabled,ref:s.createRef(),id:`${V}_${t}`}])):G,[M,G,V]),K=(0,h.Z)(R,H),{getRootProps:$,active:X,focusVisible:j,rootRef:q}=(0,g.U)({disabled:E,rootRef:U}),Z=s.useMemo(()=>Array.from(Y.keys()),[Y]),J=s.useCallback(e=>{if(void 0!==r){let t=Z.find(t=>r(t,e));return Y.get(t)}return Y.get(e)},[Y,r,Z]),Q=s.useCallback(e=>{var t;let i=J(e);return null!=(t=null==i?void 0:i.disabled)&&t},[J]),ee=s.useCallback(e=>{let t=J(e);return t?k(t):""},[J,k]),et=s.useMemo(()=>({selectedValues:W,open:D}),[W,D]),ei=s.useCallback(e=>{var t;return null==(t=Y.get(e))?void 0:t.id},[Y]),en=s.useCallback((e,t)=>{if(L)null==w||w(e,t);else{var i;null==w||w(e,null!=(i=t[0])?i:null)}},[L,w]),er=s.useCallback((e,t)=>{null==O||O(e,null!=t?t:null)},[O]),eo=s.useCallback((e,t,i)=>{if("open"===t&&(null==x||x(i),!1===i&&(null==e?void 0:e.type)!=="blur")){var n;null==(n=B.current)||n.focus()}},[x]),es={getInitialState:()=>{var e;return{highlightedValue:null,selectedValues:null!=(e=t)?e:[],open:l}},getItemId:ei,controlledProps:et,itemComparer:r,isItemDisabled:Q,rootRef:q,onChange:en,onHighlightChange:er,onStateChange:eo,reducerActionContext:s.useMemo(()=>({multiple:L}),[L]),items:Z,getItemAsString:ee,selectionMode:L?"multiple":"single",stateReducer:C},{dispatch:ea,getRootProps:el,contextValue:eh,state:{open:eu,highlightedValue:ed,selectedValues:ec},rootRef:eg}=(0,f.s)(es),ep=e=>t=>{var i;if(null==e||null==(i=e.onMouseDown)||i.call(e,t),!t.defaultMuiPrevented){let e={type:p.buttonClick,event:t};ea(e)}};(0,c.Z)(()=>{if(null!=ed){var e;let t=null==(e=J(ed))?void 0:e.ref;if(!H.current||!(null!=t&&t.current))return;let i=H.current.getBoundingClientRect(),n=t.current.getBoundingClientRect();n.topi.bottom&&(H.current.scrollTop+=n.bottom-i.bottom)}},[ed,J]);let ef=s.useCallback(e=>J(e),[J]),em=(e={})=>(0,o.Z)({},e,{onMouseDown:ep(e),ref:eg,role:"combobox","aria-expanded":eu,"aria-controls":V});s.useDebugValue({selectedOptions:ec,highlightedOption:ed,open:eu});let ev=s.useMemo(()=>(0,o.Z)({},eh,z),[eh,z]);if(i=e.multiple?ec:ec.length>0?ec[0]:null,L)n=i.map(e=>ef(e)).filter(e=>void 0!==e);else{var eE;n=null!=(eE=ef(i))?eE:null}return{buttonActive:X,buttonFocusVisible:j,buttonRef:q,contextValue:ev,disabled:E,dispatch:ea,getButtonProps:(e={})=>{let t=(0,S.f)($,el),i=(0,S.f)(t,em);return i(e)},getHiddenInputProps:(e={})=>(0,o.Z)({name:N,tabIndex:-1,"aria-hidden":!0,required:!!I||void 0,value:P(n),onChange:T,style:y},e),getListboxProps:(e={})=>(0,o.Z)({},e,{id:V,role:"listbox","aria-multiselectable":L?"true":void 0,ref:K,onMouseDown:A}),getOptionMetadata:ef,listboxRef:eg,open:eu,options:Z,value:i,highlightedOption:ed}}({buttonRef:eP,defaultOpen:H,defaultValue:U,disabled:eN,getSerializedValue:W,listboxId:K,multiple:!1,name:eT,required:ed,onChange:ea,onOpenChange:eU,open:es,value:ec}),eq=(0,o.Z)({},D,{active:eH,defaultListboxOpen:H,disabled:eG,focusVisible:eV,open:eX,renderValue:ex,value:ej,size:eI,variant:ep,color:eO}),eZ=Q(eq),eJ=(0,o.Z)({},eR,{slots:eb,slotProps:eA}),eQ=s.useMemo(()=>{var e;return null!=(e=e$(ej))?e:null},[e$,ej]),[e0,e1]=(0,k.Z)("root",{ref:eB,className:eZ.root,elementType:ee,externalForwardedProps:eJ,ownerState:eq}),[e2,e4]=(0,k.Z)("button",{additionalProps:{"aria-describedby":null!=e_?e_:null==eL?void 0:eL["aria-describedby"],"aria-label":eC,"aria-labelledby":null!=eS?eS:null==eL?void 0:eL.labelId,"aria-required":ed?"true":void 0,id:null!=ey?ey:null==eL?void 0:eL.htmlFor,name:eT},className:eZ.button,elementType:et,externalForwardedProps:eJ,getSlotProps:ez,ownerState:eq}),[e5,e6]=(0,k.Z)("listbox",{additionalProps:{ref:eF,anchorEl:eD,open:eX,placement:"bottom",keepMounted:!0},className:eZ.listbox,elementType:ei,externalForwardedProps:eJ,getSlotProps:eY,ownerState:(0,o.Z)({},eq,{nesting:!1,row:!1,wrap:!1}),getSlotOwnerState:e=>({size:e.size||eI,variant:e.variant||ep,color:e.color||(e.disablePortal?eO:ef),disableColorInversion:!e.disablePortal})}),[e3,e9]=(0,k.Z)("startDecorator",{className:eZ.startDecorator,elementType:en,externalForwardedProps:eJ,ownerState:eq}),[e7,e8]=(0,k.Z)("endDecorator",{className:eZ.endDecorator,elementType:er,externalForwardedProps:eJ,ownerState:eq}),[te,tt]=(0,k.Z)("indicator",{className:eZ.indicator,elementType:eo,externalForwardedProps:eJ,ownerState:eq}),ti=s.useMemo(()=>[...J,...e6.modifiers||[]],[e6.modifiers]),tn=null;return eD&&(tn=(0,L.jsx)(e5,(0,o.Z)({},e6,{className:(0,a.Z)(e6.className,(null==(I=e6.ownerState)?void 0:I.color)==="context"&&$.colorContext),modifiers:ti},!(null!=(w=D.slots)&&w.listbox)&&{as:u.r,slots:{root:e6.as||"ul"}},{children:(0,L.jsx)(N,{value:eW,children:(0,L.jsx)(j.Yb,{variant:ep,color:ef,children:(0,L.jsx)(x.Z.Provider,{value:"select",children:(0,L.jsx)(O.Z,{nested:!0,children:B})})})})})),e6.disablePortal||(tn=(0,L.jsx)(z.ZP.Provider,{value:void 0,children:tn}))),(0,L.jsxs)(s.Fragment,{children:[(0,L.jsxs)(e0,(0,o.Z)({},e1,{children:[em&&(0,L.jsx)(e3,(0,o.Z)({},e9,{children:em})),(0,L.jsx)(e2,(0,o.Z)({},e4,{children:eQ?ex(eQ):Y})),ev&&(0,L.jsx)(e7,(0,o.Z)({},e8,{children:ev})),eE&&(0,L.jsx)(te,(0,o.Z)({},tt,{children:eE})),(0,L.jsx)("input",(0,o.Z)({},eK()))]})),tn]})});var ea=es},61685:function(e,t,i){"use strict";i.d(t,{Z:function(){return y}});var n=i(63366),r=i(87462),o=i(67294),s=i(90512),a=i(14142),l=i(94780),h=i(20407),u=i(78653),d=i(74312),c=i(26821);function g(e){return(0,c.d6)("MuiTable",e)}(0,c.sI)("MuiTable",["root","colorPrimary","colorNeutral","colorDanger","colorSuccess","colorWarning","colorContext","variantPlain","variantOutlined","variantSoft","variantSolid","sizeSm","sizeMd","sizeLg","stickyHeader","stickyFooter","noWrap","hoverRow","borderAxisNone","borderAxisX","borderAxisXBetween","borderAxisY","borderAxisYBetween","borderAxisBoth","borderAxisBothBetween"]);var p=i(40911),f=i(30220),m=i(85893);let v=["className","component","children","borderAxis","hoverRow","noWrap","size","variant","color","stripe","stickyHeader","stickyFooter","slots","slotProps"],E=e=>{let{size:t,variant:i,color:n,borderAxis:r,stickyHeader:o,stickyFooter:s,noWrap:h,hoverRow:u}=e,d={root:["root",o&&"stickyHeader",s&&"stickyFooter",h&&"noWrap",u&&"hoverRow",r&&`borderAxis${(0,a.Z)(r)}`,i&&`variant${(0,a.Z)(i)}`,n&&`color${(0,a.Z)(n)}`,t&&`size${(0,a.Z)(t)}`]};return(0,l.Z)(d,g,{})},_={getColumnExceptFirst:()=>"& tr > *:not(:first-of-type), & tr > th + td, & tr > td + th",getCell:()=>"& th, & td",getHeadCell:()=>"& th",getHeaderCell:()=>"& thead th",getHeaderCellOfRow:e=>`& thead tr:nth-of-type(${e}) th`,getBottomHeaderCell:()=>"& thead th:not([colspan])",getHeaderNestedFirstColumn:()=>"& thead tr:not(:first-of-type) th:not([colspan]):first-of-type",getDataCell:()=>"& td",getDataCellExceptLastRow:()=>"& tr:not(:last-of-type) > td",getBodyCellExceptLastRow(){return`${this.getDataCellExceptLastRow()}, & tr:not(:last-of-type) > th[scope="row"]`},getBodyCellOfRow:e=>"number"==typeof e&&e<0?`& tbody tr:nth-last-of-type(${Math.abs(e)}) td, & tbody tr:nth-last-of-type(${Math.abs(e)}) th[scope="row"]`:`& tbody tr:nth-of-type(${e}) td, & tbody tr:nth-of-type(${e}) th[scope="row"]`,getBodyRow:e=>void 0===e?"& tbody tr":`& tbody tr:nth-of-type(${e})`,getFooterCell:()=>"& tfoot th, & tfoot td",getFooterFirstRowCell:()=>"& tfoot tr:not(:last-of-type) th, & tfoot tr:not(:last-of-type) td"},C=(0,d.Z)("table",{name:"JoyTable",slot:"Root",overridesResolver:(e,t)=>t.root})(({theme:e,ownerState:t})=>{var i,n,o,s,a,l,h;let u=null==(i=e.variants[t.variant])?void 0:i[t.color];return[(0,r.Z)({"--Table-headerUnderlineThickness":"2px","--TableCell-borderColor":null!=(n=null==u?void 0:u.borderColor)?n:e.vars.palette.divider,"--TableCell-headBackground":`var(--Sheet-background, ${e.vars.palette.background.surface})`},"sm"===t.size&&{"--unstable_TableCell-height":"var(--TableCell-height, 32px)","--TableCell-paddingX":"0.25rem","--TableCell-paddingY":"0.25rem"},"md"===t.size&&{"--unstable_TableCell-height":"var(--TableCell-height, 40px)","--TableCell-paddingX":"0.5rem","--TableCell-paddingY":"0.375rem"},"lg"===t.size&&{"--unstable_TableCell-height":"var(--TableCell-height, 48px)","--TableCell-paddingX":"0.75rem","--TableCell-paddingY":"0.5rem"},{tableLayout:"fixed",width:"100%",borderSpacing:"0px",borderCollapse:"separate",borderRadius:"var(--TableCell-cornerRadius, var(--unstable_actionRadius))"},e.typography[`body-${({sm:"xs",md:"sm",lg:"md"})[t.size]}`],null==(o=e.variants[t.variant])?void 0:o[t.color],{"& caption":{color:e.vars.palette.text.tertiary,padding:"calc(2 * var(--TableCell-paddingY)) var(--TableCell-paddingX)"},[_.getDataCell()]:(0,r.Z)({padding:"var(--TableCell-paddingY) var(--TableCell-paddingX)",height:"var(--unstable_TableCell-height)",borderColor:"var(--TableCell-borderColor)",backgroundColor:"var(--TableCell-dataBackground)"},t.noWrap&&{textOverflow:"ellipsis",whiteSpace:"nowrap",overflow:"hidden"}),[_.getHeadCell()]:{textAlign:"left",padding:"var(--TableCell-paddingY) var(--TableCell-paddingX)",backgroundColor:"var(--TableCell-headBackground)",height:"var(--unstable_TableCell-height)",fontWeight:e.vars.fontWeight.lg,borderColor:"var(--TableCell-borderColor)",color:e.vars.palette.text.secondary,textOverflow:"ellipsis",whiteSpace:"nowrap",overflow:"hidden"},[_.getHeaderCell()]:{verticalAlign:"bottom","&:first-of-type":{borderTopLeftRadius:"var(--TableCell-cornerRadius, var(--unstable_actionRadius))"},"&:last-of-type":{borderTopRightRadius:"var(--TableCell-cornerRadius, var(--unstable_actionRadius))"}},"& tfoot tr > *":{backgroundColor:`var(--TableCell-footBackground, ${e.vars.palette.background.level1})`,"&:first-of-type":{borderBottomLeftRadius:"var(--TableCell-cornerRadius, var(--unstable_actionRadius))"},"&:last-of-type":{borderBottomRightRadius:"var(--TableCell-cornerRadius, var(--unstable_actionRadius))"}}}),((null==(s=t.borderAxis)?void 0:s.startsWith("x"))||(null==(a=t.borderAxis)?void 0:a.startsWith("both")))&&{[_.getHeaderCell()]:{borderBottomWidth:1,borderBottomStyle:"solid"},[_.getBottomHeaderCell()]:{borderBottomWidth:"var(--Table-headerUnderlineThickness)",borderBottomStyle:"solid"},[_.getBodyCellExceptLastRow()]:{borderBottomWidth:1,borderBottomStyle:"solid"},[_.getFooterCell()]:{borderTopWidth:1,borderTopStyle:"solid"}},((null==(l=t.borderAxis)?void 0:l.startsWith("y"))||(null==(h=t.borderAxis)?void 0:h.startsWith("both")))&&{[`${_.getColumnExceptFirst()}, ${_.getHeaderNestedFirstColumn()}`]:{borderLeftWidth:1,borderLeftStyle:"solid"}},("x"===t.borderAxis||"both"===t.borderAxis)&&{[_.getHeaderCellOfRow(1)]:{borderTopWidth:1,borderTopStyle:"solid"},[_.getBodyCellOfRow(-1)]:{borderBottomWidth:1,borderBottomStyle:"solid"},[_.getFooterCell()]:{borderBottomWidth:1,borderBottomStyle:"solid"}},("y"===t.borderAxis||"both"===t.borderAxis)&&{"& tr > *:first-of-type":{borderLeftWidth:1,borderLeftStyle:"solid"},"& tr > *:last-of-type:not(:first-of-type)":{borderRightWidth:1,borderRightStyle:"solid"}},t.stripe&&{[_.getBodyRow(t.stripe)]:{background:`var(--TableRow-stripeBackground, ${e.vars.palette.background.level2})`,color:e.vars.palette.text.primary}},t.hoverRow&&{[_.getBodyRow()]:{"&:hover":{background:`var(--TableRow-hoverBackground, ${e.vars.palette.background.level3})`}}},t.stickyHeader&&{[_.getHeaderCell()]:{position:"sticky",top:0,zIndex:e.vars.zIndex.table},[_.getHeaderCellOfRow(2)]:{top:"var(--unstable_TableCell-height)"}},t.stickyFooter&&{[_.getFooterCell()]:{position:"sticky",bottom:0,zIndex:e.vars.zIndex.table,color:e.vars.palette.text.secondary,fontWeight:e.vars.fontWeight.lg},[_.getFooterFirstRowCell()]:{bottom:"var(--unstable_TableCell-height)"}}]}),S=o.forwardRef(function(e,t){let i=(0,h.Z)({props:e,name:"JoyTable"}),{className:o,component:a,children:l,borderAxis:d="xBetween",hoverRow:c=!1,noWrap:g=!1,size:_="md",variant:S="plain",color:y="neutral",stripe:T,stickyHeader:b=!1,stickyFooter:A=!1,slots:R={},slotProps:L={}}=i,N=(0,n.Z)(i,v),{getColor:I}=(0,u.VT)(S),w=I(e.color,y),O=(0,r.Z)({},i,{borderAxis:d,hoverRow:c,noWrap:g,component:a,size:_,color:w,variant:S,stripe:T,stickyHeader:b,stickyFooter:A}),x=E(O),D=(0,r.Z)({},N,{component:a,slots:R,slotProps:L}),[M,k]=(0,f.Z)("root",{ref:t,className:(0,s.Z)(x.root,o),elementType:C,externalForwardedProps:D,ownerState:O});return(0,m.jsx)(p.eu.Provider,{value:!0,children:(0,m.jsx)(M,(0,r.Z)({},k,{children:l}))})});var y=S},40911:function(e,t,i){"use strict";i.d(t,{eu:function(){return C},ZP:function(){return L}});var n=i(63366),r=i(87462),o=i(67294),s=i(14142),a=i(18719),l=i(39707),h=i(94780),u=i(74312),d=i(20407),c=i(78653),g=i(30220),p=i(26821);function f(e){return(0,p.d6)("MuiTypography",e)}(0,p.sI)("MuiTypography",["root","h1","h2","h3","h4","title-lg","title-md","title-sm","body-lg","body-md","body-sm","body-xs","noWrap","gutterBottom","startDecorator","endDecorator","colorPrimary","colorNeutral","colorDanger","colorSuccess","colorWarning","colorContext","variantPlain","variantOutlined","variantSoft","variantSolid"]);var m=i(85893);let v=["color","textColor"],E=["component","gutterBottom","noWrap","level","levelMapping","children","endDecorator","startDecorator","variant","slots","slotProps"],_=o.createContext(!1),C=o.createContext(!1),S=e=>{let{gutterBottom:t,noWrap:i,level:n,color:r,variant:o}=e,a={root:["root",n,t&&"gutterBottom",i&&"noWrap",r&&`color${(0,s.Z)(r)}`,o&&`variant${(0,s.Z)(o)}`],startDecorator:["startDecorator"],endDecorator:["endDecorator"]};return(0,h.Z)(a,f,{})},y=(0,u.Z)("span",{name:"JoyTypography",slot:"StartDecorator",overridesResolver:(e,t)=>t.startDecorator})({display:"inline-flex",marginInlineEnd:"clamp(4px, var(--Typography-gap, 0.375em), 0.75rem)"}),T=(0,u.Z)("span",{name:"JoyTypography",slot:"endDecorator",overridesResolver:(e,t)=>t.endDecorator})({display:"inline-flex",marginInlineStart:"clamp(4px, var(--Typography-gap, 0.375em), 0.75rem)"}),b=(0,u.Z)("span",{name:"JoyTypography",slot:"Root",overridesResolver:(e,t)=>t.root})(({theme:e,ownerState:t})=>{var i,n,o,s,a;let l="inherit"!==t.level?null==(i=e.typography[t.level])?void 0:i.lineHeight:"1";return(0,r.Z)({"--Icon-fontSize":`calc(1em * ${l})`},t.color&&{"--Icon-color":"currentColor"},{margin:"var(--Typography-margin, 0px)"},t.nesting?{display:"inline"}:(0,r.Z)({display:"block"},t.unstable_hasSkeleton&&{position:"relative"}),(t.startDecorator||t.endDecorator)&&(0,r.Z)({display:"flex",alignItems:"center"},t.nesting&&(0,r.Z)({display:"inline-flex"},t.startDecorator&&{verticalAlign:"bottom"})),t.level&&"inherit"!==t.level&&e.typography[t.level],{fontSize:`var(--Typography-fontSize, ${t.level&&"inherit"!==t.level&&null!=(n=null==(o=e.typography[t.level])?void 0:o.fontSize)?n:"inherit"})`},t.noWrap&&{overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},t.gutterBottom&&{marginBottom:"0.35em"},t.color&&"context"!==t.color&&{color:`rgba(${null==(s=e.vars.palette[t.color])?void 0:s.mainChannel} / 1)`},t.variant&&(0,r.Z)({borderRadius:e.vars.radius.xs,paddingBlock:"min(0.1em, 4px)",paddingInline:"0.25em"},!t.nesting&&{marginInline:"-0.25em"},null==(a=e.variants[t.variant])?void 0:a[t.color]))}),A={h1:"h1",h2:"h2",h3:"h3",h4:"h4","title-lg":"p","title-md":"p","title-sm":"p","body-lg":"p","body-md":"p","body-sm":"p","body-xs":"span",inherit:"p"},R=o.forwardRef(function(e,t){let i=(0,d.Z)({props:e,name:"JoyTypography"}),{color:s,textColor:h}=i,u=(0,n.Z)(i,v),p=o.useContext(_),f=o.useContext(C),R=(0,l.Z)((0,r.Z)({},u,{color:h})),{component:L,gutterBottom:N=!1,noWrap:I=!1,level:w="body-md",levelMapping:O=A,children:x,endDecorator:D,startDecorator:M,variant:k,slots:P={},slotProps:F={}}=R,B=(0,n.Z)(R,E),{getColor:U}=(0,c.VT)(k),H=U(e.color,k?null!=s?s:"neutral":s),V=p||f?e.level||"inherit":w,W=(0,a.Z)(x,["Skeleton"]),G=L||(p?"span":O[V]||A[V]||"span"),z=(0,r.Z)({},R,{level:V,component:G,color:H,gutterBottom:N,noWrap:I,nesting:p,variant:k,unstable_hasSkeleton:W}),Y=S(z),K=(0,r.Z)({},B,{component:G,slots:P,slotProps:F}),[$,X]=(0,g.Z)("root",{ref:t,className:Y.root,elementType:b,externalForwardedProps:K,ownerState:z}),[j,q]=(0,g.Z)("startDecorator",{className:Y.startDecorator,elementType:y,externalForwardedProps:K,ownerState:z}),[Z,J]=(0,g.Z)("endDecorator",{className:Y.endDecorator,elementType:T,externalForwardedProps:K,ownerState:z});return(0,m.jsx)(_.Provider,{value:!0,children:(0,m.jsxs)($,(0,r.Z)({},X,{children:[M&&(0,m.jsx)(j,(0,r.Z)({},q,{children:M})),W?o.cloneElement(x,{variant:x.props.variant||"inline"}):x,D&&(0,m.jsx)(Z,(0,r.Z)({},J,{children:D}))]}))})});R.muiName="Typography";var L=R},78653:function(e,t,i){"use strict";i.d(t,{VT:function(){return l},do:function(){return h}});var n=i(67294),r=i(38629),o=i(1812),s=i(85893);let a=n.createContext(void 0),l=e=>{let t=n.useContext(a);return{getColor:(i,n)=>t&&e&&t.includes(e)?i||"context":i||n}};function h({children:e,variant:t}){var i;let n=(0,r.F)();return(0,s.jsx)(a.Provider,{value:t?(null!=(i=n.colorInversionConfig)?i:o.Z.colorInversionConfig)[t]:void 0,children:e})}t.ZP=a},58859:function(e,t,i){"use strict";i.d(t,{V:function(){return r}});var n=i(87462);let r=({theme:e,ownerState:t},i)=>{let r={};return t.sx&&(function t(i){if("function"==typeof i){let n=i(e);t(n)}else Array.isArray(i)?i.forEach(e=>{"boolean"!=typeof e&&t(e)}):"object"==typeof i&&(r=(0,n.Z)({},r,i))}(t.sx),i.forEach(t=>{let i=r[t];if("string"==typeof i||"number"==typeof i){if("borderRadius"===t){if("number"==typeof i)r[t]=`${i}px`;else{var n;r[t]=(null==(n=e.vars)?void 0:n.radius[i])||i}}else -1!==["p","padding","m","margin"].indexOf(t)&&"number"==typeof i?r[t]=e.spacing(i):r[t]=i}else"function"==typeof i?r[t]=i(e):r[t]=void 0})),r}},74312:function(e,t,i){"use strict";var n=i(70182),r=i(1812),o=i(2548);let s=(0,n.ZP)({defaultTheme:r.Z,themeId:o.Z});t.Z=s},20407:function(e,t,i){"use strict";i.d(t,{Z:function(){return a}});var n=i(87462),r=i(39214),o=i(1812),s=i(2548);function a({props:e,name:t}){return(0,r.Z)({props:e,name:t,defaultTheme:(0,n.Z)({},o.Z,{components:{}}),themeId:s.Z})}},55907:function(e,t,i){"use strict";i.d(t,{Yb:function(){return a},yP:function(){return s}});var n=i(67294),r=i(85893);let o=n.createContext(void 0);function s(e,t){var i;let r,s;let a=n.useContext(o),[l,h]="string"==typeof a?a.split(":"):[],u=(i=l||void 0,r=h||void 0,s=i,"outlined"===i&&(r="neutral",s="plain"),"plain"===i&&(r="neutral"),{variant:s,color:r});return u.variant=e||u.variant,u.color=t||u.color,u}function a({children:e,color:t,variant:i}){return(0,r.jsx)(o.Provider,{value:`${i||""}:${t||""}`,children:e})}},30220:function(e,t,i){"use strict";i.d(t,{Z:function(){return p}});var n=i(87462),r=i(63366),o=i(33703),s=i(71276),a=i(24407),l=i(10238),h=i(78653);let u=["className","elementType","ownerState","externalForwardedProps","getSlotOwnerState","internalForwardedProps"],d=["component","slots","slotProps"],c=["component"],g=["disableColorInversion"];function p(e,t){let{className:i,elementType:p,ownerState:f,externalForwardedProps:m,getSlotOwnerState:v,internalForwardedProps:E}=t,_=(0,r.Z)(t,u),{component:C,slots:S={[e]:void 0},slotProps:y={[e]:void 0}}=m,T=(0,r.Z)(m,d),b=S[e]||p,A=(0,s.x)(y[e],f),R=(0,a.L)((0,n.Z)({className:i},_,{externalForwardedProps:"root"===e?T:void 0,externalSlotProps:A})),{props:{component:L},internalRef:N}=R,I=(0,r.Z)(R.props,c),w=(0,o.Z)(N,null==A?void 0:A.ref,t.ref),O=v?v(I):{},{disableColorInversion:x=!1}=O,D=(0,r.Z)(O,g),M=(0,n.Z)({},f,D),{getColor:k}=(0,h.VT)(M.variant);if("root"===e){var P;M.color=null!=(P=I.color)?P:f.color}else x||(M.color=k(I.color,M.color));let F="root"===e?L||C:L,B=(0,l.$)(b,(0,n.Z)({},"root"===e&&!C&&!S[e]&&E,"root"!==e&&!S[e]&&E,I,F&&{as:F},{ref:w}),M);return Object.keys(D).forEach(e=>{delete B[e]}),[b,B]}},39707:function(e,t,i){"use strict";i.d(t,{Z:function(){return h}});var n=i(87462),r=i(63366),o=i(59766),s=i(44920);let a=["sx"],l=e=>{var t,i;let n={systemProps:{},otherProps:{}},r=null!=(t=null==e||null==(i=e.theme)?void 0:i.unstable_sxConfig)?t:s.Z;return Object.keys(e).forEach(t=>{r[t]?n.systemProps[t]=e[t]:n.otherProps[t]=e[t]}),n};function h(e){let t;let{sx:i}=e,s=(0,r.Z)(e,a),{systemProps:h,otherProps:u}=l(s);return t=Array.isArray(i)?[h,...i]:"function"==typeof i?(...e)=>{let t=i(...e);return(0,o.P)(t)?(0,n.Z)({},h,t):h}:(0,n.Z)({},h,i),(0,n.Z)({},u,{sx:t})}},2093:function(e,t,i){"use strict";var n=i(97582),r=i(67294),o=i(92770);t.Z=function(e,t){(0,r.useEffect)(function(){var t=e(),i=!1;return!function(){(0,n.mG)(this,void 0,void 0,function(){return(0,n.Jh)(this,function(e){switch(e.label){case 0:if(!(0,o.mf)(t[Symbol.asyncIterator]))return[3,4];e.label=1;case 1:return[4,t.next()];case 2:if(e.sent().done||i)return[3,3];return[3,1];case 3:return[3,6];case 4:return[4,t];case 5:e.sent(),e.label=6;case 6:return[2]}})})}(),function(){i=!0}},t)}},56645:function(e,t){!function(e){"use strict";function t(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var i=[],n=!0,r=!1,o=void 0;try{for(var s,a=e[Symbol.iterator]();!(n=(s=a.next()).done)&&(i.push(s.value),!t||i.length!==t);n=!0);}catch(e){r=!0,o=e}finally{try{n||null==a.return||a.return()}finally{if(r)throw o}}return i}(e,t)||function(){throw TypeError("Invalid attempt to destructure non-iterable instance")}()}function i(e,t,i,n){e=e.filter(function(e,n){var r=t(e,n),o=i(e,n);return null!=r&&isFinite(r)&&null!=o&&isFinite(o)}),n&&e.sort(function(e,i){return t(e)-t(i)});for(var r,o,s,a=e.length,l=new Float64Array(a),h=new Float64Array(a),u=0,d=0,c=0;cn&&(e.splice(a+1,0,c),r=!0)}return r}(r)&&s<1e4;);return r}function a(e,t,i,n){var r=n-e*e,o=1e-24>Math.abs(r)?0:(i-e*t)/r;return[t-o*e,o]}function l(){var e,i=function(e){return e[0]},o=function(e){return e[1]};function s(s){var l=0,h=0,u=0,d=0,c=0,g=e?+e[0]:1/0,p=e?+e[1]:-1/0;n(s,i,o,function(t,i){++l,h+=(t-h)/l,u+=(i-u)/l,d+=(t*i-d)/l,c+=(t*t-c)/l,!e&&(tp&&(p=t))});var f=t(a(h,u,d,c),2),m=f[0],v=f[1],E=function(e){return v*e+m},_=[[g,E(g)],[p,E(p)]];return _.a=v,_.b=m,_.predict=E,_.rSquared=r(s,i,o,u,E),_}return s.domain=function(t){return arguments.length?(e=t,s):e},s.x=function(e){return arguments.length?(i=e,s):i},s.y=function(e){return arguments.length?(o=e,s):o},s}function h(){var e,o=function(e){return e[0]},a=function(e){return e[1]};function l(l){var h,u,d,c,g=t(i(l,o,a),4),p=g[0],f=g[1],m=g[2],v=g[3],E=p.length,_=0,C=0,S=0,y=0,T=0;for(h=0;hL&&(L=t))});var N=S-_*_,I=_*N-C*C,w=(T*_-y*C)/I,O=(y*N-T*C)/I,x=-w*_,D=function(e){return w*(e-=m)*e+O*e+x+v},M=s(R,L,D);return M.a=w,M.b=O-2*w*m,M.c=x-O*m+w*m*m+v,M.predict=D,M.rSquared=r(l,o,a,b,D),M}return l.domain=function(t){return arguments.length?(e=t,l):e},l.x=function(e){return arguments.length?(o=e,l):o},l.y=function(e){return arguments.length?(a=e,l):a},l}e.regressionExp=function(){var e,i=function(e){return e[0]},o=function(e){return e[1]};function l(l){var h=0,u=0,d=0,c=0,g=0,p=0,f=e?+e[0]:1/0,m=e?+e[1]:-1/0;n(l,i,o,function(t,i){var n=Math.log(i),r=t*i;++h,u+=(i-u)/h,c+=(r-c)/h,p+=(t*r-p)/h,d+=(i*n-d)/h,g+=(r*n-g)/h,!e&&(tm&&(m=t))});var v=t(a(c/u,d/u,g/u,p/u),2),E=v[0],_=v[1];E=Math.exp(E);var C=function(e){return E*Math.exp(_*e)},S=s(f,m,C);return S.a=E,S.b=_,S.predict=C,S.rSquared=r(l,i,o,u,C),S}return l.domain=function(t){return arguments.length?(e=t,l):e},l.x=function(e){return arguments.length?(i=e,l):i},l.y=function(e){return arguments.length?(o=e,l):o},l},e.regressionLinear=l,e.regressionLoess=function(){var e=function(e){return e[0]},n=function(e){return e[1]},r=.3;function o(o){for(var s=t(i(o,e,n,!0),4),l=s[0],h=s[1],u=s[2],d=s[3],c=l.length,g=Math.max(2,~~(r*c)),p=new Float64Array(c),f=new Float64Array(c),m=new Float64Array(c).fill(1),v=-1;++v<=2;){for(var E=[0,g-1],_=0;_l[y]-C?S:y,b=0,A=0,R=0,L=0,N=0,I=1/Math.abs(l[T]-C||1),w=S;w<=y;++w){var O,x=l[w],D=h[w],M=(O=1-(O=Math.abs(C-x)*I)*O*O)*O*O*m[w],k=x*M;b+=M,A+=k,R+=D*M,L+=D*k,N+=x*k}var P=t(a(A/b,R/b,L/b,N/b),2),F=P[0],B=P[1];p[_]=F+B*C,f[_]=Math.abs(h[_]-p[_]),function(e,t,i){var n=e[t],r=i[0],o=i[1]+1;if(!(o>=e.length))for(;t>r&&e[o]-n<=n-e[r];)i[0]=++r,i[1]=o,++o}(l,_+1,E)}if(2===v)break;var U=function(e){e.sort(function(e,t){return e-t});var t=e.length/2;return t%1==0?(e[t-1]+e[t])/2:e[Math.floor(t)]}(f);if(1e-12>Math.abs(U))break;for(var H,V,W=0;W=1?1e-12:(V=1-H*H)*V}return function(e,t,i,n){for(var r,o=e.length,s=[],a=0,l=0,h=[];am&&(m=t))});var E=t(a(d,c,g,p),2),_=E[0],C=E[1],S=function(e){return C*Math.log(e)/v+_},y=s(f,m,S);return y.a=C,y.b=_,y.predict=S,y.rSquared=r(h,i,o,c,S),y}return h.domain=function(t){return arguments.length?(e=t,h):e},h.x=function(e){return arguments.length?(i=e,h):i},h.y=function(e){return arguments.length?(o=e,h):o},h.base=function(e){return arguments.length?(l=e,h):l},h},e.regressionPoly=function(){var e,o=function(e){return e[0]},a=function(e){return e[1]},u=3;function d(d){if(1===u){var c,g,p,f,m,v=l().x(o).y(a).domain(e)(d);return v.coefficients=[v.b,v.a],delete v.a,delete v.b,v}if(2===u){var E=h().x(o).y(a).domain(e)(d);return E.coefficients=[E.c,E.b,E.a],delete E.a,delete E.b,delete E.c,E}var _=t(i(d,o,a),4),C=_[0],S=_[1],y=_[2],T=_[3],b=C.length,A=[],R=[],L=u+1,N=0,I=0,w=e?+e[0]:1/0,O=e?+e[1]:-1/0;for(n(d,o,a,function(t,i){++I,N+=(i-N)/I,!e&&(tO&&(O=t))}),c=0;cMath.abs(e[t][r])&&(r=i);for(n=t;n=t;n--)e[n][i]-=e[n][t]*e[t][i]/e[t][t]}for(i=s-1;i>=0;--i){for(o=0,n=i+1;n