@perses-dev/bar-chart-plugin 0.13.0 → 0.14.0-beta.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (145) hide show
  1. package/__mf/js/BarChart.777a5fe9.js +7 -0
  2. package/__mf/js/async/121.0dfa8a56.js +2 -0
  3. package/__mf/js/async/138.a47c7fc8.js +2 -0
  4. package/__mf/js/async/192.e523747d.js +1 -0
  5. package/__mf/js/async/235.5bb676bf.js +1 -0
  6. package/__mf/js/async/274.becf0c4e.js +2 -0
  7. package/__mf/js/async/319.a1a08706.js +1 -0
  8. package/__mf/js/async/356.4a2d6a5d.js +1 -0
  9. package/__mf/js/async/377.6b67c9b8.js +1 -0
  10. package/__mf/js/async/392.ce5748af.js +2 -0
  11. package/__mf/js/async/407.f9cff9c5.js +4 -0
  12. package/__mf/js/async/407.f9cff9c5.js.LICENSE.txt +9 -0
  13. package/__mf/js/async/435.4802f945.js +1 -0
  14. package/__mf/js/async/458.dd052408.js +1 -0
  15. package/__mf/js/async/470.6bd33fa1.js +2 -0
  16. package/__mf/js/async/496.46cf1305.js +1 -0
  17. package/__mf/js/async/587.e4d2ed78.js +1 -0
  18. package/__mf/js/async/588.ca7f0375.js +1 -0
  19. package/__mf/js/async/603.6e4d4c2a.js +1 -0
  20. package/__mf/js/async/616.6263efeb.js +1 -0
  21. package/__mf/js/async/71.5f1bab20.js +1 -0
  22. package/__mf/js/async/720.e068b3e4.js +101 -0
  23. package/__mf/js/async/77.d762eaa0.js +1 -0
  24. package/__mf/js/async/788.e72a42a8.js +43 -0
  25. package/__mf/js/async/{815.60db8972.js.LICENSE.txt → 788.e72a42a8.js.LICENSE.txt} +41 -1
  26. package/__mf/js/async/823.2a2b516e.js +10 -0
  27. package/__mf/js/async/854.49d186a1.js +1 -0
  28. package/__mf/js/async/873.9b3f6f36.js +1 -0
  29. package/__mf/js/async/934.04010fe7.js +2 -0
  30. package/__mf/js/async/941.88203ba1.js +2 -0
  31. package/__mf/js/async/963.36fb71d2.js +1 -0
  32. package/__mf/js/async/968.66f07975.js +1 -0
  33. package/__mf/js/async/977.b3f21ee5.js +1 -0
  34. package/__mf/js/async/978.d27fe59a.js +1 -0
  35. package/__mf/js/async/__federation_expose_BarChart.07c26459.js +1 -0
  36. package/__mf/js/async/lib-router.a4768e7d.js +2 -0
  37. package/__mf/js/main.e614feb4.js +7 -0
  38. package/lib/BarChart.d.ts +3 -3
  39. package/lib/BarChart.d.ts.map +1 -1
  40. package/lib/BarChart.js +4 -4
  41. package/lib/BarChart.js.map +1 -1
  42. package/lib/BarChartBase.d.ts +4 -2
  43. package/lib/BarChartBase.d.ts.map +1 -1
  44. package/lib/BarChartBase.js +34 -15
  45. package/lib/BarChartBase.js.map +1 -1
  46. package/lib/BarChartExportAction.d.ts +1 -1
  47. package/lib/BarChartExportAction.d.ts.map +1 -1
  48. package/lib/BarChartExportAction.js +5 -5
  49. package/lib/BarChartExportAction.js.map +1 -1
  50. package/lib/BarChartOptionsEditorSettings.d.ts +2 -2
  51. package/lib/BarChartOptionsEditorSettings.d.ts.map +1 -1
  52. package/lib/BarChartOptionsEditorSettings.js +87 -16
  53. package/lib/BarChartOptionsEditorSettings.js.map +1 -1
  54. package/lib/BarChartPanel.d.ts +4 -4
  55. package/lib/BarChartPanel.d.ts.map +1 -1
  56. package/lib/BarChartPanel.js +11 -10
  57. package/lib/BarChartPanel.js.map +1 -1
  58. package/lib/bar-chart-model.d.ts +18 -3
  59. package/lib/bar-chart-model.d.ts.map +1 -1
  60. package/lib/bar-chart-model.js +4 -2
  61. package/lib/bar-chart-model.js.map +1 -1
  62. package/lib/bootstrap.js +2 -2
  63. package/lib/getPluginModule.d.ts +1 -1
  64. package/lib/getPluginModule.d.ts.map +1 -1
  65. package/lib/getPluginModule.js +3 -1
  66. package/lib/getPluginModule.js.map +1 -1
  67. package/lib/index-federation.js +1 -1
  68. package/lib/index.js +5 -5
  69. package/lib/index.js.map +1 -1
  70. package/lib/setup-tests.d.ts +1 -1
  71. package/lib/setup-tests.d.ts.map +1 -1
  72. package/lib/setup-tests.js +2 -2
  73. package/lib/setup-tests.js.map +1 -1
  74. package/lib/tresholds.d.ts +1 -1
  75. package/lib/tresholds.d.ts.map +1 -1
  76. package/lib/tresholds.js +1 -1
  77. package/lib/tresholds.js.map +1 -1
  78. package/lib/utils.d.ts +8 -2
  79. package/lib/utils.d.ts.map +1 -1
  80. package/lib/utils.js +22 -3
  81. package/lib/utils.js.map +1 -1
  82. package/mf-manifest.json +40 -41
  83. package/mf-stats.json +40 -41
  84. package/package.json +10 -10
  85. package/__mf/js/BarChart.9e1e78c7.js +0 -7
  86. package/__mf/js/async/121.473596c1.js +0 -2
  87. package/__mf/js/async/177.3e3ea369.js +0 -1
  88. package/__mf/js/async/187.0c10a71e.js +0 -7
  89. package/__mf/js/async/187.0c10a71e.js.LICENSE.txt +0 -39
  90. package/__mf/js/async/192.d5754c56.js +0 -1
  91. package/__mf/js/async/235.b9e83b0f.js +0 -1
  92. package/__mf/js/async/274.3b869914.js +0 -2
  93. package/__mf/js/async/356.4b7b13a4.js +0 -1
  94. package/__mf/js/async/377.1e6cd99f.js +0 -1
  95. package/__mf/js/async/392.43a49d02.js +0 -2
  96. package/__mf/js/async/435.7b8a2474.js +0 -1
  97. package/__mf/js/async/458.e0bfe246.js +0 -1
  98. package/__mf/js/async/46.822ac417.js +0 -101
  99. package/__mf/js/async/470.bbaeb6f6.js +0 -2
  100. package/__mf/js/async/496.b1d86a71.js +0 -1
  101. package/__mf/js/async/546.966246a4.js +0 -24
  102. package/__mf/js/async/546.966246a4.js.LICENSE.txt +0 -19
  103. package/__mf/js/async/568.93423f6b.js +0 -1
  104. package/__mf/js/async/587.19607cd0.js +0 -1
  105. package/__mf/js/async/588.3e2e88e6.js +0 -1
  106. package/__mf/js/async/603.73790c72.js +0 -1
  107. package/__mf/js/async/616.673776b4.js +0 -1
  108. package/__mf/js/async/71.8dde0897.js +0 -1
  109. package/__mf/js/async/77.64992029.js +0 -1
  110. package/__mf/js/async/815.60db8972.js +0 -39
  111. package/__mf/js/async/823.55761759.js +0 -10
  112. package/__mf/js/async/854.8910fbf0.js +0 -1
  113. package/__mf/js/async/873.2961fe42.js +0 -1
  114. package/__mf/js/async/934.e8708047.js +0 -2
  115. package/__mf/js/async/941.b9c9bdfe.js +0 -2
  116. package/__mf/js/async/963.e557410b.js +0 -1
  117. package/__mf/js/async/968.0da0003e.js +0 -1
  118. package/__mf/js/async/977.4f77cf46.js +0 -1
  119. package/__mf/js/async/978.83c86840.js +0 -1
  120. package/__mf/js/async/__federation_expose_BarChart.cf3b83b6.js +0 -1
  121. package/__mf/js/async/lib-router.9c050a7f.js +0 -2
  122. package/__mf/js/main.8c45ef82.js +0 -7
  123. package/lib/cjs/BarChart.js +0 -45
  124. package/lib/cjs/BarChartBase.js +0 -232
  125. package/lib/cjs/BarChartExportAction.js +0 -124
  126. package/lib/cjs/BarChartOptionsEditorSettings.js +0 -180
  127. package/lib/cjs/BarChartPanel.js +0 -138
  128. package/lib/cjs/bar-chart-model.js +0 -66
  129. package/lib/cjs/bootstrap.js +0 -26
  130. package/lib/cjs/env.d.js +0 -14
  131. package/lib/cjs/getPluginModule.js +0 -39
  132. package/lib/cjs/index-federation.js +0 -55
  133. package/lib/cjs/index.js +0 -40
  134. package/lib/cjs/setup-tests.js +0 -19
  135. package/lib/cjs/tresholds.js +0 -77
  136. package/lib/cjs/utils.js +0 -72
  137. /package/__mf/css/async/{187.85c2cbf6.css → 788.85c2cbf6.css} +0 -0
  138. /package/__mf/js/async/{121.473596c1.js.LICENSE.txt → 121.0dfa8a56.js.LICENSE.txt} +0 -0
  139. /package/__mf/js/async/{274.3b869914.js.LICENSE.txt → 274.becf0c4e.js.LICENSE.txt} +0 -0
  140. /package/__mf/js/async/{392.43a49d02.js.LICENSE.txt → 392.ce5748af.js.LICENSE.txt} +0 -0
  141. /package/__mf/js/async/{470.bbaeb6f6.js.LICENSE.txt → 470.6bd33fa1.js.LICENSE.txt} +0 -0
  142. /package/__mf/js/async/{823.55761759.js.LICENSE.txt → 823.2a2b516e.js.LICENSE.txt} +0 -0
  143. /package/__mf/js/async/{934.e8708047.js.LICENSE.txt → 934.04010fe7.js.LICENSE.txt} +0 -0
  144. /package/__mf/js/async/{941.b9c9bdfe.js.LICENSE.txt → 941.88203ba1.js.LICENSE.txt} +0 -0
  145. /package/__mf/js/async/{lib-router.9c050a7f.js.LICENSE.txt → lib-router.a4768e7d.js.LICENSE.txt} +0 -0
@@ -1,39 +0,0 @@
1
- /*! For license information please see 815.60db8972.js.LICENSE.txt */
2
- (self.chunk_BarChart=self.chunk_BarChart||[]).push([["815"],{34007(e,t,r){"use strict";r.d(t,{A:()=>E});var n=r(85967),i=r(11750),a=r(81023),o=r(59238),s=r(77308),l=r(23434),u=r(72052),c=r(73397),p=r(24726),d=r(26952),f=r(11502),h=r(52855),m=r(47095),g=r(22402),v=r(62540);let y=(0,g.A)((0,v.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"),b=(0,g.A)((0,v.jsx)("path",{d:"M12 5.99L19.53 19H4.47L12 5.99M12 2L1 21h22L12 2zm1 14h-2v2h2v-2zm0-6h-2v4h2v-4z"}),"ReportProblemOutlined"),w=(0,g.A)((0,v.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"),x=(0,g.A)((0,v.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");var _=r(17834);let A=(0,s.A)(f.A,{name:"MuiAlert",slot:"Root",overridesResolver:(e,t)=>{let{ownerState:r}=e;return[t.root,t[r.variant],t[`${r.variant}${(0,p.A)(r.color||r.severity)}`]]}})((0,l.A)(({theme:e})=>{let t="light"===e.palette.mode?o.e$:o.a,r="light"===e.palette.mode?o.a:o.e$;return{...e.typography.body2,backgroundColor:"transparent",display:"flex",padding:"6px 16px",variants:[...Object.entries(e.palette).filter((0,d.A)(["light"])).map(([n])=>({props:{colorSeverity:n,variant:"standard"},style:{color:e.vars?e.vars.palette.Alert[`${n}Color`]:t(e.palette[n].light,.6),backgroundColor:e.vars?e.vars.palette.Alert[`${n}StandardBg`]:r(e.palette[n].light,.9),[`& .${h.A.icon}`]:e.vars?{color:e.vars.palette.Alert[`${n}IconColor`]}:{color:e.palette[n].main}}})),...Object.entries(e.palette).filter((0,d.A)(["light"])).map(([r])=>({props:{colorSeverity:r,variant:"outlined"},style:{color:e.vars?e.vars.palette.Alert[`${r}Color`]:t(e.palette[r].light,.6),border:`1px solid ${(e.vars||e).palette[r].light}`,[`& .${h.A.icon}`]:e.vars?{color:e.vars.palette.Alert[`${r}IconColor`]}:{color:e.palette[r].main}}})),...Object.entries(e.palette).filter((0,d.A)(["dark"])).map(([t])=>({props:{colorSeverity:t,variant:"filled"},style:{fontWeight:e.typography.fontWeightMedium,...e.vars?{color:e.vars.palette.Alert[`${t}FilledColor`],backgroundColor:e.vars.palette.Alert[`${t}FilledBg`]}:{backgroundColor:"dark"===e.palette.mode?e.palette[t].dark:e.palette[t].main,color:e.palette.getContrastText(e.palette[t].main)}}}))]}})),M=(0,s.A)("div",{name:"MuiAlert",slot:"Icon",overridesResolver:(e,t)=>t.icon})({marginRight:12,padding:"7px 0",display:"flex",fontSize:22,opacity:.9}),N=(0,s.A)("div",{name:"MuiAlert",slot:"Message",overridesResolver:(e,t)=>t.message})({padding:"8px 0",minWidth:0,overflow:"auto"}),S=(0,s.A)("div",{name:"MuiAlert",slot:"Action",overridesResolver:(e,t)=>t.action})({display:"flex",alignItems:"flex-start",padding:"4px 0 0 16px",marginLeft:"auto",marginRight:-8}),k={success:(0,v.jsx)(y,{fontSize:"inherit"}),warning:(0,v.jsx)(b,{fontSize:"inherit"}),error:(0,v.jsx)(w,{fontSize:"inherit"}),info:(0,v.jsx)(x,{fontSize:"inherit"})},E=n.forwardRef(function(e,t){let r=(0,u.b)({props:e,name:"MuiAlert"}),{action:n,children:o,className:s,closeText:l="Close",color:d,components:f={},componentsProps:g={},icon:y,iconMapping:b=k,onClose:w,role:x="alert",severity:E="success",slotProps:O={},slots:C={},variant:T="standard",...$}=r,R={...r,color:d,severity:E,variant:T,colorSeverity:d||E},I=(e=>{let{variant:t,color:r,severity:n,classes:i}=e,o={root:["root",`color${(0,p.A)(r||n)}`,`${t}${(0,p.A)(r||n)}`,`${t}`],icon:["icon"],message:["message"],action:["action"]};return(0,a.A)(o,h.X,i)})(R),j={slots:{closeButton:f.CloseButton,closeIcon:f.CloseIcon,...C},slotProps:{...g,...O}},[P,z]=(0,c.A)("root",{ref:t,shouldForwardComponentProp:!0,className:(0,i.A)(I.root,s),elementType:A,externalForwardedProps:{...j,...$},ownerState:R,additionalProps:{role:x,elevation:0}}),[Z,D]=(0,c.A)("icon",{className:I.icon,elementType:M,externalForwardedProps:j,ownerState:R}),[F,L]=(0,c.A)("message",{className:I.message,elementType:N,externalForwardedProps:j,ownerState:R}),[B,q]=(0,c.A)("action",{className:I.action,elementType:S,externalForwardedProps:j,ownerState:R}),[W,V]=(0,c.A)("closeButton",{elementType:m.A,externalForwardedProps:j,ownerState:R}),[U,H]=(0,c.A)("closeIcon",{elementType:_.A,externalForwardedProps:j,ownerState:R});return(0,v.jsxs)(P,{...z,children:[!1!==y?(0,v.jsx)(Z,{...D,children:y||b[E]||k[E]}):null,(0,v.jsx)(F,{...L,children:o}),null!=n?(0,v.jsx)(B,{...q,children:n}):null,null==n&&w?(0,v.jsx)(B,{...q,children:(0,v.jsx)(W,{size:"small","aria-label":l,title:l,color:"inherit",onClick:w,...V,children:(0,v.jsx)(U,{fontSize:"small",...H})})}):null]})})},52855(e,t,r){"use strict";r.d(t,{A:()=>o,X:()=>a});var n=r(29009),i=r(46733);function a(e){return(0,i.Ay)("MuiAlert",e)}let o=(0,n.A)("MuiAlert",["root","action","icon","message","filled","colorSuccess","colorInfo","colorWarning","colorError","filledSuccess","filledInfo","filledWarning","filledError","outlined","outlinedSuccess","outlinedInfo","outlinedWarning","outlinedError","standard","standardSuccess","standardInfo","standardWarning","standardError"])},42927(e,t,r){"use strict";r.d(t,{A:()=>O});var n=r(85967),i=r(11750),a=r(81023),o=r(59238),s=r(32560),l=r(22402),u=r(62540);let c=(0,l.A)((0,u.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"),p=(0,l.A)((0,u.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"),d=(0,l.A)((0,u.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");var f=r(24726),h=r(83926),m=r(29009),g=r(46733);function v(e){return(0,g.Ay)("MuiCheckbox",e)}let y=(0,m.A)("MuiCheckbox",["root","checked","disabled","indeterminate","colorPrimary","colorSecondary","sizeSmall","sizeMedium"]);var b=r(77308),w=r(23434),x=r(26952),_=r(72052),A=r(64606),M=r(73397);let N=(0,b.A)(s.A,{shouldForwardProp:e=>(0,h.A)(e)||"classes"===e,name:"MuiCheckbox",slot:"Root",overridesResolver:(e,t)=>{let{ownerState:r}=e;return[t.root,r.indeterminate&&t.indeterminate,t[`size${(0,f.A)(r.size)}`],"default"!==r.color&&t[`color${(0,f.A)(r.color)}`]]}})((0,w.A)(({theme:e})=>({color:(e.vars||e).palette.text.secondary,variants:[{props:{color:"default",disableRipple:!1},style:{"&:hover":{backgroundColor:e.vars?`rgba(${e.vars.palette.action.activeChannel} / ${e.vars.palette.action.hoverOpacity})`:(0,o.X4)(e.palette.action.active,e.palette.action.hoverOpacity)}}},...Object.entries(e.palette).filter((0,x.A)()).map(([t])=>({props:{color:t,disableRipple:!1},style:{"&:hover":{backgroundColor:e.vars?`rgba(${e.vars.palette[t].mainChannel} / ${e.vars.palette.action.hoverOpacity})`:(0,o.X4)(e.palette[t].main,e.palette.action.hoverOpacity)}}})),...Object.entries(e.palette).filter((0,x.A)()).map(([t])=>({props:{color:t},style:{[`&.${y.checked}, &.${y.indeterminate}`]:{color:(e.vars||e).palette[t].main},[`&.${y.disabled}`]:{color:(e.vars||e).palette.action.disabled}}})),{props:{disableRipple:!1},style:{"&:hover":{"@media (hover: none)":{backgroundColor:"transparent"}}}}]}))),S=(0,u.jsx)(p,{}),k=(0,u.jsx)(c,{}),E=(0,u.jsx)(d,{}),O=n.forwardRef(function(e,t){let r=(0,_.b)({props:e,name:"MuiCheckbox"}),{checkedIcon:o=S,color:s="primary",icon:l=k,indeterminate:c=!1,indeterminateIcon:p=E,inputProps:d,size:h="medium",disableRipple:m=!1,className:g,slots:y={},slotProps:b={},...w}=r,x=c?p:l,O=c?p:o,C={...r,disableRipple:m,color:s,indeterminate:c,size:h},T=(e=>{let{classes:t,indeterminate:r,color:n,size:i}=e,o={root:["root",r&&"indeterminate",`color${(0,f.A)(n)}`,`size${(0,f.A)(i)}`]},s=(0,a.A)(o,v,t);return{...t,...s}})(C),$=b.input??d,[R,I]=(0,M.A)("root",{ref:t,elementType:N,className:(0,i.A)(T.root,g),shouldForwardComponentProp:!0,externalForwardedProps:{slots:y,slotProps:b,...w},ownerState:C,additionalProps:{type:"checkbox",icon:n.cloneElement(x,{fontSize:x.props.fontSize??h}),checkedIcon:n.cloneElement(O,{fontSize:O.props.fontSize??h}),disableRipple:m,slots:y,slotProps:{input:(0,A.A)("function"==typeof $?$(C):$,{"data-indeterminate":c})}}});return(0,u.jsx)(R,{...I,classes:T})})},92890(e,t,r){"use strict";r.d(t,{A:()=>k});var n=r(85967),i=r(11750),a=r(81023),o=r(54553),s=r(24726),l=r(10972),u=r(96313),c=r(11502),p=r(29009),d=r(46733);function f(e){return(0,d.Ay)("MuiDialog",e)}let h=(0,p.A)("MuiDialog",["root","scrollPaper","scrollBody","container","paper","paperScrollPaper","paperScrollBody","paperWidthFalse","paperWidthXs","paperWidthSm","paperWidthMd","paperWidthLg","paperWidthXl","paperFullWidth","paperFullScreen"]);var m=r(37042),g=r(32309),v=r(77308),y=r(56599),b=r(23434),w=r(72052),x=r(73397),_=r(62540);let A=(0,v.A)(g.A,{name:"MuiDialog",slot:"Backdrop",overrides:(e,t)=>t.backdrop})({zIndex:-1}),M=(0,v.A)(l.A,{name:"MuiDialog",slot:"Root",overridesResolver:(e,t)=>t.root})({"@media print":{position:"absolute !important"}}),N=(0,v.A)("div",{name:"MuiDialog",slot:"Container",overridesResolver:(e,t)=>{let{ownerState:r}=e;return[t.container,t[`scroll${(0,s.A)(r.scroll)}`]]}})({height:"100%","@media print":{height:"auto"},outline:0,variants:[{props:{scroll:"paper"},style:{display:"flex",justifyContent:"center",alignItems:"center"}},{props:{scroll:"body"},style:{overflowY:"auto",overflowX:"hidden",textAlign:"center","&::after":{content:'""',display:"inline-block",verticalAlign:"middle",height:"100%",width:"0"}}}]}),S=(0,v.A)(c.A,{name:"MuiDialog",slot:"Paper",overridesResolver:(e,t)=>{let{ownerState:r}=e;return[t.paper,t[`scrollPaper${(0,s.A)(r.scroll)}`],t[`paperWidth${(0,s.A)(String(r.maxWidth))}`],r.fullWidth&&t.paperFullWidth,r.fullScreen&&t.paperFullScreen]}})((0,b.A)(({theme:e})=>({margin:32,position:"relative",overflowY:"auto","@media print":{overflowY:"visible",boxShadow:"none"},variants:[{props:{scroll:"paper"},style:{display:"flex",flexDirection:"column",maxHeight:"calc(100% - 64px)"}},{props:{scroll:"body"},style:{display:"inline-block",verticalAlign:"middle",textAlign:"initial"}},{props:({ownerState:e})=>!e.maxWidth,style:{maxWidth:"calc(100% - 64px)"}},{props:{maxWidth:"xs"},style:{maxWidth:"px"===e.breakpoints.unit?Math.max(e.breakpoints.values.xs,444):`max(${e.breakpoints.values.xs}${e.breakpoints.unit}, 444px)`,[`&.${h.paperScrollBody}`]:{[e.breakpoints.down(Math.max(e.breakpoints.values.xs,444)+64)]:{maxWidth:"calc(100% - 64px)"}}}},...Object.keys(e.breakpoints.values).filter(e=>"xs"!==e).map(t=>({props:{maxWidth:t},style:{maxWidth:`${e.breakpoints.values[t]}${e.breakpoints.unit}`,[`&.${h.paperScrollBody}`]:{[e.breakpoints.down(e.breakpoints.values[t]+64)]:{maxWidth:"calc(100% - 64px)"}}}})),{props:({ownerState:e})=>e.fullWidth,style:{width:"calc(100% - 64px)"}},{props:({ownerState:e})=>e.fullScreen,style:{margin:0,width:"100%",maxWidth:"100%",height:"100%",maxHeight:"none",borderRadius:0,[`&.${h.paperScrollBody}`]:{margin:0,maxWidth:"100%"}}}]}))),k=n.forwardRef(function(e,t){let r=(0,w.b)({props:e,name:"MuiDialog"}),l=(0,y.A)(),p={enter:l.transitions.duration.enteringScreen,exit:l.transitions.duration.leavingScreen},{"aria-describedby":d,"aria-labelledby":h,"aria-modal":g=!0,BackdropComponent:v,BackdropProps:b,children:k,className:E,disableEscapeKeyDown:O=!1,fullScreen:C=!1,fullWidth:T=!1,maxWidth:$="sm",onBackdropClick:R,onClick:I,onClose:j,open:P,PaperComponent:z=c.A,PaperProps:Z={},scroll:D="paper",slots:F={},slotProps:L={},TransitionComponent:B=u.A,transitionDuration:q=p,TransitionProps:W,...V}=r,U={...r,disableEscapeKeyDown:O,fullScreen:C,fullWidth:T,maxWidth:$,scroll:D},H=(e=>{let{classes:t,scroll:r,maxWidth:n,fullWidth:i,fullScreen:o}=e,l={root:["root"],container:["container",`scroll${(0,s.A)(r)}`],paper:["paper",`paperScroll${(0,s.A)(r)}`,`paperWidth${(0,s.A)(String(n))}`,i&&"paperFullWidth",o&&"paperFullScreen"]};return(0,a.A)(l,f,t)})(U),Y=n.useRef(),G=(0,o.A)(h),K=n.useMemo(()=>({titleId:G}),[G]),X={slots:{transition:B,...F},slotProps:{transition:W,paper:Z,backdrop:b,...L}},[Q,J]=(0,x.A)("root",{elementType:M,shouldForwardComponentProp:!0,externalForwardedProps:X,ownerState:U,className:(0,i.A)(H.root,E),ref:t}),[ee,et]=(0,x.A)("backdrop",{elementType:A,shouldForwardComponentProp:!0,externalForwardedProps:X,ownerState:U}),[er,en]=(0,x.A)("paper",{elementType:S,shouldForwardComponentProp:!0,externalForwardedProps:X,ownerState:U,className:(0,i.A)(H.paper,Z.className)}),[ei,ea]=(0,x.A)("container",{elementType:N,externalForwardedProps:X,ownerState:U,className:(0,i.A)(H.container)}),[eo,es]=(0,x.A)("transition",{elementType:u.A,externalForwardedProps:X,ownerState:U,additionalProps:{appear:!0,in:P,timeout:q,role:"presentation"}});return(0,_.jsx)(Q,{closeAfterTransition:!0,slots:{backdrop:ee},slotProps:{backdrop:{transitionDuration:q,as:v,...et}},disableEscapeKeyDown:O,onClose:j,open:P,onClick:e=>{I&&I(e),Y.current&&(Y.current=null,R&&R(e),j&&j(e,"backdropClick"))},...J,...V,children:(0,_.jsx)(eo,{...es,children:(0,_.jsx)(ei,{onMouseDown:e=>{Y.current=e.target===e.currentTarget},...ea,children:(0,_.jsx)(er,{as:z,elevation:24,role:"dialog","aria-describedby":d,"aria-labelledby":G,"aria-modal":g,...en,children:(0,_.jsx)(m.A.Provider,{value:K,children:k})})})})})})},37042(e,t,r){"use strict";r.d(t,{A:()=>n});let n=r(85967).createContext({})},39750(e,t,r){"use strict";r.d(t,{A:()=>f});var n=r(85967),i=r(11750),a=r(81023),o=r(77308),s=r(72052),l=r(29009),u=r(46733);function c(e){return(0,u.Ay)("MuiDialogActions",e)}(0,l.A)("MuiDialogActions",["root","spacing"]);var p=r(62540);let d=(0,o.A)("div",{name:"MuiDialogActions",slot:"Root",overridesResolver:(e,t)=>{let{ownerState:r}=e;return[t.root,!r.disableSpacing&&t.spacing]}})({display:"flex",alignItems:"center",padding:8,justifyContent:"flex-end",flex:"0 0 auto",variants:[{props:({ownerState:e})=>!e.disableSpacing,style:{"& > :not(style) ~ :not(style)":{marginLeft:8}}}]}),f=n.forwardRef(function(e,t){let r=(0,s.b)({props:e,name:"MuiDialogActions"}),{className:n,disableSpacing:o=!1,...l}=r,u={...r,disableSpacing:o},f=(e=>{let{classes:t,disableSpacing:r}=e;return(0,a.A)({root:["root",!r&&"spacing"]},c,t)})(u);return(0,p.jsx)(d,{className:(0,i.A)(f.root,n),ownerState:u,ref:t,...l})})},66834(e,t,r){"use strict";r.d(t,{A:()=>m});var n=r(85967),i=r(11750),a=r(81023),o=r(77308),s=r(23434),l=r(72052),u=r(29009),c=r(46733);function p(e){return(0,c.Ay)("MuiDialogContent",e)}(0,u.A)("MuiDialogContent",["root","dividers"]);var d=r(36831),f=r(62540);let h=(0,o.A)("div",{name:"MuiDialogContent",slot:"Root",overridesResolver:(e,t)=>{let{ownerState:r}=e;return[t.root,r.dividers&&t.dividers]}})((0,s.A)(({theme:e})=>({flex:"1 1 auto",WebkitOverflowScrolling:"touch",overflowY:"auto",padding:"20px 24px",variants:[{props:({ownerState:e})=>e.dividers,style:{padding:"16px 24px",borderTop:`1px solid ${(e.vars||e).palette.divider}`,borderBottom:`1px solid ${(e.vars||e).palette.divider}`}},{props:({ownerState:e})=>!e.dividers,style:{[`.${d.A.root} + &`]:{paddingTop:0}}}]}))),m=n.forwardRef(function(e,t){let r=(0,l.b)({props:e,name:"MuiDialogContent"}),{className:n,dividers:o=!1,...s}=r,u={...r,dividers:o},c=(e=>{let{classes:t,dividers:r}=e;return(0,a.A)({root:["root",r&&"dividers"]},p,t)})(u);return(0,f.jsx)(h,{className:(0,i.A)(c.root,n),ownerState:u,ref:t,...s})})},91467(e,t,r){"use strict";r.d(t,{A:()=>f});var n=r(85967),i=r(11750),a=r(81023),o=r(88091),s=r(77308),l=r(72052),u=r(36831),c=r(37042),p=r(62540);let d=(0,s.A)(o.A,{name:"MuiDialogTitle",slot:"Root",overridesResolver:(e,t)=>t.root})({padding:"16px 24px",flex:"0 0 auto"}),f=n.forwardRef(function(e,t){let r=(0,l.b)({props:e,name:"MuiDialogTitle"}),{className:o,id:s,...f}=r,h=(e=>{let{classes:t}=e;return(0,a.A)({root:["root"]},u.t,t)})(r),{titleId:m=s}=n.useContext(c.A);return(0,p.jsx)(d,{component:"h2",className:(0,i.A)(h.root,o),ownerState:r,ref:t,variant:"h6",id:s??m,...f})})},36831(e,t,r){"use strict";r.d(t,{A:()=>o,t:()=>a});var n=r(29009),i=r(46733);function a(e){return(0,i.Ay)("MuiDialogTitle",e)}let o=(0,n.A)("MuiDialogTitle",["root"])},6227(e,t,r){"use strict";r.d(t,{A:()=>m});var n=r(85967),i=r(11750),a=r(81023),o=r(59238),s=r(77308),l=r(23434),u=r(72052),c=r(30119),p=r(62540);let d=(0,s.A)("div",{name:"MuiDivider",slot:"Root",overridesResolver:(e,t)=>{let{ownerState:r}=e;return[t.root,r.absolute&&t.absolute,t[r.variant],r.light&&t.light,"vertical"===r.orientation&&t.vertical,r.flexItem&&t.flexItem,r.children&&t.withChildren,r.children&&"vertical"===r.orientation&&t.withChildrenVertical,"right"===r.textAlign&&"vertical"!==r.orientation&&t.textAlignRight,"left"===r.textAlign&&"vertical"!==r.orientation&&t.textAlignLeft]}})((0,l.A)(({theme:e})=>({margin:0,flexShrink:0,borderWidth:0,borderStyle:"solid",borderColor:(e.vars||e).palette.divider,borderBottomWidth:"thin",variants:[{props:{absolute:!0},style:{position:"absolute",bottom:0,left:0,width:"100%"}},{props:{light:!0},style:{borderColor:e.vars?`rgba(${e.vars.palette.dividerChannel} / 0.08)`:(0,o.X4)(e.palette.divider,.08)}},{props:{variant:"inset"},style:{marginLeft:72}},{props:{variant:"middle",orientation:"horizontal"},style:{marginLeft:e.spacing(2),marginRight:e.spacing(2)}},{props:{variant:"middle",orientation:"vertical"},style:{marginTop:e.spacing(1),marginBottom:e.spacing(1)}},{props:{orientation:"vertical"},style:{height:"100%",borderBottomWidth:0,borderRightWidth:"thin"}},{props:{flexItem:!0},style:{alignSelf:"stretch",height:"auto"}},{props:({ownerState:e})=>!!e.children,style:{display:"flex",textAlign:"center",border:0,borderTopStyle:"solid",borderLeftStyle:"solid","&::before, &::after":{content:'""',alignSelf:"center"}}},{props:({ownerState:e})=>e.children&&"vertical"!==e.orientation,style:{"&::before, &::after":{width:"100%",borderTop:`thin solid ${(e.vars||e).palette.divider}`,borderTopStyle:"inherit"}}},{props:({ownerState:e})=>"vertical"===e.orientation&&e.children,style:{flexDirection:"column","&::before, &::after":{height:"100%",borderLeft:`thin solid ${(e.vars||e).palette.divider}`,borderLeftStyle:"inherit"}}},{props:({ownerState:e})=>"right"===e.textAlign&&"vertical"!==e.orientation,style:{"&::before":{width:"90%"},"&::after":{width:"10%"}}},{props:({ownerState:e})=>"left"===e.textAlign&&"vertical"!==e.orientation,style:{"&::before":{width:"10%"},"&::after":{width:"90%"}}}]}))),f=(0,s.A)("span",{name:"MuiDivider",slot:"Wrapper",overridesResolver:(e,t)=>{let{ownerState:r}=e;return[t.wrapper,"vertical"===r.orientation&&t.wrapperVertical]}})((0,l.A)(({theme:e})=>({display:"inline-block",paddingLeft:`calc(${e.spacing(1)} * 1.2)`,paddingRight:`calc(${e.spacing(1)} * 1.2)`,whiteSpace:"nowrap",variants:[{props:{orientation:"vertical"},style:{paddingTop:`calc(${e.spacing(1)} * 1.2)`,paddingBottom:`calc(${e.spacing(1)} * 1.2)`}}]}))),h=n.forwardRef(function(e,t){let r=(0,u.b)({props:e,name:"MuiDivider"}),{absolute:n=!1,children:o,className:s,orientation:l="horizontal",component:h=o||"vertical"===l?"div":"hr",flexItem:m=!1,light:g=!1,role:v="hr"!==h?"separator":void 0,textAlign:y="center",variant:b="fullWidth",...w}=r,x={...r,absolute:n,component:h,flexItem:m,light:g,orientation:l,role:v,textAlign:y,variant:b},_=(e=>{let{absolute:t,children:r,classes:n,flexItem:i,light:o,orientation:s,textAlign:l,variant:u}=e;return(0,a.A)({root:["root",t&&"absolute",u,o&&"light","vertical"===s&&"vertical",i&&"flexItem",r&&"withChildren",r&&"vertical"===s&&"withChildrenVertical","right"===l&&"vertical"!==s&&"textAlignRight","left"===l&&"vertical"!==s&&"textAlignLeft"],wrapper:["wrapper","vertical"===s&&"wrapperVertical"]},c.K,n)})(x);return(0,p.jsx)(d,{as:h,className:(0,i.A)(_.root,s),role:v,ref:t,ownerState:x,"aria-orientation":"separator"===v&&("hr"!==h||"vertical"===l)?l:void 0,...w,children:o?(0,p.jsx)(f,{className:_.wrapper,ownerState:x,children:o}):null})});h&&(h.muiSkipListHighlight=!0);let m=h},30119(e,t,r){"use strict";r.d(t,{A:()=>o,K:()=>a});var n=r(29009),i=r(46733);function a(e){return(0,i.Ay)("MuiDivider",e)}let o=(0,n.A)("MuiDivider",["root","absolute","fullWidth","inset","middle","flexItem","light","vertical","withChildren","withChildrenVertical","textAlignRight","textAlignLeft","wrapper","wrapperVertical"])},66395(e,t,r){"use strict";r.d(t,{Ay:()=>w});var n=r(85967),i=r(11750),a=r(85351),o=r(20523),s=r(81023),l=r(77308),u=r(72052),c=r(56599);let p=n.createContext();var d=r(29009),f=r(46733);function h(e){return(0,f.Ay)("MuiGrid",e)}let m=["auto",!0,1,2,3,4,5,6,7,8,9,10,11,12],g=(0,d.A)("MuiGrid",["root","container","item","zeroMinWidth",...[0,1,2,3,4,5,6,7,8,9,10].map(e=>`spacing-xs-${e}`),...["column-reverse","column","row-reverse","row"].map(e=>`direction-xs-${e}`),...["nowrap","wrap-reverse","wrap"].map(e=>`wrap-xs-${e}`),...m.map(e=>`grid-xs-${e}`),...m.map(e=>`grid-sm-${e}`),...m.map(e=>`grid-md-${e}`),...m.map(e=>`grid-lg-${e}`),...m.map(e=>`grid-xl-${e}`)]);var v=r(62540);function y({breakpoints:e,values:t}){let r="";Object.keys(t).forEach(e=>{""===r&&0!==t[e]&&(r=e)});let n=Object.keys(e).sort((t,r)=>e[t]-e[r]);return n.slice(0,n.indexOf(r))}let b=(0,l.A)("div",{name:"MuiGrid",slot:"Root",overridesResolver:(e,t)=>{let{ownerState:r}=e,{container:n,direction:i,item:a,spacing:o,wrap:s,zeroMinWidth:l,breakpoints:u}=r,c=[];n&&(c=function(e,t,r={}){if(!e||e<=0)return[];if("string"==typeof e&&!Number.isNaN(Number(e))||"number"==typeof e)return[r[`spacing-xs-${String(e)}`]];let n=[];return t.forEach(t=>{let i=e[t];Number(i)>0&&n.push(r[`spacing-${t}-${String(i)}`])}),n}(o,u,t));let p=[];return u.forEach(e=>{let n=r[e];n&&p.push(t[`grid-${e}-${String(n)}`])}),[t.root,n&&t.container,a&&t.item,l&&t.zeroMinWidth,...c,"row"!==i&&t[`direction-xs-${String(i)}`],"wrap"!==s&&t[`wrap-xs-${String(s)}`],...p]}})(({ownerState:e})=>({boxSizing:"border-box",...e.container&&{display:"flex",flexWrap:"wrap",width:"100%"},...e.item&&{margin:0},...e.zeroMinWidth&&{minWidth:0},..."wrap"!==e.wrap&&{flexWrap:e.wrap}}),function({theme:e,ownerState:t}){let r=(0,a.kW)({values:t.direction,breakpoints:e.breakpoints.values});return(0,a.NI)({theme:e},r,e=>{let t={flexDirection:e};return e.startsWith("column")&&(t[`& > .${g.item}`]={maxWidth:"none"}),t})},function({theme:e,ownerState:t}){let{container:r,rowSpacing:n}=t,i={};if(r&&0!==n){let t,r=(0,a.kW)({values:n,breakpoints:e.breakpoints.values});"object"==typeof r&&(t=y({breakpoints:e.breakpoints.values,values:r})),i=(0,a.NI)({theme:e},r,(r,n)=>{let i=e.spacing(r);return"0px"!==i?{marginTop:`calc(-1 * ${i})`,[`& > .${g.item}`]:{paddingTop:i}}:t?.includes(n)?{}:{marginTop:0,[`& > .${g.item}`]:{paddingTop:0}}})}return i},function({theme:e,ownerState:t}){let{container:r,columnSpacing:n}=t,i={};if(r&&0!==n){let t,r=(0,a.kW)({values:n,breakpoints:e.breakpoints.values});"object"==typeof r&&(t=y({breakpoints:e.breakpoints.values,values:r})),i=(0,a.NI)({theme:e},r,(r,n)=>{let i=e.spacing(r);if("0px"!==i){let e=`calc(-1 * ${i})`;return{width:`calc(100% + ${i})`,marginLeft:e,[`& > .${g.item}`]:{paddingLeft:i}}}return t?.includes(n)?{}:{width:"100%",marginLeft:0,[`& > .${g.item}`]:{paddingLeft:0}}})}return i},function({theme:e,ownerState:t}){let r;return e.breakpoints.keys.reduce((n,i)=>{let o={};if(t[i]&&(r=t[i]),!r)return n;if(!0===r)o={flexBasis:0,flexGrow:1,maxWidth:"100%"};else if("auto"===r)o={flexBasis:"auto",flexGrow:0,flexShrink:0,maxWidth:"none",width:"auto"};else{let s=(0,a.kW)({values:t.columns,breakpoints:e.breakpoints.values}),l="object"==typeof s?s[i]:s;if(null==l)return n;let u=`${Math.round(r/l*1e8)/1e6}%`,c={};if(t.container&&t.item&&0!==t.columnSpacing){let r=e.spacing(t.columnSpacing);if("0px"!==r){let e=`calc(${u} + ${r})`;c={flexBasis:e,maxWidth:e}}}o={flexBasis:u,flexGrow:0,maxWidth:u,...c}}return 0===e.breakpoints.values[i]?Object.assign(n,o):n[e.breakpoints.up(i)]=o,n},{})}),w=n.forwardRef(function(e,t){let r=(0,u.b)({props:e,name:"MuiGrid"}),{breakpoints:a}=(0,c.A)(),l=(0,o.A)(r),{className:d,columns:f,columnSpacing:m,component:g="div",container:y=!1,direction:w="row",item:x=!1,rowSpacing:_,spacing:A=0,wrap:M="wrap",zeroMinWidth:N=!1,...S}=l,k=n.useContext(p),E=y?f||12:k,O={},C={...S};a.keys.forEach(e=>{null!=S[e]&&(O[e]=S[e],delete C[e])});let T={...l,columns:E,container:y,direction:w,item:x,rowSpacing:_||A,columnSpacing:m||A,wrap:M,zeroMinWidth:N,spacing:A,...O,breakpoints:a.keys},$=(e=>{let{classes:t,container:r,direction:n,item:i,spacing:a,wrap:o,zeroMinWidth:l,breakpoints:u}=e,c=[];r&&(c=function(e,t){if(!e||e<=0)return[];if("string"==typeof e&&!Number.isNaN(Number(e))||"number"==typeof e)return[`spacing-xs-${String(e)}`];let r=[];return t.forEach(t=>{let n=e[t];if(Number(n)>0){let e=`spacing-${t}-${String(n)}`;r.push(e)}}),r}(a,u));let p=[];u.forEach(t=>{let r=e[t];r&&p.push(`grid-${t}-${String(r)}`)});let d={root:["root",r&&"container",i&&"item",l&&"zeroMinWidth",...c,"row"!==n&&`direction-xs-${String(n)}`,"wrap"!==o&&`wrap-xs-${String(o)}`,...p]};return(0,s.A)(d,h,t)})(T);return(0,v.jsx)(p.Provider,{value:E,children:(0,v.jsx)(b,{ownerState:T,className:(0,i.A)($.root,d),as:g,ref:t,...C})})})},2582(e,t,r){"use strict";r.d(t,{A:()=>w});var n,i=r(85967),a=r(11750),o=r(81023),s=r(24726),l=r(88091),u=r(88404),c=r(42872),p=r(77308),d=r(23434),f=r(72052),h=r(29009),m=r(46733);function g(e){return(0,m.Ay)("MuiInputAdornment",e)}let v=(0,h.A)("MuiInputAdornment",["root","filled","standard","outlined","positionStart","positionEnd","disablePointerEvents","hiddenLabel","sizeSmall"]);var y=r(62540);let b=(0,p.A)("div",{name:"MuiInputAdornment",slot:"Root",overridesResolver:(e,t)=>{let{ownerState:r}=e;return[t.root,t[`position${(0,s.A)(r.position)}`],!0===r.disablePointerEvents&&t.disablePointerEvents,t[r.variant]]}})((0,d.A)(({theme:e})=>({display:"flex",maxHeight:"2em",alignItems:"center",whiteSpace:"nowrap",color:(e.vars||e).palette.action.active,variants:[{props:{variant:"filled"},style:{[`&.${v.positionStart}&:not(.${v.hiddenLabel})`]:{marginTop:16}}},{props:{position:"start"},style:{marginRight:8}},{props:{position:"end"},style:{marginLeft:8}},{props:{disablePointerEvents:!0},style:{pointerEvents:"none"}}]}))),w=i.forwardRef(function(e,t){let r=(0,f.b)({props:e,name:"MuiInputAdornment"}),{children:p,className:d,component:h="div",disablePointerEvents:m=!1,disableTypography:v=!1,position:w,variant:x,..._}=r,A=(0,c.A)()||{},M=x;x&&A.variant,A&&!M&&(M=A.variant);let N={...r,hiddenLabel:A.hiddenLabel,size:A.size,disablePointerEvents:m,position:w,variant:M},S=(e=>{let{classes:t,disablePointerEvents:r,hiddenLabel:n,position:i,size:a,variant:l}=e,u={root:["root",r&&"disablePointerEvents",i&&`position${(0,s.A)(i)}`,l,n&&"hiddenLabel",a&&`size${(0,s.A)(a)}`]};return(0,o.A)(u,g,t)})(N);return(0,y.jsx)(u.A.Provider,{value:null,children:(0,y.jsx)(b,{as:h,ownerState:N,className:(0,a.A)(S.root,d),ref:t,..._,children:"string"!=typeof p||v?(0,y.jsxs)(i.Fragment,{children:["start"===w?n||(n=(0,y.jsx)("span",{className:"notranslate","aria-hidden":!0,children:"​"})):null,p]}):(0,y.jsx)(l.A,{color:"textSecondary",children:p})})})})},57438(e,t,r){"use strict";r.d(t,{A:()=>w});var n=r(85967),i=r(11750),a=r(59238),o=r(81023),s=r(93399),l=r(24726),u=r(77308),c=r(56599),p=r(23434),d=r(26952),f=r(72052),h=r(88091),m=r(82561),g=r(95279),v=r(62540);let y={primary:!0,secondary:!0,error:!0,info:!0,success:!0,warning:!0,textPrimary:!0,textSecondary:!0,textDisabled:!0},b=(0,u.A)(h.A,{name:"MuiLink",slot:"Root",overridesResolver:(e,t)=>{let{ownerState:r}=e;return[t.root,t[`underline${(0,l.A)(r.underline)}`],"button"===r.component&&t.button]}})((0,p.A)(({theme:e})=>({variants:[{props:{underline:"none"},style:{textDecoration:"none"}},{props:{underline:"hover"},style:{textDecoration:"none","&:hover":{textDecoration:"underline"}}},{props:{underline:"always"},style:{textDecoration:"underline","&:hover":{textDecorationColor:"inherit"}}},{props:({underline:e,ownerState:t})=>"always"===e&&"inherit"!==t.color,style:{textDecorationColor:"var(--Link-underlineColor)"}},...Object.entries(e.palette).filter((0,d.A)()).map(([t])=>({props:{underline:"always",color:t},style:{"--Link-underlineColor":e.vars?`rgba(${e.vars.palette[t].mainChannel} / 0.4)`:(0,a.X4)(e.palette[t].main,.4)}})),{props:{underline:"always",color:"textPrimary"},style:{"--Link-underlineColor":e.vars?`rgba(${e.vars.palette.text.primaryChannel} / 0.4)`:(0,a.X4)(e.palette.text.primary,.4)}},{props:{underline:"always",color:"textSecondary"},style:{"--Link-underlineColor":e.vars?`rgba(${e.vars.palette.text.secondaryChannel} / 0.4)`:(0,a.X4)(e.palette.text.secondary,.4)}},{props:{underline:"always",color:"textDisabled"},style:{"--Link-underlineColor":(e.vars||e).palette.text.disabled}},{props:{component:"button"},style:{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"},[`&.${m.A.focusVisible}`]:{outline:"auto"}}}]}))),w=n.forwardRef(function(e,t){let r=(0,f.b)({props:e,name:"MuiLink"}),u=(0,c.A)(),{className:p,color:d="primary",component:h="a",onBlur:w,onFocus:x,TypographyClasses:_,underline:A="always",variant:M="inherit",sx:N,...S}=r,[k,E]=n.useState(!1),O={...r,color:d,component:h,focusVisible:k,underline:A,variant:M},C=(e=>{let{classes:t,component:r,focusVisible:n,underline:i}=e,a={root:["root",`underline${(0,l.A)(i)}`,"button"===r&&"button",n&&"focusVisible"]};return(0,o.A)(a,m.t,t)})(O);return(0,v.jsx)(b,{color:d,className:(0,i.A)(C.root,p),classes:_,component:h,onBlur:e=>{(0,s.A)(e.target)||E(!1),w&&w(e)},onFocus:e=>{(0,s.A)(e.target)&&E(!0),x&&x(e)},ref:t,ownerState:O,variant:M,...S,sx:[...void 0===y[d]?[{color:d}]:[],...Array.isArray(N)?N:[N]],style:{...S.style,..."always"===A&&"inherit"!==d&&!y[d]&&{"--Link-underlineColor":(({theme:e,ownerState:t})=>{let r=t.color,n=(0,g.Yn)(e,`palette.${r}.main`,!1)||(0,g.Yn)(e,`palette.${r}`,!1)||t.color,i=(0,g.Yn)(e,`palette.${r}.mainChannel`)||(0,g.Yn)(e,`palette.${r}Channel`);return"vars"in e&&i?`rgba(${i} / 0.4)`:(0,a.X4)(n,.4)})({theme:u,ownerState:O})}}})})},82561(e,t,r){"use strict";r.d(t,{A:()=>o,t:()=>a});var n=r(29009),i=r(46733);function a(e){return(0,i.Ay)("MuiLink",e)}let o=(0,n.A)("MuiLink",["root","underlineNone","underlineHover","underlineAlways","button","focusVisible"])},14045(e,t,r){"use strict";r.d(t,{A:()=>m});var n=r(85967),i=r(11750),a=r(81023),o=r(47599),s=r(88091),l=r(67214),u=r(77308),c=r(72052),p=r(85397),d=r(73397),f=r(62540);let h=(0,u.A)("div",{name:"MuiListItemText",slot:"Root",overridesResolver:(e,t)=>{let{ownerState:r}=e;return[{[`& .${p.A.primary}`]:t.primary},{[`& .${p.A.secondary}`]:t.secondary},t.root,r.inset&&t.inset,r.primary&&r.secondary&&t.multiline,r.dense&&t.dense]}})({flex:"1 1 auto",minWidth:0,marginTop:4,marginBottom:4,[`.${o.A.root}:where(& .${p.A.primary})`]:{display:"block"},[`.${o.A.root}:where(& .${p.A.secondary})`]:{display:"block"},variants:[{props:({ownerState:e})=>e.primary&&e.secondary,style:{marginTop:6,marginBottom:6}},{props:({ownerState:e})=>e.inset,style:{paddingLeft:56}}]}),m=n.forwardRef(function(e,t){let r=(0,c.b)({props:e,name:"MuiListItemText"}),{children:o,className:u,disableTypography:m=!1,inset:g=!1,primary:v,primaryTypographyProps:y,secondary:b,secondaryTypographyProps:w,slots:x={},slotProps:_={},...A}=r,{dense:M}=n.useContext(l.A),N=null!=v?v:o,S=b,k={...r,disableTypography:m,inset:g,primary:!!N,secondary:!!S,dense:M},E=(e=>{let{classes:t,inset:r,primary:n,secondary:i,dense:o}=e;return(0,a.A)({root:["root",r&&"inset",o&&"dense",n&&i&&"multiline"],primary:["primary"],secondary:["secondary"]},p.b,t)})(k),O={slots:x,slotProps:{primary:y,secondary:w,..._}},[C,T]=(0,d.A)("root",{className:(0,i.A)(E.root,u),elementType:h,externalForwardedProps:{...O,...A},ownerState:k,ref:t}),[$,R]=(0,d.A)("primary",{className:E.primary,elementType:s.A,externalForwardedProps:O,ownerState:k}),[I,j]=(0,d.A)("secondary",{className:E.secondary,elementType:s.A,externalForwardedProps:O,ownerState:k});return null==N||N.type===s.A||m||(N=(0,f.jsx)($,{variant:M?"body2":"body1",component:R?.variant?void 0:"span",...R,children:N})),null==S||S.type===s.A||m||(S=(0,f.jsx)(I,{variant:"body2",color:"textSecondary",...j,children:S})),(0,f.jsxs)(C,{...T,children:[N,S]})})},85397(e,t,r){"use strict";r.d(t,{A:()=>o,b:()=>a});var n=r(29009),i=r(46733);function a(e){return(0,i.Ay)("MuiListItemText",e)}let o=(0,n.A)("MuiListItemText",["root","multiline","dense","inset","primary","secondary"])},97653(e,t,r){"use strict";r.d(t,{A:()=>M});var n=r(85967),i=r(11750),a=r(81023),o=r(59238),s=r(83926),l=r(77308),u=r(23434),c=r(72052),p=r(67214),d=r(1337),f=r(54382),h=r(29424),m=r(30119),g=r(29009);let v=(0,g.A)("MuiListItemIcon",["root","alignItemsFlexStart"]);var y=r(85397),b=r(46733);function w(e){return(0,b.Ay)("MuiMenuItem",e)}let x=(0,g.A)("MuiMenuItem",["root","focusVisible","dense","disabled","divider","gutters","selected"]);var _=r(62540);let A=(0,l.A)(d.A,{shouldForwardProp:e=>(0,s.A)(e)||"classes"===e,name:"MuiMenuItem",slot:"Root",overridesResolver:(e,t)=>{let{ownerState:r}=e;return[t.root,r.dense&&t.dense,r.divider&&t.divider,!r.disableGutters&&t.gutters]}})((0,u.A)(({theme:e})=>({...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","&:hover":{textDecoration:"none",backgroundColor:(e.vars||e).palette.action.hover,"@media (hover: none)":{backgroundColor:"transparent"}},[`&.${x.selected}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:(0,o.X4)(e.palette.primary.main,e.palette.action.selectedOpacity),[`&.${x.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.focusOpacity}))`:(0,o.X4)(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.focusOpacity)}},[`&.${x.selected}:hover`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.hoverOpacity}))`:(0,o.X4)(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})`:(0,o.X4)(e.palette.primary.main,e.palette.action.selectedOpacity)}},[`&.${x.focusVisible}`]:{backgroundColor:(e.vars||e).palette.action.focus},[`&.${x.disabled}`]:{opacity:(e.vars||e).palette.action.disabledOpacity},[`& + .${m.A.root}`]:{marginTop:e.spacing(1),marginBottom:e.spacing(1)},[`& + .${m.A.inset}`]:{marginLeft:52},[`& .${y.A.root}`]:{marginTop:0,marginBottom:0},[`& .${y.A.inset}`]:{paddingLeft:36},[`& .${v.root}`]:{minWidth:36},variants:[{props:({ownerState:e})=>!e.disableGutters,style:{paddingLeft:16,paddingRight:16}},{props:({ownerState:e})=>e.divider,style:{borderBottom:`1px solid ${(e.vars||e).palette.divider}`,backgroundClip:"padding-box"}},{props:({ownerState:e})=>!e.dense,style:{[e.breakpoints.up("sm")]:{minHeight:"auto"}}},{props:({ownerState:e})=>e.dense,style:{minHeight:32,paddingTop:4,paddingBottom:4,...e.typography.body2,[`& .${v.root} svg`]:{fontSize:"1.25rem"}}}]}))),M=n.forwardRef(function(e,t){let r,o=(0,c.b)({props:e,name:"MuiMenuItem"}),{autoFocus:s=!1,component:l="li",dense:u=!1,divider:d=!1,disableGutters:m=!1,focusVisibleClassName:g,role:v="menuitem",tabIndex:y,className:b,...x}=o,M=n.useContext(p.A),N=n.useMemo(()=>({dense:u||M.dense||!1,disableGutters:m}),[M.dense,u,m]),S=n.useRef(null);(0,f.A)(()=>{s&&S.current&&S.current.focus()},[s]);let k={...o,dense:N.dense,divider:d,disableGutters:m},E=(e=>{let{disabled:t,dense:r,divider:n,disableGutters:i,selected:o,classes:s}=e,l=(0,a.A)({root:["root",r&&"dense",t&&"disabled",!i&&"gutters",n&&"divider",o&&"selected"]},w,s);return{...s,...l}})(o),O=(0,h.A)(S,t);return o.disabled||(r=void 0!==y?y:-1),(0,_.jsx)(p.A.Provider,{value:N,children:(0,_.jsx)(A,{ref:O,role:v,tabIndex:r,component:l,focusVisibleClassName:(0,i.A)(E.focusVisible,g),className:(0,i.A)(E.root,b),...x,ownerState:k,classes:E})})})},33313(e,t,r){"use strict";r.d(t,{A:()=>w});var n=r(85967),i=r(11750),a=r(81023),o=r(59238),s=r(69402),l=r(77308),u=r(23434),c=r(72052),p=r(29009),d=r(46733);function f(e){return(0,d.Ay)("MuiSkeleton",e)}(0,p.A)("MuiSkeleton",["root","text","rectangular","rounded","circular","pulse","wave","withChildren","fitContent","heightAuto"]);var h=r(62540);let m=(0,s.keyframes)`
3
- 0% {
4
- opacity: 1;
5
- }
6
-
7
- 50% {
8
- opacity: 0.4;
9
- }
10
-
11
- 100% {
12
- opacity: 1;
13
- }
14
- `,g=(0,s.keyframes)`
15
- 0% {
16
- transform: translateX(-100%);
17
- }
18
-
19
- 50% {
20
- /* +0.5s of delay between each loop */
21
- transform: translateX(100%);
22
- }
23
-
24
- 100% {
25
- transform: translateX(100%);
26
- }
27
- `,v="string"!=typeof m?(0,s.css)`
28
- animation: ${m} 2s ease-in-out 0.5s infinite;
29
- `:null,y="string"!=typeof g?(0,s.css)`
30
- &::after {
31
- animation: ${g} 2s linear 0.5s infinite;
32
- }
33
- `:null,b=(0,l.A)("span",{name:"MuiSkeleton",slot:"Root",overridesResolver:(e,t)=>{let{ownerState:r}=e;return[t.root,t[r.variant],!1!==r.animation&&t[r.animation],r.hasChildren&&t.withChildren,r.hasChildren&&!r.width&&t.fitContent,r.hasChildren&&!r.height&&t.heightAuto]}})((0,u.A)(({theme:e})=>{let t=String(e.shape.borderRadius).match(/[\d.\-+]*\s*(.*)/)[1]||"px",r=parseFloat(e.shape.borderRadius);return{display:"block",backgroundColor:e.vars?e.vars.palette.Skeleton.bg:(0,o.X4)(e.palette.text.primary,"light"===e.palette.mode?.11:.13),height:"1.2em",variants:[{props:{variant:"text"},style:{marginTop:0,marginBottom:0,height:"auto",transformOrigin:"0 55%",transform:"scale(1, 0.60)",borderRadius:`${r}${t}/${Math.round(r/.6*10)/10}${t}`,"&:empty:before":{content:'"\\00a0"'}}},{props:{variant:"circular"},style:{borderRadius:"50%"}},{props:{variant:"rounded"},style:{borderRadius:(e.vars||e).shape.borderRadius}},{props:({ownerState:e})=>e.hasChildren,style:{"& > *":{visibility:"hidden"}}},{props:({ownerState:e})=>e.hasChildren&&!e.width,style:{maxWidth:"fit-content"}},{props:({ownerState:e})=>e.hasChildren&&!e.height,style:{height:"auto"}},{props:{animation:"pulse"},style:v||{animation:`${m} 2s ease-in-out 0.5s infinite`}},{props:{animation:"wave"},style:{position:"relative",overflow:"hidden",WebkitMaskImage:"-webkit-radial-gradient(white, black)","&::after":{background:`linear-gradient(
34
- 90deg,
35
- transparent,
36
- ${(e.vars||e).palette.action.hover},
37
- transparent
38
- )`,content:'""',position:"absolute",transform:"translateX(-100%)",bottom:0,left:0,right:0,top:0}}},{props:{animation:"wave"},style:y||{"&::after":{animation:`${g} 2s linear 0.5s infinite`}}}]}})),w=n.forwardRef(function(e,t){let r=(0,c.b)({props:e,name:"MuiSkeleton"}),{animation:n="pulse",className:o,component:s="span",height:l,style:u,variant:p="text",width:d,...m}=r,g={...r,animation:n,component:s,variant:p,hasChildren:!!m.children},v=(e=>{let{classes:t,variant:r,animation:n,hasChildren:i,width:o,height:s}=e;return(0,a.A)({root:["root",r,n,i&&"withChildren",i&&!o&&"fitContent",i&&!s&&"heightAuto"]},f,t)})(g);return(0,h.jsx)(b,{as:s,ref:t,className:(0,i.A)(v.root,o),ownerState:g,...m,style:{width:d,height:l,...u}})})},315(e,t,r){"use strict";r.d(t,{A:()=>o});var n=r(68335),i=r(77308),a=r(72052);let o=(0,n.A)({createStyledComponent:(0,i.A)("div",{name:"MuiStack",slot:"Root",overridesResolver:(e,t)=>t.root}),useThemeProps:e=>(0,a.b)({props:e,name:"MuiStack"})})},33868(e,t,r){"use strict";r.d(t,{A:()=>v});var n=r(85967),i=r(11750),a=r(81023),o=r(1337),s=r(24726),l=r(77308),u=r(23434),c=r(72052),p=r(29009),d=r(46733);function f(e){return(0,d.Ay)("MuiTab",e)}let h=(0,p.A)("MuiTab",["root","labelIcon","textColorInherit","textColorPrimary","textColorSecondary","selected","disabled","fullWidth","wrapped","iconWrapper","icon"]);var m=r(62540);let g=(0,l.A)(o.A,{name:"MuiTab",slot:"Root",overridesResolver:(e,t)=>{let{ownerState:r}=e;return[t.root,r.label&&r.icon&&t.labelIcon,t[`textColor${(0,s.A)(r.textColor)}`],r.fullWidth&&t.fullWidth,r.wrapped&&t.wrapped,{[`& .${h.iconWrapper}`]:t.iconWrapper},{[`& .${h.icon}`]:t.icon}]}})((0,u.A)(({theme:e})=>({...e.typography.button,maxWidth:360,minWidth:90,position:"relative",minHeight:48,flexShrink:0,padding:"12px 16px",overflow:"hidden",whiteSpace:"normal",textAlign:"center",lineHeight:1.25,variants:[{props:({ownerState:e})=>e.label&&("top"===e.iconPosition||"bottom"===e.iconPosition),style:{flexDirection:"column"}},{props:({ownerState:e})=>e.label&&"top"!==e.iconPosition&&"bottom"!==e.iconPosition,style:{flexDirection:"row"}},{props:({ownerState:e})=>e.icon&&e.label,style:{minHeight:72,paddingTop:9,paddingBottom:9}},{props:({ownerState:e,iconPosition:t})=>e.icon&&e.label&&"top"===t,style:{[`& > .${h.icon}`]:{marginBottom:6}}},{props:({ownerState:e,iconPosition:t})=>e.icon&&e.label&&"bottom"===t,style:{[`& > .${h.icon}`]:{marginTop:6}}},{props:({ownerState:e,iconPosition:t})=>e.icon&&e.label&&"start"===t,style:{[`& > .${h.icon}`]:{marginRight:e.spacing(1)}}},{props:({ownerState:e,iconPosition:t})=>e.icon&&e.label&&"end"===t,style:{[`& > .${h.icon}`]:{marginLeft:e.spacing(1)}}},{props:{textColor:"inherit"},style:{color:"inherit",opacity:.6,[`&.${h.selected}`]:{opacity:1},[`&.${h.disabled}`]:{opacity:(e.vars||e).palette.action.disabledOpacity}}},{props:{textColor:"primary"},style:{color:(e.vars||e).palette.text.secondary,[`&.${h.selected}`]:{color:(e.vars||e).palette.primary.main},[`&.${h.disabled}`]:{color:(e.vars||e).palette.text.disabled}}},{props:{textColor:"secondary"},style:{color:(e.vars||e).palette.text.secondary,[`&.${h.selected}`]:{color:(e.vars||e).palette.secondary.main},[`&.${h.disabled}`]:{color:(e.vars||e).palette.text.disabled}}},{props:({ownerState:e})=>e.fullWidth,style:{flexShrink:1,flexGrow:1,flexBasis:0,maxWidth:"none"}},{props:({ownerState:e})=>e.wrapped,style:{fontSize:e.typography.pxToRem(12)}}]}))),v=n.forwardRef(function(e,t){let r=(0,c.b)({props:e,name:"MuiTab"}),{className:o,disabled:l=!1,disableFocusRipple:u=!1,fullWidth:p,icon:d,iconPosition:h="top",indicator:v,label:y,onChange:b,onClick:w,onFocus:x,selected:_,selectionFollowsFocus:A,textColor:M="inherit",value:N,wrapped:S=!1,...k}=r,E={...r,disabled:l,disableFocusRipple:u,selected:_,icon:!!d,iconPosition:h,label:!!y,fullWidth:p,textColor:M,wrapped:S},O=(e=>{let{classes:t,textColor:r,fullWidth:n,wrapped:i,icon:o,label:l,selected:u,disabled:c}=e,p={root:["root",o&&l&&"labelIcon",`textColor${(0,s.A)(r)}`,n&&"fullWidth",i&&"wrapped",u&&"selected",c&&"disabled"],icon:["iconWrapper","icon"]};return(0,a.A)(p,f,t)})(E),C=d&&y&&n.isValidElement(d)?n.cloneElement(d,{className:(0,i.A)(O.icon,d.props.className)}):d;return(0,m.jsxs)(g,{focusRipple:!u,className:(0,i.A)(O.root,o),ref:t,role:"tab","aria-selected":_,disabled:l,onClick:e=>{!_&&b&&b(e,N),w&&w(e)},onFocus:e=>{A&&!_&&b&&b(e,N),x&&x(e)},ownerState:E,tabIndex:_?0:-1,...k,children:["top"===h||"start"===h?(0,m.jsxs)(n.Fragment,{children:[C,y]}):(0,m.jsxs)(n.Fragment,{children:[y,C]}),v]})})},91394(e,t,r){"use strict";r.d(t,{A:()=>g});var n=r(85967),i=r(11750),a=r(81023),o=r(70872),s=r(77308),l=r(23434),u=r(72052),c=r(29009),p=r(46733);function d(e){return(0,p.Ay)("MuiTable",e)}(0,c.A)("MuiTable",["root","stickyHeader"]);var f=r(62540);let h=(0,s.A)("table",{name:"MuiTable",slot:"Root",overridesResolver:(e,t)=>{let{ownerState:r}=e;return[t.root,r.stickyHeader&&t.stickyHeader]}})((0,l.A)(({theme:e})=>({display:"table",width:"100%",borderCollapse:"collapse",borderSpacing:0,"& caption":{...e.typography.body2,padding:e.spacing(2),color:(e.vars||e).palette.text.secondary,textAlign:"left",captionSide:"bottom"},variants:[{props:({ownerState:e})=>e.stickyHeader,style:{borderCollapse:"separate"}}]}))),m="table",g=n.forwardRef(function(e,t){let r=(0,u.b)({props:e,name:"MuiTable"}),{className:s,component:l=m,padding:c="normal",size:p="medium",stickyHeader:g=!1,...v}=r,y={...r,component:l,padding:c,size:p,stickyHeader:g},b=(e=>{let{classes:t,stickyHeader:r}=e;return(0,a.A)({root:["root",r&&"stickyHeader"]},d,t)})(y),w=n.useMemo(()=>({padding:c,size:p,stickyHeader:g}),[c,p,g]);return(0,f.jsx)(o.A.Provider,{value:w,children:(0,f.jsx)(h,{as:l,role:l===m?null:"table",ref:t,className:(0,i.A)(b.root,s),ownerState:y,...v})})})},70872(e,t,r){"use strict";r.d(t,{A:()=>n});let n=r(85967).createContext()},91644(e,t,r){"use strict";r.d(t,{A:()=>n});let n=r(85967).createContext()},5139(e,t,r){"use strict";r.d(t,{A:()=>g});var n=r(85967),i=r(11750),a=r(81023),o=r(91644),s=r(77308),l=r(72052),u=r(29009),c=r(46733);function p(e){return(0,c.Ay)("MuiTableBody",e)}(0,u.A)("MuiTableBody",["root"]);var d=r(62540);let f=(0,s.A)("tbody",{name:"MuiTableBody",slot:"Root",overridesResolver:(e,t)=>t.root})({display:"table-row-group"}),h={variant:"body"},m="tbody",g=n.forwardRef(function(e,t){let r=(0,l.b)({props:e,name:"MuiTableBody"}),{className:n,component:s=m,...u}=r,c={...r,component:s},g=(e=>{let{classes:t}=e;return(0,a.A)({root:["root"]},p,t)})(c);return(0,d.jsx)(o.A.Provider,{value:h,children:(0,d.jsx)(f,{className:(0,i.A)(g.root,n),as:s,ref:t,role:s===m?null:"rowgroup",ownerState:c,...u})})})},45271(e,t,r){"use strict";r.d(t,{A:()=>b});var n=r(85967),i=r(11750),a=r(81023),o=r(59238),s=r(24726),l=r(70872),u=r(91644),c=r(77308),p=r(23434),d=r(72052),f=r(29009),h=r(46733);function m(e){return(0,h.Ay)("MuiTableCell",e)}let g=(0,f.A)("MuiTableCell",["root","head","body","footer","sizeSmall","sizeMedium","paddingCheckbox","paddingNone","alignLeft","alignCenter","alignRight","alignJustify","stickyHeader"]);var v=r(62540);let y=(0,c.A)("td",{name:"MuiTableCell",slot:"Root",overridesResolver:(e,t)=>{let{ownerState:r}=e;return[t.root,t[r.variant],t[`size${(0,s.A)(r.size)}`],"normal"!==r.padding&&t[`padding${(0,s.A)(r.padding)}`],"inherit"!==r.align&&t[`align${(0,s.A)(r.align)}`],r.stickyHeader&&t.stickyHeader]}})((0,p.A)(({theme:e})=>({...e.typography.body2,display:"table-cell",verticalAlign:"inherit",borderBottom:e.vars?`1px solid ${e.vars.palette.TableCell.border}`:`1px solid
39
- ${"light"===e.palette.mode?(0,o.a)((0,o.X4)(e.palette.divider,1),.88):(0,o.e$)((0,o.X4)(e.palette.divider,1),.68)}`,textAlign:"left",padding:16,variants:[{props:{variant:"head"},style:{color:(e.vars||e).palette.text.primary,lineHeight:e.typography.pxToRem(24),fontWeight:e.typography.fontWeightMedium}},{props:{variant:"body"},style:{color:(e.vars||e).palette.text.primary}},{props:{variant:"footer"},style:{color:(e.vars||e).palette.text.secondary,lineHeight:e.typography.pxToRem(21),fontSize:e.typography.pxToRem(12)}},{props:{size:"small"},style:{padding:"6px 16px",[`&.${g.paddingCheckbox}`]:{width:24,padding:"0 12px 0 16px","& > *":{padding:0}}}},{props:{padding:"checkbox"},style:{width:48,padding:"0 0 0 4px"}},{props:{padding:"none"},style:{padding:0}},{props:{align:"left"},style:{textAlign:"left"}},{props:{align:"center"},style:{textAlign:"center"}},{props:{align:"right"},style:{textAlign:"right",flexDirection:"row-reverse"}},{props:{align:"justify"},style:{textAlign:"justify"}},{props:({ownerState:e})=>e.stickyHeader,style:{position:"sticky",top:0,zIndex:2,backgroundColor:(e.vars||e).palette.background.default}}]}))),b=n.forwardRef(function(e,t){let r,o=(0,d.b)({props:e,name:"MuiTableCell"}),{align:c="inherit",className:p,component:f,padding:h,scope:g,size:b,sortDirection:w,variant:x,..._}=o,A=n.useContext(l.A),M=n.useContext(u.A),N=M&&"head"===M.variant,S=g;"td"===(r=f||(N?"th":"td"))?S=void 0:!S&&N&&(S="col");let k=x||M&&M.variant,E={...o,align:c,component:r,padding:h||(A&&A.padding?A.padding:"normal"),size:b||(A&&A.size?A.size:"medium"),sortDirection:w,stickyHeader:"head"===k&&A&&A.stickyHeader,variant:k},O=(e=>{let{classes:t,variant:r,align:n,padding:i,size:o,stickyHeader:l}=e,u={root:["root",r,l&&"stickyHeader","inherit"!==n&&`align${(0,s.A)(n)}`,"normal"!==i&&`padding${(0,s.A)(i)}`,`size${(0,s.A)(o)}`]};return(0,a.A)(u,m,t)})(E),C=null;return w&&(C="asc"===w?"ascending":"descending"),(0,v.jsx)(y,{as:r,ref:t,className:(0,i.A)(O.root,p),"aria-sort":C,scope:S,ownerState:E,..._})})},347(e,t,r){"use strict";r.d(t,{A:()=>f});var n=r(85967),i=r(11750),a=r(81023),o=r(77308),s=r(72052),l=r(29009),u=r(46733);function c(e){return(0,u.Ay)("MuiTableContainer",e)}(0,l.A)("MuiTableContainer",["root"]);var p=r(62540);let d=(0,o.A)("div",{name:"MuiTableContainer",slot:"Root",overridesResolver:(e,t)=>t.root})({width:"100%",overflowX:"auto"}),f=n.forwardRef(function(e,t){let r=(0,s.b)({props:e,name:"MuiTableContainer"}),{className:n,component:o="div",...l}=r,u={...r,component:o},f=(e=>{let{classes:t}=e;return(0,a.A)({root:["root"]},c,t)})(u);return(0,p.jsx)(d,{ref:t,as:o,className:(0,i.A)(f.root,n),ownerState:u,...l})})},70561(e,t,r){"use strict";r.d(t,{A:()=>g});var n=r(85967),i=r(11750),a=r(81023),o=r(91644),s=r(77308),l=r(72052),u=r(29009),c=r(46733);function p(e){return(0,c.Ay)("MuiTableHead",e)}(0,u.A)("MuiTableHead",["root"]);var d=r(62540);let f=(0,s.A)("thead",{name:"MuiTableHead",slot:"Root",overridesResolver:(e,t)=>t.root})({display:"table-header-group"}),h={variant:"head"},m="thead",g=n.forwardRef(function(e,t){let r=(0,l.b)({props:e,name:"MuiTableHead"}),{className:n,component:s=m,...u}=r,c={...r,component:s},g=(e=>{let{classes:t}=e;return(0,a.A)({root:["root"]},p,t)})(c);return(0,d.jsx)(o.A.Provider,{value:h,children:(0,d.jsx)(f,{as:s,className:(0,i.A)(g.root,n),ref:t,role:s===m?null:"rowgroup",ownerState:c,...u})})})},3399(e,t,r){"use strict";r.d(t,{A:()=>v});var n=r(85967),i=r(11750),a=r(81023),o=r(59238),s=r(91644),l=r(77308),u=r(23434),c=r(72052),p=r(29009),d=r(46733);function f(e){return(0,d.Ay)("MuiTableRow",e)}let h=(0,p.A)("MuiTableRow",["root","selected","hover","head","footer"]);var m=r(62540);let g=(0,l.A)("tr",{name:"MuiTableRow",slot:"Root",overridesResolver:(e,t)=>{let{ownerState:r}=e;return[t.root,r.head&&t.head,r.footer&&t.footer]}})((0,u.A)(({theme:e})=>({color:"inherit",display:"table-row",verticalAlign:"middle",outline:0,[`&.${h.hover}:hover`]:{backgroundColor:(e.vars||e).palette.action.hover},[`&.${h.selected}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:(0,o.X4)(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}))`:(0,o.X4)(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.hoverOpacity)}}}))),v=n.forwardRef(function(e,t){let r=(0,c.b)({props:e,name:"MuiTableRow"}),{className:o,component:l="tr",hover:u=!1,selected:p=!1,...d}=r,h=n.useContext(s.A),v={...r,component:l,hover:u,selected:p,head:h&&"head"===h.variant,footer:h&&"footer"===h.variant},y=(e=>{let{classes:t,selected:r,hover:n,head:i,footer:o}=e;return(0,a.A)({root:["root",r&&"selected",n&&"hover",i&&"head",o&&"footer"]},f,t)})(v);return(0,m.jsx)(g,{as:l,ref:t,className:(0,i.A)(y.root,o),role:"tr"===l?null:"row",ownerState:v,...d})})},87034(e,t,r){"use strict";r.d(t,{A:()=>F});var n=r(85967),i=r(11750),a=r(81023),o=r(35216),s=r(77893),l=r(77308),u=r(56599),c=r(23434),p=r(72052),d=r(55403);function f(e){return(1+Math.sin(Math.PI*e-Math.PI/2))/2}var h=r(54382),m=r(63025),g=r(62540);let v={width:99,height:99,position:"absolute",top:-9999,overflow:"scroll"};var y=r(96913),b=r(70776),w=r(1337),x=r(29009),_=r(46733);function A(e){return(0,_.Ay)("MuiTabScrollButton",e)}let M=(0,x.A)("MuiTabScrollButton",["root","vertical","horizontal","disabled"]),N=(0,l.A)(w.A,{name:"MuiTabScrollButton",slot:"Root",overridesResolver:(e,t)=>{let{ownerState:r}=e;return[t.root,r.orientation&&t[r.orientation]]}})({width:40,flexShrink:0,opacity:.8,[`&.${M.disabled}`]:{opacity:0},variants:[{props:{orientation:"vertical"},style:{width:"100%",height:40,"& svg":{transform:"var(--TabScrollButton-svgRotate)"}}}]}),S=n.forwardRef(function(e,t){let r=(0,p.b)({props:e,name:"MuiTabScrollButton"}),{className:n,slots:l={},slotProps:u={},direction:c,orientation:d,disabled:f,...h}=r,m=(0,o.I)(),v={isRtl:m,...r},w=(e=>{let{classes:t,orientation:r,disabled:n}=e;return(0,a.A)({root:["root",r,n&&"disabled"]},A,t)})(v),x=l.StartScrollButtonIcon??y.A,_=l.EndScrollButtonIcon??b.A,M=(0,s.A)({elementType:x,externalSlotProps:u.startScrollButtonIcon,additionalProps:{fontSize:"small"},ownerState:v}),S=(0,s.A)({elementType:_,externalSlotProps:u.endScrollButtonIcon,additionalProps:{fontSize:"small"},ownerState:v});return(0,g.jsx)(N,{component:"div",className:(0,i.A)(w.root,n),ref:t,role:null,ownerState:v,tabIndex:null,...h,style:{...h.style,..."vertical"===d&&{"--TabScrollButton-svgRotate":`rotate(${m?-90:90}deg)`}},children:"left"===c?(0,g.jsx)(x,{...M}):(0,g.jsx)(_,{...S})})});var k=r(32398),E=r(22857),O=r(1092),C=r(73397);let T=(e,t)=>e===t?e.firstChild:t&&t.nextElementSibling?t.nextElementSibling:e.firstChild,$=(e,t)=>e===t?e.lastChild:t&&t.previousElementSibling?t.previousElementSibling:e.lastChild,R=(e,t,r)=>{let n=!1,i=r(e,t);for(;i;){if(i===e.firstChild){if(n)return;n=!0}let t=i.disabled||"true"===i.getAttribute("aria-disabled");if(i.hasAttribute("tabindex")&&!t)return void i.focus();i=r(e,i)}},I=(0,l.A)("div",{name:"MuiTabs",slot:"Root",overridesResolver:(e,t)=>{let{ownerState:r}=e;return[{[`& .${E.A.scrollButtons}`]:t.scrollButtons},{[`& .${E.A.scrollButtons}`]:r.scrollButtonsHideMobile&&t.scrollButtonsHideMobile},t.root,r.vertical&&t.vertical]}})((0,c.A)(({theme:e})=>({overflow:"hidden",minHeight:48,WebkitOverflowScrolling:"touch",display:"flex",variants:[{props:({ownerState:e})=>e.vertical,style:{flexDirection:"column"}},{props:({ownerState:e})=>e.scrollButtonsHideMobile,style:{[`& .${E.A.scrollButtons}`]:{[e.breakpoints.down("sm")]:{display:"none"}}}}]}))),j=(0,l.A)("div",{name:"MuiTabs",slot:"Scroller",overridesResolver:(e,t)=>{let{ownerState:r}=e;return[t.scroller,r.fixed&&t.fixed,r.hideScrollbar&&t.hideScrollbar,r.scrollableX&&t.scrollableX,r.scrollableY&&t.scrollableY]}})({position:"relative",display:"inline-block",flex:"1 1 auto",whiteSpace:"nowrap",variants:[{props:({ownerState:e})=>e.fixed,style:{overflowX:"hidden",width:"100%"}},{props:({ownerState:e})=>e.hideScrollbar,style:{scrollbarWidth:"none","&::-webkit-scrollbar":{display:"none"}}},{props:({ownerState:e})=>e.scrollableX,style:{overflowX:"auto",overflowY:"hidden"}},{props:({ownerState:e})=>e.scrollableY,style:{overflowY:"auto",overflowX:"hidden"}}]}),P=(0,l.A)("div",{name:"MuiTabs",slot:"List",overridesResolver:(e,t)=>{let{ownerState:r}=e;return[t.list,t.flexContainer,r.vertical&&t.flexContainerVertical,r.centered&&t.centered]}})({display:"flex",variants:[{props:({ownerState:e})=>e.vertical,style:{flexDirection:"column"}},{props:({ownerState:e})=>e.centered,style:{justifyContent:"center"}}]}),z=(0,l.A)("span",{name:"MuiTabs",slot:"Indicator",overridesResolver:(e,t)=>t.indicator})((0,c.A)(({theme:e})=>({position:"absolute",height:2,bottom:0,width:"100%",transition:e.transitions.create(),variants:[{props:{indicatorColor:"primary"},style:{backgroundColor:(e.vars||e).palette.primary.main}},{props:{indicatorColor:"secondary"},style:{backgroundColor:(e.vars||e).palette.secondary.main}},{props:({ownerState:e})=>e.vertical,style:{height:"100%",width:2,right:0}}]}))),Z=(0,l.A)(function(e){let{onChange:t,...r}=e,i=n.useRef(),a=n.useRef(null),o=()=>{i.current=a.current.offsetHeight-a.current.clientHeight};return(0,h.A)(()=>{let e=(0,d.A)(()=>{let e=i.current;o(),e!==i.current&&t(i.current)}),r=(0,m.A)(a.current);return r.addEventListener("resize",e),()=>{e.clear(),r.removeEventListener("resize",e)}},[t]),n.useEffect(()=>{o(),t(i.current)},[t]),(0,g.jsx)("div",{style:v,...r,ref:a})})({overflowX:"auto",overflowY:"hidden",scrollbarWidth:"none","&::-webkit-scrollbar":{display:"none"}}),D={},F=n.forwardRef(function(e,t){let r,l,c=(0,p.b)({props:e,name:"MuiTabs"}),h=(0,u.A)(),v=(0,o.I)(),{"aria-label":y,"aria-labelledby":b,action:w,centered:x=!1,children:_,className:A,component:M="div",allowScrollButtonsMobile:N=!1,indicatorColor:F="primary",onChange:L,orientation:B="horizontal",ScrollButtonComponent:q,scrollButtons:W="auto",selectionFollowsFocus:V,slots:U={},slotProps:H={},TabIndicatorProps:Y={},TabScrollButtonProps:G={},textColor:K="primary",value:X,variant:Q="standard",visibleScrollbar:J=!1,...ee}=c,et="scrollable"===Q,er="vertical"===B,en=er?"scrollTop":"scrollLeft",ei=er?"top":"left",ea=er?"bottom":"right",eo=er?"clientHeight":"clientWidth",es=er?"height":"width",el={...c,component:M,allowScrollButtonsMobile:N,indicatorColor:F,orientation:B,vertical:er,scrollButtons:W,textColor:K,variant:Q,visibleScrollbar:J,fixed:!et,hideScrollbar:et&&!J,scrollableX:et&&!er,scrollableY:et&&er,centered:x&&!et,scrollButtonsHideMobile:!N},eu=(e=>{let{vertical:t,fixed:r,hideScrollbar:n,scrollableX:i,scrollableY:o,centered:s,scrollButtonsHideMobile:l,classes:u}=e;return(0,a.A)({root:["root",t&&"vertical"],scroller:["scroller",r&&"fixed",n&&"hideScrollbar",i&&"scrollableX",o&&"scrollableY"],list:["list","flexContainer",t&&"flexContainerVertical",t&&"vertical",s&&"centered"],indicator:["indicator"],scrollButtons:["scrollButtons",l&&"scrollButtonsHideMobile"],scrollableX:[i&&"scrollableX"],hideScrollbar:[n&&"hideScrollbar"]},E.H,u)})(el),ec=(0,s.A)({elementType:U.StartScrollButtonIcon,externalSlotProps:H.startScrollButtonIcon,ownerState:el}),ep=(0,s.A)({elementType:U.EndScrollButtonIcon,externalSlotProps:H.endScrollButtonIcon,ownerState:el}),[ed,ef]=n.useState(!1),[eh,em]=n.useState(D),[eg,ev]=n.useState(!1),[ey,eb]=n.useState(!1),[ew,ex]=n.useState(!1),[e_,eA]=n.useState({overflow:"hidden",scrollbarWidth:0}),eM=new Map,eN=n.useRef(null),eS=n.useRef(null),ek={slots:U,slotProps:{indicator:Y,scrollButton:G,...H}},eE=()=>{let e,t,r=eN.current;if(r){let t=r.getBoundingClientRect();e={clientWidth:r.clientWidth,scrollLeft:r.scrollLeft,scrollTop:r.scrollTop,scrollWidth:r.scrollWidth,top:t.top,bottom:t.bottom,left:t.left,right:t.right}}if(r&&!1!==X){let e=eS.current.children;if(e.length>0){let r=e[eM.get(X)];t=r?r.getBoundingClientRect():null}}return{tabsMeta:e,tabMeta:t}},eO=(0,k.A)(()=>{let e,{tabsMeta:t,tabMeta:r}=eE(),n=0;er?(e="top",r&&t&&(n=r.top-t.top+t.scrollTop)):(e=v?"right":"left",r&&t&&(n=(v?-1:1)*(r[e]-t[e]+t.scrollLeft)));let i={[e]:n,[es]:r?r[es]:0};if("number"!=typeof eh[e]||"number"!=typeof eh[es])em(i);else{let t=Math.abs(eh[e]-i[e]),r=Math.abs(eh[es]-i[es]);(t>=1||r>=1)&&em(i)}}),eC=(e,{animation:t=!0}={})=>{t?function(e,t,r,n={},i=()=>{}){let{ease:a=f,duration:o=300}=n,s=null,l=t[e],u=!1,c=n=>{if(u)return void i(Error("Animation cancelled"));null===s&&(s=n);let p=Math.min(1,(n-s)/o);(t[e]=a(p)*(r-l)+l,p>=1)?requestAnimationFrame(()=>{i(null)}):requestAnimationFrame(c)};l===r?i(Error("Element already at target position")):requestAnimationFrame(c)}(en,eN.current,e,{duration:h.transitions.duration.standard}):eN.current[en]=e},eT=e=>{let t=eN.current[en];er?t+=e:t+=e*(v?-1:1),eC(t)},e$=()=>{let e=eN.current[eo],t=0,r=Array.from(eS.current.children);for(let n=0;n<r.length;n+=1){let i=r[n];if(t+i[eo]>e){0===n&&(t=e);break}t+=i[eo]}return t},[eR,{onChange:eI,...ej}]=(0,C.A)("scrollbar",{className:(0,i.A)(eu.scrollableX,eu.hideScrollbar),elementType:Z,shouldForwardComponentProp:!0,externalForwardedProps:ek,ownerState:el}),eP=n.useCallback(e=>{eI?.(e),eA({overflow:null,scrollbarWidth:e})},[eI]),[ez,eZ]=(0,C.A)("scrollButtons",{className:(0,i.A)(eu.scrollButtons,G.className),elementType:S,externalForwardedProps:ek,ownerState:el,additionalProps:{orientation:B,slots:{StartScrollButtonIcon:U.startScrollButtonIcon||U.StartScrollButtonIcon,EndScrollButtonIcon:U.endScrollButtonIcon||U.EndScrollButtonIcon},slotProps:{startScrollButtonIcon:ec,endScrollButtonIcon:ep}}}),eD=(0,k.A)(e=>{let{tabsMeta:t,tabMeta:r}=eE();r&&t&&(r[ei]<t[ei]?eC(t[en]+(r[ei]-t[ei]),{animation:e}):r[ea]>t[ea]&&eC(t[en]+(r[ea]-t[ea]),{animation:e}))}),eF=(0,k.A)(()=>{et&&!1!==W&&ex(!ew)});n.useEffect(()=>{let e,t,r=(0,d.A)(()=>{eN.current&&eO()}),n=(0,m.A)(eN.current);return n.addEventListener("resize",r),"u">typeof ResizeObserver&&(e=new ResizeObserver(r),Array.from(eS.current.children).forEach(t=>{e.observe(t)})),"u">typeof MutationObserver&&(t=new MutationObserver(t=>{t.forEach(t=>{t.removedNodes.forEach(t=>{e?.unobserve(t)}),t.addedNodes.forEach(t=>{e?.observe(t)})}),r(),eF()})).observe(eS.current,{childList:!0}),()=>{r.clear(),n.removeEventListener("resize",r),t?.disconnect(),e?.disconnect()}},[eO,eF]),n.useEffect(()=>{let e=Array.from(eS.current.children),t=e.length;if("u">typeof IntersectionObserver&&t>0&&et&&!1!==W){let r=e[0],n=e[t-1],i={root:eN.current,threshold:.99},a=new IntersectionObserver(e=>{ev(!e[0].isIntersecting)},i);a.observe(r);let o=new IntersectionObserver(e=>{eb(!e[0].isIntersecting)},i);return o.observe(n),()=>{a.disconnect(),o.disconnect()}}},[et,W,ew,_?.length]),n.useEffect(()=>{ef(!0)},[]),n.useEffect(()=>{eO()}),n.useEffect(()=>{eD(D!==eh)},[eD,eh]),n.useImperativeHandle(w,()=>({updateIndicator:eO,updateScrollButtons:eF}),[eO,eF]);let[eL,eB]=(0,C.A)("indicator",{className:(0,i.A)(eu.indicator,Y.className),elementType:z,externalForwardedProps:ek,ownerState:el,additionalProps:{style:eh}}),eq=(0,g.jsx)(eL,{...eB}),eW=0,eV=n.Children.map(_,e=>{if(!n.isValidElement(e))return null;let t=void 0===e.props.value?eW:e.props.value;eM.set(t,eW);let r=t===X;return eW+=1,n.cloneElement(e,{fullWidth:"fullWidth"===Q,indicator:r&&!ed&&eq,selected:r,selectionFollowsFocus:V,onChange:L,textColor:K,value:t,...1===eW&&!1===X&&!e.props.tabIndex?{tabIndex:0}:{}})}),eU=((r={}).scrollbarSizeListener=et?(0,g.jsx)(eR,{...ej,onChange:eP}):null,r.scrollButtonStart=(l=et&&("auto"===W&&(eg||ey)||!0===W))?(0,g.jsx)(ez,{direction:v?"right":"left",onClick:()=>{eT(-1*e$())},disabled:!eg,...eZ}):null,r.scrollButtonEnd=l?(0,g.jsx)(ez,{direction:v?"left":"right",onClick:()=>{eT(e$())},disabled:!ey,...eZ}):null,r),[eH,eY]=(0,C.A)("root",{ref:t,className:(0,i.A)(eu.root,A),elementType:I,externalForwardedProps:{...ek,...ee,component:M},ownerState:el}),[eG,eK]=(0,C.A)("scroller",{ref:eN,className:eu.scroller,elementType:j,externalForwardedProps:ek,ownerState:el,additionalProps:{style:{overflow:e_.overflow,[er?`margin${v?"Left":"Right"}`:"marginBottom"]:J?void 0:-e_.scrollbarWidth}}}),[eX,eQ]=(0,C.A)("list",{ref:eS,className:(0,i.A)(eu.list,eu.flexContainer),elementType:P,externalForwardedProps:ek,ownerState:el,getSlotProps:e=>({...e,onKeyDown:t=>{(e=>{if(e.altKey||e.shiftKey||e.ctrlKey||e.metaKey)return;let t=eS.current,r=(0,O.A)(t).activeElement;if("tab"!==r.getAttribute("role"))return;let n="horizontal"===B?"ArrowLeft":"ArrowUp",i="horizontal"===B?"ArrowRight":"ArrowDown";switch("horizontal"===B&&v&&(n="ArrowRight",i="ArrowLeft"),e.key){case n:e.preventDefault(),R(t,r,$);break;case i:e.preventDefault(),R(t,r,T);break;case"Home":e.preventDefault(),R(t,null,T);break;case"End":e.preventDefault(),R(t,null,$)}})(t),e.onKeyDown?.(t)}})});return(0,g.jsxs)(eH,{...eY,children:[eU.scrollButtonStart,eU.scrollbarSizeListener,(0,g.jsxs)(eG,{...eK,children:[(0,g.jsx)(eX,{"aria-label":y,"aria-labelledby":b,"aria-orientation":"vertical"===B?"vertical":null,role:"tablist",...eQ,children:eV}),ed&&eq]}),eU.scrollButtonEnd]})})},22857(e,t,r){"use strict";r.d(t,{A:()=>o,H:()=>a});var n=r(29009),i=r(46733);function a(e){return(0,i.Ay)("MuiTabs",e)}let o=(0,n.A)("MuiTabs",["root","vertical","list","flexContainer","flexContainerVertical","centered","scroller","fixed","scrollableX","scrollableY","hideScrollbar","scrollButtons","scrollButtonsHideMobile","indicator"])},65211(e,t,r){"use strict";r.d(t,{A:()=>$});var n=r(85967),i=r(11750),a=r(3725),o=r(81023),s=r(59238),l=r(35216),u=r(93399),c=r(30443),p=r(77308),d=r(56599),f=r(23434),h=r(72052),m=r(24726),g=r(46823),v=r(48865),y=r(32398),b=r(29424),w=r(63392),x=r(2203),_=r(73397),A=r(32751),M=r(62540);let N=(0,p.A)(v.A,{name:"MuiTooltip",slot:"Popper",overridesResolver:(e,t)=>{let{ownerState:r}=e;return[t.popper,!r.disableInteractive&&t.popperInteractive,r.arrow&&t.popperArrow,!r.open&&t.popperClose]}})((0,f.A)(({theme:e})=>({zIndex:(e.vars||e).zIndex.tooltip,pointerEvents:"none",variants:[{props:({ownerState:e})=>!e.disableInteractive,style:{pointerEvents:"auto"}},{props:({open:e})=>!e,style:{pointerEvents:"none"}},{props:({ownerState:e})=>e.arrow,style:{[`&[data-popper-placement*="bottom"] .${A.A.arrow}`]:{top:0,marginTop:"-0.71em","&::before":{transformOrigin:"0 100%"}},[`&[data-popper-placement*="top"] .${A.A.arrow}`]:{bottom:0,marginBottom:"-0.71em","&::before":{transformOrigin:"100% 0"}},[`&[data-popper-placement*="right"] .${A.A.arrow}`]:{height:"1em",width:"0.71em","&::before":{transformOrigin:"100% 100%"}},[`&[data-popper-placement*="left"] .${A.A.arrow}`]:{height:"1em",width:"0.71em","&::before":{transformOrigin:"0 0"}}}},{props:({ownerState:e})=>e.arrow&&!e.isRtl,style:{[`&[data-popper-placement*="right"] .${A.A.arrow}`]:{left:0,marginLeft:"-0.71em"}}},{props:({ownerState:e})=>e.arrow&&!!e.isRtl,style:{[`&[data-popper-placement*="right"] .${A.A.arrow}`]:{right:0,marginRight:"-0.71em"}}},{props:({ownerState:e})=>e.arrow&&!e.isRtl,style:{[`&[data-popper-placement*="left"] .${A.A.arrow}`]:{right:0,marginRight:"-0.71em"}}},{props:({ownerState:e})=>e.arrow&&!!e.isRtl,style:{[`&[data-popper-placement*="left"] .${A.A.arrow}`]:{left:0,marginLeft:"-0.71em"}}}]}))),S=(0,p.A)("div",{name:"MuiTooltip",slot:"Tooltip",overridesResolver:(e,t)=>{let{ownerState:r}=e;return[t.tooltip,r.touch&&t.touch,r.arrow&&t.tooltipArrow,t[`tooltipPlacement${(0,m.A)(r.placement.split("-")[0])}`]]}})((0,f.A)(({theme:e})=>({backgroundColor:e.vars?e.vars.palette.Tooltip.bg:(0,s.X4)(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,[`.${A.A.popper}[data-popper-placement*="left"] &`]:{transformOrigin:"right center"},[`.${A.A.popper}[data-popper-placement*="right"] &`]:{transformOrigin:"left center"},[`.${A.A.popper}[data-popper-placement*="top"] &`]:{transformOrigin:"center bottom",marginBottom:"14px"},[`.${A.A.popper}[data-popper-placement*="bottom"] &`]:{transformOrigin:"center top",marginTop:"14px"},variants:[{props:({ownerState:e})=>e.arrow,style:{position:"relative",margin:0}},{props:({ownerState:e})=>e.touch,style:{padding:"8px 16px",fontSize:e.typography.pxToRem(14),lineHeight:`${Math.round(16/14*1e5)/1e5}em`,fontWeight:e.typography.fontWeightRegular}},{props:({ownerState:e})=>!e.isRtl,style:{[`.${A.A.popper}[data-popper-placement*="left"] &`]:{marginRight:"14px"},[`.${A.A.popper}[data-popper-placement*="right"] &`]:{marginLeft:"14px"}}},{props:({ownerState:e})=>!e.isRtl&&e.touch,style:{[`.${A.A.popper}[data-popper-placement*="left"] &`]:{marginRight:"24px"},[`.${A.A.popper}[data-popper-placement*="right"] &`]:{marginLeft:"24px"}}},{props:({ownerState:e})=>!!e.isRtl,style:{[`.${A.A.popper}[data-popper-placement*="left"] &`]:{marginLeft:"14px"},[`.${A.A.popper}[data-popper-placement*="right"] &`]:{marginRight:"14px"}}},{props:({ownerState:e})=>!!e.isRtl&&e.touch,style:{[`.${A.A.popper}[data-popper-placement*="left"] &`]:{marginLeft:"24px"},[`.${A.A.popper}[data-popper-placement*="right"] &`]:{marginRight:"24px"}}},{props:({ownerState:e})=>e.touch,style:{[`.${A.A.popper}[data-popper-placement*="top"] &`]:{marginBottom:"24px"}}},{props:({ownerState:e})=>e.touch,style:{[`.${A.A.popper}[data-popper-placement*="bottom"] &`]:{marginTop:"24px"}}}]}))),k=(0,p.A)("span",{name:"MuiTooltip",slot:"Arrow",overridesResolver:(e,t)=>t.arrow})((0,f.A)(({theme:e})=>({overflow:"hidden",position:"absolute",width:"1em",height:"0.71em",boxSizing:"border-box",color:e.vars?e.vars.palette.Tooltip.bg:(0,s.X4)(e.palette.grey[700],.9),"&::before":{content:'""',margin:"auto",display:"block",width:"100%",height:"100%",backgroundColor:"currentColor",transform:"rotate(45deg)"}}))),E=!1,O=new a.E,C={x:0,y:0};function T(e,t){return(r,...n)=>{t&&t(r,...n),e(r,...n)}}let $=n.forwardRef(function(e,t){let r=(0,h.b)({props:e,name:"MuiTooltip"}),{arrow:s=!1,children:p,classes:f,components:$={},componentsProps:R={},describeChild:I=!1,disableFocusListener:j=!1,disableHoverListener:P=!1,disableInteractive:z=!1,disableTouchListener:Z=!1,enterDelay:D=100,enterNextDelay:F=0,enterTouchDelay:L=700,followCursor:B=!1,id:q,leaveDelay:W=0,leaveTouchDelay:V=1500,onClose:U,onOpen:H,open:Y,placement:G="bottom",PopperComponent:K,PopperProps:X={},slotProps:Q={},slots:J={},title:ee,TransitionComponent:et,TransitionProps:er,...en}=r,ei=n.isValidElement(p)?p:(0,M.jsx)("span",{children:p}),ea=(0,d.A)(),eo=(0,l.I)(),[es,el]=n.useState(),[eu,ec]=n.useState(null),ep=n.useRef(!1),ed=z||B,ef=(0,a.A)(),eh=(0,a.A)(),em=(0,a.A)(),eg=(0,a.A)(),[ev,ey]=(0,x.A)({controlled:Y,default:!1,name:"Tooltip",state:"open"}),eb=ev,ew=(0,w.A)(q),ex=n.useRef(),e_=(0,y.A)(()=>{void 0!==ex.current&&(document.body.style.WebkitUserSelect=ex.current,ex.current=void 0),eg.clear()});n.useEffect(()=>e_,[e_]);let eA=e=>{O.clear(),E=!0,ey(!0),H&&!eb&&H(e)},eM=(0,y.A)(e=>{O.start(800+W,()=>{E=!1}),ey(!1),U&&eb&&U(e),ef.start(ea.transitions.duration.shortest,()=>{ep.current=!1})}),eN=e=>{ep.current&&"touchstart"!==e.type||(es&&es.removeAttribute("title"),eh.clear(),em.clear(),D||E&&F?eh.start(E?F:D,()=>{eA(e)}):eA(e))},eS=e=>{eh.clear(),em.start(W,()=>{eM(e)})},[,ek]=n.useState(!1),eE=e=>{(0,u.A)(e.target)||(ek(!1),eS(e))},eO=e=>{es||el(e.currentTarget),(0,u.A)(e.target)&&(ek(!0),eN(e))},eC=e=>{ep.current=!0;let t=ei.props;t.onTouchStart&&t.onTouchStart(e)};n.useEffect(()=>{if(eb)return document.addEventListener("keydown",e),()=>{document.removeEventListener("keydown",e)};function e(e){"Escape"===e.key&&eM(e)}},[eM,eb]);let eT=(0,b.A)((0,c.A)(ei),el,t);ee||0===ee||(eb=!1);let e$=n.useRef(),eR={},eI="string"==typeof ee;I?(eR.title=eb||!eI||P?null:ee,eR["aria-describedby"]=eb?ew:null):(eR["aria-label"]=eI?ee:null,eR["aria-labelledby"]=eb&&!eI?ew:null);let ej={...eR,...en,...ei.props,className:(0,i.A)(en.className,ei.props.className),onTouchStart:eC,ref:eT,...B?{onMouseMove:e=>{let t=ei.props;t.onMouseMove&&t.onMouseMove(e),C={x:e.clientX,y:e.clientY},e$.current&&e$.current.update()}}:{}},eP={};Z||(ej.onTouchStart=e=>{eC(e),em.clear(),ef.clear(),e_(),ex.current=document.body.style.WebkitUserSelect,document.body.style.WebkitUserSelect="none",eg.start(L,()=>{document.body.style.WebkitUserSelect=ex.current,eN(e)})},ej.onTouchEnd=e=>{ei.props.onTouchEnd&&ei.props.onTouchEnd(e),e_(),em.start(V,()=>{eM(e)})}),!P&&(ej.onMouseOver=T(eN,ej.onMouseOver),ej.onMouseLeave=T(eS,ej.onMouseLeave),ed||(eP.onMouseOver=eN,eP.onMouseLeave=eS)),!j&&(ej.onFocus=T(eO,ej.onFocus),ej.onBlur=T(eE,ej.onBlur),ed||(eP.onFocus=eO,eP.onBlur=eE));let ez={...r,isRtl:eo,arrow:s,disableInteractive:ed,placement:G,PopperComponentProp:K,touch:ep.current},eZ="function"==typeof Q.popper?Q.popper(ez):Q.popper,eD=n.useMemo(()=>{let e=[{name:"arrow",enabled:!!eu,options:{element:eu,padding:4}}];return X.popperOptions?.modifiers&&(e=e.concat(X.popperOptions.modifiers)),eZ?.popperOptions?.modifiers&&(e=e.concat(eZ.popperOptions.modifiers)),{...X.popperOptions,...eZ?.popperOptions,modifiers:e}},[eu,X.popperOptions,eZ?.popperOptions]),eF=(e=>{let{classes:t,disableInteractive:r,arrow:n,touch:i,placement:a}=e,s={popper:["popper",!r&&"popperInteractive",n&&"popperArrow"],tooltip:["tooltip",n&&"tooltipArrow",i&&"touch",`tooltipPlacement${(0,m.A)(a.split("-")[0])}`],arrow:["arrow"]};return(0,o.A)(s,A.E,t)})(ez),eL="function"==typeof Q.transition?Q.transition(ez):Q.transition,eB={slots:{popper:$.Popper,transition:$.Transition??et,tooltip:$.Tooltip,arrow:$.Arrow,...J},slotProps:{arrow:Q.arrow??R.arrow,popper:{...X,...eZ??R.popper},tooltip:Q.tooltip??R.tooltip,transition:{...er,...eL??R.transition}}},[eq,eW]=(0,_.A)("popper",{elementType:N,externalForwardedProps:eB,ownerState:ez,className:(0,i.A)(eF.popper,X?.className)}),[eV,eU]=(0,_.A)("transition",{elementType:g.A,externalForwardedProps:eB,ownerState:ez}),[eH,eY]=(0,_.A)("tooltip",{elementType:S,className:eF.tooltip,externalForwardedProps:eB,ownerState:ez}),[eG,eK]=(0,_.A)("arrow",{elementType:k,className:eF.arrow,externalForwardedProps:eB,ownerState:ez,ref:ec});return(0,M.jsxs)(n.Fragment,{children:[n.cloneElement(ei,ej),(0,M.jsx)(eq,{as:K??v.A,placement:G,anchorEl:B?{getBoundingClientRect:()=>({top:C.y,left:C.x,right:C.x,bottom:C.y,width:0,height:0})}:es,popperRef:e$,open:!!es&&eb,id:ew,transition:!0,...eP,...eW,popperOptions:eD,children:({TransitionProps:e})=>(0,M.jsx)(eV,{timeout:ea.transitions.duration.shorter,...e,...eU,children:(0,M.jsxs)(eH,{...eY,children:[ee,s?(0,M.jsx)(eG,{...eK}):null]})})})]})})},32751(e,t,r){"use strict";r.d(t,{A:()=>o,E:()=>a});var n=r(29009),i=r(46733);function a(e){return(0,i.Ay)("MuiTooltip",e)}let o=(0,n.A)("MuiTooltip",["popper","popperInteractive","popperArrow","popperClose","tooltip","tooltipArrow","touch","tooltipPlacementLeft","tooltipPlacementRight","tooltipPlacementTop","tooltipPlacementBottom","arrow"])},96913(e,t,r){"use strict";r.d(t,{A:()=>a}),r(85967);var n=r(22402),i=r(62540);let a=(0,n.A)((0,i.jsx)("path",{d:"M15.41 16.09l-4.58-4.59 4.58-4.59L14 5.5l-6 6 6 6z"}),"KeyboardArrowLeft")},70776(e,t,r){"use strict";r.d(t,{A:()=>a}),r(85967);var n=r(22402),i=r(62540);let a=(0,n.A)((0,i.jsx)("path",{d:"M8.59 16.34l4.58-4.59-4.58-4.59L10 5.75l6 6-6 6z"}),"KeyboardArrowRight")},8072(e,t,r){"use strict";r.d(t,{A:()=>u});var n=r(85967),i=r(31789),a=r(70320),o=r(45827);let s={...n}.useSyncExternalStore;function l(e={}){let{themeId:t}=e;return function(e,r={}){let l=(0,o.A)();l&&t&&(l=l[t]||l);let u="u">typeof window&&void 0!==window.matchMedia,{defaultMatches:c=!1,matchMedia:p=u?window.matchMedia:null,ssrMatchMedia:d=null,noSsr:f=!1}=(0,a.A)({name:"MuiUseMediaQuery",props:r,theme:l}),h="function"==typeof e?e(l):e;return(h=h.replace(/^@media( ?)/m,"")).includes("print")&&console.warn("MUI: You have provided a `print` query to the `useMediaQuery` hook.\nUsing the print media query to modify print styles can lead to unexpected results.\nConsider using the `displayPrint` field in the `sx` prop instead.\nMore information about `displayPrint` on our docs: https://mui.com/system/display/#display-in-print."),(void 0!==s?function(e,t,r,i,a){let o=n.useCallback(()=>t,[t]),l=n.useMemo(()=>{if(a&&r)return()=>r(e).matches;if(null!==i){let{matches:t}=i(e);return()=>t}return o},[o,e,i,a,r]),[u,c]=n.useMemo(()=>{if(null===r)return[o,()=>()=>{}];let t=r(e);return[()=>t.matches,e=>(t.addEventListener("change",e),()=>{t.removeEventListener("change",e)})]},[o,r,e]);return s(c,u,l)}:function(e,t,r,a,o){let[s,l]=n.useState(()=>o&&r?r(e).matches:a?a(e).matches:t);return(0,i.A)(()=>{if(!r)return;let t=r(e),n=()=>{l(t.matches)};return n(),t.addEventListener("change",n),()=>{t.removeEventListener("change",n)}},[e,r]),s})(h,c,p,d,f)}}l();let u=l({themeId:r(93724).A})},68335(e,t,r){"use strict";r.d(t,{A:()=>b});var n=r(85967),i=r(11750),a=r(6121),o=r(46733),s=r(81023),l=r(7939),u=r(51327),c=r(20523),p=r(80787),d=r(85351),f=r(89187),h=r(62540);let m=(0,p.A)(),g=(0,l.A)("div",{name:"MuiStack",slot:"Root",overridesResolver:(e,t)=>t.root});function v(e){return(0,u.A)({props:e,name:"MuiStack",defaultTheme:m})}let y=({ownerState:e,theme:t})=>{let r={display:"flex",flexDirection:"column",...(0,d.NI)({theme:t},(0,d.kW)({values:e.direction,breakpoints:t.breakpoints.values}),e=>({flexDirection:e}))};if(e.spacing){let n=(0,f.LX)(t),i=Object.keys(t.breakpoints.values).reduce((t,r)=>(("object"==typeof e.spacing&&null!=e.spacing[r]||"object"==typeof e.direction&&null!=e.direction[r])&&(t[r]=!0),t),{}),o=(0,d.kW)({values:e.direction,base:i}),s=(0,d.kW)({values:e.spacing,base:i});"object"==typeof o&&Object.keys(o).forEach((e,t,r)=>{if(!o[e]){let n=t>0?o[r[t-1]]:"column";o[e]=n}}),r=(0,a.A)(r,(0,d.NI)({theme:t},s,(t,r)=>e.useFlexGap?{gap:(0,f._W)(n,t)}:{"& > :not(style):not(style)":{margin:0},"& > :not(style) ~ :not(style)":{[`margin${({row:"Left","row-reverse":"Right",column:"Top","column-reverse":"Bottom"})[r?o[r]:e.direction]}`]:(0,f._W)(n,t)}}))}return(0,d.iZ)(t.breakpoints,r)};function b(e={}){let{createStyledComponent:t=g,useThemeProps:r=v,componentName:a="MuiStack"}=e,l=t(y);return n.forwardRef(function(e,t){let u,p=r(e),{component:d="div",direction:f="column",spacing:m=0,divider:g,children:v,className:y,useFlexGap:b=!1,...w}=(0,c.A)(p),x=(0,s.A)({root:["root"]},e=>(0,o.Ay)(a,e),{});return(0,h.jsx)(l,{as:d,ownerState:{direction:f,spacing:m,useFlexGap:b},ref:t,className:(0,i.A)(x.root,y),...w,children:g?(u=n.Children.toArray(v).filter(Boolean)).reduce((e,t,r)=>(e.push(t),r<u.length-1&&e.push(n.cloneElement(g,{key:`separator-${r}`})),e),[]):v})})}},7939(e,t,r){"use strict";r.d(t,{A:()=>n});let n=(0,r(57867).Ay)()},70320(e,t,r){"use strict";r.d(t,{A:()=>i});var n=r(52215);function i(e){let{theme:t,name:r,props:i}=e;return t&&t.components&&t.components[r]&&t.components[r].defaultProps?(0,n.A)(t.components[r].defaultProps,i):i}},51327(e,t,r){"use strict";r.d(t,{A:()=>a});var n=r(70320),i=r(26041);function a({props:e,name:t,defaultTheme:r,themeId:o}){let s=(0,i.A)(r);return o&&(s=s[o]||s),(0,n.A)({theme:s,name:t,props:e})}},40625(e,t,r){"use strict";r.r(t),r.d(t,{ONE_WEEK_IN_MS:()=>u,querySpecSchema:()=>B,annotationDisplaySchema:()=>I,buildPanelSpecSchema:()=>V,resolvePanelRef:()=>A,variableDefinitionSchema:()=>en,variableTextSchema:()=>ee,isTimeSeriesValueTuple:()=>k,otlpresourcev1:()=>i,parseDurationString:()=>d,isValidQueryPluginType:()=>S,ONE_YEAR_IN_MS:()=>c,DURATION_REGEX:()=>p,createPanelRef:()=>N,getSuggestedStepMs:()=>_,otlpcommonv1:()=>n,variableListSpecSchema:()=>G,variableDisplaySchema:()=>Y,DEFAULT_ALL_VALUE:()=>"$__all",ONE_HOUR_IN_MS:()=>s,convertTimeToDuration:()=>g,ONE_MINUTE_IN_MS:()=>6e4,intervalToDuration:()=>m,getPanelKeyFromRef:()=>M,isDurationString:()=>f,panelSpecSchema:()=>W,buildVariableDefinitionSchema:()=>ei,otlptracev1:()=>a,annotationSpecSchema:()=>P,buildDatasourceSpecSchema:()=>D,panelDisplaySpec:()=>L,panelDefinitionSchema:()=>U,buildVariableListSchema:()=>Q,datasourceSpecSchema:()=>Z,buildVariableSpecSchema:()=>er,isAbsoluteTimeRange:()=>y,ONE_SECOND_IN_MS:()=>1e3,displaySchema:()=>z,variableListSchema:()=>X,variableTextSpecSchema:()=>J,isValidTraceId:()=>E,roundStepInterval:()=>x,durationValidationSchema:()=>F,toAbsoluteTimeRange:()=>b,buildVariableListSpecSchema:()=>K,buildAnnotationSpecSchema:()=>j,buildPanelDefinitionSchema:()=>H,isRelativeTimeRange:()=>v,linkSchema:()=>q,variableSpecSchema:()=>et,formatDuration:()=>h,ONE_DAY_IN_MS:()=>l,pluginSchema:()=>R});var n={};r.r(n);var i={};r.r(i);var a={};r.r(a),r.d(a,{StatusCodeError:()=>T,StatusCodeOk:()=>C,StatusCodeUnset:()=>O});var o=r(94461);let s=36e5,l=864e5,u=6048e5,c=31536e6,p=/^(?:(\d+)y)?(?:(\d+)w)?(?:(\d+)d)?(?:(\d+)h)?(?:(\d+)m)?(?:(\d+)s)?(?:(\d+)ms)?$/;function d(e){let t=p.exec(e);if(null===t)throw Error(`Invalid duration string '${e}'`);return{years:parseInt(t[1]??"0"),months:0,weeks:parseInt(t[2]??"0"),days:parseInt(t[3]??"0"),hours:parseInt(t[4]??"0"),minutes:parseInt(t[5]??"0"),seconds:parseInt(t[6]??"0")+parseInt(t[7]??"0")/1e3}}function f(e){return""!==e&&p.test(e)}function h(e){let t=[];if(e.years&&t.push(`${e.years}y`),e.weeks&&t.push(`${e.weeks}w`),e.days&&t.push(`${e.days}d`),e.hours&&t.push(`${e.hours}h`),e.minutes&&t.push(`${e.minutes}m`),e.seconds){let r=Math.trunc(e.seconds);r&&t.push(`${r}s`);let n=Math.round((e.seconds-r)*1e3);n&&t.push(`${n}ms`)}return t.join("")}function m(e){return g(e.end.valueOf()-e.start.valueOf())}function g(e){let t=Math.trunc(e/c);t>0&&(e-=t*c);let r=Math.trunc(e/u);r>0&&(e-=r*u);let n=Math.trunc(e/l);n>0&&(e-=n*l);let i=Math.trunc(e/s);i>0&&(e-=i*s);let a=Math.trunc(e/6e4);return a>0&&(e-=6e4*a),{years:t,months:0,weeks:r,days:n,hours:i,minutes:a,seconds:e/1e3}}function v(e){return void 0!==e.pastDuration}function y(e){return void 0!==e.start&&void 0!==e.end}function b(e){let t=e.end??new Date;return{start:(0,o.sub)(t,d(e.pastDuration)),end:t}}let w=[{maxMs:15,roundedStepMs:10,display:"0.01s"},{maxMs:35,roundedStepMs:20,display:"0.02s"},{maxMs:75,roundedStepMs:50,display:"0.05s"},{maxMs:150,roundedStepMs:100,display:"0.1s"},{maxMs:350,roundedStepMs:200,display:"0.2s"},{maxMs:750,roundedStepMs:500,display:"0.5s"},{maxMs:1500,roundedStepMs:1e3,display:"1s"},{maxMs:3500,roundedStepMs:2e3,display:"2s"},{maxMs:7500,roundedStepMs:5e3,display:"5s"},{maxMs:12500,roundedStepMs:1e4,display:"10s"},{maxMs:17500,roundedStepMs:15e3,display:"15s"},{maxMs:25e3,roundedStepMs:2e4,display:"20s"},{maxMs:45e3,roundedStepMs:3e4,display:"30s"},{maxMs:9e4,roundedStepMs:6e4,display:"1m"},{maxMs:21e4,roundedStepMs:12e4,display:"2m"},{maxMs:45e4,roundedStepMs:3e5,display:"5m"},{maxMs:75e4,roundedStepMs:6e5,display:"10m"},{maxMs:75e4,roundedStepMs:9e5,display:"15m"},{maxMs:15e5,roundedStepMs:12e5,display:"20m"},{maxMs:27e5,roundedStepMs:18e5,display:"30m"},{maxMs:54e5,roundedStepMs:36e5,display:"1h"},{maxMs:9e6,roundedStepMs:72e5,display:"2h"},{maxMs:162e5,roundedStepMs:108e5,display:"3h"},{maxMs:324e5,roundedStepMs:216e5,display:"6h"},{maxMs:864e5,roundedStepMs:432e5,display:"12h"},{maxMs:6048e5,roundedStepMs:864e5,display:"1d"},{maxMs:18144e5,roundedStepMs:6048e5,display:"1w"},{maxMs:36288e5,roundedStepMs:2592e6,display:"30d"},{maxMs:63072e6,roundedStepMs:31536e6,display:"1y"}];function x(e){for(let{maxMs:t,roundedStepMs:r}of w)if(e<t)return r;return 15e3}function _(e,t){return x(Math.floor((e.end.valueOf()-e.start.valueOf())/t))}function A(e,t){let r=M(t),n=e.panels[r];if(void 0===n)throw Error(`Could not resolve panels reference ${t.$ref}`);return n}function M(e){return e.$ref.substring(14)}function N(e){return{$ref:`#/spec/panels/${e}`}}function S(e){return["TimeSeriesQuery","TraceQuery","ProfileQuery","LogQuery","AlertsQuery","SilencesQuery"].includes(e)}function k(e){return 2===e.length}function E(e){return/^[0-9a-fA-F]+$/.test(e)}let O="STATUS_CODE_UNSET",C="STATUS_CODE_OK",T="STATUS_CODE_ERROR";var $=r(59140);let R=$.Ik({kind:$.Yj().min(1,"Required"),spec:$.g1($.Yj(),$.bz())}),I=$.Ik({name:$.Yj(),description:$.Yj().optional(),hidden:$.zM().optional(),color:$.Yj().optional()});function j(e){return $.Ik({display:I,plugin:e})}let P=$.Ik({display:I,plugin:R}),z=$.Ik({name:$.Yj().optional(),description:$.Yj().optional()}),Z=$.Ik({display:z.optional(),default:$.zM(),plugin:R});function D(e){return $.Ik({display:z.optional(),default:$.zM(),plugin:e})}let F=$.Yj().min(1,"Required").regex(p,"Must be a valid duration string"),L=$.Ik({name:$.Yj().optional(),description:$.Yj().optional()}),B=$.Ik({kind:$.Yj().min(1),spec:$.Ik({name:$.Yj().optional(),plugin:R})}),q=$.Ik({name:$.Yj().optional(),url:$.Yj().min(1),tooltip:$.Yj().optional(),renderVariables:$.zM().optional(),targetBlank:$.zM().optional()}),W=$.Ik({display:L.optional(),plugin:R,queries:$.YO(B).optional(),links:$.YO(q).optional()});function V(e){return $.Ik({display:L.optional(),plugin:e,queries:$.YO(B).optional(),links:$.YO(q).optional()})}let U=$.Ik({kind:$.eu("Panel"),spec:W});function H(e){return $.Ik({kind:$.eu("Panel"),spec:V(e)})}let Y=$.Ik({name:$.Yj().optional(),description:$.Yj().optional(),hidden:$.zM().optional()}),G=$.Ik({name:$.Yj().min(1),display:Y.optional(),defaultValue:$.Yj().or($.YO($.Yj())).optional(),allowAllValue:$.zM(),allowMultiple:$.zM(),customAllValue:$.Yj().optional(),capturingRegexp:$.Yj().optional(),sort:$.k5(["none","alphabetical-asc","alphabetical-desc","numerical-asc","numerical-desc","alphabetical-ci-asc","alphabetical-ci-desc"]).optional(),plugin:R});function K(e){return $.Ik({name:$.Yj().min(1),display:Y.optional(),defaultValue:$.Yj().or($.YO($.Yj())).optional(),allowAllValue:$.zM(),allowMultiple:$.zM(),customAllValue:$.Yj().optional(),capturingRegexp:$.Yj().optional(),sort:$.k5(["none","alphabetical-asc","alphabetical-desc","numerical-asc","numerical-desc","alphabetical-ci-asc","alphabetical-ci-desc"]).optional(),plugin:e})}let X=$.Ik({kind:$.eu("ListVariable"),spec:G});function Q(e){return $.Ik({kind:$.eu("ListVariable"),spec:K(e)})}let J=$.Ik({name:$.Yj().min(1),display:Y.optional(),value:$.Yj(),constant:$.zM().optional()}),ee=$.Ik({kind:$.eu("TextVariable"),spec:J}),et=$.gM("kind",[ee,X]);function er(e){return $.KC([ee,Q(e)])}let en=et;function ei(e){return $.gM("kind",[$.Ik({kind:$.eu("ListVariable"),spec:K(e)}),$.Ik({kind:$.eu("TextVariable"),spec:J})])}},87275(e,t,r){"use strict";var n;t.default=void 0,t.default=(0,((n=r(1448))&&n.__esModule?n:{default:n}).default)("M7.41,8.58L12,13.17L16.59,8.58L18,10L12,16L6,10L7.41,8.58Z","ChevronDown")},11061(e,t,r){"use strict";var n;t.default=void 0,t.default=(0,((n=r(1448))&&n.__esModule?n:{default:n}).default)("M8.59,16.58L13.17,12L8.59,7.41L10,6L16,12L10,18L8.59,16.58Z","ChevronRight")},7800(e,t,r){"use strict";var n;t.default=void 0,t.default=(0,((n=r(1448))&&n.__esModule?n:{default:n}).default)("M19,6.41L17.59,5L12,10.59L6.41,5L5,6.41L10.59,12L5,17.59L6.41,19L12,13.41L17.59,19L19,17.59L13.41,12L19,6.41Z","Close")},86067(e,t,r){"use strict";var n;t.default=void 0,t.default=(0,((n=r(1448))&&n.__esModule?n:{default:n}).default)("M6,19A2,2 0 0,0 8,21H16A2,2 0 0,0 18,19V7H6V19M8,9H16V19H8V9M15.5,4L14.5,3H9.5L8.5,4H5V6H19V4H15.5Z","DeleteOutline")},17366(e,t,r){"use strict";var n;t.default=void 0,t.default=(0,((n=r(1448))&&n.__esModule?n:{default:n}).default)("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","InformationOutline")},29917(e,t,r){"use strict";var n;t.default=void 0,t.default=(0,((n=r(1448))&&n.__esModule?n:{default:n}).default)("M16,12V4H17V2H7V4H8V12L6,14V16H11.2V22H12.8V16H18V14L16,12M8.8,14L10,12.8V4H14V12.8L15.2,14H8.8Z","PinOutline")},86742(e,t,r){"use strict";var n;t.default=void 0,t.default=(0,((n=r(1448))&&n.__esModule?n:{default:n}).default)("M19,13H13V19H11V13H5V11H11V5H13V11H19V13Z","Plus")},20009(e,t,r){"use strict";r.d(t,{A:()=>L});var n,i,a,o,s,l,u,c,p="u">typeof globalThis?globalThis:"u">typeof window?window:void 0!==r.g?r.g:"u">typeof self?self:{};function d(){if(o)return a;o=1;let e=[{key:"ZiB",factor:11805916207174113e5},{key:"ZB",factor:1e21},{key:"YiB",factor:12089258196146292e8},{key:"YB",factor:1e24},{key:"TiB",factor:0x10000000000},{key:"TB",factor:1e12},{key:"PiB",factor:0x4000000000000},{key:"PB",factor:1e15},{key:"MiB",factor:1048576},{key:"MB",factor:1e6},{key:"KiB",factor:1024},{key:"KB",factor:1e3},{key:"GiB",factor:0x40000000},{key:"GB",factor:1e9},{key:"EiB",factor:0x1000000000000000},{key:"EB",factor:1e18},{key:"B",factor:1}];function t(e){return e.replace(/[-/\\^$*+?.()|[\]{}]/g,"\\$&")}return a={unformat:function(r,n){let i,a=m(),o=a.currentDelimiters(),s=a.currentCurrency().symbol,l=a.currentOrdinal(),u=a.getZeroFormat(),c=a.currentAbbreviations();if("string"==typeof r)if(function(e,t){if(!(e.indexOf(":")&&":"!==t.thousands))return!1;let r=e.split(":");if(3!==r.length)return!1;let n=+r[0],i=+r[1],a=+r[2];return!isNaN(n)&&!isNaN(i)&&!isNaN(a)}(r,o)){let e,t,n;t=+(e=r.split(":"))[0],n=+e[1],i=+e[2]+60*n+3600*t}else i=function(r,n,i="",a,o,s){if(""!==r)return r===o?0:function r(n,i,a,o,s,l,u){if(!isNaN(+n))return+n;let c="",p=n.replace(/(^[^(]*)\((.*)\)([^)]*$)/,"$1$2$3");if(p!==n)return -1*r(p,i,a,o,s,l);for(let t=0;t<e.length;t++){let u=e[t];if((c=n.replace(RegExp(`([0-9 ])(${u.key})$`),"$1"))!==n)return r(c,i,a,o,s,l)*u.factor}if((c=n.replace("%",""))!==n)return r(c,i,a,o,s,l)/100;let d=parseFloat(n);if(isNaN(d))return;let f=o(d);if(f&&"."!==f&&(c=n.replace(RegExp(`${t(f)}$`),""))!==n)return r(c,i,a,o,s,l);let h={};Object.keys(l).forEach(e=>{h[l[e]]=e});let m=Object.keys(h).sort().reverse(),g=m.length;for(let e=0;e<g;e++){let t=m[e],u=h[t];if((c=n.replace(t,""))!==n){let e;switch(u){case"thousand":e=1e3;break;case"million":e=1e6;break;case"billion":e=1e9;break;case"trillion":e=1e12}return r(c,i,a,o,s,l)*e}}}(r.replace(i,"").replace(RegExp(`([0-9])${t(n.thousands)}([0-9])`,"g"),"$1$2").replace(n.decimal,"."),n,i,a,o,s)}(r,o,s,l,u,c);else{if("number"!=typeof r)return;i=r}if(void 0!==i)return i}}}function f(){if(l)return s;l=1;let e=d(),t=/^[a-z]{2,3}(-[a-zA-Z]{4})?(-([A-Z]{2}|[0-9]{3}))?$/,r={output:{type:"string",validValues:["currency","percent","byte","time","ordinal","number"]},base:{type:"string",validValues:["decimal","binary","general"],restriction:(e,t)=>"byte"===t.output,message:"`base` must be provided only when the output is `byte`",mandatory:e=>"byte"===e.output},characteristic:{type:"number",restriction:e=>e>=0,message:"value must be positive"},prefix:"string",postfix:"string",forceAverage:{type:"string",validValues:["trillion","billion","million","thousand"]},average:"boolean",lowPrecision:{type:"boolean",restriction:(e,t)=>!0===t.average,message:"`lowPrecision` must be provided only when the option `average` is set"},currencyPosition:{type:"string",validValues:["prefix","infix","postfix"]},currencySymbol:"string",totalLength:{type:"number",restrictions:[{restriction:e=>e>=0,message:"value must be positive"},{restriction:(e,t)=>!t.exponential,message:"`totalLength` is incompatible with `exponential`"}]},mantissa:{type:"number",restriction:e=>e>=0,message:"value must be positive"},optionalMantissa:"boolean",trimMantissa:"boolean",roundingFunction:"function",optionalCharacteristic:"boolean",thousandSeparated:"boolean",spaceSeparated:"boolean",spaceSeparatedCurrency:"boolean",spaceSeparatedAbbreviation:"boolean",abbreviations:{type:"object",children:{thousand:"string",million:"string",billion:"string",trillion:"string"}},negative:{type:"string",validValues:["sign","parenthesis"]},forceSign:"boolean",exponential:{type:"boolean"},prefixSymbol:{type:"boolean",restriction:(e,t)=>"percent"===t.output,message:"`prefixSymbol` can be provided only when the output is `percent`"}},n={languageTag:{type:"string",mandatory:!0,restriction:e=>e.match(t),message:"the language tag must follow the BCP 47 specification (see https://tools.ieft.org/html/bcp47)"},delimiters:{type:"object",children:{thousands:"string",decimal:"string",thousandsSize:"number"},mandatory:!0},abbreviations:{type:"object",children:{thousand:{type:"string",mandatory:!0},million:{type:"string",mandatory:!0},billion:{type:"string",mandatory:!0},trillion:{type:"string",mandatory:!0}},mandatory:!0},spaceSeparated:"boolean",spaceSeparatedCurrency:"boolean",ordinal:{type:"function",mandatory:!0},bytes:{type:"object",children:{binarySuffixes:"object",decimalSuffixes:"object"}},currency:{type:"object",children:{symbol:"string",position:"string",code:"string"},mandatory:!0},defaults:"format",ordinalFormat:"format",byteFormat:"format",percentageFormat:"format",currencyFormat:"format",timeDefaults:"format",formats:{type:"object",children:{fourDigits:{type:"format",mandatory:!0},fullWithTwoDecimals:{type:"format",mandatory:!0},fullWithTwoDecimalsNoCurrency:{type:"format",mandatory:!0},fullWithNoDecimals:{type:"format",mandatory:!0}}}};function i(t){return void 0!==e.unformat(t)}function a(e,t,n,i=!1){let o=Object.keys(e).map(i=>{if(!t[i])return console.error(`${n} Invalid key: ${i}`),!1;let o=e[i],s=t[i];if("string"==typeof s&&(s={type:s}),"format"===s.type){if(!a(o,r,`[Validate ${i}]`,!0))return!1}else if(typeof o!==s.type)return console.error(`${n} ${i} type mismatched: "${s.type}" expected, "${typeof o}" provided`),!1;if(s.restrictions&&s.restrictions.length){let t=s.restrictions.length;for(let r=0;r<t;r++){let{restriction:t,message:a}=s.restrictions[r];if(!t(o,e))return console.error(`${n} ${i} invalid value: ${a}`),!1}}return s.restriction&&!s.restriction(o,e)?(console.error(`${n} ${i} invalid value: ${s.message}`),!1):s.validValues&&-1===s.validValues.indexOf(o)?(console.error(`${n} ${i} invalid value: must be among ${JSON.stringify(s.validValues)}, "${o}" provided`),!1):(!s.children||!!a(o,s.children,`[Validate ${i}]`))&&!0});return i||o.push(...Object.keys(t).map(r=>{let i=t[r];if("string"==typeof i&&(i={type:i}),i.mandatory){let t=i.mandatory;if("function"==typeof t&&(t=t(e)),t&&void 0===e[r])return console.error(`${n} Missing mandatory key "${r}"`),!1}return!0})),o.reduce((e,t)=>e&&t,!0)}function o(e){return a(e,r,"[Validate format]")}return s={validate:function(e,t){let r=i(e),n=o(t);return r&&n},validateFormat:o,validateInput:i,validateLanguage:function(e){return a(e,n,"[Validate language]")}}}var h=function(e,t={}){var r,n,i,a,o,s;let l,u,c,p,d;if("string"!=typeof e)return e;n=e=(l=(r=e).match(/^{([^}]*)}/))?(t.prefix=l[1],r.slice(l[0].length)):r,function(e,t){if(-1!==e.indexOf("$")){t.output="currency";return}if(-1!==e.indexOf("%")){t.output="percent";return}if(-1!==e.indexOf("bd")){t.output="byte",t.base="general";return}if(-1!==e.indexOf("b")){t.output="byte",t.base="binary";return}if(-1!==e.indexOf("d")){t.output="byte",t.base="decimal";return}if(-1!==e.indexOf(":")){t.output="time";return}-1!==e.indexOf("o")&&(t.output="ordinal")}(e=(u=n.match(/{([^}]*)}$/))?(t.postfix=u[1],n.slice(0,-u[0].length)):n,t),(c=e.match(/[1-9]+[0-9]*/))&&(t.totalLength=+c[0]),(p=e.split(".")[0].match(/0+/))&&(t.characteristic=p[0].length),-1!==(i=e).indexOf(".")&&(t.optionalCharacteristic=-1===i.split(".")[0].indexOf("0")),-1!==e.indexOf("a")&&(t.average=!0),-1!==(a=e).indexOf("K")?t.forceAverage="thousand":-1!==a.indexOf("M")?t.forceAverage="million":-1!==a.indexOf("B")?t.forceAverage="billion":-1!==a.indexOf("T")&&(t.forceAverage="trillion");let f=e.split(".")[1];if(f){let e=f.match(/0+/);e&&(t.mantissa=e[0].length)}return(o=e).match(/\[\.]/)?t.optionalMantissa=!0:o.match(/\./)&&(t.optionalMantissa=!1),(d=e.split(".")[1])&&(t.trimMantissa=-1!==d.indexOf("[")),-1!==e.indexOf(",")&&(t.thousandSeparated=!0),-1!==e.indexOf(" ")&&(t.spaceSeparated=!0,t.spaceSeparatedCurrency=!0,(t.average||t.forceAverage)&&(t.spaceSeparatedAbbreviation=!0)),(s=e).match(/^\+?\([^)]*\)$/)&&(t.negative="parenthesis"),s.match(/^\+?-/)&&(t.negative="sign"),e.match(/^\+/)&&(t.forceSign=!0),t};function m(){let e;if(c)return u;c=1;let t=i?n:(i=1,n={languageTag:"en-US",delimiters:{thousands:",",decimal:"."},abbreviations:{thousand:"k",million:"m",billion:"b",trillion:"t"},spaceSeparated:!1,ordinal:function(e){let t=e%10;return 1==~~(e%100/10)?"th":1===t?"st":2===t?"nd":3===t?"rd":"th"},bytes:{binarySuffixes:["B","KiB","MiB","GiB","TiB","PiB","EiB","ZiB","YiB"],decimalSuffixes:["B","KB","MB","GB","TB","PB","EB","ZB","YB"]},currency:{symbol:"$",position:"prefix",code:"USD"},currencyFormat:{thousandSeparated:!0,totalLength:4,spaceSeparated:!0,spaceSeparatedCurrency:!0},formats:{fourDigits:{totalLength:4,spaceSeparated:!0},fullWithTwoDecimals:{output:"currency",thousandSeparated:!0,mantissa:2},fullWithTwoDecimalsNoCurrency:{thousandSeparated:!0,mantissa:2},fullWithNoDecimals:{output:"currency",thousandSeparated:!0,mantissa:0}}}),r=f(),a={},o={},s=null,l={};function p(){return o[e]}return a.languages=()=>Object.assign({},o),a.currentLanguage=()=>e,a.currentBytes=()=>p().bytes||{},a.currentCurrency=()=>p().currency,a.currentAbbreviations=()=>p().abbreviations,a.currentDelimiters=()=>p().delimiters,a.currentOrdinal=()=>p().ordinal,a.currentDefaults=()=>Object.assign({},p().defaults,l),a.currentOrdinalDefaultFormat=()=>Object.assign({},a.currentDefaults(),p().ordinalFormat),a.currentByteDefaultFormat=()=>Object.assign({},a.currentDefaults(),p().byteFormat),a.currentPercentageDefaultFormat=()=>Object.assign({},a.currentDefaults(),p().percentageFormat),a.currentCurrencyDefaultFormat=()=>Object.assign({},a.currentDefaults(),p().currencyFormat),a.currentTimeDefaultFormat=()=>Object.assign({},a.currentDefaults(),p().timeFormat),a.setDefaults=e=>{e=h(e),r.validateFormat(e)&&(l=e)},a.getZeroFormat=()=>s,a.setZeroFormat=e=>s="string"==typeof e?e:null,a.hasZeroFormat=()=>null!==s,a.languageData=e=>{if(e){if(o[e])return o[e];throw Error(`Unknown tag "${e}"`)}return p()},a.registerLanguage=(t,n=!1)=>{if(!r.validateLanguage(t))throw Error("Invalid language data");o[t.languageTag]=t,n&&(e=t.languageTag)},a.setLanguage=(r,n=t.languageTag)=>{if(!o[r]){let t=r.split("-")[0],i=Object.keys(o).find(e=>e.split("-")[0]===t);return o[i]?void(e=i):void(e=n)}e=r},a.registerLanguage(t),e=t.languageTag,u=a}var g={exports:{}};(function(e){var t,r=/^-?(?:\d+(?:\.\d*)?|\.\d+)(?:e[+-]?\d+)?$/i,n=Math.ceil,i=Math.floor,a="[BigNumber Error] ",o=a+"Number primitive has more than 15 significant digits: ",s=[1,10,100,1e3,1e4,1e5,1e6,1e7,1e8,1e9,1e10,1e11,1e12,1e13];function l(e){var t=0|e;return e>0||e===t?t:t-1}function u(e){for(var t,r,n=1,i=e.length,a=e[0]+"";n<i;){for(r=14-(t=e[n++]+"").length;r--;t="0"+t);a+=t}for(i=a.length;48===a.charCodeAt(--i););return a.slice(0,i+1||1)}function c(e,t){var r,n,i=e.c,a=t.c,o=e.s,s=t.s,l=e.e,u=t.e;if(!o||!s)return null;if(r=i&&!i[0],n=a&&!a[0],r||n)return r?n?0:-s:o;if(o!=s)return o;if(r=o<0,n=l==u,!i||!a)return n?0:!i^r?1:-1;if(!n)return l>u^r?1:-1;for(o=0,s=(l=i.length)<(u=a.length)?l:u;o<s;o++)if(i[o]!=a[o])return i[o]>a[o]^r?1:-1;return l==u?0:l>u^r?1:-1}function p(e,t,r,n){if(e<t||e>r||e!==i(e))throw Error(a+(n||"Argument")+("number"==typeof e?e<t||e>r?" out of range: ":" not an integer: ":" not a primitive number: ")+String(e))}function d(e){var t=e.c.length-1;return l(e.e/14)==t&&e.c[t]%2!=0}function f(e,t){return(e.length>1?e.charAt(0)+"."+e.slice(1):e)+(t<0?"e":"e+")+t}function h(e,t,r){var n,i;if(t<0){for(i=r+".";++t;i+=r);e=i+e}else if(n=e.length,++t>n){for(i=r,t-=n;--t;i+=r);e+=i}else t<n&&(e=e.slice(0,t)+"."+e.slice(t));return e}(t=function e(t){var m,g,v,y,b,w,x,_,A,M=Z.prototype={constructor:Z,toString:null,valueOf:null},N=new Z(1),S=20,k=4,E=-7,O=21,C=-1e7,T=1e7,$=!1,R=1,I=0,j={prefix:"",groupSize:3,secondaryGroupSize:0,groupSeparator:",",decimalSeparator:".",fractionGroupSize:0,fractionGroupSeparator:"\xa0",suffix:""},P="0123456789abcdefghijklmnopqrstuvwxyz",z=!0;function Z(e,t){var n,a,s,l,u,c,d,f,h=this;if(!(h instanceof Z))return new Z(e,t);if(null==t){if(e&&!0===e._isBigNumber){h.s=e.s,!e.c||e.e>T?h.c=h.e=null:e.e<C?h.c=[h.e=0]:(h.e=e.e,h.c=e.c.slice());return}if((c="number"==typeof e)&&0*e==0){if(h.s=1/e<0?(e=-e,-1):1,e===~~e){for(l=0,u=e;u>=10;u/=10,l++);l>T?h.c=h.e=null:(h.e=l,h.c=[e]);return}f=String(e)}else{if(!r.test(f=String(e)))return A(h,f,c);h.s=45==f.charCodeAt(0)?(f=f.slice(1),-1):1}(l=f.indexOf("."))>-1&&(f=f.replace(".","")),(u=f.search(/e/i))>0?(l<0&&(l=u),l+=+f.slice(u+1),f=f.substring(0,u)):l<0&&(l=f.length)}else{if(p(t,2,P.length,"Base"),10==t&&z)return B(h=new Z(e),S+h.e+1,k);if(f=String(e),c="number"==typeof e){if(0*e!=0)return A(h,f,c,t);if(h.s=1/e<0?(f=f.slice(1),-1):1,Z.DEBUG&&f.replace(/^0\.0*|\./,"").length>15)throw Error(o+e)}else h.s=45===f.charCodeAt(0)?(f=f.slice(1),-1):1;for(n=P.slice(0,t),l=u=0,d=f.length;u<d;u++)if(0>n.indexOf(a=f.charAt(u))){if("."==a){if(u>l){l=d;continue}}else if(!s&&(f==f.toUpperCase()&&(f=f.toLowerCase())||f==f.toLowerCase()&&(f=f.toUpperCase()))){s=!0,u=-1,l=0;continue}return A(h,String(e),c,t)}c=!1,(l=(f=_(f,t,10,h.s)).indexOf("."))>-1?f=f.replace(".",""):l=f.length}for(u=0;48===f.charCodeAt(u);u++);for(d=f.length;48===f.charCodeAt(--d););if(f=f.slice(u,++d)){if(d-=u,c&&Z.DEBUG&&d>15&&(e>0x1fffffffffffff||e!==i(e)))throw Error(o+h.s*e);if((l=l-u-1)>T)h.c=h.e=null;else if(l<C)h.c=[h.e=0];else{if(h.e=l,h.c=[],u=(l+1)%14,l<0&&(u+=14),u<d){for(u&&h.c.push(+f.slice(0,u)),d-=14;u<d;)h.c.push(+f.slice(u,u+=14));u=14-(f=f.slice(u)).length}else u-=d;for(;u--;f+="0");h.c.push(+f)}}else h.c=[h.e=0]}function D(e,t,r,n){var i,a,o,s,l;if(null==r?r=k:p(r,0,8),!e.c)return e.toString();if(i=e.c[0],o=e.e,null==t)l=u(e.c),l=1==n||2==n&&(o<=E||o>=O)?f(l,o):h(l,o,"0");else if(a=(e=B(new Z(e),t,r)).e,s=(l=u(e.c)).length,1==n||2==n&&(t<=a||a<=E)){for(;s<t;l+="0",s++);l=f(l,a)}else if(t-=o,l=h(l,a,"0"),a+1>s){if(--t>0)for(l+=".";t--;l+="0");}else if((t+=a-s)>0)for(a+1==s&&(l+=".");t--;l+="0");return e.s<0&&i?"-"+l:l}function F(e,t){for(var r,n,i=1,a=new Z(e[0]);i<e.length;i++)(n=new Z(e[i])).s&&(r=c(a,n))!==t&&(0!==r||a.s!==t)||(a=n);return a}function L(e,t,r){for(var n=1,i=t.length;!t[--i];t.pop());for(i=t[0];i>=10;i/=10,n++);return(r=n+14*r-1)>T?e.c=e.e=null:r<C?e.c=[e.e=0]:(e.e=r,e.c=t),e}function B(e,t,r,a){var o,l,u,c,p,d,f,h=e.c;if(h){e:{for(o=1,c=h[0];c>=10;c/=10,o++);if((l=t-o)<0)l+=14,u=t,f=i((p=h[d=0])/s[o-u-1]%10);else if((d=n((l+1)/14))>=h.length)if(a){for(;h.length<=d;h.push(0));p=f=0,o=1,l%=14,u=l-14+1}else break e;else{for(o=1,p=c=h[d];c>=10;c/=10,o++);l%=14,f=(u=l-14+o)<0?0:i(p/s[o-u-1]%10)}if(a=a||t<0||null!=h[d+1]||(u<0?p:p%s[o-u-1]),a=r<4?(f||a)&&(0==r||r==(e.s<0?3:2)):f>5||5==f&&(4==r||a||6==r&&(l>0?u>0?p/s[o-u]:0:h[d-1])%10&1||r==(e.s<0?8:7)),t<1||!h[0])return h.length=0,a?(t-=e.e+1,h[0]=s[(14-t%14)%14],e.e=-t||0):h[0]=e.e=0,e;if(0==l?(h.length=d,c=1,d--):(h.length=d+1,c=s[14-l],h[d]=u>0?i(p/s[o-u]%s[u])*c:0),a)for(;;)if(0==d){for(l=1,u=h[0];u>=10;u/=10,l++);for(u=h[0]+=c,c=1;u>=10;u/=10,c++);l!=c&&(e.e++,1e14==h[0]&&(h[0]=1));break}else{if(h[d]+=c,1e14!=h[d])break;h[d--]=0,c=1}for(l=h.length;0===h[--l];h.pop());}e.e>T?e.c=e.e=null:e.e<C&&(e.c=[e.e=0])}return e}function q(e){var t,r=e.e;return null===r?e.toString():(t=u(e.c),t=r<=E||r>=O?f(t,r):h(t,r,"0"),e.s<0?"-"+t:t)}return Z.clone=e,Z.ROUND_UP=0,Z.ROUND_DOWN=1,Z.ROUND_CEIL=2,Z.ROUND_FLOOR=3,Z.ROUND_HALF_UP=4,Z.ROUND_HALF_DOWN=5,Z.ROUND_HALF_EVEN=6,Z.ROUND_HALF_CEIL=7,Z.ROUND_HALF_FLOOR=8,Z.EUCLID=9,Z.config=Z.set=function(e){var t,r;if(null!=e)if("object"==typeof e){if(e.hasOwnProperty(t="DECIMAL_PLACES")&&(p(r=e[t],0,1e9,t),S=r),e.hasOwnProperty(t="ROUNDING_MODE")&&(p(r=e[t],0,8,t),k=r),e.hasOwnProperty(t="EXPONENTIAL_AT")&&((r=e[t])&&r.pop?(p(r[0],-1e9,0,t),p(r[1],0,1e9,t),E=r[0],O=r[1]):(p(r,-1e9,1e9,t),E=-(O=r<0?-r:r))),e.hasOwnProperty(t="RANGE"))if((r=e[t])&&r.pop)p(r[0],-1e9,-1,t),p(r[1],1,1e9,t),C=r[0],T=r[1];else if(p(r,-1e9,1e9,t),r)C=-(T=r<0?-r:r);else throw Error(a+t+" cannot be zero: "+r);if(e.hasOwnProperty(t="CRYPTO"))if(!!(r=e[t])===r)if(r)if("u">typeof crypto&&crypto&&(crypto.getRandomValues||crypto.randomBytes))$=r;else throw $=!r,Error(a+"crypto unavailable");else $=r;else throw Error(a+t+" not true or false: "+r);if(e.hasOwnProperty(t="MODULO_MODE")&&(p(r=e[t],0,9,t),R=r),e.hasOwnProperty(t="POW_PRECISION")&&(p(r=e[t],0,1e9,t),I=r),e.hasOwnProperty(t="FORMAT"))if("object"==typeof(r=e[t]))j=r;else throw Error(a+t+" not an object: "+r);if(e.hasOwnProperty(t="ALPHABET")){if("string"!=typeof(r=e[t])||/^.?$|[+\-.\s]|(.).*\1/.test(r))throw Error(a+t+" invalid: "+r);z="0123456789"==r.slice(0,10),P=r}}else throw Error(a+"Object expected: "+e);return{DECIMAL_PLACES:S,ROUNDING_MODE:k,EXPONENTIAL_AT:[E,O],RANGE:[C,T],CRYPTO:$,MODULO_MODE:R,POW_PRECISION:I,FORMAT:j,ALPHABET:P}},Z.isBigNumber=function(e){if(!e||!0!==e._isBigNumber)return!1;if(!Z.DEBUG)return!0;var t,r,n=e.c,o=e.e,s=e.s;e:if("[object Array]"==({}).toString.call(n)){if((1===s||-1===s)&&o>=-1e9&&o<=1e9&&o===i(o)){if(0===n[0]){if(0===o&&1===n.length)return!0;break e}if((t=(o+1)%14)<1&&(t+=14),String(n[0]).length==t){for(t=0;t<n.length;t++)if((r=n[t])<0||r>=1e14||r!==i(r))break e;if(0!==r)return!0}}}else if(null===n&&null===o&&(null===s||1===s||-1===s))return!0;throw Error(a+"Invalid BigNumber: "+e)},Z.maximum=Z.max=function(){return F(arguments,-1)},Z.minimum=Z.min=function(){return F(arguments,1)},m=0x20000000000000*Math.random()&2097151?function(){return i(0x20000000000000*Math.random())}:function(){return(0x40000000*Math.random()|0)*8388608+(8388608*Math.random()|0)},Z.random=function(e){var t,r,o,l,u,c=0,d=[],f=new Z(N);if(null==e?e=S:p(e,0,1e9),l=n(e/14),$)if(crypto.getRandomValues){for(t=crypto.getRandomValues(new Uint32Array(l*=2));c<l;)(u=131072*t[c]+(t[c+1]>>>11))>=9e15?(r=crypto.getRandomValues(new Uint32Array(2)),t[c]=r[0],t[c+1]=r[1]):(d.push(u%1e14),c+=2);c=l/2}else if(crypto.randomBytes){for(t=crypto.randomBytes(l*=7);c<l;)(u=(31&t[c])*0x1000000000000+0x10000000000*t[c+1]+0x100000000*t[c+2]+0x1000000*t[c+3]+(t[c+4]<<16)+(t[c+5]<<8)+t[c+6])>=9e15?crypto.randomBytes(7).copy(t,c):(d.push(u%1e14),c+=7);c=l/7}else throw $=!1,Error(a+"crypto unavailable");if(!$)for(;c<l;)(u=m())<9e15&&(d[c++]=u%1e14);for(l=d[--c],e%=14,l&&e&&(u=s[14-e],d[c]=i(l/u)*u);0===d[c];d.pop(),c--);if(c<0)d=[o=0];else{for(o=-1;0===d[0];d.splice(0,1),o-=14);for(c=1,u=d[0];u>=10;u/=10,c++);c<14&&(o-=14-c)}return f.e=o,f.c=d,f},Z.sum=function(){for(var e=1,t=arguments,r=new Z(t[0]);e<t.length;)r=r.plus(t[e++]);return r},_=function(){var e="0123456789";function t(e,t,r,n){for(var i,a,o=[0],s=0,l=e.length;s<l;){for(a=o.length;a--;o[a]*=t);for(o[0]+=n.indexOf(e.charAt(s++)),i=0;i<o.length;i++)o[i]>r-1&&(null==o[i+1]&&(o[i+1]=0),o[i+1]+=o[i]/r|0,o[i]%=r)}return o.reverse()}return function(r,n,i,a,o){var s,l,c,p,d,f,m,g,v=r.indexOf("."),y=S,b=k;for(v>=0&&(p=I,I=0,r=r.replace(".",""),f=(g=new Z(n)).pow(r.length-v),I=p,g.c=t(h(u(f.c),f.e,"0"),10,i,e),g.e=g.c.length),c=p=(m=t(r,n,i,o?(s=P,e):(s=e,P))).length;0==m[--p];m.pop());if(!m[0])return s.charAt(0);if(v<0?--c:(f.c=m,f.e=c,f.s=a,m=(f=x(f,g,y,b,i)).c,d=f.r,c=f.e),v=m[l=c+y+1],p=i/2,d=d||l<0||null!=m[l+1],d=b<4?(null!=v||d)&&(0==b||b==(f.s<0?3:2)):v>p||v==p&&(4==b||d||6==b&&1&m[l-1]||b==(f.s<0?8:7)),l<1||!m[0])r=d?h(s.charAt(1),-y,s.charAt(0)):s.charAt(0);else{if(m.length=l,d)for(--i;++m[--l]>i;)m[l]=0,l||(++c,m=[1].concat(m));for(p=m.length;!m[--p];);for(v=0,r="";v<=p;r+=s.charAt(m[v++]));r=h(r,c,s.charAt(0))}return r}}(),x=function(){function e(e,t,r){var n,i,a,o,s=0,l=e.length,u=t%1e7,c=t/1e7|0;for(e=e.slice();l--;)n=c*(a=e[l]%1e7)+(o=e[l]/1e7|0)*u,s=((i=u*a+n%1e7*1e7+s)/r|0)+(n/1e7|0)+c*o,e[l]=i%r;return s&&(e=[s].concat(e)),e}function t(e,t,r,n){var i,a;if(r!=n)a=r>n?1:-1;else for(i=a=0;i<r;i++)if(e[i]!=t[i]){a=e[i]>t[i]?1:-1;break}return a}function r(e,t,r,n){for(var i=0;r--;)e[r]-=i,i=+(e[r]<t[r]),e[r]=i*n+e[r]-t[r];for(;!e[0]&&e.length>1;e.splice(0,1));}return function(n,a,o,s,u){var c,p,d,f,h,m,g,v,y,b,w,x,_,A,M,N,S,k=n.s==a.s?1:-1,E=n.c,O=a.c;if(!E||!E[0]||!O||!O[0])return new Z(!n.s||!a.s||(E?O&&E[0]==O[0]:!O)?NaN:E&&0==E[0]||!O?0*k:k/0);for(y=(v=new Z(k)).c=[],k=o+(p=n.e-a.e)+1,u||(u=1e14,p=l(n.e/14)-l(a.e/14),k=k/14|0),d=0;O[d]==(E[d]||0);d++);if(O[d]>(E[d]||0)&&p--,k<0)y.push(1),f=!0;else{for(A=E.length,N=O.length,d=0,k+=2,(h=i(u/(O[0]+1)))>1&&(O=e(O,h,u),E=e(E,h,u),N=O.length,A=E.length),_=N,w=(b=E.slice(0,N)).length;w<N;b[w++]=0);S=[0].concat(S=O.slice()),M=O[0],O[1]>=u/2&&M++;do{if(h=0,(c=t(O,b,N,w))<0){if(x=b[0],N!=w&&(x=x*u+(b[1]||0)),(h=i(x/M))>1)for(h>=u&&(h=u-1),g=(m=e(O,h,u)).length,w=b.length;1==t(m,b,g,w);)h--,r(m,N<g?S:O,g,u),g=m.length,c=1;else 0==h&&(c=h=1),g=(m=O.slice()).length;if(g<w&&(m=[0].concat(m)),r(b,m,w,u),w=b.length,-1==c)for(;1>t(O,b,N,w);)h++,r(b,N<w?S:O,w,u),w=b.length}else 0===c&&(h++,b=[0]);y[d++]=h,b[0]?b[w++]=E[_]||0:(b=[E[_]],w=1)}while((_++<A||null!=b[0])&&k--);f=null!=b[0],y[0]||y.splice(0,1)}if(1e14==u){for(d=1,k=y[0];k>=10;k/=10,d++);B(v,o+(v.e=d+14*p-1)+1,s,f)}else v.e=p,v.r=+f;return v}}(),g=/^(-?)0([xbo])(?=\w[\w.]*$)/i,v=/^([^.]+)\.$/,y=/^\.([^.]+)$/,b=/^-?(Infinity|NaN)$/,w=/^\s*\+(?=[\w.])|^\s+|\s+$/g,A=function(e,t,r,n){var i,o=r?t:t.replace(w,"");if(b.test(o))e.s=isNaN(o)?null:o<0?-1:1;else{if(!r&&(o=o.replace(g,function(e,t,r){return i="x"==(r=r.toLowerCase())?16:"b"==r?2:8,n&&n!=i?e:t}),n&&(i=n,o=o.replace(v,"$1").replace(y,"0.$1")),t!=o))return new Z(o,i);if(Z.DEBUG)throw Error(a+"Not a"+(n?" base "+n:"")+" number: "+t);e.s=null}e.c=e.e=null},M.absoluteValue=M.abs=function(){var e=new Z(this);return e.s<0&&(e.s=1),e},M.comparedTo=function(e,t){return c(this,new Z(e,t))},M.decimalPlaces=M.dp=function(e,t){var r,n,i;if(null!=e)return p(e,0,1e9),null==t?t=k:p(t,0,8),B(new Z(this),e+this.e+1,t);if(!(r=this.c))return null;if(n=((i=r.length-1)-l(this.e/14))*14,i=r[i])for(;i%10==0;i/=10,n--);return n<0&&(n=0),n},M.dividedBy=M.div=function(e,t){return x(this,new Z(e,t),S,k)},M.dividedToIntegerBy=M.idiv=function(e,t){return x(this,new Z(e,t),0,1)},M.exponentiatedBy=M.pow=function(e,t){var r,o,s,l,u,c,p,f,h,m=this;if((e=new Z(e)).c&&!e.isInteger())throw Error(a+"Exponent not an integer: "+q(e));if(null!=t&&(t=new Z(t)),c=e.e>14,!m.c||!m.c[0]||1==m.c[0]&&!m.e&&1==m.c.length||!e.c||!e.c[0])return h=new Z(Math.pow(+q(m),c?e.s*(2-d(e)):+q(e))),t?h.mod(t):h;if(p=e.s<0,t){if(t.c?!t.c[0]:!t.s)return new Z(NaN);(o=!p&&m.isInteger()&&t.isInteger())&&(m=m.mod(t))}else{if(e.e>9&&(m.e>0||m.e<-1||(0==m.e?m.c[0]>1||c&&m.c[1]>=24e7:m.c[0]<8e13||c&&m.c[0]<=9999975e7)))return l=m.s<0&&d(e)?-0:0,m.e>-1&&(l=1/l),new Z(p?1/l:l);I&&(l=n(I/14+2))}for(c?(r=new Z(.5),p&&(e.s=1),f=d(e)):f=(s=Math.abs(+q(e)))%2,h=new Z(N);;){if(f){if(!(h=h.times(m)).c)break;l?h.c.length>l&&(h.c.length=l):o&&(h=h.mod(t))}if(s){if(0===(s=i(s/2)))break;f=s%2}else if(B(e=e.times(r),e.e+1,1),e.e>14)f=d(e);else{if(0==(s=+q(e)))break;f=s%2}m=m.times(m),l?m.c&&m.c.length>l&&(m.c.length=l):o&&(m=m.mod(t))}return o?h:(p&&(h=N.div(h)),t?h.mod(t):l?B(h,I,k,u):h)},M.integerValue=function(e){var t=new Z(this);return null==e?e=k:p(e,0,8),B(t,t.e+1,e)},M.isEqualTo=M.eq=function(e,t){return 0===c(this,new Z(e,t))},M.isFinite=function(){return!!this.c},M.isGreaterThan=M.gt=function(e,t){return c(this,new Z(e,t))>0},M.isGreaterThanOrEqualTo=M.gte=function(e,t){return 1===(t=c(this,new Z(e,t)))||0===t},M.isInteger=function(){return!!this.c&&l(this.e/14)>this.c.length-2},M.isLessThan=M.lt=function(e,t){return 0>c(this,new Z(e,t))},M.isLessThanOrEqualTo=M.lte=function(e,t){return -1===(t=c(this,new Z(e,t)))||0===t},M.isNaN=function(){return!this.s},M.isNegative=function(){return this.s<0},M.isPositive=function(){return this.s>0},M.isZero=function(){return!!this.c&&0==this.c[0]},M.minus=function(e,t){var r,n,i,a,o=this.s;if(t=(e=new Z(e,t)).s,!o||!t)return new Z(NaN);if(o!=t)return e.s=-t,this.plus(e);var s=this.e/14,u=e.e/14,c=this.c,p=e.c;if(!s||!u){if(!c||!p)return c?(e.s=-t,e):new Z(p?this:NaN);if(!c[0]||!p[0])return p[0]?(e.s=-t,e):new Z(c[0]?this:3==k?-0:0)}if(s=l(s),u=l(u),c=c.slice(),o=s-u){for((a=o<0)?(o=-o,i=c):(u=s,i=p),i.reverse(),t=o;t--;i.push(0));i.reverse()}else for(n=(a=(o=c.length)<(t=p.length))?o:t,o=t=0;t<n;t++)if(c[t]!=p[t]){a=c[t]<p[t];break}if(a&&(i=c,c=p,p=i,e.s=-e.s),(t=(n=p.length)-(r=c.length))>0)for(;t--;c[r++]=0);for(t=1e14-1;n>o;){if(c[--n]<p[n]){for(r=n;r&&!c[--r];c[r]=t);--c[r],c[n]+=1e14}c[n]-=p[n]}for(;0==c[0];c.splice(0,1),--u);return c[0]?L(e,c,u):(e.s=3==k?-1:1,e.c=[e.e=0],e)},M.modulo=M.mod=function(e,t){var r,n;return(e=new Z(e,t),this.c&&e.s&&(!e.c||e.c[0]))?e.c&&(!this.c||this.c[0])?(9==R?(n=e.s,e.s=1,r=x(this,e,0,3),e.s=n,r.s*=n):r=x(this,e,0,R),(e=this.minus(r.times(e))).c[0]||1!=R||(e.s=this.s),e):new Z(this):new Z(NaN)},M.multipliedBy=M.times=function(e,t){var r,n,i,a,o,s,u,c,p,d,f,h,m,g=this.c,v=(e=new Z(e,t)).c;if(!g||!v||!g[0]||!v[0])return this.s&&e.s&&(!g||g[0]||v)&&(!v||v[0]||g)?(e.s*=this.s,g&&v?(e.c=[0],e.e=0):e.c=e.e=null):e.c=e.e=e.s=null,e;for(n=l(this.e/14)+l(e.e/14),e.s*=this.s,(u=g.length)<(d=v.length)&&(m=g,g=v,v=m,i=u,u=d,d=i),i=u+d,m=[];i--;m.push(0));for(i=d;--i>=0;){for(r=0,f=v[i]%1e7,h=v[i]/1e7|0,a=i+(o=u);a>i;)s=h*(c=g[--o]%1e7)+(p=g[o]/1e7|0)*f,r=((c=f*c+s%1e7*1e7+m[a]+r)/1e14|0)+(s/1e7|0)+h*p,m[a--]=c%1e14;m[a]=r}return r?++n:m.splice(0,1),L(e,m,n)},M.negated=function(){var e=new Z(this);return e.s=-e.s||null,e},M.plus=function(e,t){var r,n=this.s;if(t=(e=new Z(e,t)).s,!n||!t)return new Z(NaN);if(n!=t)return e.s=-t,this.minus(e);var i=this.e/14,a=e.e/14,o=this.c,s=e.c;if(!i||!a){if(!o||!s)return new Z(n/0);if(!o[0]||!s[0])return s[0]?e:new Z(o[0]?this:0*n)}if(i=l(i),a=l(a),o=o.slice(),n=i-a){for(n>0?(a=i,r=s):(n=-n,r=o),r.reverse();n--;r.push(0));r.reverse()}for((n=o.length)-(t=s.length)<0&&(r=s,s=o,o=r,t=n),n=0;t;)n=(o[--t]=o[t]+s[t]+n)/1e14|0,o[t]=1e14===o[t]?0:o[t]%1e14;return n&&(o=[n].concat(o),++a),L(e,o,a)},M.precision=M.sd=function(e,t){var r,n,i;if(null!=e&&!!e!==e)return p(e,1,1e9),null==t?t=k:p(t,0,8),B(new Z(this),e,t);if(!(r=this.c))return null;if(n=14*(i=r.length-1)+1,i=r[i]){for(;i%10==0;i/=10,n--);for(i=r[0];i>=10;i/=10,n++);}return e&&this.e+1>n&&(n=this.e+1),n},M.shiftedBy=function(e){return p(e,-0x1fffffffffffff,0x1fffffffffffff),this.times("1e"+e)},M.squareRoot=M.sqrt=function(){var e,t,r,n,i,a=this.c,o=this.s,s=this.e,c=S+4,p=new Z("0.5");if(1!==o||!a||!a[0])return new Z(!o||o<0&&(!a||a[0])?NaN:a?this:1/0);if(0==(o=Math.sqrt(+q(this)))||o==1/0?(((t=u(a)).length+s)%2==0&&(t+="0"),o=Math.sqrt(+t),s=l((s+1)/2)-(s<0||s%2),r=new Z(t=o==1/0?"5e"+s:(t=o.toExponential()).slice(0,t.indexOf("e")+1)+s)):r=new Z(o+""),r.c[0]){for((o=(s=r.e)+c)<3&&(o=0);;)if(i=r,r=p.times(i.plus(x(this,i,c,1))),u(i.c).slice(0,o)===(t=u(r.c)).slice(0,o)){if(r.e<s&&--o,"9999"!=(t=t.slice(o-3,o+1))&&(n||"4999"!=t)){+t&&(+t.slice(1)||"5"!=t.charAt(0))||(B(r,r.e+S+2,1),e=!r.times(r).eq(this));break}if(!n&&(B(i,i.e+S+2,0),i.times(i).eq(this))){r=i;break}c+=4,o+=4,n=1}}return B(r,r.e+S+1,k,e)},M.toExponential=function(e,t){return null!=e&&(p(e,0,1e9),e++),D(this,e,t,1)},M.toFixed=function(e,t){return null!=e&&(p(e,0,1e9),e=e+this.e+1),D(this,e,t)},M.toFormat=function(e,t,r){var n;if(null==r)null!=e&&t&&"object"==typeof t?(r=t,t=null):e&&"object"==typeof e?(r=e,e=t=null):r=j;else if("object"!=typeof r)throw Error(a+"Argument not an object: "+r);if(n=this.toFixed(e,t),this.c){var i,o=n.split("."),s=+r.groupSize,l=+r.secondaryGroupSize,u=r.groupSeparator||"",c=o[0],p=o[1],d=this.s<0,f=d?c.slice(1):c,h=f.length;if(l&&(i=s,s=l,l=i,h-=i),s>0&&h>0){for(i=h%s||s,c=f.substr(0,i);i<h;i+=s)c+=u+f.substr(i,s);l>0&&(c+=u+f.slice(i)),d&&(c="-"+c)}n=p?c+(r.decimalSeparator||"")+((l=+r.fractionGroupSize)?p.replace(RegExp("\\d{"+l+"}\\B","g"),"$&"+(r.fractionGroupSeparator||"")):p):c}return(r.prefix||"")+n+(r.suffix||"")},M.toFraction=function(e){var t,r,n,i,o,l,c,p,d,f,h,m,g=this.c;if(null!=e&&(!(c=new Z(e)).isInteger()&&(c.c||1!==c.s)||c.lt(N)))throw Error(a+"Argument "+(c.isInteger()?"out of range: ":"not an integer: ")+q(c));if(!g)return new Z(this);for(t=new Z(N),d=r=new Z(N),n=p=new Z(N),m=u(g),o=t.e=m.length-this.e-1,t.c[0]=s[(l=o%14)<0?14+l:l],e=!e||c.comparedTo(t)>0?o>0?t:d:c,l=T,T=1/0,c=new Z(m),p.c[0]=0;f=x(c,t,0,1),1!=(i=r.plus(f.times(n))).comparedTo(e);)r=n,n=i,d=p.plus(f.times(i=d)),p=i,t=c.minus(f.times(i=t)),c=i;return i=x(e.minus(r),n,0,1),p=p.plus(i.times(d)),r=r.plus(i.times(n)),p.s=d.s=this.s,o*=2,h=1>x(d,n,o,k).minus(this).abs().comparedTo(x(p,r,o,k).minus(this).abs())?[d,n]:[p,r],T=l,h},M.toNumber=function(){return+q(this)},M.toPrecision=function(e,t){return null!=e&&p(e,1,1e9),D(this,e,t,2)},M.toString=function(e){var t,r=this,n=r.s,i=r.e;return null===i?n?(t="Infinity",n<0&&(t="-"+t)):t="NaN":(null==e?t=i<=E||i>=O?f(u(r.c),i):h(u(r.c),i,"0"):10===e&&z?t=h(u((r=B(new Z(r),S+i+1,k)).c),r.e,"0"):(p(e,2,P.length,"Base"),t=_(h(u(r.c),i,"0"),10,e,n,!0)),n<0&&r.c[0]&&(t="-"+t)),t},M.valueOf=M.toJSON=function(){return q(this)},M._isBigNumber=!0,null!=t&&Z.set(t),Z}()).default=t.BigNumber=t,g.exports?g.exports=t:(e||(e="u">typeof self&&self?self:window),e.BigNumber=t)})(p);var v=g.exports;let y=m(),b=f(),w={trillion:1e12,billion:1e9,million:1e6,thousand:1e3},x={totalLength:0,characteristic:0,forceAverage:!1,average:!1,mantissa:-1,optionalMantissa:!0,thousandSeparated:!1,spaceSeparated:!1,negative:"sign",forceSign:!1,roundingFunction:Math.round,spaceSeparatedAbbreviation:!1},{binarySuffixes:_,decimalSuffixes:A}=y.currentBytes(),M={scale:1024,suffixes:A,marker:"bd"},N={scale:1024,suffixes:_,marker:"b"},S={scale:1e3,suffixes:A,marker:"d"};function k(e,t,r){let n=t[0],i=Math.abs(e);if(i>=r){for(let a=1;a<t.length;++a){let o=Math.pow(r,a),s=Math.pow(r,a+1);if(i>=o&&i<s){n=t[a],e/=o;break}}n===t[0]&&(e/=Math.pow(r,t.length-1),n=t[t.length-1])}return{value:e,suffix:n}}function E(e){let t="";for(let r=0;r<e;r++)t+="0";return t}function O({instance:e,providedFormat:t,state:r=y,decimalSeparator:n,defaults:i=r.currentDefaults()}){var a,o,s,l,u;let c,p,d,f,h,m,g,b=e._value;if(0===b&&r.hasZeroFormat())return r.getZeroFormat();if(!isFinite(b))return b.toString();let _=Object.assign({},x,i,t),A=_.totalLength,M=A?0:_.characteristic,N=_.optionalCharacteristic,S=_.forceAverage,k=_.lowPrecision,C=!!A||!!S||_.average,T=A?-1:C&&void 0===t.mantissa?0:_.mantissa,$=!A&&(void 0===t.optionalMantissa?-1===T:_.optionalMantissa),R=_.trimMantissa,I=_.thousandSeparated,j=_.spaceSeparated,P=_.negative,z=_.forceSign,Z=_.exponential,D=_.roundingFunction,F="";if(C){let e=function({value:e,forceAverage:t,lowPrecision:r=!0,abbreviations:n,spaceSeparated:i=!1,totalLength:a=0,roundingFunction:o=Math.round}){let s="",l=Math.abs(e),u=-1;if(t&&n[t]&&w[t]?(s=n[t],e/=w[t]):l>=w.trillion||r&&1===o(l/w.trillion)?(s=n.trillion,e/=w.trillion):l<w.trillion&&l>=w.billion||r&&1===o(l/w.billion)?(s=n.billion,e/=w.billion):l<w.billion&&l>=w.million||r&&1===o(l/w.million)?(s=n.million,e/=w.million):(l<w.million&&l>=w.thousand||r&&1===o(l/w.thousand))&&(s=n.thousand,e/=w.thousand),s&&(s=(i?" ":"")+s),a){let t=e<0,r=e.toString().split(".")[0];u=Math.max(a-(t?r.length-1:r.length),0)}return{value:e,abbreviation:s,mantissaPrecision:u}}({value:b,forceAverage:S,lowPrecision:k,abbreviations:r.currentAbbreviations(),spaceSeparated:j,roundingFunction:D,totalLength:A});b=e.value,F+=e.abbreviation,A&&(T=e.mantissaPrecision)}if(Z){let e=function({value:e,characteristicPrecision:t}){let[r,n]=e.toExponential().split("e"),i=+r;return t&&1<t&&(i*=Math.pow(10,t-1),n-=t-1,n=n>=0?`+${n}`:n),{value:i,abbreviation:`e${n}`}}({value:b,characteristicPrecision:M});b=e.value,F=e.abbreviation+F}let L=function(e,t,r,n,i,a){if(-1===n)return e;let o=function(e,t,r=Math.round){return -1!==e.toString().indexOf("e")?function(e,t){let r=e.toString(),[n,i]=r.split("e"),[a,o=""]=n.split(".");if(+i>0)r=a+o+E(i-o.length);else{let e=".";e=0>+a?`-0${e}`:`0${e}`;let n=(E(-i-1)+Math.abs(a)+o).substr(0,t);n.length<t&&(n+=E(t-n.length)),r=e+n}return+i>0&&t>0&&(r+=`.${E(t)}`),r}(e,t):new v(r(+`${e}e+${t}`)/Math.pow(10,t)).toFixed(t)}(t,n,a),[s,l=""]=o.toString().split(".");if(l.match(/^0+$/)&&(r||i))return s;let u=l.match(/0+$/);return i&&u?`${s}.${l.toString().slice(0,u.index)}`:o.toString()}(b.toString(),b,$,T,R,D);return a=L=function(e,t,r,n){let i=e,[a,o]=i.toString().split(".");if(a.match(/^-?0$/)&&r)return o?`${a.replace("0","")}.${o}`:a.replace("0","");let s=t<0&&0===a.indexOf("-");if(s&&(a=a.slice(1),i=i.slice(1)),a.length<n){let e=n-a.length;for(let t=0;t<e;t++)i=`0${i}`}return s&&(i=`-${i}`),i.toString()}(L,b,N,M),o=b,s=n,p=(c=r.currentDelimiters()).thousands,s=s||c.decimal,d=c.thousandsSize||3,h=(f=a.toString()).split(".")[0],m=f.split(".")[1],g=o<0&&0===h.indexOf("-"),I&&(g&&(h=h.slice(1)),(function(e,t){let r=[],n=0;for(let i=e;i>0;i--)n===t&&(r.unshift(i),n=0),n++;return r})(h.length,d).forEach((e,t)=>{h=h.slice(0,e+t)+p+h.slice(e+t)}),g&&(h=`-${h}`)),L=f=m?h+s+m:h,(C||Z)&&(L+=F),(z||b<0)&&(l=L,L=0===(u=b)?l:0==+l?l.replace("-",""):u>0?`+${l}`:"sign"===P?l:`(${l.replace("-","")})`),L}function C(e,t){if(!e)return t;let r=Object.keys(e);return 1===r.length&&"output"===r[0]?t:e}function T(e,t,r){let n=new v(e._value),i=t;return r.isNumbro(t)&&(i=t._value),i=new v(i),e._value=n.minus(i).toNumber(),e}let $=m(),R=f(),I={loadLanguagesInNode:e=>{e.forEach(e=>{let t;try{t=function(e){throw Error('Could not dynamically require "'+e+'". Please configure the dynamicRequireTargets or/and ignoreDynamicRequires option of @rollup/plugin-commonjs appropriately for this require call to work.')}(`../languages/${e}`)}catch(t){console.error(`Unable to load "${e}". No matching language file found.`)}t&&F.registerLanguage(t)})}},j=d(),P={format:(...e)=>(function(e,t={},r){if("string"==typeof t&&(t=h(t)),!b.validateFormat(t))return"ERROR: invalid format";let n=t.prefix||"",i=t.postfix||"",a=function(e,t,r){var n,i,a;switch(t.output){case"currency":let o,s,l,u,c,p,d,f,h,m;return n=t=C(t,y.currentCurrencyDefaultFormat()),o=y.currentCurrency(),l=Object.assign({},x,s=Object.assign({},n)),c="",p=!!l.totalLength||!!l.forceAverage||l.average,d=s.currencyPosition||o.position,f=s.currencySymbol||o.symbol,h=void 0!==l.spaceSeparatedCurrency?l.spaceSeparatedCurrency:l.spaceSeparated,void 0===s.lowPrecision&&(s.lowPrecision=!1),h&&(c=" "),"infix"===d&&(u=c+f+c),m=O({instance:e,providedFormat:s,state:y,decimalSeparator:u}),"prefix"===d&&(m=e._value<0&&"sign"===l.negative?`-${c}${f}${m.slice(1)}`:e._value>0&&l.forceSign?`+${c}${f}${m.slice(1)}`:f+c+m),d&&"postfix"!==d||(m=m+(c=!l.spaceSeparatedAbbreviation&&p?"":c)+f),m;case"percent":let g,v,b;return i=t=C(t,y.currentPercentageDefaultFormat()),g=i.prefixSymbol,v=O({instance:r(100*e._value),providedFormat:i,state:y}),b=Object.assign({},x,i),g?`%${b.spaceSeparated?" ":""}${v}`:`${v}${b.spaceSeparated?" ":""}%`;case"byte":return function(e,t,r,n){let i=t.base||"binary",a=Object.assign({},x,t),{binarySuffixes:o,decimalSuffixes:s}=r.currentBytes(),l={general:{scale:1024,suffixes:s||A,marker:"bd"},binary:{scale:1024,suffixes:o||_,marker:"b"},decimal:{scale:1e3,suffixes:s||A,marker:"d"}}[i],{value:u,suffix:c}=k(e._value,l.suffixes,l.scale),p=O({instance:n(u),providedFormat:t,state:r,defaults:r.currentByteDefaultFormat()});return`${p}${a.spaceSeparated?" ":""}${c}`}(e,t=C(t,y.currentByteDefaultFormat()),y,r);case"time":let w,M,N;return t=C(t,y.currentTimeDefaultFormat()),w=Math.floor(e._value/60/60),M=Math.floor((e._value-60*w*60)/60),N=Math.round(e._value-60*w*60-60*M),`${w}:${M<10?"0":""}${M}:${N<10?"0":""}${N}`;case"ordinal":let S,E,T,$;return a=t=C(t,y.currentOrdinalDefaultFormat()),S=y.currentOrdinal(),E=Object.assign({},x,a),T=O({instance:e,providedFormat:a,state:y}),$=S(e._value),`${T}${E.spaceSeparated?" ":""}${$}`;default:return O({instance:e,providedFormat:t,numbro:r})}}(e,t,r);return(a=n+a)+i})(...e,F),getByteUnit:(...e)=>(function(e){return k(e._value,M.suffixes,M.scale).suffix})(...e),getBinaryByteUnit:(...e)=>(function(e){return k(e._value,N.suffixes,N.scale).suffix})(...e),getDecimalByteUnit:(...e)=>(function(e){return k(e._value,S.suffixes,S.scale).suffix})(...e),formatOrDefault:C},z={add:(e,t)=>{let r,n;return r=new v(e._value),n=t,F.isNumbro(t)&&(n=t._value),n=new v(n),e._value=r.plus(n).toNumber(),e},subtract:(e,t)=>T(e,t,F),multiply:(e,t)=>{let r,n;return r=new v(e._value),n=t,F.isNumbro(t)&&(n=t._value),n=new v(n),e._value=r.times(n).toNumber(),e},divide:(e,t)=>{let r,n;return r=new v(e._value),n=t,F.isNumbro(t)&&(n=t._value),n=new v(n),e._value=r.dividedBy(n).toNumber(),e},set:(e,t)=>{let r;return r=t,F.isNumbro(t)&&(r=t._value),e._value=r,e},difference:(e,t)=>{let r;return T(r=F(e._value),t,F),Math.abs(r._value)},BigNumber:v};class Z{constructor(e){this._value=e}clone(){return F(this._value)}format(e={}){return P.format(this,e)}formatCurrency(e){return"string"==typeof e&&(e=h(e)),(e=P.formatOrDefault(e,$.currentCurrencyDefaultFormat())).output="currency",P.format(this,e)}formatTime(e={}){return e.output="time",P.format(this,e)}binaryByteUnits(){return P.getBinaryByteUnit(this)}decimalByteUnits(){return P.getDecimalByteUnit(this)}byteUnits(){return P.getByteUnit(this)}difference(e){return z.difference(this,e)}add(e){return z.add(this,e)}subtract(e){return z.subtract(this,e)}multiply(e){return z.multiply(this,e)}divide(e){return z.divide(this,e)}set(e){return z.set(this,D(e))}value(){return this._value}valueOf(){return this._value}}function D(e){let t=e;return F.isNumbro(e)?t=e._value:"string"==typeof e?t=F.unformat(e):isNaN(e)&&(t=NaN),t}function F(e){return new Z(D(e))}F.version="2.5.0",F.isNumbro=function(e){return e instanceof Z},F.language=$.currentLanguage,F.registerLanguage=$.registerLanguage,F.setLanguage=$.setLanguage,F.languages=$.languages,F.languageData=$.languageData,F.zeroFormat=$.setZeroFormat,F.defaultFormat=$.currentDefaults,F.setDefaults=$.setDefaults,F.defaultCurrencyFormat=$.currentCurrencyDefaultFormat,F.validate=R.validate,F.loadLanguagesInNode=I.loadLanguagesInNode,F.unformat=j.unformat,F.BigNumber=z.BigNumber;var L=F&&F.__esModule&&Object.prototype.hasOwnProperty.call(F,"default")?F.default:F},40362(e,t,r){"use strict";var n=r(56441);function i(){}function a(){}a.resetWarningCache=i,e.exports=function(){function e(e,t,r,i,a,o){if(o!==n){var s=Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw s.name="Invariant Violation",s}}function t(){return e}e.isRequired=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:a,resetWarningCache:i};return r.PropTypes=r,r}},62688(e,t,r){e.exports=r(40362)()},56441(e){"use strict";e.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"},23420(e){function t(){}t.prototype={on:function(e,t,r){var n=this.e||(this.e={});return(n[e]||(n[e]=[])).push({fn:t,ctx:r}),this},once:function(e,t,r){var n=this;function i(){n.off(e,i),t.apply(r,arguments)}return i._=t,this.on(e,i,r)},emit:function(e){for(var t=[].slice.call(arguments,1),r=((this.e||(this.e={}))[e]||[]).slice(),n=0,i=r.length;n<i;n++)r[n].fn.apply(r[n].ctx,t);return this},off:function(e,t){var r=this.e||(this.e={}),n=r[e],i=[];if(n&&t)for(var a=0,o=n.length;a<o;a++)n[a].fn!==t&&n[a].fn._!==t&&i.push(n[a]);return i.length?r[e]=i:delete r[e],this}},e.exports=t,e.exports.TinyEmitter=t},42915(e){"use strict";var t;t=function(){function e(){return!0}function t(){return!1}function r(){}return function n(){var i=[{name:"number",test:function(e){return"number"==typeof e}},{name:"string",test:function(e){return"string"==typeof e}},{name:"boolean",test:function(e){return"boolean"==typeof e}},{name:"Function",test:function(e){return"function"==typeof e}},{name:"Array",test:Array.isArray},{name:"Date",test:function(e){return e instanceof Date}},{name:"RegExp",test:function(e){return e instanceof RegExp}},{name:"Object",test:function(e){return"object"==typeof e&&null!==e&&e.constructor===Object}},{name:"null",test:function(e){return null===e}},{name:"undefined",test:function(e){return void 0===e}}],a={name:"any",test:e},o=[],s=[],l={types:i,conversions:s,ignore:o};function u(e){var t=P(l.types,function(t){return t.name===e});if(t)return t;if("any"===e)return a;var r=P(l.types,function(t){return t.name.toLowerCase()===e.toLowerCase()});throw TypeError('Unknown type "'+e+'"'+(r?'. Did you mean "'+r.name+'"?':""))}function c(e){return e===a?999:l.types.indexOf(e)}function p(e){var t=P(l.types,function(t){return t.test(e)});if(t)return t.name;throw TypeError("Value has unknown type. Value: "+e)}function d(e){return e.map(function(e){var t=e.types.map(y);return(e.restParam?"...":"")+t.join("|")}).join(",")}function f(e){var t=I(e);return!!t&&t.restParam}function h(e){return e.types.some(function(e){return null!=e.conversion})}function m(t){if(!t||0===t.types.length)return e;if(1===t.types.length)return u(t.types[0].name).test;if(2===t.types.length){var r=u(t.types[0].name).test,n=u(t.types[1].name).test;return function(e){return r(e)||n(e)}}var i=t.types.map(function(e){return u(e.name).test});return function(e){for(var t=0;t<i.length;t++)if(i[t](e))return!0;return!1}}function g(e,t){return t<e.params.length?e.params[t]:f(e.params)?I(e.params):null}function v(e,t,r){var n=g(e,t);return(n?r?n.types.filter(b):n.types:[]).map(y)}function y(e){return e.name}function b(e){return null===e.conversion||void 0===e.conversion}function w(e,t){var r=function(e){for(var t={},r=0;r<e.length;r++)t[e[r]]=!0;return Object.keys(t)}(z(e,function(e){return v(e,t,!1)}));return -1!==r.indexOf("any")?["any"]:r}function x(e,t,r){var n,i,a,o=e||"unnamed",s=r;for(a=0;a<t.length;a++){var l=s.filter(function(e){var r=m(g(e,a));return(a<e.params.length||f(e.params))&&r(t[a])});if(0===l.length){if((i=w(s,a)).length>0){var u=p(t[a]);return(n=TypeError("Unexpected type of argument in function "+o+" (expected: "+i.join(" or ")+", actual: "+u+", index: "+a+")")).data={category:"wrongType",fn:o,index:a,actual:u,expected:i},n}}else s=l}var c=s.map(function(e){return f(e.params)?1/0:e.params.length});if(t.length<Math.min.apply(null,c))return(n=TypeError("Too few arguments in function "+o+" (expected: "+(i=w(s,a)).join(" or ")+", index: "+t.length+")")).data={category:"tooFewArgs",fn:o,index:t.length,expected:i},n;var d=Math.max.apply(null,c);return t.length>d?(n=TypeError("Too many arguments in function "+o+" (expected: "+d+", actual: "+t.length+")")).data={category:"tooManyArgs",fn:o,index:t.length,expectedLength:d}:(n=TypeError('Arguments of type "'+t.join(", ")+'" do not match any of the defined signatures of function '+o+".")).data={category:"mismatch",actual:t.map(p)},n}function _(e){for(var t=999,r=0;r<e.types.length;r++)b(e.types[r])&&(t=Math.min(t,e.types[r].typeIndex));return t}function A(e){for(var t=999,r=0;r<e.types.length;r++)b(e.types[r])||(t=Math.min(t,e.types[r].conversionIndex));return t}function M(e,t){var r,n,i=Math.min(e.params.length,t.params.length);if(0!=(n=e.params.some(h)-t.params.some(h)))return n;for(r=0;r<i;r++)if(0!=(n=h(e.params[r])-h(t.params[r])))return n;for(r=0;r<i;r++)if(0!==(n=function(e,t){var r;return 0!=(r=e.restParam-t.restParam)||0!=(r=h(e)-h(t))||0!=(r=_(e)-_(t))?r:A(e)-A(t)}(e.params[r],t.params[r])))return n;return e.params.length-t.params.length}function N(e){var t,r,n,i,a=[],o=[];switch(e.types.forEach(function(e){e.conversion&&(a.push(u(e.conversion.from).test),o.push(e.conversion.convert))}),o.length){case 0:return function(e){return e};case 1:return t=a[0],n=o[0],function(e){return t(e)?n(e):e};case 2:return t=a[0],r=a[1],n=o[0],i=o[1],function(e){return t(e)?n(e):r(e)?i(e):e};default:return function(e){for(var t=0;t<o.length;t++)if(a[t](e))return o[t](e);return e}}}function S(e,t){return function e(r,n,i){if(!(n<r.length))return[i.map(function(e,t){return{types:e,restParam:t===r.length-1&&f(r)}})];var a,o=r[n],s=t?o.types.filter(b):o.types;if(o.restParam){var l=s.filter(b);a=l.length<s.length?[l,s]:[s]}else a=s.map(function(e){return[e]});return z(a,function(t){return e(r,n+1,i.concat([t]))})}(e,0,[])}function k(e,n){if(0===Object.keys(n).length)throw SyntaxError("No signatures provided");var i,a=[];Object.keys(n).map(function(e){var t,r,i;return t=n[e],r=l.conversions,i=[],(""!==e.trim()&&(i=e.split(",").map(C).map(function(e,t,n){var i,a,o,s,l,p,d,f,h=(i=r,a=l=((s=0===e.indexOf("..."))?e.length>3?e.slice(3):"any":e).split("|").map(C).filter(T).filter(O),o={},i.forEach(function(e){-1!==a.indexOf(e.from)||-1===a.indexOf(e.to)||o[e.from]||(o[e.from]=e)}),p=Object.keys(o).map(function(e){return o[e]}),d=l.map(function(e){var t=u(e);return{name:e,typeIndex:c(t),test:t.test,conversion:null,conversionIndex:-1}}),f=p.map(function(e){var t=u(e.from);return{name:e.from,typeIndex:c(t),test:t.test,conversion:e,conversionIndex:r.indexOf(e)}}),{types:d.concat(f),restParam:s});if(h.restParam&&t!==n.length-1)throw SyntaxError('Unexpected rest parameter "'+e+'": only allowed for the last parameter');return h})),i.some(R))?null:{params:i,fn:t}}).filter($).forEach(function(e){var t=P(a,function(t){return function(e,t){for(var r=Math.max(e.params.length,t.params.length),n=0;n<r;n++)if(!function(e,t){for(var r,n=0;n<e.length;n++)if(r=e[n],-1!==t.indexOf(r))return!0;return!1}(v(e,n,!0),v(t,n,!0)))return!1;var i=e.params.length,a=t.params.length,o=f(e.params),s=f(t.params);return o?s?i===a:a>=i:s?i>=a:i===a}(t,e)});if(t)throw TypeError('Conflicting signatures "'+d(t.params)+'" and "'+d(e.params)+'".');a.push(e)});var o=z(a,function(e){return(e?S(e.params,!1):[]).map(function(t){return{params:t,fn:e.fn}})}).filter($);o.sort(M);var s=o[0]&&o[0].params.length<=2&&!f(o[0].params),p=o[1]&&o[1].params.length<=2&&!f(o[1].params),g=o[2]&&o[2].params.length<=2&&!f(o[2].params),y=o[3]&&o[3].params.length<=2&&!f(o[3].params),b=o[4]&&o[4].params.length<=2&&!f(o[4].params),w=o[5]&&o[5].params.length<=2&&!f(o[5].params),x=o.map(function(e){return function(e){var t,r,n;if(f(e)){var i,a=(t=(i=e).slice(0,i.length-1).map(m)).length,o=m(I(e)),s=function(e){for(var t=a;t<e.length;t++)if(!o(e[t]))return!1;return!0};return function(e){for(var r=0;r<t.length;r++)if(!t[r](e[r]))return!1;return s(e)&&e.length>=a+1}}return 0===e.length?function(e){return 0===e.length}:1===e.length?(r=m(e[0]),function(e){return r(e[0])&&1===e.length}):2===e.length?(r=m(e[0]),n=m(e[1]),function(e){return r(e[0])&&n(e[1])&&2===e.length}):(t=e.map(m),function(e){for(var r=0;r<t.length;r++)if(!t[r](e[r]))return!1;return e.length===t.length})}(e.params)}),_=s?m(o[0].params[0]):t,A=p?m(o[1].params[0]):t,k=g?m(o[2].params[0]):t,E=y?m(o[3].params[0]):t,Z=b?m(o[4].params[0]):t,D=w?m(o[5].params[0]):t,F=s?m(o[0].params[1]):t,L=p?m(o[1].params[1]):t,B=g?m(o[2].params[1]):t,q=y?m(o[3].params[1]):t,W=b?m(o[4].params[1]):t,V=w?m(o[5].params[1]):t,U=o.map(function(e){return function(e,t){var r=t;if(e.some(h)){var n=f(e),i=e.map(N);r=function(){for(var e=[],r=n?arguments.length-1:arguments.length,a=0;a<r;a++)e[a]=i[a](arguments[a]);return n&&(e[r]=arguments[r].map(i[r])),t.apply(this,e)}}var a=r;if(f(e)){var o=e.length-1;a=function(){return r.apply(this,j(arguments,0,o).concat([j(arguments,o)]))}}return a}(e.params,e.fn)}),H=s?U[0]:r,Y=p?U[1]:r,G=g?U[2]:r,K=y?U[3]:r,X=b?U[4]:r,Q=w?U[5]:r,J=s?o[0].params.length:-1,ee=p?o[1].params.length:-1,et=g?o[2].params.length:-1,er=y?o[3].params.length:-1,en=b?o[4].params.length:-1,ei=w?o[5].params.length:-1,ea=6*!!(s&&p&&g&&y&&b&&w),eo=o.length,es=function(){for(var t=ea;t<eo;t++)if(x[t](arguments))return U[t].apply(this,arguments);return l.onMismatch(e,arguments,o)},el=function e(t,r){return arguments.length===J&&_(t)&&F(r)?H.apply(e,arguments):arguments.length===ee&&A(t)&&L(r)?Y.apply(e,arguments):arguments.length===et&&k(t)&&B(r)?G.apply(e,arguments):arguments.length===er&&E(t)&&q(r)?K.apply(e,arguments):arguments.length===en&&Z(t)&&W(r)?X.apply(e,arguments):arguments.length===ei&&D(t)&&V(r)?Q.apply(e,arguments):es.apply(e,arguments)};try{Object.defineProperty(el,"name",{value:e})}catch(e){}return i={},o.forEach(function(e){e.params.some(h)||S(e.params,!0).forEach(function(t){i[d(t)]=e.fn})}),el.signatures=i,el}function E(e,t,r){throw x(e,t,r)}function O(e){return -1===l.ignore.indexOf(e)}function C(e){return e.trim()}function T(e){return!!e}function $(e){return null!==e}function R(e){return 0===e.types.length}function I(e){return e[e.length-1]}function j(e,t,r){return Array.prototype.slice.call(e,t,r)}function P(e,t){for(var r=0;r<e.length;r++)if(t(e[r]))return e[r]}function z(e,t){return Array.prototype.concat.apply([],e.map(t))}function Z(e){for(var t="",r=0;r<e.length;r++){var n=e[r];if(("object"==typeof n.signatures||"string"==typeof n.signature)&&""!==n.name){if(""===t)t=n.name;else if(t!==n.name){var i=Error("Function names do not match (expected: "+t+", actual: "+n.name+")");throw i.data={actual:n.name,expected:t},i}}}return t}function D(e){var t,r={};function n(e,n){if(r.hasOwnProperty(e)&&n!==r[e])throw(t=Error('Signature "'+e+'" is defined twice')).data={signature:e},t}for(var i=0;i<e.length;i++){var a=e[i];if("object"==typeof a.signatures)for(var o in a.signatures)a.signatures.hasOwnProperty(o)&&(n(o,a.signatures[o]),r[o]=a.signatures[o]);else if("string"==typeof a.signature)n(a.signature,a),r[a.signature]=a;else throw(t=TypeError("Function is no typed-function (index: "+i+")")).data={index:i},t}return r}return(l=k("typed",{"string, Object":k,Object:function(e){var t=[];for(var r in e)e.hasOwnProperty(r)&&t.push(e[r]);return k(Z(t),e)},"...Function":function(e){return k(Z(e),D(e))},"string, ...Function":function(e,t){return k(e,D(t))}})).create=n,l.types=i,l.conversions=s,l.ignore=o,l.onMismatch=E,l.throwMismatchError=E,l.createError=x,l.convert=function(e,t){var r=p(e);if(t===r)return e;for(var n=0;n<l.conversions.length;n++){var i=l.conversions[n];if(i.from===r&&i.to===t)return i.convert(e)}throw Error("Cannot convert from "+r+" to "+t)},l.find=function(e,t){if(!e.signatures)throw TypeError("Function is no typed-function");if("string"==typeof t){r=t.split(",");for(var r,n=0;n<r.length;n++)r[n]=r[n].trim()}else if(Array.isArray(t))r=t;else throw TypeError("String array or a comma separated string expected");var i=r.join(","),a=e.signatures[i];if(a)return a;throw TypeError("Signature not found (signature: "+(e.name||"unnamed")+"("+r.join(", ")+"))")},l.addType=function(e,t){if(!e||"string"!=typeof e.name||"function"!=typeof e.test)throw TypeError("Object with properties {name: string, test: function} expected");if(!1!==t){for(var r=0;r<l.types.length;r++)if("Object"===l.types[r].name)return void l.types.splice(r,0,e)}l.types.push(e)},l.addConversion=function(e){if(!e||"string"!=typeof e.from||"string"!=typeof e.to||"function"!=typeof e.convert)throw TypeError("Object with properties {from: string, to: string, convert: function} expected");l.conversions.push(e)},l}()},"function"==typeof define&&define.amd?define([],t):e.exports=t()},18615(e,t,r){"use strict";r.d(t,{v:()=>g});var n=r(68102),i=r(32718),a=r(23420),o=r(46797),s=r(1207),l=r(49204);function u(e,t,r,n){if(!(this instanceof u))throw SyntaxError("Constructor must be called with the new operator");this.fn=e,this.count=t,this.min=r,this.max=n,this.message="Wrong number of arguments in function "+e+" ("+t+" provided, "+r+(null!=n?"-"+n:"")+" expected)",this.stack=Error().stack}u.prototype=Error(),u.prototype.constructor=Error,u.prototype.name="ArgumentsError",u.prototype.isArgumentsError=!0;var c={epsilon:1e-12,matrix:"Matrix",number:"number",precision:64,predictable:!1,randomSeed:null},p=["Matrix","Array"],d=["number","BigNumber","Fraction"];function f(e,t,r){var n;void 0!==e[t]&&(n=e[t],-1===r.indexOf(n))&&console.warn('Warning: Unknown value "'+e[t]+'" for configuration option "'+t+'". Available options: '+r.map(e=>JSON.stringify(e)).join(", ")+".")}var h=r(15562),m=r(16086);function g(e,t){var r,v,y=(0,n.A)({},c,t);if("function"!=typeof Object.create)throw Error("ES5 not supported by this JavaScript engine. Please load the es5-shim and es5-sham library for compatibility.");var b=((r={isNumber:o.Et,isComplex:o.Zd,isBigNumber:o.C4,isFraction:o.fU,isUnit:o.vO,isString:o.Kg,isArray:o.cy,isMatrix:o.OA,isCollection:o.P3,isDenseMatrix:o.zR,isSparseMatrix:o.AF,isRange:o._Z,isIndex:o.nw,isBoolean:o.Lm,isResultSet:o.eW,isHelp:o.gS,isFunction:o.Tn,isDate:o.$P,isRegExp:o.gd,isObject:o.Gv,isNull:o.kZ,isUndefined:o.b0,isAccessorNode:o.AS,isArrayNode:o.gO,isAssignmentNode:o.qM,isBlockNode:o.CD,isConditionalNode:o.PO,isConstantNode:o.BA,isFunctionAssignmentNode:o.m2,isFunctionNode:o.Px,isIndexNode:o.$I,isNode:o.Ll,isObjectNode:o.GJ,isOperatorNode:o.$$,isParenthesisNode:o.tv,isRangeNode:o.Ye,isSymbolNode:o.li,isChain:o.o_}).on=(v=new a).on.bind(v),r.off=v.off.bind(v),r.once=v.once.bind(v),r.emit=v.emit.bind(v),r);b.config=function(e,t){function r(r){if(!r)return(0,i.s8)(e,i.o8);var n=(0,i.s8)(e,i.o8);f(r,"matrix",p),f(r,"number",d),(0,i.zw)(e,r);var a=(0,i.s8)(e,i.o8);return t("config",a,n,(0,i.s8)(r,i.o8)),a}return r.MATRIX_OPTIONS=p,r.NUMBER_OPTIONS=d,Object.keys(c).forEach(t=>{Object.defineProperty(r,t,{get:()=>e[t],enumerable:!0,configurable:!0})}),r}(y,b.emit),b.expression={transform:{},mathWithTransform:{config:b.config}};var w={},x=function(e,t,r){function n(e,r){r&&"function"==typeof r.transform?(t.expression.transform[e]=r.transform,c(e)&&(t.expression.mathWithTransform[e]=r.transform)):(delete t.expression.transform[e],c(e)&&(t.expression.mathWithTransform[e]=r))}function a(e){return"function"==typeof e&&"object"==typeof e.signatures}function c(e){return!(0,i.mQ)(d,e)}function p(e){return void 0!==e&&void 0!==e.meta&&!0===e.meta.isTransformFunction}var d={expression:!0,type:!0,docs:!0,error:!0,json:!0,chain:!0};return function(f,h){var m=arguments.length;if(1!==m&&2!==m)throw new u("import",m,1,2);h||(h={});var g={};for(var v in!function e(t,r,n){if(Array.isArray(r))r.forEach(r=>e(t,r));else if("object"==typeof r)for(var a in r)(0,i.mQ)(r,a)&&e(t,r[a],a);else if((0,s.T$)(r)||void 0!==n){var o=(0,s.T$)(r)?p(r)?r.fn+".transform":r.fn:n;if((0,i.mQ)(t,o)&&t[o]!==r&&!h.silent)throw Error('Cannot import "'+o+'" twice');t[o]=r}else if(!h.silent)throw TypeError("Factory, Object, or Array expected")}(g,f),g)if((0,i.mQ)(g,v)){var y,b=g[v];if((0,s.T$)(b))!function(n,o){var u,f,h=arguments.length>2&&void 0!==arguments[2]?arguments[2]:n.fn;if((0,l.gR)(h,"."))throw Error("Factory name should not contain a nested path. Name: "+JSON.stringify(h));var m=p(n)?t.expression.transform:t,g=h in t.expression.transform,v=(0,i.mQ)(m,h)?m[h]:void 0,y=function(){var r={};n.dependencies.map(s.Py).forEach(e=>{if((0,l.gR)(e,"."))throw Error("Factory dependency should not contain a nested path. Name: "+JSON.stringify(e));"math"===e?r.math=t:"mathWithTransform"===e?r.mathWithTransform=t.expression.mathWithTransform:"classes"===e?r.classes=t:r[e]=t[e]});var i=n(r);if(i&&"function"==typeof i.transform)throw Error('Transforms cannot be attached to factory functions. Please create a separate function for it with exports.path="expression.transform"');if(void 0===v||o.override)return i;if(a(v)&&a(i))return e(v,i);if(o.silent)return v;throw Error('Cannot import "'+h+'": already exists')};n.meta&&!1===n.meta.lazy?m[h]=y():(0,i.RZ)(m,h,y),v&&g?(u=h,delete t.expression.transform[u],c(u)?t.expression.mathWithTransform[u]=t[u]:delete t.expression.mathWithTransform[u]):!p(n)&&(-1!==(f=n).fn.indexOf(".")||(0,i.mQ)(d,f.fn)||f.meta&&f.meta.isClass)||(0,i.RZ)(t.expression.mathWithTransform,h,()=>m[h]),r[h]=n,t.emit("import",h,y)}(b,h);else{if("function"==typeof(y=b)||"number"==typeof y||"string"==typeof y||"boolean"==typeof y||null===y||(0,o.vO)(y)||(0,o.Zd)(y)||(0,o.C4)(y)||(0,o.fU)(y)||(0,o.OA)(y)||Array.isArray(y))!function(i,o,s){var l;if(s.wrap&&"function"==typeof o&&(o=function(e){var r=function(){for(var r=[],n=0,i=arguments.length;n<i;n++){var a=arguments[n];r[n]=a&&a.valueOf()}return e.apply(t,r)};return e.transform&&(r.transform=e.transform),r}(o)),"function"==typeof(l=o)&&"string"==typeof l.signature&&(o=e(i,{[o.signature]:o})),a(t[i])&&a(o)){o=s.override?e(i,o.signatures):e(t[i],o),t[i]=o,delete r[i],n(i,o),t.emit("import",i,function(){return o});return}if(void 0===t[i]||s.override){t[i]=o,delete r[i],n(i,o),t.emit("import",i,function(){return o});return}if(!s.silent)throw Error('Cannot import "'+i+'": already exists')}(v,b,h);else if(!h.silent)throw TypeError("Factory, Object, or Array expected")}}}}(function(){for(var e=arguments.length,t=Array(e),r=0;r<e;r++)t[r]=arguments[r];return b.typed.apply(b.typed,t)},b,w);return b.import=x,b.on("config",()=>{(0,i.zu)(w).forEach(e=>{e&&e.meta&&e.meta.recreateOnConfigChange&&x(e,{override:!0})})}),b.create=g.bind(null,e),b.factory=s.P9,b.import((0,i.zu)((0,i.rU)(e))),b.ArgumentsError=u,b.DimensionError=h.h,b.IndexError=m.d,b}},95343(e,t,r){"use strict";r.d(t,{P:()=>ej});var n,i,a="0123456789abcdef",o="2.3025850929940456840179914546843642076011014886287729760333279009675726096773524802359972050895982983419677840422862486334095254650828067566662873690987816894829072083255546808437998948262331985283935053089653777326288461633662222876982198867465436674744042432743651550489343149393914796194044002221051017141748003688084012647080685567743216228355220114804663715659121373450747856947683463616792101806445070648000277502684916746550586856935673420670581136429224554405758925724208241314695689016758940256776311356919292033376587141660230105703089634572075440370847469940168269282808481184289314848524948644871927809676271275775397027668605952496716674183485704422507197965004714951050492214776567636938662976979522110718264549734772662425709429322582798502585509785265383207606726317164309505995087807523710333101197857547331541421808427543863591778117054309827482385045648019095610299291824318237525357709750539565187697510374970888692180205189339507238539205144634197265287286965110862571492198849978748873771345686209167058",s="3.1415926535897932384626433832795028841971693993751058209749445923078164062862089986280348253421170679821480865132823066470938446095505822317253594081284811174502841027019385211055596446229489549303819644288109756659334461284756482337867831652712019091456485669234603486104543266482133936072602491412737245870066063155881748815209209628292540917153643678925903600113305305488204665213841469519415116094330572703657595919530921861173819326117931051185480744623799627495673518857527248912279381830119491298336733624406566430860213949463952247371907021798609437027705392171762931767523846748184676694051320005681271452635608277857713427577896091736371787214684409012249534301465495853710507922796892589235420199561121290219608640344181598136297747713099605187072113499999983729780499510597317328160963185950244594553469083026425223082533446850352619311881710100031378387528865875332083814206171776691473035982534904287554687311595628638823537875937519577818577805321712268066130019278766111959092164201989380952572010654858632789",l={precision:20,rounding:4,modulo:1,toExpNeg:-7,toExpPos:21,minE:-9e15,maxE:9e15,crypto:!1},u=!0,c="[DecimalError] ",p=c+"Invalid argument: ",d=c+"Precision limit exceeded",f=c+"crypto unavailable",h="[object Decimal]",m=Math.floor,g=Math.pow,v=/^0b([01]+(\.[01]*)?|\.[01]+)(p[+-]?\d+)?$/i,y=/^0x([0-9a-f]+(\.[0-9a-f]*)?|\.[0-9a-f]+)(p[+-]?\d+)?$/i,b=/^0o([0-7]+(\.[0-7]*)?|\.[0-7]+)(p[+-]?\d+)?$/i,w=/^(\d+(\.\d*)?|\.\d+)(e[+-]?\d+)?$/i,x=o.length-1,_=s.length-1,A={toStringTag:h};function M(e){var t,r,n,i=e.length-1,a="",o=e[0];if(i>0){for(a+=o,t=1;t<i;t++)(r=7-(n=e[t]+"").length)&&(a+=j(r)),a+=n;(r=7-(n=(o=e[t])+"").length)&&(a+=j(r))}else if(0===o)return"0";for(;o%10==0;)o/=10;return a+o}function N(e,t,r){if(e!==~~e||e<t||e>r)throw Error(p+e)}function S(e,t,r,n){var i,a,o,s;for(a=e[0];a>=10;a/=10)--t;return--t<0?(t+=7,i=0):(i=Math.ceil((t+1)/7),t%=7),a=g(10,7-t),s=e[i]%a|0,null==n?t<3?(0==t?s=s/100|0:1==t&&(s=s/10|0),o=r<4&&99999==s||r>3&&49999==s||5e4==s||0==s):o=(r<4&&s+1==a||r>3&&s+1==a/2)&&(e[i+1]/a/100|0)==g(10,t-2)-1||(s==a/2||0==s)&&(e[i+1]/a/100|0)==0:t<4?(0==t?s=s/1e3|0:1==t?s=s/100|0:2==t&&(s=s/10|0),o=(n||r<4)&&9999==s||!n&&r>3&&4999==s):o=((n||r<4)&&s+1==a||!n&&r>3&&s+1==a/2)&&(e[i+1]/a/1e3|0)==g(10,t-3)-1,o}function k(e,t,r){for(var n,i,o=[0],s=0,l=e.length;s<l;){for(i=o.length;i--;)o[i]*=t;for(o[0]+=a.indexOf(e.charAt(s++)),n=0;n<o.length;n++)o[n]>r-1&&(void 0===o[n+1]&&(o[n+1]=0),o[n+1]+=o[n]/r|0,o[n]%=r)}return o.reverse()}A.absoluteValue=A.abs=function(){var e=new this.constructor(this);return e.s<0&&(e.s=1),O(e)},A.ceil=function(){return O(new this.constructor(this),this.e+1,2)},A.clampedTo=A.clamp=function(e,t){var r=this.constructor;if(e=new r(e),t=new r(t),!e.s||!t.s)return new r(NaN);if(e.gt(t))throw Error(p+t);return 0>this.cmp(e)?e:this.cmp(t)>0?t:new r(this)},A.comparedTo=A.cmp=function(e){var t,r,n,i,a=this.d,o=(e=new this.constructor(e)).d,s=this.s,l=e.s;if(!a||!o)return s&&l?s!==l?s:a===o?0:!a^s<0?1:-1:NaN;if(!a[0]||!o[0])return a[0]?s:o[0]?-l:0;if(s!==l)return s;if(this.e!==e.e)return this.e>e.e^s<0?1:-1;for(t=0,r=(n=a.length)<(i=o.length)?n:i;t<r;++t)if(a[t]!==o[t])return a[t]>o[t]^s<0?1:-1;return n===i?0:n>i^s<0?1:-1},A.cosine=A.cos=function(){var e,t,r=this,n=r.constructor;return r.d?r.d[0]?(e=n.precision,t=n.rounding,n.precision=e+Math.max(r.e,r.sd())+7,n.rounding=1,r=function(e,t){var r,n,i;if(t.isZero())return t;(n=t.d.length)<32?i=(1/W(4,r=Math.ceil(n/3))).toString():(r=16,i="2.3283064365386962890625e-10"),e.precision+=r,t=q(e,1,t.times(i),new e(1));for(var a=r;a--;){var o=t.times(t);t=o.times(o).minus(o).times(8).plus(1)}return e.precision-=r,t}(n,V(n,r)),n.precision=e,n.rounding=t,O(2==i||3==i?r.neg():r,e,t,!0)):new n(1):new n(NaN)},A.cubeRoot=A.cbrt=function(){var e,t,r,n,i,a,o,s,l,c,p=this.constructor;if(!this.isFinite()||this.isZero())return new p(this);for(u=!1,(a=this.s*g(this.s*this,1/3))&&Math.abs(a)!=1/0?n=new p(a.toString()):(r=M(this.d),(a=((e=this.e)-r.length+1)%3)&&(r+=1==a||-2==a?"0":"00"),a=g(r,1/3),e=m((e+1)/3)-(e%3==(e<0?-1:2)),(n=new p(r=a==1/0?"5e"+e:(r=a.toExponential()).slice(0,r.indexOf("e")+1)+e)).s=this.s),o=(e=p.precision)+3;;)if(n=E((c=(l=(s=n).times(s).times(s)).plus(this)).plus(this).times(s),c.plus(l),o+2,1),M(s.d).slice(0,o)===(r=M(n.d)).slice(0,o)){if("9999"!=(r=r.slice(o-3,o+1))&&(i||"4999"!=r)){+r&&(+r.slice(1)||"5"!=r.charAt(0))||(O(n,e+1,1),t=!n.times(n).times(n).eq(this));break}if(!i&&(O(s,e+1,0),s.times(s).times(s).eq(this))){n=s;break}o+=4,i=1}return u=!0,O(n,e,p.rounding,t)},A.decimalPlaces=A.dp=function(){var e,t=this.d,r=NaN;if(t){if(r=((e=t.length-1)-m(this.e/7))*7,e=t[e])for(;e%10==0;e/=10)r--;r<0&&(r=0)}return r},A.dividedBy=A.div=function(e){return E(this,new this.constructor(e))},A.dividedToIntegerBy=A.divToInt=function(e){var t=this.constructor;return O(E(this,new t(e),0,1,1),t.precision,t.rounding)},A.equals=A.eq=function(e){return 0===this.cmp(e)},A.floor=function(){return O(new this.constructor(this),this.e+1,3)},A.greaterThan=A.gt=function(e){return this.cmp(e)>0},A.greaterThanOrEqualTo=A.gte=function(e){var t=this.cmp(e);return 1==t||0===t},A.hyperbolicCosine=A.cosh=function(){var e,t,r,n,i,a=this,o=a.constructor,s=new o(1);if(!a.isFinite())return new o(a.s?1/0:NaN);if(a.isZero())return s;r=o.precision,n=o.rounding,o.precision=r+Math.max(a.e,a.sd())+4,o.rounding=1,(i=a.d.length)<32?t=(1/W(4,e=Math.ceil(i/3))).toString():(e=16,t="2.3283064365386962890625e-10"),a=q(o,1,a.times(t),new o(1),!0);for(var l,u=e,c=new o(8);u--;)l=a.times(a),a=s.minus(l.times(c.minus(l.times(c))));return O(a,o.precision=r,o.rounding=n,!0)},A.hyperbolicSine=A.sinh=function(){var e,t,r,n,i=this,a=i.constructor;if(!i.isFinite()||i.isZero())return new a(i);if(t=a.precision,r=a.rounding,a.precision=t+Math.max(i.e,i.sd())+4,a.rounding=1,(n=i.d.length)<3)i=q(a,2,i,i,!0);else{e=(e=1.4*Math.sqrt(n))>16?16:0|e,i=q(a,2,i=i.times(1/W(5,e)),i,!0);for(var o,s=new a(5),l=new a(16),u=new a(20);e--;)o=i.times(i),i=i.times(s.plus(o.times(l.times(o).plus(u))))}return a.precision=t,a.rounding=r,O(i,t,r,!0)},A.hyperbolicTangent=A.tanh=function(){var e,t,r=this.constructor;return this.isFinite()?this.isZero()?new r(this):(e=r.precision,t=r.rounding,r.precision=e+7,r.rounding=1,E(this.sinh(),this.cosh(),r.precision=e,r.rounding=t)):new r(this.s)},A.inverseCosine=A.acos=function(){var e=this,t=e.constructor,r=e.abs().cmp(1),n=t.precision,i=t.rounding;return -1!==r?0===r?e.isNeg()?R(t,n,i):new t(0):new t(NaN):e.isZero()?R(t,n+4,i).times(.5):(t.precision=n+6,t.rounding=1,e=new t(1).minus(e).div(e.plus(1)).sqrt().atan(),t.precision=n,t.rounding=i,e.times(2))},A.inverseHyperbolicCosine=A.acosh=function(){var e,t,r=this,n=r.constructor;return r.lte(1)?new n(r.eq(1)?0:NaN):r.isFinite()?(e=n.precision,t=n.rounding,n.precision=e+Math.max(Math.abs(r.e),r.sd())+4,n.rounding=1,u=!1,r=r.times(r).minus(1).sqrt().plus(r),u=!0,n.precision=e,n.rounding=t,r.ln()):new n(r)},A.inverseHyperbolicSine=A.asinh=function(){var e,t,r=this,n=r.constructor;return!r.isFinite()||r.isZero()?new n(r):(e=n.precision,t=n.rounding,n.precision=e+2*Math.max(Math.abs(r.e),r.sd())+6,n.rounding=1,u=!1,r=r.times(r).plus(1).sqrt().plus(r),u=!0,n.precision=e,n.rounding=t,r.ln())},A.inverseHyperbolicTangent=A.atanh=function(){var e,t,r,n,i=this,a=i.constructor;return i.isFinite()?i.e>=0?new a(i.abs().eq(1)?i.s/0:i.isZero()?i:NaN):(e=a.precision,t=a.rounding,Math.max(n=i.sd(),e)<-(2*i.e)-1)?O(new a(i),e,t,!0):(a.precision=r=n-i.e,i=E(i.plus(1),new a(1).minus(i),r+e,1),a.precision=e+4,a.rounding=1,i=i.ln(),a.precision=e,a.rounding=t,i.times(.5)):new a(NaN)},A.inverseSine=A.asin=function(){var e,t,r,n,i=this,a=i.constructor;return i.isZero()?new a(i):(t=i.abs().cmp(1),r=a.precision,n=a.rounding,-1!==t)?0===t?((e=R(a,r+4,n).times(.5)).s=i.s,e):new a(NaN):(a.precision=r+6,a.rounding=1,i=i.div(new a(1).minus(i.times(i)).sqrt().plus(1)).atan(),a.precision=r,a.rounding=n,i.times(2))},A.inverseTangent=A.atan=function(){var e,t,r,n,i,a,o,s,l,c=this,p=c.constructor,d=p.precision,f=p.rounding;if(c.isFinite()){if(c.isZero())return new p(c);else if(c.abs().eq(1)&&d+4<=_)return(o=R(p,d+4,f).times(.25)).s=c.s,o}else{if(!c.s)return new p(NaN);if(d+4<=_)return(o=R(p,d+4,f).times(.5)).s=c.s,o}for(p.precision=s=d+10,p.rounding=1,e=r=Math.min(28,s/7+2|0);e;--e)c=c.div(c.times(c).plus(1).sqrt().plus(1));for(u=!1,t=Math.ceil(s/7),n=1,l=c.times(c),o=new p(c),i=c;-1!==e;)if(i=i.times(l),a=o.minus(i.div(n+=2)),i=i.times(l),void 0!==(o=a.plus(i.div(n+=2))).d[t])for(e=t;o.d[e]===a.d[e]&&e--;);return r&&(o=o.times(2<<r-1)),u=!0,O(o,p.precision=d,p.rounding=f,!0)},A.isFinite=function(){return!!this.d},A.isInteger=A.isInt=function(){return!!this.d&&m(this.e/7)>this.d.length-2},A.isNaN=function(){return!this.s},A.isNegative=A.isNeg=function(){return this.s<0},A.isPositive=A.isPos=function(){return this.s>0},A.isZero=function(){return!!this.d&&0===this.d[0]},A.lessThan=A.lt=function(e){return 0>this.cmp(e)},A.lessThanOrEqualTo=A.lte=function(e){return 1>this.cmp(e)},A.logarithm=A.log=function(e){var t,r,n,i,a,o,s,l=this.constructor,c=l.precision,p=l.rounding;if(null==e)e=new l(10),t=!0;else{if(r=(e=new l(e)).d,e.s<0||!r||!r[0]||e.eq(1))return new l(NaN);t=e.eq(10)}if(r=this.d,this.s<0||!r||!r[0]||this.eq(1))return new l(r&&!r[0]?-1/0:1!=this.s?NaN:r?0:1/0);if(t)if(r.length>1)i=!0;else{for(n=r[0];n%10==0;)n/=10;i=1!==n}if(u=!1,S((s=E(a=F(this,o=c+5),t?$(l,o+10):F(e,o),o,1)).d,n=c,p))do if(o+=10,s=E(a=F(this,o),t?$(l,o+10):F(e,o),o,1),!i){+M(s.d).slice(n+1,n+15)+1==1e14&&(s=O(s,c+1,0));break}while(S(s.d,n+=10,p));return u=!0,O(s,c,p)},A.minus=A.sub=function(e){var t,r,n,i,a,o,s,l,c,p,d,f,h=this.constructor;if(e=new h(e),!this.d||!e.d)return this.s&&e.s?this.d?e.s=-e.s:e=new h(e.d||this.s!==e.s?this:NaN):e=new h(NaN),e;if(this.s!=e.s)return e.s=-e.s,this.plus(e);if(c=this.d,f=e.d,s=h.precision,l=h.rounding,!c[0]||!f[0]){if(f[0])e.s=-e.s;else{if(!c[0])return new h(3===l?-0:0);e=new h(this)}return u?O(e,s,l):e}if(r=m(e.e/7),p=m(this.e/7),c=c.slice(),a=p-r){for((d=a<0)?(t=c,a=-a,o=f.length):(t=f,r=p,o=c.length),a>(n=Math.max(Math.ceil(s/7),o)+2)&&(a=n,t.length=1),t.reverse(),n=a;n--;)t.push(0);t.reverse()}else{for((d=(n=c.length)<(o=f.length))&&(o=n),n=0;n<o;n++)if(c[n]!=f[n]){d=c[n]<f[n];break}a=0}for(d&&(t=c,c=f,f=t,e.s=-e.s),o=c.length,n=f.length-o;n>0;--n)c[o++]=0;for(n=f.length;n>a;){if(c[--n]<f[n]){for(i=n;i&&0===c[--i];)c[i]=1e7-1;--c[i],c[n]+=1e7}c[n]-=f[n]}for(;0===c[--o];)c.pop();for(;0===c[0];c.shift())--r;return c[0]?(e.d=c,e.e=T(c,r),u?O(e,s,l):e):new h(3===l?-0:0)},A.modulo=A.mod=function(e){var t,r=this.constructor;return(e=new r(e),this.d&&e.s&&(!e.d||e.d[0]))?e.d&&(!this.d||this.d[0])?(u=!1,9==r.modulo?(t=E(this,e.abs(),0,3,1),t.s*=e.s):t=E(this,e,0,r.modulo,1),t=t.times(e),u=!0,this.minus(t)):O(new r(this),r.precision,r.rounding):new r(NaN)},A.naturalExponential=A.exp=function(){return D(this)},A.naturalLogarithm=A.ln=function(){return F(this)},A.negated=A.neg=function(){var e=new this.constructor(this);return e.s=-e.s,O(e)},A.plus=A.add=function(e){var t,r,n,i,a,o,s,l,c,p,d=this.constructor;if(e=new d(e),!this.d||!e.d)return this.s&&e.s?this.d||(e=new d(e.d||this.s===e.s?this:NaN)):e=new d(NaN),e;if(this.s!=e.s)return e.s=-e.s,this.minus(e);if(c=this.d,p=e.d,s=d.precision,l=d.rounding,!c[0]||!p[0])return p[0]||(e=new d(this)),u?O(e,s,l):e;if(a=m(this.e/7),n=m(e.e/7),c=c.slice(),i=a-n){for(i<0?(r=c,i=-i,o=p.length):(r=p,n=a,o=c.length),i>(o=(a=Math.ceil(s/7))>o?a+1:o+1)&&(i=o,r.length=1),r.reverse();i--;)r.push(0);r.reverse()}for((o=c.length)-(i=p.length)<0&&(i=o,r=p,p=c,c=r),t=0;i;)t=(c[--i]=c[i]+p[i]+t)/1e7|0,c[i]%=1e7;for(t&&(c.unshift(t),++n),o=c.length;0==c[--o];)c.pop();return e.d=c,e.e=T(c,n),u?O(e,s,l):e},A.precision=A.sd=function(e){var t;if(void 0!==e&&!!e!==e&&1!==e&&0!==e)throw Error(p+e);return this.d?(t=I(this.d),e&&this.e+1>t&&(t=this.e+1)):t=NaN,t},A.round=function(){var e=this.constructor;return O(new e(this),this.e+1,e.rounding)},A.sine=A.sin=function(){var e,t,r=this,n=r.constructor;return r.isFinite()?r.isZero()?new n(r):(e=n.precision,t=n.rounding,n.precision=e+Math.max(r.e,r.sd())+7,n.rounding=1,r=function(e,t){var r,n=t.d.length;if(n<3)return t.isZero()?t:q(e,2,t,t);r=(r=1.4*Math.sqrt(n))>16?16:0|r,t=q(e,2,t=t.times(1/W(5,r)),t);for(var i,a=new e(5),o=new e(16),s=new e(20);r--;)i=t.times(t),t=t.times(a.plus(i.times(o.times(i).minus(s))));return t}(n,V(n,r)),n.precision=e,n.rounding=t,O(i>2?r.neg():r,e,t,!0)):new n(NaN)},A.squareRoot=A.sqrt=function(){var e,t,r,n,i,a,o=this.d,s=this.e,l=this.s,c=this.constructor;if(1!==l||!o||!o[0])return new c(!l||l<0&&(!o||o[0])?NaN:o?this:1/0);for(u=!1,0==(l=Math.sqrt(+this))||l==1/0?(((t=M(o)).length+s)%2==0&&(t+="0"),l=Math.sqrt(t),s=m((s+1)/2)-(s<0||s%2),n=new c(t=l==1/0?"5e"+s:(t=l.toExponential()).slice(0,t.indexOf("e")+1)+s)):n=new c(l.toString()),r=(s=c.precision)+3;;)if(n=(a=n).plus(E(this,a,r+2,1)).times(.5),M(a.d).slice(0,r)===(t=M(n.d)).slice(0,r)){if("9999"!=(t=t.slice(r-3,r+1))&&(i||"4999"!=t)){+t&&(+t.slice(1)||"5"!=t.charAt(0))||(O(n,s+1,1),e=!n.times(n).eq(this));break}if(!i&&(O(a,s+1,0),a.times(a).eq(this))){n=a;break}r+=4,i=1}return u=!0,O(n,s,c.rounding,e)},A.tangent=A.tan=function(){var e,t,r=this,n=r.constructor;return r.isFinite()?r.isZero()?new n(r):(e=n.precision,t=n.rounding,n.precision=e+10,n.rounding=1,(r=r.sin()).s=1,r=E(r,new n(1).minus(r.times(r)).sqrt(),e+10,0),n.precision=e,n.rounding=t,O(2==i||4==i?r.neg():r,e,t,!0)):new n(NaN)},A.times=A.mul=function(e){var t,r,n,i,a,o,s,l,c,p=this.constructor,d=this.d,f=(e=new p(e)).d;if(e.s*=this.s,!d||!d[0]||!f||!f[0])return new p(!e.s||d&&!d[0]&&!f||f&&!f[0]&&!d?NaN:!d||!f?e.s/0:0*e.s);for(r=m(this.e/7)+m(e.e/7),(l=d.length)<(c=f.length)&&(a=d,d=f,f=a,o=l,l=c,c=o),a=[],n=o=l+c;n--;)a.push(0);for(n=c;--n>=0;){for(t=0,i=l+n;i>n;)s=a[i]+f[n]*d[i-n-1]+t,a[i--]=s%1e7|0,t=s/1e7|0;a[i]=(a[i]+t)%1e7|0}for(;!a[--o];)a.pop();return t?++r:a.shift(),e.d=a,e.e=T(a,r),u?O(e,p.precision,p.rounding):e},A.toBinary=function(e,t){return U(this,2,e,t)},A.toDecimalPlaces=A.toDP=function(e,t){var r=this,n=r.constructor;return(r=new n(r),void 0===e)?r:(N(e,0,1e9),void 0===t?t=n.rounding:N(t,0,8),O(r,e+r.e+1,t))},A.toExponential=function(e,t){var r,n=this,i=n.constructor;return void 0===e?r=C(n,!0):(N(e,0,1e9),void 0===t?t=i.rounding:N(t,0,8),r=C(n=O(new i(n),e+1,t),!0,e+1)),n.isNeg()&&!n.isZero()?"-"+r:r},A.toFixed=function(e,t){var r,n,i=this.constructor;return void 0===e?r=C(this):(N(e,0,1e9),void 0===t?t=i.rounding:N(t,0,8),r=C(n=O(new i(this),e+this.e+1,t),!1,e+n.e+1)),this.isNeg()&&!this.isZero()?"-"+r:r},A.toFraction=function(e){var t,r,n,i,a,o,s,l,c,d,f,h,m=this.d,v=this.constructor;if(!m)return new v(this);if(c=r=new v(1),n=l=new v(0),o=(a=(t=new v(n)).e=I(m)-this.e-1)%7,t.d[0]=g(10,o<0?7+o:o),null==e)e=a>0?t:c;else{if(!(s=new v(e)).isInt()||s.lt(c))throw Error(p+s);e=s.gt(t)?a>0?t:c:s}for(u=!1,s=new v(M(m)),d=v.precision,v.precision=a=7*m.length*2;f=E(s,t,0,1,1),1!=(i=r.plus(f.times(n))).cmp(e);)r=n,n=i,i=c,c=l.plus(f.times(i)),l=i,i=t,t=s.minus(f.times(i)),s=i;return i=E(e.minus(r),n,0,1,1),l=l.plus(i.times(c)),r=r.plus(i.times(n)),l.s=c.s=this.s,h=1>E(c,n,a,1).minus(this).abs().cmp(E(l,r,a,1).minus(this).abs())?[c,n]:[l,r],v.precision=d,u=!0,h},A.toHexadecimal=A.toHex=function(e,t){return U(this,16,e,t)},A.toNearest=function(e,t){var r=this,n=r.constructor;if(r=new n(r),null==e){if(!r.d)return r;e=new n(1),t=n.rounding}else{if(e=new n(e),void 0===t?t=n.rounding:N(t,0,8),!r.d)return e.s?r:e;if(!e.d)return e.s&&(e.s=r.s),e}return e.d[0]?(u=!1,r=E(r,e,0,t,1).times(e),u=!0,O(r)):(e.s=r.s,r=e),r},A.toNumber=function(){return+this},A.toOctal=function(e,t){return U(this,8,e,t)},A.toPower=A.pow=function(e){var t,r,n,i,a,o,s=this,l=s.constructor,c=+(e=new l(e));if(!s.d||!e.d||!s.d[0]||!e.d[0])return new l(g(+s,c));if((s=new l(s)).eq(1))return s;if(n=l.precision,a=l.rounding,e.eq(1))return O(s,n,a);if((t=m(e.e/7))>=e.d.length-1&&(r=c<0?-c:c)<=0x1fffffffffffff)return i=P(l,s,r,n),e.s<0?new l(1).div(i):O(i,n,a);if((o=s.s)<0){if(t<e.d.length-1)return new l(NaN);if((1&e.d[t])==0&&(o=1),0==s.e&&1==s.d[0]&&1==s.d.length)return s.s=o,s}return(t=0!=(r=g(+s,c))&&isFinite(r)?new l(r+"").e:m(c*(Math.log("0."+M(s.d))/Math.LN10+s.e+1)))>l.maxE+1||t<l.minE-1?new l(t>0?o/0:0):(u=!1,l.rounding=s.s=1,r=Math.min(12,(t+"").length),(i=D(e.times(F(s,n+r)),n)).d&&S((i=O(i,n+5,1)).d,n,a)&&(t=n+10,+M((i=O(D(e.times(F(s,t+r)),t),t+5,1)).d).slice(n+1,n+15)+1==1e14&&(i=O(i,n+1,0))),i.s=o,u=!0,l.rounding=a,O(i,n,a))},A.toPrecision=function(e,t){var r,n=this,i=n.constructor;return void 0===e?r=C(n,n.e<=i.toExpNeg||n.e>=i.toExpPos):(N(e,1,1e9),void 0===t?t=i.rounding:N(t,0,8),r=C(n=O(new i(n),e,t),e<=n.e||n.e<=i.toExpNeg,e)),n.isNeg()&&!n.isZero()?"-"+r:r},A.toSignificantDigits=A.toSD=function(e,t){var r=this.constructor;return void 0===e?(e=r.precision,t=r.rounding):(N(e,1,1e9),void 0===t?t=r.rounding:N(t,0,8)),O(new r(this),e,t)},A.toString=function(){var e=this.constructor,t=C(this,this.e<=e.toExpNeg||this.e>=e.toExpPos);return this.isNeg()&&!this.isZero()?"-"+t:t},A.truncated=A.trunc=function(){return O(new this.constructor(this),this.e+1,1)},A.valueOf=A.toJSON=function(){var e=this.constructor,t=C(this,this.e<=e.toExpNeg||this.e>=e.toExpPos);return this.isNeg()?"-"+t:t};var E=function(){function e(e,t,r){var n,i=0,a=e.length;for(e=e.slice();a--;)n=e[a]*t+i,e[a]=n%r|0,i=n/r|0;return i&&e.unshift(i),e}function t(e,t,r,n){var i,a;if(r!=n)a=r>n?1:-1;else for(i=a=0;i<r;i++)if(e[i]!=t[i]){a=e[i]>t[i]?1:-1;break}return a}function r(e,t,r,n){for(var i=0;r--;)e[r]-=i,i=+(e[r]<t[r]),e[r]=i*n+e[r]-t[r];for(;!e[0]&&e.length>1;)e.shift()}return function(i,a,o,s,l,u){var c,p,d,f,h,g,v,y,b,w,x,_,A,M,N,S,k,E,C,T,$=i.constructor,R=i.s==a.s?1:-1,I=i.d,j=a.d;if(!I||!I[0]||!j||!j[0])return new $(!i.s||!a.s||(I?j&&I[0]==j[0]:!j)?NaN:I&&0==I[0]||!j?0*R:R/0);for(u?(h=1,p=i.e-a.e):(u=1e7,h=7,p=m(i.e/h)-m(a.e/h)),C=j.length,k=I.length,w=(b=new $(R)).d=[],d=0;j[d]==(I[d]||0);d++);if(j[d]>(I[d]||0)&&p--,null==o?(M=o=$.precision,s=$.rounding):M=l?o+(i.e-a.e)+1:o,M<0)w.push(1),g=!0;else{if(M=M/h+2|0,d=0,1==C){for(f=0,j=j[0],M++;(d<k||f)&&M--;d++)N=f*u+(I[d]||0),w[d]=N/j|0,f=N%j|0;g=f||d<k}else{for((f=u/(j[0]+1)|0)>1&&(j=e(j,f,u),I=e(I,f,u),C=j.length,k=I.length),S=C,_=(x=I.slice(0,C)).length;_<C;)x[_++]=0;(T=j.slice()).unshift(0),E=j[0],j[1]>=u/2&&++E;do f=0,(c=t(j,x,C,_))<0?(A=x[0],C!=_&&(A=A*u+(x[1]||0)),(f=A/E|0)>1?(f>=u&&(f=u-1),y=(v=e(j,f,u)).length,_=x.length,1==(c=t(v,x,y,_))&&(f--,r(v,C<y?T:j,y,u))):(0==f&&(c=f=1),v=j.slice()),(y=v.length)<_&&v.unshift(0),r(x,v,_,u),-1==c&&(_=x.length,(c=t(j,x,C,_))<1&&(f++,r(x,C<_?T:j,_,u))),_=x.length):0===c&&(f++,x=[0]),w[d++]=f,c&&x[0]?x[_++]=I[S]||0:(x=[I[S]],_=1);while((S++<k||void 0!==x[0])&&M--);g=void 0!==x[0]}w[0]||w.shift()}if(1==h)b.e=p,n=g;else{for(d=1,f=w[0];f>=10;f/=10)d++;b.e=d+p*h-1,O(b,l?o+b.e+1:o,s,g)}return b}}();function O(e,t,r,n){var i,a,o,s,l,c,p,d,f,h=e.constructor;e:if(null!=t){if(!(d=e.d))return e;for(i=1,s=d[0];s>=10;s/=10)i++;if((a=t-i)<0)a+=7,o=t,l=(p=d[f=0])/g(10,i-o-1)%10|0;else if((f=Math.ceil((a+1)/7))>=(s=d.length))if(n){for(;s++<=f;)d.push(0);p=l=0,i=1,a%=7,o=a-7+1}else break e;else{for(i=1,p=s=d[f];s>=10;s/=10)i++;a%=7,l=(o=a-7+i)<0?0:p/g(10,i-o-1)%10|0}if(n=n||t<0||void 0!==d[f+1]||(o<0?p:p%g(10,i-o-1)),c=r<4?(l||n)&&(0==r||r==(e.s<0?3:2)):l>5||5==l&&(4==r||n||6==r&&(a>0?o>0?p/g(10,i-o):0:d[f-1])%10&1||r==(e.s<0?8:7)),t<1||!d[0])return d.length=0,c?(t-=e.e+1,d[0]=g(10,(7-t%7)%7),e.e=-t||0):d[0]=e.e=0,e;if(0==a?(d.length=f,s=1,f--):(d.length=f+1,s=g(10,7-a),d[f]=o>0?(p/g(10,i-o)%g(10,o)|0)*s:0),c)for(;;)if(0==f){for(a=1,o=d[0];o>=10;o/=10)a++;for(o=d[0]+=s,s=1;o>=10;o/=10)s++;a!=s&&(e.e++,1e7==d[0]&&(d[0]=1));break}else{if(d[f]+=s,1e7!=d[f])break;d[f--]=0,s=1}for(a=d.length;0===d[--a];)d.pop()}return u&&(e.e>h.maxE?(e.d=null,e.e=NaN):e.e<h.minE&&(e.e=0,e.d=[0])),e}function C(e,t,r){if(!e.isFinite())return L(e);var n,i=e.e,a=M(e.d),o=a.length;return t?(r&&(n=r-o)>0?a=a.charAt(0)+"."+a.slice(1)+j(n):o>1&&(a=a.charAt(0)+"."+a.slice(1)),a=a+(e.e<0?"e":"e+")+e.e):i<0?(a="0."+j(-i-1)+a,r&&(n=r-o)>0&&(a+=j(n))):i>=o?(a+=j(i+1-o),r&&(n=r-i-1)>0&&(a=a+"."+j(n))):((n=i+1)<o&&(a=a.slice(0,n)+"."+a.slice(n)),r&&(n=r-o)>0&&(i+1===o&&(a+="."),a+=j(n))),a}function T(e,t){var r=e[0];for(t*=7;r>=10;r/=10)t++;return t}function $(e,t,r){if(t>x)throw u=!0,r&&(e.precision=r),Error(d);return O(new e(o),t,1,!0)}function R(e,t,r){if(t>_)throw Error(d);return O(new e(s),t,r,!0)}function I(e){var t=e.length-1,r=7*t+1;if(t=e[t]){for(;t%10==0;t/=10)r--;for(t=e[0];t>=10;t/=10)r++}return r}function j(e){for(var t="";e--;)t+="0";return t}function P(e,t,r,n){var i,a=new e(1),o=Math.ceil(n/7+4);for(u=!1;;){if(r%2&&H((a=a.times(t)).d,o)&&(i=!0),0===(r=m(r/2))){r=a.d.length-1,i&&0===a.d[r]&&++a.d[r];break}H((t=t.times(t)).d,o)}return u=!0,a}function z(e){return 1&e.d[e.d.length-1]}function Z(e,t,r){for(var n,i,a=new e(t[0]),o=0;++o<t.length;){if(!(i=new e(t[o])).s){a=i;break}((n=a.cmp(i))===r||0===n&&a.s===r)&&(a=i)}return a}function D(e,t){var r,n,i,a,o,s,l,c=0,p=0,d=0,f=e.constructor,h=f.rounding,m=f.precision;if(!e.d||!e.d[0]||e.e>17)return new f(e.d?!e.d[0]?1:e.s<0?0:1/0:e.s?e.s<0?0:e:0/0);for(null==t?(u=!1,l=m):l=t,s=new f(.03125);e.e>-2;)e=e.times(s),d+=5;for(l+=n=Math.log(g(2,d))/Math.LN10*2+5|0,r=a=o=new f(1),f.precision=l;;){if(a=O(a.times(e),l,1),r=r.times(++p),M((s=o.plus(E(a,r,l,1))).d).slice(0,l)===M(o.d).slice(0,l)){for(i=d;i--;)o=O(o.times(o),l,1);if(null!=t)return f.precision=m,o;if(!(c<3&&S(o.d,l-n,h,c)))return O(o,f.precision=m,h,u=!0);f.precision=l+=10,r=a=s=new f(1),p=0,c++}o=s}}function F(e,t){var r,n,i,a,o,s,l,c,p,d,f,h=1,m=e,g=m.d,v=m.constructor,y=v.rounding,b=v.precision;if(m.s<0||!g||!g[0]||!m.e&&1==g[0]&&1==g.length)return new v(g&&!g[0]?-1/0:1!=m.s?NaN:g?0:m);if(null==t?(u=!1,p=b):p=t,v.precision=p+=10,n=(r=M(g)).charAt(0),!(15e14>Math.abs(a=m.e)))return c=$(v,p+2,b).times(a+""),m=F(new v(n+"."+r.slice(1)),p-10).plus(c),v.precision=b,null==t?O(m,b,y,u=!0):m;for(;n<7&&1!=n||1==n&&r.charAt(1)>3;)n=(r=M((m=m.times(e)).d)).charAt(0),h++;for(a=m.e,n>1?(m=new v("0."+r),a++):m=new v(n+"."+r.slice(1)),d=m,l=o=m=E(m.minus(1),m.plus(1),p,1),f=O(m.times(m),p,1),i=3;;){if(o=O(o.times(f),p,1),M((c=l.plus(E(o,new v(i),p,1))).d).slice(0,p)===M(l.d).slice(0,p)){if(l=l.times(2),0!==a&&(l=l.plus($(v,p+2,b).times(a+""))),l=E(l,new v(h),p,1),null!=t)return v.precision=b,l;if(!S(l.d,p-10,y,s))return O(l,v.precision=b,y,u=!0);v.precision=p+=10,c=o=m=E(d.minus(1),d.plus(1),p,1),f=O(m.times(m),p,1),i=s=1}l=c,i+=2}}function L(e){return String(e.s*e.s/0)}function B(e,t){var r,n,i;for((r=t.indexOf("."))>-1&&(t=t.replace(".","")),(n=t.search(/e/i))>0?(r<0&&(r=n),r+=+t.slice(n+1),t=t.substring(0,n)):r<0&&(r=t.length),n=0;48===t.charCodeAt(n);n++);for(i=t.length;48===t.charCodeAt(i-1);--i);if(t=t.slice(n,i)){if(i-=n,e.e=r=r-n-1,e.d=[],n=(r+1)%7,r<0&&(n+=7),n<i){for(n&&e.d.push(+t.slice(0,n)),i-=7;n<i;)e.d.push(+t.slice(n,n+=7));n=7-(t=t.slice(n)).length}else n-=i;for(;n--;)t+="0";e.d.push(+t),u&&(e.e>e.constructor.maxE?(e.d=null,e.e=NaN):e.e<e.constructor.minE&&(e.e=0,e.d=[0]))}else e.e=0,e.d=[0];return e}function q(e,t,r,n,i){var a,o,s,l,c=e.precision,p=Math.ceil(c/7);for(u=!1,l=r.times(r),s=new e(n);;){if(o=E(s.times(l),new e(t++*t++),c,1),s=i?n.plus(o):n.minus(o),n=E(o.times(l),new e(t++*t++),c,1),void 0!==(o=s.plus(n)).d[p]){for(a=p;o.d[a]===s.d[a]&&a--;);if(-1==a)break}a=s,s=n,n=o,o=a}return u=!0,o.d.length=p+1,o}function W(e,t){for(var r=e;--t;)r*=e;return r}function V(e,t){var r,n=t.s<0,a=R(e,e.precision,1),o=a.times(.5);if((t=t.abs()).lte(o))return i=n?4:1,t;if((r=t.divToInt(a)).isZero())i=n?3:2;else{if((t=t.minus(r.times(a))).lte(o))return i=z(r)?n?2:3:n?4:1,t;i=z(r)?n?1:4:n?3:2}return t.minus(a).abs()}function U(e,t,r,i){var o,s,l,u,c,p,d,f,h,m=e.constructor,g=void 0!==r;if(g?(N(r,1,1e9),void 0===i?i=m.rounding:N(i,0,8)):(r=m.precision,i=m.rounding),e.isFinite()){for(l=(d=C(e)).indexOf("."),g?(o=2,16==t?r=4*r-3:8==t&&(r=3*r-2)):o=t,l>=0&&(d=d.replace(".",""),(h=new m(1)).e=d.length-l,h.d=k(C(h),10,o),h.e=h.d.length),s=c=(f=k(d,10,o)).length;0==f[--c];)f.pop();if(f[0]){if(l<0?s--:((e=new m(e)).d=f,e.e=s,f=(e=E(e,h,r,i,0,o)).d,s=e.e,p=n),l=f[r],u=o/2,p=p||void 0!==f[r+1],p=i<4?(void 0!==l||p)&&(0===i||i===(e.s<0?3:2)):l>u||l===u&&(4===i||p||6===i&&1&f[r-1]||i===(e.s<0?8:7)),f.length=r,p)for(;++f[--r]>o-1;)f[r]=0,r||(++s,f.unshift(1));for(c=f.length;!f[c-1];--c);for(l=0,d="";l<c;l++)d+=a.charAt(f[l]);if(g){if(c>1)if(16==t||8==t){for(l=16==t?4:3,--c;c%l;c++)d+="0";for(c=(f=k(d,o,t)).length;!f[c-1];--c);for(l=1,d="1.";l<c;l++)d+=a.charAt(f[l])}else d=d.charAt(0)+"."+d.slice(1);d=d+(s<0?"p":"p+")+s}else if(s<0){for(;++s;)d="0"+d;d="0."+d}else if(++s>c)for(s-=c;s--;)d+="0";else s<c&&(d=d.slice(0,s)+"."+d.slice(s))}else d=g?"0p+0":"0";d=(16==t?"0x":2==t?"0b":8==t?"0o":"")+d}else d=L(e);return e.s<0?"-"+d:d}function H(e,t){if(e.length>t)return e.length=t,!0}function Y(e){return new this(e).abs()}function G(e){return new this(e).acos()}function K(e){return new this(e).acosh()}function X(e,t){return new this(e).plus(t)}function Q(e){return new this(e).asin()}function J(e){return new this(e).asinh()}function ee(e){return new this(e).atan()}function et(e){return new this(e).atanh()}function er(e,t){e=new this(e),t=new this(t);var r,n=this.precision,i=this.rounding,a=n+4;return e.s&&t.s?e.d||t.d?!t.d||e.isZero()?(r=t.s<0?R(this,n,i):new this(0)).s=e.s:!e.d||t.isZero()?(r=R(this,a,1).times(.5)).s=e.s:t.s<0?(this.precision=a,this.rounding=1,r=this.atan(E(e,t,a,1)),t=R(this,a,1),this.precision=n,this.rounding=i,r=e.s<0?r.minus(t):r.plus(t)):r=this.atan(E(e,t,a,1)):(r=R(this,a,1).times(t.s>0?.25:.75)).s=e.s:r=new this(NaN),r}function en(e){return new this(e).cbrt()}function ei(e){return O(e=new this(e),e.e+1,2)}function ea(e,t,r){return new this(e).clamp(t,r)}function eo(e){if(!e||"object"!=typeof e)throw Error(c+"Object expected");var t,r,n,i=!0===e.defaults,a=["precision",1,1e9,"rounding",0,8,"toExpNeg",-9e15,0,"toExpPos",0,9e15,"maxE",0,9e15,"minE",-9e15,0,"modulo",0,9];for(t=0;t<a.length;t+=3)if(r=a[t],i&&(this[r]=l[r]),void 0!==(n=e[r]))if(m(n)===n&&n>=a[t+1]&&n<=a[t+2])this[r]=n;else throw Error(p+r+": "+n);if(r="crypto",i&&(this[r]=l[r]),void 0!==(n=e[r]))if(!0===n||!1===n||0===n||1===n)if(n)if("u">typeof crypto&&crypto&&(crypto.getRandomValues||crypto.randomBytes))this[r]=!0;else throw Error(f);else this[r]=!1;else throw Error(p+r+": "+n);return this}function es(e){return new this(e).cos()}function el(e){return new this(e).cosh()}function eu(e,t){return new this(e).div(t)}function ec(e){return new this(e).exp()}function ep(e){return O(e=new this(e),e.e+1,3)}function ed(){var e,t,r=new this(0);for(e=0,u=!1;e<arguments.length;)if(t=new this(arguments[e++]),t.d)r.d&&(r=r.plus(t.times(t)));else{if(t.s)return u=!0,new this(1/0);r=t}return u=!0,r.sqrt()}function ef(e){return e instanceof eI||e&&e.toStringTag===h||!1}function eh(e){return new this(e).ln()}function em(e,t){return new this(e).log(t)}function eg(e){return new this(e).log(2)}function ev(e){return new this(e).log(10)}function ey(){return Z(this,arguments,-1)}function eb(){return Z(this,arguments,1)}function ew(e,t){return new this(e).mod(t)}function ex(e,t){return new this(e).mul(t)}function e_(e,t){return new this(e).pow(t)}function eA(e){var t,r,n,i,a=0,o=new this(1),s=[];if(void 0===e?e=this.precision:N(e,1,1e9),n=Math.ceil(e/7),this.crypto)if(crypto.getRandomValues)for(t=crypto.getRandomValues(new Uint32Array(n));a<n;)(i=t[a])>=429e7?t[a]=crypto.getRandomValues(new Uint32Array(1))[0]:s[a++]=i%1e7;else if(crypto.randomBytes){for(t=crypto.randomBytes(n*=4);a<n;)(i=t[a]+(t[a+1]<<8)+(t[a+2]<<16)+((127&t[a+3])<<24))>=214e7?crypto.randomBytes(4).copy(t,a):(s.push(i%1e7),a+=4);a=n/4}else throw Error(f);else for(;a<n;)s[a++]=1e7*Math.random()|0;for(n=s[--a],e%=7,n&&e&&(i=g(10,7-e),s[a]=(n/i|0)*i);0===s[a];a--)s.pop();if(a<0)r=0,s=[0];else{for(r=-1;0===s[0];r-=7)s.shift();for(n=1,i=s[0];i>=10;i/=10)n++;n<7&&(r-=7-n)}return o.e=r,o.d=s,o}function eM(e){return O(e=new this(e),e.e+1,this.rounding)}function eN(e){return(e=new this(e)).d?e.d[0]?e.s:0*e.s:e.s||NaN}function eS(e){return new this(e).sin()}function ek(e){return new this(e).sinh()}function eE(e){return new this(e).sqrt()}function eO(e,t){return new this(e).sub(t)}function eC(){var e=0,t=arguments,r=new this(t[0]);for(u=!1;r.s&&++e<t.length;)r=r.plus(t[e]);return u=!0,O(r,this.precision,this.rounding)}function eT(e){return new this(e).tan()}function e$(e){return new this(e).tanh()}function eR(e){return O(e=new this(e),e.e+1,1)}A[Symbol.for("nodejs.util.inspect.custom")]=A.toString,A[Symbol.toStringTag]="Decimal";var eI=A.constructor=function e(t){var r,n,i;function a(e){var t,r,n;if(!(this instanceof a))return new a(e);if(this.constructor=a,ef(e)){this.s=e.s,u?!e.d||e.e>a.maxE?(this.e=NaN,this.d=null):e.e<a.minE?(this.e=0,this.d=[0]):(this.e=e.e,this.d=e.d.slice()):(this.e=e.e,this.d=e.d?e.d.slice():e.d);return}if("number"==(n=typeof e)){if(0===e){this.s=1/e<0?-1:1,this.e=0,this.d=[0];return}if(e<0?(e=-e,this.s=-1):this.s=1,e===~~e&&e<1e7){for(t=0,r=e;r>=10;r/=10)t++;u?t>a.maxE?(this.e=NaN,this.d=null):t<a.minE?(this.e=0,this.d=[0]):(this.e=t,this.d=[e]):(this.e=t,this.d=[e]);return}if(0*e!=0){e||(this.s=NaN),this.e=NaN,this.d=null;return}return B(this,e.toString())}if("string"===n)return 45===(r=e.charCodeAt(0))?(e=e.slice(1),this.s=-1):(43===r&&(e=e.slice(1)),this.s=1),w.test(e)?B(this,e):function(e,t){var r,n,i,a,o,s,l,c,d;if(t.indexOf("_")>-1){if(t=t.replace(/(\d)_(?=\d)/g,"$1"),w.test(t))return B(e,t)}else if("Infinity"===t||"NaN"===t)return+t||(e.s=NaN),e.e=NaN,e.d=null,e;if(y.test(t))r=16,t=t.toLowerCase();else if(v.test(t))r=2;else if(b.test(t))r=8;else throw Error(p+t);for((a=t.search(/p/i))>0?(l=+t.slice(a+1),t=t.substring(2,a)):t=t.slice(2),o=(a=t.indexOf("."))>=0,n=e.constructor,o&&(a=(s=(t=t.replace(".","")).length)-a,i=P(n,new n(r),a,2*a)),a=d=(c=k(t,r,1e7)).length-1;0===c[a];--a)c.pop();return a<0?new n(0*e.s):(e.e=T(c,d),e.d=c,u=!1,o&&(e=E(e,i,4*s)),l&&(e=e.times(54>Math.abs(l)?g(2,l):eI.pow(2,l))),u=!0,e)}(this,e);if("bigint"===n)return e<0?(e=-e,this.s=-1):this.s=1,B(this,e.toString());throw Error(p+e)}if(a.prototype=A,a.ROUND_UP=0,a.ROUND_DOWN=1,a.ROUND_CEIL=2,a.ROUND_FLOOR=3,a.ROUND_HALF_UP=4,a.ROUND_HALF_DOWN=5,a.ROUND_HALF_EVEN=6,a.ROUND_HALF_CEIL=7,a.ROUND_HALF_FLOOR=8,a.EUCLID=9,a.config=a.set=eo,a.clone=e,a.isDecimal=ef,a.abs=Y,a.acos=G,a.acosh=K,a.add=X,a.asin=Q,a.asinh=J,a.atan=ee,a.atanh=et,a.atan2=er,a.cbrt=en,a.ceil=ei,a.clamp=ea,a.cos=es,a.cosh=el,a.div=eu,a.exp=ec,a.floor=ep,a.hypot=ed,a.ln=eh,a.log=em,a.log10=ev,a.log2=eg,a.max=ey,a.min=eb,a.mod=ew,a.mul=ex,a.pow=e_,a.random=eA,a.round=eM,a.sign=eN,a.sin=eS,a.sinh=ek,a.sqrt=eE,a.sub=eO,a.sum=eC,a.tan=eT,a.tanh=e$,a.trunc=eR,void 0===t&&(t={}),t&&!0!==t.defaults)for(r=0,i=["precision","rounding","toExpNeg","toExpPos","maxE","minE","modulo","crypto"];r<i.length;)t.hasOwnProperty(n=i[r++])||(t[n]=this[n]);return a.config(t),a}(l);o=new eI(o),s=new eI(s);var ej={createBigNumberClass:(0,r(1207).P9)("BigNumber",["?on","config"],e=>{var{on:t,config:r}=e,n=eI.clone({precision:r.precision,modulo:eI.EUCLID});return n.prototype=Object.create(n.prototype),n.prototype.type="BigNumber",n.prototype.isBigNumber=!0,n.prototype.toJSON=function(){return{mathjs:"BigNumber",value:this.toString()}},n.fromJSON=function(e){return new n(e.value)},t&&t("config",function(e,t){e.precision!==t.precision&&n.config({precision:e.precision})}),n},{isClass:!0})}},80185(e,t,r){"use strict";r.d(t,{k:()=>p});var n=r(27340),i=r(46797),a=r(49204),o=r(93988),s=r(55624),l=r(32718),u=r(15562),c=(0,r(1207).P9)("DenseMatrix",["Matrix"],e=>{var{Matrix:t}=e;function r(e,t){if(!(this instanceof r))throw SyntaxError("Constructor must be called with the new operator");if(t&&!(0,i.Kg)(t))throw Error("Invalid datatype: "+t);if((0,i.OA)(e))"DenseMatrix"===e.type?(this._data=(0,l.o8)(e._data),this._size=(0,l.o8)(e._size)):(this._data=e.toArray(),this._size=e.size()),this._datatype=t||e._datatype;else if(e&&(0,i.cy)(e.data)&&(0,i.cy)(e.size))this._data=e.data,this._size=e.size,(0,a.tf)(this._data,this._size),this._datatype=t||e.datatype;else if((0,i.cy)(e))this._data=function e(t){for(var r=0,n=t.length;r<n;r++){var a=t[r];(0,i.cy)(a)?t[r]=e(a):a&&!0===a.isMatrix&&(t[r]=e(a.valueOf()))}return t}(e),this._size=(0,a.LO)(this._data),(0,a.tf)(this._data,this._size),this._datatype=t;else if(e)throw TypeError("Unsupported type of data ("+(0,i.QP)(e)+")");else this._data=[],this._size=[0],this._datatype=t}function n(e,t,r){if(0===t.length){for(var n=e._data;(0,i.cy)(n);)n=n[0];return n}return e._size=t.slice(0),e._data=(0,a.XR)(e._data,e._size,r),e}function c(e,t,r){for(var i=e._size.slice(0),a=!1;i.length<t.length;)i.push(0),a=!0;for(var o=0,s=t.length;o<s;o++)t[o]>i[o]&&(i[o]=t[o],a=!0);a&&n(e,i,r)}return r.prototype=new t,r.prototype.createDenseMatrix=function(e,t){return new r(e,t)},r.prototype.type="DenseMatrix",r.prototype.isDenseMatrix=!0,r.prototype.getDataType=function(){return(0,a.ig)(this._data,i.QP)},r.prototype.storage=function(){return"dense"},r.prototype.datatype=function(){return this._datatype},r.prototype.create=function(e,t){return new r(e,t)},r.prototype.subset=function(e,t,n){switch(arguments.length){case 1:return function(e,t){if(!(0,i.nw)(t))throw TypeError("Invalid index");if(t.isScalar())return e.get(t.min());var n=t.size();if(n.length!==e._size.length)throw new u.h(n.length,e._size.length);for(var o=t.min(),s=t.max(),l=0,c=e._size.length;l<c;l++)(0,a.r7)(o[l],e._size[l]),(0,a.r7)(s[l],e._size[l]);return new r(function e(t,r,n,i){var o=i===n-1,s=r.dimension(i);return o?s.map(function(e){return(0,a.r7)(e,t.length),t[e]}).valueOf():s.map(function(o){return(0,a.r7)(o,t.length),e(t[o],r,n,i+1)}).valueOf()}(e._data,t,n.length,0),e._datatype)}(this,e);case 2:case 3:return function(e,t,r,n){if(!t||!0!==t.isIndex)throw TypeError("Invalid index");var o,s=t.size(),p=t.isScalar();if((0,i.OA)(r)?(o=r.size(),r=r.valueOf()):o=(0,a.LO)(r),p){if(0!==o.length)throw TypeError("Scalar expected");e.set(t.min(),r,n)}else{if(s.length<e._size.length)throw new u.h(s.length,e._size.length,"<");if(o.length<s.length){for(var d=0,f=0;1===s[d]&&1===o[d];)d++;for(;1===s[d];)f++,d++;r=(0,a.iD)(r,s.length,f,o)}if(!(0,l.QO)(s,o))throw new u.h(s,o,">");c(e,t.max().map(function(e){return e+1}),n);var h=s.length;!function e(t,r,n,i,o){var s=o===i-1,l=r.dimension(o);s?l.forEach(function(e,r){(0,a.r7)(e),t[e]=n[r[0]]}):l.forEach(function(s,l){(0,a.r7)(s),e(t[s],r,n[l[0]],i,o+1)})}(e._data,t,r,h,0)}return e}(this,e,t,n);default:throw SyntaxError("Wrong number of arguments")}},r.prototype.get=function(e){if(!(0,i.cy)(e))throw TypeError("Array expected");if(e.length!==this._size.length)throw new u.h(e.length,this._size.length);for(var t=0;t<e.length;t++)(0,a.r7)(e[t],this._size[t]);for(var r=this._data,n=0,o=e.length;n<o;n++){var s=e[n];(0,a.r7)(s,r.length),r=r[s]}return r},r.prototype.set=function(e,t,r){if(!(0,i.cy)(e))throw TypeError("Array expected");if(e.length<this._size.length)throw new u.h(e.length,this._size.length,"<");c(this,e.map(function(e){return e+1}),r);var n,o,s,l=this._data;for(n=0,o=e.length-1;n<o;n++)s=e[n],(0,a.r7)(s,l.length),l=l[s];return s=e[e.length-1],(0,a.r7)(s,l.length),l[s]=t,this},r.prototype.resize=function(e,t,r){if(!(0,i.P3)(e))throw TypeError("Array or Matrix expected");var a=e.valueOf().map(e=>Array.isArray(e)&&1===e.length?e[0]:e);return n(r?this.clone():this,a,t)},r.prototype.reshape=function(e,t){var r=t?this.clone():this;r._data=(0,a.tQ)(r._data,e);var n=r._size.reduce((e,t)=>e*t);return r._size=(0,a.cs)(e,n),r},r.prototype.clone=function(){return new r({data:(0,l.o8)(this._data),size:(0,l.o8)(this._size),datatype:this._datatype})},r.prototype.size=function(){return this._size.slice(0)},r.prototype.map=function(e){var t=this,n=function r(n,a){return(0,i.cy)(n)?n.map(function(e,t){return r(e,a.concat(t))}):e(n,a,t)}(this._data,[]),o=void 0!==this._datatype?(0,a.ig)(n,i.QP):void 0;return new r(n,o)},r.prototype.forEach=function(e){var t=this;!function r(n,a){(0,i.cy)(n)?n.forEach(function(e,t){r(e,a.concat(t))}):e(n,a,t)}(this._data,[])},r.prototype[Symbol.iterator]=function*(){var e=function* e(t,r){if((0,i.cy)(t))for(var n=0;n<t.length;n++)yield*e(t[n],r.concat(n));else yield{value:t,index:r}};yield*e(this._data,[])},r.prototype.rows=function(){var e=[];if(2!==this.size().length)throw TypeError("Rows can only be returned for a 2D matrix.");for(var t of this._data)e.push(new r([t],this._datatype));return e},r.prototype.columns=function(){var e=this,t=[],n=this.size();if(2!==n.length)throw TypeError("Rows can only be returned for a 2D matrix.");for(var i=this._data,a=function(n){var a=i.map(e=>[e[n]]);t.push(new r(a,e._datatype))},o=0;o<n[1];o++)a(o);return t},r.prototype.toArray=function(){return(0,l.o8)(this._data)},r.prototype.valueOf=function(){return this._data},r.prototype.format=function(e){return(0,o.GP)(this._data,e)},r.prototype.toString=function(){return(0,o.GP)(this._data)},r.prototype.toJSON=function(){return{mathjs:"DenseMatrix",data:this._data,size:this._size,datatype:this._datatype}},r.prototype.diagonal=function(e){if(e){if((0,i.C4)(e)&&(e=e.toNumber()),!(0,i.Et)(e)||!(0,s.YN)(e))throw TypeError("The parameter k must be an integer number")}else e=0;for(var t=e>0?e:0,n=e<0?-e:0,a=Math.min(this._size[0]-n,this._size[1]-t),o=[],l=0;l<a;l++)o[l]=this._data[l+n][l+t];return new r({data:o,size:[a],datatype:this._datatype})},r.diagonal=function(e,t,n,o){if(!(0,i.cy)(e))throw TypeError("Array expected, size parameter");if(2!==e.length)throw Error("Only two dimensions matrix are supported");if(e=e.map(function(e){if((0,i.C4)(e)&&(e=e.toNumber()),!(0,i.Et)(e)||!(0,s.YN)(e)||e<1)throw Error("Size values must be positive integers");return e}),n){if((0,i.C4)(n)&&(n=n.toNumber()),!(0,i.Et)(n)||!(0,s.YN)(n))throw TypeError("The parameter k must be an integer number")}else n=0;var l,u=n>0?n:0,c=n<0?-n:0,p=e[0],d=e[1],f=Math.min(p-c,d-u);if((0,i.cy)(t)){if(t.length!==f)throw Error("Invalid value array length");l=function(e){return t[e]}}else if((0,i.OA)(t)){var h=t.size();if(1!==h.length||h[0]!==f)throw Error("Invalid matrix length");l=function(e){return t.get([e])}}else l=function(){return t};o||(o=(0,i.C4)(l(0))?l(0).mul(0):0);var m=[];if(e.length>0){m=(0,a.XR)(m,e,o);for(var g=0;g<f;g++)m[g+c][g+u]=l(g)}return new r({data:m,size:[p,d]})},r.fromJSON=function(e){return new r(e)},r.prototype.swapRows=function(e,t){if(!(0,i.Et)(e)||!(0,s.YN)(e)||!(0,i.Et)(t)||!(0,s.YN)(t))throw Error("Row index must be positive integers");if(2!==this._size.length)throw Error("Only two dimensional matrix is supported");return(0,a.r7)(e,this._size[0]),(0,a.r7)(t,this._size[0]),r._swapRows(e,t,this._data),this},r._swapRows=function(e,t,r){var n=r[e];r[e]=r[t],r[t]=n},r},{isClass:!0}),p={MatrixDependencies:n.t,createDenseMatrixClass:c}},53684(e,t,r){"use strict";r.d(t,{u:()=>l});var n=r(45588),i=r(55624),a=r(1207),o="equalScalar",s=(0,a.P9)(o,["typed","config"],e=>{var{typed:t,config:r}=e;return t(o,{"boolean, boolean":function(e,t){return e===t},"number, number":function(e,t){return(0,i.q8)(e,t,r.epsilon)},"BigNumber, BigNumber":function(e,t){return e.eq(t)||function(e,t,r){if(null==r)return e.eq(t);if(e.eq(t))return!0;if(e.isNaN()||t.isNaN())return!1;if(e.isFinite()&&t.isFinite()){var n=e.minus(t).abs();if(n.isZero())return!0;var i=e.constructor.max(e.abs(),t.abs());return n.lte(i.times(r))}return!1}(e,t,r.epsilon)},"Fraction, Fraction":function(e,t){return e.equals(t)},"Complex, Complex":function(e,t){var n;return n=r.epsilon,(0,i.q8)(e.re,t.re,n)&&(0,i.q8)(e.im,t.im,n)},"Unit, Unit":function(e,t){if(!e.equalBase(t))throw Error("Cannot compare units with different base");return this(e.value,t.value)}})});(0,a.P9)(o,["typed","config"],e=>{var{typed:t,config:r}=e;return t(o,{"number, number":function(e,t){return(0,i.q8)(e,t,r.epsilon)}})});var l={typedDependencies:n.U,createEqualScalar:s}},91165(e,t,r){"use strict";r.d(t,{_:()=>v});var n=r(95343),i=r(80185),a=r(53684),o=r(43163),s=r(45588),l=r(1207),u=r(15562),c=(0,l.P9)("algorithm01",["typed"],e=>{var{typed:t}=e;return function(e,r,n,i){var a,o,s=e._data,l=e._size,c=e._datatype,p=r._values,d=r._index,f=r._ptr,h=r._size,m=r._datatype;if(l.length!==h.length)throw new u.h(l.length,h.length);if(l[0]!==h[0]||l[1]!==h[1])throw RangeError("Dimension mismatch. Matrix A ("+l+") must match Matrix B ("+h+")");if(!p)throw Error("Cannot perform operation on Dense Matrix and Pattern Sparse Matrix");var g=l[0],v=l[1],y="string"==typeof c&&c===m?c:void 0,b=y?t.find(n,[y,y]):n,w=[];for(a=0;a<g;a++)w[a]=[];var x=[],_=[];for(o=0;o<v;o++){for(var A=o+1,M=f[o],N=f[o+1],S=M;S<N;S++)x[a=d[S]]=i?b(p[S],s[a][o]):b(s[a][o],p[S]),_[a]=A;for(a=0;a<g;a++)_[a]===A?w[a][o]=x[a]:w[a][o]=s[a][o]}return e.createDenseMatrix({data:w,size:[g,v],datatype:y})}}),p=(0,l.P9)("algorithm04",["typed","equalScalar"],e=>{var{typed:t,equalScalar:r}=e;return function(e,n,i){var a,o,s,l,c,p,d=e._values,f=e._index,h=e._ptr,m=e._size,g=e._datatype,v=n._values,y=n._index,b=n._ptr,w=n._size,x=n._datatype;if(m.length!==w.length)throw new u.h(m.length,w.length);if(m[0]!==w[0]||m[1]!==w[1])throw RangeError("Dimension mismatch. Matrix A ("+m+") must match Matrix B ("+w+")");var _=m[0],A=m[1],M=r,N=0,S=i;"string"==typeof g&&g===x&&(a=g,M=t.find(r,[a,a]),N=t.convert(0,a),S=t.find(i,[a,a]));var k=d&&v?[]:void 0,E=[],O=[],C=d&&v?[]:void 0,T=d&&v?[]:void 0,$=[],R=[];for(s=0;s<A;s++){O[s]=E.length;var I=s+1;for(c=h[s],p=h[s+1],l=c;l<p;l++)o=f[l],E.push(o),$[o]=I,C&&(C[o]=d[l]);for(c=b[s],p=b[s+1],l=c;l<p;l++)if($[o=y[l]]===I){if(C){var j=S(C[o],v[l]);M(j,N)?$[o]=null:C[o]=j}}else E.push(o),R[o]=I,T&&(T[o]=v[l]);if(C&&T)for(l=O[s];l<E.length;)$[o=E[l]]===I?(k[l]=C[o],l++):R[o]===I?(k[l]=T[o],l++):E.splice(l,1)}return O[A]=E.length,e.createSparseMatrix({values:k,index:E,ptr:O,size:[_,A],datatype:a})}}),d=(0,l.P9)("algorithm10",["typed","DenseMatrix"],e=>{var{typed:t,DenseMatrix:r}=e;return function(e,n,i,a){var o,s=e._values,l=e._index,u=e._ptr,c=e._size,p=e._datatype;if(!s)throw Error("Cannot perform operation on Pattern Sparse Matrix and Scalar value");var d=c[0],f=c[1],h=i;"string"==typeof p&&(o=p,n=t.convert(n,o),h=t.find(i,[o,o]));for(var m=[],g=[],v=[],y=0;y<f;y++){for(var b=y+1,w=u[y],x=u[y+1],_=w;_<x;_++){var A=l[_];g[A]=s[_],v[A]=b}for(var M=0;M<d;M++)0===y&&(m[M]=[]),v[M]===b?m[M][y]=a?h(n,g[M]):h(g[M],n):m[M][y]=n}return new r({data:m,size:[d,f],datatype:o})}}),f=(0,l.P9)("algorithm13",["typed"],e=>{var{typed:t}=e;return function(e,r,n){var i,a=e._data,o=e._size,s=e._datatype,l=r._data,c=r._size,p=r._datatype,d=[];if(o.length!==c.length)throw new u.h(o.length,c.length);for(var f=0;f<o.length;f++){if(o[f]!==c[f])throw RangeError("Dimension mismatch. Matrix A ("+o+") must match Matrix B ("+c+")");d[f]=o[f]}var h=n;"string"==typeof s&&s===p&&(i=s,h=t.find(n,[i,i]));var m=d.length>0?function e(t,r,n,i,a,o){var s=[];if(r===n.length-1)for(var l=0;l<i;l++)s[l]=t(a[l],o[l]);else for(var u=0;u<i;u++)s[u]=e(t,r+1,n,n[r+1],a[u],o[u]);return s}(h,0,d,d[0],a,l):[];return e.createDenseMatrix({data:m,size:d,datatype:i})}}),h=r(77666),m=r(34046),g=(0,l.P9)("gcd",["typed","matrix","equalScalar","BigNumber","DenseMatrix"],e=>{var{typed:t,matrix:r,equalScalar:n,BigNumber:i,DenseMatrix:a}=e,o=c({typed:t}),s=p({typed:t,equalScalar:n}),l=d({typed:t,DenseMatrix:a}),u=f({typed:t}),g=(0,h.f)({typed:t});return t("gcd",{"number, number":m.aU,"BigNumber, BigNumber":function(e,t){if(!e.isInt()||!t.isInt())throw Error("Parameters in function gcd must be integer numbers");for(var r=new i(0);!t.isZero();){var n=e.mod(t);e=t,t=n}return e.lt(r)?e.neg():e},"Fraction, Fraction":function(e,t){return e.gcd(t)},"SparseMatrix, SparseMatrix":function(e,t){return s(e,t,this)},"SparseMatrix, DenseMatrix":function(e,t){return o(t,e,this,!0)},"DenseMatrix, SparseMatrix":function(e,t){return o(e,t,this,!1)},"DenseMatrix, DenseMatrix":function(e,t){return u(e,t,this)},"Array, Array":function(e,t){return this(r(e),r(t)).valueOf()},"Array, Matrix":function(e,t){return this(r(e),t)},"Matrix, Array":function(e,t){return this(e,r(t))},"SparseMatrix, number | BigNumber":function(e,t){return l(e,t,this,!1)},"DenseMatrix, number | BigNumber":function(e,t){return g(e,t,this,!1)},"number | BigNumber, SparseMatrix":function(e,t){return l(t,e,this,!0)},"number | BigNumber, DenseMatrix":function(e,t){return g(t,e,this,!0)},"Array, number | BigNumber":function(e,t){return g(r(e),t,this,!1).valueOf()},"number | BigNumber, Array":function(e,t){return g(r(t),e,this,!0).valueOf()},"Array | Matrix | number | BigNumber, Array | Matrix | number | BigNumber, ...Array | Matrix | number | BigNumber":function(e,t,r){for(var n=this(e,t),i=0;i<r.length;i++)n=this(n,r[i]);return n}})}),v={BigNumberDependencies:n.P,DenseMatrixDependencies:i.k,equalScalarDependencies:a.u,matrixDependencies:o.p,typedDependencies:s.U,createGcd:g}},43163(e,t,r){"use strict";r.d(t,{p:()=>y});var n=r(80185),i=r(27340),a=r(53684),o=r(45588),s=r(46797),l=r(55624),u=r(93988),c=r(32718),p=r(49204),d=r(1207),f=r(15562),h=(0,d.P9)("SparseMatrix",["typed","equalScalar","Matrix"],e=>{var{typed:t,equalScalar:r,Matrix:n}=e;function i(e,t){if(!(this instanceof i))throw SyntaxError("Constructor must be called with the new operator");if(t&&!(0,s.Kg)(t))throw Error("Invalid datatype: "+t);if((0,s.OA)(e)){var r,n,o;r=this,n=e,o=t,"SparseMatrix"===n.type?(r._values=n._values?(0,c.o8)(n._values):void 0,r._index=(0,c.o8)(n._index),r._ptr=(0,c.o8)(n._ptr),r._size=(0,c.o8)(n._size),r._datatype=o||n._datatype):a(r,n.valueOf(),o||n._datatype)}else if(e&&(0,s.cy)(e.index)&&(0,s.cy)(e.ptr)&&(0,s.cy)(e.size))this._values=e.values,this._index=e.index,this._ptr=e.ptr,this._size=e.size,this._datatype=t||e.datatype;else if((0,s.cy)(e))a(this,e,t);else if(e)throw TypeError("Unsupported type of data ("+(0,s.QP)(e)+")");else this._values=[],this._index=[],this._ptr=[0],this._size=[0,0],this._datatype=t}function a(e,n,i){e._values=[],e._index=[],e._ptr=[],e._datatype=i;var a=n.length,o=0,l=r,u=0;if((0,s.Kg)(i)&&(l=t.find(r,[i,i])||r,u=t.convert(0,i)),a>0){var c=0;do{e._ptr.push(e._index.length);for(var p=0;p<a;p++){var d=n[p];if((0,s.cy)(d)){if(0===c&&o<d.length&&(o=d.length),c<d.length){var f=d[c];l(f,u)||(e._values.push(f),e._index.push(p))}}else 0===c&&o<1&&(o=1),l(d,u)||(e._values.push(d),e._index.push(p))}c++}while(c<o)}e._ptr.push(e._index.length),e._size=[a,o]}function o(e,t,r,n){if(r-t==0)return r;for(var i=t;i<r;i++)if(n[i]===e)return i;return t}function d(e,t,r,n,i,a,o){i.splice(e,0,n),a.splice(e,0,t);for(var s=r+1;s<o.length;s++)o[s]++}function h(e,n,i,a){var o,l,u,c=a||0,p=r,d=0;(0,s.Kg)(e._datatype)&&(p=t.find(r,[e._datatype,e._datatype])||r,d=t.convert(0,e._datatype),c=t.convert(c,e._datatype));var f=!p(c,d),h=e._size[0],m=e._size[1];if(i>m){for(l=m;l<i;l++)if(e._ptr[l]=e._values.length,f)for(o=0;o<h;o++)e._values.push(c),e._index.push(o);e._ptr[i]=e._values.length}else i<m&&(e._ptr.splice(i+1,m-i),e._values.splice(e._ptr[i],e._values.length),e._index.splice(e._ptr[i],e._index.length));if(m=i,n>h){if(f){var g=0;for(l=0;l<m;l++){e._ptr[l]=e._ptr[l]+g,u=e._ptr[l+1]+g;var v=0;for(o=h;o<n;o++,v++)e._values.splice(u+v,0,c),e._index.splice(u+v,0,o),g++}e._ptr[m]=e._values.length}}else if(n<h){var y=0;for(l=0;l<m;l++){e._ptr[l]=e._ptr[l]-y;var b=e._ptr[l],w=e._ptr[l+1]-y;for(u=b;u<w;u++)(o=e._index[u])>n-1&&(e._values.splice(u,1),e._index.splice(u,1),y++)}e._ptr[l]=e._values.length}return e._size[0]=n,e._size[1]=i,e}function m(e,t,r,n,i){var a,o,s=n[0],l=n[1],u=[];for(a=0;a<s;a++)for(o=0,u[a]=[];o<l;o++)u[a][o]=0;for(o=0;o<l;o++)for(var p=r[o],d=r[o+1],f=p;f<d;f++)u[a=t[f]][o]=e?i?(0,c.o8)(e[f]):e[f]:1;return u}return i.prototype=new n,i.prototype.createSparseMatrix=function(e,t){return new i(e,t)},i.prototype.type="SparseMatrix",i.prototype.isSparseMatrix=!0,i.prototype.getDataType=function(){return(0,p.ig)(this._values,s.QP)},i.prototype.storage=function(){return"sparse"},i.prototype.datatype=function(){return this._datatype},i.prototype.create=function(e,t){return new i(e,t)},i.prototype.density=function(){var e=this._size[0],t=this._size[1];return 0!==e&&0!==t?this._index.length/(e*t):0},i.prototype.subset=function(e,t,r){if(!this._values)throw Error("Cannot invoke subset on a Pattern only matrix");switch(arguments.length){case 1:return function(e,t){if(!(0,s.nw)(t))throw TypeError("Invalid index");if(t.isScalar())return e.get(t.min());var r,n,a,o,l=t.size();if(l.length!==e._size.length)throw new f.h(l.length,e._size.length);var u=t.min(),c=t.max();for(r=0,n=e._size.length;r<n;r++)(0,p.r7)(u[r],e._size[r]),(0,p.r7)(c[r],e._size[r]);var d=e._values,h=e._index,m=e._ptr,g=t.dimension(0),v=t.dimension(1),y=[],b=[];g.forEach(function(e,t){b[e]=t[0],y[e]=!0});var w=d?[]:void 0,x=[],_=[];return v.forEach(function(e){for(_.push(x.length),a=m[e],o=m[e+1];a<o;a++)!0===y[r=h[a]]&&(x.push(b[r]),w&&w.push(d[a]))}),_.push(x.length),new i({values:w,index:x,ptr:_,size:l,datatype:e._datatype})}(this,e);case 2:case 3:return function(e,t,r,n){if(!t||!0!==t.isIndex)throw TypeError("Invalid index");var i,a=t.size(),o=t.isScalar();if((0,s.OA)(r)?(i=r.size(),r=r.toArray()):i=(0,p.LO)(r),o){if(0!==i.length)throw TypeError("Scalar expected");e.set(t.min(),r,n)}else{if(1!==a.length&&2!==a.length)throw new f.h(a.length,e._size.length,"<");if(i.length<a.length){for(var l=0,u=0;1===a[l]&&1===i[l];)l++;for(;1===a[l];)u++,l++;r=(0,p.iD)(r,a.length,u,i)}if(!(0,c.QO)(a,i))throw new f.h(a,i,">");if(1===a.length)t.dimension(0).forEach(function(t,i){(0,p.r7)(t),e.set([t,0],r[i[0]],n)});else{var d=t.dimension(0),h=t.dimension(1);d.forEach(function(t,i){(0,p.r7)(t),h.forEach(function(a,o){(0,p.r7)(a),e.set([t,a],r[i[0]][o[0]],n)})})}}return e}(this,e,t,r);default:throw SyntaxError("Wrong number of arguments")}},i.prototype.get=function(e){if(!(0,s.cy)(e))throw TypeError("Array expected");if(e.length!==this._size.length)throw new f.h(e.length,this._size.length);if(!this._values)throw Error("Cannot invoke get on a Pattern only matrix");var t=e[0],r=e[1];(0,p.r7)(t,this._size[0]),(0,p.r7)(r,this._size[1]);var n=o(t,this._ptr[r],this._ptr[r+1],this._index);return n<this._ptr[r+1]&&this._index[n]===t?this._values[n]:0},i.prototype.set=function(e,n,i){if(!(0,s.cy)(e))throw TypeError("Array expected");if(e.length!==this._size.length)throw new f.h(e.length,this._size.length);if(!this._values)throw Error("Cannot invoke set on a Pattern only matrix");var a=e[0],l=e[1],u=this._size[0],c=this._size[1],m=r,g=0;(0,s.Kg)(this._datatype)&&(m=t.find(r,[this._datatype,this._datatype])||r,g=t.convert(0,this._datatype)),(a>u-1||l>c-1)&&(h(this,Math.max(a+1,u),Math.max(l+1,c),i),u=this._size[0],c=this._size[1]),(0,p.r7)(a,u),(0,p.r7)(l,c);var v=o(a,this._ptr[l],this._ptr[l+1],this._index);return v<this._ptr[l+1]&&this._index[v]===a?m(n,g)?function(e,t,r,n,i){r.splice(e,1),n.splice(e,1);for(var a=t+1;a<i.length;a++)i[a]--}(v,l,this._values,this._index,this._ptr):this._values[v]=n:d(v,a,l,n,this._values,this._index,this._ptr),this},i.prototype.resize=function(e,t,r){if(!(0,s.P3)(e))throw TypeError("Array or Matrix expected");var n=e.valueOf().map(e=>Array.isArray(e)&&1===e.length?e[0]:e);if(2!==n.length)throw Error("Only two dimensions matrix are supported");return n.forEach(function(e){if(!(0,s.Et)(e)||!(0,l.YN)(e)||e<0)throw TypeError("Invalid size, must contain positive integers (size: "+(0,u.GP)(n)+")")}),h(r?this.clone():this,n[0],n[1],t)},i.prototype.reshape=function(e,t){if(!(0,s.cy)(e))throw TypeError("Array expected");if(2!==e.length)throw Error("Sparse matrices can only be reshaped in two dimensions");e.forEach(function(t){if(!(0,s.Et)(t)||!(0,l.YN)(t)||t<=-2||0===t)throw TypeError("Invalid size, must contain positive integers or -1 (size: "+(0,u.GP)(e)+")")});var r=this._size[0]*this._size[1],n=(e=(0,p.cs)(e,r))[0]*e[1];if(r!==n)throw Error("Reshaping sparse matrix will result in the wrong number of elements");var i=t?this.clone():this;if(this._size[0]===e[0]&&this._size[1]===e[1])return i;for(var a=[],c=0;c<i._ptr.length;c++)for(var f=0;f<i._ptr[c+1]-i._ptr[c];f++)a.push(c);for(var h=i._values.slice(),m=i._index.slice(),g=0;g<i._index.length;g++){var v=m[g],y=a[g],b=v*i._size[1]+y;a[g]=b%e[1],m[g]=Math.floor(b/e[1])}i._values.length=0,i._index.length=0,i._ptr.length=e[1]+1,i._size=e.slice();for(var w=0;w<i._ptr.length;w++)i._ptr[w]=0;for(var x=0;x<h.length;x++){var _=m[x],A=a[x],M=h[x];d(o(_,i._ptr[A],i._ptr[A+1],i._index),_,A,M,i._values,i._index,i._ptr)}return i},i.prototype.clone=function(){return new i({values:this._values?(0,c.o8)(this._values):void 0,index:(0,c.o8)(this._index),ptr:(0,c.o8)(this._ptr),size:(0,c.o8)(this._size),datatype:this._datatype})},i.prototype.size=function(){return this._size.slice(0)},i.prototype.map=function(e,n){if(!this._values)throw Error("Cannot invoke map on a Pattern only matrix");var a=this;return function(e,n,a,o,l){var u=[],c=[],p=[],d=r,f=0;(0,s.Kg)(e._datatype)&&(d=t.find(r,[e._datatype,e._datatype])||r,f=t.convert(0,e._datatype));for(var h=function(e,t,r){e=o(e,t,r),d(e,f)||(u.push(e),c.push(t))},m=0;m<=a;m++){p.push(u.length);var g=e._ptr[m],v=e._ptr[m+1];if(l)for(var y=g;y<v;y++){var b=e._index[y];b>=0&&b<=n&&h(e._values[y],b-0,m-0)}else{for(var w={},x=g;x<v;x++)w[e._index[x]]=e._values[x];for(var _=0;_<=n;_++)h(_ in w?w[_]:0,_-0,m-0)}}return p.push(u.length),new i({values:u,index:c,ptr:p,size:[n-0+1,a-0+1]})}(this,this._size[0]-1,this._size[1]-1,function(t,r,n){return e(t,[r,n],a)},n)},i.prototype.forEach=function(e,t){if(!this._values)throw Error("Cannot invoke forEach on a Pattern only matrix");for(var r=this._size[0],n=this._size[1],i=0;i<n;i++){var a=this._ptr[i],o=this._ptr[i+1];if(t)for(var s=a;s<o;s++){var l=this._index[s];e(this._values[s],[l,i],this)}else{for(var u={},c=a;c<o;c++)u[this._index[c]]=this._values[c];for(var p=0;p<r;p++)e(p in u?u[p]:0,[p,i],this)}}},i.prototype[Symbol.iterator]=function*(){if(!this._values)throw Error("Cannot iterate a Pattern only matrix");for(var e=this._size[1],t=0;t<e;t++)for(var r=this._ptr[t],n=this._ptr[t+1],i=r;i<n;i++){var a=this._index[i];yield{value:this._values[i],index:[a,t]}}},i.prototype.toArray=function(){return m(this._values,this._index,this._ptr,this._size,!0)},i.prototype.valueOf=function(){return m(this._values,this._index,this._ptr,this._size,!1)},i.prototype.format=function(e){for(var t=this._size[0],r=this._size[1],n=this.density(),i="Sparse Matrix ["+(0,u.GP)(t,e)+" x "+(0,u.GP)(r,e)+"] density: "+(0,u.GP)(n,e)+"\n",a=0;a<r;a++)for(var o=this._ptr[a],s=this._ptr[a+1],l=o;l<s;l++){var c=this._index[l];i+="\n ("+(0,u.GP)(c,e)+", "+(0,u.GP)(a,e)+") ==> "+(this._values?(0,u.GP)(this._values[l],e):"X")}return i},i.prototype.toString=function(){return(0,u.GP)(this.toArray())},i.prototype.toJSON=function(){return{mathjs:"SparseMatrix",values:this._values,index:this._index,ptr:this._ptr,size:this._size,datatype:this._datatype}},i.prototype.diagonal=function(e){if(e){if((0,s.C4)(e)&&(e=e.toNumber()),!(0,s.Et)(e)||!(0,l.YN)(e))throw TypeError("The parameter k must be an integer number")}else e=0;var t=e>0?e:0,r=e<0?-e:0,n=this._size[0],a=this._size[1],o=Math.min(n-r,a-t),u=[],c=[],p=[];p[0]=0;for(var d=t;d<a&&u.length<o;d++)for(var f=this._ptr[d],h=this._ptr[d+1],m=f;m<h;m++){var g=this._index[m];if(g===d-t+r){u.push(this._values[m]),c[u.length-1]=g-r;break}}return p.push(u.length),new i({values:u,index:c,ptr:p,size:[o,1]})},i.fromJSON=function(e){return new i(e)},i.diagonal=function(e,n,a,o,u){if(!(0,s.cy)(e))throw TypeError("Array expected, size parameter");if(2!==e.length)throw Error("Only two dimensions matrix are supported");if(e=e.map(function(e){if((0,s.C4)(e)&&(e=e.toNumber()),!(0,s.Et)(e)||!(0,l.YN)(e)||e<1)throw Error("Size values must be positive integers");return e}),a){if((0,s.C4)(a)&&(a=a.toNumber()),!(0,s.Et)(a)||!(0,l.YN)(a))throw TypeError("The parameter k must be an integer number")}else a=0;var c,p=r,d=0;(0,s.Kg)(u)&&(p=t.find(r,[u,u])||r,d=t.convert(0,u));var f=a>0?a:0,h=a<0?-a:0,m=e[0],g=e[1],v=Math.min(m-h,g-f);if((0,s.cy)(n)){if(n.length!==v)throw Error("Invalid value array length");c=function(e){return n[e]}}else if((0,s.OA)(n)){var y=n.size();if(1!==y.length||y[0]!==v)throw Error("Invalid matrix length");c=function(e){return n.get([e])}}else c=function(){return n};for(var b=[],w=[],x=[],_=0;_<g;_++){x.push(b.length);var A=_-f;if(A>=0&&A<v){var M=c(A);p(M,d)||(w.push(A+h),b.push(M))}}return x.push(b.length),new i({values:b,index:w,ptr:x,size:[m,g]})},i.prototype.swapRows=function(e,t){if(!(0,s.Et)(e)||!(0,l.YN)(e)||!(0,s.Et)(t)||!(0,l.YN)(t))throw Error("Row index must be positive integers");if(2!==this._size.length)throw Error("Only two dimensional matrix is supported");return(0,p.r7)(e,this._size[0]),(0,p.r7)(t,this._size[0]),i._swapRows(e,t,this._size[1],this._values,this._index,this._ptr),this},i._forEachRow=function(e,t,r,n,i){for(var a=n[e],o=n[e+1],s=a;s<o;s++)i(r[s],t[s])},i._swapRows=function(e,t,r,n,i,a){for(var s=0;s<r;s++){var l=a[s],u=a[s+1],c=o(e,l,u,i),p=o(t,l,u,i);if(c<u&&p<u&&i[c]===e&&i[p]===t){if(n){var d=n[c];n[c]=n[p],n[p]=d}continue}if(c<u&&i[c]===e&&(p>=u||i[p]!==t)){var f=n?n[c]:void 0;i.splice(p,0,t),n&&n.splice(p,0,f),i.splice(p<=c?c+1:c,1),n&&n.splice(p<=c?c+1:c,1);continue}if(p<u&&i[p]===t&&(c>=u||i[c]!==e)){var h=n?n[p]:void 0;i.splice(c,0,e),n&&n.splice(c,0,h),i.splice(c<=p?p+1:p,1),n&&n.splice(c<=p?p+1:p,1)}}},i},{isClass:!0}),m={MatrixDependencies:i.t,equalScalarDependencies:a.u,typedDependencies:o.U,createSparseMatrixClass:h},g="matrix",v=(0,d.P9)(g,["typed","Matrix","DenseMatrix","SparseMatrix"],e=>{var{typed:t,Matrix:r,DenseMatrix:n,SparseMatrix:i}=e;return t(g,{"":function(){return a([])},string:function(e){return a([],e)},"string, string":function(e,t){return a([],e,t)},Array:function(e){return a(e)},Matrix:function(e){return a(e,e.storage())},"Array | Matrix, string":a,"Array | Matrix, string, string":a});function a(e,t,r){if("dense"===t||"default"===t||void 0===t)return new n(e,r);if("sparse"===t)return new i(e,r);throw TypeError("Unknown matrix type "+JSON.stringify(t)+".")}}),y={DenseMatrixDependencies:n.k,MatrixDependencies:i.t,SparseMatrixDependencies:m,typedDependencies:o.U,createMatrix:v}},27340(e,t,r){"use strict";r.d(t,{t:()=>n});var n={createMatrixClass:(0,r(1207).P9)("Matrix",[],()=>{function e(){if(!(this instanceof e))throw SyntaxError("Constructor must be called with the new operator")}return e.prototype.type="Matrix",e.prototype.isMatrix=!0,e.prototype.storage=function(){throw Error("Cannot invoke storage on a Matrix interface")},e.prototype.datatype=function(){throw Error("Cannot invoke datatype on a Matrix interface")},e.prototype.create=function(e,t){throw Error("Cannot invoke create on a Matrix interface")},e.prototype.subset=function(e,t,r){throw Error("Cannot invoke subset on a Matrix interface")},e.prototype.get=function(e){throw Error("Cannot invoke get on a Matrix interface")},e.prototype.set=function(e,t,r){throw Error("Cannot invoke set on a Matrix interface")},e.prototype.resize=function(e,t){throw Error("Cannot invoke resize on a Matrix interface")},e.prototype.reshape=function(e,t){throw Error("Cannot invoke reshape on a Matrix interface")},e.prototype.clone=function(){throw Error("Cannot invoke clone on a Matrix interface")},e.prototype.size=function(){throw Error("Cannot invoke size on a Matrix interface")},e.prototype.map=function(e,t){throw Error("Cannot invoke map on a Matrix interface")},e.prototype.forEach=function(e){throw Error("Cannot invoke forEach on a Matrix interface")},e.prototype[Symbol.iterator]=function(){throw Error("Cannot iterate a Matrix interface")},e.prototype.toArray=function(){throw Error("Cannot invoke toArray on a Matrix interface")},e.prototype.valueOf=function(){throw Error("Cannot invoke valueOf on a Matrix interface")},e.prototype.format=function(e){throw Error("Cannot invoke format on a Matrix interface")},e.prototype.toString=function(){throw Error("Cannot invoke toString on a Matrix interface")},e},{isClass:!0})}},45588(e,t,r){"use strict";r.d(t,{U:()=>L});var n=r(95343);let i=Math.cosh||function(e){return 1e-9>Math.abs(e)?1-e:(Math.exp(e)+Math.exp(-e))*.5},a=Math.sinh||function(e){return 1e-9>Math.abs(e)?e:(Math.exp(e)-Math.exp(-e))*.5},o=function(e,t){return((e=Math.abs(e))<(t=Math.abs(t))&&([e,t]=[t,e]),e<1e8)?Math.sqrt(e*e+t*t):(t/=e,e*Math.sqrt(1+t*t))},s=function(){throw SyntaxError("Invalid Param")};function l(e,t){let r=Math.abs(e),n=Math.abs(t);return 0===e?Math.log(n):0===t?Math.log(r):r<3e3&&n<3e3?.5*Math.log(e*e+t*t):.5*Math.log((e*=.5)*e+(t*=.5)*t)+Math.LN2}let u={re:0,im:0},c=function(e,t){if(null==e)u.re=u.im=0;else if(void 0!==t)u.re=e,u.im=t;else switch(typeof e){case"object":if("im"in e&&"re"in e)u.re=e.re,u.im=e.im;else if("abs"in e&&"arg"in e){if(!isFinite(e.abs)&&isFinite(e.arg))return p.INFINITY;u.re=e.abs*Math.cos(e.arg),u.im=e.abs*Math.sin(e.arg)}else if("r"in e&&"phi"in e){if(!isFinite(e.r)&&isFinite(e.phi))return p.INFINITY;u.re=e.r*Math.cos(e.phi),u.im=e.r*Math.sin(e.phi)}else 2===e.length?(u.re=e[0],u.im=e[1]):s();break;case"string":u.im=u.re=0;let r=e.replace(/_/g,"").match(/\d+\.?\d*e[+-]?\d+|\d+\.?\d*|\.\d+|./g),n=1,i=0;null===r&&s();for(let e=0;e<r.length;e++){let t=r[e];" "===t||" "===t||"\n"===t||("+"===t?n++:"-"===t?i++:("i"===t||"I"===t?(n+i===0&&s()," "===r[e+1]||isNaN(r[e+1])?u.im+=parseFloat((i%2?"-":"")+"1"):(u.im+=parseFloat((i%2?"-":"")+r[e+1]),e++)):((n+i===0||isNaN(t))&&s(),"i"===r[e+1]||"I"===r[e+1]?(u.im+=parseFloat((i%2?"-":"")+t),e++):u.re+=parseFloat((i%2?"-":"")+t)),n=i=0))}n+i>0&&s();break;case"number":u.im=0,u.re=e;break;default:s()}return isNaN(u.re)||isNaN(u.im),u};function p(e,t){if(!(this instanceof p))return new p(e,t);let r=c(e,t);this.re=r.re,this.im=r.im}p.prototype={re:0,im:0,sign:function(){let e=o(this.re,this.im);return new p(this.re/e,this.im/e)},add:function(e,t){let r=c(e,t),n=this.isInfinite(),i=!(isFinite(r.re)&&isFinite(r.im));return n||i?n&&i?p.NAN:p.INFINITY:new p(this.re+r.re,this.im+r.im)},sub:function(e,t){let r=c(e,t),n=this.isInfinite(),i=!(isFinite(r.re)&&isFinite(r.im));return n||i?n&&i?p.NAN:p.INFINITY:new p(this.re-r.re,this.im-r.im)},mul:function(e,t){let r=c(e,t),n=this.isInfinite(),i=!(isFinite(r.re)&&isFinite(r.im)),a=0===this.re&&0===this.im,o=0===r.re&&0===r.im;return n&&o||i&&a?p.NAN:n||i?p.INFINITY:0===r.im&&0===this.im?new p(this.re*r.re,0):new p(this.re*r.re-this.im*r.im,this.re*r.im+this.im*r.re)},div:function(e,t){let r=c(e,t),n=this.isInfinite(),i=!(isFinite(r.re)&&isFinite(r.im)),a=0===this.re&&0===this.im,o=0===r.re&&0===r.im;if(a&&o||n&&i)return p.NAN;if(o||n)return p.INFINITY;if(a||i)return p.ZERO;if(0===r.im)return new p(this.re/r.re,this.im/r.re);if(Math.abs(r.re)<Math.abs(r.im)){let e=r.re/r.im,t=r.re*e+r.im;return new p((this.re*e+this.im)/t,(this.im*e-this.re)/t)}{let e=r.im/r.re,t=r.im*e+r.re;return new p((this.re+this.im*e)/t,(this.im-this.re*e)/t)}},pow:function(e,t){let r=c(e,t),n=0===this.re&&0===this.im;if(0===r.re&&0===r.im)return p.ONE;if(0===r.im){if(0===this.im&&this.re>0)return new p(Math.pow(this.re,r.re),0);else if(0===this.re)switch((r.re%4+4)%4){case 0:return new p(Math.pow(this.im,r.re),0);case 1:return new p(0,Math.pow(this.im,r.re));case 2:return new p(-Math.pow(this.im,r.re),0);case 3:return new p(0,-Math.pow(this.im,r.re))}}if(n&&r.re>0)return p.ZERO;let i=Math.atan2(this.im,this.re),a=l(this.re,this.im),o=Math.exp(r.re*a-r.im*i),s=r.im*a+r.re*i;return new p(o*Math.cos(s),o*Math.sin(s))},sqrt:function(){let e=this.re,t=this.im;if(0===t)if(e>=0)return new p(Math.sqrt(e),0);else return new p(0,Math.sqrt(-e));let r=Math.sqrt(.5*(o(e,t)+Math.abs(e))),n=Math.abs(t)/(2*r);return e>=0?new p(r,t<0?-n:n):new p(n,t<0?-r:r)},exp:function(){let e=Math.exp(this.re);return 0===this.im?new p(e,0):new p(e*Math.cos(this.im),e*Math.sin(this.im))},expm1:function(){let e,t=this.re,r=this.im;return new p(Math.expm1(t)*Math.cos(r)+-2*(e=Math.sin(.5*r))*e,Math.exp(t)*Math.sin(r))},log:function(){let e=this.re,t=this.im;return 0===t&&e>0?new p(Math.log(e),0):new p(l(e,t),Math.atan2(t,e))},abs:function(){return o(this.re,this.im)},arg:function(){return Math.atan2(this.im,this.re)},sin:function(){let e=this.re,t=this.im;return new p(Math.sin(e)*i(t),Math.cos(e)*a(t))},cos:function(){let e=this.re,t=this.im;return new p(Math.cos(e)*i(t),-Math.sin(e)*a(t))},tan:function(){let e=2*this.re,t=2*this.im,r=Math.cos(e)+i(t);return new p(Math.sin(e)/r,a(t)/r)},cot:function(){let e=2*this.re,t=2*this.im,r=Math.cos(e)-i(t);return new p(-Math.sin(e)/r,a(t)/r)},sec:function(){let e=this.re,t=this.im,r=.5*i(2*t)+.5*Math.cos(2*e);return new p(Math.cos(e)*i(t)/r,Math.sin(e)*a(t)/r)},csc:function(){let e=this.re,t=this.im,r=.5*i(2*t)-.5*Math.cos(2*e);return new p(Math.sin(e)*i(t)/r,-Math.cos(e)*a(t)/r)},asin:function(){let e=this.re,t=this.im,r=new p(t*t-e*e+1,-2*e*t).sqrt(),n=new p(r.re-t,r.im+e).log();return new p(n.im,-n.re)},acos:function(){let e=this.re,t=this.im,r=new p(t*t-e*e+1,-2*e*t).sqrt(),n=new p(r.re-t,r.im+e).log();return new p(Math.PI/2-n.im,n.re)},atan:function(){let e=this.re,t=this.im;if(0===e){if(1===t)return new p(0,1/0);if(-1===t)return new p(0,-1/0)}let r=e*e+(1-t)*(1-t),n=new p((1-t*t-e*e)/r,-2*e/r).log();return new p(-.5*n.im,.5*n.re)},acot:function(){let e=this.re,t=this.im;if(0===t)return new p(Math.atan2(1,e),0);let r=e*e+t*t;return 0!==r?new p(e/r,-t/r).atan():new p(0!==e?e/0:0,0!==t?-t/0:0).atan()},asec:function(){let e=this.re,t=this.im;if(0===e&&0===t)return new p(0,1/0);let r=e*e+t*t;return 0!==r?new p(e/r,-t/r).acos():new p(0!==e?e/0:0,0!==t?-t/0:0).acos()},acsc:function(){let e=this.re,t=this.im;if(0===e&&0===t)return new p(Math.PI/2,1/0);let r=e*e+t*t;return 0!==r?new p(e/r,-t/r).asin():new p(0!==e?e/0:0,0!==t?-t/0:0).asin()},sinh:function(){let e=this.re,t=this.im;return new p(a(e)*Math.cos(t),i(e)*Math.sin(t))},cosh:function(){let e=this.re,t=this.im;return new p(i(e)*Math.cos(t),a(e)*Math.sin(t))},tanh:function(){let e=2*this.re,t=2*this.im,r=i(e)+Math.cos(t);return new p(a(e)/r,Math.sin(t)/r)},coth:function(){let e=2*this.re,t=2*this.im,r=i(e)-Math.cos(t);return new p(a(e)/r,-Math.sin(t)/r)},csch:function(){let e=this.re,t=this.im,r=Math.cos(2*t)-i(2*e);return new p(-2*a(e)*Math.cos(t)/r,2*i(e)*Math.sin(t)/r)},sech:function(){let e=this.re,t=this.im,r=Math.cos(2*t)+i(2*e);return new p(2*i(e)*Math.cos(t)/r,-2*a(e)*Math.sin(t)/r)},asinh:function(){let e=this.re,t=this.im;if(0===t){if(0===e)return new p(0,0);let t=Math.abs(e),r=Math.log(t+Math.sqrt(t*t+1));return new p(e<0?-r:r,0)}let r=new p(e*e-t*t+1,2*e*t).sqrt();return new p(e+r.re,t+r.im).log()},acosh:function(){let e=this.re,t=this.im;if(0===t){if(e>1)return new p(Math.log(e+Math.sqrt(e-1)*Math.sqrt(e+1)),0);if(e<-1){let t=Math.sqrt(e*e-1);return new p(Math.log(-e+t),Math.PI)}return new p(0,Math.acos(e))}let r=new p(e-1,t).sqrt(),n=new p(e+1,t).sqrt();return new p(e+r.re*n.re-r.im*n.im,t+r.re*n.im+r.im*n.re).log()},atanh:function(){let e=this.re,t=this.im;if(0===t)return 0===e?new p(0,0):1===e?new p(1/0,0):-1===e?new p(-1/0,0):-1<e&&e<1?new p(.5*Math.log((1+e)/(1-e)),0):e>1?new p(.5*Math.log((e+1)/(e-1)),-Math.PI/2):new p(.5*Math.log(-((1+e)/(1-e))),Math.PI/2);let r=1-e,n=1+e,i=r*r+t*t;if(0===i)return new p(-1!==e?e/0:0,0!==t?t/0:0);let a=(n*r-t*t)/i,o=(t*r+n*t)/i;return new p(l(a,o)/2,Math.atan2(o,a)/2)},acoth:function(){let e=this.re,t=this.im;if(0===e&&0===t)return new p(0,Math.PI/2);let r=e*e+t*t;return 0!==r?new p(e/r,-t/r).atanh():new p(0!==e?e/0:0,0!==t?-t/0:0).atanh()},acsch:function(){let e=this.re,t=this.im;if(0===t){if(0===e)return new p(1/0,0);let t=1/e;return new p(Math.log(t+Math.sqrt(t*t+1)),0)}let r=e*e+t*t;return 0!==r?new p(e/r,-t/r).asinh():new p(0!==e?e/0:0,0!==t?-t/0:0).asinh()},asech:function(){let e=this.re,t=this.im;if(this.isZero())return p.INFINITY;let r=e*e+t*t;return 0!==r?new p(e/r,-t/r).acosh():new p(0!==e?e/0:0,0!==t?-t/0:0).acosh()},inverse:function(){if(this.isZero())return p.INFINITY;if(this.isInfinite())return p.ZERO;let e=this.re,t=this.im,r=e*e+t*t;return new p(e/r,-t/r)},conjugate:function(){return new p(this.re,-this.im)},neg:function(){return new p(-this.re,-this.im)},ceil:function(e){return e=Math.pow(10,e||0),new p(Math.ceil(this.re*e)/e,Math.ceil(this.im*e)/e)},floor:function(e){return e=Math.pow(10,e||0),new p(Math.floor(this.re*e)/e,Math.floor(this.im*e)/e)},round:function(e){return e=Math.pow(10,e||0),new p(Math.round(this.re*e)/e,Math.round(this.im*e)/e)},equals:function(e,t){let r=c(e,t);return Math.abs(r.re-this.re)<=p.EPSILON&&Math.abs(r.im-this.im)<=p.EPSILON},clone:function(){return new p(this.re,this.im)},toString:function(){let e=this.re,t=this.im,r="";return this.isNaN()?"NaN":this.isInfinite()?"Infinity":(Math.abs(e)<p.EPSILON&&(e=0),Math.abs(t)<p.EPSILON&&(t=0),0===t)?r+e:(0!==e?(r+=e,r+=" ",t<0?(t=-t,r+="-"):r+="+",r+=" "):t<0&&(t=-t,r+="-"),1!==t&&(r+=t),r+"i")},toVector:function(){return[this.re,this.im]},valueOf:function(){return 0===this.im?this.re:null},isNaN:function(){return isNaN(this.re)||isNaN(this.im)},isZero:function(){return 0===this.im&&0===this.re},isFinite:function(){return isFinite(this.re)&&isFinite(this.im)},isInfinite:function(){return!this.isFinite()}},p.ZERO=new p(0,0),p.ONE=new p(1,0),p.I=new p(0,1),p.PI=new p(Math.PI,0),p.E=new p(Math.E,0),p.INFINITY=new p(1/0,1/0),p.NAN=new p(NaN,NaN),p.EPSILON=1e-15;var d=r(55624),f=r(46797),h=r(1207),m=(0,h.P9)("Complex",[],()=>(p.prototype.type="Complex",p.prototype.isComplex=!0,p.prototype.toJSON=function(){return{mathjs:"Complex",re:this.re,im:this.im}},p.prototype.toPolar=function(){return{r:this.abs(),phi:this.arg()}},p.prototype.format=function(e){var t=this.im,r=this.re,n=(0,d.GP)(this.re,e),i=(0,d.GP)(this.im,e),a=(0,f.Et)(e)?e:e?e.precision:null;if(null!==a){var o=Math.pow(10,-a);Math.abs(r/t)<o&&(r=0),Math.abs(t/r)<o&&(t=0)}return 0===t?n:0===r?1===t?"i":-1===t?"-i":i+"i":t<0?-1===t?n+" - i":n+" - "+i.substring(1)+"i":1===t?n+" + i":n+" + "+i+"i"},p.fromPolar=function(e){switch(arguments.length){case 1:var t=arguments[0];if("object"==typeof t)return p(t);throw TypeError("Input has to be an object with r and phi keys.");case 2:var r=arguments[0],n=arguments[1];if((0,f.Et)(r)){if((0,f.vO)(n)&&n.hasBase("ANGLE")&&(n=n.toNumber("rad")),(0,f.Et)(n))return new p({r,phi:n});throw TypeError("Phi is not a number nor an angle unit.")}throw TypeError("Radius r is not a number.");default:throw SyntaxError("Wrong number of arguments in function fromPolar")}},p.prototype.valueOf=p.prototype.toString,p.fromJSON=function(e){return new p(e)},p.compare=function(e,t){return e.re>t.re?1:e.re<t.re?-1:e.im>t.im?1:e.im<t.im?-1:0},p),{isClass:!0}),g=r(80185),v={s:1,n:0,d:1};function y(e,t){if(isNaN(e=parseInt(e,10)))throw N();return e*t}function b(e,t){if(0===t)throw M();var r=Object.create(A.prototype);r.s=e<0?-1:1;var n=_(e=e<0?-e:e,t);return r.n=e/n,r.d=t/n,r}function w(e){for(var t={},r=e,n=2,i=4;i<=r;){for(;r%n==0;)r/=n,t[n]=(t[n]||0)+1;i+=1+2*n++}return r!==e?r>1&&(t[r]=(t[r]||0)+1):t[e]=(t[e]||0)+1,t}var x=function(e,t){var r,n=0,i=1,a=1,o=0,s=0,l=0,u=1,c=1,p=0,d=1,f=1,h=1;if(null==e);else if(void 0!==t){if(a=(n=e)*(i=t),n%1!=0||i%1!=0)throw S()}else switch(typeof e){case"object":if("d"in e&&"n"in e)n=e.n,i=e.d,"s"in e&&(n*=e.s);else if(0 in e)n=e[0],1 in e&&(i=e[1]);else throw N();a=n*i;break;case"number":if(e<0&&(a=e,e=-e),e%1==0)n=e;else if(e>0){for(e>=1&&(c=Math.pow(10,Math.floor(1+Math.log(e)/Math.LN10)),e/=c);d<=1e7&&h<=1e7;){if(e===(r=(p+f)/(d+h))){d+h<=1e7?(n=p+f,i=d+h):h>d?(n=f,i=h):(n=p,i=d);break}e>r?(p+=f,d+=h):(f+=p,h+=d),d>1e7?(n=f,i=h):(n=p,i=d)}n*=c}else(isNaN(e)||isNaN(t))&&(i=n=NaN);break;case"string":if(null===(d=e.match(/\d+|./g)))throw N();if("-"===d[p]?(a=-1,p++):"+"===d[p]&&p++,d.length===p+1?s=y(d[p++],a):"."===d[p+1]||"."===d[p]?("."!==d[p]&&(o=y(d[p++],a)),(++p+1===d.length||"("===d[p+1]&&")"===d[p+3]||"'"===d[p+1]&&"'"===d[p+3])&&(s=y(d[p],a),u=Math.pow(10,d[p].length),p++),("("===d[p]&&")"===d[p+2]||"'"===d[p]&&"'"===d[p+2])&&(l=y(d[p+1],a),c=Math.pow(10,d[p+1].length)-1,p+=3)):"/"===d[p+1]||":"===d[p+1]?(s=y(d[p],a),u=y(d[p+2],1),p+=3):"/"===d[p+3]&&" "===d[p+1]&&(o=y(d[p],a),s=y(d[p+2],a),u=y(d[p+4],1),p+=5),d.length<=p){a=n=l+(i=u*c)*o+c*s;break}default:throw N()}if(0===i)throw M();v.s=a<0?-1:1,v.n=Math.abs(n),v.d=Math.abs(i)};function _(e,t){if(!e)return t;if(!t)return e;for(;;){if(!(e%=t))return t;if(!(t%=e))return e}}function A(e,t){if(x(e,t),!(this instanceof A))return b(v.s*v.n,v.d);e=_(v.d,v.n),this.s=v.s,this.n=v.n/e,this.d=v.d/e}var M=function(){return Error("Division by Zero")},N=function(){return Error("Invalid argument")},S=function(){return Error("Parameters must be integer")};A.prototype={s:1,n:0,d:1,abs:function(){return b(this.n,this.d)},neg:function(){return b(-this.s*this.n,this.d)},add:function(e,t){return x(e,t),b(this.s*this.n*v.d+v.s*this.d*v.n,this.d*v.d)},sub:function(e,t){return x(e,t),b(this.s*this.n*v.d-v.s*this.d*v.n,this.d*v.d)},mul:function(e,t){return x(e,t),b(this.s*v.s*this.n*v.n,this.d*v.d)},div:function(e,t){return x(e,t),b(this.s*v.s*this.n*v.d,this.d*v.n)},clone:function(){return b(this.s*this.n,this.d)},mod:function(e,t){if(isNaN(this.n)||isNaN(this.d))return new A(NaN);if(void 0===e)return b(this.s*this.n%this.d,1);if(x(e,t),0===v.n&&0===this.d)throw M();return b(this.s*(v.d*this.n)%(v.n*this.d),v.d*this.d)},gcd:function(e,t){return x(e,t),b(_(v.n,this.n)*_(v.d,this.d),v.d*this.d)},lcm:function(e,t){return(x(e,t),0===v.n&&0===this.n)?b(0,1):b(v.n*this.n,_(v.n,this.n)*_(v.d,this.d))},ceil:function(e){return(e=Math.pow(10,e||0),isNaN(this.n)||isNaN(this.d))?new A(NaN):b(Math.ceil(e*this.s*this.n/this.d),e)},floor:function(e){return(e=Math.pow(10,e||0),isNaN(this.n)||isNaN(this.d))?new A(NaN):b(Math.floor(e*this.s*this.n/this.d),e)},round:function(e){return(e=Math.pow(10,e||0),isNaN(this.n)||isNaN(this.d))?new A(NaN):b(Math.round(e*this.s*this.n/this.d),e)},roundTo:function(e,t){return x(e,t),b(this.s*Math.round(this.n*v.d/(this.d*v.n))*v.n,v.d)},inverse:function(){return b(this.s*this.d,this.n)},pow:function(e,t){if(x(e,t),1===v.d)if(v.s<0)return b(Math.pow(this.s*this.d,v.n),Math.pow(this.n,v.n));else return b(Math.pow(this.s*this.n,v.n),Math.pow(this.d,v.n));if(this.s<0)return null;var r=w(this.n),n=w(this.d),i=1,a=1;for(var o in r)if("1"!==o){if("0"===o){i=0;break}if(r[o]*=v.n,r[o]%v.d!=0)return null;r[o]/=v.d,i*=Math.pow(o,r[o])}for(var o in n)if("1"!==o){if(n[o]*=v.n,n[o]%v.d!=0)return null;n[o]/=v.d,a*=Math.pow(o,n[o])}return v.s<0?b(a,i):b(i,a)},equals:function(e,t){return x(e,t),this.s*this.n*v.d==v.s*v.n*this.d},compare:function(e,t){x(e,t);var r=this.s*this.n*v.d-v.s*v.n*this.d;return(0<r)-(r<0)},simplify:function(e){if(isNaN(this.n)||isNaN(this.d))return this;e=e||.001;for(var t=this.abs(),r=t.toContinued(),n=1;n<r.length;n++){for(var i=b(r[n-1],1),a=n-2;a>=0;a--)i=i.inverse().add(r[a]);if(Math.abs(i.sub(t).valueOf())<e)return i.mul(this.s)}return this},divisible:function(e,t){return x(e,t),!(!(v.n*this.d)||this.n*v.d%(v.n*this.d))},valueOf:function(){return this.s*this.n/this.d},toFraction:function(e){var t,r="",n=this.n,i=this.d;return this.s<0&&(r+="-"),1===i?r+=n:(e&&(t=Math.floor(n/i))>0&&(r+=t,r+=" ",n%=i),r+=n,r+="/",r+=i),r},toLatex:function(e){var t,r="",n=this.n,i=this.d;return this.s<0&&(r+="-"),1===i?r+=n:(e&&(t=Math.floor(n/i))>0&&(r+=t,n%=i),r+="\\frac{",r+=n,r+="}{",r+=i,r+="}"),r},toContinued:function(){var e,t=this.n,r=this.d,n=[];if(isNaN(t)||isNaN(r))return n;do n.push(Math.floor(t/r)),e=t%r,t=r,r=e;while(1!==t);return n},toString:function(e){var t=this.n,r=this.d;if(isNaN(t)||isNaN(r))return"NaN";e=e||15;var n=function(e){for(;e%2==0;e/=2);for(;e%5==0;e/=5);if(1===e)return 0;for(var t=10%e,r=1;1!==t;r++)if(t=10*t%e,r>2e3)return 0;return r}(r),i=function(e,t){for(var r=1,n=function(e,t,r){for(var n=1;t>0;e=e*e%r,t>>=1)1&t&&(n=n*e%r);return n}(10,t,e),i=0;i<300;i++){if(r===n)return i;r=10*r%e,n=10*n%e}return 0}(r,n),a=this.s<0?"-":"";if(a+=t/r|0,t%=r,(t*=10)&&(a+="."),n){for(var o=i;o--;)a+=t/r|0,t%=r,t*=10;a+="(";for(var o=n;o--;)a+=t/r|0,t%=r,t*=10;a+=")"}else for(var o=e;t&&o--;)a+=t/r|0,t%=r,t*=10;return a}};var k=(0,h.P9)("Fraction",[],()=>(A.prototype.type="Fraction",A.prototype.isFraction=!0,A.prototype.toJSON=function(){return{mathjs:"Fraction",n:this.s*this.n,d:this.d}},A.fromJSON=function(e){return new A(e)},A),{isClass:!0}),E=r(42915),O=r(32718);function C(e,t){return!!e&&"object"==typeof e&&(!!(0,O.mQ)($,t)||!(t in Object.prototype)&&!(t in Function.prototype))}function T(e){return"object"==typeof e&&e&&e.constructor===Object}var $={length:!0,name:!0},R={toString:!0,valueOf:!0,toLocaleString:!0};class I{constructor(e){this.wrappedObject=e}keys(){return Object.keys(this.wrappedObject)}get(e){var t,r,n=this.wrappedObject;if(T(n)&&C(n,e))return n[e];if("function"==typeof n[e]&&(t=n,r=e,!(null==t||"function"!=typeof t[r]||(0,O.mQ)(t,r)&&Object.getPrototypeOf&&r in Object.getPrototypeOf(t))&&((0,O.mQ)(R,r)||!(r in Object.prototype)&&!(r in Function.prototype))))throw Error('Cannot access method "'+e+'" as a property');throw Error('No access to property "'+e+'"')}set(e,t){return!function(e,t,r){if(T(e)&&C(e,t))return e[t]=r;throw Error('No access to property "'+t+'"')}(this.wrappedObject,e,t),this}has(e){return e in this.wrappedObject}}function j(e){return!!e&&(e instanceof Map||e instanceof I||"function"==typeof e.set&&"function"==typeof e.get&&"function"==typeof e.keys&&"function"==typeof e.has)}var P=function(){return P=E.create,E},z=(0,h.P9)("typed",["?BigNumber","?Complex","?DenseMatrix","?Fraction"],function(e){var{BigNumber:t,Complex:r,DenseMatrix:n,Fraction:i}=e,a=P();return a.types=[{name:"number",test:f.Et},{name:"Complex",test:f.Zd},{name:"BigNumber",test:f.C4},{name:"Fraction",test:f.fU},{name:"Unit",test:f.vO},{name:"string",test:f.Kg},{name:"Chain",test:f.o_},{name:"Array",test:f.cy},{name:"Matrix",test:f.OA},{name:"DenseMatrix",test:f.zR},{name:"SparseMatrix",test:f.AF},{name:"Range",test:f._Z},{name:"Index",test:f.nw},{name:"boolean",test:f.Lm},{name:"ResultSet",test:f.eW},{name:"Help",test:f.gS},{name:"function",test:f.Tn},{name:"Date",test:f.$P},{name:"RegExp",test:f.gd},{name:"null",test:f.kZ},{name:"undefined",test:f.b0},{name:"AccessorNode",test:f.AS},{name:"ArrayNode",test:f.gO},{name:"AssignmentNode",test:f.qM},{name:"BlockNode",test:f.CD},{name:"ConditionalNode",test:f.PO},{name:"ConstantNode",test:f.BA},{name:"FunctionNode",test:f.Px},{name:"FunctionAssignmentNode",test:f.m2},{name:"IndexNode",test:f.$I},{name:"Node",test:f.Ll},{name:"ObjectNode",test:f.GJ},{name:"OperatorNode",test:f.$$},{name:"ParenthesisNode",test:f.tv},{name:"RangeNode",test:f.Ye},{name:"SymbolNode",test:f.li},{name:"Map",test:j},{name:"Object",test:f.Gv}],a.conversions=[{from:"number",to:"BigNumber",convert:function(e){if(t||Z(e),(0,d.vm)(e)>15)throw TypeError("Cannot implicitly convert a number with >15 significant digits to BigNumber (value: "+e+"). Use function bignumber(x) to convert to BigNumber.");return new t(e)}},{from:"number",to:"Complex",convert:function(e){return r||D(e),new r(e,0)}},{from:"number",to:"string",convert:function(e){return e+""}},{from:"BigNumber",to:"Complex",convert:function(e){return r||D(e),new r(e.toNumber(),0)}},{from:"Fraction",to:"BigNumber",convert:function(e){throw TypeError("Cannot implicitly convert a Fraction to BigNumber or vice versa. Use function bignumber(x) to convert to BigNumber or fraction(x) to convert to Fraction.")}},{from:"Fraction",to:"Complex",convert:function(e){return r||D(e),new r(e.valueOf(),0)}},{from:"number",to:"Fraction",convert:function(e){i||F(e);var t=new i(e);if(t.valueOf()!==e)throw TypeError("Cannot implicitly convert a number to a Fraction when there will be a loss of precision (value: "+e+"). Use function fraction(x) to convert to Fraction.");return t}},{from:"string",to:"number",convert:function(e){var t=Number(e);if(isNaN(t))throw Error('Cannot convert "'+e+'" to a number');return t}},{from:"string",to:"BigNumber",convert:function(e){t||Z(e);try{return new t(e)}catch(t){throw Error('Cannot convert "'+e+'" to BigNumber')}}},{from:"string",to:"Fraction",convert:function(e){i||F(e);try{return new i(e)}catch(t){throw Error('Cannot convert "'+e+'" to Fraction')}}},{from:"string",to:"Complex",convert:function(e){r||D(e);try{return new r(e)}catch(t){throw Error('Cannot convert "'+e+'" to Complex')}}},{from:"boolean",to:"number",convert:function(e){return+e}},{from:"boolean",to:"BigNumber",convert:function(e){return t||Z(e),new t(+e)}},{from:"boolean",to:"Fraction",convert:function(e){return i||F(e),new i(+e)}},{from:"boolean",to:"string",convert:function(e){return String(e)}},{from:"Array",to:"Matrix",convert:function(e){return n||function(){throw Error("Cannot convert array into a Matrix: no class 'DenseMatrix' provided")}(),new n(e)}},{from:"Matrix",to:"Array",convert:function(e){return e.valueOf()}}],a});function Z(e){throw Error("Cannot convert value ".concat(e," into a BigNumber: no class 'BigNumber' provided"))}function D(e){throw Error("Cannot convert value ".concat(e," into a Complex number: no class 'Complex' provided"))}function F(e){throw Error("Cannot convert value ".concat(e," into a Fraction, no class 'Fraction' provided."))}var L={BigNumberDependencies:n.P,ComplexDependencies:{createComplexClass:m},DenseMatrixDependencies:g.k,FractionDependencies:{createFractionClass:k},createTyped:z}},15562(e,t,r){"use strict";function n(e,t,r){if(!(this instanceof n))throw SyntaxError("Constructor must be called with the new operator");this.actual=e,this.expected=t,this.relation=r,this.message="Dimension mismatch ("+(Array.isArray(e)?"["+e.join(", ")+"]":e)+" "+(this.relation||"!=")+" "+(Array.isArray(t)?"["+t.join(", ")+"]":t)+")",this.stack=Error().stack}r.d(t,{h:()=>n}),n.prototype=RangeError(),n.prototype.constructor=RangeError,n.prototype.name="DimensionError",n.prototype.isDimensionError=!0},16086(e,t,r){"use strict";function n(e,t,r){if(!(this instanceof n))throw SyntaxError("Constructor must be called with the new operator");this.index=e,arguments.length<3?(this.min=0,this.max=t):(this.min=t,this.max=r),void 0!==this.min&&this.index<this.min?this.message="Index out of range ("+this.index+" < "+this.min+")":void 0!==this.max&&this.index>=this.max?this.message="Index out of range ("+this.index+" > "+(this.max-1)+")":this.message="Index out of range ("+this.index+")",this.stack=Error().stack}r.d(t,{d:()=>n}),n.prototype=RangeError(),n.prototype.constructor=RangeError,n.prototype.name="IndexError",n.prototype.isIndexError=!0},34046(e,t,r){"use strict";r.d(t,{Wf:()=>a,aU:()=>i});var n=r(55624);function i(e,t){var r;if(!(0,n.YN)(e)||!(0,n.YN)(t))throw Error("Parameters in function gcd must be integer numbers");for(;0!==t;)r=e%t,e=t,t=r;return e<0?-e:e}function a(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;if(!(0,n.YN)(t)||t<0||t>15)throw Error("Number of decimals in function round must be an integer from 0 to 15 inclusive");return parseFloat((0,n.Mg)(e,t))}i.signature="number, number"},77666(e,t,r){"use strict";r.d(t,{f:()=>a});var n=r(1207),i=r(32718),a=(0,n.P9)("algorithm14",["typed"],e=>{var{typed:t}=e;return function(e,r,n,a){var o,s=e._data,l=e._size,u=e._datatype,c=n;"string"==typeof u&&(o=u,r=t.convert(r,o),c=t.find(n,[o,o]));var p=l.length>0?function e(t,r,n,i,a,o,s){var l=[];if(r===n.length-1)for(var u=0;u<i;u++)l[u]=s?t(o,a[u]):t(a[u],o);else for(var c=0;c<i;c++)l[c]=e(t,r+1,n,n[r+1],a[c],o,s);return l}(c,0,l,l[0],s,r,a):[];return e.createDenseMatrix({data:p,size:(0,i.o8)(l),datatype:o})}})},49204(e,t,r){"use strict";r.d(t,{LO:()=>l,XR:()=>p,cs:()=>f,gR:()=>g,iD:()=>m,ig:()=>function e(t,r){for(var n,i=0,a=0;a<t.length;a++){var o=t[a],s=Array.isArray(o);if(0===a&&s&&(i=o.length),s&&o.length!==i)return;var l=s?e(o,r):r(o);if(void 0===n)n=l;else if(n!==l)return"mixed"}return n},r7:()=>c,tQ:()=>d,tf:()=>u});var n=r(55624),i=r(46797),a=r(93988),o=r(15562),s=r(16086);function l(e){for(var t=[];Array.isArray(e);)t.push(e.length),e=e[0];return t}function u(e,t){if(0===t.length){if(Array.isArray(e))throw new o.h(e.length,0)}else!function e(t,r,n){var i,a=t.length;if(a!==r[n])throw new o.h(a,r[n]);if(n<r.length-1){var s=n+1;for(i=0;i<a;i++){if(!Array.isArray(t[i]))throw new o.h(r.length-1,r.length,"<");e(t[i],r,s)}}else for(i=0;i<a;i++)if(Array.isArray(t[i]))throw new o.h(r.length+1,r.length,">")}(e,t,0)}function c(e,t){if(!(0,i.Et)(e)||!(0,n.YN)(e))throw TypeError("Index must be an integer (value: "+e+")");if(e<0||"number"==typeof t&&e>=t)throw new s.d(e,t)}function p(e,t,r){if(!Array.isArray(e)||!Array.isArray(t))throw TypeError("Array expected");if(0===t.length)throw Error("Resizing to scalar is not supported");return t.forEach(function(e){if(!(0,i.Et)(e)||!(0,n.YN)(e)||e<0)throw TypeError("Invalid size, must contain positive integers (size: "+(0,a.GP)(t)+")")}),function e(t,r,n,i){var a,o,s=t.length,l=r[n],u=Math.min(s,l);if(t.length=l,n<r.length-1){var c=n+1;for(a=0;a<u;a++)Array.isArray(o=t[a])||(o=[o],t[a]=o),e(o,r,c,i);for(a=u;a<l;a++)o=[],t[a]=o,e(o,r,c,i)}else{for(a=0;a<u;a++)for(;Array.isArray(t[a]);)t[a]=t[a][0];for(a=u;a<l;a++)t[a]=i}}(e,t,0,void 0!==r?r:0),e}function d(e,t){var r=function(e){if(!Array.isArray(e))return e;var t=[];return e.forEach(function e(r){Array.isArray(r)?r.forEach(e):t.push(r)}),t}(e),n=r.length;if(!Array.isArray(e)||!Array.isArray(t))throw TypeError("Array expected");if(0===t.length)throw new o.h(0,n,"!=");var i=h(t=f(t,n));if(n!==i)throw new o.h(i,n,"!=");try{return function(e,t){for(var r,n=e,i=t.length-1;i>0;i--){var a=t[i];r=[];for(var o=n.length/a,s=0;s<o;s++)r.push(n.slice(s*a,(s+1)*a));n=r}return n}(r,t)}catch(e){if(e instanceof o.h)throw new o.h(i,n,"!=");throw e}}function f(e,t){var r=h(e),n=e.slice(),i=e.indexOf(-1);if(e.indexOf(-1,i+1)>=0)throw Error("More than one wildcard in sizes");if(i>=0)if(t%r==0)n[i]=-t/r;else throw Error("Could not replace wildcard, since "+t+" is no multiple of "+-r);return n}function h(e){return e.reduce((e,t)=>e*t,1)}function m(e,t,r,n){var i=n||l(e);if(r)for(var a=0;a<r;a++)e=[e],i.unshift(1);for(e=function e(t,r,n){var i,a;if(Array.isArray(t)){var o=n+1;for(i=0,a=t.length;i<a;i++)t[i]=e(t[i],r,o)}else for(var s=n;s<r;s++)t=[t];return t}(e,t,0);i.length<t;)i.push(1);return e}function g(e,t){return -1!==e.indexOf(t)}},1207(e,t,r){"use strict";r.d(t,{P9:()=>i,Py:()=>o,T$:()=>a});var n=r(32718);function i(e,t,r,i){function a(i){var a=(0,n.K)(i,t.map(o));return function(e,t,r){if(!t.filter(e=>{var t;return!((t=e)&&"?"===t[0])}).every(e=>void 0!==r[e])){var n=t.filter(e=>void 0===r[e]);throw Error('Cannot create function "'.concat(e,'", ')+"some dependencies are missing: ".concat(n.map(e=>'"'.concat(e,'"')).join(", "),"."))}}(e,t,i),r(a)}return a.isFactory=!0,a.fn=e,a.dependencies=t.slice().sort(),i&&(a.meta=i),a}function a(e){return"function"==typeof e&&"string"==typeof e.fn&&Array.isArray(e.dependencies)}function o(e){return e&&"?"===e[0]?e.slice(1):e}},46797(e,t,r){"use strict";function n(e){return"number"==typeof e}function i(e){return!!e&&"object"==typeof e&&"function"==typeof e.constructor&&(!0===e.isBigNumber&&"object"==typeof e.constructor.prototype&&!0===e.constructor.prototype.isBigNumber||"function"==typeof e.constructor.isDecimal&&!0===e.constructor.isDecimal(e))}function a(e){return e&&"object"==typeof e&&!0===Object.getPrototypeOf(e).isComplex||!1}function o(e){return e&&"object"==typeof e&&!0===Object.getPrototypeOf(e).isFraction||!1}function s(e){return e&&!0===e.constructor.prototype.isUnit||!1}function l(e){return"string"==typeof e}r.d(t,{$$:()=>P,$I:()=>R,$P:()=>w,AF:()=>f,AS:()=>N,BA:()=>C,C4:()=>i,CD:()=>E,Et:()=>n,GJ:()=>j,Gv:()=>_,Kg:()=>l,Ll:()=>I,Lm:()=>g,OA:()=>c,P3:()=>p,PO:()=>O,Px:()=>$,QP:()=>L,Tn:()=>b,Ye:()=>Z,Zd:()=>a,_Z:()=>h,b0:()=>M,cy:()=>u,eW:()=>v,fU:()=>o,gO:()=>S,gS:()=>y,gd:()=>x,kZ:()=>A,li:()=>D,m2:()=>T,nw:()=>m,o_:()=>F,qM:()=>k,tv:()=>z,vO:()=>s,zR:()=>d});var u=Array.isArray;function c(e){return e&&!0===e.constructor.prototype.isMatrix||!1}function p(e){return Array.isArray(e)||c(e)}function d(e){return e&&e.isDenseMatrix&&!0===e.constructor.prototype.isMatrix||!1}function f(e){return e&&e.isSparseMatrix&&!0===e.constructor.prototype.isMatrix||!1}function h(e){return e&&!0===e.constructor.prototype.isRange||!1}function m(e){return e&&!0===e.constructor.prototype.isIndex||!1}function g(e){return"boolean"==typeof e}function v(e){return e&&!0===e.constructor.prototype.isResultSet||!1}function y(e){return e&&!0===e.constructor.prototype.isHelp||!1}function b(e){return"function"==typeof e}function w(e){return e instanceof Date}function x(e){return e instanceof RegExp}function _(e){return!!(e&&"object"==typeof e&&e.constructor===Object&&!a(e)&&!o(e))}function A(e){return null===e}function M(e){return void 0===e}function N(e){return e&&!0===e.isAccessorNode&&!0===e.constructor.prototype.isNode||!1}function S(e){return e&&!0===e.isArrayNode&&!0===e.constructor.prototype.isNode||!1}function k(e){return e&&!0===e.isAssignmentNode&&!0===e.constructor.prototype.isNode||!1}function E(e){return e&&!0===e.isBlockNode&&!0===e.constructor.prototype.isNode||!1}function O(e){return e&&!0===e.isConditionalNode&&!0===e.constructor.prototype.isNode||!1}function C(e){return e&&!0===e.isConstantNode&&!0===e.constructor.prototype.isNode||!1}function T(e){return e&&!0===e.isFunctionAssignmentNode&&!0===e.constructor.prototype.isNode||!1}function $(e){return e&&!0===e.isFunctionNode&&!0===e.constructor.prototype.isNode||!1}function R(e){return e&&!0===e.isIndexNode&&!0===e.constructor.prototype.isNode||!1}function I(e){return e&&!0===e.isNode&&!0===e.constructor.prototype.isNode||!1}function j(e){return e&&!0===e.isObjectNode&&!0===e.constructor.prototype.isNode||!1}function P(e){return e&&!0===e.isOperatorNode&&!0===e.constructor.prototype.isNode||!1}function z(e){return e&&!0===e.isParenthesisNode&&!0===e.constructor.prototype.isNode||!1}function Z(e){return e&&!0===e.isRangeNode&&!0===e.constructor.prototype.isNode||!1}function D(e){return e&&!0===e.isSymbolNode&&!0===e.constructor.prototype.isNode||!1}function F(e){return e&&!0===e.constructor.prototype.isChain||!1}function L(e){var t=typeof e;return"object"===t?null===e?"null":Array.isArray(e)?"Array":e instanceof Date?"Date":e instanceof RegExp?"RegExp":i(e)?"BigNumber":a(e)?"Complex":o(e)?"Fraction":c(e)?"Matrix":s(e)?"Unit":m(e)?"Index":h(e)?"Range":v(e)?"ResultSet":I(e)?e.type:F(e)?"Chain":y(e)?"Help":"Object":"function"===t?"Function":t}},55624(e,t,r){"use strict";r.d(t,{GP:()=>d,IY:()=>c,Kk:()=>l,Mg:()=>h,YL:()=>s,YN:()=>i,_S:()=>a,_n:()=>u,p6:()=>o,q8:()=>w,vm:()=>y});var n=r(46797);function i(e){return"boolean"==typeof e||!!isFinite(e)&&e===Math.round(e)}var a=Math.sign||function(e){return e>0?1:e<0?-1:0},o=Math.log2||function(e){return Math.log(e)/Math.LN2},s=Math.log10||function(e){return Math.log(e)/Math.LN10},l=Math.log1p||function(e){return Math.log(e+1)},u=Math.cbrt||function(e){if(0===e)return e;var t,r=e<0;return r&&(e=-e),isFinite(e)?(t=Math.exp(Math.log(e)/3),t=(e/(t*t)+2*t)/3):t=e,r?-t:t},c=Math.expm1||function(e){return e>=2e-4||e<=-2e-4?Math.exp(e)-1:e+e*e/2+e*e*e/6};function p(e,t,r){var n="";if(r){if(r<1)throw Error("size must be in greater than 0");if(!i(r))throw Error("size must be an integer");if(e>2**(r-1)-1||e<-(2**(r-1)))throw Error("Value must be in range [-2^".concat(r-1,", 2^").concat(r-1,"-1]"));if(!i(e))throw Error("Value must be an integer");e<0&&(e+=2**r),n="i".concat(r)}var a="";return e<0&&(e=-e,a="-"),"".concat(a).concat({2:"0b",8:"0o",16:"0x"}[t]).concat(e.toString(t)).concat(n)}function d(e,t){if("function"==typeof t)return t(e);if(e===1/0)return"Infinity";if(e===-1/0)return"-Infinity";if(isNaN(e))return"NaN";var r,i,a="auto";if(t&&(t.notation&&(a=t.notation),(0,n.Et)(t)?r=t:(0,n.Et)(t.precision)&&(r=t.precision),t.wordSize)&&"number"!=typeof(i=t.wordSize))throw Error('Option "wordSize" must be a number');switch(a){case"fixed":return h(e,r);case"exponential":return m(e,r);case"engineering":return function(e,t){if(isNaN(e)||!isFinite(e))return String(e);var r=g(f(e),t),i=r.exponent,a=r.coefficients,o=i%3==0?i:i<0?i-3-i%3:i-i%3;if((0,n.Et)(t))for(;t>a.length||i-o+1>a.length;)a.push(0);else for(var s=Math.abs(i-o)-(a.length-1),l=0;l<s;l++)a.push(0);for(var u=Math.abs(i-o),c=1;u>0;)c++,u--;var p=a.slice(c).join(""),d=(0,n.Et)(t)&&p.length||p.match(/[1-9]/)?"."+p:"",h=a.slice(0,c).join("")+d+"e"+(i>=0?"+":"")+o.toString();return r.sign+h}(e,r);case"bin":return p(e,2,i);case"oct":return p(e,8,i);case"hex":return p(e,16,i);case"auto":return(function(e,t,r){if(isNaN(e)||!isFinite(e))return String(e);var n=r&&void 0!==r.lowerExp?r.lowerExp:-3,i=r&&void 0!==r.upperExp?r.upperExp:5,a=f(e),o=t?g(a,t):a;if(o.exponent<n||o.exponent>=i)return m(e,t);var s=o.coefficients,l=o.exponent;s.length<t&&(s=s.concat(v(t-s.length))),s=s.concat(v(l-s.length+1+(s.length<t?t-s.length:0))),s=v(-l).concat(s);var u=l>0?l:0;return u<s.length-1&&s.splice(u+1,0,"."),o.sign+s.join("")})(e,r,t&&t).replace(/((\.\d*?)(0+))($|e)/,function(){var e=arguments[2],t=arguments[4];return"."!==e?e+t:t});default:throw Error('Unknown notation "'+a+'". Choose "auto", "exponential", "fixed", "bin", "oct", or "hex.')}}function f(e){var t=String(e).toLowerCase().match(/^(-?)(\d+\.?\d*)(e([+-]?\d+))?$/);if(!t)throw SyntaxError("Invalid number "+e);var r=t[1],n=t[2],i=parseFloat(t[4]||"0"),a=n.indexOf(".");i+=-1!==a?a-1:n.length-1;var o=n.replace(".","").replace(/^0*/,function(e){return i-=e.length,""}).replace(/0*$/,"").split("").map(function(e){return parseInt(e)});return 0===o.length&&(o.push(0),i++),{sign:r,coefficients:o,exponent:i}}function h(e,t){if(isNaN(e)||!isFinite(e))return String(e);var r=f(e),n="number"==typeof t?g(r,r.exponent+1+t):r,i=n.coefficients,a=n.exponent+1,o=a+(t||0);return i.length<o&&(i=i.concat(v(o-i.length))),a<0&&(i=v(-a+1).concat(i),a=1),a<i.length&&i.splice(a,0,0===a?"0.":"."),n.sign+i.join("")}function m(e,t){if(isNaN(e)||!isFinite(e))return String(e);var r=f(e),n=t?g(r,t):r,i=n.coefficients,a=n.exponent;i.length<t&&(i=i.concat(v(t-i.length)));var o=i.shift();return n.sign+o+(i.length>0?"."+i.join(""):"")+"e"+(a>=0?"+":"")+a}function g(e,t){for(var r={sign:e.sign,coefficients:e.coefficients,exponent:e.exponent},n=r.coefficients;t<=0;)n.unshift(0),r.exponent++,t++;if(n.length>t&&n.splice(t,n.length-t)[0]>=5){var i=t-1;for(n[i]++;10===n[i];)n.pop(),0===i&&(n.unshift(0),r.exponent++,i++),i--,n[i]++}return r}function v(e){for(var t=[],r=0;r<e;r++)t.push(0);return t}function y(e){return e.toExponential().replace(/e.*$/,"").replace(/^0\.?0*|\./,"").length}var b=Number.EPSILON||2220446049250313e-31;function w(e,t,r){if(null==r)return e===t;if(e===t)return!0;if(isNaN(e)||isNaN(t))return!1;if(isFinite(e)&&isFinite(t)){var n=Math.abs(e-t);return n<b||n<=Math.max(Math.abs(e),Math.abs(t))*r}return!1}},32718(e,t,r){"use strict";r.d(t,{K:()=>u,Mx:()=>l,QO:()=>function e(t,r){var n,i,a;if(Array.isArray(t)){if(!Array.isArray(r)||t.length!==r.length)return!1;for(i=0,a=t.length;i<a;i++)if(!e(t[i],r[i]))return!1;return!0}if("function"==typeof t)return t===r;if(!(t instanceof Object))return t===r;if(Array.isArray(r)||!(r instanceof Object))return!1;for(n in t)if(!(n in r)||!e(t[n],r[n]))return!1;for(n in r)if(!(n in t))return!1;return!0},RZ:()=>o,mQ:()=>s,o8:()=>function e(t){var r=typeof t;if("number"===r||"string"===r||"boolean"===r||null==t)return t;if("function"==typeof t.clone)return t.clone();if(Array.isArray(t))return t.map(function(t){return e(t)});if(t instanceof Date)return new Date(t.valueOf());if((0,n.C4)(t))return t;if(t instanceof RegExp)throw TypeError("Cannot clone "+t);return i(t,e)},rU:()=>a,s8:()=>i,zu:()=>c,zw:()=>function e(t,r){if(Array.isArray(r))throw TypeError("Arrays are not supported by deepExtend");for(var n in r)if(s(r,n)&&!(n in Object.prototype)&&!(n in Function.prototype))if(r[n]&&r[n].constructor===Object)void 0===t[n]&&(t[n]={}),t[n]&&t[n].constructor===Object?e(t[n],r[n]):t[n]=r[n];else if(Array.isArray(r[n]))throw TypeError("Arrays are not supported by deepExtend");else t[n]=r[n];return t}});var n=r(46797);function i(e,t){var r={};for(var n in e)s(e,n)&&(r[n]=t(e[n]));return r}function a(e){var t={};return function e(t,r){for(var n in t)if(s(t,n)){var i=t[n];"object"==typeof i&&null!==i?e(i,r):r[n]=i}}(e,t),t}function o(e,t,r){var n,i=!0;Object.defineProperty(e,t,{get:function(){return i&&(n=r(),i=!1),n},set:function(e){n=e,i=!1},configurable:!0,enumerable:!0})}function s(e,t){return e&&Object.hasOwnProperty.call(e,t)}function l(e){return e&&"function"==typeof e.factory}function u(e,t){for(var r={},n=0;n<t.length;n++){var i=t[n],a=e[i];void 0!==a&&(r[i]=a)}return r}function c(e){return Object.keys(e).map(t=>e[t])}},93988(e,t,r){"use strict";r.d(t,{GP:()=>function e(t,r){var s=function(t,r){var s;if("number"==typeof t)return(0,i.GP)(t,r);if((0,n.C4)(t))return function(e,t){if("function"==typeof t)return t(e);if(!e.isFinite())return e.isNaN()?"NaN":e.gt(0)?"Infinity":"-Infinity";var r="auto";if(void 0!==t&&(t.notation&&(r=t.notation),"number"==typeof t?f=t:t.precision&&(f=t.precision),t.wordSize)&&"number"!=typeof(h=t.wordSize))throw Error('Option "wordSize" must be a number');switch(r){case"fixed":return n=e,i=f,n.toFixed(i);case"exponential":return o(e,f);case"engineering":return s=e,l=f,c=(u=s.e)%3==0?u:u<0?u-3-u%3:u-u%3,-1!==(d=(p=s.mul(Math.pow(10,-c))).toPrecision(l)).indexOf("e")&&(d=p.toString()),d+"e"+(u>=0?"+":"")+c.toString();case"bin":return a(e,2,h);case"oct":return a(e,8,h);case"hex":return a(e,16,h);case"auto":var n,i,s,l,u,c,p,d,f,h,m=t&&void 0!==t.lowerExp?t.lowerExp:-3,g=t&&void 0!==t.upperExp?t.upperExp:5;if(e.isZero())return"0";var v=e.toSignificantDigits(f),y=v.e;return(y>=m&&y<g?v.toFixed():o(e,f)).replace(/((\.\d*?)(0+))($|e)/,function(){var e=arguments[2],t=arguments[4];return"."!==e?e+t:t});default:throw Error('Unknown notation "'+r+'". Choose "auto", "exponential", "fixed", "bin", "oct", or "hex.')}}(t,r);if((s=t)&&"object"==typeof s&&"number"==typeof s.s&&"number"==typeof s.n&&"number"==typeof s.d)if(!r||"decimal"!==r.fraction)return t.s*t.n+"/"+t.d;else return t.toString();if(Array.isArray(t))return function t(r,n){if(!Array.isArray(r))return e(r,n);for(var i="[",a=r.length,o=0;o<a;o++)0!==o&&(i+=", "),i+=t(r[o],n);return i+"]"}(t,r);if((0,n.Kg)(t))return'"'+t+'"';if("function"==typeof t)return t.syntax?String(t.syntax):"function";if(t&&"object"==typeof t)if("function"==typeof t.format)return t.format(r);else return t&&t.toString(r)!==({}).toString()?t.toString(r):"{"+Object.keys(t).map(n=>'"'+n+'": '+e(t[n],r)).join(", ")+"}";return String(t)}(t,r);return r&&"object"==typeof r&&"truncate"in r&&s.length>r.truncate?s.substring(0,r.truncate-3)+"...":s}});var n=r(46797),i=r(55624);function a(e,t,r){var n=new e.constructor(2),a="";if(r){if(r<1)throw Error("size must be in greater than 0");if(!(0,i.YN)(r))throw Error("size must be an integer");if(e.greaterThan(n.pow(r-1).sub(1))||e.lessThan(n.pow(r-1).mul(-1)))throw Error("Value must be in range [-2^".concat(r-1,", 2^").concat(r-1,"-1]"));if(!e.isInteger())throw Error("Value must be an integer");e.lessThan(0)&&(e=e.add(n.pow(r))),a="i".concat(r)}switch(t){case 2:return"".concat(e.toBinary()).concat(a);case 8:return"".concat(e.toOctal()).concat(a);case 16:return"".concat(e.toHexadecimal()).concat(a);default:throw Error("Base ".concat(t," not supported "))}}function o(e,t){return void 0!==t?e.toExponential(t-1):e.toExponential()}},37830(e,t,r){"use strict";r.d(t,{G:()=>a,eq:()=>i});var n=r(86045);let i=n.ZS.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"]);class a extends Error{get errors(){return this.issues}constructor(e){super(),this.issues=[],this.addIssue=e=>{this.issues=[...this.issues,e]},this.addIssues=(e=[])=>{this.issues=[...this.issues,...e]};const t=new.target.prototype;Object.setPrototypeOf?Object.setPrototypeOf(this,t):this.__proto__=t,this.name="ZodError",this.issues=e}format(e){let t=e||function(e){return e.message},r={_errors:[]},n=e=>{for(let i of e.issues)if("invalid_union"===i.code)i.unionErrors.map(n);else if("invalid_return_type"===i.code)n(i.returnTypeError);else if("invalid_arguments"===i.code)n(i.argumentsError);else if(0===i.path.length)r._errors.push(t(i));else{let e=r,n=0;for(;n<i.path.length;){let r=i.path[n];n===i.path.length-1?(e[r]=e[r]||{_errors:[]},e[r]._errors.push(t(i))):e[r]=e[r]||{_errors:[]},e=e[r],n++}}};return n(this),r}static assert(e){if(!(e instanceof a))throw Error(`Not a ZodError: ${e}`)}toString(){return this.message}get message(){return JSON.stringify(this.issues,n.ZS.jsonStringifyReplacer,2)}get isEmpty(){return 0===this.issues.length}flatten(e=e=>e.message){let t={},r=[];for(let n of this.issues)if(n.path.length>0){let r=n.path[0];t[r]=t[r]||[],t[r].push(e(n))}else r.push(e(n));return{formErrors:r,fieldErrors:t}}get formErrors(){return this.flatten()}}a.create=e=>new a(e)},86045(e,t,r){"use strict";var n,i,a;r.d(t,{CR:()=>s,ZS:()=>n,Zp:()=>o}),(a=n||(n={})).assertEqual=e=>{},a.assertIs=function(e){},a.assertNever=function(e){throw Error()},a.arrayToEnum=e=>{let t={};for(let r of e)t[r]=r;return t},a.getValidEnumValues=e=>{let t=a.objectKeys(e).filter(t=>"number"!=typeof e[e[t]]),r={};for(let n of t)r[n]=e[n];return a.objectValues(r)},a.objectValues=e=>a.objectKeys(e).map(function(t){return e[t]}),a.objectKeys="function"==typeof Object.keys?e=>Object.keys(e):e=>{let t=[];for(let r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.push(r);return t},a.find=(e,t)=>{for(let r of e)if(t(r))return r},a.isInteger="function"==typeof Number.isInteger?e=>Number.isInteger(e):e=>"number"==typeof e&&Number.isFinite(e)&&Math.floor(e)===e,a.joinValues=function(e,t=" | "){return e.map(e=>"string"==typeof e?`'${e}'`:e).join(t)},a.jsonStringifyReplacer=(e,t)=>"bigint"==typeof t?t.toString():t,(i||(i={})).mergeShapes=(e,t)=>({...e,...t});let o=n.arrayToEnum(["string","nan","number","integer","float","boolean","date","bigint","symbol","function","undefined","null","array","object","unknown","promise","void","never","map","set"]),s=e=>{switch(typeof e){case"undefined":return o.undefined;case"string":return o.string;case"number":return Number.isNaN(e)?o.nan:o.number;case"boolean":return o.boolean;case"function":return o.function;case"bigint":return o.bigint;case"symbol":return o.symbol;case"object":if(Array.isArray(e))return o.array;if(null===e)return o.null;if(e.then&&"function"==typeof e.then&&e.catch&&"function"==typeof e.catch)return o.promise;if("u">typeof Map&&e instanceof Map)return o.map;if("u">typeof Set&&e instanceof Set)return o.set;if("u">typeof Date&&e instanceof Date)return o.date;return o.object;default:return o.unknown}}},59140(e,t,r){"use strict";let n;r.d(t,{k5:()=>eR,gM:()=>eC,bz:()=>eS,g1:()=>eT,zM:()=>eN,ai:()=>eM,Ik:()=>eE,YO:()=>ek,Yj:()=>eA,eu:()=>e$,KC:()=>eO});var i,a,o,s,l=r(37830),u=r(86045);let c=(e,t)=>{let r;switch(e.code){case l.eq.invalid_type:r=e.received===u.Zp.undefined?"Required":`Expected ${e.expected}, received ${e.received}`;break;case l.eq.invalid_literal:r=`Invalid literal value, expected ${JSON.stringify(e.expected,u.ZS.jsonStringifyReplacer)}`;break;case l.eq.unrecognized_keys:r=`Unrecognized key(s) in object: ${u.ZS.joinValues(e.keys,", ")}`;break;case l.eq.invalid_union:r="Invalid input";break;case l.eq.invalid_union_discriminator:r=`Invalid discriminator value. Expected ${u.ZS.joinValues(e.options)}`;break;case l.eq.invalid_enum_value:r=`Invalid enum value. Expected ${u.ZS.joinValues(e.options)}, received '${e.received}'`;break;case l.eq.invalid_arguments:r="Invalid function arguments";break;case l.eq.invalid_return_type:r="Invalid function return type";break;case l.eq.invalid_date:r="Invalid date";break;case l.eq.invalid_string:"object"==typeof e.validation?"includes"in e.validation?(r=`Invalid input: must include "${e.validation.includes}"`,"number"==typeof e.validation.position&&(r=`${r} at one or more positions greater than or equal to ${e.validation.position}`)):"startsWith"in e.validation?r=`Invalid input: must start with "${e.validation.startsWith}"`:"endsWith"in e.validation?r=`Invalid input: must end with "${e.validation.endsWith}"`:u.ZS.assertNever(e.validation):r="regex"!==e.validation?`Invalid ${e.validation}`:"Invalid";break;case l.eq.too_small:r="array"===e.type?`Array must contain ${e.exact?"exactly":e.inclusive?"at least":"more than"} ${e.minimum} element(s)`:"string"===e.type?`String must contain ${e.exact?"exactly":e.inclusive?"at least":"over"} ${e.minimum} character(s)`:"number"===e.type||"bigint"===e.type?`Number must be ${e.exact?"exactly equal to ":e.inclusive?"greater than or equal to ":"greater than "}${e.minimum}`:"date"===e.type?`Date must be ${e.exact?"exactly equal to ":e.inclusive?"greater than or equal to ":"greater than "}${new Date(Number(e.minimum))}`:"Invalid input";break;case l.eq.too_big:r="array"===e.type?`Array must contain ${e.exact?"exactly":e.inclusive?"at most":"less than"} ${e.maximum} element(s)`:"string"===e.type?`String must contain ${e.exact?"exactly":e.inclusive?"at most":"under"} ${e.maximum} character(s)`:"number"===e.type?`Number must be ${e.exact?"exactly":e.inclusive?"less than or equal to":"less than"} ${e.maximum}`:"bigint"===e.type?`BigInt must be ${e.exact?"exactly":e.inclusive?"less than or equal to":"less than"} ${e.maximum}`:"date"===e.type?`Date must be ${e.exact?"exactly":e.inclusive?"smaller than or equal to":"smaller than"} ${new Date(Number(e.maximum))}`:"Invalid input";break;case l.eq.custom:r="Invalid input";break;case l.eq.invalid_intersection_types:r="Intersection results could not be merged";break;case l.eq.not_multiple_of:r=`Number must be a multiple of ${e.multipleOf}`;break;case l.eq.not_finite:r="Number must be finite";break;default:r=t.defaultError,u.ZS.assertNever(e)}return{message:r}};(i=o||(o={})).errToObj=e=>"string"==typeof e?{message:e}:e||{},i.toString=e=>"string"==typeof e?e:e?.message;let p=e=>{let{data:t,path:r,errorMaps:n,issueData:i}=e,a=[...r,...i.path||[]],o={...i,path:a};if(void 0!==i.message)return{...i,path:a,message:i.message};let s="";for(let e of n.filter(e=>!!e).slice().reverse())s=e(o,{data:t,defaultError:s}).message;return{...i,path:a,message:s}};function d(e,t){let r=p({issueData:t,data:e.data,path:e.path,errorMaps:[e.common.contextualErrorMap,e.schemaErrorMap,c,void 0].filter(e=>!!e)});e.common.issues.push(r)}class f{constructor(){this.value="valid"}dirty(){"valid"===this.value&&(this.value="dirty")}abort(){"aborted"!==this.value&&(this.value="aborted")}static mergeArray(e,t){let r=[];for(let n of t){if("aborted"===n.status)return h;"dirty"===n.status&&e.dirty(),r.push(n.value)}return{status:e.value,value:r}}static async mergeObjectAsync(e,t){let r=[];for(let e of t){let t=await e.key,n=await e.value;r.push({key:t,value:n})}return f.mergeObjectSync(e,r)}static mergeObjectSync(e,t){let r={};for(let n of t){let{key:t,value:i}=n;if("aborted"===t.status||"aborted"===i.status)return h;"dirty"===t.status&&e.dirty(),"dirty"===i.status&&e.dirty(),"__proto__"!==t.value&&(void 0!==i.value||n.alwaysSet)&&(r[t.value]=i.value)}return{status:e.value,value:r}}}let h=Object.freeze({status:"aborted"}),m=e=>({status:"dirty",value:e}),g=e=>({status:"valid",value:e}),v=e=>"u">typeof Promise&&e instanceof Promise;class y{constructor(e,t,r,n){this._cachedPath=[],this.parent=e,this.data=t,this._path=r,this._key=n}get path(){return this._cachedPath.length||(Array.isArray(this._key)?this._cachedPath.push(...this._path,...this._key):this._cachedPath.push(...this._path,this._key)),this._cachedPath}}let b=(e,t)=>{if("valid"===t.status)return{success:!0,data:t.value};if(!e.common.issues.length)throw Error("Validation failed but no issues detected.");return{success:!1,get error(){if(this._error)return this._error;let t=new l.G(e.common.issues);return this._error=t,this._error}}};function w(e){if(!e)return{};let{errorMap:t,invalid_type_error:r,required_error:n,description:i}=e;if(t&&(r||n))throw Error('Can\'t use "invalid_type_error" or "required_error" in conjunction with custom error map.');return t?{errorMap:t,description:i}:{errorMap:(t,i)=>{let{message:a}=e;return"invalid_enum_value"===t.code?{message:a??i.defaultError}:void 0===i.data?{message:a??n??i.defaultError}:"invalid_type"!==t.code?{message:i.defaultError}:{message:a??r??i.defaultError}},description:i}}class x{get description(){return this._def.description}_getType(e){return(0,u.CR)(e.data)}_getOrReturnCtx(e,t){return t||{common:e.parent.common,data:e.data,parsedType:(0,u.CR)(e.data),schemaErrorMap:this._def.errorMap,path:e.path,parent:e.parent}}_processInputParams(e){return{status:new f,ctx:{common:e.parent.common,data:e.data,parsedType:(0,u.CR)(e.data),schemaErrorMap:this._def.errorMap,path:e.path,parent:e.parent}}}_parseSync(e){let t=this._parse(e);if(v(t))throw Error("Synchronous parse encountered promise.");return t}_parseAsync(e){return Promise.resolve(this._parse(e))}parse(e,t){let r=this.safeParse(e,t);if(r.success)return r.data;throw r.error}safeParse(e,t){let r={common:{issues:[],async:t?.async??!1,contextualErrorMap:t?.errorMap},path:t?.path||[],schemaErrorMap:this._def.errorMap,parent:null,data:e,parsedType:(0,u.CR)(e)},n=this._parseSync({data:e,path:r.path,parent:r});return b(r,n)}"~validate"(e){let t={common:{issues:[],async:!!this["~standard"].async},path:[],schemaErrorMap:this._def.errorMap,parent:null,data:e,parsedType:(0,u.CR)(e)};if(!this["~standard"].async)try{let r=this._parseSync({data:e,path:[],parent:t});return"valid"===r.status?{value:r.value}:{issues:t.common.issues}}catch(e){e?.message?.toLowerCase()?.includes("encountered")&&(this["~standard"].async=!0),t.common={issues:[],async:!0}}return this._parseAsync({data:e,path:[],parent:t}).then(e=>"valid"===e.status?{value:e.value}:{issues:t.common.issues})}async parseAsync(e,t){let r=await this.safeParseAsync(e,t);if(r.success)return r.data;throw r.error}async safeParseAsync(e,t){let r={common:{issues:[],contextualErrorMap:t?.errorMap,async:!0},path:t?.path||[],schemaErrorMap:this._def.errorMap,parent:null,data:e,parsedType:(0,u.CR)(e)},n=this._parse({data:e,path:r.path,parent:r});return b(r,await (v(n)?n:Promise.resolve(n)))}refine(e,t){return this._refinement((r,n)=>{let i=e(r),a=()=>n.addIssue({code:l.eq.custom,..."string"==typeof t||void 0===t?{message:t}:"function"==typeof t?t(r):t});return"u">typeof Promise&&i instanceof Promise?i.then(e=>!!e||(a(),!1)):!!i||(a(),!1)})}refinement(e,t){return this._refinement((r,n)=>!!e(r)||(n.addIssue("function"==typeof t?t(r,n):t),!1))}_refinement(e){return new eh({schema:this,typeName:s.ZodEffects,effect:{type:"refinement",refinement:e}})}superRefine(e){return this._refinement(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),this["~standard"]={version:1,vendor:"zod",validate:e=>this["~validate"](e)}}optional(){return em.create(this,this._def)}nullable(){return eg.create(this,this._def)}nullish(){return this.nullable().optional()}array(){return X.create(this)}promise(){return ef.create(this,this._def)}or(e){return J.create([this,e],this._def)}and(e){return er.create(this,e,this._def)}transform(e){return new eh({...w(this._def),schema:this,typeName:s.ZodEffects,effect:{type:"transform",transform:e}})}default(e){return new ev({...w(this._def),innerType:this,defaultValue:"function"==typeof e?e:()=>e,typeName:s.ZodDefault})}brand(){return new ew({typeName:s.ZodBranded,type:this,...w(this._def)})}catch(e){return new ey({...w(this._def),innerType:this,catchValue:"function"==typeof e?e:()=>e,typeName:s.ZodCatch})}describe(e){return new this.constructor({...this._def,description:e})}pipe(e){return ex.create(this,e)}readonly(){return e_.create(this)}isOptional(){return this.safeParse(void 0).success}isNullable(){return this.safeParse(null).success}}let _=/^c[^\s-]{8,}$/i,A=/^[0-9a-z]+$/,M=/^[0-9A-HJKMNP-TV-Z]{26}$/i,N=/^[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,S=/^[a-z0-9_-]{21}$/i,k=/^[A-Za-z0-9-_]+\.[A-Za-z0-9-_]+\.[A-Za-z0-9-_]*$/,E=/^[-+]?P(?!$)(?:(?:[-+]?\d+Y)|(?:[-+]?\d+[.,]\d+Y$))?(?:(?:[-+]?\d+M)|(?:[-+]?\d+[.,]\d+M$))?(?:(?:[-+]?\d+W)|(?:[-+]?\d+[.,]\d+W$))?(?:(?:[-+]?\d+D)|(?:[-+]?\d+[.,]\d+D$))?(?:T(?=[\d+-])(?:(?:[-+]?\d+H)|(?:[-+]?\d+[.,]\d+H$))?(?:(?:[-+]?\d+M)|(?:[-+]?\d+[.,]\d+M$))?(?:[-+]?\d+(?:[.,]\d+)?S)?)??$/,O=/^(?!\.)(?!.*\.\.)([A-Z0-9_'+\-\.]*)[A-Z0-9_+-]@([A-Z0-9][A-Z0-9\-]*\.)+[A-Z]{2,}$/i,C=/^(?:(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.){3}(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])$/,T=/^(?:(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.){3}(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\/(3[0-2]|[12]?[0-9])$/,$=/^(([0-9a-fA-F]{1,4}:){7,7}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,7}:|([0-9a-fA-F]{1,4}:){1,6}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}(:[0-9a-fA-F]{1,4}){1,2}|([0-9a-fA-F]{1,4}:){1,4}(:[0-9a-fA-F]{1,4}){1,3}|([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){1,4}|([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){1,5}|[0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){1,6})|:((:[0-9a-fA-F]{1,4}){1,7}|:)|fe80:(:[0-9a-fA-F]{0,4}){0,4}%[0-9a-zA-Z]{1,}|::(ffff(:0{1,4}){0,1}:){0,1}((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])|([0-9a-fA-F]{1,4}:){1,4}:((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9]))$/,R=/^(([0-9a-fA-F]{1,4}:){7,7}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,7}:|([0-9a-fA-F]{1,4}:){1,6}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}(:[0-9a-fA-F]{1,4}){1,2}|([0-9a-fA-F]{1,4}:){1,4}(:[0-9a-fA-F]{1,4}){1,3}|([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){1,4}|([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){1,5}|[0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){1,6})|:((:[0-9a-fA-F]{1,4}){1,7}|:)|fe80:(:[0-9a-fA-F]{0,4}){0,4}%[0-9a-zA-Z]{1,}|::(ffff(:0{1,4}){0,1}:){0,1}((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])|([0-9a-fA-F]{1,4}:){1,4}:((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9]))\/(12[0-8]|1[01][0-9]|[1-9]?[0-9])$/,I=/^([0-9a-zA-Z+/]{4})*(([0-9a-zA-Z+/]{2}==)|([0-9a-zA-Z+/]{3}=))?$/,j=/^([0-9a-zA-Z-_]{4})*(([0-9a-zA-Z-_]{2}(==)?)|([0-9a-zA-Z-_]{3}(=)?))?$/,P="((\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-((0[13578]|1[02])-(0[1-9]|[12]\\d|3[01])|(0[469]|11)-(0[1-9]|[12]\\d|30)|(02)-(0[1-9]|1\\d|2[0-8])))",z=RegExp(`^${P}$`);function Z(e){let t="[0-5]\\d";e.precision?t=`${t}\\.\\d{${e.precision}}`:null==e.precision&&(t=`${t}(\\.\\d+)?`);let r=e.precision?"+":"?";return`([01]\\d|2[0-3]):[0-5]\\d(:${t})${r}`}class D extends x{_parse(e){var t,r,i,a;let o;if(this._def.coerce&&(e.data=String(e.data)),this._getType(e)!==u.Zp.string){let t=this._getOrReturnCtx(e);return d(t,{code:l.eq.invalid_type,expected:u.Zp.string,received:t.parsedType}),h}let s=new f;for(let c of this._def.checks)if("min"===c.kind)e.data.length<c.value&&(d(o=this._getOrReturnCtx(e,o),{code:l.eq.too_small,minimum:c.value,type:"string",inclusive:!0,exact:!1,message:c.message}),s.dirty());else if("max"===c.kind)e.data.length>c.value&&(d(o=this._getOrReturnCtx(e,o),{code:l.eq.too_big,maximum:c.value,type:"string",inclusive:!0,exact:!1,message:c.message}),s.dirty());else if("length"===c.kind){let t=e.data.length>c.value,r=e.data.length<c.value;(t||r)&&(o=this._getOrReturnCtx(e,o),t?d(o,{code:l.eq.too_big,maximum:c.value,type:"string",inclusive:!0,exact:!0,message:c.message}):r&&d(o,{code:l.eq.too_small,minimum:c.value,type:"string",inclusive:!0,exact:!0,message:c.message}),s.dirty())}else if("email"===c.kind)O.test(e.data)||(d(o=this._getOrReturnCtx(e,o),{validation:"email",code:l.eq.invalid_string,message:c.message}),s.dirty());else if("emoji"===c.kind)n||(n=RegExp("^(\\p{Extended_Pictographic}|\\p{Emoji_Component})+$","u")),n.test(e.data)||(d(o=this._getOrReturnCtx(e,o),{validation:"emoji",code:l.eq.invalid_string,message:c.message}),s.dirty());else if("uuid"===c.kind)N.test(e.data)||(d(o=this._getOrReturnCtx(e,o),{validation:"uuid",code:l.eq.invalid_string,message:c.message}),s.dirty());else if("nanoid"===c.kind)S.test(e.data)||(d(o=this._getOrReturnCtx(e,o),{validation:"nanoid",code:l.eq.invalid_string,message:c.message}),s.dirty());else if("cuid"===c.kind)_.test(e.data)||(d(o=this._getOrReturnCtx(e,o),{validation:"cuid",code:l.eq.invalid_string,message:c.message}),s.dirty());else if("cuid2"===c.kind)A.test(e.data)||(d(o=this._getOrReturnCtx(e,o),{validation:"cuid2",code:l.eq.invalid_string,message:c.message}),s.dirty());else if("ulid"===c.kind)M.test(e.data)||(d(o=this._getOrReturnCtx(e,o),{validation:"ulid",code:l.eq.invalid_string,message:c.message}),s.dirty());else if("url"===c.kind)try{new URL(e.data)}catch{d(o=this._getOrReturnCtx(e,o),{validation:"url",code:l.eq.invalid_string,message:c.message}),s.dirty()}else"regex"===c.kind?(c.regex.lastIndex=0,c.regex.test(e.data)||(d(o=this._getOrReturnCtx(e,o),{validation:"regex",code:l.eq.invalid_string,message:c.message}),s.dirty())):"trim"===c.kind?e.data=e.data.trim():"includes"===c.kind?e.data.includes(c.value,c.position)||(d(o=this._getOrReturnCtx(e,o),{code:l.eq.invalid_string,validation:{includes:c.value,position:c.position},message:c.message}),s.dirty()):"toLowerCase"===c.kind?e.data=e.data.toLowerCase():"toUpperCase"===c.kind?e.data=e.data.toUpperCase():"startsWith"===c.kind?e.data.startsWith(c.value)||(d(o=this._getOrReturnCtx(e,o),{code:l.eq.invalid_string,validation:{startsWith:c.value},message:c.message}),s.dirty()):"endsWith"===c.kind?e.data.endsWith(c.value)||(d(o=this._getOrReturnCtx(e,o),{code:l.eq.invalid_string,validation:{endsWith:c.value},message:c.message}),s.dirty()):"datetime"===c.kind?(function(e){let t=`${P}T${Z(e)}`,r=[];return r.push(e.local?"Z?":"Z"),e.offset&&r.push("([+-]\\d{2}:?\\d{2})"),t=`${t}(${r.join("|")})`,RegExp(`^${t}$`)})(c).test(e.data)||(d(o=this._getOrReturnCtx(e,o),{code:l.eq.invalid_string,validation:"datetime",message:c.message}),s.dirty()):"date"===c.kind?z.test(e.data)||(d(o=this._getOrReturnCtx(e,o),{code:l.eq.invalid_string,validation:"date",message:c.message}),s.dirty()):"time"===c.kind?RegExp(`^${Z(c)}$`).test(e.data)||(d(o=this._getOrReturnCtx(e,o),{code:l.eq.invalid_string,validation:"time",message:c.message}),s.dirty()):"duration"===c.kind?E.test(e.data)||(d(o=this._getOrReturnCtx(e,o),{validation:"duration",code:l.eq.invalid_string,message:c.message}),s.dirty()):"ip"===c.kind?(t=e.data,!(("v4"===(r=c.version)||!r)&&C.test(t)||("v6"===r||!r)&&$.test(t))&&1&&(d(o=this._getOrReturnCtx(e,o),{validation:"ip",code:l.eq.invalid_string,message:c.message}),s.dirty())):"jwt"===c.kind?!function(e,t){if(!k.test(e))return!1;try{let[r]=e.split(".");if(!r)return!1;let n=r.replace(/-/g,"+").replace(/_/g,"/").padEnd(r.length+(4-r.length%4)%4,"="),i=JSON.parse(atob(n));if("object"!=typeof i||null===i||"typ"in i&&i?.typ!=="JWT"||!i.alg||t&&i.alg!==t)return!1;return!0}catch{return!1}}(e.data,c.alg)&&(d(o=this._getOrReturnCtx(e,o),{validation:"jwt",code:l.eq.invalid_string,message:c.message}),s.dirty()):"cidr"===c.kind?(i=e.data,!(("v4"===(a=c.version)||!a)&&T.test(i)||("v6"===a||!a)&&R.test(i))&&1&&(d(o=this._getOrReturnCtx(e,o),{validation:"cidr",code:l.eq.invalid_string,message:c.message}),s.dirty())):"base64"===c.kind?I.test(e.data)||(d(o=this._getOrReturnCtx(e,o),{validation:"base64",code:l.eq.invalid_string,message:c.message}),s.dirty()):"base64url"===c.kind?j.test(e.data)||(d(o=this._getOrReturnCtx(e,o),{validation:"base64url",code:l.eq.invalid_string,message:c.message}),s.dirty()):u.ZS.assertNever(c);return{status:s.value,value:e.data}}_regex(e,t,r){return this.refinement(t=>e.test(t),{validation:t,code:l.eq.invalid_string,...o.errToObj(r)})}_addCheck(e){return new D({...this._def,checks:[...this._def.checks,e]})}email(e){return this._addCheck({kind:"email",...o.errToObj(e)})}url(e){return this._addCheck({kind:"url",...o.errToObj(e)})}emoji(e){return this._addCheck({kind:"emoji",...o.errToObj(e)})}uuid(e){return this._addCheck({kind:"uuid",...o.errToObj(e)})}nanoid(e){return this._addCheck({kind:"nanoid",...o.errToObj(e)})}cuid(e){return this._addCheck({kind:"cuid",...o.errToObj(e)})}cuid2(e){return this._addCheck({kind:"cuid2",...o.errToObj(e)})}ulid(e){return this._addCheck({kind:"ulid",...o.errToObj(e)})}base64(e){return this._addCheck({kind:"base64",...o.errToObj(e)})}base64url(e){return this._addCheck({kind:"base64url",...o.errToObj(e)})}jwt(e){return this._addCheck({kind:"jwt",...o.errToObj(e)})}ip(e){return this._addCheck({kind:"ip",...o.errToObj(e)})}cidr(e){return this._addCheck({kind:"cidr",...o.errToObj(e)})}datetime(e){return"string"==typeof e?this._addCheck({kind:"datetime",precision:null,offset:!1,local:!1,message:e}):this._addCheck({kind:"datetime",precision:void 0===e?.precision?null:e?.precision,offset:e?.offset??!1,local:e?.local??!1,...o.errToObj(e?.message)})}date(e){return this._addCheck({kind:"date",message:e})}time(e){return"string"==typeof e?this._addCheck({kind:"time",precision:null,message:e}):this._addCheck({kind:"time",precision:void 0===e?.precision?null:e?.precision,...o.errToObj(e?.message)})}duration(e){return this._addCheck({kind:"duration",...o.errToObj(e)})}regex(e,t){return this._addCheck({kind:"regex",regex:e,...o.errToObj(t)})}includes(e,t){return this._addCheck({kind:"includes",value:e,position:t?.position,...o.errToObj(t?.message)})}startsWith(e,t){return this._addCheck({kind:"startsWith",value:e,...o.errToObj(t)})}endsWith(e,t){return this._addCheck({kind:"endsWith",value:e,...o.errToObj(t)})}min(e,t){return this._addCheck({kind:"min",value:e,...o.errToObj(t)})}max(e,t){return this._addCheck({kind:"max",value:e,...o.errToObj(t)})}length(e,t){return this._addCheck({kind:"length",value:e,...o.errToObj(t)})}nonempty(e){return this.min(1,o.errToObj(e))}trim(){return new D({...this._def,checks:[...this._def.checks,{kind:"trim"}]})}toLowerCase(){return new D({...this._def,checks:[...this._def.checks,{kind:"toLowerCase"}]})}toUpperCase(){return new D({...this._def,checks:[...this._def.checks,{kind:"toUpperCase"}]})}get isDatetime(){return!!this._def.checks.find(e=>"datetime"===e.kind)}get isDate(){return!!this._def.checks.find(e=>"date"===e.kind)}get isTime(){return!!this._def.checks.find(e=>"time"===e.kind)}get isDuration(){return!!this._def.checks.find(e=>"duration"===e.kind)}get isEmail(){return!!this._def.checks.find(e=>"email"===e.kind)}get isURL(){return!!this._def.checks.find(e=>"url"===e.kind)}get isEmoji(){return!!this._def.checks.find(e=>"emoji"===e.kind)}get isUUID(){return!!this._def.checks.find(e=>"uuid"===e.kind)}get isNANOID(){return!!this._def.checks.find(e=>"nanoid"===e.kind)}get isCUID(){return!!this._def.checks.find(e=>"cuid"===e.kind)}get isCUID2(){return!!this._def.checks.find(e=>"cuid2"===e.kind)}get isULID(){return!!this._def.checks.find(e=>"ulid"===e.kind)}get isIP(){return!!this._def.checks.find(e=>"ip"===e.kind)}get isCIDR(){return!!this._def.checks.find(e=>"cidr"===e.kind)}get isBase64(){return!!this._def.checks.find(e=>"base64"===e.kind)}get isBase64url(){return!!this._def.checks.find(e=>"base64url"===e.kind)}get minLength(){let e=null;for(let t of this._def.checks)"min"===t.kind&&(null===e||t.value>e)&&(e=t.value);return e}get maxLength(){let e=null;for(let t of this._def.checks)"max"===t.kind&&(null===e||t.value<e)&&(e=t.value);return e}}D.create=e=>new D({checks:[],typeName:s.ZodString,coerce:e?.coerce??!1,...w(e)});class F extends x{constructor(){super(...arguments),this.min=this.gte,this.max=this.lte,this.step=this.multipleOf}_parse(e){let t;if(this._def.coerce&&(e.data=Number(e.data)),this._getType(e)!==u.Zp.number){let t=this._getOrReturnCtx(e);return d(t,{code:l.eq.invalid_type,expected:u.Zp.number,received:t.parsedType}),h}let r=new f;for(let n of this._def.checks)"int"===n.kind?u.ZS.isInteger(e.data)||(d(t=this._getOrReturnCtx(e,t),{code:l.eq.invalid_type,expected:"integer",received:"float",message:n.message}),r.dirty()):"min"===n.kind?(n.inclusive?e.data<n.value:e.data<=n.value)&&(d(t=this._getOrReturnCtx(e,t),{code:l.eq.too_small,minimum:n.value,type:"number",inclusive:n.inclusive,exact:!1,message:n.message}),r.dirty()):"max"===n.kind?(n.inclusive?e.data>n.value:e.data>=n.value)&&(d(t=this._getOrReturnCtx(e,t),{code:l.eq.too_big,maximum:n.value,type:"number",inclusive:n.inclusive,exact:!1,message:n.message}),r.dirty()):"multipleOf"===n.kind?0!==function(e,t){let r=(e.toString().split(".")[1]||"").length,n=(t.toString().split(".")[1]||"").length,i=r>n?r:n;return Number.parseInt(e.toFixed(i).replace(".",""))%Number.parseInt(t.toFixed(i).replace(".",""))/10**i}(e.data,n.value)&&(d(t=this._getOrReturnCtx(e,t),{code:l.eq.not_multiple_of,multipleOf:n.value,message:n.message}),r.dirty()):"finite"===n.kind?Number.isFinite(e.data)||(d(t=this._getOrReturnCtx(e,t),{code:l.eq.not_finite,message:n.message}),r.dirty()):u.ZS.assertNever(n);return{status:r.value,value:e.data}}gte(e,t){return this.setLimit("min",e,!0,o.toString(t))}gt(e,t){return this.setLimit("min",e,!1,o.toString(t))}lte(e,t){return this.setLimit("max",e,!0,o.toString(t))}lt(e,t){return this.setLimit("max",e,!1,o.toString(t))}setLimit(e,t,r,n){return new F({...this._def,checks:[...this._def.checks,{kind:e,value:t,inclusive:r,message:o.toString(n)}]})}_addCheck(e){return new F({...this._def,checks:[...this._def.checks,e]})}int(e){return this._addCheck({kind:"int",message:o.toString(e)})}positive(e){return this._addCheck({kind:"min",value:0,inclusive:!1,message:o.toString(e)})}negative(e){return this._addCheck({kind:"max",value:0,inclusive:!1,message:o.toString(e)})}nonpositive(e){return this._addCheck({kind:"max",value:0,inclusive:!0,message:o.toString(e)})}nonnegative(e){return this._addCheck({kind:"min",value:0,inclusive:!0,message:o.toString(e)})}multipleOf(e,t){return this._addCheck({kind:"multipleOf",value:e,message:o.toString(t)})}finite(e){return this._addCheck({kind:"finite",message:o.toString(e)})}safe(e){return this._addCheck({kind:"min",inclusive:!0,value:Number.MIN_SAFE_INTEGER,message:o.toString(e)})._addCheck({kind:"max",inclusive:!0,value:Number.MAX_SAFE_INTEGER,message:o.toString(e)})}get minValue(){let e=null;for(let t of this._def.checks)"min"===t.kind&&(null===e||t.value>e)&&(e=t.value);return e}get maxValue(){let e=null;for(let t of this._def.checks)"max"===t.kind&&(null===e||t.value<e)&&(e=t.value);return e}get isInt(){return!!this._def.checks.find(e=>"int"===e.kind||"multipleOf"===e.kind&&u.ZS.isInteger(e.value))}get isFinite(){let e=null,t=null;for(let r of this._def.checks)if("finite"===r.kind||"int"===r.kind||"multipleOf"===r.kind)return!0;else"min"===r.kind?(null===t||r.value>t)&&(t=r.value):"max"===r.kind&&(null===e||r.value<e)&&(e=r.value);return Number.isFinite(t)&&Number.isFinite(e)}}F.create=e=>new F({checks:[],typeName:s.ZodNumber,coerce:e?.coerce||!1,...w(e)});class L extends x{constructor(){super(...arguments),this.min=this.gte,this.max=this.lte}_parse(e){let t;if(this._def.coerce)try{e.data=BigInt(e.data)}catch{return this._getInvalidInput(e)}if(this._getType(e)!==u.Zp.bigint)return this._getInvalidInput(e);let r=new f;for(let n of this._def.checks)"min"===n.kind?(n.inclusive?e.data<n.value:e.data<=n.value)&&(d(t=this._getOrReturnCtx(e,t),{code:l.eq.too_small,type:"bigint",minimum:n.value,inclusive:n.inclusive,message:n.message}),r.dirty()):"max"===n.kind?(n.inclusive?e.data>n.value:e.data>=n.value)&&(d(t=this._getOrReturnCtx(e,t),{code:l.eq.too_big,type:"bigint",maximum:n.value,inclusive:n.inclusive,message:n.message}),r.dirty()):"multipleOf"===n.kind?e.data%n.value!==BigInt(0)&&(d(t=this._getOrReturnCtx(e,t),{code:l.eq.not_multiple_of,multipleOf:n.value,message:n.message}),r.dirty()):u.ZS.assertNever(n);return{status:r.value,value:e.data}}_getInvalidInput(e){let t=this._getOrReturnCtx(e);return d(t,{code:l.eq.invalid_type,expected:u.Zp.bigint,received:t.parsedType}),h}gte(e,t){return this.setLimit("min",e,!0,o.toString(t))}gt(e,t){return this.setLimit("min",e,!1,o.toString(t))}lte(e,t){return this.setLimit("max",e,!0,o.toString(t))}lt(e,t){return this.setLimit("max",e,!1,o.toString(t))}setLimit(e,t,r,n){return new L({...this._def,checks:[...this._def.checks,{kind:e,value:t,inclusive:r,message:o.toString(n)}]})}_addCheck(e){return new L({...this._def,checks:[...this._def.checks,e]})}positive(e){return this._addCheck({kind:"min",value:BigInt(0),inclusive:!1,message:o.toString(e)})}negative(e){return this._addCheck({kind:"max",value:BigInt(0),inclusive:!1,message:o.toString(e)})}nonpositive(e){return this._addCheck({kind:"max",value:BigInt(0),inclusive:!0,message:o.toString(e)})}nonnegative(e){return this._addCheck({kind:"min",value:BigInt(0),inclusive:!0,message:o.toString(e)})}multipleOf(e,t){return this._addCheck({kind:"multipleOf",value:e,message:o.toString(t)})}get minValue(){let e=null;for(let t of this._def.checks)"min"===t.kind&&(null===e||t.value>e)&&(e=t.value);return e}get maxValue(){let e=null;for(let t of this._def.checks)"max"===t.kind&&(null===e||t.value<e)&&(e=t.value);return e}}L.create=e=>new L({checks:[],typeName:s.ZodBigInt,coerce:e?.coerce??!1,...w(e)});class B extends x{_parse(e){if(this._def.coerce&&(e.data=!!e.data),this._getType(e)!==u.Zp.boolean){let t=this._getOrReturnCtx(e);return d(t,{code:l.eq.invalid_type,expected:u.Zp.boolean,received:t.parsedType}),h}return g(e.data)}}B.create=e=>new B({typeName:s.ZodBoolean,coerce:e?.coerce||!1,...w(e)});class q extends x{_parse(e){let t;if(this._def.coerce&&(e.data=new Date(e.data)),this._getType(e)!==u.Zp.date){let t=this._getOrReturnCtx(e);return d(t,{code:l.eq.invalid_type,expected:u.Zp.date,received:t.parsedType}),h}if(Number.isNaN(e.data.getTime()))return d(this._getOrReturnCtx(e),{code:l.eq.invalid_date}),h;let r=new f;for(let n of this._def.checks)"min"===n.kind?e.data.getTime()<n.value&&(d(t=this._getOrReturnCtx(e,t),{code:l.eq.too_small,message:n.message,inclusive:!0,exact:!1,minimum:n.value,type:"date"}),r.dirty()):"max"===n.kind?e.data.getTime()>n.value&&(d(t=this._getOrReturnCtx(e,t),{code:l.eq.too_big,message:n.message,inclusive:!0,exact:!1,maximum:n.value,type:"date"}),r.dirty()):u.ZS.assertNever(n);return{status:r.value,value:new Date(e.data.getTime())}}_addCheck(e){return new q({...this._def,checks:[...this._def.checks,e]})}min(e,t){return this._addCheck({kind:"min",value:e.getTime(),message:o.toString(t)})}max(e,t){return this._addCheck({kind:"max",value:e.getTime(),message:o.toString(t)})}get minDate(){let e=null;for(let t of this._def.checks)"min"===t.kind&&(null===e||t.value>e)&&(e=t.value);return null!=e?new Date(e):null}get maxDate(){let e=null;for(let t of this._def.checks)"max"===t.kind&&(null===e||t.value<e)&&(e=t.value);return null!=e?new Date(e):null}}q.create=e=>new q({checks:[],coerce:e?.coerce||!1,typeName:s.ZodDate,...w(e)});class W extends x{_parse(e){if(this._getType(e)!==u.Zp.symbol){let t=this._getOrReturnCtx(e);return d(t,{code:l.eq.invalid_type,expected:u.Zp.symbol,received:t.parsedType}),h}return g(e.data)}}W.create=e=>new W({typeName:s.ZodSymbol,...w(e)});class V extends x{_parse(e){if(this._getType(e)!==u.Zp.undefined){let t=this._getOrReturnCtx(e);return d(t,{code:l.eq.invalid_type,expected:u.Zp.undefined,received:t.parsedType}),h}return g(e.data)}}V.create=e=>new V({typeName:s.ZodUndefined,...w(e)});class U extends x{_parse(e){if(this._getType(e)!==u.Zp.null){let t=this._getOrReturnCtx(e);return d(t,{code:l.eq.invalid_type,expected:u.Zp.null,received:t.parsedType}),h}return g(e.data)}}U.create=e=>new U({typeName:s.ZodNull,...w(e)});class H extends x{constructor(){super(...arguments),this._any=!0}_parse(e){return g(e.data)}}H.create=e=>new H({typeName:s.ZodAny,...w(e)});class Y extends x{constructor(){super(...arguments),this._unknown=!0}_parse(e){return g(e.data)}}Y.create=e=>new Y({typeName:s.ZodUnknown,...w(e)});class G extends x{_parse(e){let t=this._getOrReturnCtx(e);return d(t,{code:l.eq.invalid_type,expected:u.Zp.never,received:t.parsedType}),h}}G.create=e=>new G({typeName:s.ZodNever,...w(e)});class K extends x{_parse(e){if(this._getType(e)!==u.Zp.undefined){let t=this._getOrReturnCtx(e);return d(t,{code:l.eq.invalid_type,expected:u.Zp.void,received:t.parsedType}),h}return g(e.data)}}K.create=e=>new K({typeName:s.ZodVoid,...w(e)});class X extends x{_parse(e){let{ctx:t,status:r}=this._processInputParams(e),n=this._def;if(t.parsedType!==u.Zp.array)return d(t,{code:l.eq.invalid_type,expected:u.Zp.array,received:t.parsedType}),h;if(null!==n.exactLength){let e=t.data.length>n.exactLength.value,i=t.data.length<n.exactLength.value;(e||i)&&(d(t,{code:e?l.eq.too_big:l.eq.too_small,minimum:i?n.exactLength.value:void 0,maximum:e?n.exactLength.value:void 0,type:"array",inclusive:!0,exact:!0,message:n.exactLength.message}),r.dirty())}if(null!==n.minLength&&t.data.length<n.minLength.value&&(d(t,{code:l.eq.too_small,minimum:n.minLength.value,type:"array",inclusive:!0,exact:!1,message:n.minLength.message}),r.dirty()),null!==n.maxLength&&t.data.length>n.maxLength.value&&(d(t,{code:l.eq.too_big,maximum:n.maxLength.value,type:"array",inclusive:!0,exact:!1,message:n.maxLength.message}),r.dirty()),t.common.async)return Promise.all([...t.data].map((e,r)=>n.type._parseAsync(new y(t,e,t.path,r)))).then(e=>f.mergeArray(r,e));let i=[...t.data].map((e,r)=>n.type._parseSync(new y(t,e,t.path,r)));return f.mergeArray(r,i)}get element(){return this._def.type}min(e,t){return new X({...this._def,minLength:{value:e,message:o.toString(t)}})}max(e,t){return new X({...this._def,maxLength:{value:e,message:o.toString(t)}})}length(e,t){return new X({...this._def,exactLength:{value:e,message:o.toString(t)}})}nonempty(e){return this.min(1,e)}}X.create=(e,t)=>new X({type:e,minLength:null,maxLength:null,exactLength:null,typeName:s.ZodArray,...w(t)});class Q extends x{constructor(){super(...arguments),this._cached=null,this.nonstrict=this.passthrough,this.augment=this.extend}_getCached(){if(null!==this._cached)return this._cached;let e=this._def.shape(),t=u.ZS.objectKeys(e);return this._cached={shape:e,keys:t},this._cached}_parse(e){if(this._getType(e)!==u.Zp.object){let t=this._getOrReturnCtx(e);return d(t,{code:l.eq.invalid_type,expected:u.Zp.object,received:t.parsedType}),h}let{status:t,ctx:r}=this._processInputParams(e),{shape:n,keys:i}=this._getCached(),a=[];if(!(this._def.catchall instanceof G&&"strip"===this._def.unknownKeys))for(let e in r.data)i.includes(e)||a.push(e);let o=[];for(let e of i){let t=n[e],i=r.data[e];o.push({key:{status:"valid",value:e},value:t._parse(new y(r,i,r.path,e)),alwaysSet:e in r.data})}if(this._def.catchall instanceof G){let e=this._def.unknownKeys;if("passthrough"===e)for(let e of a)o.push({key:{status:"valid",value:e},value:{status:"valid",value:r.data[e]}});else if("strict"===e)a.length>0&&(d(r,{code:l.eq.unrecognized_keys,keys:a}),t.dirty());else if("strip"===e);else throw Error("Internal ZodObject error: invalid unknownKeys value.")}else{let e=this._def.catchall;for(let t of a){let n=r.data[t];o.push({key:{status:"valid",value:t},value:e._parse(new y(r,n,r.path,t)),alwaysSet:t in r.data})}}return r.common.async?Promise.resolve().then(async()=>{let e=[];for(let t of o){let r=await t.key,n=await t.value;e.push({key:r,value:n,alwaysSet:t.alwaysSet})}return e}).then(e=>f.mergeObjectSync(t,e)):f.mergeObjectSync(t,o)}get shape(){return this._def.shape()}strict(e){return o.errToObj,new Q({...this._def,unknownKeys:"strict",...void 0!==e?{errorMap:(t,r)=>{let n=this._def.errorMap?.(t,r).message??r.defaultError;return"unrecognized_keys"===t.code?{message:o.errToObj(e).message??n}:{message:n}}}:{}})}strip(){return new Q({...this._def,unknownKeys:"strip"})}passthrough(){return new Q({...this._def,unknownKeys:"passthrough"})}extend(e){return new Q({...this._def,shape:()=>({...this._def.shape(),...e})})}merge(e){return new Q({unknownKeys:e._def.unknownKeys,catchall:e._def.catchall,shape:()=>({...this._def.shape(),...e._def.shape()}),typeName:s.ZodObject})}setKey(e,t){return this.augment({[e]:t})}catchall(e){return new Q({...this._def,catchall:e})}pick(e){let t={};for(let r of u.ZS.objectKeys(e))e[r]&&this.shape[r]&&(t[r]=this.shape[r]);return new Q({...this._def,shape:()=>t})}omit(e){let t={};for(let r of u.ZS.objectKeys(this.shape))e[r]||(t[r]=this.shape[r]);return new Q({...this._def,shape:()=>t})}deepPartial(){return function e(t){if(t instanceof Q){let r={};for(let n in t.shape){let i=t.shape[n];r[n]=em.create(e(i))}return new Q({...t._def,shape:()=>r})}if(t instanceof X)return new X({...t._def,type:e(t.element)});if(t instanceof em)return em.create(e(t.unwrap()));if(t instanceof eg)return eg.create(e(t.unwrap()));if(t instanceof en)return en.create(t.items.map(t=>e(t)));else return t}(this)}partial(e){let t={};for(let r of u.ZS.objectKeys(this.shape)){let n=this.shape[r];e&&!e[r]?t[r]=n:t[r]=n.optional()}return new Q({...this._def,shape:()=>t})}required(e){let t={};for(let r of u.ZS.objectKeys(this.shape))if(e&&!e[r])t[r]=this.shape[r];else{let e=this.shape[r];for(;e instanceof em;)e=e._def.innerType;t[r]=e}return new Q({...this._def,shape:()=>t})}keyof(){return ec(u.ZS.objectKeys(this.shape))}}Q.create=(e,t)=>new Q({shape:()=>e,unknownKeys:"strip",catchall:G.create(),typeName:s.ZodObject,...w(t)}),Q.strictCreate=(e,t)=>new Q({shape:()=>e,unknownKeys:"strict",catchall:G.create(),typeName:s.ZodObject,...w(t)}),Q.lazycreate=(e,t)=>new Q({shape:e,unknownKeys:"strip",catchall:G.create(),typeName:s.ZodObject,...w(t)});class J extends x{_parse(e){let{ctx:t}=this._processInputParams(e),r=this._def.options;if(t.common.async)return Promise.all(r.map(async e=>{let r={...t,common:{...t.common,issues:[]},parent:null};return{result:await e._parseAsync({data:t.data,path:t.path,parent:r}),ctx:r}})).then(function(e){for(let t of e)if("valid"===t.result.status)return t.result;for(let r of e)if("dirty"===r.result.status)return t.common.issues.push(...r.ctx.common.issues),r.result;let r=e.map(e=>new l.G(e.ctx.common.issues));return d(t,{code:l.eq.invalid_union,unionErrors:r}),h});{let e,n=[];for(let i of r){let r={...t,common:{...t.common,issues:[]},parent:null},a=i._parseSync({data:t.data,path:t.path,parent:r});if("valid"===a.status)return a;"dirty"!==a.status||e||(e={result:a,ctx:r}),r.common.issues.length&&n.push(r.common.issues)}if(e)return t.common.issues.push(...e.ctx.common.issues),e.result;let i=n.map(e=>new l.G(e));return d(t,{code:l.eq.invalid_union,unionErrors:i}),h}}get options(){return this._def.options}}J.create=(e,t)=>new J({options:e,typeName:s.ZodUnion,...w(t)});let ee=e=>{if(e instanceof el)return ee(e.schema);if(e instanceof eh)return ee(e.innerType());if(e instanceof eu)return[e.value];if(e instanceof ep)return e.options;if(e instanceof ed)return u.ZS.objectValues(e.enum);else if(e instanceof ev)return ee(e._def.innerType);else if(e instanceof V)return[void 0];else if(e instanceof U)return[null];else if(e instanceof em)return[void 0,...ee(e.unwrap())];else if(e instanceof eg)return[null,...ee(e.unwrap())];else if(e instanceof ew)return ee(e.unwrap());else if(e instanceof e_)return ee(e.unwrap());else if(e instanceof ey)return ee(e._def.innerType);else return[]};class et extends x{_parse(e){let{ctx:t}=this._processInputParams(e);if(t.parsedType!==u.Zp.object)return d(t,{code:l.eq.invalid_type,expected:u.Zp.object,received:t.parsedType}),h;let r=this.discriminator,n=t.data[r],i=this.optionsMap.get(n);return i?t.common.async?i._parseAsync({data:t.data,path:t.path,parent:t}):i._parseSync({data:t.data,path:t.path,parent:t}):(d(t,{code:l.eq.invalid_union_discriminator,options:Array.from(this.optionsMap.keys()),path:[r]}),h)}get discriminator(){return this._def.discriminator}get options(){return this._def.options}get optionsMap(){return this._def.optionsMap}static create(e,t,r){let n=new Map;for(let r of t){let t=ee(r.shape[e]);if(!t.length)throw Error(`A discriminator value for key \`${e}\` could not be extracted from all schema options`);for(let i of t){if(n.has(i))throw Error(`Discriminator property ${String(e)} has duplicate value ${String(i)}`);n.set(i,r)}}return new et({typeName:s.ZodDiscriminatedUnion,discriminator:e,options:t,optionsMap:n,...w(r)})}}class er extends x{_parse(e){let{status:t,ctx:r}=this._processInputParams(e),n=(e,n)=>{if("aborted"===e.status||"aborted"===n.status)return h;let i=function e(t,r){let n=(0,u.CR)(t),i=(0,u.CR)(r);if(t===r)return{valid:!0,data:t};if(n===u.Zp.object&&i===u.Zp.object){let n=u.ZS.objectKeys(r),i=u.ZS.objectKeys(t).filter(e=>-1!==n.indexOf(e)),a={...t,...r};for(let n of i){let i=e(t[n],r[n]);if(!i.valid)return{valid:!1};a[n]=i.data}return{valid:!0,data:a}}if(n===u.Zp.array&&i===u.Zp.array){if(t.length!==r.length)return{valid:!1};let n=[];for(let i=0;i<t.length;i++){let a=e(t[i],r[i]);if(!a.valid)return{valid:!1};n.push(a.data)}return{valid:!0,data:n}}if(n===u.Zp.date&&i===u.Zp.date&&+t==+r)return{valid:!0,data:t};return{valid:!1}}(e.value,n.value);return i.valid?(("dirty"===e.status||"dirty"===n.status)&&t.dirty(),{status:t.value,value:i.data}):(d(r,{code:l.eq.invalid_intersection_types}),h)};return r.common.async?Promise.all([this._def.left._parseAsync({data:r.data,path:r.path,parent:r}),this._def.right._parseAsync({data:r.data,path:r.path,parent:r})]).then(([e,t])=>n(e,t)):n(this._def.left._parseSync({data:r.data,path:r.path,parent:r}),this._def.right._parseSync({data:r.data,path:r.path,parent:r}))}}er.create=(e,t,r)=>new er({left:e,right:t,typeName:s.ZodIntersection,...w(r)});class en extends x{_parse(e){let{status:t,ctx:r}=this._processInputParams(e);if(r.parsedType!==u.Zp.array)return d(r,{code:l.eq.invalid_type,expected:u.Zp.array,received:r.parsedType}),h;if(r.data.length<this._def.items.length)return d(r,{code:l.eq.too_small,minimum:this._def.items.length,inclusive:!0,exact:!1,type:"array"}),h;!this._def.rest&&r.data.length>this._def.items.length&&(d(r,{code:l.eq.too_big,maximum:this._def.items.length,inclusive:!0,exact:!1,type:"array"}),t.dirty());let n=[...r.data].map((e,t)=>{let n=this._def.items[t]||this._def.rest;return n?n._parse(new y(r,e,r.path,t)):null}).filter(e=>!!e);return r.common.async?Promise.all(n).then(e=>f.mergeArray(t,e)):f.mergeArray(t,n)}get items(){return this._def.items}rest(e){return new en({...this._def,rest:e})}}en.create=(e,t)=>{if(!Array.isArray(e))throw Error("You must pass an array of schemas to z.tuple([ ... ])");return new en({items:e,typeName:s.ZodTuple,rest:null,...w(t)})};class ei extends x{get keySchema(){return this._def.keyType}get valueSchema(){return this._def.valueType}_parse(e){let{status:t,ctx:r}=this._processInputParams(e);if(r.parsedType!==u.Zp.object)return d(r,{code:l.eq.invalid_type,expected:u.Zp.object,received:r.parsedType}),h;let n=[],i=this._def.keyType,a=this._def.valueType;for(let e in r.data)n.push({key:i._parse(new y(r,e,r.path,e)),value:a._parse(new y(r,r.data[e],r.path,e)),alwaysSet:e in r.data});return r.common.async?f.mergeObjectAsync(t,n):f.mergeObjectSync(t,n)}get element(){return this._def.valueType}static create(e,t,r){return new ei(t instanceof x?{keyType:e,valueType:t,typeName:s.ZodRecord,...w(r)}:{keyType:D.create(),valueType:e,typeName:s.ZodRecord,...w(t)})}}class ea extends x{get keySchema(){return this._def.keyType}get valueSchema(){return this._def.valueType}_parse(e){let{status:t,ctx:r}=this._processInputParams(e);if(r.parsedType!==u.Zp.map)return d(r,{code:l.eq.invalid_type,expected:u.Zp.map,received:r.parsedType}),h;let n=this._def.keyType,i=this._def.valueType,a=[...r.data.entries()].map(([e,t],a)=>({key:n._parse(new y(r,e,r.path,[a,"key"])),value:i._parse(new y(r,t,r.path,[a,"value"]))}));if(r.common.async){let e=new Map;return Promise.resolve().then(async()=>{for(let r of a){let n=await r.key,i=await r.value;if("aborted"===n.status||"aborted"===i.status)return h;("dirty"===n.status||"dirty"===i.status)&&t.dirty(),e.set(n.value,i.value)}return{status:t.value,value:e}})}{let e=new Map;for(let r of a){let n=r.key,i=r.value;if("aborted"===n.status||"aborted"===i.status)return h;("dirty"===n.status||"dirty"===i.status)&&t.dirty(),e.set(n.value,i.value)}return{status:t.value,value:e}}}}ea.create=(e,t,r)=>new ea({valueType:t,keyType:e,typeName:s.ZodMap,...w(r)});class eo extends x{_parse(e){let{status:t,ctx:r}=this._processInputParams(e);if(r.parsedType!==u.Zp.set)return d(r,{code:l.eq.invalid_type,expected:u.Zp.set,received:r.parsedType}),h;let n=this._def;null!==n.minSize&&r.data.size<n.minSize.value&&(d(r,{code:l.eq.too_small,minimum:n.minSize.value,type:"set",inclusive:!0,exact:!1,message:n.minSize.message}),t.dirty()),null!==n.maxSize&&r.data.size>n.maxSize.value&&(d(r,{code:l.eq.too_big,maximum:n.maxSize.value,type:"set",inclusive:!0,exact:!1,message:n.maxSize.message}),t.dirty());let i=this._def.valueType;function a(e){let r=new Set;for(let n of e){if("aborted"===n.status)return h;"dirty"===n.status&&t.dirty(),r.add(n.value)}return{status:t.value,value:r}}let o=[...r.data.values()].map((e,t)=>i._parse(new y(r,e,r.path,t)));return r.common.async?Promise.all(o).then(e=>a(e)):a(o)}min(e,t){return new eo({...this._def,minSize:{value:e,message:o.toString(t)}})}max(e,t){return new eo({...this._def,maxSize:{value:e,message:o.toString(t)}})}size(e,t){return this.min(e,t).max(e,t)}nonempty(e){return this.min(1,e)}}eo.create=(e,t)=>new eo({valueType:e,minSize:null,maxSize:null,typeName:s.ZodSet,...w(t)});class es extends x{constructor(){super(...arguments),this.validate=this.implement}_parse(e){let{ctx:t}=this._processInputParams(e);if(t.parsedType!==u.Zp.function)return d(t,{code:l.eq.invalid_type,expected:u.Zp.function,received:t.parsedType}),h;function r(e,r){return p({data:e,path:t.path,errorMaps:[t.common.contextualErrorMap,t.schemaErrorMap,c,c].filter(e=>!!e),issueData:{code:l.eq.invalid_arguments,argumentsError:r}})}function n(e,r){return p({data:e,path:t.path,errorMaps:[t.common.contextualErrorMap,t.schemaErrorMap,c,c].filter(e=>!!e),issueData:{code:l.eq.invalid_return_type,returnTypeError:r}})}let i={errorMap:t.common.contextualErrorMap},a=t.data;if(this._def.returns instanceof ef){let e=this;return g(async function(...t){let o=new l.G([]),s=await e._def.args.parseAsync(t,i).catch(e=>{throw o.addIssue(r(t,e)),o}),u=await Reflect.apply(a,this,s);return await e._def.returns._def.type.parseAsync(u,i).catch(e=>{throw o.addIssue(n(u,e)),o})})}{let e=this;return g(function(...t){let o=e._def.args.safeParse(t,i);if(!o.success)throw new l.G([r(t,o.error)]);let s=Reflect.apply(a,this,o.data),u=e._def.returns.safeParse(s,i);if(!u.success)throw new l.G([n(s,u.error)]);return u.data})}}parameters(){return this._def.args}returnType(){return this._def.returns}args(...e){return new es({...this._def,args:en.create(e).rest(Y.create())})}returns(e){return new es({...this._def,returns:e})}implement(e){return this.parse(e)}strictImplement(e){return this.parse(e)}static create(e,t,r){return new es({args:e||en.create([]).rest(Y.create()),returns:t||Y.create(),typeName:s.ZodFunction,...w(r)})}}class el extends x{get schema(){return this._def.getter()}_parse(e){let{ctx:t}=this._processInputParams(e);return this._def.getter()._parse({data:t.data,path:t.path,parent:t})}}el.create=(e,t)=>new el({getter:e,typeName:s.ZodLazy,...w(t)});class eu extends x{_parse(e){if(e.data!==this._def.value){let t=this._getOrReturnCtx(e);return d(t,{received:t.data,code:l.eq.invalid_literal,expected:this._def.value}),h}return{status:"valid",value:e.data}}get value(){return this._def.value}}function ec(e,t){return new ep({values:e,typeName:s.ZodEnum,...w(t)})}eu.create=(e,t)=>new eu({value:e,typeName:s.ZodLiteral,...w(t)});class ep extends x{_parse(e){if("string"!=typeof e.data){let t=this._getOrReturnCtx(e),r=this._def.values;return d(t,{expected:u.ZS.joinValues(r),received:t.parsedType,code:l.eq.invalid_type}),h}if(this._cache||(this._cache=new Set(this._def.values)),!this._cache.has(e.data)){let t=this._getOrReturnCtx(e),r=this._def.values;return d(t,{received:t.data,code:l.eq.invalid_enum_value,options:r}),h}return g(e.data)}get options(){return this._def.values}get enum(){let e={};for(let t of this._def.values)e[t]=t;return e}get Values(){let e={};for(let t of this._def.values)e[t]=t;return e}get Enum(){let e={};for(let t of this._def.values)e[t]=t;return e}extract(e,t=this._def){return ep.create(e,{...this._def,...t})}exclude(e,t=this._def){return ep.create(this.options.filter(t=>!e.includes(t)),{...this._def,...t})}}ep.create=ec;class ed extends x{_parse(e){let t=u.ZS.getValidEnumValues(this._def.values),r=this._getOrReturnCtx(e);if(r.parsedType!==u.Zp.string&&r.parsedType!==u.Zp.number){let e=u.ZS.objectValues(t);return d(r,{expected:u.ZS.joinValues(e),received:r.parsedType,code:l.eq.invalid_type}),h}if(this._cache||(this._cache=new Set(u.ZS.getValidEnumValues(this._def.values))),!this._cache.has(e.data)){let e=u.ZS.objectValues(t);return d(r,{received:r.data,code:l.eq.invalid_enum_value,options:e}),h}return g(e.data)}get enum(){return this._def.values}}ed.create=(e,t)=>new ed({values:e,typeName:s.ZodNativeEnum,...w(t)});class ef extends x{unwrap(){return this._def.type}_parse(e){let{ctx:t}=this._processInputParams(e);return t.parsedType!==u.Zp.promise&&!1===t.common.async?(d(t,{code:l.eq.invalid_type,expected:u.Zp.promise,received:t.parsedType}),h):g((t.parsedType===u.Zp.promise?t.data:Promise.resolve(t.data)).then(e=>this._def.type.parseAsync(e,{path:t.path,errorMap:t.common.contextualErrorMap})))}}ef.create=(e,t)=>new ef({type:e,typeName:s.ZodPromise,...w(t)});class eh extends x{innerType(){return this._def.schema}sourceType(){return this._def.schema._def.typeName===s.ZodEffects?this._def.schema.sourceType():this._def.schema}_parse(e){let{status:t,ctx:r}=this._processInputParams(e),n=this._def.effect||null,i={addIssue:e=>{d(r,e),e.fatal?t.abort():t.dirty()},get path(){return r.path}};if(i.addIssue=i.addIssue.bind(i),"preprocess"===n.type){let e=n.transform(r.data,i);if(r.common.async)return Promise.resolve(e).then(async e=>{if("aborted"===t.value)return h;let n=await this._def.schema._parseAsync({data:e,path:r.path,parent:r});return"aborted"===n.status?h:"dirty"===n.status||"dirty"===t.value?m(n.value):n});{if("aborted"===t.value)return h;let n=this._def.schema._parseSync({data:e,path:r.path,parent:r});return"aborted"===n.status?h:"dirty"===n.status||"dirty"===t.value?m(n.value):n}}if("refinement"===n.type){let e=e=>{let t=n.refinement(e,i);if(r.common.async)return Promise.resolve(t);if(t instanceof Promise)throw Error("Async refinement encountered during synchronous parse operation. Use .parseAsync instead.");return e};if(!1!==r.common.async)return this._def.schema._parseAsync({data:r.data,path:r.path,parent:r}).then(r=>"aborted"===r.status?h:("dirty"===r.status&&t.dirty(),e(r.value).then(()=>({status:t.value,value:r.value}))));{let n=this._def.schema._parseSync({data:r.data,path:r.path,parent:r});return"aborted"===n.status?h:("dirty"===n.status&&t.dirty(),e(n.value),{status:t.value,value:n.value})}}if("transform"===n.type)if(!1!==r.common.async)return this._def.schema._parseAsync({data:r.data,path:r.path,parent:r}).then(e=>"valid"!==e.status?h:Promise.resolve(n.transform(e.value,i)).then(e=>({status:t.value,value:e})));else{let e=this._def.schema._parseSync({data:r.data,path:r.path,parent:r});if("valid"!==e.status)return h;let a=n.transform(e.value,i);if(a instanceof Promise)throw Error("Asynchronous transform encountered during synchronous parse operation. Use .parseAsync instead.");return{status:t.value,value:a}}u.ZS.assertNever(n)}}eh.create=(e,t,r)=>new eh({schema:e,typeName:s.ZodEffects,effect:t,...w(r)}),eh.createWithPreprocess=(e,t,r)=>new eh({schema:t,effect:{type:"preprocess",transform:e},typeName:s.ZodEffects,...w(r)});class em extends x{_parse(e){return this._getType(e)===u.Zp.undefined?g(void 0):this._def.innerType._parse(e)}unwrap(){return this._def.innerType}}em.create=(e,t)=>new em({innerType:e,typeName:s.ZodOptional,...w(t)});class eg extends x{_parse(e){return this._getType(e)===u.Zp.null?g(null):this._def.innerType._parse(e)}unwrap(){return this._def.innerType}}eg.create=(e,t)=>new eg({innerType:e,typeName:s.ZodNullable,...w(t)});class ev extends x{_parse(e){let{ctx:t}=this._processInputParams(e),r=t.data;return t.parsedType===u.Zp.undefined&&(r=this._def.defaultValue()),this._def.innerType._parse({data:r,path:t.path,parent:t})}removeDefault(){return this._def.innerType}}ev.create=(e,t)=>new ev({innerType:e,typeName:s.ZodDefault,defaultValue:"function"==typeof t.default?t.default:()=>t.default,...w(t)});class ey extends x{_parse(e){let{ctx:t}=this._processInputParams(e),r={...t,common:{...t.common,issues:[]}},n=this._def.innerType._parse({data:r.data,path:r.path,parent:{...r}});return v(n)?n.then(e=>({status:"valid",value:"valid"===e.status?e.value:this._def.catchValue({get error(){return new l.G(r.common.issues)},input:r.data})})):{status:"valid",value:"valid"===n.status?n.value:this._def.catchValue({get error(){return new l.G(r.common.issues)},input:r.data})}}removeCatch(){return this._def.innerType}}ey.create=(e,t)=>new ey({innerType:e,typeName:s.ZodCatch,catchValue:"function"==typeof t.catch?t.catch:()=>t.catch,...w(t)});class eb extends x{_parse(e){if(this._getType(e)!==u.Zp.nan){let t=this._getOrReturnCtx(e);return d(t,{code:l.eq.invalid_type,expected:u.Zp.nan,received:t.parsedType}),h}return{status:"valid",value:e.data}}}eb.create=e=>new eb({typeName:s.ZodNaN,...w(e)}),Symbol("zod_brand");class ew extends x{_parse(e){let{ctx:t}=this._processInputParams(e),r=t.data;return this._def.type._parse({data:r,path:t.path,parent:t})}unwrap(){return this._def.type}}class ex extends x{_parse(e){let{status:t,ctx:r}=this._processInputParams(e);if(r.common.async)return(async()=>{let e=await this._def.in._parseAsync({data:r.data,path:r.path,parent:r});return"aborted"===e.status?h:"dirty"===e.status?(t.dirty(),m(e.value)):this._def.out._parseAsync({data:e.value,path:r.path,parent:r})})();{let e=this._def.in._parseSync({data:r.data,path:r.path,parent:r});return"aborted"===e.status?h:"dirty"===e.status?(t.dirty(),{status:"dirty",value:e.value}):this._def.out._parseSync({data:e.value,path:r.path,parent:r})}}static create(e,t){return new ex({in:e,out:t,typeName:s.ZodPipeline})}}class e_ extends x{_parse(e){let t=this._def.innerType._parse(e),r=e=>("valid"===e.status&&(e.value=Object.freeze(e.value)),e);return v(t)?t.then(e=>r(e)):r(t)}unwrap(){return this._def.innerType}}e_.create=(e,t)=>new e_({innerType:e,typeName:s.ZodReadonly,...w(t)}),Q.lazycreate,(a=s||(s={})).ZodString="ZodString",a.ZodNumber="ZodNumber",a.ZodNaN="ZodNaN",a.ZodBigInt="ZodBigInt",a.ZodBoolean="ZodBoolean",a.ZodDate="ZodDate",a.ZodSymbol="ZodSymbol",a.ZodUndefined="ZodUndefined",a.ZodNull="ZodNull",a.ZodAny="ZodAny",a.ZodUnknown="ZodUnknown",a.ZodNever="ZodNever",a.ZodVoid="ZodVoid",a.ZodArray="ZodArray",a.ZodObject="ZodObject",a.ZodUnion="ZodUnion",a.ZodDiscriminatedUnion="ZodDiscriminatedUnion",a.ZodIntersection="ZodIntersection",a.ZodTuple="ZodTuple",a.ZodRecord="ZodRecord",a.ZodMap="ZodMap",a.ZodSet="ZodSet",a.ZodFunction="ZodFunction",a.ZodLazy="ZodLazy",a.ZodLiteral="ZodLiteral",a.ZodEnum="ZodEnum",a.ZodEffects="ZodEffects",a.ZodNativeEnum="ZodNativeEnum",a.ZodOptional="ZodOptional",a.ZodNullable="ZodNullable",a.ZodDefault="ZodDefault",a.ZodCatch="ZodCatch",a.ZodPromise="ZodPromise",a.ZodBranded="ZodBranded",a.ZodPipeline="ZodPipeline",a.ZodReadonly="ZodReadonly";let eA=D.create,eM=F.create;eb.create,L.create;let eN=B.create;q.create,W.create,V.create,U.create;let eS=H.create;Y.create,G.create,K.create;let ek=X.create,eE=Q.create;Q.strictCreate;let eO=J.create,eC=et.create;er.create,en.create;let eT=ei.create;ea.create,eo.create,es.create,el.create;let e$=eu.create,eR=ep.create;ed.create,ef.create,eh.create,em.create,eg.create,eh.createWithPreprocess,ex.create}}]);