From 5d4acce33a7d07c2cf6553616c26a216b2a4fd37 Mon Sep 17 00:00:00 2001 From: DimaAmega Date: Fri, 20 Oct 2023 14:52:41 +0400 Subject: [PATCH] commit ui assets --- src/evidently/ui/ui/index.html | 3 +- .../ui/ui/static/js/Button-085c6ce4.js | 1 + .../ui/ui/static/js/Component-6baa4579.js | 1 + .../ui/ui/static/js/Component-88068259.js | 3 + .../ui/ui/static/js/Component-8a3c23d4.js | 4 + .../ui/ui/static/js/Component-8b99584b.js | 1 + .../ui/ui/static/js/Component-9ba3869f.js | 1 + .../ui/ui/static/js/Component-b2a75726.js | 1 + .../ui/ui/static/js/Component-ba7b8280.js | 1 + .../ui/ui/static/js/Component-f9649b14.js | 1 + .../ui/ui/static/js/ContentCopy-2be27db4.js | 1 + .../ui/static/js/DashboardContent-ab24b4bf.js | 406 +++++++++++ .../ui/ui/static/js/Datetime-bd8955b4.js | 1 + .../ui/ui/static/js/Edit-f207c17d.js | 1 + .../ui/ui/static/js/Grid-ec570cb4.js | 1 + .../ui/ui/static/js/Link-9fdafac8.js | 1 + .../js/LocalizationProvider-f22c467c.js | 3 + .../ui/ui/static/js/TableRow-e790adad.js | 2 + .../ui/ui/static/js/Tabs-2c8f7c5f.js | 1 + .../ui/ui/static/js/TextField-33506b98.js | 2 + .../ui/ui/static/js/Toolbar-03fb06fb.js | 54 ++ .../ui/ui/static/js/createSvgIcon-41173291.js | 95 +++ .../ui/ui/static/js/index-070914a7.js | 1 + .../ui/ui/static/js/index-d40ad7a2.js | 629 ------------------ .../ui/static/js/tiny-invariant-dd7d57d2.js | 1 + ...ryStringValueWithoutNavigation-bd5f68fd.js | 1 + .../ui/ui/static/js/vendor-20fe28cb.js | 68 ++ 27 files changed, 655 insertions(+), 630 deletions(-) create mode 100644 src/evidently/ui/ui/static/js/Button-085c6ce4.js create mode 100644 src/evidently/ui/ui/static/js/Component-6baa4579.js create mode 100644 src/evidently/ui/ui/static/js/Component-88068259.js create mode 100644 src/evidently/ui/ui/static/js/Component-8a3c23d4.js create mode 100644 src/evidently/ui/ui/static/js/Component-8b99584b.js create mode 100644 src/evidently/ui/ui/static/js/Component-9ba3869f.js create mode 100644 src/evidently/ui/ui/static/js/Component-b2a75726.js create mode 100644 src/evidently/ui/ui/static/js/Component-ba7b8280.js create mode 100644 src/evidently/ui/ui/static/js/Component-f9649b14.js create mode 100644 src/evidently/ui/ui/static/js/ContentCopy-2be27db4.js create mode 100644 src/evidently/ui/ui/static/js/DashboardContent-ab24b4bf.js create mode 100644 src/evidently/ui/ui/static/js/Datetime-bd8955b4.js create mode 100644 src/evidently/ui/ui/static/js/Edit-f207c17d.js create mode 100644 src/evidently/ui/ui/static/js/Grid-ec570cb4.js create mode 100644 src/evidently/ui/ui/static/js/Link-9fdafac8.js create mode 100644 src/evidently/ui/ui/static/js/LocalizationProvider-f22c467c.js create mode 100644 src/evidently/ui/ui/static/js/TableRow-e790adad.js create mode 100644 src/evidently/ui/ui/static/js/Tabs-2c8f7c5f.js create mode 100644 src/evidently/ui/ui/static/js/TextField-33506b98.js create mode 100644 src/evidently/ui/ui/static/js/Toolbar-03fb06fb.js create mode 100644 src/evidently/ui/ui/static/js/createSvgIcon-41173291.js create mode 100644 src/evidently/ui/ui/static/js/index-070914a7.js delete mode 100644 src/evidently/ui/ui/static/js/index-d40ad7a2.js create mode 100644 src/evidently/ui/ui/static/js/tiny-invariant-dd7d57d2.js create mode 100644 src/evidently/ui/ui/static/js/useUpdateQueryStringValueWithoutNavigation-bd5f68fd.js create mode 100644 src/evidently/ui/ui/static/js/vendor-20fe28cb.js diff --git a/src/evidently/ui/ui/index.html b/src/evidently/ui/ui/index.html index 6c6facd4fe..12e4b1b152 100644 --- a/src/evidently/ui/ui/index.html +++ b/src/evidently/ui/ui/index.html @@ -11,7 +11,8 @@ content="Evidently - ML Monitoring Demo. Hosted example to monitor the performance of a demand forecasting model on a toy dataset." /> Evidently - ML Monitoring Demo - + + diff --git a/src/evidently/ui/ui/static/js/Button-085c6ce4.js b/src/evidently/ui/ui/static/js/Button-085c6ce4.js new file mode 100644 index 0000000000..fb31b22592 --- /dev/null +++ b/src/evidently/ui/ui/static/js/Button-085c6ce4.js @@ -0,0 +1 @@ +import{g as h,a as M,s as $,_ as i,n as c,u as E,b as N,d as y,e as W,B as q,ap as F,c as e,aG as A}from"./createSvgIcon-41173291.js";import{e as d,j as z}from"./vendor-20fe28cb.js";const H=o=>{let a;return o<1?a=5.11916*o**2:a=4.5*Math.log(o+1)+2,(a/100).toFixed(2)},P=H;function D(o){return h("MuiPaper",o)}const J=M("MuiPaper",["root","rounded","outlined","elevation","elevation0","elevation1","elevation2","elevation3","elevation4","elevation5","elevation6","elevation7","elevation8","elevation9","elevation10","elevation11","elevation12","elevation13","elevation14","elevation15","elevation16","elevation17","elevation18","elevation19","elevation20","elevation21","elevation22","elevation23","elevation24"]),vo=J,K=["className","component","elevation","square","variant"],Q=o=>{const{square:a,elevation:n,variant:t,classes:r}=o,s={root:["root",t,!a&&"rounded",t==="elevation"&&`elevation${n}`]};return W(s,D,r)},X=$("div",{name:"MuiPaper",slot:"Root",overridesResolver:(o,a)=>{const{ownerState:n}=o;return[a.root,a[n.variant],!n.square&&a.rounded,n.variant==="elevation"&&a[`elevation${n.elevation}`]]}})(({theme:o,ownerState:a})=>{var n;return i({backgroundColor:(o.vars||o).palette.background.paper,color:(o.vars||o).palette.text.primary,transition:o.transitions.create("box-shadow")},!a.square&&{borderRadius:o.shape.borderRadius},a.variant==="outlined"&&{border:`1px solid ${(o.vars||o).palette.divider}`},a.variant==="elevation"&&i({boxShadow:(o.vars||o).shadows[a.elevation]},!o.vars&&o.palette.mode==="dark"&&{backgroundImage:`linear-gradient(${c("#fff",P(a.elevation))}, ${c("#fff",P(a.elevation))})`},o.vars&&{backgroundImage:(n=o.vars.overlays)==null?void 0:n[a.elevation]}))}),Y=d.forwardRef(function(a,n){const t=E({props:a,name:"MuiPaper"}),{className:r,component:s="div",elevation:l=1,square:p=!1,variant:u="elevation"}=t,x=N(t,K),g=i({},t,{component:s,elevation:l,square:p,variant:u}),b=Q(g);return z.jsx(X,i({as:s,ownerState:g,className:y(b.root,r),ref:n},x))}),xo=Y;function Z(o){return h("MuiButton",o)}const w=M("MuiButton",["root","text","textInherit","textPrimary","textSecondary","textSuccess","textError","textInfo","textWarning","outlined","outlinedInherit","outlinedPrimary","outlinedSecondary","outlinedSuccess","outlinedError","outlinedInfo","outlinedWarning","contained","containedInherit","containedPrimary","containedSecondary","containedSuccess","containedError","containedInfo","containedWarning","disableElevation","focusVisible","disabled","colorInherit","textSizeSmall","textSizeMedium","textSizeLarge","outlinedSizeSmall","outlinedSizeMedium","outlinedSizeLarge","containedSizeSmall","containedSizeMedium","containedSizeLarge","sizeMedium","sizeSmall","sizeLarge","fullWidth","startIcon","endIcon","iconSizeSmall","iconSizeMedium","iconSizeLarge"]),C=w,oo=d.createContext({}),ao=oo,no=d.createContext(void 0),io=no,to=["children","color","component","className","disabled","disableElevation","disableFocusRipple","endIcon","focusVisibleClassName","fullWidth","size","startIcon","type","variant"],ro=o=>{const{color:a,disableElevation:n,fullWidth:t,size:r,variant:s,classes:l}=o,p={root:["root",s,`${s}${e(a)}`,`size${e(r)}`,`${s}Size${e(r)}`,a==="inherit"&&"colorInherit",n&&"disableElevation",t&&"fullWidth"],label:["label"],startIcon:["startIcon",`iconSize${e(r)}`],endIcon:["endIcon",`iconSize${e(r)}`]},u=W(p,Z,l);return i({},l,u)},m=o=>i({},o.size==="small"&&{"& > *:nth-of-type(1)":{fontSize:18}},o.size==="medium"&&{"& > *:nth-of-type(1)":{fontSize:20}},o.size==="large"&&{"& > *:nth-of-type(1)":{fontSize:22}}),so=$(q,{shouldForwardProp:o=>F(o)||o==="classes",name:"MuiButton",slot:"Root",overridesResolver:(o,a)=>{const{ownerState:n}=o;return[a.root,a[n.variant],a[`${n.variant}${e(n.color)}`],a[`size${e(n.size)}`],a[`${n.variant}Size${e(n.size)}`],n.color==="inherit"&&a.colorInherit,n.disableElevation&&a.disableElevation,n.fullWidth&&a.fullWidth]}})(({theme:o,ownerState:a})=>{var n,t;const r=o.palette.mode==="light"?o.palette.grey[300]:o.palette.grey[800],s=o.palette.mode==="light"?o.palette.grey.A100:o.palette.grey[700];return i({},o.typography.button,{minWidth:64,padding:"6px 16px",borderRadius:(o.vars||o).shape.borderRadius,transition:o.transitions.create(["background-color","box-shadow","border-color","color"],{duration:o.transitions.duration.short}),"&:hover":i({textDecoration:"none",backgroundColor:o.vars?`rgba(${o.vars.palette.text.primaryChannel} / ${o.vars.palette.action.hoverOpacity})`:c(o.palette.text.primary,o.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},a.variant==="text"&&a.color!=="inherit"&&{backgroundColor:o.vars?`rgba(${o.vars.palette[a.color].mainChannel} / ${o.vars.palette.action.hoverOpacity})`:c(o.palette[a.color].main,o.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},a.variant==="outlined"&&a.color!=="inherit"&&{border:`1px solid ${(o.vars||o).palette[a.color].main}`,backgroundColor:o.vars?`rgba(${o.vars.palette[a.color].mainChannel} / ${o.vars.palette.action.hoverOpacity})`:c(o.palette[a.color].main,o.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},a.variant==="contained"&&{backgroundColor:o.vars?o.vars.palette.Button.inheritContainedHoverBg:s,boxShadow:(o.vars||o).shadows[4],"@media (hover: none)":{boxShadow:(o.vars||o).shadows[2],backgroundColor:(o.vars||o).palette.grey[300]}},a.variant==="contained"&&a.color!=="inherit"&&{backgroundColor:(o.vars||o).palette[a.color].dark,"@media (hover: none)":{backgroundColor:(o.vars||o).palette[a.color].main}}),"&:active":i({},a.variant==="contained"&&{boxShadow:(o.vars||o).shadows[8]}),[`&.${C.focusVisible}`]:i({},a.variant==="contained"&&{boxShadow:(o.vars||o).shadows[6]}),[`&.${C.disabled}`]:i({color:(o.vars||o).palette.action.disabled},a.variant==="outlined"&&{border:`1px solid ${(o.vars||o).palette.action.disabledBackground}`},a.variant==="contained"&&{color:(o.vars||o).palette.action.disabled,boxShadow:(o.vars||o).shadows[0],backgroundColor:(o.vars||o).palette.action.disabledBackground})},a.variant==="text"&&{padding:"6px 8px"},a.variant==="text"&&a.color!=="inherit"&&{color:(o.vars||o).palette[a.color].main},a.variant==="outlined"&&{padding:"5px 15px",border:"1px solid currentColor"},a.variant==="outlined"&&a.color!=="inherit"&&{color:(o.vars||o).palette[a.color].main,border:o.vars?`1px solid rgba(${o.vars.palette[a.color].mainChannel} / 0.5)`:`1px solid ${c(o.palette[a.color].main,.5)}`},a.variant==="contained"&&{color:o.vars?o.vars.palette.text.primary:(n=(t=o.palette).getContrastText)==null?void 0:n.call(t,o.palette.grey[300]),backgroundColor:o.vars?o.vars.palette.Button.inheritContainedBg:r,boxShadow:(o.vars||o).shadows[2]},a.variant==="contained"&&a.color!=="inherit"&&{color:(o.vars||o).palette[a.color].contrastText,backgroundColor:(o.vars||o).palette[a.color].main},a.color==="inherit"&&{color:"inherit",borderColor:"currentColor"},a.size==="small"&&a.variant==="text"&&{padding:"4px 5px",fontSize:o.typography.pxToRem(13)},a.size==="large"&&a.variant==="text"&&{padding:"8px 11px",fontSize:o.typography.pxToRem(15)},a.size==="small"&&a.variant==="outlined"&&{padding:"3px 9px",fontSize:o.typography.pxToRem(13)},a.size==="large"&&a.variant==="outlined"&&{padding:"7px 21px",fontSize:o.typography.pxToRem(15)},a.size==="small"&&a.variant==="contained"&&{padding:"4px 10px",fontSize:o.typography.pxToRem(13)},a.size==="large"&&a.variant==="contained"&&{padding:"8px 22px",fontSize:o.typography.pxToRem(15)},a.fullWidth&&{width:"100%"})},({ownerState:o})=>o.disableElevation&&{boxShadow:"none","&:hover":{boxShadow:"none"},[`&.${C.focusVisible}`]:{boxShadow:"none"},"&:active":{boxShadow:"none"},[`&.${C.disabled}`]:{boxShadow:"none"}}),eo=$("span",{name:"MuiButton",slot:"StartIcon",overridesResolver:(o,a)=>{const{ownerState:n}=o;return[a.startIcon,a[`iconSize${e(n.size)}`]]}})(({ownerState:o})=>i({display:"inherit",marginRight:8,marginLeft:-4},o.size==="small"&&{marginLeft:-2},m(o))),lo=$("span",{name:"MuiButton",slot:"EndIcon",overridesResolver:(o,a)=>{const{ownerState:n}=o;return[a.endIcon,a[`iconSize${e(n.size)}`]]}})(({ownerState:o})=>i({display:"inherit",marginRight:-4,marginLeft:8},o.size==="small"&&{marginRight:-2},m(o))),co=d.forwardRef(function(a,n){const t=d.useContext(ao),r=d.useContext(io),s=A(t,a),l=E({props:s,name:"MuiButton"}),{children:p,color:u="primary",component:x="button",className:g,disabled:b=!1,disableElevation:L=!1,disableFocusRipple:I=!1,endIcon:B,focusVisibleClassName:T,fullWidth:O=!1,size:S="medium",startIcon:R,type:k,variant:V="text"}=l,_=N(l,to),f=i({},l,{color:u,component:x,disabled:b,disableElevation:L,disableFocusRipple:I,fullWidth:O,size:S,type:k,variant:V}),v=ro(f),j=R&&z.jsx(eo,{className:v.startIcon,ownerState:f,children:R}),G=B&&z.jsx(lo,{className:v.endIcon,ownerState:f,children:B}),U=r||"";return z.jsxs(so,i({ownerState:f,className:y(t.className,v.root,g,U),component:x,disabled:b,focusRipple:!I,focusVisibleClassName:y(v.focusVisible,T),ref:n,type:k},_,{classes:v,children:[j,p,G]}))}),go=co;export{go as B,xo as P,D as a,C as b,Z as c,P as g,vo as p}; diff --git a/src/evidently/ui/ui/static/js/Component-6baa4579.js b/src/evidently/ui/ui/static/js/Component-6baa4579.js new file mode 100644 index 0000000000..7fb643f2cc --- /dev/null +++ b/src/evidently/ui/ui/static/js/Component-6baa4579.js @@ -0,0 +1 @@ +import{k as n,h as d,j as a}from"./vendor-20fe28cb.js";import{i}from"./tiny-invariant-dd7d57d2.js";import{m as s}from"./createSvgIcon-41173291.js";import{e as p,f as m,c}from"./DashboardContent-ab24b4bf.js";import"./Button-085c6ce4.js";import"./TextField-33506b98.js";import"./TableRow-e790adad.js";import"./Grid-ec570cb4.js";import"./Toolbar-03fb06fb.js";import"./Tabs-2c8f7c5f.js";import"./Edit-f207c17d.js";const A=async({params:r})=>{const{projectId:t,reportId:o}=r;return i(t,"missing projectId"),i(o,"missing reportId"),s.getDashboard(t,o)},v={crumb:(r,{pathname:t,params:o})=>({to:t,linkText:String(o.reportId)})},k=()=>{const{projectId:r,reportId:t}=n();i(r,"missing projectId"),i(t,"missing reportId");const o=d();return a.jsx(a.Fragment,{children:a.jsx(p.Provider,{value:m({getAdditionGraphData:e=>s.getAdditionalGraphData(r,t,e),getAdditionWidgetData:e=>s.getAdditionalWidgetData(r,t,e)}),children:a.jsx(c,{info:o})})})};export{k as Component,v as handle,A as loader}; diff --git a/src/evidently/ui/ui/static/js/Component-88068259.js b/src/evidently/ui/ui/static/js/Component-88068259.js new file mode 100644 index 0000000000..7c6dd0c99d --- /dev/null +++ b/src/evidently/ui/ui/static/js/Component-88068259.js @@ -0,0 +1,3 @@ +import{d as F,g as Z,e as P,j as d,u as Ot,L as Ct,f as jt,h as Bt,O as At}from"./vendor-20fe28cb.js";import{d as x,b as wt,r as St,L as _t}from"./LocalizationProvider-f22c467c.js";import{_ as T,g as lt,a as ct,s as U,c as J,u as dt,b as st,d as ut,e as ht,f as zt,B as Pt,h as at,T as ft,i as It,j as pt,r as Ht,k as Ut,I as $t,l as Ft,m as Nt}from"./createSvgIcon-41173291.js";import{L as Rt,T as Wt,a as Et}from"./Toolbar-03fb06fb.js";import{P as mt,B as Jt}from"./Button-085c6ce4.js";import{L as rt}from"./Link-9fdafac8.js";var yt={exports:{}};(function(r,s){(function(n,a){r.exports=a()})(F,function(){var n="week",a="year";return function(u,t,e){var o=t.prototype;o.week=function(c){if(c===void 0&&(c=null),c!==null)return this.add(7*(c-this.week()),"day");var l=this.$locale().yearStart||1;if(this.month()===11&&this.date()>25){var h=e(this).startOf(a).add(1,a).date(l),y=e(this).endOf(n);if(h.isBefore(y))return 1}var M=e(this).startOf(a).date(l).startOf(n).subtract(1,"millisecond"),j=this.diff(M,n,!0);return j<0?e(this).startOf("week").week():Math.ceil(j)},o.weeks=function(c){return c===void 0&&(c=null),this.week(c)}}})})(yt);var Zt=yt.exports;const Vt=Z(Zt);var gt={exports:{}};(function(r,s){(function(n,a){r.exports=a()})(F,function(){var n={LTS:"h:mm:ss A",LT:"h:mm A",L:"MM/DD/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY h:mm A",LLLL:"dddd, MMMM D, YYYY h:mm A"},a=/(\[[^[]*\])|([-_:/.,()\s]+)|(A|a|YYYY|YY?|MM?M?M?|Do|DD?|hh?|HH?|mm?|ss?|S{1,3}|z|ZZ?)/g,u=/\d\d/,t=/\d\d?/,e=/\d*[^-_:/,()\s\d]+/,o={},c=function(i){return(i=+i)+(i>68?1900:2e3)},l=function(i){return function(f){this[i]=+f}},h=[/[+-]\d\d:?(\d\d)?|Z/,function(i){(this.zone||(this.zone={})).offset=function(f){if(!f||f==="Z")return 0;var p=f.match(/([+-]|\d\d)/g),m=60*p[1]+(+p[2]||0);return m===0?0:p[0]==="+"?-m:m}(i)}],y=function(i){var f=o[i];return f&&(f.indexOf?f:f.s.concat(f.f))},M=function(i,f){var p,m=o.meridiem;if(m){for(var D=1;D<=24;D+=1)if(i.indexOf(m(D,0,f))>-1){p=D>12;break}}else p=i===(f?"pm":"PM");return p},j={A:[e,function(i){this.afternoon=M(i,!1)}],a:[e,function(i){this.afternoon=M(i,!0)}],S:[/\d/,function(i){this.milliseconds=100*+i}],SS:[u,function(i){this.milliseconds=10*+i}],SSS:[/\d{3}/,function(i){this.milliseconds=+i}],s:[t,l("seconds")],ss:[t,l("seconds")],m:[t,l("minutes")],mm:[t,l("minutes")],H:[t,l("hours")],h:[t,l("hours")],HH:[t,l("hours")],hh:[t,l("hours")],D:[t,l("day")],DD:[u,l("day")],Do:[e,function(i){var f=o.ordinal,p=i.match(/\d+/);if(this.day=p[0],f)for(var m=1;m<=31;m+=1)f(m).replace(/\[|\]/g,"")===i&&(this.day=m)}],M:[t,l("month")],MM:[u,l("month")],MMM:[e,function(i){var f=y("months"),p=(y("monthsShort")||f.map(function(m){return m.slice(0,3)})).indexOf(i)+1;if(p<1)throw new Error;this.month=p%12||p}],MMMM:[e,function(i){var f=y("months").indexOf(i)+1;if(f<1)throw new Error;this.month=f%12||f}],Y:[/[+-]?\d+/,l("year")],YY:[u,function(i){this.year=c(i)}],YYYY:[/\d{4}/,l("year")],Z:h,ZZ:h};function $(i){var f,p;f=i,p=o&&o.formats;for(var m=(i=f.replace(/(\[[^\]]+])|(LTS?|l{1,4}|L{1,4})/g,function(O,B,C){var L=C&&C.toUpperCase();return B||p[C]||n[C]||p[L].replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,function(A,w,_){return w||_.slice(1)})})).match(a),D=m.length,Y=0;Y-1)return new Date((I==="X"?1e3:1)*N);var v=$(I)(N),H=v.year,R=v.month,bt=v.day,Yt=v.hours,kt=v.minutes,Lt=v.seconds,vt=v.milliseconds,nt=v.zone,V=new Date,q=bt||(H||R?1:V.getDate()),G=H||V.getFullYear(),W=0;H&&!R||(W=R>0?R-1:V.getMonth());var X=Yt||0,K=kt||0,Q=Lt||0,tt=vt||0;return nt?new Date(Date.UTC(G,W,q,X,K,Q,tt+60*nt.offset*1e3)):z?new Date(Date.UTC(G,W,q,X,K,Q,tt)):new Date(G,W,q,X,K,Q,tt)}catch{return new Date("")}}(S,b,k),this.init(),L&&L!==!0&&(this.$L=this.locale(L).$L),C&&S!=this.format(b)&&(this.$d=new Date("")),o={}}else if(b instanceof Array)for(var A=b.length,w=1;w<=A;w+=1){g[1]=b[w-1];var _=p.apply(this,g);if(_.isValid()){this.$d=_.$d,this.$L=_.$L,this.init();break}w===A&&(this.$d=new Date(""))}else D.call(this,Y)}}})})(gt);var qt=gt.exports;const Gt=Z(qt);var Mt={exports:{}};(function(r,s){(function(n,a){r.exports=a()})(F,function(){var n={LTS:"h:mm:ss A",LT:"h:mm A",L:"MM/DD/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY h:mm A",LLLL:"dddd, MMMM D, YYYY h:mm A"};return function(a,u,t){var e=u.prototype,o=e.format;t.en.formats=n,e.format=function(c){c===void 0&&(c="YYYY-MM-DDTHH:mm:ssZ");var l=this.$locale().formats,h=function(y,M){return y.replace(/(\[[^\]]+])|(LTS?|l{1,4}|L{1,4})/g,function(j,$,i){var f=i&&i.toUpperCase();return $||M[i]||n[i]||M[f].replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,function(p,m,D){return m||D.slice(1)})})}(c,l===void 0?{}:l);return o.call(this,h)}}})})(Mt);var Xt=Mt.exports;const Kt=Z(Xt);var xt={exports:{}};(function(r,s){(function(n,a){r.exports=a()})(F,function(){return function(n,a,u){a.prototype.isBetween=function(t,e,o,c){var l=u(t),h=u(e),y=(c=c||"()")[0]==="(",M=c[1]===")";return(y?this.isAfter(l,o):!this.isBefore(l,o))&&(M?this.isBefore(h,o):!this.isAfter(h,o))||(y?this.isBefore(l,o):!this.isAfter(l,o))&&(M?this.isAfter(h,o):!this.isBefore(h,o))}}})})(xt);var Qt=xt.exports;const te=Z(Qt);x.extend(Gt);x.extend(Kt);x.extend(te);const ee=wt(["Your locale has not been found.","Either the locale key is not a supported one. Locales supported by dayjs are available here: https://github.com/iamkun/dayjs/tree/dev/src/locale","Or you forget to import the locale from 'dayjs/locale/{localeUsed}'","fallback on English locale"]),re={YY:"year",YYYY:{sectionType:"year",contentType:"digit",maxLength:4},M:{sectionType:"month",contentType:"digit",maxLength:2},MM:"month",MMM:{sectionType:"month",contentType:"letter"},MMMM:{sectionType:"month",contentType:"letter"},D:{sectionType:"day",contentType:"digit",maxLength:2},DD:"day",Do:{sectionType:"day",contentType:"digit-with-letter"},d:{sectionType:"weekDay",contentType:"digit",maxLength:2},dd:{sectionType:"weekDay",contentType:"letter"},ddd:{sectionType:"weekDay",contentType:"letter"},dddd:{sectionType:"weekDay",contentType:"letter"},A:"meridiem",a:"meridiem",H:{sectionType:"hours",contentType:"digit",maxLength:2},HH:"hours",h:{sectionType:"hours",contentType:"digit",maxLength:2},hh:"hours",m:{sectionType:"minutes",contentType:"digit",maxLength:2},mm:"minutes",s:{sectionType:"seconds",contentType:"digit",maxLength:2},ss:"seconds"},se={year:"YYYY",month:"MMMM",monthShort:"MMM",dayOfMonth:"D",weekday:"dddd",weekdayShort:"ddd",hours24h:"HH",hours12h:"hh",meridiem:"A",minutes:"mm",seconds:"ss",fullDate:"ll",fullDateWithWeekday:"dddd, LL",keyboardDate:"L",shortDate:"MMM D",normalDate:"D MMMM",normalDateWithWeekday:"ddd, MMM D",monthAndYear:"MMMM YYYY",monthAndDate:"MMMM D",fullTime:"LT",fullTime12h:"hh:mm A",fullTime24h:"HH:mm",fullDateTime:"lll",fullDateTime12h:"ll hh:mm A",fullDateTime24h:"ll HH:mm",keyboardDateTime:"L LT",keyboardDateTime12h:"L hh:mm A",keyboardDateTime24h:"L HH:mm"},et=["Missing UTC plugin","To be able to use UTC or timezones, you have to enable the `utc` plugin","Find more information on https://mui.com/x/react-date-pickers/timezone/#day-js-and-utc"].join(` +`),it=["Missing timezone plugin","To be able to use timezones, you have to enable both the `utc` and the `timezone` plugin","Find more information on https://mui.com/x/react-date-pickers/timezone/#day-js-and-timezone"].join(` +`),oe=(r,s)=>s?(...n)=>r(...n).locale(s):r;class ne{constructor({locale:s,formats:n,instance:a}={}){var u;this.isMUIAdapter=!0,this.isTimezoneCompatible=!0,this.lib="dayjs",this.rawDayJsInstance=void 0,this.dayjs=void 0,this.locale=void 0,this.formats=void 0,this.escapedCharacters={start:"[",end:"]"},this.formatTokenMap=re,this.setLocaleToValue=t=>{const e=this.getCurrentLocaleCode();return e===t.locale()?t:t.locale(e)},this.hasUTCPlugin=()=>typeof x.utc<"u",this.hasTimezonePlugin=()=>typeof x.tz<"u",this.isSame=(t,e,o)=>{const c=this.setTimezone(e,this.getTimezone(t));return t.format(o)===c.format(o)},this.cleanTimezone=t=>{switch(t){case"default":return;case"system":return x.tz.guess();default:return t}},this.createSystemDate=t=>{if(this.rawDayJsInstance)return this.rawDayJsInstance(t);if(this.hasUTCPlugin()&&this.hasTimezonePlugin()){const e=x.tz.guess();return e!=="UTC"?x.tz(t,e):x(t)}return x(t)},this.createUTCDate=t=>{if(!this.hasUTCPlugin())throw new Error(et);return x.utc(t)},this.createTZDate=(t,e)=>{if(!this.hasUTCPlugin())throw new Error(et);if(!this.hasTimezonePlugin())throw new Error(it);const o=t!==void 0&&!t.endsWith("Z");return x(t).tz(this.cleanTimezone(e),o)},this.getLocaleFormats=()=>{const t=x.Ls,e=this.locale||"en";let o=t[e];return o===void 0&&(ee(),o=t.en),o.formats},this.adjustOffset=t=>{if(!this.hasTimezonePlugin())return t;const e=this.getTimezone(t);if(e!=="UTC"){var o,c;const l=t.tz(this.cleanTimezone(e),!0);return((o=l.$offset)!=null?o:0)===((c=t.$offset)!=null?c:0)?t:l}return t},this.date=t=>t===null?null:this.dayjs(t),this.dateWithTimezone=(t,e)=>{if(t===null)return null;let o;return e==="UTC"?o=this.createUTCDate(t):e==="system"||e==="default"&&!this.hasTimezonePlugin()?o=this.createSystemDate(t):o=this.createTZDate(t,e),this.locale===void 0?o:o.locale(this.locale)},this.getTimezone=t=>{if(this.hasTimezonePlugin()){var e;const o=(e=t.$x)==null?void 0:e.$timezone;if(o)return o}return this.hasUTCPlugin()&&t.isUTC()?"UTC":"system"},this.setTimezone=(t,e)=>{if(this.getTimezone(t)===e)return t;if(e==="UTC"){if(!this.hasUTCPlugin())throw new Error(et);return t.utc()}if(e==="system")return t.local();if(!this.hasTimezonePlugin()){if(e==="default")return t;throw new Error(it)}return x.tz(t,this.cleanTimezone(e))},this.toJsDate=t=>t.toDate(),this.parseISO=t=>this.dayjs(t),this.toISO=t=>t.toISOString(),this.parse=(t,e)=>t===""?null:this.dayjs(t,e,this.locale,!0),this.getCurrentLocaleCode=()=>this.locale||"en",this.is12HourCycleInCurrentLocale=()=>/A|a/.test(this.getLocaleFormats().LT||""),this.expandFormat=t=>{const e=this.getLocaleFormats(),o=c=>c.replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,(l,h,y)=>h||y.slice(1));return t.replace(/(\[[^\]]+])|(LTS?|l{1,4}|L{1,4})/g,(c,l,h)=>{const y=h&&h.toUpperCase();return l||e[h]||o(e[y])})},this.getFormatHelperText=t=>this.expandFormat(t).replace(/a/gi,"(a|p)m").toLocaleLowerCase(),this.isNull=t=>t===null,this.isValid=t=>this.dayjs(t).isValid(),this.format=(t,e)=>this.formatByString(t,this.formats[e]),this.formatByString=(t,e)=>this.dayjs(t).format(e),this.formatNumber=t=>t,this.getDiff=(t,e,o)=>t.diff(e,o),this.isEqual=(t,e)=>t===null&&e===null?!0:this.dayjs(t).toDate().getTime()===this.dayjs(e).toDate().getTime(),this.isSameYear=(t,e)=>this.isSame(t,e,"YYYY"),this.isSameMonth=(t,e)=>this.isSame(t,e,"YYYY-MM"),this.isSameDay=(t,e)=>this.isSame(t,e,"YYYY-MM-DD"),this.isSameHour=(t,e)=>t.isSame(e,"hour"),this.isAfter=(t,e)=>t>e,this.isAfterYear=(t,e)=>this.hasUTCPlugin()?!this.isSameYear(t,e)&&t.utc()>e.utc():t.isAfter(e,"year"),this.isAfterDay=(t,e)=>this.hasUTCPlugin()?!this.isSameDay(t,e)&&t.utc()>e.utc():t.isAfter(e,"day"),this.isBefore=(t,e)=>tthis.hasUTCPlugin()?!this.isSameYear(t,e)&&t.utc()this.hasUTCPlugin()?!this.isSameDay(t,e)&&t.utc()t>=e&&t<=o,this.startOfYear=t=>this.adjustOffset(t.startOf("year")),this.startOfMonth=t=>this.adjustOffset(t.startOf("month")),this.startOfWeek=t=>this.adjustOffset(t.startOf("week")),this.startOfDay=t=>this.adjustOffset(t.startOf("day")),this.endOfYear=t=>this.adjustOffset(t.endOf("year")),this.endOfMonth=t=>this.adjustOffset(t.endOf("month")),this.endOfWeek=t=>this.adjustOffset(t.endOf("week")),this.endOfDay=t=>this.adjustOffset(t.endOf("day")),this.addYears=(t,e)=>this.adjustOffset(e<0?t.subtract(Math.abs(e),"year"):t.add(e,"year")),this.addMonths=(t,e)=>this.adjustOffset(e<0?t.subtract(Math.abs(e),"month"):t.add(e,"month")),this.addWeeks=(t,e)=>this.adjustOffset(e<0?t.subtract(Math.abs(e),"week"):t.add(e,"week")),this.addDays=(t,e)=>this.adjustOffset(e<0?t.subtract(Math.abs(e),"day"):t.add(e,"day")),this.addHours=(t,e)=>this.adjustOffset(e<0?t.subtract(Math.abs(e),"hour"):t.add(e,"hour")),this.addMinutes=(t,e)=>this.adjustOffset(e<0?t.subtract(Math.abs(e),"minute"):t.add(e,"minute")),this.addSeconds=(t,e)=>this.adjustOffset(e<0?t.subtract(Math.abs(e),"second"):t.add(e,"second")),this.getYear=t=>t.year(),this.getMonth=t=>t.month(),this.getDate=t=>t.date(),this.getHours=t=>t.hour(),this.getMinutes=t=>t.minute(),this.getSeconds=t=>t.second(),this.getMilliseconds=t=>t.millisecond(),this.setYear=(t,e)=>this.adjustOffset(t.set("year",e)),this.setMonth=(t,e)=>this.adjustOffset(t.set("month",e)),this.setDate=(t,e)=>this.adjustOffset(t.set("date",e)),this.setHours=(t,e)=>this.adjustOffset(t.set("hour",e)),this.setMinutes=(t,e)=>this.adjustOffset(t.set("minute",e)),this.setSeconds=(t,e)=>this.adjustOffset(t.set("second",e)),this.setMilliseconds=(t,e)=>this.adjustOffset(t.set("millisecond",e)),this.getDaysInMonth=t=>t.daysInMonth(),this.getNextMonth=t=>this.addMonths(t,1),this.getPreviousMonth=t=>this.addMonths(t,-1),this.getMonthArray=t=>{const o=[t.startOf("year")];for(;o.length<12;){const c=o[o.length-1];o.push(this.addMonths(c,1))}return o},this.mergeDateAndTime=(t,e)=>t.hour(e.hour()).minute(e.minute()).second(e.second()),this.getWeekdays=()=>{const t=this.dayjs().startOf("week");return[0,1,2,3,4,5,6].map(e=>this.formatByString(this.addDays(t,e),"dd"))},this.getWeekArray=t=>{const e=this.setLocaleToValue(t),o=e.startOf("month").startOf("week"),c=e.endOf("month").endOf("week");let l=0,h=o;const y=[];for(;ht.week(),this.getYearRange=(t,e)=>{const o=t.startOf("year"),c=e.endOf("year"),l=[];let h=o;for(;ht==="am"?"AM":"PM",this.rawDayJsInstance=a,this.dayjs=oe((u=this.rawDayJsInstance)!=null?u:x,s),this.locale=s,this.formats=T({},se,n),x.extend(Vt)}}var ae={exports:{}};(function(r,s){(function(n,a){r.exports=a(St())})(F,function(n){function a(e){return e&&typeof e=="object"&&"default"in e?e:{default:e}}var u=a(n),t={name:"en-gb",weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),weekdaysShort:"Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),weekdaysMin:"Su_Mo_Tu_We_Th_Fr_Sa".split("_"),months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),monthsShort:"Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),weekStart:1,yearStart:4,relativeTime:{future:"in %s",past:"%s ago",s:"a few seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",M:"a month",MM:"%d months",y:"a year",yy:"%d years"},formats:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},ordinal:function(e){var o=["th","st","nd","rd"],c=e%100;return"["+e+(o[(c-20)%10]||o[c]||o[0])+"]"}};return u.default.locale(t,null,!0),t})})(ae);function ie(r){return lt("MuiAppBar",r)}ct("MuiAppBar",["root","positionFixed","positionAbsolute","positionSticky","positionStatic","positionRelative","colorDefault","colorPrimary","colorSecondary","colorInherit","colorTransparent"]);const le=["className","color","enableColorOnDark","position"],ce=r=>{const{color:s,position:n,classes:a}=r,u={root:["root",`color${J(s)}`,`position${J(n)}`]};return ht(u,ie,a)},E=(r,s)=>r?`${r==null?void 0:r.replace(")","")}, ${s})`:s,de=U(mt,{name:"MuiAppBar",slot:"Root",overridesResolver:(r,s)=>{const{ownerState:n}=r;return[s.root,s[`position${J(n.position)}`],s[`color${J(n.color)}`]]}})(({theme:r,ownerState:s})=>{const n=r.palette.mode==="light"?r.palette.grey[100]:r.palette.grey[900];return T({display:"flex",flexDirection:"column",width:"100%",boxSizing:"border-box",flexShrink:0},s.position==="fixed"&&{position:"fixed",zIndex:(r.vars||r).zIndex.appBar,top:0,left:"auto",right:0,"@media print":{position:"absolute"}},s.position==="absolute"&&{position:"absolute",zIndex:(r.vars||r).zIndex.appBar,top:0,left:"auto",right:0},s.position==="sticky"&&{position:"sticky",zIndex:(r.vars||r).zIndex.appBar,top:0,left:"auto",right:0},s.position==="static"&&{position:"static"},s.position==="relative"&&{position:"relative"},!r.vars&&T({},s.color==="default"&&{backgroundColor:n,color:r.palette.getContrastText(n)},s.color&&s.color!=="default"&&s.color!=="inherit"&&s.color!=="transparent"&&{backgroundColor:r.palette[s.color].main,color:r.palette[s.color].contrastText},s.color==="inherit"&&{color:"inherit"},r.palette.mode==="dark"&&!s.enableColorOnDark&&{backgroundColor:null,color:null},s.color==="transparent"&&T({backgroundColor:"transparent",color:"inherit"},r.palette.mode==="dark"&&{backgroundImage:"none"})),r.vars&&T({},s.color==="default"&&{"--AppBar-background":s.enableColorOnDark?r.vars.palette.AppBar.defaultBg:E(r.vars.palette.AppBar.darkBg,r.vars.palette.AppBar.defaultBg),"--AppBar-color":s.enableColorOnDark?r.vars.palette.text.primary:E(r.vars.palette.AppBar.darkColor,r.vars.palette.text.primary)},s.color&&!s.color.match(/^(default|inherit|transparent)$/)&&{"--AppBar-background":s.enableColorOnDark?r.vars.palette[s.color].main:E(r.vars.palette.AppBar.darkBg,r.vars.palette[s.color].main),"--AppBar-color":s.enableColorOnDark?r.vars.palette[s.color].contrastText:E(r.vars.palette.AppBar.darkColor,r.vars.palette[s.color].contrastText)},{backgroundColor:"var(--AppBar-background)",color:s.color==="inherit"?"inherit":"var(--AppBar-color)"},s.color==="transparent"&&{backgroundImage:"none",backgroundColor:"transparent",color:"inherit"}))}),ue=P.forwardRef(function(s,n){const a=dt({props:s,name:"MuiAppBar"}),{className:u,color:t="primary",enableColorOnDark:e=!1,position:o="fixed"}=a,c=st(a,le),l=T({},a,{color:t,position:o,enableColorOnDark:e}),h=ce(l);return d.jsx(de,T({square:!0,component:"header",ownerState:l,elevation:4,className:ut(h.root,u,o==="fixed"&&"mui-fixed"),ref:n},c))}),he=ue,fe=zt(d.jsx("path",{d:"M6 10c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2zm12 0c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2zm-6 0c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2z"}),"MoreHoriz"),pe=["slots","slotProps"],me=U(Pt)(({theme:r})=>T({display:"flex",marginLeft:`calc(${r.spacing(1)} * 0.5)`,marginRight:`calc(${r.spacing(1)} * 0.5)`},r.palette.mode==="light"?{backgroundColor:r.palette.grey[100],color:r.palette.grey[700]}:{backgroundColor:r.palette.grey[700],color:r.palette.grey[100]},{borderRadius:2,"&:hover, &:focus":T({},r.palette.mode==="light"?{backgroundColor:r.palette.grey[200]}:{backgroundColor:r.palette.grey[600]}),"&:active":T({boxShadow:r.shadows[0]},r.palette.mode==="light"?{backgroundColor:at(r.palette.grey[200],.12)}:{backgroundColor:at(r.palette.grey[600],.12)})})),ye=U(fe)({width:24,height:16});function ge(r){const{slots:s={},slotProps:n={}}=r,a=st(r,pe),u=r;return d.jsx("li",{children:d.jsx(me,T({focusRipple:!0},a,{ownerState:u,children:d.jsx(ye,T({as:s.CollapsedIcon,ownerState:u},n.collapsedIcon))}))})}function Me(r){return lt("MuiBreadcrumbs",r)}const xe=ct("MuiBreadcrumbs",["root","ol","li","separator"]),Te=xe,De=["children","className","component","slots","slotProps","expandText","itemsAfterCollapse","itemsBeforeCollapse","maxItems","separator"],be=r=>{const{classes:s}=r;return ht({root:["root"],li:["li"],ol:["ol"],separator:["separator"]},Me,s)},Ye=U(ft,{name:"MuiBreadcrumbs",slot:"Root",overridesResolver:(r,s)=>[{[`& .${Te.li}`]:s.li},s.root]})({}),ke=U("ol",{name:"MuiBreadcrumbs",slot:"Ol",overridesResolver:(r,s)=>s.ol})({display:"flex",flexWrap:"wrap",alignItems:"center",padding:0,margin:0,listStyle:"none"}),Le=U("li",{name:"MuiBreadcrumbs",slot:"Separator",overridesResolver:(r,s)=>s.separator})({display:"flex",userSelect:"none",marginLeft:8,marginRight:8});function ve(r,s,n,a){return r.reduce((u,t,e)=>(e{const b=()=>{f(!0);const O=Y.current.querySelector("a[href],button,[tabindex]");O&&O.focus()};return y+h>=g.length?g:[...g.slice(0,y),d.jsx(ge,{"aria-label":l,slots:{CollapsedIcon:o.CollapsedIcon},slotProps:{collapsedIcon:D},onClick:b},"ellipsis"),...g.slice(g.length-h,g.length)]},k=P.Children.toArray(u).filter(g=>P.isValidElement(g)).map((g,b)=>d.jsx("li",{className:m.li,children:g},`child-${b}`));return d.jsx(Ye,T({ref:n,component:e,color:"text.secondary",className:ut(m.root,t),ownerState:p},$,{children:d.jsx(ke,{className:m.ol,ref:Y,ownerState:p,children:ve(i||M&&k.length<=M?k:S(k),m.separator,j,p)})}))}),Ce=Oe,je=r=>{var s;return typeof((s=r==null?void 0:r.handle)==null?void 0:s.crumb)=="function"},Be=()=>{const s=Ot().filter(je).map(({handle:n,data:a,id:u,pathname:t,params:e})=>n.crumb(a,{id:u,pathname:t,params:e}));return d.jsx(pt,{children:d.jsx(Ce,{"aria-label":"breadcrumb",children:s.map(n=>d.jsx(rt,{component:Ct,color:"inherit",to:n.to,children:n.linkText},n.to))})})},Ae=()=>jt().state!=="idle"?d.jsx(Rt,{sx:{height:4}}):d.jsx(pt,{sx:{height:4}}),we="/static/img/logo-01c8a56e.png";var ot={},Se=Ut;Object.defineProperty(ot,"__esModule",{value:!0});var Tt=ot.default=void 0;Pe(P);var _e=Se(Ht()),ze=d;function Dt(r){if(typeof WeakMap!="function")return null;var s=new WeakMap,n=new WeakMap;return(Dt=function(a){return a?n:s})(r)}function Pe(r,s){if(!s&&r&&r.__esModule)return r;if(r===null||typeof r!="object"&&typeof r!="function")return{default:r};var n=Dt(s);if(n&&n.has(r))return n.get(r);var a={},u=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var t in r)if(t!=="default"&&Object.prototype.hasOwnProperty.call(r,t)){var e=u?Object.getOwnPropertyDescriptor(r,t):null;e&&(e.get||e.set)?Object.defineProperty(a,t,e):a[t]=r[t]}return a.default=r,n&&n.set(r,a),a}var Ie=(0,_e.default)((0,ze.jsx)("path",{d:"M12 1.27a11 11 0 00-3.48 21.46c.55.09.73-.28.73-.55v-1.84c-3.03.64-3.67-1.46-3.67-1.46-.55-1.29-1.28-1.65-1.28-1.65-.92-.65.1-.65.1-.65 1.1 0 1.73 1.1 1.73 1.1.92 1.65 2.57 1.2 3.21.92a2 2 0 01.64-1.47c-2.47-.27-5.04-1.19-5.04-5.5 0-1.1.46-2.1 1.2-2.84a3.76 3.76 0 010-2.93s.91-.28 3.11 1.1c1.8-.49 3.7-.49 5.5 0 2.1-1.38 3.02-1.1 3.02-1.1a3.76 3.76 0 010 2.93c.83.74 1.2 1.74 1.2 2.94 0 4.21-2.57 5.13-5.04 5.4.45.37.82.92.82 2.02v3.03c0 .27.1.64.73.55A11 11 0 0012 1.27"}),"GitHub");Tt=ot.default=Ie;function He({version:r}){return d.jsx(d.Fragment,{children:d.jsx(he,{position:"static",color:"transparent",children:d.jsxs(Wt,{children:[d.jsxs(ft,{variant:"h6",sx:{flexGrow:1},children:[d.jsx("img",{src:we,height:"55px"}),d.jsx("span",{style:{verticalAlign:"super",fontSize:"0.75rem"},children:r})]}),d.jsx(rt,{href:"https://github.com/evidentlyai/evidently",children:d.jsx($t,{children:d.jsx(Tt,{})})}),d.jsx(rt,{href:"https://docs.evidentlyai.com/",children:d.jsx(Jt,{children:"Docs"})})]})})})}function Ue(r){return d.jsx(d.Fragment,{children:d.jsxs(mt,{sx:{marginTop:"20px",marginLeft:"10px",marginRight:"10px",padding:"10px"},children:[d.jsx(Be,{}),r.children]})})}const $e=Ft({shape:{borderRadius:0},palette:{primary:{light:"#ed5455",main:"#ed0400",dark:"#d40400",contrastText:"#fff"},secondary:{light:"#61a0ff",main:"#3c7fdd",dark:"#61a0ff",contrastText:"#000"}},typography:{button:{fontWeight:"bold"},fontFamily:["-apple-system","BlinkMacSystemFont",'"Segoe UI"',"Roboto",'"Helvetica Neue"',"Arial","sans-serif",'"Apple Color Emoji"','"Segoe UI Emoji"','"Segoe UI Symbol"'].join(",")}}),Ve=()=>Nt.getVersion(),qe=()=>{const{version:r}=Bt();return d.jsx(Et,{theme:$e,children:d.jsxs(_t,{dateAdapter:ne,adapterLocale:"en-gb",children:[d.jsx(He,{version:r}),d.jsx(Ae,{}),d.jsx(Ue,{children:d.jsx(At,{})})]})})},Ge={crumb:()=>({to:"/",linkText:"Home"})};export{qe as Component,Ge as handle,Ve as loader}; diff --git a/src/evidently/ui/ui/static/js/Component-8a3c23d4.js b/src/evidently/ui/ui/static/js/Component-8a3c23d4.js new file mode 100644 index 0000000000..43abafc95a --- /dev/null +++ b/src/evidently/ui/ui/static/js/Component-8a3c23d4.js @@ -0,0 +1,4 @@ +import{e as b,j as p,k as To,l as Mo,h as Vo}from"./vendor-20fe28cb.js";import{M as Io,b as Ro,L as kn,d as nn}from"./LocalizationProvider-f22c467c.js";import{P as u,D as Fo,d as on,a as Ao,u as Sn,b as $o,C as Oo,I as Tn,c as No}from"./DashboardContent-ab24b4bf.js";import{s as Y,_ as m,n as Se,u as pe,b as re,d as be,e as ge,a as ye,g as ve,o as He,p as Lo,q as Ee,t as sn,B as Mn,v as ze,w as X,x as qe,f as Ue,I as at,i as Pe,T as Qe,y as jt,z as Vn,A as In,C as Tt,D as Yt,m as Eo}from"./createSvgIcon-41173291.js";import{i as Rn}from"./tiny-invariant-dd7d57d2.js";import{f as jo}from"./Datetime-bd8955b4.js";import{G as Ct}from"./Grid-ec570cb4.js";import{T as _o,t as Bo,a as rn}from"./Tabs-2c8f7c5f.js";import{P as Wo,B as mt}from"./Button-085c6ce4.js";import{L as kt,F as Mt,G as Ho,a as zo,b as Uo,T as Yo,M as Fn}from"./TextField-33506b98.js";import{g as Go,P as Ko,C as qo,M as An}from"./TableRow-e790adad.js";import"./Toolbar-03fb06fb.js";import"./Edit-f207c17d.js";const Qo=u.oneOfType([u.func,u.object]),$n=Qo,Zo=["absolute","children","className","component","flexItem","light","orientation","role","textAlign","variant"],Xo=e=>{const{absolute:t,children:n,classes:o,flexItem:s,light:r,orientation:a,textAlign:i,variant:c}=e;return ge({root:["root",t&&"absolute",c,r&&"light",a==="vertical"&&"vertical",s&&"flexItem",n&&"withChildren",n&&a==="vertical"&&"withChildrenVertical",i==="right"&&a!=="vertical"&&"textAlignRight",i==="left"&&a!=="vertical"&&"textAlignLeft"],wrapper:["wrapper",a==="vertical"&&"wrapperVertical"]},Go,o)},Jo=Y("div",{name:"MuiDivider",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.absolute&&t.absolute,t[n.variant],n.light&&t.light,n.orientation==="vertical"&&t.vertical,n.flexItem&&t.flexItem,n.children&&t.withChildren,n.children&&n.orientation==="vertical"&&t.withChildrenVertical,n.textAlign==="right"&&n.orientation!=="vertical"&&t.textAlignRight,n.textAlign==="left"&&n.orientation!=="vertical"&&t.textAlignLeft]}})(({theme:e,ownerState:t})=>m({margin:0,flexShrink:0,borderWidth:0,borderStyle:"solid",borderColor:(e.vars||e).palette.divider,borderBottomWidth:"thin"},t.absolute&&{position:"absolute",bottom:0,left:0,width:"100%"},t.light&&{borderColor:e.vars?`rgba(${e.vars.palette.dividerChannel} / 0.08)`:Se(e.palette.divider,.08)},t.variant==="inset"&&{marginLeft:72},t.variant==="middle"&&t.orientation==="horizontal"&&{marginLeft:e.spacing(2),marginRight:e.spacing(2)},t.variant==="middle"&&t.orientation==="vertical"&&{marginTop:e.spacing(1),marginBottom:e.spacing(1)},t.orientation==="vertical"&&{height:"100%",borderBottomWidth:0,borderRightWidth:"thin"},t.flexItem&&{alignSelf:"stretch",height:"auto"}),({ownerState:e})=>m({},e.children&&{display:"flex",whiteSpace:"nowrap",textAlign:"center",border:0,"&::before, &::after":{content:'""',alignSelf:"center"}}),({theme:e,ownerState:t})=>m({},t.children&&t.orientation!=="vertical"&&{"&::before, &::after":{width:"100%",borderTop:`thin solid ${(e.vars||e).palette.divider}`}}),({theme:e,ownerState:t})=>m({},t.children&&t.orientation==="vertical"&&{flexDirection:"column","&::before, &::after":{height:"100%",borderLeft:`thin solid ${(e.vars||e).palette.divider}`}}),({ownerState:e})=>m({},e.textAlign==="right"&&e.orientation!=="vertical"&&{"&::before":{width:"90%"},"&::after":{width:"10%"}},e.textAlign==="left"&&e.orientation!=="vertical"&&{"&::before":{width:"10%"},"&::after":{width:"90%"}})),es=Y("span",{name:"MuiDivider",slot:"Wrapper",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.wrapper,n.orientation==="vertical"&&t.wrapperVertical]}})(({theme:e,ownerState:t})=>m({display:"inline-block",paddingLeft:`calc(${e.spacing(1)} * 1.2)`,paddingRight:`calc(${e.spacing(1)} * 1.2)`},t.orientation==="vertical"&&{paddingTop:`calc(${e.spacing(1)} * 1.2)`,paddingBottom:`calc(${e.spacing(1)} * 1.2)`})),On=b.forwardRef(function(t,n){const o=pe({props:t,name:"MuiDivider"}),{absolute:s=!1,children:r,className:a,component:i=r?"div":"hr",flexItem:c=!1,light:l=!1,orientation:d="horizontal",role:y=i!=="hr"?"separator":void 0,textAlign:f="center",variant:h="fullWidth"}=o,P=re(o,Zo),g=m({},o,{absolute:s,component:i,flexItem:c,light:l,orientation:d,role:y,textAlign:f,variant:h}),C=Xo(g);return p.jsx(Jo,m({as:i,className:be(C.root,a),role:y,ref:n,ownerState:g},P,{children:r?p.jsx(es,{className:C.wrapper,ownerState:g,children:r}):null}))});On.muiSkipListHighlight=!0;const an=On;function ts(e){return ve("MuiListItem",e)}const ns=ye("MuiListItem",["root","container","focusVisible","dense","alignItemsFlexStart","disabled","divider","gutters","padding","button","secondaryAction","selected"]),Je=ns,os=ye("MuiListItemButton",["root","focusVisible","dense","alignItemsFlexStart","disabled","divider","gutters","selected"]),ss=os;function rs(e){return ve("MuiListItemSecondaryAction",e)}ye("MuiListItemSecondaryAction",["root","disableGutters"]);const as=["className"],is=e=>{const{disableGutters:t,classes:n}=e;return ge({root:["root",t&&"disableGutters"]},rs,n)},ls=Y("div",{name:"MuiListItemSecondaryAction",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.disableGutters&&t.disableGutters]}})(({ownerState:e})=>m({position:"absolute",right:16,top:"50%",transform:"translateY(-50%)"},e.disableGutters&&{right:0})),Nn=b.forwardRef(function(t,n){const o=pe({props:t,name:"MuiListItemSecondaryAction"}),{className:s}=o,r=re(o,as),a=b.useContext(kt),i=m({},o,{disableGutters:a.disableGutters}),c=is(i);return p.jsx(ls,m({className:be(c.root,s),ownerState:i,ref:n},r))});Nn.muiName="ListItemSecondaryAction";const cs=Nn,us=["className"],ds=["alignItems","autoFocus","button","children","className","component","components","componentsProps","ContainerComponent","ContainerProps","dense","disabled","disableGutters","disablePadding","divider","focusVisibleClassName","secondaryAction","selected","slotProps","slots"],ms=(e,t)=>{const{ownerState:n}=e;return[t.root,n.dense&&t.dense,n.alignItems==="flex-start"&&t.alignItemsFlexStart,n.divider&&t.divider,!n.disableGutters&&t.gutters,!n.disablePadding&&t.padding,n.button&&t.button,n.hasSecondaryAction&&t.secondaryAction]},ps=e=>{const{alignItems:t,button:n,classes:o,dense:s,disabled:r,disableGutters:a,disablePadding:i,divider:c,hasSecondaryAction:l,selected:d}=e;return ge({root:["root",s&&"dense",!a&&"gutters",!i&&"padding",c&&"divider",r&&"disabled",n&&"button",t==="flex-start"&&"alignItemsFlexStart",l&&"secondaryAction",d&&"selected"],container:["container"]},ts,o)},fs=Y("div",{name:"MuiListItem",slot:"Root",overridesResolver:ms})(({theme:e,ownerState:t})=>m({display:"flex",justifyContent:"flex-start",alignItems:"center",position:"relative",textDecoration:"none",width:"100%",boxSizing:"border-box",textAlign:"left"},!t.disablePadding&&m({paddingTop:8,paddingBottom:8},t.dense&&{paddingTop:4,paddingBottom:4},!t.disableGutters&&{paddingLeft:16,paddingRight:16},!!t.secondaryAction&&{paddingRight:48}),!!t.secondaryAction&&{[`& > .${ss.root}`]:{paddingRight:48}},{[`&.${Je.focusVisible}`]:{backgroundColor:(e.vars||e).palette.action.focus},[`&.${Je.selected}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:Se(e.palette.primary.main,e.palette.action.selectedOpacity),[`&.${Je.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.focusOpacity}))`:Se(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.focusOpacity)}},[`&.${Je.disabled}`]:{opacity:(e.vars||e).palette.action.disabledOpacity}},t.alignItems==="flex-start"&&{alignItems:"flex-start"},t.divider&&{borderBottom:`1px solid ${(e.vars||e).palette.divider}`,backgroundClip:"padding-box"},t.button&&{transition:e.transitions.create("background-color",{duration:e.transitions.duration.shortest}),"&:hover":{textDecoration:"none",backgroundColor:(e.vars||e).palette.action.hover,"@media (hover: none)":{backgroundColor:"transparent"}},[`&.${Je.selected}:hover`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.hoverOpacity}))`:Se(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:Se(e.palette.primary.main,e.palette.action.selectedOpacity)}}},t.hasSecondaryAction&&{paddingRight:48})),hs=Y("li",{name:"MuiListItem",slot:"Container",overridesResolver:(e,t)=>t.container})({position:"relative"}),gs=b.forwardRef(function(t,n){const o=pe({props:t,name:"MuiListItem"}),{alignItems:s="center",autoFocus:r=!1,button:a=!1,children:i,className:c,component:l,components:d={},componentsProps:y={},ContainerComponent:f="li",ContainerProps:{className:h}={},dense:P=!1,disabled:g=!1,disableGutters:C=!1,disablePadding:D=!1,divider:v=!1,focusVisibleClassName:w,secondaryAction:S,selected:x=!1,slotProps:k={},slots:$={}}=o,I=re(o.ContainerProps,us),T=re(o,ds),O=b.useContext(kt),F=b.useMemo(()=>({dense:P||O.dense||!1,alignItems:s,disableGutters:C}),[s,O.dense,P,C]),j=b.useRef(null);He(()=>{r&&j.current&&j.current.focus()},[r]);const N=b.Children.toArray(i),V=N.length&&Lo(N[N.length-1],["ListItemSecondaryAction"]),M=m({},o,{alignItems:s,autoFocus:r,button:a,dense:F.dense,disabled:g,disableGutters:C,disablePadding:D,divider:v,hasSecondaryAction:V,selected:x}),z=ps(M),q=Ee(j,n),W=$.root||d.Root||fs,B=k.root||y.root||{},G=m({className:be(z.root,B.className,c),disabled:g},T);let te=l||"li";return a&&(G.component=l||"div",G.focusVisibleClassName=be(Je.focusVisible,w),te=Mn),V?(te=!G.component&&!l?"div":te,f==="li"&&(te==="li"?te="div":G.component==="li"&&(G.component="div")),p.jsx(kt.Provider,{value:F,children:p.jsxs(hs,m({as:f,className:be(z.container,h),ref:q,ownerState:M},I,{children:[p.jsx(W,m({},B,!sn(W)&&{as:te,ownerState:m({},M,B.ownerState)},G,{children:N})),N.pop()]}))})):p.jsx(kt.Provider,{value:F,children:p.jsxs(W,m({},B,{as:te,ref:q},!sn(W)&&{ownerState:m({},M,B.ownerState)},G,{children:[N,S&&p.jsx(cs,{children:S})]}))})}),bs=gs,Ne=(e,t)=>e.length!==t.length?!1:t.every(n=>e.includes(n)),ys=({openTo:e,defaultOpenTo:t,views:n,defaultViews:o})=>{const s=n??o;let r;if(e!=null)r=e;else if(s.includes(t))r=t;else if(s.length>0)r=s[0];else throw new Error("MUI: The `views` prop must contain at least one view");return{views:s,openTo:r}},ft=({date:e,disableFuture:t,disablePast:n,maxDate:o,minDate:s,isDateDisabled:r,utils:a,timezone:i})=>{const c=a.startOfDay(a.dateWithTimezone(void 0,i));n&&a.isBefore(s,c)&&(s=c),t&&a.isAfter(o,c)&&(o=c);let l=e,d=e;for(a.isBefore(e,s)&&(l=s,d=null),a.isAfter(e,o)&&(d&&(d=o),l=null);l||d;){if(l&&a.isAfter(l,o)&&(l=null),d&&a.isBefore(d,s)&&(d=null),l){if(!r(l))return l;l=a.addDays(l,1)}if(d){if(!r(d))return d;d=a.addDays(d,-1)}}return null},vs=(e,t)=>t==null||!e.isValid(t)?null:t,Re=(e,t,n)=>t==null||!e.isValid(t)?n:t,xs=(e,t,n)=>!e.isValid(t)&&t!=null&&!e.isValid(n)&&n!=null?!0:e.isEqual(t,n),Gt=(e,t)=>{const o=[e.startOfYear(t)];for(;o.length<12;){const s=o[o.length-1];o.push(e.addMonths(s,1))}return o},Ht=(e,t,n)=>{let o=t;return o=e.setHours(o,e.getHours(n)),o=e.setMinutes(o,e.getMinutes(n)),o=e.setSeconds(o,e.getSeconds(n)),o},Kt=(e,t,n)=>n==="date"?e.startOfDay(e.dateWithTimezone(void 0,t)):e.dateWithTimezone(void 0,t),je=(e,t)=>{const n=e.setHours(e.date(),t==="am"?2:14);return e.format(n,"meridiem")},Cs=["year","month","day"],tt=e=>Cs.includes(e),ln=(e,{format:t,views:n},o)=>{if(t!=null)return t;const s=e.formats;return Ne(n,["year"])?s.year:Ne(n,["month"])?s.month:Ne(n,["day"])?s.dayOfMonth:Ne(n,["month","year"])?`${s.month} ${s.year}`:Ne(n,["day","month"])?`${s.month} ${s.dayOfMonth}`:o?/en/.test(e.getCurrentLocaleCode())?s.normalDateWithWeekday:s.normalDate:s.keyboardDate},Ds=(e,t)=>{const n=e.startOfWeek(t);return[0,1,2,3,4,5,6].map(o=>e.addDays(n,o))},Ln=["hours","minutes","seconds"],st=e=>Ln.includes(e),We=e=>Ln.includes(e)||e==="meridiem",ws=(e,t)=>e?t.getHours(e)>=12?"pm":"am":null,ht=(e,t,n)=>n&&(e>=12?"pm":"am")!==t?t==="am"?e-12:e+12:e,Ps=(e,t,n,o)=>{const s=ht(o.getHours(e),t,n);return o.setHours(e,s)},cn=(e,t)=>t.getHours(e)*3600+t.getMinutes(e)*60+t.getSeconds(e),yt=(e,t)=>(n,o)=>e?t.isAfter(n,o):cn(n,t)>cn(o,t),un=(e,{format:t,views:n,ampm:o})=>{if(t!=null)return t;const s=e.formats;return Ne(n,["hours"])?o?`${s.hours12h} ${s.meridiem}`:s.hours24h:Ne(n,["minutes"])?s.minutes:Ne(n,["seconds"])?s.seconds:Ne(n,["minutes","seconds"])?`${s.minutes}:${s.seconds}`:Ne(n,["hours","minutes","seconds"])?o?`${s.hours12h}:${s.minutes}:${s.seconds} ${s.meridiem}`:`${s.hours24h}:${s.minutes}:${s.seconds}`:o?`${s.hours12h}:${s.minutes} ${s.meridiem}`:`${s.hours24h}:${s.minutes}`},Ae={year:1,month:2,day:3,hours:4,minutes:5,seconds:6,milliseconds:7},ks=e=>Math.max(...e.map(t=>{var n;return(n=Ae[t.type])!=null?n:1})),ut=(e,t,n)=>{if(t===Ae.year)return e.startOfYear(n);if(t===Ae.month)return e.startOfMonth(n);if(t===Ae.day)return e.startOfDay(n);let o=n;return t{var r;let a=s?s():ut(t,n,Kt(t,o));e.minDate!=null&&t.isAfterDay(e.minDate,a)&&(a=ut(t,n,e.minDate)),e.maxDate!=null&&t.isBeforeDay(e.maxDate,a)&&(a=ut(t,n,e.maxDate));const i=yt((r=e.disableIgnoringDatePartForTimeValidation)!=null?r:!1,t);return e.minTime!=null&&i(e.minTime,a)&&(a=ut(t,n,e.disableIgnoringDatePartForTimeValidation?e.minTime:Ht(t,a,e.minTime))),e.maxTime!=null&&i(a,e.maxTime)&&(a=ut(t,n,e.disableIgnoringDatePartForTimeValidation?e.maxTime:Ht(t,a,e.maxTime))),a},En=(e,t)=>{const n=e.formatTokenMap[t];if(n==null)throw new Error([`MUI: The token "${t}" is not supported by the Date and Time Pickers.`,"Please try using another token or open an issue on https://github.com/mui/mui-x/issues/new/choose if you think it should be supported."].join(` +`));return typeof n=="string"?{type:n,contentType:n==="meridiem"?"letter":"digit",maxLength:void 0}:{type:n.sectionType,contentType:n.contentType,maxLength:n.maxLength}},Ts=e=>{switch(e){case"ArrowUp":return 1;case"ArrowDown":return-1;case"PageUp":return 5;case"PageDown":return-5;default:return 0}},Vt=(e,t,n)=>{const o=[],s=e.dateWithTimezone(void 0,t),r=e.startOfWeek(s),a=e.endOfWeek(s);let i=r;for(;e.isBefore(i,a);)o.push(i),i=e.addDays(i,1);return o.map(c=>e.formatByString(c,n))},jn=(e,t,n,o)=>{switch(n){case"month":return Gt(e,e.dateWithTimezone(void 0,t)).map(s=>e.formatByString(s,o));case"weekDay":return Vt(e,t,o);case"meridiem":{const s=e.dateWithTimezone(void 0,t);return[e.startOfDay(s),e.endOfDay(s)].map(r=>e.formatByString(r,o))}default:return[]}},_n=(e,t,n)=>{let o=t;for(o=Number(o).toString();o.length{if(s.type==="day"&&s.contentType==="digit-with-letter"){const a=e.setDate(o.longestMonth,n);return e.formatByString(a,s.format)}const r=n.toString();return s.hasLeadingZerosInInput?_n(e,r,s.maxLength):r},Ms=(e,t,n,o,s,r,a)=>{const i=Ts(o),c=o==="Home",l=o==="End",d=n.value===""||c||l,y=()=>{const h=s[n.type]({currentDate:r,format:n.format,contentType:n.contentType}),P=v=>Bn(e,t,v,h,n),g=n.type==="minutes"&&a!=null&&a.minutesStep?a.minutesStep:1;let D=parseInt(n.value,10)+i*g;if(d){if(n.type==="year"&&!l&&!c)return e.formatByString(e.dateWithTimezone(void 0,t),n.format);i>0||c?D=h.minimum:D=h.maximum}return D%g!==0&&((i<0||c)&&(D+=g-(g+D)%g),(i>0||l)&&(D-=D%g)),D>h.maximum?P(h.minimum+(D-h.maximum-1)%(h.maximum-h.minimum+1)):D{const h=jn(e,t,n.type,n.format);if(h.length===0)return n.value;if(d)return i>0||c?h[0]:h[h.length-1];const g=(h.indexOf(n.value)+h.length+i)%h.length;return h[g]};return n.contentType==="digit"||n.contentType==="digit-with-letter"?y():f()},qt=(e,t)=>{let n=e.value||e.placeholder;const o=t==="non-input"?e.hasLeadingZerosInFormat:e.hasLeadingZerosInInput;return t==="non-input"&&e.hasLeadingZerosInInput&&!e.hasLeadingZerosInFormat&&(n=Number(n).toString()),["input-rtl","input-ltr"].includes(t)&&e.contentType==="digit"&&!o&&n.length===1&&(n=`${n}‎`),t==="input-rtl"&&(n=`⁨${n}⁩`),n},et=e=>e.replace(/[\u2066\u2067\u2068\u2069]/g,""),Wn=(e,t)=>{let n=0,o=t?1:0;const s=[];for(let r=0;r{switch(o.type){case"year":return n.fieldYearPlaceholder({digitAmount:e.formatByString(e.dateWithTimezone(void 0,t),s).length});case"month":return n.fieldMonthPlaceholder({contentType:o.contentType});case"day":return n.fieldDayPlaceholder();case"weekDay":return n.fieldWeekDayPlaceholder({contentType:o.contentType});case"hours":return n.fieldHoursPlaceholder();case"minutes":return n.fieldMinutesPlaceholder();case"seconds":return n.fieldSecondsPlaceholder();case"meridiem":return n.fieldMeridiemPlaceholder();default:return s}},dn=(e,t,n,o)=>e.formatByString(e.parse(t,n),o),Hn=(e,t,n)=>e.formatByString(e.dateWithTimezone(void 0,t),n).length===4,zn=(e,t,n,o,s)=>{if(n!=="digit")return!1;const r=e.dateWithTimezone(void 0,t);switch(o){case"year":return Hn(e,t,s)?e.formatByString(e.setYear(r,1),s)==="0001":e.formatByString(e.setYear(r,2001),s)==="01";case"month":return e.formatByString(e.startOfYear(r),s).length>1;case"day":return e.formatByString(e.startOfMonth(r),s).length>1;case"weekDay":return e.formatByString(e.startOfWeek(r),s).length>1;case"hours":return e.formatByString(e.setHours(r,1),s).length>1;case"minutes":return e.formatByString(e.setMinutes(r,1),s).length>1;case"seconds":return e.formatByString(e.setMinutes(r,1),s).length>1;default:throw new Error("Invalid section type")}},Is=(e,t)=>{const n=[],{start:o,end:s}=e.escapedCharacters,r=new RegExp(`(\\${o}[^\\${s}]*\\${s})+`,"g");let a=null;for(;a=r.exec(t);)n.push({start:a.index,end:r.lastIndex-1});return n},mn=(e,t,n,o,s,r,a,i)=>{let c="";const l=[],d=e.date(),y=w=>{if(w==="")return null;const S=En(e,w),x=zn(e,t,S.contentType,S.type,w),k=a?x:S.contentType==="digit",$=s!=null&&e.isValid(s);let I=$?e.formatByString(s,w):"",T=null;if(k)if(x)T=I===""?e.formatByString(d,w).length:I.length;else{if(S.maxLength==null)throw new Error(`MUI: The token ${w} should have a 'maxDigitNumber' property on it's adapter`);T=S.maxLength,$&&(I=_n(e,I,T))}return l.push(m({},S,{format:w,maxLength:T,value:I,placeholder:Vs(e,t,n,S,w),hasLeadingZeros:x,hasLeadingZerosInFormat:x,hasLeadingZerosInInput:k,startSeparator:l.length===0?c:"",endSeparator:"",modified:!1})),null};let f=10,h=o,P=e.expandFormat(o);for(;P!==h;)if(h=P,P=e.expandFormat(h),f-=1,f<0)throw new Error("MUI: The format expansion seems to be enter in an infinite loop. Please open an issue with the format passed to the picker component");const g=P,C=Is(e,g),D=new RegExp(`^(${Object.keys(e.formatTokenMap).sort((w,S)=>S.length-w.length).join("|")})`,"g");let v="";for(let w=0;wT.start<=w&&T.end>=w),x=g[w],k=S!=null,$=`${v}${g.slice(w)}`,I=D.test($);!k&&x.match(/([A-Za-z]+)/)&&I?(v=$.slice(0,D.lastIndex),w+=D.lastIndex-1):k&&(S==null?void 0:S.start)===w||(S==null?void 0:S.end)===w||(y(v),v="",l.length===0?c+=x:l[l.length-1].endSeparator+=x)}return y(v),l.map(w=>{const S=x=>{let k=x;return i&&k!==null&&k.includes(" ")&&(k=`⁩${k}⁦`),r==="spacious"&&["/",".","-"].includes(k)&&(k=` ${k} `),k};return w.startSeparator=S(w.startSeparator),w.endSeparator=S(w.endSeparator),w})},Rs=(e,t)=>{const n=t.some(i=>i.type==="day"),o=[],s=[];for(let i=0;i{const o=e.map(s=>{const r=qt(s,t?"input-rtl":"input-ltr");return`${s.startSeparator}${r}${s.endSeparator}`}).join("");return t?`⁦${o}⁩`:o},As=(e,t)=>{const n=e.dateWithTimezone(void 0,t),o=e.endOfYear(n),s=e.endOfDay(n),{maxDaysInMonth:r,longestMonth:a}=Gt(e,n).reduce((i,c)=>{const l=e.getDaysInMonth(c);return l>i.maxDaysInMonth?{maxDaysInMonth:l,longestMonth:c}:i},{maxDaysInMonth:0,longestMonth:null});return{year:({format:i})=>({minimum:0,maximum:Hn(e,t,i)?9999:99}),month:()=>({minimum:1,maximum:e.getMonth(o)+1}),day:({currentDate:i})=>({minimum:1,maximum:i!=null&&e.isValid(i)?e.getDaysInMonth(i):r,longestMonth:a}),weekDay:({format:i,contentType:c})=>{if(c==="digit"){const l=Vt(e,t,i).map(Number);return{minimum:Math.min(...l),maximum:Math.max(...l)}}return{minimum:1,maximum:7}},hours:({format:i})=>{const c=e.getHours(s);return e.formatByString(e.endOfDay(n),i)!==c.toString()?{minimum:1,maximum:Number(e.formatByString(e.startOfDay(n),i))}:{minimum:0,maximum:c}},minutes:()=>({minimum:0,maximum:e.getMinutes(s)}),seconds:()=>({minimum:0,maximum:e.getSeconds(s)}),meridiem:()=>({minimum:0,maximum:0})}},$s=(e,t,n,o,s)=>{switch(n.type){case"year":return e.setYear(s,e.getYear(o));case"month":return e.setMonth(s,e.getMonth(o));case"weekDay":{const r=Vt(e,t,n.format),a=e.formatByString(o,n.format),i=r.indexOf(a),l=r.indexOf(n.value)-i;return e.addDays(o,l)}case"day":return e.setDate(s,e.getDate(o));case"meridiem":{const r=e.getHours(o)<12,a=e.getHours(s);return r&&a>=12?e.addHours(s,-12):!r&&a<12?e.addHours(s,12):s}case"hours":return e.setHours(s,e.getHours(o));case"minutes":return e.setMinutes(s,e.getMinutes(o));case"seconds":return e.setSeconds(s,e.getSeconds(o));default:return s}},pn={year:1,month:2,day:3,weekDay:4,hours:5,minutes:6,seconds:7,meridiem:8},fn=(e,t,n,o,s,r)=>[...o].sort((a,i)=>pn[a.type]-pn[i.type]).reduce((a,i)=>!r||i.modified?$s(e,t,i,n,a):a,s),Os=()=>navigator.userAgent.toLowerCase().indexOf("android")>-1,Ns=(e,t)=>{const n={};if(!t)return e.forEach((c,l)=>{const d=l===0?null:l-1,y=l===e.length-1?null:l+1;n[l]={leftIndex:d,rightIndex:y}}),{neighbors:n,startIndex:0,endIndex:e.length-1};const o={},s={};let r=0,a=0,i=e.length-1;for(;i>=0;){a=e.findIndex((c,l)=>{var d;return l>=r&&((d=c.endSeparator)==null?void 0:d.includes(" "))&&c.endSeparator!==" / "}),a===-1&&(a=e.length-1);for(let c=a;c>=r;c-=1)s[c]=i,o[i]=c,i-=1;r=a+1}return e.forEach((c,l)=>{const d=s[l],y=d===0?null:o[d-1],f=d===e.length-1?null:o[d+1];n[l]={leftIndex:y,rightIndex:f}}),{neighbors:n,startIndex:o[0],endIndex:o[e.length-1]}},Ls=["value","referenceDate"],Te={emptyValue:null,getTodayValue:Kt,getInitialReferenceValue:e=>{let{value:t,referenceDate:n}=e,o=re(e,Ls);return t!=null&&o.utils.isValid(t)?t:n??Ss(o)},cleanValue:vs,areValuesEqual:xs,isSameError:(e,t)=>e===t,hasError:e=>e!=null,defaultErrorState:null,getTimezone:(e,t)=>t==null||!e.isValid(t)?null:e.getTimezone(t),setTimezone:(e,t,n)=>n==null?null:e.setTimezone(n,t)},Es={updateReferenceValue:(e,t,n)=>t==null||!e.isValid(t)?n:t,getSectionsFromValue:(e,t,n,o,s)=>!e.isValid(t)&&!!n?n:Wn(s(t),o),getValueStrFromSections:Fs,getActiveDateManager:(e,t)=>({date:t.value,referenceDate:t.referenceValue,getSections:n=>n,getNewValuesFromNewActiveDate:n=>({value:n,referenceValue:n==null||!e.isValid(n)?t.referenceValue:n})}),parseValueStr:(e,t,n)=>n(e.trim(),t)},js=e=>({components:{MuiLocalizationProvider:{defaultProps:{localeText:m({},e)}}}}),Un={previousMonth:"Previous month",nextMonth:"Next month",openPreviousView:"open previous view",openNextView:"open next view",calendarViewSwitchingButtonAriaLabel:e=>e==="year"?"year view is open, switch to calendar view":"calendar view is open, switch to year view",start:"Start",end:"End",cancelButtonLabel:"Cancel",clearButtonLabel:"Clear",okButtonLabel:"OK",todayButtonLabel:"Today",datePickerToolbarTitle:"Select date",dateTimePickerToolbarTitle:"Select date & time",timePickerToolbarTitle:"Select time",dateRangePickerToolbarTitle:"Select date range",clockLabelText:(e,t,n)=>`Select ${e}. ${t===null?"No time selected":`Selected time is ${n.format(t,"fullTime")}`}`,hoursClockNumberText:e=>`${e} hours`,minutesClockNumberText:e=>`${e} minutes`,secondsClockNumberText:e=>`${e} seconds`,selectViewText:e=>`Select ${e}`,calendarWeekNumberHeaderLabel:"Week number",calendarWeekNumberHeaderText:"#",calendarWeekNumberAriaLabelText:e=>`Week ${e}`,calendarWeekNumberText:e=>`${e}`,openDatePickerDialogue:(e,t)=>e!==null&&t.isValid(e)?`Choose date, selected date is ${t.format(e,"fullDate")}`:"Choose date",openTimePickerDialogue:(e,t)=>e!==null&&t.isValid(e)?`Choose time, selected time is ${t.format(e,"fullTime")}`:"Choose time",fieldClearLabel:"Clear value",timeTableLabel:"pick time",dateTableLabel:"pick date",fieldYearPlaceholder:e=>"Y".repeat(e.digitAmount),fieldMonthPlaceholder:e=>e.contentType==="letter"?"MMMM":"MM",fieldDayPlaceholder:()=>"DD",fieldWeekDayPlaceholder:e=>e.contentType==="letter"?"EEEE":"EE",fieldHoursPlaceholder:()=>"hh",fieldMinutesPlaceholder:()=>"mm",fieldSecondsPlaceholder:()=>"ss",fieldMeridiemPlaceholder:()=>"aa"},_s=Un;js(Un);const Ze=()=>{const e=b.useContext(Io);if(e===null)throw new Error(["MUI: Can not find the date and time pickers localization context.","It looks like you forgot to wrap your component in LocalizationProvider.","This can also happen if you are bundling multiple versions of the `@mui/x-date-pickers` package"].join(` +`));if(e.utils===null)throw new Error(["MUI: Can not find the date and time pickers adapter from its localization context.","It looks like you forgot to pass a `dateAdapter` to your LocalizationProvider."].join(` +`));const t=b.useMemo(()=>m({},_s,e.localeText),[e.localeText]);return b.useMemo(()=>m({},e,{localeText:t}),[e,t])},fe=()=>Ze().utils,vt=()=>Ze().defaultDates,Me=()=>Ze().localeText,Ye=e=>{const t=fe(),n=b.useRef();return n.current===void 0&&(n.current=t.dateWithTimezone(void 0,e)),n.current};function Yn(e,t,n,o){const{value:s,onError:r}=e,a=Ze(),i=b.useRef(o),c=t({adapter:a,value:s,props:e});return b.useEffect(()=>{r&&!n(c,i.current)&&r(c,s),i.current=c},[n,r,i,c,s]),c}const Qt=({timezone:e,value:t,defaultValue:n,onChange:o,valueManager:s})=>{var r,a;const i=fe(),c=b.useRef(n),l=(r=t??c.current)!=null?r:s.emptyValue,d=b.useMemo(()=>s.getTimezone(i,l),[i,s,l]),y=X(g=>d==null?g:s.setTimezone(i,d,g)),f=(a=e??d)!=null?a:"default",h=b.useMemo(()=>s.setTimezone(i,f,l),[s,i,f,l]),P=X((g,...C)=>{const D=y(g);o==null||o(D,...C)});return{value:h,handleValueChange:P,timezone:f}},it=({name:e,timezone:t,value:n,defaultValue:o,onChange:s,valueManager:r})=>{const[a,i]=ze({name:e,state:"value",controlled:n,default:o??r.emptyValue}),c=X((l,...d)=>{i(l),s==null||s(l,...d)});return Qt({timezone:t,value:a,defaultValue:void 0,onChange:c,valueManager:r})},Bs=e=>{const t=fe(),n=Me(),o=Ze(),r=qe().direction==="rtl",{valueManager:a,fieldValueManager:i,valueType:c,validator:l,internalProps:d,internalProps:{value:y,defaultValue:f,referenceDate:h,onChange:P,format:g,formatDensity:C="dense",selectedSections:D,onSelectedSectionsChange:v,shouldRespectLeadingZeros:w=!1,timezone:S}}=e,{timezone:x,value:k,handleValueChange:$}=Qt({timezone:S,value:y,defaultValue:f,onChange:P,valueManager:a}),I=b.useMemo(()=>As(t,x),[t,x]),T=b.useCallback((U,H=null)=>i.getSectionsFromValue(t,U,H,r,Q=>mn(t,x,n,g,Q,C,w,r)),[i,g,n,r,w,t,C,x]),O=b.useMemo(()=>i.getValueStrFromSections(T(a.emptyValue),r),[i,T,a.emptyValue,r]),[F,j]=b.useState(()=>{const U=T(k),H={sections:U,value:k,referenceValue:a.emptyValue,tempValueStrAndroid:null},Q=ks(U),L=a.getInitialReferenceValue({referenceDate:h,value:k,utils:t,props:d,granularity:Q,timezone:x});return m({},H,{referenceValue:L})}),[N,V]=ze({controlled:D,default:null,name:"useField",state:"selectedSectionIndexes"}),M=U=>{V(U),v==null||v(U),j(H=>m({},H,{selectedSectionQuery:null}))},z=b.useMemo(()=>{if(N==null)return null;if(N==="all")return{startIndex:0,endIndex:F.sections.length-1,shouldSelectBoundarySelectors:!0};if(typeof N=="number")return{startIndex:N,endIndex:N};if(typeof N=="string"){const U=F.sections.findIndex(H=>H.type===N);return{startIndex:U,endIndex:U}}return N},[N,F.sections]),q=({value:U,referenceValue:H,sections:Q})=>{j(ee=>m({},ee,{sections:Q,value:U,referenceValue:H,tempValueStrAndroid:null}));const L={validationError:l({adapter:o,value:U,props:m({},d,{value:U,timezone:x})})};$(U,L)},W=(U,H)=>{const Q=[...F.sections];return Q[U]=m({},Q[U],{value:H,modified:!0}),Wn(Q,r)},B=()=>{a.areValuesEqual(t,F.value,a.emptyValue)||q({value:a.emptyValue,referenceValue:F.referenceValue,sections:T(a.emptyValue)})},G=()=>{if(z==null)return;const U=F.sections[z.startIndex];if(U.value==="")return;const H=i.getActiveDateManager(t,F,U),L=H.getSections(F.sections).filter(K=>K.value!=="").length===1,ee=W(z.startIndex,""),ue=L?null:t.date(new Date("")),le=H.getNewValuesFromNewActiveDate(ue);(ue!=null&&!t.isValid(ue))!=(H.date!=null&&!t.isValid(H.date))?q(m({},le,{sections:ee})):j(K=>m({},K,le,{sections:ee,tempValueStrAndroid:null}))},te=U=>{const H=(ee,ue)=>{const le=t.parse(ee,g);if(le==null||!t.isValid(le))return null;const K=mn(t,x,n,g,le,C,w,r);return fn(t,x,le,K,ue,!1)},Q=i.parseValueStr(U,F.referenceValue,H),L=i.updateReferenceValue(t,Q,F.referenceValue);q({value:Q,referenceValue:L,sections:T(Q,F.sections)})},ae=({activeSection:U,newSectionValue:H,shouldGoToNextSection:Q})=>{Q&&z&&z.startIndexm({},_,K,{sections:ee,tempValueStrAndroid:null}))},ce=U=>j(H=>m({},H,{tempValueStrAndroid:U}));return b.useEffect(()=>{const U=T(F.value);j(H=>m({},H,{sections:U}))},[g,t.locale]),b.useEffect(()=>{let U=!1;a.areValuesEqual(t,F.value,k)?U=a.getTimezone(t,F.value)!==a.getTimezone(t,k):U=!0,U&&j(H=>m({},H,{value:k,referenceValue:i.updateReferenceValue(t,k,H.referenceValue),sections:T(k)}))},[k]),{state:F,selectedSectionIndexes:z,setSelectedSections:M,clearValue:B,clearActiveSection:G,updateSectionValue:ae,updateValueFromValueStr:te,setTempAndroidValueStr:ce,sectionsValueBoundaries:I,placeholder:O,timezone:x}},Ws=5e3,Xe=e=>e.saveQuery!=null,Hs=({sections:e,updateSectionValue:t,sectionsValueBoundaries:n,setTempAndroidValueStr:o,timezone:s})=>{const r=fe(),[a,i]=b.useState(null),c=X(()=>i(null));b.useEffect(()=>{var h;a!=null&&((h=e[a.sectionIndex])==null?void 0:h.type)!==a.sectionType&&c()},[e,a,c]),b.useEffect(()=>{if(a!=null){const h=setTimeout(()=>c(),Ws);return()=>{window.clearTimeout(h)}}return()=>{}},[a,c]);const l=({keyPressed:h,sectionIndex:P},g,C)=>{const D=h.toLowerCase(),v=e[P];if(a!=null&&(!C||C(a.value))&&a.sectionIndex===P){const S=`${a.value}${D}`,x=g(S,v);if(!Xe(x))return i({sectionIndex:P,value:S,sectionType:v.type}),x}const w=g(D,v);return Xe(w)&&!w.saveQuery?(c(),null):(i({sectionIndex:P,value:D,sectionType:v.type}),Xe(w)?null:w)},d=h=>{const P=(D,v,w)=>{const S=v.filter(x=>x.toLowerCase().startsWith(w));return S.length===0?{saveQuery:!1}:{sectionValue:S[0],shouldGoToNextSection:S.length===1}},g=(D,v,w,S)=>{const x=k=>jn(r,s,v.type,k);if(v.contentType==="letter")return P(v.format,x(v.format),D);if(w&&S!=null&&En(r,w).contentType==="letter"){const k=x(w),$=P(w,k,D);return Xe($)?{saveQuery:!1}:m({},$,{sectionValue:S($.sectionValue,k)})}return{saveQuery:!1}};return l(h,(D,v)=>{switch(v.type){case"month":{const w=S=>dn(r,S,r.formats.month,v.format);return g(D,v,r.formats.month,w)}case"weekDay":{const w=(S,x)=>x.indexOf(S).toString();return g(D,v,r.formats.weekday,w)}case"meridiem":return g(D,v);default:return{saveQuery:!1}}})},y=h=>{const P=(C,D)=>{const v=+`${C}`,w=n[D.type]({currentDate:null,format:D.format,contentType:D.contentType});if(v>w.maximum)return{saveQuery:!1};if(vw.maximum||C.length===w.maximum.toString().length;return{sectionValue:Bn(r,s,v,w,D),shouldGoToNextSection:S}};return l(h,(C,D)=>{if(D.contentType==="digit"||D.contentType==="digit-with-letter")return P(C,D);if(D.type==="month"){const v=zn(r,s,"digit","month","MM"),w=P(C,{type:D.type,format:"MM",hasLeadingZerosInFormat:v,hasLeadingZerosInInput:!0,contentType:"digit",maxLength:2});if(Xe(w))return w;const S=dn(r,w.sectionValue,"MM",D.format);return m({},w,{sectionValue:S})}if(D.type==="weekDay"){const v=P(C,D);if(Xe(v))return v;const w=Vt(r,s,D.format)[Number(v.sectionValue)-1];return m({},v,{sectionValue:w})}return{saveQuery:!1}},C=>!Number.isNaN(Number(C)))};return{applyCharacterEditing:X(h=>{const P=e[h.sectionIndex],C=!Number.isNaN(Number(h.keyPressed))?y(h):d(h);C==null?o(null):t({activeSection:P,newSectionValue:C.sectionValue,shouldGoToNextSection:C.shouldGoToNextSection})}),resetCharacterQuery:c}};function zs(e,t){return Array.isArray(t)?t.every(n=>e.indexOf(n)!==-1):e.indexOf(t)!==-1}const Us=(e,t)=>n=>{(n.key==="Enter"||n.key===" ")&&(e(n),n.preventDefault(),n.stopPropagation()),t&&t(n)},St=(e=document)=>{const t=e.activeElement;return t?t.shadowRoot?St(t.shadowRoot):t:null},Ys="@media (pointer: fine)",Gs=["onClick","onKeyDown","onFocus","onBlur","onMouseUp","onPaste","error","clearable","onClear","disabled"],Ks=e=>{const t=fe(),{state:n,selectedSectionIndexes:o,setSelectedSections:s,clearValue:r,clearActiveSection:a,updateSectionValue:i,updateValueFromValueStr:c,setTempAndroidValueStr:l,sectionsValueBoundaries:d,placeholder:y,timezone:f}=Bs(e),{inputRef:h,internalProps:P,internalProps:{readOnly:g=!1,unstableFieldRef:C,minutesStep:D},forwardedProps:{onClick:v,onKeyDown:w,onFocus:S,onBlur:x,onMouseUp:k,onPaste:$,error:I,clearable:T,onClear:O,disabled:F},fieldValueManager:j,valueManager:N,validator:V}=e,M=re(e.forwardedProps,Gs),{applyCharacterEditing:z,resetCharacterQuery:q}=Hs({sections:n.sections,updateSectionValue:i,sectionsValueBoundaries:d,setTempAndroidValueStr:l,timezone:f}),W=b.useRef(null),B=Ee(h,W),G=b.useRef(void 0),ae=qe().direction==="rtl",ce=b.useMemo(()=>Ns(n.sections,ae),[n.sections,ae]),U=()=>{var R;if(g){s(null);return}const A=(R=W.current.selectionStart)!=null?R:0;let E;A<=n.sections[0].startInInput||A>=n.sections[n.sections.length-1].endInInput?E=1:E=n.sections.findIndex(xe=>xe.startInInput-xe.startSeparator.length>A);const se=E===-1?n.sections.length-1:E-1;s(se)},H=X((R,...A)=>{R.isDefaultPrevented()||(v==null||v(R,...A),U())}),Q=X(R=>{k==null||k(R),R.preventDefault()}),L=X((...R)=>{S==null||S(...R);const A=W.current;window.clearTimeout(G.current),G.current=setTimeout(()=>{!A||A!==W.current||o!=null||g||(A.value.length&&Number(A.selectionEnd)-Number(A.selectionStart)===A.value.length?s("all"):U())})}),ee=X((...R)=>{x==null||x(...R),s(null)}),ue=X(R=>{if($==null||$(R),g){R.preventDefault();return}const A=R.clipboardData.getData("text");if(o&&o.startIndex===o.endIndex){const E=n.sections[o.startIndex],se=/^[a-zA-Z]+$/.test(A),xe=/^[0-9]+$/.test(A),Ce=/^(([a-zA-Z]+)|)([0-9]+)(([a-zA-Z]+)|)$/.test(A);if(E.contentType==="letter"&&se||E.contentType==="digit"&&xe||E.contentType==="digit-with-letter"&&Ce)return;if(se||xe){R.preventDefault();return}}R.preventDefault(),q(),c(A)}),le=X(R=>{if(g)return;const A=R.target.value,E=R.nativeEvent.data,se=E&&E.length>1,xe=se?E:A,Ce=et(xe);if(o==null||se){c(se?E:Ce);return}let he;if(o.startIndex===0&&o.endIndex===n.sections.length-1&&Ce.length===1)he=Ce;else{const ie=et(j.getValueStrFromSections(n.sections,ae));let we=-1,Ve=-1;for(let Fe=0;Fe$e.end)return;const lt=Ce.length-ie.length+$e.end-et($e.endSeparator||"").length;he=Ce.slice($e.start+et($e.startSeparator||"").length,lt)}if(Os()&&he.length===0){l(xe);return}z({keyPressed:he,sectionIndex:o.startIndex})}),K=X(R=>{switch(w==null||w(R),!0){case(R.key==="a"&&(R.ctrlKey||R.metaKey)):{R.preventDefault(),s("all");break}case R.key==="ArrowRight":{if(R.preventDefault(),o==null)s(ce.startIndex);else if(o.startIndex!==o.endIndex)s(o.endIndex);else{const A=ce.neighbors[o.startIndex].rightIndex;A!==null&&s(A)}break}case R.key==="ArrowLeft":{if(R.preventDefault(),o==null)s(ce.endIndex);else if(o.startIndex!==o.endIndex)s(o.startIndex);else{const A=ce.neighbors[o.startIndex].leftIndex;A!==null&&s(A)}break}case["Backspace","Delete"].includes(R.key):{if(R.preventDefault(),g)break;o==null||o.startIndex===0&&o.endIndex===n.sections.length-1?r():a(),q();break}case["ArrowUp","ArrowDown","Home","End","PageUp","PageDown"].includes(R.key):{if(R.preventDefault(),g||o==null)break;const A=n.sections[o.startIndex],E=j.getActiveDateManager(t,n,A),se=Ms(t,f,A,R.key,d,E.date,{minutesStep:D});i({activeSection:A,newSectionValue:se,shouldGoToNextSection:!1});break}}});He(()=>{if(!W.current)return;if(o==null){W.current.scrollLeft&&(W.current.scrollLeft=0);return}const R=n.sections[o.startIndex],A=n.sections[o.endIndex];let E=R.startInInput,se=A.endInInput;if(o.shouldSelectBoundarySelectors&&(E-=R.startSeparator.length,se+=A.endSeparator.length),E!==W.current.selectionStart||se!==W.current.selectionEnd){const xe=W.current.scrollTop;W.current===St(document)&&W.current.setSelectionRange(E,se),W.current.scrollTop=xe}});const Z=Yn(m({},P,{value:n.value,timezone:f}),V,N.isSameError,N.defaultErrorState),_=b.useMemo(()=>I!==void 0?I:N.hasError(Z),[N,Z,I]);b.useEffect(()=>{!_&&!o&&q()},[n.referenceValue,o,_]),b.useEffect(()=>(W.current&&W.current===document.activeElement&&s("all"),()=>window.clearTimeout(G.current)),[]),b.useEffect(()=>{n.tempValueStrAndroid!=null&&o!=null&&(q(),a())},[n.tempValueStrAndroid]);const ne=b.useMemo(()=>{var R;return(R=n.tempValueStrAndroid)!=null?R:j.getValueStrFromSections(n.sections,ae)},[n.sections,j,n.tempValueStrAndroid,ae]),me=b.useMemo(()=>o==null||n.sections[o.startIndex].contentType==="letter"?"text":"numeric",[o,n.sections]),de=W.current&&W.current===St(document),ke=N.areValuesEqual(t,n.value,N.emptyValue),J=!de&&ke;b.useImperativeHandle(C,()=>({getSections:()=>n.sections,getActiveSectionIndex:()=>{var R,A;const E=(R=W.current.selectionStart)!=null?R:0,se=(A=W.current.selectionEnd)!=null?A:0;if(E===0&&se===0)return null;const xe=E<=n.sections[0].startInInput?1:n.sections.findIndex(Ce=>Ce.startInInput-Ce.startSeparator.length>E);return xe===-1?n.sections.length-1:xe-1},setSelectedSections:R=>s(R)}));const oe=X((R,...A)=>{var E;R.preventDefault(),O==null||O(R,...A),r(),W==null||(E=W.current)==null||E.focus(),s(0)});return m({placeholder:y,autoComplete:"off",disabled:!!F},M,{value:J?"":ne,inputMode:me,readOnly:g,onClick:H,onFocus:L,onBlur:ee,onPaste:ue,onChange:le,onKeyDown:K,onMouseUp:Q,onClear:oe,error:_,ref:B,clearable:!!(T&&!ke&&!g&&!F)})},Gn=({props:e,value:t,adapter:n})=>{if(t===null)return null;const{shouldDisableDate:o,shouldDisableMonth:s,shouldDisableYear:r,disablePast:a,disableFuture:i,timezone:c}=e,l=n.utils.dateWithTimezone(void 0,c),d=Re(n.utils,e.minDate,n.defaultDates.minDate),y=Re(n.utils,e.maxDate,n.defaultDates.maxDate);switch(!0){case!n.utils.isValid(t):return"invalidDate";case!!(o&&o(t)):return"shouldDisableDate";case!!(s&&s(t)):return"shouldDisableMonth";case!!(r&&r(t)):return"shouldDisableYear";case!!(i&&n.utils.isAfterDay(t,l)):return"disableFuture";case!!(a&&n.utils.isBeforeDay(t,l)):return"disablePast";case!!(d&&n.utils.isBeforeDay(t,d)):return"minDate";case!!(y&&n.utils.isAfterDay(t,y)):return"maxDate";default:return null}},qs=({adapter:e,value:t,props:n})=>{if(t===null)return null;const{minTime:o,maxTime:s,minutesStep:r,shouldDisableClock:a,shouldDisableTime:i,disableIgnoringDatePartForTimeValidation:c=!1,disablePast:l,disableFuture:d,timezone:y}=n,f=e.utils.dateWithTimezone(void 0,y),h=yt(c,e.utils);switch(!0){case!e.utils.isValid(t):return"invalidDate";case!!(o&&h(o,t)):return"minTime";case!!(s&&h(t,s)):return"maxTime";case!!(d&&e.utils.isAfter(t,f)):return"disableFuture";case!!(l&&e.utils.isBefore(t,f)):return"disablePast";case!!(i&&i(t,"hours")):return"shouldDisableTime-hours";case!!(i&&i(t,"minutes")):return"shouldDisableTime-minutes";case!!(i&&i(t,"seconds")):return"shouldDisableTime-seconds";case!!(a&&a(e.utils.getHours(t),"hours")):return"shouldDisableClock-hours";case!!(a&&a(e.utils.getMinutes(t),"minutes")):return"shouldDisableClock-minutes";case!!(a&&a(e.utils.getSeconds(t),"seconds")):return"shouldDisableClock-seconds";case!!(r&&e.utils.getMinutes(t)%r!==0):return"minutesStep";default:return null}},Zt=({props:e,value:t,adapter:n})=>{const o=Gn({adapter:n,value:t,props:e});return o!==null?o:qs({adapter:n,value:t,props:e})},zt=["disablePast","disableFuture","minDate","maxDate","shouldDisableDate","shouldDisableMonth","shouldDisableYear"],Ut=["disablePast","disableFuture","minTime","maxTime","shouldDisableClock","shouldDisableTime","minutesStep","ampm","disableIgnoringDatePartForTimeValidation"],Kn=["minDateTime","maxDateTime"],Qs=[...zt,...Ut,...Kn],qn=e=>Qs.reduce((t,n)=>(e.hasOwnProperty(n)&&(t[n]=e[n]),t),{}),Zs=["value","defaultValue","referenceDate","format","formatDensity","onChange","timezone","readOnly","onError","shouldRespectLeadingZeros","selectedSections","onSelectedSectionsChange","unstableFieldRef"],Xs=(e,t)=>{const n=m({},e),o={},s=r=>{n.hasOwnProperty(r)&&(o[r]=n[r],delete n[r])};return Zs.forEach(s),t==="date"?zt.forEach(s):t==="time"?Ut.forEach(s):t==="date-time"&&(zt.forEach(s),Ut.forEach(s),Kn.forEach(s)),{forwardedProps:n,internalProps:o}},Js=e=>{var t,n,o,s,r,a,i,c;const l=fe(),d=vt(),f=((t=e.ampm)!=null?t:l.is12HourCycleInCurrentLocale())?l.formats.keyboardDateTime12h:l.formats.keyboardDateTime24h;return m({},e,{disablePast:(n=e.disablePast)!=null?n:!1,disableFuture:(o=e.disableFuture)!=null?o:!1,format:(s=e.format)!=null?s:f,disableIgnoringDatePartForTimeValidation:!!(e.minDateTime||e.maxDateTime),minDate:Re(l,(r=e.minDateTime)!=null?r:e.minDate,d.minDate),maxDate:Re(l,(a=e.maxDateTime)!=null?a:e.maxDate,d.maxDate),minTime:(i=e.minDateTime)!=null?i:e.minTime,maxTime:(c=e.maxDateTime)!=null?c:e.maxTime})},er=({props:e,inputRef:t})=>{const n=Js(e),{forwardedProps:o,internalProps:s}=Xs(n,"date-time");return Ks({inputRef:t,forwardedProps:o,internalProps:s,valueManager:Te,fieldValueManager:Es,validator:Zt,valueType:"date-time"})},tr=Ue(p.jsx("path",{d:"M7 10l5 5 5-5z"}),"ArrowDropDown"),nr=Ue(p.jsx("path",{d:"M15.41 16.59L10.83 12l4.58-4.59L14 6l-6 6 6 6 1.41-1.41z"}),"ArrowLeft"),or=Ue(p.jsx("path",{d:"M8.59 16.59L13.17 12 8.59 7.41 10 6l6 6-6 6-1.41-1.41z"}),"ArrowRight"),sr=Ue(p.jsx("path",{d:"M17 12h-5v5h5v-5zM16 1v2H8V1H6v2H5c-1.11 0-1.99.9-1.99 2L3 19c0 1.1.89 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2h-1V1h-2zm3 18H5V8h14v11z"}),"Calendar");Ue(p.jsxs(b.Fragment,{children:[p.jsx("path",{d:"M11.99 2C6.47 2 2 6.48 2 12s4.47 10 9.99 10C17.52 22 22 17.52 22 12S17.52 2 11.99 2zM12 20c-4.42 0-8-3.58-8-8s3.58-8 8-8 8 3.58 8 8-3.58 8-8 8z"}),p.jsx("path",{d:"M12.5 7H11v6l5.25 3.15.75-1.23-4.5-2.67z"})]}),"Clock");const rr=Ue(p.jsx("path",{d:"M9 11H7v2h2v-2zm4 0h-2v2h2v-2zm4 0h-2v2h2v-2zm2-7h-1V2h-2v2H8V2H6v2H5c-1.11 0-1.99.9-1.99 2L3 20c0 1.1.89 2 2 2h14c1.1 0 2-.9 2-2V6c0-1.1-.9-2-2-2zm0 16H5V9h14v11z"}),"DateRange"),ar=Ue(p.jsxs(b.Fragment,{children:[p.jsx("path",{d:"M11.99 2C6.47 2 2 6.48 2 12s4.47 10 9.99 10C17.52 22 22 17.52 22 12S17.52 2 11.99 2zM12 20c-4.42 0-8-3.58-8-8s3.58-8 8-8 8 3.58 8 8-3.58 8-8 8z"}),p.jsx("path",{d:"M12.5 7H11v6l5.25 3.15.75-1.23-4.5-2.67z"})]}),"Time"),ir=Ue(p.jsx("path",{d:"M19 6.41 17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12z"}),"Clear");function lr(e){return ve("MuiPickersArrowSwitcher",e)}ye("MuiPickersArrowSwitcher",["root","spacer","button"]);const cr=["children","className","slots","slotProps","isNextDisabled","isNextHidden","onGoToNext","nextLabel","isPreviousDisabled","isPreviousHidden","onGoToPrevious","previousLabel"],ur=["ownerState"],dr=["ownerState"],mr=Y("div",{name:"MuiPickersArrowSwitcher",slot:"Root",overridesResolver:(e,t)=>t.root})({display:"flex"}),pr=Y("div",{name:"MuiPickersArrowSwitcher",slot:"Spacer",overridesResolver:(e,t)=>t.spacer})(({theme:e})=>({width:e.spacing(3)})),hn=Y(at,{name:"MuiPickersArrowSwitcher",slot:"Button",overridesResolver:(e,t)=>t.button})(({ownerState:e})=>m({},e.hidden&&{visibility:"hidden"})),fr=e=>{const{classes:t}=e;return ge({root:["root"],spacer:["spacer"],button:["button"]},lr,t)},Qn=b.forwardRef(function(t,n){var o,s,r,a;const c=qe().direction==="rtl",l=pe({props:t,name:"MuiPickersArrowSwitcher"}),{children:d,className:y,slots:f,slotProps:h,isNextDisabled:P,isNextHidden:g,onGoToNext:C,nextLabel:D,isPreviousDisabled:v,isPreviousHidden:w,onGoToPrevious:S,previousLabel:x}=l,k=re(l,cr),$=l,I=fr($),T={isDisabled:P,isHidden:g,goTo:C,label:D},O={isDisabled:v,isHidden:w,goTo:S,label:x},F=(o=f==null?void 0:f.previousIconButton)!=null?o:hn,j=Pe({elementType:F,externalSlotProps:h==null?void 0:h.previousIconButton,additionalProps:{size:"medium",title:O.label,"aria-label":O.label,disabled:O.isDisabled,edge:"end",onClick:O.goTo},ownerState:m({},$,{hidden:O.isHidden}),className:I.button}),N=(s=f==null?void 0:f.nextIconButton)!=null?s:hn,V=Pe({elementType:N,externalSlotProps:h==null?void 0:h.nextIconButton,additionalProps:{size:"medium",title:T.label,"aria-label":T.label,disabled:T.isDisabled,edge:"start",onClick:T.goTo},ownerState:m({},$,{hidden:T.isHidden}),className:I.button}),M=(r=f==null?void 0:f.leftArrowIcon)!=null?r:nr,z=Pe({elementType:M,externalSlotProps:h==null?void 0:h.leftArrowIcon,additionalProps:{fontSize:"inherit"},ownerState:void 0}),q=re(z,ur),W=(a=f==null?void 0:f.rightArrowIcon)!=null?a:or,B=Pe({elementType:W,externalSlotProps:h==null?void 0:h.rightArrowIcon,additionalProps:{fontSize:"inherit"},ownerState:void 0}),G=re(B,dr);return p.jsxs(mr,m({ref:n,className:be(I.root,y),ownerState:$},k,{children:[p.jsx(F,m({},j,{children:c?p.jsx(W,m({},G)):p.jsx(M,m({},q))})),d?p.jsx(Qe,{variant:"subtitle1",component:"span",children:d}):p.jsx(pr,{className:I.spacer,ownerState:$}),p.jsx(N,m({},V,{children:c?p.jsx(M,m({},q)):p.jsx(W,m({},G))}))]}))}),gt=36,It=2,Rt=320,hr=280,Ft=334,Zn=232,pt=48,gr=Y(Fo)({[`& .${on.container}`]:{outline:0},[`& .${on.paper}`]:{outline:0,minWidth:Rt}}),br=Y(Ao)({"&:first-of-type":{padding:0}});function yr(e){var t,n;const{children:o,onDismiss:s,open:r,slots:a,slotProps:i}=e,c=(t=a==null?void 0:a.dialog)!=null?t:gr,l=(n=a==null?void 0:a.mobileTransition)!=null?n:Mt;return p.jsx(c,m({open:r,onClose:s},i==null?void 0:i.dialog,{TransitionComponent:l,TransitionProps:i==null?void 0:i.mobileTransition,PaperComponent:a==null?void 0:a.mobilePaper,PaperProps:i==null?void 0:i.mobilePaper,children:p.jsx(br,{children:o})}))}function vr(e){return ve("MuiPickersPopper",e)}ye("MuiPickersPopper",["root","paper"]);const xr="@media (prefers-reduced-motion: reduce)",nt=typeof navigator<"u"&&navigator.userAgent.match(/android\s(\d+)|OS\s(\d+)/i),gn=nt&&nt[1]?parseInt(nt[1],10):null,bn=nt&&nt[2]?parseInt(nt[2],10):null,Cr=gn&&gn<10||bn&&bn<13||!1,Xn=()=>Sn(xr,{defaultMatches:!1})||Cr,Dr=["PaperComponent","popperPlacement","ownerState","children","paperSlotProps","paperClasses","onPaperClick","onPaperTouchStart"],wr=e=>{const{classes:t}=e;return ge({root:["root"],paper:["paper"]},vr,t)},Pr=Y(Ko,{name:"MuiPickersPopper",slot:"Root",overridesResolver:(e,t)=>t.root})(({theme:e})=>({zIndex:e.zIndex.modal})),kr=Y(Wo,{name:"MuiPickersPopper",slot:"Paper",overridesResolver:(e,t)=>t.paper})(({ownerState:e})=>m({outline:0,transformOrigin:"top center"},e.placement.includes("top")&&{transformOrigin:"bottom center"}));function Sr(e,t){return t.documentElement.clientWidth{if(!e)return;function c(){r.current=!0}return document.addEventListener("mousedown",c,!0),document.addEventListener("touchstart",c,!0),()=>{document.removeEventListener("mousedown",c,!0),document.removeEventListener("touchstart",c,!0),r.current=!1}},[e]);const a=X(c=>{if(!r.current)return;const l=o.current;o.current=!1;const d=jt(s.current);if(!s.current||"clientX"in c&&Sr(c,d))return;if(n.current){n.current=!1;return}let y;c.composedPath?y=c.composedPath().indexOf(s.current)>-1:y=!d.documentElement.contains(c.target)||s.current.contains(c.target),!y&&!l&&t(c)}),i=()=>{o.current=!0};return b.useEffect(()=>{if(e){const c=jt(s.current),l=()=>{n.current=!0};return c.addEventListener("touchstart",a),c.addEventListener("touchmove",l),()=>{c.removeEventListener("touchstart",a),c.removeEventListener("touchmove",l)}}},[e,a]),b.useEffect(()=>{if(e){const c=jt(s.current);return c.addEventListener("click",a),()=>{c.removeEventListener("click",a),o.current=!1}}},[e,a]),[s,i,i]}const Mr=b.forwardRef((e,t)=>{const{PaperComponent:n,popperPlacement:o,ownerState:s,children:r,paperSlotProps:a,paperClasses:i,onPaperClick:c,onPaperTouchStart:l}=e,d=re(e,Dr),y=m({},s,{placement:o}),f=Pe({elementType:n,externalSlotProps:a,additionalProps:{tabIndex:-1,elevation:8,ref:t},className:i,ownerState:y});return p.jsx(n,m({},d,f,{onClick:h=>{var P;c(h),(P=f.onClick)==null||P.call(f,h)},onTouchStart:h=>{var P;l(h),(P=f.onTouchStart)==null||P.call(f,h)},ownerState:y,children:r}))});function Vr(e){var t,n,o,s;const r=pe({props:e,name:"MuiPickersPopper"}),{anchorEl:a,children:i,containerRef:c=null,shouldRestoreFocus:l,onBlur:d,onDismiss:y,open:f,role:h,placement:P,slots:g,slotProps:C,reduceAnimations:D}=r;b.useEffect(()=>{function B(G){f&&(G.key==="Escape"||G.key==="Esc")&&y()}return document.addEventListener("keydown",B),()=>{document.removeEventListener("keydown",B)}},[y,f]);const v=b.useRef(null);b.useEffect(()=>{h==="tooltip"||l&&!l()||(f?v.current=St(document):v.current&&v.current instanceof HTMLElement&&setTimeout(()=>{v.current instanceof HTMLElement&&v.current.focus()}))},[f,h,l]);const[w,S,x]=Tr(f,d??y),k=b.useRef(null),$=Ee(k,c),I=Ee($,w),T=r,O=wr(T),F=Xn(),j=D??F,N=B=>{B.key==="Escape"&&(B.stopPropagation(),y())},V=((t=g==null?void 0:g.desktopTransition)!=null?t:j)?Mt:Ho,M=(n=g==null?void 0:g.desktopTrapFocus)!=null?n:zo,z=(o=g==null?void 0:g.desktopPaper)!=null?o:kr,q=(s=g==null?void 0:g.popper)!=null?s:Pr,W=Pe({elementType:q,externalSlotProps:C==null?void 0:C.popper,additionalProps:{transition:!0,role:h,open:f,anchorEl:a,placement:P,onKeyDown:N},className:O.root,ownerState:r});return p.jsx(q,m({},W,{children:({TransitionProps:B,placement:G})=>p.jsx(M,m({open:f,disableAutoFocus:!0,disableRestoreFocus:!0,disableEnforceFocus:h==="tooltip",isEnabled:()=>!0},C==null?void 0:C.desktopTrapFocus,{children:p.jsx(V,m({},B,C==null?void 0:C.desktopTransition,{children:p.jsx(Mr,{PaperComponent:z,ownerState:T,popperPlacement:G,ref:I,onPaperClick:S,onPaperTouchStart:x,paperClasses:O.paper,paperSlotProps:C==null?void 0:C.desktopPaper,children:i})}))}))}))}function Jn(e){return ve("MuiPickersToolbar",e)}ye("MuiPickersToolbar",["root","content"]);const Ir=e=>{const{classes:t,isLandscape:n}=e;return ge({root:["root"],content:["content"],penIconButton:["penIconButton",n&&"penIconButtonLandscape"]},Jn,t)},Rr=Y("div",{name:"MuiPickersToolbar",slot:"Root",overridesResolver:(e,t)=>t.root})(({theme:e,ownerState:t})=>m({display:"flex",flexDirection:"column",alignItems:"flex-start",justifyContent:"space-between",padding:e.spacing(2,3)},t.isLandscape&&{height:"auto",maxWidth:160,padding:16,justifyContent:"flex-start",flexWrap:"wrap"})),Fr=Y("div",{name:"MuiPickersToolbar",slot:"Content",overridesResolver:(e,t)=>t.content})(({ownerState:e})=>{var t;return{display:"flex",flexWrap:"wrap",width:"100%",justifyContent:e.isLandscape?"flex-start":"space-between",flexDirection:e.isLandscape?(t=e.landscapeDirection)!=null?t:"column":"row",flex:1,alignItems:e.isLandscape?"flex-start":"center"}}),Ar=b.forwardRef(function(t,n){const o=pe({props:t,name:"MuiPickersToolbar"}),{children:s,className:r,toolbarTitle:a,hidden:i,titleId:c}=o,l=o,d=Ir(l);return i?null:p.jsxs(Rr,{ref:n,className:be(d.root,r),ownerState:l,children:[p.jsx(Qe,{color:"text.secondary",variant:"overline",id:c,children:a}),p.jsx(Fr,{className:d.content,ownerState:l,children:s})]})});function $r(e){return ve("MuiPickersToolbarText",e)}const yn=ye("MuiPickersToolbarText",["root","selected"]),Or=["className","selected","value"],Nr=e=>{const{classes:t,selected:n}=e;return ge({root:["root",n&&"selected"]},$r,t)},Lr=Y(Qe,{name:"MuiPickersToolbarText",slot:"Root",overridesResolver:(e,t)=>[t.root,{[`&.${yn.selected}`]:t.selected}]})(({theme:e})=>({transition:e.transitions.create("color"),color:(e.vars||e).palette.text.secondary,[`&.${yn.selected}`]:{color:(e.vars||e).palette.text.primary}})),eo=b.forwardRef(function(t,n){const o=pe({props:t,name:"MuiPickersToolbarText"}),{className:s,value:r}=o,a=re(o,Or),i=Nr(o);return p.jsx(Lr,m({ref:n,className:be(s,i.root),component:"span"},a,{children:r}))}),Er=["align","className","selected","typographyClassName","value","variant","width"],jr=e=>{const{classes:t}=e;return ge({root:["root"]},Jn,t)},_r=Y(mt,{name:"MuiPickersToolbarButton",slot:"Root",overridesResolver:(e,t)=>t.root})({padding:0,minWidth:16,textTransform:"none"}),Be=b.forwardRef(function(t,n){const o=pe({props:t,name:"MuiPickersToolbarButton"}),{align:s,className:r,selected:a,typographyClassName:i,value:c,variant:l,width:d}=o,y=re(o,Er),f=jr(o);return p.jsx(_r,m({variant:"text",ref:n,className:be(r,f.root)},d?{sx:{width:d}}:{},y,{children:p.jsx(eo,{align:s,className:i,variant:l,value:c,selected:a})}))}),Br=({open:e,onOpen:t,onClose:n})=>{const o=b.useRef(typeof e=="boolean").current,[s,r]=b.useState(!1);b.useEffect(()=>{if(o){if(typeof e!="boolean")throw new Error("You must not mix controlling and uncontrolled mode for `open` prop");r(e)}},[o,e]);const a=b.useCallback(i=>{o||r(i),i&&t&&t(),!i&&n&&n()},[o,t,n]);return{isOpen:s,setIsOpen:a}},Wr=e=>{const{action:t,hasChanged:n,dateState:o,isControlled:s}=e,r=!s&&!o.hasBeenModifiedSinceMount;return t.name==="setValueFromField"?!0:t.name==="setValueFromAction"?r&&["accept","today","clear"].includes(t.pickerAction)?!0:n(o.lastPublishedValue):t.name==="setValueFromView"&&t.selectionState!=="shallow"||t.name==="setValueFromShortcut"?r?!0:n(o.lastPublishedValue):!1},Hr=e=>{const{action:t,hasChanged:n,dateState:o,isControlled:s,closeOnSelect:r}=e,a=!s&&!o.hasBeenModifiedSinceMount;return t.name==="setValueFromAction"?a&&["accept","today","clear"].includes(t.pickerAction)?!0:n(o.lastCommittedValue):t.name==="setValueFromView"&&t.selectionState==="finish"&&r?a?!0:n(o.lastCommittedValue):t.name==="setValueFromShortcut"?t.changeImportance==="accept"&&n(o.lastCommittedValue):!1},zr=e=>{const{action:t,closeOnSelect:n}=e;return t.name==="setValueFromAction"?!0:t.name==="setValueFromView"?t.selectionState==="finish"&&n:t.name==="setValueFromShortcut"?t.changeImportance==="accept":!1},Ur=({props:e,valueManager:t,valueType:n,wrapperVariant:o,validator:s})=>{const{onAccept:r,onChange:a,value:i,defaultValue:c,closeOnSelect:l=o==="desktop",selectedSections:d,onSelectedSectionsChange:y,timezone:f}=e,{current:h}=b.useRef(c),{current:P}=b.useRef(i!==void 0),g=fe(),C=Ze(),[D,v]=ze({controlled:d,default:null,name:"usePickerValue",state:"selectedSections"}),{isOpen:w,setIsOpen:S}=Br(e),[x,k]=b.useState(()=>{let L;return i!==void 0?L=i:h!==void 0?L=h:L=t.emptyValue,{draft:L,lastPublishedValue:L,lastCommittedValue:L,lastControlledValue:i,hasBeenModifiedSinceMount:!1}}),{timezone:$,handleValueChange:I}=Qt({timezone:f,value:i,defaultValue:h,onChange:a,valueManager:t});Yn(m({},e,{value:x.draft,timezone:$}),s,t.isSameError,t.defaultErrorState);const T=X(L=>{const ee={action:L,dateState:x,hasChanged:Z=>!t.areValuesEqual(g,L.value,Z),isControlled:P,closeOnSelect:l},ue=Wr(ee),le=Hr(ee),K=zr(ee);if(k(Z=>m({},Z,{draft:L.value,lastPublishedValue:ue?L.value:Z.lastPublishedValue,lastCommittedValue:le?L.value:Z.lastCommittedValue,hasBeenModifiedSinceMount:!0})),ue){const _={validationError:L.name==="setValueFromField"?L.context.validationError:s({adapter:C,value:L.value,props:m({},e,{value:L.value,timezone:$})})};L.name==="setValueFromShortcut"&&L.shortcut!=null&&(_.shortcut=L.shortcut),I(L.value,_)}le&&r&&r(L.value),K&&S(!1)});if(i!==void 0&&(x.lastControlledValue===void 0||!t.areValuesEqual(g,x.lastControlledValue,i))){const L=t.areValuesEqual(g,x.draft,i);k(ee=>m({},ee,{lastControlledValue:i},L?{}:{lastCommittedValue:i,lastPublishedValue:i,draft:i,hasBeenModifiedSinceMount:!0}))}const O=X(()=>{T({value:t.emptyValue,name:"setValueFromAction",pickerAction:"clear"})}),F=X(()=>{T({value:x.lastPublishedValue,name:"setValueFromAction",pickerAction:"accept"})}),j=X(()=>{T({value:x.lastPublishedValue,name:"setValueFromAction",pickerAction:"dismiss"})}),N=X(()=>{T({value:x.lastCommittedValue,name:"setValueFromAction",pickerAction:"cancel"})}),V=X(()=>{T({value:t.getTodayValue(g,$,n),name:"setValueFromAction",pickerAction:"today"})}),M=X(()=>S(!0)),z=X(()=>S(!1)),q=X((L,ee="partial")=>T({name:"setValueFromView",value:L,selectionState:ee})),W=X((L,ee,ue)=>T({name:"setValueFromShortcut",value:L,changeImportance:ee??"accept",shortcut:ue})),B=X((L,ee)=>T({name:"setValueFromField",value:L,context:ee})),G=X(L=>{v(L),y==null||y(L)}),te={onClear:O,onAccept:F,onDismiss:j,onCancel:N,onSetToday:V,onOpen:M,onClose:z},ae={value:x.draft,onChange:B,selectedSections:D,onSelectedSectionsChange:G},ce=b.useMemo(()=>t.cleanValue(g,x.draft),[g,t,x.draft]),U={value:ce,onChange:q,onClose:z,open:w,onSelectedSectionsChange:G},Q=m({},te,{value:ce,onChange:q,onSelectShortcut:W,isValid:L=>{const ee=s({adapter:C,value:L,props:m({},e,{value:L,timezone:$})});return!t.hasError(ee)}});return{open:w,fieldProps:ae,viewProps:U,layoutProps:Q,actions:te}};function xt({onChange:e,onViewChange:t,openTo:n,view:o,views:s,autoFocus:r,focusedView:a,onFocusedViewChange:i}){var c,l;const d=b.useRef(n),y=b.useRef(s),f=b.useRef(s.includes(n)?n:s[0]),[h,P]=ze({name:"useViews",state:"view",controlled:o,default:f.current}),g=b.useRef(r?h:null),[C,D]=ze({name:"useViews",state:"focusedView",controlled:a,default:g.current});b.useEffect(()=>{(d.current&&d.current!==n||y.current&&y.current.some(O=>!s.includes(O)))&&(P(s.includes(n)?n:s[0]),y.current=s,d.current=n)},[n,P,h,s]);const v=s.indexOf(h),w=(c=s[v-1])!=null?c:null,S=(l=s[v+1])!=null?l:null,x=X((O,F)=>{D(F?O:j=>O===j?null:j),i==null||i(O,F)}),k=X(O=>{O!==h&&(P(O),x(O,!0),t&&t(O))}),$=X(()=>{S&&k(S),x(S,!0)}),I=X((O,F,j)=>{const N=F==="finish",V=j?s.indexOf(j){e(O,F?"partial":"finish",j),F&&(k(F),x(F,!0))});return{view:h,setView:k,focusedView:C,setFocusedView:x,nextView:S,previousView:w,defaultView:f.current,goToNextView:$,setValueAndGoToNextView:I,setValueAndGoToView:T}}const Yr=["className","sx"],Gr=({props:e,propsFromPickerValue:t,additionalViewProps:n,inputRef:o,autoFocusView:s})=>{const{onChange:r,open:a,onSelectedSectionsChange:i,onClose:c}=t,{views:l,openTo:d,onViewChange:y,disableOpenPicker:f,viewRenderers:h,timezone:P}=e,g=re(e,Yr),{view:C,setView:D,defaultView:v,focusedView:w,setFocusedView:S,setValueAndGoToNextView:x}=xt({view:void 0,views:l,openTo:d,onChange:r,onViewChange:y,autoFocus:s}),{hasUIView:k,viewModeLookup:$}=b.useMemo(()=>l.reduce((V,M)=>{let z;return f?z="field":h[M]!=null?z="UI":z="field",V.viewModeLookup[M]=z,z==="UI"&&(V.hasUIView=!0),V},{hasUIView:!1,viewModeLookup:{}}),[f,h,l]),I=b.useMemo(()=>l.reduce((V,M)=>h[M]!=null&&st(M)?V+1:V,0),[h,l]),T=$[C],O=X(()=>T==="UI"),[F,j]=b.useState(T==="UI"?C:null);return F!==C&&$[C]==="UI"&&j(C),He(()=>{T==="field"&&a&&(c(),setTimeout(()=>{o==null||o.current.focus(),i(C)}))},[C]),He(()=>{if(!a)return;let V=C;T==="field"&&F!=null&&(V=F),V!==v&&$[V]==="UI"&&$[v]==="UI"&&(V=v),V!==C&&D(V),S(V,!0)},[a]),{hasUIView:k,shouldRestoreFocus:O,layoutProps:{views:l,view:F,onViewChange:D},renderCurrentView:()=>{if(F==null)return null;const V=h[F];return V==null?null:V(m({},g,n,t,{views:l,timezone:P,onChange:x,view:F,onViewChange:D,focusedView:w,onFocusedViewChange:S,showViewSwitcher:I>1,timeViewsCount:I}))}}};function vn(){return typeof window>"u"?"portrait":window.screen&&window.screen.orientation&&window.screen.orientation.angle?Math.abs(window.screen.orientation.angle)===90?"landscape":"portrait":window.orientation&&Math.abs(Number(window.orientation))===90?"landscape":"portrait"}const Kr=(e,t)=>{const[n,o]=b.useState(vn);return He(()=>{const r=()=>{o(vn())};return window.addEventListener("orientationchange",r),()=>{window.removeEventListener("orientationchange",r)}},[]),zs(e,["hours","minutes","seconds"])?!1:(t||n)==="landscape"},qr=({props:e,propsFromPickerValue:t,propsFromPickerViews:n,wrapperVariant:o})=>{const{orientation:s}=e,r=Kr(n.views,s);return{layoutProps:m({},n,t,{isLandscape:r,wrapperVariant:o,disabled:e.disabled,readOnly:e.readOnly})}};Ro(["The `renderInput` prop has been removed in version 6.0 of the Date and Time Pickers.","You can replace it with the `textField` component slot in most cases.","For more information, please have a look at the migration guide (https://mui.com/x/migration/migration-pickers-v5/#input-renderer-required-in-v5)."]);const to=({props:e,valueManager:t,valueType:n,wrapperVariant:o,inputRef:s,additionalViewProps:r,validator:a,autoFocusView:i})=>{const c=Ur({props:e,valueManager:t,valueType:n,wrapperVariant:o,validator:a}),l=Gr({props:e,inputRef:s,additionalViewProps:r,autoFocusView:i,propsFromPickerValue:c.viewProps}),d=qr({props:e,wrapperVariant:o,propsFromPickerValue:c.layoutProps,propsFromPickerViews:l.layoutProps});return{open:c.open,actions:c.actions,fieldProps:c.fieldProps,renderCurrentView:l.renderCurrentView,hasUIView:l.hasUIView,shouldRestoreFocus:l.shouldRestoreFocus,layoutProps:d.layoutProps}};function no(e){return ve("MuiPickersLayout",e)}const _t=ye("MuiPickersLayout",["root","landscape","contentWrapper","toolbar","actionBar","shortcuts"]),Qr=["onAccept","onClear","onCancel","onSetToday","actions"];function Zr(e){const{onAccept:t,onClear:n,onCancel:o,onSetToday:s,actions:r}=e,a=re(e,Qr),i=Me();if(r==null||r.length===0)return null;const c=r==null?void 0:r.map(l=>{switch(l){case"clear":return p.jsx(mt,{onClick:n,children:i.clearButtonLabel},l);case"cancel":return p.jsx(mt,{onClick:o,children:i.cancelButtonLabel},l);case"accept":return p.jsx(mt,{onClick:t,children:i.okButtonLabel},l);case"today":return p.jsx(mt,{onClick:s,children:i.todayButtonLabel},l);default:return null}});return p.jsx($o,m({},a,{children:c}))}const Xr=["items","changeImportance","isLandscape","onChange","isValid"],Jr=["getValue"];function ea(e){const{items:t,changeImportance:n,onChange:o,isValid:s}=e,r=re(e,Xr);if(t==null||t.length===0)return null;const a=t.map(i=>{let{getValue:c}=i,l=re(i,Jr);const d=c({isValid:s});return{label:l.label,onClick:()=>{o(d,n,l)},disabled:!s(d)}});return p.jsx(Uo,m({dense:!0,sx:[{maxHeight:Ft,maxWidth:200,overflow:"auto"},...Array.isArray(r.sx)?r.sx:[r.sx]]},r,{children:a.map(i=>p.jsx(bs,{children:p.jsx(qo,m({},i))},i.label))}))}const Xt=e=>{if(e!==void 0)return Object.keys(e).reduce((t,n)=>m({},t,{[`${n.slice(0,1).toLowerCase()}${n.slice(1)}`]:e[n]}),{})};function ta(e){return e.view!==null}const na=e=>{const{classes:t,isLandscape:n}=e;return ge({root:["root",n&&"landscape"],contentWrapper:["contentWrapper"],toolbar:["toolbar"],actionBar:["actionBar"],tabs:["tabs"],landscape:["landscape"],shortcuts:["shortcuts"]},no,t)},oa=e=>{var t,n;const{wrapperVariant:o,onAccept:s,onClear:r,onCancel:a,onSetToday:i,view:c,views:l,onViewChange:d,value:y,onChange:f,onSelectShortcut:h,isValid:P,isLandscape:g,disabled:C,readOnly:D,children:v,components:w,componentsProps:S,slots:x,slotProps:k}=e,$=x??Xt(w),I=k??S,T=na(e),O=(t=$==null?void 0:$.actionBar)!=null?t:Zr,F=Pe({elementType:O,externalSlotProps:I==null?void 0:I.actionBar,additionalProps:{onAccept:s,onClear:r,onCancel:a,onSetToday:i,actions:o==="desktop"?[]:["cancel","accept"],className:T.actionBar},ownerState:m({},e,{wrapperVariant:o})}),j=p.jsx(O,m({},F)),N=$==null?void 0:$.toolbar,V=Pe({elementType:N,externalSlotProps:I==null?void 0:I.toolbar,additionalProps:{isLandscape:g,onChange:f,value:y,view:c,onViewChange:d,views:l,disabled:C,readOnly:D,className:T.toolbar},ownerState:m({},e,{wrapperVariant:o})}),M=ta(V)&&N?p.jsx(N,m({},V)):null,z=v,q=$==null?void 0:$.tabs,W=c&&q?p.jsx(q,m({view:c,onViewChange:d},I==null?void 0:I.tabs)):null,B=(n=$==null?void 0:$.shortcuts)!=null?n:ea,G=Pe({elementType:B,externalSlotProps:I==null?void 0:I.shortcuts,additionalProps:{isValid:P,isLandscape:g,onChange:h,className:T.shortcuts},ownerState:{isValid:P,isLandscape:g,onChange:h,className:T.shortcuts,wrapperVariant:o}}),te=c&&B?p.jsx(B,m({},G)):null;return{toolbar:M,content:z,tabs:W,actionBar:j,shortcuts:te}},sa=oa,ra=e=>{const{isLandscape:t,classes:n}=e;return ge({root:["root",t&&"landscape"],contentWrapper:["contentWrapper"]},no,n)},oo=Y("div",{name:"MuiPickersLayout",slot:"Root",overridesResolver:(e,t)=>t.root})(({theme:e,ownerState:t})=>({display:"grid",gridAutoColumns:"max-content auto max-content",gridAutoRows:"max-content auto max-content",[`& .${_t.toolbar}`]:t.isLandscape?{gridColumn:e.direction==="rtl"?3:1,gridRow:"2 / 3"}:{gridColumn:"2 / 4",gridRow:1},[`.${_t.shortcuts}`]:t.isLandscape?{gridColumn:"2 / 4",gridRow:1}:{gridColumn:e.direction==="rtl"?3:1,gridRow:"2 / 3"},[`& .${_t.actionBar}`]:{gridColumn:"1 / 4",gridRow:3}}));oo.propTypes={as:u.elementType,ownerState:u.shape({isLandscape:u.bool.isRequired}).isRequired,sx:u.oneOfType([u.arrayOf(u.oneOfType([u.func,u.object,u.bool])),u.func,u.object])};const aa=Y("div",{name:"MuiPickersLayout",slot:"ContentWrapper",overridesResolver:(e,t)=>t.contentWrapper})({gridColumn:2,gridRow:2,display:"flex",flexDirection:"column"}),so=function(t){const n=pe({props:t,name:"MuiPickersLayout"}),{toolbar:o,content:s,tabs:r,actionBar:a,shortcuts:i}=sa(n),{sx:c,className:l,isLandscape:d,ref:y,wrapperVariant:f}=n,h=n,P=ra(h);return p.jsxs(oo,{ref:y,sx:c,className:be(l,P.root),ownerState:h,children:[d?i:o,d?o:i,p.jsx(aa,{className:P.contentWrapper,children:f==="desktop"?p.jsxs(b.Fragment,{children:[s,r]}):p.jsxs(b.Fragment,{children:[r,s]})}),a]})};function ia(e,{disableFuture:t,maxDate:n,timezone:o}){const s=fe();return b.useMemo(()=>{const r=s.dateWithTimezone(void 0,o),a=s.startOfMonth(t&&s.isBefore(r,n)?r:n);return!s.isAfter(a,e)},[t,n,e,s,o])}function la(e,{disablePast:t,minDate:n,timezone:o}){const s=fe();return b.useMemo(()=>{const r=s.dateWithTimezone(void 0,o),a=s.startOfMonth(t&&s.isAfter(r,n)?r:n);return!s.isBefore(a,e)},[t,n,e,s,o])}function Jt(e,t,n,o){const s=fe(),r=ws(e,s),a=b.useCallback(i=>{const c=e==null?null:Ps(e,i,!!t,s);n(c,o??"partial")},[t,e,n,o,s]);return{meridiemMode:r,handleMeridiemChange:a}}function ca(e){return ve("MuiPickersDay",e)}const Ge=ye("MuiPickersDay",["root","dayWithMargin","dayOutsideMonth","hiddenDaySpacingFiller","today","selected","disabled"]),ua=["autoFocus","className","day","disabled","disableHighlightToday","disableMargin","hidden","isAnimating","onClick","onDaySelect","onFocus","onBlur","onKeyDown","onMouseDown","onMouseEnter","outsideCurrentMonth","selected","showDaysOutsideCurrentMonth","children","today","isFirstVisibleCell","isLastVisibleCell"],da=e=>{const{selected:t,disableMargin:n,disableHighlightToday:o,today:s,disabled:r,outsideCurrentMonth:a,showDaysOutsideCurrentMonth:i,classes:c}=e,l=a&&!i;return ge({root:["root",t&&!l&&"selected",r&&"disabled",!n&&"dayWithMargin",!o&&s&&"today",a&&i&&"dayOutsideMonth",l&&"hiddenDaySpacingFiller"],hiddenDaySpacingFiller:["hiddenDaySpacingFiller"]},ca,c)},ro=({theme:e,ownerState:t})=>m({},e.typography.caption,{width:gt,height:gt,borderRadius:"50%",padding:0,backgroundColor:"transparent",transition:e.transitions.create("background-color",{duration:e.transitions.duration.short}),color:(e.vars||e).palette.text.primary,"@media (pointer: fine)":{"&:hover":{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.hoverOpacity})`:Se(e.palette.primary.main,e.palette.action.hoverOpacity)}},"&:focus":{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.focusOpacity})`:Se(e.palette.primary.main,e.palette.action.focusOpacity),[`&.${Ge.selected}`]:{willChange:"background-color",backgroundColor:(e.vars||e).palette.primary.dark}},[`&.${Ge.selected}`]:{color:(e.vars||e).palette.primary.contrastText,backgroundColor:(e.vars||e).palette.primary.main,fontWeight:e.typography.fontWeightMedium,"&:hover":{willChange:"background-color",backgroundColor:(e.vars||e).palette.primary.dark}},[`&.${Ge.disabled}:not(.${Ge.selected})`]:{color:(e.vars||e).palette.text.disabled},[`&.${Ge.disabled}&.${Ge.selected}`]:{opacity:.6}},!t.disableMargin&&{margin:`0 ${It}px`},t.outsideCurrentMonth&&t.showDaysOutsideCurrentMonth&&{color:(e.vars||e).palette.text.secondary},!t.disableHighlightToday&&t.today&&{[`&:not(.${Ge.selected})`]:{border:`1px solid ${(e.vars||e).palette.text.secondary}`}}),ao=(e,t)=>{const{ownerState:n}=e;return[t.root,!n.disableMargin&&t.dayWithMargin,!n.disableHighlightToday&&n.today&&t.today,!n.outsideCurrentMonth&&n.showDaysOutsideCurrentMonth&&t.dayOutsideMonth,n.outsideCurrentMonth&&!n.showDaysOutsideCurrentMonth&&t.hiddenDaySpacingFiller]},ma=Y(Mn,{name:"MuiPickersDay",slot:"Root",overridesResolver:ao})(ro),pa=Y("div",{name:"MuiPickersDay",slot:"Root",overridesResolver:ao})(({theme:e,ownerState:t})=>m({},ro({theme:e,ownerState:t}),{opacity:0,pointerEvents:"none"})),dt=()=>{},fa=b.forwardRef(function(t,n){const o=pe({props:t,name:"MuiPickersDay"}),{autoFocus:s=!1,className:r,day:a,disabled:i=!1,disableHighlightToday:c=!1,disableMargin:l=!1,isAnimating:d,onClick:y,onDaySelect:f,onFocus:h=dt,onBlur:P=dt,onKeyDown:g=dt,onMouseDown:C=dt,onMouseEnter:D=dt,outsideCurrentMonth:v,selected:w=!1,showDaysOutsideCurrentMonth:S=!1,children:x,today:k=!1}=o,$=re(o,ua),I=m({},o,{autoFocus:s,disabled:i,disableHighlightToday:c,disableMargin:l,selected:w,showDaysOutsideCurrentMonth:S,today:k}),T=da(I),O=fe(),F=b.useRef(null),j=Ee(F,n);He(()=>{s&&!i&&!d&&!v&&F.current.focus()},[s,i,d,v]);const N=M=>{C(M),v&&M.preventDefault()},V=M=>{i||f(a),v&&M.currentTarget.focus(),y&&y(M)};return v&&!S?p.jsx(pa,{className:be(T.root,T.hiddenDaySpacingFiller,r),ownerState:I,role:$.role}):p.jsx(ma,m({className:be(T.root,r),ref:j,centerRipple:!0,disabled:i,tabIndex:w?0:-1,onKeyDown:M=>g(M,a),onFocus:M=>h(M,a),onBlur:M=>P(M,a),onMouseEnter:M=>D(M,a),onClick:V,onMouseDown:N},$,{ownerState:I,children:x||O.format(a,"dayOfMonth")}))}),ha=b.memo(fa),ga=e=>ve("MuiPickersSlideTransition",e),Ie=ye("MuiPickersSlideTransition",["root","slideEnter-left","slideEnter-right","slideEnterActive","slideExit","slideExitActiveLeft-left","slideExitActiveLeft-right"]),ba=["children","className","reduceAnimations","slideDirection","transKey","classes"],ya=e=>{const{classes:t,slideDirection:n}=e,o={root:["root"],exit:["slideExit"],enterActive:["slideEnterActive"],enter:[`slideEnter-${n}`],exitActive:[`slideExitActiveLeft-${n}`]};return ge(o,ga,t)},va=Y(Vn,{name:"MuiPickersSlideTransition",slot:"Root",overridesResolver:(e,t)=>[t.root,{[`.${Ie["slideEnter-left"]}`]:t["slideEnter-left"]},{[`.${Ie["slideEnter-right"]}`]:t["slideEnter-right"]},{[`.${Ie.slideEnterActive}`]:t.slideEnterActive},{[`.${Ie.slideExit}`]:t.slideExit},{[`.${Ie["slideExitActiveLeft-left"]}`]:t["slideExitActiveLeft-left"]},{[`.${Ie["slideExitActiveLeft-right"]}`]:t["slideExitActiveLeft-right"]}]})(({theme:e})=>{const t=e.transitions.create("transform",{duration:e.transitions.duration.complex,easing:"cubic-bezier(0.35, 0.8, 0.4, 1)"});return{display:"block",position:"relative",overflowX:"hidden","& > *":{position:"absolute",top:0,right:0,left:0},[`& .${Ie["slideEnter-left"]}`]:{willChange:"transform",transform:"translate(100%)",zIndex:1},[`& .${Ie["slideEnter-right"]}`]:{willChange:"transform",transform:"translate(-100%)",zIndex:1},[`& .${Ie.slideEnterActive}`]:{transform:"translate(0%)",transition:t},[`& .${Ie.slideExit}`]:{transform:"translate(0%)"},[`& .${Ie["slideExitActiveLeft-left"]}`]:{willChange:"transform",transform:"translate(-100%)",transition:t,zIndex:0},[`& .${Ie["slideExitActiveLeft-right"]}`]:{willChange:"transform",transform:"translate(100%)",transition:t,zIndex:0}}});function xa(e){const t=pe({props:e,name:"MuiPickersSlideTransition"}),{children:n,className:o,reduceAnimations:s,transKey:r}=t,a=re(t,ba),i=ya(t),c=qe();if(s)return p.jsx("div",{className:be(i.root,o),children:n});const l={exit:i.exit,enterActive:i.enterActive,enter:i.enter,exitActive:i.exitActive};return p.jsx(va,{className:be(i.root,o),childFactory:d=>b.cloneElement(d,{classNames:l}),role:"presentation",children:p.jsx(Oo,m({mountOnEnter:!0,unmountOnExit:!0,timeout:c.transitions.duration.complex,classNames:l},a,{children:n}),r)})}const io=({shouldDisableDate:e,shouldDisableMonth:t,shouldDisableYear:n,minDate:o,maxDate:s,disableFuture:r,disablePast:a,timezone:i})=>{const c=Ze();return b.useCallback(l=>Gn({adapter:c,value:l,props:{shouldDisableDate:e,shouldDisableMonth:t,shouldDisableYear:n,minDate:o,maxDate:s,disableFuture:r,disablePast:a,timezone:i}})!==null,[c,e,t,n,o,s,r,a,i])},Ca=e=>ve("MuiDayCalendar",e);ye("MuiDayCalendar",["root","header","weekDayLabel","loadingContainer","slideTransition","monthContainer","weekContainer","weekNumberLabel","weekNumber"]);const Da=["parentProps","day","focusableDay","selectedDays","isDateDisabled","currentMonthNumber","isViewFocused"],wa=["ownerState"],Pa=e=>{const{classes:t}=e;return ge({root:["root"],header:["header"],weekDayLabel:["weekDayLabel"],loadingContainer:["loadingContainer"],slideTransition:["slideTransition"],monthContainer:["monthContainer"],weekContainer:["weekContainer"],weekNumberLabel:["weekNumberLabel"],weekNumber:["weekNumber"]},Ca,t)},lo=(gt+It*2)*6,ka=Y("div",{name:"MuiDayCalendar",slot:"Root",overridesResolver:(e,t)=>t.root})({}),Sa=Y("div",{name:"MuiDayCalendar",slot:"Header",overridesResolver:(e,t)=>t.header})({display:"flex",justifyContent:"center",alignItems:"center"}),Ta=Y(Qe,{name:"MuiDayCalendar",slot:"WeekDayLabel",overridesResolver:(e,t)=>t.weekDayLabel})(({theme:e})=>({width:36,height:40,margin:"0 2px",textAlign:"center",display:"flex",justifyContent:"center",alignItems:"center",color:(e.vars||e).palette.text.secondary})),Ma=Y(Qe,{name:"MuiDayCalendar",slot:"WeekNumberLabel",overridesResolver:(e,t)=>t.weekNumberLabel})(({theme:e})=>({width:36,height:40,margin:"0 2px",textAlign:"center",display:"flex",justifyContent:"center",alignItems:"center",color:e.palette.text.disabled})),Va=Y(Qe,{name:"MuiDayCalendar",slot:"WeekNumber",overridesResolver:(e,t)=>t.weekNumber})(({theme:e})=>m({},e.typography.caption,{width:gt,height:gt,padding:0,margin:`0 ${It}px`,color:e.palette.text.disabled,fontSize:"0.75rem",alignItems:"center",justifyContent:"center",display:"inline-flex"})),Ia=Y("div",{name:"MuiDayCalendar",slot:"LoadingContainer",overridesResolver:(e,t)=>t.loadingContainer})({display:"flex",justifyContent:"center",alignItems:"center",minHeight:lo}),Ra=Y(xa,{name:"MuiDayCalendar",slot:"SlideTransition",overridesResolver:(e,t)=>t.slideTransition})({minHeight:lo}),Fa=Y("div",{name:"MuiDayCalendar",slot:"MonthContainer",overridesResolver:(e,t)=>t.monthContainer})({overflow:"hidden"}),Aa=Y("div",{name:"MuiDayCalendar",slot:"WeekContainer",overridesResolver:(e,t)=>t.weekContainer})({margin:`${It}px 0`,display:"flex",justifyContent:"center"});function $a(e){var t,n,o;let{parentProps:s,day:r,focusableDay:a,selectedDays:i,isDateDisabled:c,currentMonthNumber:l,isViewFocused:d}=e,y=re(e,Da);const{disabled:f,disableHighlightToday:h,isMonthSwitchingAnimating:P,showDaysOutsideCurrentMonth:g,components:C,componentsProps:D,slots:v,slotProps:w,timezone:S}=s,x=fe(),k=Ye(S),$=a!==null&&x.isSameDay(r,a),I=i.some(q=>x.isSameDay(q,r)),T=x.isSameDay(r,k),O=(t=(n=v==null?void 0:v.day)!=null?n:C==null?void 0:C.Day)!=null?t:ha,F=Pe({elementType:O,externalSlotProps:(o=w==null?void 0:w.day)!=null?o:D==null?void 0:D.day,additionalProps:m({disableHighlightToday:h,showDaysOutsideCurrentMonth:g,role:"gridcell",isAnimating:P,"data-timestamp":x.toJsDate(r).valueOf()},y),ownerState:m({},s,{day:r,selected:I})}),j=re(F,wa),N=b.useMemo(()=>f||c(r),[f,c,r]),V=b.useMemo(()=>x.getMonth(r)!==l,[x,r,l]),M=b.useMemo(()=>{const q=x.startOfMonth(x.setMonth(r,l));return g?x.isSameDay(r,x.startOfWeek(q)):x.isSameDay(r,q)},[l,r,g,x]),z=b.useMemo(()=>{const q=x.endOfMonth(x.setMonth(r,l));return g?x.isSameDay(r,x.endOfWeek(q)):x.isSameDay(r,q)},[l,r,g,x]);return p.jsx(O,m({},j,{day:r,disabled:N,autoFocus:d&&$,today:T,outsideCurrentMonth:V,isFirstVisibleCell:M,isLastVisibleCell:z,selected:I,tabIndex:$?0:-1,"aria-selected":I,"aria-current":T?"date":void 0}))}function Oa(e){const t=pe({props:e,name:"MuiDayCalendar"}),{onFocusedDayChange:n,className:o,currentMonth:s,selectedDays:r,focusedDay:a,loading:i,onSelectedDaysChange:c,onMonthSwitchingAnimationEnd:l,readOnly:d,reduceAnimations:y,renderLoading:f=()=>p.jsx("span",{children:"..."}),slideDirection:h,TransitionProps:P,disablePast:g,disableFuture:C,minDate:D,maxDate:v,shouldDisableDate:w,shouldDisableMonth:S,shouldDisableYear:x,dayOfWeekFormatter:k,hasFocus:$,onFocusedViewChange:I,gridLabelId:T,displayWeekNumber:O,fixedWeekNumber:F,autoFocus:j,timezone:N}=t,V=Ye(N),M=fe(),z=Pa(t),W=qe().direction==="rtl",B=k||((J,oe)=>M.format(oe,"weekdayShort").charAt(0).toUpperCase()),G=io({shouldDisableDate:w,shouldDisableMonth:S,shouldDisableYear:x,minDate:D,maxDate:v,disablePast:g,disableFuture:C,timezone:N}),te=Me(),[ae,ce]=ze({name:"DayCalendar",state:"hasFocus",controlled:$,default:j??!1}),[U,H]=b.useState(()=>a||V),Q=X(J=>{d||c(J)}),L=J=>{G(J)||(n(J),H(J),I==null||I(!0),ce(!0))},ee=X((J,oe)=>{switch(J.key){case"ArrowUp":L(M.addDays(oe,-7)),J.preventDefault();break;case"ArrowDown":L(M.addDays(oe,7)),J.preventDefault();break;case"ArrowLeft":{const R=M.addDays(oe,W?1:-1),A=M.addMonths(oe,W?1:-1),E=ft({utils:M,date:R,minDate:W?R:M.startOfMonth(A),maxDate:W?M.endOfMonth(A):R,isDateDisabled:G,timezone:N});L(E||R),J.preventDefault();break}case"ArrowRight":{const R=M.addDays(oe,W?-1:1),A=M.addMonths(oe,W?-1:1),E=ft({utils:M,date:R,minDate:W?M.startOfMonth(A):R,maxDate:W?R:M.endOfMonth(A),isDateDisabled:G,timezone:N});L(E||R),J.preventDefault();break}case"Home":L(M.startOfWeek(oe)),J.preventDefault();break;case"End":L(M.endOfWeek(oe)),J.preventDefault();break;case"PageUp":L(M.addMonths(oe,1)),J.preventDefault();break;case"PageDown":L(M.addMonths(oe,-1)),J.preventDefault();break}}),ue=X((J,oe)=>L(oe)),le=X((J,oe)=>{ae&&M.isSameDay(U,oe)&&(I==null||I(!1))}),K=M.getMonth(s),Z=b.useMemo(()=>r.filter(J=>!!J).map(J=>M.startOfDay(J)),[M,r]),_=K,ne=b.useMemo(()=>b.createRef(),[_]),me=M.startOfWeek(V),de=b.useMemo(()=>{const J=M.startOfMonth(s),oe=M.endOfMonth(s);return G(U)||M.isAfterDay(U,oe)||M.isBeforeDay(U,J)?ft({utils:M,date:U,minDate:J,maxDate:oe,disablePast:g,disableFuture:C,isDateDisabled:G,timezone:N}):U},[s,C,g,U,G,M,N]),ke=b.useMemo(()=>{const J=M.setTimezone(s,N),oe=M.getWeekArray(J);let R=M.addMonths(J,1);for(;F&&oe.length{oe.length{var R;const A=M.format(J,"weekdayShort").slice(0,2);return p.jsx(Ta,{variant:"caption",role:"columnheader","aria-label":M.format(M.addDays(me,oe),"weekday"),className:z.weekDayLabel,children:(R=B==null?void 0:B(A,J))!=null?R:A},A+oe.toString())})]}),i?p.jsx(Ia,{className:z.loadingContainer,children:f()}):p.jsx(Ra,m({transKey:_,onExited:l,reduceAnimations:y,slideDirection:h,className:be(o,z.slideTransition)},P,{nodeRef:ne,children:p.jsx(Fa,{ref:ne,role:"rowgroup",className:z.monthContainer,children:ke.map((J,oe)=>p.jsxs(Aa,{role:"row",className:z.weekContainer,"aria-rowindex":oe+1,children:[O&&p.jsx(Va,{className:z.weekNumber,role:"rowheader","aria-label":te.calendarWeekNumberAriaLabelText(M.getWeekNumber(J[0])),children:te.calendarWeekNumberText(M.getWeekNumber(J[0]))}),J.map((R,A)=>p.jsx($a,{parentProps:t,day:R,selectedDays:Z,focusableDay:de,onKeyDown:ee,onFocus:ue,onBlur:le,onDaySelect:Q,isDateDisabled:G,currentMonthNumber:K,isViewFocused:ae,"aria-colindex":A+1},R.toString()))]},`week-${J[0]}`))})}))]})}const Na=(e,t,n)=>(o,s)=>{switch(s.type){case"changeMonth":return m({},o,{slideDirection:s.direction,currentMonth:s.newMonth,isMonthSwitchingAnimating:!e});case"finishMonthSwitchingAnimation":return m({},o,{isMonthSwitchingAnimating:!1});case"changeFocusedDay":{if(o.focusedDay!=null&&s.focusedDay!=null&&n.isSameDay(s.focusedDay,o.focusedDay))return o;const r=s.focusedDay!=null&&!t&&!n.isSameMonth(o.currentMonth,s.focusedDay);return m({},o,{focusedDay:s.focusedDay,isMonthSwitchingAnimating:r&&!e&&!s.withoutMonthSwitchingAnimation,currentMonth:r?n.startOfMonth(s.focusedDay):o.currentMonth,slideDirection:s.focusedDay!=null&&n.isAfterDay(s.focusedDay,o.currentMonth)?"left":"right"})}default:throw new Error("missing support")}},La=e=>{const{value:t,referenceDate:n,defaultCalendarMonth:o,disableFuture:s,disablePast:r,disableSwitchToMonthOnDayFocus:a=!1,maxDate:i,minDate:c,onMonthChange:l,reduceAnimations:d,shouldDisableDate:y,timezone:f}=e,h=Ye(f),P=fe(),g=b.useRef(Na(!!d,a,P)).current,C=b.useMemo(()=>{let I=null;return n?I=n:o&&(I=P.startOfMonth(o)),Te.getInitialReferenceValue({value:t,utils:P,timezone:f,props:e,referenceDate:I,granularity:Ae.day})},[]),[D,v]=b.useReducer(g,{isMonthSwitchingAnimating:!1,focusedDay:t||h,currentMonth:P.startOfMonth(C),slideDirection:"left"}),w=b.useCallback(I=>{v(m({type:"changeMonth"},I)),l&&l(I.newMonth)},[l]),S=b.useCallback(I=>{const T=I;P.isSameMonth(T,D.currentMonth)||w({newMonth:P.startOfMonth(T),direction:P.isAfterDay(T,D.currentMonth)?"left":"right"})},[D.currentMonth,w,P]),x=io({shouldDisableDate:y,minDate:c,maxDate:i,disableFuture:s,disablePast:r,timezone:f}),k=b.useCallback(()=>{v({type:"finishMonthSwitchingAnimation"})},[]),$=X((I,T)=>{x(I)||v({type:"changeFocusedDay",focusedDay:I,withoutMonthSwitchingAnimation:T})});return{referenceDate:C,calendarState:D,changeMonth:S,changeFocusedDay:$,isDateDisabled:x,onMonthSwitchingAnimationEnd:k,handleChangeMonth:w}},Ea=["ownerState"],ja=({clearable:e,fieldProps:t,InputProps:n,onClear:o,slots:s,slotProps:r,components:a,componentsProps:i})=>{var c,l,d,y,f,h;const P=Me(),g=(c=(l=s==null?void 0:s.clearButton)!=null?l:a==null?void 0:a.ClearButton)!=null?c:at,C=Pe({elementType:g,externalSlotProps:(d=r==null?void 0:r.clearButton)!=null?d:i==null?void 0:i.clearButton,ownerState:{},className:"clearButton",additionalProps:{title:P.fieldClearLabel}}),D=re(C,Ea),v=(y=(f=s==null?void 0:s.clearIcon)!=null?f:a==null?void 0:a.ClearIcon)!=null?y:ir,w=Pe({elementType:v,externalSlotProps:(h=r==null?void 0:r.clearIcon)!=null?h:i==null?void 0:i.clearIcon,ownerState:{}}),S=m({},n,{endAdornment:e?p.jsxs(b.Fragment,{children:[p.jsx(Tn,{position:"end",sx:{marginRight:n!=null&&n.endAdornment?-1:-1.5},children:p.jsx(g,m({},D,{onClick:o,children:p.jsx(v,m({fontSize:"small"},w))}))}),n==null?void 0:n.endAdornment]}):n==null?void 0:n.endAdornment}),x=m({},t,{sx:[{"& .clearButton":{opacity:1},"@media (pointer: fine)":{"& .clearButton":{opacity:0},"&:hover, &:focus-within":{".clearButton":{opacity:1}}}},...Array.isArray(t.sx)?t.sx:[t.sx]]});return{InputProps:S,fieldProps:x}},_a=["components","componentsProps","slots","slotProps","InputProps","inputProps"],Ba=["inputRef"],Wa=["ref","onPaste","onKeyDown","inputMode","readOnly","clearable","onClear"],co=b.forwardRef(function(t,n){var o,s,r;const a=pe({props:t,name:"MuiDateTimeField"}),{components:i,componentsProps:c,slots:l,slotProps:d,InputProps:y,inputProps:f}=a,h=re(a,_a),P=a,g=(o=(s=l==null?void 0:l.textField)!=null?s:i==null?void 0:i.TextField)!=null?o:Yo,C=Pe({elementType:g,externalSlotProps:(r=d==null?void 0:d.textField)!=null?r:c==null?void 0:c.textField,externalForwardedProps:h,ownerState:P}),{inputRef:D}=C,v=re(C,Ba);v.inputProps=m({},f,v.inputProps),v.InputProps=m({},y,v.InputProps);const w=er({props:v,inputRef:D}),{ref:S,onPaste:x,onKeyDown:k,inputMode:$,readOnly:I,clearable:T,onClear:O}=w,F=re(w,Wa),{InputProps:j,fieldProps:N}=ja({onClear:O,clearable:T,fieldProps:F,InputProps:F.InputProps,slots:l,slotProps:d,components:i,componentsProps:c});return p.jsx(g,m({ref:n},N,{InputProps:m({},j,{readOnly:I}),inputProps:m({},F.inputProps,{inputMode:$,onPaste:x,onKeyDown:k,ref:S})}))});function Ha(e){return ve("MuiDateTimePickerTabs",e)}ye("MuiDateTimePickerTabs",["root"]);const za=e=>tt(e)?"date":"time",Ua=e=>e==="date"?"day":"hours",Ya=e=>{const{classes:t}=e;return ge({root:["root"]},Ha,t)},Ga=Y(_o,{name:"MuiDateTimePickerTabs",slot:"Root",overridesResolver:(e,t)=>t.root})(({theme:e})=>({boxShadow:`0 -1px 0 0 inset ${(e.vars||e).palette.divider}`,"&:last-child":{boxShadow:`0 1px 0 0 inset ${(e.vars||e).palette.divider}`,[`& .${Bo.indicator}`]:{bottom:"auto",top:0}}})),Ka=function(t){const n=pe({props:t,name:"MuiDateTimePickerTabs"}),{dateIcon:o=p.jsx(rr,{}),onViewChange:s,timeIcon:r=p.jsx(ar,{}),view:a,hidden:i=typeof window>"u"||window.innerHeight<667}=n,c=Me(),l=Ya(n),d=(y,f)=>{s(Ua(f))};return i?null:p.jsxs(Ga,{ownerState:n,variant:"fullWidth",value:za(a),onChange:d,className:l.root,children:[p.jsx(rn,{value:"date","aria-label":c.dateTableLabel,icon:p.jsx(b.Fragment,{children:o})}),p.jsx(rn,{value:"time","aria-label":c.timeTableLabel,icon:p.jsx(b.Fragment,{children:r})})]})};function qa(e){return ve("MuiDateTimePickerToolbar",e)}const Bt=ye("MuiDateTimePickerToolbar",["root","dateContainer","timeContainer","timeDigitsContainer","separator","timeLabelReverse","ampmSelection","ampmLandscape","ampmLabel"]),Qa=["ampm","ampmInClock","value","onChange","view","isLandscape","onViewChange","toolbarFormat","toolbarPlaceholder","views","disabled","readOnly","toolbarVariant"],Za=e=>{const{classes:t,theme:n,isLandscape:o}=e,s={root:["root"],dateContainer:["dateContainer"],timeContainer:["timeContainer",n.direction==="rtl"&&"timeLabelReverse"],timeDigitsContainer:["timeDigitsContainer",n.direction==="rtl"&&"timeLabelReverse"],separator:["separator"],ampmSelection:["ampmSelection",o&&"ampmLandscape"],ampmLabel:["ampmLabel"]};return ge(s,qa,t)},uo=Y(Ar,{name:"MuiDateTimePickerToolbar",slot:"Root",overridesResolver:(e,t)=>t.root})(({theme:e,ownerState:t})=>({paddingLeft:t.toolbarVariant==="desktop"&&!t.isLandscape?24:16,paddingRight:t.toolbarVariant==="desktop"&&!t.isLandscape?0:16,borderBottom:t.toolbarVariant==="desktop"?`1px solid ${(e.vars||e).palette.divider}`:void 0,borderRight:t.toolbarVariant==="desktop"&&t.isLandscape?`1px solid ${(e.vars||e).palette.divider}`:void 0,justifyContent:"space-around",position:"relative"}));uo.propTypes={as:u.elementType,classes:u.object,className:u.string,isLandscape:u.bool.isRequired,isMobileKeyboardViewOpen:u.bool,landscapeDirection:u.oneOf(["column","row"]),ownerState:u.object.isRequired,sx:u.oneOfType([u.arrayOf(u.oneOfType([u.func,u.object,u.bool])),u.func,u.object]),toggleMobileKeyboardView:u.func,toolbarTitle:u.node,viewType:u.oneOf(["date","time"])};const Xa=Y("div",{name:"MuiDateTimePickerToolbar",slot:"DateContainer",overridesResolver:(e,t)=>t.dateContainer})({display:"flex",flexDirection:"column",alignItems:"flex-start"}),mo=Y("div",{name:"MuiDateTimePickerToolbar",slot:"TimeContainer",overridesResolver:(e,t)=>t.timeContainer})(({theme:e,ownerState:t})=>{const n=t.isLandscape&&t.toolbarVariant!=="desktop"?"column":"row";return m({display:"flex",flexDirection:n},t.toolbarVariant==="desktop"&&m({},!t.isLandscape&&{gap:9,marginRight:4,alignSelf:"flex-end"}),e.direction==="rtl"&&{flexDirection:`${n}-reverse`})}),Ja=Y("div",{name:"MuiDateTimePickerToolbar",slot:"TimeDigitsContainer",overridesResolver:(e,t)=>t.timeDigitsContainer})(({theme:e,ownerState:t})=>m({display:"flex"},t.toolbarVariant==="desktop"&&{gap:1.5},e.direction==="rtl"&&{flexDirection:"row-reverse"}));mo.propTypes={as:u.elementType,ownerState:u.object.isRequired,sx:u.oneOfType([u.arrayOf(u.oneOfType([u.func,u.object,u.bool])),u.func,u.object])};const xn=Y(eo,{name:"MuiDateTimePickerToolbar",slot:"Separator",overridesResolver:(e,t)=>t.separator})(({ownerState:e})=>({margin:e.toolbarVariant==="desktop"?0:"0 4px 0 2px",cursor:"default"})),ei=Y("div",{name:"MuiDateTimePickerToolbar",slot:"AmPmSelection",overridesResolver:(e,t)=>[{[`.${Bt.ampmLabel}`]:t.ampmLabel},{[`&.${Bt.ampmLandscape}`]:t.ampmLandscape},t.ampmSelection]})(({ownerState:e})=>m({display:"flex",flexDirection:"column",marginRight:"auto",marginLeft:12},e.isLandscape&&{margin:"4px 0 auto",flexDirection:"row",justifyContent:"space-around",width:"100%"},{[`& .${Bt.ampmLabel}`]:{fontSize:17}}));function ti(e){const t=pe({props:e,name:"MuiDateTimePickerToolbar"}),{ampm:n,ampmInClock:o,value:s,onChange:r,view:a,isLandscape:i,onViewChange:c,toolbarFormat:l,toolbarPlaceholder:d="––",views:y,disabled:f,readOnly:h,toolbarVariant:P="mobile"}=t,g=re(t,Qa),C=t,D=fe(),{meridiemMode:v,handleMeridiemChange:w}=Jt(s,n,r),S=!!(n&&!o),x=P==="desktop",k=Me(),$=qe(),I=Za(m({},C,{theme:$})),T=F=>n?D.format(F,"hours12h"):D.format(F,"hours24h"),O=b.useMemo(()=>s?l?D.formatByString(s,l):D.format(s,"shortDate"):d,[s,l,d,D]);return p.jsxs(uo,m({toolbarTitle:k.dateTimePickerToolbarTitle,isLandscape:i,className:I.root},g,{ownerState:C,children:[p.jsxs(Xa,{className:I.dateContainer,ownerState:C,children:[y.includes("year")&&p.jsx(Be,{tabIndex:-1,variant:"subtitle1",onClick:()=>c("year"),selected:a==="year",value:s?D.format(s,"year"):"–"}),y.includes("day")&&p.jsx(Be,{tabIndex:-1,variant:x?"h5":"h4",onClick:()=>c("day"),selected:a==="day",value:O})]}),p.jsxs(mo,{className:I.timeContainer,ownerState:C,children:[p.jsxs(Ja,{className:I.timeDigitsContainer,ownerState:C,children:[y.includes("hours")&&p.jsx(Be,{variant:x?"h5":"h3",width:x&&!i?pt:void 0,onClick:()=>c("hours"),selected:a==="hours",value:s?T(s):"--"}),y.includes("minutes")&&p.jsxs(b.Fragment,{children:[p.jsx(xn,{variant:x?"h5":"h3",value:":",className:I.separator,ownerState:C}),p.jsx(Be,{variant:x?"h5":"h3",width:x&&!i?pt:void 0,onClick:()=>c("minutes"),selected:a==="minutes",value:s?D.format(s,"minutes"):"--"})]}),y.includes("seconds")&&p.jsxs(b.Fragment,{children:[p.jsx(xn,{variant:x?"h5":"h3",value:":",className:I.separator,ownerState:C}),p.jsx(Be,{variant:x?"h5":"h3",width:x&&!i?pt:void 0,onClick:()=>c("seconds"),selected:a==="seconds",value:s?D.format(s,"seconds"):"--"})]})]}),S&&!x&&p.jsxs(ei,{className:I.ampmSelection,ownerState:C,children:[p.jsx(Be,{variant:"subtitle2",selected:v==="am",typographyClassName:I.ampmLabel,value:je(D,"am"),onClick:h?void 0:()=>w("am"),disabled:f}),p.jsx(Be,{variant:"subtitle2",selected:v==="pm",typographyClassName:I.ampmLabel,value:je(D,"pm"),onClick:h?void 0:()=>w("pm"),disabled:f})]}),n&&x&&p.jsx(Be,{variant:"h5",onClick:()=>c("meridiem"),selected:a==="meridiem",value:s&&v?je(D,v):"--",width:pt})]})]}))}function po(e,t){var n,o,s,r,a,i,c,l,d,y,f;const h=fe(),P=vt(),g=pe({props:e,name:t}),C=(n=g.ampm)!=null?n:h.is12HourCycleInCurrentLocale(),D=b.useMemo(()=>{var S;return((S=g.localeText)==null?void 0:S.toolbarTitle)==null?g.localeText:m({},g.localeText,{dateTimePickerToolbarTitle:g.localeText.toolbarTitle})},[g.localeText]),v=(o=g.slots)!=null?o:Xt(g.components),w=(s=g.slotProps)!=null?s:g.componentsProps;return m({},g,ys({views:g.views,openTo:g.openTo,defaultViews:["year","day","hours","minutes"],defaultOpenTo:"day"}),{ampm:C,localeText:D,orientation:(r=g.orientation)!=null?r:"portrait",disableIgnoringDatePartForTimeValidation:(a=g.disableIgnoringDatePartForTimeValidation)!=null?a:!!(g.minDateTime||g.maxDateTime||g.disablePast||g.disableFuture),disableFuture:(i=g.disableFuture)!=null?i:!1,disablePast:(c=g.disablePast)!=null?c:!1,minDate:Re(h,(l=g.minDateTime)!=null?l:g.minDate,P.minDate),maxDate:Re(h,(d=g.maxDateTime)!=null?d:g.maxDate,P.maxDate),minTime:(y=g.minDateTime)!=null?y:g.minTime,maxTime:(f=g.maxDateTime)!=null?f:g.maxTime,slots:m({toolbar:ti,tabs:Ka},v),slotProps:m({},w,{toolbar:m({ampm:C},w==null?void 0:w.toolbar)})})}const ni=e=>ve("MuiPickersFadeTransitionGroup",e);ye("MuiPickersFadeTransitionGroup",["root"]);const oi=e=>{const{classes:t}=e;return ge({root:["root"]},ni,t)},si=Y(Vn,{name:"MuiPickersFadeTransitionGroup",slot:"Root",overridesResolver:(e,t)=>t.root})({display:"block",position:"relative"});function fo(e){const t=pe({props:e,name:"MuiPickersFadeTransitionGroup"}),{children:n,className:o,reduceAnimations:s,transKey:r}=t,a=oi(t),i=qe();return s?n:p.jsx(si,{className:be(a.root,o),children:p.jsx(Mt,{appear:!1,mountOnEnter:!0,unmountOnExit:!0,timeout:{appear:i.transitions.duration.enteringScreen,enter:i.transitions.duration.enteringScreen,exit:0},children:n},r)})}function ri(e){return ve("MuiPickersMonth",e)}const Dt=ye("MuiPickersMonth",["root","monthButton","disabled","selected"]),ai=["autoFocus","children","disabled","selected","value","tabIndex","onClick","onKeyDown","onFocus","onBlur","aria-current","aria-label","monthsPerRow"],ii=e=>{const{disabled:t,selected:n,classes:o}=e;return ge({root:["root"],monthButton:["monthButton",t&&"disabled",n&&"selected"]},ri,o)},li=Y("div",{name:"MuiPickersMonth",slot:"Root",overridesResolver:(e,t)=>[t.root]})(({ownerState:e})=>({flexBasis:e.monthsPerRow===3?"33.3%":"25%",display:"flex",alignItems:"center",justifyContent:"center"})),ci=Y("button",{name:"MuiPickersMonth",slot:"MonthButton",overridesResolver:(e,t)=>[t.monthButton,{[`&.${Dt.disabled}`]:t.disabled},{[`&.${Dt.selected}`]:t.selected}]})(({theme:e})=>m({color:"unset",backgroundColor:"transparent",border:0,outline:0},e.typography.subtitle1,{margin:"8px 0",height:36,width:72,borderRadius:18,cursor:"pointer","&:focus":{backgroundColor:e.vars?`rgba(${e.vars.palette.action.activeChannel} / ${e.vars.palette.action.hoverOpacity})`:Se(e.palette.action.active,e.palette.action.hoverOpacity)},"&:hover":{backgroundColor:e.vars?`rgba(${e.vars.palette.action.activeChannel} / ${e.vars.palette.action.hoverOpacity})`:Se(e.palette.action.active,e.palette.action.hoverOpacity)},"&:disabled":{cursor:"auto",pointerEvents:"none"},[`&.${Dt.disabled}`]:{color:(e.vars||e).palette.text.secondary},[`&.${Dt.selected}`]:{color:(e.vars||e).palette.primary.contrastText,backgroundColor:(e.vars||e).palette.primary.main,"&:focus, &:hover":{backgroundColor:(e.vars||e).palette.primary.dark}}})),ui=b.memo(function(t){const n=pe({props:t,name:"MuiPickersMonth"}),{autoFocus:o,children:s,disabled:r,selected:a,value:i,tabIndex:c,onClick:l,onKeyDown:d,onFocus:y,onBlur:f,"aria-current":h,"aria-label":P}=n,g=re(n,ai),C=b.useRef(null),D=ii(n);return He(()=>{if(o){var v;(v=C.current)==null||v.focus()}},[o]),p.jsx(li,m({className:D.root,ownerState:n},g,{children:p.jsx(ci,{ref:C,disabled:r,type:"button",role:"radio",tabIndex:r?-1:c,"aria-current":h,"aria-checked":a,"aria-label":P,onClick:v=>l(v,i),onKeyDown:v=>d(v,i),onFocus:v=>y(v,i),onBlur:v=>f(v,i),className:D.monthButton,ownerState:n,children:s})}))});function di(e){return ve("MuiMonthCalendar",e)}ye("MuiMonthCalendar",["root"]);const mi=["className","value","defaultValue","referenceDate","disabled","disableFuture","disablePast","maxDate","minDate","onChange","shouldDisableMonth","readOnly","disableHighlightToday","autoFocus","onMonthFocus","hasFocus","onFocusedViewChange","monthsPerRow","timezone","gridLabelId"],pi=e=>{const{classes:t}=e;return ge({root:["root"]},di,t)};function fi(e,t){const n=fe(),o=vt(),s=pe({props:e,name:t});return m({disableFuture:!1,disablePast:!1},s,{minDate:Re(n,s.minDate,o.minDate),maxDate:Re(n,s.maxDate,o.maxDate)})}const hi=Y("div",{name:"MuiMonthCalendar",slot:"Root",overridesResolver:(e,t)=>t.root})({display:"flex",flexWrap:"wrap",alignContent:"stretch",padding:"0 4px",width:Rt,boxSizing:"border-box"}),gi=b.forwardRef(function(t,n){const o=fi(t,"MuiMonthCalendar"),{className:s,value:r,defaultValue:a,referenceDate:i,disabled:c,disableFuture:l,disablePast:d,maxDate:y,minDate:f,onChange:h,shouldDisableMonth:P,readOnly:g,disableHighlightToday:C,autoFocus:D=!1,onMonthFocus:v,hasFocus:w,onFocusedViewChange:S,monthsPerRow:x=3,timezone:k,gridLabelId:$}=o,I=re(o,mi),{value:T,handleValueChange:O,timezone:F}=it({name:"MonthCalendar",timezone:k,value:r,defaultValue:a,onChange:h,valueManager:Te}),j=Ye(F),N=In(),V=fe(),M=b.useMemo(()=>Te.getInitialReferenceValue({value:T,utils:V,props:o,timezone:F,referenceDate:i,granularity:Ae.month}),[]),z=o,q=pi(z),W=b.useMemo(()=>V.getMonth(j),[V,j]),B=b.useMemo(()=>T!=null?V.getMonth(T):C?null:V.getMonth(M),[T,V,C,M]),[G,te]=b.useState(()=>B||W),[ae,ce]=ze({name:"MonthCalendar",state:"hasFocus",controlled:w,default:D??!1}),U=X(K=>{ce(K),S&&S(K)}),H=b.useCallback(K=>{const Z=V.startOfMonth(d&&V.isAfter(j,f)?j:f),_=V.startOfMonth(l&&V.isBefore(j,y)?j:y),ne=V.startOfMonth(K);return V.isBefore(ne,Z)||V.isAfter(ne,_)?!0:P?P(ne):!1},[l,d,y,f,j,P,V]),Q=X((K,Z)=>{if(g)return;const _=V.setMonth(T??M,Z);O(_)}),L=X(K=>{H(V.setMonth(T??M,K))||(te(K),U(!0),v&&v(K))});b.useEffect(()=>{te(K=>B!==null&&K!==B?B:K)},[B]);const ee=X((K,Z)=>{switch(K.key){case"ArrowUp":L((12+Z-3)%12),K.preventDefault();break;case"ArrowDown":L((12+Z+3)%12),K.preventDefault();break;case"ArrowLeft":L((12+Z+(N.direction==="ltr"?-1:1))%12),K.preventDefault();break;case"ArrowRight":L((12+Z+(N.direction==="ltr"?1:-1))%12),K.preventDefault();break}}),ue=X((K,Z)=>{L(Z)}),le=X((K,Z)=>{G===Z&&U(!1)});return p.jsx(hi,m({ref:n,className:be(q.root,s),ownerState:z,role:"radiogroup","aria-labelledby":$},I,{children:Gt(V,T??M).map(K=>{const Z=V.getMonth(K),_=V.format(K,"monthShort"),ne=V.format(K,"month"),me=Z===B,de=c||H(K);return p.jsx(ui,{selected:me,value:Z,onClick:Q,onKeyDown:ee,autoFocus:ae&&Z===G,disabled:de,tabIndex:Z===G?0:-1,onFocus:ue,onBlur:le,"aria-current":W===Z?"date":void 0,"aria-label":ne,monthsPerRow:x,children:_},_)})}))});function bi(e){return ve("MuiPickersYear",e)}const wt=ye("MuiPickersYear",["root","yearButton","selected","disabled"]),yi=["autoFocus","className","children","disabled","selected","value","tabIndex","onClick","onKeyDown","onFocus","onBlur","aria-current","yearsPerRow"],vi=e=>{const{disabled:t,selected:n,classes:o}=e;return ge({root:["root"],yearButton:["yearButton",t&&"disabled",n&&"selected"]},bi,o)},xi=Y("div",{name:"MuiPickersYear",slot:"Root",overridesResolver:(e,t)=>[t.root]})(({ownerState:e})=>({flexBasis:e.yearsPerRow===3?"33.3%":"25%",display:"flex",alignItems:"center",justifyContent:"center"})),Ci=Y("button",{name:"MuiPickersYear",slot:"YearButton",overridesResolver:(e,t)=>[t.yearButton,{[`&.${wt.disabled}`]:t.disabled},{[`&.${wt.selected}`]:t.selected}]})(({theme:e})=>m({color:"unset",backgroundColor:"transparent",border:0,outline:0},e.typography.subtitle1,{margin:"6px 0",height:36,width:72,borderRadius:18,cursor:"pointer","&:focus":{backgroundColor:e.vars?`rgba(${e.vars.palette.action.activeChannel} / ${e.vars.palette.action.focusOpacity})`:Se(e.palette.action.active,e.palette.action.focusOpacity)},"&:hover":{backgroundColor:e.vars?`rgba(${e.vars.palette.action.activeChannel} / ${e.vars.palette.action.hoverOpacity})`:Se(e.palette.action.active,e.palette.action.hoverOpacity)},"&:disabled":{cursor:"auto",pointerEvents:"none"},[`&.${wt.disabled}`]:{color:(e.vars||e).palette.text.secondary},[`&.${wt.selected}`]:{color:(e.vars||e).palette.primary.contrastText,backgroundColor:(e.vars||e).palette.primary.main,"&:focus, &:hover":{backgroundColor:(e.vars||e).palette.primary.dark}}})),Di=b.memo(function(t){const n=pe({props:t,name:"MuiPickersYear"}),{autoFocus:o,className:s,children:r,disabled:a,selected:i,value:c,tabIndex:l,onClick:d,onKeyDown:y,onFocus:f,onBlur:h,"aria-current":P}=n,g=re(n,yi),C=b.useRef(null),D=vi(n);return b.useEffect(()=>{o&&C.current.focus()},[o]),p.jsx(xi,m({className:be(D.root,s),ownerState:n},g,{children:p.jsx(Ci,{ref:C,disabled:a,type:"button",role:"radio",tabIndex:a?-1:l,"aria-current":P,"aria-checked":i,onClick:v=>d(v,c),onKeyDown:v=>y(v,c),onFocus:v=>f(v,c),onBlur:v=>h(v,c),className:D.yearButton,ownerState:n,children:r})}))});function wi(e){return ve("MuiYearCalendar",e)}ye("MuiYearCalendar",["root"]);const Pi=["autoFocus","className","value","defaultValue","referenceDate","disabled","disableFuture","disablePast","maxDate","minDate","onChange","readOnly","shouldDisableYear","disableHighlightToday","onYearFocus","hasFocus","onFocusedViewChange","yearsPerRow","timezone","gridLabelId"],ki=e=>{const{classes:t}=e;return ge({root:["root"]},wi,t)};function Si(e,t){var n;const o=fe(),s=vt(),r=pe({props:e,name:t});return m({disablePast:!1,disableFuture:!1},r,{yearsPerRow:(n=r.yearsPerRow)!=null?n:3,minDate:Re(o,r.minDate,s.minDate),maxDate:Re(o,r.maxDate,s.maxDate)})}const Ti=Y("div",{name:"MuiYearCalendar",slot:"Root",overridesResolver:(e,t)=>t.root})({display:"flex",flexDirection:"row",flexWrap:"wrap",overflowY:"auto",height:"100%",padding:"0 4px",width:Rt,maxHeight:hr,boxSizing:"border-box",position:"relative"}),Mi=b.forwardRef(function(t,n){const o=Si(t,"MuiYearCalendar"),{autoFocus:s,className:r,value:a,defaultValue:i,referenceDate:c,disabled:l,disableFuture:d,disablePast:y,maxDate:f,minDate:h,onChange:P,readOnly:g,shouldDisableYear:C,disableHighlightToday:D,onYearFocus:v,hasFocus:w,onFocusedViewChange:S,yearsPerRow:x,timezone:k,gridLabelId:$}=o,I=re(o,Pi),{value:T,handleValueChange:O,timezone:F}=it({name:"YearCalendar",timezone:k,value:a,defaultValue:i,onChange:P,valueManager:Te}),j=Ye(F),N=In(),V=fe(),M=b.useMemo(()=>Te.getInitialReferenceValue({value:T,utils:V,props:o,timezone:F,referenceDate:c,granularity:Ae.year}),[]),z=o,q=ki(z),W=b.useMemo(()=>V.getYear(j),[V,j]),B=b.useMemo(()=>T!=null?V.getYear(T):D?null:V.getYear(M),[T,V,D,M]),[G,te]=b.useState(()=>B||W),[ae,ce]=ze({name:"YearCalendar",state:"hasFocus",controlled:w,default:s??!1}),U=X(_=>{ce(_),S&&S(_)}),H=b.useCallback(_=>{if(y&&V.isBeforeYear(_,j)||d&&V.isAfterYear(_,j)||h&&V.isBeforeYear(_,h)||f&&V.isAfterYear(_,f))return!0;if(!C)return!1;const ne=V.startOfYear(_);return C(ne)},[d,y,f,h,j,C,V]),Q=X((_,ne)=>{if(g)return;const me=V.setYear(T??M,ne);O(me)}),L=X(_=>{H(V.setYear(T??M,_))||(te(_),U(!0),v==null||v(_))});b.useEffect(()=>{te(_=>B!==null&&_!==B?B:_)},[B]);const ee=X((_,ne)=>{switch(_.key){case"ArrowUp":L(ne-x),_.preventDefault();break;case"ArrowDown":L(ne+x),_.preventDefault();break;case"ArrowLeft":L(ne+(N.direction==="ltr"?-1:1)),_.preventDefault();break;case"ArrowRight":L(ne+(N.direction==="ltr"?1:-1)),_.preventDefault();break}}),ue=X((_,ne)=>{L(ne)}),le=X((_,ne)=>{G===ne&&U(!1)}),K=b.useRef(null),Z=Ee(n,K);return b.useEffect(()=>{if(s||K.current===null)return;const _=K.current.querySelector('[tabindex="0"]');if(!_)return;const ne=_.offsetHeight,me=_.offsetTop,de=K.current.clientHeight,ke=K.current.scrollTop,J=me+ne;ne>de||me{const ne=V.getYear(_),me=ne===B,de=l||H(_);return p.jsx(Di,{selected:me,value:ne,onClick:Q,onKeyDown:ee,autoFocus:ae&&ne===G,disabled:de,tabIndex:ne===G?0:-1,onFocus:ue,onBlur:le,"aria-current":W===ne?"date":void 0,yearsPerRow:x,children:V.format(_,"year")},V.format(_,"year"))})}))}),Vi=e=>ve("MuiPickersCalendarHeader",e),Ii=ye("MuiPickersCalendarHeader",["root","labelContainer","label","switchViewButton","switchViewIcon"]),Ri=["slots","slotProps","currentMonth","disabled","disableFuture","disablePast","maxDate","minDate","onMonthChange","onViewChange","view","reduceAnimations","views","labelId","className","timezone"],Fi=["ownerState"],Ai=e=>{const{classes:t}=e;return ge({root:["root"],labelContainer:["labelContainer"],label:["label"],switchViewButton:["switchViewButton"],switchViewIcon:["switchViewIcon"]},Vi,t)},$i=Y("div",{name:"MuiPickersCalendarHeader",slot:"Root",overridesResolver:(e,t)=>t.root})({display:"flex",alignItems:"center",marginTop:16,marginBottom:8,paddingLeft:24,paddingRight:12,maxHeight:30,minHeight:30}),Oi=Y("div",{name:"MuiPickersCalendarHeader",slot:"LabelContainer",overridesResolver:(e,t)=>t.labelContainer})(({theme:e})=>m({display:"flex",overflow:"hidden",alignItems:"center",cursor:"pointer",marginRight:"auto"},e.typography.body1,{fontWeight:e.typography.fontWeightMedium})),Ni=Y("div",{name:"MuiPickersCalendarHeader",slot:"Label",overridesResolver:(e,t)=>t.label})({marginRight:6}),Li=Y(at,{name:"MuiPickersCalendarHeader",slot:"SwitchViewButton",overridesResolver:(e,t)=>t.switchViewButton})(({ownerState:e})=>m({marginRight:"auto"},e.view==="year"&&{[`.${Ii.switchViewIcon}`]:{transform:"rotate(180deg)"}})),Ei=Y(tr,{name:"MuiPickersCalendarHeader",slot:"SwitchViewIcon",overridesResolver:(e,t)=>t.switchViewIcon})(({theme:e})=>({willChange:"transform",transition:e.transitions.create("transform"),transform:"rotate(0deg)"})),ji=b.forwardRef(function(t,n){var o,s;const r=Me(),a=fe(),i=pe({props:t,name:"MuiPickersCalendarHeader"}),{slots:c,slotProps:l,currentMonth:d,disabled:y,disableFuture:f,disablePast:h,maxDate:P,minDate:g,onMonthChange:C,onViewChange:D,view:v,reduceAnimations:w,views:S,labelId:x,className:k,timezone:$}=i,I=re(i,Ri),T=i,O=Ai(i),F=(o=c==null?void 0:c.switchViewButton)!=null?o:Li,j=Pe({elementType:F,externalSlotProps:l==null?void 0:l.switchViewButton,additionalProps:{size:"small","aria-label":r.calendarViewSwitchingButtonAriaLabel(v)},ownerState:T,className:O.switchViewButton}),N=(s=c==null?void 0:c.switchViewIcon)!=null?s:Ei,V=Pe({elementType:N,externalSlotProps:l==null?void 0:l.switchViewIcon,ownerState:void 0,className:O.switchViewIcon}),M=re(V,Fi),z=()=>C(a.addMonths(d,1),"left"),q=()=>C(a.addMonths(d,-1),"right"),W=ia(d,{disableFuture:f,maxDate:P,timezone:$}),B=la(d,{disablePast:h,minDate:g,timezone:$}),G=()=>{if(!(S.length===1||!D||y))if(S.length===2)D(S.find(te=>te!==v)||S[0]);else{const te=S.indexOf(v)!==0?0:1;D(S[te])}};return S.length===1&&S[0]==="year"?null:p.jsxs($i,m({},I,{ownerState:T,className:be(k,O.root),ref:n,children:[p.jsxs(Oi,{role:"presentation",onClick:G,ownerState:T,"aria-live":"polite",className:O.labelContainer,children:[p.jsx(fo,{reduceAnimations:w,transKey:a.format(d,"monthAndYear"),children:p.jsx(Ni,{id:x,ownerState:T,className:O.label,children:a.format(d,"monthAndYear")})}),S.length>1&&!y&&p.jsx(F,m({},j,{children:p.jsx(N,m({},M))}))]}),p.jsx(Mt,{in:v==="day",children:p.jsx(Qn,{slots:c,slotProps:l,onGoToPrevious:q,isPreviousDisabled:B,previousLabel:r.previousMonth,onGoToNext:z,isNextDisabled:W,nextLabel:r.nextMonth})})]}))}),At=Y("div")({overflow:"hidden",width:Rt,maxHeight:Ft,display:"flex",flexDirection:"column",margin:"0 auto"}),_i=e=>ve("MuiDateCalendar",e);ye("MuiDateCalendar",["root","viewTransitionContainer"]);const Bi=["autoFocus","onViewChange","value","defaultValue","referenceDate","disableFuture","disablePast","defaultCalendarMonth","onChange","onYearChange","onMonthChange","reduceAnimations","shouldDisableDate","shouldDisableMonth","shouldDisableYear","view","views","openTo","className","disabled","readOnly","minDate","maxDate","disableHighlightToday","focusedView","onFocusedViewChange","showDaysOutsideCurrentMonth","fixedWeekNumber","dayOfWeekFormatter","components","componentsProps","slots","slotProps","loading","renderLoading","displayWeekNumber","yearsPerRow","monthsPerRow","timezone"],Wi=e=>{const{classes:t}=e;return ge({root:["root"],viewTransitionContainer:["viewTransitionContainer"]},_i,t)};function Hi(e,t){var n,o,s,r,a,i,c;const l=fe(),d=vt(),y=Xn(),f=pe({props:e,name:t});return m({},f,{loading:(n=f.loading)!=null?n:!1,disablePast:(o=f.disablePast)!=null?o:!1,disableFuture:(s=f.disableFuture)!=null?s:!1,openTo:(r=f.openTo)!=null?r:"day",views:(a=f.views)!=null?a:["year","day"],reduceAnimations:(i=f.reduceAnimations)!=null?i:y,renderLoading:(c=f.renderLoading)!=null?c:()=>p.jsx("span",{children:"..."}),minDate:Re(l,f.minDate,d.minDate),maxDate:Re(l,f.maxDate,d.maxDate)})}const zi=Y(At,{name:"MuiDateCalendar",slot:"Root",overridesResolver:(e,t)=>t.root})({display:"flex",flexDirection:"column",height:Ft}),Ui=Y(fo,{name:"MuiDateCalendar",slot:"ViewTransitionContainer",overridesResolver:(e,t)=>t.viewTransitionContainer})({}),ho=b.forwardRef(function(t,n){var o,s,r;const a=fe(),i=Tt(),c=Hi(t,"MuiDateCalendar"),{autoFocus:l,onViewChange:d,value:y,defaultValue:f,referenceDate:h,disableFuture:P,disablePast:g,defaultCalendarMonth:C,onChange:D,onYearChange:v,onMonthChange:w,reduceAnimations:S,shouldDisableDate:x,shouldDisableMonth:k,shouldDisableYear:$,view:I,views:T,openTo:O,className:F,disabled:j,readOnly:N,minDate:V,maxDate:M,disableHighlightToday:z,focusedView:q,onFocusedViewChange:W,showDaysOutsideCurrentMonth:B,fixedWeekNumber:G,dayOfWeekFormatter:te,components:ae,componentsProps:ce,slots:U,slotProps:H,loading:Q,renderLoading:L,displayWeekNumber:ee,yearsPerRow:ue,monthsPerRow:le,timezone:K}=c,Z=re(c,Bi),{value:_,handleValueChange:ne,timezone:me}=it({name:"DateCalendar",timezone:K,value:y,defaultValue:f,onChange:D,valueManager:Te}),{view:de,setView:ke,focusedView:J,setFocusedView:oe,goToNextView:R,setValueAndGoToNextView:A}=xt({view:I,views:T,openTo:O,onChange:ne,onViewChange:d,autoFocus:l,focusedView:q,onFocusedViewChange:W}),{referenceDate:E,calendarState:se,changeFocusedDay:xe,changeMonth:Ce,handleChangeMonth:he,isDateDisabled:ie,onMonthSwitchingAnimationEnd:we}=La({value:_,defaultCalendarMonth:C,referenceDate:h,reduceAnimations:S,onMonthChange:w,minDate:V,maxDate:M,shouldDisableDate:x,disablePast:g,disableFuture:P,timezone:me}),Ve=j&&_||V,$e=j&&_||M,$t=`${i}-grid-label`,lt=J!==null,Fe=(o=(s=U==null?void 0:U.calendarHeader)!=null?s:ae==null?void 0:ae.CalendarHeader)!=null?o:ji,Do=Pe({elementType:Fe,externalSlotProps:(r=H==null?void 0:H.calendarHeader)!=null?r:ce==null?void 0:ce.calendarHeader,additionalProps:{views:T,view:de,currentMonth:se.currentMonth,onViewChange:ke,onMonthChange:(De,Oe)=>he({newMonth:De,direction:Oe}),minDate:Ve,maxDate:$e,disabled:j,disablePast:g,disableFuture:P,reduceAnimations:S,timezone:me,labelId:$t,slots:U,slotProps:H},ownerState:c}),wo=X(De=>{const Oe=a.startOfMonth(De),ct=a.endOfMonth(De),_e=ie(De)?ft({utils:a,date:De,minDate:a.isBefore(V,Oe)?Oe:V,maxDate:a.isAfter(M,ct)?ct:M,disablePast:g,disableFuture:P,isDateDisabled:ie,timezone:me}):De;_e?(A(_e,"finish"),w==null||w(Oe)):(R(),Ce(Oe)),xe(_e,!0)}),Po=X(De=>{const Oe=a.startOfYear(De),ct=a.endOfYear(De),_e=ie(De)?ft({utils:a,date:De,minDate:a.isBefore(V,Oe)?Oe:V,maxDate:a.isAfter(M,ct)?ct:M,disablePast:g,disableFuture:P,isDateDisabled:ie,timezone:me}):De;_e?(A(_e,"finish"),v==null||v(_e)):(R(),Ce(Oe)),xe(_e,!0)}),ko=X(De=>ne(De&&Ht(a,De,_??E),"finish"));b.useEffect(()=>{_!=null&&a.isValid(_)&&Ce(_)},[_]);const Ot=c,tn=Wi(Ot),Nt={disablePast:g,disableFuture:P,maxDate:M,minDate:V},Lt={disableHighlightToday:z,readOnly:N,disabled:j,timezone:me,gridLabelId:$t},Et=b.useRef(de);b.useEffect(()=>{Et.current!==de&&(J===Et.current&&oe(de,!0),Et.current=de)},[J,oe,de]);const So=b.useMemo(()=>[_],[_]);return p.jsxs(zi,m({ref:n,className:be(tn.root,F),ownerState:Ot},Z,{children:[p.jsx(Fe,m({},Do)),p.jsx(Ui,{reduceAnimations:S,className:tn.viewTransitionContainer,transKey:de,ownerState:Ot,children:p.jsxs("div",{children:[de==="year"&&p.jsx(Mi,m({},Nt,Lt,{value:_,onChange:Po,shouldDisableYear:$,hasFocus:lt,onFocusedViewChange:De=>oe("year",De),yearsPerRow:ue,referenceDate:E})),de==="month"&&p.jsx(gi,m({},Nt,Lt,{hasFocus:lt,className:F,value:_,onChange:wo,shouldDisableMonth:k,onFocusedViewChange:De=>oe("month",De),monthsPerRow:le,referenceDate:E})),de==="day"&&p.jsx(Oa,m({},se,Nt,Lt,{onMonthSwitchingAnimationEnd:we,onFocusedDayChange:xe,reduceAnimations:S,selectedDays:So,onSelectedDaysChange:ko,shouldDisableDate:x,shouldDisableMonth:k,shouldDisableYear:$,hasFocus:lt,onFocusedViewChange:De=>oe("day",De),showDaysOutsideCurrentMonth:B,fixedWeekNumber:G,dayOfWeekFormatter:te,displayWeekNumber:ee,components:ae,componentsProps:ce,slots:U,slotProps:H,loading:Q,renderLoading:L}))]})})]}))}),ot=({view:e,onViewChange:t,views:n,focusedView:o,onFocusedViewChange:s,value:r,defaultValue:a,referenceDate:i,onChange:c,className:l,classes:d,disableFuture:y,disablePast:f,minDate:h,maxDate:P,shouldDisableDate:g,shouldDisableMonth:C,shouldDisableYear:D,reduceAnimations:v,onMonthChange:w,monthsPerRow:S,onYearChange:x,yearsPerRow:k,defaultCalendarMonth:$,components:I,componentsProps:T,slots:O,slotProps:F,loading:j,renderLoading:N,disableHighlightToday:V,readOnly:M,disabled:z,showDaysOutsideCurrentMonth:q,dayOfWeekFormatter:W,sx:B,autoFocus:G,fixedWeekNumber:te,displayWeekNumber:ae,timezone:ce})=>p.jsx(ho,{view:e,onViewChange:t,views:n.filter(tt),focusedView:o&&tt(o)?o:null,onFocusedViewChange:s,value:r,defaultValue:a,referenceDate:i,onChange:c,className:l,classes:d,disableFuture:y,disablePast:f,minDate:h,maxDate:P,shouldDisableDate:g,shouldDisableMonth:C,shouldDisableYear:D,reduceAnimations:v,onMonthChange:w,monthsPerRow:S,onYearChange:x,yearsPerRow:k,defaultCalendarMonth:$,components:I,componentsProps:T,slots:O,slotProps:F,loading:j,renderLoading:N,disableHighlightToday:V,readOnly:M,disabled:z,showDaysOutsideCurrentMonth:q,dayOfWeekFormatter:W,sx:B,autoFocus:G,fixedWeekNumber:te,displayWeekNumber:ae,timezone:ce});function Yi(e){return ve("MuiMultiSectionDigitalClock",e)}ye("MuiMultiSectionDigitalClock",["root"]);function Gi(e){return ve("MuiMultiSectionDigitalClock",e)}const Ki=ye("MuiMultiSectionDigitalClock",["root","item"]),qi=["autoFocus","onChange","className","disabled","readOnly","items","active","slots","slotProps","skipDisabled"],Qi=e=>{const{classes:t}=e;return ge({root:["root"],item:["item"]},Gi,t)},Zi=Y(Fn,{name:"MuiMultiSectionDigitalClockSection",slot:"Root",overridesResolver:(e,t)=>t.root})(({theme:e,ownerState:t})=>({maxHeight:Zn,width:56,padding:0,overflow:"hidden","@media (prefers-reduced-motion: no-preference)":{scrollBehavior:t.alreadyRendered?"smooth":"auto"},"&:hover":{overflowY:"auto"},"&:not(:first-of-type)":{borderLeft:`1px solid ${(e.vars||e).palette.divider}`},"&:after":{display:"block",content:'""',height:"calc(100% - 40px - 6px)"}})),Xi=Y(An,{name:"MuiMultiSectionDigitalClockSection",slot:"Item",overridesResolver:(e,t)=>t.item})(({theme:e})=>({padding:8,margin:"2px 4px",width:pt,justifyContent:"center","&:first-of-type":{marginTop:4},"&:hover":{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.hoverOpacity})`:Se(e.palette.primary.main,e.palette.action.hoverOpacity)},"&.Mui-selected":{backgroundColor:(e.vars||e).palette.primary.main,color:(e.vars||e).palette.primary.contrastText,"&:focus-visible, &:hover":{backgroundColor:(e.vars||e).palette.primary.dark}},"&.Mui-focusVisible":{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.focusOpacity})`:Se(e.palette.primary.main,e.palette.action.focusOpacity)}})),Ji=b.forwardRef(function(t,n){var o;const s=b.useRef(null),r=Ee(n,s),a=b.useRef(null),i=pe({props:t,name:"MuiMultiSectionDigitalClockSection"}),{autoFocus:c,onChange:l,className:d,disabled:y,readOnly:f,items:h,active:P,slots:g,slotProps:C,skipDisabled:D}=i,v=re(i,qi),w=b.useMemo(()=>m({},i,{alreadyRendered:!!s.current}),[i]),S=Qi(w),x=(o=g==null?void 0:g.digitalClockSectionItem)!=null?o:Xi;return b.useEffect(()=>{if(s.current===null)return;const k=s.current.querySelector('[role="option"][aria-selected="true"]');if(!k||a.current===k){a.current!==k&&(a.current=k);return}a.current=k,P&&c&&k.focus();const $=k.offsetTop;s.current.scrollTop=$-4}),p.jsx(Zi,m({ref:r,className:be(S.root,d),ownerState:w,autoFocusItem:c&&P,role:"listbox"},v,{children:h.map(k=>{var $,I;if(D&&($=k.isDisabled)!=null&&$.call(k,k.value))return null;const T=k.isSelected(k.value);return p.jsx(x,m({onClick:()=>!f&&l(k.value),selected:T,disabled:y||((I=k.isDisabled)==null?void 0:I.call(k,k.value)),disableRipple:f,role:"option","aria-disabled":f,"aria-label":k.ariaLabel,"aria-selected":T},C==null?void 0:C.digitalClockSectionItem,{children:k.label}),k.label)})}))}),el=({now:e,value:t,utils:n,ampm:o,isDisabled:s,resolveAriaLabel:r,timeStep:a})=>{const i=t?n.getHours(t):null,c=[],l=y=>i===null?!1:o?y===12?i===12||i===0:i===y||i-12===y:i===y,d=o?11:23;for(let y=0;y<=d;y+=a){let f=n.format(n.setHours(e,y),o?"hours12h":"hours24h");const h=r(parseInt(f,10).toString());f=n.formatNumber(f),c.push({value:y,label:f,isSelected:l,isDisabled:s,ariaLabel:h})}return c},Cn=({value:e,isDisabled:t,timeStep:n,resolveLabel:o,resolveAriaLabel:s,hasValue:r=!0})=>{const a=i=>e===null?!1:r&&e===i;return[...Array.from({length:Math.ceil(60/n)},(i,c)=>{const l=n*c;return{value:l,label:o(l),isDisabled:t,isSelected:a,ariaLabel:s(l.toString())}})]},en=({value:e,referenceDate:t,utils:n,props:o,timezone:s})=>{const r=b.useMemo(()=>Te.getInitialReferenceValue({value:e,utils:n,props:o,referenceDate:t,granularity:Ae.day,timezone:s,getTodayDate:()=>Kt(n,s,"date")}),[]);return e??r},tl=["ampm","timeSteps","autoFocus","components","componentsProps","slots","slotProps","value","defaultValue","referenceDate","disableIgnoringDatePartForTimeValidation","maxTime","minTime","disableFuture","disablePast","minutesStep","shouldDisableClock","shouldDisableTime","onChange","view","views","openTo","onViewChange","focusedView","onFocusedViewChange","className","disabled","readOnly","skipDisabled","timezone"],nl=e=>{const{classes:t}=e;return ge({root:["root"]},Yi,t)},ol=Y(At,{name:"MuiMultiSectionDigitalClock",slot:"Root",overridesResolver:(e,t)=>t.root})(({theme:e})=>({display:"flex",flexDirection:"row",width:"100%",borderBottom:`1px solid ${(e.vars||e).palette.divider}`})),sl=b.forwardRef(function(t,n){const o=fe(),s=pe({props:t,name:"MuiMultiSectionDigitalClock"}),{ampm:r=o.is12HourCycleInCurrentLocale(),timeSteps:a,autoFocus:i,components:c,componentsProps:l,slots:d,slotProps:y,value:f,defaultValue:h,referenceDate:P,disableIgnoringDatePartForTimeValidation:g=!1,maxTime:C,minTime:D,disableFuture:v,disablePast:w,minutesStep:S=1,shouldDisableClock:x,shouldDisableTime:k,onChange:$,view:I,views:T=["hours","minutes"],openTo:O,onViewChange:F,focusedView:j,onFocusedViewChange:N,className:V,disabled:M,readOnly:z,skipDisabled:q=!1,timezone:W}=s,B=re(s,tl),{value:G,handleValueChange:te,timezone:ae}=it({name:"MultiSectionDigitalClock",timezone:W,value:f,defaultValue:h,onChange:$,valueManager:Te}),ce=Me(),U=Ye(ae),H=b.useMemo(()=>m({hours:1,minutes:5,seconds:5},a),[a]),Q=en({value:G,referenceDate:P,utils:o,props:s,timezone:ae}),L=X((A,E,se)=>te(A,E,se)),ee=b.useMemo(()=>!r||!T.includes("hours")||T.includes("meridiem")?T:[...T,"meridiem"],[r,T]),{view:ue,setValueAndGoToView:le,focusedView:K}=xt({view:I,views:ee,openTo:O,onViewChange:F,onChange:L,focusedView:j,onFocusedViewChange:N}),Z=X(A=>{le(A,null,"meridiem")}),{meridiemMode:_,handleMeridiemChange:ne}=Jt(Q,r,Z,"finish"),me=b.useCallback((A,E)=>{const se=yt(g,o),xe=E==="hours"||E==="minutes"&&ee.includes("seconds"),Ce=({start:ie,end:we})=>!(D&&se(D,we)||C&&se(ie,C)||v&&se(ie,U)||w&&se(U,xe?we:ie)),he=(ie,we=1)=>{if(ie%we!==0||x!=null&&x(ie,E))return!1;if(k)switch(E){case"hours":return!k(o.setHours(Q,ie),"hours");case"minutes":return!k(o.setMinutes(Q,ie),"minutes");case"seconds":return!k(o.setSeconds(Q,ie),"seconds");default:return!1}return!0};switch(E){case"hours":{const ie=ht(A,_,r),we=o.setHours(Q,ie),Ve=o.setSeconds(o.setMinutes(we,0),0),$e=o.setSeconds(o.setMinutes(we,59),59);return!Ce({start:Ve,end:$e})||!he(ie)}case"minutes":{const ie=o.setMinutes(Q,A),we=o.setSeconds(ie,0),Ve=o.setSeconds(ie,59);return!Ce({start:we,end:Ve})||!he(A,S)}case"seconds":{const ie=o.setSeconds(Q,A);return!Ce({start:ie,end:ie})||!he(A)}default:throw new Error("not supported")}},[r,Q,g,C,_,D,S,x,k,o,v,w,U,ee]),de=X((A,E)=>{const se=ee.indexOf(A),xe=ee[se+1];le(E,xe,A)}),ke=b.useCallback(A=>{switch(A){case"hours":return{onChange:E=>{const se=ht(E,_,r);de("hours",o.setHours(Q,se))},items:el({now:U,value:G,ampm:r,utils:o,isDisabled:E=>M||me(E,"hours"),timeStep:H.hours,resolveAriaLabel:ce.hoursClockNumberText})};case"minutes":return{onChange:E=>{de("minutes",o.setMinutes(Q,E))},items:Cn({value:o.getMinutes(Q),isDisabled:E=>M||me(E,"minutes"),resolveLabel:E=>o.format(o.setMinutes(U,E),"minutes"),timeStep:H.minutes,hasValue:!!G,resolveAriaLabel:ce.minutesClockNumberText})};case"seconds":return{onChange:E=>{de("seconds",o.setSeconds(Q,E))},items:Cn({value:o.getSeconds(Q),isDisabled:E=>M||me(E,"seconds"),resolveLabel:E=>o.format(o.setSeconds(U,E),"seconds"),timeStep:H.seconds,hasValue:!!G,resolveAriaLabel:ce.secondsClockNumberText})};case"meridiem":{const E=je(o,"am"),se=je(o,"pm");return{onChange:ne,items:[{value:"am",label:E,isSelected:()=>!!G&&_==="am",ariaLabel:E},{value:"pm",label:se,isSelected:()=>!!G&&_==="pm",ariaLabel:se}]}}default:throw new Error(`Unknown view: ${A} found.`)}},[U,G,r,o,H.hours,H.minutes,H.seconds,ce.hoursClockNumberText,ce.minutesClockNumberText,ce.secondsClockNumberText,_,de,Q,M,me,ne]),J=b.useMemo(()=>ee.reduce((A,E)=>m({},A,{[E]:ke(E)}),{}),[ee,ke]),oe=s,R=nl(oe);return p.jsx(ol,m({ref:n,className:be(R.root,V),ownerState:oe,role:"group"},B,{children:Object.entries(J).map(([A,E])=>p.jsx(Ji,{items:E.items,onChange:E.onChange,active:ue===A,autoFocus:i??K===A,disabled:M,readOnly:z,slots:d??c,slotProps:y??l,skipDisabled:q,"aria-label":ce.selectViewText(A)},A))}))}),rl=Y("div")({display:"flex",margin:"0 auto"});function al(e){return ve("MuiTimeClock",e)}ye("MuiTimeClock",["root","arrowSwitcher"]);const rt=220,Le=36,bt={x:rt/2,y:rt/2},go={x:bt.x,y:0},il=go.x-bt.x,ll=go.y-bt.y,cl=e=>e*(180/Math.PI),bo=(e,t,n)=>{const o=t-bt.x,s=n-bt.y,r=Math.atan2(il,ll)-Math.atan2(o,s);let a=cl(r);a=Math.round(a/e)*e,a%=360;const i=Math.floor(a/e)||0,c=o**2+s**2,l=Math.sqrt(c);return{value:i,distance:l}},ul=(e,t,n=1)=>{const o=n*6;let{value:s}=bo(o,e,t);return s=s*n%60,s},dl=(e,t,n)=>{const{value:o,distance:s}=bo(30,e,t);let r=o||12;return n?r%=12:s{const{classes:t}=e;return ge({root:["root"],thumb:["thumb"]},ml,t)},hl=Y("div",{name:"MuiClockPointer",slot:"Root",overridesResolver:(e,t)=>t.root})(({theme:e,ownerState:t})=>m({width:2,backgroundColor:(e.vars||e).palette.primary.main,position:"absolute",left:"calc(50% - 1px)",bottom:"50%",transformOrigin:"center bottom 0px"},t.shouldAnimate&&{transition:e.transitions.create(["transform","height"])})),gl=Y("div",{name:"MuiClockPointer",slot:"Thumb",overridesResolver:(e,t)=>t.thumb})(({theme:e,ownerState:t})=>m({width:4,height:4,backgroundColor:(e.vars||e).palette.primary.contrastText,borderRadius:"50%",position:"absolute",top:-21,left:`calc(50% - ${Le/2}px)`,border:`${(Le-4)/2}px solid ${(e.vars||e).palette.primary.main}`,boxSizing:"content-box"},t.hasSelected&&{backgroundColor:(e.vars||e).palette.primary.main}));function bl(e){const t=pe({props:e,name:"MuiClockPointer"}),{className:n,isInner:o,type:s,viewValue:r}=t,a=re(t,pl),i=b.useRef(s);b.useEffect(()=>{i.current=s},[s]);const c=m({},t,{shouldAnimate:i.current!==s}),l=fl(c),d=()=>{let f=360/(s==="hours"?12:60)*r;return s==="hours"&&r>12&&(f-=360),{height:Math.round((o?.26:.4)*rt),transform:`rotateZ(${f}deg)`}};return p.jsx(hl,m({style:d(),className:be(n,l.root),ownerState:c},a,{children:p.jsx(gl,{ownerState:c,className:l.thumb})}))}function yl(e){return ve("MuiClock",e)}ye("MuiClock",["root","clock","wrapper","squareMask","pin","amButton","pmButton","meridiemText"]);const vl=e=>{const{classes:t}=e;return ge({root:["root"],clock:["clock"],wrapper:["wrapper"],squareMask:["squareMask"],pin:["pin"],amButton:["amButton"],pmButton:["pmButton"],meridiemText:["meridiemText"]},yl,t)},xl=Y("div",{name:"MuiClock",slot:"Root",overridesResolver:(e,t)=>t.root})(({theme:e})=>({display:"flex",justifyContent:"center",alignItems:"center",margin:e.spacing(2)})),Cl=Y("div",{name:"MuiClock",slot:"Clock",overridesResolver:(e,t)=>t.clock})({backgroundColor:"rgba(0,0,0,.07)",borderRadius:"50%",height:220,width:220,flexShrink:0,position:"relative",pointerEvents:"none"}),Dl=Y("div",{name:"MuiClock",slot:"Wrapper",overridesResolver:(e,t)=>t.wrapper})({"&:focus":{outline:"none"}}),wl=Y("div",{name:"MuiClock",slot:"SquareMask",overridesResolver:(e,t)=>t.squareMask})(({ownerState:e})=>m({width:"100%",height:"100%",position:"absolute",pointerEvents:"auto",outline:0,touchAction:"none",userSelect:"none"},e.disabled?{}:{"@media (pointer: fine)":{cursor:"pointer",borderRadius:"50%"},"&:active":{cursor:"move"}})),Pl=Y("div",{name:"MuiClock",slot:"Pin",overridesResolver:(e,t)=>t.pin})(({theme:e})=>({width:6,height:6,borderRadius:"50%",backgroundColor:(e.vars||e).palette.primary.main,position:"absolute",top:"50%",left:"50%",transform:"translate(-50%, -50%)"})),kl=Y(at,{name:"MuiClock",slot:"AmButton",overridesResolver:(e,t)=>t.amButton})(({theme:e,ownerState:t})=>m({zIndex:1,position:"absolute",bottom:8,left:8,paddingLeft:4,paddingRight:4,width:Le},t.meridiemMode==="am"&&{backgroundColor:(e.vars||e).palette.primary.main,color:(e.vars||e).palette.primary.contrastText,"&:hover":{backgroundColor:(e.vars||e).palette.primary.light}})),Sl=Y(at,{name:"MuiClock",slot:"PmButton",overridesResolver:(e,t)=>t.pmButton})(({theme:e,ownerState:t})=>m({zIndex:1,position:"absolute",bottom:8,right:8,paddingLeft:4,paddingRight:4,width:Le},t.meridiemMode==="pm"&&{backgroundColor:(e.vars||e).palette.primary.main,color:(e.vars||e).palette.primary.contrastText,"&:hover":{backgroundColor:(e.vars||e).palette.primary.light}})),Dn=Y(Qe,{name:"MuiClock",slot:"meridiemText",overridesResolver:(e,t)=>t.meridiemText})({overflow:"hidden",whiteSpace:"nowrap",textOverflow:"ellipsis"});function Tl(e){const t=pe({props:e,name:"MuiClock"}),{ampm:n,ampmInClock:o,autoFocus:s,children:r,value:a,handleMeridiemChange:i,isTimeDisabled:c,meridiemMode:l,minutesStep:d=1,onChange:y,selectedId:f,type:h,viewValue:P,disabled:g,readOnly:C,className:D}=t,v=t,w=fe(),S=Me(),x=b.useRef(!1),k=vl(v),$=c(P,h),I=!n&&h==="hours"&&(P<1||P>12),T=(B,G)=>{g||C||c(B,h)||y(B,G)},O=(B,G)=>{let{offsetX:te,offsetY:ae}=B;if(te===void 0){const U=B.target.getBoundingClientRect();te=B.changedTouches[0].clientX-U.left,ae=B.changedTouches[0].clientY-U.top}const ce=h==="seconds"||h==="minutes"?ul(te,ae,d):dl(te,ae,!!n);T(ce,G)},F=B=>{x.current=!0,O(B,"shallow")},j=B=>{x.current&&(O(B,"finish"),x.current=!1)},N=B=>{B.buttons>0&&O(B.nativeEvent,"shallow")},V=B=>{x.current&&(x.current=!1),O(B.nativeEvent,"finish")},M=b.useMemo(()=>h==="hours"?!0:P%5===0,[h,P]),z=h==="minutes"?d:1,q=b.useRef(null);He(()=>{s&&q.current.focus()},[s]);const W=B=>{if(!x.current)switch(B.key){case"Home":T(0,"partial"),B.preventDefault();break;case"End":T(h==="minutes"?59:23,"partial"),B.preventDefault();break;case"ArrowUp":T(P+z,"partial"),B.preventDefault();break;case"ArrowDown":T(P-z,"partial"),B.preventDefault();break}};return p.jsxs(xl,{className:be(D,k.root),children:[p.jsxs(Cl,{className:k.clock,children:[p.jsx(wl,{onTouchMove:F,onTouchEnd:j,onMouseUp:V,onMouseMove:N,ownerState:{disabled:g},className:k.squareMask}),!$&&p.jsxs(b.Fragment,{children:[p.jsx(Pl,{className:k.pin}),a!=null&&p.jsx(bl,{type:h,viewValue:P,isInner:I,hasSelected:M})]}),p.jsx(Dl,{"aria-activedescendant":f,"aria-label":S.clockLabelText(h,a,w),ref:q,role:"listbox",onKeyDown:W,tabIndex:0,className:k.wrapper,children:r})]}),n&&o&&p.jsxs(b.Fragment,{children:[p.jsx(kl,{onClick:C?void 0:()=>i("am"),disabled:g||l===null,ownerState:v,className:k.amButton,title:je(w,"am"),children:p.jsx(Dn,{variant:"caption",className:k.meridiemText,children:je(w,"am")})}),p.jsx(Sl,{disabled:g||l===null,onClick:C?void 0:()=>i("pm"),ownerState:v,className:k.pmButton,title:je(w,"pm"),children:p.jsx(Dn,{variant:"caption",className:k.meridiemText,children:je(w,"pm")})})]})]})}function Ml(e){return ve("MuiClockNumber",e)}const Pt=ye("MuiClockNumber",["root","selected","disabled"]),Vl=["className","disabled","index","inner","label","selected"],Il=e=>{const{classes:t,selected:n,disabled:o}=e;return ge({root:["root",n&&"selected",o&&"disabled"]},Ml,t)},Rl=Y("span",{name:"MuiClockNumber",slot:"Root",overridesResolver:(e,t)=>[t.root,{[`&.${Pt.disabled}`]:t.disabled},{[`&.${Pt.selected}`]:t.selected}]})(({theme:e,ownerState:t})=>m({height:Le,width:Le,position:"absolute",left:`calc((100% - ${Le}px) / 2)`,display:"inline-flex",justifyContent:"center",alignItems:"center",borderRadius:"50%",color:(e.vars||e).palette.text.primary,fontFamily:e.typography.fontFamily,"&:focused":{backgroundColor:(e.vars||e).palette.background.paper},[`&.${Pt.selected}`]:{color:(e.vars||e).palette.primary.contrastText},[`&.${Pt.disabled}`]:{pointerEvents:"none",color:(e.vars||e).palette.text.disabled}},t.inner&&m({},e.typography.body2,{color:(e.vars||e).palette.text.secondary})));function yo(e){const t=pe({props:e,name:"MuiClockNumber"}),{className:n,disabled:o,index:s,inner:r,label:a,selected:i}=t,c=re(t,Vl),l=t,d=Il(l),y=s%12/12*Math.PI*2-Math.PI/2,f=(rt-Le-2)/2*(r?.65:1),h=Math.round(Math.cos(y)*f),P=Math.round(Math.sin(y)*f);return p.jsx(Rl,m({className:be(n,d.root),"aria-disabled":o?!0:void 0,"aria-selected":i?!0:void 0,role:"option",style:{transform:`translate(${h}px, ${P+(rt-Le)/2}px`},ownerState:l},c,{children:a}))}const Fl=({ampm:e,value:t,getClockNumberText:n,isDisabled:o,selectedId:s,utils:r})=>{const a=t?r.getHours(t):null,i=[],c=e?1:0,l=e?12:23,d=y=>a===null?!1:e?y===12?a===12||a===0:a===y||a-12===y:a===y;for(let y=c;y<=l;y+=1){let f=y.toString();y===0&&(f="00");const h=!e&&(y===0||y>12);f=r.formatNumber(f);const P=d(y);i.push(p.jsx(yo,{id:P?s:void 0,index:y,inner:h,selected:P,disabled:o(y),label:f,"aria-label":n(f)},y))}return i},wn=({utils:e,value:t,isDisabled:n,getClockNumberText:o,selectedId:s})=>{const r=e.formatNumber;return[[5,r("05")],[10,r("10")],[15,r("15")],[20,r("20")],[25,r("25")],[30,r("30")],[35,r("35")],[40,r("40")],[45,r("45")],[50,r("50")],[55,r("55")],[0,r("00")]].map(([a,i],c)=>{const l=a===t;return p.jsx(yo,{label:i,id:l?s:void 0,index:c+1,inner:!1,disabled:n(a),selected:l,"aria-label":o(i)},a)})},Al=["ampm","ampmInClock","autoFocus","components","componentsProps","slots","slotProps","value","defaultValue","referenceDate","disableIgnoringDatePartForTimeValidation","maxTime","minTime","disableFuture","disablePast","minutesStep","shouldDisableClock","shouldDisableTime","showViewSwitcher","onChange","view","views","openTo","onViewChange","focusedView","onFocusedViewChange","className","disabled","readOnly","timezone"],$l=e=>{const{classes:t}=e;return ge({root:["root"],arrowSwitcher:["arrowSwitcher"]},al,t)},Ol=Y(At,{name:"MuiTimeClock",slot:"Root",overridesResolver:(e,t)=>t.root})({display:"flex",flexDirection:"column",position:"relative"}),Nl=Y(Qn,{name:"MuiTimeClock",slot:"ArrowSwitcher",overridesResolver:(e,t)=>t.arrowSwitcher})({position:"absolute",right:12,top:15}),Ll=["hours","minutes"],El=b.forwardRef(function(t,n){const o=fe(),s=pe({props:t,name:"MuiTimeClock"}),{ampm:r=o.is12HourCycleInCurrentLocale(),ampmInClock:a=!1,autoFocus:i,components:c,componentsProps:l,slots:d,slotProps:y,value:f,defaultValue:h,referenceDate:P,disableIgnoringDatePartForTimeValidation:g=!1,maxTime:C,minTime:D,disableFuture:v,disablePast:w,minutesStep:S=1,shouldDisableClock:x,shouldDisableTime:k,showViewSwitcher:$,onChange:I,view:T,views:O=Ll,openTo:F,onViewChange:j,focusedView:N,onFocusedViewChange:V,className:M,disabled:z,readOnly:q,timezone:W}=s,B=re(s,Al),G=d??Xt(c),te=y??l,{value:ae,handleValueChange:ce,timezone:U}=it({name:"TimeClock",timezone:W,value:f,defaultValue:h,onChange:I,valueManager:Te}),H=en({value:ae,referenceDate:P,utils:o,props:s,timezone:U}),Q=Me(),L=Ye(U),{view:ee,setView:ue,previousView:le,nextView:K,setValueAndGoToNextView:Z}=xt({view:T,views:O,openTo:F,onViewChange:j,onChange:ce,focusedView:N,onFocusedViewChange:V}),{meridiemMode:_,handleMeridiemChange:ne}=Jt(H,r,Z),me=b.useCallback((R,A)=>{const E=yt(g,o),se=A==="hours"||A==="minutes"&&O.includes("seconds"),xe=({start:he,end:ie})=>!(D&&E(D,ie)||C&&E(he,C)||v&&E(he,L)||w&&E(L,se?ie:he)),Ce=(he,ie=1)=>{if(he%ie!==0||x!=null&&x(he,A))return!1;if(k)switch(A){case"hours":return!k(o.setHours(H,he),"hours");case"minutes":return!k(o.setMinutes(H,he),"minutes");case"seconds":return!k(o.setSeconds(H,he),"seconds");default:return!1}return!0};switch(A){case"hours":{const he=ht(R,_,r),ie=o.setHours(H,he),we=o.setSeconds(o.setMinutes(ie,0),0),Ve=o.setSeconds(o.setMinutes(ie,59),59);return!xe({start:we,end:Ve})||!Ce(he)}case"minutes":{const he=o.setMinutes(H,R),ie=o.setSeconds(he,0),we=o.setSeconds(he,59);return!xe({start:ie,end:we})||!Ce(R,S)}case"seconds":{const he=o.setSeconds(H,R);return!xe({start:he,end:he})||!Ce(R)}default:throw new Error("not supported")}},[r,H,g,C,_,D,S,x,k,o,v,w,L,O]),de=Tt(),ke=b.useMemo(()=>{switch(ee){case"hours":{const R=(A,E)=>{const se=ht(A,_,r);Z(o.setHours(H,se),E)};return{onChange:R,viewValue:o.getHours(H),children:Fl({value:ae,utils:o,ampm:r,onChange:R,getClockNumberText:Q.hoursClockNumberText,isDisabled:A=>z||me(A,"hours"),selectedId:de})}}case"minutes":{const R=o.getMinutes(H),A=(E,se)=>{Z(o.setMinutes(H,E),se)};return{viewValue:R,onChange:A,children:wn({utils:o,value:R,onChange:A,getClockNumberText:Q.minutesClockNumberText,isDisabled:E=>z||me(E,"minutes"),selectedId:de})}}case"seconds":{const R=o.getSeconds(H),A=(E,se)=>{Z(o.setSeconds(H,E),se)};return{viewValue:R,onChange:A,children:wn({utils:o,value:R,onChange:A,getClockNumberText:Q.secondsClockNumberText,isDisabled:E=>z||me(E,"seconds"),selectedId:de})}}default:throw new Error("You must provide the type for ClockView")}},[ee,o,ae,r,Q.hoursClockNumberText,Q.minutesClockNumberText,Q.secondsClockNumberText,_,Z,H,me,de,z]),J=s,oe=$l(J);return p.jsxs(Ol,m({ref:n,className:be(oe.root,M),ownerState:J},B,{children:[p.jsx(Tl,m({autoFocus:i??!!N,ampmInClock:a&&O.includes("hours"),value:ae,type:ee,ampm:r,minutesStep:S,isTimeDisabled:me,meridiemMode:_,handleMeridiemChange:ne,selectedId:de,disabled:z,readOnly:q},ke)),$&&p.jsx(Nl,{className:oe.arrowSwitcher,slots:G,slotProps:te,onGoToPrevious:()=>ue(le),isPreviousDisabled:!le,previousLabel:Q.openPreviousView,onGoToNext:()=>ue(K),isNextDisabled:!K,nextLabel:Q.openNextView,ownerState:J})]}))});function jl(e){return ve("MuiDigitalClock",e)}const _l=ye("MuiDigitalClock",["root","list","item"]),Bl=["ampm","timeStep","autoFocus","components","componentsProps","slots","slotProps","value","defaultValue","referenceDate","disableIgnoringDatePartForTimeValidation","maxTime","minTime","disableFuture","disablePast","minutesStep","shouldDisableClock","shouldDisableTime","onChange","view","openTo","onViewChange","focusedView","onFocusedViewChange","className","disabled","readOnly","views","skipDisabled","timezone"],Wl=e=>{const{classes:t}=e;return ge({root:["root"],list:["list"],item:["item"]},jl,t)},Hl=Y(At,{name:"MuiDigitalClock",slot:"Root",overridesResolver:(e,t)=>t.root})(({ownerState:e})=>({overflowY:"auto",width:"100%","@media (prefers-reduced-motion: no-preference)":{scrollBehavior:e.alreadyRendered?"smooth":"auto"},maxHeight:Zn})),zl=Y(Fn,{name:"MuiDigitalClock",slot:"List",overridesResolver:(e,t)=>t.list})({padding:0}),Ul=Y(An,{name:"MuiDigitalClock",slot:"Item",overridesResolver:(e,t)=>t.item})(({theme:e})=>({padding:"8px 16px",margin:"2px 4px","&:first-of-type":{marginTop:4},"&:hover":{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.hoverOpacity})`:Se(e.palette.primary.main,e.palette.action.hoverOpacity)},"&.Mui-selected":{backgroundColor:(e.vars||e).palette.primary.main,color:(e.vars||e).palette.primary.contrastText,"&:focus-visible, &:hover":{backgroundColor:(e.vars||e).palette.primary.dark}},"&.Mui-focusVisible":{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.focusOpacity})`:Se(e.palette.primary.main,e.palette.action.focusOpacity)}})),Yl=b.forwardRef(function(t,n){var o,s,r;const a=fe(),i=b.useRef(null),c=Ee(n,i),l=pe({props:t,name:"MuiDigitalClock"}),{ampm:d=a.is12HourCycleInCurrentLocale(),timeStep:y=30,autoFocus:f,components:h,componentsProps:P,slots:g,slotProps:C,value:D,defaultValue:v,referenceDate:w,disableIgnoringDatePartForTimeValidation:S=!1,maxTime:x,minTime:k,disableFuture:$,disablePast:I,minutesStep:T=1,shouldDisableClock:O,shouldDisableTime:F,onChange:j,view:N,openTo:V,onViewChange:M,focusedView:z,onFocusedViewChange:q,className:W,disabled:B,readOnly:G,views:te=["hours"],skipDisabled:ae=!1,timezone:ce}=l,U=re(l,Bl),{value:H,handleValueChange:Q,timezone:L}=it({name:"DigitalClock",timezone:ce,value:D,defaultValue:v,onChange:j,valueManager:Te}),ee=Me(),ue=Ye(L),le=b.useMemo(()=>m({},l,{alreadyRendered:!!i.current}),[l]),K=Wl(le),Z=(o=(s=g==null?void 0:g.digitalClockItem)!=null?s:h==null?void 0:h.DigitalClockItem)!=null?o:Ul,_=Pe({elementType:Z,externalSlotProps:(r=C==null?void 0:C.digitalClockItem)!=null?r:P==null?void 0:P.digitalClockItem,ownerState:{},className:K.item}),ne=en({value:H,referenceDate:w,utils:a,props:l,timezone:L}),me=X(R=>Q(R,"finish","hours")),{setValueAndGoToNextView:de}=xt({view:N,views:te,openTo:V,onViewChange:M,onChange:me,focusedView:z,onFocusedViewChange:q}),ke=X(R=>{de(R,"finish")});b.useEffect(()=>{if(i.current===null)return;const R=i.current.querySelector('[role="listbox"] [role="option"][aria-selected="true"]');if(!R)return;const A=R.offsetTop;i.current.scrollTop=A-4});const J=b.useCallback(R=>{const A=yt(S,a),E=()=>!(k&&A(k,R)||x&&A(R,x)||$&&A(R,ue)||I&&A(ue,R)),se=()=>a.getMinutes(R)%T!==0||O!=null&&O(a.toJsDate(R).getTime(),"hours")?!1:F?!F(R,"hours"):!0;return!E()||!se()},[S,a,k,x,$,ue,I,T,O,F]),oe=b.useMemo(()=>{const R=a.startOfDay(ne);return[R,...Array.from({length:Math.ceil(24*60/y)-1},(A,E)=>a.addMinutes(R,y*(E+1)))]},[ne,y,a]);return p.jsx(Hl,m({ref:c,className:be(K.root,W),ownerState:le},U,{children:p.jsx(zl,{autoFocusItem:f||!!z,role:"listbox","aria-label":ee.timePickerToolbarTitle,className:K.list,children:oe.map(R=>{if(ae&&J(R))return null;const A=a.isEqual(R,H);return p.jsx(Z,m({onClick:()=>!G&&ke(R),selected:A,disabled:B||J(R),disableRipple:G,role:"option","aria-disabled":G,"aria-selected":A},_,{children:a.format(R,d?"fullTime12h":"fullTime24h")}),a.toISO(R))})})}))}),Wt=({view:e,onViewChange:t,focusedView:n,onFocusedViewChange:o,views:s,value:r,defaultValue:a,referenceDate:i,onChange:c,className:l,classes:d,disableFuture:y,disablePast:f,minTime:h,maxTime:P,shouldDisableTime:g,shouldDisableClock:C,minutesStep:D,ampm:v,ampmInClock:w,components:S,componentsProps:x,slots:k,slotProps:$,readOnly:I,disabled:T,sx:O,autoFocus:F,showViewSwitcher:j,disableIgnoringDatePartForTimeValidation:N,timezone:V})=>p.jsx(El,{view:e,onViewChange:t,focusedView:n&&st(n)?n:null,onFocusedViewChange:o,views:s.filter(st),value:r,defaultValue:a,referenceDate:i,onChange:c,className:l,classes:d,disableFuture:y,disablePast:f,minTime:h,maxTime:P,shouldDisableTime:g,shouldDisableClock:C,minutesStep:D,ampm:v,ampmInClock:w,components:S,componentsProps:x,slots:k,slotProps:$,readOnly:I,disabled:T,sx:O,autoFocus:F,showViewSwitcher:j,disableIgnoringDatePartForTimeValidation:N,timezone:V}),Gl=({view:e,onViewChange:t,focusedView:n,onFocusedViewChange:o,views:s,value:r,defaultValue:a,referenceDate:i,onChange:c,className:l,classes:d,disableFuture:y,disablePast:f,minTime:h,maxTime:P,shouldDisableTime:g,shouldDisableClock:C,minutesStep:D,ampm:v,components:w,componentsProps:S,slots:x,slotProps:k,readOnly:$,disabled:I,sx:T,autoFocus:O,disableIgnoringDatePartForTimeValidation:F,timeSteps:j,skipDisabled:N,timezone:V})=>p.jsx(Yl,{view:e,onViewChange:t,focusedView:n,onFocusedViewChange:o,views:s.filter(st),value:r,defaultValue:a,referenceDate:i,onChange:c,className:l,classes:d,disableFuture:y,disablePast:f,minTime:h,maxTime:P,shouldDisableTime:g,shouldDisableClock:C,minutesStep:D,ampm:v,components:w,componentsProps:S,slots:x,slotProps:k,readOnly:$,disabled:I,sx:T,autoFocus:O,disableIgnoringDatePartForTimeValidation:F,timeStep:j==null?void 0:j.minutes,skipDisabled:N,timezone:V}),Kl=({view:e,onViewChange:t,focusedView:n,onFocusedViewChange:o,views:s,value:r,defaultValue:a,referenceDate:i,onChange:c,className:l,classes:d,disableFuture:y,disablePast:f,minTime:h,maxTime:P,shouldDisableTime:g,shouldDisableClock:C,minutesStep:D,ampm:v,components:w,componentsProps:S,slots:x,slotProps:k,readOnly:$,disabled:I,sx:T,autoFocus:O,disableIgnoringDatePartForTimeValidation:F,timeSteps:j,skipDisabled:N,timezone:V})=>p.jsx(sl,{view:e,onViewChange:t,focusedView:n,onFocusedViewChange:o,views:s.filter(st),value:r,defaultValue:a,referenceDate:i,onChange:c,className:l,classes:d,disableFuture:y,disablePast:f,minTime:h,maxTime:P,shouldDisableTime:g,shouldDisableClock:C,minutesStep:D,ampm:v,components:w,componentsProps:S,slots:x,slotProps:k,readOnly:$,disabled:I,sx:T,autoFocus:O,disableIgnoringDatePartForTimeValidation:F,timeSteps:j,skipDisabled:N,timezone:V}),Ke=({view:e,onViewChange:t,views:n,focusedView:o,onFocusedViewChange:s,value:r,defaultValue:a,referenceDate:i,onChange:c,className:l,classes:d,disableFuture:y,disablePast:f,minDate:h,minTime:P,maxDate:g,maxTime:C,shouldDisableDate:D,shouldDisableMonth:v,shouldDisableYear:w,shouldDisableTime:S,shouldDisableClock:x,reduceAnimations:k,minutesStep:$,ampm:I,onMonthChange:T,monthsPerRow:O,onYearChange:F,yearsPerRow:j,defaultCalendarMonth:N,components:V,componentsProps:M,slots:z,slotProps:q,loading:W,renderLoading:B,disableHighlightToday:G,readOnly:te,disabled:ae,showDaysOutsideCurrentMonth:ce,dayOfWeekFormatter:U,sx:H,autoFocus:Q,fixedWeekNumber:L,displayWeekNumber:ee,timezone:ue,disableIgnoringDatePartForTimeValidation:le,timeSteps:K,skipDisabled:Z,timeViewsCount:_,shouldRenderTimeInASingleColumn:ne})=>{var me,de;const ke=!!((me=Yt((de=q==null?void 0:q.actionBar)!=null?de:M==null?void 0:M.actionBar,{}))!=null&&(me=me.actions)!=null&&me.length),J={view:We(e)?e:"hours",onViewChange:t,focusedView:o&&We(o)?o:null,onFocusedViewChange:s,views:n.filter(We),value:r,defaultValue:a,referenceDate:i,onChange:c,className:l,classes:d,disableFuture:y,disablePast:f,minTime:P,maxTime:C,shouldDisableTime:S,shouldDisableClock:x,minutesStep:$,ampm:I,components:V,componentsProps:M,slots:z,slotProps:q,readOnly:te,disabled:ae,autoFocus:Q,disableIgnoringDatePartForTimeValidation:le,timeSteps:K,skipDisabled:Z,timezone:ue};return p.jsxs(b.Fragment,{children:[p.jsxs(rl,{children:[p.jsx(ho,{view:tt(e)?e:"day",onViewChange:t,views:n.filter(tt),focusedView:o&&tt(o)?o:null,onFocusedViewChange:s,value:r,defaultValue:a,referenceDate:i,onChange:c,className:l,classes:d,disableFuture:y,disablePast:f,minDate:h,maxDate:g,shouldDisableDate:D,shouldDisableMonth:v,shouldDisableYear:w,reduceAnimations:k,onMonthChange:T,monthsPerRow:O,onYearChange:F,yearsPerRow:j,defaultCalendarMonth:N,components:V,componentsProps:M,slots:z,slotProps:q,loading:W,renderLoading:B,disableHighlightToday:G,readOnly:te,disabled:ae,showDaysOutsideCurrentMonth:ce,dayOfWeekFormatter:U,sx:H,autoFocus:Q,fixedWeekNumber:L,displayWeekNumber:ee,timezone:ue}),_>0&&p.jsxs(b.Fragment,{children:[p.jsx(an,{orientation:"vertical"}),ne?Gl(m({},J,{view:"hours",views:["hours"],focusedView:o&&We(o)?"hours":null,sx:m({width:"auto",[`&.${_l.root}`]:{maxHeight:Ft}},Array.isArray(H)?H:[H])})):Kl(m({},J,{view:We(e)?e:"hours",views:n.filter(We),focusedView:o&&We(o)?o:null,sx:m({borderBottom:0,width:"auto",[`.${Ki.root}`]:{maxHeight:"100%"}},Array.isArray(H)?H:[H])}))]})]}),ke&&p.jsx(an,{})]})},ql=["props","getOpenDialogAriaText"],Ql=["ownerState"],Zl=["ownerState"],Xl=e=>{var t,n,o,s,r;let{props:a,getOpenDialogAriaText:i}=e,c=re(e,ql);const{slots:l,slotProps:d,className:y,sx:f,format:h,formatDensity:P,timezone:g,label:C,inputRef:D,readOnly:v,disabled:w,autoFocus:S,localeText:x,reduceAnimations:k}=a,$=fe(),I=b.useRef(null),T=b.useRef(null),O=Tt(),F=(t=d==null||(n=d.toolbar)==null?void 0:n.hidden)!=null?t:!1,{open:j,actions:N,hasUIView:V,layoutProps:M,renderCurrentView:z,shouldRestoreFocus:q,fieldProps:W}=to(m({},c,{props:a,inputRef:I,autoFocusView:!0,additionalViewProps:{},wrapperVariant:"desktop"})),B=(o=l.inputAdornment)!=null?o:Tn,G=Pe({elementType:B,externalSlotProps:d==null?void 0:d.inputAdornment,additionalProps:{position:"end"},ownerState:a}),te=re(G,Ql),ae=(s=l.openPickerButton)!=null?s:at,ce=Pe({elementType:ae,externalSlotProps:d==null?void 0:d.openPickerButton,additionalProps:{disabled:w||v,onClick:j?N.onClose:N.onOpen,"aria-label":i(W.value,$),edge:te.position},ownerState:a}),U=re(ce,Zl),H=l.openPickerIcon,Q=l.field,L=Pe({elementType:Q,externalSlotProps:d==null?void 0:d.field,additionalProps:m({},W,F&&{id:O},{readOnly:v,disabled:w,className:y,sx:f,format:h,formatDensity:P,timezone:g,label:C,autoFocus:S&&!a.open,focused:j?!0:void 0}),ownerState:a});V&&(L.InputProps=m({},L.InputProps,{ref:T,[`${te.position}Adornment`]:p.jsx(B,m({},te,{children:p.jsx(ae,m({},U,{children:p.jsx(H,m({},d==null?void 0:d.openPickerIcon))}))}))}));const ee=m({textField:l.textField,clearIcon:l.clearIcon,clearButton:l.clearButton},L.slots),ue=(r=l.layout)!=null?r:so,le=Ee(I,L.inputRef,D);let K=O;F&&(C?K=`${O}-label`:K=void 0);const Z=m({},d,{toolbar:m({},d==null?void 0:d.toolbar,{titleId:O}),popper:m({"aria-labelledby":K},d==null?void 0:d.popper)});return{renderPicker:()=>p.jsxs(kn,{localeText:x,children:[p.jsx(Q,m({},L,{slots:ee,slotProps:Z,inputRef:le})),p.jsx(Vr,m({role:"dialog",placement:"bottom-start",anchorEl:T.current},N,{open:j,slots:l,slotProps:Z,shouldRestoreFocus:q,reduceAnimations:k,children:p.jsx(ue,m({},M,Z==null?void 0:Z.layout,{slots:l,slotProps:Z,children:z()}))}))]})}},Jl=["views","format"],vo=(e,t)=>{let{views:n,format:o}=t,s=re(t,Jl);if(o)return o;const r=[],a=[];if(n.forEach(l=>{st(l)?a.push(l):r.push(l)}),a.length===0)return ln(e,m({views:r},s),!1);if(r.length===0)return un(e,m({views:a},s));const i=un(e,m({views:a},s));return`${ln(e,m({views:r},s),!1)} ${i}`},ec=(e,t,n)=>n?t.filter(o=>!We(o)||o==="hours"):e?[...t,"meridiem"]:t,tc=(e,t)=>{var n,o;return 24*60/(((n=e.hours)!=null?n:1)*((o=e.minutes)!=null?o:5))<=t};function nc({thresholdToRenderTimeInASingleColumn:e,ampm:t,timeSteps:n,views:o}){const s=e??24,r=m({hours:1,minutes:5,seconds:5},n),a=tc(r,s);return{thresholdToRenderTimeInASingleColumn:s,timeSteps:r,shouldRenderTimeInASingleColumn:a,views:ec(t,o,a)}}const xo=b.forwardRef(function(t,n){var o,s,r,a,i,c,l;const d=Me(),y=fe(),f=po(t,"MuiDesktopDateTimePicker"),{shouldRenderTimeInASingleColumn:h,thresholdToRenderTimeInASingleColumn:P,views:g,timeSteps:C}=nc(f),D=!f.viewRenderers||Object.keys(f.viewRenderers).length===0,v=D?{day:Ke,month:Ke,year:Ke,hours:Ke,minutes:Ke,seconds:Ke,meridiem:Ke}:m({day:ot,month:ot,year:ot,hours:null,minutes:null,seconds:null,meridiem:null},f.viewRenderers),w=(o=f.ampmInClock)!=null?o:!0,S=D?["accept"]:[],x=m({},f,{viewRenderers:v,format:vo(y,f),views:g,yearsPerRow:(s=f.yearsPerRow)!=null?s:4,ampmInClock:w,timeSteps:C,thresholdToRenderTimeInASingleColumn:P,shouldRenderTimeInASingleColumn:h,slots:m({field:co,openPickerIcon:sr},f.slots),slotProps:m({},f.slotProps,{field:$=>{var I;return m({},Yt((I=f.slotProps)==null?void 0:I.field,$),qn(f),{ref:n})},toolbar:m({hidden:!0,ampmInClock:w,toolbarVariant:D?"desktop":"mobile"},(r=f.slotProps)==null?void 0:r.toolbar),tabs:m({hidden:!0},(a=f.slotProps)==null?void 0:a.tabs),actionBar:m({actions:S},(i=f.slotProps)==null?void 0:i.actionBar)})}),{renderPicker:k}=Xl({props:x,valueManager:Te,valueType:"date-time",getOpenDialogAriaText:(c=(l=x.localeText)==null?void 0:l.openDatePickerDialogue)!=null?c:d.openDatePickerDialogue,validator:Zt});return k()});xo.propTypes={ampm:u.bool,ampmInClock:u.bool,autoFocus:u.bool,className:u.string,closeOnSelect:u.bool,components:u.object,componentsProps:u.object,dayOfWeekFormatter:u.func,defaultCalendarMonth:u.any,defaultValue:u.any,disabled:u.bool,disableFuture:u.bool,disableHighlightToday:u.bool,disableIgnoringDatePartForTimeValidation:u.bool,disableOpenPicker:u.bool,disablePast:u.bool,displayWeekNumber:u.bool,fixedWeekNumber:u.number,format:u.string,formatDensity:u.oneOf(["dense","spacious"]),inputRef:$n,label:u.node,loading:u.bool,localeText:u.object,maxDate:u.any,maxDateTime:u.any,maxTime:u.any,minDate:u.any,minDateTime:u.any,minTime:u.any,minutesStep:u.number,monthsPerRow:u.oneOf([3,4]),onAccept:u.func,onChange:u.func,onClose:u.func,onError:u.func,onMonthChange:u.func,onOpen:u.func,onSelectedSectionsChange:u.func,onViewChange:u.func,onYearChange:u.func,open:u.bool,openTo:u.oneOf(["day","hours","meridiem","minutes","month","seconds","year"]),orientation:u.oneOf(["landscape","portrait"]),readOnly:u.bool,reduceAnimations:u.bool,referenceDate:u.any,renderLoading:u.func,selectedSections:u.oneOfType([u.oneOf(["all","day","hours","meridiem","minutes","month","seconds","weekDay","year"]),u.number,u.shape({endIndex:u.number.isRequired,startIndex:u.number.isRequired})]),shouldDisableClock:u.func,shouldDisableDate:u.func,shouldDisableMonth:u.func,shouldDisableTime:u.func,shouldDisableYear:u.func,showDaysOutsideCurrentMonth:u.bool,skipDisabled:u.bool,slotProps:u.object,slots:u.object,sx:u.oneOfType([u.arrayOf(u.oneOfType([u.func,u.object,u.bool])),u.func,u.object]),thresholdToRenderTimeInASingleColumn:u.number,timeSteps:u.shape({hours:u.number,minutes:u.number,seconds:u.number}),timezone:u.string,value:u.any,view:u.oneOf(["day","hours","meridiem","minutes","month","seconds","year"]),viewRenderers:u.shape({day:u.func,hours:u.func,meridiem:u.func,minutes:u.func,month:u.func,seconds:u.func,year:u.func}),views:u.arrayOf(u.oneOf(["day","hours","minutes","month","seconds","year"]).isRequired),yearsPerRow:u.oneOf([3,4])};const oc=["props","getOpenDialogAriaText"],sc=e=>{var t,n,o;let{props:s,getOpenDialogAriaText:r}=e,a=re(e,oc);const{slots:i,slotProps:c,className:l,sx:d,format:y,formatDensity:f,timezone:h,label:P,inputRef:g,readOnly:C,disabled:D,localeText:v}=s,w=fe(),S=b.useRef(null),x=Tt(),k=(t=c==null||(n=c.toolbar)==null?void 0:n.hidden)!=null?t:!1,{open:$,actions:I,layoutProps:T,renderCurrentView:O,fieldProps:F}=to(m({},a,{props:s,inputRef:S,autoFocusView:!0,additionalViewProps:{},wrapperVariant:"mobile"})),j=i.field,N=Pe({elementType:j,externalSlotProps:c==null?void 0:c.field,additionalProps:m({},F,k&&{id:x},!(D||C)&&{onClick:I.onOpen,onKeyDown:Us(I.onOpen)},{readOnly:C??!0,disabled:D,className:l,sx:d,format:y,formatDensity:f,timezone:h,label:P}),ownerState:s});N.inputProps=m({},N.inputProps,{"aria-label":r(F.value,w)});const V=m({textField:i.textField},N.slots),M=(o=i.layout)!=null?o:so,z=Ee(S,N.inputRef,g);let q=x;k&&(P?q=`${x}-label`:q=void 0);const W=m({},c,{toolbar:m({},c==null?void 0:c.toolbar,{titleId:x}),mobilePaper:m({"aria-labelledby":q},c==null?void 0:c.mobilePaper)});return{renderPicker:()=>p.jsxs(kn,{localeText:v,children:[p.jsx(j,m({},N,{slots:V,slotProps:W,inputRef:z})),p.jsx(yr,m({},I,{open:$,slots:i,slotProps:W,children:p.jsx(M,m({},T,W==null?void 0:W.layout,{slots:i,slotProps:W,children:O()}))}))]})}},Co=b.forwardRef(function(t,n){var o,s,r,a,i;const c=Me(),l=fe(),d=po(t,"MuiMobileDateTimePicker"),y=m({day:ot,month:ot,year:ot,hours:Wt,minutes:Wt,seconds:Wt},d.viewRenderers),f=(o=d.ampmInClock)!=null?o:!1,h=m({},d,{viewRenderers:y,format:vo(l,d),ampmInClock:f,slots:m({field:co},d.slots),slotProps:m({},d.slotProps,{field:g=>{var C;return m({},Yt((C=d.slotProps)==null?void 0:C.field,g),qn(d),{ref:n})},toolbar:m({hidden:!1,ampmInClock:f},(s=d.slotProps)==null?void 0:s.toolbar),tabs:m({hidden:!1},(r=d.slotProps)==null?void 0:r.tabs)})}),{renderPicker:P}=sc({props:h,valueManager:Te,valueType:"date-time",getOpenDialogAriaText:(a=(i=h.localeText)==null?void 0:i.openDatePickerDialogue)!=null?a:c.openDatePickerDialogue,validator:Zt});return P()});Co.propTypes={ampm:u.bool,ampmInClock:u.bool,autoFocus:u.bool,className:u.string,closeOnSelect:u.bool,components:u.object,componentsProps:u.object,dayOfWeekFormatter:u.func,defaultCalendarMonth:u.any,defaultValue:u.any,disabled:u.bool,disableFuture:u.bool,disableHighlightToday:u.bool,disableIgnoringDatePartForTimeValidation:u.bool,disableOpenPicker:u.bool,disablePast:u.bool,displayWeekNumber:u.bool,fixedWeekNumber:u.number,format:u.string,formatDensity:u.oneOf(["dense","spacious"]),inputRef:$n,label:u.node,loading:u.bool,localeText:u.object,maxDate:u.any,maxDateTime:u.any,maxTime:u.any,minDate:u.any,minDateTime:u.any,minTime:u.any,minutesStep:u.number,monthsPerRow:u.oneOf([3,4]),onAccept:u.func,onChange:u.func,onClose:u.func,onError:u.func,onMonthChange:u.func,onOpen:u.func,onSelectedSectionsChange:u.func,onViewChange:u.func,onYearChange:u.func,open:u.bool,openTo:u.oneOf(["day","hours","minutes","month","seconds","year"]),orientation:u.oneOf(["landscape","portrait"]),readOnly:u.bool,reduceAnimations:u.bool,referenceDate:u.any,renderLoading:u.func,selectedSections:u.oneOfType([u.oneOf(["all","day","hours","meridiem","minutes","month","seconds","weekDay","year"]),u.number,u.shape({endIndex:u.number.isRequired,startIndex:u.number.isRequired})]),shouldDisableClock:u.func,shouldDisableDate:u.func,shouldDisableMonth:u.func,shouldDisableTime:u.func,shouldDisableYear:u.func,showDaysOutsideCurrentMonth:u.bool,slotProps:u.object,slots:u.object,sx:u.oneOfType([u.arrayOf(u.oneOfType([u.func,u.object,u.bool])),u.func,u.object]),timezone:u.string,value:u.any,view:u.oneOf(["day","hours","minutes","month","seconds","year"]),viewRenderers:u.shape({day:u.func,hours:u.func,minutes:u.func,month:u.func,seconds:u.func,year:u.func}),views:u.arrayOf(u.oneOf(["day","hours","minutes","month","seconds","year"]).isRequired),yearsPerRow:u.oneOf([3,4])};const rc=["desktopModeMediaQuery"],Pn=b.forwardRef(function(t,n){const o=pe({props:t,name:"MuiDateTimePicker"}),{desktopModeMediaQuery:s=Ys}=o,r=re(o,rc);return Sn(s,{defaultMatches:!0})?p.jsx(xo,m({ref:n},r)):p.jsx(Co,m({ref:n},r))}),vc=async({params:e,request:t})=>{const{searchParams:n}=new URL(t.url),{date_from:o,date_to:s}=Object.fromEntries(n.entries());return Rn(e.projectId,"missing projectId"),Eo.getProjectDashboard(e.projectId,o,s)},xc=()=>{const{projectId:e}=To();Rn(e,"missing projectId");const[t,n]=Mo(),o=Vo(),s=t.get("date_from"),r=t.get("date_to"),a=i=>c=>{n(l=>(l.delete(i),c&&l.append(i,jo(new Date(c.toISOString()))),l))};return p.jsxs(p.Fragment,{children:[p.jsxs(Ct,{container:!0,my:3,gap:2,justifyContent:"flex-end",justifyItems:"center",children:[p.jsx(Ct,{item:!0,children:p.jsx(Pn,{label:"From",value:s&&nn(s),onChange:a("date_from")})}),p.jsx(Ct,{item:!0,children:p.jsx(Pn,{label:"To",value:r&&nn(r),onChange:a("date_to")})})]}),p.jsx(Ct,{container:!0,spacing:3,direction:"row",alignItems:"stretch",children:p.jsx(No,{info:o})})]})};export{xc as Component,vc as loader}; diff --git a/src/evidently/ui/ui/static/js/Component-8b99584b.js b/src/evidently/ui/ui/static/js/Component-8b99584b.js new file mode 100644 index 0000000000..47c5c41d8b --- /dev/null +++ b/src/evidently/ui/ui/static/js/Component-8b99584b.js @@ -0,0 +1 @@ +import{k as n,h as d,j as o}from"./vendor-20fe28cb.js";import{i as e}from"./tiny-invariant-dd7d57d2.js";import{m as s}from"./createSvgIcon-41173291.js";import{e as m,f as p,c}from"./DashboardContent-ab24b4bf.js";import"./Button-085c6ce4.js";import"./TextField-33506b98.js";import"./TableRow-e790adad.js";import"./Grid-ec570cb4.js";import"./Toolbar-03fb06fb.js";import"./Tabs-2c8f7c5f.js";import"./Edit-f207c17d.js";const C=async({params:a})=>{const{projectId:t,testSuiteId:i}=a;return e(t,"missing projectId"),e(i,"missing testSuiteId"),s.getDashboard(t,i)},A={crumb:(a,{pathname:t,params:i})=>({to:t,linkText:String(i.testSuiteId)})},v=()=>{const{projectId:a,testSuiteId:t}=n();e(a,"missing projectId"),e(t,"missing testSuiteId");const i=d();return o.jsx(o.Fragment,{children:o.jsx(m.Provider,{value:p({getAdditionGraphData:r=>s.getAdditionalGraphData(a,t,r),getAdditionWidgetData:r=>s.getAdditionalWidgetData(a,t,r)}),children:o.jsx(c,{info:i})})})};export{v as Component,A as handle,C as loader}; diff --git a/src/evidently/ui/ui/static/js/Component-9ba3869f.js b/src/evidently/ui/ui/static/js/Component-9ba3869f.js new file mode 100644 index 0000000000..fe004ac7ae --- /dev/null +++ b/src/evidently/ui/ui/static/js/Component-9ba3869f.js @@ -0,0 +1 @@ +import{k as p,h as T,u as f,l as g,e as b,j as s,O as w,L as y}from"./vendor-20fe28cb.js";import{i as I}from"./tiny-invariant-dd7d57d2.js";import{m as L,j as l}from"./createSvgIcon-41173291.js";import{u as D,A,T as B,H as k,D as v}from"./useUpdateQueryStringValueWithoutNavigation-bd5f68fd.js";import{f as C}from"./Datetime-bd8955b4.js";import{G as r}from"./Grid-ec570cb4.js";import{T as S}from"./TextField-33506b98.js";import{T as $,a as F,b as m,c as t,d as G}from"./TableRow-e790adad.js";import{L as H}from"./Link-9fdafac8.js";import{B as M}from"./Button-085c6ce4.js";import"./ContentCopy-2be27db4.js";const z=async({params:n})=>(I(n.projectId,"missing projectId"),L.getTestSuites(n.projectId)),J={crumb:(n,{pathname:o})=>({to:o,linkText:"Test Suites"})},K=()=>{const{projectId:n}=p(),o=T(),x=f(),[j]=g(),[a,c]=b.useState(()=>{var e;return((e=j.get("tags"))==null?void 0:e.split(","))||[]});D("tags",a.join(","));const d=x.find(({id:e})=>e==="show-test-suite-by-id"),h=d?[]:Array.from(new Set(o.flatMap(({tags:e})=>e))),u=o.filter(({tags:e})=>d?!1:a.length===0?!0:a.every(i=>e.includes(i)));return d?s.jsx(r,{container:!0,children:s.jsx(r,{item:!0,xs:12,children:s.jsx(w,{})})}):s.jsxs(s.Fragment,{children:[s.jsx(l,{sx:{padding:2},children:s.jsxs(r,{container:!0,children:[s.jsx(r,{item:!0,xs:12,md:6,children:s.jsx(A,{multiple:!0,limitTags:2,value:a,onChange:(e,i)=>c(i),id:"tags",options:h,renderInput:e=>s.jsx(S,{...e,variant:"standard",label:"Filter by Tags"})})}),s.jsx(r,{item:!0,xs:6,sm:6})]})}),s.jsx(r,{container:!0,children:s.jsx(r,{item:!0,xs:12,children:s.jsxs($,{children:[s.jsx(F,{children:s.jsxs(m,{children:[s.jsx(t,{children:"Test Suite ID"}),s.jsx(t,{children:"Tags"}),s.jsx(t,{children:"Timestamp"}),s.jsx(t,{children:"Actions"})]})}),s.jsx(G,{children:u.map(e=>s.jsxs(m,{children:[s.jsx(t,{children:s.jsx(B,{showText:e.id,copyText:e.id})}),s.jsx(t,{children:s.jsx(l,{maxWidth:250,children:s.jsx(k,{onClick:i=>{a.includes(i)||c([...a,i])},tags:e.tags})})}),s.jsx(t,{children:C(new Date(Date.parse(e.timestamp)))}),s.jsxs(t,{children:[s.jsx(H,{component:y,to:`${e.id}`,children:s.jsx(M,{children:"View"})}),s.jsx(v,{downloadLink:`/api/projects/${n}/${e.id}/download`})]})]},`ts-${e.id}`))})]})})})]})};export{K as Component,J as handle,z as loader}; diff --git a/src/evidently/ui/ui/static/js/Component-b2a75726.js b/src/evidently/ui/ui/static/js/Component-b2a75726.js new file mode 100644 index 0000000000..245f5a6114 --- /dev/null +++ b/src/evidently/ui/ui/static/js/Component-b2a75726.js @@ -0,0 +1 @@ +import{e as at,R as pe,h as Pr,j as R,f as Lr,i as Fr,F as Ur,L as $r}from"./vendor-20fe28cb.js";import{d as Br}from"./Edit-f207c17d.js";import{m as hr,T as it,j as Rt,I as zr}from"./createSvgIcon-41173291.js";import{G as Wr}from"./Grid-ec570cb4.js";import{P as qr,B as Hr}from"./Button-085c6ce4.js";import{F as Jr,T as er}from"./TextField-33506b98.js";import{L as Yr}from"./Link-9fdafac8.js";const Gr=()=>{const[t,e]=at.useState(!1);return{hovered:t,hoverEventHandlers:{onMouseEnter:()=>e(!0),onMouseLeave:()=>e(!1)}}};var N;(function(t){t.assertEqual=n=>n;function e(n){}t.assertIs=e;function r(n){throw new Error}t.assertNever=r,t.arrayToEnum=n=>{const a={};for(const i of n)a[i]=i;return a},t.getValidEnumValues=n=>{const a=t.objectKeys(n).filter(c=>typeof n[n[c]]!="number"),i={};for(const c of a)i[c]=n[c];return t.objectValues(i)},t.objectValues=n=>t.objectKeys(n).map(function(a){return n[a]}),t.objectKeys=typeof Object.keys=="function"?n=>Object.keys(n):n=>{const a=[];for(const i in n)Object.prototype.hasOwnProperty.call(n,i)&&a.push(i);return a},t.find=(n,a)=>{for(const i of n)if(a(i))return i},t.isInteger=typeof Number.isInteger=="function"?n=>Number.isInteger(n):n=>typeof n=="number"&&isFinite(n)&&Math.floor(n)===n;function s(n,a=" | "){return n.map(i=>typeof i=="string"?`'${i}'`:i).join(a)}t.joinValues=s,t.jsonStringifyReplacer=(n,a)=>typeof a=="bigint"?a.toString():a})(N||(N={}));var It;(function(t){t.mergeShapes=(e,r)=>({...e,...r})})(It||(It={}));const y=N.arrayToEnum(["string","nan","number","integer","float","boolean","date","bigint","symbol","function","undefined","null","array","object","unknown","promise","void","never","map","set"]),me=t=>{switch(typeof t){case"undefined":return y.undefined;case"string":return y.string;case"number":return isNaN(t)?y.nan:y.number;case"boolean":return y.boolean;case"function":return y.function;case"bigint":return y.bigint;case"symbol":return y.symbol;case"object":return Array.isArray(t)?y.array:t===null?y.null:t.then&&typeof t.then=="function"&&t.catch&&typeof t.catch=="function"?y.promise:typeof Map<"u"&&t instanceof Map?y.map:typeof Set<"u"&&t instanceof Set?y.set:typeof Date<"u"&&t instanceof Date?y.date:y.object;default:return y.unknown}},h=N.arrayToEnum(["invalid_type","invalid_literal","custom","invalid_union","invalid_union_discriminator","invalid_enum_value","unrecognized_keys","invalid_arguments","invalid_return_type","invalid_date","invalid_string","too_small","too_big","invalid_intersection_types","not_multiple_of","not_finite"]),Kr=t=>JSON.stringify(t,null,2).replace(/"([^"]+)":/g,"$1:");class ee extends Error{constructor(e){super(),this.issues=[],this.addIssue=s=>{this.issues=[...this.issues,s]},this.addIssues=(s=[])=>{this.issues=[...this.issues,...s]};const r=new.target.prototype;Object.setPrototypeOf?Object.setPrototypeOf(this,r):this.__proto__=r,this.name="ZodError",this.issues=e}get errors(){return this.issues}format(e){const r=e||function(a){return a.message},s={_errors:[]},n=a=>{for(const i of a.issues)if(i.code==="invalid_union")i.unionErrors.map(n);else if(i.code==="invalid_return_type")n(i.returnTypeError);else if(i.code==="invalid_arguments")n(i.argumentsError);else if(i.path.length===0)s._errors.push(r(i));else{let c=s,l=0;for(;lr.message){const r={},s=[];for(const n of this.issues)n.path.length>0?(r[n.path[0]]=r[n.path[0]]||[],r[n.path[0]].push(e(n))):s.push(e(n));return{formErrors:s,fieldErrors:r}}get formErrors(){return this.flatten()}}ee.create=t=>new ee(t);const Fe=(t,e)=>{let r;switch(t.code){case h.invalid_type:t.received===y.undefined?r="Required":r=`Expected ${t.expected}, received ${t.received}`;break;case h.invalid_literal:r=`Invalid literal value, expected ${JSON.stringify(t.expected,N.jsonStringifyReplacer)}`;break;case h.unrecognized_keys:r=`Unrecognized key(s) in object: ${N.joinValues(t.keys,", ")}`;break;case h.invalid_union:r="Invalid input";break;case h.invalid_union_discriminator:r=`Invalid discriminator value. Expected ${N.joinValues(t.options)}`;break;case h.invalid_enum_value:r=`Invalid enum value. Expected ${N.joinValues(t.options)}, received '${t.received}'`;break;case h.invalid_arguments:r="Invalid function arguments";break;case h.invalid_return_type:r="Invalid function return type";break;case h.invalid_date:r="Invalid date";break;case h.invalid_string:typeof t.validation=="object"?"includes"in t.validation?(r=`Invalid input: must include "${t.validation.includes}"`,typeof t.validation.position=="number"&&(r=`${r} at one or more positions greater than or equal to ${t.validation.position}`)):"startsWith"in t.validation?r=`Invalid input: must start with "${t.validation.startsWith}"`:"endsWith"in t.validation?r=`Invalid input: must end with "${t.validation.endsWith}"`:N.assertNever(t.validation):t.validation!=="regex"?r=`Invalid ${t.validation}`:r="Invalid";break;case h.too_small:t.type==="array"?r=`Array must contain ${t.exact?"exactly":t.inclusive?"at least":"more than"} ${t.minimum} element(s)`:t.type==="string"?r=`String must contain ${t.exact?"exactly":t.inclusive?"at least":"over"} ${t.minimum} character(s)`:t.type==="number"?r=`Number must be ${t.exact?"exactly equal to ":t.inclusive?"greater than or equal to ":"greater than "}${t.minimum}`:t.type==="date"?r=`Date must be ${t.exact?"exactly equal to ":t.inclusive?"greater than or equal to ":"greater than "}${new Date(Number(t.minimum))}`:r="Invalid input";break;case h.too_big:t.type==="array"?r=`Array must contain ${t.exact?"exactly":t.inclusive?"at most":"less than"} ${t.maximum} element(s)`:t.type==="string"?r=`String must contain ${t.exact?"exactly":t.inclusive?"at most":"under"} ${t.maximum} character(s)`:t.type==="number"?r=`Number must be ${t.exact?"exactly":t.inclusive?"less than or equal to":"less than"} ${t.maximum}`:t.type==="bigint"?r=`BigInt must be ${t.exact?"exactly":t.inclusive?"less than or equal to":"less than"} ${t.maximum}`:t.type==="date"?r=`Date must be ${t.exact?"exactly":t.inclusive?"smaller than or equal to":"smaller than"} ${new Date(Number(t.maximum))}`:r="Invalid input";break;case h.custom:r="Invalid input";break;case h.invalid_intersection_types:r="Intersection results could not be merged";break;case h.not_multiple_of:r=`Number must be a multiple of ${t.multipleOf}`;break;case h.not_finite:r="Number must be finite";break;default:r=e.defaultError,N.assertNever(t)}return{message:r}};let pr=Fe;function Xr(t){pr=t}function ot(){return pr}const ct=t=>{const{data:e,path:r,errorMaps:s,issueData:n}=t,a=[...r,...n.path||[]],i={...n,path:a};let c="";const l=s.filter(f=>!!f).slice().reverse();for(const f of l)c=f(i,{data:e,defaultError:c}).message;return{...n,path:a,message:n.message||c}},Qr=[];function v(t,e){const r=ct({issueData:e,data:t.data,path:t.path,errorMaps:[t.common.contextualErrorMap,t.schemaErrorMap,ot(),Fe].filter(s=>!!s)});t.common.issues.push(r)}class B{constructor(){this.value="valid"}dirty(){this.value==="valid"&&(this.value="dirty")}abort(){this.value!=="aborted"&&(this.value="aborted")}static mergeArray(e,r){const s=[];for(const n of r){if(n.status==="aborted")return T;n.status==="dirty"&&e.dirty(),s.push(n.value)}return{status:e.value,value:s}}static async mergeObjectAsync(e,r){const s=[];for(const n of r)s.push({key:await n.key,value:await n.value});return B.mergeObjectSync(e,s)}static mergeObjectSync(e,r){const s={};for(const n of r){const{key:a,value:i}=n;if(a.status==="aborted"||i.status==="aborted")return T;a.status==="dirty"&&e.dirty(),i.status==="dirty"&&e.dirty(),a.value!=="__proto__"&&(typeof i.value<"u"||n.alwaysSet)&&(s[a.value]=i.value)}return{status:e.value,value:s}}}const T=Object.freeze({status:"aborted"}),mr=t=>({status:"dirty",value:t}),W=t=>({status:"valid",value:t}),Dt=t=>t.status==="aborted",Mt=t=>t.status==="dirty",Ue=t=>t.status==="valid",ut=t=>typeof Promise<"u"&&t instanceof Promise;var x;(function(t){t.errToObj=e=>typeof e=="string"?{message:e}:e||{},t.toString=e=>typeof e=="string"?e:e==null?void 0:e.message})(x||(x={}));class ie{constructor(e,r,s,n){this._cachedPath=[],this.parent=e,this.data=r,this._path=s,this._key=n}get path(){return this._cachedPath.length||(this._key instanceof Array?this._cachedPath.push(...this._path,...this._key):this._cachedPath.push(...this._path,this._key)),this._cachedPath}}const tr=(t,e)=>{if(Ue(e))return{success:!0,data:e.value};if(!t.common.issues.length)throw new Error("Validation failed but no issues detected.");return{success:!1,get error(){if(this._error)return this._error;const r=new ee(t.common.issues);return this._error=r,this._error}}};function S(t){if(!t)return{};const{errorMap:e,invalid_type_error:r,required_error:s,description:n}=t;if(e&&(r||s))throw new Error(`Can't use "invalid_type_error" or "required_error" in conjunction with custom error map.`);return e?{errorMap:e,description:n}:{errorMap:(i,c)=>i.code!=="invalid_type"?{message:c.defaultError}:typeof c.data>"u"?{message:s??c.defaultError}:{message:r??c.defaultError},description:n}}class E{constructor(e){this.spa=this.safeParseAsync,this._def=e,this.parse=this.parse.bind(this),this.safeParse=this.safeParse.bind(this),this.parseAsync=this.parseAsync.bind(this),this.safeParseAsync=this.safeParseAsync.bind(this),this.spa=this.spa.bind(this),this.refine=this.refine.bind(this),this.refinement=this.refinement.bind(this),this.superRefine=this.superRefine.bind(this),this.optional=this.optional.bind(this),this.nullable=this.nullable.bind(this),this.nullish=this.nullish.bind(this),this.array=this.array.bind(this),this.promise=this.promise.bind(this),this.or=this.or.bind(this),this.and=this.and.bind(this),this.transform=this.transform.bind(this),this.brand=this.brand.bind(this),this.default=this.default.bind(this),this.catch=this.catch.bind(this),this.describe=this.describe.bind(this),this.pipe=this.pipe.bind(this),this.readonly=this.readonly.bind(this),this.isNullable=this.isNullable.bind(this),this.isOptional=this.isOptional.bind(this)}get description(){return this._def.description}_getType(e){return me(e.data)}_getOrReturnCtx(e,r){return r||{common:e.parent.common,data:e.data,parsedType:me(e.data),schemaErrorMap:this._def.errorMap,path:e.path,parent:e.parent}}_processInputParams(e){return{status:new B,ctx:{common:e.parent.common,data:e.data,parsedType:me(e.data),schemaErrorMap:this._def.errorMap,path:e.path,parent:e.parent}}}_parseSync(e){const r=this._parse(e);if(ut(r))throw new Error("Synchronous parse encountered promise.");return r}_parseAsync(e){const r=this._parse(e);return Promise.resolve(r)}parse(e,r){const s=this.safeParse(e,r);if(s.success)return s.data;throw s.error}safeParse(e,r){var s;const n={common:{issues:[],async:(s=r==null?void 0:r.async)!==null&&s!==void 0?s:!1,contextualErrorMap:r==null?void 0:r.errorMap},path:(r==null?void 0:r.path)||[],schemaErrorMap:this._def.errorMap,parent:null,data:e,parsedType:me(e)},a=this._parseSync({data:e,path:n.path,parent:n});return tr(n,a)}async parseAsync(e,r){const s=await this.safeParseAsync(e,r);if(s.success)return s.data;throw s.error}async safeParseAsync(e,r){const s={common:{issues:[],contextualErrorMap:r==null?void 0:r.errorMap,async:!0},path:(r==null?void 0:r.path)||[],schemaErrorMap:this._def.errorMap,parent:null,data:e,parsedType:me(e)},n=this._parse({data:e,path:s.path,parent:s}),a=await(ut(n)?n:Promise.resolve(n));return tr(s,a)}refine(e,r){const s=n=>typeof r=="string"||typeof r>"u"?{message:r}:typeof r=="function"?r(n):r;return this._refinement((n,a)=>{const i=e(n),c=()=>a.addIssue({code:h.custom,...s(n)});return typeof Promise<"u"&&i instanceof Promise?i.then(l=>l?!0:(c(),!1)):i?!0:(c(),!1)})}refinement(e,r){return this._refinement((s,n)=>e(s)?!0:(n.addIssue(typeof r=="function"?r(s,n):r),!1))}_refinement(e){return new re({schema:this,typeName:k.ZodEffects,effect:{type:"refinement",refinement:e}})}superRefine(e){return this._refinement(e)}optional(){return fe.create(this,this._def)}nullable(){return Ae.create(this,this._def)}nullish(){return this.nullable().optional()}array(){return te.create(this,this._def)}promise(){return Ie.create(this,this._def)}or(e){return We.create([this,e],this._def)}and(e){return qe.create(this,e,this._def)}transform(e){return new re({...S(this._def),schema:this,typeName:k.ZodEffects,effect:{type:"transform",transform:e}})}default(e){const r=typeof e=="function"?e:()=>e;return new Ke({...S(this._def),innerType:this,defaultValue:r,typeName:k.ZodDefault})}brand(){return new vr({typeName:k.ZodBranded,type:this,...S(this._def)})}catch(e){const r=typeof e=="function"?e:()=>e;return new ht({...S(this._def),innerType:this,catchValue:r,typeName:k.ZodCatch})}describe(e){const r=this.constructor;return new r({...this._def,description:e})}pipe(e){return Xe.create(this,e)}readonly(){return mt.create(this)}isOptional(){return this.safeParse(void 0).success}isNullable(){return this.safeParse(null).success}}const es=/^c[^\s-]{8,}$/i,ts=/^[a-z][a-z0-9]*$/,rs=/^[0-9A-HJKMNP-TV-Z]{26}$/,ss=/^[0-9a-fA-F]{8}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{12}$/i,ns=/^(?!\.)(?!.*\.\.)([A-Z0-9_+-\.]*)[A-Z0-9_+-]@([A-Z0-9][A-Z0-9\-]*\.)+[A-Z]{2,}$/i,as="^(\\p{Extended_Pictographic}|\\p{Emoji_Component})+$";let Ot;const is=/^(((25[0-5])|(2[0-4][0-9])|(1[0-9]{2})|([0-9]{1,2}))\.){3}((25[0-5])|(2[0-4][0-9])|(1[0-9]{2})|([0-9]{1,2}))$/,os=/^(([a-f0-9]{1,4}:){7}|::([a-f0-9]{1,4}:){0,6}|([a-f0-9]{1,4}:){1}:([a-f0-9]{1,4}:){0,5}|([a-f0-9]{1,4}:){2}:([a-f0-9]{1,4}:){0,4}|([a-f0-9]{1,4}:){3}:([a-f0-9]{1,4}:){0,3}|([a-f0-9]{1,4}:){4}:([a-f0-9]{1,4}:){0,2}|([a-f0-9]{1,4}:){5}:([a-f0-9]{1,4}:){0,1})([a-f0-9]{1,4}|(((25[0-5])|(2[0-4][0-9])|(1[0-9]{2})|([0-9]{1,2}))\.){3}((25[0-5])|(2[0-4][0-9])|(1[0-9]{2})|([0-9]{1,2})))$/,cs=t=>t.precision?t.offset?new RegExp(`^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}\\.\\d{${t.precision}}(([+-]\\d{2}(:?\\d{2})?)|Z)$`):new RegExp(`^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}\\.\\d{${t.precision}}Z$`):t.precision===0?t.offset?new RegExp("^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}(([+-]\\d{2}(:?\\d{2})?)|Z)$"):new RegExp("^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}Z$"):t.offset?new RegExp("^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}(\\.\\d+)?(([+-]\\d{2}(:?\\d{2})?)|Z)$"):new RegExp("^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}(\\.\\d+)?Z$");function us(t,e){return!!((e==="v4"||!e)&&is.test(t)||(e==="v6"||!e)&&os.test(t))}class Q extends E{_parse(e){if(this._def.coerce&&(e.data=String(e.data)),this._getType(e)!==y.string){const a=this._getOrReturnCtx(e);return v(a,{code:h.invalid_type,expected:y.string,received:a.parsedType}),T}const s=new B;let n;for(const a of this._def.checks)if(a.kind==="min")e.data.lengtha.value&&(n=this._getOrReturnCtx(e,n),v(n,{code:h.too_big,maximum:a.value,type:"string",inclusive:!0,exact:!1,message:a.message}),s.dirty());else if(a.kind==="length"){const i=e.data.length>a.value,c=e.data.lengthe.test(n),{validation:r,code:h.invalid_string,...x.errToObj(s)})}_addCheck(e){return new Q({...this._def,checks:[...this._def.checks,e]})}email(e){return this._addCheck({kind:"email",...x.errToObj(e)})}url(e){return this._addCheck({kind:"url",...x.errToObj(e)})}emoji(e){return this._addCheck({kind:"emoji",...x.errToObj(e)})}uuid(e){return this._addCheck({kind:"uuid",...x.errToObj(e)})}cuid(e){return this._addCheck({kind:"cuid",...x.errToObj(e)})}cuid2(e){return this._addCheck({kind:"cuid2",...x.errToObj(e)})}ulid(e){return this._addCheck({kind:"ulid",...x.errToObj(e)})}ip(e){return this._addCheck({kind:"ip",...x.errToObj(e)})}datetime(e){var r;return typeof e=="string"?this._addCheck({kind:"datetime",precision:null,offset:!1,message:e}):this._addCheck({kind:"datetime",precision:typeof(e==null?void 0:e.precision)>"u"?null:e==null?void 0:e.precision,offset:(r=e==null?void 0:e.offset)!==null&&r!==void 0?r:!1,...x.errToObj(e==null?void 0:e.message)})}regex(e,r){return this._addCheck({kind:"regex",regex:e,...x.errToObj(r)})}includes(e,r){return this._addCheck({kind:"includes",value:e,position:r==null?void 0:r.position,...x.errToObj(r==null?void 0:r.message)})}startsWith(e,r){return this._addCheck({kind:"startsWith",value:e,...x.errToObj(r)})}endsWith(e,r){return this._addCheck({kind:"endsWith",value:e,...x.errToObj(r)})}min(e,r){return this._addCheck({kind:"min",value:e,...x.errToObj(r)})}max(e,r){return this._addCheck({kind:"max",value:e,...x.errToObj(r)})}length(e,r){return this._addCheck({kind:"length",value:e,...x.errToObj(r)})}nonempty(e){return this.min(1,x.errToObj(e))}trim(){return new Q({...this._def,checks:[...this._def.checks,{kind:"trim"}]})}toLowerCase(){return new Q({...this._def,checks:[...this._def.checks,{kind:"toLowerCase"}]})}toUpperCase(){return new Q({...this._def,checks:[...this._def.checks,{kind:"toUpperCase"}]})}get isDatetime(){return!!this._def.checks.find(e=>e.kind==="datetime")}get isEmail(){return!!this._def.checks.find(e=>e.kind==="email")}get isURL(){return!!this._def.checks.find(e=>e.kind==="url")}get isEmoji(){return!!this._def.checks.find(e=>e.kind==="emoji")}get isUUID(){return!!this._def.checks.find(e=>e.kind==="uuid")}get isCUID(){return!!this._def.checks.find(e=>e.kind==="cuid")}get isCUID2(){return!!this._def.checks.find(e=>e.kind==="cuid2")}get isULID(){return!!this._def.checks.find(e=>e.kind==="ulid")}get isIP(){return!!this._def.checks.find(e=>e.kind==="ip")}get minLength(){let e=null;for(const r of this._def.checks)r.kind==="min"&&(e===null||r.value>e)&&(e=r.value);return e}get maxLength(){let e=null;for(const r of this._def.checks)r.kind==="max"&&(e===null||r.value{var e;return new Q({checks:[],typeName:k.ZodString,coerce:(e=t==null?void 0:t.coerce)!==null&&e!==void 0?e:!1,...S(t)})};function ds(t,e){const r=(t.toString().split(".")[1]||"").length,s=(e.toString().split(".")[1]||"").length,n=r>s?r:s,a=parseInt(t.toFixed(n).replace(".","")),i=parseInt(e.toFixed(n).replace(".",""));return a%i/Math.pow(10,n)}class ve extends E{constructor(){super(...arguments),this.min=this.gte,this.max=this.lte,this.step=this.multipleOf}_parse(e){if(this._def.coerce&&(e.data=Number(e.data)),this._getType(e)!==y.number){const a=this._getOrReturnCtx(e);return v(a,{code:h.invalid_type,expected:y.number,received:a.parsedType}),T}let s;const n=new B;for(const a of this._def.checks)a.kind==="int"?N.isInteger(e.data)||(s=this._getOrReturnCtx(e,s),v(s,{code:h.invalid_type,expected:"integer",received:"float",message:a.message}),n.dirty()):a.kind==="min"?(a.inclusive?e.dataa.value:e.data>=a.value)&&(s=this._getOrReturnCtx(e,s),v(s,{code:h.too_big,maximum:a.value,type:"number",inclusive:a.inclusive,exact:!1,message:a.message}),n.dirty()):a.kind==="multipleOf"?ds(e.data,a.value)!==0&&(s=this._getOrReturnCtx(e,s),v(s,{code:h.not_multiple_of,multipleOf:a.value,message:a.message}),n.dirty()):a.kind==="finite"?Number.isFinite(e.data)||(s=this._getOrReturnCtx(e,s),v(s,{code:h.not_finite,message:a.message}),n.dirty()):N.assertNever(a);return{status:n.value,value:e.data}}gte(e,r){return this.setLimit("min",e,!0,x.toString(r))}gt(e,r){return this.setLimit("min",e,!1,x.toString(r))}lte(e,r){return this.setLimit("max",e,!0,x.toString(r))}lt(e,r){return this.setLimit("max",e,!1,x.toString(r))}setLimit(e,r,s,n){return new ve({...this._def,checks:[...this._def.checks,{kind:e,value:r,inclusive:s,message:x.toString(n)}]})}_addCheck(e){return new ve({...this._def,checks:[...this._def.checks,e]})}int(e){return this._addCheck({kind:"int",message:x.toString(e)})}positive(e){return this._addCheck({kind:"min",value:0,inclusive:!1,message:x.toString(e)})}negative(e){return this._addCheck({kind:"max",value:0,inclusive:!1,message:x.toString(e)})}nonpositive(e){return this._addCheck({kind:"max",value:0,inclusive:!0,message:x.toString(e)})}nonnegative(e){return this._addCheck({kind:"min",value:0,inclusive:!0,message:x.toString(e)})}multipleOf(e,r){return this._addCheck({kind:"multipleOf",value:e,message:x.toString(r)})}finite(e){return this._addCheck({kind:"finite",message:x.toString(e)})}safe(e){return this._addCheck({kind:"min",inclusive:!0,value:Number.MIN_SAFE_INTEGER,message:x.toString(e)})._addCheck({kind:"max",inclusive:!0,value:Number.MAX_SAFE_INTEGER,message:x.toString(e)})}get minValue(){let e=null;for(const r of this._def.checks)r.kind==="min"&&(e===null||r.value>e)&&(e=r.value);return e}get maxValue(){let e=null;for(const r of this._def.checks)r.kind==="max"&&(e===null||r.valuee.kind==="int"||e.kind==="multipleOf"&&N.isInteger(e.value))}get isFinite(){let e=null,r=null;for(const s of this._def.checks){if(s.kind==="finite"||s.kind==="int"||s.kind==="multipleOf")return!0;s.kind==="min"?(r===null||s.value>r)&&(r=s.value):s.kind==="max"&&(e===null||s.valuenew ve({checks:[],typeName:k.ZodNumber,coerce:(t==null?void 0:t.coerce)||!1,...S(t)});class ge extends E{constructor(){super(...arguments),this.min=this.gte,this.max=this.lte}_parse(e){if(this._def.coerce&&(e.data=BigInt(e.data)),this._getType(e)!==y.bigint){const a=this._getOrReturnCtx(e);return v(a,{code:h.invalid_type,expected:y.bigint,received:a.parsedType}),T}let s;const n=new B;for(const a of this._def.checks)a.kind==="min"?(a.inclusive?e.dataa.value:e.data>=a.value)&&(s=this._getOrReturnCtx(e,s),v(s,{code:h.too_big,type:"bigint",maximum:a.value,inclusive:a.inclusive,message:a.message}),n.dirty()):a.kind==="multipleOf"?e.data%a.value!==BigInt(0)&&(s=this._getOrReturnCtx(e,s),v(s,{code:h.not_multiple_of,multipleOf:a.value,message:a.message}),n.dirty()):N.assertNever(a);return{status:n.value,value:e.data}}gte(e,r){return this.setLimit("min",e,!0,x.toString(r))}gt(e,r){return this.setLimit("min",e,!1,x.toString(r))}lte(e,r){return this.setLimit("max",e,!0,x.toString(r))}lt(e,r){return this.setLimit("max",e,!1,x.toString(r))}setLimit(e,r,s,n){return new ge({...this._def,checks:[...this._def.checks,{kind:e,value:r,inclusive:s,message:x.toString(n)}]})}_addCheck(e){return new ge({...this._def,checks:[...this._def.checks,e]})}positive(e){return this._addCheck({kind:"min",value:BigInt(0),inclusive:!1,message:x.toString(e)})}negative(e){return this._addCheck({kind:"max",value:BigInt(0),inclusive:!1,message:x.toString(e)})}nonpositive(e){return this._addCheck({kind:"max",value:BigInt(0),inclusive:!0,message:x.toString(e)})}nonnegative(e){return this._addCheck({kind:"min",value:BigInt(0),inclusive:!0,message:x.toString(e)})}multipleOf(e,r){return this._addCheck({kind:"multipleOf",value:e,message:x.toString(r)})}get minValue(){let e=null;for(const r of this._def.checks)r.kind==="min"&&(e===null||r.value>e)&&(e=r.value);return e}get maxValue(){let e=null;for(const r of this._def.checks)r.kind==="max"&&(e===null||r.value{var e;return new ge({checks:[],typeName:k.ZodBigInt,coerce:(e=t==null?void 0:t.coerce)!==null&&e!==void 0?e:!1,...S(t)})};class $e extends E{_parse(e){if(this._def.coerce&&(e.data=!!e.data),this._getType(e)!==y.boolean){const s=this._getOrReturnCtx(e);return v(s,{code:h.invalid_type,expected:y.boolean,received:s.parsedType}),T}return W(e.data)}}$e.create=t=>new $e({typeName:k.ZodBoolean,coerce:(t==null?void 0:t.coerce)||!1,...S(t)});class Se extends E{_parse(e){if(this._def.coerce&&(e.data=new Date(e.data)),this._getType(e)!==y.date){const a=this._getOrReturnCtx(e);return v(a,{code:h.invalid_type,expected:y.date,received:a.parsedType}),T}if(isNaN(e.data.getTime())){const a=this._getOrReturnCtx(e);return v(a,{code:h.invalid_date}),T}const s=new B;let n;for(const a of this._def.checks)a.kind==="min"?e.data.getTime()a.value&&(n=this._getOrReturnCtx(e,n),v(n,{code:h.too_big,message:a.message,inclusive:!0,exact:!1,maximum:a.value,type:"date"}),s.dirty()):N.assertNever(a);return{status:s.value,value:new Date(e.data.getTime())}}_addCheck(e){return new Se({...this._def,checks:[...this._def.checks,e]})}min(e,r){return this._addCheck({kind:"min",value:e.getTime(),message:x.toString(r)})}max(e,r){return this._addCheck({kind:"max",value:e.getTime(),message:x.toString(r)})}get minDate(){let e=null;for(const r of this._def.checks)r.kind==="min"&&(e===null||r.value>e)&&(e=r.value);return e!=null?new Date(e):null}get maxDate(){let e=null;for(const r of this._def.checks)r.kind==="max"&&(e===null||r.valuenew Se({checks:[],coerce:(t==null?void 0:t.coerce)||!1,typeName:k.ZodDate,...S(t)});class dt extends E{_parse(e){if(this._getType(e)!==y.symbol){const s=this._getOrReturnCtx(e);return v(s,{code:h.invalid_type,expected:y.symbol,received:s.parsedType}),T}return W(e.data)}}dt.create=t=>new dt({typeName:k.ZodSymbol,...S(t)});class Be extends E{_parse(e){if(this._getType(e)!==y.undefined){const s=this._getOrReturnCtx(e);return v(s,{code:h.invalid_type,expected:y.undefined,received:s.parsedType}),T}return W(e.data)}}Be.create=t=>new Be({typeName:k.ZodUndefined,...S(t)});class ze extends E{_parse(e){if(this._getType(e)!==y.null){const s=this._getOrReturnCtx(e);return v(s,{code:h.invalid_type,expected:y.null,received:s.parsedType}),T}return W(e.data)}}ze.create=t=>new ze({typeName:k.ZodNull,...S(t)});class Re extends E{constructor(){super(...arguments),this._any=!0}_parse(e){return W(e.data)}}Re.create=t=>new Re({typeName:k.ZodAny,...S(t)});class Te extends E{constructor(){super(...arguments),this._unknown=!0}_parse(e){return W(e.data)}}Te.create=t=>new Te({typeName:k.ZodUnknown,...S(t)});class he extends E{_parse(e){const r=this._getOrReturnCtx(e);return v(r,{code:h.invalid_type,expected:y.never,received:r.parsedType}),T}}he.create=t=>new he({typeName:k.ZodNever,...S(t)});class lt extends E{_parse(e){if(this._getType(e)!==y.undefined){const s=this._getOrReturnCtx(e);return v(s,{code:h.invalid_type,expected:y.void,received:s.parsedType}),T}return W(e.data)}}lt.create=t=>new lt({typeName:k.ZodVoid,...S(t)});class te extends E{_parse(e){const{ctx:r,status:s}=this._processInputParams(e),n=this._def;if(r.parsedType!==y.array)return v(r,{code:h.invalid_type,expected:y.array,received:r.parsedType}),T;if(n.exactLength!==null){const i=r.data.length>n.exactLength.value,c=r.data.lengthn.maxLength.value&&(v(r,{code:h.too_big,maximum:n.maxLength.value,type:"array",inclusive:!0,exact:!1,message:n.maxLength.message}),s.dirty()),r.common.async)return Promise.all([...r.data].map((i,c)=>n.type._parseAsync(new ie(r,i,r.path,c)))).then(i=>B.mergeArray(s,i));const a=[...r.data].map((i,c)=>n.type._parseSync(new ie(r,i,r.path,c)));return B.mergeArray(s,a)}get element(){return this._def.type}min(e,r){return new te({...this._def,minLength:{value:e,message:x.toString(r)}})}max(e,r){return new te({...this._def,maxLength:{value:e,message:x.toString(r)}})}length(e,r){return new te({...this._def,exactLength:{value:e,message:x.toString(r)}})}nonempty(e){return this.min(1,e)}}te.create=(t,e)=>new te({type:t,minLength:null,maxLength:null,exactLength:null,typeName:k.ZodArray,...S(e)});function Ne(t){if(t instanceof I){const e={};for(const r in t.shape){const s=t.shape[r];e[r]=fe.create(Ne(s))}return new I({...t._def,shape:()=>e})}else return t instanceof te?new te({...t._def,type:Ne(t.element)}):t instanceof fe?fe.create(Ne(t.unwrap())):t instanceof Ae?Ae.create(Ne(t.unwrap())):t instanceof oe?oe.create(t.items.map(e=>Ne(e))):t}class I extends E{constructor(){super(...arguments),this._cached=null,this.nonstrict=this.passthrough,this.augment=this.extend}_getCached(){if(this._cached!==null)return this._cached;const e=this._def.shape(),r=N.objectKeys(e);return this._cached={shape:e,keys:r}}_parse(e){if(this._getType(e)!==y.object){const f=this._getOrReturnCtx(e);return v(f,{code:h.invalid_type,expected:y.object,received:f.parsedType}),T}const{status:s,ctx:n}=this._processInputParams(e),{shape:a,keys:i}=this._getCached(),c=[];if(!(this._def.catchall instanceof he&&this._def.unknownKeys==="strip"))for(const f in n.data)i.includes(f)||c.push(f);const l=[];for(const f of i){const w=a[f],A=n.data[f];l.push({key:{status:"valid",value:f},value:w._parse(new ie(n,A,n.path,f)),alwaysSet:f in n.data})}if(this._def.catchall instanceof he){const f=this._def.unknownKeys;if(f==="passthrough")for(const w of c)l.push({key:{status:"valid",value:w},value:{status:"valid",value:n.data[w]}});else if(f==="strict")c.length>0&&(v(n,{code:h.unrecognized_keys,keys:c}),s.dirty());else if(f!=="strip")throw new Error("Internal ZodObject error: invalid unknownKeys value.")}else{const f=this._def.catchall;for(const w of c){const A=n.data[w];l.push({key:{status:"valid",value:w},value:f._parse(new ie(n,A,n.path,w)),alwaysSet:w in n.data})}}return n.common.async?Promise.resolve().then(async()=>{const f=[];for(const w of l){const A=await w.key;f.push({key:A,value:await w.value,alwaysSet:w.alwaysSet})}return f}).then(f=>B.mergeObjectSync(s,f)):B.mergeObjectSync(s,l)}get shape(){return this._def.shape()}strict(e){return x.errToObj,new I({...this._def,unknownKeys:"strict",...e!==void 0?{errorMap:(r,s)=>{var n,a,i,c;const l=(i=(a=(n=this._def).errorMap)===null||a===void 0?void 0:a.call(n,r,s).message)!==null&&i!==void 0?i:s.defaultError;return r.code==="unrecognized_keys"?{message:(c=x.errToObj(e).message)!==null&&c!==void 0?c:l}:{message:l}}}:{}})}strip(){return new I({...this._def,unknownKeys:"strip"})}passthrough(){return new I({...this._def,unknownKeys:"passthrough"})}extend(e){return new I({...this._def,shape:()=>({...this._def.shape(),...e})})}merge(e){return new I({unknownKeys:e._def.unknownKeys,catchall:e._def.catchall,shape:()=>({...this._def.shape(),...e._def.shape()}),typeName:k.ZodObject})}setKey(e,r){return this.augment({[e]:r})}catchall(e){return new I({...this._def,catchall:e})}pick(e){const r={};return N.objectKeys(e).forEach(s=>{e[s]&&this.shape[s]&&(r[s]=this.shape[s])}),new I({...this._def,shape:()=>r})}omit(e){const r={};return N.objectKeys(this.shape).forEach(s=>{e[s]||(r[s]=this.shape[s])}),new I({...this._def,shape:()=>r})}deepPartial(){return Ne(this)}partial(e){const r={};return N.objectKeys(this.shape).forEach(s=>{const n=this.shape[s];e&&!e[s]?r[s]=n:r[s]=n.optional()}),new I({...this._def,shape:()=>r})}required(e){const r={};return N.objectKeys(this.shape).forEach(s=>{if(e&&!e[s])r[s]=this.shape[s];else{let a=this.shape[s];for(;a instanceof fe;)a=a._def.innerType;r[s]=a}}),new I({...this._def,shape:()=>r})}keyof(){return yr(N.objectKeys(this.shape))}}I.create=(t,e)=>new I({shape:()=>t,unknownKeys:"strip",catchall:he.create(),typeName:k.ZodObject,...S(e)});I.strictCreate=(t,e)=>new I({shape:()=>t,unknownKeys:"strict",catchall:he.create(),typeName:k.ZodObject,...S(e)});I.lazycreate=(t,e)=>new I({shape:t,unknownKeys:"strip",catchall:he.create(),typeName:k.ZodObject,...S(e)});class We extends E{_parse(e){const{ctx:r}=this._processInputParams(e),s=this._def.options;function n(a){for(const c of a)if(c.result.status==="valid")return c.result;for(const c of a)if(c.result.status==="dirty")return r.common.issues.push(...c.ctx.common.issues),c.result;const i=a.map(c=>new ee(c.ctx.common.issues));return v(r,{code:h.invalid_union,unionErrors:i}),T}if(r.common.async)return Promise.all(s.map(async a=>{const i={...r,common:{...r.common,issues:[]},parent:null};return{result:await a._parseAsync({data:r.data,path:r.path,parent:i}),ctx:i}})).then(n);{let a;const i=[];for(const l of s){const f={...r,common:{...r.common,issues:[]},parent:null},w=l._parseSync({data:r.data,path:r.path,parent:f});if(w.status==="valid")return w;w.status==="dirty"&&!a&&(a={result:w,ctx:f}),f.common.issues.length&&i.push(f.common.issues)}if(a)return r.common.issues.push(...a.ctx.common.issues),a.result;const c=i.map(l=>new ee(l));return v(r,{code:h.invalid_union,unionErrors:c}),T}}get options(){return this._def.options}}We.create=(t,e)=>new We({options:t,typeName:k.ZodUnion,...S(e)});const st=t=>t instanceof Je?st(t.schema):t instanceof re?st(t.innerType()):t instanceof Ye?[t.value]:t instanceof _e?t.options:t instanceof Ge?Object.keys(t.enum):t instanceof Ke?st(t._def.innerType):t instanceof Be?[void 0]:t instanceof ze?[null]:null;class xt extends E{_parse(e){const{ctx:r}=this._processInputParams(e);if(r.parsedType!==y.object)return v(r,{code:h.invalid_type,expected:y.object,received:r.parsedType}),T;const s=this.discriminator,n=r.data[s],a=this.optionsMap.get(n);return a?r.common.async?a._parseAsync({data:r.data,path:r.path,parent:r}):a._parseSync({data:r.data,path:r.path,parent:r}):(v(r,{code:h.invalid_union_discriminator,options:Array.from(this.optionsMap.keys()),path:[s]}),T)}get discriminator(){return this._def.discriminator}get options(){return this._def.options}get optionsMap(){return this._def.optionsMap}static create(e,r,s){const n=new Map;for(const a of r){const i=st(a.shape[e]);if(!i)throw new Error(`A discriminator value for key \`${e}\` could not be extracted from all schema options`);for(const c of i){if(n.has(c))throw new Error(`Discriminator property ${String(e)} has duplicate value ${String(c)}`);n.set(c,a)}}return new xt({typeName:k.ZodDiscriminatedUnion,discriminator:e,options:r,optionsMap:n,...S(s)})}}function Pt(t,e){const r=me(t),s=me(e);if(t===e)return{valid:!0,data:t};if(r===y.object&&s===y.object){const n=N.objectKeys(e),a=N.objectKeys(t).filter(c=>n.indexOf(c)!==-1),i={...t,...e};for(const c of a){const l=Pt(t[c],e[c]);if(!l.valid)return{valid:!1};i[c]=l.data}return{valid:!0,data:i}}else if(r===y.array&&s===y.array){if(t.length!==e.length)return{valid:!1};const n=[];for(let a=0;a{if(Dt(a)||Dt(i))return T;const c=Pt(a.value,i.value);return c.valid?((Mt(a)||Mt(i))&&r.dirty(),{status:r.value,value:c.data}):(v(s,{code:h.invalid_intersection_types}),T)};return s.common.async?Promise.all([this._def.left._parseAsync({data:s.data,path:s.path,parent:s}),this._def.right._parseAsync({data:s.data,path:s.path,parent:s})]).then(([a,i])=>n(a,i)):n(this._def.left._parseSync({data:s.data,path:s.path,parent:s}),this._def.right._parseSync({data:s.data,path:s.path,parent:s}))}}qe.create=(t,e,r)=>new qe({left:t,right:e,typeName:k.ZodIntersection,...S(r)});class oe extends E{_parse(e){const{status:r,ctx:s}=this._processInputParams(e);if(s.parsedType!==y.array)return v(s,{code:h.invalid_type,expected:y.array,received:s.parsedType}),T;if(s.data.lengththis._def.items.length&&(v(s,{code:h.too_big,maximum:this._def.items.length,inclusive:!0,exact:!1,type:"array"}),r.dirty());const a=[...s.data].map((i,c)=>{const l=this._def.items[c]||this._def.rest;return l?l._parse(new ie(s,i,s.path,c)):null}).filter(i=>!!i);return s.common.async?Promise.all(a).then(i=>B.mergeArray(r,i)):B.mergeArray(r,a)}get items(){return this._def.items}rest(e){return new oe({...this._def,rest:e})}}oe.create=(t,e)=>{if(!Array.isArray(t))throw new Error("You must pass an array of schemas to z.tuple([ ... ])");return new oe({items:t,typeName:k.ZodTuple,rest:null,...S(e)})};class He extends E{get keySchema(){return this._def.keyType}get valueSchema(){return this._def.valueType}_parse(e){const{status:r,ctx:s}=this._processInputParams(e);if(s.parsedType!==y.object)return v(s,{code:h.invalid_type,expected:y.object,received:s.parsedType}),T;const n=[],a=this._def.keyType,i=this._def.valueType;for(const c in s.data)n.push({key:a._parse(new ie(s,c,s.path,c)),value:i._parse(new ie(s,s.data[c],s.path,c))});return s.common.async?B.mergeObjectAsync(r,n):B.mergeObjectSync(r,n)}get element(){return this._def.valueType}static create(e,r,s){return r instanceof E?new He({keyType:e,valueType:r,typeName:k.ZodRecord,...S(s)}):new He({keyType:Q.create(),valueType:e,typeName:k.ZodRecord,...S(r)})}}class ft extends E{get keySchema(){return this._def.keyType}get valueSchema(){return this._def.valueType}_parse(e){const{status:r,ctx:s}=this._processInputParams(e);if(s.parsedType!==y.map)return v(s,{code:h.invalid_type,expected:y.map,received:s.parsedType}),T;const n=this._def.keyType,a=this._def.valueType,i=[...s.data.entries()].map(([c,l],f)=>({key:n._parse(new ie(s,c,s.path,[f,"key"])),value:a._parse(new ie(s,l,s.path,[f,"value"]))}));if(s.common.async){const c=new Map;return Promise.resolve().then(async()=>{for(const l of i){const f=await l.key,w=await l.value;if(f.status==="aborted"||w.status==="aborted")return T;(f.status==="dirty"||w.status==="dirty")&&r.dirty(),c.set(f.value,w.value)}return{status:r.value,value:c}})}else{const c=new Map;for(const l of i){const f=l.key,w=l.value;if(f.status==="aborted"||w.status==="aborted")return T;(f.status==="dirty"||w.status==="dirty")&&r.dirty(),c.set(f.value,w.value)}return{status:r.value,value:c}}}}ft.create=(t,e,r)=>new ft({valueType:e,keyType:t,typeName:k.ZodMap,...S(r)});class Ee extends E{_parse(e){const{status:r,ctx:s}=this._processInputParams(e);if(s.parsedType!==y.set)return v(s,{code:h.invalid_type,expected:y.set,received:s.parsedType}),T;const n=this._def;n.minSize!==null&&s.data.sizen.maxSize.value&&(v(s,{code:h.too_big,maximum:n.maxSize.value,type:"set",inclusive:!0,exact:!1,message:n.maxSize.message}),r.dirty());const a=this._def.valueType;function i(l){const f=new Set;for(const w of l){if(w.status==="aborted")return T;w.status==="dirty"&&r.dirty(),f.add(w.value)}return{status:r.value,value:f}}const c=[...s.data.values()].map((l,f)=>a._parse(new ie(s,l,s.path,f)));return s.common.async?Promise.all(c).then(l=>i(l)):i(c)}min(e,r){return new Ee({...this._def,minSize:{value:e,message:x.toString(r)}})}max(e,r){return new Ee({...this._def,maxSize:{value:e,message:x.toString(r)}})}size(e,r){return this.min(e,r).max(e,r)}nonempty(e){return this.min(1,e)}}Ee.create=(t,e)=>new Ee({valueType:t,minSize:null,maxSize:null,typeName:k.ZodSet,...S(e)});class je extends E{constructor(){super(...arguments),this.validate=this.implement}_parse(e){const{ctx:r}=this._processInputParams(e);if(r.parsedType!==y.function)return v(r,{code:h.invalid_type,expected:y.function,received:r.parsedType}),T;function s(c,l){return ct({data:c,path:r.path,errorMaps:[r.common.contextualErrorMap,r.schemaErrorMap,ot(),Fe].filter(f=>!!f),issueData:{code:h.invalid_arguments,argumentsError:l}})}function n(c,l){return ct({data:c,path:r.path,errorMaps:[r.common.contextualErrorMap,r.schemaErrorMap,ot(),Fe].filter(f=>!!f),issueData:{code:h.invalid_return_type,returnTypeError:l}})}const a={errorMap:r.common.contextualErrorMap},i=r.data;if(this._def.returns instanceof Ie){const c=this;return W(async function(...l){const f=new ee([]),w=await c._def.args.parseAsync(l,a).catch(H=>{throw f.addIssue(s(l,H)),f}),A=await Reflect.apply(i,this,w);return await c._def.returns._def.type.parseAsync(A,a).catch(H=>{throw f.addIssue(n(A,H)),f})})}else{const c=this;return W(function(...l){const f=c._def.args.safeParse(l,a);if(!f.success)throw new ee([s(l,f.error)]);const w=Reflect.apply(i,this,f.data),A=c._def.returns.safeParse(w,a);if(!A.success)throw new ee([n(w,A.error)]);return A.data})}}parameters(){return this._def.args}returnType(){return this._def.returns}args(...e){return new je({...this._def,args:oe.create(e).rest(Te.create())})}returns(e){return new je({...this._def,returns:e})}implement(e){return this.parse(e)}strictImplement(e){return this.parse(e)}static create(e,r,s){return new je({args:e||oe.create([]).rest(Te.create()),returns:r||Te.create(),typeName:k.ZodFunction,...S(s)})}}class Je extends E{get schema(){return this._def.getter()}_parse(e){const{ctx:r}=this._processInputParams(e);return this._def.getter()._parse({data:r.data,path:r.path,parent:r})}}Je.create=(t,e)=>new Je({getter:t,typeName:k.ZodLazy,...S(e)});class Ye extends E{_parse(e){if(e.data!==this._def.value){const r=this._getOrReturnCtx(e);return v(r,{received:r.data,code:h.invalid_literal,expected:this._def.value}),T}return{status:"valid",value:e.data}}get value(){return this._def.value}}Ye.create=(t,e)=>new Ye({value:t,typeName:k.ZodLiteral,...S(e)});function yr(t,e){return new _e({values:t,typeName:k.ZodEnum,...S(e)})}class _e extends E{_parse(e){if(typeof e.data!="string"){const r=this._getOrReturnCtx(e),s=this._def.values;return v(r,{expected:N.joinValues(s),received:r.parsedType,code:h.invalid_type}),T}if(this._def.values.indexOf(e.data)===-1){const r=this._getOrReturnCtx(e),s=this._def.values;return v(r,{received:r.data,code:h.invalid_enum_value,options:s}),T}return W(e.data)}get options(){return this._def.values}get enum(){const e={};for(const r of this._def.values)e[r]=r;return e}get Values(){const e={};for(const r of this._def.values)e[r]=r;return e}get Enum(){const e={};for(const r of this._def.values)e[r]=r;return e}extract(e){return _e.create(e)}exclude(e){return _e.create(this.options.filter(r=>!e.includes(r)))}}_e.create=yr;class Ge extends E{_parse(e){const r=N.getValidEnumValues(this._def.values),s=this._getOrReturnCtx(e);if(s.parsedType!==y.string&&s.parsedType!==y.number){const n=N.objectValues(r);return v(s,{expected:N.joinValues(n),received:s.parsedType,code:h.invalid_type}),T}if(r.indexOf(e.data)===-1){const n=N.objectValues(r);return v(s,{received:s.data,code:h.invalid_enum_value,options:n}),T}return W(e.data)}get enum(){return this._def.values}}Ge.create=(t,e)=>new Ge({values:t,typeName:k.ZodNativeEnum,...S(e)});class Ie extends E{unwrap(){return this._def.type}_parse(e){const{ctx:r}=this._processInputParams(e);if(r.parsedType!==y.promise&&r.common.async===!1)return v(r,{code:h.invalid_type,expected:y.promise,received:r.parsedType}),T;const s=r.parsedType===y.promise?r.data:Promise.resolve(r.data);return W(s.then(n=>this._def.type.parseAsync(n,{path:r.path,errorMap:r.common.contextualErrorMap})))}}Ie.create=(t,e)=>new Ie({type:t,typeName:k.ZodPromise,...S(e)});class re extends E{innerType(){return this._def.schema}sourceType(){return this._def.schema._def.typeName===k.ZodEffects?this._def.schema.sourceType():this._def.schema}_parse(e){const{status:r,ctx:s}=this._processInputParams(e),n=this._def.effect||null,a={addIssue:i=>{v(s,i),i.fatal?r.abort():r.dirty()},get path(){return s.path}};if(a.addIssue=a.addIssue.bind(a),n.type==="preprocess"){const i=n.transform(s.data,a);return s.common.issues.length?{status:"dirty",value:s.data}:s.common.async?Promise.resolve(i).then(c=>this._def.schema._parseAsync({data:c,path:s.path,parent:s})):this._def.schema._parseSync({data:i,path:s.path,parent:s})}if(n.type==="refinement"){const i=c=>{const l=n.refinement(c,a);if(s.common.async)return Promise.resolve(l);if(l instanceof Promise)throw new Error("Async refinement encountered during synchronous parse operation. Use .parseAsync instead.");return c};if(s.common.async===!1){const c=this._def.schema._parseSync({data:s.data,path:s.path,parent:s});return c.status==="aborted"?T:(c.status==="dirty"&&r.dirty(),i(c.value),{status:r.value,value:c.value})}else return this._def.schema._parseAsync({data:s.data,path:s.path,parent:s}).then(c=>c.status==="aborted"?T:(c.status==="dirty"&&r.dirty(),i(c.value).then(()=>({status:r.value,value:c.value}))))}if(n.type==="transform")if(s.common.async===!1){const i=this._def.schema._parseSync({data:s.data,path:s.path,parent:s});if(!Ue(i))return i;const c=n.transform(i.value,a);if(c instanceof Promise)throw new Error("Asynchronous transform encountered during synchronous parse operation. Use .parseAsync instead.");return{status:r.value,value:c}}else return this._def.schema._parseAsync({data:s.data,path:s.path,parent:s}).then(i=>Ue(i)?Promise.resolve(n.transform(i.value,a)).then(c=>({status:r.value,value:c})):i);N.assertNever(n)}}re.create=(t,e,r)=>new re({schema:t,typeName:k.ZodEffects,effect:e,...S(r)});re.createWithPreprocess=(t,e,r)=>new re({schema:e,effect:{type:"preprocess",transform:t},typeName:k.ZodEffects,...S(r)});class fe extends E{_parse(e){return this._getType(e)===y.undefined?W(void 0):this._def.innerType._parse(e)}unwrap(){return this._def.innerType}}fe.create=(t,e)=>new fe({innerType:t,typeName:k.ZodOptional,...S(e)});class Ae extends E{_parse(e){return this._getType(e)===y.null?W(null):this._def.innerType._parse(e)}unwrap(){return this._def.innerType}}Ae.create=(t,e)=>new Ae({innerType:t,typeName:k.ZodNullable,...S(e)});class Ke extends E{_parse(e){const{ctx:r}=this._processInputParams(e);let s=r.data;return r.parsedType===y.undefined&&(s=this._def.defaultValue()),this._def.innerType._parse({data:s,path:r.path,parent:r})}removeDefault(){return this._def.innerType}}Ke.create=(t,e)=>new Ke({innerType:t,typeName:k.ZodDefault,defaultValue:typeof e.default=="function"?e.default:()=>e.default,...S(e)});class ht extends E{_parse(e){const{ctx:r}=this._processInputParams(e),s={...r,common:{...r.common,issues:[]}},n=this._def.innerType._parse({data:s.data,path:s.path,parent:{...s}});return ut(n)?n.then(a=>({status:"valid",value:a.status==="valid"?a.value:this._def.catchValue({get error(){return new ee(s.common.issues)},input:s.data})})):{status:"valid",value:n.status==="valid"?n.value:this._def.catchValue({get error(){return new ee(s.common.issues)},input:s.data})}}removeCatch(){return this._def.innerType}}ht.create=(t,e)=>new ht({innerType:t,typeName:k.ZodCatch,catchValue:typeof e.catch=="function"?e.catch:()=>e.catch,...S(e)});class pt extends E{_parse(e){if(this._getType(e)!==y.nan){const s=this._getOrReturnCtx(e);return v(s,{code:h.invalid_type,expected:y.nan,received:s.parsedType}),T}return{status:"valid",value:e.data}}}pt.create=t=>new pt({typeName:k.ZodNaN,...S(t)});const ls=Symbol("zod_brand");class vr extends E{_parse(e){const{ctx:r}=this._processInputParams(e),s=r.data;return this._def.type._parse({data:s,path:r.path,parent:r})}unwrap(){return this._def.type}}class Xe extends E{_parse(e){const{status:r,ctx:s}=this._processInputParams(e);if(s.common.async)return(async()=>{const a=await this._def.in._parseAsync({data:s.data,path:s.path,parent:s});return a.status==="aborted"?T:a.status==="dirty"?(r.dirty(),mr(a.value)):this._def.out._parseAsync({data:a.value,path:s.path,parent:s})})();{const n=this._def.in._parseSync({data:s.data,path:s.path,parent:s});return n.status==="aborted"?T:n.status==="dirty"?(r.dirty(),{status:"dirty",value:n.value}):this._def.out._parseSync({data:n.value,path:s.path,parent:s})}}static create(e,r){return new Xe({in:e,out:r,typeName:k.ZodPipeline})}}class mt extends E{_parse(e){const r=this._def.innerType._parse(e);return Ue(r)&&(r.value=Object.freeze(r.value)),r}}mt.create=(t,e)=>new mt({innerType:t,typeName:k.ZodReadonly,...S(e)});const gr=(t,e={},r)=>t?Re.create().superRefine((s,n)=>{var a,i;if(!t(s)){const c=typeof e=="function"?e(s):typeof e=="string"?{message:e}:e,l=(i=(a=c.fatal)!==null&&a!==void 0?a:r)!==null&&i!==void 0?i:!0,f=typeof c=="string"?{message:c}:c;n.addIssue({code:"custom",...f,fatal:l})}}):Re.create(),fs={object:I.lazycreate};var k;(function(t){t.ZodString="ZodString",t.ZodNumber="ZodNumber",t.ZodNaN="ZodNaN",t.ZodBigInt="ZodBigInt",t.ZodBoolean="ZodBoolean",t.ZodDate="ZodDate",t.ZodSymbol="ZodSymbol",t.ZodUndefined="ZodUndefined",t.ZodNull="ZodNull",t.ZodAny="ZodAny",t.ZodUnknown="ZodUnknown",t.ZodNever="ZodNever",t.ZodVoid="ZodVoid",t.ZodArray="ZodArray",t.ZodObject="ZodObject",t.ZodUnion="ZodUnion",t.ZodDiscriminatedUnion="ZodDiscriminatedUnion",t.ZodIntersection="ZodIntersection",t.ZodTuple="ZodTuple",t.ZodRecord="ZodRecord",t.ZodMap="ZodMap",t.ZodSet="ZodSet",t.ZodFunction="ZodFunction",t.ZodLazy="ZodLazy",t.ZodLiteral="ZodLiteral",t.ZodEnum="ZodEnum",t.ZodEffects="ZodEffects",t.ZodNativeEnum="ZodNativeEnum",t.ZodOptional="ZodOptional",t.ZodNullable="ZodNullable",t.ZodDefault="ZodDefault",t.ZodCatch="ZodCatch",t.ZodPromise="ZodPromise",t.ZodBranded="ZodBranded",t.ZodPipeline="ZodPipeline",t.ZodReadonly="ZodReadonly"})(k||(k={}));const hs=(t,e={message:`Input not instance of ${t.name}`})=>gr(r=>r instanceof t,e),_r=Q.create,xr=ve.create,ps=pt.create,ms=ge.create,br=$e.create,ys=Se.create,vs=dt.create,gs=Be.create,_s=ze.create,xs=Re.create,bs=Te.create,ks=he.create,ws=lt.create,Ts=te.create,Ss=I.create,Es=I.strictCreate,As=We.create,Os=xt.create,Cs=qe.create,Vs=oe.create,Ns=He.create,Zs=ft.create,js=Ee.create,Rs=je.create,Is=Je.create,Ds=Ye.create,Ms=_e.create,Ps=Ge.create,Ls=Ie.create,rr=re.create,Fs=fe.create,Us=Ae.create,$s=re.createWithPreprocess,Bs=Xe.create,zs=()=>_r().optional(),Ws=()=>xr().optional(),qs=()=>br().optional(),Hs={string:t=>Q.create({...t,coerce:!0}),number:t=>ve.create({...t,coerce:!0}),boolean:t=>$e.create({...t,coerce:!0}),bigint:t=>ge.create({...t,coerce:!0}),date:t=>Se.create({...t,coerce:!0})},Js=T;var rt=Object.freeze({__proto__:null,defaultErrorMap:Fe,setErrorMap:Xr,getErrorMap:ot,makeIssue:ct,EMPTY_PATH:Qr,addIssueToContext:v,ParseStatus:B,INVALID:T,DIRTY:mr,OK:W,isAborted:Dt,isDirty:Mt,isValid:Ue,isAsync:ut,get util(){return N},get objectUtil(){return It},ZodParsedType:y,getParsedType:me,ZodType:E,ZodString:Q,ZodNumber:ve,ZodBigInt:ge,ZodBoolean:$e,ZodDate:Se,ZodSymbol:dt,ZodUndefined:Be,ZodNull:ze,ZodAny:Re,ZodUnknown:Te,ZodNever:he,ZodVoid:lt,ZodArray:te,ZodObject:I,ZodUnion:We,ZodDiscriminatedUnion:xt,ZodIntersection:qe,ZodTuple:oe,ZodRecord:He,ZodMap:ft,ZodSet:Ee,ZodFunction:je,ZodLazy:Je,ZodLiteral:Ye,ZodEnum:_e,ZodNativeEnum:Ge,ZodPromise:Ie,ZodEffects:re,ZodTransformer:re,ZodOptional:fe,ZodNullable:Ae,ZodDefault:Ke,ZodCatch:ht,ZodNaN:pt,BRAND:ls,ZodBranded:vr,ZodPipeline:Xe,ZodReadonly:mt,custom:gr,Schema:E,ZodSchema:E,late:fs,get ZodFirstPartyTypeKind(){return k},coerce:Hs,any:xs,array:Ts,bigint:ms,boolean:br,date:ys,discriminatedUnion:Os,effect:rr,enum:Ms,function:Rs,instanceof:hs,intersection:Cs,lazy:Is,literal:Ds,map:Zs,nan:ps,nativeEnum:Ps,never:ks,null:_s,nullable:Us,number:xr,object:Ss,oboolean:qs,onumber:Ws,optional:Fs,ostring:zs,pipeline:Bs,preprocess:$s,promise:Ls,record:Ns,set:js,strictObject:Es,string:_r,symbol:vs,transformer:rr,tuple:Vs,undefined:gs,union:As,unknown:bs,void:ws,NEVER:Js,ZodIssueCode:h,quotelessJson:Kr,ZodError:ee}),Qe=t=>t.type==="checkbox",Ze=t=>t instanceof Date,z=t=>t==null;const kr=t=>typeof t=="object";var F=t=>!z(t)&&!Array.isArray(t)&&kr(t)&&!Ze(t),Ys=t=>F(t)&&t.target?Qe(t.target)?t.target.checked:t.target.value:t,Gs=t=>t.substring(0,t.search(/\.\d+(\.|$)/))||t,Ks=(t,e)=>t.has(Gs(e)),Xs=t=>{const e=t.constructor&&t.constructor.prototype;return F(e)&&e.hasOwnProperty("isPrototypeOf")},Ft=typeof window<"u"&&typeof window.HTMLElement<"u"&&typeof document<"u";function le(t){let e;const r=Array.isArray(t);if(t instanceof Date)e=new Date(t);else if(t instanceof Set)e=new Set(t);else if(!(Ft&&(t instanceof Blob||t instanceof FileList))&&(r||F(t)))if(e=r?[]:{},!r&&!Xs(t))e=t;else for(const s in t)t.hasOwnProperty(s)&&(e[s]=le(t[s]));else return t;return e}var et=t=>Array.isArray(t)?t.filter(Boolean):[],L=t=>t===void 0,g=(t,e,r)=>{if(!e||!F(t))return r;const s=et(e.split(/[,[\].]+?/)).reduce((n,a)=>z(n)?n:n[a],t);return L(s)||s===t?L(t[e])?r:t[e]:s},ke=t=>typeof t=="boolean";const sr={BLUR:"blur",FOCUS_OUT:"focusout",CHANGE:"change"},X={onBlur:"onBlur",onChange:"onChange",onSubmit:"onSubmit",onTouched:"onTouched",all:"all"},de={max:"max",min:"min",maxLength:"maxLength",minLength:"minLength",pattern:"pattern",required:"required",validate:"validate"};pe.createContext(null);var Qs=(t,e,r,s=!0)=>{const n={defaultValues:e._defaultValues};for(const a in t)Object.defineProperty(n,a,{get:()=>{const i=a;return e._proxyFormState[i]!==X.all&&(e._proxyFormState[i]=!s||X.all),r&&(r[i]=!0),t[i]}});return n},G=t=>F(t)&&!Object.keys(t).length,en=(t,e,r,s)=>{r(t);const{name:n,...a}=t;return G(a)||Object.keys(a).length>=Object.keys(e).length||Object.keys(a).find(i=>e[i]===(!s||X.all))},Ct=t=>Array.isArray(t)?t:[t];function tn(t){const e=pe.useRef(t);e.current=t,pe.useEffect(()=>{const r=!t.disabled&&e.current.subject&&e.current.subject.subscribe({next:e.current.next});return()=>{r&&r.unsubscribe()}},[t.disabled])}var ae=t=>typeof t=="string",rn=(t,e,r,s,n)=>ae(t)?(s&&e.watch.add(t),g(r,t,n)):Array.isArray(t)?t.map(a=>(s&&e.watch.add(a),g(r,a))):(s&&(e.watchAll=!0),r),Ut=t=>/^\w*$/.test(t),wr=t=>et(t.replace(/["|']|\]/g,"").split(/\.|\[/));function j(t,e,r){let s=-1;const n=Ut(e)?[e]:wr(e),a=n.length,i=a-1;for(;++se?{...r[t],types:{...r[t]&&r[t].types?r[t].types:{},[s]:n||!0}}:{};const Lt=(t,e,r)=>{for(const s of r||Object.keys(t)){const n=g(t,s);if(n){const{_f:a,...i}=n;if(a&&e(a.name)){if(a.ref.focus){a.ref.focus();break}else if(a.refs&&a.refs[0].focus){a.refs[0].focus();break}}else F(i)&&Lt(i,e)}}};var nr=t=>({isOnSubmit:!t||t===X.onSubmit,isOnBlur:t===X.onBlur,isOnChange:t===X.onChange,isOnAll:t===X.all,isOnTouch:t===X.onTouched}),ar=(t,e,r)=>!r&&(e.watchAll||e.watch.has(t)||[...e.watch].some(s=>t.startsWith(s)&&/^\.\w+/.test(t.slice(s.length)))),sn=(t,e,r)=>{const s=et(g(t,r));return j(s,"root",e[r]),j(t,r,s),t},$t=t=>t.type==="file",ye=t=>typeof t=="function",yt=t=>{if(!Ft)return!1;const e=t?t.ownerDocument:0;return t instanceof(e&&e.defaultView?e.defaultView.HTMLElement:HTMLElement)},nt=t=>ae(t),Bt=t=>t.type==="radio",vt=t=>t instanceof RegExp;const ir={value:!1,isValid:!1},or={value:!0,isValid:!0};var Sr=t=>{if(Array.isArray(t)){if(t.length>1){const e=t.filter(r=>r&&r.checked&&!r.disabled).map(r=>r.value);return{value:e,isValid:!!e.length}}return t[0].checked&&!t[0].disabled?t[0].attributes&&!L(t[0].attributes.value)?L(t[0].value)||t[0].value===""?or:{value:t[0].value,isValid:!0}:or:ir}return ir};const cr={isValid:!1,value:null};var Er=t=>Array.isArray(t)?t.reduce((e,r)=>r&&r.checked&&!r.disabled?{isValid:!0,value:r.value}:e,cr):cr;function ur(t,e,r="validate"){if(nt(t)||Array.isArray(t)&&t.every(nt)||ke(t)&&!t)return{type:r,message:nt(t)?t:"",ref:e}}var Ve=t=>F(t)&&!vt(t)?t:{value:t,message:""},dr=async(t,e,r,s,n)=>{const{ref:a,refs:i,required:c,maxLength:l,minLength:f,min:w,max:A,pattern:V,validate:H,name:J,valueAsNumber:bt,mount:tt,disabled:kt}=t._f,O=g(e,J);if(!tt||kt)return{};const K=i?i[0]:a,ce=Z=>{s&&K.reportValidity&&(K.setCustomValidity(ke(Z)?"":Z||""),K.reportValidity())},U={},De=Bt(a),Oe=Qe(a),wt=De||Oe,se=(bt||$t(a))&&L(a.value)&&L(O)||yt(a)&&a.value===""||O===""||Array.isArray(O)&&!O.length,xe=Tr.bind(null,J,r,U),ue=(Z,C,M,q=de.maxLength,Y=de.minLength)=>{const ne=Z?C:M;U[J]={type:Z?q:Y,message:ne,ref:a,...xe(Z?q:Y,ne)}};if(n?!Array.isArray(O)||!O.length:c&&(!wt&&(se||z(O))||ke(O)&&!O||Oe&&!Sr(i).isValid||De&&!Er(i).isValid)){const{value:Z,message:C}=nt(c)?{value:!!c,message:c}:Ve(c);if(Z&&(U[J]={type:de.required,message:C,ref:K,...xe(de.required,C)},!r))return ce(C),U}if(!se&&(!z(w)||!z(A))){let Z,C;const M=Ve(A),q=Ve(w);if(!z(O)&&!isNaN(O)){const Y=a.valueAsNumber||O&&+O;z(M.value)||(Z=Y>M.value),z(q.value)||(C=Ynew Date(new Date().toDateString()+" "+Pe),be=a.type=="time",Me=a.type=="week";ae(M.value)&&O&&(Z=be?ne(O)>ne(M.value):Me?O>M.value:Y>new Date(M.value)),ae(q.value)&&O&&(C=be?ne(O)+Z.value,q=!z(C.value)&&O.length<+C.value;if((M||q)&&(ue(M,Z.message,C.message),!r))return ce(U[J].message),U}if(V&&!se&&ae(O)){const{value:Z,message:C}=Ve(V);if(vt(Z)&&!O.match(Z)&&(U[J]={type:de.pattern,message:C,ref:a,...xe(de.pattern,C)},!r))return ce(C),U}if(H){if(ye(H)){const Z=await H(O,e),C=ur(Z,K);if(C&&(U[J]={...C,...xe(de.validate,C.message)},!r))return ce(C.message),U}else if(F(H)){let Z={};for(const C in H){if(!G(Z)&&!r)break;const M=ur(await H[C](O,e),K,C);M&&(Z={...M,...xe(C,M.message)},ce(M.message),r&&(U[J]=Z))}if(!G(Z)&&(U[J]={ref:K,...Z},!r))return U}}return ce(!0),U};function nn(t,e){const r=e.slice(0,-1).length;let s=0;for(;s{for(const a of t)a.next&&a.next(n)},subscribe:n=>(t.push(n),{unsubscribe:()=>{t=t.filter(a=>a!==n)}}),unsubscribe:()=>{t=[]}}}var gt=t=>z(t)||!kr(t);function we(t,e){if(gt(t)||gt(e))return t===e;if(Ze(t)&&Ze(e))return t.getTime()===e.getTime();const r=Object.keys(t),s=Object.keys(e);if(r.length!==s.length)return!1;for(const n of r){const a=t[n];if(!s.includes(n))return!1;if(n!=="ref"){const i=e[n];if(Ze(a)&&Ze(i)||F(a)&&F(i)||Array.isArray(a)&&Array.isArray(i)?!we(a,i):a!==i)return!1}}return!0}var Ar=t=>t.type==="select-multiple",on=t=>Bt(t)||Qe(t),Nt=t=>yt(t)&&t.isConnected,Or=t=>{for(const e in t)if(ye(t[e]))return!0;return!1};function _t(t,e={}){const r=Array.isArray(t);if(F(t)||r)for(const s in t)Array.isArray(t[s])||F(t[s])&&!Or(t[s])?(e[s]=Array.isArray(t[s])?[]:{},_t(t[s],e[s])):z(t[s])||(e[s]=!0);return e}function Cr(t,e,r){const s=Array.isArray(t);if(F(t)||s)for(const n in t)Array.isArray(t[n])||F(t[n])&&!Or(t[n])?L(e)||gt(r[n])?r[n]=Array.isArray(t[n])?_t(t[n],[]):{..._t(t[n])}:Cr(t[n],z(e)?{}:e[n],r[n]):r[n]=!we(t[n],e[n]);return r}var Zt=(t,e)=>Cr(t,e,_t(e)),Vr=(t,{valueAsNumber:e,valueAsDate:r,setValueAs:s})=>L(t)?t:e?t===""?NaN:t&&+t:r&&ae(t)?new Date(t):s?s(t):t;function jt(t){const e=t.ref;if(!(t.refs?t.refs.every(r=>r.disabled):e.disabled))return $t(e)?e.files:Bt(e)?Er(t.refs).value:Ar(e)?[...e.selectedOptions].map(({value:r})=>r):Qe(e)?Sr(t.refs).value:Vr(L(e.value)?t.ref.value:e.value,t)}var cn=(t,e,r,s)=>{const n={};for(const a of t){const i=g(e,a);i&&j(n,a,i._f)}return{criteriaMode:r,names:[...t],fields:n,shouldUseNativeValidation:s}},Le=t=>L(t)?t:vt(t)?t.source:F(t)?vt(t.value)?t.value.source:t.value:t,un=t=>t.mount&&(t.required||t.min||t.max||t.maxLength||t.minLength||t.pattern||t.validate);function lr(t,e,r){const s=g(t,r);if(s||Ut(r))return{error:s,name:r};const n=r.split(".");for(;n.length;){const a=n.join("."),i=g(e,a),c=g(t,a);if(i&&!Array.isArray(i)&&r!==a)return{name:r};if(c&&c.type)return{name:a,error:c};n.pop()}return{name:r}}var dn=(t,e,r,s,n)=>n.isOnAll?!1:!r&&n.isOnTouch?!(e||t):(r?s.isOnBlur:n.isOnBlur)?!t:(r?s.isOnChange:n.isOnChange)?t:!0,ln=(t,e)=>!et(g(t,e)).length&&$(t,e);const fn={mode:X.onSubmit,reValidateMode:X.onChange,shouldFocusError:!0};function hn(t={},e){let r={...fn,...t},s={submitCount:0,isDirty:!1,isLoading:ye(r.defaultValues),isValidating:!1,isSubmitted:!1,isSubmitting:!1,isSubmitSuccessful:!1,isValid:!1,touchedFields:{},dirtyFields:{},errors:{}},n={},a=F(r.defaultValues)||F(r.values)?le(r.defaultValues||r.values)||{}:{},i=r.shouldUnregister?{}:le(a),c={action:!1,mount:!1,watch:!1},l={mount:new Set,unMount:new Set,array:new Set,watch:new Set},f,w=0;const A={isDirty:!1,dirtyFields:!1,touchedFields:!1,isValidating:!1,isValid:!1,errors:!1},V={values:Vt(),array:Vt(),state:Vt()},H=t.resetOptions&&t.resetOptions.keepDirtyValues,J=nr(r.mode),bt=nr(r.reValidateMode),tt=r.criteriaMode===X.all,kt=o=>u=>{clearTimeout(w),w=setTimeout(o,u)},O=async o=>{if(A.isValid||o){const u=r.resolver?G((await se()).errors):await ue(n,!0);u!==s.isValid&&V.state.next({isValid:u})}},K=o=>A.isValidating&&V.state.next({isValidating:o}),ce=(o,u=[],d,_,m=!0,p=!0)=>{if(_&&d){if(c.action=!0,p&&Array.isArray(g(n,o))){const b=d(g(n,o),_.argA,_.argB);m&&j(n,o,b)}if(p&&Array.isArray(g(s.errors,o))){const b=d(g(s.errors,o),_.argA,_.argB);m&&j(s.errors,o,b),ln(s.errors,o)}if(A.touchedFields&&p&&Array.isArray(g(s.touchedFields,o))){const b=d(g(s.touchedFields,o),_.argA,_.argB);m&&j(s.touchedFields,o,b)}A.dirtyFields&&(s.dirtyFields=Zt(a,i)),V.state.next({name:o,isDirty:C(o,u),dirtyFields:s.dirtyFields,errors:s.errors,isValid:s.isValid})}else j(i,o,u)},U=(o,u)=>{j(s.errors,o,u),V.state.next({errors:s.errors})},De=(o,u,d,_)=>{const m=g(n,o);if(m){const p=g(i,o,L(d)?g(a,o):d);L(p)||_&&_.defaultChecked||u?j(i,o,u?p:jt(m._f)):Y(o,p),c.mount&&O()}},Oe=(o,u,d,_,m)=>{let p=!1,b=!1;const D={name:o};if(!d||_){A.isDirty&&(b=s.isDirty,s.isDirty=D.isDirty=C(),p=b!==D.isDirty);const P=we(g(a,o),u);b=g(s.dirtyFields,o),P?$(s.dirtyFields,o):j(s.dirtyFields,o,!0),D.dirtyFields=s.dirtyFields,p=p||A.dirtyFields&&b!==!P}if(d){const P=g(s.touchedFields,o);P||(j(s.touchedFields,o,d),D.touchedFields=s.touchedFields,p=p||A.touchedFields&&P!==d)}return p&&m&&V.state.next(D),p?D:{}},wt=(o,u,d,_)=>{const m=g(s.errors,o),p=A.isValid&&ke(u)&&s.isValid!==u;if(t.delayError&&d?(f=kt(()=>U(o,d)),f(t.delayError)):(clearTimeout(w),f=null,d?j(s.errors,o,d):$(s.errors,o)),(d?!we(m,d):m)||!G(_)||p){const b={..._,...p&&ke(u)?{isValid:u}:{},errors:s.errors,name:o};s={...s,...b},V.state.next(b)}K(!1)},se=async o=>r.resolver(i,r.context,cn(o||l.mount,n,r.criteriaMode,r.shouldUseNativeValidation)),xe=async o=>{const{errors:u}=await se(o);if(o)for(const d of o){const _=g(u,d);_?j(s.errors,d,_):$(s.errors,d)}else s.errors=u;return u},ue=async(o,u,d={valid:!0})=>{for(const _ in o){const m=o[_];if(m){const{_f:p,...b}=m;if(p){const D=l.array.has(p.name),P=await dr(m,i,tt,r.shouldUseNativeValidation&&!u,D);if(P[p.name]&&(d.valid=!1,u))break;!u&&(g(P,p.name)?D?sn(s.errors,P,p.name):j(s.errors,p.name,P[p.name]):$(s.errors,p.name))}b&&await ue(b,u,d)}}return d.valid},Z=()=>{for(const o of l.unMount){const u=g(n,o);u&&(u._f.refs?u._f.refs.every(d=>!Nt(d)):!Nt(u._f.ref))&&Tt(o)}l.unMount=new Set},C=(o,u)=>(o&&u&&j(i,o,u),!we(zt(),a)),M=(o,u,d)=>rn(o,l,{...c.mount?i:L(u)?a:ae(o)?{[o]:u}:u},d,u),q=o=>et(g(c.mount?i:a,o,t.shouldUnregister?g(a,o,[]):[])),Y=(o,u,d={})=>{const _=g(n,o);let m=u;if(_){const p=_._f;p&&(!p.disabled&&j(i,o,Vr(u,p)),m=yt(p.ref)&&z(u)?"":u,Ar(p.ref)?[...p.ref.options].forEach(b=>b.selected=m.includes(b.value)):p.refs?Qe(p.ref)?p.refs.length>1?p.refs.forEach(b=>(!b.defaultChecked||!b.disabled)&&(b.checked=Array.isArray(m)?!!m.find(D=>D===b.value):m===b.value)):p.refs[0]&&(p.refs[0].checked=!!m):p.refs.forEach(b=>b.checked=b.value===m):$t(p.ref)?p.ref.value="":(p.ref.value=m,p.ref.type||V.values.next({name:o,values:{...i}})))}(d.shouldDirty||d.shouldTouch)&&Oe(o,m,d.shouldTouch,d.shouldDirty,!0),d.shouldValidate&&Pe(o)},ne=(o,u,d)=>{for(const _ in u){const m=u[_],p=`${o}.${_}`,b=g(n,p);(l.array.has(o)||!gt(m)||b&&!b._f)&&!Ze(m)?ne(p,m,d):Y(p,m,d)}},be=(o,u,d={})=>{const _=g(n,o),m=l.array.has(o),p=le(u);j(i,o,p),m?(V.array.next({name:o,values:{...i}}),(A.isDirty||A.dirtyFields)&&d.shouldDirty&&V.state.next({name:o,dirtyFields:Zt(a,i),isDirty:C(o,p)})):_&&!_._f&&!z(p)?ne(o,p,d):Y(o,p,d),ar(o,l)&&V.state.next({...s}),V.values.next({name:o,values:{...i}}),!c.mount&&e()},Me=async o=>{const u=o.target;let d=u.name,_=!0;const m=g(n,d),p=()=>u.type?jt(m._f):Ys(o);if(m){let b,D;const P=p(),Ce=o.type===sr.BLUR||o.type===sr.FOCUS_OUT,Ir=!un(m._f)&&!r.resolver&&!g(s.errors,d)&&!m._f.deps||dn(Ce,g(s.touchedFields,d),s.isSubmitted,bt,J),Et=ar(d,l,Ce);j(i,d,P),Ce?(m._f.onBlur&&m._f.onBlur(o),f&&f(0)):m._f.onChange&&m._f.onChange(o);const At=Oe(d,P,Ce,!1),Dr=!G(At)||Et;if(!Ce&&V.values.next({name:d,type:o.type,values:{...i}}),Ir)return A.isValid&&O(),Dr&&V.state.next({name:d,...Et?{}:At});if(!Ce&&Et&&V.state.next({...s}),K(!0),r.resolver){const{errors:Xt}=await se([d]),Mr=lr(s.errors,n,d),Qt=lr(Xt,n,Mr.name||d);b=Qt.error,d=Qt.name,D=G(Xt)}else b=(await dr(m,i,tt,r.shouldUseNativeValidation))[d],_=Number.isNaN(P)||P===g(i,d,P),_&&(b?D=!1:A.isValid&&(D=await ue(n,!0)));_&&(m._f.deps&&Pe(m._f.deps),wt(d,D,b,At))}},Pe=async(o,u={})=>{let d,_;const m=Ct(o);if(K(!0),r.resolver){const p=await xe(L(o)?o:m);d=G(p),_=o?!m.some(b=>g(p,b)):d}else o?(_=(await Promise.all(m.map(async p=>{const b=g(n,p);return await ue(b&&b._f?{[p]:b}:b)}))).every(Boolean),!(!_&&!s.isValid)&&O()):_=d=await ue(n);return V.state.next({...!ae(o)||A.isValid&&d!==s.isValid?{}:{name:o},...r.resolver||!o?{isValid:d}:{},errors:s.errors,isValidating:!1}),u.shouldFocus&&!_&&Lt(n,p=>p&&g(s.errors,p),o?m:l.mount),_},zt=o=>{const u={...a,...c.mount?i:{}};return L(o)?u:ae(o)?g(u,o):o.map(d=>g(u,d))},Wt=(o,u)=>({invalid:!!g((u||s).errors,o),isDirty:!!g((u||s).dirtyFields,o),isTouched:!!g((u||s).touchedFields,o),error:g((u||s).errors,o)}),Zr=o=>{o&&Ct(o).forEach(u=>$(s.errors,u)),V.state.next({errors:o?s.errors:{}})},qt=(o,u,d)=>{const _=(g(n,o,{_f:{}})._f||{}).ref;j(s.errors,o,{...u,ref:_}),V.state.next({name:o,errors:s.errors,isValid:!1}),d&&d.shouldFocus&&_&&_.focus&&_.focus()},jr=(o,u)=>ye(o)?V.values.subscribe({next:d=>o(M(void 0,u),d)}):M(o,u,!0),Tt=(o,u={})=>{for(const d of o?Ct(o):l.mount)l.mount.delete(d),l.array.delete(d),u.keepValue||($(n,d),$(i,d)),!u.keepError&&$(s.errors,d),!u.keepDirty&&$(s.dirtyFields,d),!u.keepTouched&&$(s.touchedFields,d),!r.shouldUnregister&&!u.keepDefaultValue&&$(a,d);V.values.next({values:{...i}}),V.state.next({...s,...u.keepDirty?{isDirty:C()}:{}}),!u.keepIsValid&&O()},Ht=({disabled:o,name:u,field:d,fields:_})=>{if(ke(o)){const m=o?void 0:g(i,u,jt(d?d._f:g(_,u)._f));j(i,u,m),Oe(u,m,!1,!1,!0)}},St=(o,u={})=>{let d=g(n,o);const _=ke(u.disabled);return j(n,o,{...d||{},_f:{...d&&d._f?d._f:{ref:{name:o}},name:o,mount:!0,...u}}),l.mount.add(o),d?Ht({field:d,disabled:u.disabled,name:o}):De(o,!0,u.value),{..._?{disabled:u.disabled}:{},...r.progressive?{required:!!u.required,min:Le(u.min),max:Le(u.max),minLength:Le(u.minLength),maxLength:Le(u.maxLength),pattern:Le(u.pattern)}:{},name:o,onChange:Me,onBlur:Me,ref:m=>{if(m){St(o,u),d=g(n,o);const p=L(m.value)&&m.querySelectorAll&&m.querySelectorAll("input,select,textarea")[0]||m,b=on(p),D=d._f.refs||[];if(b?D.find(P=>P===p):p===d._f.ref)return;j(n,o,{_f:{...d._f,...b?{refs:[...D.filter(Nt),p,...Array.isArray(g(a,o))?[{}]:[]],ref:{type:p.type,name:o}}:{ref:p}}}),De(o,!1,void 0,p)}else d=g(n,o,{}),d._f&&(d._f.mount=!1),(r.shouldUnregister||u.shouldUnregister)&&!(Ks(l.array,o)&&c.action)&&l.unMount.add(o)}}},Jt=()=>r.shouldFocusError&&Lt(n,o=>o&&g(s.errors,o),l.mount),Yt=(o,u)=>async d=>{d&&(d.preventDefault&&d.preventDefault(),d.persist&&d.persist());let _=le(i);if(V.state.next({isSubmitting:!0}),r.resolver){const{errors:m,values:p}=await se();s.errors=m,_=p}else await ue(n);$(s.errors,"root"),G(s.errors)?(V.state.next({errors:{}}),await o(_,d)):(u&&await u({...s.errors},d),Jt(),setTimeout(Jt)),V.state.next({isSubmitted:!0,isSubmitting:!1,isSubmitSuccessful:G(s.errors),submitCount:s.submitCount+1,errors:s.errors})},Rr=(o,u={})=>{g(n,o)&&(L(u.defaultValue)?be(o,g(a,o)):(be(o,u.defaultValue),j(a,o,u.defaultValue)),u.keepTouched||$(s.touchedFields,o),u.keepDirty||($(s.dirtyFields,o),s.isDirty=u.defaultValue?C(o,g(a,o)):C()),u.keepError||($(s.errors,o),A.isValid&&O()),V.state.next({...s}))},Gt=(o,u={})=>{const d=o?le(o):a,_=le(d),m=o&&!G(o)?_:a;if(u.keepDefaultValues||(a=d),!u.keepValues){if(u.keepDirtyValues||H)for(const p of l.mount)g(s.dirtyFields,p)?j(m,p,g(i,p)):be(p,g(m,p));else{if(Ft&&L(o))for(const p of l.mount){const b=g(n,p);if(b&&b._f){const D=Array.isArray(b._f.refs)?b._f.refs[0]:b._f.ref;if(yt(D)){const P=D.closest("form");if(P){P.reset();break}}}}n={}}i=t.shouldUnregister?u.keepDefaultValues?le(a):{}:le(m),V.array.next({values:{...m}}),V.values.next({values:{...m}})}l={mount:new Set,unMount:new Set,array:new Set,watch:new Set,watchAll:!1,focus:""},!c.mount&&e(),c.mount=!A.isValid||!!u.keepIsValid,c.watch=!!t.shouldUnregister,V.state.next({submitCount:u.keepSubmitCount?s.submitCount:0,isDirty:u.keepDirty?s.isDirty:!!(u.keepDefaultValues&&!we(o,a)),isSubmitted:u.keepIsSubmitted?s.isSubmitted:!1,dirtyFields:u.keepDirtyValues?s.dirtyFields:u.keepDefaultValues&&o?Zt(a,o):{},touchedFields:u.keepTouched?s.touchedFields:{},errors:u.keepErrors?s.errors:{},isSubmitSuccessful:u.keepIsSubmitSuccessful?s.isSubmitSuccessful:!1,isSubmitting:!1})},Kt=(o,u)=>Gt(ye(o)?o(i):o,u);return{control:{register:St,unregister:Tt,getFieldState:Wt,handleSubmit:Yt,setError:qt,_executeSchema:se,_getWatch:M,_getDirty:C,_updateValid:O,_removeUnmounted:Z,_updateFieldArray:ce,_updateDisabledField:Ht,_getFieldArray:q,_reset:Gt,_resetDefaultValues:()=>ye(r.defaultValues)&&r.defaultValues().then(o=>{Kt(o,r.resetOptions),V.state.next({isLoading:!1})}),_updateFormState:o=>{s={...s,...o}},_subjects:V,_proxyFormState:A,get _fields(){return n},get _formValues(){return i},get _state(){return c},set _state(o){c=o},get _defaultValues(){return a},get _names(){return l},set _names(o){l=o},get _formState(){return s},set _formState(o){s=o},get _options(){return r},set _options(o){r={...r,...o}}},trigger:Pe,register:St,handleSubmit:Yt,watch:jr,setValue:be,getValues:zt,reset:Kt,resetField:Rr,clearErrors:Zr,unregister:Tt,setError:qt,setFocus:(o,u={})=>{const d=g(n,o),_=d&&d._f;if(_){const m=_.refs?_.refs[0]:_.ref;m.focus&&(m.focus(),u.shouldSelect&&m.select())}},getFieldState:Wt}}function pn(t={}){const e=pe.useRef(),r=pe.useRef(),[s,n]=pe.useState({isDirty:!1,isValidating:!1,isLoading:ye(t.defaultValues),isSubmitted:!1,isSubmitting:!1,isSubmitSuccessful:!1,isValid:!1,submitCount:0,dirtyFields:{},touchedFields:{},errors:{},defaultValues:ye(t.defaultValues)?void 0:t.defaultValues});e.current||(e.current={...hn(t,()=>n(i=>({...i}))),formState:s});const a=e.current.control;return a._options=t,tn({subject:a._subjects.state,next:i=>{en(i,a._proxyFormState,a._updateFormState,!0)&&n({...a._formState})}}),pe.useEffect(()=>{t.values&&!we(t.values,r.current)?(a._reset(t.values,a._options.resetOptions),r.current=t.values):a._resetDefaultValues()},[t.values,a]),pe.useEffect(()=>{a._state.mount||(a._updateValid(),a._state.mount=!0),a._state.watch&&(a._state.watch=!1,a._subjects.state.next({...a._formState})),a._removeUnmounted()}),e.current.formState=Qs(s,a),e.current}var fr=function(t,e,r){if(t&&"reportValidity"in t){var s=g(r,e);t.setCustomValidity(s&&s.message||""),t.reportValidity()}},Nr=function(t,e){var r=function(n){var a=e.fields[n];a&&a.ref&&"reportValidity"in a.ref?fr(a.ref,n,t):a.refs&&a.refs.forEach(function(i){return fr(i,n,t)})};for(var s in e.fields)r(s)},mn=function(t,e){e.shouldUseNativeValidation&&Nr(t,e);var r={};for(var s in t){var n=g(e.fields,s),a=Object.assign(t[s]||{},{ref:n&&n.ref});if(vn(e.names||Object.keys(t),s)){var i=Object.assign({},yn(g(r,s)));j(i,"root",a),j(r,s,i)}else j(r,s,a)}return r},yn=function(t){return Array.isArray(t)?t.filter(Boolean):[]},vn=function(t,e){return t.some(function(r){return r.startsWith(e+".")})},gn=function(t,e){for(var r={};t.length;){var s=t[0],n=s.code,a=s.message,i=s.path.join(".");if(!r[i])if("unionErrors"in s){var c=s.unionErrors[0].errors[0];r[i]={message:c.message,type:c.code}}else r[i]={message:a,type:n};if("unionErrors"in s&&s.unionErrors.forEach(function(w){return w.errors.forEach(function(A){return t.push(A)})}),e){var l=r[i].types,f=l&&l[s.code];r[i]=Tr(i,e,r,n,f?[].concat(f,s.message):s.message)}t.shift()}return r},_n=function(t,e,r){return r===void 0&&(r={}),function(s,n,a){try{return Promise.resolve(function(i,c){try{var l=Promise.resolve(t[r.mode==="sync"?"parse":"parseAsync"](s,e)).then(function(f){return a.shouldUseNativeValidation&&Nr({},a),{errors:{},values:r.raw?s:f}})}catch(f){return c(f)}return l&&l.then?l.then(void 0,c):l}(0,function(i){if(function(c){return c.errors!=null}(i))return{values:{},errors:mn(gn(i.errors,!a.shouldUseNativeValidation&&a.criteriaMode==="all"),a)};throw i}))}catch(i){return Promise.reject(i)}}};const xn=rt.object({id:rt.string(),name:rt.string().min(3),description:rt.string()}),bn=({project:t,disabled:e})=>{var l,f;const{setFocus:r,register:s,handleSubmit:n,formState:{errors:a,dirtyFields:i}}=pn({resolver:_n(xn),defaultValues:{name:t.name,description:t.description,id:t.id}}),c=Fr();return at.useEffect(()=>r("name"),[r]),R.jsx(R.Fragment,{children:R.jsxs(Ur,{onSubmit:n(({name:w,description:A})=>c({...t,name:w,description:A},{method:"put",replace:!0,encType:"application/json"})),style:{opacity:e?.5:1},children:[R.jsx("input",{...s("id"),hidden:!0}),R.jsx(er,{...s("name"),error:!!a.name,helperText:(l=a.name)==null?void 0:l.message,InputProps:{style:{color:"red",fontSize:"20px",fontWeight:"500"}},disabled:e,variant:"standard"}),R.jsx(er,{...s("description"),error:!!a.description,helperText:(f=a.description)==null?void 0:f.message,disabled:e,fullWidth:!0,variant:"standard"}),R.jsx(Rt,{sx:{display:"flex",justifyContent:"right"},children:R.jsx(Hr,{disabled:e||Object.keys(i).length===0||Object.keys(a).length>0,style:{marginTop:"10px"},color:"primary",type:"submit",children:"Save"})})]})})},kn=({project:t})=>R.jsxs(R.Fragment,{children:[R.jsx(Yr,{component:$r,to:`/projects/${t.id}`,children:R.jsx(it,{variant:"h6",children:t.name})}),R.jsx(it,{style:{whiteSpace:"pre-line"},variant:"body1",children:t.description})]}),wn=({project:t})=>{const{hovered:e,hoverEventHandlers:r}=Gr(),[s,n]=at.useState(!1),i=Lr().state!=="idle";return at.useEffect(()=>n(!1),[t]),R.jsxs(qr,{elevation:3,...r,style:{margin:"5px",padding:"15px",position:"relative"},children:[R.jsx(Jr,{in:e,children:R.jsx(zr,{disabled:i,style:{position:"absolute",top:"3px",right:"3px"},onClick:()=>n(c=>!c),children:R.jsx(Br,{})})}),s?R.jsx(bn,{project:t,disabled:i}):R.jsx(kn,{project:t})]})},Rn=async({request:t})=>{if(t.headers.get("Content-type")!=="application/json")throw new Response("Unsupported Media Type",{status:415});const e=await t.json();return hr.editProjectInfo(e)},In=async()=>hr.getProjects(),Dn=()=>{const t=Pr();return R.jsxs(R.Fragment,{children:[R.jsx(it,{align:"center",variant:"h5",children:"Project List"}),R.jsx(Rt,{m:"auto",mt:2,maxWidth:600,children:R.jsx(Wr,{container:!0,direction:"column",justifyContent:"center",alignItems:"stretch",children:t.map(e=>R.jsx(Rt,{children:R.jsx(wn,{project:e})},e.id))})})]})},Mn=R.jsx(it,{variant:"h4",children:" Something went wrong..."});export{Dn as Component,Rn as action,Mn as errorElement,In as loader}; diff --git a/src/evidently/ui/ui/static/js/Component-ba7b8280.js b/src/evidently/ui/ui/static/js/Component-ba7b8280.js new file mode 100644 index 0000000000..e3fd8f303b --- /dev/null +++ b/src/evidently/ui/ui/static/js/Component-ba7b8280.js @@ -0,0 +1 @@ +import{u as l,h as d,j as s,L as c,O as m}from"./vendor-20fe28cb.js";import{d as p}from"./ContentCopy-2be27db4.js";import{i as x}from"./tiny-invariant-dd7d57d2.js";import{m as u,j,T as f,I as h}from"./createSvgIcon-41173291.js";import{G as o}from"./Grid-ec570cb4.js";import{T as b,a as T}from"./Tabs-2c8f7c5f.js";import{L as k}from"./Link-9fdafac8.js";const a=[{id:"dashboard",link:"."},{id:"reports",link:"reports"},{id:"test_suites",link:"test-suites",label:"Test suites"},{id:"comparisons",link:"comparisons",disabled:!0}],O={crumb:(i,{pathname:t})=>({to:t,linkText:i.name})},_=async({params:i})=>{const{projectId:t}=i;return x(t,"missing projectId"),u.getProjectInfo(t)},w=()=>{const i=l(),t=d(),n=a.findIndex(e=>i.find(({id:r})=>r===e.id));return s.jsxs(j,{mt:2,children:[s.jsx(o,{container:!0,spacing:2,direction:"row",justifyContent:"flex-start",alignItems:"flex-end",children:s.jsx(o,{item:!0,xs:12,children:s.jsxs(f,{style:{color:"#aaa"},variant:"body2",children:[`project id: ${t.id}`,s.jsx(h,{size:"small",style:{marginLeft:10},onClick:()=>navigator.clipboard.writeText(t.id),children:s.jsx(p,{fontSize:"small"})})]})})}),s.jsx(b,{value:n,"aria-label":"simple tabs example",indicatorColor:"primary",children:a.map(e=>{const r=s.jsx(T,{label:e.label||e.id,value:e.id,disabled:e.disabled});return e.disabled?r:s.jsx(k,{component:c,to:e.link,children:r})})}),s.jsx(m,{})]})};export{w as Component,O as handle,_ as loader}; diff --git a/src/evidently/ui/ui/static/js/Component-f9649b14.js b/src/evidently/ui/ui/static/js/Component-f9649b14.js new file mode 100644 index 0000000000..b3446e1dfc --- /dev/null +++ b/src/evidently/ui/ui/static/js/Component-f9649b14.js @@ -0,0 +1 @@ +import{k as u,h as f,u as T,l as g,e as b,j as s,O as w,L as y}from"./vendor-20fe28cb.js";import{i as I}from"./tiny-invariant-dd7d57d2.js";import{m as L,j as m}from"./createSvgIcon-41173291.js";import{u as D,A as R,T as A,H as B,D as k}from"./useUpdateQueryStringValueWithoutNavigation-bd5f68fd.js";import{f as v}from"./Datetime-bd8955b4.js";import{G as o}from"./Grid-ec570cb4.js";import{T as C}from"./TextField-33506b98.js";import{T as S,a as $,b as c,c as t,d as F}from"./TableRow-e790adad.js";import{L as G}from"./Link-9fdafac8.js";import{B as H}from"./Button-085c6ce4.js";import"./ContentCopy-2be27db4.js";const z=async({params:i})=>(I(i.projectId,"missing projectId"),L.getReports(i.projectId)),J={crumb:(i,{pathname:n})=>({to:n,linkText:"Reports"})},K=()=>{const{projectId:i}=u(),n=f(),x=T(),[j]=g(),[r,l]=b.useState(()=>{var e;return((e=j.get("tags"))==null?void 0:e.split(","))||[]});D("tags",r.join(","));const d=x.find(({id:e})=>e==="show-report-by-id"),h=d?[]:Array.from(new Set(n.flatMap(({tags:e})=>e))),p=n.filter(({tags:e})=>d?!1:r.length===0?!0:r.every(a=>e.includes(a)));return d?s.jsx(o,{container:!0,children:s.jsx(o,{item:!0,xs:12,children:s.jsx(w,{})})}):s.jsxs(s.Fragment,{children:[s.jsx(m,{sx:{padding:2},children:s.jsx(o,{container:!0,children:s.jsx(o,{item:!0,xs:12,md:6,children:s.jsx(R,{multiple:!0,limitTags:2,value:r,onChange:(e,a)=>l(a),options:h,renderInput:e=>s.jsx(C,{...e,variant:"standard",label:"Filter by Tags"})})})})}),s.jsxs(S,{children:[s.jsxs($,{children:[s.jsxs(c,{children:[s.jsx(t,{children:"Report ID"}),s.jsx(t,{children:"Tags"}),s.jsx(t,{children:"Timestamp"}),s.jsx(t,{children:"Actions"})]}),s.jsx(c,{})]}),s.jsx(F,{children:p.map(e=>s.jsxs(c,{children:[s.jsx(t,{children:s.jsx(A,{showText:e.id,copyText:e.id})}),s.jsx(t,{children:s.jsx(m,{maxWidth:250,children:s.jsx(B,{onClick:a=>{r.includes(a)||l([...r,a])},tags:e.tags})})}),s.jsx(t,{children:v(new Date(Date.parse(e.timestamp)))}),s.jsxs(t,{children:[s.jsx(G,{component:y,to:`${e.id}`,children:s.jsx(H,{children:"View"})}),s.jsx(k,{downloadLink:`/api/projects/${i}/${e.id}/download`})]})]},`r-${e.id}`))})]})]})};export{K as Component,J as handle,z as loader}; diff --git a/src/evidently/ui/ui/static/js/ContentCopy-2be27db4.js b/src/evidently/ui/ui/static/js/ContentCopy-2be27db4.js new file mode 100644 index 0000000000..f88ed6ed1a --- /dev/null +++ b/src/evidently/ui/ui/static/js/ContentCopy-2be27db4.js @@ -0,0 +1 @@ +import{r as t,k as r}from"./createSvgIcon-41173291.js";import{j as a}from"./vendor-20fe28cb.js";var e={},o=r;Object.defineProperty(e,"__esModule",{value:!0});var u=e.default=void 0,v=o(t()),i=a,n=(0,v.default)((0,i.jsx)("path",{d:"M16 1H4c-1.1 0-2 .9-2 2v14h2V3h12V1zm3 4H8c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h11c1.1 0 2-.9 2-2V7c0-1.1-.9-2-2-2zm0 16H8V7h11v14z"}),"ContentCopy");u=e.default=n;export{u as d}; diff --git a/src/evidently/ui/ui/static/js/DashboardContent-ab24b4bf.js b/src/evidently/ui/ui/static/js/DashboardContent-ab24b4bf.js new file mode 100644 index 0000000000..597445c452 --- /dev/null +++ b/src/evidently/ui/ui/static/js/DashboardContent-ab24b4bf.js @@ -0,0 +1,406 @@ +var aR=Object.defineProperty;var iR=(e,t,r)=>t in e?aR(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r;var Jc=(e,t,r)=>(iR(e,typeof t!="symbol"?t+"":t,r),r);import{g as ur,j as Ee,e as $e,R as tt,m as oR,n as Xn,d as Ea,o as jy,p as lR}from"./vendor-20fe28cb.js";import{g as pC,P as Qa,a as sR,p as uR,b as cR,B as si,c as fR}from"./Button-085c6ce4.js";import{H as dR,J as pR,K as hR,_ as ot,L as Yl,b as wn,M as Io,N as gR,O as mR,P as Tw,Q as Mg,R as vR,S as yR,U as bR,d as ar,V as kw,e as Nn,g as Wn,W as xR,X as wR,l as ed,Y as xr,Z as wr,$ as Qc,a0 as ef,a1 as Mu,a2 as _R,a3 as hC,a4 as gC,a5 as mC,n as Ii,a6 as TR,a7 as ju,a8 as Nu,a9 as kR,aa as vC,ab as SR,h as MR,s as Jt,ac as CR,ad as OR,ae as PR,af as AR,ag as dc,ah as Bu,ai as DR,aj as ER,x as ji,u as Ln,ak as yC,a as Un,q as uo,I as Ya,al as RR,am as LR,f as sa,c as dr,T as lr,an as IR,ao as $R,j as Ma,B as Ny,v as Xl,ap as FR,C as El,aq as jR,ar as NR,o as pc,w as hc,G as BR,as as tf,t as zR,k as yn,r as Qr,at as qR,au as _n,A as WR,z as bC,y as Cg,av as Sw,aw as UR}from"./createSvgIcon-41173291.js";import{d as Og,e as HR,g as xC,h as Mw,u as gc,B as VR,j as GR,F as By,k as YR,l as XR,m as ZR,n as wC,p as KR,q as JR,r as QR,s as eL,I as tL,t as nL,v as rL,L as aL,w as iL,x as oL,y as lL,S as zy,z as sL,C as uL,G as X0,D as cL,T as fL,E as dL,H as pL,P as _C,a as hL}from"./TextField-33506b98.js";import{e as gL,f as mL,C as vL,h as yL,l as Z0,i as TC,M as kC,j as bL,m as xL,P as qy,T as Wy,k as wL,t as _L,d as Uy,n as TL,o as kL,c as Xa,p as SL,q as ML,r as CL,a as Hy,s as OL,u as PL,b as zu,v as AL,w as DL}from"./TableRow-e790adad.js";import{G as rr}from"./Grid-ec570cb4.js";import{u as EL,b as RL,a as LL,L as SC,g as IL,l as $L,T as MC,c as FL,t as jL}from"./Toolbar-03fb06fb.js";import{K as Cw,b as Ow,T as CC,a as K0,t as NL}from"./Tabs-2c8f7c5f.js";import{E as BL}from"./Edit-f207c17d.js";import{i as zL}from"./tiny-invariant-dd7d57d2.js";var OC={exports:{}},qL="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED",WL=qL,UL=WL;function PC(){}function AC(){}AC.resetWarningCache=PC;var HL=function(){function e(i,s,o,a,n,l){if(l!==UL){var c=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw c.name="Invariant Violation",c}}e.isRequired=e;function t(){return e}var r={array:e,bigint:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:t,element:e,elementType:e,instanceOf:t,node:e,objectOf:t,oneOf:t,oneOfType:t,shape:t,exact:t,checkPropTypes:AC,resetWarningCache:PC};return r.PropTypes=r,r};OC.exports=HL();var Ar=OC.exports;const oe=ur(Ar);let J0;typeof document=="object"&&(J0=pR({key:"css",prepend:!0}));function VL(e){const{injectFirst:t,children:r}=e;return t&&J0?Ee.jsx(dR,{value:J0,children:r}):r}const GL=hR(),YL=GL,Vy="mode",Gy="color-scheme",DC="data-color-scheme";function XL(e){const{defaultMode:t="light",defaultLightColorScheme:r="light",defaultDarkColorScheme:i="dark",modeStorageKey:s=Vy,colorSchemeStorageKey:o=Gy,attribute:a=DC,colorSchemeNode:n="document.documentElement"}=e||{};return Ee.jsx("script",{dangerouslySetInnerHTML:{__html:`(function() { +try { + var mode = localStorage.getItem('${s}') || '${t}'; + var colorScheme = ''; + if (mode === 'system') { + // handle system mode + var mql = window.matchMedia('(prefers-color-scheme: dark)'); + if (mql.matches) { + colorScheme = localStorage.getItem('${o}-dark') || '${i}'; + } else { + colorScheme = localStorage.getItem('${o}-light') || '${r}'; + } + } + if (mode === 'light') { + colorScheme = localStorage.getItem('${o}-light') || '${r}'; + } + if (mode === 'dark') { + colorScheme = localStorage.getItem('${o}-dark') || '${i}'; + } + if (colorScheme) { + ${n}.setAttribute('${a}', colorScheme); + } +} catch(e){}})();`}},"mui-color-scheme-init")}function Pw(e){if(typeof window<"u"&&e==="system")return window.matchMedia("(prefers-color-scheme: dark)").matches?"dark":"light"}function EC(e,t){if(e.mode==="light"||e.mode==="system"&&e.systemMode==="light")return t("light");if(e.mode==="dark"||e.mode==="system"&&e.systemMode==="dark")return t("dark")}function ZL(e){return EC(e,t=>{if(t==="light")return e.lightColorScheme;if(t==="dark")return e.darkColorScheme})}function Pg(e,t){if(typeof window>"u")return;let r;try{r=localStorage.getItem(e)||void 0,r||localStorage.setItem(e,t)}catch{}return r||t}function KL(e){const{defaultMode:t="light",defaultLightColorScheme:r,defaultDarkColorScheme:i,supportedColorSchemes:s=[],modeStorageKey:o=Vy,colorSchemeStorageKey:a=Gy,storageWindow:n=typeof window>"u"?void 0:window}=e,l=s.join(","),[c,u]=$e.useState(()=>{const y=Pg(o,t),v=Pg(`${a}-light`,r),g=Pg(`${a}-dark`,i);return{mode:y,systemMode:Pw(y),lightColorScheme:v,darkColorScheme:g}}),f=ZL(c),d=$e.useCallback(y=>{u(v=>{if(y===v.mode)return v;const g=y||t;try{localStorage.setItem(o,g)}catch{}return ot({},v,{mode:g,systemMode:Pw(g)})})},[o,t]),p=$e.useCallback(y=>{y?typeof y=="string"?y&&!l.includes(y)?console.error(`\`${y}\` does not exist in \`theme.colorSchemes\`.`):u(v=>{const g=ot({},v);return EC(v,b=>{try{localStorage.setItem(`${a}-${b}`,y)}catch{}b==="light"&&(g.lightColorScheme=y),b==="dark"&&(g.darkColorScheme=y)}),g}):u(v=>{const g=ot({},v),b=y.light===null?r:y.light,w=y.dark===null?i:y.dark;if(b)if(!l.includes(b))console.error(`\`${b}\` does not exist in \`theme.colorSchemes\`.`);else{g.lightColorScheme=b;try{localStorage.setItem(`${a}-light`,b)}catch{}}if(w)if(!l.includes(w))console.error(`\`${w}\` does not exist in \`theme.colorSchemes\`.`);else{g.darkColorScheme=w;try{localStorage.setItem(`${a}-dark`,w)}catch{}}return g}):u(v=>{try{localStorage.setItem(`${a}-light`,r),localStorage.setItem(`${a}-dark`,i)}catch{}return ot({},v,{lightColorScheme:r,darkColorScheme:i})})},[l,a,r,i]),h=$e.useCallback(y=>{c.mode==="system"&&u(v=>ot({},v,{systemMode:y!=null&&y.matches?"dark":"light"}))},[c.mode]),m=$e.useRef(h);return m.current=h,$e.useEffect(()=>{const y=(...g)=>m.current(...g),v=window.matchMedia("(prefers-color-scheme: dark)");return v.addListener(y),y(v),()=>v.removeListener(y)},[]),$e.useEffect(()=>{const y=v=>{const g=v.newValue;typeof v.key=="string"&&v.key.startsWith(a)&&(!g||l.match(g))&&(v.key.endsWith("light")&&p({light:g}),v.key.endsWith("dark")&&p({dark:g})),v.key===o&&(!g||["light","dark","system"].includes(g))&&d(g||t)};if(n)return n.addEventListener("storage",y),()=>n.removeEventListener("storage",y)},[p,d,o,a,l,t,n]),ot({},c,{colorScheme:f,setMode:d,setColorScheme:p})}const JL=["colorSchemes","components","generateCssVars","cssVarPrefix"],QL="*{-webkit-transition:none!important;-moz-transition:none!important;-o-transition:none!important;-ms-transition:none!important;transition:none!important}";function eI(e){const{themeId:t,theme:r={},attribute:i=DC,modeStorageKey:s=Vy,colorSchemeStorageKey:o=Gy,defaultMode:a="light",defaultColorScheme:n,disableTransitionOnChange:l=!1,resolveTheme:c,excludeVariablesFromRoot:u}=e;(!r.colorSchemes||typeof n=="string"&&!r.colorSchemes[n]||typeof n=="object"&&!r.colorSchemes[n==null?void 0:n.light]||typeof n=="object"&&!r.colorSchemes[n==null?void 0:n.dark])&&console.error(`MUI: \`${n}\` does not exist in \`theme.colorSchemes\`.`);const f=$e.createContext(void 0),d=()=>{const v=$e.useContext(f);if(!v)throw new Error(Yl(19));return v};function p({children:v,theme:g=r,modeStorageKey:b=s,colorSchemeStorageKey:w=o,attribute:_=i,defaultMode:x=a,defaultColorScheme:k=n,disableTransitionOnChange:T=l,storageWindow:S=typeof window>"u"?void 0:window,documentNode:M=typeof document>"u"?void 0:document,colorSchemeNode:C=typeof document>"u"?void 0:document.documentElement,colorSchemeSelector:A=":root",disableNestedContext:D=!1,disableStyleSheetGeneration:O=!1}){const R=$e.useRef(!1),$=EL(),P=$e.useContext(f),z=!!P&&!D,B=g[t],N=B||g,{colorSchemes:j={},components:F={},generateCssVars:E=()=>({vars:{},css:{}}),cssVarPrefix:W}=N,H=wn(N,JL),L=Object.keys(j),q=typeof k=="string"?k:k.light,U=typeof k=="string"?k:k.dark,{mode:J,setMode:te,systemMode:ee,lightColorScheme:K,darkColorScheme:Q,colorScheme:G,setColorScheme:X}=KL({supportedColorSchemes:L,defaultLightColorScheme:q,defaultDarkColorScheme:U,modeStorageKey:b,colorSchemeStorageKey:w,defaultMode:x,storageWindow:S});let Y=J,re=G;z&&(Y=P.mode,re=P.colorScheme);const ie=(()=>Y||(x==="system"?a:x))(),le=(()=>re||(ie==="dark"?U:q))(),{css:se,vars:he}=E(),_e=ot({},H,{components:F,colorSchemes:j,cssVarPrefix:W,vars:he,getColorSchemeSelector:V=>`[${_}="${V}"] &`}),Me={},Ce={};Object.entries(j).forEach(([V,ne])=>{const{css:fe,vars:xe}=E(V);_e.vars=Io(_e.vars,xe),V===le&&(Object.keys(ne).forEach(ge=>{ne[ge]&&typeof ne[ge]=="object"?_e[ge]=ot({},_e[ge],ne[ge]):_e[ge]=ne[ge]}),_e.palette&&(_e.palette.colorScheme=V));const ue=(()=>typeof k=="string"?k:x==="dark"?k.dark:k.light)();if(V===ue){if(u){const ge={};u(W).forEach(be=>{ge[be]=fe[be],delete fe[be]}),Me[`[${_}="${V}"]`]=ge}Me[`${A}, [${_}="${V}"]`]=fe}else Ce[`${A===":root"?"":A}[${_}="${V}"]`]=fe}),_e.vars=Io(_e.vars,he),$e.useEffect(()=>{re&&C&&C.setAttribute(_,re)},[re,_,C]),$e.useEffect(()=>{let V;if(T&&R.current&&M){const ne=M.createElement("style");ne.appendChild(M.createTextNode(QL)),M.head.appendChild(ne),window.getComputedStyle(M.body),V=setTimeout(()=>{M.head.removeChild(ne)},1)}return()=>{clearTimeout(V)}},[re,T,M]),$e.useEffect(()=>(R.current=!0,()=>{R.current=!1}),[]);const Se=$e.useMemo(()=>({mode:Y,systemMode:ee,setMode:te,lightColorScheme:K,darkColorScheme:Q,colorScheme:re,setColorScheme:X,allColorSchemes:L}),[L,re,Q,K,Y,X,te,ee]);let ce=!0;(O||z&&($==null?void 0:$.cssVarPrefix)===W)&&(ce=!1);const ye=Ee.jsxs($e.Fragment,{children:[ce&&Ee.jsxs($e.Fragment,{children:[Ee.jsx(Og,{styles:{[A]:se}}),Ee.jsx(Og,{styles:Me}),Ee.jsx(Og,{styles:Ce})]}),Ee.jsx(RL,{themeId:B?t:void 0,theme:c?c(_e):_e,children:v})]});return z?ye:Ee.jsx(f.Provider,{value:Se,children:ye})}const h=typeof n=="string"?n:n.light,m=typeof n=="string"?n:n.dark;return{CssVarsProvider:p,useColorScheme:d,getInitColorSchemeScript:v=>XL(ot({attribute:i,colorSchemeStorageKey:o,defaultMode:a,defaultLightColorScheme:h,defaultDarkColorScheme:m,modeStorageKey:s},v))}}function tI(e=""){function t(...i){if(!i.length)return"";const s=i[0];return typeof s=="string"&&!s.match(/(#|\(|\)|(-?(\d*\.)?\d+)(px|em|%|ex|ch|rem|vw|vh|vmin|vmax|cm|mm|in|pt|pc))|^(-?(\d*\.)?\d+)$|(\d+ \d+ \d+)/)?`, var(--${e?`${e}-`:""}${s}${t(...i.slice(1))})`:`, ${s}`}return(i,...s)=>`var(--${e?`${e}-`:""}${i}${t(...s)})`}const Aw=(e,t,r,i=[])=>{let s=e;t.forEach((o,a)=>{a===t.length-1?Array.isArray(s)?s[Number(o)]=r:s&&typeof s=="object"&&(s[o]=r):s&&typeof s=="object"&&(s[o]||(s[o]=i.includes(o)?[]:{}),s=s[o])})},nI=(e,t,r)=>{function i(s,o=[],a=[]){Object.entries(s).forEach(([n,l])=>{(!r||r&&!r([...o,n]))&&l!=null&&(typeof l=="object"&&Object.keys(l).length>0?i(l,[...o,n],Array.isArray(l)?[...a,n]:a):t([...o,n],l,a))})}i(e)},rI=(e,t)=>typeof t=="number"?["lineHeight","fontWeight","opacity","zIndex"].some(i=>e.includes(i))||e[e.length-1].toLowerCase().indexOf("opacity")>=0?t:`${t}px`:t;function Ag(e,t){const{prefix:r,shouldSkipGeneratingVar:i}=t||{},s={},o={},a={};return nI(e,(n,l,c)=>{if((typeof l=="string"||typeof l=="number")&&(!i||!i(n,l))){const u=`--${r?`${r}-`:""}${n.join("-")}`;Object.assign(s,{[u]:rI(n,l)}),Aw(o,n,`var(${u})`,c),Aw(a,n,`var(${u}, ${l})`,c)}},n=>n[0]==="vars"),{css:s,vars:o,varsWithDefaults:a}}const aI=["colorSchemes","components"],iI=["light"];function oI(e,t){const{colorSchemes:r={}}=e,i=wn(e,aI),{vars:s,css:o,varsWithDefaults:a}=Ag(i,t);let n=a;const l={},{light:c}=r,u=wn(r,iI);if(Object.entries(u||{}).forEach(([d,p])=>{const{vars:h,css:m,varsWithDefaults:y}=Ag(p,t);n=Io(n,y),l[d]={css:m,vars:h}}),c){const{css:d,vars:p,varsWithDefaults:h}=Ag(c,t);n=Io(n,h),l.light={css:d,vars:p}}return{vars:n,generateCssVars:d=>d?{css:ot({},l[d].css),vars:l[d].vars}:{css:ot({},o),vars:s}}}const lI=["component","direction","spacing","divider","children","className","useFlexGap"],sI=gR(),uI=YL("div",{name:"MuiStack",slot:"Root",overridesResolver:(e,t)=>t.root});function cI(e){return mR({props:e,name:"MuiStack",defaultTheme:sI})}function fI(e,t){const r=$e.Children.toArray(e).filter(Boolean);return r.reduce((i,s,o)=>(i.push(s),o({row:"Left","row-reverse":"Right",column:"Top","column-reverse":"Bottom"})[e],pI=({ownerState:e,theme:t})=>{let r=ot({display:"flex",flexDirection:"column"},Tw({theme:t},Mg({values:e.direction,breakpoints:t.breakpoints.values}),i=>({flexDirection:i})));if(e.spacing){const i=vR(t),s=Object.keys(t.breakpoints.values).reduce((l,c)=>((typeof e.spacing=="object"&&e.spacing[c]!=null||typeof e.direction=="object"&&e.direction[c]!=null)&&(l[c]=!0),l),{}),o=Mg({values:e.direction,base:s}),a=Mg({values:e.spacing,base:s});typeof o=="object"&&Object.keys(o).forEach((l,c,u)=>{if(!o[l]){const d=c>0?o[u[c-1]]:"column";o[l]=d}}),r=Io(r,Tw({theme:t},a,(l,c)=>e.useFlexGap?{gap:kw(i,l)}:{"& > :not(style):not(style)":{margin:0},"& > :not(style) ~ :not(style)":{[`margin${dI(c?o[c]:e.direction)}`]:kw(i,l)}}))}return r=yR(t.breakpoints,r),r};function hI(e={}){const{createStyledComponent:t=uI,useThemeProps:r=cI,componentName:i="MuiStack"}=e,s=()=>Nn({root:["root"]},l=>Wn(i,l),{}),o=t(pI);return $e.forwardRef(function(l,c){const u=r(l),f=bR(u),{component:d="div",direction:p="column",spacing:h=0,divider:m,children:y,className:v,useFlexGap:g=!1}=f,b=wn(f,lI),w={direction:p,spacing:h,useFlexGap:g},_=s();return Ee.jsx(o,ot({as:d,ownerState:w,ref:c,className:ar(_.root,v)},b,{children:m?fI(y,m):y}))})}const gI=["defaultProps","mixins","overrides","palette","props","styleOverrides"],mI=["type","mode"];function vI(e){const{defaultProps:t={},mixins:r={},overrides:i={},palette:s={},props:o={},styleOverrides:a={}}=e,n=wn(e,gI),l=ot({},n,{components:{}});Object.keys(t).forEach(m=>{const y=l.components[m]||{};y.defaultProps=t[m],l.components[m]=y}),Object.keys(o).forEach(m=>{const y=l.components[m]||{};y.defaultProps=o[m],l.components[m]=y}),Object.keys(a).forEach(m=>{const y=l.components[m]||{};y.styleOverrides=a[m],l.components[m]=y}),Object.keys(i).forEach(m=>{const y=l.components[m]||{};y.styleOverrides=i[m],l.components[m]=y}),l.spacing=xR(e.spacing);const c=wR(e.breakpoints||{}),u=l.spacing;l.mixins=ot({gutters:(m={})=>ot({paddingLeft:u(2),paddingRight:u(2)},m,{[c.up("sm")]:ot({paddingLeft:u(3),paddingRight:u(3)},m[c.up("sm")])})},r);const{type:f,mode:d}=s,p=wn(s,mI),h=d||f||"light";return l.palette=ot({text:{hint:h==="dark"?"rgba(255, 255, 255, 0.5)":"rgba(0, 0, 0, 0.38)"},mode:h,type:h},p),l}function yI(e,...t){return ed(Io({unstable_strictMode:!0},e),...t)}let Dw=!1;function bI(e){return Dw||(console.warn(["MUI: createStyles from @mui/material/styles is deprecated.","Please use @mui/styles/createStyles"].join(` +`)),Dw=!0),e}function Ew(e){return String(parseFloat(e)).length===String(e).length}function Yy(e){return String(e).match(/[\d.\-+]*\s*(.*)/)[1]||""}function Ai(e){return parseFloat(e)}function xI(e){return(t,r)=>{const i=Yy(t);if(i===r)return t;let s=Ai(t);i!=="px"&&(i==="em"||i==="rem")&&(s=Ai(t)*Ai(e));let o=s;if(r!=="px")if(r==="em")o=s/Ai(e);else if(r==="rem")o=s/Ai(e);else return t;return parseFloat(o.toFixed(5))+r}}function wI({size:e,grid:t}){const r=e-e%t,i=r+t;return e-r{let c=t+n*l;o!==null&&(c=o(c)),a[`@media (min-width:${l}px)`]={[e]:`${Math.round(c*1e4)/1e4}${i}`}}),a}function kI(e,t={}){const{breakpoints:r=["sm","md","lg"],disableAlign:i=!1,factor:s=2,variants:o=["h1","h2","h3","h4","h5","h6","subtitle1","subtitle2","body1","body2","caption","button","overline"]}=t,a=ot({},e);a.typography=ot({},a.typography);const n=a.typography,l=xI(n.htmlFontSize),c=r.map(u=>a.breakpoints.values[u]);return o.forEach(u=>{const f=n[u],d=parseFloat(l(f.fontSize,"rem"));if(d<=1)return;const p=d,h=1+(p-1)/s;let{lineHeight:m}=f;if(!Ew(m)&&!i)throw new Error(Yl(6));Ew(m)||(m=parseFloat(l(m,"rem"))/parseFloat(d));let y=null;i||(y=v=>wI({size:v,grid:_I({pixels:4,lineHeight:m,htmlFontSize:n.htmlFontSize})})),n[u]=ot({},f,TI({cssProperty:"fontSize",min:h,max:p,unit:"rem",breakpoints:c,transform:y}))}),a}function SI(){throw new Error(Yl(14))}function MI(){throw new Error(Yl(15))}function CI(){throw new Error(Yl(16))}function RC(e){var t;return!!e[0].match(/(cssVarPrefix|typography|mixins|breakpoints|direction|transitions)/)||!!e[0].match(/sxConfig$/)||e[0]==="palette"&&!!((t=e[1])!=null&&t.match(/(mode|contrastThreshold|tonalOffset)/))}const OI=["colorSchemes","cssVarPrefix","shouldSkipGeneratingVar"],PI=["palette"],AI=[...Array(25)].map((e,t)=>{if(t===0)return;const r=pC(t);return`linear-gradient(rgba(255 255 255 / ${r}), rgba(255 255 255 / ${r}))`});function DI(e,t){t.forEach(r=>{e[r]||(e[r]={})})}function Zt(e,t,r){!e[t]&&r&&(e[t]=r)}function Zi(e,t){`${t}Channel`in e||(e[`${t}Channel`]=Mu(e[t],`MUI: Can't create \`palette.${t}Channel\` because \`palette.${t}\` is not one of these formats: #nnn, #nnnnnn, rgb(), rgba(), hsl(), hsla(), color(). +To suppress this warning, you need to explicitly provide the \`palette.${t}Channel\` as a string (in rgb format, e.g. "12 12 12") or undefined if you want to remove the channel token.`))}const mi=e=>{try{return e()}catch{}},EI=(e="mui")=>tI(e);function LC(e={},...t){var r,i,s,o,a,n;const{colorSchemes:l={},cssVarPrefix:c="mui",shouldSkipGeneratingVar:u=RC}=e,f=wn(e,OI),d=EI(c),p=ed(ot({},f,l.light&&{palette:(r=l.light)==null?void 0:r.palette})),{palette:h}=p,m=wn(p,PI),{palette:y}=ed({palette:ot({mode:"dark"},(i=l.dark)==null?void 0:i.palette)});let v=ot({},m,{cssVarPrefix:c,getCssVar:d,colorSchemes:ot({},l,{light:ot({},l.light,{palette:h,opacity:ot({inputPlaceholder:.42,inputUnderline:.42,switchTrackDisabled:.12,switchTrack:.38},(s=l.light)==null?void 0:s.opacity),overlays:((o=l.light)==null?void 0:o.overlays)||[]}),dark:ot({},l.dark,{palette:y,opacity:ot({inputPlaceholder:.5,inputUnderline:.7,switchTrackDisabled:.2,switchTrack:.3},(a=l.dark)==null?void 0:a.opacity),overlays:((n=l.dark)==null?void 0:n.overlays)||AI})})});Object.keys(v.colorSchemes).forEach(_=>{const x=v.colorSchemes[_].palette,k=T=>{const S=T.split("-"),M=S[1],C=S[2];return d(T,x[M][C])};if(_==="light"?(Zt(x.common,"background","#fff"),Zt(x.common,"onBackground","#000")):(Zt(x.common,"background","#000"),Zt(x.common,"onBackground","#fff")),DI(x,["Alert","AppBar","Avatar","Button","Chip","FilledInput","LinearProgress","Skeleton","Slider","SnackbarContent","SpeedDialAction","StepConnector","StepContent","Switch","TableCell","Tooltip"]),_==="light"){Zt(x.Alert,"errorColor",xr(x.error.light,.6)),Zt(x.Alert,"infoColor",xr(x.info.light,.6)),Zt(x.Alert,"successColor",xr(x.success.light,.6)),Zt(x.Alert,"warningColor",xr(x.warning.light,.6)),Zt(x.Alert,"errorFilledBg",k("palette-error-main")),Zt(x.Alert,"infoFilledBg",k("palette-info-main")),Zt(x.Alert,"successFilledBg",k("palette-success-main")),Zt(x.Alert,"warningFilledBg",k("palette-warning-main")),Zt(x.Alert,"errorFilledColor",mi(()=>h.getContrastText(x.error.main))),Zt(x.Alert,"infoFilledColor",mi(()=>h.getContrastText(x.info.main))),Zt(x.Alert,"successFilledColor",mi(()=>h.getContrastText(x.success.main))),Zt(x.Alert,"warningFilledColor",mi(()=>h.getContrastText(x.warning.main))),Zt(x.Alert,"errorStandardBg",wr(x.error.light,.9)),Zt(x.Alert,"infoStandardBg",wr(x.info.light,.9)),Zt(x.Alert,"successStandardBg",wr(x.success.light,.9)),Zt(x.Alert,"warningStandardBg",wr(x.warning.light,.9)),Zt(x.Alert,"errorIconColor",k("palette-error-main")),Zt(x.Alert,"infoIconColor",k("palette-info-main")),Zt(x.Alert,"successIconColor",k("palette-success-main")),Zt(x.Alert,"warningIconColor",k("palette-warning-main")),Zt(x.AppBar,"defaultBg",k("palette-grey-100")),Zt(x.Avatar,"defaultBg",k("palette-grey-400")),Zt(x.Button,"inheritContainedBg",k("palette-grey-300")),Zt(x.Button,"inheritContainedHoverBg",k("palette-grey-A100")),Zt(x.Chip,"defaultBorder",k("palette-grey-400")),Zt(x.Chip,"defaultAvatarColor",k("palette-grey-700")),Zt(x.Chip,"defaultIconColor",k("palette-grey-700")),Zt(x.FilledInput,"bg","rgba(0, 0, 0, 0.06)"),Zt(x.FilledInput,"hoverBg","rgba(0, 0, 0, 0.09)"),Zt(x.FilledInput,"disabledBg","rgba(0, 0, 0, 0.12)"),Zt(x.LinearProgress,"primaryBg",wr(x.primary.main,.62)),Zt(x.LinearProgress,"secondaryBg",wr(x.secondary.main,.62)),Zt(x.LinearProgress,"errorBg",wr(x.error.main,.62)),Zt(x.LinearProgress,"infoBg",wr(x.info.main,.62)),Zt(x.LinearProgress,"successBg",wr(x.success.main,.62)),Zt(x.LinearProgress,"warningBg",wr(x.warning.main,.62)),Zt(x.Skeleton,"bg",`rgba(${k("palette-text-primaryChannel")} / 0.11)`),Zt(x.Slider,"primaryTrack",wr(x.primary.main,.62)),Zt(x.Slider,"secondaryTrack",wr(x.secondary.main,.62)),Zt(x.Slider,"errorTrack",wr(x.error.main,.62)),Zt(x.Slider,"infoTrack",wr(x.info.main,.62)),Zt(x.Slider,"successTrack",wr(x.success.main,.62)),Zt(x.Slider,"warningTrack",wr(x.warning.main,.62));const T=Qc(x.background.default,.8);Zt(x.SnackbarContent,"bg",T),Zt(x.SnackbarContent,"color",mi(()=>h.getContrastText(T))),Zt(x.SpeedDialAction,"fabHoverBg",Qc(x.background.paper,.15)),Zt(x.StepConnector,"border",k("palette-grey-400")),Zt(x.StepContent,"border",k("palette-grey-400")),Zt(x.Switch,"defaultColor",k("palette-common-white")),Zt(x.Switch,"defaultDisabledColor",k("palette-grey-100")),Zt(x.Switch,"primaryDisabledColor",wr(x.primary.main,.62)),Zt(x.Switch,"secondaryDisabledColor",wr(x.secondary.main,.62)),Zt(x.Switch,"errorDisabledColor",wr(x.error.main,.62)),Zt(x.Switch,"infoDisabledColor",wr(x.info.main,.62)),Zt(x.Switch,"successDisabledColor",wr(x.success.main,.62)),Zt(x.Switch,"warningDisabledColor",wr(x.warning.main,.62)),Zt(x.TableCell,"border",wr(ef(x.divider,1),.88)),Zt(x.Tooltip,"bg",ef(x.grey[700],.92))}else{Zt(x.Alert,"errorColor",wr(x.error.light,.6)),Zt(x.Alert,"infoColor",wr(x.info.light,.6)),Zt(x.Alert,"successColor",wr(x.success.light,.6)),Zt(x.Alert,"warningColor",wr(x.warning.light,.6)),Zt(x.Alert,"errorFilledBg",k("palette-error-dark")),Zt(x.Alert,"infoFilledBg",k("palette-info-dark")),Zt(x.Alert,"successFilledBg",k("palette-success-dark")),Zt(x.Alert,"warningFilledBg",k("palette-warning-dark")),Zt(x.Alert,"errorFilledColor",mi(()=>y.getContrastText(x.error.dark))),Zt(x.Alert,"infoFilledColor",mi(()=>y.getContrastText(x.info.dark))),Zt(x.Alert,"successFilledColor",mi(()=>y.getContrastText(x.success.dark))),Zt(x.Alert,"warningFilledColor",mi(()=>y.getContrastText(x.warning.dark))),Zt(x.Alert,"errorStandardBg",xr(x.error.light,.9)),Zt(x.Alert,"infoStandardBg",xr(x.info.light,.9)),Zt(x.Alert,"successStandardBg",xr(x.success.light,.9)),Zt(x.Alert,"warningStandardBg",xr(x.warning.light,.9)),Zt(x.Alert,"errorIconColor",k("palette-error-main")),Zt(x.Alert,"infoIconColor",k("palette-info-main")),Zt(x.Alert,"successIconColor",k("palette-success-main")),Zt(x.Alert,"warningIconColor",k("palette-warning-main")),Zt(x.AppBar,"defaultBg",k("palette-grey-900")),Zt(x.AppBar,"darkBg",k("palette-background-paper")),Zt(x.AppBar,"darkColor",k("palette-text-primary")),Zt(x.Avatar,"defaultBg",k("palette-grey-600")),Zt(x.Button,"inheritContainedBg",k("palette-grey-800")),Zt(x.Button,"inheritContainedHoverBg",k("palette-grey-700")),Zt(x.Chip,"defaultBorder",k("palette-grey-700")),Zt(x.Chip,"defaultAvatarColor",k("palette-grey-300")),Zt(x.Chip,"defaultIconColor",k("palette-grey-300")),Zt(x.FilledInput,"bg","rgba(255, 255, 255, 0.09)"),Zt(x.FilledInput,"hoverBg","rgba(255, 255, 255, 0.13)"),Zt(x.FilledInput,"disabledBg","rgba(255, 255, 255, 0.12)"),Zt(x.LinearProgress,"primaryBg",xr(x.primary.main,.5)),Zt(x.LinearProgress,"secondaryBg",xr(x.secondary.main,.5)),Zt(x.LinearProgress,"errorBg",xr(x.error.main,.5)),Zt(x.LinearProgress,"infoBg",xr(x.info.main,.5)),Zt(x.LinearProgress,"successBg",xr(x.success.main,.5)),Zt(x.LinearProgress,"warningBg",xr(x.warning.main,.5)),Zt(x.Skeleton,"bg",`rgba(${k("palette-text-primaryChannel")} / 0.13)`),Zt(x.Slider,"primaryTrack",xr(x.primary.main,.5)),Zt(x.Slider,"secondaryTrack",xr(x.secondary.main,.5)),Zt(x.Slider,"errorTrack",xr(x.error.main,.5)),Zt(x.Slider,"infoTrack",xr(x.info.main,.5)),Zt(x.Slider,"successTrack",xr(x.success.main,.5)),Zt(x.Slider,"warningTrack",xr(x.warning.main,.5));const T=Qc(x.background.default,.98);Zt(x.SnackbarContent,"bg",T),Zt(x.SnackbarContent,"color",mi(()=>y.getContrastText(T))),Zt(x.SpeedDialAction,"fabHoverBg",Qc(x.background.paper,.15)),Zt(x.StepConnector,"border",k("palette-grey-600")),Zt(x.StepContent,"border",k("palette-grey-600")),Zt(x.Switch,"defaultColor",k("palette-grey-300")),Zt(x.Switch,"defaultDisabledColor",k("palette-grey-600")),Zt(x.Switch,"primaryDisabledColor",xr(x.primary.main,.55)),Zt(x.Switch,"secondaryDisabledColor",xr(x.secondary.main,.55)),Zt(x.Switch,"errorDisabledColor",xr(x.error.main,.55)),Zt(x.Switch,"infoDisabledColor",xr(x.info.main,.55)),Zt(x.Switch,"successDisabledColor",xr(x.success.main,.55)),Zt(x.Switch,"warningDisabledColor",xr(x.warning.main,.55)),Zt(x.TableCell,"border",xr(ef(x.divider,1),.68)),Zt(x.Tooltip,"bg",ef(x.grey[700],.92))}Zi(x.background,"default"),Zi(x.common,"background"),Zi(x.common,"onBackground"),Zi(x,"divider"),Object.keys(x).forEach(T=>{const S=x[T];S&&typeof S=="object"&&(S.main&&Zt(x[T],"mainChannel",Mu(S.main)),S.light&&Zt(x[T],"lightChannel",Mu(S.light)),S.dark&&Zt(x[T],"darkChannel",Mu(S.dark)),S.contrastText&&Zt(x[T],"contrastTextChannel",Mu(S.contrastText)),T==="text"&&(Zi(x[T],"primary"),Zi(x[T],"secondary")),T==="action"&&(S.active&&Zi(x[T],"active"),S.selected&&Zi(x[T],"selected")))})}),v=t.reduce((_,x)=>Io(_,x),v);const g={prefix:c,shouldSkipGeneratingVar:u},{vars:b,generateCssVars:w}=oI(v,g);return v.vars=b,v.generateCssVars=w,v.shouldSkipGeneratingVar=u,v.unstable_sxConfig=ot({},_R,f==null?void 0:f.unstable_sxConfig),v.unstable_sx=function(x){return hC({sx:x,theme:this})},v}const RI=e=>[...[...Array(24)].map((t,r)=>`--${e?`${e}-`:""}overlays-${r+1}`),`--${e?`${e}-`:""}palette-AppBar-darkBg`,`--${e?`${e}-`:""}palette-AppBar-darkColor`],IC=RI,LI=LC(),{CssVarsProvider:II,useColorScheme:$I,getInitColorSchemeScript:FI}=eI({themeId:gC,theme:LI,attribute:"data-mui-color-scheme",modeStorageKey:"mui-mode",colorSchemeStorageKey:"mui-color-scheme",defaultColorScheme:{light:"light",dark:"dark"},resolveTheme:e=>{const t=ot({},e,{typography:mC(e.palette,e.typography)});return t.unstable_sx=function(i){return hC({sx:i,theme:this})},t},excludeVariablesFromRoot:IC});function jI(){throw new Error(Yl(20))}const NI=Object.freeze(Object.defineProperty({__proto__:null,Experimental_CssVarsProvider:II,StyledEngineProvider:VL,THEME_ID:gC,ThemeProvider:LL,adaptV4Theme:vI,alpha:Ii,createMuiTheme:TR,createStyles:bI,createTheme:ed,css:ju,darken:Nu,decomposeColor:kR,duration:vC,easing:SR,emphasize:MR,experimentalStyled:Jt,experimental_extendTheme:LC,experimental_sx:jI,getContrastRatio:CR,getInitColorSchemeScript:FI,getLuminance:OR,getOverlayAlpha:pC,hexToRgb:PR,hslToRgb:AR,keyframes:dc,lighten:Bu,makeStyles:SI,private_createTypography:mC,private_excludeVariablesFromRoot:IC,recomposeColor:DR,responsiveFontSizes:kI,rgbToHex:ER,shouldSkipGeneratingVar:RC,styled:Jt,unstable_createMuiStrictModeTheme:yI,unstable_getUnit:Yy,unstable_toUnitless:Ai,useColorScheme:$I,useTheme:ji,useThemeProps:Ln,withStyles:MI,withTheme:CI},Symbol.toStringTag,{value:"Module"}));function BI(e,t){return e.classList?!!t&&e.classList.contains(t):(" "+(e.className.baseVal||e.className)+" ").indexOf(" "+t+" ")!==-1}function zI(e,t){e.classList?e.classList.add(t):BI(e,t)||(typeof e.className=="string"?e.className=e.className+" "+t:e.setAttribute("class",(e.className&&e.className.baseVal||"")+" "+t))}function Rw(e,t){return e.replace(new RegExp("(^|\\s)"+t+"(?:\\s|$)","g"),"$1").replace(/\s+/g," ").replace(/^\s*|\s*$/g,"")}function qI(e,t){e.classList?e.classList.remove(t):typeof e.className=="string"?e.className=Rw(e.className,t):e.setAttribute("class",Rw(e.className&&e.className.baseVal||"",t))}var WI=function(t,r){return t&&r&&r.split(" ").forEach(function(i){return zI(t,i)})},Dg=function(t,r){return t&&r&&r.split(" ").forEach(function(i){return qI(t,i)})},Xy=function(e){yC(t,e);function t(){for(var i,s=arguments.length,o=new Array(s),a=0;a{const{orientation:t,classes:r}=e,i={root:["root",`${t}`],entered:["entered"],hidden:["hidden"],wrapper:["wrapper",`${t}`],wrapperInner:["wrapperInner",`${t}`]};return Nn(i,$C,r)},XI=Jt("div",{name:"MuiCollapse",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,t[r.orientation],r.state==="entered"&&t.entered,r.state==="exited"&&!r.in&&r.collapsedSize==="0px"&&t.hidden]}})(({theme:e,ownerState:t})=>ot({height:0,overflow:"hidden",transition:e.transitions.create("height")},t.orientation==="horizontal"&&{height:"auto",width:0,transition:e.transitions.create("width")},t.state==="entered"&&ot({height:"auto",overflow:"visible"},t.orientation==="horizontal"&&{width:"auto"}),t.state==="exited"&&!t.in&&t.collapsedSize==="0px"&&{visibility:"hidden"})),ZI=Jt("div",{name:"MuiCollapse",slot:"Wrapper",overridesResolver:(e,t)=>t.wrapper})(({ownerState:e})=>ot({display:"flex",width:"100%"},e.orientation==="horizontal"&&{width:"auto",height:"100%"})),KI=Jt("div",{name:"MuiCollapse",slot:"WrapperInner",overridesResolver:(e,t)=>t.wrapperInner})(({ownerState:e})=>ot({width:"100%"},e.orientation==="horizontal"&&{width:"auto",height:"100%"})),FC=$e.forwardRef(function(t,r){const i=Ln({props:t,name:"MuiCollapse"}),{addEndListener:s,children:o,className:a,collapsedSize:n="0px",component:l,easing:c,in:u,onEnter:f,onEntered:d,onEntering:p,onExit:h,onExited:m,onExiting:y,orientation:v="vertical",style:g,timeout:b=vC.standard,TransitionComponent:w=xC}=i,_=wn(i,GI),x=ot({},i,{orientation:v,collapsedSize:n}),k=YI(x),T=ji(),S=$e.useRef(),M=$e.useRef(null),C=$e.useRef(),A=typeof n=="number"?`${n}px`:n,D=v==="horizontal",O=D?"width":"height";$e.useEffect(()=>()=>{clearTimeout(S.current)},[]);const R=$e.useRef(null),$=uo(r,R),P=L=>q=>{if(L){const U=R.current;q===void 0?L(U):L(U,q)}},z=()=>M.current?M.current[D?"clientWidth":"clientHeight"]:0,B=P((L,q)=>{M.current&&D&&(M.current.style.position="absolute"),L.style[O]=A,f&&f(L,q)}),N=P((L,q)=>{const U=z();M.current&&D&&(M.current.style.position="");const{duration:J,easing:te}=Mw({style:g,timeout:b,easing:c},{mode:"enter"});if(b==="auto"){const ee=T.transitions.getAutoHeightDuration(U);L.style.transitionDuration=`${ee}ms`,C.current=ee}else L.style.transitionDuration=typeof J=="string"?J:`${J}ms`;L.style[O]=`${U}px`,L.style.transitionTimingFunction=te,p&&p(L,q)}),j=P((L,q)=>{L.style[O]="auto",d&&d(L,q)}),F=P(L=>{L.style[O]=`${z()}px`,h&&h(L)}),E=P(m),W=P(L=>{const q=z(),{duration:U,easing:J}=Mw({style:g,timeout:b,easing:c},{mode:"exit"});if(b==="auto"){const te=T.transitions.getAutoHeightDuration(q);L.style.transitionDuration=`${te}ms`,C.current=te}else L.style.transitionDuration=typeof U=="string"?U:`${U}ms`;L.style[O]=A,L.style.transitionTimingFunction=J,y&&y(L)}),H=L=>{b==="auto"&&(S.current=setTimeout(L,C.current||0)),s&&s(R.current,L)};return Ee.jsx(w,ot({in:u,onEnter:B,onEntered:j,onEntering:N,onExit:F,onExited:E,onExiting:W,addEndListener:H,nodeRef:R,timeout:b==="auto"?null:b},_,{children:(L,q)=>Ee.jsx(XI,ot({as:l,className:ar(k.root,a,{entered:k.entered,exited:!u&&A==="0px"&&k.hidden}[L]),style:ot({[D?"minWidth":"minHeight"]:A},g),ownerState:ot({},x,{state:L}),ref:$},q,{children:Ee.jsx(ZI,{ownerState:ot({},x,{state:L}),className:k.wrapper,ref:M,children:Ee.jsx(KI,{ownerState:ot({},x,{state:L}),className:k.wrapperInner,children:o})})}))}))});FC.muiSupportAuto=!0;const Xd=FC,JI=Object.freeze(Object.defineProperty({__proto__:null,collapseClasses:VI,default:Xd,getCollapseUtilityClass:$C},Symbol.toStringTag,{value:"Module"})),QI=Object.freeze(Object.defineProperty({__proto__:null,default:Qa,getPaperUtilityClass:sR,paperClasses:uR},Symbol.toStringTag,{value:"Module"}));function e$(e){return Wn("MuiAlert",e)}const t$=Un("MuiAlert",["root","action","icon","message","filled","filledSuccess","filledInfo","filledWarning","filledError","outlined","outlinedSuccess","outlinedInfo","outlinedWarning","outlinedError","standard","standardSuccess","standardInfo","standardWarning","standardError"]),Lw=t$,n$=Object.freeze(Object.defineProperty({__proto__:null,default:Ya,getIconButtonUtilityClass:RR,iconButtonClasses:LR},Symbol.toStringTag,{value:"Module"})),r$=sa(Ee.jsx("path",{d:"M20,12A8,8 0 0,1 12,20A8,8 0 0,1 4,12A8,8 0 0,1 12,4C12.76,4 13.5,4.11 14.2, 4.31L15.77,2.74C14.61,2.26 13.34,2 12,2A10,10 0 0,0 2,12A10,10 0 0,0 12,22A10,10 0 0, 0 22,12M7.91,10.08L6.5,11.5L11,16L21,6L19.59,4.58L11,13.17L7.91,10.08Z"}),"SuccessOutlined"),a$=sa(Ee.jsx("path",{d:"M12 5.99L19.53 19H4.47L12 5.99M12 2L1 21h22L12 2zm1 14h-2v2h2v-2zm0-6h-2v4h2v-4z"}),"ReportProblemOutlined"),i$=sa(Ee.jsx("path",{d:"M11 15h2v2h-2zm0-8h2v6h-2zm.99-5C6.47 2 2 6.48 2 12s4.47 10 9.99 10C17.52 22 22 17.52 22 12S17.52 2 11.99 2zM12 20c-4.42 0-8-3.58-8-8s3.58-8 8-8 8 3.58 8 8-3.58 8-8 8z"}),"ErrorOutline"),o$=sa(Ee.jsx("path",{d:"M11,9H13V7H11M12,20C7.59,20 4,16.41 4,12C4,7.59 7.59,4 12,4C16.41,4 20,7.59 20, 12C20,16.41 16.41,20 12,20M12,2A10,10 0 0,0 2,12A10,10 0 0,0 12,22A10,10 0 0,0 22,12A10, 10 0 0,0 12,2M11,17H13V11H11V17Z"}),"InfoOutlined"),l$=["action","children","className","closeText","color","components","componentsProps","icon","iconMapping","onClose","role","severity","slotProps","slots","variant"],s$=e=>{const{variant:t,color:r,severity:i,classes:s}=e,o={root:["root",`${t}${dr(r||i)}`,`${t}`],icon:["icon"],message:["message"],action:["action"]};return Nn(o,e$,s)},u$=Jt(Qa,{name:"MuiAlert",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,t[r.variant],t[`${r.variant}${dr(r.color||r.severity)}`]]}})(({theme:e,ownerState:t})=>{const r=e.palette.mode==="light"?Nu:Bu,i=e.palette.mode==="light"?Bu:Nu,s=t.color||t.severity;return ot({},e.typography.body2,{backgroundColor:"transparent",display:"flex",padding:"6px 16px"},s&&t.variant==="standard"&&{color:e.vars?e.vars.palette.Alert[`${s}Color`]:r(e.palette[s].light,.6),backgroundColor:e.vars?e.vars.palette.Alert[`${s}StandardBg`]:i(e.palette[s].light,.9),[`& .${Lw.icon}`]:e.vars?{color:e.vars.palette.Alert[`${s}IconColor`]}:{color:e.palette[s].main}},s&&t.variant==="outlined"&&{color:e.vars?e.vars.palette.Alert[`${s}Color`]:r(e.palette[s].light,.6),border:`1px solid ${(e.vars||e).palette[s].light}`,[`& .${Lw.icon}`]:e.vars?{color:e.vars.palette.Alert[`${s}IconColor`]}:{color:e.palette[s].main}},s&&t.variant==="filled"&&ot({fontWeight:e.typography.fontWeightMedium},e.vars?{color:e.vars.palette.Alert[`${s}FilledColor`],backgroundColor:e.vars.palette.Alert[`${s}FilledBg`]}:{backgroundColor:e.palette.mode==="dark"?e.palette[s].dark:e.palette[s].main,color:e.palette.getContrastText(e.palette[s].main)}))}),c$=Jt("div",{name:"MuiAlert",slot:"Icon",overridesResolver:(e,t)=>t.icon})({marginRight:12,padding:"7px 0",display:"flex",fontSize:22,opacity:.9}),f$=Jt("div",{name:"MuiAlert",slot:"Message",overridesResolver:(e,t)=>t.message})({padding:"8px 0",minWidth:0,overflow:"auto"}),Iw=Jt("div",{name:"MuiAlert",slot:"Action",overridesResolver:(e,t)=>t.action})({display:"flex",alignItems:"flex-start",padding:"4px 0 0 16px",marginLeft:"auto",marginRight:-8}),$w={success:Ee.jsx(r$,{fontSize:"inherit"}),warning:Ee.jsx(a$,{fontSize:"inherit"}),error:Ee.jsx(i$,{fontSize:"inherit"}),info:Ee.jsx(o$,{fontSize:"inherit"})},d$=$e.forwardRef(function(t,r){var i,s,o,a,n,l;const c=Ln({props:t,name:"MuiAlert"}),{action:u,children:f,className:d,closeText:p="Close",color:h,components:m={},componentsProps:y={},icon:v,iconMapping:g=$w,onClose:b,role:w="alert",severity:_="success",slotProps:x={},slots:k={},variant:T="standard"}=c,S=wn(c,l$),M=ot({},c,{color:h,severity:_,variant:T}),C=s$(M),A=(i=(s=k.closeButton)!=null?s:m.CloseButton)!=null?i:Ya,D=(o=(a=k.closeIcon)!=null?a:m.CloseIcon)!=null?o:gL,O=(n=x.closeButton)!=null?n:y.closeButton,R=(l=x.closeIcon)!=null?l:y.closeIcon;return Ee.jsxs(u$,ot({role:w,elevation:0,ownerState:M,className:ar(C.root,d),ref:r},S,{children:[v!==!1?Ee.jsx(c$,{ownerState:M,className:C.icon,children:v||g[_]||$w[_]}):null,Ee.jsx(f$,{ownerState:M,className:C.message,children:f}),u!=null?Ee.jsx(Iw,{ownerState:M,className:C.action,children:u}):null,u==null&&b?Ee.jsx(Iw,{ownerState:M,className:C.action,children:Ee.jsx(A,ot({size:"small","aria-label":p,title:p,color:"inherit",onClick:b},O,{children:Ee.jsx(D,ot({fontSize:"small"},R))}))}):null]}))}),Zy=d$,p$=Object.freeze(Object.defineProperty({__proto__:null,default:lr,getTypographyUtilityClass:IR,typographyClasses:$R},Symbol.toStringTag,{value:"Module"}));function h$(e){return Wn("MuiAlertTitle",e)}Un("MuiAlertTitle",["root"]);const g$=["className"],m$=e=>{const{classes:t}=e;return Nn({root:["root"]},h$,t)},v$=Jt(lr,{name:"MuiAlertTitle",slot:"Root",overridesResolver:(e,t)=>t.root})(({theme:e})=>({fontWeight:e.typography.fontWeightMedium,marginTop:-2})),y$=$e.forwardRef(function(t,r){const i=Ln({props:t,name:"MuiAlertTitle"}),{className:s}=i,o=wn(i,g$),a=i,n=m$(a);return Ee.jsx(v$,ot({gutterBottom:!0,component:"div",ownerState:a,ref:r,className:ar(n.root,s)},o))}),Ky=y$,b$=Object.freeze(Object.defineProperty({__proto__:null,chipClasses:mL,default:vL,getChipUtilityClass:yL},Symbol.toStringTag,{value:"Module"})),x$=Object.freeze(Object.defineProperty({__proto__:null,default:Ma},Symbol.toStringTag,{value:"Module"})),w$=Object.freeze(Object.defineProperty({__proto__:null,buttonClasses:cR,default:si,getButtonUtilityClass:fR},Symbol.toStringTag,{value:"Module"}));function _$(e){return Wn("MuiCard",e)}Un("MuiCard",["root"]);const T$=["className","raised"],k$=e=>{const{classes:t}=e;return Nn({root:["root"]},_$,t)},S$=Jt(Qa,{name:"MuiCard",slot:"Root",overridesResolver:(e,t)=>t.root})(()=>({overflow:"hidden"})),M$=$e.forwardRef(function(t,r){const i=Ln({props:t,name:"MuiCard"}),{className:s,raised:o=!1}=i,a=wn(i,T$),n=ot({},i,{raised:o}),l=k$(n);return Ee.jsx(S$,ot({className:ar(l.root,s),elevation:o?8:void 0,ref:r,ownerState:n},a))}),C$=M$;function O$(e){return Wn("MuiCardContent",e)}Un("MuiCardContent",["root"]);const P$=["className","component"],A$=e=>{const{classes:t}=e;return Nn({root:["root"]},O$,t)},D$=Jt("div",{name:"MuiCardContent",slot:"Root",overridesResolver:(e,t)=>t.root})(()=>({padding:16,"&:last-child":{paddingBottom:24}})),E$=$e.forwardRef(function(t,r){const i=Ln({props:t,name:"MuiCardContent"}),{className:s,component:o="div"}=i,a=wn(i,P$),n=ot({},i,{component:o}),l=A$(n);return Ee.jsx(D$,ot({as:o,className:ar(l.root,s),ownerState:n,ref:r},a))}),R$=E$;function L$(e){return Wn("PrivateSwitchBase",e)}Un("PrivateSwitchBase",["root","checked","disabled","input","edgeStart","edgeEnd"]);const I$=["autoFocus","checked","checkedIcon","className","defaultChecked","disabled","disableFocusRipple","edge","icon","id","inputProps","inputRef","name","onBlur","onChange","onFocus","readOnly","required","tabIndex","type","value"],$$=e=>{const{classes:t,checked:r,disabled:i,edge:s}=e,o={root:["root",r&&"checked",i&&"disabled",s&&`edge${dr(s)}`],input:["input"]};return Nn(o,L$,t)},F$=Jt(Ny)(({ownerState:e})=>ot({padding:9,borderRadius:"50%"},e.edge==="start"&&{marginLeft:e.size==="small"?-3:-12},e.edge==="end"&&{marginRight:e.size==="small"?-3:-12})),j$=Jt("input")({cursor:"inherit",position:"absolute",opacity:0,width:"100%",height:"100%",top:0,left:0,margin:0,padding:0,zIndex:1}),N$=$e.forwardRef(function(t,r){const{autoFocus:i,checked:s,checkedIcon:o,className:a,defaultChecked:n,disabled:l,disableFocusRipple:c=!1,edge:u=!1,icon:f,id:d,inputProps:p,inputRef:h,name:m,onBlur:y,onChange:v,onFocus:g,readOnly:b,required:w=!1,tabIndex:_,type:x,value:k}=t,T=wn(t,I$),[S,M]=Xl({controlled:s,default:!!n,name:"SwitchBase",state:"checked"}),C=gc(),A=B=>{g&&g(B),C&&C.onFocus&&C.onFocus(B)},D=B=>{y&&y(B),C&&C.onBlur&&C.onBlur(B)},O=B=>{if(B.nativeEvent.defaultPrevented)return;const N=B.target.checked;M(N),v&&v(B,N)};let R=l;C&&typeof R>"u"&&(R=C.disabled);const $=x==="checkbox"||x==="radio",P=ot({},t,{checked:S,disabled:R,disableFocusRipple:c,edge:u}),z=$$(P);return Ee.jsxs(F$,ot({component:"span",className:ar(z.root,a),centerRipple:!0,focusRipple:!c,disabled:R,tabIndex:null,role:void 0,onFocus:A,onBlur:D,ownerState:P,ref:r},T,{children:[Ee.jsx(j$,ot({autoFocus:i,checked:s,defaultChecked:n,className:z.input,disabled:R,id:$?d:void 0,name:m,onChange:O,readOnly:b,ref:h,required:w,ownerState:P,tabIndex:_,type:x},x==="checkbox"&&k===void 0?{}:{value:k},p)),S?o:f]}))}),B$=N$,z$=sa(Ee.jsx("path",{d:"M19 5v14H5V5h14m0-2H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2z"}),"CheckBoxOutlineBlank"),q$=sa(Ee.jsx("path",{d:"M19 3H5c-1.11 0-2 .9-2 2v14c0 1.1.89 2 2 2h14c1.11 0 2-.9 2-2V5c0-1.1-.89-2-2-2zm-9 14l-5-5 1.41-1.41L10 14.17l7.59-7.59L19 8l-9 9z"}),"CheckBox"),W$=sa(Ee.jsx("path",{d:"M19 3H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zm-2 10H7v-2h10v2z"}),"IndeterminateCheckBox");function jC(e){return Wn("MuiCheckbox",e)}const U$=Un("MuiCheckbox",["root","checked","disabled","indeterminate","colorPrimary","colorSecondary","sizeSmall","sizeMedium"]),Rf=U$,H$=["checkedIcon","color","icon","indeterminate","indeterminateIcon","inputProps","size","className"],V$=e=>{const{classes:t,indeterminate:r,color:i,size:s}=e,o={root:["root",r&&"indeterminate",`color${dr(i)}`,`size${dr(s)}`]},a=Nn(o,jC,t);return ot({},t,a)},G$=Jt(B$,{shouldForwardProp:e=>FR(e)||e==="classes",name:"MuiCheckbox",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,r.indeterminate&&t.indeterminate,r.color!=="default"&&t[`color${dr(r.color)}`]]}})(({theme:e,ownerState:t})=>ot({color:(e.vars||e).palette.text.secondary},!t.disableRipple&&{"&:hover":{backgroundColor:e.vars?`rgba(${t.color==="default"?e.vars.palette.action.activeChannel:e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.hoverOpacity})`:Ii(t.color==="default"?e.palette.action.active:e.palette[t.color].main,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}}},t.color!=="default"&&{[`&.${Rf.checked}, &.${Rf.indeterminate}`]:{color:(e.vars||e).palette[t.color].main},[`&.${Rf.disabled}`]:{color:(e.vars||e).palette.action.disabled}})),Y$=Ee.jsx(q$,{}),X$=Ee.jsx(z$,{}),Z$=Ee.jsx(W$,{}),K$=$e.forwardRef(function(t,r){var i,s;const o=Ln({props:t,name:"MuiCheckbox"}),{checkedIcon:a=Y$,color:n="primary",icon:l=X$,indeterminate:c=!1,indeterminateIcon:u=Z$,inputProps:f,size:d="medium",className:p}=o,h=wn(o,H$),m=c?u:l,y=c?u:a,v=ot({},o,{color:n,indeterminate:c,size:d}),g=V$(v);return Ee.jsx(G$,ot({type:"checkbox",inputProps:ot({"data-indeterminate":c},f),icon:$e.cloneElement(m,{fontSize:(i=m.props.fontSize)!=null?i:d}),checkedIcon:$e.cloneElement(y,{fontSize:(s=y.props.fontSize)!=null?s:d}),ownerState:v,ref:r,className:ar(g.root,p)},h,{classes:g}))}),J$=K$,Q$=Object.freeze(Object.defineProperty({__proto__:null,checkboxClasses:Rf,default:J$,getCheckboxUtilityClass:jC},Symbol.toStringTag,{value:"Module"}));function NC(e){return Wn("MuiCircularProgress",e)}const eF=Un("MuiCircularProgress",["root","determinate","indeterminate","colorPrimary","colorSecondary","svg","circle","circleDeterminate","circleIndeterminate","circleDisableShrink"]),tF=eF,nF=["className","color","disableShrink","size","style","thickness","value","variant"];let Zd=e=>e,Fw,jw,Nw,Bw;const Ki=44,rF=dc(Fw||(Fw=Zd` + 0% { + transform: rotate(0deg); + } + + 100% { + transform: rotate(360deg); + } +`)),aF=dc(jw||(jw=Zd` + 0% { + stroke-dasharray: 1px, 200px; + stroke-dashoffset: 0; + } + + 50% { + stroke-dasharray: 100px, 200px; + stroke-dashoffset: -15px; + } + + 100% { + stroke-dasharray: 100px, 200px; + stroke-dashoffset: -125px; + } +`)),iF=e=>{const{classes:t,variant:r,color:i,disableShrink:s}=e,o={root:["root",r,`color${dr(i)}`],svg:["svg"],circle:["circle",`circle${dr(r)}`,s&&"circleDisableShrink"]};return Nn(o,NC,t)},oF=Jt("span",{name:"MuiCircularProgress",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,t[r.variant],t[`color${dr(r.color)}`]]}})(({ownerState:e,theme:t})=>ot({display:"inline-block"},e.variant==="determinate"&&{transition:t.transitions.create("transform")},e.color!=="inherit"&&{color:(t.vars||t).palette[e.color].main}),({ownerState:e})=>e.variant==="indeterminate"&&ju(Nw||(Nw=Zd` + animation: ${0} 1.4s linear infinite; + `),rF)),lF=Jt("svg",{name:"MuiCircularProgress",slot:"Svg",overridesResolver:(e,t)=>t.svg})({display:"block"}),sF=Jt("circle",{name:"MuiCircularProgress",slot:"Circle",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.circle,t[`circle${dr(r.variant)}`],r.disableShrink&&t.circleDisableShrink]}})(({ownerState:e,theme:t})=>ot({stroke:"currentColor"},e.variant==="determinate"&&{transition:t.transitions.create("stroke-dashoffset")},e.variant==="indeterminate"&&{strokeDasharray:"80px, 200px",strokeDashoffset:0}),({ownerState:e})=>e.variant==="indeterminate"&&!e.disableShrink&&ju(Bw||(Bw=Zd` + animation: ${0} 1.4s ease-in-out infinite; + `),aF)),uF=$e.forwardRef(function(t,r){const i=Ln({props:t,name:"MuiCircularProgress"}),{className:s,color:o="primary",disableShrink:a=!1,size:n=40,style:l,thickness:c=3.6,value:u=0,variant:f="indeterminate"}=i,d=wn(i,nF),p=ot({},i,{color:o,disableShrink:a,size:n,thickness:c,value:u,variant:f}),h=iF(p),m={},y={},v={};if(f==="determinate"){const g=2*Math.PI*((Ki-c)/2);m.strokeDasharray=g.toFixed(3),v["aria-valuenow"]=Math.round(u),m.strokeDashoffset=`${((100-u)/100*g).toFixed(3)}px`,y.transform="rotate(-90deg)"}return Ee.jsx(oF,ot({className:ar(h.root,s),style:ot({width:n,height:n},y,l),ownerState:p,ref:r,role:"progressbar"},v,d,{children:Ee.jsx(lF,{className:h.svg,ownerState:p,viewBox:`${Ki/2} ${Ki/2} ${Ki} ${Ki}`,children:Ee.jsx(sF,{className:h.circle,style:m,ownerState:p,cx:Ki,cy:Ki,r:(Ki-c)/2,fill:"none",strokeWidth:c})})}))}),BC=uF,cF=Object.freeze(Object.defineProperty({__proto__:null,circularProgressClasses:tF,default:BC,getCircularProgressUtilityClass:NC},Symbol.toStringTag,{value:"Module"}));function fF(e){return Wn("MuiDialog",e)}const dF=Un("MuiDialog",["root","scrollPaper","scrollBody","container","paper","paperScrollPaper","paperScrollBody","paperWidthFalse","paperWidthXs","paperWidthSm","paperWidthMd","paperWidthLg","paperWidthXl","paperFullWidth","paperFullScreen"]),Du=dF,pF=$e.createContext({}),hF=pF,gF=["aria-describedby","aria-labelledby","BackdropComponent","BackdropProps","children","className","disableEscapeKeyDown","fullScreen","fullWidth","maxWidth","onBackdropClick","onClose","open","PaperComponent","PaperProps","scroll","TransitionComponent","transitionDuration","TransitionProps"],mF=Jt(VR,{name:"MuiDialog",slot:"Backdrop",overrides:(e,t)=>t.backdrop})({zIndex:-1}),vF=e=>{const{classes:t,scroll:r,maxWidth:i,fullWidth:s,fullScreen:o}=e,a={root:["root"],container:["container",`scroll${dr(r)}`],paper:["paper",`paperScroll${dr(r)}`,`paperWidth${dr(String(i))}`,s&&"paperFullWidth",o&&"paperFullScreen"]};return Nn(a,fF,t)},yF=Jt(GR,{name:"MuiDialog",slot:"Root",overridesResolver:(e,t)=>t.root})({"@media print":{position:"absolute !important"}}),bF=Jt("div",{name:"MuiDialog",slot:"Container",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.container,t[`scroll${dr(r.scroll)}`]]}})(({ownerState:e})=>ot({height:"100%","@media print":{height:"auto"},outline:0},e.scroll==="paper"&&{display:"flex",justifyContent:"center",alignItems:"center"},e.scroll==="body"&&{overflowY:"auto",overflowX:"hidden",textAlign:"center","&:after":{content:'""',display:"inline-block",verticalAlign:"middle",height:"100%",width:"0"}})),xF=Jt(Qa,{name:"MuiDialog",slot:"Paper",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.paper,t[`scrollPaper${dr(r.scroll)}`],t[`paperWidth${dr(String(r.maxWidth))}`],r.fullWidth&&t.paperFullWidth,r.fullScreen&&t.paperFullScreen]}})(({theme:e,ownerState:t})=>ot({margin:32,position:"relative",overflowY:"auto","@media print":{overflowY:"visible",boxShadow:"none"}},t.scroll==="paper"&&{display:"flex",flexDirection:"column",maxHeight:"calc(100% - 64px)"},t.scroll==="body"&&{display:"inline-block",verticalAlign:"middle",textAlign:"left"},!t.maxWidth&&{maxWidth:"calc(100% - 64px)"},t.maxWidth==="xs"&&{maxWidth:e.breakpoints.unit==="px"?Math.max(e.breakpoints.values.xs,444):`max(${e.breakpoints.values.xs}${e.breakpoints.unit}, 444px)`,[`&.${Du.paperScrollBody}`]:{[e.breakpoints.down(Math.max(e.breakpoints.values.xs,444)+32*2)]:{maxWidth:"calc(100% - 64px)"}}},t.maxWidth&&t.maxWidth!=="xs"&&{maxWidth:`${e.breakpoints.values[t.maxWidth]}${e.breakpoints.unit}`,[`&.${Du.paperScrollBody}`]:{[e.breakpoints.down(e.breakpoints.values[t.maxWidth]+32*2)]:{maxWidth:"calc(100% - 64px)"}}},t.fullWidth&&{width:"calc(100% - 64px)"},t.fullScreen&&{margin:0,width:"100%",maxWidth:"100%",height:"100%",maxHeight:"none",borderRadius:0,[`&.${Du.paperScrollBody}`]:{margin:0,maxWidth:"100%"}})),wF=$e.forwardRef(function(t,r){const i=Ln({props:t,name:"MuiDialog"}),s=ji(),o={enter:s.transitions.duration.enteringScreen,exit:s.transitions.duration.leavingScreen},{"aria-describedby":a,"aria-labelledby":n,BackdropComponent:l,BackdropProps:c,children:u,className:f,disableEscapeKeyDown:d=!1,fullScreen:p=!1,fullWidth:h=!1,maxWidth:m="sm",onBackdropClick:y,onClose:v,open:g,PaperComponent:b=Qa,PaperProps:w={},scroll:_="paper",TransitionComponent:x=By,transitionDuration:k=o,TransitionProps:T}=i,S=wn(i,gF),M=ot({},i,{disableEscapeKeyDown:d,fullScreen:p,fullWidth:h,maxWidth:m,scroll:_}),C=vF(M),A=$e.useRef(),D=P=>{A.current=P.target===P.currentTarget},O=P=>{A.current&&(A.current=null,y&&y(P),v&&v(P,"backdropClick"))},R=El(n),$=$e.useMemo(()=>({titleId:R}),[R]);return Ee.jsx(yF,ot({className:ar(C.root,f),closeAfterTransition:!0,components:{Backdrop:mF},componentsProps:{backdrop:ot({transitionDuration:k,as:l},c)},disableEscapeKeyDown:d,onClose:v,open:g,ref:r,onClick:O,ownerState:M},S,{children:Ee.jsx(x,ot({appear:!0,in:g,timeout:k,role:"presentation"},T,{children:Ee.jsx(bF,{className:ar(C.container),onMouseDown:D,ownerState:M,children:Ee.jsx(xF,ot({as:b,elevation:24,role:"dialog","aria-describedby":a,"aria-labelledby":R},w,{className:ar(C.paper,w.className),ownerState:M,children:Ee.jsx(hF.Provider,{value:$,children:u})}))})}))}))}),_F=wF;function TF(e){return Wn("MuiDialogActions",e)}Un("MuiDialogActions",["root","spacing"]);const kF=["className","disableSpacing"],SF=e=>{const{classes:t,disableSpacing:r}=e;return Nn({root:["root",!r&&"spacing"]},TF,t)},MF=Jt("div",{name:"MuiDialogActions",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,!r.disableSpacing&&t.spacing]}})(({ownerState:e})=>ot({display:"flex",alignItems:"center",padding:8,justifyContent:"flex-end",flex:"0 0 auto"},!e.disableSpacing&&{"& > :not(style) ~ :not(style)":{marginLeft:8}})),CF=$e.forwardRef(function(t,r){const i=Ln({props:t,name:"MuiDialogActions"}),{className:s,disableSpacing:o=!1}=i,a=wn(i,kF),n=ot({},i,{disableSpacing:o}),l=SF(n);return Ee.jsx(MF,ot({className:ar(l.root,s),ownerState:n,ref:r},a))}),OF=CF;function PF(e){return Wn("MuiDialogContent",e)}Un("MuiDialogContent",["root","dividers"]);const AF=Un("MuiDialogTitle",["root"]),DF=AF,EF=["className","dividers"],RF=e=>{const{classes:t,dividers:r}=e;return Nn({root:["root",r&&"dividers"]},PF,t)},LF=Jt("div",{name:"MuiDialogContent",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,r.dividers&&t.dividers]}})(({theme:e,ownerState:t})=>ot({flex:"1 1 auto",WebkitOverflowScrolling:"touch",overflowY:"auto",padding:"20px 24px"},t.dividers?{padding:"16px 24px",borderTop:`1px solid ${(e.vars||e).palette.divider}`,borderBottom:`1px solid ${(e.vars||e).palette.divider}`}:{[`.${DF.root} + &`]:{paddingTop:0}})),IF=$e.forwardRef(function(t,r){const i=Ln({props:t,name:"MuiDialogContent"}),{className:s,dividers:o=!1}=i,a=wn(i,EF),n=ot({},i,{dividers:o}),l=RF(n);return Ee.jsx(LF,ot({className:ar(l.root,s),ownerState:n,ref:r},a))}),$F=IF,FF=Object.freeze(Object.defineProperty({__proto__:null,default:YR,formControlClasses:XR,getFormControlUtilityClasses:ZR,useFormControl:gc},Symbol.toStringTag,{value:"Module"})),jF=hI({createStyledComponent:Jt("div",{name:"MuiStack",slot:"Root",overridesResolver:(e,t)=>t.root}),useThemeProps:e=>Ln({props:e,name:"MuiStack"})}),NF=jF;function zC(e){return Wn("MuiFormControlLabel",e)}const BF=Un("MuiFormControlLabel",["root","labelPlacementStart","labelPlacementTop","labelPlacementBottom","disabled","label","error","required","asterisk"]),_l=BF,zF=["checked","className","componentsProps","control","disabled","disableTypography","inputRef","label","labelPlacement","name","onChange","required","slotProps","value"],qF=e=>{const{classes:t,disabled:r,labelPlacement:i,error:s,required:o}=e,a={root:["root",r&&"disabled",`labelPlacement${dr(i)}`,s&&"error",o&&"required"],label:["label",r&&"disabled"],asterisk:["asterisk",s&&"error"]};return Nn(a,zC,t)},WF=Jt("label",{name:"MuiFormControlLabel",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[{[`& .${_l.label}`]:t.label},t.root,t[`labelPlacement${dr(r.labelPlacement)}`]]}})(({theme:e,ownerState:t})=>ot({display:"inline-flex",alignItems:"center",cursor:"pointer",verticalAlign:"middle",WebkitTapHighlightColor:"transparent",marginLeft:-11,marginRight:16,[`&.${_l.disabled}`]:{cursor:"default"}},t.labelPlacement==="start"&&{flexDirection:"row-reverse",marginLeft:16,marginRight:-11},t.labelPlacement==="top"&&{flexDirection:"column-reverse",marginLeft:16},t.labelPlacement==="bottom"&&{flexDirection:"column",marginLeft:16},{[`& .${_l.label}`]:{[`&.${_l.disabled}`]:{color:(e.vars||e).palette.text.disabled}}})),UF=Jt("span",{name:"MuiFormControlLabel",slot:"Asterisk",overridesResolver:(e,t)=>t.asterisk})(({theme:e})=>({[`&.${_l.error}`]:{color:(e.vars||e).palette.error.main}})),HF=$e.forwardRef(function(t,r){var i,s;const o=Ln({props:t,name:"MuiFormControlLabel"}),{className:a,componentsProps:n={},control:l,disabled:c,disableTypography:u,label:f,labelPlacement:d="end",required:p,slotProps:h={}}=o,m=wn(o,zF),y=gc(),v=(i=c??l.props.disabled)!=null?i:y==null?void 0:y.disabled,g=p??l.props.required,b={disabled:v,required:g};["checked","name","onChange","value","inputRef"].forEach(S=>{typeof l.props[S]>"u"&&typeof o[S]<"u"&&(b[S]=o[S])});const w=wC({props:o,muiFormControl:y,states:["error"]}),_=ot({},o,{disabled:v,labelPlacement:d,required:g,error:w.error}),x=qF(_),k=(s=h.typography)!=null?s:n.typography;let T=f;return T!=null&&T.type!==lr&&!u&&(T=Ee.jsx(lr,ot({component:"span"},k,{className:ar(x.label,k==null?void 0:k.className),children:T}))),Ee.jsxs(WF,ot({className:ar(x.root,a),ownerState:_,ref:r},m,{children:[$e.cloneElement(l,b),g?Ee.jsxs(NF,{direction:"row",alignItems:"center",children:[T,Ee.jsxs(UF,{ownerState:_,"aria-hidden":!0,className:x.asterisk,children:[" ","*"]})]}):T]}))}),VF=HF,GF=Object.freeze(Object.defineProperty({__proto__:null,default:VF,formControlLabelClasses:_l,getFormControlLabelUtilityClasses:zC},Symbol.toStringTag,{value:"Module"}));function qC(e){return Wn("MuiFormGroup",e)}const YF=Un("MuiFormGroup",["root","row","error"]),XF=YF,ZF=["className","row"],KF=e=>{const{classes:t,row:r,error:i}=e;return Nn({root:["root",r&&"row",i&&"error"]},qC,t)},JF=Jt("div",{name:"MuiFormGroup",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,r.row&&t.row]}})(({ownerState:e})=>ot({display:"flex",flexDirection:"column",flexWrap:"wrap"},e.row&&{flexDirection:"row"})),QF=$e.forwardRef(function(t,r){const i=Ln({props:t,name:"MuiFormGroup"}),{className:s,row:o=!1}=i,a=wn(i,ZF),n=gc(),l=wC({props:i,muiFormControl:n,states:["error"]}),c=ot({},i,{row:o,error:l.error}),u=KF(c);return Ee.jsx(JF,ot({className:ar(u.root,s),ownerState:c,ref:r},a))}),ej=QF,tj=Object.freeze(Object.defineProperty({__proto__:null,default:ej,formGroupClasses:XF,getFormGroupUtilityClass:qC},Symbol.toStringTag,{value:"Module"})),nj=Object.freeze(Object.defineProperty({__proto__:null,default:KR,formHelperTextClasses:JR,getFormHelperTextUtilityClasses:QR},Symbol.toStringTag,{value:"Module"}));function rj(e,t,r,i,s){const[o,a]=$e.useState(()=>s&&r?r(e).matches:i?i(e).matches:t);return pc(()=>{let n=!0;if(!r)return;const l=r(e),c=()=>{n&&a(l.matches)};return c(),l.addListener(c),()=>{n=!1,l.removeListener(c)}},[e,r]),o}const WC=oR["useSyncExternalStore"];function aj(e,t,r,i,s){const o=$e.useCallback(()=>t,[t]),a=$e.useMemo(()=>{if(s&&r)return()=>r(e).matches;if(i!==null){const{matches:u}=i(e);return()=>u}return o},[o,e,i,s,r]),[n,l]=$e.useMemo(()=>{if(r===null)return[o,()=>()=>{}];const u=r(e);return[()=>u.matches,f=>(u.addListener(f),()=>{u.removeListener(f)})]},[o,r,e]);return WC(l,n,a)}function Jy(e,t={}){const r=jR(),i=typeof window<"u"&&typeof window.matchMedia<"u",{defaultMatches:s=!1,matchMedia:o=i?window.matchMedia:null,ssrMatchMedia:a=null,noSsr:n=!1}=NR({name:"MuiUseMediaQuery",props:t,theme:r});let l=typeof e=="function"?e(r):e;return l=l.replace(/^@media( ?)/m,""),(WC!==void 0?aj:rj)(l,s,o,a,n)}function UC(e){return Wn("MuiIcon",e)}const ij=Un("MuiIcon",["root","colorPrimary","colorSecondary","colorAction","colorError","colorDisabled","fontSizeInherit","fontSizeSmall","fontSizeMedium","fontSizeLarge"]),oj=ij,lj=["baseClassName","className","color","component","fontSize"],sj=e=>{const{color:t,fontSize:r,classes:i}=e,s={root:["root",t!=="inherit"&&`color${dr(t)}`,`fontSize${dr(r)}`]};return Nn(s,UC,i)},uj=Jt("span",{name:"MuiIcon",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,r.color!=="inherit"&&t[`color${dr(r.color)}`],t[`fontSize${dr(r.fontSize)}`]]}})(({theme:e,ownerState:t})=>({userSelect:"none",width:"1em",height:"1em",overflow:"hidden",display:"inline-block",textAlign:"center",flexShrink:0,fontSize:{inherit:"inherit",small:e.typography.pxToRem(20),medium:e.typography.pxToRem(24),large:e.typography.pxToRem(36)}[t.fontSize],color:{primary:(e.vars||e).palette.primary.main,secondary:(e.vars||e).palette.secondary.main,info:(e.vars||e).palette.info.main,success:(e.vars||e).palette.success.main,warning:(e.vars||e).palette.warning.main,action:(e.vars||e).palette.action.active,error:(e.vars||e).palette.error.main,disabled:(e.vars||e).palette.action.disabled,inherit:void 0}[t.color]})),HC=$e.forwardRef(function(t,r){const i=Ln({props:t,name:"MuiIcon"}),{baseClassName:s="material-icons",className:o,color:a="inherit",component:n="span",fontSize:l="medium"}=i,c=wn(i,lj),u=ot({},i,{baseClassName:s,color:a,component:n,fontSize:l}),f=sj(u);return Ee.jsx(uj,ot({as:n,className:ar(s,"notranslate",f.root,o),ownerState:u,"aria-hidden":!0,ref:r},c))});HC.muiName="Icon";const cj=HC,fj=Object.freeze(Object.defineProperty({__proto__:null,default:cj,getIconUtilityClass:UC,iconClasses:oj},Symbol.toStringTag,{value:"Module"}));function VC(e){return Wn("MuiInputAdornment",e)}const dj=Un("MuiInputAdornment",["root","filled","standard","outlined","positionStart","positionEnd","disablePointerEvents","hiddenLabel","sizeSmall"]),Q0=dj;var zw;const pj=["children","className","component","disablePointerEvents","disableTypography","position","variant"],hj=(e,t)=>{const{ownerState:r}=e;return[t.root,t[`position${dr(r.position)}`],r.disablePointerEvents===!0&&t.disablePointerEvents,t[r.variant]]},gj=e=>{const{classes:t,disablePointerEvents:r,hiddenLabel:i,position:s,size:o,variant:a}=e,n={root:["root",r&&"disablePointerEvents",s&&`position${dr(s)}`,a,i&&"hiddenLabel",o&&`size${dr(o)}`]};return Nn(n,VC,t)},mj=Jt("div",{name:"MuiInputAdornment",slot:"Root",overridesResolver:hj})(({theme:e,ownerState:t})=>ot({display:"flex",height:"0.01em",maxHeight:"2em",alignItems:"center",whiteSpace:"nowrap",color:(e.vars||e).palette.action.active},t.variant==="filled"&&{[`&.${Q0.positionStart}&:not(.${Q0.hiddenLabel})`]:{marginTop:16}},t.position==="start"&&{marginRight:8},t.position==="end"&&{marginLeft:8},t.disablePointerEvents===!0&&{pointerEvents:"none"})),vj=$e.forwardRef(function(t,r){const i=Ln({props:t,name:"MuiInputAdornment"}),{children:s,className:o,component:a="div",disablePointerEvents:n=!1,disableTypography:l=!1,position:c,variant:u}=i,f=wn(i,pj),d=gc()||{};let p=u;u&&d.variant,d&&!p&&(p=d.variant);const h=ot({},i,{hiddenLabel:d.hiddenLabel,size:d.size,disablePointerEvents:n,position:c,variant:p}),m=gj(h);return Ee.jsx(eL.Provider,{value:null,children:Ee.jsx(mj,ot({as:a,ownerState:h,className:ar(m.root,o),ref:r},f,{children:typeof s=="string"&&!l?Ee.jsx(lr,{color:"text.secondary",children:s}):Ee.jsxs($e.Fragment,{children:[c==="start"?zw||(zw=Ee.jsx("span",{className:"notranslate",children:"​"})):null,s]})}))})}),GC=vj,yj=Object.freeze(Object.defineProperty({__proto__:null,default:GC,getInputAdornmentUtilityClass:VC,inputAdornmentClasses:Q0},Symbol.toStringTag,{value:"Module"})),bj=Object.freeze(Object.defineProperty({__proto__:null,default:tL,getInputLabelUtilityClasses:nL,inputLabelClasses:rL},Symbol.toStringTag,{value:"Module"})),xj=Object.freeze(Object.defineProperty({__proto__:null,default:SC,getLinearProgressUtilityClass:IL,linearProgressClasses:$L},Symbol.toStringTag,{value:"Module"})),wj=["children","className","disableTypography","inset","primary","primaryTypographyProps","secondary","secondaryTypographyProps"],_j=e=>{const{classes:t,inset:r,primary:i,secondary:s,dense:o}=e;return Nn({root:["root",r&&"inset",o&&"dense",i&&s&&"multiline"],primary:["primary"],secondary:["secondary"]},TC,t)},Tj=Jt("div",{name:"MuiListItemText",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[{[`& .${Z0.primary}`]:t.primary},{[`& .${Z0.secondary}`]:t.secondary},t.root,r.inset&&t.inset,r.primary&&r.secondary&&t.multiline,r.dense&&t.dense]}})(({ownerState:e})=>ot({flex:"1 1 auto",minWidth:0,marginTop:4,marginBottom:4},e.primary&&e.secondary&&{marginTop:6,marginBottom:6},e.inset&&{paddingLeft:56})),kj=$e.forwardRef(function(t,r){const i=Ln({props:t,name:"MuiListItemText"}),{children:s,className:o,disableTypography:a=!1,inset:n=!1,primary:l,primaryTypographyProps:c,secondary:u,secondaryTypographyProps:f}=i,d=wn(i,wj),{dense:p}=$e.useContext(aL);let h=l??s,m=u;const y=ot({},i,{disableTypography:a,inset:n,primary:!!h,secondary:!!m,dense:p}),v=_j(y);return h!=null&&h.type!==lr&&!a&&(h=Ee.jsx(lr,ot({variant:p?"body2":"body1",className:v.primary,component:c!=null&&c.variant?void 0:"span",display:"block"},c,{children:h}))),m!=null&&m.type!==lr&&!a&&(m=Ee.jsx(lr,ot({variant:"body2",className:v.secondary,color:"text.secondary",display:"block"},f,{children:m}))),Ee.jsxs(Tj,ot({className:ar(v.root,o),ownerState:y,ref:r},d,{children:[h,m]}))}),Sj=kj,Mj=Object.freeze(Object.defineProperty({__proto__:null,default:Sj,getListItemTextUtilityClass:TC,listItemTextClasses:Z0},Symbol.toStringTag,{value:"Module"})),Cj=Object.freeze(Object.defineProperty({__proto__:null,default:iL,getMenuUtilityClass:oL,menuClasses:lL},Symbol.toStringTag,{value:"Module"})),Oj=Object.freeze(Object.defineProperty({__proto__:null,default:kC,getMenuItemUtilityClass:bL,menuItemClasses:xL},Symbol.toStringTag,{value:"Module"})),qw=sa(Ee.jsx("path",{d:"M18.41 16.59L13.82 12l4.59-4.59L17 6l-6 6 6 6zM6 6h2v12H6z"}),"FirstPage"),Ww=sa(Ee.jsx("path",{d:"M5.59 7.41L10.18 12l-4.59 4.59L7 18l6-6-6-6zM16 6h2v12h-2z"}),"LastPage"),Pj=Object.freeze(Object.defineProperty({__proto__:null,default:zy,getSelectUtilityClasses:sL,selectClasses:uL},Symbol.toStringTag,{value:"Module"}));function Aj(e){return Wn("MuiSkeleton",e)}Un("MuiSkeleton",["root","text","rectangular","rounded","circular","pulse","wave","withChildren","fitContent","heightAuto"]);const Dj=["animation","className","component","height","style","variant","width"];let td=e=>e,Uw,Hw,Vw,Gw;const Ej=e=>{const{classes:t,variant:r,animation:i,hasChildren:s,width:o,height:a}=e;return Nn({root:["root",r,i,s&&"withChildren",s&&!o&&"fitContent",s&&!a&&"heightAuto"]},Aj,t)},Rj=dc(Uw||(Uw=td` + 0% { + opacity: 1; + } + + 50% { + opacity: 0.4; + } + + 100% { + opacity: 1; + } +`)),Lj=dc(Hw||(Hw=td` + 0% { + transform: translateX(-100%); + } + + 50% { + /* +0.5s of delay between each loop */ + transform: translateX(100%); + } + + 100% { + transform: translateX(100%); + } +`)),Ij=Jt("span",{name:"MuiSkeleton",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,t[r.variant],r.animation!==!1&&t[r.animation],r.hasChildren&&t.withChildren,r.hasChildren&&!r.width&&t.fitContent,r.hasChildren&&!r.height&&t.heightAuto]}})(({theme:e,ownerState:t})=>{const r=Yy(e.shape.borderRadius)||"px",i=Ai(e.shape.borderRadius);return ot({display:"block",backgroundColor:e.vars?e.vars.palette.Skeleton.bg:Ii(e.palette.text.primary,e.palette.mode==="light"?.11:.13),height:"1.2em"},t.variant==="text"&&{marginTop:0,marginBottom:0,height:"auto",transformOrigin:"0 55%",transform:"scale(1, 0.60)",borderRadius:`${i}${r}/${Math.round(i/.6*10)/10}${r}`,"&:empty:before":{content:'"\\00a0"'}},t.variant==="circular"&&{borderRadius:"50%"},t.variant==="rounded"&&{borderRadius:(e.vars||e).shape.borderRadius},t.hasChildren&&{"& > *":{visibility:"hidden"}},t.hasChildren&&!t.width&&{maxWidth:"fit-content"},t.hasChildren&&!t.height&&{height:"auto"})},({ownerState:e})=>e.animation==="pulse"&&ju(Vw||(Vw=td` + animation: ${0} 2s ease-in-out 0.5s infinite; + `),Rj),({ownerState:e,theme:t})=>e.animation==="wave"&&ju(Gw||(Gw=td` + position: relative; + overflow: hidden; + + /* Fix bug in Safari https://bugs.webkit.org/show_bug.cgi?id=68196 */ + -webkit-mask-image: -webkit-radial-gradient(white, black); + + &::after { + animation: ${0} 2s linear 0.5s infinite; + background: linear-gradient( + 90deg, + transparent, + ${0}, + transparent + ); + content: ''; + position: absolute; + transform: translateX(-100%); /* Avoid flash during server-side hydration */ + bottom: 0; + left: 0; + right: 0; + top: 0; + } + `),Lj,(t.vars||t).palette.action.hover)),$j=$e.forwardRef(function(t,r){const i=Ln({props:t,name:"MuiSkeleton"}),{animation:s="pulse",className:o,component:a="span",height:n,style:l,variant:c="text",width:u}=i,f=wn(i,Dj),d=ot({},i,{animation:s,component:a,variant:c,hasChildren:!!f.children}),p=Ej(d);return Ee.jsx(Ij,ot({as:a,ref:r,className:ar(p.root,o),ownerState:d},f,{style:ot({width:u,height:n},l)}))}),Fj=$j;function YC(e){return Wn("MuiTooltip",e)}const jj=Un("MuiTooltip",["popper","popperInteractive","popperArrow","popperClose","tooltip","tooltipArrow","touch","tooltipPlacementLeft","tooltipPlacementRight","tooltipPlacementTop","tooltipPlacementBottom","arrow"]),Di=jj,Nj=["arrow","children","classes","components","componentsProps","describeChild","disableFocusListener","disableHoverListener","disableInteractive","disableTouchListener","enterDelay","enterNextDelay","enterTouchDelay","followCursor","id","leaveDelay","leaveTouchDelay","onClose","onOpen","open","placement","PopperComponent","PopperProps","slotProps","slots","title","TransitionComponent","TransitionProps"];function Bj(e){return Math.round(e*1e5)/1e5}const zj=e=>{const{classes:t,disableInteractive:r,arrow:i,touch:s,placement:o}=e,a={popper:["popper",!r&&"popperInteractive",i&&"popperArrow"],tooltip:["tooltip",i&&"tooltipArrow",s&&"touch",`tooltipPlacement${dr(o.split("-")[0])}`],arrow:["arrow"]};return Nn(a,YC,t)},qj=Jt(qy,{name:"MuiTooltip",slot:"Popper",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.popper,!r.disableInteractive&&t.popperInteractive,r.arrow&&t.popperArrow,!r.open&&t.popperClose]}})(({theme:e,ownerState:t,open:r})=>ot({zIndex:(e.vars||e).zIndex.tooltip,pointerEvents:"none"},!t.disableInteractive&&{pointerEvents:"auto"},!r&&{pointerEvents:"none"},t.arrow&&{[`&[data-popper-placement*="bottom"] .${Di.arrow}`]:{top:0,marginTop:"-0.71em","&::before":{transformOrigin:"0 100%"}},[`&[data-popper-placement*="top"] .${Di.arrow}`]:{bottom:0,marginBottom:"-0.71em","&::before":{transformOrigin:"100% 0"}},[`&[data-popper-placement*="right"] .${Di.arrow}`]:ot({},t.isRtl?{right:0,marginRight:"-0.71em"}:{left:0,marginLeft:"-0.71em"},{height:"1em",width:"0.71em","&::before":{transformOrigin:"100% 100%"}}),[`&[data-popper-placement*="left"] .${Di.arrow}`]:ot({},t.isRtl?{left:0,marginLeft:"-0.71em"}:{right:0,marginRight:"-0.71em"},{height:"1em",width:"0.71em","&::before":{transformOrigin:"0 0"}})})),Wj=Jt("div",{name:"MuiTooltip",slot:"Tooltip",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.tooltip,r.touch&&t.touch,r.arrow&&t.tooltipArrow,t[`tooltipPlacement${dr(r.placement.split("-")[0])}`]]}})(({theme:e,ownerState:t})=>ot({backgroundColor:e.vars?e.vars.palette.Tooltip.bg:Ii(e.palette.grey[700],.92),borderRadius:(e.vars||e).shape.borderRadius,color:(e.vars||e).palette.common.white,fontFamily:e.typography.fontFamily,padding:"4px 8px",fontSize:e.typography.pxToRem(11),maxWidth:300,margin:2,wordWrap:"break-word",fontWeight:e.typography.fontWeightMedium},t.arrow&&{position:"relative",margin:0},t.touch&&{padding:"8px 16px",fontSize:e.typography.pxToRem(14),lineHeight:`${Bj(16/14)}em`,fontWeight:e.typography.fontWeightRegular},{[`.${Di.popper}[data-popper-placement*="left"] &`]:ot({transformOrigin:"right center"},t.isRtl?ot({marginLeft:"14px"},t.touch&&{marginLeft:"24px"}):ot({marginRight:"14px"},t.touch&&{marginRight:"24px"})),[`.${Di.popper}[data-popper-placement*="right"] &`]:ot({transformOrigin:"left center"},t.isRtl?ot({marginRight:"14px"},t.touch&&{marginRight:"24px"}):ot({marginLeft:"14px"},t.touch&&{marginLeft:"24px"})),[`.${Di.popper}[data-popper-placement*="top"] &`]:ot({transformOrigin:"center bottom",marginBottom:"14px"},t.touch&&{marginBottom:"24px"}),[`.${Di.popper}[data-popper-placement*="bottom"] &`]:ot({transformOrigin:"center top",marginTop:"14px"},t.touch&&{marginTop:"24px"})})),Uj=Jt("span",{name:"MuiTooltip",slot:"Arrow",overridesResolver:(e,t)=>t.arrow})(({theme:e})=>({overflow:"hidden",position:"absolute",width:"1em",height:"0.71em",boxSizing:"border-box",color:e.vars?e.vars.palette.Tooltip.bg:Ii(e.palette.grey[700],.9),"&::before":{content:'""',margin:"auto",display:"block",width:"100%",height:"100%",backgroundColor:"currentColor",transform:"rotate(45deg)"}}));let nf=!1,Eg=null,Ms={x:0,y:0};function rf(e,t){return r=>{t&&t(r),e(r)}}const Hj=$e.forwardRef(function(t,r){var i,s,o,a,n,l,c,u,f,d,p,h,m,y,v,g,b,w,_;const x=Ln({props:t,name:"MuiTooltip"}),{arrow:k=!1,children:T,components:S={},componentsProps:M={},describeChild:C=!1,disableFocusListener:A=!1,disableHoverListener:D=!1,disableInteractive:O=!1,disableTouchListener:R=!1,enterDelay:$=100,enterNextDelay:P=0,enterTouchDelay:z=700,followCursor:B=!1,id:N,leaveDelay:j=0,leaveTouchDelay:F=1500,onClose:E,onOpen:W,open:H,placement:L="bottom",PopperComponent:q,PopperProps:U={},slotProps:J={},slots:te={},title:ee,TransitionComponent:K=X0,TransitionProps:Q}=x,G=wn(x,Nj),X=$e.isValidElement(T)?T:Ee.jsx("span",{children:T}),Y=ji(),re=Y.direction==="rtl",[ie,le]=$e.useState(),[se,he]=$e.useState(null),_e=$e.useRef(!1),Me=O||B,Ce=$e.useRef(),Se=$e.useRef(),ce=$e.useRef(),ye=$e.useRef(),[V,ne]=Xl({controlled:H,default:!1,name:"Tooltip",state:"open"});let fe=V;const xe=El(N),ue=$e.useRef(),ge=$e.useCallback(()=>{ue.current!==void 0&&(document.body.style.WebkitUserSelect=ue.current,ue.current=void 0),clearTimeout(ye.current)},[]);$e.useEffect(()=>()=>{clearTimeout(Ce.current),clearTimeout(Se.current),clearTimeout(ce.current),ge()},[ge]);const be=Ge=>{clearTimeout(Eg),nf=!0,ne(!0),W&&!fe&&W(Ge)},we=hc(Ge=>{clearTimeout(Eg),Eg=setTimeout(()=>{nf=!1},800+j),ne(!1),E&&fe&&E(Ge),clearTimeout(Ce.current),Ce.current=setTimeout(()=>{_e.current=!1},Y.transitions.duration.shortest)}),ke=Ge=>{_e.current&&Ge.type!=="touchstart"||(ie&&ie.removeAttribute("title"),clearTimeout(Se.current),clearTimeout(ce.current),$||nf&&P?Se.current=setTimeout(()=>{be(Ge)},nf?P:$):be(Ge))},Pe=Ge=>{clearTimeout(Se.current),clearTimeout(ce.current),ce.current=setTimeout(()=>{we(Ge)},j)},{isFocusVisibleRef:Re,onBlur:De,onFocus:Le,ref:Fe}=BR(),[,Be]=$e.useState(!1),Ue=Ge=>{De(Ge),Re.current===!1&&(Be(!1),Pe(Ge))},qe=Ge=>{ie||le(Ge.currentTarget),Le(Ge),Re.current===!0&&(Be(!0),ke(Ge))},Ye=Ge=>{_e.current=!0;const Qe=X.props;Qe.onTouchStart&&Qe.onTouchStart(Ge)},at=ke,st=Pe,ft=Ge=>{Ye(Ge),clearTimeout(ce.current),clearTimeout(Ce.current),ge(),ue.current=document.body.style.WebkitUserSelect,document.body.style.WebkitUserSelect="none",ye.current=setTimeout(()=>{document.body.style.WebkitUserSelect=ue.current,ke(Ge)},z)},yt=Ge=>{X.props.onTouchEnd&&X.props.onTouchEnd(Ge),ge(),clearTimeout(ce.current),ce.current=setTimeout(()=>{we(Ge)},F)};$e.useEffect(()=>{if(!fe)return;function Ge(Qe){(Qe.key==="Escape"||Qe.key==="Esc")&&we(Qe)}return document.addEventListener("keydown",Ge),()=>{document.removeEventListener("keydown",Ge)}},[we,fe]);const ze=uo(X.ref,Fe,le,r);!ee&&ee!==0&&(fe=!1);const Ne=$e.useRef(),et=Ge=>{const Qe=X.props;Qe.onMouseMove&&Qe.onMouseMove(Ge),Ms={x:Ge.clientX,y:Ge.clientY},Ne.current&&Ne.current.update()},it={},St=typeof ee=="string";C?(it.title=!fe&&St&&!D?ee:null,it["aria-describedby"]=fe?xe:null):(it["aria-label"]=St?ee:null,it["aria-labelledby"]=fe&&!St?xe:null);const Ze=ot({},it,G,X.props,{className:ar(G.className,X.props.className),onTouchStart:Ye,ref:ze},B?{onMouseMove:et}:{}),ut={};R||(Ze.onTouchStart=ft,Ze.onTouchEnd=yt),D||(Ze.onMouseOver=rf(at,Ze.onMouseOver),Ze.onMouseLeave=rf(st,Ze.onMouseLeave),Me||(ut.onMouseOver=at,ut.onMouseLeave=st)),A||(Ze.onFocus=rf(qe,Ze.onFocus),Ze.onBlur=rf(Ue,Ze.onBlur),Me||(ut.onFocus=qe,ut.onBlur=Ue));const gt=$e.useMemo(()=>{var Ge;let Qe=[{name:"arrow",enabled:!!se,options:{element:se,padding:4}}];return(Ge=U.popperOptions)!=null&&Ge.modifiers&&(Qe=Qe.concat(U.popperOptions.modifiers)),ot({},U.popperOptions,{modifiers:Qe})},[se,U]),Rt=ot({},x,{isRtl:re,arrow:k,disableInteractive:Me,placement:L,PopperComponentProp:q,touch:_e.current}),Mt=zj(Rt),Bt=(i=(s=te.popper)!=null?s:S.Popper)!=null?i:qj,Tt=(o=(a=(n=te.transition)!=null?n:S.Transition)!=null?a:K)!=null?o:X0,ve=(l=(c=te.tooltip)!=null?c:S.Tooltip)!=null?l:Wj,Te=(u=(f=te.arrow)!=null?f:S.Arrow)!=null?u:Uj,Ve=tf(Bt,ot({},U,(d=J.popper)!=null?d:M.popper,{className:ar(Mt.popper,U==null?void 0:U.className,(p=(h=J.popper)!=null?h:M.popper)==null?void 0:p.className)}),Rt),We=tf(Tt,ot({},Q,(m=J.transition)!=null?m:M.transition),Rt),Je=tf(ve,ot({},(y=J.tooltip)!=null?y:M.tooltip,{className:ar(Mt.tooltip,(v=(g=J.tooltip)!=null?g:M.tooltip)==null?void 0:v.className)}),Rt),Xe=tf(Te,ot({},(b=J.arrow)!=null?b:M.arrow,{className:ar(Mt.arrow,(w=(_=J.arrow)!=null?_:M.arrow)==null?void 0:w.className)}),Rt);return Ee.jsxs($e.Fragment,{children:[$e.cloneElement(X,Ze),Ee.jsx(Bt,ot({as:q??qy,placement:L,anchorEl:B?{getBoundingClientRect:()=>({top:Ms.y,left:Ms.x,right:Ms.x,bottom:Ms.y,width:0,height:0})}:ie,popperRef:Ne,open:ie?fe:!1,id:xe,transition:!0},ut,Ve,{popperOptions:gt,children:({TransitionProps:Ge})=>Ee.jsx(Tt,ot({timeout:Y.transitions.duration.shorter},Ge,We,{children:Ee.jsxs(ve,ot({},Je,{children:[ee,k?Ee.jsx(Te,ot({},Xe,{ref:he})):null]}))}))}))]})}),Vj=Hj,Gj=Object.freeze(Object.defineProperty({__proto__:null,default:Vj,getTooltipUtilityClass:YC,tooltipClasses:Di},Symbol.toStringTag,{value:"Module"})),Yj=Object.freeze(Object.defineProperty({__proto__:null,default:Wy,getTableUtilityClass:wL,tableClasses:_L},Symbol.toStringTag,{value:"Module"})),Xj=Object.freeze(Object.defineProperty({__proto__:null,default:Uy,getTableBodyUtilityClass:TL,tableBodyClasses:kL},Symbol.toStringTag,{value:"Module"})),Zj=Object.freeze(Object.defineProperty({__proto__:null,default:Xa,getTableCellUtilityClass:SL,tableCellClasses:ML},Symbol.toStringTag,{value:"Module"}));function Kj(e){return Wn("MuiTableContainer",e)}Un("MuiTableContainer",["root"]);const Jj=["className","component"],Qj=e=>{const{classes:t}=e;return Nn({root:["root"]},Kj,t)},eN=Jt("div",{name:"MuiTableContainer",slot:"Root",overridesResolver:(e,t)=>t.root})({width:"100%",overflowX:"auto"}),tN=$e.forwardRef(function(t,r){const i=Ln({props:t,name:"MuiTableContainer"}),{className:s,component:o="div"}=i,a=wn(i,Jj),n=ot({},i,{component:o}),l=Qj(n);return Ee.jsx(eN,ot({ref:r,as:o,className:ar(l.root,s),ownerState:n},a))}),nN=tN;function XC(e){return Wn("MuiTableFooter",e)}const rN=Un("MuiTableFooter",["root"]),aN=rN,iN=["className","component"],oN=e=>{const{classes:t}=e;return Nn({root:["root"]},XC,t)},lN=Jt("tfoot",{name:"MuiTableFooter",slot:"Root",overridesResolver:(e,t)=>t.root})({display:"table-footer-group"}),sN={variant:"footer"},Yw="tfoot",uN=$e.forwardRef(function(t,r){const i=Ln({props:t,name:"MuiTableFooter"}),{className:s,component:o=Yw}=i,a=wn(i,iN),n=ot({},i,{component:o}),l=oN(n);return Ee.jsx(CL.Provider,{value:sN,children:Ee.jsx(lN,ot({as:o,className:ar(l.root,s),ref:r,role:o===Yw?null:"rowgroup",ownerState:n},a))})}),cN=uN,fN=Object.freeze(Object.defineProperty({__proto__:null,default:cN,getTableFooterUtilityClass:XC,tableFooterClasses:aN},Symbol.toStringTag,{value:"Module"})),dN=Object.freeze(Object.defineProperty({__proto__:null,default:Hy,getTableHeadUtilityClass:OL,tableHeadClasses:PL},Symbol.toStringTag,{value:"Module"})),pN=Object.freeze(Object.defineProperty({__proto__:null,default:MC,getToolbarUtilityClass:FL,toolbarClasses:jL},Symbol.toStringTag,{value:"Module"}));var Xw,Zw,Kw,Jw,Qw,e_,t_,n_;const hN=["backIconButtonProps","count","getItemAriaLabel","nextIconButtonProps","onPageChange","page","rowsPerPage","showFirstButton","showLastButton"],gN=$e.forwardRef(function(t,r){const{backIconButtonProps:i,count:s,getItemAriaLabel:o,nextIconButtonProps:a,onPageChange:n,page:l,rowsPerPage:c,showFirstButton:u,showLastButton:f}=t,d=wn(t,hN),p=ji(),h=g=>{n(g,0)},m=g=>{n(g,l-1)},y=g=>{n(g,l+1)},v=g=>{n(g,Math.max(0,Math.ceil(s/c)-1))};return Ee.jsxs("div",ot({ref:r},d,{children:[u&&Ee.jsx(Ya,{onClick:h,disabled:l===0,"aria-label":o("first",l),title:o("first",l),children:p.direction==="rtl"?Xw||(Xw=Ee.jsx(Ww,{})):Zw||(Zw=Ee.jsx(qw,{}))}),Ee.jsx(Ya,ot({onClick:m,disabled:l===0,color:"inherit","aria-label":o("previous",l),title:o("previous",l)},i,{children:p.direction==="rtl"?Kw||(Kw=Ee.jsx(Cw,{})):Jw||(Jw=Ee.jsx(Ow,{}))})),Ee.jsx(Ya,ot({onClick:y,disabled:s!==-1?l>=Math.ceil(s/c)-1:!1,color:"inherit","aria-label":o("next",l),title:o("next",l)},a,{children:p.direction==="rtl"?Qw||(Qw=Ee.jsx(Ow,{})):e_||(e_=Ee.jsx(Cw,{}))})),f&&Ee.jsx(Ya,{onClick:v,disabled:l>=Math.ceil(s/c)-1,"aria-label":o("last",l),title:o("last",l),children:p.direction==="rtl"?t_||(t_=Ee.jsx(qw,{})):n_||(n_=Ee.jsx(Ww,{}))})]}))}),mN=gN;function ZC(e){return Wn("MuiTablePagination",e)}const vN=Un("MuiTablePagination",["root","toolbar","spacer","selectLabel","selectRoot","select","selectIcon","input","menuItem","displayedRows","actions"]),Ml=vN;var r_;const yN=["ActionsComponent","backIconButtonProps","className","colSpan","component","count","getItemAriaLabel","labelDisplayedRows","labelRowsPerPage","nextIconButtonProps","onPageChange","onRowsPerPageChange","page","rowsPerPage","rowsPerPageOptions","SelectProps","showFirstButton","showLastButton"],bN=Jt(Xa,{name:"MuiTablePagination",slot:"Root",overridesResolver:(e,t)=>t.root})(({theme:e})=>({overflow:"auto",color:(e.vars||e).palette.text.primary,fontSize:e.typography.pxToRem(14),"&:last-child":{padding:0}})),xN=Jt(MC,{name:"MuiTablePagination",slot:"Toolbar",overridesResolver:(e,t)=>ot({[`& .${Ml.actions}`]:t.actions},t.toolbar)})(({theme:e})=>({minHeight:52,paddingRight:2,[`${e.breakpoints.up("xs")} and (orientation: landscape)`]:{minHeight:52},[e.breakpoints.up("sm")]:{minHeight:52,paddingRight:2},[`& .${Ml.actions}`]:{flexShrink:0,marginLeft:20}})),wN=Jt("div",{name:"MuiTablePagination",slot:"Spacer",overridesResolver:(e,t)=>t.spacer})({flex:"1 1 100%"}),_N=Jt("p",{name:"MuiTablePagination",slot:"SelectLabel",overridesResolver:(e,t)=>t.selectLabel})(({theme:e})=>ot({},e.typography.body2,{flexShrink:0})),TN=Jt(zy,{name:"MuiTablePagination",slot:"Select",overridesResolver:(e,t)=>ot({[`& .${Ml.selectIcon}`]:t.selectIcon,[`& .${Ml.select}`]:t.select},t.input,t.selectRoot)})({color:"inherit",fontSize:"inherit",flexShrink:0,marginRight:32,marginLeft:8,[`& .${Ml.select}`]:{paddingLeft:8,paddingRight:24,textAlign:"right",textAlignLast:"right"}}),kN=Jt(kC,{name:"MuiTablePagination",slot:"MenuItem",overridesResolver:(e,t)=>t.menuItem})({}),SN=Jt("p",{name:"MuiTablePagination",slot:"DisplayedRows",overridesResolver:(e,t)=>t.displayedRows})(({theme:e})=>ot({},e.typography.body2,{flexShrink:0}));function MN({from:e,to:t,count:r}){return`${e}–${t} of ${r!==-1?r:`more than ${t}`}`}function CN(e){return`Go to ${e} page`}const ON=e=>{const{classes:t}=e;return Nn({root:["root"],toolbar:["toolbar"],spacer:["spacer"],selectLabel:["selectLabel"],select:["select"],input:["input"],selectIcon:["selectIcon"],menuItem:["menuItem"],displayedRows:["displayedRows"],actions:["actions"]},ZC,t)},PN=$e.forwardRef(function(t,r){const i=Ln({props:t,name:"MuiTablePagination"}),{ActionsComponent:s=mN,backIconButtonProps:o,className:a,colSpan:n,component:l=Xa,count:c,getItemAriaLabel:u=CN,labelDisplayedRows:f=MN,labelRowsPerPage:d="Rows per page:",nextIconButtonProps:p,onPageChange:h,onRowsPerPageChange:m,page:y,rowsPerPage:v,rowsPerPageOptions:g=[10,25,50,100],SelectProps:b={},showFirstButton:w=!1,showLastButton:_=!1}=i,x=wn(i,yN),k=i,T=ON(k),S=b.native?"option":kN;let M;(l===Xa||l==="td")&&(M=n||1e3);const C=El(b.id),A=El(b.labelId),D=()=>c===-1?(y+1)*v:v===-1?c:Math.min(c,(y+1)*v);return Ee.jsx(bN,ot({colSpan:M,ref:r,as:l,ownerState:k,className:ar(T.root,a)},x,{children:Ee.jsxs(xN,{className:T.toolbar,children:[Ee.jsx(wN,{className:T.spacer}),g.length>1&&Ee.jsx(_N,{className:T.selectLabel,id:A,children:d}),g.length>1&&Ee.jsx(TN,ot({variant:"standard"},!b.variant&&{input:r_||(r_=Ee.jsx(cL,{}))},{value:v,onChange:m,id:C,labelId:A},b,{classes:ot({},b.classes,{root:ar(T.input,T.selectRoot,(b.classes||{}).root),select:ar(T.select,(b.classes||{}).select),icon:ar(T.selectIcon,(b.classes||{}).icon)}),children:g.map(O=>$e.createElement(S,ot({},!zR(S)&&{ownerState:k},{className:T.menuItem,key:O.label?O.label:O,value:O.value?O.value:O}),O.label?O.label:O))})),Ee.jsx(SN,{className:T.displayedRows,children:f({from:c===0?0:y*v+1,to:D(),count:c===-1?-1:c,page:y})}),Ee.jsx(s,{className:T.actions,backIconButtonProps:o,count:c,nextIconButtonProps:p,onPageChange:h,page:y,rowsPerPage:v,showFirstButton:w,showLastButton:_,getItemAriaLabel:u})]})}))}),AN=PN,DN=Object.freeze(Object.defineProperty({__proto__:null,default:AN,getTablePaginationUtilityClass:ZC,tablePaginationClasses:Ml},Symbol.toStringTag,{value:"Module"})),EN=Object.freeze(Object.defineProperty({__proto__:null,default:zu,getTableRowUtilityClass:AL,tableRowClasses:DL},Symbol.toStringTag,{value:"Module"})),RN=sa(Ee.jsx("path",{d:"M20 12l-1.41-1.41L13 16.17V4h-2v12.17l-5.58-5.59L4 12l8 8 8-8z"}),"ArrowDownward");function KC(e){return Wn("MuiTableSortLabel",e)}const LN=Un("MuiTableSortLabel",["root","active","icon","iconDirectionDesc","iconDirectionAsc"]),Lf=LN,IN=["active","children","className","direction","hideSortIcon","IconComponent"],$N=e=>{const{classes:t,direction:r,active:i}=e,s={root:["root",i&&"active"],icon:["icon",`iconDirection${dr(r)}`]};return Nn(s,KC,t)},FN=Jt(Ny,{name:"MuiTableSortLabel",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,r.active&&t.active]}})(({theme:e})=>({cursor:"pointer",display:"inline-flex",justifyContent:"flex-start",flexDirection:"inherit",alignItems:"center","&:focus":{color:(e.vars||e).palette.text.secondary},"&:hover":{color:(e.vars||e).palette.text.secondary,[`& .${Lf.icon}`]:{opacity:.5}},[`&.${Lf.active}`]:{color:(e.vars||e).palette.text.primary,[`& .${Lf.icon}`]:{opacity:1,color:(e.vars||e).palette.text.secondary}}})),jN=Jt("span",{name:"MuiTableSortLabel",slot:"Icon",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.icon,t[`iconDirection${dr(r.direction)}`]]}})(({theme:e,ownerState:t})=>ot({fontSize:18,marginRight:4,marginLeft:4,opacity:0,transition:e.transitions.create(["opacity","transform"],{duration:e.transitions.duration.shorter}),userSelect:"none"},t.direction==="desc"&&{transform:"rotate(0deg)"},t.direction==="asc"&&{transform:"rotate(180deg)"})),NN=$e.forwardRef(function(t,r){const i=Ln({props:t,name:"MuiTableSortLabel"}),{active:s=!1,children:o,className:a,direction:n="asc",hideSortIcon:l=!1,IconComponent:c=RN}=i,u=wn(i,IN),f=ot({},i,{active:s,direction:n,hideSortIcon:l,IconComponent:c}),d=$N(f);return Ee.jsxs(FN,ot({className:ar(d.root,a),component:"span",disableRipple:!0,ownerState:f,ref:r},u,{children:[o,l&&!s?null:Ee.jsx(jN,{as:c,className:ar(d.icon),ownerState:f})]}))}),BN=NN,zN=Object.freeze(Object.defineProperty({__proto__:null,default:BN,getTableSortLabelUtilityClass:KC,tableSortLabelClasses:Lf},Symbol.toStringTag,{value:"Module"})),qN=Object.freeze(Object.defineProperty({__proto__:null,default:fL,getTextFieldUtilityClass:dL,textFieldClasses:pL},Symbol.toStringTag,{value:"Module"}));var If=(e=>(e[e.Small=0]="Small",e[e.Medium=1]="Medium",e[e.Big=2]="Big",e))(If||{});function af(e){return e.palette.mode==="dark"?Bu:Nu}function of(e){return e.palette.mode==="light"?Nu:Bu}const ev=e=>{const[t,r]=$e.useState({open:!1});return Ee.jsxs(Qa,{elevation:0,onClick:i=>r(s=>({open:!s.open,anchorEl:i.currentTarget})),sx:[{color:i=>of(i)(i.palette.info.main,.6),backgroundColor:i=>af(i)(i.palette.info.main,.9)},e.data.state==="success"&&{color:i=>of(i)(i.palette.success.main,.6),backgroundColor:i=>af(i)(i.palette.success.main,.9)},e.data.state==="warning"&&{color:i=>of(i)(i.palette.warning.main,.6),backgroundColor:i=>af(i)(i.palette.warning.main,.9)},e.data.state==="error"&&{color:i=>of(i)(i.palette.error.main,.6),backgroundColor:i=>af(i)(i.palette.error.main,.9)}],children:[Ee.jsx(lr,{align:"center",variant:"h6",component:"div",children:e.data.value}),Ee.jsx(lr,{align:"center",variant:"body1",component:"div",children:e.data.text}),Ee.jsx(_C,{open:t.open,anchorEl:t.anchorEl,anchorOrigin:{horizontal:"left",vertical:"bottom"},children:e.customPopup??Ee.jsx(lr,{padding:1,children:e.data.longText})})]})},JC=e=>Ee.jsxs(Zy,{severity:e.data.severity,children:[Ee.jsx(Ky,{children:e.data.title}),e.data.text]}),a_=e=>{const{alertStats:t}=e;return Ee.jsx(ev,{data:{value:`${t.triggered.last_24h}`,state:"info",text:"alerts in the last 24 hours",longText:"alerts triggered in the period / alerts triggered in 24 hours / alerts active "},customPopup:Ee.jsx(lr,{sx:{pr:1},children:Ee.jsxs("ul",{children:[Ee.jsxs("li",{children:[t.triggered.period," alerts triggered in the period"]}),Ee.jsxs("li",{children:[t.triggered.last_24h," alerts triggered in 24 hours"]}),Ee.jsxs("li",{children:[t.active," total active alerts"]})]})})})};function WN(e){return e===12?{xs:12,sm:12,md:12,lg:12}:e===6?{xs:12,sm:12,md:6,lg:6}:e===3?{xs:12,sm:6,md:3,lg:3}:{xs:6,sm:3,md:1,lg:1}}const UN=e=>{const{size:t}=e,r=e.children.alertsPosition??"row",{title:i,details:s,content:o,alerts:a,alertStats:n,insights:l}=e.children,c=a===void 0?!1:a.length>0,u=l===void 0?!1:l.length>0;return Ee.jsx(rr,{item:!0,...WN(t),children:Ee.jsx(C$,{square:!0,elevation:2,children:Ee.jsx(R$,{children:Ee.jsxs(rr,{container:!0,spacing:1,direction:"column",children:[r==="row"?Ee.jsxs(rr,{container:!0,spacing:1,item:!0,children:[Ee.jsxs(rr,{item:!0,xs:c&&r==="row"?9:12,children:[i?Ee.jsx(lr,{variant:"h5",children:i}):Ee.jsx("div",{}),Ee.jsx("div",{children:o}),s?Ee.jsx(lr,{variant:"subtitle1",children:s}):Ee.jsx("div",{})]}),c?Ee.jsx(rr,{container:!0,spacing:1,direction:"column",justifyContent:"center",item:!0,xs:3,children:a?Ee.jsxs(tt.Fragment,{children:[n?Ee.jsx(rr,{item:!0,children:Ee.jsx(a_,{alertStats:n})}):Ee.jsx("div",{}),a.map(f=>Ee.jsx(rr,{item:!0,children:Ee.jsx(ev,{data:f})}))]}):Ee.jsx("div",{})}):Ee.jsx("div",{})]}):Ee.jsxs(tt.Fragment,{children:[Ee.jsxs(rr,{item:!0,children:[i?Ee.jsx(lr,{variant:"h5",children:i}):Ee.jsx("div",{}),Ee.jsx("div",{children:o}),s?Ee.jsx(lr,{variant:"subtitle1",children:s}):Ee.jsx("div",{})]}),c?Ee.jsx(rr,{item:!0,xs:!0,children:Ee.jsx(rr,{container:!0,direction:"row",spacing:1,children:a?Ee.jsxs(tt.Fragment,{children:[n?Ee.jsx(rr,{item:!0,xs:!0,children:Ee.jsx(a_,{alertStats:n})}):Ee.jsx("div",{}),a.map(f=>Ee.jsx(rr,{item:!0,xs:!0,children:Ee.jsx(ev,{data:f})}))]}):Ee.jsx("div",{})})}):Ee.jsx("div",{})]}),u?l.map(f=>Ee.jsx(rr,{item:!0,xs:!0,sm:!0,md:!0,children:Ee.jsx(JC,{data:f})})):Ee.jsx("div",{})]})})})})},i_=e=>Ee.jsxs("div",{children:[Ee.jsx(lr,{sx:{fontSize:36,textAlign:"center"},children:e.value}),Ee.jsx(lr,{sx:{fontSize:24,textAlign:"center"},children:e.label})]}),HN=e=>Ee.jsx(tt.Fragment,{children:e.counters.length===1?Ee.jsx(i_,{...e.counters[0]}):Ee.jsx(rr,{container:!0,spacing:1,direction:"row",alignItems:"center",children:e.counters.map((t,r)=>Ee.jsx(rr,{item:!0,xs:!0,component:Ma,height:"100%",children:Ee.jsx(Qa,{children:Ee.jsx(i_,{...t})})},r))})}),VN=e=>Ee.jsxs("div",{children:[Ee.jsxs(Ma,{display:"flex",alignItems:"center",children:[Ee.jsx(Ma,{width:"100%",mr:1,children:Ee.jsx(SC,{variant:"determinate",value:e.value/e.maxValue*100})}),Ee.jsx(Ma,{minWidth:35,children:Ee.jsx(lr,{variant:"body2",color:"textSecondary",children:`${Math.round(e.value/e.maxValue*100)}%`})})]}),Ee.jsx(Ma,{width:"100%",children:Ee.jsx(lr,{variant:"body2",color:"textSecondary",children:e.details??""})})]});var QC={exports:{}};(function(e,t){/*! For license information please see plotly-cartesian.min.js.LICENSE.txt */(function(r,i){e.exports=i()})(self,function(){return function(){var r={98847:function(o,a,n){var l=n(71828),c={"X,X div":'direction:ltr;font-family:"Open Sans",verdana,arial,sans-serif;margin:0;padding:0;',"X input,X button":'font-family:"Open Sans",verdana,arial,sans-serif;',"X input:focus,X button:focus":"outline:none;","X a":"text-decoration:none;","X a:hover":"text-decoration:none;","X .crisp":"shape-rendering:crispEdges;","X .user-select-none":"-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;-o-user-select:none;user-select:none;","X svg":"overflow:hidden;","X svg a":"fill:#447adb;","X svg a:hover":"fill:#3c6dc5;","X .main-svg":"position:absolute;top:0;left:0;pointer-events:none;","X .main-svg .draglayer":"pointer-events:all;","X .cursor-default":"cursor:default;","X .cursor-pointer":"cursor:pointer;","X .cursor-crosshair":"cursor:crosshair;","X .cursor-move":"cursor:move;","X .cursor-col-resize":"cursor:col-resize;","X .cursor-row-resize":"cursor:row-resize;","X .cursor-ns-resize":"cursor:ns-resize;","X .cursor-ew-resize":"cursor:ew-resize;","X .cursor-sw-resize":"cursor:sw-resize;","X .cursor-s-resize":"cursor:s-resize;","X .cursor-se-resize":"cursor:se-resize;","X .cursor-w-resize":"cursor:w-resize;","X .cursor-e-resize":"cursor:e-resize;","X .cursor-nw-resize":"cursor:nw-resize;","X .cursor-n-resize":"cursor:n-resize;","X .cursor-ne-resize":"cursor:ne-resize;","X .cursor-grab":"cursor:-webkit-grab;cursor:grab;","X .modebar":"position:absolute;top:2px;right:2px;","X .ease-bg":"-webkit-transition:background-color .3s ease 0s;-moz-transition:background-color .3s ease 0s;-ms-transition:background-color .3s ease 0s;-o-transition:background-color .3s ease 0s;transition:background-color .3s ease 0s;","X .modebar--hover>:not(.watermark)":"opacity:0;-webkit-transition:opacity .3s ease 0s;-moz-transition:opacity .3s ease 0s;-ms-transition:opacity .3s ease 0s;-o-transition:opacity .3s ease 0s;transition:opacity .3s ease 0s;","X:hover .modebar--hover .modebar-group":"opacity:1;","X .modebar-group":"float:left;display:inline-block;box-sizing:border-box;padding-left:8px;position:relative;vertical-align:middle;white-space:nowrap;","X .modebar-btn":"position:relative;font-size:16px;padding:3px 4px;height:22px;cursor:pointer;line-height:normal;box-sizing:border-box;","X .modebar-btn svg":"position:relative;top:2px;","X .modebar.vertical":"display:flex;flex-direction:column;flex-wrap:wrap;align-content:flex-end;max-height:100%;","X .modebar.vertical svg":"top:-1px;","X .modebar.vertical .modebar-group":"display:block;float:none;padding-left:0px;padding-bottom:8px;","X .modebar.vertical .modebar-group .modebar-btn":"display:block;text-align:center;","X [data-title]:before,X [data-title]:after":"position:absolute;-webkit-transform:translate3d(0, 0, 0);-moz-transform:translate3d(0, 0, 0);-ms-transform:translate3d(0, 0, 0);-o-transform:translate3d(0, 0, 0);transform:translate3d(0, 0, 0);display:none;opacity:0;z-index:1001;pointer-events:none;top:110%;right:50%;","X [data-title]:hover:before,X [data-title]:hover:after":"display:block;opacity:1;","X [data-title]:before":'content:"";position:absolute;background:rgba(0,0,0,0);border:6px solid rgba(0,0,0,0);z-index:1002;margin-top:-12px;border-bottom-color:#69738a;margin-right:-6px;',"X [data-title]:after":"content:attr(data-title);background:#69738a;color:#fff;padding:8px 10px;font-size:12px;line-height:12px;white-space:nowrap;margin-right:-18px;border-radius:2px;","X .vertical [data-title]:before,X .vertical [data-title]:after":"top:0%;right:200%;","X .vertical [data-title]:before":"border:6px solid rgba(0,0,0,0);border-left-color:#69738a;margin-top:8px;margin-right:-30px;",Y:'font-family:"Open Sans",verdana,arial,sans-serif;position:fixed;top:50px;right:20px;z-index:10000;font-size:10pt;max-width:180px;',"Y p":"margin:0;","Y .notifier-note":"min-width:180px;max-width:250px;border:1px solid #fff;z-index:3000;margin:0;background-color:#8c97af;background-color:rgba(140,151,175,.9);color:#fff;padding:10px;overflow-wrap:break-word;word-wrap:break-word;-ms-hyphens:auto;-webkit-hyphens:auto;hyphens:auto;","Y .notifier-close":"color:#fff;opacity:.8;float:right;padding:0 5px;background:none;border:none;font-size:20px;font-weight:bold;line-height:20px;","Y .notifier-close:hover":"color:#444;text-decoration:none;cursor:pointer;"};for(var u in c){var f=u.replace(/^,/," ,").replace(/X/g,".js-plotly-plot .plotly").replace(/Y/g,".plotly-notifier");l.addStyleRule(f,c[u])}},98222:function(o,a,n){o.exports=n(82887)},27206:function(o,a,n){o.exports=n(60822)},5224:function(o,a,n){o.exports=n(83832)},59509:function(o,a,n){o.exports=n(72201)},49866:function(o,a,n){o.exports=n(99442)},19548:function(o,a,n){o.exports=n(8729)},61039:function(o,a,n){o.exports=n(14382)},24296:function(o,a,n){o.exports=n(43102)},58872:function(o,a,n){o.exports=n(92165)},65591:function(o,a,n){o.exports=n(36071)},69738:function(o,a,n){o.exports=n(43905)},92650:function(o,a,n){o.exports=n(35902)},73434:function(o,a,n){o.exports=n(94507)},760:function(o,a,n){var l=n(19548);l.register([n(27206),n(5224),n(58872),n(65591),n(69738),n(92650),n(49866),n(25743),n(6197),n(73434),n(54201),n(98222),n(61039),n(24296),n(66398),n(59509)]),o.exports=l},54201:function(o,a,n){o.exports=n(58810)},25743:function(o,a,n){o.exports=n(52979)},66398:function(o,a,n){o.exports=n(32275)},6197:function(o,a,n){o.exports=n(47462)},82884:function(o){o.exports=[{path:"",backoff:0},{path:"M-2.4,-3V3L0.6,0Z",backoff:.6},{path:"M-3.7,-2.5V2.5L1.3,0Z",backoff:1.3},{path:"M-4.45,-3L-1.65,-0.2V0.2L-4.45,3L1.55,0Z",backoff:1.55},{path:"M-2.2,-2.2L-0.2,-0.2V0.2L-2.2,2.2L-1.4,3L1.6,0L-1.4,-3Z",backoff:1.6},{path:"M-4.4,-2.1L-0.6,-0.2V0.2L-4.4,2.1L-4,3L2,0L-4,-3Z",backoff:2},{path:"M2,0A2,2 0 1,1 0,-2A2,2 0 0,1 2,0Z",backoff:0,noRotate:!0},{path:"M2,2V-2H-2V2Z",backoff:0,noRotate:!0}]},50215:function(o,a,n){var l=n(82884),c=n(41940),u=n(85555),f=n(44467).templatedArray;n(24695),o.exports=f("annotation",{visible:{valType:"boolean",dflt:!0,editType:"calc+arraydraw"},text:{valType:"string",editType:"calc+arraydraw"},textangle:{valType:"angle",dflt:0,editType:"calc+arraydraw"},font:c({editType:"calc+arraydraw",colorEditType:"arraydraw"}),width:{valType:"number",min:1,dflt:null,editType:"calc+arraydraw"},height:{valType:"number",min:1,dflt:null,editType:"calc+arraydraw"},opacity:{valType:"number",min:0,max:1,dflt:1,editType:"arraydraw"},align:{valType:"enumerated",values:["left","center","right"],dflt:"center",editType:"arraydraw"},valign:{valType:"enumerated",values:["top","middle","bottom"],dflt:"middle",editType:"arraydraw"},bgcolor:{valType:"color",dflt:"rgba(0,0,0,0)",editType:"arraydraw"},bordercolor:{valType:"color",dflt:"rgba(0,0,0,0)",editType:"arraydraw"},borderpad:{valType:"number",min:0,dflt:1,editType:"calc+arraydraw"},borderwidth:{valType:"number",min:0,dflt:1,editType:"calc+arraydraw"},showarrow:{valType:"boolean",dflt:!0,editType:"calc+arraydraw"},arrowcolor:{valType:"color",editType:"arraydraw"},arrowhead:{valType:"integer",min:0,max:l.length,dflt:1,editType:"arraydraw"},startarrowhead:{valType:"integer",min:0,max:l.length,dflt:1,editType:"arraydraw"},arrowside:{valType:"flaglist",flags:["end","start"],extras:["none"],dflt:"end",editType:"arraydraw"},arrowsize:{valType:"number",min:.3,dflt:1,editType:"calc+arraydraw"},startarrowsize:{valType:"number",min:.3,dflt:1,editType:"calc+arraydraw"},arrowwidth:{valType:"number",min:.1,editType:"calc+arraydraw"},standoff:{valType:"number",min:0,dflt:0,editType:"calc+arraydraw"},startstandoff:{valType:"number",min:0,dflt:0,editType:"calc+arraydraw"},ax:{valType:"any",editType:"calc+arraydraw"},ay:{valType:"any",editType:"calc+arraydraw"},axref:{valType:"enumerated",dflt:"pixel",values:["pixel",u.idRegex.x.toString()],editType:"calc"},ayref:{valType:"enumerated",dflt:"pixel",values:["pixel",u.idRegex.y.toString()],editType:"calc"},xref:{valType:"enumerated",values:["paper",u.idRegex.x.toString()],editType:"calc"},x:{valType:"any",editType:"calc+arraydraw"},xanchor:{valType:"enumerated",values:["auto","left","center","right"],dflt:"auto",editType:"calc+arraydraw"},xshift:{valType:"number",dflt:0,editType:"calc+arraydraw"},yref:{valType:"enumerated",values:["paper",u.idRegex.y.toString()],editType:"calc"},y:{valType:"any",editType:"calc+arraydraw"},yanchor:{valType:"enumerated",values:["auto","top","middle","bottom"],dflt:"auto",editType:"calc+arraydraw"},yshift:{valType:"number",dflt:0,editType:"calc+arraydraw"},clicktoshow:{valType:"enumerated",values:[!1,"onoff","onout"],dflt:!1,editType:"arraydraw"},xclick:{valType:"any",editType:"arraydraw"},yclick:{valType:"any",editType:"arraydraw"},hovertext:{valType:"string",editType:"arraydraw"},hoverlabel:{bgcolor:{valType:"color",editType:"arraydraw"},bordercolor:{valType:"color",editType:"arraydraw"},font:c({editType:"arraydraw"}),editType:"arraydraw"},captureevents:{valType:"boolean",editType:"arraydraw"},editType:"calc",_deprecated:{ref:{valType:"string",editType:"calc"}}})},3749:function(o,a,n){var l=n(71828),c=n(89298),u=n(92605).draw;function f(p){var h=p._fullLayout;l.filterVisible(h.annotations).forEach(function(m){var y=c.getFromId(p,m.xref),v=c.getFromId(p,m.yref),g=c.getRefType(m.xref),b=c.getRefType(m.yref);m._extremes={},g==="range"&&d(m,y),b==="range"&&d(m,v)})}function d(p,h){var m,y=h._id,v=y.charAt(0),g=p[v],b=p["a"+v],w=p[v+"ref"],_=p["a"+v+"ref"],x=p["_"+v+"padplus"],k=p["_"+v+"padminus"],T={x:1,y:-1}[v]*p[v+"shift"],S=3*p.arrowsize*p.arrowwidth||0,M=S+T,C=S-T,A=3*p.startarrowsize*p.arrowwidth||0,D=A+T,O=A-T;if(_===w){var R=c.findExtremes(h,[h.r2c(g)],{ppadplus:M,ppadminus:C}),$=c.findExtremes(h,[h.r2c(b)],{ppadplus:Math.max(x,D),ppadminus:Math.max(k,O)});m={min:[R.min[0],$.min[0]],max:[R.max[0],$.max[0]]}}else D=b?D+b:D,O=b?O-b:O,m=c.findExtremes(h,[h.r2c(g)],{ppadplus:Math.max(x,M,D),ppadminus:Math.max(k,C,O)});p._extremes[y]=m}o.exports=function(p){var h=p._fullLayout;if(l.filterVisible(h.annotations).length&&p._fullData.length)return l.syncOrAsync([u,f],p)}},44317:function(o,a,n){var l=n(71828),c=n(73972),u=n(44467).arrayEditor;function f(p,h){var m,y,v,g,b,w,_,x=p._fullLayout.annotations,k=[],T=[],S=[],M=(h||[]).length;for(m=0;m0||m.explicitOff.length>0},onClick:function(p,h){var m,y,v=f(p,h),g=v.on,b=v.off.concat(v.explicitOff),w={},_=p._fullLayout.annotations;if(g.length||b.length){for(m=0;m.6666666666666666?"right":"center"),{center:0,middle:0,left:.5,bottom:-.5,right:-.5,top:.5}[Qe]}for(var we=!1,ke=["x","y"],Pe=0;Pe1)&&(Ye===qe?((Ze=at.r2fraction(M["a"+Ue]))<0||Ze>1)&&(we=!0):we=!0),Re=at._offset+at.r2p(M[Ue]),Fe=.5}else{var ut=St==="domain";Ue==="x"?(Le=M[Ue],Re=ut?at._offset+at._length*Le:Re=z.l+z.w*Le):(Le=1-M[Ue],Re=ut?at._offset+at._length*Le:Re=z.t+z.h*Le),Fe=M.showarrow?.5:Le}if(M.showarrow){it.head=Re;var gt=M["a"+Ue];if(Be=ft*be(.5,M.xanchor)-yt*be(.5,M.yanchor),Ye===qe){var Rt=p.getRefType(Ye);Rt==="domain"?(Ue==="y"&&(gt=1-gt),it.tail=at._offset+at._length*gt):Rt==="paper"?Ue==="y"?(gt=1-gt,it.tail=z.t+z.h*gt):it.tail=z.l+z.w*gt:it.tail=at._offset+at.r2p(gt),De=Be}else it.tail=Re+gt,De=Be+gt;it.text=it.tail+Be;var Mt=P[Ue==="x"?"width":"height"];if(qe==="paper"&&(it.head=f.constrain(it.head,1,Mt-1)),Ye==="pixel"){var Bt=-Math.max(it.tail-3,it.text),Tt=Math.min(it.tail+3,it.text)-Mt;Bt>0?(it.tail+=Bt,it.text+=Bt):Tt>0&&(it.tail-=Tt,it.text-=Tt)}it.tail+=et,it.head+=et}else De=Be=ze*be(Fe,Ne),it.text=Re+Be;it.text+=et,Be+=et,De+=et,M["_"+Ue+"padplus"]=ze/2+De,M["_"+Ue+"padminus"]=ze/2-De,M["_"+Ue+"size"]=ze,M["_"+Ue+"shift"]=Be}if(we)ee.remove();else{var ve=0,Te=0;if(M.align!=="left"&&(ve=(fe-V)*(M.align==="center"?.5:1)),M.valign!=="top"&&(Te=(xe-ne)*(M.valign==="middle"?.5:1)),ce)Se.select("svg").attr({x:G+ve-1,y:G+Te}).call(m.setClipUrl,Y?W:null,S);else{var Ve=G+Te-ye.top,We=G+ve-ye.left;se.call(v.positionText,We,Ve).call(m.setClipUrl,Y?W:null,S)}re.select("rect").call(m.setRect,G,G,fe,xe),X.call(m.setRect,K/2,K/2,ue-K,ge-K),ee.call(m.setTranslate,Math.round(H.x.text-ue/2),Math.round(H.y.text-ge/2)),U.attr({transform:"rotate("+L+","+H.x.text+","+H.y.text+")"});var Je,Xe=function(Ge,Qe){q.selectAll(".annotation-arrow-g").remove();var ct=H.x.head,bt=H.y.head,nt=H.x.tail+Ge,It=H.y.tail+Qe,Yt=H.x.text+Ge,Ct=H.y.text+Qe,jt=f.rotationXYMatrix(L,Yt,Ct),Et=f.apply2DTransform(jt),mt=f.apply2DTransform2(jt),vt=+X.attr("width"),wt=+X.attr("height"),qt=Yt-.5*vt,Lt=qt+vt,Gt=Ct-.5*wt,ht=Gt+wt,Pt=[[qt,Gt,qt,ht],[qt,ht,Lt,ht],[Lt,ht,Lt,Gt],[Lt,Gt,qt,Gt]].map(mt);if(!Pt.reduce(function(on,sn){return on^!!f.segmentsIntersect(ct,bt,ct+1e6,bt+1e6,sn[0],sn[1],sn[2],sn[3])},!1)){Pt.forEach(function(on){var sn=f.segmentsIntersect(nt,It,ct,bt,on[0],on[1],on[2],on[3]);sn&&(nt=sn.x,It=sn.y)});var At=M.arrowwidth,Ft=M.arrowcolor,$t=M.arrowside,Nt=q.append("g").style({opacity:h.opacity(Ft)}).classed("annotation-arrow-g",!0),Vt=Nt.append("path").attr("d","M"+nt+","+It+"L"+ct+","+bt).style("stroke-width",At+"px").call(h.stroke,h.rgb(Ft));if(_(Vt,$t,M),B.annotationPosition&&Vt.node().parentNode&&!A){var Xt=ct,zt=bt;if(M.standoff){var Wt=Math.sqrt(Math.pow(ct-nt,2)+Math.pow(bt-It,2));Xt+=M.standoff*(nt-ct)/Wt,zt+=M.standoff*(It-bt)/Wt}var an,fn,un=Nt.append("path").classed("annotation-arrow",!0).classed("anndrag",!0).classed("cursor-move",!0).attr({d:"M3,3H-3V-3H3ZM0,0L"+(nt-Xt)+","+(It-zt),transform:d(Xt,zt)}).style("stroke-width",At+6+"px").call(h.stroke,"rgba(0,0,0,0)").call(h.fill,"rgba(0,0,0,0)");b.init({element:un.node(),gd:S,prepFn:function(){var on=m.getTranslate(ee);an=on.x,fn=on.y,D&&D.autorange&&j(D._name+".autorange",!0),O&&O.autorange&&j(O._name+".autorange",!0)},moveFn:function(on,sn){var Sn=Et(an,fn),en=Sn[0]+on,dn=Sn[1]+sn;ee.call(m.setTranslate,en,dn),F("x",k(D,on,"x",z,M)),F("y",k(O,sn,"y",z,M)),M.axref===M.xref&&F("ax",k(D,on,"ax",z,M)),M.ayref===M.yref&&F("ay",k(O,sn,"ay",z,M)),Nt.attr("transform",d(on,sn)),U.attr({transform:"rotate("+L+","+en+","+dn+")"})},doneFn:function(){c.call("_guiRelayout",S,E());var on=document.querySelector(".js-notes-box-panel");on&&on.redraw(on.selectedObj)}})}}};M.showarrow&&Xe(0,0),J&&b.init({element:ee.node(),gd:S,prepFn:function(){Je=U.attr("transform")},moveFn:function(Ge,Qe){var ct="pointer";if(M.showarrow)M.axref===M.xref?F("ax",k(D,Ge,"ax",z,M)):F("ax",M.ax+Ge),M.ayref===M.yref?F("ay",k(O,Qe,"ay",z.w,M)):F("ay",M.ay+Qe),Xe(Ge,Qe);else{if(A)return;var bt,nt;if(D)bt=k(D,Ge,"x",z,M);else{var It=M._xsize/z.w,Yt=M.x+(M._xshift-M.xshift)/z.w-It/2;bt=b.align(Yt+Ge/z.w,It,0,1,M.xanchor)}if(O)nt=k(O,Qe,"y",z,M);else{var Ct=M._ysize/z.h,jt=M.y-(M._yshift+M.yshift)/z.h-Ct/2;nt=b.align(jt-Qe/z.h,Ct,0,1,M.yanchor)}F("x",bt),F("y",nt),D&&O||(ct=b.getCursor(D?.5:bt,O?.5:nt,M.xanchor,M.yanchor))}U.attr({transform:d(Ge,Qe)+Je}),g(ee,ct)},clickFn:function(Ge,Qe){M.captureevents&&S.emit("plotly_clickannotation",he(Qe))},doneFn:function(){g(ee),c.call("_guiRelayout",S,E());var Ge=document.querySelector(".js-notes-box-panel");Ge&&Ge.redraw(Ge.selectedObj)}})}}}o.exports={draw:function(S){var M=S._fullLayout;M._infolayer.selectAll(".annotation").remove();for(var C=0;C=0,A=y.indexOf("end")>=0,D=k.backoff*S+v.standoff,O=T.backoff*M+v.startstandoff;if(x.nodeName==="line"){g={x:+m.attr("x1"),y:+m.attr("y1")},b={x:+m.attr("x2"),y:+m.attr("y2")};var R=g.x-b.x,$=g.y-b.y;if(_=(w=Math.atan2($,R))+Math.PI,D&&O&&D+O>Math.sqrt(R*R+$*$))return void q();if(D){if(D*D>R*R+$*$)return void q();var P=D*Math.cos(w),z=D*Math.sin(w);b.x+=P,b.y+=z,m.attr({x2:b.x,y2:b.y})}if(O){if(O*O>R*R+$*$)return void q();var B=O*Math.cos(w),N=O*Math.sin(w);g.x-=B,g.y-=N,m.attr({x1:g.x,y1:g.y})}}else if(x.nodeName==="path"){var j=x.getTotalLength(),F="";if(j1){v=!0;break}}v?f.fullLayout._infolayer.select(".annotation-"+f.id+'[data-index="'+m+'"]').remove():(y._pdata=c(f.glplot.cameraParams,[d.xaxis.r2l(y.x)*p[0],d.yaxis.r2l(y.y)*p[1],d.zaxis.r2l(y.z)*p[2]]),l(f.graphDiv,y,m,f.id,y._xa,y._ya))}}},2468:function(o,a,n){var l=n(73972),c=n(71828);o.exports={moduleType:"component",name:"annotations3d",schema:{subplots:{scene:{annotations:n(26997)}}},layoutAttributes:n(26997),handleDefaults:n(20226),includeBasePlot:function(u,f){var d=l.subplotsRegistry.gl3d;if(d)for(var p=d.attrRegex,h=Object.keys(u),m=0;m=0)))return y;if(_===3)b[_]>1&&(b[_]=1);else if(b[_]>=1)return y}var x=Math.round(255*b[0])+", "+Math.round(255*b[1])+", "+Math.round(255*b[2]);return w?"rgba("+x+", "+b[3]+")":"rgb("+x+")"}f.tinyRGB=function(y){var v=y.toRgb();return"rgb("+Math.round(v.r)+", "+Math.round(v.g)+", "+Math.round(v.b)+")"},f.rgb=function(y){return f.tinyRGB(l(y))},f.opacity=function(y){return y?l(y).getAlpha():0},f.addOpacity=function(y,v){var g=l(y).toRgb();return"rgba("+Math.round(g.r)+", "+Math.round(g.g)+", "+Math.round(g.b)+", "+v+")"},f.combine=function(y,v){var g=l(y).toRgb();if(g.a===1)return l(y).toRgbString();var b=l(v||h).toRgb(),w=b.a===1?b:{r:255*(1-b.a)+b.r*b.a,g:255*(1-b.a)+b.g*b.a,b:255*(1-b.a)+b.b*b.a},_={r:w.r*(1-g.a)+g.r*g.a,g:w.g*(1-g.a)+g.g*g.a,b:w.b*(1-g.a)+g.b*g.a};return l(_).toRgbString()},f.contrast=function(y,v,g){var b=l(y);return b.getAlpha()!==1&&(b=l(f.combine(y,h))),(b.isDark()?v?b.lighten(v):h:g?b.darken(g):p).toString()},f.stroke=function(y,v){var g=l(v);y.style({stroke:f.tinyRGB(g),"stroke-opacity":g.getAlpha()})},f.fill=function(y,v){var g=l(v);y.style({fill:f.tinyRGB(g),"fill-opacity":g.getAlpha()})},f.clean=function(y){if(y&&typeof y=="object"){var v,g,b,w,_=Object.keys(y);for(v=0;v<_.length;v++)if(w=y[b=_[v]],b.substr(b.length-5)==="color")if(Array.isArray(w))for(g=0;g0?Tt>=Je:Tt<=Je));ve++)Tt>Ge&&Tt0?Tt>=Je:Tt<=Je));ve++)Tt>Bt[0]&&Tt1){var yt=Math.pow(10,Math.floor(Math.log(ft)/Math.LN10));at*=yt*h.roundUp(ft/yt,[2,5,10]),(Math.abs(V.start)/V.size+1e-6)%1<2e-6&&(qe.tick0=0)}qe.dtick=at}qe.domain=E?[Be+G/se.h,Be+we-G/se.h]:[Be+Q/se.w,Be+we-Q/se.w],qe.setScale(),N.attr("transform",m(Math.round(se.l),Math.round(se.t)));var ze,Ne=N.select("."+O.cbtitleunshift).attr("transform",m(-Math.round(se.l),-Math.round(se.t))),et=qe.ticklabelposition,it=qe.title.font.size,St=N.select("."+O.cbaxis),Ze=0,ut=0;function gt(Rt,Mt){var Bt={propContainer:qe,propName:j._propPrefix+"title",traceIndex:j._traceIndex,_meta:j._meta,placeholder:le._dfltTitle.colorbar,containerGroup:N.select("."+O.cbtitle)},Tt=Rt.charAt(0)==="h"?Rt.substr(1):"h"+Rt;N.selectAll("."+Tt+",."+Tt+"-math-group").remove(),w.draw(F,Rt,y(Bt,Mt||{}))}return h.syncOrAsync([u.previousPromises,function(){var Rt,Mt;(E&&Ye||!E&&!Ye)&&(Ce==="top"&&(Rt=Q+se.l+ke*X,Mt=G+se.t+Pe*(1-Be-we)+3+.75*it),Ce==="bottom"&&(Rt=Q+se.l+ke*X,Mt=G+se.t+Pe*(1-Be)-3-.25*it),Ce==="right"&&(Mt=G+se.t+Pe*Y+3+.75*it,Rt=Q+se.l+ke*Be),gt(qe._id+"title",{attributes:{x:Rt,y:Mt,"text-anchor":E?"start":"middle"}}))},function(){if(!E&&!Ye||E&&Ye){var Rt,Mt=N.select("."+O.cbtitle),Bt=Mt.select("text"),Tt=[-U/2,U/2],ve=Mt.select(".h"+qe._id+"title-math-group").node(),Te=15.6;if(Bt.node()&&(Te=parseInt(Bt.node().style.fontSize,10)*C),ve?(Rt=g.bBox(ve),ut=Rt.width,(Ze=Rt.height)>Te&&(Tt[1]-=(Ze-Te)/2)):Bt.node()&&!Bt.classed(O.jsPlaceholder)&&(Rt=g.bBox(Bt.node()),ut=Rt.width,Ze=Rt.height),E){if(Ze){if(Ze+=5,Ce==="top")qe.domain[1]-=Ze/se.h,Tt[1]*=-1;else{qe.domain[0]+=Ze/se.h;var Ve=_.lineCount(Bt);Tt[1]+=(1-Ve)*Te}Mt.attr("transform",m(Tt[0],Tt[1])),qe.setScale()}}else ut&&(Ce==="right"&&(qe.domain[0]+=(ut+it/2)/se.w),Mt.attr("transform",m(Tt[0],Tt[1])),qe.setScale())}N.selectAll("."+O.cbfills+",."+O.cblines).attr("transform",E?m(0,Math.round(se.h*(1-qe.domain[1]))):m(Math.round(se.w*qe.domain[0]),0)),St.attr("transform",E?m(0,Math.round(-se.t)):m(Math.round(-se.l),0));var We=N.select("."+O.cbfills).selectAll("rect."+O.cbfill).attr("style","").data(fe);We.enter().append("rect").classed(O.cbfill,!0).attr("style",""),We.exit().remove();var Je=Se.map(qe.c2p).map(Math.round).sort(function(bt,nt){return bt-nt});We.each(function(bt,nt){var It=[nt===0?Se[0]:(fe[nt]+fe[nt-1])/2,nt===fe.length-1?Se[1]:(fe[nt]+fe[nt+1])/2].map(qe.c2p).map(Math.round);E&&(It[1]=h.constrain(It[1]+(It[1]>It[0])?1:-1,Je[0],Je[1]));var Yt=l.select(this).attr(E?"x":"y",Re).attr(E?"y":"x",l.min(It)).attr(E?"width":"height",Math.max(ue,2)).attr(E?"height":"width",Math.max(l.max(It)-l.min(It),2));if(j._fillgradient)g.gradient(Yt,F,j._id,E?"vertical":"horizontalreversed",j._fillgradient,"fill");else{var Ct=ye(bt).replace("e-","");Yt.attr("fill",c(Ct).toHexString())}});var Xe=N.select("."+O.cblines).selectAll("path."+O.cbline).data(_e.color&&_e.width?xe:[]);Xe.enter().append("path").classed(O.cbline,!0),Xe.exit().remove(),Xe.each(function(bt){var nt=Re,It=Math.round(qe.c2p(bt))+_e.width/2%1;l.select(this).attr("d","M"+(E?nt+","+It:It+","+nt)+(E?"h":"v")+ue).call(g.lineGroupStyle,_e.width,ce(bt),_e.dash)}),St.selectAll("g."+qe._id+"tick,path").remove();var Ge=Re+ue+(U||0)/2-(j.ticks==="outside"?1:0),Qe=d.calcTicks(qe),ct=d.getTickSigns(qe)[2];return d.drawTicks(F,qe,{vals:qe.ticks==="inside"?d.clipEnds(qe,Qe):Qe,layer:St,path:d.makeTickPath(qe,Ge,ct),transFn:d.makeTransTickFn(qe)}),d.drawLabels(F,qe,{vals:Qe,layer:St,transFn:d.makeTransTickLabelFn(qe),labelFns:d.makeLabelFns(qe,Ge)})},function(){if(E&&!Ye||!E&&Ye){var Rt,Mt,Bt=qe.position||0,Tt=qe._offset+qe._length/2;if(Ce==="right")Mt=Tt,Rt=se.l+ke*Bt+10+it*(qe.showticklabels?1:.5);else if(Rt=Tt,Ce==="bottom"&&(Mt=se.t+Pe*Bt+10+(et.indexOf("inside")===-1?qe.tickfont.size:0)+(qe.ticks!=="intside"&&j.ticklen||0)),Ce==="top"){var ve=Me.text.split("
").length;Mt=se.t+Pe*Bt+10-ue-C*it*ve}gt((E?"h":"v")+qe._id+"title",{avoid:{selection:l.select(F).selectAll("g."+qe._id+"tick"),side:Ce,offsetTop:E?0:se.t,offsetLeft:E?se.l:0,maxShift:E?le.width:le.height},attributes:{x:Rt,y:Mt,"text-anchor":"middle"},transform:{rotate:E?-90:0,offset:0}})}},u.previousPromises,function(){var Rt,Mt=ue+U/2;et.indexOf("inside")===-1&&(Rt=g.bBox(St.node()),Mt+=E?Rt.width:Rt.height),ze=Ne.select("text");var Bt=0,Tt=E&&Ce==="top",ve=!E&&Ce==="right",Te=0;if(ze.node()&&!ze.classed(O.jsPlaceholder)){var Ve,We=Ne.select(".h"+qe._id+"title-math-group").node();We&&(E&&Ye||!E&&!Ye)?(Bt=(Rt=g.bBox(We)).width,Ve=Rt.height):(Bt=(Rt=g.bBox(Ne.node())).right-se.l-(E?Re:Ue),Ve=Rt.bottom-se.t-(E?Ue:Re),E||Ce!=="top"||(Mt+=Rt.height,Te=Rt.height)),ve&&(ze.attr("transform",m(Bt/2+it/2,0)),Bt*=2),Mt=Math.max(Mt,E?Bt:Ve)}var Je=2*(E?Q:G)+Mt+J+U/2,Xe=0;!E&&Me.text&&K==="bottom"&&Y<=0&&(Je+=Xe=Je/2,Te+=Xe),le._hColorbarMoveTitle=Xe,le._hColorbarMoveCBTitle=Te;var Ge=J+U,Qe=(E?Re:Ue)-Ge/2-(E?Q:0),ct=(E?Ue:Re)-(E?be:G+Te-Xe);N.select("."+O.cbbg).attr("x",Qe).attr("y",ct).attr(E?"width":"height",Math.max(Je-Xe,2)).attr(E?"height":"width",Math.max(be+Ge,2)).call(b.fill,te).call(b.stroke,j.bordercolor).style("stroke-width",J);var bt=ve?Math.max(Bt-10,0):0;N.selectAll("."+O.cboutline).attr("x",(E?Re:Ue+Q)+bt).attr("y",(E?Ue+G-be:Re)+(Tt?Ze:0)).attr(E?"width":"height",Math.max(ue,2)).attr(E?"height":"width",Math.max(be-(E?2*G+Ze:2*Q+bt),2)).call(b.stroke,j.outlinecolor).style({fill:"none","stroke-width":U});var nt=E?De*Je:0,It=E?0:(1-Le)*Je-Te;if(nt=ie?se.l-nt:-nt,It=re?se.t-It:-It,N.attr("transform",m(nt,It)),!E&&(J||c(te).getAlpha()&&!c.equals(le.paper_bgcolor,te))){var Yt=St.selectAll("text"),Ct=Yt[0].length,jt=N.select("."+O.cbbg).node(),Et=g.bBox(jt),mt=g.getTranslate(N);Yt.each(function($t,Nt){var Vt=Ct-1;if(Nt===0||Nt===Vt){var Xt,zt=g.bBox(this),Wt=g.getTranslate(this);if(Nt===Vt){var an=zt.right+Wt.x;(Xt=Et.right+mt.x+Ue-J-2+X-an)>0&&(Xt=0)}else if(Nt===0){var fn=zt.left+Wt.x;(Xt=Et.left+mt.x+Ue+J+2-fn)<0&&(Xt=0)}Xt&&(Ct<3?this.setAttribute("transform","translate("+Xt+",0) "+this.getAttribute("transform")):this.setAttribute("visibility","hidden"))}})}var vt={},wt=A[ee],qt=D[ee],Lt=A[K],Gt=D[K],ht=Je-ue;E?(H==="pixels"?(vt.y=Y,vt.t=be*Lt,vt.b=be*Gt):(vt.t=vt.b=0,vt.yt=Y+W*Lt,vt.yb=Y-W*Gt),q==="pixels"?(vt.x=X,vt.l=Je*wt,vt.r=Je*qt):(vt.l=ht*wt,vt.r=ht*qt,vt.xl=X-L*wt,vt.xr=X+L*qt)):(H==="pixels"?(vt.x=X,vt.l=be*wt,vt.r=be*qt):(vt.l=vt.r=0,vt.xl=X+W*wt,vt.xr=X-W*qt),q==="pixels"?(vt.y=1-Y,vt.t=Je*Lt,vt.b=Je*Gt):(vt.t=ht*Lt,vt.b=ht*Gt,vt.yt=Y-L*Lt,vt.yb=Y+L*Gt));var Pt=j.y<.5?"b":"t",At=j.x<.5?"l":"r";F._fullLayout._reservedMargin[j._id]={};var Ft={r:le.width-Qe-nt,l:Qe+vt.r,b:le.height-ct-It,t:ct+vt.b};ie&&re?u.autoMargin(F,j._id,vt):ie?F._fullLayout._reservedMargin[j._id][Pt]=Ft[Pt]:re||E?F._fullLayout._reservedMargin[j._id][At]=Ft[At]:F._fullLayout._reservedMargin[j._id][Pt]=Ft[Pt]}],F)}(z,P,R);B&&B.then&&(R._promises||[]).push(B),R._context.edits.colorbarPosition&&function(N,j,F){var E,W,H,L=j.orientation==="v",q=F._fullLayout._size;p.init({element:N.node(),gd:F,prepFn:function(){E=N.attr("transform"),v(N)},moveFn:function(U,J){N.attr("transform",E+m(U,J)),W=p.align((L?j._uFrac:j._vFrac)+U/q.w,L?j._thickFrac:j._lenFrac,0,1,j.xanchor),H=p.align((L?j._vFrac:1-j._uFrac)-J/q.h,L?j._lenFrac:j._thickFrac,0,1,j.yanchor);var te=p.getCursor(W,H,j.xanchor,j.yanchor);v(N,te)},doneFn:function(){if(v(N),W!==void 0&&H!==void 0){var U={};U[j._propPrefix+"x"]=W,U[j._propPrefix+"y"]=H,j._traceIndex!==void 0?f.call("_guiRestyle",F,U,j._traceIndex):f.call("_guiRelayout",F,U)}}})}(z,P,R)}),$.exit().each(function(P){u.autoMargin(R,P._id)}).remove(),$.order()}}},76228:function(o,a,n){var l=n(71828);o.exports=function(c){return l.isPlainObject(c.colorbar)}},12311:function(o,a,n){o.exports={moduleType:"component",name:"colorbar",attributes:n(63583),supplyDefaults:n(62499),draw:n(98981).draw,hasColorbar:n(76228)}},50693:function(o,a,n){var l=n(63583),c=n(30587).counter,u=n(78607),f=n(63282).scales;function d(p){return"`"+p+"`"}u(f),o.exports=function(p,h){p=p||"";var m,y=(h=h||{}).cLetter||"c",v=("onlyIfNumerical"in h&&h.onlyIfNumerical,"noScale"in h?h.noScale:p==="marker.line"),g="showScaleDflt"in h?h.showScaleDflt:y==="z",b=typeof h.colorscaleDflt=="string"?f[h.colorscaleDflt]:null,w=h.editTypeOverride||"",_=p?p+".":"";"colorAttr"in h?(m=h.colorAttr,h.colorAttr):d(_+(m={z:"z",c:"color"}[y]));var x=y+"auto",k=y+"min",T=y+"max",S=y+"mid",M={};M[k]=M[T]=void 0;var C={};C[x]=!1;var A={};return m==="color"&&(A.color={valType:"color",arrayOk:!0,editType:w||"style"},h.anim&&(A.color.anim=!0)),A[x]={valType:"boolean",dflt:!0,editType:"calc",impliedEdits:M},A[k]={valType:"number",dflt:null,editType:w||"plot",impliedEdits:C},A[T]={valType:"number",dflt:null,editType:w||"plot",impliedEdits:C},A[S]={valType:"number",dflt:null,editType:"calc",impliedEdits:M},A.colorscale={valType:"colorscale",editType:"calc",dflt:b,impliedEdits:{autocolorscale:!1}},A.autocolorscale={valType:"boolean",dflt:h.autoColorDflt!==!1,editType:"calc",impliedEdits:{colorscale:void 0}},A.reversescale={valType:"boolean",dflt:!1,editType:"plot"},v||(A.showscale={valType:"boolean",dflt:g,editType:"calc"},A.colorbar=l),h.noColorAxis||(A.coloraxis={valType:"subplotid",regex:c("coloraxis"),dflt:null,editType:"calc"}),A}},78803:function(o,a,n){var l=n(92770),c=n(71828),u=n(52075).extractOpts;o.exports=function(f,d,p){var h,m=f._fullLayout,y=p.vals,v=p.containerStr,g=v?c.nestedProperty(d,v).get():d,b=u(g),w=b.auto!==!1,_=b.min,x=b.max,k=b.mid,T=function(){return c.aggNums(Math.min,null,y)},S=function(){return c.aggNums(Math.max,null,y)};_===void 0?_=T():w&&(_=g._colorAx&&l(_)?Math.min(_,T()):T()),x===void 0?x=S():w&&(x=g._colorAx&&l(x)?Math.max(x,S()):S()),w&&k!==void 0&&(x-k>k-_?_=k-(x-k):x-k=0?m.colorscale.sequential:m.colorscale.sequentialminus,b._sync("colorscale",h))}},33046:function(o,a,n){var l=n(71828),c=n(52075).hasColorscale,u=n(52075).extractOpts;o.exports=function(f,d){function p(w,_){var x=w["_"+_];x!==void 0&&(w[_]=x)}function h(w,_){var x=_.container?l.nestedProperty(w,_.container).get():w;if(x)if(x.coloraxis)x._colorAx=d[x.coloraxis];else{var k=u(x),T=k.auto;(T||k.min===void 0)&&p(x,_.min),(T||k.max===void 0)&&p(x,_.max),k.autocolorscale&&p(x,"colorscale")}}for(var m=0;m=0;T--,S++){var M=_[T];k[S]=[1-M[0],M[1]]}return k}function b(_,x){x=x||{};for(var k=_.domain,T=_.range,S=T.length,M=new Array(S),C=0;C1.3333333333333333-p?d:p}},70461:function(o,a,n){var l=n(71828),c=[["sw-resize","s-resize","se-resize"],["w-resize","move","e-resize"],["nw-resize","n-resize","ne-resize"]];o.exports=function(u,f,d,p){return u=d==="left"?0:d==="center"?1:d==="right"?2:l.constrain(Math.floor(3*u),0,2),f=p==="bottom"?0:p==="middle"?1:p==="top"?2:l.constrain(Math.floor(3*f),0,2),c[f][u]}},64505:function(o,a){a.selectMode=function(n){return n==="lasso"||n==="select"},a.drawMode=function(n){return n==="drawclosedpath"||n==="drawopenpath"||n==="drawline"||n==="drawrect"||n==="drawcircle"},a.openMode=function(n){return n==="drawline"||n==="drawopenpath"},a.rectMode=function(n){return n==="select"||n==="drawline"||n==="drawrect"||n==="drawcircle"},a.freeMode=function(n){return n==="lasso"||n==="drawclosedpath"||n==="drawopenpath"},a.selectingOrDrawing=function(n){return a.freeMode(n)||a.rectMode(n)}},28569:function(o,a,n){var l=n(48956),c=n(57035),u=n(38520),f=n(71828).removeElement,d=n(85555),p=o.exports={};p.align=n(92807),p.getCursor=n(70461);var h=n(26041);function m(){var v=document.createElement("div");v.className="dragcover";var g=v.style;return g.position="fixed",g.left=0,g.right=0,g.top=0,g.bottom=0,g.zIndex=999999999,g.background="none",document.body.appendChild(v),v}function y(v){return l(v.changedTouches?v.changedTouches[0]:v,document.body)}p.unhover=h.wrapped,p.unhoverRaw=h.raw,p.init=function(v){var g,b,w,_,x,k,T,S,M=v.gd,C=1,A=M._context.doubleClickDelay,D=v.element;M._mouseDownTime||(M._mouseDownTime=0),D.style.pointerEvents="all",D.onmousedown=R,u?(D._ontouchstart&&D.removeEventListener("touchstart",D._ontouchstart),D._ontouchstart=R,D.addEventListener("touchstart",R,{passive:!1})):D.ontouchstart=R;var O=v.clampFn||function(z,B,N){return Math.abs(z)A&&(C=Math.max(C-1,1)),M._dragged)v.doneFn&&v.doneFn();else if(v.clickFn&&v.clickFn(C,k),!S){var B;try{B=new MouseEvent("click",z)}catch{var N=y(z);(B=document.createEvent("MouseEvents")).initMouseEvent("click",z.bubbles,z.cancelable,z.view,z.detail,z.screenX,z.screenY,N[0],N[1],z.ctrlKey,z.altKey,z.shiftKey,z.metaKey,z.button,z.relatedTarget)}T.dispatchEvent(B)}M._dragging=!1,M._dragged=!1}else M._dragged=!1}},p.coverSlip=m},26041:function(o,a,n){var l=n(11086),c=n(79990),u=n(24401).getGraphDiv,f=n(26675),d=o.exports={};d.wrapped=function(p,h,m){(p=u(p))._fullLayout&&c.clear(p._fullLayout._uid+f.HOVERID),d.raw(p,h,m)},d.raw=function(p,h){var m=p._fullLayout,y=p._hoverdata;h||(h={}),h.target&&!p._dragged&&l.triggerHandler(p,"plotly_beforehover",h)===!1||(m._hoverlayer.selectAll("g").remove(),m._hoverlayer.selectAll("line").remove(),m._hoverlayer.selectAll("circle").remove(),p._hoverdata=void 0,h.target&&y&&p.emit("plotly_unhover",{event:h,points:y}))}},79952:function(o,a){a.P={valType:"string",values:["solid","dot","dash","longdash","dashdot","longdashdot"],dflt:"solid",editType:"style"},a.u={shape:{valType:"enumerated",values:["","/","\\","x","-","|","+","."],dflt:"",arrayOk:!0,editType:"style"},fillmode:{valType:"enumerated",values:["replace","overlay"],dflt:"replace",editType:"style"},bgcolor:{valType:"color",arrayOk:!0,editType:"style"},fgcolor:{valType:"color",arrayOk:!0,editType:"style"},fgopacity:{valType:"number",editType:"style",min:0,max:1},size:{valType:"number",min:0,dflt:8,arrayOk:!0,editType:"style"},solidity:{valType:"number",min:0,max:1,dflt:.3,arrayOk:!0,editType:"style"},editType:"style"}},91424:function(o,a,n){var l=n(39898),c=n(71828),u=c.numberFormat,f=n(92770),d=n(84267),p=n(73972),h=n(7901),m=n(21081),y=c.strTranslate,v=n(63893),g=n(77922),b=n(18783).LINE_SPACING,w=n(37822).DESELECTDIM,_=n(34098),x=n(39984),k=n(23469).appendArrayPointValue,T=o.exports={};function S(ce,ye,V){var ne=ye.fillpattern,fe=ne&&T.getPatternAttr(ne.shape,0,"");if(fe){var xe=T.getPatternAttr(ne.bgcolor,0,null),ue=T.getPatternAttr(ne.fgcolor,0,null),ge=ne.fgopacity,be=T.getPatternAttr(ne.size,0,8),we=T.getPatternAttr(ne.solidity,0,.3),ke=ye.uid;T.pattern(ce,"point",V,ke,fe,be,we,void 0,ne.fillmode,xe,ue,ge)}else ye.fillcolor&&ce.call(h.fill,ye.fillcolor)}T.font=function(ce,ye,V,ne){c.isPlainObject(ye)&&(ne=ye.color,V=ye.size,ye=ye.family),ye&&ce.style("font-family",ye),V+1&&ce.style("font-size",V+"px"),ne&&ce.call(h.fill,ne)},T.setPosition=function(ce,ye,V){ce.attr("x",ye).attr("y",V)},T.setSize=function(ce,ye,V){ce.attr("width",ye).attr("height",V)},T.setRect=function(ce,ye,V,ne,fe){ce.call(T.setPosition,ye,V).call(T.setSize,ne,fe)},T.translatePoint=function(ce,ye,V,ne){var fe=V.c2p(ce.x),xe=ne.c2p(ce.y);return!!(f(fe)&&f(xe)&&ye.node())&&(ye.node().nodeName==="text"?ye.attr("x",fe).attr("y",xe):ye.attr("transform",y(fe,xe)),!0)},T.translatePoints=function(ce,ye,V){ce.each(function(ne){var fe=l.select(this);T.translatePoint(ne,fe,ye,V)})},T.hideOutsideRangePoint=function(ce,ye,V,ne,fe,xe){ye.attr("display",V.isPtWithinRange(ce,fe)&&ne.isPtWithinRange(ce,xe)?null:"none")},T.hideOutsideRangePoints=function(ce,ye){if(ye._hasClipOnAxisFalse){var V=ye.xaxis,ne=ye.yaxis;ce.each(function(fe){var xe=fe[0].trace,ue=xe.xcalendar,ge=xe.ycalendar,be=p.traceIs(xe,"bar-like")?".bartext":".point,.textpoint";ce.selectAll(be).each(function(we){T.hideOutsideRangePoint(we,l.select(this),V,ne,ue,ge)})})}},T.crispRound=function(ce,ye,V){return ye&&f(ye)?ce._context.staticPlot?ye:ye<1?1:Math.round(ye):V||0},T.singleLineStyle=function(ce,ye,V,ne,fe){ye.style("fill","none");var xe=(((ce||[])[0]||{}).trace||{}).line||{},ue=V||xe.width||0,ge=fe||xe.dash||"";h.stroke(ye,ne||xe.color),T.dashLine(ye,ge,ue)},T.lineGroupStyle=function(ce,ye,V,ne){ce.style("fill","none").each(function(fe){var xe=(((fe||[])[0]||{}).trace||{}).line||{},ue=ye||xe.width||0,ge=ne||xe.dash||"";l.select(this).call(h.stroke,V||xe.color).call(T.dashLine,ge,ue)})},T.dashLine=function(ce,ye,V){V=+V||0,ye=T.dashStyle(ye,V),ce.style({"stroke-dasharray":ye,"stroke-width":V+"px"})},T.dashStyle=function(ce,ye){ye=+ye||1;var V=Math.max(ye,3);return ce==="solid"?ce="":ce==="dot"?ce=V+"px,"+V+"px":ce==="dash"?ce=3*V+"px,"+3*V+"px":ce==="longdash"?ce=5*V+"px,"+5*V+"px":ce==="dashdot"?ce=3*V+"px,"+V+"px,"+V+"px,"+V+"px":ce==="longdashdot"&&(ce=5*V+"px,"+2*V+"px,"+V+"px,"+2*V+"px"),ce},T.singleFillStyle=function(ce,ye){var V=l.select(ce.node());S(ce,((V.data()[0]||[])[0]||{}).trace||{},ye)},T.fillGroupStyle=function(ce,ye){ce.style("stroke-width",0).each(function(V){var ne=l.select(this);V[0].trace&&S(ne,V[0].trace,ye)})};var M=n(90998);T.symbolNames=[],T.symbolFuncs=[],T.symbolBackOffs=[],T.symbolNeedLines={},T.symbolNoDot={},T.symbolNoFill={},T.symbolList=[],Object.keys(M).forEach(function(ce){var ye=M[ce],V=ye.n;T.symbolList.push(V,String(V),ce,V+100,String(V+100),ce+"-open"),T.symbolNames[V]=ce,T.symbolFuncs[V]=ye.f,T.symbolBackOffs[V]=ye.backoff||0,ye.needLine&&(T.symbolNeedLines[V]=!0),ye.noDot?T.symbolNoDot[V]=!0:T.symbolList.push(V+200,String(V+200),ce+"-dot",V+300,String(V+300),ce+"-open-dot"),ye.noFill&&(T.symbolNoFill[V]=!0)});var C=T.symbolNames.length;function A(ce,ye,V,ne){var fe=ce%100;return T.symbolFuncs[fe](ye,V,ne)+(ce>=200?"M0,0.5L0.5,0L0,-0.5L-0.5,0Z":"")}T.symbolNumber=function(ce){if(f(ce))ce=+ce;else if(typeof ce=="string"){var ye=0;ce.indexOf("-open")>0&&(ye=100,ce=ce.replace("-open","")),ce.indexOf("-dot")>0&&(ye+=200,ce=ce.replace("-dot","")),(ce=T.symbolNames.indexOf(ce))>=0&&(ce+=ye)}return ce%100>=C||ce>=400?0:Math.floor(Math.max(ce,0))};var D={x1:1,x2:0,y1:0,y2:0},O={x1:0,x2:0,y1:1,y2:0},R=u("~f"),$={radial:{node:"radialGradient"},radialreversed:{node:"radialGradient",reversed:!0},horizontal:{node:"linearGradient",attrs:D},horizontalreversed:{node:"linearGradient",attrs:D,reversed:!0},vertical:{node:"linearGradient",attrs:O},verticalreversed:{node:"linearGradient",attrs:O,reversed:!0}};T.gradient=function(ce,ye,V,ne,fe,xe){for(var ue=fe.length,ge=$[ne],be=new Array(ue),we=0;we=0&&ce.i===void 0&&(ce.i=xe.i),ye.style("opacity",ne.selectedOpacityFn?ne.selectedOpacityFn(ce):ce.mo===void 0?ue.opacity:ce.mo),ne.ms2mrc){var be;be=ce.ms==="various"||ue.size==="various"?3:ne.ms2mrc(ce.ms),ce.mrc=be,ne.selectedSizeFn&&(be=ce.mrc=ne.selectedSizeFn(ce));var we=T.symbolNumber(ce.mx||ue.symbol)||0;ce.om=we%200>=100;var ke=Se(ce,V),Pe=G(ce,V);ye.attr("d",A(we,be,ke,Pe))}var Re,De,Le,Fe=!1;if(ce.so)Le=ge.outlierwidth,De=ge.outliercolor,Re=ue.outliercolor;else{var Be=(ge||{}).width;Le=(ce.mlw+1||Be+1||(ce.trace?(ce.trace.marker.line||{}).width:0)+1)-1||0,De="mlc"in ce?ce.mlcc=ne.lineScale(ce.mlc):c.isArrayOrTypedArray(ge.color)?h.defaultLine:ge.color,c.isArrayOrTypedArray(ue.color)&&(Re=h.defaultLine,Fe=!0),Re="mc"in ce?ce.mcc=ne.markerScale(ce.mc):ue.color||ue.colors||"rgba(0,0,0,0)",ne.selectedColorFn&&(Re=ne.selectedColorFn(ce))}if(ce.om)ye.call(h.stroke,Re).style({"stroke-width":(Le||1)+"px",fill:"none"});else{ye.style("stroke-width",(ce.isBlank?0:Le)+"px");var Ue=ue.gradient,qe=ce.mgt;qe?Fe=!0:qe=Ue&&Ue.type,c.isArrayOrTypedArray(qe)&&(qe=qe[0],$[qe]||(qe=0));var Ye=ue.pattern,at=Ye&&T.getPatternAttr(Ye.shape,ce.i,"");if(qe&&qe!=="none"){var st=ce.mgc;st?Fe=!0:st=Ue.color;var ft=V.uid;Fe&&(ft+="-"+ce.i),T.gradient(ye,fe,ft,qe,[[0,st],[1,Re]],"fill")}else if(at){var yt=!1,ze=Ye.fgcolor;!ze&&xe&&xe.color&&(ze=xe.color,yt=!0);var Ne=T.getPatternAttr(ze,ce.i,xe&&xe.color||null),et=T.getPatternAttr(Ye.bgcolor,ce.i,null),it=Ye.fgopacity,St=T.getPatternAttr(Ye.size,ce.i,8),Ze=T.getPatternAttr(Ye.solidity,ce.i,.3);yt=yt||ce.mcc||c.isArrayOrTypedArray(Ye.shape)||c.isArrayOrTypedArray(Ye.bgcolor)||c.isArrayOrTypedArray(Ye.fgcolor)||c.isArrayOrTypedArray(Ye.size)||c.isArrayOrTypedArray(Ye.solidity);var ut=V.uid;yt&&(ut+="-"+ce.i),T.pattern(ye,"point",fe,ut,at,St,Ze,ce.mcc,Ye.fillmode,et,Ne,it)}else c.isArrayOrTypedArray(Re)?h.fill(ye,Re[ce.i]):h.fill(ye,Re);Le&&h.stroke(ye,De)}},T.makePointStyleFns=function(ce){var ye={},V=ce.marker;return ye.markerScale=T.tryColorscale(V,""),ye.lineScale=T.tryColorscale(V,"line"),p.traceIs(ce,"symbols")&&(ye.ms2mrc=_.isBubble(ce)?x(ce):function(){return(V.size||6)/2}),ce.selectedpoints&&c.extendFlat(ye,T.makeSelectedPointStyleFns(ce)),ye},T.makeSelectedPointStyleFns=function(ce){var ye={},V=ce.selected||{},ne=ce.unselected||{},fe=ce.marker||{},xe=V.marker||{},ue=ne.marker||{},ge=fe.opacity,be=xe.opacity,we=ue.opacity,ke=be!==void 0,Pe=we!==void 0;(c.isArrayOrTypedArray(ge)||ke||Pe)&&(ye.selectedOpacityFn=function(at){var st=at.mo===void 0?fe.opacity:at.mo;return at.selected?ke?be:st:Pe?we:w*st});var Re=fe.color,De=xe.color,Le=ue.color;(De||Le)&&(ye.selectedColorFn=function(at){var st=at.mcc||Re;return at.selected?De||st:Le||st});var Fe=fe.size,Be=xe.size,Ue=ue.size,qe=Be!==void 0,Ye=Ue!==void 0;return p.traceIs(ce,"symbols")&&(qe||Ye)&&(ye.selectedSizeFn=function(at){var st=at.mrc||Fe/2;return at.selected?qe?Be/2:st:Ye?Ue/2:st}),ye},T.makeSelectedTextStyleFns=function(ce){var ye={},V=ce.selected||{},ne=ce.unselected||{},fe=ce.textfont||{},xe=V.textfont||{},ue=ne.textfont||{},ge=fe.color,be=xe.color,we=ue.color;return ye.selectedTextColorFn=function(ke){var Pe=ke.tc||ge;return ke.selected?be||Pe:we||(be?Pe:h.addOpacity(Pe,w))},ye},T.selectedPointStyle=function(ce,ye){if(ce.size()&&ye.selectedpoints){var V=T.makeSelectedPointStyleFns(ye),ne=ye.marker||{},fe=[];V.selectedOpacityFn&&fe.push(function(xe,ue){xe.style("opacity",V.selectedOpacityFn(ue))}),V.selectedColorFn&&fe.push(function(xe,ue){h.fill(xe,V.selectedColorFn(ue))}),V.selectedSizeFn&&fe.push(function(xe,ue){var ge=ue.mx||ne.symbol||0,be=V.selectedSizeFn(ue);xe.attr("d",A(T.symbolNumber(ge),be,Se(ue,ye),G(ue,ye))),ue.mrc2=be}),fe.length&&ce.each(function(xe){for(var ue=l.select(this),ge=0;ge0?V:0}function F(ce,ye,V){return V&&(ce=U(ce)),ye?W(ce[1]):E(ce[0])}function E(ce){var ye=l.round(ce,2);return P=ye,ye}function W(ce){var ye=l.round(ce,2);return z=ye,ye}function H(ce,ye,V,ne){var fe=ce[0]-ye[0],xe=ce[1]-ye[1],ue=V[0]-ye[0],ge=V[1]-ye[1],be=Math.pow(fe*fe+xe*xe,.25),we=Math.pow(ue*ue+ge*ge,.25),ke=(we*we*fe-be*be*ue)*ne,Pe=(we*we*xe-be*be*ge)*ne,Re=3*we*(be+we),De=3*be*(be+we);return[[E(ye[0]+(Re&&ke/Re)),W(ye[1]+(Re&&Pe/Re))],[E(ye[0]-(De&&ke/De)),W(ye[1]-(De&&Pe/De))]]}T.textPointStyle=function(ce,ye,V){if(ce.size()){var ne;if(ye.selectedpoints){var fe=T.makeSelectedTextStyleFns(ye);ne=fe.selectedTextColorFn}var xe=ye.texttemplate,ue=V._fullLayout;ce.each(function(ge){var be=l.select(this),we=xe?c.extractOption(ge,ye,"txt","texttemplate"):c.extractOption(ge,ye,"tx","text");if(we||we===0){if(xe){var ke=ye._module.formatLabels,Pe=ke?ke(ge,ye,ue):{},Re={};k(Re,ye,ge.i);var De=ye._meta||{};we=c.texttemplateString(we,Pe,ue._d3locale,Re,ge,De)}var Le=ge.tp||ye.textposition,Fe=j(ge,ye),Be=ne?ne(ge):ge.tc||ye.textfont.color;be.call(T.font,ge.tf||ye.textfont.family,Fe,Be).text(we).call(v.convertToTspans,V).call(N,Le,Fe,ge.mrc)}else be.remove()})}},T.selectedTextStyle=function(ce,ye){if(ce.size()&&ye.selectedpoints){var V=T.makeSelectedTextStyleFns(ye);ce.each(function(ne){var fe=l.select(this),xe=V.selectedTextColorFn(ne),ue=ne.tp||ye.textposition,ge=j(ne,ye);h.fill(fe,xe);var be=p.traceIs(ye,"bar-like");N(fe,ue,ge,ne.mrc2||ne.mrc,be)})}},T.smoothopen=function(ce,ye){if(ce.length<3)return"M"+ce.join("L");var V,ne="M"+ce[0],fe=[];for(V=1;V=be||at>=ke&&at<=be)&&(st<=Pe&&st>=we||st>=Pe&&st<=we)&&(ce=[at,st])}return ce}T.steps=function(ce){var ye=L[ce]||q;return function(V){for(var ne="M"+E(V[0][0])+","+W(V[0][1]),fe=V.length,xe=1;xe=1e4&&(T.savedBBoxes={},J=0),V&&(T.savedBBoxes[V]=De),J++,c.extendFlat({},De)},T.setClipUrl=function(ce,ye,V){ce.attr("clip-path",ee(ye,V))},T.getTranslate=function(ce){var ye=(ce[ce.attr?"attr":"getAttribute"]("transform")||"").replace(/.*\btranslate\((-?\d*\.?\d*)[^-\d]*(-?\d*\.?\d*)[^\d].*/,function(V,ne,fe){return[ne,fe].join(" ")}).split(" ");return{x:+ye[0]||0,y:+ye[1]||0}},T.setTranslate=function(ce,ye,V){var ne=ce.attr?"attr":"getAttribute",fe=ce.attr?"attr":"setAttribute",xe=ce[ne]("transform")||"";return ye=ye||0,V=V||0,xe=xe.replace(/(\btranslate\(.*?\);?)/,"").trim(),xe=(xe+=y(ye,V)).trim(),ce[fe]("transform",xe),xe},T.getScale=function(ce){var ye=(ce[ce.attr?"attr":"getAttribute"]("transform")||"").replace(/.*\bscale\((\d*\.?\d*)[^\d]*(\d*\.?\d*)[^\d].*/,function(V,ne,fe){return[ne,fe].join(" ")}).split(" ");return{x:+ye[0]||1,y:+ye[1]||1}},T.setScale=function(ce,ye,V){var ne=ce.attr?"attr":"getAttribute",fe=ce.attr?"attr":"setAttribute",xe=ce[ne]("transform")||"";return ye=ye||1,V=V||1,xe=xe.replace(/(\bscale\(.*?\);?)/,"").trim(),xe=(xe+="scale("+ye+","+V+")").trim(),ce[fe]("transform",xe),xe};var K=/\s*sc.*/;T.setPointGroupScale=function(ce,ye,V){if(ye=ye||1,V=V||1,ce){var ne=ye===1&&V===1?"":"scale("+ye+","+V+")";ce.each(function(){var fe=(this.getAttribute("transform")||"").replace(K,"");fe=(fe+=ne).trim(),this.setAttribute("transform",fe)})}};var Q=/translate\([^)]*\)\s*$/;function G(ce,ye){var V;return ce&&(V=ce.mf),V===void 0&&(V=ye.marker&&ye.marker.standoff||0),ye._geo||ye._xA?V:-V}T.setTextPointsScale=function(ce,ye,V){ce&&ce.each(function(){var ne,fe=l.select(this),xe=fe.select("text");if(xe.node()){var ue=parseFloat(xe.attr("x")||0),ge=parseFloat(xe.attr("y")||0),be=(fe.attr("transform")||"").match(Q);ne=ye===1&&V===1?[]:[y(ue,ge),"scale("+ye+","+V+")",y(-ue,-ge)],be&&ne.push(be),fe.attr("transform",ne.join(""))}})},T.getMarkerStandoff=G;var X,Y,re,ie,le,se,he=Math.atan2,_e=Math.cos,Me=Math.sin;function Ce(ce,ye){var V=ye[0],ne=ye[1];return[V*_e(ce)-ne*Me(ce),V*Me(ce)+ne*_e(ce)]}function Se(ce,ye){var V,ne,fe=ce.ma;fe===void 0&&(fe=ye.marker.angle||0);var xe=ye.marker.angleref;if(xe==="previous"||xe==="north"){if(ye._geo){var ue=ye._geo.project(ce.lonlat);V=ue[0],ne=ue[1]}else{var ge=ye._xA,be=ye._yA;if(!ge||!be)return 90;V=ge.c2p(ce.x),ne=be.c2p(ce.y)}if(ye._geo){var we,ke=ce.lonlat[0],Pe=ce.lonlat[1],Re=ye._geo.project([ke,Pe+1e-5]),De=ye._geo.project([ke+1e-5,Pe]),Le=he(De[1]-ne,De[0]-V),Fe=he(Re[1]-ne,Re[0]-V);if(xe==="north")we=fe/180*Math.PI;else if(xe==="previous"){var Be=ke/180*Math.PI,Ue=Pe/180*Math.PI,qe=X/180*Math.PI,Ye=Y/180*Math.PI,at=qe-Be,st=_e(Ye)*Me(at),ft=Me(Ye)*_e(Ue)-_e(Ye)*Me(Ue)*_e(at);we=-he(st,ft)-Math.PI,X=ke,Y=Pe}var yt=Ce(Le,[_e(we),0]),ze=Ce(Fe,[Me(we),0]);fe=he(yt[1]+ze[1],yt[0]+ze[0])/Math.PI*180,xe!=="previous"||se===ye.uid&&ce.i===le+1||(fe=null)}if(xe==="previous"&&!ye._geo)if(se===ye.uid&&ce.i===le+1&&f(V)&&f(ne)){var Ne=V-re,et=ne-ie,it=ye.line&&ye.line.shape||"",St=it.slice(it.length-1);St==="h"&&(et=0),St==="v"&&(Ne=0),fe+=he(et,Ne)/Math.PI*180+90}else fe=null}return re=V,ie=ne,le=ce.i,se=ye.uid,fe}T.getMarkerAngle=Se},90998:function(o,a,n){var l,c,u,f,d=n(95616),p=n(39898).round,h="M0,0Z",m=Math.sqrt(2),y=Math.sqrt(3),v=Math.PI,g=Math.cos,b=Math.sin;function w(x){return x===null}function _(x,k,T){if(!(x&&x%360!=0||k))return T;if(u===x&&f===k&&l===T)return c;function S(F,E){var W=g(F),H=b(F),L=E[0],q=E[1]+(k||0);return[L*W-q*H,L*H+q*W]}u=x,f=k,l=T;for(var M=x/180*v,C=0,A=0,D=d(T),O="",R=0;R0,b=d._context.staticPlot;p.each(function(w){var _,x=w[0].trace,k=x.error_x||{},T=x.error_y||{};x.ids&&(_=function(A){return A.id});var S=f.hasMarkers(x)&&x.marker.maxdisplayed>0;T.visible||k.visible||(w=[]);var M=l.select(this).selectAll("g.errorbar").data(w,_);if(M.exit().remove(),w.length){k.visible||M.selectAll("path.xerror").remove(),T.visible||M.selectAll("path.yerror").remove(),M.style("opacity",1);var C=M.enter().append("g").classed("errorbar",!0);g&&C.style("opacity",0).transition().duration(m.duration).style("opacity",1),u.setClipUrl(M,h.layerClipId,d),M.each(function(A){var D=l.select(this),O=function(N,j,F){var E={x:j.c2p(N.x),y:F.c2p(N.y)};return N.yh!==void 0&&(E.yh=F.c2p(N.yh),E.ys=F.c2p(N.ys),c(E.ys)||(E.noYS=!0,E.ys=F.c2p(N.ys,!0))),N.xh!==void 0&&(E.xh=j.c2p(N.xh),E.xs=j.c2p(N.xs),c(E.xs)||(E.noXS=!0,E.xs=j.c2p(N.xs,!0))),E}(A,y,v);if(!S||A.vis){var R,$=D.select("path.yerror");if(T.visible&&c(O.x)&&c(O.yh)&&c(O.ys)){var P=T.width;R="M"+(O.x-P)+","+O.yh+"h"+2*P+"m-"+P+",0V"+O.ys,O.noYS||(R+="m-"+P+",0h"+2*P),$.size()?g&&($=$.transition().duration(m.duration).ease(m.easing)):$=D.append("path").style("vector-effect",b?"none":"non-scaling-stroke").classed("yerror",!0),$.attr("d",R)}else $.remove();var z=D.select("path.xerror");if(k.visible&&c(O.y)&&c(O.xh)&&c(O.xs)){var B=(k.copy_ystyle?T:k).width;R="M"+O.xh+","+(O.y-B)+"v"+2*B+"m0,-"+B+"H"+O.xs,O.noXS||(R+="m0,-"+B+"v"+2*B),z.size()?g&&(z=z.transition().duration(m.duration).ease(m.easing)):z=D.append("path").style("vector-effect",b?"none":"non-scaling-stroke").classed("xerror",!0),z.attr("d",R)}else z.remove()}})}})}},62662:function(o,a,n){var l=n(39898),c=n(7901);o.exports=function(u){u.each(function(f){var d=f[0].trace,p=d.error_y||{},h=d.error_x||{},m=l.select(this);m.selectAll("path.yerror").style("stroke-width",p.thickness+"px").call(c.stroke,p.color),h.copy_ystyle&&(h=p),m.selectAll("path.xerror").style("stroke-width",h.thickness+"px").call(c.stroke,h.color)})}},77914:function(o,a,n){var l=n(41940),c=n(528).hoverlabel,u=n(1426).extendFlat;o.exports={hoverlabel:{bgcolor:u({},c.bgcolor,{arrayOk:!0}),bordercolor:u({},c.bordercolor,{arrayOk:!0}),font:l({arrayOk:!0,editType:"none"}),align:u({},c.align,{arrayOk:!0}),namelength:u({},c.namelength,{arrayOk:!0}),editType:"none"}}},30732:function(o,a,n){var l=n(71828),c=n(73972);function u(f,d,p,h){h=h||l.identity,Array.isArray(f)&&(d[0][p]=h(f))}o.exports=function(f){var d=f.calcdata,p=f._fullLayout;function h(b){return function(w){return l.coerceHoverinfo({hoverinfo:w},{_module:b._module},p)}}for(var m=0;m=0&&y.indexfe[0]._length||gt<0||gt>xe[0]._length)return b.unhoverRaw(ie,le)}else ut="xpx"in le?le.xpx:fe[0]._length/2,gt="ypx"in le?le.ypx:xe[0]._length/2;if(le.pointerX=ut+fe[0]._offset,le.pointerY=gt+xe[0]._offset,De="xval"in le?x.flat(Me,le.xval):x.p2c(fe,ut),Le="yval"in le?x.flat(Me,le.yval):x.p2c(xe,gt),!c(De[0])||!c(Le[0]))return f.warn("Fx.hover failed",le,ie),b.unhoverRaw(ie,le)}var Bt=1/0;function Tt(en,dn){for(Be=0;BeNe&&(et.splice(0,Ne),Bt=et[0].distance),ye&&Re!==0&&et.length===0){ze.distance=Re,ze.index=!1;var In=qe._module.hoverPoints(ze,ft,yt,"closest",{hoverLayer:Ce._hoverlayer});if(In&&(In=In.filter(function(pa){return pa.spikeDistance<=Re})),In&&In.length){var kn,zn=In.filter(function(pa){return pa.xa.showspikes&&pa.xa.spikesnap!=="hovered data"});if(zn.length){var vr=zn[0];c(vr.x0)&&c(vr.y0)&&(kn=Te(vr),(!St.vLinePoint||St.vLinePoint.spikeDistance>kn.spikeDistance)&&(St.vLinePoint=kn))}var da=In.filter(function(pa){return pa.ya.showspikes&&pa.ya.spikesnap!=="hovered data"});if(da.length){var kr=da[0];c(kr.x0)&&c(kr.y0)&&(kn=Te(kr),(!St.hLinePoint||St.hLinePoint.spikeDistance>kn.spikeDistance)&&(St.hLinePoint=kn))}}}}}function ve(en,dn,Kt){for(var Mn,Tn=null,Bn=1/0,In=0;In0&&Math.abs(en.distance)Yt-1;Ct--)vt(et[Ct]);et=jt,Xe()}var wt=ie._hoverdata,qt=[],Lt=te(ie),Gt=ee(ie);for(Fe=0;Fe1||et.length>1)||ke==="closest"&&Ze&&et.length>1,un=g.combine(Ce.plot_bgcolor||g.background,Ce.paper_bgcolor),on=j(et,{gd:ie,hovermode:ke,rotateLabels:fn,bgColor:un,container:Ce._hoverlayer,outerContainer:Ce._paper.node(),commonLabelOpts:Ce.hoverlabel,hoverdistance:Ce.hoverdistance}),sn=on.hoverLabels;if(x.isUnifiedHover(ke)||(function(en,dn,Kt,Mn){var Tn,Bn,In,kn,zn,vr,da,kr=dn?"xa":"ya",pa=dn?"ya":"xa",Ir=0,hr=1,ha=en.size(),Dr=new Array(ha),An=0,ln=Mn.minX,Vn=Mn.maxX,$r=Mn.minY,Fn=Mn.maxY,Yn=function(En){return En*Kt._invScaleX},jn=function(En){return En*Kt._invScaleY};function gr(En){var ia=En[0],ya=En[En.length-1];if(Bn=ia.pmin-ia.pos-ia.dp+ia.size,In=ya.pos+ya.dp+ya.size-ia.pmax,Bn>.01){for(zn=En.length-1;zn>=0;zn--)En[zn].dp+=Bn;Tn=!1}if(!(In<.01)){if(Bn<-.01){for(zn=En.length-1;zn>=0;zn--)En[zn].dp-=In;Tn=!1}if(Tn){var Xr=0;for(kn=0;knia.pmax&&Xr++;for(kn=En.length-1;kn>=0&&!(Xr<=0);kn--)(vr=En[kn]).pos>ia.pmax-1&&(vr.del=!0,Xr--);for(kn=0;kn=0;zn--)En[zn].dp-=In;for(kn=En.length-1;kn>=0&&!(Xr<=0);kn--)(vr=En[kn]).pos+vr.dp+vr.size>ia.pmax&&(vr.del=!0,Xr--)}}}for(en.each(function(En){var ia=En[kr],ya=En[pa],Xr=ia._id.charAt(0)==="x",Vi=ia.range;An===0&&Vi&&Vi[0]>Vi[1]!==Xr&&(hr=-1);var mo=0,di=Xr?Kt.width:Kt.height;if(Kt.hovermode==="x"||Kt.hovermode==="y"){var ri,ai,fl=E(En,dn),dl=En.anchor,Fc=dl==="end"?-1:1;if(dl==="middle")ai=(ri=En.crossPos+(Xr?jn(fl.y-En.by/2):Yn(En.bx/2+En.tx2width/2)))+(Xr?jn(En.by):Yn(En.bx));else if(Xr)ai=(ri=En.crossPos+jn(R+fl.y)-jn(En.by/2-R))+jn(En.by);else{var Gi=Yn(Fc*R+fl.x),jc=Gi+Yn(Fc*En.bx);ri=En.crossPos+Math.min(Gi,jc),ai=En.crossPos+Math.max(Gi,jc)}Xr?$r!==void 0&&Fn!==void 0&&Math.min(ai,Fn)-Math.max(ri,$r)>1&&(ya.side==="left"?(mo=ya._mainLinePosition,di=Kt.width):di=ya._mainLinePosition):ln!==void 0&&Vn!==void 0&&Math.min(ai,Vn)-Math.max(ri,ln)>1&&(ya.side==="top"?(mo=ya._mainLinePosition,di=Kt.height):di=ya._mainLinePosition)}Dr[An++]=[{datum:En,traceIndex:En.trace.index,dp:0,pos:En.pos,posref:En.posref,size:En.by*(Xr?A:1)/2,pmin:mo,pmax:di}]}),Dr.sort(function(En,ia){return En[0].posref-ia[0].posref||hr*(ia[0].traceIndex-En[0].traceIndex)});!Tn&&Ir<=ha;){for(Ir++,Tn=!0,kn=0;kn.01&&Rr.pmin===_a.pmin&&Rr.pmax===_a.pmax){for(zn=Er.length-1;zn>=0;zn--)Er[zn].dp+=Bn;for(yr.push.apply(yr,Er),Dr.splice(kn+1,1),da=0,zn=yr.length-1;zn>=0;zn--)da+=yr[zn].dp;for(In=da/yr.length,zn=yr.length-1;zn>=0;zn--)yr[zn].dp-=In;Tn=!1}else kn++}Dr.forEach(gr)}for(kn=Dr.length-1;kn>=0;kn--){var $a=Dr[kn];for(zn=$a.length-1;zn>=0;zn--){var ra=$a[zn],aa=ra.datum;aa.offset=ra.dp,aa.del=ra.del}}}(sn,fn,Ce,on.commonLabelBoundingBox),W(sn,fn,Ce._invScaleX,Ce._invScaleY)),_e&&_e.tagName){var Sn=_.getComponentMethod("annotations","hasClickToShow")(ie,qt);y(l.select(_e),Sn?"pointer":"")}_e&&!he&&function(en,dn,Kt){if(!Kt||Kt.length!==en._hoverdata.length)return!0;for(var Mn=Kt.length-1;Mn>=0;Mn--){var Tn=Kt[Mn],Bn=en._hoverdata[Mn];if(Tn.curveNumber!==Bn.curveNumber||String(Tn.pointNumber)!==String(Bn.pointNumber)||String(Tn.pointNumbers)!==String(Bn.pointNumbers))return!0}return!1}(ie,0,wt)&&(wt&&ie.emit("plotly_unhover",{event:le,points:wt}),ie.emit("plotly_hover",{event:le,points:ie._hoverdata,xaxes:fe,yaxes:xe,xvals:De,yvals:Le}))})(Q,G,X,Y,re)})},a.loneHover=function(Q,G){var X=!0;Array.isArray(Q)||(X=!1,Q=[Q]);var Y=G.gd,re=te(Y),ie=ee(Y),le=j(Q.map(function(_e){var Me=_e._x0||_e.x0||_e.x||0,Ce=_e._x1||_e.x1||_e.x||0,Se=_e._y0||_e.y0||_e.y||0,ce=_e._y1||_e.y1||_e.y||0,ye=_e.eventData;if(ye){var V=Math.min(Me,Ce),ne=Math.max(Me,Ce),fe=Math.min(Se,ce),xe=Math.max(Se,ce),ue=_e.trace;if(_.traceIs(ue,"gl3d")){var ge=Y._fullLayout[ue.scene]._scene.container,be=ge.offsetLeft,we=ge.offsetTop;V+=be,ne+=be,fe+=we,xe+=we}ye.bbox={x0:V+ie,x1:ne+ie,y0:fe+re,y1:xe+re},G.inOut_bbox&&G.inOut_bbox.push(ye.bbox)}else ye=!1;return{color:_e.color||g.defaultLine,x0:_e.x0||_e.x||0,x1:_e.x1||_e.x||0,y0:_e.y0||_e.y||0,y1:_e.y1||_e.y||0,xLabel:_e.xLabel,yLabel:_e.yLabel,zLabel:_e.zLabel,text:_e.text,name:_e.name,idealAlign:_e.idealAlign,borderColor:_e.borderColor,fontFamily:_e.fontFamily,fontSize:_e.fontSize,fontColor:_e.fontColor,nameLength:_e.nameLength,textAlign:_e.textAlign,trace:_e.trace||{index:0,hoverinfo:""},xa:{_offset:0},ya:{_offset:0},index:0,hovertemplate:_e.hovertemplate||!1,hovertemplateLabels:_e.hovertemplateLabels||!1,eventData:ye}}),{gd:Y,hovermode:"closest",rotateLabels:!1,bgColor:G.bgColor||g.background,container:l.select(G.container),outerContainer:G.outerContainer||G.container}).hoverLabels,se=0,he=0;return le.sort(function(_e,Me){return _e.y0-Me.y0}).each(function(_e,Me){var Ce=_e.y0-_e.by/2;_e.offset=Ce-5([\s\S]*)<\/extra>/;function j(Q,G){var X=G.gd,Y=X._fullLayout,re=G.hovermode,ie=G.rotateLabels,le=G.bgColor,se=G.container,he=G.outerContainer,_e=G.commonLabelOpts||{};if(Q.length===0)return[[]];var Me=G.fontFamily||k.HOVERFONT,Ce=G.fontSize||k.HOVERFONTSIZE,Se=Q[0],ce=Se.xa,ye=Se.ya,V=re.charAt(0),ne=V+"Label",fe=Se[ne];if(fe===void 0&&ce.type==="multicategory")for(var xe=0;xeY.width-Gt?(vt=Y.width-Gt,It.attr("d","M"+(Gt-R)+",0L"+Gt+","+Lt+R+"v"+Lt+(2*$+qt.height)+"H-"+Gt+"V"+Lt+R+"H"+(Gt-2*R)+"Z")):It.attr("d","M0,0L"+R+","+Lt+R+"H"+Gt+"v"+Lt+(2*$+qt.height)+"H-"+Gt+"V"+Lt+R+"H-"+R+"Z"),Be.minX=vt-Gt,Be.maxX=vt+Gt,ce.side==="top"?(Be.minY=wt-(2*$+qt.height),Be.maxY=wt-$):(Be.minY=wt+$,Be.maxY=wt+(2*$+qt.height))}else{var ht,Pt,At;ye.side==="right"?(ht="start",Pt=1,At="",vt=ce._offset+ce._length):(ht="end",Pt=-1,At="-",vt=ce._offset),wt=ye._offset+(Se.y0+Se.y1)/2,Yt.attr("text-anchor",ht),It.attr("d","M0,0L"+At+R+","+R+"V"+($+qt.height/2)+"h"+At+(2*$+qt.width)+"V-"+($+qt.height/2)+"H"+At+R+"V-"+R+"Z"),Be.minY=wt-($+qt.height/2),Be.maxY=wt+($+qt.height/2),ye.side==="right"?(Be.minX=vt+R,Be.maxX=vt+R+(2*$+qt.width)):(Be.minX=vt-R-(2*$+qt.width),Be.maxX=vt-R);var Ft,$t=qt.height/2,Nt=ge-qt.top-$t,Vt="clip"+Y._uid+"commonlabel"+ye._id;if(vt=0?gt:Rt+Tt=0?Rt:Qe+Tt=0?Ze:ut+ve=0?ut:ct+ve=0,nt.idealAlign!=="top"&&an||!fn?an?($t+=Vt/2,nt.anchor="start"):nt.anchor="middle":($t-=Vt/2,nt.anchor="end"),nt.crossPos=$t;else{if(nt.pos=$t,an=Ft+Nt/2+un<=be,fn=Ft-Nt/2-un>=0,nt.idealAlign!=="left"&&an||!fn)if(an)Ft+=Nt/2,nt.anchor="start";else{nt.anchor="middle";var on=un/2,sn=Ft+on-be,Sn=Ft-on;sn>0&&(Ft-=sn),Sn<0&&(Ft+=-Sn)}else Ft-=Nt/2,nt.anchor="end";nt.crossPos=Ft}Lt.attr("text-anchor",nt.anchor),ht&&Gt.attr("text-anchor",nt.anchor),It.attr("transform",d(Ft,$t)+(ie?p(M):""))}),{hoverLabels:bt,commonLabelBoundingBox:Be}}function F(Q,G,X,Y,re,ie){var le="",se="";Q.nameOverride!==void 0&&(Q.name=Q.nameOverride),Q.name&&(Q.trace._meta&&(Q.name=f.templateString(Q.name,Q.trace._meta)),le=U(Q.name,Q.nameLength));var he=X.charAt(0),_e=he==="x"?"y":"x";Q.zLabel!==void 0?(Q.xLabel!==void 0&&(se+="x: "+Q.xLabel+"
"),Q.yLabel!==void 0&&(se+="y: "+Q.yLabel+"
"),Q.trace.type!=="choropleth"&&Q.trace.type!=="choroplethmapbox"&&(se+=(se?"z: ":"")+Q.zLabel)):G&&Q[he+"Label"]===re?se=Q[_e+"Label"]||"":Q.xLabel===void 0?Q.yLabel!==void 0&&Q.trace.type!=="scattercarpet"&&(se=Q.yLabel):se=Q.yLabel===void 0?Q.xLabel:"("+Q.xLabel+", "+Q.yLabel+")",!Q.text&&Q.text!==0||Array.isArray(Q.text)||(se+=(se?"
":"")+Q.text),Q.extraText!==void 0&&(se+=(se?"
":"")+Q.extraText),ie&&se===""&&!Q.hovertemplate&&(le===""&&ie.remove(),se=le);var Me=Q.hovertemplate||!1;if(Me){var Ce=Q.hovertemplateLabels||Q;Q[he+"Label"]!==re&&(Ce[he+"other"]=Ce[he+"Val"],Ce[he+"otherLabel"]=Ce[he+"Label"]),se=(se=f.hovertemplateString(Me,Ce,Y._d3locale,Q.eventData[0]||{},Q.trace._meta)).replace(N,function(Se,ce){return le=U(ce,Q.nameLength),""})}return[se,le]}function E(Q,G){var X=0,Y=Q.offset;return G&&(Y*=-O,X=Q.offset*D),{x:X,y:Y}}function W(Q,G,X,Y){var re=function(le){return le*X},ie=function(le){return le*Y};Q.each(function(le){var se=l.select(this);if(le.del)return se.remove();var he,_e,Me,Ce,Se=se.select("text.nums"),ce=le.anchor,ye=ce==="end"?-1:1,V=(Ce=(Me=(_e={start:1,end:-1,middle:0}[(he=le).anchor])*(R+$))+_e*(he.txwidth+$),he.anchor==="middle"&&(Me-=he.tx2width/2,Ce+=he.txwidth/2+$),{alignShift:_e,textShiftX:Me,text2ShiftX:Ce}),ne=E(le,G),fe=ne.x,xe=ne.y,ue=ce==="middle";se.select("path").attr("d",ue?"M-"+re(le.bx/2+le.tx2width/2)+","+ie(xe-le.by/2)+"h"+re(le.bx)+"v"+ie(le.by)+"h-"+re(le.bx)+"Z":"M0,0L"+re(ye*R+fe)+","+ie(R+xe)+"v"+ie(le.by/2-R)+"h"+re(ye*le.bx)+"v-"+ie(le.by)+"H"+re(ye*R+fe)+"V"+ie(xe-R)+"Z");var ge=fe+V.textShiftX,be=xe+le.ty0-le.by/2+$,we=le.textAlign||"auto";we!=="auto"&&(we==="left"&&ce!=="start"?(Se.attr("text-anchor","start"),ge=ue?-le.bx/2-le.tx2width/2+$:-le.bx-$):we==="right"&&ce!=="end"&&(Se.attr("text-anchor","end"),ge=ue?le.bx/2-le.tx2width/2-$:le.bx+$)),Se.call(m.positionText,re(ge),ie(be)),le.tx2width&&(se.select("text.name").call(m.positionText,re(V.text2ShiftX+V.alignShift*$+fe),ie(xe+le.ty0-le.by/2+$)),se.select("rect").call(v.setRect,re(V.text2ShiftX+(V.alignShift-1)*le.tx2width/2+fe),ie(xe-le.by/2-1),re(le.tx2width),ie(le.by+2)))})}function H(Q,G){var X=Q.index,Y=Q.trace||{},re=Q.cd[0],ie=Q.cd[X]||{};function le(Se){return Se||c(Se)&&Se===0}var se=Array.isArray(X)?function(Se,ce){var ye=f.castOption(re,X,Se);return le(ye)?ye:f.extractOption({},Y,"",ce)}:function(Se,ce){return f.extractOption(ie,Y,Se,ce)};function he(Se,ce,ye){var V=se(ce,ye);le(V)&&(Q[Se]=V)}if(he("hoverinfo","hi","hoverinfo"),he("bgcolor","hbg","hoverlabel.bgcolor"),he("borderColor","hbc","hoverlabel.bordercolor"),he("fontFamily","htf","hoverlabel.font.family"),he("fontSize","hts","hoverlabel.font.size"),he("fontColor","htc","hoverlabel.font.color"),he("nameLength","hnl","hoverlabel.namelength"),he("textAlign","hta","hoverlabel.align"),Q.posref=G==="y"||G==="closest"&&Y.orientation==="h"?Q.xa._offset+(Q.x0+Q.x1)/2:Q.ya._offset+(Q.y0+Q.y1)/2,Q.x0=f.constrain(Q.x0,0,Q.xa._length),Q.x1=f.constrain(Q.x1,0,Q.xa._length),Q.y0=f.constrain(Q.y0,0,Q.ya._length),Q.y1=f.constrain(Q.y1,0,Q.ya._length),Q.xLabelVal!==void 0&&(Q.xLabel="xLabel"in Q?Q.xLabel:w.hoverLabelText(Q.xa,Q.xLabelVal,Y.xhoverformat),Q.xVal=Q.xa.c2d(Q.xLabelVal)),Q.yLabelVal!==void 0&&(Q.yLabel="yLabel"in Q?Q.yLabel:w.hoverLabelText(Q.ya,Q.yLabelVal,Y.yhoverformat),Q.yVal=Q.ya.c2d(Q.yLabelVal)),Q.zLabelVal!==void 0&&Q.zLabel===void 0&&(Q.zLabel=String(Q.zLabelVal)),!(isNaN(Q.xerr)||Q.xa.type==="log"&&Q.xerr<=0)){var _e=w.tickText(Q.xa,Q.xa.c2l(Q.xerr),"hover").text;Q.xerrneg!==void 0?Q.xLabel+=" +"+_e+" / -"+w.tickText(Q.xa,Q.xa.c2l(Q.xerrneg),"hover").text:Q.xLabel+=" ± "+_e,G==="x"&&(Q.distance+=1)}if(!(isNaN(Q.yerr)||Q.ya.type==="log"&&Q.yerr<=0)){var Me=w.tickText(Q.ya,Q.ya.c2l(Q.yerr),"hover").text;Q.yerrneg!==void 0?Q.yLabel+=" +"+Me+" / -"+w.tickText(Q.ya,Q.ya.c2l(Q.yerrneg),"hover").text:Q.yLabel+=" ± "+Me,G==="y"&&(Q.distance+=1)}var Ce=Q.hoverinfo||Q.trace.hoverinfo;return Ce&&Ce!=="all"&&((Ce=Array.isArray(Ce)?Ce:Ce.split("+")).indexOf("x")===-1&&(Q.xLabel=void 0),Ce.indexOf("y")===-1&&(Q.yLabel=void 0),Ce.indexOf("z")===-1&&(Q.zLabel=void 0),Ce.indexOf("text")===-1&&(Q.text=void 0),Ce.indexOf("name")===-1&&(Q.name=void 0)),Q}function L(Q,G,X){var Y,re,ie=X.container,le=X.fullLayout,se=le._size,he=X.event,_e=!!G.hLinePoint,Me=!!G.vLinePoint;if(ie.selectAll(".spikeline").remove(),Me||_e){var Ce=g.combine(le.plot_bgcolor,le.paper_bgcolor);if(_e){var Se,ce,ye=G.hLinePoint;Y=ye&&ye.xa,(re=ye&&ye.ya).spikesnap==="cursor"?(Se=he.pointerX,ce=he.pointerY):(Se=Y._offset+ye.x,ce=re._offset+ye.y);var V,ne,fe=u.readability(ye.color,Ce)<1.5?g.contrast(Ce):ye.color,xe=re.spikemode,ue=re.spikethickness,ge=re.spikecolor||fe,be=w.getPxPosition(Q,re);if(xe.indexOf("toaxis")!==-1||xe.indexOf("across")!==-1){if(xe.indexOf("toaxis")!==-1&&(V=be,ne=Se),xe.indexOf("across")!==-1){var we=re._counterDomainMin,ke=re._counterDomainMax;re.anchor==="free"&&(we=Math.min(we,re.position),ke=Math.max(ke,re.position)),V=se.l+we*se.w,ne=se.l+ke*se.w}ie.insert("line",":first-child").attr({x1:V,x2:ne,y1:ce,y2:ce,"stroke-width":ue,stroke:ge,"stroke-dasharray":v.dashStyle(re.spikedash,ue)}).classed("spikeline",!0).classed("crisp",!0),ie.insert("line",":first-child").attr({x1:V,x2:ne,y1:ce,y2:ce,"stroke-width":ue+2,stroke:Ce}).classed("spikeline",!0).classed("crisp",!0)}xe.indexOf("marker")!==-1&&ie.insert("circle",":first-child").attr({cx:be+(re.side!=="right"?ue:-ue),cy:ce,r:ue,fill:ge}).classed("spikeline",!0)}if(Me){var Pe,Re,De=G.vLinePoint;Y=De&&De.xa,re=De&&De.ya,Y.spikesnap==="cursor"?(Pe=he.pointerX,Re=he.pointerY):(Pe=Y._offset+De.x,Re=re._offset+De.y);var Le,Fe,Be=u.readability(De.color,Ce)<1.5?g.contrast(Ce):De.color,Ue=Y.spikemode,qe=Y.spikethickness,Ye=Y.spikecolor||Be,at=w.getPxPosition(Q,Y);if(Ue.indexOf("toaxis")!==-1||Ue.indexOf("across")!==-1){if(Ue.indexOf("toaxis")!==-1&&(Le=at,Fe=Re),Ue.indexOf("across")!==-1){var st=Y._counterDomainMin,ft=Y._counterDomainMax;Y.anchor==="free"&&(st=Math.min(st,Y.position),ft=Math.max(ft,Y.position)),Le=se.t+(1-ft)*se.h,Fe=se.t+(1-st)*se.h}ie.insert("line",":first-child").attr({x1:Pe,x2:Pe,y1:Le,y2:Fe,"stroke-width":qe,stroke:Ye,"stroke-dasharray":v.dashStyle(Y.spikedash,qe)}).classed("spikeline",!0).classed("crisp",!0),ie.insert("line",":first-child").attr({x1:Pe,x2:Pe,y1:Le,y2:Fe,"stroke-width":qe+2,stroke:Ce}).classed("spikeline",!0).classed("crisp",!0)}Ue.indexOf("marker")!==-1&&ie.insert("circle",":first-child").attr({cx:Pe,cy:at-(Y.side!=="top"?qe:-qe),r:qe,fill:Ye}).classed("spikeline",!0)}}}function q(Q,G){return!G||G.vLinePoint!==Q._spikepoints.vLinePoint||G.hLinePoint!==Q._spikepoints.hLinePoint}function U(Q,G){return m.plainText(Q||"",{len:G,allowedTags:["br","sub","sup","b","i","em"]})}function J(Q,G,X){var Y=G[Q+"a"],re=G[Q+"Val"],ie=G.cd[0];if(Y.type==="category"||Y.type==="multicategory")re=Y._categoriesMap[re];else if(Y.type==="date"){var le=G.trace[Q+"periodalignment"];if(le){var se=G.cd[G.index],he=se[Q+"Start"];he===void 0&&(he=se[Q]);var _e=se[Q+"End"];_e===void 0&&(_e=se[Q]);var Me=_e-he;le==="end"?re+=Me:le==="middle"&&(re+=Me/2)}re=Y.d2c(re)}return ie&&ie.t&&ie.t.posLetter===Y._id&&(X.boxmode!=="group"&&X.violinmode!=="group"||(re+=ie.t.dPos)),re}function te(Q){return Q.offsetTop+Q.clientTop}function ee(Q){return Q.offsetLeft+Q.clientLeft}function K(Q,G){var X=Q._fullLayout,Y=G.getBoundingClientRect(),re=Y.left,ie=Y.top,le=re+Y.width,se=ie+Y.height,he=f.apply3DTransform(X._invTransform)(re,ie),_e=f.apply3DTransform(X._invTransform)(le,se),Me=he[0],Ce=he[1],Se=_e[0],ce=_e[1];return{x:Me,y:Ce,width:Se-Me,height:ce-Ce,top:Math.min(Ce,ce),left:Math.min(Me,Se),right:Math.max(Me,Se),bottom:Math.max(Ce,ce)}}},38048:function(o,a,n){var l=n(71828),c=n(7901),u=n(23469).isUnifiedHover;o.exports=function(f,d,p,h){h=h||{};var m=d.legend;function y(v){h.font[v]||(h.font[v]=m?d.legend.font[v]:d.font[v])}d&&u(d.hovermode)&&(h.font||(h.font={}),y("size"),y("family"),y("color"),m?(h.bgcolor||(h.bgcolor=c.combine(d.legend.bgcolor,d.paper_bgcolor)),h.bordercolor||(h.bordercolor=d.legend.bordercolor)):h.bgcolor||(h.bgcolor=d.paper_bgcolor)),p("hoverlabel.bgcolor",h.bgcolor),p("hoverlabel.bordercolor",h.bordercolor),p("hoverlabel.namelength",h.namelength),l.coerceFont(p,"hoverlabel.font",h.font),p("hoverlabel.align",h.align)}},98212:function(o,a,n){var l=n(71828),c=n(528);o.exports=function(u,f){function d(p,h){return f[p]!==void 0?f[p]:l.coerce(u,f,c,p,h)}return d("clickmode"),d("hovermode")}},30211:function(o,a,n){var l=n(39898),c=n(71828),u=n(28569),f=n(23469),d=n(528),p=n(88335);o.exports={moduleType:"component",name:"fx",constants:n(26675),schema:{layout:d},attributes:n(77914),layoutAttributes:d,supplyLayoutGlobalDefaults:n(22774),supplyDefaults:n(54268),supplyLayoutDefaults:n(34938),calc:n(30732),getDistanceFunction:f.getDistanceFunction,getClosest:f.getClosest,inbox:f.inbox,quadrature:f.quadrature,appendArrayPointValue:f.appendArrayPointValue,castHoverOption:function(h,m,y){return c.castOption(h,m,"hoverlabel."+y)},castHoverinfo:function(h,m,y){return c.castOption(h,y,"hoverinfo",function(v){return c.coerceHoverinfo({hoverinfo:v},{_module:h._module},m)})},hover:p.hover,unhover:u.unhover,loneHover:p.loneHover,loneUnhover:function(h){var m=c.isD3Selection(h)?h:l.select(h);m.selectAll("g.hovertext").remove(),m.selectAll(".spikeline").remove()},click:n(75914)}},528:function(o,a,n){var l=n(26675),c=n(41940),u=c({editType:"none"});u.family.dflt=l.HOVERFONT,u.size.dflt=l.HOVERFONTSIZE,o.exports={clickmode:{valType:"flaglist",flags:["event","select"],dflt:"event",editType:"plot",extras:["none"]},dragmode:{valType:"enumerated",values:["zoom","pan","select","lasso","drawclosedpath","drawopenpath","drawline","drawrect","drawcircle","orbit","turntable",!1],dflt:"zoom",editType:"modebar"},hovermode:{valType:"enumerated",values:["x","y","closest",!1,"x unified","y unified"],dflt:"closest",editType:"modebar"},hoverdistance:{valType:"integer",min:-1,dflt:20,editType:"none"},spikedistance:{valType:"integer",min:-1,dflt:-1,editType:"none"},hoverlabel:{bgcolor:{valType:"color",editType:"none"},bordercolor:{valType:"color",editType:"none"},font:u,grouptitlefont:c({editType:"none"}),align:{valType:"enumerated",values:["left","right","auto"],dflt:"auto",editType:"none"},namelength:{valType:"integer",min:-1,dflt:15,editType:"none"},editType:"none"},selectdirection:{valType:"enumerated",values:["h","v","d","any"],dflt:"any",editType:"none"}}},34938:function(o,a,n){var l=n(71828),c=n(528),u=n(98212),f=n(38048);o.exports=function(d,p){function h(g,b){return l.coerce(d,p,c,g,b)}u(d,p)&&(h("hoverdistance"),h("spikedistance")),h("dragmode")==="select"&&h("selectdirection");var m=p._has("mapbox"),y=p._has("geo"),v=p._basePlotModules.length;p.dragmode==="zoom"&&((m||y)&&v===1||m&&y&&v===2)&&(p.dragmode="pan"),f(d,p,h),l.coerceFont(h,"hoverlabel.grouptitlefont",p.hoverlabel.font)}},22774:function(o,a,n){var l=n(71828),c=n(38048),u=n(528);o.exports=function(f,d){c(f,d,function(p,h){return l.coerce(f,d,u,p,h)})}},83312:function(o,a,n){var l=n(71828),c=n(30587).counter,u=n(27670).Y,f=n(85555).idRegex,d=n(44467),p={rows:{valType:"integer",min:1,editType:"plot"},roworder:{valType:"enumerated",values:["top to bottom","bottom to top"],dflt:"top to bottom",editType:"plot"},columns:{valType:"integer",min:1,editType:"plot"},subplots:{valType:"info_array",freeLength:!0,dimensions:2,items:{valType:"enumerated",values:[c("xy").toString(),""],editType:"plot"},editType:"plot"},xaxes:{valType:"info_array",freeLength:!0,items:{valType:"enumerated",values:[f.x.toString(),""],editType:"plot"},editType:"plot"},yaxes:{valType:"info_array",freeLength:!0,items:{valType:"enumerated",values:[f.y.toString(),""],editType:"plot"},editType:"plot"},pattern:{valType:"enumerated",values:["independent","coupled"],dflt:"coupled",editType:"plot"},xgap:{valType:"number",min:0,max:1,editType:"plot"},ygap:{valType:"number",min:0,max:1,editType:"plot"},domain:u({name:"grid",editType:"plot",noGridCell:!0},{}),xside:{valType:"enumerated",values:["bottom","bottom plot","top plot","top"],dflt:"bottom plot",editType:"plot"},yside:{valType:"enumerated",values:["left","left plot","right plot","right"],dflt:"left plot",editType:"plot"},editType:"plot"};function h(v,g,b){var w=g[b+"axes"],_=Object.keys((v._splomAxes||{})[b]||{});return Array.isArray(w)?w:_.length?_:void 0}function m(v,g,b,w,_,x){var k=g(v+"gap",b),T=g("domain."+v);g(v+"side",w);for(var S=new Array(_),M=T[0],C=(T[1]-M)/(_-k),A=C*(1-k),D=0;D<_;D++){var O=M+C*D;S[x?_-1-D:D]=[O,O+A]}return S}function y(v,g,b,w,_){var x,k=new Array(b);function T(S,M){g.indexOf(M)!==-1&&w[M]===void 0?(k[S]=M,w[M]=S):k[S]=""}if(Array.isArray(v))for(x=0;x1){T||S||M||N("pattern")==="independent"&&(T=!0),A._hasSubplotGrid=T;var R,$,P=N("roworder")==="top to bottom",z=T?.2:.1,B=T?.3:.1;C&&g._splomGridDflt&&(R=g._splomGridDflt.xside,$=g._splomGridDflt.yside),A._domains={x:m("x",N,z,R,O),y:m("y",N,B,$,D,P)}}else delete g.grid}function N(j,F){return l.coerce(b,A,p,j,F)}},contentDefaults:function(v,g){var b=g.grid;if(b&&b._domains){var w,_,x,k,T,S,M,C=v.grid||{},A=g._subplots,D=b._hasSubplotGrid,O=b.rows,R=b.columns,$=b.pattern==="independent",P=b._axisMap={};if(D){var z=C.subplots||[];S=b.subplots=new Array(O);var B=1;for(w=0;w(y==="legend"?1:0));if(B===!1&&(g[y]=void 0),(B!==!1||w.uirevision)&&(x("uirevision",g.uirevision),B!==!1)){x("borderwidth");var N,j,F,E=x("orientation")==="h",W=x("yref")==="paper",H=x("xref")==="paper",L="left";if(E?(N=0,l.getComponentMethod("rangeslider","isVisible")(v.xaxis)?W?(j=1.1,F="bottom"):(j=1,F="top"):W?(j=-.1,F="top"):(j=0,F="bottom")):(j=1,F="auto",H?N=1.02:(N=1,L="right")),c.coerce(w,_,{x:{valType:"number",editType:"legend",min:H?-2:0,max:H?3:1,dflt:N}},"x"),c.coerce(w,_,{y:{valType:"number",editType:"legend",min:W?-2:0,max:W?3:1,dflt:j}},"y"),x("traceorder",O),h.isGrouped(g[y])&&x("tracegroupgap"),x("entrywidth"),x("entrywidthmode"),x("itemsizing"),x("itemwidth"),x("itemclick"),x("itemdoubleclick"),x("groupclick"),x("xanchor",L),x("yanchor",F),x("valign"),c.noneOrAll(w,_,["x","y"]),x("title.text")){x("title.side",E?"left":"top");var q=c.extendFlat({},k,{size:c.bigFont(k.size)});c.coerceFont(x,"title.font",q)}}}}o.exports=function(y,v,g){var b,w=g.slice(),_=v.shapes;if(_)for(b=0;b<_.length;b++){var x=_[b];if(x.showlegend){var k={_input:x._input,visible:x.visible,showlegend:x.showlegend,legend:x.legend};w.push(k)}}var T=["legend"];for(b=0;b1)}var Y=q.hiddenlabels||[];if(!(J||q.showlegend&&te.length))return H.selectAll("."+U).remove(),q._topdefs.select("#"+W).remove(),u.autoMargin(F,U);var re=c.ensureSingle(H,"g",U,function(ce){J||ce.attr("pointer-events","all")}),ie=c.ensureSingleById(q._topdefs,"clipPath",W,function(ce){ce.append("rect")}),le=c.ensureSingle(re,"rect","bg",function(ce){ce.attr("shape-rendering","crispEdges")});le.call(m.stroke,L.bordercolor).call(m.fill,L.bgcolor).style("stroke-width",L.borderwidth+"px");var se,he=c.ensureSingle(re,"g","scrollbox"),_e=L.title;L._titleWidth=0,L._titleHeight=0,_e.text?((se=c.ensureSingle(he,"text",U+"titletext")).attr("text-anchor","start").call(h.font,_e.font).text(_e.text),z(se,he,F,L,M)):he.selectAll("."+U+"titletext").remove();var Me=c.ensureSingle(re,"rect","scrollbar",function(ce){ce.attr(g.scrollBarEnterAttrs).call(m.fill,g.scrollBarColor)}),Ce=he.selectAll("g.groups").data(te);Ce.enter().append("g").attr("class","groups"),Ce.exit().remove();var Se=Ce.selectAll("g.traces").data(c.identity);Se.enter().append("g").attr("class","traces"),Se.exit().remove(),Se.style("opacity",function(ce){var ye=ce[0].trace;return f.traceIs(ye,"pie-like")?Y.indexOf(ce[0].label)!==-1?.5:1:ye.visible==="legendonly"?.5:1}).each(function(){l.select(this).call(R,F,L)}).call(T,F,L).each(function(){J||l.select(this).call(P,F,U)}),c.syncOrAsync([u.previousPromises,function(){return function(ce,ye,V,ne){var fe=ce._fullLayout,xe=j(ne);ne||(ne=fe[xe]);var ue=fe._size,ge=S.isVertical(ne),be=S.isGrouped(ne),we=ne.entrywidthmode==="fraction",ke=ne.borderwidth,Pe=2*ke,Re=g.itemGap,De=ne.itemwidth+2*Re,Le=2*(ke+Re),Fe=N(ne),Be=ne.y<0||ne.y===0&&Fe==="top",Ue=ne.y>1||ne.y===1&&Fe==="bottom",qe=ne.tracegroupgap,Ye={};ne._maxHeight=Math.max(Be||Ue?fe.height/2:ue.h,30);var at=0;ne._width=0,ne._height=0;var st=function(Xe){var Ge=0,Qe=0,ct=Xe.title.side;return ct&&(ct.indexOf("left")!==-1&&(Ge=Xe._titleWidth),ct.indexOf("top")!==-1&&(Qe=Xe._titleHeight)),[Ge,Qe]}(ne);if(ge)V.each(function(Xe){var Ge=Xe[0].height;h.setTranslate(this,ke+st[0],ke+st[1]+ne._height+Ge/2+Re),ne._height+=Ge,ne._width=Math.max(ne._width,Xe[0].width)}),at=De+ne._width,ne._width+=Re+De+Pe,ne._height+=Le,be&&(ye.each(function(Xe,Ge){h.setTranslate(this,0,Ge*ne.tracegroupgap)}),ne._height+=(ne._lgroupsLength-1)*ne.tracegroupgap);else{var ft=B(ne),yt=ne.x<0||ne.x===0&&ft==="right",ze=ne.x>1||ne.x===1&&ft==="left",Ne=Ue||Be,et=fe.width/2;ne._maxWidth=Math.max(yt?Ne&&ft==="left"?ue.l+ue.w:et:ze?Ne&&ft==="right"?ue.r+ue.w:et:ue.w,2*De);var it=0,St=0;V.each(function(Xe){var Ge=D(Xe,ne,De);it=Math.max(it,Ge),St+=Ge}),at=null;var Ze=0;if(be){var ut=0,gt=0,Rt=0;ye.each(function(){var Xe=0,Ge=0;l.select(this).selectAll("g.traces").each(function(ct){var bt=D(ct,ne,De),nt=ct[0].height;h.setTranslate(this,st[0],st[1]+ke+Re+nt/2+Ge),Ge+=nt,Xe=Math.max(Xe,bt),Ye[ct[0].trace.legendgroup]=Xe});var Qe=Xe+Re;gt>0&&Qe+ke+gt>ne._maxWidth?(Ze=Math.max(Ze,gt),gt=0,Rt+=ut+qe,ut=Ge):ut=Math.max(ut,Ge),h.setTranslate(this,gt,Rt),gt+=Qe}),ne._width=Math.max(Ze,gt)+ke,ne._height=Rt+ut+Le}else{var Mt=V.size(),Bt=St+Pe+(Mt-1)*Re=ne._maxWidth&&(Ze=Math.max(Ze,Ve),ve=0,Te+=Tt,ne._height+=Tt,Tt=0),h.setTranslate(this,st[0]+ke+ve,st[1]+ke+Te+Ge/2+Re),Ve=ve+Qe+Re,ve+=ct,Tt=Math.max(Tt,Ge)}),Bt?(ne._width=ve+Pe,ne._height=Tt+Le):(ne._width=Math.max(Ze,Ve)+Pe,ne._height+=Tt+Le)}}ne._width=Math.ceil(Math.max(ne._width+st[0],ne._titleWidth+2*(ke+g.titlePad))),ne._height=Math.ceil(Math.max(ne._height+st[1],ne._titleHeight+2*(ke+g.itemGap))),ne._effHeight=Math.min(ne._height,ne._maxHeight);var We=ce._context.edits,Je=We.legendText||We.legendPosition;V.each(function(Xe){var Ge=l.select(this).select("."+xe+"toggle"),Qe=Xe[0].height,ct=Xe[0].trace.legendgroup,bt=D(Xe,ne,De);be&&ct!==""&&(bt=Ye[ct]);var nt=Je?De:at||bt;ge||we||(nt+=Re/2),h.setRect(Ge,0,-Qe/2,nt,Qe)})}(F,Ce,Se,L)},function(){var ce,ye,V,ne,fe=q._size,xe=L.borderwidth,ue=L.xref==="paper",ge=L.yref==="paper";if(_e.text&&function(Ne,et,it){if(et.title.side==="top center"||et.title.side==="top right"){var St=et.title.font.size*w,Ze=0,ut=Ne.node(),gt=h.bBox(ut).width;et.title.side==="top center"?Ze=.5*(et._width-2*it-2*g.titlePad-gt):et.title.side==="top right"&&(Ze=et._width-2*it-2*g.titlePad-gt),y.positionText(Ne,it+g.titlePad+Ze,it+St)}}(se,L,xe),!J){var be,we;be=ue?fe.l+fe.w*L.x-_[B(L)]*L._width:q.width*L.x-_[B(L)]*L._width,we=ge?fe.t+fe.h*(1-L.y)-_[N(L)]*L._effHeight:q.height*(1-L.y)-_[N(L)]*L._effHeight;var ke=function(Ne,et,it,St){var Ze=Ne._fullLayout,ut=Ze[et],gt=B(ut),Rt=N(ut),Mt=ut.xref==="paper",Bt=ut.yref==="paper";Ne._fullLayout._reservedMargin[et]={};var Tt=ut.y<.5?"b":"t",ve=ut.x<.5?"l":"r",Te={r:Ze.width-it,l:it+ut._width,b:Ze.height-St,t:St+ut._effHeight};if(Mt&&Bt)return u.autoMargin(Ne,et,{x:ut.x,y:ut.y,l:ut._width*_[gt],r:ut._width*x[gt],b:ut._effHeight*x[Rt],t:ut._effHeight*_[Rt]});Mt?Ne._fullLayout._reservedMargin[et][Tt]=Te[Tt]:Bt||ut.orientation==="v"?Ne._fullLayout._reservedMargin[et][ve]=Te[ve]:Ne._fullLayout._reservedMargin[et][Tt]=Te[Tt]}(F,U,be,we);if(ke)return;if(q.margin.autoexpand){var Pe=be,Re=we;be=ue?c.constrain(be,0,q.width-L._width):Pe,we=ge?c.constrain(we,0,q.height-L._effHeight):Re,be!==Pe&&c.log("Constrain "+U+".x to make legend fit inside graph"),we!==Re&&c.log("Constrain "+U+".y to make legend fit inside graph")}h.setTranslate(re,be,we)}if(Me.on(".drag",null),re.on("wheel",null),J||L._height<=L._maxHeight||F._context.staticPlot){var De=L._effHeight;J&&(De=L._height),le.attr({width:L._width-xe,height:De-xe,x:xe/2,y:xe/2}),h.setTranslate(he,0,0),ie.select("rect").attr({width:L._width-2*xe,height:De-2*xe,x:xe,y:xe}),h.setClipUrl(he,W,F),h.setRect(Me,0,0,0,0),delete L._scrollY}else{var Le,Fe,Be,Ue=Math.max(g.scrollBarMinHeight,L._effHeight*L._effHeight/L._height),qe=L._effHeight-Ue-2*g.scrollBarMargin,Ye=L._height-L._effHeight,at=qe/Ye,st=Math.min(L._scrollY||0,Ye);le.attr({width:L._width-2*xe+g.scrollBarWidth+g.scrollBarMargin,height:L._effHeight-xe,x:xe/2,y:xe/2}),ie.select("rect").attr({width:L._width-2*xe+g.scrollBarWidth+g.scrollBarMargin,height:L._effHeight-2*xe,x:xe,y:xe+st}),h.setClipUrl(he,W,F),ze(st,Ue,at),re.on("wheel",function(){ze(st=c.constrain(L._scrollY+l.event.deltaY/qe*Ye,0,Ye),Ue,at),st!==0&&st!==Ye&&l.event.preventDefault()});var ft=l.behavior.drag().on("dragstart",function(){var Ne=l.event.sourceEvent;Le=Ne.type==="touchstart"?Ne.changedTouches[0].clientY:Ne.clientY,Be=st}).on("drag",function(){var Ne=l.event.sourceEvent;Ne.buttons===2||Ne.ctrlKey||(Fe=Ne.type==="touchmove"?Ne.changedTouches[0].clientY:Ne.clientY,st=function(et,it,St){var Ze=(St-it)/at+et;return c.constrain(Ze,0,Ye)}(Be,Le,Fe),ze(st,Ue,at))});Me.call(ft);var yt=l.behavior.drag().on("dragstart",function(){var Ne=l.event.sourceEvent;Ne.type==="touchstart"&&(Le=Ne.changedTouches[0].clientY,Be=st)}).on("drag",function(){var Ne=l.event.sourceEvent;Ne.type==="touchmove"&&(Fe=Ne.changedTouches[0].clientY,st=function(et,it,St){var Ze=(it-St)/at+et;return c.constrain(Ze,0,Ye)}(Be,Le,Fe),ze(st,Ue,at))});he.call(yt)}function ze(Ne,et,it){L._scrollY=F._fullLayout[U]._scrollY=Ne,h.setTranslate(he,0,-Ne),h.setRect(Me,L._width,g.scrollBarMargin+Ne*it,g.scrollBarWidth,et),ie.select("rect").attr("y",xe+Ne)}F._context.edits.legendPosition&&(re.classed("cursor-move",!0),p.init({element:re.node(),gd:F,prepFn:function(){var Ne=h.getTranslate(re);V=Ne.x,ne=Ne.y},moveFn:function(Ne,et){var it=V+Ne,St=ne+et;h.setTranslate(re,it,St),ce=p.align(it,L._width,fe.l,fe.l+fe.w,L.xanchor),ye=p.align(St+L._height,-L._height,fe.t+fe.h,fe.t,L.yanchor)},doneFn:function(){if(ce!==void 0&&ye!==void 0){var Ne={};Ne[U+".x"]=ce,Ne[U+".y"]=ye,f.call("_guiRelayout",F,Ne)}},clickFn:function(Ne,et){var it=H.selectAll("g.traces").filter(function(){var St=this.getBoundingClientRect();return et.clientX>=St.left&&et.clientX<=St.right&&et.clientY>=St.top&&et.clientY<=St.bottom});it.size()>0&&O(F,re,it,Ne,et)}}))}],F)}}function D(F,E,W){var H=F[0],L=H.width,q=E.entrywidthmode,U=H.trace.legendwidth||E.entrywidth;return q==="fraction"?E._maxWidth*U:W+(U||L)}function O(F,E,W,H,L){var q=W.data()[0][0].trace,U={event:L,node:W.node(),curveNumber:q.index,expandedIndex:q._expandedIndex,data:F.data,layout:F.layout,frames:F._transitionData._frames,config:F._context,fullData:F._fullData,fullLayout:F._fullLayout};q._group&&(U.group=q._group),f.traceIs(q,"pie-like")&&(U.label=W.datum()[0].label);var J=d.triggerHandler(F,"plotly_legendclick",U);if(H===1){if(J===!1)return;E._clickTimeout=setTimeout(function(){F._fullLayout&&v(W,F,H)},F._context.doubleClickDelay)}else H===2&&(E._clickTimeout&&clearTimeout(E._clickTimeout),F._legendMouseDownTime=0,d.triggerHandler(F,"plotly_legenddoubleclick",U)!==!1&&J!==!1&&v(W,F,H))}function R(F,E,W){var H,L,q=j(W),U=F.data()[0][0],J=U.trace,te=f.traceIs(J,"pie-like"),ee=!W._inHover&&E._context.edits.legendText&&!te,K=W._maxNameLength;U.groupTitle?(H=U.groupTitle.text,L=U.groupTitle.font):(L=W.font,W.entries?H=U.text:(H=te?U.label:J.name,J._meta&&(H=c.templateString(H,J._meta))));var Q=c.ensureSingle(F,"text",q+"text");Q.attr("text-anchor","start").call(h.font,L).text(ee?$(H,K):H);var G=W.itemwidth+2*g.itemGap;y.positionText(Q,G,0),ee?Q.call(y.makeEditable,{gd:E,text:H}).call(z,F,E,W).on("edit",function(X){this.text($(X,K)).call(z,F,E,W);var Y=U.trace._fullInput||{},re={};if(f.hasTransform(Y,"groupby")){var ie=f.getTransformIndices(Y,"groupby"),le=ie[ie.length-1],se=c.keyedContainer(Y,"transforms["+le+"].styles","target","value.name");se.set(U.trace._group,X),re=se.constructUpdate()}else re.name=X;return Y._isShape?f.call("_guiRelayout",E,"shapes["+J.index+"].name",re.name):f.call("_guiRestyle",E,re,J.index)}):z(Q,F,E,W)}function $(F,E){var W=Math.max(4,E);if(F&&F.trim().length>=W/2)return F;for(var H=W-(F=F||"").length;H>0;H--)F+=" ";return F}function P(F,E,W){var H,L=E._context.doubleClickDelay,q=1,U=c.ensureSingle(F,"rect",W+"toggle",function(J){E._context.staticPlot||J.style("cursor","pointer").attr("pointer-events","all"),J.call(m.fill,"rgba(0,0,0,0)")});E._context.staticPlot||(U.on("mousedown",function(){(H=new Date().getTime())-E._legendMouseDownTimeL&&(q=Math.max(q-1,1)),O(E,J,F,q,l.event)}}))}function z(F,E,W,H,L){H._inHover&&F.attr("data-notex",!0),y.convertToTspans(F,W,function(){(function(q,U,J,te){var ee=q.data()[0][0];if(J._inHover||!ee||ee.trace.showlegend){var K=q.select("g[class*=math-group]"),Q=K.node(),G=j(J);J||(J=U._fullLayout[G]);var X,Y,re=J.borderwidth,ie=(te===M?J.title.font:ee.groupTitle?ee.groupTitle.font:J.font).size*w;if(Q){var le=h.bBox(Q);X=le.height,Y=le.width,te===M?h.setTranslate(K,re,re+.75*X):h.setTranslate(K,0,.25*X)}else{var se="."+G+(te===M?"title":"")+"text",he=q.select(se),_e=y.lineCount(he),Me=he.node();if(X=ie*_e,Y=Me?h.bBox(Me).width:0,te===M)J.title.side==="left"&&(Y+=2*g.itemGap),y.positionText(he,re+g.titlePad,re+ie);else{var Ce=2*g.itemGap+J.itemwidth;ee.groupTitle&&(Ce=g.itemGap,Y-=J.itemwidth),y.positionText(he,Ce,-ie*((_e-1)/2-.3))}}te===M?(J._titleWidth=Y,J._titleHeight=X):(ee.lineHeight=ie,ee.height=Math.max(X,16)+3,ee.width=Y)}else q.remove()})(E,W,H,L)})}function B(F){return c.isRightAnchor(F)?"right":c.isCenterAnchor(F)?"center":"left"}function N(F){return c.isBottomAnchor(F)?"bottom":c.isMiddleAnchor(F)?"middle":"top"}function j(F){return F._id||"legend"}o.exports=function(F,E){if(E)A(F,E);else{var W=F._fullLayout,H=W._legends;W._infolayer.selectAll('[class^="legend"]').each(function(){var U=l.select(this),J=U.attr("class").split(" ")[0];J.match(C)&&H.indexOf(J)===-1&&U.remove()});for(var L=0;LB&&(z=B)}$[p][0]._groupMinRank=z,$[p][0]._preGroupSort=p}var N=function(H,L){return H.trace.legendrank-L.trace.legendrank||H._preSort-L._preSort};for($.forEach(function(H,L){H[0]._preGroupSort=L}),$.sort(function(H,L){return H[0]._groupMinRank-L[0]._groupMinRank||H[0]._preGroupSort-L[0]._preGroupSort}),p=0;p<$.length;p++){$[p].forEach(function(H,L){H._preSort=L}),$[p].sort(N);var j=$[p][0].trace,F=null;for(h=0;h<$[p].length;h++){var E=$[p][h].trace.legendgrouptitle;if(E&&E.text){F=E,m&&(E.font=f._groupTitleFont);break}}if(v&&$[p].reverse(),F){var W=!1;for(h=0;h<$[p].length;h++)if(l.traceIs($[p][h].trace,"pie-like")){W=!0;break}$[p].unshift({i:-1,groupTitle:F,noClick:W,trace:{showlegend:j.showlegend,legendgroup:j.legendgroup,visible:f.groupclick==="toggleitem"||j.visible}})}for(h=0;h<$[p].length;h++)$[p][h]=[$[p][h]]}return f._lgroupsLength=$.length,f._maxNameLength=k,$}},85167:function(o,a,n){var l=n(73972),c=n(71828),u=c.pushUnique,f=!0;o.exports=function(d,p,h){var m=p._fullLayout;if(!p._dragged&&!p._editing){var y,v=m.legend.itemclick,g=m.legend.itemdoubleclick,b=m.legend.groupclick;if(h===1&&v==="toggle"&&g==="toggleothers"&&f&&p.data&&p._context.showTips&&c.notifier(c._(p,"Double-click on legend to isolate one trace"),"long"),f=!1,h===1?y=v:h===2&&(y=g),y){var w=b==="togglegroup",_=m.hiddenlabels?m.hiddenlabels.slice():[],x=d.data()[0][0];if(!x.groupTitle||!x.noClick){var k=p._fullData,T=(m.shapes||[]).filter(function(ye){return ye.showlegend}),S=k.concat(T),M=x.trace;M._isShape&&(M=M._fullInput);var C,A,D,O,R,$=M.legendgroup,P={},z=[],B=[],N=[],j=(m.shapes||[]).map(function(ye){return ye._input}),F=!1,E=M.legend,W=M._fullInput;if(W&&W._isShape||!l.traceIs(M,"pie-like")){var H,L=$&&$.length,q=[];if(L)for(C=0;CT?T:x}o.exports=function(x,k,T){var S=k._fullLayout;T||(T=S.legend);var M=T.itemsizing==="constant",C=T.itemwidth,A=(C+2*g.itemGap)/2,D=f(A,0),O=function(P,z,B,N){var j;if(P+1)j=P;else{if(!(z&&z.width>0))return 0;j=z.width}return M?N:Math.min(j,B)};function R(P,z,B){var N=P[0].trace,j=N.marker||{},F=j.line||{},E=B?N.visible&&N.type===B:c.traceIs(N,"bar"),W=l.select(z).select("g.legendpoints").selectAll("path.legend"+B).data(E?[P]:[]);W.enter().append("path").classed("legend"+B,!0).attr("d","M6,6H-6V-6H6Z").attr("transform",D),W.exit().remove(),W.each(function(H){var L=l.select(this),q=H[0],U=O(q.mlw,j.line,5,2);L.style("stroke-width",U+"px");var J=q.mcc;if(!T._inHover&&"mc"in q){var te=h(j),ee=te.mid;ee===void 0&&(ee=(te.max+te.min)/2),J=d.tryColorscale(j,"")(ee)}var K=J||q.mc||j.color,Q=j.pattern,G=Q&&d.getPatternAttr(Q.shape,0,"");if(G){var X=d.getPatternAttr(Q.bgcolor,0,null),Y=d.getPatternAttr(Q.fgcolor,0,null),re=Q.fgopacity,ie=_(Q.size,8,10),le=_(Q.solidity,.5,1),se="legend-"+N.uid;L.call(d.pattern,"legend",k,se,G,ie,le,J,Q.fillmode,X,Y,re)}else L.call(p.fill,K);U&&p.stroke(L,q.mlc||F.color)})}function $(P,z,B){var N=P[0],j=N.trace,F=B?j.visible&&j.type===B:c.traceIs(j,B),E=l.select(z).select("g.legendpoints").selectAll("path.legend"+B).data(F?[P]:[]);if(E.enter().append("path").classed("legend"+B,!0).attr("d","M6,6H-6V-6H6Z").attr("transform",D),E.exit().remove(),E.size()){var W=j.marker||{},H=O(v(W.line.width,N.pts),W.line,5,2),L="pieLike",q=u.minExtend(j,{marker:{line:{width:H}}},L),U=u.minExtend(N,{trace:q},L);y(E,U,q,k)}}x.each(function(P){var z=l.select(this),B=u.ensureSingle(z,"g","layers");B.style("opacity",P[0].trace.opacity);var N=T.valign,j=P[0].lineHeight,F=P[0].height;if(N!=="middle"&&j&&F){var E={top:1,bottom:-1}[N]*(.5*(j-F+3));B.attr("transform",f(0,E))}else B.attr("transform",null);B.selectAll("g.legendfill").data([P]).enter().append("g").classed("legendfill",!0),B.selectAll("g.legendlines").data([P]).enter().append("g").classed("legendlines",!0);var W=B.selectAll("g.legendsymbols").data([P]);W.enter().append("g").classed("legendsymbols",!0),W.selectAll("g.legendpoints").data([P]).enter().append("g").classed("legendpoints",!0)}).each(function(P){var z,B=P[0].trace,N=[];if(B.visible)switch(B.type){case"histogram2d":case"heatmap":N=[["M-15,-2V4H15V-2Z"]],z=!0;break;case"choropleth":case"choroplethmapbox":N=[["M-6,-6V6H6V-6Z"]],z=!0;break;case"densitymapbox":N=[["M-6,0 a6,6 0 1,0 12,0 a 6,6 0 1,0 -12,0"]],z="radial";break;case"cone":N=[["M-6,2 A2,2 0 0,0 -6,6 V6L6,4Z"],["M-6,-6 A2,2 0 0,0 -6,-2 L6,-4Z"],["M-6,-2 A2,2 0 0,0 -6,2 L6,0Z"]],z=!1;break;case"streamtube":N=[["M-6,2 A2,2 0 0,0 -6,6 H6 A2,2 0 0,1 6,2 Z"],["M-6,-6 A2,2 0 0,0 -6,-2 H6 A2,2 0 0,1 6,-6 Z"],["M-6,-2 A2,2 0 0,0 -6,2 H6 A2,2 0 0,1 6,-2 Z"]],z=!1;break;case"surface":N=[["M-6,-6 A2,3 0 0,0 -6,0 H6 A2,3 0 0,1 6,-6 Z"],["M-6,1 A2,3 0 0,1 -6,6 H6 A2,3 0 0,0 6,0 Z"]],z=!0;break;case"mesh3d":N=[["M-6,6H0L-6,-6Z"],["M6,6H0L6,-6Z"],["M-6,-6H6L0,6Z"]],z=!1;break;case"volume":N=[["M-6,6H0L-6,-6Z"],["M6,6H0L6,-6Z"],["M-6,-6H6L0,6Z"]],z=!0;break;case"isosurface":N=[["M-6,6H0L-6,-6Z"],["M6,6H0L6,-6Z"],["M-6,-6 A12,24 0 0,0 6,-6 L0,6Z"]],z=!1}var j=l.select(this).select("g.legendpoints").selectAll("path.legend3dandfriends").data(N);j.enter().append("path").classed("legend3dandfriends",!0).attr("transform",D).style("stroke-miterlimit",1),j.exit().remove(),j.each(function(F,E){var W,H=l.select(this),L=h(B),q=L.colorscale,U=L.reversescale;if(q){if(!z){var J=q.length;W=E===0?q[U?J-1:0][1]:E===1?q[U?0:J-1][1]:q[Math.floor((J-1)/2)][1]}}else{var te=B.vertexcolor||B.facecolor||B.color;W=u.isArrayOrTypedArray(te)?te[E]||te[0]:te}H.attr("d",F[0]),W?H.call(p.fill,W):H.call(function(ee){if(ee.size()){var K="legendfill-"+B.uid;d.gradient(ee,k,K,b(U,z==="radial"),q,"fill")}})})}).each(function(P){var z=P[0].trace,B=z.type==="waterfall";if(P[0]._distinct&&B){var N=P[0].trace[P[0].dir].marker;return P[0].mc=N.color,P[0].mlw=N.line.width,P[0].mlc=N.line.color,R(P,this,"waterfall")}var j=[];z.visible&&B&&(j=P[0].hasTotals?[["increasing","M-6,-6V6H0Z"],["totals","M6,6H0L-6,-6H-0Z"],["decreasing","M6,6V-6H0Z"]]:[["increasing","M-6,-6V6H6Z"],["decreasing","M6,6V-6H-6Z"]]);var F=l.select(this).select("g.legendpoints").selectAll("path.legendwaterfall").data(j);F.enter().append("path").classed("legendwaterfall",!0).attr("transform",D).style("stroke-miterlimit",1),F.exit().remove(),F.each(function(E){var W=l.select(this),H=z[E[0]].marker,L=O(void 0,H.line,5,2);W.attr("d",E[1]).style("stroke-width",L+"px").call(p.fill,H.color),L&&W.call(p.stroke,H.line.color)})}).each(function(P){R(P,this,"funnel")}).each(function(P){R(P,this)}).each(function(P){var z=P[0].trace,B=l.select(this).select("g.legendpoints").selectAll("path.legendbox").data(z.visible&&c.traceIs(z,"box-violin")?[P]:[]);B.enter().append("path").classed("legendbox",!0).attr("d","M6,6H-6V-6H6Z").attr("transform",D),B.exit().remove(),B.each(function(){var N=l.select(this);if(z.boxpoints!=="all"&&z.points!=="all"||p.opacity(z.fillcolor)!==0||p.opacity((z.line||{}).color)!==0){var j=O(void 0,z.line,5,2);N.style("stroke-width",j+"px").call(p.fill,z.fillcolor),j&&p.stroke(N,z.line.color)}else{var F=u.minExtend(z,{marker:{size:M?12:u.constrain(z.marker.size,2,16),sizeref:1,sizemin:1,sizemode:"diameter"}});B.call(d.pointStyle,F,k)}})}).each(function(P){$(P,this,"funnelarea")}).each(function(P){$(P,this,"pie")}).each(function(P){var z,B,N=w(P),j=N.showFill,F=N.showLine,E=N.showGradientLine,W=N.showGradientFill,H=N.anyFill,L=N.anyLine,q=P[0],U=q.trace,J=h(U),te=J.colorscale,ee=J.reversescale,K=m.hasMarkers(U)||!H?"M5,0":L?"M5,-2":"M5,-3",Q=l.select(this),G=Q.select(".legendfill").selectAll("path").data(j||W?[P]:[]);if(G.enter().append("path").classed("js-fill",!0),G.exit().remove(),G.attr("d",K+"h"+C+"v6h-"+C+"z").call(function(re){if(re.size())if(j)d.fillGroupStyle(re,k);else{var ie="legendfill-"+U.uid;d.gradient(re,k,ie,b(ee),te,"fill")}}),F||E){var X=O(void 0,U.line,10,5);B=u.minExtend(U,{line:{width:X}}),z=[u.minExtend(q,{trace:B})]}var Y=Q.select(".legendlines").selectAll("path").data(F||E?[z]:[]);Y.enter().append("path").classed("js-line",!0),Y.exit().remove(),Y.attr("d",K+(E?"l"+C+",0.0001":"h"+C)).call(F?d.lineGroupStyle:function(re){if(re.size()){var ie="legendline-"+U.uid;d.lineGroupStyle(re),d.gradient(re,k,ie,b(ee),te,"stroke")}})}).each(function(P){var z,B,N=w(P),j=N.anyFill,F=N.anyLine,E=N.showLine,W=N.showMarker,H=P[0],L=H.trace,q=!W&&!F&&!j&&m.hasText(L);function U(Y,re,ie,le){var se=u.nestedProperty(L,Y).get(),he=u.isArrayOrTypedArray(se)&&re?re(se):se;if(M&&he&&le!==void 0&&(he=le),ie){if(heie[1])return ie[1]}return he}function J(Y){return H._distinct&&H.index&&Y[H.index]?Y[H.index]:Y[0]}if(W||q||E){var te={},ee={};if(W){te.mc=U("marker.color",J),te.mx=U("marker.symbol",J),te.mo=U("marker.opacity",u.mean,[.2,1]),te.mlc=U("marker.line.color",J),te.mlw=U("marker.line.width",u.mean,[0,5],2),ee.marker={sizeref:1,sizemin:1,sizemode:"diameter"};var K=U("marker.size",u.mean,[2,16],12);te.ms=K,ee.marker.size=K}E&&(ee.line={width:U("line.width",J,[0,10],5)}),q&&(te.tx="Aa",te.tp=U("textposition",J),te.ts=10,te.tc=U("textfont.color",J),te.tf=U("textfont.family",J)),z=[u.minExtend(H,te)],(B=u.minExtend(L,ee)).selectedpoints=null,B.texttemplate=null}var Q=l.select(this).select("g.legendpoints"),G=Q.selectAll("path.scatterpts").data(W?z:[]);G.enter().insert("path",":first-child").classed("scatterpts",!0).attr("transform",D),G.exit().remove(),G.call(d.pointStyle,B,k),W&&(z[0].mrc=3);var X=Q.selectAll("g.pointtext").data(q?z:[]);X.enter().append("g").classed("pointtext",!0).append("text").attr("transform",D),X.exit().remove(),X.selectAll("text").call(d.textPointStyle,B,k)}).each(function(P){var z=P[0].trace,B=l.select(this).select("g.legendpoints").selectAll("path.legendcandle").data(z.visible&&z.type==="candlestick"?[P,P]:[]);B.enter().append("path").classed("legendcandle",!0).attr("d",function(N,j){return j?"M-15,0H-8M-8,6V-6H8Z":"M15,0H8M8,-6V6H-8Z"}).attr("transform",D).style("stroke-miterlimit",1),B.exit().remove(),B.each(function(N,j){var F=l.select(this),E=z[j?"increasing":"decreasing"],W=O(void 0,E.line,5,2);F.style("stroke-width",W+"px").call(p.fill,E.fillcolor),W&&p.stroke(F,E.line.color)})}).each(function(P){var z=P[0].trace,B=l.select(this).select("g.legendpoints").selectAll("path.legendohlc").data(z.visible&&z.type==="ohlc"?[P,P]:[]);B.enter().append("path").classed("legendohlc",!0).attr("d",function(N,j){return j?"M-15,0H0M-8,-6V0":"M15,0H0M8,6V0"}).attr("transform",D).style("stroke-miterlimit",1),B.exit().remove(),B.each(function(N,j){var F=l.select(this),E=z[j?"increasing":"decreasing"],W=O(void 0,E.line,5,2);F.style("fill","none").call(d.dashLine,E.line.dash,W),W&&p.stroke(F,E.line.color)})})}},42068:function(o,a,n){n(93348),o.exports={editType:"modebar",orientation:{valType:"enumerated",values:["v","h"],dflt:"h",editType:"modebar"},bgcolor:{valType:"color",editType:"modebar"},color:{valType:"color",editType:"modebar"},activecolor:{valType:"color",editType:"modebar"},uirevision:{valType:"any",editType:"none"},add:{valType:"string",arrayOk:!0,dflt:"",editType:"modebar"},remove:{valType:"string",arrayOk:!0,dflt:"",editType:"modebar"}}},26023:function(o,a,n){var l=n(73972),c=n(74875),u=n(41675),f=n(24255),d=n(34031).eraseActiveShape,p=n(71828),h=p._,m=o.exports={};function y(S,M){var C,A,D=M.currentTarget,O=D.getAttribute("data-attr"),R=D.getAttribute("data-val")||!0,$=S._fullLayout,P={},z=u.list(S,null,!0),B=$._cartesianSpikesEnabled;if(O==="zoom"){var N,j=R==="in"?.5:2,F=(1+j)/2,E=(1-j)/2;for(A=0;A1?(K=["toggleHover"],Q=["resetViews"]):P?(ee=["zoomInGeo","zoomOutGeo"],K=["hoverClosestGeo"],Q=["resetGeo"]):$?(K=["hoverClosest3d"],Q=["resetCameraDefault3d","resetCameraLastSave3d"]):F?(ee=["zoomInMapbox","zoomOutMapbox"],K=["toggleHover"],Q=["resetViewMapbox"]):N?K=["hoverClosestGl2d"]:z?K=["hoverClosestPie"]:H?(K=["hoverClosestCartesian","hoverCompareCartesian"],Q=["resetViewSankey"]):K=["toggleHover"],R&&(K=["toggleSpikelines","hoverClosestCartesian","hoverCompareCartesian"]),(function(se){for(var he=0;he0)){var k=function(S,M,C){for(var A=C.filter(function($){return M[$].anchor===S._id}),D=0,O=0;O=Me.max)he=re[_e+1];else if(se=Me.pmax)he=re[_e+1];else if(se_e._length||ge+Fe<0)return;Re=ue+Fe,De=ge+Fe;break;case Se:if(Le="col-resize",ue+Fe>_e._length)return;Re=ue+Fe,De=ge;break;case ce:if(Le="col-resize",ge+Fe<0)return;Re=ue,De=ge+Fe;break;default:Le="ew-resize",Re=xe,De=xe+Fe}if(De=0;N--){var j=M.append("path").attr(A).style("opacity",N?.1:D).call(f.stroke,R).call(f.fill,O).call(d.dashLine,N?"solid":P,N?4+$:$);if(b(j,_,T),z){var F=p(_.layout,"selections",T);j.style({cursor:"move"});var E={element:j.node(),plotinfo:S,gd:_,editHelpers:F,isActiveSelection:!0},W=l(C,_);c(W,j,E)}else j.style("pointer-events",N?"all":"none");B[N]=j}var H=B[0];B[1].node().addEventListener("click",function(){return function(L,q){if(v(L)){var U=+q.node().getAttribute("data-index");if(U>=0){if(U===L._fullLayout._activeSelectionIndex)return void w(L);L._fullLayout._activeSelectionIndex=U,L._fullLayout._deactivateSelection=w,y(L)}}}(_,H)})}(_._fullLayout._selectionLayer)}function b(_,x,k){var T=k.xref+k.yref;d.setClipUrl(_,"clip"+x._fullLayout._uid+T,x)}function w(_){v(_)&&_._fullLayout._activeSelectionIndex>=0&&(u(_),delete _._fullLayout._activeSelectionIndex,y(_))}o.exports={draw:y,drawOne:g,activateLastSelection:function(_){if(v(_)){var x=_._fullLayout.selections.length-1;_._fullLayout._activeSelectionIndex=x,_._fullLayout._deactivateSelection=w,y(_)}}}},53777:function(o,a,n){var l=n(79952).P,c=n(1426).extendFlat;o.exports={newselection:{mode:{valType:"enumerated",values:["immediate","gradual"],dflt:"immediate",editType:"none"},line:{color:{valType:"color",editType:"none"},width:{valType:"number",min:1,dflt:1,editType:"none"},dash:c({},l,{dflt:"dot",editType:"none"}),editType:"none"},editType:"none"},activeselection:{fillcolor:{valType:"color",dflt:"rgba(0,0,0,0)",editType:"none"},opacity:{valType:"number",min:0,max:1,dflt:.5,editType:"none"},editType:"none"}}},90849:function(o){o.exports=function(a,n,l){l("newselection.mode"),l("newselection.line.width")&&(l("newselection.line.color"),l("newselection.line.dash")),l("activeselection.fillcolor"),l("activeselection.opacity")}},35855:function(o,a,n){var l=n(64505).selectMode,c=n(51873).clearOutline,u=n(60165),f=u.readPaths,d=u.writePaths,p=u.fixDatesForPaths;o.exports=function(h,m){if(h.length){var y=h[0][0];if(y){var v=y.getAttribute("d"),g=m.gd,b=g._fullLayout.newselection,w=m.plotinfo,_=w.xaxis,x=w.yaxis,k=m.isActiveSelection,T=m.dragmode,S=(g.layout||{}).selections||[];if(!l(T)&&k!==void 0){var M=g._fullLayout._activeSelectionIndex;if(M-1,St=[];if(function(Mt){return Mt&&Array.isArray(Mt)&&Mt[0].hoverOnBox!==!0}(et)){X(ke,Pe,Fe);var Ze=function(Mt,Bt){var Tt,ve,Te=Mt[0],Ve=-1,We=[];for(ve=0;ve0?function(Mt,Bt){var Tt,ve,Te,Ve=[];for(Te=0;Te0&&Ve.push(Tt);if(Ve.length===1&&Ve[0]===Bt.searchInfo&&(ve=Bt.searchInfo.cd[0].trace).selectedpoints.length===Bt.pointNumbers.length){for(Te=0;Te1||(ve+=Bt.selectedpoints.length)>1))return!1;return ve===1}(Ue)&&(ft=se(Ze))){for(Be&&Be.remove(),Ne=0;Ne=0})(Le)&&Le._fullLayout._deactivateShape(Le),function(st){return st._fullLayout._activeSelectionIndex>=0}(Le)&&Le._fullLayout._deactivateSelection(Le);var Fe=Le._fullLayout._zoomlayer,Be=g(Re),Ue=w(Re);if(Be||Ue){var qe,Ye,at=Fe.selectAll(".select-outline-"+De.id);at&&Le._fullLayout._outlining&&(Be&&(qe=A(at,ke)),qe&&u.call("_guiRelayout",Le,{shapes:qe}),Ue&&!te(ke)&&(Ye=D(at,ke)),Ye&&(Le._fullLayout._noEmitSelectedAtStart=!0,u.call("_guiRelayout",Le,{selections:Ye}).then(function(){Pe&&O(Le)})),Le._fullLayout._outlining=!1)}De.selection={},De.selection.selectionDefs=ke.selectionDefs=[],De.selection.mergedPolygons=ke.mergedPolygons=[]}function re(ke){return ke._id}function ie(ke,Pe,Re,De){if(!ke.calcdata)return[];var Le,Fe,Be,Ue=[],qe=Pe.map(re),Ye=Re.map(re);for(Be=0;Be0?De[0]:Re;return!!Pe.selectedpoints&&Pe.selectedpoints.indexOf(Le)>-1}function he(ke,Pe,Re){var De,Le;for(De=0;De-1&&Pe;if(!Fe&&Pe){var Pt=ne(ke,!0);if(Pt.length){var At=Pt[0].xref,Ft=Pt[0].yref;if(At&&Ft){var $t=ue(Pt);ge([B(ke,At,"x"),B(ke,Ft,"y")])(Gt,$t)}}ke._fullLayout._noEmitSelectedAtStart?ke._fullLayout._noEmitSelectedAtStart=!1:ht&&be(ke,Gt),ft._reselect=!1}if(!Fe&&ft._deselect){var Nt=ft._deselect;(function(Vt,Xt,zt){for(var Wt=0;Wt=0)yt._fullLayout._deactivateShape(yt);else if(!Ye){var $t=ze.clickmode;z.done(Lt).then(function(){if(z.clear(Lt),At===2){for(jt.remove(),Te=0;Te-1&&ee(Ft,yt,De.xaxes,De.yaxes,De.subplot,De,jt),$t==="event"&&be(yt,void 0);p.click(yt,Ft,St.id)}).catch(R.error)}},De.doneFn=function(){wt.remove(),z.done(Lt).then(function(){z.clear(Lt),!Ne&&ve&&De.selectionDefs&&(ve.subtract=Ct,De.selectionDefs.push(ve),De.mergedPolygons.length=0,[].push.apply(De.mergedPolygons,Tt)),(Ne||Ye)&&Y(De,Ne),De.doneFnCompleted&&De.doneFnCompleted(Gt),at&&be(yt,We)}).catch(R.error)}},clearOutline:T,clearSelectionsCache:Y,selectOnClick:ee}},89827:function(o,a,n){var l=n(50215),c=n(41940),u=n(82196).line,f=n(79952).P,d=n(1426).extendFlat,p=n(44467).templatedArray,h=(n(24695),n(9012)),m=n(5386).R,y=n(37281);o.exports=p("shape",{visible:d({},h.visible,{editType:"calc+arraydraw"}),showlegend:{valType:"boolean",dflt:!1,editType:"calc+arraydraw"},legend:d({},h.legend,{editType:"calc+arraydraw"}),legendgroup:d({},h.legendgroup,{editType:"calc+arraydraw"}),legendgrouptitle:{text:d({},h.legendgrouptitle.text,{editType:"calc+arraydraw"}),font:c({editType:"calc+arraydraw"}),editType:"calc+arraydraw"},legendrank:d({},h.legendrank,{editType:"calc+arraydraw"}),legendwidth:d({},h.legendwidth,{editType:"calc+arraydraw"}),type:{valType:"enumerated",values:["circle","rect","path","line"],editType:"calc+arraydraw"},layer:{valType:"enumerated",values:["below","above"],dflt:"above",editType:"arraydraw"},xref:d({},l.xref,{}),xsizemode:{valType:"enumerated",values:["scaled","pixel"],dflt:"scaled",editType:"calc+arraydraw"},xanchor:{valType:"any",editType:"calc+arraydraw"},x0:{valType:"any",editType:"calc+arraydraw"},x1:{valType:"any",editType:"calc+arraydraw"},yref:d({},l.yref,{}),ysizemode:{valType:"enumerated",values:["scaled","pixel"],dflt:"scaled",editType:"calc+arraydraw"},yanchor:{valType:"any",editType:"calc+arraydraw"},y0:{valType:"any",editType:"calc+arraydraw"},y1:{valType:"any",editType:"calc+arraydraw"},path:{valType:"string",editType:"calc+arraydraw"},opacity:{valType:"number",min:0,max:1,dflt:1,editType:"arraydraw"},line:{color:d({},u.color,{editType:"arraydraw"}),width:d({},u.width,{editType:"calc+arraydraw"}),dash:d({},f,{editType:"arraydraw"}),editType:"calc+arraydraw"},fillcolor:{valType:"color",dflt:"rgba(0,0,0,0)",editType:"arraydraw"},fillrule:{valType:"enumerated",values:["evenodd","nonzero"],dflt:"evenodd",editType:"arraydraw"},editable:{valType:"boolean",dflt:!1,editType:"calc+arraydraw"},label:{text:{valType:"string",dflt:"",editType:"arraydraw"},texttemplate:m({},{keys:Object.keys(y)}),font:c({editType:"calc+arraydraw",colorEditType:"arraydraw"}),textposition:{valType:"enumerated",values:["top left","top center","top right","middle left","middle center","middle right","bottom left","bottom center","bottom right","start","middle","end"],editType:"arraydraw"},textangle:{valType:"angle",dflt:"auto",editType:"calc+arraydraw"},xanchor:{valType:"enumerated",values:["auto","left","center","right"],dflt:"auto",editType:"calc+arraydraw"},yanchor:{valType:"enumerated",values:["top","middle","bottom"],editType:"calc+arraydraw"},padding:{valType:"number",dflt:3,min:0,editType:"arraydraw"},editType:"arraydraw"},editType:"arraydraw"})},5627:function(o,a,n){var l=n(71828),c=n(89298),u=n(21459),f=n(30477);function d(y){return h(y.line.width,y.xsizemode,y.x0,y.x1,y.path,!1)}function p(y){return h(y.line.width,y.ysizemode,y.y0,y.y1,y.path,!0)}function h(y,v,g,b,w,_){var x=y/2,k=_;if(v==="pixel"){var T=w?f.extractPathCoords(w,_?u.paramIsY:u.paramIsX):[g,b],S=l.aggNums(Math.max,null,T),M=l.aggNums(Math.min,null,T),C=M<0?Math.abs(M)+x:x,A=S>0?S+x:x;return{ppad:x,ppadplus:k?C:A,ppadminus:k?A:C}}return{ppad:x}}function m(y,v,g,b,w){var _=y.type==="category"||y.type==="multicategory"?y.r2c:y.d2c;if(v!==void 0)return[_(v),_(g)];if(b){var x,k,T,S,M=1/0,C=-1/0,A=b.match(u.segmentRE);for(y.type==="date"&&(_=f.decodeDate(_)),x=0;xC&&(C=S)));return C>=M?[M,C]:void 0}}o.exports=function(y){var v=y._fullLayout,g=l.filterVisible(v.shapes);if(g.length&&y._fullData.length)for(var b=0;b=re?ie-se:se-ie,-180/Math.PI*Math.atan2(he,_e)}(C,D,A,O):0),P.call(function(re){return re.call(f.font,$).attr({}),u.convertToTspans(re,v),re});var Q=function(re,ie,le,se,he,_e,Me){var Ce,Se,ce,ye,V=he.label.textposition,ne=he.label.textangle,fe=he.label.padding,xe=he.type,ue=Math.PI/180*_e,ge=Math.sin(ue),be=Math.cos(ue),we=he.label.xanchor,ke=he.label.yanchor;if(xe==="line"){V==="start"?(Ce=re,Se=ie):V==="end"?(Ce=le,Se=se):(Ce=(re+le)/2,Se=(ie+se)/2),we==="auto"&&(we=V==="start"?ne==="auto"?le>re?"left":lere?"right":lere?"right":lere?"left":le1&&(Ce.length!==2||Ce[1][0]!=="Z")&&(H===0&&(Ce[0][0]="M"),R[W]=Ce,N(),j())}}()}}function re(he,_e){(function(Me,Ce){if(R.length)for(var Se=0;SeSe?(V=Me,ue="y0",ne=Se,ge="y1"):(V=Se,ue="y1",ne=Me,ge="y0"),ut(Tt),Mt(se,ie),function(ve,Te,Ve){var We=Te.xref,Je=Te.yref,Xe=f.getFromId(Ve,We),Ge=f.getFromId(Ve,Je),Qe="";We==="paper"||Xe.autorange||(Qe+=We),Je==="paper"||Ge.autorange||(Qe+=Je),v.setClipUrl(ve,Qe?"clip"+Ve._fullLayout._uid+Qe:null,Ve)}(re,ie,Y),Ze.moveFn=Pe==="move"?gt:Rt,Ze.altKey=Tt.altKey)},doneFn:function(){S(Y)||(w(re),Bt(se),A(re,Y,ie),c.call("_guiRelayout",Y,he.getUpdateObj()))},clickFn:function(){S(Y)||Bt(se)}};function ut(Tt){if(S(Y))Pe=null;else if(Be)Pe=Tt.target.tagName==="path"?"move":Tt.target.attributes["data-line-point"].value==="start-point"?"resize-over-start-point":"resize-over-end-point";else{var ve=Ze.element.getBoundingClientRect(),Te=ve.right-ve.left,Ve=ve.bottom-ve.top,We=Tt.clientX-ve.left,Je=Tt.clientY-ve.top,Xe=!Ue&&Te>Re&&Ve>De&&!Tt.shiftKey?b.getCursor(We/Te,1-Je/Ve):"move";w(re,Xe),Pe=Xe.split("-")[0]}}function gt(Tt,ve){if(ie.type==="path"){var Te=function(Je){return Je},Ve=Te,We=Te;Le?qe("xanchor",ie.xanchor=et(ce+Tt)):(Ve=function(Je){return et(ze(Je)+Tt)},at&&at.type==="date"&&(Ve=x.encodeDate(Ve))),Fe?qe("yanchor",ie.yanchor=it(ye+ve)):(We=function(Je){return it(Ne(Je)+ve)},ft&&ft.type==="date"&&(We=x.encodeDate(We))),qe("path",ie.path=D(ke,Ve,We))}else Le?qe("xanchor",ie.xanchor=et(ce+Tt)):(qe("x0",ie.x0=et(_e+Tt)),qe("x1",ie.x1=et(Ce+Tt))),Fe?qe("yanchor",ie.yanchor=it(ye+ve)):(qe("y0",ie.y0=it(Me+ve)),qe("y1",ie.y1=it(Se+ve)));re.attr("d",k(Y,ie)),Mt(se,ie),h(Y,le,ie,Ye)}function Rt(Tt,ve){if(Ue){var Te=function(vt){return vt},Ve=Te,We=Te;Le?qe("xanchor",ie.xanchor=et(ce+Tt)):(Ve=function(vt){return et(ze(vt)+Tt)},at&&at.type==="date"&&(Ve=x.encodeDate(Ve))),Fe?qe("yanchor",ie.yanchor=it(ye+ve)):(We=function(vt){return it(Ne(vt)+ve)},ft&&ft.type==="date"&&(We=x.encodeDate(We))),qe("path",ie.path=D(ke,Ve,We))}else if(Be){if(Pe==="resize-over-start-point"){var Je=_e+Tt,Xe=Fe?Me-ve:Me+ve;qe("x0",ie.x0=Le?Je:et(Je)),qe("y0",ie.y0=Fe?Xe:it(Xe))}else if(Pe==="resize-over-end-point"){var Ge=Ce+Tt,Qe=Fe?Se-ve:Se+ve;qe("x1",ie.x1=Le?Ge:et(Ge)),qe("y1",ie.y1=Fe?Qe:it(Qe))}}else{var ct=function(vt){return Pe.indexOf(vt)!==-1},bt=ct("n"),nt=ct("s"),It=ct("w"),Yt=ct("e"),Ct=bt?V+ve:V,jt=nt?ne+ve:ne,Et=It?fe+Tt:fe,mt=Yt?xe+Tt:xe;Fe&&(bt&&(Ct=V-ve),nt&&(jt=ne-ve)),(!Fe&&jt-Ct>De||Fe&&Ct-jt>De)&&(qe(ue,ie[ue]=Fe?Ct:it(Ct)),qe(ge,ie[ge]=Fe?jt:it(jt))),mt-Et>Re&&(qe(be,ie[be]=Le?Et:et(Et)),qe(we,ie[we]=Le?mt:et(mt)))}re.attr("d",k(Y,ie)),Mt(se,ie),h(Y,le,ie,Ye)}function Mt(Tt,ve){(Le||Fe)&&function(){var Te=ve.type!=="path",Ve=Tt.selectAll(".visual-cue").data([0]);Ve.enter().append("path").attr({fill:"#fff","fill-rule":"evenodd",stroke:"#000","stroke-width":1}).classed("visual-cue",!0);var We=ze(Le?ve.xanchor:u.midRange(Te?[ve.x0,ve.x1]:x.extractPathCoords(ve.path,_.paramIsX))),Je=Ne(Fe?ve.yanchor:u.midRange(Te?[ve.y0,ve.y1]:x.extractPathCoords(ve.path,_.paramIsY)));if(We=x.roundPositionForSharpStrokeRendering(We,1),Je=x.roundPositionForSharpStrokeRendering(Je,1),Le&&Fe){var Xe="M"+(We-1-1)+","+(Je-1-1)+"h-8v2h8 v8h2v-8 h8v-2h-8 v-8h-2 Z";Ve.attr("d",Xe)}else if(Le){var Ge="M"+(We-1-1)+","+(Je-9-1)+"v18 h2 v-18 Z";Ve.attr("d",Ge)}else{var Qe="M"+(We-9-1)+","+(Je-1-1)+"h18 v2 h-18 Z";Ve.attr("d",Qe)}}()}function Bt(Tt){Tt.selectAll(".visual-cue").remove()}b.init(Ze),St.node().onmousemove=ut}(R,Q,z,$,j,ee):z.editable===!0&&Q.style("pointer-events",J||y.opacity(H)*W<=.5?"stroke":"all");Q.node().addEventListener("click",function(){return function(Y,re){if(M(Y)){var ie=+re.node().getAttribute("data-index");if(ie>=0){if(ie===Y._fullLayout._activeShapeIndex)return void O(Y);Y._fullLayout._activeShapeIndex=ie,Y._fullLayout._deactivateShape=O,T(Y)}}}(R,Q)})}z._input&&z.visible===!0&&(z.layer!=="below"?N(R._fullLayout._shapeUpperLayer):z.xref==="paper"||z.yref==="paper"?N(R._fullLayout._shapeLowerLayer):B._hadPlotinfo?N((B.mainplotinfo||B).shapelayer):N(R._fullLayout._shapeLowerLayer))}function A(R,$,P){var z=(P.xref+P.yref).replace(/paper/g,"").replace(/[xyz][1-9]* *domain/g,"");v.setClipUrl(R,z?"clip"+$._fullLayout._uid+z:null,$)}function D(R,$,P){return R.replace(_.segmentRE,function(z){var B=0,N=z.charAt(0),j=_.paramIsX[N],F=_.paramIsY[N],E=_.numParams[N];return N+z.substr(1).replace(_.paramRE,function(W){return B>=E||(j[B]?W=$(W):F[B]&&(W=P(W)),B++),W})})}function O(R){M(R)&&R._fullLayout._activeShapeIndex>=0&&(m(R),delete R._fullLayout._activeShapeIndex,T(R))}o.exports={draw:T,drawOne:C,eraseActiveShape:function(R){if(M(R)){m(R);var $=R._fullLayout._activeShapeIndex,P=(R.layout||{}).shapes||[];if($0&&CK&&(G="X"),G});return U>K&&(Q=Q.replace(/[\s,]*X.*/,""),c.log("Ignoring extra params in segment "+q)),J+Q})}(d,h,y);if(d.xsizemode==="pixel"){var C=h(d.xanchor);v=C+d.x0,g=C+d.x1}else v=h(d.x0),g=h(d.x1);if(d.ysizemode==="pixel"){var A=y(d.yanchor);b=A-d.y0,w=A-d.y1}else b=y(d.y0),w=y(d.y1);if(_==="line")return"M"+v+","+b+"L"+g+","+w;if(_==="rect")return"M"+v+","+b+"H"+g+"V"+w+"H"+v+"Z";var D=(v+g)/2,O=(b+w)/2,R=Math.abs(D-v),$=Math.abs(O-b),P="A"+R+","+$,z=D+R+","+O;return"M"+z+P+" 0 1,1 "+D+","+(O-$)+P+" 0 0,1 "+z+"Z"}},89853:function(o,a,n){var l=n(34031);o.exports={moduleType:"component",name:"shapes",layoutAttributes:n(89827),supplyLayoutDefaults:n(84726),supplyDrawNewShapeDefaults:n(45547),includeBasePlot:n(76325)("shapes"),calcAutorange:n(5627),draw:l.draw,drawOne:l.drawOne}},37281:function(o){function a(u,f){return f?f.d2l(u):u}function n(u,f){return f?f.l2d(u):u}function l(u,f){return a(u.x1,f)-a(u.x0,f)}function c(u,f,d){return a(u.y1,d)-a(u.y0,d)}o.exports={x0:function(u){return u.x0},x1:function(u){return u.x1},y0:function(u){return u.y0},y1:function(u){return u.y1},slope:function(u,f,d){return u.type!=="line"?void 0:c(u,0,d)/l(u,f)},dx:l,dy:c,width:function(u,f){return Math.abs(l(u,f))},height:function(u,f,d){return Math.abs(c(u,0,d))},length:function(u,f,d){return u.type!=="line"?void 0:Math.sqrt(Math.pow(l(u,f),2)+Math.pow(c(u,0,d),2))},xcenter:function(u,f){return n((a(u.x1,f)+a(u.x0,f))/2,f)},ycenter:function(u,f,d){return n((a(u.y1,d)+a(u.y0,d))/2,d)}}},75067:function(o,a,n){var l=n(41940),c=n(35025),u=n(1426).extendDeepAll,f=n(30962).overrideAll,d=n(85594),p=n(44467).templatedArray,h=n(98292),m=p("step",{visible:{valType:"boolean",dflt:!0},method:{valType:"enumerated",values:["restyle","relayout","animate","update","skip"],dflt:"restyle"},args:{valType:"info_array",freeLength:!0,items:[{valType:"any"},{valType:"any"},{valType:"any"}]},label:{valType:"string"},value:{valType:"string"},execute:{valType:"boolean",dflt:!0}});o.exports=f(p("slider",{visible:{valType:"boolean",dflt:!0},active:{valType:"number",min:0,dflt:0},steps:m,lenmode:{valType:"enumerated",values:["fraction","pixels"],dflt:"fraction"},len:{valType:"number",min:0,dflt:1},x:{valType:"number",min:-2,max:3,dflt:0},pad:u(c({editType:"arraydraw"}),{},{t:{dflt:20}}),xanchor:{valType:"enumerated",values:["auto","left","center","right"],dflt:"left"},y:{valType:"number",min:-2,max:3,dflt:0},yanchor:{valType:"enumerated",values:["auto","top","middle","bottom"],dflt:"top"},transition:{duration:{valType:"number",min:0,dflt:150},easing:{valType:"enumerated",values:d.transition.easing.values,dflt:"cubic-in-out"}},currentvalue:{visible:{valType:"boolean",dflt:!0},xanchor:{valType:"enumerated",values:["left","center","right"],dflt:"left"},offset:{valType:"number",dflt:10},prefix:{valType:"string"},suffix:{valType:"string"},font:l({})},font:l({}),activebgcolor:{valType:"color",dflt:h.gripBgActiveColor},bgcolor:{valType:"color",dflt:h.railBgColor},bordercolor:{valType:"color",dflt:h.railBorderColor},borderwidth:{valType:"number",min:0,dflt:h.railBorderWidth},ticklen:{valType:"number",min:0,dflt:h.tickLength},tickcolor:{valType:"color",dflt:h.tickColor},tickwidth:{valType:"number",min:0,dflt:1},minorticklen:{valType:"number",min:0,dflt:h.minorTickLength}}),"arraydraw","from-root")},98292:function(o){o.exports={name:"sliders",containerClassName:"slider-container",groupClassName:"slider-group",inputAreaClass:"slider-input-area",railRectClass:"slider-rail-rect",railTouchRectClass:"slider-rail-touch-rect",gripRectClass:"slider-grip-rect",tickRectClass:"slider-tick-rect",inputProxyClass:"slider-input-proxy",labelsClass:"slider-labels",labelGroupClass:"slider-label-group",labelClass:"slider-label",currentValueClass:"slider-current-value",railHeight:5,menuIndexAttrName:"slider-active-index",autoMarginIdRoot:"slider-",minWidth:30,minHeight:30,textPadX:40,arrowOffsetX:4,railRadius:2,railWidth:5,railBorder:4,railBorderWidth:1,railBorderColor:"#bec8d9",railBgColor:"#f8fafc",railInset:8,stepInset:10,gripRadius:10,gripWidth:20,gripHeight:20,gripBorder:20,gripBorderWidth:1,gripBorderColor:"#bec8d9",gripBgColor:"#f6f8fa",gripBgActiveColor:"#dbdde0",labelPadding:8,labelOffset:0,tickWidth:1,tickColor:"#333",tickOffset:25,tickLength:7,minorTickOffset:25,minorTickColor:"#333",minorTickLength:4,currentValuePadding:8,currentValueInset:0}},12343:function(o,a,n){var l=n(71828),c=n(85501),u=n(75067),f=n(98292).name,d=u.steps;function p(m,y,v){function g(k,T){return l.coerce(m,y,u,k,T)}for(var b=c(m,y,{name:"steps",handleItemDefaults:h}),w=0,_=0;_0&&(U=U.transition().duration(F.transition.duration).ease(F.transition.easing)),U.attr("transform",p(q-.5*y.gripWidth,F._dims.currentValueTotalHeight))}}function P(j,F){var E=j._dims;return E.inputAreaStart+y.stepInset+(E.inputAreaLength-2*y.stepInset)*Math.min(1,Math.max(0,F))}function z(j,F){var E=j._dims;return Math.min(1,Math.max(0,(F-y.stepInset-E.inputAreaStart)/(E.inputAreaLength-2*y.stepInset-2*E.inputAreaStart)))}function B(j,F,E){var W=E._dims,H=d.ensureSingle(j,"rect",y.railTouchRectClass,function(L){L.call(O,F,j,E).style("pointer-events","all")});H.attr({width:W.inputAreaLength,height:Math.max(W.inputAreaWidth,y.tickOffset+E.ticklen+W.labelHeight)}).call(u.fill,E.bgcolor).attr("opacity",0),f.setTranslate(H,0,W.currentValueTotalHeight)}function N(j,F){var E=F._dims,W=E.inputAreaLength-2*y.railInset,H=d.ensureSingle(j,"rect",y.railRectClass);H.attr({width:W,height:y.railWidth,rx:y.railRadius,ry:y.railRadius,"shape-rendering":"crispEdges"}).call(u.stroke,F.bordercolor).call(u.fill,F.bgcolor).style("stroke-width",F.borderwidth+"px"),f.setTranslate(H,y.railInset,.5*(E.inputAreaWidth-y.railWidth)+E.currentValueTotalHeight)}o.exports=function(j){var F=j._context.staticPlot,E=j._fullLayout,W=function(te,ee){for(var K=te[y.name],Q=[],G=0;G0?[0]:[]);function L(te){te._commandObserver&&(te._commandObserver.remove(),delete te._commandObserver),c.autoMargin(j,_(te))}if(H.enter().append("g").classed(y.containerClassName,!0).style("cursor",F?null:"ew-resize"),H.exit().each(function(){l.select(this).selectAll("g."+y.groupClassName).each(L)}).remove(),W.length!==0){var q=H.selectAll("g."+y.groupClassName).data(W,x);q.enter().append("g").classed(y.groupClassName,!0),q.exit().each(L).remove();for(var U=0;U0||Ce<0){var V={left:[-Se,0],right:[Se,0],top:[0,-Se],bottom:[0,Se]}[A.side];Q.attr("transform",p(V[0],V[1]))}}}return U.call(J),H&&(N?U.on(".opacity",null):(P=0,z=!0,U.text(M).on("mouseover.opacity",function(){l.select(this).transition().duration(v.SHOW_PLACEHOLDER).style("opacity",1)}).on("mouseout.opacity",function(){l.select(this).transition().duration(v.HIDE_PLACEHOLDER).style("opacity",0)})),U.call(y.makeEditable,{gd:w}).on("edit",function(K){C!==void 0?f.call("_guiRestyle",w,S,K,C):f.call("_guiRelayout",w,S,K)}).on("cancel",function(){this.text(this.attr("data-unformatted")).call(J)}).on("input",function(K){this.text(K||" ").call(y.positionText,D.x,D.y)})),U.classed("js-placeholder",z),R}}},7163:function(o,a,n){var l=n(41940),c=n(22399),u=n(1426).extendFlat,f=n(30962).overrideAll,d=n(35025),p=n(44467).templatedArray,h=p("button",{visible:{valType:"boolean"},method:{valType:"enumerated",values:["restyle","relayout","animate","update","skip"],dflt:"restyle"},args:{valType:"info_array",freeLength:!0,items:[{valType:"any"},{valType:"any"},{valType:"any"}]},args2:{valType:"info_array",freeLength:!0,items:[{valType:"any"},{valType:"any"},{valType:"any"}]},label:{valType:"string",dflt:""},execute:{valType:"boolean",dflt:!0}});o.exports=f(p("updatemenu",{_arrayAttrRegexps:[/^updatemenus\[(0|[1-9][0-9]+)\]\.buttons/],visible:{valType:"boolean"},type:{valType:"enumerated",values:["dropdown","buttons"],dflt:"dropdown"},direction:{valType:"enumerated",values:["left","right","up","down"],dflt:"down"},active:{valType:"integer",min:-1,dflt:0},showactive:{valType:"boolean",dflt:!0},buttons:h,x:{valType:"number",min:-2,max:3,dflt:-.05},xanchor:{valType:"enumerated",values:["auto","left","center","right"],dflt:"right"},y:{valType:"number",min:-2,max:3,dflt:1},yanchor:{valType:"enumerated",values:["auto","top","middle","bottom"],dflt:"top"},pad:u(d({editType:"arraydraw"}),{}),font:l({}),bgcolor:{valType:"color"},bordercolor:{valType:"color",dflt:c.borderLine},borderwidth:{valType:"number",min:0,dflt:1,editType:"arraydraw"}}),"arraydraw","from-root")},75909:function(o){o.exports={name:"updatemenus",containerClassName:"updatemenu-container",headerGroupClassName:"updatemenu-header-group",headerClassName:"updatemenu-header",headerArrowClassName:"updatemenu-header-arrow",dropdownButtonGroupClassName:"updatemenu-dropdown-button-group",dropdownButtonClassName:"updatemenu-dropdown-button",buttonClassName:"updatemenu-button",itemRectClassName:"updatemenu-item-rect",itemTextClassName:"updatemenu-item-text",menuIndexAttrName:"updatemenu-active-index",autoMarginIdRoot:"updatemenu-",blankHeaderOpts:{label:" "},minWidth:30,minHeight:30,textPadX:24,arrowPadX:16,rx:2,ry:2,textOffsetX:12,textOffsetY:3,arrowOffsetX:4,gapButtonHeader:5,gapButton:2,activeColor:"#F4FAFF",hoverColor:"#F4FAFF",arrowSymbol:{left:"◄",right:"►",up:"▲",down:"▼"}}},64897:function(o,a,n){var l=n(71828),c=n(85501),u=n(7163),f=n(75909).name,d=u.buttons;function p(m,y,v){function g(b,w){return l.coerce(m,y,u,b,w)}g("visible",c(m,y,{name:"buttons",handleItemDefaults:h}).length>0)&&(g("active"),g("direction"),g("type"),g("showactive"),g("x"),g("y"),l.noneOrAll(m,y,["x","y"]),g("xanchor"),g("yanchor"),g("pad.t"),g("pad.r"),g("pad.b"),g("pad.l"),l.coerceFont(g,"font",v.font),g("bgcolor",v.paper_bgcolor),g("bordercolor"),g("borderwidth"))}function h(m,y){function v(g,b){return l.coerce(m,y,d,g,b)}v("visible",m.method==="skip"||Array.isArray(m.args))&&(v("method"),v("args"),v("args2"),v("label"),v("execute"))}o.exports=function(m,y){c(m,y,{name:f,handleItemDefaults:p})}},13689:function(o,a,n){var l=n(39898),c=n(74875),u=n(7901),f=n(91424),d=n(71828),p=n(63893),h=n(44467).arrayEditor,m=n(18783).LINE_SPACING,y=n(75909),v=n(25849);function g(P){return P._index}function b(P,z){return+P.attr(y.menuIndexAttrName)===z._index}function w(P,z,B,N,j,F,E,W){z.active=E,h(P.layout,y.name,z).applyUpdate("active",E),z.type==="buttons"?x(P,N,null,null,z):z.type==="dropdown"&&(j.attr(y.menuIndexAttrName,"-1"),_(P,N,j,F,z),W||x(P,N,j,F,z))}function _(P,z,B,N,j){var F=d.ensureSingle(z,"g",y.headerClassName,function(U){U.style("pointer-events","all")}),E=j._dims,W=j.active,H=j.buttons[W]||y.blankHeaderOpts,L={y:j.pad.t,yPad:0,x:j.pad.l,xPad:0,index:0},q={width:E.headerWidth,height:E.headerHeight};F.call(k,j,H,P).call(R,j,L,q),d.ensureSingle(z,"text",y.headerArrowClassName,function(U){U.attr("text-anchor","end").call(f.font,j.font).text(y.arrowSymbol[j.direction])}).attr({x:E.headerWidth-y.arrowOffsetX+j.pad.l,y:E.headerHeight/2+y.textOffsetY+j.pad.t}),F.on("click",function(){B.call($,String(b(B,j)?-1:j._index)),x(P,z,B,N,j)}),F.on("mouseover",function(){F.call(C)}),F.on("mouseout",function(){F.call(A,j)}),f.setTranslate(z,E.lx,E.ly)}function x(P,z,B,N,j){B||(B=z).attr("pointer-events","all");var F=function(Q){return+Q.attr(y.menuIndexAttrName)==-1}(B)&&j.type!=="buttons"?[]:j.buttons,E=j.type==="dropdown"?y.dropdownButtonClassName:y.buttonClassName,W=B.selectAll("g."+E).data(d.filterVisible(F)),H=W.enter().append("g").classed(E,!0),L=W.exit();j.type==="dropdown"?(H.attr("opacity","0").transition().attr("opacity","1"),L.transition().attr("opacity","0").remove()):L.remove();var q=0,U=0,J=j._dims,te=["up","down"].indexOf(j.direction)!==-1;j.type==="dropdown"&&(te?U=J.headerHeight+y.gapButtonHeader:q=J.headerWidth+y.gapButtonHeader),j.type==="dropdown"&&j.direction==="up"&&(U=-y.gapButtonHeader+y.gapButton-J.openHeight),j.type==="dropdown"&&j.direction==="left"&&(q=-y.gapButtonHeader+y.gapButton-J.openWidth);var ee={x:J.lx+q+j.pad.l,y:J.ly+U+j.pad.t,yPad:y.gapButton,xPad:y.gapButton,index:0},K={l:ee.x+j.borderwidth,t:ee.y+j.borderwidth};W.each(function(Q,G){var X=l.select(this);X.call(k,j,Q,P).call(R,j,ee),X.on("click",function(){l.event.defaultPrevented||(Q.execute&&(Q.args2&&j.active===G?(w(P,j,0,z,B,N,-1),c.executeAPICommand(P,Q.method,Q.args2)):(w(P,j,0,z,B,N,G),c.executeAPICommand(P,Q.method,Q.args))),P.emit("plotly_buttonclicked",{menu:j,button:Q,active:j.active}))}),X.on("mouseover",function(){X.call(C)}),X.on("mouseout",function(){X.call(A,j),W.call(M,j)})}),W.call(M,j),te?(K.w=Math.max(J.openWidth,J.headerWidth),K.h=ee.y-K.t):(K.w=ee.x-K.l,K.h=Math.max(J.openHeight,J.headerHeight)),K.direction=j.direction,N&&(W.size()?function(Q,G,X,Y,re,ie){var le,se,he,_e=re.direction,Me=_e==="up"||_e==="down",Ce=re._dims,Se=re.active;if(Me)for(se=0,he=0;he0?[0]:[]);if(j.enter().append("g").classed(y.containerClassName,!0).style("cursor","pointer"),j.exit().each(function(){l.select(this).selectAll("g."+y.headerGroupClassName).each(N)}).remove(),B.length!==0){var F=j.selectAll("g."+y.headerGroupClassName).data(B,g);F.enter().append("g").classed(y.headerGroupClassName,!0);for(var E=d.ensureSingle(j,"g",y.dropdownButtonGroupClassName,function(U){U.style("pointer-events","all")}),W=0;WR,z=d.barLength+2*d.barPad,B=d.barWidth+2*d.barPad,N=k,j=S+M;j+B>g&&(j=g-B);var F=this.container.selectAll("rect.scrollbar-horizontal").data(P?[0]:[]);F.exit().on(".drag",null).remove(),F.enter().append("rect").classed("scrollbar-horizontal",!0).call(c.fill,d.barColor),P?(this.hbar=F.attr({rx:d.barRadius,ry:d.barRadius,x:N,y:j,width:z,height:B}),this._hbarXMin=N+z/2,this._hbarTranslateMax=R-z):(delete this.hbar,delete this._hbarXMin,delete this._hbarTranslateMax);var E=M>$,W=d.barWidth+2*d.barPad,H=d.barLength+2*d.barPad,L=k+T,q=S;L+W>v&&(L=v-W);var U=this.container.selectAll("rect.scrollbar-vertical").data(E?[0]:[]);U.exit().on(".drag",null).remove(),U.enter().append("rect").classed("scrollbar-vertical",!0).call(c.fill,d.barColor),E?(this.vbar=U.attr({rx:d.barRadius,ry:d.barRadius,x:L,y:q,width:W,height:H}),this._vbarYMin=q+H/2,this._vbarTranslateMax=$-H):(delete this.vbar,delete this._vbarYMin,delete this._vbarTranslateMax);var J=this.id,te=b-.5,ee=E?w+W+.5:w+.5,K=_-.5,Q=P?x+B+.5:x+.5,G=y._topdefs.selectAll("#"+J).data(P||E?[0]:[]);if(G.exit().remove(),G.enter().append("clipPath").attr("id",J).append("rect"),P||E?(this._clipRect=G.select("rect").attr({x:Math.floor(te),y:Math.floor(K),width:Math.ceil(ee)-Math.floor(te),height:Math.ceil(Q)-Math.floor(K)}),this.container.call(u.setClipUrl,J,this.gd),this.bg.attr({x:k,y:S,width:T,height:M})):(this.bg.attr({width:0,height:0}),this.container.on("wheel",null).on(".drag",null).call(u.setClipUrl,null),delete this._clipRect),P||E){var X=l.behavior.drag().on("dragstart",function(){l.event.sourceEvent.preventDefault()}).on("drag",this._onBoxDrag.bind(this));this.container.on("wheel",null).on("wheel",this._onBoxWheel.bind(this)).on(".drag",null).call(X);var Y=l.behavior.drag().on("dragstart",function(){l.event.sourceEvent.preventDefault(),l.event.sourceEvent.stopPropagation()}).on("drag",this._onBarDrag.bind(this));P&&this.hbar.on(".drag",null).call(Y),E&&this.vbar.on(".drag",null).call(Y)}this.setTranslate(h,m)},d.prototype.disable=function(){(this.hbar||this.vbar)&&(this.bg.attr({width:0,height:0}),this.container.on("wheel",null).on(".drag",null).call(u.setClipUrl,null),delete this._clipRect),this.hbar&&(this.hbar.on(".drag",null),this.hbar.remove(),delete this.hbar,delete this._hbarXMin,delete this._hbarTranslateMax),this.vbar&&(this.vbar.on(".drag",null),this.vbar.remove(),delete this.vbar,delete this._vbarYMin,delete this._vbarTranslateMax)},d.prototype._onBoxDrag=function(){var p=this.translateX,h=this.translateY;this.hbar&&(p-=l.event.dx),this.vbar&&(h-=l.event.dy),this.setTranslate(p,h)},d.prototype._onBoxWheel=function(){var p=this.translateX,h=this.translateY;this.hbar&&(p+=l.event.deltaY),this.vbar&&(h+=l.event.deltaY),this.setTranslate(p,h)},d.prototype._onBarDrag=function(){var p=this.translateX,h=this.translateY;if(this.hbar){var m=p+this._hbarXMin,y=m+this._hbarTranslateMax;p=(f.constrain(l.event.x,m,y)-m)/(y-m)*(this.position.w-this._box.w)}if(this.vbar){var v=h+this._vbarYMin,g=v+this._vbarTranslateMax;h=(f.constrain(l.event.y,v,g)-v)/(g-v)*(this.position.h-this._box.h)}this.setTranslate(p,h)},d.prototype.setTranslate=function(p,h){var m=this.position.w-this._box.w,y=this.position.h-this._box.h;if(p=f.constrain(p||0,0,m),h=f.constrain(h||0,0,y),this.translateX=p,this.translateY=h,this.container.call(u.setTranslate,this._box.l-this.position.l-p,this._box.t-this.position.t-h),this._clipRect&&this._clipRect.attr({x:Math.floor(this.position.l+p-.5),y:Math.floor(this.position.t+h-.5)}),this.hbar){var v=p/m;this.hbar.call(u.setTranslate,p+v*this._hbarTranslateMax,h)}if(this.vbar){var g=h/y;this.vbar.call(u.setTranslate,p,h+g*this._vbarTranslateMax)}}},18783:function(o){o.exports={FROM_BL:{left:0,center:.5,right:1,bottom:0,middle:.5,top:1},FROM_TL:{left:0,center:.5,right:1,bottom:1,middle:.5,top:0},FROM_BR:{left:1,center:.5,right:0,bottom:0,middle:.5,top:1},LINE_SPACING:1.3,CAP_SHIFT:.7,MID_SHIFT:.35,OPPOSITE_SIDE:{left:"right",right:"left",top:"bottom",bottom:"top"}}},24695:function(o){o.exports={axisRefDescription:function(a,n,l){return["If set to a",a,"axis id (e.g. *"+a+"* or","*"+a+"2*), the `"+a+"` position refers to a",a,"coordinate. If set to *paper*, the `"+a+"`","position refers to the distance from the",n,"of the plotting","area in normalized coordinates where *0* (*1*) corresponds to the",n,"("+l+"). If set to a",a,"axis ID followed by","*domain* (separated by a space), the position behaves like for","*paper*, but refers to the distance in fractions of the domain","length from the",n,"of the domain of that axis: e.g.,","*"+a+"2 domain* refers to the domain of the second",a," axis and a",a,"position of 0.5 refers to the","point between the",n,"and the",l,"of the domain of the","second",a,"axis."].join(" ")}}},31562:function(o){o.exports={FORMAT_LINK:"https://github.com/d3/d3-format/tree/v1.4.5#d3-format",DATE_FORMAT_LINK:"https://github.com/d3/d3-time-format/tree/v2.2.3#locale_format"}},74808:function(o){o.exports={COMPARISON_OPS:["=","!=","<",">=",">","<="],COMPARISON_OPS2:["=","<",">=",">","<="],INTERVAL_OPS:["[]","()","[)","(]","][",")(","](",")["],SET_OPS:["{}","}{"],CONSTRAINT_REDUCTION:{"=":"=","<":"<","<=":"<",">":">",">=":">","[]":"[]","()":"[]","[)":"[]","(]":"[]","][":"][",")(":"][","](":"][",")[":"]["}}},37822:function(o){o.exports={SHOW_PLACEHOLDER:100,HIDE_PLACEHOLDER:1e3,DESELECTDIM:.2}},50606:function(o){o.exports={BADNUM:void 0,FP_SAFE:1e-4*Number.MAX_VALUE,ONEMAXYEAR:316224e5,ONEAVGYEAR:315576e5,ONEMINYEAR:31536e6,ONEMAXQUARTER:79488e5,ONEAVGQUARTER:78894e5,ONEMINQUARTER:76896e5,ONEMAXMONTH:26784e5,ONEAVGMONTH:26298e5,ONEMINMONTH:24192e5,ONEWEEK:6048e5,ONEDAY:864e5,ONEHOUR:36e5,ONEMIN:6e4,ONESEC:1e3,EPOCHJD:24405875e-1,ALMOST_EQUAL:.999999,LOG_CLIP:10,MINUS_SIGN:"−"}},32396:function(o,a){a.CSS_DECLARATIONS=[["image-rendering","optimizeSpeed"],["image-rendering","-moz-crisp-edges"],["image-rendering","-o-crisp-edges"],["image-rendering","-webkit-optimize-contrast"],["image-rendering","optimize-contrast"],["image-rendering","crisp-edges"],["image-rendering","pixelated"]],a.STYLE=a.CSS_DECLARATIONS.map(function(n){return n.join(": ")+"; "}).join("")},77922:function(o,a){a.xmlns="http://www.w3.org/2000/xmlns/",a.svg="http://www.w3.org/2000/svg",a.xlink="http://www.w3.org/1999/xlink",a.svgAttrs={xmlns:a.svg,"xmlns:xlink":a.xlink}},8729:function(o,a,n){a.version=n(11506).version,n(7417),n(98847);for(var l=n(73972),c=a.register=l.register,u=n(10641),f=Object.keys(u),d=0;d",""," ",""," plotly-logomark"," "," "," "," "," "," "," "," "," "," "," "," "," ",""].join("")}}},99863:function(o,a){a.isLeftAnchor=function(n){return n.xanchor==="left"||n.xanchor==="auto"&&n.x<=.3333333333333333},a.isCenterAnchor=function(n){return n.xanchor==="center"||n.xanchor==="auto"&&n.x>.3333333333333333&&n.x<.6666666666666666},a.isRightAnchor=function(n){return n.xanchor==="right"||n.xanchor==="auto"&&n.x>=.6666666666666666},a.isTopAnchor=function(n){return n.yanchor==="top"||n.yanchor==="auto"&&n.y>=.6666666666666666},a.isMiddleAnchor=function(n){return n.yanchor==="middle"||n.yanchor==="auto"&&n.y>.3333333333333333&&n.y<.6666666666666666},a.isBottomAnchor=function(n){return n.yanchor==="bottom"||n.yanchor==="auto"&&n.y<=.3333333333333333}},26348:function(o,a,n){var l=n(64872),c=l.mod,u=l.modHalf,f=Math.PI,d=2*f;function p(v){return Math.abs(v[1]-v[0])>d-1e-14}function h(v,g){return u(g-v,d)}function m(v,g){if(p(g))return!0;var b,w;g[0](w=c(w,d))&&(w+=d);var _=c(v,d),x=_+d;return _>=b&&_<=w||x>=b&&x<=w}function y(v,g,b,w,_,x,k){_=_||0,x=x||0;var T,S,M,C,A,D=p([b,w]);function O(z,B){return[z*Math.cos(B)+_,x-z*Math.sin(B)]}D?(T=0,S=f,M=d):b=_&&v<=x);var _,x},pathArc:function(v,g,b,w,_){return y(null,v,g,b,w,_,0)},pathSector:function(v,g,b,w,_){return y(null,v,g,b,w,_,1)},pathAnnulus:function(v,g,b,w,_,x){return y(v,g,b,w,_,x,1)}}},73627:function(o,a){var n=Array.isArray,l=ArrayBuffer,c=DataView;function u(p){return l.isView(p)&&!(p instanceof c)}function f(p){return n(p)||u(p)}function d(p,h,m){if(f(p)){if(f(p[0])){for(var y=m,v=0;vx.max?w.set(_):w.set(+b)}},integer:{coerceFunction:function(b,w,_,x){b%1||!l(b)||x.min!==void 0&&bx.max?w.set(_):w.set(+b)}},string:{coerceFunction:function(b,w,_,x){if(typeof b!="string"){var k=typeof b=="number";x.strict!==!0&&k?w.set(String(b)):w.set(_)}else x.noBlank&&!b?w.set(_):w.set(b)}},color:{coerceFunction:function(b,w,_){c(b).isValid()?w.set(b):w.set(_)}},colorlist:{coerceFunction:function(b,w,_){Array.isArray(b)&&b.length&&b.every(function(x){return c(x).isValid()})?w.set(b):w.set(_)}},colorscale:{coerceFunction:function(b,w,_){w.set(f.get(b,_))}},angle:{coerceFunction:function(b,w,_){b==="auto"?w.set("auto"):l(b)?w.set(y(+b,360)):w.set(_)}},subplotid:{coerceFunction:function(b,w,_,x){var k=x.regex||m(_);typeof b=="string"&&k.test(b)?w.set(b):w.set(_)},validateFunction:function(b,w){var _=w.dflt;return b===_||typeof b=="string"&&!!m(_).test(b)}},flaglist:{coerceFunction:function(b,w,_,x){if((x.extras||[]).indexOf(b)===-1)if(typeof b=="string"){for(var k=b.split("+"),T=0;T=l&&F<=c?F:m}if(typeof F!="string"&&typeof F!="number")return m;F=String(F);var q=M(E),U=F.charAt(0);!q||U!=="G"&&U!=="g"||(F=F.substr(1),E="");var J=q&&E.substr(0,7)==="chinese",te=F.match(J?T:k);if(!te)return m;var ee=te[1],K=te[3]||"1",Q=Number(te[5]||1),G=Number(te[7]||0),X=Number(te[9]||0),Y=Number(te[11]||0);if(q){if(ee.length===2)return m;var re;ee=Number(ee);try{var ie=_.getComponentMethod("calendars","getCal")(E);if(J){var le=K.charAt(K.length-1)==="i";K=parseInt(K,10),re=ie.newDate(ee,ie.toMonthIndex(ee,K,le),Q)}else re=ie.newDate(ee,Number(K),Q)}catch{return m}return re?(re.toJD()-w)*y+G*v+X*g+Y*b:m}ee=ee.length===2?(Number(ee)+2e3-S)%100+S:Number(ee),K-=1;var se=new Date(Date.UTC(2e3,K,Q,G,X));return se.setUTCFullYear(ee),se.getUTCMonth()!==K||se.getUTCDate()!==Q?m:se.getTime()+Y*b},l=a.MIN_MS=a.dateTime2ms("-9999"),c=a.MAX_MS=a.dateTime2ms("9999-12-31 23:59:59.9999"),a.isDateTime=function(F,E){return a.dateTime2ms(F,E)!==m};var A=90*y,D=3*v,O=5*g;function R(F,E,W,H,L){if((E||W||H||L)&&(F+=" "+C(E,2)+":"+C(W,2),(H||L)&&(F+=":"+C(H,2),L))){for(var q=4;L%10==0;)q-=1,L/=10;F+="."+C(L,q)}return F}a.ms2DateTime=function(F,E,W){if(typeof F!="number"||!(F>=l&&F<=c))return m;E||(E=0);var H,L,q,U,J,te,ee=Math.floor(10*p(F+.05,1)),K=Math.round(F-ee/10);if(M(W)){var Q=Math.floor(K/y)+w,G=Math.floor(p(F,y));try{H=_.getComponentMethod("calendars","getCal")(W).fromJD(Q).formatDate("yyyy-mm-dd")}catch{H=x("G%Y-%m-%d")(new Date(K))}if(H.charAt(0)==="-")for(;H.length<11;)H="-0"+H.substr(1);else for(;H.length<10;)H="0"+H;L=E=l+y&&F<=c-y))return m;var E=Math.floor(10*p(F+.05,1)),W=new Date(Math.round(F-E/10));return R(u("%Y-%m-%d")(W),W.getHours(),W.getMinutes(),W.getSeconds(),10*W.getUTCMilliseconds()+E)},a.cleanDate=function(F,E,W){if(F===m)return E;if(a.isJSDate(F)||typeof F=="number"&&isFinite(F)){if(M(W))return d.error("JS Dates and milliseconds are incompatible with world calendars",F),E;if(!(F=a.ms2DateTimeLocal(+F))&&E!==void 0)return E}else if(!a.isDateTime(F,W))return d.error("unrecognized date",F),E;return F};var $=/%\d?f/g,P=/%h/g,z={1:"1",2:"1",3:"2",4:"2"};function B(F,E,W,H){F=F.replace($,function(q){var U=Math.min(+q.charAt(1)||6,6);return(E/1e3%1+2).toFixed(U).substr(2).replace(/0+$/,"")||"0"});var L=new Date(Math.floor(E+.05));if(F=F.replace(P,function(){return z[W("%q")(L)]}),M(H))try{F=_.getComponentMethod("calendars","worldCalFmt")(F,E,H)}catch{return"Invalid"}return W(F)(L)}var N=[59,59.9,59.99,59.999,59.9999];a.formatDate=function(F,E,W,H,L,q){if(L=M(L)&&L,!E)if(W==="y")E=q.year;else if(W==="m")E=q.month;else{if(W!=="d")return function(U,J){var te=p(U+.05,y),ee=C(Math.floor(te/v),2)+":"+C(p(Math.floor(te/g),60),2);if(J!=="M"){f(J)||(J=0);var K=(100+Math.min(p(U/b,60),N[J])).toFixed(J).substr(1);J>0&&(K=K.replace(/0+$/,"").replace(/[\.]$/,"")),ee+=":"+K}return ee}(F,W)+` +`+B(q.dayMonthYear,F,H,L);E=q.dayMonth+` +`+q.year}return B(E,F,H,L)};var j=3*y;a.incrementMonth=function(F,E,W){W=M(W)&&W;var H=p(F,y);if(F=Math.round(F-H),W)try{var L=Math.round(F/y)+w,q=_.getComponentMethod("calendars","getCal")(W),U=q.fromJD(L);return E%12?q.add(U,E,"m"):q.add(U,E/12,"y"),(U.toJD()-w)*y+H}catch{d.error("invalid ms "+F+" in calendar "+W)}var J=new Date(F+j);return J.setUTCMonth(J.getUTCMonth()+E)+H-j},a.findExactDates=function(F,E){for(var W,H,L=0,q=0,U=0,J=0,te=M(E)&&_.getComponentMethod("calendars","getCal")(E),ee=0;ee1||D<0||D>1?null:{x:h+x*D,y:m+S*D}}function p(h,m,y,v,g){var b=v*h+g*m;if(b<0)return v*v+g*g;if(b>y){var w=v-h,_=g-m;return w*w+_*_}var x=v*m-g*h;return x*x/y}a.segmentsIntersect=d,a.segmentDistance=function(h,m,y,v,g,b,w,_){if(d(h,m,y,v,g,b,w,_))return 0;var x=y-h,k=v-m,T=w-g,S=_-b,M=x*x+k*k,C=T*T+S*S,A=Math.min(p(x,k,M,g-h,b-m),p(x,k,M,w-h,_-m),p(T,S,C,h-g,m-b),p(T,S,C,y-g,v-b));return Math.sqrt(A)},a.getTextLocation=function(h,m,y,v){if(h===c&&v===u||(l={},c=h,u=v),l[y])return l[y];var g=h.getPointAtLength(f(y-v/2,m)),b=h.getPointAtLength(f(y+v/2,m)),w=Math.atan((b.y-g.y)/(b.x-g.x)),_=h.getPointAtLength(f(y,m)),x={x:(4*_.x+g.x+b.x)/6,y:(4*_.y+g.y+b.y)/6,theta:w};return l[y]=x,x},a.clearLocationCache=function(){c=null},a.getVisibleSegment=function(h,m,y){var v,g,b=m.left,w=m.right,_=m.top,x=m.bottom,k=0,T=h.getTotalLength(),S=T;function M(A){var D=h.getPointAtLength(A);A===0?v=D:A===T&&(g=D);var O=D.xw?D.x-w:0,R=D.y<_?_-D.y:D.y>x?D.y-x:0;return Math.sqrt(O*O+R*R)}for(var C=M(k);C;){if((k+=C+y)>S)return;C=M(k)}for(C=M(S);C;){if(k>(S-=C+y))return;C=M(S)}return{min:k,max:S,len:S-k,total:T,isClosed:k===0&&S===T&&Math.abs(v.x-g.x)<.1&&Math.abs(v.y-g.y)<.1}},a.findPointOnPath=function(h,m,y,v){for(var g,b,w,_=(v=v||{}).pathLength||h.getTotalLength(),x=v.tolerance||.001,k=v.iterationLimit||30,T=h.getPointAtLength(0)[y]>h.getPointAtLength(_)[y]?-1:1,S=0,M=0,C=_;S0?C=g:M=g,S++}return b}},23389:function(o){o.exports=function(a){return a}},39240:function(o){o.exports=function(a,n){if(!n)return a;var l=1/Math.abs(n),c=l>1?(l*a+l*n)/l:a+n,u=String(c).length;if(u>16){var f=String(n).length;if(u>=String(a).length+f){var d=parseFloat(c).toPrecision(12);d.indexOf("e+")===-1&&(c=+d)}}return c}},71828:function(o,a,n){var l=n(39898),c=n(84096).g0,u=n(60721).WU,f=n(92770),d=n(50606),p=d.FP_SAFE,h=-p,m=d.BADNUM,y=o.exports={};y.adjustFormat=function(G){return!G||/^\d[.]\df/.test(G)||/[.]\d%/.test(G)?G:G==="0.f"?"~f":/^\d%/.test(G)?"~%":/^\ds/.test(G)?"~s":!/^[~,.0$]/.test(G)&&/[&fps]/.test(G)?"~"+G:G};var v={};y.warnBadFormat=function(G){var X=String(G);v[X]||(v[X]=1,y.warn('encountered bad format: "'+X+'"'))},y.noFormat=function(G){return String(G)},y.numberFormat=function(G){var X;try{X=u(y.adjustFormat(G))}catch{return y.warnBadFormat(G),y.noFormat}return X},y.nestedProperty=n(65487),y.keyedContainer=n(66636),y.relativeAttr=n(6962),y.isPlainObject=n(41965),y.toLogRange=n(58163),y.relinkPrivateKeys=n(51332);var g=n(73627);y.isTypedArray=g.isTypedArray,y.isArrayOrTypedArray=g.isArrayOrTypedArray,y.isArray1D=g.isArray1D,y.ensureArray=g.ensureArray,y.concat=g.concat,y.maxRowLength=g.maxRowLength,y.minRowLength=g.minRowLength;var b=n(64872);y.mod=b.mod,y.modHalf=b.modHalf;var w=n(96554);y.valObjectMeta=w.valObjectMeta,y.coerce=w.coerce,y.coerce2=w.coerce2,y.coerceFont=w.coerceFont,y.coercePattern=w.coercePattern,y.coerceHoverinfo=w.coerceHoverinfo,y.coerceSelectionMarkerOpacity=w.coerceSelectionMarkerOpacity,y.validate=w.validate;var _=n(41631);y.dateTime2ms=_.dateTime2ms,y.isDateTime=_.isDateTime,y.ms2DateTime=_.ms2DateTime,y.ms2DateTimeLocal=_.ms2DateTimeLocal,y.cleanDate=_.cleanDate,y.isJSDate=_.isJSDate,y.formatDate=_.formatDate,y.incrementMonth=_.incrementMonth,y.dateTick0=_.dateTick0,y.dfltRange=_.dfltRange,y.findExactDates=_.findExactDates,y.MIN_MS=_.MIN_MS,y.MAX_MS=_.MAX_MS;var x=n(65888);y.findBin=x.findBin,y.sorterAsc=x.sorterAsc,y.sorterDes=x.sorterDes,y.distinctVals=x.distinctVals,y.roundUp=x.roundUp,y.sort=x.sort,y.findIndexOfMin=x.findIndexOfMin,y.sortObjectKeys=n(78607);var k=n(80038);y.aggNums=k.aggNums,y.len=k.len,y.mean=k.mean,y.median=k.median,y.midRange=k.midRange,y.variance=k.variance,y.stdev=k.stdev,y.interp=k.interp;var T=n(35657);y.init2dArray=T.init2dArray,y.transposeRagged=T.transposeRagged,y.dot=T.dot,y.translationMatrix=T.translationMatrix,y.rotationMatrix=T.rotationMatrix,y.rotationXYMatrix=T.rotationXYMatrix,y.apply3DTransform=T.apply3DTransform,y.apply2DTransform=T.apply2DTransform,y.apply2DTransform2=T.apply2DTransform2,y.convertCssMatrix=T.convertCssMatrix,y.inverseTransformMatrix=T.inverseTransformMatrix;var S=n(26348);y.deg2rad=S.deg2rad,y.rad2deg=S.rad2deg,y.angleDelta=S.angleDelta,y.angleDist=S.angleDist,y.isFullCircle=S.isFullCircle,y.isAngleInsideSector=S.isAngleInsideSector,y.isPtInsideSector=S.isPtInsideSector,y.pathArc=S.pathArc,y.pathSector=S.pathSector,y.pathAnnulus=S.pathAnnulus;var M=n(99863);y.isLeftAnchor=M.isLeftAnchor,y.isCenterAnchor=M.isCenterAnchor,y.isRightAnchor=M.isRightAnchor,y.isTopAnchor=M.isTopAnchor,y.isMiddleAnchor=M.isMiddleAnchor,y.isBottomAnchor=M.isBottomAnchor;var C=n(87642);y.segmentsIntersect=C.segmentsIntersect,y.segmentDistance=C.segmentDistance,y.getTextLocation=C.getTextLocation,y.clearLocationCache=C.clearLocationCache,y.getVisibleSegment=C.getVisibleSegment,y.findPointOnPath=C.findPointOnPath;var A=n(1426);y.extendFlat=A.extendFlat,y.extendDeep=A.extendDeep,y.extendDeepAll=A.extendDeepAll,y.extendDeepNoArrays=A.extendDeepNoArrays;var D=n(47769);y.log=D.log,y.warn=D.warn,y.error=D.error;var O=n(30587);y.counterRegex=O.counter;var R=n(79990);y.throttle=R.throttle,y.throttleDone=R.done,y.clearThrottle=R.clear;var $=n(24401);function P(G){var X={};for(var Y in G)for(var re=G[Y],ie=0;iep||G=X)&&f(G)&&G>=0&&G%1==0},y.noop=n(64213),y.identity=n(23389),y.repeat=function(G,X){for(var Y=new Array(X),re=0;reY?Math.max(Y,Math.min(X,G)):Math.max(X,Math.min(Y,G))},y.bBoxIntersect=function(G,X,Y){return Y=Y||0,G.left<=X.right+Y&&X.left<=G.right+Y&&G.top<=X.bottom+Y&&X.top<=G.bottom+Y},y.simpleMap=function(G,X,Y,re,ie){for(var le=G.length,se=new Array(le),he=0;he=Math.pow(2,Y)?ie>10?(y.warn("randstr failed uniqueness"),_e):G(X,Y,re,(ie||0)+1):_e},y.OptionControl=function(G,X){G||(G={}),X||(X="opt");var Y={optionList:[],_newoption:function(re){re[X]=G,Y[re.name]=re,Y.optionList.push(re)}};return Y["_"+X]=G,Y},y.smooth=function(G,X){if((X=Math.round(X)||0)<2)return G;var Y,re,ie,le,se=G.length,he=2*se,_e=2*X-1,Me=new Array(_e),Ce=new Array(se);for(Y=0;Y<_e;Y++)Me[Y]=(1-Math.cos(Math.PI*(Y+1)/X))/(2*X);for(Y=0;Y=he&&(ie-=he*Math.floor(ie/he)),ie<0?ie=-1-ie:ie>=se&&(ie=he-1-ie),le+=G[ie]*Me[re];Ce[Y]=le}return Ce},y.syncOrAsync=function(G,X,Y){var re;function ie(){return y.syncOrAsync(G,X,Y)}for(;G.length;)if((re=(0,G.splice(0,1)[0])(X))&&re.then)return re.then(ie);return Y&&Y(X)},y.stripTrailingSlash=function(G){return G.substr(-1)==="/"?G.substr(0,G.length-1):G},y.noneOrAll=function(G,X,Y){if(G){var re,ie=!1,le=!0;for(re=0;re0?ie:0})},y.fillArray=function(G,X,Y,re){if(re=re||y.identity,y.isArrayOrTypedArray(G))for(var ie=0;ie1?ie+se[1]:"";if(le&&(se.length>1||he.length>4||Y))for(;re.test(he);)he=he.replace(re,"$1"+le+"$2");return he+_e},y.TEMPLATE_STRING_REGEX=/%{([^\s%{}:]*)([:|\|][^}]*)?}/g;var W=/^\w*$/;y.templateString=function(G,X){var Y={};return G.replace(y.TEMPLATE_STRING_REGEX,function(re,ie){var le;return W.test(ie)?le=X[ie]:(Y[ie]=Y[ie]||y.nestedProperty(X,ie).get,le=Y[ie]()),y.isValidTextValue(le)?le:""})};var H={max:10,count:0,name:"hovertemplate"};y.hovertemplateString=function(){return te.apply(H,arguments)};var L={max:10,count:0,name:"texttemplate"};y.texttemplateString=function(){return te.apply(L,arguments)};var q=/^(\S+)([\*\/])(-?\d+(\.\d+)?)$/,U={max:10,count:0,name:"texttemplate",parseMultDiv:!0};y.texttemplateStringForShapes=function(){return te.apply(U,arguments)};var J=/^[:|\|]/;function te(G,X,Y){var re=this,ie=arguments;X||(X={});var le={};return G.replace(y.TEMPLATE_STRING_REGEX,function(se,he,_e){var Me=he==="_xother"||he==="_yother",Ce=he==="_xother_"||he==="_yother_",Se=he==="xother_"||he==="yother_",ce=he==="xother"||he==="yother"||Me||Se||Ce,ye=he;(Me||Ce)&&(ye=ye.substring(1)),(Se||Ce)&&(ye=ye.substring(0,ye.length-1));var V,ne,fe,xe=null,ue=null;if(re.parseMultDiv){var ge=function(Pe){var Re=Pe.match(q);return Re?{key:Re[1],op:Re[2],number:Number(Re[3])}:{key:Pe,op:null,number:null}}(ye);ye=ge.key,xe=ge.op,ue=ge.number}if(ce){if((V=X[ye])===void 0)return""}else for(fe=3;fe=48&&se<=57,Me=he>=48&&he<=57;if(_e&&(re=10*re+se-48),Me&&(ie=10*ie+he-48),!_e||!Me){if(re!==ie)return re-ie;if(se!==he)return se-he}}return ie-re};var ee=2e9;y.seedPseudoRandom=function(){ee=2e9},y.pseudoRandom=function(){var G=ee;return ee=(69069*ee+1)%4294967296,Math.abs(ee-G)<429496729?y.pseudoRandom():ee/4294967296},y.fillText=function(G,X,Y){var re=Array.isArray(Y)?function(se){Y.push(se)}:function(se){Y.text=se},ie=y.extractOption(G,X,"htx","hovertext");if(y.isValidTextValue(ie))return re(ie);var le=y.extractOption(G,X,"tx","text");return y.isValidTextValue(le)?re(le):void 0},y.isValidTextValue=function(G){return G||G===0},y.formatPercent=function(G,X){X=X||0;for(var Y=(Math.round(100*G*Math.pow(10,X))*Math.pow(.1,X)).toFixed(X)+"%",re=0;re1&&(Me=1):Me=0,y.strTranslate(ie-Me*(Y+se),le-Me*(re+he))+y.strScale(Me)+(_e?"rotate("+_e+(X?"":" "+Y+" "+re)+")":"")},y.setTransormAndDisplay=function(G,X){G.attr("transform",y.getTextTransform(X)),G.style("display",X.scale?null:"none")},y.ensureUniformFontSize=function(G,X){var Y=y.extendFlat({},X);return Y.size=Math.max(X.size,G._fullLayout.uniformtext.minsize||0),Y},y.join2=function(G,X,Y){var re=G.length;return re>1?G.slice(0,-1).join(X)+Y+G[re-1]:G.join(X)},y.bigFont=function(G){return Math.round(1.2*G)};var K=y.getFirefoxVersion(),Q=K!==null&&K<86;y.getPositionFromD3Event=function(){return Q?[l.event.layerX,l.event.layerY]:[l.event.offsetX,l.event.offsetY]}},41965:function(o){o.exports=function(a){return window&&window.process&&window.process.versions?Object.prototype.toString.call(a)==="[object Object]":Object.prototype.toString.call(a)==="[object Object]"&&Object.getPrototypeOf(a).hasOwnProperty("hasOwnProperty")}},66636:function(o,a,n){var l=n(65487),c=/^\w*$/;o.exports=function(u,f,d,p){var h,m,y;d=d||"name",p=p||"value";var v={};f&&f.length?(y=l(u,f),m=y.get()):m=u,f=f||"";var g={};if(m)for(h=0;h2)return v[x]=2|v[x],w.set(_,null);if(b){for(h=x;h1){var d=["LOG:"];for(f=0;f1){var p=[];for(f=0;f"),"long")}},u.warn=function(){var f;if(l.logging>0){var d=["WARN:"];for(f=0;f0){var p=[];for(f=0;f"),"stick")}},u.error=function(){var f;if(l.logging>0){var d=["ERROR:"];for(f=0;f0){var p=[];for(f=0;f"),"stick")}}},77310:function(o,a,n){var l=n(39898);o.exports=function(c,u,f){var d=c.selectAll("g."+f.replace(/\s/g,".")).data(u,function(h){return h[0].trace.uid});d.exit().remove(),d.enter().append("g").attr("class",f),d.order();var p=c.classed("rangeplot")?"nodeRangePlot3":"node3";return d.each(function(h){h[0][p]=l.select(this)}),d}},35657:function(o,a,n){var l=n(79576);a.init2dArray=function(c,u){for(var f=new Array(c),d=0;dn/2?a-Math.round(a/n)*n:a}}},65487:function(o,a,n){var l=n(92770),c=n(73627).isArrayOrTypedArray;function u(v,g){return function(){var b,w,_,x,k,T=v;for(x=0;x/g),w=0;wm||S===c||Sv||k&&g(x))}:function(x,k){var T=x[0],S=x[1];if(T===c||Tm||S===c||Sv)return!1;var M,C,A,D,O,R=p.length,$=p[0][0],P=p[0][1],z=0;for(M=1;MMath.max(C,$)||S>Math.max(A,P)))if(Sw||Math.abs(l(y,x))>h)return!0;return!1},u.filter=function(f,d){var p=[f[0]],h=0,m=0;function y(v){f.push(v);var g=p.length,b=h;p.splice(m+1);for(var w=b+1;w1&&y(f.pop()),{addPt:y,raw:f,filtered:p}}},45142:function(o,a,n){var l=n(92770),c=n(35791);o.exports=function(u){var f;if(typeof(f=u&&u.hasOwnProperty("userAgent")?u.userAgent:function(){var g;return typeof navigator<"u"&&(g=navigator.userAgent),g&&g.headers&&typeof g.headers["user-agent"]=="string"&&(g=g.headers["user-agent"]),g}())!="string")return!0;var d=c({ua:{headers:{"user-agent":f}},tablet:!0,featureDetect:!1});if(!d){for(var p=f.split(" "),h=1;h-1;m--){var y=p[m];if(y.substr(0,8)==="Version/"){var v=y.substr(8).split(".")[0];if(l(v)&&(v=+v),v>=13)return!0}}}return d}},75138:function(o){o.exports=function(a,n){if(n instanceof RegExp){for(var l=n.toString(),c=0;cc.queueLength&&(f.undoQueue.queue.shift(),f.undoQueue.index--))},startSequence:function(f){f.undoQueue=f.undoQueue||{index:0,queue:[],sequence:!1},f.undoQueue.sequence=!0,f.undoQueue.beginSequence=!0},stopSequence:function(f){f.undoQueue=f.undoQueue||{index:0,queue:[],sequence:!1},f.undoQueue.sequence=!1,f.undoQueue.beginSequence=!1},undo:function(f){var d,p;if(!(f.undoQueue===void 0||isNaN(f.undoQueue.index)||f.undoQueue.index<=0)){for(f.undoQueue.index--,d=f.undoQueue.queue[f.undoQueue.index],f.undoQueue.inSequence=!0,p=0;p=f.undoQueue.queue.length)){for(d=f.undoQueue.queue[f.undoQueue.index],f.undoQueue.inSequence=!0,p=0;pg}function y(v,g){return v>=g}a.findBin=function(v,g,b){if(l(g.start))return b?Math.ceil((v-g.start)/g.size-d)-1:Math.floor((v-g.start)/g.size+d);var w,_,x=0,k=g.length,T=0,S=k>1?(g[k-1]-g[0])/(k-1):1;for(_=S>=0?b?p:h:b?y:m,v+=S*d*(b?-1:1)*(S>=0?1:-1);x90&&c.log("Long binary search..."),x-1},a.sorterAsc=function(v,g){return v-g},a.sorterDes=function(v,g){return g-v},a.distinctVals=function(v){var g,b=v.slice();for(b.sort(a.sorterAsc),g=b.length-1;g>-1&&b[g]===f;g--);for(var w,_=b[g]-b[0]||1,x=_/(g||1)/1e4,k=[],T=0;T<=g;T++){var S=b[T],M=S-w;w===void 0?(k.push(S),w=S):M>x&&(_=Math.min(_,M),k.push(S),w=S)}return{vals:k,minDiff:_}},a.roundUp=function(v,g,b){for(var w,_=0,x=g.length-1,k=0,T=b?0:1,S=b?1:0,M=b?Math.ceil:Math.floor;_0&&(w=1),b&&w)return v.sort(g)}return w?v:v.reverse()},a.findIndexOfMin=function(v,g){g=g||u;for(var b,w=1/0,_=0;_d.length)&&(p=d.length),l(f)||(f=!1),c(d[0])){for(m=new Array(p),h=0;hu.length-1)return u[u.length-1];var d=f%1;return d*u[Math.ceil(f)]+(1-d)*u[Math.floor(f)]}},3883:function(o,a,n){var l=n(32396),c=n(91424),u=n(71828),f=null;o.exports=function(){if(f!==null)return f;f=!1;var d=u.isIE()||u.isSafari()||u.isIOS();if(window.navigator.userAgent&&!d){var p=Array.from(l.CSS_DECLARATIONS).reverse(),h=window.CSS&&window.CSS.supports||window.supportsCSS;if(typeof h=="function")f=p.some(function(v){return h.apply(null,v)});else{var m=c.tester.append("image").attr("style",l.STYLE),y=window.getComputedStyle(m.node()).imageRendering;f=p.some(function(v){var g=v[1];return y===g||y===g.toLowerCase()}),m.remove()}}return f}},63893:function(o,a,n){var l=n(39898),c=n(71828),u=c.strTranslate,f=n(77922),d=n(18783).LINE_SPACING,p=/([^$]*)([$]+[^$]*[$]+)([^$]*)/;a.convertToTspans=function(F,E,W){var H=F.text(),L=!F.attr("data-notex")&&E&&E._context.typesetMath&&typeof MathJax<"u"&&H.match(p),q=l.select(F.node().parentNode);if(!q.empty()){var U=F.attr("class")?F.attr("class").split(" ")[0]:"text";return U+="-math",q.selectAll("svg."+U).remove(),q.selectAll("g."+U+"-group").remove(),F.style("display",null).attr({"data-unformatted":H,"data-math":"N"}),L?(E&&E._promises||[]).push(new Promise(function(te){F.style("display","none");var ee=parseInt(F.node().style.fontSize,10),K={fontSize:ee};(function(Q,G,X){var Y,re,ie,le,se=parseInt((MathJax.version||"").split(".")[0]);if(se===2||se===3){var he=function(){var Me="math-output-"+c.randstr({},64),Ce=(le=l.select("body").append("div").attr({id:Me}).style({visibility:"hidden",position:"absolute","font-size":G.fontSize+"px"}).text(Q.replace(h,"\\lt ").replace(m,"\\gt "))).node();return se===2?MathJax.Hub.Typeset(Ce):MathJax.typeset([Ce])},_e=function(){var Me=le.select(se===2?".MathJax_SVG":".MathJax"),Ce=!Me.empty()&&le.select("svg").node();if(Ce){var Se,ce=Ce.getBoundingClientRect();Se=se===2?l.select("body").select("#MathJax_SVG_glyphs"):Me.select("defs"),X(Me,Se,ce)}else c.log("There was an error in the tex syntax.",Q),X();le.remove()};se===2?MathJax.Hub.Queue(function(){return re=c.extendDeepAll({},MathJax.Hub.config),ie=MathJax.Hub.processSectionDelay,MathJax.Hub.processSectionDelay!==void 0&&(MathJax.Hub.processSectionDelay=0),MathJax.Hub.Config({messageStyle:"none",tex2jax:{inlineMath:y},displayAlign:"left"})},function(){if((Y=MathJax.Hub.config.menuSettings.renderer)!=="SVG")return MathJax.Hub.setRenderer("SVG")},he,_e,function(){if(Y!=="SVG")return MathJax.Hub.setRenderer(Y)},function(){return ie!==void 0&&(MathJax.Hub.processSectionDelay=ie),MathJax.Hub.Config(re)}):se===3&&(re=c.extendDeepAll({},MathJax.config),MathJax.config.tex||(MathJax.config.tex={}),MathJax.config.tex.inlineMath=y,(Y=MathJax.config.startup.output)!=="svg"&&(MathJax.config.startup.output="svg"),MathJax.startup.defaultReady(),MathJax.startup.promise.then(function(){he(),_e(),Y!=="svg"&&(MathJax.config.startup.output=Y),MathJax.config=re}))}else c.warn("No MathJax version:",MathJax.version)})(L[2],K,function(Q,G,X){q.selectAll("svg."+U).remove(),q.selectAll("g."+U+"-group").remove();var Y=Q&&Q.select("svg");if(!Y||!Y.node())return J(),void te();var re=q.append("g").classed(U+"-group",!0).attr({"pointer-events":"none","data-unformatted":H,"data-math":"Y"});re.node().appendChild(Y.node()),G&&G.node()&&Y.node().insertBefore(G.node().cloneNode(!0),Y.node().firstChild);var ie=X.width,le=X.height;Y.attr({class:U,height:le,preserveAspectRatio:"xMinYMin meet"}).style({overflow:"visible","pointer-events":"none"});var se=F.node().style.fill||"black",he=Y.select("g");he.attr({fill:se,stroke:se});var _e=he.node().getBoundingClientRect(),Me=_e.width,Ce=_e.height;(Me>ie||Ce>le)&&(Y.style("overflow","hidden"),Me=(_e=Y.node().getBoundingClientRect()).width,Ce=_e.height);var Se=+F.attr("x"),ce=+F.attr("y"),ye=-(ee||F.node().getBoundingClientRect().height)/4;if(U[0]==="y")re.attr({transform:"rotate("+[-90,Se,ce]+")"+u(-Me/2,ye-Ce/2)});else if(U[0]==="l")ce=ye-Ce/2;else if(U[0]==="a"&&U.indexOf("atitle")!==0)Se=0,ce=ye;else{var V=F.attr("text-anchor");Se-=Me*(V==="middle"?.5:V==="end"?1:0),ce=ce+ye-Ce/2}Y.attr({x:Se,y:ce}),W&&W.call(F,re),te(re)})})):J(),F}function J(){q.empty()||(U=F.attr("class")+"-math",q.select("svg."+U).remove()),F.text("").style("white-space","pre");var te=function(ee,K){K=K.replace(x," ");var Q,G=!1,X=[],Y=-1;function re(){Y++;var ue=document.createElementNS(f.svg,"tspan");l.select(ue).attr({class:"line",dy:Y*d+"em"}),ee.appendChild(ue),Q=ue;var ge=X;if(X=[{node:ue}],ge.length>1)for(var be=1;be doesnt match end tag <"+ue+">. Pretending it did match.",K),Q=X[X.length-1].node}else c.log("Ignoring unexpected end tag .",K)}S.test(K)?re():(Q=ee,X=[{node:ee}]);for(var he=K.split(k),_e=0;_e|>|>)/g,y=[["$","$"],["\\(","\\)"]],v={sup:"font-size:70%",sub:"font-size:70%",b:"font-weight:bold",i:"font-style:italic",a:"cursor:pointer",span:"",em:"font-style:italic;font-weight:bold"},g={sub:"0.3em",sup:"-0.6em"},b={sub:"-0.21em",sup:"0.42em"},w="​",_=["http:","https:","mailto:","",void 0,":"],x=a.NEWLINES=/(\r\n?|\n)/g,k=/(<[^<>]*>)/,T=/<(\/?)([^ >]*)(\s+(.*))?>/i,S=//i;a.BR_TAG_ALL=//gi;var M=/(^|[\s"'])style\s*=\s*("([^"]*);?"|'([^']*);?')/i,C=/(^|[\s"'])href\s*=\s*("([^"]*)"|'([^']*)')/i,A=/(^|[\s"'])target\s*=\s*("([^"\s]*)"|'([^'\s]*)')/i,D=/(^|[\s"'])popup\s*=\s*("([\w=,]*)"|'([\w=,]*)')/i;function O(F,E){if(!F)return null;var W=F.match(E),H=W&&(W[3]||W[4]);return H&&z(H)}var R=/(^|;)\s*color:/;a.plainText=function(F,E){for(var W=(E=E||{}).len!==void 0&&E.len!==-1?E.len:1/0,H=E.allowedTags!==void 0?E.allowedTags:["br"],L=F.split(k),q=[],U="",J=0,te=0;te3?q.push(ee.substr(0,X-3)+"..."):q.push(ee.substr(0,X));break}U=""}}return q.join("")};var $={mu:"μ",amp:"&",lt:"<",gt:">",nbsp:" ",times:"×",plusmn:"±",deg:"°"},P=/&(#\d+|#x[\da-fA-F]+|[a-z]+);/g;function z(F){return F.replace(P,function(E,W){return(W.charAt(0)==="#"?function(H){if(!(H>1114111)){var L=String.fromCodePoint;if(L)return L(H);var q=String.fromCharCode;return H<=65535?q(H):q(55232+(H>>10),H%1024+56320)}}(W.charAt(1)==="x"?parseInt(W.substr(2),16):parseInt(W.substr(1),10)):$[W])||E})}function B(F){var E=encodeURI(decodeURI(F)),W=document.createElement("a"),H=document.createElement("a");W.href=F,H.href=E;var L=W.protocol,q=H.protocol;return _.indexOf(L)!==-1&&_.indexOf(q)!==-1?E:""}function N(F,E,W){var H,L,q,U=W.horizontalAlign,J=W.verticalAlign||"top",te=F.node().getBoundingClientRect(),ee=E.node().getBoundingClientRect();return L=J==="bottom"?function(){return te.bottom-H.height}:J==="middle"?function(){return te.top+(te.height-H.height)/2}:function(){return te.top},q=U==="right"?function(){return te.right-H.width}:U==="center"?function(){return te.left+(te.width-H.width)/2}:function(){return te.left},function(){H=this.node().getBoundingClientRect();var K=q()-ee.left,Q=L()-ee.top,G=W.gd||{};if(W.gd){G._fullLayout._calcInverseTransform(G);var X=c.apply3DTransform(G._fullLayout._invTransform)(K,Q);K=X[0],Q=X[1]}return this.style({top:Q+"px",left:K+"px","z-index":1e3}),this}}a.convertEntities=z,a.sanitizeHTML=function(F){F=F.replace(x," ");for(var E=document.createElement("p"),W=E,H=[],L=F.split(k),q=0;qd.ts+u?m():d.timer=setTimeout(function(){m(),d.timer=null},u)},a.done=function(c){var u=n[c];return u&&u.timer?new Promise(function(f){var d=u.onDone;u.onDone=function(){d&&d(),f(),u.onDone=null}}):Promise.resolve()},a.clear=function(c){if(c)l(n[c]),delete n[c];else for(var u in n)a.clear(u)}},58163:function(o,a,n){var l=n(92770);o.exports=function(c,u){if(c>0)return Math.log(c)/Math.LN10;var f=Math.log(Math.min(u[0],u[1]))/Math.LN10;return l(f)||(f=Math.log(Math.max(u[0],u[1]))/Math.LN10-6),f}},37815:function(o){o.exports={moduleType:"locale",name:"en-US",dictionary:{"Click to enter Colorscale title":"Click to enter Colorscale title"},format:{date:"%m/%d/%Y"}}},92177:function(o){o.exports={moduleType:"locale",name:"en",dictionary:{"Click to enter Colorscale title":"Click to enter Colourscale title"},format:{days:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],shortDays:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],months:["January","February","March","April","May","June","July","August","September","October","November","December"],shortMonths:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],periods:["AM","PM"],dateTime:"%a %b %e %X %Y",date:"%d/%m/%Y",time:"%H:%M:%S",decimal:".",thousands:",",grouping:[3],currency:["$",""],year:"%Y",month:"%b %Y",dayMonth:"%b %-d",dayMonthYear:"%b %-d, %Y"}}},14458:function(o,a,n){var l=n(73972);o.exports=function(c){for(var u,f,d=l.layoutArrayContainers,p=l.layoutArrayRegexes,h=c.split("[")[0],m=0;m0&&f.log("Clearing previous rejected promises from queue."),C._promises=[]},a.cleanLayout=function(C){var A,D;C||(C={}),C.xaxis1&&(C.xaxis||(C.xaxis=C.xaxis1),delete C.xaxis1),C.yaxis1&&(C.yaxis||(C.yaxis=C.yaxis1),delete C.yaxis1),C.scene1&&(C.scene||(C.scene=C.scene1),delete C.scene1);var O=(d.subplotsRegistry.cartesian||{}).attrRegex,R=(d.subplotsRegistry.polar||{}).attrRegex,$=(d.subplotsRegistry.ternary||{}).attrRegex,P=(d.subplotsRegistry.gl3d||{}).attrRegex,z=Object.keys(C);for(A=0;A3?(X.x=1.02,X.xanchor="left"):X.x<-2&&(X.x=-.02,X.xanchor="right"),X.y>3?(X.y=1.02,X.yanchor="bottom"):X.y<-2&&(X.y=-.02,X.yanchor="top")),b(C),C.dragmode==="rotate"&&(C.dragmode="orbit"),h.clean(C),C.template&&C.template.layout&&a.cleanLayout(C.template.layout),C},a.cleanData=function(C){for(var A=0;A0)return C.substr(0,A)}a.hasParent=function(C,A){for(var D=S(A);D;){if(D in C)return!0;D=S(D)}return!1};var M=["x","y","z"];a.clearAxisTypes=function(C,A,D){for(var O=0;O1&&u.warn("Full array edits are incompatible with other edits",w);var C=v[""][""];if(h(C))y.set(null);else{if(!Array.isArray(C))return u.warn("Unrecognized full array edit value",w,C),!0;y.set(C)}return!T&&(_(S,M),x(m),!0)}var A,D,O,R,$,P,z,B,N=Object.keys(v).map(Number).sort(f),j=y.get(),F=j||[],E=b(M,w).get(),W=[],H=-1,L=F.length;for(A=0;AF.length-(z?0:1))u.warn("index out of range",w,O);else if(P!==void 0)$.length>1&&u.warn("Insertion & removal are incompatible with edits to the same index.",w,O),h(P)?W.push(O):z?(P==="add"&&(P={}),F.splice(O,0,P),E&&E.splice(O,0,{})):u.warn("Unrecognized full object edit value",w,O,P),H===-1&&(H=O);else for(D=0;D<$.length;D++)B=w+"["+O+"].",b(F[O],$[D],B).set(R[$[D]]);for(A=W.length-1;A>=0;A--)F.splice(W[A],1),E&&E.splice(W[A],1);if(F.length?j||y.set(F):y.set(null),T)return!1;if(_(S,M),k!==c){var q;if(H===-1)q=N;else{for(L=Math.max(F.length,L),q=[],A=0;A=H);A++)q.push(O);for(A=H;A=ue.data.length||ke<-ue.data.length)throw new Error(be+" must be valid indices for gd.data.");if(ge.indexOf(ke,we+1)>-1||ke>=0&&ge.indexOf(-ue.data.length+ke)>-1||ke<0&&ge.indexOf(ue.data.length+ke)>-1)throw new Error("each index in "+be+" must be unique.")}}function E(ue,ge,be){if(!Array.isArray(ue.data))throw new Error("gd.data must be an array.");if(ge===void 0)throw new Error("currentIndices is a required argument.");if(Array.isArray(ge)||(ge=[ge]),F(ue,ge,"currentIndices"),be===void 0||Array.isArray(be)||(be=[be]),be!==void 0&&F(ue,be,"newIndices"),be!==void 0&&ge.length!==be.length)throw new Error("current and new indices must be of equal length.")}function W(ue,ge,be,we,ke){(function(qe,Ye,at,st){var ft=f.isPlainObject(st);if(!Array.isArray(qe.data))throw new Error("gd.data must be an array");if(!f.isPlainObject(Ye))throw new Error("update must be a key:value object");if(at===void 0)throw new Error("indices must be an integer or array of integers");for(var yt in F(qe,at,"indices"),Ye){if(!Array.isArray(Ye[yt])||Ye[yt].length!==at.length)throw new Error("attribute "+yt+" must be an array of length equal to indices array length");if(ft&&(!(yt in st)||!Array.isArray(st[yt])||st[yt].length!==Ye[yt].length))throw new Error("when maxPoints is set as a key:value object it must contain a 1:1 corrispondence with the keys and number of traces in the update object")}})(ue,ge,be,we);for(var Pe=function(qe,Ye,at,st){var ft,yt,ze,Ne,et,it=f.isPlainObject(st),St=[];for(var Ze in Array.isArray(at)||(at=[at]),at=j(at,qe.data.length-1),Ye)for(var ut=0;ut-1&&be.indexOf("grouptitlefont")===-1?De(be,be.replace("titlefont","title.font")):be.indexOf("titleposition")>-1?De(be,be.replace("titleposition","title.position")):be.indexOf("titleside")>-1?De(be,be.replace("titleside","title.side")):be.indexOf("titleoffset")>-1&&De(be,be.replace("titleoffset","title.offset")):De(be,be.replace("title","title.text"));function De(Le,Fe){ue[Fe]=ue[Le],delete ue[Le]}}function K(ue,ge,be){ue=f.getGraphDiv(ue),A.clearPromiseQueue(ue);var we={};if(typeof ge=="string")we[ge]=be;else{if(!f.isPlainObject(ge))return f.warn("Relayout fail.",ge,be),Promise.reject();we=f.extendFlat({},ge)}Object.keys(we).length&&(ue.changed=!0);var ke=ie(ue,we),Pe=ke.flags;Pe.calc&&(ue.calcdata=void 0);var Re=[v.previousPromises];Pe.layoutReplot?Re.push(D.layoutReplot):Object.keys(we).length&&(Q(ue,Pe,ke)||v.supplyDefaults(ue),Pe.legend&&Re.push(D.doLegend),Pe.layoutstyle&&Re.push(D.layoutStyles),Pe.axrange&&G(Re,ke.rangesAltered),Pe.ticks&&Re.push(D.doTicksRelayout),Pe.modebar&&Re.push(D.doModeBar),Pe.camera&&Re.push(D.doCamera),Pe.colorbars&&Re.push(D.doColorBars),Re.push(P)),Re.push(v.rehover,v.redrag,v.reselect),h.add(ue,K,[ue,ke.undoit],K,[ue,ke.redoit]);var De=f.syncOrAsync(Re,ue);return De&&De.then||(De=Promise.resolve(ue)),De.then(function(){return ue.emit("plotly_relayout",ke.eventData),ue})}function Q(ue,ge,be){var we,ke,Pe=ue._fullLayout;if(!ge.axrange)return!1;for(var Re in ge)if(Re!=="axrange"&&ge[Re])return!1;var De=function(Ye,at){return f.coerce(we,ke,w,Ye,at)},Le={};for(var Fe in be.rangesAltered){var Be=g.id2name(Fe);if(we=ue.layout[Be],ke=Pe[Be],b(we,ke,De,Le),ke._matchGroup){for(var Ue in ke._matchGroup)if(Ue!==Fe){var qe=Pe[g.id2name(Ue)];qe.autorange=ke.autorange,qe.range=ke.range.slice(),qe._input.range=ke.range.slice()}}}return!0}function G(ue,ge){var be=ge?function(we){var ke=[];for(var Pe in ge){var Re=g.getFromId(we,Pe);if(ke.push(Pe),(Re.ticklabelposition||"").indexOf("inside")!==-1&&Re._anchorAxis&&ke.push(Re._anchorAxis._id),Re._matchGroup)for(var De in Re._matchGroup)ge[De]||ke.push(De)}return g.draw(we,ke,{skipTitle:!0})}:function(we){return g.draw(we,"redraw")};ue.push(S,D.doAutoRangeAndConstraints,be,D.drawData,D.finalDraw)}var X=/^[xyz]axis[0-9]*\.range(\[[0|1]\])?$/,Y=/^[xyz]axis[0-9]*\.autorange$/,re=/^[xyz]axis[0-9]*\.domain(\[[0|1]\])?$/;function ie(ue,ge){var be,we,ke,Pe=ue.layout,Re=ue._fullLayout,De=Re._guiEditing,Le=U(Re._preGUI,De),Fe=Object.keys(ge),Be=g.list(ue),Ue=f.extendDeepAll({},ge),qe={};for(ee(ge),Fe=Object.keys(ge),we=0;we0&&typeof ut.parts[Rt]!="string";)Rt--;var Mt=ut.parts[Rt],Bt=ut.parts[Rt-1]+"."+Mt,Tt=ut.parts.slice(0,Rt).join("."),ve=d(ue.layout,Tt).get(),Te=d(Re,Tt).get(),Ve=ut.get();if(gt!==void 0){yt[Ze]=gt,ze[Ze]=Mt==="reverse"?gt:q(Ve);var We=y.getLayoutValObject(Re,ut.parts);if(We&&We.impliedEdits&>!==null)for(var Je in We.impliedEdits)Ne(f.relativeAttr(Ze,Je),We.impliedEdits[Je]);if(["width","height"].indexOf(Ze)!==-1)if(gt){Ne("autosize",null);var Xe=Ze==="height"?"width":"height";Ne(Xe,Re[Xe])}else Re[Ze]=ue._initialAutoSize[Ze];else if(Ze==="autosize")Ne("width",gt?null:Re.width),Ne("height",gt?null:Re.height);else if(Bt.match(X))St(Bt),d(Re,Tt+"._inputRange").set(null);else if(Bt.match(Y)){St(Bt),d(Re,Tt+"._inputRange").set(null);var Ge=d(Re,Tt).get();Ge._inputDomain&&(Ge._input.domain=Ge._inputDomain.slice())}else Bt.match(re)&&d(Re,Tt+"._inputDomain").set(null);if(Mt==="type"){et=ve;var Qe=Te.type==="linear"&>==="log",ct=Te.type==="log"&>==="linear";if(Qe||ct){if(et&&et.range)if(Te.autorange)Qe&&(et.range=et.range[1]>et.range[0]?[1,2]:[2,1]);else{var bt=et.range[0],nt=et.range[1];Qe?(bt<=0&&nt<=0&&Ne(Tt+".autorange",!0),bt<=0?bt=nt/1e6:nt<=0&&(nt=bt/1e6),Ne(Tt+".range[0]",Math.log(bt)/Math.LN10),Ne(Tt+".range[1]",Math.log(nt)/Math.LN10)):(Ne(Tt+".range[0]",Math.pow(10,bt)),Ne(Tt+".range[1]",Math.pow(10,nt)))}else Ne(Tt+".autorange",!0);Array.isArray(Re._subplots.polar)&&Re._subplots.polar.length&&Re[ut.parts[0]]&&ut.parts[1]==="radialaxis"&&delete Re[ut.parts[0]]._subplot.viewInitial["radialaxis.range"],m.getComponentMethod("annotations","convertCoords")(ue,Te,gt,Ne),m.getComponentMethod("images","convertCoords")(ue,Te,gt,Ne)}else Ne(Tt+".autorange",!0),Ne(Tt+".range",null);d(Re,Tt+"._inputRange").set(null)}else if(Mt.match(R)){var It=d(Re,Ze).get(),Yt=(gt||{}).type;Yt&&Yt!=="-"||(Yt="linear"),m.getComponentMethod("annotations","convertCoords")(ue,It,Yt,Ne),m.getComponentMethod("images","convertCoords")(ue,It,Yt,Ne)}var Ct=C.containerArrayMatch(Ze);if(Ct){be=Ct.array,we=Ct.index;var jt=Ct.property,Et=We||{editType:"calc"};we!==""&&jt===""&&(C.isAddVal(gt)?ze[Ze]=null:C.isRemoveVal(gt)?ze[Ze]=(d(Pe,be).get()||[])[we]:f.warn("unrecognized full object value",ge)),O.update(ft,Et),qe[be]||(qe[be]={});var mt=qe[be][we];mt||(mt=qe[be][we]={}),mt[jt]=gt,delete ge[Ze]}else Mt==="reverse"?(ve.range?ve.range.reverse():(Ne(Tt+".autorange",!0),ve.range=[1,0]),Te.autorange?ft.calc=!0:ft.plot=!0):(Ze==="dragmode"&&(gt===!1&&Ve!==!1||gt!==!1&&Ve===!1)||Re._has("scatter-like")&&Re._has("regl")&&Ze==="dragmode"&&(gt==="lasso"||gt==="select")&&Ve!=="lasso"&&Ve!=="select"||Re._has("gl2d")?ft.plot=!0:We?O.update(ft,We):ft.calc=!0,ut.set(gt))}}for(be in qe)C.applyContainerArrayChanges(ue,Le(Pe,be),qe[be],ft,Le)||(ft.plot=!0);for(var vt in it){var wt=(et=g.getFromId(ue,vt))&&et._constraintGroup;if(wt)for(var qt in ft.calc=!0,wt)it[qt]||(g.getFromId(ue,qt)._constraintShrinkable=!0)}(le(ue)||ge.height||ge.width)&&(ft.plot=!0);var Lt=Re.shapes;for(we=0;we1;)if(we.pop(),(be=d(ge,we.join(".")+".uirevision").get())!==void 0)return be;return ge.uirevision}function ce(ue,ge){for(var be=0;be=ke.length?ke[0]:ke[Fe]:ke}function De(Fe){return Array.isArray(Pe)?Fe>=Pe.length?Pe[0]:Pe[Fe]:Pe}function Le(Fe,Be){var Ue=0;return function(){if(Fe&&++Ue===Be)return Fe()}}return we._frameWaitingCnt===void 0&&(we._frameWaitingCnt=0),new Promise(function(Fe,Be){function Ue(){ue.emit("plotly_animating"),we._lastFrameAt=-1/0,we._timeToNext=0,we._runningTransitions=0,we._currentFrame=null;var Ze=function(){we._animationRaf=window.requestAnimationFrame(Ze),Date.now()-we._lastFrameAt>we._timeToNext&&function(){we._currentFrame&&we._currentFrame.onComplete&&we._currentFrame.onComplete();var ut=we._currentFrame=we._frameQueue.shift();if(ut){var gt=ut.name?ut.name.toString():null;ue._fullLayout._currentFrame=gt,we._lastFrameAt=Date.now(),we._timeToNext=ut.frameOpts.duration,v.transition(ue,ut.frame.data,ut.frame.layout,A.coerceTraceIndices(ue,ut.frame.traces),ut.frameOpts,ut.transitionOpts).then(function(){ut.onComplete&&ut.onComplete()}),ue.emit("plotly_animatingframe",{name:gt,frame:ut.frame,animation:{frame:ut.frameOpts,transition:ut.transitionOpts}})}else ue.emit("plotly_animated"),window.cancelAnimationFrame(we._animationRaf),we._animationRaf=null}()};Ze()}var qe,Ye,at=0;function st(Ze){return Array.isArray(ke)?at>=ke.length?Ze.transitionOpts=ke[at]:Ze.transitionOpts=ke[0]:Ze.transitionOpts=ke,at++,Ze}var ft=[],yt=ge==null,ze=Array.isArray(ge);if(yt||ze||!f.isPlainObject(ge)){if(yt||["string","number"].indexOf(typeof ge)!==-1)for(qe=0;qe0&&itit)&&St.push(Ye);ft=St}}ft.length>0?function(Ze){if(Ze.length!==0){for(var ut=0;ut=0;we--)if(f.isPlainObject(ge[we])){var qe=ge[we].name,Ye=(Le[qe]||Ue[qe]||{}).name,at=ge[we].name,st=Le[Ye]||Ue[Ye];Ye&&at&&typeof at=="number"&&st&&$<5&&($++,f.warn('addFrames: overwriting frame "'+(Le[Ye]||Ue[Ye]).name+'" with a frame whose name of type "number" also equates to "'+Ye+'". This is valid but may potentially lead to unexpected behavior since all plotly.js frame names are stored internally as strings.'),$===5&&f.warn("addFrames: This API call has yielded too many of these warnings. For the rest of this call, further warnings about numeric frame names will be suppressed.")),Ue[qe]={name:qe},Be.push({frame:v.supplyFrameDefaults(ge[we]),index:be&&be[we]!==void 0&&be[we]!==null?be[we]:Fe+we})}Be.sort(function(Ze,ut){return Ze.index>ut.index?-1:Ze.index=0;we--){if(typeof(ke=Be[we].frame).name=="number"&&f.warn("Warning: addFrames accepts frames with numeric names, but the numbers areimplicitly cast to strings"),!ke.name)for(;Le[ke.name="frame "+ue._transitionData._counter++];);if(Le[ke.name]){for(Pe=0;Pe=0;be--)we=ge[be],Pe.push({type:"delete",index:we}),Re.unshift({type:"insert",index:we,value:ke[we]});var De=v.modifyFrames,Le=v.modifyFrames,Fe=[ue,Re],Be=[ue,Pe];return h&&h.add(ue,De,Fe,Le,Be),v.modifyFrames(ue,Pe)},a.addTraces=function ue(ge,be,we){ge=f.getGraphDiv(ge);var ke,Pe,Re=[],De=a.deleteTraces,Le=ue,Fe=[ge,Re],Be=[ge,be];for(function(Ue,qe,Ye){var at,st;if(!Array.isArray(Ue.data))throw new Error("gd.data must be an array.");if(qe===void 0)throw new Error("traces must be defined.");for(Array.isArray(qe)||(qe=[qe]),at=0;at=0&&Be=0&&Be=N.length)return!1;if(R.dimensions===2){if(P++,$.length===P)return R;var j=$[P];if(!M(j))return!1;R=N[B][j]}else R=N[B]}else R=N}}return R}function M(R){return R===Math.round(R)&&R>=0}function C(){var R,$,P={};for(R in y(P,f),l.subplotsRegistry)if(($=l.subplotsRegistry[R]).layoutAttributes)if(Array.isArray($.attr))for(var z=0;z<$.attr.length;z++)D(P,$,$.attr[z]);else D(P,$,$.attr==="subplot"?$.name:$.attr);for(R in l.componentsRegistry){var B=($=l.componentsRegistry[R]).schema;if(B&&(B.subplots||B.layout)){var N=B.subplots;if(N&&N.xaxis&&!N.yaxis)for(var j in N.xaxis)delete P.yaxis[j];delete P.xaxis.shift,delete P.xaxis.autoshift}else $.name==="colorscale"?y(P,$.layoutAttributes):$.layoutAttributes&&O(P,$.layoutAttributes,$.name)}return{layoutAttributes:A(P)}}function A(R){return function($){a.crawl($,function(P,z,B){a.isValObject(P)?P.arrayOk!==!0&&P.valType!=="data_array"||(B[z+"src"]={valType:"string",editType:"none"}):v(P)&&(P.role="object")})}(R),function($){a.crawl($,function(P,z,B){if(P){var N=P[x];N&&(delete P[x],B[z]={items:{}},B[z].items[N]=P,B[z].role="object")}})}(R),function($){(function P(z){for(var B in z)if(v(z[B]))P(z[B]);else if(Array.isArray(z[B]))for(var N=0;N=j.length)return!1;z=(P=(l.transformsRegistry[j[F].type]||{}).attributes)&&P[$[2]],N=3}else{var E=R._module;if(E||(E=(l.modules[R.type||u.type.dflt]||{})._module),!E)return!1;if(!(z=(P=E.attributes)&&P[B])){var W=E.basePlotModule;W&&W.attributes&&(z=W.attributes[B])}z||(z=u[B])}return S(z,$,N)},a.getLayoutValObject=function(R,$){var P=function(z,B){var N,j,F,E,W=z._basePlotModules;if(W){var H;for(N=0;N=v&&(y._input||{})._templateitemname;b&&(g=v);var w,_=m+"["+g+"]";function x(){w={},b&&(w[_]={},w[_][u]=b)}function k(S,M){b?l.nestedProperty(w[_],S).set(M):w[_+"."+S]=M}function T(){var S=w;return x(),S}return x(),{modifyBase:function(S,M){w[S]=M},modifyItem:k,getUpdateObj:T,applyUpdate:function(S,M){S&&k(S,M);var C=T();for(var A in C)l.nestedProperty(h,A).set(C[A])}}}},61549:function(o,a,n){var l=n(39898),c=n(73972),u=n(74875),f=n(71828),d=n(63893),p=n(33306),h=n(7901),m=n(91424),y=n(92998),v=n(64168),g=n(89298),b=n(18783),w=n(99082),_=w.enforce,x=w.clean,k=n(71739).doAutoRange,T="start";function S(O,R,$){for(var P=0;P<$.length;P++){var z=$[P][0],B=$[P][1];if(!(z[0]>=O[1]||z[1]<=O[0])&&B[0]R[0])return!0}return!1}function M(O){var R,$,P,z,B,N,j=O._fullLayout,F=j._size,E=F.p,W=g.list(O,"",!0);if(j._paperdiv.style({width:O._context.responsive&&j.autosize&&!O._context._hasZeroWidth&&!O.layout.width?"100%":j.width+"px",height:O._context.responsive&&j.autosize&&!O._context._hasZeroHeight&&!O.layout.height?"100%":j.height+"px"}).selectAll(".main-svg").call(m.setSize,j.width,j.height),O._context.setBackground(O,j.paper_bgcolor),a.drawMainTitle(O),v.manage(O),!j._has("cartesian"))return u.previousPromises(O);function H(Fe,Be,Ue){var qe=Fe._lw/2;return Fe._id.charAt(0)==="x"?Be?Ue==="top"?Be._offset-E-qe:Be._offset+Be._length+E+qe:F.t+F.h*(1-(Fe.position||0))+qe%1:Be?Ue==="right"?Be._offset+Be._length+E+qe:Be._offset-E-qe:F.l+F.w*(Fe.position||0)+qe%1}for(R=0;R.5?"t":"b",ee=H._fullLayout.margin[te],K=0;return L.yref==="paper"?K=q+L.pad.t+L.pad.b:L.yref==="container"&&(K=function(Q,G,X,Y,re){var ie=0;return X==="middle"&&(ie+=re/2),Q==="t"?(X==="top"&&(ie+=re),ie+=Y-G*Y):(X==="bottom"&&(ie+=re),ie+=G*Y),ie}(te,U,J,H._fullLayout.height,q)+L.pad.t+L.pad.b),K>ee?K:0}(O,$,E);W>0&&(function(H,L,q,U){var J="title.automargin",te=H._fullLayout.title,ee=te.y>.5?"t":"b",K={x:te.x,y:te.y,t:0,b:0},Q={};te.yref==="paper"&&function(G,X,Y,re,ie){var le=X.yref==="paper"?G._fullLayout._size.h:G._fullLayout.height,se=f.isTopAnchor(X)?re:re-ie,he=Y==="b"?le-se:se;return!(f.isTopAnchor(X)&&Y==="t"||f.isBottomAnchor(X)&&Y==="b")&&heF?D.push({code:"unused",traceType:P,templateCount:j,dataCount:F}):F>j&&D.push({code:"reused",traceType:P,templateCount:j,dataCount:F})}}else D.push({code:"data"});if(function E(W,H){for(var L in W)if(L.charAt(0)!=="_"){var q=W[L],U=w(W,L,H);c(q)?(Array.isArray(W)&&q._template===!1&&q.templateitemname&&D.push({code:"missing",path:U,templateitemname:q.templateitemname}),E(q,U)):Array.isArray(q)&&_(q)&&E(q,U)}}({data:R,layout:O},""),D.length)return D.map(x)}},403:function(o,a,n){var l=n(92770),c=n(72391),u=n(74875),f=n(71828),d=n(25095),p=n(5900),h=n(70942),m=n(11506).version,y={format:{valType:"enumerated",values:["png","jpeg","webp","svg","full-json"],dflt:"png"},width:{valType:"number",min:1},height:{valType:"number",min:1},scale:{valType:"number",min:0,dflt:1},setBackground:{valType:"any",dflt:!1},imageDataOnly:{valType:"boolean",dflt:!1}};o.exports=function(v,g){var b,w,_,x;function k(F){return!(F in g)||f.validate(g[F],y[F])}if(g=g||{},f.isPlainObject(v)?(b=v.data||[],w=v.layout||{},_=v.config||{},x={}):(v=f.getGraphDiv(v),b=f.extendDeep([],v.data),w=f.extendDeep({},v.layout),_=v._context,x=v._fullLayout||{}),!k("width")&&g.width!==null||!k("height")&&g.height!==null)throw new Error("Height and width should be pixel values.");if(!k("format"))throw new Error("Export format is not "+f.join2(y.format.values,", "," or ")+".");var T={};function S(F,E){return f.coerce(g,T,y,F,E)}var M=S("format"),C=S("width"),A=S("height"),D=S("scale"),O=S("setBackground"),R=S("imageDataOnly"),$=document.createElement("div");$.style.position="absolute",$.style.left="-5000px",document.body.appendChild($);var P=f.extendFlat({},w);C?P.width=C:g.width===null&&l(x.width)&&(P.width=x.width),A?P.height=A:g.height===null&&l(x.height)&&(P.height=x.height);var z=f.extendFlat({},_,{_exportedPlot:!0,staticPlot:!0,setBackground:O}),B=d.getRedrawFunc($);function N(){return new Promise(function(F){setTimeout(F,d.getDelay($._fullLayout))})}function j(){return new Promise(function(F,E){var W=p($,M,D),H=$._fullLayout.width,L=$._fullLayout.height;function q(){c.purge($),document.body.removeChild($)}if(M==="full-json"){var U=u.graphJson($,!1,"keepdata","object",!0,!0);return U.version=m,U=JSON.stringify(U),q(),F(R?U:d.encodeJSON(U))}if(q(),M==="svg")return F(R?W:d.encodeSVG(W));var J=document.createElement("canvas");J.id=f.randstr(),h({format:M,width:H,height:L,scale:D,canvas:J,svg:W,promise:!0}).then(F).catch(E)})}return new Promise(function(F,E){c.newPlot($,b,P,z).then(B).then(N).then(j).then(function(W){F(function(H){return R?H.replace(d.IMAGE_URL_PREFIX,""):H}(W))}).catch(function(W){E(W)})})}},84936:function(o,a,n){var l=n(71828),c=n(74875),u=n(86281),f=n(72075).dfltConfig,d=l.isPlainObject,p=Array.isArray,h=l.isArrayOrTypedArray;function m(k,T,S,M,C,A){A=A||[];for(var D=Object.keys(k),O=0;Oz.length&&M.push(g("unused",C,$.concat(z.length)));var W,H,L,q,U,J=z.length,te=Array.isArray(E);if(te&&(J=Math.min(J,E.length)),B.dimensions===2)for(H=0;Hz[H].length&&M.push(g("unused",C,$.concat(H,z[H].length)));var ee=z[H].length;for(W=0;W<(te?Math.min(ee,E[H].length):ee);W++)L=te?E[H][W]:E,q=P[H][W],U=z[H][W],l.validate(q,L)?U!==q&&U!==+q&&M.push(g("dynamic",C,$.concat(H,W),q,U)):M.push(g("value",C,$.concat(H,W),q))}else M.push(g("array",C,$.concat(H),P[H]));else for(H=0;H1&&A.push(g("object","layout"))),c.supplyDefaults(D);for(var O=D._fullData,R=S.length,$=0;$0&&Math.round(w)===w))return{vals:y};g=w}for(var _=h.calendar,x=v==="start",k=v==="end",T=p[m+"period0"],S=u(T,_)||0,M=[],C=[],A=[],D=y.length,O=0;Oz;)P=f(P,-g,_);for(;P<=z;)P=f(P,g,_);$=f(P,-g,_)}else{for(P=S+(R=Math.round((z-S)/b))*b;P>z;)P-=b;for(;P<=z;)P+=b;$=P-b}M[O]=x?$:k?P:($+P)/2,C[O]=$,A[O]=P}return{vals:M,starts:C,ends:A}}},89502:function(o){o.exports={xaxis:{valType:"subplotid",dflt:"x",editType:"calc+clearAxisTypes"},yaxis:{valType:"subplotid",dflt:"y",editType:"calc+clearAxisTypes"}}},71739:function(o,a,n){var l=n(39898),c=n(92770),u=n(71828),f=n(50606).FP_SAFE,d=n(73972),p=n(91424),h=n(41675),m=h.getFromId,y=h.isLinked;function v(O,R){var $,P,z=[],B=O._fullLayout,N=b(B,R,0),j=b(B,R,1),F=_(O,R),E=F.min,W=F.max;if(E.length===0||W.length===0)return u.simpleMap(R.range,R.r2l);var H=E[0].val,L=W[0].val;for($=1;$0&&((G=le-N(te)-j(ee))>se?X/G>he&&(K=te,Q=ee,he=X/G):X/le>he&&(K={val:te.val,nopad:1},Q={val:ee.val,nopad:1},he=X/le));if(H===L){var _e=H-1,Me=H+1;if(re)if(H===0)z=[0,1];else{var Ce=(H>0?W:E).reduce(function(ce,ye){return Math.max(ce,j(ye))},0),Se=H/(1-Math.min(.5,Ce/le));z=H>0?[0,Se]:[Se,0]}else z=ie?[Math.max(0,_e),Math.max(1,Me)]:[_e,Me]}else re?(K.val>=0&&(K={val:0,nopad:1}),Q.val<=0&&(Q={val:0,nopad:1})):ie&&(K.val-he*N(K)<0&&(K={val:0,nopad:1}),Q.val<=0&&(Q={val:1,nopad:1})),he=(Q.val-K.val-g(R,te.val,ee.val))/(le-N(K)-j(Q)),z=[K.val-he*N(K),Q.val+he*j(Q)];return z=D(z,R),R.limitRange&&R.limitRange(),U&&z.reverse(),u.simpleMap(z,R.l2r||Number)}function g(O,R,$){var P=0;if(O.rangebreaks)for(var z=O.locateBreaks(R,$),B=0;B0?$.ppadplus:$.ppadminus)||$.ppad||0),Y=G((O._m>0?$.ppadminus:$.ppadplus)||$.ppad||0),re=G($.vpadplus||$.vpad),ie=G($.vpadminus||$.vpad);if(!K){if(W=1/0,H=-1/0,ee)for(P=0;P0&&(W=z),z>H&&z-f&&(W=z),z>H&&z=he;P--)se(P);return{min:L,max:q,opts:$}},concatExtremes:_};var w=3;function _(O,R,$){var P,z,B,N=R._id,j=O._fullData,F=O._fullLayout,E=[],W=[];function H(te,ee){for(P=0;P=$&&(E.extrapad||!N)){j=!1;break}z(R,E.val)&&E.pad<=$&&(N||!E.extrapad)&&(O.splice(F,1),F--)}if(j){var W=B&&R===0;O.push({val:R,pad:W?0:$,extrapad:!W&&N})}}function S(O){return c(O)&&Math.abs(O)=R}function A(O,R,$){return R===void 0||$===void 0||(R=O.d2l(R))=F&&(B=F,$=F),N<=F&&(N=F,P=F)}}return $=function(E,W){var H=W.autorangeoptions;return H&&H.minallowed!==void 0&&A(W,H.minallowed,H.maxallowed)?H.minallowed:H&&H.clipmin!==void 0&&A(W,H.clipmin,H.clipmax)?Math.max(E,W.d2l(H.clipmin)):E}($,R),P=function(E,W){var H=W.autorangeoptions;return H&&H.maxallowed!==void 0&&A(W,H.minallowed,H.maxallowed)?H.maxallowed:H&&H.clipmax!==void 0&&A(W,H.clipmin,H.clipmax)?Math.min(E,W.d2l(H.clipmax)):E}(P,R),[$,P]}},23074:function(o){o.exports=function(a,n,l){var c,u;if(l){var f=n==="reversed"||n==="min reversed"||n==="max reversed";c=l[f?1:0],u=l[f?0:1]}var d=a("autorangeoptions.minallowed",u===null?c:void 0),p=a("autorangeoptions.maxallowed",c===null?u:void 0);d===void 0&&a("autorangeoptions.clipmin"),p===void 0&&a("autorangeoptions.clipmax"),a("autorangeoptions.include")}},89298:function(o,a,n){var l=n(39898),c=n(92770),u=n(74875),f=n(73972),d=n(71828),p=d.strTranslate,h=n(63893),m=n(92998),y=n(7901),v=n(91424),g=n(13838),b=n(66287),w=n(50606),_=w.ONEMAXYEAR,x=w.ONEAVGYEAR,k=w.ONEMINYEAR,T=w.ONEMAXQUARTER,S=w.ONEAVGQUARTER,M=w.ONEMINQUARTER,C=w.ONEMAXMONTH,A=w.ONEAVGMONTH,D=w.ONEMINMONTH,O=w.ONEWEEK,R=w.ONEDAY,$=R/2,P=w.ONEHOUR,z=w.ONEMIN,B=w.ONESEC,N=w.MINUS_SIGN,j=w.BADNUM,F={K:"zeroline"},E={K:"gridline",L:"path"},W={K:"minor-gridline",L:"path"},H={K:"tick",L:"path"},L={K:"tick",L:"text"},q={width:["x","r","l","xl","xr"],height:["y","t","b","yt","yb"],right:["r","xr"],left:["l","xl"],top:["t","yt"],bottom:["b","yb"]},U=n(18783),J=U.MID_SHIFT,te=U.CAP_SHIFT,ee=U.LINE_SPACING,K=U.OPPOSITE_SIDE,Q=o.exports={};Q.setConvert=n(21994);var G=n(4322),X=n(41675),Y=X.idSort,re=X.isLinked;Q.id2name=X.id2name,Q.name2id=X.name2id,Q.cleanId=X.cleanId,Q.list=X.list,Q.listIds=X.listIds,Q.getFromId=X.getFromId,Q.getFromTrace=X.getFromTrace;var ie=n(71739);Q.getAutoRange=ie.getAutoRange,Q.findExtremes=ie.findExtremes;var le=1e-4;function se(ve){var Te=(ve[1]-ve[0])*le;return[ve[0]-Te,ve[1]+Te]}Q.coerceRef=function(ve,Te,Ve,We,Je,Xe){var Ge=We.charAt(We.length-1),Qe=Ve._fullLayout._subplots[Ge+"axis"],ct=We+"ref",bt={};return Je||(Je=Qe[0]||(typeof Xe=="string"?Xe:Xe[0])),Xe||(Xe=Je),Qe=Qe.concat(Qe.map(function(nt){return nt+" domain"})),bt[ct]={valType:"enumerated",values:Qe.concat(Xe?typeof Xe=="string"?[Xe]:Xe:[]),dflt:Je},d.coerce(ve,Te,bt,ct)},Q.getRefType=function(ve){return ve===void 0?ve:ve==="paper"?"paper":ve==="pixel"?"pixel":/( domain)$/.test(ve)?"domain":"range"},Q.coercePosition=function(ve,Te,Ve,We,Je,Xe){var Ge,Qe;if(Q.getRefType(We)!=="range")Ge=d.ensureNumber,Qe=Ve(Je,Xe);else{var ct=Q.getFromId(Te,We);Qe=Ve(Je,Xe=ct.fraction2r(Xe)),Ge=ct.cleanPos}ve[Je]=Ge(Qe)},Q.cleanPosition=function(ve,Te,Ve){return(Ve==="paper"||Ve==="pixel"?d.ensureNumber:Q.getFromId(Te,Ve).cleanPos)(ve)},Q.redrawComponents=function(ve,Te){Te=Te||Q.listIds(ve);var Ve=ve._fullLayout;function We(Je,Xe,Ge,Qe){for(var ct=f.getComponentMethod(Je,Xe),bt={},nt=0;ntVe&&nt2e-6||((Ve-ve._forceTick0)/ve._minDtick%1+1.000001)%1>2e-6)&&(ve._minDtick=0)):ve._minDtick=0},Q.saveRangeInitial=function(ve,Te){for(var Ve=Q.list(ve,"",!0),We=!1,Je=0;Je.3*Nt||Ft(qt)||Ft(Lt))){var Vt=wt.dtick/2;mt+=mt+Vt.8){var ht=Number(wt.substr(1));Gt.exactYears>.8&&ht%12==0?mt=Q.tickIncrement(mt,"M6","reverse")+1.5*R:Gt.exactMonths>.8?mt=Q.tickIncrement(mt,"M1","reverse")+15.5*R:mt-=$;var Pt=Q.tickIncrement(mt,wt);if(Pt<=qt)return Pt}return mt}(Et,ve,jt,Qe,Je)),Ct=Et;Ct<=ct;)Ct=Q.tickIncrement(Ct,jt,!1,Je);return{start:Te.c2r(Et,0,Je),end:Te.c2r(Ct,0,Je),size:jt,_dataSpan:ct-Qe}},Q.prepMinorTicks=function(ve,Te,Ve){if(!Te.minor.dtick){delete ve.dtick;var We,Je=Te.dtick&&c(Te._tmin);if(Je){var Xe=Q.tickIncrement(Te._tmin,Te.dtick,!0);We=[Te._tmin,.99*Xe+.01*Te._tmin]}else{var Ge=d.simpleMap(Te.range,Te.r2l);We=[Ge[0],.8*Ge[0]+.2*Ge[1]]}if(ve.range=d.simpleMap(We,Te.l2r),ve._isMinor=!0,Q.prepTicks(ve,Ve),Je){var Qe=c(Te.dtick),ct=c(ve.dtick),bt=Qe?Te.dtick:+Te.dtick.substring(1),nt=ct?ve.dtick:+ve.dtick.substring(1);Qe&&ct?Ce(bt,nt)?bt===2*O&&nt===2*R&&(ve.dtick=O):bt===2*O&&nt===3*R?ve.dtick=O:bt!==O||(Te._input.minor||{}).nticks?Se(bt/nt,2.5)?ve.dtick=bt/2:ve.dtick=bt:ve.dtick=R:String(Te.dtick).charAt(0)==="M"?ct?ve.dtick="M1":Ce(bt,nt)?bt>=12&&nt===2&&(ve.dtick="M3"):ve.dtick=Te.dtick:String(ve.dtick).charAt(0)==="L"?String(Te.dtick).charAt(0)==="L"?Ce(bt,nt)||(ve.dtick=Se(bt/nt,2.5)?Te.dtick/2:Te.dtick):ve.dtick="D1":ve.dtick==="D2"&&+Te.dtick>1&&(ve.dtick=1)}ve.range=Te.range}Te.minor._tick0Init===void 0&&(ve.tick0=Te.tick0)},Q.prepTicks=function(ve,Te){var Ve=d.simpleMap(ve.range,ve.r2l,void 0,void 0,Te);if(ve.tickmode==="auto"||!ve.dtick){var We,Je=ve.nticks;Je||(ve.type==="category"||ve.type==="multicategory"?(We=ve.tickfont?d.bigFont(ve.tickfont.size||12):15,Je=ve._length/We):(We=ve._id.charAt(0)==="y"?40:80,Je=d.constrain(ve._length/We,4,9)+1),ve._name==="radialaxis"&&(Je*=2)),ve.minor&&ve.minor.tickmode!=="array"||ve.tickmode==="array"&&(Je*=100),ve._roughDTick=Math.abs(Ve[1]-Ve[0])/Je,Q.autoTicks(ve,ve._roughDTick),ve._minDtick>0&&ve.dtick<2*ve._minDtick&&(ve.dtick=ve._minDtick,ve.tick0=ve.l2r(ve._forceTick0))}ve.ticklabelmode==="period"&&function(Xe){var Ge;function Qe(){return!(c(Xe.dtick)||Xe.dtick.charAt(0)!=="M")}var ct=Qe(),bt=Q.getTickFormat(Xe);if(bt){var nt=Xe._dtickInit!==Xe.dtick;/%[fLQsSMX]/.test(bt)||(/%[HI]/.test(bt)?(Ge=P,nt&&!ct&&Xe.dtick=(vt?0:1);wt--){var qt=!wt;wt?(ve._dtickInit=ve.dtick,ve._tick0Init=ve.tick0):(ve.minor._dtickInit=ve.minor.dtick,ve.minor._tick0Init=ve.minor.tick0);var Lt=wt?ve:d.extendFlat({},ve,ve.minor);if(qt?Q.prepMinorTicks(Lt,ve,Te):Q.prepTicks(Lt,Te),Lt.tickmode!=="array")if(Lt.tickmode!=="sync"){var Gt=se(ct),ht=Gt[0],Pt=Gt[1],At=c(Lt.dtick),Ft=Je==="log"&&!(At||Lt.dtick.charAt(0)==="L"),$t=Q.tickFirst(Lt,Te);if(wt){if(ve._tmin=$t,$t=Pt:zt<=Pt;zt=Q.tickIncrement(zt,Wt,bt,Xe)){if(wt&&Nt++,Lt.rangebreaks&&!bt){if(zt=It)break}if(Et.length>Yt||zt===Xt)break;Xt=zt;var an={value:zt};wt?(Ft&&zt!==(0|zt)&&(an.simpleLabel=!0),Ge>1&&Nt%Ge&&(an.skipLabel=!0),Et.push(an)):(an.minor=!0,mt.push(an))}}else Et=[],Ct=V(ve);else wt?(Et=[],Ct=ne(ve)):(mt=[],jt=ne(ve))}if(vt&&!(ve.minor.ticks==="inside"&&ve.ticks==="outside"||ve.minor.ticks==="outside"&&ve.ticks==="inside")){for(var fn=Et.map(function(kr){return kr.value}),un=[],on=0;on0?(Dr=hr-1,An=hr):(Dr=hr,An=hr);var ln,Vn=kr[Dr].value,$r=kr[An].value,Fn=Math.abs($r-Vn),Yn=Ir||Fn,jn=0;Yn>=k?jn=Fn>=k&&Fn<=_?Fn:x:Ir===S&&Yn>=M?jn=Fn>=M&&Fn<=T?Fn:S:Yn>=D?jn=Fn>=D&&Fn<=C?Fn:A:Ir===O&&Yn>=O?jn=O:Yn>=R?jn=R:Ir===$&&Yn>=$?jn=$:Ir===P&&Yn>=P&&(jn=P),jn>=Fn&&(jn=Fn,ln=!0);var gr=ha+jn;if(pa.rangebreaks&&jn>0){for(var yr=0,Er=0;Er<84;Er++){var Rr=(Er+.5)/84;pa.maskBreaks(ha*(1-Rr)+Rr*gr)!==j&&yr++}(jn*=yr/84)||(kr[hr].drop=!0),ln&&Fn>O&&(jn=Fn)}(jn>0||hr===0)&&(kr[hr].periodX=ha+jn/2)}}(Et,ve,ve._definedDelta),ve.rangebreaks){var Kt=ve._id.charAt(0)==="y",Mn=1;ve.tickmode==="auto"&&(Mn=ve.tickfont?ve.tickfont.size:12);var Tn=NaN;for(Ve=Et.length-1;Ve>-1;Ve--)if(Et[Ve].drop)Et.splice(Ve,1);else{Et[Ve].value=Rt(Et[Ve].value,ve);var Bn=ve.c2p(Et[Ve].value);(Kt?Tn>Bn-Mn:TnIt||knIt&&(In.periodX=It),kn10||We.substr(5)!=="01-01"?ve._tickround="d":ve._tickround=+Te.substr(1)%12==0?"y":"m";else if(Te>=R&&Je<=10||Te>=15*R)ve._tickround="d";else if(Te>=z&&Je<=16||Te>=P)ve._tickround="M";else if(Te>=B&&Je<=19||Te>=z)ve._tickround="S";else{var Xe=ve.l2r(Ve+Te).replace(/^-/,"").length;ve._tickround=Math.max(Je,Xe)-20,ve._tickround<0&&(ve._tickround=4)}}else if(c(Te)||Te.charAt(0)==="L"){var Ge=ve.range.map(ve.r2d||Number);c(Te)||(Te=Number(Te.substr(1))),ve._tickround=2-Math.floor(Math.log(Te)/Math.LN10+.01);var Qe=Math.max(Math.abs(Ge[0]),Math.abs(Ge[1])),ct=Math.floor(Math.log(Qe)/Math.LN10+.01),bt=ve.minexponent===void 0?3:ve.minexponent;Math.abs(ct)>bt&&(Fe(ve.exponentformat)&&!Be(ct)?ve._tickexponent=3*Math.round((ct-1)/3):ve._tickexponent=ct)}else ve._tickround=null}function De(ve,Te,Ve){var We=ve.tickfont||{};return{x:Te,dx:0,dy:0,text:Ve||"",fontSize:We.size,font:We.family,fontColor:We.color}}Q.autoTicks=function(ve,Te,Ve){var We;function Je(It){return Math.pow(It,Math.floor(Math.log(Te)/Math.LN10))}if(ve.type==="date"){ve.tick0=d.dateTick0(ve.calendar,0);var Xe=2*Te;if(Xe>x)Te/=x,We=Je(10),ve.dtick="M"+12*Pe(Te,We,fe);else if(Xe>A)Te/=A,ve.dtick="M"+Pe(Te,1,xe);else if(Xe>R){if(ve.dtick=Pe(Te,R,ve._hasDayOfWeekBreaks?[1,2,7,14]:ge),!Ve){var Ge=Q.getTickFormat(ve),Qe=ve.ticklabelmode==="period";Qe&&(ve._rawTick0=ve.tick0),/%[uVW]/.test(Ge)?ve.tick0=d.dateTick0(ve.calendar,2):ve.tick0=d.dateTick0(ve.calendar,1),Qe&&(ve._dowTick0=ve.tick0)}}else Xe>P?ve.dtick=Pe(Te,P,xe):Xe>z?ve.dtick=Pe(Te,z,ue):Xe>B?ve.dtick=Pe(Te,B,ue):(We=Je(10),ve.dtick=Pe(Te,We,fe))}else if(ve.type==="log"){ve.tick0=0;var ct=d.simpleMap(ve.range,ve.r2l);if(ve._isMinor&&(Te*=1.5),Te>.7)ve.dtick=Math.ceil(Te);else if(Math.abs(ct[1]-ct[0])<1){var bt=1.5*Math.abs((ct[1]-ct[0])/Te);Te=Math.abs(Math.pow(10,ct[1])-Math.pow(10,ct[0]))/bt,We=Je(10),ve.dtick="L"+Pe(Te,We,fe)}else ve.dtick=Te>.3?"D2":"D1"}else ve.type==="category"||ve.type==="multicategory"?(ve.tick0=0,ve.dtick=Math.ceil(Math.max(Te,1))):gt(ve)?(ve.tick0=0,We=1,ve.dtick=Pe(Te,We,ke)):(ve.tick0=0,We=Je(10),ve.dtick=Pe(Te,We,fe));if(ve.dtick===0&&(ve.dtick=1),!c(ve.dtick)&&typeof ve.dtick!="string"){var nt=ve.dtick;throw ve.dtick=1,"ax.dtick error: "+String(nt)}},Q.tickIncrement=function(ve,Te,Ve,We){var Je=Ve?-1:1;if(c(Te))return d.increment(ve,Je*Te);var Xe=Te.charAt(0),Ge=Je*Number(Te.substr(1));if(Xe==="M")return d.incrementMonth(ve,Ge,We);if(Xe==="L")return Math.log(Math.pow(10,ve)+Ge)/Math.LN10;if(Xe==="D"){var Qe=Te==="D2"?we:be,ct=ve+.01*Je,bt=d.roundUp(d.mod(ct,1),Qe,Ve);return Math.floor(ct)+Math.log(l.round(Math.pow(10,bt),1))/Math.LN10}throw"unrecognized dtick "+String(Te)},Q.tickFirst=function(ve,Te){var Ve=ve.r2l||Number,We=d.simpleMap(ve.range,Ve,void 0,void 0,Te),Je=We[1] ")}else mt._prevDateHead=ht,Pt+="
"+ht;vt.text=Pt}(ve,Xe,Ve,Qe):ct==="log"?function(mt,vt,wt,qt,Lt){var Gt=mt.dtick,ht=vt.x,Pt=mt.tickformat,At=typeof Gt=="string"&&Gt.charAt(0);if(Lt==="never"&&(Lt=""),qt&&At!=="L"&&(Gt="L3",At="L"),Pt||At==="L")vt.text=Ue(Math.pow(10,ht),mt,Lt,qt);else if(c(Gt)||At==="D"&&d.mod(ht+.01,1)<.1){var Ft=Math.round(ht),$t=Math.abs(Ft),Nt=mt.exponentformat;Nt==="power"||Fe(Nt)&&Be(Ft)?(vt.text=Ft===0?1:Ft===1?"10":"10"+(Ft>1?"":N)+$t+"",vt.fontSize*=1.25):(Nt==="e"||Nt==="E")&&$t>2?vt.text="1"+Nt+(Ft>0?"+":N)+$t:(vt.text=Ue(Math.pow(10,ht),mt,"","fakehover"),Gt==="D1"&&mt._id.charAt(0)==="y"&&(vt.dy-=vt.fontSize/6))}else{if(At!=="D")throw"unrecognized dtick "+String(Gt);vt.text=String(Math.round(Math.pow(10,d.mod(ht,1)))),vt.fontSize*=.75}if(mt.dtick==="D1"){var Vt=String(vt.text).charAt(0);Vt!=="0"&&Vt!=="1"||(mt._id.charAt(0)==="y"?vt.dx-=vt.fontSize/4:(vt.dy+=vt.fontSize/2,vt.dx+=(mt.range[1]>mt.range[0]?1:-1)*vt.fontSize*(ht<0?.5:.25)))}}(ve,Xe,0,Qe,Ct):ct==="category"?function(mt,vt){var wt=mt._categories[Math.round(vt.x)];wt===void 0&&(wt=""),vt.text=String(wt)}(ve,Xe):ct==="multicategory"?function(mt,vt,wt){var qt=Math.round(vt.x),Lt=mt._categories[qt]||[],Gt=Lt[1]===void 0?"":String(Lt[1]),ht=Lt[0]===void 0?"":String(Lt[0]);wt?vt.text=ht+" - "+Gt:(vt.text=Gt,vt.text2=ht)}(ve,Xe,Ve):gt(ve)?function(mt,vt,wt,qt,Lt){if(mt.thetaunit!=="radians"||wt)vt.text=Ue(vt.x,mt,Lt,qt);else{var Gt=vt.x/180;if(Gt===0)vt.text="0";else{var ht=function(At){function Ft(Xt,zt){return Math.abs(Xt-zt)<=1e-6}var $t=function(Xt){for(var zt=1;!Ft(Math.round(Xt*zt)/zt,Xt);)zt*=10;return zt}(At),Nt=At*$t,Vt=Math.abs(function Xt(zt,Wt){return Ft(Wt,0)?zt:Xt(Wt,zt%Wt)}(Nt,$t));return[Math.round(Nt/Vt),Math.round($t/Vt)]}(Gt);if(ht[1]>=100)vt.text=Ue(d.deg2rad(vt.x),mt,Lt,qt);else{var Pt=vt.x<0;ht[1]===1?ht[0]===1?vt.text="π":vt.text=ht[0]+"π":vt.text=["",ht[0],"","⁄","",ht[1],"","π"].join(""),Pt&&(vt.text=N+vt.text)}}}}(ve,Xe,Ve,Qe,Ct):function(mt,vt,wt,qt,Lt){Lt==="never"?Lt="":mt.showexponent==="all"&&Math.abs(vt.x/mt.dtick)<1e-6&&(Lt="hide"),vt.text=Ue(vt.x,mt,Lt,qt)}(ve,Xe,0,Qe,Ct),We||(ve.tickprefix&&!Yt(ve.showtickprefix)&&(Xe.text=ve.tickprefix+Xe.text),ve.ticksuffix&&!Yt(ve.showticksuffix)&&(Xe.text+=ve.ticksuffix)),ve.labelalias&&ve.labelalias.hasOwnProperty(Xe.text)){var jt=ve.labelalias[Xe.text];typeof jt=="string"&&(Xe.text=jt)}if(ve.tickson==="boundaries"||ve.showdividers){var Et=function(mt){var vt=ve.l2p(mt);return vt>=0&&vt<=ve._length?mt:null};Xe.xbnd=[Et(Xe.x-.5),Et(Xe.x+ve.dtick-.5)]}return Xe},Q.hoverLabelText=function(ve,Te,Ve){Ve&&(ve=d.extendFlat({},ve,{hoverformat:Ve}));var We=Array.isArray(Te)?Te[0]:Te,Je=Array.isArray(Te)?Te[1]:void 0;if(Je!==void 0&&Je!==We)return Q.hoverLabelText(ve,We,Ve)+" - "+Q.hoverLabelText(ve,Je,Ve);var Xe=ve.type==="log"&&We<=0,Ge=Q.tickText(ve,ve.c2l(Xe?-We:We),"hover").text;return Xe?We===0?"0":N+Ge:Ge};var Le=["f","p","n","μ","m","","k","M","G","T"];function Fe(ve){return ve==="SI"||ve==="B"}function Be(ve){return ve>14||ve<-15}function Ue(ve,Te,Ve,We){var Je=ve<0,Xe=Te._tickround,Ge=Ve||Te.exponentformat||"B",Qe=Te._tickexponent,ct=Q.getTickFormat(Te),bt=Te.separatethousands;if(We){var nt={exponentformat:Ge,minexponent:Te.minexponent,dtick:Te.showexponent==="none"?Te.dtick:c(ve)&&Math.abs(ve)||1,range:Te.showexponent==="none"?Te.range.map(Te.r2d):[0,ve||1]};Re(nt),Xe=(Number(nt._tickround)||0)+4,Qe=nt._tickexponent,Te.hoverformat&&(ct=Te.hoverformat)}if(ct)return Te._numFormat(ct)(ve).replace(/-/g,N);var It,Yt=Math.pow(10,-Xe)/2;if(Ge==="none"&&(Qe=0),(ve=Math.abs(ve))"+It+"":Ge==="B"&&Qe===9?ve+="B":Fe(Ge)&&(ve+=Le[Qe/3+5])),Je?N+ve:ve}function qe(ve,Te){if(ve){var Ve=Object.keys(q).reduce(function(We,Je){return Te.indexOf(Je)!==-1&&q[Je].forEach(function(Xe){We[Xe]=1}),We},{});Object.keys(ve).forEach(function(We){Ve[We]||(We.length===1?ve[We]=0:delete ve[We])})}}function Ye(ve,Te){for(var Ve=[],We={},Je=0;Je1&&Ve=Je.min&&ve=0,vt=nt(Yt,Ct[1])<=0;return(jt||mt)&&(Et||vt)}if(ve.tickformatstops&&ve.tickformatstops.length>0)switch(ve.type){case"date":case"linear":for(Te=0;Te=Ge(Je)))){Ve=We;break}break;case"log":for(Te=0;Te=0&&Je.unshift(Je.splice(bt,1).shift())}});var Ge={false:{left:0,right:0}};return d.syncOrAsync(Je.map(function(Qe){return function(){if(Qe){var ct=Q.getFromId(ve,Qe);Ve||(Ve={}),Ve.axShifts=Ge,Ve.overlayingShiftedAx=Xe;var bt=Q.drawOne(ve,ct,Ve);return ct._shiftPusher&&Tt(ct,ct._fullDepth||0,Ge,!0),ct._r=ct.range.slice(),ct._rl=d.simpleMap(ct._r,ct.r2l),bt}}}))},Q.drawOne=function(ve,Te,Ve){var We,Je,Xe,Ge=(Ve=Ve||{}).axShifts||{},Qe=Ve.overlayingShiftedAx||[];Te.setScale();var ct=ve._fullLayout,bt=Te._id,nt=bt.charAt(0),It=Q.counterLetter(bt),Yt=ct._plots[Te._mainSubplot];if(Yt){if(Te._shiftPusher=Te.autoshift||Qe.indexOf(Te._id)!==-1||Qe.indexOf(Te.overlaying)!==-1,Te._shiftPusher&Te.anchor==="free"){var Ct=Te.linewidth/2||0;Te.ticks==="inside"&&(Ct+=Te.ticklen),Tt(Te,Ct,Ge,!0),Tt(Te,Te.shift||0,Ge,!1)}Ve.skipTitle===!0&&Te._shift!==void 0||(Te._shift=function(An,ln){return An.autoshift?ln[An.overlaying][An.side]:An.shift||0}(Te,Ge));var jt=Yt[nt+"axislayer"],Et=Te._mainLinePosition,mt=Et+=Te._shift,vt=Te._mainMirrorPosition,wt=Te._vals=Q.calcTicks(Te),qt=[Te.mirror,mt,vt].join("_");for(We=0;We0?An.bottom-jn:0,gr))));var yr=0,Er=0;if(Te._shiftPusher&&(yr=Math.max(gr,An.height>0?Fn==="l"?jn-An.left:An.right-jn:0),Te.title.text!==ct._dfltTitle[nt]&&(Er=(Te._titleStandoff||0)+(Te._titleScoot||0),Fn==="l"&&(Er+=ft(Te))),Te._fullDepth=Math.max(yr,Er)),Te.automargin){ln={x:0,y:0,r:0,l:0,t:0,b:0};var Rr=[0,1],_a=typeof Te._shift=="number"?Te._shift:0;if(nt==="x"){if(Fn==="b"?ln[Fn]=Te._depth:(ln[Fn]=Te._depth=Math.max(An.width>0?jn-An.top:0,gr),Rr.reverse()),An.width>0){var $a=An.right-(Te._offset+Te._length);$a>0&&(ln.xr=1,ln.r=$a);var ra=Te._offset-An.left;ra>0&&(ln.xl=0,ln.l=ra)}}else if(Fn==="l"?(Te._depth=Math.max(An.height>0?jn-An.left:0,gr),ln[Fn]=Te._depth-_a):(Te._depth=Math.max(An.height>0?An.right-jn:0,gr),ln[Fn]=Te._depth+_a,Rr.reverse()),An.height>0){var aa=An.bottom-(Te._offset+Te._length);aa>0&&(ln.yb=0,ln.b=aa);var En=Te._offset-An.top;En>0&&(ln.yt=1,ln.t=En)}ln[It]=Te.anchor==="free"?Te.position:Te._anchorAxis.domain[Rr[0]],Te.title.text!==ct._dfltTitle[nt]&&(ln[Fn]+=ft(Te)+(Te.title.standoff||0)),Te.mirror&&Te.anchor!=="free"&&((Vn={x:0,y:0,r:0,l:0,t:0,b:0})[Yn]=Te.linewidth,Te.mirror&&Te.mirror!==!0&&(Vn[Yn]+=gr),Te.mirror===!0||Te.mirror==="ticks"?Vn[It]=Te._anchorAxis.domain[Rr[1]]:Te.mirror!=="all"&&Te.mirror!=="allticks"||(Vn[It]=[Te._counterDomainMin,Te._counterDomainMax][Rr[1]]))}ha&&($r=f.getComponentMethod("rangeslider","autoMarginOpts")(ve,Te)),typeof Te.automargin=="string"&&(qe(ln,Te.automargin),qe(Vn,Te.automargin)),u.autoMargin(ve,Ne(Te),ln),u.autoMargin(ve,et(Te),Vn),u.autoMargin(ve,it(Te),$r)}),d.syncOrAsync(Ir)}}function Dr(An){var ln=bt+(An||"tick");return Lt[ln]||(Lt[ln]=function(Vn,$r){var Fn,Yn,jn,gr;return Vn._selections[$r].size()?(Fn=1/0,Yn=-1/0,jn=1/0,gr=-1/0,Vn._selections[$r].each(function(){var yr=ze(this),Er=v.bBox(yr.node().parentNode);Fn=Math.min(Fn,Er.top),Yn=Math.max(Yn,Er.bottom),jn=Math.min(jn,Er.left),gr=Math.max(gr,Er.right)})):(Fn=0,Yn=0,jn=0,gr=0),{top:Fn,bottom:Yn,left:jn,right:gr,height:Yn-Fn,width:gr-jn}}(Te,ln)),Lt[ln]}},Q.getTickSigns=function(ve,Te){var Ve=ve._id.charAt(0),We={x:"top",y:"right"}[Ve],Je=ve.side===We?1:-1,Xe=[-1,1,Je,-Je];return(Te?(ve.minor||{}).ticks:ve.ticks)!=="inside"==(Ve==="x")&&(Xe=Xe.map(function(Ge){return-Ge})),ve.side&&Xe.push({l:-1,t:-1,r:1,b:1}[ve.side.charAt(0)]),Xe},Q.makeTransTickFn=function(ve){return ve._id.charAt(0)==="x"?function(Te){return p(ve._offset+ve.l2p(Te.x),0)}:function(Te){return p(0,ve._offset+ve.l2p(Te.x))}},Q.makeTransTickLabelFn=function(ve){var Te=function(Je){var Xe=Je.ticklabelposition||"",Ge=function(vt){return Xe.indexOf(vt)!==-1},Qe=Ge("top"),ct=Ge("left"),bt=Ge("right"),nt=Ge("bottom"),It=Ge("inside"),Yt=nt||ct||Qe||bt;if(!Yt&&!It)return[0,0];var Ct=Je.side,jt=Yt?(Je.tickwidth||0)/2:0,Et=3,mt=Je.tickfont?Je.tickfont.size:12;return(nt||Qe)&&(jt+=mt*te,Et+=(Je.linewidth||0)/2),(ct||bt)&&(jt+=(Je.linewidth||0)/2,Et+=3),It&&Ct==="top"&&(Et-=mt*(1-te)),(ct||Qe)&&(jt=-jt),Ct!=="bottom"&&Ct!=="right"||(Et=-Et),[Yt?jt:0,It?Et:0]}(ve),Ve=Te[0],We=Te[1];return ve._id.charAt(0)==="x"?function(Je){return p(Ve+ve._offset+ve.l2p(at(Je)),We)}:function(Je){return p(We,Ve+ve._offset+ve.l2p(at(Je)))}},Q.makeTickPath=function(ve,Te,Ve,We){We||(We={});var Je=We.minor;if(Je&&!ve.minor)return"";var Xe=We.len!==void 0?We.len:Je?ve.minor.ticklen:ve.ticklen,Ge=ve._id.charAt(0),Qe=(ve.linewidth||1)/2;return Ge==="x"?"M0,"+(Te+Qe*Ve)+"v"+Xe*Ve:"M"+(Te+Qe*Ve)+",0h"+Xe*Ve},Q.makeLabelFns=function(ve,Te,Ve){var We=ve.ticklabelposition||"",Je=function(Nt){return We.indexOf(Nt)!==-1},Xe=Je("top"),Ge=Je("left"),Qe=Je("right"),ct=Je("bottom")||Ge||Xe||Qe,bt=Je("inside"),nt=We==="inside"&&ve.ticks==="inside"||!bt&&ve.ticks==="outside"&&ve.tickson!=="boundaries",It=0,Yt=0,Ct=nt?ve.ticklen:0;if(bt?Ct*=-1:ct&&(Ct=0),nt&&(It+=Ct,Ve)){var jt=d.deg2rad(Ve);It=Ct*Math.cos(jt)+1,Yt=Ct*Math.sin(jt)}ve.showticklabels&&(nt||ve.showline)&&(It+=.2*ve.tickfont.size);var Et,mt,vt,wt,qt,Lt={labelStandoff:It+=(ve.linewidth||1)/2*(bt?-1:1),labelShift:Yt},Gt=0,ht=ve.side,Pt=ve._id.charAt(0),At=ve.tickangle;if(Pt==="x")wt=(qt=!bt&&ht==="bottom"||bt&&ht==="top")?1:-1,bt&&(wt*=-1),Et=Yt*wt,mt=Te+It*wt,vt=qt?1:-.2,Math.abs(At)===90&&(bt?vt+=J:vt=At===-90&&ht==="bottom"?te:At===90&&ht==="top"?J:.5,Gt=J/2*(At/90)),Lt.xFn=function(Nt){return Nt.dx+Et+Gt*Nt.fontSize},Lt.yFn=function(Nt){return Nt.dy+mt+Nt.fontSize*vt},Lt.anchorFn=function(Nt,Vt){if(ct){if(Ge)return"end";if(Qe)return"start"}return c(Vt)&&Vt!==0&&Vt!==180?Vt*wt<0!==bt?"end":"start":"middle"},Lt.heightFn=function(Nt,Vt,Xt){return Vt<-60||Vt>60?-.5*Xt:ve.side==="top"!==bt?-Xt:0};else if(Pt==="y"){if(wt=(qt=!bt&&ht==="left"||bt&&ht==="right")?1:-1,bt&&(wt*=-1),Et=It,mt=Yt*wt,vt=0,bt||Math.abs(At)!==90||(vt=At===-90&&ht==="left"||At===90&&ht==="right"?te:.5),bt){var Ft=c(At)?+At:0;if(Ft!==0){var $t=d.deg2rad(Ft);Gt=Math.abs(Math.sin($t))*te*wt,vt=0}}Lt.xFn=function(Nt){return Nt.dx+Te-(Et+Nt.fontSize*vt)*wt+Gt*Nt.fontSize},Lt.yFn=function(Nt){return Nt.dy+mt+Nt.fontSize*J},Lt.anchorFn=function(Nt,Vt){return c(Vt)&&Math.abs(Vt)===90?"middle":qt?"end":"start"},Lt.heightFn=function(Nt,Vt,Xt){return ve.side==="right"&&(Vt*=-1),Vt<-30?-Xt:Vt<30?-.5*Xt:0}}return Lt},Q.drawTicks=function(ve,Te,Ve){Ve=Ve||{};var We=Te._id+"tick",Je=[].concat(Te.minor&&Te.minor.ticks?Ve.vals.filter(function(Ge){return Ge.minor&&!Ge.noTick}):[]).concat(Te.ticks?Ve.vals.filter(function(Ge){return!Ge.minor&&!Ge.noTick}):[]),Xe=Ve.layer.selectAll("path."+We).data(Je,st);Xe.exit().remove(),Xe.enter().append("path").classed(We,1).classed("ticks",1).classed("crisp",Ve.crisp!==!1).each(function(Ge){return y.stroke(l.select(this),Ge.minor?Te.minor.tickcolor:Te.tickcolor)}).style("stroke-width",function(Ge){return v.crispRound(ve,Ge.minor?Te.minor.tickwidth:Te.tickwidth,1)+"px"}).attr("d",Ve.path).style("display",null),Bt(Te,[H]),Xe.attr("transform",Ve.transFn)},Q.drawGrid=function(ve,Te,Ve){if(Ve=Ve||{},Te.tickmode!=="sync"){var We=Te._id+"grid",Je=Te.minor&&Te.minor.showgrid,Xe=Je?Ve.vals.filter(function(vt){return vt.minor}):[],Ge=Te.showgrid?Ve.vals.filter(function(vt){return!vt.minor}):[],Qe=Ve.counterAxis;if(Qe&&Q.shouldShowZeroLine(ve,Te,Qe))for(var ct=Te.tickmode==="array",bt=0;bt=0;jt--){var Et=jt?Yt:Ct;if(Et){var mt=Et.selectAll("path."+We).data(jt?Ge:Xe,st);mt.exit().remove(),mt.enter().append("path").classed(We,1).classed("crisp",Ve.crisp!==!1),mt.attr("transform",Ve.transFn).attr("d",Ve.path).each(function(vt){return y.stroke(l.select(this),vt.minor?Te.minor.gridcolor:Te.gridcolor||"#ddd")}).style("stroke-dasharray",function(vt){return v.dashStyle(vt.minor?Te.minor.griddash:Te.griddash,vt.minor?Te.minor.gridwidth:Te.gridwidth)}).style("stroke-width",function(vt){return(vt.minor?It:Te._gw)+"px"}).style("display",null),typeof Ve.path=="function"&&mt.attr("d",Ve.path)}}Bt(Te,[E,W])}},Q.drawZeroLine=function(ve,Te,Ve){Ve=Ve||Ve;var We=Te._id+"zl",Je=Q.shouldShowZeroLine(ve,Te,Ve.counterAxis),Xe=Ve.layer.selectAll("path."+We).data(Je?[{x:0,id:Te._id}]:[]);Xe.exit().remove(),Xe.enter().append("path").classed(We,1).classed("zl",1).classed("crisp",Ve.crisp!==!1).each(function(){Ve.layer.selectAll("path").sort(function(Ge,Qe){return Y(Ge.id,Qe.id)})}),Xe.attr("transform",Ve.transFn).attr("d",Ve.path).call(y.stroke,Te.zerolinecolor||y.defaultLine).style("stroke-width",v.crispRound(ve,Te.zerolinewidth,Te._gw||1)+"px").style("display",null),Bt(Te,[F])},Q.drawLabels=function(ve,Te,Ve){Ve=Ve||{};var We=ve._fullLayout,Je=Te._id,Xe=Je.charAt(0),Ge=Ve.cls||Je+"tick",Qe=Ve.vals.filter(function(wt){return wt.text}),ct=Ve.labelFns,bt=Ve.secondary?0:Te.tickangle,nt=(Te._prevTickAngles||{})[Ge],It=Ve.layer.selectAll("g."+Ge).data(Te.showticklabels?Qe:[],st),Yt=[];function Ct(wt,qt){wt.each(function(Lt){var Gt=l.select(this),ht=Gt.select(".text-math-group"),Pt=ct.anchorFn(Lt,qt),At=Ve.transFn.call(Gt.node(),Lt)+(c(qt)&&+qt!=0?" rotate("+qt+","+ct.xFn(Lt)+","+(ct.yFn(Lt)-Lt.fontSize/2)+")":""),Ft=h.lineCount(Gt),$t=ee*Lt.fontSize,Nt=ct.heightFn(Lt,c(qt)?+qt:0,(Ft-1)*$t);if(Nt&&(At+=p(0,Nt)),ht.empty()){var Vt=Gt.select("text");Vt.attr({transform:At,"text-anchor":Pt}),Vt.style("opacity",1),Te._adjustTickLabelsOverflow&&Te._adjustTickLabelsOverflow()}else{var Xt=v.bBox(ht.node()).width*{end:-.5,start:.5}[Pt];ht.attr("transform",At+p(Xt,0))}})}It.enter().append("g").classed(Ge,1).append("text").attr("text-anchor","middle").each(function(wt){var qt=l.select(this),Lt=ve._promises.length;qt.call(h.positionText,ct.xFn(wt),ct.yFn(wt)).call(v.font,wt.font,wt.fontSize,wt.fontColor).text(wt.text).call(h.convertToTspans,ve),ve._promises[Lt]?Yt.push(ve._promises.pop().then(function(){Ct(qt,bt)})):Ct(qt,bt)}),Bt(Te,[L]),It.exit().remove(),Ve.repositionOnUpdate&&It.each(function(wt){l.select(this).select("text").call(h.positionText,ct.xFn(wt),ct.yFn(wt))}),Te._adjustTickLabelsOverflow=function(){var wt=Te.ticklabeloverflow;if(wt&&wt!=="allow"){var qt=wt.indexOf("hide")!==-1,Lt=Te._id.charAt(0)==="x",Gt=0,ht=Lt?ve._fullLayout.width:ve._fullLayout.height;if(wt.indexOf("domain")!==-1){var Pt=d.simpleMap(Te.range,Te.r2l);Gt=Te.l2p(Pt[0])+Te._offset,ht=Te.l2p(Pt[1])+Te._offset}var At=Math.min(Gt,ht),Ft=Math.max(Gt,ht),$t=Te.side,Nt=1/0,Vt=-1/0;for(var Xt in It.each(function(an){var fn=l.select(this);if(fn.select(".text-math-group").empty()){var un=v.bBox(fn.node()),on=0;Lt?(un.right>Ft||un.leftFt||un.top+(Te.tickangle?0:an.fontSize/4)Te["_visibleLabelMin_"+Pt._id]?Wt.style("display","none"):Ft.K!=="tick"||At||Wt.style("display",null)})})})})},Ct(It,nt+1?nt:bt);var jt=null;Te._selections&&(Te._selections[Ge]=It);var Et=[function(){return Yt.length&&Promise.all(Yt)}];Te.automargin&&We._redrawFromAutoMarginCount&&nt===90?(jt=90,Et.push(function(){Ct(It,nt)})):Et.push(function(){if(Ct(It,bt),Qe.length&&Xe==="x"&&!c(bt)&&(Te.type!=="log"||String(Te.dtick).charAt(0)!=="D")){jt=0;var wt,qt=0,Lt=[];if(It.each(function(fn){qt=Math.max(qt,fn.fontSize);var un=Te.l2p(fn.x),on=ze(this),sn=v.bBox(on.node());Lt.push({top:0,bottom:10,height:10,left:un-sn.width/2,right:un+sn.width/2+2,width:sn.width+2})}),Te.tickson!=="boundaries"&&!Te.showdividers||Ve.secondary){var Gt=Qe.length,ht=Math.abs((Qe[Gt-1].x-Qe[0].x)*Te._m)/(Gt-1),Pt=Te.ticklabelposition||"",At=function(fn){return Pt.indexOf(fn)!==-1},Ft=At("top"),$t=At("left"),Nt=At("right"),Vt=At("bottom")||$t||Ft||Nt?(Te.tickwidth||0)+6:0,Xt=ht<2.5*qt||Te.type==="multicategory"||Te._name==="realaxis";for(wt=0;wt1)for(Qe=1;Qe2*R}(w,g))return"date";var S=b.autotypenumbers!=="strict";return function(M,C){for(var A=M.length,D=y(A),O=0,R=0,$={},P=0;P2*O}(w,S)?"category":function(M,C){for(var A=M.length,D=0;D=2){var $,P,z="";if(R.length===2){for($=0;$<2;$++)if(P=M(R[$])){z=x;break}}var B=O("pattern",z);if(B===x)for($=0;$<2;$++)(P=M(R[$]))&&(A.bounds[$]=R[$]=P-1);if(B)for($=0;$<2;$++)switch(P=R[$],B){case x:if(!l(P)||(P=+P)!==Math.floor(P)||P<0||P>=7)return void(A.enabled=!1);A.bounds[$]=R[$]=P;break;case k:if(!l(P)||(P=+P)<0||P>24)return void(A.enabled=!1);A.bounds[$]=R[$]=P}if(D.autorange===!1){var N=D.range;if(N[0]N[1])return void(A.enabled=!1)}else if(R[0]>N[0]&&R[1]h?1:-1:+(f.substr(1)||1)-+(d.substr(1)||1)},a.ref2id=function(f){return!!/^[xyz]/.test(f)&&f.split(" ")[0]},a.isLinked=function(f,d){return u(d,f._axisMatchGroups)||u(d,f._axisConstraintGroups)}},15258:function(o){o.exports=function(a,n,l,c){if(n.type==="category"){var u,f=a.categoryarray,d=Array.isArray(f)&&f.length>0;d&&(u="array");var p,h=l("categoryorder",u);h==="array"&&(p=l("categoryarray")),d||h!=="array"||(h=n.categoryorder="trace"),h==="trace"?n._initialCategories=[]:h==="array"?n._initialCategories=p.slice():(p=function(m,y){var v,g,b,w=y.dataAttr||m._id.charAt(0),_={};if(y.axData)v=y.axData;else for(v=[],g=0;gM?C.substr(M):A.substr(S))+D:C+A+k*T:D}function _(k,T){for(var S=T._size,M=S.h/S.w,C={},A=Object.keys(k),D=0;Dh*N)||W){for(S=0;SG&&ieK&&(K=ie);R/=(K-ee)/(2*Q),ee=A.l2r(ee),K=A.l2r(K),A.range=A._input.range=U=0?Math.min(ie,.9):1/(1/Math.max(ie,-.3)+3.222))}function U(ie,le,se,he,_e){return ie.append("path").attr("class","zoombox").style({fill:le>.2?"rgba(0,0,0,0)":"rgba(255,255,255,0)","stroke-width":0}).attr("transform",h(se,he)).attr("d",_e+"Z")}function J(ie,le,se){return ie.append("path").attr("class","zoombox-corners").style({fill:y.background,stroke:y.defaultLine,"stroke-width":1,opacity:0}).attr("transform",h(le,se)).attr("d","M0,0Z")}function te(ie,le,se,he,_e,Me){ie.attr("d",he+"M"+se.l+","+se.t+"v"+se.h+"h"+se.w+"v-"+se.h+"h-"+se.w+"Z"),ee(ie,le,_e,Me)}function ee(ie,le,se,he){se||(ie.transition().style("fill",he>.2?"rgba(0,0,0,0.4)":"rgba(255,255,255,0.3)").duration(200),le.transition().style("opacity",1).duration(200))}function K(ie){l.select(ie).selectAll(".zoombox,.js-zoombox-backdrop,.js-zoombox-menu,.zoombox-corners").remove()}function Q(ie){j&&ie.data&&ie._context.showTips&&(c.notifier(c._(ie,"Double-click to zoom back out"),"long"),j=!1)}function G(ie){var le=Math.floor(Math.min(ie.b-ie.t,ie.r-ie.l,N)/2);return"M"+(ie.l-3.5)+","+(ie.t-.5+le)+"h3v"+-le+"h"+le+"v-3h-"+(le+3)+"ZM"+(ie.r+3.5)+","+(ie.t-.5+le)+"h-3v"+-le+"h"+-le+"v-3h"+(le+3)+"ZM"+(ie.r+3.5)+","+(ie.b+.5-le)+"h-3v"+le+"h"+-le+"v3h"+(le+3)+"ZM"+(ie.l-3.5)+","+(ie.b+.5-le)+"h3v"+le+"h"+le+"v3h-"+(le+3)+"Z"}function X(ie,le,se,he,_e){for(var Me,Ce,Se,ce,ye=!1,V={},ne={},fe=(_e||{}).xaHash,xe=(_e||{}).yaHash,ue=0;ue=0)At._fullLayout._deactivateShape(At);else{var Ft=At._fullLayout.clickmode;if(K(At),ht!==2||Ne||mt(),ze)Ft.indexOf("select")>-1&&$(Pt,At,fe,xe,le.id,We),Ft.indexOf("event")>-1&&g.click(At,Pt,le.id);else if(ht===1&&Ne){var $t=Ce?ye:ce,Nt=Ce==="s"||Se==="w"?0:1,Vt=$t._name+".range["+Nt+"]",Xt=function(an,fn){var un,on=an.range[fn],sn=Math.abs(on-an.range[1-fn]);return an.type==="date"?on:an.type==="log"?(un=Math.ceil(Math.max(0,-Math.log(sn)/Math.LN10))+3,u("."+un+"g")(Math.pow(10,on))):(un=Math.floor(Math.log(Math.abs(on))/Math.LN10)-Math.floor(Math.log(sn)/Math.LN10)+4,u("."+String(un)+"g")(on))}($t,Nt),zt="left",Wt="middle";if($t.fixedrange)return;Ce?(Wt=Ce==="n"?"top":"bottom",$t.side==="right"&&(zt="right")):Se==="e"&&(zt="right"),At._context.showAxisRangeEntryBoxes&&l.select(St).call(m.makeEditable,{gd:At,immediate:!0,background:At._fullLayout.paper_bgcolor,text:String(Xt),fill:$t.tickfont?$t.tickfont.color:"#444",horizontalAlign:zt,verticalAlign:Wt}).on("edit",function(an){var fn=$t.d2r(an);fn!==void 0&&p.call("_guiRelayout",At,Vt,fn)})}}}function Ge(ht,Pt){if(ie._transitioningWithDuration)return!1;var At=Math.max(0,Math.min(be,st*ht+Ze)),Ft=Math.max(0,Math.min(we,ft*Pt+ut)),$t=Math.abs(At-Ze),Nt=Math.abs(Ft-ut);function Vt(){Tt="",gt.r=gt.l,gt.t=gt.b,Te.attr("d","M0,0Z")}if(gt.l=Math.min(Ze,At),gt.r=Math.max(Ze,At),gt.t=Math.min(ut,Ft),gt.b=Math.max(ut,Ft),ke.isSubplotConstrained)$t>N||Nt>N?(Tt="xy",$t/be>Nt/we?(Nt=$t*we/be,ut>Ft?gt.t=ut-Nt:gt.b=ut+Nt):($t=Nt*be/we,Ze>At?gt.l=Ze-$t:gt.r=Ze+$t),Te.attr("d",G(gt))):Vt();else if(Pe.isSubplotConstrained)if($t>N||Nt>N){Tt="xy";var Xt=Math.min(gt.l/be,(we-gt.b)/we),zt=Math.max(gt.r/be,(we-gt.t)/we);gt.l=Xt*be,gt.r=zt*be,gt.b=(1-Xt)*we,gt.t=(1-zt)*we,Te.attr("d",G(gt))}else Vt();else!De||Nt0){var Wt;if(Pe.isSubplotConstrained||!Re&&De.length===1){for(Wt=0;Wt1&&(Ft.maxallowed!==void 0&&Fe===(Ft.range[0]1&&($t.maxallowed!==void 0&&Be===($t.range[0]<$t.range[1]?"n":"s")||$t.minallowed!==void 0&&Be===($t.range[0]<$t.range[1]?"s":"n"))&&(on=1,Sn=0),un||on){un||(un=1),on||(on=1);var Kt=Ft._offset-sn/un,Mn=$t._offset-Sn/on;At.clipRect.call(v.setTranslate,sn,Sn).call(v.setScale,un,on),At.plot.call(v.setTranslate,Kt,Mn).call(v.setScale,1/un,1/on),un===At.xScaleFactor&&on===At.yScaleFactor||(v.setPointGroupScale(At.zoomScalePts,un,on),v.setTextPointsScale(At.zoomScaleTxt,un,on)),v.hideOutsideRangePoints(At.clipOnAxisFalseTraces,At),At.xScaleFactor=un,At.yScaleFactor=on}}}}function qt(ht,Pt,At){return ht.fixedrange?0:Fe&&ke.xaHash[ht._id]?Pt:Be&&(ke.isSubplotConstrained?ke.xaHash:ke.yaHash)[ht._id]?At:0}function Lt(ht,Pt){return Pt?(ht.range=ht._r.slice(),P(ht,Pt),Gt(ht,Pt)):0}function Gt(ht,Pt,At){return ht._length*(1-Pt)*S[At||ht.constraintoward||"middle"]}return Ce.length*Se.length!=1&&Y(St,function(ht){if(ie._context._scrollZoom.cartesian||ie._fullLayout._enablescrollzoom){if(Je(),ie._transitioningWithDuration)return ht.preventDefault(),void ht.stopPropagation();et(),clearTimeout(nt);var Pt=-ht.deltaY;if(isFinite(Pt)||(Pt=ht.wheelDelta/10),isFinite(Pt)){var At,Ft=Math.exp(-Math.min(Math.max(Pt,-20),20)/200),$t=Yt.draglayer.select(".nsewdrag").node().getBoundingClientRect(),Nt=(ht.clientX-$t.left)/$t.width,Vt=($t.bottom-ht.clientY)/$t.height;if(Fe){for(Se||(Nt=.5),At=0;AtA[1]-.000244140625&&(f.domain=m),c.noneOrAll(u.domain,f.domain,m),f.tickmode==="sync"&&(f.tickmode="auto")}return d("layer"),f}},89426:function(o,a,n){var l=n(59652);o.exports=function(c,u,f,d,p){p||(p={});var h=p.tickSuffixDflt,m=l(c);f("tickprefix")&&f("showtickprefix",m),f("ticksuffix",h)&&f("showticksuffix",m)}},23608:function(o,a,n){var l=n(23074);o.exports=function(c,u,f,d){var p=u._template||{},h=u.type||p.type||"-";f("minallowed"),f("maxallowed");var m,y=f("range"),v=u.getAutorangeDflt(y,d),g=f("autorange",v);!y||(y[0]!==null||y[1]!==null)&&(y[0]!==null&&y[1]!==null||g!=="reversed"&&g!==!0)&&(y[0]===null||g!=="min"&&g!=="max reversed")&&(y[1]===null||g!=="max"&&g!=="min reversed")||(y=void 0,delete u.range,u.autorange=!0,m=!0),m||(g=f("autorange",v=u.getAutorangeDflt(y,d))),g&&(l(f,g,y),h!=="linear"&&h!=="-"||f("rangemode")),u.cleanRange()}},42449:function(o,a,n){var l=n(18783).FROM_BL;o.exports=function(c,u,f){f===void 0&&(f=l[c.constraintoward||"center"]);var d=[c.r2l(c.range[0]),c.r2l(c.range[1])],p=d[0]+(d[1]-d[0])*f;c.range=c._input.range=[c.l2r(p+(d[0]-p)*u),c.l2r(p+(d[1]-p)*u)],c.setScale()}},21994:function(o,a,n){var l=n(39898),c=n(84096).g0,u=n(71828),f=u.numberFormat,d=n(92770),p=u.cleanNumber,h=u.ms2DateTime,m=u.dateTime2ms,y=u.ensureNumber,v=u.isArrayOrTypedArray,g=n(50606),b=g.FP_SAFE,w=g.BADNUM,_=g.LOG_CLIP,x=g.ONEWEEK,k=g.ONEDAY,T=g.ONEHOUR,S=g.ONEMIN,M=g.ONESEC,C=n(41675),A=n(85555),D=A.HOUR_PATTERN,O=A.WEEKDAY_PATTERN;function R(P){return Math.pow(10,P)}function $(P){return P!=null}o.exports=function(P,z){z=z||{};var B=P._id||"x",N=B.charAt(0);function j(X,Y){if(X>0)return Math.log(X)/Math.LN10;if(X<=0&&Y&&P.range&&P.range.length===2){var re=P.range[0],ie=P.range[1];return .5*(re+ie-2*_*Math.abs(re-ie))}return w}function F(X,Y,re,ie){if((ie||{}).msUTC&&d(X))return+X;var le=m(X,re||P.calendar);if(le===w){if(!d(X))return w;X=+X;var se=Math.floor(10*u.mod(X+.05,1)),he=Math.round(X-se/10);le=m(new Date(he))+se/10}return le}function E(X,Y,re){return h(X,Y,re||P.calendar)}function W(X){return P._categories[Math.round(X)]}function H(X){if($(X)){if(P._categoriesMap===void 0&&(P._categoriesMap={}),P._categoriesMap[X]!==void 0)return P._categoriesMap[X];P._categories.push(typeof X=="number"?String(X):X);var Y=P._categories.length-1;return P._categoriesMap[X]=Y,Y}return w}function L(X){if(P._categoriesMap)return P._categoriesMap[X]}function q(X){var Y=L(X);return Y!==void 0?Y:d(X)?+X:void 0}function U(X){return d(X)?+X:L(X)}function J(X,Y,re){return l.round(re+Y*X,2)}function te(X,Y,re){return(X-re)/Y}var ee=function(X){return d(X)?J(X,P._m,P._b):w},K=function(X){return te(X,P._m,P._b)};if(P.rangebreaks){var Q=N==="y";ee=function(X){if(!d(X))return w;var Y=P._rangebreaks.length;if(!Y)return J(X,P._m,P._b);var re=Q;P.range[0]>P.range[1]&&(re=!re);for(var ie=re?-1:1,le=ie*X,se=0,he=0;heMe)){se=le<(_e+Me)/2?he:he+1;break}se=he+1}var Ce=P._B[se]||0;return isFinite(Ce)?J(X,P._m2,Ce):0},K=function(X){var Y=P._rangebreaks.length;if(!Y)return te(X,P._m,P._b);for(var re=0,ie=0;ieP._rangebreaks[ie].pmax&&(re=ie+1);return te(X,P._m2,P._B[re])}}P.c2l=P.type==="log"?j:y,P.l2c=P.type==="log"?R:y,P.l2p=ee,P.p2l=K,P.c2p=P.type==="log"?function(X,Y){return ee(j(X,Y))}:ee,P.p2c=P.type==="log"?function(X){return R(K(X))}:K,["linear","-"].indexOf(P.type)!==-1?(P.d2r=P.r2d=P.d2c=P.r2c=P.d2l=P.r2l=p,P.c2d=P.c2r=P.l2d=P.l2r=y,P.d2p=P.r2p=function(X){return P.l2p(p(X))},P.p2d=P.p2r=K,P.cleanPos=y):P.type==="log"?(P.d2r=P.d2l=function(X,Y){return j(p(X),Y)},P.r2d=P.r2c=function(X){return R(p(X))},P.d2c=P.r2l=p,P.c2d=P.l2r=y,P.c2r=j,P.l2d=R,P.d2p=function(X,Y){return P.l2p(P.d2r(X,Y))},P.p2d=function(X){return R(K(X))},P.r2p=function(X){return P.l2p(p(X))},P.p2r=K,P.cleanPos=y):P.type==="date"?(P.d2r=P.r2d=u.identity,P.d2c=P.r2c=P.d2l=P.r2l=F,P.c2d=P.c2r=P.l2d=P.l2r=E,P.d2p=P.r2p=function(X,Y,re){return P.l2p(F(X,0,re))},P.p2d=P.p2r=function(X,Y,re){return E(K(X),Y,re)},P.cleanPos=function(X){return u.cleanDate(X,w,P.calendar)}):P.type==="category"?(P.d2c=P.d2l=H,P.r2d=P.c2d=P.l2d=W,P.d2r=P.d2l_noadd=q,P.r2c=function(X){var Y=U(X);return Y!==void 0?Y:P.fraction2r(.5)},P.l2r=P.c2r=y,P.r2l=U,P.d2p=function(X){return P.l2p(P.r2c(X))},P.p2d=function(X){return W(K(X))},P.r2p=P.d2p,P.p2r=K,P.cleanPos=function(X){return typeof X=="string"&&X!==""?X:y(X)}):P.type==="multicategory"&&(P.r2d=P.c2d=P.l2d=W,P.d2r=P.d2l_noadd=q,P.r2c=function(X){var Y=q(X);return Y!==void 0?Y:P.fraction2r(.5)},P.r2c_just_indices=L,P.l2r=P.c2r=y,P.r2l=q,P.d2p=function(X){return P.l2p(P.r2c(X))},P.p2d=function(X){return W(K(X))},P.r2p=P.d2p,P.p2r=K,P.cleanPos=function(X){return Array.isArray(X)||typeof X=="string"&&X!==""?X:y(X)},P.setupMultiCategory=function(X){var Y,re,ie=P._traceIndices,le=P._matchGroup;if(le&&P._categories.length===0){for(var se in le)if(se!==B){var he=z[C.id2name(se)];ie=ie.concat(he._traceIndices)}}var _e=[[0,{}],[0,{}]],Me=[];for(Y=0;Yhe[1]&&(ie[se?0:1]=re)}},P.cleanRange=function(X,Y){P._cleanRange(X,Y),P.limitRange(X)},P._cleanRange=function(X,Y){Y||(Y={}),X||(X="range");var re,ie,le=u.nestedProperty(P,X).get();if(ie=(ie=P.type==="date"?u.dfltRange(P.calendar):N==="y"?A.DFLTRANGEY:P._name==="realaxis"?[0,1]:Y.dfltRange||A.DFLTRANGEX).slice(),P.rangemode!=="tozero"&&P.rangemode!=="nonnegative"||(ie[0]=0),le&&le.length===2){var se=le[0]===null,he=le[1]===null;for(P.type!=="date"||P.autorange||(le[0]=u.cleanDate(le[0],w,P.calendar),le[1]=u.cleanDate(le[1],w,P.calendar)),re=0;re<2;re++)if(P.type==="date"){if(!u.isDateTime(le[re],P.calendar)){P[X]=ie;break}if(P.r2l(le[0])===P.r2l(le[1])){var _e=u.constrain(P.r2l(le[0]),u.MIN_MS+1e3,u.MAX_MS-1e3);le[0]=P.l2r(_e-1e3),le[1]=P.l2r(_e+1e3);break}}else{if(!d(le[re])){if(se||he||!d(le[1-re])){P[X]=ie;break}le[re]=le[1-re]*(re?10:.1)}if(le[re]<-b?le[re]=-b:le[re]>b&&(le[re]=b),le[0]===le[1]){var Me=Math.max(1,Math.abs(1e-6*le[0]));le[0]-=Me,le[1]+=Me}}}else u.nestedProperty(P,X).set(ie)},P.setScale=function(X){var Y=z._size;if(P.overlaying){var re=C.getFromId({_fullLayout:z},P.overlaying);P.domain=re.domain}var ie=X&&P._r?"_r":"range",le=P.calendar;P.cleanRange(ie);var se,he,_e=P.r2l(P[ie][0],le),Me=P.r2l(P[ie][1],le),Ce=N==="y";if(Ce?(P._offset=Y.t+(1-P.domain[1])*Y.h,P._length=Y.h*(P.domain[1]-P.domain[0]),P._m=P._length/(_e-Me),P._b=-P._m*Me):(P._offset=Y.l+P.domain[0]*Y.w,P._length=Y.w*(P.domain[1]-P.domain[0]),P._m=P._length/(Me-_e),P._b=-P._m*_e),P._rangebreaks=[],P._lBreaks=0,P._m2=0,P._B=[],P.rangebreaks&&(P._rangebreaks=P.locateBreaks(Math.min(_e,Me),Math.max(_e,Me)),P._rangebreaks.length)){for(se=0;seMe&&(Se=!Se),Se&&P._rangebreaks.reverse();var ce=Se?-1:1;for(P._m2=ce*P._length/(Math.abs(Me-_e)-P._lBreaks),P._B.push(-P._m2*(Ce?Me:_e)),se=0;seie&&(ie+=7,leie&&(ie+=24,le=re&&le=re&&X=Pe.min&&(gePe.max&&(Pe.max=be),we=!1)}we&&he.push({min:ge,max:be})}};for(re=0;re<_e.length;re++){var Ce=_e[re];if(Ce.enabled)if(Ce.bounds){var Se=X,ce=Y;Ce.pattern&&(Se=Math.floor(Se)),le=(ie=u.simpleMap(Ce.bounds,Ce.pattern?p:P.r2l))[0],se=ie[1];var ye,V,ne=new Date(Se);switch(Ce.pattern){case O:V=x,ye=(se-le+(sem.duration?(function(){for(var D={},O=0;O rect").call(f.setTranslate,0,0).call(f.setScale,1,1),S.plot.call(f.setTranslate,M._offset,C._offset).call(f.setScale,1,1);var A=S.plot.selectAll(".scatterlayer .trace");A.selectAll(".point").call(f.setPointGroupScale,1,1),A.selectAll(".textpoint").call(f.setTextPointsScale,1,1),A.call(f.hideOutsideRangePoints,S)}function T(S,M){var C=S.plotinfo,A=C.xaxis,D=C.yaxis,O=A._length,R=D._length,$=!!S.xr1,P=!!S.yr1,z=[];if($){var B=u.simpleMap(S.xr0,A.r2l),N=u.simpleMap(S.xr1,A.r2l),j=B[1]-B[0],F=N[1]-N[0];z[0]=(B[0]*(1-M)+M*N[0]-B[0])/(B[1]-B[0])*O,z[2]=O*(1-M+M*F/j),A.range[0]=A.l2r(B[0]*(1-M)+M*N[0]),A.range[1]=A.l2r(B[1]*(1-M)+M*N[1])}else z[0]=0,z[2]=O;if(P){var E=u.simpleMap(S.yr0,D.r2l),W=u.simpleMap(S.yr1,D.r2l),H=E[1]-E[0],L=W[1]-W[0];z[1]=(E[1]*(1-M)+M*W[1]-E[1])/(E[0]-E[1])*R,z[3]=R*(1-M+M*L/H),D.range[0]=A.l2r(E[0]*(1-M)+M*W[0]),D.range[1]=D.l2r(E[1]*(1-M)+M*W[1])}else z[1]=0,z[3]=R;d.drawOne(p,A,{skipTitle:!0}),d.drawOne(p,D,{skipTitle:!0}),d.redrawComponents(p,[A._id,D._id]);var q=$?O/z[2]:1,U=P?R/z[3]:1,J=$?z[0]:0,te=P?z[1]:0,ee=$?z[0]/z[2]*O:0,K=P?z[1]/z[3]*R:0,Q=A._offset-ee,G=D._offset-K;C.clipRect.call(f.setTranslate,J,te).call(f.setScale,1/q,1/U),C.plot.call(f.setTranslate,Q,G).call(f.setScale,q,U),f.setPointGroupScale(C.zoomScalePts,1/q,1/U),f.setTextPointsScale(C.zoomScaleTxt,1/q,1/U)}d.redrawComponents(p)}},951:function(o,a,n){var l=n(73972).traceIs,c=n(4322);function u(d){return{v:"x",h:"y"}[d.orientation||"v"]}function f(d,p){var h=u(d),m=l(d,"box-violin"),y=l(d._fullInput||{},"candlestick");return m&&!y&&p===h&&d[h]===void 0&&d[h+"0"]===void 0}o.exports=function(d,p,h,m){h("autotypenumbers",m.autotypenumbersDflt),h("type",(m.splomStash||{}).type)==="-"&&(function(y,v){if(y.type==="-"){var g,b=y._id,w=b.charAt(0);b.indexOf("scene")!==-1&&(b=w);var _=function(D,O,R){for(var $=0;$0&&(P["_"+R+"axes"]||{})[O]||(P[R+"axis"]||R)===O&&(f(P,R)||(P[R]||[]).length||P[R+"0"]))return P}}(v,b,w);if(_)if(_.type!=="histogram"||w!=={v:"y",h:"x"}[_.orientation||"v"]){var x=w+"calendar",k=_[x],T={noMultiCategory:!l(_,"cartesian")||l(_,"noMultiCategory")};if(_.type==="box"&&_._hasPreCompStats&&w==={h:"x",v:"y"}[_.orientation||"v"]&&(T.noMultiCategory=!0),T.autotypenumbers=y.autotypenumbers,f(_,w)){var S=u(_),M=[];for(g=0;g0?".":"")+g;c.isPlainObject(b)?p(b,m,w,v+1):m(w,g,b)}})}a.manageCommandObserver=function(h,m,y,v){var g={},b=!0;m&&m._commandObserver&&(g=m._commandObserver),g.cache||(g.cache={}),g.lookupTable={};var w=a.hasSimpleAPICommandBindings(h,y,g.lookupTable);if(m&&m._commandObserver){if(w)return g;if(m._commandObserver.remove)return m._commandObserver.remove(),m._commandObserver=null,g}if(w){u(h,w,g.cache),g.check=function(){if(b){var k=u(h,w,g.cache);return k.changed&&v&&g.lookupTable[k.value]!==void 0&&(g.disable(),Promise.resolve(v({value:k.value,type:w.type,prop:w.prop,traces:w.traces,index:g.lookupTable[k.value]})).then(g.enable,g.enable)),k.changed}};for(var _=["plotly_relayout","plotly_redraw","plotly_restyle","plotly_update","plotly_animatingframe","plotly_afterplot"],x=0;x<_.length;x++)h._internalOn(_[x],g.check);g.remove=function(){for(var k=0;k<_.length;k++)h._removeInternalListener(_[k],g.check)}}else c.log("Unable to automatically bind plot updates to API command"),g.lookupTable={},g.remove=function(){};return g.disable=function(){b=!1},g.enable=function(){b=!0},m&&(m._commandObserver=g),g},a.hasSimpleAPICommandBindings=function(h,m,y){var v,g,b=m.length;for(v=0;v=q.width-20?(te["text-anchor"]="start",te.x=5):(te["text-anchor"]="end",te.x=q._paper.attr("width")-7),U.attr(te);var ee=U.select(".js-link-to-tool"),K=U.select(".js-link-spacer"),Q=U.select(".js-sourcelinks");L._context.showSources&&L._context.showSources(L),L._context.showLink&&function(G,X){X.text("");var Y=X.append("a").attr({"xlink:xlink:href":"#",class:"link--impt link--embedview","font-weight":"bold"}).text(G._context.linkText+" "+String.fromCharCode(187));if(G._context.sendData)Y.on("click",function(){M.sendDataToCloud(G)});else{var re=window.location.pathname.split("/"),ie=window.location.search;Y.attr({"xlink:xlink:show":"new","xlink:xlink:href":"/"+re[2].split(".")[0]+"/"+re[1]+ie})}}(L,ee),K.text(ee.text()&&Q.text()?" - ":"")}},M.sendDataToCloud=function(L){var q=(window.PLOTLYENV||{}).BASE_URL||L._context.plotlyServerURL;if(q){L.emit("plotly_beforeexport");var U=l.select(L).append("div").attr("id","hiddenform").style("display","none"),J=U.append("form").attr({action:q+"/external",method:"post",target:"_blank"});return J.append("input").attr({type:"text",name:"data"}).node().value=M.graphJson(L,!1,"keepdata"),J.node().submit(),U.remove(),L.emit("plotly_afterexport"),!1}};var D=["days","shortDays","months","shortMonths","periods","dateTime","date","time","decimal","thousands","grouping","currency"],O=["year","month","dayMonth","dayMonthYear"];function R(L,q){var U=L._context.locale;U||(U="en-US");var J=!1,te={};function ee(re){for(var ie=!0,le=0;le1&&V.length>1){for(d.getComponentMethod("grid","sizeDefaults")(K,ee),te=0;te15&&V.length>15&&ee.shapes.length===0&&ee.images.length===0,M.linkSubplots(G,ee,Q,J),M.cleanPlot(G,ee,Q,J);var ge=!(!J._has||!J._has("gl2d")),be=!(!ee._has||!ee._has("gl2d")),we=!(!J._has||!J._has("cartesian"))||ge,ke=!(!ee._has||!ee._has("cartesian"))||be;we&&!ke?J._bgLayer.remove():ke&&!we&&(ee._shouldCreateBgLayer=!0),J._zoomlayer&&!L._dragging&&b({_fullLayout:J}),function(Le,Fe){var Be,Ue=[];Fe.meta&&(Be=Fe._meta={meta:Fe.meta,layout:{meta:Fe.meta}});for(var qe=0;qe0){var X=1-2*K;J=Math.round(X*J),te=Math.round(X*te)}}var Y=M.layoutAttributes.width.min,re=M.layoutAttributes.height.min;J1,le=!q.height&&Math.abs(U.height-te)>1;(le||ie)&&(ie&&(U.width=J),le&&(U.height=te)),L._initialAutoSize||(L._initialAutoSize={width:J,height:te}),M.sanitizeMargins(U)},M.supplyLayoutModuleDefaults=function(L,q,U,J){var te,ee,K,Q=d.componentsRegistry,G=q._basePlotModules,X=d.subplotsRegistry.cartesian;for(te in Q)(K=Q[te]).includeBasePlot&&K.includeBasePlot(L,q);for(var Y in G.length||G.push(X),q._has("cartesian")&&(d.getComponentMethod("grid","contentDefaults")(L,q),X.finalizeSubplots(L,q)),q._subplots)q._subplots[Y].sort(m.subplotSort);for(ee=0;ee1&&(U.l/=_e,U.r/=_e)}if(ie){var Me=(U.t+U.b)/ie;Me>1&&(U.t/=Me,U.b/=Me)}var Ce=U.xl!==void 0?U.xl:U.x,Se=U.xr!==void 0?U.xr:U.x,ce=U.yt!==void 0?U.yt:U.y,ye=U.yb!==void 0?U.yb:U.y;le[q]={l:{val:Ce,size:U.l+he},r:{val:Se,size:U.r+he},b:{val:ye,size:U.b+he},t:{val:ce,size:U.t+he}},se[q]=1}else delete le[q],delete se[q];if(!J._replotting)return M.doAutoMargin(L)}},M.doAutoMargin=function(L){var q=L._fullLayout,U=q.width,J=q.height;q._size||(q._size={}),N(q);var te=q._size,ee=q.margin,K={t:0,b:0,l:0,r:0},Q=m.extendFlat({},te),G=ee.l,X=ee.r,Y=ee.t,re=ee.b,ie=q._pushmargin,le=q._pushmarginIds,se=q.minreducedwidth,he=q.minreducedheight;if(ee.autoexpand!==!1){for(var _e in ie)le[_e]||delete ie[_e];var Me=L._fullLayout._reservedMargin;for(var Ce in Me)for(var Se in Me[Ce]){var ce=Me[Ce][Se];K[Se]=Math.max(K[Se],ce)}for(var ye in ie.base={l:{val:0,size:G},r:{val:1,size:X},t:{val:1,size:Y},b:{val:0,size:re}},K){var V=0;for(var ne in ie)ne!=="base"&&f(ie[ne][ye].size)&&(V=ie[ne][ye].size>V?ie[ne][ye].size:V);var fe=Math.max(0,ee[ye]-V);K[ye]=Math.max(0,K[ye]-fe)}for(var xe in ie){var ue=ie[xe].l||{},ge=ie[xe].b||{},be=ue.val,we=ue.size,ke=ge.val,Pe=ge.size,Re=U-K.r-K.l,De=J-K.t-K.b;for(var Le in ie){if(f(we)&&ie[Le].r){var Fe=ie[Le].r.val,Be=ie[Le].r.size;if(Fe>be){var Ue=(we*Fe+(Be-Re)*be)/(Fe-be),qe=(Be*(1-be)+(we-Re)*(1-Fe))/(Fe-be);Ue+qe>G+X&&(G=Ue,X=qe)}}if(f(Pe)&&ie[Le].t){var Ye=ie[Le].t.val,at=ie[Le].t.size;if(Ye>ke){var st=(Pe*Ye+(at-De)*ke)/(Ye-ke),ft=(at*(1-ke)+(Pe-De)*(1-Ye))/(Ye-ke);st+ft>re+Y&&(re=st,Y=ft)}}}}}var yt=m.constrain(U-ee.l-ee.r,2,se),ze=m.constrain(J-ee.t-ee.b,2,he),Ne=Math.max(0,U-yt),et=Math.max(0,J-ze);if(Ne){var it=(G+X)/Ne;it>1&&(G/=it,X/=it)}if(et){var St=(re+Y)/et;St>1&&(re/=St,Y/=St)}if(te.l=Math.round(G)+K.l,te.r=Math.round(X)+K.r,te.t=Math.round(Y)+K.t,te.b=Math.round(re)+K.b,te.p=Math.round(ee.pad),te.w=Math.round(U)-te.l-te.r,te.h=Math.round(J)-te.t-te.b,!q._replotting&&(M.didMarginChange(Q,te)||function(ut){if("_redrawFromAutoMarginCount"in ut._fullLayout)return!1;var gt=g.list(ut,"",!0);for(var Rt in gt)if(gt[Rt].autoshift||gt[Rt].shift)return!0;return!1}(L))){"_redrawFromAutoMarginCount"in q?q._redrawFromAutoMarginCount++:q._redrawFromAutoMarginCount=1;var Ze=3*(1+Object.keys(le).length);if(q._redrawFromAutoMarginCount0&&(L._transitioningWithDuration=!0),L._transitionData._interruptCallbacks.push(function(){J=!0}),U.redraw&&L._transitionData._interruptCallbacks.push(function(){return d.call("redraw",L)}),L._transitionData._interruptCallbacks.push(function(){L.emit("plotly_transitioninterrupted",[])});var Q=0,G=0;function X(){return Q++,function(){var Y;G++,J||G!==Q||(Y=K,L._transitionData&&(function(re){if(re)for(;re.length;)re.shift()}(L._transitionData._interruptCallbacks),Promise.resolve().then(function(){if(U.redraw)return d.call("redraw",L)}).then(function(){L._transitioning=!1,L._transitioningWithDuration=!1,L.emit("plotly_transitioned",[])}).then(Y)))}}U.runFn(X),setTimeout(X())})}],ee=m.syncOrAsync(te,L);return ee&&ee.then||(ee=Promise.resolve()),ee.then(function(){return L})}M.didMarginChange=function(L,q){for(var U=0;U1)return!0}return!1},M.graphJson=function(L,q,U,J,te,ee){(te&&q&&!L._fullData||te&&!q&&!L._fullLayout)&&M.supplyDefaults(L);var K=te?L._fullData:L.data,Q=te?L._fullLayout:L.layout,G=(L._transitionData||{})._frames;function X(ie,le){if(typeof ie=="function")return le?"_function_":null;if(m.isPlainObject(ie)){var se,he={};return Object.keys(ie).sort().forEach(function(_e){if(["_","["].indexOf(_e.charAt(0))===-1)if(typeof ie[_e]!="function"){if(U==="keepdata"){if(_e.substr(_e.length-3)==="src")return}else if(U==="keepstream"){if(typeof(se=ie[_e+"src"])=="string"&&se.indexOf(":")>0&&!m.isPlainObject(ie.stream))return}else if(U!=="keepall"&&typeof(se=ie[_e+"src"])=="string"&&se.indexOf(":")>0)return;he[_e]=X(ie[_e],le)}else le&&(he[_e]="_function")}),he}return Array.isArray(ie)?ie.map(function(_e){return X(_e,le)}):m.isTypedArray(ie)?m.simpleMap(ie,m.identity):m.isJSDate(ie)?m.ms2DateTimeLocal(+ie):ie}var Y={data:(K||[]).map(function(ie){var le=X(ie);return q&&delete le.fit,le})};if(!q&&(Y.layout=X(Q),te)){var re=Q._size;Y.layout.computed={margin:{b:re.b,l:re.l,r:re.r,t:re.t}}}return G&&(Y.frames=X(G)),ee&&(Y.config=X(L._context,!0)),J==="object"?Y:JSON.stringify(Y)},M.modifyFrames=function(L,q){var U,J,te,ee=L._transitionData._frames,K=L._transitionData._frameHash;for(U=0;U=0;ee--)if(ye[ee].enabled){U._indexToPoints=ye[ee]._indexToPoints;break}J&&J.calc&&(ce=J.calc(L,U))}Array.isArray(ce)&&ce[0]||(ce=[{x:v,y:v}]),ce[0].t||(ce[0].t={}),ce[0].trace=U,X[Ce]=ce}}for(W(K,Q,G),te=0;te0){for(var p=[],h=0;h=D&&(R.min=0,$.min=0,P.min=0,_.aaxis&&delete _.aaxis.min,_.baxis&&delete _.baxis.min,_.caxis&&delete _.caxis.min)}function w(_,x,k,T){var S=v[x._name];function M($,P){return u.coerce(_,x,S,$,P)}M("uirevision",T.uirevision),x.type="linear";var C=M("color"),A=C!==S.color.dflt?C:k.font.color,D=x._name.charAt(0).toUpperCase(),O="Component "+D,R=M("title.text",O);x._hovertitle=R===O?R:D,u.coerceFont(M,"title.font",{family:k.font.family,size:u.bigFont(k.font.size),color:A}),M("min"),m(_,x,M,"linear"),p(_,x,M,"linear"),d(_,x,M,"linear"),h(_,x,M,{outerTicks:!0}),M("showticklabels")&&(u.coerceFont(M,"tickfont",{family:k.font.family,size:k.font.size,color:A}),M("tickangle"),M("tickformat")),y(_,x,M,{dfltColor:C,bgColor:k.bgColor,blend:60,showLine:!0,showGrid:!0,noZeroLine:!0,attributes:S}),M("hoverformat"),M("layer")}o.exports=function(_,x,k){f(_,x,k,{type:"ternary",attributes:v,handleDefaults:b,font:x.font,paper_bgcolor:x.paper_bgcolor})}},64380:function(o,a,n){var l=n(39898),c=n(84267),u=n(73972),f=n(71828),d=f.strTranslate,p=f._,h=n(7901),m=n(91424),y=n(21994),v=n(1426).extendFlat,g=n(74875),b=n(89298),w=n(28569),_=n(30211),x=n(64505),k=x.freeMode,T=x.rectMode,S=n(92998),M=n(47322).prepSelect,C=n(47322).selectOnClick,A=n(47322).clearOutline,D=n(47322).clearSelectionsCache,O=n(85555);function R(W,H){this.id=W.id,this.graphDiv=W.graphDiv,this.init(H),this.makeFramework(H),this.aTickLayout=null,this.bTickLayout=null,this.cTickLayout=null}o.exports=R;var $=R.prototype;$.init=function(W){this.container=W._ternarylayer,this.defs=W._defs,this.layoutId=W._uid,this.traceHash={},this.layers={}},$.plot=function(W,H){var L=this,q=H[L.id],U=H._size;L._hasClipOnAxisFalse=!1;for(var J=0;JP*le?U=(J=le)*P:J=(U=ie)/P,te=Y*U/ie,ee=re*J/le,L=H.l+H.w*G-U/2,q=H.t+H.h*(1-X)-J/2,K.x0=L,K.y0=q,K.w=U,K.h=J,K.sum=se,K.xaxis={type:"linear",range:[he+2*Me-se,se-he-2*_e],domain:[G-te/2,G+te/2],_id:"x"},y(K.xaxis,K.graphDiv._fullLayout),K.xaxis.setScale(),K.xaxis.isPtWithinRange=function(be){return be.a>=K.aaxis.range[0]&&be.a<=K.aaxis.range[1]&&be.b>=K.baxis.range[1]&&be.b<=K.baxis.range[0]&&be.c>=K.caxis.range[1]&&be.c<=K.caxis.range[0]},K.yaxis={type:"linear",range:[he,se-_e-Me],domain:[X-ee/2,X+ee/2],_id:"y"},y(K.yaxis,K.graphDiv._fullLayout),K.yaxis.setScale(),K.yaxis.isPtWithinRange=function(){return!0};var Ce=K.yaxis.domain[0],Se=K.aaxis=v({},W.aaxis,{range:[he,se-_e-Me],side:"left",tickangle:(+W.aaxis.tickangle||0)-30,domain:[Ce,Ce+ee*P],anchor:"free",position:0,_id:"y",_length:U});y(Se,K.graphDiv._fullLayout),Se.setScale();var ce=K.baxis=v({},W.baxis,{range:[se-he-Me,_e],side:"bottom",domain:K.xaxis.domain,anchor:"free",position:0,_id:"x",_length:U});y(ce,K.graphDiv._fullLayout),ce.setScale();var ye=K.caxis=v({},W.caxis,{range:[se-he-_e,Me],side:"right",tickangle:(+W.caxis.tickangle||0)+30,domain:[Ce,Ce+ee*P],anchor:"free",position:0,_id:"y",_length:U});y(ye,K.graphDiv._fullLayout),ye.setScale();var V="M"+L+","+(q+J)+"h"+U+"l-"+U/2+",-"+J+"Z";K.clipDef.select("path").attr("d",V),K.layers.plotbg.select("path").attr("d",V);var ne="M0,"+J+"h"+U+"l-"+U/2+",-"+J+"Z";K.clipDefRelative.select("path").attr("d",ne);var fe=d(L,q);K.plotContainer.selectAll(".scatterlayer,.maplayer").attr("transform",fe),K.clipDefRelative.select("path").attr("transform",null);var xe=d(L-ce._offset,q+J);K.layers.baxis.attr("transform",xe),K.layers.bgrid.attr("transform",xe);var ue=d(L+U/2,q)+"rotate(30)"+d(0,-Se._offset);K.layers.aaxis.attr("transform",ue),K.layers.agrid.attr("transform",ue);var ge=d(L+U/2,q)+"rotate(-30)"+d(0,-ye._offset);K.layers.caxis.attr("transform",ge),K.layers.cgrid.attr("transform",ge),K.drawAxes(!0),K.layers.aline.select("path").attr("d",Se.showline?"M"+L+","+(q+J)+"l"+U/2+",-"+J:"M0,0").call(h.stroke,Se.linecolor||"#000").style("stroke-width",(Se.linewidth||0)+"px"),K.layers.bline.select("path").attr("d",ce.showline?"M"+L+","+(q+J)+"h"+U:"M0,0").call(h.stroke,ce.linecolor||"#000").style("stroke-width",(ce.linewidth||0)+"px"),K.layers.cline.select("path").attr("d",ye.showline?"M"+(L+U/2)+","+q+"l"+U/2+","+J:"M0,0").call(h.stroke,ye.linecolor||"#000").style("stroke-width",(ye.linewidth||0)+"px"),K.graphDiv._context.staticPlot||K.initInteractions(),m.setClipUrl(K.layers.frontplot,K._hasClipOnAxisFalse?null:K.clipId,K.graphDiv)},$.drawAxes=function(W){var H=this,L=H.graphDiv,q=H.id.substr(7)+"title",U=H.layers,J=H.aaxis,te=H.baxis,ee=H.caxis;if(H.drawAx(J),H.drawAx(te),H.drawAx(ee),W){var K=Math.max(J.showticklabels?J.tickfont.size/2:0,(ee.showticklabels?.75*ee.tickfont.size:0)+(ee.ticks==="outside"?.87*ee.ticklen:0)),Q=(te.showticklabels?te.tickfont.size:0)+(te.ticks==="outside"?te.ticklen:0)+3;U["a-title"]=S.draw(L,"a"+q,{propContainer:J,propName:H.id+".aaxis.title",placeholder:p(L,"Click to enter Component A title"),attributes:{x:H.x0+H.w/2,y:H.y0-J.title.font.size/3-K,"text-anchor":"middle"}}),U["b-title"]=S.draw(L,"b"+q,{propContainer:te,propName:H.id+".baxis.title",placeholder:p(L,"Click to enter Component B title"),attributes:{x:H.x0-Q,y:H.y0+H.h+.83*te.title.font.size+Q,"text-anchor":"middle"}}),U["c-title"]=S.draw(L,"c"+q,{propContainer:ee,propName:H.id+".caxis.title",placeholder:p(L,"Click to enter Component C title"),attributes:{x:H.x0+H.w+Q,y:H.y0+H.h+.83*ee.title.font.size+Q,"text-anchor":"middle"}})}},$.drawAx=function(W){var H,L=this,q=L.graphDiv,U=W._name,J=U.charAt(0),te=W._id,ee=L.layers[U],K=J+"tickLayout",Q=(H=W).ticks+String(H.ticklen)+String(H.showticklabels);L[K]!==Q&&(ee.selectAll("."+te+"tick").remove(),L[K]=Q),W.setScale();var G=b.calcTicks(W),X=b.clipEnds(W,G),Y=b.makeTransTickFn(W),re=b.getTickSigns(W)[2],ie=f.deg2rad(30),le=re*(W.linewidth||1)/2,se=re*W.ticklen,he=L.w,_e=L.h,Me=J==="b"?"M0,"+le+"l"+Math.sin(ie)*se+","+Math.cos(ie)*se:"M"+le+",0l"+Math.cos(ie)*se+","+-Math.sin(ie)*se,Ce={a:"M0,0l"+_e+",-"+he/2,b:"M0,0l-"+he/2+",-"+_e,c:"M0,0l-"+_e+","+he/2}[J];b.drawTicks(q,W,{vals:W.ticks==="inside"?X:G,layer:ee,path:Me,transFn:Y,crisp:!1}),b.drawGrid(q,W,{vals:X,layer:L.layers[J+"grid"],path:Ce,transFn:Y,crisp:!1}),b.drawLabels(q,W,{vals:G,layer:ee,transFn:Y,labelFns:b.makeLabelFns(W,0,30)})};var z=O.MINZOOM/2+.87,B="m-0.87,.5h"+z+"v3h-"+(z+5.2)+"l"+(z/2+2.6)+",-"+(.87*z+4.5)+"l2.6,1.5l-"+z/2+","+.87*z+"Z",N="m0.87,.5h-"+z+"v3h"+(z+5.2)+"l-"+(z/2+2.6)+",-"+(.87*z+4.5)+"l-2.6,1.5l"+z/2+","+.87*z+"Z",j="m0,1l"+z/2+","+.87*z+"l2.6,-1.5l-"+(z/2+2.6)+",-"+(.87*z+4.5)+"l-"+(z/2+2.6)+","+(.87*z+4.5)+"l2.6,1.5l"+z/2+",-"+.87*z+"Z",F=!0;function E(W){l.select(W).selectAll(".zoombox,.js-zoombox-backdrop,.js-zoombox-menu,.zoombox-corners").remove()}$.clearOutline=function(){D(this.dragOptions),A(this.dragOptions.gd)},$.initInteractions=function(){var W,H,L,q,U,J,te,ee,K,Q,G,X,Y=this,re=Y.layers.plotbg.select("path").node(),ie=Y.graphDiv,le=ie._fullLayout._zoomlayer;function se(ne){var fe={};return fe[Y.id+".aaxis.min"]=ne.a,fe[Y.id+".baxis.min"]=ne.b,fe[Y.id+".caxis.min"]=ne.c,fe}function he(ne,fe){var xe=ie._fullLayout.clickmode;E(ie),ne===2&&(ie.emit("plotly_doubleclick",null),u.call("_guiRelayout",ie,se({a:0,b:0,c:0}))),xe.indexOf("select")>-1&&ne===1&&C(fe,ie,[Y.xaxis],[Y.yaxis],Y.id,Y.dragOptions),xe.indexOf("event")>-1&&_.click(ie,fe,Y.id)}function _e(ne,fe){return 1-fe/Y.h}function Me(ne,fe){return 1-(ne+(Y.h-fe)/Math.sqrt(3))/Y.w}function Ce(ne,fe){return(ne-(Y.h-fe)/Math.sqrt(3))/Y.w}function Se(ne,fe){var xe=L+ne*W,ue=q+fe*H,ge=Math.max(0,Math.min(1,_e(0,q),_e(0,ue))),be=Math.max(0,Math.min(1,Me(L,q),Me(xe,ue))),we=Math.max(0,Math.min(1,Ce(L,q),Ce(xe,ue))),ke=(ge/2+we)*Y.w,Pe=(1-ge/2-be)*Y.w,Re=(ke+Pe)/2,De=Pe-ke,Le=(1-ge)*Y.h,Fe=Le-De/P;De.2?"rgba(0,0,0,0.4)":"rgba(255,255,255,0.3)").duration(200),X.transition().style("opacity",1).duration(200),Q=!0),ie.emit("plotly_relayouting",se(te))}function ce(){E(ie),te!==U&&(u.call("_guiRelayout",ie,se(te)),F&&ie.data&&ie._context.showTips&&(f.notifier(p(ie,"Double-click to zoom back out"),"long"),F=!1))}function ye(ne,fe){var xe=ne/Y.xaxis._m,ue=fe/Y.yaxis._m,ge=[(te={a:U.a-ue,b:U.b+(xe+ue)/2,c:U.c-(xe-ue)/2}).a,te.b,te.c].sort(f.sorterAsc),be=ge.indexOf(te.a),we=ge.indexOf(te.b),ke=ge.indexOf(te.c);ge[0]<0&&(ge[1]+ge[0]/2<0?(ge[2]+=ge[0]+ge[1],ge[0]=ge[1]=0):(ge[2]+=ge[0]/2,ge[1]+=ge[0]/2,ge[0]=0),te={a:ge[be],b:ge[we],c:ge[ke]},fe=(U.a-te.a)*Y.yaxis._m,ne=(U.c-te.c-U.b+te.b)*Y.xaxis._m);var Pe=d(Y.x0+ne,Y.y0+fe);Y.plotContainer.selectAll(".scatterlayer,.maplayer").attr("transform",Pe);var Re=d(-ne,-fe);Y.clipDefRelative.select("path").attr("transform",Re),Y.aaxis.range=[te.a,Y.sum-te.b-te.c],Y.baxis.range=[Y.sum-te.a-te.c,te.b],Y.caxis.range=[Y.sum-te.a-te.b,te.c],Y.drawAxes(!1),Y._hasClipOnAxisFalse&&Y.plotContainer.select(".scatterlayer").selectAll(".trace").call(m.hideOutsideRangePoints,Y),ie.emit("plotly_relayouting",se(te))}function V(){u.call("_guiRelayout",ie,se(te))}this.dragOptions={element:re,gd:ie,plotinfo:{id:Y.id,domain:ie._fullLayout[Y.id].domain,xaxis:Y.xaxis,yaxis:Y.yaxis},subplot:Y.id,prepFn:function(ne,fe,xe){Y.dragOptions.xaxes=[Y.xaxis],Y.dragOptions.yaxes=[Y.yaxis],W=ie._fullLayout._invScaleX,H=ie._fullLayout._invScaleY;var ue=Y.dragOptions.dragmode=ie._fullLayout.dragmode;k(ue)?Y.dragOptions.minDrag=1:Y.dragOptions.minDrag=void 0,ue==="zoom"?(Y.dragOptions.moveFn=Se,Y.dragOptions.clickFn=he,Y.dragOptions.doneFn=ce,function(ge,be,we){var ke=re.getBoundingClientRect();L=be-ke.left,q=we-ke.top,ie._fullLayout._calcInverseTransform(ie);var Pe=ie._fullLayout._invTransform,Re=f.apply3DTransform(Pe)(L,q);L=Re[0],q=Re[1],U={a:Y.aaxis.range[0],b:Y.baxis.range[1],c:Y.caxis.range[1]},te=U,J=Y.aaxis.range[1]-U.a,ee=c(Y.graphDiv._fullLayout[Y.id].bgcolor).getLuminance(),K="M0,"+Y.h+"L"+Y.w/2+", 0L"+Y.w+","+Y.h+"Z",Q=!1,G=le.append("path").attr("class","zoombox").attr("transform",d(Y.x0,Y.y0)).style({fill:ee>.2?"rgba(0,0,0,0)":"rgba(255,255,255,0)","stroke-width":0}).attr("d",K),X=le.append("path").attr("class","zoombox-corners").attr("transform",d(Y.x0,Y.y0)).style({fill:h.background,stroke:h.defaultLine,"stroke-width":1,opacity:0}).attr("d","M0,0Z"),Y.clearOutline(ie)}(0,fe,xe)):ue==="pan"?(Y.dragOptions.moveFn=ye,Y.dragOptions.clickFn=he,Y.dragOptions.doneFn=V,U={a:Y.aaxis.range[0],b:Y.baxis.range[1],c:Y.caxis.range[1]},te=U,Y.clearOutline(ie)):(T(ue)||k(ue))&&M(ne,fe,xe,Y.dragOptions,ue)}},re.onmousemove=function(ne){_.hover(ie,ne,Y.id),ie._fullLayout._lasthover=re,ie._fullLayout._hoversubplot=Y.id},re.onmouseout=function(ne){ie._dragging||w.unhover(ie,ne)},w.init(this.dragOptions)}},73972:function(o,a,n){var l=n(47769),c=n(64213),u=n(75138),f=n(41965),d=n(24401).addStyleRule,p=n(1426),h=n(9012),m=n(10820),y=p.extendFlat,v=p.extendDeepAll;function g(C){var A=C.name,D=C.categories,O=C.meta;if(a.modules[A])l.log("Type "+A+" already registered");else{a.subplotsRegistry[C.basePlotModule.name]||function(F){var E=F.name;if(a.subplotsRegistry[E])l.log("Plot type "+E+" already registered.");else for(var W in x(F),a.subplotsRegistry[E]=F,a.componentsRegistry)S(W,F.name)}(C.basePlotModule);for(var R={},$=0;$-1&&(w[x[m]].title={text:""});for(m=0;m")!==-1?"":$.html(z).text()});return $.remove(),P}(O)).replace(/&(?!\w+;|\#[0-9]+;| \#x[0-9A-F]+;)/g,"&")).replace(m,"'"),c.isIE()&&(O=(O=(O=O.replace(/"/gi,"'")).replace(/(\('#)([^']*)('\))/gi,'("#$2")')).replace(/(\\')/gi,'"')),O}},75341:function(o,a,n){var l=n(71828);o.exports=function(c,u){for(var f=0;fP+R||!l($))}for(var B=0;Bm))return d}return p!==void 0?p:f.dflt},a.coerceColor=function(f,d,p){return c(d).isValid()?d:p!==void 0?p:f.dflt},a.coerceEnumerated=function(f,d,p){return f.coerceNumber&&(d=+d),f.values.indexOf(d)!==-1?d:p!==void 0?p:f.dflt},a.getValue=function(f,d){var p;return Array.isArray(f)?d0?se+=he:k<0&&(se-=he)}return se}function ee(le){var se=k,he=le.b,_e=te(le);return l.inbox(he-se,_e-se,z+(_e-se)/(_e-he)-1)}var K=v[T+"a"],Q=v[S+"a"];A=Math.abs(K.r2c(K.range[1])-K.r2c(K.range[0]));var G=l.getDistanceFunction(w,M,C,function(le){return(M(le)+C(le))/2});if(l.getClosest(D,G,v),v.index!==!1&&D[v.index].p!==h){j||(L=function(le){return Math.min(F(le),le.p-R.bargroupwidth/2)},q=function(le){return Math.max(E(le),le.p+R.bargroupwidth/2)});var X=D[v.index],Y=O.base?X.b+X.s:X.s;v[S+"0"]=v[S+"1"]=Q.c2p(X[S],!0),v[S+"LabelVal"]=Y;var re=R.extents[R.extents.round(X.p)];v[T+"0"]=K.c2p($?L(X):re[0],!0),v[T+"1"]=K.c2p($?q(X):re[1],!0);var ie=X.orig_p!==void 0;return v[T+"LabelVal"]=ie?X.orig_p:X.p,v.labelLabel=p(K,v[T+"LabelVal"],O[T+"hoverformat"]),v.valueLabel=p(Q,v[S+"LabelVal"],O[S+"hoverformat"]),v.baseLabel=p(Q,X.b,O[S+"hoverformat"]),v.spikeDistance=(function(le){var se=k,he=le.b,_e=te(le);return l.inbox(he-se,_e-se,B+(_e-se)/(_e-he)-1)}(X)+function(le){return U(F(le),E(le),B)}(X))/2,v[T+"Spike"]=K.c2p(X.p,!0),f(X,O,v),v.hovertemplate=O.hovertemplate,v}}function y(v,g){var b=g.mcc||v.marker.color,w=g.mlcc||v.marker.line.color,_=d(v,g);return u.opacity(b)?b:u.opacity(w)&&_?w:void 0}o.exports={hoverPoints:function(v,g,b,w,_){var x=m(v,g,b,w,_);if(x){var k=x.cd,T=k[0].trace,S=k[x.index];return x.color=y(T,S),c.getComponentMethod("errorbars","hoverInfo")(S,T,x),[x]}},hoverOnBars:m,getTraceColor:y}},60822:function(o,a,n){o.exports={attributes:n(1486),layoutAttributes:n(43641),supplyDefaults:n(90769).supplyDefaults,crossTraceDefaults:n(90769).crossTraceDefaults,supplyLayoutDefaults:n(13957),calc:n(92290),crossTraceCalc:n(11661).crossTraceCalc,colorbar:n(4898),arraysToCalcdata:n(75341),plot:n(17295).plot,style:n(16688).style,styleOnSelect:n(16688).styleOnSelect,hoverPoints:n(95423).hoverPoints,eventData:n(58065),selectPoints:n(81974),moduleType:"trace",name:"bar",basePlotModule:n(93612),categories:["bar-like","cartesian","svg","bar","oriented","errorBarsOK","showLegend","zoomScale"],animatable:!0,meta:{}}},43641:function(o){o.exports={barmode:{valType:"enumerated",values:["stack","group","overlay","relative"],dflt:"group",editType:"calc"},barnorm:{valType:"enumerated",values:["","fraction","percent"],dflt:"",editType:"calc"},bargap:{valType:"number",min:0,max:1,editType:"calc"},bargroupgap:{valType:"number",min:0,max:1,dflt:0,editType:"calc"}}},13957:function(o,a,n){var l=n(73972),c=n(89298),u=n(71828),f=n(43641);o.exports=function(d,p,h){function m(T,S){return u.coerce(d,p,f,T,S)}for(var y=!1,v=!1,g=!1,b={},w=m("barmode"),_=0;_0}function $(B){return B==="auto"?0:B}function P(B,N){var j=Math.PI/180*N,F=Math.abs(Math.sin(j)),E=Math.abs(Math.cos(j));return{x:B.width*E+B.height*F,y:B.width*F+B.height*E}}function z(B,N,j,F,E,W){var H=!!W.isHorizontal,L=!!W.constrained,q=W.angle||0,U=W.anchor||"end",J=U==="end",te=U==="start",ee=((W.leftToRight||0)+1)/2,K=1-ee,Q=E.width,G=E.height,X=Math.abs(N-B),Y=Math.abs(F-j),re=X>2*M&&Y>2*M?M:0;X-=2*re,Y-=2*re;var ie=$(q);q!=="auto"||Q<=X&&G<=Y||!(Q>X||G>Y)||(Q>Y||G>X)&&Q.01?we:function(De,Le,Fe){return Fe&&De===Le?De:Math.abs(De-Le)>=2?we(De):De>Le?Math.ceil(De):Math.floor(De)};ne=ke(ne,fe,re),fe=ke(fe,ne,re),xe=ke(xe,ue,!re),ue=ke(ue,xe,!re)}var Pe=O(u.ensureSingle(ye,"path"),q,E,W);if(Pe.style("vector-effect",U?"none":"non-scaling-stroke").attr("d",isNaN((fe-ne)*(ue-xe))||ge&&B._context.staticPlot?"M0,0Z":"M"+ne+","+xe+"V"+ue+"H"+fe+"V"+xe+"Z").call(p.setClipUrl,N.layerClipId,B),!q.uniformtext.mode&&ie){var Re=p.makePointStyleFns(K);p.singlePointStyle(Me,Pe,K,Re,B)}(function(De,Le,Fe,Be,Ue,qe,Ye,at,st,ft,yt){var ze,Ne=Le.xaxis,et=Le.yaxis,it=De._fullLayout;function St(Et,mt,vt){return u.ensureSingle(Et,"text").text(mt).attr({class:"bartext bartext-"+ze,"text-anchor":"middle","data-notex":1}).call(p.font,vt).call(f.convertToTspans,De)}var Ze=Be[0].trace,ut=Ze.orientation==="h",gt=function(Et,mt,vt,wt,qt){var Lt,Gt=mt[0].trace;return Lt=Gt.texttemplate?function(ht,Pt,At,Ft,$t){var Nt=Pt[0].trace,Vt=u.castOption(Nt,At,"texttemplate");if(!Vt)return"";var Xt,zt,Wt,an,fn=Nt.type==="histogram",un=Nt.type==="waterfall",on=Nt.type==="funnel",sn=Nt.orientation==="h";function Sn(In){return m(an,an.c2l(In),!0).text}sn?(Xt="y",zt=$t,Wt="x",an=Ft):(Xt="x",zt=Ft,Wt="y",an=$t);var en,dn=Pt[At],Kt={};Kt.label=dn.p,Kt.labelLabel=Kt[Xt+"Label"]=(en=dn.p,m(zt,zt.c2l(en),!0).text);var Mn=u.castOption(Nt,dn.i,"text");(Mn===0||Mn)&&(Kt.text=Mn),Kt.value=dn.s,Kt.valueLabel=Kt[Wt+"Label"]=Sn(dn.s);var Tn={};S(Tn,Nt,dn.i),(fn||Tn.x===void 0)&&(Tn.x=sn?Kt.value:Kt.label),(fn||Tn.y===void 0)&&(Tn.y=sn?Kt.label:Kt.value),(fn||Tn.xLabel===void 0)&&(Tn.xLabel=sn?Kt.valueLabel:Kt.labelLabel),(fn||Tn.yLabel===void 0)&&(Tn.yLabel=sn?Kt.labelLabel:Kt.valueLabel),un&&(Kt.delta=+dn.rawS||dn.s,Kt.deltaLabel=Sn(Kt.delta),Kt.final=dn.v,Kt.finalLabel=Sn(Kt.final),Kt.initial=Kt.final-Kt.delta,Kt.initialLabel=Sn(Kt.initial)),on&&(Kt.value=dn.s,Kt.valueLabel=Sn(Kt.value),Kt.percentInitial=dn.begR,Kt.percentInitialLabel=u.formatPercent(dn.begR),Kt.percentPrevious=dn.difR,Kt.percentPreviousLabel=u.formatPercent(dn.difR),Kt.percentTotal=dn.sumR,Kt.percenTotalLabel=u.formatPercent(dn.sumR));var Bn=u.castOption(Nt,dn.i,"customdata");return Bn&&(Kt.customdata=Bn),u.texttemplateString(Vt,Kt,ht._d3locale,Tn,Kt,Nt._meta||{})}(Et,mt,vt,wt,qt):Gt.textinfo?function(ht,Pt,At,Ft){var $t=ht[0].trace,Nt=$t.orientation==="h",Vt=$t.type==="waterfall",Xt=$t.type==="funnel";function zt(Bn){return m(Nt?At:Ft,+Bn,!0).text}var Wt,an,fn=$t.textinfo,un=ht[Pt],on=fn.split("+"),sn=[],Sn=function(Bn){return on.indexOf(Bn)!==-1};if(Sn("label")&&sn.push((an=ht[Pt].p,m(Nt?Ft:At,an,!0).text)),Sn("text")&&((Wt=u.castOption($t,un.i,"text"))===0||Wt)&&sn.push(Wt),Vt){var en=+un.rawS||un.s,dn=un.v,Kt=dn-en;Sn("initial")&&sn.push(zt(Kt)),Sn("delta")&&sn.push(zt(en)),Sn("final")&&sn.push(zt(dn))}if(Xt){Sn("value")&&sn.push(zt(un.s));var Mn=0;Sn("percent initial")&&Mn++,Sn("percent previous")&&Mn++,Sn("percent total")&&Mn++;var Tn=Mn>1;Sn("percent initial")&&(Wt=u.formatPercent(un.begR),Tn&&(Wt+=" of initial"),sn.push(Wt)),Sn("percent previous")&&(Wt=u.formatPercent(un.difR),Tn&&(Wt+=" of previous"),sn.push(Wt)),Sn("percent total")&&(Wt=u.formatPercent(un.sumR),Tn&&(Wt+=" of total"),sn.push(Wt))}return sn.join("
")}(mt,vt,wt,qt):w.getValue(Gt.text,vt),w.coerceString(k,Lt)}(it,Be,Ue,Ne,et);ze=function(Et,mt){var vt=w.getValue(Et.textposition,mt);return w.coerceEnumerated(T,vt)}(Ze,Ue);var Rt=ft.mode==="stack"||ft.mode==="relative",Mt=Be[Ue],Bt=!Rt||Mt._outmost;if(gt&&ze!=="none"&&(!Mt.isBlank&&qe!==Ye&&at!==st||ze!=="auto"&&ze!=="inside")){var Tt=it.font,ve=b.getBarColor(Be[Ue],Ze),Te=b.getInsideTextFont(Ze,Ue,Tt,ve),Ve=b.getOutsideTextFont(Ze,Ue,Tt),We=Fe.datum();ut?Ne.type==="log"&&We.s0<=0&&(qe=Ne.range[0]0&&Qe>0&&(Ge<=bt&&Qe<=nt||Ge<=nt&&Qe<=bt||(ut?bt>=Ge*(nt/Qe):nt>=Qe*(bt/Ge)))?ze="inside":(ze="outside",Je.remove(),Je=null)):ze="inside"),!Je){var It=(Je=St(Fe,gt,ct=u.ensureUniformFontSize(De,ze==="outside"?Ve:Te))).attr("transform");if(Je.attr("transform",""),Ge=(Xe=p.bBox(Je.node())).width,Qe=Xe.height,Je.attr("transform",It),Ge<=0||Qe<=0)return void Je.remove()}var Yt,Ct=Ze.textangle;Yt=ze==="outside"?function(Et,mt,vt,wt,qt,Lt){var Gt,ht=!!Lt.isHorizontal,Pt=!!Lt.constrained,At=Lt.angle||0,Ft=qt.width,$t=qt.height,Nt=Math.abs(mt-Et),Vt=Math.abs(wt-vt);Gt=ht?Vt>2*M?M:0:Nt>2*M?M:0;var Xt=1;Pt&&(Xt=ht?Math.min(1,Vt/$t):Math.min(1,Nt/Ft));var zt=$(At),Wt=P(qt,zt),an=(ht?Wt.x:Wt.y)/2,fn=(qt.left+qt.right)/2,un=(qt.top+qt.bottom)/2,on=(Et+mt)/2,sn=(vt+wt)/2,Sn=0,en=0,dn=ht?D(mt,Et):D(vt,wt);return ht?(on=mt-dn*Gt,Sn=dn*an):(sn=wt+dn*Gt,en=-dn*an),{textX:fn,textY:un,targetX:on,targetY:sn,anchorX:Sn,anchorY:en,scale:Xt,rotate:zt}}(qe,Ye,at,st,Xe,{isHorizontal:ut,constrained:Ze.constraintext==="both"||Ze.constraintext==="outside",angle:Ct}):z(qe,Ye,at,st,Xe,{isHorizontal:ut,constrained:Ze.constraintext==="both"||Ze.constraintext==="inside",angle:Ct,anchor:Ze.insidetextanchor}),Yt.fontSize=ct.size,v(Ze.type==="histogram"?"bar":Ze.type,Yt,it),Mt.transform=Yt;var jt=O(Je,it,ft,yt);u.setTransormAndDisplay(jt,Yt)}else Fe.select("text").remove()})(B,N,ye,te,Ce,ne,fe,xe,ue,E,W),N.layerClipId&&p.hideOutsideRangePoint(Me,ye.select("text"),H,L,K.xcalendar,K.ycalendar)});var _e=K.cliponaxis===!1;p.setClipUrl(ee,_e?null:N.layerClipId,B)});h.getComponentMethod("errorbars","plot")(B,J,N,E)},toMoveInsideBar:z}},81974:function(o){function a(n,l,c,u,f){var d=l.c2p(u?n.s0:n.p0,!0),p=l.c2p(u?n.s1:n.p1,!0),h=c.c2p(u?n.p0:n.s0,!0),m=c.c2p(u?n.p1:n.s1,!0);return f?[(d+p)/2,(h+m)/2]:u?[p,(h+m)/2]:[(d+p)/2,m]}o.exports=function(n,l){var c,u=n.cd,f=n.xaxis,d=n.yaxis,p=u[0].trace,h=p.type==="funnel",m=p.orientation==="h",y=[];if(l===!1)for(c=0;c1||O.bargap===0&&O.bargroupgap===0&&!R[0].trace.marker.line.width)&&l.select(this).attr("shape-rendering","crispEdges")}),A.selectAll("g.points").each(function(R){b(l.select(this),R[0].trace,C)}),d.getComponentMethod("errorbars","style")(A)},styleTextPoints:w,styleOnSelect:function(C,A,D){var O=A[0].trace;O.selectedpoints?function(R,$,P){u.selectedPointStyle(R.selectAll("path"),$),function(z,B,N){z.each(function(j){var F,E=l.select(this);if(j.selected){F=f.ensureUniformFontSize(N,_(E,j,B,N));var W=B.selected.textfont&&B.selected.textfont.color;W&&(F.color=W),u.font(E,F)}else u.selectedTextStyle(E,B)})}(R.selectAll("text"),$,P)}(D,O,C):(b(D,O,C),d.getComponentMethod("errorbars","style")(D))},getInsideTextFont:k,getOutsideTextFont:T,getBarColor:M,resizeText:p}},98340:function(o,a,n){var l=n(7901),c=n(52075).hasColorscale,u=n(1586),f=n(71828).coercePattern;o.exports=function(d,p,h,m,y){var v=h("marker.color",m),g=c(d,"marker");g&&u(d,p,y,h,{prefix:"marker.",cLetter:"c"}),h("marker.line.color",l.defaultLine),c(d,"marker.line")&&u(d,p,y,h,{prefix:"marker.line.",cLetter:"c"}),h("marker.line.width"),h("marker.opacity"),f(h,"marker.pattern",v,g),h("selected.marker.color"),h("unselected.marker.color")}},72597:function(o,a,n){var l=n(39898),c=n(71828);function u(f){return"_"+f+"Text_minsize"}o.exports={recordMinTextSize:function(f,d,p){if(p.uniformtext.mode){var h=u(f),m=p.uniformtext.minsize,y=d.scale*d.fontSize;d.hide=yj.uf};if(T._hasPreCompStats){var G=T[A],X=function(Le){return C.d2c((T[Le]||[])[S])},Y=1/0,re=-1/0;for(S=0;S=j.q1&&j.q3>=j.med){var le=X("lowerfence");j.lf=le!==d&&le<=j.q1?le:g(j,E,W);var se=X("upperfence");j.uf=se!==d&&se>=j.q3?se:b(j,E,W);var he=X("mean");j.mean=he!==d?he:W?f.mean(E,W):(j.q1+j.q3)/2;var _e=X("sd");j.sd=he!==d&&_e>=0?_e:W?f.stdev(E,W,j.mean):j.q3-j.q1,j.lo=w(j),j.uo=_(j);var Me=X("notchspan");Me=Me!==d&&Me>0?Me:x(j,W),j.ln=j.med-Me,j.un=j.med+Me;var Ce=j.lf,Se=j.uf;T.boxpoints&&E.length&&(Ce=Math.min(Ce,E[0]),Se=Math.max(Se,E[W-1])),T.notched&&(Ce=Math.min(Ce,j.ln),Se=Math.max(Se,j.un)),j.min=Ce,j.max=Se}else{var ce;f.warn(["Invalid input - make sure that q1 <= median <= q3","q1 = "+j.q1,"median = "+j.med,"q3 = "+j.q3].join(` +`)),ce=j.med!==d?j.med:j.q1!==d?j.q3!==d?(j.q1+j.q3)/2:j.q1:j.q3!==d?j.q3:0,j.med=ce,j.q1=j.q3=ce,j.lf=j.uf=ce,j.mean=j.sd=ce,j.ln=j.un=ce,j.min=j.max=ce}Y=Math.min(Y,j.min),re=Math.max(re,j.max),j.pts2=F.filter(Q),B.push(j)}}T._extremes[C._id]=c.findExtremes(C,[Y,re],{padded:!0})}else{var ye=C.makeCalcdata(T,A),V=function(Le,Fe){for(var Be=Le.length,Ue=new Array(Be+1),qe=0;qe=0&&xe0){var Pe,Re;(j={}).pos=j[O]=ee[S],F=j.pts=fe[S].sort(y),W=(E=j[A]=F.map(v)).length,j.min=E[0],j.max=E[W-1],j.mean=f.mean(E,W),j.sd=f.stdev(E,W,j.mean)*T.sdmultiple,j.med=f.interp(E,.5),W%2&&(we||ke)?(we?(Pe=E.slice(0,W/2),Re=E.slice(W/2+1)):ke&&(Pe=E.slice(0,W/2+1),Re=E.slice(W/2)),j.q1=f.interp(Pe,.5),j.q3=f.interp(Re,.5)):(j.q1=f.interp(E,.25),j.q3=f.interp(E,.75)),j.lf=g(j,E,W),j.uf=b(j,E,W),j.lo=w(j),j.uo=_(j);var De=x(j,W);j.ln=j.med-De,j.un=j.med+De,ue=Math.min(ue,j.ln),ge=Math.max(ge,j.un),j.pts2=F.filter(Q),B.push(j)}T._extremes[C._id]=c.findExtremes(C,T.notched?ye.concat([ue,ge]):ye,{padded:!0})}return function(Le,Fe){if(f.isArrayOrTypedArray(Fe.selectedpoints))for(var Be=0;Be0?(B[0].t={num:$[N],dPos:K,posLetter:O,valLetter:A,labels:{med:p(k,"median:"),min:p(k,"min:"),q1:p(k,"q1:"),q3:p(k,"q3:"),max:p(k,"max:"),mean:T.boxmean==="sd"||T.sizemode==="sd"?p(k,"mean ± σ:").replace("σ",T.sdmultiple===1?"σ":T.sdmultiple+"σ"):p(k,"mean:"),lf:p(k,"lower fence:"),uf:p(k,"upper fence:")}},$[N]++,B):[{t:{empty:!0}}]};var h={text:"tx",hovertext:"htx"};function m(k,T,S){for(var M in h)f.isArrayOrTypedArray(T[M])&&(Array.isArray(S)?f.isArrayOrTypedArray(T[M][S[0]])&&(k[h[M]]=T[M][S[0]][S[1]]):k[h[M]]=T[M][S])}function y(k,T){return k.v-T.v}function v(k){return k.v}function g(k,T,S){return S===0?k.q1:Math.min(k.q1,T[Math.min(f.findBin(2.5*k.q1-1.5*k.q3,T,!0)+1,S-1)])}function b(k,T,S){return S===0?k.q3:Math.max(k.q3,T[Math.max(f.findBin(2.5*k.q3-1.5*k.q1,T),0)])}function w(k){return 4*k.q1-3*k.q3}function _(k){return 4*k.q3-3*k.q1}function x(k,T){return T===0?0:1.57*(k.q3-k.q1)/Math.sqrt(T)}},37188:function(o,a,n){var l=n(89298),c=n(71828),u=n(99082).getAxisGroup,f=["v","h"];function d(p,h,m,y){var v,g,b,w=h.calcdata,_=h._fullLayout,x=y._id,k=x.charAt(0),T=[],S=0;for(v=0;v1,O=1-_[p+"gap"],R=1-_[p+"groupgap"];for(v=0;v0){var ie=F.pointpos,le=F.jitter,se=F.marker.size/2,he=0;ie+le>=0&&((he=Y*(ie+le))>N?(re=!0,G=se,K=he):he>te&&(G=se,K=N)),he<=N&&(K=N);var _e=0;ie-le<=0&&((_e=-Y*(ie-le))>j?(re=!0,X=se,Q=_e):_e>ee&&(X=se,Q=j)),_e<=j&&(Q=j)}else K=N,Q=j;var Me=new Array(b.length);for(g=0;g0?(D="v",O=$>0?Math.min(z,P):Math.min(P)):$>0?(D="h",O=Math.min(z)):O=0;if(O){g._length=O;var W=b("orientation",D);g._hasPreCompStats?W==="v"&&$===0?(b("x0",0),b("dx",1)):W==="h"&&R===0&&(b("y0",0),b("dy",1)):W==="v"&&$===0?b("x0"):W==="h"&&R===0&&b("y0"),c.getComponentMethod("calendars","handleTraceDefaults")(v,g,["x","y"],w)}else g.visible=!1}function y(v,g,b,w){var _=w.prefix,x=l.coerce2(v,g,h,"marker.outliercolor"),k=b("marker.line.outliercolor"),T="outliers";g._hasPreCompStats?T="all":(x||k)&&(T="suspectedoutliers");var S=b(_+"points",T);S?(b("jitter",S==="all"?.3:0),b("pointpos",S==="all"?-1.5:0),b("marker.symbol"),b("marker.opacity"),b("marker.size"),b("marker.angle"),b("marker.color",g.line.color),b("marker.line.color"),b("marker.line.width"),S==="suspectedoutliers"&&(b("marker.line.outliercolor",g.marker.color),b("marker.line.outlierwidth")),b("selected.marker.color"),b("unselected.marker.color"),b("selected.marker.size"),b("unselected.marker.size"),b("text"),b("hovertext")):delete g.marker;var M=b("hoveron");M!=="all"&&M.indexOf("points")===-1||b("hovertemplate"),l.coerceSelectionMarkerOpacity(g,b)}o.exports={supplyDefaults:function(v,g,b,w){function _(O,R){return l.coerce(v,g,h,O,R)}if(m(v,g,_,w),g.visible!==!1){f(v,g,w,_),_("xhoverformat"),_("yhoverformat");var x=g._hasPreCompStats;x&&(_("lowerfence"),_("upperfence")),_("line.color",(v.marker||{}).color||b),_("line.width"),_("fillcolor",u.addOpacity(g.line.color,.5));var k=!1;if(x){var T=_("mean"),S=_("sd");T&&T.length&&(k=!0,S&&S.length&&(k="sd"))}_("whiskerwidth");var M,C=_("sizemode");C==="quartiles"&&(M=_("boxmean",k)),_("showwhiskers",C==="quartiles"),C!=="sd"&&M!=="sd"||_("sdmultiple"),_("width"),_("quartilemethod");var A=!1;if(x){var D=_("notchspan");D&&D.length&&(A=!0)}else l.validate(v.notchwidth,h.notchwidth)&&(A=!0);_("notched",A)&&_("notchwidth"),y(v,g,_,{prefix:"box"})}},crossTraceDefaults:function(v,g){var b,w;function _(T){return l.coerce(w._input,w,h,T)}for(var x=0;xS.lo&&(E.so=!0)}return A});T.enter().append("path").classed("point",!0),T.exit().remove(),T.call(u.translatePoints,g,b)}function p(h,m,y,v){var g,b,w=m.val,_=m.pos,x=!!_.rangebreaks,k=v.bPos,T=v.bPosPxOffset||0,S=y.boxmean||(y.meanline||{}).visible;Array.isArray(v.bdPos)?(g=v.bdPos[0],b=v.bdPos[1]):(g=v.bdPos,b=v.bdPos);var M=h.selectAll("path.mean").data(y.type==="box"&&y.boxmean||y.type==="violin"&&y.box.visible&&y.meanline.visible?c.identity:[]);M.enter().append("path").attr("class","mean").style({fill:"none","vector-effect":"non-scaling-stroke"}),M.exit().remove(),M.each(function(C){var A=_.c2l(C.pos+k,!0),D=_.l2p(A-g)+T,O=_.l2p(A+b)+T,R=x?(D+O)/2:_.l2p(A)+T,$=w.c2p(C.mean,!0),P=w.c2p(C.mean-C.sd,!0),z=w.c2p(C.mean+C.sd,!0);y.orientation==="h"?l.select(this).attr("d","M"+$+","+D+"V"+O+(S==="sd"?"m0,0L"+P+","+R+"L"+$+","+D+"L"+z+","+R+"Z":"")):l.select(this).attr("d","M"+D+","+$+"H"+O+(S==="sd"?"m0,0L"+R+","+P+"L"+D+","+$+"L"+R+","+z+"Z":""))})}o.exports={plot:function(h,m,y,v){var g=h._context.staticPlot,b=m.xaxis,w=m.yaxis;c.makeTraceGroups(v,y,"trace boxes").each(function(_){var x,k,T=l.select(this),S=_[0],M=S.t,C=S.trace;M.wdPos=M.bdPos*C.whiskerwidth,C.visible!==!0||M.empty?T.remove():(C.orientation==="h"?(x=w,k=b):(x=b,k=w),f(T,{pos:x,val:k},C,M,g),d(T,{x:b,y:w},C,M),p(T,{pos:x,val:k},C,M))})},plotBoxAndWhiskers:f,plotPoints:d,plotBoxMean:p}},24626:function(o){o.exports=function(a,n){var l,c,u=a.cd,f=a.xaxis,d=a.yaxis,p=[];if(n===!1)for(l=0;ld.level||d.starts.length&&f===d.level)}break;case"constraint":if(c.prefixBoundary=!1,c.edgepaths.length)return;var p=c.x.length,h=c.y.length,m=-1/0,y=1/0;for(l=0;l":b>m&&(c.prefixBoundary=!0);break;case"<":(bm||c.starts.length&&g===y)&&(c.prefixBoundary=!0);break;case"][":v=Math.min(b[0],b[1]),g=Math.max(b[0],b[1]),vm&&(c.prefixBoundary=!0)}}}},90654:function(o,a,n){var l=n(21081),c=n(86068),u=n(53572);o.exports={min:"zmin",max:"zmax",calc:function(f,d,p){var h=d.contours,m=d.line,y=h.size||1,v=h.coloring,g=c(d,{isColorbar:!0});if(v==="heatmap"){var b=l.extractOpts(d);p._fillgradient=b.reversescale?l.flipScale(b.colorscale):b.colorscale,p._zrange=[b.min,b.max]}else v==="fill"&&(p._fillcolor=g);p._line={color:v==="lines"?g:m.color,width:h.showlines!==!1?m.width:0,dash:m.dash},p._levels={start:h.start,end:u(h),size:y}}}},36914:function(o){o.exports={BOTTOMSTART:[1,9,13,104,713],TOPSTART:[4,6,7,104,713],LEFTSTART:[8,12,14,208,1114],RIGHTSTART:[2,3,11,208,1114],NEWDELTA:[null,[-1,0],[0,-1],[-1,0],[1,0],null,[0,-1],[-1,0],[0,1],[0,1],null,[0,1],[1,0],[1,0],[0,-1]],CHOOSESADDLE:{104:[4,1],208:[2,8],713:[7,13],1114:[11,14]},SADDLEREMAINDER:{1:4,2:8,4:1,7:13,8:2,11:14,13:7,14:11},LABELDISTANCE:2,LABELINCREASE:10,LABELMIN:3,LABELMAX:10,LABELOPTIMIZER:{EDGECOST:1,ANGLECOST:1,NEIGHBORCOST:5,SAMELEVELFACTOR:10,SAMELEVELDISTANCE:5,MAXCOST:100,INITIALSEARCHPOINTS:10,ITERATIONS:5}}},83179:function(o,a,n){var l=n(92770),c=n(14523),u=n(7901),f=u.addOpacity,d=u.opacity,p=n(74808),h=p.CONSTRAINT_REDUCTION,m=p.COMPARISON_OPS2;o.exports=function(y,v,g,b,w,_){var x,k,T,S=v.contours,M=g("contours.operation");S._operation=h[M],function(C,A){var D;m.indexOf(A.operation)===-1?(C("contours.value",[0,1]),Array.isArray(A.value)?A.value.length>2?A.value=A.value.slice(2):A.length===0?A.value=[0,1]:A.length<2?(D=parseFloat(A.value[0]),A.value=[D,D+1]):A.value=[parseFloat(A.value[0]),parseFloat(A.value[1])]:l(A.value)&&(D=parseFloat(A.value),A.value=[D,D+1])):(C("contours.value",0),l(A.value)||(Array.isArray(A.value)?A.value=parseFloat(A.value[0]):A.value=0))}(g,S),M==="="?x=S.showlines=!0:(x=g("contours.showlines"),T=g("fillcolor",f((y.line||{}).color||w,.5))),x&&(k=g("line.color",T&&d(T)?f(v.fillcolor,1):w),g("line.width",2),g("line.dash")),g("line.smoothing"),c(g,b,k,_)}},64237:function(o,a,n){var l=n(74808),c=n(92770);function u(p,h){var m,y=Array.isArray(h);function v(g){return c(g)?+g:null}return l.COMPARISON_OPS2.indexOf(p)!==-1?m=v(y?h[0]:h):l.INTERVAL_OPS.indexOf(p)!==-1?m=y?[v(h[0]),v(h[1])]:[v(h),v(h)]:l.SET_OPS.indexOf(p)!==-1&&(m=y?h.map(v):[v(h)]),m}function f(p){return function(h){h=u(p,h);var m=Math.min(h[0],h[1]),y=Math.max(h[0],h[1]);return{start:m,end:y,size:y-m}}}function d(p){return function(h){return{start:h=u(p,h),end:1/0,size:1/0}}}o.exports={"[]":f("[]"),"][":f("]["),">":d(">"),"<":d("<"),"=":d("=")}},67217:function(o){o.exports=function(a,n,l,c){var u=c("contours.start"),f=c("contours.end"),d=u===!1||f===!1,p=l("contours.size");!(d?n.autocontour=!0:l("autocontour",!1))&&p||l("ncontours")}},84857:function(o,a,n){var l=n(71828);function c(u){return l.extendFlat({},u,{edgepaths:l.extendDeep([],u.edgepaths),paths:l.extendDeep([],u.paths),starts:l.extendDeep([],u.starts)})}o.exports=function(u,f){var d,p,h,m=function(g){return g.reverse()},y=function(g){return g};switch(f){case"=":case"<":return u;case">":for(u.length!==1&&l.warn("Contour data invalid for the specified inequality operation."),p=u[0],d=0;d1e3){l.warn("Too many contours, clipping at 1000",f);break}return y}},53572:function(o){o.exports=function(a){return a.end+a.size/1e6}},81696:function(o,a,n){var l=n(71828),c=n(36914);function u(p,h,m,y){return Math.abs(p[0]-h[0])20&&re?Y===208||Y===1114?le=ie[0]===0?1:-1:se=ie[1]===0?1:-1:c.BOTTOMSTART.indexOf(Y)!==-1?se=1:c.LEFTSTART.indexOf(Y)!==-1?le=1:c.TOPSTART.indexOf(Y)!==-1?se=-1:le=-1,[le,se]}(w,m,h),x=[d(p,h,[-_[0],-_[1]])],k=p.z.length,T=p.z[0].length,S=h.slice(),M=_.slice();for(g=0;g<1e4;g++){if(w>20?(w=c.CHOOSESADDLE[w][(_[0]||_[1])<0?0:1],p.crossings[b]=c.SADDLEREMAINDER[w]):delete p.crossings[b],!(_=c.NEWDELTA[w])){l.log("Found bad marching index:",w,h,p.level);break}x.push(d(p,h,_)),h[0]+=_[0],h[1]+=_[1],b=h.join(","),u(x[x.length-1],x[x.length-2],y,v)&&x.pop();var C=_[0]&&(h[0]<0||h[0]>T-2)||_[1]&&(h[1]<0||h[1]>k-2);if(h[0]===S[0]&&h[1]===S[1]&&_[0]===M[0]&&_[1]===M[1]||m&&C)break;w=p.crossings[b]}g===1e4&&l.log("Infinite loop in contour?");var A,D,O,R,$,P,z,B,N,j,F,E,W,H,L,q=u(x[0],x[x.length-1],y,v),U=0,J=.2*p.smoothing,te=[],ee=0;for(g=1;g=ee;g--)if((A=te[g])=ee&&A+te[D]B&&N--,p.edgepaths[N]=F.concat(x,j));break}X||(p.edgepaths[B]=x.concat(j))}for(B=0;B=M)&&(p<=S&&(p=S),h>=M&&(h=M),y=Math.floor((h-p)/m)+1,v=0),w=0;wS&&(k.unshift(S),T.unshift(T[0])),k[k.length-1]u?0:1)+(f[0][1]>u?0:2)+(f[1][1]>u?0:4)+(f[1][0]>u?0:8);return d===5||d===10?u>(f[0][0]+f[0][1]+f[1][0]+f[1][1])/4?d===5?713:1114:d===5?104:208:d===15?0:d}o.exports=function(u){var f,d,p,h,m,y,v,g,b,w=u[0].z,_=w.length,x=w[0].length,k=_===2||x===2;for(d=0;d<_-1;d++)for(h=[],d===0&&(h=h.concat(l.BOTTOMSTART)),d===_-2&&(h=h.concat(l.TOPSTART)),f=0;f=0&&(D=L,R=$):Math.abs(A[1]-D[1])<.01?Math.abs(A[1]-L[1])<.01&&(L[0]-A[0])*(D[0]-L[0])>=0&&(D=L,R=$):c.log("endpt to newendpt is not vert. or horz.",A,D,L)}if(A=D,R>=0)break;B+="L"+D}if(R===M.edgepaths.length){c.log("unclosed perimeter path");break}N=R,(F=j.indexOf(N)===-1)&&(N=j[0],B+="Z")}for(N=0;ND.center?D.right-$:$-D.left)/(B+Math.abs(Math.sin(z)*R)),F=(P>D.middle?D.bottom-P:P-D.top)/(Math.abs(N)+Math.cos(z)*R);if(j<1||F<1)return 1/0;var E=x.EDGECOST*(1/(j-1)+1/(F-1));E+=x.ANGLECOST*z*z;for(var W=$-B,H=P-N,L=$+B,q=P+N,U=0;U2*x.MAXCOST)break;F&&($/=2),P=(R=z-$/2)+1.5*$}if(j<=x.MAXCOST)return B},a.addLabelData=function(M,C,A,D){var O=C.fontSize,R=C.width+O/3,$=Math.max(0,C.height-O/3),P=M.x,z=M.y,B=M.theta,N=Math.sin(B),j=Math.cos(B),F=function(W,H){return[P+W*j-H*N,z+W*N+H*j]},E=[F(-R/2,-$/2),F(-R/2,$/2),F(R/2,$/2),F(R/2,-$/2)];A.push({text:C.text,x:P,y:z,dy:C.dy,theta:B,level:C.level,width:R,height:$}),D.push(E)},a.drawLabels=function(M,C,A,D,O){var R=M.selectAll("text").data(C,function(z){return z.text+","+z.x+","+z.y+","+z.theta});if(R.exit().remove(),R.enter().append("text").attr({"data-notex":1,"text-anchor":"middle"}).each(function(z){var B=z.x+Math.sin(z.theta)*z.dy,N=z.y-Math.cos(z.theta)*z.dy;l.select(this).text(z.text).attr({x:B,y:N,transform:"rotate("+180*z.theta/Math.PI+" "+B+" "+N+")"}).call(d.convertToTspans,A)}),O){for(var $="",P=0;Pp.end&&(p.start=p.end=(p.start+p.end)/2),f._input.contours||(f._input.contours={}),c.extendFlat(f._input.contours,{start:p.start,end:p.end,size:p.size}),f._input.autocontour=!0}else if(p.type!=="constraint"){var v,g=p.start,b=p.end,w=f._input.contours;g>b&&(p.start=w.start=b,b=p.end=w.end=g,g=p.start),p.size>0||(v=g===b?1:u(g,b,f.ncontours).dtick,w.size=p.size=v)}}},84426:function(o,a,n){var l=n(39898),c=n(91424),u=n(70035),f=n(86068);o.exports=function(d){var p=l.select(d).selectAll("g.contour");p.style("opacity",function(h){return h[0].trace.opacity}),p.each(function(h){var m=l.select(this),y=h[0].trace,v=y.contours,g=y.line,b=v.size||1,w=v.start,_=v.type==="constraint",x=!_&&v.coloring==="lines",k=!_&&v.coloring==="fill",T=x||k?f(y):null;m.selectAll("g.contourlevel").each(function(C){l.select(this).selectAll("path").call(c.lineGroupStyle,g.width,x?T(C.level):g.color,g.dash)});var S=v.labelfont;if(m.selectAll("g.contourlabels text").each(function(C){c.font(l.select(this),{family:S.family,size:S.size,color:S.color||(x?T(C.level):g.color)})}),_)m.selectAll("g.contourfill path").style("fill",y.fillcolor);else if(k){var M;m.selectAll("g.contourfill path").style("fill",function(C){return M===void 0&&(M=C.level),T(C.level+.5*b)}),M===void 0&&(M=w),m.selectAll("g.contourbg path").style("fill",T(M-.5*b))}}),u(d)}},8724:function(o,a,n){var l=n(1586),c=n(14523);o.exports=function(u,f,d,p,h){var m,y=d("contours.coloring"),v="";y==="fill"&&(m=d("contours.showlines")),m!==!1&&(y!=="lines"&&(v=d("line.color","#000")),d("line.width",.5),d("line.dash")),y!=="none"&&(u.showlegend!==!0&&(f.showlegend=!1),f._dfltShowLegend=!1,l(u,f,p,d,{prefix:"",cLetter:"z"})),d("line.smoothing"),c(d,p,v,h)}},21606:function(o,a,n){var l=n(82196),c=n(9012),u=n(41940),f=n(12663).axisHoverFormat,d=n(5386).fF,p=n(5386).si,h=n(50693),m=n(1426).extendFlat;o.exports=m({z:{valType:"data_array",editType:"calc"},x:m({},l.x,{impliedEdits:{xtype:"array"}}),x0:m({},l.x0,{impliedEdits:{xtype:"scaled"}}),dx:m({},l.dx,{impliedEdits:{xtype:"scaled"}}),y:m({},l.y,{impliedEdits:{ytype:"array"}}),y0:m({},l.y0,{impliedEdits:{ytype:"scaled"}}),dy:m({},l.dy,{impliedEdits:{ytype:"scaled"}}),xperiod:m({},l.xperiod,{impliedEdits:{xtype:"scaled"}}),yperiod:m({},l.yperiod,{impliedEdits:{ytype:"scaled"}}),xperiod0:m({},l.xperiod0,{impliedEdits:{xtype:"scaled"}}),yperiod0:m({},l.yperiod0,{impliedEdits:{ytype:"scaled"}}),xperiodalignment:m({},l.xperiodalignment,{impliedEdits:{xtype:"scaled"}}),yperiodalignment:m({},l.yperiodalignment,{impliedEdits:{ytype:"scaled"}}),text:{valType:"data_array",editType:"calc"},hovertext:{valType:"data_array",editType:"calc"},transpose:{valType:"boolean",dflt:!1,editType:"calc"},xtype:{valType:"enumerated",values:["array","scaled"],editType:"calc+clearAxisTypes"},ytype:{valType:"enumerated",values:["array","scaled"],editType:"calc+clearAxisTypes"},zsmooth:{valType:"enumerated",values:["fast","best",!1],dflt:!1,editType:"calc"},hoverongaps:{valType:"boolean",dflt:!0,editType:"none"},connectgaps:{valType:"boolean",editType:"calc"},xgap:{valType:"number",dflt:0,min:0,editType:"plot"},ygap:{valType:"number",dflt:0,min:0,editType:"plot"},xhoverformat:f("x"),yhoverformat:f("y"),zhoverformat:f("z",1),hovertemplate:d(),texttemplate:p({arrayOk:!1,editType:"plot"},{keys:["x","y","z","text"]}),textfont:u({editType:"plot",autoSize:!0,autoColor:!0,colorEditType:"style"}),showlegend:m({},c.showlegend,{dflt:!1})},{transforms:void 0},h("",{cLetter:"z",autoColorDflt:!1}))},90757:function(o,a,n){var l=n(73972),c=n(71828),u=n(89298),f=n(42973),d=n(17562),p=n(78803),h=n(68296),m=n(4742),y=n(824),v=n(43907),g=n(70769),b=n(50606).BADNUM;function w(_){for(var x=[],k=_.length,T=0;T1){var X=(G[G.length-1]-G[0])/(G.length-1),Y=Math.abs(X/100);for($=0;$Y)return!1}return!0}(z.rangebreaks||B.rangebreaks)&&(R=function(G,X,Y){for(var re=[],ie=-1,le=0;le=0;h--)(m=((b[[(f=(p=w[h])[0])-1,d=p[1]]]||k)[2]+(b[[f+1,d]]||k)[2]+(b[[f,d-1]]||k)[2]+(b[[f,d+1]]||k)[2])/20)&&(y[p]=[f,d,m],w.splice(h,1),v=!0);if(!v)throw"findEmpties iterated with no new neighbors";for(p in y)b[p]=y[p],g.push(y[p])}return g.sort(function(S,M){return M[2]-S[2]})}},46248:function(o,a,n){var l=n(30211),c=n(71828),u=n(89298),f=n(21081).extractOpts;o.exports=function(d,p,h,m,y){y||(y={});var v,g,b,w,_=y.isContour,x=d.cd[0],k=x.trace,T=d.xa,S=d.ya,M=x.x,C=x.y,A=x.z,D=x.xCenter,O=x.yCenter,R=x.zmask,$=k.zhoverformat,P=M,z=C;if(d.index!==!1){try{b=Math.round(d.index[1]),w=Math.round(d.index[0])}catch{return void c.error("Error hovering on heatmap, pointNumber must be [row,col], found:",d.index)}if(b<0||b>=A[0].length||w<0||w>A.length)return}else{if(l.inbox(p-M[0],p-M[M.length-1],0)>0||l.inbox(h-C[0],h-C[C.length-1],0)>0)return;if(_){var B;for(P=[2*M[0]-M[1]],B=1;BM&&(A=Math.max(A,Math.abs(d[y][v]-S)/(C-M))))}return A}o.exports=function(d,p){var h,m=1;for(f(d,p),h=0;h.01;h++)m=f(d,p,u(m));return m>.01&&l.log("interp2d didn't converge quickly",m),d}},58623:function(o,a,n){var l=n(71828);o.exports=function(c,u){c("texttemplate");var f=l.extendFlat({},u.font,{color:"auto",size:"auto"});l.coerceFont(c,"textfont",f)}},70769:function(o,a,n){var l=n(73972),c=n(71828).isArrayOrTypedArray;o.exports=function(u,f,d,p,h,m){var y,v,g,b=[],w=l.traceIs(u,"contour"),_=l.traceIs(u,"histogram"),x=l.traceIs(u,"gl2d");if(c(f)&&f.length>1&&!_&&m.type!=="category"){var k=f.length;if(!(k<=h))return w?f.slice(0,h):f.slice(0,h+1);if(w||x)b=f.slice(0,h);else if(h===1)b=[f[0]-.5,f[0]+.5];else{for(b=[1.5*f[0]-.5*f[1]],g=1;g0;)j=P.c2p(G[H]),H--;for(j0;)W=z.c2p(X[H]),H--;W=P._length||j<=0||E>=z._length||W<=0)return U.selectAll("image").data([]).exit().remove(),void S(U);Ce==="fast"?(ce=he,ye=se):(ce=V,ye=ne);var fe=document.createElement("canvas");fe.width=ce,fe.height=ye;var xe,ue,ge=fe.getContext("2d",{willReadFrequently:!0}),be=g(te,{noNumericCheck:!0,returnArray:!0});Ce==="fast"?(xe=_e?function(en){return he-1-en}:p.identity,ue=Me?function(en){return se-1-en}:p.identity):(xe=function(en){return p.constrain(Math.round(P.c2p(G[en])-N),0,V)},ue=function(en){return p.constrain(Math.round(z.c2p(X[en])-E),0,ne)});var we,ke,Pe,Re,De=ue(0),Le=[De,De],Fe=_e?0:1,Be=Me?0:1,Ue=0,qe=0,Ye=0,at=0;function st(en,dn){if(en!==void 0){var Kt=be(en);return Kt[0]=Math.round(Kt[0]),Kt[1]=Math.round(Kt[1]),Kt[2]=Math.round(Kt[2]),Ue+=dn,qe+=Kt[0]*dn,Ye+=Kt[1]*dn,at+=Kt[2]*dn,Kt}return[0,0,0,0]}function ft(en,dn,Kt,Mn){var Tn=en[Kt.bin0];if(Tn===void 0)return st(void 0,1);var Bn,In=en[Kt.bin1],kn=dn[Kt.bin0],zn=dn[Kt.bin1],vr=In-Tn||0,da=kn-Tn||0;return Bn=In===void 0?zn===void 0?0:kn===void 0?2*(zn-Tn):2*(2*zn-kn-Tn)/3:zn===void 0?kn===void 0?0:2*(2*Tn-In-kn)/3:kn===void 0?2*(2*zn-In-Tn)/3:zn+Tn-In-kn,st(Tn+Kt.frac*vr+Mn.frac*(da+Kt.frac*Bn))}if(Ce!=="default"){var yt,ze=0;try{yt=new Uint8Array(ce*ye*4)}catch{yt=new Array(ce*ye*4)}if(Ce==="smooth"){var Ne,et,it,St=Y||G,Ze=re||X,ut=new Array(St.length),gt=new Array(Ze.length),Rt=new Array(V),Mt=Y?C:M,Bt=re?C:M;for(H=0;Hmt||mt>z._length))for(L=Yt;Lwt||wt>P._length)){var qt=m({x:vt,y:Et},te,D._fullLayout);qt.x=vt,qt.y=Et;var Lt=J.z[H][L];Lt===void 0?(qt.z="",qt.zLabel=""):(qt.z=Lt,qt.zLabel=d.tickText(ct,Lt,"hover").text);var Gt=J.text&&J.text[H]&&J.text[H][L];Gt!==void 0&&Gt!==!1||(Gt=""),qt.text=Gt;var ht=p.texttemplateString(Ge,qt,D._fullLayout._d3locale,qt,te._meta||{});if(ht){var Pt=ht.split("
"),At=Pt.length,Ft=0;for(q=0;q0&&(M=!0);for(var D=0;Dp){var h=p-f[c];return f[c]=p,h}}return 0},max:function(c,u,f,d){var p=d[u];if(l(p)){if(p=Number(p),!l(f[c]))return f[c]=p,p;if(f[c]h?w>f?w>1.1*c?c:w>1.1*u?u:f:w>d?d:w>p?p:h:Math.pow(10,Math.floor(Math.log(w)/Math.LN10))}function g(w,_,x,k,T,S){if(k&&w>f){var M=b(_,T,S),C=b(x,T,S),A=w===c?0:1;return M[A]!==C[A]}return Math.floor(x/w)-Math.floor(_/w)>.1}function b(w,_,x){var k=_.c2d(w,c,x).split("-");return k[0]===""&&(k.unshift(),k[0]="-"+k[0]),k}o.exports=function(w,_,x,k,T){var S,M,C=-1.1*_,A=-.1*_,D=w-A,O=x[0],R=x[1],$=Math.min(y(O+A,O+D,k,T),y(R+A,R+D,k,T)),P=Math.min(y(O+C,O+A,k,T),y(R+C,R+A,k,T));if($>P&&Pf){var z=S===c?1:6,B=S===c?"M12":"M1";return function(N,j){var F=k.c2d(N,c,T),E=F.indexOf("-",z);E>0&&(F=F.substr(0,E));var W=k.d2c(F,0,T);if(Ww.r2l(X)&&(re=f.tickIncrement(re,P.size,!0,M)),ee.start=w.l2r(re),G||c.nestedProperty(b,O+".start").set(ee.start)}var ie=P.end,le=w.r2l(te.end),se=le!==void 0;if((P.endFound||se)&&le!==w.r2l(ie)){var he=se?le:c.aggNums(Math.max,null,C);ee.end=w.l2r(he),se||c.nestedProperty(b,O+".start").set(ee.end)}var _e="autobin"+_;return b._input[_e]===!1&&(b._input[O]=c.extendFlat({},b[O]||{}),delete b._input[_e],delete b[_e]),[ee,C]}o.exports={calc:function(g,b){var w,_,x,k,T=[],S=[],M=b.orientation==="h",C=f.getFromId(g,M?b.yaxis:b.xaxis),A=M?"y":"x",D={x:"y",y:"x"}[A],O=b[A+"calendar"],R=b.cumulative,$=v(g,b,C,A),P=$[0],z=$[1],B=typeof P.size=="string",N=[],j=B?N:P,F=[],E=[],W=[],H=0,L=b.histnorm,q=b.histfunc,U=L.indexOf("density")!==-1;R.enabled&&U&&(L=L.replace(/ ?density$/,""),U=!1);var J,te=q==="max"||q==="min"?null:0,ee=p.count,K=h[L],Q=!1,G=function(ne){return C.r2c(ne,0,O)};for(c.isArrayOrTypedArray(b[D])&&q!=="count"&&(J=b[D],Q=q==="avg",ee=p[q]),w=G(P.start),x=G(P.end)+(w-f.tickIncrement(w,P.size,!1,O))/1e6;w=0&&k=0;ue--)ke(ue);else if(fe==="increasing"){for(ue=1;ue=0;ue--)ne[ue]+=ne[ue+1];xe==="exclude"&&(ne.push(0),ne.shift())}}(S,R.direction,R.currentbin);var Ce=Math.min(T.length,S.length),Se=[],ce=0,ye=Ce-1;for(w=0;w=ce;w--)if(S[w]){ye=w;break}for(w=ce;w<=ye;w++)if(l(T[w])&&l(S[w])){var V={p:T[w],s:S[w],b:0};R.enabled||(V.pts=W[w],le?V.ph0=V.ph1=W[w].length?z[W[w][0]]:T[w]:(b._computePh=!0,V.ph0=re(N[w]),V.ph1=re(N[w+1],!0))),Se.push(V)}return Se.length===1&&(Se[0].width1=f.tickIncrement(Se[0].p,P.size,!1,O)-Se[0].p),d(Se,b),c.isArrayOrTypedArray(b.selectedpoints)&&c.tagSelected(Se,b,_e),Se},calcAllAutoBins:v}},72406:function(o){o.exports={eventDataKeys:["binNumber"]}},82222:function(o,a,n){var l=n(71828),c=n(41675),u=n(73972).traceIs,f=n(26125),d=l.nestedProperty,p=n(99082).getAxisGroup,h=[{aStr:{x:"xbins.start",y:"ybins.start"},name:"start"},{aStr:{x:"xbins.end",y:"ybins.end"},name:"end"},{aStr:{x:"xbins.size",y:"ybins.size"},name:"size"},{aStr:{x:"nbinsx",y:"nbinsy"},name:"nbins"}],m=["x","y"];o.exports=function(y,v){var g,b,w,_,x,k,T,S=v._histogramBinOpts={},M=[],C={},A=[];function D(U,J){return l.coerce(g._input,g,g._module.attributes,U,J)}function O(U){return U.orientation==="v"?"x":"y"}function R(U,J,te){var ee=U.uid+"__"+te;J||(J=ee);var K=function(Y,re){return c.getFromTrace({_fullLayout:v},Y,re).type}(U,te),Q=U[te+"calendar"]||"",G=S[J],X=!0;G&&(K===G.axType&&Q===G.calendar?(X=!1,G.traces.push(U),G.dirs.push(te)):(J=ee,K!==G.axType&&l.warn(["Attempted to group the bins of trace",U.index,"set on a","type:"+K,"axis","with bins on","type:"+G.axType,"axis."].join(" ")),Q!==G.calendar&&l.warn(["Attempted to group the bins of trace",U.index,"set with a",Q,"calendar","with bins",G.calendar?"on a "+G.calendar+" calendar":"w/o a set calendar"].join(" ")))),X&&(S[J]={traces:[U],dirs:[te],axType:K,calendar:U[te+"calendar"]||""}),U["_"+te+"bingroup"]=J}for(x=0;xN&&$.splice(N,$.length-N),B.length>N&&B.splice(N,B.length-N);var j=[],F=[],E=[],W=typeof R.size=="string",H=typeof z.size=="string",L=[],q=[],U=W?L:R,J=H?q:z,te=0,ee=[],K=[],Q=b.histnorm,G=b.histfunc,X=Q.indexOf("density")!==-1,Y=G==="max"||G==="min"?null:0,re=u.count,ie=f[Q],le=!1,se=[],he=[],_e="z"in b?b.z:"marker"in b&&Array.isArray(b.marker.color)?b.marker.color:"";_e&&G!=="count"&&(le=G==="avg",re=u[G]);var Me=R.size,Ce=A(R.start),Se=A(R.end)+(Ce-c.tickIncrement(Ce,Me,!1,M))/1e6;for(w=Ce;w=0&&x=0&&k0||l.inbox(p-h.y0,p-(h.y0+h.h*m.dy),0)>0)){var g,b=Math.floor((d-h.x0)/m.dx),w=Math.floor(Math.abs(p-h.y0)/m.dy);if(m._hasZ?g=h.z[w][b]:m._hasSource&&(g=m._canvas.el.getContext("2d",{willReadFrequently:!0}).getImageData(b,w,1,1).data),g){var _,x=h.hi||m.hoverinfo;if(x){var k=x.split("+");k.indexOf("all")!==-1&&(k=["color"]),k.indexOf("color")!==-1&&(_=!0)}var T,S=u.colormodel[m.colormodel],M=S.colormodel||m.colormodel,C=M.length,A=m._scaler(g),D=S.suffix,O=[];(m.hovertemplate||_)&&(O.push("["+[A[0]+D[0],A[1]+D[1],A[2]+D[2]].join(", ")),C===4&&O.push(", "+A[3]+D[3]),O.push("]"),O=O.join(""),f.extraText=M.toUpperCase()+": "+O),Array.isArray(m.hovertext)&&Array.isArray(m.hovertext[w])?T=m.hovertext[w][b]:Array.isArray(m.text)&&Array.isArray(m.text[w])&&(T=m.text[w][b]);var R=v.c2p(h.y0+(w+.5)*m.dy),$=h.x0+(b+.5)*m.dx,P=h.y0+(w+.5)*m.dy,z="["+g.slice(0,m.colormodel.length).join(", ")+"]";return[c.extendFlat(f,{index:[w,b],x0:y.c2p(h.x0+b*m.dx),x1:y.c2p(h.x0+(b+1)*m.dx),y0:R,y1:R,color:A,xVal:$,xLabelVal:$,yVal:P,yLabelVal:P,zLabelVal:z,text:T,hovertemplateLabels:{zLabel:z,colorLabel:O,"color[0]Label":A[0]+D[0],"color[1]Label":A[1]+D[1],"color[2]Label":A[2]+D[2],"color[3]Label":A[3]+D[3]}})]}}}},94507:function(o,a,n){o.exports={attributes:n(17230),supplyDefaults:n(13245),calc:n(71113),plot:n(60775),style:n(12826),hoverPoints:n(28749),eventData:n(30835),moduleType:"trace",name:"image",basePlotModule:n(93612),categories:["cartesian","svg","2dMap","noSortingByValue"],animatable:!1,meta:{}}},60775:function(o,a,n){var l=n(39898),c=n(71828),u=c.strTranslate,f=n(77922),d=n(51877),p=n(3883),h=n(32396).STYLE;o.exports=function(m,y,v,g){var b=y.xaxis,w=y.yaxis,_=!m._context._exportedPlot&&p();c.makeTraceGroups(g,v,"im").each(function(x){var k=l.select(this),T=x[0],S=T.trace,M=(S.zsmooth==="fast"||S.zsmooth===!1&&_)&&!S._hasZ&&S._hasSource&&b.type==="linear"&&w.type==="linear";S._realImage=M;var C,A,D,O,R,$,P=T.z,z=T.x0,B=T.y0,N=T.w,j=T.h,F=S.dx,E=S.dy;for($=0;C===void 0&&$0;)A=b.c2p(z+$*F),$--;for($=0;O===void 0&&$0;)R=w.c2p(B+$*E),$--;AJ[0];if(te||ee){var K=C+W/2,Q=O+H/2;q+="transform:"+u(K+"px",Q+"px")+"scale("+(te?-1:1)+","+(ee?-1:1)+")"+u(-K+"px",-Q+"px")+";"}}L.attr("style",q);var G=new Promise(function(Y){if(S._hasZ)Y();else if(S._hasSource)if(S._canvas&&S._canvas.el.width===N&&S._canvas.el.height===j&&S._canvas.source===S.source)Y();else{var re=document.createElement("canvas");re.width=N,re.height=j;var ie=re.getContext("2d",{willReadFrequently:!0});S._image=S._image||new Image;var le=S._image;le.onload=function(){ie.drawImage(le,0,0),S._canvas={el:re,source:S.source},Y()},le.setAttribute("src",S.source)}}).then(function(){var Y,re;if(S._hasZ)re=X(function(le,se){return P[se][le]}),Y=re.toDataURL("image/png");else if(S._hasSource)if(M)Y=S.source;else{var ie=S._canvas.el.getContext("2d",{willReadFrequently:!0}).getImageData(0,0,N,j).data;re=X(function(le,se){var he=4*(se*N+le);return[ie[he],ie[he+1],ie[he+2],ie[he+3]]}),Y=re.toDataURL("image/png")}L.attr({"xlink:href":Y,height:H,width:W,x:C,y:O})});m._promises.push(G)}function X(Y){var re=document.createElement("canvas");re.width=W,re.height=H;var ie,le=re.getContext("2d",{willReadFrequently:!0}),se=function(fe){return c.constrain(Math.round(b.c2p(z+fe*F)-C),0,W)},he=function(fe){return c.constrain(Math.round(w.c2p(B+fe*E)-O),0,H)},_e=d.colormodel[S.colormodel],Me=_e.colormodel||S.colormodel,Ce=_e.fmt;for($=0;$=0}),(m.type==="funnelarea"?D:m.sort)&&g.sort(function(z,B){return B.v-z.v}),g[0]&&(g[0].vTotal=A),g},crossTraceCalc:function(h,m){var y=(m||{}).type;y||(y="pie");var v=h._fullLayout,g=h.calcdata,b=v[y+"colorway"],w=v["_"+y+"colormap"];v["extend"+y+"colors"]&&(b=p(b,f));for(var _=0,x=0;x0){_=!0;break}}_||(w=0)}return{hasLabels:g,hasValues:b,len:w}}function m(y,v,g,b,w){b("marker.line.width")&&b("marker.line.color",w?void 0:g.paper_bgcolor);var _=b("marker.colors");p(b,"marker.pattern",_),y.marker&&!v.marker.pattern.fgcolor&&(v.marker.pattern.fgcolor=y.marker.colors),v.marker.pattern.bgcolor||(v.marker.pattern.bgcolor=g.paper_bgcolor)}o.exports={handleLabelsAndValues:h,handleMarkerDefaults:m,supplyDefaults:function(y,v,g,b){function w(D,O){return c.coerce(y,v,u,D,O)}var _=h(w("labels"),w("values")),x=_.len;if(v._hasLabels=_.hasLabels,v._hasValues=_.hasValues,!v._hasLabels&&v._hasValues&&(w("label0"),w("dlabel")),x){v._length=x,m(y,v,b,w,!0),w("scalegroup");var k,T=w("text"),S=w("texttemplate");if(S||(k=w("textinfo",Array.isArray(T)?"text+percent":"percent")),w("hovertext"),w("hovertemplate"),S||k&&k!=="none"){var M=w("textposition");d(y,v,b,w,M,{moduleHasSelected:!1,moduleHasUnselected:!1,moduleHasConstrain:!1,moduleHasCliponaxis:!1,moduleHasTextangle:!1,moduleHasInsideanchor:!1}),(Array.isArray(M)||M==="auto"||M==="outside")&&w("automargin"),(M==="inside"||M==="auto"||Array.isArray(M))&&w("insidetextorientation")}f(v,b,w);var C=w("hole");if(w("title.text")){var A=w("title.position",C?"middle center":"top center");C||A!=="middle center"||(v.title.position="top center"),c.coerceFont(w,"title.font",b.font)}w("sort"),w("direction"),w("rotation"),w("pull")}else v.visible=!1}}},20007:function(o,a,n){var l=n(23469).appendArrayMultiPointValues;o.exports=function(c,u){var f={curveNumber:u.index,pointNumbers:c.pts,data:u._input,fullData:u,label:c.label,color:c.color,value:c.v,percent:c.percent,text:c.text,bbox:c.bbox,v:c.v};return c.pts.length===1&&(f.pointNumber=f.i=c.pts[0]),l(f,u,c.pts),u.type==="funnelarea"&&(delete f.v,delete f.i),f}},22209:function(o,a,n){var l=n(91424),c=n(7901);o.exports=function(u,f,d,p){var h=d.marker.pattern;h&&h.shape?l.pointStyle(u,d,p,f):c.fill(u,f.color)}},53581:function(o,a,n){var l=n(71828);function c(u){return u.indexOf("e")!==-1?u.replace(/[.]?0+e/,"e"):u.indexOf(".")!==-1?u.replace(/[.]?0+$/,""):u}a.formatPiePercent=function(u,f){var d=c((100*u).toPrecision(3));return l.numSeparate(d,f)+"%"},a.formatPieValue=function(u,f){var d=c(u.toPrecision(10));return l.numSeparate(d,f)},a.getFirstFilled=function(u,f){if(Array.isArray(u))for(var d=0;d"),name:Y.hovertemplate||re.indexOf("name")!==-1?Y.name:void 0,idealAlign:G.pxmid[0]<0?"left":"right",color:_.castOption(Ce.bgcolor,G.pts)||G.color,borderColor:_.castOption(Ce.bordercolor,G.pts),fontFamily:_.castOption(Se.family,G.pts),fontSize:_.castOption(Se.size,G.pts),fontColor:_.castOption(Se.color,G.pts),nameLength:_.castOption(Ce.namelength,G.pts),textAlign:_.castOption(Ce.align,G.pts),hovertemplate:_.castOption(Y.hovertemplate,G.pts),hovertemplateLabels:G,eventData:[x(G,Y)]},{container:X._hoverlayer.node(),outerContainer:X._paper.node(),gd:q,inOut_bbox:ce}),G.bbox=ce[0],K._hasHoverLabel=!0}K._hasHoverEvent=!0,q.emit("plotly_hover",{points:[x(G,Y)],event:l.event})}}),L.on("mouseout",function(G){var X=q._fullLayout,Y=q._fullData[K.index],re=l.select(this).datum();K._hasHoverEvent&&(G.originalEvent=l.event,q.emit("plotly_unhover",{points:[x(re,Y)],event:l.event}),K._hasHoverEvent=!1),K._hasHoverLabel&&(u.loneUnhover(X._hoverlayer.node()),K._hasHoverLabel=!1)}),L.on("click",function(G){var X=q._fullLayout,Y=q._fullData[K.index];q._dragging||X.hovermode===!1||(q._hoverdata=[x(G,Y)],u.click(q,l.event))})}function S(L,q,U){var J=_.castOption(L.insidetextfont.color,q.pts);!J&&L._input.textfont&&(J=_.castOption(L._input.textfont.color,q.pts));var te=_.castOption(L.insidetextfont.family,q.pts)||_.castOption(L.textfont.family,q.pts)||U.family,ee=_.castOption(L.insidetextfont.size,q.pts)||_.castOption(L.textfont.size,q.pts)||U.size;return{color:J||f.contrast(q.color),family:te,size:ee}}function M(L,q){for(var U,J,te=0;tewe&&we>Pe||ke=-4;_e-=2)Me(Math.PI*_e,"tan");for(_e=4;_e>=-4;_e-=2)Me(Math.PI*(_e+1),"tan")}if(re||le){for(_e=4;_e>=-4;_e-=2)Me(Math.PI*(_e+1.5),"rad");for(_e=4;_e>=-4;_e-=2)Me(Math.PI*(_e+.5),"rad")}}if(Q||se||re){var Ce=Math.sqrt(L.width*L.width+L.height*L.height);if((ee={scale:te*J*2/Ce,rCenter:1-te,rotate:0}).textPosAngle=(q.startangle+q.stopangle)/2,ee.scale>=1)return ee;he.push(ee)}(se||le)&&((ee=A(L,J,K,G,X)).textPosAngle=(q.startangle+q.stopangle)/2,he.push(ee)),(se||ie)&&((ee=D(L,J,K,G,X)).textPosAngle=(q.startangle+q.stopangle)/2,he.push(ee));for(var Se=0,ce=0,ye=0;ye=1)break}return he[Se]}function A(L,q,U,J,te){q=Math.max(0,q-2*w);var ee=L.width/L.height,K=$(ee,J,q,U);return{scale:2*K/L.height,rCenter:O(ee,K/q),rotate:R(te)}}function D(L,q,U,J,te){q=Math.max(0,q-2*w);var ee=L.height/L.width,K=$(ee,J,q,U);return{scale:2*K/L.width,rCenter:O(ee,K/q),rotate:R(te+Math.PI/2)}}function O(L,q){return Math.cos(q)-L*q}function R(L){return(180/Math.PI*L+720)%180-90}function $(L,q,U,J){var te=L+1/(2*Math.tan(q));return U*Math.min(1/(Math.sqrt(te*te+.5)+te),J/(Math.sqrt(L*L+J/2)+L))}function P(L,q){return L.v!==q.vTotal||q.trace.hole?Math.min(1/(1+1/Math.sin(L.halfangle)),L.ring/2):1}function z(L,q){var U=q.pxmid[0],J=q.pxmid[1],te=L.width/2,ee=L.height/2;return U<0&&(te*=-1),J<0&&(ee*=-1),{scale:1,rCenter:1,rotate:0,x:te+Math.abs(ee)*(te>0?1:-1)/2,y:ee/(1+U*U/(J*J)),outside:!0}}function B(L,q){var U,J,te,ee=L.trace,K={x:L.cx,y:L.cy},Q={tx:0,ty:0};Q.ty+=ee.title.font.size,te=j(ee),ee.title.position.indexOf("top")!==-1?(K.y-=(1+te)*L.r,Q.ty-=L.titleBox.height):ee.title.position.indexOf("bottom")!==-1&&(K.y+=(1+te)*L.r);var G,X=L.r/((G=L.trace.aspectratio)===void 0?1:G),Y=q.w*(ee.domain.x[1]-ee.domain.x[0])/2;return ee.title.position.indexOf("left")!==-1?(Y+=X,K.x-=(1+te)*X,Q.tx+=L.titleBox.width/2):ee.title.position.indexOf("center")!==-1?Y*=2:ee.title.position.indexOf("right")!==-1&&(Y+=X,K.x+=(1+te)*X,Q.tx-=L.titleBox.width/2),U=Y/L.titleBox.width,J=N(L,q)/L.titleBox.height,{x:K.x,y:K.y,scale:Math.min(U,J),tx:Q.tx,ty:Q.ty}}function N(L,q){var U=L.trace,J=q.h*(U.domain.y[1]-U.domain.y[0]);return Math.min(L.titleBox.height,J/2)}function j(L){var q,U=L.pull;if(!U)return 0;if(Array.isArray(U))for(U=0,q=0;qU&&(U=L.pull[q]);return U}function F(L,q){for(var U=[],J=0;J1?ye=(ce=le.r)/he.aspectratio:ce=(ye=le.r)*he.aspectratio,Se=(ce*=(1+he.baseratio)/2)*ye}Me=Math.min(Me,Se/le.vTotal)}for(se=0;se")}if(ee){var _e=p.castOption(te,q.i,"texttemplate");if(_e){var Me=function(Se){return{label:Se.label,value:Se.v,valueLabel:_.formatPieValue(Se.v,J.separators),percent:Se.v/U.vTotal,percentLabel:_.formatPiePercent(Se.v/U.vTotal,J.separators),color:Se.color,text:Se.text,customdata:p.castOption(te,Se.i,"customdata")}}(q),Ce=_.getFirstFilled(te.text,q.pts);(k(Ce)||Ce==="")&&(Me.text=Ce),q.text=p.texttemplateString(_e,Me,L._fullLayout._d3locale,Me,te._meta||{})}else q.text=""}}function H(L,q){var U=L.rotate*Math.PI/180,J=Math.cos(U),te=Math.sin(U),ee=(q.left+q.right)/2,K=(q.top+q.bottom)/2;L.textX=ee*J-K*te,L.textY=ee*te+K*J,L.noCenter=!0}o.exports={plot:function(L,q){var U=L._context.staticPlot,J=L._fullLayout,te=J._size;b("pie",J),M(q,L),F(q,te);var ee=p.makeTraceGroups(J._pielayer,q,"trace").each(function(K){var Q=l.select(this),G=K[0],X=G.trace;(function(Y){var re,ie,le,se=Y[0],he=se.r,_e=se.trace,Me=_.getRotationAngle(_e.rotation),Ce=2*Math.PI/se.vTotal,Se="px0",ce="px1";if(_e.direction==="counterclockwise"){for(re=0;rese.vTotal/2?1:0,ie.halfangle=Math.PI*Math.min(ie.v/se.vTotal,.5),ie.ring=1-_e.hole,ie.rInscribed=P(ie,se))})(K),Q.attr("stroke-linejoin","round"),Q.each(function(){var Y=l.select(this).selectAll("g.slice").data(K);Y.enter().append("g").classed("slice",!0),Y.exit().remove();var re=[[[],[]],[[],[]]],ie=!1;Y.each(function(ce,ye){if(ce.hidden)l.select(this).selectAll("path,g").remove();else{ce.pointNumber=ce.i,ce.curveNumber=X.index,re[ce.pxmid[1]<0?0:1][ce.pxmid[0]<0?0:1].push(ce);var V=G.cx,ne=G.cy,fe=l.select(this),xe=fe.selectAll("path.surface").data([ce]);if(xe.enter().append("path").classed("surface",!0).style({"pointer-events":U?"none":"all"}),fe.call(T,L,K),X.pull){var ue=+_.castOption(X.pull,ce.pts)||0;ue>0&&(V+=ue*ce.pxmid[0],ne+=ue*ce.pxmid[1])}ce.cxFinal=V,ce.cyFinal=ne;var ge=X.hole;if(ce.v===G.vTotal){var be="M"+(V+ce.px0[0])+","+(ne+ce.px0[1])+De(ce.px0,ce.pxmid,!0,1)+De(ce.pxmid,ce.px0,!0,1)+"Z";ge?xe.attr("d","M"+(V+ge*ce.px0[0])+","+(ne+ge*ce.px0[1])+De(ce.px0,ce.pxmid,!1,ge)+De(ce.pxmid,ce.px0,!1,ge)+"Z"+be):xe.attr("d",be)}else{var we=De(ce.px0,ce.px1,!0,1);if(ge){var ke=1-ge;xe.attr("d","M"+(V+ge*ce.px1[0])+","+(ne+ge*ce.px1[1])+De(ce.px1,ce.px0,!1,ge)+"l"+ke*ce.px0[0]+","+ke*ce.px0[1]+we+"Z")}else xe.attr("d","M"+V+","+ne+"l"+ce.px0[0]+","+ce.px0[1]+we+"Z")}W(L,ce,G);var Pe=_.castOption(X.textposition,ce.pts),Re=fe.selectAll("g.slicetext").data(ce.text&&Pe!=="none"?[0]:[]);Re.enter().append("g").classed("slicetext",!0),Re.exit().remove(),Re.each(function(){var Le=p.ensureSingle(l.select(this),"text","",function(ft){ft.attr("data-notex",1)}),Fe=p.ensureUniformFontSize(L,Pe==="outside"?function(ft,yt,ze){return{color:_.castOption(ft.outsidetextfont.color,yt.pts)||_.castOption(ft.textfont.color,yt.pts)||ze.color,family:_.castOption(ft.outsidetextfont.family,yt.pts)||_.castOption(ft.textfont.family,yt.pts)||ze.family,size:_.castOption(ft.outsidetextfont.size,yt.pts)||_.castOption(ft.textfont.size,yt.pts)||ze.size}}(X,ce,J.font):S(X,ce,J.font));Le.text(ce.text).attr({class:"slicetext",transform:"","text-anchor":"middle"}).call(d.font,Fe).call(y.convertToTspans,L);var Be,Ue=d.bBox(Le.node());if(Pe==="outside")Be=z(Ue,ce);else if(Be=C(Ue,ce,G),Pe==="auto"&&Be.scale<1){var qe=p.ensureUniformFontSize(L,X.outsidetextfont);Le.call(d.font,qe),Be=z(Ue=d.bBox(Le.node()),ce)}var Ye=Be.textPosAngle,at=Ye===void 0?ce.pxmid:E(G.r,Ye);if(Be.targetX=V+at[0]*Be.rCenter+(Be.x||0),Be.targetY=ne+at[1]*Be.rCenter+(Be.y||0),H(Be,Ue),Be.outside){var st=Be.targetY;ce.yLabelMin=st-Ue.height/2,ce.yLabelMid=st,ce.yLabelMax=st+Ue.height/2,ce.labelExtraX=0,ce.labelExtraY=0,ie=!0}Be.fontSize=Fe.size,g(X.type,Be,J),K[ye].transform=Be,p.setTransormAndDisplay(Le,Be)})}function De(Le,Fe,Be,Ue){var qe=Ue*(Fe[0]-Le[0]),Ye=Ue*(Fe[1]-Le[1]);return"a"+Ue*G.r+","+Ue*G.r+" 0 "+ce.largeArc+(Be?" 1 ":" 0 ")+qe+","+Ye}});var le=l.select(this).selectAll("g.titletext").data(X.title.text?[0]:[]);if(le.enter().append("g").classed("titletext",!0),le.exit().remove(),le.each(function(){var ce,ye=p.ensureSingle(l.select(this),"text","",function(ne){ne.attr("data-notex",1)}),V=X.title.text;X._meta&&(V=p.templateString(V,X._meta)),ye.text(V).attr({class:"titletext",transform:"","text-anchor":"middle"}).call(d.font,X.title.font).call(y.convertToTspans,L),ce=X.title.position==="middle center"?function(ne){var fe=Math.sqrt(ne.titleBox.width*ne.titleBox.width+ne.titleBox.height*ne.titleBox.height);return{x:ne.cx,y:ne.cy,scale:ne.trace.hole*ne.r*2/fe,tx:0,ty:-ne.titleBox.height/2+ne.trace.title.font.size}}(G):B(G,te),ye.attr("transform",m(ce.x,ce.y)+h(Math.min(1,ce.scale))+m(ce.tx,ce.ty))}),ie&&function(ce,ye){var V,ne,fe,xe,ue,ge,be,we,ke,Pe,Re,De,Le;function Fe(Ye,at){return Ye.pxmid[1]-at.pxmid[1]}function Be(Ye,at){return at.pxmid[1]-Ye.pxmid[1]}function Ue(Ye,at){at||(at={});var st,ft,yt,ze,Ne=at.labelExtraY+(ne?at.yLabelMax:at.yLabelMin),et=ne?Ye.yLabelMin:Ye.yLabelMax,it=ne?Ye.yLabelMax:Ye.yLabelMin,St=Ye.cyFinal+ue(Ye.px0[1],Ye.px1[1]),Ze=Ne-et;if(Ze*be>0&&(Ye.labelExtraY=Ze),Array.isArray(ye.pull))for(ft=0;ft=(_.castOption(ye.pull,yt.pts)||0)||((Ye.pxmid[1]-yt.pxmid[1])*be>0?(Ze=yt.cyFinal+ue(yt.px0[1],yt.px1[1])-et-Ye.labelExtraY)*be>0&&(Ye.labelExtraY+=Ze):(it+Ye.labelExtraY-St)*be>0&&(st=3*ge*Math.abs(ft-Pe.indexOf(Ye)),(ze=yt.cxFinal+xe(yt.px0[0],yt.px1[0])+st-(Ye.cxFinal+Ye.pxmid[0])-Ye.labelExtraX)*ge>0&&(Ye.labelExtraX+=ze)))}for(ne=0;ne<2;ne++)for(fe=ne?Fe:Be,ue=ne?Math.max:Math.min,be=ne?1:-1,V=0;V<2;V++){for(xe=V?Math.max:Math.min,ge=V?1:-1,(we=ce[ne][V]).sort(fe),ke=ce[1-ne][V],Pe=ke.concat(we),De=[],Re=0;ReMath.abs(we)?ue+="l"+we*V.pxmid[0]/V.pxmid[1]+","+we+"H"+(xe+V.labelExtraX+ge):ue+="l"+V.labelExtraX+","+be+"v"+(we-be)+"h"+ge}else ue+="V"+(V.yLabelMid+V.labelExtraY)+"h"+ge;p.ensureSingle(ne,"path","textline").call(f.stroke,ye.outsidetextfont.color).attr({"stroke-width":Math.min(2,ye.outsidetextfont.size/8),d:ue,fill:"none"})}else ne.select("path.textline").remove()})}(Y,X),ie&&X.automargin){var se=d.bBox(Q.node()),he=X.domain,_e=te.w*(he.x[1]-he.x[0]),Me=te.h*(he.y[1]-he.y[0]),Ce=(.5*_e-G.r)/te.w,Se=(.5*Me-G.r)/te.h;c.autoMargin(L,"pie."+X.uid+".automargin",{xl:he.x[0]-Ce,xr:he.x[1]+Ce,yb:he.y[0]-Se,yt:he.y[1]+Se,l:Math.max(G.cx-G.r-se.left,0),r:Math.max(se.right-(G.cx+G.r),0),b:Math.max(se.bottom-(G.cy+G.r),0),t:Math.max(G.cy-G.r-se.top,0),pad:5})}})});setTimeout(function(){ee.selectAll("tspan").each(function(){var K=l.select(this);K.attr("dy")&&K.attr("dy",K.attr("dy"))})},0)},formatSliceLabel:W,transformInsideText:C,determineInsideTextFont:S,positionTitleOutside:B,prerenderTitles:M,layoutAreas:F,attachFxHandlers:T,computeTransform:H}},68357:function(o,a,n){var l=n(39898),c=n(63463),u=n(72597).resizeText;o.exports=function(f){var d=f._fullLayout._pielayer.selectAll(".trace");u(f,d,"pie"),d.each(function(p){var h=p[0].trace,m=l.select(this);m.style({opacity:h.opacity}),m.selectAll("path.surface").each(function(y){l.select(this).call(c,y,h,f)})})}},63463:function(o,a,n){var l=n(7901),c=n(53581).castOption,u=n(22209);o.exports=function(f,d,p,h){var m=p.marker.line,y=c(m.color,d.pts)||l.defaultLine,v=c(m.width,d.pts)||0;f.call(u,d,p,h).style("stroke-width",v).call(l.stroke,y)}},75225:function(o,a,n){var l=n(71828);o.exports=function(c,u){for(var f=0;fS&&W[C].gap;)C--;for(D=W[C].s,M=W.length-1;M>C;M--)W[M].s=D;for(;SB[b]&&b=0;b--){var w=f[b];if(w.type==="scatter"&&w.xaxis===v.xaxis&&w.yaxis===v.yaxis){w.opacity=void 0;break}}}}}},17438:function(o,a,n){var l=n(71828),c=n(73972),u=n(82196),f=n(47581),d=n(34098),p=n(67513),h=n(73927),m=n(565),y=n(49508),v=n(11058),g=n(94039),b=n(82410),w=n(28908),_=n(71828).coercePattern;o.exports=function(x,k,T,S){function M(z,B){return l.coerce(x,k,u,z,B)}var C=p(x,k,S,M);if(C||(k.visible=!1),k.visible){h(x,k,S,M),M("xhoverformat"),M("yhoverformat");var A=m(x,k,S,M);S.scattermode==="group"&&k.orientation===void 0&&M("orientation","v");var D=!A&&C=Math.min(_e,Me)&&x<=Math.max(_e,Me)?0:1/0}var Ce=Math.max(3,he.mrc||0),Se=1-1/Ce,ce=Math.abs(w.c2p(he.x)-x);return ce=Math.min(_e,Me)&&k<=Math.max(_e,Me)?0:1/0}var Ce=Math.max(3,he.mrc||0),Se=1-1/Ce,ce=Math.abs(_.c2p(he.y)-k);return cele!=(ee=L[W][1])>=le&&(U=L[W-1][0],J=L[W][0],ee-te&&(q=U+(J-U)*(le-te)/(ee-te),X=Math.min(X,q),Y=Math.max(Y,q)));X=Math.max(X,0),Y=Math.min(Y,w._length);var se=d.defaultLine;return d.opacity(b.fillcolor)?se=b.fillcolor:d.opacity((b.line||{}).color)&&(se=b.line.color),l.extendFlat(h,{distance:h.maxHoverDistance,x0:X,x1:Y,y0:le,y1:le,color:se,hovertemplate:!1}),delete h.index,b.text&&!Array.isArray(b.text)?h.text=String(b.text):h.text=b.name,[h]}}}},67368:function(o,a,n){var l=n(34098);o.exports={hasLines:l.hasLines,hasMarkers:l.hasMarkers,hasText:l.hasText,isBubble:l.isBubble,attributes:n(82196),layoutAttributes:n(21479),supplyDefaults:n(17438),crossTraceDefaults:n(34936),supplyLayoutDefaults:n(79334),calc:n(47761).calc,crossTraceCalc:n(72626),arraysToCalcdata:n(75225),plot:n(32663),colorbar:n(4898),formatLabels:n(8225),style:n(16296).style,styleOnSelect:n(16296).styleOnSelect,hoverPoints:n(33720),selectPoints:n(98002),animatable:!0,moduleType:"trace",name:"scatter",basePlotModule:n(93612),categories:["cartesian","svg","symbols","errorBarsOK","showLegend","scatter-like","zoomScale"],meta:{}}},21479:function(o){o.exports={scattermode:{valType:"enumerated",values:["group","overlay"],dflt:"overlay",editType:"calc"},scattergap:{valType:"number",min:0,max:1,editType:"calc"}}},79334:function(o,a,n){var l=n(71828),c=n(21479);o.exports=function(u,f){var d,p=f.barmode==="group";f.scattermode==="group"&&(d=p?f.bargap:.2,l.coerce(u,f,c,"scattergap",d))}},11058:function(o,a,n){var l=n(71828).isArrayOrTypedArray,c=n(52075).hasColorscale,u=n(1586);o.exports=function(f,d,p,h,m,y){y||(y={});var v=(f.marker||{}).color;m("line.color",p),c(f,"line")?u(f,d,h,m,{prefix:"line.",cLetter:"c"}):m("line.color",!l(v)&&v||p),m("line.width"),y.noDash||m("line.dash"),y.backoff&&m("line.backoff")}},34621:function(o,a,n){var l=n(91424),c=n(50606),u=c.BADNUM,f=c.LOG_CLIP,d=f+.5,p=f-.5,h=n(71828),m=h.segmentsIntersect,y=h.constrain,v=n(47581);o.exports=function(g,b){var w,_,x,k,T,S,M,C,A,D,O,R,$,P,z,B,N,j,F=b.trace||{},E=b.xaxis,W=b.yaxis,H=E.type==="log",L=W.type==="log",q=E._length,U=W._length,J=b.backoff,te=F.marker,ee=b.connectGaps,K=b.baseTolerance,Q=b.shape,G=Q==="linear",X=F.fill&&F.fill!=="none",Y=[],re=v.minTolerance,ie=g.length,le=new Array(ie),se=0;function he(Ze){var ut=g[Ze];if(!ut)return!1;var gt=b.linearized?E.l2p(ut.x):E.c2p(ut.x),Rt=b.linearized?W.l2p(ut.y):W.c2p(ut.y);if(gt===u){if(H&&(gt=E.c2p(ut.x,!0)),gt===u)return!1;L&&Rt===u&&(gt*=Math.abs(E._m*U*(E._m>0?d:p)/(W._m*q*(W._m>0?d:p)))),gt*=1e3}if(Rt===u){if(L&&(Rt=W.c2p(ut.y,!0)),Rt===u)return!1;Rt*=1e3}return[gt,Rt]}function _e(Ze,ut,gt,Rt){var Mt=gt-Ze,Bt=Rt-ut,Tt=.5-Ze,ve=.5-ut,Te=Mt*Mt+Bt*Bt,Ve=Mt*Tt+Bt*ve;if(Ve>0&&Vebe||Ze[1]ke)return[y(Ze[0],ge,be),y(Ze[1],we,ke)]}function De(Ze,ut){return Ze[0]===ut[0]&&(Ze[0]===ge||Ze[0]===be)||Ze[1]===ut[1]&&(Ze[1]===we||Ze[1]===ke)||void 0}function Le(Ze,ut,gt){return function(Rt,Mt){var Bt=Re(Rt),Tt=Re(Mt),ve=[];if(Bt&&Tt&&De(Bt,Tt))return ve;Bt&&ve.push(Bt),Tt&&ve.push(Tt);var Te=2*h.constrain((Rt[Ze]+Mt[Ze])/2,ut,gt)-((Bt||Rt)[Ze]+(Tt||Mt)[Ze]);return Te&&((Bt&&Tt?Te>0==Bt[Ze]>Tt[Ze]?Bt:Tt:Bt||Tt)[Ze]+=Te),ve}}function Fe(Ze){var ut=Ze[0],gt=Ze[1],Rt=ut===le[se-1][0],Mt=gt===le[se-1][1];if(!Rt||!Mt)if(se>1){var Bt=ut===le[se-2][0],Tt=gt===le[se-2][1];Rt&&(ut===ge||ut===be)&&Bt?Tt?se--:le[se-1]=Ze:Mt&&(gt===we||gt===ke)&&Tt?Bt?se--:le[se-1]=Ze:le[se++]=Ze}else le[se++]=Ze}function Be(Ze){le[se-1][0]!==Ze[0]&&le[se-1][1]!==Ze[1]&&Fe([ye,V]),Fe(Ze),ne=null,ye=V=0}Q==="linear"||Q==="spline"?xe=function(Ze,ut){for(var gt=[],Rt=0,Mt=0;Mt<4;Mt++){var Bt=Pe[Mt],Tt=m(Ze[0],Ze[1],ut[0],ut[1],Bt[0],Bt[1],Bt[2],Bt[3]);Tt&&(!Rt||Math.abs(Tt.x-gt[0][0])>1||Math.abs(Tt.y-gt[0][1])>1)&&(Tt=[Tt.x,Tt.y],Rt&&Ce(Tt,Ze)be?be:0,ce=Ze[1]ke?ke:0,Se||ce){if(se)if(ne){var ut=xe(ne,Ze);ut.length>1&&(Be(ut[0]),le[se++]=ut[1])}else fe=xe(le[se-1],Ze)[0],le[se++]=fe;else le[se++]=[Se||Ze[0],ce||Ze[1]];var gt=le[se-1];Se&&ce&&(gt[0]!==Se||gt[1]!==ce)?(ne&&(ye!==Se&&V!==ce?Fe(ye&&V?(Rt=ne,Bt=(Mt=Ze)[0]-Rt[0],Tt=(Mt[1]-Rt[1])/Bt,(Rt[1]*Mt[0]-Mt[1]*Rt[0])/Bt>0?[Tt>0?ge:be,ke]:[Tt>0?be:ge,we]):[ye||Se,V||ce]):ye&&V&&Fe([ye,V])),Fe([Se,ce])):ye-Se&&V-ce&&Fe([Se||ye,ce||V]),ne=Ze,ye=Se,V=ce}else ne&&Be(xe(ne,Ze)[0]),le[se++]=Ze;var Rt,Mt,Bt,Tt}for(w=0;wMe(S,Ye))break;x=S,($=A[0]*C[0]+A[1]*C[1])>O?(O=$,k=S,M=!1):$=g.length||!S)break;qe(S),_=S}}else qe(k)}ne&&Fe([ye||ne[0],V||ne[1]]),Y.push(le.slice(0,se))}var at=Q.slice(Q.length-1);if(J&&at!=="h"&&at!=="v"){for(var st=!1,ft=-1,yt=[],ze=0;ze=0?h=b:(h=b=g,g++),h0?Math.max(y,p):0}}},4898:function(o){o.exports={container:"marker",min:"cmin",max:"cmax"}},49508:function(o,a,n){var l=n(7901),c=n(52075).hasColorscale,u=n(1586),f=n(34098);o.exports=function(d,p,h,m,y,v){var g=f.isBubble(d),b=(d.line||{}).color;v=v||{},b&&(h=b),y("marker.symbol"),y("marker.opacity",g?.7:1),y("marker.size"),v.noAngle||(y("marker.angle"),v.noAngleRef||y("marker.angleref"),v.noStandOff||y("marker.standoff")),y("marker.color",h),c(d,"marker")&&u(d,p,m,y,{prefix:"marker.",cLetter:"c"}),v.noSelect||(y("selected.marker.color"),y("unselected.marker.color"),y("selected.marker.size"),y("unselected.marker.size")),v.noLine||(y("marker.line.color",b&&!Array.isArray(b)&&p.marker.color!==b?b:g?l.background:l.defaultLine),c(d,"marker.line")&&u(d,p,m,y,{prefix:"marker.line.",cLetter:"c"}),y("marker.line.width",g?1:0)),g&&(y("marker.sizeref"),y("marker.sizemin"),y("marker.sizemode")),v.gradient&&y("marker.gradient.type")!=="none"&&y("marker.gradient.color")}},73927:function(o,a,n){var l=n(71828).dateTick0,c=n(50606).ONEWEEK;function u(f,d){return l(d,f%c==0?1:0)}o.exports=function(f,d,p,h,m){if(m||(m={x:!0,y:!0}),m.x){var y=h("xperiod");y&&(h("xperiod0",u(y,d.xcalendar)),h("xperiodalignment"))}if(m.y){var v=h("yperiod");v&&(h("yperiod0",u(v,d.ycalendar)),h("yperiodalignment"))}}},32663:function(o,a,n){var l=n(39898),c=n(73972),u=n(71828),f=u.ensureSingle,d=u.identity,p=n(91424),h=n(34098),m=n(34621),y=n(68687),v=n(61082).tester;function g(b,w,_,x,k,T,S){var M,C=b._context.staticPlot;(function(xe,ue,ge,be,we){var ke=ge.xaxis,Pe=ge.yaxis,Re=l.extent(u.simpleMap(ke.range,ke.r2c)),De=l.extent(u.simpleMap(Pe.range,Pe.r2c)),Le=be[0].trace;if(h.hasMarkers(Le)){var Fe=Le.marker.maxdisplayed;if(Fe!==0){var Be=be.filter(function(at){return at.x>=Re[0]&&at.x<=Re[1]&&at.y>=De[0]&&at.y<=De[1]}),Ue=Math.ceil(Be.length/Fe),qe=0;we.forEach(function(at,st){var ft=at[0].trace;h.hasMarkers(ft)&&ft.marker.maxdisplayed>0&&st0;function D(xe){return A?xe.transition():xe}var O=_.xaxis,R=_.yaxis,$=x[0].trace,P=$.line,z=l.select(T),B=f(z,"g","errorbars"),N=f(z,"g","lines"),j=f(z,"g","points"),F=f(z,"g","text");if(c.getComponentMethod("errorbars","plot")(b,B,_,S),$.visible===!0){var E,W;D(z).style("opacity",$.opacity);var H=$.fill.charAt($.fill.length-1);H!=="x"&&H!=="y"&&(H=""),x[0][_.isRangePlot?"nodeRangePlot3":"node3"]=z;var L,q,U="",J=[],te=$._prevtrace;te&&(U=te._prevRevpath||"",W=te._nextFill,J=te._polygons);var ee,K,Q,G,X,Y,re,ie="",le="",se=[],he=u.noop;if(E=$._ownFill,h.hasLines($)||$.fill!=="none"){for(W&&W.datum(x),["hv","vh","hvh","vhv"].indexOf(P.shape)!==-1?(ee=p.steps(P.shape),K=p.steps(P.shape.split("").reverse().join(""))):ee=K=P.shape==="spline"?function(xe){var ue=xe[xe.length-1];return xe.length>1&&xe[0][0]===ue[0]&&xe[0][1]===ue[1]?p.smoothclosed(xe.slice(1),P.smoothing):p.smoothopen(xe,P.smoothing)}:function(xe){return"M"+xe.join("L")},Q=function(xe){return K(xe.reverse())},se=m(x,{xaxis:O,yaxis:R,trace:$,connectGaps:$.connectgaps,baseTolerance:Math.max(P.width||1,3)/4,shape:P.shape,backoff:P.backoff,simplify:P.simplify,fill:$.fill}),re=$._polygons=new Array(se.length),M=0;M0,D=y(b,w,_);(S=x.selectAll("g.trace").data(D,function(O){return O[0].trace.uid})).enter().append("g").attr("class",function(O){return"trace scatter trace"+O[0].trace.uid}).style("stroke-miterlimit",2),S.order(),function(O,R,$){R.each(function(P){var z=f(l.select(this),"g","fills");p.setClipUrl(z,$.layerClipId,O);var B=P[0].trace,N=[];B._ownfill&&N.push("_ownFill"),B._nexttrace&&N.push("_nextFill");var j=z.selectAll("g").data(N,d);j.enter().append("g"),j.exit().each(function(F){B[F]=null}).remove(),j.order().each(function(F){B[F]=f(l.select(this),"path","js-fill")})})}(b,S,w),A?(T&&(M=T()),l.transition().duration(k.duration).ease(k.easing).each("end",function(){M&&M()}).each("interrupt",function(){M&&M()}).each(function(){x.selectAll("g.trace").each(function(O,R){g(b,R,w,O,D,this,k)})})):S.each(function(O,R){g(b,R,w,O,D,this,k)}),C&&S.exit().remove(),x.selectAll("path:not([d])").remove()}},98002:function(o,a,n){var l=n(34098);o.exports=function(c,u){var f,d,p,h,m=c.cd,y=c.xaxis,v=c.yaxis,g=[],b=m[0].trace;if(!l.hasMarkers(b)&&!l.hasText(b))return[];if(u===!1)for(f=0;f"),h.hovertemplate=w.hovertemplate,p}function C(A,D){S.push(A._hovertitle+": "+D)}}},52979:function(o,a,n){o.exports={attributes:n(50413),supplyDefaults:n(46008),colorbar:n(4898),formatLabels:n(93645),calc:n(54337),plot:n(7507),style:n(16296).style,styleOnSelect:n(16296).styleOnSelect,hoverPoints:n(47250),selectPoints:n(98002),eventData:n(4524),moduleType:"trace",name:"scatterternary",basePlotModule:n(61639),categories:["ternary","symbols","showLegend","scatter-like"],meta:{}}},7507:function(o,a,n){var l=n(32663);o.exports=function(c,u,f){var d=u.plotContainer;d.select(".scatterlayer").selectAll("*").remove();for(var p=u.xaxis,h=u.yaxis,m={xaxis:p,yaxis:h,plot:d,layerClipId:u._hasClipOnAxisFalse?u.clipIdRelative:null},y=u.layers.frontplot.select("g.scatterlayer"),v=0;v0){var A,D,O,R,$,P=p.xa,z=p.ya;x.orientation==="h"?($=h,A="y",O=z,D="x",R=P):($=m,A="x",O=P,D="y",R=z);var B=_[p.index];if($>=B.span[0]&&$<=B.span[1]){var N=c.extendFlat({},p),j=R.c2p($,!0),F=d.getKdeValue(B,x,$),E=d.getPositionOnKdePath(B,x,j),W=O._offset,H=O._length;N[A+"0"]=E[0],N[A+"1"]=E[1],N[D+"0"]=N[D+"1"]=j,N[D+"Label"]=D+": "+u.hoverLabelText(R,$,x[D+"hoverformat"])+", "+_[0].t.labels.kde+" "+F.toFixed(3);for(var L=0,q=0;qj&&(j=H,F=W)}}return j?P(F):d};case"rms":return function(z,B){for(var N=0,j=0,F=0;F":return function(J){return U(J)>L};case">=":return function(J){return U(J)>=L};case"[]":return function(J){var te=U(J);return te>=L[0]&&te<=L[1]};case"()":return function(J){var te=U(J);return te>L[0]&&te=L[0]&&teL[0]&&te<=L[1]};case"][":return function(J){var te=U(J);return te<=L[0]||te>=L[1]};case")(":return function(J){var te=U(J);return teL[1]};case"](":return function(J){var te=U(J);return te<=L[0]||te>L[1]};case")[":return function(J){var te=U(J);return te=L[1]};case"{}":return function(J){return L.indexOf(U(J))!==-1};case"}{":return function(J){return L.indexOf(U(J))===-1}}}(g,u.getDataToCoordFunc(y,v,w,b),x),D={},O={},R=0;T?(M=function(B){D[B.astr]=l.extendDeep([],B.get()),B.set(new Array(_))},C=function(B,N){var j=D[B.astr][N];B.get()[N]=j}):(M=function(B){D[B.astr]=l.extendDeep([],B.get()),B.set([])},C=function(B,N){var j=D[B.astr][N];B.get().push(j)}),z(M);for(var $=f(v.transforms,g),P=0;P<_;P++)A(b[P])?(z(C,P),O[R++]=$(P)):T&&R++;g._indexToPoints=O,v._length=R}}function z(B,N){for(var j=0;j1?"%{group} (%{trace})":"%{group}");var b=p.styles,w=v.styles=[];if(b)for(y=0;yy)throw new RangeError('The value "'+V+'" is invalid for option "size"');var ne=new Uint8Array(V);return Object.setPrototypeOf(ne,g.prototype),ne}function g(V,ne,fe){if(typeof V=="number"){if(typeof ne=="string")throw new TypeError('The "string" argument must be of type string. Received type number');return _(V)}return b(V,ne,fe)}function b(V,ne,fe){if(typeof V=="string")return function(ge,be){if(typeof be=="string"&&be!==""||(be="utf8"),!g.isEncoding(be))throw new TypeError("Unknown encoding: "+be);var we=0|S(ge,be),ke=v(we),Pe=ke.write(ge,be);return Pe!==we&&(ke=ke.slice(0,Pe)),ke}(V,ne);if(ArrayBuffer.isView(V))return function(ge){if(Me(ge,Uint8Array)){var be=new Uint8Array(ge);return k(be.buffer,be.byteOffset,be.byteLength)}return x(ge)}(V);if(V==null)throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+d(V));if(Me(V,ArrayBuffer)||V&&Me(V.buffer,ArrayBuffer)||typeof SharedArrayBuffer<"u"&&(Me(V,SharedArrayBuffer)||V&&Me(V.buffer,SharedArrayBuffer)))return k(V,ne,fe);if(typeof V=="number")throw new TypeError('The "value" argument must not be of type number. Received type number');var xe=V.valueOf&&V.valueOf();if(xe!=null&&xe!==V)return g.from(xe,ne,fe);var ue=function(ge){if(g.isBuffer(ge)){var be=0|T(ge.length),we=v(be);return we.length===0||ge.copy(we,0,0,be),we}return ge.length!==void 0?typeof ge.length!="number"||Ce(ge.length)?v(0):x(ge):ge.type==="Buffer"&&Array.isArray(ge.data)?x(ge.data):void 0}(V);if(ue)return ue;if(typeof Symbol<"u"&&Symbol.toPrimitive!=null&&typeof V[Symbol.toPrimitive]=="function")return g.from(V[Symbol.toPrimitive]("string"),ne,fe);throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+d(V))}function w(V){if(typeof V!="number")throw new TypeError('"size" argument must be of type number');if(V<0)throw new RangeError('The value "'+V+'" is invalid for option "size"')}function _(V){return w(V),v(V<0?0:0|T(V))}function x(V){for(var ne=V.length<0?0:0|T(V.length),fe=v(ne),xe=0;xe=y)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+y.toString(16)+" bytes");return 0|V}function S(V,ne){if(g.isBuffer(V))return V.length;if(ArrayBuffer.isView(V)||Me(V,ArrayBuffer))return V.byteLength;if(typeof V!="string")throw new TypeError('The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type '+d(V));var fe=V.length,xe=arguments.length>2&&arguments[2]===!0;if(!xe&&fe===0)return 0;for(var ue=!1;;)switch(ne){case"ascii":case"latin1":case"binary":return fe;case"utf8":case"utf-8":return se(V).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*fe;case"hex":return fe>>>1;case"base64":return he(V).length;default:if(ue)return xe?-1:se(V).length;ne=(""+ne).toLowerCase(),ue=!0}}function M(V,ne,fe){var xe=!1;if((ne===void 0||ne<0)&&(ne=0),ne>this.length||((fe===void 0||fe>this.length)&&(fe=this.length),fe<=0)||(fe>>>=0)<=(ne>>>=0))return"";for(V||(V="utf8");;)switch(V){case"hex":return W(this,ne,fe);case"utf8":case"utf-8":return N(this,ne,fe);case"ascii":return F(this,ne,fe);case"latin1":case"binary":return E(this,ne,fe);case"base64":return B(this,ne,fe);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return H(this,ne,fe);default:if(xe)throw new TypeError("Unknown encoding: "+V);V=(V+"").toLowerCase(),xe=!0}}function C(V,ne,fe){var xe=V[ne];V[ne]=V[fe],V[fe]=xe}function A(V,ne,fe,xe,ue){if(V.length===0)return-1;if(typeof fe=="string"?(xe=fe,fe=0):fe>2147483647?fe=2147483647:fe<-2147483648&&(fe=-2147483648),Ce(fe=+fe)&&(fe=ue?0:V.length-1),fe<0&&(fe=V.length+fe),fe>=V.length){if(ue)return-1;fe=V.length-1}else if(fe<0){if(!ue)return-1;fe=0}if(typeof ne=="string"&&(ne=g.from(ne,xe)),g.isBuffer(ne))return ne.length===0?-1:D(V,ne,fe,xe,ue);if(typeof ne=="number")return ne&=255,typeof Uint8Array.prototype.indexOf=="function"?ue?Uint8Array.prototype.indexOf.call(V,ne,fe):Uint8Array.prototype.lastIndexOf.call(V,ne,fe):D(V,[ne],fe,xe,ue);throw new TypeError("val must be string, number or Buffer")}function D(V,ne,fe,xe,ue){var ge,be=1,we=V.length,ke=ne.length;if(xe!==void 0&&((xe=String(xe).toLowerCase())==="ucs2"||xe==="ucs-2"||xe==="utf16le"||xe==="utf-16le")){if(V.length<2||ne.length<2)return-1;be=2,we/=2,ke/=2,fe/=2}function Pe(Fe,Be){return be===1?Fe[Be]:Fe.readUInt16BE(Be*be)}if(ue){var Re=-1;for(ge=fe;gewe&&(fe=we-ke),ge=fe;ge>=0;ge--){for(var De=!0,Le=0;Leue&&(xe=ue):xe=ue;var ge,be=ne.length;for(xe>be/2&&(xe=be/2),ge=0;ge>8,ke=be%256,Pe.push(ke),Pe.push(we);return Pe}(ne,V.length-fe),V,fe,xe)}function B(V,ne,fe){return ne===0&&fe===V.length?p.fromByteArray(V):p.fromByteArray(V.slice(ne,fe))}function N(V,ne,fe){fe=Math.min(V.length,fe);for(var xe=[],ue=ne;ue239?4:ge>223?3:ge>191?2:1;if(ue+we<=fe){var ke=void 0,Pe=void 0,Re=void 0,De=void 0;switch(we){case 1:ge<128&&(be=ge);break;case 2:(192&(ke=V[ue+1]))==128&&(De=(31&ge)<<6|63&ke)>127&&(be=De);break;case 3:ke=V[ue+1],Pe=V[ue+2],(192&ke)==128&&(192&Pe)==128&&(De=(15&ge)<<12|(63&ke)<<6|63&Pe)>2047&&(De<55296||De>57343)&&(be=De);break;case 4:ke=V[ue+1],Pe=V[ue+2],Re=V[ue+3],(192&ke)==128&&(192&Pe)==128&&(192&Re)==128&&(De=(15&ge)<<18|(63&ke)<<12|(63&Pe)<<6|63&Re)>65535&&De<1114112&&(be=De)}}be===null?(be=65533,we=1):be>65535&&(be-=65536,xe.push(be>>>10&1023|55296),be=56320|1023&be),xe.push(be),ue+=we}return function(Le){var Fe=Le.length;if(Fe<=j)return String.fromCharCode.apply(String,Le);for(var Be="",Ue=0;Ue"u"||typeof console.error!="function"||console.error("This browser lacks typed array (Uint8Array) support which is required by `buffer` v5.x. Use `buffer` v4.x if you require old browser support."),Object.defineProperty(g.prototype,"parent",{enumerable:!0,get:function(){if(g.isBuffer(this))return this.buffer}}),Object.defineProperty(g.prototype,"offset",{enumerable:!0,get:function(){if(g.isBuffer(this))return this.byteOffset}}),g.poolSize=8192,g.from=function(V,ne,fe){return b(V,ne,fe)},Object.setPrototypeOf(g.prototype,Uint8Array.prototype),Object.setPrototypeOf(g,Uint8Array),g.alloc=function(V,ne,fe){return function(xe,ue,ge){return w(xe),xe<=0?v(xe):ue!==void 0?typeof ge=="string"?v(xe).fill(ue,ge):v(xe).fill(ue):v(xe)}(V,ne,fe)},g.allocUnsafe=function(V){return _(V)},g.allocUnsafeSlow=function(V){return _(V)},g.isBuffer=function(V){return V!=null&&V._isBuffer===!0&&V!==g.prototype},g.compare=function(V,ne){if(Me(V,Uint8Array)&&(V=g.from(V,V.offset,V.byteLength)),Me(ne,Uint8Array)&&(ne=g.from(ne,ne.offset,ne.byteLength)),!g.isBuffer(V)||!g.isBuffer(ne))throw new TypeError('The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array');if(V===ne)return 0;for(var fe=V.length,xe=ne.length,ue=0,ge=Math.min(fe,xe);uexe.length?(g.isBuffer(ge)||(ge=g.from(ge)),ge.copy(xe,ue)):Uint8Array.prototype.set.call(xe,ge,ue);else{if(!g.isBuffer(ge))throw new TypeError('"list" argument must be an Array of Buffers');ge.copy(xe,ue)}ue+=ge.length}return xe},g.byteLength=S,g.prototype._isBuffer=!0,g.prototype.swap16=function(){var V=this.length;if(V%2!=0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(var ne=0;nene&&(V+=" ... "),""},m&&(g.prototype[m]=g.prototype.inspect),g.prototype.compare=function(V,ne,fe,xe,ue){if(Me(V,Uint8Array)&&(V=g.from(V,V.offset,V.byteLength)),!g.isBuffer(V))throw new TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+d(V));if(ne===void 0&&(ne=0),fe===void 0&&(fe=V?V.length:0),xe===void 0&&(xe=0),ue===void 0&&(ue=this.length),ne<0||fe>V.length||xe<0||ue>this.length)throw new RangeError("out of range index");if(xe>=ue&&ne>=fe)return 0;if(xe>=ue)return-1;if(ne>=fe)return 1;if(this===V)return 0;for(var ge=(ue>>>=0)-(xe>>>=0),be=(fe>>>=0)-(ne>>>=0),we=Math.min(ge,be),ke=this.slice(xe,ue),Pe=V.slice(ne,fe),Re=0;Re>>=0,isFinite(fe)?(fe>>>=0,xe===void 0&&(xe="utf8")):(xe=fe,fe=void 0)}var ue=this.length-ne;if((fe===void 0||fe>ue)&&(fe=ue),V.length>0&&(fe<0||ne<0)||ne>this.length)throw new RangeError("Attempt to write outside buffer bounds");xe||(xe="utf8");for(var ge=!1;;)switch(xe){case"hex":return O(this,V,ne,fe);case"utf8":case"utf-8":return R(this,V,ne,fe);case"ascii":case"latin1":case"binary":return $(this,V,ne,fe);case"base64":return P(this,V,ne,fe);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return z(this,V,ne,fe);default:if(ge)throw new TypeError("Unknown encoding: "+xe);xe=(""+xe).toLowerCase(),ge=!0}},g.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};var j=4096;function F(V,ne,fe){var xe="";fe=Math.min(V.length,fe);for(var ue=ne;uexe)&&(fe=xe);for(var ue="",ge=ne;gefe)throw new RangeError("Trying to access beyond buffer length")}function q(V,ne,fe,xe,ue,ge){if(!g.isBuffer(V))throw new TypeError('"buffer" argument must be a Buffer instance');if(ne>ue||neV.length)throw new RangeError("Index out of range")}function U(V,ne,fe,xe,ue){Y(ne,xe,ue,V,fe,7);var ge=Number(ne&BigInt(4294967295));V[fe++]=ge,ge>>=8,V[fe++]=ge,ge>>=8,V[fe++]=ge,ge>>=8,V[fe++]=ge;var be=Number(ne>>BigInt(32)&BigInt(4294967295));return V[fe++]=be,be>>=8,V[fe++]=be,be>>=8,V[fe++]=be,be>>=8,V[fe++]=be,fe}function J(V,ne,fe,xe,ue){Y(ne,xe,ue,V,fe,7);var ge=Number(ne&BigInt(4294967295));V[fe+7]=ge,ge>>=8,V[fe+6]=ge,ge>>=8,V[fe+5]=ge,ge>>=8,V[fe+4]=ge;var be=Number(ne>>BigInt(32)&BigInt(4294967295));return V[fe+3]=be,be>>=8,V[fe+2]=be,be>>=8,V[fe+1]=be,be>>=8,V[fe]=be,fe+8}function te(V,ne,fe,xe,ue,ge){if(fe+xe>V.length)throw new RangeError("Index out of range");if(fe<0)throw new RangeError("Index out of range")}function ee(V,ne,fe,xe,ue){return ne=+ne,fe>>>=0,ue||te(V,0,fe,4),h.write(V,ne,fe,xe,23,4),fe+4}function K(V,ne,fe,xe,ue){return ne=+ne,fe>>>=0,ue||te(V,0,fe,8),h.write(V,ne,fe,xe,52,8),fe+8}g.prototype.slice=function(V,ne){var fe=this.length;(V=~~V)<0?(V+=fe)<0&&(V=0):V>fe&&(V=fe),(ne=ne===void 0?fe:~~ne)<0?(ne+=fe)<0&&(ne=0):ne>fe&&(ne=fe),ne>>=0,ne>>>=0,fe||L(V,ne,this.length);for(var xe=this[V],ue=1,ge=0;++ge>>=0,ne>>>=0,fe||L(V,ne,this.length);for(var xe=this[V+--ne],ue=1;ne>0&&(ue*=256);)xe+=this[V+--ne]*ue;return xe},g.prototype.readUint8=g.prototype.readUInt8=function(V,ne){return V>>>=0,ne||L(V,1,this.length),this[V]},g.prototype.readUint16LE=g.prototype.readUInt16LE=function(V,ne){return V>>>=0,ne||L(V,2,this.length),this[V]|this[V+1]<<8},g.prototype.readUint16BE=g.prototype.readUInt16BE=function(V,ne){return V>>>=0,ne||L(V,2,this.length),this[V]<<8|this[V+1]},g.prototype.readUint32LE=g.prototype.readUInt32LE=function(V,ne){return V>>>=0,ne||L(V,4,this.length),(this[V]|this[V+1]<<8|this[V+2]<<16)+16777216*this[V+3]},g.prototype.readUint32BE=g.prototype.readUInt32BE=function(V,ne){return V>>>=0,ne||L(V,4,this.length),16777216*this[V]+(this[V+1]<<16|this[V+2]<<8|this[V+3])},g.prototype.readBigUInt64LE=ce(function(V){re(V>>>=0,"offset");var ne=this[V],fe=this[V+7];ne!==void 0&&fe!==void 0||ie(V,this.length-8);var xe=ne+this[++V]*Math.pow(2,8)+this[++V]*Math.pow(2,16)+this[++V]*Math.pow(2,24),ue=this[++V]+this[++V]*Math.pow(2,8)+this[++V]*Math.pow(2,16)+fe*Math.pow(2,24);return BigInt(xe)+(BigInt(ue)<>>=0,"offset");var ne=this[V],fe=this[V+7];ne!==void 0&&fe!==void 0||ie(V,this.length-8);var xe=ne*Math.pow(2,24)+this[++V]*Math.pow(2,16)+this[++V]*Math.pow(2,8)+this[++V],ue=this[++V]*Math.pow(2,24)+this[++V]*Math.pow(2,16)+this[++V]*Math.pow(2,8)+fe;return(BigInt(xe)<>>=0,ne>>>=0,fe||L(V,ne,this.length);for(var xe=this[V],ue=1,ge=0;++ge=(ue*=128)&&(xe-=Math.pow(2,8*ne)),xe},g.prototype.readIntBE=function(V,ne,fe){V>>>=0,ne>>>=0,fe||L(V,ne,this.length);for(var xe=ne,ue=1,ge=this[V+--xe];xe>0&&(ue*=256);)ge+=this[V+--xe]*ue;return ge>=(ue*=128)&&(ge-=Math.pow(2,8*ne)),ge},g.prototype.readInt8=function(V,ne){return V>>>=0,ne||L(V,1,this.length),128&this[V]?-1*(255-this[V]+1):this[V]},g.prototype.readInt16LE=function(V,ne){V>>>=0,ne||L(V,2,this.length);var fe=this[V]|this[V+1]<<8;return 32768&fe?4294901760|fe:fe},g.prototype.readInt16BE=function(V,ne){V>>>=0,ne||L(V,2,this.length);var fe=this[V+1]|this[V]<<8;return 32768&fe?4294901760|fe:fe},g.prototype.readInt32LE=function(V,ne){return V>>>=0,ne||L(V,4,this.length),this[V]|this[V+1]<<8|this[V+2]<<16|this[V+3]<<24},g.prototype.readInt32BE=function(V,ne){return V>>>=0,ne||L(V,4,this.length),this[V]<<24|this[V+1]<<16|this[V+2]<<8|this[V+3]},g.prototype.readBigInt64LE=ce(function(V){re(V>>>=0,"offset");var ne=this[V],fe=this[V+7];ne!==void 0&&fe!==void 0||ie(V,this.length-8);var xe=this[V+4]+this[V+5]*Math.pow(2,8)+this[V+6]*Math.pow(2,16)+(fe<<24);return(BigInt(xe)<>>=0,"offset");var ne=this[V],fe=this[V+7];ne!==void 0&&fe!==void 0||ie(V,this.length-8);var xe=(ne<<24)+this[++V]*Math.pow(2,16)+this[++V]*Math.pow(2,8)+this[++V];return(BigInt(xe)<>>=0,ne||L(V,4,this.length),h.read(this,V,!0,23,4)},g.prototype.readFloatBE=function(V,ne){return V>>>=0,ne||L(V,4,this.length),h.read(this,V,!1,23,4)},g.prototype.readDoubleLE=function(V,ne){return V>>>=0,ne||L(V,8,this.length),h.read(this,V,!0,52,8)},g.prototype.readDoubleBE=function(V,ne){return V>>>=0,ne||L(V,8,this.length),h.read(this,V,!1,52,8)},g.prototype.writeUintLE=g.prototype.writeUIntLE=function(V,ne,fe,xe){V=+V,ne>>>=0,fe>>>=0,xe||q(this,V,ne,fe,Math.pow(2,8*fe)-1,0);var ue=1,ge=0;for(this[ne]=255&V;++ge>>=0,fe>>>=0,xe||q(this,V,ne,fe,Math.pow(2,8*fe)-1,0);var ue=fe-1,ge=1;for(this[ne+ue]=255&V;--ue>=0&&(ge*=256);)this[ne+ue]=V/ge&255;return ne+fe},g.prototype.writeUint8=g.prototype.writeUInt8=function(V,ne,fe){return V=+V,ne>>>=0,fe||q(this,V,ne,1,255,0),this[ne]=255&V,ne+1},g.prototype.writeUint16LE=g.prototype.writeUInt16LE=function(V,ne,fe){return V=+V,ne>>>=0,fe||q(this,V,ne,2,65535,0),this[ne]=255&V,this[ne+1]=V>>>8,ne+2},g.prototype.writeUint16BE=g.prototype.writeUInt16BE=function(V,ne,fe){return V=+V,ne>>>=0,fe||q(this,V,ne,2,65535,0),this[ne]=V>>>8,this[ne+1]=255&V,ne+2},g.prototype.writeUint32LE=g.prototype.writeUInt32LE=function(V,ne,fe){return V=+V,ne>>>=0,fe||q(this,V,ne,4,4294967295,0),this[ne+3]=V>>>24,this[ne+2]=V>>>16,this[ne+1]=V>>>8,this[ne]=255&V,ne+4},g.prototype.writeUint32BE=g.prototype.writeUInt32BE=function(V,ne,fe){return V=+V,ne>>>=0,fe||q(this,V,ne,4,4294967295,0),this[ne]=V>>>24,this[ne+1]=V>>>16,this[ne+2]=V>>>8,this[ne+3]=255&V,ne+4},g.prototype.writeBigUInt64LE=ce(function(V){return U(this,V,arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,BigInt(0),BigInt("0xffffffffffffffff"))}),g.prototype.writeBigUInt64BE=ce(function(V){return J(this,V,arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,BigInt(0),BigInt("0xffffffffffffffff"))}),g.prototype.writeIntLE=function(V,ne,fe,xe){if(V=+V,ne>>>=0,!xe){var ue=Math.pow(2,8*fe-1);q(this,V,ne,fe,ue-1,-ue)}var ge=0,be=1,we=0;for(this[ne]=255&V;++ge>0)-we&255;return ne+fe},g.prototype.writeIntBE=function(V,ne,fe,xe){if(V=+V,ne>>>=0,!xe){var ue=Math.pow(2,8*fe-1);q(this,V,ne,fe,ue-1,-ue)}var ge=fe-1,be=1,we=0;for(this[ne+ge]=255&V;--ge>=0&&(be*=256);)V<0&&we===0&&this[ne+ge+1]!==0&&(we=1),this[ne+ge]=(V/be>>0)-we&255;return ne+fe},g.prototype.writeInt8=function(V,ne,fe){return V=+V,ne>>>=0,fe||q(this,V,ne,1,127,-128),V<0&&(V=255+V+1),this[ne]=255&V,ne+1},g.prototype.writeInt16LE=function(V,ne,fe){return V=+V,ne>>>=0,fe||q(this,V,ne,2,32767,-32768),this[ne]=255&V,this[ne+1]=V>>>8,ne+2},g.prototype.writeInt16BE=function(V,ne,fe){return V=+V,ne>>>=0,fe||q(this,V,ne,2,32767,-32768),this[ne]=V>>>8,this[ne+1]=255&V,ne+2},g.prototype.writeInt32LE=function(V,ne,fe){return V=+V,ne>>>=0,fe||q(this,V,ne,4,2147483647,-2147483648),this[ne]=255&V,this[ne+1]=V>>>8,this[ne+2]=V>>>16,this[ne+3]=V>>>24,ne+4},g.prototype.writeInt32BE=function(V,ne,fe){return V=+V,ne>>>=0,fe||q(this,V,ne,4,2147483647,-2147483648),V<0&&(V=4294967295+V+1),this[ne]=V>>>24,this[ne+1]=V>>>16,this[ne+2]=V>>>8,this[ne+3]=255&V,ne+4},g.prototype.writeBigInt64LE=ce(function(V){return U(this,V,arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))}),g.prototype.writeBigInt64BE=ce(function(V){return J(this,V,arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))}),g.prototype.writeFloatLE=function(V,ne,fe){return ee(this,V,ne,!0,fe)},g.prototype.writeFloatBE=function(V,ne,fe){return ee(this,V,ne,!1,fe)},g.prototype.writeDoubleLE=function(V,ne,fe){return K(this,V,ne,!0,fe)},g.prototype.writeDoubleBE=function(V,ne,fe){return K(this,V,ne,!1,fe)},g.prototype.copy=function(V,ne,fe,xe){if(!g.isBuffer(V))throw new TypeError("argument should be a Buffer");if(fe||(fe=0),xe||xe===0||(xe=this.length),ne>=V.length&&(ne=V.length),ne||(ne=0),xe>0&&xe=this.length)throw new RangeError("Index out of range");if(xe<0)throw new RangeError("sourceEnd out of bounds");xe>this.length&&(xe=this.length),V.length-ne>>=0,fe=fe===void 0?this.length:fe>>>0,V||(V=0),typeof V=="number")for(ge=ne;ge"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}(),function(){var Re,De=f(be);if(we){var Le=f(this).constructor;Re=Reflect.construct(De,arguments,Le)}else Re=De.apply(this,arguments);return function(Fe,Be){if(Be&&(d(Be)==="object"||typeof Be=="function"))return Be;if(Be!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return u(Fe)}(this,Re)});function Pe(){var Re;return function(De,Le){if(!(De instanceof Le))throw new TypeError("Cannot call a class as a function")}(this,Pe),Re=ke.call(this),Object.defineProperty(u(Re),"message",{value:ne.apply(u(Re),arguments),writable:!0,configurable:!0}),Re.name="".concat(Re.name," [").concat(V,"]"),Re.stack,delete Re.name,Re}return ue=Pe,(ge=[{key:"code",get:function(){return V},set:function(Re){Object.defineProperty(this,"code",{configurable:!0,enumerable:!0,value:Re,writable:!0})}},{key:"toString",value:function(){return"".concat(this.name," [").concat(V,"]: ").concat(this.message)}}])&&l(ue.prototype,ge),Object.defineProperty(ue,"prototype",{writable:!1}),Pe}(fe)}function X(V){for(var ne="",fe=V.length,xe=V[0]==="-"?1:0;fe>=xe+4;fe-=3)ne="_".concat(V.slice(fe-3,fe)).concat(ne);return"".concat(V.slice(0,fe)).concat(ne)}function Y(V,ne,fe,xe,ue,ge){if(V>fe||V3?ne===0||ne===BigInt(0)?">= 0".concat(we," and < 2").concat(we," ** ").concat(8*(ge+1)).concat(we):">= -(2".concat(we," ** ").concat(8*(ge+1)-1).concat(we,") and < 2 ** ")+"".concat(8*(ge+1)-1).concat(we):">= ".concat(ne).concat(we," and <= ").concat(fe).concat(we),new Q.ERR_OUT_OF_RANGE("value",be,V)}(function(ke,Pe,Re){re(Pe,"offset"),ke[Pe]!==void 0&&ke[Pe+Re]!==void 0||ie(Pe,ke.length-(Re+1))})(xe,ue,ge)}function re(V,ne){if(typeof V!="number")throw new Q.ERR_INVALID_ARG_TYPE(ne,"number",V)}function ie(V,ne,fe){throw Math.floor(V)!==V?(re(V,fe),new Q.ERR_OUT_OF_RANGE(fe||"offset","an integer",V)):ne<0?new Q.ERR_BUFFER_OUT_OF_BOUNDS:new Q.ERR_OUT_OF_RANGE(fe||"offset",">= ".concat(fe?1:0," and <= ").concat(ne),V)}G("ERR_BUFFER_OUT_OF_BOUNDS",function(V){return V?"".concat(V," is outside of buffer bounds"):"Attempt to access memory outside buffer bounds"},RangeError),G("ERR_INVALID_ARG_TYPE",function(V,ne){return'The "'.concat(V,'" argument must be of type number. Received type ').concat(d(ne))},TypeError),G("ERR_OUT_OF_RANGE",function(V,ne,fe){var xe='The value of "'.concat(V,'" is out of range.'),ue=fe;return Number.isInteger(fe)&&Math.abs(fe)>Math.pow(2,32)?ue=X(String(fe)):typeof fe=="bigint"&&(ue=String(fe),(fe>Math.pow(BigInt(2),BigInt(32))||fe<-Math.pow(BigInt(2),BigInt(32)))&&(ue=X(ue)),ue+="n"),xe+" It must be ".concat(ne,". Received ").concat(ue)},RangeError);var le=/[^+/0-9A-Za-z-_]/g;function se(V,ne){var fe;ne=ne||1/0;for(var xe=V.length,ue=null,ge=[],be=0;be55295&&fe<57344){if(!ue){if(fe>56319){(ne-=3)>-1&&ge.push(239,191,189);continue}if(be+1===xe){(ne-=3)>-1&&ge.push(239,191,189);continue}ue=fe;continue}if(fe<56320){(ne-=3)>-1&&ge.push(239,191,189),ue=fe;continue}fe=65536+(ue-55296<<10|fe-56320)}else ue&&(ne-=3)>-1&&ge.push(239,191,189);if(ue=null,fe<128){if((ne-=1)<0)break;ge.push(fe)}else if(fe<2048){if((ne-=2)<0)break;ge.push(fe>>6|192,63&fe|128)}else if(fe<65536){if((ne-=3)<0)break;ge.push(fe>>12|224,fe>>6&63|128,63&fe|128)}else{if(!(fe<1114112))throw new Error("Invalid code point");if((ne-=4)<0)break;ge.push(fe>>18|240,fe>>12&63|128,fe>>6&63|128,63&fe|128)}}return ge}function he(V){return p.toByteArray(function(ne){if((ne=(ne=ne.split("=")[0]).trim().replace(le,"")).length<2)return"";for(;ne.length%4!=0;)ne+="=";return ne}(V))}function _e(V,ne,fe,xe){var ue;for(ue=0;ue=ne.length||ue>=V.length);++ue)ne[ue+fe]=V[ue];return ue}function Me(V,ne){return V instanceof ne||V!=null&&V.constructor!=null&&V.constructor.name!=null&&V.constructor.name===ne.name}function Ce(V){return V!=V}var Se=function(){for(var V="0123456789abcdef",ne=new Array(256),fe=0;fe<16;++fe)for(var xe=16*fe,ue=0;ue<16;++ue)ne[xe+ue]=V[fe]+V[ue];return ne}();function ce(V){return typeof BigInt>"u"?ye:V}function ye(){throw new Error("BigInt not supported")}},35791:function(o){o.exports=c,o.exports.isMobile=c,o.exports.default=c;var a=/(android|bb\d+|meego).+mobile|armv7l|avantgo|bada\/|blackberry|blazer|compal|elaine|fennec|hiptop|iemobile|ip(hone|od)|iris|kindle|lge |maemo|midp|mmp|mobile.+firefox|netfront|opera m(ob|in)i|palm( os)?|phone|p(ixi|re)\/|plucker|pocket|psp|series[46]0|samsungbrowser.*mobile|symbian|treo|up\.(browser|link)|vodafone|wap|windows (ce|phone)|xda|xiino/i,n=/CrOS/,l=/android|ipad|playbook|silk/i;function c(u){u||(u={});var f=u.ua;if(f||typeof navigator>"u"||(f=navigator.userAgent),f&&f.headers&&typeof f.headers["user-agent"]=="string"&&(f=f.headers["user-agent"]),typeof f!="string")return!1;var d=a.test(f)&&!n.test(f)||!!u.tablet&&l.test(f);return!d&&u.tablet&&u.featureDetect&&navigator&&navigator.maxTouchPoints>1&&f.indexOf("Macintosh")!==-1&&f.indexOf("Safari")!==-1&&(d=!0),d}},39898:function(o,a,n){var l,c;(function(){var u={version:"3.8.0"},f=[].slice,d=function(I){return f.call(I)},p=self.document;function h(I){return I&&(I.ownerDocument||I.document||I).documentElement}function m(I){return I&&(I.ownerDocument&&I.ownerDocument.defaultView||I.document&&I||I.defaultView)}if(p)try{d(p.documentElement.childNodes)[0].nodeType}catch{d=function(Z){for(var ae=Z.length,de=new Array(ae);ae--;)de[ae]=Z[ae];return de}}if(Date.now||(Date.now=function(){return+new Date}),p)try{p.createElement("DIV").style.setProperty("opacity",0,"")}catch{var y=this.Element.prototype,v=y.setAttribute,g=y.setAttributeNS,b=this.CSSStyleDeclaration.prototype,w=b.setProperty;y.setAttribute=function(Z,ae){v.call(this,Z,ae+"")},y.setAttributeNS=function(Z,ae,de){g.call(this,Z,ae,de+"")},b.setProperty=function(Z,ae,de){w.call(this,Z,ae+"",de)}}function _(I,Z){return IZ?1:I>=Z?0:NaN}function x(I){return I===null?NaN:+I}function k(I){return!isNaN(I)}function T(I){return{left:function(Z,ae,de,pe){for(arguments.length<3&&(de=0),arguments.length<4&&(pe=Z.length);de>>1;I(Z[me],ae)<0?de=me+1:pe=me}return de},right:function(Z,ae,de,pe){for(arguments.length<3&&(de=0),arguments.length<4&&(pe=Z.length);de>>1;I(Z[me],ae)>0?pe=me:de=me+1}return de}}}u.ascending=_,u.descending=function(I,Z){return ZI?1:Z>=I?0:NaN},u.min=function(I,Z){var ae,de,pe=-1,me=I.length;if(arguments.length===1){for(;++pe=de){ae=de;break}for(;++pede&&(ae=de)}else{for(;++pe=de){ae=de;break}for(;++pede&&(ae=de)}return ae},u.max=function(I,Z){var ae,de,pe=-1,me=I.length;if(arguments.length===1){for(;++pe=de){ae=de;break}for(;++peae&&(ae=de)}else{for(;++pe=de){ae=de;break}for(;++peae&&(ae=de)}return ae},u.extent=function(I,Z){var ae,de,pe,me=-1,Oe=I.length;if(arguments.length===1){for(;++me=de){ae=pe=de;break}for(;++mede&&(ae=de),pe=de){ae=pe=de;break}for(;++mede&&(ae=de),pe1)return Oe/(Ie-1)},u.deviation=function(){var I=u.variance.apply(this,arguments);return I&&Math.sqrt(I)};var S=T(_);function M(I){return I.length}u.bisectLeft=S.left,u.bisect=u.bisectRight=S.right,u.bisector=function(I){return T(I.length===1?function(Z,ae){return _(I(Z),ae)}:I)},u.shuffle=function(I,Z,ae){(me=arguments.length)<3&&(ae=I.length,me<2&&(Z=0));for(var de,pe,me=ae-Z;me;)pe=Math.random()*me--|0,de=I[me+Z],I[me+Z]=I[pe+Z],I[pe+Z]=de;return I},u.permute=function(I,Z){for(var ae=Z.length,de=new Array(ae);ae--;)de[ae]=I[Z[ae]];return de},u.pairs=function(I){for(var Z=0,ae=I.length-1,de=I[0],pe=new Array(ae<0?0:ae);Z=0;)for(Z=(de=I[pe]).length;--Z>=0;)ae[--Oe]=de[Z];return ae};var C=Math.abs;function A(I,Z){for(var ae in Z)Object.defineProperty(I.prototype,ae,{value:Z[ae],enumerable:!1})}function D(){this._=Object.create(null)}u.range=function(I,Z,ae){if(arguments.length<3&&(ae=1,arguments.length<2&&(Z=I,I=0)),(Z-I)/ae==1/0)throw new Error("infinite range");var de,pe=[],me=function(Ae){for(var Ie=1;Ae*Ie%1;)Ie*=10;return Ie}(C(ae)),Oe=-1;if(I*=me,Z*=me,(ae*=me)<0)for(;(de=I+ae*++Oe)>Z;)pe.push(de/me);else for(;(de=I+ae*++Oe)=de.length)return Z?Z.call(ae,Ie):I?Ie.sort(I):Ie;for(var He,Ke,rt,xt,Ot=-1,pt=Ie.length,_t=de[je++],lt=new D;++Ot=de.length)return Ae;var je=[],He=pe[Ie++];return Ae.forEach(function(Ke,rt){je.push({key:Ke,values:Oe(rt,Ie)})}),He?je.sort(function(Ke,rt){return He(Ke.key,rt.key)}):je}return ae.map=function(Ae,Ie){return me(Ie,Ae,0)},ae.entries=function(Ae){return Oe(me(u.map,Ae,0),0)},ae.key=function(Ae){return de.push(Ae),ae},ae.sortKeys=function(Ae){return pe[de.length-1]=Ae,ae},ae.sortValues=function(Ae){return I=Ae,ae},ae.rollup=function(Ae){return Z=Ae,ae},ae},u.set=function(I){var Z=new E;if(I)for(var ae=0,de=I.length;ae=0&&(de=I.slice(ae+1),I=I.slice(0,ae)),I)return arguments.length<2?this[I].on(de):this[I].on(de,Z);if(arguments.length===2){if(Z==null)for(I in this)this.hasOwnProperty(I)&&this[I].on(de,null);return this}},u.event=null,u.requote=function(I){return I.replace(G,"\\$&")};var G=/[\\\^\$\*\+\?\|\[\]\(\)\.\{\}]/g,X={}.__proto__?function(I,Z){I.__proto__=Z}:function(I,Z){for(var ae in Z)I[ae]=Z[ae]};function Y(I){return X(I,se),I}var re=function(I,Z){return Z.querySelector(I)},ie=function(I,Z){return Z.querySelectorAll(I)},le=function(I,Z){var ae=I.matches||I[L(I,"matchesSelector")];return le=function(de,pe){return ae.call(de,pe)},le(I,Z)};typeof Sizzle=="function"&&(re=function(I,Z){return Sizzle(I,Z)[0]||null},ie=Sizzle,le=Sizzle.matchesSelector),u.selection=function(){return u.select(p.documentElement)};var se=u.selection.prototype=[];function he(I){return typeof I=="function"?I:function(){return re(I,this)}}function _e(I){return typeof I=="function"?I:function(){return ie(I,this)}}se.select=function(I){var Z,ae,de,pe,me=[];I=he(I);for(var Oe=-1,Ae=this.length;++Oe=0&&(ae=I.slice(0,Z))!=="xmlns"&&(I=I.slice(Z+1)),Ce.hasOwnProperty(ae)?{space:Ce[ae],local:I}:I}},se.attr=function(I,Z){if(arguments.length<2){if(typeof I=="string"){var ae=this.node();return(I=u.ns.qualify(I)).local?ae.getAttributeNS(I.space,I.local):ae.getAttribute(I)}for(Z in I)this.each(Se(Z,I[Z]));return this}return this.each(Se(I,Z))},se.classed=function(I,Z){if(arguments.length<2){if(typeof I=="string"){var ae=this.node(),de=(I=V(I)).length,pe=-1;if(Z=ae.classList){for(;++pe=0;)(ae=de[pe])&&(me&&me!==ae.nextSibling&&me.parentNode.insertBefore(ae,me),me=ae);return this},se.sort=function(I){I=Pe.apply(this,arguments);for(var Z=-1,ae=this.length;++Z0&&(I=I.slice(0,pe));var Oe=Be.get(I);function Ae(){var Ie=this[de];Ie&&(this.removeEventListener(I,Ie,Ie.$),delete this[de])}return Oe&&(I=Oe,me=qe),pe?Z?function(){var Ie=me(Z,d(arguments));Ae.call(this),this.addEventListener(I,this[de]=Ie,Ie.$=ae),Ie._=Z}:Ae:Z?U:function(){var Ie,je=new RegExp("^__on([^.]+)"+u.requote(I)+"$");for(var He in this)if(Ie=He.match(je)){var Ke=this[He];this.removeEventListener(Ie[1],Ke,Ke.$),delete this[He]}}}u.selection.enter=De,u.selection.enter.prototype=Le,Le.append=se.append,Le.empty=se.empty,Le.node=se.node,Le.call=se.call,Le.size=se.size,Le.select=function(I){for(var Z,ae,de,pe,me,Oe=[],Ae=-1,Ie=this.length;++Ae=de&&(de=Oe+1);!(Ie=je[de])&&++de1?ut:I<-1?-ut:Math.asin(I)}function Bt(I){return((I=Math.exp(I))+1/I)/2}var Tt=Math.SQRT2;u.interpolateZoom=function(I,Z){var ae,de,pe=I[0],me=I[1],Oe=I[2],Ae=Z[0],Ie=Z[1],je=Z[2],He=Ae-pe,Ke=Ie-me,rt=He*He+Ke*Ke;if(rt0&&(nn=nn.transition().duration(rt)),nn.call(kt.event)}function Qt(){Oe&&Oe.domain(me.range().map(function(nn){return(nn-je.x)/je.k}).map(me.invert)),Ie&&Ie.domain(Ae.range().map(function(nn){return(nn-je.y)/je.k}).map(Ae.invert))}function mn(nn){xt++||nn({type:"zoomstart"})}function bn(nn){Qt(),nn({type:"zoom",scale:je.k,translate:[je.x,je.y]})}function Cn(nn){--xt||(nn({type:"zoomend"}),Z=null)}function xn(){var nn=this,pn=Dt.of(nn,arguments),Rn=0,$n=u.select(m(nn)).on(pt,function(){Rn=1,Ht(u.mouse(nn),Zn),bn(pn)}).on(_t,function(){$n.on(pt,null).on(_t,null),mr(Rn),Cn(pn)}),Zn=dt(u.mouse(nn)),mr=st(nn);Yc.call(nn),mn(pn)}function Hn(){var nn,pn=this,Rn=Dt.of(pn,arguments),$n={},Zn=0,mr=".zoom-"+u.event.changedTouches[0].identifier,Nr="touchmove"+mr,Lr="touchend"+mr,Zr=[],Br=u.select(pn),Kr=st(pn);function ba(){var ea=u.touches(pn);return nn=je.k,ea.forEach(function(zr){zr.identifier in $n&&($n[zr.identifier]=dt(zr))}),ea}function oi(){var ea=u.event.target;u.select(ea).on(Nr,hi).on(Lr,gi),Zr.push(ea);for(var zr=u.event.changedTouches,Ta=0,ka=zr.length;Ta1){Ci=Pa[0];var Xi=Pa[1],Kc=Ci[0]-Xi[0],_w=Ci[1]-Xi[1];Zn=Kc*Kc+_w*_w}}function hi(){var ea,zr,Ta,ka,Pa=u.touches(pn);Yc.call(pn);for(var Ha=0,Ci=Pa.length;Ha360?Ae-=360:Ae<0&&(Ae+=360),Ae<60?de+(pe-de)*Ae/60:Ae<180?pe:Ae<240?de+(pe-de)*(240-Ae)/60:de}(Oe))}return I=isNaN(I)?0:(I%=360)<0?I+360:I,Z=isNaN(Z)||Z<0?0:Z>1?1:Z,de=2*(ae=ae<0?0:ae>1?1:ae)-(pe=ae<=.5?ae*(1+Z):ae+Z-ae*Z),new Lt(me(I+120),me(I),me(I-120))}function Qe(I,Z,ae){return this instanceof Qe?(this.h=+I,this.c=+Z,void(this.l=+ae)):arguments.length<2?I instanceof Qe?new Qe(I.h,I.c,I.l):function(de,pe,me){return de>0?new Qe(Math.atan2(me,pe)*Rt,Math.sqrt(pe*pe+me*me),de):new Qe(NaN,NaN,de)}(I instanceof nt?I.l:(I=Nt((I=u.rgb(I)).r,I.g,I.b)).l,I.a,I.b):new Qe(I,Z,ae)}Xe.brighter=function(I){return I=Math.pow(.7,arguments.length?I:1),new Je(this.h,this.s,this.l/I)},Xe.darker=function(I){return I=Math.pow(.7,arguments.length?I:1),new Je(this.h,this.s,I*this.l)},Xe.rgb=function(){return Ge(this.h,this.s,this.l)},u.hcl=Qe;var ct=Qe.prototype=new We;function bt(I,Z,ae){return isNaN(I)&&(I=0),isNaN(Z)&&(Z=0),new nt(ae,Math.cos(I*=gt)*Z,Math.sin(I)*Z)}function nt(I,Z,ae){return this instanceof nt?(this.l=+I,this.a=+Z,void(this.b=+ae)):arguments.length<2?I instanceof nt?new nt(I.l,I.a,I.b):I instanceof Qe?bt(I.h,I.c,I.l):Nt((I=Lt(I)).r,I.g,I.b):new nt(I,Z,ae)}ct.brighter=function(I){return new Qe(this.h,this.c,Math.min(100,this.l+It*(arguments.length?I:1)))},ct.darker=function(I){return new Qe(this.h,this.c,Math.max(0,this.l-It*(arguments.length?I:1)))},ct.rgb=function(){return bt(this.h,this.c,this.l).rgb()},u.lab=nt;var It=18,Yt=.95047,Ct=1,jt=1.08883,Et=nt.prototype=new We;function mt(I,Z,ae){var de=(I+16)/116,pe=de+Z/500,me=de-ae/200;return new Lt(qt(3.2404542*(pe=vt(pe)*Yt)-1.5371385*(de=vt(de)*Ct)-.4985314*(me=vt(me)*jt)),qt(-.969266*pe+1.8760108*de+.041556*me),qt(.0556434*pe-.2040259*de+1.0572252*me))}function vt(I){return I>.206893034?I*I*I:(I-.13793103448275862)/7.787037}function wt(I){return I>.008856?Math.pow(I,.3333333333333333):7.787037*I+.13793103448275862}function qt(I){return Math.round(255*(I<=.00304?12.92*I:1.055*Math.pow(I,.4166666666666667)-.055))}function Lt(I,Z,ae){return this instanceof Lt?(this.r=~~I,this.g=~~Z,void(this.b=~~ae)):arguments.length<2?I instanceof Lt?new Lt(I.r,I.g,I.b):Ft(""+I,Lt,Ge):new Lt(I,Z,ae)}function Gt(I){return new Lt(I>>16,I>>8&255,255&I)}function ht(I){return Gt(I)+""}Et.brighter=function(I){return new nt(Math.min(100,this.l+It*(arguments.length?I:1)),this.a,this.b)},Et.darker=function(I){return new nt(Math.max(0,this.l-It*(arguments.length?I:1)),this.a,this.b)},Et.rgb=function(){return mt(this.l,this.a,this.b)},u.rgb=Lt;var Pt=Lt.prototype=new We;function At(I){return I<16?"0"+Math.max(0,I).toString(16):Math.min(255,I).toString(16)}function Ft(I,Z,ae){var de,pe,me,Oe=0,Ae=0,Ie=0;if(de=/([a-z]+)\((.*)\)/.exec(I=I.toLowerCase()))switch(pe=de[2].split(","),de[1]){case"hsl":return ae(parseFloat(pe[0]),parseFloat(pe[1])/100,parseFloat(pe[2])/100);case"rgb":return Z(Xt(pe[0]),Xt(pe[1]),Xt(pe[2]))}return(me=zt.get(I))?Z(me.r,me.g,me.b):(I==null||I.charAt(0)!=="#"||isNaN(me=parseInt(I.slice(1),16))||(I.length===4?(Oe=(3840&me)>>4,Oe|=Oe>>4,Ae=240&me,Ae|=Ae>>4,Ie=15&me,Ie|=Ie<<4):I.length===7&&(Oe=(16711680&me)>>16,Ae=(65280&me)>>8,Ie=255&me)),Z(Oe,Ae,Ie))}function $t(I,Z,ae){var de,pe,me=Math.min(I/=255,Z/=255,ae/=255),Oe=Math.max(I,Z,ae),Ae=Oe-me,Ie=(Oe+me)/2;return Ae?(pe=Ie<.5?Ae/(Oe+me):Ae/(2-Oe-me),de=I==Oe?(Z-ae)/Ae+(Z0&&Ie<1?0:de),new Je(de,pe,Ie)}function Nt(I,Z,ae){var de=wt((.4124564*(I=Vt(I))+.3575761*(Z=Vt(Z))+.1804375*(ae=Vt(ae)))/Yt),pe=wt((.2126729*I+.7151522*Z+.072175*ae)/Ct);return nt(116*pe-16,500*(de-pe),200*(pe-wt((.0193339*I+.119192*Z+.9503041*ae)/jt)))}function Vt(I){return(I/=255)<=.04045?I/12.92:Math.pow((I+.055)/1.055,2.4)}function Xt(I){var Z=parseFloat(I);return I.charAt(I.length-1)==="%"?Math.round(2.55*Z):Z}Pt.brighter=function(I){I=Math.pow(.7,arguments.length?I:1);var Z=this.r,ae=this.g,de=this.b,pe=30;return Z||ae||de?(Z&&Z=200&&Ke<300||Ke===304){try{He=ae.call(pe,Ae)}catch(rt){return void me.error.call(pe,rt)}me.load.call(pe,He)}else me.error.call(pe,Ae)}return self.XDomainRequest&&!("withCredentials"in Ae)&&/^(http(s)?:)?\/\//.test(I)&&(Ae=new XDomainRequest),"onload"in Ae?Ae.onload=Ae.onerror=je:Ae.onreadystatechange=function(){Ae.readyState>3&&je()},Ae.onprogress=function(He){var Ke=u.event;u.event=He;try{me.progress.call(pe,Ae)}finally{u.event=Ke}},pe.header=function(He,Ke){return He=(He+"").toLowerCase(),arguments.length<2?Oe[He]:(Ke==null?delete Oe[He]:Oe[He]=Ke+"",pe)},pe.mimeType=function(He){return arguments.length?(Z=He==null?null:He+"",pe):Z},pe.responseType=function(He){return arguments.length?(Ie=He,pe):Ie},pe.response=function(He){return ae=He,pe},["get","post"].forEach(function(He){pe[He]=function(){return pe.send.apply(pe,[He].concat(d(arguments)))}}),pe.send=function(He,Ke,rt){if(arguments.length===2&&typeof Ke=="function"&&(rt=Ke,Ke=null),Ae.open(He,I,!0),Z==null||"accept"in Oe||(Oe.accept=Z+",*/*"),Ae.setRequestHeader)for(var xt in Oe)Ae.setRequestHeader(xt,Oe[xt]);return Z!=null&&Ae.overrideMimeType&&Ae.overrideMimeType(Z),Ie!=null&&(Ae.responseType=Ie),rt!=null&&pe.on("error",rt).on("load",function(Ot){rt(null,Ot)}),me.beforesend.call(pe,Ae),Ae.send(Ke??null),pe},pe.abort=function(){return Ae.abort(),pe},u.rebind(pe,me,"on"),de==null?pe:pe.get(function(He){return He.length===1?function(Ke,rt){He(Ke==null?rt:null)}:He}(de))}zt.forEach(function(I,Z){zt.set(I,Gt(Z))}),u.functor=Wt,u.xhr=an(W),u.dsv=function(I,Z){var ae=new RegExp('["'+I+` +]`),de=I.charCodeAt(0);function pe(je,He,Ke){arguments.length<3&&(Ke=He,He=null);var rt=fn(je,Z,He==null?me:Oe(He),Ke);return rt.row=function(xt){return arguments.length?rt.response((He=xt)==null?me:Oe(xt)):He},rt}function me(je){return pe.parse(je.responseText)}function Oe(je){return function(He){return pe.parse(He.responseText,je)}}function Ae(je){return je.map(Ie).join(I)}function Ie(je){return ae.test(je)?'"'+je.replace(/\"/g,'""')+'"':je}return pe.parse=function(je,He){var Ke;return pe.parseRows(je,function(rt,xt){if(Ke)return Ke(rt,xt-1);var Ot=function(pt){for(var _t={},lt=rt.length,Dt=0;Dt=_t)return Ot;if(rt)return rt=!1,xt;var Ut=lt;if(je.charCodeAt(Ut)===34){for(var Ht=Ut;Ht++<_t;)if(je.charCodeAt(Ht)===34){if(je.charCodeAt(Ht+1)!==34)break;++Ht}return lt=Ht+2,(tn=je.charCodeAt(Ht+1))===13?(rt=!0,je.charCodeAt(Ht+2)===10&&++lt):tn===10&&(rt=!0),je.slice(Ut+1,Ht).replace(/""/g,'"')}for(;lt<_t;){var tn,Qt=1;if((tn=je.charCodeAt(lt++))===10)rt=!0;else if(tn===13)rt=!0,je.charCodeAt(lt)===10&&(++lt,++Qt);else if(tn!==de)continue;return je.slice(Ut,lt-Qt)}return je.slice(Ut)}for(;(Ke=kt())!==Ot;){for(var dt=[];Ke!==xt&&Ke!==Ot;)dt.push(Ke),Ke=kt();He&&(dt=He(dt,Dt++))==null||pt.push(dt)}return pt},pe.format=function(je){if(Array.isArray(je[0]))return pe.formatRows(je);var He=new E,Ke=[];return je.forEach(function(rt){for(var xt in rt)He.has(xt)||Ke.push(He.add(xt))}),[Ke.map(Ie).join(I)].concat(je.map(function(rt){return Ke.map(function(xt){return Ie(rt[xt])}).join(I)})).join(` +`)},pe.formatRows=function(je){return je.map(Ae).join(` +`)},pe},u.csv=u.dsv(",","text/csv"),u.tsv=u.dsv(" ","text/tab-separated-values");var un,on,sn,Sn,en=this[L(this,"requestAnimationFrame")]||function(I){setTimeout(I,17)};function dn(I,Z,ae){var de=arguments.length;de<2&&(Z=0),de<3&&(ae=Date.now());var pe={c:I,t:ae+Z,n:null};return on?on.n=pe:un=pe,on=pe,sn||(Sn=clearTimeout(Sn),sn=1,en(Kt)),pe}function Kt(){var I=Mn(),Z=Tn()-I;Z>24?(isFinite(Z)&&(clearTimeout(Sn),Sn=setTimeout(Kt,Z)),sn=0):(sn=1,en(Kt))}function Mn(){for(var I=Date.now(),Z=un;Z;)I>=Z.t&&Z.c(I-Z.t)&&(Z.c=null),Z=Z.n;return I}function Tn(){for(var I,Z=un,ae=1/0;Z;)Z.c?(Z.t1&&(Z=I[me[Oe-2]],ae=I[me[Oe-1]],de=I[Ae],(ae[0]-Z[0])*(de[1]-Z[1])-(ae[1]-Z[1])*(de[0]-Z[0])<=0);)--Oe;me[Oe++]=Ae}return me.slice(0,Oe)}function zn(I,Z){return I[0]-Z[0]||I[1]-Z[1]}u.timer=function(){dn.apply(this,arguments)},u.timer.flush=function(){Mn(),Tn()},u.round=function(I,Z){return Z?Math.round(I*(Z=Math.pow(10,Z)))/Z:Math.round(I)},u.geom={},u.geom.hull=function(I){var Z=Bn,ae=In;if(arguments.length)return de(I);function de(pe){if(pe.length<3)return[];var me,Oe=Wt(Z),Ae=Wt(ae),Ie=pe.length,je=[],He=[];for(me=0;me=0;--me)pt.push(pe[je[Ke[me]][2]]);for(me=+xt;meNe)Ae=Ae.L;else{if(!((pe=me-Er(Ae,Oe))>Ne)){de>-Ne?(Z=Ae.P,ae=Ae):pe>-Ne?(Z=Ae,ae=Ae.N):Z=ae=Ae;break}if(!Ae.R){Z=Ae;break}Ae=Ae.R}var Ie=Fn(I);if(ha.insert(Z,Ie),Z||ae){if(Z===ae)return aa(Z),ae=Fn(Z.site),ha.insert(Ie,ae),Ie.edge=ae.edge=ya(Z.site,Ie.site),ra(Z),void ra(ae);if(ae){aa(Z),aa(ae);var je=Z.site,He=je.x,Ke=je.y,rt=I.x-He,xt=I.y-Ke,Ot=ae.site,pt=Ot.x-He,_t=Ot.y-Ke,lt=2*(rt*_t-xt*pt),Dt=rt*rt+xt*xt,kt=pt*pt+_t*_t,dt={x:(_t*Dt-xt*kt)/lt+He,y:(rt*kt-pt*Dt)/lt+Ke};Xr(ae.edge,je,Ot,dt),Ie.edge=ya(je,I,null,dt),ae.edge=ya(I,Ot,null,dt),ra(Z),ra(ae)}else Ie.edge=ya(Z.site,Ie.site)}}function yr(I,Z){var ae=I.site,de=ae.x,pe=ae.y,me=pe-Z;if(!me)return de;var Oe=I.P;if(!Oe)return-1/0;var Ae=(ae=Oe.site).x,Ie=ae.y,je=Ie-Z;if(!je)return Ae;var He=Ae-de,Ke=1/me-1/je,rt=He/je;return Ke?(-rt+Math.sqrt(rt*rt-2*Ke*(He*He/(-2*je)-Ie+je/2+pe-me/2)))/Ke+de:(de+Ae)/2}function Er(I,Z){var ae=I.N;if(ae)return yr(ae,Z);var de=I.site;return de.y===Z?de.x:1/0}function Rr(I){this.site=I,this.edges=[]}function _a(I,Z){return Z.angle-I.angle}function $a(){di(this),this.x=this.y=this.arc=this.site=this.cy=null}function ra(I){var Z=I.P,ae=I.N;if(Z&&ae){var de=Z.site,pe=I.site,me=ae.site;if(de!==me){var Oe=pe.x,Ae=pe.y,Ie=de.x-Oe,je=de.y-Ae,He=me.x-Oe,Ke=2*(Ie*(_t=me.y-Ae)-je*He);if(!(Ke>=-et)){var rt=Ie*Ie+je*je,xt=He*He+_t*_t,Ot=(_t*rt-je*xt)/Ke,pt=(Ie*xt-He*rt)/Ke,_t=pt+Ae,lt=Vn.pop()||new $a;lt.arc=I,lt.site=pe,lt.x=Ot+Oe,lt.y=_t+Math.sqrt(Ot*Ot+pt*pt),lt.cy=_t,I.circle=lt;for(var Dt=null,kt=An._;kt;)if(lt.y=Ae)return;if(rt>Ot){if(me){if(me.y>=je)return}else me={x:_t,y:Ie};ae={x:_t,y:je}}else{if(me){if(me.y1)if(rt>Ot){if(me){if(me.y>=je)return}else me={x:(Ie-pe)/de,y:Ie};ae={x:(je-pe)/de,y:je}}else{if(me){if(me.y=Ae)return}else me={x:Oe,y:de*Oe+pe};ae={x:Ae,y:de*Ae+pe}}else{if(me){if(me.x0)){if(lt/=Qt,Qt<0){if(lt0){if(lt>tn)return;lt>Ht&&(Ht=lt)}if(lt=Ke-dt,Qt||!(lt<0)){if(lt/=Qt,Qt<0){if(lt>tn)return;lt>Ht&&(Ht=lt)}else if(Qt>0){if(lt0)){if(lt/=mn,mn<0){if(lt0){if(lt>tn)return;lt>Ht&&(Ht=lt)}if(lt=rt-Ut,mn||!(lt<0)){if(lt/=mn,mn<0){if(lt>tn)return;lt>Ht&&(Ht=lt)}else if(mn>0){if(lt0&&(_t.a={x:dt+Ht*Qt,y:Ut+Ht*mn}),tn<1&&(_t.b={x:dt+tn*Qt,y:Ut+tn*mn}),_t}}}}}),pt=xt.length;pt--;)(!En(Ie=xt[pt],Ae)||!Ot(Ie)||C(Ie.a.x-Ie.b.x)Ne||C(Ke-je)>Ne)&&(Ot.splice(xt,0,new Vi((Qt=rt.site,mn=lt,bn=C(He-Dt)Ne?{x:Dt,y:C(Ie-Dt)Ne?{x:C(je-Ut)Ne?{x:kt,y:C(Ie-kt)Ne?{x:C(je-dt)=He&<.x<=rt&<.y>=Ke&<.y<=xt?[[He,xt],[rt,xt],[rt,Ke],[He,Ke]]:[]).point=Ie[pt]}),je}function Ae(Ie){return Ie.map(function(je,He){return{x:Math.round(de(je,He)/Ne)*Ne,y:Math.round(pe(je,He)/Ne)*Ne,i:He}})}return Oe.links=function(Ie){return dl(Ae(Ie)).edges.filter(function(je){return je.l&&je.r}).map(function(je){return{source:Ie[je.l.i],target:Ie[je.r.i]}})},Oe.triangles=function(Ie){var je=[];return dl(Ae(Ie)).cells.forEach(function(He,Ke){for(var rt,xt,Ot,pt,_t=He.site,lt=He.edges.sort(_a),Dt=-1,kt=lt.length,dt=lt[kt-1].edge,Ut=dt.l===_t?dt.r:dt.l;++Dtme&&(pe=Z.slice(me,pe),Ae[Oe]?Ae[Oe]+=pe:Ae[++Oe]=pe),(ae=ae[0])===(de=de[0])?Ae[Oe]?Ae[Oe]+=de:Ae[++Oe]=de:(Ae[++Oe]=null,Ie.push({i:Oe,x:Mi(ae,de)})),me=lg.lastIndex;return melt&&(lt=He.x),He.y>Dt&&(Dt=He.y),Ke.push(He.x),rt.push(He.y);else for(xt=0;xtlt&&(lt=Ut),Ht>Dt&&(Dt=Ht),Ke.push(Ut),rt.push(Ht)}var tn=lt-pt,Qt=Dt-_t;function mn(xn,Hn,Jn,br,nn,pn,Rn,$n){if(!isNaN(Jn)&&!isNaN(br))if(xn.leaf){var Zn=xn.x,mr=xn.y;if(Zn!=null)if(C(Zn-Jn)+C(mr-br)<.01)bn(xn,Hn,Jn,br,nn,pn,Rn,$n);else{var Nr=xn.point;xn.x=xn.y=xn.point=null,bn(xn,Nr,Zn,mr,nn,pn,Rn,$n),bn(xn,Hn,Jn,br,nn,pn,Rn,$n)}else xn.x=Jn,xn.y=br,xn.point=Hn}else bn(xn,Hn,Jn,br,nn,pn,Rn,$n)}function bn(xn,Hn,Jn,br,nn,pn,Rn,$n){var Zn=.5*(nn+Rn),mr=.5*(pn+$n),Nr=Jn>=Zn,Lr=br>=mr,Zr=Lr<<1|Nr;xn.leaf=!1,Nr?nn=Zn:Rn=Zn,Lr?pn=mr:$n=mr,mn(xn=xn.nodes[Zr]||(xn.nodes[Zr]={leaf:!0,nodes:[],point:null,x:null,y:null}),Hn,Jn,br,nn,pn,Rn,$n)}tn>Qt?Dt=_t+tn:lt=pt+Qt;var Cn={leaf:!0,nodes:[],point:null,x:null,y:null,add:function(xn){mn(Cn,xn,+kt(xn,++xt),+dt(xn,xt),pt,_t,lt,Dt)}};if(Cn.visit=function(xn){_s(xn,Cn,pt,_t,lt,Dt)},Cn.find=function(xn){return function(Hn,Jn,br,nn,pn,Rn,$n){var Zn,mr=1/0;return function Nr(Lr,Zr,Br,Kr,ba){if(!(Zr>Rn||Br>$n||Kr=Pa)<<1|Jn>=ka,Ci=Ha+4;Ha=0&&!(ae=u.interpolators[de](I,Z)););return ae}function Nc(I,Z){var ae,de=[],pe=[],me=I.length,Oe=Z.length,Ae=Math.min(I.length,Z.length);for(ae=0;ae=1)return 1;var Z=I*I,ae=Z*I;return 4*(I<.5?ae:3*(I-Z)+ae-.75)}function nE(I){return 1-Math.cos(I*ut)}function rE(I){return Math.pow(2,10*(I-1))}function aE(I){return 1-Math.sqrt(1-I*I)}function iE(I){return I<.36363636363636365?7.5625*I*I:I<.7272727272727273?7.5625*(I-=.5454545454545454)*I+.75:I<.9090909090909091?7.5625*(I-=.8181818181818182)*I+.9375:7.5625*(I-=.9545454545454546)*I+.984375}function O2(I,Z){return Z-=I,function(ae){return Math.round(I+Z*ae)}}function P2(I){var Z,ae,de,pe=[I.a,I.b],me=[I.c,I.d],Oe=D2(pe),Ae=A2(pe,me),Ie=D2(((Z=me)[0]+=(de=-Ae)*(ae=pe)[0],Z[1]+=de*ae[1],Z))||0;pe[0]*me[1]=0?I.slice(0,ae):I,pe=ae>=0?I.slice(ae+1):"in";return de=K9.get(de)||S2,pe=J9.get(pe)||W,Z=pe(de.apply(null,f.call(arguments,1))),function(me){return me<=0?0:me>=1?1:Z(me)}},u.interpolateHcl=function(I,Z){I=u.hcl(I),Z=u.hcl(Z);var ae=I.h,de=I.c,pe=I.l,me=Z.h-ae,Oe=Z.c-de,Ae=Z.l-pe;return isNaN(Oe)&&(Oe=0,de=isNaN(de)?Z.c:de),isNaN(me)?(me=0,ae=isNaN(ae)?Z.h:ae):me>180?me-=360:me<-180&&(me+=360),function(Ie){return bt(ae+me*Ie,de+Oe*Ie,pe+Ae*Ie)+""}},u.interpolateHsl=function(I,Z){I=u.hsl(I),Z=u.hsl(Z);var ae=I.h,de=I.s,pe=I.l,me=Z.h-ae,Oe=Z.s-de,Ae=Z.l-pe;return isNaN(Oe)&&(Oe=0,de=isNaN(de)?Z.s:de),isNaN(me)?(me=0,ae=isNaN(ae)?Z.h:ae):me>180?me-=360:me<-180&&(me+=360),function(Ie){return Ge(ae+me*Ie,de+Oe*Ie,pe+Ae*Ie)+""}},u.interpolateLab=function(I,Z){I=u.lab(I),Z=u.lab(Z);var ae=I.l,de=I.a,pe=I.b,me=Z.l-ae,Oe=Z.a-de,Ae=Z.b-pe;return function(Ie){return mt(ae+me*Ie,de+Oe*Ie,pe+Ae*Ie)+""}},u.interpolateRound=O2,u.transform=function(I){var Z=p.createElementNS(u.ns.prefix.svg,"g");return(u.transform=function(ae){if(ae!=null){Z.setAttribute("transform",ae);var de=Z.transform.baseVal.consolidate()}return new P2(de?de.matrix:oE)})(I)},P2.prototype.toString=function(){return"translate("+this.translate+")rotate("+this.rotate+")skewX("+this.skew+")scale("+this.scale+")"};var oE={a:1,b:0,c:0,d:1,e:0,f:0};function pl(I){return I.length?I.pop()+",":""}function E2(I,Z){var ae=[],de=[];return I=u.transform(I),Z=u.transform(Z),function(pe,me,Oe,Ae){if(pe[0]!==me[0]||pe[1]!==me[1]){var Ie=Oe.push("translate(",null,",",null,")");Ae.push({i:Ie-4,x:Mi(pe[0],me[0])},{i:Ie-2,x:Mi(pe[1],me[1])})}else(me[0]||me[1])&&Oe.push("translate("+me+")")}(I.translate,Z.translate,ae,de),function(pe,me,Oe,Ae){pe!==me?(pe-me>180?me+=360:me-pe>180&&(pe+=360),Ae.push({i:Oe.push(pl(Oe)+"rotate(",null,")")-2,x:Mi(pe,me)})):me&&Oe.push(pl(Oe)+"rotate("+me+")")}(I.rotate,Z.rotate,ae,de),function(pe,me,Oe,Ae){pe!==me?Ae.push({i:Oe.push(pl(Oe)+"skewX(",null,")")-2,x:Mi(pe,me)}):me&&Oe.push(pl(Oe)+"skewX("+me+")")}(I.skew,Z.skew,ae,de),function(pe,me,Oe,Ae){if(pe[0]!==me[0]||pe[1]!==me[1]){var Ie=Oe.push(pl(Oe)+"scale(",null,",",null,")");Ae.push({i:Ie-4,x:Mi(pe[0],me[0])},{i:Ie-2,x:Mi(pe[1],me[1])})}else me[0]===1&&me[1]===1||Oe.push(pl(Oe)+"scale("+me+")")}(I.scale,Z.scale,ae,de),I=Z=null,function(pe){for(var me,Oe=-1,Ae=de.length;++Oe0?ae=dt:(I.c=null,I.t=NaN,I=null,Ae.end({type:"end",alpha:ae=0})):dt>0&&(Ae.start({type:"start",alpha:ae=dt}),I=dn(Oe.tick)),Oe):ae},Oe.start=function(){var dt,Ut,Ht,tn=_t.length,Qt=lt.length,mn=Ie[0],bn=Ie[1];for(dt=0;dt=0;)ae.push(pe[de])}function pi(I,Z){for(var ae=[I],de=[];(I=ae.pop())!=null;)if(de.push(I),(me=I.children)&&(pe=me.length))for(var pe,me,Oe=-1;++Oe=0;)Oe.push(He=je[Ie]),He.parent=me,He.depth=me.depth+1;ae&&(me.value=0),me.children=je}else ae&&(me.value=+ae.call(de,me,me.depth)||0),delete me.children;return pi(pe,function(Ke){var rt,xt;I&&(rt=Ke.children)&&rt.sort(I),ae&&(xt=Ke.parent)&&(xt.value+=Ke.value)}),Ae}return de.sort=function(pe){return arguments.length?(I=pe,de):I},de.children=function(pe){return arguments.length?(Z=pe,de):Z},de.value=function(pe){return arguments.length?(ae=pe,de):ae},de.revalue=function(pe){return ae&&(ks(pe,function(me){me.children&&(me.value=0)}),pi(pe,function(me){var Oe;me.children||(me.value=+ae.call(de,me,me.depth)||0),(Oe=me.parent)&&(Oe.value+=me.value)})),pe},de},u.layout.partition=function(){var I=u.layout.hierarchy(),Z=[1,1];function ae(me,Oe,Ae,Ie){var je=me.children;if(me.x=Oe,me.y=me.depth*Ie,me.dx=Ae,me.dy=Ie,je&&(He=je.length)){var He,Ke,rt,xt=-1;for(Ae=me.value?Ae/me.value:0;++xtAe&&(Ae=de),Oe.push(de)}for(ae=0;aepe&&(de=ae,pe=Z);return de}function CE(I){return I.reduce(OE,0)}function OE(I,Z){return I+Z[1]}function PE(I,Z){return $2(I,Math.ceil(Math.log(Z.length)/Math.LN2+1))}function $2(I,Z){for(var ae=-1,de=+I[0],pe=(I[1]-de)/Z,me=[];++ae<=Z;)me[ae]=pe*ae+de;return me}function AE(I){return[u.min(I),u.max(I)]}function DE(I,Z){return I.value-Z.value}function cg(I,Z){var ae=I._pack_next;I._pack_next=Z,Z._pack_prev=I,Z._pack_next=ae,ae._pack_prev=Z}function F2(I,Z){I._pack_next=Z,Z._pack_prev=I}function j2(I,Z){var ae=Z.x-I.x,de=Z.y-I.y,pe=I.r+Z.r;return .999*pe*pe>ae*ae+de*de}function N2(I){if((Z=I.children)&&(Ie=Z.length)){var Z,ae,de,pe,me,Oe,Ae,Ie,je=1/0,He=-1/0,Ke=1/0,rt=-1/0;if(Z.forEach(EE),(ae=Z[0]).x=-ae.r,ae.y=0,kt(ae),Ie>1&&((de=Z[1]).x=de.r,de.y=0,kt(de),Ie>2))for(z2(ae,de,pe=Z[2]),kt(pe),cg(ae,pe),ae._pack_prev=pe,cg(pe,de),de=ae._pack_next,me=3;me0)for(Oe=-1;++Oe=Ke[0]&&Ie<=Ke[1]&&((Ae=je[u.bisect(rt,Ie,1,Ot)-1]).y+=pt,Ae.push(me[Oe]));return je}return pe.value=function(me){return arguments.length?(Z=me,pe):Z},pe.range=function(me){return arguments.length?(ae=Wt(me),pe):ae},pe.bins=function(me){return arguments.length?(de=typeof me=="number"?function(Oe){return $2(Oe,me)}:Wt(me),pe):de},pe.frequency=function(me){return arguments.length?(I=!!me,pe):I},pe},u.layout.pack=function(){var I,Z=u.layout.hierarchy().sort(DE),ae=0,de=[1,1];function pe(me,Oe){var Ae=Z.call(this,me,Oe),Ie=Ae[0],je=de[0],He=de[1],Ke=I==null?Math.sqrt:typeof I=="function"?I:function(){return I};if(Ie.x=Ie.y=0,pi(Ie,function(xt){xt.r=+Ke(xt.value)}),pi(Ie,N2),ae){var rt=ae*(I?1:Math.max(2*Ie.r/je,2*Ie.r/He))/2;pi(Ie,function(xt){xt.r+=rt}),pi(Ie,N2),pi(Ie,function(xt){xt.r-=rt})}return B2(Ie,je/2,He/2,I?1:1/Math.max(2*Ie.r/je,2*Ie.r/He)),Ae}return pe.size=function(me){return arguments.length?(de=me,pe):de},pe.radius=function(me){return arguments.length?(I=me==null||typeof me=="function"?me:+me,pe):I},pe.padding=function(me){return arguments.length?(ae=+me,pe):ae},Ts(pe,Z)},u.layout.tree=function(){var I=u.layout.hierarchy().sort(null).value(null),Z=q2,ae=[1,1],de=null;function pe(Ie,je){var He=I.call(this,Ie,je),Ke=He[0],rt=function(kt){for(var dt,Ut={A:null,children:[kt]},Ht=[Ut];(dt=Ht.pop())!=null;)for(var tn,Qt=dt.children,mn=0,bn=Qt.length;mnOt.x&&(Ot=kt),kt.depth>pt.depth&&(pt=kt)});var _t=Z(xt,Ot)/2-xt.x,lt=ae[0]/(Ot.x+Z(Ot,xt)/2+_t),Dt=ae[1]/(pt.depth||1);ks(Ke,function(kt){kt.x=(kt.x+_t)*lt,kt.y=kt.depth*Dt})}return He}function me(Ie){var je=Ie.children,He=Ie.parent.children,Ke=Ie.i?He[Ie.i-1]:null;if(je.length){(function(xt){for(var Ot,pt=0,_t=0,lt=xt.children,Dt=lt.length;--Dt>=0;)(Ot=lt[Dt]).z+=pt,Ot.m+=pt,pt+=Ot.s+(_t+=Ot.c)})(Ie);var rt=(je[0].z+je[je.length-1].z)/2;Ke?(Ie.z=Ke.z+Z(Ie._,Ke._),Ie.m=Ie.z-rt):Ie.z=rt}else Ke&&(Ie.z=Ke.z+Z(Ie._,Ke._));Ie.parent.A=function(xt,Ot,pt){if(Ot){for(var _t,lt=xt,Dt=xt,kt=Ot,dt=lt.parent.children[0],Ut=lt.m,Ht=Dt.m,tn=kt.m,Qt=dt.m;kt=dg(kt),lt=fg(lt),kt&<)dt=fg(dt),(Dt=dg(Dt)).a=xt,(_t=kt.z+tn-lt.z-Ut+Z(kt._,lt._))>0&&(LE(IE(kt,xt,pt),xt,_t),Ut+=_t,Ht+=_t),tn+=kt.m,Ut+=lt.m,Qt+=dt.m,Ht+=Dt.m;kt&&!dg(Dt)&&(Dt.t=kt,Dt.m+=tn-Ht),lt&&!fg(dt)&&(dt.t=lt,dt.m+=Ut-Qt,pt=xt)}return pt}(Ie,Ke,Ie.parent.A||He[0])}function Oe(Ie){Ie._.x=Ie.z+Ie.parent.m,Ie.m+=Ie.parent.m}function Ae(Ie){Ie.x*=ae[0],Ie.y=Ie.depth*ae[1]}return pe.separation=function(Ie){return arguments.length?(Z=Ie,pe):Z},pe.size=function(Ie){return arguments.length?(de=(ae=Ie)==null?Ae:null,pe):de?null:ae},pe.nodeSize=function(Ie){return arguments.length?(de=(ae=Ie)==null?null:Ae,pe):de?ae:null},Ts(pe,I)},u.layout.cluster=function(){var I=u.layout.hierarchy().sort(null).value(null),Z=q2,ae=[1,1],de=!1;function pe(me,Oe){var Ae,Ie=I.call(this,me,Oe),je=Ie[0],He=0;pi(je,function(pt){var _t=pt.children;_t&&_t.length?(pt.x=function(lt){return lt.reduce(function(Dt,kt){return Dt+kt.x},0)/lt.length}(_t),pt.y=function(lt){return 1+u.max(lt,function(Dt){return Dt.y})}(_t)):(pt.x=Ae?He+=Z(pt,Ae):0,pt.y=0,Ae=pt)});var Ke=W2(je),rt=U2(je),xt=Ke.x-Z(Ke,rt)/2,Ot=rt.x+Z(rt,Ke)/2;return pi(je,de?function(pt){pt.x=(pt.x-je.x)*ae[0],pt.y=(je.y-pt.y)*ae[1]}:function(pt){pt.x=(pt.x-xt)/(Ot-xt)*ae[0],pt.y=(1-(je.y?pt.y/je.y:1))*ae[1]}),Ie}return pe.separation=function(me){return arguments.length?(Z=me,pe):Z},pe.size=function(me){return arguments.length?(de=(ae=me)==null,pe):de?null:ae},pe.nodeSize=function(me){return arguments.length?(de=(ae=me)!=null,pe):de?ae:null},Ts(pe,I)},u.layout.treemap=function(){var I,Z=u.layout.hierarchy(),ae=Math.round,de=[1,1],pe=null,me=pg,Oe=!1,Ae="squarify",Ie=.5*(1+Math.sqrt(5));function je(pt,_t){for(var lt,Dt,kt=-1,dt=pt.length;++kt0;)Ut.push(lt=Ht[kt-1]),Ut.area+=lt.area,Ae!=="squarify"||(Dt=rt(Ut,Qt))<=tn?(Ht.pop(),tn=Dt):(Ut.area-=Ut.pop().area,xt(Ut,Qt,dt,!1),Qt=Math.min(dt.dx,dt.dy),Ut.length=Ut.area=0,tn=1/0);Ut.length&&(xt(Ut,Qt,dt,!0),Ut.length=Ut.area=0),_t.forEach(He)}}function Ke(pt){var _t=pt.children;if(_t&&_t.length){var lt,Dt=me(pt),kt=_t.slice(),dt=[];for(je(kt,Dt.dx*Dt.dy/pt.value),dt.area=0;lt=kt.pop();)dt.push(lt),dt.area+=lt.area,lt.z!=null&&(xt(dt,lt.z?Dt.dx:Dt.dy,Dt,!kt.length),dt.length=dt.area=0);_t.forEach(Ke)}}function rt(pt,_t){for(var lt,Dt=pt.area,kt=0,dt=1/0,Ut=-1,Ht=pt.length;++Utkt&&(kt=lt));return _t*=_t,(Dt*=Dt)?Math.max(_t*kt*Ie/Dt,Dt/(_t*dt*Ie)):1/0}function xt(pt,_t,lt,Dt){var kt,dt=-1,Ut=pt.length,Ht=lt.x,tn=lt.y,Qt=_t?ae(pt.area/_t):0;if(_t==lt.dx){for((Dt||Qt>lt.dy)&&(Qt=lt.dy);++dtlt.dx)&&(Qt=lt.dx);++dt1);return I+Z*de*Math.sqrt(-2*Math.log(me)/me)}},logNormal:function(){var I=u.random.normal.apply(u,arguments);return function(){return Math.exp(I())}},bates:function(I){var Z=u.random.irwinHall(I);return function(){return Z()/I}},irwinHall:function(I){return function(){for(var Z=0,ae=0;ae2?jE:$E,je=de?sE:lE;return pe=Ie(I,Z,je,ae),me=Ie(Z,I,je,vo),Ae}function Ae(Ie){return pe(Ie)}return Ae.invert=function(Ie){return me(Ie)},Ae.domain=function(Ie){return arguments.length?(I=Ie.map(Number),Oe()):I},Ae.range=function(Ie){return arguments.length?(Z=Ie,Oe()):Z},Ae.rangeRound=function(Ie){return Ae.range(Ie).interpolate(O2)},Ae.clamp=function(Ie){return arguments.length?(de=Ie,Oe()):de},Ae.interpolate=function(Ie){return arguments.length?(ae=Ie,Oe()):ae},Ae.ticks=function(Ie){return mg(I,Ie)},Ae.tickFormat=function(Ie,je){return d3_scale_linearTickFormat(I,Ie,je)},Ae.nice=function(Ie){return X2(I,Ie),Oe()},Ae.copy=function(){return G2(I,Z,ae,de)},Oe()}function Y2(I,Z){return u.rebind(I,Z,"range","rangeRound","interpolate","clamp")}function X2(I,Z){return hg(I,V2(gg(I,Z)[2])),hg(I,V2(gg(I,Z)[2])),I}function gg(I,Z){Z==null&&(Z=10);var ae=Bc(I),de=ae[1]-ae[0],pe=Math.pow(10,Math.floor(Math.log(de/Z)/Math.LN10)),me=Z/de*pe;return me<=.15?pe*=10:me<=.35?pe*=5:me<=.75&&(pe*=2),ae[0]=Math.ceil(ae[0]/pe)*pe,ae[1]=Math.floor(ae[1]/pe)*pe+.5*pe,ae[2]=pe,ae}function mg(I,Z){return u.range.apply(u,gg(I,Z))}function Z2(I,Z,ae,de){function pe(Ae){return(ae?Math.log(Ae<0?0:Ae):-Math.log(Ae>0?0:-Ae))/Math.log(Z)}function me(Ae){return ae?Math.pow(Z,Ae):-Math.pow(Z,-Ae)}function Oe(Ae){return I(pe(Ae))}return Oe.invert=function(Ae){return me(I.invert(Ae))},Oe.domain=function(Ae){return arguments.length?(ae=Ae[0]>=0,I.domain((de=Ae.map(Number)).map(pe)),Oe):de},Oe.base=function(Ae){return arguments.length?(Z=+Ae,I.domain(de.map(pe)),Oe):Z},Oe.nice=function(){var Ae=hg(de.map(pe),ae?Math:NE);return I.domain(Ae),de=Ae.map(me),Oe},Oe.ticks=function(){var Ae=Bc(de),Ie=[],je=Ae[0],He=Ae[1],Ke=Math.floor(pe(je)),rt=Math.ceil(pe(He)),xt=Z%1?2:Z;if(isFinite(rt-Ke)){if(ae){for(;Ke0;Ot--)Ie.push(me(Ke)*Ot);for(Ke=0;Ie[Ke]He;rt--);Ie=Ie.slice(Ke,rt)}return Ie},Oe.copy=function(){return Z2(I.copy(),Z,ae,de)},Y2(Oe,I)}u.scale.linear=function(){return G2([0,1],[0,1],vo,!1)},u.scale.log=function(){return Z2(u.scale.linear().domain([0,1]),10,!0,[1,10])};var NE={floor:function(I){return-Math.ceil(-I)},ceil:function(I){return-Math.floor(-I)}};function K2(I,Z,ae){var de=qc(Z),pe=qc(1/Z);function me(Oe){return I(de(Oe))}return me.invert=function(Oe){return pe(I.invert(Oe))},me.domain=function(Oe){return arguments.length?(I.domain((ae=Oe.map(Number)).map(de)),me):ae},me.ticks=function(Oe){return mg(ae,Oe)},me.tickFormat=function(Oe,Ae){return d3_scale_linearTickFormat(ae,Oe,Ae)},me.nice=function(Oe){return me.domain(X2(ae,Oe))},me.exponent=function(Oe){return arguments.length?(de=qc(Z=Oe),pe=qc(1/Z),I.domain(ae.map(de)),me):Z},me.copy=function(){return K2(I.copy(),Z,ae)},Y2(me,I)}function qc(I){return function(Z){return Z<0?-Math.pow(-Z,I):Math.pow(Z,I)}}function J2(I,Z){var ae,de,pe;function me(Ae){return de[((ae.get(Ae)||(Z.t==="range"?ae.set(Ae,I.push(Ae)):NaN))-1)%de.length]}function Oe(Ae,Ie){return u.range(I.length).map(function(je){return Ae+Ie*je})}return me.domain=function(Ae){if(!arguments.length)return I;I=[],ae=new D;for(var Ie,je=-1,He=Ae.length;++je0?ae[me-1]:I[0],mert?0:1;if(He=Ze)return Ie(He,Ot)+(je?Ie(je,1-Ot):"")+"Z";var pt,_t,lt,Dt,kt,dt,Ut,Ht,tn,Qt,mn,bn,Cn=0,xn=0,Hn=[];if((Dt=(+Oe.apply(this,arguments)||0)/2)&&(lt=de===Wc?Math.sqrt(je*je+He*He):+de.apply(this,arguments),Ot||(xn*=-1),He&&(xn=Mt(lt/He*Math.sin(Dt))),je&&(Cn=Mt(lt/je*Math.sin(Dt)))),He){kt=He*Math.cos(Ke+xn),dt=He*Math.sin(Ke+xn),Ut=He*Math.cos(rt-xn),Ht=He*Math.sin(rt-xn);var Jn=Math.abs(rt-Ke-2*xn)<=it?0:1;if(xn&&Uc(kt,dt,Ut,Ht)===Ot^Jn){var br=(Ke+rt)/2;kt=He*Math.cos(br),dt=He*Math.sin(br),Ut=Ht=null}}else kt=dt=0;if(je){tn=je*Math.cos(rt-Cn),Qt=je*Math.sin(rt-Cn),mn=je*Math.cos(Ke+Cn),bn=je*Math.sin(Ke+Cn);var nn=Math.abs(Ke-rt+2*Cn)<=it?0:1;if(Cn&&Uc(tn,Qt,mn,bn)===1-Ot^nn){var pn=(Ke+rt)/2;tn=je*Math.cos(pn),Qt=je*Math.sin(pn),mn=bn=null}}else tn=Qt=0;if(xt>Ne&&(pt=Math.min(Math.abs(He-je)/2,+ae.apply(this,arguments)))>.001){_t=je0?0:1}function Hc(I,Z,ae,de,pe){var me=I[0]-Z[0],Oe=I[1]-Z[1],Ae=(pe?de:-de)/Math.sqrt(me*me+Oe*Oe),Ie=Ae*Oe,je=-Ae*me,He=I[0]+Ie,Ke=I[1]+je,rt=Z[0]+Ie,xt=Z[1]+je,Ot=(He+rt)/2,pt=(Ke+xt)/2,_t=rt-He,lt=xt-Ke,Dt=_t*_t+lt*lt,kt=ae-de,dt=He*xt-rt*Ke,Ut=(lt<0?-1:1)*Math.sqrt(Math.max(0,kt*kt*Dt-dt*dt)),Ht=(dt*lt-_t*Ut)/Dt,tn=(-dt*_t-lt*Ut)/Dt,Qt=(dt*lt+_t*Ut)/Dt,mn=(-dt*_t+lt*Ut)/Dt,bn=Ht-Ot,Cn=tn-pt,xn=Qt-Ot,Hn=mn-pt;return bn*bn+Cn*Cn>xn*xn+Hn*Hn&&(Ht=Qt,tn=mn),[[Ht-Ie,tn-je],[Ht*ae/kt,tn*ae/kt]]}function iw(){return!0}function ow(I){var Z=Bn,ae=In,de=iw,pe=ii,me=pe.key,Oe=.7;function Ae(Ie){var je,He=[],Ke=[],rt=-1,xt=Ie.length,Ot=Wt(Z),pt=Wt(ae);function _t(){He.push("M",pe(I(Ke),Oe))}for(;++rt1&&pe.push("H",de[0]),pe.join("")},"step-before":yg,"step-after":bg,basis:sw,"basis-open":function(I){if(I.length<4)return ii(I);for(var Z,ae=[],de=-1,pe=I.length,me=[0],Oe=[0];++de<3;)Z=I[de],me.push(Z[0]),Oe.push(Z[1]);for(ae.push(Ua(Yi,me)+","+Ua(Yi,Oe)),--de;++de9&&(me=3*ae/Math.sqrt(me),Ae[Ie]=me*de,Ae[Ie+1]=me*pe);for(Ie=-1;++Ie<=je;)me=(Z[Math.min(je,Ie+1)][0]-Z[Math.max(0,Ie-1)][0])/(6*(1+Ae[Ie]*Ae[Ie])),Oe.push([me||0,Ae[Ie]*me||0]);return Oe}(I))}});function ii(I){return I.length>1?I.join("L"):I+"Z"}function lw(I){return I.join("L")+"Z"}function yg(I){for(var Z=0,ae=I.length,de=I[0],pe=[de[0],",",de[1]];++Z1){Ae=Z[1],me=I[Ie],Ie++,de+="C"+(pe[0]+Oe[0])+","+(pe[1]+Oe[1])+","+(me[0]-Ae[0])+","+(me[1]-Ae[1])+","+me[0]+","+me[1];for(var je=2;jeit)+",1 "+He}function Ie(je,He,Ke,rt){return"Q 0,0 "+rt}return me.radius=function(je){return arguments.length?(ae=Wt(je),me):ae},me.source=function(je){return arguments.length?(I=Wt(je),me):I},me.target=function(je){return arguments.length?(Z=Wt(je),me):Z},me.startAngle=function(je){return arguments.length?(de=Wt(je),me):de},me.endAngle=function(je){return arguments.length?(pe=Wt(je),me):pe},me},u.svg.diagonal=function(){var I=pw,Z=hw,ae=gw;function de(pe,me){var Oe=I.call(this,pe,me),Ae=Z.call(this,pe,me),Ie=(Oe.y+Ae.y)/2,je=[Oe,{x:Oe.x,y:Ie},{x:Ae.x,y:Ie},Ae];return"M"+(je=je.map(ae))[0]+"C"+je[1]+" "+je[2]+" "+je[3]}return de.source=function(pe){return arguments.length?(I=Wt(pe),de):I},de.target=function(pe){return arguments.length?(Z=Wt(pe),de):Z},de.projection=function(pe){return arguments.length?(ae=pe,de):ae},de},u.svg.diagonal.radial=function(){var I=u.svg.diagonal(),Z=gw,ae=I.projection;return I.projection=function(de){return arguments.length?ae(function(pe){return function(){var me=pe.apply(this,arguments),Oe=me[0],Ae=me[1]-ut;return[Oe*Math.cos(Ae),Oe*Math.sin(Ae)]}}(Z=de)):Z},I},u.svg.symbol=function(){var I=ZE,Z=XE;function ae(de,pe){return(vw.get(I.call(this,de,pe))||mw)(Z.call(this,de,pe))}return ae.type=function(de){return arguments.length?(I=Wt(de),ae):I},ae.size=function(de){return arguments.length?(Z=Wt(de),ae):Z},ae};var vw=u.map({circle:mw,cross:function(I){var Z=Math.sqrt(I/5)/2;return"M"+-3*Z+","+-Z+"H"+-Z+"V"+-3*Z+"H"+Z+"V"+-Z+"H"+3*Z+"V"+Z+"H"+Z+"V"+3*Z+"H"+-Z+"V"+Z+"H"+-3*Z+"Z"},diamond:function(I){var Z=Math.sqrt(I/(2*yw)),ae=Z*yw;return"M0,"+-Z+"L"+ae+",0 0,"+Z+" "+-ae+",0Z"},square:function(I){var Z=Math.sqrt(I)/2;return"M"+-Z+","+-Z+"L"+Z+","+-Z+" "+Z+","+Z+" "+-Z+","+Z+"Z"},"triangle-down":function(I){var Z=Math.sqrt(I/Gc),ae=Z*Gc/2;return"M0,"+ae+"L"+Z+","+-ae+" "+-Z+","+-ae+"Z"},"triangle-up":function(I){var Z=Math.sqrt(I/Gc),ae=Z*Gc/2;return"M0,"+-ae+"L"+Z+","+ae+" "+-Z+","+ae+"Z"}});u.svg.symbolTypes=vw.keys();var Gc=Math.sqrt(3),yw=Math.tan(30*gt);se.transition=function(I){for(var Z,ae,de=yo||++xw,pe=kg(I),me=[],Oe=Xc||{time:Date.now(),ease:tE,delay:0,duration:250},Ae=-1,Ie=this.length;++Ae0;)je[--lt].call(I,_t);if(pt>=1)return Ke.event&&Ke.event.end.call(I,I.__data__,Z),--He.count?delete He[de]:delete I[ae],1}Ke||(me=pe.time,Oe=dn(function(Ot){var pt=Ke.delay;if(Oe.t=pt+me,pt<=Ot)return rt(Ot-pt);Oe.c=rt},0,me),Ke=He[de]={tween:new D,time:me,timer:Oe,delay:pe.delay,duration:pe.duration,ease:pe.ease,index:Z},pe=null,++He.count)}Ur.call=se.call,Ur.empty=se.empty,Ur.node=se.node,Ur.size=se.size,u.transition=function(I,Z){return I&&I.transition?yo?I.transition(Z):I:u.selection().transition(I)},u.transition.prototype=Ur,Ur.select=function(I){var Z,ae,de,pe=this.id,me=this.namespace,Oe=[];I=he(I);for(var Ae=-1,Ie=this.length;++Aerect,.s>rect").attr("width",me[1]-me[0])}function xt(pt){pt.select(".extent").attr("y",Oe[0]),pt.selectAll(".extent,.e>rect,.w>rect").attr("height",Oe[1]-Oe[0])}function Ot(){var pt,_t,lt=this,Dt=u.select(u.event.target),kt=ae.of(lt,arguments),dt=u.select(lt),Ut=Dt.datum(),Ht=!/^(n|s)$/.test(Ut)&&de,tn=!/^(e|w)$/.test(Ut)&&pe,Qt=Dt.classed("extent"),mn=st(lt),bn=u.mouse(lt),Cn=u.select(m(lt)).on("keydown.brush",function(){u.event.keyCode==32&&(Qt||(pt=null,bn[0]-=me[1],bn[1]-=Oe[1],Qt=2),ee())}).on("keyup.brush",function(){u.event.keyCode==32&&Qt==2&&(bn[0]+=me[1],bn[1]+=Oe[1],Qt=0,ee())});if(u.event.changedTouches?Cn.on("touchmove.brush",Jn).on("touchend.brush",nn):Cn.on("mousemove.brush",Jn).on("mouseup.brush",nn),dt.interrupt().selectAll("*").interrupt(),Qt)bn[0]=me[0]-bn[0],bn[1]=Oe[0]-bn[1];else if(Ut){var xn=+/w$/.test(Ut),Hn=+/^n/.test(Ut);_t=[me[1-xn]-bn[0],Oe[1-Hn]-bn[1]],bn[0]=me[xn],bn[1]=Oe[Hn]}else u.event.altKey&&(pt=bn.slice());function Jn(){var pn=u.mouse(lt),Rn=!1;_t&&(pn[0]+=_t[0],pn[1]+=_t[1]),Qt||(u.event.altKey?(pt||(pt=[(me[0]+me[1])/2,(Oe[0]+Oe[1])/2]),bn[0]=me[+(pn[0]1?L-1:0),U=1;U1?L-1:0),U=1;U1?L-1:0),U=1;U1?L-1:0),U=1;U"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch{return!1}}()?Reflect.construct:function($,P,z){var B=[null];B.push.apply(B,P);var N=new(Function.bind.apply($,B));return z&&m(N,z.prototype),N},h.apply(null,arguments)}function m(D,O){return m=Object.setPrototypeOf||function(R,$){return R.__proto__=$,R},m(D,O)}function y(D){return y=Object.setPrototypeOf?Object.getPrototypeOf:function(O){return O.__proto__||Object.getPrototypeOf(O)},y(D)}function v(D){return v=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(O){return typeof O}:function(O){return O&&typeof Symbol=="function"&&O.constructor===Symbol&&O!==Symbol.prototype?"symbol":typeof O},v(D)}var g=n(43827).inspect,b=n(79616).codes.ERR_INVALID_ARG_TYPE;function w(D,O,R){return(R===void 0||R>D.length)&&(R=D.length),D.substring(R-O.length,R)===O}var _="",x="",k="",T="",S={deepStrictEqual:"Expected values to be strictly deep-equal:",strictEqual:"Expected values to be strictly equal:",strictEqualObject:'Expected "actual" to be reference-equal to "expected":',deepEqual:"Expected values to be loosely deep-equal:",equal:"Expected values to be loosely equal:",notDeepStrictEqual:'Expected "actual" not to be strictly deep-equal to:',notStrictEqual:'Expected "actual" to be strictly unequal to:',notStrictEqualObject:'Expected "actual" not to be reference-equal to "expected":',notDeepEqual:'Expected "actual" not to be loosely deep-equal to:',notEqual:'Expected "actual" to be loosely unequal to:',notIdentical:"Values identical but not reference-equal:"};function M(D){var O=Object.keys(D),R=Object.create(Object.getPrototypeOf(D));return O.forEach(function($){R[$]=D[$]}),Object.defineProperty(R,"message",{value:D.message}),R}function C(D){return g(D,{compact:!1,customInspect:!1,depth:1e3,maxArrayLength:1/0,showHidden:!1,breakLength:1/0,showProxy:!1,sorted:!0,getters:!0})}var A=function(D){function O(P){var z;if(function(te,ee){if(!(te instanceof ee))throw new TypeError("Cannot call a class as a function")}(this,O),v(P)!=="object"||P===null)throw new b("options","Object",P);var B=P.message,N=P.operator,j=P.stackStartFn,F=P.actual,E=P.expected,W=Error.stackTraceLimit;if(Error.stackTraceLimit=0,B!=null)z=f(this,y(O).call(this,String(B)));else if(l.stderr&&l.stderr.isTTY&&(l.stderr&&l.stderr.getColorDepth&&l.stderr.getColorDepth()!==1?(_="\x1B[34m",x="\x1B[32m",T="\x1B[39m",k="\x1B[31m"):(_="",x="",T="",k="")),v(F)==="object"&&F!==null&&v(E)==="object"&&E!==null&&"stack"in F&&F instanceof Error&&"stack"in E&&E instanceof Error&&(F=M(F),E=M(E)),N==="deepStrictEqual"||N==="strictEqual")z=f(this,y(O).call(this,function(te,ee,K){var Q="",G="",X=0,Y="",re=!1,ie=C(te),le=ie.split(` +`),se=C(ee).split(` +`),he=0,_e="";if(K==="strictEqual"&&v(te)==="object"&&v(ee)==="object"&&te!==null&&ee!==null&&(K="strictEqualObject"),le.length===1&&se.length===1&&le[0]!==se[0]){var Me=le[0].length+se[0].length;if(Me<=10){if(!(v(te)==="object"&&te!==null||v(ee)==="object"&&ee!==null||te===0&&ee===0))return"".concat(S[K],` + +`)+"".concat(le[0]," !== ").concat(se[0],` +`)}else if(K!=="strictEqualObject"&&Me<(l.stderr&&l.stderr.isTTY?l.stderr.columns:80)){for(;le[0][he]===se[0][he];)he++;he>2&&(_e=` + `.concat(function(we,ke){if(ke=Math.floor(ke),we.length==0||ke==0)return"";var Pe=we.length*ke;for(ke=Math.floor(Math.log(ke)/Math.log(2));ke;)we+=we,ke--;return we+we.substring(0,Pe-we.length)}(" ",he),"^"),he=0)}}for(var Ce=le[le.length-1],Se=se[se.length-1];Ce===Se&&(he++<2?Y=` + `.concat(Ce).concat(Y):Q=Ce,le.pop(),se.pop(),le.length!==0&&se.length!==0);)Ce=le[le.length-1],Se=se[se.length-1];var ce=Math.max(le.length,se.length);if(ce===0){var ye=ie.split(` +`);if(ye.length>30)for(ye[26]="".concat(_,"...").concat(T);ye.length>27;)ye.pop();return"".concat(S.notIdentical,` + +`).concat(ye.join(` +`),` +`)}he>3&&(Y=` +`.concat(_,"...").concat(T).concat(Y),re=!0),Q!==""&&(Y=` + `.concat(Q).concat(Y),Q="");var V=0,ne=S[K]+` +`.concat(x,"+ actual").concat(T," ").concat(k,"- expected").concat(T),fe=" ".concat(_,"...").concat(T," Lines skipped");for(he=0;he1&&he>2&&(xe>4?(G+=` +`.concat(_,"...").concat(T),re=!0):xe>3&&(G+=` + `.concat(se[he-2]),V++),G+=` + `.concat(se[he-1]),V++),X=he,Q+=` +`.concat(k,"-").concat(T," ").concat(se[he]),V++;else if(se.length1&&he>2&&(xe>4?(G+=` +`.concat(_,"...").concat(T),re=!0):xe>3&&(G+=` + `.concat(le[he-2]),V++),G+=` + `.concat(le[he-1]),V++),X=he,G+=` +`.concat(x,"+").concat(T," ").concat(le[he]),V++;else{var ue=se[he],ge=le[he],be=ge!==ue&&(!w(ge,",")||ge.slice(0,-1)!==ue);be&&w(ue,",")&&ue.slice(0,-1)===ge&&(be=!1,ge+=","),be?(xe>1&&he>2&&(xe>4?(G+=` +`.concat(_,"...").concat(T),re=!0):xe>3&&(G+=` + `.concat(le[he-2]),V++),G+=` + `.concat(le[he-1]),V++),X=he,G+=` +`.concat(x,"+").concat(T," ").concat(ge),Q+=` +`.concat(k,"-").concat(T," ").concat(ue),V+=2):(G+=Q,Q="",xe!==1&&he!==0||(G+=` + `.concat(ge),V++))}if(V>20&&he30)for(L[26]="".concat(_,"...").concat(T);L.length>27;)L.pop();z=L.length===1?f(this,y(O).call(this,"".concat(H," ").concat(L[0]))):f(this,y(O).call(this,"".concat(H,` + +`).concat(L.join(` +`),` +`)))}else{var q=C(F),U="",J=S[N];N==="notDeepEqual"||N==="notEqual"?(q="".concat(S[N],` + +`).concat(q)).length>1024&&(q="".concat(q.slice(0,1021),"...")):(U="".concat(C(E)),q.length>512&&(q="".concat(q.slice(0,509),"...")),U.length>512&&(U="".concat(U.slice(0,509),"...")),N==="deepEqual"||N==="equal"?q="".concat(J,` + +`).concat(q,` + +should equal + +`):U=" ".concat(N," ").concat(U)),z=f(this,y(O).call(this,"".concat(q).concat(U)))}return Error.stackTraceLimit=W,z.generatedMessage=!B,Object.defineProperty(d(z),"name",{value:"AssertionError [ERR_ASSERTION]",enumerable:!1,writable:!0,configurable:!0}),z.code="ERR_ASSERTION",z.actual=F,z.expected=E,z.operator=N,Error.captureStackTrace&&Error.captureStackTrace(d(z),j),z.stack,z.name="AssertionError",f(z)}var R,$;return function(P,z){if(typeof z!="function"&&z!==null)throw new TypeError("Super expression must either be null or a function");P.prototype=Object.create(z&&z.prototype,{constructor:{value:P,writable:!0,configurable:!0}}),z&&m(P,z)}(O,D),R=O,$=[{key:"toString",value:function(){return"".concat(this.name," [").concat(this.code,"]: ").concat(this.message)}},{key:g.custom,value:function(P,z){return g(this,function(B){for(var N=1;N2?"one of ".concat(v," ").concat(y.slice(0,g-1).join(", "),", or ")+y[g-1]:g===2?"one of ".concat(v," ").concat(y[0]," or ").concat(y[1]):"of ".concat(v," ").concat(y[0])}return"of ".concat(v," ").concat(String(y))}h("ERR_AMBIGUOUS_ARGUMENT",'The "%s" argument is ambiguous. %s',TypeError),h("ERR_INVALID_ARG_TYPE",function(y,v,g){var b,w,_,x,k;if(f===void 0&&(f=n(32791)),f(typeof y=="string","'name' must be a string"),typeof v=="string"&&(w="not ",v.substr(0,4)===w)?(b="must not be",v=v.replace(/^not /,"")):b="must be",function(S,M,C){return(C===void 0||C>S.length)&&(C=S.length),S.substring(C-9,C)===M}(y," argument"))_="The ".concat(y," ").concat(b," ").concat(m(v,"type"));else{var T=(typeof k!="number"&&(k=0),k+1>(x=y).length||x.indexOf(".",k)===-1?"argument":"property");_='The "'.concat(y,'" ').concat(T," ").concat(b," ").concat(m(v,"type"))}return _+". Received type ".concat(l(g))},TypeError),h("ERR_INVALID_ARG_VALUE",function(y,v){var g=arguments.length>2&&arguments[2]!==void 0?arguments[2]:"is invalid";d===void 0&&(d=n(43827));var b=d.inspect(v);return b.length>128&&(b="".concat(b.slice(0,128),"...")),"The argument '".concat(y,"' ").concat(g,". Received ").concat(b)},TypeError),h("ERR_INVALID_RETURN_VALUE",function(y,v,g){var b;return b=g&&g.constructor&&g.constructor.name?"instance of ".concat(g.constructor.name):"type ".concat(l(g)),"Expected ".concat(y,' to be returned from the "').concat(v,'"')+" function but got ".concat(b,".")},TypeError),h("ERR_MISSING_ARGS",function(){for(var y=arguments.length,v=new Array(y),g=0;g0,"At least one arg needs to be specified");var b="The ",w=v.length;switch(v=v.map(function(_){return'"'.concat(_,'"')}),w){case 1:b+="".concat(v[0]," argument");break;case 2:b+="".concat(v[0]," and ").concat(v[1]," arguments");break;default:b+=v.slice(0,w-1).join(", "),b+=", and ".concat(v[w-1]," arguments")}return"".concat(b," must be specified")},TypeError),o.exports.codes=p},74061:function(o,a,n){function l(X,Y){return function(re){if(Array.isArray(re))return re}(X)||function(re,ie){var le=[],se=!0,he=!1,_e=void 0;try{for(var Me,Ce=re[Symbol.iterator]();!(se=(Me=Ce.next()).done)&&(le.push(Me.value),!ie||le.length!==ie);se=!0);}catch(Se){he=!0,_e=Se}finally{try{se||Ce.return==null||Ce.return()}finally{if(he)throw _e}}return le}(X,Y)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance")}()}function c(X){return c=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(Y){return typeof Y}:function(Y){return Y&&typeof Symbol=="function"&&Y.constructor===Symbol&&Y!==Symbol.prototype?"symbol":typeof Y},c(X)}var u=/a/g.flags!==void 0,f=function(X){var Y=[];return X.forEach(function(re){return Y.push(re)}),Y},d=function(X){var Y=[];return X.forEach(function(re,ie){return Y.push([ie,re])}),Y},p=Object.is?Object.is:n(64003),h=Object.getOwnPropertySymbols?Object.getOwnPropertySymbols:function(){return[]},m=Number.isNaN?Number.isNaN:n(15567);function y(X){return X.call.bind(X)}var v=y(Object.prototype.hasOwnProperty),g=y(Object.prototype.propertyIsEnumerable),b=y(Object.prototype.toString),w=n(43827).types,_=w.isAnyArrayBuffer,x=w.isArrayBufferView,k=w.isDate,T=w.isMap,S=w.isRegExp,M=w.isSet,C=w.isNativeError,A=w.isBoxedPrimitive,D=w.isNumberObject,O=w.isStringObject,R=w.isBooleanObject,$=w.isBigIntObject,P=w.isSymbolObject,z=w.isFloat32Array,B=w.isFloat64Array;function N(X){if(X.length===0||X.length>10)return!0;for(var Y=0;Y57)return!0}return X.length===10&&X>=Math.pow(2,32)}function j(X){return Object.keys(X).filter(N).concat(h(X).filter(Object.prototype.propertyIsEnumerable.bind(X)))}function F(X,Y){if(X===Y)return 0;for(var re=X.length,ie=Y.length,le=0,se=Math.min(re,ie);le0?g-4:g;for(y=0;y>16&255,w[_++]=m>>8&255,w[_++]=255&m;return b===2&&(m=l[h.charCodeAt(y)]<<2|l[h.charCodeAt(y+1)]>>4,w[_++]=255&m),b===1&&(m=l[h.charCodeAt(y)]<<10|l[h.charCodeAt(y+1)]<<4|l[h.charCodeAt(y+2)]>>2,w[_++]=m>>8&255,w[_++]=255&m),w},a.fromByteArray=function(h){for(var m,y=h.length,v=y%3,g=[],b=16383,w=0,_=y-v;w<_;w+=b)g.push(p(h,w,w+b>_?_:w+b));return v===1?(m=h[y-1],g.push(n[m>>2]+n[m<<4&63]+"==")):v===2&&(m=(h[y-2]<<8)+h[y-1],g.push(n[m>>10]+n[m>>4&63]+n[m<<2&63]+"=")),g.join("")};for(var n=[],l=[],c=typeof Uint8Array<"u"?Uint8Array:Array,u="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",f=0;f<64;++f)n[f]=u[f],l[u.charCodeAt(f)]=f;function d(h){var m=h.length;if(m%4>0)throw new Error("Invalid string. Length must be a multiple of 4");var y=h.indexOf("=");return y===-1&&(y=m),[y,y===m?0:4-y%4]}function p(h,m,y){for(var v,g,b=[],w=m;w>18&63]+n[g>>12&63]+n[g>>6&63]+n[63&g]);return b.join("")}l["-".charCodeAt(0)]=62,l["_".charCodeAt(0)]=63},6614:function(o,a,n){var l=n(68318),c=n(68222),u=c(l("String.prototype.indexOf"));o.exports=function(f,d){var p=l(f,!!d);return typeof p=="function"&&u(f,".prototype.")>-1?c(p):p}},68222:function(o,a,n){var l=n(77575),c=n(68318),u=c("%Function.prototype.apply%"),f=c("%Function.prototype.call%"),d=c("%Reflect.apply%",!0)||l.call(f,u),p=c("%Object.getOwnPropertyDescriptor%",!0),h=c("%Object.defineProperty%",!0),m=c("%Math.max%");if(h)try{h({},"a",{value:1})}catch{h=null}o.exports=function(v){var g=d(l,f,arguments);return p&&h&&p(g,"length").configurable&&h(g,"length",{value:1+m(0,v.length-(arguments.length-1))}),g};var y=function(){return d(l,u,arguments)};h?h(o.exports,"apply",{value:y}):o.exports.apply=y},60721:function(o,a,n){function l(_,x){if((k=(_=x?_.toExponential(x-1):_.toExponential()).indexOf("e"))<0)return null;var k,T=_.slice(0,k);return[T.length>1?T[0]+T.slice(2):T,+_.slice(k+1)]}n.d(a,{WU:function(){return v},FF:function(){return w}});var c,u=/^(?:(.)?([<>=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i;function f(_){if(!(x=u.exec(_)))throw new Error("invalid format: "+_);var x;return new d({fill:x[1],align:x[2],sign:x[3],symbol:x[4],zero:x[5],width:x[6],comma:x[7],precision:x[8]&&x[8].slice(1),trim:x[9],type:x[10]})}function d(_){this.fill=_.fill===void 0?" ":_.fill+"",this.align=_.align===void 0?">":_.align+"",this.sign=_.sign===void 0?"-":_.sign+"",this.symbol=_.symbol===void 0?"":_.symbol+"",this.zero=!!_.zero,this.width=_.width===void 0?void 0:+_.width,this.comma=!!_.comma,this.precision=_.precision===void 0?void 0:+_.precision,this.trim=!!_.trim,this.type=_.type===void 0?"":_.type+""}function p(_,x){var k=l(_,x);if(!k)return _+"";var T=k[0],S=k[1];return S<0?"0."+new Array(-S).join("0")+T:T.length>S+1?T.slice(0,S+1)+"."+T.slice(S+1):T+new Array(S-T.length+2).join("0")}f.prototype=d.prototype,d.prototype.toString=function(){return this.fill+this.align+this.sign+this.symbol+(this.zero?"0":"")+(this.width===void 0?"":Math.max(1,0|this.width))+(this.comma?",":"")+(this.precision===void 0?"":"."+Math.max(0,0|this.precision))+(this.trim?"~":"")+this.type};var h={"%":function(_,x){return(100*_).toFixed(x)},b:function(_){return Math.round(_).toString(2)},c:function(_){return _+""},d:function(_){return Math.abs(_=Math.round(_))>=1e21?_.toLocaleString("en").replace(/,/g,""):_.toString(10)},e:function(_,x){return _.toExponential(x)},f:function(_,x){return _.toFixed(x)},g:function(_,x){return _.toPrecision(x)},o:function(_){return Math.round(_).toString(8)},p:function(_,x){return p(100*_,x)},r:p,s:function(_,x){var k=l(_,x);if(!k)return _+"";var T=k[0],S=k[1],M=S-(c=3*Math.max(-8,Math.min(8,Math.floor(S/3))))+1,C=T.length;return M===C?T:M>C?T+new Array(M-C+1).join("0"):M>0?T.slice(0,M)+"."+T.slice(M):"0."+new Array(1-M).join("0")+l(_,Math.max(0,x+M-1))[0]},X:function(_){return Math.round(_).toString(16).toUpperCase()},x:function(_){return Math.round(_).toString(16)}};function m(_){return _}var y,v,g=Array.prototype.map,b=["y","z","a","f","p","n","µ","m","","k","M","G","T","P","E","Z","Y"];function w(_){var x,k,T=_.grouping===void 0||_.thousands===void 0?m:(x=g.call(_.grouping,Number),k=_.thousands+"",function(P,z){for(var B=P.length,N=[],j=0,F=x[0],E=0;B>0&&F>0&&(E+F+1>z&&(F=Math.max(1,z-E)),N.push(P.substring(B-=F,B+F)),!((E+=F+1)>z));)F=x[j=(j+1)%x.length];return N.reverse().join(k)}),S=_.currency===void 0?"":_.currency[0]+"",M=_.currency===void 0?"":_.currency[1]+"",C=_.decimal===void 0?".":_.decimal+"",A=_.numerals===void 0?m:function(P){return function(z){return z.replace(/[0-9]/g,function(B){return P[+B]})}}(g.call(_.numerals,String)),D=_.percent===void 0?"%":_.percent+"",O=_.minus===void 0?"-":_.minus+"",R=_.nan===void 0?"NaN":_.nan+"";function $(P){var z=(P=f(P)).fill,B=P.align,N=P.sign,j=P.symbol,F=P.zero,E=P.width,W=P.comma,H=P.precision,L=P.trim,q=P.type;q==="n"?(W=!0,q="g"):h[q]||(H===void 0&&(H=12),L=!0,q="g"),(F||z==="0"&&B==="=")&&(F=!0,z="0",B="=");var U=j==="$"?S:j==="#"&&/[boxX]/.test(q)?"0"+q.toLowerCase():"",J=j==="$"?M:/[%p]/.test(q)?D:"",te=h[q],ee=/[defgprs%]/.test(q);function K(Q){var G,X,Y,re=U,ie=J;if(q==="c")ie=te(Q)+ie,Q="";else{var le=(Q=+Q)<0||1/Q<0;if(Q=isNaN(Q)?R:te(Math.abs(Q),H),L&&(Q=function(_e){e:for(var Me,Ce=_e.length,Se=1,ce=-1;Se0&&(ce=0)}return ce>0?_e.slice(0,ce)+_e.slice(Me+1):_e}(Q)),le&&+Q==0&&N!=="+"&&(le=!1),re=(le?N==="("?N:O:N==="-"||N==="("?"":N)+re,ie=(q==="s"?b[8+c/3]:"")+ie+(le&&N==="("?")":""),ee){for(G=-1,X=Q.length;++G(Y=Q.charCodeAt(G))||Y>57){ie=(Y===46?C+Q.slice(G+1):Q.slice(G))+ie,Q=Q.slice(0,G);break}}}W&&!F&&(Q=T(Q,1/0));var se=re.length+Q.length+ie.length,he=se>1)+re+Q+ie+he.slice(se);break;default:Q=he+re+Q+ie}return A(Q)}return H=H===void 0?6:/[gprs]/.test(q)?Math.max(1,Math.min(21,H)):Math.max(0,Math.min(20,H)),K.toString=function(){return P+""},K}return{format:$,formatPrefix:function(P,z){var B,N=$(((P=f(P)).type="f",P)),j=3*Math.max(-8,Math.min(8,Math.floor((B=z,((B=l(Math.abs(B)))?B[1]:NaN)/3)))),F=Math.pow(10,-j),E=b[8+j/3];return function(W){return N(F*W)+E}}}}y=w({decimal:".",thousands:",",grouping:[3],currency:["$",""],minus:"-"}),v=y.format,y.formatPrefix},84096:function(o,a,n){n.d(a,{i$:function(){return b},Dq:function(){return v},g0:function(){return w}});var l=n(58176),c=n(48480),u=n(59879),f=n(82301),d=n(34823),p=n(79791);function h(ze){if(0<=ze.y&&ze.y<100){var Ne=new Date(-1,ze.m,ze.d,ze.H,ze.M,ze.S,ze.L);return Ne.setFullYear(ze.y),Ne}return new Date(ze.y,ze.m,ze.d,ze.H,ze.M,ze.S,ze.L)}function m(ze){if(0<=ze.y&&ze.y<100){var Ne=new Date(Date.UTC(-1,ze.m,ze.d,ze.H,ze.M,ze.S,ze.L));return Ne.setUTCFullYear(ze.y),Ne}return new Date(Date.UTC(ze.y,ze.m,ze.d,ze.H,ze.M,ze.S,ze.L))}function y(ze,Ne,et){return{y:ze,m:Ne,d:et,H:0,M:0,S:0,L:0}}function v(ze){var Ne=ze.dateTime,et=ze.date,it=ze.time,St=ze.periods,Ze=ze.days,ut=ze.shortDays,gt=ze.months,Rt=ze.shortMonths,Mt=C(St),Bt=A(St),Tt=C(Ze),ve=A(Ze),Te=C(ut),Ve=A(ut),We=C(gt),Je=A(gt),Xe=C(Rt),Ge=A(Rt),Qe={a:function(Ct){return ut[Ct.getDay()]},A:function(Ct){return Ze[Ct.getDay()]},b:function(Ct){return Rt[Ct.getMonth()]},B:function(Ct){return gt[Ct.getMonth()]},c:null,d:Q,e:Q,f:ie,H:G,I:X,j:Y,L:re,m:le,M:se,p:function(Ct){return St[+(Ct.getHours()>=12)]},q:function(Ct){return 1+~~(Ct.getMonth()/3)},Q:ft,s:yt,S:he,u:_e,U:Me,V:Ce,w:Se,W:ce,x:null,X:null,y:ye,Y:V,Z:ne,"%":st},ct={a:function(Ct){return ut[Ct.getUTCDay()]},A:function(Ct){return Ze[Ct.getUTCDay()]},b:function(Ct){return Rt[Ct.getUTCMonth()]},B:function(Ct){return gt[Ct.getUTCMonth()]},c:null,d:fe,e:fe,f:we,H:xe,I:ue,j:ge,L:be,m:ke,M:Pe,p:function(Ct){return St[+(Ct.getUTCHours()>=12)]},q:function(Ct){return 1+~~(Ct.getUTCMonth()/3)},Q:ft,s:yt,S:Re,u:De,U:Le,V:Fe,w:Be,W:Ue,x:null,X:null,y:qe,Y:Ye,Z:at,"%":st},bt={a:function(Ct,jt,Et){var mt=Te.exec(jt.slice(Et));return mt?(Ct.w=Ve[mt[0].toLowerCase()],Et+mt[0].length):-1},A:function(Ct,jt,Et){var mt=Tt.exec(jt.slice(Et));return mt?(Ct.w=ve[mt[0].toLowerCase()],Et+mt[0].length):-1},b:function(Ct,jt,Et){var mt=Xe.exec(jt.slice(Et));return mt?(Ct.m=Ge[mt[0].toLowerCase()],Et+mt[0].length):-1},B:function(Ct,jt,Et){var mt=We.exec(jt.slice(Et));return mt?(Ct.m=Je[mt[0].toLowerCase()],Et+mt[0].length):-1},c:function(Ct,jt,Et){return Yt(Ct,Ne,jt,Et)},d:E,e:E,f:J,H,I:H,j:W,L:U,m:F,M:L,p:function(Ct,jt,Et){var mt=Mt.exec(jt.slice(Et));return mt?(Ct.p=Bt[mt[0].toLowerCase()],Et+mt[0].length):-1},q:j,Q:ee,s:K,S:q,u:O,U:R,V:$,w:D,W:P,x:function(Ct,jt,Et){return Yt(Ct,et,jt,Et)},X:function(Ct,jt,Et){return Yt(Ct,it,jt,Et)},y:B,Y:z,Z:N,"%":te};function nt(Ct,jt){return function(Et){var mt,vt,wt,qt=[],Lt=-1,Gt=0,ht=Ct.length;for(Et instanceof Date||(Et=new Date(+Et));++Lt53)return null;"w"in wt||(wt.w=1),"Z"in wt?(vt=(mt=m(y(wt.y,0,1))).getUTCDay(),mt=vt>4||vt===0?l.l6.ceil(mt):(0,l.l6)(mt),mt=c.Z.offset(mt,7*(wt.V-1)),wt.y=mt.getUTCFullYear(),wt.m=mt.getUTCMonth(),wt.d=mt.getUTCDate()+(wt.w+6)%7):(vt=(mt=h(y(wt.y,0,1))).getDay(),mt=vt>4||vt===0?u.wA.ceil(mt):(0,u.wA)(mt),mt=f.Z.offset(mt,7*(wt.V-1)),wt.y=mt.getFullYear(),wt.m=mt.getMonth(),wt.d=mt.getDate()+(wt.w+6)%7)}else("W"in wt||"U"in wt)&&("w"in wt||(wt.w="u"in wt?wt.u%7:"W"in wt?1:0),vt="Z"in wt?m(y(wt.y,0,1)).getUTCDay():h(y(wt.y,0,1)).getDay(),wt.m=0,wt.d="W"in wt?(wt.w+6)%7+7*wt.W-(vt+5)%7:wt.w+7*wt.U-(vt+6)%7);return"Z"in wt?(wt.H+=wt.Z/100|0,wt.M+=wt.Z%100,m(wt)):h(wt)}}function Yt(Ct,jt,Et,mt){for(var vt,wt,qt=0,Lt=jt.length,Gt=Et.length;qt=Gt)return-1;if((vt=jt.charCodeAt(qt++))===37){if(vt=jt.charAt(qt++),!(wt=bt[vt in _?jt.charAt(qt++):vt])||(mt=wt(Ct,Et,mt))<0)return-1}else if(vt!=Et.charCodeAt(mt++))return-1}return mt}return Qe.x=nt(et,Qe),Qe.X=nt(it,Qe),Qe.c=nt(Ne,Qe),ct.x=nt(et,ct),ct.X=nt(it,ct),ct.c=nt(Ne,ct),{format:function(Ct){var jt=nt(Ct+="",Qe);return jt.toString=function(){return Ct},jt},parse:function(Ct){var jt=It(Ct+="",!1);return jt.toString=function(){return Ct},jt},utcFormat:function(Ct){var jt=nt(Ct+="",ct);return jt.toString=function(){return Ct},jt},utcParse:function(Ct){var jt=It(Ct+="",!0);return jt.toString=function(){return Ct},jt}}}var g,b,w,_={"-":"",_:" ",0:"0"},x=/^\s*\d+/,k=/^%/,T=/[\\^$*+?|[\]().{}]/g;function S(ze,Ne,et){var it=ze<0?"-":"",St=(it?-ze:ze)+"",Ze=St.length;return it+(Ze68?1900:2e3),et+it[0].length):-1}function N(ze,Ne,et){var it=/^(Z)|([+-]\d\d)(?::?(\d\d))?/.exec(Ne.slice(et,et+6));return it?(ze.Z=it[1]?0:-(it[2]+(it[3]||"00")),et+it[0].length):-1}function j(ze,Ne,et){var it=x.exec(Ne.slice(et,et+1));return it?(ze.q=3*it[0]-3,et+it[0].length):-1}function F(ze,Ne,et){var it=x.exec(Ne.slice(et,et+2));return it?(ze.m=it[0]-1,et+it[0].length):-1}function E(ze,Ne,et){var it=x.exec(Ne.slice(et,et+2));return it?(ze.d=+it[0],et+it[0].length):-1}function W(ze,Ne,et){var it=x.exec(Ne.slice(et,et+3));return it?(ze.m=0,ze.d=+it[0],et+it[0].length):-1}function H(ze,Ne,et){var it=x.exec(Ne.slice(et,et+2));return it?(ze.H=+it[0],et+it[0].length):-1}function L(ze,Ne,et){var it=x.exec(Ne.slice(et,et+2));return it?(ze.M=+it[0],et+it[0].length):-1}function q(ze,Ne,et){var it=x.exec(Ne.slice(et,et+2));return it?(ze.S=+it[0],et+it[0].length):-1}function U(ze,Ne,et){var it=x.exec(Ne.slice(et,et+3));return it?(ze.L=+it[0],et+it[0].length):-1}function J(ze,Ne,et){var it=x.exec(Ne.slice(et,et+6));return it?(ze.L=Math.floor(it[0]/1e3),et+it[0].length):-1}function te(ze,Ne,et){var it=k.exec(Ne.slice(et,et+1));return it?et+it[0].length:-1}function ee(ze,Ne,et){var it=x.exec(Ne.slice(et));return it?(ze.Q=+it[0],et+it[0].length):-1}function K(ze,Ne,et){var it=x.exec(Ne.slice(et));return it?(ze.s=+it[0],et+it[0].length):-1}function Q(ze,Ne){return S(ze.getDate(),Ne,2)}function G(ze,Ne){return S(ze.getHours(),Ne,2)}function X(ze,Ne){return S(ze.getHours()%12||12,Ne,2)}function Y(ze,Ne){return S(1+f.Z.count((0,d.Z)(ze),ze),Ne,3)}function re(ze,Ne){return S(ze.getMilliseconds(),Ne,3)}function ie(ze,Ne){return re(ze,Ne)+"000"}function le(ze,Ne){return S(ze.getMonth()+1,Ne,2)}function se(ze,Ne){return S(ze.getMinutes(),Ne,2)}function he(ze,Ne){return S(ze.getSeconds(),Ne,2)}function _e(ze){var Ne=ze.getDay();return Ne===0?7:Ne}function Me(ze,Ne){return S(u.OM.count((0,d.Z)(ze)-1,ze),Ne,2)}function Ce(ze,Ne){var et=ze.getDay();return ze=et>=4||et===0?(0,u.bL)(ze):u.bL.ceil(ze),S(u.bL.count((0,d.Z)(ze),ze)+((0,d.Z)(ze).getDay()===4),Ne,2)}function Se(ze){return ze.getDay()}function ce(ze,Ne){return S(u.wA.count((0,d.Z)(ze)-1,ze),Ne,2)}function ye(ze,Ne){return S(ze.getFullYear()%100,Ne,2)}function V(ze,Ne){return S(ze.getFullYear()%1e4,Ne,4)}function ne(ze){var Ne=ze.getTimezoneOffset();return(Ne>0?"-":(Ne*=-1,"+"))+S(Ne/60|0,"0",2)+S(Ne%60,"0",2)}function fe(ze,Ne){return S(ze.getUTCDate(),Ne,2)}function xe(ze,Ne){return S(ze.getUTCHours(),Ne,2)}function ue(ze,Ne){return S(ze.getUTCHours()%12||12,Ne,2)}function ge(ze,Ne){return S(1+c.Z.count((0,p.Z)(ze),ze),Ne,3)}function be(ze,Ne){return S(ze.getUTCMilliseconds(),Ne,3)}function we(ze,Ne){return be(ze,Ne)+"000"}function ke(ze,Ne){return S(ze.getUTCMonth()+1,Ne,2)}function Pe(ze,Ne){return S(ze.getUTCMinutes(),Ne,2)}function Re(ze,Ne){return S(ze.getUTCSeconds(),Ne,2)}function De(ze){var Ne=ze.getUTCDay();return Ne===0?7:Ne}function Le(ze,Ne){return S(l.Ox.count((0,p.Z)(ze)-1,ze),Ne,2)}function Fe(ze,Ne){var et=ze.getUTCDay();return ze=et>=4||et===0?(0,l.hB)(ze):l.hB.ceil(ze),S(l.hB.count((0,p.Z)(ze),ze)+((0,p.Z)(ze).getUTCDay()===4),Ne,2)}function Be(ze){return ze.getUTCDay()}function Ue(ze,Ne){return S(l.l6.count((0,p.Z)(ze)-1,ze),Ne,2)}function qe(ze,Ne){return S(ze.getUTCFullYear()%100,Ne,2)}function Ye(ze,Ne){return S(ze.getUTCFullYear()%1e4,Ne,4)}function at(){return"+0000"}function st(){return"%"}function ft(ze){return+ze}function yt(ze){return Math.floor(+ze/1e3)}g=v({dateTime:"%x, %X",date:"%-m/%-d/%Y",time:"%-I:%M:%S %p",periods:["AM","PM"],days:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],shortDays:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],months:["January","February","March","April","May","June","July","August","September","October","November","December"],shortMonths:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"]}),b=g.format,g.parse,w=g.utcFormat,g.utcParse},82301:function(o,a,n){n.d(a,{a:function(){return f}});var l=n(30052),c=n(54263),u=(0,l.Z)(function(d){d.setHours(0,0,0,0)},function(d,p){d.setDate(d.getDate()+p)},function(d,p){return(p-d-(p.getTimezoneOffset()-d.getTimezoneOffset())*c.yB)/c.UD},function(d){return d.getDate()-1});a.Z=u;var f=u.range},54263:function(o,a,n){n.d(a,{UD:function(){return f},Y2:function(){return u},Ym:function(){return l},iM:function(){return d},yB:function(){return c}});var l=1e3,c=6e4,u=36e5,f=864e5,d=6048e5},81041:function(o,a,n){n.r(a),n.d(a,{timeDay:function(){return x.Z},timeDays:function(){return x.a},timeFriday:function(){return k.mC},timeFridays:function(){return k.b$},timeHour:function(){return w},timeHours:function(){return _},timeInterval:function(){return l.Z},timeMillisecond:function(){return u},timeMilliseconds:function(){return f},timeMinute:function(){return v},timeMinutes:function(){return g},timeMonday:function(){return k.wA},timeMondays:function(){return k.bJ},timeMonth:function(){return S},timeMonths:function(){return M},timeSaturday:function(){return k.EY},timeSaturdays:function(){return k.Ff},timeSecond:function(){return h},timeSeconds:function(){return m},timeSunday:function(){return k.OM},timeSundays:function(){return k.vm},timeThursday:function(){return k.bL},timeThursdays:function(){return k.$t},timeTuesday:function(){return k.sy},timeTuesdays:function(){return k.aU},timeWednesday:function(){return k.zg},timeWednesdays:function(){return k.Ld},timeWeek:function(){return k.OM},timeWeeks:function(){return k.vm},timeYear:function(){return C.Z},timeYears:function(){return C.g},utcDay:function(){return z.Z},utcDays:function(){return z.y},utcFriday:function(){return B.QQ},utcFridays:function(){return B.fz},utcHour:function(){return $},utcHours:function(){return P},utcMillisecond:function(){return u},utcMilliseconds:function(){return f},utcMinute:function(){return D},utcMinutes:function(){return O},utcMonday:function(){return B.l6},utcMondays:function(){return B.$3},utcMonth:function(){return j},utcMonths:function(){return F},utcSaturday:function(){return B.g4},utcSaturdays:function(){return B.Q_},utcSecond:function(){return h},utcSeconds:function(){return m},utcSunday:function(){return B.Ox},utcSundays:function(){return B.SU},utcThursday:function(){return B.hB},utcThursdays:function(){return B.xj},utcTuesday:function(){return B.J1},utcTuesdays:function(){return B.DK},utcWednesday:function(){return B.b3},utcWednesdays:function(){return B.uy},utcWeek:function(){return B.Ox},utcWeeks:function(){return B.SU},utcYear:function(){return E.Z},utcYears:function(){return E.D}});var l=n(30052),c=(0,l.Z)(function(){},function(W,H){W.setTime(+W+H)},function(W,H){return H-W});c.every=function(W){return W=Math.floor(W),isFinite(W)&&W>0?W>1?(0,l.Z)(function(H){H.setTime(Math.floor(H/W)*W)},function(H,L){H.setTime(+H+L*W)},function(H,L){return(L-H)/W}):c:null};var u=c,f=c.range,d=n(54263),p=(0,l.Z)(function(W){W.setTime(W-W.getMilliseconds())},function(W,H){W.setTime(+W+H*d.Ym)},function(W,H){return(H-W)/d.Ym},function(W){return W.getUTCSeconds()}),h=p,m=p.range,y=(0,l.Z)(function(W){W.setTime(W-W.getMilliseconds()-W.getSeconds()*d.Ym)},function(W,H){W.setTime(+W+H*d.yB)},function(W,H){return(H-W)/d.yB},function(W){return W.getMinutes()}),v=y,g=y.range,b=(0,l.Z)(function(W){W.setTime(W-W.getMilliseconds()-W.getSeconds()*d.Ym-W.getMinutes()*d.yB)},function(W,H){W.setTime(+W+H*d.Y2)},function(W,H){return(H-W)/d.Y2},function(W){return W.getHours()}),w=b,_=b.range,x=n(82301),k=n(59879),T=(0,l.Z)(function(W){W.setDate(1),W.setHours(0,0,0,0)},function(W,H){W.setMonth(W.getMonth()+H)},function(W,H){return H.getMonth()-W.getMonth()+12*(H.getFullYear()-W.getFullYear())},function(W){return W.getMonth()}),S=T,M=T.range,C=n(34823),A=(0,l.Z)(function(W){W.setUTCSeconds(0,0)},function(W,H){W.setTime(+W+H*d.yB)},function(W,H){return(H-W)/d.yB},function(W){return W.getUTCMinutes()}),D=A,O=A.range,R=(0,l.Z)(function(W){W.setUTCMinutes(0,0,0)},function(W,H){W.setTime(+W+H*d.Y2)},function(W,H){return(H-W)/d.Y2},function(W){return W.getUTCHours()}),$=R,P=R.range,z=n(48480),B=n(58176),N=(0,l.Z)(function(W){W.setUTCDate(1),W.setUTCHours(0,0,0,0)},function(W,H){W.setUTCMonth(W.getUTCMonth()+H)},function(W,H){return H.getUTCMonth()-W.getUTCMonth()+12*(H.getUTCFullYear()-W.getUTCFullYear())},function(W){return W.getUTCMonth()}),j=N,F=N.range,E=n(79791)},30052:function(o,a,n){n.d(a,{Z:function(){return u}});var l=new Date,c=new Date;function u(f,d,p,h){function m(y){return f(y=arguments.length===0?new Date:new Date(+y)),y}return m.floor=function(y){return f(y=new Date(+y)),y},m.ceil=function(y){return f(y=new Date(y-1)),d(y,1),f(y),y},m.round=function(y){var v=m(y),g=m.ceil(y);return y-v0))return w;do w.push(b=new Date(+y)),d(y,g),f(y);while(b=v)for(;f(v),!y(v);)v.setTime(v-1)},function(v,g){if(v>=v)if(g<0)for(;++g<=0;)for(;d(v,-1),!y(v););else for(;--g>=0;)for(;d(v,1),!y(v););})},p&&(m.count=function(y,v){return l.setTime(+y),c.setTime(+v),f(l),f(c),Math.floor(p(l,c))},m.every=function(y){return y=Math.floor(y),isFinite(y)&&y>0?y>1?m.filter(h?function(v){return h(v)%y==0}:function(v){return m.count(0,v)%y==0}):m:null}),m}},48480:function(o,a,n){n.d(a,{y:function(){return f}});var l=n(30052),c=n(54263),u=(0,l.Z)(function(d){d.setUTCHours(0,0,0,0)},function(d,p){d.setUTCDate(d.getUTCDate()+p)},function(d,p){return(p-d)/c.UD},function(d){return d.getUTCDate()-1});a.Z=u;var f=u.range},58176:function(o,a,n){n.d(a,{$3:function(){return b},DK:function(){return w},J1:function(){return p},Ox:function(){return f},QQ:function(){return y},Q_:function(){return T},SU:function(){return g},b3:function(){return h},fz:function(){return k},g4:function(){return v},hB:function(){return m},l6:function(){return d},uy:function(){return _},xj:function(){return x}});var l=n(30052),c=n(54263);function u(S){return(0,l.Z)(function(M){M.setUTCDate(M.getUTCDate()-(M.getUTCDay()+7-S)%7),M.setUTCHours(0,0,0,0)},function(M,C){M.setUTCDate(M.getUTCDate()+7*C)},function(M,C){return(C-M)/c.iM})}var f=u(0),d=u(1),p=u(2),h=u(3),m=u(4),y=u(5),v=u(6),g=f.range,b=d.range,w=p.range,_=h.range,x=m.range,k=y.range,T=v.range},79791:function(o,a,n){n.d(a,{D:function(){return u}});var l=n(30052),c=(0,l.Z)(function(f){f.setUTCMonth(0,1),f.setUTCHours(0,0,0,0)},function(f,d){f.setUTCFullYear(f.getUTCFullYear()+d)},function(f,d){return d.getUTCFullYear()-f.getUTCFullYear()},function(f){return f.getUTCFullYear()});c.every=function(f){return isFinite(f=Math.floor(f))&&f>0?(0,l.Z)(function(d){d.setUTCFullYear(Math.floor(d.getUTCFullYear()/f)*f),d.setUTCMonth(0,1),d.setUTCHours(0,0,0,0)},function(d,p){d.setUTCFullYear(d.getUTCFullYear()+p*f)}):null},a.Z=c;var u=c.range},59879:function(o,a,n){n.d(a,{$t:function(){return x},EY:function(){return v},Ff:function(){return T},Ld:function(){return _},OM:function(){return f},aU:function(){return w},b$:function(){return k},bJ:function(){return b},bL:function(){return m},mC:function(){return y},sy:function(){return p},vm:function(){return g},wA:function(){return d},zg:function(){return h}});var l=n(30052),c=n(54263);function u(S){return(0,l.Z)(function(M){M.setDate(M.getDate()-(M.getDay()+7-S)%7),M.setHours(0,0,0,0)},function(M,C){M.setDate(M.getDate()+7*C)},function(M,C){return(C-M-(C.getTimezoneOffset()-M.getTimezoneOffset())*c.yB)/c.iM})}var f=u(0),d=u(1),p=u(2),h=u(3),m=u(4),y=u(5),v=u(6),g=f.range,b=d.range,w=p.range,_=h.range,x=m.range,k=y.range,T=v.range},34823:function(o,a,n){n.d(a,{g:function(){return u}});var l=n(30052),c=(0,l.Z)(function(f){f.setMonth(0,1),f.setHours(0,0,0,0)},function(f,d){f.setFullYear(f.getFullYear()+d)},function(f,d){return d.getFullYear()-f.getFullYear()},function(f){return f.getFullYear()});c.every=function(f){return isFinite(f=Math.floor(f))&&f>0?(0,l.Z)(function(d){d.setFullYear(Math.floor(d.getFullYear()/f)*f),d.setMonth(0,1),d.setHours(0,0,0,0)},function(d,p){d.setFullYear(d.getFullYear()+p*f)}):null},a.Z=c;var u=c.range},17045:function(o,a,n){var l=n(8709),c=typeof Symbol=="function"&&typeof Symbol("foo")=="symbol",u=Object.prototype.toString,f=Array.prototype.concat,d=Object.defineProperty,p=n(55622)(),h=d&&p,m=function(v,g,b,w){if(g in v){if(w===!0){if(v[g]===b)return}else if(typeof(_=w)!="function"||u.call(_)!=="[object Function]"||!w())return}var _;h?d(v,g,{configurable:!0,enumerable:!1,value:b,writable:!0}):v[g]=b},y=function(v,g){var b=arguments.length>2?arguments[2]:{},w=l(g);c&&(w=f.call(w,Object.getOwnPropertySymbols(g)));for(var _=0;_0&&C.length>S&&!C.warned){C.warned=!0;var D=new Error("Possible EventEmitter memory leak detected. "+C.length+" "+String(x)+" listeners added. Use emitter.setMaxListeners() to increase limit");D.name="MaxListenersExceededWarning",D.emitter=_,D.type=x,D.count=C.length,A=D,console&&console.warn&&console.warn(A)}return _}function m(){if(!this.fired)return this.target.removeListener(this.type,this.wrapFn),this.fired=!0,arguments.length===0?this.listener.call(this.target):this.listener.apply(this.target,arguments)}function y(_,x,k){var T={fired:!1,wrapFn:void 0,target:_,type:x,listener:k},S=m.bind(T);return S.listener=k,T.wrapFn=S,S}function v(_,x,k){var T=_._events;if(T===void 0)return[];var S=T[x];return S===void 0?[]:typeof S=="function"?k?[S.listener||S]:[S]:k?function(M){for(var C=new Array(M.length),A=0;A0&&(M=x[0]),M instanceof Error)throw M;var C=new Error("Unhandled error."+(M?" ("+M.message+")":""));throw C.context=M,C}var A=S[_];if(A===void 0)return!1;if(typeof A=="function")l(A,this,x);else{var D=A.length,O=b(A,D);for(k=0;k=0;M--)if(k[M]===x||k[M].listener===x){C=k[M].listener,S=M;break}if(S<0)return this;S===0?k.shift():function(A,D){for(;D+1=0;T--)this.removeListener(_,x[T]);return this},u.prototype.listeners=function(_){return v(this,_,!0)},u.prototype.rawListeners=function(_){return v(this,_,!1)},u.listenerCount=function(_,x){return typeof _.listenerCount=="function"?_.listenerCount(x):g.call(_,x)},u.prototype.listenerCount=g,u.prototype.eventNames=function(){return this._eventsCount>0?a(this._events):[]}},92770:function(o,a,n){var l=n(18546);o.exports=function(c){var u=typeof c;if(u==="string"){var f=c;if((c=+c)==0&&l(f))return!1}else if(u!=="number")return!1;return c-c<1}},31353:function(o,a,n){var l=n(85395),c=Object.prototype.toString,u=Object.prototype.hasOwnProperty;o.exports=function(f,d,p){if(!l(d))throw new TypeError("iterator must be a function");var h;arguments.length>=3&&(h=p),c.call(f)==="[object Array]"?function(m,y,v){for(var g=0,b=m.length;g"u"?l:v(Uint8Array),w={"%AggregateError%":typeof AggregateError>"u"?l:AggregateError,"%Array%":Array,"%ArrayBuffer%":typeof ArrayBuffer>"u"?l:ArrayBuffer,"%ArrayIteratorPrototype%":y?v([][Symbol.iterator]()):l,"%AsyncFromSyncIteratorPrototype%":l,"%AsyncFunction%":g,"%AsyncGenerator%":g,"%AsyncGeneratorFunction%":g,"%AsyncIteratorPrototype%":g,"%Atomics%":typeof Atomics>"u"?l:Atomics,"%BigInt%":typeof BigInt>"u"?l:BigInt,"%BigInt64Array%":typeof BigInt64Array>"u"?l:BigInt64Array,"%BigUint64Array%":typeof BigUint64Array>"u"?l:BigUint64Array,"%Boolean%":Boolean,"%DataView%":typeof DataView>"u"?l:DataView,"%Date%":Date,"%decodeURI%":decodeURI,"%decodeURIComponent%":decodeURIComponent,"%encodeURI%":encodeURI,"%encodeURIComponent%":encodeURIComponent,"%Error%":Error,"%eval%":eval,"%EvalError%":EvalError,"%Float32Array%":typeof Float32Array>"u"?l:Float32Array,"%Float64Array%":typeof Float64Array>"u"?l:Float64Array,"%FinalizationRegistry%":typeof FinalizationRegistry>"u"?l:FinalizationRegistry,"%Function%":u,"%GeneratorFunction%":g,"%Int8Array%":typeof Int8Array>"u"?l:Int8Array,"%Int16Array%":typeof Int16Array>"u"?l:Int16Array,"%Int32Array%":typeof Int32Array>"u"?l:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%IteratorPrototype%":y?v(v([][Symbol.iterator]())):l,"%JSON%":typeof JSON=="object"?JSON:l,"%Map%":typeof Map>"u"?l:Map,"%MapIteratorPrototype%":typeof Map<"u"&&y?v(new Map()[Symbol.iterator]()):l,"%Math%":Math,"%Number%":Number,"%Object%":Object,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":typeof Promise>"u"?l:Promise,"%Proxy%":typeof Proxy>"u"?l:Proxy,"%RangeError%":RangeError,"%ReferenceError%":ReferenceError,"%Reflect%":typeof Reflect>"u"?l:Reflect,"%RegExp%":RegExp,"%Set%":typeof Set>"u"?l:Set,"%SetIteratorPrototype%":typeof Set<"u"&&y?v(new Set()[Symbol.iterator]()):l,"%SharedArrayBuffer%":typeof SharedArrayBuffer>"u"?l:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":y?v(""[Symbol.iterator]()):l,"%Symbol%":y?Symbol:l,"%SyntaxError%":c,"%ThrowTypeError%":m,"%TypedArray%":b,"%TypeError%":f,"%Uint8Array%":typeof Uint8Array>"u"?l:Uint8Array,"%Uint8ClampedArray%":typeof Uint8ClampedArray>"u"?l:Uint8ClampedArray,"%Uint16Array%":typeof Uint16Array>"u"?l:Uint16Array,"%Uint32Array%":typeof Uint32Array>"u"?l:Uint32Array,"%URIError%":URIError,"%WeakMap%":typeof WeakMap>"u"?l:WeakMap,"%WeakRef%":typeof WeakRef>"u"?l:WeakRef,"%WeakSet%":typeof WeakSet>"u"?l:WeakSet};try{null.error}catch(z){var _=v(v(z));w["%Error.prototype%"]=_}var x=function z(B){var N;if(B==="%AsyncFunction%")N=d("async function () {}");else if(B==="%GeneratorFunction%")N=d("function* () {}");else if(B==="%AsyncGeneratorFunction%")N=d("async function* () {}");else if(B==="%AsyncGenerator%"){var j=z("%AsyncGeneratorFunction%");j&&(N=j.prototype)}else if(B==="%AsyncIteratorPrototype%"){var F=z("%AsyncGenerator%");F&&(N=v(F.prototype))}return w[B]=N,N},k={"%ArrayBufferPrototype%":["ArrayBuffer","prototype"],"%ArrayPrototype%":["Array","prototype"],"%ArrayProto_entries%":["Array","prototype","entries"],"%ArrayProto_forEach%":["Array","prototype","forEach"],"%ArrayProto_keys%":["Array","prototype","keys"],"%ArrayProto_values%":["Array","prototype","values"],"%AsyncFunctionPrototype%":["AsyncFunction","prototype"],"%AsyncGenerator%":["AsyncGeneratorFunction","prototype"],"%AsyncGeneratorPrototype%":["AsyncGeneratorFunction","prototype","prototype"],"%BooleanPrototype%":["Boolean","prototype"],"%DataViewPrototype%":["DataView","prototype"],"%DatePrototype%":["Date","prototype"],"%ErrorPrototype%":["Error","prototype"],"%EvalErrorPrototype%":["EvalError","prototype"],"%Float32ArrayPrototype%":["Float32Array","prototype"],"%Float64ArrayPrototype%":["Float64Array","prototype"],"%FunctionPrototype%":["Function","prototype"],"%Generator%":["GeneratorFunction","prototype"],"%GeneratorPrototype%":["GeneratorFunction","prototype","prototype"],"%Int8ArrayPrototype%":["Int8Array","prototype"],"%Int16ArrayPrototype%":["Int16Array","prototype"],"%Int32ArrayPrototype%":["Int32Array","prototype"],"%JSONParse%":["JSON","parse"],"%JSONStringify%":["JSON","stringify"],"%MapPrototype%":["Map","prototype"],"%NumberPrototype%":["Number","prototype"],"%ObjectPrototype%":["Object","prototype"],"%ObjProto_toString%":["Object","prototype","toString"],"%ObjProto_valueOf%":["Object","prototype","valueOf"],"%PromisePrototype%":["Promise","prototype"],"%PromiseProto_then%":["Promise","prototype","then"],"%Promise_all%":["Promise","all"],"%Promise_reject%":["Promise","reject"],"%Promise_resolve%":["Promise","resolve"],"%RangeErrorPrototype%":["RangeError","prototype"],"%ReferenceErrorPrototype%":["ReferenceError","prototype"],"%RegExpPrototype%":["RegExp","prototype"],"%SetPrototype%":["Set","prototype"],"%SharedArrayBufferPrototype%":["SharedArrayBuffer","prototype"],"%StringPrototype%":["String","prototype"],"%SymbolPrototype%":["Symbol","prototype"],"%SyntaxErrorPrototype%":["SyntaxError","prototype"],"%TypedArrayPrototype%":["TypedArray","prototype"],"%TypeErrorPrototype%":["TypeError","prototype"],"%Uint8ArrayPrototype%":["Uint8Array","prototype"],"%Uint8ClampedArrayPrototype%":["Uint8ClampedArray","prototype"],"%Uint16ArrayPrototype%":["Uint16Array","prototype"],"%Uint32ArrayPrototype%":["Uint32Array","prototype"],"%URIErrorPrototype%":["URIError","prototype"],"%WeakMapPrototype%":["WeakMap","prototype"],"%WeakSetPrototype%":["WeakSet","prototype"]},T=n(77575),S=n(35065),M=T.call(Function.call,Array.prototype.concat),C=T.call(Function.apply,Array.prototype.splice),A=T.call(Function.call,String.prototype.replace),D=T.call(Function.call,String.prototype.slice),O=T.call(Function.call,RegExp.prototype.exec),R=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,$=/\\(\\)?/g,P=function(z,B){var N,j=z;if(S(k,j)&&(j="%"+(N=k[j])[0]+"%"),S(w,j)){var F=w[j];if(F===g&&(F=x(j)),F===void 0&&!B)throw new f("intrinsic "+z+" exists, but is not available. Please file an issue!");return{alias:N,name:j,value:F}}throw new c("intrinsic "+z+" does not exist!")};o.exports=function(z,B){if(typeof z!="string"||z.length===0)throw new f("intrinsic name must be a non-empty string");if(arguments.length>1&&typeof B!="boolean")throw new f('"allowMissing" argument must be a boolean');if(O(/^%?[^%]*%?$/,z)===null)throw new c("`%` may not be present anywhere but at the beginning and end of the intrinsic name");var N=function(Q){var G=D(Q,0,1),X=D(Q,-1);if(G==="%"&&X!=="%")throw new c("invalid intrinsic syntax, expected closing `%`");if(X==="%"&&G!=="%")throw new c("invalid intrinsic syntax, expected opening `%`");var Y=[];return A(Q,R,function(re,ie,le,se){Y[Y.length]=le?A(se,$,"$1"):ie||re}),Y}(z),j=N.length>0?N[0]:"",F=P("%"+j+"%",B),E=F.name,W=F.value,H=!1,L=F.alias;L&&(j=L[0],C(N,M([0,1],L)));for(var q=1,U=!0;q=N.length){var K=p(W,J);W=(U=!!K)&&"get"in K&&!("originalValue"in K.get)?K.get:W[J]}else U=S(W,J),W=W[J];U&&!H&&(w[E]=W)}}return W}},85400:function(o){o.exports=function(a,n){var l=n[0],c=n[1],u=n[2],f=n[3],d=n[4],p=n[5],h=n[6],m=n[7],y=n[8],v=n[9],g=n[10],b=n[11],w=n[12],_=n[13],x=n[14],k=n[15];return a[0]=p*(g*k-b*x)-v*(h*k-m*x)+_*(h*b-m*g),a[1]=-(c*(g*k-b*x)-v*(u*k-f*x)+_*(u*b-f*g)),a[2]=c*(h*k-m*x)-p*(u*k-f*x)+_*(u*m-f*h),a[3]=-(c*(h*b-m*g)-p*(u*b-f*g)+v*(u*m-f*h)),a[4]=-(d*(g*k-b*x)-y*(h*k-m*x)+w*(h*b-m*g)),a[5]=l*(g*k-b*x)-y*(u*k-f*x)+w*(u*b-f*g),a[6]=-(l*(h*k-m*x)-d*(u*k-f*x)+w*(u*m-f*h)),a[7]=l*(h*b-m*g)-d*(u*b-f*g)+y*(u*m-f*h),a[8]=d*(v*k-b*_)-y*(p*k-m*_)+w*(p*b-m*v),a[9]=-(l*(v*k-b*_)-y*(c*k-f*_)+w*(c*b-f*v)),a[10]=l*(p*k-m*_)-d*(c*k-f*_)+w*(c*m-f*p),a[11]=-(l*(p*b-m*v)-d*(c*b-f*v)+y*(c*m-f*p)),a[12]=-(d*(v*x-g*_)-y*(p*x-h*_)+w*(p*g-h*v)),a[13]=l*(v*x-g*_)-y*(c*x-u*_)+w*(c*g-u*v),a[14]=-(l*(p*x-h*_)-d*(c*x-u*_)+w*(c*h-u*p)),a[15]=l*(p*g-h*v)-d*(c*g-u*v)+y*(c*h-u*p),a}},42331:function(o){o.exports=function(a){var n=new Float32Array(16);return n[0]=a[0],n[1]=a[1],n[2]=a[2],n[3]=a[3],n[4]=a[4],n[5]=a[5],n[6]=a[6],n[7]=a[7],n[8]=a[8],n[9]=a[9],n[10]=a[10],n[11]=a[11],n[12]=a[12],n[13]=a[13],n[14]=a[14],n[15]=a[15],n}},31042:function(o){o.exports=function(a,n){return a[0]=n[0],a[1]=n[1],a[2]=n[2],a[3]=n[3],a[4]=n[4],a[5]=n[5],a[6]=n[6],a[7]=n[7],a[8]=n[8],a[9]=n[9],a[10]=n[10],a[11]=n[11],a[12]=n[12],a[13]=n[13],a[14]=n[14],a[15]=n[15],a}},11902:function(o){o.exports=function(){var a=new Float32Array(16);return a[0]=1,a[1]=0,a[2]=0,a[3]=0,a[4]=0,a[5]=1,a[6]=0,a[7]=0,a[8]=0,a[9]=0,a[10]=1,a[11]=0,a[12]=0,a[13]=0,a[14]=0,a[15]=1,a}},89887:function(o){o.exports=function(a){var n=a[0],l=a[1],c=a[2],u=a[3],f=a[4],d=a[5],p=a[6],h=a[7],m=a[8],y=a[9],v=a[10],g=a[11],b=a[12],w=a[13],_=a[14],x=a[15];return(n*d-l*f)*(v*x-g*_)-(n*p-c*f)*(y*x-g*w)+(n*h-u*f)*(y*_-v*w)+(l*p-c*d)*(m*x-g*b)-(l*h-u*d)*(m*_-v*b)+(c*h-u*p)*(m*w-y*b)}},27812:function(o){o.exports=function(a,n){var l=n[0],c=n[1],u=n[2],f=n[3],d=l+l,p=c+c,h=u+u,m=l*d,y=c*d,v=c*p,g=u*d,b=u*p,w=u*h,_=f*d,x=f*p,k=f*h;return a[0]=1-v-w,a[1]=y+k,a[2]=g-x,a[3]=0,a[4]=y-k,a[5]=1-m-w,a[6]=b+_,a[7]=0,a[8]=g+x,a[9]=b-_,a[10]=1-m-v,a[11]=0,a[12]=0,a[13]=0,a[14]=0,a[15]=1,a}},34045:function(o){o.exports=function(a,n,l){var c,u,f,d=l[0],p=l[1],h=l[2],m=Math.sqrt(d*d+p*p+h*h);return Math.abs(m)<1e-6?null:(d*=m=1/m,p*=m,h*=m,c=Math.sin(n),f=1-(u=Math.cos(n)),a[0]=d*d*f+u,a[1]=p*d*f+h*c,a[2]=h*d*f-p*c,a[3]=0,a[4]=d*p*f-h*c,a[5]=p*p*f+u,a[6]=h*p*f+d*c,a[7]=0,a[8]=d*h*f+p*c,a[9]=p*h*f-d*c,a[10]=h*h*f+u,a[11]=0,a[12]=0,a[13]=0,a[14]=0,a[15]=1,a)}},45973:function(o){o.exports=function(a,n,l){var c=n[0],u=n[1],f=n[2],d=n[3],p=c+c,h=u+u,m=f+f,y=c*p,v=c*h,g=c*m,b=u*h,w=u*m,_=f*m,x=d*p,k=d*h,T=d*m;return a[0]=1-(b+_),a[1]=v+T,a[2]=g-k,a[3]=0,a[4]=v-T,a[5]=1-(y+_),a[6]=w+x,a[7]=0,a[8]=g+k,a[9]=w-x,a[10]=1-(y+b),a[11]=0,a[12]=l[0],a[13]=l[1],a[14]=l[2],a[15]=1,a}},81472:function(o){o.exports=function(a,n){return a[0]=n[0],a[1]=0,a[2]=0,a[3]=0,a[4]=0,a[5]=n[1],a[6]=0,a[7]=0,a[8]=0,a[9]=0,a[10]=n[2],a[11]=0,a[12]=0,a[13]=0,a[14]=0,a[15]=1,a}},14669:function(o){o.exports=function(a,n){return a[0]=1,a[1]=0,a[2]=0,a[3]=0,a[4]=0,a[5]=1,a[6]=0,a[7]=0,a[8]=0,a[9]=0,a[10]=1,a[11]=0,a[12]=n[0],a[13]=n[1],a[14]=n[2],a[15]=1,a}},75262:function(o){o.exports=function(a,n){var l=Math.sin(n),c=Math.cos(n);return a[0]=1,a[1]=0,a[2]=0,a[3]=0,a[4]=0,a[5]=c,a[6]=l,a[7]=0,a[8]=0,a[9]=-l,a[10]=c,a[11]=0,a[12]=0,a[13]=0,a[14]=0,a[15]=1,a}},331:function(o){o.exports=function(a,n){var l=Math.sin(n),c=Math.cos(n);return a[0]=c,a[1]=0,a[2]=-l,a[3]=0,a[4]=0,a[5]=1,a[6]=0,a[7]=0,a[8]=l,a[9]=0,a[10]=c,a[11]=0,a[12]=0,a[13]=0,a[14]=0,a[15]=1,a}},11049:function(o){o.exports=function(a,n){var l=Math.sin(n),c=Math.cos(n);return a[0]=c,a[1]=l,a[2]=0,a[3]=0,a[4]=-l,a[5]=c,a[6]=0,a[7]=0,a[8]=0,a[9]=0,a[10]=1,a[11]=0,a[12]=0,a[13]=0,a[14]=0,a[15]=1,a}},75195:function(o){o.exports=function(a,n,l,c,u,f,d){var p=1/(l-n),h=1/(u-c),m=1/(f-d);return a[0]=2*f*p,a[1]=0,a[2]=0,a[3]=0,a[4]=0,a[5]=2*f*h,a[6]=0,a[7]=0,a[8]=(l+n)*p,a[9]=(u+c)*h,a[10]=(d+f)*m,a[11]=-1,a[12]=0,a[13]=0,a[14]=d*f*2*m,a[15]=0,a}},71551:function(o){o.exports=function(a){return a[0]=1,a[1]=0,a[2]=0,a[3]=0,a[4]=0,a[5]=1,a[6]=0,a[7]=0,a[8]=0,a[9]=0,a[10]=1,a[11]=0,a[12]=0,a[13]=0,a[14]=0,a[15]=1,a}},79576:function(o,a,n){o.exports={create:n(11902),clone:n(42331),copy:n(31042),identity:n(71551),transpose:n(88654),invert:n(95874),adjoint:n(85400),determinant:n(89887),multiply:n(91362),translate:n(31283),scale:n(10789),rotate:n(65074),rotateX:n(35545),rotateY:n(94918),rotateZ:n(15692),fromRotation:n(34045),fromRotationTranslation:n(45973),fromScaling:n(81472),fromTranslation:n(14669),fromXRotation:n(75262),fromYRotation:n(331),fromZRotation:n(11049),fromQuat:n(27812),frustum:n(75195),perspective:n(7864),perspectiveFromFieldOfView:n(35279),ortho:n(60378),lookAt:n(65551),str:n(6726)}},95874:function(o){o.exports=function(a,n){var l=n[0],c=n[1],u=n[2],f=n[3],d=n[4],p=n[5],h=n[6],m=n[7],y=n[8],v=n[9],g=n[10],b=n[11],w=n[12],_=n[13],x=n[14],k=n[15],T=l*p-c*d,S=l*h-u*d,M=l*m-f*d,C=c*h-u*p,A=c*m-f*p,D=u*m-f*h,O=y*_-v*w,R=y*x-g*w,$=y*k-b*w,P=v*x-g*_,z=v*k-b*_,B=g*k-b*x,N=T*B-S*z+M*P+C*$-A*R+D*O;return N?(N=1/N,a[0]=(p*B-h*z+m*P)*N,a[1]=(u*z-c*B-f*P)*N,a[2]=(_*D-x*A+k*C)*N,a[3]=(g*A-v*D-b*C)*N,a[4]=(h*$-d*B-m*R)*N,a[5]=(l*B-u*$+f*R)*N,a[6]=(x*M-w*D-k*S)*N,a[7]=(y*D-g*M+b*S)*N,a[8]=(d*z-p*$+m*O)*N,a[9]=(c*$-l*z-f*O)*N,a[10]=(w*A-_*M+k*T)*N,a[11]=(v*M-y*A-b*T)*N,a[12]=(p*R-d*P-h*O)*N,a[13]=(l*P-c*R+u*O)*N,a[14]=(_*S-w*C-x*T)*N,a[15]=(y*C-v*S+g*T)*N,a):null}},65551:function(o,a,n){var l=n(71551);o.exports=function(c,u,f,d){var p,h,m,y,v,g,b,w,_,x,k=u[0],T=u[1],S=u[2],M=d[0],C=d[1],A=d[2],D=f[0],O=f[1],R=f[2];return Math.abs(k-D)<1e-6&&Math.abs(T-O)<1e-6&&Math.abs(S-R)<1e-6?l(c):(b=k-D,w=T-O,_=S-R,p=C*(_*=x=1/Math.sqrt(b*b+w*w+_*_))-A*(w*=x),h=A*(b*=x)-M*_,m=M*w-C*b,(x=Math.sqrt(p*p+h*h+m*m))?(p*=x=1/x,h*=x,m*=x):(p=0,h=0,m=0),y=w*m-_*h,v=_*p-b*m,g=b*h-w*p,(x=Math.sqrt(y*y+v*v+g*g))?(y*=x=1/x,v*=x,g*=x):(y=0,v=0,g=0),c[0]=p,c[1]=y,c[2]=b,c[3]=0,c[4]=h,c[5]=v,c[6]=w,c[7]=0,c[8]=m,c[9]=g,c[10]=_,c[11]=0,c[12]=-(p*k+h*T+m*S),c[13]=-(y*k+v*T+g*S),c[14]=-(b*k+w*T+_*S),c[15]=1,c)}},91362:function(o){o.exports=function(a,n,l){var c=n[0],u=n[1],f=n[2],d=n[3],p=n[4],h=n[5],m=n[6],y=n[7],v=n[8],g=n[9],b=n[10],w=n[11],_=n[12],x=n[13],k=n[14],T=n[15],S=l[0],M=l[1],C=l[2],A=l[3];return a[0]=S*c+M*p+C*v+A*_,a[1]=S*u+M*h+C*g+A*x,a[2]=S*f+M*m+C*b+A*k,a[3]=S*d+M*y+C*w+A*T,S=l[4],M=l[5],C=l[6],A=l[7],a[4]=S*c+M*p+C*v+A*_,a[5]=S*u+M*h+C*g+A*x,a[6]=S*f+M*m+C*b+A*k,a[7]=S*d+M*y+C*w+A*T,S=l[8],M=l[9],C=l[10],A=l[11],a[8]=S*c+M*p+C*v+A*_,a[9]=S*u+M*h+C*g+A*x,a[10]=S*f+M*m+C*b+A*k,a[11]=S*d+M*y+C*w+A*T,S=l[12],M=l[13],C=l[14],A=l[15],a[12]=S*c+M*p+C*v+A*_,a[13]=S*u+M*h+C*g+A*x,a[14]=S*f+M*m+C*b+A*k,a[15]=S*d+M*y+C*w+A*T,a}},60378:function(o){o.exports=function(a,n,l,c,u,f,d){var p=1/(n-l),h=1/(c-u),m=1/(f-d);return a[0]=-2*p,a[1]=0,a[2]=0,a[3]=0,a[4]=0,a[5]=-2*h,a[6]=0,a[7]=0,a[8]=0,a[9]=0,a[10]=2*m,a[11]=0,a[12]=(n+l)*p,a[13]=(u+c)*h,a[14]=(d+f)*m,a[15]=1,a}},7864:function(o){o.exports=function(a,n,l,c,u){var f=1/Math.tan(n/2),d=1/(c-u);return a[0]=f/l,a[1]=0,a[2]=0,a[3]=0,a[4]=0,a[5]=f,a[6]=0,a[7]=0,a[8]=0,a[9]=0,a[10]=(u+c)*d,a[11]=-1,a[12]=0,a[13]=0,a[14]=2*u*c*d,a[15]=0,a}},35279:function(o){o.exports=function(a,n,l,c){var u=Math.tan(n.upDegrees*Math.PI/180),f=Math.tan(n.downDegrees*Math.PI/180),d=Math.tan(n.leftDegrees*Math.PI/180),p=Math.tan(n.rightDegrees*Math.PI/180),h=2/(d+p),m=2/(u+f);return a[0]=h,a[1]=0,a[2]=0,a[3]=0,a[4]=0,a[5]=m,a[6]=0,a[7]=0,a[8]=-(d-p)*h*.5,a[9]=(u-f)*m*.5,a[10]=c/(l-c),a[11]=-1,a[12]=0,a[13]=0,a[14]=c*l/(l-c),a[15]=0,a}},65074:function(o){o.exports=function(a,n,l,c){var u,f,d,p,h,m,y,v,g,b,w,_,x,k,T,S,M,C,A,D,O,R,$,P,z=c[0],B=c[1],N=c[2],j=Math.sqrt(z*z+B*B+N*N);return Math.abs(j)<1e-6?null:(z*=j=1/j,B*=j,N*=j,u=Math.sin(l),d=1-(f=Math.cos(l)),p=n[0],h=n[1],m=n[2],y=n[3],v=n[4],g=n[5],b=n[6],w=n[7],_=n[8],x=n[9],k=n[10],T=n[11],S=z*z*d+f,M=B*z*d+N*u,C=N*z*d-B*u,A=z*B*d-N*u,D=B*B*d+f,O=N*B*d+z*u,R=z*N*d+B*u,$=B*N*d-z*u,P=N*N*d+f,a[0]=p*S+v*M+_*C,a[1]=h*S+g*M+x*C,a[2]=m*S+b*M+k*C,a[3]=y*S+w*M+T*C,a[4]=p*A+v*D+_*O,a[5]=h*A+g*D+x*O,a[6]=m*A+b*D+k*O,a[7]=y*A+w*D+T*O,a[8]=p*R+v*$+_*P,a[9]=h*R+g*$+x*P,a[10]=m*R+b*$+k*P,a[11]=y*R+w*$+T*P,n!==a&&(a[12]=n[12],a[13]=n[13],a[14]=n[14],a[15]=n[15]),a)}},35545:function(o){o.exports=function(a,n,l){var c=Math.sin(l),u=Math.cos(l),f=n[4],d=n[5],p=n[6],h=n[7],m=n[8],y=n[9],v=n[10],g=n[11];return n!==a&&(a[0]=n[0],a[1]=n[1],a[2]=n[2],a[3]=n[3],a[12]=n[12],a[13]=n[13],a[14]=n[14],a[15]=n[15]),a[4]=f*u+m*c,a[5]=d*u+y*c,a[6]=p*u+v*c,a[7]=h*u+g*c,a[8]=m*u-f*c,a[9]=y*u-d*c,a[10]=v*u-p*c,a[11]=g*u-h*c,a}},94918:function(o){o.exports=function(a,n,l){var c=Math.sin(l),u=Math.cos(l),f=n[0],d=n[1],p=n[2],h=n[3],m=n[8],y=n[9],v=n[10],g=n[11];return n!==a&&(a[4]=n[4],a[5]=n[5],a[6]=n[6],a[7]=n[7],a[12]=n[12],a[13]=n[13],a[14]=n[14],a[15]=n[15]),a[0]=f*u-m*c,a[1]=d*u-y*c,a[2]=p*u-v*c,a[3]=h*u-g*c,a[8]=f*c+m*u,a[9]=d*c+y*u,a[10]=p*c+v*u,a[11]=h*c+g*u,a}},15692:function(o){o.exports=function(a,n,l){var c=Math.sin(l),u=Math.cos(l),f=n[0],d=n[1],p=n[2],h=n[3],m=n[4],y=n[5],v=n[6],g=n[7];return n!==a&&(a[8]=n[8],a[9]=n[9],a[10]=n[10],a[11]=n[11],a[12]=n[12],a[13]=n[13],a[14]=n[14],a[15]=n[15]),a[0]=f*u+m*c,a[1]=d*u+y*c,a[2]=p*u+v*c,a[3]=h*u+g*c,a[4]=m*u-f*c,a[5]=y*u-d*c,a[6]=v*u-p*c,a[7]=g*u-h*c,a}},10789:function(o){o.exports=function(a,n,l){var c=l[0],u=l[1],f=l[2];return a[0]=n[0]*c,a[1]=n[1]*c,a[2]=n[2]*c,a[3]=n[3]*c,a[4]=n[4]*u,a[5]=n[5]*u,a[6]=n[6]*u,a[7]=n[7]*u,a[8]=n[8]*f,a[9]=n[9]*f,a[10]=n[10]*f,a[11]=n[11]*f,a[12]=n[12],a[13]=n[13],a[14]=n[14],a[15]=n[15],a}},6726:function(o){o.exports=function(a){return"mat4("+a[0]+", "+a[1]+", "+a[2]+", "+a[3]+", "+a[4]+", "+a[5]+", "+a[6]+", "+a[7]+", "+a[8]+", "+a[9]+", "+a[10]+", "+a[11]+", "+a[12]+", "+a[13]+", "+a[14]+", "+a[15]+")"}},31283:function(o){o.exports=function(a,n,l){var c,u,f,d,p,h,m,y,v,g,b,w,_=l[0],x=l[1],k=l[2];return n===a?(a[12]=n[0]*_+n[4]*x+n[8]*k+n[12],a[13]=n[1]*_+n[5]*x+n[9]*k+n[13],a[14]=n[2]*_+n[6]*x+n[10]*k+n[14],a[15]=n[3]*_+n[7]*x+n[11]*k+n[15]):(c=n[0],u=n[1],f=n[2],d=n[3],p=n[4],h=n[5],m=n[6],y=n[7],v=n[8],g=n[9],b=n[10],w=n[11],a[0]=c,a[1]=u,a[2]=f,a[3]=d,a[4]=p,a[5]=h,a[6]=m,a[7]=y,a[8]=v,a[9]=g,a[10]=b,a[11]=w,a[12]=c*_+p*x+v*k+n[12],a[13]=u*_+h*x+g*k+n[13],a[14]=f*_+m*x+b*k+n[14],a[15]=d*_+y*x+w*k+n[15]),a}},88654:function(o){o.exports=function(a,n){if(a===n){var l=n[1],c=n[2],u=n[3],f=n[6],d=n[7],p=n[11];a[1]=n[4],a[2]=n[8],a[3]=n[12],a[4]=l,a[6]=n[9],a[7]=n[13],a[8]=c,a[9]=f,a[11]=n[14],a[12]=u,a[13]=d,a[14]=p}else a[0]=n[0],a[1]=n[4],a[2]=n[8],a[3]=n[12],a[4]=n[1],a[5]=n[5],a[6]=n[9],a[7]=n[13],a[8]=n[2],a[9]=n[6],a[10]=n[10],a[11]=n[14],a[12]=n[3],a[13]=n[7],a[14]=n[11],a[15]=n[15];return a}},40383:function(o,a,n){var l=n(68318)("%Object.getOwnPropertyDescriptor%",!0);if(l)try{l([],"length")}catch{l=null}o.exports=l},57035:function(o,a,n){var l,c=n(54404);l=typeof n.g.matchMedia=="function"?!n.g.matchMedia("(hover: none)").matches:c,o.exports=l},38520:function(o,a,n){var l=n(54404);o.exports=l&&function(){var c=!1;try{var u=Object.defineProperty({},"passive",{get:function(){c=!0}});window.addEventListener("test",null,u),window.removeEventListener("test",null,u)}catch{c=!1}return c}()},55622:function(o,a,n){var l=n(68318)("%Object.defineProperty%",!0),c=function(){if(l)try{return l({},"a",{value:1}),!0}catch{return!1}return!1};c.hasArrayLengthDefineBug=function(){if(!c())return null;try{return l([],"length",{value:1}).length!==1}catch{return!0}},o.exports=c},57877:function(o,a,n){var l=typeof Symbol<"u"&&Symbol,c=n(35638);o.exports=function(){return typeof l=="function"&&typeof Symbol=="function"&&typeof l("foo")=="symbol"&&typeof Symbol("bar")=="symbol"&&c()}},35638:function(o){o.exports=function(){if(typeof Symbol!="function"||typeof Object.getOwnPropertySymbols!="function")return!1;if(typeof Symbol.iterator=="symbol")return!0;var a={},n=Symbol("test"),l=Object(n);if(typeof n=="string"||Object.prototype.toString.call(n)!=="[object Symbol]"||Object.prototype.toString.call(l)!=="[object Symbol]")return!1;for(n in a[n]=42,a)return!1;if(typeof Object.keys=="function"&&Object.keys(a).length!==0||typeof Object.getOwnPropertyNames=="function"&&Object.getOwnPropertyNames(a).length!==0)return!1;var c=Object.getOwnPropertySymbols(a);if(c.length!==1||c[0]!==n||!Object.prototype.propertyIsEnumerable.call(a,n))return!1;if(typeof Object.getOwnPropertyDescriptor=="function"){var u=Object.getOwnPropertyDescriptor(a,n);if(u.value!==42||u.enumerable!==!0)return!1}return!0}},84543:function(o,a,n){var l=n(35638);o.exports=function(){return l()&&!!Symbol.toStringTag}},35065:function(o,a,n){var l=n(77575);o.exports=l.call(Function.call,Object.prototype.hasOwnProperty)},95280:function(o,a){a.read=function(n,l,c,u,f){var d,p,h=8*f-u-1,m=(1<>1,v=-7,g=c?f-1:0,b=c?-1:1,w=n[l+g];for(g+=b,d=w&(1<<-v)-1,w>>=-v,v+=h;v>0;d=256*d+n[l+g],g+=b,v-=8);for(p=d&(1<<-v)-1,d>>=-v,v+=u;v>0;p=256*p+n[l+g],g+=b,v-=8);if(d===0)d=1-y;else{if(d===m)return p?NaN:1/0*(w?-1:1);p+=Math.pow(2,u),d-=y}return(w?-1:1)*p*Math.pow(2,d-u)},a.write=function(n,l,c,u,f,d){var p,h,m,y=8*d-f-1,v=(1<>1,b=f===23?Math.pow(2,-24)-Math.pow(2,-77):0,w=u?0:d-1,_=u?1:-1,x=l<0||l===0&&1/l<0?1:0;for(l=Math.abs(l),isNaN(l)||l===1/0?(h=isNaN(l)?1:0,p=v):(p=Math.floor(Math.log(l)/Math.LN2),l*(m=Math.pow(2,-p))<1&&(p--,m*=2),(l+=p+g>=1?b/m:b*Math.pow(2,1-g))*m>=2&&(p++,m/=2),p+g>=v?(h=0,p=v):p+g>=1?(h=(l*m-1)*Math.pow(2,f),p+=g):(h=l*Math.pow(2,g-1)*Math.pow(2,f),p=0));f>=8;n[c+w]=255&h,w+=_,h/=256,f-=8);for(p=p<0;n[c+w]=255&p,w+=_,p/=256,y-=8);n[c+w-_]|=128*x}},42018:function(o){typeof Object.create=="function"?o.exports=function(a,n){n&&(a.super_=n,a.prototype=Object.create(n.prototype,{constructor:{value:a,enumerable:!1,writable:!0,configurable:!0}}))}:o.exports=function(a,n){if(n){a.super_=n;var l=function(){};l.prototype=n.prototype,a.prototype=new l,a.prototype.constructor=a}}},47216:function(o,a,n){var l=n(84543)(),c=n(6614)("Object.prototype.toString"),u=function(p){return!(l&&p&&typeof p=="object"&&Symbol.toStringTag in p)&&c(p)==="[object Arguments]"},f=function(p){return!!u(p)||p!==null&&typeof p=="object"&&typeof p.length=="number"&&p.length>=0&&c(p)!=="[object Array]"&&c(p.callee)==="[object Function]"},d=function(){return u(arguments)}();u.isLegacyArguments=f,o.exports=d?u:f},54404:function(o){o.exports=!0},85395:function(o){var a,n,l=Function.prototype.toString,c=typeof Reflect=="object"&&Reflect!==null&&Reflect.apply;if(typeof c=="function"&&typeof Object.defineProperty=="function")try{a=Object.defineProperty({},"length",{get:function(){throw n}}),n={},c(function(){throw 42},null,a)}catch(g){g!==n&&(c=null)}else c=null;var u=/^\s*class\b/,f=function(g){try{var b=l.call(g);return u.test(b)}catch{return!1}},d=function(g){try{return!f(g)&&(l.call(g),!0)}catch{return!1}},p=Object.prototype.toString,h=typeof Symbol=="function"&&!!Symbol.toStringTag,m=!(0 in[,]),y=function(){return!1};if(typeof document=="object"){var v=document.all;p.call(v)===p.call(document.all)&&(y=function(g){if((m||!g)&&(g===void 0||typeof g=="object"))try{var b=p.call(g);return(b==="[object HTMLAllCollection]"||b==="[object HTML document.all class]"||b==="[object HTMLCollection]"||b==="[object Object]")&&g("")==null}catch{}return!1})}o.exports=c?function(g){if(y(g))return!0;if(!g||typeof g!="function"&&typeof g!="object")return!1;try{c(g,null,a)}catch(b){if(b!==n)return!1}return!f(g)&&d(g)}:function(g){if(y(g))return!0;if(!g||typeof g!="function"&&typeof g!="object")return!1;if(h)return d(g);if(f(g))return!1;var b=p.call(g);return!(b!=="[object Function]"&&b!=="[object GeneratorFunction]"&&!/^\[object HTML/.test(b))&&d(g)}},65481:function(o,a,n){var l,c=Object.prototype.toString,u=Function.prototype.toString,f=/^\s*(?:function)?\*/,d=n(84543)(),p=Object.getPrototypeOf;o.exports=function(h){if(typeof h!="function")return!1;if(f.test(u.call(h)))return!0;if(!d)return c.call(h)==="[object GeneratorFunction]";if(!p)return!1;if(l===void 0){var m=function(){if(!d)return!1;try{return Function("return function*() {}")()}catch{}}();l=!!m&&p(m)}return p(h)===l}},64274:function(o){o.exports=function(a){return a!=a}},15567:function(o,a,n){var l=n(68222),c=n(17045),u=n(64274),f=n(14922),d=n(22442),p=l(f(),Number);c(p,{getPolyfill:f,implementation:u,shim:d}),o.exports=p},14922:function(o,a,n){var l=n(64274);o.exports=function(){return Number.isNaN&&Number.isNaN(NaN)&&!Number.isNaN("a")?Number.isNaN:l}},22442:function(o,a,n){var l=n(17045),c=n(14922);o.exports=function(){var u=c();return l(Number,{isNaN:u},{isNaN:function(){return Number.isNaN!==u}}),u}},18546:function(o){o.exports=function(a){for(var n,l=a.length,c=0;c13)&&n!==32&&n!==133&&n!==160&&n!==5760&&n!==6158&&(n<8192||n>8205)&&n!==8232&&n!==8233&&n!==8239&&n!==8287&&n!==8288&&n!==12288&&n!==65279)return!1;return!0}},9187:function(o,a,n){var l=n(31353),c=n(72077),u=n(6614),f=u("Object.prototype.toString"),d=n(84543)(),p=n(40383),h=typeof globalThis>"u"?n.g:globalThis,m=c(),y=u("Array.prototype.indexOf",!0)||function(w,_){for(var x=0;x-1}return!!p&&function(x){var k=!1;return l(g,function(T,S){if(!k)try{k=T.call(x)===S}catch{}}),k}(w)}},48956:function(o){var a={left:0,top:0};o.exports=function(n,l,c){l=l||n.currentTarget||n.srcElement,Array.isArray(c)||(c=[0,0]);var u,f=n.clientX||0,d=n.clientY||0,p=(u=l)===window||u===document||u===document.body?a:u.getBoundingClientRect();return c[0]=f-p.left,c[1]=d-p.top,c}},7417:function(o,a,n){var l,c,u,f;c="Promise",f=function(){var d,p,h,m=Object.prototype.toString,y=typeof setImmediate<"u"?function(A){return setImmediate(A)}:setTimeout;try{Object.defineProperty({},"x",{}),d=function(A,D,O,R){return Object.defineProperty(A,D,{value:O,writable:!0,configurable:R!==!1})}}catch{d=function(D,O,R){return D[O]=R,D}}function v(A,D){h.add(A,D),p||(p=y(h.drain))}function g(A){var D,O=typeof A;return A==null||O!="object"&&O!="function"||(D=A.then),typeof D=="function"&&D}function b(){for(var A=0;A0&&v(b,O))}catch(R){x.call(new T(O),R)}}}function x(A){var D=this;D.triggered||(D.triggered=!0,D.def&&(D=D.def),D.msg=A,D.state=2,D.chain.length>0&&v(b,D))}function k(A,D,O,R){for(var $=0;$"u")return!1;for(var b in window)try{if(!v["$"+b]&&c.call(window,b)&&window[b]!==null&&typeof window[b]=="object")try{y(window[b])}catch{return!0}}catch{return!0}return!1}();l=function(b){var w=b!==null&&typeof b=="object",_=u.call(b)==="[object Function]",x=f(b),k=w&&u.call(b)==="[object String]",T=[];if(!w&&!_&&!x)throw new TypeError("Object.keys called on a non-object");var S=h&&_;if(k&&b.length>0&&!c.call(b,0))for(var M=0;M0)for(var C=0;C"u"||!g)return y(R);try{return y(R)}catch{return!1}}(b),O=0;O=0&&a.call(n.callee)==="[object Function]"),c}},95616:function(o){o.exports=function(c){var u=[];return c.replace(n,function(f,d,p){var h=d.toLowerCase();for(p=function(m){var y=m.match(l);return y?y.map(Number):[]}(p),h=="m"&&p.length>2&&(u.push([d].concat(p.splice(0,2))),h="l",d=d=="m"?"l":"L");;){if(p.length==a[h])return p.unshift(d),u.push(p);if(p.lengthf!=b>f&&u<(g-y)*(f-v)/(b-v)+y&&(d=!d)}return d}},52142:function(o,a,n){var l,c=n(69444),u=n(29023),f=n(87263),d=n(11328),p=n(55968),h=n(10670),m=!1,y=u();function v(g,b,w){var _=l.segments(g),x=l.segments(b),k=w(l.combine(_,x));return l.polygon(k)}l={buildLog:function(g){return g===!0?m=c():g===!1&&(m=!1),m!==!1&&m.list},epsilon:function(g){return y.epsilon(g)},segments:function(g){var b=f(!0,y,m);return g.regions.forEach(b.addRegion),{segments:b.calculate(g.inverted),inverted:g.inverted}},combine:function(g,b){return{combined:f(!1,y,m).calculate(g.segments,g.inverted,b.segments,b.inverted),inverted1:g.inverted,inverted2:b.inverted}},selectUnion:function(g){return{segments:p.union(g.combined,m),inverted:g.inverted1||g.inverted2}},selectIntersect:function(g){return{segments:p.intersect(g.combined,m),inverted:g.inverted1&&g.inverted2}},selectDifference:function(g){return{segments:p.difference(g.combined,m),inverted:g.inverted1&&!g.inverted2}},selectDifferenceRev:function(g){return{segments:p.differenceRev(g.combined,m),inverted:!g.inverted1&&g.inverted2}},selectXor:function(g){return{segments:p.xor(g.combined,m),inverted:g.inverted1!==g.inverted2}},polygon:function(g){return{regions:d(g.segments,y,m),inverted:g.inverted}},polygonFromGeoJSON:function(g){return h.toPolygon(l,g)},polygonToGeoJSON:function(g){return h.fromPolygon(l,y,g)},union:function(g,b){return v(g,b,l.selectUnion)},intersect:function(g,b){return v(g,b,l.selectIntersect)},difference:function(g,b){return v(g,b,l.selectDifference)},differenceRev:function(g,b){return v(g,b,l.selectDifferenceRev)},xor:function(g,b){return v(g,b,l.selectXor)}},typeof window=="object"&&(window.PolyBool=l),o.exports=l},69444:function(o){o.exports=function(){var a,n=0,l=!1;function c(u,f){return a.list.push({type:u,data:f?JSON.parse(JSON.stringify(f)):void 0}),a}return a={list:[],segmentId:function(){return n++},checkIntersection:function(u,f){return c("check",{seg1:u,seg2:f})},segmentChop:function(u,f){return c("div_seg",{seg:u,pt:f}),c("chop",{seg:u,pt:f})},statusRemove:function(u){return c("pop_seg",{seg:u})},segmentUpdate:function(u){return c("seg_update",{seg:u})},segmentNew:function(u,f){return c("new_seg",{seg:u,primary:f})},segmentRemove:function(u){return c("rem_seg",{seg:u})},tempStatus:function(u,f,d){return c("temp_status",{seg:u,above:f,below:d})},rewind:function(u){return c("rewind",{seg:u})},status:function(u,f,d){return c("status",{seg:u,above:f,below:d})},vert:function(u){return u===l?a:(l=u,c("vert",{x:u}))},log:function(u){return typeof u!="string"&&(u=JSON.stringify(u,!1," ")),c("log",{txt:u})},reset:function(){return c("reset")},selected:function(u){return c("selected",{segs:u})},chainStart:function(u){return c("chain_start",{seg:u})},chainRemoveHead:function(u,f){return c("chain_rem_head",{index:u,pt:f})},chainRemoveTail:function(u,f){return c("chain_rem_tail",{index:u,pt:f})},chainNew:function(u,f){return c("chain_new",{pt1:u,pt2:f})},chainMatch:function(u){return c("chain_match",{index:u})},chainClose:function(u){return c("chain_close",{index:u})},chainAddHead:function(u,f){return c("chain_add_head",{index:u,pt:f})},chainAddTail:function(u,f){return c("chain_add_tail",{index:u,pt:f})},chainConnect:function(u,f){return c("chain_con",{index1:u,index2:f})},chainReverse:function(u){return c("chain_rev",{index:u})},chainJoin:function(u,f){return c("chain_join",{index1:u,index2:f})},done:function(){return c("done")}}}},29023:function(o){o.exports=function(a){typeof a!="number"&&(a=1e-10);var n={epsilon:function(l){return typeof l=="number"&&(a=l),a},pointAboveOrOnLine:function(l,c,u){var f=c[0],d=c[1],p=u[0],h=u[1],m=l[0];return(p-f)*(l[1]-d)-(h-d)*(m-f)>=-a},pointBetween:function(l,c,u){var f=l[1]-c[1],d=u[0]-c[0],p=l[0]-c[0],h=u[1]-c[1],m=p*d+f*h;return!(m-a)},pointsSameX:function(l,c){return Math.abs(l[0]-c[0])a!=p-f>a&&(d-y)*(f-v)/(p-v)+y-u>a&&(h=!h),d=y,p=v}return h}};return n}},10670:function(o){var a={toPolygon:function(n,l){function c(d){if(d.length<=0)return n.segments({inverted:!1,regions:[]});function p(y){var v=y.slice(0,y.length-1);return n.segments({inverted:!1,regions:[v]})}for(var h=p(d[0]),m=1;m0})}function x(P,z){var B=P.seg,N=z.seg,j=B.start,F=B.end,E=N.start,W=N.end;f&&f.checkIntersection(B,N);var H=u.linesIntersect(j,F,E,W);if(H===!1){if(!u.pointsCollinear(j,F,E)||u.pointsSame(j,W)||u.pointsSame(F,E))return!1;var L=u.pointsSame(j,E),q=u.pointsSame(F,W);if(L&&q)return z;var U=!L&&u.pointBetween(j,E,W),J=!q&&u.pointBetween(F,E,W);if(L)return J?y(z,F):y(P,W),z;U&&(q||(J?y(z,F):y(P,W)),y(z,j))}else H.alongA===0&&(H.alongB===-1?y(P,E):H.alongB===0?y(P,H.pt):H.alongB===1&&y(P,W)),H.alongB===0&&(H.alongA===-1?y(z,j):H.alongA===0?y(z,H.pt):H.alongA===1&&y(z,F));return!1}for(var k=[];!p.isEmpty();){var T=p.getHead();if(f&&f.vert(T.pt[0]),T.isStart){let P=function(){if(M){var z=x(T,M);if(z)return z}return!!C&&x(T,C)};f&&f.segmentNew(T.seg,T.primary);var S=_(T),M=S.before?S.before.ev:null,C=S.after?S.after.ev:null;f&&f.tempStatus(T.seg,!!M&&M.seg,!!C&&C.seg);var A,D,O=P();if(O&&(c?(D=T.seg.myFill.below===null||T.seg.myFill.above!==T.seg.myFill.below)&&(O.seg.myFill.above=!O.seg.myFill.above):O.seg.otherFill=T.seg.myFill,f&&f.segmentUpdate(O.seg),T.other.remove(),T.remove()),p.getHead()!==T){f&&f.rewind(T.seg);continue}c?(D=T.seg.myFill.below===null||T.seg.myFill.above!==T.seg.myFill.below,T.seg.myFill.below=C?C.seg.myFill.above:g,T.seg.myFill.above=D?!T.seg.myFill.below:T.seg.myFill.below):T.seg.otherFill===null&&(A=C?T.primary===C.primary?C.seg.otherFill.above:C.seg.myFill.above:T.primary?b:g,T.seg.otherFill={above:A,below:A}),f&&f.status(T.seg,!!M&&M.seg,!!C&&C.seg),T.other.status=S.insert(l.node({ev:T}))}else{var R=T.status;if(R===null)throw new Error("PolyBool: Zero-length segment detected; your epsilon is probably too small or too large");if(w.exists(R.prev)&&w.exists(R.next)&&x(R.prev.ev,R.next.ev),f&&f.statusRemove(R.ev.seg),R.remove(),!T.primary){var $=T.seg.myFill;T.seg.myFill=T.seg.otherFill,T.seg.otherFill=$}k.push(T.seg)}p.getHead().remove()}return f&&f.done(),k}return c?{addRegion:function(g){for(var b,w,_,x=g[g.length-1],k=0;k0&&!this.aborted;){var f=this.ifds_to_read.shift();f.offset&&this.scan_ifd(f.id,f.offset,c)}},l.prototype.read_uint16=function(c){var u=this.input;if(c+2>u.length)throw a("unexpected EOF","EBADDATA");return this.big_endian?256*u[c]+u[c+1]:u[c]+256*u[c+1]},l.prototype.read_uint32=function(c){var u=this.input;if(c+4>u.length)throw a("unexpected EOF","EBADDATA");return this.big_endian?16777216*u[c]+65536*u[c+1]+256*u[c+2]+u[c+3]:u[c]+256*u[c+1]+65536*u[c+2]+16777216*u[c+3]},l.prototype.is_subifd_link=function(c,u){return c===0&&u===34665||c===0&&u===34853||c===34665&&u===40965},l.prototype.exif_format_length=function(c){switch(c){case 1:case 2:case 6:case 7:return 1;case 3:case 8:return 2;case 4:case 9:case 11:return 4;case 5:case 10:case 12:return 8;default:return 0}},l.prototype.exif_format_read=function(c,u){var f;switch(c){case 1:case 2:return this.input[u];case 6:return(f=this.input[u])|33554430*(128&f);case 3:return this.read_uint16(u);case 8:return(f=this.read_uint16(u))|131070*(32768&f);case 4:return this.read_uint32(u);case 9:return 0|this.read_uint32(u);default:return null}},l.prototype.scan_ifd=function(c,u,f){var d=this.read_uint16(u);u+=2;for(var p=0;pthis.input.length)throw a("unexpected EOF","EBADDATA");for(var _=[],x=b,k=0;k0&&(this.ifds_to_read.push({id:h,offset:_[0]}),w=!0),f({is_big_endian:this.big_endian,ifd:c,tag:h,format:m,count:y,entry_offset:u+this.start,data_length:g,data_offset:b+this.start,value:_,is_subifd_link:w})===!1)return void(this.aborted=!0);u+=12}c===0&&this.ifds_to_read.push({id:1,offset:this.read_uint32(u)})},o.exports.ExifParser=l,o.exports.get_orientation=function(c){var u=0;try{return new l(c,0,c.length).each(function(f){if(f.ifd===0&&f.tag===274&&Array.isArray(f.value))return u=f.value[0],!1}),u}catch{return-1}}},76767:function(o,a,n){var l=n(14847).n8,c=n(14847).Ag;function u(y,v){if(y.length<4+v)return null;var g=c(y,v);return y.length>4&15,b=15&y[4],w=y[5]>>4&15,_=l(y,6),x=8,k=0;k<_;k++){var T=l(y,x),S=l(y,x+=2),M=d(y,x+=2,w),C=l(y,x+=w);if(x+=2,S===0&&C===1){var A=d(y,x,g),D=d(y,x+g,b);v.item_loc[T]={length:D,offset:A+M}}x+=C*(g+b)}}function h(y,v){for(var g=l(y,4),b=6,w=0;wS.width||T.width===S.width&&T.height>S.height?T:S}),w=g.reduce(function(T,S){return T.height>S.height||T.height===S.height&&T.width>S.width?T:S}),b.width>w.height||b.width===w.height&&b.height>w.width?b:w),x=1;v.transforms.forEach(function(T){var S={1:6,2:5,3:8,4:7,5:4,6:3,7:2,8:1},M={1:4,2:3,3:2,4:1,5:6,6:5,7:8,8:7};if(T.type==="imir"&&(x=T.value===0?M[x]:S[x=S[x=M[x]]]),T.type==="irot")for(var C=0;C1&&(_.variants=w.variants),w.orientation&&(_.orientation=w.orientation),w.exif_location&&w.exif_location.offset+w.exif_location.length<=h.length){var x=u(h,w.exif_location.offset),k=h.slice(w.exif_location.offset+x+4,w.exif_location.offset+w.exif_location.length),T=d.get_orientation(k);T>0&&(_.orientation=T)}return _}}}}}}},2504:function(o,a,n){var l=n(14847).eG,c=n(14847).OF,u=n(14847).mP,f=l("BM");o.exports=function(d){if(!(d.length<26)&&c(d,0,f))return{width:u(d,18),height:u(d,22),type:"bmp",mime:"image/bmp",wUnits:"px",hUnits:"px"}}},47342:function(o,a,n){var l=n(14847).eG,c=n(14847).OF,u=n(14847).mP,f=l("GIF87a"),d=l("GIF89a");o.exports=function(p){if(!(p.length<10)&&(c(p,0,f)||c(p,0,d)))return{width:u(p,6),height:u(p,8),type:"gif",mime:"image/gif",wUnits:"px",hUnits:"px"}}},31355:function(o,a,n){var l=n(14847).mP;o.exports=function(c){var u=l(c,0),f=l(c,2),d=l(c,4);if(u===0&&f===1&&d){for(var p=[],h={width:0,height:0},m=0;mh.width||v>h.height)&&(h=g)}return{width:h.width,height:h.height,variants:p,type:"ico",mime:"image/x-icon",wUnits:"px",hUnits:"px"}}}},54261:function(o,a,n){var l=n(14847).n8,c=n(14847).eG,u=n(14847).OF,f=n(71371),d=c("Exif\0\0");o.exports=function(p){if(!(p.length<2)&&p[0]===255&&p[1]===216&&p[2]===255)for(var h=2;;){for(;;){if(p.length-h<2)return;if(p[h++]===255)break}for(var m,y,v=p[h++];v===255;)v=p[h++];if(208<=v&&v<=217||v===1)m=0;else{if(!(192<=v&&v<=254)||p.length-h<2)return;m=l(p,h)-2,h+=2}if(v===217||v===218)return;if(v===225&&m>=10&&u(p,h,d)&&(y=f.get_orientation(p.slice(h+6,h+m))),m>=5&&192<=v&&v<=207&&v!==196&&v!==200&&v!==204){if(p.length-h0&&(g.orientation=y),g}h+=m}}},6303:function(o,a,n){var l=n(14847).eG,c=n(14847).OF,u=n(14847).Ag,f=l(`‰PNG\r + +`),d=l("IHDR");o.exports=function(p){if(!(p.length<24)&&c(p,0,f)&&c(p,12,d))return{width:u(p,16),height:u(p,20),type:"png",mime:"image/png",wUnits:"px",hUnits:"px"}}},38689:function(o,a,n){var l=n(14847).eG,c=n(14847).OF,u=n(14847).Ag,f=l("8BPS\0");o.exports=function(d){if(!(d.length<22)&&c(d,0,f))return{width:u(d,18),height:u(d,14),type:"psd",mime:"image/vnd.adobe.photoshop",wUnits:"px",hUnits:"px"}}},6881:function(o){function a(h){return typeof h=="number"&&isFinite(h)&&h>0}var n=/<[-_.:a-zA-Z0-9][^>]*>/,l=/^<([-_.:a-zA-Z0-9]+:)?svg\s/,c=/[^-]\bwidth="([^%]+?)"|[^-]\bwidth='([^%]+?)'/,u=/\bheight="([^%]+?)"|\bheight='([^%]+?)'/,f=/\bview[bB]ox="(.+?)"|\bview[bB]ox='(.+?)'/,d=/in$|mm$|cm$|pt$|pc$|px$|em$|ex$/;function p(h){return d.test(h)?h.match(d)[0]:"px"}o.exports=function(h){if(function(M){var C,A=0,D=M.length;for(M[0]===239&&M[1]===187&&M[2]===191&&(A=3);A>14&16383),type:"webp",mime:"image/webp",wUnits:"px",hUnits:"px"}}}function v(g,b){return{width:1+(g[b+6]<<16|g[b+5]<<8|g[b+4]),height:1+(g[b+9]<g.length)){for(;b+8=10?w=w||m(g,b+8):k==="VP8L"&&T>=9?w=w||y(g,b+8):k==="VP8X"&&T>=10?w=w||v(g,b+8):k==="EXIF"&&(_=d.get_orientation(g.slice(b+8,b+8+T)),b=1/0),b+=8+T}else b++;if(w)return _>0&&(w.orientation=_),w}}}},91497:function(o,a,n){o.exports={avif:n(24461),bmp:n(2504),gif:n(47342),ico:n(31355),jpeg:n(54261),png:n(6303),psd:n(38689),svg:n(6881),tiff:n(66278),webp:n(90784)}},33575:function(o,a,n){var l=n(91497);o.exports=function(c){return function(u){for(var f=Object.keys(l),d=0;d1)for(var x=1;x2?"one of ".concat(u," ").concat(c.slice(0,f-1).join(", "),", or ")+c[f-1]:f===2?"one of ".concat(u," ").concat(c[0]," or ").concat(c[1]):"of ".concat(u," ").concat(c[0])}return"of ".concat(u," ").concat(String(c))}n("ERR_INVALID_OPT_VALUE",function(c,u){return'The value "'+u+'" is invalid for option "'+c+'"'},TypeError),n("ERR_INVALID_ARG_TYPE",function(c,u,f){var d,p,h,m,y;if(typeof u=="string"&&(p="not ",u.substr(0,4)===p)?(d="must not be",u=u.replace(/^not /,"")):d="must be",function(g,b,w){return(w===void 0||w>g.length)&&(w=g.length),g.substring(w-9,w)===b}(c," argument"))h="The ".concat(c," ").concat(d," ").concat(l(u,"type"));else{var v=(typeof y!="number"&&(y=0),y+1>(m=c).length||m.indexOf(".",y)===-1?"argument":"property");h='The "'.concat(c,'" ').concat(v," ").concat(d," ").concat(l(u,"type"))}return h+". Received type ".concat(typeof f)},TypeError),n("ERR_STREAM_PUSH_AFTER_EOF","stream.push() after EOF"),n("ERR_METHOD_NOT_IMPLEMENTED",function(c){return"The "+c+" method is not implemented"}),n("ERR_STREAM_PREMATURE_CLOSE","Premature close"),n("ERR_STREAM_DESTROYED",function(c){return"Cannot call "+c+" after a stream was destroyed"}),n("ERR_MULTIPLE_CALLBACK","Callback called multiple times"),n("ERR_STREAM_CANNOT_PIPE","Cannot pipe, not readable"),n("ERR_STREAM_WRITE_AFTER_END","write after end"),n("ERR_STREAM_NULL_VALUES","May not write null values to stream",TypeError),n("ERR_UNKNOWN_ENCODING",function(c){return"Unknown encoding: "+c},TypeError),n("ERR_STREAM_UNSHIFT_AFTER_END_EVENT","stream.unshift() after end event"),o.exports.q=a},37865:function(o,a,n){var l=n(90386),c=Object.keys||function(g){var b=[];for(var w in g)b.push(w);return b};o.exports=m;var u=n(40410),f=n(37493);n(42018)(m,u);for(var d=c(f.prototype),p=0;p0)if(typeof K=="string"||re.objectMode||Object.getPrototypeOf(K)===p.prototype||(K=function(ie){return p.from(ie)}(K)),G)re.endEmitted?C(ee,new M):$(ee,re,K,!0);else if(re.ended)C(ee,new T);else{if(re.destroyed)return!1;re.reading=!1,re.decoder&&!Q?(K=re.decoder.write(K),re.objectMode||K.length!==0?$(ee,re,K,!1):j(ee,re)):$(ee,re,K,!1)}else G||(re.reading=!1,j(ee,re));return!re.ended&&(re.lengthK.highWaterMark&&(K.highWaterMark=function(Q){return Q>=P?Q=P:(Q--,Q|=Q>>>1,Q|=Q>>>2,Q|=Q>>>4,Q|=Q>>>8,Q|=Q>>>16,Q++),Q}(ee)),ee<=K.length?ee:K.ended?K.length:(K.needReadable=!0,0))}function B(ee){var K=ee._readableState;u("emitReadable",K.needReadable,K.emittedReadable),K.needReadable=!1,K.emittedReadable||(u("emitReadable",K.flowing),K.emittedReadable=!0,c.nextTick(N,ee))}function N(ee){var K=ee._readableState;u("emitReadable_",K.destroyed,K.length,K.ended),K.destroyed||!K.length&&!K.ended||(ee.emit("readable"),K.emittedReadable=!1),K.needReadable=!K.flowing&&!K.ended&&K.length<=K.highWaterMark,L(ee)}function j(ee,K){K.readingMore||(K.readingMore=!0,c.nextTick(F,ee,K))}function F(ee,K){for(;!K.reading&&!K.ended&&(K.length0,K.resumeScheduled&&!K.paused?K.flowing=!0:ee.listenerCount("data")>0&&ee.resume()}function W(ee){u("readable nexttick read 0"),ee.read(0)}function H(ee,K){u("resume",K.reading),K.reading||ee.read(0),K.resumeScheduled=!1,ee.emit("resume"),L(ee),K.flowing&&!K.reading&&ee.read(0)}function L(ee){var K=ee._readableState;for(u("flow",K.flowing);K.flowing&&ee.read()!==null;);}function q(ee,K){return K.length===0?null:(K.objectMode?Q=K.buffer.shift():!ee||ee>=K.length?(Q=K.decoder?K.buffer.join(""):K.buffer.length===1?K.buffer.first():K.buffer.concat(K.length),K.buffer.clear()):Q=K.buffer.consume(ee,K.decoder),Q);var Q}function U(ee){var K=ee._readableState;u("endReadable",K.endEmitted),K.endEmitted||(K.ended=!0,c.nextTick(J,K,ee))}function J(ee,K){if(u("endReadableNT",ee.endEmitted,ee.length),!ee.endEmitted&&ee.length===0&&(ee.endEmitted=!0,K.readable=!1,K.emit("end"),ee.autoDestroy)){var Q=K._writableState;(!Q||Q.autoDestroy&&Q.finished)&&K.destroy()}}function te(ee,K){for(var Q=0,G=ee.length;Q=K.highWaterMark:K.length>0)||K.ended))return u("read: emitReadable",K.length,K.ended),K.length===0&&K.ended?U(this):B(this),null;if((ee=z(ee,K))===0&&K.ended)return K.length===0&&U(this),null;var G,X=K.needReadable;return u("need readable",X),(K.length===0||K.length-ee0?q(ee,K):null)===null?(K.needReadable=K.length<=K.highWaterMark,ee=0):(K.length-=ee,K.awaitDrain=0),K.length===0&&(K.ended||(K.needReadable=!0),Q!==ee&&K.ended&&U(this)),G!==null&&this.emit("data",G),G},O.prototype._read=function(ee){C(this,new S("_read()"))},O.prototype.pipe=function(ee,K){var Q=this,G=this._readableState;switch(G.pipesCount){case 0:G.pipes=ee;break;case 1:G.pipes=[G.pipes,ee];break;default:G.pipes.push(ee)}G.pipesCount+=1,u("pipe count=%d opts=%j",G.pipesCount,K);var X=K&&K.end===!1||ee===c.stdout||ee===c.stderr?Me:Y;function Y(){u("onend"),ee.end()}G.endEmitted?c.nextTick(X):Q.once("end",X),ee.on("unpipe",function Ce(Se,ce){u("onunpipe"),Se===Q&&ce&&ce.hasUnpiped===!1&&(ce.hasUnpiped=!0,u("cleanup"),ee.removeListener("close",he),ee.removeListener("finish",_e),ee.removeListener("drain",re),ee.removeListener("error",se),ee.removeListener("unpipe",Ce),Q.removeListener("end",Y),Q.removeListener("end",Me),Q.removeListener("data",le),ie=!0,!G.awaitDrain||ee._writableState&&!ee._writableState.needDrain||re())});var re=function(Ce){return function(){var Se=Ce._readableState;u("pipeOnDrain",Se.awaitDrain),Se.awaitDrain&&Se.awaitDrain--,Se.awaitDrain===0&&f(Ce,"data")&&(Se.flowing=!0,L(Ce))}}(Q);ee.on("drain",re);var ie=!1;function le(Ce){u("ondata");var Se=ee.write(Ce);u("dest.write",Se),Se===!1&&((G.pipesCount===1&&G.pipes===ee||G.pipesCount>1&&te(G.pipes,ee)!==-1)&&!ie&&(u("false write response, pause",G.awaitDrain),G.awaitDrain++),Q.pause())}function se(Ce){u("onerror",Ce),Me(),ee.removeListener("error",se),f(ee,"error")===0&&C(ee,Ce)}function he(){ee.removeListener("finish",_e),Me()}function _e(){u("onfinish"),ee.removeListener("close",he),Me()}function Me(){u("unpipe"),Q.unpipe(ee)}return Q.on("data",le),function(Ce,Se,ce){if(typeof Ce.prependListener=="function")return Ce.prependListener(Se,ce);Ce._events&&Ce._events[Se]?Array.isArray(Ce._events[Se])?Ce._events[Se].unshift(ce):Ce._events[Se]=[ce,Ce._events[Se]]:Ce.on(Se,ce)}(ee,"error",se),ee.once("close",he),ee.once("finish",_e),ee.emit("pipe",Q),G.flowing||(u("pipe resume"),Q.resume()),ee},O.prototype.unpipe=function(ee){var K=this._readableState,Q={hasUnpiped:!1};if(K.pipesCount===0)return this;if(K.pipesCount===1)return ee&&ee!==K.pipes||(ee||(ee=K.pipes),K.pipes=null,K.pipesCount=0,K.flowing=!1,ee&&ee.emit("unpipe",this,Q)),this;if(!ee){var G=K.pipes,X=K.pipesCount;K.pipes=null,K.pipesCount=0,K.flowing=!1;for(var Y=0;Y0,G.flowing!==!1&&this.resume()):ee==="readable"&&(G.endEmitted||G.readableListening||(G.readableListening=G.needReadable=!0,G.flowing=!1,G.emittedReadable=!1,u("on readable",G.length,G.reading),G.length?B(this):G.reading||c.nextTick(W,this))),Q},O.prototype.addListener=O.prototype.on,O.prototype.removeListener=function(ee,K){var Q=d.prototype.removeListener.call(this,ee,K);return ee==="readable"&&c.nextTick(E,this),Q},O.prototype.removeAllListeners=function(ee){var K=d.prototype.removeAllListeners.apply(this,arguments);return ee!=="readable"&&ee!==void 0||c.nextTick(E,this),K},O.prototype.resume=function(){var ee=this._readableState;return ee.flowing||(u("resume"),ee.flowing=!ee.readableListening,function(K,Q){Q.resumeScheduled||(Q.resumeScheduled=!0,c.nextTick(H,K,Q))}(this,ee)),ee.paused=!1,this},O.prototype.pause=function(){return u("call pause flowing=%j",this._readableState.flowing),this._readableState.flowing!==!1&&(u("pause"),this._readableState.flowing=!1,this.emit("pause")),this._readableState.paused=!0,this},O.prototype.wrap=function(ee){var K=this,Q=this._readableState,G=!1;for(var X in ee.on("end",function(){if(u("wrapped end"),Q.decoder&&!Q.ended){var re=Q.decoder.end();re&&re.length&&K.push(re)}K.push(null)}),ee.on("data",function(re){u("wrapped data"),Q.decoder&&(re=Q.decoder.write(re)),Q.objectMode&&re==null||(Q.objectMode||re&&re.length)&&(K.push(re)||(G=!0,ee.pause()))}),ee)this[X]===void 0&&typeof ee[X]=="function"&&(this[X]=function(re){return function(){return ee[re].apply(ee,arguments)}}(X));for(var Y=0;Y-1))throw new M(j);return this._writableState.defaultEncoding=j,this},Object.defineProperty(O.prototype,"writableBuffer",{enumerable:!1,get:function(){return this._writableState&&this._writableState.getBuffer()}}),Object.defineProperty(O.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}}),O.prototype._write=function(j,F,E){E(new w("_write()"))},O.prototype._writev=null,O.prototype.end=function(j,F,E){var W=this._writableState;return typeof j=="function"?(E=j,j=null,F=null):typeof F=="function"&&(E=F,F=null),j!=null&&this.write(j,F),W.corked&&(W.corked=1,this.uncork()),W.ending||function(H,L,q){L.ending=!0,N(H,L),q&&(L.finished?c.nextTick(q):H.once("finish",q)),L.ended=!0,H.writable=!1}(this,W,E),this},Object.defineProperty(O.prototype,"writableLength",{enumerable:!1,get:function(){return this._writableState.length}}),Object.defineProperty(O.prototype,"destroyed",{enumerable:!1,get:function(){return this._writableState!==void 0&&this._writableState.destroyed},set:function(j){this._writableState&&(this._writableState.destroyed=j)}}),O.prototype.destroy=y.destroy,O.prototype._undestroy=y.undestroy,O.prototype._destroy=function(j,F){F(j)}},68221:function(o,a,n){var l,c=n(90386);function u(T,S,M){return S in T?Object.defineProperty(T,S,{value:M,enumerable:!0,configurable:!0,writable:!0}):T[S]=M,T}var f=n(12726),d=Symbol("lastResolve"),p=Symbol("lastReject"),h=Symbol("error"),m=Symbol("ended"),y=Symbol("lastPromise"),v=Symbol("handlePromise"),g=Symbol("stream");function b(T,S){return{value:T,done:S}}function w(T){var S=T[d];if(S!==null){var M=T[g].read();M!==null&&(T[y]=null,T[d]=null,T[p]=null,S(b(M,!1)))}}function _(T){c.nextTick(w,T)}var x=Object.getPrototypeOf(function(){}),k=Object.setPrototypeOf((u(l={get stream(){return this[g]},next:function(){var T=this,S=this[h];if(S!==null)return Promise.reject(S);if(this[m])return Promise.resolve(b(void 0,!0));if(this[g].destroyed)return new Promise(function(D,O){c.nextTick(function(){T[h]?O(T[h]):D(b(void 0,!0))})});var M,C=this[y];if(C)M=new Promise(function(D,O){return function(R,$){D.then(function(){O[m]?R(b(void 0,!0)):O[v](R,$)},$)}}(C,this));else{var A=this[g].read();if(A!==null)return Promise.resolve(b(A,!1));M=new Promise(this[v])}return this[y]=M,M}},Symbol.asyncIterator,function(){return this}),u(l,"return",function(){var T=this;return new Promise(function(S,M){T[g].destroy(null,function(C){C?M(C):S(b(void 0,!0))})})}),l),x);o.exports=function(T){var S,M=Object.create(k,(u(S={},g,{value:T,writable:!0}),u(S,d,{value:null,writable:!0}),u(S,p,{value:null,writable:!0}),u(S,h,{value:null,writable:!0}),u(S,m,{value:T._readableState.endEmitted,writable:!0}),u(S,v,{value:function(C,A){var D=M[g].read();D?(M[y]=null,M[d]=null,M[p]=null,C(b(D,!1))):(M[d]=C,M[p]=A)},writable:!0}),S));return M[y]=null,f(T,function(C){if(C&&C.code!=="ERR_STREAM_PREMATURE_CLOSE"){var A=M[p];return A!==null&&(M[y]=null,M[d]=null,M[p]=null,A(C)),void(M[h]=C)}var D=M[d];D!==null&&(M[y]=null,M[d]=null,M[p]=null,D(b(void 0,!0))),M[m]=!0}),T.on("readable",_.bind(null,M)),M}},31125:function(o,a,n){function l(h,m){var y=Object.keys(h);if(Object.getOwnPropertySymbols){var v=Object.getOwnPropertySymbols(h);m&&(v=v.filter(function(g){return Object.getOwnPropertyDescriptor(h,g).enumerable})),y.push.apply(y,v)}return y}function c(h,m,y){return m in h?Object.defineProperty(h,m,{value:y,enumerable:!0,configurable:!0,writable:!0}):h[m]=y,h}function u(h,m){for(var y=0;y0?this.tail.next=g:this.head=g,this.tail=g,++this.length}},{key:"unshift",value:function(v){var g={data:v,next:this.head};this.length===0&&(this.tail=g),this.head=g,++this.length}},{key:"shift",value:function(){if(this.length!==0){var v=this.head.data;return this.length===1?this.head=this.tail=null:this.head=this.head.next,--this.length,v}}},{key:"clear",value:function(){this.head=this.tail=null,this.length=0}},{key:"join",value:function(v){if(this.length===0)return"";for(var g=this.head,b=""+g.data;g=g.next;)b+=v+g.data;return b}},{key:"concat",value:function(v){if(this.length===0)return f.alloc(0);for(var g,b,w,_=f.allocUnsafe(v>>>0),x=this.head,k=0;x;)g=x.data,b=_,w=k,f.prototype.copy.call(g,b,w),k+=x.data.length,x=x.next;return _}},{key:"consume",value:function(v,g){var b;return v_.length?_.length:v;if(x===_.length?w+=_:w+=_.slice(0,v),(v-=x)==0){x===_.length?(++b,g.next?this.head=g.next:this.head=this.tail=null):(this.head=g,g.data=_.slice(x));break}++b}return this.length-=b,w}},{key:"_getBuffer",value:function(v){var g=f.allocUnsafe(v),b=this.head,w=1;for(b.data.copy(g),v-=b.data.length;b=b.next;){var _=b.data,x=v>_.length?_.length:v;if(_.copy(g,g.length-v,0,x),(v-=x)==0){x===_.length?(++w,b.next?this.head=b.next:this.head=this.tail=null):(this.head=b,b.data=_.slice(x));break}++w}return this.length-=w,g}},{key:p,value:function(v,g){return d(this,function(b){for(var w=1;w0,function(T){g||(g=T),T&&w.forEach(p),k||(w.forEach(p),b(g))})});return y.reduce(h)}},56306:function(o,a,n){var l=n(74322).q.ERR_INVALID_OPT_VALUE;o.exports={getHighWaterMark:function(c,u,f,d){var p=function(h,m,y){return h.highWaterMark!=null?h.highWaterMark:m?h[y]:null}(u,d,f);if(p!=null){if(!isFinite(p)||Math.floor(p)!==p||p<0)throw new l(d?f:"highWaterMark",p);return Math.floor(p)}return c.objectMode?16:16384}}},71405:function(o,a,n){o.exports=n(15398).EventEmitter},68019:function(o,a,n){var l=n(71665).Buffer,c=l.isEncoding||function(b){switch((b=""+b)&&b.toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":case"raw":return!0;default:return!1}};function u(b){var w;switch(this.encoding=function(_){var x=function(k){if(!k)return"utf8";for(var T;;)switch(k){case"utf8":case"utf-8":return"utf8";case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return"utf16le";case"latin1":case"binary":return"latin1";case"base64":case"ascii":case"hex":return k;default:if(T)return;k=(""+k).toLowerCase(),T=!0}}(_);if(typeof x!="string"&&(l.isEncoding===c||!c(_)))throw new Error("Unknown encoding: "+_);return x||_}(b),this.encoding){case"utf16le":this.text=p,this.end=h,w=4;break;case"utf8":this.fillLast=d,w=4;break;case"base64":this.text=m,this.end=y,w=3;break;default:return this.write=v,void(this.end=g)}this.lastNeed=0,this.lastTotal=0,this.lastChar=l.allocUnsafe(w)}function f(b){return b<=127?0:b>>5==6?2:b>>4==14?3:b>>3==30?4:b>>6==2?-1:-2}function d(b){var w=this.lastTotal-this.lastNeed,_=function(x,k,T){if((192&k[0])!=128)return x.lastNeed=0,"�";if(x.lastNeed>1&&k.length>1){if((192&k[1])!=128)return x.lastNeed=1,"�";if(x.lastNeed>2&&k.length>2&&(192&k[2])!=128)return x.lastNeed=2,"�"}}(this,b);return _!==void 0?_:this.lastNeed<=b.length?(b.copy(this.lastChar,w,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal)):(b.copy(this.lastChar,w,0,b.length),void(this.lastNeed-=b.length))}function p(b,w){if((b.length-w)%2==0){var _=b.toString("utf16le",w);if(_){var x=_.charCodeAt(_.length-1);if(x>=55296&&x<=56319)return this.lastNeed=2,this.lastTotal=4,this.lastChar[0]=b[b.length-2],this.lastChar[1]=b[b.length-1],_.slice(0,-1)}return _}return this.lastNeed=1,this.lastTotal=2,this.lastChar[0]=b[b.length-1],b.toString("utf16le",w,b.length-1)}function h(b){var w=b&&b.length?this.write(b):"";if(this.lastNeed){var _=this.lastTotal-this.lastNeed;return w+this.lastChar.toString("utf16le",0,_)}return w}function m(b,w){var _=(b.length-w)%3;return _===0?b.toString("base64",w):(this.lastNeed=3-_,this.lastTotal=3,_===1?this.lastChar[0]=b[b.length-1]:(this.lastChar[0]=b[b.length-2],this.lastChar[1]=b[b.length-1]),b.toString("base64",w,b.length-_))}function y(b){var w=b&&b.length?this.write(b):"";return this.lastNeed?w+this.lastChar.toString("base64",0,3-this.lastNeed):w}function v(b){return b.toString(this.encoding)}function g(b){return b&&b.length?this.write(b):""}a.s=u,u.prototype.write=function(b){if(b.length===0)return"";var w,_;if(this.lastNeed){if((w=this.fillLast(b))===void 0)return"";_=this.lastNeed,this.lastNeed=0}else _=0;return _=0?(C>0&&(k.lastNeed=C-1),C):--M=0?(C>0&&(k.lastNeed=C-2),C):--M=0?(C>0&&(C===2?C=0:k.lastNeed=C-3),C):0}(this,b,w);if(!this.lastNeed)return b.toString("utf8",w);this.lastTotal=_;var x=b.length-(_-this.lastNeed);return b.copy(this.lastChar,0,x),b.toString("utf8",w,x)},u.prototype.fillLast=function(b){if(this.lastNeed<=b.length)return b.copy(this.lastChar,this.lastTotal-this.lastNeed,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal);b.copy(this.lastChar,this.lastTotal-this.lastNeed,0,b.length),this.lastNeed-=b.length}},90715:function(o,a,n){var l=n(32791),c=n(41633)("stream-parser");o.exports=function(k){var T=k&&typeof k._transform=="function",S=k&&typeof k._write=="function";if(!T&&!S)throw new Error("must pass a Writable or Transform stream in");c("extending Parser into stream"),k._bytes=m,k._skipBytes=y,T&&(k._passthrough=v),T?k._transform=b:k._write=g};var u=-1,f=0,d=1,p=2;function h(k){c("initializing parser stream"),k._parserBytesLeft=0,k._parserBuffers=[],k._parserBuffered=0,k._parserState=u,k._parserCallback=null,typeof k.push=="function"&&(k._parserOutput=k.push.bind(k)),k._parserInit=!0}function m(k,T){l(!this._parserCallback,'there is already a "callback" set!'),l(isFinite(k)&&k>0,'can only buffer a finite number of bytes > 0, got "'+k+'"'),this._parserInit||h(this),c("buffering %o bytes",k),this._parserBytesLeft=k,this._parserCallback=T,this._parserState=f}function y(k,T){l(!this._parserCallback,'there is already a "callback" set!'),l(k>0,'can only skip > 0 bytes, got "'+k+'"'),this._parserInit||h(this),c("skipping %o bytes",k),this._parserBytesLeft=k,this._parserCallback=T,this._parserState=d}function v(k,T){l(!this._parserCallback,'There is already a "callback" set!'),l(k>0,'can only pass through > 0 bytes, got "'+k+'"'),this._parserInit||h(this),c("passing through %o bytes",k),this._parserBytesLeft=k,this._parserCallback=T,this._parserState=p}function g(k,T,S){this._parserInit||h(this),c("write(%o bytes)",k.length),typeof T=="function"&&(S=T),_(this,k,null,S)}function b(k,T,S){this._parserInit||h(this),c("transform(%o bytes)",k.length),typeof T!="function"&&(T=this._parserOutput),_(this,k,T,S)}function w(k,T,S,M){if(k._parserBytesLeft-=T.length,c("%o bytes left for stream piece",k._parserBytesLeft),k._parserState===f?(k._parserBuffers.push(T),k._parserBuffered+=T.length):k._parserState===p&&S(T),k._parserBytesLeft!==0)return M;var C=k._parserCallback;if(C&&k._parserState===f&&k._parserBuffers.length>1&&(T=Buffer.concat(k._parserBuffers,k._parserBuffered)),k._parserState!==f&&(T=null),k._parserCallback=null,k._parserBuffered=0,k._parserState=u,k._parserBuffers.splice(0),C){var A=[];T&&A.push(T),S&&A.push(S);var D=C.length>A.length;D&&A.push(x(M));var O=C.apply(k,A);if(!D||M===O)return M}}var _=x(function k(T,S,M,C){return T._parserBytesLeft<=0?C(new Error("got data but not currently parsing anything")):S.length<=T._parserBytesLeft?function(){return w(T,S,M,C)}:function(){var A=S.slice(0,T._parserBytesLeft);return w(T,A,M,function(D){return D?C(D):S.length>A.length?function(){return k(T,S.slice(A.length),M,C)}:void 0})}});function x(k){return function(){for(var T=k.apply(this,arguments);typeof T=="function";)T=T();return T}}},41633:function(o,a,n){var l=n(90386);function c(){var u;try{u=a.storage.debug}catch{}return!u&&l!==void 0&&"env"in l&&(u=l.env.DEBUG),u}(a=o.exports=n(74469)).log=function(){return typeof console=="object"&&console.log&&Function.prototype.apply.call(console.log,console,arguments)},a.formatArgs=function(u){var f=this.useColors;if(u[0]=(f?"%c":"")+this.namespace+(f?" %c":" ")+u[0]+(f?"%c ":" ")+"+"+a.humanize(this.diff),f){var d="color: "+this.color;u.splice(1,0,d,"color: inherit");var p=0,h=0;u[0].replace(/%[a-zA-Z%]/g,function(m){m!=="%%"&&(p++,m==="%c"&&(h=p))}),u.splice(h,0,d)}},a.save=function(u){try{u==null?a.storage.removeItem("debug"):a.storage.debug=u}catch{}},a.load=c,a.useColors=function(){return!(typeof window>"u"||!window.process||window.process.type!=="renderer")||typeof document<"u"&&document.documentElement&&document.documentElement.style&&document.documentElement.style.WebkitAppearance||typeof window<"u"&&window.console&&(window.console.firebug||window.console.exception&&window.console.table)||typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/firefox\/(\d+)/)&&parseInt(RegExp.$1,10)>=31||typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/applewebkit\/(\d+)/)},a.storage=typeof chrome<"u"&&chrome.storage!==void 0?chrome.storage.local:function(){try{return window.localStorage}catch{}}(),a.colors=["lightseagreen","forestgreen","goldenrod","dodgerblue","darkorchid","crimson"],a.formatters.j=function(u){try{return JSON.stringify(u)}catch(f){return"[UnexpectedJSONParseError]: "+f.message}},a.enable(c())},74469:function(o,a,n){var l;function c(u){function f(){if(f.enabled){var d=f,p=+new Date,h=p-(l||p);d.diff=h,d.prev=l,d.curr=p,l=p;for(var m=new Array(arguments.length),y=0;y0)return function(m){if(!((m=String(m)).length>100)){var y=/^((?:\d+)?\.?\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|years?|yrs?|y)?$/i.exec(m);if(y){var v=parseFloat(y[1]);switch((y[2]||"ms").toLowerCase()){case"years":case"year":case"yrs":case"yr":case"y":return 315576e5*v;case"days":case"day":case"d":return v*c;case"hours":case"hour":case"hrs":case"hr":case"h":return v*l;case"minutes":case"minute":case"mins":case"min":case"m":return v*n;case"seconds":case"second":case"secs":case"sec":case"s":return v*a;case"milliseconds":case"millisecond":case"msecs":case"msec":case"ms":return v;default:return}}}}(f);if(h==="number"&&isNaN(f)===!1)return d.long?u(p=f,c,"day")||u(p,l,"hour")||u(p,n,"minute")||u(p,a,"second")||p+" ms":function(m){return m>=c?Math.round(m/c)+"d":m>=l?Math.round(m/l)+"h":m>=n?Math.round(m/n)+"m":m>=a?Math.round(m/a)+"s":m+"ms"}(f);throw new Error("val is not a non-empty string or a valid number. val="+JSON.stringify(f))}},84267:function(o,a,n){var l;(function(c){var u=/^\s+/,f=/\s+$/,d=0,p=c.round,h=c.min,m=c.max,y=c.random;function v(G,X){if(X=X||{},(G=G||"")instanceof v)return G;if(!(this instanceof v))return new v(G,X);var Y=function(re){var ie,le,se,he={r:0,g:0,b:0},_e=1,Me=null,Ce=null,Se=null,ce=!1,ye=!1;return typeof re=="string"&&(re=function(V){V=V.replace(u,"").replace(f,"").toLowerCase();var ne,fe=!1;if(B[V])V=B[V],fe=!0;else if(V=="transparent")return{r:0,g:0,b:0,a:0,format:"name"};return(ne=K.rgb.exec(V))?{r:ne[1],g:ne[2],b:ne[3]}:(ne=K.rgba.exec(V))?{r:ne[1],g:ne[2],b:ne[3],a:ne[4]}:(ne=K.hsl.exec(V))?{h:ne[1],s:ne[2],l:ne[3]}:(ne=K.hsla.exec(V))?{h:ne[1],s:ne[2],l:ne[3],a:ne[4]}:(ne=K.hsv.exec(V))?{h:ne[1],s:ne[2],v:ne[3]}:(ne=K.hsva.exec(V))?{h:ne[1],s:ne[2],v:ne[3],a:ne[4]}:(ne=K.hex8.exec(V))?{r:W(ne[1]),g:W(ne[2]),b:W(ne[3]),a:U(ne[4]),format:fe?"name":"hex8"}:(ne=K.hex6.exec(V))?{r:W(ne[1]),g:W(ne[2]),b:W(ne[3]),format:fe?"name":"hex"}:(ne=K.hex4.exec(V))?{r:W(ne[1]+""+ne[1]),g:W(ne[2]+""+ne[2]),b:W(ne[3]+""+ne[3]),a:U(ne[4]+""+ne[4]),format:fe?"name":"hex8"}:!!(ne=K.hex3.exec(V))&&{r:W(ne[1]+""+ne[1]),g:W(ne[2]+""+ne[2]),b:W(ne[3]+""+ne[3]),format:fe?"name":"hex"}}(re)),typeof re=="object"&&(Q(re.r)&&Q(re.g)&&Q(re.b)?(ie=re.r,le=re.g,se=re.b,he={r:255*F(ie,255),g:255*F(le,255),b:255*F(se,255)},ce=!0,ye=String(re.r).substr(-1)==="%"?"prgb":"rgb"):Q(re.h)&&Q(re.s)&&Q(re.v)?(Me=L(re.s),Ce=L(re.v),he=function(V,ne,fe){V=6*F(V,360),ne=F(ne,100),fe=F(fe,100);var xe=c.floor(V),ue=V-xe,ge=fe*(1-ne),be=fe*(1-ue*ne),we=fe*(1-(1-ue)*ne),ke=xe%6;return{r:255*[fe,be,ge,ge,we,fe][ke],g:255*[we,fe,fe,be,ge,ge][ke],b:255*[ge,ge,we,fe,fe,be][ke]}}(re.h,Me,Ce),ce=!0,ye="hsv"):Q(re.h)&&Q(re.s)&&Q(re.l)&&(Me=L(re.s),Se=L(re.l),he=function(V,ne,fe){var xe,ue,ge;function be(Pe,Re,De){return De<0&&(De+=1),De>1&&(De-=1),De<1/6?Pe+6*(Re-Pe)*De:De<.5?Re:De<2/3?Pe+(Re-Pe)*(2/3-De)*6:Pe}if(V=F(V,360),ne=F(ne,100),fe=F(fe,100),ne===0)xe=ue=ge=fe;else{var we=fe<.5?fe*(1+ne):fe+ne-fe*ne,ke=2*fe-we;xe=be(ke,we,V+1/3),ue=be(ke,we,V),ge=be(ke,we,V-1/3)}return{r:255*xe,g:255*ue,b:255*ge}}(re.h,Me,Se),ce=!0,ye="hsl"),re.hasOwnProperty("a")&&(_e=re.a)),_e=j(_e),{ok:ce,format:re.format||ye,r:h(255,m(he.r,0)),g:h(255,m(he.g,0)),b:h(255,m(he.b,0)),a:_e}}(G);this._originalInput=G,this._r=Y.r,this._g=Y.g,this._b=Y.b,this._a=Y.a,this._roundA=p(100*this._a)/100,this._format=X.format||Y.format,this._gradientType=X.gradientType,this._r<1&&(this._r=p(this._r)),this._g<1&&(this._g=p(this._g)),this._b<1&&(this._b=p(this._b)),this._ok=Y.ok,this._tc_id=d++}function g(G,X,Y){G=F(G,255),X=F(X,255),Y=F(Y,255);var re,ie,le=m(G,X,Y),se=h(G,X,Y),he=(le+se)/2;if(le==se)re=ie=0;else{var _e=le-se;switch(ie=he>.5?_e/(2-le-se):_e/(le+se),le){case G:re=(X-Y)/_e+(X>1)+720)%360;--X;)re.h=(re.h+ie)%360,le.push(v(re));return le}function z(G,X){X=X||6;for(var Y=v(G).toHsv(),re=Y.h,ie=Y.s,le=Y.v,se=[],he=1/X;X--;)se.push(v({h:re,s:ie,v:le})),le=(le+he)%1;return se}v.prototype={isDark:function(){return this.getBrightness()<128},isLight:function(){return!this.isDark()},isValid:function(){return this._ok},getOriginalInput:function(){return this._originalInput},getFormat:function(){return this._format},getAlpha:function(){return this._a},getBrightness:function(){var G=this.toRgb();return(299*G.r+587*G.g+114*G.b)/1e3},getLuminance:function(){var G,X,Y,re=this.toRgb();return G=re.r/255,X=re.g/255,Y=re.b/255,.2126*(G<=.03928?G/12.92:c.pow((G+.055)/1.055,2.4))+.7152*(X<=.03928?X/12.92:c.pow((X+.055)/1.055,2.4))+.0722*(Y<=.03928?Y/12.92:c.pow((Y+.055)/1.055,2.4))},setAlpha:function(G){return this._a=j(G),this._roundA=p(100*this._a)/100,this},toHsv:function(){var G=b(this._r,this._g,this._b);return{h:360*G.h,s:G.s,v:G.v,a:this._a}},toHsvString:function(){var G=b(this._r,this._g,this._b),X=p(360*G.h),Y=p(100*G.s),re=p(100*G.v);return this._a==1?"hsv("+X+", "+Y+"%, "+re+"%)":"hsva("+X+", "+Y+"%, "+re+"%, "+this._roundA+")"},toHsl:function(){var G=g(this._r,this._g,this._b);return{h:360*G.h,s:G.s,l:G.l,a:this._a}},toHslString:function(){var G=g(this._r,this._g,this._b),X=p(360*G.h),Y=p(100*G.s),re=p(100*G.l);return this._a==1?"hsl("+X+", "+Y+"%, "+re+"%)":"hsla("+X+", "+Y+"%, "+re+"%, "+this._roundA+")"},toHex:function(G){return w(this._r,this._g,this._b,G)},toHexString:function(G){return"#"+this.toHex(G)},toHex8:function(G){return function(X,Y,re,ie,le){var se=[H(p(X).toString(16)),H(p(Y).toString(16)),H(p(re).toString(16)),H(q(ie))];return le&&se[0].charAt(0)==se[0].charAt(1)&&se[1].charAt(0)==se[1].charAt(1)&&se[2].charAt(0)==se[2].charAt(1)&&se[3].charAt(0)==se[3].charAt(1)?se[0].charAt(0)+se[1].charAt(0)+se[2].charAt(0)+se[3].charAt(0):se.join("")}(this._r,this._g,this._b,this._a,G)},toHex8String:function(G){return"#"+this.toHex8(G)},toRgb:function(){return{r:p(this._r),g:p(this._g),b:p(this._b),a:this._a}},toRgbString:function(){return this._a==1?"rgb("+p(this._r)+", "+p(this._g)+", "+p(this._b)+")":"rgba("+p(this._r)+", "+p(this._g)+", "+p(this._b)+", "+this._roundA+")"},toPercentageRgb:function(){return{r:p(100*F(this._r,255))+"%",g:p(100*F(this._g,255))+"%",b:p(100*F(this._b,255))+"%",a:this._a}},toPercentageRgbString:function(){return this._a==1?"rgb("+p(100*F(this._r,255))+"%, "+p(100*F(this._g,255))+"%, "+p(100*F(this._b,255))+"%)":"rgba("+p(100*F(this._r,255))+"%, "+p(100*F(this._g,255))+"%, "+p(100*F(this._b,255))+"%, "+this._roundA+")"},toName:function(){return this._a===0?"transparent":!(this._a<1)&&(N[w(this._r,this._g,this._b,!0)]||!1)},toFilter:function(G){var X="#"+_(this._r,this._g,this._b,this._a),Y=X,re=this._gradientType?"GradientType = 1, ":"";if(G){var ie=v(G);Y="#"+_(ie._r,ie._g,ie._b,ie._a)}return"progid:DXImageTransform.Microsoft.gradient("+re+"startColorstr="+X+",endColorstr="+Y+")"},toString:function(G){var X=!!G;G=G||this._format;var Y=!1,re=this._a<1&&this._a>=0;return X||!re||G!=="hex"&&G!=="hex6"&&G!=="hex3"&&G!=="hex4"&&G!=="hex8"&&G!=="name"?(G==="rgb"&&(Y=this.toRgbString()),G==="prgb"&&(Y=this.toPercentageRgbString()),G!=="hex"&&G!=="hex6"||(Y=this.toHexString()),G==="hex3"&&(Y=this.toHexString(!0)),G==="hex4"&&(Y=this.toHex8String(!0)),G==="hex8"&&(Y=this.toHex8String()),G==="name"&&(Y=this.toName()),G==="hsl"&&(Y=this.toHslString()),G==="hsv"&&(Y=this.toHsvString()),Y||this.toHexString()):G==="name"&&this._a===0?this.toName():this.toRgbString()},clone:function(){return v(this.toString())},_applyModification:function(G,X){var Y=G.apply(null,[this].concat([].slice.call(X)));return this._r=Y._r,this._g=Y._g,this._b=Y._b,this.setAlpha(Y._a),this},lighten:function(){return this._applyModification(S,arguments)},brighten:function(){return this._applyModification(M,arguments)},darken:function(){return this._applyModification(C,arguments)},desaturate:function(){return this._applyModification(x,arguments)},saturate:function(){return this._applyModification(k,arguments)},greyscale:function(){return this._applyModification(T,arguments)},spin:function(){return this._applyModification(A,arguments)},_applyCombination:function(G,X){return G.apply(null,[this].concat([].slice.call(X)))},analogous:function(){return this._applyCombination(P,arguments)},complement:function(){return this._applyCombination(D,arguments)},monochromatic:function(){return this._applyCombination(z,arguments)},splitcomplement:function(){return this._applyCombination($,arguments)},triad:function(){return this._applyCombination(O,arguments)},tetrad:function(){return this._applyCombination(R,arguments)}},v.fromRatio=function(G,X){if(typeof G=="object"){var Y={};for(var re in G)G.hasOwnProperty(re)&&(Y[re]=re==="a"?G[re]:L(G[re]));G=Y}return v(G,X)},v.equals=function(G,X){return!(!G||!X)&&v(G).toRgbString()==v(X).toRgbString()},v.random=function(){return v.fromRatio({r:y(),g:y(),b:y()})},v.mix=function(G,X,Y){Y=Y===0?0:Y||50;var re=v(G).toRgb(),ie=v(X).toRgb(),le=Y/100;return v({r:(ie.r-re.r)*le+re.r,g:(ie.g-re.g)*le+re.g,b:(ie.b-re.b)*le+re.b,a:(ie.a-re.a)*le+re.a})},v.readability=function(G,X){var Y=v(G),re=v(X);return(c.max(Y.getLuminance(),re.getLuminance())+.05)/(c.min(Y.getLuminance(),re.getLuminance())+.05)},v.isReadable=function(G,X,Y){var re,ie,le,se,he,_e=v.readability(G,X);switch(ie=!1,(le=Y,(se=((le=le||{level:"AA",size:"small"}).level||"AA").toUpperCase())!=="AA"&&se!=="AAA"&&(se="AA"),(he=(le.size||"small").toLowerCase())!=="small"&&he!=="large"&&(he="small"),re={level:se,size:he}).level+re.size){case"AAsmall":case"AAAlarge":ie=_e>=4.5;break;case"AAlarge":ie=_e>=3;break;case"AAAsmall":ie=_e>=7}return ie},v.mostReadable=function(G,X,Y){var re,ie,le,se,he=null,_e=0;ie=(Y=Y||{}).includeFallbackColors,le=Y.level,se=Y.size;for(var Me=0;Me_e&&(_e=re,he=v(X[Me]));return v.isReadable(G,he,{level:le,size:se})||!ie?he:(Y.includeFallbackColors=!1,v.mostReadable(G,["#fff","#000"],Y))};var B=v.names={aliceblue:"f0f8ff",antiquewhite:"faebd7",aqua:"0ff",aquamarine:"7fffd4",azure:"f0ffff",beige:"f5f5dc",bisque:"ffe4c4",black:"000",blanchedalmond:"ffebcd",blue:"00f",blueviolet:"8a2be2",brown:"a52a2a",burlywood:"deb887",burntsienna:"ea7e5d",cadetblue:"5f9ea0",chartreuse:"7fff00",chocolate:"d2691e",coral:"ff7f50",cornflowerblue:"6495ed",cornsilk:"fff8dc",crimson:"dc143c",cyan:"0ff",darkblue:"00008b",darkcyan:"008b8b",darkgoldenrod:"b8860b",darkgray:"a9a9a9",darkgreen:"006400",darkgrey:"a9a9a9",darkkhaki:"bdb76b",darkmagenta:"8b008b",darkolivegreen:"556b2f",darkorange:"ff8c00",darkorchid:"9932cc",darkred:"8b0000",darksalmon:"e9967a",darkseagreen:"8fbc8f",darkslateblue:"483d8b",darkslategray:"2f4f4f",darkslategrey:"2f4f4f",darkturquoise:"00ced1",darkviolet:"9400d3",deeppink:"ff1493",deepskyblue:"00bfff",dimgray:"696969",dimgrey:"696969",dodgerblue:"1e90ff",firebrick:"b22222",floralwhite:"fffaf0",forestgreen:"228b22",fuchsia:"f0f",gainsboro:"dcdcdc",ghostwhite:"f8f8ff",gold:"ffd700",goldenrod:"daa520",gray:"808080",green:"008000",greenyellow:"adff2f",grey:"808080",honeydew:"f0fff0",hotpink:"ff69b4",indianred:"cd5c5c",indigo:"4b0082",ivory:"fffff0",khaki:"f0e68c",lavender:"e6e6fa",lavenderblush:"fff0f5",lawngreen:"7cfc00",lemonchiffon:"fffacd",lightblue:"add8e6",lightcoral:"f08080",lightcyan:"e0ffff",lightgoldenrodyellow:"fafad2",lightgray:"d3d3d3",lightgreen:"90ee90",lightgrey:"d3d3d3",lightpink:"ffb6c1",lightsalmon:"ffa07a",lightseagreen:"20b2aa",lightskyblue:"87cefa",lightslategray:"789",lightslategrey:"789",lightsteelblue:"b0c4de",lightyellow:"ffffe0",lime:"0f0",limegreen:"32cd32",linen:"faf0e6",magenta:"f0f",maroon:"800000",mediumaquamarine:"66cdaa",mediumblue:"0000cd",mediumorchid:"ba55d3",mediumpurple:"9370db",mediumseagreen:"3cb371",mediumslateblue:"7b68ee",mediumspringgreen:"00fa9a",mediumturquoise:"48d1cc",mediumvioletred:"c71585",midnightblue:"191970",mintcream:"f5fffa",mistyrose:"ffe4e1",moccasin:"ffe4b5",navajowhite:"ffdead",navy:"000080",oldlace:"fdf5e6",olive:"808000",olivedrab:"6b8e23",orange:"ffa500",orangered:"ff4500",orchid:"da70d6",palegoldenrod:"eee8aa",palegreen:"98fb98",paleturquoise:"afeeee",palevioletred:"db7093",papayawhip:"ffefd5",peachpuff:"ffdab9",peru:"cd853f",pink:"ffc0cb",plum:"dda0dd",powderblue:"b0e0e6",purple:"800080",rebeccapurple:"663399",red:"f00",rosybrown:"bc8f8f",royalblue:"4169e1",saddlebrown:"8b4513",salmon:"fa8072",sandybrown:"f4a460",seagreen:"2e8b57",seashell:"fff5ee",sienna:"a0522d",silver:"c0c0c0",skyblue:"87ceeb",slateblue:"6a5acd",slategray:"708090",slategrey:"708090",snow:"fffafa",springgreen:"00ff7f",steelblue:"4682b4",tan:"d2b48c",teal:"008080",thistle:"d8bfd8",tomato:"ff6347",turquoise:"40e0d0",violet:"ee82ee",wheat:"f5deb3",white:"fff",whitesmoke:"f5f5f5",yellow:"ff0",yellowgreen:"9acd32"},N=v.hexNames=function(G){var X={};for(var Y in G)G.hasOwnProperty(Y)&&(X[G[Y]]=Y);return X}(B);function j(G){return G=parseFloat(G),(isNaN(G)||G<0||G>1)&&(G=1),G}function F(G,X){(function(re){return typeof re=="string"&&re.indexOf(".")!=-1&&parseFloat(re)===1})(G)&&(G="100%");var Y=function(re){return typeof re=="string"&&re.indexOf("%")!=-1}(G);return G=h(X,m(0,parseFloat(G))),Y&&(G=parseInt(G*X,10)/100),c.abs(G-X)<1e-6?1:G%X/parseFloat(X)}function E(G){return h(1,m(0,G))}function W(G){return parseInt(G,16)}function H(G){return G.length==1?"0"+G:""+G}function L(G){return G<=1&&(G=100*G+"%"),G}function q(G){return c.round(255*parseFloat(G)).toString(16)}function U(G){return W(G)/255}var J,te,ee,K=(te="[\\s|\\(]+("+(J="(?:[-\\+]?\\d*\\.\\d+%?)|(?:[-\\+]?\\d+%?)")+")[,|\\s]+("+J+")[,|\\s]+("+J+")\\s*\\)?",ee="[\\s|\\(]+("+J+")[,|\\s]+("+J+")[,|\\s]+("+J+")[,|\\s]+("+J+")\\s*\\)?",{CSS_UNIT:new RegExp(J),rgb:new RegExp("rgb"+te),rgba:new RegExp("rgba"+ee),hsl:new RegExp("hsl"+te),hsla:new RegExp("hsla"+ee),hsv:new RegExp("hsv"+te),hsva:new RegExp("hsva"+ee),hex3:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex6:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/,hex4:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex8:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/});function Q(G){return!!K.CSS_UNIT.exec(G)}o.exports?o.exports=v:(l=(function(){return v}).call(a,n,a,o))===void 0||(o.exports=l)})(Math)},20588:function(o,a,n){function l(c){try{if(!n.g.localStorage)return!1}catch{return!1}var u=n.g.localStorage[c];return u!=null&&String(u).toLowerCase()==="true"}o.exports=function(c,u){if(l("noDeprecation"))return c;var f=!1;return function(){if(!f){if(l("throwDeprecation"))throw new Error(u);l("traceDeprecation")?console.trace(u):console.warn(u),f=!0}return c.apply(this,arguments)}}},45920:function(o){o.exports=function(a){return a&&typeof a=="object"&&typeof a.copy=="function"&&typeof a.fill=="function"&&typeof a.readUInt8=="function"}},4936:function(o,a,n){var l=n(47216),c=n(65481),u=n(21099),f=n(9187);function d(F){return F.call.bind(F)}var p=typeof BigInt<"u",h=typeof Symbol<"u",m=d(Object.prototype.toString),y=d(Number.prototype.valueOf),v=d(String.prototype.valueOf),g=d(Boolean.prototype.valueOf);if(p)var b=d(BigInt.prototype.valueOf);if(h)var w=d(Symbol.prototype.valueOf);function _(F,E){if(typeof F!="object")return!1;try{return E(F),!0}catch{return!1}}function x(F){return m(F)==="[object Map]"}function k(F){return m(F)==="[object Set]"}function T(F){return m(F)==="[object WeakMap]"}function S(F){return m(F)==="[object WeakSet]"}function M(F){return m(F)==="[object ArrayBuffer]"}function C(F){return typeof ArrayBuffer<"u"&&(M.working?M(F):F instanceof ArrayBuffer)}function A(F){return m(F)==="[object DataView]"}function D(F){return typeof DataView<"u"&&(A.working?A(F):F instanceof DataView)}a.isArgumentsObject=l,a.isGeneratorFunction=c,a.isTypedArray=f,a.isPromise=function(F){return typeof Promise<"u"&&F instanceof Promise||F!==null&&typeof F=="object"&&typeof F.then=="function"&&typeof F.catch=="function"},a.isArrayBufferView=function(F){return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?ArrayBuffer.isView(F):f(F)||D(F)},a.isUint8Array=function(F){return u(F)==="Uint8Array"},a.isUint8ClampedArray=function(F){return u(F)==="Uint8ClampedArray"},a.isUint16Array=function(F){return u(F)==="Uint16Array"},a.isUint32Array=function(F){return u(F)==="Uint32Array"},a.isInt8Array=function(F){return u(F)==="Int8Array"},a.isInt16Array=function(F){return u(F)==="Int16Array"},a.isInt32Array=function(F){return u(F)==="Int32Array"},a.isFloat32Array=function(F){return u(F)==="Float32Array"},a.isFloat64Array=function(F){return u(F)==="Float64Array"},a.isBigInt64Array=function(F){return u(F)==="BigInt64Array"},a.isBigUint64Array=function(F){return u(F)==="BigUint64Array"},x.working=typeof Map<"u"&&x(new Map),a.isMap=function(F){return typeof Map<"u"&&(x.working?x(F):F instanceof Map)},k.working=typeof Set<"u"&&k(new Set),a.isSet=function(F){return typeof Set<"u"&&(k.working?k(F):F instanceof Set)},T.working=typeof WeakMap<"u"&&T(new WeakMap),a.isWeakMap=function(F){return typeof WeakMap<"u"&&(T.working?T(F):F instanceof WeakMap)},S.working=typeof WeakSet<"u"&&S(new WeakSet),a.isWeakSet=function(F){return S(F)},M.working=typeof ArrayBuffer<"u"&&M(new ArrayBuffer),a.isArrayBuffer=C,A.working=typeof ArrayBuffer<"u"&&typeof DataView<"u"&&A(new DataView(new ArrayBuffer(1),0,1)),a.isDataView=D;var O=typeof SharedArrayBuffer<"u"?SharedArrayBuffer:void 0;function R(F){return m(F)==="[object SharedArrayBuffer]"}function $(F){return O!==void 0&&(R.working===void 0&&(R.working=R(new O)),R.working?R(F):F instanceof O)}function P(F){return _(F,y)}function z(F){return _(F,v)}function B(F){return _(F,g)}function N(F){return p&&_(F,b)}function j(F){return h&&_(F,w)}a.isSharedArrayBuffer=$,a.isAsyncFunction=function(F){return m(F)==="[object AsyncFunction]"},a.isMapIterator=function(F){return m(F)==="[object Map Iterator]"},a.isSetIterator=function(F){return m(F)==="[object Set Iterator]"},a.isGeneratorObject=function(F){return m(F)==="[object Generator]"},a.isWebAssemblyCompiledModule=function(F){return m(F)==="[object WebAssembly.Module]"},a.isNumberObject=P,a.isStringObject=z,a.isBooleanObject=B,a.isBigIntObject=N,a.isSymbolObject=j,a.isBoxedPrimitive=function(F){return P(F)||z(F)||B(F)||N(F)||j(F)},a.isAnyArrayBuffer=function(F){return typeof Uint8Array<"u"&&(C(F)||$(F))},["isProxy","isExternal","isModuleNamespaceObject"].forEach(function(F){Object.defineProperty(a,F,{enumerable:!1,value:function(){throw new Error(F+" is not supported in userland")}})})},43827:function(o,a,n){var l=n(90386),c=Object.getOwnPropertyDescriptors||function(j){for(var F=Object.keys(j),E={},W=0;W=H)return U;switch(U){case"%s":return String(W[E++]);case"%d":return Number(W[E++]);case"%j":try{return JSON.stringify(W[E++])}catch{return"[Circular]"}default:return U}}),q=W[E];E=3&&(E.depth=arguments[2]),arguments.length>=4&&(E.colors=arguments[3]),_(F)?E.showHidden=F:F&&a._extend(E,F),S(E.showHidden)&&(E.showHidden=!1),S(E.depth)&&(E.depth=2),S(E.colors)&&(E.colors=!1),S(E.customInspect)&&(E.customInspect=!0),E.colors&&(E.stylize=m),v(E,j,E.depth)}function m(j,F){var E=h.styles[F];return E?"\x1B["+h.colors[E][0]+"m"+j+"\x1B["+h.colors[E][1]+"m":j}function y(j,F){return j}function v(j,F,E){if(j.customInspect&&F&&O(F.inspect)&&F.inspect!==a.inspect&&(!F.constructor||F.constructor.prototype!==F)){var W=F.inspect(E,j);return T(W)||(W=v(j,W,E)),W}var H=function(Q,G){if(S(G))return Q.stylize("undefined","undefined");if(T(G)){var X="'"+JSON.stringify(G).replace(/^"|"$/g,"").replace(/'/g,"\\'").replace(/\\"/g,'"')+"'";return Q.stylize(X,"string")}return k(G)?Q.stylize(""+G,"number"):_(G)?Q.stylize(""+G,"boolean"):x(G)?Q.stylize("null","null"):void 0}(j,F);if(H)return H;var L=Object.keys(F),q=function(Q){var G={};return Q.forEach(function(X,Y){G[X]=!0}),G}(L);if(j.showHidden&&(L=Object.getOwnPropertyNames(F)),D(F)&&(L.indexOf("message")>=0||L.indexOf("description")>=0))return g(F);if(L.length===0){if(O(F)){var U=F.name?": "+F.name:"";return j.stylize("[Function"+U+"]","special")}if(M(F))return j.stylize(RegExp.prototype.toString.call(F),"regexp");if(A(F))return j.stylize(Date.prototype.toString.call(F),"date");if(D(F))return g(F)}var J,te="",ee=!1,K=["{","}"];return w(F)&&(ee=!0,K=["[","]"]),O(F)&&(te=" [Function"+(F.name?": "+F.name:"")+"]"),M(F)&&(te=" "+RegExp.prototype.toString.call(F)),A(F)&&(te=" "+Date.prototype.toUTCString.call(F)),D(F)&&(te=" "+g(F)),L.length!==0||ee&&F.length!=0?E<0?M(F)?j.stylize(RegExp.prototype.toString.call(F),"regexp"):j.stylize("[Object]","special"):(j.seen.push(F),J=ee?function(Q,G,X,Y,re){for(var ie=[],le=0,se=G.length;le60?X[0]+(G===""?"":G+` + `)+" "+Q.join(`, + `)+" "+X[1]:X[0]+G+" "+Q.join(", ")+" "+X[1]}(J,te,K)):K[0]+te+K[1]}function g(j){return"["+Error.prototype.toString.call(j)+"]"}function b(j,F,E,W,H,L){var q,U,J;if((J=Object.getOwnPropertyDescriptor(F,H)||{value:F[H]}).get?U=J.set?j.stylize("[Getter/Setter]","special"):j.stylize("[Getter]","special"):J.set&&(U=j.stylize("[Setter]","special")),z(W,H)||(q="["+H+"]"),U||(j.seen.indexOf(J.value)<0?(U=x(E)?v(j,J.value,null):v(j,J.value,E-1)).indexOf(` +`)>-1&&(U=L?U.split(` +`).map(function(te){return" "+te}).join(` +`).slice(2):` +`+U.split(` +`).map(function(te){return" "+te}).join(` +`)):U=j.stylize("[Circular]","special")),S(q)){if(L&&H.match(/^\d+$/))return U;(q=JSON.stringify(""+H)).match(/^"([a-zA-Z_][a-zA-Z_0-9]*)"$/)?(q=q.slice(1,-1),q=j.stylize(q,"name")):(q=q.replace(/'/g,"\\'").replace(/\\"/g,'"').replace(/(^"|"$)/g,"'"),q=j.stylize(q,"string"))}return q+": "+U}function w(j){return Array.isArray(j)}function _(j){return typeof j=="boolean"}function x(j){return j===null}function k(j){return typeof j=="number"}function T(j){return typeof j=="string"}function S(j){return j===void 0}function M(j){return C(j)&&R(j)==="[object RegExp]"}function C(j){return typeof j=="object"&&j!==null}function A(j){return C(j)&&R(j)==="[object Date]"}function D(j){return C(j)&&(R(j)==="[object Error]"||j instanceof Error)}function O(j){return typeof j=="function"}function R(j){return Object.prototype.toString.call(j)}function $(j){return j<10?"0"+j.toString(10):j.toString(10)}a.debuglog=function(j){if(j=j.toUpperCase(),!f[j])if(d.test(j)){var F=l.pid;f[j]=function(){var E=a.format.apply(a,arguments);console.error("%s %d: %s",j,F,E)}}else f[j]=function(){};return f[j]},a.inspect=h,h.colors={bold:[1,22],italic:[3,23],underline:[4,24],inverse:[7,27],white:[37,39],grey:[90,39],black:[30,39],blue:[34,39],cyan:[36,39],green:[32,39],magenta:[35,39],red:[31,39],yellow:[33,39]},h.styles={special:"cyan",number:"yellow",boolean:"yellow",undefined:"grey",null:"bold",string:"green",date:"magenta",regexp:"red"},a.types=n(4936),a.isArray=w,a.isBoolean=_,a.isNull=x,a.isNullOrUndefined=function(j){return j==null},a.isNumber=k,a.isString=T,a.isSymbol=function(j){return typeof j=="symbol"},a.isUndefined=S,a.isRegExp=M,a.types.isRegExp=M,a.isObject=C,a.isDate=A,a.types.isDate=A,a.isError=D,a.types.isNativeError=D,a.isFunction=O,a.isPrimitive=function(j){return j===null||typeof j=="boolean"||typeof j=="number"||typeof j=="string"||typeof j=="symbol"||j===void 0},a.isBuffer=n(45920);var P=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"];function z(j,F){return Object.prototype.hasOwnProperty.call(j,F)}a.log=function(){var j,F;console.log("%s - %s",(F=[$((j=new Date).getHours()),$(j.getMinutes()),$(j.getSeconds())].join(":"),[j.getDate(),P[j.getMonth()],F].join(" ")),a.format.apply(a,arguments))},a.inherits=n(42018),a._extend=function(j,F){if(!F||!C(F))return j;for(var E=Object.keys(F),W=E.length;W--;)j[E[W]]=F[E[W]];return j};var B=typeof Symbol<"u"?Symbol("util.promisify.custom"):void 0;function N(j,F){if(!j){var E=new Error("Promise was rejected with a falsy value");E.reason=j,j=E}return F(j)}a.promisify=function(j){if(typeof j!="function")throw new TypeError('The "original" argument must be of type Function');if(B&&j[B]){var F;if(typeof(F=j[B])!="function")throw new TypeError('The "util.promisify.custom" argument must be of type Function');return Object.defineProperty(F,B,{value:F,enumerable:!1,writable:!1,configurable:!0}),F}function F(){for(var E,W,H=new Promise(function(U,J){E=U,W=J}),L=[],q=0;q"u"?n.g:globalThis,m=c(),y=u("String.prototype.slice"),v={},g=Object.getPrototypeOf;p&&f&&g&&l(m,function(w){if(typeof h[w]=="function"){var _=new h[w];if(Symbol.toStringTag in _){var x=g(_),k=f(x,Symbol.toStringTag);if(!k){var T=g(x);k=f(T,Symbol.toStringTag)}v[w]=k.get}}});var b=n(9187);o.exports=function(w){return!!b(w)&&(p&&Symbol.toStringTag in w?function(_){var x=!1;return l(v,function(k,T){if(!x)try{var S=k.call(_);S===T&&(x=S)}catch{}}),x}(w):y(d(w),8,-1))}},3961:function(o,a,n){var l=n(63489),c=n(56131),u=l.instance();function f(g){this.local=this.regionalOptions[g||""]||this.regionalOptions[""]}f.prototype=new l.baseCalendar,c(f.prototype,{name:"Chinese",jdEpoch:17214255e-1,hasYearZero:!1,minMonth:0,firstMonth:0,minDay:1,regionalOptions:{"":{name:"Chinese",epochs:["BEC","EC"],monthNumbers:function(g,b){if(typeof g=="string"){var w=g.match(p);return w?w[0]:""}var _=this._validateYear(g),x=g.month(),k=""+this.toChineseMonth(_,x);return b&&k.length<2&&(k="0"+k),this.isIntercalaryMonth(_,x)&&(k+="i"),k},monthNames:function(g){if(typeof g=="string"){var b=g.match(h);return b?b[0]:""}var w=this._validateYear(g),_=g.month(),x=["一月","二月","三月","四月","五月","六月","七月","八月","九月","十月","十一月","十二月"][this.toChineseMonth(w,_)-1];return this.isIntercalaryMonth(w,_)&&(x="闰"+x),x},monthNamesShort:function(g){if(typeof g=="string"){var b=g.match(m);return b?b[0]:""}var w=this._validateYear(g),_=g.month(),x=["一","二","三","四","五","六","七","八","九","十","十一","十二"][this.toChineseMonth(w,_)-1];return this.isIntercalaryMonth(w,_)&&(x="闰"+x),x},parseMonth:function(g,b){g=this._validateYear(g);var w,_=parseInt(b);if(isNaN(_))b[0]==="闰"&&(w=!0,b=b.substring(1)),b[b.length-1]==="月"&&(b=b.substring(0,b.length-1)),_=1+["一","二","三","四","五","六","七","八","九","十","十一","十二"].indexOf(b);else{var x=b[b.length-1];w=x==="i"||x==="I"}return this.toMonthIndex(g,_,w)},dayNames:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],dayNamesShort:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],dayNamesMin:["Su","Mo","Tu","We","Th","Fr","Sa"],digits:null,dateFormat:"yyyy/mm/dd",firstDay:1,isRTL:!1}},_validateYear:function(g,b){if(g.year&&(g=g.year()),typeof g!="number"||g<1888||g>2111)throw b.replace(/\{0\}/,this.local.name);return g},toMonthIndex:function(g,b,w){var _=this.intercalaryMonth(g);if(w&&b!==_||b<1||b>12)throw l.local.invalidMonth.replace(/\{0\}/,this.local.name);return _?!w&&b<=_?b-1:b:b-1},toChineseMonth:function(g,b){g.year&&(b=(g=g.year()).month());var w=this.intercalaryMonth(g);if(b<0||b>(w?12:11))throw l.local.invalidMonth.replace(/\{0\}/,this.local.name);return w?b>13},isIntercalaryMonth:function(g,b){g.year&&(b=(g=g.year()).month());var w=this.intercalaryMonth(g);return!!w&&w===b},leapYear:function(g){return this.intercalaryMonth(g)!==0},weekOfYear:function(g,b,w){var _,x=this._validateYear(g,l.local.invalidyear),k=v[x-v[0]],T=k>>9&4095,S=k>>5&15,M=31&k;(_=u.newDate(T,S,M)).add(4-(_.dayOfWeek()||7),"d");var C=this.toJD(g,b,w)-_.toJD();return 1+Math.floor(C/7)},monthsInYear:function(g){return this.leapYear(g)?13:12},daysInMonth:function(g,b){g.year&&(b=g.month(),g=g.year()),g=this._validateYear(g);var w=y[g-y[0]];if(b>(w>>13?12:11))throw l.local.invalidMonth.replace(/\{0\}/,this.local.name);return w&1<<12-b?30:29},weekDay:function(g,b,w){return(this.dayOfWeek(g,b,w)||7)<6},toJD:function(g,b,w){var _=this._validate(g,k,w,l.local.invalidDate);g=this._validateYear(_.year()),b=_.month(),w=_.day();var x=this.isIntercalaryMonth(g,b),k=this.toChineseMonth(g,b),T=function(S,M,C,A,D){var O,R,$;if(typeof S=="object")R=S,O=M||{};else{var P;if(!(typeof S=="number"&&S>=1888&&S<=2111))throw new Error("Lunar year outside range 1888-2111");if(!(typeof M=="number"&&M>=1&&M<=12))throw new Error("Lunar month outside range 1 - 12");if(!(typeof C=="number"&&C>=1&&C<=30))throw new Error("Lunar day outside range 1 - 30");typeof A=="object"?(P=!1,O=A):(P=!!A,O={}),R={year:S,month:M,day:C,isIntercalary:P}}$=R.day-1;var z,B=y[R.year-y[0]],N=B>>13;z=N&&(R.month>N||R.isIntercalary)?R.month:R.month-1;for(var j=0;j>9&4095,(F>>5&15)-1,(31&F)+$);return O.year=E.getFullYear(),O.month=1+E.getMonth(),O.day=E.getDate(),O}(g,k,w,x);return u.toJD(T.year,T.month,T.day)},fromJD:function(g){var b=u.fromJD(g),w=function(x,k,T,S){var M,C;if(typeof x=="object")M=x,C=k||{};else{if(!(typeof x=="number"&&x>=1888&&x<=2111))throw new Error("Solar year outside range 1888-2111");if(!(typeof k=="number"&&k>=1&&k<=12))throw new Error("Solar month outside range 1 - 12");if(!(typeof T=="number"&&T>=1&&T<=31))throw new Error("Solar day outside range 1 - 31");M={year:x,month:k,day:T},C={}}var A=v[M.year-v[0]],D=M.year<<9|M.month<<5|M.day;C.year=D>=A?M.year:M.year-1,A=v[C.year-v[0]];var O,R=new Date(A>>9&4095,(A>>5&15)-1,31&A),$=new Date(M.year,M.month-1,M.day);O=Math.round(($-R)/864e5);var P,z=y[C.year-y[0]];for(P=0;P<13;P++){var B=z&1<<12-P?30:29;if(O>13;return!N||P=2&&m<=6},extraInfo:function(d,p,h){var m=this._validate(d,p,h,l.local.invalidDate);return{century:f[Math.floor((m.year()-1)/100)+1]||""}},toJD:function(d,p,h){var m=this._validate(d,p,h,l.local.invalidDate);return d=m.year()+(m.year()<0?1:0),p=m.month(),(h=m.day())+(p>1?16:0)+(p>2?32*(p-2):0)+400*(d-1)+this.jdEpoch-1},fromJD:function(d){d=Math.floor(d+.5)-Math.floor(this.jdEpoch)-1;var p=Math.floor(d/400)+1;d-=400*(p-1),d+=d>15?16:0;var h=Math.floor(d/32)+1,m=d-32*(h-1)+1;return this.newDate(p<=0?p-1:p,h,m)}});var f={20:"Fruitbat",21:"Anchovy"};l.calendars.discworld=u},37715:function(o,a,n){var l=n(63489),c=n(56131);function u(f){this.local=this.regionalOptions[f||""]||this.regionalOptions[""]}u.prototype=new l.baseCalendar,c(u.prototype,{name:"Ethiopian",jdEpoch:17242205e-1,daysPerMonth:[30,30,30,30,30,30,30,30,30,30,30,30,5],hasYearZero:!1,minMonth:1,firstMonth:1,minDay:1,regionalOptions:{"":{name:"Ethiopian",epochs:["BEE","EE"],monthNames:["Meskerem","Tikemet","Hidar","Tahesas","Tir","Yekatit","Megabit","Miazia","Genbot","Sene","Hamle","Nehase","Pagume"],monthNamesShort:["Mes","Tik","Hid","Tah","Tir","Yek","Meg","Mia","Gen","Sen","Ham","Neh","Pag"],dayNames:["Ehud","Segno","Maksegno","Irob","Hamus","Arb","Kidame"],dayNamesShort:["Ehu","Seg","Mak","Iro","Ham","Arb","Kid"],dayNamesMin:["Eh","Se","Ma","Ir","Ha","Ar","Ki"],digits:null,dateFormat:"dd/mm/yyyy",firstDay:0,isRTL:!1}},leapYear:function(f){var d=this._validate(f,this.minMonth,this.minDay,l.local.invalidYear);return(f=d.year()+(d.year()<0?1:0))%4==3||f%4==-1},monthsInYear:function(f){return this._validate(f,this.minMonth,this.minDay,l.local.invalidYear||l.regionalOptions[""].invalidYear),13},weekOfYear:function(f,d,p){var h=this.newDate(f,d,p);return h.add(-h.dayOfWeek(),"d"),Math.floor((h.dayOfYear()-1)/7)+1},daysInMonth:function(f,d){var p=this._validate(f,d,this.minDay,l.local.invalidMonth);return this.daysPerMonth[p.month()-1]+(p.month()===13&&this.leapYear(p.year())?1:0)},weekDay:function(f,d,p){return(this.dayOfWeek(f,d,p)||7)<6},toJD:function(f,d,p){var h=this._validate(f,d,p,l.local.invalidDate);return(f=h.year())<0&&f++,h.day()+30*(h.month()-1)+365*(f-1)+Math.floor(f/4)+this.jdEpoch-1},fromJD:function(f){var d=Math.floor(f)+.5-this.jdEpoch,p=Math.floor((d-Math.floor((d+366)/1461))/365)+1;p<=0&&p--,d=Math.floor(f)+.5-this.newDate(p,1,1).toJD();var h=Math.floor(d/30)+1,m=d-30*(h-1)+1;return this.newDate(p,h,m)}}),l.calendars.ethiopian=u},99384:function(o,a,n){var l=n(63489),c=n(56131);function u(d){this.local=this.regionalOptions[d||""]||this.regionalOptions[""]}function f(d,p){return d-p*Math.floor(d/p)}u.prototype=new l.baseCalendar,c(u.prototype,{name:"Hebrew",jdEpoch:347995.5,daysPerMonth:[30,29,30,29,30,29,30,29,30,29,30,29,29],hasYearZero:!1,minMonth:1,firstMonth:7,minDay:1,regionalOptions:{"":{name:"Hebrew",epochs:["BAM","AM"],monthNames:["Nisan","Iyar","Sivan","Tammuz","Av","Elul","Tishrei","Cheshvan","Kislev","Tevet","Shevat","Adar","Adar II"],monthNamesShort:["Nis","Iya","Siv","Tam","Av","Elu","Tis","Che","Kis","Tev","She","Ada","Ad2"],dayNames:["Yom Rishon","Yom Sheni","Yom Shlishi","Yom Revi'i","Yom Chamishi","Yom Shishi","Yom Shabbat"],dayNamesShort:["Ris","She","Shl","Rev","Cha","Shi","Sha"],dayNamesMin:["Ri","She","Shl","Re","Ch","Shi","Sha"],digits:null,dateFormat:"dd/mm/yyyy",firstDay:0,isRTL:!1}},leapYear:function(d){var p=this._validate(d,this.minMonth,this.minDay,l.local.invalidYear);return this._leapYear(p.year())},_leapYear:function(d){return f(7*(d=d<0?d+1:d)+1,19)<7},monthsInYear:function(d){return this._validate(d,this.minMonth,this.minDay,l.local.invalidYear),this._leapYear(d.year?d.year():d)?13:12},weekOfYear:function(d,p,h){var m=this.newDate(d,p,h);return m.add(-m.dayOfWeek(),"d"),Math.floor((m.dayOfYear()-1)/7)+1},daysInYear:function(d){return d=this._validate(d,this.minMonth,this.minDay,l.local.invalidYear).year(),this.toJD(d===-1?1:d+1,7,1)-this.toJD(d,7,1)},daysInMonth:function(d,p){return d.year&&(p=d.month(),d=d.year()),this._validate(d,p,this.minDay,l.local.invalidMonth),p===12&&this.leapYear(d)||p===8&&f(this.daysInYear(d),10)===5?30:p===9&&f(this.daysInYear(d),10)===3?29:this.daysPerMonth[p-1]},weekDay:function(d,p,h){return this.dayOfWeek(d,p,h)!==6},extraInfo:function(d,p,h){var m=this._validate(d,p,h,l.local.invalidDate);return{yearType:(this.leapYear(m)?"embolismic":"common")+" "+["deficient","regular","complete"][this.daysInYear(m)%10-3]}},toJD:function(d,p,h){var m=this._validate(d,p,h,l.local.invalidDate);d=m.year(),p=m.month(),h=m.day();var y=d<=0?d+1:d,v=this.jdEpoch+this._delay1(y)+this._delay2(y)+h+1;if(p<7){for(var g=7;g<=this.monthsInYear(d);g++)v+=this.daysInMonth(d,g);for(g=1;g=this.toJD(p===-1?1:p+1,7,1);)p++;for(var h=dthis.toJD(p,h,this.daysInMonth(p,h));)h++;var m=d-this.toJD(p,h,1)+1;return this.newDate(p,h,m)}}),l.calendars.hebrew=u},43805:function(o,a,n){var l=n(63489),c=n(56131);function u(f){this.local=this.regionalOptions[f||""]||this.regionalOptions[""]}u.prototype=new l.baseCalendar,c(u.prototype,{name:"Islamic",jdEpoch:19484395e-1,daysPerMonth:[30,29,30,29,30,29,30,29,30,29,30,29],hasYearZero:!1,minMonth:1,firstMonth:1,minDay:1,regionalOptions:{"":{name:"Islamic",epochs:["BH","AH"],monthNames:["Muharram","Safar","Rabi' al-awwal","Rabi' al-thani","Jumada al-awwal","Jumada al-thani","Rajab","Sha'aban","Ramadan","Shawwal","Dhu al-Qi'dah","Dhu al-Hijjah"],monthNamesShort:["Muh","Saf","Rab1","Rab2","Jum1","Jum2","Raj","Sha'","Ram","Shaw","DhuQ","DhuH"],dayNames:["Yawm al-ahad","Yawm al-ithnayn","Yawm ath-thulaathaa'","Yawm al-arbi'aa'","Yawm al-khamīs","Yawm al-jum'a","Yawm as-sabt"],dayNamesShort:["Aha","Ith","Thu","Arb","Kha","Jum","Sab"],dayNamesMin:["Ah","It","Th","Ar","Kh","Ju","Sa"],digits:null,dateFormat:"yyyy/mm/dd",firstDay:6,isRTL:!1}},leapYear:function(f){return(11*this._validate(f,this.minMonth,this.minDay,l.local.invalidYear).year()+14)%30<11},weekOfYear:function(f,d,p){var h=this.newDate(f,d,p);return h.add(-h.dayOfWeek(),"d"),Math.floor((h.dayOfYear()-1)/7)+1},daysInYear:function(f){return this.leapYear(f)?355:354},daysInMonth:function(f,d){var p=this._validate(f,d,this.minDay,l.local.invalidMonth);return this.daysPerMonth[p.month()-1]+(p.month()===12&&this.leapYear(p.year())?1:0)},weekDay:function(f,d,p){return this.dayOfWeek(f,d,p)!==5},toJD:function(f,d,p){var h=this._validate(f,d,p,l.local.invalidDate);return f=h.year(),d=h.month(),f=f<=0?f+1:f,(p=h.day())+Math.ceil(29.5*(d-1))+354*(f-1)+Math.floor((3+11*f)/30)+this.jdEpoch-1},fromJD:function(f){f=Math.floor(f)+.5;var d=Math.floor((30*(f-this.jdEpoch)+10646)/10631);d=d<=0?d-1:d;var p=Math.min(12,Math.ceil((f-29-this.toJD(d,1,1))/29.5)+1),h=f-this.toJD(d,p,1)+1;return this.newDate(d,p,h)}}),l.calendars.islamic=u},88874:function(o,a,n){var l=n(63489),c=n(56131);function u(f){this.local=this.regionalOptions[f||""]||this.regionalOptions[""]}u.prototype=new l.baseCalendar,c(u.prototype,{name:"Julian",jdEpoch:17214235e-1,daysPerMonth:[31,28,31,30,31,30,31,31,30,31,30,31],hasYearZero:!1,minMonth:1,firstMonth:1,minDay:1,regionalOptions:{"":{name:"Julian",epochs:["BC","AD"],monthNames:["January","February","March","April","May","June","July","August","September","October","November","December"],monthNamesShort:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],dayNames:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],dayNamesShort:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],dayNamesMin:["Su","Mo","Tu","We","Th","Fr","Sa"],digits:null,dateFormat:"mm/dd/yyyy",firstDay:0,isRTL:!1}},leapYear:function(f){var d=this._validate(f,this.minMonth,this.minDay,l.local.invalidYear);return(f=d.year()<0?d.year()+1:d.year())%4==0},weekOfYear:function(f,d,p){var h=this.newDate(f,d,p);return h.add(4-(h.dayOfWeek()||7),"d"),Math.floor((h.dayOfYear()-1)/7)+1},daysInMonth:function(f,d){var p=this._validate(f,d,this.minDay,l.local.invalidMonth);return this.daysPerMonth[p.month()-1]+(p.month()===2&&this.leapYear(p.year())?1:0)},weekDay:function(f,d,p){return(this.dayOfWeek(f,d,p)||7)<6},toJD:function(f,d,p){var h=this._validate(f,d,p,l.local.invalidDate);return f=h.year(),d=h.month(),p=h.day(),f<0&&f++,d<=2&&(f--,d+=12),Math.floor(365.25*(f+4716))+Math.floor(30.6001*(d+1))+p-1524.5},fromJD:function(f){var d=Math.floor(f+.5)+1524,p=Math.floor((d-122.1)/365.25),h=Math.floor(365.25*p),m=Math.floor((d-h)/30.6001),y=m-Math.floor(m<14?1:13),v=p-Math.floor(y>2?4716:4715),g=d-h-Math.floor(30.6001*m);return v<=0&&v--,this.newDate(v,y,g)}}),l.calendars.julian=u},83290:function(o,a,n){var l=n(63489),c=n(56131);function u(p){this.local=this.regionalOptions[p||""]||this.regionalOptions[""]}function f(p,h){return p-h*Math.floor(p/h)}function d(p,h){return f(p-1,h)+1}u.prototype=new l.baseCalendar,c(u.prototype,{name:"Mayan",jdEpoch:584282.5,hasYearZero:!0,minMonth:0,firstMonth:0,minDay:0,regionalOptions:{"":{name:"Mayan",epochs:["",""],monthNames:["0","1","2","3","4","5","6","7","8","9","10","11","12","13","14","15","16","17"],monthNamesShort:["0","1","2","3","4","5","6","7","8","9","10","11","12","13","14","15","16","17"],dayNames:["0","1","2","3","4","5","6","7","8","9","10","11","12","13","14","15","16","17","18","19"],dayNamesShort:["0","1","2","3","4","5","6","7","8","9","10","11","12","13","14","15","16","17","18","19"],dayNamesMin:["0","1","2","3","4","5","6","7","8","9","10","11","12","13","14","15","16","17","18","19"],digits:null,dateFormat:"YYYY.m.d",firstDay:0,isRTL:!1,haabMonths:["Pop","Uo","Zip","Zotz","Tzec","Xul","Yaxkin","Mol","Chen","Yax","Zac","Ceh","Mac","Kankin","Muan","Pax","Kayab","Cumku","Uayeb"],tzolkinMonths:["Imix","Ik","Akbal","Kan","Chicchan","Cimi","Manik","Lamat","Muluc","Oc","Chuen","Eb","Ben","Ix","Men","Cib","Caban","Etznab","Cauac","Ahau"]}},leapYear:function(p){return this._validate(p,this.minMonth,this.minDay,l.local.invalidYear),!1},formatYear:function(p){p=this._validate(p,this.minMonth,this.minDay,l.local.invalidYear).year();var h=Math.floor(p/400);return p%=400,p+=p<0?400:0,h+"."+Math.floor(p/20)+"."+p%20},forYear:function(p){if((p=p.split(".")).length<3)throw"Invalid Mayan year";for(var h=0,m=0;m19||m>0&&y<0)throw"Invalid Mayan year";h=20*h+y}return h},monthsInYear:function(p){return this._validate(p,this.minMonth,this.minDay,l.local.invalidYear),18},weekOfYear:function(p,h,m){return this._validate(p,h,m,l.local.invalidDate),0},daysInYear:function(p){return this._validate(p,this.minMonth,this.minDay,l.local.invalidYear),360},daysInMonth:function(p,h){return this._validate(p,h,this.minDay,l.local.invalidMonth),20},daysInWeek:function(){return 5},dayOfWeek:function(p,h,m){return this._validate(p,h,m,l.local.invalidDate).day()},weekDay:function(p,h,m){return this._validate(p,h,m,l.local.invalidDate),!0},extraInfo:function(p,h,m){var y=this._validate(p,h,m,l.local.invalidDate).toJD(),v=this._toHaab(y),g=this._toTzolkin(y);return{haabMonthName:this.local.haabMonths[v[0]-1],haabMonth:v[0],haabDay:v[1],tzolkinDayName:this.local.tzolkinMonths[g[0]-1],tzolkinDay:g[0],tzolkinTrecena:g[1]}},_toHaab:function(p){var h=f(8+(p-=this.jdEpoch)+340,365);return[Math.floor(h/20)+1,f(h,20)]},_toTzolkin:function(p){return[d(20+(p-=this.jdEpoch),20),d(p+4,13)]},toJD:function(p,h,m){var y=this._validate(p,h,m,l.local.invalidDate);return y.day()+20*y.month()+360*y.year()+this.jdEpoch},fromJD:function(p){p=Math.floor(p)+.5-this.jdEpoch;var h=Math.floor(p/360);p%=360,p+=p<0?360:0;var m=Math.floor(p/20),y=p%20;return this.newDate(h,m,y)}}),l.calendars.mayan=u},29108:function(o,a,n){var l=n(63489),c=n(56131);function u(d){this.local=this.regionalOptions[d||""]||this.regionalOptions[""]}u.prototype=new l.baseCalendar;var f=l.instance("gregorian");c(u.prototype,{name:"Nanakshahi",jdEpoch:22576735e-1,daysPerMonth:[31,31,31,31,31,30,30,30,30,30,30,30],hasYearZero:!1,minMonth:1,firstMonth:1,minDay:1,regionalOptions:{"":{name:"Nanakshahi",epochs:["BN","AN"],monthNames:["Chet","Vaisakh","Jeth","Harh","Sawan","Bhadon","Assu","Katak","Maghar","Poh","Magh","Phagun"],monthNamesShort:["Che","Vai","Jet","Har","Saw","Bha","Ass","Kat","Mgr","Poh","Mgh","Pha"],dayNames:["Somvaar","Mangalvar","Budhvaar","Veervaar","Shukarvaar","Sanicharvaar","Etvaar"],dayNamesShort:["Som","Mangal","Budh","Veer","Shukar","Sanichar","Et"],dayNamesMin:["So","Ma","Bu","Ve","Sh","Sa","Et"],digits:null,dateFormat:"dd-mm-yyyy",firstDay:0,isRTL:!1}},leapYear:function(d){var p=this._validate(d,this.minMonth,this.minDay,l.local.invalidYear||l.regionalOptions[""].invalidYear);return f.leapYear(p.year()+(p.year()<1?1:0)+1469)},weekOfYear:function(d,p,h){var m=this.newDate(d,p,h);return m.add(1-(m.dayOfWeek()||7),"d"),Math.floor((m.dayOfYear()-1)/7)+1},daysInMonth:function(d,p){var h=this._validate(d,p,this.minDay,l.local.invalidMonth);return this.daysPerMonth[h.month()-1]+(h.month()===12&&this.leapYear(h.year())?1:0)},weekDay:function(d,p,h){return(this.dayOfWeek(d,p,h)||7)<6},toJD:function(d,p,h){var m=this._validate(d,p,h,l.local.invalidMonth);(d=m.year())<0&&d++;for(var y=m.day(),v=1;v=this.toJD(p+1,1,1);)p++;for(var h=d-Math.floor(this.toJD(p,1,1)+.5)+1,m=1;h>this.daysInMonth(p,m);)h-=this.daysInMonth(p,m),m++;return this.newDate(p,m,h)}}),l.calendars.nanakshahi=u},55422:function(o,a,n){var l=n(63489),c=n(56131);function u(f){this.local=this.regionalOptions[f||""]||this.regionalOptions[""]}u.prototype=new l.baseCalendar,c(u.prototype,{name:"Nepali",jdEpoch:17007095e-1,daysPerMonth:[31,31,32,32,31,30,30,29,30,29,30,30],hasYearZero:!1,minMonth:1,firstMonth:1,minDay:1,daysPerYear:365,regionalOptions:{"":{name:"Nepali",epochs:["BBS","ABS"],monthNames:["Baisakh","Jestha","Ashadh","Shrawan","Bhadra","Ashwin","Kartik","Mangsir","Paush","Mangh","Falgun","Chaitra"],monthNamesShort:["Bai","Je","As","Shra","Bha","Ash","Kar","Mang","Pau","Ma","Fal","Chai"],dayNames:["Aaitabaar","Sombaar","Manglbaar","Budhabaar","Bihibaar","Shukrabaar","Shanibaar"],dayNamesShort:["Aaita","Som","Mangl","Budha","Bihi","Shukra","Shani"],dayNamesMin:["Aai","So","Man","Bu","Bi","Shu","Sha"],digits:null,dateFormat:"dd/mm/yyyy",firstDay:1,isRTL:!1}},leapYear:function(f){return this.daysInYear(f)!==this.daysPerYear},weekOfYear:function(f,d,p){var h=this.newDate(f,d,p);return h.add(-h.dayOfWeek(),"d"),Math.floor((h.dayOfYear()-1)/7)+1},daysInYear:function(f){if(f=this._validate(f,this.minMonth,this.minDay,l.local.invalidYear).year(),this.NEPALI_CALENDAR_DATA[f]===void 0)return this.daysPerYear;for(var d=0,p=this.minMonth;p<=12;p++)d+=this.NEPALI_CALENDAR_DATA[f][p];return d},daysInMonth:function(f,d){return f.year&&(d=f.month(),f=f.year()),this._validate(f,d,this.minDay,l.local.invalidMonth),this.NEPALI_CALENDAR_DATA[f]===void 0?this.daysPerMonth[d-1]:this.NEPALI_CALENDAR_DATA[f][d]},weekDay:function(f,d,p){return this.dayOfWeek(f,d,p)!==6},toJD:function(f,d,p){var h=this._validate(f,d,p,l.local.invalidDate);f=h.year(),d=h.month(),p=h.day();var m=l.instance(),y=0,v=d,g=f;this._createMissingCalendarData(f);var b=f-(v>9||v===9&&p>=this.NEPALI_CALENDAR_DATA[g][0]?56:57);for(d!==9&&(y=p,v--);v!==9;)v<=0&&(v=12,g--),y+=this.NEPALI_CALENDAR_DATA[g][v],v--;return d===9?(y+=p-this.NEPALI_CALENDAR_DATA[g][0])<0&&(y+=m.daysInYear(b)):y+=this.NEPALI_CALENDAR_DATA[g][9]-this.NEPALI_CALENDAR_DATA[g][0],m.newDate(b,1,1).add(y,"d").toJD()},fromJD:function(f){var d=l.instance().fromJD(f),p=d.year(),h=d.dayOfYear(),m=p+56;this._createMissingCalendarData(m);for(var y=9,v=this.NEPALI_CALENDAR_DATA[m][0],g=this.NEPALI_CALENDAR_DATA[m][y]-v+1;h>g;)++y>12&&(y=1,m++),g+=this.NEPALI_CALENDAR_DATA[m][y];var b=this.NEPALI_CALENDAR_DATA[m][y]-(g-h);return this.newDate(m,y,b)},_createMissingCalendarData:function(f){var d=this.daysPerMonth.slice(0);d.unshift(17);for(var p=f-1;p0?474:473))%2820+474+38)%2816<682},weekOfYear:function(d,p,h){var m=this.newDate(d,p,h);return m.add(-(m.dayOfWeek()+1)%7,"d"),Math.floor((m.dayOfYear()-1)/7)+1},daysInMonth:function(d,p){var h=this._validate(d,p,this.minDay,l.local.invalidMonth);return this.daysPerMonth[h.month()-1]+(h.month()===12&&this.leapYear(h.year())?1:0)},weekDay:function(d,p,h){return this.dayOfWeek(d,p,h)!==5},toJD:function(d,p,h){var m=this._validate(d,p,h,l.local.invalidDate);d=m.year(),p=m.month(),h=m.day();var y=d-(d>=0?474:473),v=474+f(y,2820);return h+(p<=7?31*(p-1):30*(p-1)+6)+Math.floor((682*v-110)/2816)+365*(v-1)+1029983*Math.floor(y/2820)+this.jdEpoch-1},fromJD:function(d){var p=(d=Math.floor(d)+.5)-this.toJD(475,1,1),h=Math.floor(p/1029983),m=f(p,1029983),y=2820;if(m!==1029982){var v=Math.floor(m/366),g=f(m,366);y=Math.floor((2134*v+2816*g+2815)/1028522)+v+1}var b=y+2820*h+474;b=b<=0?b-1:b;var w=d-this.toJD(b,1,1)+1,_=w<=186?Math.ceil(w/31):Math.ceil((w-6)/30),x=d-this.toJD(b,_,1)+1;return this.newDate(b,_,x)}}),l.calendars.persian=u,l.calendars.jalali=u},31320:function(o,a,n){var l=n(63489),c=n(56131),u=l.instance();function f(d){this.local=this.regionalOptions[d||""]||this.regionalOptions[""]}f.prototype=new l.baseCalendar,c(f.prototype,{name:"Taiwan",jdEpoch:24194025e-1,yearsOffset:1911,daysPerMonth:[31,28,31,30,31,30,31,31,30,31,30,31],hasYearZero:!1,minMonth:1,firstMonth:1,minDay:1,regionalOptions:{"":{name:"Taiwan",epochs:["BROC","ROC"],monthNames:["January","February","March","April","May","June","July","August","September","October","November","December"],monthNamesShort:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],dayNames:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],dayNamesShort:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],dayNamesMin:["Su","Mo","Tu","We","Th","Fr","Sa"],digits:null,dateFormat:"yyyy/mm/dd",firstDay:1,isRTL:!1}},leapYear:function(d){var p=this._validate(d,this.minMonth,this.minDay,l.local.invalidYear);return d=this._t2gYear(p.year()),u.leapYear(d)},weekOfYear:function(d,p,h){var m=this._validate(d,this.minMonth,this.minDay,l.local.invalidYear);return d=this._t2gYear(m.year()),u.weekOfYear(d,m.month(),m.day())},daysInMonth:function(d,p){var h=this._validate(d,p,this.minDay,l.local.invalidMonth);return this.daysPerMonth[h.month()-1]+(h.month()===2&&this.leapYear(h.year())?1:0)},weekDay:function(d,p,h){return(this.dayOfWeek(d,p,h)||7)<6},toJD:function(d,p,h){var m=this._validate(d,p,h,l.local.invalidDate);return d=this._t2gYear(m.year()),u.toJD(d,m.month(),m.day())},fromJD:function(d){var p=u.fromJD(d),h=this._g2tYear(p.year());return this.newDate(h,p.month(),p.day())},_t2gYear:function(d){return d+this.yearsOffset+(d>=-this.yearsOffset&&d<=-1?1:0)},_g2tYear:function(d){return d-this.yearsOffset-(d>=1&&d<=this.yearsOffset?1:0)}}),l.calendars.taiwan=f},51367:function(o,a,n){var l=n(63489),c=n(56131),u=l.instance();function f(d){this.local=this.regionalOptions[d||""]||this.regionalOptions[""]}f.prototype=new l.baseCalendar,c(f.prototype,{name:"Thai",jdEpoch:15230985e-1,yearsOffset:543,daysPerMonth:[31,28,31,30,31,30,31,31,30,31,30,31],hasYearZero:!1,minMonth:1,firstMonth:1,minDay:1,regionalOptions:{"":{name:"Thai",epochs:["BBE","BE"],monthNames:["January","February","March","April","May","June","July","August","September","October","November","December"],monthNamesShort:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],dayNames:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],dayNamesShort:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],dayNamesMin:["Su","Mo","Tu","We","Th","Fr","Sa"],digits:null,dateFormat:"dd/mm/yyyy",firstDay:0,isRTL:!1}},leapYear:function(d){var p=this._validate(d,this.minMonth,this.minDay,l.local.invalidYear);return d=this._t2gYear(p.year()),u.leapYear(d)},weekOfYear:function(d,p,h){var m=this._validate(d,this.minMonth,this.minDay,l.local.invalidYear);return d=this._t2gYear(m.year()),u.weekOfYear(d,m.month(),m.day())},daysInMonth:function(d,p){var h=this._validate(d,p,this.minDay,l.local.invalidMonth);return this.daysPerMonth[h.month()-1]+(h.month()===2&&this.leapYear(h.year())?1:0)},weekDay:function(d,p,h){return(this.dayOfWeek(d,p,h)||7)<6},toJD:function(d,p,h){var m=this._validate(d,p,h,l.local.invalidDate);return d=this._t2gYear(m.year()),u.toJD(d,m.month(),m.day())},fromJD:function(d){var p=u.fromJD(d),h=this._g2tYear(p.year());return this.newDate(h,p.month(),p.day())},_t2gYear:function(d){return d-this.yearsOffset-(d>=1&&d<=this.yearsOffset?1:0)},_g2tYear:function(d){return d+this.yearsOffset+(d>=-this.yearsOffset&&d<=-1?1:0)}}),l.calendars.thai=f},21457:function(o,a,n){var l=n(63489),c=n(56131);function u(d){this.local=this.regionalOptions[d||""]||this.regionalOptions[""]}u.prototype=new l.baseCalendar,c(u.prototype,{name:"UmmAlQura",hasYearZero:!1,minMonth:1,firstMonth:1,minDay:1,regionalOptions:{"":{name:"Umm al-Qura",epochs:["BH","AH"],monthNames:["Al-Muharram","Safar","Rabi' al-awwal","Rabi' Al-Thani","Jumada Al-Awwal","Jumada Al-Thani","Rajab","Sha'aban","Ramadan","Shawwal","Dhu al-Qi'dah","Dhu al-Hijjah"],monthNamesShort:["Muh","Saf","Rab1","Rab2","Jum1","Jum2","Raj","Sha'","Ram","Shaw","DhuQ","DhuH"],dayNames:["Yawm al-Ahad","Yawm al-Ithnain","Yawm al-Thalāthā’","Yawm al-Arba‘ā’","Yawm al-Khamīs","Yawm al-Jum‘a","Yawm al-Sabt"],dayNamesMin:["Ah","Ith","Th","Ar","Kh","Ju","Sa"],digits:null,dateFormat:"yyyy/mm/dd",firstDay:6,isRTL:!0}},leapYear:function(d){var p=this._validate(d,this.minMonth,this.minDay,l.local.invalidYear);return this.daysInYear(p.year())===355},weekOfYear:function(d,p,h){var m=this.newDate(d,p,h);return m.add(-m.dayOfWeek(),"d"),Math.floor((m.dayOfYear()-1)/7)+1},daysInYear:function(d){for(var p=0,h=1;h<=12;h++)p+=this.daysInMonth(d,h);return p},daysInMonth:function(d,p){for(var h=this._validate(d,p,this.minDay,l.local.invalidMonth).toJD()-24e5+.5,m=0,y=0;yh)return f[m]-f[m-1];m++}return 30},weekDay:function(d,p,h){return this.dayOfWeek(d,p,h)!==5},toJD:function(d,p,h){var m=this._validate(d,p,h,l.local.invalidDate),y=12*(m.year()-1)+m.month()-15292;return m.day()+f[y-1]-1+24e5-.5},fromJD:function(d){for(var p=d-24e5+.5,h=0,m=0;mp);m++)h++;var y=h+15292,v=Math.floor((y-1)/12),g=v+1,b=y-12*v,w=p-f[h-1]+1;return this.newDate(g,b,w)},isValid:function(d,p,h){var m=l.baseCalendar.prototype.isValid.apply(this,arguments);return m&&(m=(d=d.year!=null?d.year:d)>=1276&&d<=1500),m},_validate:function(d,p,h,m){var y=l.baseCalendar.prototype._validate.apply(this,arguments);if(y.year<1276||y.year>1500)throw m.replace(/\{0\}/,this.local.name);return y}}),l.calendars.ummalqura=u;var f=[20,50,79,109,138,168,197,227,256,286,315,345,374,404,433,463,492,522,551,581,611,641,670,700,729,759,788,818,847,877,906,936,965,995,1024,1054,1083,1113,1142,1172,1201,1231,1260,1290,1320,1350,1379,1409,1438,1468,1497,1527,1556,1586,1615,1645,1674,1704,1733,1763,1792,1822,1851,1881,1910,1940,1969,1999,2028,2058,2087,2117,2146,2176,2205,2235,2264,2294,2323,2353,2383,2413,2442,2472,2501,2531,2560,2590,2619,2649,2678,2708,2737,2767,2796,2826,2855,2885,2914,2944,2973,3003,3032,3062,3091,3121,3150,3180,3209,3239,3268,3298,3327,3357,3386,3416,3446,3476,3505,3535,3564,3594,3623,3653,3682,3712,3741,3771,3800,3830,3859,3889,3918,3948,3977,4007,4036,4066,4095,4125,4155,4185,4214,4244,4273,4303,4332,4362,4391,4421,4450,4480,4509,4539,4568,4598,4627,4657,4686,4716,4745,4775,4804,4834,4863,4893,4922,4952,4981,5011,5040,5070,5099,5129,5158,5188,5218,5248,5277,5307,5336,5366,5395,5425,5454,5484,5513,5543,5572,5602,5631,5661,5690,5720,5749,5779,5808,5838,5867,5897,5926,5956,5985,6015,6044,6074,6103,6133,6162,6192,6221,6251,6281,6311,6340,6370,6399,6429,6458,6488,6517,6547,6576,6606,6635,6665,6694,6724,6753,6783,6812,6842,6871,6901,6930,6960,6989,7019,7048,7078,7107,7137,7166,7196,7225,7255,7284,7314,7344,7374,7403,7433,7462,7492,7521,7551,7580,7610,7639,7669,7698,7728,7757,7787,7816,7846,7875,7905,7934,7964,7993,8023,8053,8083,8112,8142,8171,8201,8230,8260,8289,8319,8348,8378,8407,8437,8466,8496,8525,8555,8584,8614,8643,8673,8702,8732,8761,8791,8821,8850,8880,8909,8938,8968,8997,9027,9056,9086,9115,9145,9175,9205,9234,9264,9293,9322,9352,9381,9410,9440,9470,9499,9529,9559,9589,9618,9648,9677,9706,9736,9765,9794,9824,9853,9883,9913,9943,9972,10002,10032,10061,10090,10120,10149,10178,10208,10237,10267,10297,10326,10356,10386,10415,10445,10474,10504,10533,10562,10592,10621,10651,10680,10710,10740,10770,10799,10829,10858,10888,10917,10947,10976,11005,11035,11064,11094,11124,11153,11183,11213,11242,11272,11301,11331,11360,11389,11419,11448,11478,11507,11537,11567,11596,11626,11655,11685,11715,11744,11774,11803,11832,11862,11891,11921,11950,11980,12010,12039,12069,12099,12128,12158,12187,12216,12246,12275,12304,12334,12364,12393,12423,12453,12483,12512,12542,12571,12600,12630,12659,12688,12718,12747,12777,12807,12837,12866,12896,12926,12955,12984,13014,13043,13072,13102,13131,13161,13191,13220,13250,13280,13310,13339,13368,13398,13427,13456,13486,13515,13545,13574,13604,13634,13664,13693,13723,13752,13782,13811,13840,13870,13899,13929,13958,13988,14018,14047,14077,14107,14136,14166,14195,14224,14254,14283,14313,14342,14372,14401,14431,14461,14490,14520,14550,14579,14609,14638,14667,14697,14726,14756,14785,14815,14844,14874,14904,14933,14963,14993,15021,15051,15081,15110,15140,15169,15199,15228,15258,15287,15317,15347,15377,15406,15436,15465,15494,15524,15553,15582,15612,15641,15671,15701,15731,15760,15790,15820,15849,15878,15908,15937,15966,15996,16025,16055,16085,16114,16144,16174,16204,16233,16262,16292,16321,16350,16380,16409,16439,16468,16498,16528,16558,16587,16617,16646,16676,16705,16734,16764,16793,16823,16852,16882,16912,16941,16971,17001,17030,17060,17089,17118,17148,17177,17207,17236,17266,17295,17325,17355,17384,17414,17444,17473,17502,17532,17561,17591,17620,17650,17679,17709,17738,17768,17798,17827,17857,17886,17916,17945,17975,18004,18034,18063,18093,18122,18152,18181,18211,18241,18270,18300,18330,18359,18388,18418,18447,18476,18506,18535,18565,18595,18625,18654,18684,18714,18743,18772,18802,18831,18860,18890,18919,18949,18979,19008,19038,19068,19098,19127,19156,19186,19215,19244,19274,19303,19333,19362,19392,19422,19452,19481,19511,19540,19570,19599,19628,19658,19687,19717,19746,19776,19806,19836,19865,19895,19924,19954,19983,20012,20042,20071,20101,20130,20160,20190,20219,20249,20279,20308,20338,20367,20396,20426,20455,20485,20514,20544,20573,20603,20633,20662,20692,20721,20751,20780,20810,20839,20869,20898,20928,20957,20987,21016,21046,21076,21105,21135,21164,21194,21223,21253,21282,21312,21341,21371,21400,21430,21459,21489,21519,21548,21578,21607,21637,21666,21696,21725,21754,21784,21813,21843,21873,21902,21932,21962,21991,22021,22050,22080,22109,22138,22168,22197,22227,22256,22286,22316,22346,22375,22405,22434,22464,22493,22522,22552,22581,22611,22640,22670,22700,22730,22759,22789,22818,22848,22877,22906,22936,22965,22994,23024,23054,23083,23113,23143,23173,23202,23232,23261,23290,23320,23349,23379,23408,23438,23467,23497,23527,23556,23586,23616,23645,23674,23704,23733,23763,23792,23822,23851,23881,23910,23940,23970,23999,24029,24058,24088,24117,24147,24176,24206,24235,24265,24294,24324,24353,24383,24413,24442,24472,24501,24531,24560,24590,24619,24648,24678,24707,24737,24767,24796,24826,24856,24885,24915,24944,24974,25003,25032,25062,25091,25121,25150,25180,25210,25240,25269,25299,25328,25358,25387,25416,25446,25475,25505,25534,25564,25594,25624,25653,25683,25712,25742,25771,25800,25830,25859,25888,25918,25948,25977,26007,26037,26067,26096,26126,26155,26184,26214,26243,26272,26302,26332,26361,26391,26421,26451,26480,26510,26539,26568,26598,26627,26656,26686,26715,26745,26775,26805,26834,26864,26893,26923,26952,26982,27011,27041,27070,27099,27129,27159,27188,27218,27248,27277,27307,27336,27366,27395,27425,27454,27484,27513,27542,27572,27602,27631,27661,27691,27720,27750,27779,27809,27838,27868,27897,27926,27956,27985,28015,28045,28074,28104,28134,28163,28193,28222,28252,28281,28310,28340,28369,28399,28428,28458,28488,28517,28547,28577,28607,28636,28665,28695,28724,28754,28783,28813,28843,28872,28901,28931,28960,28990,29019,29049,29078,29108,29137,29167,29196,29226,29255,29285,29315,29345,29375,29404,29434,29463,29492,29522,29551,29580,29610,29640,29669,29699,29729,29759,29788,29818,29847,29876,29906,29935,29964,29994,30023,30053,30082,30112,30141,30171,30200,30230,30259,30289,30318,30348,30378,30408,30437,30467,30496,30526,30555,30585,30614,30644,30673,30703,30732,30762,30791,30821,30850,30880,30909,30939,30968,30998,31027,31057,31086,31116,31145,31175,31204,31234,31263,31293,31322,31352,31381,31411,31441,31471,31500,31530,31559,31589,31618,31648,31676,31706,31736,31766,31795,31825,31854,31884,31913,31943,31972,32002,32031,32061,32090,32120,32150,32180,32209,32239,32268,32298,32327,32357,32386,32416,32445,32475,32504,32534,32563,32593,32622,32652,32681,32711,32740,32770,32799,32829,32858,32888,32917,32947,32976,33006,33035,33065,33094,33124,33153,33183,33213,33243,33272,33302,33331,33361,33390,33420,33450,33479,33509,33539,33568,33598,33627,33657,33686,33716,33745,33775,33804,33834,33863,33893,33922,33952,33981,34011,34040,34069,34099,34128,34158,34187,34217,34247,34277,34306,34336,34365,34395,34424,34454,34483,34512,34542,34571,34601,34631,34660,34690,34719,34749,34778,34808,34837,34867,34896,34926,34955,34985,35015,35044,35074,35103,35133,35162,35192,35222,35251,35280,35310,35340,35370,35399,35429,35458,35488,35517,35547,35576,35605,35635,35665,35694,35723,35753,35782,35811,35841,35871,35901,35930,35960,35989,36019,36048,36078,36107,36136,36166,36195,36225,36254,36284,36314,36343,36373,36403,36433,36462,36492,36521,36551,36580,36610,36639,36669,36698,36728,36757,36786,36816,36845,36875,36904,36934,36963,36993,37022,37052,37081,37111,37141,37170,37200,37229,37259,37288,37318,37347,37377,37406,37436,37465,37495,37524,37554,37584,37613,37643,37672,37701,37731,37760,37790,37819,37849,37878,37908,37938,37967,37997,38027,38056,38085,38115,38144,38174,38203,38233,38262,38292,38322,38351,38381,38410,38440,38469,38499,38528,38558,38587,38617,38646,38676,38705,38735,38764,38794,38823,38853,38882,38912,38941,38971,39001,39030,39059,39089,39118,39148,39178,39208,39237,39267,39297,39326,39355,39385,39414,39444,39473,39503,39532,39562,39592,39621,39650,39680,39709,39739,39768,39798,39827,39857,39886,39916,39946,39975,40005,40035,40064,40094,40123,40153,40182,40212,40241,40271,40300,40330,40359,40389,40418,40448,40477,40507,40536,40566,40595,40625,40655,40685,40714,40744,40773,40803,40832,40862,40892,40921,40951,40980,41009,41039,41068,41098,41127,41157,41186,41216,41245,41275,41304,41334,41364,41393,41422,41452,41481,41511,41540,41570,41599,41629,41658,41688,41718,41748,41777,41807,41836,41865,41894,41924,41953,41983,42012,42042,42072,42102,42131,42161,42190,42220,42249,42279,42308,42337,42367,42397,42426,42456,42485,42515,42545,42574,42604,42633,42662,42692,42721,42751,42780,42810,42839,42869,42899,42929,42958,42988,43017,43046,43076,43105,43135,43164,43194,43223,43253,43283,43312,43342,43371,43401,43430,43460,43489,43519,43548,43578,43607,43637,43666,43696,43726,43755,43785,43814,43844,43873,43903,43932,43962,43991,44021,44050,44080,44109,44139,44169,44198,44228,44258,44287,44317,44346,44375,44405,44434,44464,44493,44523,44553,44582,44612,44641,44671,44700,44730,44759,44788,44818,44847,44877,44906,44936,44966,44996,45025,45055,45084,45114,45143,45172,45202,45231,45261,45290,45320,45350,45380,45409,45439,45468,45498,45527,45556,45586,45615,45644,45674,45704,45733,45763,45793,45823,45852,45882,45911,45940,45970,45999,46028,46058,46088,46117,46147,46177,46206,46236,46265,46295,46324,46354,46383,46413,46442,46472,46501,46531,46560,46590,46620,46649,46679,46708,46738,46767,46797,46826,46856,46885,46915,46944,46974,47003,47033,47063,47092,47122,47151,47181,47210,47240,47269,47298,47328,47357,47387,47417,47446,47476,47506,47535,47565,47594,47624,47653,47682,47712,47741,47771,47800,47830,47860,47890,47919,47949,47978,48008,48037,48066,48096,48125,48155,48184,48214,48244,48273,48303,48333,48362,48392,48421,48450,48480,48509,48538,48568,48598,48627,48657,48687,48717,48746,48776,48805,48834,48864,48893,48922,48952,48982,49011,49041,49071,49100,49130,49160,49189,49218,49248,49277,49306,49336,49365,49395,49425,49455,49484,49514,49543,49573,49602,49632,49661,49690,49720,49749,49779,49809,49838,49868,49898,49927,49957,49986,50016,50045,50075,50104,50133,50163,50192,50222,50252,50281,50311,50340,50370,50400,50429,50459,50488,50518,50547,50576,50606,50635,50665,50694,50724,50754,50784,50813,50843,50872,50902,50931,50960,50990,51019,51049,51078,51108,51138,51167,51197,51227,51256,51286,51315,51345,51374,51403,51433,51462,51492,51522,51552,51582,51611,51641,51670,51699,51729,51758,51787,51816,51846,51876,51906,51936,51965,51995,52025,52054,52083,52113,52142,52171,52200,52230,52260,52290,52319,52349,52379,52408,52438,52467,52497,52526,52555,52585,52614,52644,52673,52703,52733,52762,52792,52822,52851,52881,52910,52939,52969,52998,53028,53057,53087,53116,53146,53176,53205,53235,53264,53294,53324,53353,53383,53412,53441,53471,53500,53530,53559,53589,53619,53648,53678,53708,53737,53767,53796,53825,53855,53884,53913,53943,53973,54003,54032,54062,54092,54121,54151,54180,54209,54239,54268,54297,54327,54357,54387,54416,54446,54476,54505,54535,54564,54593,54623,54652,54681,54711,54741,54770,54800,54830,54859,54889,54919,54948,54977,55007,55036,55066,55095,55125,55154,55184,55213,55243,55273,55302,55332,55361,55391,55420,55450,55479,55508,55538,55567,55597,55627,55657,55686,55716,55745,55775,55804,55834,55863,55892,55922,55951,55981,56011,56040,56070,56100,56129,56159,56188,56218,56247,56276,56306,56335,56365,56394,56424,56454,56483,56513,56543,56572,56601,56631,56660,56690,56719,56749,56778,56808,56837,56867,56897,56926,56956,56985,57015,57044,57074,57103,57133,57162,57192,57221,57251,57280,57310,57340,57369,57399,57429,57458,57487,57517,57546,57576,57605,57634,57664,57694,57723,57753,57783,57813,57842,57871,57901,57930,57959,57989,58018,58048,58077,58107,58137,58167,58196,58226,58255,58285,58314,58343,58373,58402,58432,58461,58491,58521,58551,58580,58610,58639,58669,58698,58727,58757,58786,58816,58845,58875,58905,58934,58964,58994,59023,59053,59082,59111,59141,59170,59200,59229,59259,59288,59318,59348,59377,59407,59436,59466,59495,59525,59554,59584,59613,59643,59672,59702,59731,59761,59791,59820,59850,59879,59909,59939,59968,59997,60027,60056,60086,60115,60145,60174,60204,60234,60264,60293,60323,60352,60381,60411,60440,60469,60499,60528,60558,60588,60618,60648,60677,60707,60736,60765,60795,60824,60853,60883,60912,60942,60972,61002,61031,61061,61090,61120,61149,61179,61208,61237,61267,61296,61326,61356,61385,61415,61445,61474,61504,61533,61563,61592,61621,61651,61680,61710,61739,61769,61799,61828,61858,61888,61917,61947,61976,62006,62035,62064,62094,62123,62153,62182,62212,62242,62271,62301,62331,62360,62390,62419,62448,62478,62507,62537,62566,62596,62625,62655,62685,62715,62744,62774,62803,62832,62862,62891,62921,62950,62980,63009,63039,63069,63099,63128,63157,63187,63216,63246,63275,63305,63334,63363,63393,63423,63453,63482,63512,63541,63571,63600,63630,63659,63689,63718,63747,63777,63807,63836,63866,63895,63925,63955,63984,64014,64043,64073,64102,64131,64161,64190,64220,64249,64279,64309,64339,64368,64398,64427,64457,64486,64515,64545,64574,64603,64633,64663,64692,64722,64752,64782,64811,64841,64870,64899,64929,64958,64987,65017,65047,65076,65106,65136,65166,65195,65225,65254,65283,65313,65342,65371,65401,65431,65460,65490,65520,65549,65579,65608,65638,65667,65697,65726,65755,65785,65815,65844,65874,65903,65933,65963,65992,66022,66051,66081,66110,66140,66169,66199,66228,66258,66287,66317,66346,66376,66405,66435,66465,66494,66524,66553,66583,66612,66641,66671,66700,66730,66760,66789,66819,66849,66878,66908,66937,66967,66996,67025,67055,67084,67114,67143,67173,67203,67233,67262,67292,67321,67351,67380,67409,67439,67468,67497,67527,67557,67587,67617,67646,67676,67705,67735,67764,67793,67823,67852,67882,67911,67941,67971,68e3,68030,68060,68089,68119,68148,68177,68207,68236,68266,68295,68325,68354,68384,68414,68443,68473,68502,68532,68561,68591,68620,68650,68679,68708,68738,68768,68797,68827,68857,68886,68916,68946,68975,69004,69034,69063,69092,69122,69152,69181,69211,69240,69270,69300,69330,69359,69388,69418,69447,69476,69506,69535,69565,69595,69624,69654,69684,69713,69743,69772,69802,69831,69861,69890,69919,69949,69978,70008,70038,70067,70097,70126,70156,70186,70215,70245,70274,70303,70333,70362,70392,70421,70451,70481,70510,70540,70570,70599,70629,70658,70687,70717,70746,70776,70805,70835,70864,70894,70924,70954,70983,71013,71042,71071,71101,71130,71159,71189,71218,71248,71278,71308,71337,71367,71397,71426,71455,71485,71514,71543,71573,71602,71632,71662,71691,71721,71751,71781,71810,71839,71869,71898,71927,71957,71986,72016,72046,72075,72105,72135,72164,72194,72223,72253,72282,72311,72341,72370,72400,72429,72459,72489,72518,72548,72577,72607,72637,72666,72695,72725,72754,72784,72813,72843,72872,72902,72931,72961,72991,73020,73050,73080,73109,73139,73168,73197,73227,73256,73286,73315,73345,73375,73404,73434,73464,73493,73523,73552,73581,73611,73640,73669,73699,73729,73758,73788,73818,73848,73877,73907,73936,73965,73995,74024,74053,74083,74113,74142,74172,74202,74231,74261,74291,74320,74349,74379,74408,74437,74467,74497,74526,74556,74586,74615,74645,74675,74704,74733,74763,74792,74822,74851,74881,74910,74940,74969,74999,75029,75058,75088,75117,75147,75176,75206,75235,75264,75294,75323,75353,75383,75412,75442,75472,75501,75531,75560,75590,75619,75648,75678,75707,75737,75766,75796,75826,75856,75885,75915,75944,75974,76003,76032,76062,76091,76121,76150,76180,76210,76239,76269,76299,76328,76358,76387,76416,76446,76475,76505,76534,76564,76593,76623,76653,76682,76712,76741,76771,76801,76830,76859,76889,76918,76948,76977,77007,77036,77066,77096,77125,77155,77185,77214,77243,77273,77302,77332,77361,77390,77420,77450,77479,77509,77539,77569,77598,77627,77657,77686,77715,77745,77774,77804,77833,77863,77893,77923,77952,77982,78011,78041,78070,78099,78129,78158,78188,78217,78247,78277,78307,78336,78366,78395,78425,78454,78483,78513,78542,78572,78601,78631,78661,78690,78720,78750,78779,78808,78838,78867,78897,78926,78956,78985,79015,79044,79074,79104,79133,79163,79192,79222,79251,79281,79310,79340,79369,79399,79428,79458,79487,79517,79546,79576,79606,79635,79665,79695,79724,79753,79783,79812,79841,79871,79900,79930,79960,79990]},63489:function(o,a,n){var l=n(56131);function c(){this.regionalOptions=[],this.regionalOptions[""]={invalidCalendar:"Calendar {0} not found",invalidDate:"Invalid {0} date",invalidMonth:"Invalid {0} month",invalidYear:"Invalid {0} year",differentCalendars:"Cannot mix {0} and {1} dates"},this.local=this.regionalOptions[""],this.calendars={},this._localCals={}}function u(m,y,v,g){if(this._calendar=m,this._year=y,this._month=v,this._day=g,this._calendar._validateLevel===0&&!this._calendar.isValid(this._year,this._month,this._day))throw(h.local.invalidDate||h.regionalOptions[""].invalidDate).replace(/\{0\}/,this._calendar.local.name)}function f(m,y){return"000000".substring(0,y-(m=""+m).length)+m}function d(){this.shortYearCutoff="+10"}function p(m){this.local=this.regionalOptions[m]||this.regionalOptions[""]}l(c.prototype,{instance:function(m,y){m=(m||"gregorian").toLowerCase(),y=y||"";var v=this._localCals[m+"-"+y];if(!v&&this.calendars[m]&&(v=new this.calendars[m](y),this._localCals[m+"-"+y]=v),!v)throw(this.local.invalidCalendar||this.regionalOptions[""].invalidCalendar).replace(/\{0\}/,m);return v},newDate:function(m,y,v,g,b){return(g=(m!=null&&m.year?m.calendar():typeof g=="string"?this.instance(g,b):g)||this.instance()).newDate(m,y,v)},substituteDigits:function(m){return function(y){return(y+"").replace(/[0-9]/g,function(v){return m[v]})}},substituteChineseDigits:function(m,y){return function(v){for(var g="",b=0;v>0;){var w=v%10;g=(w===0?"":m[w]+y[b])+g,b++,v=Math.floor(v/10)}return g.indexOf(m[1]+y[1])===0&&(g=g.substr(1)),g||m[0]}}}),l(u.prototype,{newDate:function(m,y,v){return this._calendar.newDate(m??this,y,v)},year:function(m){return arguments.length===0?this._year:this.set(m,"y")},month:function(m){return arguments.length===0?this._month:this.set(m,"m")},day:function(m){return arguments.length===0?this._day:this.set(m,"d")},date:function(m,y,v){if(!this._calendar.isValid(m,y,v))throw(h.local.invalidDate||h.regionalOptions[""].invalidDate).replace(/\{0\}/,this._calendar.local.name);return this._year=m,this._month=y,this._day=v,this},leapYear:function(){return this._calendar.leapYear(this)},epoch:function(){return this._calendar.epoch(this)},formatYear:function(){return this._calendar.formatYear(this)},monthOfYear:function(){return this._calendar.monthOfYear(this)},weekOfYear:function(){return this._calendar.weekOfYear(this)},daysInYear:function(){return this._calendar.daysInYear(this)},dayOfYear:function(){return this._calendar.dayOfYear(this)},daysInMonth:function(){return this._calendar.daysInMonth(this)},dayOfWeek:function(){return this._calendar.dayOfWeek(this)},weekDay:function(){return this._calendar.weekDay(this)},extraInfo:function(){return this._calendar.extraInfo(this)},add:function(m,y){return this._calendar.add(this,m,y)},set:function(m,y){return this._calendar.set(this,m,y)},compareTo:function(m){if(this._calendar.name!==m._calendar.name)throw(h.local.differentCalendars||h.regionalOptions[""].differentCalendars).replace(/\{0\}/,this._calendar.local.name).replace(/\{1\}/,m._calendar.local.name);var y=this._year!==m._year?this._year-m._year:this._month!==m._month?this.monthOfYear()-m.monthOfYear():this._day-m._day;return y===0?0:y<0?-1:1},calendar:function(){return this._calendar},toJD:function(){return this._calendar.toJD(this)},fromJD:function(m){return this._calendar.fromJD(m)},toJSDate:function(){return this._calendar.toJSDate(this)},fromJSDate:function(m){return this._calendar.fromJSDate(m)},toString:function(){return(this.year()<0?"-":"")+f(Math.abs(this.year()),4)+"-"+f(this.month(),2)+"-"+f(this.day(),2)}}),l(d.prototype,{_validateLevel:0,newDate:function(m,y,v){return m==null?this.today():(m.year&&(this._validate(m,y,v,h.local.invalidDate||h.regionalOptions[""].invalidDate),v=m.day(),y=m.month(),m=m.year()),new u(this,m,y,v))},today:function(){return this.fromJSDate(new Date)},epoch:function(m){return this._validate(m,this.minMonth,this.minDay,h.local.invalidYear||h.regionalOptions[""].invalidYear).year()<0?this.local.epochs[0]:this.local.epochs[1]},formatYear:function(m){var y=this._validate(m,this.minMonth,this.minDay,h.local.invalidYear||h.regionalOptions[""].invalidYear);return(y.year()<0?"-":"")+f(Math.abs(y.year()),4)},monthsInYear:function(m){return this._validate(m,this.minMonth,this.minDay,h.local.invalidYear||h.regionalOptions[""].invalidYear),12},monthOfYear:function(m,y){var v=this._validate(m,y,this.minDay,h.local.invalidMonth||h.regionalOptions[""].invalidMonth);return(v.month()+this.monthsInYear(v)-this.firstMonth)%this.monthsInYear(v)+this.minMonth},fromMonthOfYear:function(m,y){var v=(y+this.firstMonth-2*this.minMonth)%this.monthsInYear(m)+this.minMonth;return this._validate(m,v,this.minDay,h.local.invalidMonth||h.regionalOptions[""].invalidMonth),v},daysInYear:function(m){var y=this._validate(m,this.minMonth,this.minDay,h.local.invalidYear||h.regionalOptions[""].invalidYear);return this.leapYear(y)?366:365},dayOfYear:function(m,y,v){var g=this._validate(m,y,v,h.local.invalidDate||h.regionalOptions[""].invalidDate);return g.toJD()-this.newDate(g.year(),this.fromMonthOfYear(g.year(),this.minMonth),this.minDay).toJD()+1},daysInWeek:function(){return 7},dayOfWeek:function(m,y,v){var g=this._validate(m,y,v,h.local.invalidDate||h.regionalOptions[""].invalidDate);return(Math.floor(this.toJD(g))+2)%this.daysInWeek()},extraInfo:function(m,y,v){return this._validate(m,y,v,h.local.invalidDate||h.regionalOptions[""].invalidDate),{}},add:function(m,y,v){return this._validate(m,this.minMonth,this.minDay,h.local.invalidDate||h.regionalOptions[""].invalidDate),this._correctAdd(m,this._add(m,y,v),y,v)},_add:function(m,y,v){if(this._validateLevel++,v==="d"||v==="w"){var g=m.toJD()+y*(v==="w"?this.daysInWeek():1),b=m.calendar().fromJD(g);return this._validateLevel--,[b.year(),b.month(),b.day()]}try{var w=m.year()+(v==="y"?y:0),_=m.monthOfYear()+(v==="m"?y:0);b=m.day(),v==="y"?(m.month()!==this.fromMonthOfYear(w,_)&&(_=this.newDate(w,m.month(),this.minDay).monthOfYear()),_=Math.min(_,this.monthsInYear(w)),b=Math.min(b,this.daysInMonth(w,this.fromMonthOfYear(w,_)))):v==="m"&&(function(k){for(;_T-1+k.minMonth;)w++,_-=T,T=k.monthsInYear(w)}(this),b=Math.min(b,this.daysInMonth(w,this.fromMonthOfYear(w,_))));var x=[w,this.fromMonthOfYear(w,_),b];return this._validateLevel--,x}catch(k){throw this._validateLevel--,k}},_correctAdd:function(m,y,v,g){if(!(this.hasYearZero||g!=="y"&&g!=="m"||y[0]!==0&&m.year()>0==y[0]>0)){var b={y:[1,1,"y"],m:[1,this.monthsInYear(-1),"m"],w:[this.daysInWeek(),this.daysInYear(-1),"d"],d:[1,this.daysInYear(-1),"d"]}[g],w=v<0?-1:1;y=this._add(m,v*b[0]+w*b[1],b[2])}return m.date(y[0],y[1],y[2])},set:function(m,y,v){this._validate(m,this.minMonth,this.minDay,h.local.invalidDate||h.regionalOptions[""].invalidDate);var g=v==="y"?y:m.year(),b=v==="m"?y:m.month(),w=v==="d"?y:m.day();return v!=="y"&&v!=="m"||(w=Math.min(w,this.daysInMonth(g,b))),m.date(g,b,w)},isValid:function(m,y,v){this._validateLevel++;var g=this.hasYearZero||m!==0;if(g){var b=this.newDate(m,y,this.minDay);g=y>=this.minMonth&&y-this.minMonth=this.minDay&&v-this.minDay13.5?13:1),T=b-(k>2.5?4716:4715);return T<=0&&T--,this.newDate(T,k,x)},toJSDate:function(m,y,v){var g=this._validate(m,y,v,h.local.invalidDate||h.regionalOptions[""].invalidDate),b=new Date(g.year(),g.month()-1,g.day());return b.setHours(0),b.setMinutes(0),b.setSeconds(0),b.setMilliseconds(0),b.setHours(b.getHours()>12?b.getHours()+2:0),b},fromJSDate:function(m){return this.newDate(m.getFullYear(),m.getMonth()+1,m.getDate())}});var h=o.exports=new c;h.cdate=u,h.baseCalendar=d,h.calendars.gregorian=p},94338:function(o,a,n){var l=n(56131),c=n(63489);l(c.regionalOptions[""],{invalidArguments:"Invalid arguments",invalidFormat:"Cannot format a date from another calendar",missingNumberAt:"Missing number at position {0}",unknownNameAt:"Unknown name at position {0}",unexpectedLiteralAt:"Unexpected literal at position {0}",unexpectedText:"Additional text found at end"}),c.local=c.regionalOptions[""],l(c.cdate.prototype,{formatDate:function(u,f){return typeof u!="string"&&(f=u,u=""),this._calendar.formatDate(u||"",this,f)}}),l(c.baseCalendar.prototype,{UNIX_EPOCH:c.instance().newDate(1970,1,1).toJD(),SECS_PER_DAY:86400,TICKS_EPOCH:c.instance().jdEpoch,TICKS_PER_DAY:864e9,ATOM:"yyyy-mm-dd",COOKIE:"D, dd M yyyy",FULL:"DD, MM d, yyyy",ISO_8601:"yyyy-mm-dd",JULIAN:"J",RFC_822:"D, d M yy",RFC_850:"DD, dd-M-yy",RFC_1036:"D, d M yy",RFC_1123:"D, d M yyyy",RFC_2822:"D, d M yyyy",RSS:"D, d M yy",TICKS:"!",TIMESTAMP:"@",W3C:"yyyy-mm-dd",formatDate:function(u,f,d){if(typeof u!="string"&&(d=f,f=u,u=""),!f)return"";if(f.calendar()!==this)throw c.local.invalidFormat||c.regionalOptions[""].invalidFormat;u=u||this.local.dateFormat;for(var p,h,m,y=(d=d||{}).dayNamesShort||this.local.dayNamesShort,v=d.dayNames||this.local.dayNames,g=d.monthNumbers||this.local.monthNumbers,b=d.monthNamesShort||this.local.monthNamesShort,w=d.monthNames||this.local.monthNames,_=(d.calculateWeek||this.local.calculateWeek,function(R,$){for(var P=1;O+P1}),x=function(R,$,P,z){var B=""+$;if(_(R,z))for(;B.length1},A=function(F,E){var W=C(F,E),H=[2,3,W?4:2,W?4:2,10,11,20]["oyYJ@!".indexOf(F)+1],L=new RegExp("^-?\\d{1,"+H+"}"),q=f.substring(z).match(L);if(!q)throw(c.local.missingNumberAt||c.regionalOptions[""].missingNumberAt).replace(/\{0\}/,z);return z+=q[0].length,parseInt(q[0],10)},D=this,O=function(){if(typeof v=="function"){C("m");var F=v.call(D,f.substring(z));return z+=F.length,F}return A("m")},R=function(F,E,W,H){for(var L=C(F,H)?W:E,q=0;q-1){x=1,k=T;for(var j=this.daysInMonth(_,x);k>j;j=this.daysInMonth(_,x))x++,k-=j}return w>-1?this.fromJD(w):this.newDate(_,x,k)},determineDate:function(u,f,d,p,h){d&&typeof d!="object"&&(h=p,p=d,d=null),typeof p!="string"&&(h=p,p="");var m=this;return f=f?f.newDate():null,u==null?f:typeof u=="string"?function(y){try{return m.parseDate(p,y,h)}catch{}for(var v=((y=y.toLowerCase()).match(/^c/)&&d?d.newDate():null)||m.today(),g=/([+-]?[0-9]+)\s*(d|w|m|y)?/g,b=g.exec(y);b;)v.add(parseInt(b[1],10),b[2]||"d"),b=g.exec(y);return v}(u):typeof u=="number"?isNaN(u)||u===1/0||u===-1/0?f:m.today().add(u,"d"):m.newDate(u)}})},69862:function(){},40964:function(){},72077:function(o,a,n){var l=["BigInt64Array","BigUint64Array","Float32Array","Float64Array","Int16Array","Int32Array","Int8Array","Uint16Array","Uint32Array","Uint8Array","Uint8ClampedArray"],c=typeof globalThis>"u"?n.g:globalThis;o.exports=function(){for(var u=[],f=0;f"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function y(_){return y=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(k){return k.__proto__||Object.getPrototypeOf(k)},y(_)}var v=["AfterExport","AfterPlot","Animated","AnimatingFrame","AnimationInterrupted","AutoSize","BeforeExport","BeforeHover","ButtonClicked","Click","ClickAnnotation","Deselect","DoubleClick","Framework","Hover","LegendClick","LegendDoubleClick","Relayout","Relayouting","Restyle","Redraw","Selected","Selecting","SliderChange","SliderEnd","SliderStart","SunburstClick","Transitioning","TransitionInterrupted","Unhover","WebGlContextLost"],g=["plotly_restyle","plotly_redraw","plotly_relayout","plotly_relayouting","plotly_doubleclick","plotly_animated","plotly_sunburstclick"],b=typeof window<"u";function w(_){var x=function(k){u(S,k);var T=d(S);function S(M){var C;return n(this,S),C=T.call(this,M),C.p=Promise.resolve(),C.resizeHandler=null,C.handlers={},C.syncWindowResize=C.syncWindowResize.bind(h(C)),C.syncEventHandlers=C.syncEventHandlers.bind(h(C)),C.attachUpdateEvents=C.attachUpdateEvents.bind(h(C)),C.getRef=C.getRef.bind(h(C)),C.handleUpdate=C.handleUpdate.bind(h(C)),C.figureCallback=C.figureCallback.bind(h(C)),C.updatePlotly=C.updatePlotly.bind(h(C)),C}return c(S,[{key:"updatePlotly",value:function(C,A,D){var O=this;this.p=this.p.then(function(){if(!O.unmounting){if(!O.el)throw new Error("Missing element reference");return _.react(O.el,{data:O.props.data,layout:O.props.layout,config:O.props.config,frames:O.props.frames})}}).then(function(){O.unmounting||(O.syncWindowResize(C),O.syncEventHandlers(),O.figureCallback(A),D&&O.attachUpdateEvents())}).catch(function(R){O.props.onError&&O.props.onError(R)})}},{key:"componentDidMount",value:function(){this.unmounting=!1,this.updatePlotly(!0,this.props.onInitialized,!0)}},{key:"componentDidUpdate",value:function(C){this.unmounting=!1;var A=C.frames&&C.frames.length?C.frames.length:0,D=this.props.frames&&this.props.frames.length?this.props.frames.length:0,O=!(C.layout===this.props.layout&&C.data===this.props.data&&C.config===this.props.config&&D===A),R=C.revision!==void 0,$=C.revision!==this.props.revision;!O&&(!R||R&&!$)||this.updatePlotly(!1,this.props.onUpdate,!1)}},{key:"componentWillUnmount",value:function(){this.unmounting=!0,this.figureCallback(this.props.onPurge),this.resizeHandler&&b&&(window.removeEventListener("resize",this.resizeHandler),this.resizeHandler=null),this.removeUpdateEvents(),_.purge(this.el)}},{key:"attachUpdateEvents",value:function(){var C=this;!this.el||!this.el.removeListener||g.forEach(function(A){C.el.on(A,C.handleUpdate)})}},{key:"removeUpdateEvents",value:function(){var C=this;!this.el||!this.el.removeListener||g.forEach(function(A){C.el.removeListener(A,C.handleUpdate)})}},{key:"handleUpdate",value:function(){this.figureCallback(this.props.onUpdate)}},{key:"figureCallback",value:function(C){if(typeof C=="function"){var A=this.el,D=A.data,O=A.layout,R=this.el._transitionData?this.el._transitionData._frames:null,$={data:D,layout:O,frames:R};C($,this.el)}}},{key:"syncWindowResize",value:function(C){var A=this;b&&(this.props.useResizeHandler&&!this.resizeHandler?(this.resizeHandler=function(){return _.Plots.resize(A.el)},window.addEventListener("resize",this.resizeHandler),C&&this.resizeHandler()):!this.props.useResizeHandler&&this.resizeHandler&&(window.removeEventListener("resize",this.resizeHandler),this.resizeHandler=null))}},{key:"getRef",value:function(C){this.el=C,this.props.debug&&b&&(window.gd=this.el)}},{key:"syncEventHandlers",value:function(){var C=this;v.forEach(function(A){var D=C.props["on"+A],O=C.handlers[A],R=!!O;D&&!R?C.addEventHandler(A,D):!D&&R?C.removeEventHandler(A):D&&R&&D!==O&&(C.removeEventHandler(A),C.addEventHandler(A,D))})}},{key:"addEventHandler",value:function(C,A){this.handlers[C]=A,this.el.on(this.getPlotlyEventName(C),this.handlers[C])}},{key:"removeEventHandler",value:function(C){this.el.removeListener(this.getPlotlyEventName(C),this.handlers[C]),delete this.handlers[C]}},{key:"getPlotlyEventName",value:function(C){return"plotly_"+C.toLowerCase()}},{key:"render",value:function(){return r.default.createElement("div",{id:this.props.divId,style:this.props.style,ref:this.getRef,className:this.props.className})}}]),S}(r.Component);return x.propTypes={data:i.default.arrayOf(i.default.object),config:i.default.object,layout:i.default.object,frames:i.default.arrayOf(i.default.object),revision:i.default.number,onInitialized:i.default.func,onPurge:i.default.func,onError:i.default.func,onUpdate:i.default.func,debug:i.default.bool,style:i.default.object,className:i.default.string,useResizeHandler:i.default.bool,divId:i.default.string},v.forEach(function(k){x.propTypes["on"+k]=i.default.func}),x.defaultProps={debug:!1,useResizeHandler:!1,data:[],style:{position:"relative",display:"inline-block"}},x}})(e4);const XN=ur(e4),t4=XN(YN),Kd=e=>Ee.jsx("div",{children:Ee.jsx(t4,{data:e.data,layout:{...e.layout,title:void 0},config:{responsive:!0},style:{width:"100%",minHeight:300+100*(1+e.widgetSize/2),maxHeight:400}})});class n4 extends tt.Component{render(){return Ee.jsx(rr,{container:!0,alignItems:"stretch",spacing:1,direction:"row",mt:1,children:this.props.children})}}const r4=()=>Ee.jsx("div",{children:"Not implemented"}),ZN=e=>{const t=e.activeTab===-1?0:e.activeTab;return Ee.jsxs("div",{children:[Ee.jsx(CC,{value:t,onChange:e.onNewTabSelected,indicatorColor:"primary",textColor:"primary",children:e.tabs.map((r,i)=>Ee.jsx(K0,{disabled:r.disabled??!1,label:Ee.jsx(Ma,{className:e.tabStyle,children:Ee.jsxs(Ma,{display:"flex",children:[Ee.jsx("span",{children:r.icon}),r.title]})})},i))}),Ee.jsx(Ma,{children:e.tabs.map((r,i)=>Ee.jsx("div",{hidden:(e.activeTab===-1?0:e.activeTab)!==i,children:(e.activeTab===-1?0:e.activeTab)!==i?Ee.jsx("div",{}):r.tab},i))})]})},Qy=e=>{const[t,r]=$e.useState({activeTab:0});return Ee.jsx(tt.Fragment,{children:Ee.jsx(ZN,{activeTab:t.activeTab,onNewTabSelected:(i,s)=>r(o=>({...o,activeTab:s})),tabs:e.tabs})})},KN=e=>Ee.jsx(Qy,{tabs:e.graphs.map(t=>({title:t.title,tab:Ee.jsx(Kd,{widgetSize:e.widgetSize,data:t.graph.data,layout:t.graph.layout})}))}),JN=e=>Ee.jsx(nN,{component:Qa,children:Ee.jsxs(Wy,{sx:{minWidth:650},size:"small","aria-label":"a dense table",children:[Ee.jsx(Hy,{children:Ee.jsxs(zu,{children:[Ee.jsx(Xa,{children:e.header[0]},-1),e.header.slice(1).map((t,r)=>Ee.jsx(Xa,{align:"right",children:t},r))]})}),Ee.jsx(Uy,{children:e.data.map(t=>Ee.jsxs(zu,{children:[Ee.jsx(Xa,{component:"th",scope:"row",children:t[0]},-1),t.slice(1).map((r,i)=>Ee.jsx(Xa,{align:"right",children:r},i))]},t[0]))})]})});var a4={},Rg={exports:{}},o_;function _r(){return o_||(o_=1,function(e){function t(){return e.exports=t=Object.assign?Object.assign.bind():function(r){for(var i=1;i{let t;const r=new Set,i=(l,c)=>{const u=typeof l=="function"?l(t):l;if(!Object.is(u,t)){const f=t;t=c??typeof u!="object"?u:Object.assign({},t,u),r.forEach(d=>d(t,f))}},s=()=>t,n={setState:i,getState:s,subscribe:l=>(r.add(l),()=>r.delete(l)),destroy:()=>{r.clear()}};return t=e(i,s,n),n},l4=e=>e?d_(e):d_;var s4={exports:{}},u4={},c4={exports:{}},f4={};/** + * @license React + * use-sync-external-store-shim.production.min.js + * + * Copyright (c) Facebook, Inc. and its affiliates. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + */var Rl=$e;function nB(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var rB=typeof Object.is=="function"?Object.is:nB,aB=Rl.useState,iB=Rl.useEffect,oB=Rl.useLayoutEffect,lB=Rl.useDebugValue;function sB(e,t){var r=t(),i=aB({inst:{value:r,getSnapshot:t}}),s=i[0].inst,o=i[1];return oB(function(){s.value=r,s.getSnapshot=t,Wg(s)&&o({inst:s})},[e,r,t]),iB(function(){return Wg(s)&&o({inst:s}),e(function(){Wg(s)&&o({inst:s})})},[e]),lB(r),r}function Wg(e){var t=e.getSnapshot;e=e.value;try{var r=t();return!rB(e,r)}catch{return!0}}function uB(e,t){return t()}var cB=typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"?uB:sB;f4.useSyncExternalStore=Rl.useSyncExternalStore!==void 0?Rl.useSyncExternalStore:cB;c4.exports=f4;var d4=c4.exports;/** + * @license React + * use-sync-external-store-shim/with-selector.production.min.js + * + * Copyright (c) Facebook, Inc. and its affiliates. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + */var Jd=$e,fB=d4;function dB(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var pB=typeof Object.is=="function"?Object.is:dB,hB=fB.useSyncExternalStore,gB=Jd.useRef,mB=Jd.useEffect,vB=Jd.useMemo,yB=Jd.useDebugValue;u4.useSyncExternalStoreWithSelector=function(e,t,r,i,s){var o=gB(null);if(o.current===null){var a={hasValue:!1,value:null};o.current=a}else a=o.current;o=vB(function(){function l(p){if(!c){if(c=!0,u=p,p=i(p),s!==void 0&&a.hasValue){var h=a.value;if(s(h,p))return f=h}return f=p}if(h=f,pB(u,p))return h;var m=i(p);return s!==void 0&&s(h,m)?h:(u=p,f=m)}var c=!1,u,f,d=r===void 0?null:r;return[function(){return l(t())},d===null?void 0:function(){return l(d())}]},[t,r,i,s]);var n=hB(e,o[0],o[1]);return mB(function(){a.hasValue=!0,a.value=n},[n]),yB(n),n};s4.exports=u4;var bB=s4.exports;const xB=ur(bB),{useSyncExternalStoreWithSelector:wB}=xB;function p4(e,t=e.getState,r){const i=wB(e.subscribe,e.getState,e.getServerState||e.getState,t,r);return $e.useDebugValue(i),i}const p_=e=>{const t=typeof e=="function"?l4(e):e,r=(i,s)=>p4(t,i,s);return Object.assign(r,t),r},h4=e=>e?p_(e):p_;var _B=e=>h4(e);const TB=Object.freeze(Object.defineProperty({__proto__:null,create:h4,createStore:l4,default:_B,useStore:p4},Symbol.toStringTag,{value:"Module"})),kB=Xn(TB);var lf={exports:{}},Ug={exports:{}},h_;function SB(){return h_||(h_=1,function(e,t){(function(r,i){e.exports=i()})(Ea,function(){var r=typeof Promise=="function",i=typeof self=="object"?self:Ea,s=typeof Symbol<"u",o=typeof Map<"u",a=typeof Set<"u",n=typeof WeakMap<"u",l=typeof WeakSet<"u",c=typeof DataView<"u",u=s&&typeof Symbol.iterator<"u",f=s&&typeof Symbol.toStringTag<"u",d=a&&typeof Set.prototype.entries=="function",p=o&&typeof Map.prototype.entries=="function",h=d&&Object.getPrototypeOf(new Set().entries()),m=p&&Object.getPrototypeOf(new Map().entries()),y=u&&typeof Array.prototype[Symbol.iterator]=="function",v=y&&Object.getPrototypeOf([][Symbol.iterator]()),g=u&&typeof String.prototype[Symbol.iterator]=="function",b=g&&Object.getPrototypeOf(""[Symbol.iterator]()),w=8,_=-1;function x(k){var T=typeof k;if(T!=="object")return T;if(k===null)return"null";if(k===i)return"global";if(Array.isArray(k)&&(f===!1||!(Symbol.toStringTag in k)))return"Array";if(typeof window=="object"&&window!==null){if(typeof window.location=="object"&&k===window.location)return"Location";if(typeof window.document=="object"&&k===window.document)return"Document";if(typeof window.navigator=="object"){if(typeof window.navigator.mimeTypes=="object"&&k===window.navigator.mimeTypes)return"MimeTypeArray";if(typeof window.navigator.plugins=="object"&&k===window.navigator.plugins)return"PluginArray"}if((typeof window.HTMLElement=="function"||typeof window.HTMLElement=="object")&&k instanceof window.HTMLElement){if(k.tagName==="BLOCKQUOTE")return"HTMLQuoteElement";if(k.tagName==="TD")return"HTMLTableDataCellElement";if(k.tagName==="TH")return"HTMLTableHeaderCellElement"}}var S=f&&k[Symbol.toStringTag];if(typeof S=="string")return S;var M=Object.getPrototypeOf(k);return M===RegExp.prototype?"RegExp":M===Date.prototype?"Date":r&&M===Promise.prototype?"Promise":a&&M===Set.prototype?"Set":o&&M===Map.prototype?"Map":l&&M===WeakSet.prototype?"WeakSet":n&&M===WeakMap.prototype?"WeakMap":c&&M===DataView.prototype?"DataView":o&&M===m?"Map Iterator":a&&M===h?"Set Iterator":y&&M===v?"Array Iterator":g&&M===b?"String Iterator":M===null?"Object":Object.prototype.toString.call(k).slice(w,_)}return x})}(Ug)),Ug.exports}var g_;function g4(){if(g_)return lf.exports;g_=1;/*! + * deep-eql + * Copyright(c) 2013 Jake Luer + * MIT Licensed + */var e=SB();function t(){this._key="chai/deep-eql__"+Math.random()+Date.now()}t.prototype={get:function(k){return k[this._key]},set:function(k,T){Object.isExtensible(k)&&Object.defineProperty(k,this._key,{value:T,configurable:!0})}};var r=typeof WeakMap=="function"?WeakMap:t;/*! + * Check to see if the MemoizeMap has recorded a result of the two operands + * + * @param {Mixed} leftHandOperand + * @param {Mixed} rightHandOperand + * @param {MemoizeMap} memoizeMap + * @returns {Boolean|null} result +*/function i(x,k,T){if(!T||w(x)||w(k))return null;var S=T.get(x);if(S){var M=S.get(k);if(typeof M=="boolean")return M}return null}/*! + * Set the result of the equality into the MemoizeMap + * + * @param {Mixed} leftHandOperand + * @param {Mixed} rightHandOperand + * @param {MemoizeMap} memoizeMap + * @param {Boolean} result +*/function s(x,k,T,S){if(!(!T||w(x)||w(k))){var M=T.get(x);M?M.set(k,S):(M=new r,M.set(k,S),T.set(x,M))}}/*! + * Primary Export + */lf.exports=o,lf.exports.MemoizeMap=r;function o(x,k,T){if(T&&T.comparator)return n(x,k,T);var S=a(x,k);return S!==null?S:n(x,k,T)}function a(x,k){return x===k?x!==0||1/x===1/k:x!==x&&k!==k?!0:w(x)||w(k)?!1:null}/*! + * The main logic of the `deepEqual` function. + * + * @param {Mixed} leftHandOperand + * @param {Mixed} rightHandOperand + * @param {Object} [options] (optional) Additional options + * @param {Array} [options.comparator] (optional) Override default algorithm, determining custom equality. + * @param {Array} [options.memoize] (optional) Provide a custom memoization object which will cache the results of + complex objects for a speed boost. By passing `false` you can disable memoization, but this will cause circular + references to blow the stack. + * @return {Boolean} equal match +*/function n(x,k,T){T=T||{},T.memoize=T.memoize===!1?!1:T.memoize||new r;var S=T&&T.comparator,M=i(x,k,T.memoize);if(M!==null)return M;var C=i(k,x,T.memoize);if(C!==null)return C;if(S){var A=S(x,k);if(A===!1||A===!0)return s(x,k,T.memoize,A),A;var D=a(x,k);if(D!==null)return D}var O=e(x);if(O!==e(k))return s(x,k,T.memoize,!1),!1;s(x,k,T.memoize,!0);var R=l(x,k,O,T);return s(x,k,T.memoize,R),R}function l(x,k,T,S){switch(T){case"String":case"Number":case"Boolean":case"Date":return o(x.valueOf(),k.valueOf());case"Promise":case"Symbol":case"function":case"WeakMap":case"WeakSet":return x===k;case"Error":return g(x,k,["name","message","code"],S);case"Arguments":case"Int8Array":case"Uint8Array":case"Uint8ClampedArray":case"Int16Array":case"Uint16Array":case"Int32Array":case"Uint32Array":case"Float32Array":case"Float64Array":case"Array":return f(x,k,S);case"RegExp":return c(x,k);case"Generator":return d(x,k,S);case"DataView":return f(new Uint8Array(x.buffer),new Uint8Array(k.buffer),S);case"ArrayBuffer":return f(new Uint8Array(x),new Uint8Array(k),S);case"Set":return u(x,k,S);case"Map":return u(x,k,S);case"Temporal.PlainDate":case"Temporal.PlainTime":case"Temporal.PlainDateTime":case"Temporal.Instant":case"Temporal.ZonedDateTime":case"Temporal.PlainYearMonth":case"Temporal.PlainMonthDay":return x.equals(k);case"Temporal.Duration":return x.total("nanoseconds")===k.total("nanoseconds");case"Temporal.TimeZone":case"Temporal.Calendar":return x.toString()===k.toString();default:return b(x,k,S)}}/*! + * Compare two Regular Expressions for equality. + * + * @param {RegExp} leftHandOperand + * @param {RegExp} rightHandOperand + * @return {Boolean} result + */function c(x,k){return x.toString()===k.toString()}/*! + * Compare two Sets/Maps for equality. Faster than other equality functions. + * + * @param {Set} leftHandOperand + * @param {Set} rightHandOperand + * @param {Object} [options] (Optional) + * @return {Boolean} result + */function u(x,k,T){if(x.size!==k.size)return!1;if(x.size===0)return!0;var S=[],M=[];return x.forEach(function(A,D){S.push([A,D])}),k.forEach(function(A,D){M.push([A,D])}),f(S.sort(),M.sort(),T)}/*! + * Simple equality for flat iterable objects such as Arrays, TypedArrays or Node.js buffers. + * + * @param {Iterable} leftHandOperand + * @param {Iterable} rightHandOperand + * @param {Object} [options] (Optional) + * @return {Boolean} result + */function f(x,k,T){var S=x.length;if(S!==k.length)return!1;if(S===0)return!0;for(var M=-1;++M=0)&&(s[a]=r[a]);return s}e.exports=t,e.exports.__esModule=!0,e.exports.default=e.exports}(Kg)),Kg.exports}var N_;function Kl(){return N_||(N_=1,function(e){var t=UB();function r(i,s){if(i==null)return{};var o=t(i,s),a,n;if(Object.getOwnPropertySymbols){var l=Object.getOwnPropertySymbols(i);for(n=0;n=0)&&Object.prototype.propertyIsEnumerable.call(i,a)&&(o[a]=i[a])}return o}e.exports=r,e.exports.__esModule=!0,e.exports.default=e.exports}(Zg)),Zg.exports}var B_;function HB(){return B_||(B_=1,function(e){var t=yn;Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var r=t(WB),i=t(_r()),s=t(Kl()),o=t($e),a=["forwardedRef"];function n(c){var u=c.forwardedRef,f=(0,s.default)(c,a);return o.default.createElement(r.default,(0,i.default)({elevation:2},f,{ref:u}))}var l=o.default.forwardRef(function(u,f){return o.default.createElement(n,(0,i.default)({},u,{forwardedRef:f}))});e.default=l}(Xg)),Xg}var Jg={};const Xo=Xn(x$);var Qg={exports:{}},z_;function VB(){return z_||(z_=1,function(e,t){(function(i,s){e.exports=s($e)})(Ea,function(r){return function(i){var s={};function o(a){if(s[a])return s[a].exports;var n=s[a]={exports:{},id:a,loaded:!1};return i[a].call(n.exports,n,n.exports,o),n.loaded=!0,n.exports}return o.m=i,o.c=s,o.p="",o(0)}([function(i,s,o){Object.defineProperty(s,"__esModule",{value:!0});var a=function(){function h(m,y){for(var v=0;vr.length)&&(i=r.length);for(var s=0,o=new Array(i);s0&&R++,m.hasDetailPanel&&R++,m.isTreeData&&R++,l.default.createElement(a.default,{style:{height:O*(v.paging&&v.emptyRowsWhenPaging?m.pageSize:1)},key:"empty-0"},l.default.createElement(n.default,{style:{paddingTop:0,paddingBottom:0,textAlign:"center"},colSpan:m.columns.reduce(function($,P){return P.hidden?$:$+1},R),key:"empty-"},y.emptyDataSourceMessage))}else if(v.emptyRowsWhenPaging)return l.default.createElement(l.default.Fragment,null,(0,o.default)(Array(A)).map(function($,P){return l.default.createElement(a.default,{style:{height:O},key:"empty-"+P})}),A>0&&l.default.createElement(a.default,{style:{height:1},key:"empty-last1"}))}function _(A){return A.map(function(D,O){if(D.tableData.editing||m.bulkEditOpen)return l.default.createElement(m.components.EditRow,{columns:b,components:m.components,data:D,errorState:m.errorState,icons:g,localization:y.editRow,key:"row-"+D.tableData.uuid,mode:m.bulkEditOpen?"bulk":D.tableData.editing,isTreeData:m.isTreeData,detailPanel:m.detailPanel,onEditingCanceled:m.onEditingCanceled,onEditingApproved:m.onEditingApproved,bulkEditChangedRows:m.bulkEditChangedRows,getFieldValue:m.getFieldValue,onBulkEditRowChanged:m.onBulkEditRowChanged,scrollWidth:m.scrollWidth});var R=m.isTreeData?[D.tableData.uuid]:[O+m.pageSize*m.currentPage];return l.default.createElement(m.components.Row,{components:m.components,data:D,index:O,errorState:m.errorState,key:"row-"+D.tableData.uuid,level:0,onRowSelected:m.onRowSelected,actions:m.actions,columns:m.columns,getFieldValue:m.getFieldValue,detailPanel:m.detailPanel,path:R,onToggleDetailPanel:m.onToggleDetailPanel,onRowClick:m.onRowClick,onRowDoubleClick:m.onRowDoubleClick,isTreeData:m.isTreeData,onTreeExpandChanged:m.onTreeExpandChanged,onEditingCanceled:m.onEditingCanceled,onEditingApproved:m.onEditingApproved,hasAnyEditingRow:m.hasAnyEditingRow,treeDataMaxLevel:m.treeDataMaxLevel,cellEditable:m.cellEditable,onCellEditStarted:m.onCellEditStarted,onCellEditFinished:m.onCellEditFinished,onRowEditStarted:m.onRowEditStarted,scrollWidth:m.scrollWidth})})}function x(A,D){return D.map(function(O,R){return l.default.createElement(m.components.GroupRow,{actions:m.actions,cellEditable:m.cellEditable,columns:m.columns,components:m.components,detailPanel:m.detailPanel,getFieldValue:m.getFieldValue,groupData:O,groups:A,hasAnyEditingRow:m.hasAnyEditingRow,icons:g,isTreeData:m.isTreeData,key:O.value==null?""+R:O.value,level:0,localization:y.editRow,onBulkEditRowChanged:m.onBulkEditRowChanged,onCellEditFinished:m.onCellEditFinished,onCellEditStarted:m.onCellEditStarted,onEditingApproved:m.onEditingApproved,onEditingCanceled:m.onEditingCanceled,onGroupExpandChanged:m.onGroupExpandChanged,onRowClick:m.onRowClick,onGroupSelected:m.onGroupSelected,onRowSelected:m.onRowSelected,onToggleDetailPanel:m.onToggleDetailPanel,onTreeExpandChanged:m.onTreeExpandChanged,path:[R+m.pageSize*m.currentPage],scrollWidth:m.scrollWidth,treeDataMaxLevel:m.treeDataMaxLevel})})}function k(){return m.showAddRow&&l.default.createElement(m.components.EditRow,{columns:b,components:m.components,data:m.initialFormData,detailPanel:m.detailPanel,errorState:m.errorState,getFieldValue:m.getFieldValue,icons:g,isTreeData:m.isTreeData,key:"key-add-row",localization:y.editRow,mode:"add",onEditingApproved:m.onEditingApproved,onEditingCanceled:m.onEditingCanceled,scrollWidth:m.scrollWidth})}var T=m.renderData,S=m.columns.filter(function(A){return A.tableData.groupOrder>-1}).sort(function(A,D){return A.tableData.groupOrder-D.tableData.groupOrder}),M=0;v.paging&&m.pageSize>T.length&&(M=m.pageSize-T.length);var C=l.default.useMemo(function(){return m.renderSummaryRow?function(A){return m.renderSummaryRow(d(d({},A),{},{data:m.data,currentData:m.currentData}))}:void 0},[m.data]);return l.default.createElement(i.default,{ref:m.forwardedRef},v.filtering&&l.default.createElement(m.components.FilterRow,{columns:b,icons:g,hasActions:m.actions.some(function(A){return A.position==="row"||typeof A=="function"}),onFilterChanged:m.onFilterChanged,localization:y.filterRow,hasDetailPanel:!!m.detailPanel,isTreeData:m.isTreeData,scrollWidth:m.scrollWidth,hideFilterIcons:m.options.hideFilterIcons}),v.addRowPosition==="first"&&k(),S.length>0?x(S,T):_(T),v.addRowPosition==="last"&&k(),l.default.createElement(m.components.SummaryRow,{columns:b,renderSummaryRow:C,rowProps:m}),w(M,T))}p.defaultProps={actions:[],currentPage:0,data:[],pageSize:5,renderData:[],selection:!1},p.propTypes={actions:c.default.array,bulkEditChangedRows:c.default.object,bulkEditOpen:c.default.bool,cellEditable:c.default.object,columns:c.default.array.isRequired,components:c.default.object.isRequired,currentPage:c.default.number,data:c.default.array,detailPanel:c.default.oneOfType([c.default.func,c.default.arrayOf(c.default.oneOfType([c.default.object,c.default.func]))]),errorState:c.default.oneOfType([c.default.object,c.default.bool]),forwardedRef:c.default.oneOfType([c.default.func,c.default.object]),getFieldValue:c.default.func.isRequired,hasAnyEditingRow:c.default.bool,hasDetailPanel:c.default.bool.isRequired,initialFormData:c.default.object,isTreeData:c.default.bool.isRequired,onBulkEditRowChanged:c.default.func,onCellEditFinished:c.default.func,onCellEditStarted:c.default.func,onEditingApproved:c.default.func,onEditingCanceled:c.default.func,onFilterChanged:c.default.func,onGroupExpandChanged:c.default.func,onRowClick:c.default.func,onRowDoubleClick:c.default.func,onGroupSelected:c.default.func,onRowSelected:c.default.func,onToggleDetailPanel:c.default.func.isRequired,onTreeExpandChanged:c.default.func.isRequired,pageSize:c.default.number,renderData:c.default.array,renderSummaryRow:c.default.func,scrollWidth:c.default.number.isRequired,selection:c.default.bool.isRequired,showAddRow:c.default.bool,treeDataMaxLevel:c.default.number};var h=l.default.forwardRef(function(y,v){return l.default.createElement(p,(0,r.default)({},y,{forwardedRef:v}))});e.default=h}(em)),em}var lm={},sm={exports:{}},Z_;function Qd(){return Z_||(Z_=1,function(e){function t(r,i){if(!(r instanceof i))throw new TypeError("Cannot call a class as a function")}e.exports=t,e.exports.__esModule=!0,e.exports.default=e.exports}(sm)),sm.exports}var um={exports:{}},K_;function ep(){return K_||(K_=1,function(e){var t=o4();function r(s,o){for(var a=0;a1?"s":"")+" required, but only "+t.length+" present")}function gn(e){hn(1,arguments);var t=Object.prototype.toString.call(e);return e instanceof Date||$i(e)==="object"&&t==="[object Date]"?new Date(e.getTime()):typeof e=="number"||t==="[object Number]"?new Date(e):((typeof e=="string"||t==="[object String]")&&typeof console<"u"&&(console.warn("Starting with v2.0.0-beta.1 date-fns doesn't accept strings as date arguments. Please use `parseISO` to parse strings. See: https://github.com/date-fns/date-fns/blob/master/docs/upgradeGuide.md#string-arguments"),console.warn(new Error().stack)),new Date(NaN))}function tv(e,t){hn(2,arguments);var r=gn(e),i=pr(t);return isNaN(i)?new Date(NaN):(i&&r.setDate(r.getDate()+i),r)}function np(e,t){hn(2,arguments);var r=gn(e).getTime(),i=pr(t);return new Date(r+i)}function nz(e,t){hn(2,arguments);var r=pr(t);return np(e,r*1e3)}var rz=6e4;function az(e,t){hn(2,arguments);var r=pr(t);return np(e,r*rz)}var iz=36e5;function oz(e,t){hn(2,arguments);var r=pr(t);return np(e,r*iz)}function lz(e,t){hn(2,arguments);var r=pr(t),i=r*7;return tv(e,i)}function $f(e,t){hn(2,arguments);var r=gn(e),i=pr(t);if(isNaN(i))return new Date(NaN);if(!i)return r;var s=r.getDate(),o=new Date(r.getTime());o.setMonth(r.getMonth()+i+1,0);var a=o.getDate();return s>=a?o:(r.setFullYear(o.getFullYear(),o.getMonth(),s),r)}function rT(e,t){hn(2,arguments);var r=pr(t);return $f(e,r*12)}function sz(e,t){hn(2,arguments);var r=gn(e),i=gn(t);return r.getFullYear()-i.getFullYear()}function Eu(e,t){hn(2,arguments);var r=gn(e),i=gn(t),s=r.getTime()-i.getTime();return s<0?-1:s>0?1:s}function uz(e,t){hn(2,arguments);var r=gn(e),i=gn(t),s=Eu(r,i),o=Math.abs(sz(r,i));r.setFullYear(1584),i.setFullYear(1584);var a=Eu(r,i)===-s,n=s*(o-Number(a));return n===0?0:n}function cz(e,t){hn(2,arguments);var r=gn(e),i=gn(t),s=r.getFullYear()-i.getFullYear(),o=r.getMonth()-i.getMonth();return s*12+o}function nv(e){hn(1,arguments);var t=gn(e);return t.setHours(23,59,59,999),t}function rv(e){hn(1,arguments);var t=gn(e),r=t.getMonth();return t.setFullYear(t.getFullYear(),r+1,0),t.setHours(23,59,59,999),t}function fz(e){hn(1,arguments);var t=gn(e);return nv(t).getTime()===rv(t).getTime()}function k4(e,t){hn(2,arguments);var r=gn(e),i=gn(t),s=Eu(r,i),o=Math.abs(cz(r,i)),a;if(o<1)a=0;else{r.getMonth()===1&&r.getDate()>27&&r.setDate(30),r.setMonth(r.getMonth()-s*o);var n=Eu(r,i)===-s;fz(gn(e))&&o===1&&Eu(e,i)===1&&(n=!1),a=s*(o-Number(n))}return a===0?0:a}var aT={ceil:Math.ceil,round:Math.round,floor:Math.floor,trunc:function(t){return t<0?Math.ceil(t):Math.floor(t)}},dz="trunc";function vc(e){return e?aT[e]:aT[dz]}function pz(e,t,r){hn(2,arguments);var i=k4(e,t)/3;return vc(r==null?void 0:r.roundingMethod)(i)}function nd(e){var t=new Date(Date.UTC(e.getFullYear(),e.getMonth(),e.getDate(),e.getHours(),e.getMinutes(),e.getSeconds(),e.getMilliseconds()));return t.setUTCFullYear(e.getFullYear()),e.getTime()-t.getTime()}function Ll(e){hn(1,arguments);var t=gn(e);return t.setHours(0,0,0,0),t}var hz=864e5;function gz(e,t){hn(2,arguments);var r=Ll(e),i=Ll(t),s=r.getTime()-nd(r),o=i.getTime()-nd(i);return Math.round((s-o)/hz)}function iT(e,t){var r=e.getFullYear()-t.getFullYear()||e.getMonth()-t.getMonth()||e.getDate()-t.getDate()||e.getHours()-t.getHours()||e.getMinutes()-t.getMinutes()||e.getSeconds()-t.getSeconds()||e.getMilliseconds()-t.getMilliseconds();return r<0?-1:r>0?1:r}function S4(e,t){hn(2,arguments);var r=gn(e),i=gn(t),s=iT(r,i),o=Math.abs(gz(r,i));r.setDate(r.getDate()-s*o);var a=+(iT(r,i)===-s),n=s*(o-a);return n===0?0:n}function mz(e,t,r){hn(2,arguments);var i=S4(e,t)/7;return vc(r==null?void 0:r.roundingMethod)(i)}var rp=6e4,ap=36e5,vz=1e3;function ip(e,t){return hn(2,arguments),gn(e).getTime()-gn(t).getTime()}function yz(e,t,r){hn(2,arguments);var i=ip(e,t)/ap;return vc(r==null?void 0:r.roundingMethod)(i)}function bz(e,t,r){hn(2,arguments);var i=ip(e,t)/rp;return vc(r==null?void 0:r.roundingMethod)(i)}function xz(e,t,r){hn(2,arguments);var i=ip(e,t)/1e3;return vc(r==null?void 0:r.roundingMethod)(i)}function wz(e,t){var r;hn(1,arguments);var i=e||{},s=gn(i.start),o=gn(i.end),a=o.getTime();if(!(s.getTime()<=a))throw new RangeError("Invalid interval");var n=[],l=s;l.setHours(0,0,0,0);var c=Number((r=t==null?void 0:t.step)!==null&&r!==void 0?r:1);if(c<1||isNaN(c))throw new RangeError("`options.step` must be a number greater than 1");for(;l.getTime()<=a;)n.push(gn(l)),l.setDate(l.getDate()+c),l.setHours(0,0,0,0);return n}var _z={};function po(){return _z}function gm(e,t){var r,i,s,o,a,n,l,c;hn(1,arguments);var u=po(),f=pr((r=(i=(s=(o=t==null?void 0:t.weekStartsOn)!==null&&o!==void 0?o:t==null||(a=t.locale)===null||a===void 0||(n=a.options)===null||n===void 0?void 0:n.weekStartsOn)!==null&&s!==void 0?s:u.weekStartsOn)!==null&&i!==void 0?i:(l=u.locale)===null||l===void 0||(c=l.options)===null||c===void 0?void 0:c.weekStartsOn)!==null&&r!==void 0?r:0);if(!(f>=0&&f<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");var d=gn(e),p=d.getDay(),h=(p=s.getTime()?r+1:t.getTime()>=a.getTime()?r:r-1}function Mz(e){hn(1,arguments);var t=O4(e),r=new Date(0);r.setUTCFullYear(t,0,4),r.setUTCHours(0,0,0,0);var i=Il(r);return i}var Cz=6048e5;function P4(e){hn(1,arguments);var t=gn(e),r=Il(t).getTime()-Mz(t).getTime();return Math.round(r/Cz)+1}function $o(e,t){var r,i,s,o,a,n,l,c;hn(1,arguments);var u=po(),f=pr((r=(i=(s=(o=t==null?void 0:t.weekStartsOn)!==null&&o!==void 0?o:t==null||(a=t.locale)===null||a===void 0||(n=a.options)===null||n===void 0?void 0:n.weekStartsOn)!==null&&s!==void 0?s:u.weekStartsOn)!==null&&i!==void 0?i:(l=u.locale)===null||l===void 0||(c=l.options)===null||c===void 0?void 0:c.weekStartsOn)!==null&&r!==void 0?r:0);if(!(f>=0&&f<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");var d=gn(e),p=d.getUTCDay(),h=(p=1&&p<=7))throw new RangeError("firstWeekContainsDate must be between 1 and 7 inclusively");var h=new Date(0);h.setUTCFullYear(f+1,0,p),h.setUTCHours(0,0,0,0);var m=$o(h,t),y=new Date(0);y.setUTCFullYear(f,0,p),y.setUTCHours(0,0,0,0);var v=$o(y,t);return u.getTime()>=m.getTime()?f+1:u.getTime()>=v.getTime()?f:f-1}function Oz(e,t){var r,i,s,o,a,n,l,c;hn(1,arguments);var u=po(),f=pr((r=(i=(s=(o=t==null?void 0:t.firstWeekContainsDate)!==null&&o!==void 0?o:t==null||(a=t.locale)===null||a===void 0||(n=a.options)===null||n===void 0?void 0:n.firstWeekContainsDate)!==null&&s!==void 0?s:u.firstWeekContainsDate)!==null&&i!==void 0?i:(l=u.locale)===null||l===void 0||(c=l.options)===null||c===void 0?void 0:c.firstWeekContainsDate)!==null&&r!==void 0?r:1),d=o1(e,t),p=new Date(0);p.setUTCFullYear(d,0,f),p.setUTCHours(0,0,0,0);var h=$o(p,t);return h}var Pz=6048e5;function A4(e,t){hn(1,arguments);var r=gn(e),i=$o(r,t).getTime()-Oz(r,t).getTime();return Math.round(i/Pz)+1}function Kn(e,t){for(var r=e<0?"-":"",i=Math.abs(e).toString();i.length0?i:1-i;return Kn(r==="yy"?s%100:s,r.length)},M:function(t,r){var i=t.getUTCMonth();return r==="M"?String(i+1):Kn(i+1,2)},d:function(t,r){return Kn(t.getUTCDate(),r.length)},a:function(t,r){var i=t.getUTCHours()/12>=1?"pm":"am";switch(r){case"a":case"aa":return i.toUpperCase();case"aaa":return i;case"aaaaa":return i[0];case"aaaa":default:return i==="am"?"a.m.":"p.m."}},h:function(t,r){return Kn(t.getUTCHours()%12||12,r.length)},H:function(t,r){return Kn(t.getUTCHours(),r.length)},m:function(t,r){return Kn(t.getUTCMinutes(),r.length)},s:function(t,r){return Kn(t.getUTCSeconds(),r.length)},S:function(t,r){var i=r.length,s=t.getUTCMilliseconds(),o=Math.floor(s*Math.pow(10,i-3));return Kn(o,r.length)}};const Ji=Az;var hl={am:"am",pm:"pm",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},Dz={G:function(t,r,i){var s=t.getUTCFullYear()>0?1:0;switch(r){case"G":case"GG":case"GGG":return i.era(s,{width:"abbreviated"});case"GGGGG":return i.era(s,{width:"narrow"});case"GGGG":default:return i.era(s,{width:"wide"})}},y:function(t,r,i){if(r==="yo"){var s=t.getUTCFullYear(),o=s>0?s:1-s;return i.ordinalNumber(o,{unit:"year"})}return Ji.y(t,r)},Y:function(t,r,i,s){var o=o1(t,s),a=o>0?o:1-o;if(r==="YY"){var n=a%100;return Kn(n,2)}return r==="Yo"?i.ordinalNumber(a,{unit:"year"}):Kn(a,r.length)},R:function(t,r){var i=O4(t);return Kn(i,r.length)},u:function(t,r){var i=t.getUTCFullYear();return Kn(i,r.length)},Q:function(t,r,i){var s=Math.ceil((t.getUTCMonth()+1)/3);switch(r){case"Q":return String(s);case"QQ":return Kn(s,2);case"Qo":return i.ordinalNumber(s,{unit:"quarter"});case"QQQ":return i.quarter(s,{width:"abbreviated",context:"formatting"});case"QQQQQ":return i.quarter(s,{width:"narrow",context:"formatting"});case"QQQQ":default:return i.quarter(s,{width:"wide",context:"formatting"})}},q:function(t,r,i){var s=Math.ceil((t.getUTCMonth()+1)/3);switch(r){case"q":return String(s);case"qq":return Kn(s,2);case"qo":return i.ordinalNumber(s,{unit:"quarter"});case"qqq":return i.quarter(s,{width:"abbreviated",context:"standalone"});case"qqqqq":return i.quarter(s,{width:"narrow",context:"standalone"});case"qqqq":default:return i.quarter(s,{width:"wide",context:"standalone"})}},M:function(t,r,i){var s=t.getUTCMonth();switch(r){case"M":case"MM":return Ji.M(t,r);case"Mo":return i.ordinalNumber(s+1,{unit:"month"});case"MMM":return i.month(s,{width:"abbreviated",context:"formatting"});case"MMMMM":return i.month(s,{width:"narrow",context:"formatting"});case"MMMM":default:return i.month(s,{width:"wide",context:"formatting"})}},L:function(t,r,i){var s=t.getUTCMonth();switch(r){case"L":return String(s+1);case"LL":return Kn(s+1,2);case"Lo":return i.ordinalNumber(s+1,{unit:"month"});case"LLL":return i.month(s,{width:"abbreviated",context:"standalone"});case"LLLLL":return i.month(s,{width:"narrow",context:"standalone"});case"LLLL":default:return i.month(s,{width:"wide",context:"standalone"})}},w:function(t,r,i,s){var o=A4(t,s);return r==="wo"?i.ordinalNumber(o,{unit:"week"}):Kn(o,r.length)},I:function(t,r,i){var s=P4(t);return r==="Io"?i.ordinalNumber(s,{unit:"week"}):Kn(s,r.length)},d:function(t,r,i){return r==="do"?i.ordinalNumber(t.getUTCDate(),{unit:"date"}):Ji.d(t,r)},D:function(t,r,i){var s=Sz(t);return r==="Do"?i.ordinalNumber(s,{unit:"dayOfYear"}):Kn(s,r.length)},E:function(t,r,i){var s=t.getUTCDay();switch(r){case"E":case"EE":case"EEE":return i.day(s,{width:"abbreviated",context:"formatting"});case"EEEEE":return i.day(s,{width:"narrow",context:"formatting"});case"EEEEEE":return i.day(s,{width:"short",context:"formatting"});case"EEEE":default:return i.day(s,{width:"wide",context:"formatting"})}},e:function(t,r,i,s){var o=t.getUTCDay(),a=(o-s.weekStartsOn+8)%7||7;switch(r){case"e":return String(a);case"ee":return Kn(a,2);case"eo":return i.ordinalNumber(a,{unit:"day"});case"eee":return i.day(o,{width:"abbreviated",context:"formatting"});case"eeeee":return i.day(o,{width:"narrow",context:"formatting"});case"eeeeee":return i.day(o,{width:"short",context:"formatting"});case"eeee":default:return i.day(o,{width:"wide",context:"formatting"})}},c:function(t,r,i,s){var o=t.getUTCDay(),a=(o-s.weekStartsOn+8)%7||7;switch(r){case"c":return String(a);case"cc":return Kn(a,r.length);case"co":return i.ordinalNumber(a,{unit:"day"});case"ccc":return i.day(o,{width:"abbreviated",context:"standalone"});case"ccccc":return i.day(o,{width:"narrow",context:"standalone"});case"cccccc":return i.day(o,{width:"short",context:"standalone"});case"cccc":default:return i.day(o,{width:"wide",context:"standalone"})}},i:function(t,r,i){var s=t.getUTCDay(),o=s===0?7:s;switch(r){case"i":return String(o);case"ii":return Kn(o,r.length);case"io":return i.ordinalNumber(o,{unit:"day"});case"iii":return i.day(s,{width:"abbreviated",context:"formatting"});case"iiiii":return i.day(s,{width:"narrow",context:"formatting"});case"iiiiii":return i.day(s,{width:"short",context:"formatting"});case"iiii":default:return i.day(s,{width:"wide",context:"formatting"})}},a:function(t,r,i){var s=t.getUTCHours(),o=s/12>=1?"pm":"am";switch(r){case"a":case"aa":return i.dayPeriod(o,{width:"abbreviated",context:"formatting"});case"aaa":return i.dayPeriod(o,{width:"abbreviated",context:"formatting"}).toLowerCase();case"aaaaa":return i.dayPeriod(o,{width:"narrow",context:"formatting"});case"aaaa":default:return i.dayPeriod(o,{width:"wide",context:"formatting"})}},b:function(t,r,i){var s=t.getUTCHours(),o;switch(s===12?o=hl.noon:s===0?o=hl.midnight:o=s/12>=1?"pm":"am",r){case"b":case"bb":return i.dayPeriod(o,{width:"abbreviated",context:"formatting"});case"bbb":return i.dayPeriod(o,{width:"abbreviated",context:"formatting"}).toLowerCase();case"bbbbb":return i.dayPeriod(o,{width:"narrow",context:"formatting"});case"bbbb":default:return i.dayPeriod(o,{width:"wide",context:"formatting"})}},B:function(t,r,i){var s=t.getUTCHours(),o;switch(s>=17?o=hl.evening:s>=12?o=hl.afternoon:s>=4?o=hl.morning:o=hl.night,r){case"B":case"BB":case"BBB":return i.dayPeriod(o,{width:"abbreviated",context:"formatting"});case"BBBBB":return i.dayPeriod(o,{width:"narrow",context:"formatting"});case"BBBB":default:return i.dayPeriod(o,{width:"wide",context:"formatting"})}},h:function(t,r,i){if(r==="ho"){var s=t.getUTCHours()%12;return s===0&&(s=12),i.ordinalNumber(s,{unit:"hour"})}return Ji.h(t,r)},H:function(t,r,i){return r==="Ho"?i.ordinalNumber(t.getUTCHours(),{unit:"hour"}):Ji.H(t,r)},K:function(t,r,i){var s=t.getUTCHours()%12;return r==="Ko"?i.ordinalNumber(s,{unit:"hour"}):Kn(s,r.length)},k:function(t,r,i){var s=t.getUTCHours();return s===0&&(s=24),r==="ko"?i.ordinalNumber(s,{unit:"hour"}):Kn(s,r.length)},m:function(t,r,i){return r==="mo"?i.ordinalNumber(t.getUTCMinutes(),{unit:"minute"}):Ji.m(t,r)},s:function(t,r,i){return r==="so"?i.ordinalNumber(t.getUTCSeconds(),{unit:"second"}):Ji.s(t,r)},S:function(t,r){return Ji.S(t,r)},X:function(t,r,i,s){var o=s._originalDate||t,a=o.getTimezoneOffset();if(a===0)return"Z";switch(r){case"X":return lT(a);case"XXXX":case"XX":return To(a);case"XXXXX":case"XXX":default:return To(a,":")}},x:function(t,r,i,s){var o=s._originalDate||t,a=o.getTimezoneOffset();switch(r){case"x":return lT(a);case"xxxx":case"xx":return To(a);case"xxxxx":case"xxx":default:return To(a,":")}},O:function(t,r,i,s){var o=s._originalDate||t,a=o.getTimezoneOffset();switch(r){case"O":case"OO":case"OOO":return"GMT"+oT(a,":");case"OOOO":default:return"GMT"+To(a,":")}},z:function(t,r,i,s){var o=s._originalDate||t,a=o.getTimezoneOffset();switch(r){case"z":case"zz":case"zzz":return"GMT"+oT(a,":");case"zzzz":default:return"GMT"+To(a,":")}},t:function(t,r,i,s){var o=s._originalDate||t,a=Math.floor(o.getTime()/1e3);return Kn(a,r.length)},T:function(t,r,i,s){var o=s._originalDate||t,a=o.getTime();return Kn(a,r.length)}};function oT(e,t){var r=e>0?"-":"+",i=Math.abs(e),s=Math.floor(i/60),o=i%60;if(o===0)return r+String(s);var a=t||"";return r+String(s)+a+Kn(o,2)}function lT(e,t){if(e%60===0){var r=e>0?"-":"+";return r+Kn(Math.abs(e)/60,2)}return To(e,t)}function To(e,t){var r=t||"",i=e>0?"-":"+",s=Math.abs(e),o=Kn(Math.floor(s/60),2),a=Kn(s%60,2);return i+o+r+a}const Ez=Dz;var sT=function(t,r){switch(t){case"P":return r.date({width:"short"});case"PP":return r.date({width:"medium"});case"PPP":return r.date({width:"long"});case"PPPP":default:return r.date({width:"full"})}},D4=function(t,r){switch(t){case"p":return r.time({width:"short"});case"pp":return r.time({width:"medium"});case"ppp":return r.time({width:"long"});case"pppp":default:return r.time({width:"full"})}},Rz=function(t,r){var i=t.match(/(P+)(p+)?/)||[],s=i[1],o=i[2];if(!o)return sT(t,r);var a;switch(s){case"P":a=r.dateTime({width:"short"});break;case"PP":a=r.dateTime({width:"medium"});break;case"PPP":a=r.dateTime({width:"long"});break;case"PPPP":default:a=r.dateTime({width:"full"});break}return a.replace("{{date}}",sT(s,r)).replace("{{time}}",D4(o,r))},Lz={p:D4,P:Rz};const av=Lz;var Iz=["D","DD"],$z=["YY","YYYY"];function E4(e){return Iz.indexOf(e)!==-1}function R4(e){return $z.indexOf(e)!==-1}function rd(e,t,r){if(e==="YYYY")throw new RangeError("Use `yyyy` instead of `YYYY` (in `".concat(t,"`) for formatting years to the input `").concat(r,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"));if(e==="YY")throw new RangeError("Use `yy` instead of `YY` (in `".concat(t,"`) for formatting years to the input `").concat(r,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"));if(e==="D")throw new RangeError("Use `d` instead of `D` (in `".concat(t,"`) for formatting days of the month to the input `").concat(r,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"));if(e==="DD")throw new RangeError("Use `dd` instead of `DD` (in `".concat(t,"`) for formatting days of the month to the input `").concat(r,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"))}var Fz={lessThanXSeconds:{one:"less than a second",other:"less than {{count}} seconds"},xSeconds:{one:"1 second",other:"{{count}} seconds"},halfAMinute:"half a minute",lessThanXMinutes:{one:"less than a minute",other:"less than {{count}} minutes"},xMinutes:{one:"1 minute",other:"{{count}} minutes"},aboutXHours:{one:"about 1 hour",other:"about {{count}} hours"},xHours:{one:"1 hour",other:"{{count}} hours"},xDays:{one:"1 day",other:"{{count}} days"},aboutXWeeks:{one:"about 1 week",other:"about {{count}} weeks"},xWeeks:{one:"1 week",other:"{{count}} weeks"},aboutXMonths:{one:"about 1 month",other:"about {{count}} months"},xMonths:{one:"1 month",other:"{{count}} months"},aboutXYears:{one:"about 1 year",other:"about {{count}} years"},xYears:{one:"1 year",other:"{{count}} years"},overXYears:{one:"over 1 year",other:"over {{count}} years"},almostXYears:{one:"almost 1 year",other:"almost {{count}} years"}},jz=function(t,r,i){var s,o=Fz[t];return typeof o=="string"?s=o:r===1?s=o.one:s=o.other.replace("{{count}}",r.toString()),i!=null&&i.addSuffix?i.comparison&&i.comparison>0?"in "+s:s+" ago":s};const Nz=jz;function vm(e){return function(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},r=t.width?String(t.width):e.defaultWidth,i=e.formats[r]||e.formats[e.defaultWidth];return i}}var Bz={full:"EEEE, MMMM do, y",long:"MMMM do, y",medium:"MMM d, y",short:"MM/dd/yyyy"},zz={full:"h:mm:ss a zzzz",long:"h:mm:ss a z",medium:"h:mm:ss a",short:"h:mm a"},qz={full:"{{date}} 'at' {{time}}",long:"{{date}} 'at' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},Wz={date:vm({formats:Bz,defaultWidth:"full"}),time:vm({formats:zz,defaultWidth:"full"}),dateTime:vm({formats:qz,defaultWidth:"full"})};const Uz=Wz;var Hz={lastWeek:"'last' eeee 'at' p",yesterday:"'yesterday at' p",today:"'today at' p",tomorrow:"'tomorrow at' p",nextWeek:"eeee 'at' p",other:"P"},Vz=function(t,r,i,s){return Hz[t]};const Gz=Vz;function Ws(e){return function(t,r){var i=r!=null&&r.context?String(r.context):"standalone",s;if(i==="formatting"&&e.formattingValues){var o=e.defaultFormattingWidth||e.defaultWidth,a=r!=null&&r.width?String(r.width):o;s=e.formattingValues[a]||e.formattingValues[o]}else{var n=e.defaultWidth,l=r!=null&&r.width?String(r.width):e.defaultWidth;s=e.values[l]||e.values[n]}var c=e.argumentCallback?e.argumentCallback(t):t;return s[c]}}var Yz={narrow:["B","A"],abbreviated:["BC","AD"],wide:["Before Christ","Anno Domini"]},Xz={narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["1st quarter","2nd quarter","3rd quarter","4th quarter"]},Zz={narrow:["J","F","M","A","M","J","J","A","S","O","N","D"],abbreviated:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],wide:["January","February","March","April","May","June","July","August","September","October","November","December"]},Kz={narrow:["S","M","T","W","T","F","S"],short:["Su","Mo","Tu","We","Th","Fr","Sa"],abbreviated:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],wide:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"]},Jz={narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"}},Qz={narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"}},eq=function(t,r){var i=Number(t),s=i%100;if(s>20||s<10)switch(s%10){case 1:return i+"st";case 2:return i+"nd";case 3:return i+"rd"}return i+"th"},tq={ordinalNumber:eq,era:Ws({values:Yz,defaultWidth:"wide"}),quarter:Ws({values:Xz,defaultWidth:"wide",argumentCallback:function(t){return t-1}}),month:Ws({values:Zz,defaultWidth:"wide"}),day:Ws({values:Kz,defaultWidth:"wide"}),dayPeriod:Ws({values:Jz,defaultWidth:"wide",formattingValues:Qz,defaultFormattingWidth:"wide"})};const nq=tq;function Us(e){return function(t){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},i=r.width,s=i&&e.matchPatterns[i]||e.matchPatterns[e.defaultMatchWidth],o=t.match(s);if(!o)return null;var a=o[0],n=i&&e.parsePatterns[i]||e.parsePatterns[e.defaultParseWidth],l=Array.isArray(n)?aq(n,function(f){return f.test(a)}):rq(n,function(f){return f.test(a)}),c;c=e.valueCallback?e.valueCallback(l):l,c=r.valueCallback?r.valueCallback(c):c;var u=t.slice(a.length);return{value:c,rest:u}}}function rq(e,t){for(var r in e)if(e.hasOwnProperty(r)&&t(e[r]))return r}function aq(e,t){for(var r=0;r1&&arguments[1]!==void 0?arguments[1]:{},i=t.match(e.matchPattern);if(!i)return null;var s=i[0],o=t.match(e.parsePattern);if(!o)return null;var a=e.valueCallback?e.valueCallback(o[0]):o[0];a=r.valueCallback?r.valueCallback(a):a;var n=t.slice(s.length);return{value:a,rest:n}}}var oq=/^(\d+)(th|st|nd|rd)?/i,lq=/\d+/i,sq={narrow:/^(b|a)/i,abbreviated:/^(b\.?\s?c\.?|b\.?\s?c\.?\s?e\.?|a\.?\s?d\.?|c\.?\s?e\.?)/i,wide:/^(before christ|before common era|anno domini|common era)/i},uq={any:[/^b/i,/^(a|c)/i]},cq={narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234](th|st|nd|rd)? quarter/i},fq={any:[/1/i,/2/i,/3/i,/4/i]},dq={narrow:/^[jfmasond]/i,abbreviated:/^(jan|feb|mar|apr|may|jun|jul|aug|sep|oct|nov|dec)/i,wide:/^(january|february|march|april|may|june|july|august|september|october|november|december)/i},pq={narrow:[/^j/i,/^f/i,/^m/i,/^a/i,/^m/i,/^j/i,/^j/i,/^a/i,/^s/i,/^o/i,/^n/i,/^d/i],any:[/^ja/i,/^f/i,/^mar/i,/^ap/i,/^may/i,/^jun/i,/^jul/i,/^au/i,/^s/i,/^o/i,/^n/i,/^d/i]},hq={narrow:/^[smtwf]/i,short:/^(su|mo|tu|we|th|fr|sa)/i,abbreviated:/^(sun|mon|tue|wed|thu|fri|sat)/i,wide:/^(sunday|monday|tuesday|wednesday|thursday|friday|saturday)/i},gq={narrow:[/^s/i,/^m/i,/^t/i,/^w/i,/^t/i,/^f/i,/^s/i],any:[/^su/i,/^m/i,/^tu/i,/^w/i,/^th/i,/^f/i,/^sa/i]},mq={narrow:/^(a|p|mi|n|(in the|at) (morning|afternoon|evening|night))/i,any:/^([ap]\.?\s?m\.?|midnight|noon|(in the|at) (morning|afternoon|evening|night))/i},vq={any:{am:/^a/i,pm:/^p/i,midnight:/^mi/i,noon:/^no/i,morning:/morning/i,afternoon:/afternoon/i,evening:/evening/i,night:/night/i}},yq={ordinalNumber:iq({matchPattern:oq,parsePattern:lq,valueCallback:function(t){return parseInt(t,10)}}),era:Us({matchPatterns:sq,defaultMatchWidth:"wide",parsePatterns:uq,defaultParseWidth:"any"}),quarter:Us({matchPatterns:cq,defaultMatchWidth:"wide",parsePatterns:fq,defaultParseWidth:"any",valueCallback:function(t){return t+1}}),month:Us({matchPatterns:dq,defaultMatchWidth:"wide",parsePatterns:pq,defaultParseWidth:"any"}),day:Us({matchPatterns:hq,defaultMatchWidth:"wide",parsePatterns:gq,defaultParseWidth:"any"}),dayPeriod:Us({matchPatterns:mq,defaultMatchWidth:"any",parsePatterns:vq,defaultParseWidth:"any"})};const bq=yq;var xq={code:"en-US",formatDistance:Nz,formatLong:Uz,formatRelative:Gz,localize:nq,match:bq,options:{weekStartsOn:0,firstWeekContainsDate:1}};const op=xq;var wq=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,_q=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,Tq=/^'([^]*?)'?$/,kq=/''/g,Sq=/[a-zA-Z]/;function L4(e,t,r){var i,s,o,a,n,l,c,u,f,d,p,h,m,y,v,g,b,w;hn(2,arguments);var _=String(t),x=po(),k=(i=(s=r==null?void 0:r.locale)!==null&&s!==void 0?s:x.locale)!==null&&i!==void 0?i:op,T=pr((o=(a=(n=(l=r==null?void 0:r.firstWeekContainsDate)!==null&&l!==void 0?l:r==null||(c=r.locale)===null||c===void 0||(u=c.options)===null||u===void 0?void 0:u.firstWeekContainsDate)!==null&&n!==void 0?n:x.firstWeekContainsDate)!==null&&a!==void 0?a:(f=x.locale)===null||f===void 0||(d=f.options)===null||d===void 0?void 0:d.firstWeekContainsDate)!==null&&o!==void 0?o:1);if(!(T>=1&&T<=7))throw new RangeError("firstWeekContainsDate must be between 1 and 7 inclusively");var S=pr((p=(h=(m=(y=r==null?void 0:r.weekStartsOn)!==null&&y!==void 0?y:r==null||(v=r.locale)===null||v===void 0||(g=v.options)===null||g===void 0?void 0:g.weekStartsOn)!==null&&m!==void 0?m:x.weekStartsOn)!==null&&h!==void 0?h:(b=x.locale)===null||b===void 0||(w=b.options)===null||w===void 0?void 0:w.weekStartsOn)!==null&&p!==void 0?p:0);if(!(S>=0&&S<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");if(!k.localize)throw new RangeError("locale must contain localize property");if(!k.formatLong)throw new RangeError("locale must contain formatLong property");var M=gn(e);if(!M4(M))throw new RangeError("Invalid time value");var C=nd(M),A=C4(M,C),D={firstWeekContainsDate:T,weekStartsOn:S,locale:k,_originalDate:M},O=_.match(_q).map(function(R){var $=R[0];if($==="p"||$==="P"){var P=av[$];return P(R,k.formatLong)}return R}).join("").match(wq).map(function(R){if(R==="''")return"'";var $=R[0];if($==="'")return Mq(R);var P=Ez[$];if(P)return!(r!=null&&r.useAdditionalWeekYearTokens)&&R4(R)&&rd(R,t,String(e)),!(r!=null&&r.useAdditionalDayOfYearTokens)&&E4(R)&&rd(R,t,String(e)),P(A,R,k.localize,D);if($.match(Sq))throw new RangeError("Format string contains an unescaped latin alphabet character `"+$+"`");return R}).join("");return O}function Mq(e){var t=e.match(Tq);return t?t[1].replace(kq,"'"):e}const Cq=Object.freeze(Object.defineProperty({__proto__:null,default:L4},Symbol.toStringTag,{value:"Module"}));function Oq(e){hn(1,arguments);var t=gn(e),r=t.getDate();return r}function Pq(e){hn(1,arguments);var t=gn(e),r=t.getDay();return r}function I4(e){hn(1,arguments);var t=gn(e),r=t.getFullYear(),i=t.getMonth(),s=new Date(0);return s.setFullYear(r,i+1,0),s.setHours(0,0,0,0),s.getDate()}function Aq(e){hn(1,arguments);var t=gn(e),r=t.getHours();return r}function Dq(e){hn(1,arguments);var t=gn(e),r=t.getMinutes();return r}function Eq(e){hn(1,arguments);var t=gn(e),r=t.getMonth();return r}function Rq(e){hn(1,arguments);var t=gn(e),r=t.getSeconds();return r}function Lq(e){return hn(1,arguments),gn(e).getFullYear()}function sf(e,t){hn(2,arguments);var r=gn(e),i=gn(t);return r.getTime()>i.getTime()}function gl(e,t){hn(2,arguments);var r=gn(e),i=gn(t);return r.getTime()e.length)&&(t=e.length);for(var r=0,i=new Array(t);r=e.length?{done:!0}:{done:!1,value:e[i++]}},e:function(c){throw c},f:s}}throw new TypeError(`Invalid attempt to iterate non-iterable instance. +In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var o=!0,a=!1,n;return{s:function(){r=r.call(e)},n:function(){var c=r.next();return o=c.done,c},e:function(c){a=!0,n=c},f:function(){try{!o&&r.return!=null&&r.return()}finally{if(a)throw n}}}}function zq(e,t){if(e==null)throw new TypeError("assign requires that input parameter not be null or undefined");for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e}function ir(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&qR(e,t)}function ad(e){return ad=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},ad(e)}function qq(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function Wq(e,t){if(t&&($i(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return _n(e)}function or(e){var t=qq();return function(){var i=ad(e),s;if(t){var o=ad(this).constructor;s=Reflect.construct(i,arguments,o)}else s=i.apply(this,arguments);return Wq(this,s)}}function tr(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Uq(e,t){if($i(e)!=="object"||e===null)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var i=r.call(e,t||"default");if($i(i)!=="object")return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function $4(e){var t=Uq(e,"string");return $i(t)==="symbol"?t:String(t)}function dT(e,t){for(var r=0;r0,i=r?t:1-t,s;if(i<=50)s=e||100;else{var o=i+50,a=Math.floor(o/100)*100,n=e>=o%100;s=e+a-(n?100:0)}return r?s:1-s}function B4(e){return e%400===0||e%4===0&&e%100!==0}var Xq=function(e){ir(r,e);var t=or(r);function r(){var i;tr(this,r);for(var s=arguments.length,o=new Array(s),a=0;a0}},{key:"set",value:function(s,o,a){var n=s.getUTCFullYear();if(a.isTwoDigitYear){var l=N4(a.year,n);return s.setUTCFullYear(l,0,1),s.setUTCHours(0,0,0,0),s}var c=!("era"in o)||o.era===1?a.year:1-a.year;return s.setUTCFullYear(c,0,1),s.setUTCHours(0,0,0,0),s}}]),r}(fr),Zq=function(e){ir(r,e);var t=or(r);function r(){var i;tr(this,r);for(var s=arguments.length,o=new Array(s),a=0;a0}},{key:"set",value:function(s,o,a,n){var l=o1(s,n);if(a.isTwoDigitYear){var c=N4(a.year,l);return s.setUTCFullYear(c,0,n.firstWeekContainsDate),s.setUTCHours(0,0,0,0),$o(s,n)}var u=!("era"in o)||o.era===1?a.year:1-a.year;return s.setUTCFullYear(u,0,n.firstWeekContainsDate),s.setUTCHours(0,0,0,0),$o(s,n)}}]),r}(fr),Kq=function(e){ir(r,e);var t=or(r);function r(){var i;tr(this,r);for(var s=arguments.length,o=new Array(s),a=0;a=1&&o<=4}},{key:"set",value:function(s,o,a){return s.setUTCMonth((a-1)*3,1),s.setUTCHours(0,0,0,0),s}}]),r}(fr),eW=function(e){ir(r,e);var t=or(r);function r(){var i;tr(this,r);for(var s=arguments.length,o=new Array(s),a=0;a=1&&o<=4}},{key:"set",value:function(s,o,a){return s.setUTCMonth((a-1)*3,1),s.setUTCHours(0,0,0,0),s}}]),r}(fr),tW=function(e){ir(r,e);var t=or(r);function r(){var i;tr(this,r);for(var s=arguments.length,o=new Array(s),a=0;a=0&&o<=11}},{key:"set",value:function(s,o,a){return s.setUTCMonth(a,1),s.setUTCHours(0,0,0,0),s}}]),r}(fr),nW=function(e){ir(r,e);var t=or(r);function r(){var i;tr(this,r);for(var s=arguments.length,o=new Array(s),a=0;a=0&&o<=11}},{key:"set",value:function(s,o,a){return s.setUTCMonth(a,1),s.setUTCHours(0,0,0,0),s}}]),r}(fr);function rW(e,t,r){hn(2,arguments);var i=gn(e),s=pr(t),o=A4(i,r)-s;return i.setUTCDate(i.getUTCDate()-o*7),i}var aW=function(e){ir(r,e);var t=or(r);function r(){var i;tr(this,r);for(var s=arguments.length,o=new Array(s),a=0;a=1&&o<=53}},{key:"set",value:function(s,o,a,n){return $o(rW(s,a,n),n)}}]),r}(fr);function iW(e,t){hn(2,arguments);var r=gn(e),i=pr(t),s=P4(r)-i;return r.setUTCDate(r.getUTCDate()-s*7),r}var oW=function(e){ir(r,e);var t=or(r);function r(){var i;tr(this,r);for(var s=arguments.length,o=new Array(s),a=0;a=1&&o<=53}},{key:"set",value:function(s,o,a){return Il(iW(s,a))}}]),r}(fr),lW=[31,28,31,30,31,30,31,31,30,31,30,31],sW=[31,29,31,30,31,30,31,31,30,31,30,31],uW=function(e){ir(r,e);var t=or(r);function r(){var i;tr(this,r);for(var s=arguments.length,o=new Array(s),a=0;a=1&&o<=sW[l]:o>=1&&o<=lW[l]}},{key:"set",value:function(s,o,a){return s.setUTCDate(a),s.setUTCHours(0,0,0,0),s}}]),r}(fr),cW=function(e){ir(r,e);var t=or(r);function r(){var i;tr(this,r);for(var s=arguments.length,o=new Array(s),a=0;a=1&&o<=366:o>=1&&o<=365}},{key:"set",value:function(s,o,a){return s.setUTCMonth(0,a),s.setUTCHours(0,0,0,0),s}}]),r}(fr);function s1(e,t,r){var i,s,o,a,n,l,c,u;hn(2,arguments);var f=po(),d=pr((i=(s=(o=(a=r==null?void 0:r.weekStartsOn)!==null&&a!==void 0?a:r==null||(n=r.locale)===null||n===void 0||(l=n.options)===null||l===void 0?void 0:l.weekStartsOn)!==null&&o!==void 0?o:f.weekStartsOn)!==null&&s!==void 0?s:(c=f.locale)===null||c===void 0||(u=c.options)===null||u===void 0?void 0:u.weekStartsOn)!==null&&i!==void 0?i:0);if(!(d>=0&&d<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");var p=gn(e),h=pr(t),m=p.getUTCDay(),y=h%7,v=(y+7)%7,g=(v=0&&o<=6}},{key:"set",value:function(s,o,a,n){return s=s1(s,a,n),s.setUTCHours(0,0,0,0),s}}]),r}(fr),dW=function(e){ir(r,e);var t=or(r);function r(){var i;tr(this,r);for(var s=arguments.length,o=new Array(s),a=0;a=0&&o<=6}},{key:"set",value:function(s,o,a,n){return s=s1(s,a,n),s.setUTCHours(0,0,0,0),s}}]),r}(fr),pW=function(e){ir(r,e);var t=or(r);function r(){var i;tr(this,r);for(var s=arguments.length,o=new Array(s),a=0;a=0&&o<=6}},{key:"set",value:function(s,o,a,n){return s=s1(s,a,n),s.setUTCHours(0,0,0,0),s}}]),r}(fr);function hW(e,t){hn(2,arguments);var r=pr(t);r%7===0&&(r=r-7);var i=1,s=gn(e),o=s.getUTCDay(),a=r%7,n=(a+7)%7,l=(n=1&&o<=7}},{key:"set",value:function(s,o,a){return s=hW(s,a),s.setUTCHours(0,0,0,0),s}}]),r}(fr),mW=function(e){ir(r,e);var t=or(r);function r(){var i;tr(this,r);for(var s=arguments.length,o=new Array(s),a=0;a=1&&o<=12}},{key:"set",value:function(s,o,a){var n=s.getUTCHours()>=12;return n&&a<12?s.setUTCHours(a+12,0,0,0):!n&&a===12?s.setUTCHours(0,0,0,0):s.setUTCHours(a,0,0,0),s}}]),r}(fr),xW=function(e){ir(r,e);var t=or(r);function r(){var i;tr(this,r);for(var s=arguments.length,o=new Array(s),a=0;a=0&&o<=23}},{key:"set",value:function(s,o,a){return s.setUTCHours(a,0,0,0),s}}]),r}(fr),wW=function(e){ir(r,e);var t=or(r);function r(){var i;tr(this,r);for(var s=arguments.length,o=new Array(s),a=0;a=0&&o<=11}},{key:"set",value:function(s,o,a){var n=s.getUTCHours()>=12;return n&&a<12?s.setUTCHours(a+12,0,0,0):s.setUTCHours(a,0,0,0),s}}]),r}(fr),_W=function(e){ir(r,e);var t=or(r);function r(){var i;tr(this,r);for(var s=arguments.length,o=new Array(s),a=0;a=1&&o<=24}},{key:"set",value:function(s,o,a){var n=a<=24?a%24:a;return s.setUTCHours(n,0,0,0),s}}]),r}(fr),TW=function(e){ir(r,e);var t=or(r);function r(){var i;tr(this,r);for(var s=arguments.length,o=new Array(s),a=0;a=0&&o<=59}},{key:"set",value:function(s,o,a){return s.setUTCMinutes(a,0,0),s}}]),r}(fr),kW=function(e){ir(r,e);var t=or(r);function r(){var i;tr(this,r);for(var s=arguments.length,o=new Array(s),a=0;a=0&&o<=59}},{key:"set",value:function(s,o,a){return s.setUTCSeconds(a,0),s}}]),r}(fr),SW=function(e){ir(r,e);var t=or(r);function r(){var i;tr(this,r);for(var s=arguments.length,o=new Array(s),a=0;a=1&&M<=7))throw new RangeError("firstWeekContainsDate must be between 1 and 7 inclusively");var C=pr((h=(m=(y=(v=i==null?void 0:i.weekStartsOn)!==null&&v!==void 0?v:i==null||(g=i.locale)===null||g===void 0||(b=g.options)===null||b===void 0?void 0:b.weekStartsOn)!==null&&y!==void 0?y:T.weekStartsOn)!==null&&m!==void 0?m:(w=T.locale)===null||w===void 0||(_=w.options)===null||_===void 0?void 0:_.weekStartsOn)!==null&&h!==void 0?h:0);if(!(C>=0&&C<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");if(k==="")return x===""?gn(r):new Date(NaN);var A={firstWeekContainsDate:M,weekStartsOn:C,locale:S},D=[new Gq],O=k.match(EW).map(function(U){var J=U[0];if(J in av){var te=av[J];return te(U,S.formatLong)}return U}).join("").match(DW),R=[],$=fT(O),P;try{var z=function(){var J=P.value;!(i!=null&&i.useAdditionalWeekYearTokens)&&R4(J)&&rd(J,k,e),!(i!=null&&i.useAdditionalDayOfYearTokens)&&E4(J)&&rd(J,k,e);var te=J[0],ee=AW[te];if(ee){var K=ee.incompatibleTokens;if(Array.isArray(K)){var Q=R.find(function(X){return K.includes(X.token)||X.token===te});if(Q)throw new RangeError("The format string mustn't contain `".concat(Q.fullToken,"` and `").concat(J,"` at the same time"))}else if(ee.incompatibleTokens==="*"&&R.length>0)throw new RangeError("The format string mustn't contain `".concat(J,"` and any other token at the same time"));R.push({token:te,fullToken:J});var G=ee.run(x,J,S.match,A);if(!G)return{v:new Date(NaN)};D.push(G.setter),x=G.rest}else{if(te.match($W))throw new RangeError("Format string contains an unescaped latin alphabet character `"+te+"`");if(J==="''"?J="'":te==="'"&&(J=jW(J)),x.indexOf(J)===0)x=x.slice(J.length);else return{v:new Date(NaN)}}};for($.s();!(P=$.n()).done;){var B=z();if($i(B)==="object")return B.v}}catch(U){$.e(U)}finally{$.f()}if(x.length>0&&IW.test(x))return new Date(NaN);var N=D.map(function(U){return U.priority}).sort(function(U,J){return J-U}).filter(function(U,J,te){return te.indexOf(U)===J}).map(function(U){return D.filter(function(J){return J.priority===U}).sort(function(J,te){return te.subPriority-J.subPriority})}).map(function(U){return U[0]}),j=gn(r);if(isNaN(j.getTime()))return new Date(NaN);var F=C4(j,nd(j)),E={},W=fT(N),H;try{for(W.s();!(H=W.n()).done;){var L=H.value;if(!L.validate(F,A))return new Date(NaN);var q=L.set(F,E,A);Array.isArray(q)?(F=q[0],zq(E,q[1])):F=q}}catch(U){W.e(U)}finally{W.f()}return F}function jW(e){return e.match(RW)[1].replace(LW,"'")}function NW(e,t){hn(2,arguments);var r=gn(e),i=pr(t);return r.setDate(i),r}function BW(e,t){hn(2,arguments);var r=gn(e),i=pr(t);return r.setHours(i),r}function zW(e,t){hn(2,arguments);var r=gn(e),i=pr(t);return r.setMinutes(i),r}function qW(e,t){hn(2,arguments);var r=gn(e),i=pr(t),s=r.getFullYear(),o=r.getDate(),a=new Date(0);a.setFullYear(s,i,15),a.setHours(0,0,0,0);var n=I4(a);return r.setMonth(i,Math.min(o,n)),r}function WW(e,t){hn(2,arguments);var r=gn(e),i=pr(t);return r.setSeconds(i),r}function UW(e,t){hn(2,arguments);var r=gn(e),i=pr(t);return isNaN(r.getTime())?new Date(NaN):(r.setFullYear(i),r)}function uf(e){hn(1,arguments);var t=gn(e);return t.setDate(1),t.setHours(0,0,0,0),t}function ym(e,t){var r,i,s,o,a,n,l,c;hn(1,arguments);var u=po(),f=pr((r=(i=(s=(o=t==null?void 0:t.weekStartsOn)!==null&&o!==void 0?o:t==null||(a=t.locale)===null||a===void 0||(n=a.options)===null||n===void 0?void 0:n.weekStartsOn)!==null&&s!==void 0?s:u.weekStartsOn)!==null&&i!==void 0?i:(l=u.locale)===null||l===void 0||(c=l.options)===null||c===void 0?void 0:c.weekStartsOn)!==null&&r!==void 0?r:0);if(!(f>=0&&f<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");var d=gn(e),p=d.getDay(),h=(p2)return t;if(/:/.test(r[0])?i=r[0]:(t.date=r[0],i=r[1],ff.timeZoneDelimiter.test(t.date)&&(t.date=e.split(ff.timeZoneDelimiter)[0],i=e.substr(t.date.length,e.length))),i){var s=ff.timezone.exec(i);s?(t.time=i.replace(s[1],""),t.timezone=s[1]):t.time=i}return t}function XW(e,t){var r=new RegExp("^(?:(\\d{4}|[+-]\\d{"+(4+t)+"})|(\\d{2}|[+-]\\d{"+(2+t)+"})$)"),i=e.match(r);if(!i)return{year:NaN,restDateString:""};var s=i[1]?parseInt(i[1]):null,o=i[2]?parseInt(i[2]):null;return{year:o===null?s:o*100,restDateString:e.slice((i[1]||i[2]).length)}}function ZW(e,t){if(t===null)return new Date(NaN);var r=e.match(HW);if(!r)return new Date(NaN);var i=!!r[4],s=Hs(r[1]),o=Hs(r[2])-1,a=Hs(r[3]),n=Hs(r[4]),l=Hs(r[5])-1;if(i)return rU(t,n,l)?QW(t,n,l):new Date(NaN);var c=new Date(0);return!tU(t,o,a)||!nU(t,s)?new Date(NaN):(c.setUTCFullYear(t,o,Math.max(s,a)),c)}function Hs(e){return e?parseInt(e):1}function KW(e){var t=e.match(VW);if(!t)return NaN;var r=bm(t[1]),i=bm(t[2]),s=bm(t[3]);return aU(r,i,s)?r*ap+i*rp+s*1e3:NaN}function bm(e){return e&&parseFloat(e.replace(",","."))||0}function JW(e){if(e==="Z")return 0;var t=e.match(GW);if(!t)return 0;var r=t[1]==="+"?-1:1,i=parseInt(t[2]),s=t[3]&&parseInt(t[3])||0;return iU(i,s)?r*(i*ap+s*rp):NaN}function QW(e,t,r){var i=new Date(0);i.setUTCFullYear(e,0,4);var s=i.getUTCDay()||7,o=(t-1)*7+r+1-s;return i.setUTCDate(i.getUTCDate()+o),i}var eU=[31,null,31,30,31,30,31,31,30,31,30,31];function q4(e){return e%400===0||e%4===0&&e%100!==0}function tU(e,t,r){return t>=0&&t<=11&&r>=1&&r<=(eU[t]||(q4(e)?29:28))}function nU(e,t){return t>=1&&t<=(q4(e)?366:365)}function rU(e,t,r){return t>=1&&t<=53&&r>=0&&r<=6}function aU(e,t,r){return e===24?t===0&&r===0:r>=0&&r<60&&t>=0&&t<60&&e>=0&&e<25}function iU(e,t){return t>=0&&t<=59}const oU=Object.freeze(Object.defineProperty({__proto__:null,default:z4},Symbol.toStringTag,{value:"Module"}));function lU(e,t){var r,i;hn(1,arguments);var s=gn(e);if(isNaN(s.getTime()))throw new RangeError("Invalid time value");var o=String((r=t==null?void 0:t.format)!==null&&r!==void 0?r:"extended"),a=String((i=t==null?void 0:t.representation)!==null&&i!==void 0?i:"complete");if(o!=="extended"&&o!=="basic")throw new RangeError("format must be 'extended' or 'basic'");if(a!=="date"&&a!=="time"&&a!=="complete")throw new RangeError("representation must be 'date', 'time', or 'complete'");var n="",l="",c=o==="extended"?"-":"",u=o==="extended"?":":"";if(a!=="time"){var f=Kn(s.getDate(),2),d=Kn(s.getMonth()+1,2),p=Kn(s.getFullYear(),4);n="".concat(p).concat(c).concat(d).concat(c).concat(f)}if(a!=="date"){var h=s.getTimezoneOffset();if(h!==0){var m=Math.abs(h),y=Kn(Math.floor(m/60),2),v=Kn(m%60,2),g=h<0?"+":"-";l="".concat(g).concat(y,":").concat(v)}else l="Z";var b=Kn(s.getHours(),2),w=Kn(s.getMinutes(),2),_=Kn(s.getSeconds(),2),x=n===""?"":"T",k=[b,w,_].join(u);n="".concat(n).concat(x).concat(k).concat(l)}return n}function sU(e,t){hn(2,arguments);var r=gn(e).getTime(),i=gn(t.start).getTime(),s=gn(t.end).getTime();if(!(i<=s))throw new RangeError("Invalid interval");return r>=i&&r<=s}var iv={exports:{}};(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=function(l,c){switch(l){case"P":return c.date({width:"short"});case"PP":return c.date({width:"medium"});case"PPP":return c.date({width:"long"});case"PPPP":default:return c.date({width:"full"})}},i=function(l,c){switch(l){case"p":return c.time({width:"short"});case"pp":return c.time({width:"medium"});case"ppp":return c.time({width:"long"});case"pppp":default:return c.time({width:"full"})}},s=function(l,c){var u=l.match(/(P+)(p+)?/)||[],f=u[1],d=u[2];if(!d)return r(l,c);var p;switch(f){case"P":p=c.dateTime({width:"short"});break;case"PP":p=c.dateTime({width:"medium"});break;case"PPP":p=c.dateTime({width:"long"});break;case"PPPP":default:p=c.dateTime({width:"full"});break}return p.replace("{{date}}",r(f,c)).replace("{{time}}",i(d,c))},o={p:i,P:s},a=o;t.default=a,e.exports=t.default})(iv,iv.exports);var uU=iv.exports;const W4=ur(uU),cU={dayOfMonth:"d",fullDate:"PP",fullDateWithWeekday:"PPPP",fullDateTime:"PP p",fullDateTime12h:"PP hh:mm aaa",fullDateTime24h:"PP HH:mm",fullTime:"p",fullTime12h:"hh:mm aaa",fullTime24h:"HH:mm",hours12h:"hh",hours24h:"HH",keyboardDate:"P",keyboardDateTime:"P p",keyboardDateTime12h:"P hh:mm aaa",keyboardDateTime24h:"P HH:mm",minutes:"mm",month:"LLLL",monthAndDate:"MMMM d",monthAndYear:"LLLL yyyy",monthShort:"MMM",weekday:"EEEE",weekdayShort:"EEE",normalDate:"d MMMM",normalDateWithWeekday:"EEE, MMM d",seconds:"ss",shortDate:"MMM d",year:"yyyy"};class fU{constructor({locale:t,formats:r}={}){this.lib="date-fns",this.is12HourCycleInCurrentLocale=()=>{var i;return this.locale?/a/.test((i=this.locale.formatLong)===null||i===void 0?void 0:i.time()):!0},this.getFormatHelperText=i=>{var s,o;const a=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,n=this.locale||op;return(o=(s=i.match(a))===null||s===void 0?void 0:s.map(l=>{const c=l[0];if(c==="p"||c==="P"){const u=W4[c];return u(l,n.formatLong,{})}return l}).join("").replace(/(aaa|aa|a)/g,"(a|p)m").toLocaleLowerCase())!==null&&o!==void 0?o:i},this.parseISO=i=>z4(i),this.toISO=i=>lU(i,{format:"extended"}),this.getCurrentLocaleCode=()=>{var i;return((i=this.locale)===null||i===void 0?void 0:i.code)||"en-US"},this.addSeconds=(i,s)=>nz(i,s),this.addMinutes=(i,s)=>az(i,s),this.addHours=(i,s)=>oz(i,s),this.addDays=(i,s)=>tv(i,s),this.addWeeks=(i,s)=>lz(i,s),this.addMonths=(i,s)=>$f(i,s),this.addYears=(i,s)=>rT(i,s),this.isValid=i=>M4(this.date(i)),this.getDiff=(i,s,o)=>{var a;const n=(a=this.date(s))!==null&&a!==void 0?a:i;if(!this.isValid(n))return 0;switch(o){case"years":return uz(i,n);case"quarters":return pz(i,n);case"months":return k4(i,n);case"weeks":return mz(i,n);case"days":return S4(i,n);case"hours":return yz(i,n);case"minutes":return bz(i,n);case"seconds":return xz(i,n);default:return ip(i,n)}},this.isAfter=(i,s)=>sf(i,s),this.isBefore=(i,s)=>gl(i,s),this.startOfDay=i=>Ll(i),this.endOfDay=i=>nv(i),this.getHours=i=>Aq(i),this.setHours=(i,s)=>BW(i,s),this.setMinutes=(i,s)=>zW(i,s),this.getSeconds=i=>Rq(i),this.setSeconds=(i,s)=>WW(i,s),this.isSameDay=(i,s)=>$q(i,s),this.isSameMonth=(i,s)=>jq(i,s),this.isSameYear=(i,s)=>Fq(i,s),this.isSameHour=(i,s)=>Nq(i,s),this.startOfYear=i=>cf(i),this.endOfYear=i=>mm(i),this.startOfMonth=i=>uf(i),this.endOfMonth=i=>rv(i),this.startOfWeek=i=>ym(i,{locale:this.locale}),this.endOfWeek=i=>gm(i,{locale:this.locale}),this.getYear=i=>Lq(i),this.setYear=(i,s)=>UW(i,s),this.date=i=>typeof i>"u"?new Date:i===null?null:new Date(i),this.toJsDate=i=>i,this.parse=(i,s)=>i===""?null:FW(i,s,new Date,{locale:this.locale}),this.format=(i,s)=>this.formatByString(i,this.formats[s]),this.formatByString=(i,s)=>L4(i,s,{locale:this.locale}),this.isEqual=(i,s)=>i===null&&s===null?!0:Iq(i,s),this.isNull=i=>i===null,this.isAfterDay=(i,s)=>sf(i,nv(s)),this.isBeforeDay=(i,s)=>gl(i,Ll(s)),this.isBeforeYear=(i,s)=>gl(i,cf(s)),this.isAfterYear=(i,s)=>sf(i,mm(s)),this.isWithinRange=(i,[s,o])=>sU(i,{start:s,end:o}),this.formatNumber=i=>i,this.getMinutes=i=>Dq(i),this.getDate=i=>Oq(i),this.setDate=(i,s)=>NW(i,s),this.getMonth=i=>Eq(i),this.getDaysInMonth=i=>I4(i),this.setMonth=(i,s)=>qW(i,s),this.getMeridiemText=i=>i==="am"?"AM":"PM",this.getNextMonth=i=>$f(i,1),this.getPreviousMonth=i=>$f(i,-1),this.getMonthArray=i=>{const o=[cf(i)];for(;o.length<12;){const a=o[o.length-1];o.push(this.getNextMonth(a))}return o},this.mergeDateAndTime=(i,s)=>this.setSeconds(this.setMinutes(this.setHours(i,this.getHours(s)),this.getMinutes(s)),this.getSeconds(s)),this.getWeekdays=()=>{const i=new Date;return wz({start:ym(i,{locale:this.locale}),end:gm(i,{locale:this.locale})}).map(s=>this.formatByString(s,"EEEEEE"))},this.getWeekArray=i=>{const s=ym(uf(i),{locale:this.locale}),o=gm(rv(i),{locale:this.locale});let a=0,n=s;const l=[];let c=null;for(;gl(n,o);){const u=Math.floor(a/7);l[u]=l[u]||[];const f=Pq(n);c!==f&&(c=f,l[u].push(n),a+=1),n=tv(n,1)}return l},this.getYearRange=(i,s)=>{const o=cf(i),a=mm(s),n=[];let l=o;for(;gl(l,a);)n.push(l),l=rT(l,1);return n},this.locale=t,this.formats=Object.assign({},cU,r)}isBeforeMonth(t,r){return gl(t,uf(r))}isAfterMonth(t,r){return sf(t,uf(r))}}const dU={y:"year",yy:"year",yyy:"year",yyyy:"year",MMMM:"month",MM:"month",DD:"day",d:"day",dd:"day",H:"hour",HH:"hour",h:"hour",hh:"hour",mm:"minute",ss:"second",a:"am-pm",aa:"am-pm",aaa:"am-pm"};class pU extends fU{constructor(...t){super(...t),this.formatTokenMap=dU,this.expandFormat=r=>{const i=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g;return r.match(i).map(s=>{const o=s[0];if(o==="p"||o==="P"){const a=W4[o],n=this.locale||op;return a(s,n.formatLong,{})}return s}).join("")},this.getFormatHelperText=r=>this.expandFormat(r).replace(/(aaa|aa|a)/g,"(a|p)m").toLocaleLowerCase()}}const hU=Object.freeze(Object.defineProperty({__proto__:null,AdapterDateFns:pU},Symbol.toStringTag,{value:"Module"})),U4=Xn(hU);function H4(e){var t,r,i="";if(typeof e=="string"||typeof e=="number")i+=e;else if(typeof e=="object")if(Array.isArray(e))for(t=0;te.indexOf(r)!==-1):e.indexOf(t)!==-1}const V4=(e,t)=>r=>{(r.key==="Enter"||r.key===" ")&&(e(r),r.preventDefault(),r.stopPropagation()),t&&t(r)},G4=(e=document)=>{const t=e.activeElement;return t?t.shadowRoot?G4(t.shadowRoot):t:null};function gU(e){return Wn("PrivatePickersMonth",e)}const ov=Un("PrivatePickersMonth",["root","selected"]),mU=["disabled","onSelect","selected","value","tabIndex","hasFocus","onFocus","onBlur"],vU=e=>{const{classes:t,selected:r}=e;return Nn({root:["root",r&&"selected"]},gU,t)},yU=Jt(lr,{name:"PrivatePickersMonth",slot:"Root",overridesResolver:(e,t)=>[t.root,{[`&.${ov.selected}`]:t.selected}]})(({theme:e})=>ot({flex:"1 0 33.33%",display:"flex",alignItems:"center",justifyContent:"center",color:"unset",backgroundColor:"transparent",border:0,outline:0},e.typography.subtitle1,{margin:"8px 0",height:36,borderRadius:18,cursor:"pointer","&:focus, &:hover":{backgroundColor:Ii(e.palette.action.active,e.palette.action.hoverOpacity)},"&:disabled":{pointerEvents:"none",color:e.palette.text.secondary},[`&.${ov.selected}`]:{color:e.palette.primary.contrastText,backgroundColor:e.palette.primary.main,"&:focus, &:hover":{backgroundColor:e.palette.primary.dark}}})),pT=()=>{},bU=e=>{const{disabled:t,onSelect:r,selected:i,value:s,tabIndex:o,hasFocus:a,onFocus:n=pT,onBlur:l=pT}=e,c=wn(e,mU),u=vU(e),f=()=>{r(s)},d=$e.useRef(null);return pc(()=>{if(a){var p;(p=d.current)==null||p.focus()}},[a]),Ee.jsx(yU,ot({ref:d,component:"button",type:"button",className:u.root,tabIndex:o,onClick:f,onKeyDown:V4(f),color:i?"primary":void 0,variant:i?"h5":"subtitle1",disabled:t,onFocus:p=>n(p,s),onBlur:p=>l(p,s)},c))},jr=e=>({components:{MuiLocalizationProvider:{defaultProps:{localeText:ot({},e)}}}}),xU={previousMonth:"Vorige maand",nextMonth:"Volgende maand",openPreviousView:"open vorige view",openNextView:"open volgende view",calendarViewSwitchingButtonAriaLabel:e=>e==="year"?"jaarweergave is geopend, schakel over naar kalenderweergave":"kalenderweergave is geopend, switch naar jaarweergave",start:"Start",end:"Einde",cancelButtonLabel:"Annuleren",clearButtonLabel:"Resetten",okButtonLabel:"OK",todayButtonLabel:"Vandaag",clockLabelText:(e,t,r)=>`Selecteer ${e}. ${t===null?"Geen tijd geselecteerd":`Geselecteerde tijd is ${r.format(t,"fullTime")}`}`,hoursClockNumberText:e=>`${e} uren`,minutesClockNumberText:e=>`${e} minuten`,secondsClockNumberText:e=>`${e} seconden`,openDatePickerDialogue:(e,t)=>e&&t.isValid(t.date(e))?`Kies datum, geselecteerde datum is ${t.format(t.date(e),"fullDate")}`:"Kies datum",openTimePickerDialogue:(e,t)=>e&&t.isValid(t.date(e))?`Kies tijd, geselecteerde tijd is ${t.format(t.date(e),"fullTime")}`:"Kies tijd",timeTableLabel:"kies tijd",dateTableLabel:"kies datum"},wU=jr(xU),_U={previousMonth:"Poprzedni miesiąc",nextMonth:"Następny miesiąc",openPreviousView:"otwórz poprzedni widok",openNextView:"otwórz następny widok",calendarViewSwitchingButtonAriaLabel:e=>e==="year"?"otwarty jest widok roku, przełącz na widok kalendarza":"otwarty jest widok kalendarza, przełącz na widok roku",start:"Początek",end:"Koniec",cancelButtonLabel:"Anuluj",clearButtonLabel:"Wyczyść",okButtonLabel:"Zatwierdź",todayButtonLabel:"Dzisiaj",clockLabelText:(e,t,r)=>`Select ${e}. ${t===null?"Nie wybrano czasu":`Wybrany czas to ${r.format(t,"fullTime")}`}`,hoursClockNumberText:e=>`${e} godzin`,minutesClockNumberText:e=>`${e} minut`,secondsClockNumberText:e=>`${e} sekund`,openDatePickerDialogue:(e,t)=>e&&t.isValid(t.date(e))?`Wybierz datę, obecnie wybrana data to ${t.format(t.date(e),"fullDate")}`:"Wybierz datę",openTimePickerDialogue:(e,t)=>e&&t.isValid(t.date(e))?`Wybierz czas, obecnie wybrany czas to ${t.format(t.date(e),"fullTime")}`:"Wybierz czas",timeTableLabel:"wybierz czas",dateTableLabel:"wybierz datę"},TU=jr(_U),kU={previousMonth:"Mês anterior",nextMonth:"Próximo mês",openPreviousView:"Abrir próxima seleção",openNextView:"Abrir seleção anterior",calendarViewSwitchingButtonAriaLabel:e=>e==="year"?"Seleção de ano está aberta, alternando para seleção de calendário":"Seleção de calendários está aberta, alternando para seleção de ano",start:"Início",end:"Fim",cancelButtonLabel:"Cancelar",clearButtonLabel:"Limpar",okButtonLabel:"OK",todayButtonLabel:"Hoje",datePickerDefaultToolbarTitle:"Selecione a data",dateTimePickerDefaultToolbarTitle:"Selecione data e hora",timePickerDefaultToolbarTitle:"Selecione a hora",dateRangePickerDefaultToolbarTitle:"Selecione o intervalo entre datas",clockLabelText:(e,t,r)=>`Selecione ${e}. ${t===null?"Hora não selecionada":`Selecionado a hora ${r.format(t,"fullTime")}`}`,hoursClockNumberText:e=>`${e} horas`,minutesClockNumberText:e=>`${e} minutos`,secondsClockNumberText:e=>`${e} segundos`,openDatePickerDialogue:(e,t)=>e&&t.isValid(t.date(e))?`Escolha uma data, data selecionada ${t.format(t.date(e),"fullDate")}`:"Escolha uma data",openTimePickerDialogue:(e,t)=>e&&t.isValid(t.date(e))?`Escolha uma hora, hora selecionada ${t.format(t.date(e),"fullTime")}`:"Escolha uma hora",timeTableLabel:"escolha uma hora",dateTableLabel:"escolha uma data"},SU=jr(kU),MU={previousMonth:"Önceki ay",nextMonth:"Sonraki ay",openPreviousView:"sonraki görünüm",openNextView:"önceki görünüm",calendarViewSwitchingButtonAriaLabel:e=>e==="year"?"yıl görünümü açık, takvim görünümüne geç":"takvim görünümü açık, yıl görünümüne geç",inputModeToggleButtonAriaLabel:(e,t)=>e?`metin girişi görünümü açık, şuraya gidin: ${t} görünümü`:`${t} görünüm açık, metin girişi görünümüne gidin`,start:"Başlangıç",end:"Bitiş",cancelButtonLabel:"iptal",clearButtonLabel:"Temizle",okButtonLabel:"Tamam",todayButtonLabel:"Bugün",datePickerDefaultToolbarTitle:"Tarih Seç",dateTimePickerDefaultToolbarTitle:"Tarih & Saat seç",timePickerDefaultToolbarTitle:"Saat seç",dateRangePickerDefaultToolbarTitle:"Tarih aralığı seçin",clockLabelText:(e,t,r)=>`${e} seç. ${t===null?"Zaman seçilmedi":`Seçilen zaman: ${r.format(t,"fullTime")}`}`,hoursClockNumberText:e=>`${e} saat`,minutesClockNumberText:e=>`${e} dakika`,secondsClockNumberText:e=>`${e} saniye`,openDatePickerDialogue:(e,t)=>e!==null&&t.isValid(e)?`Tarih seçin, seçilen tarih: ${t.format(e,"fullDate")}`:"Tarih seç",openTimePickerDialogue:(e,t)=>e!==null&&t.isValid(e)?`Saat seçin, seçilen saat: ${t.format(e,"fullTime")}`:"Saat seç",timeTableLabel:"saat seç",dateTableLabel:"tarih seç"},CU=jr(MU),df={hours:"Stunden",minutes:"Minuten",seconds:"Sekunden"},hT={calendar:"Kalenderansicht",clock:"Uhransicht"},OU={previousMonth:"Letzter Monat",nextMonth:"Nächster Monat",openPreviousView:"Letzte Ansicht öffnen",openNextView:"Nächste Ansicht öffnen",calendarViewSwitchingButtonAriaLabel:e=>e==="year"?"Jahresansicht ist geöffnet, zur Kalenderansicht wechseln":"Kalenderansicht ist geöffnet, zur Jahresansicht wechseln",inputModeToggleButtonAriaLabel:(e,t)=>e?`Texteingabeansicht ist geöffnet, zur ${hT[t]} wechseln`:`${hT[t]} ist geöffnet, zur Texteingabeansicht wechseln`,start:"Beginn",end:"Ende",cancelButtonLabel:"Abbrechen",clearButtonLabel:"Löschen",okButtonLabel:"OK",todayButtonLabel:"Heute",datePickerDefaultToolbarTitle:"Datum auswählen",dateTimePickerDefaultToolbarTitle:"Datum & Uhrzeit auswählen",timePickerDefaultToolbarTitle:"Uhrzeit auswählen",dateRangePickerDefaultToolbarTitle:"Datumsbereich auswählen",clockLabelText:(e,t,r)=>{var i;return`${(i=df[e])!=null?i:e} auswählen. ${t===null?"Keine Uhrzeit ausgewählt":`Gewählte Uhrzeit ist ${r.format(t,"fullTime")}`}`},hoursClockNumberText:e=>`${e} ${df.hours}`,minutesClockNumberText:e=>`${e} ${df.minutes}`,secondsClockNumberText:e=>`${e} ${df.seconds}`,openDatePickerDialogue:(e,t)=>e&&t.isValid(t.date(e))?`Datum auswählen, gewähltes Datum ist ${t.format(t.date(e),"fullDate")}`:"Datum auswählen",openTimePickerDialogue:(e,t)=>e&&t.isValid(t.date(e))?`Uhrzeit auswählen, gewählte Uhrzeit ist ${t.format(t.date(e),"fullTime")}`:"Uhrzeit auswählen",timeTableLabel:"Uhrzeit auswählen",dateTableLabel:"Datum auswählen"},PU=jr(OU),AU={hours:"las horas",minutes:"los minutos",seconds:"los segundos"},DU={previousMonth:"Último mes",nextMonth:"Próximo mes",openPreviousView:"abrir la última vista",openNextView:"abrir la siguiente vista",calendarViewSwitchingButtonAriaLabel:e=>e==="year"?"la vista del año está abierta, cambie a la vista de calendario":"la vista de calendario está abierta, cambie a la vista del año",inputModeToggleButtonAriaLabel:(e,t)=>e?`la vista de entrada de texto está abierta, ir a la vista ${t}`:`la vista ${t} está abierta, ir a la vista de entrada de texto`,start:"Empezar",end:"Terminar",cancelButtonLabel:"Cancelar",clearButtonLabel:"Limpiar",okButtonLabel:"OK",todayButtonLabel:"Hoy",datePickerDefaultToolbarTitle:"Seleccionar fecha",dateTimePickerDefaultToolbarTitle:"Seleccionar fecha & hora",timePickerDefaultToolbarTitle:"Seleccionar hora",dateRangePickerDefaultToolbarTitle:"Seleccionar rango de fecha",clockLabelText:(e,t,r)=>`Seleccione ${AU[e]}. ${t===null?"Sin tiempo seleccionado":`El tiempo seleccionado es ${r.format(t,"fullTime")}`}`,hoursClockNumberText:e=>`${e} horas`,minutesClockNumberText:e=>`${e} minutos`,secondsClockNumberText:e=>`${e} segundos`,openDatePickerDialogue:(e,t)=>e&&t.isValid(t.date(e))?`Elige la fecha, la fecha elegida es ${t.format(t.date(e),"fullDate")}`:"Elige la fecha",openTimePickerDialogue:(e,t)=>e&&t.isValid(t.date(e))?`Elige la hora, la hora elegido es ${t.format(t.date(e),"fullTime")}`:"Elige la hora",timeTableLabel:"elige la fecha",dateTableLabel:"elige la hora"},EU=jr(DU),RU={previousMonth:"ماه گذشته",nextMonth:"ماه آینده",openPreviousView:"نمای قبلی",openNextView:"نمای بعدی",calendarViewSwitchingButtonAriaLabel:e=>e==="year"?"نمای سال باز است، رفتن به نمای تقویم":"نمای تقویم باز است، رفتن به نمای سال",inputModeToggleButtonAriaLabel:(e,t)=>e?`نمای ورودی متن باز است، رفتن به نمای ${t}`:`نمای ${t} باز است، رفتن به نمای ورودی متن`,start:"شروع",end:"پایان",cancelButtonLabel:"لغو",clearButtonLabel:"پاک کردن",okButtonLabel:"اوکی",todayButtonLabel:"امروز",datePickerDefaultToolbarTitle:"تاریخ را انتخاب کنید",dateTimePickerDefaultToolbarTitle:"تاریخ و ساعت را انتخاب کنید",timePickerDefaultToolbarTitle:"ساعت را انتخاب کنید",dateRangePickerDefaultToolbarTitle:"محدوده تاریخ را انتخاب کنید",clockLabelText:(e,t,r)=>`Select ${e}. ${t===null?"هیچ ساعتی انتخاب نشده است":`ساعت انتخاب ${r.format(t,"fullTime")} می باشد`}`,hoursClockNumberText:e=>`${e} ساعت ها`,minutesClockNumberText:e=>`${e} دقیقه ها`,secondsClockNumberText:e=>`${e} ثانیه ها`,openDatePickerDialogue:(e,t)=>e&&t.isValid(t.date(e))?`تاریخ را انتخاب کنید، تاریخ انتخاب شده ${t.format(t.date(e),"fullDate")} می باشد`:"تاریخ را انتخاب کنید",openTimePickerDialogue:(e,t)=>e&&t.isValid(t.date(e))?`ساعت را انتخاب کنید، ساعت انتخاب شده ${t.format(t.date(e),"fullTime")} می باشد`:"ساعت را انتخاب کنید",timeTableLabel:"انتخاب تاریخ",dateTableLabel:"انتخاب ساعت"},LU=jr(RU),IU={hours:"tunnit",minutes:"minuutit",seconds:"sekuntit"},gT={calendar:"kalenteri",clock:"kello"},$U={previousMonth:"Edellinen kuukausi",nextMonth:"Seuraava kuukausi",openPreviousView:"avaa edellinen kuukausi",openNextView:"avaa seuraava kuukausi",calendarViewSwitchingButtonAriaLabel:e=>e==="year"?"vuosinäkymä on auki, vaihda kalenterinäkymään":"kalenterinäkymä on auki, vaihda vuosinäkymään",inputModeToggleButtonAriaLabel:(e,t)=>e?`tekstikenttä on auki, mene ${gT[t]}näkymään`:`${gT[t]}näkymä on auki, mene tekstikenttään`,start:"Alku",end:"Loppu",cancelButtonLabel:"Peruuta",clearButtonLabel:"Tyhjennä",okButtonLabel:"OK",todayButtonLabel:"Tänään",datePickerDefaultToolbarTitle:"Valitse päivä",dateTimePickerDefaultToolbarTitle:"Valitse päivä ja aika",timePickerDefaultToolbarTitle:"Valitse aika",dateRangePickerDefaultToolbarTitle:"Valitse aikaväli",clockLabelText:(e,t,r)=>`Valitse ${IU[e]}. ${t===null?"Ei aikaa valittuna":`Valittu aika on ${r.format(t,"fullTime")}`}`,hoursClockNumberText:e=>`${e} tuntia`,minutesClockNumberText:e=>`${e} minuuttia`,secondsClockNumberText:e=>`${e} sekunttia`,openDatePickerDialogue:(e,t)=>e&&t.isValid(t.date(e))?`Valitse päivä, valittu päivä on ${t.format(t.date(e),"fullDate")}`:"Valitse päivä",openTimePickerDialogue:(e,t)=>e&&t.isValid(t.date(e))?`Valitse aika, valittu aika on ${t.format(t.date(e),"fullTime")}`:"Valitse aika",timeTableLabel:"valitse aika",dateTableLabel:"valitse päivä"},FU=jr($U),jU={hours:"Hodiny",minutes:"Minuty",seconds:"Sekundy"},mT={calendar:"kalendáře",clock:"času"},NU={previousMonth:"Další měsíc",nextMonth:"Předchozí month",openPreviousView:"otevřít předchozí zobrazení",openNextView:"otevřít další zobrazení",calendarViewSwitchingButtonAriaLabel:e=>e==="year"?"roční zobrazení otevřeno, přepněte do zobrazení kalendáře":"zobrazení kalendáře otevřeno, přepněte do zobrazení roku",inputModeToggleButtonAriaLabel:(e,t)=>e?`Zobrazení pro zadávání textu je otevřené, přepněte do zobrazení ${mT[t]}`:`Zobrazení ${mT[t]} je otevřené, přepněte do zobrazení textového pole`,start:"Začátek",end:"Konec",cancelButtonLabel:"Zrušit",clearButtonLabel:"Vymazat",okButtonLabel:"Potvrdit",todayButtonLabel:"Dnes",datePickerDefaultToolbarTitle:"Vyberte datum",dateTimePickerDefaultToolbarTitle:"Vyberte datum a čas",timePickerDefaultToolbarTitle:"Vyberte čas",dateRangePickerDefaultToolbarTitle:"Vyberete rozmezí dat",clockLabelText:(e,t,r)=>{var i;return`${(i=jU[e])!=null?i:e} vybrány. ${t===null?"Není vybrán čas":`Vybraný čas je ${r.format(t,"fullTime")}`}`},hoursClockNumberText:e=>`${e} hodin`,minutesClockNumberText:e=>`${e} minut`,secondsClockNumberText:e=>`${e} sekund`,openDatePickerDialogue:(e,t)=>e!==null&&t.isValid(e)?`Vybrané datum, vybrané datum je ${t.format(e,"fullDate")}`:"Vyberte datum",openTimePickerDialogue:(e,t)=>e!==null&&t.isValid(e)?`Vybrané čas, vybraný čas je ${t.format(e,"fullTime")}`:"Vyberte čas",timeTableLabel:"vyberte čas",dateTableLabel:"vyberte datum"},BU=jr(NU),zU={hours:"heures",minutes:"minutes",seconds:"secondes"},vT={calendar:"calendrier",clock:"horloge"},qU={previousMonth:"Mois précédent",nextMonth:"Mois suivant",openPreviousView:"Ouvrir la vue précédente",openNextView:"Ouvrir la vue suivante",calendarViewSwitchingButtonAriaLabel:e=>e==="year"?"La vue année est ouverte, ouvrir la vue calendrier":"La vue calendrier est ouverte, ouvrir la vue année",inputModeToggleButtonAriaLabel:(e,t)=>e?`passer du champ text au ${vT[t]}`:`passer du ${vT[t]} au champ text`,start:"Début",end:"Fin",cancelButtonLabel:"Annuler",clearButtonLabel:"Vider",okButtonLabel:"OK",todayButtonLabel:"Aujourd'hui",clockLabelText:(e,t,r)=>`Choix des ${zU[e]}. ${t===null?"Aucune heure choisie":`L'heure choisie est ${r.format(t,"fullTime")}`}`,hoursClockNumberText:e=>`${e} heures`,minutesClockNumberText:e=>`${e} minutes`,secondsClockNumberText:e=>`${e} secondes`,openDatePickerDialogue:(e,t)=>e&&t.isValid(t.date(e))?`Choisir la date, la date sélectionnée est ${t.format(t.date(e),"fullDate")}`:"Choisir la date",openTimePickerDialogue:(e,t)=>e&&t.isValid(t.date(e))?`Choisir l'heure, l'heure sélectionnée est ${t.format(t.date(e),"fullTime")}`:"Choisir l'heure",timeTableLabel:"choix de l'heure",dateTableLabel:"choix de la date"},WU=jr(qU),pf={hours:"Óra",minutes:"Perc",seconds:"Másodperc"},yT={calendar:"naptár",clock:"óra"},UU={previousMonth:"Előző hónap",nextMonth:"Következő hónap",openPreviousView:"Előző nézet megnyitása",openNextView:"Következő nézet megnyitása",calendarViewSwitchingButtonAriaLabel:e=>e==="year"?"az évválasztó már nyitva, váltson a naptárnézetre":"a naptárnézet már nyitva, váltson az évválasztóra",inputModeToggleButtonAriaLabel:(e,t)=>e?`szöveges beviteli nézet aktív, váltás ${yT[t]} nézetre`:`${yT[t]} beviteli nézet aktív, váltás szöveges beviteli nézetre`,start:"Kezdő dátum",end:"Záró dátum",cancelButtonLabel:"Mégse",clearButtonLabel:"Törlés",okButtonLabel:"OK",todayButtonLabel:"Ma",datePickerDefaultToolbarTitle:"Dátum kiválasztása",dateTimePickerDefaultToolbarTitle:"Dátum és idő kiválasztása",timePickerDefaultToolbarTitle:"Idő kiválasztása",dateRangePickerDefaultToolbarTitle:"Dátumhatárok kiválasztása",clockLabelText:(e,t,r)=>{var i;return`${(i=pf[e])!=null?i:e} kiválasztása. ${t===null?"Nincs kiválasztva idő":`A kiválasztott idő ${r.format(t,"fullTime")}`}`},hoursClockNumberText:e=>`${e} ${pf.hours.toLowerCase()}`,minutesClockNumberText:e=>`${e} ${pf.minutes.toLowerCase()}`,secondsClockNumberText:e=>`${e} ${pf.seconds.toLowerCase()}`,openDatePickerDialogue:(e,t)=>e!==null&&t.isValid(e)?`Válasszon dátumot, a kiválasztott dátum: ${t.format(e,"fullDate")}`:"Válasszon dátumot",openTimePickerDialogue:(e,t)=>e!==null&&t.isValid(e)?`Válasszon időt, a kiválasztott idő: ${t.format(e,"fullTime")}`:"Válasszon időt",timeTableLabel:"válasszon időt",dateTableLabel:"válasszon dátumot"},HU=jr(UU),Y4={previousMonth:"Previous month",nextMonth:"Next month",openPreviousView:"open previous view",openNextView:"open next view",calendarViewSwitchingButtonAriaLabel:e=>e==="year"?"year view is open, switch to calendar view":"calendar view is open, switch to year view",inputModeToggleButtonAriaLabel:(e,t)=>e?`text input view is open, go to ${t} view`:`${t} view is open, go to text input view`,start:"Start",end:"End",cancelButtonLabel:"Cancel",clearButtonLabel:"Clear",okButtonLabel:"OK",todayButtonLabel:"Today",datePickerDefaultToolbarTitle:"Select date",dateTimePickerDefaultToolbarTitle:"Select date & time",timePickerDefaultToolbarTitle:"Select time",dateRangePickerDefaultToolbarTitle:"Select date range",clockLabelText:(e,t,r)=>`Select ${e}. ${t===null?"No time selected":`Selected time is ${r.format(t,"fullTime")}`}`,hoursClockNumberText:e=>`${e} hours`,minutesClockNumberText:e=>`${e} minutes`,secondsClockNumberText:e=>`${e} seconds`,openDatePickerDialogue:(e,t)=>e&&t.isValid(t.date(e))?`Choose date, selected date is ${t.format(t.date(e),"fullDate")}`:"Choose date",openTimePickerDialogue:(e,t)=>e&&t.isValid(t.date(e))?`Choose time, selected time is ${t.format(t.date(e),"fullTime")}`:"Choose time",timeTableLabel:"pick time",dateTableLabel:"pick date"},X4=Y4,VU=jr(Y4),GU={previousMonth:"Forrige måned",nextMonth:"Neste måned",openPreviousView:"åpne forrige visning",openNextView:"åpne neste visning",calendarViewSwitchingButtonAriaLabel:e=>e==="year"?"årsvisning er åpen, bytt til kalendervisning":"kalendervisning er åpen, bytt til årsvisning",start:"Start",end:"Slutt",cancelButtonLabel:"Avbryt",clearButtonLabel:"Fjern",okButtonLabel:"OK",todayButtonLabel:"I dag",clockLabelText:(e,t,r)=>`Velg ${e}. ${t===null?"Ingen tid valgt":`Valgt tid er ${r.format(t,"fullTime")}`}`,hoursClockNumberText:e=>`${e} timer`,minutesClockNumberText:e=>`${e} minutter`,secondsClockNumberText:e=>`${e} sekunder`,openDatePickerDialogue:(e,t)=>e&&t.isValid(t.date(e))?`Velg dato, valgt dato er ${t.format(t.date(e),"fullDate")}`:"Velg dato",openTimePickerDialogue:(e,t)=>e&&t.isValid(t.date(e))?`Velg tid, valgt tid er ${t.format(t.date(e),"fullTime")}`:"Velg tid",timeTableLabel:"velg tid",dateTableLabel:"velg dato"},YU=jr(GU),XU={previousMonth:"Föregående månad",nextMonth:"Nästa månad",openPreviousView:"öppna föregående vy",openNextView:"öppna nästa vy",calendarViewSwitchingButtonAriaLabel:e=>e==="year"?"årsvyn är öppen, byt till kalendervy":"kalendervyn är öppen, byt till årsvy",start:"Start",end:"Slut",cancelButtonLabel:"Avbryt",clearButtonLabel:"Rensa",okButtonLabel:"OK",todayButtonLabel:"Idag",clockLabelText:(e,t,r)=>`Select ${e}. ${t===null?"Ingen tid vald":`Vald tid är ${r.format(t,"fullTime")}`}`,hoursClockNumberText:e=>`${e} timmar`,minutesClockNumberText:e=>`${e} minuter`,secondsClockNumberText:e=>`${e} sekunder`,openDatePickerDialogue:(e,t)=>e&&t.isValid(t.date(e))?`Välj datum, valt datum är ${t.format(t.date(e),"fullDate")}`:"Välj datum",openTimePickerDialogue:(e,t)=>e&&t.isValid(t.date(e))?`Välj tid, vald tid är ${t.format(t.date(e),"fullTime")}`:"Välj tid",timeTableLabel:"välj tid",dateTableLabel:"välj datum"},ZU=jr(XU),KU={hours:"le ore",minutes:"i minuti",seconds:"i secondi"},JU={previousMonth:"Mese precedente",nextMonth:"Mese successivo",openPreviousView:"apri la vista precedente",openNextView:"apri la vista successiva",calendarViewSwitchingButtonAriaLabel:e=>e==="year"?"la vista dell'anno è aperta, passare alla vista del calendario":"la vista dell'calendario è aperta, passare alla vista dell'anno",inputModeToggleButtonAriaLabel:(e,t)=>e?`la vista del campo di testo è aperta, passare alla vista ${t}`:`la vista aperta è: ${t}, vai alla vista del campo di testo`,start:"Inizio",end:"Fine",cancelButtonLabel:"Cancellare",clearButtonLabel:"Sgomberare",okButtonLabel:"OK",todayButtonLabel:"Oggi",datePickerDefaultToolbarTitle:"Seleziona data",dateTimePickerDefaultToolbarTitle:"Seleziona data e orario",timePickerDefaultToolbarTitle:"Seleziona orario",dateRangePickerDefaultToolbarTitle:"Seleziona intervallo di date",clockLabelText:(e,t,r)=>`Seleziona ${KU[e]}. ${t===null?"Nessun orario selezionato":`L'ora selezionata è ${r.format(t,"fullTime")}`}`,hoursClockNumberText:e=>`${e} ore`,minutesClockNumberText:e=>`${e} minuti`,secondsClockNumberText:e=>`${e} secondi`,openDatePickerDialogue:(e,t)=>e&&t.isValid(t.date(e))?`Scegli la data, la data selezionata è ${t.format(t.date(e),"fullDate")}`:"Scegli la data",openTimePickerDialogue:(e,t)=>e&&t.isValid(t.date(e))?`Scegli l'ora, l'ora selezionata è ${t.format(t.date(e),"fullTime")}`:"Scegli l'ora",timeTableLabel:"scegli un'ora",dateTableLabel:"scegli una data"},QU=jr(JU),eH={hours:"小时",minutes:"分钟",seconds:"秒"},tH={previousMonth:"上个月",nextMonth:"下个月",openPreviousView:"前一个视图",openNextView:"下一个视图",calendarViewSwitchingButtonAriaLabel:e=>e==="year"?"年视图已打开,切换为日历视图":"日历视图已打开,切换为年视图",start:"开始",end:"结束",cancelButtonLabel:"取消",clearButtonLabel:"清除",okButtonLabel:"确认",todayButtonLabel:"今天",clockLabelText:(e,t,r)=>`Select ${eH[e]}. ${t===null?"未选择时间":`已选择${r.format(t,"fullTime")}`}`,hoursClockNumberText:e=>`${e}小时`,minutesClockNumberText:e=>`${e}分钟`,secondsClockNumberText:e=>`${e}秒`,openDatePickerDialogue:(e,t)=>e&&t.isValid(t.date(e))?`选择日期,已选择${t.format(t.date(e),"fullDate")}`:"选择日期",openTimePickerDialogue:(e,t)=>e&&t.isValid(t.date(e))?`选择时间,已选择${t.format(t.date(e),"fullTime")}`:"选择时间",timeTableLabel:"选择时间",dateTableLabel:"选择日期"},nH=jr(tH),rH={hours:"시간을",minutes:"분을",seconds:"초를"},aH={previousMonth:"이전 달",nextMonth:"다음 달",openPreviousView:"이전 화면 보기",openNextView:"다음 화면 보기",calendarViewSwitchingButtonAriaLabel:e=>e==="year"?"연도 선택 화면에서 달력 화면으로 전환하기":"달력 화면에서 연도 선택 화면으로 전환하기",inputModeToggleButtonAriaLabel:(e,t)=>e?`텍스트 입력 화면에서 ${t} 화면으로 전환하기`:`${t} 화면에서 텍스트 입력 화면으로 전환하기`,start:"시작",end:"종료",cancelButtonLabel:"취소",clearButtonLabel:"초기화",okButtonLabel:"확인",todayButtonLabel:"오늘",datePickerDefaultToolbarTitle:"날짜 선택하기",dateTimePickerDefaultToolbarTitle:"날짜 & 시간 선택하기",timePickerDefaultToolbarTitle:"시간 선택하기",dateRangePickerDefaultToolbarTitle:"날짜 범위 선택하기",clockLabelText:(e,t,r)=>`${rH[e]} 선택하세요. ${t===null?"시간을 선택하지 않았습니다.":`현재 선택된 시간은 ${r.format(t,"fullTime")}입니다.`}`,hoursClockNumberText:e=>`${e}시간`,minutesClockNumberText:e=>`${e}분`,secondsClockNumberText:e=>`${e}초`,openDatePickerDialogue:(e,t)=>e&&t.isValid(t.date(e))?`날짜를 선택하세요. 현재 선택된 날짜는 ${t.format(t.date(e),"fullDate")}입니다.`:"날짜를 선택하세요",openTimePickerDialogue:(e,t)=>e&&t.isValid(t.date(e))?`시간을 선택하세요. 현재 선택된 시간은 ${t.format(t.date(e),"fullTime")}입니다.`:"시간을 선택하세요",timeTableLabel:"선택한 시간",dateTableLabel:"선택한 날짜"},iH=jr(aH),oH={previousMonth:"Fyrri mánuður",nextMonth:"Næsti mánuður",openPreviousView:"opna fyrri skoðun",openNextView:"opna næstu skoðun",calendarViewSwitchingButtonAriaLabel:e=>e==="year"?"ársskoðun er opin, skipta yfir í dagatalsskoðun":"dagatalsskoðun er opin, skipta yfir í ársskoðun",inputModeToggleButtonAriaLabel:(e,t)=>{const r=t==="calendar"?"dagatals":"klukku";return e?`textainnsláttur er opinn, fara í ${r}skoðun`:`${r}skoðun er opin, opna fyrir textainnslátt`},start:"Upphaf",end:"Endir",cancelButtonLabel:"Hætta við",clearButtonLabel:"Hreinsa",okButtonLabel:"OK",todayButtonLabel:"Í dag",datePickerDefaultToolbarTitle:"Velja dagsetningu",dateTimePickerDefaultToolbarTitle:"Velja dagsetningu og tíma",timePickerDefaultToolbarTitle:"Velja tíma",dateRangePickerDefaultToolbarTitle:"Velja tímabil",clockLabelText:(e,t,r)=>`Select ${e}. ${t===null?"Enginn tími valinn":`Valinn tími er ${r.format(t,"fullTime")}`}`,hoursClockNumberText:e=>`${e} klukkustundir`,minutesClockNumberText:e=>`${e} mínútur`,secondsClockNumberText:e=>`${e} sekúndur`,openDatePickerDialogue:(e,t)=>e&&t.isValid(t.date(e))?`Velja dagsetningu, valin dagsetning er ${t.format(t.date(e),"fullDate")}`:"Velja dagsetningu",openTimePickerDialogue:(e,t)=>e&&t.isValid(t.date(e))?`Velja tíma, valinn tími er ${t.format(t.date(e),"fullTime")}`:"Velja tíma",timeTableLabel:"velja tíma",dateTableLabel:"velja dagsetningu"},lH=jr(oH),hf={hours:"時間",minutes:"分",seconds:"秒"},bT={calendar:"カレンダー表示",clock:"時計表示"},sH={previousMonth:"先月",nextMonth:"来月",openPreviousView:"前の表示を開く",openNextView:"次の表示を開く",calendarViewSwitchingButtonAriaLabel:e=>e==="year"?"年選択表示からカレンダー表示に切り替える":"カレンダー表示から年選択表示に切り替える",inputModeToggleButtonAriaLabel:(e,t)=>e?`テキスト入力表示から${bT[t]}に切り替える`:`${bT[t]}からテキスト入力表示に切り替える`,start:"開始",end:"終了",cancelButtonLabel:"キャンセル",clearButtonLabel:"クリア",okButtonLabel:"確定",todayButtonLabel:"今日",datePickerDefaultToolbarTitle:"日付を選択",dateTimePickerDefaultToolbarTitle:"日時を選択",timePickerDefaultToolbarTitle:"時間を選択",dateRangePickerDefaultToolbarTitle:"日付の範囲を選択",clockLabelText:(e,t,r)=>{var i;return`${(i=hf[e])!=null?i:e}を選択してください ${t===null?"時間が選択されていません":`選択した時間は ${r.format(t,"fullTime")} です`}`},hoursClockNumberText:e=>`${e} ${hf.hours}`,minutesClockNumberText:e=>`${e} ${hf.minutes}`,secondsClockNumberText:e=>`${e} ${hf.seconds}`,openDatePickerDialogue:(e,t)=>e!==null&&t.isValid(e)?`日付を選択してください。選択した日付は ${t.format(e,"fullDate")} です`:"日付を選択してください",openTimePickerDialogue:(e,t)=>e!==null&&t.isValid(e)?`時間を選択してください。選択した時間は ${t.format(e,"fullTime")} です`:"時間を選択してください",timeTableLabel:"時間を選択",dateTableLabel:"日付を選択"},uH=jr(sH),cH={previousMonth:"Попередній місяць",nextMonth:"Наступний місяць",openPreviousView:"відкрити попередній вигляд",openNextView:"відкрити наступний вигляд",calendarViewSwitchingButtonAriaLabel:e=>e==="year"?"річний вигляд відкрито, перейти до календарного вигляду":"календарний вигляд відкрито, перейти до річного вигляду",inputModeToggleButtonAriaLabel:(e,t)=>e?`текстове поле відкрите, перейти до ${t} вигляду`:`${t} вигляд наразі відкрито, перейти до текстового поля`,start:"Початок",end:"Кінець",cancelButtonLabel:"Відміна",clearButtonLabel:"Очистити",okButtonLabel:"OK",todayButtonLabel:"Сьогодні",datePickerDefaultToolbarTitle:"Вибрати дату",dateTimePickerDefaultToolbarTitle:"Вибрати дату і час",timePickerDefaultToolbarTitle:"Вибрати час",dateRangePickerDefaultToolbarTitle:"Вибрати календарний період",clockLabelText:(e,t,r)=>`Select ${e}. ${t===null?"Час не вибраний":`Вибрано час ${r.format(t,"fullTime")}`}`,hoursClockNumberText:e=>`${e} годин`,minutesClockNumberText:e=>`${e} хвилин`,secondsClockNumberText:e=>`${e} секунд`,openDatePickerDialogue:(e,t)=>e!==null&&t.isValid(e)?`Оберіть дату, обрана дата ${t.format(e,"fullDate")}`:"Оберіть дату",openTimePickerDialogue:(e,t)=>e!==null&&t.isValid(e)?`Оберіть час, обраний час ${t.format(e,"fullTime")}`:"Оберіть час",timeTableLabel:"оберіть час",dateTableLabel:"оберіть дату"},fH=jr(cH),dH={previousMonth:"پچھلا مہینہ",nextMonth:"اگلا مہینہ",openPreviousView:"پچھلا ویو کھولیں",openNextView:"اگلا ویو کھولیں",calendarViewSwitchingButtonAriaLabel:e=>e==="year"?"سال والا ویو کھلا ہے۔ کیلنڈر والا ویو کھولیں":"کیلنڈر والا ویو کھلا ہے۔ سال والا ویو کھولیں",inputModeToggleButtonAriaLabel:(e,t)=>e?`،ٹیکسٹ ویو کھلا ہے ${t} ویو کھولیں`:`${t} ویو کھلا ہے، ٹیکسٹ ویو کھولیں`,start:"شروع",end:"ختم",cancelButtonLabel:"کینسل",clearButtonLabel:"کلئیر",okButtonLabel:"اوکے",todayButtonLabel:"آج",datePickerDefaultToolbarTitle:"تاریخ منتخب کریں",dateTimePickerDefaultToolbarTitle:"تاریخ اور وقت منتخب کریں",timePickerDefaultToolbarTitle:"وقت منتخب کریں",dateRangePickerDefaultToolbarTitle:"تاریخوں کی رینج منتخب کریں",clockLabelText:(e,t,r)=>`${e} منتخب کریں ${t===null?"کوئی وقت منتخب نہیں":`منتخب وقت ہے ${r.format(t,"fullTime")}`}`,hoursClockNumberText:e=>`${e} گھنٹے`,minutesClockNumberText:e=>`${e} منٹ`,secondsClockNumberText:e=>`${e} سیکنڈ`,openDatePickerDialogue:(e,t)=>e!==null&&t.isValid(e)?`تاریخ منتخب کریں، منتخب شدہ تاریخ ہے ${t.format(e,"fullDate")}`:"تاریخ منتخب کریں",openTimePickerDialogue:(e,t)=>e!==null&&t.isValid(e)?`وقت منتخب کریں، منتخب شدہ وقت ہے ${t.format(e,"fullTime")}`:"وقت منتخب کریں",timeTableLabel:"وقت منتخب کریں",dateTableLabel:"تاریخ منتخب کریں"},pH=jr(dH),xm={hours:"гадзіны",minutes:"хвіліны",seconds:"секунды",calendar:"календара",clock:"часу"},hH={previousMonth:"Папярэдні месяц",nextMonth:"Наступны месяц",openPreviousView:"адкрыць папярэдні выгляд",openNextView:"адкрыць наступны выгляд",calendarViewSwitchingButtonAriaLabel:e=>e==="year"?"гадавы выгляд адкрыты, перайсці да каляндарнага выгляду":"каляндарны выгляд адкрыты, перайсці да гадавога выгляду",inputModeToggleButtonAriaLabel:(e,t)=>e?`тэкставае поле адкрыта, перайсці да выгляду ${xm[t]}`:`Выгляд ${xm[t]} зараз адкрыты, перайсці да тэкставага поля`,start:"Пачатак",end:"Канец",cancelButtonLabel:"Адмена",clearButtonLabel:"Ачысціць",okButtonLabel:"OK",todayButtonLabel:"Сёння",datePickerDefaultToolbarTitle:"Абраць дату",dateTimePickerDefaultToolbarTitle:"Абраць дату і час",timePickerDefaultToolbarTitle:"Абраць час",dateRangePickerDefaultToolbarTitle:"Абраць каляндарны перыяд",clockLabelText:(e,t,r)=>`Абярыце ${xm[e]}. ${t===null?"Час не абраны":`Абраны час ${r.format(t,"fullTime")}`}`,hoursClockNumberText:e=>`${e} гадзін`,minutesClockNumberText:e=>`${e} хвілін`,secondsClockNumberText:e=>`${e} секунд`,openDatePickerDialogue:(e,t)=>e!==null&&t.isValid(e)?`Абраць дату, абрана дата ${t.format(e,"fullDate")}`:"Абраць дату",openTimePickerDialogue:(e,t)=>e!==null&&t.isValid(e)?`Абраць час, абрыны час ${t.format(e,"fullTime")}`:"Абраць час",timeTableLabel:"абраць час",dateTableLabel:"абраць дату"},gH=jr(hH),mH={hours:"часы",minutes:"минуты",seconds:"секунды"},xT={calendar:"календарный",clock:"часовой"},vH={previousMonth:"Предыдущий месяц",nextMonth:"Следующий месяц",openPreviousView:"открыть предыдущий вид",openNextView:"открыть следующий вид",calendarViewSwitchingButtonAriaLabel:e=>e==="year"?"открыт годовой вид, переключить на календарный вид":"открыт календарный вид, переключить на годовой вид",inputModeToggleButtonAriaLabel:(e,t)=>e?`Открыт текстовый вид, перейти на ${xT[t]} вид`:`Открыт ${xT[t]} вид, перейти на текстовый вид`,start:"Начало",end:"Конец",cancelButtonLabel:"Отмена",clearButtonLabel:"Очистить",okButtonLabel:"Ок",todayButtonLabel:"Сегодня",datePickerDefaultToolbarTitle:"Выбрать дату",dateTimePickerDefaultToolbarTitle:"Выбрать дату и время",timePickerDefaultToolbarTitle:"Выбрать время",dateRangePickerDefaultToolbarTitle:"Выбрать период",clockLabelText:(e,t,r)=>`Выбрать ${mH[e]}. ${t===null?"Время не выбрано":`Выбрано время ${r.format(t,"fullTime")}`}`,hoursClockNumberText:e=>`${e} часов`,minutesClockNumberText:e=>`${e} минут`,secondsClockNumberText:e=>`${e} секунд`,openDatePickerDialogue:(e,t)=>e!==null&&t.isValid(e)?`Выберите дату, выбрана дата ${t.format(e,"fullDate")}`:"Выберите дату",openTimePickerDialogue:(e,t)=>e!==null&&t.isValid(e)?`Выберите время, выбрано время ${t.format(e,"fullTime")}`:"Выберите время",timeTableLabel:"выбрать время",dateTableLabel:"выбрать дату"},yH=jr(vH),u1=$e.createContext(null);function bH(e){const t=Ln({props:e,name:"MuiLocalizationProvider"}),{children:r,dateAdapter:i,dateFormats:s,dateLibInstance:o,locale:a,adapterLocale:n,localeText:l}=t,c=$e.useMemo(()=>new i({locale:n??a,formats:s,instance:o}),[i,a,n,s,o]),u=$e.useMemo(()=>({minDate:c.date("1900-01-01T00:00:00.000"),maxDate:c.date("2099-12-31T00:00:00.000")}),[c]),f=$e.useMemo(()=>({utils:c,defaultDates:u,localeText:ot({},X4,l??{})}),[u,c,l]);return Ee.jsx(u1.Provider,{value:f,children:r})}const yc=()=>{const e=$e.useContext(u1);if(e===null)throw new Error("MUI: Can not find utils in context. It looks like you forgot to wrap your component in LocalizationProvider, or pass dateAdapter prop directly.");return e},Or=()=>yc().utils,bc=()=>yc().defaultDates,fi=()=>yc().localeText,xc=()=>{const e=Or();return $e.useRef(e.date()).current};function Z4(e){return Wn("MuiMonthPicker",e)}const xH=Un("MuiMonthPicker",["root"]),Ru=({date:e,disableFuture:t,disablePast:r,maxDate:i,minDate:s,isDateDisabled:o,utils:a})=>{const n=a.startOfDay(a.date());r&&a.isBefore(s,n)&&(s=n),t&&a.isAfter(i,n)&&(i=n);let l=e,c=e;for(a.isBefore(e,s)&&(l=a.date(s),c=null),a.isAfter(e,i)&&(c&&(c=a.date(i)),l=null);l||c;){if(l&&a.isAfter(l,i)&&(l=null),c&&a.isBefore(c,s)&&(c=null),l){if(!o(l))return l;l=a.addDays(l,1)}if(c){if(!o(c))return c;c=a.addDays(c,-1)}}return null},c1=(e,t)=>{const r=e.date(t);return e.isValid(r)?r:null},ei=(e,t,r)=>{if(t==null)return r;const i=e.date(t);return e.isValid(i)?i:r},wH=["className","date","disabled","disableFuture","disablePast","maxDate","minDate","onChange","shouldDisableMonth","readOnly","disableHighlightToday","autoFocus","onMonthFocus","hasFocus","onFocusedViewChange"],_H=e=>{const{classes:t}=e;return Nn({root:["root"]},Z4,t)};function TH(e,t){const r=Or(),i=bc(),s=Ln({props:e,name:t});return ot({disableFuture:!1,disablePast:!1},s,{minDate:ei(r,s.minDate,i.minDate),maxDate:ei(r,s.maxDate,i.maxDate)})}const kH=Jt("div",{name:"MuiMonthPicker",slot:"Root",overridesResolver:(e,t)=>t.root})({width:310,display:"flex",flexWrap:"wrap",alignContent:"stretch",margin:"0 4px"}),K4=$e.forwardRef(function(t,r){const i=Or(),s=xc(),o=TH(t,"MuiMonthPicker"),{className:a,date:n,disabled:l,disableFuture:c,disablePast:u,maxDate:f,minDate:d,onChange:p,shouldDisableMonth:h,readOnly:m,disableHighlightToday:y,autoFocus:v=!1,onMonthFocus:g,hasFocus:b,onFocusedViewChange:w}=o,_=wn(o,wH),x=o,k=_H(x),T=WR(),S=$e.useMemo(()=>n??i.startOfMonth(s),[s,i,n]),M=$e.useMemo(()=>n!=null?i.getMonth(n):y?null:i.getMonth(s),[s,n,i,y]),[C,A]=$e.useState(()=>M||i.getMonth(s)),D=$e.useCallback(E=>{const W=i.startOfMonth(u&&i.isAfter(s,d)?s:d),H=i.startOfMonth(c&&i.isBefore(s,f)?s:f);return i.isBefore(E,W)||i.isAfter(E,H)?!0:h?h(E):!1},[c,u,f,d,s,h,i]),O=E=>{if(m)return;const W=i.setMonth(S,E);p(W,"finish")},[R,$]=Xl({name:"MonthPicker",state:"hasFocus",controlled:b,default:v}),P=$e.useCallback(E=>{$(E),w&&w(E)},[$,w]),z=$e.useCallback(E=>{D(i.setMonth(S,E))||(A(E),P(!0),g&&g(E))},[D,i,S,P,g]);$e.useEffect(()=>{A(E=>M!==null&&E!==M?M:E)},[M]);const B=hc(E=>{switch(E.key){case"ArrowUp":z((12+C-3)%12),E.preventDefault();break;case"ArrowDown":z((12+C+3)%12),E.preventDefault();break;case"ArrowLeft":z((12+C+(T.direction==="ltr"?-1:1))%12),E.preventDefault();break;case"ArrowRight":z((12+C+(T.direction==="ltr"?1:-1))%12),E.preventDefault();break}}),N=$e.useCallback((E,W)=>{z(W)},[z]),j=$e.useCallback(()=>{P(!1)},[P]),F=i.getMonth(s);return Ee.jsx(kH,ot({ref:r,className:qr(k.root,a),ownerState:x,onKeyDown:B},_,{children:i.getMonthArray(S).map(E=>{const W=i.getMonth(E),H=i.format(E,"monthShort"),L=l||D(E);return Ee.jsx(bU,{value:W,selected:W===M,tabIndex:W===C&&!L?0:-1,hasFocus:R&&W===C,onSelect:O,onFocus:N,onBlur:j,disabled:L,"aria-current":F===W?"date":void 0,children:H},H)})}))});function f1(e,t,r){const{value:i,onError:s}=e,o=yc(),a=$e.useRef(null),n=t({adapter:o,value:i,props:e});return $e.useEffect(()=>{s&&!r(n,a.current)&&s(n,i),a.current=n},[r,s,a,n,i]),n}const d1=({props:e,value:t,adapter:r})=>{const i=r.utils.date(),s=r.utils.date(t),o=ei(r.utils,e.minDate,r.defaultDates.minDate),a=ei(r.utils,e.maxDate,r.defaultDates.maxDate);if(s===null)return null;switch(!0){case!r.utils.isValid(t):return"invalidDate";case!!(e.shouldDisableDate&&e.shouldDisableDate(s)):return"shouldDisableDate";case!!(e.disableFuture&&r.utils.isAfterDay(s,i)):return"disableFuture";case!!(e.disablePast&&r.utils.isBeforeDay(s,i)):return"disablePast";case!!(o&&r.utils.isBeforeDay(s,o)):return"minDate";case!!(a&&r.utils.isAfterDay(s,a)):return"maxDate";default:return null}},J4=({shouldDisableDate:e,minDate:t,maxDate:r,disableFuture:i,disablePast:s})=>{const o=yc();return $e.useCallback(a=>d1({adapter:o,value:a,props:{shouldDisableDate:e,minDate:t,maxDate:r,disableFuture:i,disablePast:s}})!==null,[o,e,t,r,i,s])},SH=(e,t)=>e===t,p1=e=>f1(e,d1,SH),MH=(e,t,r)=>(i,s)=>{switch(s.type){case"changeMonth":return ot({},i,{slideDirection:s.direction,currentMonth:s.newMonth,isMonthSwitchingAnimating:!e});case"finishMonthSwitchingAnimation":return ot({},i,{isMonthSwitchingAnimating:!1});case"changeFocusedDay":{if(i.focusedDay!=null&&s.focusedDay!=null&&r.isSameDay(s.focusedDay,i.focusedDay))return i;const o=s.focusedDay!=null&&!t&&!r.isSameMonth(i.currentMonth,s.focusedDay);return ot({},i,{focusedDay:s.focusedDay,isMonthSwitchingAnimating:o&&!e&&!s.withoutMonthSwitchingAnimation,currentMonth:o?r.startOfMonth(s.focusedDay):i.currentMonth,slideDirection:s.focusedDay!=null&&r.isAfterDay(s.focusedDay,i.currentMonth)?"left":"right"})}default:throw new Error("missing support")}},CH=({date:e,defaultCalendarMonth:t,disableFuture:r,disablePast:i,disableSwitchToMonthOnDayFocus:s=!1,maxDate:o,minDate:a,onMonthChange:n,reduceAnimations:l,shouldDisableDate:c})=>{var u;const f=xc(),d=Or(),p=$e.useRef(MH(!!l,s,d)).current,[h,m]=$e.useReducer(p,{isMonthSwitchingAnimating:!1,focusedDay:e||f,currentMonth:d.startOfMonth((u=e??t)!=null?u:f),slideDirection:"left"}),y=$e.useCallback(_=>{m(ot({type:"changeMonth"},_)),n&&n(_.newMonth)},[n]),v=$e.useCallback(_=>{const x=_??f;d.isSameMonth(x,h.currentMonth)||y({newMonth:d.startOfMonth(x),direction:d.isAfterDay(x,h.currentMonth)?"left":"right"})},[h.currentMonth,y,f,d]),g=J4({shouldDisableDate:c,minDate:a,maxDate:o,disableFuture:r,disablePast:i}),b=$e.useCallback(()=>{m({type:"finishMonthSwitchingAnimation"})},[]),w=$e.useCallback((_,x)=>{g(_)||m({type:"changeFocusedDay",focusedDay:_,withoutMonthSwitchingAnimation:x})},[g]);return{calendarState:h,changeMonth:v,changeFocusedDay:w,isDateDisabled:g,onMonthSwitchingAnimationEnd:b,handleChangeMonth:y}},OH=e=>Wn("MuiPickersFadeTransitionGroup",e),PH=Un("MuiPickersFadeTransitionGroup",["root"]),AH=e=>{const{classes:t}=e;return Nn({root:["root"]},OH,t)},wT=500,DH=Jt(bC,{name:"MuiPickersFadeTransitionGroup",slot:"Root",overridesResolver:(e,t)=>t.root})({display:"block",position:"relative"});function Q4(e){const t=Ln({props:e,name:"MuiPickersFadeTransitionGroup"}),{children:r,className:i,reduceAnimations:s,transKey:o}=t,a=AH(t);return s?r:Ee.jsx(DH,{className:qr(a.root,i),children:Ee.jsx(By,{appear:!1,mountOnEnter:!0,unmountOnExit:!0,timeout:{appear:wT,enter:wT/2,exit:0},children:r},o)})}const qu=36,wc=2,h1=320,EH=358;function e6(e){return Wn("MuiPickersDay",e)}const Cu=Un("MuiPickersDay",["root","dayWithMargin","dayOutsideMonth","hiddenDaySpacingFiller","today","selected","disabled"]),RH=["autoFocus","className","day","disabled","disableHighlightToday","disableMargin","hidden","isAnimating","onClick","onDaySelect","onFocus","onBlur","onKeyDown","onMouseDown","outsideCurrentMonth","selected","showDaysOutsideCurrentMonth","children","today"],LH=e=>{const{selected:t,disableMargin:r,disableHighlightToday:i,today:s,disabled:o,outsideCurrentMonth:a,showDaysOutsideCurrentMonth:n,classes:l}=e;return Nn({root:["root",t&&"selected",o&&"disabled",!r&&"dayWithMargin",!i&&s&&"today",a&&n&&"dayOutsideMonth",a&&!n&&"hiddenDaySpacingFiller"],hiddenDaySpacingFiller:["hiddenDaySpacingFiller"]},e6,l)},t6=({theme:e,ownerState:t})=>ot({},e.typography.caption,{width:qu,height:qu,borderRadius:"50%",padding:0,backgroundColor:e.palette.background.paper,color:e.palette.text.primary,"&:hover":{backgroundColor:Ii(e.palette.action.active,e.palette.action.hoverOpacity)},"&:focus":{backgroundColor:Ii(e.palette.action.active,e.palette.action.hoverOpacity),[`&.${Cu.selected}`]:{willChange:"background-color",backgroundColor:e.palette.primary.dark}},[`&.${Cu.selected}`]:{color:e.palette.primary.contrastText,backgroundColor:e.palette.primary.main,fontWeight:e.typography.fontWeightMedium,transition:e.transitions.create("background-color",{duration:e.transitions.duration.short}),"&:hover":{willChange:"background-color",backgroundColor:e.palette.primary.dark}},[`&.${Cu.disabled}`]:{color:e.palette.text.disabled}},!t.disableMargin&&{margin:`0 ${wc}px`},t.outsideCurrentMonth&&t.showDaysOutsideCurrentMonth&&{color:e.palette.text.secondary},!t.disableHighlightToday&&t.today&&{[`&:not(.${Cu.selected})`]:{border:`1px solid ${e.palette.text.secondary}`}}),n6=(e,t)=>{const{ownerState:r}=e;return[t.root,!r.disableMargin&&t.dayWithMargin,!r.disableHighlightToday&&r.today&&t.today,!r.outsideCurrentMonth&&r.showDaysOutsideCurrentMonth&&t.dayOutsideMonth,r.outsideCurrentMonth&&!r.showDaysOutsideCurrentMonth&&t.hiddenDaySpacingFiller]},IH=Jt(Ny,{name:"MuiPickersDay",slot:"Root",overridesResolver:n6})(t6),$H=Jt("div",{name:"MuiPickersDay",slot:"Root",overridesResolver:n6})(({theme:e,ownerState:t})=>ot({},t6({theme:e,ownerState:t}),{opacity:0,pointerEvents:"none"})),wm=()=>{},FH=$e.forwardRef(function(t,r){const i=Ln({props:t,name:"MuiPickersDay"}),{autoFocus:s=!1,className:o,day:a,disabled:n=!1,disableHighlightToday:l=!1,disableMargin:c=!1,isAnimating:u,onClick:f,onDaySelect:d,onFocus:p=wm,onBlur:h=wm,onKeyDown:m=wm,onMouseDown:y,outsideCurrentMonth:v,selected:g=!1,showDaysOutsideCurrentMonth:b=!1,children:w,today:_=!1}=i,x=wn(i,RH),k=ot({},i,{autoFocus:s,disabled:n,disableHighlightToday:l,disableMargin:c,selected:g,showDaysOutsideCurrentMonth:b,today:_}),T=LH(k),S=Or(),M=$e.useRef(null),C=uo(M,r);pc(()=>{s&&!n&&!u&&!v&&M.current.focus()},[s,n,u,v]);const A=O=>{y&&y(O),v&&O.preventDefault()},D=O=>{n||d(a,"finish"),v&&O.currentTarget.focus(),f&&f(O)};return v&&!b?Ee.jsx($H,{className:qr(T.root,T.hiddenDaySpacingFiller,o),ownerState:k,role:x.role}):Ee.jsx(IH,ot({className:qr(T.root,o),ownerState:k,ref:C,centerRipple:!0,disabled:n,tabIndex:g?0:-1,onKeyDown:O=>m(O,a),onFocus:O=>p(O,a),onBlur:O=>h(O,a),onClick:D,onMouseDown:A},x,{children:w||S.format(a,"dayOfMonth")}))}),jH=(e,t)=>e.autoFocus===t.autoFocus&&e.isAnimating===t.isAnimating&&e.today===t.today&&e.disabled===t.disabled&&e.selected===t.selected&&e.disableMargin===t.disableMargin&&e.showDaysOutsideCurrentMonth===t.showDaysOutsideCurrentMonth&&e.disableHighlightToday===t.disableHighlightToday&&e.className===t.className&&e.sx===t.sx&&e.outsideCurrentMonth===t.outsideCurrentMonth&&e.onFocus===t.onFocus&&e.onBlur===t.onBlur&&e.onDaySelect===t.onDaySelect,r6=$e.memo(FH,jH),NH=e=>Wn("PrivatePickersSlideTransition",e),ga=Un("PrivatePickersSlideTransition",["root","slideEnter-left","slideEnter-right","slideEnterActive","slideExit","slideExitActiveLeft-left","slideExitActiveLeft-right"]),BH=["children","className","reduceAnimations","slideDirection","transKey"],zH=e=>{const{classes:t}=e;return Nn({root:["root"]},NH,t)},a6=350,qH=Jt(bC,{name:"PrivatePickersSlideTransition",slot:"Root",overridesResolver:(e,t)=>[t.root,{[`.${ga["slideEnter-left"]}`]:t["slideEnter-left"]},{[`.${ga["slideEnter-right"]}`]:t["slideEnter-right"]},{[`.${ga.slideEnterActive}`]:t.slideEnterActive},{[`.${ga.slideExit}`]:t.slideExit},{[`.${ga["slideExitActiveLeft-left"]}`]:t["slideExitActiveLeft-left"]},{[`.${ga["slideExitActiveLeft-right"]}`]:t["slideExitActiveLeft-right"]}]})(({theme:e})=>{const t=e.transitions.create("transform",{duration:a6,easing:"cubic-bezier(0.35, 0.8, 0.4, 1)"});return{display:"block",position:"relative",overflowX:"hidden","& > *":{position:"absolute",top:0,right:0,left:0},[`& .${ga["slideEnter-left"]}`]:{willChange:"transform",transform:"translate(100%)",zIndex:1},[`& .${ga["slideEnter-right"]}`]:{willChange:"transform",transform:"translate(-100%)",zIndex:1},[`& .${ga.slideEnterActive}`]:{transform:"translate(0%)",transition:t},[`& .${ga.slideExit}`]:{transform:"translate(0%)"},[`& .${ga["slideExitActiveLeft-left"]}`]:{willChange:"transform",transform:"translate(-100%)",transition:t,zIndex:0},[`& .${ga["slideExitActiveLeft-right"]}`]:{willChange:"transform",transform:"translate(100%)",transition:t,zIndex:0}}}),WH=e=>{const{children:t,className:r,reduceAnimations:i,slideDirection:s,transKey:o}=e,a=wn(e,BH),n=zH(e);if(i)return Ee.jsx("div",{className:qr(n.root,r),children:t});const l={exit:ga.slideExit,enterActive:ga.slideEnterActive,enter:ga[`slideEnter-${s}`],exitActive:ga[`slideExitActiveLeft-${s}`]};return Ee.jsx(qH,{className:qr(n.root,r),childFactory:c=>$e.cloneElement(c,{classNames:l}),role:"presentation",children:Ee.jsx(UI,ot({mountOnEnter:!0,unmountOnExit:!0,timeout:a6,classNames:l},a,{children:t}),o)})},UH=e=>Wn("MuiDayPicker",e),HH=Un("MuiDayPicker",["header","weekDayLabel","loadingContainer","slideTransition","monthContainer","weekContainer"]),VH=e=>{const{classes:t}=e;return Nn({header:["header"],weekDayLabel:["weekDayLabel"],loadingContainer:["loadingContainer"],slideTransition:["slideTransition"],monthContainer:["monthContainer"],weekContainer:["weekContainer"]},UH,t)},GH=e=>e.charAt(0).toUpperCase(),i6=(qu+wc*2)*6,YH=Jt("div",{name:"MuiDayPicker",slot:"Header",overridesResolver:(e,t)=>t.header})({display:"flex",justifyContent:"center",alignItems:"center"}),XH=Jt(lr,{name:"MuiDayPicker",slot:"WeekDayLabel",overridesResolver:(e,t)=>t.weekDayLabel})(({theme:e})=>({width:36,height:40,margin:"0 2px",textAlign:"center",display:"flex",justifyContent:"center",alignItems:"center",color:e.palette.text.secondary})),ZH=Jt("div",{name:"MuiDayPicker",slot:"LoadingContainer",overridesResolver:(e,t)=>t.loadingContainer})({display:"flex",justifyContent:"center",alignItems:"center",minHeight:i6}),KH=Jt(WH,{name:"MuiDayPicker",slot:"SlideTransition",overridesResolver:(e,t)=>t.slideTransition})({minHeight:i6}),JH=Jt("div",{name:"MuiDayPicker",slot:"MonthContainer",overridesResolver:(e,t)=>t.monthContainer})({overflow:"hidden"}),QH=Jt("div",{name:"MuiDayPicker",slot:"WeekContainer",overridesResolver:(e,t)=>t.weekContainer})({margin:`${wc}px 0`,display:"flex",justifyContent:"center"});function eV(e){const t=xc(),r=Or(),i=Ln({props:e,name:"MuiDayPicker"}),s=VH(i),{onFocusedDayChange:o,className:a,currentMonth:n,selectedDays:l,disabled:c,disableHighlightToday:u,focusedDay:f,isMonthSwitchingAnimating:d,loading:p,onSelectedDaysChange:h,onMonthSwitchingAnimationEnd:m,readOnly:y,reduceAnimations:v,renderDay:g,renderLoading:b=()=>Ee.jsx("span",{children:"..."}),showDaysOutsideCurrentMonth:w,slideDirection:_,TransitionProps:x,disablePast:k,disableFuture:T,minDate:S,maxDate:M,shouldDisableDate:C,dayOfWeekFormatter:A=GH,hasFocus:D,onFocusedViewChange:O,gridLabelId:R}=i,$=J4({shouldDisableDate:C,minDate:S,maxDate:M,disablePast:k,disableFuture:T}),[P,z]=$e.useState(()=>f||t),B=$e.useCallback(K=>{O&&O(K)},[O]),N=$e.useCallback((K,Q="finish")=>{y||h(K,Q)},[h,y]),j=$e.useCallback(K=>{$(K)||(o(K),z(K),B(!0))},[$,o,B]),F=ji();function E(K,Q){switch(K.key){case"ArrowUp":j(r.addDays(Q,-7)),K.preventDefault();break;case"ArrowDown":j(r.addDays(Q,7)),K.preventDefault();break;case"ArrowLeft":{const G=r.addDays(Q,F.direction==="ltr"?-1:1),X=F.direction==="ltr"?r.getPreviousMonth(Q):r.getNextMonth(Q),Y=Ru({utils:r,date:G,minDate:F.direction==="ltr"?r.startOfMonth(X):G,maxDate:F.direction==="ltr"?G:r.endOfMonth(X),isDateDisabled:$});j(Y||G),K.preventDefault();break}case"ArrowRight":{const G=r.addDays(Q,F.direction==="ltr"?1:-1),X=F.direction==="ltr"?r.getNextMonth(Q):r.getPreviousMonth(Q),Y=Ru({utils:r,date:G,minDate:F.direction==="ltr"?G:r.startOfMonth(X),maxDate:F.direction==="ltr"?r.endOfMonth(X):G,isDateDisabled:$});j(Y||G),K.preventDefault();break}case"Home":j(r.startOfWeek(Q)),K.preventDefault();break;case"End":j(r.endOfWeek(Q)),K.preventDefault();break;case"PageUp":j(r.getNextMonth(Q)),K.preventDefault();break;case"PageDown":j(r.getPreviousMonth(Q)),K.preventDefault();break}}function W(K,Q){j(Q)}function H(K,Q){D&&r.isSameDay(P,Q)&&B(!1)}const L=r.getMonth(n),q=l.filter(K=>!!K).map(K=>r.startOfDay(K)),U=L,J=$e.useMemo(()=>$e.createRef(),[U]),te=r.startOfWeek(t),ee=$e.useMemo(()=>{const K=r.startOfMonth(n),Q=r.endOfMonth(n);return $(P)||r.isAfterDay(P,Q)||r.isBeforeDay(P,K)?Ru({utils:r,date:P,minDate:K,maxDate:Q,disablePast:k,disableFuture:T,isDateDisabled:$}):P},[n,T,k,P,$,r]);return Ee.jsxs("div",{role:"grid","aria-labelledby":R,children:[Ee.jsx(YH,{role:"row",className:s.header,children:r.getWeekdays().map((K,Q)=>{var G;return Ee.jsx(XH,{variant:"caption",role:"columnheader","aria-label":r.format(r.addDays(te,Q),"weekday"),className:s.weekDayLabel,children:(G=A==null?void 0:A(K))!=null?G:K},K+Q.toString())})}),p?Ee.jsx(ZH,{className:s.loadingContainer,children:b()}):Ee.jsx(KH,ot({transKey:U,onExited:m,reduceAnimations:v,slideDirection:_,className:qr(a,s.slideTransition)},x,{nodeRef:J,children:Ee.jsx(JH,{ref:J,role:"rowgroup",className:s.monthContainer,children:r.getWeekArray(n).map(K=>Ee.jsx(QH,{role:"row",className:s.weekContainer,children:K.map(Q=>{const G=ee!==null&&r.isSameDay(Q,ee),X=q.some(ie=>r.isSameDay(ie,Q)),Y=r.isSameDay(Q,t),re={key:Q==null?void 0:Q.toString(),day:Q,isAnimating:d,disabled:c||$(Q),autoFocus:D&&G,today:Y,outsideCurrentMonth:r.getMonth(Q)!==L,selected:X,disableHighlightToday:u,showDaysOutsideCurrentMonth:w,onKeyDown:E,onFocus:W,onBlur:H,onDaySelect:N,tabIndex:G?0:-1,role:"gridcell","aria-selected":X};return Y&&(re["aria-current"]="date"),g?g(Q,q,re):$e.createElement(r6,ot({},re,{key:re.key}))})},`week-${K[0]}`))})}))]})}function g1({onChange:e,onViewChange:t,openTo:r,view:i,views:s}){var o,a;const[n,l]=Xl({name:"Picker",state:"view",controlled:i,default:r&&Co(s,r)?r:s[0]}),c=(o=s[s.indexOf(n)-1])!=null?o:null,u=(a=s[s.indexOf(n)+1])!=null?a:null,f=$e.useCallback(h=>{l(h),t&&t(h)},[l,t]),d=$e.useCallback(()=>{u&&f(u)},[u,f]);return{handleChangeAndOpenNext:$e.useCallback((h,m)=>{const y=m==="finish";e(h,y&&u?"partial":m),y&&d()},[u,e,d]),nextView:u,previousView:c,openNext:d,openView:n,setOpenView:f}}const tV=sa(Ee.jsx("path",{d:"M7 10l5 5 5-5z"}),"ArrowDropDown"),nV=sa(Ee.jsx("path",{d:"M15.41 16.59L10.83 12l4.58-4.59L14 6l-6 6 6 6 1.41-1.41z"}),"ArrowLeft"),rV=sa(Ee.jsx("path",{d:"M8.59 16.59L13.17 12 8.59 7.41 10 6l6 6-6 6-1.41-1.41z"}),"ArrowRight"),o6=sa(Ee.jsx("path",{d:"M17 12h-5v5h5v-5zM16 1v2H8V1H6v2H5c-1.11 0-1.99.9-1.99 2L3 19c0 1.1.89 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2h-1V1h-2zm3 18H5V8h14v11z"}),"Calendar"),l6=sa(Ee.jsxs($e.Fragment,{children:[Ee.jsx("path",{d:"M11.99 2C6.47 2 2 6.48 2 12s4.47 10 9.99 10C17.52 22 22 17.52 22 12S17.52 2 11.99 2zM12 20c-4.42 0-8-3.58-8-8s3.58-8 8-8 8 3.58 8 8-3.58 8-8 8z"}),Ee.jsx("path",{d:"M12.5 7H11v6l5.25 3.15.75-1.23-4.5-2.67z"})]}),"Clock"),aV=sa(Ee.jsx("path",{d:"M9 11H7v2h2v-2zm4 0h-2v2h2v-2zm4 0h-2v2h2v-2zm2-7h-1V2h-2v2H8V2H6v2H5c-1.11 0-1.99.9-1.99 2L3 20c0 1.1.89 2 2 2h14c1.1 0 2-.9 2-2V6c0-1.1-.9-2-2-2zm0 16H5V9h14v11z"}),"DateRange"),iV=sa(Ee.jsx("path",{d:"M3 17.25V21h3.75L17.81 9.94l-3.75-3.75L3 17.25zM20.71 7.04c.39-.39.39-1.02 0-1.41l-2.34-2.34a.9959.9959 0 00-1.41 0l-1.83 1.83 3.75 3.75 1.83-1.83z"}),"Pen"),oV=sa(Ee.jsxs($e.Fragment,{children:[Ee.jsx("path",{d:"M11.99 2C6.47 2 2 6.48 2 12s4.47 10 9.99 10C17.52 22 22 17.52 22 12S17.52 2 11.99 2zM12 20c-4.42 0-8-3.58-8-8s3.58-8 8-8 8 3.58 8 8-3.58 8-8 8z"}),Ee.jsx("path",{d:"M12.5 7H11v6l5.25 3.15.75-1.23-4.5-2.67z"})]}),"Time");function lV(e){return Wn("MuiPickersArrowSwitcher",e)}Un("MuiPickersArrowSwitcher",["root","spacer","button"]);const sV=["children","className","components","componentsProps","isLeftDisabled","isLeftHidden","isRightDisabled","isRightHidden","leftArrowButtonText","onLeftClick","onRightClick","rightArrowButtonText"],uV=e=>{const{classes:t}=e;return Nn({root:["root"],spacer:["spacer"],button:["button"]},lV,t)},cV=Jt("div",{name:"MuiPickersArrowSwitcher",slot:"Root",overridesResolver:(e,t)=>t.root})({display:"flex"}),fV=Jt("div",{name:"MuiPickersArrowSwitcher",slot:"Spacer",overridesResolver:(e,t)=>t.spacer})(({theme:e})=>({width:e.spacing(3)})),_T=Jt(Ya,{name:"MuiPickersArrowSwitcher",slot:"Button",overridesResolver:(e,t)=>t.button})(({ownerState:e})=>ot({},e.hidden&&{visibility:"hidden"})),s6=$e.forwardRef(function(t,r){const i=Ln({props:t,name:"MuiPickersArrowSwitcher"}),{children:s,className:o,components:a,componentsProps:n,isLeftDisabled:l,isLeftHidden:c,isRightDisabled:u,isRightHidden:f,leftArrowButtonText:d,onLeftClick:p,onRightClick:h,rightArrowButtonText:m}=i,y=wn(i,sV),g=ji().direction==="rtl",b=(n==null?void 0:n.leftArrowButton)||{},w=(a==null?void 0:a.LeftArrowIcon)||nV,_=(n==null?void 0:n.rightArrowButton)||{},x=(a==null?void 0:a.RightArrowIcon)||rV,k=i,T=uV(k);return Ee.jsxs(cV,ot({ref:r,className:qr(T.root,o),ownerState:k},y,{children:[Ee.jsx(_T,ot({as:a==null?void 0:a.LeftArrowButton,size:"small","aria-label":d,title:d,disabled:l,edge:"end",onClick:p},b,{className:qr(T.button,b.className),ownerState:ot({},k,b,{hidden:c}),children:g?Ee.jsx(x,{}):Ee.jsx(w,{})})),s?Ee.jsx(lr,{variant:"subtitle1",component:"span",children:s}):Ee.jsx(fV,{className:T.spacer,ownerState:k}),Ee.jsx(_T,ot({as:a==null?void 0:a.RightArrowButton,size:"small","aria-label":m,title:m,edge:"start",disabled:u,onClick:h},_,{className:qr(T.button,_.className),ownerState:ot({},k,_,{hidden:f}),children:g?Ee.jsx(w,{}):Ee.jsx(x,{})}))]}))}),dV=(e,t)=>e?t.getHours(e)>=12?"pm":"am":null,lv=(e,t,r)=>r&&(e>=12?"pm":"am")!==t?t==="am"?e-12:e+12:e,pV=(e,t,r,i)=>{const s=lv(i.getHours(e),t,r);return i.setHours(e,s)},TT=(e,t)=>t.getHours(e)*3600+t.getMinutes(e)*60+t.getSeconds(e),u6=(e=!1,t)=>(r,i)=>e?t.isAfter(r,i):TT(r,t)>TT(i,t);function hV(e,{disableFuture:t,maxDate:r}){const i=Or();return $e.useMemo(()=>{const s=i.date(),o=i.startOfMonth(t&&i.isBefore(s,r)?s:r);return!i.isAfter(o,e)},[t,r,e,i])}function gV(e,{disablePast:t,minDate:r}){const i=Or();return $e.useMemo(()=>{const s=i.date(),o=i.startOfMonth(t&&i.isAfter(s,r)?s:r);return!i.isBefore(o,e)},[t,r,e,i])}function c6(e,t,r){const i=Or(),s=dV(e,i),o=$e.useCallback(a=>{const n=e==null?null:pV(e,a,!!t,i);r(n,"partial")},[t,e,r,i]);return{meridiemMode:s,handleMeridiemChange:o}}const f6=e=>()=>{},mV=e=>Wn("MuiPickersCalendarHeader",e),vV=Un("MuiPickersCalendarHeader",["root","labelContainer","label","switchViewButton","switchViewIcon"]),yV=e=>{const{classes:t}=e;return Nn({root:["root"],labelContainer:["labelContainer"],label:["label"],switchViewButton:["switchViewButton"],switchViewIcon:["switchViewIcon"]},mV,t)},bV=Jt("div",{name:"MuiPickersCalendarHeader",slot:"Root",overridesResolver:(e,t)=>t.root})({display:"flex",alignItems:"center",marginTop:16,marginBottom:8,paddingLeft:24,paddingRight:12,maxHeight:30,minHeight:30}),xV=Jt("div",{name:"MuiPickersCalendarHeader",slot:"LabelContainer",overridesResolver:(e,t)=>t.labelContainer})(({theme:e})=>ot({display:"flex",maxHeight:30,overflow:"hidden",alignItems:"center",cursor:"pointer",marginRight:"auto"},e.typography.body1,{fontWeight:e.typography.fontWeightMedium})),wV=Jt("div",{name:"MuiPickersCalendarHeader",slot:"Label",overridesResolver:(e,t)=>t.label})({marginRight:6}),_V=Jt(Ya,{name:"MuiPickersCalendarHeader",slot:"SwitchViewButton",overridesResolver:(e,t)=>t.switchViewButton})({marginRight:"auto"}),TV=Jt(tV,{name:"MuiPickersCalendarHeader",slot:"SwitchViewIcon",overridesResolver:(e,t)=>t.switchViewIcon})(({theme:e,ownerState:t})=>ot({willChange:"transform",transition:e.transitions.create("transform"),transform:"rotate(0deg)"},t.openView==="year"&&{transform:"rotate(180deg)"})),kV=f6();function SV(e){const t=Ln({props:e,name:"MuiPickersCalendarHeader"}),{components:r={},componentsProps:i={},currentMonth:s,disabled:o,disableFuture:a,disablePast:n,getViewSwitchingButtonText:l,leftArrowButtonText:c,maxDate:u,minDate:f,onMonthChange:d,onViewChange:p,openView:h,reduceAnimations:m,rightArrowButtonText:y,views:v,labelId:g}=t;kV({leftArrowButtonText:c,rightArrowButtonText:y,getViewSwitchingButtonText:l});const b=fi(),w=c??b.previousMonth,_=y??b.nextMonth,x=l??b.calendarViewSwitchingButtonAriaLabel,k=Or(),T=yV(t),S=i.switchViewButton||{},M=()=>d(k.getNextMonth(s),"left"),C=()=>d(k.getPreviousMonth(s),"right"),A=hV(s,{disableFuture:a,maxDate:u}),D=gV(s,{disablePast:n,minDate:f}),O=()=>{if(!(v.length===1||!p||o))if(v.length===2)p(v.find($=>$!==h)||v[0]);else{const $=v.indexOf(h)!==0?0:1;p(v[$])}};if(v.length===1&&v[0]==="year")return null;const R=t;return Ee.jsxs(bV,{ownerState:R,className:T.root,children:[Ee.jsxs(xV,{role:"presentation",onClick:O,ownerState:R,"aria-live":"polite",className:T.labelContainer,children:[Ee.jsx(Q4,{reduceAnimations:m,transKey:k.format(s,"monthAndYear"),children:Ee.jsx(wV,{id:g,ownerState:R,className:T.label,children:k.format(s,"monthAndYear")})}),v.length>1&&!o&&Ee.jsx(_V,ot({size:"small",as:r.SwitchViewButton,"aria-label":x(h),className:T.switchViewButton},S,{children:Ee.jsx(TV,{as:r.SwitchViewIcon,ownerState:R,className:T.switchViewIcon})}))]}),Ee.jsx(By,{in:h==="day",children:Ee.jsx(s6,{leftArrowButtonText:w,rightArrowButtonText:_,components:r,componentsProps:i,onLeftClick:C,onRightClick:M,isLeftDisabled:D,isRightDisabled:A})})]})}const Bi=$e.createContext(null);function MV(e){return Wn("PrivatePickersYear",e)}const Ao=Un("PrivatePickersYear",["root","modeDesktop","modeMobile","yearButton","selected","disabled"]),CV=["autoFocus","className","children","disabled","onClick","onKeyDown","value","tabIndex","onFocus","onBlur"],OV=e=>{const{wrapperVariant:t,disabled:r,selected:i,classes:s}=e,o={root:["root",t&&`mode${dr(t)}`],yearButton:["yearButton",r&&"disabled",i&&"selected"]};return Nn(o,MV,s)},PV=Jt("div",{name:"PrivatePickersYear",slot:"Root",overridesResolver:(e,t)=>[t.root,{[`&.${Ao.modeDesktop}`]:t.modeDesktop},{[`&.${Ao.modeMobile}`]:t.modeMobile}]})(({ownerState:e})=>ot({flexBasis:"33.3%",display:"flex",alignItems:"center",justifyContent:"center"},(e==null?void 0:e.wrapperVariant)==="desktop"&&{flexBasis:"25%"})),AV=Jt("button",{name:"PrivatePickersYear",slot:"Button",overridesResolver:(e,t)=>[t.button,{[`&.${Ao.disabled}`]:t.disabled},{[`&.${Ao.selected}`]:t.selected}]})(({theme:e})=>ot({color:"unset",backgroundColor:"transparent",border:0,outline:0},e.typography.subtitle1,{margin:"8px 0",height:36,width:72,borderRadius:18,cursor:"pointer","&:focus, &:hover":{backgroundColor:Ii(e.palette.action.active,e.palette.action.hoverOpacity)},[`&.${Ao.disabled}`]:{color:e.palette.text.secondary},[`&.${Ao.selected}`]:{color:e.palette.primary.contrastText,backgroundColor:e.palette.primary.main,"&:focus, &:hover":{backgroundColor:e.palette.primary.dark}}})),kT=()=>{},DV=$e.forwardRef(function(t,r){const{autoFocus:i,className:s,children:o,disabled:a,onClick:n,onKeyDown:l,value:c,tabIndex:u,onFocus:f=kT,onBlur:d=kT}=t,p=wn(t,CV),h=$e.useRef(null),m=uo(h,r),y=$e.useContext(Bi),v=ot({},t,{wrapperVariant:y}),g=OV(v);return $e.useEffect(()=>{i&&h.current.focus()},[i]),Ee.jsx(PV,{className:qr(g.root,s),ownerState:v,children:Ee.jsx(AV,ot({ref:m,disabled:a,type:"button",tabIndex:a?-1:u,onClick:b=>n(b,c),onKeyDown:b=>l(b,c),onFocus:b=>f(b,c),onBlur:b=>d(b,c),className:g.yearButton,ownerState:v},p,{children:o}))})});function d6(e){return Wn("MuiYearPicker",e)}const EV=Un("MuiYearPicker",["root"]),RV=e=>{const{classes:t}=e;return Nn({root:["root"]},d6,t)};function LV(e,t){const r=Or(),i=bc(),s=Ln({props:e,name:t});return ot({disablePast:!1,disableFuture:!1},s,{minDate:ei(r,s.minDate,i.minDate),maxDate:ei(r,s.maxDate,i.maxDate)})}const IV=Jt("div",{name:"MuiYearPicker",slot:"Root",overridesResolver:(e,t)=>t.root})({display:"flex",flexDirection:"row",flexWrap:"wrap",overflowY:"auto",height:"100%",padding:"0 4px",maxHeight:"304px"}),p6=$e.forwardRef(function(t,r){const i=xc(),s=ji(),o=Or(),a=LV(t,"MuiYearPicker"),{autoFocus:n,className:l,date:c,disabled:u,disableFuture:f,disablePast:d,maxDate:p,minDate:h,onChange:m,readOnly:y,shouldDisableYear:v,disableHighlightToday:g,onYearFocus:b,hasFocus:w,onFocusedViewChange:_}=a,x=a,k=RV(x),T=$e.useMemo(()=>c??o.startOfYear(i),[i,o,c]),S=$e.useMemo(()=>c!=null?o.getYear(c):g?null:o.getYear(i),[i,c,o,g]),M=$e.useContext(Bi),C=$e.useRef(null),[A,D]=$e.useState(()=>S||o.getYear(i)),[O,R]=Xl({name:"YearPicker",state:"hasFocus",controlled:w,default:n}),$=$e.useCallback(q=>{R(q),_&&_(q)},[R,_]),P=$e.useCallback(q=>!!(d&&o.isBeforeYear(q,i)||f&&o.isAfterYear(q,i)||h&&o.isBeforeYear(q,h)||p&&o.isAfterYear(q,p)||v&&v(q)),[f,d,p,h,i,v,o]),z=(q,U,J="finish")=>{if(y)return;const te=o.setYear(T,U);m(te,J)},B=$e.useCallback(q=>{P(o.setYear(T,q))||(D(q),$(!0),b==null||b(q))},[P,o,T,$,b]);$e.useEffect(()=>{D(q=>S!==null&&q!==S?S:q)},[S]);const N=M==="desktop"?4:3,j=$e.useCallback((q,U)=>{switch(q.key){case"ArrowUp":B(U-N),q.preventDefault();break;case"ArrowDown":B(U+N),q.preventDefault();break;case"ArrowLeft":B(U+(s.direction==="ltr"?-1:1)),q.preventDefault();break;case"ArrowRight":B(U+(s.direction==="ltr"?1:-1)),q.preventDefault();break}},[B,s.direction,N]),F=$e.useCallback((q,U)=>{B(U)},[B]),E=$e.useCallback((q,U)=>{A===U&&$(!1)},[A,$]),W=o.getYear(i),H=$e.useRef(null),L=uo(r,H);return $e.useEffect(()=>{if(n||H.current===null)return;const q=H.current.querySelector('[tabindex="0"]');if(!q)return;const U=q.offsetHeight,J=q.offsetTop,te=H.current.clientHeight,ee=H.current.scrollTop,K=J+U;U>te||J{const U=o.getYear(q),J=U===S;return Ee.jsx(DV,{selected:J,value:U,onClick:z,onKeyDown:j,autoFocus:O&&U===A,ref:J?C:void 0,disabled:u||P(q),tabIndex:U===A?0:-1,onFocus:F,onBlur:E,"aria-current":W===U?"date":void 0,children:o.format(q,"year")},o.format(q,"year"))})})}),m1=Jt("div")({overflowX:"hidden",width:h1,maxHeight:EH,display:"flex",flexDirection:"column",margin:"0 auto"}),$V=typeof navigator<"u"&&/(android)/i.test(navigator.userAgent),h6=e=>Wn("MuiCalendarPicker",e),FV=Un("MuiCalendarPicker",["root","viewTransitionContainer"]),jV=["autoFocus","onViewChange","date","disableFuture","disablePast","defaultCalendarMonth","onChange","onYearChange","onMonthChange","reduceAnimations","shouldDisableDate","shouldDisableMonth","shouldDisableYear","view","views","openTo","className","disabled","readOnly","minDate","maxDate","disableHighlightToday","focusedView","onFocusedViewChange","classes"],NV=e=>{const{classes:t}=e;return Nn({root:["root"],viewTransitionContainer:["viewTransitionContainer"]},h6,t)};function BV(e,t){const r=Or(),i=bc(),s=Ln({props:e,name:t});return ot({loading:!1,disablePast:!1,disableFuture:!1,openTo:"day",views:["year","day"],reduceAnimations:$V,renderLoading:()=>Ee.jsx("span",{children:"..."})},s,{minDate:ei(r,s.minDate,i.minDate),maxDate:ei(r,s.maxDate,i.maxDate)})}const zV=Jt(m1,{name:"MuiCalendarPicker",slot:"Root",overridesResolver:(e,t)=>t.root})({display:"flex",flexDirection:"column"}),qV=Jt(Q4,{name:"MuiCalendarPicker",slot:"ViewTransitionContainer",overridesResolver:(e,t)=>t.viewTransitionContainer})({}),g6=$e.forwardRef(function(t,r){const i=Or(),s=El(),o=BV(t,"MuiCalendarPicker"),{autoFocus:a,onViewChange:n,date:l,disableFuture:c,disablePast:u,defaultCalendarMonth:f,onChange:d,onYearChange:p,onMonthChange:h,reduceAnimations:m,shouldDisableDate:y,shouldDisableMonth:v,shouldDisableYear:g,view:b,views:w,openTo:_,className:x,disabled:k,readOnly:T,minDate:S,maxDate:M,disableHighlightToday:C,focusedView:A,onFocusedViewChange:D}=o,O=wn(o,jV),{openView:R,setOpenView:$,openNext:P}=g1({view:b,views:w,openTo:_,onChange:d,onViewChange:n}),{calendarState:z,changeFocusedDay:B,changeMonth:N,handleChangeMonth:j,isDateDisabled:F,onMonthSwitchingAnimationEnd:E}=CH({date:l,defaultCalendarMonth:f,reduceAnimations:m,onMonthChange:h,minDate:S,maxDate:M,shouldDisableDate:y,disablePast:u,disableFuture:c}),W=$e.useCallback((le,se)=>{const he=i.startOfMonth(le),_e=i.endOfMonth(le),Me=F(le)?Ru({utils:i,date:le,minDate:i.isBefore(S,he)?he:S,maxDate:i.isAfter(M,_e)?_e:M,disablePast:u,disableFuture:c,isDateDisabled:F}):le;Me?(d(Me,se),h==null||h(he)):(P(),N(he)),B(Me,!0)},[B,c,u,F,M,S,d,h,N,P,i]),H=$e.useCallback((le,se)=>{const he=i.startOfYear(le),_e=i.endOfYear(le),Me=F(le)?Ru({utils:i,date:le,minDate:i.isBefore(S,he)?he:S,maxDate:i.isAfter(M,_e)?_e:M,disablePast:u,disableFuture:c,isDateDisabled:F}):le;Me?(d(Me,se),p==null||p(Me)):(P(),N(he)),B(Me,!0)},[B,c,u,F,M,S,d,p,P,i,N]),L=$e.useCallback((le,se)=>d(l&&le?i.mergeDateAndTime(le,l):le,se),[i,l,d]);$e.useEffect(()=>{l&&N(l)},[l]);const q=o,U=NV(q),J={disablePast:u,disableFuture:c,maxDate:M,minDate:S},te=k&&l||S,ee=k&&l||M,K={disableHighlightToday:C,readOnly:T,disabled:k},Q=`${s}-grid-label`,[G,X]=Xl({name:"DayPicker",state:"focusedView",controlled:A,default:a?R:null}),Y=G!==null,re=hc(le=>se=>{if(D){D(le)(se);return}X(se?le:he=>he===le?null:he)}),ie=$e.useRef(R);return $e.useEffect(()=>{ie.current!==R&&(ie.current=R,re(R)(!0))},[R,re]),Ee.jsxs(zV,{ref:r,className:qr(U.root,x),ownerState:q,children:[Ee.jsx(SV,ot({},O,{views:w,openView:R,currentMonth:z.currentMonth,onViewChange:$,onMonthChange:(le,se)=>j({newMonth:le,direction:se}),minDate:te,maxDate:ee,disabled:k,disablePast:u,disableFuture:c,reduceAnimations:m,labelId:Q})),Ee.jsx(qV,{reduceAnimations:m,className:U.viewTransitionContainer,transKey:R,ownerState:q,children:Ee.jsxs("div",{children:[R==="year"&&Ee.jsx(p6,ot({},O,J,K,{autoFocus:a,date:l,onChange:H,shouldDisableYear:g,hasFocus:Y,onFocusedViewChange:re("year")})),R==="month"&&Ee.jsx(K4,ot({},J,K,{autoFocus:a,hasFocus:Y,className:x,date:l,onChange:W,shouldDisableMonth:v,onFocusedViewChange:re("month")})),R==="day"&&Ee.jsx(eV,ot({},O,z,J,K,{autoFocus:a,onMonthSwitchingAnimationEnd:E,onFocusedDayChange:B,reduceAnimations:m,selectedDays:[l],onSelectedDaysChange:L,shouldDisableDate:y,hasFocus:Y,onFocusedViewChange:re("day"),gridLabelId:Q}))]})})]})}),m6=e=>Wn("MuiCalendarPickerSkeleton",e),WV=Un("MuiCalendarPickerSkeleton",["root","week","daySkeleton"]),UV=["className"],HV=e=>{const{classes:t}=e;return Nn({root:["root"],week:["week"],daySkeleton:["daySkeleton"]},m6,t)},VV=Jt("div",{name:"MuiCalendarPickerSkeleton",slot:"Root",overridesResolver:(e,t)=>t.root})({alignSelf:"start"}),GV=Jt("div",{name:"MuiCalendarPickerSkeleton",slot:"Week",overridesResolver:(e,t)=>t.week})({margin:`${wc}px 0`,display:"flex",justifyContent:"center"}),v6=Jt(Fj,{name:"MuiCalendarPickerSkeleton",slot:"DaySkeleton",overridesResolver:(e,t)=>t.daySkeleton})(({ownerState:e})=>ot({margin:`0 ${wc}px`},e.day===0&&{visibility:"hidden"}));v6.propTypes={ownerState:oe.shape({day:oe.number.isRequired}).isRequired};const YV=[[0,1,1,1,1,1,1],[1,1,1,1,1,1,1],[1,1,1,1,1,1,1],[1,1,1,1,1,1,1],[1,1,1,1,0,0,0]];function XV(e){const t=Ln({props:e,name:"MuiCalendarPickerSkeleton"}),{className:r}=t,i=wn(t,UV),s=HV(i);return Ee.jsx(VV,ot({className:qr(s.root,r)},i,{children:YV.map((o,a)=>Ee.jsx(GV,{className:s.week,children:o.map((n,l)=>Ee.jsx(v6,{variant:"circular",width:qu,height:qu,className:s.daySkeleton,ownerState:{day:n}},l))},a))}))}const $l=220,ao=36,Wu={x:$l/2,y:$l/2},y6={x:Wu.x,y:0},ZV=y6.x-Wu.x,KV=y6.y-Wu.y,JV=e=>e*(180/Math.PI),b6=(e,t,r)=>{const i=t-Wu.x,s=r-Wu.y,o=Math.atan2(ZV,KV)-Math.atan2(i,s);let a=JV(o);a=Math.round(a/e)*e,a%=360;const n=Math.floor(a/e)||0,l=i**2+s**2,c=Math.sqrt(l);return{value:n,distance:c}},QV=(e,t,r=1)=>{const i=r*6;let{value:s}=b6(i,e,t);return s=s*r%60,s},eG=(e,t,r)=>{const{value:i,distance:s}=b6(30,e,t);let o=i||12;return r?o%=12:s<$l/2-ao&&(o+=12,o%=24),o};function tG(e){return Wn("MuiClockPointer",e)}const nG=Un("MuiClockPointer",["root","thumb"]),rG=["className","hasSelected","isInner","type","value"],aG=e=>{const{classes:t}=e;return Nn({root:["root"],thumb:["thumb"]},tG,t)},iG=Jt("div",{name:"MuiClockPointer",slot:"Root",overridesResolver:(e,t)=>t.root})(({theme:e,ownerState:t})=>ot({width:2,backgroundColor:e.palette.primary.main,position:"absolute",left:"calc(50% - 1px)",bottom:"50%",transformOrigin:"center bottom 0px"},t.shouldAnimate&&{transition:e.transitions.create(["transform","height"])})),oG=Jt("div",{name:"MuiClockPointer",slot:"Thumb",overridesResolver:(e,t)=>t.thumb})(({theme:e,ownerState:t})=>ot({width:4,height:4,backgroundColor:e.palette.primary.contrastText,borderRadius:"50%",position:"absolute",top:-21,left:`calc(50% - ${ao/2}px)`,border:`${(ao-4)/2}px solid ${e.palette.primary.main}`,boxSizing:"content-box"},t.hasSelected&&{backgroundColor:e.palette.primary.main}));function lG(e){const t=Ln({props:e,name:"MuiClockPointer"}),{className:r,isInner:i,type:s,value:o}=t,a=wn(t,rG),n=$e.useRef(s);$e.useEffect(()=>{n.current=s},[s]);const l=ot({},t,{shouldAnimate:n.current!==s}),c=aG(l),u=()=>{let d=360/(s==="hours"?12:60)*o;return s==="hours"&&o>12&&(d-=360),{height:Math.round((i?.26:.4)*$l),transform:`rotateZ(${d}deg)`}};return Ee.jsx(iG,ot({style:u(),className:qr(r,c.root),ownerState:l},a,{children:Ee.jsx(oG,{ownerState:l,className:c.thumb})}))}function sG(e){return Wn("MuiClock",e)}const uG=Un("MuiClock",["root","clock","wrapper","squareMask","pin","amButton","pmButton"]),cG=e=>{const{classes:t}=e;return Nn({root:["root"],clock:["clock"],wrapper:["wrapper"],squareMask:["squareMask"],pin:["pin"],amButton:["amButton"],pmButton:["pmButton"]},sG,t)},fG=Jt("div",{name:"MuiClock",slot:"Root",overridesResolver:(e,t)=>t.root})(({theme:e})=>({display:"flex",justifyContent:"center",alignItems:"center",margin:e.spacing(2)})),dG=Jt("div",{name:"MuiClock",slot:"Clock",overridesResolver:(e,t)=>t.clock})({backgroundColor:"rgba(0,0,0,.07)",borderRadius:"50%",height:220,width:220,flexShrink:0,position:"relative",pointerEvents:"none"}),pG=Jt("div",{name:"MuiClock",slot:"Wrapper",overridesResolver:(e,t)=>t.wrapper})({"&:focus":{outline:"none"}}),hG=Jt("div",{name:"MuiClock",slot:"SquareMask",overridesResolver:(e,t)=>t.squareMask})(({ownerState:e})=>ot({width:"100%",height:"100%",position:"absolute",pointerEvents:"auto",outline:0,touchAction:"none",userSelect:"none"},e.disabled?{}:{"@media (pointer: fine)":{cursor:"pointer",borderRadius:"50%"},"&:active":{cursor:"move"}})),gG=Jt("div",{name:"MuiClock",slot:"Pin",overridesResolver:(e,t)=>t.pin})(({theme:e})=>({width:6,height:6,borderRadius:"50%",backgroundColor:e.palette.primary.main,position:"absolute",top:"50%",left:"50%",transform:"translate(-50%, -50%)"})),mG=Jt(Ya,{name:"MuiClock",slot:"AmButton",overridesResolver:(e,t)=>t.amButton})(({theme:e,ownerState:t})=>ot({zIndex:1,position:"absolute",bottom:t.ampmInClock?64:8,left:8},t.meridiemMode==="am"&&{backgroundColor:e.palette.primary.main,color:e.palette.primary.contrastText,"&:hover":{backgroundColor:e.palette.primary.light}})),vG=Jt(Ya,{name:"MuiClock",slot:"PmButton",overridesResolver:(e,t)=>t.pmButton})(({theme:e,ownerState:t})=>ot({zIndex:1,position:"absolute",bottom:t.ampmInClock?64:8,right:8},t.meridiemMode==="pm"&&{backgroundColor:e.palette.primary.main,color:e.palette.primary.contrastText,"&:hover":{backgroundColor:e.palette.primary.light}}));function yG(e){const t=Ln({props:e,name:"MuiClock"}),{ampm:r,ampmInClock:i,autoFocus:s,children:o,date:a,getClockLabelText:n,handleMeridiemChange:l,isTimeDisabled:c,meridiemMode:u,minutesStep:f=1,onChange:d,selectedId:p,type:h,value:m,disabled:y,readOnly:v,className:g}=t,b=t,w=Or(),_=$e.useContext(Bi),x=$e.useRef(!1),k=cG(b),T=c(m,h),S=!r&&h==="hours"&&(m<1||m>12),M=(N,j)=>{y||v||c(N,h)||d(N,j)},C=(N,j)=>{let{offsetX:F,offsetY:E}=N;if(F===void 0){const H=N.target.getBoundingClientRect();F=N.changedTouches[0].clientX-H.left,E=N.changedTouches[0].clientY-H.top}const W=h==="seconds"||h==="minutes"?QV(F,E,f):eG(F,E,!!r);M(W,j)},A=N=>{x.current=!0,C(N,"shallow")},D=N=>{x.current&&(C(N,"finish"),x.current=!1)},O=N=>{N.buttons>0&&C(N.nativeEvent,"shallow")},R=N=>{x.current&&(x.current=!1),C(N.nativeEvent,"finish")},$=$e.useMemo(()=>h==="hours"?!0:m%5===0,[h,m]),P=h==="minutes"?f:1,z=$e.useRef(null);pc(()=>{s&&z.current.focus()},[s]);const B=N=>{if(!x.current)switch(N.key){case"Home":M(0,"partial"),N.preventDefault();break;case"End":M(h==="minutes"?59:23,"partial"),N.preventDefault();break;case"ArrowUp":M(m+P,"partial"),N.preventDefault();break;case"ArrowDown":M(m-P,"partial"),N.preventDefault();break}};return Ee.jsxs(fG,{className:qr(g,k.root),children:[Ee.jsxs(dG,{className:k.clock,children:[Ee.jsx(hG,{onTouchMove:A,onTouchEnd:D,onMouseUp:R,onMouseMove:O,ownerState:{disabled:y},className:k.squareMask}),!T&&Ee.jsxs($e.Fragment,{children:[Ee.jsx(gG,{className:k.pin}),a&&Ee.jsx(lG,{type:h,value:m,isInner:S,hasSelected:$})]}),Ee.jsx(pG,{"aria-activedescendant":p,"aria-label":n(h,a,w),ref:z,role:"listbox",onKeyDown:B,tabIndex:0,className:k.wrapper,children:o})]}),r&&(_==="desktop"||i)&&Ee.jsxs($e.Fragment,{children:[Ee.jsx(mG,{onClick:v?void 0:()=>l("am"),disabled:y||u===null,ownerState:b,className:k.amButton,children:Ee.jsx(lr,{variant:"caption",children:"AM"})}),Ee.jsx(vG,{disabled:y||u===null,onClick:v?void 0:()=>l("pm"),ownerState:b,className:k.pmButton,children:Ee.jsx(lr,{variant:"caption",children:"PM"})})]})]})}function bG(e){return Wn("MuiClockNumber",e)}const Ou=Un("MuiClockNumber",["root","selected","disabled"]),xG=["className","disabled","index","inner","label","selected"],wG=e=>{const{classes:t,selected:r,disabled:i}=e;return Nn({root:["root",r&&"selected",i&&"disabled"]},bG,t)},_G=Jt("span",{name:"MuiClockNumber",slot:"Root",overridesResolver:(e,t)=>[t.root,{[`&.${Ou.disabled}`]:t.disabled},{[`&.${Ou.selected}`]:t.selected}]})(({theme:e,ownerState:t})=>ot({height:ao,width:ao,position:"absolute",left:`calc((100% - ${ao}px) / 2)`,display:"inline-flex",justifyContent:"center",alignItems:"center",borderRadius:"50%",color:e.palette.text.primary,fontFamily:e.typography.fontFamily,"&:focused":{backgroundColor:e.palette.background.paper},[`&.${Ou.selected}`]:{color:e.palette.primary.contrastText},[`&.${Ou.disabled}`]:{pointerEvents:"none",color:e.palette.text.disabled}},t.inner&&ot({},e.typography.body2,{color:e.palette.text.secondary})));function x6(e){const t=Ln({props:e,name:"MuiClockNumber"}),{className:r,disabled:i,index:s,inner:o,label:a,selected:n}=t,l=wn(t,xG),c=t,u=wG(c),f=s%12/12*Math.PI*2-Math.PI/2,d=($l-ao-2)/2*(o?.65:1),p=Math.round(Math.cos(f)*d),h=Math.round(Math.sin(f)*d);return Ee.jsx(_G,ot({className:qr(r,u.root),"aria-disabled":i?!0:void 0,"aria-selected":n?!0:void 0,role:"option",style:{transform:`translate(${p}px, ${h+($l-ao)/2}px`},ownerState:c},l,{children:a}))}const TG=({ampm:e,date:t,getClockNumberText:r,isDisabled:i,selectedId:s,utils:o})=>{const a=t?o.getHours(t):null,n=[],l=e?1:0,c=e?12:23,u=f=>a===null?!1:e?f===12?a===12||a===0:a===f||a-12===f:a===f;for(let f=l;f<=c;f+=1){let d=f.toString();f===0&&(d="00");const p=!e&&(f===0||f>12);d=o.formatNumber(d);const h=u(f);n.push(Ee.jsx(x6,{id:h?s:void 0,index:f,inner:p,selected:h,disabled:i(f),label:d,"aria-label":r(d)},f))}return n},ST=({utils:e,value:t,isDisabled:r,getClockNumberText:i,selectedId:s})=>{const o=e.formatNumber;return[[5,o("05")],[10,o("10")],[15,o("15")],[20,o("20")],[25,o("25")],[30,o("30")],[35,o("35")],[40,o("40")],[45,o("45")],[50,o("50")],[55,o("55")],[0,o("00")]].map(([a,n],l)=>{const c=a===t;return Ee.jsx(x6,{label:n,id:c?s:void 0,index:l+1,inner:!1,disabled:r(a),selected:c,"aria-label":i(n)},a)})};function w6(e){return Wn("MuiClockPicker",e)}const kG=Un("MuiClockPicker",["root","arrowSwitcher"]),SG=e=>{const{classes:t}=e;return Nn({root:["root"],arrowSwitcher:["arrowSwitcher"]},w6,t)},MG=Jt(m1,{name:"MuiClockPicker",slot:"Root",overridesResolver:(e,t)=>t.root})({display:"flex",flexDirection:"column"}),CG=Jt(s6,{name:"MuiClockPicker",slot:"ArrowSwitcher",overridesResolver:(e,t)=>t.arrowSwitcher})({position:"absolute",right:12,top:15}),OG=f6(),_6=$e.forwardRef(function(t,r){const i=Ln({props:t,name:"MuiClockPicker"}),{ampm:s=!1,ampmInClock:o=!1,autoFocus:a,components:n,componentsProps:l,date:c,disableIgnoringDatePartForTimeValidation:u,getClockLabelText:f,getHoursClockNumberText:d,getMinutesClockNumberText:p,getSecondsClockNumberText:h,leftArrowButtonText:m,maxTime:y,minTime:v,minutesStep:g=1,rightArrowButtonText:b,shouldDisableTime:w,showViewSwitcher:_,onChange:x,view:k,views:T=["hours","minutes"],openTo:S,onViewChange:M,className:C,disabled:A,readOnly:D}=i;OG({leftArrowButtonText:m,rightArrowButtonText:b,getClockLabelText:f,getHoursClockNumberText:d,getMinutesClockNumberText:p,getSecondsClockNumberText:h});const O=fi(),R=m??O.openPreviousView,$=b??O.openNextView,P=f??O.clockLabelText,z=d??O.hoursClockNumberText,B=p??O.minutesClockNumberText,N=h??O.secondsClockNumberText,{openView:j,setOpenView:F,nextView:E,previousView:W,handleChangeAndOpenNext:H}=g1({view:k,views:T,openTo:S,onViewChange:M,onChange:x}),L=xc(),q=Or(),U=$e.useMemo(()=>c||q.setSeconds(q.setMinutes(q.setHours(L,0),0),0),[c,L,q]),{meridiemMode:J,handleMeridiemChange:te}=c6(U,s,H),ee=$e.useCallback((Y,re)=>{const ie=u6(u,q),le=({start:he,end:_e})=>!(v&&ie(v,_e)||y&&ie(he,y)),se=(he,_e=1)=>he%_e!==0?!1:w?!w(he,re):!0;switch(re){case"hours":{const he=lv(Y,J,s),_e=q.setHours(U,he),Me=q.setSeconds(q.setMinutes(_e,0),0),Ce=q.setSeconds(q.setMinutes(_e,59),59);return!le({start:Me,end:Ce})||!se(he)}case"minutes":{const he=q.setMinutes(U,Y),_e=q.setSeconds(he,0),Me=q.setSeconds(he,59);return!le({start:_e,end:Me})||!se(Y,g)}case"seconds":{const he=q.setSeconds(U,Y);return!le({start:he,end:he})||!se(Y)}default:throw new Error("not supported")}},[s,U,u,y,J,v,g,w,q]),K=El(),Q=$e.useMemo(()=>{switch(j){case"hours":{const Y=(re,ie)=>{const le=lv(re,J,s);H(q.setHours(U,le),ie)};return{onChange:Y,value:q.getHours(U),children:TG({date:c,utils:q,ampm:s,onChange:Y,getClockNumberText:z,isDisabled:re=>A||ee(re,"hours"),selectedId:K})}}case"minutes":{const Y=q.getMinutes(U),re=(ie,le)=>{H(q.setMinutes(U,ie),le)};return{value:Y,onChange:re,children:ST({utils:q,value:Y,onChange:re,getClockNumberText:B,isDisabled:ie=>A||ee(ie,"minutes"),selectedId:K})}}case"seconds":{const Y=q.getSeconds(U),re=(ie,le)=>{H(q.setSeconds(U,ie),le)};return{value:Y,onChange:re,children:ST({utils:q,value:Y,onChange:re,getClockNumberText:N,isDisabled:ie=>A||ee(ie,"seconds"),selectedId:K})}}default:throw new Error("You must provide the type for ClockView")}},[j,q,c,s,z,B,N,J,H,U,ee,K,A]),G=i,X=SG(G);return Ee.jsxs(MG,{ref:r,className:qr(X.root,C),ownerState:G,children:[_&&Ee.jsx(CG,{className:X.arrowSwitcher,leftArrowButtonText:R,rightArrowButtonText:$,components:n,componentsProps:l,onLeftClick:()=>F(W),onRightClick:()=>F(E),isLeftDisabled:!W,isRightDisabled:!E,ownerState:G}),Ee.jsx(yG,ot({autoFocus:a,date:c,ampmInClock:o,type:j,ampm:s,getClockLabelText:P,minutesStep:g,isTimeDisabled:ee,meridiemMode:J,handleMeridiemChange:te,selectedId:K,disabled:A,readOnly:D},Q))]})}),T6=e=>e.length===1&&e[0]==="year",k6=e=>e.length===2&&e.indexOf("month")!==-1&&e.indexOf("year")!==-1,PG=(e,t)=>T6(e)?{inputFormat:t.formats.year}:k6(e)?{disableMaskedInput:!0,inputFormat:t.formats.monthAndYear}:{inputFormat:t.formats.keyboardDate};function v1(e,t){var r;const i=Or(),s=bc(),o=Ln({props:e,name:t}),a=(r=o.views)!=null?r:["year","day"];return ot({openTo:"day",disableFuture:!1,disablePast:!1},PG(a,i),o,{views:a,minDate:ei(i,o.minDate,s.minDate),maxDate:ei(i,o.maxDate,s.maxDate)})}const y1={emptyValue:null,getTodayValue:e=>e.date(),parseInput:c1,areValuesEqual:(e,t,r)=>e.isEqual(t,r)};function S6(e){return Wn("MuiPickersToolbar",e)}const b1=Un("MuiPickersToolbar",["root","content","penIconButton","penIconButtonLandscape"]),AG=e=>{const{classes:t,isLandscape:r}=e;return Nn({root:["root"],content:["content"],penIconButton:["penIconButton",r&&"penIconButtonLandscape"]},S6,t)},DG=Jt("div",{name:"MuiPickersToolbar",slot:"Root",overridesResolver:(e,t)=>t.root})(({theme:e,ownerState:t})=>ot({display:"flex",flexDirection:"column",alignItems:"flex-start",justifyContent:"space-between",padding:e.spacing(2,3)},t.isLandscape&&{height:"auto",maxWidth:160,padding:16,justifyContent:"flex-start",flexWrap:"wrap"})),EG=Jt(rr,{name:"MuiPickersToolbar",slot:"Content",overridesResolver:(e,t)=>t.content})(({ownerState:e})=>ot({flex:1},!e.isLandscape&&{alignItems:"center"})),RG=Jt(Ya,{name:"MuiPickersToolbar",slot:"PenIconButton",overridesResolver:(e,t)=>[{[`&.${b1.penIconButtonLandscape}`]:t.penIconButtonLandscape},t.penIconButton]})({}),LG=e=>e==="clock"?Ee.jsx(l6,{color:"inherit"}):Ee.jsx(o6,{color:"inherit"}),x1=$e.forwardRef(function(t,r){const i=Ln({props:t,name:"MuiPickersToolbar"}),{children:s,className:o,getMobileKeyboardInputViewButtonText:a,isLandscape:n,isMobileKeyboardViewOpen:l,landscapeDirection:c="column",toggleMobileKeyboardView:u,toolbarTitle:f,viewType:d="calendar"}=i,p=i,h=fi(),m=AG(p);return Ee.jsxs(DG,{ref:r,className:qr(m.root,o),ownerState:p,children:[Ee.jsx(lr,{color:"text.secondary",variant:"overline",children:f}),Ee.jsxs(EG,{container:!0,justifyContent:"space-between",className:m.content,ownerState:p,direction:n?c:"row",alignItems:n?"flex-start":"flex-end",children:[s,Ee.jsx(RG,{onClick:u,className:m.penIconButton,ownerState:p,color:"inherit","aria-label":a?a(l,d):h.inputModeToggleButtonAriaLabel(l,d),children:l?LG(d):Ee.jsx(iV,{color:"inherit"})})]})]})});function IG(e){return Wn("MuiDatePickerToolbar",e)}const $G=Un("MuiDatePickerToolbar",["root","title"]),FG=["parsedValue","isLandscape","isMobileKeyboardViewOpen","onChange","toggleMobileKeyboardView","toolbarFormat","toolbarPlaceholder","toolbarTitle","views"],jG=e=>{const{classes:t}=e;return Nn({root:["root"],title:["title"]},IG,t)},NG=Jt(x1,{name:"MuiDatePickerToolbar",slot:"Root",overridesResolver:(e,t)=>t.root})({}),BG=Jt(lr,{name:"MuiDatePickerToolbar",slot:"Title",overridesResolver:(e,t)=>t.title})(({ownerState:e})=>ot({},e.isLandscape&&{margin:"auto 16px auto auto"})),w1=$e.forwardRef(function(t,r){const i=Ln({props:t,name:"MuiDatePickerToolbar"}),{parsedValue:s,isLandscape:o,isMobileKeyboardViewOpen:a,toggleMobileKeyboardView:n,toolbarFormat:l,toolbarPlaceholder:c="––",toolbarTitle:u,views:f}=i,d=wn(i,FG),p=Or(),h=fi(),m=jG(i),y=u??h.datePickerDefaultToolbarTitle,v=$e.useMemo(()=>s?l?p.formatByString(s,l):T6(f)?p.format(s,"year"):k6(f)?p.format(s,"month"):/en/.test(p.getCurrentLocaleCode())?p.format(s,"normalDateWithWeekday"):p.format(s,"normalDate"):c,[s,l,c,p,f]),g=i;return Ee.jsx(NG,ot({ref:r,toolbarTitle:y,isMobileKeyboardViewOpen:a,toggleMobileKeyboardView:n,isLandscape:o,className:m.root},d,{children:Ee.jsx(BG,{variant:"h4",align:o?"left":"center",ownerState:g,className:m.title,children:v})}))}),zG=["onAccept","onClear","onCancel","onSetToday","actions"],_1=e=>{const{onAccept:t,onClear:r,onCancel:i,onSetToday:s,actions:o}=e,a=wn(e,zG),n=$e.useContext(Bi),l=fi(),c=typeof o=="function"?o(n):o;if(c==null||c.length===0)return null;const u=c==null?void 0:c.map(f=>{switch(f){case"clear":return Ee.jsx(si,{onClick:r,children:l.clearButtonLabel},f);case"cancel":return Ee.jsx(si,{onClick:i,children:l.cancelButtonLabel},f);case"accept":return Ee.jsx(si,{onClick:t,children:l.okButtonLabel},f);case"today":return Ee.jsx(si,{onClick:s,children:l.todayButtonLabel},f);default:return null}});return Ee.jsx(OF,ot({},a,{children:u}))};function qG(e){return Wn("MuiPickersPopper",e)}Un("MuiPickersPopper",["root","paper"]);const WG=["onClick","onTouchStart"],UG=e=>{const{classes:t}=e;return Nn({root:["root"],paper:["paper"]},qG,t)},HG=Jt(qy,{name:"MuiPickersPopper",slot:"Root",overridesResolver:(e,t)=>t.root})(({theme:e})=>({zIndex:e.zIndex.modal})),VG=Jt(Qa,{name:"MuiPickersPopper",slot:"Paper",overridesResolver:(e,t)=>t.paper})(({ownerState:e})=>ot({transformOrigin:"top center",outline:0},e.placement==="top"&&{transformOrigin:"bottom center"}));function GG(e,t){return t.documentElement.clientWidth{if(!e)return;function l(){o.current=!0}return document.addEventListener("mousedown",l,!0),document.addEventListener("touchstart",l,!0),()=>{document.removeEventListener("mousedown",l,!0),document.removeEventListener("touchstart",l,!0),o.current=!1}},[e]);const a=hc(l=>{if(!o.current)return;const c=i.current;i.current=!1;const u=Cg(s.current);if(!s.current||"clientX"in l&&GG(l,u))return;if(r.current){r.current=!1;return}let f;l.composedPath?f=l.composedPath().indexOf(s.current)>-1:f=!u.documentElement.contains(l.target)||s.current.contains(l.target),!f&&!c&&t(l)}),n=()=>{i.current=!0};return $e.useEffect(()=>{if(e){const l=Cg(s.current),c=()=>{r.current=!0};return l.addEventListener("touchstart",a),l.addEventListener("touchmove",c),()=>{l.removeEventListener("touchstart",a),l.removeEventListener("touchmove",c)}}},[e,a]),$e.useEffect(()=>{if(e){const l=Cg(s.current);return l.addEventListener("click",a),()=>{l.removeEventListener("click",a),i.current=!1}}},[e,a]),[s,n,n]}function XG(e){var t;const r=Ln({props:e,name:"MuiPickersPopper"}),{anchorEl:i,children:s,containerRef:o=null,onBlur:a,onClose:n,onClear:l,onAccept:c,onCancel:u,onSetToday:f,open:d,PopperProps:p,role:h,TransitionComponent:m=X0,TrapFocusProps:y,PaperProps:v={},components:g,componentsProps:b}=r;$e.useEffect(()=>{function B(N){d&&(N.key==="Escape"||N.key==="Esc")&&n()}return document.addEventListener("keydown",B),()=>{document.removeEventListener("keydown",B)}},[n,d]);const w=$e.useRef(null);$e.useEffect(()=>{h!=="tooltip"&&(d?w.current=G4(document):w.current&&w.current instanceof HTMLElement&&setTimeout(()=>{w.current instanceof HTMLElement&&w.current.focus()}))},[d,h]);const[_,x,k]=YG(d,a??n),T=$e.useRef(null),S=uo(T,o),M=uo(S,_),C=r,A=UG(C),{onClick:D,onTouchStart:O}=v,R=wn(v,WG),$=B=>{B.key==="Escape"&&(B.stopPropagation(),n())},P=(t=g==null?void 0:g.ActionBar)!=null?t:_1,z=(g==null?void 0:g.PaperContent)||$e.Fragment;return Ee.jsx(HG,ot({transition:!0,role:h,open:d,anchorEl:i,onKeyDown:$,className:A.root},p,{children:({TransitionProps:B,placement:N})=>Ee.jsx(hL,ot({open:d,disableAutoFocus:!0,disableRestoreFocus:!0,disableEnforceFocus:h==="tooltip",isEnabled:()=>!0},y,{children:Ee.jsx(m,ot({},B,{children:Ee.jsx(VG,ot({tabIndex:-1,elevation:8,ref:M,onClick:j=>{x(j),D&&D(j)},onTouchStart:j=>{k(j),O&&O(j)},ownerState:ot({},C,{placement:N}),className:A.paper},R,{children:Ee.jsxs(z,ot({},b==null?void 0:b.paperContent,{children:[s,Ee.jsx(P,ot({onAccept:c,onClear:l,onCancel:u,onSetToday:f,actions:[]},b==null?void 0:b.actionBar))]}))}))}))}))}))}function T1(e){const{children:t,DateInputProps:r,KeyboardDateInputComponent:i,onClear:s,onDismiss:o,onCancel:a,onAccept:n,onSetToday:l,open:c,PopperProps:u,PaperProps:f,TransitionComponent:d,components:p,componentsProps:h}=e,m=$e.useRef(null),y=uo(r.inputRef,m);return Ee.jsxs(Bi.Provider,{value:"desktop",children:[Ee.jsx(i,ot({},r,{inputRef:y})),Ee.jsx(XG,{role:"dialog",open:c,anchorEl:m.current,TransitionComponent:d,PopperProps:u,PaperProps:f,onClose:o,onCancel:a,onClear:s,onAccept:n,onSetToday:l,components:p,componentsProps:h,children:t})]})}const ZG=e=>{const[,t]=$e.useReducer(l=>l+1,0),r=$e.useRef(null),{replace:i,append:s}=e,o=i?i(e.format(e.value)):e.format(e.value),a=$e.useRef(!1),n=l=>{const c=l.target.value;r.current=[c,l.target,c.length>o.length,a.current,o===e.format(c)],t()};return $e.useLayoutEffect(()=>{if(r.current==null)return;let[l,c,u,f,d]=r.current;r.current=null;const p=f&&d,m=l.slice(c.selectionStart).search(e.accept||/\d/g),y=m!==-1?m:0,v=x=>(x.match(e.accept||/\d/g)||[]).join(""),g=v(l.substr(0,c.selectionStart)),b=x=>{let k=0,T=0;for(let S=0;S!==g.length;++S){let M=x.indexOf(g[S],k)+1,C=v(x).indexOf(g[S],T)+1;C-T>1&&(M=k,C=T),T=Math.max(C,T),k=Math.max(k,M)}return k};if(e.mask===!0&&u&&!d){let x=b(l);const k=v(l.substr(x))[0];x=l.indexOf(k,x),l=`${l.substr(0,x)}${l.substr(x+1)}`}let w=e.format(l);s!=null&&c.selectionStart===l.length&&!d&&(u?w=s(w):v(w.slice(-1))===""&&(w=w.slice(0,-1)));const _=i?i(w):w;return o===_?t():e.onChange(_),()=>{let x=b(w);if(e.mask!=null&&(u||f&&!p))for(;w[x]&&v(w[x])==="";)x+=1;c.selectionStart=c.selectionEnd=x+(p?1+y:0)}}),$e.useEffect(()=>{const l=u=>{u.code==="Delete"&&(a.current=!0)},c=u=>{u.code==="Delete"&&(a.current=!1)};return document.addEventListener("keydown",l),document.addEventListener("keyup",c),()=>{document.removeEventListener("keydown",l),document.removeEventListener("keyup",c)}},[]),{value:r.current!=null?r.current[0]:o,onChange:n}},sv=(e,t,r)=>{const i=e.date(t);return t===null?"":e.isValid(i)?e.formatByString(i,r):""},od="_",M6="2019-11-21T22:30:00.000",C6="2019-01-01T09:00:00.000";function KG(e,t,r,i){if(e)return e;const o=i.formatByString(i.date(C6),t).replace(r,od),a=i.formatByString(i.date(M6),t).replace(r,"_");return o===a?o:""}function JG(e,t,r,i){if(!e)return!1;const o=i.formatByString(i.date(C6),t).replace(r,od),a=i.formatByString(i.date(M6),t).replace(r,"_"),n=a===o&&e===a;return!n&&i.lib,n}const QG=(e,t)=>r=>{let i=0;return r.split("").map((s,o)=>{if(t.lastIndex=0,i>e.length-1)return"";const a=e[i],n=e[i+1],l=t.test(s)?s:"",c=a===od?l:a+l;return i+=c.length,o===r.length-1&&n&&n!==od?c?c+n:"":c}).join("")},eY=({acceptRegex:e=/[\d]/gi,disabled:t,disableMaskedInput:r,ignoreInvalidInputs:i,inputFormat:s,inputProps:o,label:a,mask:n,onChange:l,rawValue:c,readOnly:u,rifmFormatter:f,TextFieldProps:d,validationError:p})=>{const h=Or(),m=h.getFormatHelperText(s),{shouldUseMaskedInput:y,maskToUse:v}=$e.useMemo(()=>{if(r)return{shouldUseMaskedInput:!1,maskToUse:""};const O=KG(n,s,e,h);return{shouldUseMaskedInput:JG(O,s,e,h),maskToUse:O}},[e,r,s,n,h]),g=$e.useMemo(()=>y&&v?QG(v,e):O=>O,[e,v,y]),b=c===null?null:h.date(c),[w,_]=$e.useState(b),[x,k]=$e.useState(sv(h,c,s)),T=$e.useRef(),S=$e.useRef(h.locale),M=$e.useRef(s);$e.useEffect(()=>{const O=c!==T.current,R=h.locale!==S.current,$=s!==M.current;if(T.current=c,S.current=h.locale,M.current=s,!O&&!R&&!$)return;const P=c===null?null:h.date(c),z=c===null||h.isValid(P);let B=w===null&&P===null;if(w!==null&&P!==null){const j=h.isEqual(w,P);if(j)B=!0;else{const F=Math.abs(h.getDiff(w,P));B=F===0?j:F<1e3}}if(!R&&!$&&(!z||B))return;const N=sv(h,c,s);_(P),k(N)},[h,c,s,w]);const C=O=>{const R=O===""||O===n?"":O;k(R);const $=R===null?null:h.parse(R,s);i&&!h.isValid($)||(_($),l($,R||void 0))},A=ZG({value:x,onChange:C,format:f||g});return ot({label:a,disabled:t,error:p,inputProps:ot({},y?A:{value:x,onChange:O=>{C(O.currentTarget.value)}},{disabled:t,placeholder:m,readOnly:u,type:y?"tel":"text"},o)},d)},tY=["className","components","disableOpenPicker","getOpenDialogAriaText","InputAdornmentProps","InputProps","inputRef","openPicker","OpenPickerButtonProps","renderInput"],lp=$e.forwardRef(function(t,r){const{className:i,components:s={},disableOpenPicker:o,getOpenDialogAriaText:a,InputAdornmentProps:n,InputProps:l,inputRef:c,openPicker:u,OpenPickerButtonProps:f,renderInput:d}=t,p=wn(t,tY),h=fi(),m=a??h.openDatePickerDialogue,y=Or(),v=eY(p),g=(n==null?void 0:n.position)||"end",b=s.OpenPickerIcon||o6;return d(ot({ref:r,inputRef:c,className:i},v,{InputProps:ot({},l,{[`${g}Adornment`]:o?void 0:Ee.jsx(GC,ot({position:g},n,{children:Ee.jsx(Ya,ot({edge:g,disabled:p.disabled||p.readOnly,"aria-label":m(p.rawValue,y)},f,{onClick:u,children:Ee.jsx(b,{})}))}))})}))});function MT(){return typeof window>"u"?"portrait":window.screen&&window.screen.orientation&&window.screen.orientation.angle?Math.abs(window.screen.orientation.angle)===90?"landscape":"portrait":window.orientation&&Math.abs(Number(window.orientation))===90?"landscape":"portrait"}const nY=(e,t)=>{const[r,i]=$e.useState(MT);return pc(()=>{const o=()=>{i(MT())};return window.addEventListener("orientationchange",o),()=>{window.removeEventListener("orientationchange",o)}},[]),Co(e,["hours","minutes","seconds"])?!1:(t||r)==="landscape"},rY=({autoFocus:e,openView:t})=>{const[r,i]=$e.useState(e?t:null),s=$e.useCallback(o=>a=>{i(a?o:n=>o===n?null:n)},[]);return{focusedView:r,setFocusedView:s}};function aY(e){return Wn("MuiCalendarOrClockPicker",e)}Un("MuiCalendarOrClockPicker",["root","mobileKeyboardInputView"]);const iY=["autoFocus","className","parsedValue","DateInputProps","isMobileKeyboardViewOpen","onDateChange","onViewChange","openTo","orientation","showToolbar","toggleMobileKeyboardView","ToolbarComponent","toolbarFormat","toolbarPlaceholder","toolbarTitle","views","dateRangeIcon","timeIcon","hideTabs","classes"],oY=e=>{const{classes:t}=e;return Nn({root:["root"],mobileKeyboardInputView:["mobileKeyboardInputView"]},aY,t)},lY=Jt("div",{name:"MuiCalendarOrClockPicker",slot:"MobileKeyboardInputView",overridesResolver:(e,t)=>t.mobileKeyboardInputView})({padding:"16px 24px"}),sY=Jt("div",{name:"MuiCalendarOrClockPicker",slot:"Root",overridesResolver:(e,t)=>t.root})(({ownerState:e})=>ot({display:"flex",flexDirection:"column"},e.isLandscape&&{flexDirection:"row"})),uY={fullWidth:!0},CT=e=>e==="year"||e==="month"||e==="day",OT=e=>e==="hours"||e==="minutes"||e==="seconds";function zi(e){var t,r;const i=Ln({props:e,name:"MuiCalendarOrClockPicker"}),{autoFocus:s,parsedValue:o,DateInputProps:a,isMobileKeyboardViewOpen:n,onDateChange:l,onViewChange:c,openTo:u,orientation:f,showToolbar:d,toggleMobileKeyboardView:p,ToolbarComponent:h=()=>null,toolbarFormat:m,toolbarPlaceholder:y,toolbarTitle:v,views:g,dateRangeIcon:b,timeIcon:w,hideTabs:_}=i,x=wn(i,iY),k=(t=x.components)==null?void 0:t.Tabs,T=nY(g,f),S=$e.useContext(Bi),M=oY(i),C=d??S!=="desktop",A=!_&&typeof window<"u"&&window.innerHeight>667,D=$e.useCallback((N,j)=>{l(N,S,j)},[l,S]),O=$e.useCallback(N=>{n&&p(),c&&c(N)},[n,c,p]),{openView:R,setOpenView:$,handleChangeAndOpenNext:P}=g1({view:void 0,views:g,openTo:u,onChange:D,onViewChange:O}),{focusedView:z,setFocusedView:B}=rY({autoFocus:s,openView:R});return Ee.jsxs(sY,{ownerState:{isLandscape:T},className:M.root,children:[C&&Ee.jsx(h,ot({},x,{views:g,isLandscape:T,parsedValue:o,onChange:D,setOpenView:$,openView:R,toolbarTitle:v,toolbarFormat:m,toolbarPlaceholder:y,isMobileKeyboardViewOpen:n,toggleMobileKeyboardView:p})),A&&!!k&&Ee.jsx(k,ot({dateRangeIcon:b,timeIcon:w,view:R,onChange:$},(r=x.componentsProps)==null?void 0:r.tabs)),Ee.jsx(m1,{children:n?Ee.jsx(lY,{className:M.mobileKeyboardInputView,children:Ee.jsx(lp,ot({},a,{ignoreInvalidInputs:!0,disableOpenPicker:!0,TextFieldProps:uY}))}):Ee.jsxs($e.Fragment,{children:[CT(R)&&Ee.jsx(g6,ot({autoFocus:s,date:o,onViewChange:$,onChange:P,view:R,views:g.filter(CT),focusedView:z,onFocusedViewChange:B},x)),OT(R)&&Ee.jsx(_6,ot({},x,{autoFocus:s,date:o,view:R,views:g.filter(OT),onChange:P,onViewChange:$,showViewSwitcher:S==="desktop"}))]})})]})}const cY=({open:e,onOpen:t,onClose:r})=>{const i=$e.useRef(typeof e=="boolean").current,[s,o]=$e.useState(!1);$e.useEffect(()=>{if(i){if(typeof e!="boolean")throw new Error("You must not mix controlling and uncontrolled mode for `open` prop");o(e)}},[i,e]);const a=$e.useCallback(n=>{i||o(n),n&&t&&t(),!n&&r&&r()},[i,t,r]);return{isOpen:s,setIsOpen:a}},qi=(e,t)=>{const{onAccept:r,onChange:i,value:s,closeOnSelect:o}=e,a=Or(),{isOpen:n,setIsOpen:l}=cY(e),c=$e.useMemo(()=>t.parseInput(a,s),[t,a,s]),[u,f]=$e.useState(c),[d,p]=$e.useState(()=>({committed:c,draft:c,resetFallback:c})),h=$e.useCallback(x=>{p(k=>{switch(x.action){case"setAll":case"acceptAndClose":return{draft:x.value,committed:x.value,resetFallback:x.value};case"setCommitted":return ot({},k,{draft:x.value,committed:x.value});case"setDraft":return ot({},k,{draft:x.value});default:return k}}),(x.forceOnChangeCall||!x.skipOnChangeCall&&!t.areValuesEqual(a,d.committed,x.value))&&i(x.value),x.action==="acceptAndClose"&&(l(!1),r&&!t.areValuesEqual(a,d.resetFallback,x.value)&&r(x.value))},[r,i,l,d,a,t]);$e.useEffect(()=>{a.isValid(c)&&f(c)},[a,c]),$e.useEffect(()=>{n&&h({action:"setAll",value:c,skipOnChangeCall:!0})},[n]),t.areValuesEqual(a,d.committed,c)||h({action:"setCommitted",value:c,skipOnChangeCall:!0});const m=$e.useMemo(()=>({open:n,onClear:()=>{h({value:t.emptyValue,action:"acceptAndClose",forceOnChangeCall:!t.areValuesEqual(a,s,t.emptyValue)})},onAccept:()=>{h({value:d.draft,action:"acceptAndClose",forceOnChangeCall:!t.areValuesEqual(a,s,c)})},onDismiss:()=>{h({value:d.committed,action:"acceptAndClose"})},onCancel:()=>{h({value:d.resetFallback,action:"acceptAndClose"})},onSetToday:()=>{h({value:t.getTodayValue(a),action:"acceptAndClose"})}}),[h,n,a,d,t,s,c]),[y,v]=$e.useState(!1),g=$e.useMemo(()=>({parsedValue:d.draft,isMobileKeyboardViewOpen:y,toggleMobileKeyboardView:()=>v(!y),onDateChange:(x,k,T="partial")=>{switch(T){case"shallow":return h({action:"setDraft",value:x,skipOnChangeCall:!0});case"partial":return h({action:"setDraft",value:x});case"finish":return h(o??k==="desktop"?{value:x,action:"acceptAndClose"}:{value:x,action:"setCommitted"});default:throw new Error("MUI: Invalid selectionState passed to `onDateChange`")}}}),[h,y,d.draft,o]),b=$e.useCallback((x,k)=>{const T=t.valueReducer?t.valueReducer(a,u,x):x;i(T,k)},[i,t,u,a]),w=$e.useMemo(()=>({onChange:b,open:n,rawValue:s,openPicker:()=>l(!0)}),[b,n,s,l]),_={pickerProps:g,inputProps:w,wrapperProps:m};return $e.useDebugValue(_,()=>({MuiPickerState:{dateState:d,other:_}})),_},fY=["onChange","PopperProps","PaperProps","ToolbarComponent","TransitionComponent","value","components","componentsProps"],O6=$e.forwardRef(function(t,r){const i=v1(t,"MuiDesktopDatePicker"),s=p1(i)!==null,{pickerProps:o,inputProps:a,wrapperProps:n}=qi(i,y1),{PopperProps:l,PaperProps:c,ToolbarComponent:u=w1,TransitionComponent:f,components:d,componentsProps:p}=i,h=wn(i,fY),m=ot({},a,h,{components:d,componentsProps:p,ref:r,validationError:s});return Ee.jsx(T1,ot({},n,{DateInputProps:m,KeyboardDateInputComponent:lp,PopperProps:l,PaperProps:c,TransitionComponent:f,components:d,componentsProps:p,children:Ee.jsx(zi,ot({},o,{autoFocus:!0,toolbarTitle:i.label||i.toolbarTitle,ToolbarComponent:u,DateInputProps:m,components:d,componentsProps:p},h))}))}),dY=Jt(_F)({[`& .${Du.container}`]:{outline:0},[`& .${Du.paper}`]:{outline:0,minWidth:h1}}),pY=Jt($F)({"&:first-of-type":{padding:0}}),hY=e=>{var t;const{children:r,DialogProps:i={},onAccept:s,onClear:o,onDismiss:a,onCancel:n,onSetToday:l,open:c,components:u,componentsProps:f}=e,d=(t=u==null?void 0:u.ActionBar)!=null?t:_1;return Ee.jsxs(dY,ot({open:c,onClose:a},i,{children:[Ee.jsx(pY,{children:r}),Ee.jsx(d,ot({onAccept:s,onClear:o,onCancel:n,onSetToday:l,actions:["cancel","accept"]},f==null?void 0:f.actionBar))]}))},gY=["children","DateInputProps","DialogProps","onAccept","onClear","onDismiss","onCancel","onSetToday","open","PureDateInputComponent","components","componentsProps"];function k1(e){const{children:t,DateInputProps:r,DialogProps:i,onAccept:s,onClear:o,onDismiss:a,onCancel:n,onSetToday:l,open:c,PureDateInputComponent:u,components:f,componentsProps:d}=e,p=wn(e,gY);return Ee.jsxs(Bi.Provider,{value:"mobile",children:[Ee.jsx(u,ot({components:f},p,r)),Ee.jsx(hY,{DialogProps:i,onAccept:s,onClear:o,onDismiss:a,onCancel:n,onSetToday:l,open:c,components:f,componentsProps:d,children:t})]})}const S1=$e.forwardRef(function(t,r){const{disabled:i,getOpenDialogAriaText:s,inputFormat:o,InputProps:a,inputRef:n,label:l,openPicker:c,rawValue:u,renderInput:f,TextFieldProps:d={},validationError:p,className:h}=t,m=fi(),y=s??m.openDatePickerDialogue,v=Or(),g=$e.useMemo(()=>ot({},a,{readOnly:!0}),[a]),b=sv(v,u,o),w=hc(_=>{_.stopPropagation(),c()});return f(ot({label:l,disabled:i,ref:r,inputRef:n,error:p,InputProps:g,className:h},!t.readOnly&&!t.disabled&&{onClick:w},{inputProps:ot({disabled:i,readOnly:!0,"aria-readonly":!0,"aria-label":y(u,v),value:b},!t.readOnly&&{onClick:w},{onKeyDown:V4(c)})},d))}),mY=["ToolbarComponent","value","onChange","components","componentsProps"],P6=$e.forwardRef(function(t,r){const i=v1(t,"MuiMobileDatePicker"),s=p1(i)!==null,{pickerProps:o,inputProps:a,wrapperProps:n}=qi(i,y1),{ToolbarComponent:l=w1,components:c,componentsProps:u}=i,f=wn(i,mY),d=ot({},a,f,{components:c,componentsProps:u,ref:r,validationError:s});return Ee.jsx(k1,ot({},f,n,{DateInputProps:d,PureDateInputComponent:S1,components:c,componentsProps:u,children:Ee.jsx(zi,ot({},o,{autoFocus:!0,toolbarTitle:i.label||i.toolbarTitle,ToolbarComponent:l,DateInputProps:d,components:c,componentsProps:u},f))}))}),vY=["desktopModeMediaQuery","DialogProps","PopperProps","TransitionComponent"],yY=$e.forwardRef(function(t,r){const i=Ln({props:t,name:"MuiDatePicker"}),{desktopModeMediaQuery:s="@media (pointer: fine)",DialogProps:o,PopperProps:a,TransitionComponent:n}=i,l=wn(i,vY);return Jy(s,{defaultMatches:!0})?Ee.jsx(O6,ot({ref:r,PopperProps:a,TransitionComponent:n},l)):Ee.jsx(P6,ot({ref:r,DialogProps:o},l))});function M1(e,t){var r,i,s,o,a;const n=Ln({props:e,name:t}),l=Or(),c=bc(),u=(r=n.ampm)!=null?r:l.is12HourCycleInCurrentLocale();if(n.orientation!=null&&n.orientation!=="portrait")throw new Error("We are not supporting custom orientation for DateTimePicker yet :(");return ot({ampm:u,orientation:"portrait",openTo:"day",views:["year","day","hours","minutes"],ampmInClock:!0,acceptRegex:u?/[\dap]/gi:/\d/gi,disableMaskedInput:!1,inputFormat:u?l.formats.keyboardDateTime12h:l.formats.keyboardDateTime24h,disableIgnoringDatePartForTimeValidation:!!(n.minDateTime||n.maxDateTime),disablePast:!1,disableFuture:!1},n,{minDate:ei(l,(i=n.minDateTime)!=null?i:n.minDate,c.minDate),maxDate:ei(l,(s=n.maxDateTime)!=null?s:n.maxDate,c.maxDate),minTime:(o=n.minDateTime)!=null?o:n.minTime,maxTime:(a=n.maxDateTime)!=null?a:n.maxTime})}const C1={emptyValue:null,getTodayValue:e=>e.date(),parseInput:c1,areValuesEqual:(e,t,r)=>e.isEqual(t,r)},bY=e=>{switch(e){case"year":case"month":case"day":return"calendar";default:return"clock"}};function xY(e){return Wn("PrivatePickersToolbarText",e)}const PT=Un("PrivatePickersToolbarText",["root","selected"]),wY=["className","selected","value"],_Y=e=>{const{classes:t,selected:r}=e;return Nn({root:["root",r&&"selected"]},xY,t)},TY=Jt(lr,{name:"PrivatePickersToolbarText",slot:"Root",overridesResolver:(e,t)=>[t.root,{[`&.${PT.selected}`]:t.selected}]})(({theme:e})=>({transition:e.transitions.create("color"),color:e.palette.text.secondary,[`&.${PT.selected}`]:{color:e.palette.text.primary}})),O1=$e.forwardRef(function(t,r){const{className:i,value:s}=t,o=wn(t,wY),a=_Y(t);return Ee.jsx(TY,ot({ref:r,className:qr(i,a.root),component:"span"},o,{children:s}))}),kY=["align","className","selected","typographyClassName","value","variant"],SY=e=>{const{classes:t}=e;return Nn({root:["root"]},S6,t)},MY=Jt(si,{name:"MuiPickersToolbarButton",slot:"Root",overridesResolver:(e,t)=>t.root})({padding:0,minWidth:16,textTransform:"none"}),xi=$e.forwardRef(function(t,r){const i=Ln({props:t,name:"MuiPickersToolbarButton"}),{align:s,className:o,selected:a,typographyClassName:n,value:l,variant:c}=i,u=wn(i,kY),f=SY(i);return Ee.jsx(MY,ot({variant:"text",ref:r,className:qr(o,f.root)},u,{children:Ee.jsx(O1,{align:s,className:n,variant:c,value:l,selected:a})}))});function CY(e){return Wn("MuiDateTimePickerToolbar",e)}const OY=Un("MuiDateTimePickerToolbar",["root","dateContainer","timeContainer","separator"]),PY=["ampm","parsedValue","isMobileKeyboardViewOpen","onChange","openView","setOpenView","toggleMobileKeyboardView","toolbarFormat","toolbarPlaceholder","toolbarTitle","views"],AY=e=>{const{classes:t}=e;return Nn({root:["root"],dateContainer:["dateContainer"],timeContainer:["timeContainer"],separator:["separator"]},CY,t)},DY=Jt(x1,{name:"MuiDateTimePickerToolbar",slot:"Root",overridesResolver:(e,t)=>t.root})(({theme:e})=>({paddingLeft:16,paddingRight:16,justifyContent:"space-around",position:"relative",[`& .${b1.penIconButton}`]:ot({position:"absolute",top:8},e.direction==="rtl"?{left:8}:{right:8})})),EY=Jt("div",{name:"MuiDateTimePickerToolbar",slot:"DateContainer",overridesResolver:(e,t)=>t.dateContainer})({display:"flex",flexDirection:"column",alignItems:"flex-start"}),RY=Jt("div",{name:"MuiDateTimePickerToolbar",slot:"TimeContainer",overridesResolver:(e,t)=>t.timeContainer})({display:"flex"}),AT=Jt(O1,{name:"MuiDateTimePickerToolbar",slot:"Separator",overridesResolver:(e,t)=>t.separator})({margin:"0 4px 0 2px",cursor:"default"});function P1(e){const t=Ln({props:e,name:"MuiDateTimePickerToolbar"}),{ampm:r,parsedValue:i,isMobileKeyboardViewOpen:s,openView:o,setOpenView:a,toggleMobileKeyboardView:n,toolbarFormat:l,toolbarPlaceholder:c="––",toolbarTitle:u,views:f}=t,d=wn(t,PY),p=t,h=Or(),m=fi(),y=AY(p),v=u??m.dateTimePickerDefaultToolbarTitle,g=w=>r?h.format(w,"hours12h"):h.format(w,"hours24h"),b=$e.useMemo(()=>i?l?h.formatByString(i,l):h.format(i,"shortDate"):c,[i,l,c,h]);return Ee.jsxs(DY,ot({toolbarTitle:v,isMobileKeyboardViewOpen:s,toggleMobileKeyboardView:n,className:y.root,viewType:bY(o)},d,{isLandscape:!1,ownerState:p,children:[Ee.jsxs(EY,{className:y.dateContainer,ownerState:p,children:[f.includes("year")&&Ee.jsx(xi,{tabIndex:-1,variant:"subtitle1",onClick:()=>a("year"),selected:o==="year",value:i?h.format(i,"year"):"–"}),f.includes("day")&&Ee.jsx(xi,{tabIndex:-1,variant:"h4",onClick:()=>a("day"),selected:o==="day",value:b})]}),Ee.jsxs(RY,{className:y.timeContainer,ownerState:p,children:[f.includes("hours")&&Ee.jsx(xi,{variant:"h3",onClick:()=>a("hours"),selected:o==="hours",value:i?g(i):"--"}),f.includes("minutes")&&Ee.jsxs($e.Fragment,{children:[Ee.jsx(AT,{variant:"h3",value:":",className:y.separator,ownerState:p}),Ee.jsx(xi,{variant:"h3",onClick:()=>a("minutes"),selected:o==="minutes",value:i?h.format(i,"minutes"):"--"})]}),f.includes("seconds")&&Ee.jsxs($e.Fragment,{children:[Ee.jsx(AT,{variant:"h3",value:":",className:y.separator,ownerState:p}),Ee.jsx(xi,{variant:"h3",onClick:()=>a("seconds"),selected:o==="seconds",value:i?h.format(i,"seconds"):"--"})]})]})]}))}const A6=({adapter:e,value:t,props:r})=>{const{minTime:i,maxTime:s,minutesStep:o,shouldDisableTime:a,disableIgnoringDatePartForTimeValidation:n}=r,l=e.utils.date(t),c=u6(n,e.utils);if(t===null)return null;switch(!0){case!e.utils.isValid(t):return"invalidDate";case!!(i&&c(i,l)):return"minTime";case!!(s&&c(l,s)):return"maxTime";case!!(a&&a(e.utils.getHours(l),"hours")):return"shouldDisableTime-hours";case!!(a&&a(e.utils.getMinutes(l),"minutes")):return"shouldDisableTime-minutes";case!!(a&&a(e.utils.getSeconds(l),"seconds")):return"shouldDisableTime-seconds";case!!(o&&e.utils.getMinutes(l)%o!==0):return"minutesStep";default:return null}},LY=(e,t)=>e===t,A1=e=>f1(e,A6,LY),IY=["minDate","maxDate","disableFuture","shouldDisableDate","disablePast"],$Y=({props:e,value:t,adapter:r})=>{const{minDate:i,maxDate:s,disableFuture:o,shouldDisableDate:a,disablePast:n}=e,l=wn(e,IY),c=d1({adapter:r,value:t,props:{minDate:i,maxDate:s,disableFuture:o,shouldDisableDate:a,disablePast:n}});return c!==null?c:A6({adapter:r,value:t,props:l})},FY=(e,t)=>e===t;function D1(e){return f1(e,$Y,FY)}function jY(e){return Wn("MuiDateTimePickerTabs",e)}const NY=Un("MuiDateTimePickerTabs",["root"]),BY=e=>["day","month","year"].includes(e)?"date":"time",zY=e=>e==="date"?"day":"hours",qY=e=>{const{classes:t}=e;return Nn({root:["root"]},jY,t)},WY=Jt(CC,{name:"MuiDateTimePickerTabs",slot:"Root",overridesResolver:(e,t)=>t.root})(({ownerState:e,theme:t})=>ot({boxShadow:`0 -1px 0 0 inset ${t.palette.divider}`},e.wrapperVariant==="desktop"&&{order:1,boxShadow:`0 1px 0 0 inset ${t.palette.divider}`,[`& .${NL.indicator}`]:{bottom:"auto",top:0}})),sp=function(t){const r=Ln({props:t,name:"MuiDateTimePickerTabs"}),{dateRangeIcon:i=Ee.jsx(aV,{}),onChange:s,timeIcon:o=Ee.jsx(oV,{}),view:a}=r,n=fi(),l=$e.useContext(Bi),c=ot({},r,{wrapperVariant:l}),u=qY(c),f=(d,p)=>{s(zY(p))};return Ee.jsxs(WY,{ownerState:c,variant:"fullWidth",value:BY(a),onChange:f,className:u.root,children:[Ee.jsx(K0,{value:"date","aria-label":n.dateTableLabel,icon:Ee.jsx($e.Fragment,{children:i})}),Ee.jsx(K0,{value:"time","aria-label":n.timeTableLabel,icon:Ee.jsx($e.Fragment,{children:o})})]})},UY=["onChange","PaperProps","PopperProps","ToolbarComponent","TransitionComponent","value","components","componentsProps","hideTabs"],D6=$e.forwardRef(function(t,r){const i=M1(t,"MuiDesktopDateTimePicker"),s=D1(i)!==null,{pickerProps:o,inputProps:a,wrapperProps:n}=qi(i,C1),{PaperProps:l,PopperProps:c,ToolbarComponent:u=P1,TransitionComponent:f,components:d,componentsProps:p,hideTabs:h=!0}=i,m=wn(i,UY),y=$e.useMemo(()=>ot({Tabs:sp},d),[d]),v=ot({},a,m,{components:y,componentsProps:p,ref:r,validationError:s});return Ee.jsx(T1,ot({},n,{DateInputProps:v,KeyboardDateInputComponent:lp,PopperProps:c,PaperProps:l,TransitionComponent:f,components:y,componentsProps:p,children:Ee.jsx(zi,ot({},o,{autoFocus:!0,toolbarTitle:i.label||i.toolbarTitle,ToolbarComponent:u,DateInputProps:v,components:y,componentsProps:p,hideTabs:h},m))}))}),HY=["ToolbarComponent","value","onChange","components","componentsProps","hideTabs"],E6=$e.forwardRef(function(t,r){const i=M1(t,"MuiMobileDateTimePicker"),s=D1(i)!==null,{pickerProps:o,inputProps:a,wrapperProps:n}=qi(i,C1),{ToolbarComponent:l=P1,components:c,componentsProps:u,hideTabs:f=!1}=i,d=wn(i,HY),p=$e.useMemo(()=>ot({Tabs:sp},c),[c]),h=ot({},a,d,{components:p,componentsProps:u,ref:r,validationError:s});return Ee.jsx(k1,ot({},d,n,{DateInputProps:h,PureDateInputComponent:S1,components:p,componentsProps:u,children:Ee.jsx(zi,ot({},o,{autoFocus:!0,toolbarTitle:i.label||i.toolbarTitle,ToolbarComponent:l,DateInputProps:h,components:p,componentsProps:u,hideTabs:f},d))}))}),VY=["desktopModeMediaQuery","DialogProps","PopperProps","TransitionComponent"],GY=$e.forwardRef(function(t,r){const i=Ln({props:t,name:"MuiDateTimePicker"}),{desktopModeMediaQuery:s="@media (pointer: fine)",DialogProps:o,PopperProps:a,TransitionComponent:n}=i,l=wn(i,VY);return Jy(s,{defaultMatches:!0})?Ee.jsx(D6,ot({ref:r,PopperProps:a,TransitionComponent:n},l)):Ee.jsx(E6,ot({ref:r,DialogProps:o},l))});function E1(e,t){var r;const i=Ln({props:e,name:t}),s=Or(),o=(r=i.ampm)!=null?r:s.is12HourCycleInCurrentLocale(),n=fi().openTimePickerDialogue;return ot({ampm:o,openTo:"hours",views:["hours","minutes"],acceptRegex:o?/[\dapAP]/gi:/\d/gi,disableMaskedInput:!1,getOpenDialogAriaText:n,inputFormat:o?s.formats.fullTime12h:s.formats.fullTime24h},i,{components:ot({OpenPickerIcon:l6},i.components)})}const R1={emptyValue:null,parseInput:c1,getTodayValue:e=>e.date(),areValuesEqual:(e,t,r)=>e.isEqual(t,r),valueReducer:(e,t,r)=>!t||!e.isValid(r)?r:e.mergeDateAndTime(t,r)};function YY(e){return Wn("MuiTimePickerToolbar",e)}const Cl=Un("MuiTimePickerToolbar",["root","separator","hourMinuteLabel","hourMinuteLabelLandscape","hourMinuteLabelReverse","ampmSelection","ampmLandscape","ampmLabel"]),XY=["ampm","ampmInClock","parsedValue","isLandscape","isMobileKeyboardViewOpen","onChange","openView","setOpenView","toggleMobileKeyboardView","toolbarTitle","views","disabled","readOnly"],ZY=e=>{const{theme:t,isLandscape:r,classes:i}=e,s={root:["root"],separator:["separator"],hourMinuteLabel:["hourMinuteLabel",r&&"hourMinuteLabelLandscape",t.direction==="rtl"&&"hourMinuteLabelReverse"],ampmSelection:["ampmSelection",r&&"ampmLandscape"],ampmLabel:["ampmLabel"]};return Nn(s,YY,i)},KY=Jt(x1,{name:"MuiTimePickerToolbar",slot:"Root",overridesResolver:(e,t)=>t.root})({[`& .${b1.penIconButtonLandscape}`]:{marginTop:"auto"}}),JY=Jt(O1,{name:"MuiTimePickerToolbar",slot:"Separator",overridesResolver:(e,t)=>t.separator})({outline:0,margin:"0 4px 0 2px",cursor:"default"}),QY=Jt("div",{name:"MuiTimePickerToolbar",slot:"HourMinuteLabel",overridesResolver:(e,t)=>[{[`&.${Cl.hourMinuteLabelLandscape}`]:t.hourMinuteLabelLandscape,[`&.${Cl.hourMinuteLabelReverse}`]:t.hourMinuteLabelReverse},t.hourMinuteLabel]})(({theme:e,ownerState:t})=>ot({display:"flex",justifyContent:"flex-end",alignItems:"flex-end"},t.isLandscape&&{marginTop:"auto"},e.direction==="rtl"&&{flexDirection:"row-reverse"})),eX=Jt("div",{name:"MuiTimePickerToolbar",slot:"AmPmSelection",overridesResolver:(e,t)=>[{[`.${Cl.ampmLabel}`]:t.ampmLabel},{[`&.${Cl.ampmLandscape}`]:t.ampmLandscape},t.ampmSelection]})(({ownerState:e})=>ot({display:"flex",flexDirection:"column",marginRight:"auto",marginLeft:12},e.isLandscape&&{margin:"4px 0 auto",flexDirection:"row",justifyContent:"space-around",flexBasis:"100%"},{[`& .${Cl.ampmLabel}`]:{fontSize:17}}));function L1(e){const t=Ln({props:e,name:"MuiTimePickerToolbar"}),{ampm:r,ampmInClock:i,parsedValue:s,isLandscape:o,isMobileKeyboardViewOpen:a,onChange:n,openView:l,setOpenView:c,toggleMobileKeyboardView:u,toolbarTitle:f,views:d,disabled:p,readOnly:h}=t,m=wn(t,XY),y=Or(),v=fi(),g=f??v.timePickerDefaultToolbarTitle,b=ji(),w=!!(r&&!i),{meridiemMode:_,handleMeridiemChange:x}=c6(s,r,n),k=C=>r?y.format(C,"hours12h"):y.format(C,"hours24h"),T=t,S=ZY(ot({},T,{theme:b})),M=Ee.jsx(JY,{tabIndex:-1,value:":",variant:"h3",selected:!1,className:S.separator});return Ee.jsxs(KY,ot({viewType:"clock",landscapeDirection:"row",toolbarTitle:g,isLandscape:o,isMobileKeyboardViewOpen:a,toggleMobileKeyboardView:u,ownerState:T,className:S.root},m,{children:[Ee.jsxs(QY,{className:S.hourMinuteLabel,ownerState:T,children:[Co(d,"hours")&&Ee.jsx(xi,{tabIndex:-1,variant:"h3",onClick:()=>c("hours"),selected:l==="hours",value:s?k(s):"--"}),Co(d,["hours","minutes"])&&M,Co(d,"minutes")&&Ee.jsx(xi,{tabIndex:-1,variant:"h3",onClick:()=>c("minutes"),selected:l==="minutes",value:s?y.format(s,"minutes"):"--"}),Co(d,["minutes","seconds"])&&M,Co(d,"seconds")&&Ee.jsx(xi,{variant:"h3",onClick:()=>c("seconds"),selected:l==="seconds",value:s?y.format(s,"seconds"):"--"})]}),w&&Ee.jsxs(eX,{className:S.ampmSelection,ownerState:T,children:[Ee.jsx(xi,{disableRipple:!0,variant:"subtitle2",selected:_==="am",typographyClassName:S.ampmLabel,value:y.getMeridiemText("am"),onClick:h?void 0:()=>x("am"),disabled:p}),Ee.jsx(xi,{disableRipple:!0,variant:"subtitle2",selected:_==="pm",typographyClassName:S.ampmLabel,value:y.getMeridiemText("pm"),onClick:h?void 0:()=>x("pm"),disabled:p})]})]}))}const tX=["onChange","PaperProps","PopperProps","ToolbarComponent","TransitionComponent","value","components","componentsProps"],R6=$e.forwardRef(function(t,r){const i=E1(t,"MuiDesktopTimePicker"),s=A1(i)!==null,{pickerProps:o,inputProps:a,wrapperProps:n}=qi(i,R1),{PaperProps:l,PopperProps:c,ToolbarComponent:u=L1,TransitionComponent:f,components:d,componentsProps:p}=i,h=wn(i,tX),m=ot({},a,h,{components:d,componentsProps:p,ref:r,validationError:s});return Ee.jsx(T1,ot({},n,{DateInputProps:m,KeyboardDateInputComponent:lp,PopperProps:c,PaperProps:l,TransitionComponent:f,components:d,componentsProps:p,children:Ee.jsx(zi,ot({},o,{autoFocus:!0,toolbarTitle:i.label||i.toolbarTitle,ToolbarComponent:u,DateInputProps:m,components:d,componentsProps:p},h))}))}),nX=["ToolbarComponent","value","onChange","components","componentsProps"],L6=$e.forwardRef(function(t,r){const i=E1(t,"MuiMobileTimePicker"),s=A1(i)!==null,{pickerProps:o,inputProps:a,wrapperProps:n}=qi(i,R1),{ToolbarComponent:l=L1,components:c,componentsProps:u}=i,f=wn(i,nX),d=ot({},a,f,{components:c,componentsProps:u,ref:r,validationError:s});return Ee.jsx(k1,ot({},f,n,{DateInputProps:d,PureDateInputComponent:S1,components:c,componentsProps:u,children:Ee.jsx(zi,ot({},o,{autoFocus:!0,toolbarTitle:i.label||i.toolbarTitle,ToolbarComponent:l,DateInputProps:d,components:c,componentsProps:u},f))}))});function rX(e){return Wn("MuiPickerStaticWrapper",e)}Un("MuiPickerStaticWrapper",["root","content"]);const aX=["displayStaticWrapperAs","onAccept","onClear","onCancel","onDismiss","onSetToday","open","children","components","componentsProps","className"],iX=e=>{const{classes:t}=e;return Nn({root:["root"],content:["content"]},rX,t)},oX=Jt("div",{name:"MuiPickerStaticWrapper",slot:"Root",overridesResolver:(e,t)=>t.root})({display:"flex",flexDirection:"column"}),lX=Jt("div",{name:"MuiPickerStaticWrapper",slot:"Content",overridesResolver:(e,t)=>t.content})(({theme:e})=>({overflow:"hidden",minWidth:h1,display:"flex",flexDirection:"column",backgroundColor:e.palette.background.paper}));function up(e){var t;const r=Ln({props:e,name:"MuiPickerStaticWrapper"}),{displayStaticWrapperAs:i,onAccept:s,onClear:o,onCancel:a,onSetToday:n,children:l,components:c,componentsProps:u,className:f}=r,d=wn(r,aX),p=iX(r),h=(t=c==null?void 0:c.ActionBar)!=null?t:_1,m=(c==null?void 0:c.PaperContent)||$e.Fragment;return Ee.jsx(Bi.Provider,{value:i,children:Ee.jsxs(oX,ot({className:qr(p.root,f)},d,{children:[Ee.jsx(lX,{className:p.content,children:Ee.jsx(m,ot({},u==null?void 0:u.paperContent,{children:l}))}),Ee.jsx(h,ot({onAccept:s,onClear:o,onCancel:a,onSetToday:n,actions:i==="desktop"?[]:["cancel","accept"]},u==null?void 0:u.actionBar))]}))})}const sX=["ToolbarComponent","value","onChange","displayStaticWrapperAs","components","componentsProps","className"],uX=$e.forwardRef(function(t,r){const i=v1(t,"MuiStaticDatePicker"),{ToolbarComponent:s=w1,displayStaticWrapperAs:o="mobile",components:a,componentsProps:n,className:l}=i,c=wn(i,sX),{pickerProps:u,inputProps:f,wrapperProps:d}=qi(i,y1),p=p1(i)!==null,h=ot({},f,c,{ref:r,validationError:p,components:a});return Ee.jsx(up,ot({displayStaticWrapperAs:o,components:a,componentsProps:n,className:l},d,{children:Ee.jsx(zi,ot({},u,{toolbarTitle:i.label||i.toolbarTitle,ToolbarComponent:s,DateInputProps:h,components:a,componentsProps:n},c))}))}),cX=["displayStaticWrapperAs","onChange","ToolbarComponent","value","components","componentsProps","hideTabs","className"],fX=$e.forwardRef(function(t,r){const i=M1(t,"MuiStaticDateTimePicker"),{displayStaticWrapperAs:s="mobile",ToolbarComponent:o=P1,components:a,componentsProps:n,hideTabs:l=s==="desktop",className:c}=i,u=wn(i,cX),{pickerProps:f,inputProps:d,wrapperProps:p}=qi(i,C1),h=D1(i)!==null,m=$e.useMemo(()=>ot({Tabs:sp},a),[a]),y=ot({},d,u,{ref:r,validationError:h,components:m,componentsProps:n});return Ee.jsx(up,ot({displayStaticWrapperAs:s,components:m,componentsProps:n,className:c},p,{children:Ee.jsx(zi,ot({},f,{toolbarTitle:i.label||i.toolbarTitle,ToolbarComponent:o,DateInputProps:y,components:m,componentsProps:n,hideTabs:l},u))}))}),dX=["displayStaticWrapperAs","onChange","ToolbarComponent","value","components","componentsProps","className"],pX=$e.forwardRef(function(t,r){const i=E1(t,"MuiStaticTimePicker"),{displayStaticWrapperAs:s="mobile",ToolbarComponent:o=L1,components:a,componentsProps:n,className:l}=i,c=wn(i,dX),u=A1(i)!==null,{pickerProps:f,inputProps:d,wrapperProps:p}=qi(i,R1),h=ot({},d,c,{ref:r,validationError:u,components:a,componentsProps:n});return Ee.jsx(up,ot({displayStaticWrapperAs:s,components:a,componentsProps:n,className:l},p,{children:Ee.jsx(zi,ot({},f,{toolbarTitle:i.label||i.toolbarTitle,ToolbarComponent:o,DateInputProps:h,components:a,componentsProps:n},c))}))}),hX=["desktopModeMediaQuery","DialogProps","PopperProps","TransitionComponent"],gX=$e.forwardRef(function(t,r){const i=Ln({props:t,name:"MuiTimePicker"}),{desktopModeMediaQuery:s="@media (pointer: fine)",DialogProps:o,PopperProps:a,TransitionComponent:n}=i,l=wn(i,hX);return Jy(s,{defaultMatches:!0})?Ee.jsx(R6,ot({ref:r,PopperProps:a,TransitionComponent:n},l)):Ee.jsx(L6,ot({ref:r,DialogProps:o},l))});/** @license MUI X v5.0.20 + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + */const mX=Object.freeze(Object.defineProperty({__proto__:null,CalendarPicker:g6,CalendarPickerSkeleton:XV,ClockPicker:_6,DEFAULT_LOCALE:X4,DatePicker:yY,DateTimePicker:GY,DateTimePickerTabs:sp,DesktopDatePicker:O6,DesktopDateTimePicker:D6,DesktopTimePicker:R6,LocalizationProvider:bH,MobileDatePicker:P6,MobileDateTimePicker:E6,MobileTimePicker:L6,MonthPicker:K4,MuiPickersAdapterContext:u1,PickerStaticWrapper:up,PickersDay:r6,StaticDatePicker:uX,StaticDateTimePicker:fX,StaticTimePicker:pX,TimePicker:gX,YearPicker:p6,beBY:gH,calendarPickerClasses:FV,calendarPickerSkeletonClasses:WV,clockClasses:uG,clockNumberClasses:Ou,clockPickerClasses:kG,clockPointerClasses:nG,csCZ:BU,datePickerToolbarClasses:$G,dateTimePickerTabsClasses:NY,dateTimePickerToolbarClasses:OY,dayPickerClasses:HH,deDE:PU,enUS:VU,esES:EU,faIR:LU,fiFI:FU,frFR:WU,getCalendarPickerSkeletonUtilityClass:m6,getCalendarPickerUtilityClass:h6,getClockPickerUtilityClass:w6,getMonthPickerUtilityClass:Z4,getPickersDayUtilityClass:e6,getYearPickerUtilityClass:d6,huHU:HU,isIS:lH,itIT:QU,jaJP:uH,koKR:iH,monthPickerClasses:xH,nbNO:YU,nlNL:wU,pickersCalendarHeaderClasses:vV,pickersDayClasses:Cu,pickersFadeTransitionGroupClasses:PH,pickersMonthClasses:ov,pickersSlideTransitionClasses:ga,pickersYearClasses:Ao,plPL:TU,ptBR:SU,ruRU:yH,svSE:ZU,timePickerToolbarClasses:Cl,trTR:CU,ukUA:fH,urPK:pH,yearPickerClasses:EV,zhCN:nH},Symbol.toStringTag,{value:"Module"})),I6=Xn(mX);var DT;function vX(){return DT||(DT=1,function(e){var t=yn;Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var r=t(_r()),i=t(Kl()),s=t(Qd()),o=t(ep()),a=t(t1()),n=t(r1()),l=t(a1()),c=t($e),u=t(tp),f=t(Zo),d=t(_4),p=t(i1),h=t(T4),m=t(QB),y=t(ez),v=t(tz),g=U4,b=I6,w=t(Ar),_=["columnDef","rowData","onRowDataChange","errorState","autoFocus","onBulkEditRowChanged","scrollWidth"],x=["helperText","error"],k=["helperText","error"];function T(A){var D=S();return function(){var R=(0,l.default)(A),$;if(D){var P=(0,l.default)(this).constructor;$=Reflect.construct(R,arguments,P)}else $=R.apply(this,arguments);return(0,n.default)(this,$)}}function S(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}var M=function(A){(0,a.default)(O,A);var D=T(O);function O(){return(0,s.default)(this,O),D.apply(this,arguments)}return(0,o.default)(O,[{key:"getProps",value:function(){var $=this.props;$.columnDef,$.rowData,$.onRowDataChange,$.errorState,$.autoFocus,$.onBulkEditRowChanged,$.scrollWidth;var P=(0,i.default)($,_);return P}},{key:"renderLookupField",value:function(){var $=this,P=this.getProps(),z=P.helperText,B=P.error,N=(0,i.default)(P,x);return c.default.createElement(h.default,{error:!!B},c.default.createElement(d.default,(0,r.default)({},N,{value:this.props.value===void 0?"":this.props.value,onChange:function(F){return $.props.onChange(F.target.value)},style:{fontSize:13},inputProps:{autoFocus:this.props.autoFocus},SelectDisplayProps:{"aria-label":this.props.columnDef.title}}),Object.keys(this.props.columnDef.lookup).map(function(j){return c.default.createElement(p.default,{key:j,value:j},$.props.columnDef.lookup[j])})),!!z&&c.default.createElement(m.default,null,z))}},{key:"renderBooleanField",value:function(){var $=this,P=this.getProps(),z=P.helperText,B=P.error,N=(0,i.default)(P,k);return c.default.createElement(h.default,{error:!!B,component:"fieldset"},c.default.createElement(y.default,null,c.default.createElement(v.default,{label:"",control:c.default.createElement(f.default,(0,r.default)({},N,{value:String(this.props.value),checked:!!this.props.value,onChange:function(F){return $.props.onChange(F.target.checked)},style:{padding:0,width:24,marginLeft:9},inputProps:{autoFocus:this.props.autoFocus,"aria-label":this.props.columnDef.title}}))})),c.default.createElement(m.default,null,z))}},{key:"renderDateField",value:function(){var $=this.props.columnDef.dateSetting&&this.props.columnDef.dateSetting.format?this.props.columnDef.dateSetting.format:"dd.MM.yyyy";return c.default.createElement(b.LocalizationProvider,{dateAdapter:g.AdapterDateFns,locale:this.props.locale},c.default.createElement(b.DatePicker,(0,r.default)({},this.getProps(),{renderInput:function(z){return c.default.createElement(u.default,z)},format:$,value:this.props.value||null,onChange:this.props.onChange,clearable:!0,InputProps:{style:{fontSize:13}},inputProps:{autoFocus:this.props.autoFocus,"aria-label":"".concat(this.props.columnDef.title,": press space to edit")}})))}},{key:"renderTimeField",value:function(){return c.default.createElement(b.LocalizationProvider,{dateAdapter:g.AdapterDateFns,locale:this.props.locale},c.default.createElement(b.TimePicker,(0,r.default)({},this.getProps(),{renderInput:function(P){return c.default.createElement(u.default,P)},format:"HH:mm:ss",value:this.props.value||null,onChange:this.props.onChange,clearable:!0,InputProps:{style:{fontSize:13}},inputProps:{autoFocus:this.props.autoFocus,"aria-label":"".concat(this.props.columnDef.title,": press space to edit")}})))}},{key:"renderDateTimeField",value:function(){return c.default.createElement(b.LocalizationProvider,{dateAdapter:g.AdapterDateFns,locale:this.props.locale},c.default.createElement(b.DateTimePicker,(0,r.default)({},this.getProps(),{renderInput:function(P){return c.default.createElement(u.default,P)},format:"dd.MM.yyyy HH:mm:ss",value:this.props.value||null,onChange:this.props.onChange,clearable:!0,InputProps:{style:{fontSize:13}},inputProps:{autoFocus:this.props.autoFocus,"aria-label":"".concat(this.props.columnDef.title,": press space to edit")}})))}},{key:"renderTextField",value:function(){var $=this;return c.default.createElement(u.default,(0,r.default)({},this.getProps(),{variant:"standard",fullWidth:!0,type:this.props.columnDef.type==="numeric"?"number":"text",placeholder:this.props.columnDef.editPlaceholder||this.props.columnDef.title,value:this.props.value===void 0?"":this.props.value,onChange:function(z){return $.props.onChange($.props.columnDef.type==="numeric"?z.target.valueAsNumber:z.target.value)},InputProps:{style:{minWidth:50,fontSize:13}},inputProps:{autoFocus:this.props.autoFocus,"aria-label":this.props.columnDef.title,style:this.props.columnDef.type==="numeric"?{textAlign:"right"}:{}}}))}},{key:"renderCurrencyField",value:function(){var $=this;return c.default.createElement(u.default,(0,r.default)({},this.getProps(),{variant:"standard",placeholder:this.props.columnDef.editPlaceholder||this.props.columnDef.title,type:"number",value:this.props.value===void 0?"":this.props.value,onChange:function(z){var B=z.target.valueAsNumber;return!B&&B!==0&&(B=void 0),$.props.onChange(B)},InputProps:{style:{fontSize:13,textAlign:"right"}},inputProps:{autoFocus:this.props.autoFocus,"aria-label":this.props.columnDef.title,style:{textAlign:"right"}},onKeyDown:this.props.onKeyDown}))}},{key:"render",value:function(){var $="ok";return this.props.columnDef.editComponent?$=this.props.columnDef.editComponent(this.props):this.props.columnDef.lookup?$=this.renderLookupField():this.props.columnDef.type==="boolean"?$=this.renderBooleanField():this.props.columnDef.type==="date"?$=this.renderDateField():this.props.columnDef.type==="time"?$=this.renderTimeField():this.props.columnDef.type==="datetime"?$=this.renderDateTimeField():this.props.columnDef.type==="currency"?$=this.renderCurrencyField():$=this.renderTextField(),$}}]),O}(c.default.Component);M.propTypes={value:w.default.any,onChange:w.default.func.isRequired,columnDef:w.default.object.isRequired,locale:w.default.object,rowData:w.default.object,onRowDataChange:w.default.func,errorState:w.default.func,autoFocus:w.default.bool,onBulkEditRowChanged:w.default.func,scrollWidth:w.default.number,onKeyDown:w.default.func};var C=M;e.default=C}(lm)),lm}var _m={},gf={},ET;function $6(){if(ET)return gf;ET=1;var e=yn;Object.defineProperty(gf,"__esModule",{value:!0}),gf.validateInput=o;var t=e(na()),r=e(Gr());function i(a,n){var l=Object.keys(a);if(Object.getOwnPropertySymbols){var c=Object.getOwnPropertySymbols(a);n&&(c=c.filter(function(u){return Object.getOwnPropertyDescriptor(a,u).enumerable})),l.push.apply(l,c)}return l}function s(a){for(var n=1;n"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}var g=function(w){(0,o.default)(x,w);var _=y(x);function x(k){var T;return(0,r.default)(this,x),T=_.call(this,k),(0,l.default)((0,s.default)(T),"getStyle",function(){var S={boxShadow:"2px 0px 15px rgba(125,147,178,.25)",color:"inherit",width:T.props.columnDef.tableData.width,boxSizing:"border-box",fontSize:"inherit",fontFamily:"inherit",fontWeight:"inherit",padding:"0 16px"};return typeof T.props.columnDef.cellStyle=="function"?S=m(m({},S),T.props.columnDef.cellStyle(T.state.value,T.props.rowData)):S=m(m({},S),T.props.columnDef.cellStyle),typeof T.props.cellEditable.cellStyle=="function"?S=m(m({},S),T.props.cellEditable.cellStyle(T.state.value,T.props.rowData,T.props.columnDef)):S=m(m({},S),T.props.cellEditable.cellStyle),S}),(0,l.default)((0,s.default)(T),"handleKeyDown",function(S){S.keyCode===13?T.onApprove():S.keyCode===27&&T.onCancel()}),(0,l.default)((0,s.default)(T),"onApprove",function(){var S=(0,p.validateInput)(T.props.columnDef,T.state.value).isValid;S&&T.setState({isLoading:!0},function(){T.props.cellEditable.onCellEditApproved(T.state.value,T.props.getFieldValue(T.props.rowData,T.props.columnDef),T.props.rowData,T.props.columnDef).then(function(){T.setState({isLoading:!1}),T.props.onCellEditFinished(T.props.rowData,T.props.columnDef)}).catch(function(M){T.setState({isLoading:!1})})})}),(0,l.default)((0,s.default)(T),"onCancel",function(){T.props.onCellEditFinished(T.props.rowData,T.props.columnDef)}),T.state={errorState:{isValid:!0,helperText:""},isLoading:!1,value:k.getFieldValue(T.props.rowData,T.props.columnDef,!1)},T}return(0,i.default)(x,[{key:"renderActions",value:function(){if(this.state.isLoading)return c.default.createElement("div",{style:{display:"flex",justifyContent:"center",width:60}},c.default.createElement(d.default,{size:20}));var T=[{icon:this.props.icons.Check,tooltip:this.props.localization.saveTooltip,onClick:this.onApprove,disabled:this.state.isLoading||!this.state.errorState.isValid},{icon:this.props.icons.Clear,tooltip:this.props.localization.cancelTooltip,onClick:this.onCancel,disabled:this.state.isLoading}];return c.default.createElement(this.props.components.Actions,{actions:T,components:this.props.components,size:"small"})}},{key:"handleChange",value:function(T){var S=(0,p.validateInput)(this.props.columnDef,T);this.setState({errorState:S,value:T})}},{key:"render",value:function(){var T=this;return c.default.createElement(f.default,{size:this.props.size,style:this.getStyle(),padding:"none"},c.default.createElement("div",{style:{display:"flex",alignItems:"center"}},c.default.createElement("div",{style:{flex:1,marginRight:4}},c.default.createElement(this.props.components.EditField,{columnDef:this.props.columnDef,value:this.state.value,error:!this.state.errorState.isValid,helperText:this.state.errorState.helperText,onChange:function(M){return T.handleChange(M)},onKeyDown:this.handleKeyDown,disabled:this.state.isLoading,rowData:this.props.rowData,autoFocus:!0})),this.renderActions()))}}]),x}(c.default.Component);g.defaultProps={columnDef:{},localization:{saveTooltip:"Save",cancelTooltip:"Cancel"}},g.propTypes={cellEditable:u.default.object.isRequired,columnDef:u.default.object.isRequired,components:u.default.object.isRequired,errorState:u.default.oneOfType([u.default.object,u.default.bool]),icons:u.default.object.isRequired,localization:u.default.object.isRequired,onCellEditFinished:u.default.func.isRequired,rowData:u.default.object.isRequired,size:u.default.string,getFieldValue:u.default.func.isRequired};var b=g;e.default=b}(_m)),_m}var Tm={},km={exports:{}},Sm={exports:{}},LT;function bX(){return LT||(LT=1,function(e){function t(r){if(Array.isArray(r))return r}e.exports=t,e.exports.__esModule=!0,e.exports.default=e.exports}(Sm)),Sm.exports}var Mm={exports:{}},IT;function xX(){return IT||(IT=1,function(e){function t(r,i){var s=r==null?null:typeof Symbol<"u"&&r[Symbol.iterator]||r["@@iterator"];if(s!=null){var o,a,n,l,c=[],u=!0,f=!1;try{if(n=(s=s.call(r)).next,i===0){if(Object(s)!==s)return;u=!1}else for(;!(u=(o=n.call(s)).done)&&(c.push(o.value),c.length!==i);u=!0);}catch(d){f=!0,a=d}finally{try{if(!u&&s.return!=null&&(l=s.return(),Object(l)!==l))return}finally{if(f)throw a}}return c}}e.exports=t,e.exports.__esModule=!0,e.exports.default=e.exports}(Mm)),Mm.exports}var Cm={exports:{}},$T;function wX(){return $T||($T=1,function(e){function t(){throw new TypeError(`Invalid attempt to destructure non-iterable instance. +In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}e.exports=t,e.exports.__esModule=!0,e.exports.default=e.exports}(Cm)),Cm.exports}var FT;function ho(){return FT||(FT=1,function(e){var t=bX(),r=xX(),i=x4(),s=wX();function o(a,n){return t(a)||r(a,n)||i(a,n)||s()}e.exports=o,e.exports.__esModule=!0,e.exports.default=e.exports}(km)),km.exports}const Ql=Xn(n$),Ko=Xn(Gj);var jT;function _X(){return jT||(jT=1,function(e){var t=yn;Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var r=t(_r()),i=t(na()),s=t(Gr()),o=t(ho()),a=t($e),n=t(Ar),l=t(e1),c=t(Ql),u=t(Ko);function f(m,y){var v=Object.keys(m);if(Object.getOwnPropertySymbols){var g=Object.getOwnPropertySymbols(m);y&&(g=g.filter(function(b){return Object.getOwnPropertyDescriptor(m,b).enumerable})),v.push.apply(v,g)}return v}function d(m){for(var y=1;y0&&o.default.createElement(i.default,{colSpan:n.options.detailPanelOffset.left}),o.default.createElement(i.default,{size:n.size,colSpan:n.renderColumns.length-n.options.detailPanelOffset.left-n.options.detailPanelOffset.right,padding:"none"},o.default.createElement(r.default,{in:f,timeout:"auto",unmountOnExit:!0,mountOnEnter:!0,onExited:function(){y.current=void 0,m()}},g({rowData:n.data}))))}return mf}var ta={},zT;function Wi(){if(zT)return ta;zT=1;var e=yn;Object.defineProperty(ta,"__esModule",{value:!0}),ta.widthToNumber=ta.selectionMaxWidth=ta.rowActions=ta.reducePercentsInCalc=ta.parseFirstLastPageButtons=ta.elementSize=ta.baseIconSize=ta.actionsColumnWidth=void 0;var t=e(na()),r=e(Gr());function i(p,h){var m=Object.keys(p);if(Object.getOwnPropertySymbols){var y=Object.getOwnPropertySymbols(p);h&&(y=y.filter(function(v){return Object.getOwnPropertyDescriptor(p,v).enumerable})),m.push.apply(m,y)}return m}function s(p){for(var h=1;h1){var v=y[1];return h.replace(/\d*%/,"".concat(m*(v/100),"px"))}return h.replace(/\d*%/,"".concat(m,"px"))};ta.reducePercentsInCalc=u;var f=function(h){return typeof h=="number"?h:!h||!h.match(/^\s*\d+(px)?\s*$/)?NaN:Number(h.replace(/px$/,""))};ta.widthToNumber=f;var d=function(h,m){var y={first:!0,last:!0};return typeof h=="boolean"?y={first:h,last:h}:(0,r.default)(h)==="object"&&(y=s(s({},y),h)),m&&(y={first:y.last,last:y.first}),y};return ta.parseFirstLastPageButtons=d,ta}var vf={},qT;function MX(){if(qT)return vf;qT=1;var e=yn;Object.defineProperty(vf,"__esModule",{value:!0}),vf.useDoubleClick=r;var t=e($e);function r(i,s){var o=t.default.useRef(0),a=t.default.useRef(null),n=t.default.useRef(null),l=t.default.useRef(null);t.default.useEffect(function(){n.current=s,l.current=i});var c=function(){clearTimeout(a.current),a.current=null,o.current=0},u=t.default.useCallback(function(f){var d=o.current+1===2,p=a.current;if(p&&d&&(c(),n.current&&n.current(f)),!p){o.current=o.current+1;var h=function(){c(),l.current&&l.current(f)};if(n.current){var m=setTimeout(h,250);a.current=m}else h()}},[]);return u}return vf}var WT;function CX(){return WT||(WT=1,function(e){var t=yn,r=Gr();Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var i=t(Jl()),s=t(Ni),o=t(Ko),a=t(Ql),n=t(Zo),l=t(_r()),c=t(Si),u=t(na()),f=t(Kl()),d=t($e),p=t(Ar),h=SX(),m=x(Wi()),y=MX(),v=bp(),g=ci(),b=["forwardedRef"],w=["data","components","detailPanel","getFieldValue","isTreeData","onRowSelected","onRowEditStarted","onTreeExpandChanged","onToggleDetailPanel","onEditingCanceled","onEditingApproved","hasAnyEditingRow","treeDataMaxLevel","path","actions","errorState","cellEditable","onCellEditStarted","onCellEditFinished","persistEvents","scrollWidth","onRowClick","onRowDoubleClick","columns"];function _(C){if(typeof WeakMap!="function")return null;var A=new WeakMap,D=new WeakMap;return(_=function(R){return R?D:A})(C)}function x(C,A){if(!A&&C&&C.__esModule)return C;if(C===null||r(C)!=="object"&&typeof C!="function")return{default:C};var D=_(A);if(D&&D.has(C))return D.get(C);var O={},R=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var $ in C)if($!=="default"&&Object.prototype.hasOwnProperty.call(C,$)){var P=R?Object.getOwnPropertyDescriptor(C,$):null;P&&(P.get||P.set)?Object.defineProperty(O,$,P):O[$]=C[$]}return O.default=C,D&&D.set(C,O),O}function k(C,A){var D=Object.keys(C);if(Object.getOwnPropertySymbols){var O=Object.getOwnPropertySymbols(C);A&&(O=O.filter(function(R){return Object.getOwnPropertyDescriptor(C,R).enumerable})),D.push.apply(D,O)}return D}function T(C){for(var A=1;A-1)}).sort(function(Pe,Re){return Pe.tableData.columnOrder-Re.tableData.columnOrder}).map(function(Pe){var Re=D.getFieldValue(D.data,Pe);if(D.data.tableData.editCellList&&D.data.tableData.editCellList.find(function(Fe){return Fe.tableData.id===Pe.tableData.id}))return d.default.createElement(D.components.EditCell,{getFieldValue:D.getFieldValue,components:D.components,icons:$,localization:O,columnDef:Pe,size:Ce,key:"cell-"+D.data.tableData.id+"-"+Pe.tableData.id,rowData:D.data,cellEditable:D.cellEditable,onCellEditFinished:D.onCellEditFinished,scrollWidth:K});var De=Pe.editable!=="never"&&!!D.cellEditable;De&&D.cellEditable.isCellEditable&&(De=D.cellEditable.isCellEditable(D.data,Pe));var Le="cell-".concat(D.data.tableData.id,"-").concat(Pe.tableData.id);return d.default.createElement(D.components.Cell,{size:Ce,errorState:D.errorState,columnDef:T({cellStyle:R.cellStyle},Pe),value:Re,key:Le,rowData:D.data,cellEditable:De,onCellEditStarted:D.onCellEditStarted,scrollWidth:K})});return ke},Ce=m.elementSize(P),Se=q.length*m.baseIconSize(P),ce=function(ke){return d.default.createElement(c.default,{size:Ce,padding:"none",key:"key-actions-column",style:T({width:Se,padding:"0px 5px",boxSizing:"border-box"},R.actionsCellStyle)},d.default.createElement(D.components.Actions,{data:D.data,actions:ke,components:D.components,size:Ce,disabled:D.hasAnyEditingRow}))},ye=function(){var ke=R.selectionProps||{};typeof ke=="function"&&(ke=ke(D.data));var Pe=m.selectionMaxWidth(P,D.treeDataMaxLevel)||0,Re=Ce!=="medium"?{padding:"4px"}:void 0;return d.default.createElement(c.default,{size:Ce,padding:"none",key:"key-selection-column",style:{width:Pe}},d.default.createElement(n.default,(0,l.default)({size:Ce,checked:D.data.tableData.checked===!0,onClick:function(Le){return Le.stopPropagation()},value:D.data.tableData.id.toString(),onChange:function(Le){D.onRowSelected(Le,D.path,D.data)},style:Re},ke)))},V=function(ke){return{transform:ke?"rotate(90deg)":"none"}},ne=function(){return R.showDetailPanelIcon?typeof D.detailPanel=="function"?d.default.createElement(c.default,{size:Ce,padding:"none",key:"key-detail-panel-column",style:T({width:42,textAlign:"center"},R.detailPanelColumnStyle)},d.default.createElement(a.default,{"aria-label":"Detail panel visibility toggle",size:Ce,style:T({transition:"all ease 200ms"},V(D.data.tableData.showDetailPanel)),onClick:function(Pe){D.onToggleDetailPanel(D.path,D.detailPanel),Pe.stopPropagation()}},d.default.createElement($.DetailPanel,null))):d.default.createElement(c.default,{size:Ce,padding:"none",key:"key-detail-panel-column"},d.default.createElement("div",{style:T({width:42*D.detailPanel.length,textAlign:"center",display:"flex"},R.detailPanelColumnStyle)},D.detailPanel.map(function(ke,Pe){typeof ke=="function"&&(ke=ke(D.data));var Re=(D.data.tableData.showDetailPanel||"").toString()===ke.render.toString(),De=d.default.createElement($.DetailPanel,null),Le=!0;return Re?ke.openIcon?(De=d.default.createElement(v.MTableCustomIcon,{icon:ke.openIcon,iconProps:ke.iconProps}),Le=!1):ke.icon&&(De=d.default.createElement(v.MTableCustomIcon,{icon:ke.icon,iconProps:ke.iconProps})):ke.icon&&(De=d.default.createElement(v.MTableCustomIcon,{icon:ke.icon,iconProps:ke.iconProps}),Le=!1),De=d.default.createElement(a.default,{"aria-label":"Detail panel visibility toggle",size:Ce,key:"key-detail-panel-"+Pe,style:T({transition:"all ease 200ms"},V(Le&&Re)),disabled:ke.disabled,onClick:function(Be){D.onToggleDetailPanel(D.path,ke.render),Be.stopPropagation()}},De),ke.tooltip&&(De=d.default.createElement(o.default,{key:"key-detail-panel-"+Pe,title:ke.tooltip},De)),De}))):null},fe=function(){return D.data.tableData.childRows&&D.data.tableData.childRows.length>0?d.default.createElement(c.default,{size:Ce,padding:"none",key:"key-tree-data-column",style:{width:48+9*(D.treeDataMaxLevel-2)}},d.default.createElement(a.default,{"aria-label":"Detail panel visibility toggle",size:Ce,style:T({transition:"all ease 200ms",marginLeft:D.level*9},V(D.data.tableData.isTreeExpanded)),onClick:function(Pe){D.onTreeExpandChanged(D.path,D.data),Pe.stopPropagation()}},d.default.createElement($.DetailPanel,null))):d.default.createElement(c.default,{padding:"none",key:"key-tree-data-column"})},xe=function(ke,Pe){var Re={};return typeof R.rowStyle=="function"?Re=T(T({},Re),R.rowStyle(D.data,ke,Pe,D.hasAnyEditingRow)):R.rowStyle&&(Re=T(T({},Re),R.rowStyle)),(Q||G)&&(Re.cursor="pointer"),D.hasAnyEditingRow&&(Re.opacity=Re.opacity?Re.opacity:.2),Re},ue=Me();R.selection&&ue.splice(0,0,ye());var ge=m.rowActions(D);if(ge.length>0){if(R.actionsColumnIndex===-1)ue.push(ce(ge));else if(R.actionsColumnIndex>=0){var be=0;R.selection&&(be=1),ue.splice(R.actionsColumnIndex+be,0,ce(ge))}}return D.detailPanel&&(R.detailPanelColumnAlignment==="right"?ue.push(ne()):ue.splice(0,0,ne())),D.isTreeData&&ue.splice(0,0,fe()),D.columns.filter(function(we){return we.tableData.groupOrder>-1}).forEach(function(we){ue.splice(0,0,d.default.createElement(c.default,{size:Ce,padding:"none",key:"key-group-cell"+we.tableData.id}))}),d.default.createElement(d.default.Fragment,null,d.default.createElement(s.default,(0,l.default)({ref:A,selected:W},Y,{onClick:function(ke){ee&&ke.persist(),!W&&_e(ke)},hover:!!(Q||G),style:xe(D.index,D.level),"data-testid":"mtablebodyrow"}),ue),d.default.createElement(h.MTableDetailPanel,{options:R,data:D.data,detailPanel:D.detailPanel,renderColumns:ue,size:Ce}),D.data.tableData.childRows&&D.data.tableData.isTreeExpanded&&D.data.tableData.childRows.map(function(we,ke){return we.tableData.editing?d.default.createElement(D.components.EditRow,{columns:re,components:D.components,data:we,icons:$,localization:O,getFieldValue:D.getFieldValue,key:ke,mode:we.tableData.editing,isTreeData:D.isTreeData,detailPanel:D.detailPanel,onEditingCanceled:F,onEditingApproved:E,errorState:D.errorState}):d.default.createElement(D.components.Row,(0,l.default)({},D,{data:we,index:ke,key:ke,level:D.level+1,path:[].concat((0,i.default)(D.path),[we.tableData.uuid]),onEditingCanceled:F,onEditingApproved:E,hasAnyEditingRow:D.hasAnyEditingRow,treeDataMaxLevel:H,errorState:D.errorState,cellEditable:U,onCellEditStarted:J,onCellEditFinished:te}))}))}S.defaultProps={actions:[],index:0,data:{},path:[],persistEvents:!1},S.propTypes={forwardedRef:p.default.element,actions:p.default.array,index:p.default.number.isRequired,data:p.default.object.isRequired,detailPanel:p.default.oneOfType([p.default.func,p.default.arrayOf(p.default.oneOfType([p.default.object,p.default.func]))]),hasAnyEditingRow:p.default.bool,onRowSelected:p.default.func,path:p.default.arrayOf(p.default.oneOfType([p.default.string,p.default.number])),persistEvents:p.default.bool,treeDataMaxLevel:p.default.number,getFieldValue:p.default.func.isRequired,columns:p.default.array,onToggleDetailPanel:p.default.func.isRequired,onRowClick:p.default.func,onRowDoubleClick:p.default.func,onEditingApproved:p.default.func,onEditingCanceled:p.default.func,errorState:p.default.oneOfType([p.default.object,p.default.bool])};var M=d.default.forwardRef(function(A,D){return d.default.createElement(S,(0,l.default)({},A,{forwardedRef:D}))});e.default=M}(Pm)),Pm}var Am={},Qi={};const OX=Xn(oU);var UT;function PX(){if(UT)return Qi;UT=1;var e=yn;Object.defineProperty(Qi,"__esModule",{value:!0}),Qi.getCurrencyValue=o,Qi.getEmptyValue=s,Qi.getRenderValue=a,Qi.isoDateRegex=void 0;var t=e($e),r=e(OX),i=/^\d{4}-(0[1-9]|1[0-2])-([12]\d|0[1-9]|3[01])([T\s](([01]\d|2[0-3])\:[0-5]\d|24\:00)(\:[0-5]\d([\.,]\d+)?)?([zZ]|([\+-])([01]\d|2[0-3])\:?([0-5]\d)?)?)?$/;Qi.isoDateRegex=i;function s(){var n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"",l=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return typeof n=="function"?l.columnDef.emptyValue(l.rowData):n}function o(n,l){return n!==void 0?new Intl.NumberFormat(n.locale!==void 0?n.locale:"en-US",{style:"currency",currency:n.currencyCode!==void 0?n.currencyCode:"USD",minimumFractionDigits:n.minimumFractionDigits!==void 0?n.minimumFractionDigits:2,maximumFractionDigits:n.maximumFractionDigits!==void 0?n.maximumFractionDigits:2}).format(l!==void 0?l:0):new Intl.NumberFormat("en-US",{style:"currency",currency:"USD"}).format(l!==void 0?l:0)}function a(n,l,c){var u=n.columnDef.dateSetting&&n.columnDef.dateSetting.locale?n.columnDef.dateSetting.locale:void 0;if(n.columnDef.emptyValue!==void 0&&(n.value===void 0||n.value===null))return s(n.columnDef.emptyValue,n);if(n.rowData===void 0&&n.value&&n.columnDef.groupRender)return n.columnDef.groupRender(n.value);if(n.columnDef.render&&n.rowData)return n.columnDef.render(n.rowData);if(n.columnDef.type==="boolean"){var f={textAlign:"left",verticalAlign:"middle",width:48};return n.value?t.default.createElement(l.Check,{style:f}):t.default.createElement(l.ThirdStateCheck,{style:f})}else{if(n.columnDef.type==="date")return n.value instanceof Date?n.value.toLocaleDateString(u):i.exec(n.value)?(0,r.default)(n.value).toLocaleDateString(u):n.value;if(n.columnDef.type==="time")return n.value instanceof Date?n.value.toLocaleTimeString():i.exec(n.value)?(0,r.default)(n.value).toLocaleTimeString(u):n.value;if(n.columnDef.type==="datetime")return n.value instanceof Date?n.value.toLocaleString():i.exec(n.value)?(0,r.default)(n.value).toLocaleString(u):n.value;if(n.columnDef.type==="currency")return o(n.columnDef.currencySetting,n.value);if(typeof n.value=="boolean")return n.value.toString()}return n.value}return Qi}var eo={},HT;function cp(){if(HT)return eo;HT=1;var e=yn,t=Gr();Object.defineProperty(eo,"__esModule",{value:!0}),eo.getStyle=u,eo.setObjectByKey=eo.selectFromObject=void 0;var r=e(na()),i=o(Wi());function s(f){if(typeof WeakMap!="function")return null;var d=new WeakMap,p=new WeakMap;return(s=function(m){return m?p:d})(f)}function o(f,d){if(!d&&f&&f.__esModule)return f;if(f===null||t(f)!=="object"&&typeof f!="function")return{default:f};var p=s(d);if(p&&p.has(f))return p.get(f);var h={},m=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var y in f)if(y!=="default"&&Object.prototype.hasOwnProperty.call(f,y)){var v=m?Object.getOwnPropertyDescriptor(f,y):null;v&&(v.get||v.set)?Object.defineProperty(h,y,v):h[y]=f[y]}return h.default=f,p&&p.set(f,h),h}function a(f,d){var p=Object.keys(f);if(Object.getOwnPropertySymbols){var h=Object.getOwnPropertySymbols(f);d&&(h=h.filter(function(m){return Object.getOwnPropertyDescriptor(f,m).enumerable})),p.push.apply(p,h)}return p}function n(f){for(var d=1;d-1)}).sort(function(K,Q){return K.tableData.columnOrder-Q.tableData.columnOrder}).map(function(K,Q){var G=T.getFieldValue(D.data,K,!1),X=function(Me,Ce){var Se={color:"inherit"};return typeof Me.cellStyle=="function"?Se=_(_({},Se),Me.cellStyle(Ce,T.data)):Se=_(_({},Se),Me.cellStyle),Me.disableClick&&(Se.cursor="default"),_({},Se)};Q===0&&24+T.level*20;var Y=!1;if(K.editable===void 0&&(Y=!0),K.editable==="always"&&(Y=!0),K.editable==="onAdd"&&T.mode==="add"&&(Y=!0),K.editable==="onUpdate"&&T.mode==="update"&&(Y=!0),typeof K.editable=="function"&&(Y=K.editable(K,T.data)),!K.field||!Y){var re=T.getFieldValue(D.data,K);return n.default.createElement(T.components.Cell,{size:J,icons:S,columnDef:K,value:re,key:K.tableData.id,rowData:T.data,style:X(K,G)})}else{var ie=K.editComponent,le=(0,s.default)(K,y),se=ie||T.components.EditField,he=(0,m.validateInput)(K,D.data);return te===-1&&(te=Q),n.default.createElement(l.default,{size:J,key:K.tableData.id,align:["numeric"].indexOf(K.type)!==-1?"right":"left",style:X(K,G)},n.default.createElement(se,{key:K.tableData.id,columnDef:le,autoFocus:te===Q,value:G,error:!he.isValid,helperText:he.helperText,locale:T.localization.dateTimePickerLocalization,rowData:D.data,onChange:function(Me){var Ce=_({},D.data);(0,d.setObjectByKey)(Ce,K.field,Me),O({data:Ce}),T.onBulkEditRowChanged&&T.onBulkEditRowChanged(T.data,Ce)},onRowDataChange:function(Me){O({data:Me}),T.onBulkEditRowChanged&&T.onBulkEditRowChanged(T.data,Me)}}))}});return ee}var $=T.columns.every(function(J){var te=(0,m.validateInput)(J,D.data);return te.isValid}),P=function(){$&&T.onEditingApproved(T.mode,D.data,T.data)};function z(){if(T.mode!=="bulk"){var J=h.elementSize(T),te=[{icon:S.Check,tooltip:T.localization.saveTooltip,disabled:!$,onClick:P},{icon:S.Clear,tooltip:T.localization.cancelTooltip,onClick:function(){T.onEditingCanceled(T.mode,T.data)}}];return n.default.createElement(l.default,{size:J,padding:"none",key:"key-actions-column",style:_({width:42*te.length,padding:"0px 5px"},M.editCellStyle)},n.default.createElement(T.components.Actions,{data:T.data,actions:te,components:T.components,size:J}))}}function B(){var J={borderBottom:"1px solid red"};return J}var N=function(te){te.keyCode===13&&te.target.type!=="textarea"&&te.target.type!=="button"||te.keyCode===13&&te.target.type==="textarea"&&te.shiftKey?P():te.keyCode===27&&T.onEditingCanceled(T.mode,T.data)},j=h.elementSize(T),F;if(T.mode==="add"||T.mode==="update"||T.mode==="bulk")F=R();else{var E=T.columns.filter(function(J){return!J.hidden&&!(J.tableData.groupOrder>-1)}).length;F=[n.default.createElement(l.default,{size:j,padding:M.actionsColumnIndex===0?"none":void 0,key:"key-edit-cell",colSpan:E},n.default.createElement(u.default,{variant:"h6"},T.localization.deleteText))]}if(M.selection&&F.splice(0,0,n.default.createElement(l.default,{padding:"none",key:"key-selection-cell"})),T.isTreeData&&F.splice(0,0,n.default.createElement(l.default,{padding:"none",key:"key-tree-data-cell"})),M.actionsColumnIndex===-1)F.push(z());else if(M.actionsColumnIndex>=0){var W=0;M.selection&&(W=1),T.isTreeData&&(W=1,M.selection&&F.splice(1,1)),F.splice(M.actionsColumnIndex+W,0,z())}if(T.detailPanel&&M.showDetailPanelIcon!==!1&&T.mode!=="bulk"){var H=M.detailPanelColumnAlignment,L=H==="left"?0:F.length;F.splice(L,0,n.default.createElement(l.default,{padding:"none",key:"key-detail-panel-cell"}))}T.columns.filter(function(J){return J.tableData.groupOrder>-1}).forEach(function(J){F.splice(0,0,n.default.createElement(l.default,{padding:"none",key:"key-group-cell"+J.tableData.id}))}),T.detailPanel,T.isTreeData,T.onRowClick,T.onRowSelected,T.onTreeExpandChanged,T.onToggleDetailPanel,T.onEditingApproved,T.onEditingCanceled,T.getFieldValue,T.components,T.columns,T.errorState,T.onBulkEditRowChanged,T.bulkEditChangedRows,T.scrollWidth;var q=T.forwardedRef,U=(0,s.default)(T,v);return n.default.createElement(c.default,(0,i.default)({onKeyDown:N},U,{ref:q,style:B()}),F)}x.defaultProps={actions:[],index:0,options:{},path:[],onBulkEditRowChanged:function(){}},x.propTypes={actions:f.default.array,index:f.default.number.isRequired,data:f.default.object,detailPanel:f.default.oneOfType([f.default.func,f.default.arrayOf(f.default.oneOfType([f.default.object,f.default.func]))]),onRowSelected:f.default.func,path:f.default.arrayOf(f.default.number),columns:f.default.array,onRowClick:f.default.func,onEditingApproved:f.default.func,onEditingCanceled:f.default.func,localization:f.default.object,getFieldValue:f.default.func,errorState:f.default.oneOfType([f.default.object,f.default.bool]),onBulkEditRowChanged:f.default.func};var k=n.default.forwardRef(function(S,M){return n.default.createElement(x,(0,i.default)({},S,{forwardedRef:M}))});e.default=k}(Em)),Em}var Rm={},Lm={},bo={},XT;function I1(){if(XT)return bo;XT=1;var e=yn;Object.defineProperty(bo,"__esModule",{value:!0}),bo.getLocalizedFilterPlaceHolder=bo.getLocalizationData=void 0;var t=e(na()),r=j6();function i(n,l){var c=Object.keys(n);if(Object.getOwnPropertySymbols){var u=Object.getOwnPropertySymbols(n);l&&(u=u.filter(function(f){return Object.getOwnPropertyDescriptor(n,f).enumerable})),c.push.apply(c,u)}return c}function s(n){for(var l=1;l-1}),f.default.createElement(n.default,{primary:_.lookup[D]}))})))}var b=f.default.forwardRef(function(_,x){return f.default.createElement(g,(0,i.default)({},_,{forwardedRef:x}))});e.default=b}(Im)),Im}var $m={};const F6=Xn(yj);var JT;function FX(){return JT||(JT=1,function(e){var t=yn;Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var r=t(_r()),i=t(tp),s=t(F6),o=t(Ko),a=t($e),n=I1();function l(u){var f,d,p=u.columnDef,h=u.icons,m=u.localization,y=u.hideFilterIcons,v=u.onFilterChanged,g=u.forwardedRef,b=(0,n.getLocalizationData)(m),w=h.Filter;return a.default.createElement(i.default,{ref:g,style:p.type==="numeric"?{float:(f=p.align)!==null&&f!==void 0?f:"right"}:{float:(d=p.align)!==null&&d!==void 0?d:"left"},type:p.type==="numeric"?"number":"search",value:p.tableData.filterValue||"",placeholder:(0,n.getLocalizedFilterPlaceHolder)(p,m),onChange:function(x){v(p.tableData.id,x.target.value)},inputProps:{"aria-label":"filter data by ".concat(p.title)},InputProps:y||p.hideFilterIcon?void 0:{startAdornment:a.default.createElement(s.default,{position:"start"},a.default.createElement(o.default,{title:b.filterTooltip},a.default.createElement(w,null)))}})}var c=a.default.forwardRef(function(f,d){return a.default.createElement(l,(0,r.default)({},f,{forwardedRef:d}))});e.default=c}($m)),$m}var Fm={},QT;function jX(){return QT||(QT=1,function(e){var t=yn;Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var r=t(_r()),i=t(Zo),s=t($e);function o(n){var l=n.forwardedRef,c=n.columnDef,u=n.onFilterChanged;return s.default.createElement(i.default,{ref:l,inputProps:{"aria-label":"Filter of ".concat(c.title)},indeterminate:c.tableData.filterValue===void 0,checked:c.tableData.filterValue==="checked",onChange:function(){var d;c.tableData.filterValue===void 0?d="checked":c.tableData.filterValue==="checked"&&(d="unchecked"),u(c.tableData.id,d)}})}var a=s.default.forwardRef(function(l,c){return s.default.createElement(o,(0,r.default)({},l,{forwardedRef:c}))});e.default=a}(Fm)),Fm}var jm={},e3;function NX(){return e3||(e3=1,function(e){var t=yn,r=Gr();Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var i=t(_r()),s=a($e);function o(c){if(typeof WeakMap!="function")return null;var u=new WeakMap,f=new WeakMap;return(o=function(p){return p?f:u})(c)}function a(c,u){if(!u&&c&&c.__esModule)return c;if(c===null||r(c)!=="object"&&typeof c!="function")return{default:c};var f=o(u);if(f&&f.has(c))return f.get(c);var d={},p=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var h in c)if(h!=="default"&&Object.prototype.hasOwnProperty.call(c,h)){var m=p?Object.getOwnPropertyDescriptor(c,h):null;m&&(m.get||m.set)?Object.defineProperty(d,h,m):d[h]=c[h]}return d.default=c,f&&f.set(c,d),d}function n(c){var u=c.columnDef,f=c.onFilterChanged,d=c.forwardedRef;return(0,s.createElement)(u.filterComponent,{columnDef:u,onFilterChanged:f,forwardedRef:d})}var l=s.default.forwardRef(function(u,f){return s.default.createElement(n,(0,i.default)({},u,{forwardedRef:f}))});e.default=l}(jm)),jm}var t3;function j6(){return t3||(t3=1,function(e){var t=yn;Object.defineProperty(e,"__esModule",{value:!0}),e.MTableFilterRow=y,e.default=void 0;var r=t(Ni),i=t(Si),s=t(na()),o=t(_r()),a=t($e),n=t(Ar),l=t(RX()),c=t($X()),u=t(FX()),f=t(jX()),d=t(NX()),p=mc();function h(g,b){var w=Object.keys(g);if(Object.getOwnPropertySymbols){var _=Object.getOwnPropertySymbols(g);b&&(_=_.filter(function(x){return Object.getOwnPropertyDescriptor(g,x).enumerable})),w.push.apply(w,_)}return w}function m(g){for(var b=1;b-1)}).sort(function(T,S){return T.tableData.columnOrder-S.tableData.columnOrder}).map(function(T){return a.default.createElement(i.default,{key:T.tableData.id,style:m(m({},b.filterCellStyle),T.filterCellStyle)},w(T))});if(b.selection&&_.splice(0,0,a.default.createElement(i.default,{padding:"none",key:"key-selection-column"})),g.hasActions)if(b.actionsColumnIndex===-1)_.push(a.default.createElement(i.default,{key:"key-action-column"}));else{var x=0;g.selection&&(x=1),_.splice(b.actionsColumnIndex+x,0,a.default.createElement(i.default,{key:"key-action-column"}))}if(g.hasDetailPanel&&b.showDetailPanelIcon){var k=b.detailPanelColumnAlignment==="left"?0:_.length;_.splice(k,0,a.default.createElement(i.default,{padding:"none",key:"key-detail-panel-column"}))}return g.isTreeData>0&&_.splice(0,0,a.default.createElement(i.default,{padding:"none",key:"key-tree-data-filter"})),g.columns.filter(function(T){return T.tableData.groupOrder>-1}).forEach(function(T){_.splice(0,0,a.default.createElement(i.default,{padding:"checkbox",key:"key-group-filter"+T.tableData.id}))}),a.default.createElement(r.default,{id:"m--table--filter--row",ref:g.forwardedRef,style:m({height:10},b.filterRowStyle)},_)}y.defaultProps={columns:[],hasActions:!1,localization:{filterTooltip:"Filter"}},y.propTypes={columns:n.default.array.isRequired,hasDetailPanel:n.default.bool.isRequired,isTreeData:n.default.bool.isRequired,onFilterChanged:n.default.func.isRequired,hasActions:n.default.bool,localization:n.default.object};var v=a.default.forwardRef(function(b,w){return a.default.createElement(y,(0,o.default)({},b,{forwardedRef:w}))});e.default=v}(Rm)),Rm}var Nm={};const N6=Xn(pN),BX=Xn(b$);function n3(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter(function(s){return Object.getOwnPropertyDescriptor(e,s).enumerable})),r.push.apply(r,i)}return r}function r3(e){for(var t=1;t"u"&&(r=t,t=void 0),typeof r<"u"){if(typeof r!="function")throw new Error(Da(1));return r(B6)(e,t)}if(typeof e!="function")throw new Error(Da(2));var s=e,o=t,a=[],n=a,l=!1;function c(){n===a&&(n=a.slice())}function u(){if(l)throw new Error(Da(3));return o}function f(m){if(typeof m!="function")throw new Error(Da(4));if(l)throw new Error(Da(5));var y=!0;return c(),n.push(m),function(){if(y){if(l)throw new Error(Da(6));y=!1,c();var g=n.indexOf(m);n.splice(g,1),a=null}}}function d(m){if(!zX(m))throw new Error(Da(7));if(typeof m.type>"u")throw new Error(Da(8));if(l)throw new Error(Da(9));try{l=!0,o=s(o,m)}finally{l=!1}for(var y=a=n,v=0;vq6=e,HX=()=>q6,s3=Symbol.for("react-redux-context"),u3=typeof globalThis<"u"?globalThis:{};function VX(){var e;if(!$e.createContext)return{};const t=(e=u3[s3])!=null?e:u3[s3]=new Map;let r=t.get($e.createContext);return r||(r=$e.createContext(null),t.set($e.createContext,r)),r}const W6=VX(),GX=()=>{throw new Error("uSES not initialized!")},YX=["initMapStateToProps","initMapDispatchToProps","initMergeProps"];function XX(e,t,r,i,{areStatesEqual:s,areOwnPropsEqual:o,areStatePropsEqual:a}){let n=!1,l,c,u,f,d;function p(g,b){return l=g,c=b,u=e(l,c),f=t(i,c),d=r(u,f,c),n=!0,d}function h(){return u=e(l,c),t.dependsOnOwnProps&&(f=t(i,c)),d=r(u,f,c),d}function m(){return e.dependsOnOwnProps&&(u=e(l,c)),t.dependsOnOwnProps&&(f=t(i,c)),d=r(u,f,c),d}function y(){const g=e(l,c),b=!a(g,u);return u=g,b&&(d=r(u,f,c)),d}function v(g,b){const w=!o(b,c),_=!s(g,l,b,c);return l=g,c=b,w&&_?h():w?m():_?y():d}return function(b,w){return n?v(b,w):p(b,w)}}function ZX(e,t){let{initMapStateToProps:r,initMapDispatchToProps:i,initMergeProps:s}=t,o=wn(t,YX);const a=r(e,o),n=i(e,o),l=s(e,o);return XX(a,n,l,e,o)}function KX(e,t){const r={};for(const i in e){const s=e[i];typeof s=="function"&&(r[i]=(...o)=>t(s(...o)))}return r}function uv(e){return function(r){const i=e(r);function s(){return i}return s.dependsOnOwnProps=!1,s}}function c3(e){return e.dependsOnOwnProps?!!e.dependsOnOwnProps:e.length!==1}function U6(e,t){return function(i,{displayName:s}){const o=function(n,l){return o.dependsOnOwnProps?o.mapToProps(n,l):o.mapToProps(n,void 0)};return o.dependsOnOwnProps=!0,o.mapToProps=function(n,l){o.mapToProps=e,o.dependsOnOwnProps=c3(e);let c=o(n,l);return typeof c=="function"&&(o.mapToProps=c,o.dependsOnOwnProps=c3(c),c=o(n,l)),c},o}}function $1(e,t){return(r,i)=>{throw new Error(`Invalid value of type ${typeof e} for ${t} argument when connecting component ${i.wrappedComponentName}.`)}}function JX(e){return e&&typeof e=="object"?uv(t=>KX(e,t)):e?typeof e=="function"?U6(e):$1(e,"mapDispatchToProps"):uv(t=>({dispatch:t}))}function QX(e){return e?typeof e=="function"?U6(e):$1(e,"mapStateToProps"):uv(()=>({}))}function eZ(e,t,r){return ot({},r,e,t)}function tZ(e){return function(r,{displayName:i,areMergedPropsEqual:s}){let o=!1,a;return function(l,c,u){const f=e(l,c,u);return o?s(f,a)||(a=f):(o=!0,a=f),a}}}function nZ(e){return e?typeof e=="function"?tZ(e):$1(e,"mergeProps"):()=>eZ}function rZ(){const e=HX();let t=null,r=null;return{clear(){t=null,r=null},notify(){e(()=>{let i=t;for(;i;)i.callback(),i=i.next})},get(){let i=[],s=t;for(;s;)i.push(s),s=s.next;return i},subscribe(i){let s=!0,o=r={callback:i,next:null,prev:r};return o.prev?o.prev.next=o:t=o,function(){!s||t===null||(s=!1,o.next?o.next.prev=o.prev:r=o.prev,o.prev?o.prev.next=o.next:t=o.next)}}}}const f3={notify(){},get:()=>[]};function H6(e,t){let r,i=f3,s=0,o=!1;function a(m){u();const y=i.subscribe(m);let v=!1;return()=>{v||(v=!0,y(),f())}}function n(){i.notify()}function l(){h.onStateChange&&h.onStateChange()}function c(){return o}function u(){s++,r||(r=t?t.addNestedSub(l):e.subscribe(l),i=rZ())}function f(){s--,r&&s===0&&(r(),r=void 0,i.clear(),i=f3)}function d(){o||(o=!0,u())}function p(){o&&(o=!1,f())}const h={addNestedSub:a,notifyNestedSubs:n,handleChangeWrapper:l,isSubscribed:c,trySubscribe:d,tryUnsubscribe:p,getListeners:()=>i};return h}const aZ=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u",ld=aZ?$e.useLayoutEffect:$e.useEffect;function d3(e,t){return e===t?e!==0||t!==0||1/e===1/t:e!==e&&t!==t}function zm(e,t){if(d3(e,t))return!0;if(typeof e!="object"||e===null||typeof t!="object"||t===null)return!1;const r=Object.keys(e),i=Object.keys(t);if(r.length!==i.length)return!1;for(let s=0;s{V6=e},lZ=[null,null];function sZ(e,t,r){ld(()=>e(...t),r)}function uZ(e,t,r,i,s,o){e.current=i,r.current=!1,s.current&&(s.current=null,o())}function cZ(e,t,r,i,s,o,a,n,l,c,u){if(!e)return()=>{};let f=!1,d=null;const p=()=>{if(f||!n.current)return;const m=t.getState();let y,v;try{y=i(m,s.current)}catch(g){v=g,d=g}v||(d=null),y===o.current?a.current||c():(o.current=y,l.current=y,a.current=!0,u())};return r.onStateChange=p,r.trySubscribe(),p(),()=>{if(f=!0,r.tryUnsubscribe(),r.onStateChange=null,d)throw d}}function fZ(e,t){return e===t}function G6(e,t,r,{pure:i,areStatesEqual:s=fZ,areOwnPropsEqual:o=zm,areStatePropsEqual:a=zm,areMergedPropsEqual:n=zm,forwardRef:l=!1,context:c=W6}={}){const u=c,f=QX(e),d=JX(t),p=nZ(r),h=!!e;return y=>{const v=y.displayName||y.name||"Component",g=`Connect(${v})`,b={shouldHandleStateChanges:h,displayName:g,wrappedComponentName:v,WrappedComponent:y,initMapStateToProps:f,initMapDispatchToProps:d,initMergeProps:p,areStatesEqual:s,areStatePropsEqual:a,areOwnPropsEqual:o,areMergedPropsEqual:n};function w(k){const[T,S,M]=$e.useMemo(()=>{const{reactReduxForwardedRef:K}=k,Q=wn(k,iZ);return[k.context,K,Q]},[k]),C=$e.useMemo(()=>T&&T.Consumer&&UR.isContextConsumer($e.createElement(T.Consumer,null))?T:u,[T,u]),A=$e.useContext(C),D=!!k.store&&!!k.store.getState&&!!k.store.dispatch,O=!!A&&!!A.store,R=D?k.store:A.store,$=O?A.getServerState:R.getState,P=$e.useMemo(()=>ZX(R.dispatch,b),[R]),[z,B]=$e.useMemo(()=>{if(!h)return lZ;const K=H6(R,D?void 0:A.subscription),Q=K.notifyNestedSubs.bind(K);return[K,Q]},[R,D,A]),N=$e.useMemo(()=>D?A:ot({},A,{subscription:z}),[D,A,z]),j=$e.useRef(),F=$e.useRef(M),E=$e.useRef(),W=$e.useRef(!1);$e.useRef(!1);const H=$e.useRef(!1),L=$e.useRef();ld(()=>(H.current=!0,()=>{H.current=!1}),[]);const q=$e.useMemo(()=>()=>E.current&&M===F.current?E.current:P(R.getState(),M),[R,M]),U=$e.useMemo(()=>Q=>z?cZ(h,R,z,P,F,j,W,H,E,B,Q):()=>{},[z]);sZ(uZ,[F,j,W,M,E,B]);let J;try{J=V6(U,q,$?()=>P($(),M):q)}catch(K){throw L.current&&(K.message+=` +The error may be correlated with this previous error: +${L.current.stack} + +`),K}ld(()=>{L.current=void 0,E.current=void 0,j.current=J});const te=$e.useMemo(()=>$e.createElement(y,ot({},J,{ref:S})),[S,y,J]);return $e.useMemo(()=>h?$e.createElement(C.Provider,{value:N},te):te,[C,te,N])}const x=$e.memo(w);if(x.WrappedComponent=y,x.displayName=w.displayName=g,l){const T=$e.forwardRef(function(M,C){return $e.createElement(x,ot({},M,{reactReduxForwardedRef:C}))});return T.displayName=g,T.WrappedComponent=y,Sw(T,y)}return Sw(x,y)}}function dZ({store:e,context:t,children:r,serverState:i,stabilityCheck:s="once",noopCheck:o="once"}){const a=$e.useMemo(()=>{const c=H6(e);return{store:e,subscription:c,getServerState:i?()=>i:void 0,stabilityCheck:s,noopCheck:o}},[e,i,s,o]),n=$e.useMemo(()=>e.getState(),[e]);ld(()=>{const{subscription:c}=a;return c.onStateChange=c.notifyNestedSubs,c.trySubscribe(),n!==e.getState()&&c.notifyNestedSubs(),()=>{c.tryUnsubscribe(),c.onStateChange=void 0}},[a,n]);const l=t||W6;return $e.createElement(l.Provider,{value:a},r)}oZ(d4.useSyncExternalStore);UX(jy.unstable_batchedUpdates);function pZ(e,t){if(e.length!==t.length)return!1;for(var r=0;r{const o=xZ(r,s.options);return e.addEventListener(s.eventName,s.fn,o),function(){e.removeEventListener(s.eventName,s.fn,o)}});return function(){i.forEach(o=>{o()})}}const wZ="Invariant failed";class cd extends Error{}cd.prototype.toString=function(){return this.message};function cn(e,t){if(!e)throw new cd(wZ)}class _Z extends tt.Component{constructor(){super(...arguments),this.callbacks=null,this.unbind=io,this.onWindowError=t=>{const r=this.getCallbacks();r.isDragging()&&r.tryAbort(),t.error instanceof cd&&t.preventDefault()},this.getCallbacks=()=>{if(!this.callbacks)throw new Error("Unable to find AppCallbacks in ");return this.callbacks},this.setCallbacks=t=>{this.callbacks=t}}componentDidMount(){this.unbind=Za(window,[{eventName:"error",fn:this.onWindowError}])}componentDidCatch(t){if(t instanceof cd){this.setState({});return}throw t}componentWillUnmount(){this.unbind()}render(){return this.props.children(this.setCallbacks)}}const TZ=` + Press space bar to start a drag. + When dragging you can use the arrow keys to move the item around and escape to cancel. + Some screen readers may require you to be in focus mode or to use your pass through key +`,fd=e=>e+1,kZ=e=>` + You have lifted an item in position ${fd(e.source.index)} +`,J6=(e,t)=>{const r=e.droppableId===t.droppableId,i=fd(e.index),s=fd(t.index);return r?` + You have moved the item from position ${i} + to position ${s} + `:` + You have moved the item from position ${i} + in list ${e.droppableId} + to list ${t.droppableId} + in position ${s} + `},Q6=(e,t,r)=>t.droppableId===r.droppableId?` + The item ${e} + has been combined with ${r.draggableId}`:` + The item ${e} + in list ${t.droppableId} + has been combined with ${r.draggableId} + in list ${r.droppableId} + `,SZ=e=>{const t=e.destination;if(t)return J6(e.source,t);const r=e.combine;return r?Q6(e.draggableId,e.source,r):"You are over an area that cannot be dropped on"},g3=e=>` + The item has returned to its starting position + of ${fd(e.index)} +`,MZ=e=>{if(e.reason==="CANCEL")return` + Movement cancelled. + ${g3(e.source)} + `;const t=e.destination,r=e.combine;return t?` + You have dropped the item. + ${J6(e.source,t)} + `:r?` + You have dropped the item. + ${Q6(e.draggableId,e.source,r)} + `:` + The item has been dropped while not over a drop area. + ${g3(e.source)} + `},CZ={dragHandleUsageInstructions:TZ,onDragStart:kZ,onDragUpdate:SZ,onDragEnd:MZ};var Ff=CZ;const la={x:0,y:0},va=(e,t)=>({x:e.x+t.x,y:e.y+t.y}),ja=(e,t)=>({x:e.x-t.x,y:e.y-t.y}),oo=(e,t)=>e.x===t.x&&e.y===t.y,es=e=>({x:e.x!==0?-e.x:0,y:e.y!==0?-e.y:0}),Fo=function(e,t,r){return r===void 0&&(r=0),e==="x"?{x:t,y:r}:{x:r,y:t}},Hu=(e,t)=>Math.sqrt((t.x-e.x)**2+(t.y-e.y)**2),m3=(e,t)=>Math.min(...t.map(r=>Hu(e,r))),eO=e=>t=>({x:e(t.x),y:e(t.y)});var OZ=(e,t)=>{const r=ui({top:Math.max(t.top,e.top),right:Math.min(t.right,e.right),bottom:Math.min(t.bottom,e.bottom),left:Math.max(t.left,e.left)});return r.width<=0||r.height<=0?null:r};const _c=(e,t)=>({top:e.top+t.y,left:e.left+t.x,bottom:e.bottom+t.y,right:e.right+t.x}),v3=e=>[{x:e.left,y:e.top},{x:e.right,y:e.top},{x:e.left,y:e.bottom},{x:e.right,y:e.bottom}],PZ={top:0,right:0,bottom:0,left:0},AZ=(e,t)=>t?_c(e,t.scroll.diff.displacement):e,DZ=(e,t,r)=>r&&r.increasedBy?{...e,[t.end]:e[t.end]+r.increasedBy[t.line]}:e,EZ=(e,t)=>t&&t.shouldClipSubject?OZ(t.pageMarginBox,e):ui(e);var Fl=e=>{let{page:t,withPlaceholder:r,axis:i,frame:s}=e;const o=AZ(t.marginBox,s),a=DZ(o,i,r),n=EZ(a,s);return{page:t,withPlaceholder:r,active:n}},N1=(e,t)=>{e.frame||cn(!1);const r=e.frame,i=ja(t,r.scroll.initial),s=es(i),o={...r,scroll:{initial:r.scroll.initial,current:t,diff:{value:i,displacement:s},max:r.scroll.max}},a=Fl({page:e.subject.page,withPlaceholder:e.subject.withPlaceholder,axis:e.axis,frame:o});return{...e,frame:o,subject:a}};const tO=oa(e=>e.reduce((t,r)=>(t[r.descriptor.id]=r,t),{})),nO=oa(e=>e.reduce((t,r)=>(t[r.descriptor.id]=r,t),{})),dp=oa(e=>Object.values(e)),RZ=oa(e=>Object.values(e));var ts=oa((e,t)=>RZ(t).filter(i=>e===i.descriptor.droppableId).sort((i,s)=>i.descriptor.index-s.descriptor.index));function B1(e){return e.at&&e.at.type==="REORDER"?e.at.destination:null}function pp(e){return e.at&&e.at.type==="COMBINE"?e.at.combine:null}var hp=oa((e,t)=>t.filter(r=>r.descriptor.id!==e.descriptor.id)),LZ=e=>{let{isMovingForward:t,draggable:r,destination:i,insideDestination:s,previousImpact:o}=e;if(!i.isCombineEnabled||!B1(o))return null;function n(h){const m={type:"COMBINE",combine:{draggableId:h,droppableId:i.descriptor.id}};return{...o,at:m}}const l=o.displaced.all,c=l.length?l[0]:null;if(t)return c?n(c):null;const u=hp(r,s);if(!c){if(!u.length)return null;const h=u[u.length-1];return n(h.descriptor.id)}const f=u.findIndex(h=>h.descriptor.id===c);f===-1&&cn(!1);const d=f-1;if(d<0)return null;const p=u[d];return n(p.descriptor.id)},ns=(e,t)=>e.descriptor.droppableId===t.descriptor.id;const rO={point:la,value:0},Vu={invisible:{},visible:{},all:[]},IZ={displaced:Vu,displacedBy:rO,at:null};var $Z=IZ,Ja=(e,t)=>r=>e<=r&&r<=t,aO=e=>{const t=Ja(e.top,e.bottom),r=Ja(e.left,e.right);return i=>{if(t(i.top)&&t(i.bottom)&&r(i.left)&&r(i.right))return!0;const o=t(i.top)||t(i.bottom),a=r(i.left)||r(i.right);if(o&&a)return!0;const l=i.tope.bottom,c=i.lefte.right;return l&&c?!0:l&&a||c&&o}},FZ=e=>{const t=Ja(e.top,e.bottom),r=Ja(e.left,e.right);return i=>t(i.top)&&t(i.bottom)&&r(i.left)&&r(i.right)};const z1={direction:"vertical",line:"y",crossAxisLine:"x",start:"top",end:"bottom",size:"height",crossAxisStart:"left",crossAxisEnd:"right",crossAxisSize:"width"},iO={direction:"horizontal",line:"x",crossAxisLine:"y",start:"left",end:"right",size:"width",crossAxisStart:"top",crossAxisEnd:"bottom",crossAxisSize:"height"};var jZ=e=>t=>{const r=Ja(t.top,t.bottom),i=Ja(t.left,t.right);return s=>e===z1?r(s.top)&&r(s.bottom):i(s.left)&&i(s.right)};const NZ=(e,t)=>{const r=t.frame?t.frame.scroll.diff.displacement:la;return _c(e,r)},BZ=(e,t,r)=>t.subject.active?r(t.subject.active)(e):!1,zZ=(e,t,r)=>r(t)(e),q1=e=>{let{target:t,destination:r,viewport:i,withDroppableDisplacement:s,isVisibleThroughFrameFn:o}=e;const a=s?NZ(t,r):t;return BZ(a,r,o)&&zZ(a,i,o)},qZ=e=>q1({...e,isVisibleThroughFrameFn:aO}),oO=e=>q1({...e,isVisibleThroughFrameFn:FZ}),WZ=e=>q1({...e,isVisibleThroughFrameFn:jZ(e.destination.axis)}),UZ=(e,t,r)=>{if(typeof r=="boolean")return r;if(!t)return!0;const{invisible:i,visible:s}=t;if(i[e])return!1;const o=s[e];return o?o.shouldAnimate:!0};function HZ(e,t){const r=e.page.marginBox,i={top:t.point.y,right:0,bottom:0,left:t.point.x};return ui(F1(r,i))}function Gu(e){let{afterDragging:t,destination:r,displacedBy:i,viewport:s,forceShouldAnimate:o,last:a}=e;return t.reduce(function(l,c){const u=HZ(c,i),f=c.descriptor.id;if(l.all.push(f),!qZ({target:u,destination:r,viewport:s,withDroppableDisplacement:!0}))return l.invisible[c.descriptor.id]=!0,l;const p=UZ(f,a,o),h={draggableId:f,shouldAnimate:p};return l.visible[f]=h,l},{all:[],visible:{},invisible:{}})}function VZ(e,t){if(!e.length)return 0;const r=e[e.length-1].descriptor.index;return t.inHomeList?r:r+1}function y3(e){let{insideDestination:t,inHomeList:r,displacedBy:i,destination:s}=e;const o=VZ(t,{inHomeList:r});return{displaced:Vu,displacedBy:i,at:{type:"REORDER",destination:{droppableId:s.descriptor.id,index:o}}}}function dd(e){let{draggable:t,insideDestination:r,destination:i,viewport:s,displacedBy:o,last:a,index:n,forceShouldAnimate:l}=e;const c=ns(t,i);if(n==null)return y3({insideDestination:r,inHomeList:c,displacedBy:o,destination:i});const u=r.find(m=>m.descriptor.index===n);if(!u)return y3({insideDestination:r,inHomeList:c,displacedBy:o,destination:i});const f=hp(t,r),d=r.indexOf(u),p=f.slice(d);return{displaced:Gu({afterDragging:p,destination:i,displacedBy:o,last:a,viewport:s.frame,forceShouldAnimate:l}),displacedBy:o,at:{type:"REORDER",destination:{droppableId:i.descriptor.id,index:n}}}}function co(e,t){return!!t.effected[e]}var GZ=e=>{let{isMovingForward:t,destination:r,draggables:i,combine:s,afterCritical:o}=e;if(!r.isCombineEnabled)return null;const a=s.draggableId,l=i[a].descriptor.index;return co(a,o)?t?l:l-1:t?l+1:l},YZ=e=>{let{isMovingForward:t,isInHomeList:r,insideDestination:i,location:s}=e;if(!i.length)return null;const o=s.index,a=t?o+1:o-1,n=i[0].descriptor.index,l=i[i.length-1].descriptor.index,c=r?l:l+1;return ac?null:a},XZ=e=>{let{isMovingForward:t,isInHomeList:r,draggable:i,draggables:s,destination:o,insideDestination:a,previousImpact:n,viewport:l,afterCritical:c}=e;const u=n.at;if(u||cn(!1),u.type==="REORDER"){const d=YZ({isMovingForward:t,isInHomeList:r,location:u.destination,insideDestination:a});return d==null?null:dd({draggable:i,insideDestination:a,destination:o,viewport:l,last:n.displaced,displacedBy:n.displacedBy,index:d})}const f=GZ({isMovingForward:t,destination:o,displaced:n.displaced,draggables:s,combine:u.combine,afterCritical:c});return f==null?null:dd({draggable:i,insideDestination:a,destination:o,viewport:l,last:n.displaced,displacedBy:n.displacedBy,index:f})},ZZ=e=>{let{displaced:t,afterCritical:r,combineWith:i,displacedBy:s}=e;const o=!!(t.visible[i]||t.invisible[i]);return co(i,r)?o?la:es(s.point):o?s.point:la},KZ=e=>{let{afterCritical:t,impact:r,draggables:i}=e;const s=pp(r);s||cn(!1);const o=s.draggableId,a=i[o].page.borderBox.center,n=ZZ({displaced:r.displaced,afterCritical:t,combineWith:o,displacedBy:r.displacedBy});return va(a,n)};const lO=(e,t)=>t.margin[e.start]+t.borderBox[e.size]/2,JZ=(e,t)=>t.margin[e.end]+t.borderBox[e.size]/2,W1=(e,t,r)=>t[e.crossAxisStart]+r.margin[e.crossAxisStart]+r.borderBox[e.crossAxisSize]/2,b3=e=>{let{axis:t,moveRelativeTo:r,isMoving:i}=e;return Fo(t.line,r.marginBox[t.end]+lO(t,i),W1(t,r.marginBox,i))},x3=e=>{let{axis:t,moveRelativeTo:r,isMoving:i}=e;return Fo(t.line,r.marginBox[t.start]-JZ(t,i),W1(t,r.marginBox,i))},QZ=e=>{let{axis:t,moveInto:r,isMoving:i}=e;return Fo(t.line,r.contentBox[t.start]+lO(t,i),W1(t,r.contentBox,i))};var eK=e=>{let{impact:t,draggable:r,draggables:i,droppable:s,afterCritical:o}=e;const a=ts(s.descriptor.id,i),n=r.page,l=s.axis;if(!a.length)return QZ({axis:l,moveInto:s.page,isMoving:n});const{displaced:c,displacedBy:u}=t,f=c.all[0];if(f){const p=i[f];if(co(f,o))return x3({axis:l,moveRelativeTo:p.page,isMoving:n});const h=sd(p.page,u.point);return x3({axis:l,moveRelativeTo:h,isMoving:n})}const d=a[a.length-1];if(d.descriptor.id===r.descriptor.id)return n.borderBox.center;if(co(d.descriptor.id,o)){const p=sd(d.page,es(o.displacedBy.point));return b3({axis:l,moveRelativeTo:p,isMoving:n})}return b3({axis:l,moveRelativeTo:d.page,isMoving:n})},cv=(e,t)=>{const r=e.frame;return r?va(t,r.scroll.diff.displacement):t};const tK=e=>{let{impact:t,draggable:r,droppable:i,draggables:s,afterCritical:o}=e;const a=r.page.borderBox.center,n=t.at;return!i||!n?a:n.type==="REORDER"?eK({impact:t,draggable:r,draggables:s,droppable:i,afterCritical:o}):KZ({impact:t,draggables:s,afterCritical:o})};var gp=e=>{const t=tK(e),r=e.droppable;return r?cv(r,t):t},sO=(e,t)=>{const r=ja(t,e.scroll.initial),i=es(r);return{frame:ui({top:t.y,bottom:t.y+e.frame.height,left:t.x,right:t.x+e.frame.width}),scroll:{initial:e.scroll.initial,max:e.scroll.max,current:t,diff:{value:r,displacement:i}}}};function w3(e,t){return e.map(r=>t[r])}function nK(e,t){for(let r=0;r{let{impact:t,viewport:r,destination:i,draggables:s,maxScrollChange:o}=e;const a=sO(r,va(r.scroll.current,o)),n=i.frame?N1(i,va(i.frame.scroll.current,o)):i,l=t.displaced,c=Gu({afterDragging:w3(l.all,s),destination:i,displacedBy:t.displacedBy,viewport:a.frame,last:l,forceShouldAnimate:!1}),u=Gu({afterDragging:w3(l.all,s),destination:n,displacedBy:t.displacedBy,viewport:r.frame,last:l,forceShouldAnimate:!1}),f={},d={},p=[l,c,u];return l.all.forEach(m=>{const y=nK(m,p);if(y){d[m]=y;return}f[m]=!0}),{...t,displaced:{all:l.all,invisible:f,visible:d}}},aK=(e,t)=>va(e.scroll.diff.displacement,t),U1=e=>{let{pageBorderBoxCenter:t,draggable:r,viewport:i}=e;const s=aK(i,t),o=ja(s,r.page.borderBox.center);return va(r.client.borderBox.center,o)},uO=e=>{let{draggable:t,destination:r,newPageBorderBoxCenter:i,viewport:s,withDroppableDisplacement:o,onlyOnMainAxis:a=!1}=e;const n=ja(i,t.page.borderBox.center),c={target:_c(t.page.borderBox,n),destination:r,withDroppableDisplacement:o,viewport:s};return a?WZ(c):oO(c)},iK=e=>{let{isMovingForward:t,draggable:r,destination:i,draggables:s,previousImpact:o,viewport:a,previousPageBorderBoxCenter:n,previousClientSelection:l,afterCritical:c}=e;if(!i.isEnabled)return null;const u=ts(i.descriptor.id,s),f=ns(r,i),d=LZ({isMovingForward:t,draggable:r,destination:i,insideDestination:u,previousImpact:o})||XZ({isMovingForward:t,isInHomeList:f,draggable:r,draggables:s,destination:i,insideDestination:u,previousImpact:o,viewport:a,afterCritical:c});if(!d)return null;const p=gp({impact:d,draggable:r,droppable:i,draggables:s,afterCritical:c});if(uO({draggable:r,destination:i,newPageBorderBoxCenter:p,viewport:a.frame,withDroppableDisplacement:!1,onlyOnMainAxis:!0}))return{clientSelection:U1({pageBorderBoxCenter:p,draggable:r,viewport:a}),impact:d,scrollJumpRequest:null};const m=ja(p,n),y=rK({impact:d,viewport:a,destination:i,draggables:s,maxScrollChange:m});return{clientSelection:l,impact:y,scrollJumpRequest:m}};const Sa=e=>{const t=e.subject.active;return t||cn(!1),t};var oK=e=>{let{isMovingForward:t,pageBorderBoxCenter:r,source:i,droppables:s,viewport:o}=e;const a=i.subject.active;if(!a)return null;const n=i.axis,l=Ja(a[n.start],a[n.end]),c=dp(s).filter(f=>f!==i).filter(f=>f.isEnabled).filter(f=>!!f.subject.active).filter(f=>aO(o.frame)(Sa(f))).filter(f=>{const d=Sa(f);return t?a[n.crossAxisEnd]{const d=Sa(f),p=Ja(d[n.start],d[n.end]);return l(d[n.start])||l(d[n.end])||p(a[n.start])||p(a[n.end])}).sort((f,d)=>{const p=Sa(f)[n.crossAxisStart],h=Sa(d)[n.crossAxisStart];return t?p-h:h-p}).filter((f,d,p)=>Sa(f)[n.crossAxisStart]===Sa(p[0])[n.crossAxisStart]);if(!c.length)return null;if(c.length===1)return c[0];const u=c.filter(f=>Ja(Sa(f)[n.start],Sa(f)[n.end])(r[n.line]));return u.length===1?u[0]:u.length>1?u.sort((f,d)=>Sa(f)[n.start]-Sa(d)[n.start])[0]:c.sort((f,d)=>{const p=m3(r,v3(Sa(f))),h=m3(r,v3(Sa(d)));return p!==h?p-h:Sa(f)[n.start]-Sa(d)[n.start]})[0]};const _3=(e,t)=>{const r=e.page.borderBox.center;return co(e.descriptor.id,t)?ja(r,t.displacedBy.point):r},lK=(e,t)=>{const r=e.page.borderBox;return co(e.descriptor.id,t)?_c(r,es(t.displacedBy.point)):r};var sK=e=>{let{pageBorderBoxCenter:t,viewport:r,destination:i,insideDestination:s,afterCritical:o}=e;return s.filter(n=>oO({target:lK(n,o),destination:i,viewport:r.frame,withDroppableDisplacement:!0})).sort((n,l)=>{const c=Hu(t,cv(i,_3(n,o))),u=Hu(t,cv(i,_3(l,o)));return c{const i=e.axis;if(e.descriptor.mode==="virtual")return Fo(i.line,t[i.line]);const s=e.subject.page.contentBox[i.size],l=ts(e.descriptor.id,r).reduce((c,u)=>c+u.client.marginBox[i.size],0)+t[i.line]-s;return l<=0?null:Fo(i.line,l)},cO=(e,t)=>({...e,scroll:{...e.scroll,max:t}}),fO=(e,t,r)=>{const i=e.frame;ns(t,e)&&cn(!1),e.subject.withPlaceholder&&cn(!1);const s=Tc(e.axis,t.displaceBy).point,o=uK(e,s,r),a={placeholderSize:s,increasedBy:o,oldFrameMaxScroll:e.frame?e.frame.scroll.max:null};if(!i){const u=Fl({page:e.subject.page,withPlaceholder:a,axis:e.axis,frame:e.frame});return{...e,subject:u}}const n=o?va(i.scroll.max,o):i.scroll.max,l=cO(i,n),c=Fl({page:e.subject.page,withPlaceholder:a,axis:e.axis,frame:l});return{...e,subject:c,frame:l}},cK=e=>{const t=e.subject.withPlaceholder;t||cn(!1);const r=e.frame;if(!r){const a=Fl({page:e.subject.page,axis:e.axis,frame:null,withPlaceholder:null});return{...e,subject:a}}const i=t.oldFrameMaxScroll;i||cn(!1);const s=cO(r,i),o=Fl({page:e.subject.page,axis:e.axis,frame:s,withPlaceholder:null});return{...e,subject:o,frame:s}};var fK=e=>{let{previousPageBorderBoxCenter:t,moveRelativeTo:r,insideDestination:i,draggable:s,draggables:o,destination:a,viewport:n,afterCritical:l}=e;if(!r){if(i.length)return null;const d={displaced:Vu,displacedBy:rO,at:{type:"REORDER",destination:{droppableId:a.descriptor.id,index:0}}},p=gp({impact:d,draggable:s,droppable:a,draggables:o,afterCritical:l}),h=ns(s,a)?a:fO(a,s,o);return uO({draggable:s,destination:h,newPageBorderBoxCenter:p,viewport:n.frame,withDroppableDisplacement:!1,onlyOnMainAxis:!0})?d:null}const c=t[a.axis.line]<=r.page.borderBox.center[a.axis.line],u=(()=>{const d=r.descriptor.index;return r.descriptor.id===s.descriptor.id||c?d:d+1})(),f=Tc(a.axis,s.displaceBy);return dd({draggable:s,insideDestination:i,destination:a,viewport:n,displacedBy:f,last:Vu,index:u})},dK=e=>{let{isMovingForward:t,previousPageBorderBoxCenter:r,draggable:i,isOver:s,draggables:o,droppables:a,viewport:n,afterCritical:l}=e;const c=oK({isMovingForward:t,pageBorderBoxCenter:r,source:s,droppables:a,viewport:n});if(!c)return null;const u=ts(c.descriptor.id,o),f=sK({pageBorderBoxCenter:r,viewport:n,destination:c,insideDestination:u,afterCritical:l}),d=fK({previousPageBorderBoxCenter:r,destination:c,draggable:i,draggables:o,moveRelativeTo:f,insideDestination:u,viewport:n,afterCritical:l});if(!d)return null;const p=gp({impact:d,draggable:i,droppable:c,draggables:o,afterCritical:l});return{clientSelection:U1({pageBorderBoxCenter:p,draggable:i,viewport:n}),impact:d,scrollJumpRequest:null}},za=e=>{const t=e.at;return t?t.type==="REORDER"?t.destination.droppableId:t.combine.droppableId:null};const pK=(e,t)=>{const r=za(e);return r?t[r]:null};var hK=e=>{let{state:t,type:r}=e;const i=pK(t.impact,t.dimensions.droppables),s=!!i,o=t.dimensions.droppables[t.critical.droppable.id],a=i||o,n=a.axis.direction,l=n==="vertical"&&(r==="MOVE_UP"||r==="MOVE_DOWN")||n==="horizontal"&&(r==="MOVE_LEFT"||r==="MOVE_RIGHT");if(l&&!s)return null;const c=r==="MOVE_DOWN"||r==="MOVE_RIGHT",u=t.dimensions.draggables[t.critical.draggable.id],f=t.current.page.borderBoxCenter,{draggables:d,droppables:p}=t.dimensions;return l?iK({isMovingForward:c,previousPageBorderBoxCenter:f,draggable:u,destination:a,draggables:d,viewport:t.viewport,previousClientSelection:t.current.client.selection,previousImpact:t.impact,afterCritical:t.afterCritical}):dK({isMovingForward:c,previousPageBorderBoxCenter:f,draggable:u,isOver:a,draggables:d,droppables:p,viewport:t.viewport,afterCritical:t.afterCritical})};function ko(e){return e.phase==="DRAGGING"||e.phase==="COLLECTING"}function dO(e){const t=Ja(e.top,e.bottom),r=Ja(e.left,e.right);return function(s){return t(s.y)&&r(s.x)}}function gK(e,t){return e.leftt.left&&e.topt.top}function mK(e){let{pageBorderBox:t,draggable:r,candidates:i}=e;const s=r.page.borderBox.center,o=i.map(a=>{const n=a.axis,l=Fo(a.axis.line,t.center[n.line],a.page.borderBox.center[n.crossAxisLine]);return{id:a.descriptor.id,distance:Hu(s,l)}}).sort((a,n)=>n.distance-a.distance);return o[0]?o[0].id:null}function vK(e){let{pageBorderBox:t,draggable:r,droppables:i}=e;const s=dp(i).filter(o=>{if(!o.isEnabled)return!1;const a=o.subject.active;if(!a||!gK(t,a))return!1;if(dO(a)(t.center))return!0;const n=o.axis,l=a.center[n.crossAxisLine],c=t[n.crossAxisStart],u=t[n.crossAxisEnd],f=Ja(a[n.crossAxisStart],a[n.crossAxisEnd]),d=f(c),p=f(u);return!d&&!p?!0:d?cl});return s.length?s.length===1?s[0].descriptor.id:mK({pageBorderBox:t,draggable:r,candidates:s}):null}const pO=(e,t)=>ui(_c(e,t));var yK=(e,t)=>{const r=e.frame;return r?pO(t,r.scroll.diff.value):t};function hO(e){let{displaced:t,id:r}=e;return!!(t.visible[r]||t.invisible[r])}function bK(e){let{draggable:t,closest:r,inHomeList:i}=e;return r?i&&r.descriptor.index>t.descriptor.index?r.descriptor.index-1:r.descriptor.index:null}var xK=e=>{let{pageBorderBoxWithDroppableScroll:t,draggable:r,destination:i,insideDestination:s,last:o,viewport:a,afterCritical:n}=e;const l=i.axis,c=Tc(i.axis,r.displaceBy),u=c.value,f=t[l.start],d=t[l.end],h=hp(r,s).find(y=>{const v=y.descriptor.id,g=y.page.borderBox.center[l.line],b=co(v,n),w=hO({displaced:o,id:v});return b?w?d<=g:f{let{draggable:t,pageBorderBoxWithDroppableScroll:r,previousImpact:i,destination:s,insideDestination:o,afterCritical:a}=e;if(!s.isCombineEnabled)return null;const n=s.axis,l=Tc(s.axis,t.displaceBy),c=l.value,u=r[n.start],f=r[n.end],p=hp(t,o).find(m=>{const y=m.descriptor.id,v=m.page.borderBox,b=v[n.size]/wK,w=co(y,a),_=hO({displaced:i.displaced,id:y});return w?_?f>v[n.start]+b&&fv[n.start]-c+b&&uv[n.start]+c+b&&fv[n.start]+b&&u{let{pageOffset:t,draggable:r,draggables:i,droppables:s,previousImpact:o,viewport:a,afterCritical:n}=e;const l=pO(r.page.borderBox,t),c=vK({pageBorderBox:l,draggable:r,droppables:s});if(!c)return $Z;const u=s[c],f=ts(u.descriptor.id,i),d=yK(u,l);return _K({pageBorderBoxWithDroppableScroll:d,draggable:r,previousImpact:o,destination:u,insideDestination:f,afterCritical:n})||xK({pageBorderBoxWithDroppableScroll:d,draggable:r,destination:u,insideDestination:f,last:o.displaced,viewport:a,afterCritical:n})},H1=(e,t)=>({...e,[t.descriptor.id]:t});const TK=e=>{let{previousImpact:t,impact:r,droppables:i}=e;const s=za(t),o=za(r);if(!s||s===o)return i;const a=i[s];if(!a.subject.withPlaceholder)return i;const n=cK(a);return H1(i,n)};var kK=e=>{let{draggable:t,draggables:r,droppables:i,previousImpact:s,impact:o}=e;const a=TK({previousImpact:s,impact:o,droppables:i}),n=za(o);if(!n)return a;const l=i[n];if(ns(t,l)||l.subject.withPlaceholder)return a;const c=fO(l,t,r);return H1(a,c)},Lu=e=>{let{state:t,clientSelection:r,dimensions:i,viewport:s,impact:o,scrollJumpRequest:a}=e;const n=s||t.viewport,l=i||t.dimensions,c=r||t.current.client.selection,u=ja(c,t.initial.client.selection),f={offset:u,selection:c,borderBoxCenter:va(t.initial.client.borderBoxCenter,u)},d={selection:va(f.selection,n.scroll.current),borderBoxCenter:va(f.borderBoxCenter,n.scroll.current),offset:va(f.offset,n.scroll.diff.value)},p={client:f,page:d};if(t.phase==="COLLECTING")return{...t,dimensions:l,viewport:n,current:p};const h=l.draggables[t.critical.draggable.id],m=o||gO({pageOffset:d.offset,draggable:h,draggables:l.draggables,droppables:l.droppables,previousImpact:t.impact,viewport:n,afterCritical:t.afterCritical}),y=kK({draggable:h,impact:m,previousImpact:t.impact,draggables:l.draggables,droppables:l.droppables});return{...t,current:p,dimensions:{draggables:l.draggables,droppables:y},impact:m,viewport:n,scrollJumpRequest:a||null,forceShouldAnimate:a?!1:null}};function SK(e,t){return e.map(r=>t[r])}var mO=e=>{let{impact:t,viewport:r,draggables:i,destination:s,forceShouldAnimate:o}=e;const a=t.displaced,n=SK(a.all,i),l=Gu({afterDragging:n,destination:s,displacedBy:t.displacedBy,viewport:r.frame,forceShouldAnimate:o,last:a});return{...t,displaced:l}},vO=e=>{let{impact:t,draggable:r,droppable:i,draggables:s,viewport:o,afterCritical:a}=e;const n=gp({impact:t,draggable:r,draggables:s,droppable:i,afterCritical:a});return U1({pageBorderBoxCenter:n,draggable:r,viewport:o})},yO=e=>{let{state:t,dimensions:r,viewport:i}=e;t.movementMode!=="SNAP"&&cn(!1);const s=t.impact,o=i||t.viewport,a=r||t.dimensions,{draggables:n,droppables:l}=a,c=n[t.critical.draggable.id],u=za(s);u||cn(!1);const f=l[u],d=mO({impact:s,viewport:o,destination:f,draggables:n}),p=vO({impact:d,draggable:c,droppable:f,draggables:n,viewport:o,afterCritical:t.afterCritical});return Lu({impact:d,clientSelection:p,state:t,dimensions:a,viewport:o})},MK=e=>({index:e.index,droppableId:e.droppableId}),bO=e=>{let{draggable:t,home:r,draggables:i,viewport:s}=e;const o=Tc(r.axis,t.displaceBy),a=ts(r.descriptor.id,i),n=a.indexOf(t);n===-1&&cn(!1);const l=a.slice(n+1),c=l.reduce((p,h)=>(p[h.descriptor.id]=!0,p),{}),u={inVirtualList:r.descriptor.mode==="virtual",displacedBy:o,effected:c};return{impact:{displaced:Gu({afterDragging:l,destination:r,displacedBy:o,last:null,viewport:s.frame,forceShouldAnimate:!1}),displacedBy:o,at:{type:"REORDER",destination:MK(t.descriptor)}},afterCritical:u}},CK=(e,t)=>({draggables:e.draggables,droppables:H1(e.droppables,t)}),OK=e=>{let{draggable:t,offset:r,initialWindowScroll:i}=e;const s=sd(t.client,r),o=ud(s,i);return{...t,placeholder:{...t.placeholder,client:s},client:s,page:o}},PK=e=>{const t=e.frame;return t||cn(!1),t},AK=e=>{let{additions:t,updatedDroppables:r,viewport:i}=e;const s=i.scroll.diff.value;return t.map(o=>{const a=o.descriptor.droppableId,n=r[a],c=PK(n).scroll.diff.value,u=va(s,c);return OK({draggable:o,offset:u,initialWindowScroll:i.scroll.initial})})},DK=e=>{let{state:t,published:r}=e;const i=r.modified.map(g=>{const b=t.dimensions.droppables[g.droppableId];return N1(b,g.scroll)}),s={...t.dimensions.droppables,...tO(i)},o=nO(AK({additions:r.additions,updatedDroppables:s,viewport:t.viewport})),a={...t.dimensions.draggables,...o};r.removals.forEach(g=>{delete a[g]});const n={droppables:s,draggables:a},l=za(t.impact),c=l?n.droppables[l]:null,u=n.draggables[t.critical.draggable.id],f=n.droppables[t.critical.droppable.id],{impact:d,afterCritical:p}=bO({draggable:u,home:f,draggables:a,viewport:t.viewport}),h=c&&c.isCombineEnabled?t.impact:d,m=gO({pageOffset:t.current.page.offset,draggable:n.draggables[t.critical.draggable.id],draggables:n.draggables,droppables:n.droppables,previousImpact:h,viewport:t.viewport,afterCritical:p}),y={...t,phase:"DRAGGING",impact:m,onLiftImpact:d,dimensions:n,afterCritical:p,forceShouldAnimate:!1};return t.phase==="COLLECTING"?y:{...y,phase:"DROP_PENDING",reason:t.reason,isWaiting:!1}};const fv=e=>e.movementMode==="SNAP",Wm=(e,t,r)=>{const i=CK(e.dimensions,t);return!fv(e)||r?Lu({state:e,dimensions:i}):yO({state:e,dimensions:i})};function Um(e){return e.isDragging&&e.movementMode==="SNAP"?{...e,scrollJumpRequest:null}:e}const T3={phase:"IDLE",completed:null,shouldFlush:!1};var EK=function(e,t){if(e===void 0&&(e=T3),t.type==="FLUSH")return{...T3,shouldFlush:!0};if(t.type==="INITIAL_PUBLISH"){e.phase!=="IDLE"&&cn(!1);const{critical:r,clientSelection:i,viewport:s,dimensions:o,movementMode:a}=t.payload,n=o.draggables[r.draggable.id],l=o.droppables[r.droppable.id],c={selection:i,borderBoxCenter:n.client.borderBox.center,offset:la},u={client:c,page:{selection:va(c.selection,s.scroll.initial),borderBoxCenter:va(c.selection,s.scroll.initial),offset:va(c.selection,s.scroll.diff.value)}},f=dp(o.droppables).every(m=>!m.isFixedOnPage),{impact:d,afterCritical:p}=bO({draggable:n,home:l,draggables:o.draggables,viewport:s});return{phase:"DRAGGING",isDragging:!0,critical:r,movementMode:a,dimensions:o,initial:u,current:u,isWindowScrollAllowed:f,impact:d,afterCritical:p,onLiftImpact:d,viewport:s,scrollJumpRequest:null,forceShouldAnimate:null}}if(t.type==="COLLECTION_STARTING")return e.phase==="COLLECTING"||e.phase==="DROP_PENDING"?e:(e.phase!=="DRAGGING"&&cn(!1),{...e,phase:"COLLECTING"});if(t.type==="PUBLISH_WHILE_DRAGGING")return e.phase==="COLLECTING"||e.phase==="DROP_PENDING"||cn(!1),DK({state:e,published:t.payload});if(t.type==="MOVE"){if(e.phase==="DROP_PENDING")return e;ko(e)||cn(!1);const{client:r}=t.payload;return oo(r,e.current.client.selection)?e:Lu({state:e,clientSelection:r,impact:fv(e)?e.impact:null})}if(t.type==="UPDATE_DROPPABLE_SCROLL"){if(e.phase==="DROP_PENDING"||e.phase==="COLLECTING")return Um(e);ko(e)||cn(!1);const{id:r,newScroll:i}=t.payload,s=e.dimensions.droppables[r];if(!s)return e;const o=N1(s,i);return Wm(e,o,!1)}if(t.type==="UPDATE_DROPPABLE_IS_ENABLED"){if(e.phase==="DROP_PENDING")return e;ko(e)||cn(!1);const{id:r,isEnabled:i}=t.payload,s=e.dimensions.droppables[r];s||cn(!1),s.isEnabled===i&&cn(!1);const o={...s,isEnabled:i};return Wm(e,o,!0)}if(t.type==="UPDATE_DROPPABLE_IS_COMBINE_ENABLED"){if(e.phase==="DROP_PENDING")return e;ko(e)||cn(!1);const{id:r,isCombineEnabled:i}=t.payload,s=e.dimensions.droppables[r];s||cn(!1),s.isCombineEnabled===i&&cn(!1);const o={...s,isCombineEnabled:i};return Wm(e,o,!0)}if(t.type==="MOVE_BY_WINDOW_SCROLL"){if(e.phase==="DROP_PENDING"||e.phase==="DROP_ANIMATING")return e;ko(e)||cn(!1),e.isWindowScrollAllowed||cn(!1);const r=t.payload.newScroll;if(oo(e.viewport.scroll.current,r))return Um(e);const i=sO(e.viewport,r);return fv(e)?yO({state:e,viewport:i}):Lu({state:e,viewport:i})}if(t.type==="UPDATE_VIEWPORT_MAX_SCROLL"){if(!ko(e))return e;const r=t.payload.maxScroll;if(oo(r,e.viewport.scroll.max))return e;const i={...e.viewport,scroll:{...e.viewport.scroll,max:r}};return{...e,viewport:i}}if(t.type==="MOVE_UP"||t.type==="MOVE_DOWN"||t.type==="MOVE_LEFT"||t.type==="MOVE_RIGHT"){if(e.phase==="COLLECTING"||e.phase==="DROP_PENDING")return e;e.phase!=="DRAGGING"&&cn(!1);const r=hK({state:e,type:t.type});return r?Lu({state:e,impact:r.impact,clientSelection:r.clientSelection,scrollJumpRequest:r.scrollJumpRequest}):e}if(t.type==="DROP_PENDING"){const r=t.payload.reason;return e.phase!=="COLLECTING"&&cn(!1),{...e,phase:"DROP_PENDING",isWaiting:!0,reason:r}}if(t.type==="DROP_ANIMATE"){const{completed:r,dropDuration:i,newHomeClientOffset:s}=t.payload;return e.phase==="DRAGGING"||e.phase==="DROP_PENDING"||cn(!1),{phase:"DROP_ANIMATING",completed:r,dropDuration:i,newHomeClientOffset:s,dimensions:e.dimensions}}if(t.type==="DROP_COMPLETE"){const{completed:r}=t.payload;return{phase:"IDLE",completed:r,shouldFlush:!1}}return e};const RK=e=>({type:"BEFORE_INITIAL_CAPTURE",payload:e}),LK=e=>({type:"LIFT",payload:e}),IK=e=>({type:"INITIAL_PUBLISH",payload:e}),$K=e=>({type:"PUBLISH_WHILE_DRAGGING",payload:e}),FK=()=>({type:"COLLECTION_STARTING",payload:null}),jK=e=>({type:"UPDATE_DROPPABLE_SCROLL",payload:e}),NK=e=>({type:"UPDATE_DROPPABLE_IS_ENABLED",payload:e}),BK=e=>({type:"UPDATE_DROPPABLE_IS_COMBINE_ENABLED",payload:e}),xO=e=>({type:"MOVE",payload:e}),zK=e=>({type:"MOVE_BY_WINDOW_SCROLL",payload:e}),qK=e=>({type:"UPDATE_VIEWPORT_MAX_SCROLL",payload:e}),WK=()=>({type:"MOVE_UP",payload:null}),UK=()=>({type:"MOVE_DOWN",payload:null}),HK=()=>({type:"MOVE_RIGHT",payload:null}),VK=()=>({type:"MOVE_LEFT",payload:null}),V1=()=>({type:"FLUSH",payload:null}),GK=e=>({type:"DROP_ANIMATE",payload:e}),G1=e=>({type:"DROP_COMPLETE",payload:e}),wO=e=>({type:"DROP",payload:e}),YK=e=>({type:"DROP_PENDING",payload:e}),_O=()=>({type:"DROP_ANIMATION_FINISHED",payload:null});var XK=e=>t=>{let{getState:r,dispatch:i}=t;return s=>o=>{if(o.type!=="LIFT"){s(o);return}const{id:a,clientSelection:n,movementMode:l}=o.payload,c=r();c.phase==="DROP_ANIMATING"&&i(G1({completed:c.completed})),r().phase!=="IDLE"&&cn(!1),i(V1()),i(RK({draggableId:a,movementMode:l}));const f={draggableId:a,scrollOptions:{shouldPublishImmediately:l==="SNAP"}},{critical:d,dimensions:p,viewport:h}=e.startPublishing(f);i(IK({critical:d,dimensions:p,clientSelection:n,movementMode:l,viewport:h}))}},ZK=e=>()=>t=>r=>{r.type==="INITIAL_PUBLISH"&&e.dragging(),r.type==="DROP_ANIMATE"&&e.dropping(r.payload.completed.result.reason),(r.type==="FLUSH"||r.type==="DROP_COMPLETE")&&e.resting(),t(r)};const Y1={outOfTheWay:"cubic-bezier(0.2, 0, 0, 1)",drop:"cubic-bezier(.2,1,.1,1)"},Yu={opacity:{drop:0,combining:.7},scale:{drop:.75}},TO={outOfTheWay:.2,minDropTime:.33,maxDropTime:.55},xo=`${TO.outOfTheWay}s ${Y1.outOfTheWay}`,Iu={fluid:`opacity ${xo}`,snap:`transform ${xo}, opacity ${xo}`,drop:e=>{const t=`${e}s ${Y1.drop}`;return`transform ${t}, opacity ${t}`},outOfTheWay:`transform ${xo}`,placeholder:`height ${xo}, width ${xo}, margin ${xo}`},k3=e=>oo(e,la)?void 0:`translate(${e.x}px, ${e.y}px)`,dv={moveTo:k3,drop:(e,t)=>{const r=k3(e);if(r)return t?`${r} scale(${Yu.scale.drop})`:r}},{minDropTime:pv,maxDropTime:kO}=TO,KK=kO-pv,S3=1500,JK=.6;var QK=e=>{let{current:t,destination:r,reason:i}=e;const s=Hu(t,r);if(s<=0)return pv;if(s>=S3)return kO;const o=s/S3,a=pv+KK*o,n=i==="CANCEL"?a*JK:a;return Number(n.toFixed(2))},eJ=e=>{let{impact:t,draggable:r,dimensions:i,viewport:s,afterCritical:o}=e;const{draggables:a,droppables:n}=i,l=za(t),c=l?n[l]:null,u=n[r.descriptor.droppableId],f=vO({impact:t,draggable:r,draggables:a,afterCritical:o,droppable:c||u,viewport:s});return ja(f,r.client.borderBox.center)},tJ=e=>{let{draggables:t,reason:r,lastImpact:i,home:s,viewport:o,onLiftImpact:a}=e;return!i.at||r!=="DROP"?{impact:mO({draggables:t,impact:a,destination:s,viewport:o,forceShouldAnimate:!0}),didDropInsideDroppable:!1}:i.at.type==="REORDER"?{impact:i,didDropInsideDroppable:!0}:{impact:{...i,displaced:Vu},didDropInsideDroppable:!0}};const nJ=e=>{let{getState:t,dispatch:r}=e;return i=>s=>{if(s.type!=="DROP"){i(s);return}const o=t(),a=s.payload.reason;if(o.phase==="COLLECTING"){r(YK({reason:a}));return}if(o.phase==="IDLE")return;o.phase==="DROP_PENDING"&&o.isWaiting&&cn(!1),o.phase==="DRAGGING"||o.phase==="DROP_PENDING"||cn(!1);const l=o.critical,c=o.dimensions,u=c.draggables[o.critical.draggable.id],{impact:f,didDropInsideDroppable:d}=tJ({reason:a,lastImpact:o.impact,afterCritical:o.afterCritical,onLiftImpact:o.onLiftImpact,home:o.dimensions.droppables[o.critical.droppable.id],viewport:o.viewport,draggables:o.dimensions.draggables}),p=d?B1(f):null,h=d?pp(f):null,m={index:l.draggable.index,droppableId:l.droppable.id},y={draggableId:u.descriptor.id,type:u.descriptor.type,source:m,reason:a,mode:o.movementMode,destination:p,combine:h},v=eJ({impact:f,draggable:u,dimensions:c,viewport:o.viewport,afterCritical:o.afterCritical}),g={critical:o.critical,afterCritical:o.afterCritical,result:y,impact:f};if(!(!oo(o.current.client.offset,v)||!!y.combine)){r(G1({completed:g}));return}const w=QK({current:o.current.client.offset,destination:v,reason:a});r(GK({newHomeClientOffset:v,dropDuration:w,completed:g}))}};var rJ=nJ,SO=()=>({x:window.pageXOffset,y:window.pageYOffset});function aJ(e){return{eventName:"scroll",options:{passive:!0,capture:!1},fn:t=>{t.target!==window&&t.target!==window.document||e()}}}function iJ(e){let{onWindowScroll:t}=e;function r(){t(SO())}const i=Uu(r),s=aJ(i);let o=io;function a(){return o!==io}function n(){a()&&cn(!1),o=Za(window,[s])}function l(){a()||cn(!1),i.cancel(),o(),o=io}return{start:n,stop:l,isActive:a}}const oJ=e=>e.type==="DROP_COMPLETE"||e.type==="DROP_ANIMATE"||e.type==="FLUSH",lJ=e=>{const t=iJ({onWindowScroll:r=>{e.dispatch(zK({newScroll:r}))}});return r=>i=>{!t.isActive()&&i.type==="INITIAL_PUBLISH"&&t.start(),t.isActive()&&oJ(i)&&t.stop(),r(i)}};var sJ=lJ,uJ=e=>{let t=!1,r=!1;const i=setTimeout(()=>{r=!0}),s=o=>{t||r||(t=!0,e(o),clearTimeout(i))};return s.wasCalled=()=>t,s},cJ=()=>{const e=[],t=s=>{const o=e.findIndex(n=>n.timerId===s);o===-1&&cn(!1);const[a]=e.splice(o,1);a.callback()};return{add:s=>{const o=setTimeout(()=>t(o)),a={timerId:o,callback:s};e.push(a)},flush:()=>{if(!e.length)return;const s=[...e];e.length=0,s.forEach(o=>{clearTimeout(o.timerId),o.callback()})}}};const fJ=(e,t)=>e==null&&t==null?!0:e==null||t==null?!1:e.droppableId===t.droppableId&&e.index===t.index,dJ=(e,t)=>e==null&&t==null?!0:e==null||t==null?!1:e.draggableId===t.draggableId&&e.droppableId===t.droppableId,pJ=(e,t)=>{if(e===t)return!0;const r=e.draggable.id===t.draggable.id&&e.draggable.droppableId===t.draggable.droppableId&&e.draggable.type===t.draggable.type&&e.draggable.index===t.draggable.index,i=e.droppable.id===t.droppable.id&&e.droppable.type===t.droppable.type;return r&&i},Vs=(e,t)=>{t()},yf=(e,t)=>({draggableId:e.draggable.id,type:e.droppable.type,source:{droppableId:e.droppable.id,index:e.draggable.index},mode:t});function Hm(e,t,r,i){if(!e){r(i(t));return}const s=uJ(r);e(t,{announce:s}),s.wasCalled()||r(i(t))}var hJ=(e,t)=>{const r=cJ();let i=null;const s=(f,d)=>{i&&cn(!1),Vs("onBeforeCapture",()=>{const p=e().onBeforeCapture;p&&p({draggableId:f,mode:d})})},o=(f,d)=>{i&&cn(!1),Vs("onBeforeDragStart",()=>{const p=e().onBeforeDragStart;p&&p(yf(f,d))})},a=(f,d)=>{i&&cn(!1);const p=yf(f,d);i={mode:d,lastCritical:f,lastLocation:p.source,lastCombine:null},r.add(()=>{Vs("onDragStart",()=>Hm(e().onDragStart,p,t,Ff.onDragStart))})},n=(f,d)=>{const p=B1(d),h=pp(d);i||cn(!1);const m=!pJ(f,i.lastCritical);m&&(i.lastCritical=f);const y=!fJ(i.lastLocation,p);y&&(i.lastLocation=p);const v=!dJ(i.lastCombine,h);if(v&&(i.lastCombine=h),!m&&!y&&!v)return;const g={...yf(f,i.mode),combine:h,destination:p};r.add(()=>{Vs("onDragUpdate",()=>Hm(e().onDragUpdate,g,t,Ff.onDragUpdate))})},l=()=>{i||cn(!1),r.flush()},c=f=>{i||cn(!1),i=null,Vs("onDragEnd",()=>Hm(e().onDragEnd,f,t,Ff.onDragEnd))};return{beforeCapture:s,beforeStart:o,start:a,update:n,flush:l,drop:c,abort:()=>{if(!i)return;const f={...yf(i.lastCritical,i.mode),combine:null,destination:null,reason:"CANCEL"};c(f)}}},gJ=(e,t)=>{const r=hJ(e,t);return i=>s=>o=>{if(o.type==="BEFORE_INITIAL_CAPTURE"){r.beforeCapture(o.payload.draggableId,o.payload.movementMode);return}if(o.type==="INITIAL_PUBLISH"){const n=o.payload.critical;r.beforeStart(n,o.payload.movementMode),s(o),r.start(n,o.payload.movementMode);return}if(o.type==="DROP_COMPLETE"){const n=o.payload.completed.result;r.flush(),s(o),r.drop(n);return}if(s(o),o.type==="FLUSH"){r.abort();return}const a=i.getState();a.phase==="DRAGGING"&&r.update(a.critical,a.impact)}};const mJ=e=>t=>r=>{if(r.type!=="DROP_ANIMATION_FINISHED"){t(r);return}const i=e.getState();i.phase!=="DROP_ANIMATING"&&cn(!1),e.dispatch(G1({completed:i.completed}))};var vJ=mJ;const yJ=e=>{let t=null,r=null;function i(){r&&(cancelAnimationFrame(r),r=null),t&&(t(),t=null)}return s=>o=>{if((o.type==="FLUSH"||o.type==="DROP_COMPLETE"||o.type==="DROP_ANIMATION_FINISHED")&&i(),s(o),o.type!=="DROP_ANIMATE")return;const a={eventName:"scroll",options:{capture:!0,passive:!1,once:!0},fn:function(){e.getState().phase==="DROP_ANIMATING"&&e.dispatch(_O())}};r=requestAnimationFrame(()=>{r=null,t=Za(window,[a])})}};var bJ=yJ,xJ=e=>()=>t=>r=>{(r.type==="DROP_COMPLETE"||r.type==="FLUSH"||r.type==="DROP_ANIMATE")&&e.stopPublishing(),t(r)},wJ=e=>{let t=!1;return()=>r=>i=>{if(i.type==="INITIAL_PUBLISH"){t=!0,e.tryRecordFocus(i.payload.critical.draggable.id),r(i),e.tryRestoreFocusRecorded();return}if(r(i),!!t){if(i.type==="FLUSH"){t=!1,e.tryRestoreFocusRecorded();return}if(i.type==="DROP_COMPLETE"){t=!1;const s=i.payload.completed.result;s.combine&&e.tryShiftRecord(s.draggableId,s.combine.draggableId),e.tryRestoreFocusRecorded()}}}};const _J=e=>e.type==="DROP_COMPLETE"||e.type==="DROP_ANIMATE"||e.type==="FLUSH";var TJ=e=>t=>r=>i=>{if(_J(i)){e.stop(),r(i);return}if(i.type==="INITIAL_PUBLISH"){r(i);const s=t.getState();s.phase!=="DRAGGING"&&cn(!1),e.start(s);return}r(i),e.scroll(t.getState())};const kJ=e=>t=>r=>{if(t(r),r.type!=="PUBLISH_WHILE_DRAGGING")return;const i=e.getState();i.phase==="DROP_PENDING"&&(i.isWaiting||e.dispatch(wO({reason:i.reason})))};var SJ=kJ;const MJ=z6;var CJ=e=>{let{dimensionMarshal:t,focusMarshal:r,styleMarshal:i,getResponders:s,announce:o,autoScroller:a}=e;return B6(EK,MJ(qX(ZK(i),xJ(t),XK(t),rJ,vJ,bJ,SJ,TJ(a),sJ,wJ(r),gJ(s,o))))};const Vm=()=>({additions:{},removals:{},modified:{}});function OJ(e){let{registry:t,callbacks:r}=e,i=Vm(),s=null;const o=()=>{s||(r.collectionStarting(),s=requestAnimationFrame(()=>{s=null;const{additions:c,removals:u,modified:f}=i,d=Object.keys(c).map(m=>t.draggable.getById(m).getDimension(la)).sort((m,y)=>m.descriptor.index-y.descriptor.index),p=Object.keys(f).map(m=>{const v=t.droppable.getById(m).callbacks.getScrollWhileDragging();return{droppableId:m,scroll:v}}),h={additions:d,removals:Object.keys(u),modified:p};i=Vm(),r.publish(h)}))};return{add:c=>{const u=c.descriptor.id;i.additions[u]=c,i.modified[c.descriptor.droppableId]=!0,i.removals[u]&&delete i.removals[u],o()},remove:c=>{const u=c.descriptor;i.removals[u.id]=!0,i.modified[u.droppableId]=!0,i.additions[u.id]&&delete i.additions[u.id],o()},stop:()=>{s&&(cancelAnimationFrame(s),s=null,i=Vm())}}}var MO=e=>{let{scrollHeight:t,scrollWidth:r,height:i,width:s}=e;const o=ja({x:r,y:t},{x:s,y:i});return{x:Math.max(0,o.x),y:Math.max(0,o.y)}},CO=()=>{const e=document.documentElement;return e||cn(!1),e},OO=()=>{const e=CO();return MO({scrollHeight:e.scrollHeight,scrollWidth:e.scrollWidth,width:e.clientWidth,height:e.clientHeight})},PJ=()=>{const e=SO(),t=OO(),r=e.y,i=e.x,s=CO(),o=s.clientWidth,a=s.clientHeight,n=i+o,l=r+a;return{frame:ui({top:r,left:i,right:n,bottom:l}),scroll:{initial:e,current:e,max:t,diff:{value:la,displacement:la}}}},AJ=e=>{let{critical:t,scrollOptions:r,registry:i}=e;const s=PJ(),o=s.scroll.current,a=t.droppable,n=i.droppable.getAllByType(a.type).map(f=>f.callbacks.getDimensionAndWatchScroll(o,r)),l=i.draggable.getAllByType(t.draggable.type).map(f=>f.getDimension(o));return{dimensions:{draggables:nO(l),droppables:tO(n)},critical:t,viewport:s}};function M3(e,t,r){return!(r.descriptor.id===t.id||r.descriptor.type!==t.type||e.droppable.getById(r.descriptor.droppableId).descriptor.mode!=="virtual")}var DJ=(e,t)=>{let r=null;const i=OJ({callbacks:{publish:t.publishWhileDragging,collectionStarting:t.collectionStarting},registry:e}),s=(d,p)=>{e.droppable.exists(d)||cn(!1),r&&t.updateDroppableIsEnabled({id:d,isEnabled:p})},o=(d,p)=>{r&&(e.droppable.exists(d)||cn(!1),t.updateDroppableIsCombineEnabled({id:d,isCombineEnabled:p}))},a=(d,p)=>{r&&(e.droppable.exists(d)||cn(!1),t.updateDroppableScroll({id:d,newScroll:p}))},n=(d,p)=>{r&&e.droppable.getById(d).callbacks.scroll(p)},l=()=>{if(!r)return;i.stop();const d=r.critical.droppable;e.droppable.getAllByType(d.type).forEach(p=>p.callbacks.dragStopped()),r.unsubscribe(),r=null},c=d=>{r||cn(!1);const p=r.critical.draggable;d.type==="ADDITION"&&M3(e,p,d.value)&&i.add(d.value),d.type==="REMOVAL"&&M3(e,p,d.value)&&i.remove(d.value)};return{updateDroppableIsEnabled:s,updateDroppableIsCombineEnabled:o,scrollDroppable:n,updateDroppableScroll:a,startPublishing:d=>{r&&cn(!1);const p=e.draggable.getById(d.draggableId),h=e.droppable.getById(p.descriptor.droppableId),m={draggable:p.descriptor,droppable:h.descriptor},y=e.subscribe(c);return r={critical:m,unsubscribe:y},AJ({critical:m,registry:e,scrollOptions:d.scrollOptions})},stopPublishing:l}},PO=(e,t)=>e.phase==="IDLE"?!0:e.phase!=="DROP_ANIMATING"||e.completed.result.draggableId===t?!1:e.completed.result.reason==="DROP",EJ=e=>{window.scrollBy(e.x,e.y)};const RJ=oa(e=>dp(e).filter(t=>!(!t.isEnabled||!t.frame))),LJ=(e,t)=>RJ(t).find(i=>(i.frame||cn(!1),dO(i.frame.pageMarginBox)(e)))||null;var IJ=e=>{let{center:t,destination:r,droppables:i}=e;if(r){const o=i[r];return o.frame?o:null}return LJ(t,i)};const Xu={startFromPercentage:.25,maxScrollAtPercentage:.05,maxPixelScroll:28,ease:e=>e**2,durationDampening:{stopDampeningAt:1200,accelerateAt:360},disabled:!1};var $J=function(e,t,r){r===void 0&&(r=()=>Xu);const i=r(),s=e[t.size]*i.startFromPercentage,o=e[t.size]*i.maxScrollAtPercentage;return{startScrollingFrom:s,maxScrollValueAt:o}},AO=e=>{let{startOfRange:t,endOfRange:r,current:i}=e;const s=r-t;return s===0?0:(i-t)/s},X1=1,FJ=function(e,t,r){r===void 0&&(r=()=>Xu);const i=r();if(e>t.startScrollingFrom)return 0;if(e<=t.maxScrollValueAt)return i.maxPixelScroll;if(e===t.startScrollingFrom)return X1;const o=1-AO({startOfRange:t.maxScrollValueAt,endOfRange:t.startScrollingFrom,current:e}),a=i.maxPixelScroll*i.ease(o);return Math.ceil(a)},jJ=(e,t,r)=>{const i=r(),s=i.durationDampening.accelerateAt,o=i.durationDampening.stopDampeningAt,a=t,n=o,c=Date.now()-a;if(c>=o)return e;if(c{let{distanceToEdge:t,thresholds:r,dragStartTime:i,shouldUseTimeDampening:s,getAutoScrollerOptions:o}=e;const a=FJ(t,r,o);return a===0?0:s?Math.max(jJ(a,i,o),X1):a},O3=e=>{let{container:t,distanceToEdges:r,dragStartTime:i,axis:s,shouldUseTimeDampening:o,getAutoScrollerOptions:a}=e;const n=$J(t,s,a);return r[s.end]{let{container:t,subject:r,proposedScroll:i}=e;const s=r.height>t.height,o=r.width>t.width;return!o&&!s?i:o&&s?null:{x:o?0:i.x,y:s?0:i.y}};const BJ=eO(e=>e===0?0:e);var DO=e=>{let{dragStartTime:t,container:r,subject:i,center:s,shouldUseTimeDampening:o,getAutoScrollerOptions:a}=e;const n={top:s.y-r.top,right:r.right-s.x,bottom:r.bottom-s.y,left:s.x-r.left},l=O3({container:r,distanceToEdges:n,dragStartTime:t,axis:z1,shouldUseTimeDampening:o,getAutoScrollerOptions:a}),c=O3({container:r,distanceToEdges:n,dragStartTime:t,axis:iO,shouldUseTimeDampening:o,getAutoScrollerOptions:a}),u=BJ({x:c,y:l});if(oo(u,la))return null;const f=NJ({container:r,subject:i,proposedScroll:u});return f?oo(f,la)?null:f:null};const zJ=eO(e=>e===0?0:e>0?1:-1),Z1=(()=>{const e=(t,r)=>t<0?t:t>r?t-r:0;return t=>{let{current:r,max:i,change:s}=t;const o=va(r,s),a={x:e(o.x,i.x),y:e(o.y,i.y)};return oo(a,la)?null:a}})(),EO=e=>{let{max:t,current:r,change:i}=e;const s={x:Math.max(r.x,t.x),y:Math.max(r.y,t.y)},o=zJ(i),a=Z1({max:s,current:r,change:o});return!a||o.x!==0&&a.x===0||o.y!==0&&a.y===0},K1=(e,t)=>EO({current:e.scroll.current,max:e.scroll.max,change:t}),qJ=(e,t)=>{if(!K1(e,t))return null;const r=e.scroll.max,i=e.scroll.current;return Z1({current:i,max:r,change:t})},J1=(e,t)=>{const r=e.frame;return r?EO({current:r.scroll.current,max:r.scroll.max,change:t}):!1},WJ=(e,t)=>{const r=e.frame;return!r||!J1(e,t)?null:Z1({current:r.scroll.current,max:r.scroll.max,change:t})};var UJ=e=>{let{viewport:t,subject:r,center:i,dragStartTime:s,shouldUseTimeDampening:o,getAutoScrollerOptions:a}=e;const n=DO({dragStartTime:s,container:t.frame,subject:r,center:i,shouldUseTimeDampening:o,getAutoScrollerOptions:a});return n&&K1(t,n)?n:null},HJ=e=>{let{droppable:t,subject:r,center:i,dragStartTime:s,shouldUseTimeDampening:o,getAutoScrollerOptions:a}=e;const n=t.frame;if(!n)return null;const l=DO({dragStartTime:s,container:n.pageMarginBox,subject:r,center:i,shouldUseTimeDampening:o,getAutoScrollerOptions:a});return l&&J1(t,l)?l:null},P3=e=>{let{state:t,dragStartTime:r,shouldUseTimeDampening:i,scrollWindow:s,scrollDroppable:o,getAutoScrollerOptions:a}=e;const n=t.current.page.borderBoxCenter,c=t.dimensions.draggables[t.critical.draggable.id].page.marginBox;if(t.isWindowScrollAllowed){const d=t.viewport,p=UJ({dragStartTime:r,viewport:d,subject:c,center:n,shouldUseTimeDampening:i,getAutoScrollerOptions:a});if(p){s(p);return}}const u=IJ({center:n,destination:za(t.impact),droppables:t.dimensions.droppables});if(!u)return;const f=HJ({dragStartTime:r,droppable:u,subject:c,center:n,shouldUseTimeDampening:i,getAutoScrollerOptions:a});f&&o(u.descriptor.id,f)},VJ=e=>{let{scrollWindow:t,scrollDroppable:r,getAutoScrollerOptions:i=()=>Xu}=e;const s=Uu(t),o=Uu(r);let a=null;const n=u=>{a||cn(!1);const{shouldUseTimeDampening:f,dragStartTime:d}=a;P3({state:u,scrollWindow:s,scrollDroppable:o,dragStartTime:d,shouldUseTimeDampening:f,getAutoScrollerOptions:i})};return{start:u=>{a&&cn(!1);const f=Date.now();let d=!1;const p=()=>{d=!0};P3({state:u,dragStartTime:0,shouldUseTimeDampening:!1,scrollWindow:p,scrollDroppable:p,getAutoScrollerOptions:i}),a={dragStartTime:f,shouldUseTimeDampening:d},d&&n(u)},stop:()=>{a&&(s.cancel(),o.cancel(),a=null)},scroll:n}},GJ=e=>{let{move:t,scrollDroppable:r,scrollWindow:i}=e;const s=(l,c)=>{const u=va(l.current.client.selection,c);t({client:u})},o=(l,c)=>{if(!J1(l,c))return c;const u=WJ(l,c);if(!u)return r(l.descriptor.id,c),null;const f=ja(c,u);return r(l.descriptor.id,f),ja(c,f)},a=(l,c,u)=>{if(!l||!K1(c,u))return u;const f=qJ(c,u);if(!f)return i(u),null;const d=ja(u,f);return i(d),ja(u,d)};return l=>{const c=l.scrollJumpRequest;if(!c)return;const u=za(l.impact);u||cn(!1);const f=o(l.dimensions.droppables[u],c);if(!f)return;const d=l.viewport,p=a(l.isWindowScrollAllowed,d,f);p&&s(l,p)}},YJ=e=>{let{scrollDroppable:t,scrollWindow:r,move:i,getAutoScrollerOptions:s}=e;const o=VJ({scrollWindow:r,scrollDroppable:t,getAutoScrollerOptions:s}),a=GJ({move:i,scrollWindow:r,scrollDroppable:t});return{scroll:c=>{if(!(s().disabled||c.phase!=="DRAGGING")){if(c.movementMode==="FLUID"){o.scroll(c);return}c.scrollJumpRequest&&a(c)}},start:o.start,stop:o.stop}};const jl="data-rfd",Nl=(()=>{const e=`${jl}-drag-handle`;return{base:e,draggableId:`${e}-draggable-id`,contextId:`${e}-context-id`}})(),hv=(()=>{const e=`${jl}-draggable`;return{base:e,contextId:`${e}-context-id`,id:`${e}-id`}})(),XJ=(()=>{const e=`${jl}-droppable`;return{base:e,contextId:`${e}-context-id`,id:`${e}-id`}})(),A3={contextId:`${jl}-scroll-container-context-id`},ZJ=e=>t=>`[${t}="${e}"]`,Gs=(e,t)=>e.map(r=>{const i=r.styles[t];return i?`${r.selector} { ${i} }`:""}).join(" "),KJ="pointer-events: none;";var JJ=e=>{const t=ZJ(e),r=(()=>{const n=` + cursor: -webkit-grab; + cursor: grab; + `;return{selector:t(Nl.contextId),styles:{always:` + -webkit-touch-callout: none; + -webkit-tap-highlight-color: rgba(0,0,0,0); + touch-action: manipulation; + `,resting:n,dragging:KJ,dropAnimating:n}}})(),i=(()=>{const n=` + transition: ${Iu.outOfTheWay}; + `;return{selector:t(hv.contextId),styles:{dragging:n,dropAnimating:n,userCancel:n}}})(),s={selector:t(XJ.contextId),styles:{always:"overflow-anchor: none;"}},a=[i,r,s,{selector:"body",styles:{dragging:` + cursor: grabbing; + cursor: -webkit-grabbing; + user-select: none; + -webkit-user-select: none; + -moz-user-select: none; + -ms-user-select: none; + overflow-anchor: none; + `}}];return{always:Gs(a,"always"),resting:Gs(a,"resting"),dragging:Gs(a,"dragging"),dropAnimating:Gs(a,"dropAnimating"),userCancel:Gs(a,"userCancel")}};const QJ=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u"?$e.useLayoutEffect:$e.useEffect;var qa=QJ;const Gm=()=>{const e=document.querySelector("head");return e||cn(!1),e},D3=e=>{const t=document.createElement("style");return e&&t.setAttribute("nonce",e),t.type="text/css",t};function eQ(e,t){const r=er(()=>JJ(e),[e]),i=$e.useRef(null),s=$e.useRef(null),o=Pn(oa(f=>{const d=s.current;d||cn(!1),d.textContent=f}),[]),a=Pn(f=>{const d=i.current;d||cn(!1),d.textContent=f},[]);qa(()=>{!i.current&&!s.current||cn(!1);const f=D3(t),d=D3(t);return i.current=f,s.current=d,f.setAttribute(`${jl}-always`,e),d.setAttribute(`${jl}-dynamic`,e),Gm().appendChild(f),Gm().appendChild(d),a(r.always),o(r.resting),()=>{const p=h=>{const m=h.current;m||cn(!1),Gm().removeChild(m),h.current=null};p(i),p(s)}},[t,a,o,r.always,r.resting,e]);const n=Pn(()=>o(r.dragging),[o,r.dragging]),l=Pn(f=>{if(f==="DROP"){o(r.dropAnimating);return}o(r.userCancel)},[o,r.dropAnimating,r.userCancel]),c=Pn(()=>{s.current&&o(r.resting)},[o,r.resting]);return er(()=>({dragging:n,dropping:l,resting:c}),[n,l,c])}function RO(e,t){return Array.from(e.querySelectorAll(t))}var LO=e=>{var t;return((t=e==null?void 0:e.ownerDocument)==null?void 0:t.defaultView)||window};function mp(e){return e instanceof LO(e).HTMLElement}function tQ(e,t){const r=`[${Nl.contextId}="${e}"]`,i=RO(document,r);if(!i.length)return null;const s=i.find(o=>o.getAttribute(Nl.draggableId)===t);return!s||!mp(s)?null:s}function nQ(e){const t=$e.useRef({}),r=$e.useRef(null),i=$e.useRef(null),s=$e.useRef(!1),o=Pn(function(d,p){const h={id:d,focus:p};return t.current[d]=h,function(){const y=t.current;y[d]!==h&&delete y[d]}},[]),a=Pn(function(d){const p=tQ(e,d);p&&p!==document.activeElement&&p.focus()},[e]),n=Pn(function(d,p){r.current===d&&(r.current=p)},[]),l=Pn(function(){i.current||s.current&&(i.current=requestAnimationFrame(()=>{i.current=null;const d=r.current;d&&a(d)}))},[a]),c=Pn(function(d){r.current=null;const p=document.activeElement;p&&p.getAttribute(Nl.draggableId)===d&&(r.current=d)},[]);return qa(()=>(s.current=!0,function(){s.current=!1;const d=i.current;d&&cancelAnimationFrame(d)}),[]),er(()=>({register:o,tryRecordFocus:c,tryRestoreFocusRecorded:l,tryShiftRecord:n}),[o,c,l,n])}function rQ(){const e={draggables:{},droppables:{}},t=[];function r(f){return t.push(f),function(){const p=t.indexOf(f);p!==-1&&t.splice(p,1)}}function i(f){t.length&&t.forEach(d=>d(f))}function s(f){return e.draggables[f]||null}function o(f){const d=s(f);return d||cn(!1),d}const a={register:f=>{e.draggables[f.descriptor.id]=f,i({type:"ADDITION",value:f})},update:(f,d)=>{const p=e.draggables[d.descriptor.id];p&&p.uniqueId===f.uniqueId&&(delete e.draggables[d.descriptor.id],e.draggables[f.descriptor.id]=f)},unregister:f=>{const d=f.descriptor.id,p=s(d);p&&f.uniqueId===p.uniqueId&&(delete e.draggables[d],e.droppables[f.descriptor.droppableId]&&i({type:"REMOVAL",value:f}))},getById:o,findById:s,exists:f=>!!s(f),getAllByType:f=>Object.values(e.draggables).filter(d=>d.descriptor.type===f)};function n(f){return e.droppables[f]||null}function l(f){const d=n(f);return d||cn(!1),d}const c={register:f=>{e.droppables[f.descriptor.id]=f},unregister:f=>{const d=n(f.descriptor.id);d&&f.uniqueId===d.uniqueId&&delete e.droppables[f.descriptor.id]},getById:l,findById:n,exists:f=>!!n(f),getAllByType:f=>Object.values(e.droppables).filter(d=>d.descriptor.type===f)};function u(){e.draggables={},e.droppables={},t.length=0}return{draggable:a,droppable:c,subscribe:r,clean:u}}function aQ(){const e=er(rQ,[]);return $e.useEffect(()=>function(){tt.version.startsWith("16")||tt.version.startsWith("17")?requestAnimationFrame(e.clean):e.clean()},[e]),e}var Q1=tt.createContext(null),pd=()=>{const e=document.body;return e||cn(!1),e};const iQ={position:"absolute",width:"1px",height:"1px",margin:"-1px",border:"0",padding:"0",overflow:"hidden",clip:"rect(0 0 0 0)","clip-path":"inset(100%)"};var oQ=iQ;const lQ=e=>`rfd-announcement-${e}`;function sQ(e){const t=er(()=>lQ(e),[e]),r=$e.useRef(null);return $e.useEffect(function(){const o=document.createElement("div");return r.current=o,o.id=t,o.setAttribute("aria-live","assertive"),o.setAttribute("aria-atomic","true"),ot(o.style,oQ),pd().appendChild(o),function(){setTimeout(function(){const l=pd();l.contains(o)&&l.removeChild(o),o===r.current&&(r.current=null)})}},[t]),Pn(s=>{const o=r.current;if(o){o.textContent=s;return}},[])}let IO=0;const $O={separator:"::"};function uQ(){IO=0}function cQ(e,t){return t===void 0&&(t=$O),er(()=>`${e}${t.separator}${IO++}`,[t.separator,e])}function fQ(e,t){t===void 0&&(t=$O);const r=tt.useId();return er(()=>`${e}${t.separator}${r}`,[t.separator,e,r])}var eb="useId"in tt?fQ:cQ;function dQ(e){let{contextId:t,uniqueId:r}=e;return`rfd-hidden-text-${t}-${r}`}function pQ(e){let{contextId:t,text:r}=e;const i=eb("hidden-text",{separator:"-"}),s=er(()=>dQ({contextId:t,uniqueId:i}),[i,t]);return $e.useEffect(function(){const a=document.createElement("div");return a.id=s,a.textContent=r,a.style.display="none",pd().appendChild(a),function(){const l=pd();l.contains(a)&&l.removeChild(a)}},[s,r]),s}var vp=tt.createContext(null);function FO(e){const t=$e.useRef(e);return $e.useEffect(()=>{t.current=e}),t}function hQ(){let e=null;function t(){return!!e}function r(a){return a===e}function i(a){e&&cn(!1);const n={abandon:a};return e=n,n}function s(){e||cn(!1),e=null}function o(){e&&(e.abandon(),s())}return{isClaimed:t,isActive:r,claim:i,release:s,tryAbandon:o}}function Zu(e){return e.phase==="IDLE"||e.phase==="DROP_ANIMATING"?!1:e.isDragging}const gQ=9,mQ=13,tb=27,jO=32,vQ=33,yQ=34,bQ=35,xQ=36,wQ=37,_Q=38,TQ=39,kQ=40,SQ={[mQ]:!0,[gQ]:!0};var NO=e=>{SQ[e.keyCode]&&e.preventDefault()};const MQ=(()=>{const e="visibilitychange";return typeof document>"u"?e:[e,`ms${e}`,`webkit${e}`,`moz${e}`,`o${e}`].find(i=>`on${i}`in document)||e})();var yp=MQ;const BO=0,E3=5;function CQ(e,t){return Math.abs(t.x-e.x)>=E3||Math.abs(t.y-e.y)>=E3}const R3={type:"IDLE"};function OQ(e){let{cancel:t,completed:r,getPhase:i,setPhase:s}=e;return[{eventName:"mousemove",fn:o=>{const{button:a,clientX:n,clientY:l}=o;if(a!==BO)return;const c={x:n,y:l},u=i();if(u.type==="DRAGGING"){o.preventDefault(),u.actions.move(c);return}u.type!=="PENDING"&&cn(!1);const f=u.point;if(!CQ(f,c))return;o.preventDefault();const d=u.actions.fluidLift(c);s({type:"DRAGGING",actions:d})}},{eventName:"mouseup",fn:o=>{const a=i();if(a.type!=="DRAGGING"){t();return}o.preventDefault(),a.actions.drop({shouldBlockNextClick:!0}),r()}},{eventName:"mousedown",fn:o=>{i().type==="DRAGGING"&&o.preventDefault(),t()}},{eventName:"keydown",fn:o=>{if(i().type==="PENDING"){t();return}if(o.keyCode===tb){o.preventDefault(),t();return}NO(o)}},{eventName:"resize",fn:t},{eventName:"scroll",options:{passive:!0,capture:!1},fn:()=>{i().type==="PENDING"&&t()}},{eventName:"webkitmouseforcedown",fn:o=>{const a=i();if(a.type==="IDLE"&&cn(!1),a.actions.shouldRespectForcePress()){t();return}o.preventDefault()}},{eventName:yp,fn:t}]}function zO(e){const t=$e.useRef(R3),r=$e.useRef(io),i=er(()=>({eventName:"mousedown",fn:function(f){if(f.defaultPrevented||f.button!==BO||f.ctrlKey||f.metaKey||f.shiftKey||f.altKey)return;const d=e.findClosestDraggableId(f);if(!d)return;const p=e.tryGetLock(d,a,{sourceEvent:f});if(!p)return;f.preventDefault();const h={x:f.clientX,y:f.clientY};r.current(),c(p,h)}}),[e]),s=er(()=>({eventName:"webkitmouseforcewillbegin",fn:u=>{if(u.defaultPrevented)return;const f=e.findClosestDraggableId(u);if(!f)return;const d=e.findOptionsForDraggable(f);d&&(d.shouldRespectForcePress||e.canGetLock(f)&&u.preventDefault())}}),[e]),o=Pn(function(){const f={passive:!1,capture:!0};r.current=Za(window,[s,i],f)},[s,i]),a=Pn(()=>{t.current.type!=="IDLE"&&(t.current=R3,r.current(),o())},[o]),n=Pn(()=>{const u=t.current;a(),u.type==="DRAGGING"&&u.actions.cancel({shouldBlockNextClick:!0}),u.type==="PENDING"&&u.actions.abort()},[a]),l=Pn(function(){const f={capture:!0,passive:!1},d=OQ({cancel:n,completed:a,getPhase:()=>t.current,setPhase:p=>{t.current=p}});r.current=Za(window,d,f)},[n,a]),c=Pn(function(f,d){t.current.type!=="IDLE"&&cn(!1),t.current={type:"PENDING",point:d,actions:f},l()},[l]);qa(function(){return o(),function(){r.current()}},[o])}function PQ(){}const AQ={[yQ]:!0,[vQ]:!0,[xQ]:!0,[bQ]:!0};function DQ(e,t){function r(){t(),e.cancel()}function i(){t(),e.drop()}return[{eventName:"keydown",fn:s=>{if(s.keyCode===tb){s.preventDefault(),r();return}if(s.keyCode===jO){s.preventDefault(),i();return}if(s.keyCode===kQ){s.preventDefault(),e.moveDown();return}if(s.keyCode===_Q){s.preventDefault(),e.moveUp();return}if(s.keyCode===TQ){s.preventDefault(),e.moveRight();return}if(s.keyCode===wQ){s.preventDefault(),e.moveLeft();return}if(AQ[s.keyCode]){s.preventDefault();return}NO(s)}},{eventName:"mousedown",fn:r},{eventName:"mouseup",fn:r},{eventName:"click",fn:r},{eventName:"touchstart",fn:r},{eventName:"resize",fn:r},{eventName:"wheel",fn:r,options:{passive:!0}},{eventName:yp,fn:r}]}function qO(e){const t=$e.useRef(PQ),r=er(()=>({eventName:"keydown",fn:function(o){if(o.defaultPrevented||o.keyCode!==jO)return;const a=e.findClosestDraggableId(o);if(!a)return;const n=e.tryGetLock(a,u,{sourceEvent:o});if(!n)return;o.preventDefault();let l=!0;const c=n.snapLift();t.current();function u(){l||cn(!1),l=!1,t.current(),i()}t.current=Za(window,DQ(c,u),{capture:!0,passive:!1})}}),[e]),i=Pn(function(){const o={passive:!1,capture:!0};t.current=Za(window,[r],o)},[r]);qa(function(){return i(),function(){t.current()}},[i])}const Ym={type:"IDLE"},EQ=120,RQ=.15;function LQ(e){let{cancel:t,getPhase:r}=e;return[{eventName:"orientationchange",fn:t},{eventName:"resize",fn:t},{eventName:"contextmenu",fn:i=>{i.preventDefault()}},{eventName:"keydown",fn:i=>{if(r().type!=="DRAGGING"){t();return}i.keyCode===tb&&i.preventDefault(),t()}},{eventName:yp,fn:t}]}function IQ(e){let{cancel:t,completed:r,getPhase:i}=e;return[{eventName:"touchmove",options:{capture:!1},fn:s=>{const o=i();if(o.type!=="DRAGGING"){t();return}o.hasMoved=!0;const{clientX:a,clientY:n}=s.touches[0],l={x:a,y:n};s.preventDefault(),o.actions.move(l)}},{eventName:"touchend",fn:s=>{const o=i();if(o.type!=="DRAGGING"){t();return}s.preventDefault(),o.actions.drop({shouldBlockNextClick:!0}),r()}},{eventName:"touchcancel",fn:s=>{if(i().type!=="DRAGGING"){t();return}s.preventDefault(),t()}},{eventName:"touchforcechange",fn:s=>{const o=i();o.type==="IDLE"&&cn(!1);const a=s.touches[0];if(!a||!(a.force>=RQ))return;const l=o.actions.shouldRespectForcePress();if(o.type==="PENDING"){l&&t();return}if(l){if(o.hasMoved){s.preventDefault();return}t();return}s.preventDefault()}},{eventName:yp,fn:t}]}function WO(e){const t=$e.useRef(Ym),r=$e.useRef(io),i=Pn(function(){return t.current},[]),s=Pn(function(p){t.current=p},[]),o=er(()=>({eventName:"touchstart",fn:function(p){if(p.defaultPrevented)return;const h=e.findClosestDraggableId(p);if(!h)return;const m=e.tryGetLock(h,n,{sourceEvent:p});if(!m)return;const y=p.touches[0],{clientX:v,clientY:g}=y,b={x:v,y:g};r.current(),f(m,b)}}),[e]),a=Pn(function(){const p={capture:!0,passive:!1};r.current=Za(window,[o],p)},[o]),n=Pn(()=>{const d=t.current;d.type!=="IDLE"&&(d.type==="PENDING"&&clearTimeout(d.longPressTimerId),s(Ym),r.current(),a())},[a,s]),l=Pn(()=>{const d=t.current;n(),d.type==="DRAGGING"&&d.actions.cancel({shouldBlockNextClick:!0}),d.type==="PENDING"&&d.actions.abort()},[n]),c=Pn(function(){const p={capture:!0,passive:!1},h={cancel:l,completed:n,getPhase:i},m=Za(window,IQ(h),p),y=Za(window,LQ(h),p);r.current=function(){m(),y()}},[l,i,n]),u=Pn(function(){const p=i();p.type!=="PENDING"&&cn(!1);const h=p.actions.fluidLift(p.point);s({type:"DRAGGING",actions:h,hasMoved:!1})},[i,s]),f=Pn(function(p,h){i().type!=="IDLE"&&cn(!1);const m=setTimeout(u,EQ);s({type:"PENDING",point:h,actions:p,longPressTimerId:m}),c()},[c,i,s,u]);qa(function(){return a(),function(){r.current();const h=i();h.type==="PENDING"&&(clearTimeout(h.longPressTimerId),s(Ym))}},[i,a,s]),qa(function(){return Za(window,[{eventName:"touchmove",fn:()=>{},options:{capture:!1,passive:!1}}])},[])}const $Q=["input","button","textarea","select","option","optgroup","video","audio"];function UO(e,t){if(t==null)return!1;if($Q.includes(t.tagName.toLowerCase()))return!0;const i=t.getAttribute("contenteditable");return i==="true"||i===""?!0:t===e?!1:UO(e,t.parentElement)}function FQ(e,t){const r=t.target;return mp(r)?UO(e,r):!1}var jQ=e=>ui(e.getBoundingClientRect()).center;function NQ(e){return e instanceof LO(e).Element}const BQ=(()=>{const e="matches";return typeof document>"u"?e:[e,"msMatchesSelector","webkitMatchesSelector"].find(i=>i in Element.prototype)||e})();function HO(e,t){return e==null?null:e[BQ](t)?e:HO(e.parentElement,t)}function zQ(e,t){return e.closest?e.closest(t):HO(e,t)}function qQ(e){return`[${Nl.contextId}="${e}"]`}function WQ(e,t){const r=t.target;if(!NQ(r))return null;const i=qQ(e),s=zQ(r,i);return!s||!mp(s)?null:s}function UQ(e,t){const r=WQ(e,t);return r?r.getAttribute(Nl.draggableId):null}function HQ(e,t){const r=`[${hv.contextId}="${e}"]`,s=RO(document,r).find(o=>o.getAttribute(hv.id)===t);return!s||!mp(s)?null:s}function VQ(e){e.preventDefault()}function bf(e){let{expected:t,phase:r,isLockActive:i,shouldWarn:s}=e;return!(!i()||t!==r)}function VO(e){let{lockAPI:t,store:r,registry:i,draggableId:s}=e;if(t.isClaimed())return!1;const o=i.draggable.findById(s);return!(!o||!o.options.isEnabled||!PO(r.getState(),s))}function GQ(e){let{lockAPI:t,contextId:r,store:i,registry:s,draggableId:o,forceSensorStop:a,sourceEvent:n}=e;if(!VO({lockAPI:t,store:i,registry:s,draggableId:o}))return null;const c=s.draggable.getById(o),u=HQ(r,c.descriptor.id);if(!u||n&&!c.options.canDragInteractiveElements&&FQ(u,n))return null;const f=t.claim(a||io);let d="PRE_DRAG";function p(){return c.options.shouldRespectForcePress}function h(){return t.isActive(f)}function m(x,k){bf({expected:x,phase:d,isLockActive:h,shouldWarn:!0})&&i.dispatch(k())}const y=m.bind(null,"DRAGGING");function v(x){function k(){t.release(),d="COMPLETED"}d!=="PRE_DRAG"&&(k(),cn(!1)),i.dispatch(LK(x.liftActionArgs)),d="DRAGGING";function T(S,M){if(M===void 0&&(M={shouldBlockNextClick:!1}),x.cleanup(),M.shouldBlockNextClick){const C=Za(window,[{eventName:"click",fn:VQ,options:{once:!0,passive:!1,capture:!0}}]);setTimeout(C)}k(),i.dispatch(wO({reason:S}))}return{isActive:()=>bf({expected:"DRAGGING",phase:d,isLockActive:h,shouldWarn:!1}),shouldRespectForcePress:p,drop:S=>T("DROP",S),cancel:S=>T("CANCEL",S),...x.actions}}function g(x){const k=Uu(S=>{y(()=>xO({client:S}))});return{...v({liftActionArgs:{id:o,clientSelection:x,movementMode:"FLUID"},cleanup:()=>k.cancel(),actions:{move:k}}),move:k}}function b(){const x={moveUp:()=>y(WK),moveRight:()=>y(HK),moveDown:()=>y(UK),moveLeft:()=>y(VK)};return v({liftActionArgs:{id:o,clientSelection:jQ(u),movementMode:"SNAP"},cleanup:io,actions:x})}function w(){bf({expected:"PRE_DRAG",phase:d,isLockActive:h,shouldWarn:!0})&&t.release()}return{isActive:()=>bf({expected:"PRE_DRAG",phase:d,isLockActive:h,shouldWarn:!1}),shouldRespectForcePress:p,fluidLift:g,snapLift:b,abort:w}}const YQ=[zO,qO,WO];function XQ(e){let{contextId:t,store:r,registry:i,customSensors:s,enableDefaultSensors:o}=e;const a=[...o?YQ:[],...s||[]],n=$e.useState(()=>hQ())[0],l=Pn(function(v,g){Zu(v)&&!Zu(g)&&n.tryAbandon()},[n]);qa(function(){let v=r.getState();return r.subscribe(()=>{const b=r.getState();l(v,b),v=b})},[n,r,l]),qa(()=>n.tryAbandon,[n.tryAbandon]);const c=Pn(y=>VO({lockAPI:n,registry:i,store:r,draggableId:y}),[n,i,r]),u=Pn((y,v,g)=>GQ({lockAPI:n,registry:i,contextId:t,store:r,draggableId:y,forceSensorStop:v||null,sourceEvent:g&&g.sourceEvent?g.sourceEvent:null}),[t,n,i,r]),f=Pn(y=>UQ(t,y),[t]),d=Pn(y=>{const v=i.draggable.findById(y);return v?v.options:null},[i.draggable]),p=Pn(function(){n.isClaimed()&&(n.tryAbandon(),r.getState().phase!=="IDLE"&&r.dispatch(V1()))},[n,r]),h=Pn(()=>n.isClaimed(),[n]),m=er(()=>({canGetLock:c,tryGetLock:u,findClosestDraggableId:f,findOptionsForDraggable:d,tryReleaseLock:p,isLockClaimed:h}),[c,u,f,d,p,h]);for(let y=0;y({onBeforeCapture:t=>{const r=()=>{e.onBeforeCapture&&e.onBeforeCapture(t)};tt.version.startsWith("16")||tt.version.startsWith("17")?r():jy.flushSync(r)},onBeforeDragStart:e.onBeforeDragStart,onDragStart:e.onDragStart,onDragEnd:e.onDragEnd,onDragUpdate:e.onDragUpdate}),KQ=e=>({...Xu,...e.autoScrollerOptions,durationDampening:{...Xu.durationDampening,...e.autoScrollerOptions}});function Ys(e){return e.current||cn(!1),e.current}function JQ(e){const{contextId:t,setCallbacks:r,sensors:i,nonce:s,dragHandleUsageInstructions:o}=e,a=$e.useRef(null),n=FO(e),l=Pn(()=>ZQ(n.current),[n]),c=Pn(()=>KQ(n.current),[n]),u=sQ(t),f=pQ({contextId:t,text:o}),d=eQ(t,s),p=Pn(M=>{Ys(a).dispatch(M)},[]),h=er(()=>l3({publishWhileDragging:$K,updateDroppableScroll:jK,updateDroppableIsEnabled:NK,updateDroppableIsCombineEnabled:BK,collectionStarting:FK},p),[p]),m=aQ(),y=er(()=>DJ(m,h),[m,h]),v=er(()=>YJ({scrollWindow:EJ,scrollDroppable:y.scrollDroppable,getAutoScrollerOptions:c,...l3({move:xO},p)}),[y.scrollDroppable,p,c]),g=nQ(t),b=er(()=>CJ({announce:u,autoScroller:v,dimensionMarshal:y,focusMarshal:g,getResponders:l,styleMarshal:d}),[u,v,y,g,l,d]);a.current=b;const w=Pn(()=>{const M=Ys(a);M.getState().phase!=="IDLE"&&M.dispatch(V1())},[]),_=Pn(()=>{const M=Ys(a).getState();return M.phase==="DROP_ANIMATING"?!0:M.phase==="IDLE"?!1:M.isDragging},[]),x=er(()=>({isDragging:_,tryAbort:w}),[_,w]);r(x);const k=Pn(M=>PO(Ys(a).getState(),M),[]),T=Pn(()=>ko(Ys(a).getState()),[]),S=er(()=>({marshal:y,focus:g,contextId:t,canLift:k,isMovementAllowed:T,dragHandleUsageInstructionsId:f,registry:m}),[t,y,f,g,k,T,m]);return XQ({contextId:t,store:b,registry:m,customSensors:i||null,enableDefaultSensors:e.enableDefaultSensors!==!1}),$e.useEffect(()=>w,[w]),tt.createElement(vp.Provider,{value:S},tt.createElement(dZ,{context:Q1,store:b},e.children))}let GO=0;function QQ(){GO=0}function eee(){return er(()=>`${GO++}`,[])}function tee(){return tt.useId()}var nee="useId"in tt?tee:eee;function ree(){"useId"in tt||(QQ(),uQ())}function aee(e){const t=nee(),r=e.dragHandleUsageInstructions||Ff.dragHandleUsageInstructions;return tt.createElement(_Z,null,i=>tt.createElement(JQ,{nonce:e.nonce,contextId:t,setCallbacks:i,dragHandleUsageInstructions:r,enableDefaultSensors:e.enableDefaultSensors,sensors:e.sensors,onBeforeCapture:e.onBeforeCapture,onBeforeDragStart:e.onBeforeDragStart,onDragStart:e.onDragStart,onDragUpdate:e.onDragUpdate,onDragEnd:e.onDragEnd,autoScrollerOptions:e.autoScrollerOptions},e.children))}const L3={dragging:5e3,dropAnimating:4500},iee=(e,t)=>t?Iu.drop(t.duration):e?Iu.snap:Iu.fluid,oee=(e,t)=>{if(e)return t?Yu.opacity.drop:Yu.opacity.combining},lee=e=>e.forceShouldAnimate!=null?e.forceShouldAnimate:e.mode==="SNAP";function see(e){const r=e.dimension.client,{offset:i,combineWith:s,dropping:o}=e,a=!!s,n=lee(e),l=!!o,c=l?dv.drop(i,a):dv.moveTo(i);return{position:"fixed",top:r.marginBox.top,left:r.marginBox.left,boxSizing:"border-box",width:r.borderBox.width,height:r.borderBox.height,transition:iee(n,o),transform:c,opacity:oee(a,l),zIndex:l?L3.dropAnimating:L3.dragging,pointerEvents:"none"}}function uee(e){return{transform:dv.moveTo(e.offset),transition:e.shouldAnimateDisplacement?void 0:"none"}}function cee(e){return e.type==="DRAGGING"?see(e):uee(e)}function fee(e,t,r){r===void 0&&(r=la);const i=window.getComputedStyle(t),s=t.getBoundingClientRect(),o=X6(s,i),a=ud(o,r),n={client:o,tagName:t.tagName.toLowerCase(),display:i.display},l={x:o.marginBox.width,y:o.marginBox.height};return{descriptor:e,placeholder:n,displaceBy:l,client:o,page:a}}function dee(e){const t=eb("draggable"),{descriptor:r,registry:i,getDraggableRef:s,canDragInteractiveElements:o,shouldRespectForcePress:a,isEnabled:n}=e,l=er(()=>({canDragInteractiveElements:o,shouldRespectForcePress:a,isEnabled:n}),[o,n,a]),c=Pn(p=>{const h=s();return h||cn(!1),fee(r,h,p)},[r,s]),u=er(()=>({uniqueId:t,descriptor:r,options:l,getDimension:c}),[r,c,l,t]),f=$e.useRef(u),d=$e.useRef(!0);qa(()=>(i.draggable.register(f.current),()=>i.draggable.unregister(f.current)),[i.draggable]),qa(()=>{if(d.current){d.current=!1;return}const p=f.current;f.current=u,i.draggable.update(u,p)},[u,i.draggable])}var nb=tt.createContext(null);function hd(e){const t=$e.useContext(e);return t||cn(!1),t}function pee(e){e.preventDefault()}const hee=e=>{const t=$e.useRef(null),r=Pn(function(x){x===void 0&&(x=null),t.current=x},[]),i=Pn(()=>t.current,[]),{contextId:s,dragHandleUsageInstructionsId:o,registry:a}=hd(vp),{type:n,droppableId:l}=hd(nb),c=er(()=>({id:e.draggableId,index:e.index,type:n,droppableId:l}),[e.draggableId,e.index,n,l]),{children:u,draggableId:f,isEnabled:d,shouldRespectForcePress:p,canDragInteractiveElements:h,isClone:m,mapped:y,dropAnimationFinished:v}=e;if(!m){const x=er(()=>({descriptor:c,registry:a,getDraggableRef:i,canDragInteractiveElements:h,shouldRespectForcePress:p,isEnabled:d}),[c,a,i,h,p,d]);dee(x)}const g=er(()=>d?{tabIndex:0,role:"button","aria-describedby":o,"data-rfd-drag-handle-draggable-id":f,"data-rfd-drag-handle-context-id":s,draggable:!1,onDragStart:pee}:null,[s,o,f,d]),b=Pn(x=>{y.type==="DRAGGING"&&y.dropping&&x.propertyName==="transform"&&(tt.version.startsWith("16")||tt.version.startsWith("17")?v():jy.flushSync(v))},[v,y]),w=er(()=>{const x=cee(y),k=y.type==="DRAGGING"&&y.dropping?b:void 0;return{innerRef:r,draggableProps:{"data-rfd-draggable-context-id":s,"data-rfd-draggable-id":f,style:x,onTransitionEnd:k},dragHandleProps:g}},[s,g,f,y,b,r]),_=er(()=>({draggableId:c.id,type:c.type,source:{index:c.index,droppableId:c.droppableId}}),[c.droppableId,c.id,c.index,c.type]);return tt.createElement(tt.Fragment,null,u(w,y.snapshot,_))};var gee=hee,YO=(e,t)=>e===t,XO=e=>{const{combine:t,destination:r}=e;return r?r.droppableId:t?t.droppableId:null};const mee=e=>e.combine?e.combine.draggableId:null,vee=e=>e.at&&e.at.type==="COMBINE"?e.at.combine.draggableId:null;function yee(){const e=oa((s,o)=>({x:s,y:o})),t=oa(function(s,o,a,n,l){return a===void 0&&(a=null),n===void 0&&(n=null),l===void 0&&(l=null),{isDragging:!0,isClone:o,isDropAnimating:!!l,dropAnimation:l,mode:s,draggingOver:a,combineWith:n,combineTargetFor:null}}),r=oa(function(s,o,a,n,l,c,u){return l===void 0&&(l=null),c===void 0&&(c=null),u===void 0&&(u=null),{mapped:{type:"DRAGGING",dropping:null,draggingOver:l,combineWith:c,mode:o,offset:s,dimension:a,forceShouldAnimate:u,snapshot:t(o,n,l,c,null)}}});return(s,o)=>{if(Zu(s)){if(s.critical.draggable.id!==o.draggableId)return null;const a=s.current.client.offset,n=s.dimensions.draggables[o.draggableId],l=za(s.impact),c=vee(s.impact),u=s.forceShouldAnimate;return r(e(a.x,a.y),s.movementMode,n,o.isClone,l,c,u)}if(s.phase==="DROP_ANIMATING"){const a=s.completed;if(a.result.draggableId!==o.draggableId)return null;const n=o.isClone,l=s.dimensions.draggables[o.draggableId],c=a.result,u=c.mode,f=XO(c),d=mee(c),h={duration:s.dropDuration,curve:Y1.drop,moveTo:s.newHomeClientOffset,opacity:d?Yu.opacity.drop:null,scale:d?Yu.scale.drop:null};return{mapped:{type:"DRAGGING",offset:s.newHomeClientOffset,dimension:l,dropping:h,draggingOver:f,combineWith:d,mode:u,forceShouldAnimate:null,snapshot:t(u,n,f,d,h)}}}return null}}function ZO(e){return e===void 0&&(e=null),{isDragging:!1,isDropAnimating:!1,isClone:!1,dropAnimation:null,mode:null,draggingOver:null,combineTargetFor:e,combineWith:null}}const bee={mapped:{type:"SECONDARY",offset:la,combineTargetFor:null,shouldAnimateDisplacement:!0,snapshot:ZO(null)}};function xee(){const e=oa((a,n)=>({x:a,y:n})),t=oa(ZO),r=oa(function(a,n,l){return n===void 0&&(n=null),{mapped:{type:"SECONDARY",offset:a,combineTargetFor:n,shouldAnimateDisplacement:l,snapshot:t(n)}}}),i=a=>a?r(la,a,!0):null,s=(a,n,l,c)=>{const u=l.displaced.visible[a],f=!!(c.inVirtualList&&c.effected[a]),d=pp(l),p=d&&d.draggableId===a?n:null;if(!u){if(!f)return i(p);if(l.displaced.invisible[a])return null;const y=es(c.displacedBy.point),v=e(y.x,y.y);return r(v,p,!0)}if(f)return i(p);const h=l.displacedBy.point,m=e(h.x,h.y);return r(m,p,u.shouldAnimate)};return(a,n)=>{if(Zu(a))return a.critical.draggable.id===n.draggableId?null:s(n.draggableId,a.critical.draggable.id,a.impact,a.afterCritical);if(a.phase==="DROP_ANIMATING"){const l=a.completed;return l.result.draggableId===n.draggableId?null:s(n.draggableId,l.result.draggableId,l.impact,l.afterCritical)}return null}}const wee=()=>{const e=yee(),t=xee();return(i,s)=>e(i,s)||t(i,s)||bee},_ee={dropAnimationFinished:_O},Tee=G6(wee,_ee,null,{context:Q1,areStatePropsEqual:YO})(gee);var kee=Tee;function KO(e){return hd(nb).isUsingCloneFor===e.draggableId&&!e.isClone?null:tt.createElement(kee,e)}function See(e){const t=typeof e.isDragDisabled=="boolean"?!e.isDragDisabled:!0,r=!!e.disableInteractiveElementBlocking,i=!!e.shouldRespectForcePress;return tt.createElement(KO,ot({},e,{isClone:!1,isEnabled:t,canDragInteractiveElements:r,shouldRespectForcePress:i}))}const JO=e=>t=>e===t,Mee=JO("scroll"),Cee=JO("auto"),I3=(e,t)=>t(e.overflowX)||t(e.overflowY),Oee=e=>{const t=window.getComputedStyle(e),r={overflowX:t.overflowX,overflowY:t.overflowY};return I3(r,Mee)||I3(r,Cee)},Pee=()=>!1,QO=e=>e==null?null:e===document.body?Pee()?e:null:e===document.documentElement?null:Oee(e)?e:QO(e.parentElement);var Aee=QO,gv=e=>({x:e.scrollLeft,y:e.scrollTop});const eP=e=>e?window.getComputedStyle(e).position==="fixed"?!0:eP(e.parentElement):!1;var Dee=e=>{const t=Aee(e),r=eP(e);return{closestScrollable:t,isFixedOnPage:r}},Eee=e=>{let{descriptor:t,isEnabled:r,isCombineEnabled:i,isFixedOnPage:s,direction:o,client:a,page:n,closest:l}=e;const c=(()=>{if(!l)return null;const{scrollSize:p,client:h}=l,m=MO({scrollHeight:p.scrollHeight,scrollWidth:p.scrollWidth,height:h.paddingBox.height,width:h.paddingBox.width});return{pageMarginBox:l.page.marginBox,frameClient:h,scrollSize:p,shouldClipSubject:l.shouldClipSubject,scroll:{initial:l.scroll,current:l.scroll,max:m,diff:{value:la,displacement:la}}}})(),u=o==="vertical"?z1:iO,f=Fl({page:n,withPlaceholder:null,axis:u,frame:c});return{descriptor:t,isCombineEnabled:i,isFixedOnPage:s,axis:u,isEnabled:r,client:a,page:n,frame:c,subject:f}};const Ree=(e,t)=>{const r=Z6(e);if(!t||e!==t)return r;const i=r.paddingBox.top-t.scrollTop,s=r.paddingBox.left-t.scrollLeft,o=i+t.scrollHeight,a=s+t.scrollWidth,l=F1({top:i,right:a,bottom:o,left:s},r.border);return j1({borderBox:l,margin:r.margin,border:r.border,padding:r.padding})};var Lee=e=>{let{ref:t,descriptor:r,env:i,windowScroll:s,direction:o,isDropDisabled:a,isCombineEnabled:n,shouldClipSubject:l}=e;const c=i.closestScrollable,u=Ree(t,c),f=ud(u,s),d=(()=>{if(!c)return null;const h=Z6(c),m={scrollHeight:c.scrollHeight,scrollWidth:c.scrollWidth};return{client:h,page:ud(h,s),scroll:gv(c),scrollSize:m,shouldClipSubject:l}})();return Eee({descriptor:r,isEnabled:!a,isCombineEnabled:n,isFixedOnPage:i.isFixedOnPage,direction:o,client:u,page:f,closest:d})};const Iee={passive:!1},$ee={passive:!0};var $3=e=>e.shouldPublishImmediately?Iee:$ee;const xf=e=>e&&e.env.closestScrollable||null;function Fee(e){const t=$e.useRef(null),r=hd(vp),i=eb("droppable"),{registry:s,marshal:o}=r,a=FO(e),n=er(()=>({id:e.droppableId,type:e.type,mode:e.mode}),[e.droppableId,e.mode,e.type]),l=$e.useRef(n),c=er(()=>oa((w,_)=>{t.current||cn(!1);const x={x:w,y:_};o.updateDroppableScroll(n.id,x)}),[n.id,o]),u=Pn(()=>{const w=t.current;return!w||!w.env.closestScrollable?la:gv(w.env.closestScrollable)},[]),f=Pn(()=>{const w=u();c(w.x,w.y)},[u,c]),d=er(()=>Uu(f),[f]),p=Pn(()=>{const w=t.current,_=xf(w);if(w&&_||cn(!1),w.scrollOptions.shouldPublishImmediately){f();return}d()},[d,f]),h=Pn((w,_)=>{t.current&&cn(!1);const x=a.current,k=x.getDroppableRef();k||cn(!1);const T=Dee(k),S={ref:k,descriptor:n,env:T,scrollOptions:_};t.current=S;const M=Lee({ref:k,descriptor:n,env:T,windowScroll:w,direction:x.direction,isDropDisabled:x.isDropDisabled,isCombineEnabled:x.isCombineEnabled,shouldClipSubject:!x.ignoreContainerClipping}),C=T.closestScrollable;return C&&(C.setAttribute(A3.contextId,r.contextId),C.addEventListener("scroll",p,$3(S.scrollOptions))),M},[r.contextId,n,p,a]),m=Pn(()=>{const w=t.current,_=xf(w);return w&&_||cn(!1),gv(_)},[]),y=Pn(()=>{const w=t.current;w||cn(!1);const _=xf(w);t.current=null,_&&(d.cancel(),_.removeAttribute(A3.contextId),_.removeEventListener("scroll",p,$3(w.scrollOptions)))},[p,d]),v=Pn(w=>{const _=t.current;_||cn(!1);const x=xf(_);x||cn(!1),x.scrollTop+=w.y,x.scrollLeft+=w.x},[]),g=er(()=>({getDimensionAndWatchScroll:h,getScrollWhileDragging:m,dragStopped:y,scroll:v}),[y,h,m,v]),b=er(()=>({uniqueId:i,descriptor:n,callbacks:g}),[g,n,i]);qa(()=>(l.current=b.descriptor,s.droppable.register(b),()=>{t.current&&y(),s.droppable.unregister(b)}),[g,n,y,b,o,s.droppable]),qa(()=>{t.current&&o.updateDroppableIsEnabled(l.current.id,!e.isDropDisabled)},[e.isDropDisabled,o]),qa(()=>{t.current&&o.updateDroppableIsCombineEnabled(l.current.id,e.isCombineEnabled)},[e.isCombineEnabled,o])}function Xm(){}const F3={width:0,height:0,margin:PZ},jee=e=>{let{isAnimatingOpenOnMount:t,placeholder:r,animate:i}=e;return t||i==="close"?F3:{height:r.client.borderBox.height,width:r.client.borderBox.width,margin:r.client.margin}},Nee=e=>{let{isAnimatingOpenOnMount:t,placeholder:r,animate:i}=e;const s=jee({isAnimatingOpenOnMount:t,placeholder:r,animate:i});return{display:r.display,boxSizing:"border-box",width:s.width,height:s.height,marginTop:s.margin.top,marginRight:s.margin.right,marginBottom:s.margin.bottom,marginLeft:s.margin.left,flexShrink:"0",flexGrow:"0",pointerEvents:"none",transition:i!=="none"?Iu.placeholder:null}},Bee=e=>{const t=$e.useRef(null),r=Pn(()=>{t.current&&(clearTimeout(t.current),t.current=null)},[]),{animate:i,onTransitionEnd:s,onClose:o,contextId:a}=e,[n,l]=$e.useState(e.animate==="open");$e.useEffect(()=>n?i!=="open"?(r(),l(!1),Xm):t.current?Xm:(t.current=setTimeout(()=>{t.current=null,l(!1)}),r):Xm,[i,n,r]);const c=Pn(f=>{f.propertyName==="height"&&(s(),i==="close"&&o())},[i,o,s]),u=Nee({isAnimatingOpenOnMount:n,animate:e.animate,placeholder:e.placeholder});return tt.createElement(e.placeholder.tagName,{style:u,"data-rfd-placeholder-context-id":a,onTransitionEnd:c,ref:e.innerRef})};var zee=tt.memo(Bee);class qee extends tt.PureComponent{constructor(){super(...arguments),this.state={isVisible:!!this.props.on,data:this.props.on,animate:this.props.shouldAnimate&&this.props.on?"open":"none"},this.onClose=()=>{this.state.animate==="close"&&this.setState({isVisible:!1})}}static getDerivedStateFromProps(t,r){return t.shouldAnimate?t.on?{isVisible:!0,data:t.on,animate:"open"}:r.isVisible?{isVisible:!0,data:r.data,animate:"close"}:{isVisible:!1,animate:"close",data:null}:{isVisible:!!t.on,data:t.on,animate:"none"}}render(){if(!this.state.isVisible)return null;const t={onClose:this.onClose,data:this.state.data,animate:this.state.animate};return this.props.children(t)}}const Wee=e=>{const t=$e.useContext(vp);t||cn(!1);const{contextId:r,isMovementAllowed:i}=t,s=$e.useRef(null),o=$e.useRef(null),{children:a,droppableId:n,type:l,mode:c,direction:u,ignoreContainerClipping:f,isDropDisabled:d,isCombineEnabled:p,snapshot:h,useClone:m,updateViewportMaxScroll:y,getContainerForClone:v}=e,g=Pn(()=>s.current,[]),b=Pn(function(C){C===void 0&&(C=null),s.current=C},[]);Pn(()=>o.current,[]);const w=Pn(function(C){C===void 0&&(C=null),o.current=C},[]),_=Pn(()=>{i()&&y({maxScroll:OO()})},[i,y]);Fee({droppableId:n,type:l,mode:c,direction:u,isDropDisabled:d,isCombineEnabled:p,ignoreContainerClipping:f,getDroppableRef:g});const x=er(()=>tt.createElement(qee,{on:e.placeholder,shouldAnimate:e.shouldAnimatePlaceholder},C=>{let{onClose:A,data:D,animate:O}=C;return tt.createElement(zee,{placeholder:D,onClose:A,innerRef:w,animate:O,contextId:r,onTransitionEnd:_})}),[r,_,e.placeholder,e.shouldAnimatePlaceholder,w]),k=er(()=>({innerRef:b,placeholder:x,droppableProps:{"data-rfd-droppable-id":n,"data-rfd-droppable-context-id":r}}),[r,n,x,b]),T=m?m.dragging.draggableId:null,S=er(()=>({droppableId:n,type:l,isUsingCloneFor:T}),[n,T,l]);function M(){if(!m)return null;const{dragging:C,render:A}=m,D=tt.createElement(KO,{draggableId:C.draggableId,index:C.source.index,isClone:!0,isEnabled:!0,shouldRespectForcePress:!1,canDragInteractiveElements:!0},(O,R)=>A(O,R,C));return lR.createPortal(D,v())}return tt.createElement(nb.Provider,{value:S},a(k,h),M())};var Uee=Wee;function Hee(){return document.body||cn(!1),document.body}const j3={mode:"standard",type:"DEFAULT",direction:"vertical",isDropDisabled:!1,isCombineEnabled:!1,ignoreContainerClipping:!1,renderClone:null,getContainerForClone:Hee},tP=e=>{let t={...e},r;for(r in j3)e[r]===void 0&&(t={...t,[r]:j3[r]});return t},Zm=(e,t)=>e===t.droppable.type,N3=(e,t)=>t.draggables[e.draggable.id],Vee=()=>{const e={placeholder:null,shouldAnimatePlaceholder:!0,snapshot:{isDraggingOver:!1,draggingOverWith:null,draggingFromThisWith:null,isUsingPlaceholder:!1},useClone:null},t={...e,shouldAnimatePlaceholder:!1},r=oa(o=>({draggableId:o.id,type:o.type,source:{index:o.index,droppableId:o.droppableId}})),i=oa((o,a,n,l,c,u)=>{const f=c.descriptor.id;if(c.descriptor.droppableId===o){const h=u?{render:u,dragging:r(c.descriptor)}:null,m={isDraggingOver:n,draggingOverWith:n?f:null,draggingFromThisWith:f,isUsingPlaceholder:!0};return{placeholder:c.placeholder,shouldAnimatePlaceholder:!1,snapshot:m,useClone:h}}if(!a)return t;if(!l)return e;const p={isDraggingOver:n,draggingOverWith:f,draggingFromThisWith:null,isUsingPlaceholder:!0};return{placeholder:c.placeholder,shouldAnimatePlaceholder:!0,snapshot:p,useClone:null}});return(o,a)=>{const n=tP(a),l=n.droppableId,c=n.type,u=!n.isDropDisabled,f=n.renderClone;if(Zu(o)){const d=o.critical;if(!Zm(c,d))return t;const p=N3(d,o.dimensions),h=za(o.impact)===l;return i(l,u,h,h,p,f)}if(o.phase==="DROP_ANIMATING"){const d=o.completed;if(!Zm(c,d.critical))return t;const p=N3(d.critical,o.dimensions);return i(l,u,XO(d.result)===l,za(d.impact)===l,p,f)}if(o.phase==="IDLE"&&o.completed&&!o.shouldFlush){const d=o.completed;if(!Zm(c,d.critical))return t;const p=za(d.impact)===l,h=!!(d.impact.at&&d.impact.at.type==="COMBINE"),m=d.critical.droppable.id===l;return p?h?e:t:m?e:t}return t}},Gee={updateViewportMaxScroll:qK},Yee=G6(Vee,Gee,(e,t,r)=>({...tP(r),...e,...t}),{context:Q1,areStatePropsEqual:YO})(Uee);var Xee=Yee;const Zee=Object.freeze(Object.defineProperty({__proto__:null,DragDropContext:aee,Draggable:See,Droppable:Xee,resetServerContext:ree,useKeyboardSensor:qO,useMouseSensor:zO,useTouchSensor:WO},Symbol.toStringTag,{value:"Module"})),rb=Xn(Zee);var B3;function Kee(){return B3||(B3=1,function(e){var t=yn,r=Gr();Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var i=t(_r()),s=t(Xo),o=t(na()),a=t(N6),n=t(BX),l=t(fp),c=t(Ar),u=m($e),f=rb,d=ci(),p=mc();function h(w){if(typeof WeakMap!="function")return null;var _=new WeakMap,x=new WeakMap;return(h=function(T){return T?x:_})(w)}function m(w,_){if(!_&&w&&w.__esModule)return w;if(w===null||r(w)!=="object"&&typeof w!="function")return{default:w};var x=h(_);if(x&&x.has(w))return x.get(w);var k={},T=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var S in w)if(S!=="default"&&Object.prototype.hasOwnProperty.call(w,S)){var M=T?Object.getOwnPropertyDescriptor(w,S):null;M&&(M.get||M.set)?Object.defineProperty(k,S,M):k[S]=w[S]}return k.default=w,x&&x.set(w,k),k}function y(w,_){var x=Object.keys(w);if(Object.getOwnPropertySymbols){var k=Object.getOwnPropertySymbols(w);_&&(k=k.filter(function(T){return Object.getOwnPropertyDescriptor(w,T).enumerable})),x.push.apply(x,k)}return x}function v(w){for(var _=1;_0&&u.default.createElement(l.default,{variant:"caption",sx:{padding:1}},_.groupedBy),w.groupColumns.map(function(A,D){return u.default.createElement(f.Draggable,{key:A.tableData.id.toString(),draggableId:A.tableData.id.toString(),index:D},function(O,R){var $;return u.default.createElement(s.default,(0,i.default)({ref:O.innerRef},O.draggableProps,O.dragHandleProps,{sx:T(R.isDragging,O.draggableProps.style)}),u.default.createElement(n.default,(0,i.default)({},O.dragHandleProps,k.groupChipProps,{onClick:function(){return w.onSortChanged(A)},label:u.default.createElement(s.default,{sx:{display:"flex",alignItems:"center"}},u.default.createElement(s.default,{sx:{float:"left"}},A.title),A.tableData.groupSort&&u.default.createElement(x.SortArrow,{sx:{transition:"300ms ease all",transform:A.tableData.groupSort==="asc"?"rotate(-180deg)":"none",fontSize:18}})),sx:v({boxShadow:"none",textTransform:"none"},($=k.groupChipProps)!==null&&$!==void 0?$:{}),onDelete:function(){return w.onGroupRemoved(A,D)}})))})}),w.groupColumns.length===0&&u.default.createElement(l.default,{variant:"caption",sx:{padding:1}},_.placeholder),M.placeholder)}))}g.defaultProps={},g.propTypes={forwardedRef:c.default.element,className:c.default.string,onSortChanged:c.default.func,onGroupRemoved:c.default.func,onGroupChange:c.default.func,persistentGroupingsId:c.default.string};var b=u.default.forwardRef(function(_,x){return u.default.createElement(g,(0,i.default)({},_,{forwardedRef:x}))});e.default=b}(Nm)),Nm}var Km={},z3;function Jee(){return z3||(z3=1,function(e){var t=yn;Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var r=t(_r()),i=t(na()),s=t(ho()),o=t(Jl()),a=t(Si),n=t(Ni),l=t(Ql),c=t(Zo),u=t(Ar),f=t($e),d=ci();function p(v,g){var b=Object.keys(v);if(Object.getOwnPropertySymbols){var w=Object.getOwnPropertySymbols(v);g&&(w=w.filter(function(_){return Object.getOwnPropertyDescriptor(v,_).enumerable})),b.push.apply(b,w)}return b}function h(v){for(var g=1;g0&&_++;var x=v.groups[v.level],k;v.groupData.isExpanded&&(v.groups.length>v.level+1?k=v.groupData.groups.map(function(j,F){return f.default.createElement(v.components.GroupRow,{actions:v.actions,key:j.value||""+F,columns:v.columns,components:v.components,detailPanel:v.detailPanel,getFieldValue:v.getFieldValue,groupData:j,groups:v.groups,level:v.level+1,path:[].concat((0,o.default)(v.path),[F]),onGroupExpandChanged:v.onGroupExpandChanged,onGroupSelected:v.onGroupSelected,onRowSelected:v.onRowSelected,onRowClick:v.onRowClick,onToggleDetailPanel:v.onToggleDetailPanel,onTreeExpandChanged:v.onTreeExpandChanged,onEditingCanceled:v.onEditingCanceled,onEditingApproved:v.onEditingApproved,hasAnyEditingRow:v.hasAnyEditingRow,isTreeData:v.isTreeData,cellEditable:v.cellEditable,onCellEditStarted:v.onCellEditStarted,onCellEditFinished:v.onCellEditFinished,scrollWidth:v.scrollWidth,treeDataMaxLevel:v.treeDataMaxLevel})}):k=v.groupData.data.map(function(j,F){return j.tableData.editing?f.default.createElement(v.components.EditRow,{columns:v.columns,components:v.components,data:j,path:[].concat((0,o.default)(v.path),[j.tableData.uuid]),localization:v.localization,key:F,mode:j.tableData.editing,isTreeData:v.isTreeData,detailPanel:v.detailPanel,onEditingCanceled:v.onEditingCanceled,onEditingApproved:v.onEditingApproved,getFieldValue:v.getFieldValue,onBulkEditRowChanged:v.onBulkEditRowChanged,scrollWidth:v.scrollWidth}):f.default.createElement(v.components.Row,{actions:v.actions,key:F,columns:v.columns,components:v.components,data:j,detailPanel:v.detailPanel,level:(v.level||0)+1,getFieldValue:v.getFieldValue,path:[].concat((0,o.default)(v.path),[j.tableData.uuid]),onRowSelected:v.onRowSelected,onRowClick:v.onRowClick,onToggleDetailPanel:v.onToggleDetailPanel,isTreeData:v.isTreeData,onTreeExpandChanged:v.onTreeExpandChanged,onEditingCanceled:v.onEditingCanceled,onEditingApproved:v.onEditingApproved,hasAnyEditingRow:v.hasAnyEditingRow,cellEditable:v.cellEditable,onCellEditStarted:v.onCellEditStarted,onCellEditFinished:v.onCellEditFinished,scrollWidth:v.scrollWidth,treeDataMaxLevel:v.treeDataMaxLevel})}));for(var T=[],S=0;S0&&P!==z,checked:P===z,onChange:function(F,E){return v.onGroupSelected&&v.onGroupSelected(E,v.groupData.path)},style:{marginRight:8}}),f.default.createElement("b",null,C,A)))),k)}m.defaultProps={columns:[],groups:[],level:0},m.propTypes={actions:u.default.array,columns:u.default.arrayOf(u.default.object),components:u.default.object,cellEditable:u.default.object,detailPanel:u.default.oneOfType([u.default.func,u.default.arrayOf(u.default.object)]),forwardedRef:u.default.element,getFieldValue:u.default.func,groupData:u.default.object,groups:u.default.arrayOf(u.default.object),hasAnyEditingRow:u.default.bool,icons:u.default.object,isTreeData:u.default.bool.isRequired,level:u.default.number,localization:u.default.object,onBulkEditRowChanged:u.default.func,onCellEditFinished:u.default.func,onCellEditStarted:u.default.func,onEditingApproved:u.default.func,onEditingCanceled:u.default.func,onGroupExpandChanged:u.default.func,onRowClick:u.default.func,onGroupSelected:u.default.func,onRowSelected:u.default.func,onToggleDetailPanel:u.default.func.isRequired,onTreeExpandChanged:u.default.func.isRequired,path:u.default.arrayOf(u.default.number),scrollWidth:u.default.number.isRequired,treeDataMaxLevel:u.default.number};var y=f.default.forwardRef(function(g,b){return f.default.createElement(m,(0,r.default)({},g,{forwardedRef:b}))});e.default=y}(Km)),Km}var Jm={};const Qee=Xn(dN),ete=Xn(zN);var q3;function tte(){return q3||(q3=1,function(e){var t=yn,r=Gr();Object.defineProperty(e,"__esModule",{value:!0}),e.MTableHeader=T,e.styles=e.default=void 0;var i=t(Xo),s=t(Ko),o=t(_r()),a=t(na()),n=t(ho()),l=t(Kl()),c=t($e),u=t(Ar),f=t(Qee),d=t(Ni),p=t(Si),h=t(ete),m=t(Zo),y=rb,v=_(Wi()),g=ci(),b=["onColumnResized","classes","sx","columns"];function w(O){if(typeof WeakMap!="function")return null;var R=new WeakMap,$=new WeakMap;return(w=function(z){return z?$:R})(O)}function _(O,R){if(!R&&O&&O.__esModule)return O;if(O===null||r(O)!=="object"&&typeof O!="function")return{default:O};var $=w(R);if($&&$.has(O))return $.get(O);var P={},z=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var B in O)if(B!=="default"&&Object.prototype.hasOwnProperty.call(O,B)){var N=z?Object.getOwnPropertyDescriptor(O,B):null;N&&(N.get||N.set)?Object.defineProperty(P,B,N):P[B]=O[B]}return P.default=O,$&&$.set(O,P),P}function x(O,R){var $=Object.keys(O);if(Object.getOwnPropertySymbols){var P=Object.getOwnPropertySymbols(O);R&&(P=P.filter(function(z){return Object.getOwnPropertyDescriptor(O,z).enumerable})),$.push.apply($,P)}return $}function k(O){for(var R=1;R-1)&&!ce.tableData.hiddden}).sort(function(ce,ye){return ce.tableData.columnOrder-ye.tableData.columnOrder}).map(function(ce,ye,V){var ne=ce.align!==void 0?ce.align:["numeric","currency"].indexOf(ce.type)!==-1?"right":"left",fe=ce.title;if(j.draggable&&ce.draggable!==!1?fe=c.default.createElement(y.Draggable,{key:ce.tableData.id,draggableId:ce.tableData.id.toString(),index:ye,style:{zIndex:99}},function(ue,ge){return c.default.createElement("div",(0,o.default)({ref:ue.innerRef},ue.draggableProps,ue.dragHandleProps,{style:ge.isDragging?ue.draggableProps.style:{position:"relative",minWidth:0,display:"flex",flexDirection:ne==="right"?"row-reverse":void 0}}),ce.sorting!==!1&&B.sorting&&B.allowSorting?c.default.createElement(M,{columnDef:ce,keepSortDirectionOnColumnSwitch:j.keepSortDirectionOnColumnSwitch,icon:F.SortArrow,thirdSortClick:j.thirdSortClick,onOrderChange:B.onOrderChange,orderByCollection:B.orderByCollection,showColumnSortOrder:j.showColumnSortOrder,sortOrderIndicatorStyle:j.sortOrderIndicatorStyle},ce.title):ce.title)}):ce.sorting!==!1&&B.sorting&&B.allowSorting&&(fe=c.default.createElement(M,{columnDef:ce,keepSortDirectionOnColumnSwitch:j.keepSortDirectionOnColumnSwitch,icon:F.SortArrow,thirdSortClick:j.thirdSortClick,onOrderChange:B.onOrderChange,orderByCollection:B.orderByCollection,showColumnSortOrder:j.showColumnSortOrder,sortOrderIndicatorStyle:j.sortOrderIndicatorStyle},ce.title)),ce.tooltip&&(fe=c.default.createElement(s.default,{title:ce.tooltip,placement:"bottom"},c.default.createElement("span",null,fe))),j.tableLayout==="fixed"&&j.columnResizable&&ce.resizable!==!1&&!(j.tableWidth==="full"&&ye===V.length-1)){var xe=F.Resize?F.Resize:function(ue){return c.default.createElement(i.default,(0,o.default)({},ue,{"data-test-id":"drag_handle"}))};fe=c.default.createElement(i.default,{sx:C.headerWrap(ne==="right")},c.default.createElement(i.default,{sx:C.headerContent(ne==="right")},fe),c.default.createElement("div",null),c.default.createElement(xe,{sx:C.headerResize((q==null?void 0:q.col)&&q.col.tableData.id===ce.tableData.id),onMouseDown:function(ge){return G(ge,ce,ye)}}))}return c.default.createElement(p.default,{key:ce.tableData.id,align:ne,sx:C.header,style:le(ce),size:Se,"aria-label":ce.ariaLabel},fe)})}function he(){var Se=v.selectionMaxWidth(k(k({},B),{},{options:j}),B.treeDataMaxLevel);return c.default.createElement(p.default,{padding:"none",key:"key-selection-column",sx:C.header,style:k(k({},j.headerStyle),{},{width:Se})},j.showSelectAllCheckbox&&c.default.createElement(m.default,(0,o.default)({indeterminate:B.selectedCount>0&&B.selectedCount0&&B.selectedCount>=B.dataCount,onChange:function(ye,V){return B.onAllSelected&&B.onAllSelected(V)}},j.headerSelectionProps)))}function _e(){return c.default.createElement(p.default,{padding:"none",key:"key-detail-panel-column",sx:C.header,style:j.headerStyle})}var Me=se();if(j.selection&&Me.splice(0,0,he()),B.showActionsColumn)if(j.actionsColumnIndex>=0){var Ce=0;j.selection&&(Ce=1),Me.splice(j.actionsColumnIndex+Ce,0,ie())}else j.actionsColumnIndex===-1&&Me.push(ie());return B.hasDetailPanel&&j.showDetailPanelIcon&&(j.detailPanelColumnAlignment==="right"?Me.push(_e()):Me.splice(0,0,_e())),B.isTreeData>0&&Me.splice(0,0,c.default.createElement(p.default,{padding:"none",key:"key-tree-data-header",sx:C.header,style:j.headerStyle})),Q.filter(function(Se){return Se.tableData.groupOrder>-1}).forEach(function(Se){Me.splice(0,0,c.default.createElement(p.default,{padding:"checkbox",key:"key-group-header"+Se.tableData.id,sx:C.header,style:j.headerStyle}))}),c.default.createElement(f.default,{ref:B.forwardedRef,classes:$,sx:P},c.default.createElement(d.default,{sx:C.headerRow},Me))}var S=function(R,$,P,z,B){return P.tableData.id!==R?B&&$||"asc":$==="asc"?"desc":$==="desc"&&z?"":"asc"};function M(O){var R=O.columnDef,$=O.keepSortDirectionOnColumnSwitch,P=O.icon,z=O.thirdSortClick,B=O.onOrderChange,N=O.children,j=O.orderByCollection,F=O.showColumnSortOrder,E=O.sortOrderIndicatorStyle,W=j.find(function(U){var J=U.orderBy;return J===R.tableData.id}),H=(W||$)&&W&&W.orderDirection||"asc",L="none";W&&H==="asc"?L=R.ariaSortAsc||"ascending":W&&H==="desc"&&(L=R.ariaSortDesc||"descending");var q=W&&W.orderBy;return c.default.createElement(c.default.Fragment,null,c.default.createElement(h.default,{role:"columnheader","aria-sort":L,"aria-label":R.ariaLabel,IconComponent:P,active:!!W,"data-testid":"mtableheader-sortlabel",direction:H,onClick:function(){var J=S(q,H,R,z,$);B(R.tableData.id,J,W&&W.sortOrder)}},N),c.default.createElement("span",{style:k(k({},E),{},{width:"1em"}),"data-testid":"material-table-column-sort-order-indicator"},F&&W?W.sortOrder:""))}T.defaultProps={dataCount:0,selectedCount:0,orderByCollection:[],allowSorting:!0},T.propTypes={columns:u.default.array.isRequired,classes:u.default.object,sx:u.default.object,dataCount:u.default.number,hasDetailPanel:u.default.bool.isRequired,selectedCount:u.default.number,onAllSelected:u.default.func,onOrderChange:u.default.func,showActionsColumn:u.default.bool,orderByCollection:u.default.array,showColumnSortOrder:u.default.bool,tooltip:u.default.string,allowSorting:u.default.bool};var C={headerRow:{zIndex:10},header:{top:0},headerWrap:function(R){return{display:"flex",alignItems:"center",position:"relative",left:4}},headerWrapRight:function(R){return{display:"flex",alignItems:"center",pr:R?1:void 0,position:"relative",left:4,justifyContent:"flex-end"}},headerContent:function(R){return{minWidth:0,display:"flex",flex:"1 0 100%",flexDirection:R?"row-reverse":void 0,justifyContent:"flex-start",alignItems:"center",width:"100%",position:"relative"}},headerResize:function(R){return{color:R?"primary.main":"inherit",flex:1,cursor:"col-resize",position:"absolute",height:"100%",width:16,display:"flex",justifyContent:"center",right:-8,zIndex:20}}};e.styles=C;var A=c.default.forwardRef(function(R,$){return c.default.createElement(T,(0,o.default)({},R,{forwardedRef:$}))}),D=c.default.memo(A);e.default=D}(Jm)),Jm}var Qm={};const nte=Xn(w$);var W3;function rte(){return W3||(W3=1,function(e){var t=yn,r=Gr();Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var i=t(_r()),s=t(Ql),o=t(Ko),a=t(Xo),n=t(nte),l=t(Ar),c=t($e),u=Zl,f=h(Wi()),d=ci();function p(b){if(typeof WeakMap!="function")return null;var w=new WeakMap,_=new WeakMap;return(p=function(k){return k?_:w})(b)}function h(b,w){if(!w&&b&&b.__esModule)return b;if(b===null||r(b)!=="object"&&typeof b!="function")return{default:b};var _=p(w);if(_&&_.has(b))return _.get(b);var x={},k=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var T in b)if(T!=="default"&&Object.prototype.hasOwnProperty.call(b,T)){var S=k?Object.getOwnPropertyDescriptor(b,T):null;S&&(S.get||S.set)?Object.defineProperty(x,T,S):x[T]=b[T]}return x.default=b,_&&_.set(b,x),x}function m(b){var w=(0,u.useTheme)(),_=(0,d.useLocalizationStore)().pagination,x=(0,d.useIconStore)(),k=function(H){b.onPageChange(H,0)},T=function(H){b.onPageChange(H,b.page-1)},S=function(H){b.onPageChange(H,b.page+1)},M=function(H){return function(L){b.onPageChange(L,H)}},C=function(H){b.onPageChange(H,Math.max(0,Math.ceil(b.count/b.rowsPerPage)-1))};function A(W,H,L,q){var U=[];q=Math.max(1,Math.min(10,q));for(var J=Math.max(W-q+1,0);J<=Math.min(H+q-1,L);J++){var te=J===b.page?"contained":"text";U.push(c.default.createElement(n.default,{size:"small",style:{boxShadow:"none",maxWidth:"30px",maxHeight:"30px",minWidth:"30px",minHeight:"30px"},disabled:J===b.page,variant:te,onClick:M(J),key:J},J+1))}return c.default.createElement("span",null,U)}var D=b.count,O=b.page,R=b.rowsPerPage,$=b.showFirstLastPageButtons,P=b.numberOfPagesAround,z=Math.ceil(D/R)-1,B=Math.max(O-1,0),N=Math.min(z,O+1),j=f.parseFirstLastPageButtons($,w.direction==="rtl"),F=j.first,E=j.last;return c.default.createElement(a.default,{sx:{flexShrink:0,color:"text.secondary",marginLeft:2.5,display:"flex",alignItems:"center"},ref:b.forwardedRef},F&&c.default.createElement(o.default,{title:_.firstTooltip},c.default.createElement("span",null,c.default.createElement(s.default,{onClick:k,disabled:O===0,"aria-label":_.firstAriaLabel,size:"large"},w.direction==="rtl"?c.default.createElement(x.LastPage,null):c.default.createElement(x.FirstPage,null)))),c.default.createElement(o.default,{title:_.previousTooltip},c.default.createElement("span",null,c.default.createElement(s.default,{onClick:T,disabled:O===0,"aria-label":_.previousAriaLabel},c.default.createElement(x.PreviousPage,null)))),c.default.createElement(a.default,{sx:{display:{xs:"false",sm:"false",md:"block"}}},A(B,N,z,P)),c.default.createElement(o.default,{title:_.nextTooltip},c.default.createElement("span",null,c.default.createElement(s.default,{onClick:S,disabled:O>=z,"aria-label":_.nextAriaLabel,size:"large"},w.direction==="rtl"?c.default.createElement(x.PreviousPage,null):c.default.createElement(x.NextPage,null)))),E&&c.default.createElement(o.default,{title:_.lastTooltip},c.default.createElement("span",null,c.default.createElement(s.default,{onClick:C,disabled:O>=Math.ceil(D/R)-1,"aria-label":_.lastAriaLabel,size:"large"},w.direction==="rtl"?c.default.createElement(x.FirstPage,null):c.default.createElement(x.LastPage,null)))))}m.propTypes={onPageChange:l.default.func,page:l.default.number,forwardedRef:l.default.func,count:l.default.number,rowsPerPage:l.default.number,numberOfPagesAround:l.default.number,classes:l.default.object,theme:l.default.any,showFirstLastPageButtons:l.default.oneOfType([l.default.object,l.default.bool])},m.defaultProps={showFirstLastPageButtons:!0};var y=c.default.forwardRef(function(w,_){return c.default.createElement(m,(0,i.default)({},w,{forwardedRef:_}))}),v=y,g=v;e.default=g}(Qm)),Qm}var e0={},U3;function ate(){return U3||(U3=1,function(e){var t=yn,r=Gr();Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var i=t(_r()),s=t(Xo),o=t(Ql),a=t(Ko),n=t(fp),l=t(Ar),c=t($e),u=Zl,f=h(Wi()),d=mc();function p(b){if(typeof WeakMap!="function")return null;var w=new WeakMap,_=new WeakMap;return(p=function(k){return k?_:w})(b)}function h(b,w){if(!w&&b&&b.__esModule)return b;if(b===null||r(b)!=="object"&&typeof b!="function")return{default:b};var _=p(w);if(_&&_.has(b))return _.get(b);var x={},k=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var T in b)if(T!=="default"&&Object.prototype.hasOwnProperty.call(b,T)){var S=k?Object.getOwnPropertyDescriptor(b,T):null;S&&(S.get||S.set)?Object.defineProperty(x,T,S):x[T]=b[T]}return x.default=b,_&&_.set(b,x),x}function m(b){var w=(0,u.useTheme)(),_=(0,d.useIconStore)(),x=(0,d.useLocalizationStore)().pagination,k=function(B){b.onPageChange(B,0)},T=function(B){b.onPageChange(B,b.page-1)},S=function(B){b.onPageChange(B,b.page+1)},M=function(B){b.onPageChange(B,Math.max(0,Math.ceil(b.count/b.rowsPerPage)-1))},C=b.count,A=b.page,D=b.rowsPerPage,O=b.showFirstLastPageButtons,R=f.parseFirstLastPageButtons(O,w.direction==="rtl"),$=R.first,P=R.last;return c.default.createElement(s.default,{sx:{flexShrink:0,color:"text.secondary",display:"flex",alignItems:"center"},ref:b.forwardedRef},$&&c.default.createElement(a.default,{title:x.firstTooltip},c.default.createElement("span",null,c.default.createElement(o.default,{onClick:k,disabled:A===0,"aria-label":x.firstAriaLabel,size:"large"},w.direction==="rtl"?c.default.createElement(_.LastPage,null):c.default.createElement(_.FirstPage,null)))),c.default.createElement(a.default,{title:x.previousTooltip},c.default.createElement("span",null,c.default.createElement(o.default,{onClick:T,disabled:A===0,"aria-label":x.previousAriaLabel},w.direction==="rtl"?c.default.createElement(_.NextPage,null):c.default.createElement(_.PreviousPage,null)))),c.default.createElement(n.default,{variant:"caption",style:{flex:1,textAlign:"center",alignSelf:"center",flexBasis:"inherit"}},x.labelDisplayedRows.replace("{from}",b.count===0?0:b.page*b.rowsPerPage+1).replace("{to}",Math.min((b.page+1)*b.rowsPerPage,b.count)).replace("{count}",b.count)),c.default.createElement(a.default,{title:x.nextTooltip},c.default.createElement("span",null,c.default.createElement(o.default,{onClick:S,disabled:A>=Math.ceil(C/D)-1,"aria-label":x.nextAriaLabel},w.direction==="rtl"?c.default.createElement(_.PreviousPage,null):c.default.createElement(_.NextPage,null)))),P&&c.default.createElement(a.default,{title:x.lastTooltip},c.default.createElement("span",null,c.default.createElement(o.default,{onClick:M,disabled:A>=Math.ceil(C/D)-1,"aria-label":x.lastAriaLabel,size:"large"},w.direction==="rtl"?c.default.createElement(_.FirstPage,null):c.default.createElement(_.LastPage,null)))))}m.propTypes={onPageChange:l.default.func,page:l.default.number,count:l.default.number,rowsPerPage:l.default.number,classes:l.default.object,localization:l.default.object,showFirstLastPageButtons:l.default.oneOfType([l.default.object,l.default.bool]),forwardedRef:l.default.func},m.defaultProps={showFirstLastPageButtons:!0};var y=c.default.forwardRef(function(w,_){return c.default.createElement(m,(0,i.default)({},w,{forwardedRef:_}))}),v=y,g=v;e.default=g}(e0)),e0}var t0={},H3;function ite(){return H3||(H3=1,function(e){var t=yn,r=Gr();Object.defineProperty(e,"__esModule",{value:!0}),e.MTableSummaryRow=v,e.default=void 0;var i=t(Ni),s=t(Gr()),o=t(Jl()),a=t(Si),n=t(na()),l=h($e),c=cp(),u=h(Wi()),f=ci(),d=t(Ar);function p(b){if(typeof WeakMap!="function")return null;var w=new WeakMap,_=new WeakMap;return(p=function(k){return k?_:w})(b)}function h(b,w){if(!w&&b&&b.__esModule)return b;if(b===null||r(b)!=="object"&&typeof b!="function")return{default:b};var _=p(w);if(_&&_.has(b))return _.get(b);var x={},k=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var T in b)if(T!=="default"&&Object.prototype.hasOwnProperty.call(b,T)){var S=k?Object.getOwnPropertyDescriptor(b,T):null;S&&(S.get||S.set)?Object.defineProperty(x,T,S):x[T]=b[T]}return x.default=b,_&&_.set(b,x),x}function m(b,w){var _=Object.keys(b);if(Object.getOwnPropertySymbols){var x=Object.getOwnPropertySymbols(b);w&&(x=x.filter(function(k){return Object.getOwnPropertyDescriptor(b,k).enumerable})),_.push.apply(_,x)}return _}function y(b){for(var w=1;w1&&arguments[1]!==void 0?arguments[1]:1,R=u.elementSize(y(y({},_),{},{options:k})),$=O*u.baseIconSize(y(y({},_),{},{options:k}));return l.createElement(a.default,{key:"placeholder.".concat(D),size:R,padding:"none",style:{width:$,padding:"0px 5px",boxSizing:"border-box"}})}var S=[],M=[],C=0;if(k.selection&&S.push(T(C++)),_.actions&&_.actions.filter(function(D){return D.position==="row"||typeof D=="function"}).length>0){var A=u.rowActions(_).length;k.actionsColumnIndex===-1?M.push(T(C++,A)):k.actionsColumnIndex>=0&&S.push(T(C++,A))}return _.detailPanel&&k.showDetailPanelIcon&&(k.detailPanelColumnAlignment==="right"?M.push(T(C++)):S.push(T(C++))),_.isTreeData&&S.push(T(C++)),l.createElement(i.default,null,S,(0,o.default)(w).sort(function(D,O){return D.tableData.columnOrder-O.tableData.columnOrder}).map(function(D,O){var R=x({index:D.tableData.columnOrder,column:D,columns:w}),$=D.align!==void 0?D.align:["numeric","currency"].indexOf(D.type)!==-1?"right":"left",P="",z=(0,c.getStyle)({columnDef:D,scrollWidth:0});return(0,s.default)(R)==="object"&&R!==null?(P=R.value,z=R.style):P=R,l.createElement(a.default,{key:O,style:z,align:$},P)}),M)}v.propTypes={columns:d.default.array,renderSummaryRow:d.default.func};var g=v;e.default=g}(t0)),t0}var n0={};const ote=Xn(Cj);var V3;function lte(){return V3||(V3=1,function(e){var t=yn,r=Gr();Object.defineProperty(e,"__esModule",{value:!0}),e.MTableToolbar=S,e.default=void 0;var i=t(_r()),s=t(na()),o=t(Xo),a=t(ho()),n=t(Zo),l=t(F6),c=t(Ql),u=t(ote),f=t(i1),d=t(tp),p=t(N6),h=t(Ko),m=t(fp),y=Zl,v=t(Ar),g=_($e),b=ci();function w(O){if(typeof WeakMap!="function")return null;var R=new WeakMap,$=new WeakMap;return(w=function(z){return z?$:R})(O)}function _(O,R){if(!R&&O&&O.__esModule)return O;if(O===null||r(O)!=="object"&&typeof O!="function")return{default:O};var $=w(R);if($&&$.has(O))return $.get(O);var P={},z=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var B in O)if(B!=="default"&&Object.prototype.hasOwnProperty.call(O,B)){var N=z?Object.getOwnPropertyDescriptor(O,B):null;N&&(N.get||N.set)?Object.defineProperty(P,B,N):P[B]=O[B]}return P.default=O,$&&$.set(O,P),P}function x(O,R){var $=Object.keys(O);if(Object.getOwnPropertySymbols){var P=Object.getOwnPropertySymbols(O);R&&(P=P.filter(function(z){return Object.getOwnPropertyDescriptor(O,z).enumerable})),$.push.apply($,P)}return $}function k(O){for(var R=1;RCe.tableData.columnOrder?1:-1}),he=A(O.data()),_e=he.map(function(Me){return se.reduce(function(Ce,Se){var ce;return typeof Se.customExport=="function"?ce=Se.customExport(Me):ce=O.getFieldValue(Me,Se),Ce[Se.field]=ce,Ce},{})});return[se,_e]};function G(){return te.search?g.default.createElement(d.default,{autoFocus:te.searchAutoFocus,sx:te.searchFieldAlignment==="left"&&te.showTitle===!1?void 0:M.searchField,value:B,onChange:function(se){return K(se.target.value)},placeholder:$.searchPlaceholder,variant:te.searchFieldVariant,InputProps:{startAdornment:g.default.createElement(l.default,{position:"start"},g.default.createElement(h.default,{title:$.searchTooltip},g.default.createElement(J.Search,{fontSize:"small"}))),endAdornment:g.default.createElement(l.default,{position:"end"},g.default.createElement(c.default,{disabled:!B,onClick:function(){return K("")},"aria-label":$.clearSearchAriaLabel},g.default.createElement(J.ResetSearch,{fontSize:"small","aria-label":"clear"}))),style:te.searchFieldStyle,inputProps:{"aria-label":$.searchAriaLabel}}}):null}function X(le){var se=le?"toolbarOnSelect":"toolbar";return g.default.createElement("div",{style:{display:"flex"}},te.columnsButton&&!le&&g.default.createElement("span",null,g.default.createElement(h.default,{title:$.showColumnsTitle},g.default.createElement(c.default,{color:"inherit",onClick:function(_e){return U(_e.currentTarget)},"aria-label":$.showColumnsAriaLabel},g.default.createElement(J.ViewColumn,null))),g.default.createElement(u.default,{anchorEl:q,open:!!q,onClose:function(){return U(null)}},g.default.createElement(f.default,{key:"text",disabled:!0,style:{opacity:1,fontWeight:600,fontSize:12}},$.addRemoveColumns),O.columns.map(function(he){var _e=he.hiddenByColumnsButton!==void 0?he.hiddenByColumnsButton:O.columnsHiddenInColumnsButton;return _e?null:g.default.createElement("li",{key:he.tableData.id},g.default.createElement(f.default,{sx:M.formControlLabel,component:"label",htmlFor:"column-toggle-".concat(he.tableData.id),disabled:he.removable===!1},g.default.createElement(n.default,{checked:!he.hidden,id:"column-toggle-".concat(he.tableData.id),onChange:function(){return O.onColumnsChanged(he,!he.hidden)}}),g.default.createElement("span",null,he.title)))}))),te.exportMenu.length>0&&g.default.createElement("span",null,g.default.createElement(h.default,{title:$.exportTitle},g.default.createElement(c.default,{color:"inherit",onClick:function(_e){return W(_e.currentTarget)},"aria-label":$.exportAriaLabel},g.default.createElement(J.Export,null))),g.default.createElement(u.default,{anchorEl:E,open:!!E,onClose:function(){return W(null)}},te.exportMenu.map(function(he,_e){var Me=Q(),Ce=(0,a.default)(Me,2),Se=Ce[0],ce=Ce[1];return g.default.createElement(f.default,{key:"".concat(he.label).concat(_e),onClick:function(){he.exportFunc(Se,ce,{searchedData:O.dataManager.searchedData,filteredData:O.dataManager.filteredData,groupedData:O.dataManager.groupedData,selectedData:ee}),W(null)}},he.label)}))),g.default.createElement("span",null,g.default.createElement(O.components.Actions,{actions:O.actions&&O.actions.filter(function(he){return he.position===se}),data:le?ee:void 0,components:O.components})))}function Y(){return g.default.createElement(o.default,{sx:M.actions},g.default.createElement("div",null,X(ee.length>0)))}function re(le){var se=typeof le=="string"?g.default.createElement(m.default,{variant:"h6",style:{whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis"}},le):le;return g.default.createElement(o.default,{sx:M.title},se)}var ie=te.showTextRowsSelected&&ee.length>0?typeof $.nRowsSelected=="function"?$.nRowsSelected(ee.length):$.nRowsSelected.replace("{0}",ee.length):te.showTitle?O.title:null;return g.default.createElement(p.default,{ref:O.forwardedRef,className:O.className,sx:k(k({},M.root),te.showTextRowsSelected&&ee.length>0?M.highlight(R):{})},ie&&re(ie),te.searchFieldAlignment==="left"&&G(),te.toolbarButtonAlignment==="left"&&Y(),g.default.createElement(o.default,{sx:M.spacer}),te.searchFieldAlignment==="right"&&G(),te.toolbarButtonAlignment==="right"&&Y())}S.defaultProps={actions:[],columns:[],columnsHiddenInColumnsButton:!1,searchText:"",originalData:[],title:"No Title!"},S.propTypes={actions:v.default.array,className:v.default.string,columns:v.default.array,components:v.default.object.isRequired,getFieldValue:v.default.func.isRequired,onColumnsChanged:v.default.func.isRequired,dataManager:v.default.object.isRequired,searchText:v.default.string,onSearchChanged:v.default.func.isRequired,originalData:v.default.array,title:v.default.oneOfType([v.default.element,v.default.string]),renderData:v.default.array,data:v.default.oneOfType([v.default.array,v.default.func]),exportAllData:v.default.bool,exportMenu:v.default.arrayOf(v.default.shape({name:v.default.string,handler:v.default.func})),searchAutoFocus:v.default.bool,classes:v.default.object};var M={root:{paddingRight:1,paddingLeft:2},highlight:function(R){return R.palette.mode==="light"?{color:R.palette.secondary.main,backgroundColor:(0,y.lighten)(R.palette.secondary.light,.85)}:{color:R.palette.text.primary,backgroundColor:R.palette.secondary.dark}},spacer:{flex:"1 1 10%"},actions:{color:"text.secondary"},title:{overflow:"hidden"},searchField:{minWidth:150,paddingLeft:2},formControlLabel:{px:1}},C=g.default.forwardRef(function(R,$){return g.default.createElement(S,(0,i.default)({},R,{forwardedRef:$}))});function A(O){for(var R=O;Array.isArray(($=R)===null||$===void 0||(P=$[0])===null||P===void 0?void 0:P.data);){var $,P;R=R.map(function(z){return z.groups.length!==0?z.groups:z.data}).flat()}return R}var D=g.default.memo(C);e.default=D}(n0)),n0}var G3;function bp(){return G3||(G3=1,function(e){var t=yn;Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"Container",{enumerable:!0,get:function(){return s.default}}),Object.defineProperty(e,"MTableAction",{enumerable:!0,get:function(){return c.default}}),Object.defineProperty(e,"MTableActions",{enumerable:!0,get:function(){return u.default}}),Object.defineProperty(e,"MTableBody",{enumerable:!0,get:function(){return a.default}}),Object.defineProperty(e,"MTableBodyRow",{enumerable:!0,get:function(){return f.default}}),Object.defineProperty(e,"MTableCell",{enumerable:!0,get:function(){return d.default}}),Object.defineProperty(e,"MTableCustomIcon",{enumerable:!0,get:function(){return p.default}}),Object.defineProperty(e,"MTableEditCell",{enumerable:!0,get:function(){return l.default}}),Object.defineProperty(e,"MTableEditField",{enumerable:!0,get:function(){return n.default}}),Object.defineProperty(e,"MTableEditRow",{enumerable:!0,get:function(){return h.default}}),Object.defineProperty(e,"MTableFilterRow",{enumerable:!0,get:function(){return m.default}}),Object.defineProperty(e,"MTableGroupRow",{enumerable:!0,get:function(){return v.default}}),Object.defineProperty(e,"MTableGroupbar",{enumerable:!0,get:function(){return y.default}}),Object.defineProperty(e,"MTableHeader",{enumerable:!0,get:function(){return g.default}}),Object.defineProperty(e,"MTablePagination",{enumerable:!0,get:function(){return w.default}}),Object.defineProperty(e,"MTableScrollbar",{enumerable:!0,get:function(){return o.default}}),Object.defineProperty(e,"MTableSteppedPagination",{enumerable:!0,get:function(){return b.default}}),Object.defineProperty(e,"MTableSummaryRow",{enumerable:!0,get:function(){return _.default}}),Object.defineProperty(e,"MTableToolbar",{enumerable:!0,get:function(){return x.default}}),Object.defineProperty(e,"OverlayError",{enumerable:!0,get:function(){return i.default}}),Object.defineProperty(e,"OverlayLoading",{enumerable:!0,get:function(){return r.default}});var r=t(eB()),i=t(qB()),s=t(HB()),o=t(GB()),a=t(JB()),n=t(vX()),l=t(yX()),c=t(_X()),u=t(TX()),f=t(CX()),d=t(AX()),p=t(DX()),h=t(EX()),m=t(j6()),y=t(Kee()),v=t(Jee()),g=t(tte()),b=t(rte()),w=t(ate()),_=t(ite()),x=t(lte())}(Ig)),Ig}var Y3;function nP(){return Y3||(Y3=1,function(e){var t=yn;Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var r=t(QN),i=bp(),s={Action:i.MTableAction,Actions:i.MTableActions,Body:i.MTableBody,Cell:i.MTableCell,Container:i.Container,EditCell:i.MTableEditCell,EditField:i.MTableEditField,EditRow:i.MTableEditRow,FilterRow:i.MTableFilterRow,Groupbar:i.MTableGroupbar,GroupRow:i.MTableGroupRow,Header:i.MTableHeader,OverlayLoading:i.OverlayLoading,OverlayError:i.OverlayError,Pagination:r.default,Row:i.MTableBodyRow,SummaryRow:i.MTableSummaryRow,Toolbar:i.MTableToolbar};e.default=s}(Lg)),Lg}var X3;function ste(){if(X3)return Cs;X3=1;var e=yn;Object.defineProperty(Cs,"__esModule",{value:!0}),Cs.defaultProps=void 0;var t=e(nP()),r=e(y4()),i=e(m4()),s=e(v4()),o={actions:[],classes:{},columns:[],components:t.default,data:[],icons:r.default,isLoading:!1,title:"Table Title",options:s.default,localization:i.default,style:{}};return Cs.defaultProps=o,Cs}var Xs={},Zs={},Z3;function ab(){if(Z3)return Zs;Z3=1,Object.defineProperty(Zs,"__esModule",{value:!0}),Zs.ALL_COLUMNS=void 0;var e="all_columns";return Zs.ALL_COLUMNS=e,Zs}var K3;function ute(){if(K3)return Xs;K3=1;var e=yn;Object.defineProperty(Xs,"__esModule",{value:!0}),Xs.propTypes=void 0;var t=e(Ar),r=ab(),i=t.default.shape({current:t.default.element}),s=t.default.shape({classes:t.default.object,innerRef:i}),o={actions:t.default.arrayOf(t.default.oneOfType([t.default.func,t.default.shape({icon:t.default.oneOfType([t.default.element,t.default.func,t.default.string,i]).isRequired,isFreeAction:t.default.bool,position:t.default.oneOf(["auto","toolbar","toolbarOnSelect","row"]),tooltip:t.default.string,onClick:t.default.func.isRequired,onMouseEnter:t.default.func,onMouseLeave:t.default.func,iconProps:t.default.object,disabled:t.default.bool,hidden:t.default.bool}),t.default.shape({action:t.default.func,position:t.default.oneOf(["auto","toolbar","toolbarOnSelect","row"])})])),renderSummaryRow:t.default.func,columns:t.default.arrayOf(t.default.shape({cellStyle:t.default.oneOfType([t.default.object,t.default.func]),currencySetting:t.default.shape({locale:t.default.string,currencyCode:t.default.string,minimumFractionDigits:t.default.number,maximumFractionDigits:t.default.number}),ariaLabel:t.default.string,ariaSortAsc:t.default.oneOf(["ascending","descending","none","other"]),ariaSortDesc:t.default.oneOf(["ascending","descending","none","other"]),draggable:t.default.bool,customFilterAndSearch:t.default.func,customSort:t.default.func,customExport:t.default.func,defaultFilter:t.default.any,defaultSort:t.default.oneOf(["asc","desc"]),editComponent:t.default.oneOfType([t.default.element,t.default.func]),emptyValue:t.default.oneOfType([t.default.string,t.default.node,t.default.func]),export:t.default.bool,field:t.default.oneOfType([t.default.string,t.default.arrayOf(t.default.string)]),filtering:t.default.bool,filterCellStyle:t.default.object,filterPlaceholder:t.default.string,filterComponent:t.default.oneOfType([t.default.element,t.default.func]),grouping:t.default.bool,headerStyle:t.default.object,hidden:t.default.bool,hideFilterIcon:t.default.bool,initialEditValue:t.default.any,lookup:t.default.object,editable:t.default.oneOfType([t.default.func,t.default.oneOf(["always","onUpdate","onAdd","never"])]),removable:t.default.bool,render:t.default.func,searchable:t.default.bool,sorting:t.default.bool,title:t.default.oneOfType([t.default.element,t.default.string]),type:t.default.oneOf(["string","boolean","numeric","date","datetime","time","currency"])})).isRequired,components:t.default.shape({Action:t.default.oneOfType([t.default.element,t.default.func,s]),Actions:t.default.oneOfType([t.default.element,t.default.func,s]),Body:t.default.oneOfType([t.default.element,t.default.func,s]),Cell:t.default.oneOfType([t.default.element,t.default.func,s]),Container:t.default.oneOfType([t.default.element,t.default.func,s]),EditField:t.default.oneOfType([t.default.element,t.default.func,s]),EditRow:t.default.oneOfType([t.default.element,t.default.func,s]),FilterRow:t.default.oneOfType([t.default.element,t.default.func,s]),Groupbar:t.default.oneOfType([t.default.element,t.default.func,s]),GroupRow:t.default.oneOfType([t.default.element,t.default.func,s]),Header:t.default.oneOfType([t.default.element,t.default.func,s]),OverlayLoading:t.default.oneOfType([t.default.element,t.default.func,s]),OverlayError:t.default.oneOfType([t.default.element,t.default.func,s]),Pagination:t.default.oneOfType([t.default.element,t.default.func,s]),Row:t.default.oneOfType([t.default.element,t.default.func,s]),Toolbar:t.default.oneOfType([t.default.element,t.default.func,s])}),data:t.default.oneOfType([t.default.arrayOf(t.default.object),t.default.func]).isRequired,editable:t.default.shape({isEditable:t.default.func,isBulkEditable:t.default.func,isDeletable:t.default.func,onRowAdd:t.default.func,onRowUpdate:t.default.func,onRowDelete:t.default.func,onRowAddCancelled:t.default.func,onRowUpdateCancelled:t.default.func,isEditHidden:t.default.func,isDeleteHidden:t.default.func}),detailPanel:t.default.oneOfType([t.default.func,t.default.arrayOf(t.default.oneOfType([t.default.func,t.default.shape({disabled:t.default.bool,icon:t.default.oneOfType([t.default.element,t.default.func,t.default.string,i]),openIcon:t.default.oneOfType([t.default.element,t.default.func,t.default.string,i]),tooltip:t.default.string,render:t.default.func.isRequired})]))]),icons:t.default.shape({Add:t.default.oneOfType([t.default.element,t.default.func,i]),Check:t.default.oneOfType([t.default.element,t.default.func,i]),Clear:t.default.oneOfType([t.default.element,t.default.func,i]),Delete:t.default.oneOfType([t.default.element,t.default.func,i]),DetailPanel:t.default.oneOfType([t.default.element,t.default.func,i]),Edit:t.default.oneOfType([t.default.element,t.default.func,i]),Export:t.default.oneOfType([t.default.element,t.default.func,i]),Filter:t.default.oneOfType([t.default.element,t.default.func,i]),FirstPage:t.default.oneOfType([t.default.element,t.default.func,i]),LastPage:t.default.oneOfType([t.default.element,t.default.func,i]),NextPage:t.default.oneOfType([t.default.element,t.default.func,i]),PreviousPage:t.default.oneOfType([t.default.element,t.default.func,i]),Refresh:t.default.oneOfType([t.default.element,t.default.func,i]),ResetSearch:t.default.oneOfType([t.default.element,t.default.func,i]),Search:t.default.oneOfType([t.default.element,t.default.func,i]),SortArrow:t.default.oneOfType([t.default.element,t.default.func,i]),ThirdStateCheck:t.default.oneOfType([t.default.element,t.default.func,i]),ViewColumn:t.default.oneOfType([t.default.element,t.default.func,i])}),isLoading:t.default.bool,title:t.default.oneOfType([t.default.element,t.default.string]),options:t.default.shape({actionsCellStyle:t.default.object,editCellStyle:t.default.object,idSynonym:t.default.string,detailPanelColumnStyle:t.default.object,actionsColumnIndex:t.default.number,addRowPosition:t.default.oneOf(["first","last"]),columnsButton:t.default.bool,defaultExpanded:t.default.oneOfType([t.default.bool,t.default.func]),debounceInterval:t.default.number,detailPanelType:t.default.oneOf(["single","multiple"]),doubleHorizontalScroll:t.default.bool,emptyRowsWhenPaging:t.default.bool,exportAllData:t.default.bool,exportMenu:t.default.arrayOf(t.default.shape({label:t.default.string,exportFunc:t.default.func})),filtering:t.default.bool,filterCellStyle:t.default.object,filterRowStyle:t.default.object,header:t.default.bool,headerSelectionProps:t.default.object,headerStyle:t.default.object,hideFilterIcons:t.default.bool,initialPage:t.default.number,maxBodyHeight:t.default.oneOfType([t.default.number,t.default.string]),minBodyHeight:t.default.oneOfType([t.default.number,t.default.string]),loadingType:t.default.oneOf(["overlay","linear"]),overflowY:t.default.oneOf(["visible","hidden","scroll","auto","initial","inherit","overlay"]),padding:t.default.oneOf(["normal","dense"]),paging:t.default.bool,pageSize:t.default.number,pageSizeOptions:t.default.arrayOf(t.default.number),paginationType:t.default.oneOf(["normal","stepped"]),paginationPosition:t.default.oneOf(["bottom","top","both"]),persistentGroupingsId:t.default.string,rowStyle:t.default.oneOfType([t.default.object,t.default.func]),search:t.default.bool,searchText:t.default.string,searchDebounceDelay:t.default.number,toolbarButtonAlignment:t.default.oneOf(["left","right"]),searchFieldAlignment:t.default.oneOf(["left","right"]),searchFieldStyle:t.default.object,searchAutoFocus:t.default.bool,searchFieldVariant:t.default.oneOf(["standard","filled","outlined"]),selection:t.default.bool,selectionProps:t.default.oneOfType([t.default.object,t.default.func]),showEmptyDataSourceMessage:t.default.bool,showFirstLastPageButtons:t.default.oneOfType([t.default.object,t.default.bool]),showSelectAllCheckbox:t.default.bool,showSelectGroupCheckbox:t.default.bool,showTitle:t.default.bool,showTextRowsSelected:t.default.bool,sorting:t.default.bool,defaultOrderByCollection:t.default.arrayOf(t.default.shape({orderBy:t.default.number,orderDirection:t.default.string,sortOrder:t.default.number,orderIndex:t.default.number})),maxColumnSort:t.default.oneOf([0,1,2,3,4,5,6,7,8,9,10,r.ALL_COLUMNS]),showColumnSortOrder:t.default.bool,sortOrderIndicatorStyle:t.default.object,keepSortDirectionOnColumnSwitch:t.default.bool,clientSorting:t.default.bool,toolbar:t.default.bool,thirdSortClick:t.default.bool,numberOfPagesAround:t.default.oneOf([1,2,3,4,5,6,7,8,9,10])}),localization:t.default.shape({grouping:t.default.shape({groupedBy:t.default.string,placeholder:t.default.string}),pagination:t.default.object,toolbar:t.default.object,header:t.default.object,body:t.default.object}),initialFormData:t.default.object,onSearchChange:t.default.func,onFilterChange:t.default.func,onColumnDragged:t.default.func,onColumnResized:t.default.func,onGroupRemoved:t.default.func,onGroupChange:t.default.func,onSelectionChange:t.default.func,onRowsPerPageChange:t.default.func,onPageChange:t.default.func,onChangeColumnHidden:t.default.func,onOrderChange:t.default.func,onOrderCollectionChange:t.default.func,onRowClick:t.default.func,onRowDoubleClick:t.default.func,onTreeExpandChange:t.default.func,onQueryChange:t.default.func,onBulkEditOpen:t.default.func,tableRef:t.default.any,style:t.default.object,page:t.default.number,totalCount:t.default.number};return Xs.propTypes=o,Xs}var r0={};const cte=Xn(xj),fte=Xn(fN),dte=Xn(Yj);var a0,J3;function pte(){if(J3)return a0;J3=1;function e(t,r,i){var s,o,a,n,l;r==null&&(r=100);function c(){var f=Date.now()-n;f=0?s=setTimeout(c,r-f):(s=null,i||(l=t.apply(a,o),a=o=null))}var u=function(){a=this,o=arguments,n=Date.now();var f=i&&!s;return s||(s=setTimeout(c,r)),f&&(l=t.apply(a,o),a=o=null),l};return u.clear=function(){s&&(clearTimeout(s),s=null)},u.flush=function(){s&&(l=t.apply(a,o),a=o=null,clearTimeout(s),s=null)},u}return e.debounce=e,a0=e,a0}var i0={};const hte=Xn(Cq);var o0={},Ks={},wf={},Q3;function rP(){if(Q3)return wf;Q3=1,Object.defineProperty(wf,"__esModule",{value:!0}),wf.default=r;let e;const t=new Uint8Array(16);function r(){if(!e&&(e=typeof crypto<"u"&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto),!e))throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return e(t)}return wf}var ml={},Js={},Qs={},ek;function gte(){if(ek)return Qs;ek=1,Object.defineProperty(Qs,"__esModule",{value:!0}),Qs.default=void 0;var e=/^(?:[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}|00000000-0000-0000-0000-000000000000)$/i;return Qs.default=e,Qs}var tk;function xp(){if(tk)return Js;tk=1,Object.defineProperty(Js,"__esModule",{value:!0}),Js.default=void 0;var e=t(gte());function t(s){return s&&s.__esModule?s:{default:s}}function r(s){return typeof s=="string"&&e.default.test(s)}var i=r;return Js.default=i,Js}var nk;function wp(){if(nk)return ml;nk=1,Object.defineProperty(ml,"__esModule",{value:!0}),ml.default=void 0,ml.unsafeStringify=i;var e=t(xp());function t(a){return a&&a.__esModule?a:{default:a}}const r=[];for(let a=0;a<256;++a)r.push((a+256).toString(16).slice(1));function i(a,n=0){return r[a[n+0]]+r[a[n+1]]+r[a[n+2]]+r[a[n+3]]+"-"+r[a[n+4]]+r[a[n+5]]+"-"+r[a[n+6]]+r[a[n+7]]+"-"+r[a[n+8]]+r[a[n+9]]+"-"+r[a[n+10]]+r[a[n+11]]+r[a[n+12]]+r[a[n+13]]+r[a[n+14]]+r[a[n+15]]}function s(a,n=0){const l=i(a,n);if(!(0,e.default)(l))throw TypeError("Stringified UUID is invalid");return l}var o=s;return ml.default=o,ml}var rk;function mte(){if(rk)return Ks;rk=1,Object.defineProperty(Ks,"__esModule",{value:!0}),Ks.default=void 0;var e=r(rP()),t=wp();function r(c){return c&&c.__esModule?c:{default:c}}let i,s,o=0,a=0;function n(c,u,f){let d=u&&f||0;const p=u||new Array(16);c=c||{};let h=c.node||i,m=c.clockseq!==void 0?c.clockseq:s;if(h==null||m==null){const _=c.random||(c.rng||e.default)();h==null&&(h=i=[_[0]|1,_[1],_[2],_[3],_[4],_[5]]),m==null&&(m=s=(_[6]<<8|_[7])&16383)}let y=c.msecs!==void 0?c.msecs:Date.now(),v=c.nsecs!==void 0?c.nsecs:a+1;const g=y-o+(v-a)/1e4;if(g<0&&c.clockseq===void 0&&(m=m+1&16383),(g<0||y>o)&&c.nsecs===void 0&&(v=0),v>=1e4)throw new Error("uuid.v1(): Can't create more than 10M uuids/sec");o=y,a=v,s=m,y+=122192928e5;const b=((y&268435455)*1e4+v)%4294967296;p[d++]=b>>>24&255,p[d++]=b>>>16&255,p[d++]=b>>>8&255,p[d++]=b&255;const w=y/4294967296*1e4&268435455;p[d++]=w>>>8&255,p[d++]=w&255,p[d++]=w>>>24&15|16,p[d++]=w>>>16&255,p[d++]=m>>>8|128,p[d++]=m&255;for(let _=0;_<6;++_)p[d+_]=h[_];return u||(0,t.unsafeStringify)(p)}var l=n;return Ks.default=l,Ks}var eu={},to={},tu={},ak;function aP(){if(ak)return tu;ak=1,Object.defineProperty(tu,"__esModule",{value:!0}),tu.default=void 0;var e=t(xp());function t(s){return s&&s.__esModule?s:{default:s}}function r(s){if(!(0,e.default)(s))throw TypeError("Invalid UUID");let o;const a=new Uint8Array(16);return a[0]=(o=parseInt(s.slice(0,8),16))>>>24,a[1]=o>>>16&255,a[2]=o>>>8&255,a[3]=o&255,a[4]=(o=parseInt(s.slice(9,13),16))>>>8,a[5]=o&255,a[6]=(o=parseInt(s.slice(14,18),16))>>>8,a[7]=o&255,a[8]=(o=parseInt(s.slice(19,23),16))>>>8,a[9]=o&255,a[10]=(o=parseInt(s.slice(24,36),16))/1099511627776&255,a[11]=o/4294967296&255,a[12]=o>>>24&255,a[13]=o>>>16&255,a[14]=o>>>8&255,a[15]=o&255,a}var i=r;return tu.default=i,tu}var ik;function iP(){if(ik)return to;ik=1,Object.defineProperty(to,"__esModule",{value:!0}),to.URL=to.DNS=void 0,to.default=a;var e=wp(),t=r(aP());function r(n){return n&&n.__esModule?n:{default:n}}function i(n){n=unescape(encodeURIComponent(n));const l=[];for(let c=0;c>5]>>>v%32&255,b=parseInt(y.charAt(g>>>4&15)+y.charAt(g&15),16);h.push(b)}return h}function r(p){return(p+64>>>9<<4)+14+1}function i(p,h){p[h>>5]|=128<>5]|=(p[y/8]&255)<>16)+(h>>16)+(m>>16)<<16|m&65535}function a(p,h){return p<>>32-h}function n(p,h,m,y,v,g){return o(a(o(o(h,p),o(y,g)),v),m)}function l(p,h,m,y,v,g,b){return n(h&m|~h&y,p,h,v,g,b)}function c(p,h,m,y,v,g,b){return n(h&y|m&~y,p,h,v,g,b)}function u(p,h,m,y,v,g,b){return n(h^m^y,p,h,v,g,b)}function f(p,h,m,y,v,g,b){return n(m^(h|~y),p,h,v,g,b)}var d=e;return nu.default=d,nu}var lk;function yte(){if(lk)return eu;lk=1,Object.defineProperty(eu,"__esModule",{value:!0}),eu.default=void 0;var e=r(iP()),t=r(vte());function r(o){return o&&o.__esModule?o:{default:o}}var s=(0,e.default)("v3",48,t.default);return eu.default=s,eu}var ru={},au={},sk;function bte(){if(sk)return au;sk=1,Object.defineProperty(au,"__esModule",{value:!0}),au.default=void 0;var t={randomUUID:typeof crypto<"u"&&crypto.randomUUID&&crypto.randomUUID.bind(crypto)};return au.default=t,au}var uk;function xte(){if(uk)return ru;uk=1,Object.defineProperty(ru,"__esModule",{value:!0}),ru.default=void 0;var e=i(bte()),t=i(rP()),r=wp();function i(a){return a&&a.__esModule?a:{default:a}}function s(a,n,l){if(e.default.randomUUID&&!n&&!a)return e.default.randomUUID();a=a||{};const c=a.random||(a.rng||t.default)();if(c[6]=c[6]&15|64,c[8]=c[8]&63|128,n){l=l||0;for(let u=0;u<16;++u)n[l+u]=c[u];return n}return(0,r.unsafeStringify)(c)}var o=s;return ru.default=o,ru}var iu={},ou={},ck;function wte(){if(ck)return ou;ck=1,Object.defineProperty(ou,"__esModule",{value:!0}),ou.default=void 0;function e(s,o,a,n){switch(s){case 0:return o&a^~o&n;case 1:return o^a^n;case 2:return o&a^o&n^a&n;case 3:return o^a^n}}function t(s,o){return s<>>32-o}function r(s){const o=[1518500249,1859775393,2400959708,3395469782],a=[1732584193,4023233417,2562383102,271733878,3285377520];if(typeof s=="string"){const u=unescape(encodeURIComponent(s));s=[];for(let f=0;f>>0;y=m,m=h,h=t(p,30)>>>0,p=d,d=b}a[0]=a[0]+d>>>0,a[1]=a[1]+p>>>0,a[2]=a[2]+h>>>0,a[3]=a[3]+m>>>0,a[4]=a[4]+y>>>0}return[a[0]>>24&255,a[0]>>16&255,a[0]>>8&255,a[0]&255,a[1]>>24&255,a[1]>>16&255,a[1]>>8&255,a[1]&255,a[2]>>24&255,a[2]>>16&255,a[2]>>8&255,a[2]&255,a[3]>>24&255,a[3]>>16&255,a[3]>>8&255,a[3]&255,a[4]>>24&255,a[4]>>16&255,a[4]>>8&255,a[4]&255]}var i=r;return ou.default=i,ou}var fk;function _te(){if(fk)return iu;fk=1,Object.defineProperty(iu,"__esModule",{value:!0}),iu.default=void 0;var e=r(iP()),t=r(wte());function r(o){return o&&o.__esModule?o:{default:o}}var s=(0,e.default)("v5",80,t.default);return iu.default=s,iu}var lu={},dk;function Tte(){if(dk)return lu;dk=1,Object.defineProperty(lu,"__esModule",{value:!0}),lu.default=void 0;var e="00000000-0000-0000-0000-000000000000";return lu.default=e,lu}var su={},pk;function kte(){if(pk)return su;pk=1,Object.defineProperty(su,"__esModule",{value:!0}),su.default=void 0;var e=t(xp());function t(s){return s&&s.__esModule?s:{default:s}}function r(s){if(!(0,e.default)(s))throw TypeError("Invalid UUID");return parseInt(s.slice(14,15),16)}var i=r;return su.default=i,su}var hk;function Ste(){return hk||(hk=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"NIL",{enumerable:!0,get:function(){return o.default}}),Object.defineProperty(e,"parse",{enumerable:!0,get:function(){return c.default}}),Object.defineProperty(e,"stringify",{enumerable:!0,get:function(){return l.default}}),Object.defineProperty(e,"v1",{enumerable:!0,get:function(){return t.default}}),Object.defineProperty(e,"v3",{enumerable:!0,get:function(){return r.default}}),Object.defineProperty(e,"v4",{enumerable:!0,get:function(){return i.default}}),Object.defineProperty(e,"v5",{enumerable:!0,get:function(){return s.default}}),Object.defineProperty(e,"validate",{enumerable:!0,get:function(){return n.default}}),Object.defineProperty(e,"version",{enumerable:!0,get:function(){return a.default}});var t=u(mte()),r=u(yte()),i=u(xte()),s=u(_te()),o=u(Tte()),a=u(kte()),n=u(xp()),l=u(wp()),c=u(aP());function u(f){return f&&f.__esModule?f:{default:f}}}(o0)),o0}var gk;function Mte(){return gk||(gk=1,function(e){var t=yn;Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var r=t(Jl()),i=t(Qd()),s=t(ep()),o=t(na()),a=t(hte),n=Ste(),l=cp(),c=Wi(),u=ab();function f(v,g){var b=Object.keys(v);if(Object.getOwnPropertySymbols){var w=Object.getOwnPropertySymbols(v);g&&(w=w.filter(function(_){return Object.getOwnPropertyDescriptor(v,_).enumerable})),b.push.apply(b,w)}return b}function d(v){for(var g=1;g=v.length?{done:!0}:{done:!1,value:v[w++]}},e:function(M){throw M},f:_}}throw new TypeError(`Invalid attempt to iterate non-iterable instance. +In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var x=!0,k=!1,T;return{s:function(){b=b.call(v)},n:function(){var M=b.next();return x=M.done,M},e:function(M){k=!0,T=M},f:function(){try{!x&&b.return!=null&&b.return()}finally{if(k)throw T}}}}function h(v,g){if(v){if(typeof v=="string")return m(v,g);var b=Object.prototype.toString.call(v).slice(8,-1);if(b==="Object"&&v.constructor&&(b=v.constructor.name),b==="Map"||b==="Set")return Array.from(v);if(b==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(b))return m(v,g)}}function m(v,g){(g==null||g>v.length)&&(g=v.length);for(var b=0,w=new Array(g);b0?T(M.groups):M.data.forEach(function(C){C.tableData.checked!==b&&(C.tableData.checked=C.tableData.disabled?!1:b,g.selectedCount=g.selectedCount+(b?1:-1))})})};k([_])}),(0,o.default)(this,"getOrderByCollection",function(){return g.orderByCollection.filter(function(b){return b.sortOrder})}),(0,o.default)(this,"sortOrderCollection",function(b){return b.sort(function(w,_){return w.sortOrder?_.sortOrder?w.sortOrder-_.sortOrder:-1:1})}),(0,o.default)(this,"startCellEditable",function(b,w){b.tableData.editCellList=[].concat((0,r.default)(b.tableData.editCellList||[]),[w])}),(0,o.default)(this,"finishCellEditable",function(b,w){if(b.tableData.editCellList){var _=b.tableData.editCellList.findIndex(function(x){return x.tableData.id.toString()===w.tableData.id.toString()});_!==-1&&b.tableData.editCellList.splice(_,1)}}),(0,o.default)(this,"clearBulkEditChangedRows",function(){g.bulkEditChangedRows={}}),(0,o.default)(this,"onBulkEditRowChanged",function(b,w){g.bulkEditChangedRows[b.tableData.id]={oldData:b,newData:w}}),(0,o.default)(this,"expandTreeForNodes",function(b){b.forEach(function(w){for(var _=w;g.parentFunc(_,g.data);){var x=g.parentFunc(_,g.data);x&&(x.tableData.isTreeExpanded=!0),_=x}})}),(0,o.default)(this,"findDataByPath",function(b,w){if(g.isDataType("tree")){var _=w.reduce(function(T,S){return T&&T.tableData&&T.tableData.childRows&&T.tableData.childRows.find(function(M){return M&&M.tableData.uuid===S})},{tableData:{childRows:b}});return _}else{var x={groups:b},k=w.reduce(function(T,S){return T.groups.length>0?T.groups[S]:T.data?T.data[S]||T.data.find(function(M){var C;return((C=M.tableData)===null||C===void 0?void 0:C.uuid)===S}):void 0},x);return k}}),(0,o.default)(this,"getFieldValue",function(b,w){var _=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!0,x=typeof b[w.field]<"u"?b[w.field]:(0,l.selectFromObject)(b,w.field);return w.lookup&&_&&(x=w.lookup[x]),x}),(0,o.default)(this,"getRenderState",function(){return g.filtered===!1&&g.filterData(),g.searched===!1&&g.searchData(),g.grouped===!1&&g.isDataType("group")&&g.groupData(),g.treefied===!1&&g.isDataType("tree")&&g.treefyData(),g.sorted===!1&&g.sortData(),g.paged===!1&&g.pageData(),{columns:g.columns,currentPage:g.currentPage,data:g.sortedData,lastEditingRow:g.lastEditingRow,orderByCollection:g.orderByCollection,maxColumnSort:g.maxColumnSort,originalData:(0,r.default)(g.data),pageSize:g.pageSize,renderData:g.pagedData,searchText:g.searchText,selectedCount:g.selectedCount,treefiedDataLength:g.treefiedDataLength,treeDataMaxLevel:g.treeDataMaxLevel,groupedDataLength:g.groupedDataLength,tableStyleWidth:g.tableStyleWidth}}),(0,o.default)(this,"filterData",function(){g.searched=g.grouped=g.treefied=g.sorted=g.paged=!1,g.filteredData=(0,r.default)(g.data),g.applyFilters&&g.columns.filter(function(b){return b.tableData.filterValue!==void 0}).forEach(function(b){var w=b.lookup,_=b.type,x=b.tableData;b.customFilterAndSearch?g.filteredData=g.filteredData.filter(function(k){return!!b.customFilterAndSearch(x.filterValue,k,b)}):w?g.filteredData=g.filteredData.filter(function(k){var T=g.getFieldValue(k,b,!1);return!x.filterValue||x.filterValue.length===0||x.filterValue.indexOf(T!=null&&T.toString())>-1}):_==="numeric"?g.filteredData=g.filteredData.filter(function(k){var T=g.getFieldValue(k,b);return T+""===x.filterValue}):_==="boolean"&&x.filterValue?g.filteredData=g.filteredData.filter(function(k){var T=g.getFieldValue(k,b);return T&&x.filterValue==="checked"||!T&&x.filterValue==="unchecked"}):["date","datetime"].includes(_)?g.filteredData=g.filteredData.filter(function(k){var T=g.getFieldValue(k,b),S=T?new Date(T):null;if(S&&S.toString()!=="Invalid Date"){var M=x.filterValue,C="",A="";return _==="date"?(C=(0,a.default)(S,"MM/dd/yyyy"),A=(0,a.default)(M,"MM/dd/yyyy")):_==="datetime"&&(C=(0,a.default)(S,"MM/dd/yyyy - HH:mm"),A=(0,a.default)(M,"MM/dd/yyyy - HH:mm")),C===A}return!0}):_==="time"?g.filteredData=g.filteredData.filter(function(k){var T=g.getFieldValue(k,b),S=T||null;if(S){var M=x.filterValue,C=(0,a.default)(M,"HH:mm");return S===C}return!0}):g.filteredData=g.filteredData.filter(function(k){var T=g.getFieldValue(k,b);return T!=null&&T.toString().toUpperCase().includes(x.filterValue.toUpperCase())})}),g.filtered=!0}),(0,o.default)(this,"searchData",function(){if(g.grouped=g.treefied=g.sorted=g.paged=!1,g.searchedData=(0,r.default)(g.filteredData),g.searchText&&g.applySearch){var b=g.searchText.trim();g.searchedData=g.searchedData.filter(function(w){return g.columns.filter(function(_){return _.searchable===void 0?!_.hidden:_.searchable}).some(function(_){if(_.customFilterAndSearch)return!!_.customFilterAndSearch(b,w,_);if(_.field){var x=g.getFieldValue(w,_);if(x)return x.toString().toUpperCase().includes(b.toUpperCase())}return!1})})}g.searched=!0}),(0,o.default)(this,"clearCriteria",function(){g.changeOrder(-1,""),g.changeSearchText("");var b=p(g.columns),w;try{for(b.s();!(w=b.n()).done;){var _=w.value;g.changeFilterValue(_.tableData.id,"")}}catch(x){b.e(x)}finally{b.f()}g.changeSearchText(""),g.changePaging(0)})}return(0,s.default)(v,[{key:"setData",value:function(b,w){var _=this;this.selectedCount=0;var x={};this.data.length!==0&&this.data[0][w]!==void 0&&(x=this.data.reduce(function(k,T){return k[T.tableData.id]=T.tableData,k},{})),this.data=b.map(function(k,T){var S=x[k[w]]||{},M=d(d({index:T,id:k[w]||T,uuid:k.uuid||(0,n.v4)()},S),k.tableData);M.checked&&_.selectedCount++;var C=d(d({},k),{},{tableData:M});return _.lastDetailPanelRow&&_.lastDetailPanelRow.tableData===S&&(_.lastDetailPanelRow=C),_.lastEditingRow&&_.lastEditingRow.tableData===S&&(_.lastEditingRow=C),C}),this.filtered=!1}},{key:"setTableWidth",value:function(b){this.tableWidth=b}},{key:"setColumns",value:function(b){var w=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],_=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},x=0,k=[];this.columns=b.map(function(M,C){var A,D=(0,c.widthToNumber)(M.width),O=typeof M.width=="number"?M.width+"px":M.width;O&&(isNaN(D)?k.push(O):x+=D);var R=w.find(function(z){var B=z.id;return B===C}),$=(A=_[M.field])!==null&&A!==void 0?A:{},P=d(d(d(d({columnOrder:C,filterValue:M.defaultFilter,groupOrder:M.defaultGroupOrder,groupSort:M.defaultGroupSort||"asc",width:O,initialWidth:O,widthPx:isNaN(D)?void 0:D,additionalWidth:0},$),R?R.tableData:{}),M.tableData),{},{id:C});return M.tableData=P,M});var T=this.columns.filter(function(M){return M.hidden||M.columnDef&&M.columnDef.tableData&&M.columnDef.tableData.width?!1:M.width===void 0}),S=(x!==0?"".concat(x,"px"):"0px")+(k.length>0?" - "+k.join(" - "):"");T.forEach(function(M){M.tableData.width=M.tableData.initialWidth="calc((100% - ".concat(S,") / ").concat(T.length,")")}),this.tableStyleWidth=this.tableWidth==="full"||T.length>0||k.length>0?"100%":x}},{key:"setDefaultExpanded",value:function(b){this.defaultExpanded=b}},{key:"setClientSorting",value:function(b){this.clientSorting=!!b}},{key:"setMaxColumnSort",value:function(b){var w=this.columns.filter(function(_){return _.sorting!==!1}).length;b===u.ALL_COLUMNS?this.maxColumnSort=w:this.maxColumnSort=Math.min(b,w)}},{key:"setOrderByCollection",value:function(){var b=this.getOrderByCollection(),w=this.columns.map(function(_){var x=_.tableData.id,k=b.find(function(T){return T.orderBy===x});return k?d({},k):{orderBy:_.tableData.id,sortOrder:void 0,orderDirection:""}});w=this.sortOrderCollection(w),this.orderByCollection=(0,r.default)(w)}},{key:"setDefaultOrderByCollection",value:function(b){this.defaultOrderByCollection=(0,r.default)(b)}},{key:"getDefaultOrderByCollection",value:function(){return this.defaultOrderByCollection}},{key:"changeApplySearch",value:function(b){this.applySearch=b,this.searched=!1}},{key:"changeApplyFilters",value:function(b){this.applyFilters=b,this.filtered=!1}},{key:"changeApplySort",value:function(b){this.applySort=b,this.sorted=!1}},{key:"changePaging",value:function(b){this.paging=b,this.paged=!1}},{key:"changeCurrentPage",value:function(b){this.currentPage=b,this.paged=!1}},{key:"changePageSize",value:function(b){this.pageSize=b,this.paged=!1}},{key:"changeParentFunc",value:function(b){this.parentFunc=b}},{key:"changeFilterValue",value:function(b,w){var _=this.columns.find(function(x){return x.tableData.id===b});_.tableData.filterValue=w,this.filtered=!1}},{key:"changeRowSelected",value:function(b,w){var _=this,x=this.findDataByPath(this.sortedData,w);x.tableData.checked=b,this.selectedCount=this.selectedCount+(b?1:-1);var k=function T(S){S.tableData.childRows&&S.tableData.childRows.forEach(function(M){M.tableData.checked!==b&&(M.tableData.checked=b,_.selectedCount=_.selectedCount+(b?1:-1)),T(M)})};k(x),this.filtered=!1}},{key:"changeDetailPanelVisibility",value:function(b,w){var _=this.findDataByPath(this.sortedData,b);(_.tableData.showDetailPanel||"").toString()===w.toString()?_.tableData.showDetailPanel=void 0:_.tableData.showDetailPanel=w,this.detailPanelType==="single"&&this.lastDetailPanelRow&&this.lastDetailPanelRow!==_&&(this.lastDetailPanelRow.tableData.showDetailPanel=void 0),this.lastDetailPanelRow=_}},{key:"changeGroupExpand",value:function(b){var w=this.findDataByPath(this.sortedData,b);w.isExpanded=!w.isExpanded}},{key:"changeSearchText",value:function(b){this.searchText=b,this.searched=!1,this.currentPage=0}},{key:"changeSearchDebounce",value:function(b){this.searchDebounceDelay=b}},{key:"changeRowEditing",value:function(b,w){b?(b.tableData.editing=w,this.lastEditingRow&&this.lastEditingRow!==b&&(this.lastEditingRow.tableData.editing=void 0),w?this.lastEditingRow=b:this.lastEditingRow=void 0):this.lastEditingRow&&(this.lastEditingRow.tableData.editing=void 0,this.lastEditingRow=void 0)}},{key:"changeBulkEditOpen",value:function(b){this.bulkEditOpen=b}},{key:"changeAllSelected",value:function(b,w){var _=0,x=function(M){var C=w instanceof Function?w(M):{disabled:!1};return M.tableData.disabled||C.disabled?!1:b};if(this.isDataType("group")){var k=function S(M){M.forEach(function(C){C.groups.length>0?S(C.groups):C.data.forEach(function(A){A.tableData.checked=x(A),_++})})};k(this.groupedData)}else{var T=function S(M){M.tableData.childRows&&M.tableData.childRows.forEach(function(C){C.tableData.checked=x(M),S(C)})};this.searchedData.forEach(function(S){S.tableData.checked=x(S),T(S)}),_=this.searchedData.length}this.selectedCount=b?_:0}},{key:"changeColumnOrder",value:function(b,w,_){var x=[],k=this.getOrderByCollection();k.length===this.maxColumnSort&&!_?(this.orderByCollection[0].orderDirection="",this.orderByCollection[0].sortOrder=void 0,x=this.orderByCollection.map(function(T){return T.sortOrder?T.sortOrder-=1:T.orderBy===b&&w&&(T.sortOrder=k.length,T.orderDirection=w),T})):x=this.orderByCollection.map(function(T){return T.orderBy===b&&w?(T.orderDirection=w,T.sortOrder=_||k.length+1):!w&&T.orderBy===b?(T.orderDirection=w,T.sortOrder=void 0):!w&&_-1}).sort(function(W,H){return W.tableData.groupOrder-H.tableData.groupOrder});if(b.destination.droppableId==="groups"&&b.source.droppableId==="groups"){w=Math.min(b.destination.index,b.source.index);var x=Math.max(b.destination.index,b.source.index);if(_=_.slice(w,x+1),b.destination.index-1})&&(w="group"),b===w}},{key:"sort",value:function(b,w,_){if(_==="numeric")return b-w;if(b!==w){if(!b)return-1;if(!w)return 1}return bw?1:0}},{key:"sortList",value:function(b){if(!this.clientSorting)return b;var w=this.orderByCollection.map(function(S){return S.orderBy}),_=new Map;this.columns.forEach(function(S){var M=S.tableData.id;w.includes(M)&&_.set(M,S)});var x=this.sort,k=this.getFieldValue,T=this.orderByCollection;return b.sort(function S(M,C){var A=arguments.length>2&&arguments[2]!==void 0?arguments[2]:_,D=arguments.length>3&&arguments[3]!==void 0?arguments[3]:T,O=D[0],R=O.orderBy,$=O.orderDirection,P=A.get(R),z=0;P.customSort?$==="desc"?z=P.customSort(C,M,"row",$):z=P.customSort(M,C,"row",$):(z=x(k(M,P),k(C,P),P.type),z=$.toLowerCase()==="desc"?z*-1:z);var B=z===0&&D.filter(function(N){return N.sortOrder!==void 0}).length!==1;return B?S(M,C,A,D.slice(1)):z})}},{key:"groupData",value:function(){var b=this;this.sorted=this.paged=!1,this.groupedDataLength=0;var w=(0,r.default)(this.searchedData),_=this.columns.filter(function(k){return k.tableData.groupOrder>-1}).sort(function(k,T){return k.tableData.groupOrder-T.tableData.groupOrder}),x=w.reduce(function(k,T){var S=k;return S=_.reduce(function(M,C){var A=T[C.field]||(0,l.selectFromObject)(T,C.field),D;if(M.groupsIndex[A]!==void 0&&(D=M.groups[M.groupsIndex[A]]),!D){var O=[].concat((0,r.default)(M.path||[]),[A]),R=b.findGroupByGroupPath(b.groupedData,O)||{isExpanded:typeof b.defaultExpanded=="boolean"?b.defaultExpanded:!1};D={value:A,groups:[],groupsIndex:{},data:[],isExpanded:R.isExpanded,path:O},M.groups.push(D),M.groupsIndex[A]=M.groups.length-1}return D},S),S.data.push(T),b.groupedDataLength++,k},{groups:[],groupsIndex:{}});this.groupedData=x.groups,this.grouped=!0,this.rootGroupsIndex=x.groupsIndex}},{key:"treefyData",value:function(){var b=this;this.sorted=this.paged=!1,this.data.forEach(function(T){return T.tableData.childRows=null}),this.treefiedData=[],this.treefiedDataLength=0,this.treeDataMaxLevel=0,(this.searchText||this.columns.some(function(T){return T.tableData.filterValue}))&&(this.data.forEach(function(T){T.tableData.isTreeExpanded=!1}),this.expandTreeForNodes(this.searchedData));var w=function T(S){S.tableData.markedForTreeRemove=!1;var M=b.parentFunc(S,b.data);M?(M.tableData.childRows=M.tableData.childRows||[],M.tableData.childRows.includes(S)||(M.tableData.childRows.push(S),b.treefiedDataLength++),T(M),S.tableData.path=[].concat((0,r.default)(M.tableData.path),[S.tableData.uuid]),b.treeDataMaxLevel=Math.max(b.treeDataMaxLevel,S.tableData.path.length)):b.treefiedData.includes(S)||(b.treefiedData.push(S),b.treefiedDataLength++,S.tableData.path=[S.tableData.uuid])};this.data.forEach(function(T){w(T)});var _=function(S){var M=b.treefiedData;S.tableData.path.forEach(function(C){M.tableData&&M.tableData.childRows&&(M=M.tableData.childRows),Array.isArray(M)&&(M=M.find(function(A){return A.tableData.uuid===C}))}),M.tableData.markedForTreeRemove=!0},x=function T(S){S.tableData.childRows&&S.tableData.childRows.forEach(function(M){T(M)}),S.tableData.markedForTreeRemove=!1};this.data.forEach(function(T){if(!b.searchText&&!b.columns.some(function(C){return C.tableData.filterValue})&&T.tableData.isTreeExpanded===void 0){var S=typeof b.defaultExpanded=="boolean"?b.defaultExpanded:b.defaultExpanded(T);T.tableData.isTreeExpanded=S}var M=T.tableData.isTreeExpanded;!M&&b.searchedData.indexOf(T)<0&&_(T)}),this.data.forEach(function(T){b.searchedData.indexOf(T)>-1&&x(T)});var k=function T(S){for(var M=S.length-1;M>=0;M--){var C=S[M];C.tableData.childRows&&T(C.tableData.childRows),C.tableData.markedForTreeRemove&&S.splice(M,1)}};k(this.treefiedData),this.treefiedDataLength=this.treefiedData.length,this.treefied=!0}},{key:"sortData",value:function(){var b=this;if(this.paged=!1,this.isDataType("group")){this.sortedData=(0,r.default)(this.groupedData);var w=this.columns.filter(function(S){return S.tableData.groupOrder>-1}).sort(function(S,M){return S.tableData.groupOrder-M.tableData.groupOrder}),_=function(M,C){return C.customSort?M.sort(C.tableData.groupSort==="desc"?function(A,D){return C.customSort(D.value,A.value,"group",C.tableData.groupSort)}:function(A,D){return C.customSort(A.value,D.value,"group",C.tableData.groupSort)}):M.sort(C.tableData.groupSort==="desc"?function(A,D){return b.sort(D.value,A.value,C.type)}:function(A,D){return b.sort(A.value,D.value,C.type)})};this.sortedData=_(this.sortedData,w[0]);var x=function(M){return M.reduce(function(C,A){return C[A.value]=M.findIndex(function(D){return D.value===A.value}),C},{})},k=function S(M,C){M.forEach(function(A){if(A.groups.length>0){var D=w[C];A.groups=_(A.groups,D),A.groupsIndex=x(A.groups),S(A.groups,C+1)}else b.maxColumnSort>0&&b.getOrderByCollection().length>0?A.data=b.sortList(A.data):b.maxColumnSort>0&&(A.data=A.data.sort(function(O,R){return b.data.findIndex(function($){return $.tableData.id===O.tableData.id})-b.data.findIndex(function($){return $.tableData.id===R.tableData.id})}))})};k(this.sortedData,1)}else if(this.isDataType("tree")){if(this.sortedData=(0,r.default)(this.treefiedData),this.maxColumnSort>0&&this.getOrderByCollection().length>0){this.sortedData=this.sortList(this.sortedData);var T=function S(M){M.forEach(function(C){C.tableData.childRows&&(C.tableData.childRows=b.sortList(C.tableData.childRows),S(C.tableData.childRows))})};T(this.sortedData)}}else this.isDataType("normal")&&(this.sortedData=(0,r.default)(this.searchedData),this.maxColumnSort>0&&this.getOrderByCollection().length>0&&this.applySort&&(this.sortedData=this.sortList(this.sortedData)));this.sorted=!0}},{key:"pageData",value:function(){if(this.pagedData=(0,r.default)(this.sortedData),this.paging){var b=this.currentPage*this.pageSize,w=b+this.pageSize;this.pagedData=this.pagedData.slice(b,w)}this.paged=!0}}]),v}();e.default=y}(i0)),i0}var mk;function Cte(){return mk||(mk=1,function(e){var t=yn,r=Gr();Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var i=t(cte),s=t(fte),o=t(Ni),a=t(_r()),n=t(Xo),l=t(Jl()),c=t(dte),u=t(Gr()),f=t(ho()),d=t(Qd()),p=t(ep()),h=t(n1()),m=t(t1()),y=t(r1()),v=t(a1()),g=t(na()),b=t($e),w=pte(),_=t(g4()),x=C(Wi()),k=rb,T=t(Mte()),S=bp();function M(B){if(typeof WeakMap!="function")return null;var N=new WeakMap,j=new WeakMap;return(M=function(E){return E?j:N})(B)}function C(B,N){if(!N&&B&&B.__esModule)return B;if(B===null||r(B)!=="object"&&typeof B!="function")return{default:B};var j=M(N);if(j&&j.has(B))return j.get(B);var F={},E=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var W in B)if(W!=="default"&&Object.prototype.hasOwnProperty.call(B,W)){var H=E?Object.getOwnPropertyDescriptor(B,W):null;H&&(H.get||H.set)?Object.defineProperty(F,W,H):F[W]=B[W]}return F.default=B,j&&j.set(B,F),F}function A(B,N){var j=Object.keys(B);if(Object.getOwnPropertySymbols){var F=Object.getOwnPropertySymbols(B);N&&(F=F.filter(function(E){return Object.getOwnPropertyDescriptor(B,E).enumerable})),j.push.apply(j,F)}return j}function D(B){for(var N=1;N"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}var $=function(B){(0,m.default)(j,B);var N=O(j);function j(F){var E;(0,d.default)(this,j),E=N.call(this,F),(0,g.default)((0,h.default)(E),"dataManager",new T.default),(0,g.default)((0,h.default)(E),"checkedForFunctions",!1),(0,g.default)((0,h.default)(E),"clearCriteria",function(){E.dataManager.clearCriteria(),E.setState(E.dataManager.getRenderState())}),(0,g.default)((0,h.default)(E),"isRemoteData",function(L){return!Array.isArray((L||E.props).data)}),(0,g.default)((0,h.default)(E),"onAllSelected",function(L){E.dataManager.changeAllSelected(L,E.props.options.selectionProps),E.setState(E.dataManager.getRenderState(),function(){return E.onSelectionChange()})}),(0,g.default)((0,h.default)(E),"onGroupSelected",function(L,q){E.dataManager.changeGroupSelected(L,q),E.setState(E.dataManager.getRenderState(),function(){return E.onSelectionChange()})}),(0,g.default)((0,h.default)(E),"onChangeColumnHidden",function(L,q){E.dataManager.changeColumnHidden(L,q),E.setState(E.dataManager.getRenderState(),function(){E.props.onChangeColumnHidden&&E.props.onChangeColumnHidden(L,q)})}),(0,g.default)((0,h.default)(E),"onChangeGroupOrder",function(L){E.dataManager.changeGroupOrder(L.tableData.id),E.setState(E.dataManager.getRenderState())}),(0,g.default)((0,h.default)(E),"onChangeOrder",function(L,q,U){E.dataManager.changeColumnOrder(L,q,U);var J=E.dataManager.getOrderByCollection();if(E.isRemoteData()){var te=D({},E.state.query);te.page=0,te.orderBy=E.state.columns.find(function(ee){return ee.tableData.id===L}),te.orderDirection=q,console.warn("Properties orderBy and orderDirection had been deprecated when remote data, please start using orderByCollection instead"),te.orderByCollection=J,E.onQueryChange(te,function(){E.props.onOrderChange&&E.props.onOrderChange(L,q),E.props.onOrderCollectionChange&&E.props.onOrderCollectionChange(J)})}else E.setState(E.dataManager.getRenderState(),function(){E.props.onOrderChange&&E.props.onOrderChange(L,q),E.props.onOrderCollectionChange&&E.props.onOrderCollectionChange(J)})}),(0,g.default)((0,h.default)(E),"onPageChange",function(L,q){if(E.isRemoteData()){var U=D({},E.state.query);U.page=q,E.onQueryChange(U,function(){E.props.onPageChange&&E.props.onPageChange(q,U.pageSize)})}else E.dataManager.changeCurrentPage(q),E.setState(E.dataManager.getRenderState(),function(){E.props.onPageChange&&E.props.onPageChange(q,E.state.pageSize)})}),(0,g.default)((0,h.default)(E),"onRowsPerPageChange",function(L){var q=L.target.value;E.dataManager.changePageSize(q);var U=function(){E.props.onPageChange&&E.props.onPageChange(0,q),E.props.onRowsPerPageChange&&E.props.onRowsPerPageChange(q)};if(E.isRemoteData()){var J=D({},E.state.query);J.pageSize=L.target.value,J.page=0,E.onQueryChange(J,U)}else E.dataManager.changeCurrentPage(0),E.setState(E.dataManager.getRenderState(),U)}),(0,g.default)((0,h.default)(E),"onDragEnd",function(L){!L||!L.source||!L.destination||(E.dataManager.changeByDrag(L),E.setState(E.dataManager.getRenderState(),function(){E.props.onColumnDragged&&L.destination.droppableId==="headers"&&L.source.droppableId==="headers"&&E.props.onColumnDragged(L.source.index,L.destination.index)}))}),(0,g.default)((0,h.default)(E),"onGroupExpandChanged",function(L){E.dataManager.changeGroupExpand(L),E.setState(E.dataManager.getRenderState())}),(0,g.default)((0,h.default)(E),"onGroupRemoved",function(L,q){var U={combine:null,destination:{droppableId:"headers",index:0},draggableId:L.tableData.id,mode:"FLUID",reason:"DROP",source:{index:q,droppableId:"groups"},type:"DEFAULT"};E.dataManager.changeByDrag(U),E.setState(E.dataManager.getRenderState(),function(){E.props.onGroupRemoved&&E.props.onGroupRemoved(L,q)})}),(0,g.default)((0,h.default)(E),"onEditingApproved",function(L,q,U){L==="add"&&E.props.editable&&E.props.editable.onRowAdd?E.setState({isLoading:!0},function(){E.props.editable.onRowAdd(q).then(function(J){E.setState({isLoading:!1,showAddRow:!1},function(){E.isRemoteData()&&E.onQueryChange(E.state.query)})}).catch(function(J){var te={message:J,errorCause:"add"};E.setState({isLoading:!1,errorState:te})})}):L==="update"&&E.props.editable&&E.props.editable.onRowUpdate?E.setState({isLoading:!0},function(){E.props.editable.onRowUpdate(q,U).then(function(J){E.dataManager.changeRowEditing(U),E.setState(D({isLoading:!1},E.dataManager.getRenderState()),function(){E.isRemoteData()&&E.onQueryChange(E.state.query)})}).catch(function(J){var te={message:J,errorCause:"update"};E.setState({isLoading:!1,errorState:te})})}):L==="delete"&&E.props.editable&&E.props.editable.onRowDelete?E.setState({isLoading:!0},function(){E.props.editable.onRowDelete(Object.entries(U).reduce(function(J,te){var ee=(0,f.default)(te,2),K=ee[0],Q=ee[1];return K!=="tableData"&&(J[K]=Q),J},{})).then(function(J){E.dataManager.changeRowEditing(U),E.setState(D({isLoading:!1},E.dataManager.getRenderState()),function(){E.isRemoteData()&&E.onQueryChange(E.state.query)})}).catch(function(J){var te={message:J,errorCause:"delete"};E.setState({isLoading:!1,errorState:te})})}):L==="bulk"&&E.props.editable&&E.props.editable.onBulkUpdate&&E.setState({isLoading:!0},function(){E.props.editable.onBulkUpdate(E.dataManager.bulkEditChangedRows).then(function(J){E.dataManager.changeBulkEditOpen(!1),E.props.onBulkEditOpen&&E.props.onBulkEditOpen(!1),E.dataManager.clearBulkEditChangedRows(),E.setState(D({isLoading:!1},E.dataManager.getRenderState()),function(){E.isRemoteData()&&E.onQueryChange(E.state.query)})}).catch(function(J){var te={message:J,errorCause:"bulk edit"};E.setState({isLoading:!1,errorState:te})})})}),(0,g.default)((0,h.default)(E),"onEditingCanceled",function(L,q){L==="add"?(E.props.editable.onRowAddCancelled&&E.props.editable.onRowAddCancelled(),E.setState({showAddRow:!1})):L==="update"?(E.props.editable.onRowUpdateCancelled&&E.props.editable.onRowUpdateCancelled(),E.dataManager.changeRowEditing(q),E.setState(E.dataManager.getRenderState())):L==="delete"&&(E.dataManager.changeRowEditing(q),E.setState(E.dataManager.getRenderState()))}),(0,g.default)((0,h.default)(E),"retry",function(){E.onQueryChange(E.state.query)}),(0,g.default)((0,h.default)(E),"onQueryChange",function(L,q){L=D(D(D({},E.state.query),L),{},{error:E.state.errorState}),E.setState({isLoading:!0,errorState:void 0},function(){E.props.data(L).then(function(U){L.totalCount=U.totalCount,L.page=U.page;var J=D(D({},L),{},{totalCount:U.totalCount,page:U.page});E.dataManager.setData(U.data,E.props.options.idSynonym),E.setState(D(D({isLoading:!1,errorState:!1},E.dataManager.getRenderState()),{},{query:J}),function(){q&&q()})}).catch(function(U){var J={message:(0,u.default)(U)==="object"?U.message:U!==void 0?U:E.props.localization.error,errorCause:"query"};E.setState(D({isLoading:!1,errorState:J},E.dataManager.getRenderState()))})})}),(0,g.default)((0,h.default)(E),"onRowSelected",function(L,q,U){E.dataManager.changeRowSelected(L.target.checked,q),E.setState(E.dataManager.getRenderState(),function(){return E.onSelectionChange(U)})}),(0,g.default)((0,h.default)(E),"onSelectionChange",function(L){if(E.props.onSelectionChange){var q=[],U=function(te){te.forEach(function(ee){ee.tableData.checked&&q.push(ee)})};U(E.state.originalData),E.props.onSelectionChange(q,L)}}),(0,g.default)((0,h.default)(E),"onSearchChangeDebounce",(0,w.debounce)(function(L){if(E.isRemoteData()){var q=D({},E.state.query);q.page=0,q.search=L,E.onQueryChange(q,function(){E.props.onSearchChange&&E.props.onSearchChange(L)})}else E.setState(E.dataManager.getRenderState(),function(){E.props.onSearchChange&&E.props.onSearchChange(L)})},E.props.options.debounceInterval)),(0,g.default)((0,h.default)(E),"onFilterChange",function(L,q){E.dataManager.changeFilterValue(L,q),E.setState({},E.onFilterChangeDebounce)}),(0,g.default)((0,h.default)(E),"onFilterChangeDebounce",(0,w.debounce)(function(){if(E.isRemoteData()){var L=D({},E.state.query);L.page=0,L.filters=E.state.columns.filter(function(q){return q.tableData.filterValue}).map(function(q){return{column:q,operator:"=",value:q.tableData.filterValue}}),E.onQueryChange(L,function(){E.props.onFilterChange&&E.props.onFilterChange(L.filters)})}else E.setState(E.dataManager.getRenderState(),function(){if(E.props.onFilterChange){var q=E.state.columns.filter(function(U){return U.tableData.filterValue}).map(function(U){return{column:U,operator:"=",value:U.tableData.filterValue}});E.props.onFilterChange(q)}})},E.props.options.debounceInterval)),(0,g.default)((0,h.default)(E),"onTreeExpandChanged",function(L,q){E.dataManager.changeTreeExpand(L),E.setState(E.dataManager.getRenderState(),function(){E.props.onTreeExpandChange&&E.props.onTreeExpandChange(q,q.tableData.isTreeExpanded)})}),(0,g.default)((0,h.default)(E),"onToggleDetailPanel",function(L,q){E.dataManager.changeDetailPanelVisibility(L,q),E.setState(E.dataManager.getRenderState())}),(0,g.default)((0,h.default)(E),"onCellEditStarted",function(L,q){E.dataManager.startCellEditable(L,q),E.setState(E.dataManager.getRenderState())}),(0,g.default)((0,h.default)(E),"onCellEditFinished",function(L,q){E.dataManager.finishCellEditable(L,q),E.setState(E.dataManager.getRenderState())}),(0,g.default)((0,h.default)(E),"onEditRowDataChanged",function(L,q){E.dataManager.setEditRowData(L,q),E.setState(E.dataManager.getRenderState())}),(0,g.default)((0,h.default)(E),"onColumnResized",function(L,q,U,J){var te=function(Q){return D(D(D({field:Q.field,width:Q.tableData.width,widthPx:Q.tableData.widthPx},Q.id&&{id:Q.id}),Q.minWidth&&{minWidth:Q.minWidth}),Q.maxWidth&&{maxWidth:Q.maxWidth})},ee=E.dataManager.onColumnResized(L,q,U,J);E.setState(E.dataManager.getRenderState(),function(){q===0&&E.props.onColumnResized&&ee.length>0&&E.props.onColumnResized(ee.map(function(K){return te(K)}),E.state.columns.map(function(K){return te(K)}))})}),(0,g.default)((0,h.default)(E),"renderTable",function(L){var q;return b.default.createElement(c.default,{sx:L.sx,style:D(D({},L.options.tableWidth==="variable"&&{width:E.state.tableStyleWidth}),{},{tableLayout:L.options.fixedColumns&&(L.options.fixedColumns.left||L.options.fixedColumns.right)?"fixed":L.options.tableLayout})},L.options.header&&b.default.createElement(L.components.Header,{actions:E.state.actions,columns:E.state.columns,selectedCount:E.state.selectedCount,dataCount:L.parentChildData?E.dataManager.searchedData.length:E.state.columns.some(function(U){return U.tableData.groupOrder>-1})?E.state.groupedDataLength:E.state.data.length,hasDetailPanel:!!L.detailPanel,showActionsColumn:!E.dataManager.bulkEditOpen&&E.state.actions&&E.state.actions.some(function(U){return U.position==="row"||typeof U=="function"}),onAllSelected:E.onAllSelected,onOrderChange:E.onChangeOrder,isTreeData:E.props.parentChildData!==void 0,treeDataMaxLevel:E.state.treeDataMaxLevel,onColumnResized:E.onColumnResized,scrollWidth:E.state.width,sorting:L.options.sorting||E.dataManager.maxColumnSort!==0,allowSorting:E.dataManager.maxColumnSort!==0,orderByCollection:E.dataManager.getOrderByCollection(),tableWidth:(q=L.options.tableWidth)!==null&&q!==void 0?q:"full"}),b.default.createElement(L.components.Body,{actions:E.state.actions,components:E.props.components,renderData:E.state.renderData,data:E.state.data,renderSummaryRow:E.props.renderSummaryRow,currentPage:E.isRemoteData()?0:E.state.currentPage,initialFormData:L.initialFormData,pageSize:E.state.pageSize,columns:E.state.columns,errorState:E.state.errorState,detailPanel:L.detailPanel,options:L.options,getFieldValue:E.dataManager.getFieldValue,isTreeData:E.props.parentChildData!==void 0,onFilterChanged:E.onFilterChange,onRowSelected:E.onRowSelected,onGroupSelected:E.onGroupSelected,onToggleDetailPanel:E.onToggleDetailPanel,onGroupExpandChanged:E.onGroupExpandChanged,onTreeExpandChanged:E.onTreeExpandChanged,onEditingCanceled:E.onEditingCanceled,onEditingApproved:E.onEditingApproved,onRowClick:E.props.onRowClick,onRowDoubleClick:E.props.onRowDoubleClick,showAddRow:E.state.showAddRow,hasAnyEditingRow:!!(E.state.lastEditingRow||E.state.showAddRow),hasDetailPanel:!!L.detailPanel,treeDataMaxLevel:E.state.treeDataMaxLevel,cellEditable:L.cellEditable,onCellEditStarted:E.onCellEditStarted,onCellEditFinished:E.onCellEditFinished,onRowEditStarted:E.onRowEditStarted,bulkEditOpen:E.dataManager.bulkEditOpen,bulkEditChangedRows:E.dataManager.bulkEditChangedRows,onBulkEditRowChanged:E.dataManager.onBulkEditRowChanged,scrollWidth:E.state.width}))}),(0,g.default)((0,h.default)(E),"onRowEditStarted",function(L){var q;(q=E.props.editable)!==null&&q!==void 0&&q.onRowUpdate&&(E.dataManager.changeRowEditing(L,"update"),E.setState(D(D({},E.dataManager.getRenderState()),{},{showAddRow:!1})))}),(0,g.default)((0,h.default)(E),"getColumnsWidth",function(L,q){var U=[],J=x.actionsColumnWidth(L);if(J>0&&(q>0&&L.options.actionsColumnIndex>=0&&L.options.actionsColumnIndex=q)&&U.push(J+"px"),L.options.selection&&q>0){var te=x.selectionMaxWidth(L,E.state.treeDataMaxLevel);U.push(te+"px")}for(var ee=0;ee=0?ee:E.state.columns.length-1-ee];K.tableData&&(typeof K.tableData.width=="number"?U.push(K.tableData.width+"px"):U.push(K.tableData.width))}return"calc("+U.join(" + ")+")"}),(0,g.default)((0,h.default)(E),"getRenderData",function(){return E.props.options.exportAllData?E.state.data:E.state.renderData});var W=E.getProps(F);E.setDataManagerFields(W,!0);var H=E.dataManager.getRenderState();return E.state=D(D({data:[],errorState:void 0},H),{},{query:{filters:H.columns.filter(function(L){return L.tableData.filterValue}).map(function(L){return{column:L,operator:"=",value:L.tableData.filterValue}}),orderBy:H.columns.find(function(L){return L.tableData.id===H.orderBy}),orderDirection:H.orderDirection,orderByCollection:H.orderByCollection,page:0,pageSize:W.options.pageSize,search:H.searchText,totalCount:0},showAddRow:!1,bulkEditOpen:!1,width:0,tableInitialWidthPx:void 0,tableStyleWidth:"100%",actions:W.actions}),E.tableContainerDiv=b.default.createRef(),E}return(0,p.default)(j,[{key:"componentDidMount",value:function(){var E=this;this.setState(D(D({},this.dataManager.getRenderState()),{},{width:this.tableContainerDiv.current.scrollWidth}),function(){E.isRemoteData()&&E.onQueryChange(D(D({},E.state.query),{},{page:E.props.options.initialPage||0})),E.props.onDoubleRowClick!==void 0&&console.warn("Property `onDoubleRowClick` has been renamed to `onRowDoubleClick`"),E.props.options.sorting!==void 0&&console.warn("Property `sorting` has been deprecated, please start using `maxColumnSort` instead. https://github.com/material-table-core/core/pull/619")})}},{key:"setDataManagerFields",value:function(E,W,H){var L,q=this,U={};if(E.options.persistentGroupingsId&&localStorage){var J=localStorage.getItem("material-table-groupings");J&&(J=JSON.parse(J),J[E.options.persistentGroupingsId]&&J[E.options.persistentGroupingsId].forEach(function(_e){U[_e.field]={groupOrder:_e.groupOrder,groupSort:_e.groupSort,columnOrder:_e.columnOrder}}))}this.dataManager.setTableWidth((L=E.options.tableWidth)!==null&&L!==void 0?L:"full"),this.dataManager.setColumns(E.columns,H,U),this.dataManager.setDefaultExpanded(E.options.defaultExpanded),this.dataManager.changeRowEditing();var te=E.options,ee=te.clientSorting,K=te.grouping,Q=te.maxColumnSort;this.dataManager.setClientSorting(ee),this.dataManager.setMaxColumnSort(K?1:Q),this.dataManager.setOrderByCollection(),this.isRemoteData(E)?(this.dataManager.changeApplySearch(!1),this.dataManager.changeApplyFilters(!1),this.dataManager.changeApplySort(!1)):(this.dataManager.changeApplySearch(!0),this.dataManager.changeApplyFilters(!0),this.dataManager.changeApplySort(!0),this.dataManager.setData(E.data,E.options.idSynonym));var G=this.dataManager.getDefaultOrderByCollection(),X=E.options.defaultOrderByCollection,Y=[],re="",ie="";if(X&&X.length>0)Y=(0,l.default)(X).slice(0,Q),Y=this.dataManager.sortOrderCollection(Y),re=JSON.stringify(Y),ie=JSON.stringify(G),re!==ie&&this.dataManager.setDefaultOrderByCollection(Y);else{var le=P(E.columns,H,this.dataManager.maxColumnSort);Y=(0,l.default)(le[0]),re=JSON.stringify(Y),ie=JSON.stringify((0,l.default)(le[1]))}var se=JSON.stringify(this.dataManager.orderByCollection),he=W||!this.isRemoteData()&&Y.length&&re!==ie&&re!==se;he&&Y.length>0&&Q>0&&Y.forEach(function(_e){var Me=_e.orderBy,Ce=_e.orderDirection,Se=_e.sortOrder;return q.dataManager.changeColumnOrder(Me,Ce,Se)}),W&&this.dataManager.changeSearchText(E.options.searchText||""),W&&this.dataManager.changeSearchDebounce(E.options.searchDebounceDelay),W&&this.dataManager.changeCurrentPage(E.options.initialPage?E.options.initialPage:0),W&&this.dataManager.changePageSize(E.options.pageSize),this.dataManager.changePaging(this.isRemoteData()?!1:E.options.paging),W&&this.dataManager.changeParentFunc(E.parentChildData),this.dataManager.changeDetailPanelType(E.options.detailPanelType)}},{key:"cleanColumns",value:function(E){return E.map(function(W){var H=D({},W);return delete H.tableData,H})}},{key:"componentDidUpdate",value:function(E){var W=this.cleanColumns(E.columns),H=this.cleanColumns(this.props.columns),L=!(0,_.default)(W,H),q=L||!(0,_.default)(E.options,this.props.options);if(this.isRemoteData()||(q=q||!(0,_.default)(E.data,this.props.data)),E.options.pageSize!==this.props.options.pageSize&&this.dataManager.changePageSize(this.props.options.pageSize),q){var U=this.getProps(this.props);this.setDataManagerFields(U,!1,E.columns),this.setState(D(D({},this.dataManager.getRenderState()),{},{actions:U.actions}))}var J=this.isRemoteData()?this.state.query.totalCount:this.state.data.length,te=this.isRemoteData()?this.state.query.page:this.state.currentPage,ee=this.isRemoteData()?this.state.query.pageSize:this.state.pageSize;J<=ee*te&&te!==0&&!this.state.isLoading&&this.onPageChange(null,Math.max(0,Math.ceil(J/ee)-1))}},{key:"getProps",value:function(E){var W=this,H=D({},E||this.props),L=this.props.localization.body;if(H.options.selection?H.actions=H.actions.filter(function(U){return U}).map(function(U){return U.position==="auto"||U.isFreeAction===!1||U.position===void 0&&U.isFreeAction===void 0?typeof U=="function"?{action:U,position:"toolbarOnSelect"}:D(D({},U),{},{position:"toolbarOnSelect"}):U.isFreeAction?typeof U=="function"?{action:U,position:"toolbar"}:D(D({},U),{},{position:"toolbar"}):U}):H.actions=H.actions.filter(function(U){return U}).map(function(U){return U.position==="auto"||U.isFreeAction===!1||U.position===void 0&&U.isFreeAction===void 0?typeof U=="function"?{action:U,position:"row"}:D(D({},U),{},{position:"row"}):U.isFreeAction?typeof U=="function"?{action:U,position:"toolbar"}:D(D({},U),{},{position:"toolbar"}):U}),H.editable){var q;H.editable.onRowAdd&&H.actions.push({icon:H.icons.Add,tooltip:L.addTooltip,position:"toolbar",disabled:!!this.dataManager.lastEditingRow,onClick:function(){W.dataManager.changeRowEditing(),W.state.showAddRow&&W.props.editable.onRowAddCancelled&&W.props.editable.onRowAddCancelled(),W.setState(D(D({},W.dataManager.getRenderState()),{},{showAddRow:!W.state.showAddRow}))}}),H.editable.onRowUpdate&&H.actions.push(function(U){return{icon:H.icons.Edit,tooltip:H.editable.editTooltip?H.editable.editTooltip(U):L.editTooltip,disabled:H.editable.isEditable&&!H.editable.isEditable(U),hidden:H.editable.isEditHidden&&H.editable.isEditHidden(U),onClick:function(te,ee){W.onRowEditStarted(ee)}}}),H.editable.onRowDelete&&H.actions.push(function(U){return{icon:H.icons.Delete,tooltip:H.editable.deleteTooltip?H.editable.deleteTooltip(U):L.deleteTooltip,disabled:H.editable.isDeletable&&!H.editable.isDeletable(U),hidden:H.editable.isDeleteHidden&&H.editable.isDeleteHidden(U),onClick:function(te,ee){W.dataManager.changeRowEditing(ee,"delete"),W.setState(D(D({},W.dataManager.getRenderState()),{},{showAddRow:!1}))}}}),H.editable.onBulkUpdate&&(H.actions.push({icon:H.icons.Edit,tooltip:L.bulkEditTooltip,position:"toolbar",hidden:this.dataManager.bulkEditOpen,disabled:H.isBulkEditable&&H.isBulkEditable(),onClick:function(){W.dataManager.changeBulkEditOpen(!0),W.props.onBulkEditOpen&&W.props.onBulkEditOpen(!0),W.setState(W.dataManager.getRenderState())}}),H.actions.push({icon:H.icons.Check,tooltip:L.bulkEditApprove,position:"toolbar",hidden:!this.dataManager.bulkEditOpen,onClick:function(){return W.onEditingApproved("bulk")}}),H.actions.push({icon:H.icons.Clear,tooltip:L.bulkEditCancel,position:"toolbar",hidden:!this.dataManager.bulkEditOpen,onClick:function(){W.dataManager.changeBulkEditOpen(!1),W.props.onBulkEditOpen&&W.props.onBulkEditOpen(!1),W.dataManager.clearBulkEditChangedRows(),W.setState(W.dataManager.getRenderState())}})),(q=this.state)!==null&&q!==void 0&&q.showAddRow&&H.editable.onRowAdd&&H.actions.filter(function(U){return U.position==="row"}).length===0&&H.actions.push({icon:void 0,position:"row",onClick:function(){},disabled:!0})}return H}},{key:"renderFooter",value:function(){var E=this.getProps();if(E.options.paging){var W=this.isRemoteData()?Math.min(E.page,Math.floor(E.totalCount/this.state.pageSize)):this.state.currentPage,H=this.isRemoteData()?E.totalCount:this.state.data.length;return b.default.createElement(c.default,null,b.default.createElement(s.default,{style:{display:"grid"}},b.default.createElement(o.default,{style:{display:"grid"}},b.default.createElement(E.components.Pagination,{sx:{display:"flex",justifyContent:E.options.paginationAlignment?E.options.paginationAlignment:"flex-end",overflowX:"auto","& .MuiTablePagination-displayedRows":{display:"none"}},colSpan:3,count:this.isRemoteData()?this.state.query.totalCount:H,rowsPerPage:this.state.pageSize,rowsPerPageOptions:E.options.pageSizeOptions,SelectProps:{renderValue:function(q){return b.default.createElement(n.default,{sx:{padding:"0px 5px"}},q+" "+E.localization.pagination.labelRows+" ")}},page:this.isRemoteData()?this.state.query.page:W,onPageChange:this.onPageChange,onRowsPerPageChange:this.onRowsPerPageChange,ActionsComponent:function(q){return E.options.paginationType==="normal"?b.default.createElement(S.MTablePagination,(0,a.default)({},q,{showFirstLastPageButtons:E.options.showFirstLastPageButtons})):b.default.createElement(S.MTableSteppedPagination,(0,a.default)({},q,{showFirstLastPageButtons:E.options.showFirstLastPageButtons,numberOfPagesAround:E.options.numberOfPagesAround}))},labelRowsPerPage:E.localization.pagination.labelRowsPerPage}))))}}},{key:"render",value:function(){var E=this,W=this.getProps();return b.default.createElement(k.DragDropContext,{onDragEnd:this.onDragEnd,nonce:W.options.cspNonce},b.default.createElement(this.props.components.Container,{style:D({position:"relative"},W.style)},W.options.paginationPosition==="top"||W.options.paginationPosition==="both"?this.renderFooter():null,W.options.toolbar&&b.default.createElement(this.props.components.Toolbar,{actions:W.actions,components:this.props.components,originalData:this.state.originalData,columns:this.state.columns,selectedCount:this.state.selectedCount,getFieldValue:this.dataManager.getFieldValue,data:this.getRenderData,title:W.title,searchText:this.dataManager.searchText,searchDebounceDelay:this.dataManager.searchDebounceDelay,onSearchChanged:this.onSearchChangeDebounce,isRemoteData:this.isRemoteData(),dataManager:this.dataManager,onColumnsChanged:this.onChangeColumnHidden}),W.options.grouping&&b.default.createElement(this.props.components.Groupbar,{groupColumns:this.state.columns.filter(function(H){return H.tableData.groupOrder>-1}).sort(function(H,L){return H.tableData.groupOrder-L.tableData.groupOrder}),onSortChanged:this.onChangeGroupOrder,onGroupRemoved:this.onGroupRemoved,onGroupChange:this.props.onGroupChange,persistentGroupingsId:W.options.persistentGroupingsId}),b.default.createElement(S.MTableScrollbar,{double:W.options.doubleHorizontalScroll},b.default.createElement(k.Droppable,{droppableId:"headers",direction:"horizontal"},function(H,L){var q=E.renderTable(W);return b.default.createElement("div",{ref:H.innerRef},b.default.createElement("div",{ref:E.tableContainerDiv,style:{maxHeight:W.options.maxBodyHeight,minHeight:W.options.minBodyHeight,overflowY:W.options.overflowY}},E.state.width&&W.options.fixedColumns&&W.options.fixedColumns.right?b.default.createElement("div",{style:{width:E.getColumnsWidth(W,-1*W.options.fixedColumns.right),position:"absolute",top:0,right:0,boxShadow:"-2px 0px 15px rgba(125,147,178,.25)",overflowX:"clip",zIndex:11}},b.default.createElement("div",{style:{width:E.state.width,background:"white",transform:"translateX(calc(".concat(E.getColumnsWidth(W,-1*W.options.fixedColumns.right)," - 100%))")}},q)):null,b.default.createElement("div",null,q),E.state.width&&W.options.fixedColumns&&W.options.fixedColumns.left?b.default.createElement("div",{style:{width:E.getColumnsWidth(W,W.options.fixedColumns.left),position:"absolute",top:0,left:0,boxShadow:"2px 0px 15px rgba(125,147,178,.25)",overflowX:"clip",zIndex:11}},b.default.createElement("div",{style:{width:E.state.width,background:"white"},onKeyDown:function(J){J.key==="Tab"&&J.preventDefault()}},q)):null),H.placeholder)})),(this.state.isLoading||W.isLoading)&&W.options.loadingType==="linear"&&b.default.createElement("div",{style:{position:"relative",width:"100%"}},b.default.createElement("div",{style:{position:"absolute",top:0,left:0,height:"100%",width:"100%"}},b.default.createElement(i.default,null))),W.options.paginationPosition==="bottom"||W.options.paginationPosition==="both"?this.renderFooter():null,(this.state.isLoading||W.isLoading)&&W.options.loadingType==="overlay"&&b.default.createElement("div",{style:{position:"absolute",top:0,left:0,height:"100%",width:"100%",zIndex:11}},b.default.createElement(this.props.components.OverlayLoading,{theme:W.theme})),this.state.errorState&&this.state.errorState.errorCause==="query"&&b.default.createElement("div",{style:{position:"absolute",top:0,left:0,height:"100%",width:"100%",zIndex:11}},b.default.createElement(this.props.components.OverlayError,{error:this.state.errorState,retry:this.retry,theme:W.theme}))))}}]),j}(b.default.Component);e.default=$;function P(B,N,j){var F=[],E=[];return j>0&&(F=z(B,j)),N&&(E=z(N,j)),[F,E]}function z(B,N){var j=B.filter(function(F){return F.defaultSort&&F.sorting!==!1});return j.slice(0,N).map(function(F,E){return{orderBy:F.tableData?F.tableData.id:B.findIndex(function(W){return W.field===F.field}),orderDirection:F.defaultSort,sortOrder:E+1}})}}(r0)),r0}(function(e){var t=yn;Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"ALL_COLUMNS",{enumerable:!0,get:function(){return u.ALL_COLUMNS}}),Object.defineProperty(e,"MTableAction",{enumerable:!0,get:function(){return c.MTableAction}}),Object.defineProperty(e,"MTableActions",{enumerable:!0,get:function(){return c.MTableActions}}),Object.defineProperty(e,"MTableBody",{enumerable:!0,get:function(){return c.MTableBody}}),Object.defineProperty(e,"MTableBodyRow",{enumerable:!0,get:function(){return c.MTableBodyRow}}),Object.defineProperty(e,"MTableCell",{enumerable:!0,get:function(){return c.MTableCell}}),Object.defineProperty(e,"MTableEditCell",{enumerable:!0,get:function(){return c.MTableEditCell}}),Object.defineProperty(e,"MTableEditField",{enumerable:!0,get:function(){return c.MTableEditField}}),Object.defineProperty(e,"MTableEditRow",{enumerable:!0,get:function(){return c.MTableEditRow}}),Object.defineProperty(e,"MTableFilterRow",{enumerable:!0,get:function(){return c.MTableFilterRow}}),Object.defineProperty(e,"MTableGroupRow",{enumerable:!0,get:function(){return c.MTableGroupRow}}),Object.defineProperty(e,"MTableGroupbar",{enumerable:!0,get:function(){return c.MTableGroupbar}}),Object.defineProperty(e,"MTableHeader",{enumerable:!0,get:function(){return c.MTableHeader}}),Object.defineProperty(e,"MTablePagination",{enumerable:!0,get:function(){return c.MTablePagination}}),Object.defineProperty(e,"MTableSteppedPagination",{enumerable:!0,get:function(){return c.MTableSteppedPagination}}),Object.defineProperty(e,"MTableToolbar",{enumerable:!0,get:function(){return c.MTableToolbar}}),e.default=void 0,Object.defineProperty(e,"useLocalizationStore",{enumerable:!0,get:function(){return l.useLocalizationStore}});var r=t(_r()),i=t($e),s=ste(),o=ute(),a=t(Cte()),n=Zl,l=mc(),c=bp(),u=ab();a.default.defaultProps=s.defaultProps,a.default.propTypes=o.propTypes;var f=(0,l.withContext)(function(d){var p=(0,n.useTheme)(),h=(0,l.useMergeProps)(d),m=h.localization,y=h.options,v=h.components;return i.default.createElement(a.default,(0,r.default)({},d,{theme:p,options:y,components:v,localization:m,ref:d.tableRef}))});e.default=f})(a4);const Ote=ur(a4);var ib={},Pte=yn;Object.defineProperty(ib,"__esModule",{value:!0});var oP=ib.default=void 0,Ate=Pte(Qr()),Dte=Ee,Ete=(0,Ate.default)((0,Dte.jsx)("path",{d:"M1 21h22L12 2 1 21zm12-3h-2v-2h2v2zm0-4h-2v-4h2v4z"}),"Warning");oP=ib.default=Ete;class Rte{constructor(t){Jc(this,"cachedGraphs");Jc(this,"cachedWidgets");Jc(this,"inner");this.inner=t,this.cachedGraphs=new Map,this.cachedWidgets=new Map}async getAdditionGraphData(t){let r=this.cachedGraphs.get(t);return r!==void 0||(r=await this.inner.getAdditionGraphData(t),this.cachedGraphs.set(t,r)),r}async getAdditionWidgetData(t){let r=this.cachedWidgets.get(t);return r!==void 0||(r=await this.inner.getAdditionWidgetData(t),this.cachedWidgets.set(t,r)),r}}const lP=tt.createContext({getAdditionGraphData:()=>new Promise((e,t)=>t("default context doesn't contain methods to get data")),getAdditionWidgetData:()=>new Promise((e,t)=>t("default context doesn't contain methods to get data"))});function o8e(e){return new Rte(e)}const mv=e=>{const[t,r]=$e.useState(()=>({status:0}));return $e.useEffect(()=>{r({status:1,func:e.func})},[e.func]),t.status===1&&(r(i=>({...i,status:2})),t.func().then(i=>r(s=>({status:3,func:s.func,result:i})))),Ee.jsx(tt.Fragment,{children:t.status===3?e.children?e.children(t.result):Ee.jsx("div",{}):Ee.jsx(Ma,{textAlign:"center",children:Ee.jsx(BC,{})})})},Lte=e=>Ee.jsx(lP.Consumer,{children:t=>Ee.jsx(mv,{func:()=>t.getAdditionGraphData(e.graphId),children:r=>Ee.jsx(Kd,{...r,widgetSize:e.widgetSize})})});var sP=function(){if(typeof Map<"u")return Map;function e(t,r){var i=-1;return t.some(function(s,o){return s[0]===r?(i=o,!0):!1}),i}return function(){function t(){this.__entries__=[]}return Object.defineProperty(t.prototype,"size",{get:function(){return this.__entries__.length},enumerable:!0,configurable:!0}),t.prototype.get=function(r){var i=e(this.__entries__,r),s=this.__entries__[i];return s&&s[1]},t.prototype.set=function(r,i){var s=e(this.__entries__,r);~s?this.__entries__[s][1]=i:this.__entries__.push([r,i])},t.prototype.delete=function(r){var i=this.__entries__,s=e(i,r);~s&&i.splice(s,1)},t.prototype.has=function(r){return!!~e(this.__entries__,r)},t.prototype.clear=function(){this.__entries__.splice(0)},t.prototype.forEach=function(r,i){i===void 0&&(i=null);for(var s=0,o=this.__entries__;s0},e.prototype.connect_=function(){!vv||this.connected_||(document.addEventListener("transitionend",this.onTransitionEnd_),window.addEventListener("resize",this.refresh),Bte?(this.mutationsObserver_=new MutationObserver(this.refresh),this.mutationsObserver_.observe(document,{attributes:!0,childList:!0,characterData:!0,subtree:!0})):(document.addEventListener("DOMSubtreeModified",this.refresh),this.mutationEventsAdded_=!0),this.connected_=!0)},e.prototype.disconnect_=function(){!vv||!this.connected_||(document.removeEventListener("transitionend",this.onTransitionEnd_),window.removeEventListener("resize",this.refresh),this.mutationsObserver_&&this.mutationsObserver_.disconnect(),this.mutationEventsAdded_&&document.removeEventListener("DOMSubtreeModified",this.refresh),this.mutationsObserver_=null,this.mutationEventsAdded_=!1,this.connected_=!1)},e.prototype.onTransitionEnd_=function(t){var r=t.propertyName,i=r===void 0?"":r,s=Nte.some(function(o){return!!~i.indexOf(o)});s&&this.refresh()},e.getInstance=function(){return this.instance_||(this.instance_=new e),this.instance_},e.instance_=null,e}(),uP=function(e,t){for(var r=0,i=Object.keys(t);r"u"||!(Element instanceof Object))){if(!(t instanceof Bl(t).Element))throw new TypeError('parameter 1 is not of type "Element".');var r=this.observations_;r.has(t)||(r.set(t,new Xte(t)),this.controller_.addObserver(this),this.controller_.refresh())}},e.prototype.unobserve=function(t){if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");if(!(typeof Element>"u"||!(Element instanceof Object))){if(!(t instanceof Bl(t).Element))throw new TypeError('parameter 1 is not of type "Element".');var r=this.observations_;r.has(t)&&(r.delete(t),r.size||this.controller_.removeObserver(this))}},e.prototype.disconnect=function(){this.clearActive(),this.observations_.clear(),this.controller_.removeObserver(this)},e.prototype.gatherActive=function(){var t=this;this.clearActive(),this.observations_.forEach(function(r){r.isActive()&&t.activeObservations_.push(r)})},e.prototype.broadcastActive=function(){if(this.hasActive()){var t=this.callbackCtx_,r=this.activeObservations_.map(function(i){return new Zte(i.target,i.broadcastRect())});this.callback_.call(t,r,t),this.clearActive()}},e.prototype.clearActive=function(){this.activeObservations_.splice(0)},e.prototype.hasActive=function(){return this.activeObservations_.length>0},e}(),fP=typeof WeakMap<"u"?new WeakMap:new sP,dP=function(){function e(t){if(!(this instanceof e))throw new TypeError("Cannot call a class as a function.");if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");var r=zte.getInstance(),i=new Kte(t,r,this);fP.set(this,i)}return e}();["observe","unobserve","disconnect"].forEach(function(e){dP.prototype[e]=function(){var t;return(t=fP.get(this))[e].apply(t,arguments)}});var Jte=function(){return typeof gd.ResizeObserver<"u"?gd.ResizeObserver:dP}(),Qte=["client","offset","scroll","bounds","margin"];function yk(e){var t=[];return Qte.forEach(function(r){e[r]&&t.push(r)}),t}function bk(e,t){var r={};if(t.indexOf("client")>-1&&(r.client={top:e.clientTop,left:e.clientLeft,width:e.clientWidth,height:e.clientHeight}),t.indexOf("offset")>-1&&(r.offset={top:e.offsetTop,left:e.offsetLeft,width:e.offsetWidth,height:e.offsetHeight}),t.indexOf("scroll")>-1&&(r.scroll={top:e.scrollTop,left:e.scrollLeft,width:e.scrollWidth,height:e.scrollHeight}),t.indexOf("bounds")>-1){var i=e.getBoundingClientRect();r.bounds={top:i.top,right:i.right,bottom:i.bottom,left:i.left,width:i.width,height:i.height}}if(t.indexOf("margin")>-1){var s=getComputedStyle(e);r.margin={top:s?parseInt(s.marginTop):0,right:s?parseInt(s.marginRight):0,bottom:s?parseInt(s.marginBottom):0,left:s?parseInt(s.marginLeft):0}}return r}function ene(e){var t=e&&e.ownerDocument&&e.ownerDocument.defaultView;return t||window}function tne(e){return function(t){var r,i;return i=r=function(s){yC(o,s);function o(){for(var n,l=arguments.length,c=new Array(l),u=0;u"u"?Ea:window,_f=["moz","webkit"],Ol="AnimationFrame",zl=Li["request"+Ol],Ju=Li["cancel"+Ol]||Li["cancelRequest"+Ol];for(var uu=0;!zl&&uu<_f.length;uu++)zl=Li[_f[uu]+"Request"+Ol],Ju=Li[_f[uu]+"Cancel"+Ol]||Li[_f[uu]+"CancelRequest"+Ol];if(!zl||!Ju){var l0=0,xk=0,wo=[],ane=1e3/60;zl=function(e){if(wo.length===0){var t=rne(),r=Math.max(0,ane-(t-l0));l0=r+t,setTimeout(function(){var i=wo.slice(0);wo.length=0;for(var s=0;sk*10&&(A.accumulatedTime=0),A.accumulatedTime===0){A.animationID=null,A.startAnimationIfNecessary();return}var P=(A.accumulatedTime-Math.floor(A.accumulatedTime/k)*k)/k,z=Math.floor(A.accumulatedTime/k),B={},N={},j={},F={};for(var E in O)if(Object.prototype.hasOwnProperty.call(O,E)){var W=O[E];if(typeof W=="number")j[E]=W,F[E]=0,B[E]=W,N[E]=0;else{for(var H=A.state.lastIdealStyle[E],L=A.state.lastIdealVelocity[E],q=0;qk*10&&(D.accumulatedTime=0),D.accumulatedTime===0){D.animationID=null,D.startAnimationIfNecessary();return}for(var z=(D.accumulatedTime-Math.floor(D.accumulatedTime/k)*k)/k,B=Math.floor(D.accumulatedTime/k),N=[],j=[],F=[],E=[],W=0;Wa[g])return-1;if(p>l[g]&&ya[g])return 1;if(h>l[g]&&mS*10&&(P.accumulatedTime=0),P.accumulatedTime===0){P.animationID=null,P.startAnimationIfNecessary();return}for(var E=(P.accumulatedTime-Math.floor(P.accumulatedTime/S)*S)/S,W=Math.floor(P.accumulatedTime/S),H=A(P.props.willEnter,P.props.willLeave,P.props.didLeave,P.state.mergedPropsStyles,N,P.state.currentStyles,P.state.currentVelocities,P.state.lastIdealStyles,P.state.lastIdealVelocities),L=H[0],q=H[1],U=H[2],J=H[3],te=H[4],ee=0;ee-1}var Zne=Xne,Kne=Cp;function Jne(e,t){var r=this.__data__,i=Kne(r,e);return i<0?(++this.size,r.push([e,t])):r[i][1]=t,this}var Qne=Jne,ere=$ne,tre=Une,nre=Gne,rre=Zne,are=Qne;function as(e){var t=-1,r=e==null?0:e.length;for(this.clear();++t-1&&e%1==0&&e<=coe}var bb=foe,doe=Pp,poe=bb;function hoe(e){return e!=null&&poe(e.length)&&!doe(e)}var us=hoe,goe=us,moe=Wa;function voe(e){return moe(e)&&goe(e)}var CP=voe,bd={exports:{}};function yoe(){return!1}var boe=yoe;bd.exports;(function(e,t){var r=La,i=boe,s=t&&!t.nodeType&&t,o=s&&!0&&e&&!e.nodeType&&e,a=o&&o.exports===s,n=a?r.Buffer:void 0,l=n?n.isBuffer:void 0,c=l||i;e.exports=c})(bd,bd.exports);var $p=bd.exports,xoe=Ui,woe=vb,_oe=Wa,Toe="[object Object]",koe=Function.prototype,Soe=Object.prototype,OP=koe.toString,Moe=Soe.hasOwnProperty,Coe=OP.call(Object);function Ooe(e){if(!_oe(e)||xoe(e)!=Toe)return!1;var t=woe(e);if(t===null)return!0;var r=Moe.call(t,"constructor")&&t.constructor;return typeof r=="function"&&r instanceof r&&OP.call(r)==Coe}var xb=Ooe;const tc=ur(xb);var Poe=Ui,Aoe=bb,Doe=Wa,Eoe="[object Arguments]",Roe="[object Array]",Loe="[object Boolean]",Ioe="[object Date]",$oe="[object Error]",Foe="[object Function]",joe="[object Map]",Noe="[object Number]",Boe="[object Object]",zoe="[object RegExp]",qoe="[object Set]",Woe="[object String]",Uoe="[object WeakMap]",Hoe="[object ArrayBuffer]",Voe="[object DataView]",Goe="[object Float32Array]",Yoe="[object Float64Array]",Xoe="[object Int8Array]",Zoe="[object Int16Array]",Koe="[object Int32Array]",Joe="[object Uint8Array]",Qoe="[object Uint8ClampedArray]",ele="[object Uint16Array]",tle="[object Uint32Array]",Pr={};Pr[Goe]=Pr[Yoe]=Pr[Xoe]=Pr[Zoe]=Pr[Koe]=Pr[Joe]=Pr[Qoe]=Pr[ele]=Pr[tle]=!0;Pr[Eoe]=Pr[Roe]=Pr[Hoe]=Pr[Loe]=Pr[Voe]=Pr[Ioe]=Pr[$oe]=Pr[Foe]=Pr[joe]=Pr[Noe]=Pr[Boe]=Pr[zoe]=Pr[qoe]=Pr[Woe]=Pr[Uoe]=!1;function nle(e){return Doe(e)&&Aoe(e.length)&&!!Pr[Poe(e)]}var rle=nle;function ale(e){return function(t){return e(t)}}var cs=ale,xd={exports:{}};xd.exports;(function(e,t){var r=gP,i=t&&!t.nodeType&&t,s=i&&!0&&e&&!e.nodeType&&e,o=s&&s.exports===i,a=o&&r.process,n=function(){try{var l=s&&s.require&&s.require("util").types;return l||a&&a.binding&&a.binding("util")}catch{}}();e.exports=n})(xd,xd.exports);var Fp=xd.exports,ile=rle,ole=cs,Lk=Fp,Ik=Lk&&Lk.isTypedArray,lle=Ik?ole(Ik):ile,wb=lle;function sle(e,t){if(!(t==="constructor"&&typeof e[t]=="function")&&t!="__proto__")return e[t]}var PP=sle,ule=gb,cle=Sc,fle=Object.prototype,dle=fle.hasOwnProperty;function ple(e,t,r){var i=e[t];(!(dle.call(e,t)&&cle(i,r))||r===void 0&&!(t in e))&&ule(e,t,r)}var _b=ple,hle=_b,gle=gb;function mle(e,t,r,i){var s=!r;r||(r={});for(var o=-1,a=t.length;++o-1&&e%1==0&&e0){if(++t>=Sse)return arguments[0]}else t=0;return e.apply(void 0,arguments)}}var RP=Ose,Pse=kse,Ase=RP,Dse=Ase(Pse),kb=Dse,Ese=tl,Rse=EP,Lse=kb;function Ise(e,t){return Lse(Rse(e,t,Ese),e+"")}var jp=Ise,$se=Sc,Fse=us,jse=Mc,Nse=ti;function Bse(e,t,r){if(!Nse(r))return!1;var i=typeof t;return(i=="number"?Fse(r)&&jse(t,r.length):i=="string"&&t in r)?$se(r[t],e):!1}var Sb=Bse,zse=jp,qse=Sb;function Wse(e){return zse(function(t,r){var i=-1,s=r.length,o=s>1?r[s-1]:void 0,a=s>2?r[2]:void 0;for(o=e.length>3&&typeof o=="function"?(s--,o):void 0,a&&qse(r[0],r[1],a)&&(o=s<3?void 0:o,s=1),t=Object(t);++it?1:e>=t?0:NaN}function Ob(e){let t=e,r=e;e.length===1&&(t=(a,n)=>e(a)-n,r=ece(e));function i(a,n,l,c){for(l==null&&(l=0),c==null&&(c=a.length);l>>1;r(a[u],n)<0?l=u+1:c=u}return l}function s(a,n,l,c){for(l==null&&(l=0),c==null&&(c=a.length);l>>1;r(a[u],n)>0?c=u:l=u+1}return l}function o(a,n,l,c){l==null&&(l=0),c==null&&(c=a.length);const u=i(a,n,l,c-1);return u>l&&t(a[u-1],n)>-t(a[u],n)?u-1:u}return{left:i,center:o,right:s}}function ece(e){return(t,r)=>NP(e(t),r)}function tce(e){return e===null?NaN:+e}const nce=Ob(NP),rce=nce.right;Ob(tce).center;const ace=rce;var Pv=Math.sqrt(50),Av=Math.sqrt(10),Dv=Math.sqrt(2);function Ev(e,t,r){var i,s=-1,o,a,n;if(t=+t,e=+e,r=+r,e===t&&r>0)return[e];if((i=t0){let l=Math.round(e/n),c=Math.round(t/n);for(l*nt&&--c,a=new Array(o=c-l+1);++st&&--c,a=new Array(o=c-l+1);++s=0?(o>=Pv?10:o>=Av?5:o>=Dv?2:1)*Math.pow(10,s):-Math.pow(10,-s)/(o>=Pv?10:o>=Av?5:o>=Dv?2:1)}function Rv(e,t,r){var i=Math.abs(t-e)/Math.max(0,r),s=Math.pow(10,Math.floor(Math.log(i)/Math.LN10)),o=i/s;return o>=Pv?s*=10:o>=Av?s*=5:o>=Dv&&(s*=2),t>8&15|t>>4&240,t>>4&15|t&240,(t&15)<<4|t&15,1):r===8?kf(t>>24&255,t>>16&255,t>>8&255,(t&255)/255):r===4?kf(t>>12&15|t>>8&240,t>>8&15|t>>4&240,t>>4&15|t&240,((t&15)<<4|t&15)/255):null):(t=sce.exec(e))?new Na(t[1],t[2],t[3],1):(t=uce.exec(e))?new Na(t[1]*255/100,t[2]*255/100,t[3]*255/100,1):(t=cce.exec(e))?kf(t[1],t[2],t[3],t[4]):(t=fce.exec(e))?kf(t[1]*255/100,t[2]*255/100,t[3]*255/100,t[4]):(t=dce.exec(e))?Qk(t[1],t[2]/100,t[3]/100,1):(t=pce.exec(e))?Qk(t[1],t[2]/100,t[3]/100,t[4]):Gk.hasOwnProperty(e)?Zk(Gk[e]):e==="transparent"?new Na(NaN,NaN,NaN,0):null}function Zk(e){return new Na(e>>16&255,e>>8&255,e&255,1)}function kf(e,t,r,i){return i<=0&&(e=t=r=NaN),new Na(e,t,r,i)}function gce(e){return e instanceof Pc||(e=jo(e)),e?(e=e.rgb(),new Na(e.r,e.g,e.b,e.opacity)):new Na}function No(e,t,r,i){return arguments.length===1?gce(e):new Na(e,t,r,i??1)}function Na(e,t,r,i){this.r=+e,this.g=+t,this.b=+r,this.opacity=+i}Ab(Na,No,qP(Pc,{brighter:function(e){return e=e==null?wd:Math.pow(wd,e),new Na(this.r*e,this.g*e,this.b*e,this.opacity)},darker:function(e){return e=e==null?nc:Math.pow(nc,e),new Na(this.r*e,this.g*e,this.b*e,this.opacity)},rgb:function(){return this},displayable:function(){return-.5<=this.r&&this.r<255.5&&-.5<=this.g&&this.g<255.5&&-.5<=this.b&&this.b<255.5&&0<=this.opacity&&this.opacity<=1},hex:Kk,formatHex:Kk,formatRgb:Jk,toString:Jk}));function Kk(){return"#"+u0(this.r)+u0(this.g)+u0(this.b)}function Jk(){var e=this.opacity;return e=isNaN(e)?1:Math.max(0,Math.min(1,e)),(e===1?"rgb(":"rgba(")+Math.max(0,Math.min(255,Math.round(this.r)||0))+", "+Math.max(0,Math.min(255,Math.round(this.g)||0))+", "+Math.max(0,Math.min(255,Math.round(this.b)||0))+(e===1?")":", "+e+")")}function u0(e){return e=Math.max(0,Math.min(255,Math.round(e)||0)),(e<16?"0":"")+e.toString(16)}function Qk(e,t,r,i){return i<=0?e=t=r=NaN:r<=0||r>=1?e=t=NaN:t<=0&&(e=NaN),new wi(e,t,r,i)}function WP(e){if(e instanceof wi)return new wi(e.h,e.s,e.l,e.opacity);if(e instanceof Pc||(e=jo(e)),!e)return new wi;if(e instanceof wi)return e;e=e.rgb();var t=e.r/255,r=e.g/255,i=e.b/255,s=Math.min(t,r,i),o=Math.max(t,r,i),a=NaN,n=o-s,l=(o+s)/2;return n?(t===o?a=(r-i)/n+(r0&&l<1?0:a,new wi(a,n,l,e.opacity)}function mce(e,t,r,i){return arguments.length===1?WP(e):new wi(e,t,r,i??1)}function wi(e,t,r,i){this.h=+e,this.s=+t,this.l=+r,this.opacity=+i}Ab(wi,mce,qP(Pc,{brighter:function(e){return e=e==null?wd:Math.pow(wd,e),new wi(this.h,this.s,this.l*e,this.opacity)},darker:function(e){return e=e==null?nc:Math.pow(nc,e),new wi(this.h,this.s,this.l*e,this.opacity)},rgb:function(){var e=this.h%360+(this.h<0)*360,t=isNaN(e)||isNaN(this.s)?0:this.s,r=this.l,i=r+(r<.5?r:1-r)*t,s=2*r-i;return new Na(c0(e>=240?e-240:e+120,s,i),c0(e,s,i),c0(e<120?e+240:e-120,s,i),this.opacity)},displayable:function(){return(0<=this.s&&this.s<=1||isNaN(this.s))&&0<=this.l&&this.l<=1&&0<=this.opacity&&this.opacity<=1},formatHsl:function(){var e=this.opacity;return e=isNaN(e)?1:Math.max(0,Math.min(1,e)),(e===1?"hsl(":"hsla(")+(this.h||0)+", "+(this.s||0)*100+"%, "+(this.l||0)*100+"%"+(e===1?")":", "+e+")")}}));function c0(e,t,r){return(e<60?t+(r-t)*e/60:e<180?r:e<240?t+(r-t)*(240-e)/60:t)*255}const Db=e=>()=>e;function vce(e,t){return function(r){return e+r*t}}function yce(e,t,r){return e=Math.pow(e,r),t=Math.pow(t,r)-e,r=1/r,function(i){return Math.pow(e+i*t,r)}}function bce(e){return(e=+e)==1?UP:function(t,r){return r-t?yce(t,r,e):Db(isNaN(t)?r:t)}}function UP(e,t){var r=t-e;return r?vce(e,r):Db(isNaN(e)?t:e)}const eS=function e(t){var r=bce(t);function i(s,o){var a=r((s=No(s)).r,(o=No(o)).r),n=r(s.g,o.g),l=r(s.b,o.b),c=UP(s.opacity,o.opacity);return function(u){return s.r=a(u),s.g=n(u),s.b=l(u),s.opacity=c(u),s+""}}return i.gamma=e,i}(1);function xce(e,t){t||(t=[]);var r=e?Math.min(t.length,e.length):0,i=t.slice(),s;return function(o){for(s=0;sr&&(o=t.slice(r,o),n[a]?n[a]+=o:n[++a]=o),(i=i[0])===(s=s[0])?n[a]?n[a]+=s:n[++a]=s:(n[++a]=null,l.push({i:a,x:_d(i,s)})),r=f0.lastIndex;return rt&&(r=e,e=t,t=r),function(i){return Math.max(e,Math.min(t,i))}}function Ece(e,t,r){var i=e[0],s=e[1],o=t[0],a=t[1];return s2?Rce:Ece,l=c=null,f}function f(d){return d==null||isNaN(d=+d)?o:(l||(l=n(e.map(i),t,r)))(i(a(d)))}return f.invert=function(d){return a(s((c||(c=n(t,e.map(i),_d)))(d)))},f.domain=function(d){return arguments.length?(e=Array.from(d,Ace),u()):e.slice()},f.range=function(d){return arguments.length?(t=Array.from(d),u()):t.slice()},f.rangeRound=function(d){return t=Array.from(d),r=Oce,u()},f.clamp=function(d){return arguments.length?(a=d?!0:Tl,u()):a!==Tl},f.interpolate=function(d){return arguments.length?(r=d,u()):r},f.unknown=function(d){return arguments.length?(o=d,f):o},function(d,p){return i=d,s=p,u()}}function VP(){return HP()(Tl,Tl)}function Lce(e){return Math.abs(e=Math.round(e))>=1e21?e.toLocaleString("en").replace(/,/g,""):e.toString(10)}function Td(e,t){if((r=(e=t?e.toExponential(t-1):e.toExponential()).indexOf("e"))<0)return null;var r,i=e.slice(0,r);return[i.length>1?i[0]+i.slice(2):i,+e.slice(r+1)]}function ql(e){return e=Td(Math.abs(e)),e?e[1]:NaN}function Ice(e,t){return function(r,i){for(var s=r.length,o=[],a=0,n=e[0],l=0;s>0&&n>0&&(l+n+1>i&&(n=Math.max(1,i-l)),o.push(r.substring(s-=n,s+n)),!((l+=n+1)>i));)n=e[a=(a+1)%e.length];return o.reverse().join(t)}}function $ce(e){return function(t){return t.replace(/[0-9]/g,function(r){return e[+r]})}}var Fce=/^(?:(.)?([<>=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i;function kd(e){if(!(t=Fce.exec(e)))throw new Error("invalid format: "+e);var t;return new Lb({fill:t[1],align:t[2],sign:t[3],symbol:t[4],zero:t[5],width:t[6],comma:t[7],precision:t[8]&&t[8].slice(1),trim:t[9],type:t[10]})}kd.prototype=Lb.prototype;function Lb(e){this.fill=e.fill===void 0?" ":e.fill+"",this.align=e.align===void 0?">":e.align+"",this.sign=e.sign===void 0?"-":e.sign+"",this.symbol=e.symbol===void 0?"":e.symbol+"",this.zero=!!e.zero,this.width=e.width===void 0?void 0:+e.width,this.comma=!!e.comma,this.precision=e.precision===void 0?void 0:+e.precision,this.trim=!!e.trim,this.type=e.type===void 0?"":e.type+""}Lb.prototype.toString=function(){return this.fill+this.align+this.sign+this.symbol+(this.zero?"0":"")+(this.width===void 0?"":Math.max(1,this.width|0))+(this.comma?",":"")+(this.precision===void 0?"":"."+Math.max(0,this.precision|0))+(this.trim?"~":"")+this.type};function jce(e){e:for(var t=e.length,r=1,i=-1,s;r0&&(i=0);break}return i>0?e.slice(0,i)+e.slice(s+1):e}var GP;function Nce(e,t){var r=Td(e,t);if(!r)return e+"";var i=r[0],s=r[1],o=s-(GP=Math.max(-8,Math.min(8,Math.floor(s/3)))*3)+1,a=i.length;return o===a?i:o>a?i+new Array(o-a+1).join("0"):o>0?i.slice(0,o)+"."+i.slice(o):"0."+new Array(1-o).join("0")+Td(e,Math.max(0,t+o-1))[0]}function nS(e,t){var r=Td(e,t);if(!r)return e+"";var i=r[0],s=r[1];return s<0?"0."+new Array(-s).join("0")+i:i.length>s+1?i.slice(0,s+1)+"."+i.slice(s+1):i+new Array(s-i.length+2).join("0")}const rS={"%":function(e,t){return(e*100).toFixed(t)},b:function(e){return Math.round(e).toString(2)},c:function(e){return e+""},d:Lce,e:function(e,t){return e.toExponential(t)},f:function(e,t){return e.toFixed(t)},g:function(e,t){return e.toPrecision(t)},o:function(e){return Math.round(e).toString(8)},p:function(e,t){return nS(e*100,t)},r:nS,s:Nce,X:function(e){return Math.round(e).toString(16).toUpperCase()},x:function(e){return Math.round(e).toString(16)}};function aS(e){return e}var iS=Array.prototype.map,oS=["y","z","a","f","p","n","µ","m","","k","M","G","T","P","E","Z","Y"];function Bce(e){var t=e.grouping===void 0||e.thousands===void 0?aS:Ice(iS.call(e.grouping,Number),e.thousands+""),r=e.currency===void 0?"":e.currency[0]+"",i=e.currency===void 0?"":e.currency[1]+"",s=e.decimal===void 0?".":e.decimal+"",o=e.numerals===void 0?aS:$ce(iS.call(e.numerals,String)),a=e.percent===void 0?"%":e.percent+"",n=e.minus===void 0?"-":e.minus+"",l=e.nan===void 0?"NaN":e.nan+"";function c(f){f=kd(f);var d=f.fill,p=f.align,h=f.sign,m=f.symbol,y=f.zero,v=f.width,g=f.comma,b=f.precision,w=f.trim,_=f.type;_==="n"?(g=!0,_="g"):rS[_]||(b===void 0&&(b=12),w=!0,_="g"),(y||d==="0"&&p==="=")&&(y=!0,d="0",p="=");var x=m==="$"?r:m==="#"&&/[boxX]/.test(_)?"0"+_.toLowerCase():"",k=m==="$"?i:/[%p]/.test(_)?a:"",T=rS[_],S=/[defgprs%]/.test(_);b=b===void 0?6:/[gprs]/.test(_)?Math.max(1,Math.min(21,b)):Math.max(0,Math.min(20,b));function M(C){var A=x,D=k,O,R,$;if(_==="c")D=T(C)+D,C="";else{C=+C;var P=C<0||1/C<0;if(C=isNaN(C)?l:T(Math.abs(C),b),w&&(C=jce(C)),P&&+C==0&&h!=="+"&&(P=!1),A=(P?h==="("?h:n:h==="-"||h==="("?"":h)+A,D=(_==="s"?oS[8+GP/3]:"")+D+(P&&h==="("?")":""),S){for(O=-1,R=C.length;++O$||$>57){D=($===46?s+C.slice(O+1):C.slice(O))+D,C=C.slice(0,O);break}}}g&&!y&&(C=t(C,1/0));var z=A.length+C.length+D.length,B=z>1)+A+C+D+B.slice(z);break;default:C=B+A+C+D;break}return o(C)}return M.toString=function(){return f+""},M}function u(f,d){var p=c((f=kd(f),f.type="f",f)),h=Math.max(-8,Math.min(8,Math.floor(ql(d)/3)))*3,m=Math.pow(10,-h),y=oS[8+h/3];return function(v){return p(m*v)+y}}return{format:c,formatPrefix:u}}var Sf,ms,YP;zce({decimal:".",thousands:",",grouping:[3],currency:["$",""],minus:"-"});function zce(e){return Sf=Bce(e),ms=Sf.format,YP=Sf.formatPrefix,Sf}function qce(e){return Math.max(0,-ql(Math.abs(e)))}function Wce(e,t){return Math.max(0,Math.max(-8,Math.min(8,Math.floor(ql(t)/3)))*3-ql(Math.abs(e)))}function Uce(e,t){return e=Math.abs(e),t=Math.abs(t)-e,Math.max(0,ql(t)-ql(e))+1}function Hce(e,t,r,i){var s=Rv(e,t,r),o;switch(i=kd(i??",f"),i.type){case"s":{var a=Math.max(Math.abs(e),Math.abs(t));return i.precision==null&&!isNaN(o=Wce(s,a))&&(i.precision=o),YP(i,a)}case"":case"e":case"g":case"p":case"r":{i.precision==null&&!isNaN(o=Uce(s,Math.max(Math.abs(e),Math.abs(t))))&&(i.precision=o-(i.type==="e"));break}case"f":case"%":{i.precision==null&&!isNaN(o=qce(s))&&(i.precision=o-(i.type==="%")*2);break}}return ms(i)}function Vce(e){var t=e.domain;return e.ticks=function(r){var i=t();return Ev(i[0],i[i.length-1],r??10)},e.tickFormat=function(r,i){var s=t();return Hce(s[0],s[s.length-1],r??10,i)},e.nice=function(r){r==null&&(r=10);var i=t(),s=0,o=i.length-1,a=i[s],n=i[o],l,c,u=10;for(n0;){if(c=BP(a,n,r),c===l)return i[s]=a,i[o]=n,t(i);if(c>0)a=Math.floor(a/c)*c,n=Math.ceil(n/c)*c;else if(c<0)a=Math.ceil(a*c)/c,n=Math.floor(n*c)/c;else break;l=c}return e},e}function Bo(){var e=VP();return e.copy=function(){return Rb(e,Bo())},gs.apply(e,arguments),Vce(e)}function XP(e,t){e=e.slice();var r=0,i=e.length-1,s=e[r],o=e[i],a;return o0){for(;d<=p;++d)for(m=1,h=o(d);mu)break;g.push(y)}}else for(;d<=p;++d)for(m=i-1,h=o(d);m>=1;--m)if(y=h*m,!(yu)break;g.push(y)}g.length*20))return l;do l.push(c=new Date(+o)),t(o,n),e(o);while(c=a)for(;e(a),!o(a);)a.setTime(a-1)},function(a,n){if(a>=a)if(n<0)for(;++n<=0;)for(;t(a,-1),!o(a););else for(;--n>=0;)for(;t(a,1),!o(a););})},r&&(s.count=function(o,a){return d0.setTime(+o),p0.setTime(+a),e(d0),e(p0),Math.floor(r(d0,p0))},s.every=function(o){return o=Math.floor(o),!isFinite(o)||!(o>0)?null:o>1?s.filter(i?function(a){return i(a)%o===0}:function(a){return s.count(0,a)%o===0}):s}),s}var Sd=ua(function(){},function(e,t){e.setTime(+e+t)},function(e,t){return t-e});Sd.every=function(e){return e=Math.floor(e),!isFinite(e)||!(e>0)?null:e>1?ua(function(t){t.setTime(Math.floor(t/e)*e)},function(t,r){t.setTime(+t+r*e)},function(t,r){return(r-t)/e}):Sd};const Qce=Sd;Sd.range;const Ei=1e3,Ka=Ei*60,Ri=Ka*60,zo=Ri*24,Ib=zo*7,cS=zo*30,h0=zo*365;var KP=ua(function(e){e.setTime(e-e.getMilliseconds())},function(e,t){e.setTime(+e+t*Ei)},function(e,t){return(t-e)/Ei},function(e){return e.getUTCSeconds()});const kl=KP;KP.range;var JP=ua(function(e){e.setTime(e-e.getMilliseconds()-e.getSeconds()*Ei)},function(e,t){e.setTime(+e+t*Ka)},function(e,t){return(t-e)/Ka},function(e){return e.getMinutes()});const QP=JP;JP.range;var eA=ua(function(e){e.setTime(e-e.getMilliseconds()-e.getSeconds()*Ei-e.getMinutes()*Ka)},function(e,t){e.setTime(+e+t*Ri)},function(e,t){return(t-e)/Ri},function(e){return e.getHours()});const tA=eA;eA.range;var nA=ua(e=>e.setHours(0,0,0,0),(e,t)=>e.setDate(e.getDate()+t),(e,t)=>(t-e-(t.getTimezoneOffset()-e.getTimezoneOffset())*Ka)/zo,e=>e.getDate()-1);const rA=nA;nA.range;function nl(e){return ua(function(t){t.setDate(t.getDate()-(t.getDay()+7-e)%7),t.setHours(0,0,0,0)},function(t,r){t.setDate(t.getDate()+r*7)},function(t,r){return(r-t-(r.getTimezoneOffset()-t.getTimezoneOffset())*Ka)/Ib})}var $b=nl(0),efe=nl(1),tfe=nl(2),nfe=nl(3),rfe=nl(4),afe=nl(5),ife=nl(6);$b.range;efe.range;tfe.range;nfe.range;rfe.range;afe.range;ife.range;var aA=ua(function(e){e.setDate(1),e.setHours(0,0,0,0)},function(e,t){e.setMonth(e.getMonth()+t)},function(e,t){return t.getMonth()-e.getMonth()+(t.getFullYear()-e.getFullYear())*12},function(e){return e.getMonth()});const iA=aA;aA.range;var Fb=ua(function(e){e.setMonth(0,1),e.setHours(0,0,0,0)},function(e,t){e.setFullYear(e.getFullYear()+t)},function(e,t){return t.getFullYear()-e.getFullYear()},function(e){return e.getFullYear()});Fb.every=function(e){return!isFinite(e=Math.floor(e))||!(e>0)?null:ua(function(t){t.setFullYear(Math.floor(t.getFullYear()/e)*e),t.setMonth(0,1),t.setHours(0,0,0,0)},function(t,r){t.setFullYear(t.getFullYear()+r*e)})};const oA=Fb;Fb.range;var lA=ua(function(e){e.setUTCSeconds(0,0)},function(e,t){e.setTime(+e+t*Ka)},function(e,t){return(t-e)/Ka},function(e){return e.getUTCMinutes()});const sA=lA;lA.range;var uA=ua(function(e){e.setUTCMinutes(0,0,0)},function(e,t){e.setTime(+e+t*Ri)},function(e,t){return(t-e)/Ri},function(e){return e.getUTCHours()});const cA=uA;uA.range;var fA=ua(function(e){e.setUTCHours(0,0,0,0)},function(e,t){e.setUTCDate(e.getUTCDate()+t)},function(e,t){return(t-e)/zo},function(e){return e.getUTCDate()-1});const dA=fA;fA.range;function rl(e){return ua(function(t){t.setUTCDate(t.getUTCDate()-(t.getUTCDay()+7-e)%7),t.setUTCHours(0,0,0,0)},function(t,r){t.setUTCDate(t.getUTCDate()+r*7)},function(t,r){return(r-t)/Ib})}var jb=rl(0),ofe=rl(1),lfe=rl(2),sfe=rl(3),ufe=rl(4),cfe=rl(5),ffe=rl(6);jb.range;ofe.range;lfe.range;sfe.range;ufe.range;cfe.range;ffe.range;var pA=ua(function(e){e.setUTCDate(1),e.setUTCHours(0,0,0,0)},function(e,t){e.setUTCMonth(e.getUTCMonth()+t)},function(e,t){return t.getUTCMonth()-e.getUTCMonth()+(t.getUTCFullYear()-e.getUTCFullYear())*12},function(e){return e.getUTCMonth()});const hA=pA;pA.range;var Nb=ua(function(e){e.setUTCMonth(0,1),e.setUTCHours(0,0,0,0)},function(e,t){e.setUTCFullYear(e.getUTCFullYear()+t)},function(e,t){return t.getUTCFullYear()-e.getUTCFullYear()},function(e){return e.getUTCFullYear()});Nb.every=function(e){return!isFinite(e=Math.floor(e))||!(e>0)?null:ua(function(t){t.setUTCFullYear(Math.floor(t.getUTCFullYear()/e)*e),t.setUTCMonth(0,1),t.setUTCHours(0,0,0,0)},function(t,r){t.setUTCFullYear(t.getUTCFullYear()+r*e)})};const gA=Nb;Nb.range;function mA(e,t,r,i,s,o){const a=[[kl,1,Ei],[kl,5,5*Ei],[kl,15,15*Ei],[kl,30,30*Ei],[o,1,Ka],[o,5,5*Ka],[o,15,15*Ka],[o,30,30*Ka],[s,1,Ri],[s,3,3*Ri],[s,6,6*Ri],[s,12,12*Ri],[i,1,zo],[i,2,2*zo],[r,1,Ib],[t,1,cS],[t,3,3*cS],[e,1,h0]];function n(c,u,f){const d=uy).right(a,d);if(p===a.length)return e.every(Rv(c/h0,u/h0,f));if(p===0)return Qce.every(Math.max(Rv(c,u,f),1));const[h,m]=a[d/a[p-1][2]0))return l;do l.push(c=new Date(+o)),t(o,n),e(o);while(c=a)for(;e(a),!o(a);)a.setTime(a-1)},function(a,n){if(a>=a)if(n<0)for(;++n<=0;)for(;t(a,-1),!o(a););else for(;--n>=0;)for(;t(a,1),!o(a););})},r&&(s.count=function(o,a){return g0.setTime(+o),m0.setTime(+a),e(g0),e(m0),Math.floor(r(g0,m0))},s.every=function(o){return o=Math.floor(o),!isFinite(o)||!(o>0)?null:o>1?s.filter(i?function(a){return i(a)%o===0}:function(a){return s.count(0,a)%o===0}):s}),s}var Md=ca(function(){},function(e,t){e.setTime(+e+t)},function(e,t){return t-e});Md.every=function(e){return e=Math.floor(e),!isFinite(e)||!(e>0)?null:e>1?ca(function(t){t.setTime(Math.floor(t/e)*e)},function(t,r){t.setTime(+t+r*e)},function(t,r){return(r-t)/e}):Md};const fS=Md;Md.range;var Cd=1e3,qo=6e4,Od=36e5,vA=864e5,yA=6048e5,bA=ca(function(e){e.setTime(e-e.getMilliseconds())},function(e,t){e.setTime(+e+t*Cd)},function(e,t){return(t-e)/Cd},function(e){return e.getUTCSeconds()});const dS=bA;bA.range;var xA=ca(function(e){e.setTime(e-e.getMilliseconds()-e.getSeconds()*Cd)},function(e,t){e.setTime(+e+t*qo)},function(e,t){return(t-e)/qo},function(e){return e.getMinutes()});const mfe=xA;xA.range;var wA=ca(function(e){e.setTime(e-e.getMilliseconds()-e.getSeconds()*Cd-e.getMinutes()*qo)},function(e,t){e.setTime(+e+t*Od)},function(e,t){return(t-e)/Od},function(e){return e.getHours()});const vfe=wA;wA.range;var _A=ca(function(e){e.setHours(0,0,0,0)},function(e,t){e.setDate(e.getDate()+t)},function(e,t){return(t-e-(t.getTimezoneOffset()-e.getTimezoneOffset())*qo)/vA},function(e){return e.getDate()-1});const Bb=_A;_A.range;function al(e){return ca(function(t){t.setDate(t.getDate()-(t.getDay()+7-e)%7),t.setHours(0,0,0,0)},function(t,r){t.setDate(t.getDate()+r*7)},function(t,r){return(r-t-(r.getTimezoneOffset()-t.getTimezoneOffset())*qo)/yA})}var Pd=al(0),ac=al(1),TA=al(2),kA=al(3),Wo=al(4),SA=al(5),MA=al(6);Pd.range;ac.range;TA.range;kA.range;Wo.range;SA.range;MA.range;var CA=ca(function(e){e.setDate(1),e.setHours(0,0,0,0)},function(e,t){e.setMonth(e.getMonth()+t)},function(e,t){return t.getMonth()-e.getMonth()+(t.getFullYear()-e.getFullYear())*12},function(e){return e.getMonth()});const yfe=CA;CA.range;var zb=ca(function(e){e.setMonth(0,1),e.setHours(0,0,0,0)},function(e,t){e.setFullYear(e.getFullYear()+t)},function(e,t){return t.getFullYear()-e.getFullYear()},function(e){return e.getFullYear()});zb.every=function(e){return!isFinite(e=Math.floor(e))||!(e>0)?null:ca(function(t){t.setFullYear(Math.floor(t.getFullYear()/e)*e),t.setMonth(0,1),t.setHours(0,0,0,0)},function(t,r){t.setFullYear(t.getFullYear()+r*e)})};const Wl=zb;zb.range;var OA=ca(function(e){e.setUTCSeconds(0,0)},function(e,t){e.setTime(+e+t*qo)},function(e,t){return(t-e)/qo},function(e){return e.getUTCMinutes()});const bfe=OA;OA.range;var PA=ca(function(e){e.setUTCMinutes(0,0,0)},function(e,t){e.setTime(+e+t*Od)},function(e,t){return(t-e)/Od},function(e){return e.getUTCHours()});const xfe=PA;PA.range;var AA=ca(function(e){e.setUTCHours(0,0,0,0)},function(e,t){e.setUTCDate(e.getUTCDate()+t)},function(e,t){return(t-e)/vA},function(e){return e.getUTCDate()-1});const qb=AA;AA.range;function il(e){return ca(function(t){t.setUTCDate(t.getUTCDate()-(t.getUTCDay()+7-e)%7),t.setUTCHours(0,0,0,0)},function(t,r){t.setUTCDate(t.getUTCDate()+r*7)},function(t,r){return(r-t)/yA})}var Ad=il(0),ic=il(1),DA=il(2),EA=il(3),Uo=il(4),RA=il(5),LA=il(6);Ad.range;ic.range;DA.range;EA.range;Uo.range;RA.range;LA.range;var IA=ca(function(e){e.setUTCDate(1),e.setUTCHours(0,0,0,0)},function(e,t){e.setUTCMonth(e.getUTCMonth()+t)},function(e,t){return t.getUTCMonth()-e.getUTCMonth()+(t.getUTCFullYear()-e.getUTCFullYear())*12},function(e){return e.getUTCMonth()});const wfe=IA;IA.range;var Wb=ca(function(e){e.setUTCMonth(0,1),e.setUTCHours(0,0,0,0)},function(e,t){e.setUTCFullYear(e.getUTCFullYear()+t)},function(e,t){return t.getUTCFullYear()-e.getUTCFullYear()},function(e){return e.getUTCFullYear()});Wb.every=function(e){return!isFinite(e=Math.floor(e))||!(e>0)?null:ca(function(t){t.setUTCFullYear(Math.floor(t.getUTCFullYear()/e)*e),t.setUTCMonth(0,1),t.setUTCHours(0,0,0,0)},function(t,r){t.setUTCFullYear(t.getUTCFullYear()+r*e)})};const Ul=Wb;Wb.range;function v0(e){if(0<=e.y&&e.y<100){var t=new Date(-1,e.m,e.d,e.H,e.M,e.S,e.L);return t.setFullYear(e.y),t}return new Date(e.y,e.m,e.d,e.H,e.M,e.S,e.L)}function y0(e){if(0<=e.y&&e.y<100){var t=new Date(Date.UTC(-1,e.m,e.d,e.H,e.M,e.S,e.L));return t.setUTCFullYear(e.y),t}return new Date(Date.UTC(e.y,e.m,e.d,e.H,e.M,e.S,e.L))}function fu(e,t,r){return{y:e,m:t,d:r,H:0,M:0,S:0,L:0}}function _fe(e){var t=e.dateTime,r=e.date,i=e.time,s=e.periods,o=e.days,a=e.shortDays,n=e.months,l=e.shortMonths,c=du(s),u=pu(s),f=du(o),d=pu(o),p=du(a),h=pu(a),m=du(n),y=pu(n),v=du(l),g=pu(l),b={a:P,A:z,b:B,B:N,c:null,d:yS,e:yS,f:Hfe,g:tde,G:rde,H:qfe,I:Wfe,j:Ufe,L:$A,m:Vfe,M:Gfe,p:j,q:F,Q:wS,s:_S,S:Yfe,u:Xfe,U:Zfe,V:Kfe,w:Jfe,W:Qfe,x:null,X:null,y:ede,Y:nde,Z:ade,"%":xS},w={a:E,A:W,b:H,B:L,c:null,d:bS,e:bS,f:sde,g:yde,G:xde,H:ide,I:ode,j:lde,L:jA,m:ude,M:cde,p:q,q:U,Q:wS,s:_S,S:fde,u:dde,U:pde,V:hde,w:gde,W:mde,x:null,X:null,y:vde,Y:bde,Z:wde,"%":xS},_={a:M,A:C,b:A,B:D,c:O,d:mS,e:mS,f:jfe,g:gS,G:hS,H:vS,I:vS,j:Lfe,L:Ffe,m:Rfe,M:Ife,p:S,q:Efe,Q:Bfe,s:zfe,S:$fe,u:Cfe,U:Ofe,V:Pfe,w:Mfe,W:Afe,x:R,X:$,y:gS,Y:hS,Z:Dfe,"%":Nfe};b.x=x(r,b),b.X=x(i,b),b.c=x(t,b),w.x=x(r,w),w.X=x(i,w),w.c=x(t,w);function x(J,te){return function(ee){var K=[],Q=-1,G=0,X=J.length,Y,re,ie;for(ee instanceof Date||(ee=new Date(+ee));++Q53)return null;"w"in K||(K.w=1),"Z"in K?(G=y0(fu(K.y,0,1)),X=G.getUTCDay(),G=X>4||X===0?ic.ceil(G):ic(G),G=qb.offset(G,(K.V-1)*7),K.y=G.getUTCFullYear(),K.m=G.getUTCMonth(),K.d=G.getUTCDate()+(K.w+6)%7):(G=v0(fu(K.y,0,1)),X=G.getDay(),G=X>4||X===0?ac.ceil(G):ac(G),G=Bb.offset(G,(K.V-1)*7),K.y=G.getFullYear(),K.m=G.getMonth(),K.d=G.getDate()+(K.w+6)%7)}else("W"in K||"U"in K)&&("w"in K||(K.w="u"in K?K.u%7:"W"in K?1:0),X="Z"in K?y0(fu(K.y,0,1)).getUTCDay():v0(fu(K.y,0,1)).getDay(),K.m=0,K.d="W"in K?(K.w+6)%7+K.W*7-(X+5)%7:K.w+K.U*7-(X+6)%7);return"Z"in K?(K.H+=K.Z/100|0,K.M+=K.Z%100,y0(K)):v0(K)}}function T(J,te,ee,K){for(var Q=0,G=te.length,X=ee.length,Y,re;Q=X)return-1;if(Y=te.charCodeAt(Q++),Y===37){if(Y=te.charAt(Q++),re=_[Y in pS?te.charAt(Q++):Y],!re||(K=re(J,ee,K))<0)return-1}else if(Y!=ee.charCodeAt(K++))return-1}return K}function S(J,te,ee){var K=c.exec(te.slice(ee));return K?(J.p=u[K[0].toLowerCase()],ee+K[0].length):-1}function M(J,te,ee){var K=p.exec(te.slice(ee));return K?(J.w=h[K[0].toLowerCase()],ee+K[0].length):-1}function C(J,te,ee){var K=f.exec(te.slice(ee));return K?(J.w=d[K[0].toLowerCase()],ee+K[0].length):-1}function A(J,te,ee){var K=v.exec(te.slice(ee));return K?(J.m=g[K[0].toLowerCase()],ee+K[0].length):-1}function D(J,te,ee){var K=m.exec(te.slice(ee));return K?(J.m=y[K[0].toLowerCase()],ee+K[0].length):-1}function O(J,te,ee){return T(J,t,te,ee)}function R(J,te,ee){return T(J,r,te,ee)}function $(J,te,ee){return T(J,i,te,ee)}function P(J){return a[J.getDay()]}function z(J){return o[J.getDay()]}function B(J){return l[J.getMonth()]}function N(J){return n[J.getMonth()]}function j(J){return s[+(J.getHours()>=12)]}function F(J){return 1+~~(J.getMonth()/3)}function E(J){return a[J.getUTCDay()]}function W(J){return o[J.getUTCDay()]}function H(J){return l[J.getUTCMonth()]}function L(J){return n[J.getUTCMonth()]}function q(J){return s[+(J.getUTCHours()>=12)]}function U(J){return 1+~~(J.getUTCMonth()/3)}return{format:function(J){var te=x(J+="",b);return te.toString=function(){return J},te},parse:function(J){var te=k(J+="",!1);return te.toString=function(){return J},te},utcFormat:function(J){var te=x(J+="",w);return te.toString=function(){return J},te},utcParse:function(J){var te=k(J+="",!0);return te.toString=function(){return J},te}}}var pS={"-":"",_:" ",0:"0"},fa=/^\s*\d+/,Tfe=/^%/,kfe=/[\\^$*+?|[\]().{}]/g;function sr(e,t,r){var i=e<0?"-":"",s=(i?-e:e)+"",o=s.length;return i+(o68?1900:2e3),r+i[0].length):-1}function Dfe(e,t,r){var i=/^(Z)|([+-]\d\d)(?::?(\d\d))?/.exec(t.slice(r,r+6));return i?(e.Z=i[1]?0:-(i[2]+(i[3]||"00")),r+i[0].length):-1}function Efe(e,t,r){var i=fa.exec(t.slice(r,r+1));return i?(e.q=i[0]*3-3,r+i[0].length):-1}function Rfe(e,t,r){var i=fa.exec(t.slice(r,r+2));return i?(e.m=i[0]-1,r+i[0].length):-1}function mS(e,t,r){var i=fa.exec(t.slice(r,r+2));return i?(e.d=+i[0],r+i[0].length):-1}function Lfe(e,t,r){var i=fa.exec(t.slice(r,r+3));return i?(e.m=0,e.d=+i[0],r+i[0].length):-1}function vS(e,t,r){var i=fa.exec(t.slice(r,r+2));return i?(e.H=+i[0],r+i[0].length):-1}function Ife(e,t,r){var i=fa.exec(t.slice(r,r+2));return i?(e.M=+i[0],r+i[0].length):-1}function $fe(e,t,r){var i=fa.exec(t.slice(r,r+2));return i?(e.S=+i[0],r+i[0].length):-1}function Ffe(e,t,r){var i=fa.exec(t.slice(r,r+3));return i?(e.L=+i[0],r+i[0].length):-1}function jfe(e,t,r){var i=fa.exec(t.slice(r,r+6));return i?(e.L=Math.floor(i[0]/1e3),r+i[0].length):-1}function Nfe(e,t,r){var i=Tfe.exec(t.slice(r,r+1));return i?r+i[0].length:-1}function Bfe(e,t,r){var i=fa.exec(t.slice(r));return i?(e.Q=+i[0],r+i[0].length):-1}function zfe(e,t,r){var i=fa.exec(t.slice(r));return i?(e.s=+i[0],r+i[0].length):-1}function yS(e,t){return sr(e.getDate(),t,2)}function qfe(e,t){return sr(e.getHours(),t,2)}function Wfe(e,t){return sr(e.getHours()%12||12,t,2)}function Ufe(e,t){return sr(1+Bb.count(Wl(e),e),t,3)}function $A(e,t){return sr(e.getMilliseconds(),t,3)}function Hfe(e,t){return $A(e,t)+"000"}function Vfe(e,t){return sr(e.getMonth()+1,t,2)}function Gfe(e,t){return sr(e.getMinutes(),t,2)}function Yfe(e,t){return sr(e.getSeconds(),t,2)}function Xfe(e){var t=e.getDay();return t===0?7:t}function Zfe(e,t){return sr(Pd.count(Wl(e)-1,e),t,2)}function FA(e){var t=e.getDay();return t>=4||t===0?Wo(e):Wo.ceil(e)}function Kfe(e,t){return e=FA(e),sr(Wo.count(Wl(e),e)+(Wl(e).getDay()===4),t,2)}function Jfe(e){return e.getDay()}function Qfe(e,t){return sr(ac.count(Wl(e)-1,e),t,2)}function ede(e,t){return sr(e.getFullYear()%100,t,2)}function tde(e,t){return e=FA(e),sr(e.getFullYear()%100,t,2)}function nde(e,t){return sr(e.getFullYear()%1e4,t,4)}function rde(e,t){var r=e.getDay();return e=r>=4||r===0?Wo(e):Wo.ceil(e),sr(e.getFullYear()%1e4,t,4)}function ade(e){var t=e.getTimezoneOffset();return(t>0?"-":(t*=-1,"+"))+sr(t/60|0,"0",2)+sr(t%60,"0",2)}function bS(e,t){return sr(e.getUTCDate(),t,2)}function ide(e,t){return sr(e.getUTCHours(),t,2)}function ode(e,t){return sr(e.getUTCHours()%12||12,t,2)}function lde(e,t){return sr(1+qb.count(Ul(e),e),t,3)}function jA(e,t){return sr(e.getUTCMilliseconds(),t,3)}function sde(e,t){return jA(e,t)+"000"}function ude(e,t){return sr(e.getUTCMonth()+1,t,2)}function cde(e,t){return sr(e.getUTCMinutes(),t,2)}function fde(e,t){return sr(e.getUTCSeconds(),t,2)}function dde(e){var t=e.getUTCDay();return t===0?7:t}function pde(e,t){return sr(Ad.count(Ul(e)-1,e),t,2)}function NA(e){var t=e.getUTCDay();return t>=4||t===0?Uo(e):Uo.ceil(e)}function hde(e,t){return e=NA(e),sr(Uo.count(Ul(e),e)+(Ul(e).getUTCDay()===4),t,2)}function gde(e){return e.getUTCDay()}function mde(e,t){return sr(ic.count(Ul(e)-1,e),t,2)}function vde(e,t){return sr(e.getUTCFullYear()%100,t,2)}function yde(e,t){return e=NA(e),sr(e.getUTCFullYear()%100,t,2)}function bde(e,t){return sr(e.getUTCFullYear()%1e4,t,4)}function xde(e,t){var r=e.getUTCDay();return e=r>=4||r===0?Uo(e):Uo.ceil(e),sr(e.getUTCFullYear()%1e4,t,4)}function wde(){return"+0000"}function xS(){return"%"}function wS(e){return+e}function _S(e){return Math.floor(+e/1e3)}var vl,Bp,BA,zA,qA;_de({dateTime:"%x, %X",date:"%-m/%-d/%Y",time:"%-I:%M:%S %p",periods:["AM","PM"],days:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],shortDays:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],months:["January","February","March","April","May","June","July","August","September","October","November","December"],shortMonths:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"]});function _de(e){return vl=_fe(e),Bp=vl.format,BA=vl.parse,zA=vl.utcFormat,qA=vl.utcParse,vl}function Tde(e){return new Date(e)}function kde(e){return e instanceof Date?+e:+new Date(+e)}function Ub(e,t,r,i,s,o,a,n,l,c){var u=VP(),f=u.invert,d=u.domain,p=c(".%L"),h=c(":%S"),m=c("%I:%M"),y=c("%I %p"),v=c("%a %d"),g=c("%b %d"),b=c("%B"),w=c("%Y");function _(x){return(l(x)=1?(r=1,t-1):Math.floor(r*t),s=e[i],o=e[i+1],a=i>0?e[i-1]:2*s-o,n=ir&&(o=t.slice(r,o),n[a]?n[a]+=o:n[++a]=o),(i=i[0])===(s=s[0])?n[a]?n[a]+=s:n[++a]=s:(n[++a]=null,l.push({i:a,x:$v(i,s)})),r=b0.lastIndex;return r-1}var Xb=spe;function upe(e,t,r){for(var i=-1,s=e==null?0:e.length;++i=vpe&&(o=mpe,a=!1,t=new fpe(t));e:for(;++sSo)if(!(Math.abs(u*n-l*c)>So)||!s)this._+="L"+(this._x1=e)+","+(this._y1=t);else{var d=r-o,p=i-a,h=n*n+l*l,m=d*d+p*p,y=Math.sqrt(h),v=Math.sqrt(f),g=s*Math.tan((jv-Math.acos((h+f-m)/(2*y*v)))/2),b=g/v,w=g/y;Math.abs(b-1)>So&&(this._+="L"+(e+b*c)+","+(t+b*u)),this._+="A"+s+","+s+",0,0,"+ +(u*d>c*p)+","+(this._x1=e+w*n)+","+(this._y1=t+w*l)}},arc:function(e,t,r,i,s,o){e=+e,t=+t,r=+r,o=!!o;var a=r*Math.cos(i),n=r*Math.sin(i),l=e+a,c=t+n,u=1^o,f=o?i-s:s-i;if(r<0)throw new Error("negative radius: "+r);this._x1===null?this._+="M"+l+","+c:(Math.abs(this._x1-l)>So||Math.abs(this._y1-c)>So)&&(this._+="L"+l+","+c),r&&(f<0&&(f=f%Nv+Nv),f>Spe?this._+="A"+r+","+r+",0,1,"+u+","+(e-a)+","+(t-n)+"A"+r+","+r+",0,1,"+u+","+(this._x1=l)+","+(this._y1=c):f>So&&(this._+="A"+r+","+r+",0,"+ +(f>=jv)+","+u+","+(this._x1=e+r*Math.cos(s))+","+(this._y1=t+r*Math.sin(s))))},rect:function(e,t,r,i){this._+="M"+(this._x0=this._x1=+e)+","+(this._y0=this._y1=+t)+"h"+ +r+"v"+ +i+"h"+-r+"Z"},toString:function(){return this._}};function ma(e){return function(){return e}}var kS=1e-12;function e8(e){this._context=e}e8.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._point=0},lineEnd:function(){(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;default:this._context.lineTo(e,t);break}}};function Jb(e){return new e8(e)}function t8(e){return e[0]}function n8(e){return e[1]}function r8(){var e=t8,t=n8,r=ma(!0),i=null,s=Jb,o=null;function a(n){var l,c=n.length,u,f=!1,d;for(i==null&&(o=s(d=Kb())),l=0;l<=c;++l)!(l=d;--p)n.point(g[p],b[p]);n.lineEnd(),n.areaEnd()}y&&(g[f]=+e(m,f,u),b[f]=+r(m,f,u),n.point(t?+t(m,f,u):g[f],i?+i(m,f,u):b[f]))}if(v)return n=null,v+""||null}function c(){return r8().defined(s).curve(a).context(o)}return l.x=function(u){return arguments.length?(e=typeof u=="function"?u:ma(+u),t=null,l):e},l.x0=function(u){return arguments.length?(e=typeof u=="function"?u:ma(+u),l):e},l.x1=function(u){return arguments.length?(t=u==null?null:typeof u=="function"?u:ma(+u),l):t},l.y=function(u){return arguments.length?(r=typeof u=="function"?u:ma(+u),i=null,l):r},l.y0=function(u){return arguments.length?(r=typeof u=="function"?u:ma(+u),l):r},l.y1=function(u){return arguments.length?(i=u==null?null:typeof u=="function"?u:ma(+u),l):i},l.lineX0=l.lineY0=function(){return c().x(e).y(r)},l.lineY1=function(){return c().x(e).y(i)},l.lineX1=function(){return c().x(t).y(r)},l.defined=function(u){return arguments.length?(s=typeof u=="function"?u:ma(!!u),l):s},l.curve=function(u){return arguments.length?(a=u,o!=null&&(n=a(o)),l):a},l.context=function(u){return arguments.length?(u==null?o=n=null:n=a(o=u),l):o},l}var SS=Array.prototype.slice;function fo(){}function Ed(e,t,r){e._context.bezierCurveTo((2*e._x0+e._x1)/3,(2*e._y0+e._y1)/3,(e._x0+2*e._x1)/3,(e._y0+2*e._y1)/3,(e._x0+4*e._x1+t)/6,(e._y0+4*e._y1+r)/6)}function hh(e){this._context=e}hh.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=NaN,this._point=0},lineEnd:function(){switch(this._point){case 3:Ed(this,this._x1,this._y1);case 2:this._context.lineTo(this._x1,this._y1);break}(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;break;case 2:this._point=3,this._context.lineTo((5*this._x0+this._x1)/6,(5*this._y0+this._y1)/6);default:Ed(this,e,t);break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}};function Cpe(e){return new hh(e)}function a8(e){this._context=e}a8.prototype={areaStart:fo,areaEnd:fo,lineStart:function(){this._x0=this._x1=this._x2=this._x3=this._x4=this._y0=this._y1=this._y2=this._y3=this._y4=NaN,this._point=0},lineEnd:function(){switch(this._point){case 1:{this._context.moveTo(this._x2,this._y2),this._context.closePath();break}case 2:{this._context.moveTo((this._x2+2*this._x3)/3,(this._y2+2*this._y3)/3),this._context.lineTo((this._x3+2*this._x2)/3,(this._y3+2*this._y2)/3),this._context.closePath();break}case 3:{this.point(this._x2,this._y2),this.point(this._x3,this._y3),this.point(this._x4,this._y4);break}}},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._x2=e,this._y2=t;break;case 1:this._point=2,this._x3=e,this._y3=t;break;case 2:this._point=3,this._x4=e,this._y4=t,this._context.moveTo((this._x0+4*this._x1+e)/6,(this._y0+4*this._y1+t)/6);break;default:Ed(this,e,t);break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}};function Ope(e){return new a8(e)}function i8(e){this._context=e}i8.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=NaN,this._point=0},lineEnd:function(){(this._line||this._line!==0&&this._point===3)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1;break;case 1:this._point=2;break;case 2:this._point=3;var r=(this._x0+4*this._x1+e)/6,i=(this._y0+4*this._y1+t)/6;this._line?this._context.lineTo(r,i):this._context.moveTo(r,i);break;case 3:this._point=4;default:Ed(this,e,t);break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}};function Ppe(e){return new i8(e)}function o8(e,t){this._basis=new hh(e),this._beta=t}o8.prototype={lineStart:function(){this._x=[],this._y=[],this._basis.lineStart()},lineEnd:function(){var e=this._x,t=this._y,r=e.length-1;if(r>0)for(var i=e[0],s=t[0],o=e[r]-i,a=t[r]-s,n=-1,l;++n<=r;)l=n/r,this._basis.point(this._beta*e[n]+(1-this._beta)*(i+l*o),this._beta*t[n]+(1-this._beta)*(s+l*a));this._x=this._y=null,this._basis.lineEnd()},point:function(e,t){this._x.push(+e),this._y.push(+t)}};const Ape=function e(t){function r(i){return t===1?new hh(i):new o8(i,t)}return r.beta=function(i){return e(+i)},r}(.85);function Rd(e,t,r){e._context.bezierCurveTo(e._x1+e._k*(e._x2-e._x0),e._y1+e._k*(e._y2-e._y0),e._x2+e._k*(e._x1-t),e._y2+e._k*(e._y1-r),e._x2,e._y2)}function Qb(e,t){this._context=e,this._k=(1-t)/6}Qb.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._point=0},lineEnd:function(){switch(this._point){case 2:this._context.lineTo(this._x2,this._y2);break;case 3:Rd(this,this._x1,this._y1);break}(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2,this._x1=e,this._y1=t;break;case 2:this._point=3;default:Rd(this,e,t);break}this._x0=this._x1,this._x1=this._x2,this._x2=e,this._y0=this._y1,this._y1=this._y2,this._y2=t}};const Dpe=function e(t){function r(i){return new Qb(i,t)}return r.tension=function(i){return e(+i)},r}(0);function ex(e,t){this._context=e,this._k=(1-t)/6}ex.prototype={areaStart:fo,areaEnd:fo,lineStart:function(){this._x0=this._x1=this._x2=this._x3=this._x4=this._x5=this._y0=this._y1=this._y2=this._y3=this._y4=this._y5=NaN,this._point=0},lineEnd:function(){switch(this._point){case 1:{this._context.moveTo(this._x3,this._y3),this._context.closePath();break}case 2:{this._context.lineTo(this._x3,this._y3),this._context.closePath();break}case 3:{this.point(this._x3,this._y3),this.point(this._x4,this._y4),this.point(this._x5,this._y5);break}}},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._x3=e,this._y3=t;break;case 1:this._point=2,this._context.moveTo(this._x4=e,this._y4=t);break;case 2:this._point=3,this._x5=e,this._y5=t;break;default:Rd(this,e,t);break}this._x0=this._x1,this._x1=this._x2,this._x2=e,this._y0=this._y1,this._y1=this._y2,this._y2=t}};const Epe=function e(t){function r(i){return new ex(i,t)}return r.tension=function(i){return e(+i)},r}(0);function tx(e,t){this._context=e,this._k=(1-t)/6}tx.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._point=0},lineEnd:function(){(this._line||this._line!==0&&this._point===3)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1;break;case 1:this._point=2;break;case 2:this._point=3,this._line?this._context.lineTo(this._x2,this._y2):this._context.moveTo(this._x2,this._y2);break;case 3:this._point=4;default:Rd(this,e,t);break}this._x0=this._x1,this._x1=this._x2,this._x2=e,this._y0=this._y1,this._y1=this._y2,this._y2=t}};const Rpe=function e(t){function r(i){return new tx(i,t)}return r.tension=function(i){return e(+i)},r}(0);function nx(e,t,r){var i=e._x1,s=e._y1,o=e._x2,a=e._y2;if(e._l01_a>kS){var n=2*e._l01_2a+3*e._l01_a*e._l12_a+e._l12_2a,l=3*e._l01_a*(e._l01_a+e._l12_a);i=(i*n-e._x0*e._l12_2a+e._x2*e._l01_2a)/l,s=(s*n-e._y0*e._l12_2a+e._y2*e._l01_2a)/l}if(e._l23_a>kS){var c=2*e._l23_2a+3*e._l23_a*e._l12_a+e._l12_2a,u=3*e._l23_a*(e._l23_a+e._l12_a);o=(o*c+e._x1*e._l23_2a-t*e._l12_2a)/u,a=(a*c+e._y1*e._l23_2a-r*e._l12_2a)/u}e._context.bezierCurveTo(i,s,o,a,e._x2,e._y2)}function l8(e,t){this._context=e,this._alpha=t}l8.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._l01_a=this._l12_a=this._l23_a=this._l01_2a=this._l12_2a=this._l23_2a=this._point=0},lineEnd:function(){switch(this._point){case 2:this._context.lineTo(this._x2,this._y2);break;case 3:this.point(this._x2,this._y2);break}(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){if(e=+e,t=+t,this._point){var r=this._x2-e,i=this._y2-t;this._l23_a=Math.sqrt(this._l23_2a=Math.pow(r*r+i*i,this._alpha))}switch(this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;break;case 2:this._point=3;default:nx(this,e,t);break}this._l01_a=this._l12_a,this._l12_a=this._l23_a,this._l01_2a=this._l12_2a,this._l12_2a=this._l23_2a,this._x0=this._x1,this._x1=this._x2,this._x2=e,this._y0=this._y1,this._y1=this._y2,this._y2=t}};const Lpe=function e(t){function r(i){return t?new l8(i,t):new Qb(i,0)}return r.alpha=function(i){return e(+i)},r}(.5);function s8(e,t){this._context=e,this._alpha=t}s8.prototype={areaStart:fo,areaEnd:fo,lineStart:function(){this._x0=this._x1=this._x2=this._x3=this._x4=this._x5=this._y0=this._y1=this._y2=this._y3=this._y4=this._y5=NaN,this._l01_a=this._l12_a=this._l23_a=this._l01_2a=this._l12_2a=this._l23_2a=this._point=0},lineEnd:function(){switch(this._point){case 1:{this._context.moveTo(this._x3,this._y3),this._context.closePath();break}case 2:{this._context.lineTo(this._x3,this._y3),this._context.closePath();break}case 3:{this.point(this._x3,this._y3),this.point(this._x4,this._y4),this.point(this._x5,this._y5);break}}},point:function(e,t){if(e=+e,t=+t,this._point){var r=this._x2-e,i=this._y2-t;this._l23_a=Math.sqrt(this._l23_2a=Math.pow(r*r+i*i,this._alpha))}switch(this._point){case 0:this._point=1,this._x3=e,this._y3=t;break;case 1:this._point=2,this._context.moveTo(this._x4=e,this._y4=t);break;case 2:this._point=3,this._x5=e,this._y5=t;break;default:nx(this,e,t);break}this._l01_a=this._l12_a,this._l12_a=this._l23_a,this._l01_2a=this._l12_2a,this._l12_2a=this._l23_2a,this._x0=this._x1,this._x1=this._x2,this._x2=e,this._y0=this._y1,this._y1=this._y2,this._y2=t}};const Ipe=function e(t){function r(i){return t?new s8(i,t):new ex(i,0)}return r.alpha=function(i){return e(+i)},r}(.5);function u8(e,t){this._context=e,this._alpha=t}u8.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._l01_a=this._l12_a=this._l23_a=this._l01_2a=this._l12_2a=this._l23_2a=this._point=0},lineEnd:function(){(this._line||this._line!==0&&this._point===3)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){if(e=+e,t=+t,this._point){var r=this._x2-e,i=this._y2-t;this._l23_a=Math.sqrt(this._l23_2a=Math.pow(r*r+i*i,this._alpha))}switch(this._point){case 0:this._point=1;break;case 1:this._point=2;break;case 2:this._point=3,this._line?this._context.lineTo(this._x2,this._y2):this._context.moveTo(this._x2,this._y2);break;case 3:this._point=4;default:nx(this,e,t);break}this._l01_a=this._l12_a,this._l12_a=this._l23_a,this._l01_2a=this._l12_2a,this._l12_2a=this._l23_2a,this._x0=this._x1,this._x1=this._x2,this._x2=e,this._y0=this._y1,this._y1=this._y2,this._y2=t}};const $pe=function e(t){function r(i){return t?new u8(i,t):new tx(i,0)}return r.alpha=function(i){return e(+i)},r}(.5);function c8(e){this._context=e}c8.prototype={areaStart:fo,areaEnd:fo,lineStart:function(){this._point=0},lineEnd:function(){this._point&&this._context.closePath()},point:function(e,t){e=+e,t=+t,this._point?this._context.lineTo(e,t):(this._point=1,this._context.moveTo(e,t))}};function Fpe(e){return new c8(e)}function MS(e){return e<0?-1:1}function CS(e,t,r){var i=e._x1-e._x0,s=t-e._x1,o=(e._y1-e._y0)/(i||s<0&&-0),a=(r-e._y1)/(s||i<0&&-0),n=(o*s+a*i)/(i+s);return(MS(o)+MS(a))*Math.min(Math.abs(o),Math.abs(a),.5*Math.abs(n))||0}function OS(e,t){var r=e._x1-e._x0;return r?(3*(e._y1-e._y0)/r-t)/2:t}function x0(e,t,r){var i=e._x0,s=e._y0,o=e._x1,a=e._y1,n=(o-i)/3;e._context.bezierCurveTo(i+n,s+n*t,o-n,a-n*r,o,a)}function Ld(e){this._context=e}Ld.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=this._t0=NaN,this._point=0},lineEnd:function(){switch(this._point){case 2:this._context.lineTo(this._x1,this._y1);break;case 3:x0(this,this._t0,OS(this,this._t0));break}(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){var r=NaN;if(e=+e,t=+t,!(e===this._x1&&t===this._y1)){switch(this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;break;case 2:this._point=3,x0(this,OS(this,r=CS(this,e,t)),r);break;default:x0(this,this._t0,r=CS(this,e,t));break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t,this._t0=r}}};function f8(e){this._context=new d8(e)}(f8.prototype=Object.create(Ld.prototype)).point=function(e,t){Ld.prototype.point.call(this,t,e)};function d8(e){this._context=e}d8.prototype={moveTo:function(e,t){this._context.moveTo(t,e)},closePath:function(){this._context.closePath()},lineTo:function(e,t){this._context.lineTo(t,e)},bezierCurveTo:function(e,t,r,i,s,o){this._context.bezierCurveTo(t,e,i,r,o,s)}};function jpe(e){return new Ld(e)}function Npe(e){return new f8(e)}function p8(e){this._context=e}p8.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x=[],this._y=[]},lineEnd:function(){var e=this._x,t=this._y,r=e.length;if(r)if(this._line?this._context.lineTo(e[0],t[0]):this._context.moveTo(e[0],t[0]),r===2)this._context.lineTo(e[1],t[1]);else for(var i=PS(e),s=PS(t),o=0,a=1;a=0;--t)s[t]=(a[t]-s[t+1])/o[t];for(o[r-1]=(e[r]+s[r-1])/2,t=0;t=0&&(this._t=1-this._t,this._line=1-this._line)},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;default:{if(this._t<=0)this._context.lineTo(this._x,t),this._context.lineTo(e,t);else{var r=this._x*(1-this._t)+e*this._t;this._context.lineTo(r,this._y),this._context.lineTo(r,t)}break}}this._x=e,this._y=t}};function zpe(e){return new gh(e,.5)}function qpe(e){return new gh(e,0)}function Wpe(e){return new gh(e,1)}function Hl(e,t){if((a=e.length)>1)for(var r=1,i,s,o=e[t[0]],a,n=o.length;r=0;)r[t]=t;return r}function Upe(e,t){return e[t]}function h8(){var e=ma([]),t=Vl,r=Hl,i=Upe;function s(o){var a=e.apply(this,arguments),n,l=o.length,c=a.length,u=new Array(c),f;for(n=0;n0){for(var r,i,s=0,o=e[0].length,a;s0)for(var r,i=0,s,o,a,n,l,c=e[t[0]].length;i0?(s[0]=a,s[1]=a+=o):o<0?(s[1]=n,s[0]=n+=o):(s[0]=0,s[1]=o)}function Vpe(e,t){if((s=e.length)>0){for(var r=0,i=e[t[0]],s,o=i.length;r0)||!((o=(s=e[t[0]]).length)>0))){for(var r=0,i=1,s,o,a;io&&(o=s,r=t);return r}function g8(e){var t=e.map(m8);return Vl(e).sort(function(r,i){return t[r]-t[i]})}function m8(e){for(var t=0,r=-1,i=e.length,s;++rg&&(g=c),x=y*y*_,b=Math.max(g/x,x/v),b>w){y-=c;break}w=b}a.push(l={value:y,dice:p1?i:1)},r}(v8);function ehe(e,t,r,i,s){var o=e.children,a,n=o.length,l,c=new Array(n+1);for(c[0]=l=a=0;a=d-1){var g=o[f];g.x0=h,g.y0=m,g.x1=y,g.y1=v;return}for(var b=c[f],w=p/2+b,_=f+1,x=d-1;_>>1;c[k]v-m){var M=(h*S+y*T)/p;u(f,_,T,h,m,M,v),u(_,d,S,M,m,y,v)}else{var C=(m*S+v*T)/p;u(f,_,T,h,m,y,C),u(_,d,S,h,C,y,v)}}}function the(e,t,r,i,s){(e.depth&1?vh:mh)(e,t,r,i,s)}const nhe=function e(t){function r(i,s,o,a,n){if((l=i._squarify)&&l.ratio===t)for(var l,c,u,f,d=-1,p,h=l.length,m=i.value;++d1?i:1)},r}(v8);var hu={},gu={},AS;function rhe(){if(AS)return gu;AS=1,gu.__esModule=!0,gu.default=void 0;var e=function(i){if(typeof i=="string")return i;if(i)return i.displayName||i.name||"Component"},t=e;return gu.default=t,gu}var DS;function vs(){if(DS)return hu;DS=1;var e=yn;hu.__esModule=!0,hu.default=void 0;var t=e(rhe()),r=function(o,a){return a+"("+(0,t.default)(o)+")"},i=r;return hu.default=i,hu}var Hi={},mu={},ES;function b8(){if(ES)return mu;ES=1,mu.__esModule=!0,mu.default=void 0;var e=function(i,s){return function(o){return o[i]=s,o}},t=e;return mu.default=t,mu}var ahe=yn;Hi.__esModule=!0;var ax=Hi.default=void 0,ihe=ahe(b8()),ohe=function(t){return(0,ihe.default)("displayName",t)},lhe=ohe;ax=Hi.default=lhe;var vu={},RS;function she(){if(RS)return vu;RS=1;var e=yn;vu.__esModule=!0,vu.default=void 0;var t=$e;e(Hi),e(vs());var r=function(o){return function(a){var n=(0,t.createFactory)(a),l=function(u){return n(o(u))};return l}},i=r;return vu.default=i,vu}var yh=yn;yh(_r());yh(vs());yh(Hi);yh(she());function uhe(e,t){for(var r=-1,i=e==null?0:e.length;++rn))return!1;var c=o.get(e),u=o.get(t);if(c&&u)return c==t&&u==e;var f=-1,d=!0,p=r&ghe?new fhe:void 0;for(o.set(e,t),o.set(t,e);++f1?"& ":"")+t[i],t=t.join(r>2?", ":" "),e.replace(x0e,`{ +/* [wrapped with `+t+`] */ +`)}var _0e=w0e;function T0e(e,t){for(var r=-1,i=e==null?0:e.length;++r1&&g.reverse(),u&&l0&&r(n)?t>1?J8(n,t-1,r,i,s):Jye(s,n):i||(s[s.length]=n)}return s}var px=J8,e1e=px;function t1e(e){var t=e==null?0:e.length;return t?e1e(e,1):[]}var n1e=t1e,r1e=n1e,a1e=EP,i1e=kb;function o1e(e){return i1e(a1e(e,void 0,r1e),e+"")}var Q8=o1e,l1e=Gye,s1e=Q8,u1e=s1e(function(e,t){return e==null?{}:l1e(e,t)}),c1e=u1e;const f1e=ur(c1e);var Ro=function(){};function Ho(e){for(var t=1;t2&&arguments[2]!==void 0?arguments[2]:{};return $e.useMemo(function(){var s=j1e({},Gv,i);return{margin:s,innerWidth:t-s.left-s.right,innerHeight:r-s.top-s.bottom,outerWidth:t,outerHeight:r}},[t,r,i.top,i.right,i.bottom,i.left])},B1e=function(t){return $e.useMemo(function(){return n7(t7,t)},[t])},z1e=function(t){return typeof t=="function"?t:typeof t=="string"?t.indexOf("time:")===0?Bp(t.slice("5")):ms(t):function(r){return r}},oc=function(t){return $e.useMemo(function(){return z1e(t)},[t])},gx=$e.createContext(),q1e={},i7=function(t){var r=t.theme,i=r===void 0?q1e:r,s=t.children,o=B1e(i);return tt.createElement(gx.Provider,{value:o},s)};i7.propTypes={children:oe.node.isRequired,theme:oe.object};var Yr=function(){return $e.useContext(gx)};function jf(e){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?jf=function(r){return typeof r}:jf=function(r){return r&&typeof Symbol=="function"&&r.constructor===Symbol&&r!==Symbol.prototype?"symbol":typeof r},jf(e)}function Yv(){return Yv=Object.assign||function(e){for(var t=1;t=0)&&Object.prototype.propertyIsEnumerable.call(e,i)&&(r[i]=e[i])}return r}function H1e(e,t){if(e==null)return{};var r={},i=Object.keys(e),s,o;for(o=0;o=0)&&(r[s]=e[s]);return r}function V1e(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function SM(e,t){for(var r=0;r"u"||l[c].value!==this.newInters[c].value)&&(this.newInters[c]=l[c],this.stepValues[c]=this.currentStepValues[c]+1,this.stepInterpolators[c]=this.newInters[c].interpolator(this.oldValues[c],this.newInters[c].value)),l[c]=Dn(this.stepValues[c],this.newInters[c].config));return tt.createElement(Fi,Yv({},n,{style:l}),function(u){var f={};for(var d in u)if(i.stepValues[d]){i.currentStepValues[d]=u[d];var p=i.currentStepValues[d]-i.stepValues[d]+1;i.oldValues[d]=f[d]=i.stepInterpolators[d](p)}return a(W1e({},u,f))})}}]),t}($e.PureComponent);Oo(Sh,"propTypes",{children:oe.func.isRequired,style:oe.func.isRequired});var o7=$e.createContext(),Mh=function(t){var r=t.children,i=t.animate,s=t.stiffness,o=t.damping,a=$e.useMemo(function(){return{animate:i,springConfig:{stiffness:s,damping:o}}},[i,s,o]);return tt.createElement(o7.Provider,{value:a},r)};Mh.propTypes={children:oe.node.isRequired,animate:oe.bool.isRequired,stiffness:oe.number.isRequired,damping:oe.number.isRequired};Mh.defaultProps={animate:!0,stiffness:90,damping:15};var Ia=function(){return $e.useContext(o7)};function K1e(e){for(var t=1;t0&&a>0;return tt.createElement(Ku,{bounds:!0,onResize:function(c){i.setState({dimensions:c.bounds})}},function(l){var c=l.measureRef;return tt.createElement("div",{ref:c,style:{width:"100%",height:"100%"}},n&&i.props.children({width:o,height:a}))})}}]),t}($e.Component);s7(Oh,"propTypes",{children:oe.func.isRequired});var u7=function(t){var r=t.id,i=t.colors;return tt.createElement("linearGradient",{id:r,x1:0,x2:0,y1:0,y2:1},i.map(function(s){var o=s.offset,a=s.color,n=s.opacity;return tt.createElement("stop",{key:o,offset:"".concat(o,"%"),stopColor:a,stopOpacity:n!==void 0?n:1})}))};u7.propTypes={id:oe.string.isRequired,colors:oe.arrayOf(oe.shape({offset:oe.number.isRequired,color:oe.string.isRequired})).isRequired};var c7={linearGradient:u7},Ph=$e.memo(function(e){var t=e.id,r=e.background,i=e.color,s=e.size,o=e.padding,a=e.stagger,n=s+o,l=s/2,c=o/2;return a===!0&&(n=s*2+o*2),tt.createElement("pattern",{id:t,width:n,height:n,patternUnits:"userSpaceOnUse"},tt.createElement("rect",{width:n,height:n,fill:r}),tt.createElement("circle",{cx:c+l,cy:c+l,r:l,fill:i}),a&&tt.createElement("circle",{cx:o*1.5+s+l,cy:o*1.5+s+l,r:l,fill:i}))});Ph.displayName="PatternDots";Ph.propTypes={id:oe.string.isRequired,color:oe.string.isRequired,background:oe.string.isRequired,size:oe.number.isRequired,padding:oe.number.isRequired,stagger:oe.bool.isRequired};Ph.defaultProps={color:"#000000",background:"#ffffff",size:4,padding:4,stagger:!1};var Qv=function(t){return t*Math.PI/180},ube=function(t){return 180*t/Math.PI},cbe=function(t,r){return{x:Math.cos(t)*r,y:Math.sin(t)*r}},fbe=function(t){var r=t%360;return r<0&&(r+=360),r},dbe={svg:{align:{left:"start",center:"middle",right:"end"},baseline:{top:"text-before-edge",center:"central",bottom:"alphabetic"}},canvas:{align:{left:"left",center:"center",right:"right"},baseline:{top:"top",center:"middle",bottom:"bottom"}}},Ah=$e.memo(function(e){var t=e.id,r=e.spacing,i=e.rotation,s=e.background,o=e.color,a=e.lineWidth,n=Math.round(i)%360,l=Math.abs(r);n>180?n=n-360:n>90?n=n-180:n<-180?n=n+360:n<-90&&(n=n+180);var c=l,u=l,f;return n===0?f=` + M 0 0 L `.concat(c,` 0 + M 0 `).concat(u," L ").concat(c," ").concat(u,` + `):n===90?f=` + M 0 0 L 0 `.concat(u,` + M `).concat(c," 0 L ").concat(c," ").concat(u,` + `):(c=Math.abs(l/Math.sin(Qv(n))),u=l/Math.sin(Qv(90-n)),n>0?f=` + M 0 `.concat(-u," L ").concat(c*2," ").concat(u,` + M `).concat(-c," ").concat(-u," L ").concat(c," ").concat(u,` + M `).concat(-c," 0 L ").concat(c," ").concat(u*2,` + `):f=` + M `.concat(-c," ").concat(u," L ").concat(c," ").concat(-u,` + M `).concat(-c," ").concat(u*2," L ").concat(c*2," ").concat(-u,` + M 0 `).concat(u*2," L ").concat(c*2,` 0 + `)),tt.createElement("pattern",{id:t,width:c,height:u,patternUnits:"userSpaceOnUse"},tt.createElement("rect",{width:c,height:u,fill:s,stroke:"rgba(255, 0, 0, 0.1)",strokeWidth:0}),tt.createElement("path",{d:f,strokeWidth:a,stroke:o,strokeLinecap:"square"}))});Ah.displayName="PatternLines";Ah.propTypes={id:oe.string.isRequired,spacing:oe.number.isRequired,rotation:oe.number.isRequired,background:oe.string.isRequired,color:oe.string.isRequired,lineWidth:oe.number.isRequired};Ah.defaultProps={spacing:5,rotation:0,color:"#000000",background:"#ffffff",lineWidth:2};var Dh=$e.memo(function(e){var t=e.id,r=e.background,i=e.color,s=e.size,o=e.padding,a=e.stagger,n=s+o,l=o/2;return a===!0&&(n=s*2+o*2),tt.createElement("pattern",{id:t,width:n,height:n,patternUnits:"userSpaceOnUse"},tt.createElement("rect",{width:n,height:n,fill:r}),tt.createElement("rect",{x:l,y:l,width:s,height:s,fill:i}),a&&tt.createElement("rect",{x:o*1.5+s,y:o*1.5+s,width:s,height:s,fill:i}))});Dh.displayName="PatternSquares";Dh.propTypes={id:oe.string.isRequired,color:oe.string.isRequired,background:oe.string.isRequired,size:oe.number.isRequired,padding:oe.number.isRequired,stagger:oe.bool.isRequired};Dh.defaultProps={color:"#000000",background:"#ffffff",size:4,padding:4,stagger:!1};var f7={patternDots:Ph,patternLines:Ah,patternSquares:Dh};function pbe(e,t){if(e==null)return{};var r=hbe(e,t),i,s;if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(s=0;s=0)&&Object.prototype.propertyIsEnumerable.call(e,i)&&(r[i]=e[i])}return r}function hbe(e,t){if(e==null)return{};var r={},i=Object.keys(e),s,o;for(o=0;o=0)&&(r[s]=e[s]);return r}function d7(e){for(var t=1;t0&&arguments[0]!==void 0?arguments[0]:{},t=e.srcKey,r=t===void 0?"theme":t,i=e.destKey,s=i===void 0?"theme":i;return ol(xh(OM({},r,oe.object)),xa([r],function(o){return OM({},s,n7(t7,o[r]))}))};function Bf(e){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?Bf=function(r){return typeof r}:Bf=function(r){return r&&typeof Symbol=="function"&&r.constructor===Symbol&&r!==Symbol.prototype?"symbol":typeof r},Bf(e)}function Tbe(e,t){if(e==null)return{};var r=kbe(e,t),i,s;if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(s=0;s=0)&&Object.prototype.propertyIsEnumerable.call(e,i)&&(r[i]=e[i])}return r}function kbe(e,t){if(e==null)return{};var r={},i=Object.keys(e),s,o;for(o=0;o=0)&&(r[s]=e[s]);return r}function Sbe(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function PM(e,t){for(var r=0;r3&&arguments[3]!==void 0?arguments[3]:{},o=s.dataKey,a=s.colorKey,n=a===void 0?"color":a,l=s.targetKey,c=l===void 0?"fill":l,u=[],f={};return t.length&&r.length&&(u=Ebe(t),r.forEach(function(d){for(var p=function(v){var g=i[v],b=g.id,w=g.match;if(jbe(w,d,o)){var _=t.find(function(O){var R=O.id;return R===b});if(_){if(Fbe.includes(_.type))if(_.background==="inherit"||_.color==="inherit"){var x=lo(d,n),k=_.background,T=_.color,S=b;_.background==="inherit"&&(S="".concat(S,".bg.").concat(x),k=x),_.color==="inherit"&&(S="".concat(S,".fg.").concat(x),T=x),Do(d,c,"url(#".concat(S,")")),f[S]||(u.push(P0({},_,{id:S,background:k,color:T})),f[S]=1)}else Do(d,c,"url(#".concat(b,")"));else if($be.includes(_.type)){var M=_.colors.map(function(O){var R=O.color;return R});if(M.includes("inherit")){var C=lo(d,n),A=b,D=P0({},_,{colors:_.colors.map(function(O,R){return O.color!=="inherit"?O:(A="".concat(A,".").concat(R,".").concat(C),P0({},O,{color:O.color==="inherit"?C:O.color}))})});D.id=A,Do(d,c,"url(#".concat(A,")")),f[A]||(u.push(D),f[A]=1)}else Do(d,c,"url(#".concat(b,")"))}}return"break"}},h=0;h-1}function hxe(e,t){var r=this.__data__,i=Rh(r,e);return i<0?r.push([e,t]):r[i][1]=t,this}xs.prototype.clear=cxe;xs.prototype.delete=fxe;xs.prototype.get=dxe;xs.prototype.has=pxe;xs.prototype.set=hxe;function sl(e){var t=-1,r=e?e.length:0;for(this.clear();++t11))throw new Error("Invalid size '".concat(t.size,"' for diverging color scheme '").concat(t.scheme,"', must be between 3~11"));var l=Eo(zf[t.scheme][t.size||11]),c=function(p){return l(i(p))};return c.scale=l,c}if(e2e(t.scheme)){if(t.size!==void 0&&(t.size<3||t.size>9))throw new Error("Invalid size '".concat(t.size,"' for sequential color scheme '").concat(t.scheme,"', must be between 3~9"));var u=Eo(zf[t.scheme][t.size||9]),f=function(p){return u(i(p))};return f.scale=u,f}}throw new Error("Invalid colors, when using an object, you should either pass a 'datum' or a 'scheme' property")}return function(){return t}},$7=function(t,r){return $e.useMemo(function(){return I7(t,r)},[t,r])};function n2e(e,t){return i2e(e)||a2e(e,t)||r2e()}function r2e(){throw new TypeError("Invalid attempt to destructure non-iterable instance")}function a2e(e,t){if(Symbol.iterator in Object(e)||Object.prototype.toString.call(e)==="[object Arguments]"){var r=[],i=!0,s=!1,o=void 0;try{for(var a=e[Symbol.iterator](),n;!(i=(n=a.next()).done)&&(r.push(n.value),!(t&&r.length===t));i=!0);}catch(l){s=!0,o=l}finally{try{!i&&a.return!=null&&a.return()}finally{if(s)throw o}}return r}}function i2e(e){if(Array.isArray(e))return e}var qf=function(t,r){if(typeof t=="function")return function(d){return t(d)};if(D7(t)){if(t.theme!==void 0){if(r===void 0)throw new Error("Unable to use color from theme as no theme was provided");var i=jd(r,t.theme);if(i===void 0)throw new Error("Color from theme is undefined at path: '".concat(t.theme,"'"));return function(){return i}}if(t.from!==void 0){var s=function(p){return jd(p,t.from)};if(Array.isArray(t.modifiers)){var o=[],a=!0,n=!1,l=void 0;try{for(var c=function(){var p=f.value,h=n2e(p,2),m=h[0],y=h[1];if(m==="brighter")o.push(function(v){return v.brighter(y)});else if(m==="darker")o.push(function(v){return v.darker(y)});else if(m==="opacity")o.push(function(v){return v.opacity=y,v});else throw new Error("Invalid color modifier: '".concat(m,"', must be one of: 'brighter', 'darker', 'opacity'"))},u=t.modifiers[Symbol.iterator](),f;!(a=(f=u.next()).done);a=!0)c()}catch(d){n=!0,l=d}finally{try{!a&&u.return!=null&&u.return()}finally{if(n)throw l}}return o.length===0?s:function(d){return o.reduce(function(p,h){return h(p)},No(s(d))).toString()}}return s}throw new Error("Invalid color spec, you should either specify 'theme' or 'from' when using a config object")}return function(){return t}},Nd=function(t,r){return $e.useMemo(function(){return qf(t,r)},[t,r])},kx=oe.oneOfType([oe.func,oe.arrayOf(oe.string),oe.shape({scheme:oe.oneOf(t2e).isRequired,size:oe.number}),oe.shape({datum:oe.string.isRequired}),oe.string]),o2e=oe.oneOfType([oe.func,oe.string]),D0=oe.oneOfType([oe.string,oe.func,oe.shape({theme:oe.string.isRequired}),oe.shape({from:oe.string.isRequired,modifiers:oe.arrayOf(oe.array)})]),l2e=Ui,s2e=Wa,u2e="[object Number]";function c2e(e){return typeof e=="number"||s2e(e)&&l2e(e)==u2e}var f2e=c2e;const Ih=ur(f2e);function d2e(e){for(var t=1;t0?(v=d.align.right,g=d.baseline.center):(s==="after"&&l>0||s==="before"&&l<0)&&(v=d.align.left,g=d.baseline.center)):(y=function(_){return{x:0,y:p(_)}},h.lineX=a*(s==="after"?1:-1),m.textX=(a+n)*(s==="after"?1:-1),s==="after"?v=d.align.left:v=d.align.right);var b=f.map(function(w){return d2e({key:w,value:w},y(w),h,m)});return{ticks:b,textAlign:v,textBaseline:g}},z7=function(t,r){if(!t||typeof t=="function")return t;if(r.type==="time"){var i=Bp(t);return function(s){return i(new Date(s))}}return ms(t)},ay=function(t){var r=t.width,i=t.height,s=t.scale,o=t.axis,a=t.values,n=Array.isArray(a)?a:void 0,l=Ih(a)?a:void 0,c=n||N7(s,l),u=s.bandwidth?F7(s):s,f;return o==="x"?f=c.map(function(d){return{key:"".concat(d),x1:u(d),x2:u(d),y1:0,y2:i}}):o==="y"&&(f=c.map(function(d){return{key:"".concat(d),x1:0,x2:r,y1:u(d),y2:u(d)}})),f},q7={ticksPosition:oe.oneOf(["before","after"]),tickValues:oe.oneOfType([oe.number,oe.arrayOf(oe.oneOfType([oe.number,oe.string,oe.instanceOf(Date)])),oe.string]),tickSize:oe.number,tickPadding:oe.number,tickRotation:oe.number,format:oe.oneOfType([oe.func,oe.string]),renderTick:oe.func,legend:oe.node,legendPosition:oe.oneOf(["start","middle","end"]),legendOffset:oe.number},wa=oe.shape(q7);function iy(){return iy=Object.assign||function(e){for(var t=1;t0&&(t.lineWidth=T.axis.domain.line.strokeWidth,t.lineCap="square",t.strokeStyle=T.axis.domain.line.stroke,t.beginPath(),t.moveTo(0,0),t.lineTo(i==="x"?c:0,i==="x"?0:c),t.stroke()),M.forEach(function(P){T.axis.ticks.line.strokeWidth>0&&(t.lineWidth=T.axis.ticks.line.strokeWidth,t.lineCap="square",t.strokeStyle=T.axis.ticks.line.stroke,t.beginPath(),t.moveTo(P.x,P.y),t.lineTo(P.x+P.lineX,P.y+P.lineY),t.stroke());var z=g!==void 0?g(P.value):P.value;t.save(),t.translate(P.x+P.textX,P.y+P.textY),t.rotate($M(v)),t.fillStyle=T.axis.ticks.text.fill,t.fillText(z,0,0),t.restore()}),b!==void 0){var D=0,O=0,R=0,$;i==="y"?(R=-90,D=k,_==="start"?($="start",O=c):_==="middle"?($="center",O=c/2):_==="end"&&($="end")):(O=k,_==="start"?$="start":_==="middle"?($="center",D=c/2):_==="end"&&($="end",D=c)),t.translate(D,O),t.rotate($M(R)),t.font="".concat(T.axis.legend.text.fontWeight?"".concat(T.axis.legend.text.fontWeight," "):"").concat(T.axis.legend.text.fontSize,"px ").concat(T.axis.legend.text.fontFamily),t.fillStyle=T.axis.legend.text.fill,t.textAlign=$,t.textBaseline="middle",t.fillText(b,0,0)}t.restore()},M2e=["top","right","bottom","left"],Ax=function(t,r){var i=r.xScale,s=r.yScale,o=r.width,a=r.height,n=r.top,l=r.right,c=r.bottom,u=r.left,f=r.theme,d={top:n,right:l,bottom:c,left:u};M2e.forEach(function(p){var h=d[p];if(!h)return null;var m=p==="top"||p==="bottom",y=p==="top"||p==="left"?"before":"after",v=m?i:s,g=z7(h.format,v);S2e(t,T2e({},h,{axis:m?"x":"y",x:p==="right"?o:0,y:p==="bottom"?a:0,scale:v,format:g,length:m?o:a,ticksPosition:y,theme:f}))})},Gl=function(t,r){var i=r.width,s=r.height,o=r.scale,a=r.axis,n=r.values,l=ay({width:i,height:s,scale:o,axis:a,values:n});l.forEach(function(c){t.beginPath(),t.moveTo(c.x1,c.y1),t.lineTo(c.x2,c.y2),t.stroke()})},$h="row",Fh="column",Dx="top",Ex="top-right",Rx="right",Lx="bottom-right",Ix="bottom",$x="bottom-left",Fx="left",V7="top-left",jx="center",jh="left-to-right",Nh="right-to-left",Bh="top-to-bottom",zh="bottom-to-top";function C2e(e){for(var t=1;t0){var E=w.filter(function(H){var L=H.on;return L==="hover"}),W=E.reduce(function(H,L){return Gf({},H,L.style)},{});T(W)}g!==void 0&&g(a,F)},[g,a,w]),A=$e.useCallback(function(){if(w.length>0){var F=w.filter(function(W){var H=W.on;return H!=="hover"}),E=F.reduce(function(W,H){return Gf({},W,H.style)},{});T(E)}b!==void 0&&b(a,event)},[b,a,w]),D=Y7({direction:n,justify:l,symbolSize:k.symbolSize||p,symbolSpacing:h,width:s,height:o}),O=D.symbolX,R=D.symbolY,$=D.labelX,P=D.labelY,z=D.labelAnchor,B=D.labelAlignment,N=[v,g,b].some(function(F){return F!==void 0}),j;return ec(d)?j=d:j=awe[d],tt.createElement("g",{transform:"translate(".concat(r,",").concat(i,")"),style:{opacity:k.itemOpacity!==void 0?k.itemOpacity:f}},tt.createElement("rect",{width:s,height:o,fill:k.itemBackground||u,style:{cursor:N?"pointer":"auto"},onClick:M,onMouseEnter:C,onMouseLeave:A}),tt.createElement(j,{id:a.id,x:O,y:R,size:k.symbolSize||p,fill:a.fill||a.color,borderWidth:k.symbolBorderWidth!==void 0?k.symbolBorderWidth:m,borderColor:k.symbolBorderColor||y}),tt.createElement("text",{textAnchor:z,style:Gf({},S.legends.text,{fill:k.itemTextColor||c,dominantBaseline:B,pointerEvents:"none",userSelect:"none"}),x:$,y:P},a.label))};ro.displayName="LegendSvgItem";ro.propTypes=Gf({data:Uh.isRequired,x:oe.number.isRequired,y:oe.number.isRequired,width:oe.number.isRequired,height:oe.number.isRequired,textColor:oe.string,background:oe.string,opacity:oe.number,direction:oe.oneOf(["left-to-right","right-to-left","top-to-bottom","bottom-to-top"]).isRequired,justify:oe.bool.isRequired},qh,Wh);ro.defaultProps={direction:"left-to-right",justify:!1,textColor:"black",background:"transparent",opacity:1,symbolShape:"square",symbolSize:16,symbolSpacing:8,symbolBorderWidth:0,symbolBorderColor:"transparent",effects:[]};function iwe(e){for(var t=1;t=xwe){var c=t?null:ywe(e);if(c)return bwe(c);a=!1,s=vwe,l=new hwe}else l=t?[]:n;e:for(;++it||o&&a&&l&&!n&&!c||i&&a&&l||!r&&l||!s)return 1;if(!i&&!o&&!c&&e=n)return l;var c=r[i];return l*(c=="desc"?-1:1)}}return e.index-t.index}var z_e=B_e,L0=Np,q_e=Oc,W_e=Zx,U_e=L_e,H_e=$_e,V_e=cs,G_e=z_e,Y_e=tl,X_e=Ca;function Z_e(e,t,r){t.length?t=L0(t,function(o){return X_e(o)?function(a){return q_e(a,o.length===1?o[0]:o)}:o}):t=[Y_e];var i=-1;t=L0(t,V_e(W_e));var s=U_e(e,function(o,a,n){var l=L0(t,function(c){return c(o)});return{criteria:l,index:++i,value:o}});return H_e(s,function(o,a){return G_e(o,a,r)})}var K_e=Z_e,J_e=px,Q_e=K_e,eTe=jp,UM=Sb,tTe=eTe(function(e,t){if(e==null)return[];var r=t.length;return r>1&&UM(e,t[0],t[1])?t=[]:r>2&&UM(t[0],t[1],t[2])&&(t=[t[0]]),Q_e(e,J_e(t,1),[])}),nTe=tTe;const rTe=ur(nTe);var aTe=Ui,iTe=Wa,oTe="[object Date]";function lTe(e){return iTe(e)&&aTe(e)==oTe}var sTe=lTe,uTe=sTe,cTe=cs,HM=Fp,VM=HM&&HM.isDate,fTe=VM?cTe(VM):uTe,dTe=fTe;const pTe=ur(dTe);var hTe=function(t,r,i,s){var o=t.axis,a=t.min,n=a===void 0?0:a,l=t.max,c=l===void 0?"auto":l,u=t.stacked,f=u===void 0?!1:u,d=t.reverse,p=d===void 0?!1:d,h=r[o],m=o==="x"?i:s,y=n;n==="auto"&&(y=f===!0?h.minStacked:h.min);var v=c;c==="auto"&&(v=f===!0?h.maxStacked:h.max);var g=Bo().rangeRound(o==="x"?[0,m]:[m,0]);return p===!0?g.domain([v,y]):g.domain([y,v]),g.type="linear",g.stacked=f,g},gTe={type:oe.oneOf(["linear"]).isRequired,min:oe.oneOfType([oe.oneOf(["auto"]),oe.number]),max:oe.oneOfType([oe.oneOf(["auto"]),oe.number]),stacked:oe.bool,reverse:oe.bool},mTe=function(t,r,i,s){var o=t.axis,a=t.base,n=a===void 0?10:a,l=t.min,c=l===void 0?"auto":l,u=t.max,f=u===void 0?"auto":u,d=r[o],p=o==="x"?i:s,h=d.all.some(function(w){return w===0}),m,y=!1;if(d.all.forEach(function(w){y!==!0&&(m===void 0?m=Math.sign(w):Math.sign(w)!==m&&(y=!0))}),h||y)throw new Error(["a log scale domain must be strictly-positive or strictly-negative,","and must not include or cross zero."].join(` +`));var v=c;c==="auto"&&(v=d.min);var g=f;f==="auto"&&(g=d.max);var b=ZP().domain([v,g]).rangeRound(o==="x"?[0,p]:[p,0]).base(n).nice();return b.type="log",b},vTe={type:oe.oneOf(["log"]).isRequired,base:oe.number,min:oe.oneOfType([oe.oneOf(["auto"]),oe.number]),max:oe.oneOfType([oe.oneOf(["auto"]),oe.number])},yTe=function(t,r,i,s){var o=t.axis,a=r[o],n=o==="x"?i:s,l=oce().range([0,n]).domain(a.all);return l.type="point",l},bTe={type:oe.oneOf(["point"]).isRequired},Oi;function _o(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var Kx="millisecond",rD="second",aD="minute",iD="hour",oD="day",lD="month",sD="year",xTe=[Kx,rD,aD,iD,oD,lD,sD],yl=[function(e){return e.setMilliseconds(0)},function(e){return e.setSeconds(0)},function(e){return e.setMinutes(0)},function(e){return e.setHours(0)},function(e){return e.setDate(1)},function(e){return e.setMonth(0)}],wTe=(Oi={},_o(Oi,Kx,[]),_o(Oi,rD,yl.slice(0,1)),_o(Oi,aD,yl.slice(0,2)),_o(Oi,iD,yl.slice(0,3)),_o(Oi,oD,yl.slice(0,4)),_o(Oi,lD,yl.slice(0,5)),_o(Oi,sD,yl.slice(0,6)),Oi),_Te=function(t){return function(r){return wTe[t].forEach(function(i){i(r)}),r}},uD=function(t){var r=t.format,i=r===void 0?"native":r,s=t.precision,o=s===void 0?"millisecond":s,a=t.useUTC,n=a===void 0?!0:a,l=_Te(o);if(i==="native")return function(u){return l(u)};var c=n?qA(i):BA(i);return function(u){return l(c(u))}},TTe=function(t,r,i,s){var o=t.axis,a=t.format,n=a===void 0?"native":a,l=t.precision,c=l===void 0?Kx:l,u=t.min,f=u===void 0?"auto":u,d=t.max,p=d===void 0?"auto":d,h=t.useUTC,m=h===void 0?!0:h,y=r[o],v=o==="x"?i:s,g=uD({format:n,precision:c,useUTC:m}),b=f;f==="auto"?b=y.min:n!=="native"&&(b=g(f));var w=p;p==="auto"?w=y.max:n!=="native"&&(w=g(p));var _=m?Mde():Sde();return _.domain([b,w]).range([0,v]),_.type="time",_.useUTC=m,_},kTe={type:oe.oneOf(["time"]).isRequired,format:oe.string,precision:oe.oneOf(xTe)};function zd(e){return CTe(e)||MTe(e)||STe()}function STe(){throw new TypeError("Invalid attempt to spread non-iterable instance")}function MTe(e){if(Symbol.iterator in Object(e)||Object.prototype.toString.call(e)==="[object Arguments]")return Array.from(e)}function CTe(e){if(Array.isArray(e)){for(var t=0,r=new Array(e.length);t3&&arguments[3]!==void 0?arguments[3]:{},o=s.getValue,a=o===void 0?function(p){return p.data[r]}:o,n=s.setValue,l=n===void 0?function(p,h){p.data[r]=h}:n;if(i.type==="linear")t.forEach(function(p){p.data.forEach(function(h){l(h,a(h)===null?null:parseFloat(a(h)))})});else if(i.type==="time"&&i.format!=="native"){var c=uD(i);t.forEach(function(p){p.data.forEach(function(h){l(h,a(h)===null?null:c(a(h)))})})}var u=[];t.forEach(function(p){p.data.forEach(function(h){u.push(a(h))})});var f,d;return i.type==="linear"?(u=qM(u),u=rTe(u,function(p){return p}),f=Math.min.apply(Math,zd(u)),d=Math.max.apply(Math,zd(u))):i.type==="time"?(u=uc(u,function(p){return p.getTime()}),u=u.slice(0).sort(function(p,h){return h-p}).reverse(),f=u[0],d=On(u)):(u=qM(u),f=u[0],d=On(u)),{all:u,min:f,max:d}},fD=function(t,r,i,s){var o=PTe(t),a=[];i[o].all.forEach(function(n){var l=pTe(n)?DTe:ATe,c=[];s.forEach(function(u){var f=u.data.find(function(m){return l(m.data[o],n)}),d=null,p=null;if(f!==void 0){if(d=f.data[t],d!==null){var h=On(c);h===void 0?p=d:h!==null&&(p=h+d)}f.data["".concat(t,"Stacked")]=p}c.push(p),a.push(p)})}),a=a.filter(function(n){return n!==null}),i[t].minStacked=Math.min.apply(Math,zd(a)),i[t].maxStacked=Math.max.apply(Math,zd(a))},RTe=function(t,r,i){return fD("x",t,r,i)},LTe=function(t,r,i){return fD("y",t,r,i)},qd=oe.oneOfType([oe.shape(gTe),oe.shape(bTe),oe.shape(kTe),oe.shape(vTe)]);const XM=Math.pow(2,-52),Cf=new Uint32Array(512);class Wd{static from(t,r=NTe,i=BTe){const s=t.length,o=new Float64Array(s*2);for(let a=0;a>1;if(r>0&&typeof t[0]!="number")throw new Error("Expected coords to contain numbers.");this.coords=t;const i=Math.max(2*r-5,0);this._triangles=new Uint32Array(i*3),this._halfedges=new Int32Array(i*3),this._hashSize=Math.ceil(Math.sqrt(r)),this._hullPrev=new Uint32Array(r),this._hullNext=new Uint32Array(r),this._hullTri=new Uint32Array(r),this._hullHash=new Int32Array(this._hashSize).fill(-1),this._ids=new Uint32Array(r),this._dists=new Float64Array(r),this.update()}update(){const{coords:t,_hullPrev:r,_hullNext:i,_hullTri:s,_hullHash:o}=this,a=t.length>>1;let n=1/0,l=1/0,c=-1/0,u=-1/0;for(let M=0;Mc&&(c=C),A>u&&(u=A),this._ids[M]=M}const f=(n+c)/2,d=(l+u)/2;let p=1/0,h,m,y;for(let M=0;M0&&(m=M,p=C)}let b=t[2*m],w=t[2*m+1],_=1/0;for(let M=0;MD&&(M[C++]=O,D=this._dists[O])}this.hull=M.subarray(0,C),this.triangles=new Uint32Array(0),this.halfedges=new Uint32Array(0);return}if(Of(v,g,b,w,x,k)){const M=m,C=b,A=w;m=y,b=x,w=k,y=M,x=C,k=A}const T=jTe(v,g,b,w,x,k);this._cx=T.x,this._cy=T.y;for(let M=0;M0&&Math.abs(O-C)<=XM&&Math.abs(R-A)<=XM||(C=O,A=R,D===h||D===m||D===y))continue;let $=0;for(let j=0,F=this._hashKey(O,R);j0?3-r:1+r)/4}function I0(e,t,r,i){const s=e-r,o=t-i;return s*s+o*o}function $0(e,t,r,i,s,o){const a=(i-t)*(s-e),n=(r-e)*(o-t);return Math.abs(a-n)>=33306690738754716e-32*Math.abs(a+n)?a-n:0}function Of(e,t,r,i,s,o){return($0(s,o,e,t,r,i)||$0(e,t,r,i,s,o)||$0(r,i,s,o,e,t))<0}function $Te(e,t,r,i,s,o,a,n){const l=e-a,c=t-n,u=r-a,f=i-n,d=s-a,p=o-n,h=l*l+c*c,m=u*u+f*f,y=d*d+p*p;return l*(f*y-m*p)-c*(u*y-m*d)+h*(u*p-f*d)<0}function FTe(e,t,r,i,s,o){const a=r-e,n=i-t,l=s-e,c=o-t,u=a*a+n*n,f=l*l+c*c,d=.5/(a*c-n*l),p=(c*u-n*f)*d,h=(a*f-l*u)*d;return p*p+h*h}function jTe(e,t,r,i,s,o){const a=r-e,n=i-t,l=s-e,c=o-t,u=a*a+n*n,f=l*l+c*c,d=.5/(a*c-n*l),p=e+(c*u-n*f)*d,h=t+(a*f-l*u)*d;return{x:p,y:h}}function Sl(e,t,r,i){if(i-r<=20)for(let s=r+1;s<=i;s++){const o=e[s],a=t[o];let n=s-1;for(;n>=r&&t[e[n]]>a;)e[n+1]=e[n--];e[n+1]=o}else{const s=r+i>>1;let o=r+1,a=i;_u(e,s,o),t[e[r]]>t[e[i]]&&_u(e,r,i),t[e[o]]>t[e[i]]&&_u(e,o,i),t[e[r]]>t[e[o]]&&_u(e,r,o);const n=e[o],l=t[n];for(;;){do o++;while(t[e[o]]l);if(a=a-r?(Sl(e,t,o,i),Sl(e,t,r,a-1)):(Sl(e,t,r,a-1),Sl(e,t,o,i))}}function _u(e,t,r){const i=e[t];e[t]=e[r],e[r]=i}function NTe(e){return e[0]}function BTe(e){return e[1]}const ZM=1e-6;class Lo{constructor(){this._x0=this._y0=this._x1=this._y1=null,this._=""}moveTo(t,r){this._+=`M${this._x0=this._x1=+t},${this._y0=this._y1=+r}`}closePath(){this._x1!==null&&(this._x1=this._x0,this._y1=this._y0,this._+="Z")}lineTo(t,r){this._+=`L${this._x1=+t},${this._y1=+r}`}arc(t,r,i){t=+t,r=+r,i=+i;const s=t+i,o=r;if(i<0)throw new Error("negative radius");this._x1===null?this._+=`M${s},${o}`:(Math.abs(this._x1-s)>ZM||Math.abs(this._y1-o)>ZM)&&(this._+="L"+s+","+o),i&&(this._+=`A${i},${i},0,1,1,${t-i},${r}A${i},${i},0,1,1,${this._x1=s},${this._y1=o}`)}rect(t,r,i,s){this._+=`M${this._x0=this._x1=+t},${this._y0=this._y1=+r}h${+i}v${+s}h${-i}Z`}value(){return this._||null}}class my{constructor(){this._=[]}moveTo(t,r){this._.push([t,r])}closePath(){this._.push(this._[0].slice())}lineTo(t,r){this._.push([t,r])}value(){return this._.length?this._:null}}let zTe=class{constructor(t,[r,i,s,o]=[0,0,960,500]){if(!((s=+s)>=(r=+r))||!((o=+o)>=(i=+i)))throw new Error("invalid bounds");this.delaunay=t,this._circumcenters=new Float64Array(t.points.length*2),this.vectors=new Float64Array(t.points.length*2),this.xmax=s,this.xmin=r,this.ymax=o,this.ymin=i,this._init()}update(){return this.delaunay.update(),this._init(),this}_init(){const{delaunay:{points:t,hull:r,triangles:i},vectors:s}=this,o=this.circumcenters=this._circumcenters.subarray(0,i.length/3*2);for(let p=0,h=0,m=i.length,y,v;p1;)o-=2;for(let a=2;a4)for(let a=0;a0){if(r>=this.ymax)return null;(a=(this.ymax-r)/s)0){if(t>=this.xmax)return null;(a=(this.xmax-t)/i)this.xmax?2:0)|(rthis.ymax?8:0)}};const qTe=2*Math.PI,bl=Math.pow;function WTe(e){return e[0]}function UTe(e){return e[1]}function HTe(e){const{triangles:t,coords:r}=e;for(let i=0;i1e-10)return!1}return!0}function VTe(e,t,r){return[e+Math.sin(e+t)*r,t+Math.cos(e-t)*r]}class Gh{static from(t,r=WTe,i=UTe,s){return new Gh("length"in t?GTe(t,r,i,s):Float64Array.from(YTe(t,r,i,s)))}constructor(t){this._delaunator=new Wd(t),this.inedges=new Int32Array(t.length/2),this._hullIndex=new Int32Array(t.length/2),this.points=this._delaunator.coords,this._init()}update(){return this._delaunator.update(),this._init(),this}_init(){const t=this._delaunator,r=this.points;if(t.hull&&t.hull.length>2&&HTe(t)){this.collinear=Int32Array.from({length:r.length/2},(d,p)=>p).sort((d,p)=>r[2*d]-r[2*p]||r[2*d+1]-r[2*p+1]);const l=this.collinear[0],c=this.collinear[this.collinear.length-1],u=[r[2*l],r[2*l+1],r[2*c],r[2*c+1]],f=1e-8*Math.hypot(u[3]-u[1],u[2]-u[0]);for(let d=0,p=r.length/2;d0&&(this.triangles=new Int32Array(3).fill(-1),this.halfedges=new Int32Array(3).fill(-1),this.triangles[0]=s[0],this.triangles[1]=s[1],this.triangles[2]=s[1],a[s[0]]=1,s.length===2&&(a[s[1]]=0))}voronoi(t){return new zTe(this,t)}*neighbors(t){const{inedges:r,hull:i,_hullIndex:s,halfedges:o,triangles:a,collinear:n}=this;if(n){const f=n.indexOf(t);f>0&&(yield n[f-1]),f=0&&o!==i&&o!==s;)i=o;return o}_step(t,r,i){const{inedges:s,hull:o,_hullIndex:a,halfedges:n,triangles:l,points:c}=this;if(s[t]===-1||!c.length)return(t+1)%(c.length>>1);let u=t,f=bl(r-c[t*2],2)+bl(i-c[t*2+1],2);const d=s[t];let p=d;do{let h=l[p];const m=bl(r-c[h*2],2)+bl(i-c[h*2+1],2);if(m0&&(fe.lineWidth=U.grid.line.strokeWidth,fe.strokeStyle=U.grid.line.stroke,k&&Gl(fe,{width:W,height:H,scale:re,axis:"x",values:T}),S&&Gl(fe,{width:W,height:H,scale:ie,axis:"y",values:M})),xe==="axes"&&Ax(fe,{xScale:re,yScale:ie,width:W,height:H,top:C,right:A,bottom:D,left:O,theme:U}),xe==="areas"&&m===!0&&(fe.save(),fe.globalAlpha=v,X.context(fe),Y.forEach(function(ge){fe.fillStyle=ge.color,fe.beginPath(),X(ge.data.map(function(be){return be.position})),fe.fill()}),fe.restore()),xe==="lines"&&(G.context(fe),Y.forEach(function(ge){fe.strokeStyle=ge.color,fe.lineWidth=h,fe.beginPath(),G(ge.data.map(function(be){return be.position})),fe.stroke()})),xe==="points"&&g===!0&&b>0&&le.forEach(function(ge){fe.fillStyle=ge.color,fe.beginPath(),fe.arc(ge.x,ge.y,b/2,0,2*Math.PI),fe.fill(),_>0&&(fe.strokeStyle=ge.borderColor,fe.lineWidth=_,fe.stroke())}),xe==="mesh"&&P===!0&&(pD(fe,_e),ee&&hD(fe,_e,ee.index)),xe==="legends"){var ue=Y.map(function(ge){return{id:ge.id,label:ge.id,color:ge.color}}).reverse();R.forEach(function(ge){Xx(fe,F3e({},ge,{data:ge.data||ue,containerWidth:W,containerHeight:H,theme:U}))})}})},[j,L,q,d,U,G,Y,re,ie,k,T,S,M,C,A,D,O,R,le,g,b,ee]);var Me=$e.useCallback(function(fe){var xe=lc(j.current,fe),ue=n5(xe,2),ge=ue[0],be=ue[1];if(!bx(E.left,E.top,W,H,ge,be))return null;var we=he.find(ge-E.left,be-E.top);return le[we]},[j,E,W,H,he]),Ce=rs(),Se=Ce.showTooltipFromEvent,ce=Ce.hideTooltip,ye=$e.useCallback(function(fe){var xe=Me(fe);K(xe),xe?Se(tt.createElement(N,{point:xe}),fe):ce()},[Me,K,Se,ce,N]),V=$e.useCallback(function(fe){ce(),K(null),ee&&z&&z(ee,fe)},[ce,K,z]),ne=$e.useCallback(function(fe){if(B){var xe=Me(fe);xe&&B(xe,fe)}},[Me,B]);return tt.createElement("canvas",{ref:j,width:L*o,height:q*o,style:{width:L,height:q,cursor:$?"auto":"normal"},onMouseEnter:$?ye:void 0,onMouseMove:$?ye:void 0,onMouseLeave:$?V:void 0,onClick:$?ne:void 0})};t2.propTypes=d3e;t2.defaultProps=p3e;var q3e=Eh(t2);function by(){return by=Object.assign||function(e){for(var t=1;tEe.jsx(Ma,{sx:{maxWidth:200,height:50},children:Ee.jsx(W3e,{data:[{id:"1",data:e.data[e.xField].map((t,r)=>({x:t,y:e.data[e.yField][r]}))}],margin:{top:0,right:0,bottom:0,left:0},xScale:{type:"linear",min:0,max:25},axisTop:null,colors:[e.color],axisRight:null,enableGridX:!1,enableGridY:!1})}),H3e=U3e;var V3e=nD;function G3e(e,t){var r=[];return V3e(e,function(i,s,o){t(i,s,o)&&r.push(i)}),r}var Y3e=G3e,X3e=_8,Z3e=Y3e,K3e=Zx,J3e=Ca;function Q3e(e,t){var r=J3e(e)?X3e:Z3e;return r(e,K3e(t))}var eke=Q3e;const tke=ur(eke);var nke=fs,rke=Ac;function ake(e,t){return e&&nke(t,rke(t),e)}var ike=ake,oke=fs,lke=Cc;function ske(e,t){return e&&oke(t,lke(t),e)}var uke=ske,cke=fs,fke=lx;function dke(e,t){return cke(e,fke(e),t)}var pke=dke,hke=ox,gke=vb,mke=lx,vke=T8,yke=Object.getOwnPropertySymbols,bke=yke?function(e){for(var t=[];e;)hke(t,mke(e)),e=gke(e);return t}:vke,OD=bke,xke=fs,wke=OD;function _ke(e,t){return xke(e,wke(e),t)}var Tke=_ke,kke=w8,Ske=OD,Mke=Cc;function Cke(e){return kke(e,Mke,Ske)}var PD=Cke,Oke=Object.prototype,Pke=Oke.hasOwnProperty;function Ake(e){var t=e.length,r=new e.constructor(t);return t&&typeof e[0]=="string"&&Pke.call(e,"index")&&(r.index=e.index,r.input=e.input),r}var Dke=Ake,Eke=mb;function Rke(e,t){var r=t?Eke(e.buffer):e.buffer;return new e.constructor(r,e.byteOffset,e.byteLength)}var Lke=Rke,Ike=/\w*$/;function $ke(e){var t=new e.constructor(e.source,Ike.exec(e));return t.lastIndex=e.lastIndex,t}var Fke=$ke,r5=is,a5=r5?r5.prototype:void 0,i5=a5?a5.valueOf:void 0;function jke(e){return i5?Object(i5.call(e)):{}}var Nke=jke,Bke=mb,zke=Lke,qke=Fke,Wke=Nke,Uke=TP,Hke="[object Boolean]",Vke="[object Date]",Gke="[object Map]",Yke="[object Number]",Xke="[object RegExp]",Zke="[object Set]",Kke="[object String]",Jke="[object Symbol]",Qke="[object ArrayBuffer]",eSe="[object DataView]",tSe="[object Float32Array]",nSe="[object Float64Array]",rSe="[object Int8Array]",aSe="[object Int16Array]",iSe="[object Int32Array]",oSe="[object Uint8Array]",lSe="[object Uint8ClampedArray]",sSe="[object Uint16Array]",uSe="[object Uint32Array]";function cSe(e,t,r){var i=e.constructor;switch(t){case Qke:return Bke(e);case Hke:case Vke:return new i(+e);case eSe:return zke(e,r);case tSe:case nSe:case rSe:case aSe:case iSe:case oSe:case lSe:case sSe:case uSe:return Uke(e,r);case Gke:return new i;case Yke:case Kke:return new i(e);case Xke:return qke(e);case Zke:return new i;case Jke:return Wke(e)}}var fSe=cSe,dSe=bh,pSe=Wa,hSe="[object Map]";function gSe(e){return pSe(e)&&dSe(e)==hSe}var mSe=gSe,vSe=mSe,ySe=cs,o5=Fp,l5=o5&&o5.isMap,bSe=l5?ySe(l5):vSe,xSe=bSe,wSe=bh,_Se=Wa,TSe="[object Set]";function kSe(e){return _Se(e)&&wSe(e)==TSe}var SSe=kSe,MSe=SSe,CSe=cs,s5=Fp,u5=s5&&s5.isSet,OSe=u5?CSe(u5):MSe,PSe=OSe,ASe=Ep,DSe=U8,ESe=_b,RSe=ike,LSe=uke,ISe=wP,$Se=Rp,FSe=pke,jSe=Tke,NSe=k8,BSe=PD,zSe=bh,qSe=Dke,WSe=fSe,USe=SP,HSe=Ca,VSe=$p,GSe=xSe,YSe=ti,XSe=PSe,ZSe=Ac,KSe=Cc,JSe=1,QSe=2,eMe=4,AD="[object Arguments]",tMe="[object Array]",nMe="[object Boolean]",rMe="[object Date]",aMe="[object Error]",DD="[object Function]",iMe="[object GeneratorFunction]",oMe="[object Map]",lMe="[object Number]",ED="[object Object]",sMe="[object RegExp]",uMe="[object Set]",cMe="[object String]",fMe="[object Symbol]",dMe="[object WeakMap]",pMe="[object ArrayBuffer]",hMe="[object DataView]",gMe="[object Float32Array]",mMe="[object Float64Array]",vMe="[object Int8Array]",yMe="[object Int16Array]",bMe="[object Int32Array]",xMe="[object Uint8Array]",wMe="[object Uint8ClampedArray]",_Me="[object Uint16Array]",TMe="[object Uint32Array]",Sr={};Sr[AD]=Sr[tMe]=Sr[pMe]=Sr[hMe]=Sr[nMe]=Sr[rMe]=Sr[gMe]=Sr[mMe]=Sr[vMe]=Sr[yMe]=Sr[bMe]=Sr[oMe]=Sr[lMe]=Sr[ED]=Sr[sMe]=Sr[uMe]=Sr[cMe]=Sr[fMe]=Sr[xMe]=Sr[wMe]=Sr[_Me]=Sr[TMe]=!0;Sr[aMe]=Sr[DD]=Sr[dMe]=!1;function Yf(e,t,r,i,s,o){var a,n=t&JSe,l=t&QSe,c=t&eMe;if(r&&(a=s?r(e,i,s,o):r(e)),a!==void 0)return a;if(!YSe(e))return e;var u=HSe(e);if(u){if(a=qSe(e),!n)return $Se(e,a)}else{var f=zSe(e),d=f==DD||f==iMe;if(VSe(e))return ISe(e,n);if(f==ED||f==AD||d&&!s){if(a=l||d?{}:USe(e),!n)return l?jSe(e,LSe(a,e)):FSe(e,RSe(a,e))}else{if(!Sr[f])return s?e:{};a=WSe(e,f,n)}}o||(o=new ASe);var p=o.get(e);if(p)return p;o.set(e,a),XSe(e)?e.forEach(function(y){a.add(Yf(y,t,r,y,e,o))}):GSe(e)&&e.forEach(function(y,v){a.set(v,Yf(y,t,r,v,e,o))});var h=c?l?BSe:NSe:l?KSe:ZSe,m=u?void 0:h(e);return DSe(m||e,function(y,v){m&&(v=y,y=e[v]),ESe(a,v,Yf(y,t,r,v,e,o))}),a}var kMe=Yf;function SMe(e,t,r){var i=-1,s=e.length;t<0&&(t=-t>s?0:s+t),r=r>s?s:r,r<0&&(r+=s),s=t>r?0:r-t>>>0,t>>>=0;for(var o=Array(s);++i1),o}),UMe(e,GMe(e),r),i&&(r=zMe(r,YMe|XMe|ZMe,HMe));for(var s=t.length;s--;)qMe(r,t[s]);return r}),JMe=KMe;const RD=ur(JMe);var QMe=oe.shape({match:oe.oneOfType([oe.func,oe.object]).isRequired,type:oe.oneOf(["circle","rect","dot"]).isRequired,noteX:oe.oneOfType([oe.number,oe.shape({abs:oe.number.isRequired})]).isRequired,noteY:oe.oneOfType([oe.number,oe.shape({abs:oe.number.isRequired})]).isRequired,noteWidth:oe.number,noteTextOffset:oe.number,note:oe.oneOfType([oe.node,oe.func]).isRequired,offset:oe.number}),Ud={noteWidth:120,noteTextOffset:8,animate:!0,motionStiffness:90,motionDamping:13};function e5e(e){for(var t=1;t180?(_-=f,k-=f):k+=f,{points:[[y,v],[h,m],[k,T]],text:[_,x],angle:g+90}},LD=function(t){var r=t.items,i=t.annotations,s=t.getPosition,o=t.getDimensions;return $e.useMemo(function(){return r5e({items:r,annotations:i,getPosition:s,getDimensions:o})},[r,i,s,o])},o5e=function(t){var r=t.type,i=t.containerWidth,s=t.containerHeight,o=t.x,a=t.y,n=t.size,l=t.width,c=t.height,u=t.noteX,f=t.noteY,d=t.noteWidth,p=t.noteTextOffset;return $e.useMemo(function(){return i5e({type:r,containerWidth:i,containerHeight:s,x:o,y:a,size:n,width:l,height:c,noteX:u,noteY:f,noteWidth:d,noteTextOffset:p})},[r,i,s,o,a,n,l,c,u,f,d,p])};function l5e(e){for(var t=1;t0&&tt.createElement("text",{x:r,y:i,style:l5e({},o.annotations.text,{strokeLinejoin:"round",strokeWidth:o.annotations.text.outlineWidth*2,stroke:o.annotations.text.outlineColor})},s),tt.createElement("text",{x:r,y:i,style:RD(o.annotations.text,["outlineWidth","outlineColor"])},s))});cc.displayName="AnnotationNote";cc.propTypes={datum:oe.object.isRequired,x:oe.number.isRequired,y:oe.number.isRequired,note:oe.oneOfType([oe.node,oe.func]).isRequired};cc.defaultProps={};function u5e(e){for(var t=1;t0&&tt.createElement("circle",{cx:l.x,cy:l.y,r:l.size/2,style:c5({},s.annotations.outline,{fill:"none",strokeWidth:s.annotations.outline.strokeWidth+s.annotations.outline.outlineWidth*2,stroke:s.annotations.outline.outlineColor})}),tt.createElement("circle",{cx:l.x,cy:l.y,r:l.size/2,style:s.annotations.outline}))}):tt.createElement(tt.Fragment,null,s.annotations.outline.outlineWidth>0&&tt.createElement("circle",{cx:t,cy:r,r:i/2,style:c5({},s.annotations.outline,{fill:"none",strokeWidth:s.annotations.outline.strokeWidth+s.annotations.outline.outlineWidth*2,stroke:s.annotations.outline.outlineColor})}),tt.createElement("circle",{cx:t,cy:r,r:i/2,style:s.annotations.outline}))});n2.displayName="CircleAnnotationOutline";n2.propTypes={x:oe.number.isRequired,y:oe.number.isRequired,size:oe.number.isRequired};function f5(e){for(var t=1;t0&&tt.createElement("circle",{cx:l.x,cy:l.y,r:l.size/2,style:f5({},s.annotations.outline,{fill:"none",strokeWidth:s.annotations.outline.outlineWidth*2,stroke:s.annotations.outline.outlineColor})}),tt.createElement("circle",{cx:l.x,cy:l.y,r:l.size/2,style:s.annotations.symbol}))}):tt.createElement(tt.Fragment,null,s.annotations.outline.outlineWidth>0&&tt.createElement("circle",{cx:t,cy:r,r:i/2,style:f5({},s.annotations.outline,{fill:"none",strokeWidth:s.annotations.outline.outlineWidth*2,stroke:s.annotations.outline.outlineColor})}),tt.createElement("circle",{cx:t,cy:r,r:i/2,style:s.annotations.symbol}))});Jh.displayName="DotAnnotationOutline";Jh.propTypes={x:oe.number.isRequired,y:oe.number.isRequired,size:oe.number.isRequired};Jh.defaultProps={size:4};function d5(e){for(var t=1;t0&&tt.createElement("rect",{x:c.x,y:c.y,width:c.width,height:c.height,style:d5({},o.annotations.outline,{fill:"none",strokeWidth:o.annotations.outline.strokeWidth+o.annotations.outline.outlineWidth*2,stroke:o.annotations.outline.outlineColor})}),tt.createElement("rect",{x:c.x,y:c.y,width:c.width,height:c.height,style:o.annotations.outline}))}):tt.createElement(tt.Fragment,null,o.annotations.outline.outlineWidth>0&&tt.createElement("rect",{x:t-i/2,y:r-s/2,width:i,height:s,style:d5({},o.annotations.outline,{fill:"none",strokeWidth:o.annotations.outline.strokeWidth+o.annotations.outline.outlineWidth*2,stroke:o.annotations.outline.outlineColor})}),tt.createElement("rect",{x:t-i/2,y:r-s/2,width:i,height:s,style:o.annotations.outline}))});r2.displayName="RectAnnotationOutline";r2.propTypes={x:oe.number.isRequired,y:oe.number.isRequired,width:oe.number.isRequired,height:oe.number.isRequired};var Rc=$e.memo(function(e){var t=e.datum,r=e.type,i=e.containerWidth,s=e.containerHeight,o=e.x,a=e.y,n=e.size,l=e.width,c=e.height,u=e.noteX,f=e.noteY,d=e.noteWidth,p=e.noteTextOffset,h=e.note,m=Ia(),y=m.animate,v=m.springConfig,g=o5e({type:r,containerWidth:i,containerHeight:s,x:o,y:a,size:n,width:l,height:c,noteX:u,noteY:f,noteWidth:d,noteTextOffset:p});return tt.createElement(tt.Fragment,null,tt.createElement(fc,{points:g.points,isOutline:!0}),r==="circle"&&tt.createElement(n2,{x:o,y:a,size:n}),r==="dot"&&tt.createElement(Jh,{x:o,y:a,size:n}),r==="rect"&&tt.createElement(r2,{x:o,y:a,width:l,height:c}),tt.createElement(fc,{points:g.points}),!y&&tt.createElement(cc,{x:g.text[0],y:g.text[1],note:h}),y&&tt.createElement(Fi,{style:{x:Dn(g.text[0],v),y:Dn(g.text[1],v)}},function(b){return tt.createElement(cc,{datum:t,x:b.x,y:b.y,note:h})}))});Rc.displayName="Annotation";Rc.propTypes={datum:oe.object.isRequired,type:oe.oneOf(["circle","rect","dot"]).isRequired,containerWidth:oe.number.isRequired,containerHeight:oe.number.isRequired,x:oe.number.isRequired,y:oe.number.isRequired,size:oe.number,width:oe.number,height:oe.number,noteX:oe.oneOfType([oe.number,oe.shape({abs:oe.number.isRequired})]).isRequired,noteY:oe.oneOfType([oe.number,oe.shape({abs:oe.number.isRequired})]).isRequired,noteWidth:oe.number.isRequired,noteTextOffset:oe.number.isRequired,note:oe.oneOfType([oe.node,oe.func]).isRequired};Rc.defaultProps={noteWidth:Ud.noteWidth,noteTextOffset:Ud.noteTextOffset};function h5e(e){for(var t=1;tEe.jsx(Ma,{sx:{maxWidth:200,height:50},children:Ee.jsx(j5e,{data:[{id:"1",data:e.data[e.xField].map((t,r)=>({x:t,y:e.data[e.yField][r]}))}],margin:{top:3,right:3,bottom:3,left:3},xScale:{type:"linear",min:0,max:1e3},nodeSize:4,colors:[e.color],useMesh:!1,axisTop:null,axisRight:null,enableGridX:!1,enableGridY:!1})}),U5e=W5e;var H5e=ds;function V5e(e,t,r){for(var i=-1,s=e.length;++it}var tCe=eCe,nCe=VD,rCe=tCe,aCe=tl;function iCe(e){return e&&e.length?nCe(e,aCe,rCe):void 0}var oCe=iCe;const YD=ur(oCe);var lCe=Math.ceil,sCe=Math.max;function uCe(e,t,r,i){for(var s=-1,o=sCe(lCe((t-e)/(r||1)),0),a=Array(o);o--;)a[i?o:++s]=e,e+=r;return a}var cCe=uCe,fCe=cCe,dCe=Sb,F0=X8;function pCe(e){return function(t,r,i){return i&&typeof i!="number"&&dCe(t,r,i)&&(r=i=void 0),t=F0(t),r===void 0?(r=t,t=0):r=F0(r),i=i===void 0?t0&&(l=0)),Bo().rangeRound(o).domain([l,n])},MCe=function(t){var r=t.data,i=t.getIndex,s=t.keys,o=t.minValue,a=t.maxValue,n=t.reverse,l=t.width,c=t.height,u=t.getColor,f=t.padding,d=f===void 0?0:f,p=t.innerPadding,h=p===void 0?0:p,m=tg(r,i,[0,l],d),y=n?[0,c]:[c,0],v=ZD(r,s,o,a,y),g=(m.bandwidth()-h*(s.length-1))/s.length,b=v(0),w=function(T){return T>0?v(T):b},_=function(T,S){return T>0?b-S:v(T)-b};n&&(w=function(T){return T<0?v(T):b},_=function(T,S){return T<0?b-S:v(T)-b});var x=[];return g>0&&s.forEach(function(k,T){XD(m.domain().length).forEach(function(S){var M=m(i(r[S]))+g*T+h*T,C=w(r[S][k]),A=_(r[S][k],C);if(g>0&&A>0){var D={id:k,value:r[S][k],index:S,indexValue:i(r[S]),data:r[S]};x.push({key:"".concat(k,".").concat(D.indexValue),data:D,x:M,y:C,width:g,height:A,color:u(D)})}})}),{xScale:m,yScale:v,bars:x}},CCe=function(t){var r=t.data,i=t.getIndex,s=t.keys,o=t.minValue,a=t.maxValue,n=t.reverse,l=t.width,c=t.height,u=t.getColor,f=t.padding,d=f===void 0?0:f,p=t.innerPadding,h=p===void 0?0:p,m=n?[l,0]:[0,l],y=ZD(r,s,o,a,m),v=tg(r,i,[c,0],d),g=(v.bandwidth()-h*(s.length-1))/s.length,b=y(0),w=function(T){return T>0?b:y(T)},_=function(T,S){return T>0?y(T)-b:b-S};n&&(w=function(T){return T<0?b:y(T)},_=function(T,S){return T<0?y(T)-b:b-S});var x=[];return g>0&&s.forEach(function(k,T){XD(v.domain().length).forEach(function(S){var M=w(r[S][k]),C=v(i(r[S]))+g*T+h*T,A=_(r[S][k],M);if(A>0){var D={id:k,value:r[S][k],index:S,indexValue:i(r[S]),data:r[S]};x.push({key:"".concat(k,".").concat(D.indexValue),data:D,x:M,y:C,width:A,height:g,color:u(D)})}})}),{xScale:y,yScale:v,bars:x}},KD=function(t){return t.layout==="vertical"?MCe(t):CCe(t)},JD=function(t,r,i,s){var o=_Ce(t,2),a=r;a==="auto"&&(a=GD(o));var n=i;return n==="auto"&&(n=YD(o)),Bo().rangeRound(s).domain([a,n])},OCe=function(t){var r=t.data,i=t.getIndex,s=t.keys,o=t.minValue,a=t.maxValue,n=t.reverse,l=t.width,c=t.height,u=t.getColor,f=t.padding,d=f===void 0?0:f,p=t.innerPadding,h=p===void 0?0:p,m=h8().keys(s).offset(rx)(r),y=tg(r,i,[0,l],d),v=n?[0,c]:[c,0],g=JD(m,o,a,v),b=[],w=y.bandwidth(),_=function(T){return g(T[1])},x=function(T,S){return g(T[0])-S};return n&&(_=function(T){return g(T[0])},x=function(T,S){return g(T[1])-S}),w>0&&m.forEach(function(k){y.domain().forEach(function(T,S){var M=k[S],C=y(i(M.data)),A=_(M),D=x(M,A);if(h>0&&(A+=h*.5,D-=h),D>0){var O={id:k.key,value:M.data[k.key],index:S,indexValue:T,data:M.data};b.push({key:"".concat(k.key,".").concat(T),data:O,x:C,y:A,width:w,height:D,color:u(O)})}})}),{xScale:y,yScale:g,bars:b}},PCe=function(t){var r=t.data,i=t.getIndex,s=t.keys,o=t.minValue,a=t.maxValue,n=t.reverse,l=t.width,c=t.height,u=t.getColor,f=t.padding,d=f===void 0?0:f,p=t.innerPadding,h=p===void 0?0:p,m=h8().keys(s).offset(rx)(r),y=n?[l,0]:[0,l],v=JD(m,o,a,y),g=tg(r,i,[c,0],d),b=[],w=g.bandwidth(),_=function(T){return v(T[0])},x=function(T,S){return v(T[1])-S};return n&&(_=function(T){return v(T[1])},x=function(T,S){return v(T[0])-S}),w>0&&m.forEach(function(k){g.domain().forEach(function(T,S){var M=k[S],C=g(i(M.data)),A={id:k.key,value:M.data[k.key],index:S,indexValue:T,data:M.data},D=_(M),O=x(M,D);h>0&&(D+=h*.5,O-=h),O>0&&b.push({key:"".concat(k.key,".").concat(T),data:A,x:D,y:C,width:O,height:w,color:u(A)})})}),{xScale:v,yScale:g,bars:b}},QD=function(t){return t.layout==="vertical"?OCe(t):PCe(t)},ACe=function(t,r,i,s,o){var a=uc(t.map(function(n){return{id:n.data.id,label:n.data.id,color:n.color,fill:n.data.fill}}),function(n){var l=n.id;return l});return(r==="vertical"&&s==="stacked"&&i==="column"&&o!==!0||r==="horizontal"&&s==="stacked"&&o===!0)&&a.reverse(),a},DCe=function(t){return uc(t.map(function(r){return{id:r.data.indexValue,label:r.data.indexValue,color:r.color,fill:r.data.fill}}),function(r){var i=r.id;return i})},ECe=function(t){var r=t.from,i=t.bars,s=t.layout,o=t.direction,a=t.groupMode,n=t.reverse;return r==="indexes"?DCe(i):ACe(i,s,o,a,n)};function ky(e){for(var t=1;t0&&ce0&&ye0&&(this.ctx.lineWidth=S.grid.line.strokeWidth,this.ctx.strokeStyle=S.grid.line.stroke,O&&Gl(this.ctx,{width:u,height:f,scale:B.xScale,axis:"x",values:R}),$&&Gl(this.ctx,{width:u,height:f,scale:B.yScale,axis:"y",values:P})),this.ctx.strokeStyle="#dddddd";var N=uc(B.bars.map(function(F){return{id:F.data.id,label:F.data.id,color:F.color,fill:F.data.fill}}).reverse(),function(F){var E=F.id;return E}),j=uc(B.bars.map(function(F){return{id:F.data.indexValue,label:F.data.indexValue,color:F.color,fill:F.data.fill}}),function(F){var E=F.id;return E});D.forEach(function(F){var E;if(F.dataFrom==="keys"?E=N:F.dataFrom==="indexes"&&(E=j),E===void 0)return null;Xx(s.ctx,v5({},F,{data:E,containerWidth:u,containerHeight:f,itemTextColor:"#999",symbolSize:16,theme:S}))}),Ax(this.ctx,{xScale:B.xScale,yScale:B.yScale,width:u,height:f,top:_,right:x,bottom:k,left:T,theme:S}),B.bars.forEach(function(F){var E=F.x,W=F.y,H=F.color,L=F.width,q=F.height;s.ctx.fillStyle=H,C>0&&(s.ctx.strokeStyle=A(F),s.ctx.lineWidth=C),s.ctx.beginPath(),s.ctx.rect(E,W,L,q),s.ctx.fill(),C>0&&s.ctx.stroke()})}},{key:"render",value:function(){var i=this,s=this.props,o=s.outerWidth,a=s.outerHeight,n=s.pixelRatio,l=s.isInteractive,c=s.theme;return tt.createElement(Ch,{isInteractive:l,theme:c,animate:!1},function(u){var f=u.showTooltip,d=u.hideTooltip;return tt.createElement("canvas",{ref:function(h){i.surface=h},width:o*n,height:a*n,style:{width:o,height:a},onMouseEnter:i.handleMouseHover(f,d),onMouseMove:i.handleMouseHover(f,d),onMouseLeave:i.handleMouseLeave(d),onClick:i.handleClick})})}}]),t}($e.Component);i9.propTypes=t9;var ZCe=ax("BarCanvas")(n9(i9));function Oy(){return Oy=Object.assign||function(e){for(var t=1;tEe.jsx(Ma,{sx:{maxWidth:200,height:50},children:Ee.jsx(KCe,{data:e.data[e.xField].map((t,r)=>({id:t,x:e.data[e.yField][r]})),margin:{top:3,right:3,bottom:3,left:3},indexBy:"id",keys:["x"],colors:[e.color],axisTop:null,axisRight:null,enableGridX:!1,enableGridY:!1})}),QCe=JCe,e4e=e=>e.type??"graph",w5=(e,t,r)=>{switch(e4e(t)){case"graph":{const i=()=>e.getAdditionGraphData(t.id),s=o=>Ee.jsx(Kd,{...o,widgetSize:r});return Ee.jsx(mv,{func:i,children:s})}case"widget":{const i=()=>e.getAdditionWidgetData(t.id),s=o=>$c(t.id,o);return Ee.jsx(mv,{func:i,children:s})}default:return Ee.jsx(r4,{})}},o2=e=>Ee.jsx(lP.Consumer,{children:t=>Ee.jsxs(Ma,{children:[e.details.parts.length>1?Ee.jsx(Qy,{tabs:e.details.parts.map(r=>({title:r.title,tab:w5(t,r,e.widgetSize)}))}):w5(t,e.details.parts[0],e.widgetSize),e.details.insights===void 0?Ee.jsx(Ee.Fragment,{}):e.details.insights.map(r=>Ee.jsx(JC,{data:r}))]})}),t4e=new Map([["line",(e,t)=>t[e.field]?Ee.jsx(H3e,{xField:e.options.xField,yField:e.options.yField,color:e.options.color,data:t[e.field]}):Ee.jsx("div",{})],["scatter",(e,t)=>t[e.field]?Ee.jsx(U5e,{xField:e.options.xField,yField:e.options.yField,color:e.options.color,data:t[e.field]}):Ee.jsx("div",{})],["histogram",(e,t)=>t[e.field]?Ee.jsx(QCe,{xField:e.options.xField,yField:e.options.yField,color:e.options.color,data:t[e.field]}):Ee.jsx("div",{})]]),_5=e=>e.map(t=>({def:t,gen:t4e.get(t.type??"string")})).map(({def:t,gen:r})=>r?{...t,type:void 0,render:i=>r(t,i)}:{...t,sorting:!0,defaultSort:t.sort,type:"string"}),n4e=e=>{const[t,r]=$e.useState({open:!1,anchorEl:void 0});return Ee.jsxs(Ma,{sx:{width:50},onClick:i=>r(s=>({open:!s.open,anchorEl:i.currentTarget})),children:[Ee.jsx(oP,{}),Ee.jsx(_C,{open:t.open,anchorEl:t.anchorEl,anchorOrigin:{horizontal:"left",vertical:"bottom"},children:Ee.jsx(lr,{p:1,children:e.longText})})]})},r4e=e=>{const{columns:t,data:r}=e,i={search:!0,showTitle:!1,minBodyHeight:"10vh",pageSize:e.rowsPerPage??5,detailPanelColumnStyle:{minWidth:42}};return Ee.jsx(tt.Fragment,{children:Ee.jsx(Ote,{columns:e.showInfoColumn??!1?[..._5(t),{title:"Info",render:s=>{var o,a,n;return Ee.jsx(tt.Fragment,{children:(o=s.details)!=null&&o.insights?Ee.jsx(n4e,{longText:`${(a=s.details)==null?void 0:a.insights[0].title}: ${(n=s.details)==null?void 0:n.insights[0].text}`}):Ee.jsx("div",{})})},width:50}]:[..._5(t)],data:r,detailPanel:({rowData:s})=>s.graphId?Ee.jsx(Lte,{graphId:s.graphId,widgetSize:e.widgetSize}):s.details?Ee.jsx(o2,{details:s.details,widgetSize:e.widgetSize}):null,options:i})})},a4e=e=>Ee.jsx(Qy,{tabs:e.tabs.map(t=>({title:t.title,tab:$c(e.id+"1",t.widget)}))});var l2={},i4e=yn;Object.defineProperty(l2,"__esModule",{value:!0});var o9=l2.default=void 0,o4e=i4e(Qr()),l4e=Ee,s4e=(0,o4e.default)((0,l4e.jsx)("path",{d:"m12 8-6 6 1.41 1.41L12 10.83l4.59 4.58L18 14l-6-6z"}),"ExpandLessSharp");o9=l2.default=s4e;var s2={},u4e=yn;Object.defineProperty(s2,"__esModule",{value:!0});var l9=s2.default=void 0,c4e=u4e(Qr()),f4e=Ee,d4e=(0,c4e.default)((0,f4e.jsx)("path",{d:"M16.59 8.59 12 13.17 7.41 8.59 6 10l6 6 6-6-1.41-1.41z"}),"ExpandMoreSharp");l9=s2.default=d4e;const p4e=e=>{const[t,r]=$e.useState(!1);return Ee.jsx(tt.Fragment,{children:Ee.jsxs(rr,{container:!0,spacing:2,justifyContent:"center",alignItems:"center",children:[Ee.jsxs(rr,{item:!0,xs:2,children:[Ee.jsx(lr,{variant:"h5",children:e.header}),Ee.jsx(lr,{variant:"subtitle1",children:e.description})]}),Ee.jsx(rr,{item:!0,xs:e.graph===void 0?10:5,children:Ee.jsxs(Wy,{children:[Ee.jsx(Hy,{children:Ee.jsxs(zu,{children:[Ee.jsx(Xa,{}),e.metricsValuesHeaders.map(i=>Ee.jsx(Xa,{children:i}))]})}),Ee.jsx(Uy,{children:e.metrics.map(i=>Ee.jsxs(zu,{children:[Ee.jsx(Xa,{children:i.label}),i.values.map(s=>Ee.jsx(Xa,{children:s}))]}))})]})}),e.graph===void 0?Ee.jsx(Ee.Fragment,{}):Ee.jsx(rr,{item:!0,xs:5,children:Ee.jsx(t4,{data:e.graph.data,layout:{...e.graph.layout,title:void 0},config:{responsive:!0},style:{width:"100%",minHeight:150+100*(1+e.widgetSize/2),maxHeight:250}})}),e.details===void 0||e.details.parts.length===0?Ee.jsx(Ee.Fragment,{}):Ee.jsxs(Ee.Fragment,{children:[Ee.jsx(rr,{item:!0,xs:12,children:Ee.jsx(si,{variant:"outlined",startIcon:t?Ee.jsx(o9,{}):Ee.jsx(l9,{}),onClick:()=>r(i=>!i),children:"Details"})}),Ee.jsx(rr,{item:!0,xs:12,children:Ee.jsx(Xd,{in:t,mountOnEnter:!0,unmountOnExit:!0,children:Ee.jsx(o2,{details:e.details,widgetSize:e.widgetSize})})})]})]})})};var u2={},h4e=yn;Object.defineProperty(u2,"__esModule",{value:!0});var s9=u2.default=void 0,g4e=h4e(Qr()),m4e=Ee,v4e=(0,g4e.default)((0,m4e.jsx)("path",{d:"m14 7-5 5 5 5V7z"}),"ArrowLeft");s9=u2.default=v4e;var c2={},y4e=yn;Object.defineProperty(c2,"__esModule",{value:!0});var u9=c2.default=void 0,b4e=y4e(Qr()),x4e=Ee,w4e=(0,b4e.default)((0,x4e.jsx)("path",{d:"m10 17 5-5-5-5v10z"}),"ArrowRight");u9=c2.default=w4e;const _4e=e=>{const[t,r]=tt.useState({page:0}),i=e.widgets.slice(t.page*e.pageSize,(t.page+1)*e.pageSize);return Ee.jsxs(n4,{children:[i.map((s,o)=>$c(`wi_${o}`,s)),Ee.jsxs(rr,{item:!0,xs:12,children:[Ee.jsx(si,{startIcon:Ee.jsx(s9,{}),disabled:t.page===0,onClick:()=>r(s=>({page:s.page-1})),children:"Previous"}),Ee.jsxs("span",{children:[t.page+1," / ",Math.round(e.widgets.length/e.pageSize)]}),Ee.jsx(si,{endIcon:Ee.jsx(u9,{}),disabled:t.page>=e.widgets.length/e.pageSize-1,onClick:()=>r(s=>({page:s.page+1})),children:"Next"})]})]})};function T4e(e,t){const r=t||{};return(e[e.length-1]===""?[...e,""]:e).join((r.padRight?" ":"")+","+(r.padLeft===!1?"":" ")).trim()}const k4e=/[ \t\n\f\r]/g;function S4e(e){return typeof e=="object"?e.type==="text"?T5(e.value):!1:T5(e)}function T5(e){return e.replace(k4e,"")===""}class Lc{constructor(t,r,i){this.property=t,this.normal=r,i&&(this.space=i)}}Lc.prototype.property={};Lc.prototype.normal={};Lc.prototype.space=null;function c9(e,t){const r={},i={};let s=-1;for(;++s4&&r.slice(0,4)==="data"&&A4e.test(t)){if(t.charAt(4)==="-"){const o=t.slice(5).replace(S5,L4e);i="data"+o.charAt(0).toUpperCase()+o.slice(1)}else{const o=t.slice(4);if(!S5.test(o)){let a=o.replace(D4e,R4e);a.charAt(0)!=="-"&&(a="-"+a),t="data"+a}}s=f2}return new s(i,t)}function R4e(e){return"-"+e.toLowerCase()}function L4e(e){return e.charAt(1).toUpperCase()}const I4e={classId:"classID",dataType:"datatype",itemId:"itemID",strokeDashArray:"strokeDasharray",strokeDashOffset:"strokeDashoffset",strokeLineCap:"strokeLinecap",strokeLineJoin:"strokeLinejoin",strokeMiterLimit:"strokeMiterlimit",typeOf:"typeof",xLinkActuate:"xlinkActuate",xLinkArcRole:"xlinkArcrole",xLinkHref:"xlinkHref",xLinkRole:"xlinkRole",xLinkShow:"xlinkShow",xLinkTitle:"xlinkTitle",xLinkType:"xlinkType",xmlnsXLink:"xmlnsXlink"},$4e=c9([p9,d9,m9,v9,O4e],"html"),y9=c9([p9,d9,m9,v9,P4e],"svg");function F4e(e){return e.join(" ").trim()}var d2={exports:{}},M5=/\/\*[^*]*\*+([^/*][^*]*\*+)*\//g,j4e=/\n/g,N4e=/^\s*/,B4e=/^(\*?[-#/*\\\w]+(\[[0-9a-z_-]+\])?)\s*/,z4e=/^:\s*/,q4e=/^((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]*?\)|[^};])+)/,W4e=/^[;\s]*/,U4e=/^\s+|\s+$/g,H4e=` +`,C5="/",O5="*",Po="",V4e="comment",G4e="declaration",Y4e=function(e,t){if(typeof e!="string")throw new TypeError("First argument must be a string");if(!e)return[];t=t||{};var r=1,i=1;function s(h){var m=h.match(j4e);m&&(r+=m.length);var y=h.lastIndexOf(H4e);i=~y?h.length-y:i+h.length}function o(){var h={line:r,column:i};return function(m){return m.position=new a(h),c(),m}}function a(h){this.start=h,this.end={line:r,column:i},this.source=t.source}a.prototype.content=e;function n(h){var m=new Error(t.source+":"+r+":"+i+": "+h);if(m.reason=h,m.filename=t.source,m.line=r,m.column=i,m.source=e,!t.silent)throw m}function l(h){var m=h.exec(e);if(m){var y=m[0];return s(y),e=e.slice(y.length),m}}function c(){l(N4e)}function u(h){var m;for(h=h||[];m=f();)m!==!1&&h.push(m);return h}function f(){var h=o();if(!(C5!=e.charAt(0)||O5!=e.charAt(1))){for(var m=2;Po!=e.charAt(m)&&(O5!=e.charAt(m)||C5!=e.charAt(m+1));)++m;if(m+=2,Po===e.charAt(m-1))return n("End of comment missing");var y=e.slice(2,m-2);return i+=2,s(y),e=e.slice(m),i+=2,h({type:V4e,comment:y})}}function d(){var h=o(),m=l(B4e);if(m){if(f(),!l(z4e))return n("property missing ':'");var y=l(q4e),v=h({type:G4e,property:P5(m[0].replace(M5,Po)),value:y?P5(y[0].replace(M5,Po)):Po});return l(W4e),v}}function p(){var h=[];u(h);for(var m;m=d();)m!==!1&&(h.push(m),u(h));return h}return c(),p()};function P5(e){return e?e.replace(U4e,Po):Po}var X4e=Y4e;function b9(e,t){var r=null;if(!e||typeof e!="string")return r;for(var i,s=X4e(e),o=typeof t=="function",a,n,l=0,c=s.length;l0&&typeof i.column=="number"&&i.column>0)return{line:i.line,column:i.column,offset:typeof i.offset=="number"&&i.offset>-1?i.offset:void 0}}}function J4e(e){const t=p2(e),r=x9(e);if(t&&r)return{start:t,end:r}}function $u(e){return!e||typeof e!="object"?"":"position"in e||"type"in e?A5(e.position):"start"in e||"end"in e?A5(e):"line"in e||"column"in e?Dy(e):""}function Dy(e){return D5(e&&e.line)+":"+D5(e&&e.column)}function A5(e){return Dy(e&&e.start)+"-"+Dy(e&&e.end)}function D5(e){return e&&typeof e=="number"?e:1}class Oa extends Error{constructor(t,r,i){super(),typeof r=="string"&&(i=r,r=void 0);let s="",o={},a=!1;if(r&&("line"in r&&"column"in r?o={place:r}:"start"in r&&"end"in r?o={place:r}:"type"in r?o={ancestors:[r],place:r.position}:o={...r}),typeof t=="string"?s=t:!o.cause&&t&&(a=!0,s=t.message,o.cause=t),!o.ruleId&&!o.source&&typeof i=="string"){const l=i.indexOf(":");l===-1?o.ruleId=i:(o.source=i.slice(0,l),o.ruleId=i.slice(l+1))}if(!o.place&&o.ancestors&&o.ancestors){const l=o.ancestors[o.ancestors.length-1];l&&(o.place=l.position)}const n=o.place&&"start"in o.place?o.place.start:o.place;this.ancestors=o.ancestors||void 0,this.cause=o.cause||void 0,this.column=n?n.column:void 0,this.fatal=void 0,this.file,this.message=s,this.line=n?n.line:void 0,this.name=$u(o.place)||"1:1",this.place=o.place||void 0,this.reason=this.message,this.ruleId=o.ruleId||void 0,this.source=o.source||void 0,this.stack=a&&o.cause&&typeof o.cause.stack=="string"?o.cause.stack:"",this.actual,this.expected,this.note,this.url}}Oa.prototype.file="";Oa.prototype.name="";Oa.prototype.reason="";Oa.prototype.message="";Oa.prototype.stack="";Oa.prototype.column=void 0;Oa.prototype.line=void 0;Oa.prototype.ancestors=void 0;Oa.prototype.cause=void 0;Oa.prototype.fatal=void 0;Oa.prototype.place=void 0;Oa.prototype.ruleId=void 0;Oa.prototype.source=void 0;const h2={}.hasOwnProperty,Q4e=new Map,e6e=/[A-Z]/g,t6e=/-([a-z])/g,n6e=new Set(["table","tbody","thead","tfoot","tr"]),r6e=new Set(["td","th"]);function a6e(e,t){if(!t||t.Fragment===void 0)throw new TypeError("Expected `Fragment` in options");const r=t.filePath||void 0;let i;if(t.development){if(typeof t.jsxDEV!="function")throw new TypeError("Expected `jsxDEV` in options when `development: true`");i=o6e(r,t.jsxDEV)}else{if(typeof t.jsx!="function")throw new TypeError("Expected `jsx` in production options");if(typeof t.jsxs!="function")throw new TypeError("Expected `jsxs` in production options");i=i6e(r,t.jsx,t.jsxs)}const s={Fragment:t.Fragment,ancestors:[],components:t.components||{},create:i,elementAttributeNameCase:t.elementAttributeNameCase||"react",filePath:r,ignoreInvalidStyle:t.ignoreInvalidStyle||!1,passKeys:t.passKeys!==!1,passNode:t.passNode||!1,schema:t.space==="svg"?y9:$4e,stylePropertyNameCase:t.stylePropertyNameCase||"dom",tableCellAlignToStyle:t.tableCellAlignToStyle!==!1},o=_9(s,e,void 0);return o&&typeof o!="string"?o:s.create(e,s.Fragment,{children:o||void 0},void 0)}function _9(e,t,r){if(t.type==="element"||t.type==="root"){const i=e.schema;let s=i;t.type==="element"&&t.tagName.toLowerCase()==="svg"&&i.space==="html"&&(s=y9,e.schema=s),e.ancestors.push(t);let o=l6e(e,t);const a=s6e(e,e.ancestors);let n=e.Fragment;if(e.ancestors.pop(),t.type==="element")if(o&&n6e.has(t.tagName)&&(o=o.filter(function(l){return typeof l=="string"?!S4e(l):!0})),h2.call(e.components,t.tagName)){const l=t.tagName;n=e.components[l],typeof n!="string"&&n!==e.Fragment&&e.passNode&&(a.node=t)}else n=t.tagName;if(o.length>0){const l=o.length>1?o:o[0];l&&(a.children=l)}return e.schema=i,e.create(t,n,a,r)}if(t.type==="text")return t.value}function i6e(e,t,r){return i;function i(s,o,a,n){const c=Array.isArray(a.children)?r:t;return n?c(o,a,n):c(o,a)}}function o6e(e,t){return r;function r(i,s,o,a){const n=Array.isArray(o.children),l=p2(i);return t(s,o,a,n,{columnNumber:l?l.column-1:void 0,fileName:e,lineNumber:l?l.line:void 0},void 0)}}function l6e(e,t){const r=[];let i=-1;const s=e.passKeys?new Map:Q4e;for(;++i-1&&e.test(String.fromCharCode(r))}}const x6e={'"':"quot","&":"amp","<":"lt",">":"gt"};function w6e(e){return e.replace(/["&<>]/g,t);function t(r){return"&"+x6e[r]+";"}}function _6e(e,t){const r=w6e(cl(e||""));if(!t)return r;const i=r.indexOf(":"),s=r.indexOf("?"),o=r.indexOf("#"),a=r.indexOf("/");return i<0||a>-1&&i>a||s>-1&&i>s||o>-1&&i>o||t.test(r.slice(0,i))?r:""}function cl(e){const t=[];let r=-1,i=0,s=0;for(;++r55295&&o<57344){const n=e.charCodeAt(r+1);o<56320&&n>56319&&n<57344?(a=String.fromCharCode(o,n),s=1):a="�"}else a=String.fromCharCode(o);a&&(t.push(e.slice(i,r),encodeURIComponent(a)),i=r+s+1,a=""),s&&(r+=s,s=0)}return t.join("")+e.slice(i)}const T6e={};function k6e(e,t){const r=t||T6e,i=typeof r.includeImageAlt=="boolean"?r.includeImageAlt:!0,s=typeof r.includeHtml=="boolean"?r.includeHtml:!0;return k9(e,i,s)}function k9(e,t,r){if(S6e(e)){if("value"in e)return e.type==="html"&&!r?"":e.value;if(t&&"alt"in e&&e.alt)return e.alt;if("children"in e)return E5(e.children,t,r)}return Array.isArray(e)?E5(e,t,r):""}function E5(e,t,r){const i=[];let s=-1;for(;++ss?0:s+t:t=t>s?s:t,r=r>0?r:0,i.length<1e4)a=Array.from(i),a.unshift(t,r),e.splice(...a);else for(r&&e.splice(t,r);o0?(ki(e,e.length,0,t),e):t}const L5={}.hasOwnProperty;function M6e(e){const t={};let r=-1;for(;++r13&&r<32||r>126&&r<160||r>55295&&r<57344||r>64975&&r<65008||(r&65535)===65535||(r&65535)===65534||r>1114111?"�":String.fromCharCode(r)}function Dl(e){return e.replace(/[\t\n\r ]+/g," ").replace(/^ | $/g,"").toLowerCase().toUpperCase()}function Cr(e,t,r,i){const s=i?i-1:Number.POSITIVE_INFINITY;let o=0;return a;function a(l){return cr(l)?(e.enter(r),n(l)):t(l)}function n(l){return cr(l)&&o++a))return;const k=t.events.length;let T=k,S,M;for(;T--;)if(t.events[T][0]==="exit"&&t.events[T][1].type==="chunkFlow"){if(S){M=t.events[T][1].end;break}S=!0}for(v(i),x=k;xb;){const _=r[w];t.containerState=_[1],_[0].exit.call(t,e)}r.length=b}function g(){s.write([null]),o=void 0,s=void 0,t.containerState._closeFlow=void 0}}function R6e(e,t,r){return Cr(e,e.attempt(this.parser.constructs.document,t,r),"linePrefix",this.parser.constructs.disable.null.includes("codeIndented")?void 0:4)}function $5(e){if(e===null||Ra(e)||b6e(e))return 1;if(y6e(e))return 2}function m2(e,t,r){const i=[];let s=-1;for(;++s1&&e[r][1].end.offset-e[r][1].start.offset>1?2:1;const f=Object.assign({},e[i][1].end),d=Object.assign({},e[r][1].start);F5(f,-l),F5(d,l),a={type:l>1?"strongSequence":"emphasisSequence",start:f,end:Object.assign({},e[i][1].end)},n={type:l>1?"strongSequence":"emphasisSequence",start:Object.assign({},e[r][1].start),end:d},o={type:l>1?"strongText":"emphasisText",start:Object.assign({},e[i][1].end),end:Object.assign({},e[r][1].start)},s={type:l>1?"strong":"emphasis",start:Object.assign({},a.start),end:Object.assign({},n.end)},e[i][1].end=Object.assign({},a.start),e[r][1].start=Object.assign({},n.end),c=[],e[i][1].end.offset-e[i][1].start.offset&&(c=Ga(c,[["enter",e[i][1],t],["exit",e[i][1],t]])),c=Ga(c,[["enter",s,t],["enter",a,t],["exit",a,t],["enter",o,t]]),c=Ga(c,m2(t.parser.constructs.insideSpan.null,e.slice(i+1,r),t)),c=Ga(c,[["exit",o,t],["enter",n,t],["exit",n,t],["exit",s,t]]),e[r][1].end.offset-e[r][1].start.offset?(u=2,c=Ga(c,[["enter",e[r][1],t],["exit",e[r][1],t]])):u=0,ki(e,i-1,r-i+3,c),r=i+c.length-u-2;break}}for(r=-1;++r0&&cr(x)?Cr(e,g,"linePrefix",o+1)(x):g(x)}function g(x){return x===null||qn(x)?e.check(j5,m,w)(x):(e.enter("codeFlowValue"),b(x))}function b(x){return x===null||qn(x)?(e.exit("codeFlowValue"),g(x)):(e.consume(x),b)}function w(x){return e.exit("codeFenced"),t(x)}function _(x,k,T){let S=0;return M;function M(R){return x.enter("lineEnding"),x.consume(R),x.exit("lineEnding"),C}function C(R){return x.enter("codeFencedFence"),cr(R)?Cr(x,A,"linePrefix",i.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(R):A(R)}function A(R){return R===n?(x.enter("codeFencedFenceSequence"),D(R)):T(R)}function D(R){return R===n?(S++,x.consume(R),D):S>=a?(x.exit("codeFencedFenceSequence"),cr(R)?Cr(x,O,"whitespace")(R):O(R)):T(R)}function O(R){return R===null||qn(R)?(x.exit("codeFencedFence"),k(R)):T(R)}}}function H6e(e,t,r){const i=this;return s;function s(a){return a===null?r(a):(e.enter("lineEnding"),e.consume(a),e.exit("lineEnding"),o)}function o(a){return i.parser.lazy[i.now().line]?r(a):t(a)}}const B0={name:"codeIndented",tokenize:G6e},V6e={tokenize:Y6e,partial:!0};function G6e(e,t,r){const i=this;return s;function s(c){return e.enter("codeIndented"),Cr(e,o,"linePrefix",4+1)(c)}function o(c){const u=i.events[i.events.length-1];return u&&u[1].type==="linePrefix"&&u[2].sliceSerialize(u[1],!0).length>=4?a(c):r(c)}function a(c){return c===null?l(c):qn(c)?e.attempt(V6e,a,l)(c):(e.enter("codeFlowValue"),n(c))}function n(c){return c===null||qn(c)?(e.exit("codeFlowValue"),a(c)):(e.consume(c),n)}function l(c){return e.exit("codeIndented"),t(c)}}function Y6e(e,t,r){const i=this;return s;function s(a){return i.parser.lazy[i.now().line]?r(a):qn(a)?(e.enter("lineEnding"),e.consume(a),e.exit("lineEnding"),s):Cr(e,o,"linePrefix",4+1)(a)}function o(a){const n=i.events[i.events.length-1];return n&&n[1].type==="linePrefix"&&n[2].sliceSerialize(n[1],!0).length>=4?t(a):qn(a)?s(a):r(a)}}const X6e={name:"codeText",tokenize:J6e,resolve:Z6e,previous:K6e};function Z6e(e){let t=e.length-4,r=3,i,s;if((e[r][1].type==="lineEnding"||e[r][1].type==="space")&&(e[t][1].type==="lineEnding"||e[t][1].type==="space")){for(i=r;++i=4?t(a):e.interrupt(i.parser.constructs.flow,r,t)(a)}}function A9(e,t,r,i,s,o,a,n,l){const c=l||Number.POSITIVE_INFINITY;let u=0;return f;function f(v){return v===60?(e.enter(i),e.enter(s),e.enter(o),e.consume(v),e.exit(o),d):v===null||v===32||v===41||Ey(v)?r(v):(e.enter(i),e.enter(a),e.enter(n),e.enter("chunkString",{contentType:"string"}),m(v))}function d(v){return v===62?(e.enter(o),e.consume(v),e.exit(o),e.exit(s),e.exit(i),t):(e.enter(n),e.enter("chunkString",{contentType:"string"}),p(v))}function p(v){return v===62?(e.exit("chunkString"),e.exit(n),d(v)):v===null||v===60||qn(v)?r(v):(e.consume(v),v===92?h:p)}function h(v){return v===60||v===62||v===92?(e.consume(v),p):p(v)}function m(v){return!u&&(v===null||v===41||Ra(v))?(e.exit("chunkString"),e.exit(n),e.exit(a),e.exit(i),t(v)):u999||p===null||p===91||p===93&&!l||p===94&&!n&&"_hiddenFootnoteSupport"in a.parser.constructs?r(p):p===93?(e.exit(o),e.enter(s),e.consume(p),e.exit(s),e.exit(i),t):qn(p)?(e.enter("lineEnding"),e.consume(p),e.exit("lineEnding"),u):(e.enter("chunkString",{contentType:"string"}),f(p))}function f(p){return p===null||p===91||p===93||qn(p)||n++>999?(e.exit("chunkString"),u(p)):(e.consume(p),l||(l=!cr(p)),p===92?d:f)}function d(p){return p===91||p===92||p===93?(e.consume(p),n++,f):f(p)}}function E9(e,t,r,i,s,o){let a;return n;function n(d){return d===34||d===39||d===40?(e.enter(i),e.enter(s),e.consume(d),e.exit(s),a=d===40?41:d,l):r(d)}function l(d){return d===a?(e.enter(s),e.consume(d),e.exit(s),e.exit(i),t):(e.enter(o),c(d))}function c(d){return d===a?(e.exit(o),l(a)):d===null?r(d):qn(d)?(e.enter("lineEnding"),e.consume(d),e.exit("lineEnding"),Cr(e,c,"linePrefix")):(e.enter("chunkString",{contentType:"string"}),u(d))}function u(d){return d===a||d===null||qn(d)?(e.exit("chunkString"),c(d)):(e.consume(d),d===92?f:u)}function f(d){return d===a||d===92?(e.consume(d),u):u(d)}}function Fu(e,t){let r;return i;function i(s){return qn(s)?(e.enter("lineEnding"),e.consume(s),e.exit("lineEnding"),r=!0,i):cr(s)?Cr(e,i,r?"linePrefix":"lineSuffix")(s):t(s)}}const iOe={name:"definition",tokenize:lOe},oOe={tokenize:sOe,partial:!0};function lOe(e,t,r){const i=this;let s;return o;function o(p){return e.enter("definition"),a(p)}function a(p){return D9.call(i,e,n,r,"definitionLabel","definitionLabelMarker","definitionLabelString")(p)}function n(p){return s=Dl(i.sliceSerialize(i.events[i.events.length-1][1]).slice(1,-1)),p===58?(e.enter("definitionMarker"),e.consume(p),e.exit("definitionMarker"),l):r(p)}function l(p){return Ra(p)?Fu(e,c)(p):c(p)}function c(p){return A9(e,u,r,"definitionDestination","definitionDestinationLiteral","definitionDestinationLiteralMarker","definitionDestinationRaw","definitionDestinationString")(p)}function u(p){return e.attempt(oOe,f,f)(p)}function f(p){return cr(p)?Cr(e,d,"whitespace")(p):d(p)}function d(p){return p===null||qn(p)?(e.exit("definition"),i.parser.defined.push(s),t(p)):r(p)}}function sOe(e,t,r){return i;function i(n){return Ra(n)?Fu(e,s)(n):r(n)}function s(n){return E9(e,o,r,"definitionTitle","definitionTitleMarker","definitionTitleString")(n)}function o(n){return cr(n)?Cr(e,a,"whitespace")(n):a(n)}function a(n){return n===null||qn(n)?t(n):r(n)}}const uOe={name:"hardBreakEscape",tokenize:cOe};function cOe(e,t,r){return i;function i(o){return e.enter("hardBreakEscape"),e.consume(o),s}function s(o){return qn(o)?(e.exit("hardBreakEscape"),t(o)):r(o)}}const fOe={name:"headingAtx",tokenize:pOe,resolve:dOe};function dOe(e,t){let r=e.length-2,i=3,s,o;return e[i][1].type==="whitespace"&&(i+=2),r-2>i&&e[r][1].type==="whitespace"&&(r-=2),e[r][1].type==="atxHeadingSequence"&&(i===r-1||r-4>i&&e[r-2][1].type==="whitespace")&&(r-=i+1===r?2:4),r>i&&(s={type:"atxHeadingText",start:e[i][1].start,end:e[r][1].end},o={type:"chunkText",start:e[i][1].start,end:e[r][1].end,contentType:"text"},ki(e,i,r-i+1,[["enter",s,t],["enter",o,t],["exit",o,t],["exit",s,t]])),e}function pOe(e,t,r){let i=0;return s;function s(u){return e.enter("atxHeading"),o(u)}function o(u){return e.enter("atxHeadingSequence"),a(u)}function a(u){return u===35&&i++<6?(e.consume(u),a):u===null||Ra(u)?(e.exit("atxHeadingSequence"),n(u)):r(u)}function n(u){return u===35?(e.enter("atxHeadingSequence"),l(u)):u===null||qn(u)?(e.exit("atxHeading"),t(u)):cr(u)?Cr(e,n,"whitespace")(u):(e.enter("atxHeadingText"),c(u))}function l(u){return u===35?(e.consume(u),l):(e.exit("atxHeadingSequence"),n(u))}function c(u){return u===null||u===35||Ra(u)?(e.exit("atxHeadingText"),n(u)):(e.consume(u),c)}}const hOe=["address","article","aside","base","basefont","blockquote","body","caption","center","col","colgroup","dd","details","dialog","dir","div","dl","dt","fieldset","figcaption","figure","footer","form","frame","frameset","h1","h2","h3","h4","h5","h6","head","header","hr","html","iframe","legend","li","link","main","menu","menuitem","nav","noframes","ol","optgroup","option","p","param","search","section","summary","table","tbody","td","tfoot","th","thead","title","tr","track","ul"],B5=["pre","script","style","textarea"],gOe={name:"htmlFlow",tokenize:bOe,resolveTo:yOe,concrete:!0},mOe={tokenize:wOe,partial:!0},vOe={tokenize:xOe,partial:!0};function yOe(e){let t=e.length;for(;t--&&!(e[t][0]==="enter"&&e[t][1].type==="htmlFlow"););return t>1&&e[t-2][1].type==="linePrefix"&&(e[t][1].start=e[t-2][1].start,e[t+1][1].start=e[t-2][1].start,e.splice(t-2,2)),e}function bOe(e,t,r){const i=this;let s,o,a,n,l;return c;function c(E){return u(E)}function u(E){return e.enter("htmlFlow"),e.enter("htmlFlowData"),e.consume(E),f}function f(E){return E===33?(e.consume(E),d):E===47?(e.consume(E),o=!0,m):E===63?(e.consume(E),s=3,i.interrupt?t:N):_i(E)?(e.consume(E),a=String.fromCharCode(E),y):r(E)}function d(E){return E===45?(e.consume(E),s=2,p):E===91?(e.consume(E),s=5,n=0,h):_i(E)?(e.consume(E),s=4,i.interrupt?t:N):r(E)}function p(E){return E===45?(e.consume(E),i.interrupt?t:N):r(E)}function h(E){const W="CDATA[";return E===W.charCodeAt(n++)?(e.consume(E),n===W.length?i.interrupt?t:A:h):r(E)}function m(E){return _i(E)?(e.consume(E),a=String.fromCharCode(E),y):r(E)}function y(E){if(E===null||E===47||E===62||Ra(E)){const W=E===47,H=a.toLowerCase();return!W&&!o&&B5.includes(H)?(s=1,i.interrupt?t(E):A(E)):hOe.includes(a.toLowerCase())?(s=6,W?(e.consume(E),v):i.interrupt?t(E):A(E)):(s=7,i.interrupt&&!i.parser.lazy[i.now().line]?r(E):o?g(E):b(E))}return E===45||Ba(E)?(e.consume(E),a+=String.fromCharCode(E),y):r(E)}function v(E){return E===62?(e.consume(E),i.interrupt?t:A):r(E)}function g(E){return cr(E)?(e.consume(E),g):M(E)}function b(E){return E===47?(e.consume(E),M):E===58||E===95||_i(E)?(e.consume(E),w):cr(E)?(e.consume(E),b):M(E)}function w(E){return E===45||E===46||E===58||E===95||Ba(E)?(e.consume(E),w):_(E)}function _(E){return E===61?(e.consume(E),x):cr(E)?(e.consume(E),_):b(E)}function x(E){return E===null||E===60||E===61||E===62||E===96?r(E):E===34||E===39?(e.consume(E),l=E,k):cr(E)?(e.consume(E),x):T(E)}function k(E){return E===l?(e.consume(E),l=null,S):E===null||qn(E)?r(E):(e.consume(E),k)}function T(E){return E===null||E===34||E===39||E===47||E===60||E===61||E===62||E===96||Ra(E)?_(E):(e.consume(E),T)}function S(E){return E===47||E===62||cr(E)?b(E):r(E)}function M(E){return E===62?(e.consume(E),C):r(E)}function C(E){return E===null||qn(E)?A(E):cr(E)?(e.consume(E),C):r(E)}function A(E){return E===45&&s===2?(e.consume(E),$):E===60&&s===1?(e.consume(E),P):E===62&&s===4?(e.consume(E),j):E===63&&s===3?(e.consume(E),N):E===93&&s===5?(e.consume(E),B):qn(E)&&(s===6||s===7)?(e.exit("htmlFlowData"),e.check(mOe,F,D)(E)):E===null||qn(E)?(e.exit("htmlFlowData"),D(E)):(e.consume(E),A)}function D(E){return e.check(vOe,O,F)(E)}function O(E){return e.enter("lineEnding"),e.consume(E),e.exit("lineEnding"),R}function R(E){return E===null||qn(E)?D(E):(e.enter("htmlFlowData"),A(E))}function $(E){return E===45?(e.consume(E),N):A(E)}function P(E){return E===47?(e.consume(E),a="",z):A(E)}function z(E){if(E===62){const W=a.toLowerCase();return B5.includes(W)?(e.consume(E),j):A(E)}return _i(E)&&a.length<8?(e.consume(E),a+=String.fromCharCode(E),z):A(E)}function B(E){return E===93?(e.consume(E),N):A(E)}function N(E){return E===62?(e.consume(E),j):E===45&&s===2?(e.consume(E),N):A(E)}function j(E){return E===null||qn(E)?(e.exit("htmlFlowData"),F(E)):(e.consume(E),j)}function F(E){return e.exit("htmlFlow"),t(E)}}function xOe(e,t,r){const i=this;return s;function s(a){return qn(a)?(e.enter("lineEnding"),e.consume(a),e.exit("lineEnding"),o):r(a)}function o(a){return i.parser.lazy[i.now().line]?r(a):t(a)}}function wOe(e,t,r){return i;function i(s){return e.enter("lineEnding"),e.consume(s),e.exit("lineEnding"),e.attempt(ng,t,r)}}const _Oe={name:"htmlText",tokenize:TOe};function TOe(e,t,r){const i=this;let s,o,a;return n;function n(N){return e.enter("htmlText"),e.enter("htmlTextData"),e.consume(N),l}function l(N){return N===33?(e.consume(N),c):N===47?(e.consume(N),_):N===63?(e.consume(N),b):_i(N)?(e.consume(N),T):r(N)}function c(N){return N===45?(e.consume(N),u):N===91?(e.consume(N),o=0,h):_i(N)?(e.consume(N),g):r(N)}function u(N){return N===45?(e.consume(N),p):r(N)}function f(N){return N===null?r(N):N===45?(e.consume(N),d):qn(N)?(a=f,P(N)):(e.consume(N),f)}function d(N){return N===45?(e.consume(N),p):f(N)}function p(N){return N===62?$(N):N===45?d(N):f(N)}function h(N){const j="CDATA[";return N===j.charCodeAt(o++)?(e.consume(N),o===j.length?m:h):r(N)}function m(N){return N===null?r(N):N===93?(e.consume(N),y):qn(N)?(a=m,P(N)):(e.consume(N),m)}function y(N){return N===93?(e.consume(N),v):m(N)}function v(N){return N===62?$(N):N===93?(e.consume(N),v):m(N)}function g(N){return N===null||N===62?$(N):qn(N)?(a=g,P(N)):(e.consume(N),g)}function b(N){return N===null?r(N):N===63?(e.consume(N),w):qn(N)?(a=b,P(N)):(e.consume(N),b)}function w(N){return N===62?$(N):b(N)}function _(N){return _i(N)?(e.consume(N),x):r(N)}function x(N){return N===45||Ba(N)?(e.consume(N),x):k(N)}function k(N){return qn(N)?(a=k,P(N)):cr(N)?(e.consume(N),k):$(N)}function T(N){return N===45||Ba(N)?(e.consume(N),T):N===47||N===62||Ra(N)?S(N):r(N)}function S(N){return N===47?(e.consume(N),$):N===58||N===95||_i(N)?(e.consume(N),M):qn(N)?(a=S,P(N)):cr(N)?(e.consume(N),S):$(N)}function M(N){return N===45||N===46||N===58||N===95||Ba(N)?(e.consume(N),M):C(N)}function C(N){return N===61?(e.consume(N),A):qn(N)?(a=C,P(N)):cr(N)?(e.consume(N),C):S(N)}function A(N){return N===null||N===60||N===61||N===62||N===96?r(N):N===34||N===39?(e.consume(N),s=N,D):qn(N)?(a=A,P(N)):cr(N)?(e.consume(N),A):(e.consume(N),O)}function D(N){return N===s?(e.consume(N),s=void 0,R):N===null?r(N):qn(N)?(a=D,P(N)):(e.consume(N),D)}function O(N){return N===null||N===34||N===39||N===60||N===61||N===96?r(N):N===47||N===62||Ra(N)?S(N):(e.consume(N),O)}function R(N){return N===47||N===62||Ra(N)?S(N):r(N)}function $(N){return N===62?(e.consume(N),e.exit("htmlTextData"),e.exit("htmlText"),t):r(N)}function P(N){return e.exit("htmlTextData"),e.enter("lineEnding"),e.consume(N),e.exit("lineEnding"),z}function z(N){return cr(N)?Cr(e,B,"linePrefix",i.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(N):B(N)}function B(N){return e.enter("htmlTextData"),a(N)}}const v2={name:"labelEnd",tokenize:POe,resolveTo:OOe,resolveAll:COe},kOe={tokenize:AOe},SOe={tokenize:DOe},MOe={tokenize:EOe};function COe(e){let t=-1;for(;++t=3&&(c===null||qn(c))?(e.exit("thematicBreak"),t(c)):r(c)}function l(c){return c===s?(e.consume(c),i++,l):(e.exit("thematicBreakSequence"),cr(c)?Cr(e,n,"whitespace")(c):n(c))}}const Aa={name:"list",tokenize:zOe,continuation:{tokenize:qOe},exit:UOe},NOe={tokenize:HOe,partial:!0},BOe={tokenize:WOe,partial:!0};function zOe(e,t,r){const i=this,s=i.events[i.events.length-1];let o=s&&s[1].type==="linePrefix"?s[2].sliceSerialize(s[1],!0).length:0,a=0;return n;function n(p){const h=i.containerState.type||(p===42||p===43||p===45?"listUnordered":"listOrdered");if(h==="listUnordered"?!i.containerState.marker||p===i.containerState.marker:Ry(p)){if(i.containerState.type||(i.containerState.type=h,e.enter(h,{_container:!0})),h==="listUnordered")return e.enter("listItemPrefix"),p===42||p===45?e.check(Jf,r,c)(p):c(p);if(!i.interrupt||p===49)return e.enter("listItemPrefix"),e.enter("listItemValue"),l(p)}return r(p)}function l(p){return Ry(p)&&++a<10?(e.consume(p),l):(!i.interrupt||a<2)&&(i.containerState.marker?p===i.containerState.marker:p===41||p===46)?(e.exit("listItemValue"),c(p)):r(p)}function c(p){return e.enter("listItemMarker"),e.consume(p),e.exit("listItemMarker"),i.containerState.marker=i.containerState.marker||p,e.check(ng,i.interrupt?r:u,e.attempt(NOe,d,f))}function u(p){return i.containerState.initialBlankLine=!0,o++,d(p)}function f(p){return cr(p)?(e.enter("listItemPrefixWhitespace"),e.consume(p),e.exit("listItemPrefixWhitespace"),d):r(p)}function d(p){return i.containerState.size=o+i.sliceSerialize(e.exit("listItemPrefix"),!0).length,t(p)}}function qOe(e,t,r){const i=this;return i.containerState._closeFlow=void 0,e.check(ng,s,o);function s(n){return i.containerState.furtherBlankLines=i.containerState.furtherBlankLines||i.containerState.initialBlankLine,Cr(e,t,"listItemIndent",i.containerState.size+1)(n)}function o(n){return i.containerState.furtherBlankLines||!cr(n)?(i.containerState.furtherBlankLines=void 0,i.containerState.initialBlankLine=void 0,a(n)):(i.containerState.furtherBlankLines=void 0,i.containerState.initialBlankLine=void 0,e.attempt(BOe,t,a)(n))}function a(n){return i.containerState._closeFlow=!0,i.interrupt=void 0,Cr(e,e.attempt(Aa,t,r),"linePrefix",i.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(n)}}function WOe(e,t,r){const i=this;return Cr(e,s,"listItemIndent",i.containerState.size+1);function s(o){const a=i.events[i.events.length-1];return a&&a[1].type==="listItemIndent"&&a[2].sliceSerialize(a[1],!0).length===i.containerState.size?t(o):r(o)}}function UOe(e){e.exit(this.containerState.type)}function HOe(e,t,r){const i=this;return Cr(e,s,"listItemPrefixWhitespace",i.parser.constructs.disable.null.includes("codeIndented")?void 0:4+1);function s(o){const a=i.events[i.events.length-1];return!cr(o)&&a&&a[1].type==="listItemPrefixWhitespace"?t(o):r(o)}}const z5={name:"setextUnderline",tokenize:GOe,resolveTo:VOe};function VOe(e,t){let r=e.length,i,s,o;for(;r--;)if(e[r][0]==="enter"){if(e[r][1].type==="content"){i=r;break}e[r][1].type==="paragraph"&&(s=r)}else e[r][1].type==="content"&&e.splice(r,1),!o&&e[r][1].type==="definition"&&(o=r);const a={type:"setextHeading",start:Object.assign({},e[s][1].start),end:Object.assign({},e[e.length-1][1].end)};return e[s][1].type="setextHeadingText",o?(e.splice(s,0,["enter",a,t]),e.splice(o+1,0,["exit",e[i][1],t]),e[i][1].end=Object.assign({},e[o][1].end)):e[i][1]=a,e.push(["exit",a,t]),e}function GOe(e,t,r){const i=this;let s;return o;function o(c){let u=i.events.length,f;for(;u--;)if(i.events[u][1].type!=="lineEnding"&&i.events[u][1].type!=="linePrefix"&&i.events[u][1].type!=="content"){f=i.events[u][1].type==="paragraph";break}return!i.parser.lazy[i.now().line]&&(i.interrupt||f)?(e.enter("setextHeadingLine"),s=c,a(c)):r(c)}function a(c){return e.enter("setextHeadingLineSequence"),n(c)}function n(c){return c===s?(e.consume(c),n):(e.exit("setextHeadingLineSequence"),cr(c)?Cr(e,l,"lineSuffix")(c):l(c))}function l(c){return c===null||qn(c)?(e.exit("setextHeadingLine"),t(c)):r(c)}}const YOe={tokenize:XOe};function XOe(e){const t=this,r=e.attempt(ng,i,e.attempt(this.parser.constructs.flowInitial,s,Cr(e,e.attempt(this.parser.constructs.flow,s,e.attempt(eOe,s)),"linePrefix")));return r;function i(o){if(o===null){e.consume(o);return}return e.enter("lineEndingBlank"),e.consume(o),e.exit("lineEndingBlank"),t.currentConstruct=void 0,r}function s(o){if(o===null){e.consume(o);return}return e.enter("lineEnding"),e.consume(o),e.exit("lineEnding"),t.currentConstruct=void 0,r}}const ZOe={resolveAll:L9()},KOe=R9("string"),JOe=R9("text");function R9(e){return{tokenize:t,resolveAll:L9(e==="text"?QOe:void 0)};function t(r){const i=this,s=this.parser.constructs[e],o=r.attempt(s,a,n);return a;function a(u){return c(u)?o(u):n(u)}function n(u){if(u===null){r.consume(u);return}return r.enter("data"),r.consume(u),l}function l(u){return c(u)?(r.exit("data"),o(u)):(r.consume(u),l)}function c(u){if(u===null)return!0;const f=s[u];let d=-1;if(f)for(;++d-1){const n=a[0];typeof n=="string"?a[0]=n.slice(i):a.shift()}o>0&&a.push(e[s].slice(0,o))}return a}function nPe(e,t){let r=-1;const i=[];let s;for(;++r0){const fe=ye.tokenStack[ye.tokenStack.length-1];(fe[1]||W5).call(ye,void 0,fe[0])}for(ce.position={start:no(Se.length>0?Se[0][1].start:{line:1,column:1,offset:0}),end:no(Se.length>0?Se[Se.length-2][1].end:{line:1,column:1,offset:0})},ne=-1;++ne1?"-"+n:""),dataFootnoteRef:!0,ariaDescribedBy:["footnote-label"]},children:[{type:"text",value:String(a)}]};e.patch(t,l);const c={type:"element",tagName:"sup",properties:{},children:[l]};return e.patch(t,c),e.applyData(t,c)}function PPe(e,t){const r={type:"element",tagName:"h"+t.depth,properties:{},children:e.all(t)};return e.patch(t,r),e.applyData(t,r)}function APe(e,t){if(e.options.allowDangerousHtml){const r={type:"raw",value:t.value};return e.patch(t,r),e.applyData(t,r)}}function F9(e,t){const r=t.referenceType;let i="]";if(r==="collapsed"?i+="[]":r==="full"&&(i+="["+(t.label||t.identifier)+"]"),t.type==="imageReference")return[{type:"text",value:"!["+t.alt+i}];const s=e.all(t),o=s[0];o&&o.type==="text"?o.value="["+o.value:s.unshift({type:"text",value:"["});const a=s[s.length-1];return a&&a.type==="text"?a.value+=i:s.push({type:"text",value:i}),s}function DPe(e,t){const r=String(t.identifier).toUpperCase(),i=e.definitionById.get(r);if(!i)return F9(e,t);const s={src:cl(i.url||""),alt:t.alt};i.title!==null&&i.title!==void 0&&(s.title=i.title);const o={type:"element",tagName:"img",properties:s,children:[]};return e.patch(t,o),e.applyData(t,o)}function EPe(e,t){const r={src:cl(t.url)};t.alt!==null&&t.alt!==void 0&&(r.alt=t.alt),t.title!==null&&t.title!==void 0&&(r.title=t.title);const i={type:"element",tagName:"img",properties:r,children:[]};return e.patch(t,i),e.applyData(t,i)}function RPe(e,t){const r={type:"text",value:t.value.replace(/\r?\n|\r/g," ")};e.patch(t,r);const i={type:"element",tagName:"code",properties:{},children:[r]};return e.patch(t,i),e.applyData(t,i)}function LPe(e,t){const r=String(t.identifier).toUpperCase(),i=e.definitionById.get(r);if(!i)return F9(e,t);const s={href:cl(i.url||"")};i.title!==null&&i.title!==void 0&&(s.title=i.title);const o={type:"element",tagName:"a",properties:s,children:e.all(t)};return e.patch(t,o),e.applyData(t,o)}function IPe(e,t){const r={href:cl(t.url)};t.title!==null&&t.title!==void 0&&(r.title=t.title);const i={type:"element",tagName:"a",properties:r,children:e.all(t)};return e.patch(t,i),e.applyData(t,i)}function $Pe(e,t,r){const i=e.all(t),s=r?FPe(r):j9(t),o={},a=[];if(typeof t.checked=="boolean"){const u=i[0];let f;u&&u.type==="element"&&u.tagName==="p"?f=u:(f={type:"element",tagName:"p",properties:{},children:[]},i.unshift(f)),f.children.length>0&&f.children.unshift({type:"text",value:" "}),f.children.unshift({type:"element",tagName:"input",properties:{type:"checkbox",checked:t.checked,disabled:!0},children:[]}),o.className=["task-list-item"]}let n=-1;for(;++n1}function jPe(e,t){const r={},i=e.all(t);let s=-1;for(typeof t.start=="number"&&t.start!==1&&(r.start=t.start);++s0){const a={type:"element",tagName:"tbody",properties:{},children:e.wrap(r,!0)},n=p2(t.children[1]),l=x9(t.children[t.children.length-1]);n&&l&&(a.position={start:n,end:l}),s.push(a)}const o={type:"element",tagName:"table",properties:{},children:e.wrap(s,!0)};return e.patch(t,o),e.applyData(t,o)}function WPe(e,t,r){const i=r?r.children:void 0,o=(i?i.indexOf(t):1)===0?"th":"td",a=r&&r.type==="table"?r.align:void 0,n=a?a.length:t.children.length;let l=-1;const c=[];for(;++l0,!0),i[0]),s=i.index+i[0].length,i=r.exec(t);return o.push(V5(t.slice(s),s>0,!1)),o.join("")}function V5(e,t,r){let i=0,s=e.length;if(t){let o=e.codePointAt(i);for(;o===U5||o===H5;)i++,o=e.codePointAt(i)}if(r){let o=e.codePointAt(s-1);for(;o===U5||o===H5;)s--,o=e.codePointAt(s-1)}return s>i?e.slice(i,s):""}function VPe(e,t){const r={type:"text",value:HPe(String(t.value))};return e.patch(t,r),e.applyData(t,r)}function GPe(e,t){const r={type:"element",tagName:"hr",properties:{},children:[]};return e.patch(t,r),e.applyData(t,r)}const YPe={blockquote:TPe,break:kPe,code:SPe,delete:MPe,emphasis:CPe,footnoteReference:OPe,heading:PPe,html:APe,imageReference:DPe,image:EPe,inlineCode:RPe,linkReference:LPe,link:IPe,listItem:$Pe,list:jPe,paragraph:NPe,root:BPe,strong:zPe,table:qPe,tableCell:UPe,tableRow:WPe,text:VPe,thematicBreak:GPe,toml:Af,yaml:Af,definition:Af,footnoteDefinition:Af};function Af(){}const N9=-1,rg=0,Vd=1,Gd=2,y2=3,b2=4,x2=5,w2=6,B9=7,z9=8,G5=typeof self=="object"?self:globalThis,XPe=(e,t)=>{const r=(s,o)=>(e.set(o,s),s),i=s=>{if(e.has(s))return e.get(s);const[o,a]=t[s];switch(o){case rg:case N9:return r(a,s);case Vd:{const n=r([],s);for(const l of a)n.push(i(l));return n}case Gd:{const n=r({},s);for(const[l,c]of a)n[i(l)]=i(c);return n}case y2:return r(new Date(a),s);case b2:{const{source:n,flags:l}=a;return r(new RegExp(n,l),s)}case x2:{const n=r(new Map,s);for(const[l,c]of a)n.set(i(l),i(c));return n}case w2:{const n=r(new Set,s);for(const l of a)n.add(i(l));return n}case B9:{const{name:n,message:l}=a;return r(new G5[n](l),s)}case z9:return r(BigInt(a),s);case"BigInt":return r(Object(BigInt(a)),s)}return r(new G5[o](a),s)};return i},Y5=e=>XPe(new Map,e)(0),xl="",{toString:ZPe}={},{keys:KPe}=Object,Su=e=>{const t=typeof e;if(t!=="object"||!e)return[rg,t];const r=ZPe.call(e).slice(8,-1);switch(r){case"Array":return[Vd,xl];case"Object":return[Gd,xl];case"Date":return[y2,xl];case"RegExp":return[b2,xl];case"Map":return[x2,xl];case"Set":return[w2,xl]}return r.includes("Array")?[Vd,r]:r.includes("Error")?[B9,r]:[Gd,r]},Df=([e,t])=>e===rg&&(t==="function"||t==="symbol"),JPe=(e,t,r,i)=>{const s=(a,n)=>{const l=i.push(a)-1;return r.set(n,l),l},o=a=>{if(r.has(a))return r.get(a);let[n,l]=Su(a);switch(n){case rg:{let u=a;switch(l){case"bigint":n=z9,u=a.toString();break;case"function":case"symbol":if(e)throw new TypeError("unable to serialize "+l);u=null;break;case"undefined":return s([N9],a)}return s([n,u],a)}case Vd:{if(l)return s([l,[...a]],a);const u=[],f=s([n,u],a);for(const d of a)u.push(o(d));return f}case Gd:{if(l)switch(l){case"BigInt":return s([l,a.toString()],a);case"Boolean":case"Number":case"String":return s([l,a.valueOf()],a)}if(t&&"toJSON"in a)return o(a.toJSON());const u=[],f=s([n,u],a);for(const d of KPe(a))(e||!Df(Su(a[d])))&&u.push([o(d),o(a[d])]);return f}case y2:return s([n,a.toISOString()],a);case b2:{const{source:u,flags:f}=a;return s([n,{source:u,flags:f}],a)}case x2:{const u=[],f=s([n,u],a);for(const[d,p]of a)(e||!(Df(Su(d))||Df(Su(p))))&&u.push([o(d),o(p)]);return f}case w2:{const u=[],f=s([n,u],a);for(const d of a)(e||!Df(Su(d)))&&u.push(o(d));return f}}const{message:c}=a;return s([n,{name:l,message:c}],a)};return o},X5=(e,{json:t,lossy:r}={})=>{const i=[];return JPe(!(t||r),!!t,new Map,i)(e),i},Yd=typeof structuredClone=="function"?(e,t)=>t&&("json"in t||"lossy"in t)?Y5(X5(e,t)):structuredClone(e):(e,t)=>Y5(X5(e,t));function QPe(e,t){const r=[{type:"text",value:"↩"}];return t>1&&r.push({type:"element",tagName:"sup",properties:{},children:[{type:"text",value:String(t)}]}),r}function eAe(e,t){return"Back to reference "+(e+1)+(t>1?"-"+t:"")}function tAe(e){const t=typeof e.options.clobberPrefix=="string"?e.options.clobberPrefix:"user-content-",r=e.options.footnoteBackContent||QPe,i=e.options.footnoteBackLabel||eAe,s=e.options.footnoteLabel||"Footnotes",o=e.options.footnoteLabelTagName||"h2",a=e.options.footnoteLabelProperties||{className:["sr-only"]},n=[];let l=-1;for(;++l0&&h.push({type:"text",value:" "});let g=typeof r=="string"?r:r(l,p);typeof g=="string"&&(g={type:"text",value:g}),h.push({type:"element",tagName:"a",properties:{href:"#"+t+"fnref-"+d+(p>1?"-"+p:""),dataFootnoteBackref:"",ariaLabel:typeof i=="string"?i:i(l,p),className:["data-footnote-backref"]},children:Array.isArray(g)?g:[g]})}const y=u[u.length-1];if(y&&y.type==="element"&&y.tagName==="p"){const g=y.children[y.children.length-1];g&&g.type==="text"?g.value+=" ":y.children.push({type:"text",value:" "}),y.children.push(...h)}else u.push(...h);const v={type:"element",tagName:"li",properties:{id:t+"fn-"+d},children:e.wrap(u,!0)};e.patch(c,v),n.push(v)}if(n.length!==0)return{type:"element",tagName:"section",properties:{dataFootnotes:!0,className:["footnotes"]},children:[{type:"element",tagName:o,properties:{...Yd(a),id:"footnote-label"},children:[{type:"text",value:s}]},{type:"text",value:` +`},{type:"element",tagName:"ol",properties:{},children:e.wrap(n,!0)},{type:"text",value:` +`}]}}const q9=function(e){if(e==null)return iAe;if(typeof e=="function")return ag(e);if(typeof e=="object")return Array.isArray(e)?nAe(e):rAe(e);if(typeof e=="string")return aAe(e);throw new Error("Expected function, string, or object as test")};function nAe(e){const t=[];let r=-1;for(;++r":""))+")"})}return d;function d(){let p=W9,h,m,y;if((!t||o(l,c,u[u.length-1]||void 0))&&(p=cAe(r(l,u)),p[0]===Z5))return p;if("children"in l&&l.children){const v=l;if(v.children&&p[0]!==sAe)for(m=(i?v.children.length:-1)+a,y=u.concat(v);m>-1&&m0&&r.push({type:"text",value:` +`}),r}function K5(e){let t=0,r=e.charCodeAt(t);for(;r===9||r===32;)t++,r=e.charCodeAt(t);return e.slice(t)}function J5(e,t){const r=dAe(e,t),i=r.one(e,void 0),s=tAe(r),o=Array.isArray(i)?{type:"root",children:i}:i||{type:"root",children:[]};return s&&o.children.push({type:"text",value:` +`},s),o}function vAe(e,t){return e&&"run"in e?async function(r,i){const s=J5(r,t);await e.run(s,i)}:function(r){return J5(r,t||e)}}function Q5(e){if(e)throw e}var Qf=Object.prototype.hasOwnProperty,H9=Object.prototype.toString,eC=Object.defineProperty,tC=Object.getOwnPropertyDescriptor,nC=function(t){return typeof Array.isArray=="function"?Array.isArray(t):H9.call(t)==="[object Array]"},rC=function(t){if(!t||H9.call(t)!=="[object Object]")return!1;var r=Qf.call(t,"constructor"),i=t.constructor&&t.constructor.prototype&&Qf.call(t.constructor.prototype,"isPrototypeOf");if(t.constructor&&!r&&!i)return!1;var s;for(s in t);return typeof s>"u"||Qf.call(t,s)},aC=function(t,r){eC&&r.name==="__proto__"?eC(t,r.name,{enumerable:!0,configurable:!0,value:r.newValue,writable:!0}):t[r.name]=r.newValue},iC=function(t,r){if(r==="__proto__")if(Qf.call(t,r)){if(tC)return tC(t,r).value}else return;return t[r]},yAe=function e(){var t,r,i,s,o,a,n=arguments[0],l=1,c=arguments.length,u=!1;for(typeof n=="boolean"&&(u=n,n=arguments[1]||{},l=2),(n==null||typeof n!="object"&&typeof n!="function")&&(n={});la.length;let l;n&&a.push(s);try{l=e.apply(this,a)}catch(c){const u=c;if(n&&r)throw u;return s(u)}n||(l instanceof Promise?l.then(o,s):l instanceof Error?s(l):o(l))}function s(a,...n){r||(r=!0,t(a,...n))}function o(a){s(null,a)}}const vi={basename:wAe,dirname:_Ae,extname:TAe,join:kAe,sep:"/"};function wAe(e,t){if(t!==void 0&&typeof t!="string")throw new TypeError('"ext" argument must be a string');Ic(e);let r=0,i=-1,s=e.length,o;if(t===void 0||t.length===0||t.length>e.length){for(;s--;)if(e.codePointAt(s)===47){if(o){r=s+1;break}}else i<0&&(o=!0,i=s+1);return i<0?"":e.slice(r,i)}if(t===e)return"";let a=-1,n=t.length-1;for(;s--;)if(e.codePointAt(s)===47){if(o){r=s+1;break}}else a<0&&(o=!0,a=s+1),n>-1&&(e.codePointAt(s)===t.codePointAt(n--)?n<0&&(i=s):(n=-1,i=a));return r===i?i=a:i<0&&(i=e.length),e.slice(r,i)}function _Ae(e){if(Ic(e),e.length===0)return".";let t=-1,r=e.length,i;for(;--r;)if(e.codePointAt(r)===47){if(i){t=r;break}}else i||(i=!0);return t<0?e.codePointAt(0)===47?"/":".":t===1&&e.codePointAt(0)===47?"//":e.slice(0,t)}function TAe(e){Ic(e);let t=e.length,r=-1,i=0,s=-1,o=0,a;for(;t--;){const n=e.codePointAt(t);if(n===47){if(a){i=t+1;break}continue}r<0&&(a=!0,r=t+1),n===46?s<0?s=t:o!==1&&(o=1):s>-1&&(o=-1)}return s<0||r<0||o===0||o===1&&s===r-1&&s===i+1?"":e.slice(s,r)}function kAe(...e){let t=-1,r;for(;++t0&&e.codePointAt(e.length-1)===47&&(r+="/"),t?"/"+r:r}function MAe(e,t){let r="",i=0,s=-1,o=0,a=-1,n,l;for(;++a<=e.length;){if(a2){if(l=r.lastIndexOf("/"),l!==r.length-1){l<0?(r="",i=0):(r=r.slice(0,l),i=r.length-1-r.lastIndexOf("/")),s=a,o=0;continue}}else if(r.length>0){r="",i=0,s=a,o=0;continue}}t&&(r=r.length>0?r+"/..":"..",i=2)}else r.length>0?r+="/"+e.slice(s+1,a):r=e.slice(s+1,a),i=a-s-1;s=a,o=0}else n===46&&o>-1?o++:o=-1}return r}function Ic(e){if(typeof e!="string")throw new TypeError("Path must be a string. Received "+JSON.stringify(e))}const CAe={cwd:OAe};function OAe(){return"/"}function Fy(e){return!!(e!==null&&typeof e=="object"&&"href"in e&&e.href&&"protocol"in e&&e.protocol&&e.auth===void 0)}function PAe(e){if(typeof e=="string")e=new URL(e);else if(!Fy(e)){const t=new TypeError('The "path" argument must be of type string or an instance of URL. Received `'+e+"`");throw t.code="ERR_INVALID_ARG_TYPE",t}if(e.protocol!=="file:"){const t=new TypeError("The URL must be of scheme file");throw t.code="ERR_INVALID_URL_SCHEME",t}return AAe(e)}function AAe(e){if(e.hostname!==""){const i=new TypeError('File URL host must be "localhost" or empty on darwin');throw i.code="ERR_INVALID_FILE_URL_HOST",i}const t=e.pathname;let r=-1;for(;++r0){let[p,...h]=u;const m=i[d][1];$y(m)&&$y(p)&&(p=q0(!0,m,p)),i[d]=[c,p,...h]}}}}const LAe=new _2().freeze();function V0(e,t){if(typeof t!="function")throw new TypeError("Cannot `"+e+"` without `parser`")}function G0(e,t){if(typeof t!="function")throw new TypeError("Cannot `"+e+"` without `compiler`")}function Y0(e,t){if(t)throw new Error("Cannot call `"+e+"` on a frozen processor.\nCreate a new processor first, by calling it: use `processor()` instead of `processor`.")}function lC(e){if(!$y(e)||typeof e.type!="string")throw new TypeError("Expected node, got `"+e+"`")}function sC(e,t,r){if(!r)throw new Error("`"+e+"` finished async. Use `"+t+"` instead")}function Ef(e){return IAe(e)?e:new V9(e)}function IAe(e){return!!(e&&typeof e=="object"&&"message"in e&&"messages"in e)}function $Ae(e){return typeof e=="string"||FAe(e)}function FAe(e){return!!(e&&typeof e=="object"&&"byteLength"in e&&"byteOffset"in e)}const uC={}.hasOwnProperty,jAe="https://github.com/remarkjs/react-markdown/blob/main/changelog.md",cC=[],fC={allowDangerousHtml:!0},NAe=/^(https?|ircs?|mailto|xmpp)$/i,BAe=[{from:"astPlugins",id:"remove-buggy-html-in-markdown-parser"},{from:"allowDangerousHtml",id:"remove-buggy-html-in-markdown-parser"},{from:"allowNode",id:"replace-allownode-allowedtypes-and-disallowedtypes",to:"allowElement"},{from:"allowedTypes",id:"replace-allownode-allowedtypes-and-disallowedtypes",to:"allowedElements"},{from:"disallowedTypes",id:"replace-allownode-allowedtypes-and-disallowedtypes",to:"disallowedElements"},{from:"escapeHtml",id:"remove-buggy-html-in-markdown-parser"},{from:"includeElementIndex",id:"#remove-includeelementindex"},{from:"includeNodeIndex",id:"change-includenodeindex-to-includeelementindex"},{from:"linkTarget",id:"remove-linktarget"},{from:"plugins",id:"change-plugins-to-remarkplugins",to:"remarkPlugins"},{from:"rawSourcePos",id:"#remove-rawsourcepos"},{from:"renderers",id:"change-renderers-to-components",to:"components"},{from:"source",id:"change-source-to-children",to:"children"},{from:"sourcePos",id:"#remove-sourcepos"},{from:"transformImageUri",id:"#add-urltransform",to:"urlTransform"},{from:"transformLinkUri",id:"#add-urltransform",to:"urlTransform"}];function G9(e){const t=e.allowedElements,r=e.allowElement,i=e.children||"",s=e.className,o=e.components,a=e.disallowedElements,n=e.rehypePlugins||cC,l=e.remarkPlugins||cC,c=e.remarkRehypeOptions?{...e.remarkRehypeOptions,...fC}:fC,u=e.skipHtml,f=e.unwrapDisallowed,d=e.urlTransform||zAe,p=LAe().use(_Pe).use(l).use(vAe,c).use(n),h=new V9;typeof i=="string"&&(h.value=i);for(const g of BAe)Object.hasOwn(e,g.from)&&(""+g.from+(g.to?"use `"+g.to+"` instead":"remove it")+jAe+g.id,void 0);const m=p.parse(h);let y=p.runSync(m,h);return s&&(y={type:"element",tagName:"div",properties:{className:s},children:y.type==="root"?y.children:[y]}),U9(y,v),a6e(y,{Fragment:Ee.Fragment,components:o,ignoreInvalidStyle:!0,jsx:Ee.jsx,jsxs:Ee.jsxs,passKeys:!0,passNode:!0});function v(g,b,w){if(g.type==="raw"&&w&&typeof b=="number")return u?w.children.splice(b,1):w.children[b]={type:"text",value:g.value},b;if(g.type==="element"){let _;for(_ in N0)if(uC.call(N0,_)&&uC.call(g.properties,_)){const x=g.properties[_],k=N0[_];(k===null||k.includes(g.tagName))&&(g.properties[_]=d(String(x||""),_,g))}}if(g.type==="element"){let _=t?!t.includes(g.tagName):a?a.includes(g.tagName):!1;if(!_&&r&&typeof b=="number"&&(_=!r(g,b,w)),_&&w&&typeof b=="number")return f&&g.children?w.children.splice(b,1,...g.children):w.children.splice(b,1),b}}}function zAe(e){return _6e(e,NAe)}const qAe=e=>Ee.jsx(Ee.Fragment,{children:Ee.jsx(G9,{children:e.text})}),dC=["unknown","success","warning","fail"],Y9=e=>{switch(e){case"error":case"unknown":return"info";case"success":return"success";case"warning":return"warning";case"fail":return"error"}},X9=({title:e,description:t,state:r,details:i})=>{const[s,o]=$e.useState({active:!1}),a=i!=null&&i.parts.length>0;return dC.includes(r)||(console.error(`unexpected state: ${r} (expected one of [${dC.join(", ")}])`),r="unknown"),Ee.jsx(Ee.Fragment,{children:Ee.jsxs(Qa,{children:[Ee.jsxs(Zy,{severity:Y9(r),action:a?Ee.jsx(si,{onClick:()=>o(n=>({active:!n.active})),color:"inherit",size:"small",children:"Details"}):null,children:[Ee.jsx(Ky,{children:e}),Ee.jsx(G9,{children:t})]}),a?Ee.jsx(Xd,{in:s.active,mountOnEnter:!0,unmountOnExit:!0,children:Ee.jsx(Qa,{style:{padding:"2px"},children:Ee.jsx(o2,{details:i,widgetSize:2})})}):Ee.jsx(Ee.Fragment,{})]})})},WAe=({type:e,availableTypes:t,onChange:r})=>Ee.jsx(Ee.Fragment,{children:Ee.jsx(zy,{variant:"standard",value:e,onChange:i=>r(i.target.value),native:!0,children:t.map(i=>Ee.jsx("option",{value:i.id,children:i.title},i.id))})}),UAe=({groupInfo:e,tests:t})=>{const[r,i]=$e.useState({active:!1});return Ee.jsx(Ee.Fragment,{children:Ee.jsxs(Qa,{children:[Ee.jsxs(Zy,{severity:Y9(e.severity??"unknown"),icon:!1,action:Ee.jsx(si,{onClick:()=>i(s=>({active:!s.active})),color:"inherit",size:"small",children:r.active?"Hide":"Show"}),children:[Ee.jsx(Ky,{children:e.title}),e.description]}),Ee.jsx(Xd,{in:r.active,mountOnEnter:!0,unmountOnExit:!0,children:Ee.jsx(rr,{container:!0,spacing:2,style:{padding:10,paddingTop:20},children:t.map((s,o)=>Ee.jsx(rr,{item:!0,xs:12,children:Ee.jsx(X9,{...s})},o))})})]})})},HAe=({type:e,groupsInfo:t,tests:r})=>{function i(n){if(n==="status")return[t.find(u=>u.id===n).values,u=>u.state];const l=t.find(u=>u.id===n);if(l===void 0)throw"unexpected type";return[l.values.find(u=>u.id=="no group")!==void 0?l.values:[...l.values,{id:"no group",title:"No Group",sortIndex:-1,description:"No group of this type was provided"}],u=>u.groups[n]??"no group"]}const[s,o]=i(e),a=r.reduce((n,l)=>(n.set(o(l),[...n.get(o(l))??[],l]),n),new Map);return Ee.jsx(Ee.Fragment,{children:Ee.jsx(rr,{container:!0,spacing:2,children:Array.from(a.entries()).map(([n,l])=>[s.find(c=>c.id===n)??{id:n,title:n},l]).sort((n,l)=>(n[0].sortIndex??0)-(l[0].sortIndex??0)).map(([n,l],c)=>Ee.jsx(rr,{item:!0,xs:12,children:Ee.jsx(UAe,{groupInfo:n,tests:l})},`test_${c}`))})})},VAe=[{id:"none",title:"All tests",values:[]},{id:"status",title:"By test status",values:[{id:"success",title:"Passed tests",sortIndex:3,description:"",severity:"success"},{id:"fail",title:"Failed tests",sortIndex:1,description:"",severity:"fail"},{id:"warning",title:"Failed non-critical tests",sortIndex:2,description:"",severity:"warning"},{id:"error",title:"Tests with execution errors",sortIndex:2,description:"",severity:"error"}]}],GAe=({tests:e,testGroupTypes:t})=>{const[r,i]=tt.useState({group_type:"none"}),s=[];for(let a=0;au===c)===-1&&s.push(c)}const o=[...VAe,...(t??[]).filter(a=>s.findIndex(n=>n===a.id)!==-1)];return Ee.jsx(Ee.Fragment,{children:Ee.jsxs(rr,{container:!0,spacing:2,children:[Ee.jsx(rr,{item:!0,xs:12,children:Ee.jsx(WAe,{type:r.group_type,availableTypes:o,onChange:a=>i({group_type:a})})}),Ee.jsx(rr,{item:!0,xs:12,children:Ee.jsx(rr,{container:!0,spacing:2,children:r.group_type==="none"?e.map((a,n)=>Ee.jsx(rr,{item:!0,xs:12,children:Ee.jsx(X9,{...a})},`test_${n}`)):Ee.jsx(HAe,{type:r.group_type,groupsInfo:o,tests:e})})})]})})};function YAe(e){return e===If.Small?3:e===If.Medium?6:(e===If.Big,12)}function $c(e,t){let r=Ee.jsx(r4,{});if(t.type==="counter")r=Ee.jsx(HN,{...t.params});else if(t.type==="percent")r=Ee.jsx(VN,{...t.params});else if(t.type==="big_graph")r=Ee.jsx(Kd,{...t.params,widgetSize:t.size});else if(t.type==="tabbed_graph")r=Ee.jsx(KN,{...t.params,widgetSize:t.size});else if(t.type==="tabs")r=Ee.jsx(a4e,{...t,widgetSize:t.size,id:"twc_"});else if(t.type==="table")r=Ee.jsx(JN,{...t.params});else if(t.type==="big_table")r=Ee.jsx(r4e,{...t.params,widgetSize:t.size});else if(t.type==="group")r=Ee.jsx(n4,{children:t.widgets.map((i,s)=>$c(`wi_${s}`,i))});else if(t.type==="rich_data")r=Ee.jsx(p4e,{...t.params,widgetSize:t.size});else if(t.type==="list"){const i=t;r=Ee.jsx(_4e,{widgets:i.widgets,pageSize:i.pageSize,widgetSize:t.size})}else t.type==="text"?r=Ee.jsx(qAe,{...t.params}):t.type==="test_suite"&&(r=Ee.jsx(GAe,{...t.params}));return Ee.jsx(UN,{size:YAe(t.size),children:{...t,content:r}},e)}const s8e=e=>Ee.jsx(tt.Fragment,{children:e.info.widgets.map((t,r)=>$c(`wi_${r}`,t))});export{UI as C,_F as D,GC as I,oe as P,$F as a,OF as b,s8e as c,Du as d,lP as e,o8e as f,Jy as u}; diff --git a/src/evidently/ui/ui/static/js/Datetime-bd8955b4.js b/src/evidently/ui/ui/static/js/Datetime-bd8955b4.js new file mode 100644 index 0000000000..bb8257d9a2 --- /dev/null +++ b/src/evidently/ui/ui/static/js/Datetime-bd8955b4.js @@ -0,0 +1 @@ +function o(t){return typeof t!=typeof new Date?(console.log(`not a date ${typeof t}: ${t}`),t):`${t.getFullYear()}-${(t.getMonth()+1).toString().padStart(2,"0")}-${t.getDate().toString().padStart(2,"0")}T${t.getHours().toString().padStart(2,"0")}:${t.getMinutes().toString().padStart(2,"0")}`}export{o as f}; diff --git a/src/evidently/ui/ui/static/js/Edit-f207c17d.js b/src/evidently/ui/ui/static/js/Edit-f207c17d.js new file mode 100644 index 0000000000..87830626cb --- /dev/null +++ b/src/evidently/ui/ui/static/js/Edit-f207c17d.js @@ -0,0 +1 @@ +import{r,k as t}from"./createSvgIcon-41173291.js";import{j as a}from"./vendor-20fe28cb.js";var e={},u=t;Object.defineProperty(e,"__esModule",{value:!0});var o=e.default=void 0,i=u(r()),d=a,l=(0,i.default)((0,d.jsx)("path",{d:"M3 17.25V21h3.75L17.81 9.94l-3.75-3.75L3 17.25zM20.71 7.04c.39-.39.39-1.02 0-1.41l-2.34-2.34a.9959.9959 0 0 0-1.41 0l-1.83 1.83 3.75 3.75 1.83-1.83z"}),"Edit");o=e.default=l;export{e as E,o as d}; diff --git a/src/evidently/ui/ui/static/js/Grid-ec570cb4.js b/src/evidently/ui/ui/static/js/Grid-ec570cb4.js new file mode 100644 index 0000000000..c4c945c3f2 --- /dev/null +++ b/src/evidently/ui/ui/static/js/Grid-ec570cb4.js @@ -0,0 +1 @@ +import{g as K,a as O,s as T,_ as x,u as _,x as I,U as L,b as U,d as D,Q as S,P as k,e as Z}from"./createSvgIcon-41173291.js";import{e as b,j as N}from"./vendor-20fe28cb.js";const A=b.createContext(),z=A;function F(e){return K("MuiGrid",e)}const Q=[0,1,2,3,4,5,6,7,8,9,10],q=["column-reverse","column","row-reverse","row"],H=["nowrap","wrap-reverse","wrap"],g=["auto",!0,1,2,3,4,5,6,7,8,9,10,11,12],$=O("MuiGrid",["root","container","item","zeroMinWidth",...Q.map(e=>`spacing-xs-${e}`),...q.map(e=>`direction-xs-${e}`),...H.map(e=>`wrap-xs-${e}`),...g.map(e=>`grid-xs-${e}`),...g.map(e=>`grid-sm-${e}`),...g.map(e=>`grid-md-${e}`),...g.map(e=>`grid-lg-${e}`),...g.map(e=>`grid-xl-${e}`)]),J=["className","columns","columnSpacing","component","container","direction","item","rowSpacing","spacing","wrap","zeroMinWidth"];function m(e){const n=parseFloat(e);return`${n}${String(e).replace(String(n),"")||"px"}`}function X({theme:e,ownerState:n}){let i;return e.breakpoints.keys.reduce((t,r)=>{let s={};if(n[r]&&(i=n[r]),!i)return t;if(i===!0)s={flexBasis:0,flexGrow:1,maxWidth:"100%"};else if(i==="auto")s={flexBasis:"auto",flexGrow:0,flexShrink:0,maxWidth:"none",width:"auto"};else{const a=S({values:n.columns,breakpoints:e.breakpoints.values}),u=typeof a=="object"?a[r]:a;if(u==null)return t;const l=`${Math.round(i/u*1e8)/1e6}%`;let c={};if(n.container&&n.item&&n.columnSpacing!==0){const o=e.spacing(n.columnSpacing);if(o!=="0px"){const p=`calc(${l} + ${m(o)})`;c={flexBasis:p,maxWidth:p}}}s=x({flexBasis:l,flexGrow:0,maxWidth:l},c)}return e.breakpoints.values[r]===0?Object.assign(t,s):t[e.breakpoints.up(r)]=s,t},{})}function Y({theme:e,ownerState:n}){const i=S({values:n.direction,breakpoints:e.breakpoints.values});return k({theme:e},i,t=>{const r={flexDirection:t};return t.indexOf("column")===0&&(r[`& > .${$.item}`]={maxWidth:"none"}),r})}function B({breakpoints:e,values:n}){let i="";Object.keys(n).forEach(r=>{i===""&&n[r]!==0&&(i=r)});const t=Object.keys(e).sort((r,s)=>e[r]-e[s]);return t.slice(0,t.indexOf(i))}function ee({theme:e,ownerState:n}){const{container:i,rowSpacing:t}=n;let r={};if(i&&t!==0){const s=S({values:t,breakpoints:e.breakpoints.values});let a;typeof s=="object"&&(a=B({breakpoints:e.breakpoints.values,values:s})),r=k({theme:e},s,(u,l)=>{var c;const o=e.spacing(u);return o!=="0px"?{marginTop:`-${m(o)}`,[`& > .${$.item}`]:{paddingTop:m(o)}}:(c=a)!=null&&c.includes(l)?{}:{marginTop:0,[`& > .${$.item}`]:{paddingTop:0}}})}return r}function ne({theme:e,ownerState:n}){const{container:i,columnSpacing:t}=n;let r={};if(i&&t!==0){const s=S({values:t,breakpoints:e.breakpoints.values});let a;typeof s=="object"&&(a=B({breakpoints:e.breakpoints.values,values:s})),r=k({theme:e},s,(u,l)=>{var c;const o=e.spacing(u);return o!=="0px"?{width:`calc(100% + ${m(o)})`,marginLeft:`-${m(o)}`,[`& > .${$.item}`]:{paddingLeft:m(o)}}:(c=a)!=null&&c.includes(l)?{}:{width:"100%",marginLeft:0,[`& > .${$.item}`]:{paddingLeft:0}}})}return r}function re(e,n,i={}){if(!e||e<=0)return[];if(typeof e=="string"&&!Number.isNaN(Number(e))||typeof e=="number")return[i[`spacing-xs-${String(e)}`]];const t=[];return n.forEach(r=>{const s=e[r];Number(s)>0&&t.push(i[`spacing-${r}-${String(s)}`])}),t}const te=T("div",{name:"MuiGrid",slot:"Root",overridesResolver:(e,n)=>{const{ownerState:i}=e,{container:t,direction:r,item:s,spacing:a,wrap:u,zeroMinWidth:l,breakpoints:c}=i;let o=[];t&&(o=re(a,c,n));const p=[];return c.forEach(d=>{const f=i[d];f&&p.push(n[`grid-${d}-${String(f)}`])}),[n.root,t&&n.container,s&&n.item,l&&n.zeroMinWidth,...o,r!=="row"&&n[`direction-xs-${String(r)}`],u!=="wrap"&&n[`wrap-xs-${String(u)}`],...p]}})(({ownerState:e})=>x({boxSizing:"border-box"},e.container&&{display:"flex",flexWrap:"wrap",width:"100%"},e.item&&{margin:0},e.zeroMinWidth&&{minWidth:0},e.wrap!=="wrap"&&{flexWrap:e.wrap}),Y,ee,ne,X);function ie(e,n){if(!e||e<=0)return[];if(typeof e=="string"&&!Number.isNaN(Number(e))||typeof e=="number")return[`spacing-xs-${String(e)}`];const i=[];return n.forEach(t=>{const r=e[t];if(Number(r)>0){const s=`spacing-${t}-${String(r)}`;i.push(s)}}),i}const se=e=>{const{classes:n,container:i,direction:t,item:r,spacing:s,wrap:a,zeroMinWidth:u,breakpoints:l}=e;let c=[];i&&(c=ie(s,l));const o=[];l.forEach(d=>{const f=e[d];f&&o.push(`grid-${d}-${String(f)}`)});const p={root:["root",i&&"container",r&&"item",u&&"zeroMinWidth",...c,t!=="row"&&`direction-xs-${String(t)}`,a!=="wrap"&&`wrap-xs-${String(a)}`,...o]};return Z(p,F,n)},oe=b.forwardRef(function(n,i){const t=_({props:n,name:"MuiGrid"}),{breakpoints:r}=I(),s=L(t),{className:a,columns:u,columnSpacing:l,component:c="div",container:o=!1,direction:p="row",item:d=!1,rowSpacing:f,spacing:w=0,wrap:M="wrap",zeroMinWidth:V=!1}=s,v=U(s,J),j=f||w,P=l||w,E=b.useContext(z),G=o?u||12:E,W={},y=x({},v);r.keys.forEach(h=>{v[h]!=null&&(W[h]=v[h],delete y[h])});const C=x({},s,{columns:G,container:o,direction:p,item:d,rowSpacing:j,columnSpacing:P,wrap:M,zeroMinWidth:V,spacing:w},W,{breakpoints:r.keys}),R=se(C);return N.jsx(z.Provider,{value:G,children:N.jsx(te,x({ownerState:C,className:D(R.root,a),as:c,ref:i},y))})}),ue=oe;export{ue as G}; diff --git a/src/evidently/ui/ui/static/js/Link-9fdafac8.js b/src/evidently/ui/ui/static/js/Link-9fdafac8.js new file mode 100644 index 0000000000..b725468e18 --- /dev/null +++ b/src/evidently/ui/ui/static/js/Link-9fdafac8.js @@ -0,0 +1 @@ +import{a as B,g as j,F as y,n as M,s as N,T as P,c as h,_ as a,u as U,b as _,G as z,q as W,d as E,e as H}from"./createSvgIcon-41173291.js";import{e as x,j as q}from"./vendor-20fe28cb.js";function w(o){return j("MuiLink",o)}const G=B("MuiLink",["root","underlineNone","underlineHover","underlineAlways","button","focusVisible"]),I=G,g={primary:"primary.main",textPrimary:"text.primary",secondary:"secondary.main",textSecondary:"text.secondary",error:"error.main"},O=o=>g[o]||o,S=({theme:o,ownerState:e})=>{const n=O(e.color),s=y(o,`palette.${n}`,!1)||e.color,r=y(o,`palette.${n}Channel`);return"vars"in o&&r?`rgba(${r} / 0.4)`:M(s,.4)},J=S,K=["className","color","component","onBlur","onFocus","TypographyClasses","underline","variant","sx"],Q=o=>{const{classes:e,component:n,focusVisible:s,underline:r}=o,t={root:["root",`underline${h(r)}`,n==="button"&&"button",s&&"focusVisible"]};return H(t,w,e)},X=N(P,{name:"MuiLink",slot:"Root",overridesResolver:(o,e)=>{const{ownerState:n}=o;return[e.root,e[`underline${h(n.underline)}`],n.component==="button"&&e.button]}})(({theme:o,ownerState:e})=>a({},e.underline==="none"&&{textDecoration:"none"},e.underline==="hover"&&{textDecoration:"none","&:hover":{textDecoration:"underline"}},e.underline==="always"&&a({textDecoration:"underline"},e.color!=="inherit"&&{textDecorationColor:J({theme:o,ownerState:e})},{"&:hover":{textDecorationColor:"inherit"}}),e.component==="button"&&{position:"relative",WebkitTapHighlightColor:"transparent",backgroundColor:"transparent",outline:0,border:0,margin:0,borderRadius:0,padding:0,cursor:"pointer",userSelect:"none",verticalAlign:"middle",MozAppearance:"none",WebkitAppearance:"none","&::-moz-focus-inner":{borderStyle:"none"},[`&.${I.focusVisible}`]:{outline:"auto"}})),Y=x.forwardRef(function(e,n){const s=U({props:e,name:"MuiLink"}),{className:r,color:t="primary",component:c="a",onBlur:u,onFocus:p,TypographyClasses:C,underline:k="always",variant:d="inherit",sx:l}=s,F=_(s,K),{isFocusVisibleRef:f,onBlur:L,onFocus:V,ref:v}=z(),[R,m]=x.useState(!1),D=W(n,v),T=i=>{L(i),f.current===!1&&m(!1),u&&u(i)},$=i=>{V(i),f.current===!0&&m(!0),p&&p(i)},b=a({},s,{color:t,component:c,focusVisible:R,underline:k,variant:d}),A=Q(b);return q.jsx(X,a({color:t,className:E(A.root,r),classes:C,component:c,onBlur:T,onFocus:$,ref:D,ownerState:b,variant:d,sx:[...Object.keys(g).includes(t)?[]:[{color:t}],...Array.isArray(l)?l:[l]]},F))}),oe=Y;export{oe as L}; diff --git a/src/evidently/ui/ui/static/js/LocalizationProvider-f22c467c.js b/src/evidently/ui/ui/static/js/LocalizationProvider-f22c467c.js new file mode 100644 index 0000000000..1ae19af876 --- /dev/null +++ b/src/evidently/ui/ui/static/js/LocalizationProvider-f22c467c.js @@ -0,0 +1,3 @@ +import{d as tt,g as et,e as C,j as rt}from"./vendor-20fe28cb.js";import{b as nt,u as st,_ as it}from"./createSvgIcon-41173291.js";var R={exports:{}},Q;function at(){return Q||(Q=1,function(L,Y){(function(v,M){L.exports=M()})(tt,function(){var v=1e3,M=6e4,U=36e5,b="millisecond",D="second",w="minute",S="hour",m="day",T="week",h="month",H="quarter",y="year",g="date",x="Invalid Date",F=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,V=/\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,z={name:"en",weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),ordinal:function(s){var r=["th","st","nd","rd"],t=s%100;return"["+s+(r[(t-20)%10]||r[t]||r[0])+"]"}},Z=function(s,r,t){var n=String(s);return!n||n.length>=r?s:""+Array(r+1-n.length).join(t)+s},X={s:Z,z:function(s){var r=-s.utcOffset(),t=Math.abs(r),n=Math.floor(t/60),e=t%60;return(r<=0?"+":"-")+Z(n,2,"0")+":"+Z(e,2,"0")},m:function s(r,t){if(r.date()1)return s(a[0])}else{var u=r.name;O[u]=r,e=u}return!n&&e&&(W=e),e||!n&&W},d=function(s,r){if(q(s))return s.clone();var t=typeof r=="object"?r:{};return t.date=s,t.args=arguments,new N(t)},o=X;o.l=E,o.i=q,o.w=function(s,r){return d(s,{locale:r.$L,utc:r.$u,x:r.$x,$offset:r.$offset})};var N=function(){function s(t){this.$L=E(t.locale,null,!0),this.parse(t),this.$x=this.$x||t.x||{},this[B]=!0}var r=s.prototype;return r.parse=function(t){this.$d=function(n){var e=n.date,i=n.utc;if(e===null)return new Date(NaN);if(o.u(e))return new Date;if(e instanceof Date)return new Date(e);if(typeof e=="string"&&!/Z$/i.test(e)){var a=e.match(F);if(a){var u=a[2]-1||0,c=(a[7]||"0").substring(0,3);return i?new Date(Date.UTC(a[1],u,a[3]||1,a[4]||0,a[5]||0,a[6]||0,c)):new Date(a[1],u,a[3]||1,a[4]||0,a[5]||0,a[6]||0,c)}}return new Date(e)}(t),this.init()},r.init=function(){var t=this.$d;this.$y=t.getFullYear(),this.$M=t.getMonth(),this.$D=t.getDate(),this.$W=t.getDay(),this.$H=t.getHours(),this.$m=t.getMinutes(),this.$s=t.getSeconds(),this.$ms=t.getMilliseconds()},r.$utils=function(){return o},r.isValid=function(){return this.$d.toString()!==x},r.isSame=function(t,n){var e=d(t);return this.startOf(n)<=e&&e<=this.endOf(n)},r.isAfter=function(t,n){return d(t){let v=!1;const M=Array.isArray(L)?L.join(` +`):L;return()=>{v||(v=!0,Y==="error"?console.error(M):console.warn(M))}},ut=["localeText"],K=C.createContext(null),ht=function(Y){var v;const{localeText:M}=Y,U=nt(Y,ut),{utils:b,localeText:D}=(v=C.useContext(K))!=null?v:{utils:void 0,localeText:void 0},w=st({props:U,name:"MuiLocalizationProvider"}),{children:S,dateAdapter:m,dateFormats:T,dateLibInstance:h,adapterLocale:H,localeText:y}=w,g=C.useMemo(()=>it({},y,D,M),[y,D,M]),x=C.useMemo(()=>{if(!m)return b||null;const z=new m({locale:H,formats:T,instance:h});if(!z.isMUIAdapter)throw new Error(["MUI: The date adapter should be imported from `@mui/x-date-pickers` or `@mui/x-date-pickers-pro`, not from `@date-io`","For example, `import { AdapterDayjs } from '@mui/x-date-pickers/AdapterDayjs'` instead of `import AdapterDayjs from '@date-io/dayjs'`","More information on the installation documentation: https://mui.com/x/react-date-pickers/getting-started/#installation"].join(` +`));return z},[m,H,T,h,b]),F=C.useMemo(()=>x?{minDate:x.date("1900-01-01T00:00:00.000"),maxDate:x.date("2099-12-31T00:00:00.000")}:null,[x]),V=C.useMemo(()=>({utils:x,defaultDates:F,localeText:g}),[F,x,g]);return rt.jsx(K.Provider,{value:V,children:S})};export{ht as L,K as M,lt as b,ft as d,at as r}; diff --git a/src/evidently/ui/ui/static/js/TableRow-e790adad.js b/src/evidently/ui/ui/static/js/TableRow-e790adad.js new file mode 100644 index 0000000000..d9cb99556e --- /dev/null +++ b/src/evidently/ui/ui/static/js/TableRow-e790adad.js @@ -0,0 +1,2 @@ +import{j as B,e as $}from"./vendor-20fe28cb.js";import{f as Rt,g as Q,a as G,b as Z,y as it,_ as P,q as Ie,o as Ne,i as Ut,e as re,s as te,aq as Ft,u as ae,c as O,n as H,B as ze,d as W,ap as qt,ah as Xt,a8 as Kt}from"./createSvgIcon-41173291.js";import{J as Yt,L as st}from"./TextField-33506b98.js";const ha=Rt(B.jsx("path",{d:"M19 6.41L17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12z"}),"Close"),Gt={disableDefaultClasses:!1},Jt=$.createContext(Gt);function _t(e){const{disableDefaultClasses:t}=$.useContext(Jt);return o=>t?"":e(o)}var z="top",q="bottom",X="right",V="left",Fe="auto",we=[z,q,X,V],de="start",Ce="end",Qt="clippingParents",kt="viewport",me="popper",Zt="reference",lt=we.reduce(function(e,t){return e.concat([t+"-"+de,t+"-"+Ce])},[]),Tt=[].concat(we,[Fe]).reduce(function(e,t){return e.concat([t,t+"-"+de,t+"-"+Ce])},[]),eo="beforeRead",to="read",oo="afterRead",ro="beforeMain",ao="main",no="afterMain",io="beforeWrite",so="write",lo="afterWrite",co=[eo,to,oo,ro,ao,no,io,so,lo];function _(e){return e?(e.nodeName||"").toLowerCase():null}function U(e){if(e==null)return window;if(e.toString()!=="[object Window]"){var t=e.ownerDocument;return t&&t.defaultView||window}return e}function ce(e){var t=U(e).Element;return e instanceof t||e instanceof Element}function F(e){var t=U(e).HTMLElement;return e instanceof t||e instanceof HTMLElement}function qe(e){if(typeof ShadowRoot>"u")return!1;var t=U(e).ShadowRoot;return e instanceof t||e instanceof ShadowRoot}function po(e){var t=e.state;Object.keys(t.elements).forEach(function(o){var r=t.styles[o]||{},a=t.attributes[o]||{},n=t.elements[o];!F(n)||!_(n)||(Object.assign(n.style,r),Object.keys(a).forEach(function(l){var i=a[l];i===!1?n.removeAttribute(l):n.setAttribute(l,i===!0?"":i)}))})}function uo(e){var t=e.state,o={popper:{position:t.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(t.elements.popper.style,o.popper),t.styles=o,t.elements.arrow&&Object.assign(t.elements.arrow.style,o.arrow),function(){Object.keys(t.elements).forEach(function(r){var a=t.elements[r],n=t.attributes[r]||{},l=Object.keys(t.styles.hasOwnProperty(r)?t.styles[r]:o[r]),i=l.reduce(function(s,p){return s[p]="",s},{});!F(a)||!_(a)||(Object.assign(a.style,i),Object.keys(n).forEach(function(s){a.removeAttribute(s)}))})}}const fo={name:"applyStyles",enabled:!0,phase:"write",fn:po,effect:uo,requires:["computeStyles"]};function J(e){return e.split("-")[0]}var le=Math.max,Ae=Math.min,ue=Math.round;function Ve(){var e=navigator.userAgentData;return e!=null&&e.brands&&Array.isArray(e.brands)?e.brands.map(function(t){return t.brand+"/"+t.version}).join(" "):navigator.userAgent}function Mt(){return!/^((?!chrome|android).)*safari/i.test(Ve())}function fe(e,t,o){t===void 0&&(t=!1),o===void 0&&(o=!1);var r=e.getBoundingClientRect(),a=1,n=1;t&&F(e)&&(a=e.offsetWidth>0&&ue(r.width)/e.offsetWidth||1,n=e.offsetHeight>0&&ue(r.height)/e.offsetHeight||1);var l=ce(e)?U(e):window,i=l.visualViewport,s=!Mt()&&o,p=(r.left+(s&&i?i.offsetLeft:0))/a,c=(r.top+(s&&i?i.offsetTop:0))/n,u=r.width/a,m=r.height/n;return{width:u,height:m,top:c,right:p+u,bottom:c+m,left:p,x:p,y:c}}function Xe(e){var t=fe(e),o=e.offsetWidth,r=e.offsetHeight;return Math.abs(t.width-o)<=1&&(o=t.width),Math.abs(t.height-r)<=1&&(r=t.height),{x:e.offsetLeft,y:e.offsetTop,width:o,height:r}}function Et(e,t){var o=t.getRootNode&&t.getRootNode();if(e.contains(t))return!0;if(o&&qe(o)){var r=t;do{if(r&&e.isSameNode(r))return!0;r=r.parentNode||r.host}while(r)}return!1}function ee(e){return U(e).getComputedStyle(e)}function vo(e){return["table","td","th"].indexOf(_(e))>=0}function ne(e){return((ce(e)?e.ownerDocument:e.document)||window.document).documentElement}function De(e){return _(e)==="html"?e:e.assignedSlot||e.parentNode||(qe(e)?e.host:null)||ne(e)}function ct(e){return!F(e)||ee(e).position==="fixed"?null:e.offsetParent}function go(e){var t=/firefox/i.test(Ve()),o=/Trident/i.test(Ve());if(o&&F(e)){var r=ee(e);if(r.position==="fixed")return null}var a=De(e);for(qe(a)&&(a=a.host);F(a)&&["html","body"].indexOf(_(a))<0;){var n=ee(a);if(n.transform!=="none"||n.perspective!=="none"||n.contain==="paint"||["transform","perspective"].indexOf(n.willChange)!==-1||t&&n.willChange==="filter"||t&&n.filter&&n.filter!=="none")return a;a=a.parentNode}return null}function Oe(e){for(var t=U(e),o=ct(e);o&&vo(o)&&ee(o).position==="static";)o=ct(o);return o&&(_(o)==="html"||_(o)==="body"&&ee(o).position==="static")?t:o||go(e)||t}function Ke(e){return["top","bottom"].indexOf(e)>=0?"x":"y"}function he(e,t,o){return le(e,Ae(t,o))}function bo(e,t,o){var r=he(e,t,o);return r>o?o:r}function It(){return{top:0,right:0,bottom:0,left:0}}function At(e){return Object.assign({},It(),e)}function Dt(e,t){return t.reduce(function(o,r){return o[r]=e,o},{})}var mo=function(t,o){return t=typeof t=="function"?t(Object.assign({},o.rects,{placement:o.placement})):t,At(typeof t!="number"?t:Dt(t,we))};function yo(e){var t,o=e.state,r=e.name,a=e.options,n=o.elements.arrow,l=o.modifiersData.popperOffsets,i=J(o.placement),s=Ke(i),p=[V,X].indexOf(i)>=0,c=p?"height":"width";if(!(!n||!l)){var u=mo(a.padding,o),m=Xe(n),d=s==="y"?z:V,b=s==="y"?q:X,g=o.rects.reference[c]+o.rects.reference[s]-l[s]-o.rects.popper[c],v=l[s]-o.rects.reference[s],y=Oe(n),w=y?s==="y"?y.clientHeight||0:y.clientWidth||0:0,x=g/2-v/2,f=u[d],h=w-m[c]-u[b],C=w/2-m[c]/2+x,R=he(f,C,h),E=s;o.modifiersData[r]=(t={},t[E]=R,t.centerOffset=R-C,t)}}function ho(e){var t=e.state,o=e.options,r=o.element,a=r===void 0?"[data-popper-arrow]":r;a!=null&&(typeof a=="string"&&(a=t.elements.popper.querySelector(a),!a)||Et(t.elements.popper,a)&&(t.elements.arrow=a))}const xo={name:"arrow",enabled:!0,phase:"main",fn:yo,effect:ho,requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function ve(e){return e.split("-")[1]}var Co={top:"auto",right:"auto",bottom:"auto",left:"auto"};function $o(e,t){var o=e.x,r=e.y,a=t.devicePixelRatio||1;return{x:ue(o*a)/a||0,y:ue(r*a)/a||0}}function pt(e){var t,o=e.popper,r=e.popperRect,a=e.placement,n=e.variation,l=e.offsets,i=e.position,s=e.gpuAcceleration,p=e.adaptive,c=e.roundOffsets,u=e.isFixed,m=l.x,d=m===void 0?0:m,b=l.y,g=b===void 0?0:b,v=typeof c=="function"?c({x:d,y:g}):{x:d,y:g};d=v.x,g=v.y;var y=l.hasOwnProperty("x"),w=l.hasOwnProperty("y"),x=V,f=z,h=window;if(p){var C=Oe(o),R="clientHeight",E="clientWidth";if(C===U(o)&&(C=ne(o),ee(C).position!=="static"&&i==="absolute"&&(R="scrollHeight",E="scrollWidth")),C=C,a===z||(a===V||a===X)&&n===Ce){f=q;var M=u&&C===h&&h.visualViewport?h.visualViewport.height:C[R];g-=M-r.height,g*=s?1:-1}if(a===V||(a===z||a===q)&&n===Ce){x=X;var T=u&&C===h&&h.visualViewport?h.visualViewport.width:C[E];d-=T-r.width,d*=s?1:-1}}var I=Object.assign({position:i},p&&Co),S=c===!0?$o({x:d,y:g},U(o)):{x:d,y:g};if(d=S.x,g=S.y,s){var D;return Object.assign({},I,(D={},D[f]=w?"0":"",D[x]=y?"0":"",D.transform=(h.devicePixelRatio||1)<=1?"translate("+d+"px, "+g+"px)":"translate3d("+d+"px, "+g+"px, 0)",D))}return Object.assign({},I,(t={},t[f]=w?g+"px":"",t[x]=y?d+"px":"",t.transform="",t))}function wo(e){var t=e.state,o=e.options,r=o.gpuAcceleration,a=r===void 0?!0:r,n=o.adaptive,l=n===void 0?!0:n,i=o.roundOffsets,s=i===void 0?!0:i,p={placement:J(t.placement),variation:ve(t.placement),popper:t.elements.popper,popperRect:t.rects.popper,gpuAcceleration:a,isFixed:t.options.strategy==="fixed"};t.modifiersData.popperOffsets!=null&&(t.styles.popper=Object.assign({},t.styles.popper,pt(Object.assign({},p,{offsets:t.modifiersData.popperOffsets,position:t.options.strategy,adaptive:l,roundOffsets:s})))),t.modifiersData.arrow!=null&&(t.styles.arrow=Object.assign({},t.styles.arrow,pt(Object.assign({},p,{offsets:t.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:s})))),t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-placement":t.placement})}const Oo={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:wo,data:{}};var Me={passive:!0};function Po(e){var t=e.state,o=e.instance,r=e.options,a=r.scroll,n=a===void 0?!0:a,l=r.resize,i=l===void 0?!0:l,s=U(t.elements.popper),p=[].concat(t.scrollParents.reference,t.scrollParents.popper);return n&&p.forEach(function(c){c.addEventListener("scroll",o.update,Me)}),i&&s.addEventListener("resize",o.update,Me),function(){n&&p.forEach(function(c){c.removeEventListener("scroll",o.update,Me)}),i&&s.removeEventListener("resize",o.update,Me)}}const Ro={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:Po,data:{}};var ko={left:"right",right:"left",bottom:"top",top:"bottom"};function Ee(e){return e.replace(/left|right|bottom|top/g,function(t){return ko[t]})}var To={start:"end",end:"start"};function dt(e){return e.replace(/start|end/g,function(t){return To[t]})}function Ye(e){var t=U(e),o=t.pageXOffset,r=t.pageYOffset;return{scrollLeft:o,scrollTop:r}}function Ge(e){return fe(ne(e)).left+Ye(e).scrollLeft}function Mo(e,t){var o=U(e),r=ne(e),a=o.visualViewport,n=r.clientWidth,l=r.clientHeight,i=0,s=0;if(a){n=a.width,l=a.height;var p=Mt();(p||!p&&t==="fixed")&&(i=a.offsetLeft,s=a.offsetTop)}return{width:n,height:l,x:i+Ge(e),y:s}}function Eo(e){var t,o=ne(e),r=Ye(e),a=(t=e.ownerDocument)==null?void 0:t.body,n=le(o.scrollWidth,o.clientWidth,a?a.scrollWidth:0,a?a.clientWidth:0),l=le(o.scrollHeight,o.clientHeight,a?a.scrollHeight:0,a?a.clientHeight:0),i=-r.scrollLeft+Ge(e),s=-r.scrollTop;return ee(a||o).direction==="rtl"&&(i+=le(o.clientWidth,a?a.clientWidth:0)-n),{width:n,height:l,x:i,y:s}}function Je(e){var t=ee(e),o=t.overflow,r=t.overflowX,a=t.overflowY;return/auto|scroll|overlay|hidden/.test(o+a+r)}function jt(e){return["html","body","#document"].indexOf(_(e))>=0?e.ownerDocument.body:F(e)&&Je(e)?e:jt(De(e))}function xe(e,t){var o;t===void 0&&(t=[]);var r=jt(e),a=r===((o=e.ownerDocument)==null?void 0:o.body),n=U(r),l=a?[n].concat(n.visualViewport||[],Je(r)?r:[]):r,i=t.concat(l);return a?i:i.concat(xe(De(l)))}function We(e){return Object.assign({},e,{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}function Io(e,t){var o=fe(e,!1,t==="fixed");return o.top=o.top+e.clientTop,o.left=o.left+e.clientLeft,o.bottom=o.top+e.clientHeight,o.right=o.left+e.clientWidth,o.width=e.clientWidth,o.height=e.clientHeight,o.x=o.left,o.y=o.top,o}function ut(e,t,o){return t===kt?We(Mo(e,o)):ce(t)?Io(t,o):We(Eo(ne(e)))}function Ao(e){var t=xe(De(e)),o=["absolute","fixed"].indexOf(ee(e).position)>=0,r=o&&F(e)?Oe(e):e;return ce(r)?t.filter(function(a){return ce(a)&&Et(a,r)&&_(a)!=="body"}):[]}function Do(e,t,o,r){var a=t==="clippingParents"?Ao(e):[].concat(t),n=[].concat(a,[o]),l=n[0],i=n.reduce(function(s,p){var c=ut(e,p,r);return s.top=le(c.top,s.top),s.right=Ae(c.right,s.right),s.bottom=Ae(c.bottom,s.bottom),s.left=le(c.left,s.left),s},ut(e,l,r));return i.width=i.right-i.left,i.height=i.bottom-i.top,i.x=i.left,i.y=i.top,i}function Bt(e){var t=e.reference,o=e.element,r=e.placement,a=r?J(r):null,n=r?ve(r):null,l=t.x+t.width/2-o.width/2,i=t.y+t.height/2-o.height/2,s;switch(a){case z:s={x:l,y:t.y-o.height};break;case q:s={x:l,y:t.y+t.height};break;case X:s={x:t.x+t.width,y:i};break;case V:s={x:t.x-o.width,y:i};break;default:s={x:t.x,y:t.y}}var p=a?Ke(a):null;if(p!=null){var c=p==="y"?"height":"width";switch(n){case de:s[p]=s[p]-(t[c]/2-o[c]/2);break;case Ce:s[p]=s[p]+(t[c]/2-o[c]/2);break}}return s}function $e(e,t){t===void 0&&(t={});var o=t,r=o.placement,a=r===void 0?e.placement:r,n=o.strategy,l=n===void 0?e.strategy:n,i=o.boundary,s=i===void 0?Qt:i,p=o.rootBoundary,c=p===void 0?kt:p,u=o.elementContext,m=u===void 0?me:u,d=o.altBoundary,b=d===void 0?!1:d,g=o.padding,v=g===void 0?0:g,y=At(typeof v!="number"?v:Dt(v,we)),w=m===me?Zt:me,x=e.rects.popper,f=e.elements[b?w:m],h=Do(ce(f)?f:f.contextElement||ne(e.elements.popper),s,c,l),C=fe(e.elements.reference),R=Bt({reference:C,element:x,strategy:"absolute",placement:a}),E=We(Object.assign({},x,R)),M=m===me?E:C,T={top:h.top-M.top+y.top,bottom:M.bottom-h.bottom+y.bottom,left:h.left-M.left+y.left,right:M.right-h.right+y.right},I=e.modifiersData.offset;if(m===me&&I){var S=I[a];Object.keys(T).forEach(function(D){var L=[X,q].indexOf(D)>=0?1:-1,K=[z,q].indexOf(D)>=0?"y":"x";T[D]+=S[K]*L})}return T}function jo(e,t){t===void 0&&(t={});var o=t,r=o.placement,a=o.boundary,n=o.rootBoundary,l=o.padding,i=o.flipVariations,s=o.allowedAutoPlacements,p=s===void 0?Tt:s,c=ve(r),u=c?i?lt:lt.filter(function(b){return ve(b)===c}):we,m=u.filter(function(b){return p.indexOf(b)>=0});m.length===0&&(m=u);var d=m.reduce(function(b,g){return b[g]=$e(e,{placement:g,boundary:a,rootBoundary:n,padding:l})[J(g)],b},{});return Object.keys(d).sort(function(b,g){return d[b]-d[g]})}function Bo(e){if(J(e)===Fe)return[];var t=Ee(e);return[dt(e),t,dt(t)]}function Ho(e){var t=e.state,o=e.options,r=e.name;if(!t.modifiersData[r]._skip){for(var a=o.mainAxis,n=a===void 0?!0:a,l=o.altAxis,i=l===void 0?!0:l,s=o.fallbackPlacements,p=o.padding,c=o.boundary,u=o.rootBoundary,m=o.altBoundary,d=o.flipVariations,b=d===void 0?!0:d,g=o.allowedAutoPlacements,v=t.options.placement,y=J(v),w=y===v,x=s||(w||!b?[Ee(v)]:Bo(v)),f=[v].concat(x).reduce(function(pe,oe){return pe.concat(J(oe)===Fe?jo(t,{placement:oe,boundary:c,rootBoundary:u,padding:p,flipVariations:b,allowedAutoPlacements:g}):oe)},[]),h=t.rects.reference,C=t.rects.popper,R=new Map,E=!0,M=f[0],T=0;T=0,K=L?"width":"height",j=$e(t,{placement:I,boundary:c,rootBoundary:u,altBoundary:m,padding:p}),N=L?D?X:V:D?q:z;h[K]>C[K]&&(N=Ee(N));var Y=Ee(N),A=[];if(n&&A.push(j[S]<=0),i&&A.push(j[N]<=0,j[Y]<=0),A.every(function(pe){return pe})){M=I,E=!1;break}R.set(I,A)}if(E)for(var Pe=b?3:1,Be=function(oe){var be=f.find(function(ke){var ie=R.get(ke);if(ie)return ie.slice(0,oe).every(function(He){return He})});if(be)return M=be,"break"},ge=Pe;ge>0;ge--){var Re=Be(ge);if(Re==="break")break}t.placement!==M&&(t.modifiersData[r]._skip=!0,t.placement=M,t.reset=!0)}}const So={name:"flip",enabled:!0,phase:"main",fn:Ho,requiresIfExists:["offset"],data:{_skip:!1}};function ft(e,t,o){return o===void 0&&(o={x:0,y:0}),{top:e.top-t.height-o.y,right:e.right-t.width+o.x,bottom:e.bottom-t.height+o.y,left:e.left-t.width-o.x}}function vt(e){return[z,X,q,V].some(function(t){return e[t]>=0})}function Lo(e){var t=e.state,o=e.name,r=t.rects.reference,a=t.rects.popper,n=t.modifiersData.preventOverflow,l=$e(t,{elementContext:"reference"}),i=$e(t,{altBoundary:!0}),s=ft(l,r),p=ft(i,a,n),c=vt(s),u=vt(p);t.modifiersData[o]={referenceClippingOffsets:s,popperEscapeOffsets:p,isReferenceHidden:c,hasPopperEscaped:u},t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-reference-hidden":c,"data-popper-escaped":u})}const No={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:Lo};function zo(e,t,o){var r=J(e),a=[V,z].indexOf(r)>=0?-1:1,n=typeof o=="function"?o(Object.assign({},t,{placement:e})):o,l=n[0],i=n[1];return l=l||0,i=(i||0)*a,[V,X].indexOf(r)>=0?{x:i,y:l}:{x:l,y:i}}function Vo(e){var t=e.state,o=e.options,r=e.name,a=o.offset,n=a===void 0?[0,0]:a,l=Tt.reduce(function(c,u){return c[u]=zo(u,t.rects,n),c},{}),i=l[t.placement],s=i.x,p=i.y;t.modifiersData.popperOffsets!=null&&(t.modifiersData.popperOffsets.x+=s,t.modifiersData.popperOffsets.y+=p),t.modifiersData[r]=l}const Wo={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:Vo};function Uo(e){var t=e.state,o=e.name;t.modifiersData[o]=Bt({reference:t.rects.reference,element:t.rects.popper,strategy:"absolute",placement:t.placement})}const Fo={name:"popperOffsets",enabled:!0,phase:"read",fn:Uo,data:{}};function qo(e){return e==="x"?"y":"x"}function Xo(e){var t=e.state,o=e.options,r=e.name,a=o.mainAxis,n=a===void 0?!0:a,l=o.altAxis,i=l===void 0?!1:l,s=o.boundary,p=o.rootBoundary,c=o.altBoundary,u=o.padding,m=o.tether,d=m===void 0?!0:m,b=o.tetherOffset,g=b===void 0?0:b,v=$e(t,{boundary:s,rootBoundary:p,padding:u,altBoundary:c}),y=J(t.placement),w=ve(t.placement),x=!w,f=Ke(y),h=qo(f),C=t.modifiersData.popperOffsets,R=t.rects.reference,E=t.rects.popper,M=typeof g=="function"?g(Object.assign({},t.rects,{placement:t.placement})):g,T=typeof M=="number"?{mainAxis:M,altAxis:M}:Object.assign({mainAxis:0,altAxis:0},M),I=t.modifiersData.offset?t.modifiersData.offset[t.placement]:null,S={x:0,y:0};if(C){if(n){var D,L=f==="y"?z:V,K=f==="y"?q:X,j=f==="y"?"height":"width",N=C[f],Y=N+v[L],A=N-v[K],Pe=d?-E[j]/2:0,Be=w===de?R[j]:E[j],ge=w===de?-E[j]:-R[j],Re=t.elements.arrow,pe=d&&Re?Xe(Re):{width:0,height:0},oe=t.modifiersData["arrow#persistent"]?t.modifiersData["arrow#persistent"].padding:It(),be=oe[L],ke=oe[K],ie=he(0,R[j],pe[j]),He=x?R[j]/2-Pe-ie-be-T.mainAxis:Be-ie-be-T.mainAxis,St=x?-R[j]/2+Pe+ie+ke+T.mainAxis:ge+ie+ke+T.mainAxis,Se=t.elements.arrow&&Oe(t.elements.arrow),Lt=Se?f==="y"?Se.clientTop||0:Se.clientLeft||0:0,_e=(D=I==null?void 0:I[f])!=null?D:0,Nt=N+He-_e-Lt,zt=N+St-_e,Qe=he(d?Ae(Y,Nt):Y,N,d?le(A,zt):A);C[f]=Qe,S[f]=Qe-N}if(i){var Ze,Vt=f==="x"?z:V,Wt=f==="x"?q:X,se=C[h],Te=h==="y"?"height":"width",et=se+v[Vt],tt=se-v[Wt],Le=[z,V].indexOf(y)!==-1,ot=(Ze=I==null?void 0:I[h])!=null?Ze:0,rt=Le?et:se-R[Te]-E[Te]-ot+T.altAxis,at=Le?se+R[Te]+E[Te]-ot-T.altAxis:tt,nt=d&&Le?bo(rt,se,at):he(d?rt:et,se,d?at:tt);C[h]=nt,S[h]=nt-se}t.modifiersData[r]=S}}const Ko={name:"preventOverflow",enabled:!0,phase:"main",fn:Xo,requiresIfExists:["offset"]};function Yo(e){return{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}}function Go(e){return e===U(e)||!F(e)?Ye(e):Yo(e)}function Jo(e){var t=e.getBoundingClientRect(),o=ue(t.width)/e.offsetWidth||1,r=ue(t.height)/e.offsetHeight||1;return o!==1||r!==1}function _o(e,t,o){o===void 0&&(o=!1);var r=F(t),a=F(t)&&Jo(t),n=ne(t),l=fe(e,a,o),i={scrollLeft:0,scrollTop:0},s={x:0,y:0};return(r||!r&&!o)&&((_(t)!=="body"||Je(n))&&(i=Go(t)),F(t)?(s=fe(t,!0),s.x+=t.clientLeft,s.y+=t.clientTop):n&&(s.x=Ge(n))),{x:l.left+i.scrollLeft-s.x,y:l.top+i.scrollTop-s.y,width:l.width,height:l.height}}function Qo(e){var t=new Map,o=new Set,r=[];e.forEach(function(n){t.set(n.name,n)});function a(n){o.add(n.name);var l=[].concat(n.requires||[],n.requiresIfExists||[]);l.forEach(function(i){if(!o.has(i)){var s=t.get(i);s&&a(s)}}),r.push(n)}return e.forEach(function(n){o.has(n.name)||a(n)}),r}function Zo(e){var t=Qo(e);return co.reduce(function(o,r){return o.concat(t.filter(function(a){return a.phase===r}))},[])}function er(e){var t;return function(){return t||(t=new Promise(function(o){Promise.resolve().then(function(){t=void 0,o(e())})})),t}}function tr(e){var t=e.reduce(function(o,r){var a=o[r.name];return o[r.name]=a?Object.assign({},a,r,{options:Object.assign({},a.options,r.options),data:Object.assign({},a.data,r.data)}):r,o},{});return Object.keys(t).map(function(o){return t[o]})}var gt={placement:"bottom",modifiers:[],strategy:"absolute"};function bt(){for(var e=arguments.length,t=new Array(e),o=0;ore({root:["root"]},_t(nr)),dr={},ur=$.forwardRef(function(t,o){var r;const{anchorEl:a,children:n,direction:l,disablePortal:i,modifiers:s,open:p,placement:c,popperOptions:u,popperRef:m,slotProps:d={},slots:b={},TransitionProps:g}=t,v=Z(t,ir),y=$.useRef(null),w=Ie(y,o),x=$.useRef(null),f=Ie(x,m),h=$.useRef(f);Ne(()=>{h.current=f},[f]),$.useImperativeHandle(m,()=>x.current,[]);const C=lr(c,l),[R,E]=$.useState(C),[M,T]=$.useState(Ue(a));$.useEffect(()=>{x.current&&x.current.forceUpdate()}),$.useEffect(()=>{a&&T(Ue(a))},[a]),Ne(()=>{if(!M||!p)return;const K=Y=>{E(Y.placement)};let j=[{name:"preventOverflow",options:{altBoundary:i}},{name:"flip",options:{altBoundary:i}},{name:"onUpdate",enabled:!0,phase:"afterWrite",fn:({state:Y})=>{K(Y)}}];s!=null&&(j=j.concat(s)),u&&u.modifiers!=null&&(j=j.concat(u.modifiers));const N=ar(M,y.current,P({placement:C},u,{modifiers:j}));return h.current(N),()=>{N.destroy(),h.current(null)}},[M,i,s,p,u,C]);const I={placement:R};g!==null&&(I.TransitionProps=g);const S=pr(),D=(r=b.root)!=null?r:"div",L=Ut({elementType:D,externalSlotProps:d.root,externalForwardedProps:v,additionalProps:{role:"tooltip",ref:w},ownerState:t,className:S.root});return B.jsx(D,P({},L,{children:typeof n=="function"?n(I):n}))}),fr=$.forwardRef(function(t,o){const{anchorEl:r,children:a,container:n,direction:l="ltr",disablePortal:i=!1,keepMounted:s=!1,modifiers:p,open:c,placement:u="bottom",popperOptions:m=dr,popperRef:d,style:b,transition:g=!1,slotProps:v={},slots:y={}}=t,w=Z(t,sr),[x,f]=$.useState(!0),h=()=>{f(!1)},C=()=>{f(!0)};if(!s&&!c&&(!g||x))return null;let R;if(n)R=n;else if(r){const T=Ue(r);R=T&&cr(T)?it(T).body:it(null).body}const E=!c&&s&&(!g||x)?"none":void 0,M=g?{in:c,onEnter:h,onExited:C}:void 0;return B.jsx(Yt,{disablePortal:i,container:R,children:B.jsx(ur,P({anchorEl:r,direction:l,disablePortal:i,modifiers:p,ref:o,open:g?!x:c,placement:u,popperOptions:m,popperRef:d,slotProps:v,slots:y},w,{style:P({position:"fixed",top:0,left:0,display:E},b),TransitionProps:M,children:a}))})}),vr=["anchorEl","component","components","componentsProps","container","disablePortal","keepMounted","modifiers","open","placement","popperOptions","popperRef","transition","slots","slotProps"],gr=te(fr,{name:"MuiPopper",slot:"Root",overridesResolver:(e,t)=>t.root})({}),br=$.forwardRef(function(t,o){var r;const a=Ft(),n=ae({props:t,name:"MuiPopper"}),{anchorEl:l,component:i,components:s,componentsProps:p,container:c,disablePortal:u,keepMounted:m,modifiers:d,open:b,placement:g,popperOptions:v,popperRef:y,transition:w,slots:x,slotProps:f}=n,h=Z(n,vr),C=(r=x==null?void 0:x.root)!=null?r:s==null?void 0:s.Root,R=P({anchorEl:l,container:c,disablePortal:u,keepMounted:m,modifiers:d,open:b,placement:g,popperOptions:v,popperRef:y,transition:w},h);return B.jsx(gr,P({as:i,direction:a==null?void 0:a.direction,slots:{root:C},slotProps:f??p},R,{ref:o}))}),xa=br,mr=Rt(B.jsx("path",{d:"M12 2C6.47 2 2 6.47 2 12s4.47 10 10 10 10-4.47 10-10S17.53 2 12 2zm5 13.59L15.59 17 12 13.41 8.41 17 7 15.59 10.59 12 7 8.41 8.41 7 12 10.59 15.59 7 17 8.41 13.41 12 17 15.59z"}),"Cancel");function yr(e){return Q("MuiChip",e)}const hr=G("MuiChip",["root","sizeSmall","sizeMedium","colorError","colorInfo","colorPrimary","colorSecondary","colorSuccess","colorWarning","disabled","clickable","clickableColorPrimary","clickableColorSecondary","deletable","deletableColorPrimary","deletableColorSecondary","outlined","filled","outlinedPrimary","outlinedSecondary","filledPrimary","filledSecondary","avatar","avatarSmall","avatarMedium","avatarColorPrimary","avatarColorSecondary","icon","iconSmall","iconMedium","iconColorPrimary","iconColorSecondary","label","labelSmall","labelMedium","deleteIcon","deleteIconSmall","deleteIconMedium","deleteIconColorPrimary","deleteIconColorSecondary","deleteIconOutlinedColorPrimary","deleteIconOutlinedColorSecondary","deleteIconFilledColorPrimary","deleteIconFilledColorSecondary","focusVisible"]),k=hr,xr=["avatar","className","clickable","color","component","deleteIcon","disabled","icon","label","onClick","onDelete","onKeyDown","onKeyUp","size","variant","tabIndex","skipFocusWhenDisabled"],Cr=e=>{const{classes:t,disabled:o,size:r,color:a,iconColor:n,onDelete:l,clickable:i,variant:s}=e,p={root:["root",s,o&&"disabled",`size${O(r)}`,`color${O(a)}`,i&&"clickable",i&&`clickableColor${O(a)}`,l&&"deletable",l&&`deletableColor${O(a)}`,`${s}${O(a)}`],label:["label",`label${O(r)}`],avatar:["avatar",`avatar${O(r)}`,`avatarColor${O(a)}`],icon:["icon",`icon${O(r)}`,`iconColor${O(n)}`],deleteIcon:["deleteIcon",`deleteIcon${O(r)}`,`deleteIconColor${O(a)}`,`deleteIcon${O(s)}Color${O(a)}`]};return re(p,yr,t)},$r=te("div",{name:"MuiChip",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:o}=e,{color:r,iconColor:a,clickable:n,onDelete:l,size:i,variant:s}=o;return[{[`& .${k.avatar}`]:t.avatar},{[`& .${k.avatar}`]:t[`avatar${O(i)}`]},{[`& .${k.avatar}`]:t[`avatarColor${O(r)}`]},{[`& .${k.icon}`]:t.icon},{[`& .${k.icon}`]:t[`icon${O(i)}`]},{[`& .${k.icon}`]:t[`iconColor${O(a)}`]},{[`& .${k.deleteIcon}`]:t.deleteIcon},{[`& .${k.deleteIcon}`]:t[`deleteIcon${O(i)}`]},{[`& .${k.deleteIcon}`]:t[`deleteIconColor${O(r)}`]},{[`& .${k.deleteIcon}`]:t[`deleteIcon${O(s)}Color${O(r)}`]},t.root,t[`size${O(i)}`],t[`color${O(r)}`],n&&t.clickable,n&&r!=="default"&&t[`clickableColor${O(r)})`],l&&t.deletable,l&&r!=="default"&&t[`deletableColor${O(r)}`],t[s],t[`${s}${O(r)}`]]}})(({theme:e,ownerState:t})=>{const o=e.palette.mode==="light"?e.palette.grey[700]:e.palette.grey[300];return P({maxWidth:"100%",fontFamily:e.typography.fontFamily,fontSize:e.typography.pxToRem(13),display:"inline-flex",alignItems:"center",justifyContent:"center",height:32,color:(e.vars||e).palette.text.primary,backgroundColor:(e.vars||e).palette.action.selected,borderRadius:32/2,whiteSpace:"nowrap",transition:e.transitions.create(["background-color","box-shadow"]),cursor:"unset",outline:0,textDecoration:"none",border:0,padding:0,verticalAlign:"middle",boxSizing:"border-box",[`&.${k.disabled}`]:{opacity:(e.vars||e).palette.action.disabledOpacity,pointerEvents:"none"},[`& .${k.avatar}`]:{marginLeft:5,marginRight:-6,width:24,height:24,color:e.vars?e.vars.palette.Chip.defaultAvatarColor:o,fontSize:e.typography.pxToRem(12)},[`& .${k.avatarColorPrimary}`]:{color:(e.vars||e).palette.primary.contrastText,backgroundColor:(e.vars||e).palette.primary.dark},[`& .${k.avatarColorSecondary}`]:{color:(e.vars||e).palette.secondary.contrastText,backgroundColor:(e.vars||e).palette.secondary.dark},[`& .${k.avatarSmall}`]:{marginLeft:4,marginRight:-4,width:18,height:18,fontSize:e.typography.pxToRem(10)},[`& .${k.icon}`]:P({marginLeft:5,marginRight:-6},t.size==="small"&&{fontSize:18,marginLeft:4,marginRight:-4},t.iconColor===t.color&&P({color:e.vars?e.vars.palette.Chip.defaultIconColor:o},t.color!=="default"&&{color:"inherit"})),[`& .${k.deleteIcon}`]:P({WebkitTapHighlightColor:"transparent",color:e.vars?`rgba(${e.vars.palette.text.primaryChannel} / 0.26)`:H(e.palette.text.primary,.26),fontSize:22,cursor:"pointer",margin:"0 5px 0 -6px","&:hover":{color:e.vars?`rgba(${e.vars.palette.text.primaryChannel} / 0.4)`:H(e.palette.text.primary,.4)}},t.size==="small"&&{fontSize:16,marginRight:4,marginLeft:-4},t.color!=="default"&&{color:e.vars?`rgba(${e.vars.palette[t.color].contrastTextChannel} / 0.7)`:H(e.palette[t.color].contrastText,.7),"&:hover, &:active":{color:(e.vars||e).palette[t.color].contrastText}})},t.size==="small"&&{height:24},t.color!=="default"&&{backgroundColor:(e.vars||e).palette[t.color].main,color:(e.vars||e).palette[t.color].contrastText},t.onDelete&&{[`&.${k.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.action.selectedChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.focusOpacity}))`:H(e.palette.action.selected,e.palette.action.selectedOpacity+e.palette.action.focusOpacity)}},t.onDelete&&t.color!=="default"&&{[`&.${k.focusVisible}`]:{backgroundColor:(e.vars||e).palette[t.color].dark}})},({theme:e,ownerState:t})=>P({},t.clickable&&{userSelect:"none",WebkitTapHighlightColor:"transparent",cursor:"pointer","&:hover":{backgroundColor:e.vars?`rgba(${e.vars.palette.action.selectedChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.hoverOpacity}))`:H(e.palette.action.selected,e.palette.action.selectedOpacity+e.palette.action.hoverOpacity)},[`&.${k.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.action.selectedChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.focusOpacity}))`:H(e.palette.action.selected,e.palette.action.selectedOpacity+e.palette.action.focusOpacity)},"&:active":{boxShadow:(e.vars||e).shadows[1]}},t.clickable&&t.color!=="default"&&{[`&:hover, &.${k.focusVisible}`]:{backgroundColor:(e.vars||e).palette[t.color].dark}}),({theme:e,ownerState:t})=>P({},t.variant==="outlined"&&{backgroundColor:"transparent",border:e.vars?`1px solid ${e.vars.palette.Chip.defaultBorder}`:`1px solid ${e.palette.mode==="light"?e.palette.grey[400]:e.palette.grey[700]}`,[`&.${k.clickable}:hover`]:{backgroundColor:(e.vars||e).palette.action.hover},[`&.${k.focusVisible}`]:{backgroundColor:(e.vars||e).palette.action.focus},[`& .${k.avatar}`]:{marginLeft:4},[`& .${k.avatarSmall}`]:{marginLeft:2},[`& .${k.icon}`]:{marginLeft:4},[`& .${k.iconSmall}`]:{marginLeft:2},[`& .${k.deleteIcon}`]:{marginRight:5},[`& .${k.deleteIconSmall}`]:{marginRight:3}},t.variant==="outlined"&&t.color!=="default"&&{color:(e.vars||e).palette[t.color].main,border:`1px solid ${e.vars?`rgba(${e.vars.palette[t.color].mainChannel} / 0.7)`:H(e.palette[t.color].main,.7)}`,[`&.${k.clickable}:hover`]:{backgroundColor:e.vars?`rgba(${e.vars.palette[t.color].mainChannel} / ${e.vars.palette.action.hoverOpacity})`:H(e.palette[t.color].main,e.palette.action.hoverOpacity)},[`&.${k.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette[t.color].mainChannel} / ${e.vars.palette.action.focusOpacity})`:H(e.palette[t.color].main,e.palette.action.focusOpacity)},[`& .${k.deleteIcon}`]:{color:e.vars?`rgba(${e.vars.palette[t.color].mainChannel} / 0.7)`:H(e.palette[t.color].main,.7),"&:hover, &:active":{color:(e.vars||e).palette[t.color].main}}})),wr=te("span",{name:"MuiChip",slot:"Label",overridesResolver:(e,t)=>{const{ownerState:o}=e,{size:r}=o;return[t.label,t[`label${O(r)}`]]}})(({ownerState:e})=>P({overflow:"hidden",textOverflow:"ellipsis",paddingLeft:12,paddingRight:12,whiteSpace:"nowrap"},e.size==="small"&&{paddingLeft:8,paddingRight:8}));function mt(e){return e.key==="Backspace"||e.key==="Delete"}const Or=$.forwardRef(function(t,o){const r=ae({props:t,name:"MuiChip"}),{avatar:a,className:n,clickable:l,color:i="default",component:s,deleteIcon:p,disabled:c=!1,icon:u,label:m,onClick:d,onDelete:b,onKeyDown:g,onKeyUp:v,size:y="medium",variant:w="filled",tabIndex:x,skipFocusWhenDisabled:f=!1}=r,h=Z(r,xr),C=$.useRef(null),R=Ie(C,o),E=A=>{A.stopPropagation(),b&&b(A)},M=A=>{A.currentTarget===A.target&&mt(A)&&A.preventDefault(),g&&g(A)},T=A=>{A.currentTarget===A.target&&(b&&mt(A)?b(A):A.key==="Escape"&&C.current&&C.current.blur()),v&&v(A)},I=l!==!1&&d?!0:l,S=I||b?ze:s||"div",D=P({},r,{component:S,disabled:c,size:y,color:i,iconColor:$.isValidElement(u)&&u.props.color||i,onDelete:!!b,clickable:I,variant:w}),L=Cr(D),K=S===ze?P({component:s||"div",focusVisibleClassName:L.focusVisible},b&&{disableRipple:!0}):{};let j=null;b&&(j=p&&$.isValidElement(p)?$.cloneElement(p,{className:W(p.props.className,L.deleteIcon),onClick:E}):B.jsx(mr,{className:W(L.deleteIcon),onClick:E}));let N=null;a&&$.isValidElement(a)&&(N=$.cloneElement(a,{className:W(L.avatar,a.props.className)}));let Y=null;return u&&$.isValidElement(u)&&(Y=$.cloneElement(u,{className:W(L.icon,u.props.className)})),B.jsxs($r,P({as:S,className:W(L.root,n),disabled:I&&c?!0:void 0,onClick:d,onKeyDown:M,onKeyUp:T,ref:R,tabIndex:f&&c?-1:x,ownerState:D},K,h,{children:[N||Y,B.jsx(wr,{className:W(L.label),ownerState:D,children:m}),j]}))}),Ca=Or;function $a(e){return Q("MuiDivider",e)}const Pr=G("MuiDivider",["root","absolute","fullWidth","inset","middle","flexItem","light","vertical","withChildren","withChildrenVertical","textAlignRight","textAlignLeft","wrapper","wrapperVertical"]),yt=Pr,Rr=G("MuiListItemIcon",["root","alignItemsFlexStart"]),ht=Rr;function wa(e){return Q("MuiListItemText",e)}const kr=G("MuiListItemText",["root","multiline","dense","inset","primary","secondary"]),xt=kr;function Tr(e){return Q("MuiMenuItem",e)}const Mr=G("MuiMenuItem",["root","focusVisible","dense","disabled","divider","gutters","selected"]),ye=Mr,Er=["autoFocus","component","dense","divider","disableGutters","focusVisibleClassName","role","tabIndex","className"],Ir=(e,t)=>{const{ownerState:o}=e;return[t.root,o.dense&&t.dense,o.divider&&t.divider,!o.disableGutters&&t.gutters]},Ar=e=>{const{disabled:t,dense:o,divider:r,disableGutters:a,selected:n,classes:l}=e,s=re({root:["root",o&&"dense",t&&"disabled",!a&&"gutters",r&&"divider",n&&"selected"]},Tr,l);return P({},l,s)},Dr=te(ze,{shouldForwardProp:e=>qt(e)||e==="classes",name:"MuiMenuItem",slot:"Root",overridesResolver:Ir})(({theme:e,ownerState:t})=>P({},e.typography.body1,{display:"flex",justifyContent:"flex-start",alignItems:"center",position:"relative",textDecoration:"none",minHeight:48,paddingTop:6,paddingBottom:6,boxSizing:"border-box",whiteSpace:"nowrap"},!t.disableGutters&&{paddingLeft:16,paddingRight:16},t.divider&&{borderBottom:`1px solid ${(e.vars||e).palette.divider}`,backgroundClip:"padding-box"},{"&:hover":{textDecoration:"none",backgroundColor:(e.vars||e).palette.action.hover,"@media (hover: none)":{backgroundColor:"transparent"}},[`&.${ye.selected}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:H(e.palette.primary.main,e.palette.action.selectedOpacity),[`&.${ye.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.focusOpacity}))`:H(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.focusOpacity)}},[`&.${ye.selected}:hover`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.hoverOpacity}))`:H(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:H(e.palette.primary.main,e.palette.action.selectedOpacity)}},[`&.${ye.focusVisible}`]:{backgroundColor:(e.vars||e).palette.action.focus},[`&.${ye.disabled}`]:{opacity:(e.vars||e).palette.action.disabledOpacity},[`& + .${yt.root}`]:{marginTop:e.spacing(1),marginBottom:e.spacing(1)},[`& + .${yt.inset}`]:{marginLeft:52},[`& .${xt.root}`]:{marginTop:0,marginBottom:0},[`& .${xt.inset}`]:{paddingLeft:36},[`& .${ht.root}`]:{minWidth:36}},!t.dense&&{[e.breakpoints.up("sm")]:{minHeight:"auto"}},t.dense&&P({minHeight:32,paddingTop:4,paddingBottom:4},e.typography.body2,{[`& .${ht.root} svg`]:{fontSize:"1.25rem"}}))),jr=$.forwardRef(function(t,o){const r=ae({props:t,name:"MuiMenuItem"}),{autoFocus:a=!1,component:n="li",dense:l=!1,divider:i=!1,disableGutters:s=!1,focusVisibleClassName:p,role:c="menuitem",tabIndex:u,className:m}=r,d=Z(r,Er),b=$.useContext(st),g=$.useMemo(()=>({dense:l||b.dense||!1,disableGutters:s}),[b.dense,l,s]),v=$.useRef(null);Ne(()=>{a&&v.current&&v.current.focus()},[a]);const y=P({},r,{dense:g.dense,divider:i,disableGutters:s}),w=Ar(r),x=Ie(v,o);let f;return r.disabled||(f=u!==void 0?u:-1),B.jsx(st.Provider,{value:g,children:B.jsx(Dr,P({ref:x,role:c,tabIndex:f,component:n,focusVisibleClassName:W(w.focusVisible,p),className:W(w.root,m)},d,{ownerState:y,classes:w}))})}),Oa=jr,Br=$.createContext(),Ht=Br;function Hr(e){return Q("MuiTable",e)}const Sr=G("MuiTable",["root","stickyHeader"]),Pa=Sr,Lr=["className","component","padding","size","stickyHeader"],Nr=e=>{const{classes:t,stickyHeader:o}=e;return re({root:["root",o&&"stickyHeader"]},Hr,t)},zr=te("table",{name:"MuiTable",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:o}=e;return[t.root,o.stickyHeader&&t.stickyHeader]}})(({theme:e,ownerState:t})=>P({display:"table",width:"100%",borderCollapse:"collapse",borderSpacing:0,"& caption":P({},e.typography.body2,{padding:e.spacing(2),color:(e.vars||e).palette.text.secondary,textAlign:"left",captionSide:"bottom"})},t.stickyHeader&&{borderCollapse:"separate"})),Ct="table",Vr=$.forwardRef(function(t,o){const r=ae({props:t,name:"MuiTable"}),{className:a,component:n=Ct,padding:l="normal",size:i="medium",stickyHeader:s=!1}=r,p=Z(r,Lr),c=P({},r,{component:n,padding:l,size:i,stickyHeader:s}),u=Nr(c),m=$.useMemo(()=>({padding:l,size:i,stickyHeader:s}),[l,i,s]);return B.jsx(Ht.Provider,{value:m,children:B.jsx(zr,P({as:n,role:n===Ct?null:"table",ref:o,className:W(u.root,a),ownerState:c},p))})}),Ra=Vr,Wr=$.createContext(),je=Wr;function Ur(e){return Q("MuiTableBody",e)}const Fr=G("MuiTableBody",["root"]),ka=Fr,qr=["className","component"],Xr=e=>{const{classes:t}=e;return re({root:["root"]},Ur,t)},Kr=te("tbody",{name:"MuiTableBody",slot:"Root",overridesResolver:(e,t)=>t.root})({display:"table-row-group"}),Yr={variant:"body"},$t="tbody",Gr=$.forwardRef(function(t,o){const r=ae({props:t,name:"MuiTableBody"}),{className:a,component:n=$t}=r,l=Z(r,qr),i=P({},r,{component:n}),s=Xr(i);return B.jsx(je.Provider,{value:Yr,children:B.jsx(Kr,P({className:W(s.root,a),as:n,ref:o,role:n===$t?null:"rowgroup",ownerState:i},l))})}),Ta=Gr;function Jr(e){return Q("MuiTableCell",e)}const _r=G("MuiTableCell",["root","head","body","footer","sizeSmall","sizeMedium","paddingCheckbox","paddingNone","alignLeft","alignCenter","alignRight","alignJustify","stickyHeader"]),Qr=_r,Zr=["align","className","component","padding","scope","size","sortDirection","variant"],ea=e=>{const{classes:t,variant:o,align:r,padding:a,size:n,stickyHeader:l}=e,i={root:["root",o,l&&"stickyHeader",r!=="inherit"&&`align${O(r)}`,a!=="normal"&&`padding${O(a)}`,`size${O(n)}`]};return re(i,Jr,t)},ta=te("td",{name:"MuiTableCell",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:o}=e;return[t.root,t[o.variant],t[`size${O(o.size)}`],o.padding!=="normal"&&t[`padding${O(o.padding)}`],o.align!=="inherit"&&t[`align${O(o.align)}`],o.stickyHeader&&t.stickyHeader]}})(({theme:e,ownerState:t})=>P({},e.typography.body2,{display:"table-cell",verticalAlign:"inherit",borderBottom:e.vars?`1px solid ${e.vars.palette.TableCell.border}`:`1px solid + ${e.palette.mode==="light"?Xt(H(e.palette.divider,1),.88):Kt(H(e.palette.divider,1),.68)}`,textAlign:"left",padding:16},t.variant==="head"&&{color:(e.vars||e).palette.text.primary,lineHeight:e.typography.pxToRem(24),fontWeight:e.typography.fontWeightMedium},t.variant==="body"&&{color:(e.vars||e).palette.text.primary},t.variant==="footer"&&{color:(e.vars||e).palette.text.secondary,lineHeight:e.typography.pxToRem(21),fontSize:e.typography.pxToRem(12)},t.size==="small"&&{padding:"6px 16px",[`&.${Qr.paddingCheckbox}`]:{width:24,padding:"0 12px 0 16px","& > *":{padding:0}}},t.padding==="checkbox"&&{width:48,padding:"0 0 0 4px"},t.padding==="none"&&{padding:0},t.align==="left"&&{textAlign:"left"},t.align==="center"&&{textAlign:"center"},t.align==="right"&&{textAlign:"right",flexDirection:"row-reverse"},t.align==="justify"&&{textAlign:"justify"},t.stickyHeader&&{position:"sticky",top:0,zIndex:2,backgroundColor:(e.vars||e).palette.background.default})),oa=$.forwardRef(function(t,o){const r=ae({props:t,name:"MuiTableCell"}),{align:a="inherit",className:n,component:l,padding:i,scope:s,size:p,sortDirection:c,variant:u}=r,m=Z(r,Zr),d=$.useContext(Ht),b=$.useContext(je),g=b&&b.variant==="head";let v;l?v=l:v=g?"th":"td";let y=s;v==="td"?y=void 0:!y&&g&&(y="col");const w=u||b&&b.variant,x=P({},r,{align:a,component:v,padding:i||(d&&d.padding?d.padding:"normal"),size:p||(d&&d.size?d.size:"medium"),sortDirection:c,stickyHeader:w==="head"&&d&&d.stickyHeader,variant:w}),f=ea(x);let h=null;return c&&(h=c==="asc"?"ascending":"descending"),B.jsx(ta,P({as:v,ref:o,className:W(f.root,n),"aria-sort":h,scope:y,ownerState:x},m))}),Ma=oa;function ra(e){return Q("MuiTableHead",e)}const aa=G("MuiTableHead",["root"]),Ea=aa,na=["className","component"],ia=e=>{const{classes:t}=e;return re({root:["root"]},ra,t)},sa=te("thead",{name:"MuiTableHead",slot:"Root",overridesResolver:(e,t)=>t.root})({display:"table-header-group"}),la={variant:"head"},wt="thead",ca=$.forwardRef(function(t,o){const r=ae({props:t,name:"MuiTableHead"}),{className:a,component:n=wt}=r,l=Z(r,na),i=P({},r,{component:n}),s=ia(i);return B.jsx(je.Provider,{value:la,children:B.jsx(sa,P({as:n,className:W(s.root,a),ref:o,role:n===wt?null:"rowgroup",ownerState:i},l))})}),Ia=ca;function pa(e){return Q("MuiTableRow",e)}const da=G("MuiTableRow",["root","selected","hover","head","footer"]),Ot=da,ua=["className","component","hover","selected"],fa=e=>{const{classes:t,selected:o,hover:r,head:a,footer:n}=e;return re({root:["root",o&&"selected",r&&"hover",a&&"head",n&&"footer"]},pa,t)},va=te("tr",{name:"MuiTableRow",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:o}=e;return[t.root,o.head&&t.head,o.footer&&t.footer]}})(({theme:e})=>({color:"inherit",display:"table-row",verticalAlign:"middle",outline:0,[`&.${Ot.hover}:hover`]:{backgroundColor:(e.vars||e).palette.action.hover},[`&.${Ot.selected}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:H(e.palette.primary.main,e.palette.action.selectedOpacity),"&:hover":{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.hoverOpacity}))`:H(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.hoverOpacity)}}})),Pt="tr",ga=$.forwardRef(function(t,o){const r=ae({props:t,name:"MuiTableRow"}),{className:a,component:n=Pt,hover:l=!1,selected:i=!1}=r,s=Z(r,ua),p=$.useContext(je),c=P({},r,{component:n,hover:l,selected:i,head:p&&p.variant==="head",footer:p&&p.variant==="footer"}),u=fa(c);return B.jsx(va,P({as:n,ref:o,className:W(u.root,a),role:n===Pt?null:"row",ownerState:c},s))}),Aa=ga;export{Ca as C,Oa as M,xa as P,Ra as T,Ia as a,Aa as b,Ma as c,Ta as d,ha as e,k as f,$a as g,yr as h,wa as i,Tr as j,Hr as k,xt as l,ye as m,Ur as n,ka as o,Jr as p,Qr as q,je as r,ra as s,Pa as t,Ea as u,pa as v,Ot as w}; diff --git a/src/evidently/ui/ui/static/js/Tabs-2c8f7c5f.js b/src/evidently/ui/ui/static/js/Tabs-2c8f7c5f.js new file mode 100644 index 0000000000..307b90e6da --- /dev/null +++ b/src/evidently/ui/ui/static/js/Tabs-2c8f7c5f.js @@ -0,0 +1 @@ +import{a as dt,g as ut,s as k,B as zt,c as Pt,_ as b,u as bt,b as et,d as z,e as ft,f as Lt,o as Zt,ay as Nt,az as $t,x as kt,i as tt,w as it,y as te}from"./createSvgIcon-41173291.js";import{e as c,j as S}from"./vendor-20fe28cb.js";let X;function Ft(){if(X)return X;const t=document.createElement("div"),e=document.createElement("div");return e.style.width="10px",e.style.height="1px",t.appendChild(e),t.dir="rtl",t.style.fontSize="14px",t.style.width="4px",t.style.height="1px",t.style.position="absolute",t.style.top="-1000px",t.style.overflow="scroll",document.body.appendChild(t),X="reverse",t.scrollLeft>0?X="default":(t.scrollLeft=1,t.scrollLeft===0&&(X="negative")),document.body.removeChild(t),X}function ee(t,e){const r=t.scrollLeft;if(e!=="rtl")return r;switch(Ft()){case"negative":return t.scrollWidth-t.clientWidth+r;case"reverse":return t.scrollWidth-t.clientWidth-r;default:return r}}function oe(t){return ut("MuiTab",t)}const le=dt("MuiTab",["root","labelIcon","textColorInherit","textColorPrimary","textColorSecondary","selected","disabled","fullWidth","wrapped","iconWrapper"]),$=le,re=["className","disabled","disableFocusRipple","fullWidth","icon","iconPosition","indicator","label","onChange","onClick","onFocus","selected","selectionFollowsFocus","textColor","value","wrapped"],ne=t=>{const{classes:e,textColor:r,fullWidth:i,wrapped:n,icon:d,label:p,selected:f,disabled:u}=t,v={root:["root",d&&p&&"labelIcon",`textColor${Pt(r)}`,i&&"fullWidth",n&&"wrapped",f&&"selected",u&&"disabled"],iconWrapper:["iconWrapper"]};return ft(v,oe,e)},se=k(zt,{name:"MuiTab",slot:"Root",overridesResolver:(t,e)=>{const{ownerState:r}=t;return[e.root,r.label&&r.icon&&e.labelIcon,e[`textColor${Pt(r.textColor)}`],r.fullWidth&&e.fullWidth,r.wrapped&&e.wrapped]}})(({theme:t,ownerState:e})=>b({},t.typography.button,{maxWidth:360,minWidth:90,position:"relative",minHeight:48,flexShrink:0,padding:"12px 16px",overflow:"hidden",whiteSpace:"normal",textAlign:"center"},e.label&&{flexDirection:e.iconPosition==="top"||e.iconPosition==="bottom"?"column":"row"},{lineHeight:1.25},e.icon&&e.label&&{minHeight:72,paddingTop:9,paddingBottom:9,[`& > .${$.iconWrapper}`]:b({},e.iconPosition==="top"&&{marginBottom:6},e.iconPosition==="bottom"&&{marginTop:6},e.iconPosition==="start"&&{marginRight:t.spacing(1)},e.iconPosition==="end"&&{marginLeft:t.spacing(1)})},e.textColor==="inherit"&&{color:"inherit",opacity:.6,[`&.${$.selected}`]:{opacity:1},[`&.${$.disabled}`]:{opacity:(t.vars||t).palette.action.disabledOpacity}},e.textColor==="primary"&&{color:(t.vars||t).palette.text.secondary,[`&.${$.selected}`]:{color:(t.vars||t).palette.primary.main},[`&.${$.disabled}`]:{color:(t.vars||t).palette.text.disabled}},e.textColor==="secondary"&&{color:(t.vars||t).palette.text.secondary,[`&.${$.selected}`]:{color:(t.vars||t).palette.secondary.main},[`&.${$.disabled}`]:{color:(t.vars||t).palette.text.disabled}},e.fullWidth&&{flexShrink:1,flexGrow:1,flexBasis:0,maxWidth:"none"},e.wrapped&&{fontSize:t.typography.pxToRem(12)})),ae=c.forwardRef(function(e,r){const i=bt({props:e,name:"MuiTab"}),{className:n,disabled:d=!1,disableFocusRipple:p=!1,fullWidth:f,icon:u,iconPosition:v="top",indicator:B,label:w,onChange:g,onClick:m,onFocus:F,selected:T,selectionFollowsFocus:x,textColor:A="inherit",value:y,wrapped:ot=!1}=i,j=et(i,re),U=b({},i,{disabled:d,disableFocusRipple:p,selected:T,icon:!!u,iconPosition:v,label:!!w,fullWidth:f,textColor:A,wrapped:ot}),H=ne(U),P=u&&w&&c.isValidElement(u)?c.cloneElement(u,{className:z(H.iconWrapper,u.props.className)}):u,V=E=>{!T&&g&&g(E,y),m&&m(E)},O=E=>{x&&!T&&g&&g(E,y),F&&F(E)};return S.jsxs(se,b({focusRipple:!p,className:z(H.root,n),ref:r,role:"tab","aria-selected":T,disabled:d,onClick:V,onFocus:O,ownerState:U,tabIndex:T?0:-1},j,{children:[v==="top"||v==="start"?S.jsxs(c.Fragment,{children:[P,w]}):S.jsxs(c.Fragment,{children:[w,P]}),B]}))}),$e=ae,ie=Lt(S.jsx("path",{d:"M15.41 16.09l-4.58-4.59 4.58-4.59L14 5.5l-6 6 6 6z"}),"KeyboardArrowLeft"),ce=Lt(S.jsx("path",{d:"M8.59 16.34l4.58-4.59-4.58-4.59L10 5.75l6 6-6 6z"}),"KeyboardArrowRight");function de(t){return(1+Math.sin(Math.PI*t-Math.PI/2))/2}function ue(t,e,r,i={},n=()=>{}){const{ease:d=de,duration:p=300}=i;let f=null;const u=e[t];let v=!1;const B=()=>{v=!0},w=g=>{if(v){n(new Error("Animation cancelled"));return}f===null&&(f=g);const m=Math.min(1,(g-f)/p);if(e[t]=d(m)*(r-u)+u,m>=1){requestAnimationFrame(()=>{n(null)});return}requestAnimationFrame(w)};return u===r?(n(new Error("Element already at target position")),B):(requestAnimationFrame(w),B)}const be=["onChange"],fe={width:99,height:99,position:"absolute",top:-9999,overflow:"scroll"};function pe(t){const{onChange:e}=t,r=et(t,be),i=c.useRef(),n=c.useRef(null),d=()=>{i.current=n.current.offsetHeight-n.current.clientHeight};return Zt(()=>{const p=$t(()=>{const u=i.current;d(),u!==i.current&&e(i.current)}),f=Nt(n.current);return f.addEventListener("resize",p),()=>{p.clear(),f.removeEventListener("resize",p)}},[e]),c.useEffect(()=>{d(),e(i.current)},[e]),S.jsx("div",b({style:fe,ref:n},r))}function he(t){return ut("MuiTabScrollButton",t)}const Se=dt("MuiTabScrollButton",["root","vertical","horizontal","disabled"]),ve=Se,me=["className","slots","slotProps","direction","orientation","disabled"],xe=t=>{const{classes:e,orientation:r,disabled:i}=t;return ft({root:["root",r,i&&"disabled"]},he,e)},ge=k(zt,{name:"MuiTabScrollButton",slot:"Root",overridesResolver:(t,e)=>{const{ownerState:r}=t;return[e.root,r.orientation&&e[r.orientation]]}})(({ownerState:t})=>b({width:40,flexShrink:0,opacity:.8,[`&.${ve.disabled}`]:{opacity:0}},t.orientation==="vertical"&&{width:"100%",height:40,"& svg":{transform:`rotate(${t.isRtl?-90:90}deg)`}})),ye=c.forwardRef(function(e,r){var i,n;const d=bt({props:e,name:"MuiTabScrollButton"}),{className:p,slots:f={},slotProps:u={},direction:v}=d,B=et(d,me),g=kt().direction==="rtl",m=b({isRtl:g},d),F=xe(m),T=(i=f.StartScrollButtonIcon)!=null?i:ie,x=(n=f.EndScrollButtonIcon)!=null?n:ce,A=tt({elementType:T,externalSlotProps:u.startScrollButtonIcon,additionalProps:{fontSize:"small"},ownerState:m}),y=tt({elementType:x,externalSlotProps:u.endScrollButtonIcon,additionalProps:{fontSize:"small"},ownerState:m});return S.jsx(ge,b({component:"div",className:z(F.root,p),ref:r,role:null,ownerState:m,tabIndex:null},B,{children:v==="left"?S.jsx(T,b({},A)):S.jsx(x,b({},y))}))}),Ce=ye;function Be(t){return ut("MuiTabs",t)}const we=dt("MuiTabs",["root","vertical","flexContainer","flexContainerVertical","centered","scroller","fixed","scrollableX","scrollableY","hideScrollbar","scrollButtons","scrollButtonsHideMobile","indicator"]),ct=we,Te=["aria-label","aria-labelledby","action","centered","children","className","component","allowScrollButtonsMobile","indicatorColor","onChange","orientation","ScrollButtonComponent","scrollButtons","selectionFollowsFocus","slots","slotProps","TabIndicatorProps","TabScrollButtonProps","textColor","value","variant","visibleScrollbar"],Mt=(t,e)=>t===e?t.firstChild:e&&e.nextElementSibling?e.nextElementSibling:t.firstChild,Rt=(t,e)=>t===e?t.lastChild:e&&e.previousElementSibling?e.previousElementSibling:t.lastChild,Z=(t,e,r)=>{let i=!1,n=r(t,e);for(;n;){if(n===t.firstChild){if(i)return;i=!0}const d=n.disabled||n.getAttribute("aria-disabled")==="true";if(!n.hasAttribute("tabindex")||d)n=r(t,n);else{n.focus();return}}},Ie=t=>{const{vertical:e,fixed:r,hideScrollbar:i,scrollableX:n,scrollableY:d,centered:p,scrollButtonsHideMobile:f,classes:u}=t;return ft({root:["root",e&&"vertical"],scroller:["scroller",r&&"fixed",i&&"hideScrollbar",n&&"scrollableX",d&&"scrollableY"],flexContainer:["flexContainer",e&&"flexContainerVertical",p&&"centered"],indicator:["indicator"],scrollButtons:["scrollButtons",f&&"scrollButtonsHideMobile"],scrollableX:[n&&"scrollableX"],hideScrollbar:[i&&"hideScrollbar"]},Be,u)},Ee=k("div",{name:"MuiTabs",slot:"Root",overridesResolver:(t,e)=>{const{ownerState:r}=t;return[{[`& .${ct.scrollButtons}`]:e.scrollButtons},{[`& .${ct.scrollButtons}`]:r.scrollButtonsHideMobile&&e.scrollButtonsHideMobile},e.root,r.vertical&&e.vertical]}})(({ownerState:t,theme:e})=>b({overflow:"hidden",minHeight:48,WebkitOverflowScrolling:"touch",display:"flex"},t.vertical&&{flexDirection:"column"},t.scrollButtonsHideMobile&&{[`& .${ct.scrollButtons}`]:{[e.breakpoints.down("sm")]:{display:"none"}}})),Me=k("div",{name:"MuiTabs",slot:"Scroller",overridesResolver:(t,e)=>{const{ownerState:r}=t;return[e.scroller,r.fixed&&e.fixed,r.hideScrollbar&&e.hideScrollbar,r.scrollableX&&e.scrollableX,r.scrollableY&&e.scrollableY]}})(({ownerState:t})=>b({position:"relative",display:"inline-block",flex:"1 1 auto",whiteSpace:"nowrap"},t.fixed&&{overflowX:"hidden",width:"100%"},t.hideScrollbar&&{scrollbarWidth:"none","&::-webkit-scrollbar":{display:"none"}},t.scrollableX&&{overflowX:"auto",overflowY:"hidden"},t.scrollableY&&{overflowY:"auto",overflowX:"hidden"})),Re=k("div",{name:"MuiTabs",slot:"FlexContainer",overridesResolver:(t,e)=>{const{ownerState:r}=t;return[e.flexContainer,r.vertical&&e.flexContainerVertical,r.centered&&e.centered]}})(({ownerState:t})=>b({display:"flex"},t.vertical&&{flexDirection:"column"},t.centered&&{justifyContent:"center"})),We=k("span",{name:"MuiTabs",slot:"Indicator",overridesResolver:(t,e)=>e.indicator})(({ownerState:t,theme:e})=>b({position:"absolute",height:2,bottom:0,width:"100%",transition:e.transitions.create()},t.indicatorColor==="primary"&&{backgroundColor:(e.vars||e).palette.primary.main},t.indicatorColor==="secondary"&&{backgroundColor:(e.vars||e).palette.secondary.main},t.vertical&&{height:"100%",width:2,right:0})),ze=k(pe)({overflowX:"auto",overflowY:"hidden",scrollbarWidth:"none","&::-webkit-scrollbar":{display:"none"}}),Wt={},Pe=c.forwardRef(function(e,r){const i=bt({props:e,name:"MuiTabs"}),n=kt(),d=n.direction==="rtl",{"aria-label":p,"aria-labelledby":f,action:u,centered:v=!1,children:B,className:w,component:g="div",allowScrollButtonsMobile:m=!1,indicatorColor:F="primary",onChange:T,orientation:x="horizontal",ScrollButtonComponent:A=Ce,scrollButtons:y="auto",selectionFollowsFocus:ot,slots:j={},slotProps:U={},TabIndicatorProps:H={},TabScrollButtonProps:P={},textColor:V="primary",value:O,variant:E="standard",visibleScrollbar:lt=!1}=i,At=et(i,Te),I=E==="scrollable",C=x==="vertical",Y=C?"scrollTop":"scrollLeft",q=C?"top":"left",G=C?"bottom":"right",rt=C?"clientHeight":"clientWidth",K=C?"height":"width",L=b({},i,{component:g,allowScrollButtonsMobile:m,indicatorColor:F,orientation:x,vertical:C,scrollButtons:y,textColor:V,variant:E,visibleScrollbar:lt,fixed:!I,hideScrollbar:I&&!lt,scrollableX:I&&!C,scrollableY:I&&C,centered:v&&!I,scrollButtonsHideMobile:!m}),R=Ie(L),jt=tt({elementType:j.StartScrollButtonIcon,externalSlotProps:U.startScrollButtonIcon,ownerState:L}),Ht=tt({elementType:j.EndScrollButtonIcon,externalSlotProps:U.endScrollButtonIcon,ownerState:L}),[pt,Ot]=c.useState(!1),[N,ht]=c.useState(Wt),[St,Dt]=c.useState(!1),[vt,Xt]=c.useState(!1),[mt,Ut]=c.useState(!1),[xt,Yt]=c.useState({overflow:"hidden",scrollbarWidth:0}),gt=new Map,M=c.useRef(null),D=c.useRef(null),yt=()=>{const o=M.current;let l;if(o){const a=o.getBoundingClientRect();l={clientWidth:o.clientWidth,scrollLeft:o.scrollLeft,scrollTop:o.scrollTop,scrollLeftNormalized:ee(o,n.direction),scrollWidth:o.scrollWidth,top:a.top,bottom:a.bottom,left:a.left,right:a.right}}let s;if(o&&O!==!1){const a=D.current.children;if(a.length>0){const h=a[gt.get(O)];s=h?h.getBoundingClientRect():null}}return{tabsMeta:l,tabMeta:s}},_=it(()=>{const{tabsMeta:o,tabMeta:l}=yt();let s=0,a;if(C)a="top",l&&o&&(s=l.top-o.top+o.scrollTop);else if(a=d?"right":"left",l&&o){const W=d?o.scrollLeftNormalized+o.clientWidth-o.scrollWidth:o.scrollLeft;s=(d?-1:1)*(l[a]-o[a]+W)}const h={[a]:s,[K]:l?l[K]:0};if(isNaN(N[a])||isNaN(N[K]))ht(h);else{const W=Math.abs(N[a]-h[a]),Q=Math.abs(N[K]-h[K]);(W>=1||Q>=1)&&ht(h)}}),nt=(o,{animation:l=!0}={})=>{l?ue(Y,M.current,o,{duration:n.transitions.duration.standard}):M.current[Y]=o},Ct=o=>{let l=M.current[Y];C?l+=o:(l+=o*(d?-1:1),l*=d&&Ft()==="reverse"?-1:1),nt(l)},Bt=()=>{const o=M.current[rt];let l=0;const s=Array.from(D.current.children);for(let a=0;ao){a===0&&(l=o);break}l+=h[rt]}return l},Kt=()=>{Ct(-1*Bt())},_t=()=>{Ct(Bt())},Vt=c.useCallback(o=>{Yt({overflow:null,scrollbarWidth:o})},[]),qt=()=>{const o={};o.scrollbarSizeListener=I?S.jsx(ze,{onChange:Vt,className:z(R.scrollableX,R.hideScrollbar)}):null;const s=I&&(y==="auto"&&(St||vt)||y===!0);return o.scrollButtonStart=s?S.jsx(A,b({slots:{StartScrollButtonIcon:j.StartScrollButtonIcon},slotProps:{startScrollButtonIcon:jt},orientation:x,direction:d?"right":"left",onClick:Kt,disabled:!St},P,{className:z(R.scrollButtons,P.className)})):null,o.scrollButtonEnd=s?S.jsx(A,b({slots:{EndScrollButtonIcon:j.EndScrollButtonIcon},slotProps:{endScrollButtonIcon:Ht},orientation:x,direction:d?"left":"right",onClick:_t,disabled:!vt},P,{className:z(R.scrollButtons,P.className)})):null,o},wt=it(o=>{const{tabsMeta:l,tabMeta:s}=yt();if(!(!s||!l)){if(s[q]l[G]){const a=l[Y]+(s[G]-l[G]);nt(a,{animation:o})}}}),Tt=it(()=>{I&&y!==!1&&Ut(!mt)});c.useEffect(()=>{const o=$t(()=>{M.current&&_()}),l=Nt(M.current);l.addEventListener("resize",o);let s;return typeof ResizeObserver<"u"&&(s=new ResizeObserver(o),Array.from(D.current.children).forEach(a=>{s.observe(a)})),()=>{o.clear(),l.removeEventListener("resize",o),s&&s.disconnect()}},[_]),c.useEffect(()=>{const o=Array.from(D.current.children),l=o.length;if(typeof IntersectionObserver<"u"&&l>0&&I&&y!==!1){const s=o[0],a=o[l-1],h={root:M.current,threshold:.99},W=at=>{Dt(!at[0].isIntersecting)},Q=new IntersectionObserver(W,h);Q.observe(s);const Qt=at=>{Xt(!at[0].isIntersecting)},Et=new IntersectionObserver(Qt,h);return Et.observe(a),()=>{Q.disconnect(),Et.disconnect()}}},[I,y,mt,B==null?void 0:B.length]),c.useEffect(()=>{Ot(!0)},[]),c.useEffect(()=>{_()}),c.useEffect(()=>{wt(Wt!==N)},[wt,N]),c.useImperativeHandle(u,()=>({updateIndicator:_,updateScrollButtons:Tt}),[_,Tt]);const It=S.jsx(We,b({},H,{className:z(R.indicator,H.className),ownerState:L,style:b({},N,H.style)}));let J=0;const Gt=c.Children.map(B,o=>{if(!c.isValidElement(o))return null;const l=o.props.value===void 0?J:o.props.value;gt.set(l,J);const s=l===O;return J+=1,c.cloneElement(o,b({fullWidth:E==="fullWidth",indicator:s&&!pt&&It,selected:s,selectionFollowsFocus:ot,onChange:T,textColor:V,value:l},J===1&&O===!1&&!o.props.tabIndex?{tabIndex:0}:{}))}),Jt=o=>{const l=D.current,s=te(l).activeElement;if(s.getAttribute("role")!=="tab")return;let h=x==="horizontal"?"ArrowLeft":"ArrowUp",W=x==="horizontal"?"ArrowRight":"ArrowDown";switch(x==="horizontal"&&d&&(h="ArrowRight",W="ArrowLeft"),o.key){case h:o.preventDefault(),Z(l,s,Rt);break;case W:o.preventDefault(),Z(l,s,Mt);break;case"Home":o.preventDefault(),Z(l,null,Mt);break;case"End":o.preventDefault(),Z(l,null,Rt);break}},st=qt();return S.jsxs(Ee,b({className:z(R.root,w),ownerState:L,ref:r,as:g},At,{children:[st.scrollButtonStart,st.scrollbarSizeListener,S.jsxs(Me,{className:R.scroller,ownerState:L,style:{overflow:xt.overflow,[C?`margin${d?"Left":"Right"}`:"marginBottom"]:lt?void 0:-xt.scrollbarWidth},ref:M,children:[S.jsx(Re,{"aria-label":p,"aria-labelledby":f,"aria-orientation":x==="vertical"?"vertical":null,className:R.flexContainer,ownerState:L,onKeyDown:Jt,ref:D,role:"tablist",children:Gt}),pt&&It]}),st.scrollButtonEnd]}))}),ke=Pe;export{ce as K,ke as T,$e as a,ie as b,ct as t}; diff --git a/src/evidently/ui/ui/static/js/TextField-33506b98.js b/src/evidently/ui/ui/static/js/TextField-33506b98.js new file mode 100644 index 0000000000..0002d11222 --- /dev/null +++ b/src/evidently/ui/ui/static/js/TextField-33506b98.js @@ -0,0 +1,2 @@ +import{aA as an,A as ln,ak as dn,b as U,aB as Wt,q as ge,y as he,o as De,E as Et,ay as ke,w as Rt,aC as cn,_ as d,aD as St,az as jt,aE as un,a4 as pn,a as se,g as ie,c as ce,s as j,u as le,d as re,t as ut,e as ae,L as _t,f as fn,x as mt,i as ze,ap as Fe,M as ht,p as it,aF as mn,v as Pt,C as Ht}from"./createSvgIcon-41173291.js";import{j as E,p as Ye,R as Je,e as l,o as Ut}from"./vendor-20fe28cb.js";import{P as hn}from"./Button-085c6ce4.js";function Kt(e){const t=e.documentElement.clientWidth;return Math.abs(window.innerWidth-t)}function bn(e){return e==null||Object.keys(e).length===0}function gn(e){const{styles:t,defaultTheme:n={}}=e,o=typeof t=="function"?s=>t(bn(s)?n:s):t;return E.jsx(an,{styles:o})}function vn({styles:e,themeId:t,defaultTheme:n={}}){const o=ln(n),s=typeof e=="function"?e(t&&o[t]||o):e;return E.jsx(gn,{styles:s})}const It={disabled:!1};var xn=function(t){return t.scrollTop},qe="unmounted",we="exited",Te="entering",Be="entered",pt="exiting",Ce=function(e){dn(t,e);function t(o,s){var r;r=e.call(this,o,s)||this;var i=s,a=i&&!i.isMounting?o.enter:o.appear,c;return r.appearStatus=null,o.in?a?(c=we,r.appearStatus=Te):c=Be:o.unmountOnExit||o.mountOnEnter?c=qe:c=we,r.state={status:c},r.nextCallback=null,r}t.getDerivedStateFromProps=function(s,r){var i=s.in;return i&&r.status===qe?{status:we}:null};var n=t.prototype;return n.componentDidMount=function(){this.updateStatus(!0,this.appearStatus)},n.componentDidUpdate=function(s){var r=null;if(s!==this.props){var i=this.state.status;this.props.in?i!==Te&&i!==Be&&(r=Te):(i===Te||i===Be)&&(r=pt)}this.updateStatus(!1,r)},n.componentWillUnmount=function(){this.cancelNextCallback()},n.getTimeouts=function(){var s=this.props.timeout,r,i,a;return r=i=a=s,s!=null&&typeof s!="number"&&(r=s.exit,i=s.enter,a=s.appear!==void 0?s.appear:i),{exit:r,enter:i,appear:a}},n.updateStatus=function(s,r){if(s===void 0&&(s=!1),r!==null)if(this.cancelNextCallback(),r===Te){if(this.props.unmountOnExit||this.props.mountOnEnter){var i=this.props.nodeRef?this.props.nodeRef.current:Ye.findDOMNode(this);i&&xn(i)}this.performEnter(s)}else this.performExit();else this.props.unmountOnExit&&this.state.status===we&&this.setState({status:qe})},n.performEnter=function(s){var r=this,i=this.props.enter,a=this.context?this.context.isMounting:s,c=this.props.nodeRef?[a]:[Ye.findDOMNode(this),a],u=c[0],m=c[1],b=this.getTimeouts(),x=a?b.appear:b.enter;if(!s&&!i||It.disabled){this.safeSetState({status:Be},function(){r.props.onEntered(u)});return}this.props.onEnter(u,m),this.safeSetState({status:Te},function(){r.props.onEntering(u,m),r.onTransitionEnd(x,function(){r.safeSetState({status:Be},function(){r.props.onEntered(u,m)})})})},n.performExit=function(){var s=this,r=this.props.exit,i=this.getTimeouts(),a=this.props.nodeRef?void 0:Ye.findDOMNode(this);if(!r||It.disabled){this.safeSetState({status:we},function(){s.props.onExited(a)});return}this.props.onExit(a),this.safeSetState({status:pt},function(){s.props.onExiting(a),s.onTransitionEnd(i.exit,function(){s.safeSetState({status:we},function(){s.props.onExited(a)})})})},n.cancelNextCallback=function(){this.nextCallback!==null&&(this.nextCallback.cancel(),this.nextCallback=null)},n.safeSetState=function(s,r){r=this.setNextCallback(r),this.setState(s,r)},n.setNextCallback=function(s){var r=this,i=!0;return this.nextCallback=function(a){i&&(i=!1,r.nextCallback=null,s(a))},this.nextCallback.cancel=function(){i=!1},this.nextCallback},n.onTransitionEnd=function(s,r){this.setNextCallback(r);var i=this.props.nodeRef?this.props.nodeRef.current:Ye.findDOMNode(this),a=s==null&&!this.props.addEndListener;if(!i||a){setTimeout(this.nextCallback,0);return}if(this.props.addEndListener){var c=this.props.nodeRef?[this.nextCallback]:[i,this.nextCallback],u=c[0],m=c[1];this.props.addEndListener(u,m)}s!=null&&setTimeout(this.nextCallback,s)},n.render=function(){var s=this.state.status;if(s===qe)return null;var r=this.props,i=r.children;r.in,r.mountOnEnter,r.unmountOnExit,r.appear,r.enter,r.exit,r.timeout,r.addEndListener,r.onEnter,r.onEntering,r.onEntered,r.onExit,r.onExiting,r.onExited,r.nodeRef;var a=U(r,["children","in","mountOnEnter","unmountOnExit","appear","enter","exit","timeout","addEndListener","onEnter","onEntering","onEntered","onExit","onExiting","onExited","nodeRef"]);return Je.createElement(Wt.Provider,{value:null},typeof i=="function"?i(s,a):Je.cloneElement(Je.Children.only(i),a))},t}(Je.Component);Ce.contextType=Wt;Ce.propTypes={};function Ae(){}Ce.defaultProps={in:!1,mountOnEnter:!1,unmountOnExit:!1,appear:!1,enter:!0,exit:!0,onEnter:Ae,onEntering:Ae,onEntered:Ae,onExit:Ae,onExiting:Ae,onExited:Ae};Ce.UNMOUNTED=qe;Ce.EXITED=we;Ce.ENTERING=Te;Ce.ENTERED=Be;Ce.EXITING=pt;const qt=Ce,Vt=e=>e.scrollTop;function Qe(e,t){var n,o;const{timeout:s,easing:r,style:i={}}=e;return{duration:(n=i.transitionDuration)!=null?n:typeof s=="number"?s:s[t.mode]||0,easing:(o=i.transitionTimingFunction)!=null?o:typeof r=="object"?r[t.mode]:r,delay:i.transitionDelay}}const yn=["input","select","textarea","a[href]","button","[tabindex]","audio[controls]","video[controls]",'[contenteditable]:not([contenteditable="false"])'].join(",");function Cn(e){const t=parseInt(e.getAttribute("tabindex")||"",10);return Number.isNaN(t)?e.contentEditable==="true"||(e.nodeName==="AUDIO"||e.nodeName==="VIDEO"||e.nodeName==="DETAILS")&&e.getAttribute("tabindex")===null?0:e.tabIndex:t}function En(e){if(e.tagName!=="INPUT"||e.type!=="radio"||!e.name)return!1;const t=o=>e.ownerDocument.querySelector(`input[type="radio"]${o}`);let n=t(`[name="${e.name}"]:checked`);return n||(n=t(`[name="${e.name}"]`)),n!==e}function Rn(e){return!(e.disabled||e.tagName==="INPUT"&&e.type==="hidden"||En(e))}function Sn(e){const t=[],n=[];return Array.from(e.querySelectorAll(yn)).forEach((o,s)=>{const r=Cn(o);r===-1||!Rn(o)||(r===0?t.push(o):n.push({documentOrder:s,tabIndex:r,node:o}))}),n.sort((o,s)=>o.tabIndex===s.tabIndex?o.documentOrder-s.documentOrder:o.tabIndex-s.tabIndex).map(o=>o.node).concat(t)}function Pn(){return!0}function In(e){const{children:t,disableAutoFocus:n=!1,disableEnforceFocus:o=!1,disableRestoreFocus:s=!1,getTabbable:r=Sn,isEnabled:i=Pn,open:a}=e,c=l.useRef(!1),u=l.useRef(null),m=l.useRef(null),b=l.useRef(null),x=l.useRef(null),y=l.useRef(!1),g=l.useRef(null),T=ge(t.ref,g),S=l.useRef(null);l.useEffect(()=>{!a||!g.current||(y.current=!n)},[n,a]),l.useEffect(()=>{if(!a||!g.current)return;const f=he(g.current);return g.current.contains(f.activeElement)||(g.current.hasAttribute("tabIndex")||g.current.setAttribute("tabIndex","-1"),y.current&&g.current.focus()),()=>{s||(b.current&&b.current.focus&&(c.current=!0,b.current.focus()),b.current=null)}},[a]),l.useEffect(()=>{if(!a||!g.current)return;const f=he(g.current),p=h=>{S.current=h,!(o||!i()||h.key!=="Tab")&&f.activeElement===g.current&&h.shiftKey&&(c.current=!0,m.current&&m.current.focus())},v=()=>{const h=g.current;if(h===null)return;if(!f.hasFocus()||!i()||c.current){c.current=!1;return}if(h.contains(f.activeElement)||o&&f.activeElement!==u.current&&f.activeElement!==m.current)return;if(f.activeElement!==x.current)x.current=null;else if(x.current!==null)return;if(!y.current)return;let F=[];if((f.activeElement===u.current||f.activeElement===m.current)&&(F=r(g.current)),F.length>0){var A,L;const z=!!((A=S.current)!=null&&A.shiftKey&&((L=S.current)==null?void 0:L.key)==="Tab"),B=F[0],$=F[F.length-1];typeof B!="string"&&typeof $!="string"&&(z?$.focus():B.focus())}else h.focus()};f.addEventListener("focusin",v),f.addEventListener("keydown",p,!0);const C=setInterval(()=>{f.activeElement&&f.activeElement.tagName==="BODY"&&v()},50);return()=>{clearInterval(C),f.removeEventListener("focusin",v),f.removeEventListener("keydown",p,!0)}},[n,o,s,i,a,r]);const R=f=>{b.current===null&&(b.current=f.relatedTarget),y.current=!0,x.current=f.target;const p=t.props.onFocus;p&&p(f)},P=f=>{b.current===null&&(b.current=f.relatedTarget),y.current=!0};return E.jsxs(l.Fragment,{children:[E.jsx("div",{tabIndex:a?0:-1,onFocus:P,ref:u,"data-testid":"sentinelStart"}),l.cloneElement(t,{ref:T,onFocus:R}),E.jsx("div",{tabIndex:a?0:-1,onFocus:P,ref:m,"data-testid":"sentinelEnd"})]})}function wn(e){return typeof e=="function"?e():e}const Tn=l.forwardRef(function(t,n){const{children:o,container:s,disablePortal:r=!1}=t,[i,a]=l.useState(null),c=ge(l.isValidElement(o)?o.ref:null,n);if(De(()=>{r||a(wn(s)||document.body)},[s,r]),De(()=>{if(i&&!r)return Et(n,i),()=>{Et(n,null)}},[n,i,r]),r){if(l.isValidElement(o)){const u={ref:c};return l.cloneElement(o,u)}return E.jsx(l.Fragment,{children:o})}return E.jsx(l.Fragment,{children:i&&Ut.createPortal(o,i)})});function kn(e){const t=he(e);return t.body===e?ke(e).innerWidth>t.documentElement.clientWidth:e.scrollHeight>e.clientHeight}function Ve(e,t){t?e.setAttribute("aria-hidden","true"):e.removeAttribute("aria-hidden")}function wt(e){return parseInt(ke(e).getComputedStyle(e).paddingRight,10)||0}function Fn(e){const n=["TEMPLATE","SCRIPT","STYLE","LINK","MAP","META","NOSCRIPT","PICTURE","COL","COLGROUP","PARAM","SLOT","SOURCE","TRACK"].indexOf(e.tagName)!==-1,o=e.tagName==="INPUT"&&e.getAttribute("type")==="hidden";return n||o}function Tt(e,t,n,o,s){const r=[t,n,...o];[].forEach.call(e.children,i=>{const a=r.indexOf(i)===-1,c=!Fn(i);a&&c&&Ve(i,s)})}function at(e,t){let n=-1;return e.some((o,s)=>t(o)?(n=s,!0):!1),n}function $n(e,t){const n=[],o=e.container;if(!t.disableScrollLock){if(kn(o)){const i=Kt(he(o));n.push({value:o.style.paddingRight,property:"padding-right",el:o}),o.style.paddingRight=`${wt(o)+i}px`;const a=he(o).querySelectorAll(".mui-fixed");[].forEach.call(a,c=>{n.push({value:c.style.paddingRight,property:"padding-right",el:c}),c.style.paddingRight=`${wt(c)+i}px`})}let r;if(o.parentNode instanceof DocumentFragment)r=he(o).body;else{const i=o.parentElement,a=ke(o);r=(i==null?void 0:i.nodeName)==="HTML"&&a.getComputedStyle(i).overflowY==="scroll"?i:o}n.push({value:r.style.overflow,property:"overflow",el:r},{value:r.style.overflowX,property:"overflow-x",el:r},{value:r.style.overflowY,property:"overflow-y",el:r}),r.style.overflow="hidden"}return()=>{n.forEach(({value:r,el:i,property:a})=>{r?i.style.setProperty(a,r):i.style.removeProperty(a)})}}function Mn(e){const t=[];return[].forEach.call(e.children,n=>{n.getAttribute("aria-hidden")==="true"&&t.push(n)}),t}class Nn{constructor(){this.containers=void 0,this.modals=void 0,this.modals=[],this.containers=[]}add(t,n){let o=this.modals.indexOf(t);if(o!==-1)return o;o=this.modals.length,this.modals.push(t),t.modalRef&&Ve(t.modalRef,!1);const s=Mn(n);Tt(n,t.mount,t.modalRef,s,!0);const r=at(this.containers,i=>i.container===n);return r!==-1?(this.containers[r].modals.push(t),o):(this.containers.push({modals:[t],container:n,restore:null,hiddenSiblings:s}),o)}mount(t,n){const o=at(this.containers,r=>r.modals.indexOf(t)!==-1),s=this.containers[o];s.restore||(s.restore=$n(s,n))}remove(t,n=!0){const o=this.modals.indexOf(t);if(o===-1)return o;const s=at(this.containers,i=>i.modals.indexOf(t)!==-1),r=this.containers[s];if(r.modals.splice(r.modals.indexOf(t),1),this.modals.splice(o,1),r.modals.length===0)r.restore&&r.restore(),t.modalRef&&Ve(t.modalRef,n),Tt(r.container,t.mount,t.modalRef,r.hiddenSiblings,!1),this.containers.splice(s,1);else{const i=r.modals[r.modals.length-1];i.modalRef&&Ve(i.modalRef,!1)}return o}isTopModal(t){return this.modals.length>0&&this.modals[this.modals.length-1]===t}}function On(e){return typeof e=="function"?e():e}function Ln(e){return e?e.props.hasOwnProperty("in"):!1}const An=new Nn;function Bn(e){const{container:t,disableEscapeKeyDown:n=!1,disableScrollLock:o=!1,manager:s=An,closeAfterTransition:r=!1,onTransitionEnter:i,onTransitionExited:a,children:c,onClose:u,open:m,rootRef:b}=e,x=l.useRef({}),y=l.useRef(null),g=l.useRef(null),T=ge(g,b),[S,R]=l.useState(!m),P=Ln(c);let f=!0;(e["aria-hidden"]==="false"||e["aria-hidden"]===!1)&&(f=!1);const p=()=>he(y.current),v=()=>(x.current.modalRef=g.current,x.current.mount=y.current,x.current),C=()=>{s.mount(v(),{disableScrollLock:o}),g.current&&(g.current.scrollTop=0)},h=Rt(()=>{const k=On(t)||p().body;s.add(v(),k),g.current&&C()}),F=l.useCallback(()=>s.isTopModal(v()),[s]),A=Rt(k=>{y.current=k,k&&(m&&F()?C():g.current&&Ve(g.current,f))}),L=l.useCallback(()=>{s.remove(v(),f)},[f,s]);l.useEffect(()=>()=>{L()},[L]),l.useEffect(()=>{m?h():(!P||!r)&&L()},[m,L,P,r,h]);const z=k=>M=>{var O;(O=k.onKeyDown)==null||O.call(k,M),!(M.key!=="Escape"||!F())&&(n||(M.stopPropagation(),u&&u(M,"escapeKeyDown")))},B=k=>M=>{var O;(O=k.onClick)==null||O.call(k,M),M.target===M.currentTarget&&u&&u(M,"backdropClick")};return{getRootProps:(k={})=>{const M=cn(e);delete M.onTransitionEnter,delete M.onTransitionExited;const O=d({},M,k);return d({role:"presentation"},O,{onKeyDown:z(O),ref:T})},getBackdropProps:(k={})=>{const M=k;return d({"aria-hidden":!0},M,{onClick:B(M),open:m})},getTransitionProps:()=>{const k=()=>{R(!1),i&&i()},M=()=>{R(!0),a&&a(),r&&L()};return{onEnter:St(k,c==null?void 0:c.props.onEnter),onExited:St(M,c==null?void 0:c.props.onExited)}},rootRef:T,portalRef:A,isTopModal:F,exited:S,hasTransition:P}}const Dn=["onChange","maxRows","minRows","style","value"];function Ze(e){return parseInt(e,10)||0}const zn={shadow:{visibility:"hidden",position:"absolute",overflow:"hidden",height:0,top:0,left:0,transform:"translateZ(0)"}};function kt(e){return e==null||Object.keys(e).length===0||e.outerHeightStyle===0&&!e.overflow}const Wn=l.forwardRef(function(t,n){const{onChange:o,maxRows:s,minRows:r=1,style:i,value:a}=t,c=U(t,Dn),{current:u}=l.useRef(a!=null),m=l.useRef(null),b=ge(n,m),x=l.useRef(null),y=l.useRef(0),[g,T]=l.useState({outerHeightStyle:0}),S=l.useCallback(()=>{const p=m.current,C=ke(p).getComputedStyle(p);if(C.width==="0px")return{outerHeightStyle:0};const h=x.current;h.style.width=C.width,h.value=p.value||t.placeholder||"x",h.value.slice(-1)===` +`&&(h.value+=" ");const F=C.boxSizing,A=Ze(C.paddingBottom)+Ze(C.paddingTop),L=Ze(C.borderBottomWidth)+Ze(C.borderTopWidth),z=h.scrollHeight;h.value="x";const B=h.scrollHeight;let $=z;r&&($=Math.max(Number(r)*B,$)),s&&($=Math.min(Number(s)*B,$)),$=Math.max($,B);const w=$+(F==="border-box"?A+L:0),I=Math.abs($-z)<=1;return{outerHeightStyle:w,overflow:I}},[s,r,t.placeholder]),R=(p,v)=>{const{outerHeightStyle:C,overflow:h}=v;return y.current<20&&(C>0&&Math.abs((p.outerHeightStyle||0)-C)>1||p.overflow!==h)?(y.current+=1,{overflow:h,outerHeightStyle:C}):p},P=l.useCallback(()=>{const p=S();kt(p)||T(v=>R(v,p))},[S]);De(()=>{const p=()=>{const z=S();kt(z)||Ut.flushSync(()=>{T(B=>R(B,z))})},v=()=>{y.current=0,p()};let C;const h=jt(v),F=m.current,A=ke(F);A.addEventListener("resize",h);let L;return typeof ResizeObserver<"u"&&(L=new ResizeObserver(v),L.observe(F)),()=>{h.clear(),cancelAnimationFrame(C),A.removeEventListener("resize",h),L&&L.disconnect()}},[S]),De(()=>{P()}),l.useEffect(()=>{y.current=0},[a]);const f=p=>{y.current=0,u||P(),o&&o(p)};return E.jsxs(l.Fragment,{children:[E.jsx("textarea",d({value:a,onChange:f,ref:b,rows:r,style:d({height:g.outerHeightStyle,overflow:g.overflow?"hidden":void 0},i)},c)),E.jsx("textarea",{"aria-hidden":!0,className:t.className,readOnly:!0,ref:x,tabIndex:-1,style:d({},zn.shadow,i,{paddingTop:0,paddingBottom:0})})]})});function je({props:e,states:t,muiFormControl:n}){return t.reduce((o,s)=>(o[s]=e[s],n&&typeof e[s]>"u"&&(o[s]=n[s]),o),{})}const jn=l.createContext(void 0),bt=jn;function _e(){return l.useContext(bt)}function _n(e){return E.jsx(vn,d({},e,{defaultTheme:un,themeId:pn}))}function Ft(e){return e!=null&&!(Array.isArray(e)&&e.length===0)}function et(e,t=!1){return e&&(Ft(e.value)&&e.value!==""||t&&Ft(e.defaultValue)&&e.defaultValue!=="")}function Hn(e){return e.startAdornment}function Un(e){return ie("MuiInputBase",e)}const Kn=se("MuiInputBase",["root","formControl","focused","disabled","adornedStart","adornedEnd","error","sizeSmall","multiline","colorSecondary","fullWidth","hiddenLabel","readOnly","input","inputSizeSmall","inputMultiline","inputTypeSearch","inputAdornedStart","inputAdornedEnd","inputHiddenLabel"]),We=Kn,qn=["aria-describedby","autoComplete","autoFocus","className","color","components","componentsProps","defaultValue","disabled","disableInjectingGlobalStyles","endAdornment","error","fullWidth","id","inputComponent","inputProps","inputRef","margin","maxRows","minRows","multiline","name","onBlur","onChange","onClick","onFocus","onKeyDown","onKeyUp","placeholder","readOnly","renderSuffix","rows","size","slotProps","slots","startAdornment","type","value"],tt=(e,t)=>{const{ownerState:n}=e;return[t.root,n.formControl&&t.formControl,n.startAdornment&&t.adornedStart,n.endAdornment&&t.adornedEnd,n.error&&t.error,n.size==="small"&&t.sizeSmall,n.multiline&&t.multiline,n.color&&t[`color${ce(n.color)}`],n.fullWidth&&t.fullWidth,n.hiddenLabel&&t.hiddenLabel]},nt=(e,t)=>{const{ownerState:n}=e;return[t.input,n.size==="small"&&t.inputSizeSmall,n.multiline&&t.inputMultiline,n.type==="search"&&t.inputTypeSearch,n.startAdornment&&t.inputAdornedStart,n.endAdornment&&t.inputAdornedEnd,n.hiddenLabel&&t.inputHiddenLabel]},Vn=e=>{const{classes:t,color:n,disabled:o,error:s,endAdornment:r,focused:i,formControl:a,fullWidth:c,hiddenLabel:u,multiline:m,readOnly:b,size:x,startAdornment:y,type:g}=e,T={root:["root",`color${ce(n)}`,o&&"disabled",s&&"error",c&&"fullWidth",i&&"focused",a&&"formControl",x&&x!=="medium"&&`size${ce(x)}`,m&&"multiline",y&&"adornedStart",r&&"adornedEnd",u&&"hiddenLabel",b&&"readOnly"],input:["input",o&&"disabled",g==="search"&&"inputTypeSearch",m&&"inputMultiline",x==="small"&&"inputSizeSmall",u&&"inputHiddenLabel",y&&"inputAdornedStart",r&&"inputAdornedEnd",b&&"readOnly"]};return ae(T,Un,t)},ot=j("div",{name:"MuiInputBase",slot:"Root",overridesResolver:tt})(({theme:e,ownerState:t})=>d({},e.typography.body1,{color:(e.vars||e).palette.text.primary,lineHeight:"1.4375em",boxSizing:"border-box",position:"relative",cursor:"text",display:"inline-flex",alignItems:"center",[`&.${We.disabled}`]:{color:(e.vars||e).palette.text.disabled,cursor:"default"}},t.multiline&&d({padding:"4px 0 5px"},t.size==="small"&&{paddingTop:1}),t.fullWidth&&{width:"100%"})),rt=j("input",{name:"MuiInputBase",slot:"Input",overridesResolver:nt})(({theme:e,ownerState:t})=>{const n=e.palette.mode==="light",o=d({color:"currentColor"},e.vars?{opacity:e.vars.opacity.inputPlaceholder}:{opacity:n?.42:.5},{transition:e.transitions.create("opacity",{duration:e.transitions.duration.shorter})}),s={opacity:"0 !important"},r=e.vars?{opacity:e.vars.opacity.inputPlaceholder}:{opacity:n?.42:.5};return d({font:"inherit",letterSpacing:"inherit",color:"currentColor",padding:"4px 0 5px",border:0,boxSizing:"content-box",background:"none",height:"1.4375em",margin:0,WebkitTapHighlightColor:"transparent",display:"block",minWidth:0,width:"100%",animationName:"mui-auto-fill-cancel",animationDuration:"10ms","&::-webkit-input-placeholder":o,"&::-moz-placeholder":o,"&:-ms-input-placeholder":o,"&::-ms-input-placeholder":o,"&:focus":{outline:0},"&:invalid":{boxShadow:"none"},"&::-webkit-search-decoration":{WebkitAppearance:"none"},[`label[data-shrink=false] + .${We.formControl} &`]:{"&::-webkit-input-placeholder":s,"&::-moz-placeholder":s,"&:-ms-input-placeholder":s,"&::-ms-input-placeholder":s,"&:focus::-webkit-input-placeholder":r,"&:focus::-moz-placeholder":r,"&:focus:-ms-input-placeholder":r,"&:focus::-ms-input-placeholder":r},[`&.${We.disabled}`]:{opacity:1,WebkitTextFillColor:(e.vars||e).palette.text.disabled},"&:-webkit-autofill":{animationDuration:"5000s",animationName:"mui-auto-fill"}},t.size==="small"&&{paddingTop:1},t.multiline&&{height:"auto",resize:"none",padding:0,paddingTop:0},t.type==="search"&&{MozAppearance:"textfield"})}),Gn=E.jsx(_n,{styles:{"@keyframes mui-auto-fill":{from:{display:"block"}},"@keyframes mui-auto-fill-cancel":{from:{display:"block"}}}}),Xn=l.forwardRef(function(t,n){var o;const s=le({props:t,name:"MuiInputBase"}),{"aria-describedby":r,autoComplete:i,autoFocus:a,className:c,components:u={},componentsProps:m={},defaultValue:b,disabled:x,disableInjectingGlobalStyles:y,endAdornment:g,fullWidth:T=!1,id:S,inputComponent:R="input",inputProps:P={},inputRef:f,maxRows:p,minRows:v,multiline:C=!1,name:h,onBlur:F,onChange:A,onClick:L,onFocus:z,onKeyDown:B,onKeyUp:$,placeholder:w,readOnly:I,renderSuffix:k,rows:M,slotProps:O={},slots:D={},startAdornment:K,type:ue="text",value:Q}=s,J=U(s,qn),H=P.value!=null?P.value:Q,{current:ee}=l.useRef(H!=null),Z=l.useRef(),pe=l.useCallback(G=>{},[]),de=ge(Z,f,P.ref,pe),[be,fe]=l.useState(!1),_=_e(),Y=je({props:s,muiFormControl:_,states:["color","disabled","error","hiddenLabel","size","required","filled"]});Y.focused=_?_.focused:be,l.useEffect(()=>{!_&&x&&be&&(fe(!1),F&&F())},[_,x,be,F]);const W=_&&_.onFilled,q=_&&_.onEmpty,X=l.useCallback(G=>{et(G)?W&&W():q&&q()},[W,q]);De(()=>{ee&&X({value:H})},[H,X,ee]);const $e=G=>{if(Y.disabled){G.stopPropagation();return}z&&z(G),P.onFocus&&P.onFocus(G),_&&_.onFocus?_.onFocus(G):fe(!0)},ve=G=>{F&&F(G),P.onBlur&&P.onBlur(G),_&&_.onBlur?_.onBlur(G):fe(!1)},xe=(G,...Pe)=>{if(!ee){const Oe=G.target||Z.current;if(Oe==null)throw new Error(_t(1));X({value:Oe.value})}P.onChange&&P.onChange(G,...Pe),A&&A(G,...Pe)};l.useEffect(()=>{X(Z.current)},[]);const ye=G=>{Z.current&&G.currentTarget===G.target&&Z.current.focus(),L&&L(G)};let Ee=R,te=P;C&&Ee==="input"&&(M?te=d({type:void 0,minRows:M,maxRows:M},te):te=d({type:void 0,maxRows:p,minRows:v},te),Ee=Wn);const Se=G=>{X(G.animationName==="mui-auto-fill-cancel"?Z.current:{value:"x"})};l.useEffect(()=>{_&&_.setAdornedStart(!!K)},[_,K]);const me=d({},s,{color:Y.color||"primary",disabled:Y.disabled,endAdornment:g,error:Y.error,focused:Y.focused,formControl:_,fullWidth:T,hiddenLabel:Y.hiddenLabel,multiline:C,size:Y.size,startAdornment:K,type:ue}),ne=Vn(me),Xe=D.root||u.Root||ot,Me=O.root||m.root||{},Ne=D.input||u.Input||rt;return te=d({},te,(o=O.input)!=null?o:m.input),E.jsxs(l.Fragment,{children:[!y&&Gn,E.jsxs(Xe,d({},Me,!ut(Xe)&&{ownerState:d({},me,Me.ownerState)},{ref:n,onClick:ye},J,{className:re(ne.root,Me.className,c,I&&"MuiInputBase-readOnly"),children:[K,E.jsx(bt.Provider,{value:null,children:E.jsx(Ne,d({ownerState:me,"aria-invalid":Y.error,"aria-describedby":r,autoComplete:i,autoFocus:a,defaultValue:b,disabled:Y.disabled,id:S,onAnimationStart:Se,name:h,placeholder:w,readOnly:I,required:Y.required,rows:M,value:H,onKeyDown:B,onKeyUp:$,type:ue},te,!ut(Ne)&&{as:Ee,ownerState:d({},me,te.ownerState)},{ref:de,className:re(ne.input,te.className,I&&"MuiInputBase-readOnly"),onBlur:ve,onChange:xe,onFocus:$e}))}),g,k?k(d({},Y,{startAdornment:K})):null]}))]})}),gt=Xn;function Yn(e){return ie("MuiInput",e)}const Jn=d({},We,se("MuiInput",["root","underline","input"])),He=Jn;function Zn(e){return ie("MuiOutlinedInput",e)}const Qn=d({},We,se("MuiOutlinedInput",["root","notchedOutline","input"])),Re=Qn;function eo(e){return ie("MuiFilledInput",e)}const to=d({},We,se("MuiFilledInput",["root","underline","input"])),Ie=to,no=fn(E.jsx("path",{d:"M7 10l5 5 5-5z"}),"ArrowDropDown"),oo=["addEndListener","appear","children","easing","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","style","timeout","TransitionComponent"],ro={entering:{opacity:1},entered:{opacity:1}},so=l.forwardRef(function(t,n){const o=mt(),s={enter:o.transitions.duration.enteringScreen,exit:o.transitions.duration.leavingScreen},{addEndListener:r,appear:i=!0,children:a,easing:c,in:u,onEnter:m,onEntered:b,onEntering:x,onExit:y,onExited:g,onExiting:T,style:S,timeout:R=s,TransitionComponent:P=qt}=t,f=U(t,oo),p=l.useRef(null),v=ge(p,a.ref,n),C=w=>I=>{if(w){const k=p.current;I===void 0?w(k):w(k,I)}},h=C(x),F=C((w,I)=>{Vt(w);const k=Qe({style:S,timeout:R,easing:c},{mode:"enter"});w.style.webkitTransition=o.transitions.create("opacity",k),w.style.transition=o.transitions.create("opacity",k),m&&m(w,I)}),A=C(b),L=C(T),z=C(w=>{const I=Qe({style:S,timeout:R,easing:c},{mode:"exit"});w.style.webkitTransition=o.transitions.create("opacity",I),w.style.transition=o.transitions.create("opacity",I),y&&y(w)}),B=C(g),$=w=>{r&&r(p.current,w)};return E.jsx(P,d({appear:i,in:u,nodeRef:p,onEnter:F,onEntered:A,onEntering:h,onExit:z,onExited:B,onExiting:L,addEndListener:$,timeout:R},f,{children:(w,I)=>l.cloneElement(a,d({style:d({opacity:0,visibility:w==="exited"&&!u?"hidden":void 0},ro[w],S,a.props.style),ref:v},I))}))}),io=so;function ao(e){return ie("MuiBackdrop",e)}se("MuiBackdrop",["root","invisible"]);const lo=["children","className","component","components","componentsProps","invisible","open","slotProps","slots","TransitionComponent","transitionDuration"],co=e=>{const{classes:t,invisible:n}=e;return ae({root:["root",n&&"invisible"]},ao,t)},uo=j("div",{name:"MuiBackdrop",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.invisible&&t.invisible]}})(({ownerState:e})=>d({position:"fixed",display:"flex",alignItems:"center",justifyContent:"center",right:0,bottom:0,top:0,left:0,backgroundColor:"rgba(0, 0, 0, 0.5)",WebkitTapHighlightColor:"transparent"},e.invisible&&{backgroundColor:"transparent"})),po=l.forwardRef(function(t,n){var o,s,r;const i=le({props:t,name:"MuiBackdrop"}),{children:a,className:c,component:u="div",components:m={},componentsProps:b={},invisible:x=!1,open:y,slotProps:g={},slots:T={},TransitionComponent:S=io,transitionDuration:R}=i,P=U(i,lo),f=d({},i,{component:u,invisible:x}),p=co(f),v=(o=g.root)!=null?o:b.root;return E.jsx(S,d({in:y,timeout:R},P,{children:E.jsx(uo,d({"aria-hidden":!0},v,{as:(s=(r=T.root)!=null?r:m.Root)!=null?s:u,className:re(p.root,c,v==null?void 0:v.className),ownerState:d({},f,v==null?void 0:v.ownerState),classes:p,ref:n,children:a}))}))}),fo=po;function mo(e){return ie("MuiModal",e)}se("MuiModal",["root","hidden","backdrop"]);const ho=["BackdropComponent","BackdropProps","classes","className","closeAfterTransition","children","container","component","components","componentsProps","disableAutoFocus","disableEnforceFocus","disableEscapeKeyDown","disablePortal","disableRestoreFocus","disableScrollLock","hideBackdrop","keepMounted","onBackdropClick","onClose","onTransitionEnter","onTransitionExited","open","slotProps","slots","theme"],bo=e=>{const{open:t,exited:n,classes:o}=e;return ae({root:["root",!t&&n&&"hidden"],backdrop:["backdrop"]},mo,o)},go=j("div",{name:"MuiModal",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,!n.open&&n.exited&&t.hidden]}})(({theme:e,ownerState:t})=>d({position:"fixed",zIndex:(e.vars||e).zIndex.modal,right:0,bottom:0,top:0,left:0},!t.open&&t.exited&&{visibility:"hidden"})),vo=j(fo,{name:"MuiModal",slot:"Backdrop",overridesResolver:(e,t)=>t.backdrop})({zIndex:-1}),xo=l.forwardRef(function(t,n){var o,s,r,i,a,c;const u=le({name:"MuiModal",props:t}),{BackdropComponent:m=vo,BackdropProps:b,className:x,closeAfterTransition:y=!1,children:g,container:T,component:S,components:R={},componentsProps:P={},disableAutoFocus:f=!1,disableEnforceFocus:p=!1,disableEscapeKeyDown:v=!1,disablePortal:C=!1,disableRestoreFocus:h=!1,disableScrollLock:F=!1,hideBackdrop:A=!1,keepMounted:L=!1,onBackdropClick:z,open:B,slotProps:$,slots:w}=u,I=U(u,ho),k=d({},u,{closeAfterTransition:y,disableAutoFocus:f,disableEnforceFocus:p,disableEscapeKeyDown:v,disablePortal:C,disableRestoreFocus:h,disableScrollLock:F,hideBackdrop:A,keepMounted:L}),{getRootProps:M,getBackdropProps:O,getTransitionProps:D,portalRef:K,isTopModal:ue,exited:Q,hasTransition:J}=Bn(d({},k,{rootRef:n})),H=d({},k,{exited:Q}),ee=bo(H),Z={};if(g.props.tabIndex===void 0&&(Z.tabIndex="-1"),J){const{onEnter:W,onExited:q}=D();Z.onEnter=W,Z.onExited=q}const pe=(o=(s=w==null?void 0:w.root)!=null?s:R.Root)!=null?o:go,de=(r=(i=w==null?void 0:w.backdrop)!=null?i:R.Backdrop)!=null?r:m,be=(a=$==null?void 0:$.root)!=null?a:P.root,fe=(c=$==null?void 0:$.backdrop)!=null?c:P.backdrop,_=ze({elementType:pe,externalSlotProps:be,externalForwardedProps:I,getSlotProps:M,additionalProps:{ref:n,as:S},ownerState:H,className:re(x,be==null?void 0:be.className,ee==null?void 0:ee.root,!H.open&&H.exited&&(ee==null?void 0:ee.hidden))}),Y=ze({elementType:de,externalSlotProps:fe,additionalProps:b,getSlotProps:W=>O(d({},W,{onClick:q=>{z&&z(q),W!=null&&W.onClick&&W.onClick(q)}})),className:re(fe==null?void 0:fe.className,b==null?void 0:b.className,ee==null?void 0:ee.backdrop),ownerState:H});return!L&&!B&&(!J||Q)?null:E.jsx(Tn,{ref:K,container:T,disablePortal:C,children:E.jsxs(pe,d({},_,{children:[!A&&m?E.jsx(de,d({},Y)):null,E.jsx(In,{disableEnforceFocus:p,disableAutoFocus:f,disableRestoreFocus:h,isEnabled:ue,open:B,children:l.cloneElement(g,Z)})]}))})}),yo=xo,Co=["disableUnderline","components","componentsProps","fullWidth","hiddenLabel","inputComponent","multiline","slotProps","slots","type"],Eo=e=>{const{classes:t,disableUnderline:n}=e,s=ae({root:["root",!n&&"underline"],input:["input"]},eo,t);return d({},t,s)},Ro=j(ot,{shouldForwardProp:e=>Fe(e)||e==="classes",name:"MuiFilledInput",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[...tt(e,t),!n.disableUnderline&&t.underline]}})(({theme:e,ownerState:t})=>{var n;const o=e.palette.mode==="light",s=o?"rgba(0, 0, 0, 0.42)":"rgba(255, 255, 255, 0.7)",r=o?"rgba(0, 0, 0, 0.06)":"rgba(255, 255, 255, 0.09)",i=o?"rgba(0, 0, 0, 0.09)":"rgba(255, 255, 255, 0.13)",a=o?"rgba(0, 0, 0, 0.12)":"rgba(255, 255, 255, 0.12)";return d({position:"relative",backgroundColor:e.vars?e.vars.palette.FilledInput.bg:r,borderTopLeftRadius:(e.vars||e).shape.borderRadius,borderTopRightRadius:(e.vars||e).shape.borderRadius,transition:e.transitions.create("background-color",{duration:e.transitions.duration.shorter,easing:e.transitions.easing.easeOut}),"&:hover":{backgroundColor:e.vars?e.vars.palette.FilledInput.hoverBg:i,"@media (hover: none)":{backgroundColor:e.vars?e.vars.palette.FilledInput.bg:r}},[`&.${Ie.focused}`]:{backgroundColor:e.vars?e.vars.palette.FilledInput.bg:r},[`&.${Ie.disabled}`]:{backgroundColor:e.vars?e.vars.palette.FilledInput.disabledBg:a}},!t.disableUnderline&&{"&:after":{borderBottom:`2px solid ${(n=(e.vars||e).palette[t.color||"primary"])==null?void 0:n.main}`,left:0,bottom:0,content:'""',position:"absolute",right:0,transform:"scaleX(0)",transition:e.transitions.create("transform",{duration:e.transitions.duration.shorter,easing:e.transitions.easing.easeOut}),pointerEvents:"none"},[`&.${Ie.focused}:after`]:{transform:"scaleX(1) translateX(0)"},[`&.${Ie.error}`]:{"&:before, &:after":{borderBottomColor:(e.vars||e).palette.error.main}},"&:before":{borderBottom:`1px solid ${e.vars?`rgba(${e.vars.palette.common.onBackgroundChannel} / ${e.vars.opacity.inputUnderline})`:s}`,left:0,bottom:0,content:'"\\00a0"',position:"absolute",right:0,transition:e.transitions.create("border-bottom-color",{duration:e.transitions.duration.shorter}),pointerEvents:"none"},[`&:hover:not(.${Ie.disabled}, .${Ie.error}):before`]:{borderBottom:`1px solid ${(e.vars||e).palette.text.primary}`},[`&.${Ie.disabled}:before`]:{borderBottomStyle:"dotted"}},t.startAdornment&&{paddingLeft:12},t.endAdornment&&{paddingRight:12},t.multiline&&d({padding:"25px 12px 8px"},t.size==="small"&&{paddingTop:21,paddingBottom:4},t.hiddenLabel&&{paddingTop:16,paddingBottom:17}))}),So=j(rt,{name:"MuiFilledInput",slot:"Input",overridesResolver:nt})(({theme:e,ownerState:t})=>d({paddingTop:25,paddingRight:12,paddingBottom:8,paddingLeft:12},!e.vars&&{"&:-webkit-autofill":{WebkitBoxShadow:e.palette.mode==="light"?null:"0 0 0 100px #266798 inset",WebkitTextFillColor:e.palette.mode==="light"?null:"#fff",caretColor:e.palette.mode==="light"?null:"#fff",borderTopLeftRadius:"inherit",borderTopRightRadius:"inherit"}},e.vars&&{"&:-webkit-autofill":{borderTopLeftRadius:"inherit",borderTopRightRadius:"inherit"},[e.getColorSchemeSelector("dark")]:{"&:-webkit-autofill":{WebkitBoxShadow:"0 0 0 100px #266798 inset",WebkitTextFillColor:"#fff",caretColor:"#fff"}}},t.size==="small"&&{paddingTop:21,paddingBottom:4},t.hiddenLabel&&{paddingTop:16,paddingBottom:17},t.multiline&&{paddingTop:0,paddingBottom:0,paddingLeft:0,paddingRight:0},t.startAdornment&&{paddingLeft:0},t.endAdornment&&{paddingRight:0},t.hiddenLabel&&t.size==="small"&&{paddingTop:8,paddingBottom:9})),Gt=l.forwardRef(function(t,n){var o,s,r,i;const a=le({props:t,name:"MuiFilledInput"}),{components:c={},componentsProps:u,fullWidth:m=!1,inputComponent:b="input",multiline:x=!1,slotProps:y,slots:g={},type:T="text"}=a,S=U(a,Co),R=d({},a,{fullWidth:m,inputComponent:b,multiline:x,type:T}),P=Eo(a),f={root:{ownerState:R},input:{ownerState:R}},p=y??u?ht(y??u,f):f,v=(o=(s=g.root)!=null?s:c.Root)!=null?o:Ro,C=(r=(i=g.input)!=null?i:c.Input)!=null?r:So;return E.jsx(gt,d({slots:{root:v,input:C},componentsProps:p,fullWidth:m,inputComponent:b,multiline:x,ref:n,type:T},S,{classes:P}))});Gt.muiName="Input";const Xt=Gt;function Po(e){return ie("MuiFormControl",e)}const Io=se("MuiFormControl",["root","marginNone","marginNormal","marginDense","fullWidth","disabled"]),Ts=Io,wo=["children","className","color","component","disabled","error","focused","fullWidth","hiddenLabel","margin","required","size","variant"],To=e=>{const{classes:t,margin:n,fullWidth:o}=e,s={root:["root",n!=="none"&&`margin${ce(n)}`,o&&"fullWidth"]};return ae(s,Po,t)},ko=j("div",{name:"MuiFormControl",slot:"Root",overridesResolver:({ownerState:e},t)=>d({},t.root,t[`margin${ce(e.margin)}`],e.fullWidth&&t.fullWidth)})(({ownerState:e})=>d({display:"inline-flex",flexDirection:"column",position:"relative",minWidth:0,padding:0,margin:0,border:0,verticalAlign:"top"},e.margin==="normal"&&{marginTop:16,marginBottom:8},e.margin==="dense"&&{marginTop:8,marginBottom:4},e.fullWidth&&{width:"100%"})),Fo=l.forwardRef(function(t,n){const o=le({props:t,name:"MuiFormControl"}),{children:s,className:r,color:i="primary",component:a="div",disabled:c=!1,error:u=!1,focused:m,fullWidth:b=!1,hiddenLabel:x=!1,margin:y="none",required:g=!1,size:T="medium",variant:S="outlined"}=o,R=U(o,wo),P=d({},o,{color:i,component:a,disabled:c,error:u,fullWidth:b,hiddenLabel:x,margin:y,required:g,size:T,variant:S}),f=To(P),[p,v]=l.useState(()=>{let $=!1;return s&&l.Children.forEach(s,w=>{if(!it(w,["Input","Select"]))return;const I=it(w,["Select"])?w.props.input:w;I&&Hn(I.props)&&($=!0)}),$}),[C,h]=l.useState(()=>{let $=!1;return s&&l.Children.forEach(s,w=>{it(w,["Input","Select"])&&(et(w.props,!0)||et(w.props.inputProps,!0))&&($=!0)}),$}),[F,A]=l.useState(!1);c&&F&&A(!1);const L=m!==void 0&&!c?m:F;let z;const B=l.useMemo(()=>({adornedStart:p,setAdornedStart:v,color:i,disabled:c,error:u,filled:C,focused:L,fullWidth:b,hiddenLabel:x,size:T,onBlur:()=>{A(!1)},onEmpty:()=>{h(!1)},onFilled:()=>{h(!0)},onFocus:()=>{A(!0)},registerEffect:z,required:g,variant:S}),[p,i,c,u,C,L,b,x,z,g,T,S]);return E.jsx(bt.Provider,{value:B,children:E.jsx(ko,d({as:a,ownerState:P,className:re(f.root,r),ref:n},R,{children:s}))})}),$o=Fo;function Mo(e){return ie("MuiFormHelperText",e)}const No=se("MuiFormHelperText",["root","error","disabled","sizeSmall","sizeMedium","contained","focused","filled","required"]),$t=No;var Mt;const Oo=["children","className","component","disabled","error","filled","focused","margin","required","variant"],Lo=e=>{const{classes:t,contained:n,size:o,disabled:s,error:r,filled:i,focused:a,required:c}=e,u={root:["root",s&&"disabled",r&&"error",o&&`size${ce(o)}`,n&&"contained",a&&"focused",i&&"filled",c&&"required"]};return ae(u,Mo,t)},Ao=j("p",{name:"MuiFormHelperText",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.size&&t[`size${ce(n.size)}`],n.contained&&t.contained,n.filled&&t.filled]}})(({theme:e,ownerState:t})=>d({color:(e.vars||e).palette.text.secondary},e.typography.caption,{textAlign:"left",marginTop:3,marginRight:0,marginBottom:0,marginLeft:0,[`&.${$t.disabled}`]:{color:(e.vars||e).palette.text.disabled},[`&.${$t.error}`]:{color:(e.vars||e).palette.error.main}},t.size==="small"&&{marginTop:4},t.contained&&{marginLeft:14,marginRight:14})),Bo=l.forwardRef(function(t,n){const o=le({props:t,name:"MuiFormHelperText"}),{children:s,className:r,component:i="p"}=o,a=U(o,Oo),c=_e(),u=je({props:o,muiFormControl:c,states:["variant","size","disabled","error","filled","focused","required"]}),m=d({},o,{component:i,contained:u.variant==="filled"||u.variant==="outlined",variant:u.variant,size:u.size,disabled:u.disabled,error:u.error,filled:u.filled,focused:u.focused,required:u.required}),b=Lo(m);return E.jsx(Ao,d({as:i,ownerState:m,className:re(b.root,r),ref:n},a,{children:s===" "?Mt||(Mt=E.jsx("span",{className:"notranslate",children:"​"})):s}))}),Do=Bo;function zo(e){return ie("MuiFormLabel",e)}const Wo=se("MuiFormLabel",["root","colorSecondary","focused","disabled","error","filled","required","asterisk"]),Ge=Wo,jo=["children","className","color","component","disabled","error","filled","focused","required"],_o=e=>{const{classes:t,color:n,focused:o,disabled:s,error:r,filled:i,required:a}=e,c={root:["root",`color${ce(n)}`,s&&"disabled",r&&"error",i&&"filled",o&&"focused",a&&"required"],asterisk:["asterisk",r&&"error"]};return ae(c,zo,t)},Ho=j("label",{name:"MuiFormLabel",slot:"Root",overridesResolver:({ownerState:e},t)=>d({},t.root,e.color==="secondary"&&t.colorSecondary,e.filled&&t.filled)})(({theme:e,ownerState:t})=>d({color:(e.vars||e).palette.text.secondary},e.typography.body1,{lineHeight:"1.4375em",padding:0,position:"relative",[`&.${Ge.focused}`]:{color:(e.vars||e).palette[t.color].main},[`&.${Ge.disabled}`]:{color:(e.vars||e).palette.text.disabled},[`&.${Ge.error}`]:{color:(e.vars||e).palette.error.main}})),Uo=j("span",{name:"MuiFormLabel",slot:"Asterisk",overridesResolver:(e,t)=>t.asterisk})(({theme:e})=>({[`&.${Ge.error}`]:{color:(e.vars||e).palette.error.main}})),Ko=l.forwardRef(function(t,n){const o=le({props:t,name:"MuiFormLabel"}),{children:s,className:r,component:i="label"}=o,a=U(o,jo),c=_e(),u=je({props:o,muiFormControl:c,states:["color","required","focused","disabled","error","filled"]}),m=d({},o,{color:u.color||"primary",component:i,disabled:u.disabled,error:u.error,filled:u.filled,focused:u.focused,required:u.required}),b=_o(m);return E.jsxs(Ho,d({as:i,ownerState:m,className:re(b.root,r),ref:n},a,{children:[s,u.required&&E.jsxs(Uo,{ownerState:m,"aria-hidden":!0,className:b.asterisk,children:[" ","*"]})]}))}),qo=Ko,Vo=["addEndListener","appear","children","easing","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","style","timeout","TransitionComponent"];function ft(e){return`scale(${e}, ${e**2})`}const Go={entering:{opacity:1,transform:ft(1)},entered:{opacity:1,transform:"none"}},lt=typeof navigator<"u"&&/^((?!chrome|android).)*(safari|mobile)/i.test(navigator.userAgent)&&/(os |version\/)15(.|_)4/i.test(navigator.userAgent),Yt=l.forwardRef(function(t,n){const{addEndListener:o,appear:s=!0,children:r,easing:i,in:a,onEnter:c,onEntered:u,onEntering:m,onExit:b,onExited:x,onExiting:y,style:g,timeout:T="auto",TransitionComponent:S=qt}=t,R=U(t,Vo),P=l.useRef(),f=l.useRef(),p=mt(),v=l.useRef(null),C=ge(v,r.ref,n),h=I=>k=>{if(I){const M=v.current;k===void 0?I(M):I(M,k)}},F=h(m),A=h((I,k)=>{Vt(I);const{duration:M,delay:O,easing:D}=Qe({style:g,timeout:T,easing:i},{mode:"enter"});let K;T==="auto"?(K=p.transitions.getAutoHeightDuration(I.clientHeight),f.current=K):K=M,I.style.transition=[p.transitions.create("opacity",{duration:K,delay:O}),p.transitions.create("transform",{duration:lt?K:K*.666,delay:O,easing:D})].join(","),c&&c(I,k)}),L=h(u),z=h(y),B=h(I=>{const{duration:k,delay:M,easing:O}=Qe({style:g,timeout:T,easing:i},{mode:"exit"});let D;T==="auto"?(D=p.transitions.getAutoHeightDuration(I.clientHeight),f.current=D):D=k,I.style.transition=[p.transitions.create("opacity",{duration:D,delay:M}),p.transitions.create("transform",{duration:lt?D:D*.666,delay:lt?M:M||D*.333,easing:O})].join(","),I.style.opacity=0,I.style.transform=ft(.75),b&&b(I)}),$=h(x),w=I=>{T==="auto"&&(P.current=setTimeout(I,f.current||0)),o&&o(v.current,I)};return l.useEffect(()=>()=>{clearTimeout(P.current)},[]),E.jsx(S,d({appear:s,in:a,nodeRef:v,onEnter:A,onEntered:L,onEntering:F,onExit:B,onExited:$,onExiting:z,addEndListener:w,timeout:T==="auto"?null:T},R,{children:(I,k)=>l.cloneElement(r,d({style:d({opacity:0,transform:ft(.75),visibility:I==="exited"&&!a?"hidden":void 0},Go[I],g,r.props.style),ref:C},k))}))});Yt.muiSupportAuto=!0;const Xo=Yt,Yo=["disableUnderline","components","componentsProps","fullWidth","inputComponent","multiline","slotProps","slots","type"],Jo=e=>{const{classes:t,disableUnderline:n}=e,s=ae({root:["root",!n&&"underline"],input:["input"]},Yn,t);return d({},t,s)},Zo=j(ot,{shouldForwardProp:e=>Fe(e)||e==="classes",name:"MuiInput",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[...tt(e,t),!n.disableUnderline&&t.underline]}})(({theme:e,ownerState:t})=>{let o=e.palette.mode==="light"?"rgba(0, 0, 0, 0.42)":"rgba(255, 255, 255, 0.7)";return e.vars&&(o=`rgba(${e.vars.palette.common.onBackgroundChannel} / ${e.vars.opacity.inputUnderline})`),d({position:"relative"},t.formControl&&{"label + &":{marginTop:16}},!t.disableUnderline&&{"&:after":{borderBottom:`2px solid ${(e.vars||e).palette[t.color].main}`,left:0,bottom:0,content:'""',position:"absolute",right:0,transform:"scaleX(0)",transition:e.transitions.create("transform",{duration:e.transitions.duration.shorter,easing:e.transitions.easing.easeOut}),pointerEvents:"none"},[`&.${He.focused}:after`]:{transform:"scaleX(1) translateX(0)"},[`&.${He.error}`]:{"&:before, &:after":{borderBottomColor:(e.vars||e).palette.error.main}},"&:before":{borderBottom:`1px solid ${o}`,left:0,bottom:0,content:'"\\00a0"',position:"absolute",right:0,transition:e.transitions.create("border-bottom-color",{duration:e.transitions.duration.shorter}),pointerEvents:"none"},[`&:hover:not(.${He.disabled}, .${He.error}):before`]:{borderBottom:`2px solid ${(e.vars||e).palette.text.primary}`,"@media (hover: none)":{borderBottom:`1px solid ${o}`}},[`&.${He.disabled}:before`]:{borderBottomStyle:"dotted"}})}),Qo=j(rt,{name:"MuiInput",slot:"Input",overridesResolver:nt})({}),Jt=l.forwardRef(function(t,n){var o,s,r,i;const a=le({props:t,name:"MuiInput"}),{disableUnderline:c,components:u={},componentsProps:m,fullWidth:b=!1,inputComponent:x="input",multiline:y=!1,slotProps:g,slots:T={},type:S="text"}=a,R=U(a,Yo),P=Jo(a),p={root:{ownerState:{disableUnderline:c}}},v=g??m?ht(g??m,p):p,C=(o=(s=T.root)!=null?s:u.Root)!=null?o:Zo,h=(r=(i=T.input)!=null?i:u.Input)!=null?r:Qo;return E.jsx(gt,d({slots:{root:C,input:h},slotProps:v,fullWidth:b,inputComponent:x,multiline:y,ref:n,type:S},R,{classes:P}))});Jt.muiName="Input";const Zt=Jt;function er(e){return ie("MuiInputLabel",e)}const tr=se("MuiInputLabel",["root","focused","disabled","error","required","asterisk","formControl","sizeSmall","shrink","animated","standard","filled","outlined"]),ks=tr,nr=["disableAnimation","margin","shrink","variant","className"],or=e=>{const{classes:t,formControl:n,size:o,shrink:s,disableAnimation:r,variant:i,required:a}=e,c={root:["root",n&&"formControl",!r&&"animated",s&&"shrink",o&&o!=="normal"&&`size${ce(o)}`,i],asterisk:[a&&"asterisk"]},u=ae(c,er,t);return d({},t,u)},rr=j(qo,{shouldForwardProp:e=>Fe(e)||e==="classes",name:"MuiInputLabel",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[{[`& .${Ge.asterisk}`]:t.asterisk},t.root,n.formControl&&t.formControl,n.size==="small"&&t.sizeSmall,n.shrink&&t.shrink,!n.disableAnimation&&t.animated,t[n.variant]]}})(({theme:e,ownerState:t})=>d({display:"block",transformOrigin:"top left",whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis",maxWidth:"100%"},t.formControl&&{position:"absolute",left:0,top:0,transform:"translate(0, 20px) scale(1)"},t.size==="small"&&{transform:"translate(0, 17px) scale(1)"},t.shrink&&{transform:"translate(0, -1.5px) scale(0.75)",transformOrigin:"top left",maxWidth:"133%"},!t.disableAnimation&&{transition:e.transitions.create(["color","transform","max-width"],{duration:e.transitions.duration.shorter,easing:e.transitions.easing.easeOut})},t.variant==="filled"&&d({zIndex:1,pointerEvents:"none",transform:"translate(12px, 16px) scale(1)",maxWidth:"calc(100% - 24px)"},t.size==="small"&&{transform:"translate(12px, 13px) scale(1)"},t.shrink&&d({userSelect:"none",pointerEvents:"auto",transform:"translate(12px, 7px) scale(0.75)",maxWidth:"calc(133% - 24px)"},t.size==="small"&&{transform:"translate(12px, 4px) scale(0.75)"})),t.variant==="outlined"&&d({zIndex:1,pointerEvents:"none",transform:"translate(14px, 16px) scale(1)",maxWidth:"calc(100% - 24px)"},t.size==="small"&&{transform:"translate(14px, 9px) scale(1)"},t.shrink&&{userSelect:"none",pointerEvents:"auto",maxWidth:"calc(133% - 32px)",transform:"translate(14px, -9px) scale(0.75)"}))),sr=l.forwardRef(function(t,n){const o=le({name:"MuiInputLabel",props:t}),{disableAnimation:s=!1,shrink:r,className:i}=o,a=U(o,nr),c=_e();let u=r;typeof u>"u"&&c&&(u=c.filled||c.focused||c.adornedStart);const m=je({props:o,muiFormControl:c,states:["size","variant","required"]}),b=d({},o,{disableAnimation:s,formControl:c,shrink:u,size:m.size,variant:m.variant,required:m.required}),x=or(b);return E.jsx(rr,d({"data-shrink":u,ownerState:b,ref:n,className:re(x.root,i)},a,{classes:x}))}),ir=sr,ar=l.createContext({}),lr=ar;function dr(e){return ie("MuiList",e)}se("MuiList",["root","padding","dense","subheader"]);const cr=["children","className","component","dense","disablePadding","subheader"],ur=e=>{const{classes:t,disablePadding:n,dense:o,subheader:s}=e;return ae({root:["root",!n&&"padding",o&&"dense",s&&"subheader"]},dr,t)},pr=j("ul",{name:"MuiList",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,!n.disablePadding&&t.padding,n.dense&&t.dense,n.subheader&&t.subheader]}})(({ownerState:e})=>d({listStyle:"none",margin:0,padding:0,position:"relative"},!e.disablePadding&&{paddingTop:8,paddingBottom:8},e.subheader&&{paddingTop:0})),fr=l.forwardRef(function(t,n){const o=le({props:t,name:"MuiList"}),{children:s,className:r,component:i="ul",dense:a=!1,disablePadding:c=!1,subheader:u}=o,m=U(o,cr),b=l.useMemo(()=>({dense:a}),[a]),x=d({},o,{component:i,dense:a,disablePadding:c}),y=ur(x);return E.jsx(lr.Provider,{value:b,children:E.jsxs(pr,d({as:i,className:re(y.root,r),ref:n,ownerState:x},m,{children:[u,s]}))})}),mr=fr,hr=["actions","autoFocus","autoFocusItem","children","className","disabledItemsFocusable","disableListWrap","onKeyDown","variant"];function dt(e,t,n){return e===t?e.firstChild:t&&t.nextElementSibling?t.nextElementSibling:n?null:e.firstChild}function Nt(e,t,n){return e===t?n?e.firstChild:e.lastChild:t&&t.previousElementSibling?t.previousElementSibling:n?null:e.lastChild}function Qt(e,t){if(t===void 0)return!0;let n=e.innerText;return n===void 0&&(n=e.textContent),n=n.trim().toLowerCase(),n.length===0?!1:t.repeating?n[0]===t.keys[0]:n.indexOf(t.keys.join(""))===0}function Ue(e,t,n,o,s,r){let i=!1,a=s(e,t,t?n:!1);for(;a;){if(a===e.firstChild){if(i)return!1;i=!0}const c=o?!1:a.disabled||a.getAttribute("aria-disabled")==="true";if(!a.hasAttribute("tabindex")||!Qt(a,r)||c)a=s(e,a,n);else return a.focus(),!0}return!1}const br=l.forwardRef(function(t,n){const{actions:o,autoFocus:s=!1,autoFocusItem:r=!1,children:i,className:a,disabledItemsFocusable:c=!1,disableListWrap:u=!1,onKeyDown:m,variant:b="selectedMenu"}=t,x=U(t,hr),y=l.useRef(null),g=l.useRef({keys:[],repeating:!0,previousKeyMatched:!0,lastTime:null});De(()=>{s&&y.current.focus()},[s]),l.useImperativeHandle(o,()=>({adjustStyleForScrollbar:(f,p)=>{const v=!y.current.style.width;if(f.clientHeight{const p=y.current,v=f.key,C=he(p).activeElement;if(v==="ArrowDown")f.preventDefault(),Ue(p,C,u,c,dt);else if(v==="ArrowUp")f.preventDefault(),Ue(p,C,u,c,Nt);else if(v==="Home")f.preventDefault(),Ue(p,null,u,c,dt);else if(v==="End")f.preventDefault(),Ue(p,null,u,c,Nt);else if(v.length===1){const h=g.current,F=v.toLowerCase(),A=performance.now();h.keys.length>0&&(A-h.lastTime>500?(h.keys=[],h.repeating=!0,h.previousKeyMatched=!0):h.repeating&&F!==h.keys[0]&&(h.repeating=!1)),h.lastTime=A,h.keys.push(F);const L=C&&!h.repeating&&Qt(C,h);h.previousKeyMatched&&(L||Ue(p,C,!1,c,dt,h))?f.preventDefault():h.previousKeyMatched=!1}m&&m(f)},S=ge(y,n);let R=-1;l.Children.forEach(i,(f,p)=>{if(!l.isValidElement(f)){R===p&&(R+=1,R>=i.length&&(R=-1));return}f.props.disabled||(b==="selectedMenu"&&f.props.selected||R===-1)&&(R=p),R===p&&(f.props.disabled||f.props.muiSkipListHighlight||f.type.muiSkipListHighlight)&&(R+=1,R>=i.length&&(R=-1))});const P=l.Children.map(i,(f,p)=>{if(p===R){const v={};return r&&(v.autoFocus=!0),f.props.tabIndex===void 0&&b==="selectedMenu"&&(v.tabIndex=0),l.cloneElement(f,v)}return f});return E.jsx(mr,d({role:"menu",ref:S,className:a,onKeyDown:T,tabIndex:s?0:-1},x,{children:P}))}),gr=br;function vr(e){return ie("MuiPopover",e)}se("MuiPopover",["root","paper"]);const xr=["onEntering"],yr=["action","anchorEl","anchorOrigin","anchorPosition","anchorReference","children","className","container","elevation","marginThreshold","open","PaperProps","slots","slotProps","transformOrigin","TransitionComponent","transitionDuration","TransitionProps","disableScrollLock"],Cr=["slotProps"];function Ot(e,t){let n=0;return typeof t=="number"?n=t:t==="center"?n=e.height/2:t==="bottom"&&(n=e.height),n}function Lt(e,t){let n=0;return typeof t=="number"?n=t:t==="center"?n=e.width/2:t==="right"&&(n=e.width),n}function At(e){return[e.horizontal,e.vertical].map(t=>typeof t=="number"?`${t}px`:t).join(" ")}function ct(e){return typeof e=="function"?e():e}const Er=e=>{const{classes:t}=e;return ae({root:["root"],paper:["paper"]},vr,t)},Rr=j(yo,{name:"MuiPopover",slot:"Root",overridesResolver:(e,t)=>t.root})({}),en=j(hn,{name:"MuiPopover",slot:"Paper",overridesResolver:(e,t)=>t.paper})({position:"absolute",overflowY:"auto",overflowX:"hidden",minWidth:16,minHeight:16,maxWidth:"calc(100% - 32px)",maxHeight:"calc(100% - 32px)",outline:0}),Sr=l.forwardRef(function(t,n){var o,s,r;const i=le({props:t,name:"MuiPopover"}),{action:a,anchorEl:c,anchorOrigin:u={vertical:"top",horizontal:"left"},anchorPosition:m,anchorReference:b="anchorEl",children:x,className:y,container:g,elevation:T=8,marginThreshold:S=16,open:R,PaperProps:P={},slots:f,slotProps:p,transformOrigin:v={vertical:"top",horizontal:"left"},TransitionComponent:C=Xo,transitionDuration:h="auto",TransitionProps:{onEntering:F}={},disableScrollLock:A=!1}=i,L=U(i.TransitionProps,xr),z=U(i,yr),B=(o=p==null?void 0:p.paper)!=null?o:P,$=l.useRef(),w=ge($,B.ref),I=d({},i,{anchorOrigin:u,anchorReference:b,elevation:T,marginThreshold:S,externalPaperSlotProps:B,transformOrigin:v,TransitionComponent:C,transitionDuration:h,TransitionProps:L}),k=Er(I),M=l.useCallback(()=>{if(b==="anchorPosition")return m;const W=ct(c),X=(W&&W.nodeType===1?W:he($.current).body).getBoundingClientRect();return{top:X.top+Ot(X,u.vertical),left:X.left+Lt(X,u.horizontal)}},[c,u.horizontal,u.vertical,m,b]),O=l.useCallback(W=>({vertical:Ot(W,v.vertical),horizontal:Lt(W,v.horizontal)}),[v.horizontal,v.vertical]),D=l.useCallback(W=>{const q={width:W.offsetWidth,height:W.offsetHeight},X=O(q);if(b==="none")return{top:null,left:null,transformOrigin:At(X)};const $e=M();let ve=$e.top-X.vertical,xe=$e.left-X.horizontal;const ye=ve+q.height,Ee=xe+q.width,te=ke(ct(c)),Se=te.innerHeight-S,me=te.innerWidth-S;if(S!==null&&veSe){const ne=ye-Se;ve-=ne,X.vertical+=ne}if(S!==null&&xeme){const ne=Ee-me;xe-=ne,X.horizontal+=ne}return{top:`${Math.round(ve)}px`,left:`${Math.round(xe)}px`,transformOrigin:At(X)}},[c,b,M,O,S]),[K,ue]=l.useState(R),Q=l.useCallback(()=>{const W=$.current;if(!W)return;const q=D(W);q.top!==null&&(W.style.top=q.top),q.left!==null&&(W.style.left=q.left),W.style.transformOrigin=q.transformOrigin,ue(!0)},[D]);l.useEffect(()=>(A&&window.addEventListener("scroll",Q),()=>window.removeEventListener("scroll",Q)),[c,A,Q]);const J=(W,q)=>{F&&F(W,q),Q()},H=()=>{ue(!1)};l.useEffect(()=>{R&&Q()}),l.useImperativeHandle(a,()=>R?{updatePosition:()=>{Q()}}:null,[R,Q]),l.useEffect(()=>{if(!R)return;const W=jt(()=>{Q()}),q=ke(c);return q.addEventListener("resize",W),()=>{W.clear(),q.removeEventListener("resize",W)}},[c,R,Q]);let ee=h;h==="auto"&&!C.muiSupportAuto&&(ee=void 0);const Z=g||(c?he(ct(c)).body:void 0),pe=(s=f==null?void 0:f.root)!=null?s:Rr,de=(r=f==null?void 0:f.paper)!=null?r:en,be=ze({elementType:de,externalSlotProps:d({},B,{style:K?B.style:d({},B.style,{opacity:0})}),additionalProps:{elevation:T,ref:w},ownerState:I,className:re(k.paper,B==null?void 0:B.className)}),fe=ze({elementType:pe,externalSlotProps:(p==null?void 0:p.root)||{},externalForwardedProps:z,additionalProps:{ref:n,slotProps:{backdrop:{invisible:!0}},container:Z,open:R},ownerState:I,className:re(k.root,y)}),{slotProps:_}=fe,Y=U(fe,Cr);return E.jsx(pe,d({},Y,!ut(pe)&&{slotProps:_,disableScrollLock:A},{children:E.jsx(C,d({appear:!0,in:R,onEntering:J,onExited:H,timeout:ee},L,{children:E.jsx(de,d({},be,{children:x}))}))}))}),Pr=Sr;function Ir(e){return ie("MuiMenu",e)}const wr=se("MuiMenu",["root","paper","list"]),Fs=wr,Tr=["onEntering"],kr=["autoFocus","children","className","disableAutoFocusItem","MenuListProps","onClose","open","PaperProps","PopoverClasses","transitionDuration","TransitionProps","variant","slots","slotProps"],Fr={vertical:"top",horizontal:"right"},$r={vertical:"top",horizontal:"left"},Mr=e=>{const{classes:t}=e;return ae({root:["root"],paper:["paper"],list:["list"]},Ir,t)},Nr=j(Pr,{shouldForwardProp:e=>Fe(e)||e==="classes",name:"MuiMenu",slot:"Root",overridesResolver:(e,t)=>t.root})({}),Or=j(en,{name:"MuiMenu",slot:"Paper",overridesResolver:(e,t)=>t.paper})({maxHeight:"calc(100% - 96px)",WebkitOverflowScrolling:"touch"}),Lr=j(gr,{name:"MuiMenu",slot:"List",overridesResolver:(e,t)=>t.list})({outline:0}),Ar=l.forwardRef(function(t,n){var o,s;const r=le({props:t,name:"MuiMenu"}),{autoFocus:i=!0,children:a,className:c,disableAutoFocusItem:u=!1,MenuListProps:m={},onClose:b,open:x,PaperProps:y={},PopoverClasses:g,transitionDuration:T="auto",TransitionProps:{onEntering:S}={},variant:R="selectedMenu",slots:P={},slotProps:f={}}=r,p=U(r.TransitionProps,Tr),v=U(r,kr),C=mt(),h=C.direction==="rtl",F=d({},r,{autoFocus:i,disableAutoFocusItem:u,MenuListProps:m,onEntering:S,PaperProps:y,transitionDuration:T,TransitionProps:p,variant:R}),A=Mr(F),L=i&&!u&&x,z=l.useRef(null),B=(D,K)=>{z.current&&z.current.adjustStyleForScrollbar(D,C),S&&S(D,K)},$=D=>{D.key==="Tab"&&(D.preventDefault(),b&&b(D,"tabKeyDown"))};let w=-1;l.Children.map(a,(D,K)=>{l.isValidElement(D)&&(D.props.disabled||(R==="selectedMenu"&&D.props.selected||w===-1)&&(w=K))});const I=(o=P.paper)!=null?o:Or,k=(s=f.paper)!=null?s:y,M=ze({elementType:P.root,externalSlotProps:f.root,ownerState:F,className:[A.root,c]}),O=ze({elementType:I,externalSlotProps:k,ownerState:F,className:A.paper});return E.jsx(Nr,d({onClose:b,anchorOrigin:{vertical:"bottom",horizontal:h?"right":"left"},transformOrigin:h?Fr:$r,slots:{paper:I,root:P.root},slotProps:{root:M,paper:O},open:x,ref:n,transitionDuration:T,TransitionProps:d({onEntering:B},p),ownerState:F},v,{classes:g,children:E.jsx(Lr,d({onKeyDown:$,actions:z,autoFocus:i&&(w===-1||u),autoFocusItem:L,variant:R},m,{className:re(A.list,m.className),children:a}))}))}),Br=Ar;function Dr(e){return ie("MuiNativeSelect",e)}const zr=se("MuiNativeSelect",["root","select","multiple","filled","outlined","standard","disabled","icon","iconOpen","iconFilled","iconOutlined","iconStandard","nativeInput","error"]),vt=zr,Wr=["className","disabled","error","IconComponent","inputRef","variant"],jr=e=>{const{classes:t,variant:n,disabled:o,multiple:s,open:r,error:i}=e,a={select:["select",n,o&&"disabled",s&&"multiple",i&&"error"],icon:["icon",`icon${ce(n)}`,r&&"iconOpen",o&&"disabled"]};return ae(a,Dr,t)},tn=({ownerState:e,theme:t})=>d({MozAppearance:"none",WebkitAppearance:"none",userSelect:"none",borderRadius:0,cursor:"pointer","&:focus":d({},t.vars?{backgroundColor:`rgba(${t.vars.palette.common.onBackgroundChannel} / 0.05)`}:{backgroundColor:t.palette.mode==="light"?"rgba(0, 0, 0, 0.05)":"rgba(255, 255, 255, 0.05)"},{borderRadius:0}),"&::-ms-expand":{display:"none"},[`&.${vt.disabled}`]:{cursor:"default"},"&[multiple]":{height:"auto"},"&:not([multiple]) option, &:not([multiple]) optgroup":{backgroundColor:(t.vars||t).palette.background.paper},"&&&":{paddingRight:24,minWidth:16}},e.variant==="filled"&&{"&&&":{paddingRight:32}},e.variant==="outlined"&&{borderRadius:(t.vars||t).shape.borderRadius,"&:focus":{borderRadius:(t.vars||t).shape.borderRadius},"&&&":{paddingRight:32}}),_r=j("select",{name:"MuiNativeSelect",slot:"Select",shouldForwardProp:Fe,overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.select,t[n.variant],n.error&&t.error,{[`&.${vt.multiple}`]:t.multiple}]}})(tn),nn=({ownerState:e,theme:t})=>d({position:"absolute",right:0,top:"calc(50% - .5em)",pointerEvents:"none",color:(t.vars||t).palette.action.active,[`&.${vt.disabled}`]:{color:(t.vars||t).palette.action.disabled}},e.open&&{transform:"rotate(180deg)"},e.variant==="filled"&&{right:7},e.variant==="outlined"&&{right:7}),Hr=j("svg",{name:"MuiNativeSelect",slot:"Icon",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.icon,n.variant&&t[`icon${ce(n.variant)}`],n.open&&t.iconOpen]}})(nn),Ur=l.forwardRef(function(t,n){const{className:o,disabled:s,error:r,IconComponent:i,inputRef:a,variant:c="standard"}=t,u=U(t,Wr),m=d({},t,{disabled:s,variant:c,error:r}),b=jr(m);return E.jsxs(l.Fragment,{children:[E.jsx(_r,d({ownerState:m,className:re(b.select,o),disabled:s,ref:a||n},u)),t.multiple?null:E.jsx(Hr,{as:i,ownerState:m,className:b.icon})]})}),Kr=Ur;var Bt;const qr=["children","classes","className","label","notched"],Vr=j("fieldset")({textAlign:"left",position:"absolute",bottom:0,right:0,top:-5,left:0,margin:0,padding:"0 8px",pointerEvents:"none",borderRadius:"inherit",borderStyle:"solid",borderWidth:1,overflow:"hidden",minWidth:"0%"}),Gr=j("legend")(({ownerState:e,theme:t})=>d({float:"unset",width:"auto",overflow:"hidden"},!e.withLabel&&{padding:0,lineHeight:"11px",transition:t.transitions.create("width",{duration:150,easing:t.transitions.easing.easeOut})},e.withLabel&&d({display:"block",padding:0,height:11,fontSize:"0.75em",visibility:"hidden",maxWidth:.01,transition:t.transitions.create("max-width",{duration:50,easing:t.transitions.easing.easeOut}),whiteSpace:"nowrap","& > span":{paddingLeft:5,paddingRight:5,display:"inline-block",opacity:0,visibility:"visible"}},e.notched&&{maxWidth:"100%",transition:t.transitions.create("max-width",{duration:100,easing:t.transitions.easing.easeOut,delay:50})})));function Xr(e){const{className:t,label:n,notched:o}=e,s=U(e,qr),r=n!=null&&n!=="",i=d({},e,{notched:o,withLabel:r});return E.jsx(Vr,d({"aria-hidden":!0,className:t,ownerState:i},s,{children:E.jsx(Gr,{ownerState:i,children:r?E.jsx("span",{children:n}):Bt||(Bt=E.jsx("span",{className:"notranslate",children:"​"}))})}))}const Yr=["components","fullWidth","inputComponent","label","multiline","notched","slots","type"],Jr=e=>{const{classes:t}=e,o=ae({root:["root"],notchedOutline:["notchedOutline"],input:["input"]},Zn,t);return d({},t,o)},Zr=j(ot,{shouldForwardProp:e=>Fe(e)||e==="classes",name:"MuiOutlinedInput",slot:"Root",overridesResolver:tt})(({theme:e,ownerState:t})=>{const n=e.palette.mode==="light"?"rgba(0, 0, 0, 0.23)":"rgba(255, 255, 255, 0.23)";return d({position:"relative",borderRadius:(e.vars||e).shape.borderRadius,[`&:hover .${Re.notchedOutline}`]:{borderColor:(e.vars||e).palette.text.primary},"@media (hover: none)":{[`&:hover .${Re.notchedOutline}`]:{borderColor:e.vars?`rgba(${e.vars.palette.common.onBackgroundChannel} / 0.23)`:n}},[`&.${Re.focused} .${Re.notchedOutline}`]:{borderColor:(e.vars||e).palette[t.color].main,borderWidth:2},[`&.${Re.error} .${Re.notchedOutline}`]:{borderColor:(e.vars||e).palette.error.main},[`&.${Re.disabled} .${Re.notchedOutline}`]:{borderColor:(e.vars||e).palette.action.disabled}},t.startAdornment&&{paddingLeft:14},t.endAdornment&&{paddingRight:14},t.multiline&&d({padding:"16.5px 14px"},t.size==="small"&&{padding:"8.5px 14px"}))}),Qr=j(Xr,{name:"MuiOutlinedInput",slot:"NotchedOutline",overridesResolver:(e,t)=>t.notchedOutline})(({theme:e})=>{const t=e.palette.mode==="light"?"rgba(0, 0, 0, 0.23)":"rgba(255, 255, 255, 0.23)";return{borderColor:e.vars?`rgba(${e.vars.palette.common.onBackgroundChannel} / 0.23)`:t}}),es=j(rt,{name:"MuiOutlinedInput",slot:"Input",overridesResolver:nt})(({theme:e,ownerState:t})=>d({padding:"16.5px 14px"},!e.vars&&{"&:-webkit-autofill":{WebkitBoxShadow:e.palette.mode==="light"?null:"0 0 0 100px #266798 inset",WebkitTextFillColor:e.palette.mode==="light"?null:"#fff",caretColor:e.palette.mode==="light"?null:"#fff",borderRadius:"inherit"}},e.vars&&{"&:-webkit-autofill":{borderRadius:"inherit"},[e.getColorSchemeSelector("dark")]:{"&:-webkit-autofill":{WebkitBoxShadow:"0 0 0 100px #266798 inset",WebkitTextFillColor:"#fff",caretColor:"#fff"}}},t.size==="small"&&{padding:"8.5px 14px"},t.multiline&&{padding:0},t.startAdornment&&{paddingLeft:0},t.endAdornment&&{paddingRight:0})),on=l.forwardRef(function(t,n){var o,s,r,i,a;const c=le({props:t,name:"MuiOutlinedInput"}),{components:u={},fullWidth:m=!1,inputComponent:b="input",label:x,multiline:y=!1,notched:g,slots:T={},type:S="text"}=c,R=U(c,Yr),P=Jr(c),f=_e(),p=je({props:c,muiFormControl:f,states:["color","disabled","error","focused","hiddenLabel","size","required"]}),v=d({},c,{color:p.color||"primary",disabled:p.disabled,error:p.error,focused:p.focused,formControl:f,fullWidth:m,hiddenLabel:p.hiddenLabel,multiline:y,size:p.size,type:S}),C=(o=(s=T.root)!=null?s:u.Root)!=null?o:Zr,h=(r=(i=T.input)!=null?i:u.Input)!=null?r:es;return E.jsx(gt,d({slots:{root:C,input:h},renderSuffix:F=>E.jsx(Qr,{ownerState:v,className:P.notchedOutline,label:x!=null&&x!==""&&p.required?a||(a=E.jsxs(l.Fragment,{children:[x," ","*"]})):x,notched:typeof g<"u"?g:!!(F.startAdornment||F.filled||F.focused)}),fullWidth:m,inputComponent:b,multiline:y,ref:n,type:S},R,{classes:d({},P,{notchedOutline:null})}))});on.muiName="Input";const rn=on;function ts(e){return ie("MuiSelect",e)}const ns=se("MuiSelect",["root","select","multiple","filled","outlined","standard","disabled","focused","icon","iconOpen","iconFilled","iconOutlined","iconStandard","nativeInput","error"]),Ke=ns;var Dt;const os=["aria-describedby","aria-label","autoFocus","autoWidth","children","className","defaultOpen","defaultValue","disabled","displayEmpty","error","IconComponent","inputRef","labelId","MenuProps","multiple","name","onBlur","onChange","onClose","onFocus","onOpen","open","readOnly","renderValue","SelectDisplayProps","tabIndex","type","value","variant"],rs=j("div",{name:"MuiSelect",slot:"Select",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[{[`&.${Ke.select}`]:t.select},{[`&.${Ke.select}`]:t[n.variant]},{[`&.${Ke.error}`]:t.error},{[`&.${Ke.multiple}`]:t.multiple}]}})(tn,{[`&.${Ke.select}`]:{height:"auto",minHeight:"1.4375em",textOverflow:"ellipsis",whiteSpace:"nowrap",overflow:"hidden"}}),ss=j("svg",{name:"MuiSelect",slot:"Icon",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.icon,n.variant&&t[`icon${ce(n.variant)}`],n.open&&t.iconOpen]}})(nn),is=j("input",{shouldForwardProp:e=>mn(e)&&e!=="classes",name:"MuiSelect",slot:"NativeInput",overridesResolver:(e,t)=>t.nativeInput})({bottom:0,left:0,position:"absolute",opacity:0,pointerEvents:"none",width:"100%",boxSizing:"border-box"});function zt(e,t){return typeof t=="object"&&t!==null?e===t:String(e)===String(t)}function as(e){return e==null||typeof e=="string"&&!e.trim()}const ls=e=>{const{classes:t,variant:n,disabled:o,multiple:s,open:r,error:i}=e,a={select:["select",n,o&&"disabled",s&&"multiple",i&&"error"],icon:["icon",`icon${ce(n)}`,r&&"iconOpen",o&&"disabled"],nativeInput:["nativeInput"]};return ae(a,ts,t)},ds=l.forwardRef(function(t,n){var o;const{"aria-describedby":s,"aria-label":r,autoFocus:i,autoWidth:a,children:c,className:u,defaultOpen:m,defaultValue:b,disabled:x,displayEmpty:y,error:g=!1,IconComponent:T,inputRef:S,labelId:R,MenuProps:P={},multiple:f,name:p,onBlur:v,onChange:C,onClose:h,onFocus:F,onOpen:A,open:L,readOnly:z,renderValue:B,SelectDisplayProps:$={},tabIndex:w,value:I,variant:k="standard"}=t,M=U(t,os),[O,D]=Pt({controlled:I,default:b,name:"Select"}),[K,ue]=Pt({controlled:L,default:m,name:"Select"}),Q=l.useRef(null),J=l.useRef(null),[H,ee]=l.useState(null),{current:Z}=l.useRef(L!=null),[pe,de]=l.useState(),be=ge(n,S),fe=l.useCallback(N=>{J.current=N,N&&ee(N)},[]),_=H==null?void 0:H.parentNode;l.useImperativeHandle(be,()=>({focus:()=>{J.current.focus()},node:Q.current,value:O}),[O]),l.useEffect(()=>{m&&K&&H&&!Z&&(de(a?null:_.clientWidth),J.current.focus())},[H,a]),l.useEffect(()=>{i&&J.current.focus()},[i]),l.useEffect(()=>{if(!R)return;const N=he(J.current).getElementById(R);if(N){const V=()=>{getSelection().isCollapsed&&J.current.focus()};return N.addEventListener("click",V),()=>{N.removeEventListener("click",V)}}},[R]);const Y=(N,V)=>{N?A&&A(V):h&&h(V),Z||(de(a?null:_.clientWidth),ue(N))},W=N=>{N.button===0&&(N.preventDefault(),J.current.focus(),Y(!0,N))},q=N=>{Y(!1,N)},X=l.Children.toArray(c),$e=N=>{const V=X.find(oe=>oe.props.value===N.target.value);V!==void 0&&(D(V.props.value),C&&C(N,V))},ve=N=>V=>{let oe;if(V.currentTarget.hasAttribute("tabindex")){if(f){oe=Array.isArray(O)?O.slice():[];const Le=O.indexOf(N.props.value);Le===-1?oe.push(N.props.value):oe.splice(Le,1)}else oe=N.props.value;if(N.props.onClick&&N.props.onClick(V),O!==oe&&(D(oe),C)){const Le=V.nativeEvent||V,Ct=new Le.constructor(Le.type,Le);Object.defineProperty(Ct,"target",{writable:!0,value:{value:oe,name:p}}),C(Ct,N)}f||Y(!1,V)}},xe=N=>{z||[" ","ArrowUp","ArrowDown","Enter"].indexOf(N.key)!==-1&&(N.preventDefault(),Y(!0,N))},ye=H!==null&&K,Ee=N=>{!ye&&v&&(Object.defineProperty(N,"target",{writable:!0,value:{value:O,name:p}}),v(N))};delete M["aria-invalid"];let te,Se;const me=[];let ne=!1;(et({value:O})||y)&&(B?te=B(O):ne=!0);const Xe=X.map(N=>{if(!l.isValidElement(N))return null;let V;if(f){if(!Array.isArray(O))throw new Error(_t(2));V=O.some(oe=>zt(oe,N.props.value)),V&&ne&&me.push(N.props.children)}else V=zt(O,N.props.value),V&&ne&&(Se=N.props.children);return l.cloneElement(N,{"aria-selected":V?"true":"false",onClick:ve(N),onKeyUp:oe=>{oe.key===" "&&oe.preventDefault(),N.props.onKeyUp&&N.props.onKeyUp(oe)},role:"option",selected:V,value:void 0,"data-value":N.props.value})});ne&&(f?me.length===0?te=null:te=me.reduce((N,V,oe)=>(N.push(V),oe{const{classes:t}=e;return t},xt={name:"MuiSelect",overridesResolver:(e,t)=>t.root,shouldForwardProp:e=>Fe(e)&&e!=="variant",slot:"Root"},ms=j(Zt,xt)(""),hs=j(rn,xt)(""),bs=j(Xt,xt)(""),sn=l.forwardRef(function(t,n){const o=le({name:"MuiSelect",props:t}),{autoWidth:s=!1,children:r,classes:i={},className:a,defaultOpen:c=!1,displayEmpty:u=!1,IconComponent:m=no,id:b,input:x,inputProps:y,label:g,labelId:T,MenuProps:S,multiple:R=!1,native:P=!1,onClose:f,onOpen:p,open:v,renderValue:C,SelectDisplayProps:h,variant:F="outlined"}=o,A=U(o,us),L=P?Kr:cs,z=_e(),B=je({props:o,muiFormControl:z,states:["variant","error"]}),$=B.variant||F,w=d({},o,{variant:$,classes:i}),I=fs(w),k=U(I,ps),M=x||{standard:E.jsx(ms,{ownerState:w}),outlined:E.jsx(hs,{label:g,ownerState:w}),filled:E.jsx(bs,{ownerState:w})}[$],O=ge(n,M.ref);return E.jsx(l.Fragment,{children:l.cloneElement(M,d({inputComponent:L,inputProps:d({children:r,error:B.error,IconComponent:m,variant:$,type:void 0,multiple:R},P?{id:b}:{autoWidth:s,defaultOpen:c,displayEmpty:u,labelId:T,MenuProps:S,onClose:f,onOpen:p,open:v,renderValue:C,SelectDisplayProps:d({id:b},h)},y,{classes:y?ht(k,y.classes):k},x?x.props.inputProps:{})},R&&P&&$==="outlined"?{notched:!0}:{},{ref:O,className:re(M.props.className,a,I.root)},!x&&{variant:$},A))})});sn.muiName="Select";const gs=sn;function vs(e){return ie("MuiTextField",e)}const xs=se("MuiTextField",["root"]),$s=xs,ys=["autoComplete","autoFocus","children","className","color","defaultValue","disabled","error","FormHelperTextProps","fullWidth","helperText","id","InputLabelProps","inputProps","InputProps","inputRef","label","maxRows","minRows","multiline","name","onBlur","onChange","onFocus","placeholder","required","rows","select","SelectProps","type","value","variant"],Cs={standard:Zt,filled:Xt,outlined:rn},Es=e=>{const{classes:t}=e;return ae({root:["root"]},vs,t)},Rs=j($o,{name:"MuiTextField",slot:"Root",overridesResolver:(e,t)=>t.root})({}),Ss=l.forwardRef(function(t,n){const o=le({props:t,name:"MuiTextField"}),{autoComplete:s,autoFocus:r=!1,children:i,className:a,color:c="primary",defaultValue:u,disabled:m=!1,error:b=!1,FormHelperTextProps:x,fullWidth:y=!1,helperText:g,id:T,InputLabelProps:S,inputProps:R,InputProps:P,inputRef:f,label:p,maxRows:v,minRows:C,multiline:h=!1,name:F,onBlur:A,onChange:L,onFocus:z,placeholder:B,required:$=!1,rows:w,select:I=!1,SelectProps:k,type:M,value:O,variant:D="outlined"}=o,K=U(o,ys),ue=d({},o,{autoFocus:r,color:c,disabled:m,error:b,fullWidth:y,multiline:h,required:$,select:I,variant:D}),Q=Es(ue),J={};D==="outlined"&&(S&&typeof S.shrink<"u"&&(J.notched=S.shrink),J.label=p),I&&((!k||!k.native)&&(J.id=void 0),J["aria-describedby"]=void 0);const H=Ht(T),ee=g&&H?`${H}-helper-text`:void 0,Z=p&&H?`${H}-label`:void 0,pe=Cs[D],de=E.jsx(pe,d({"aria-describedby":ee,autoComplete:s,autoFocus:r,defaultValue:u,fullWidth:y,multiline:h,name:F,rows:w,maxRows:v,minRows:C,type:M,value:O,id:H,inputRef:f,onBlur:A,onChange:L,onFocus:z,placeholder:B,inputProps:R},J,P));return E.jsxs(Rs,d({className:re(Q.root,a),disabled:m,error:b,fullWidth:y,ref:n,required:$,color:c,variant:D,ownerState:ue},K,{children:[p!=null&&p!==""&&E.jsx(ir,d({htmlFor:H,id:Z},S,{children:p})),I?E.jsx(gs,d({"aria-describedby":ee,id:H,labelId:Z,value:O,input:de},k,{children:i})):de,g&&E.jsx(Do,d({id:ee},x,{children:g}))]}))}),Ms=Ss;export{no as A,fo as B,Ke as C,gt as D,vs as E,io as F,Xo as G,$s as H,ir as I,Tn as J,lr as L,gr as M,Pr as P,gs as S,Ms as T,In as a,mr as b,We as c,gn as d,xn as e,Ie as f,qt as g,Qe as h,He as i,yo as j,$o as k,Ts as l,Po as m,je as n,Re as o,Do as p,$t as q,Mo as r,bt as s,er as t,_e as u,ks as v,Br as w,Ir as x,Fs as y,ts as z}; diff --git a/src/evidently/ui/ui/static/js/Toolbar-03fb06fb.js b/src/evidently/ui/ui/static/js/Toolbar-03fb06fb.js new file mode 100644 index 0000000000..3f134f2123 --- /dev/null +++ b/src/evidently/ui/ui/static/js/Toolbar-03fb06fb.js @@ -0,0 +1,54 @@ +import{_ as a,aq as H,ax as A,b as y,a4 as k,g as S,a as D,ag as P,s as p,c as l,a7 as T,u as U,x as K,d as z,e as w,ah as X,a8 as W}from"./createSvgIcon-41173291.js";import{e as b,j as c}from"./vendor-20fe28cb.js";const Y=b.createContext(null),G=Y;function O(){return b.useContext(G)}const F=typeof Symbol=="function"&&Symbol.for,J=F?Symbol.for("mui.nested"):"__THEME_NESTED__";function Q(r,e){return typeof e=="function"?e(r):a({},r,e)}function V(r){const{children:e,theme:t}=r,o=O(),s=b.useMemo(()=>{const n=o===null?t:Q(o,t);return n!=null&&(n[J]=o!==null),n},[t,o]);return c.jsx(G.Provider,{value:s,children:e})}const M={};function R(r,e,t,o=!1){return b.useMemo(()=>{const s=r&&e[r]||e;if(typeof t=="function"){const n=t(s),i=r?a({},e,{[r]:n}):n;return o?()=>i:i}return r?a({},e,{[r]:t}):a({},e,t)},[r,e,t,o])}function Z(r){const{children:e,theme:t,themeId:o}=r,s=H(M),n=O()||M,i=R(o,s,t),m=R(o,n,t,!0);return c.jsx(V,{theme:m,children:c.jsx(A.Provider,{value:i,children:e})})}const rr=["theme"];function $r(r){let{theme:e}=r,t=y(r,rr);const o=e[k];return c.jsx(Z,a({},t,{themeId:o?k:void 0,theme:o||e}))}function er(r){return S("MuiLinearProgress",r)}const tr=D("MuiLinearProgress",["root","colorPrimary","colorSecondary","determinate","indeterminate","buffer","query","dashed","dashedColorPrimary","dashedColorSecondary","bar","barColorPrimary","barColorSecondary","bar1Indeterminate","bar1Determinate","bar1Buffer","bar2Indeterminate","bar2Buffer"]),yr=tr,or=["className","color","value","valueBuffer","variant"];let g=r=>r,j,B,N,E,I,q;const $=4,ar=P(j||(j=g` + 0% { + left: -35%; + right: 100%; + } + + 60% { + left: 100%; + right: -90%; + } + + 100% { + left: 100%; + right: -90%; + } +`)),nr=P(B||(B=g` + 0% { + left: -200%; + right: 100%; + } + + 60% { + left: 107%; + right: -8%; + } + + 100% { + left: 107%; + right: -8%; + } +`)),sr=P(N||(N=g` + 0% { + opacity: 1; + background-position: 0 -23px; + } + + 60% { + opacity: 0; + background-position: 0 -23px; + } + + 100% { + opacity: 1; + background-position: -200px -23px; + } +`)),ir=r=>{const{classes:e,variant:t,color:o}=r,s={root:["root",`color${l(o)}`,t],dashed:["dashed",`dashedColor${l(o)}`],bar1:["bar",`barColor${l(o)}`,(t==="indeterminate"||t==="query")&&"bar1Indeterminate",t==="determinate"&&"bar1Determinate",t==="buffer"&&"bar1Buffer"],bar2:["bar",t!=="buffer"&&`barColor${l(o)}`,t==="buffer"&&`color${l(o)}`,(t==="indeterminate"||t==="query")&&"bar2Indeterminate",t==="buffer"&&"bar2Buffer"]};return w(s,er,e)},L=(r,e)=>e==="inherit"?"currentColor":r.vars?r.vars.palette.LinearProgress[`${e}Bg`]:r.palette.mode==="light"?X(r.palette[e].main,.62):W(r.palette[e].main,.5),lr=p("span",{name:"MuiLinearProgress",slot:"Root",overridesResolver:(r,e)=>{const{ownerState:t}=r;return[e.root,e[`color${l(t.color)}`],e[t.variant]]}})(({ownerState:r,theme:e})=>a({position:"relative",overflow:"hidden",display:"block",height:4,zIndex:0,"@media print":{colorAdjust:"exact"},backgroundColor:L(e,r.color)},r.color==="inherit"&&r.variant!=="buffer"&&{backgroundColor:"none","&::before":{content:'""',position:"absolute",left:0,top:0,right:0,bottom:0,backgroundColor:"currentColor",opacity:.3}},r.variant==="buffer"&&{backgroundColor:"transparent"},r.variant==="query"&&{transform:"rotate(180deg)"})),cr=p("span",{name:"MuiLinearProgress",slot:"Dashed",overridesResolver:(r,e)=>{const{ownerState:t}=r;return[e.dashed,e[`dashedColor${l(t.color)}`]]}})(({ownerState:r,theme:e})=>{const t=L(e,r.color);return a({position:"absolute",marginTop:0,height:"100%",width:"100%"},r.color==="inherit"&&{opacity:.3},{backgroundImage:`radial-gradient(${t} 0%, ${t} 16%, transparent 42%)`,backgroundSize:"10px 10px",backgroundPosition:"0 -23px"})},T(E||(E=g` + animation: ${0} 3s infinite linear; + `),sr)),ur=p("span",{name:"MuiLinearProgress",slot:"Bar1",overridesResolver:(r,e)=>{const{ownerState:t}=r;return[e.bar,e[`barColor${l(t.color)}`],(t.variant==="indeterminate"||t.variant==="query")&&e.bar1Indeterminate,t.variant==="determinate"&&e.bar1Determinate,t.variant==="buffer"&&e.bar1Buffer]}})(({ownerState:r,theme:e})=>a({width:"100%",position:"absolute",left:0,bottom:0,top:0,transition:"transform 0.2s linear",transformOrigin:"left",backgroundColor:r.color==="inherit"?"currentColor":(e.vars||e).palette[r.color].main},r.variant==="determinate"&&{transition:`transform .${$}s linear`},r.variant==="buffer"&&{zIndex:1,transition:`transform .${$}s linear`}),({ownerState:r})=>(r.variant==="indeterminate"||r.variant==="query")&&T(I||(I=g` + width: auto; + animation: ${0} 2.1s cubic-bezier(0.65, 0.815, 0.735, 0.395) infinite; + `),ar)),dr=p("span",{name:"MuiLinearProgress",slot:"Bar2",overridesResolver:(r,e)=>{const{ownerState:t}=r;return[e.bar,e[`barColor${l(t.color)}`],(t.variant==="indeterminate"||t.variant==="query")&&e.bar2Indeterminate,t.variant==="buffer"&&e.bar2Buffer]}})(({ownerState:r,theme:e})=>a({width:"100%",position:"absolute",left:0,bottom:0,top:0,transition:"transform 0.2s linear",transformOrigin:"left"},r.variant!=="buffer"&&{backgroundColor:r.color==="inherit"?"currentColor":(e.vars||e).palette[r.color].main},r.color==="inherit"&&{opacity:.3},r.variant==="buffer"&&{backgroundColor:L(e,r.color),transition:`transform .${$}s linear`}),({ownerState:r})=>(r.variant==="indeterminate"||r.variant==="query")&&T(q||(q=g` + width: auto; + animation: ${0} 2.1s cubic-bezier(0.165, 0.84, 0.44, 1) 1.15s infinite; + `),nr)),fr=b.forwardRef(function(e,t){const o=U({props:e,name:"MuiLinearProgress"}),{className:s,color:n="primary",value:i,valueBuffer:m,variant:u="indeterminate"}=o,v=y(o,or),d=a({},o,{color:n,variant:u}),h=ir(d),_=K(),C={},x={bar1:{},bar2:{}};if((u==="determinate"||u==="buffer")&&i!==void 0){C["aria-valuenow"]=Math.round(i),C["aria-valuemin"]=0,C["aria-valuemax"]=100;let f=i-100;_.direction==="rtl"&&(f=-f),x.bar1.transform=`translateX(${f}%)`}if(u==="buffer"&&m!==void 0){let f=(m||0)-100;_.direction==="rtl"&&(f=-f),x.bar2.transform=`translateX(${f}%)`}return c.jsxs(lr,a({className:z(h.root,s),ownerState:d,role:"progressbar"},C,{ref:t},v,{children:[u==="buffer"?c.jsx(cr,{className:h.dashed,ownerState:d}):null,c.jsx(ur,{className:h.bar1,ownerState:d,style:x.bar1}),u==="determinate"?null:c.jsx(dr,{className:h.bar2,ownerState:d,style:x.bar2})]}))}),Pr=fr;function mr(r){return S("MuiToolbar",r)}const br=D("MuiToolbar",["root","gutters","regular","dense"]),Tr=br,gr=["className","component","disableGutters","variant"],pr=r=>{const{classes:e,disableGutters:t,variant:o}=r;return w({root:["root",!t&&"gutters",o]},mr,e)},vr=p("div",{name:"MuiToolbar",slot:"Root",overridesResolver:(r,e)=>{const{ownerState:t}=r;return[e.root,!t.disableGutters&&e.gutters,e[t.variant]]}})(({theme:r,ownerState:e})=>a({position:"relative",display:"flex",alignItems:"center"},!e.disableGutters&&{paddingLeft:r.spacing(2),paddingRight:r.spacing(2),[r.breakpoints.up("sm")]:{paddingLeft:r.spacing(3),paddingRight:r.spacing(3)}},e.variant==="dense"&&{minHeight:48}),({theme:r,ownerState:e})=>e.variant==="regular"&&r.mixins.toolbar),hr=b.forwardRef(function(e,t){const o=U({props:e,name:"MuiToolbar"}),{className:s,component:n="div",disableGutters:i=!1,variant:m="regular"}=o,u=y(o,gr),v=a({},o,{component:n,disableGutters:i,variant:m}),d=pr(v);return c.jsx(vr,a({as:n,className:z(d.root,s),ref:t,ownerState:v},u))}),Lr=hr;export{Pr as L,Lr as T,$r as a,Z as b,mr as c,er as g,yr as l,Tr as t,O as u}; diff --git a/src/evidently/ui/ui/static/js/createSvgIcon-41173291.js b/src/evidently/ui/ui/static/js/createSvgIcon-41173291.js new file mode 100644 index 0000000000..80d35c1e10 --- /dev/null +++ b/src/evidently/ui/ui/static/js/createSvgIcon-41173291.js @@ -0,0 +1,95 @@ +var xo=Object.defineProperty;var $o=(e,t,r)=>t in e?xo(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r;var Mr=(e,t,r)=>($o(e,typeof t!="symbol"?t+"":t,r),r);import{e as m,m as Gt,g as So,j as Y,R as Ae,n as wo}from"./vendor-20fe28cb.js";function y(){return y=Object.assign?Object.assign.bind():function(e){for(var t=1;t{t[r]=mn(e[r])}),t}function te(e,t,r={clone:!0}){const n=r.clone?y({},e):e;return fe(e)&&fe(t)&&Object.keys(t).forEach(o=>{o!=="__proto__"&&(fe(t[o])&&o in e&&fe(e[o])?n[o]=te(e[o],t[o],r):r.clone?n[o]=fe(t[o])?mn(t[o]):t[o]:n[o]=t[o])}),n}function Ce(e){let t="https://mui.com/production-error/?code="+e;for(let r=1;rr==null?t:function(...o){t.apply(this,o),r.apply(this,o)},()=>{})}function ko(e,t=166){let r;function n(...o){const s=()=>{e.apply(this,o)};clearTimeout(r),r=setTimeout(s,t)}return n.clear=()=>{clearTimeout(r)},n}function Po(e,t){return()=>null}function Eo(e,t){var r,n;return m.isValidElement(e)&&t.indexOf((r=e.type.muiName)!=null?r:(n=e.type)==null||(n=n._payload)==null||(n=n.value)==null?void 0:n.muiName)!==-1}function bn(e){return e&&e.ownerDocument||document}function Oo(e){return bn(e).defaultView||window}function _o(e,t){return()=>null}function vn(e,t){typeof e=="function"?e(t):e&&(e.current=t)}const Ao=typeof window<"u"?m.useLayoutEffect:m.useEffect,xn=Ao;let Ir=0;function Mo(e){const[t,r]=m.useState(e),n=e||t;return m.useEffect(()=>{t==null&&(Ir+=1,r(`mui-${Ir}`))},[t]),n}const Br=Gt["useId".toString()];function Io(e){if(Br!==void 0){const t=Br();return e??t}return Mo(e)}function Bo(e,t,r,n,o){return null}function jo({controlled:e,default:t,name:r,state:n="value"}){const{current:o}=m.useRef(e!==void 0),[s,i]=m.useState(t),a=o?e:s,c=m.useCallback(u=>{o||i(u)},[]);return[a,c]}function Me(e){const t=m.useRef(e);return xn(()=>{t.current=e}),m.useCallback((...r)=>(0,t.current)(...r),[])}function Qe(...e){return m.useMemo(()=>e.every(t=>t==null)?null:t=>{e.forEach(r=>{vn(r,t)})},e)}let ht=!0,qt=!1,jr;const Fo={text:!0,search:!0,url:!0,tel:!0,email:!0,password:!0,number:!0,date:!0,month:!0,week:!0,time:!0,datetime:!0,"datetime-local":!0};function zo(e){const{type:t,tagName:r}=e;return!!(r==="INPUT"&&Fo[t]&&!e.readOnly||r==="TEXTAREA"&&!e.readOnly||e.isContentEditable)}function No(e){e.metaKey||e.altKey||e.ctrlKey||(ht=!0)}function Wt(){ht=!1}function Lo(){this.visibilityState==="hidden"&&qt&&(ht=!0)}function Do(e){e.addEventListener("keydown",No,!0),e.addEventListener("mousedown",Wt,!0),e.addEventListener("pointerdown",Wt,!0),e.addEventListener("touchstart",Wt,!0),e.addEventListener("visibilitychange",Lo,!0)}function Ko(e){const{target:t}=e;try{return t.matches(":focus-visible")}catch{}return ht||zo(t)}function $n(){const e=m.useCallback(o=>{o!=null&&Do(o.ownerDocument)},[]),t=m.useRef(!1);function r(){return t.current?(qt=!0,window.clearTimeout(jr),jr=window.setTimeout(()=>{qt=!1},100),t.current=!1,!0):!1}function n(o){return Ko(o)?(t.current=!0,!0):!1}return{isFocusVisibleRef:t,onFocus:n,onBlur:r,ref:e}}function Sn(e,t){const r=y({},t);return Object.keys(e).forEach(n=>{if(n.toString().match(/^(components|slots)$/))r[n]=y({},e[n],r[n]);else if(n.toString().match(/^(componentsProps|slotProps)$/)){const o=e[n]||{},s=t[n];r[n]={},!s||!Object.keys(s)?r[n]=o:!o||!Object.keys(o)?r[n]=s:(r[n]=y({},s),Object.keys(o).forEach(i=>{r[n][i]=Sn(o[i],s[i])}))}else r[n]===void 0&&(r[n]=e[n])}),r}function mt(e,t,r=void 0){const n={};return Object.keys(e).forEach(o=>{n[o]=e[o].reduce((s,i)=>{if(i){const a=t(i);a!==""&&s.push(a),r&&r[i]&&s.push(r[i])}return s},[]).join(" ")}),n}const Fr=e=>e,Wo=()=>{let e=Fr;return{configure(t){e=t},generate(t){return e(t)},reset(){e=Fr}}},Vo=Wo(),or=Vo,Uo={active:"active",checked:"checked",completed:"completed",disabled:"disabled",error:"error",expanded:"expanded",focused:"focused",focusVisible:"focusVisible",open:"open",readOnly:"readOnly",required:"required",selected:"selected"};function Le(e,t,r="Mui"){const n=Uo[t];return n?`${r}-${n}`:`${or.generate(e)}-${t}`}function De(e,t,r="Mui"){const n={};return t.forEach(o=>{n[o]=Le(e,o,r)}),n}const gt="$$material";function K(e,t){if(e==null)return{};var r={},n=Object.keys(e),o,s;for(s=0;s=0)&&(r[o]=e[o]);return r}function wn(e){var t=Object.create(null);return function(r){return t[r]===void 0&&(t[r]=e(r)),t[r]}}var Ho=/^((children|dangerouslySetInnerHTML|key|ref|autoFocus|defaultValue|defaultChecked|innerHTML|suppressContentEditableWarning|suppressHydrationWarning|valueLink|abbr|accept|acceptCharset|accessKey|action|allow|allowUserMedia|allowPaymentRequest|allowFullScreen|allowTransparency|alt|async|autoComplete|autoPlay|capture|cellPadding|cellSpacing|challenge|charSet|checked|cite|classID|className|cols|colSpan|content|contentEditable|contextMenu|controls|controlsList|coords|crossOrigin|data|dateTime|decoding|default|defer|dir|disabled|disablePictureInPicture|download|draggable|encType|enterKeyHint|form|formAction|formEncType|formMethod|formNoValidate|formTarget|frameBorder|headers|height|hidden|high|href|hrefLang|htmlFor|httpEquiv|id|inputMode|integrity|is|keyParams|keyType|kind|label|lang|list|loading|loop|low|marginHeight|marginWidth|max|maxLength|media|mediaGroup|method|min|minLength|multiple|muted|name|nonce|noValidate|open|optimum|pattern|placeholder|playsInline|poster|preload|profile|radioGroup|readOnly|referrerPolicy|rel|required|reversed|role|rows|rowSpan|sandbox|scope|scoped|scrolling|seamless|selected|shape|size|sizes|slot|span|spellCheck|src|srcDoc|srcLang|srcSet|start|step|style|summary|tabIndex|target|title|translate|type|useMap|value|width|wmode|wrap|about|datatype|inlist|prefix|property|resource|typeof|vocab|autoCapitalize|autoCorrect|autoSave|color|incremental|fallback|inert|itemProp|itemScope|itemType|itemID|itemRef|on|option|results|security|unselectable|accentHeight|accumulate|additive|alignmentBaseline|allowReorder|alphabetic|amplitude|arabicForm|ascent|attributeName|attributeType|autoReverse|azimuth|baseFrequency|baselineShift|baseProfile|bbox|begin|bias|by|calcMode|capHeight|clip|clipPathUnits|clipPath|clipRule|colorInterpolation|colorInterpolationFilters|colorProfile|colorRendering|contentScriptType|contentStyleType|cursor|cx|cy|d|decelerate|descent|diffuseConstant|direction|display|divisor|dominantBaseline|dur|dx|dy|edgeMode|elevation|enableBackground|end|exponent|externalResourcesRequired|fill|fillOpacity|fillRule|filter|filterRes|filterUnits|floodColor|floodOpacity|focusable|fontFamily|fontSize|fontSizeAdjust|fontStretch|fontStyle|fontVariant|fontWeight|format|from|fr|fx|fy|g1|g2|glyphName|glyphOrientationHorizontal|glyphOrientationVertical|glyphRef|gradientTransform|gradientUnits|hanging|horizAdvX|horizOriginX|ideographic|imageRendering|in|in2|intercept|k|k1|k2|k3|k4|kernelMatrix|kernelUnitLength|kerning|keyPoints|keySplines|keyTimes|lengthAdjust|letterSpacing|lightingColor|limitingConeAngle|local|markerEnd|markerMid|markerStart|markerHeight|markerUnits|markerWidth|mask|maskContentUnits|maskUnits|mathematical|mode|numOctaves|offset|opacity|operator|order|orient|orientation|origin|overflow|overlinePosition|overlineThickness|panose1|paintOrder|pathLength|patternContentUnits|patternTransform|patternUnits|pointerEvents|points|pointsAtX|pointsAtY|pointsAtZ|preserveAlpha|preserveAspectRatio|primitiveUnits|r|radius|refX|refY|renderingIntent|repeatCount|repeatDur|requiredExtensions|requiredFeatures|restart|result|rotate|rx|ry|scale|seed|shapeRendering|slope|spacing|specularConstant|specularExponent|speed|spreadMethod|startOffset|stdDeviation|stemh|stemv|stitchTiles|stopColor|stopOpacity|strikethroughPosition|strikethroughThickness|string|stroke|strokeDasharray|strokeDashoffset|strokeLinecap|strokeLinejoin|strokeMiterlimit|strokeOpacity|strokeWidth|surfaceScale|systemLanguage|tableValues|targetX|targetY|textAnchor|textDecoration|textRendering|textLength|to|transform|u1|u2|underlinePosition|underlineThickness|unicode|unicodeBidi|unicodeRange|unitsPerEm|vAlphabetic|vHanging|vIdeographic|vMathematical|values|vectorEffect|version|vertAdvY|vertOriginX|vertOriginY|viewBox|viewTarget|visibility|widths|wordSpacing|writingMode|x|xHeight|x1|x2|xChannelSelector|xlinkActuate|xlinkArcrole|xlinkHref|xlinkRole|xlinkShow|xlinkTitle|xlinkType|xmlBase|xmlns|xmlnsXlink|xmlLang|xmlSpace|y|y1|y2|yChannelSelector|z|zoomAndPan|for|class|autofocus)|(([Dd][Aa][Tt][Aa]|[Aa][Rr][Ii][Aa]|x)-.*))$/,Go=wn(function(e){return Ho.test(e)||e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&e.charCodeAt(2)<91});function qo(e){if(e.sheet)return e.sheet;for(var t=0;t0?D(Te,--G):0,Re--,z===10&&(Re=1,bt--),z}function J(){return z=G2||Fe(z)>3?"":" "}function as(e,t){for(;--t&&J()&&!(z<48||z>102||z>57&&z<65||z>70&&z<97););return Ke(e,Xe()+(t<6&&ue()==32&&J()==32))}function Yt(e){for(;J();)switch(z){case e:return G;case 34:case 39:e!==34&&e!==39&&Yt(z);break;case 40:e===41&&Yt(e);break;case 92:J();break}return G}function cs(e,t){for(;J()&&e+z!==47+10;)if(e+z===42+42&&ue()===47)break;return"/*"+Ke(t,G-1)+"*"+yt(e===47?e:J())}function us(e){for(;!Fe(ue());)J();return Ke(e,G)}function ls(e){return En(Je("",null,null,null,[""],e=Pn(e),0,[0],e))}function Je(e,t,r,n,o,s,i,a,c){for(var u=0,d=0,p=i,f=0,g=0,h=0,l=1,x=1,v=1,C=0,P="",b=o,R=s,E=n,$=P;x;)switch(h=C,C=J()){case 40:if(h!=108&&D($,p-1)==58){Xt($+=k(Ye(C),"&","&\f"),"&\f")!=-1&&(v=-1);break}case 34:case 39:case 91:$+=Ye(C);break;case 9:case 10:case 13:case 32:$+=is(h);break;case 92:$+=as(Xe()-1,7);continue;case 47:switch(ue()){case 42:case 47:qe(fs(cs(J(),Xe()),t,r),c);break;default:$+="/"}break;case 123*l:a[u++]=ie($)*v;case 125*l:case 59:case 0:switch(C){case 0:case 125:x=0;case 59+d:v==-1&&($=k($,/\f/g,"")),g>0&&ie($)-p&&qe(g>32?Nr($+";",n,r,p-1):Nr(k($," ","")+";",n,r,p-2),c);break;case 59:$+=";";default:if(qe(E=zr($,t,r,u,d,o,a,P,b=[],R=[],p),s),C===123)if(d===0)Je($,t,E,E,b,s,p,a,R);else switch(f===99&&D($,3)===110?100:f){case 100:case 108:case 109:case 115:Je(e,E,E,n&&qe(zr(e,E,E,0,0,o,a,P,o,b=[],p),R),o,R,p,a,n?b:R);break;default:Je($,E,E,E,[""],R,0,a,R)}}u=d=g=0,l=v=1,P=$="",p=i;break;case 58:p=1+ie($),g=h;default:if(l<1){if(C==123)--l;else if(C==125&&l++==0&&ss()==125)continue}switch($+=yt(C),C*l){case 38:v=d>0?1:($+="\f",-1);break;case 44:a[u++]=(ie($)-1)*v,v=1;break;case 64:ue()===45&&($+=Ye(J())),f=ue(),d=p=ie(P=$+=us(Xe())),C++;break;case 45:h===45&&ie($)==2&&(l=0)}}return s}function zr(e,t,r,n,o,s,i,a,c,u,d){for(var p=o-1,f=o===0?s:[""],g=ar(f),h=0,l=0,x=0;h0?f[v]+" "+C:k(C,/&\f/g,f[v])))&&(c[x++]=P);return vt(e,t,r,o===0?sr:a,c,u,d)}function fs(e,t,r){return vt(e,t,r,Cn,yt(os()),je(e,2,-2),0)}function Nr(e,t,r,n){return vt(e,t,r,ir,je(e,0,n),je(e,n+1,-1),n)}function Se(e,t){for(var r="",n=ar(e),o=0;o6)switch(D(e,t+1)){case 109:if(D(e,t+4)!==45)break;case 102:return k(e,/(.+:)(.+)-([^]+)/,"$1"+T+"$2-$3$1"+et+(D(e,t+3)==108?"$3":"$2-$3"))+e;case 115:return~Xt(e,"stretch")?On(k(e,"stretch","fill-available"),t)+e:e}break;case 4949:if(D(e,t+1)!==115)break;case 6444:switch(D(e,ie(e)-3-(~Xt(e,"!important")&&10))){case 107:return k(e,":",":"+T)+e;case 101:return k(e,/(.+:)([^;!]+)(;|!.+)?/,"$1"+T+(D(e,14)===45?"inline-":"")+"box$3$1"+T+"$2$3$1"+V+"$2box$3")+e}break;case 5936:switch(D(e,t+11)){case 114:return T+e+V+k(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return T+e+V+k(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return T+e+V+k(e,/[svh]\w+-[tblr]{2}/,"lr")+e}return T+e+V+e+e}return e}var xs=function(t,r,n,o){if(t.length>-1&&!t.return)switch(t.type){case ir:t.return=On(t.value,t.length);break;case Rn:return Se([Oe(t,{value:k(t.value,"@","@"+T)})],o);case sr:if(t.length)return ns(t.props,function(s){switch(rs(s,/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":return Se([Oe(t,{props:[k(s,/:(read-\w+)/,":"+et+"$1")]})],o);case"::placeholder":return Se([Oe(t,{props:[k(s,/:(plac\w+)/,":"+T+"input-$1")]}),Oe(t,{props:[k(s,/:(plac\w+)/,":"+et+"$1")]}),Oe(t,{props:[k(s,/:(plac\w+)/,V+"input-$1")]})],o)}return""})}},$s=[xs],Ss=function(t){var r=t.key;if(r==="css"){var n=document.querySelectorAll("style[data-emotion]:not([data-s])");Array.prototype.forEach.call(n,function(l){var x=l.getAttribute("data-emotion");x.indexOf(" ")!==-1&&(document.head.appendChild(l),l.setAttribute("data-s",""))})}var o=t.stylisPlugins||$s,s={},i,a=[];i=t.container||document.head,Array.prototype.forEach.call(document.querySelectorAll('style[data-emotion^="'+r+' "]'),function(l){for(var x=l.getAttribute("data-emotion").split(" "),v=1;v=4;++n,o-=4)r=e.charCodeAt(n)&255|(e.charCodeAt(++n)&255)<<8|(e.charCodeAt(++n)&255)<<16|(e.charCodeAt(++n)&255)<<24,r=(r&65535)*1540483477+((r>>>16)*59797<<16),r^=r>>>24,t=(r&65535)*1540483477+((r>>>16)*59797<<16)^(t&65535)*1540483477+((t>>>16)*59797<<16);switch(o){case 3:t^=(e.charCodeAt(n+2)&255)<<16;case 2:t^=(e.charCodeAt(n+1)&255)<<8;case 1:t^=e.charCodeAt(n)&255,t=(t&65535)*1540483477+((t>>>16)*59797<<16)}return t^=t>>>13,t=(t&65535)*1540483477+((t>>>16)*59797<<16),((t^t>>>15)>>>0).toString(36)}var Ls={animationIterationCount:1,aspectRatio:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1},Ds=/[A-Z]|^ms/g,Ks=/_EMO_([^_]+?)_([^]*?)_EMO_/g,Fn=function(t){return t.charCodeAt(1)===45},Vr=function(t){return t!=null&&typeof t!="boolean"},Vt=wn(function(e){return Fn(e)?e:e.replace(Ds,"-$&").toLowerCase()}),Ur=function(t,r){switch(t){case"animation":case"animationName":if(typeof r=="string")return r.replace(Ks,function(n,o,s){return ae={name:o,styles:s,next:ae},o})}return Ls[t]!==1&&!Fn(t)&&typeof r=="number"&&r!==0?r+"px":r};function ze(e,t,r){if(r==null)return"";if(r.__emotion_styles!==void 0)return r;switch(typeof r){case"boolean":return"";case"object":{if(r.anim===1)return ae={name:r.name,styles:r.styles,next:ae},r.name;if(r.styles!==void 0){var n=r.next;if(n!==void 0)for(;n!==void 0;)ae={name:n.name,styles:n.styles,next:ae},n=n.next;var o=r.styles+";";return o}return Ws(e,t,r)}case"function":{if(e!==void 0){var s=ae,i=r(e);return ae=s,ze(e,t,i)}break}}if(t==null)return r;var a=t[r];return a!==void 0?a:r}function Ws(e,t,r){var n="";if(Array.isArray(r))for(var o=0;o96?Gs:qs},Xr=function(t,r,n){var o;if(r){var s=r.shouldForwardProp;o=t.__emotion_forwardProp&&s?function(i){return t.__emotion_forwardProp(i)&&s(i)}:s}return typeof o!="function"&&n&&(o=t.__emotion_forwardProp),o},Xs=function(t){var r=t.cache,n=t.serialized,o=t.isStringTag;return Bn(r,n,o),Us(function(){return jn(r,n,o)}),null},Ys=function e(t,r){var n=t.__emotion_real===t,o=n&&t.__emotion_base||t,s,i;r!==void 0&&(s=r.label,i=r.target);var a=Xr(t,r,n),c=a||qr(o),u=!c("as");return function(){var d=arguments,p=n&&t.__emotion_styles!==void 0?t.__emotion_styles.slice(0):[];if(s!==void 0&&p.push("label:"+s+";"),d[0]==null||d[0].raw===void 0)p.push.apply(p,d);else{p.push(d[0][0]);for(var f=d.length,g=1;g{Array.isArray(e.__emotion_styles)&&(e.__emotion_styles=t(e.__emotion_styles))},Qs=["values","unit","step"],ei=e=>{const t=Object.keys(e).map(r=>({key:r,val:e[r]}))||[];return t.sort((r,n)=>r.val-n.val),t.reduce((r,n)=>y({},r,{[n.key]:n.val}),{})};function ti(e){const{values:t={xs:0,sm:600,md:900,lg:1200,xl:1536},unit:r="px",step:n=5}=e,o=K(e,Qs),s=ei(t),i=Object.keys(s);function a(f){return`@media (min-width:${typeof t[f]=="number"?t[f]:f}${r})`}function c(f){return`@media (max-width:${(typeof t[f]=="number"?t[f]:f)-n/100}${r})`}function u(f,g){const h=i.indexOf(g);return`@media (min-width:${typeof t[f]=="number"?t[f]:f}${r}) and (max-width:${(h!==-1&&typeof t[i[h]]=="number"?t[i[h]]:g)-n/100}${r})`}function d(f){return i.indexOf(f)+1`@media (min-width:${gr[e]}px)`};function de(e,t,r){const n=e.theme||{};if(Array.isArray(t)){const s=n.breakpoints||Yr;return t.reduce((i,a,c)=>(i[s.up(s.keys[c])]=r(t[c]),i),{})}if(typeof t=="object"){const s=n.breakpoints||Yr;return Object.keys(t).reduce((i,a)=>{if(Object.keys(s.values||gr).indexOf(a)!==-1){const c=s.up(a);i[c]=r(t[a],a)}else{const c=a;i[c]=t[c]}return i},{})}return r(t)}function Kn(e={}){var t;return((t=e.keys)==null?void 0:t.reduce((n,o)=>{const s=e.up(o);return n[s]={},n},{}))||{}}function Wn(e,t){return e.reduce((r,n)=>{const o=r[n];return(!o||Object.keys(o).length===0)&&delete r[n],r},t)}function du(e,...t){const r=Kn(e),n=[r,...t].reduce((o,s)=>te(o,s),{});return Wn(Object.keys(r),n)}function oi(e,t){if(typeof e!="object")return{};const r={},n=Object.keys(t);return Array.isArray(e)?n.forEach((o,s)=>{s{e[o]!=null&&(r[o]=!0)}),r}function pu({values:e,breakpoints:t,base:r}){const n=r||oi(e,t),o=Object.keys(n);if(o.length===0)return e;let s;return o.reduce((i,a,c)=>(Array.isArray(e)?(i[a]=e[c]!=null?e[c]:e[s],s=c):typeof e=="object"?(i[a]=e[a]!=null?e[a]:e[s],s=a):i[a]=e,i),{})}function Ot(e,t,r=!0){if(!t||typeof t!="string")return null;if(e&&e.vars&&r){const n=`vars.${t}`.split(".").reduce((o,s)=>o&&o[s]?o[s]:null,e);if(n!=null)return n}return t.split(".").reduce((n,o)=>n&&n[o]!=null?n[o]:null,e)}function tt(e,t,r,n=r){let o;return typeof e=="function"?o=e(r):Array.isArray(e)?o=e[r]||n:o=Ot(e,r)||n,t&&(o=t(o,n,e)),o}function O(e){const{prop:t,cssProperty:r=e.prop,themeKey:n,transform:o}=e,s=i=>{if(i[t]==null)return null;const a=i[t],c=i.theme,u=Ot(c,n)||{};return de(i,a,p=>{let f=tt(u,o,p);return p===f&&typeof p=="string"&&(f=tt(u,o,`${t}${p==="default"?"":N(p)}`,p)),r===!1?f:{[r]:f}})};return s.propTypes={},s.filterProps=[t],s}function si(e){const t={};return r=>(t[r]===void 0&&(t[r]=e(r)),t[r])}const ii={m:"margin",p:"padding"},ai={t:"Top",r:"Right",b:"Bottom",l:"Left",x:["Left","Right"],y:["Top","Bottom"]},Jr={marginX:"mx",marginY:"my",paddingX:"px",paddingY:"py"},ci=si(e=>{if(e.length>2)if(Jr[e])e=Jr[e];else return[e];const[t,r]=e.split(""),n=ii[t],o=ai[r]||"";return Array.isArray(o)?o.map(s=>n+s):[n+o]}),yr=["m","mt","mr","mb","ml","mx","my","margin","marginTop","marginRight","marginBottom","marginLeft","marginX","marginY","marginInline","marginInlineStart","marginInlineEnd","marginBlock","marginBlockStart","marginBlockEnd"],br=["p","pt","pr","pb","pl","px","py","padding","paddingTop","paddingRight","paddingBottom","paddingLeft","paddingX","paddingY","paddingInline","paddingInlineStart","paddingInlineEnd","paddingBlock","paddingBlockStart","paddingBlockEnd"];[...yr,...br];function We(e,t,r,n){var o;const s=(o=Ot(e,t,!1))!=null?o:r;return typeof s=="number"?i=>typeof i=="string"?i:s*i:Array.isArray(s)?i=>typeof i=="string"?i:s[i]:typeof s=="function"?s:()=>{}}function Vn(e){return We(e,"spacing",8)}function Ve(e,t){if(typeof t=="string"||t==null)return t;const r=Math.abs(t),n=e(r);return t>=0?n:typeof n=="number"?-n:`-${n}`}function ui(e,t){return r=>e.reduce((n,o)=>(n[o]=Ve(t,r),n),{})}function li(e,t,r,n){if(t.indexOf(r)===-1)return null;const o=ci(r),s=ui(o,n),i=e[r];return de(e,i,s)}function Un(e,t){const r=Vn(e.theme);return Object.keys(e).map(n=>li(e,t,n,r)).reduce(Ie,{})}function B(e){return Un(e,yr)}B.propTypes={};B.filterProps=yr;function j(e){return Un(e,br)}j.propTypes={};j.filterProps=br;function fi(e=8){if(e.mui)return e;const t=Vn({spacing:e}),r=(...n)=>(n.length===0?[1]:n).map(s=>{const i=t(s);return typeof i=="number"?`${i}px`:i}).join(" ");return r.mui=!0,r}function _t(...e){const t=e.reduce((n,o)=>(o.filterProps.forEach(s=>{n[s]=o}),n),{}),r=n=>Object.keys(n).reduce((o,s)=>t[s]?Ie(o,t[s](n)):o,{});return r.propTypes={},r.filterProps=e.reduce((n,o)=>n.concat(o.filterProps),[]),r}function ce(e){return typeof e!="number"?e:`${e}px solid`}const di=O({prop:"border",themeKey:"borders",transform:ce}),pi=O({prop:"borderTop",themeKey:"borders",transform:ce}),hi=O({prop:"borderRight",themeKey:"borders",transform:ce}),mi=O({prop:"borderBottom",themeKey:"borders",transform:ce}),gi=O({prop:"borderLeft",themeKey:"borders",transform:ce}),yi=O({prop:"borderColor",themeKey:"palette"}),bi=O({prop:"borderTopColor",themeKey:"palette"}),vi=O({prop:"borderRightColor",themeKey:"palette"}),xi=O({prop:"borderBottomColor",themeKey:"palette"}),$i=O({prop:"borderLeftColor",themeKey:"palette"}),At=e=>{if(e.borderRadius!==void 0&&e.borderRadius!==null){const t=We(e.theme,"shape.borderRadius",4),r=n=>({borderRadius:Ve(t,n)});return de(e,e.borderRadius,r)}return null};At.propTypes={};At.filterProps=["borderRadius"];_t(di,pi,hi,mi,gi,yi,bi,vi,xi,$i,At);const Mt=e=>{if(e.gap!==void 0&&e.gap!==null){const t=We(e.theme,"spacing",8),r=n=>({gap:Ve(t,n)});return de(e,e.gap,r)}return null};Mt.propTypes={};Mt.filterProps=["gap"];const It=e=>{if(e.columnGap!==void 0&&e.columnGap!==null){const t=We(e.theme,"spacing",8),r=n=>({columnGap:Ve(t,n)});return de(e,e.columnGap,r)}return null};It.propTypes={};It.filterProps=["columnGap"];const Bt=e=>{if(e.rowGap!==void 0&&e.rowGap!==null){const t=We(e.theme,"spacing",8),r=n=>({rowGap:Ve(t,n)});return de(e,e.rowGap,r)}return null};Bt.propTypes={};Bt.filterProps=["rowGap"];const Si=O({prop:"gridColumn"}),wi=O({prop:"gridRow"}),Ci=O({prop:"gridAutoFlow"}),Ri=O({prop:"gridAutoColumns"}),Ti=O({prop:"gridAutoRows"}),ki=O({prop:"gridTemplateColumns"}),Pi=O({prop:"gridTemplateRows"}),Ei=O({prop:"gridTemplateAreas"}),Oi=O({prop:"gridArea"});_t(Mt,It,Bt,Si,wi,Ci,Ri,Ti,ki,Pi,Ei,Oi);function we(e,t){return t==="grey"?t:e}const _i=O({prop:"color",themeKey:"palette",transform:we}),Ai=O({prop:"bgcolor",cssProperty:"backgroundColor",themeKey:"palette",transform:we}),Mi=O({prop:"backgroundColor",themeKey:"palette",transform:we});_t(_i,Ai,Mi);function X(e){return e<=1&&e!==0?`${e*100}%`:e}const Ii=O({prop:"width",transform:X}),vr=e=>{if(e.maxWidth!==void 0&&e.maxWidth!==null){const t=r=>{var n,o;const s=((n=e.theme)==null||(n=n.breakpoints)==null||(n=n.values)==null?void 0:n[r])||gr[r];return s?((o=e.theme)==null||(o=o.breakpoints)==null?void 0:o.unit)!=="px"?{maxWidth:`${s}${e.theme.breakpoints.unit}`}:{maxWidth:s}:{maxWidth:X(r)}};return de(e,e.maxWidth,t)}return null};vr.filterProps=["maxWidth"];const Bi=O({prop:"minWidth",transform:X}),ji=O({prop:"height",transform:X}),Fi=O({prop:"maxHeight",transform:X}),zi=O({prop:"minHeight",transform:X});O({prop:"size",cssProperty:"width",transform:X});O({prop:"size",cssProperty:"height",transform:X});const Ni=O({prop:"boxSizing"});_t(Ii,vr,Bi,ji,Fi,zi,Ni);const Li={border:{themeKey:"borders",transform:ce},borderTop:{themeKey:"borders",transform:ce},borderRight:{themeKey:"borders",transform:ce},borderBottom:{themeKey:"borders",transform:ce},borderLeft:{themeKey:"borders",transform:ce},borderColor:{themeKey:"palette"},borderTopColor:{themeKey:"palette"},borderRightColor:{themeKey:"palette"},borderBottomColor:{themeKey:"palette"},borderLeftColor:{themeKey:"palette"},borderRadius:{themeKey:"shape.borderRadius",style:At},color:{themeKey:"palette",transform:we},bgcolor:{themeKey:"palette",cssProperty:"backgroundColor",transform:we},backgroundColor:{themeKey:"palette",transform:we},p:{style:j},pt:{style:j},pr:{style:j},pb:{style:j},pl:{style:j},px:{style:j},py:{style:j},padding:{style:j},paddingTop:{style:j},paddingRight:{style:j},paddingBottom:{style:j},paddingLeft:{style:j},paddingX:{style:j},paddingY:{style:j},paddingInline:{style:j},paddingInlineStart:{style:j},paddingInlineEnd:{style:j},paddingBlock:{style:j},paddingBlockStart:{style:j},paddingBlockEnd:{style:j},m:{style:B},mt:{style:B},mr:{style:B},mb:{style:B},ml:{style:B},mx:{style:B},my:{style:B},margin:{style:B},marginTop:{style:B},marginRight:{style:B},marginBottom:{style:B},marginLeft:{style:B},marginX:{style:B},marginY:{style:B},marginInline:{style:B},marginInlineStart:{style:B},marginInlineEnd:{style:B},marginBlock:{style:B},marginBlockStart:{style:B},marginBlockEnd:{style:B},displayPrint:{cssProperty:!1,transform:e=>({"@media print":{display:e}})},display:{},overflow:{},textOverflow:{},visibility:{},whiteSpace:{},flexBasis:{},flexDirection:{},flexWrap:{},justifyContent:{},alignItems:{},alignContent:{},order:{},flex:{},flexGrow:{},flexShrink:{},alignSelf:{},justifyItems:{},justifySelf:{},gap:{style:Mt},rowGap:{style:Bt},columnGap:{style:It},gridColumn:{},gridRow:{},gridAutoFlow:{},gridAutoColumns:{},gridAutoRows:{},gridTemplateColumns:{},gridTemplateRows:{},gridTemplateAreas:{},gridArea:{},position:{},zIndex:{themeKey:"zIndex"},top:{},right:{},bottom:{},left:{},boxShadow:{themeKey:"shadows"},width:{transform:X},maxWidth:{style:vr},minWidth:{transform:X},height:{transform:X},maxHeight:{transform:X},minHeight:{transform:X},boxSizing:{},fontFamily:{themeKey:"typography"},fontSize:{themeKey:"typography"},fontStyle:{themeKey:"typography"},fontWeight:{themeKey:"typography"},letterSpacing:{},textTransform:{},lineHeight:{},textAlign:{},typography:{cssProperty:!1,themeKey:"typography"}},jt=Li;function Di(...e){const t=e.reduce((n,o)=>n.concat(Object.keys(o)),[]),r=new Set(t);return e.every(n=>r.size===Object.keys(n).length)}function Ki(e,t){return typeof e=="function"?e(t):e}function Wi(){function e(r,n,o,s){const i={[r]:n,theme:o},a=s[r];if(!a)return{[r]:n};const{cssProperty:c=r,themeKey:u,transform:d,style:p}=a;if(n==null)return null;if(u==="typography"&&n==="inherit")return{[r]:n};const f=Ot(o,u)||{};return p?p(i):de(i,n,h=>{let l=tt(f,d,h);return h===l&&typeof h=="string"&&(l=tt(f,d,`${r}${h==="default"?"":N(h)}`,h)),c===!1?l:{[c]:l}})}function t(r){var n;const{sx:o,theme:s={}}=r||{};if(!o)return null;const i=(n=s.unstable_sxConfig)!=null?n:jt;function a(c){let u=c;if(typeof c=="function")u=c(s);else if(typeof c!="object")return c;if(!u)return null;const d=Kn(s.breakpoints),p=Object.keys(d);let f=d;return Object.keys(u).forEach(g=>{const h=Ki(u[g],s);if(h!=null)if(typeof h=="object")if(i[g])f=Ie(f,e(g,h,s,i));else{const l=de({theme:s},h,x=>({[g]:x}));Di(l,h)?f[g]=t({sx:h,theme:s}):f=Ie(f,l)}else f=Ie(f,e(g,h,s,i))}),Wn(p,f)}return Array.isArray(o)?o.map(a):a(o)}return t}const Hn=Wi();Hn.filterProps=["sx"];const Ft=Hn,Vi=["breakpoints","palette","spacing","shape"];function xr(e={},...t){const{breakpoints:r={},palette:n={},spacing:o,shape:s={}}=e,i=K(e,Vi),a=ti(r),c=fi(o);let u=te({breakpoints:a,direction:"ltr",components:{},palette:y({mode:"light"},n),spacing:c,shape:y({},ni,s)},i);return u=t.reduce((d,p)=>te(d,p),u),u.unstable_sxConfig=y({},jt,i==null?void 0:i.unstable_sxConfig),u.unstable_sx=function(p){return Ft({sx:p,theme:this})},u}function Ui(e){return Object.keys(e).length===0}function Hi(e=null){const t=m.useContext(hr);return!t||Ui(t)?e:t}const Gi=xr();function $r(e=Gi){return Hi(e)}const qi=["sx"],Xi=e=>{var t,r;const n={systemProps:{},otherProps:{}},o=(t=e==null||(r=e.theme)==null?void 0:r.unstable_sxConfig)!=null?t:jt;return Object.keys(e).forEach(s=>{o[s]?n.systemProps[s]=e[s]:n.otherProps[s]=e[s]}),n};function Gn(e){const{sx:t}=e,r=K(e,qi),{systemProps:n,otherProps:o}=Xi(r);let s;return Array.isArray(t)?s=[n,...t]:typeof t=="function"?s=(...i)=>{const a=t(...i);return fe(a)?y({},n,a):n}:s=y({},n,t),y({},o,{sx:s})}function qn(e){var t,r,n="";if(typeof e=="string"||typeof e=="number")n+=e;else if(typeof e=="object")if(Array.isArray(e))for(t=0;ta!=="theme"&&a!=="sx"&&a!=="as"})(Ft);return m.forwardRef(function(c,u){const d=$r(r),p=Gn(c),{className:f,component:g="div"}=p,h=K(p,Yi);return Y.jsx(s,y({as:g,ref:u,className:U(f,o?o(n):n),theme:t&&d[t]||d},h))})}const Zi=["variant"];function Zr(e){return e.length===0}function Xn(e){const{variant:t}=e,r=K(e,Zi);let n=t||"";return Object.keys(r).sort().forEach(o=>{o==="color"?n+=Zr(n)?e[o]:N(e[o]):n+=`${Zr(n)?o:N(o)}${N(e[o].toString())}`}),n}const Qi=["name","slot","skipVariantsResolver","skipSx","overridesResolver"];function ea(e){return Object.keys(e).length===0}function ta(e){return typeof e=="string"&&e.charCodeAt(0)>96}const ra=(e,t)=>t.components&&t.components[e]&&t.components[e].styleOverrides?t.components[e].styleOverrides:null,rt=e=>{const t={};return e&&e.forEach(r=>{const n=Xn(r.props);t[n]=r.style}),t},na=(e,t)=>{let r=[];return t&&t.components&&t.components[e]&&t.components[e].variants&&(r=t.components[e].variants),rt(r)},nt=(e,t,r)=>{const{ownerState:n={}}=e,o=[];return r&&r.forEach(s=>{let i=!0;Object.keys(s.props).forEach(a=>{n[a]!==s.props[a]&&e[a]!==s.props[a]&&(i=!1)}),i&&o.push(t[Xn(s.props)])}),o},oa=(e,t,r,n)=>{var o;const s=r==null||(o=r.components)==null||(o=o[n])==null?void 0:o.variants;return nt(e,t,s)};function Be(e){return e!=="ownerState"&&e!=="theme"&&e!=="sx"&&e!=="as"}const sa=xr(),ia=e=>e&&e.charAt(0).toLowerCase()+e.slice(1);function Ze({defaultTheme:e,theme:t,themeId:r}){return ea(t)?e:t[r]||t}function aa(e){return e?(t,r)=>r[e]:null}const Qr=({styledArg:e,props:t,defaultTheme:r,themeId:n})=>{const o=e(y({},t,{theme:Ze(y({},t,{defaultTheme:r,themeId:n}))}));let s;if(o&&o.variants&&(s=o.variants,delete o.variants),s){const i=nt(t,rt(s),s);return[o,...i]}return o};function ca(e={}){const{themeId:t,defaultTheme:r=sa,rootShouldForwardProp:n=Be,slotShouldForwardProp:o=Be}=e,s=i=>Ft(y({},i,{theme:Ze(y({},i,{defaultTheme:r,themeId:t}))}));return s.__mui_systemSx=!0,(i,a={})=>{Zs(i,b=>b.filter(R=>!(R!=null&&R.__mui_systemSx)));const{name:c,slot:u,skipVariantsResolver:d,skipSx:p,overridesResolver:f=aa(ia(u))}=a,g=K(a,Qi),h=d!==void 0?d:u&&u!=="Root"&&u!=="root"||!1,l=p||!1;let x,v=Be;u==="Root"||u==="root"?v=n:u?v=o:ta(i)&&(v=void 0);const C=Dn(i,y({shouldForwardProp:v,label:x},g)),P=(b,...R)=>{const E=R?R.map(S=>{if(typeof S=="function"&&S.__emotion_real!==S)return I=>Qr({styledArg:S,props:I,defaultTheme:r,themeId:t});if(fe(S)){let I=S,F;return S&&S.variants&&(F=S.variants,delete I.variants,I=H=>{let W=S;return nt(H,rt(F),F).forEach(oe=>{W=te(W,oe)}),W}),I}return S}):[];let $=b;if(fe(b)){let S;b&&b.variants&&(S=b.variants,delete $.variants,$=I=>{let F=b;return nt(I,rt(S),S).forEach(W=>{F=te(F,W)}),F})}else typeof b=="function"&&b.__emotion_real!==b&&($=S=>Qr({styledArg:b,props:S,defaultTheme:r,themeId:t}));c&&f&&E.push(S=>{const I=Ze(y({},S,{defaultTheme:r,themeId:t})),F=ra(c,I);if(F){const H={};return Object.entries(F).forEach(([W,Q])=>{H[W]=typeof Q=="function"?Q(y({},S,{theme:I})):Q}),f(S,H)}return null}),c&&!h&&E.push(S=>{const I=Ze(y({},S,{defaultTheme:r,themeId:t}));return oa(S,na(c,I),I,c)}),l||E.push(s);const ne=E.length-R.length;if(Array.isArray(b)&&ne>0){const S=new Array(ne).fill("");$=[...b,...S],$.raw=[...b.raw,...S]}const q=C($,...E);return i.muiName&&(q.muiName=i.muiName),q};return C.withConfig&&(P.withConfig=C.withConfig),P}}function ua(e){const{theme:t,name:r,props:n}=e;return!t||!t.components||!t.components[r]||!t.components[r].defaultProps?n:Sn(t.components[r].defaultProps,n)}function la({props:e,name:t,defaultTheme:r,themeId:n}){let o=$r(r);return n&&(o=o[n]||o),ua({theme:o,name:t,props:e})}function Sr(e,t=0,r=1){return Math.min(Math.max(t,e),r)}function fa(e){e=e.slice(1);const t=new RegExp(`.{1,${e.length>=6?2:1}}`,"g");let r=e.match(t);return r&&r[0].length===1&&(r=r.map(n=>n+n)),r?`rgb${r.length===4?"a":""}(${r.map((n,o)=>o<3?parseInt(n,16):Math.round(parseInt(n,16)/255*1e3)/1e3).join(", ")})`:""}function da(e){const t=e.toString(16);return t.length===1?`0${t}`:t}function pe(e){if(e.type)return e;if(e.charAt(0)==="#")return pe(fa(e));const t=e.indexOf("("),r=e.substring(0,t);if(["rgb","rgba","hsl","hsla","color"].indexOf(r)===-1)throw new Error(Ce(9,e));let n=e.substring(t+1,e.length-1),o;if(r==="color"){if(n=n.split(" "),o=n.shift(),n.length===4&&n[3].charAt(0)==="/"&&(n[3]=n[3].slice(1)),["srgb","display-p3","a98-rgb","prophoto-rgb","rec-2020"].indexOf(o)===-1)throw new Error(Ce(10,o))}else n=n.split(",");return n=n.map(s=>parseFloat(s)),{type:r,values:n,colorSpace:o}}const pa=e=>{const t=pe(e);return t.values.slice(0,3).map((r,n)=>t.type.indexOf("hsl")!==-1&&n!==0?`${r}%`:r).join(" ")},hu=(e,t)=>{try{return pa(e)}catch{return e}};function zt(e){const{type:t,colorSpace:r}=e;let{values:n}=e;return t.indexOf("rgb")!==-1?n=n.map((o,s)=>s<3?parseInt(o,10):o):t.indexOf("hsl")!==-1&&(n[1]=`${n[1]}%`,n[2]=`${n[2]}%`),t.indexOf("color")!==-1?n=`${r} ${n.join(" ")}`:n=`${n.join(", ")}`,`${t}(${n})`}function mu(e){if(e.indexOf("#")===0)return e;const{values:t}=pe(e);return`#${t.map((r,n)=>da(n===3?Math.round(255*r):r)).join("")}`}function ha(e){e=pe(e);const{values:t}=e,r=t[0],n=t[1]/100,o=t[2]/100,s=n*Math.min(o,1-o),i=(u,d=(u+r/30)%12)=>o-s*Math.max(Math.min(d-3,9-d,1),-1);let a="rgb";const c=[Math.round(i(0)*255),Math.round(i(8)*255),Math.round(i(4)*255)];return e.type==="hsla"&&(a+="a",c.push(t[3])),zt({type:a,values:c})}function Zt(e){e=pe(e);let t=e.type==="hsl"||e.type==="hsla"?pe(ha(e)).values:e.values;return t=t.map(r=>(e.type!=="color"&&(r/=255),r<=.03928?r/12.92:((r+.055)/1.055)**2.4)),Number((.2126*t[0]+.7152*t[1]+.0722*t[2]).toFixed(3))}function ma(e,t){const r=Zt(e),n=Zt(t);return(Math.max(r,n)+.05)/(Math.min(r,n)+.05)}function Qt(e,t){return e=pe(e),t=Sr(t),(e.type==="rgb"||e.type==="hsl")&&(e.type+="a"),e.type==="color"?e.values[3]=`/${t}`:e.values[3]=t,zt(e)}function gu(e,t,r){try{return Qt(e,t)}catch{return e}}function wr(e,t){if(e=pe(e),t=Sr(t),e.type.indexOf("hsl")!==-1)e.values[2]*=1-t;else if(e.type.indexOf("rgb")!==-1||e.type.indexOf("color")!==-1)for(let r=0;r<3;r+=1)e.values[r]*=1-t;return zt(e)}function yu(e,t,r){try{return wr(e,t)}catch{return e}}function Cr(e,t){if(e=pe(e),t=Sr(t),e.type.indexOf("hsl")!==-1)e.values[2]+=(100-e.values[2])*t;else if(e.type.indexOf("rgb")!==-1)for(let r=0;r<3;r+=1)e.values[r]+=(255-e.values[r])*t;else if(e.type.indexOf("color")!==-1)for(let r=0;r<3;r+=1)e.values[r]+=(1-e.values[r])*t;return zt(e)}function bu(e,t,r){try{return Cr(e,t)}catch{return e}}function vu(e,t=.15){return Zt(e)>.5?wr(e,t):Cr(e,t)}function ga(e,t,r){try{return ga(e,t)}catch{return e}}function ya(e,t){return y({toolbar:{minHeight:56,[e.up("xs")]:{"@media (orientation: landscape)":{minHeight:48}},[e.up("sm")]:{minHeight:64}}},t)}const ba={black:"#000",white:"#fff"},Ne=ba,va={50:"#fafafa",100:"#f5f5f5",200:"#eeeeee",300:"#e0e0e0",400:"#bdbdbd",500:"#9e9e9e",600:"#757575",700:"#616161",800:"#424242",900:"#212121",A100:"#f5f5f5",A200:"#eeeeee",A400:"#bdbdbd",A700:"#616161"},xa=va,$a={50:"#f3e5f5",100:"#e1bee7",200:"#ce93d8",300:"#ba68c8",400:"#ab47bc",500:"#9c27b0",600:"#8e24aa",700:"#7b1fa2",800:"#6a1b9a",900:"#4a148c",A100:"#ea80fc",A200:"#e040fb",A400:"#d500f9",A700:"#aa00ff"},ye=$a,Sa={50:"#ffebee",100:"#ffcdd2",200:"#ef9a9a",300:"#e57373",400:"#ef5350",500:"#f44336",600:"#e53935",700:"#d32f2f",800:"#c62828",900:"#b71c1c",A100:"#ff8a80",A200:"#ff5252",A400:"#ff1744",A700:"#d50000"},be=Sa,wa={50:"#fff3e0",100:"#ffe0b2",200:"#ffcc80",300:"#ffb74d",400:"#ffa726",500:"#ff9800",600:"#fb8c00",700:"#f57c00",800:"#ef6c00",900:"#e65100",A100:"#ffd180",A200:"#ffab40",A400:"#ff9100",A700:"#ff6d00"},_e=wa,Ca={50:"#e3f2fd",100:"#bbdefb",200:"#90caf9",300:"#64b5f6",400:"#42a5f5",500:"#2196f3",600:"#1e88e5",700:"#1976d2",800:"#1565c0",900:"#0d47a1",A100:"#82b1ff",A200:"#448aff",A400:"#2979ff",A700:"#2962ff"},ve=Ca,Ra={50:"#e1f5fe",100:"#b3e5fc",200:"#81d4fa",300:"#4fc3f7",400:"#29b6f6",500:"#03a9f4",600:"#039be5",700:"#0288d1",800:"#0277bd",900:"#01579b",A100:"#80d8ff",A200:"#40c4ff",A400:"#00b0ff",A700:"#0091ea"},xe=Ra,Ta={50:"#e8f5e9",100:"#c8e6c9",200:"#a5d6a7",300:"#81c784",400:"#66bb6a",500:"#4caf50",600:"#43a047",700:"#388e3c",800:"#2e7d32",900:"#1b5e20",A100:"#b9f6ca",A200:"#69f0ae",A400:"#00e676",A700:"#00c853"},$e=Ta,ka=["mode","contrastThreshold","tonalOffset"],en={text:{primary:"rgba(0, 0, 0, 0.87)",secondary:"rgba(0, 0, 0, 0.6)",disabled:"rgba(0, 0, 0, 0.38)"},divider:"rgba(0, 0, 0, 0.12)",background:{paper:Ne.white,default:Ne.white},action:{active:"rgba(0, 0, 0, 0.54)",hover:"rgba(0, 0, 0, 0.04)",hoverOpacity:.04,selected:"rgba(0, 0, 0, 0.08)",selectedOpacity:.08,disabled:"rgba(0, 0, 0, 0.26)",disabledBackground:"rgba(0, 0, 0, 0.12)",disabledOpacity:.38,focus:"rgba(0, 0, 0, 0.12)",focusOpacity:.12,activatedOpacity:.12}},Ut={text:{primary:Ne.white,secondary:"rgba(255, 255, 255, 0.7)",disabled:"rgba(255, 255, 255, 0.5)",icon:"rgba(255, 255, 255, 0.5)"},divider:"rgba(255, 255, 255, 0.12)",background:{paper:"#121212",default:"#121212"},action:{active:Ne.white,hover:"rgba(255, 255, 255, 0.08)",hoverOpacity:.08,selected:"rgba(255, 255, 255, 0.16)",selectedOpacity:.16,disabled:"rgba(255, 255, 255, 0.3)",disabledBackground:"rgba(255, 255, 255, 0.12)",disabledOpacity:.38,focus:"rgba(255, 255, 255, 0.12)",focusOpacity:.12,activatedOpacity:.24}};function tn(e,t,r,n){const o=n.light||n,s=n.dark||n*1.5;e[t]||(e.hasOwnProperty(r)?e[t]=e[r]:t==="light"?e.light=Cr(e.main,o):t==="dark"&&(e.dark=wr(e.main,s)))}function Pa(e="light"){return e==="dark"?{main:ve[200],light:ve[50],dark:ve[400]}:{main:ve[700],light:ve[400],dark:ve[800]}}function Ea(e="light"){return e==="dark"?{main:ye[200],light:ye[50],dark:ye[400]}:{main:ye[500],light:ye[300],dark:ye[700]}}function Oa(e="light"){return e==="dark"?{main:be[500],light:be[300],dark:be[700]}:{main:be[700],light:be[400],dark:be[800]}}function _a(e="light"){return e==="dark"?{main:xe[400],light:xe[300],dark:xe[700]}:{main:xe[700],light:xe[500],dark:xe[900]}}function Aa(e="light"){return e==="dark"?{main:$e[400],light:$e[300],dark:$e[700]}:{main:$e[800],light:$e[500],dark:$e[900]}}function Ma(e="light"){return e==="dark"?{main:_e[400],light:_e[300],dark:_e[700]}:{main:"#ed6c02",light:_e[500],dark:_e[900]}}function Ia(e){const{mode:t="light",contrastThreshold:r=3,tonalOffset:n=.2}=e,o=K(e,ka),s=e.primary||Pa(t),i=e.secondary||Ea(t),a=e.error||Oa(t),c=e.info||_a(t),u=e.success||Aa(t),d=e.warning||Ma(t);function p(l){return ma(l,Ut.text.primary)>=r?Ut.text.primary:en.text.primary}const f=({color:l,name:x,mainShade:v=500,lightShade:C=300,darkShade:P=700})=>{if(l=y({},l),!l.main&&l[v]&&(l.main=l[v]),!l.hasOwnProperty("main"))throw new Error(Ce(11,x?` (${x})`:"",v));if(typeof l.main!="string")throw new Error(Ce(12,x?` (${x})`:"",JSON.stringify(l.main)));return tn(l,"light",C,n),tn(l,"dark",P,n),l.contrastText||(l.contrastText=p(l.main)),l},g={dark:Ut,light:en};return te(y({common:y({},Ne),mode:t,primary:f({color:s,name:"primary"}),secondary:f({color:i,name:"secondary",mainShade:"A400",lightShade:"A200",darkShade:"A700"}),error:f({color:a,name:"error"}),warning:f({color:d,name:"warning"}),info:f({color:c,name:"info"}),success:f({color:u,name:"success"}),grey:xa,contrastThreshold:r,getContrastText:p,augmentColor:f,tonalOffset:n},g[t]),o)}const Ba=["fontFamily","fontSize","fontWeightLight","fontWeightRegular","fontWeightMedium","fontWeightBold","htmlFontSize","allVariants","pxToRem"];function ja(e){return Math.round(e*1e5)/1e5}const rn={textTransform:"uppercase"},nn='"Roboto", "Helvetica", "Arial", sans-serif';function Fa(e,t){const r=typeof t=="function"?t(e):t,{fontFamily:n=nn,fontSize:o=14,fontWeightLight:s=300,fontWeightRegular:i=400,fontWeightMedium:a=500,fontWeightBold:c=700,htmlFontSize:u=16,allVariants:d,pxToRem:p}=r,f=K(r,Ba),g=o/14,h=p||(v=>`${v/u*g}rem`),l=(v,C,P,b,R)=>y({fontFamily:n,fontWeight:v,fontSize:h(C),lineHeight:P},n===nn?{letterSpacing:`${ja(b/C)}em`}:{},R,d),x={h1:l(s,96,1.167,-1.5),h2:l(s,60,1.2,-.5),h3:l(i,48,1.167,0),h4:l(i,34,1.235,.25),h5:l(i,24,1.334,0),h6:l(a,20,1.6,.15),subtitle1:l(i,16,1.75,.15),subtitle2:l(a,14,1.57,.1),body1:l(i,16,1.5,.15),body2:l(i,14,1.43,.15),button:l(a,14,1.75,.4,rn),caption:l(i,12,1.66,.4),overline:l(i,12,2.66,1,rn),inherit:{fontFamily:"inherit",fontWeight:"inherit",fontSize:"inherit",lineHeight:"inherit",letterSpacing:"inherit"}};return te(y({htmlFontSize:u,pxToRem:h,fontFamily:n,fontSize:o,fontWeightLight:s,fontWeightRegular:i,fontWeightMedium:a,fontWeightBold:c},x),f,{clone:!1})}const za=.2,Na=.14,La=.12;function M(...e){return[`${e[0]}px ${e[1]}px ${e[2]}px ${e[3]}px rgba(0,0,0,${za})`,`${e[4]}px ${e[5]}px ${e[6]}px ${e[7]}px rgba(0,0,0,${Na})`,`${e[8]}px ${e[9]}px ${e[10]}px ${e[11]}px rgba(0,0,0,${La})`].join(",")}const Da=["none",M(0,2,1,-1,0,1,1,0,0,1,3,0),M(0,3,1,-2,0,2,2,0,0,1,5,0),M(0,3,3,-2,0,3,4,0,0,1,8,0),M(0,2,4,-1,0,4,5,0,0,1,10,0),M(0,3,5,-1,0,5,8,0,0,1,14,0),M(0,3,5,-1,0,6,10,0,0,1,18,0),M(0,4,5,-2,0,7,10,1,0,2,16,1),M(0,5,5,-3,0,8,10,1,0,3,14,2),M(0,5,6,-3,0,9,12,1,0,3,16,2),M(0,6,6,-3,0,10,14,1,0,4,18,3),M(0,6,7,-4,0,11,15,1,0,4,20,3),M(0,7,8,-4,0,12,17,2,0,5,22,4),M(0,7,8,-4,0,13,19,2,0,5,24,4),M(0,7,9,-4,0,14,21,2,0,5,26,4),M(0,8,9,-5,0,15,22,2,0,6,28,5),M(0,8,10,-5,0,16,24,2,0,6,30,5),M(0,8,11,-5,0,17,26,2,0,6,32,5),M(0,9,11,-5,0,18,28,2,0,7,34,6),M(0,9,12,-6,0,19,29,2,0,7,36,6),M(0,10,13,-6,0,20,31,3,0,8,38,7),M(0,10,13,-6,0,21,33,3,0,8,40,7),M(0,10,14,-6,0,22,35,3,0,8,42,7),M(0,11,14,-7,0,23,36,3,0,9,44,8),M(0,11,15,-7,0,24,38,3,0,9,46,8)],Ka=Da,Wa=["duration","easing","delay"],Va={easeInOut:"cubic-bezier(0.4, 0, 0.2, 1)",easeOut:"cubic-bezier(0.0, 0, 0.2, 1)",easeIn:"cubic-bezier(0.4, 0, 1, 1)",sharp:"cubic-bezier(0.4, 0, 0.6, 1)"},Ua={shortest:150,shorter:200,short:250,standard:300,complex:375,enteringScreen:225,leavingScreen:195};function on(e){return`${Math.round(e)}ms`}function Ha(e){if(!e)return 0;const t=e/36;return Math.round((4+15*t**.25+t/5)*10)}function Ga(e){const t=y({},Va,e.easing),r=y({},Ua,e.duration);return y({getAutoHeightDuration:Ha,create:(o=["all"],s={})=>{const{duration:i=r.standard,easing:a=t.easeInOut,delay:c=0}=s;return K(s,Wa),(Array.isArray(o)?o:[o]).map(u=>`${u} ${typeof i=="string"?i:on(i)} ${a} ${typeof c=="string"?c:on(c)}`).join(",")}},e,{easing:t,duration:r})}const qa={mobileStepper:1e3,fab:1050,speedDial:1050,appBar:1100,drawer:1200,modal:1300,snackbar:1400,tooltip:1500},Xa=qa,Ya=["breakpoints","mixins","spacing","palette","transitions","typography","shape"];function Rr(e={},...t){const{mixins:r={},palette:n={},transitions:o={},typography:s={}}=e,i=K(e,Ya);if(e.vars)throw new Error(Ce(18));const a=Ia(n),c=xr(e);let u=te(c,{mixins:ya(c.breakpoints,r),palette:a,shadows:Ka.slice(),typography:Fa(a,s),transitions:Ga(o),zIndex:y({},Xa)});return u=te(u,i),u=t.reduce((d,p)=>te(d,p),u),u.unstable_sxConfig=y({},jt,i==null?void 0:i.unstable_sxConfig),u.unstable_sx=function(p){return Ft({sx:p,theme:this})},u}function xu(...e){return Rr(...e)}const Ja=Rr(),Tr=Ja;function $u(){const e=$r(Tr);return e[gt]||e}function Ue({props:e,name:t}){return la({props:e,name:t,defaultTheme:Tr,themeId:gt})}const Za=e=>Be(e)&&e!=="classes",Su=Be,Qa=ca({themeId:gt,defaultTheme:Tr,rootShouldForwardProp:Za}),ke=Qa;class he{parse(t){return JSON.parse(t)}}class ec{constructor(t){Mr(this,"endpoint");this.endpoint=t}async getAdditionalGraphData(t,r,n){const o=await fetch(`${this.endpoint}/projects/${t}/${r}/graphs_data/${n}`);if(o.ok)return new he().parse(await o.text());throw Error(`${o.status}, ${o.statusText}`)}async getAdditionalWidgetData(t,r,n){const o=await fetch(`${this.endpoint}/projects/${t}/${r}/graphs_data/${n}`);if(o.ok)return new he().parse(await o.text());throw Error(`${o.status}, ${o.statusText}`)}async getDashboard(t,r){const n=await fetch(`${this.endpoint}/projects/${t}/${r}/data`);if(n.ok)return new he().parse(await n.text());throw Error(`${n.status}, ${n.statusText}`)}async getProjects(){const t=await fetch(`${this.endpoint}/projects`);if(t.ok){let r=new he().parse(await t.text());return console.log(r),r}throw Error(`${t.status}, ${t.statusText}`)}async getProjectDashboard(t,r,n){let o="";r!==void 0&&r!==""&&(o=`timestamp_start=${r}`),n!==void 0&&n!==""&&(o=(o===""?`${o}&`:"")+`timestamp_end=${n}`),o!=""&&(o="?"+o);const s=await fetch(`${this.endpoint}/projects/${t}/dashboard${o}`);if(console.log(s),s.ok)return new he().parse(await s.text());throw Error(`${s.status}, ${s.statusText}`)}async getReports(t){const r=await fetch(`${this.endpoint}/projects/${t}/reports`);if(r.ok)return new he().parse(await r.text());throw Error(`${r.status}, ${r.statusText}`)}async getTestSuites(t){const r=await fetch(`${this.endpoint}/projects/${t}/test_suites`);if(r.ok)return new he().parse(await r.text());throw Error(`${r.status}, ${r.statusText}`)}async getProjectInfo(t){const r=await fetch(`${this.endpoint}/projects/${t}/info`);if(r.ok)return new he().parse(await r.text());throw Error(`${r.status}, ${r.statusText}`)}async getVersion(){const t=await fetch(`${this.endpoint}/version`);if(t.ok)return await t.json();throw Error(`${t.status}, ${t.statusText}`)}async editProjectInfo(t){const r=await fetch(`${this.endpoint}/projects/${t.id}/info`,{method:"post",headers:{"Content-Type":"application/json"},body:JSON.stringify(t)});if(!r.ok)throw r;return r}}const wu=new ec("/api");function tc(e){return Le("MuiSvgIcon",e)}De("MuiSvgIcon",["root","colorPrimary","colorSecondary","colorAction","colorError","colorDisabled","fontSizeInherit","fontSizeSmall","fontSizeMedium","fontSizeLarge"]);const rc=["children","className","color","component","fontSize","htmlColor","inheritViewBox","titleAccess","viewBox"],nc=e=>{const{color:t,fontSize:r,classes:n}=e,o={root:["root",t!=="inherit"&&`color${N(t)}`,`fontSize${N(r)}`]};return mt(o,tc,n)},oc=ke("svg",{name:"MuiSvgIcon",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,r.color!=="inherit"&&t[`color${N(r.color)}`],t[`fontSize${N(r.fontSize)}`]]}})(({theme:e,ownerState:t})=>{var r,n,o,s,i,a,c,u,d,p,f,g,h;return{userSelect:"none",width:"1em",height:"1em",display:"inline-block",fill:t.hasSvgAsChild?void 0:"currentColor",flexShrink:0,transition:(r=e.transitions)==null||(n=r.create)==null?void 0:n.call(r,"fill",{duration:(o=e.transitions)==null||(o=o.duration)==null?void 0:o.shorter}),fontSize:{inherit:"inherit",small:((s=e.typography)==null||(i=s.pxToRem)==null?void 0:i.call(s,20))||"1.25rem",medium:((a=e.typography)==null||(c=a.pxToRem)==null?void 0:c.call(a,24))||"1.5rem",large:((u=e.typography)==null||(d=u.pxToRem)==null?void 0:d.call(u,35))||"2.1875rem"}[t.fontSize],color:(p=(f=(e.vars||e).palette)==null||(f=f[t.color])==null?void 0:f.main)!=null?p:{action:(g=(e.vars||e).palette)==null||(g=g.action)==null?void 0:g.active,disabled:(h=(e.vars||e).palette)==null||(h=h.action)==null?void 0:h.disabled,inherit:void 0}[t.color]}}),Yn=m.forwardRef(function(t,r){const n=Ue({props:t,name:"MuiSvgIcon"}),{children:o,className:s,color:i="inherit",component:a="svg",fontSize:c="medium",htmlColor:u,inheritViewBox:d=!1,titleAccess:p,viewBox:f="0 0 24 24"}=n,g=K(n,rc),h=m.isValidElement(o)&&o.type==="svg",l=y({},n,{color:i,component:a,fontSize:c,instanceFontSize:t.fontSize,inheritViewBox:d,viewBox:f,hasSvgAsChild:h}),x={};d||(x.viewBox=f);const v=nc(l);return Y.jsxs(oc,y({as:a,className:U(v.root,s),focusable:"false",color:u,"aria-hidden":p?void 0:!0,role:p?"img":void 0,ref:r},x,g,h&&o.props,{ownerState:l,children:[h?o.props.children:o,p?Y.jsx("title",{children:p}):null]}))});Yn.muiName="SvgIcon";const sn=Yn;function sc(e,t){function r(n,o){return Y.jsx(sn,y({"data-testid":`${t}Icon`,ref:o},n,{children:e}))}return r.muiName=sn.muiName,m.memo(m.forwardRef(r))}const ic={configure:e=>{or.configure(e)}},ac=Object.freeze(Object.defineProperty({__proto__:null,capitalize:N,createChainedFunction:To,createSvgIcon:sc,debounce:ko,deprecatedPropType:Po,isMuiElement:Eo,ownerDocument:bn,ownerWindow:Oo,requirePropFactory:_o,setRef:vn,unstable_ClassNameGenerator:ic,unstable_useEnhancedEffect:xn,unstable_useId:Io,unsupportedProp:Bo,useControlled:jo,useEventCallback:Me,useForkRef:Qe,useIsFocusVisible:$n},Symbol.toStringTag,{value:"Module"}));function er(e,t){return er=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,o){return n.__proto__=o,n},er(e,t)}function cc(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,er(e,t)}const an=Ae.createContext(null);function uc(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function kr(e,t){var r=function(s){return t&&m.isValidElement(s)?t(s):s},n=Object.create(null);return e&&m.Children.map(e,function(o){return o}).forEach(function(o){n[o.key]=r(o)}),n}function lc(e,t){e=e||{},t=t||{};function r(d){return d in t?t[d]:e[d]}var n=Object.create(null),o=[];for(var s in e)s in t?o.length&&(n[s]=o,o=[]):o.push(s);var i,a={};for(var c in t){if(n[c])for(i=0;i{if(!a&&c!=null){const l=setTimeout(c,u);return()=>{clearTimeout(l)}}},[c,a,u]),Y.jsx("span",{className:f,style:g,children:Y.jsx("span",{className:h})})}const yc=De("MuiTouchRipple",["root","ripple","rippleVisible","ripplePulsate","child","childLeaving","childPulsate"]),ee=yc,bc=["center","classes","className"];let Nt=e=>e,cn,un,ln,fn;const tr=550,vc=80,xc=mr(cn||(cn=Nt` + 0% { + transform: scale(0); + opacity: 0.1; + } + + 100% { + transform: scale(1); + opacity: 0.3; + } +`)),$c=mr(un||(un=Nt` + 0% { + opacity: 1; + } + + 100% { + opacity: 0; + } +`)),Sc=mr(ln||(ln=Nt` + 0% { + transform: scale(1); + } + + 50% { + transform: scale(0.92); + } + + 100% { + transform: scale(1); + } +`)),wc=ke("span",{name:"MuiTouchRipple",slot:"Root"})({overflow:"hidden",pointerEvents:"none",position:"absolute",zIndex:0,top:0,right:0,bottom:0,left:0,borderRadius:"inherit"}),Cc=ke(gc,{name:"MuiTouchRipple",slot:"Ripple"})(fn||(fn=Nt` + opacity: 0; + position: absolute; + + &.${0} { + opacity: 0.3; + transform: scale(1); + animation-name: ${0}; + animation-duration: ${0}ms; + animation-timing-function: ${0}; + } + + &.${0} { + animation-duration: ${0}ms; + } + + & .${0} { + opacity: 1; + display: block; + width: 100%; + height: 100%; + border-radius: 50%; + background-color: currentColor; + } + + & .${0} { + opacity: 0; + animation-name: ${0}; + animation-duration: ${0}ms; + animation-timing-function: ${0}; + } + + & .${0} { + position: absolute; + /* @noflip */ + left: 0px; + top: 0; + animation-name: ${0}; + animation-duration: 2500ms; + animation-timing-function: ${0}; + animation-iteration-count: infinite; + animation-delay: 200ms; + } +`),ee.rippleVisible,xc,tr,({theme:e})=>e.transitions.easing.easeInOut,ee.ripplePulsate,({theme:e})=>e.transitions.duration.shorter,ee.child,ee.childLeaving,$c,tr,({theme:e})=>e.transitions.easing.easeInOut,ee.childPulsate,Sc,({theme:e})=>e.transitions.easing.easeInOut),Rc=m.forwardRef(function(t,r){const n=Ue({props:t,name:"MuiTouchRipple"}),{center:o=!1,classes:s={},className:i}=n,a=K(n,bc),[c,u]=m.useState([]),d=m.useRef(0),p=m.useRef(null);m.useEffect(()=>{p.current&&(p.current(),p.current=null)},[c]);const f=m.useRef(!1),g=m.useRef(0),h=m.useRef(null),l=m.useRef(null);m.useEffect(()=>()=>{g.current&&clearTimeout(g.current)},[]);const x=m.useCallback(b=>{const{pulsate:R,rippleX:E,rippleY:$,rippleSize:ne,cb:q}=b;u(S=>[...S,Y.jsx(Cc,{classes:{ripple:U(s.ripple,ee.ripple),rippleVisible:U(s.rippleVisible,ee.rippleVisible),ripplePulsate:U(s.ripplePulsate,ee.ripplePulsate),child:U(s.child,ee.child),childLeaving:U(s.childLeaving,ee.childLeaving),childPulsate:U(s.childPulsate,ee.childPulsate)},timeout:tr,pulsate:R,rippleX:E,rippleY:$,rippleSize:ne},d.current)]),d.current+=1,p.current=q},[s]),v=m.useCallback((b={},R={},E=()=>{})=>{const{pulsate:$=!1,center:ne=o||R.pulsate,fakeElement:q=!1}=R;if((b==null?void 0:b.type)==="mousedown"&&f.current){f.current=!1;return}(b==null?void 0:b.type)==="touchstart"&&(f.current=!0);const S=q?null:l.current,I=S?S.getBoundingClientRect():{width:0,height:0,left:0,top:0};let F,H,W;if(ne||b===void 0||b.clientX===0&&b.clientY===0||!b.clientX&&!b.touches)F=Math.round(I.width/2),H=Math.round(I.height/2);else{const{clientX:Q,clientY:oe}=b.touches&&b.touches.length>0?b.touches[0]:b;F=Math.round(Q-I.left),H=Math.round(oe-I.top)}if(ne)W=Math.sqrt((2*I.width**2+I.height**2)/3),W%2===0&&(W+=1);else{const Q=Math.max(Math.abs((S?S.clientWidth:0)-F),F)*2+2,oe=Math.max(Math.abs((S?S.clientHeight:0)-H),H)*2+2;W=Math.sqrt(Q**2+oe**2)}b!=null&&b.touches?h.current===null&&(h.current=()=>{x({pulsate:$,rippleX:F,rippleY:H,rippleSize:W,cb:E})},g.current=setTimeout(()=>{h.current&&(h.current(),h.current=null)},vc)):x({pulsate:$,rippleX:F,rippleY:H,rippleSize:W,cb:E})},[o,x]),C=m.useCallback(()=>{v({},{pulsate:!0})},[v]),P=m.useCallback((b,R)=>{if(clearTimeout(g.current),(b==null?void 0:b.type)==="touchend"&&h.current){h.current(),h.current=null,g.current=setTimeout(()=>{P(b,R)});return}h.current=null,u(E=>E.length>0?E.slice(1):E),p.current=R},[]);return m.useImperativeHandle(r,()=>({pulsate:C,start:v,stop:P}),[C,v,P]),Y.jsx(wc,y({className:U(ee.root,s.root,i),ref:l},a,{children:Y.jsx(mc,{component:null,exit:!0,children:c})}))}),Tc=Rc;function kc(e){return Le("MuiButtonBase",e)}const Pc=De("MuiButtonBase",["root","disabled","focusVisible"]),Ec=Pc,Oc=["action","centerRipple","children","className","component","disabled","disableRipple","disableTouchRipple","focusRipple","focusVisibleClassName","LinkComponent","onBlur","onClick","onContextMenu","onDragLeave","onFocus","onFocusVisible","onKeyDown","onKeyUp","onMouseDown","onMouseLeave","onMouseUp","onTouchEnd","onTouchMove","onTouchStart","tabIndex","TouchRippleProps","touchRippleRef","type"],_c=e=>{const{disabled:t,focusVisible:r,focusVisibleClassName:n,classes:o}=e,i=mt({root:["root",t&&"disabled",r&&"focusVisible"]},kc,o);return r&&n&&(i.root+=` ${n}`),i},Ac=ke("button",{name:"MuiButtonBase",slot:"Root",overridesResolver:(e,t)=>t.root})({display:"inline-flex",alignItems:"center",justifyContent:"center",position:"relative",boxSizing:"border-box",WebkitTapHighlightColor:"transparent",backgroundColor:"transparent",outline:0,border:0,margin:0,borderRadius:0,padding:0,cursor:"pointer",userSelect:"none",verticalAlign:"middle",MozAppearance:"none",WebkitAppearance:"none",textDecoration:"none",color:"inherit","&::-moz-focus-inner":{borderStyle:"none"},[`&.${Ec.disabled}`]:{pointerEvents:"none",cursor:"default"},"@media print":{colorAdjust:"exact"}}),Mc=m.forwardRef(function(t,r){const n=Ue({props:t,name:"MuiButtonBase"}),{action:o,centerRipple:s=!1,children:i,className:a,component:c="button",disabled:u=!1,disableRipple:d=!1,disableTouchRipple:p=!1,focusRipple:f=!1,LinkComponent:g="a",onBlur:h,onClick:l,onContextMenu:x,onDragLeave:v,onFocus:C,onFocusVisible:P,onKeyDown:b,onKeyUp:R,onMouseDown:E,onMouseLeave:$,onMouseUp:ne,onTouchEnd:q,onTouchMove:S,onTouchStart:I,tabIndex:F=0,TouchRippleProps:H,touchRippleRef:W,type:Q}=n,oe=K(n,Oc),Pe=m.useRef(null),se=m.useRef(null),Zn=Qe(se,W),{isFocusVisibleRef:Er,onFocus:Qn,onBlur:eo,ref:to}=$n(),[me,He]=m.useState(!1);u&&me&&He(!1),m.useImperativeHandle(o,()=>({focusVisible:()=>{He(!0),Pe.current.focus()}}),[]);const[Lt,ro]=m.useState(!1);m.useEffect(()=>{ro(!0)},[]);const no=Lt&&!d&&!u;m.useEffect(()=>{me&&f&&!d&&Lt&&se.current.pulsate()},[d,f,me,Lt]);function le(w,_r,vo=p){return Me(Ar=>(_r&&_r(Ar),!vo&&se.current&&se.current[w](Ar),!0))}const oo=le("start",E),so=le("stop",x),io=le("stop",v),ao=le("stop",ne),co=le("stop",w=>{me&&w.preventDefault(),$&&$(w)}),uo=le("start",I),lo=le("stop",q),fo=le("stop",S),po=le("stop",w=>{eo(w),Er.current===!1&&He(!1),h&&h(w)},!1),ho=Me(w=>{Pe.current||(Pe.current=w.currentTarget),Qn(w),Er.current===!0&&(He(!0),P&&P(w)),C&&C(w)}),Dt=()=>{const w=Pe.current;return c&&c!=="button"&&!(w.tagName==="A"&&w.href)},Kt=m.useRef(!1),mo=Me(w=>{f&&!Kt.current&&me&&se.current&&w.key===" "&&(Kt.current=!0,se.current.stop(w,()=>{se.current.start(w)})),w.target===w.currentTarget&&Dt()&&w.key===" "&&w.preventDefault(),b&&b(w),w.target===w.currentTarget&&Dt()&&w.key==="Enter"&&!u&&(w.preventDefault(),l&&l(w))}),go=Me(w=>{f&&w.key===" "&&se.current&&me&&!w.defaultPrevented&&(Kt.current=!1,se.current.stop(w,()=>{se.current.pulsate(w)})),R&&R(w),l&&w.target===w.currentTarget&&Dt()&&w.key===" "&&!w.defaultPrevented&&l(w)});let Ge=c;Ge==="button"&&(oe.href||oe.to)&&(Ge=g);const Ee={};Ge==="button"?(Ee.type=Q===void 0?"button":Q,Ee.disabled=u):(!oe.href&&!oe.to&&(Ee.role="button"),u&&(Ee["aria-disabled"]=u));const yo=Qe(r,to,Pe),Or=y({},n,{centerRipple:s,component:c,disabled:u,disableRipple:d,disableTouchRipple:p,focusRipple:f,tabIndex:F,focusVisible:me}),bo=_c(Or);return Y.jsxs(Ac,y({as:Ge,className:U(bo.root,a),ownerState:Or,onBlur:po,onClick:l,onContextMenu:so,onFocus:ho,onKeyDown:mo,onKeyUp:go,onMouseDown:oo,onMouseLeave:co,onMouseUp:ao,onDragLeave:io,onTouchEnd:lo,onTouchMove:fo,onTouchStart:uo,ref:yo,tabIndex:u?-1:F,type:Q},Ee,oe,{children:[i,no?Y.jsx(Tc,y({ref:Zn,center:s},H)):null]}))}),Ic=Mc;function Bc(e){return Le("MuiIconButton",e)}const jc=De("MuiIconButton",["root","disabled","colorInherit","colorPrimary","colorSecondary","colorError","colorInfo","colorSuccess","colorWarning","edgeStart","edgeEnd","sizeSmall","sizeMedium","sizeLarge"]),Fc=jc,zc=["edge","children","className","color","disabled","disableFocusRipple","size"],Nc=e=>{const{classes:t,disabled:r,color:n,edge:o,size:s}=e,i={root:["root",r&&"disabled",n!=="default"&&`color${N(n)}`,o&&`edge${N(o)}`,`size${N(s)}`]};return mt(i,Bc,t)},Lc=ke(Ic,{name:"MuiIconButton",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,r.color!=="default"&&t[`color${N(r.color)}`],r.edge&&t[`edge${N(r.edge)}`],t[`size${N(r.size)}`]]}})(({theme:e,ownerState:t})=>y({textAlign:"center",flex:"0 0 auto",fontSize:e.typography.pxToRem(24),padding:8,borderRadius:"50%",overflow:"visible",color:(e.vars||e).palette.action.active,transition:e.transitions.create("background-color",{duration:e.transitions.duration.shortest})},!t.disableRipple&&{"&:hover":{backgroundColor:e.vars?`rgba(${e.vars.palette.action.activeChannel} / ${e.vars.palette.action.hoverOpacity})`:Qt(e.palette.action.active,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}}},t.edge==="start"&&{marginLeft:t.size==="small"?-3:-12},t.edge==="end"&&{marginRight:t.size==="small"?-3:-12}),({theme:e,ownerState:t})=>{var r;const n=(r=(e.vars||e).palette)==null?void 0:r[t.color];return y({},t.color==="inherit"&&{color:"inherit"},t.color!=="inherit"&&t.color!=="default"&&y({color:n==null?void 0:n.main},!t.disableRipple&&{"&:hover":y({},n&&{backgroundColor:e.vars?`rgba(${n.mainChannel} / ${e.vars.palette.action.hoverOpacity})`:Qt(n.main,e.palette.action.hoverOpacity)},{"@media (hover: none)":{backgroundColor:"transparent"}})}),t.size==="small"&&{padding:5,fontSize:e.typography.pxToRem(18)},t.size==="large"&&{padding:12,fontSize:e.typography.pxToRem(28)},{[`&.${Fc.disabled}`]:{backgroundColor:"transparent",color:(e.vars||e).palette.action.disabled}})}),Dc=m.forwardRef(function(t,r){const n=Ue({props:t,name:"MuiIconButton"}),{edge:o=!1,children:s,className:i,color:a="default",disabled:c=!1,disableFocusRipple:u=!1,size:d="medium"}=n,p=K(n,zc),f=y({},n,{edge:o,color:a,disabled:c,disableFocusRipple:u,size:d}),g=Nc(f);return Y.jsx(Lc,y({className:U(g.root,i),centerRipple:!0,focusRipple:!u,disabled:c,ref:r,ownerState:f},p,{children:s}))}),Cu=Dc;function Kc(e){return Le("MuiTypography",e)}const Wc=De("MuiTypography",["root","h1","h2","h3","h4","h5","h6","subtitle1","subtitle2","body1","body2","inherit","button","caption","overline","alignLeft","alignRight","alignCenter","alignJustify","noWrap","gutterBottom","paragraph"]),Ru=Wc,Vc=["align","className","component","gutterBottom","noWrap","paragraph","variant","variantMapping"],Uc=e=>{const{align:t,gutterBottom:r,noWrap:n,paragraph:o,variant:s,classes:i}=e,a={root:["root",s,e.align!=="inherit"&&`align${N(t)}`,r&&"gutterBottom",n&&"noWrap",o&&"paragraph"]};return mt(a,Kc,i)},Hc=ke("span",{name:"MuiTypography",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,r.variant&&t[r.variant],r.align!=="inherit"&&t[`align${N(r.align)}`],r.noWrap&&t.noWrap,r.gutterBottom&&t.gutterBottom,r.paragraph&&t.paragraph]}})(({theme:e,ownerState:t})=>y({margin:0},t.variant==="inherit"&&{font:"inherit"},t.variant!=="inherit"&&e.typography[t.variant],t.align!=="inherit"&&{textAlign:t.align},t.noWrap&&{overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},t.gutterBottom&&{marginBottom:"0.35em"},t.paragraph&&{marginBottom:16})),dn={h1:"h1",h2:"h2",h3:"h3",h4:"h4",h5:"h5",h6:"h6",subtitle1:"h6",subtitle2:"h6",body1:"p",body2:"p",inherit:"p"},Gc={primary:"primary.main",textPrimary:"text.primary",secondary:"secondary.main",textSecondary:"text.secondary",error:"error.main"},qc=e=>Gc[e]||e,Xc=m.forwardRef(function(t,r){const n=Ue({props:t,name:"MuiTypography"}),o=qc(n.color),s=Gn(y({},n,{color:o})),{align:i="inherit",className:a,component:c,gutterBottom:u=!1,noWrap:d=!1,paragraph:p=!1,variant:f="body1",variantMapping:g=dn}=s,h=K(s,Vc),l=y({},s,{align:i,color:o,className:a,component:c,gutterBottom:u,noWrap:d,paragraph:p,variant:f,variantMapping:g}),x=c||(p?"p":g[f]||dn[f])||"span",v=Uc(l);return Y.jsx(Hc,y({as:x,ref:r,ownerState:l,className:U(v.root,a)},h))}),Tu=Xc;function Yc(e){return typeof e=="string"}function Jc(e,t,r){return e===void 0||Yc(e)?t:y({},t,{ownerState:y({},t.ownerState,r)})}function Zc(e,t=[]){if(e===void 0)return{};const r={};return Object.keys(e).filter(n=>n.match(/^on[A-Z]/)&&typeof e[n]=="function"&&!t.includes(n)).forEach(n=>{r[n]=e[n]}),r}function Qc(e,t,r){return typeof e=="function"?e(t,r):e}function pn(e){if(e===void 0)return{};const t={};return Object.keys(e).filter(r=>!(r.match(/^on[A-Z]/)&&typeof e[r]=="function")).forEach(r=>{t[r]=e[r]}),t}function eu(e){const{getSlotProps:t,additionalProps:r,externalSlotProps:n,externalForwardedProps:o,className:s}=e;if(!t){const g=U(o==null?void 0:o.className,n==null?void 0:n.className,s,r==null?void 0:r.className),h=y({},r==null?void 0:r.style,o==null?void 0:o.style,n==null?void 0:n.style),l=y({},r,o,n);return g.length>0&&(l.className=g),Object.keys(h).length>0&&(l.style=h),{props:l,internalRef:void 0}}const i=Zc(y({},o,n)),a=pn(n),c=pn(o),u=t(i),d=U(u==null?void 0:u.className,r==null?void 0:r.className,s,o==null?void 0:o.className,n==null?void 0:n.className),p=y({},u==null?void 0:u.style,r==null?void 0:r.style,o==null?void 0:o.style,n==null?void 0:n.style),f=y({},u,r,c,a);return d.length>0&&(f.className=d),Object.keys(p).length>0&&(f.style=p),{props:f,internalRef:u.ref}}const tu=["elementType","externalSlotProps","ownerState","skipResolvingSlotProps"];function ku(e){var t;const{elementType:r,externalSlotProps:n,ownerState:o,skipResolvingSlotProps:s=!1}=e,i=K(e,tu),a=s?{}:Qc(n,o),{props:c,internalRef:u}=eu(y({},i,{externalSlotProps:a})),d=Qe(u,a==null?void 0:a.ref,(t=e.additionalProps)==null?void 0:t.ref);return Jc(r,y({},c,{ref:d}),o)}const ru=Rr(),nu=Ji({themeId:gt,defaultTheme:ru,defaultClassName:"MuiBox-root",generateClassName:or.generate}),Pu=nu;var Jn={exports:{}};(function(e){function t(r){return r&&r.__esModule?r:{default:r}}e.exports=t,e.exports.__esModule=!0,e.exports.default=e.exports})(Jn);var Eu=Jn.exports,Ht={};const ou=wo(ac);var hn;function Ou(){return hn||(hn=1,function(e){"use client";Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"default",{enumerable:!0,get:function(){return t.createSvgIcon}});var t=ou}(Ht)),Ht}export{ga as $,$r as A,Ic as B,Io as C,Qc as D,vn as E,Ot as F,$n as G,lu as H,Cu as I,Ss as J,ca as K,Ce as L,te as M,xr as N,la as O,de as P,pu as Q,Vn as R,du as S,Tu as T,Gn as U,Ve as V,fi as W,ti as X,yu as Y,bu as Z,y as _,De as a,gu as a0,hu as a1,jt as a2,Ft as a3,gt as a4,Fa as a5,xu as a6,Hs as a7,wr as a8,pe as a9,fu as aA,an as aB,Zc as aC,To as aD,Tr as aE,Su as aF,Sn as aG,Ua as aa,Va as ab,ma as ac,Zt as ad,fa as ae,ha as af,mr as ag,Cr as ah,zt as ai,mu as aj,cc as ak,Bc as al,Fc as am,Kc as an,Ru as ao,Za as ap,Hi as aq,ua as ar,Jc as as,er as at,uc as au,uu as av,cu as aw,hr as ax,Oo as ay,ko as az,K as b,N as c,U as d,mt as e,sc as f,Le as g,vu as h,ku as i,Pu as j,Eu as k,Rr as l,wu as m,Qt as n,xn as o,Eo as p,Qe as q,Ou as r,ke as s,Yc as t,Ue as u,jo as v,Me as w,$u as x,bn as y,mc as z}; diff --git a/src/evidently/ui/ui/static/js/index-070914a7.js b/src/evidently/ui/ui/static/js/index-070914a7.js new file mode 100644 index 0000000000..75adde2d85 --- /dev/null +++ b/src/evidently/ui/ui/static/js/index-070914a7.js @@ -0,0 +1 @@ +import{r as p,c as h,a as m,j as d,R,b as y}from"./vendor-20fe28cb.js";(function(){const i=document.createElement("link").relList;if(i&&i.supports&&i.supports("modulepreload"))return;for(const t of document.querySelectorAll('link[rel="modulepreload"]'))l(t);new MutationObserver(t=>{for(const e of t)if(e.type==="childList")for(const r of e.addedNodes)r.tagName==="LINK"&&r.rel==="modulepreload"&&l(r)}).observe(document,{childList:!0,subtree:!0});function c(t){const e={};return t.integrity&&(e.integrity=t.integrity),t.referrerPolicy&&(e.referrerPolicy=t.referrerPolicy),t.crossOrigin==="use-credentials"?e.credentials="include":t.crossOrigin==="anonymous"?e.credentials="omit":e.credentials="same-origin",e}function l(t){if(t.ep)return;t.ep=!0;const e=c(t);fetch(t.href,e)}})();const E="modulepreload",v=function(n){return"/"+n},_={},o=function(i,c,l){if(!c||c.length===0)return i();const t=document.getElementsByTagName("link");return Promise.all(c.map(e=>{if(e=v(e),e in _)return;_[e]=!0;const r=e.endsWith(".css"),f=r?'[rel="stylesheet"]':"";if(!!l)for(let u=t.length-1;u>=0;u--){const a=t[u];if(a.href===e&&(!r||a.rel==="stylesheet"))return}else if(document.querySelector(`link[href="${e}"]${f}`))return;const s=document.createElement("link");if(s.rel=r?"stylesheet":E,r||(s.as="script",s.crossOrigin=""),s.href=e,document.head.appendChild(s),r)return new Promise((u,a)=>{s.addEventListener("load",u),s.addEventListener("error",()=>a(new Error(`Unable to preload CSS for ${e}`)))})})).then(()=>i()).catch(e=>{const r=new Event("vite:preloadError",{cancelable:!0});if(r.payload=e,window.dispatchEvent(r),!r.defaultPrevented)throw e})},P={path:"/",lazy:()=>o(()=>import("./Component-88068259.js"),["static/js/Component-88068259.js","static/js/vendor-20fe28cb.js","static/js/LocalizationProvider-f22c467c.js","static/js/createSvgIcon-41173291.js","static/js/Toolbar-03fb06fb.js","static/js/Button-085c6ce4.js","static/js/Link-9fdafac8.js"])},L={index:!0,id:"dashboard",lazy:()=>o(()=>import("./Component-8a3c23d4.js"),["static/js/Component-8a3c23d4.js","static/js/vendor-20fe28cb.js","static/js/LocalizationProvider-f22c467c.js","static/js/createSvgIcon-41173291.js","static/js/DashboardContent-ab24b4bf.js","static/js/Button-085c6ce4.js","static/js/TextField-33506b98.js","static/js/TableRow-e790adad.js","static/js/Grid-ec570cb4.js","static/js/Toolbar-03fb06fb.js","static/js/Tabs-2c8f7c5f.js","static/js/Edit-f207c17d.js","static/js/tiny-invariant-dd7d57d2.js","static/js/Datetime-bd8955b4.js"])},O={id:"show-report-by-id",path:":reportId",lazy:()=>o(()=>import("./Component-6baa4579.js"),["static/js/Component-6baa4579.js","static/js/vendor-20fe28cb.js","static/js/tiny-invariant-dd7d57d2.js","static/js/createSvgIcon-41173291.js","static/js/DashboardContent-ab24b4bf.js","static/js/Button-085c6ce4.js","static/js/TextField-33506b98.js","static/js/TableRow-e790adad.js","static/js/Grid-ec570cb4.js","static/js/Toolbar-03fb06fb.js","static/js/Tabs-2c8f7c5f.js","static/js/Edit-f207c17d.js"])},g={id:"reports",path:"reports",lazy:()=>o(()=>import("./Component-f9649b14.js"),["static/js/Component-f9649b14.js","static/js/vendor-20fe28cb.js","static/js/tiny-invariant-dd7d57d2.js","static/js/createSvgIcon-41173291.js","static/js/useUpdateQueryStringValueWithoutNavigation-bd5f68fd.js","static/js/TextField-33506b98.js","static/js/Button-085c6ce4.js","static/js/TableRow-e790adad.js","static/js/ContentCopy-2be27db4.js","static/js/Datetime-bd8955b4.js","static/js/Grid-ec570cb4.js","static/js/Link-9fdafac8.js"]),children:[O]},I={id:"show-test-suite-by-id",path:":testSuiteId",lazy:()=>o(()=>import("./Component-8b99584b.js"),["static/js/Component-8b99584b.js","static/js/vendor-20fe28cb.js","static/js/tiny-invariant-dd7d57d2.js","static/js/createSvgIcon-41173291.js","static/js/DashboardContent-ab24b4bf.js","static/js/Button-085c6ce4.js","static/js/TextField-33506b98.js","static/js/TableRow-e790adad.js","static/js/Grid-ec570cb4.js","static/js/Toolbar-03fb06fb.js","static/js/Tabs-2c8f7c5f.js","static/js/Edit-f207c17d.js"])},T={id:"test_suites",path:"test-suites",lazy:()=>o(()=>import("./Component-9ba3869f.js"),["static/js/Component-9ba3869f.js","static/js/vendor-20fe28cb.js","static/js/tiny-invariant-dd7d57d2.js","static/js/createSvgIcon-41173291.js","static/js/useUpdateQueryStringValueWithoutNavigation-bd5f68fd.js","static/js/TextField-33506b98.js","static/js/Button-085c6ce4.js","static/js/TableRow-e790adad.js","static/js/ContentCopy-2be27db4.js","static/js/Datetime-bd8955b4.js","static/js/Grid-ec570cb4.js","static/js/Link-9fdafac8.js"]),children:[I]},w={path:"test_suites/*",loader:({request:n})=>p(n.url.replace("/test_suites","/test-suites"),{status:301})},S={path:"projects/:projectId",lazy:()=>o(()=>import("./Component-ba7b8280.js"),["static/js/Component-ba7b8280.js","static/js/vendor-20fe28cb.js","static/js/ContentCopy-2be27db4.js","static/js/createSvgIcon-41173291.js","static/js/tiny-invariant-dd7d57d2.js","static/js/Grid-ec570cb4.js","static/js/Tabs-2c8f7c5f.js","static/js/Link-9fdafac8.js"]),children:[L,g,T,w]},b={index:!0,lazy:()=>o(()=>import("./Component-b2a75726.js"),["static/js/Component-b2a75726.js","static/js/vendor-20fe28cb.js","static/js/Edit-f207c17d.js","static/js/createSvgIcon-41173291.js","static/js/Grid-ec570cb4.js","static/js/Button-085c6ce4.js","static/js/TextField-33506b98.js","static/js/Link-9fdafac8.js"])},A={...P,children:[b,S]},D=[A],j=h(D);m.createRoot(document.getElementById("root")).render(d.jsx(R.StrictMode,{children:d.jsx(y,{router:j})})); diff --git a/src/evidently/ui/ui/static/js/index-d40ad7a2.js b/src/evidently/ui/ui/static/js/index-d40ad7a2.js deleted file mode 100644 index f31f91c448..0000000000 --- a/src/evidently/ui/ui/static/js/index-d40ad7a2.js +++ /dev/null @@ -1,629 +0,0 @@ -var qre=Object.defineProperty;var Yre=(e,t,n)=>t in e?qre(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n;var Lh=(e,t,n)=>(Yre(e,typeof t!="symbol"?t+"":t,n),n);function Gre(e,t){for(var n=0;nr[l]})}}}return Object.freeze(Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}))}(function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const l of document.querySelectorAll('link[rel="modulepreload"]'))r(l);new MutationObserver(l=>{for(const o of l)if(o.type==="childList")for(const i of o.addedNodes)i.tagName==="LINK"&&i.rel==="modulepreload"&&r(i)}).observe(document,{childList:!0,subtree:!0});function n(l){const o={};return l.integrity&&(o.integrity=l.integrity),l.referrerPolicy&&(o.referrerPolicy=l.referrerPolicy),l.crossOrigin==="use-credentials"?o.credentials="include":l.crossOrigin==="anonymous"?o.credentials="omit":o.credentials="same-origin",o}function r(l){if(l.ep)return;l.ep=!0;const o=n(l);fetch(l.href,o)}})();var ro=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function cr(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function dr(e){if(e.__esModule)return e;var t=e.default;if(typeof t=="function"){var n=function r(){return this instanceof r?Reflect.construct(t,arguments,this.constructor):t.apply(this,arguments)};n.prototype=t.prototype}else n={};return Object.defineProperty(n,"__esModule",{value:!0}),Object.keys(e).forEach(function(r){var l=Object.getOwnPropertyDescriptor(e,r);Object.defineProperty(n,r,l.get?l:{enumerable:!0,get:function(){return e[r]}})}),n}var yz={exports:{}},Yx={},bz={exports:{}},xr={};/** - * @license React - * react.production.min.js - * - * Copyright (c) Facebook, Inc. and its affiliates. - * - * This source code is licensed under the MIT license found in the - * LICENSE file in the root directory of this source tree. - */var ty=Symbol.for("react.element"),Zre=Symbol.for("react.portal"),Kre=Symbol.for("react.fragment"),Xre=Symbol.for("react.strict_mode"),Jre=Symbol.for("react.profiler"),Qre=Symbol.for("react.provider"),eae=Symbol.for("react.context"),tae=Symbol.for("react.forward_ref"),nae=Symbol.for("react.suspense"),rae=Symbol.for("react.memo"),aae=Symbol.for("react.lazy"),rE=Symbol.iterator;function oae(e){return e===null||typeof e!="object"?null:(e=rE&&e[rE]||e["@@iterator"],typeof e=="function"?e:null)}var xz={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},wz=Object.assign,_z={};function Kp(e,t,n){this.props=e,this.context=t,this.refs=_z,this.updater=n||xz}Kp.prototype.isReactComponent={};Kp.prototype.setState=function(e,t){if(typeof e!="object"&&typeof e!="function"&&e!=null)throw Error("setState(...): takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,e,t,"setState")};Kp.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")};function Tz(){}Tz.prototype=Kp.prototype;function C5(e,t,n){this.props=e,this.context=t,this.refs=_z,this.updater=n||xz}var M5=C5.prototype=new Tz;M5.constructor=C5;wz(M5,Kp.prototype);M5.isPureReactComponent=!0;var aE=Array.isArray,kz=Object.prototype.hasOwnProperty,P5={current:null},Sz={key:!0,ref:!0,__self:!0,__source:!0};function Cz(e,t,n){var r,l={},o=null,i=null;if(t!=null)for(r in t.ref!==void 0&&(i=t.ref),t.key!==void 0&&(o=""+t.key),t)kz.call(t,r)&&!Sz.hasOwnProperty(r)&&(l[r]=t[r]);var a=arguments.length-2;if(a===1)l.children=n;else if(1>>1,F=$[z];if(0>>1;zl(H,j))Il(V,H)?($[z]=V,$[I]=j,z=I):($[z]=H,$[W]=j,z=W);else if(Il(V,j))$[z]=V,$[I]=j,z=I;else break e}}return N}function l($,N){var j=$.sortIndex-N.sortIndex;return j!==0?j:$.id-N.id}if(typeof performance=="object"&&typeof performance.now=="function"){var o=performance;e.unstable_now=function(){return o.now()}}else{var i=Date,a=i.now();e.unstable_now=function(){return i.now()-a}}var s=[],u=[],c=1,d=null,f=3,p=!1,g=!1,h=!1,y=typeof setTimeout=="function"?setTimeout:null,v=typeof clearTimeout=="function"?clearTimeout:null,m=typeof setImmediate<"u"?setImmediate:null;typeof navigator<"u"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function b($){for(var N=n(u);N!==null;){if(N.callback===null)r(u);else if(N.startTime<=$)r(u),N.sortIndex=N.expirationTime,t(s,N);else break;N=n(u)}}function w($){if(h=!1,b($),!g)if(n(s)!==null)g=!0,L(_);else{var N=n(u);N!==null&&D(w,N.startTime-$)}}function _($,N){g=!1,h&&(h=!1,v(k),k=-1),p=!0;var j=f;try{for(b(N),d=n(s);d!==null&&(!(d.expirationTime>N)||$&&!M());){var z=d.callback;if(typeof z=="function"){d.callback=null,f=d.priorityLevel;var F=z(d.expirationTime<=N);N=e.unstable_now(),typeof F=="function"?d.callback=F:d===n(s)&&r(s),b(N)}else r(s);d=n(s)}if(d!==null)var E=!0;else{var W=n(u);W!==null&&D(w,W.startTime-N),E=!1}return E}finally{d=null,f=j,p=!1}}var x=!1,T=null,k=-1,S=5,C=-1;function M(){return!(e.unstable_now()-C$||125<$?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):S=0<$?Math.floor(1e3/$):5},e.unstable_getCurrentPriorityLevel=function(){return f},e.unstable_getFirstCallbackNode=function(){return n(s)},e.unstable_next=function($){switch(f){case 1:case 2:case 3:var N=3;break;default:N=f}var j=f;f=N;try{return $()}finally{f=j}},e.unstable_pauseExecution=function(){},e.unstable_requestPaint=function(){},e.unstable_runWithPriority=function($,N){switch($){case 1:case 2:case 3:case 4:case 5:break;default:$=3}var j=f;f=$;try{return N()}finally{f=j}},e.unstable_scheduleCallback=function($,N,j){var z=e.unstable_now();switch(typeof j=="object"&&j!==null?(j=j.delay,j=typeof j=="number"&&0z?($.sortIndex=j,t(u,$),n(s)===null&&$===n(u)&&(h?(v(k),k=-1):h=!0,D(w,j-z))):($.sortIndex=F,t(s,$),g||p||(g=!0,L(_))),$},e.unstable_shouldYield=M,e.unstable_wrapCallback=function($){var N=f;return function(){var j=f;f=N;try{return $.apply(this,arguments)}finally{f=j}}}})(Dz);Oz.exports=Dz;var gae=Oz.exports;/** - * @license React - * react-dom.production.min.js - * - * Copyright (c) Facebook, Inc. and its affiliates. - * - * This source code is licensed under the MIT license found in the - * LICENSE file in the root directory of this source tree. - */var Az=se,$i=gae;function dn(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,n=1;n"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),g3=Object.prototype.hasOwnProperty,vae=/^[:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD][:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\-.0-9\u00B7\u0300-\u036F\u203F-\u2040]*$/,iE={},lE={};function yae(e){return g3.call(lE,e)?!0:g3.call(iE,e)?!1:vae.test(e)?lE[e]=!0:(iE[e]=!0,!1)}function bae(e,t,n,r){if(n!==null&&n.type===0)return!1;switch(typeof t){case"function":case"symbol":return!0;case"boolean":return r?!1:n!==null?!n.acceptsBooleans:(e=e.toLowerCase().slice(0,5),e!=="data-"&&e!=="aria-");default:return!1}}function xae(e,t,n,r){if(t===null||typeof t>"u"||bae(e,t,n,r))return!0;if(r)return!1;if(n!==null)switch(n.type){case 3:return!t;case 4:return t===!1;case 5:return isNaN(t);case 6:return isNaN(t)||1>t}return!1}function ti(e,t,n,r,l,o,i){this.acceptsBooleans=t===2||t===3||t===4,this.attributeName=r,this.attributeNamespace=l,this.mustUseProperty=n,this.propertyName=e,this.type=t,this.sanitizeURL=o,this.removeEmptyString=i}var Io={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(e){Io[e]=new ti(e,0,!1,e,null,!1,!1)});[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(e){var t=e[0];Io[t]=new ti(t,1,!1,e[1],null,!1,!1)});["contentEditable","draggable","spellCheck","value"].forEach(function(e){Io[e]=new ti(e,2,!1,e.toLowerCase(),null,!1,!1)});["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){Io[e]=new ti(e,2,!1,e,null,!1,!1)});"allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture disableRemotePlayback formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach(function(e){Io[e]=new ti(e,3,!1,e.toLowerCase(),null,!1,!1)});["checked","multiple","muted","selected"].forEach(function(e){Io[e]=new ti(e,3,!0,e,null,!1,!1)});["capture","download"].forEach(function(e){Io[e]=new ti(e,4,!1,e,null,!1,!1)});["cols","rows","size","span"].forEach(function(e){Io[e]=new ti(e,6,!1,e,null,!1,!1)});["rowSpan","start"].forEach(function(e){Io[e]=new ti(e,5,!1,e.toLowerCase(),null,!1,!1)});var D5=/[\-:]([a-z])/g;function A5(e){return e[1].toUpperCase()}"accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height".split(" ").forEach(function(e){var t=e.replace(D5,A5);Io[t]=new ti(t,1,!1,e,null,!1,!1)});"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach(function(e){var t=e.replace(D5,A5);Io[t]=new ti(t,1,!1,e,"http://www.w3.org/1999/xlink",!1,!1)});["xml:base","xml:lang","xml:space"].forEach(function(e){var t=e.replace(D5,A5);Io[t]=new ti(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)});["tabIndex","crossOrigin"].forEach(function(e){Io[e]=new ti(e,1,!1,e.toLowerCase(),null,!1,!1)});Io.xlinkHref=new ti("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1);["src","href","action","formAction"].forEach(function(e){Io[e]=new ti(e,1,!1,e.toLowerCase(),null,!0,!0)});function R5(e,t,n,r){var l=Io.hasOwnProperty(t)?Io[t]:null;(l!==null?l.type!==0:r||!(2a||l[i]!==o[a]){var s=` -`+l[i].replace(" at new "," at ");return e.displayName&&s.includes("")&&(s=s.replace("",e.displayName)),s}while(1<=i&&0<=a);break}}}finally{QT=!1,Error.prepareStackTrace=n}return(e=e?e.displayName||e.name:"")?ng(e):""}function wae(e){switch(e.tag){case 5:return ng(e.type);case 16:return ng("Lazy");case 13:return ng("Suspense");case 19:return ng("SuspenseList");case 0:case 2:case 15:return e=ek(e.type,!1),e;case 11:return e=ek(e.type.render,!1),e;case 1:return e=ek(e.type,!0),e;default:return""}}function x3(e){if(e==null)return null;if(typeof e=="function")return e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case Mf:return"Fragment";case Cf:return"Portal";case v3:return"Profiler";case E5:return"StrictMode";case y3:return"Suspense";case b3:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case Lz:return(e.displayName||"Context")+".Consumer";case Ez:return(e._context.displayName||"Context")+".Provider";case L5:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case I5:return t=e.displayName||null,t!==null?t:x3(e.type)||"Memo";case Mu:t=e._payload,e=e._init;try{return x3(e(t))}catch{}}return null}function _ae(e){var t=e.type;switch(e.tag){case 24:return"Cache";case 9:return(t.displayName||"Context")+".Consumer";case 10:return(t._context.displayName||"Context")+".Provider";case 18:return"DehydratedFragment";case 11:return e=t.render,e=e.displayName||e.name||"",t.displayName||(e!==""?"ForwardRef("+e+")":"ForwardRef");case 7:return"Fragment";case 5:return t;case 4:return"Portal";case 3:return"Root";case 6:return"Text";case 16:return x3(t);case 8:return t===E5?"StrictMode":"Mode";case 22:return"Offscreen";case 12:return"Profiler";case 21:return"Scope";case 13:return"Suspense";case 19:return"SuspenseList";case 25:return"TracingMarker";case 1:case 0:case 17:case 2:case 14:case 15:if(typeof t=="function")return t.displayName||t.name||null;if(typeof t=="string")return t}return null}function Xu(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function $z(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function Tae(e){var t=$z(e)?"checked":"value",n=Object.getOwnPropertyDescriptor(e.constructor.prototype,t),r=""+e[t];if(!e.hasOwnProperty(t)&&typeof n<"u"&&typeof n.get=="function"&&typeof n.set=="function"){var l=n.get,o=n.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return l.call(this)},set:function(i){r=""+i,o.call(this,i)}}),Object.defineProperty(e,t,{enumerable:n.enumerable}),{getValue:function(){return r},setValue:function(i){r=""+i},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function h0(e){e._valueTracker||(e._valueTracker=Tae(e))}function Nz(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r="";return e&&(r=$z(e)?e.checked?"true":"false":e.value),e=r,e!==n?(t.setValue(e),!0):!1}function ab(e){if(e=e||(typeof document<"u"?document:void 0),typeof e>"u")return null;try{return e.activeElement||e.body}catch{return e.body}}function w3(e,t){var n=t.checked;return Oa({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:n??e._wrapperState.initialChecked})}function uE(e,t){var n=t.defaultValue==null?"":t.defaultValue,r=t.checked!=null?t.checked:t.defaultChecked;n=Xu(t.value!=null?t.value:n),e._wrapperState={initialChecked:r,initialValue:n,controlled:t.type==="checkbox"||t.type==="radio"?t.checked!=null:t.value!=null}}function Fz(e,t){t=t.checked,t!=null&&R5(e,"checked",t,!1)}function _3(e,t){Fz(e,t);var n=Xu(t.value),r=t.type;if(n!=null)r==="number"?(n===0&&e.value===""||e.value!=n)&&(e.value=""+n):e.value!==""+n&&(e.value=""+n);else if(r==="submit"||r==="reset"){e.removeAttribute("value");return}t.hasOwnProperty("value")?T3(e,t.type,n):t.hasOwnProperty("defaultValue")&&T3(e,t.type,Xu(t.defaultValue)),t.checked==null&&t.defaultChecked!=null&&(e.defaultChecked=!!t.defaultChecked)}function cE(e,t,n){if(t.hasOwnProperty("value")||t.hasOwnProperty("defaultValue")){var r=t.type;if(!(r!=="submit"&&r!=="reset"||t.value!==void 0&&t.value!==null))return;t=""+e._wrapperState.initialValue,n||t===e.value||(e.value=t),e.defaultValue=t}n=e.name,n!==""&&(e.name=""),e.defaultChecked=!!e._wrapperState.initialChecked,n!==""&&(e.name=n)}function T3(e,t,n){(t!=="number"||ab(e.ownerDocument)!==e)&&(n==null?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+n&&(e.defaultValue=""+n))}var rg=Array.isArray;function qf(e,t,n,r){if(e=e.options,t){t={};for(var l=0;l"+t.valueOf().toString()+"",t=m0.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}});function Ug(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&n.nodeType===3){n.nodeValue=t;return}}e.textContent=t}var vg={animationIterationCount:!0,aspectRatio:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridArea:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},kae=["Webkit","ms","Moz","O"];Object.keys(vg).forEach(function(e){kae.forEach(function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),vg[t]=vg[e]})});function Vz(e,t,n){return t==null||typeof t=="boolean"||t===""?"":n||typeof t!="number"||t===0||vg.hasOwnProperty(e)&&vg[e]?(""+t).trim():t+"px"}function Wz(e,t){e=e.style;for(var n in t)if(t.hasOwnProperty(n)){var r=n.indexOf("--")===0,l=Vz(n,t[n],r);n==="float"&&(n="cssFloat"),r?e.setProperty(n,l):e[n]=l}}var Sae=Oa({menuitem:!0},{area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0});function C3(e,t){if(t){if(Sae[e]&&(t.children!=null||t.dangerouslySetInnerHTML!=null))throw Error(dn(137,e));if(t.dangerouslySetInnerHTML!=null){if(t.children!=null)throw Error(dn(60));if(typeof t.dangerouslySetInnerHTML!="object"||!("__html"in t.dangerouslySetInnerHTML))throw Error(dn(61))}if(t.style!=null&&typeof t.style!="object")throw Error(dn(62))}}function M3(e,t){if(e.indexOf("-")===-1)return typeof t.is=="string";switch(e){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}var P3=null;function $5(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var O3=null,Yf=null,Gf=null;function pE(e){if(e=ay(e)){if(typeof O3!="function")throw Error(dn(280));var t=e.stateNode;t&&(t=Jx(t),O3(e.stateNode,e.type,t))}}function Uz(e){Yf?Gf?Gf.push(e):Gf=[e]:Yf=e}function Hz(){if(Yf){var e=Yf,t=Gf;if(Gf=Yf=null,pE(e),t)for(e=0;e>>=0,e===0?32:31-($ae(e)/Nae|0)|0}var g0=64,v0=4194304;function ag(e){switch(e&-e){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return e&4194240;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return e&130023424;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 1073741824;default:return e}}function sb(e,t){var n=e.pendingLanes;if(n===0)return 0;var r=0,l=e.suspendedLanes,o=e.pingedLanes,i=n&268435455;if(i!==0){var a=i&~l;a!==0?r=ag(a):(o&=i,o!==0&&(r=ag(o)))}else i=n&~l,i!==0?r=ag(i):o!==0&&(r=ag(o));if(r===0)return 0;if(t!==0&&t!==r&&!(t&l)&&(l=r&-r,o=t&-t,l>=o||l===16&&(o&4194240)!==0))return t;if(r&4&&(r|=n&16),t=e.entangledLanes,t!==0)for(e=e.entanglements,t&=r;0n;n++)t.push(e);return t}function ny(e,t,n){e.pendingLanes|=t,t!==536870912&&(e.suspendedLanes=0,e.pingedLanes=0),e=e.eventTimes,t=31-Al(t),e[t]=n}function zae(e,t){var n=e.pendingLanes&~t;e.pendingLanes=t,e.suspendedLanes=0,e.pingedLanes=0,e.expiredLanes&=t,e.mutableReadLanes&=t,e.entangledLanes&=t,t=e.entanglements;var r=e.eventTimes;for(e=e.expirationTimes;0=bg),_E=String.fromCharCode(32),TE=!1;function dV(e,t){switch(e){case"keyup":return moe.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function fV(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var Pf=!1;function voe(e,t){switch(e){case"compositionend":return fV(t);case"keypress":return t.which!==32?null:(TE=!0,_E);case"textInput":return e=t.data,e===_E&&TE?null:e;default:return null}}function yoe(e,t){if(Pf)return e==="compositionend"||!U5&&dV(e,t)?(e=uV(),b1=z5=Eu=null,Pf=!1,e):null;switch(e){case"paste":return null;case"keypress":if(!(t.ctrlKey||t.altKey||t.metaKey)||t.ctrlKey&&t.altKey){if(t.char&&1=t)return{node:n,offset:t-e};e=r}e:{for(;n;){if(n.nextSibling){n=n.nextSibling;break e}n=n.parentNode}n=void 0}n=ME(n)}}function gV(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?gV(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function vV(){for(var e=window,t=ab();t instanceof e.HTMLIFrameElement;){try{var n=typeof t.contentWindow.location.href=="string"}catch{n=!1}if(n)e=t.contentWindow;else break;t=ab(e.document)}return t}function H5(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&(t==="input"&&(e.type==="text"||e.type==="search"||e.type==="tel"||e.type==="url"||e.type==="password")||t==="textarea"||e.contentEditable==="true")}function Moe(e){var t=vV(),n=e.focusedElem,r=e.selectionRange;if(t!==n&&n&&n.ownerDocument&&gV(n.ownerDocument.documentElement,n)){if(r!==null&&H5(n)){if(t=r.start,e=r.end,e===void 0&&(e=t),"selectionStart"in n)n.selectionStart=t,n.selectionEnd=Math.min(e,n.value.length);else if(e=(t=n.ownerDocument||document)&&t.defaultView||window,e.getSelection){e=e.getSelection();var l=n.textContent.length,o=Math.min(r.start,l);r=r.end===void 0?o:Math.min(r.end,l),!e.extend&&o>r&&(l=r,r=o,o=l),l=PE(n,o);var i=PE(n,r);l&&i&&(e.rangeCount!==1||e.anchorNode!==l.node||e.anchorOffset!==l.offset||e.focusNode!==i.node||e.focusOffset!==i.offset)&&(t=t.createRange(),t.setStart(l.node,l.offset),e.removeAllRanges(),o>r?(e.addRange(t),e.extend(i.node,i.offset)):(t.setEnd(i.node,i.offset),e.addRange(t)))}}for(t=[],e=n;e=e.parentNode;)e.nodeType===1&&t.push({element:e,left:e.scrollLeft,top:e.scrollTop});for(typeof n.focus=="function"&&n.focus(),n=0;n=document.documentMode,Of=null,I3=null,wg=null,$3=!1;function OE(e,t,n){var r=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;$3||Of==null||Of!==ab(r)||(r=Of,"selectionStart"in r&&H5(r)?r={start:r.selectionStart,end:r.selectionEnd}:(r=(r.ownerDocument&&r.ownerDocument.defaultView||window).getSelection(),r={anchorNode:r.anchorNode,anchorOffset:r.anchorOffset,focusNode:r.focusNode,focusOffset:r.focusOffset}),wg&&Kg(wg,r)||(wg=r,r=db(I3,"onSelect"),0Rf||(e.current=V3[Rf],V3[Rf]=null,Rf--)}function oa(e,t){Rf++,V3[Rf]=e.current,e.current=t}var Ju={},Uo=uc(Ju),ui=uc(!1),ad=Ju;function hp(e,t){var n=e.type.contextTypes;if(!n)return Ju;var r=e.stateNode;if(r&&r.__reactInternalMemoizedUnmaskedChildContext===t)return r.__reactInternalMemoizedMaskedChildContext;var l={},o;for(o in n)l[o]=t[o];return r&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=l),l}function ci(e){return e=e.childContextTypes,e!=null}function pb(){da(ui),da(Uo)}function $E(e,t,n){if(Uo.current!==Ju)throw Error(dn(168));oa(Uo,t),oa(ui,n)}function CV(e,t,n){var r=e.stateNode;if(t=t.childContextTypes,typeof r.getChildContext!="function")return n;r=r.getChildContext();for(var l in r)if(!(l in t))throw Error(dn(108,_ae(e)||"Unknown",l));return Oa({},n,r)}function hb(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||Ju,ad=Uo.current,oa(Uo,e),oa(ui,ui.current),!0}function NE(e,t,n){var r=e.stateNode;if(!r)throw Error(dn(169));n?(e=CV(e,t,ad),r.__reactInternalMemoizedMergedChildContext=e,da(ui),da(Uo),oa(Uo,e)):da(ui),oa(ui,n)}var Ls=null,Qx=!1,hk=!1;function MV(e){Ls===null?Ls=[e]:Ls.push(e)}function joe(e){Qx=!0,MV(e)}function cc(){if(!hk&&Ls!==null){hk=!0;var e=0,t=Wr;try{var n=Ls;for(Wr=1;e>=i,l-=i,$s=1<<32-Al(t)+l|n<k?(S=T,T=null):S=T.sibling;var C=f(v,T,b[k],w);if(C===null){T===null&&(T=S);break}e&&T&&C.alternate===null&&t(v,T),m=o(C,m,k),x===null?_=C:x.sibling=C,x=C,T=S}if(k===b.length)return n(v,T),wa&&Oc(v,k),_;if(T===null){for(;kk?(S=T,T=null):S=T.sibling;var M=f(v,T,C.value,w);if(M===null){T===null&&(T=S);break}e&&T&&M.alternate===null&&t(v,T),m=o(M,m,k),x===null?_=M:x.sibling=M,x=M,T=S}if(C.done)return n(v,T),wa&&Oc(v,k),_;if(T===null){for(;!C.done;k++,C=b.next())C=d(v,C.value,w),C!==null&&(m=o(C,m,k),x===null?_=C:x.sibling=C,x=C);return wa&&Oc(v,k),_}for(T=r(v,T);!C.done;k++,C=b.next())C=p(T,v,k,C.value,w),C!==null&&(e&&C.alternate!==null&&T.delete(C.key===null?k:C.key),m=o(C,m,k),x===null?_=C:x.sibling=C,x=C);return e&&T.forEach(function(O){return t(v,O)}),wa&&Oc(v,k),_}function y(v,m,b,w){if(typeof b=="object"&&b!==null&&b.type===Mf&&b.key===null&&(b=b.props.children),typeof b=="object"&&b!==null){switch(b.$$typeof){case p0:e:{for(var _=b.key,x=m;x!==null;){if(x.key===_){if(_=b.type,_===Mf){if(x.tag===7){n(v,x.sibling),m=l(x,b.props.children),m.return=v,v=m;break e}}else if(x.elementType===_||typeof _=="object"&&_!==null&&_.$$typeof===Mu&&UE(_)===x.type){n(v,x.sibling),m=l(x,b.props),m.ref=Bh(v,x,b),m.return=v,v=m;break e}n(v,x);break}else t(v,x);x=x.sibling}b.type===Mf?(m=Qc(b.props.children,v.mode,w,b.key),m.return=v,v=m):(w=M1(b.type,b.key,b.props,null,v.mode,w),w.ref=Bh(v,m,b),w.return=v,v=w)}return i(v);case Cf:e:{for(x=b.key;m!==null;){if(m.key===x)if(m.tag===4&&m.stateNode.containerInfo===b.containerInfo&&m.stateNode.implementation===b.implementation){n(v,m.sibling),m=l(m,b.children||[]),m.return=v,v=m;break e}else{n(v,m);break}else t(v,m);m=m.sibling}m=_k(b,v.mode,w),m.return=v,v=m}return i(v);case Mu:return x=b._init,y(v,m,x(b._payload),w)}if(rg(b))return g(v,m,b,w);if(Ih(b))return h(v,m,b,w);k0(v,b)}return typeof b=="string"&&b!==""||typeof b=="number"?(b=""+b,m!==null&&m.tag===6?(n(v,m.sibling),m=l(m,b),m.return=v,v=m):(n(v,m),m=wk(b,v.mode,w),m.return=v,v=m),i(v)):n(v,m)}return y}var gp=IV(!0),$V=IV(!1),oy={},us=uc(oy),ev=uc(oy),tv=uc(oy);function Vc(e){if(e===oy)throw Error(dn(174));return e}function eO(e,t){switch(oa(tv,t),oa(ev,e),oa(us,oy),e=t.nodeType,e){case 9:case 11:t=(t=t.documentElement)?t.namespaceURI:S3(null,"");break;default:e=e===8?t.parentNode:t,t=e.namespaceURI||null,e=e.tagName,t=S3(t,e)}da(us),oa(us,t)}function vp(){da(us),da(ev),da(tv)}function NV(e){Vc(tv.current);var t=Vc(us.current),n=S3(t,e.type);t!==n&&(oa(ev,e),oa(us,n))}function tO(e){ev.current===e&&(da(us),da(ev))}var Ca=uc(0);function xb(e){for(var t=e;t!==null;){if(t.tag===13){var n=t.memoizedState;if(n!==null&&(n=n.dehydrated,n===null||n.data==="$?"||n.data==="$!"))return t}else if(t.tag===19&&t.memoizedProps.revealOrder!==void 0){if(t.flags&128)return t}else if(t.child!==null){t.child.return=t,t=t.child;continue}if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}return null}var mk=[];function nO(){for(var e=0;en?n:4,e(!0);var r=gk.transition;gk.transition={};try{e(!1),t()}finally{Wr=n,gk.transition=r}}function QV(){return ul().memoizedState}function Woe(e,t,n){var r=Wu(e);if(n={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null},eW(e))tW(t,n);else if(n=AV(e,t,n,r),n!==null){var l=Jo();Rl(n,e,r,l),nW(n,t,r)}}function Uoe(e,t,n){var r=Wu(e),l={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null};if(eW(e))tW(t,l);else{var o=e.alternate;if(e.lanes===0&&(o===null||o.lanes===0)&&(o=t.lastRenderedReducer,o!==null))try{var i=t.lastRenderedState,a=o(i,n);if(l.hasEagerState=!0,l.eagerState=a,Il(a,i)){var s=t.interleaved;s===null?(l.next=l,J5(t)):(l.next=s.next,s.next=l),t.interleaved=l;return}}catch{}finally{}n=AV(e,t,l,r),n!==null&&(l=Jo(),Rl(n,e,r,l),nW(n,t,r))}}function eW(e){var t=e.alternate;return e===Pa||t!==null&&t===Pa}function tW(e,t){_g=wb=!0;var n=e.pending;n===null?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function nW(e,t,n){if(n&4194240){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,F5(e,n)}}var _b={readContext:sl,useCallback:Fo,useContext:Fo,useEffect:Fo,useImperativeHandle:Fo,useInsertionEffect:Fo,useLayoutEffect:Fo,useMemo:Fo,useReducer:Fo,useRef:Fo,useState:Fo,useDebugValue:Fo,useDeferredValue:Fo,useTransition:Fo,useMutableSource:Fo,useSyncExternalStore:Fo,useId:Fo,unstable_isNewReconciler:!1},Hoe={readContext:sl,useCallback:function(e,t){return Gl().memoizedState=[e,t===void 0?null:t],e},useContext:sl,useEffect:qE,useImperativeHandle:function(e,t,n){return n=n!=null?n.concat([e]):null,T1(4194308,4,GV.bind(null,t,e),n)},useLayoutEffect:function(e,t){return T1(4194308,4,e,t)},useInsertionEffect:function(e,t){return T1(4,2,e,t)},useMemo:function(e,t){var n=Gl();return t=t===void 0?null:t,e=e(),n.memoizedState=[e,t],e},useReducer:function(e,t,n){var r=Gl();return t=n!==void 0?n(t):t,r.memoizedState=r.baseState=t,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:t},r.queue=e,e=e.dispatch=Woe.bind(null,Pa,e),[r.memoizedState,e]},useRef:function(e){var t=Gl();return e={current:e},t.memoizedState=e},useState:HE,useDebugValue:lO,useDeferredValue:function(e){return Gl().memoizedState=e},useTransition:function(){var e=HE(!1),t=e[0];return e=Voe.bind(null,e[1]),Gl().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,n){var r=Pa,l=Gl();if(wa){if(n===void 0)throw Error(dn(407));n=n()}else{if(n=t(),yo===null)throw Error(dn(349));id&30||BV(r,t,n)}l.memoizedState=n;var o={value:n,getSnapshot:t};return l.queue=o,qE(VV.bind(null,r,o,e),[e]),r.flags|=2048,av(9,zV.bind(null,r,o,n,t),void 0,null),n},useId:function(){var e=Gl(),t=yo.identifierPrefix;if(wa){var n=Ns,r=$s;n=(r&~(1<<32-Al(r)-1)).toString(32)+n,t=":"+t+"R"+n,n=nv++,0<\/script>",e=e.removeChild(e.firstChild)):typeof r.is=="string"?e=i.createElement(n,{is:r.is}):(e=i.createElement(n),n==="select"&&(i=e,r.multiple?i.multiple=!0:r.size&&(i.size=r.size))):e=i.createElementNS(e,n),e[Ql]=t,e[Qg]=r,dW(e,t,!1,!1),t.stateNode=e;e:{switch(i=M3(n,r),n){case"dialog":ua("cancel",e),ua("close",e),l=r;break;case"iframe":case"object":case"embed":ua("load",e),l=r;break;case"video":case"audio":for(l=0;lbp&&(t.flags|=128,r=!0,zh(o,!1),t.lanes=4194304)}else{if(!r)if(e=xb(i),e!==null){if(t.flags|=128,r=!0,n=e.updateQueue,n!==null&&(t.updateQueue=n,t.flags|=4),zh(o,!0),o.tail===null&&o.tailMode==="hidden"&&!i.alternate&&!wa)return jo(t),null}else 2*Wa()-o.renderingStartTime>bp&&n!==1073741824&&(t.flags|=128,r=!0,zh(o,!1),t.lanes=4194304);o.isBackwards?(i.sibling=t.child,t.child=i):(n=o.last,n!==null?n.sibling=i:t.child=i,o.last=i)}return o.tail!==null?(t=o.tail,o.rendering=t,o.tail=t.sibling,o.renderingStartTime=Wa(),t.sibling=null,n=Ca.current,oa(Ca,r?n&1|2:n&1),t):(jo(t),null);case 22:case 23:return pO(),r=t.memoizedState!==null,e!==null&&e.memoizedState!==null!==r&&(t.flags|=8192),r&&t.mode&1?ki&1073741824&&(jo(t),t.subtreeFlags&6&&(t.flags|=8192)):jo(t),null;case 24:return null;case 25:return null}throw Error(dn(156,t.tag))}function Qoe(e,t){switch(Y5(t),t.tag){case 1:return ci(t.type)&&pb(),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return vp(),da(ui),da(Uo),nO(),e=t.flags,e&65536&&!(e&128)?(t.flags=e&-65537|128,t):null;case 5:return tO(t),null;case 13:if(da(Ca),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(dn(340));mp()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return da(Ca),null;case 4:return vp(),null;case 10:return X5(t.type._context),null;case 22:case 23:return pO(),null;case 24:return null;default:return null}}var C0=!1,Vo=!1,eie=typeof WeakSet=="function"?WeakSet:Set,Ln=null;function $f(e,t){var n=e.ref;if(n!==null)if(typeof n=="function")try{n(null)}catch(r){Na(e,t,r)}else n.current=null}function eM(e,t,n){try{n()}catch(r){Na(e,t,r)}}var t8=!1;function tie(e,t){if(N3=ub,e=vV(),H5(e)){if("selectionStart"in e)var n={start:e.selectionStart,end:e.selectionEnd};else e:{n=(n=e.ownerDocument)&&n.defaultView||window;var r=n.getSelection&&n.getSelection();if(r&&r.rangeCount!==0){n=r.anchorNode;var l=r.anchorOffset,o=r.focusNode;r=r.focusOffset;try{n.nodeType,o.nodeType}catch{n=null;break e}var i=0,a=-1,s=-1,u=0,c=0,d=e,f=null;t:for(;;){for(var p;d!==n||l!==0&&d.nodeType!==3||(a=i+l),d!==o||r!==0&&d.nodeType!==3||(s=i+r),d.nodeType===3&&(i+=d.nodeValue.length),(p=d.firstChild)!==null;)f=d,d=p;for(;;){if(d===e)break t;if(f===n&&++u===l&&(a=i),f===o&&++c===r&&(s=i),(p=d.nextSibling)!==null)break;d=f,f=d.parentNode}d=p}n=a===-1||s===-1?null:{start:a,end:s}}else n=null}n=n||{start:0,end:0}}else n=null;for(F3={focusedElem:e,selectionRange:n},ub=!1,Ln=t;Ln!==null;)if(t=Ln,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,Ln=e;else for(;Ln!==null;){t=Ln;try{var g=t.alternate;if(t.flags&1024)switch(t.tag){case 0:case 11:case 15:break;case 1:if(g!==null){var h=g.memoizedProps,y=g.memoizedState,v=t.stateNode,m=v.getSnapshotBeforeUpdate(t.elementType===t.type?h:Tl(t.type,h),y);v.__reactInternalSnapshotBeforeUpdate=m}break;case 3:var b=t.stateNode.containerInfo;b.nodeType===1?b.textContent="":b.nodeType===9&&b.documentElement&&b.removeChild(b.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(dn(163))}}catch(w){Na(t,t.return,w)}if(e=t.sibling,e!==null){e.return=t.return,Ln=e;break}Ln=t.return}return g=t8,t8=!1,g}function Tg(e,t,n){var r=t.updateQueue;if(r=r!==null?r.lastEffect:null,r!==null){var l=r=r.next;do{if((l.tag&e)===e){var o=l.destroy;l.destroy=void 0,o!==void 0&&eM(t,n,o)}l=l.next}while(l!==r)}}function n2(e,t){if(t=t.updateQueue,t=t!==null?t.lastEffect:null,t!==null){var n=t=t.next;do{if((n.tag&e)===e){var r=n.create;n.destroy=r()}n=n.next}while(n!==t)}}function tM(e){var t=e.ref;if(t!==null){var n=e.stateNode;switch(e.tag){case 5:e=n;break;default:e=n}typeof t=="function"?t(e):t.current=e}}function hW(e){var t=e.alternate;t!==null&&(e.alternate=null,hW(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&(delete t[Ql],delete t[Qg],delete t[z3],delete t[Noe],delete t[Foe])),e.stateNode=null,e.return=null,e.dependencies=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.stateNode=null,e.updateQueue=null}function mW(e){return e.tag===5||e.tag===3||e.tag===4}function n8(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||mW(e.return))return null;e=e.return}for(e.sibling.return=e.return,e=e.sibling;e.tag!==5&&e.tag!==6&&e.tag!==18;){if(e.flags&2||e.child===null||e.tag===4)continue e;e.child.return=e,e=e.child}if(!(e.flags&2))return e.stateNode}}function nM(e,t,n){var r=e.tag;if(r===5||r===6)e=e.stateNode,t?n.nodeType===8?n.parentNode.insertBefore(e,t):n.insertBefore(e,t):(n.nodeType===8?(t=n.parentNode,t.insertBefore(e,n)):(t=n,t.appendChild(e)),n=n._reactRootContainer,n!=null||t.onclick!==null||(t.onclick=fb));else if(r!==4&&(e=e.child,e!==null))for(nM(e,t,n),e=e.sibling;e!==null;)nM(e,t,n),e=e.sibling}function rM(e,t,n){var r=e.tag;if(r===5||r===6)e=e.stateNode,t?n.insertBefore(e,t):n.appendChild(e);else if(r!==4&&(e=e.child,e!==null))for(rM(e,t,n),e=e.sibling;e!==null;)rM(e,t,n),e=e.sibling}var Oo=null,kl=!1;function gu(e,t,n){for(n=n.child;n!==null;)gW(e,t,n),n=n.sibling}function gW(e,t,n){if(ss&&typeof ss.onCommitFiberUnmount=="function")try{ss.onCommitFiberUnmount(Gx,n)}catch{}switch(n.tag){case 5:Vo||$f(n,t);case 6:var r=Oo,l=kl;Oo=null,gu(e,t,n),Oo=r,kl=l,Oo!==null&&(kl?(e=Oo,n=n.stateNode,e.nodeType===8?e.parentNode.removeChild(n):e.removeChild(n)):Oo.removeChild(n.stateNode));break;case 18:Oo!==null&&(kl?(e=Oo,n=n.stateNode,e.nodeType===8?pk(e.parentNode,n):e.nodeType===1&&pk(e,n),Gg(e)):pk(Oo,n.stateNode));break;case 4:r=Oo,l=kl,Oo=n.stateNode.containerInfo,kl=!0,gu(e,t,n),Oo=r,kl=l;break;case 0:case 11:case 14:case 15:if(!Vo&&(r=n.updateQueue,r!==null&&(r=r.lastEffect,r!==null))){l=r=r.next;do{var o=l,i=o.destroy;o=o.tag,i!==void 0&&(o&2||o&4)&&eM(n,t,i),l=l.next}while(l!==r)}gu(e,t,n);break;case 1:if(!Vo&&($f(n,t),r=n.stateNode,typeof r.componentWillUnmount=="function"))try{r.props=n.memoizedProps,r.state=n.memoizedState,r.componentWillUnmount()}catch(a){Na(n,t,a)}gu(e,t,n);break;case 21:gu(e,t,n);break;case 22:n.mode&1?(Vo=(r=Vo)||n.memoizedState!==null,gu(e,t,n),Vo=r):gu(e,t,n);break;default:gu(e,t,n)}}function r8(e){var t=e.updateQueue;if(t!==null){e.updateQueue=null;var n=e.stateNode;n===null&&(n=e.stateNode=new eie),t.forEach(function(r){var l=cie.bind(null,e,r);n.has(r)||(n.add(r),r.then(l,l))})}}function wl(e,t){var n=t.deletions;if(n!==null)for(var r=0;rl&&(l=i),r&=~o}if(r=l,r=Wa()-r,r=(120>r?120:480>r?480:1080>r?1080:1920>r?1920:3e3>r?3e3:4320>r?4320:1960*rie(r/1960))-r,10e?16:e,Lu===null)var r=!1;else{if(e=Lu,Lu=null,Sb=0,Cr&6)throw Error(dn(331));var l=Cr;for(Cr|=4,Ln=e.current;Ln!==null;){var o=Ln,i=o.child;if(Ln.flags&16){var a=o.deletions;if(a!==null){for(var s=0;sWa()-dO?Jc(e,0):cO|=n),di(e,t)}function kW(e,t){t===0&&(e.mode&1?(t=v0,v0<<=1,!(v0&130023424)&&(v0=4194304)):t=1);var n=Jo();e=Ys(e,t),e!==null&&(ny(e,t,n),di(e,n))}function uie(e){var t=e.memoizedState,n=0;t!==null&&(n=t.retryLane),kW(e,n)}function cie(e,t){var n=0;switch(e.tag){case 13:var r=e.stateNode,l=e.memoizedState;l!==null&&(n=l.retryLane);break;case 19:r=e.stateNode;break;default:throw Error(dn(314))}r!==null&&r.delete(t),kW(e,n)}var SW;SW=function(e,t,n){if(e!==null)if(e.memoizedProps!==t.pendingProps||ui.current)si=!0;else{if(!(e.lanes&n)&&!(t.flags&128))return si=!1,Xoe(e,t,n);si=!!(e.flags&131072)}else si=!1,wa&&t.flags&1048576&&PV(t,gb,t.index);switch(t.lanes=0,t.tag){case 2:var r=t.type;k1(e,t),e=t.pendingProps;var l=hp(t,Uo.current);Kf(t,n),l=aO(null,t,r,e,l,n);var o=oO();return t.flags|=1,typeof l=="object"&&l!==null&&typeof l.render=="function"&&l.$$typeof===void 0?(t.tag=1,t.memoizedState=null,t.updateQueue=null,ci(r)?(o=!0,hb(t)):o=!1,t.memoizedState=l.state!==null&&l.state!==void 0?l.state:null,Q5(t),l.updater=e2,t.stateNode=l,l._reactInternals=t,Y3(t,r,e,n),t=K3(null,t,r,!0,o,n)):(t.tag=0,wa&&o&&q5(t),Ko(null,t,l,n),t=t.child),t;case 16:r=t.elementType;e:{switch(k1(e,t),e=t.pendingProps,l=r._init,r=l(r._payload),t.type=r,l=t.tag=fie(r),e=Tl(r,e),l){case 0:t=Z3(null,t,r,e,n);break e;case 1:t=JE(null,t,r,e,n);break e;case 11:t=KE(null,t,r,e,n);break e;case 14:t=XE(null,t,r,Tl(r.type,e),n);break e}throw Error(dn(306,r,""))}return t;case 0:return r=t.type,l=t.pendingProps,l=t.elementType===r?l:Tl(r,l),Z3(e,t,r,l,n);case 1:return r=t.type,l=t.pendingProps,l=t.elementType===r?l:Tl(r,l),JE(e,t,r,l,n);case 3:e:{if(sW(t),e===null)throw Error(dn(387));r=t.pendingProps,o=t.memoizedState,l=o.element,RV(e,t),bb(t,r,null,n);var i=t.memoizedState;if(r=i.element,o.isDehydrated)if(o={element:r,isDehydrated:!1,cache:i.cache,pendingSuspenseBoundaries:i.pendingSuspenseBoundaries,transitions:i.transitions},t.updateQueue.baseState=o,t.memoizedState=o,t.flags&256){l=yp(Error(dn(423)),t),t=QE(e,t,r,n,l);break e}else if(r!==l){l=yp(Error(dn(424)),t),t=QE(e,t,r,n,l);break e}else for(Pi=Bu(t.stateNode.containerInfo.firstChild),Ri=t,wa=!0,Cl=null,n=$V(t,null,r,n),t.child=n;n;)n.flags=n.flags&-3|4096,n=n.sibling;else{if(mp(),r===l){t=Gs(e,t,n);break e}Ko(e,t,r,n)}t=t.child}return t;case 5:return NV(t),e===null&&U3(t),r=t.type,l=t.pendingProps,o=e!==null?e.memoizedProps:null,i=l.children,j3(r,l)?i=null:o!==null&&j3(r,o)&&(t.flags|=32),lW(e,t),Ko(e,t,i,n),t.child;case 6:return e===null&&U3(t),null;case 13:return uW(e,t,n);case 4:return eO(t,t.stateNode.containerInfo),r=t.pendingProps,e===null?t.child=gp(t,null,r,n):Ko(e,t,r,n),t.child;case 11:return r=t.type,l=t.pendingProps,l=t.elementType===r?l:Tl(r,l),KE(e,t,r,l,n);case 7:return Ko(e,t,t.pendingProps,n),t.child;case 8:return Ko(e,t,t.pendingProps.children,n),t.child;case 12:return Ko(e,t,t.pendingProps.children,n),t.child;case 10:e:{if(r=t.type._context,l=t.pendingProps,o=t.memoizedProps,i=l.value,oa(vb,r._currentValue),r._currentValue=i,o!==null)if(Il(o.value,i)){if(o.children===l.children&&!ui.current){t=Gs(e,t,n);break e}}else for(o=t.child,o!==null&&(o.return=t);o!==null;){var a=o.dependencies;if(a!==null){i=o.child;for(var s=a.firstContext;s!==null;){if(s.context===r){if(o.tag===1){s=Vs(-1,n&-n),s.tag=2;var u=o.updateQueue;if(u!==null){u=u.shared;var c=u.pending;c===null?s.next=s:(s.next=c.next,c.next=s),u.pending=s}}o.lanes|=n,s=o.alternate,s!==null&&(s.lanes|=n),H3(o.return,n,t),a.lanes|=n;break}s=s.next}}else if(o.tag===10)i=o.type===t.type?null:o.child;else if(o.tag===18){if(i=o.return,i===null)throw Error(dn(341));i.lanes|=n,a=i.alternate,a!==null&&(a.lanes|=n),H3(i,n,t),i=o.sibling}else i=o.child;if(i!==null)i.return=o;else for(i=o;i!==null;){if(i===t){i=null;break}if(o=i.sibling,o!==null){o.return=i.return,i=o;break}i=i.return}o=i}Ko(e,t,l.children,n),t=t.child}return t;case 9:return l=t.type,r=t.pendingProps.children,Kf(t,n),l=sl(l),r=r(l),t.flags|=1,Ko(e,t,r,n),t.child;case 14:return r=t.type,l=Tl(r,t.pendingProps),l=Tl(r.type,l),XE(e,t,r,l,n);case 15:return oW(e,t,t.type,t.pendingProps,n);case 17:return r=t.type,l=t.pendingProps,l=t.elementType===r?l:Tl(r,l),k1(e,t),t.tag=1,ci(r)?(e=!0,hb(t)):e=!1,Kf(t,n),LV(t,r,l),Y3(t,r,l,n),K3(null,t,r,!0,e,n);case 19:return cW(e,t,n);case 22:return iW(e,t,n)}throw Error(dn(156,t.tag))};function CW(e,t){return Jz(e,t)}function die(e,t,n,r){this.tag=e,this.key=n,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=r,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function nl(e,t,n,r){return new die(e,t,n,r)}function mO(e){return e=e.prototype,!(!e||!e.isReactComponent)}function fie(e){if(typeof e=="function")return mO(e)?1:0;if(e!=null){if(e=e.$$typeof,e===L5)return 11;if(e===I5)return 14}return 2}function Uu(e,t){var n=e.alternate;return n===null?(n=nl(e.tag,t,e.key,e.mode),n.elementType=e.elementType,n.type=e.type,n.stateNode=e.stateNode,n.alternate=e,e.alternate=n):(n.pendingProps=t,n.type=e.type,n.flags=0,n.subtreeFlags=0,n.deletions=null),n.flags=e.flags&14680064,n.childLanes=e.childLanes,n.lanes=e.lanes,n.child=e.child,n.memoizedProps=e.memoizedProps,n.memoizedState=e.memoizedState,n.updateQueue=e.updateQueue,t=e.dependencies,n.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext},n.sibling=e.sibling,n.index=e.index,n.ref=e.ref,n}function M1(e,t,n,r,l,o){var i=2;if(r=e,typeof e=="function")mO(e)&&(i=1);else if(typeof e=="string")i=5;else e:switch(e){case Mf:return Qc(n.children,l,o,t);case E5:i=8,l|=8;break;case v3:return e=nl(12,n,t,l|2),e.elementType=v3,e.lanes=o,e;case y3:return e=nl(13,n,t,l),e.elementType=y3,e.lanes=o,e;case b3:return e=nl(19,n,t,l),e.elementType=b3,e.lanes=o,e;case Iz:return a2(n,l,o,t);default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case Ez:i=10;break e;case Lz:i=9;break e;case L5:i=11;break e;case I5:i=14;break e;case Mu:i=16,r=null;break e}throw Error(dn(130,e==null?e:typeof e,""))}return t=nl(i,n,t,l),t.elementType=e,t.type=r,t.lanes=o,t}function Qc(e,t,n,r){return e=nl(7,e,r,t),e.lanes=n,e}function a2(e,t,n,r){return e=nl(22,e,r,t),e.elementType=Iz,e.lanes=n,e.stateNode={isHidden:!1},e}function wk(e,t,n){return e=nl(6,e,null,t),e.lanes=n,e}function _k(e,t,n){return t=nl(4,e.children!==null?e.children:[],e.key,t),t.lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function pie(e,t,n,r,l){this.tag=t,this.containerInfo=e,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.pendingContext=this.context=null,this.callbackPriority=0,this.eventTimes=nk(0),this.expirationTimes=nk(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=nk(0),this.identifierPrefix=r,this.onRecoverableError=l,this.mutableSourceEagerHydrationData=null}function gO(e,t,n,r,l,o,i,a,s){return e=new pie(e,t,n,a,s),t===1?(t=1,o===!0&&(t|=8)):t=0,o=nl(3,null,null,t),e.current=o,o.stateNode=e,o.memoizedState={element:r,isDehydrated:n,cache:null,transitions:null,pendingSuspenseBoundaries:null},Q5(o),e}function hie(e,t,n){var r=3"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(DW)}catch(e){console.error(e)}}DW(),Pz.exports=zi;var Ad=Pz.exports;const ig=cr(Ad);var d8=Ad;m3.createRoot=d8.createRoot,m3.hydrateRoot=d8.hydrateRoot;/** - * @remix-run/router v1.9.0 - * - * Copyright (c) Remix Software Inc. - * - * This source code is licensed under the MIT license found in the - * LICENSE.md file in the root directory of this source tree. - * - * @license MIT - */function xa(){return xa=Object.assign?Object.assign.bind():function(e){for(var t=1;t"u")throw new Error(t)}function xp(e,t){if(!e){typeof console<"u"&&console.warn(t);try{throw new Error(t)}catch{}}}function xie(){return Math.random().toString(36).substr(2,8)}function p8(e,t){return{usr:e.state,key:e.key,idx:t}}function iv(e,t,n,r){return n===void 0&&(n=null),xa({pathname:typeof e=="string"?e:e.pathname,search:"",hash:""},typeof t=="string"?ru(t):t,{state:n,key:t&&t.key||r||xie()})}function Qu(e){let{pathname:t="/",search:n="",hash:r=""}=e;return n&&n!=="?"&&(t+=n.charAt(0)==="?"?n:"?"+n),r&&r!=="#"&&(t+=r.charAt(0)==="#"?r:"#"+r),t}function ru(e){let t={};if(e){let n=e.indexOf("#");n>=0&&(t.hash=e.substr(n),e=e.substr(0,n));let r=e.indexOf("?");r>=0&&(t.search=e.substr(r),e=e.substr(0,r)),e&&(t.pathname=e)}return t}function wie(e,t,n,r){r===void 0&&(r={});let{window:l=document.defaultView,v5Compat:o=!1}=r,i=l.history,a=Qa.Pop,s=null,u=c();u==null&&(u=0,i.replaceState(xa({},i.state,{idx:u}),""));function c(){return(i.state||{idx:null}).idx}function d(){a=Qa.Pop;let y=c(),v=y==null?null:y-u;u=y,s&&s({action:a,location:h.location,delta:v})}function f(y,v){a=Qa.Push;let m=iv(h.location,y,v);n&&n(m,y),u=c()+1;let b=p8(m,u),w=h.createHref(m);try{i.pushState(b,"",w)}catch(_){if(_ instanceof DOMException&&_.name==="DataCloneError")throw _;l.location.assign(w)}o&&s&&s({action:a,location:h.location,delta:1})}function p(y,v){a=Qa.Replace;let m=iv(h.location,y,v);n&&n(m,y),u=c();let b=p8(m,u),w=h.createHref(m);i.replaceState(b,"",w),o&&s&&s({action:a,location:h.location,delta:0})}function g(y){let v=l.location.origin!=="null"?l.location.origin:l.location.href,m=typeof y=="string"?y:Qu(y);return mr(v,"No window.location.(origin|href) available to create URL for href: "+m),new URL(m,v)}let h={get action(){return a},get location(){return e(l,i)},listen(y){if(s)throw new Error("A history only accepts one active listener");return l.addEventListener(f8,d),s=y,()=>{l.removeEventListener(f8,d),s=null}},createHref(y){return t(l,y)},createURL:g,encodeLocation(y){let v=g(y);return{pathname:v.pathname,search:v.search,hash:v.hash}},push:f,replace:p,go(y){return i.go(y)}};return h}var Va;(function(e){e.data="data",e.deferred="deferred",e.redirect="redirect",e.error="error"})(Va||(Va={}));const _ie=new Set(["lazy","caseSensitive","path","id","index","children"]);function Tie(e){return e.index===!0}function sM(e,t,n,r){return n===void 0&&(n=[]),r===void 0&&(r={}),e.map((l,o)=>{let i=[...n,o],a=typeof l.id=="string"?l.id:i.join("-");if(mr(l.index!==!0||!l.children,"Cannot specify children on an index route"),mr(!r[a],'Found a route id collision on id "'+a+`". Route id's must be globally unique within Data Router usages`),Tie(l)){let s=xa({},l,t(l),{id:a});return r[a]=s,s}else{let s=xa({},l,t(l),{id:a,children:void 0});return r[a]=s,l.children&&(s.children=sM(l.children,t,i,r)),s}})}function Ff(e,t,n){n===void 0&&(n="/");let r=typeof t=="string"?ru(t):t,l=ec(r.pathname||"/",n);if(l==null)return null;let o=RW(e);kie(o);let i=null;for(let a=0;i==null&&a{let s={relativePath:a===void 0?o.path||"":a,caseSensitive:o.caseSensitive===!0,childrenIndex:i,route:o};s.relativePath.startsWith("/")&&(mr(s.relativePath.startsWith(r),'Absolute route path "'+s.relativePath+'" nested under path '+('"'+r+'" is not valid. An absolute child route path ')+"must start with the combined path of all its parent routes."),s.relativePath=s.relativePath.slice(r.length));let u=cs([r,s.relativePath]),c=n.concat(s);o.children&&o.children.length>0&&(mr(o.index!==!0,"Index routes must not have child routes. Please remove "+('all child routes from route path "'+u+'".')),RW(o.children,t,c,u)),!(o.path==null&&!o.index)&&t.push({path:u,score:Aie(u,o.index),routesMeta:c})};return e.forEach((o,i)=>{var a;if(o.path===""||!((a=o.path)!=null&&a.includes("?")))l(o,i);else for(let s of EW(o.path))l(o,i,s)}),t}function EW(e){let t=e.split("/");if(t.length===0)return[];let[n,...r]=t,l=n.endsWith("?"),o=n.replace(/\?$/,"");if(r.length===0)return l?[o,""]:[o];let i=EW(r.join("/")),a=[];return a.push(...i.map(s=>s===""?o:[o,s].join("/"))),l&&a.push(...i),a.map(s=>e.startsWith("/")&&s===""?"/":s)}function kie(e){e.sort((t,n)=>t.score!==n.score?n.score-t.score:Rie(t.routesMeta.map(r=>r.childrenIndex),n.routesMeta.map(r=>r.childrenIndex)))}const Sie=/^:\w+$/,Cie=3,Mie=2,Pie=1,Oie=10,Die=-2,h8=e=>e==="*";function Aie(e,t){let n=e.split("/"),r=n.length;return n.some(h8)&&(r+=Die),t&&(r+=Mie),n.filter(l=>!h8(l)).reduce((l,o)=>l+(Sie.test(o)?Cie:o===""?Pie:Oie),r)}function Rie(e,t){return e.length===t.length&&e.slice(0,-1).every((r,l)=>r===t[l])?e[e.length-1]-t[t.length-1]:0}function Eie(e,t){let{routesMeta:n}=e,r={},l="/",o=[];for(let i=0;i{if(c==="*"){let f=a[d]||"";i=o.slice(0,o.length-f.length).replace(/(.)\/+$/,"$1")}return u[c]=Nie(a[d]||"",c),u},{}),pathname:o,pathnameBase:i,pattern:e}}function Iie(e,t,n){t===void 0&&(t=!1),n===void 0&&(n=!0),xp(e==="*"||!e.endsWith("*")||e.endsWith("/*"),'Route path "'+e+'" will be treated as if it were '+('"'+e.replace(/\*$/,"/*")+'" because the `*` character must ')+"always follow a `/` in the pattern. To get rid of this warning, "+('please change the route path to "'+e.replace(/\*$/,"/*")+'".'));let r=[],l="^"+e.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^$?{}|()[\]]/g,"\\$&").replace(/\/:(\w+)/g,(i,a)=>(r.push(a),"/([^\\/]+)"));return e.endsWith("*")?(r.push("*"),l+=e==="*"||e==="/*"?"(.*)$":"(?:\\/(.+)|\\/*)$"):n?l+="\\/*$":e!==""&&e!=="/"&&(l+="(?:(?=\\/|$))"),[new RegExp(l,t?void 0:"i"),r]}function $ie(e){try{return decodeURI(e)}catch(t){return xp(!1,'The URL path "'+e+'" could not be decoded because it is is a malformed URL segment. This is probably due to a bad percent '+("encoding ("+t+").")),e}}function Nie(e,t){try{return decodeURIComponent(e)}catch(n){return xp(!1,'The value for the URL param "'+t+'" will not be decoded because'+(' the string "'+e+'" is a malformed URL segment. This is probably')+(" due to a bad percent encoding ("+n+").")),e}}function ec(e,t){if(t==="/")return e;if(!e.toLowerCase().startsWith(t.toLowerCase()))return null;let n=t.endsWith("/")?t.length-1:t.length,r=e.charAt(n);return r&&r!=="/"?null:e.slice(n)||"/"}function Fie(e,t){t===void 0&&(t="/");let{pathname:n,search:r="",hash:l=""}=typeof e=="string"?ru(e):e;return{pathname:n?n.startsWith("/")?n:jie(n,t):t,search:zie(r),hash:Vie(l)}}function jie(e,t){let n=t.replace(/\/+$/,"").split("/");return e.split("/").forEach(l=>{l===".."?n.length>1&&n.pop():l!=="."&&n.push(l)}),n.length>1?n.join("/"):"/"}function Tk(e,t,n,r){return"Cannot include a '"+e+"' character in a manually specified "+("`to."+t+"` field ["+JSON.stringify(r)+"]. Please separate it out to the ")+("`to."+n+"` field. Alternatively you may provide the full path as ")+'a string in and the router will parse it for you.'}function u2(e){return e.filter((t,n)=>n===0||t.route.path&&t.route.path.length>0)}function xO(e,t,n,r){r===void 0&&(r=!1);let l;typeof e=="string"?l=ru(e):(l=xa({},e),mr(!l.pathname||!l.pathname.includes("?"),Tk("?","pathname","search",l)),mr(!l.pathname||!l.pathname.includes("#"),Tk("#","pathname","hash",l)),mr(!l.search||!l.search.includes("#"),Tk("#","search","hash",l)));let o=e===""||l.pathname==="",i=o?"/":l.pathname,a;if(r||i==null)a=n;else{let d=t.length-1;if(i.startsWith("..")){let f=i.split("/");for(;f[0]==="..";)f.shift(),d-=1;l.pathname=f.join("/")}a=d>=0?t[d]:"/"}let s=Fie(l,a),u=i&&i!=="/"&&i.endsWith("/"),c=(o||i===".")&&n.endsWith("/");return!s.pathname.endsWith("/")&&(u||c)&&(s.pathname+="/"),s}const cs=e=>e.join("/").replace(/\/\/+/g,"/"),Bie=e=>e.replace(/\/+$/,"").replace(/^\/*/,"/"),zie=e=>!e||e==="?"?"":e.startsWith("?")?e:"?"+e,Vie=e=>!e||e==="#"?"":e.startsWith("#")?e:"#"+e,Wie=function(t,n){n===void 0&&(n=302);let r=n;typeof r=="number"?r={status:r}:typeof r.status>"u"&&(r.status=302);let l=new Headers(r.headers);return l.set("Location",t),new Response(null,xa({},r,{headers:l}))};class wO{constructor(t,n,r,l){l===void 0&&(l=!1),this.status=t,this.statusText=n||"",this.internal=l,r instanceof Error?(this.data=r.toString(),this.error=r):this.data=r}}function LW(e){return e!=null&&typeof e.status=="number"&&typeof e.statusText=="string"&&typeof e.internal=="boolean"&&"data"in e}const IW=["post","put","patch","delete"],Uie=new Set(IW),Hie=["get",...IW],qie=new Set(Hie),Yie=new Set([301,302,303,307,308]),Gie=new Set([307,308]),kk={state:"idle",location:void 0,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0},Zie={state:"idle",data:void 0,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0},Wh={state:"unblocked",proceed:void 0,reset:void 0,location:void 0},$W=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,Kie=e=>({hasErrorBoundary:!!e.hasErrorBoundary});function Xie(e){const t=e.window?e.window:typeof window<"u"?window:void 0,n=typeof t<"u"&&typeof t.document<"u"&&typeof t.document.createElement<"u",r=!n;mr(e.routes.length>0,"You must provide a non-empty routes array to createRouter");let l;if(e.mapRouteProperties)l=e.mapRouteProperties;else if(e.detectErrorBoundary){let ye=e.detectErrorBoundary;l=ve=>({hasErrorBoundary:ye(ve)})}else l=Kie;let o={},i=sM(e.routes,l,void 0,o),a,s=e.basename||"/",u=xa({v7_normalizeFormMethod:!1,v7_prependBasename:!1},e.future),c=null,d=new Set,f=null,p=null,g=null,h=e.hydrationData!=null,y=Ff(i,e.history.location,s),v=null;if(y==null){let ye=Ki(404,{pathname:e.history.location.pathname}),{matches:ve,route:_e}=_8(i);y=ve,v={[_e.id]:ye}}let m=!y.some(ye=>ye.route.lazy)&&(!y.some(ye=>ye.route.loader)||e.hydrationData!=null),b,w={historyAction:e.history.action,location:e.history.location,matches:y,initialized:m,navigation:kk,restoreScrollPosition:e.hydrationData!=null?!1:null,preventScrollReset:!1,revalidation:"idle",loaderData:e.hydrationData&&e.hydrationData.loaderData||{},actionData:e.hydrationData&&e.hydrationData.actionData||null,errors:e.hydrationData&&e.hydrationData.errors||v,fetchers:new Map,blockers:new Map},_=Qa.Pop,x=!1,T,k=!1,S=!1,C=[],M=[],O=new Map,R=0,P=-1,A=new Map,L=new Set,D=new Map,$=new Map,N=new Map,j=!1;function z(){return c=e.history.listen(ye=>{let{action:ve,location:_e,delta:Ae}=ye;if(j){j=!1;return}xp(N.size===0||Ae!=null,"You are trying to use a blocker on a POP navigation to a location that was not created by @remix-run/router. This will fail silently in production. This can happen if you are navigating outside the router via `window.history.pushState`/`window.location.hash` instead of using router navigation APIs. This can also happen if you are using createHashRouter and the user manually changes the URL.");let Re=ke({currentLocation:w.location,nextLocation:_e,historyAction:ve});if(Re&&Ae!=null){j=!0,e.history.go(Ae*-1),fe(Re,{state:"blocked",location:_e,proceed(){fe(Re,{state:"proceeding",proceed:void 0,reset:void 0,location:_e}),e.history.go(Ae)},reset(){let Ee=new Map(w.blockers);Ee.set(Re,Wh),W({blockers:Ee})}});return}return U(ve,_e)}),w.initialized||U(Qa.Pop,w.location),b}function F(){c&&c(),d.clear(),T&&T.abort(),w.fetchers.forEach((ye,ve)=>ie(ve)),w.blockers.forEach((ye,ve)=>Oe(ve))}function E(ye){return d.add(ye),()=>d.delete(ye)}function W(ye){w=xa({},w,ye),d.forEach(ve=>ve(w))}function H(ye,ve){var _e,Ae;let Re=w.actionData!=null&&w.navigation.formMethod!=null&&Sl(w.navigation.formMethod)&&w.navigation.state==="loading"&&((_e=ye.state)==null?void 0:_e._isRedirect)!==!0,Ee;ve.actionData?Object.keys(ve.actionData).length>0?Ee=ve.actionData:Ee=null:Re?Ee=w.actionData:Ee=null;let Ie=ve.loaderData?w8(w.loaderData,ve.loaderData,ve.matches||[],ve.errors):w.loaderData,Ne=w.blockers;Ne.size>0&&(Ne=new Map(Ne),Ne.forEach((Ue,Ve)=>Ne.set(Ve,Wh)));let ze=x===!0||w.navigation.formMethod!=null&&Sl(w.navigation.formMethod)&&((Ae=ye.state)==null?void 0:Ae._isRedirect)!==!0;a&&(i=a,a=void 0),k||_===Qa.Pop||(_===Qa.Push?e.history.push(ye,ye.state):_===Qa.Replace&&e.history.replace(ye,ye.state)),W(xa({},ve,{actionData:Ee,loaderData:Ie,historyAction:_,location:ye,initialized:!0,navigation:kk,revalidation:"idle",restoreScrollPosition:he(ye,ve.matches||w.matches),preventScrollReset:ze,blockers:Ne})),_=Qa.Pop,x=!1,k=!1,S=!1,C=[],M=[]}async function I(ye,ve){if(typeof ye=="number"){e.history.go(ye);return}let _e=uM(w.location,w.matches,s,u.v7_prependBasename,ye,ve==null?void 0:ve.fromRouteId,ve==null?void 0:ve.relative),{path:Ae,submission:Re,error:Ee}=m8(u.v7_normalizeFormMethod,!1,_e,ve),Ie=w.location,Ne=iv(w.location,Ae,ve&&ve.state);Ne=xa({},Ne,e.history.encodeLocation(Ne));let ze=ve&&ve.replace!=null?ve.replace:void 0,Ue=Qa.Push;ze===!0?Ue=Qa.Replace:ze===!1||Re!=null&&Sl(Re.formMethod)&&Re.formAction===w.location.pathname+w.location.search&&(Ue=Qa.Replace);let Ve=ve&&"preventScrollReset"in ve?ve.preventScrollReset===!0:void 0,Ye=ke({currentLocation:Ie,nextLocation:Ne,historyAction:Ue});if(Ye){fe(Ye,{state:"blocked",location:Ne,proceed(){fe(Ye,{state:"proceeding",proceed:void 0,reset:void 0,location:Ne}),I(ye,ve)},reset(){let et=new Map(w.blockers);et.set(Ye,Wh),W({blockers:et})}});return}return await U(Ue,Ne,{submission:Re,pendingError:Ee,preventScrollReset:Ve,replace:ve&&ve.replace})}function V(){if(Q(),W({revalidation:"loading"}),w.navigation.state!=="submitting"){if(w.navigation.state==="idle"){U(w.historyAction,w.location,{startUninterruptedRevalidation:!0});return}U(_||w.historyAction,w.navigation.location,{overrideNavigation:w.navigation})}}async function U(ye,ve,_e){T&&T.abort(),T=null,_=ye,k=(_e&&_e.startUninterruptedRevalidation)===!0,Pe(w.location,w.matches),x=(_e&&_e.preventScrollReset)===!0;let Ae=a||i,Re=_e&&_e.overrideNavigation,Ee=Ff(Ae,ve,s);if(!Ee){let et=Ki(404,{pathname:ve.pathname}),{matches:at,route:ft}=_8(Ae);K(),H(ve,{matches:at,loaderData:{},errors:{[ft.id]:et}});return}if(w.initialized&&!S&&nle(w.location,ve)&&!(_e&&_e.submission&&Sl(_e.submission.formMethod))){H(ve,{matches:Ee});return}T=new AbortController;let Ie=Hh(e.history,ve,T.signal,_e&&_e.submission),Ne,ze;if(_e&&_e.pendingError)ze={[jf(Ee).route.id]:_e.pendingError};else if(_e&&_e.submission&&Sl(_e.submission.formMethod)){let et=await X(Ie,ve,_e.submission,Ee,{replace:_e.replace});if(et.shortCircuited)return;Ne=et.pendingActionData,ze=et.pendingActionError,Re=Sk(ve,_e.submission),Ie=new Request(Ie.url,{signal:Ie.signal})}let{shortCircuited:Ue,loaderData:Ve,errors:Ye}=await re(Ie,ve,Ee,Re,_e&&_e.submission,_e&&_e.fetcherSubmission,_e&&_e.replace,Ne,ze);Ue||(T=null,H(ve,xa({matches:Ee},Ne?{actionData:Ne}:{},{loaderData:Ve,errors:Ye})))}async function X(ye,ve,_e,Ae,Re){Re===void 0&&(Re={}),Q();let Ee=ile(ve,_e);W({navigation:Ee});let Ie,Ne=dM(Ae,ve);if(!Ne.route.action&&!Ne.route.lazy)Ie={type:Va.error,error:Ki(405,{method:ye.method,pathname:ve.pathname,routeId:Ne.route.id})};else if(Ie=await Uh("action",ye,Ne,Ae,o,l,s),ye.signal.aborted)return{shortCircuited:!0};if(Jf(Ie)){let ze;return Re&&Re.replace!=null?ze=Re.replace:ze=Ie.location===w.location.pathname+w.location.search,await Y(w,Ie,{submission:_e,replace:ze}),{shortCircuited:!0}}if(Cg(Ie)){let ze=jf(Ae,Ne.route.id);return(Re&&Re.replace)!==!0&&(_=Qa.Push),{pendingActionData:{},pendingActionError:{[ze.route.id]:Ie.error}}}if(Wc(Ie))throw Ki(400,{type:"defer-action"});return{pendingActionData:{[Ne.route.id]:Ie.data}}}async function re(ye,ve,_e,Ae,Re,Ee,Ie,Ne,ze){let Ue=Ae||Sk(ve,Re),Ve=Re||Ee||S8(Ue),Ye=a||i,[et,at]=g8(e.history,w,_e,Ve,ve,S,C,M,D,L,Ye,s,Ne,ze);if(K(Ot=>!(_e&&_e.some(Mt=>Mt.route.id===Ot))||et&&et.some(Mt=>Mt.route.id===Ot)),P=++R,et.length===0&&at.length===0){let Ot=be();return H(ve,xa({matches:_e,loaderData:{},errors:ze||null},Ne?{actionData:Ne}:{},Ot?{fetchers:new Map(w.fetchers)}:{})),{shortCircuited:!0}}if(!k){at.forEach(Mt=>{let ut=w.fetchers.get(Mt.key),Ge=qh(void 0,ut?ut.data:void 0);w.fetchers.set(Mt.key,Ge)});let Ot=Ne||w.actionData;W(xa({navigation:Ue},Ot?Object.keys(Ot).length===0?{actionData:null}:{actionData:Ot}:{},at.length>0?{fetchers:new Map(w.fetchers)}:{}))}at.forEach(Ot=>{O.has(Ot.key)&&le(Ot.key),Ot.controller&&O.set(Ot.key,Ot.controller)});let ft=()=>at.forEach(Ot=>le(Ot.key));T&&T.signal.addEventListener("abort",ft);let{results:vt,loaderResults:We,fetcherResults:je}=await J(w.matches,_e,et,at,ye);if(ye.signal.aborted)return{shortCircuited:!0};T&&T.signal.removeEventListener("abort",ft),at.forEach(Ot=>O.delete(Ot.key));let Qe=T8(vt);if(Qe){if(Qe.idx>=et.length){let Ot=at[Qe.idx-et.length].key;L.add(Ot)}return await Y(w,Qe.result,{replace:Ie}),{shortCircuited:!0}}let{loaderData:it,errors:Pt}=x8(w,_e,et,We,ze,at,je,$);$.forEach((Ot,Mt)=>{Ot.subscribe(ut=>{(ut||Ot.done)&&$.delete(Mt)})});let tt=be(),dt=Ce(P),gt=tt||dt||at.length>0;return xa({loaderData:it,errors:Pt},gt?{fetchers:new Map(w.fetchers)}:{})}function ne(ye){return w.fetchers.get(ye)||Zie}function Z(ye,ve,_e,Ae){if(r)throw new Error("router.fetch() was called during the server render, but it shouldn't be. You are likely calling a useFetcher() method in the body of your component. Try moving it to a useEffect or a callback.");O.has(ye)&&le(ye);let Re=a||i,Ee=uM(w.location,w.matches,s,u.v7_prependBasename,_e,ve,Ae==null?void 0:Ae.relative),Ie=Ff(Re,Ee,s);if(!Ie){ee(ye,ve,Ki(404,{pathname:Ee}));return}let{path:Ne,submission:ze,error:Ue}=m8(u.v7_normalizeFormMethod,!0,Ee,Ae);if(Ue){ee(ye,ve,Ue);return}let Ve=dM(Ie,Ne);if(x=(Ae&&Ae.preventScrollReset)===!0,ze&&Sl(ze.formMethod)){q(ye,ve,Ne,Ve,Ie,ze);return}D.set(ye,{routeId:ve,path:Ne}),G(ye,ve,Ne,Ve,Ie,ze)}async function q(ye,ve,_e,Ae,Re,Ee){if(Q(),D.delete(ye),!Ae.route.action&&!Ae.route.lazy){let xe=Ki(405,{method:Ee.formMethod,pathname:_e,routeId:ve});ee(ye,ve,xe);return}let Ie=w.fetchers.get(ye),Ne=lle(Ee,Ie);w.fetchers.set(ye,Ne),W({fetchers:new Map(w.fetchers)});let ze=new AbortController,Ue=Hh(e.history,_e,ze.signal,Ee);O.set(ye,ze);let Ve=R,Ye=await Uh("action",Ue,Ae,Re,o,l,s);if(Ue.signal.aborted){O.get(ye)===ze&&O.delete(ye);return}if(Jf(Ye))if(O.delete(ye),P>Ve){let xe=bf(void 0);w.fetchers.set(ye,xe),W({fetchers:new Map(w.fetchers)});return}else{L.add(ye);let xe=qh(Ee);return w.fetchers.set(ye,xe),W({fetchers:new Map(w.fetchers)}),Y(w,Ye,{fetcherSubmission:Ee})}if(Cg(Ye)){ee(ye,ve,Ye.error);return}if(Wc(Ye))throw Ki(400,{type:"defer-action"});let et=w.navigation.location||w.location,at=Hh(e.history,et,ze.signal),ft=a||i,vt=w.navigation.state!=="idle"?Ff(ft,w.navigation.location,s):w.matches;mr(vt,"Didn't find any matches after fetcher action");let We=++R;A.set(ye,We);let je=qh(Ee,Ye.data);w.fetchers.set(ye,je);let[Qe,it]=g8(e.history,w,vt,Ee,et,S,C,M,D,L,ft,s,{[Ae.route.id]:Ye.data},void 0);it.filter(xe=>xe.key!==ye).forEach(xe=>{let Me=xe.key,qe=w.fetchers.get(Me),He=qh(void 0,qe?qe.data:void 0);w.fetchers.set(Me,He),O.has(Me)&&le(Me),xe.controller&&O.set(Me,xe.controller)}),W({fetchers:new Map(w.fetchers)});let Pt=()=>it.forEach(xe=>le(xe.key));ze.signal.addEventListener("abort",Pt);let{results:tt,loaderResults:dt,fetcherResults:gt}=await J(w.matches,vt,Qe,it,at);if(ze.signal.aborted)return;ze.signal.removeEventListener("abort",Pt),A.delete(ye),O.delete(ye),it.forEach(xe=>O.delete(xe.key));let Ot=T8(tt);if(Ot){if(Ot.idx>=Qe.length){let xe=it[Ot.idx-Qe.length].key;L.add(xe)}return Y(w,Ot.result)}let{loaderData:Mt,errors:ut}=x8(w,w.matches,Qe,dt,void 0,it,gt,$);if(w.fetchers.has(ye)){let xe=bf(Ye.data);w.fetchers.set(ye,xe)}let Ge=Ce(We);w.navigation.state==="loading"&&We>P?(mr(_,"Expected pending action"),T&&T.abort(),H(w.navigation.location,{matches:vt,loaderData:Mt,errors:ut,fetchers:new Map(w.fetchers)})):(W(xa({errors:ut,loaderData:w8(w.loaderData,Mt,vt,ut)},Ge||it.length>0?{fetchers:new Map(w.fetchers)}:{})),S=!1)}async function G(ye,ve,_e,Ae,Re,Ee){let Ie=w.fetchers.get(ye),Ne=qh(Ee,Ie?Ie.data:void 0);w.fetchers.set(ye,Ne),W({fetchers:new Map(w.fetchers)});let ze=new AbortController,Ue=Hh(e.history,_e,ze.signal);O.set(ye,ze);let Ve=R,Ye=await Uh("loader",Ue,Ae,Re,o,l,s);if(Wc(Ye)&&(Ye=await jW(Ye,Ue.signal,!0)||Ye),O.get(ye)===ze&&O.delete(ye),Ue.signal.aborted)return;if(Jf(Ye))if(P>Ve){let at=bf(void 0);w.fetchers.set(ye,at),W({fetchers:new Map(w.fetchers)});return}else{L.add(ye),await Y(w,Ye);return}if(Cg(Ye)){let at=jf(w.matches,ve);w.fetchers.delete(ye),W({fetchers:new Map(w.fetchers),errors:{[at.route.id]:Ye.error}});return}mr(!Wc(Ye),"Unhandled fetcher deferred data");let et=bf(Ye.data);w.fetchers.set(ye,et),W({fetchers:new Map(w.fetchers)})}async function Y(ye,ve,_e){let{submission:Ae,fetcherSubmission:Re,replace:Ee}=_e===void 0?{}:_e;ve.revalidate&&(S=!0);let Ie=iv(ye.location,ve.location,{_isRedirect:!0});if(mr(Ie,"Expected a location on the redirect navigation"),n){let et=!1;if(ve.reloadDocument)et=!0;else if($W.test(ve.location)){const at=e.history.createURL(ve.location);et=at.origin!==t.location.origin||ec(at.pathname,s)==null}if(et){Ee?t.location.replace(ve.location):t.location.assign(ve.location);return}}T=null;let Ne=Ee===!0?Qa.Replace:Qa.Push,{formMethod:ze,formAction:Ue,formEncType:Ve}=ye.navigation;!Ae&&!Re&&ze&&Ue&&Ve&&(Ae=S8(ye.navigation));let Ye=Ae||Re;if(Gie.has(ve.status)&&Ye&&Sl(Ye.formMethod))await U(Ne,Ie,{submission:xa({},Ye,{formAction:ve.location}),preventScrollReset:x});else{let et=Sk(Ie,Ae);await U(Ne,Ie,{overrideNavigation:et,fetcherSubmission:Re,preventScrollReset:x})}}async function J(ye,ve,_e,Ae,Re){let Ee=await Promise.all([..._e.map(ze=>Uh("loader",Re,ze,ve,o,l,s)),...Ae.map(ze=>ze.matches&&ze.match&&ze.controller?Uh("loader",Hh(e.history,ze.path,ze.controller.signal),ze.match,ze.matches,o,l,s):{type:Va.error,error:Ki(404,{pathname:ze.path})})]),Ie=Ee.slice(0,_e.length),Ne=Ee.slice(_e.length);return await Promise.all([k8(ye,_e,Ie,Ie.map(()=>Re.signal),!1,w.loaderData),k8(ye,Ae.map(ze=>ze.match),Ne,Ae.map(ze=>ze.controller?ze.controller.signal:null),!0)]),{results:Ee,loaderResults:Ie,fetcherResults:Ne}}function Q(){S=!0,C.push(...K()),D.forEach((ye,ve)=>{O.has(ve)&&(M.push(ve),le(ve))})}function ee(ye,ve,_e){let Ae=jf(w.matches,ve);ie(ye),W({errors:{[Ae.route.id]:_e},fetchers:new Map(w.fetchers)})}function ie(ye){let ve=w.fetchers.get(ye);O.has(ye)&&!(ve&&ve.state==="loading"&&A.has(ye))&&le(ye),D.delete(ye),A.delete(ye),L.delete(ye),w.fetchers.delete(ye)}function le(ye){let ve=O.get(ye);mr(ve,"Expected fetch controller: "+ye),ve.abort(),O.delete(ye)}function ce(ye){for(let ve of ye){let _e=ne(ve),Ae=bf(_e.data);w.fetchers.set(ve,Ae)}}function be(){let ye=[],ve=!1;for(let _e of L){let Ae=w.fetchers.get(_e);mr(Ae,"Expected fetcher: "+_e),Ae.state==="loading"&&(L.delete(_e),ye.push(_e),ve=!0)}return ce(ye),ve}function Ce(ye){let ve=[];for(let[_e,Ae]of A)if(Ae0}function De(ye,ve){let _e=w.blockers.get(ye)||Wh;return N.get(ye)!==ve&&N.set(ye,ve),_e}function Oe(ye){w.blockers.delete(ye),N.delete(ye)}function fe(ye,ve){let _e=w.blockers.get(ye)||Wh;mr(_e.state==="unblocked"&&ve.state==="blocked"||_e.state==="blocked"&&ve.state==="blocked"||_e.state==="blocked"&&ve.state==="proceeding"||_e.state==="blocked"&&ve.state==="unblocked"||_e.state==="proceeding"&&ve.state==="unblocked","Invalid blocker state transition: "+_e.state+" -> "+ve.state);let Ae=new Map(w.blockers);Ae.set(ye,ve),W({blockers:Ae})}function ke(ye){let{currentLocation:ve,nextLocation:_e,historyAction:Ae}=ye;if(N.size===0)return;N.size>1&&xp(!1,"A router only supports one blocker at a time");let Re=Array.from(N.entries()),[Ee,Ie]=Re[Re.length-1],Ne=w.blockers.get(Ee);if(!(Ne&&Ne.state==="proceeding")&&Ie({currentLocation:ve,nextLocation:_e,historyAction:Ae}))return Ee}function K(ye){let ve=[];return $.forEach((_e,Ae)=>{(!ye||ye(Ae))&&(_e.cancel(),ve.push(Ae),$.delete(Ae))}),ve}function ae(ye,ve,_e){if(f=ye,g=ve,p=_e||null,!h&&w.navigation===kk){h=!0;let Ae=he(w.location,w.matches);Ae!=null&&W({restoreScrollPosition:Ae})}return()=>{f=null,g=null,p=null}}function pe(ye,ve){return p&&p(ye,ve.map(Ae=>AW(Ae,w.loaderData)))||ye.key}function Pe(ye,ve){if(f&&g){let _e=pe(ye,ve);f[_e]=g()}}function he(ye,ve){if(f){let _e=pe(ye,ve),Ae=f[_e];if(typeof Ae=="number")return Ae}return null}function me(ye){o={},a=sM(ye,l,void 0,o)}return b={get basename(){return s},get state(){return w},get routes(){return i},initialize:z,subscribe:E,enableScrollRestoration:ae,navigate:I,fetch:Z,revalidate:V,createHref:ye=>e.history.createHref(ye),encodeLocation:ye=>e.history.encodeLocation(ye),getFetcher:ne,deleteFetcher:ie,dispose:F,getBlocker:De,deleteBlocker:Oe,_internalFetchControllers:O,_internalActiveDeferreds:$,_internalSetRoutes:me},b}function Jie(e){return e!=null&&("formData"in e&&e.formData!=null||"body"in e&&e.body!==void 0)}function uM(e,t,n,r,l,o,i){let a,s;if(o!=null&&i!=="path"){a=[];for(let c of t)if(a.push(c),c.route.id===o){s=c;break}}else a=t,s=t[t.length-1];let u=xO(l||".",u2(a).map(c=>c.pathnameBase),ec(e.pathname,n)||e.pathname,i==="path");return l==null&&(u.search=e.search,u.hash=e.hash),(l==null||l===""||l===".")&&s&&s.route.index&&!_O(u.search)&&(u.search=u.search?u.search.replace(/^\?/,"?index&"):"?index"),r&&n!=="/"&&(u.pathname=u.pathname==="/"?n:cs([n,u.pathname])),Qu(u)}function m8(e,t,n,r){if(!r||!Jie(r))return{path:n};if(r.formMethod&&!ole(r.formMethod))return{path:n,error:Ki(405,{method:r.formMethod})};let l=()=>({path:n,error:Ki(400,{type:"invalid-body"})}),o=r.formMethod||"get",i=e?o.toUpperCase():o.toLowerCase(),a=FW(n);if(r.body!==void 0){if(r.formEncType==="text/plain"){if(!Sl(i))return l();let f=typeof r.body=="string"?r.body:r.body instanceof FormData||r.body instanceof URLSearchParams?Array.from(r.body.entries()).reduce((p,g)=>{let[h,y]=g;return""+p+h+"="+y+` -`},""):String(r.body);return{path:n,submission:{formMethod:i,formAction:a,formEncType:r.formEncType,formData:void 0,json:void 0,text:f}}}else if(r.formEncType==="application/json"){if(!Sl(i))return l();try{let f=typeof r.body=="string"?JSON.parse(r.body):r.body;return{path:n,submission:{formMethod:i,formAction:a,formEncType:r.formEncType,formData:void 0,json:f,text:void 0}}}catch{return l()}}}mr(typeof FormData=="function","FormData is not available in this environment");let s,u;if(r.formData)s=cM(r.formData),u=r.formData;else if(r.body instanceof FormData)s=cM(r.body),u=r.body;else if(r.body instanceof URLSearchParams)s=r.body,u=b8(s);else if(r.body==null)s=new URLSearchParams,u=new FormData;else try{s=new URLSearchParams(r.body),u=b8(s)}catch{return l()}let c={formMethod:i,formAction:a,formEncType:r&&r.formEncType||"application/x-www-form-urlencoded",formData:u,json:void 0,text:void 0};if(Sl(c.formMethod))return{path:n,submission:c};let d=ru(n);return t&&d.search&&_O(d.search)&&s.append("index",""),d.search="?"+s,{path:Qu(d),submission:c}}function Qie(e,t){let n=e;if(t){let r=e.findIndex(l=>l.route.id===t);r>=0&&(n=e.slice(0,r))}return n}function g8(e,t,n,r,l,o,i,a,s,u,c,d,f,p){let g=p?Object.values(p)[0]:f?Object.values(f)[0]:void 0,h=e.createURL(t.location),y=e.createURL(l),v=p?Object.keys(p)[0]:void 0,b=Qie(n,v).filter((_,x)=>{if(_.route.lazy)return!0;if(_.route.loader==null)return!1;if(ele(t.loaderData,t.matches[x],_)||i.some(S=>S===_.route.id))return!0;let T=t.matches[x],k=_;return v8(_,xa({currentUrl:h,currentParams:T.params,nextUrl:y,nextParams:k.params},r,{actionResult:g,defaultShouldRevalidate:o||h.pathname+h.search===y.pathname+y.search||h.search!==y.search||NW(T,k)}))}),w=[];return s.forEach((_,x)=>{if(!n.some(M=>M.route.id===_.routeId))return;let T=Ff(c,_.path,d);if(!T){w.push({key:x,routeId:_.routeId,path:_.path,matches:null,match:null,controller:null});return}let k=t.fetchers.get(x),S=dM(T,_.path),C=!1;u.has(x)?C=!1:a.includes(x)?C=!0:k&&k.state!=="idle"&&k.data===void 0?C=o:C=v8(S,xa({currentUrl:h,currentParams:t.matches[t.matches.length-1].params,nextUrl:y,nextParams:n[n.length-1].params},r,{actionResult:g,defaultShouldRevalidate:o})),C&&w.push({key:x,routeId:_.routeId,path:_.path,matches:T,match:S,controller:new AbortController})}),[b,w]}function ele(e,t,n){let r=!t||n.route.id!==t.route.id,l=e[n.route.id]===void 0;return r||l}function NW(e,t){let n=e.route.path;return e.pathname!==t.pathname||n!=null&&n.endsWith("*")&&e.params["*"]!==t.params["*"]}function v8(e,t){if(e.route.shouldRevalidate){let n=e.route.shouldRevalidate(t);if(typeof n=="boolean")return n}return t.defaultShouldRevalidate}async function y8(e,t,n){if(!e.lazy)return;let r=await e.lazy();if(!e.lazy)return;let l=n[e.id];mr(l,"No route found in manifest");let o={};for(let i in r){let s=l[i]!==void 0&&i!=="hasErrorBoundary";xp(!s,'Route "'+l.id+'" has a static property "'+i+'" defined but its lazy function is also returning a value for this property. '+('The lazy route property "'+i+'" will be ignored.')),!s&&!_ie.has(i)&&(o[i]=r[i])}Object.assign(l,o),Object.assign(l,xa({},t(l),{lazy:void 0}))}async function Uh(e,t,n,r,l,o,i,a){a===void 0&&(a={});let s,u,c,d=g=>{let h,y=new Promise((v,m)=>h=m);return c=()=>h(),t.signal.addEventListener("abort",c),Promise.race([g({request:t,params:n.params,context:a.requestContext}),y])};try{let g=n.route[e];if(n.route.lazy)if(g){let h,y=await Promise.all([d(g).catch(v=>{h=v}),y8(n.route,o,l)]);if(h)throw h;u=y[0]}else if(await y8(n.route,o,l),g=n.route[e],g)u=await d(g);else if(e==="action"){let h=new URL(t.url),y=h.pathname+h.search;throw Ki(405,{method:t.method,pathname:y,routeId:n.route.id})}else return{type:Va.data,data:void 0};else if(g)u=await d(g);else{let h=new URL(t.url),y=h.pathname+h.search;throw Ki(404,{pathname:y})}mr(u!==void 0,"You defined "+(e==="action"?"an action":"a loader")+" for route "+('"'+n.route.id+"\" but didn't return anything from your `"+e+"` ")+"function. Please return a value or `null`.")}catch(g){s=Va.error,u=g}finally{c&&t.signal.removeEventListener("abort",c)}if(ale(u)){let g=u.status;if(Yie.has(g)){let v=u.headers.get("Location");if(mr(v,"Redirects returned/thrown from loaders/actions must have a Location header"),!$W.test(v))v=uM(new URL(t.url),r.slice(0,r.indexOf(n)+1),i,!0,v);else if(!a.isStaticRequest){let m=new URL(t.url),b=v.startsWith("//")?new URL(m.protocol+v):new URL(v),w=ec(b.pathname,i)!=null;b.origin===m.origin&&w&&(v=b.pathname+b.search+b.hash)}if(a.isStaticRequest)throw u.headers.set("Location",v),u;return{type:Va.redirect,status:g,location:v,revalidate:u.headers.get("X-Remix-Revalidate")!==null,reloadDocument:u.headers.get("X-Remix-Reload-Document")!==null}}if(a.isRouteRequest)throw{type:s===Va.error?Va.error:Va.data,response:u};let h,y=u.headers.get("Content-Type");return y&&/\bapplication\/json\b/.test(y)?h=await u.json():h=await u.text(),s===Va.error?{type:s,error:new wO(g,u.statusText,h),headers:u.headers}:{type:Va.data,data:h,statusCode:u.status,headers:u.headers}}if(s===Va.error)return{type:s,error:u};if(rle(u)){var f,p;return{type:Va.deferred,deferredData:u,statusCode:(f=u.init)==null?void 0:f.status,headers:((p=u.init)==null?void 0:p.headers)&&new Headers(u.init.headers)}}return{type:Va.data,data:u}}function Hh(e,t,n,r){let l=e.createURL(FW(t)).toString(),o={signal:n};if(r&&Sl(r.formMethod)){let{formMethod:i,formEncType:a}=r;o.method=i.toUpperCase(),a==="application/json"?(o.headers=new Headers({"Content-Type":a}),o.body=JSON.stringify(r.json)):a==="text/plain"?o.body=r.text:a==="application/x-www-form-urlencoded"&&r.formData?o.body=cM(r.formData):o.body=r.formData}return new Request(l,o)}function cM(e){let t=new URLSearchParams;for(let[n,r]of e.entries())t.append(n,typeof r=="string"?r:r.name);return t}function b8(e){let t=new FormData;for(let[n,r]of e.entries())t.append(n,r);return t}function tle(e,t,n,r,l){let o={},i=null,a,s=!1,u={};return n.forEach((c,d)=>{let f=t[d].route.id;if(mr(!Jf(c),"Cannot handle redirect results in processLoaderData"),Cg(c)){let p=jf(e,f),g=c.error;r&&(g=Object.values(r)[0],r=void 0),i=i||{},i[p.route.id]==null&&(i[p.route.id]=g),o[f]=void 0,s||(s=!0,a=LW(c.error)?c.error.status:500),c.headers&&(u[f]=c.headers)}else Wc(c)?(l.set(f,c.deferredData),o[f]=c.deferredData.data):o[f]=c.data,c.statusCode!=null&&c.statusCode!==200&&!s&&(a=c.statusCode),c.headers&&(u[f]=c.headers)}),r&&(i=r,o[Object.keys(r)[0]]=void 0),{loaderData:o,errors:i,statusCode:a||200,loaderHeaders:u}}function x8(e,t,n,r,l,o,i,a){let{loaderData:s,errors:u}=tle(t,n,r,l,a);for(let c=0;cr.route.id===t)+1):[...e]).reverse().find(r=>r.route.hasErrorBoundary===!0)||e[0]}function _8(e){let t=e.find(n=>n.index||!n.path||n.path==="/")||{id:"__shim-error-route__"};return{matches:[{params:{},pathname:"",pathnameBase:"",route:t}],route:t}}function Ki(e,t){let{pathname:n,routeId:r,method:l,type:o}=t===void 0?{}:t,i="Unknown Server Error",a="Unknown @remix-run/router error";return e===400?(i="Bad Request",l&&n&&r?a="You made a "+l+' request to "'+n+'" but '+('did not provide a `loader` for route "'+r+'", ')+"so there is no way to handle the request.":o==="defer-action"?a="defer() is not supported in actions":o==="invalid-body"&&(a="Unable to encode submission body")):e===403?(i="Forbidden",a='Route "'+r+'" does not match URL "'+n+'"'):e===404?(i="Not Found",a='No route matches URL "'+n+'"'):e===405&&(i="Method Not Allowed",l&&n&&r?a="You made a "+l.toUpperCase()+' request to "'+n+'" but '+('did not provide an `action` for route "'+r+'", ')+"so there is no way to handle the request.":l&&(a='Invalid request method "'+l.toUpperCase()+'"')),new wO(e||500,i,new Error(a),!0)}function T8(e){for(let t=e.length-1;t>=0;t--){let n=e[t];if(Jf(n))return{result:n,idx:t}}}function FW(e){let t=typeof e=="string"?ru(e):e;return Qu(xa({},t,{hash:""}))}function nle(e,t){return e.pathname!==t.pathname||e.search!==t.search?!1:e.hash===""?t.hash!=="":e.hash===t.hash?!0:t.hash!==""}function Wc(e){return e.type===Va.deferred}function Cg(e){return e.type===Va.error}function Jf(e){return(e&&e.type)===Va.redirect}function rle(e){let t=e;return t&&typeof t=="object"&&typeof t.data=="object"&&typeof t.subscribe=="function"&&typeof t.cancel=="function"&&typeof t.resolveData=="function"}function ale(e){return e!=null&&typeof e.status=="number"&&typeof e.statusText=="string"&&typeof e.headers=="object"&&typeof e.body<"u"}function ole(e){return qie.has(e.toLowerCase())}function Sl(e){return Uie.has(e.toLowerCase())}async function k8(e,t,n,r,l,o){for(let i=0;id.route.id===s.route.id),c=u!=null&&!NW(u,s)&&(o&&o[s.route.id])!==void 0;if(Wc(a)&&(l||c)){let d=r[i];mr(d,"Expected an AbortSignal for revalidating fetcher deferred result"),await jW(a,d,l).then(f=>{f&&(n[i]=f||n[i])})}}}async function jW(e,t,n){if(n===void 0&&(n=!1),!await e.deferredData.resolveData(t)){if(n)try{return{type:Va.data,data:e.deferredData.unwrappedData}}catch(l){return{type:Va.error,error:l}}return{type:Va.data,data:e.deferredData.data}}}function _O(e){return new URLSearchParams(e).getAll("index").some(t=>t==="")}function dM(e,t){let n=typeof t=="string"?ru(t).search:t.search;if(e[e.length-1].route.index&&_O(n||""))return e[e.length-1];let r=u2(e);return r[r.length-1]}function S8(e){let{formMethod:t,formAction:n,formEncType:r,text:l,formData:o,json:i}=e;if(!(!t||!n||!r)){if(l!=null)return{formMethod:t,formAction:n,formEncType:r,formData:void 0,json:void 0,text:l};if(o!=null)return{formMethod:t,formAction:n,formEncType:r,formData:o,json:void 0,text:void 0};if(i!==void 0)return{formMethod:t,formAction:n,formEncType:r,formData:void 0,json:i,text:void 0}}}function Sk(e,t){return t?{state:"loading",location:e,formMethod:t.formMethod,formAction:t.formAction,formEncType:t.formEncType,formData:t.formData,json:t.json,text:t.text}:{state:"loading",location:e,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0}}function ile(e,t){return{state:"submitting",location:e,formMethod:t.formMethod,formAction:t.formAction,formEncType:t.formEncType,formData:t.formData,json:t.json,text:t.text}}function qh(e,t){return e?{state:"loading",formMethod:e.formMethod,formAction:e.formAction,formEncType:e.formEncType,formData:e.formData,json:e.json,text:e.text,data:t}:{state:"loading",formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0,data:t}}function lle(e,t){return{state:"submitting",formMethod:e.formMethod,formAction:e.formAction,formEncType:e.formEncType,formData:e.formData,json:e.json,text:e.text,data:t?t.data:void 0}}function bf(e){return{state:"idle",formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0,data:e}}/** - * React Router v6.16.0 - * - * Copyright (c) Remix Software Inc. - * - * This source code is licensed under the MIT license found in the - * LICENSE.md file in the root directory of this source tree. - * - * @license MIT - */function Pb(){return Pb=Object.assign?Object.assign.bind():function(e){for(var t=1;ts.pathnameBase)),i=se.useRef(!1);return VW(()=>{i.current=!0}),se.useCallback(function(s,u){if(u===void 0&&(u={}),!i.current)return;if(typeof s=="number"){n.go(s);return}let c=xO(s,JSON.parse(o),l,u.relative==="path");e==null&&t!=="/"&&(c.pathname=c.pathname==="/"?t:cs([t,c.pathname])),(u.replace?n.replace:n.push)(c,u.state,u)},[t,n,o,l,e])}const cle=se.createContext(null);function dle(e){let t=se.useContext(ks).outlet;return t&&se.createElement(cle.Provider,{value:e},t)}function sy(){let{matches:e}=se.useContext(ks),t=e[e.length-1];return t?t.params:{}}function TO(e,t){let{relative:n}=t===void 0?{}:t,{matches:r}=se.useContext(ks),{pathname:l}=Qp(),o=JSON.stringify(u2(r).map(i=>i.pathnameBase));return se.useMemo(()=>xO(e,JSON.parse(o),l,n==="path"),[e,o,l,n])}function fle(e,t,n){ly()||mr(!1);let{navigator:r}=se.useContext(dc),{matches:l}=se.useContext(ks),o=l[l.length-1],i=o?o.params:{};o&&o.pathname;let a=o?o.pathnameBase:"/";o&&o.route;let s=Qp(),u;if(t){var c;let h=typeof t=="string"?ru(t):t;a==="/"||(c=h.pathname)!=null&&c.startsWith(a)||mr(!1),u=h}else u=s;let d=u.pathname||"/",f=a==="/"?d:d.slice(a.length)||"/",p=Ff(e,{pathname:f}),g=vle(p&&p.map(h=>Object.assign({},h,{params:Object.assign({},i,h.params),pathname:cs([a,r.encodeLocation?r.encodeLocation(h.pathname).pathname:h.pathname]),pathnameBase:h.pathnameBase==="/"?a:cs([a,r.encodeLocation?r.encodeLocation(h.pathnameBase).pathname:h.pathnameBase])})),l,n);return t&&g?se.createElement(c2.Provider,{value:{location:Pb({pathname:"/",search:"",hash:"",state:null,key:"default"},u),navigationType:Qa.Pop}},g):g}function ple(){let e=wle(),t=LW(e)?e.status+" "+e.statusText:e instanceof Error?e.message:JSON.stringify(e),n=e instanceof Error?e.stack:null,l={padding:"0.5rem",backgroundColor:"rgba(200,200,200, 0.5)"},o=null;return se.createElement(se.Fragment,null,se.createElement("h2",null,"Unexpected Application Error!"),se.createElement("h3",{style:{fontStyle:"italic"}},t),n?se.createElement("pre",{style:l},n):null,o)}const hle=se.createElement(ple,null);class mle extends se.Component{constructor(t){super(t),this.state={location:t.location,revalidation:t.revalidation,error:t.error}}static getDerivedStateFromError(t){return{error:t}}static getDerivedStateFromProps(t,n){return n.location!==t.location||n.revalidation!=="idle"&&t.revalidation==="idle"?{error:t.error,location:t.location,revalidation:t.revalidation}:{error:t.error||n.error,location:n.location,revalidation:t.revalidation||n.revalidation}}componentDidCatch(t,n){console.error("React Router caught the following error during render",t,n)}render(){return this.state.error?se.createElement(ks.Provider,{value:this.props.routeContext},se.createElement(zW.Provider,{value:this.state.error,children:this.props.component})):this.props.children}}function gle(e){let{routeContext:t,match:n,children:r}=e,l=se.useContext(iy);return l&&l.static&&l.staticContext&&(n.route.errorElement||n.route.ErrorBoundary)&&(l.staticContext._deepestRenderedBoundaryId=n.route.id),se.createElement(ks.Provider,{value:t},r)}function vle(e,t,n){var r;if(t===void 0&&(t=[]),n===void 0&&(n=null),e==null){var l;if((l=n)!=null&&l.errors)e=n.matches;else return null}let o=e,i=(r=n)==null?void 0:r.errors;if(i!=null){let a=o.findIndex(s=>s.route.id&&(i==null?void 0:i[s.route.id]));a>=0||mr(!1),o=o.slice(0,Math.min(o.length,a+1))}return o.reduceRight((a,s,u)=>{let c=s.route.id?i==null?void 0:i[s.route.id]:null,d=null;n&&(d=s.route.errorElement||hle);let f=t.concat(o.slice(0,u+1)),p=()=>{let g;return c?g=d:s.route.Component?g=se.createElement(s.route.Component,null):s.route.element?g=s.route.element:g=a,se.createElement(gle,{match:s,routeContext:{outlet:a,matches:f,isDataRoute:n!=null},children:g})};return n&&(s.route.ErrorBoundary||s.route.errorElement||u===0)?se.createElement(mle,{location:n.location,revalidation:n.revalidation,component:d,error:c,children:p(),routeContext:{outlet:null,matches:f,isDataRoute:!0}}):p()},null)}var UW=function(e){return e.UseBlocker="useBlocker",e.UseRevalidator="useRevalidator",e.UseNavigateStable="useNavigate",e}(UW||{}),Zs=function(e){return e.UseBlocker="useBlocker",e.UseLoaderData="useLoaderData",e.UseActionData="useActionData",e.UseRouteError="useRouteError",e.UseNavigation="useNavigation",e.UseRouteLoaderData="useRouteLoaderData",e.UseMatches="useMatches",e.UseRevalidator="useRevalidator",e.UseNavigateStable="useNavigate",e.UseRouteId="useRouteId",e}(Zs||{});function yle(e){let t=se.useContext(iy);return t||mr(!1),t}function d2(e){let t=se.useContext(BW);return t||mr(!1),t}function ble(e){let t=se.useContext(ks);return t||mr(!1),t}function f2(e){let t=ble(),n=t.matches[t.matches.length-1];return n.route.id||mr(!1),n.route.id}function xle(){return f2(Zs.UseRouteId)}function HW(){return d2(Zs.UseNavigation).navigation}function p2(){let{matches:e,loaderData:t}=d2(Zs.UseMatches);return se.useMemo(()=>e.map(n=>AW(n,t)),[e,t])}function fc(){let e=d2(Zs.UseLoaderData),t=f2(Zs.UseLoaderData);if(e.errors&&e.errors[t]!=null){console.error("You cannot `useLoaderData` in an errorElement (routeId: "+t+")");return}return e.loaderData[t]}function wle(){var e;let t=se.useContext(zW),n=d2(Zs.UseRouteError),r=f2(Zs.UseRouteError);return t||((e=n.errors)==null?void 0:e[r])}function _le(){let{router:e}=yle(UW.UseNavigateStable),t=f2(Zs.UseNavigateStable),n=se.useRef(!1);return VW(()=>{n.current=!0}),se.useCallback(function(l,o){o===void 0&&(o={}),n.current&&(typeof l=="number"?e.navigate(l):e.navigate(l,Pb({fromRouteId:t},o)))},[e,t])}const Tle="startTransition",C8=Vg[Tle];function kle(e){let{fallbackElement:t,router:n,future:r}=e,[l,o]=se.useState(n.state),{v7_startTransition:i}=r||{},a=se.useCallback(d=>{i&&C8?C8(()=>o(d)):o(d)},[o,i]);se.useLayoutEffect(()=>n.subscribe(a),[n,a]);let s=se.useMemo(()=>({createHref:n.createHref,encodeLocation:n.encodeLocation,go:d=>n.navigate(d),push:(d,f,p)=>n.navigate(d,{state:f,preventScrollReset:p==null?void 0:p.preventScrollReset}),replace:(d,f,p)=>n.navigate(d,{replace:!0,state:f,preventScrollReset:p==null?void 0:p.preventScrollReset})}),[n]),u=n.basename||"/",c=se.useMemo(()=>({router:n,navigator:s,static:!1,basename:u}),[n,s,u]);return se.createElement(se.Fragment,null,se.createElement(iy.Provider,{value:c},se.createElement(BW.Provider,{value:l},se.createElement(Cle,{basename:u,location:l.location,navigationType:l.historyAction,navigator:s},l.initialized?se.createElement(Sle,{routes:n.routes,state:l}):t))),null)}function Sle(e){let{routes:t,state:n}=e;return fle(t,void 0,n)}function h2(e){return dle(e.context)}function Cle(e){let{basename:t="/",children:n=null,location:r,navigationType:l=Qa.Pop,navigator:o,static:i=!1}=e;ly()&&mr(!1);let a=t.replace(/^\/*/,"/"),s=se.useMemo(()=>({basename:a,navigator:o,static:i}),[a,o,i]);typeof r=="string"&&(r=ru(r));let{pathname:u="/",search:c="",hash:d="",state:f=null,key:p="default"}=r,g=se.useMemo(()=>{let h=ec(u,a);return h==null?null:{location:{pathname:h,search:c,hash:d,state:f,key:p},navigationType:l}},[a,u,c,d,f,p,l]);return g==null?null:se.createElement(dc.Provider,{value:s},se.createElement(c2.Provider,{children:n,value:g}))}new Promise(()=>{});function Mle(e){let t={hasErrorBoundary:e.ErrorBoundary!=null||e.errorElement!=null};return e.Component&&Object.assign(t,{element:se.createElement(e.Component),Component:void 0}),e.ErrorBoundary&&Object.assign(t,{errorElement:se.createElement(e.ErrorBoundary),ErrorBoundary:void 0}),t}/** - * React Router DOM v6.16.0 - * - * Copyright (c) Remix Software Inc. - * - * This source code is licensed under the MIT license found in the - * LICENSE.md file in the root directory of this source tree. - * - * @license MIT - */function tc(){return tc=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0)&&(n[l]=e[l]);return n}const P1="get",Ck="application/x-www-form-urlencoded";function m2(e){return e!=null&&typeof e.tagName=="string"}function Ple(e){return m2(e)&&e.tagName.toLowerCase()==="button"}function Ole(e){return m2(e)&&e.tagName.toLowerCase()==="form"}function Dle(e){return m2(e)&&e.tagName.toLowerCase()==="input"}function Ale(e){return!!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)}function Rle(e,t){return e.button===0&&(!t||t==="_self")&&!Ale(e)}function fM(e){return e===void 0&&(e=""),new URLSearchParams(typeof e=="string"||Array.isArray(e)||e instanceof URLSearchParams?e:Object.keys(e).reduce((t,n)=>{let r=e[n];return t.concat(Array.isArray(r)?r.map(l=>[n,l]):[[n,r]])},[]))}function Ele(e,t){let n=fM(e);return t&&t.forEach((r,l)=>{n.has(l)||t.getAll(l).forEach(o=>{n.append(l,o)})}),n}let O0=null;function Lle(){if(O0===null)try{new FormData(document.createElement("form"),0),O0=!1}catch{O0=!0}return O0}const Ile=new Set(["application/x-www-form-urlencoded","multipart/form-data","text/plain"]);function Mk(e){return e!=null&&!Ile.has(e)?null:e}function $le(e,t){let n,r,l,o,i;if(Ole(e)){let a=e.getAttribute("action");r=a?ec(a,t):null,n=e.getAttribute("method")||P1,l=Mk(e.getAttribute("enctype"))||Ck,o=new FormData(e)}else if(Ple(e)||Dle(e)&&(e.type==="submit"||e.type==="image")){let a=e.form;if(a==null)throw new Error('Cannot submit a