@perses-dev/gauge-chart-plugin 0.12.1 → 0.13.0-beta.0

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 (200) hide show
  1. package/__mf/css/async/236.85c2cbf6.css +1 -0
  2. package/__mf/font/inter-cyrillic-300-normal.432f2b21.woff +0 -0
  3. package/__mf/font/inter-cyrillic-300-normal.9da91009.woff2 +0 -0
  4. package/__mf/font/inter-cyrillic-400-normal.372704ff.woff2 +0 -0
  5. package/__mf/font/inter-cyrillic-400-normal.a6b6ef6f.woff +0 -0
  6. package/__mf/font/inter-cyrillic-500-normal.7c15bba8.woff2 +0 -0
  7. package/__mf/font/inter-cyrillic-500-normal.b9f8c929.woff +0 -0
  8. package/__mf/font/inter-cyrillic-600-normal.2f42892a.woff2 +0 -0
  9. package/__mf/font/inter-cyrillic-600-normal.c3987adc.woff +0 -0
  10. package/__mf/font/inter-cyrillic-700-normal.93eba3c3.woff +0 -0
  11. package/__mf/font/inter-cyrillic-700-normal.e9e5b2dc.woff2 +0 -0
  12. package/__mf/font/inter-cyrillic-900-normal.f285bd7a.woff2 +0 -0
  13. package/__mf/font/inter-cyrillic-900-normal.ffbd8a3a.woff +0 -0
  14. package/__mf/font/inter-cyrillic-ext-300-normal.95bb9038.woff2 +0 -0
  15. package/__mf/font/inter-cyrillic-ext-300-normal.cfc143a9.woff +0 -0
  16. package/__mf/font/inter-cyrillic-ext-400-normal.2a31c04b.woff +0 -0
  17. package/__mf/font/inter-cyrillic-ext-400-normal.f572b170.woff2 +0 -0
  18. package/__mf/font/inter-cyrillic-ext-500-normal.5a6bb1da.woff +0 -0
  19. package/__mf/font/inter-cyrillic-ext-500-normal.fe0d9b14.woff2 +0 -0
  20. package/__mf/font/inter-cyrillic-ext-600-normal.ecbdecad.woff +0 -0
  21. package/__mf/font/inter-cyrillic-ext-600-normal.f7b3c15b.woff2 +0 -0
  22. package/__mf/font/inter-cyrillic-ext-700-normal.4b4022a6.woff +0 -0
  23. package/__mf/font/inter-cyrillic-ext-700-normal.74b516d2.woff2 +0 -0
  24. package/__mf/font/inter-cyrillic-ext-900-normal.9970ddb5.woff +0 -0
  25. package/__mf/font/inter-cyrillic-ext-900-normal.a0d59adc.woff2 +0 -0
  26. package/__mf/font/inter-greek-300-normal.0d7be683.woff2 +0 -0
  27. package/__mf/font/inter-greek-300-normal.8f0b988e.woff +0 -0
  28. package/__mf/font/inter-greek-400-normal.cc58c11b.woff +0 -0
  29. package/__mf/font/inter-greek-400-normal.d7020e3c.woff2 +0 -0
  30. package/__mf/font/inter-greek-500-normal.d9a33207.woff +0 -0
  31. package/__mf/font/inter-greek-500-normal.f41f43db.woff2 +0 -0
  32. package/__mf/font/inter-greek-600-normal.4ec0c1c1.woff +0 -0
  33. package/__mf/font/inter-greek-600-normal.cc532937.woff2 +0 -0
  34. package/__mf/font/inter-greek-700-normal.5ec6c758.woff +0 -0
  35. package/__mf/font/inter-greek-700-normal.97f0eeeb.woff2 +0 -0
  36. package/__mf/font/inter-greek-900-normal.46b66369.woff2 +0 -0
  37. package/__mf/font/inter-greek-900-normal.9ae3a3c5.woff +0 -0
  38. package/__mf/font/inter-greek-ext-300-normal.10247a66.woff2 +0 -0
  39. package/__mf/font/inter-greek-ext-300-normal.4668e5cb.woff +0 -0
  40. package/__mf/font/inter-greek-ext-400-normal.4ce1df5d.woff2 +0 -0
  41. package/__mf/font/inter-greek-ext-400-normal.88ede1ea.woff +0 -0
  42. package/__mf/font/inter-greek-ext-500-normal.7a4aa726.woff +0 -0
  43. package/__mf/font/inter-greek-ext-500-normal.cbd51e2d.woff2 +0 -0
  44. package/__mf/font/inter-greek-ext-600-normal.089a95ee.woff +0 -0
  45. package/__mf/font/inter-greek-ext-600-normal.1f33d317.woff2 +0 -0
  46. package/__mf/font/inter-greek-ext-700-normal.31f1075d.woff +0 -0
  47. package/__mf/font/inter-greek-ext-700-normal.827cd618.woff2 +0 -0
  48. package/__mf/font/inter-greek-ext-900-normal.531bcee7.woff +0 -0
  49. package/__mf/font/inter-greek-ext-900-normal.8a9b36b9.woff2 +0 -0
  50. package/__mf/font/inter-latin-300-normal.15fb600d.woff2 +0 -0
  51. package/__mf/font/inter-latin-300-normal.6f95f590.woff +0 -0
  52. package/__mf/font/inter-latin-400-normal.2c7a775c.woff +0 -0
  53. package/__mf/font/inter-latin-400-normal.ef6d3f52.woff2 +0 -0
  54. package/__mf/font/inter-latin-500-normal.b7b43ace.woff2 +0 -0
  55. package/__mf/font/inter-latin-500-normal.cb4c8ceb.woff +0 -0
  56. package/__mf/font/inter-latin-600-normal.8fb1a964.woff2 +0 -0
  57. package/__mf/font/inter-latin-600-normal.ce0f5f43.woff +0 -0
  58. package/__mf/font/inter-latin-700-normal.953b7aa5.woff2 +0 -0
  59. package/__mf/font/inter-latin-700-normal.9c21d4dc.woff +0 -0
  60. package/__mf/font/inter-latin-900-normal.2a8028ec.woff2 +0 -0
  61. package/__mf/font/inter-latin-900-normal.fa252135.woff +0 -0
  62. package/__mf/font/inter-latin-ext-300-normal.167cc8c9.woff2 +0 -0
  63. package/__mf/font/inter-latin-ext-300-normal.f695be66.woff +0 -0
  64. package/__mf/font/inter-latin-ext-400-normal.32a25442.woff2 +0 -0
  65. package/__mf/font/inter-latin-ext-400-normal.4edcaace.woff +0 -0
  66. package/__mf/font/inter-latin-ext-500-normal.a19a84a6.woff +0 -0
  67. package/__mf/font/inter-latin-ext-500-normal.d9b491de.woff2 +0 -0
  68. package/__mf/font/inter-latin-ext-600-normal.38b075d8.woff2 +0 -0
  69. package/__mf/font/inter-latin-ext-600-normal.49faa47a.woff +0 -0
  70. package/__mf/font/inter-latin-ext-700-normal.93534b50.woff +0 -0
  71. package/__mf/font/inter-latin-ext-700-normal.b63daa1a.woff2 +0 -0
  72. package/__mf/font/inter-latin-ext-900-normal.0efdb307.woff +0 -0
  73. package/__mf/font/inter-latin-ext-900-normal.9c0fc2c7.woff2 +0 -0
  74. package/__mf/font/inter-vietnamese-300-normal.aad496d8.woff +0 -0
  75. package/__mf/font/inter-vietnamese-300-normal.ad9ef503.woff2 +0 -0
  76. package/__mf/font/inter-vietnamese-400-normal.a9dd2faf.woff +0 -0
  77. package/__mf/font/inter-vietnamese-400-normal.de4fc44f.woff2 +0 -0
  78. package/__mf/font/inter-vietnamese-500-normal.7c0a695f.woff2 +0 -0
  79. package/__mf/font/inter-vietnamese-500-normal.a3a73b95.woff +0 -0
  80. package/__mf/font/inter-vietnamese-600-normal.9d518599.woff2 +0 -0
  81. package/__mf/font/inter-vietnamese-600-normal.c5ce3fcb.woff +0 -0
  82. package/__mf/font/inter-vietnamese-700-normal.bc68b199.woff +0 -0
  83. package/__mf/font/inter-vietnamese-700-normal.faf12809.woff2 +0 -0
  84. package/__mf/font/inter-vietnamese-900-normal.2b782045.woff +0 -0
  85. package/__mf/font/inter-vietnamese-900-normal.e639b65a.woff2 +0 -0
  86. package/__mf/js/GaugeChart.bad14568.js +7 -0
  87. package/__mf/js/async/1.ba1e7b30.js +30 -0
  88. package/__mf/js/async/{181.c020220f.js.LICENSE.txt → 1.ba1e7b30.js.LICENSE.txt} +17 -1
  89. package/__mf/js/async/121.f54c0cd0.js +2 -0
  90. package/__mf/js/async/172.eae65503.js +110 -0
  91. package/__mf/js/async/177.9bd5b404.js +1 -0
  92. package/__mf/js/async/192.7917eb7e.js +1 -0
  93. package/__mf/js/async/235.ccb953ba.js +1 -0
  94. package/__mf/js/async/236.f2a0aa21.js +7 -0
  95. package/__mf/js/async/{901.82adc0d0.js.LICENSE.txt → 236.f2a0aa21.js.LICENSE.txt} +19 -1
  96. package/__mf/js/async/274.f21ae591.js +2 -0
  97. package/__mf/js/async/356.0f768c5a.js +1 -0
  98. package/__mf/js/async/377.63df1710.js +1 -0
  99. package/__mf/js/async/392.fe3b02d2.js +2 -0
  100. package/__mf/js/async/403.82cf743c.js +2 -0
  101. package/__mf/js/async/410.145953d4.js +1 -0
  102. package/__mf/js/async/{77.429aab8d.js → 458.7044e4bd.js} +1 -1
  103. package/__mf/js/async/470.fb62dc61.js +2 -0
  104. package/__mf/js/async/496.5f6f5973.js +1 -0
  105. package/__mf/js/async/558.05181330.js +1 -0
  106. package/__mf/js/async/568.d6d1abb7.js +24 -0
  107. package/__mf/js/async/{634.15a57760.js.LICENSE.txt → 568.d6d1abb7.js.LICENSE.txt} +0 -16
  108. package/__mf/js/async/587.ee9de63b.js +1 -0
  109. package/__mf/js/async/588.484c07dd.js +1 -0
  110. package/__mf/js/async/616.63ed457a.js +1 -0
  111. package/__mf/js/async/71.2e72589f.js +1 -0
  112. package/__mf/js/async/756.d0f359e2.js +1 -0
  113. package/__mf/js/async/77.627b9458.js +1 -0
  114. package/__mf/js/async/823.16520e98.js +10 -0
  115. package/__mf/js/async/{204.368d6115.js.LICENSE.txt → 823.16520e98.js.LICENSE.txt} +1 -1
  116. package/__mf/js/async/854.046f5bd5.js +1 -0
  117. package/__mf/js/async/873.66154697.js +1 -0
  118. package/__mf/js/async/941.75c3a449.js +2 -0
  119. package/__mf/js/async/963.8c43a346.js +1 -0
  120. package/__mf/js/async/968.a27c5193.js +1 -0
  121. package/__mf/js/async/978.0139c7c4.js +1 -0
  122. package/__mf/js/async/__federation_expose_GaugeChart.014110ba.js +1 -0
  123. package/__mf/js/async/lib-router.cf7b1bc1.js +2 -0
  124. package/__mf/js/main.dcca1bf3.js +7 -0
  125. package/lib/GaugeChartBase.d.ts +1 -1
  126. package/lib/GaugeChartBase.d.ts.map +1 -1
  127. package/lib/GaugeChartBase.js +1 -2
  128. package/lib/GaugeChartBase.js.map +1 -1
  129. package/lib/GaugeChartOptionsEditorSettings.js.map +1 -1
  130. package/lib/GaugeChartPanel.d.ts +1 -1
  131. package/lib/GaugeChartPanel.d.ts.map +1 -1
  132. package/lib/GaugeChartPanel.js +2 -2
  133. package/lib/GaugeChartPanel.js.map +1 -1
  134. package/lib/cjs/GaugeChartBase.js +3 -4
  135. package/lib/cjs/GaugeChartPanel.js +5 -5
  136. package/lib/gauge-chart-model.d.ts +3 -2
  137. package/lib/gauge-chart-model.d.ts.map +1 -1
  138. package/lib/gauge-chart-model.js.map +1 -1
  139. package/lib/thresholds.d.ts +1 -1
  140. package/lib/thresholds.d.ts.map +1 -1
  141. package/lib/thresholds.js.map +1 -1
  142. package/mf-manifest.json +76 -62
  143. package/mf-stats.json +90 -62
  144. package/package.json +4 -4
  145. package/__mf/css/async/442.d3010b86.css +0 -1
  146. package/__mf/css/async/61.d3010b86.css +0 -1
  147. package/__mf/css/async/823.d3010b86.css +0 -1
  148. package/__mf/font/lato-all-300-normal.322bdf14.woff +0 -0
  149. package/__mf/font/lato-all-400-normal.63513b00.woff +0 -0
  150. package/__mf/font/lato-all-700-normal.bb27db94.woff +0 -0
  151. package/__mf/font/lato-all-900-normal.a27049a3.woff +0 -0
  152. package/__mf/font/lato-latin-300-normal.c5195215.woff2 +0 -0
  153. package/__mf/font/lato-latin-400-normal.b7ffde23.woff2 +0 -0
  154. package/__mf/font/lato-latin-700-normal.d5eb20bc.woff2 +0 -0
  155. package/__mf/font/lato-latin-900-normal.d884a71c.woff2 +0 -0
  156. package/__mf/font/lato-latin-ext-300-normal.abcc64a9.woff2 +0 -0
  157. package/__mf/font/lato-latin-ext-400-normal.6ebed106.woff2 +0 -0
  158. package/__mf/font/lato-latin-ext-700-normal.8697d1d5.woff2 +0 -0
  159. package/__mf/font/lato-latin-ext-900-normal.20a2b415.woff2 +0 -0
  160. package/__mf/js/GaugeChart.4c263174.js +0 -6
  161. package/__mf/js/async/121.0385c285.js +0 -2
  162. package/__mf/js/async/177.4d5022bb.js +0 -1
  163. package/__mf/js/async/181.c020220f.js +0 -111
  164. package/__mf/js/async/192.8bf7cec4.js +0 -1
  165. package/__mf/js/async/204.368d6115.js +0 -10
  166. package/__mf/js/async/235.675ef806.js +0 -1
  167. package/__mf/js/async/274.07ee62ee.js +0 -2
  168. package/__mf/js/async/350.26d75fbf.js +0 -1
  169. package/__mf/js/async/356.a480b281.js +0 -1
  170. package/__mf/js/async/377.9f5a442b.js +0 -1
  171. package/__mf/js/async/392.32210944.js +0 -2
  172. package/__mf/js/async/403.4dee4df3.js +0 -2
  173. package/__mf/js/async/410.839d386d.js +0 -1
  174. package/__mf/js/async/458.2a1e1dfe.js +0 -1
  175. package/__mf/js/async/470.9855b786.js +0 -2
  176. package/__mf/js/async/496.63537c05.js +0 -1
  177. package/__mf/js/async/587.e32d2906.js +0 -1
  178. package/__mf/js/async/588.7dda8aa9.js +0 -1
  179. package/__mf/js/async/616.1b1bb2ba.js +0 -1
  180. package/__mf/js/async/634.15a57760.js +0 -24
  181. package/__mf/js/async/71.773ab397.js +0 -1
  182. package/__mf/js/async/756.ae22d123.js +0 -1
  183. package/__mf/js/async/828.f4781483.js +0 -29
  184. package/__mf/js/async/854.0822db86.js +0 -1
  185. package/__mf/js/async/873.dca7db8d.js +0 -1
  186. package/__mf/js/async/901.82adc0d0.js +0 -7
  187. package/__mf/js/async/941.9ebff559.js +0 -2
  188. package/__mf/js/async/963.c04e5fd0.js +0 -1
  189. package/__mf/js/async/968.be22fbda.js +0 -1
  190. package/__mf/js/async/978.26163709.js +0 -1
  191. package/__mf/js/async/__federation_expose_GaugeChart.13a73d91.js +0 -1
  192. package/__mf/js/async/lib-router.9df6ec87.js +0 -2
  193. package/__mf/js/main.91b0662c.js +0 -6
  194. /package/__mf/js/async/{121.0385c285.js.LICENSE.txt → 121.f54c0cd0.js.LICENSE.txt} +0 -0
  195. /package/__mf/js/async/{274.07ee62ee.js.LICENSE.txt → 274.f21ae591.js.LICENSE.txt} +0 -0
  196. /package/__mf/js/async/{392.32210944.js.LICENSE.txt → 392.fe3b02d2.js.LICENSE.txt} +0 -0
  197. /package/__mf/js/async/{403.4dee4df3.js.LICENSE.txt → 403.82cf743c.js.LICENSE.txt} +0 -0
  198. /package/__mf/js/async/{470.9855b786.js.LICENSE.txt → 470.fb62dc61.js.LICENSE.txt} +0 -0
  199. /package/__mf/js/async/{941.9ebff559.js.LICENSE.txt → 941.75c3a449.js.LICENSE.txt} +0 -0
  200. /package/__mf/js/async/{lib-router.9df6ec87.js.LICENSE.txt → lib-router.cf7b1bc1.js.LICENSE.txt} +0 -0
@@ -0,0 +1,30 @@
1
+ /*! For license information please see 1.ba1e7b30.js.LICENSE.txt */
2
+ (self["chunk_GaugeChart "]=self["chunk_GaugeChart "]||[]).push([["1"],{34007(e,t,r){"use strict";r.d(t,{A:()=>O});var n=r(70451),i=r(11750),o=r(81023),a=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"),x=(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"),w=(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 A=r(17834);let _=(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?a.e$:a.a,r="light"===e.palette.mode?a.a:a.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)}}}))]}})),S=(0,s.A)("div",{name:"MuiAlert",slot:"Icon",overridesResolver:(e,t)=>t.icon})({marginRight:12,padding:"7px 0",display:"flex",fontSize:22,opacity:.9}),M=(0,s.A)("div",{name:"MuiAlert",slot:"Message",overridesResolver:(e,t)=>t.message})({padding:"8px 0",minWidth:0,overflow:"auto"}),k=(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}),N={success:(0,v.jsx)(y,{fontSize:"inherit"}),warning:(0,v.jsx)(b,{fontSize:"inherit"}),error:(0,v.jsx)(x,{fontSize:"inherit"}),info:(0,v.jsx)(w,{fontSize:"inherit"})},O=n.forwardRef(function(e,t){let r=(0,u.b)({props:e,name:"MuiAlert"}),{action:n,children:a,className:s,closeText:l="Close",color:d,components:f={},componentsProps:g={},icon:y,iconMapping:b=N,onClose:x,role:w="alert",severity:O="success",slotProps:C={},slots:$={},variant:E="standard",...T}=r,R={...r,color:d,severity:O,variant:E,colorSeverity:d||O},I=(e=>{let{variant:t,color:r,severity:n,classes:i}=e,a={root:["root",`color${(0,p.A)(r||n)}`,`${t}${(0,p.A)(r||n)}`,`${t}`],icon:["icon"],message:["message"],action:["action"]};return(0,o.A)(a,h.X,i)})(R),P={slots:{closeButton:f.CloseButton,closeIcon:f.CloseIcon,...$},slotProps:{...g,...C}},[j,z]=(0,c.A)("root",{ref:t,shouldForwardComponentProp:!0,className:(0,i.A)(I.root,s),elementType:_,externalForwardedProps:{...P,...T},ownerState:R,additionalProps:{role:w,elevation:0}}),[B,L]=(0,c.A)("icon",{className:I.icon,elementType:S,externalForwardedProps:P,ownerState:R}),[D,F]=(0,c.A)("message",{className:I.message,elementType:M,externalForwardedProps:P,ownerState:R}),[Z,W]=(0,c.A)("action",{className:I.action,elementType:k,externalForwardedProps:P,ownerState:R}),[q,V]=(0,c.A)("closeButton",{elementType:m.A,externalForwardedProps:P,ownerState:R}),[H,U]=(0,c.A)("closeIcon",{elementType:A.A,externalForwardedProps:P,ownerState:R});return(0,v.jsxs)(j,{...z,children:[!1!==y?(0,v.jsx)(B,{...L,children:y||b[O]||N[O]}):null,(0,v.jsx)(D,{...F,children:a}),null!=n?(0,v.jsx)(Z,{...W,children:n}):null,null==n&&x?(0,v.jsx)(Z,{...W,children:(0,v.jsx)(q,{size:"small","aria-label":l,title:l,color:"inherit",onClick:x,...V,children:(0,v.jsx)(H,{fontSize:"small",...U})})}):null]})})},52855(e,t,r){"use strict";r.d(t,{A:()=>a,X:()=>o});var n=r(29009),i=r(46733);function o(e){return(0,i.Ay)("MuiAlert",e)}let a=(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"])},5611(e,t,r){"use strict";r.d(t,{A:()=>q});var n,i,o=r(70451),a=r(11750),s=r(81023),l=r(59238),u=r(81227),c=r(48865),p=r(77308),d=r(23434),f=r(72052),h=r(24726),m=r(29009),g=r(46733);function v(e){return(0,g.Ay)("MuiListSubheader",e)}(0,m.A)("MuiListSubheader",["root","colorPrimary","colorInherit","gutters","inset","sticky"]);var y=r(62540);let b=(0,p.A)("li",{name:"MuiListSubheader",slot:"Root",overridesResolver:(e,t)=>{let{ownerState:r}=e;return[t.root,"default"!==r.color&&t[`color${(0,h.A)(r.color)}`],!r.disableGutters&&t.gutters,r.inset&&t.inset,!r.disableSticky&&t.sticky]}})((0,d.A)(({theme:e})=>({boxSizing:"border-box",lineHeight:"48px",listStyle:"none",color:(e.vars||e).palette.text.secondary,fontFamily:e.typography.fontFamily,fontWeight:e.typography.fontWeightMedium,fontSize:e.typography.pxToRem(14),variants:[{props:{color:"primary"},style:{color:(e.vars||e).palette.primary.main}},{props:{color:"inherit"},style:{color:"inherit"}},{props:({ownerState:e})=>!e.disableGutters,style:{paddingLeft:16,paddingRight:16}},{props:({ownerState:e})=>e.inset,style:{paddingLeft:72}},{props:({ownerState:e})=>!e.disableSticky,style:{position:"sticky",top:0,zIndex:1,backgroundColor:(e.vars||e).palette.background.paper}}]}))),x=o.forwardRef(function(e,t){let r=(0,f.b)({props:e,name:"MuiListSubheader"}),{className:n,color:i="default",component:o="li",disableGutters:l=!1,disableSticky:u=!1,inset:c=!1,...p}=r,d={...r,color:i,component:o,disableGutters:l,disableSticky:u,inset:c},m=(e=>{let{classes:t,color:r,disableGutters:n,inset:i,disableSticky:o}=e,a={root:["root","default"!==r&&`color${(0,h.A)(r)}`,!n&&"gutters",i&&"inset",!o&&"sticky"]};return(0,s.A)(a,v,t)})(d);return(0,y.jsx)(b,{as:o,className:(0,a.A)(m.root,n),ref:t,ownerState:d,...p})});x&&(x.muiSkipListHighlight=!0);var w=r(11502),A=r(47095),_=r(47601),S=r(63095),M=r(35931),k=r(8323),N=r(52131),O=r(17834),C=r(94886);function $(e){return(0,g.Ay)("MuiAutocomplete",e)}let E=(0,m.A)("MuiAutocomplete",["root","expanded","fullWidth","focused","focusVisible","tag","tagSizeSmall","tagSizeMedium","hasPopupIcon","hasClearIcon","inputRoot","input","inputFocused","endAdornment","clearIndicator","popupIndicator","popupIndicatorOpen","popper","popperDisablePortal","paper","listbox","loading","noOptions","option","groupLabel","groupUl"]);var T=r(73397);let R=(0,p.A)("div",{name:"MuiAutocomplete",slot:"Root",overridesResolver:(e,t)=>{let{ownerState:r}=e,{fullWidth:n,hasClearIcon:i,hasPopupIcon:o,inputFocused:a,size:s}=r;return[{[`& .${E.tag}`]:t.tag},{[`& .${E.tag}`]:t[`tagSize${(0,h.A)(s)}`]},{[`& .${E.inputRoot}`]:t.inputRoot},{[`& .${E.input}`]:t.input},{[`& .${E.input}`]:a&&t.inputFocused},t.root,n&&t.fullWidth,o&&t.hasPopupIcon,i&&t.hasClearIcon]}})({[`&.${E.focused} .${E.clearIndicator}`]:{visibility:"visible"},"@media (pointer: fine)":{[`&:hover .${E.clearIndicator}`]:{visibility:"visible"}},[`& .${E.tag}`]:{margin:3,maxWidth:"calc(100% - 6px)"},[`& .${E.inputRoot}`]:{[`.${E.hasPopupIcon}&, .${E.hasClearIcon}&`]:{paddingRight:30},[`.${E.hasPopupIcon}.${E.hasClearIcon}&`]:{paddingRight:56},[`& .${E.input}`]:{width:0,minWidth:30}},[`& .${S.A.root}`]:{paddingBottom:1,"& .MuiInput-input":{padding:"4px 4px 4px 0px"}},[`& .${S.A.root}.${M.A.sizeSmall}`]:{[`& .${S.A.input}`]:{padding:"2px 4px 3px 0"}},[`& .${k.A.root}`]:{padding:9,[`.${E.hasPopupIcon}&, .${E.hasClearIcon}&`]:{paddingRight:39},[`.${E.hasPopupIcon}.${E.hasClearIcon}&`]:{paddingRight:65},[`& .${E.input}`]:{padding:"7.5px 4px 7.5px 5px"},[`& .${E.endAdornment}`]:{right:9}},[`& .${k.A.root}.${M.A.sizeSmall}`]:{paddingTop:6,paddingBottom:6,paddingLeft:6,[`& .${E.input}`]:{padding:"2.5px 4px 2.5px 8px"}},[`& .${N.A.root}`]:{paddingTop:19,paddingLeft:8,[`.${E.hasPopupIcon}&, .${E.hasClearIcon}&`]:{paddingRight:39},[`.${E.hasPopupIcon}.${E.hasClearIcon}&`]:{paddingRight:65},[`& .${N.A.input}`]:{padding:"7px 4px"},[`& .${E.endAdornment}`]:{right:9}},[`& .${N.A.root}.${M.A.sizeSmall}`]:{paddingBottom:1,[`& .${N.A.input}`]:{padding:"2.5px 4px"}},[`& .${M.A.hiddenLabel}`]:{paddingTop:8},[`& .${N.A.root}.${M.A.hiddenLabel}`]:{paddingTop:0,paddingBottom:0,[`& .${E.input}`]:{paddingTop:16,paddingBottom:17}},[`& .${N.A.root}.${M.A.hiddenLabel}.${M.A.sizeSmall}`]:{[`& .${E.input}`]:{paddingTop:8,paddingBottom:9}},[`& .${E.input}`]:{flexGrow:1,textOverflow:"ellipsis",opacity:0},variants:[{props:{fullWidth:!0},style:{width:"100%"}},{props:{size:"small"},style:{[`& .${E.tag}`]:{margin:2,maxWidth:"calc(100% - 4px)"}}},{props:{inputFocused:!0},style:{[`& .${E.input}`]:{opacity:1}}},{props:{multiple:!0},style:{[`& .${E.inputRoot}`]:{flexWrap:"wrap"}}}]}),I=(0,p.A)("div",{name:"MuiAutocomplete",slot:"EndAdornment",overridesResolver:(e,t)=>t.endAdornment})({position:"absolute",right:0,top:"50%",transform:"translate(0, -50%)"}),P=(0,p.A)(A.A,{name:"MuiAutocomplete",slot:"ClearIndicator",overridesResolver:(e,t)=>t.clearIndicator})({marginRight:-2,padding:4,visibility:"hidden"}),j=(0,p.A)(A.A,{name:"MuiAutocomplete",slot:"PopupIndicator",overridesResolver:(e,t)=>{let{ownerState:r}=e;return[t.popupIndicator,r.popupOpen&&t.popupIndicatorOpen]}})({padding:2,marginRight:-2,variants:[{props:{popupOpen:!0},style:{transform:"rotate(180deg)"}}]}),z=(0,p.A)(c.A,{name:"MuiAutocomplete",slot:"Popper",overridesResolver:(e,t)=>{let{ownerState:r}=e;return[{[`& .${E.option}`]:t.option},t.popper,r.disablePortal&&t.popperDisablePortal]}})((0,d.A)(({theme:e})=>({zIndex:(e.vars||e).zIndex.modal,variants:[{props:{disablePortal:!0},style:{position:"absolute"}}]}))),B=(0,p.A)(w.A,{name:"MuiAutocomplete",slot:"Paper",overridesResolver:(e,t)=>t.paper})((0,d.A)(({theme:e})=>({...e.typography.body1,overflow:"auto"}))),L=(0,p.A)("div",{name:"MuiAutocomplete",slot:"Loading",overridesResolver:(e,t)=>t.loading})((0,d.A)(({theme:e})=>({color:(e.vars||e).palette.text.secondary,padding:"14px 16px"}))),D=(0,p.A)("div",{name:"MuiAutocomplete",slot:"NoOptions",overridesResolver:(e,t)=>t.noOptions})((0,d.A)(({theme:e})=>({color:(e.vars||e).palette.text.secondary,padding:"14px 16px"}))),F=(0,p.A)("ul",{name:"MuiAutocomplete",slot:"Listbox",overridesResolver:(e,t)=>t.listbox})((0,d.A)(({theme:e})=>({listStyle:"none",margin:0,padding:"8px 0",maxHeight:"40vh",overflow:"auto",position:"relative",[`& .${E.option}`]:{minHeight:48,display:"flex",overflow:"hidden",justifyContent:"flex-start",alignItems:"center",cursor:"pointer",paddingTop:6,boxSizing:"border-box",outline:"0",WebkitTapHighlightColor:"transparent",paddingBottom:6,paddingLeft:16,paddingRight:16,[e.breakpoints.up("sm")]:{minHeight:"auto"},[`&.${E.focused}`]:{backgroundColor:(e.vars||e).palette.action.hover,"@media (hover: none)":{backgroundColor:"transparent"}},'&[aria-disabled="true"]':{opacity:(e.vars||e).palette.action.disabledOpacity,pointerEvents:"none"},[`&.${E.focusVisible}`]:{backgroundColor:(e.vars||e).palette.action.focus},'&[aria-selected="true"]':{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:(0,l.X4)(e.palette.primary.main,e.palette.action.selectedOpacity),[`&.${E.focused}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.hoverOpacity}))`:(0,l.X4)(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:(e.vars||e).palette.action.selected}},[`&.${E.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.focusOpacity}))`:(0,l.X4)(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.focusOpacity)}}}}))),Z=(0,p.A)(x,{name:"MuiAutocomplete",slot:"GroupLabel",overridesResolver:(e,t)=>t.groupLabel})((0,d.A)(({theme:e})=>({backgroundColor:(e.vars||e).palette.background.paper,top:-8}))),W=(0,p.A)("ul",{name:"MuiAutocomplete",slot:"GroupUl",overridesResolver:(e,t)=>t.groupUl})({padding:0,[`& .${E.option}`]:{paddingLeft:24}}),q=o.forwardRef(function(e,t){let r,l=(0,f.b)({props:e,name:"MuiAutocomplete"}),{autoComplete:p=!1,autoHighlight:d=!1,autoSelect:m=!1,blurOnSelect:g=!1,ChipProps:v,className:b,clearIcon:x=n||(n=(0,y.jsx)(O.A,{fontSize:"small"})),clearOnBlur:A=!l.freeSolo,clearOnEscape:S=!1,clearText:M="Clear",closeText:k="Close",componentsProps:N,defaultValue:E=l.multiple?[]:null,disableClearable:q=!1,disableCloseOnSelect:V=!1,disabled:H=!1,disabledItemsFocusable:U=!1,disableListWrap:G=!1,disablePortal:X=!1,filterOptions:Y,filterSelectedOptions:K=!1,forcePopupIcon:J="auto",freeSolo:Q=!1,fullWidth:ee=!1,getLimitTagsText:et=e=>`+${e}`,getOptionDisabled:er,getOptionKey:en,getOptionLabel:ei,isOptionEqualToValue:eo,groupBy:ea,handleHomeEndKeys:es=!l.freeSolo,id:el,includeInputInList:eu=!1,inputValue:ec,limitTags:ep=-1,ListboxComponent:ed,ListboxProps:ef,loading:eh=!1,loadingText:em="Loading…",multiple:eg=!1,noOptionsText:ev="No options",onChange:ey,onClose:eb,onHighlightChange:ex,onInputChange:ew,onOpen:eA,open:e_,openOnFocus:eS=!1,openText:eM="Open",options:ek,PaperComponent:eN,PopperComponent:eO,popupIcon:eC=i||(i=(0,y.jsx)(C.A,{})),readOnly:e$=!1,renderGroup:eE,renderInput:eT,renderOption:eR,renderTags:eI,selectOnFocus:eP=!l.freeSolo,size:ej="medium",slots:ez={},slotProps:eB={},value:eL,...eD}=l,{getRootProps:eF,getInputProps:eZ,getInputLabelProps:eW,getPopupIndicatorProps:eq,getClearProps:eV,getTagProps:eH,getListboxProps:eU,getOptionProps:eG,value:eX,dirty:eY,expanded:eK,id:eJ,popupOpen:eQ,focused:e0,focusedTag:e1,anchorEl:e2,setAnchorEl:e4,inputValue:e7,groupedOptions:e5}=(0,u.A)({...l,componentName:"Autocomplete"}),e9=!q&&!H&&eY&&!e$,e3=(!Q||!0===J)&&!1!==J,{onMouseDown:e6}=eZ(),{ref:e8,...te}=eU(),tt=ei||(e=>e.label??e),tr={...l,disablePortal:X,expanded:eK,focused:e0,fullWidth:ee,getOptionLabel:tt,hasClearIcon:e9,hasPopupIcon:e3,inputFocused:-1===e1,popupOpen:eQ,size:ej},tn=(e=>{let{classes:t,disablePortal:r,expanded:n,focused:i,fullWidth:o,hasClearIcon:a,hasPopupIcon:l,inputFocused:u,popupOpen:c,size:p}=e,d={root:["root",n&&"expanded",i&&"focused",o&&"fullWidth",a&&"hasClearIcon",l&&"hasPopupIcon"],inputRoot:["inputRoot"],input:["input",u&&"inputFocused"],tag:["tag",`tagSize${(0,h.A)(p)}`],endAdornment:["endAdornment"],clearIndicator:["clearIndicator"],popupIndicator:["popupIndicator",c&&"popupIndicatorOpen"],popper:["popper",r&&"popperDisablePortal"],paper:["paper"],listbox:["listbox"],loading:["loading"],noOptions:["noOptions"],option:["option"],groupLabel:["groupLabel"],groupUl:["groupUl"]};return(0,s.A)(d,$,t)})(tr),ti={slots:{paper:eN,popper:eO,...ez},slotProps:{chip:v,listbox:ef,...N,...eB}},[to,ta]=(0,T.A)("listbox",{elementType:F,externalForwardedProps:ti,ownerState:tr,className:tn.listbox,additionalProps:te,ref:e8}),[ts,tl]=(0,T.A)("paper",{elementType:w.A,externalForwardedProps:ti,ownerState:tr,className:tn.paper}),[tu,tc]=(0,T.A)("popper",{elementType:c.A,externalForwardedProps:ti,ownerState:tr,className:tn.popper,additionalProps:{disablePortal:X,style:{width:e2?e2.clientWidth:null},role:"presentation",anchorEl:e2,open:eQ}});if(eg&&eX.length>0){let e=e=>({className:tn.tag,disabled:H,...eH(e)});r=eI?eI(eX,e,tr):eX.map((t,r)=>{let{key:n,...i}=e({index:r});return(0,y.jsx)(_.A,{label:tt(t),size:ej,...i,...ti.slotProps.chip},n)})}if(ep>-1&&Array.isArray(r)){let e=r.length-ep;!e0&&e>0&&(r=r.splice(0,ep)).push((0,y.jsx)("span",{className:tn.tag,children:et(e)},r.length))}let tp=eE||(e=>(0,y.jsxs)("li",{children:[(0,y.jsx)(Z,{className:tn.groupLabel,ownerState:tr,component:"div",children:e.group}),(0,y.jsx)(W,{className:tn.groupUl,ownerState:tr,children:e.children})]},e.key)),td=eR||((e,t)=>{let{key:r,...n}=e;return(0,y.jsx)("li",{...n,children:tt(t)},r)}),tf=(e,t)=>{let r=eG({option:e,index:t});return td({...r,className:tn.option},e,{selected:r["aria-selected"],index:t,inputValue:e7},tr)},th=ti.slotProps.clearIndicator,tm=ti.slotProps.popupIndicator;return(0,y.jsxs)(o.Fragment,{children:[(0,y.jsx)(R,{ref:t,className:(0,a.A)(tn.root,b),ownerState:tr,...eF(eD),children:eT({id:eJ,disabled:H,fullWidth:!0,size:"small"===ej?"small":void 0,InputLabelProps:eW(),InputProps:{ref:e4,className:tn.inputRoot,startAdornment:r,onMouseDown:e=>{e.target===e.currentTarget&&e6(e)},...(e9||e3)&&{endAdornment:(0,y.jsxs)(I,{className:tn.endAdornment,ownerState:tr,children:[e9?(0,y.jsx)(P,{...eV(),"aria-label":M,title:M,ownerState:tr,...th,className:(0,a.A)(tn.clearIndicator,th?.className),children:x}):null,e3?(0,y.jsx)(j,{...eq(),disabled:H,"aria-label":eQ?k:eM,title:eQ?k:eM,ownerState:tr,...tm,className:(0,a.A)(tn.popupIndicator,tm?.className),children:eC}):null]})}},inputProps:{className:tn.input,disabled:H,readOnly:e$,...eZ()}})}),e2?(0,y.jsx)(z,{as:tu,...tc,children:(0,y.jsxs)(B,{as:ts,...tl,children:[eh&&0===e5.length?(0,y.jsx)(L,{className:tn.loading,ownerState:tr,children:em}):null,0!==e5.length||Q||eh?null:(0,y.jsx)(D,{className:tn.noOptions,ownerState:tr,role:"presentation",onMouseDown:e=>{e.preventDefault()},children:ev}),e5.length>0?(0,y.jsx)(to,{as:ed,...ta,children:e5.map((e,t)=>ea?tp({key:e.key,group:e.group,children:e.options.map((t,r)=>tf(t,e.index+r))}):tf(e,t))}):null]})}):null]})})},7013(e,t,r){"use strict";r.d(t,{A:()=>$});var n=r(70451),i=r(11750),o=r(52215),a=r(81023),s=r(59238),l=r(63392),u=r(83926),c=r(77308),p=r(23434),d=r(72052),f=r(1337),h=r(25742),m=r(24726),g=r(26952),v=r(29009),y=r(46733);function b(e){return(0,y.Ay)("MuiButton",e)}let x=(0,v.A)("MuiButton",["root","text","textInherit","textPrimary","textSecondary","textSuccess","textError","textInfo","textWarning","outlined","outlinedInherit","outlinedPrimary","outlinedSecondary","outlinedSuccess","outlinedError","outlinedInfo","outlinedWarning","contained","containedInherit","containedPrimary","containedSecondary","containedSuccess","containedError","containedInfo","containedWarning","disableElevation","focusVisible","disabled","colorInherit","colorPrimary","colorSecondary","colorSuccess","colorError","colorInfo","colorWarning","textSizeSmall","textSizeMedium","textSizeLarge","outlinedSizeSmall","outlinedSizeMedium","outlinedSizeLarge","containedSizeSmall","containedSizeMedium","containedSizeLarge","sizeMedium","sizeSmall","sizeLarge","fullWidth","startIcon","endIcon","icon","iconSizeSmall","iconSizeMedium","iconSizeLarge","loading","loadingWrapper","loadingIconPlaceholder","loadingIndicator","loadingPositionCenter","loadingPositionStart","loadingPositionEnd"]);var w=r(94580),A=r(30016),_=r(62540);let S=[{props:{size:"small"},style:{"& > *:nth-of-type(1)":{fontSize:18}}},{props:{size:"medium"},style:{"& > *:nth-of-type(1)":{fontSize:20}}},{props:{size:"large"},style:{"& > *:nth-of-type(1)":{fontSize:22}}}],M=(0,c.A)(f.A,{shouldForwardProp:e=>(0,u.A)(e)||"classes"===e,name:"MuiButton",slot:"Root",overridesResolver:(e,t)=>{let{ownerState:r}=e;return[t.root,t[r.variant],t[`${r.variant}${(0,m.A)(r.color)}`],t[`size${(0,m.A)(r.size)}`],t[`${r.variant}Size${(0,m.A)(r.size)}`],"inherit"===r.color&&t.colorInherit,r.disableElevation&&t.disableElevation,r.fullWidth&&t.fullWidth,r.loading&&t.loading]}})((0,p.A)(({theme:e})=>{let t="light"===e.palette.mode?e.palette.grey[300]:e.palette.grey[800],r="light"===e.palette.mode?e.palette.grey.A100:e.palette.grey[700];return{...e.typography.button,minWidth:64,padding:"6px 16px",border:0,borderRadius:(e.vars||e).shape.borderRadius,transition:e.transitions.create(["background-color","box-shadow","border-color","color"],{duration:e.transitions.duration.short}),"&:hover":{textDecoration:"none"},[`&.${x.disabled}`]:{color:(e.vars||e).palette.action.disabled},variants:[{props:{variant:"contained"},style:{color:"var(--variant-containedColor)",backgroundColor:"var(--variant-containedBg)",boxShadow:(e.vars||e).shadows[2],"&:hover":{boxShadow:(e.vars||e).shadows[4],"@media (hover: none)":{boxShadow:(e.vars||e).shadows[2]}},"&:active":{boxShadow:(e.vars||e).shadows[8]},[`&.${x.focusVisible}`]:{boxShadow:(e.vars||e).shadows[6]},[`&.${x.disabled}`]:{color:(e.vars||e).palette.action.disabled,boxShadow:(e.vars||e).shadows[0],backgroundColor:(e.vars||e).palette.action.disabledBackground}}},{props:{variant:"outlined"},style:{padding:"5px 15px",border:"1px solid currentColor",borderColor:"var(--variant-outlinedBorder, currentColor)",backgroundColor:"var(--variant-outlinedBg)",color:"var(--variant-outlinedColor)",[`&.${x.disabled}`]:{border:`1px solid ${(e.vars||e).palette.action.disabledBackground}`}}},{props:{variant:"text"},style:{padding:"6px 8px",color:"var(--variant-textColor)",backgroundColor:"var(--variant-textBg)"}},...Object.entries(e.palette).filter((0,g.A)()).map(([t])=>({props:{color:t},style:{"--variant-textColor":(e.vars||e).palette[t].main,"--variant-outlinedColor":(e.vars||e).palette[t].main,"--variant-outlinedBorder":e.vars?`rgba(${e.vars.palette[t].mainChannel} / 0.5)`:(0,s.X4)(e.palette[t].main,.5),"--variant-containedColor":(e.vars||e).palette[t].contrastText,"--variant-containedBg":(e.vars||e).palette[t].main,"@media (hover: hover)":{"&:hover":{"--variant-containedBg":(e.vars||e).palette[t].dark,"--variant-textBg":e.vars?`rgba(${e.vars.palette[t].mainChannel} / ${e.vars.palette.action.hoverOpacity})`:(0,s.X4)(e.palette[t].main,e.palette.action.hoverOpacity),"--variant-outlinedBorder":(e.vars||e).palette[t].main,"--variant-outlinedBg":e.vars?`rgba(${e.vars.palette[t].mainChannel} / ${e.vars.palette.action.hoverOpacity})`:(0,s.X4)(e.palette[t].main,e.palette.action.hoverOpacity)}}}})),{props:{color:"inherit"},style:{color:"inherit",borderColor:"currentColor","--variant-containedBg":e.vars?e.vars.palette.Button.inheritContainedBg:t,"@media (hover: hover)":{"&:hover":{"--variant-containedBg":e.vars?e.vars.palette.Button.inheritContainedHoverBg:r,"--variant-textBg":e.vars?`rgba(${e.vars.palette.text.primaryChannel} / ${e.vars.palette.action.hoverOpacity})`:(0,s.X4)(e.palette.text.primary,e.palette.action.hoverOpacity),"--variant-outlinedBg":e.vars?`rgba(${e.vars.palette.text.primaryChannel} / ${e.vars.palette.action.hoverOpacity})`:(0,s.X4)(e.palette.text.primary,e.palette.action.hoverOpacity)}}}},{props:{size:"small",variant:"text"},style:{padding:"4px 5px",fontSize:e.typography.pxToRem(13)}},{props:{size:"large",variant:"text"},style:{padding:"8px 11px",fontSize:e.typography.pxToRem(15)}},{props:{size:"small",variant:"outlined"},style:{padding:"3px 9px",fontSize:e.typography.pxToRem(13)}},{props:{size:"large",variant:"outlined"},style:{padding:"7px 21px",fontSize:e.typography.pxToRem(15)}},{props:{size:"small",variant:"contained"},style:{padding:"4px 10px",fontSize:e.typography.pxToRem(13)}},{props:{size:"large",variant:"contained"},style:{padding:"8px 22px",fontSize:e.typography.pxToRem(15)}},{props:{disableElevation:!0},style:{boxShadow:"none","&:hover":{boxShadow:"none"},[`&.${x.focusVisible}`]:{boxShadow:"none"},"&:active":{boxShadow:"none"},[`&.${x.disabled}`]:{boxShadow:"none"}}},{props:{fullWidth:!0},style:{width:"100%"}},{props:{loadingPosition:"center"},style:{transition:e.transitions.create(["background-color","box-shadow","border-color"],{duration:e.transitions.duration.short}),[`&.${x.loading}`]:{color:"transparent"}}}]}})),k=(0,c.A)("span",{name:"MuiButton",slot:"StartIcon",overridesResolver:(e,t)=>{let{ownerState:r}=e;return[t.startIcon,r.loading&&t.startIconLoadingStart,t[`iconSize${(0,m.A)(r.size)}`]]}})(({theme:e})=>({display:"inherit",marginRight:8,marginLeft:-4,variants:[{props:{size:"small"},style:{marginLeft:-2}},{props:{loadingPosition:"start",loading:!0},style:{transition:e.transitions.create(["opacity"],{duration:e.transitions.duration.short}),opacity:0}},{props:{loadingPosition:"start",loading:!0,fullWidth:!0},style:{marginRight:-8}},...S]})),N=(0,c.A)("span",{name:"MuiButton",slot:"EndIcon",overridesResolver:(e,t)=>{let{ownerState:r}=e;return[t.endIcon,r.loading&&t.endIconLoadingEnd,t[`iconSize${(0,m.A)(r.size)}`]]}})(({theme:e})=>({display:"inherit",marginRight:-4,marginLeft:8,variants:[{props:{size:"small"},style:{marginRight:-2}},{props:{loadingPosition:"end",loading:!0},style:{transition:e.transitions.create(["opacity"],{duration:e.transitions.duration.short}),opacity:0}},{props:{loadingPosition:"end",loading:!0,fullWidth:!0},style:{marginLeft:-8}},...S]})),O=(0,c.A)("span",{name:"MuiButton",slot:"LoadingIndicator",overridesResolver:(e,t)=>t.loadingIndicator})(({theme:e})=>({display:"none",position:"absolute",visibility:"visible",variants:[{props:{loading:!0},style:{display:"flex"}},{props:{loadingPosition:"start"},style:{left:14}},{props:{loadingPosition:"start",size:"small"},style:{left:10}},{props:{variant:"text",loadingPosition:"start"},style:{left:6}},{props:{loadingPosition:"center"},style:{left:"50%",transform:"translate(-50%)",color:(e.vars||e).palette.action.disabled}},{props:{loadingPosition:"end"},style:{right:14}},{props:{loadingPosition:"end",size:"small"},style:{right:10}},{props:{variant:"text",loadingPosition:"end"},style:{right:6}},{props:{loadingPosition:"start",fullWidth:!0},style:{position:"relative",left:-10}},{props:{loadingPosition:"end",fullWidth:!0},style:{position:"relative",right:-10}}]})),C=(0,c.A)("span",{name:"MuiButton",slot:"LoadingIconPlaceholder",overridesResolver:(e,t)=>t.loadingIconPlaceholder})({display:"inline-block",width:"1em",height:"1em"}),$=n.forwardRef(function(e,t){let r=n.useContext(w.A),s=n.useContext(A.A),u=(0,o.A)(r,e),c=(0,d.b)({props:u,name:"MuiButton"}),{children:p,color:f="primary",component:g="button",className:v,disabled:y=!1,disableElevation:x=!1,disableFocusRipple:S=!1,endIcon:$,focusVisibleClassName:E,fullWidth:T=!1,id:R,loading:I=null,loadingIndicator:P,loadingPosition:j="center",size:z="medium",startIcon:B,type:L,variant:D="text",...F}=c,Z=(0,l.A)(R),W=P??(0,_.jsx)(h.A,{"aria-labelledby":Z,color:"inherit",size:16}),q={...c,color:f,component:g,disabled:y,disableElevation:x,disableFocusRipple:S,fullWidth:T,loading:I,loadingIndicator:W,loadingPosition:j,size:z,type:L,variant:D},V=(e=>{let{color:t,disableElevation:r,fullWidth:n,size:i,variant:o,loading:s,loadingPosition:l,classes:u}=e,c={root:["root",s&&"loading",o,`${o}${(0,m.A)(t)}`,`size${(0,m.A)(i)}`,`${o}Size${(0,m.A)(i)}`,`color${(0,m.A)(t)}`,r&&"disableElevation",n&&"fullWidth",s&&`loadingPosition${(0,m.A)(l)}`],startIcon:["icon","startIcon",`iconSize${(0,m.A)(i)}`],endIcon:["icon","endIcon",`iconSize${(0,m.A)(i)}`],loadingIndicator:["loadingIndicator"],loadingWrapper:["loadingWrapper"]},p=(0,a.A)(c,b,u);return{...u,...p}})(q),H=(B||I&&"start"===j)&&(0,_.jsx)(k,{className:V.startIcon,ownerState:q,children:B||(0,_.jsx)(C,{className:V.loadingIconPlaceholder,ownerState:q})}),U=($||I&&"end"===j)&&(0,_.jsx)(N,{className:V.endIcon,ownerState:q,children:$||(0,_.jsx)(C,{className:V.loadingIconPlaceholder,ownerState:q})}),G="boolean"==typeof I?(0,_.jsx)("span",{className:V.loadingWrapper,style:{display:"contents"},children:I&&(0,_.jsx)(O,{className:V.loadingIndicator,ownerState:q,children:W})}):null;return(0,_.jsxs)(M,{ownerState:q,className:(0,i.A)(r.className,V.root,v,s||""),component:g,disabled:y||I,focusRipple:!S,focusVisibleClassName:(0,i.A)(V.focusVisible,E),ref:t,type:L,id:I?Z:R,...F,classes:V,children:[H,"end"!==j&&G,p,"end"===j&&G,U]})})},30016(e,t,r){"use strict";r.d(t,{A:()=>n});let n=r(70451).createContext(void 0)},94580(e,t,r){"use strict";r.d(t,{A:()=>n});let n=r(70451).createContext({})},42927(e,t,r){"use strict";r.d(t,{A:()=>C});var n=r(70451),i=r(11750),o=r(81023),a=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),x=r(23434),w=r(26952),A=r(72052),_=r(64606),S=r(73397);let M=(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,x.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,a.X4)(e.palette.action.active,e.palette.action.hoverOpacity)}}},...Object.entries(e.palette).filter((0,w.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,a.X4)(e.palette[t].main,e.palette.action.hoverOpacity)}}})),...Object.entries(e.palette).filter((0,w.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"}}}}]}))),k=(0,u.jsx)(p,{}),N=(0,u.jsx)(c,{}),O=(0,u.jsx)(d,{}),C=n.forwardRef(function(e,t){let r=(0,A.b)({props:e,name:"MuiCheckbox"}),{checkedIcon:a=k,color:s="primary",icon:l=N,indeterminate:c=!1,indeterminateIcon:p=O,inputProps:d,size:h="medium",disableRipple:m=!1,className:g,slots:y={},slotProps:b={},...x}=r,w=c?p:l,C=c?p:a,$={...r,disableRipple:m,color:s,indeterminate:c,size:h},E=(e=>{let{classes:t,indeterminate:r,color:n,size:i}=e,a={root:["root",r&&"indeterminate",`color${(0,f.A)(n)}`,`size${(0,f.A)(i)}`]},s=(0,o.A)(a,v,t);return{...t,...s}})($),T=b.input??d,[R,I]=(0,S.A)("root",{ref:t,elementType:M,className:(0,i.A)(E.root,g),shouldForwardComponentProp:!0,externalForwardedProps:{slots:y,slotProps:b,...x},ownerState:$,additionalProps:{type:"checkbox",icon:n.cloneElement(w,{fontSize:w.props.fontSize??h}),checkedIcon:n.cloneElement(C,{fontSize:C.props.fontSize??h}),disableRipple:m,slots:y,slotProps:{input:(0,_.A)("function"==typeof T?T($):T,{"data-indeterminate":c})}}});return(0,u.jsx)(R,{...I,classes:E})})},47601(e,t,r){"use strict";r.d(t,{A:()=>S});var n=r(70451),i=r(11750),o=r(81023),a=r(59238),s=r(22402),l=r(62540);let u=(0,s.A)((0,l.jsx)("path",{d:"M12 2C6.47 2 2 6.47 2 12s4.47 10 10 10 10-4.47 10-10S17.53 2 12 2zm5 13.59L15.59 17 12 13.41 8.41 17 7 15.59 10.59 12 7 8.41 8.41 7 12 10.59 15.59 7 17 8.41 13.41 12 17 15.59z"}),"Cancel");var c=r(29424),p=r(24726),d=r(1337),f=r(77308),h=r(23434),m=r(26952),g=r(72052),v=r(29009),y=r(46733);function b(e){return(0,y.Ay)("MuiChip",e)}let x=(0,v.A)("MuiChip",["root","sizeSmall","sizeMedium","colorDefault","colorError","colorInfo","colorPrimary","colorSecondary","colorSuccess","colorWarning","disabled","clickable","clickableColorPrimary","clickableColorSecondary","deletable","deletableColorPrimary","deletableColorSecondary","outlined","filled","outlinedPrimary","outlinedSecondary","filledPrimary","filledSecondary","avatar","avatarSmall","avatarMedium","avatarColorPrimary","avatarColorSecondary","icon","iconSmall","iconMedium","iconColorPrimary","iconColorSecondary","label","labelSmall","labelMedium","deleteIcon","deleteIconSmall","deleteIconMedium","deleteIconColorPrimary","deleteIconColorSecondary","deleteIconOutlinedColorPrimary","deleteIconOutlinedColorSecondary","deleteIconFilledColorPrimary","deleteIconFilledColorSecondary","focusVisible"]),w=(0,f.A)("div",{name:"MuiChip",slot:"Root",overridesResolver:(e,t)=>{let{ownerState:r}=e,{color:n,iconColor:i,clickable:o,onDelete:a,size:s,variant:l}=r;return[{[`& .${x.avatar}`]:t.avatar},{[`& .${x.avatar}`]:t[`avatar${(0,p.A)(s)}`]},{[`& .${x.avatar}`]:t[`avatarColor${(0,p.A)(n)}`]},{[`& .${x.icon}`]:t.icon},{[`& .${x.icon}`]:t[`icon${(0,p.A)(s)}`]},{[`& .${x.icon}`]:t[`iconColor${(0,p.A)(i)}`]},{[`& .${x.deleteIcon}`]:t.deleteIcon},{[`& .${x.deleteIcon}`]:t[`deleteIcon${(0,p.A)(s)}`]},{[`& .${x.deleteIcon}`]:t[`deleteIconColor${(0,p.A)(n)}`]},{[`& .${x.deleteIcon}`]:t[`deleteIcon${(0,p.A)(l)}Color${(0,p.A)(n)}`]},t.root,t[`size${(0,p.A)(s)}`],t[`color${(0,p.A)(n)}`],o&&t.clickable,o&&"default"!==n&&t[`clickableColor${(0,p.A)(n)})`],a&&t.deletable,a&&"default"!==n&&t[`deletableColor${(0,p.A)(n)}`],t[l],t[`${l}${(0,p.A)(n)}`]]}})((0,h.A)(({theme:e})=>{let t="light"===e.palette.mode?e.palette.grey[700]:e.palette.grey[300];return{maxWidth:"100%",fontFamily:e.typography.fontFamily,fontSize:e.typography.pxToRem(13),display:"inline-flex",alignItems:"center",justifyContent:"center",height:32,color:(e.vars||e).palette.text.primary,backgroundColor:(e.vars||e).palette.action.selected,borderRadius:16,whiteSpace:"nowrap",transition:e.transitions.create(["background-color","box-shadow"]),cursor:"unset",outline:0,textDecoration:"none",border:0,padding:0,verticalAlign:"middle",boxSizing:"border-box",[`&.${x.disabled}`]:{opacity:(e.vars||e).palette.action.disabledOpacity,pointerEvents:"none"},[`& .${x.avatar}`]:{marginLeft:5,marginRight:-6,width:24,height:24,color:e.vars?e.vars.palette.Chip.defaultAvatarColor:t,fontSize:e.typography.pxToRem(12)},[`& .${x.avatarColorPrimary}`]:{color:(e.vars||e).palette.primary.contrastText,backgroundColor:(e.vars||e).palette.primary.dark},[`& .${x.avatarColorSecondary}`]:{color:(e.vars||e).palette.secondary.contrastText,backgroundColor:(e.vars||e).palette.secondary.dark},[`& .${x.avatarSmall}`]:{marginLeft:4,marginRight:-4,width:18,height:18,fontSize:e.typography.pxToRem(10)},[`& .${x.icon}`]:{marginLeft:5,marginRight:-6},[`& .${x.deleteIcon}`]:{WebkitTapHighlightColor:"transparent",color:e.vars?`rgba(${e.vars.palette.text.primaryChannel} / 0.26)`:(0,a.X4)(e.palette.text.primary,.26),fontSize:22,cursor:"pointer",margin:"0 5px 0 -6px","&:hover":{color:e.vars?`rgba(${e.vars.palette.text.primaryChannel} / 0.4)`:(0,a.X4)(e.palette.text.primary,.4)}},variants:[{props:{size:"small"},style:{height:24,[`& .${x.icon}`]:{fontSize:18,marginLeft:4,marginRight:-4},[`& .${x.deleteIcon}`]:{fontSize:16,marginRight:4,marginLeft:-4}}},...Object.entries(e.palette).filter((0,m.A)(["contrastText"])).map(([t])=>({props:{color:t},style:{backgroundColor:(e.vars||e).palette[t].main,color:(e.vars||e).palette[t].contrastText,[`& .${x.deleteIcon}`]:{color:e.vars?`rgba(${e.vars.palette[t].contrastTextChannel} / 0.7)`:(0,a.X4)(e.palette[t].contrastText,.7),"&:hover, &:active":{color:(e.vars||e).palette[t].contrastText}}}})),{props:e=>e.iconColor===e.color,style:{[`& .${x.icon}`]:{color:e.vars?e.vars.palette.Chip.defaultIconColor:t}}},{props:e=>e.iconColor===e.color&&"default"!==e.color,style:{[`& .${x.icon}`]:{color:"inherit"}}},{props:{onDelete:!0},style:{[`&.${x.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.action.selectedChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.focusOpacity}))`:(0,a.X4)(e.palette.action.selected,e.palette.action.selectedOpacity+e.palette.action.focusOpacity)}}},...Object.entries(e.palette).filter((0,m.A)(["dark"])).map(([t])=>({props:{color:t,onDelete:!0},style:{[`&.${x.focusVisible}`]:{background:(e.vars||e).palette[t].dark}}})),{props:{clickable:!0},style:{userSelect:"none",WebkitTapHighlightColor:"transparent",cursor:"pointer","&:hover":{backgroundColor:e.vars?`rgba(${e.vars.palette.action.selectedChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.hoverOpacity}))`:(0,a.X4)(e.palette.action.selected,e.palette.action.selectedOpacity+e.palette.action.hoverOpacity)},[`&.${x.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.action.selectedChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.focusOpacity}))`:(0,a.X4)(e.palette.action.selected,e.palette.action.selectedOpacity+e.palette.action.focusOpacity)},"&:active":{boxShadow:(e.vars||e).shadows[1]}}},...Object.entries(e.palette).filter((0,m.A)(["dark"])).map(([t])=>({props:{color:t,clickable:!0},style:{[`&:hover, &.${x.focusVisible}`]:{backgroundColor:(e.vars||e).palette[t].dark}}})),{props:{variant:"outlined"},style:{backgroundColor:"transparent",border:e.vars?`1px solid ${e.vars.palette.Chip.defaultBorder}`:`1px solid ${"light"===e.palette.mode?e.palette.grey[400]:e.palette.grey[700]}`,[`&.${x.clickable}:hover`]:{backgroundColor:(e.vars||e).palette.action.hover},[`&.${x.focusVisible}`]:{backgroundColor:(e.vars||e).palette.action.focus},[`& .${x.avatar}`]:{marginLeft:4},[`& .${x.avatarSmall}`]:{marginLeft:2},[`& .${x.icon}`]:{marginLeft:4},[`& .${x.iconSmall}`]:{marginLeft:2},[`& .${x.deleteIcon}`]:{marginRight:5},[`& .${x.deleteIconSmall}`]:{marginRight:3}}},...Object.entries(e.palette).filter((0,m.A)()).map(([t])=>({props:{variant:"outlined",color:t},style:{color:(e.vars||e).palette[t].main,border:`1px solid ${e.vars?`rgba(${e.vars.palette[t].mainChannel} / 0.7)`:(0,a.X4)(e.palette[t].main,.7)}`,[`&.${x.clickable}:hover`]:{backgroundColor:e.vars?`rgba(${e.vars.palette[t].mainChannel} / ${e.vars.palette.action.hoverOpacity})`:(0,a.X4)(e.palette[t].main,e.palette.action.hoverOpacity)},[`&.${x.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette[t].mainChannel} / ${e.vars.palette.action.focusOpacity})`:(0,a.X4)(e.palette[t].main,e.palette.action.focusOpacity)},[`& .${x.deleteIcon}`]:{color:e.vars?`rgba(${e.vars.palette[t].mainChannel} / 0.7)`:(0,a.X4)(e.palette[t].main,.7),"&:hover, &:active":{color:(e.vars||e).palette[t].main}}}}))]}})),A=(0,f.A)("span",{name:"MuiChip",slot:"Label",overridesResolver:(e,t)=>{let{ownerState:r}=e,{size:n}=r;return[t.label,t[`label${(0,p.A)(n)}`]]}})({overflow:"hidden",textOverflow:"ellipsis",paddingLeft:12,paddingRight:12,whiteSpace:"nowrap",variants:[{props:{variant:"outlined"},style:{paddingLeft:11,paddingRight:11}},{props:{size:"small"},style:{paddingLeft:8,paddingRight:8}},{props:{size:"small",variant:"outlined"},style:{paddingLeft:7,paddingRight:7}}]});function _(e){return"Backspace"===e.key||"Delete"===e.key}let S=n.forwardRef(function(e,t){let r=(0,g.b)({props:e,name:"MuiChip"}),{avatar:a,className:s,clickable:f,color:h="default",component:m,deleteIcon:v,disabled:y=!1,icon:x,label:S,onClick:M,onDelete:k,onKeyDown:N,onKeyUp:O,size:C="medium",variant:$="filled",tabIndex:E,skipFocusWhenDisabled:T=!1,...R}=r,I=n.useRef(null),P=(0,c.A)(I,t),j=e=>{e.stopPropagation(),k&&k(e)},z=!1!==f&&!!M||f,B=z||k?d.A:m||"div",L={...r,component:B,disabled:y,size:C,color:h,iconColor:n.isValidElement(x)&&x.props.color||h,onDelete:!!k,clickable:z,variant:$},D=(e=>{let{classes:t,disabled:r,size:n,color:i,iconColor:a,onDelete:s,clickable:l,variant:u}=e,c={root:["root",u,r&&"disabled",`size${(0,p.A)(n)}`,`color${(0,p.A)(i)}`,l&&"clickable",l&&`clickableColor${(0,p.A)(i)}`,s&&"deletable",s&&`deletableColor${(0,p.A)(i)}`,`${u}${(0,p.A)(i)}`],label:["label",`label${(0,p.A)(n)}`],avatar:["avatar",`avatar${(0,p.A)(n)}`,`avatarColor${(0,p.A)(i)}`],icon:["icon",`icon${(0,p.A)(n)}`,`iconColor${(0,p.A)(a)}`],deleteIcon:["deleteIcon",`deleteIcon${(0,p.A)(n)}`,`deleteIconColor${(0,p.A)(i)}`,`deleteIcon${(0,p.A)(u)}Color${(0,p.A)(i)}`]};return(0,o.A)(c,b,t)})(L),F=B===d.A?{component:m||"div",focusVisibleClassName:D.focusVisible,...k&&{disableRipple:!0}}:{},Z=null;k&&(Z=v&&n.isValidElement(v)?n.cloneElement(v,{className:(0,i.A)(v.props.className,D.deleteIcon),onClick:j}):(0,l.jsx)(u,{className:(0,i.A)(D.deleteIcon),onClick:j}));let W=null;a&&n.isValidElement(a)&&(W=n.cloneElement(a,{className:(0,i.A)(D.avatar,a.props.className)}));let q=null;return x&&n.isValidElement(x)&&(q=n.cloneElement(x,{className:(0,i.A)(D.icon,x.props.className)})),(0,l.jsxs)(w,{as:B,className:(0,i.A)(D.root,s),disabled:!!z&&!!y||void 0,onClick:M,onKeyDown:e=>{e.currentTarget===e.target&&_(e)&&e.preventDefault(),N&&N(e)},onKeyUp:e=>{e.currentTarget===e.target&&k&&_(e)&&k(e),O&&O(e)},ref:P,tabIndex:T&&y?-1:E,ownerState:L,...F,...R,children:[W||q,(0,l.jsx)(A,{className:(0,i.A)(D.label),ownerState:L,children:S}),Z]})})},25742(e,t,r){"use strict";r.d(t,{A:()=>_});var n=r(70451),i=r(11750),o=r(81023),a=r(69402),s=r(77308),l=r(23434),u=r(72052),c=r(24726),p=r(26952),d=r(29009),f=r(46733);function h(e){return(0,f.Ay)("MuiCircularProgress",e)}(0,d.A)("MuiCircularProgress",["root","determinate","indeterminate","colorPrimary","colorSecondary","svg","circle","circleDeterminate","circleIndeterminate","circleDisableShrink"]);var m=r(62540);let g=(0,a.keyframes)`
3
+ 0% {
4
+ transform: rotate(0deg);
5
+ }
6
+
7
+ 100% {
8
+ transform: rotate(360deg);
9
+ }
10
+ `,v=(0,a.keyframes)`
11
+ 0% {
12
+ stroke-dasharray: 1px, 200px;
13
+ stroke-dashoffset: 0;
14
+ }
15
+
16
+ 50% {
17
+ stroke-dasharray: 100px, 200px;
18
+ stroke-dashoffset: -15px;
19
+ }
20
+
21
+ 100% {
22
+ stroke-dasharray: 1px, 200px;
23
+ stroke-dashoffset: -126px;
24
+ }
25
+ `,y="string"!=typeof g?(0,a.css)`
26
+ animation: ${g} 1.4s linear infinite;
27
+ `:null,b="string"!=typeof v?(0,a.css)`
28
+ animation: ${v} 1.4s ease-in-out infinite;
29
+ `:null,x=(0,s.A)("span",{name:"MuiCircularProgress",slot:"Root",overridesResolver:(e,t)=>{let{ownerState:r}=e;return[t.root,t[r.variant],t[`color${(0,c.A)(r.color)}`]]}})((0,l.A)(({theme:e})=>({display:"inline-block",variants:[{props:{variant:"determinate"},style:{transition:e.transitions.create("transform")}},{props:{variant:"indeterminate"},style:y||{animation:`${g} 1.4s linear infinite`}},...Object.entries(e.palette).filter((0,p.A)()).map(([t])=>({props:{color:t},style:{color:(e.vars||e).palette[t].main}}))]}))),w=(0,s.A)("svg",{name:"MuiCircularProgress",slot:"Svg",overridesResolver:(e,t)=>t.svg})({display:"block"}),A=(0,s.A)("circle",{name:"MuiCircularProgress",slot:"Circle",overridesResolver:(e,t)=>{let{ownerState:r}=e;return[t.circle,t[`circle${(0,c.A)(r.variant)}`],r.disableShrink&&t.circleDisableShrink]}})((0,l.A)(({theme:e})=>({stroke:"currentColor",variants:[{props:{variant:"determinate"},style:{transition:e.transitions.create("stroke-dashoffset")}},{props:{variant:"indeterminate"},style:{strokeDasharray:"80px, 200px",strokeDashoffset:0}},{props:({ownerState:e})=>"indeterminate"===e.variant&&!e.disableShrink,style:b||{animation:`${v} 1.4s ease-in-out infinite`}}]}))),_=n.forwardRef(function(e,t){let r=(0,u.b)({props:e,name:"MuiCircularProgress"}),{className:n,color:a="primary",disableShrink:s=!1,size:l=40,style:p,thickness:d=3.6,value:f=0,variant:g="indeterminate",...v}=r,y={...r,color:a,disableShrink:s,size:l,thickness:d,value:f,variant:g},b=(e=>{let{classes:t,variant:r,color:n,disableShrink:i}=e,a={root:["root",r,`color${(0,c.A)(n)}`],svg:["svg"],circle:["circle",`circle${(0,c.A)(r)}`,i&&"circleDisableShrink"]};return(0,o.A)(a,h,t)})(y),_={},S={},M={};if("determinate"===g){let e=2*Math.PI*((44-d)/2);_.strokeDasharray=e.toFixed(3),M["aria-valuenow"]=Math.round(f),_.strokeDashoffset=`${((100-f)/100*e).toFixed(3)}px`,S.transform="rotate(-90deg)"}return(0,m.jsx)(x,{className:(0,i.A)(b.root,n),style:{width:l,height:l,...S,...p},ownerState:y,ref:t,role:"progressbar",...M,...v,children:(0,m.jsx)(w,{className:b.svg,ownerState:y,viewBox:"22 22 44 44",children:(0,m.jsx)(A,{className:b.circle,style:_,ownerState:y,cx:44,cy:44,r:(44-d)/2,fill:"none",strokeWidth:d})})})})},92890(e,t,r){"use strict";r.d(t,{A:()=>N});var n=r(70451),i=r(11750),o=r(81023),a=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),x=r(72052),w=r(73397),A=r(62540);let _=(0,v.A)(g.A,{name:"MuiDialog",slot:"Backdrop",overrides:(e,t)=>t.backdrop})({zIndex:-1}),S=(0,v.A)(l.A,{name:"MuiDialog",slot:"Root",overridesResolver:(e,t)=>t.root})({"@media print":{position:"absolute !important"}}),M=(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"}}}]}),k=(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%"}}}]}))),N=n.forwardRef(function(e,t){let r=(0,x.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:N,className:O,disableEscapeKeyDown:C=!1,fullScreen:$=!1,fullWidth:E=!1,maxWidth:T="sm",onBackdropClick:R,onClick:I,onClose:P,open:j,PaperComponent:z=c.A,PaperProps:B={},scroll:L="paper",slots:D={},slotProps:F={},TransitionComponent:Z=u.A,transitionDuration:W=p,TransitionProps:q,...V}=r,H={...r,disableEscapeKeyDown:C,fullScreen:$,fullWidth:E,maxWidth:T,scroll:L},U=(e=>{let{classes:t,scroll:r,maxWidth:n,fullWidth:i,fullScreen:a}=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",a&&"paperFullScreen"]};return(0,o.A)(l,f,t)})(H),G=n.useRef(),X=(0,a.A)(h),Y=n.useMemo(()=>({titleId:X}),[X]),K={slots:{transition:Z,...D},slotProps:{transition:q,paper:B,backdrop:b,...F}},[J,Q]=(0,w.A)("root",{elementType:S,shouldForwardComponentProp:!0,externalForwardedProps:K,ownerState:H,className:(0,i.A)(U.root,O),ref:t}),[ee,et]=(0,w.A)("backdrop",{elementType:_,shouldForwardComponentProp:!0,externalForwardedProps:K,ownerState:H}),[er,en]=(0,w.A)("paper",{elementType:k,shouldForwardComponentProp:!0,externalForwardedProps:K,ownerState:H,className:(0,i.A)(U.paper,B.className)}),[ei,eo]=(0,w.A)("container",{elementType:M,externalForwardedProps:K,ownerState:H,className:(0,i.A)(U.container)}),[ea,es]=(0,w.A)("transition",{elementType:u.A,externalForwardedProps:K,ownerState:H,additionalProps:{appear:!0,in:j,timeout:W,role:"presentation"}});return(0,A.jsx)(J,{closeAfterTransition:!0,slots:{backdrop:ee},slotProps:{backdrop:{transitionDuration:W,as:v,...et}},disableEscapeKeyDown:C,onClose:P,open:j,onClick:e=>{I&&I(e),G.current&&(G.current=null,R&&R(e),P&&P(e,"backdropClick"))},...Q,...V,children:(0,A.jsx)(ea,{...es,children:(0,A.jsx)(ei,{onMouseDown:e=>{G.current=e.target===e.currentTarget},...eo,children:(0,A.jsx)(er,{as:z,elevation:24,role:"dialog","aria-describedby":d,"aria-labelledby":X,"aria-modal":g,...en,children:(0,A.jsx)(m.A.Provider,{value:Y,children:N})})})})})})},37042(e,t,r){"use strict";r.d(t,{A:()=>n});let n=r(70451).createContext({})},39750(e,t,r){"use strict";r.d(t,{A:()=>f});var n=r(70451),i=r(11750),o=r(81023),a=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,a.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:a=!1,...l}=r,u={...r,disableSpacing:a},f=(e=>{let{classes:t,disableSpacing:r}=e;return(0,o.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(70451),i=r(11750),o=r(81023),a=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,a.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:a=!1,...s}=r,u={...r,dividers:a},c=(e=>{let{classes:t,dividers:r}=e;return(0,o.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(70451),i=r(11750),o=r(81023),a=r(88091),s=r(77308),l=r(72052),u=r(36831),c=r(37042),p=r(62540);let d=(0,s.A)(a.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:a,id:s,...f}=r,h=(e=>{let{classes:t}=e;return(0,o.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,a),ownerState:r,ref:t,variant:"h6",id:s??m,...f})})},36831(e,t,r){"use strict";r.d(t,{A:()=>a,t:()=>o});var n=r(29009),i=r(46733);function o(e){return(0,i.Ay)("MuiDialogTitle",e)}let a=(0,n.A)("MuiDialogTitle",["root"])},6227(e,t,r){"use strict";r.d(t,{A:()=>m});var n=r(70451),i=r(11750),o=r(81023),a=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,a.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:a,className:s,orientation:l="horizontal",component:h=a||"vertical"===l?"div":"hr",flexItem:m=!1,light:g=!1,role:v="hr"!==h?"separator":void 0,textAlign:y="center",variant:b="fullWidth",...x}=r,w={...r,absolute:n,component:h,flexItem:m,light:g,orientation:l,role:v,textAlign:y,variant:b},A=(e=>{let{absolute:t,children:r,classes:n,flexItem:i,light:a,orientation:s,textAlign:l,variant:u}=e;return(0,o.A)({root:["root",t&&"absolute",u,a&&"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)})(w);return(0,p.jsx)(d,{as:h,className:(0,i.A)(A.root,s),role:v,ref:t,ownerState:w,"aria-orientation":"separator"===v&&("hr"!==h||"vertical"===l)?l:void 0,...x,children:a?(0,p.jsx)(f,{className:A.wrapper,ownerState:w,children:a}):null})});h&&(h.muiSkipListHighlight=!0);let m=h},30119(e,t,r){"use strict";r.d(t,{A:()=>a,K:()=>o});var n=r(29009),i=r(46733);function o(e){return(0,i.Ay)("MuiDivider",e)}let a=(0,n.A)("MuiDivider",["root","absolute","fullWidth","inset","middle","flexItem","light","vertical","withChildren","withChildrenVertical","textAlignRight","textAlignLeft","wrapper","wrapperVertical"])},10740(e,t,r){"use strict";r.d(t,{A:()=>w});var n=r(70451),i=r(11750),o=r(81023),a=r(42872),s=r(77308),l=r(23434),u=r(72052),c=r(88091),p=r(24726),d=r(29009),f=r(46733);function h(e){return(0,f.Ay)("MuiFormControlLabel",e)}let m=(0,d.A)("MuiFormControlLabel",["root","labelPlacementStart","labelPlacementTop","labelPlacementBottom","disabled","label","error","required","asterisk"]);var g=r(87842),v=r(73397),y=r(62540);let b=(0,s.A)("label",{name:"MuiFormControlLabel",slot:"Root",overridesResolver:(e,t)=>{let{ownerState:r}=e;return[{[`& .${m.label}`]:t.label},t.root,t[`labelPlacement${(0,p.A)(r.labelPlacement)}`]]}})((0,l.A)(({theme:e})=>({display:"inline-flex",alignItems:"center",cursor:"pointer",verticalAlign:"middle",WebkitTapHighlightColor:"transparent",marginLeft:-11,marginRight:16,[`&.${m.disabled}`]:{cursor:"default"},[`& .${m.label}`]:{[`&.${m.disabled}`]:{color:(e.vars||e).palette.text.disabled}},variants:[{props:{labelPlacement:"start"},style:{flexDirection:"row-reverse",marginRight:-11}},{props:{labelPlacement:"top"},style:{flexDirection:"column-reverse"}},{props:{labelPlacement:"bottom"},style:{flexDirection:"column"}},{props:({labelPlacement:e})=>"start"===e||"top"===e||"bottom"===e,style:{marginLeft:16}}]}))),x=(0,s.A)("span",{name:"MuiFormControlLabel",slot:"Asterisk",overridesResolver:(e,t)=>t.asterisk})((0,l.A)(({theme:e})=>({[`&.${m.error}`]:{color:(e.vars||e).palette.error.main}}))),w=n.forwardRef(function(e,t){let r=(0,u.b)({props:e,name:"MuiFormControlLabel"}),{checked:s,className:l,componentsProps:d={},control:f,disabled:m,disableTypography:w,inputRef:A,label:_,labelPlacement:S="end",name:M,onChange:k,required:N,slots:O={},slotProps:C={},value:$,...E}=r,T=(0,a.A)(),R=m??f.props.disabled??T?.disabled,I=N??f.props.required,P={disabled:R,required:I};["checked","name","onChange","value","inputRef"].forEach(e=>{void 0===f.props[e]&&void 0!==r[e]&&(P[e]=r[e])});let j=(0,g.A)({props:r,muiFormControl:T,states:["error"]}),z={...r,disabled:R,labelPlacement:S,required:I,error:j.error},B=(e=>{let{classes:t,disabled:r,labelPlacement:n,error:i,required:a}=e,s={root:["root",r&&"disabled",`labelPlacement${(0,p.A)(n)}`,i&&"error",a&&"required"],label:["label",r&&"disabled"],asterisk:["asterisk",i&&"error"]};return(0,o.A)(s,h,t)})(z),L={slots:O,slotProps:{...d,...C}},[D,F]=(0,v.A)("typography",{elementType:c.A,externalForwardedProps:L,ownerState:z}),Z=_;return null==Z||Z.type===c.A||w||(Z=(0,y.jsx)(D,{component:"span",...F,className:(0,i.A)(B.label,F?.className),children:Z})),(0,y.jsxs)(b,{className:(0,i.A)(B.root,l),ownerState:z,ref:t,...E,children:[n.cloneElement(f,P),I?(0,y.jsxs)("div",{children:[Z,(0,y.jsxs)(x,{ownerState:z,"aria-hidden":!0,className:B.asterisk,children:[" ","*"]})]}):Z]})})},66395(e,t,r){"use strict";r.d(t,{Ay:()=>x});var n=r(70451),i=r(11750),o=r(85351),a=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:o,spacing:a,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}(a,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,o&&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,o.kW)({values:t.direction,breakpoints:e.breakpoints.values});return(0,o.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,o.kW)({values:n,breakpoints:e.breakpoints.values});"object"==typeof r&&(t=y({breakpoints:e.breakpoints.values,values:r})),i=(0,o.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,o.kW)({values:n,breakpoints:e.breakpoints.values});"object"==typeof r&&(t=y({breakpoints:e.breakpoints.values,values:r})),i=(0,o.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 a={};if(t[i]&&(r=t[i]),!r)return n;if(!0===r)a={flexBasis:0,flexGrow:1,maxWidth:"100%"};else if("auto"===r)a={flexBasis:"auto",flexGrow:0,flexShrink:0,maxWidth:"none",width:"auto"};else{let s=(0,o.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}}}a={flexBasis:u,flexGrow:0,maxWidth:u,...c}}return 0===e.breakpoints.values[i]?Object.assign(n,a):n[e.breakpoints.up(i)]=a,n},{})}),x=n.forwardRef(function(e,t){let r=(0,u.b)({props:e,name:"MuiGrid"}),{breakpoints:o}=(0,c.A)(),l=(0,a.A)(r),{className:d,columns:f,columnSpacing:m,component:g="div",container:y=!1,direction:x="row",item:w=!1,rowSpacing:A,spacing:_=0,wrap:S="wrap",zeroMinWidth:M=!1,...k}=l,N=n.useContext(p),O=y?f||12:N,C={},$={...k};o.keys.forEach(e=>{null!=k[e]&&(C[e]=k[e],delete $[e])});let E={...l,columns:O,container:y,direction:x,item:w,rowSpacing:A||_,columnSpacing:m||_,wrap:S,zeroMinWidth:M,spacing:_,...C,breakpoints:o.keys},T=(e=>{let{classes:t,container:r,direction:n,item:i,spacing:o,wrap:a,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}(o,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"!==a&&`wrap-xs-${String(a)}`,...p]};return(0,s.A)(d,h,t)})(E);return(0,v.jsx)(p.Provider,{value:O,children:(0,v.jsx)(b,{ownerState:E,className:(0,i.A)(T.root,d),as:g,ref:t,...$})})})},47095(e,t,r){"use strict";r.d(t,{A:()=>A});var n=r(70451),i=r(11750),o=r(81023),a=r(63392),s=r(59238),l=r(77308),u=r(23434),c=r(26952),p=r(72052),d=r(1337),f=r(25742),h=r(24726),m=r(29009),g=r(46733);function v(e){return(0,g.Ay)("MuiIconButton",e)}let y=(0,m.A)("MuiIconButton",["root","disabled","colorInherit","colorPrimary","colorSecondary","colorError","colorInfo","colorSuccess","colorWarning","edgeStart","edgeEnd","sizeSmall","sizeMedium","sizeLarge","loading","loadingIndicator","loadingWrapper"]);var b=r(62540);let x=(0,l.A)(d.A,{name:"MuiIconButton",slot:"Root",overridesResolver:(e,t)=>{let{ownerState:r}=e;return[t.root,r.loading&&t.loading,"default"!==r.color&&t[`color${(0,h.A)(r.color)}`],r.edge&&t[`edge${(0,h.A)(r.edge)}`],t[`size${(0,h.A)(r.size)}`]]}})((0,u.A)(({theme:e})=>({textAlign:"center",flex:"0 0 auto",fontSize:e.typography.pxToRem(24),padding:8,borderRadius:"50%",color:(e.vars||e).palette.action.active,transition:e.transitions.create("background-color",{duration:e.transitions.duration.shortest}),variants:[{props:e=>!e.disableRipple,style:{"--IconButton-hoverBg":e.vars?`rgba(${e.vars.palette.action.activeChannel} / ${e.vars.palette.action.hoverOpacity})`:(0,s.X4)(e.palette.action.active,e.palette.action.hoverOpacity),"&:hover":{backgroundColor:"var(--IconButton-hoverBg)","@media (hover: none)":{backgroundColor:"transparent"}}}},{props:{edge:"start"},style:{marginLeft:-12}},{props:{edge:"start",size:"small"},style:{marginLeft:-3}},{props:{edge:"end"},style:{marginRight:-12}},{props:{edge:"end",size:"small"},style:{marginRight:-3}}]})),(0,u.A)(({theme:e})=>({variants:[{props:{color:"inherit"},style:{color:"inherit"}},...Object.entries(e.palette).filter((0,c.A)()).map(([t])=>({props:{color:t},style:{color:(e.vars||e).palette[t].main}})),...Object.entries(e.palette).filter((0,c.A)()).map(([t])=>({props:{color:t},style:{"--IconButton-hoverBg":e.vars?`rgba(${(e.vars||e).palette[t].mainChannel} / ${e.vars.palette.action.hoverOpacity})`:(0,s.X4)((e.vars||e).palette[t].main,e.palette.action.hoverOpacity)}})),{props:{size:"small"},style:{padding:5,fontSize:e.typography.pxToRem(18)}},{props:{size:"large"},style:{padding:12,fontSize:e.typography.pxToRem(28)}}],[`&.${y.disabled}`]:{backgroundColor:"transparent",color:(e.vars||e).palette.action.disabled},[`&.${y.loading}`]:{color:"transparent"}}))),w=(0,l.A)("span",{name:"MuiIconButton",slot:"LoadingIndicator",overridesResolver:(e,t)=>t.loadingIndicator})(({theme:e})=>({display:"none",position:"absolute",visibility:"visible",top:"50%",left:"50%",transform:"translate(-50%, -50%)",color:(e.vars||e).palette.action.disabled,variants:[{props:{loading:!0},style:{display:"flex"}}]})),A=n.forwardRef(function(e,t){let r=(0,p.b)({props:e,name:"MuiIconButton"}),{edge:n=!1,children:s,className:l,color:u="default",disabled:c=!1,disableFocusRipple:d=!1,size:m="medium",id:g,loading:y=null,loadingIndicator:A,..._}=r,S=(0,a.A)(g),M=A??(0,b.jsx)(f.A,{"aria-labelledby":S,color:"inherit",size:16}),k={...r,edge:n,color:u,disabled:c,disableFocusRipple:d,loading:y,loadingIndicator:M,size:m},N=(e=>{let{classes:t,disabled:r,color:n,edge:i,size:a,loading:s}=e,l={root:["root",s&&"loading",r&&"disabled","default"!==n&&`color${(0,h.A)(n)}`,i&&`edge${(0,h.A)(i)}`,`size${(0,h.A)(a)}`],loadingIndicator:["loadingIndicator"],loadingWrapper:["loadingWrapper"]};return(0,o.A)(l,v,t)})(k);return(0,b.jsxs)(x,{id:y?S:g,className:(0,i.A)(N.root,l),centerRipple:!0,focusRipple:!d,disabled:c||y,ref:t,..._,ownerState:k,children:["boolean"==typeof y&&(0,b.jsx)("span",{className:N.loadingWrapper,style:{display:"contents"},children:(0,b.jsx)(w,{className:N.loadingIndicator,ownerState:k,children:y&&M})}),s]})})},57438(e,t,r){"use strict";r.d(t,{A:()=>x});var n=r(70451),i=r(11750),o=r(59238),a=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,o.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,o.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,o.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"}}}]}))),x=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:x,onFocus:w,TypographyClasses:A,underline:_="always",variant:S="inherit",sx:M,...k}=r,[N,O]=n.useState(!1),C={...r,color:d,component:h,focusVisible:N,underline:_,variant:S},$=(e=>{let{classes:t,component:r,focusVisible:n,underline:i}=e,o={root:["root",`underline${(0,l.A)(i)}`,"button"===r&&"button",n&&"focusVisible"]};return(0,a.A)(o,m.t,t)})(C);return(0,v.jsx)(b,{color:d,className:(0,i.A)($.root,p),classes:A,component:h,onBlur:e=>{(0,s.A)(e.target)||O(!1),x&&x(e)},onFocus:e=>{(0,s.A)(e.target)&&O(!0),w&&w(e)},ref:t,ownerState:C,variant:S,...k,sx:[...void 0===y[d]?[{color:d}]:[],...Array.isArray(M)?M:[M]],style:{...k.style,..."always"===_&&"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,o.X4)(n,.4)})({theme:u,ownerState:C})}}})})},82561(e,t,r){"use strict";r.d(t,{A:()=>a,t:()=>o});var n=r(29009),i=r(46733);function o(e){return(0,i.Ay)("MuiLink",e)}let a=(0,n.A)("MuiLink",["root","underlineNone","underlineHover","underlineAlways","button","focusVisible"])},14045(e,t,r){"use strict";r.d(t,{A:()=>m});var n=r(70451),i=r(11750),o=r(81023),a=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,[`.${a.A.root}:where(& .${p.A.primary})`]:{display:"block"},[`.${a.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:a,className:u,disableTypography:m=!1,inset:g=!1,primary:v,primaryTypographyProps:y,secondary:b,secondaryTypographyProps:x,slots:w={},slotProps:A={},..._}=r,{dense:S}=n.useContext(l.A),M=null!=v?v:a,k=b,N={...r,disableTypography:m,inset:g,primary:!!M,secondary:!!k,dense:S},O=(e=>{let{classes:t,inset:r,primary:n,secondary:i,dense:a}=e;return(0,o.A)({root:["root",r&&"inset",a&&"dense",n&&i&&"multiline"],primary:["primary"],secondary:["secondary"]},p.b,t)})(N),C={slots:w,slotProps:{primary:y,secondary:x,...A}},[$,E]=(0,d.A)("root",{className:(0,i.A)(O.root,u),elementType:h,externalForwardedProps:{...C,..._},ownerState:N,ref:t}),[T,R]=(0,d.A)("primary",{className:O.primary,elementType:s.A,externalForwardedProps:C,ownerState:N}),[I,P]=(0,d.A)("secondary",{className:O.secondary,elementType:s.A,externalForwardedProps:C,ownerState:N});return null==M||M.type===s.A||m||(M=(0,f.jsx)(T,{variant:S?"body2":"body1",component:R?.variant?void 0:"span",...R,children:M})),null==k||k.type===s.A||m||(k=(0,f.jsx)(I,{variant:"body2",color:"textSecondary",...P,children:k})),(0,f.jsxs)($,{...E,children:[M,k]})})},85397(e,t,r){"use strict";r.d(t,{A:()=>a,b:()=>o});var n=r(29009),i=r(46733);function o(e){return(0,i.Ay)("MuiListItemText",e)}let a=(0,n.A)("MuiListItemText",["root","multiline","dense","inset","primary","secondary"])},97653(e,t,r){"use strict";r.d(t,{A:()=>S});var n=r(70451),i=r(11750),o=r(81023),a=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 x(e){return(0,b.Ay)("MuiMenuItem",e)}let w=(0,g.A)("MuiMenuItem",["root","focusVisible","dense","disabled","divider","gutters","selected"]);var A=r(62540);let _=(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"}},[`&.${w.selected}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:(0,a.X4)(e.palette.primary.main,e.palette.action.selectedOpacity),[`&.${w.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.focusOpacity}))`:(0,a.X4)(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.focusOpacity)}},[`&.${w.selected}:hover`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.hoverOpacity}))`:(0,a.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,a.X4)(e.palette.primary.main,e.palette.action.selectedOpacity)}},[`&.${w.focusVisible}`]:{backgroundColor:(e.vars||e).palette.action.focus},[`&.${w.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"}}}]}))),S=n.forwardRef(function(e,t){let r,a=(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,...w}=a,S=n.useContext(p.A),M=n.useMemo(()=>({dense:u||S.dense||!1,disableGutters:m}),[S.dense,u,m]),k=n.useRef(null);(0,f.A)(()=>{s&&k.current&&k.current.focus()},[s]);let N={...a,dense:M.dense,divider:d,disableGutters:m},O=(e=>{let{disabled:t,dense:r,divider:n,disableGutters:i,selected:a,classes:s}=e,l=(0,o.A)({root:["root",r&&"dense",t&&"disabled",!i&&"gutters",n&&"divider",a&&"selected"]},x,s);return{...s,...l}})(a),C=(0,h.A)(k,t);return a.disabled||(r=void 0!==y?y:-1),(0,A.jsx)(p.A.Provider,{value:M,children:(0,A.jsx)(_,{ref:C,role:v,tabIndex:r,component:l,focusVisibleClassName:(0,i.A)(O.focusVisible,g),className:(0,i.A)(O.root,b),...w,ownerState:N,classes:O})})})},48865(e,t,r){"use strict";r.d(t,{A:()=>eC});var n,i,o,a,s,l=r(35216),u=r(70451),c=r(95591),p=r(31789),d=r(10713);function f(e){if(null==e)return window;if("[object Window]"!==e.toString()){var t=e.ownerDocument;return t&&t.defaultView||window}return e}function h(e){var t=f(e).Element;return e instanceof t||e instanceof Element}function m(e){var t=f(e).HTMLElement;return e instanceof t||e instanceof HTMLElement}function g(e){if("u"<typeof ShadowRoot)return!1;var t=f(e).ShadowRoot;return e instanceof t||e instanceof ShadowRoot}var v=Math.max,y=Math.min,b=Math.round;function x(){var e=navigator.userAgentData;return null!=e&&e.brands&&Array.isArray(e.brands)?e.brands.map(function(e){return e.brand+"/"+e.version}).join(" "):navigator.userAgent}function w(){return!/^((?!chrome|android).)*safari/i.test(x())}function A(e,t,r){void 0===t&&(t=!1),void 0===r&&(r=!1);var n=e.getBoundingClientRect(),i=1,o=1;t&&m(e)&&(i=e.offsetWidth>0&&b(n.width)/e.offsetWidth||1,o=e.offsetHeight>0&&b(n.height)/e.offsetHeight||1);var a=(h(e)?f(e):window).visualViewport,s=!w()&&r,l=(n.left+(s&&a?a.offsetLeft:0))/i,u=(n.top+(s&&a?a.offsetTop:0))/o,c=n.width/i,p=n.height/o;return{width:c,height:p,top:u,right:l+c,bottom:u+p,left:l,x:l,y:u}}function _(e){var t=f(e);return{scrollLeft:t.pageXOffset,scrollTop:t.pageYOffset}}function S(e){return e?(e.nodeName||"").toLowerCase():null}function M(e){return((h(e)?e.ownerDocument:e.document)||window.document).documentElement}function k(e){return A(M(e)).left+_(e).scrollLeft}function N(e){return f(e).getComputedStyle(e)}function O(e){var t=N(e),r=t.overflow,n=t.overflowX,i=t.overflowY;return/auto|scroll|overlay|hidden/.test(r+i+n)}function C(e){var t=A(e),r=e.offsetWidth,n=e.offsetHeight;return 1>=Math.abs(t.width-r)&&(r=t.width),1>=Math.abs(t.height-n)&&(n=t.height),{x:e.offsetLeft,y:e.offsetTop,width:r,height:n}}function $(e){return"html"===S(e)?e:e.assignedSlot||e.parentNode||(g(e)?e.host:null)||M(e)}function E(e,t){void 0===t&&(t=[]);var r,n=function e(t){return["html","body","#document"].indexOf(S(t))>=0?t.ownerDocument.body:m(t)&&O(t)?t:e($(t))}(e),i=n===(null==(r=e.ownerDocument)?void 0:r.body),o=f(n),a=i?[o].concat(o.visualViewport||[],O(n)?n:[]):n,s=t.concat(a);return i?s:s.concat(E($(a)))}function T(e){return m(e)&&"fixed"!==N(e).position?e.offsetParent:null}function R(e){for(var t=f(e),r=T(e);r&&["table","td","th"].indexOf(S(r))>=0&&"static"===N(r).position;)r=T(r);return r&&("html"===S(r)||"body"===S(r)&&"static"===N(r).position)?t:r||function(e){var t=/firefox/i.test(x());if(/Trident/i.test(x())&&m(e)&&"fixed"===N(e).position)return null;var r=$(e);for(g(r)&&(r=r.host);m(r)&&0>["html","body"].indexOf(S(r));){var n=N(r);if("none"!==n.transform||"none"!==n.perspective||"paint"===n.contain||-1!==["transform","perspective"].indexOf(n.willChange)||t&&"filter"===n.willChange||t&&n.filter&&"none"!==n.filter)return r;r=r.parentNode}return null}(e)||t}var I="bottom",P="right",j="left",z="auto",B=["top",I,P,j],L="start",D="viewport",F="popper",Z=B.reduce(function(e,t){return e.concat([t+"-"+L,t+"-end"])},[]),W=[].concat(B,[z]).reduce(function(e,t){return e.concat([t,t+"-"+L,t+"-end"])},[]),q=["beforeRead","read","afterRead","beforeMain","main","afterMain","beforeWrite","write","afterWrite"],V={placement:"bottom",modifiers:[],strategy:"absolute"};function H(){for(var e=arguments.length,t=Array(e),r=0;r<e;r++)t[r]=arguments[r];return!t.some(function(e){return!(e&&"function"==typeof e.getBoundingClientRect)})}var U={passive:!0};function G(e){return e.split("-")[0]}function X(e){return e.split("-")[1]}function Y(e){return["top","bottom"].indexOf(e)>=0?"x":"y"}function K(e){var t,r=e.reference,n=e.element,i=e.placement,o=i?G(i):null,a=i?X(i):null,s=r.x+r.width/2-n.width/2,l=r.y+r.height/2-n.height/2;switch(o){case"top":t={x:s,y:r.y-n.height};break;case I:t={x:s,y:r.y+r.height};break;case P:t={x:r.x+r.width,y:l};break;case j:t={x:r.x-n.width,y:l};break;default:t={x:r.x,y:r.y}}var u=o?Y(o):null;if(null!=u){var c="y"===u?"height":"width";switch(a){case L:t[u]=t[u]-(r[c]/2-n[c]/2);break;case"end":t[u]=t[u]+(r[c]/2-n[c]/2)}}return t}var J={top:"auto",right:"auto",bottom:"auto",left:"auto"};function Q(e){var t,r,n,i,o,a,s,l=e.popper,u=e.popperRect,c=e.placement,p=e.variation,d=e.offsets,h=e.position,m=e.gpuAcceleration,g=e.adaptive,v=e.roundOffsets,y=e.isFixed,x=d.x,w=void 0===x?0:x,A=d.y,_=void 0===A?0:A,S="function"==typeof v?v({x:w,y:_}):{x:w,y:_};w=S.x,_=S.y;var k=d.hasOwnProperty("x"),O=d.hasOwnProperty("y"),C=j,$="top",E=window;if(g){var T=R(l),z="clientHeight",B="clientWidth";T===f(l)&&"static"!==N(T=M(l)).position&&"absolute"===h&&(z="scrollHeight",B="scrollWidth"),("top"===c||(c===j||c===P)&&"end"===p)&&($=I,_-=(y&&T===E&&E.visualViewport?E.visualViewport.height:T[z])-u.height,_*=m?1:-1),(c===j||("top"===c||c===I)&&"end"===p)&&(C=P,w-=(y&&T===E&&E.visualViewport?E.visualViewport.width:T[B])-u.width,w*=m?1:-1)}var L=Object.assign({position:h},g&&J),D=!0===v?(t={x:w,y:_},r=f(l),n=t.x,i=t.y,{x:b(n*(o=r.devicePixelRatio||1))/o||0,y:b(i*o)/o||0}):{x:w,y:_};return(w=D.x,_=D.y,m)?Object.assign({},L,((s={})[$]=O?"0":"",s[C]=k?"0":"",s.transform=1>=(E.devicePixelRatio||1)?"translate("+w+"px, "+_+"px)":"translate3d("+w+"px, "+_+"px, 0)",s)):Object.assign({},L,((a={})[$]=O?_+"px":"",a[C]=k?w+"px":"",a.transform="",a))}var ee={left:"right",right:"left",bottom:"top",top:"bottom"};function et(e){return e.replace(/left|right|bottom|top/g,function(e){return ee[e]})}var er={start:"end",end:"start"};function en(e){return e.replace(/start|end/g,function(e){return er[e]})}function ei(e,t){var r=t.getRootNode&&t.getRootNode();if(e.contains(t))return!0;if(r&&g(r)){var n=t;do{if(n&&e.isSameNode(n))return!0;n=n.parentNode||n.host}while(n)}return!1}function eo(e){return Object.assign({},e,{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}function ea(e,t,r){var n,i,o,a,s,l,u,c,p,d;return t===D?eo(function(e,t){var r=f(e),n=M(e),i=r.visualViewport,o=n.clientWidth,a=n.clientHeight,s=0,l=0;if(i){o=i.width,a=i.height;var u=w();(u||!u&&"fixed"===t)&&(s=i.offsetLeft,l=i.offsetTop)}return{width:o,height:a,x:s+k(e),y:l}}(e,r)):h(t)?((n=A(t,!1,"fixed"===r)).top=n.top+t.clientTop,n.left=n.left+t.clientLeft,n.bottom=n.top+t.clientHeight,n.right=n.left+t.clientWidth,n.width=t.clientWidth,n.height=t.clientHeight,n.x=n.left,n.y=n.top,n):eo((i=M(e),a=M(i),s=_(i),l=null==(o=i.ownerDocument)?void 0:o.body,u=v(a.scrollWidth,a.clientWidth,l?l.scrollWidth:0,l?l.clientWidth:0),c=v(a.scrollHeight,a.clientHeight,l?l.scrollHeight:0,l?l.clientHeight:0),p=-s.scrollLeft+k(i),d=-s.scrollTop,"rtl"===N(l||a).direction&&(p+=v(a.clientWidth,l?l.clientWidth:0)-u),{width:u,height:c,x:p,y:d}))}function es(){return{top:0,right:0,bottom:0,left:0}}function el(e){return Object.assign({},es(),e)}function eu(e,t){return t.reduce(function(t,r){return t[r]=e,t},{})}function ec(e,t){void 0===t&&(t={});var r,n,i,o,a,s,l,u,c=t,p=c.placement,d=void 0===p?e.placement:p,f=c.strategy,g=void 0===f?e.strategy:f,b=c.boundary,x=c.rootBoundary,w=c.elementContext,_=void 0===w?F:w,k=c.altBoundary,O=c.padding,C=void 0===O?0:O,T=el("number"!=typeof C?C:eu(C,B)),j=e.rects.popper,z=e.elements[void 0!==k&&k?_===F?"reference":F:_],L=(r=h(z)?z:z.contextElement||M(e.elements.popper),n=void 0===b?"clippingParents":b,i=void 0===x?D:x,l=(s=[].concat("clippingParents"===n?(o=E($(r)),!h(a=["absolute","fixed"].indexOf(N(r).position)>=0&&m(r)?R(r):r)?[]:o.filter(function(e){return h(e)&&ei(e,a)&&"body"!==S(e)})):[].concat(n),[i]))[0],(u=s.reduce(function(e,t){var n=ea(r,t,g);return e.top=v(n.top,e.top),e.right=y(n.right,e.right),e.bottom=y(n.bottom,e.bottom),e.left=v(n.left,e.left),e},ea(r,l,g))).width=u.right-u.left,u.height=u.bottom-u.top,u.x=u.left,u.y=u.top,u),Z=A(e.elements.reference),W=K({reference:Z,element:j,strategy:"absolute",placement:d}),q=eo(Object.assign({},j,W)),V=_===F?q:Z,H={top:L.top-V.top+T.top,bottom:V.bottom-L.bottom+T.bottom,left:L.left-V.left+T.left,right:V.right-L.right+T.right},U=e.modifiersData.offset;if(_===F&&U){var G=U[d];Object.keys(H).forEach(function(e){var t=[P,I].indexOf(e)>=0?1:-1,r=["top",I].indexOf(e)>=0?"y":"x";H[e]+=G[r]*t})}return H}function ep(e,t,r){return v(e,y(t,r))}function ed(e,t,r){return void 0===r&&(r={x:0,y:0}),{top:e.top-t.height-r.y,right:e.right-t.width+r.x,bottom:e.bottom-t.height+r.y,left:e.left-t.width-r.x}}function ef(e){return["top",P,I,j].some(function(t){return e[t]>=0})}var eh=(o=void 0===(i=(n={defaultModifiers:[{name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:function(e){var t=e.state,r=e.instance,n=e.options,i=n.scroll,o=void 0===i||i,a=n.resize,s=void 0===a||a,l=f(t.elements.popper),u=[].concat(t.scrollParents.reference,t.scrollParents.popper);return o&&u.forEach(function(e){e.addEventListener("scroll",r.update,U)}),s&&l.addEventListener("resize",r.update,U),function(){o&&u.forEach(function(e){e.removeEventListener("scroll",r.update,U)}),s&&l.removeEventListener("resize",r.update,U)}},data:{}},{name:"popperOffsets",enabled:!0,phase:"read",fn:function(e){var t=e.state,r=e.name;t.modifiersData[r]=K({reference:t.rects.reference,element:t.rects.popper,strategy:"absolute",placement:t.placement})},data:{}},{name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:function(e){var t=e.state,r=e.options,n=r.gpuAcceleration,i=r.adaptive,o=r.roundOffsets,a=void 0===o||o,s={placement:G(t.placement),variation:X(t.placement),popper:t.elements.popper,popperRect:t.rects.popper,gpuAcceleration:void 0===n||n,isFixed:"fixed"===t.options.strategy};null!=t.modifiersData.popperOffsets&&(t.styles.popper=Object.assign({},t.styles.popper,Q(Object.assign({},s,{offsets:t.modifiersData.popperOffsets,position:t.options.strategy,adaptive:void 0===i||i,roundOffsets:a})))),null!=t.modifiersData.arrow&&(t.styles.arrow=Object.assign({},t.styles.arrow,Q(Object.assign({},s,{offsets:t.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:a})))),t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-placement":t.placement})},data:{}},{name:"applyStyles",enabled:!0,phase:"write",fn:function(e){var t=e.state;Object.keys(t.elements).forEach(function(e){var r=t.styles[e]||{},n=t.attributes[e]||{},i=t.elements[e];m(i)&&S(i)&&(Object.assign(i.style,r),Object.keys(n).forEach(function(e){var t=n[e];!1===t?i.removeAttribute(e):i.setAttribute(e,!0===t?"":t)}))})},effect:function(e){var t=e.state,r={popper:{position:t.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(t.elements.popper.style,r.popper),t.styles=r,t.elements.arrow&&Object.assign(t.elements.arrow.style,r.arrow),function(){Object.keys(t.elements).forEach(function(e){var n=t.elements[e],i=t.attributes[e]||{},o=Object.keys(t.styles.hasOwnProperty(e)?t.styles[e]:r[e]).reduce(function(e,t){return e[t]="",e},{});m(n)&&S(n)&&(Object.assign(n.style,o),Object.keys(i).forEach(function(e){n.removeAttribute(e)}))})}},requires:["computeStyles"]},{name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:function(e){var t=e.state,r=e.options,n=e.name,i=r.offset,o=void 0===i?[0,0]:i,a=W.reduce(function(e,r){var n,i,a,s,l,u;return e[r]=(n=t.rects,a=[j,"top"].indexOf(i=G(r))>=0?-1:1,l=(s="function"==typeof o?o(Object.assign({},n,{placement:r})):o)[0],u=s[1],l=l||0,u=(u||0)*a,[j,P].indexOf(i)>=0?{x:u,y:l}:{x:l,y:u}),e},{}),s=a[t.placement],l=s.x,u=s.y;null!=t.modifiersData.popperOffsets&&(t.modifiersData.popperOffsets.x+=l,t.modifiersData.popperOffsets.y+=u),t.modifiersData[n]=a}},{name:"flip",enabled:!0,phase:"main",fn:function(e){var t=e.state,r=e.options,n=e.name;if(!t.modifiersData[n]._skip){for(var i=r.mainAxis,o=void 0===i||i,a=r.altAxis,s=void 0===a||a,l=r.fallbackPlacements,u=r.padding,c=r.boundary,p=r.rootBoundary,d=r.altBoundary,f=r.flipVariations,h=void 0===f||f,m=r.allowedAutoPlacements,g=t.options.placement,v=G(g)===g,y=l||(v||!h?[et(g)]:function(e){if(G(e)===z)return[];var t=et(e);return[en(e),t,en(t)]}(g)),b=[g].concat(y).reduce(function(e,r){var n,i,o,a,s,l,d,f,g,v,y,b;return e.concat(G(r)===z?(i=(n={placement:r,boundary:c,rootBoundary:p,padding:u,flipVariations:h,allowedAutoPlacements:m}).placement,o=n.boundary,a=n.rootBoundary,s=n.padding,l=n.flipVariations,f=void 0===(d=n.allowedAutoPlacements)?W:d,0===(y=(v=(g=X(i))?l?Z:Z.filter(function(e){return X(e)===g}):B).filter(function(e){return f.indexOf(e)>=0})).length&&(y=v),Object.keys(b=y.reduce(function(e,r){return e[r]=ec(t,{placement:r,boundary:o,rootBoundary:a,padding:s})[G(r)],e},{})).sort(function(e,t){return b[e]-b[t]})):r)},[]),x=t.rects.reference,w=t.rects.popper,A=new Map,_=!0,S=b[0],M=0;M<b.length;M++){var k=b[M],N=G(k),O=X(k)===L,C=["top",I].indexOf(N)>=0,$=C?"width":"height",E=ec(t,{placement:k,boundary:c,rootBoundary:p,altBoundary:d,padding:u}),T=C?O?P:j:O?I:"top";x[$]>w[$]&&(T=et(T));var R=et(T),D=[];if(o&&D.push(E[N]<=0),s&&D.push(E[T]<=0,E[R]<=0),D.every(function(e){return e})){S=k,_=!1;break}A.set(k,D)}if(_)for(var F=h?3:1,q=function(e){var t=b.find(function(t){var r=A.get(t);if(r)return r.slice(0,e).every(function(e){return e})});if(t)return S=t,"break"},V=F;V>0&&"break"!==q(V);V--);t.placement!==S&&(t.modifiersData[n]._skip=!0,t.placement=S,t.reset=!0)}},requiresIfExists:["offset"],data:{_skip:!1}},{name:"preventOverflow",enabled:!0,phase:"main",fn:function(e){var t=e.state,r=e.options,n=e.name,i=r.mainAxis,o=r.altAxis,a=r.boundary,s=r.rootBoundary,l=r.altBoundary,u=r.padding,c=r.tether,p=void 0===c||c,d=r.tetherOffset,f=void 0===d?0:d,h=ec(t,{boundary:a,rootBoundary:s,padding:u,altBoundary:l}),m=G(t.placement),g=X(t.placement),b=!g,x=Y(m),w="x"===x?"y":"x",A=t.modifiersData.popperOffsets,_=t.rects.reference,S=t.rects.popper,M="function"==typeof f?f(Object.assign({},t.rects,{placement:t.placement})):f,k="number"==typeof M?{mainAxis:M,altAxis:M}:Object.assign({mainAxis:0,altAxis:0},M),N=t.modifiersData.offset?t.modifiersData.offset[t.placement]:null,O={x:0,y:0};if(A){if(void 0===i||i){var $,E="y"===x?"top":j,T="y"===x?I:P,z="y"===x?"height":"width",B=A[x],D=B+h[E],F=B-h[T],Z=p?-S[z]/2:0,W=g===L?_[z]:S[z],q=g===L?-S[z]:-_[z],V=t.elements.arrow,H=p&&V?C(V):{width:0,height:0},U=t.modifiersData["arrow#persistent"]?t.modifiersData["arrow#persistent"].padding:es(),K=U[E],J=U[T],Q=ep(0,_[z],H[z]),ee=b?_[z]/2-Z-Q-K-k.mainAxis:W-Q-K-k.mainAxis,et=b?-_[z]/2+Z+Q+J+k.mainAxis:q+Q+J+k.mainAxis,er=t.elements.arrow&&R(t.elements.arrow),en=er?"y"===x?er.clientTop||0:er.clientLeft||0:0,ei=null!=($=null==N?void 0:N[x])?$:0,eo=ep(p?y(D,B+ee-ei-en):D,B,p?v(F,B+et-ei):F);A[x]=eo,O[x]=eo-B}if(void 0!==o&&o){var ea,el,eu="x"===x?"top":j,ed="x"===x?I:P,ef=A[w],eh="y"===w?"height":"width",em=ef+h[eu],eg=ef-h[ed],ev=-1!==["top",j].indexOf(m),ey=null!=(el=null==N?void 0:N[w])?el:0,eb=ev?em:ef-_[eh]-S[eh]-ey+k.altAxis,ex=ev?ef+_[eh]+S[eh]-ey-k.altAxis:eg,ew=p&&ev?(ea=ep(eb,ef,ex))>ex?ex:ea:ep(p?eb:em,ef,p?ex:eg);A[w]=ew,O[w]=ew-ef}t.modifiersData[n]=O}},requiresIfExists:["offset"]},{name:"arrow",enabled:!0,phase:"main",fn:function(e){var t,r=e.state,n=e.name,i=e.options,o=r.elements.arrow,a=r.modifiersData.popperOffsets,s=G(r.placement),l=Y(s),u=[j,P].indexOf(s)>=0?"height":"width";if(o&&a){var c,p=(c=i.padding,el("number"!=typeof(c="function"==typeof c?c(Object.assign({},r.rects,{placement:r.placement})):c)?c:eu(c,B))),d=C(o),f="y"===l?"top":j,h="y"===l?I:P,m=r.rects.reference[u]+r.rects.reference[l]-a[l]-r.rects.popper[u],g=a[l]-r.rects.reference[l],v=R(o),y=v?"y"===l?v.clientHeight||0:v.clientWidth||0:0,b=p[f],x=y-d[u]-p[h],w=y/2-d[u]/2+(m/2-g/2),A=ep(b,w,x);r.modifiersData[n]=((t={})[l]=A,t.centerOffset=A-w,t)}},effect:function(e){var t=e.state,r=e.options.element,n=void 0===r?"[data-popper-arrow]":r;null==n||("string"!=typeof n||(n=t.elements.popper.querySelector(n)))&&ei(t.elements.popper,n)&&(t.elements.arrow=n)},requires:["popperOffsets"],requiresIfExists:["preventOverflow"]},{name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:function(e){var t=e.state,r=e.name,n=t.rects.reference,i=t.rects.popper,o=t.modifiersData.preventOverflow,a=ec(t,{elementContext:"reference"}),s=ec(t,{altBoundary:!0}),l=ed(a,n),u=ed(s,i,o),c=ef(l),p=ef(u);t.modifiersData[r]={referenceClippingOffsets:l,popperEscapeOffsets:u,isReferenceHidden:c,hasPopperEscaped:p},t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-reference-hidden":c,"data-popper-escaped":p})}}]}).defaultModifiers)?[]:i,s=void 0===(a=n.defaultOptions)?V:a,function(e,t,r){void 0===r&&(r=s);var n,i,a={placement:"bottom",orderedModifiers:[],options:Object.assign({},V,s),modifiersData:{},elements:{reference:e,popper:t},attributes:{},styles:{}},l=[],u=!1,c={state:a,setOptions:function(r){var n,i,u,d,f,m,g="function"==typeof r?r(a.options):r;p(),a.options=Object.assign({},s,a.options,g),a.scrollParents={reference:h(e)?E(e):e.contextElement?E(e.contextElement):[],popper:E(t)};var v=(i=Object.keys(n=[].concat(o,a.options.modifiers).reduce(function(e,t){var r=e[t.name];return e[t.name]=r?Object.assign({},r,t,{options:Object.assign({},r.options,t.options),data:Object.assign({},r.data,t.data)}):t,e},{})).map(function(e){return n[e]}),u=new Map,d=new Set,f=[],i.forEach(function(e){u.set(e.name,e)}),i.forEach(function(e){d.has(e.name)||function e(t){d.add(t.name),[].concat(t.requires||[],t.requiresIfExists||[]).forEach(function(t){if(!d.has(t)){var r=u.get(t);r&&e(r)}}),f.push(t)}(e)}),m=f,q.reduce(function(e,t){return e.concat(m.filter(function(e){return e.phase===t}))},[]));return a.orderedModifiers=v.filter(function(e){return e.enabled}),a.orderedModifiers.forEach(function(e){var t=e.name,r=e.options,n=e.effect;if("function"==typeof n){var i=n({state:a,name:t,instance:c,options:void 0===r?{}:r});l.push(i||function(){})}}),c.update()},forceUpdate:function(){if(!u){var e=a.elements,t=e.reference,r=e.popper;if(H(t,r)){a.rects={reference:(n=R(r),i="fixed"===a.options.strategy,o=m(n),d=m(n)&&(l=b((s=n.getBoundingClientRect()).width)/n.offsetWidth||1,p=b(s.height)/n.offsetHeight||1,1!==l||1!==p),h=M(n),g=A(t,d,i),v={scrollLeft:0,scrollTop:0},y={x:0,y:0},(o||!o&&!i)&&(("body"!==S(n)||O(h))&&(v=function(e){return e!==f(e)&&m(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:_(e)}(n)),m(n)?(y=A(n,!0),y.x+=n.clientLeft,y.y+=n.clientTop):h&&(y.x=k(h))),{x:g.left+v.scrollLeft-y.x,y:g.top+v.scrollTop-y.y,width:g.width,height:g.height}),popper:C(r)},a.reset=!1,a.placement=a.options.placement,a.orderedModifiers.forEach(function(e){return a.modifiersData[e.name]=Object.assign({},e.data)});for(var n,i,o,s,l,p,d,h,g,v,y,x=0;x<a.orderedModifiers.length;x++){if(!0===a.reset){a.reset=!1,x=-1;continue}var w=a.orderedModifiers[x],N=w.fn,$=w.options,E=void 0===$?{}:$,T=w.name;"function"==typeof N&&(a=N({state:a,options:E,name:T,instance:c})||a)}}}},update:(n=function(){return new Promise(function(e){c.forceUpdate(),e(a)})},function(){return i||(i=new Promise(function(e){Promise.resolve().then(function(){i=void 0,e(n())})})),i}),destroy:function(){p(),u=!0}};if(!H(e,t))return c;function p(){l.forEach(function(e){return e()}),l=[]}return c.setOptions(r).then(function(e){!u&&r.onFirstUpdate&&r.onFirstUpdate(e)}),c}),em=r(81023),eg=r(77893),ev=r(36961),ey=r(29009),eb=r(46733);function ex(e){return(0,eb.Ay)("MuiPopper",e)}(0,ey.A)("MuiPopper",["root"]);var ew=r(62540);function eA(e){return"function"==typeof e?e():e}let e_={},eS=u.forwardRef(function(e,t){let{anchorEl:r,children:n,direction:i,disablePortal:o,modifiers:a,open:s,placement:l,popperOptions:d,popperRef:f,slotProps:h={},slots:m={},TransitionProps:g,ownerState:v,...y}=e,b=u.useRef(null),x=(0,c.A)(b,t),w=u.useRef(null),A=(0,c.A)(w,f),_=u.useRef(A);(0,p.A)(()=>{_.current=A},[A]),u.useImperativeHandle(f,()=>w.current,[]);let S=function(e,t){if("ltr"===t)return e;switch(e){case"bottom-end":return"bottom-start";case"bottom-start":return"bottom-end";case"top-end":return"top-start";case"top-start":return"top-end";default:return e}}(l,i),[M,k]=u.useState(S),[N,O]=u.useState(eA(r));u.useEffect(()=>{w.current&&w.current.forceUpdate()}),u.useEffect(()=>{r&&O(eA(r))},[r]),(0,p.A)(()=>{if(!N||!s)return;let e=[{name:"preventOverflow",options:{altBoundary:o}},{name:"flip",options:{altBoundary:o}},{name:"onUpdate",enabled:!0,phase:"afterWrite",fn:({state:e})=>{k(e.placement)}}];null!=a&&(e=e.concat(a)),d&&null!=d.modifiers&&(e=e.concat(d.modifiers));let t=eh(N,b.current,{placement:S,...d,modifiers:e});return _.current(t),()=>{t.destroy(),_.current(null)}},[N,o,a,s,d,S]);let C={placement:M};null!==g&&(C.TransitionProps=g);let $=(e=>{let{classes:t}=e;return(0,em.A)({root:["root"]},ex,t)})(e),E=m.root??"div",T=(0,eg.A)({elementType:E,externalSlotProps:h.root,externalForwardedProps:y,additionalProps:{role:"tooltip",ref:x},ownerState:e,className:$.root});return(0,ew.jsx)(E,{...T,children:"function"==typeof n?n(C):n})}),eM=u.forwardRef(function(e,t){let r,{anchorEl:n,children:i,container:o,direction:a="ltr",disablePortal:s=!1,keepMounted:l=!1,modifiers:c,open:p,placement:f="bottom",popperOptions:h=e_,popperRef:m,style:g,transition:v=!1,slotProps:y={},slots:b={},...x}=e,[w,A]=u.useState(!0);if(!l&&!p&&(!v||w))return null;if(o)r=o;else if(n){let e=eA(n);r=e&&void 0!==e.nodeType?(0,d.A)(e).body:(0,d.A)(null).body}let _=!p&&l&&(!v||w)?"none":void 0,S=v?{in:p,onEnter:()=>{A(!1)},onExited:()=>{A(!0)}}:void 0;return(0,ew.jsx)(ev.A,{disablePortal:s,container:r,children:(0,ew.jsx)(eS,{anchorEl:n,direction:a,disablePortal:s,modifiers:c,ref:t,open:v?!w:p,placement:f,popperOptions:h,popperRef:m,slotProps:y,slots:b,...x,style:{position:"fixed",top:0,left:0,display:_,...g},TransitionProps:S,children:i})})});var ek=r(77308),eN=r(72052);let eO=(0,ek.A)(eM,{name:"MuiPopper",slot:"Root",overridesResolver:(e,t)=>t.root})({}),eC=u.forwardRef(function(e,t){let r=(0,l.I)(),{anchorEl:n,component:i,components:o,componentsProps:a,container:s,disablePortal:u,keepMounted:c,modifiers:p,open:d,placement:f,popperOptions:h,popperRef:m,transition:g,slots:v,slotProps:y,...b}=(0,eN.b)({props:e,name:"MuiPopper"}),x=v?.root??o?.Root,w={anchorEl:n,container:s,disablePortal:u,keepMounted:c,modifiers:p,open:d,placement:f,popperOptions:h,popperRef:m,transition:g,...b};return(0,ew.jsx)(eO,{as:i,direction:r?"rtl":"ltr",slots:{root:x},slotProps:y??a,...w,ref:t})})},33868(e,t,r){"use strict";r.d(t,{A:()=>v});var n=r(70451),i=r(11750),o=r(81023),a=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)(a.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:a,disabled:l=!1,disableFocusRipple:u=!1,fullWidth:p,icon:d,iconPosition:h="top",indicator:v,label:y,onChange:b,onClick:x,onFocus:w,selected:A,selectionFollowsFocus:_,textColor:S="inherit",value:M,wrapped:k=!1,...N}=r,O={...r,disabled:l,disableFocusRipple:u,selected:A,icon:!!d,iconPosition:h,label:!!y,fullWidth:p,textColor:S,wrapped:k},C=(e=>{let{classes:t,textColor:r,fullWidth:n,wrapped:i,icon:a,label:l,selected:u,disabled:c}=e,p={root:["root",a&&l&&"labelIcon",`textColor${(0,s.A)(r)}`,n&&"fullWidth",i&&"wrapped",u&&"selected",c&&"disabled"],icon:["iconWrapper","icon"]};return(0,o.A)(p,f,t)})(O),$=d&&y&&n.isValidElement(d)?n.cloneElement(d,{className:(0,i.A)(C.icon,d.props.className)}):d;return(0,m.jsxs)(g,{focusRipple:!u,className:(0,i.A)(C.root,a),ref:t,role:"tab","aria-selected":A,disabled:l,onClick:e=>{!A&&b&&b(e,M),x&&x(e)},onFocus:e=>{_&&!A&&b&&b(e,M),w&&w(e)},ownerState:O,tabIndex:A?0:-1,...N,children:["top"===h||"start"===h?(0,m.jsxs)(n.Fragment,{children:[$,y]}):(0,m.jsxs)(n.Fragment,{children:[y,$]}),v]})})},91394(e,t,r){"use strict";r.d(t,{A:()=>g});var n=r(70451),i=r(11750),o=r(81023),a=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,o.A)({root:["root",r&&"stickyHeader"]},d,t)})(y),x=n.useMemo(()=>({padding:c,size:p,stickyHeader:g}),[c,p,g]);return(0,f.jsx)(a.A.Provider,{value:x,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(70451).createContext()},91644(e,t,r){"use strict";r.d(t,{A:()=>n});let n=r(70451).createContext()},5139(e,t,r){"use strict";r.d(t,{A:()=>g});var n=r(70451),i=r(11750),o=r(81023),a=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,o.A)({root:["root"]},p,t)})(c);return(0,d.jsx)(a.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(70451),i=r(11750),o=r(81023),a=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
30
+ ${"light"===e.palette.mode?(0,a.a)((0,a.X4)(e.palette.divider,1),.88):(0,a.e$)((0,a.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,a=(0,d.b)({props:e,name:"MuiTableCell"}),{align:c="inherit",className:p,component:f,padding:h,scope:g,size:b,sortDirection:x,variant:w,...A}=a,_=n.useContext(l.A),S=n.useContext(u.A),M=S&&"head"===S.variant,k=g;"td"===(r=f||(M?"th":"td"))?k=void 0:!k&&M&&(k="col");let N=w||S&&S.variant,O={...a,align:c,component:r,padding:h||(_&&_.padding?_.padding:"normal"),size:b||(_&&_.size?_.size:"medium"),sortDirection:x,stickyHeader:"head"===N&&_&&_.stickyHeader,variant:N},C=(e=>{let{classes:t,variant:r,align:n,padding:i,size:a,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)(a)}`]};return(0,o.A)(u,m,t)})(O),$=null;return x&&($="asc"===x?"ascending":"descending"),(0,v.jsx)(y,{as:r,ref:t,className:(0,i.A)(C.root,p),"aria-sort":$,scope:k,ownerState:O,...A})})},347(e,t,r){"use strict";r.d(t,{A:()=>f});var n=r(70451),i=r(11750),o=r(81023),a=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,a.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:a="div",...l}=r,u={...r,component:a},f=(e=>{let{classes:t}=e;return(0,o.A)({root:["root"]},c,t)})(u);return(0,p.jsx)(d,{ref:t,as:a,className:(0,i.A)(f.root,n),ownerState:u,...l})})},70561(e,t,r){"use strict";r.d(t,{A:()=>g});var n=r(70451),i=r(11750),o=r(81023),a=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,o.A)({root:["root"]},p,t)})(c);return(0,d.jsx)(a.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(70451),i=r(11750),o=r(81023),a=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,a.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,a.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:a,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:a}=e;return(0,o.A)({root:["root",r&&"selected",n&&"hover",i&&"head",a&&"footer"]},f,t)})(v);return(0,m.jsx)(g,{as:l,ref:t,className:(0,i.A)(y.root,a),role:"tr"===l?null:"row",ownerState:v,...d})})},87034(e,t,r){"use strict";r.d(t,{A:()=>D});var n=r(70451),i=r(11750),o=r(81023),a=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),x=r(1337),w=r(29009),A=r(46733);function _(e){return(0,A.Ay)("MuiTabScrollButton",e)}let S=(0,w.A)("MuiTabScrollButton",["root","vertical","horizontal","disabled"]),M=(0,l.A)(x.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,[`&.${S.disabled}`]:{opacity:0},variants:[{props:{orientation:"vertical"},style:{width:"100%",height:40,"& svg":{transform:"var(--TabScrollButton-svgRotate)"}}}]}),k=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,a.I)(),v={isRtl:m,...r},x=(e=>{let{classes:t,orientation:r,disabled:n}=e;return(0,o.A)({root:["root",r,n&&"disabled"]},_,t)})(v),w=l.StartScrollButtonIcon??y.A,A=l.EndScrollButtonIcon??b.A,S=(0,s.A)({elementType:w,externalSlotProps:u.startScrollButtonIcon,additionalProps:{fontSize:"small"},ownerState:v}),k=(0,s.A)({elementType:A,externalSlotProps:u.endScrollButtonIcon,additionalProps:{fontSize:"small"},ownerState:v});return(0,g.jsx)(M,{component:"div",className:(0,i.A)(x.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)(w,{...S}):(0,g.jsx)(A,{...k})})});var N=r(32398),O=r(22857),C=r(1092),$=r(73397);let E=(e,t)=>e===t?e.firstChild:t&&t.nextElementSibling?t.nextElementSibling:e.firstChild,T=(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[{[`& .${O.A.scrollButtons}`]:t.scrollButtons},{[`& .${O.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:{[`& .${O.A.scrollButtons}`]:{[e.breakpoints.down("sm")]:{display:"none"}}}}]}))),P=(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"}}]}),j=(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}}]}))),B=(0,l.A)(function(e){let{onChange:t,...r}=e,i=n.useRef(),o=n.useRef(null),a=()=>{i.current=o.current.offsetHeight-o.current.clientHeight};return(0,h.A)(()=>{let e=(0,d.A)(()=>{let e=i.current;a(),e!==i.current&&t(i.current)}),r=(0,m.A)(o.current);return r.addEventListener("resize",e),()=>{e.clear(),r.removeEventListener("resize",e)}},[t]),n.useEffect(()=>{a(),t(i.current)},[t]),(0,g.jsx)("div",{style:v,...r,ref:o})})({overflowX:"auto",overflowY:"hidden",scrollbarWidth:"none","&::-webkit-scrollbar":{display:"none"}}),L={},D=n.forwardRef(function(e,t){let r,l,c=(0,p.b)({props:e,name:"MuiTabs"}),h=(0,u.A)(),v=(0,a.I)(),{"aria-label":y,"aria-labelledby":b,action:x,centered:w=!1,children:A,className:_,component:S="div",allowScrollButtonsMobile:M=!1,indicatorColor:D="primary",onChange:F,orientation:Z="horizontal",ScrollButtonComponent:W,scrollButtons:q="auto",selectionFollowsFocus:V,slots:H={},slotProps:U={},TabIndicatorProps:G={},TabScrollButtonProps:X={},textColor:Y="primary",value:K,variant:J="standard",visibleScrollbar:Q=!1,...ee}=c,et="scrollable"===J,er="vertical"===Z,en=er?"scrollTop":"scrollLeft",ei=er?"top":"left",eo=er?"bottom":"right",ea=er?"clientHeight":"clientWidth",es=er?"height":"width",el={...c,component:S,allowScrollButtonsMobile:M,indicatorColor:D,orientation:Z,vertical:er,scrollButtons:q,textColor:Y,variant:J,visibleScrollbar:Q,fixed:!et,hideScrollbar:et&&!Q,scrollableX:et&&!er,scrollableY:et&&er,centered:w&&!et,scrollButtonsHideMobile:!M},eu=(e=>{let{vertical:t,fixed:r,hideScrollbar:n,scrollableX:i,scrollableY:a,centered:s,scrollButtonsHideMobile:l,classes:u}=e;return(0,o.A)({root:["root",t&&"vertical"],scroller:["scroller",r&&"fixed",n&&"hideScrollbar",i&&"scrollableX",a&&"scrollableY"],list:["list","flexContainer",t&&"flexContainerVertical",t&&"vertical",s&&"centered"],indicator:["indicator"],scrollButtons:["scrollButtons",l&&"scrollButtonsHideMobile"],scrollableX:[i&&"scrollableX"],hideScrollbar:[n&&"hideScrollbar"]},O.H,u)})(el),ec=(0,s.A)({elementType:H.StartScrollButtonIcon,externalSlotProps:U.startScrollButtonIcon,ownerState:el}),ep=(0,s.A)({elementType:H.EndScrollButtonIcon,externalSlotProps:U.endScrollButtonIcon,ownerState:el}),[ed,ef]=n.useState(!1),[eh,em]=n.useState(L),[eg,ev]=n.useState(!1),[ey,eb]=n.useState(!1),[ex,ew]=n.useState(!1),[eA,e_]=n.useState({overflow:"hidden",scrollbarWidth:0}),eS=new Map,eM=n.useRef(null),ek=n.useRef(null),eN={slots:H,slotProps:{indicator:G,scrollButton:X,...U}},eO=()=>{let e,t,r=eM.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!==K){let e=ek.current.children;if(e.length>0){let r=e[eS.get(K)];t=r?r.getBoundingClientRect():null}}return{tabsMeta:e,tabMeta:t}},eC=(0,N.A)(()=>{let e,{tabsMeta:t,tabMeta:r}=eO(),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)}}),e$=(e,{animation:t=!0}={})=>{t?function(e,t,r,n={},i=()=>{}){let{ease:o=f,duration:a=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)/a);(t[e]=o(p)*(r-l)+l,p>=1)?requestAnimationFrame(()=>{i(null)}):requestAnimationFrame(c)};l===r?i(Error("Element already at target position")):requestAnimationFrame(c)}(en,eM.current,e,{duration:h.transitions.duration.standard}):eM.current[en]=e},eE=e=>{let t=eM.current[en];er?t+=e:t+=e*(v?-1:1),e$(t)},eT=()=>{let e=eM.current[ea],t=0,r=Array.from(ek.current.children);for(let n=0;n<r.length;n+=1){let i=r[n];if(t+i[ea]>e){0===n&&(t=e);break}t+=i[ea]}return t},[eR,{onChange:eI,...eP}]=(0,$.A)("scrollbar",{className:(0,i.A)(eu.scrollableX,eu.hideScrollbar),elementType:B,shouldForwardComponentProp:!0,externalForwardedProps:eN,ownerState:el}),ej=n.useCallback(e=>{eI?.(e),e_({overflow:null,scrollbarWidth:e})},[eI]),[ez,eB]=(0,$.A)("scrollButtons",{className:(0,i.A)(eu.scrollButtons,X.className),elementType:k,externalForwardedProps:eN,ownerState:el,additionalProps:{orientation:Z,slots:{StartScrollButtonIcon:H.startScrollButtonIcon||H.StartScrollButtonIcon,EndScrollButtonIcon:H.endScrollButtonIcon||H.EndScrollButtonIcon},slotProps:{startScrollButtonIcon:ec,endScrollButtonIcon:ep}}}),eL=(0,N.A)(e=>{let{tabsMeta:t,tabMeta:r}=eO();r&&t&&(r[ei]<t[ei]?e$(t[en]+(r[ei]-t[ei]),{animation:e}):r[eo]>t[eo]&&e$(t[en]+(r[eo]-t[eo]),{animation:e}))}),eD=(0,N.A)(()=>{et&&!1!==q&&ew(!ex)});n.useEffect(()=>{let e,t,r=(0,d.A)(()=>{eM.current&&eC()}),n=(0,m.A)(eM.current);return n.addEventListener("resize",r),"u">typeof ResizeObserver&&(e=new ResizeObserver(r),Array.from(ek.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(),eD()})).observe(ek.current,{childList:!0}),()=>{r.clear(),n.removeEventListener("resize",r),t?.disconnect(),e?.disconnect()}},[eC,eD]),n.useEffect(()=>{let e=Array.from(ek.current.children),t=e.length;if("u">typeof IntersectionObserver&&t>0&&et&&!1!==q){let r=e[0],n=e[t-1],i={root:eM.current,threshold:.99},o=new IntersectionObserver(e=>{ev(!e[0].isIntersecting)},i);o.observe(r);let a=new IntersectionObserver(e=>{eb(!e[0].isIntersecting)},i);return a.observe(n),()=>{o.disconnect(),a.disconnect()}}},[et,q,ex,A?.length]),n.useEffect(()=>{ef(!0)},[]),n.useEffect(()=>{eC()}),n.useEffect(()=>{eL(L!==eh)},[eL,eh]),n.useImperativeHandle(x,()=>({updateIndicator:eC,updateScrollButtons:eD}),[eC,eD]);let[eF,eZ]=(0,$.A)("indicator",{className:(0,i.A)(eu.indicator,G.className),elementType:z,externalForwardedProps:eN,ownerState:el,additionalProps:{style:eh}}),eW=(0,g.jsx)(eF,{...eZ}),eq=0,eV=n.Children.map(A,e=>{if(!n.isValidElement(e))return null;let t=void 0===e.props.value?eq:e.props.value;eS.set(t,eq);let r=t===K;return eq+=1,n.cloneElement(e,{fullWidth:"fullWidth"===J,indicator:r&&!ed&&eW,selected:r,selectionFollowsFocus:V,onChange:F,textColor:Y,value:t,...1===eq&&!1===K&&!e.props.tabIndex?{tabIndex:0}:{}})}),eH=((r={}).scrollbarSizeListener=et?(0,g.jsx)(eR,{...eP,onChange:ej}):null,r.scrollButtonStart=(l=et&&("auto"===q&&(eg||ey)||!0===q))?(0,g.jsx)(ez,{direction:v?"right":"left",onClick:()=>{eE(-1*eT())},disabled:!eg,...eB}):null,r.scrollButtonEnd=l?(0,g.jsx)(ez,{direction:v?"left":"right",onClick:()=>{eE(eT())},disabled:!ey,...eB}):null,r),[eU,eG]=(0,$.A)("root",{ref:t,className:(0,i.A)(eu.root,_),elementType:I,externalForwardedProps:{...eN,...ee,component:S},ownerState:el}),[eX,eY]=(0,$.A)("scroller",{ref:eM,className:eu.scroller,elementType:P,externalForwardedProps:eN,ownerState:el,additionalProps:{style:{overflow:eA.overflow,[er?`margin${v?"Left":"Right"}`:"marginBottom"]:Q?void 0:-eA.scrollbarWidth}}}),[eK,eJ]=(0,$.A)("list",{ref:ek,className:(0,i.A)(eu.list,eu.flexContainer),elementType:j,externalForwardedProps:eN,ownerState:el,getSlotProps:e=>({...e,onKeyDown:t=>{(e=>{if(e.altKey||e.shiftKey||e.ctrlKey||e.metaKey)return;let t=ek.current,r=(0,C.A)(t).activeElement;if("tab"!==r.getAttribute("role"))return;let n="horizontal"===Z?"ArrowLeft":"ArrowUp",i="horizontal"===Z?"ArrowRight":"ArrowDown";switch("horizontal"===Z&&v&&(n="ArrowRight",i="ArrowLeft"),e.key){case n:e.preventDefault(),R(t,r,T);break;case i:e.preventDefault(),R(t,r,E);break;case"Home":e.preventDefault(),R(t,null,E);break;case"End":e.preventDefault(),R(t,null,T)}})(t),e.onKeyDown?.(t)}})});return(0,g.jsxs)(eU,{...eG,children:[eH.scrollButtonStart,eH.scrollbarSizeListener,(0,g.jsxs)(eX,{...eY,children:[(0,g.jsx)(eK,{"aria-label":y,"aria-labelledby":b,"aria-orientation":"vertical"===Z?"vertical":null,role:"tablist",...eJ,children:eV}),ed&&eW]}),eH.scrollButtonEnd]})})},22857(e,t,r){"use strict";r.d(t,{A:()=>a,H:()=>o});var n=r(29009),i=r(46733);function o(e){return(0,i.Ay)("MuiTabs",e)}let a=(0,n.A)("MuiTabs",["root","vertical","list","flexContainer","flexContainerVertical","centered","scroller","fixed","scrollableX","scrollableY","hideScrollbar","scrollButtons","scrollButtonsHideMobile","indicator"])},31729(e,t,r){"use strict";r.d(t,{A:()=>b});var n=r(70451),i=r(11750),o=r(52215),a=r(81023),s=r(59238),l=r(1337),u=r(24726),c=r(77308),p=r(23434),d=r(26952),f=r(72052),h=r(76145),m=r(40180),g=r(4992),v=r(62540);let y=(0,c.A)(l.A,{name:"MuiToggleButton",slot:"Root",overridesResolver:(e,t)=>{let{ownerState:r}=e;return[t.root,t[`size${(0,u.A)(r.size)}`]]}})((0,p.A)(({theme:e})=>({...e.typography.button,borderRadius:(e.vars||e).shape.borderRadius,padding:11,border:`1px solid ${(e.vars||e).palette.divider}`,color:(e.vars||e).palette.action.active,[`&.${h.A.disabled}`]:{color:(e.vars||e).palette.action.disabled,border:`1px solid ${(e.vars||e).palette.action.disabledBackground}`},"&:hover":{textDecoration:"none",backgroundColor:e.vars?`rgba(${e.vars.palette.text.primaryChannel} / ${e.vars.palette.action.hoverOpacity})`:(0,s.X4)(e.palette.text.primary,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},variants:[{props:{color:"standard"},style:{[`&.${h.A.selected}`]:{color:(e.vars||e).palette.text.primary,backgroundColor:e.vars?`rgba(${e.vars.palette.text.primaryChannel} / ${e.vars.palette.action.selectedOpacity})`:(0,s.X4)(e.palette.text.primary,e.palette.action.selectedOpacity),"&:hover":{backgroundColor:e.vars?`rgba(${e.vars.palette.text.primaryChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.hoverOpacity}))`:(0,s.X4)(e.palette.text.primary,e.palette.action.selectedOpacity+e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:e.vars?`rgba(${e.vars.palette.text.primaryChannel} / ${e.vars.palette.action.selectedOpacity})`:(0,s.X4)(e.palette.text.primary,e.palette.action.selectedOpacity)}}}}},...Object.entries(e.palette).filter((0,d.A)()).map(([t])=>({props:{color:t},style:{[`&.${h.A.selected}`]:{color:(e.vars||e).palette[t].main,backgroundColor:e.vars?`rgba(${e.vars.palette[t].mainChannel} / ${e.vars.palette.action.selectedOpacity})`:(0,s.X4)(e.palette[t].main,e.palette.action.selectedOpacity),"&:hover":{backgroundColor:e.vars?`rgba(${e.vars.palette[t].mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.hoverOpacity}))`:(0,s.X4)(e.palette[t].main,e.palette.action.selectedOpacity+e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:e.vars?`rgba(${e.vars.palette[t].mainChannel} / ${e.vars.palette.action.selectedOpacity})`:(0,s.X4)(e.palette[t].main,e.palette.action.selectedOpacity)}}}}})),{props:{fullWidth:!0},style:{width:"100%"}},{props:{size:"small"},style:{padding:7,fontSize:e.typography.pxToRem(13)}},{props:{size:"large"},style:{padding:15,fontSize:e.typography.pxToRem(15)}}]}))),b=n.forwardRef(function(e,t){var r;let{value:s,...l}=n.useContext(m.A),c=n.useContext(g.A),p=(0,o.A)({...l,selected:(r=e.value,void 0!==s&&void 0!==r&&(Array.isArray(s)?s.includes(r):r===s))},e),d=(0,f.b)({props:p,name:"MuiToggleButton"}),{children:b,className:x,color:w="standard",disabled:A=!1,disableFocusRipple:_=!1,fullWidth:S=!1,onChange:M,onClick:k,selected:N,size:O="medium",value:C,...$}=d,E={...d,color:w,disabled:A,disableFocusRipple:_,fullWidth:S,size:O},T=(e=>{let{classes:t,fullWidth:r,selected:n,disabled:i,size:o,color:s}=e,l={root:["root",n&&"selected",i&&"disabled",r&&"fullWidth",`size${(0,u.A)(o)}`,s]};return(0,a.A)(l,h.J,t)})(E);return(0,v.jsx)(y,{className:(0,i.A)(l.className,T.root,x,c||""),disabled:A,focusRipple:!_,ref:t,onClick:e=>{k&&(k(e,C),e.defaultPrevented)||M&&M(e,C)},onChange:M,value:C,ownerState:E,"aria-pressed":N,...$,children:b})})},76145(e,t,r){"use strict";r.d(t,{A:()=>a,J:()=>o});var n=r(29009),i=r(46733);function o(e){return(0,i.Ay)("MuiToggleButton",e)}let a=(0,n.A)("MuiToggleButton",["root","disabled","selected","standard","primary","secondary","sizeSmall","sizeMedium","sizeLarge","fullWidth"])},61375(e,t,r){"use strict";r.d(t,{A:()=>x});var n=r(70451),i=r(11750),o=r(81023),a=r(41953),s=r(77308),l=r(23434),u=r(72052),c=r(24726),p=r(29009),d=r(46733);function f(e){return(0,d.Ay)("MuiToggleButtonGroup",e)}let h=(0,p.A)("MuiToggleButtonGroup",["root","selected","horizontal","vertical","disabled","grouped","groupedHorizontal","groupedVertical","fullWidth","firstButton","lastButton","middleButton"]);var m=r(40180),g=r(4992),v=r(76145),y=r(62540);let b=(0,s.A)("div",{name:"MuiToggleButtonGroup",slot:"Root",overridesResolver:(e,t)=>{let{ownerState:r}=e;return[{[`& .${h.grouped}`]:t.grouped},{[`& .${h.grouped}`]:t[`grouped${(0,c.A)(r.orientation)}`]},{[`& .${h.firstButton}`]:t.firstButton},{[`& .${h.lastButton}`]:t.lastButton},{[`& .${h.middleButton}`]:t.middleButton},t.root,"vertical"===r.orientation&&t.vertical,r.fullWidth&&t.fullWidth]}})((0,l.A)(({theme:e})=>({display:"inline-flex",borderRadius:(e.vars||e).shape.borderRadius,variants:[{props:{orientation:"vertical"},style:{flexDirection:"column",[`& .${h.grouped}`]:{[`&.${h.selected} + .${h.grouped}.${h.selected}`]:{borderTop:0,marginTop:0}},[`& .${h.firstButton},& .${h.middleButton}`]:{borderBottomLeftRadius:0,borderBottomRightRadius:0},[`& .${h.lastButton},& .${h.middleButton}`]:{marginTop:-1,borderTop:"1px solid transparent",borderTopLeftRadius:0,borderTopRightRadius:0},[`& .${h.lastButton}.${v.A.disabled},& .${h.middleButton}.${v.A.disabled}`]:{borderTop:"1px solid transparent"}}},{props:{fullWidth:!0},style:{width:"100%"}},{props:{orientation:"horizontal"},style:{[`& .${h.grouped}`]:{[`&.${h.selected} + .${h.grouped}.${h.selected}`]:{borderLeft:0,marginLeft:0}},[`& .${h.firstButton},& .${h.middleButton}`]:{borderTopRightRadius:0,borderBottomRightRadius:0},[`& .${h.lastButton},& .${h.middleButton}`]:{marginLeft:-1,borderLeft:"1px solid transparent",borderTopLeftRadius:0,borderBottomLeftRadius:0},[`& .${h.lastButton}.${v.A.disabled},& .${h.middleButton}.${v.A.disabled}`]:{borderLeft:"1px solid transparent"}}}]}))),x=n.forwardRef(function(e,t){let r=(0,u.b)({props:e,name:"MuiToggleButtonGroup"}),{children:s,className:l,color:p="standard",disabled:d=!1,exclusive:h=!1,fullWidth:v=!1,onChange:x,orientation:w="horizontal",size:A="medium",value:_,...S}=r,M={...r,disabled:d,fullWidth:v,orientation:w,size:A},k=(e=>{let{classes:t,orientation:r,fullWidth:n,disabled:i}=e,a={root:["root",r,n&&"fullWidth"],grouped:["grouped",`grouped${(0,c.A)(r)}`,i&&"disabled"],firstButton:["firstButton"],lastButton:["lastButton"],middleButton:["middleButton"]};return(0,o.A)(a,f,t)})(M),N=n.useCallback((e,t)=>{let r;if(!x)return;let n=_&&_.indexOf(t);_&&n>=0?(r=_.slice()).splice(n,1):r=_?_.concat(t):[t],x(e,r)},[x,_]),O=n.useCallback((e,t)=>{x&&x(e,_===t?null:t)},[x,_]),C=n.useMemo(()=>({className:k.grouped,onChange:h?O:N,value:_,size:A,fullWidth:v,color:p,disabled:d}),[k.grouped,h,O,N,_,A,v,p,d]),$=(0,a.A)(s),E=$.length;return(0,y.jsx)(b,{role:"group",className:(0,i.A)(k.root,l),ref:t,ownerState:M,...S,children:(0,y.jsx)(m.A.Provider,{value:C,children:$.map((e,t)=>{let r,n;return(0,y.jsx)(g.A.Provider,{value:(r=0===t,n=t===E-1,r&&n?"":r?k.firstButton:n?k.lastButton:k.middleButton),children:e},t)})})})})},4992(e,t,r){"use strict";r.d(t,{A:()=>n});let n=r(70451).createContext(void 0)},40180(e,t,r){"use strict";r.d(t,{A:()=>n});let n=r(70451).createContext({})},65211(e,t,r){"use strict";r.d(t,{A:()=>T});var n=r(70451),i=r(11750),o=r(3725),a=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),x=r(63392),w=r(2203),A=r(73397),_=r(32751),S=r(62540);let M=(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.arrow}`]:{top:0,marginTop:"-0.71em","&::before":{transformOrigin:"0 100%"}},[`&[data-popper-placement*="top"] .${_.A.arrow}`]:{bottom:0,marginBottom:"-0.71em","&::before":{transformOrigin:"100% 0"}},[`&[data-popper-placement*="right"] .${_.A.arrow}`]:{height:"1em",width:"0.71em","&::before":{transformOrigin:"100% 100%"}},[`&[data-popper-placement*="left"] .${_.A.arrow}`]:{height:"1em",width:"0.71em","&::before":{transformOrigin:"0 0"}}}},{props:({ownerState:e})=>e.arrow&&!e.isRtl,style:{[`&[data-popper-placement*="right"] .${_.A.arrow}`]:{left:0,marginLeft:"-0.71em"}}},{props:({ownerState:e})=>e.arrow&&!!e.isRtl,style:{[`&[data-popper-placement*="right"] .${_.A.arrow}`]:{right:0,marginRight:"-0.71em"}}},{props:({ownerState:e})=>e.arrow&&!e.isRtl,style:{[`&[data-popper-placement*="left"] .${_.A.arrow}`]:{right:0,marginRight:"-0.71em"}}},{props:({ownerState:e})=>e.arrow&&!!e.isRtl,style:{[`&[data-popper-placement*="left"] .${_.A.arrow}`]:{left:0,marginLeft:"-0.71em"}}}]}))),k=(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.popper}[data-popper-placement*="left"] &`]:{transformOrigin:"right center"},[`.${_.A.popper}[data-popper-placement*="right"] &`]:{transformOrigin:"left center"},[`.${_.A.popper}[data-popper-placement*="top"] &`]:{transformOrigin:"center bottom",marginBottom:"14px"},[`.${_.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.popper}[data-popper-placement*="left"] &`]:{marginRight:"14px"},[`.${_.A.popper}[data-popper-placement*="right"] &`]:{marginLeft:"14px"}}},{props:({ownerState:e})=>!e.isRtl&&e.touch,style:{[`.${_.A.popper}[data-popper-placement*="left"] &`]:{marginRight:"24px"},[`.${_.A.popper}[data-popper-placement*="right"] &`]:{marginLeft:"24px"}}},{props:({ownerState:e})=>!!e.isRtl,style:{[`.${_.A.popper}[data-popper-placement*="left"] &`]:{marginLeft:"14px"},[`.${_.A.popper}[data-popper-placement*="right"] &`]:{marginRight:"14px"}}},{props:({ownerState:e})=>!!e.isRtl&&e.touch,style:{[`.${_.A.popper}[data-popper-placement*="left"] &`]:{marginLeft:"24px"},[`.${_.A.popper}[data-popper-placement*="right"] &`]:{marginRight:"24px"}}},{props:({ownerState:e})=>e.touch,style:{[`.${_.A.popper}[data-popper-placement*="top"] &`]:{marginBottom:"24px"}}},{props:({ownerState:e})=>e.touch,style:{[`.${_.A.popper}[data-popper-placement*="bottom"] &`]:{marginTop:"24px"}}}]}))),N=(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)"}}))),O=!1,C=new o.E,$={x:0,y:0};function E(e,t){return(r,...n)=>{t&&t(r,...n),e(r,...n)}}let T=n.forwardRef(function(e,t){let r=(0,h.b)({props:e,name:"MuiTooltip"}),{arrow:s=!1,children:p,classes:f,components:T={},componentsProps:R={},describeChild:I=!1,disableFocusListener:P=!1,disableHoverListener:j=!1,disableInteractive:z=!1,disableTouchListener:B=!1,enterDelay:L=100,enterNextDelay:D=0,enterTouchDelay:F=700,followCursor:Z=!1,id:W,leaveDelay:q=0,leaveTouchDelay:V=1500,onClose:H,onOpen:U,open:G,placement:X="bottom",PopperComponent:Y,PopperProps:K={},slotProps:J={},slots:Q={},title:ee,TransitionComponent:et,TransitionProps:er,...en}=r,ei=n.isValidElement(p)?p:(0,S.jsx)("span",{children:p}),eo=(0,d.A)(),ea=(0,l.I)(),[es,el]=n.useState(),[eu,ec]=n.useState(null),ep=n.useRef(!1),ed=z||Z,ef=(0,o.A)(),eh=(0,o.A)(),em=(0,o.A)(),eg=(0,o.A)(),[ev,ey]=(0,w.A)({controlled:G,default:!1,name:"Tooltip",state:"open"}),eb=ev,ex=(0,x.A)(W),ew=n.useRef(),eA=(0,y.A)(()=>{void 0!==ew.current&&(document.body.style.WebkitUserSelect=ew.current,ew.current=void 0),eg.clear()});n.useEffect(()=>eA,[eA]);let e_=e=>{C.clear(),O=!0,ey(!0),U&&!eb&&U(e)},eS=(0,y.A)(e=>{C.start(800+q,()=>{O=!1}),ey(!1),H&&eb&&H(e),ef.start(eo.transitions.duration.shortest,()=>{ep.current=!1})}),eM=e=>{ep.current&&"touchstart"!==e.type||(es&&es.removeAttribute("title"),eh.clear(),em.clear(),L||O&&D?eh.start(O?D:L,()=>{e_(e)}):e_(e))},ek=e=>{eh.clear(),em.start(q,()=>{eS(e)})},[,eN]=n.useState(!1),eO=e=>{(0,u.A)(e.target)||(eN(!1),ek(e))},eC=e=>{es||el(e.currentTarget),(0,u.A)(e.target)&&(eN(!0),eM(e))},e$=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&&eS(e)}},[eS,eb]);let eE=(0,b.A)((0,c.A)(ei),el,t);ee||0===ee||(eb=!1);let eT=n.useRef(),eR={},eI="string"==typeof ee;I?(eR.title=eb||!eI||j?null:ee,eR["aria-describedby"]=eb?ex:null):(eR["aria-label"]=eI?ee:null,eR["aria-labelledby"]=eb&&!eI?ex:null);let eP={...eR,...en,...ei.props,className:(0,i.A)(en.className,ei.props.className),onTouchStart:e$,ref:eE,...Z?{onMouseMove:e=>{let t=ei.props;t.onMouseMove&&t.onMouseMove(e),$={x:e.clientX,y:e.clientY},eT.current&&eT.current.update()}}:{}},ej={};B||(eP.onTouchStart=e=>{e$(e),em.clear(),ef.clear(),eA(),ew.current=document.body.style.WebkitUserSelect,document.body.style.WebkitUserSelect="none",eg.start(F,()=>{document.body.style.WebkitUserSelect=ew.current,eM(e)})},eP.onTouchEnd=e=>{ei.props.onTouchEnd&&ei.props.onTouchEnd(e),eA(),em.start(V,()=>{eS(e)})}),!j&&(eP.onMouseOver=E(eM,eP.onMouseOver),eP.onMouseLeave=E(ek,eP.onMouseLeave),ed||(ej.onMouseOver=eM,ej.onMouseLeave=ek)),!P&&(eP.onFocus=E(eC,eP.onFocus),eP.onBlur=E(eO,eP.onBlur),ed||(ej.onFocus=eC,ej.onBlur=eO));let ez={...r,isRtl:ea,arrow:s,disableInteractive:ed,placement:X,PopperComponentProp:Y,touch:ep.current},eB="function"==typeof J.popper?J.popper(ez):J.popper,eL=n.useMemo(()=>{let e=[{name:"arrow",enabled:!!eu,options:{element:eu,padding:4}}];return K.popperOptions?.modifiers&&(e=e.concat(K.popperOptions.modifiers)),eB?.popperOptions?.modifiers&&(e=e.concat(eB.popperOptions.modifiers)),{...K.popperOptions,...eB?.popperOptions,modifiers:e}},[eu,K.popperOptions,eB?.popperOptions]),eD=(e=>{let{classes:t,disableInteractive:r,arrow:n,touch:i,placement:o}=e,s={popper:["popper",!r&&"popperInteractive",n&&"popperArrow"],tooltip:["tooltip",n&&"tooltipArrow",i&&"touch",`tooltipPlacement${(0,m.A)(o.split("-")[0])}`],arrow:["arrow"]};return(0,a.A)(s,_.E,t)})(ez),eF="function"==typeof J.transition?J.transition(ez):J.transition,eZ={slots:{popper:T.Popper,transition:T.Transition??et,tooltip:T.Tooltip,arrow:T.Arrow,...Q},slotProps:{arrow:J.arrow??R.arrow,popper:{...K,...eB??R.popper},tooltip:J.tooltip??R.tooltip,transition:{...er,...eF??R.transition}}},[eW,eq]=(0,A.A)("popper",{elementType:M,externalForwardedProps:eZ,ownerState:ez,className:(0,i.A)(eD.popper,K?.className)}),[eV,eH]=(0,A.A)("transition",{elementType:g.A,externalForwardedProps:eZ,ownerState:ez}),[eU,eG]=(0,A.A)("tooltip",{elementType:k,className:eD.tooltip,externalForwardedProps:eZ,ownerState:ez}),[eX,eY]=(0,A.A)("arrow",{elementType:N,className:eD.arrow,externalForwardedProps:eZ,ownerState:ez,ref:ec});return(0,S.jsxs)(n.Fragment,{children:[n.cloneElement(ei,eP),(0,S.jsx)(eW,{as:Y??v.A,placement:X,anchorEl:Z?{getBoundingClientRect:()=>({top:$.y,left:$.x,right:$.x,bottom:$.y,width:0,height:0})}:es,popperRef:eT,open:!!es&&eb,id:ex,transition:!0,...ej,...eq,popperOptions:eL,children:({TransitionProps:e})=>(0,S.jsx)(eV,{timeout:eo.transitions.duration.shorter,...e,...eH,children:(0,S.jsxs)(eU,{...eG,children:[ee,s?(0,S.jsx)(eX,{...eY}):null]})})})]})})},32751(e,t,r){"use strict";r.d(t,{A:()=>a,E:()=>o});var n=r(29009),i=r(46733);function o(e){return(0,i.Ay)("MuiTooltip",e)}let a=(0,n.A)("MuiTooltip",["popper","popperInteractive","popperArrow","popperClose","tooltip","tooltipArrow","touch","tooltipPlacementLeft","tooltipPlacementRight","tooltipPlacementTop","tooltipPlacementBottom","arrow"])},88091(e,t,r){"use strict";r.d(t,{A:()=>y});var n=r(70451),i=r(11750),o=r(81023),a=r(90124),s=r(77308),l=r(23434),u=r(72052),c=r(24726),p=r(26952),d=r(47599),f=r(62540);let h={primary:!0,secondary:!0,error:!0,info:!0,success:!0,warning:!0,textPrimary:!0,textSecondary:!0,textDisabled:!0},m=(0,a.Dg)(),g=(0,s.A)("span",{name:"MuiTypography",slot:"Root",overridesResolver:(e,t)=>{let{ownerState:r}=e;return[t.root,r.variant&&t[r.variant],"inherit"!==r.align&&t[`align${(0,c.A)(r.align)}`],r.noWrap&&t.noWrap,r.gutterBottom&&t.gutterBottom,r.paragraph&&t.paragraph]}})((0,l.A)(({theme:e})=>({margin:0,variants:[{props:{variant:"inherit"},style:{font:"inherit",lineHeight:"inherit",letterSpacing:"inherit"}},...Object.entries(e.typography).filter(([e,t])=>"inherit"!==e&&t&&"object"==typeof t).map(([e,t])=>({props:{variant:e},style:t})),...Object.entries(e.palette).filter((0,p.A)()).map(([t])=>({props:{color:t},style:{color:(e.vars||e).palette[t].main}})),...Object.entries(e.palette?.text||{}).filter(([,e])=>"string"==typeof e).map(([t])=>({props:{color:`text${(0,c.A)(t)}`},style:{color:(e.vars||e).palette.text[t]}})),{props:({ownerState:e})=>"inherit"!==e.align,style:{textAlign:"var(--Typography-textAlign)"}},{props:({ownerState:e})=>e.noWrap,style:{overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"}},{props:({ownerState:e})=>e.gutterBottom,style:{marginBottom:"0.35em"}},{props:({ownerState:e})=>e.paragraph,style:{marginBottom:16}}]}))),v={h1:"h1",h2:"h2",h3:"h3",h4:"h4",h5:"h5",h6:"h6",subtitle1:"h6",subtitle2:"h6",body1:"p",body2:"p",inherit:"p"},y=n.forwardRef(function(e,t){let{color:r,...n}=(0,u.b)({props:e,name:"MuiTypography"}),a=!h[r],s=m({...n,...a&&{color:r}}),{align:l="inherit",className:p,component:y,gutterBottom:b=!1,noWrap:x=!1,paragraph:w=!1,variant:A="body1",variantMapping:_=v,...S}=s,M={...s,align:l,color:r,className:p,component:y,gutterBottom:b,noWrap:x,paragraph:w,variant:A,variantMapping:_},k=y||(w?"p":_[A]||v[A])||"span",N=(e=>{let{align:t,gutterBottom:r,noWrap:n,paragraph:i,variant:a,classes:s}=e,l={root:["root",a,"inherit"!==e.align&&`align${(0,c.A)(t)}`,r&&"gutterBottom",n&&"noWrap",i&&"paragraph"]};return(0,o.A)(l,d.y,s)})(M);return(0,f.jsx)(g,{as:k,ref:t,className:(0,i.A)(N.root,p),...S,ownerState:M,style:{..."inherit"!==l&&{"--Typography-textAlign":l},...S.style}})})},47599(e,t,r){"use strict";r.d(t,{A:()=>a,y:()=>o});var n=r(29009),i=r(46733);function o(e){return(0,i.Ay)("MuiTypography",e)}let a=(0,n.A)("MuiTypography",["root","h1","h2","h3","h4","h5","h6","subtitle1","subtitle2","body1","body2","inherit","button","caption","overline","alignLeft","alignRight","alignCenter","alignJustify","noWrap","gutterBottom","paragraph"])},17834(e,t,r){"use strict";r.d(t,{A:()=>o}),r(70451);var n=r(22402),i=r(62540);let o=(0,n.A)((0,i.jsx)("path",{d:"M19 6.41L17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12z"}),"Close")},96913(e,t,r){"use strict";r.d(t,{A:()=>o}),r(70451);var n=r(22402),i=r(62540);let o=(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:()=>o}),r(70451);var n=r(22402),i=r(62540);let o=(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")},81227(e,t,r){"use strict";r.d(t,{A:()=>h,Z:()=>u});var n=r(70451),i=r(54553),o=r(89369),a=r(83183),s=r(71849);function l(e){return e.normalize("NFD").replace(/[\u0300-\u036f]/g,"")}function u(e={}){let{ignoreAccents:t=!0,ignoreCase:r=!0,limit:n,matchFrom:i="any",stringify:o,trim:a=!1}=e;return(e,{inputValue:s,getOptionLabel:u})=>{let c=a?s.trim():s;r&&(c=c.toLowerCase()),t&&(c=l(c));let p=c?e.filter(e=>{let n=(o||u)(e);return r&&(n=n.toLowerCase()),t&&(n=l(n)),"start"===i?n.startsWith(c):n.includes(c)}):e;return"number"==typeof n?p.slice(0,n):p}}let c=u(),p=e=>null!==e.current&&e.current.parentElement?.contains(document.activeElement),d=[];function f(e,t,r){if(t||null==e)return"";let n=r(e);return"string"==typeof n?n:""}let h=function(e){var t;let r,{unstable_isActiveElementInListbox:l=p,unstable_classNamePrefix:u="Mui",autoComplete:h=!1,autoHighlight:m=!1,autoSelect:g=!1,blurOnSelect:v=!1,clearOnBlur:y=!e.freeSolo,clearOnEscape:b=!1,componentName:x="useAutocomplete",defaultValue:w=e.multiple?d:null,disableClearable:A=!1,disableCloseOnSelect:_=!1,disabled:S,disabledItemsFocusable:M=!1,disableListWrap:k=!1,filterOptions:N=c,filterSelectedOptions:O=!1,freeSolo:C=!1,getOptionDisabled:$,getOptionKey:E,getOptionLabel:T=e=>e.label??e,groupBy:R,handleHomeEndKeys:I=!e.freeSolo,id:P,includeInputInList:j=!1,inputValue:z,isOptionEqualToValue:B=(e,t)=>e===t,multiple:L=!1,onChange:D,onClose:F,onHighlightChange:Z,onInputChange:W,onOpen:q,open:V,openOnFocus:H=!1,options:U,readOnly:G=!1,selectOnFocus:X=!e.freeSolo,value:Y}=e,K=(0,i.A)(P),J=T;J=e=>{let t=T(e);return"string"!=typeof t?String(t):t};let Q=n.useRef(!1),ee=n.useRef(!0),et=n.useRef(null),er=n.useRef(null),[en,ei]=n.useState(null),[eo,ea]=n.useState(-1),es=m?0:-1,el=n.useRef(es),eu=n.useRef(f(w??Y,L,J)).current,[ec,ep]=(0,o.A)({controlled:Y,default:w,name:x}),[ed,ef]=(0,o.A)({controlled:z,default:eu,name:x,state:"inputValue"}),[eh,em]=n.useState(!1),eg=n.useCallback((e,t,r)=>{if(!(L?ec.length<t.length:null!==t)&&!y)return;let n=f(t,L,J);ed!==n&&(ef(n),W&&W(e,n,r))},[J,ed,L,W,ef,y,ec]),[ev,ey]=(0,o.A)({controlled:V,default:!1,name:x,state:"open"}),[eb,ex]=n.useState(!0),ew=!L&&null!=ec&&ed===J(ec),eA=ev&&!G,e_=eA?N(U.filter(e=>!(O&&(L?ec:[ec]).some(t=>null!==t&&B(e,t)))),{inputValue:ew&&eb?"":ed,getOptionLabel:J}):[],eS=(t={filteredOptions:e_,value:ec,inputValue:ed},r=n.useRef({}),n.useEffect(()=>{r.current=t}),r.current);n.useEffect(()=>{let e=ec!==eS.value;eh&&!e||(!C||e)&&eg(null,ec,"reset")},[ec,eg,eh,eS.value,C]);let eM=ev&&e_.length>0&&!G,ek=(0,a.A)(e=>{-1===e?et.current.focus():en.querySelector(`[data-tag-index="${e}"]`).focus()});n.useEffect(()=>{L&&eo>ec.length-1&&(ea(-1),ek(-1))},[ec,L,eo,ek]);let eN=(0,a.A)(({event:e,index:t,reason:r})=>{if(el.current=t,-1===t?et.current.removeAttribute("aria-activedescendant"):et.current.setAttribute("aria-activedescendant",`${K}-option-${t}`),Z&&["mouse","keyboard","touch"].includes(r)&&Z(e,-1===t?null:e_[t],r),!er.current)return;let n=er.current.querySelector(`[role="option"].${u}-focused`);n&&(n.classList.remove(`${u}-focused`),n.classList.remove(`${u}-focusVisible`));let i=er.current;if("listbox"!==er.current.getAttribute("role")&&(i=er.current.parentElement.querySelector('[role="listbox"]')),!i)return;if(-1===t){i.scrollTop=0;return}let o=er.current.querySelector(`[data-option-index="${t}"]`);if(o&&(o.classList.add(`${u}-focused`),"keyboard"===r&&o.classList.add(`${u}-focusVisible`),i.scrollHeight>i.clientHeight&&"mouse"!==r&&"touch"!==r)){let e=i.clientHeight+i.scrollTop,t=o.offsetTop+o.offsetHeight;t>e?i.scrollTop=t-i.clientHeight:o.offsetTop-o.offsetHeight*(1.3*!!R)<i.scrollTop&&(i.scrollTop=o.offsetTop-o.offsetHeight*(1.3*!!R))}}),eO=(0,a.A)(({event:e,diff:t,direction:r="next",reason:n})=>{if(!eA)return;let i=function(e,t){if(!er.current||e<0||e>=e_.length)return -1;let r=e;for(;;){let n=er.current.querySelector(`[data-option-index="${r}"]`),i=!M&&(!n||n.disabled||"true"===n.getAttribute("aria-disabled"));if(n&&n.hasAttribute("tabindex")&&!i)return r;if((r="next"===t?(r+1)%e_.length:(r-1+e_.length)%e_.length)===e)return -1}}((()=>{let e=e_.length-1;if("reset"===t)return es;if("start"===t)return 0;if("end"===t)return e;let r=el.current+t;return r<0?-1===r&&j?-1:k&&-1!==el.current||Math.abs(t)>1?0:e:r>e?r===e+1&&j?-1:k||Math.abs(t)>1?e:0:r})(),r);if(eN({index:i,reason:n,event:e}),h&&"reset"!==t)if(-1===i)et.current.value=ed;else{let e=J(e_[i]);et.current.value=e,0===e.toLowerCase().indexOf(ed.toLowerCase())&&ed.length>0&&et.current.setSelectionRange(ed.length,e.length)}}),eC=n.useCallback(()=>{if(!eA)return;let e=(()=>{var e;if(-1!==el.current&&eS.filteredOptions&&eS.filteredOptions.length!==e_.length&&eS.inputValue===ed&&(L?ec.length===eS.value.length&&eS.value.every((e,t)=>J(ec[t])===J(e)):(e=eS.value,(e?J(e):"")===(ec?J(ec):"")))){let e=eS.filteredOptions[el.current];if(e)return e_.findIndex(t=>J(t)===J(e))}return -1})();if(-1!==e){el.current=e;return}let t=L?ec[0]:ec;if(0===e_.length||null==t)return void eO({diff:"reset"});if(er.current){if(null!=t){let e=e_[el.current];if(L&&e&&-1!==ec.findIndex(t=>B(e,t)))return;let r=e_.findIndex(e=>B(e,t));-1===r?eO({diff:"reset"}):eN({index:r});return}if(el.current>=e_.length-1)return void eN({index:e_.length-1});eN({index:el.current})}},[e_.length,!L&&ec,O,eO,eN,eA,ed,L]),e$=(0,a.A)(e=>{(0,s.A)(er,e),e&&eC()});n.useEffect(()=>{eC()},[eC]);let eE=e=>{!ev&&(ey(!0),ex(!0),q&&q(e))},eT=(e,t)=>{ev&&(ey(!1),F&&F(e,t))},eR=(e,t,r,n)=>{if(L){if(ec.length===t.length&&ec.every((e,r)=>e===t[r]))return}else if(ec===t)return;D&&D(e,t,r,n),ep(t)},eI=n.useRef(!1),eP=(e,t,r="selectOption",n="options")=>{let i=r,o=t;if(L){let e=(o=Array.isArray(ec)?ec.slice():[]).findIndex(e=>B(t,e));-1===e?o.push(t):"freeSolo"!==n&&(o.splice(e,1),i="removeOption")}eg(e,o,i),eR(e,o,i,{option:t}),_||e&&(e.ctrlKey||e.metaKey)||eT(e,i),(!0===v||"touch"===v&&eI.current||"mouse"===v&&!eI.current)&&et.current.blur()},ej=(e,t)=>{if(!L)return;""===ed&&eT(e,"toggleInput");let r=eo;-1===eo?""===ed&&"previous"===t&&(r=ec.length-1):((r+="next"===t?1:-1)<0&&(r=0),r===ec.length&&(r=-1)),ea(r=function(e,t){if(-1===e)return -1;let r=e;for(;;){if("next"===t&&r===ec.length||"previous"===t&&-1===r)return -1;let e=en.querySelector(`[data-tag-index="${r}"]`);if(e&&e.hasAttribute("tabindex")&&!e.disabled&&"true"!==e.getAttribute("aria-disabled"))return r;r+="next"===t?1:-1}}(r,t)),ek(r)},ez=e=>{Q.current=!0,ef(""),W&&W(e,"","clear"),eR(e,L?[]:null,"clear")},eB=e=>{em(!0),H&&!Q.current&&eE(e)},eL=e=>{l(er)?et.current.focus():(em(!1),ee.current=!0,Q.current=!1,g&&-1!==el.current&&eA?eP(e,e_[el.current],"blur"):g&&C&&""!==ed?eP(e,ed,"blur","freeSolo"):y&&eg(e,ec,"blur"),eT(e,"blur"))},eD=e=>{let t=e.target.value;ed!==t&&(ef(t),ex(!1),W&&W(e,t,"input")),""===t?A||L||eR(e,null,"clear"):eE(e)},eF=e=>{let t=Number(e.currentTarget.getAttribute("data-option-index"));el.current!==t&&eN({event:e,index:t,reason:"mouse"})},eZ=e=>{eN({event:e,index:Number(e.currentTarget.getAttribute("data-option-index")),reason:"touch"}),eI.current=!0},eW=e=>{let t=Number(e.currentTarget.getAttribute("data-option-index"));eP(e,e_[t],"selectOption"),eI.current=!1},eq=e=>{ev?eT(e,"toggleInput"):eE(e)},eV=e=>{e.currentTarget.contains(e.target)&&e.target.getAttribute("id")!==K&&e.preventDefault()},eH=e=>{e.currentTarget.contains(e.target)&&(et.current.focus(),X&&ee.current&&et.current.selectionEnd-et.current.selectionStart==0&&et.current.select(),ee.current=!1)},eU=e=>{S||""!==ed&&ev||eq(e)},eG=C&&ed.length>0;eG=eG||(L?ec.length>0:null!==ec);let eX=e_;return R&&(eX=e_.reduce((e,t,r)=>{let n=R(t);return e.length>0&&e[e.length-1].group===n?e[e.length-1].options.push(t):e.push({key:r,index:r,group:n,options:[t]}),e},[])),S&&eh&&eL(),{getRootProps:(e={})=>({...e,onKeyDown:t=>{if(e.onKeyDown&&e.onKeyDown(t),!t.defaultMuiPrevented&&(-1===eo||["ArrowLeft","ArrowRight"].includes(t.key)||(ea(-1),ek(-1)),229!==t.which))switch(t.key){case"Home":eA&&I&&(t.preventDefault(),eO({diff:"start",direction:"next",reason:"keyboard",event:t}));break;case"End":eA&&I&&(t.preventDefault(),eO({diff:"end",direction:"previous",reason:"keyboard",event:t}));break;case"PageUp":t.preventDefault(),eO({diff:-5,direction:"previous",reason:"keyboard",event:t}),eE(t);break;case"PageDown":t.preventDefault(),eO({diff:5,direction:"next",reason:"keyboard",event:t}),eE(t);break;case"ArrowDown":t.preventDefault(),eO({diff:1,direction:"next",reason:"keyboard",event:t}),eE(t);break;case"ArrowUp":t.preventDefault(),eO({diff:-1,direction:"previous",reason:"keyboard",event:t}),eE(t);break;case"ArrowLeft":ej(t,"previous");break;case"ArrowRight":ej(t,"next");break;case"Enter":if(-1!==el.current&&eA){let e=e_[el.current],r=!!$&&$(e);if(t.preventDefault(),r)return;eP(t,e,"selectOption"),h&&et.current.setSelectionRange(et.current.value.length,et.current.value.length)}else C&&""!==ed&&!1===ew&&(L&&t.preventDefault(),eP(t,ed,"createOption","freeSolo"));break;case"Escape":eA?(t.preventDefault(),t.stopPropagation(),eT(t,"escape")):b&&(""!==ed||L&&ec.length>0)&&(t.preventDefault(),t.stopPropagation(),ez(t));break;case"Backspace":if(L&&!G&&""===ed&&ec.length>0){let e=-1===eo?ec.length-1:eo,r=ec.slice();r.splice(e,1),eR(t,r,"removeOption",{option:ec[e]})}break;case"Delete":if(L&&!G&&""===ed&&ec.length>0&&-1!==eo){let e=ec.slice();e.splice(eo,1),eR(t,e,"removeOption",{option:ec[eo]})}}},onMouseDown:eV,onClick:eH}),getInputLabelProps:()=>({id:`${K}-label`,htmlFor:K}),getInputProps:()=>({id:K,value:ed,onBlur:eL,onFocus:eB,onChange:eD,onMouseDown:eU,"aria-activedescendant":eA?"":null,"aria-autocomplete":h?"both":"list","aria-controls":eM?`${K}-listbox`:void 0,"aria-expanded":eM,autoComplete:"off",ref:et,autoCapitalize:"none",spellCheck:"false",role:"combobox",disabled:S}),getClearProps:()=>({tabIndex:-1,type:"button",onClick:ez}),getPopupIndicatorProps:()=>({tabIndex:-1,type:"button",onClick:eq}),getTagProps:({index:e})=>({key:e,"data-tag-index":e,tabIndex:-1,...!G&&{onDelete:t=>{let r=ec.slice();r.splice(e,1),eR(t,r,"removeOption",{option:ec[e]})}}}),getListboxProps:()=>({role:"listbox",id:`${K}-listbox`,"aria-labelledby":`${K}-label`,ref:e$,onMouseDown:e=>{e.preventDefault()}}),getOptionProps:({index:e,option:t})=>{let r=(L?ec:[ec]).some(e=>null!=e&&B(t,e)),n=!!$&&$(t);return{key:E?.(t)??J(t),tabIndex:-1,role:"option",id:`${K}-option-${e}`,onMouseMove:eF,onClick:eW,onTouchStart:eZ,"data-option-index":e,"aria-disabled":n,"aria-selected":r}},id:K,inputValue:ed,value:ec,dirty:eG,expanded:eA&&en,popupOpen:eA,focused:eh||-1!==eo,anchorEl:en,setAnchorEl:ei,focusedTag:eo,groupedOptions:eX}}},8072(e,t,r){"use strict";r.d(t,{A:()=>u});var n=r(70451),i=r(31789),o=r(70320),a=r(45827);let s={...n}.useSyncExternalStore;function l(e={}){let{themeId:t}=e;return function(e,r={}){let l=(0,a.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,o.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,o){let a=n.useCallback(()=>t,[t]),l=n.useMemo(()=>{if(o&&r)return()=>r(e).matches;if(null!==i){let{matches:t}=i(e);return()=>t}return a},[a,e,i,o,r]),[u,c]=n.useMemo(()=>{if(null===r)return[a,()=>()=>{}];let t=r(e);return[()=>t.matches,e=>(t.addEventListener("change",e),()=>{t.removeEventListener("change",e)})]},[a,r,e]);return s(c,u,l)}:function(e,t,r,o,a){let[s,l]=n.useState(()=>a&&r?r(e).matches:o?o(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})},70498(e,t,r){"use strict";r.d(t,{A:()=>n});let n=r(37605).A},91621(e,t,r){"use strict";r.r(t),r.d(t,{capitalize:()=>i.A,requirePropFactory:()=>f,unstable_useId:()=>g.A,debounce:()=>s.A,setRef:()=>h,unstable_useEnhancedEffect:()=>m.A,useEventCallback:()=>b.A,unsupportedProp:()=>v,ownerWindow:()=>d.A,deprecatedPropType:()=>l,mergeSlotProps:()=>w.A,isMuiElement:()=>u.A,useControlled:()=>y.A,ownerDocument:()=>p.A,createChainedFunction:()=>o.A,unstable_memoTheme:()=>c.A,unstable_ClassNameGenerator:()=>A,useForkRef:()=>x.A,createSvgIcon:()=>a.A});var n=r(71027),i=r(24726),o=r(70498),a=r(22402),s=r(55403);let l=function(e,t){return()=>null};var u=r(6835),c=r(23434),p=r(1092),d=r(63025);let f=function(e,t){return()=>null},h=r(71849).A;var m=r(54382),g=r(63392);let v=function(e,t,r,n,i){return null};var y=r(2203),b=r(32398),x=r(29424),w=r(64606);let A={configure:e=>{n.A.configure(e)}}},63392(e,t,r){"use strict";r.d(t,{A:()=>n});let n=r(54553).A},41953(e,t,r){"use strict";r.d(t,{A:()=>i});var n=r(70451);function i(e){return n.Children.toArray(e).filter(e=>n.isValidElement(e))}},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")},42524(e,t,r){"use strict";var n;t.default=void 0,t.default=(0,((n=r(1448))&&n.__esModule?n:{default:n}).default)("M19,13H5V11H19V13Z","Minus")},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")},1448(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n=r(91621),i=r(62540);t.default=function(e,t){return(0,n.createSvgIcon)((0,i.jsx)("path",{d:e}),t)}},20009(e,t,r){"use strict";r.d(t,{A:()=>F});var n,i,o,a,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(a)return o;a=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 o={unformat:function(r,n){let i,o=m(),a=o.currentDelimiters(),s=o.currentCurrency().symbol,l=o.currentOrdinal(),u=o.getZeroFormat(),c=o.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],o=+r[2];return!isNaN(n)&&!isNaN(i)&&!isNaN(o)}(r,a)){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="",o,a,s){if(""!==r)return r===a?0:function r(n,i,o,a,s,l,u){if(!isNaN(+n))return+n;let c="",p=n.replace(/(^[^(]*)\((.*)\)([^)]*$)/,"$1$2$3");if(p!==n)return -1*r(p,i,o,a,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,o,a,s,l)*u.factor}if((c=n.replace("%",""))!==n)return r(c,i,o,a,s,l)/100;let d=parseFloat(n);if(isNaN(d))return;let f=a(d);if(f&&"."!==f&&(c=n.replace(RegExp(`${t(f)}$`),""))!==n)return r(c,i,o,a,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,o,a,s,l)*e}}}(r.replace(i,"").replace(RegExp(`([0-9])${t(n.thousands)}([0-9])`,"g"),"$1$2").replace(n.decimal,"."),n,i,o,a,s)}(r,a,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 o(e,t,n,i=!1){let a=Object.keys(e).map(i=>{if(!t[i])return console.error(`${n} Invalid key: ${i}`),!1;let a=e[i],s=t[i];if("string"==typeof s&&(s={type:s}),"format"===s.type){if(!o(a,r,`[Validate ${i}]`,!0))return!1}else if(typeof a!==s.type)return console.error(`${n} ${i} type mismatched: "${s.type}" expected, "${typeof a}" provided`),!1;if(s.restrictions&&s.restrictions.length){let t=s.restrictions.length;for(let r=0;r<t;r++){let{restriction:t,message:o}=s.restrictions[r];if(!t(a,e))return console.error(`${n} ${i} invalid value: ${o}`),!1}}return s.restriction&&!s.restriction(a,e)?(console.error(`${n} ${i} invalid value: ${s.message}`),!1):s.validValues&&-1===s.validValues.indexOf(a)?(console.error(`${n} ${i} invalid value: must be among ${JSON.stringify(s.validValues)}, "${a}" provided`),!1):(!s.children||!!o(a,s.children,`[Validate ${i}]`))&&!0});return i||a.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})),a.reduce((e,t)=>e&&t,!0)}function a(e){return o(e,r,"[Validate format]")}return s={validate:function(e,t){let r=i(e),n=a(t);return r&&n},validateFormat:a,validateInput:i,validateLanguage:function(e){return o(e,n,"[Validate language]")}}}var h=function(e,t={}){var r,n,i,o,a,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!==(o=e).indexOf("K")?t.forceAverage="thousand":-1!==o.indexOf("M")?t.forceAverage="million":-1!==o.indexOf("B")?t.forceAverage="billion":-1!==o.indexOf("T")&&(t.forceAverage="trillion");let f=e.split(".")[1];if(f){let e=f.match(/0+/);e&&(t.mantissa=e[0].length)}return(a=e).match(/\[\.]/)?t.optionalMantissa=!0:a.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(),o={},a={},s=null,l={};function p(){return a[e]}return o.languages=()=>Object.assign({},a),o.currentLanguage=()=>e,o.currentBytes=()=>p().bytes||{},o.currentCurrency=()=>p().currency,o.currentAbbreviations=()=>p().abbreviations,o.currentDelimiters=()=>p().delimiters,o.currentOrdinal=()=>p().ordinal,o.currentDefaults=()=>Object.assign({},p().defaults,l),o.currentOrdinalDefaultFormat=()=>Object.assign({},o.currentDefaults(),p().ordinalFormat),o.currentByteDefaultFormat=()=>Object.assign({},o.currentDefaults(),p().byteFormat),o.currentPercentageDefaultFormat=()=>Object.assign({},o.currentDefaults(),p().percentageFormat),o.currentCurrencyDefaultFormat=()=>Object.assign({},o.currentDefaults(),p().currencyFormat),o.currentTimeDefaultFormat=()=>Object.assign({},o.currentDefaults(),p().timeFormat),o.setDefaults=e=>{e=h(e),r.validateFormat(e)&&(l=e)},o.getZeroFormat=()=>s,o.setZeroFormat=e=>s="string"==typeof e?e:null,o.hasZeroFormat=()=>null!==s,o.languageData=e=>{if(e){if(a[e])return a[e];throw Error(`Unknown tag "${e}"`)}return p()},o.registerLanguage=(t,n=!1)=>{if(!r.validateLanguage(t))throw Error("Invalid language data");a[t.languageTag]=t,n&&(e=t.languageTag)},o.setLanguage=(r,n=t.languageTag)=>{if(!a[r]){let t=r.split("-")[0],i=Object.keys(a).find(e=>e.split("-")[0]===t);return a[i]?void(e=i):void(e=n)}e=r},o.registerLanguage(t),e=t.languageTag,u=o}var g={exports:{}};(function(e){var t,r=/^-?(?:\d+(?:\.\d*)?|\.\d+)(?:e[+-]?\d+)?$/i,n=Math.ceil,i=Math.floor,o="[BigNumber Error] ",a=o+"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,o=e[0]+"";n<i;){for(r=14-(t=e[n++]+"").length;r--;t="0"+t);o+=t}for(i=o.length;48===o.charCodeAt(--i););return o.slice(0,i+1||1)}function c(e,t){var r,n,i=e.c,o=t.c,a=e.s,s=t.s,l=e.e,u=t.e;if(!a||!s)return null;if(r=i&&!i[0],n=o&&!o[0],r||n)return r?n?0:-s:a;if(a!=s)return a;if(r=a<0,n=l==u,!i||!o)return n?0:!i^r?1:-1;if(!n)return l>u^r?1:-1;for(a=0,s=(l=i.length)<(u=o.length)?l:u;a<s;a++)if(i[a]!=o[a])return i[a]>o[a]^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(o+(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,x,w,A,_,S=B.prototype={constructor:B,toString:null,valueOf:null},M=new B(1),k=20,N=4,O=-7,C=21,$=-1e7,E=1e7,T=!1,R=1,I=0,P={prefix:"",groupSize:3,secondaryGroupSize:0,groupSeparator:",",decimalSeparator:".",fractionGroupSize:0,fractionGroupSeparator:"\xa0",suffix:""},j="0123456789abcdefghijklmnopqrstuvwxyz",z=!0;function B(e,t){var n,o,s,l,u,c,d,f,h=this;if(!(h instanceof B))return new B(e,t);if(null==t){if(e&&!0===e._isBigNumber){h.s=e.s,!e.c||e.e>E?h.c=h.e=null:e.e<$?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>E?h.c=h.e=null:(h.e=l,h.c=[e]);return}f=String(e)}else{if(!r.test(f=String(e)))return _(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,j.length,"Base"),10==t&&z)return Z(h=new B(e),k+h.e+1,N);if(f=String(e),c="number"==typeof e){if(0*e!=0)return _(h,f,c,t);if(h.s=1/e<0?(f=f.slice(1),-1):1,B.DEBUG&&f.replace(/^0\.0*|\./,"").length>15)throw Error(a+e)}else h.s=45===f.charCodeAt(0)?(f=f.slice(1),-1):1;for(n=j.slice(0,t),l=u=0,d=f.length;u<d;u++)if(0>n.indexOf(o=f.charAt(u))){if("."==o){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 _(h,String(e),c,t)}c=!1,(l=(f=A(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&&B.DEBUG&&d>15&&(e>0x1fffffffffffff||e!==i(e)))throw Error(a+h.s*e);if((l=l-u-1)>E)h.c=h.e=null;else if(l<$)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 L(e,t,r,n){var i,o,a,s,l;if(null==r?r=N:p(r,0,8),!e.c)return e.toString();if(i=e.c[0],a=e.e,null==t)l=u(e.c),l=1==n||2==n&&(a<=O||a>=C)?f(l,a):h(l,a,"0");else if(o=(e=Z(new B(e),t,r)).e,s=(l=u(e.c)).length,1==n||2==n&&(t<=o||o<=O)){for(;s<t;l+="0",s++);l=f(l,o)}else if(t-=a,l=h(l,o,"0"),o+1>s){if(--t>0)for(l+=".";t--;l+="0");}else if((t+=o-s)>0)for(o+1==s&&(l+=".");t--;l+="0");return e.s<0&&i?"-"+l:l}function D(e,t){for(var r,n,i=1,o=new B(e[0]);i<e.length;i++)(n=new B(e[i])).s&&(r=c(o,n))!==t&&(0!==r||o.s!==t)||(o=n);return o}function F(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)>E?e.c=e.e=null:r<$?e.c=[e.e=0]:(e.e=r,e.c=t),e}function Z(e,t,r,o){var a,l,u,c,p,d,f,h=e.c;if(h){e:{for(a=1,c=h[0];c>=10;c/=10,a++);if((l=t-a)<0)l+=14,u=t,f=i((p=h[d=0])/s[a-u-1]%10);else if((d=n((l+1)/14))>=h.length)if(o){for(;h.length<=d;h.push(0));p=f=0,a=1,l%=14,u=l-14+1}else break e;else{for(a=1,p=c=h[d];c>=10;c/=10,a++);l%=14,f=(u=l-14+a)<0?0:i(p/s[a-u-1]%10)}if(o=o||t<0||null!=h[d+1]||(u<0?p:p%s[a-u-1]),o=r<4?(f||o)&&(0==r||r==(e.s<0?3:2)):f>5||5==f&&(4==r||o||6==r&&(l>0?u>0?p/s[a-u]:0:h[d-1])%10&1||r==(e.s<0?8:7)),t<1||!h[0])return h.length=0,o?(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[a-u]%s[u])*c:0),o)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>E?e.c=e.e=null:e.e<$&&(e.c=[e.e=0])}return e}function W(e){var t,r=e.e;return null===r?e.toString():(t=u(e.c),t=r<=O||r>=C?f(t,r):h(t,r,"0"),e.s<0?"-"+t:t)}return B.clone=e,B.ROUND_UP=0,B.ROUND_DOWN=1,B.ROUND_CEIL=2,B.ROUND_FLOOR=3,B.ROUND_HALF_UP=4,B.ROUND_HALF_DOWN=5,B.ROUND_HALF_EVEN=6,B.ROUND_HALF_CEIL=7,B.ROUND_HALF_FLOOR=8,B.EUCLID=9,B.config=B.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),k=r),e.hasOwnProperty(t="ROUNDING_MODE")&&(p(r=e[t],0,8,t),N=r),e.hasOwnProperty(t="EXPONENTIAL_AT")&&((r=e[t])&&r.pop?(p(r[0],-1e9,0,t),p(r[1],0,1e9,t),O=r[0],C=r[1]):(p(r,-1e9,1e9,t),O=-(C=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),$=r[0],E=r[1];else if(p(r,-1e9,1e9,t),r)$=-(E=r<0?-r:r);else throw Error(o+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))T=r;else throw T=!r,Error(o+"crypto unavailable");else T=r;else throw Error(o+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]))P=r;else throw Error(o+t+" not an object: "+r);if(e.hasOwnProperty(t="ALPHABET")){if("string"!=typeof(r=e[t])||/^.?$|[+\-.\s]|(.).*\1/.test(r))throw Error(o+t+" invalid: "+r);z="0123456789"==r.slice(0,10),j=r}}else throw Error(o+"Object expected: "+e);return{DECIMAL_PLACES:k,ROUNDING_MODE:N,EXPONENTIAL_AT:[O,C],RANGE:[$,E],CRYPTO:T,MODULO_MODE:R,POW_PRECISION:I,FORMAT:P,ALPHABET:j}},B.isBigNumber=function(e){if(!e||!0!==e._isBigNumber)return!1;if(!B.DEBUG)return!0;var t,r,n=e.c,a=e.e,s=e.s;e:if("[object Array]"==({}).toString.call(n)){if((1===s||-1===s)&&a>=-1e9&&a<=1e9&&a===i(a)){if(0===n[0]){if(0===a&&1===n.length)return!0;break e}if((t=(a+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===a&&(null===s||1===s||-1===s))return!0;throw Error(o+"Invalid BigNumber: "+e)},B.maximum=B.max=function(){return D(arguments,-1)},B.minimum=B.min=function(){return D(arguments,1)},m=0x20000000000000*Math.random()&2097151?function(){return i(0x20000000000000*Math.random())}:function(){return(0x40000000*Math.random()|0)*8388608+(8388608*Math.random()|0)},B.random=function(e){var t,r,a,l,u,c=0,d=[],f=new B(M);if(null==e?e=k:p(e,0,1e9),l=n(e/14),T)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 T=!1,Error(o+"crypto unavailable");if(!T)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=[a=0];else{for(a=-1;0===d[0];d.splice(0,1),a-=14);for(c=1,u=d[0];u>=10;u/=10,c++);c<14&&(a-=14-c)}return f.e=a,f.c=d,f},B.sum=function(){for(var e=1,t=arguments,r=new B(t[0]);e<t.length;)r=r.plus(t[e++]);return r},A=function(){var e="0123456789";function t(e,t,r,n){for(var i,o,a=[0],s=0,l=e.length;s<l;){for(o=a.length;o--;a[o]*=t);for(a[0]+=n.indexOf(e.charAt(s++)),i=0;i<a.length;i++)a[i]>r-1&&(null==a[i+1]&&(a[i+1]=0),a[i+1]+=a[i]/r|0,a[i]%=r)}return a.reverse()}return function(r,n,i,o,a){var s,l,c,p,d,f,m,g,v=r.indexOf("."),y=k,b=N;for(v>=0&&(p=I,I=0,r=r.replace(".",""),f=(g=new B(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,a?(s=j,e):(s=e,j))).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=o,m=(f=w(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}}(),w=function(){function e(e,t,r){var n,i,o,a,s=0,l=e.length,u=t%1e7,c=t/1e7|0;for(e=e.slice();l--;)n=c*(o=e[l]%1e7)+(a=e[l]/1e7|0)*u,s=((i=u*o+n%1e7*1e7+s)/r|0)+(n/1e7|0)+c*a,e[l]=i%r;return s&&(e=[s].concat(e)),e}function t(e,t,r,n){var i,o;if(r!=n)o=r>n?1:-1;else for(i=o=0;i<r;i++)if(e[i]!=t[i]){o=e[i]>t[i]?1:-1;break}return o}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,o,a,s,u){var c,p,d,f,h,m,g,v,y,b,x,w,A,_,S,M,k,N=n.s==o.s?1:-1,O=n.c,C=o.c;if(!O||!O[0]||!C||!C[0])return new B(!n.s||!o.s||(O?C&&O[0]==C[0]:!C)?NaN:O&&0==O[0]||!C?0*N:N/0);for(y=(v=new B(N)).c=[],N=a+(p=n.e-o.e)+1,u||(u=1e14,p=l(n.e/14)-l(o.e/14),N=N/14|0),d=0;C[d]==(O[d]||0);d++);if(C[d]>(O[d]||0)&&p--,N<0)y.push(1),f=!0;else{for(_=O.length,M=C.length,d=0,N+=2,(h=i(u/(C[0]+1)))>1&&(C=e(C,h,u),O=e(O,h,u),M=C.length,_=O.length),A=M,x=(b=O.slice(0,M)).length;x<M;b[x++]=0);k=[0].concat(k=C.slice()),S=C[0],C[1]>=u/2&&S++;do{if(h=0,(c=t(C,b,M,x))<0){if(w=b[0],M!=x&&(w=w*u+(b[1]||0)),(h=i(w/S))>1)for(h>=u&&(h=u-1),g=(m=e(C,h,u)).length,x=b.length;1==t(m,b,g,x);)h--,r(m,M<g?k:C,g,u),g=m.length,c=1;else 0==h&&(c=h=1),g=(m=C.slice()).length;if(g<x&&(m=[0].concat(m)),r(b,m,x,u),x=b.length,-1==c)for(;1>t(C,b,M,x);)h++,r(b,M<x?k:C,x,u),x=b.length}else 0===c&&(h++,b=[0]);y[d++]=h,b[0]?b[x++]=O[A]||0:(b=[O[A]],x=1)}while((A++<_||null!=b[0])&&N--);f=null!=b[0],y[0]||y.splice(0,1)}if(1e14==u){for(d=1,N=y[0];N>=10;N/=10,d++);Z(v,a+(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)$/,x=/^\s*\+(?=[\w.])|^\s+|\s+$/g,_=function(e,t,r,n){var i,a=r?t:t.replace(x,"");if(b.test(a))e.s=isNaN(a)?null:a<0?-1:1;else{if(!r&&(a=a.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,a=a.replace(v,"$1").replace(y,"0.$1")),t!=a))return new B(a,i);if(B.DEBUG)throw Error(o+"Not a"+(n?" base "+n:"")+" number: "+t);e.s=null}e.c=e.e=null},S.absoluteValue=S.abs=function(){var e=new B(this);return e.s<0&&(e.s=1),e},S.comparedTo=function(e,t){return c(this,new B(e,t))},S.decimalPlaces=S.dp=function(e,t){var r,n,i;if(null!=e)return p(e,0,1e9),null==t?t=N:p(t,0,8),Z(new B(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},S.dividedBy=S.div=function(e,t){return w(this,new B(e,t),k,N)},S.dividedToIntegerBy=S.idiv=function(e,t){return w(this,new B(e,t),0,1)},S.exponentiatedBy=S.pow=function(e,t){var r,a,s,l,u,c,p,f,h,m=this;if((e=new B(e)).c&&!e.isInteger())throw Error(o+"Exponent not an integer: "+W(e));if(null!=t&&(t=new B(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 B(Math.pow(+W(m),c?e.s*(2-d(e)):+W(e))),t?h.mod(t):h;if(p=e.s<0,t){if(t.c?!t.c[0]:!t.s)return new B(NaN);(a=!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 B(p?1/l:l);I&&(l=n(I/14+2))}for(c?(r=new B(.5),p&&(e.s=1),f=d(e)):f=(s=Math.abs(+W(e)))%2,h=new B(M);;){if(f){if(!(h=h.times(m)).c)break;l?h.c.length>l&&(h.c.length=l):a&&(h=h.mod(t))}if(s){if(0===(s=i(s/2)))break;f=s%2}else if(Z(e=e.times(r),e.e+1,1),e.e>14)f=d(e);else{if(0==(s=+W(e)))break;f=s%2}m=m.times(m),l?m.c&&m.c.length>l&&(m.c.length=l):a&&(m=m.mod(t))}return a?h:(p&&(h=M.div(h)),t?h.mod(t):l?Z(h,I,N,u):h)},S.integerValue=function(e){var t=new B(this);return null==e?e=N:p(e,0,8),Z(t,t.e+1,e)},S.isEqualTo=S.eq=function(e,t){return 0===c(this,new B(e,t))},S.isFinite=function(){return!!this.c},S.isGreaterThan=S.gt=function(e,t){return c(this,new B(e,t))>0},S.isGreaterThanOrEqualTo=S.gte=function(e,t){return 1===(t=c(this,new B(e,t)))||0===t},S.isInteger=function(){return!!this.c&&l(this.e/14)>this.c.length-2},S.isLessThan=S.lt=function(e,t){return 0>c(this,new B(e,t))},S.isLessThanOrEqualTo=S.lte=function(e,t){return -1===(t=c(this,new B(e,t)))||0===t},S.isNaN=function(){return!this.s},S.isNegative=function(){return this.s<0},S.isPositive=function(){return this.s>0},S.isZero=function(){return!!this.c&&0==this.c[0]},S.minus=function(e,t){var r,n,i,o,a=this.s;if(t=(e=new B(e,t)).s,!a||!t)return new B(NaN);if(a!=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 B(p?this:NaN);if(!c[0]||!p[0])return p[0]?(e.s=-t,e):new B(c[0]?this:3==N?-0:0)}if(s=l(s),u=l(u),c=c.slice(),a=s-u){for((o=a<0)?(a=-a,i=c):(u=s,i=p),i.reverse(),t=a;t--;i.push(0));i.reverse()}else for(n=(o=(a=c.length)<(t=p.length))?a:t,a=t=0;t<n;t++)if(c[t]!=p[t]){o=c[t]<p[t];break}if(o&&(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>a;){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]?F(e,c,u):(e.s=3==N?-1:1,e.c=[e.e=0],e)},S.modulo=S.mod=function(e,t){var r,n;return(e=new B(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=w(this,e,0,3),e.s=n,r.s*=n):r=w(this,e,0,R),(e=this.minus(r.times(e))).c[0]||1!=R||(e.s=this.s),e):new B(this):new B(NaN)},S.multipliedBy=S.times=function(e,t){var r,n,i,o,a,s,u,c,p,d,f,h,m,g=this.c,v=(e=new B(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,o=i+(a=u);o>i;)s=h*(c=g[--a]%1e7)+(p=g[a]/1e7|0)*f,r=((c=f*c+s%1e7*1e7+m[o]+r)/1e14|0)+(s/1e7|0)+h*p,m[o--]=c%1e14;m[o]=r}return r?++n:m.splice(0,1),F(e,m,n)},S.negated=function(){var e=new B(this);return e.s=-e.s||null,e},S.plus=function(e,t){var r,n=this.s;if(t=(e=new B(e,t)).s,!n||!t)return new B(NaN);if(n!=t)return e.s=-t,this.minus(e);var i=this.e/14,o=e.e/14,a=this.c,s=e.c;if(!i||!o){if(!a||!s)return new B(n/0);if(!a[0]||!s[0])return s[0]?e:new B(a[0]?this:0*n)}if(i=l(i),o=l(o),a=a.slice(),n=i-o){for(n>0?(o=i,r=s):(n=-n,r=a),r.reverse();n--;r.push(0));r.reverse()}for((n=a.length)-(t=s.length)<0&&(r=s,s=a,a=r,t=n),n=0;t;)n=(a[--t]=a[t]+s[t]+n)/1e14|0,a[t]=1e14===a[t]?0:a[t]%1e14;return n&&(a=[n].concat(a),++o),F(e,a,o)},S.precision=S.sd=function(e,t){var r,n,i;if(null!=e&&!!e!==e)return p(e,1,1e9),null==t?t=N:p(t,0,8),Z(new B(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},S.shiftedBy=function(e){return p(e,-0x1fffffffffffff,0x1fffffffffffff),this.times("1e"+e)},S.squareRoot=S.sqrt=function(){var e,t,r,n,i,o=this.c,a=this.s,s=this.e,c=k+4,p=new B("0.5");if(1!==a||!o||!o[0])return new B(!a||a<0&&(!o||o[0])?NaN:o?this:1/0);if(0==(a=Math.sqrt(+W(this)))||a==1/0?(((t=u(o)).length+s)%2==0&&(t+="0"),a=Math.sqrt(+t),s=l((s+1)/2)-(s<0||s%2),r=new B(t=a==1/0?"5e"+s:(t=a.toExponential()).slice(0,t.indexOf("e")+1)+s)):r=new B(a+""),r.c[0]){for((a=(s=r.e)+c)<3&&(a=0);;)if(i=r,r=p.times(i.plus(w(this,i,c,1))),u(i.c).slice(0,a)===(t=u(r.c)).slice(0,a)){if(r.e<s&&--a,"9999"!=(t=t.slice(a-3,a+1))&&(n||"4999"!=t)){+t&&(+t.slice(1)||"5"!=t.charAt(0))||(Z(r,r.e+k+2,1),e=!r.times(r).eq(this));break}if(!n&&(Z(i,i.e+k+2,0),i.times(i).eq(this))){r=i;break}c+=4,a+=4,n=1}}return Z(r,r.e+k+1,N,e)},S.toExponential=function(e,t){return null!=e&&(p(e,0,1e9),e++),L(this,e,t,1)},S.toFixed=function(e,t){return null!=e&&(p(e,0,1e9),e=e+this.e+1),L(this,e,t)},S.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=P;else if("object"!=typeof r)throw Error(o+"Argument not an object: "+r);if(n=this.toFixed(e,t),this.c){var i,a=n.split("."),s=+r.groupSize,l=+r.secondaryGroupSize,u=r.groupSeparator||"",c=a[0],p=a[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||"")},S.toFraction=function(e){var t,r,n,i,a,l,c,p,d,f,h,m,g=this.c;if(null!=e&&(!(c=new B(e)).isInteger()&&(c.c||1!==c.s)||c.lt(M)))throw Error(o+"Argument "+(c.isInteger()?"out of range: ":"not an integer: ")+W(c));if(!g)return new B(this);for(t=new B(M),d=r=new B(M),n=p=new B(M),m=u(g),a=t.e=m.length-this.e-1,t.c[0]=s[(l=a%14)<0?14+l:l],e=!e||c.comparedTo(t)>0?a>0?t:d:c,l=E,E=1/0,c=new B(m),p.c[0]=0;f=w(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=w(e.minus(r),n,0,1),p=p.plus(i.times(d)),r=r.plus(i.times(n)),p.s=d.s=this.s,a*=2,h=1>w(d,n,a,N).minus(this).abs().comparedTo(w(p,r,a,N).minus(this).abs())?[d,n]:[p,r],E=l,h},S.toNumber=function(){return+W(this)},S.toPrecision=function(e,t){return null!=e&&p(e,1,1e9),L(this,e,t,2)},S.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<=O||i>=C?f(u(r.c),i):h(u(r.c),i,"0"):10===e&&z?t=h(u((r=Z(new B(r),k+i+1,N)).c),r.e,"0"):(p(e,2,j.length,"Base"),t=A(h(u(r.c),i,"0"),10,e,n,!0)),n<0&&r.c[0]&&(t="-"+t)),t},S.valueOf=S.toJSON=function(){return W(this)},S._isBigNumber=!0,null!=t&&B.set(t),B}()).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(),x={trillion:1e12,billion:1e9,million:1e6,thousand:1e3},w={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:A,decimalSuffixes:_}=y.currentBytes(),S={scale:1024,suffixes:_,marker:"bd"},M={scale:1024,suffixes:A,marker:"b"},k={scale:1e3,suffixes:_,marker:"d"};function N(e,t,r){let n=t[0],i=Math.abs(e);if(i>=r){for(let o=1;o<t.length;++o){let a=Math.pow(r,o),s=Math.pow(r,o+1);if(i>=a&&i<s){n=t[o],e/=a;break}}n===t[0]&&(e/=Math.pow(r,t.length-1),n=t[t.length-1])}return{value:e,suffix:n}}function O(e){let t="";for(let r=0;r<e;r++)t+="0";return t}function C({instance:e,providedFormat:t,state:r=y,decimalSeparator:n,defaults:i=r.currentDefaults()}){var o,a,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 A=Object.assign({},w,i,t),_=A.totalLength,S=_?0:A.characteristic,M=A.optionalCharacteristic,k=A.forceAverage,N=A.lowPrecision,$=!!_||!!k||A.average,E=_?-1:$&&void 0===t.mantissa?0:A.mantissa,T=!_&&(void 0===t.optionalMantissa?-1===E:A.optionalMantissa),R=A.trimMantissa,I=A.thousandSeparated,P=A.spaceSeparated,j=A.negative,z=A.forceSign,B=A.exponential,L=A.roundingFunction,D="";if($){let e=function({value:e,forceAverage:t,lowPrecision:r=!0,abbreviations:n,spaceSeparated:i=!1,totalLength:o=0,roundingFunction:a=Math.round}){let s="",l=Math.abs(e),u=-1;if(t&&n[t]&&x[t]?(s=n[t],e/=x[t]):l>=x.trillion||r&&1===a(l/x.trillion)?(s=n.trillion,e/=x.trillion):l<x.trillion&&l>=x.billion||r&&1===a(l/x.billion)?(s=n.billion,e/=x.billion):l<x.billion&&l>=x.million||r&&1===a(l/x.million)?(s=n.million,e/=x.million):(l<x.million&&l>=x.thousand||r&&1===a(l/x.thousand))&&(s=n.thousand,e/=x.thousand),s&&(s=(i?" ":"")+s),o){let t=e<0,r=e.toString().split(".")[0];u=Math.max(o-(t?r.length-1:r.length),0)}return{value:e,abbreviation:s,mantissaPrecision:u}}({value:b,forceAverage:k,lowPrecision:N,abbreviations:r.currentAbbreviations(),spaceSeparated:P,roundingFunction:L,totalLength:_});b=e.value,D+=e.abbreviation,_&&(E=e.mantissaPrecision)}if(B){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:S});b=e.value,D=e.abbreviation+D}let F=function(e,t,r,n,i,o){if(-1===n)return e;let a=function(e,t,r=Math.round){return -1!==e.toString().indexOf("e")?function(e,t){let r=e.toString(),[n,i]=r.split("e"),[o,a=""]=n.split(".");if(+i>0)r=o+a+O(i-a.length);else{let e=".";e=0>+o?`-0${e}`:`0${e}`;let n=(O(-i-1)+Math.abs(o)+a).substr(0,t);n.length<t&&(n+=O(t-n.length)),r=e+n}return+i>0&&t>0&&(r+=`.${O(t)}`),r}(e,t):new v(r(+`${e}e+${t}`)/Math.pow(10,t)).toFixed(t)}(t,n,o),[s,l=""]=a.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)}`:a.toString()}(b.toString(),b,T,E,R,L);return o=F=function(e,t,r,n){let i=e,[o,a]=i.toString().split(".");if(o.match(/^-?0$/)&&r)return a?`${o.replace("0","")}.${a}`:o.replace("0","");let s=t<0&&0===o.indexOf("-");if(s&&(o=o.slice(1),i=i.slice(1)),o.length<n){let e=n-o.length;for(let t=0;t<e;t++)i=`0${i}`}return s&&(i=`-${i}`),i.toString()}(F,b,M,S),a=b,s=n,p=(c=r.currentDelimiters()).thousands,s=s||c.decimal,d=c.thousandsSize||3,h=(f=o.toString()).split(".")[0],m=f.split(".")[1],g=a<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}`)),F=f=m?h+s+m:h,($||B)&&(F+=D),(z||b<0)&&(l=F,F=0===(u=b)?l:0==+l?l.replace("-",""):u>0?`+${l}`:"sign"===j?l:`(${l.replace("-","")})`),F}function $(e,t){if(!e)return t;let r=Object.keys(e);return 1===r.length&&"output"===r[0]?t:e}function E(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 T=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&&D.registerLanguage(t)})}},P=d(),j={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||"",o=function(e,t,r){var n,i,o;switch(t.output){case"currency":let a,s,l,u,c,p,d,f,h,m;return n=t=$(t,y.currentCurrencyDefaultFormat()),a=y.currentCurrency(),l=Object.assign({},w,s=Object.assign({},n)),c="",p=!!l.totalLength||!!l.forceAverage||l.average,d=s.currencyPosition||a.position,f=s.currencySymbol||a.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=C({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=$(t,y.currentPercentageDefaultFormat()),g=i.prefixSymbol,v=C({instance:r(100*e._value),providedFormat:i,state:y}),b=Object.assign({},w,i),g?`%${b.spaceSeparated?" ":""}${v}`:`${v}${b.spaceSeparated?" ":""}%`;case"byte":return function(e,t,r,n){let i=t.base||"binary",o=Object.assign({},w,t),{binarySuffixes:a,decimalSuffixes:s}=r.currentBytes(),l={general:{scale:1024,suffixes:s||_,marker:"bd"},binary:{scale:1024,suffixes:a||A,marker:"b"},decimal:{scale:1e3,suffixes:s||_,marker:"d"}}[i],{value:u,suffix:c}=N(e._value,l.suffixes,l.scale),p=C({instance:n(u),providedFormat:t,state:r,defaults:r.currentByteDefaultFormat()});return`${p}${o.spaceSeparated?" ":""}${c}`}(e,t=$(t,y.currentByteDefaultFormat()),y,r);case"time":let x,S,M;return t=$(t,y.currentTimeDefaultFormat()),x=Math.floor(e._value/60/60),S=Math.floor((e._value-60*x*60)/60),M=Math.round(e._value-60*x*60-60*S),`${x}:${S<10?"0":""}${S}:${M<10?"0":""}${M}`;case"ordinal":let k,O,E,T;return o=t=$(t,y.currentOrdinalDefaultFormat()),k=y.currentOrdinal(),O=Object.assign({},w,o),E=C({instance:e,providedFormat:o,state:y}),T=k(e._value),`${E}${O.spaceSeparated?" ":""}${T}`;default:return C({instance:e,providedFormat:t,numbro:r})}}(e,t,r);return(o=n+o)+i})(...e,D),getByteUnit:(...e)=>(function(e){return N(e._value,S.suffixes,S.scale).suffix})(...e),getBinaryByteUnit:(...e)=>(function(e){return N(e._value,M.suffixes,M.scale).suffix})(...e),getDecimalByteUnit:(...e)=>(function(e){return N(e._value,k.suffixes,k.scale).suffix})(...e),formatOrDefault:$},z={add:(e,t)=>{let r,n;return r=new v(e._value),n=t,D.isNumbro(t)&&(n=t._value),n=new v(n),e._value=r.plus(n).toNumber(),e},subtract:(e,t)=>E(e,t,D),multiply:(e,t)=>{let r,n;return r=new v(e._value),n=t,D.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,D.isNumbro(t)&&(n=t._value),n=new v(n),e._value=r.dividedBy(n).toNumber(),e},set:(e,t)=>{let r;return r=t,D.isNumbro(t)&&(r=t._value),e._value=r,e},difference:(e,t)=>{let r;return E(r=D(e._value),t,D),Math.abs(r._value)},BigNumber:v};class B{constructor(e){this._value=e}clone(){return D(this._value)}format(e={}){return j.format(this,e)}formatCurrency(e){return"string"==typeof e&&(e=h(e)),(e=j.formatOrDefault(e,T.currentCurrencyDefaultFormat())).output="currency",j.format(this,e)}formatTime(e={}){return e.output="time",j.format(this,e)}binaryByteUnits(){return j.getBinaryByteUnit(this)}decimalByteUnits(){return j.getDecimalByteUnit(this)}byteUnits(){return j.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,L(e))}value(){return this._value}valueOf(){return this._value}}function L(e){let t=e;return D.isNumbro(e)?t=e._value:"string"==typeof e?t=D.unformat(e):isNaN(e)&&(t=NaN),t}function D(e){return new B(L(e))}D.version="2.5.0",D.isNumbro=function(e){return e instanceof B},D.language=T.currentLanguage,D.registerLanguage=T.registerLanguage,D.setLanguage=T.setLanguage,D.languages=T.languages,D.languageData=T.languageData,D.zeroFormat=T.setZeroFormat,D.defaultFormat=T.currentDefaults,D.setDefaults=T.setDefaults,D.defaultCurrencyFormat=T.currentCurrencyDefaultFormat,D.validate=R.validate,D.loadLanguagesInNode=I.loadLanguagesInNode,D.unformat=P.unformat,D.BigNumber=z.BigNumber;var F=D&&D.__esModule&&Object.prototype.hasOwnProperty.call(D,"default")?D.default:D},40362(e,t,r){"use strict";var n=r(56441);function i(){}function o(){}o.resetWarningCache=i,e.exports=function(){function e(e,t,r,i,o,a){if(a!==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:o,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 o=0,a=n.length;o<a;o++)n[o].fn!==t&&n[o].fn._!==t&&i.push(n[o]);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}}],o={name:"any",test:e},a=[],s=[],l={types:i,conversions:s,ignore:a};function u(e){var t=j(l.types,function(t){return t.name===e});if(t)return t;if("any"===e)return o;var r=j(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===o?999:l.types.indexOf(e)}function p(e){var t=j(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 x(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 w(e,t,r){var n,i,o,a=e||"unnamed",s=r;for(o=0;o<t.length;o++){var l=s.filter(function(e){var r=m(g(e,o));return(o<e.params.length||f(e.params))&&r(t[o])});if(0===l.length){if((i=x(s,o)).length>0){var u=p(t[o]);return(n=TypeError("Unexpected type of argument in function "+a+" (expected: "+i.join(" or ")+", actual: "+u+", index: "+o+")")).data={category:"wrongType",fn:a,index:o,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 "+a+" (expected: "+(i=x(s,o)).join(" or ")+", index: "+t.length+")")).data={category:"tooFewArgs",fn:a,index:t.length,expected:i},n;var d=Math.max.apply(null,c);return t.length>d?(n=TypeError("Too many arguments in function "+a+" (expected: "+d+", actual: "+t.length+")")).data={category:"tooManyArgs",fn:a,index:t.length,expectedLength:d}:(n=TypeError('Arguments of type "'+t.join(", ")+'" do not match any of the defined signatures of function '+a+".")).data={category:"mismatch",actual:t.map(p)},n}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].typeIndex));return t}function _(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 S(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=A(e)-A(t))?r:_(e)-_(t)}(e.params[r],t.params[r])))return n;return e.params.length-t.params.length}function M(e){var t,r,n,i,o=[],a=[];switch(e.types.forEach(function(e){e.conversion&&(o.push(u(e.conversion.from).test),a.push(e.conversion.convert))}),a.length){case 0:return function(e){return e};case 1:return t=o[0],n=a[0],function(e){return t(e)?n(e):e};case 2:return t=o[0],r=o[1],n=a[0],i=a[1],function(e){return t(e)?n(e):r(e)?i(e):e};default:return function(e){for(var t=0;t<a.length;t++)if(o[t](e))return a[t](e);return e}}}function k(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 o,a=r[n],s=t?a.types.filter(b):a.types;if(a.restParam){var l=s.filter(b);o=l.length<s.length?[l,s]:[s]}else o=s.map(function(e){return[e]});return z(o,function(t){return e(r,n+1,i.concat([t]))})}(e,0,[])}function N(e,n){if(0===Object.keys(n).length)throw SyntaxError("No signatures provided");var i,o=[];Object.keys(n).map(function(e){var t,r,i;return t=n[e],r=l.conversions,i=[],(""!==e.trim()&&(i=e.split(",").map($).map(function(e,t,n){var i,o,a,s,l,p,d,f,h=(i=r,o=l=((s=0===e.indexOf("..."))?e.length>3?e.slice(3):"any":e).split("|").map($).filter(E).filter(C),a={},i.forEach(function(e){-1!==o.indexOf(e.from)||-1===o.indexOf(e.to)||a[e.from]||(a[e.from]=e)}),p=Object.keys(a).map(function(e){return a[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(T).forEach(function(e){var t=j(o,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,o=t.params.length,a=f(e.params),s=f(t.params);return a?s?i===o:o>=i:s?i>=o:i===o}(t,e)});if(t)throw TypeError('Conflicting signatures "'+d(t.params)+'" and "'+d(e.params)+'".');o.push(e)});var a=z(o,function(e){return(e?k(e.params,!1):[]).map(function(t){return{params:t,fn:e.fn}})}).filter(T);a.sort(S);var s=a[0]&&a[0].params.length<=2&&!f(a[0].params),p=a[1]&&a[1].params.length<=2&&!f(a[1].params),g=a[2]&&a[2].params.length<=2&&!f(a[2].params),y=a[3]&&a[3].params.length<=2&&!f(a[3].params),b=a[4]&&a[4].params.length<=2&&!f(a[4].params),x=a[5]&&a[5].params.length<=2&&!f(a[5].params),w=a.map(function(e){return function(e){var t,r,n;if(f(e)){var i,o=(t=(i=e).slice(0,i.length-1).map(m)).length,a=m(I(e)),s=function(e){for(var t=o;t<e.length;t++)if(!a(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>=o+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)}),A=s?m(a[0].params[0]):t,_=p?m(a[1].params[0]):t,N=g?m(a[2].params[0]):t,O=y?m(a[3].params[0]):t,B=b?m(a[4].params[0]):t,L=x?m(a[5].params[0]):t,D=s?m(a[0].params[1]):t,F=p?m(a[1].params[1]):t,Z=g?m(a[2].params[1]):t,W=y?m(a[3].params[1]):t,q=b?m(a[4].params[1]):t,V=x?m(a[5].params[1]):t,H=a.map(function(e){return function(e,t){var r=t;if(e.some(h)){var n=f(e),i=e.map(M);r=function(){for(var e=[],r=n?arguments.length-1:arguments.length,o=0;o<r;o++)e[o]=i[o](arguments[o]);return n&&(e[r]=arguments[r].map(i[r])),t.apply(this,e)}}var o=r;if(f(e)){var a=e.length-1;o=function(){return r.apply(this,P(arguments,0,a).concat([P(arguments,a)]))}}return o}(e.params,e.fn)}),U=s?H[0]:r,G=p?H[1]:r,X=g?H[2]:r,Y=y?H[3]:r,K=b?H[4]:r,J=x?H[5]:r,Q=s?a[0].params.length:-1,ee=p?a[1].params.length:-1,et=g?a[2].params.length:-1,er=y?a[3].params.length:-1,en=b?a[4].params.length:-1,ei=x?a[5].params.length:-1,eo=6*!!(s&&p&&g&&y&&b&&x),ea=a.length,es=function(){for(var t=eo;t<ea;t++)if(w[t](arguments))return H[t].apply(this,arguments);return l.onMismatch(e,arguments,a)},el=function e(t,r){return arguments.length===Q&&A(t)&&D(r)?U.apply(e,arguments):arguments.length===ee&&_(t)&&F(r)?G.apply(e,arguments):arguments.length===et&&N(t)&&Z(r)?X.apply(e,arguments):arguments.length===er&&O(t)&&W(r)?Y.apply(e,arguments):arguments.length===en&&B(t)&&q(r)?K.apply(e,arguments):arguments.length===ei&&L(t)&&V(r)?J.apply(e,arguments):es.apply(e,arguments)};try{Object.defineProperty(el,"name",{value:e})}catch(e){}return i={},a.forEach(function(e){e.params.some(h)||k(e.params,!0).forEach(function(t){i[d(t)]=e.fn})}),el.signatures=i,el}function O(e,t,r){throw w(e,t,r)}function C(e){return -1===l.ignore.indexOf(e)}function $(e){return e.trim()}function E(e){return!!e}function T(e){return null!==e}function R(e){return 0===e.types.length}function I(e){return e[e.length-1]}function P(e,t,r){return Array.prototype.slice.call(e,t,r)}function j(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 B(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 L(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 o=e[i];if("object"==typeof o.signatures)for(var a in o.signatures)o.signatures.hasOwnProperty(a)&&(n(a,o.signatures[a]),r[a]=o.signatures[a]);else if("string"==typeof o.signature)n(o.signature,o),r[o.signature]=o;else throw(t=TypeError("Function is no typed-function (index: "+i+")")).data={index:i},t}return r}return(l=N("typed",{"string, Object":N,Object:function(e){var t=[];for(var r in e)e.hasOwnProperty(r)&&t.push(e[r]);return N(B(t),e)},"...Function":function(e){return N(B(e),L(e))},"string, ...Function":function(e,t){return N(e,L(t))}})).create=n,l.types=i,l.conversions=s,l.ignore=a,l.onMismatch=O,l.throwMismatchError=O,l.createError=w,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(","),o=e.signatures[i];if(o)return o;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),o=r(23420),a=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:a.Et,isComplex:a.Zd,isBigNumber:a.C4,isFraction:a.fU,isUnit:a.vO,isString:a.Kg,isArray:a.cy,isMatrix:a.OA,isCollection:a.P3,isDenseMatrix:a.zR,isSparseMatrix:a.AF,isRange:a._Z,isIndex:a.nw,isBoolean:a.Lm,isResultSet:a.eW,isHelp:a.gS,isFunction:a.Tn,isDate:a.$P,isRegExp:a.gd,isObject:a.Gv,isNull:a.kZ,isUndefined:a.b0,isAccessorNode:a.AS,isArrayNode:a.gO,isAssignmentNode:a.qM,isBlockNode:a.CD,isConditionalNode:a.PO,isConstantNode:a.BA,isFunctionAssignmentNode:a.m2,isFunctionNode:a.Px,isIndexNode:a.$I,isNode:a.Ll,isObjectNode:a.GJ,isOperatorNode:a.$$,isParenthesisNode:a.tv,isRangeNode:a.Ye,isSymbolNode:a.li,isChain:a.o_}).on=(v=new o).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 o=(0,i.s8)(e,i.o8);return t("config",o,n,(0,i.s8)(r,i.o8)),o}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 x={},w=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 o(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 o in r)(0,i.mQ)(r,o)&&e(t,r[o],o);else if((0,s.T$)(r)||void 0!==n){var a=(0,s.T$)(r)?p(r)?r.fn+".transform":r.fn:n;if((0,i.mQ)(t,a)&&t[a]!==r&&!h.silent)throw Error('Cannot import "'+a+'" twice');t[a]=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,a){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||a.override)return i;if(o(v)&&o(i))return e(v,i);if(a.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,a.vO)(y)||(0,a.Zd)(y)||(0,a.C4)(y)||(0,a.fU)(y)||(0,a.OA)(y)||Array.isArray(y))!function(i,a,s){var l;if(s.wrap&&"function"==typeof a&&(a=function(e){var r=function(){for(var r=[],n=0,i=arguments.length;n<i;n++){var o=arguments[n];r[n]=o&&o.valueOf()}return e.apply(t,r)};return e.transform&&(r.transform=e.transform),r}(a)),"function"==typeof(l=a)&&"string"==typeof l.signature&&(a=e(i,{[a.signature]:a})),o(t[i])&&o(a)){a=s.override?e(i,a.signatures):e(t[i],a),t[i]=a,delete r[i],n(i,a),t.emit("import",i,function(){return a});return}if(void 0===t[i]||s.override){t[i]=a,delete r[i],n(i,a),t.emit("import",i,function(){return a});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,x);return b.import=w,b.on("config",()=>{(0,i.zu)(x).forEach(e=>{e&&e.meta&&e.meta.recreateOnConfigChange&&w(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:()=>eP});var n,i,o="0123456789abcdef",a="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,x=/^(\d+(\.\d*)?|\.\d+)(e[+-]?\d+)?$/i,w=a.length-1,A=s.length-1,_={toStringTag:h};function S(e){var t,r,n,i=e.length-1,o="",a=e[0];if(i>0){for(o+=a,t=1;t<i;t++)(r=7-(n=e[t]+"").length)&&(o+=P(r)),o+=n;(r=7-(n=(a=e[t])+"").length)&&(o+=P(r))}else if(0===a)return"0";for(;a%10==0;)a/=10;return o+a}function M(e,t,r){if(e!==~~e||e<t||e>r)throw Error(p+e)}function k(e,t,r,n){var i,o,a,s;for(o=e[0];o>=10;o/=10)--t;return--t<0?(t+=7,i=0):(i=Math.ceil((t+1)/7),t%=7),o=g(10,7-t),s=e[i]%o|0,null==n?t<3?(0==t?s=s/100|0:1==t&&(s=s/10|0),a=r<4&&99999==s||r>3&&49999==s||5e4==s||0==s):a=(r<4&&s+1==o||r>3&&s+1==o/2)&&(e[i+1]/o/100|0)==g(10,t-2)-1||(s==o/2||0==s)&&(e[i+1]/o/100|0)==0:t<4?(0==t?s=s/1e3|0:1==t?s=s/100|0:2==t&&(s=s/10|0),a=(n||r<4)&&9999==s||!n&&r>3&&4999==s):a=((n||r<4)&&s+1==o||!n&&r>3&&s+1==o/2)&&(e[i+1]/o/1e3|0)==g(10,t-3)-1,a}function N(e,t,r){for(var n,i,a=[0],s=0,l=e.length;s<l;){for(i=a.length;i--;)a[i]*=t;for(a[0]+=o.indexOf(e.charAt(s++)),n=0;n<a.length;n++)a[n]>r-1&&(void 0===a[n+1]&&(a[n+1]=0),a[n+1]+=a[n]/r|0,a[n]%=r)}return a.reverse()}_.absoluteValue=_.abs=function(){var e=new this.constructor(this);return e.s<0&&(e.s=1),C(e)},_.ceil=function(){return C(new this.constructor(this),this.e+1,2)},_.clampedTo=_.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)},_.comparedTo=_.cmp=function(e){var t,r,n,i,o=this.d,a=(e=new this.constructor(e)).d,s=this.s,l=e.s;if(!o||!a)return s&&l?s!==l?s:o===a?0:!o^s<0?1:-1:NaN;if(!o[0]||!a[0])return o[0]?s:a[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=o.length)<(i=a.length)?n:i;t<r;++t)if(o[t]!==a[t])return o[t]>a[t]^s<0?1:-1;return n===i?0:n>i^s<0?1:-1},_.cosine=_.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/q(4,r=Math.ceil(n/3))).toString():(r=16,i="2.3283064365386962890625e-10"),e.precision+=r,t=W(e,1,t.times(i),new e(1));for(var o=r;o--;){var a=t.times(t);t=a.times(a).minus(a).times(8).plus(1)}return e.precision-=r,t}(n,V(n,r)),n.precision=e,n.rounding=t,C(2==i||3==i?r.neg():r,e,t,!0)):new n(1):new n(NaN)},_.cubeRoot=_.cbrt=function(){var e,t,r,n,i,o,a,s,l,c,p=this.constructor;if(!this.isFinite()||this.isZero())return new p(this);for(u=!1,(o=this.s*g(this.s*this,1/3))&&Math.abs(o)!=1/0?n=new p(o.toString()):(r=S(this.d),(o=((e=this.e)-r.length+1)%3)&&(r+=1==o||-2==o?"0":"00"),o=g(r,1/3),e=m((e+1)/3)-(e%3==(e<0?-1:2)),(n=new p(r=o==1/0?"5e"+e:(r=o.toExponential()).slice(0,r.indexOf("e")+1)+e)).s=this.s),a=(e=p.precision)+3;;)if(n=O((c=(l=(s=n).times(s).times(s)).plus(this)).plus(this).times(s),c.plus(l),a+2,1),S(s.d).slice(0,a)===(r=S(n.d)).slice(0,a)){if("9999"!=(r=r.slice(a-3,a+1))&&(i||"4999"!=r)){+r&&(+r.slice(1)||"5"!=r.charAt(0))||(C(n,e+1,1),t=!n.times(n).times(n).eq(this));break}if(!i&&(C(s,e+1,0),s.times(s).times(s).eq(this))){n=s;break}a+=4,i=1}return u=!0,C(n,e,p.rounding,t)},_.decimalPlaces=_.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},_.dividedBy=_.div=function(e){return O(this,new this.constructor(e))},_.dividedToIntegerBy=_.divToInt=function(e){var t=this.constructor;return C(O(this,new t(e),0,1,1),t.precision,t.rounding)},_.equals=_.eq=function(e){return 0===this.cmp(e)},_.floor=function(){return C(new this.constructor(this),this.e+1,3)},_.greaterThan=_.gt=function(e){return this.cmp(e)>0},_.greaterThanOrEqualTo=_.gte=function(e){var t=this.cmp(e);return 1==t||0===t},_.hyperbolicCosine=_.cosh=function(){var e,t,r,n,i,o=this,a=o.constructor,s=new a(1);if(!o.isFinite())return new a(o.s?1/0:NaN);if(o.isZero())return s;r=a.precision,n=a.rounding,a.precision=r+Math.max(o.e,o.sd())+4,a.rounding=1,(i=o.d.length)<32?t=(1/q(4,e=Math.ceil(i/3))).toString():(e=16,t="2.3283064365386962890625e-10"),o=W(a,1,o.times(t),new a(1),!0);for(var l,u=e,c=new a(8);u--;)l=o.times(o),o=s.minus(l.times(c.minus(l.times(c))));return C(o,a.precision=r,a.rounding=n,!0)},_.hyperbolicSine=_.sinh=function(){var e,t,r,n,i=this,o=i.constructor;if(!i.isFinite()||i.isZero())return new o(i);if(t=o.precision,r=o.rounding,o.precision=t+Math.max(i.e,i.sd())+4,o.rounding=1,(n=i.d.length)<3)i=W(o,2,i,i,!0);else{e=(e=1.4*Math.sqrt(n))>16?16:0|e,i=W(o,2,i=i.times(1/q(5,e)),i,!0);for(var a,s=new o(5),l=new o(16),u=new o(20);e--;)a=i.times(i),i=i.times(s.plus(a.times(l.times(a).plus(u))))}return o.precision=t,o.rounding=r,C(i,t,r,!0)},_.hyperbolicTangent=_.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,O(this.sinh(),this.cosh(),r.precision=e,r.rounding=t)):new r(this.s)},_.inverseCosine=_.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))},_.inverseHyperbolicCosine=_.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)},_.inverseHyperbolicSine=_.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())},_.inverseHyperbolicTangent=_.atanh=function(){var e,t,r,n,i=this,o=i.constructor;return i.isFinite()?i.e>=0?new o(i.abs().eq(1)?i.s/0:i.isZero()?i:NaN):(e=o.precision,t=o.rounding,Math.max(n=i.sd(),e)<-(2*i.e)-1)?C(new o(i),e,t,!0):(o.precision=r=n-i.e,i=O(i.plus(1),new o(1).minus(i),r+e,1),o.precision=e+4,o.rounding=1,i=i.ln(),o.precision=e,o.rounding=t,i.times(.5)):new o(NaN)},_.inverseSine=_.asin=function(){var e,t,r,n,i=this,o=i.constructor;return i.isZero()?new o(i):(t=i.abs().cmp(1),r=o.precision,n=o.rounding,-1!==t)?0===t?((e=R(o,r+4,n).times(.5)).s=i.s,e):new o(NaN):(o.precision=r+6,o.rounding=1,i=i.div(new o(1).minus(i.times(i)).sqrt().plus(1)).atan(),o.precision=r,o.rounding=n,i.times(2))},_.inverseTangent=_.atan=function(){var e,t,r,n,i,o,a,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<=A)return(a=R(p,d+4,f).times(.25)).s=c.s,a}else{if(!c.s)return new p(NaN);if(d+4<=A)return(a=R(p,d+4,f).times(.5)).s=c.s,a}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),a=new p(c),i=c;-1!==e;)if(i=i.times(l),o=a.minus(i.div(n+=2)),i=i.times(l),void 0!==(a=o.plus(i.div(n+=2))).d[t])for(e=t;a.d[e]===o.d[e]&&e--;);return r&&(a=a.times(2<<r-1)),u=!0,C(a,p.precision=d,p.rounding=f,!0)},_.isFinite=function(){return!!this.d},_.isInteger=_.isInt=function(){return!!this.d&&m(this.e/7)>this.d.length-2},_.isNaN=function(){return!this.s},_.isNegative=_.isNeg=function(){return this.s<0},_.isPositive=_.isPos=function(){return this.s>0},_.isZero=function(){return!!this.d&&0===this.d[0]},_.lessThan=_.lt=function(e){return 0>this.cmp(e)},_.lessThanOrEqualTo=_.lte=function(e){return 1>this.cmp(e)},_.logarithm=_.log=function(e){var t,r,n,i,o,a,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,k((s=O(o=D(this,a=c+5),t?T(l,a+10):D(e,a),a,1)).d,n=c,p))do if(a+=10,s=O(o=D(this,a),t?T(l,a+10):D(e,a),a,1),!i){+S(s.d).slice(n+1,n+15)+1==1e14&&(s=C(s,c+1,0));break}while(k(s.d,n+=10,p));return u=!0,C(s,c,p)},_.minus=_.sub=function(e){var t,r,n,i,o,a,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?C(e,s,l):e}if(r=m(e.e/7),p=m(this.e/7),c=c.slice(),o=p-r){for((d=o<0)?(t=c,o=-o,a=f.length):(t=f,r=p,a=c.length),o>(n=Math.max(Math.ceil(s/7),a)+2)&&(o=n,t.length=1),t.reverse(),n=o;n--;)t.push(0);t.reverse()}else{for((d=(n=c.length)<(a=f.length))&&(a=n),n=0;n<a;n++)if(c[n]!=f[n]){d=c[n]<f[n];break}o=0}for(d&&(t=c,c=f,f=t,e.s=-e.s),a=c.length,n=f.length-a;n>0;--n)c[a++]=0;for(n=f.length;n>o;){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[--a];)c.pop();for(;0===c[0];c.shift())--r;return c[0]?(e.d=c,e.e=E(c,r),u?C(e,s,l):e):new h(3===l?-0:0)},_.modulo=_.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=O(this,e.abs(),0,3,1),t.s*=e.s):t=O(this,e,0,r.modulo,1),t=t.times(e),u=!0,this.minus(t)):C(new r(this),r.precision,r.rounding):new r(NaN)},_.naturalExponential=_.exp=function(){return L(this)},_.naturalLogarithm=_.ln=function(){return D(this)},_.negated=_.neg=function(){var e=new this.constructor(this);return e.s=-e.s,C(e)},_.plus=_.add=function(e){var t,r,n,i,o,a,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?C(e,s,l):e;if(o=m(this.e/7),n=m(e.e/7),c=c.slice(),i=o-n){for(i<0?(r=c,i=-i,a=p.length):(r=p,n=o,a=c.length),i>(a=(o=Math.ceil(s/7))>a?o+1:a+1)&&(i=a,r.length=1),r.reverse();i--;)r.push(0);r.reverse()}for((a=c.length)-(i=p.length)<0&&(i=a,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),a=c.length;0==c[--a];)c.pop();return e.d=c,e.e=E(c,n),u?C(e,s,l):e},_.precision=_.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},_.round=function(){var e=this.constructor;return C(new e(this),this.e+1,e.rounding)},_.sine=_.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:W(e,2,t,t);r=(r=1.4*Math.sqrt(n))>16?16:0|r,t=W(e,2,t=t.times(1/q(5,r)),t);for(var i,o=new e(5),a=new e(16),s=new e(20);r--;)i=t.times(t),t=t.times(o.plus(i.times(a.times(i).minus(s))));return t}(n,V(n,r)),n.precision=e,n.rounding=t,C(i>2?r.neg():r,e,t,!0)):new n(NaN)},_.squareRoot=_.sqrt=function(){var e,t,r,n,i,o,a=this.d,s=this.e,l=this.s,c=this.constructor;if(1!==l||!a||!a[0])return new c(!l||l<0&&(!a||a[0])?NaN:a?this:1/0);for(u=!1,0==(l=Math.sqrt(+this))||l==1/0?(((t=S(a)).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=(o=n).plus(O(this,o,r+2,1)).times(.5),S(o.d).slice(0,r)===(t=S(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))||(C(n,s+1,1),e=!n.times(n).eq(this));break}if(!i&&(C(o,s+1,0),o.times(o).eq(this))){n=o;break}r+=4,i=1}return u=!0,C(n,s,c.rounding,e)},_.tangent=_.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=O(r,new n(1).minus(r.times(r)).sqrt(),e+10,0),n.precision=e,n.rounding=t,C(2==i||4==i?r.neg():r,e,t,!0)):new n(NaN)},_.times=_.mul=function(e){var t,r,n,i,o,a,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)&&(o=d,d=f,f=o,a=l,l=c,c=a),o=[],n=a=l+c;n--;)o.push(0);for(n=c;--n>=0;){for(t=0,i=l+n;i>n;)s=o[i]+f[n]*d[i-n-1]+t,o[i--]=s%1e7|0,t=s/1e7|0;o[i]=(o[i]+t)%1e7|0}for(;!o[--a];)o.pop();return t?++r:o.shift(),e.d=o,e.e=E(o,r),u?C(e,p.precision,p.rounding):e},_.toBinary=function(e,t){return H(this,2,e,t)},_.toDecimalPlaces=_.toDP=function(e,t){var r=this,n=r.constructor;return(r=new n(r),void 0===e)?r:(M(e,0,1e9),void 0===t?t=n.rounding:M(t,0,8),C(r,e+r.e+1,t))},_.toExponential=function(e,t){var r,n=this,i=n.constructor;return void 0===e?r=$(n,!0):(M(e,0,1e9),void 0===t?t=i.rounding:M(t,0,8),r=$(n=C(new i(n),e+1,t),!0,e+1)),n.isNeg()&&!n.isZero()?"-"+r:r},_.toFixed=function(e,t){var r,n,i=this.constructor;return void 0===e?r=$(this):(M(e,0,1e9),void 0===t?t=i.rounding:M(t,0,8),r=$(n=C(new i(this),e+this.e+1,t),!1,e+n.e+1)),this.isNeg()&&!this.isZero()?"-"+r:r},_.toFraction=function(e){var t,r,n,i,o,a,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),a=(o=(t=new v(n)).e=I(m)-this.e-1)%7,t.d[0]=g(10,a<0?7+a:a),null==e)e=o>0?t:c;else{if(!(s=new v(e)).isInt()||s.lt(c))throw Error(p+s);e=s.gt(t)?o>0?t:c:s}for(u=!1,s=new v(S(m)),d=v.precision,v.precision=o=7*m.length*2;f=O(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=O(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>O(c,n,o,1).minus(this).abs().cmp(O(l,r,o,1).minus(this).abs())?[c,n]:[l,r],v.precision=d,u=!0,h},_.toHexadecimal=_.toHex=function(e,t){return H(this,16,e,t)},_.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:M(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=O(r,e,0,t,1).times(e),u=!0,C(r)):(e.s=r.s,r=e),r},_.toNumber=function(){return+this},_.toOctal=function(e,t){return H(this,8,e,t)},_.toPower=_.pow=function(e){var t,r,n,i,o,a,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,o=l.rounding,e.eq(1))return C(s,n,o);if((t=m(e.e/7))>=e.d.length-1&&(r=c<0?-c:c)<=0x1fffffffffffff)return i=j(l,s,r,n),e.s<0?new l(1).div(i):C(i,n,o);if((a=s.s)<0){if(t<e.d.length-1)return new l(NaN);if((1&e.d[t])==0&&(a=1),0==s.e&&1==s.d[0]&&1==s.d.length)return s.s=a,s}return(t=0!=(r=g(+s,c))&&isFinite(r)?new l(r+"").e:m(c*(Math.log("0."+S(s.d))/Math.LN10+s.e+1)))>l.maxE+1||t<l.minE-1?new l(t>0?a/0:0):(u=!1,l.rounding=s.s=1,r=Math.min(12,(t+"").length),(i=L(e.times(D(s,n+r)),n)).d&&k((i=C(i,n+5,1)).d,n,o)&&(t=n+10,+S((i=C(L(e.times(D(s,t+r)),t),t+5,1)).d).slice(n+1,n+15)+1==1e14&&(i=C(i,n+1,0))),i.s=a,u=!0,l.rounding=o,C(i,n,o))},_.toPrecision=function(e,t){var r,n=this,i=n.constructor;return void 0===e?r=$(n,n.e<=i.toExpNeg||n.e>=i.toExpPos):(M(e,1,1e9),void 0===t?t=i.rounding:M(t,0,8),r=$(n=C(new i(n),e,t),e<=n.e||n.e<=i.toExpNeg,e)),n.isNeg()&&!n.isZero()?"-"+r:r},_.toSignificantDigits=_.toSD=function(e,t){var r=this.constructor;return void 0===e?(e=r.precision,t=r.rounding):(M(e,1,1e9),void 0===t?t=r.rounding:M(t,0,8)),C(new r(this),e,t)},_.toString=function(){var e=this.constructor,t=$(this,this.e<=e.toExpNeg||this.e>=e.toExpPos);return this.isNeg()&&!this.isZero()?"-"+t:t},_.truncated=_.trunc=function(){return C(new this.constructor(this),this.e+1,1)},_.valueOf=_.toJSON=function(){var e=this.constructor,t=$(this,this.e<=e.toExpNeg||this.e>=e.toExpPos);return this.isNeg()?"-"+t:t};var O=function(){function e(e,t,r){var n,i=0,o=e.length;for(e=e.slice();o--;)n=e[o]*t+i,e[o]=n%r|0,i=n/r|0;return i&&e.unshift(i),e}function t(e,t,r,n){var i,o;if(r!=n)o=r>n?1:-1;else for(i=o=0;i<r;i++)if(e[i]!=t[i]){o=e[i]>t[i]?1:-1;break}return o}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,o,a,s,l,u){var c,p,d,f,h,g,v,y,b,x,w,A,_,S,M,k,N,O,$,E,T=i.constructor,R=i.s==o.s?1:-1,I=i.d,P=o.d;if(!I||!I[0]||!P||!P[0])return new T(!i.s||!o.s||(I?P&&I[0]==P[0]:!P)?NaN:I&&0==I[0]||!P?0*R:R/0);for(u?(h=1,p=i.e-o.e):(u=1e7,h=7,p=m(i.e/h)-m(o.e/h)),$=P.length,N=I.length,x=(b=new T(R)).d=[],d=0;P[d]==(I[d]||0);d++);if(P[d]>(I[d]||0)&&p--,null==a?(S=a=T.precision,s=T.rounding):S=l?a+(i.e-o.e)+1:a,S<0)x.push(1),g=!0;else{if(S=S/h+2|0,d=0,1==$){for(f=0,P=P[0],S++;(d<N||f)&&S--;d++)M=f*u+(I[d]||0),x[d]=M/P|0,f=M%P|0;g=f||d<N}else{for((f=u/(P[0]+1)|0)>1&&(P=e(P,f,u),I=e(I,f,u),$=P.length,N=I.length),k=$,A=(w=I.slice(0,$)).length;A<$;)w[A++]=0;(E=P.slice()).unshift(0),O=P[0],P[1]>=u/2&&++O;do f=0,(c=t(P,w,$,A))<0?(_=w[0],$!=A&&(_=_*u+(w[1]||0)),(f=_/O|0)>1?(f>=u&&(f=u-1),y=(v=e(P,f,u)).length,A=w.length,1==(c=t(v,w,y,A))&&(f--,r(v,$<y?E:P,y,u))):(0==f&&(c=f=1),v=P.slice()),(y=v.length)<A&&v.unshift(0),r(w,v,A,u),-1==c&&(A=w.length,(c=t(P,w,$,A))<1&&(f++,r(w,$<A?E:P,A,u))),A=w.length):0===c&&(f++,w=[0]),x[d++]=f,c&&w[0]?w[A++]=I[k]||0:(w=[I[k]],A=1);while((k++<N||void 0!==w[0])&&S--);g=void 0!==w[0]}x[0]||x.shift()}if(1==h)b.e=p,n=g;else{for(d=1,f=x[0];f>=10;f/=10)d++;b.e=d+p*h-1,C(b,l?a+b.e+1:a,s,g)}return b}}();function C(e,t,r,n){var i,o,a,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((o=t-i)<0)o+=7,a=t,l=(p=d[f=0])/g(10,i-a-1)%10|0;else if((f=Math.ceil((o+1)/7))>=(s=d.length))if(n){for(;s++<=f;)d.push(0);p=l=0,i=1,o%=7,a=o-7+1}else break e;else{for(i=1,p=s=d[f];s>=10;s/=10)i++;o%=7,l=(a=o-7+i)<0?0:p/g(10,i-a-1)%10|0}if(n=n||t<0||void 0!==d[f+1]||(a<0?p:p%g(10,i-a-1)),c=r<4?(l||n)&&(0==r||r==(e.s<0?3:2)):l>5||5==l&&(4==r||n||6==r&&(o>0?a>0?p/g(10,i-a):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==o?(d.length=f,s=1,f--):(d.length=f+1,s=g(10,7-o),d[f]=a>0?(p/g(10,i-a)%g(10,a)|0)*s:0),c)for(;;)if(0==f){for(o=1,a=d[0];a>=10;a/=10)o++;for(a=d[0]+=s,s=1;a>=10;a/=10)s++;o!=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(o=d.length;0===d[--o];)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 $(e,t,r){if(!e.isFinite())return F(e);var n,i=e.e,o=S(e.d),a=o.length;return t?(r&&(n=r-a)>0?o=o.charAt(0)+"."+o.slice(1)+P(n):a>1&&(o=o.charAt(0)+"."+o.slice(1)),o=o+(e.e<0?"e":"e+")+e.e):i<0?(o="0."+P(-i-1)+o,r&&(n=r-a)>0&&(o+=P(n))):i>=a?(o+=P(i+1-a),r&&(n=r-i-1)>0&&(o=o+"."+P(n))):((n=i+1)<a&&(o=o.slice(0,n)+"."+o.slice(n)),r&&(n=r-a)>0&&(i+1===a&&(o+="."),o+=P(n))),o}function E(e,t){var r=e[0];for(t*=7;r>=10;r/=10)t++;return t}function T(e,t,r){if(t>w)throw u=!0,r&&(e.precision=r),Error(d);return C(new e(a),t,1,!0)}function R(e,t,r){if(t>A)throw Error(d);return C(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 P(e){for(var t="";e--;)t+="0";return t}function j(e,t,r,n){var i,o=new e(1),a=Math.ceil(n/7+4);for(u=!1;;){if(r%2&&U((o=o.times(t)).d,a)&&(i=!0),0===(r=m(r/2))){r=o.d.length-1,i&&0===o.d[r]&&++o.d[r];break}U((t=t.times(t)).d,a)}return u=!0,o}function z(e){return 1&e.d[e.d.length-1]}function B(e,t,r){for(var n,i,o=new e(t[0]),a=0;++a<t.length;){if(!(i=new e(t[a])).s){o=i;break}((n=o.cmp(i))===r||0===n&&o.s===r)&&(o=i)}return o}function L(e,t){var r,n,i,o,a,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=o=a=new f(1),f.precision=l;;){if(o=C(o.times(e),l,1),r=r.times(++p),S((s=a.plus(O(o,r,l,1))).d).slice(0,l)===S(a.d).slice(0,l)){for(i=d;i--;)a=C(a.times(a),l,1);if(null!=t)return f.precision=m,a;if(!(c<3&&k(a.d,l-n,h,c)))return C(a,f.precision=m,h,u=!0);f.precision=l+=10,r=o=s=new f(1),p=0,c++}a=s}}function D(e,t){var r,n,i,o,a,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=S(g)).charAt(0),!(15e14>Math.abs(o=m.e)))return c=T(v,p+2,b).times(o+""),m=D(new v(n+"."+r.slice(1)),p-10).plus(c),v.precision=b,null==t?C(m,b,y,u=!0):m;for(;n<7&&1!=n||1==n&&r.charAt(1)>3;)n=(r=S((m=m.times(e)).d)).charAt(0),h++;for(o=m.e,n>1?(m=new v("0."+r),o++):m=new v(n+"."+r.slice(1)),d=m,l=a=m=O(m.minus(1),m.plus(1),p,1),f=C(m.times(m),p,1),i=3;;){if(a=C(a.times(f),p,1),S((c=l.plus(O(a,new v(i),p,1))).d).slice(0,p)===S(l.d).slice(0,p)){if(l=l.times(2),0!==o&&(l=l.plus(T(v,p+2,b).times(o+""))),l=O(l,new v(h),p,1),null!=t)return v.precision=b,l;if(!k(l.d,p-10,y,s))return C(l,v.precision=b,y,u=!0);v.precision=p+=10,c=a=m=O(d.minus(1),d.plus(1),p,1),f=C(m.times(m),p,1),i=s=1}l=c,i+=2}}function F(e){return String(e.s*e.s/0)}function Z(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 W(e,t,r,n,i){var o,a,s,l,c=e.precision,p=Math.ceil(c/7);for(u=!1,l=r.times(r),s=new e(n);;){if(a=O(s.times(l),new e(t++*t++),c,1),s=i?n.plus(a):n.minus(a),n=O(a.times(l),new e(t++*t++),c,1),void 0!==(a=s.plus(n)).d[p]){for(o=p;a.d[o]===s.d[o]&&o--;);if(-1==o)break}o=s,s=n,n=a,a=o}return u=!0,a.d.length=p+1,a}function q(e,t){for(var r=e;--t;)r*=e;return r}function V(e,t){var r,n=t.s<0,o=R(e,e.precision,1),a=o.times(.5);if((t=t.abs()).lte(a))return i=n?4:1,t;if((r=t.divToInt(o)).isZero())i=n?3:2;else{if((t=t.minus(r.times(o))).lte(a))return i=z(r)?n?2:3:n?4:1,t;i=z(r)?n?1:4:n?3:2}return t.minus(o).abs()}function H(e,t,r,i){var a,s,l,u,c,p,d,f,h,m=e.constructor,g=void 0!==r;if(g?(M(r,1,1e9),void 0===i?i=m.rounding:M(i,0,8)):(r=m.precision,i=m.rounding),e.isFinite()){for(l=(d=$(e)).indexOf("."),g?(a=2,16==t?r=4*r-3:8==t&&(r=3*r-2)):a=t,l>=0&&(d=d.replace(".",""),(h=new m(1)).e=d.length-l,h.d=N($(h),10,a),h.e=h.d.length),s=c=(f=N(d,10,a)).length;0==f[--c];)f.pop();if(f[0]){if(l<0?s--:((e=new m(e)).d=f,e.e=s,f=(e=O(e,h,r,i,0,a)).d,s=e.e,p=n),l=f[r],u=a/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]>a-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+=o.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=N(d,a,t)).length;!f[c-1];--c);for(l=1,d="1.";l<c;l++)d+=o.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=F(e);return e.s<0?"-"+d:d}function U(e,t){if(e.length>t)return e.length=t,!0}function G(e){return new this(e).abs()}function X(e){return new this(e).acos()}function Y(e){return new this(e).acosh()}function K(e,t){return new this(e).plus(t)}function J(e){return new this(e).asin()}function Q(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,o=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,o,1).times(.5)).s=e.s:t.s<0?(this.precision=o,this.rounding=1,r=this.atan(O(e,t,o,1)),t=R(this,o,1),this.precision=n,this.rounding=i,r=e.s<0?r.minus(t):r.plus(t)):r=this.atan(O(e,t,o,1)):(r=R(this,o,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 C(e=new this(e),e.e+1,2)}function eo(e,t,r){return new this(e).clamp(t,r)}function ea(e){if(!e||"object"!=typeof e)throw Error(c+"Object expected");var t,r,n,i=!0===e.defaults,o=["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<o.length;t+=3)if(r=o[t],i&&(this[r]=l[r]),void 0!==(n=e[r]))if(m(n)===n&&n>=o[t+1]&&n<=o[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 C(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 B(this,arguments,-1)}function eb(){return B(this,arguments,1)}function ex(e,t){return new this(e).mod(t)}function ew(e,t){return new this(e).mul(t)}function eA(e,t){return new this(e).pow(t)}function e_(e){var t,r,n,i,o=0,a=new this(1),s=[];if(void 0===e?e=this.precision:M(e,1,1e9),n=Math.ceil(e/7),this.crypto)if(crypto.getRandomValues)for(t=crypto.getRandomValues(new Uint32Array(n));o<n;)(i=t[o])>=429e7?t[o]=crypto.getRandomValues(new Uint32Array(1))[0]:s[o++]=i%1e7;else if(crypto.randomBytes){for(t=crypto.randomBytes(n*=4);o<n;)(i=t[o]+(t[o+1]<<8)+(t[o+2]<<16)+((127&t[o+3])<<24))>=214e7?crypto.randomBytes(4).copy(t,o):(s.push(i%1e7),o+=4);o=n/4}else throw Error(f);else for(;o<n;)s[o++]=1e7*Math.random()|0;for(n=s[--o],e%=7,n&&e&&(i=g(10,7-e),s[o]=(n/i|0)*i);0===s[o];o--)s.pop();if(o<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 a.e=r,a.d=s,a}function eS(e){return C(e=new this(e),e.e+1,this.rounding)}function eM(e){return(e=new this(e)).d?e.d[0]?e.s:0*e.s:e.s||NaN}function ek(e){return new this(e).sin()}function eN(e){return new this(e).sinh()}function eO(e){return new this(e).sqrt()}function eC(e,t){return new this(e).sub(t)}function e$(){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,C(r,this.precision,this.rounding)}function eE(e){return new this(e).tan()}function eT(e){return new this(e).tanh()}function eR(e){return C(e=new this(e),e.e+1,1)}_[Symbol.for("nodejs.util.inspect.custom")]=_.toString,_[Symbol.toStringTag]="Decimal";var eI=_.constructor=function e(t){var r,n,i;function o(e){var t,r,n;if(!(this instanceof o))return new o(e);if(this.constructor=o,ef(e)){this.s=e.s,u?!e.d||e.e>o.maxE?(this.e=NaN,this.d=null):e.e<o.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>o.maxE?(this.e=NaN,this.d=null):t<o.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 Z(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),x.test(e)?Z(this,e):function(e,t){var r,n,i,o,a,s,l,c,d;if(t.indexOf("_")>-1){if(t=t.replace(/(\d)_(?=\d)/g,"$1"),x.test(t))return Z(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((o=t.search(/p/i))>0?(l=+t.slice(o+1),t=t.substring(2,o)):t=t.slice(2),a=(o=t.indexOf("."))>=0,n=e.constructor,a&&(o=(s=(t=t.replace(".","")).length)-o,i=j(n,new n(r),o,2*o)),o=d=(c=N(t,r,1e7)).length-1;0===c[o];--o)c.pop();return o<0?new n(0*e.s):(e.e=E(c,d),e.d=c,u=!1,a&&(e=O(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,Z(this,e.toString());throw Error(p+e)}if(o.prototype=_,o.ROUND_UP=0,o.ROUND_DOWN=1,o.ROUND_CEIL=2,o.ROUND_FLOOR=3,o.ROUND_HALF_UP=4,o.ROUND_HALF_DOWN=5,o.ROUND_HALF_EVEN=6,o.ROUND_HALF_CEIL=7,o.ROUND_HALF_FLOOR=8,o.EUCLID=9,o.config=o.set=ea,o.clone=e,o.isDecimal=ef,o.abs=G,o.acos=X,o.acosh=Y,o.add=K,o.asin=J,o.asinh=Q,o.atan=ee,o.atanh=et,o.atan2=er,o.cbrt=en,o.ceil=ei,o.clamp=eo,o.cos=es,o.cosh=el,o.div=eu,o.exp=ec,o.floor=ep,o.hypot=ed,o.ln=eh,o.log=em,o.log10=ev,o.log2=eg,o.max=ey,o.min=eb,o.mod=ex,o.mul=ew,o.pow=eA,o.random=e_,o.round=eS,o.sign=eM,o.sin=ek,o.sinh=eN,o.sqrt=eO,o.sub=eC,o.sum=e$,o.tan=eE,o.tanh=eT,o.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 o.config(t),o}(l);a=new eI(a),s=new eI(s);var eP={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),o=r(49204),a=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,o.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 o=t[r];(0,i.cy)(o)?t[r]=e(o):o&&!0===o.isMatrix&&(t[r]=e(o.valueOf()))}return t}(e),this._size=(0,o.LO)(this._data),(0,o.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,o.XR)(e._data,e._size,r),e}function c(e,t,r){for(var i=e._size.slice(0),o=!1;i.length<t.length;)i.push(0),o=!0;for(var a=0,s=t.length;a<s;a++)t[a]>i[a]&&(i[a]=t[a],o=!0);o&&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,o.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 a=t.min(),s=t.max(),l=0,c=e._size.length;l<c;l++)(0,o.r7)(a[l],e._size[l]),(0,o.r7)(s[l],e._size[l]);return new r(function e(t,r,n,i){var a=i===n-1,s=r.dimension(i);return a?s.map(function(e){return(0,o.r7)(e,t.length),t[e]}).valueOf():s.map(function(a){return(0,o.r7)(a,t.length),e(t[a],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 a,s=t.size(),p=t.isScalar();if((0,i.OA)(r)?(a=r.size(),r=r.valueOf()):a=(0,o.LO)(r),p){if(0!==a.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(a.length<s.length){for(var d=0,f=0;1===s[d]&&1===a[d];)d++;for(;1===s[d];)f++,d++;r=(0,o.iD)(r,s.length,f,a)}if(!(0,l.QO)(s,a))throw new u.h(s,a,">");c(e,t.max().map(function(e){return e+1}),n);var h=s.length;!function e(t,r,n,i,a){var s=a===i-1,l=r.dimension(a);s?l.forEach(function(e,r){(0,o.r7)(e),t[e]=n[r[0]]}):l.forEach(function(s,l){(0,o.r7)(s),e(t[s],r,n[l[0]],i,a+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,o.r7)(e[t],this._size[t]);for(var r=this._data,n=0,a=e.length;n<a;n++){var s=e[n];(0,o.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,a,s,l=this._data;for(n=0,a=e.length-1;n<a;n++)s=e[n],(0,o.r7)(s,l.length),l=l[s];return s=e[e.length-1],(0,o.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 o=e.valueOf().map(e=>Array.isArray(e)&&1===e.length?e[0]:e);return n(r?this.clone():this,o,t)},r.prototype.reshape=function(e,t){var r=t?this.clone():this;r._data=(0,o.tQ)(r._data,e);var n=r._size.reduce((e,t)=>e*t);return r._size=(0,o.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,o){return(0,i.cy)(n)?n.map(function(e,t){return r(e,o.concat(t))}):e(n,o,t)}(this._data,[]),a=void 0!==this._datatype?(0,o.ig)(n,i.QP):void 0;return new r(n,a)},r.prototype.forEach=function(e){var t=this;!function r(n,o){(0,i.cy)(n)?n.forEach(function(e,t){r(e,o.concat(t))}):e(n,o,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,o=function(n){var o=i.map(e=>[e[n]]);t.push(new r(o,e._datatype))},a=0;a<n[1];a++)o(a);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,a.GP)(this._data,e)},r.prototype.toString=function(){return(0,a.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,o=Math.min(this._size[0]-n,this._size[1]-t),a=[],l=0;l<o;l++)a[l]=this._data[l+n][l+t];return new r({data:a,size:[o],datatype:this._datatype})},r.diagonal=function(e,t,n,a){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};a||(a=(0,i.C4)(l(0))?l(0).mul(0):0);var m=[];if(e.length>0){m=(0,o.XR)(m,e,a);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,o.r7)(e,this._size[0]),(0,o.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),o=r(1207),a="equalScalar",s=(0,o.P9)(a,["typed","config"],e=>{var{typed:t,config:r}=e;return t(a,{"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,o.P9)(a,["typed","config"],e=>{var{typed:t,config:r}=e;return t(a,{"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),o=r(53684),a=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 o,a,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,x=[];for(o=0;o<g;o++)x[o]=[];var w=[],A=[];for(a=0;a<v;a++){for(var _=a+1,S=f[a],M=f[a+1],k=S;k<M;k++)w[o=d[k]]=i?b(p[k],s[o][a]):b(s[o][a],p[k]),A[o]=_;for(o=0;o<g;o++)A[o]===_?x[o][a]=w[o]:x[o][a]=s[o][a]}return e.createDenseMatrix({data:x,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 o,a,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,x=n._size,w=n._datatype;if(m.length!==x.length)throw new u.h(m.length,x.length);if(m[0]!==x[0]||m[1]!==x[1])throw RangeError("Dimension mismatch. Matrix A ("+m+") must match Matrix B ("+x+")");var A=m[0],_=m[1],S=r,M=0,k=i;"string"==typeof g&&g===w&&(o=g,S=t.find(r,[o,o]),M=t.convert(0,o),k=t.find(i,[o,o]));var N=d&&v?[]:void 0,O=[],C=[],$=d&&v?[]:void 0,E=d&&v?[]:void 0,T=[],R=[];for(s=0;s<_;s++){C[s]=O.length;var I=s+1;for(c=h[s],p=h[s+1],l=c;l<p;l++)a=f[l],O.push(a),T[a]=I,$&&($[a]=d[l]);for(c=b[s],p=b[s+1],l=c;l<p;l++)if(T[a=y[l]]===I){if($){var P=k($[a],v[l]);S(P,M)?T[a]=null:$[a]=P}}else O.push(a),R[a]=I,E&&(E[a]=v[l]);if($&&E)for(l=C[s];l<O.length;)T[a=O[l]]===I?(N[l]=$[a],l++):R[a]===I?(N[l]=E[a],l++):O.splice(l,1)}return C[_]=O.length,e.createSparseMatrix({values:N,index:O,ptr:C,size:[A,_],datatype:o})}}),d=(0,l.P9)("algorithm10",["typed","DenseMatrix"],e=>{var{typed:t,DenseMatrix:r}=e;return function(e,n,i,o){var a,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&&(a=p,n=t.convert(n,a),h=t.find(i,[a,a]));for(var m=[],g=[],v=[],y=0;y<f;y++){for(var b=y+1,x=u[y],w=u[y+1],A=x;A<w;A++){var _=l[A];g[_]=s[A],v[_]=b}for(var S=0;S<d;S++)0===y&&(m[S]=[]),v[S]===b?m[S][y]=o?h(n,g[S]):h(g[S],n):m[S][y]=n}return new r({data:m,size:[d,f],datatype:a})}}),f=(0,l.P9)("algorithm13",["typed"],e=>{var{typed:t}=e;return function(e,r,n){var i,o=e._data,a=e._size,s=e._datatype,l=r._data,c=r._size,p=r._datatype,d=[];if(a.length!==c.length)throw new u.h(a.length,c.length);for(var f=0;f<a.length;f++){if(a[f]!==c[f])throw RangeError("Dimension mismatch. Matrix A ("+a+") must match Matrix B ("+c+")");d[f]=a[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,o,a){var s=[];if(r===n.length-1)for(var l=0;l<i;l++)s[l]=t(o[l],a[l]);else for(var u=0;u<i;u++)s[u]=e(t,r+1,n,n[r+1],o[u],a[u]);return s}(h,0,d,d[0],o,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:o}=e,a=c({typed:t}),s=p({typed:t,equalScalar:n}),l=d({typed:t,DenseMatrix:o}),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 a(t,e,this,!0)},"DenseMatrix, SparseMatrix":function(e,t){return a(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:o.u,matrixDependencies:a.p,typedDependencies:s.U,createGcd:g}},43163(e,t,r){"use strict";r.d(t,{p:()=>y});var n=r(80185),i=r(27340),o=r(53684),a=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,a;r=this,n=e,a=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=a||n._datatype):o(r,n.valueOf(),a||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))o(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 o(e,n,i){e._values=[],e._index=[],e._ptr=[],e._datatype=i;var o=n.length,a=0,l=r,u=0;if((0,s.Kg)(i)&&(l=t.find(r,[i,i])||r,u=t.convert(0,i)),o>0){var c=0;do{e._ptr.push(e._index.length);for(var p=0;p<o;p++){var d=n[p];if((0,s.cy)(d)){if(0===c&&a<d.length&&(a=d.length),c<d.length){var f=d[c];l(f,u)||(e._values.push(f),e._index.push(p))}}else 0===c&&a<1&&(a=1),l(d,u)||(e._values.push(d),e._index.push(p))}c++}while(c<a)}e._ptr.push(e._index.length),e._size=[o,a]}function a(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,o,a){i.splice(e,0,n),o.splice(e,0,t);for(var s=r+1;s<a.length;s++)a[s]++}function h(e,n,i,o){var a,l,u,c=o||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(a=0;a<h;a++)e._values.push(c),e._index.push(a);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(a=h;a<n;a++,v++)e._values.splice(u+v,0,c),e._index.splice(u+v,0,a),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],x=e._ptr[l+1]-y;for(u=b;u<x;u++)(a=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 o,a,s=n[0],l=n[1],u=[];for(o=0;o<s;o++)for(a=0,u[o]=[];a<l;a++)u[o][a]=0;for(a=0;a<l;a++)for(var p=r[a],d=r[a+1],f=p;f<d;f++)u[o=t[f]][a]=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,o,a,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 x=d?[]:void 0,w=[],A=[];return v.forEach(function(e){for(A.push(w.length),o=m[e],a=m[e+1];o<a;o++)!0===y[r=h[o]]&&(w.push(b[r]),x&&x.push(d[o]))}),A.push(w.length),new i({values:x,index:w,ptr:A,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,o=t.size(),a=t.isScalar();if((0,s.OA)(r)?(i=r.size(),r=r.toArray()):i=(0,p.LO)(r),a){if(0!==i.length)throw TypeError("Scalar expected");e.set(t.min(),r,n)}else{if(1!==o.length&&2!==o.length)throw new f.h(o.length,e._size.length,"<");if(i.length<o.length){for(var l=0,u=0;1===o[l]&&1===i[l];)l++;for(;1===o[l];)u++,l++;r=(0,p.iD)(r,o.length,u,i)}if(!(0,c.QO)(o,i))throw new f.h(o,i,">");if(1===o.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(o,a){(0,p.r7)(o),e.set([t,o],r[i[0]][a[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=a(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 o=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)),(o>u-1||l>c-1)&&(h(this,Math.max(o+1,u),Math.max(l+1,c),i),u=this._size[0],c=this._size[1]),(0,p.r7)(o,u),(0,p.r7)(l,c);var v=a(o,this._ptr[l],this._ptr[l+1],this._index);return v<this._ptr[l+1]&&this._index[v]===o?m(n,g)?function(e,t,r,n,i){r.splice(e,1),n.splice(e,1);for(var o=t+1;o<i.length;o++)i[o]--}(v,l,this._values,this._index,this._ptr):this._values[v]=n:d(v,o,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 o=[],c=0;c<i._ptr.length;c++)for(var f=0;f<i._ptr[c+1]-i._ptr[c];f++)o.push(c);for(var h=i._values.slice(),m=i._index.slice(),g=0;g<i._index.length;g++){var v=m[g],y=o[g],b=v*i._size[1]+y;o[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 x=0;x<i._ptr.length;x++)i._ptr[x]=0;for(var w=0;w<h.length;w++){var A=m[w],_=o[w],S=h[w];d(a(A,i._ptr[_],i._ptr[_+1],i._index),A,_,S,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 o=this;return function(e,n,o,a,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=a(e,t,r),d(e,f)||(u.push(e),c.push(t))},m=0;m<=o;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 x={},w=g;w<v;w++)x[e._index[w]]=e._values[w];for(var A=0;A<=n;A++)h(A in x?x[A]:0,A-0,m-0)}}return p.push(u.length),new i({values:u,index:c,ptr:p,size:[n-0+1,o-0+1]})}(this,this._size[0]-1,this._size[1]-1,function(t,r,n){return e(t,[r,n],o)},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 o=this._ptr[i],a=this._ptr[i+1];if(t)for(var s=o;s<a;s++){var l=this._index[s];e(this._values[s],[l,i],this)}else{for(var u={},c=o;c<a;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 o=this._index[i];yield{value:this._values[i],index:[o,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",o=0;o<r;o++)for(var a=this._ptr[o],s=this._ptr[o+1],l=a;l<s;l++){var c=this._index[l];i+="\n ("+(0,u.GP)(c,e)+", "+(0,u.GP)(o,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],o=this._size[1],a=Math.min(n-r,o-t),u=[],c=[],p=[];p[0]=0;for(var d=t;d<o&&u.length<a;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:[a,1]})},i.fromJSON=function(e){return new i(e)},i.diagonal=function(e,n,o,a,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}),o){if((0,s.C4)(o)&&(o=o.toNumber()),!(0,s.Et)(o)||!(0,l.YN)(o))throw TypeError("The parameter k must be an integer number")}else o=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=o>0?o:0,h=o<0?-o: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=[],x=[],w=[],A=0;A<g;A++){w.push(b.length);var _=A-f;if(_>=0&&_<v){var S=c(_);p(S,d)||(x.push(_+h),b.push(S))}}return w.push(b.length),new i({values:b,index:x,ptr:w,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 o=n[e],a=n[e+1],s=o;s<a;s++)i(r[s],t[s])},i._swapRows=function(e,t,r,n,i,o){for(var s=0;s<r;s++){var l=o[s],u=o[s+1],c=a(e,l,u,i),p=a(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:o.u,typedDependencies:a.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 o([])},string:function(e){return o([],e)},"string, string":function(e,t){return o([],e,t)},Array:function(e){return o(e)},Matrix:function(e){return o(e,e.storage())},"Array | Matrix, string":o,"Array | Matrix, string, string":o});function o(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:a.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:()=>F});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},o=Math.sinh||function(e){return 1e-9>Math.abs(e)?e:(Math.exp(e)-Math.exp(-e))*.5},a=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=a(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)),o=0===this.re&&0===this.im,a=0===r.re&&0===r.im;return n&&a||i&&o?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)),o=0===this.re&&0===this.im,a=0===r.re&&0===r.im;if(o&&a||n&&i)return p.NAN;if(a||n)return p.INFINITY;if(o||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),o=l(this.re,this.im),a=Math.exp(r.re*o-r.im*i),s=r.im*o+r.re*i;return new p(a*Math.cos(s),a*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*(a(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 a(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)*o(t))},cos:function(){let e=this.re,t=this.im;return new p(Math.cos(e)*i(t),-Math.sin(e)*o(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,o(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,o(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)*o(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)*o(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(o(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),o(e)*Math.sin(t))},tanh:function(){let e=2*this.re,t=2*this.im,r=i(e)+Math.cos(t);return new p(o(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(o(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*o(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*o(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 o=(n*r-t*t)/i,a=(t*r+n*t)/i;return new p(l(o,a)/2,Math.atan2(a,o)/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),o=(0,f.Et)(e)?e:e?e.precision:null;if(null!==o){var a=Math.pow(10,-o);Math.abs(r/t)<a&&(r=0),Math.abs(t/r)<a&&(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 M();return e*t}function b(e,t){if(0===t)throw S();var r=Object.create(_.prototype);r.s=e<0?-1:1;var n=A(e=e<0?-e:e,t);return r.n=e/n,r.d=t/n,r}function x(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 w=function(e,t){var r,n=0,i=1,o=1,a=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(o=(n=e)*(i=t),n%1!=0||i%1!=0)throw k()}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 M();o=n*i;break;case"number":if(e<0&&(o=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 M();if("-"===d[p]?(o=-1,p++):"+"===d[p]&&p++,d.length===p+1?s=y(d[p++],o):"."===d[p+1]||"."===d[p]?("."!==d[p]&&(a=y(d[p++],o)),(++p+1===d.length||"("===d[p+1]&&")"===d[p+3]||"'"===d[p+1]&&"'"===d[p+3])&&(s=y(d[p],o),u=Math.pow(10,d[p].length),p++),("("===d[p]&&")"===d[p+2]||"'"===d[p]&&"'"===d[p+2])&&(l=y(d[p+1],o),c=Math.pow(10,d[p+1].length)-1,p+=3)):"/"===d[p+1]||":"===d[p+1]?(s=y(d[p],o),u=y(d[p+2],1),p+=3):"/"===d[p+3]&&" "===d[p+1]&&(a=y(d[p],o),s=y(d[p+2],o),u=y(d[p+4],1),p+=5),d.length<=p){o=n=l+(i=u*c)*a+c*s;break}default:throw M()}if(0===i)throw S();v.s=o<0?-1:1,v.n=Math.abs(n),v.d=Math.abs(i)};function A(e,t){if(!e)return t;if(!t)return e;for(;;){if(!(e%=t))return t;if(!(t%=e))return e}}function _(e,t){if(w(e,t),!(this instanceof _))return b(v.s*v.n,v.d);e=A(v.d,v.n),this.s=v.s,this.n=v.n/e,this.d=v.d/e}var S=function(){return Error("Division by Zero")},M=function(){return Error("Invalid argument")},k=function(){return Error("Parameters must be integer")};_.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 w(e,t),b(this.s*this.n*v.d+v.s*this.d*v.n,this.d*v.d)},sub:function(e,t){return w(e,t),b(this.s*this.n*v.d-v.s*this.d*v.n,this.d*v.d)},mul:function(e,t){return w(e,t),b(this.s*v.s*this.n*v.n,this.d*v.d)},div:function(e,t){return w(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 _(NaN);if(void 0===e)return b(this.s*this.n%this.d,1);if(w(e,t),0===v.n&&0===this.d)throw S();return b(this.s*(v.d*this.n)%(v.n*this.d),v.d*this.d)},gcd:function(e,t){return w(e,t),b(A(v.n,this.n)*A(v.d,this.d),v.d*this.d)},lcm:function(e,t){return(w(e,t),0===v.n&&0===this.n)?b(0,1):b(v.n*this.n,A(v.n,this.n)*A(v.d,this.d))},ceil:function(e){return(e=Math.pow(10,e||0),isNaN(this.n)||isNaN(this.d))?new _(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 _(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 _(NaN):b(Math.round(e*this.s*this.n/this.d),e)},roundTo:function(e,t){return w(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(w(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=x(this.n),n=x(this.d),i=1,o=1;for(var a in r)if("1"!==a){if("0"===a){i=0;break}if(r[a]*=v.n,r[a]%v.d!=0)return null;r[a]/=v.d,i*=Math.pow(a,r[a])}for(var a in n)if("1"!==a){if(n[a]*=v.n,n[a]%v.d!=0)return null;n[a]/=v.d,o*=Math.pow(a,n[a])}return v.s<0?b(o,i):b(i,o)},equals:function(e,t){return w(e,t),this.s*this.n*v.d==v.s*v.n*this.d},compare:function(e,t){w(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),o=n-2;o>=0;o--)i=i.inverse().add(r[o]);if(Math.abs(i.sub(t).valueOf())<e)return i.mul(this.s)}return this},divisible:function(e,t){return w(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),o=this.s<0?"-":"";if(o+=t/r|0,t%=r,(t*=10)&&(o+="."),n){for(var a=i;a--;)o+=t/r|0,t%=r,t*=10;o+="(";for(var a=n;a--;)o+=t/r|0,t%=r,t*=10;o+=")"}else for(var a=e;t&&a--;)o+=t/r|0,t%=r,t*=10;return o}};var N=(0,h.P9)("Fraction",[],()=>(_.prototype.type="Fraction",_.prototype.isFraction=!0,_.prototype.toJSON=function(){return{mathjs:"Fraction",n:this.s*this.n,d:this.d}},_.fromJSON=function(e){return new _(e)},_),{isClass:!0}),O=r(42915),C=r(32718);function $(e,t){return!!e&&"object"==typeof e&&(!!(0,C.mQ)(T,t)||!(t in Object.prototype)&&!(t in Function.prototype))}function E(e){return"object"==typeof e&&e&&e.constructor===Object}var T={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(E(n)&&$(n,e))return n[e];if("function"==typeof n[e]&&(t=n,r=e,!(null==t||"function"!=typeof t[r]||(0,C.mQ)(t,r)&&Object.getPrototypeOf&&r in Object.getPrototypeOf(t))&&((0,C.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(E(e)&&$(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 P(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 j=function(){return j=O.create,O},z=(0,h.P9)("typed",["?BigNumber","?Complex","?DenseMatrix","?Fraction"],function(e){var{BigNumber:t,Complex:r,DenseMatrix:n,Fraction:i}=e,o=j();return o.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:P},{name:"Object",test:f.Gv}],o.conversions=[{from:"number",to:"BigNumber",convert:function(e){if(t||B(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||L(e),new r(e,0)}},{from:"number",to:"string",convert:function(e){return e+""}},{from:"BigNumber",to:"Complex",convert:function(e){return r||L(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||L(e),new r(e.valueOf(),0)}},{from:"number",to:"Fraction",convert:function(e){i||D(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||B(e);try{return new t(e)}catch(t){throw Error('Cannot convert "'+e+'" to BigNumber')}}},{from:"string",to:"Fraction",convert:function(e){i||D(e);try{return new i(e)}catch(t){throw Error('Cannot convert "'+e+'" to Fraction')}}},{from:"string",to:"Complex",convert:function(e){r||L(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||B(e),new t(+e)}},{from:"boolean",to:"Fraction",convert:function(e){return i||D(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()}}],o});function B(e){throw Error("Cannot convert value ".concat(e," into a BigNumber: no class 'BigNumber' provided"))}function L(e){throw Error("Cannot convert value ".concat(e," into a Complex number: no class 'Complex' provided"))}function D(e){throw Error("Cannot convert value ".concat(e," into a Fraction, no class 'Fraction' provided."))}var F={BigNumberDependencies:n.P,ComplexDependencies:{createComplexClass:m},DenseMatrixDependencies:g.k,FractionDependencies:{createFractionClass:N},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:()=>o,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 o(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:()=>o});var n=r(1207),i=r(32718),o=(0,n.P9)("algorithm14",["typed"],e=>{var{typed:t}=e;return function(e,r,n,o){var a,s=e._data,l=e._size,u=e._datatype,c=n;"string"==typeof u&&(a=u,r=t.convert(r,a),c=t.find(n,[a,a]));var p=l.length>0?function e(t,r,n,i,o,a,s){var l=[];if(r===n.length-1)for(var u=0;u<i;u++)l[u]=s?t(a,o[u]):t(o[u],a);else for(var c=0;c<i;c++)l[c]=e(t,r+1,n,n[r+1],o[c],a,s);return l}(c,0,l,l[0],s,r,o):[];return e.createDenseMatrix({data:p,size:(0,i.o8)(l),datatype:a})}})},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,o=0;o<t.length;o++){var a=t[o],s=Array.isArray(a);if(0===o&&s&&(i=a.length),s&&a.length!==i)return;var l=s?e(a,r):r(a);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),o=r(93988),a=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 a.h(e.length,0)}else!function e(t,r,n){var i,o=t.length;if(o!==r[n])throw new a.h(o,r[n]);if(n<r.length-1){var s=n+1;for(i=0;i<o;i++){if(!Array.isArray(t[i]))throw new a.h(r.length-1,r.length,"<");e(t[i],r,s)}}else for(i=0;i<o;i++)if(Array.isArray(t[i]))throw new a.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,o.GP)(t)+")")}),function e(t,r,n,i){var o,a,s=t.length,l=r[n],u=Math.min(s,l);if(t.length=l,n<r.length-1){var c=n+1;for(o=0;o<u;o++)Array.isArray(a=t[o])||(a=[a],t[o]=a),e(a,r,c,i);for(o=u;o<l;o++)a=[],t[o]=a,e(a,r,c,i)}else{for(o=0;o<u;o++)for(;Array.isArray(t[o]);)t[o]=t[o][0];for(o=u;o<l;o++)t[o]=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 a.h(0,n,"!=");var i=h(t=f(t,n));if(n!==i)throw new a.h(i,n,"!=");try{return function(e,t){for(var r,n=e,i=t.length-1;i>0;i--){var o=t[i];r=[];for(var a=n.length/o,s=0;s<a;s++)r.push(n.slice(s*o,(s+1)*o));n=r}return n}(r,t)}catch(e){if(e instanceof a.h)throw new a.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 o=0;o<r;o++)e=[e],i.unshift(1);for(e=function e(t,r,n){var i,o;if(Array.isArray(t)){var a=n+1;for(i=0,o=t.length;i<o;i++)t[i]=e(t[i],r,a)}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:()=>a,T$:()=>o});var n=r(32718);function i(e,t,r,i){function o(i){var o=(0,n.K)(i,t.map(a));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(o)}return o.isFactory=!0,o.fn=e,o.dependencies=t.slice().sort(),i&&(o.meta=i),o}function o(e){return"function"==typeof e&&"string"==typeof e.fn&&Array.isArray(e.dependencies)}function a(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 o(e){return e&&"object"==typeof e&&!0===Object.getPrototypeOf(e).isComplex||!1}function a(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,{$$:()=>j,$I:()=>R,$P:()=>x,AF:()=>f,AS:()=>M,BA:()=>$,C4:()=>i,CD:()=>O,Et:()=>n,GJ:()=>P,Gv:()=>A,Kg:()=>l,Ll:()=>I,Lm:()=>g,OA:()=>c,P3:()=>p,PO:()=>C,Px:()=>T,QP:()=>F,Tn:()=>b,Ye:()=>B,Zd:()=>o,_Z:()=>h,b0:()=>S,cy:()=>u,eW:()=>v,fU:()=>a,gO:()=>k,gS:()=>y,gd:()=>w,kZ:()=>_,li:()=>L,m2:()=>E,nw:()=>m,o_:()=>D,qM:()=>N,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 x(e){return e instanceof Date}function w(e){return e instanceof RegExp}function A(e){return!!(e&&"object"==typeof e&&e.constructor===Object&&!o(e)&&!a(e))}function _(e){return null===e}function S(e){return void 0===e}function M(e){return e&&!0===e.isAccessorNode&&!0===e.constructor.prototype.isNode||!1}function k(e){return e&&!0===e.isArrayNode&&!0===e.constructor.prototype.isNode||!1}function N(e){return e&&!0===e.isAssignmentNode&&!0===e.constructor.prototype.isNode||!1}function O(e){return e&&!0===e.isBlockNode&&!0===e.constructor.prototype.isNode||!1}function C(e){return e&&!0===e.isConditionalNode&&!0===e.constructor.prototype.isNode||!1}function $(e){return e&&!0===e.isConstantNode&&!0===e.constructor.prototype.isNode||!1}function E(e){return e&&!0===e.isFunctionAssignmentNode&&!0===e.constructor.prototype.isNode||!1}function T(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 P(e){return e&&!0===e.isObjectNode&&!0===e.constructor.prototype.isNode||!1}function j(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 B(e){return e&&!0===e.isRangeNode&&!0===e.constructor.prototype.isNode||!1}function L(e){return e&&!0===e.isSymbolNode&&!0===e.constructor.prototype.isNode||!1}function D(e){return e&&!0===e.constructor.prototype.isChain||!1}function F(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":o(e)?"Complex":a(e)?"Fraction":c(e)?"Matrix":s(e)?"Unit":m(e)?"Index":h(e)?"Range":v(e)?"ResultSet":I(e)?e.type:D(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:()=>o,_n:()=>u,p6:()=>a,q8:()=>x,vm:()=>y});var n=r(46797);function i(e){return"boolean"==typeof e||!!isFinite(e)&&e===Math.round(e)}var o=Math.sign||function(e){return e>0?1:e<0?-1:0},a=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 o="";return e<0&&(e=-e,o="-"),"".concat(o).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,o="auto";if(t&&(t.notation&&(o=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(o){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,o=r.coefficients,a=i%3==0?i:i<0?i-3-i%3:i-i%3;if((0,n.Et)(t))for(;t>o.length||i-a+1>o.length;)o.push(0);else for(var s=Math.abs(i-a)-(o.length-1),l=0;l<s;l++)o.push(0);for(var u=Math.abs(i-a),c=1;u>0;)c++,u--;var p=o.slice(c).join(""),d=(0,n.Et)(t)&&p.length||p.match(/[1-9]/)?"."+p:"",h=o.slice(0,c).join("")+d+"e"+(i>=0?"+":"")+a.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,o=f(e),a=t?g(o,t):o;if(a.exponent<n||a.exponent>=i)return m(e,t);var s=a.coefficients,l=a.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,"."),a.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 "'+o+'". 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"),o=n.indexOf(".");i+=-1!==o?o-1:n.length-1;var a=n.replace(".","").replace(/^0*/,function(e){return i-=e.length,""}).replace(/0*$/,"").split("").map(function(e){return parseInt(e)});return 0===a.length&&(a.push(0),i++),{sign:r,coefficients:a,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,o=n.exponent+1,a=o+(t||0);return i.length<a&&(i=i.concat(v(a-i.length))),o<0&&(i=v(-o+1).concat(i),o=1),o<i.length&&i.splice(o,0,0===o?"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,o=n.exponent;i.length<t&&(i=i.concat(v(t-i.length)));var a=i.shift();return n.sign+a+(i.length>0?"."+i.join(""):"")+"e"+(o>=0?"+":"")+o}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 x(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,o;if(Array.isArray(t)){if(!Array.isArray(r)||t.length!==r.length)return!1;for(i=0,o=t.length;i<o;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:()=>a,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:()=>o,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 o(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 a(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],o=e[i];void 0!==o&&(r[i]=o)}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 a(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 o(e,2,h);case"oct":return o(e,8,h);case"hex":return o(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():a(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="[",o=r.length,a=0;a<o;a++)0!==a&&(i+=", "),i+=t(r[a],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 o(e,t,r){var n=new e.constructor(2),o="";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))),o="i".concat(r)}switch(t){case 2:return"".concat(e.toBinary()).concat(o);case 8:return"".concat(e.toOctal()).concat(o);case 16:return"".concat(e.toHexadecimal()).concat(o);default:throw Error("Base ".concat(t," not supported "))}}function a(e,t){return void 0!==t?e.toExponential(t-1):e.toExponential()}},37830(e,t,r){"use strict";r.d(t,{G:()=>o,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 o 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 o))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()}}o.create=e=>new o(e)},86045(e,t,r){"use strict";var n,i,o;r.d(t,{CR:()=>s,ZS:()=>n,Zp:()=>a}),(o=n||(n={})).assertEqual=e=>{},o.assertIs=function(e){},o.assertNever=function(e){throw Error()},o.arrayToEnum=e=>{let t={};for(let r of e)t[r]=r;return t},o.getValidEnumValues=e=>{let t=o.objectKeys(e).filter(t=>"number"!=typeof e[e[t]]),r={};for(let n of t)r[n]=e[n];return o.objectValues(r)},o.objectValues=e=>o.objectKeys(e).map(function(t){return e[t]}),o.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},o.find=(e,t)=>{for(let r of e)if(t(r))return r},o.isInteger="function"==typeof Number.isInteger?e=>Number.isInteger(e):e=>"number"==typeof e&&Number.isFinite(e)&&Math.floor(e)===e,o.joinValues=function(e,t=" | "){return e.map(e=>"string"==typeof e?`'${e}'`:e).join(t)},o.jsonStringifyReplacer=(e,t)=>"bigint"==typeof t?t.toString():t,(i||(i={})).mergeShapes=(e,t)=>({...e,...t});let a=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 a.undefined;case"string":return a.string;case"number":return Number.isNaN(e)?a.nan:a.number;case"boolean":return a.boolean;case"function":return a.function;case"bigint":return a.bigint;case"symbol":return a.symbol;case"object":if(Array.isArray(e))return a.array;if(null===e)return a.null;if(e.then&&"function"==typeof e.then&&e.catch&&"function"==typeof e.catch)return a.promise;if("u">typeof Map&&e instanceof Map)return a.map;if("u">typeof Set&&e instanceof Set)return a.set;if("u">typeof Date&&e instanceof Date)return a.date;return a.object;default:return a.unknown}}},59140(e,t,r){"use strict";let n;r.d(t,{k5:()=>eR,gM:()=>e$,bz:()=>ek,g1:()=>eE,zM:()=>eM,ai:()=>eS,Ik:()=>eO,YO:()=>eN,Yj:()=>e_,eu:()=>eT,KC:()=>eC});var i,o,a,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=a||(a={})).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,o=[...r,...i.path||[]],a={...i,path:o};if(void 0!==i.message)return{...i,path:o,message:i.message};let s="";for(let e of n.filter(e=>!!e).slice().reverse())s=e(a,{data:t,defaultError:s}).message;return{...i,path:o,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 x(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:o}=e;return"invalid_enum_value"===t.code?{message:o??i.defaultError}:void 0===i.data?{message:o??n??i.defaultError}:"invalid_type"!==t.code?{message:i.defaultError}:{message:o??r??i.defaultError}},description:i}}class w{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),o=()=>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||(o(),!1)):!!i||(o(),!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 K.create(this)}promise(){return ef.create(this,this._def)}or(e){return Q.create([this,e],this._def)}and(e){return er.create(this,e,this._def)}transform(e){return new eh({...x(this._def),schema:this,typeName:s.ZodEffects,effect:{type:"transform",transform:e}})}default(e){return new ev({...x(this._def),innerType:this,defaultValue:"function"==typeof e?e:()=>e,typeName:s.ZodDefault})}brand(){return new ex({typeName:s.ZodBranded,type:this,...x(this._def)})}catch(e){return new ey({...x(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 ew.create(this,e)}readonly(){return eA.create(this)}isOptional(){return this.safeParse(void 0).success}isNullable(){return this.safeParse(null).success}}let A=/^c[^\s-]{8,}$/i,_=/^[0-9a-z]+$/,S=/^[0-9A-HJKMNP-TV-Z]{26}$/i,M=/^[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,k=/^[a-z0-9_-]{21}$/i,N=/^[A-Za-z0-9-_]+\.[A-Za-z0-9-_]+\.[A-Za-z0-9-_]*$/,O=/^[-+]?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)?)??$/,C=/^(?!\.)(?!.*\.\.)([A-Z0-9_'+\-\.]*)[A-Z0-9_+-]@([A-Z0-9][A-Z0-9\-]*\.)+[A-Z]{2,}$/i,$=/^(?:(?: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])$/,E=/^(?:(?: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])$/,T=/^(([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}=))?$/,P=/^([0-9a-zA-Z-_]{4})*(([0-9a-zA-Z-_]{2}(==)?)|([0-9a-zA-Z-_]{3}(=)?))?$/,j="((\\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(`^${j}$`);function B(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 L extends w{_parse(e){var t,r,i,o;let a;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(a=this._getOrReturnCtx(e,a),{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(a=this._getOrReturnCtx(e,a),{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)&&(a=this._getOrReturnCtx(e,a),t?d(a,{code:l.eq.too_big,maximum:c.value,type:"string",inclusive:!0,exact:!0,message:c.message}):r&&d(a,{code:l.eq.too_small,minimum:c.value,type:"string",inclusive:!0,exact:!0,message:c.message}),s.dirty())}else if("email"===c.kind)C.test(e.data)||(d(a=this._getOrReturnCtx(e,a),{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(a=this._getOrReturnCtx(e,a),{validation:"emoji",code:l.eq.invalid_string,message:c.message}),s.dirty());else if("uuid"===c.kind)M.test(e.data)||(d(a=this._getOrReturnCtx(e,a),{validation:"uuid",code:l.eq.invalid_string,message:c.message}),s.dirty());else if("nanoid"===c.kind)k.test(e.data)||(d(a=this._getOrReturnCtx(e,a),{validation:"nanoid",code:l.eq.invalid_string,message:c.message}),s.dirty());else if("cuid"===c.kind)A.test(e.data)||(d(a=this._getOrReturnCtx(e,a),{validation:"cuid",code:l.eq.invalid_string,message:c.message}),s.dirty());else if("cuid2"===c.kind)_.test(e.data)||(d(a=this._getOrReturnCtx(e,a),{validation:"cuid2",code:l.eq.invalid_string,message:c.message}),s.dirty());else if("ulid"===c.kind)S.test(e.data)||(d(a=this._getOrReturnCtx(e,a),{validation:"ulid",code:l.eq.invalid_string,message:c.message}),s.dirty());else if("url"===c.kind)try{new URL(e.data)}catch{d(a=this._getOrReturnCtx(e,a),{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(a=this._getOrReturnCtx(e,a),{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(a=this._getOrReturnCtx(e,a),{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(a=this._getOrReturnCtx(e,a),{code:l.eq.invalid_string,validation:{startsWith:c.value},message:c.message}),s.dirty()):"endsWith"===c.kind?e.data.endsWith(c.value)||(d(a=this._getOrReturnCtx(e,a),{code:l.eq.invalid_string,validation:{endsWith:c.value},message:c.message}),s.dirty()):"datetime"===c.kind?(function(e){let t=`${j}T${B(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(a=this._getOrReturnCtx(e,a),{code:l.eq.invalid_string,validation:"datetime",message:c.message}),s.dirty()):"date"===c.kind?z.test(e.data)||(d(a=this._getOrReturnCtx(e,a),{code:l.eq.invalid_string,validation:"date",message:c.message}),s.dirty()):"time"===c.kind?RegExp(`^${B(c)}$`).test(e.data)||(d(a=this._getOrReturnCtx(e,a),{code:l.eq.invalid_string,validation:"time",message:c.message}),s.dirty()):"duration"===c.kind?O.test(e.data)||(d(a=this._getOrReturnCtx(e,a),{validation:"duration",code:l.eq.invalid_string,message:c.message}),s.dirty()):"ip"===c.kind?(t=e.data,!(("v4"===(r=c.version)||!r)&&$.test(t)||("v6"===r||!r)&&T.test(t))&&1&&(d(a=this._getOrReturnCtx(e,a),{validation:"ip",code:l.eq.invalid_string,message:c.message}),s.dirty())):"jwt"===c.kind?!function(e,t){if(!N.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(a=this._getOrReturnCtx(e,a),{validation:"jwt",code:l.eq.invalid_string,message:c.message}),s.dirty()):"cidr"===c.kind?(i=e.data,!(("v4"===(o=c.version)||!o)&&E.test(i)||("v6"===o||!o)&&R.test(i))&&1&&(d(a=this._getOrReturnCtx(e,a),{validation:"cidr",code:l.eq.invalid_string,message:c.message}),s.dirty())):"base64"===c.kind?I.test(e.data)||(d(a=this._getOrReturnCtx(e,a),{validation:"base64",code:l.eq.invalid_string,message:c.message}),s.dirty()):"base64url"===c.kind?P.test(e.data)||(d(a=this._getOrReturnCtx(e,a),{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,...a.errToObj(r)})}_addCheck(e){return new L({...this._def,checks:[...this._def.checks,e]})}email(e){return this._addCheck({kind:"email",...a.errToObj(e)})}url(e){return this._addCheck({kind:"url",...a.errToObj(e)})}emoji(e){return this._addCheck({kind:"emoji",...a.errToObj(e)})}uuid(e){return this._addCheck({kind:"uuid",...a.errToObj(e)})}nanoid(e){return this._addCheck({kind:"nanoid",...a.errToObj(e)})}cuid(e){return this._addCheck({kind:"cuid",...a.errToObj(e)})}cuid2(e){return this._addCheck({kind:"cuid2",...a.errToObj(e)})}ulid(e){return this._addCheck({kind:"ulid",...a.errToObj(e)})}base64(e){return this._addCheck({kind:"base64",...a.errToObj(e)})}base64url(e){return this._addCheck({kind:"base64url",...a.errToObj(e)})}jwt(e){return this._addCheck({kind:"jwt",...a.errToObj(e)})}ip(e){return this._addCheck({kind:"ip",...a.errToObj(e)})}cidr(e){return this._addCheck({kind:"cidr",...a.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,...a.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,...a.errToObj(e?.message)})}duration(e){return this._addCheck({kind:"duration",...a.errToObj(e)})}regex(e,t){return this._addCheck({kind:"regex",regex:e,...a.errToObj(t)})}includes(e,t){return this._addCheck({kind:"includes",value:e,position:t?.position,...a.errToObj(t?.message)})}startsWith(e,t){return this._addCheck({kind:"startsWith",value:e,...a.errToObj(t)})}endsWith(e,t){return this._addCheck({kind:"endsWith",value:e,...a.errToObj(t)})}min(e,t){return this._addCheck({kind:"min",value:e,...a.errToObj(t)})}max(e,t){return this._addCheck({kind:"max",value:e,...a.errToObj(t)})}length(e,t){return this._addCheck({kind:"length",value:e,...a.errToObj(t)})}nonempty(e){return this.min(1,a.errToObj(e))}trim(){return new L({...this._def,checks:[...this._def.checks,{kind:"trim"}]})}toLowerCase(){return new L({...this._def,checks:[...this._def.checks,{kind:"toLowerCase"}]})}toUpperCase(){return new L({...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}}L.create=e=>new L({checks:[],typeName:s.ZodString,coerce:e?.coerce??!1,...x(e)});class D extends w{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,a.toString(t))}gt(e,t){return this.setLimit("min",e,!1,a.toString(t))}lte(e,t){return this.setLimit("max",e,!0,a.toString(t))}lt(e,t){return this.setLimit("max",e,!1,a.toString(t))}setLimit(e,t,r,n){return new D({...this._def,checks:[...this._def.checks,{kind:e,value:t,inclusive:r,message:a.toString(n)}]})}_addCheck(e){return new D({...this._def,checks:[...this._def.checks,e]})}int(e){return this._addCheck({kind:"int",message:a.toString(e)})}positive(e){return this._addCheck({kind:"min",value:0,inclusive:!1,message:a.toString(e)})}negative(e){return this._addCheck({kind:"max",value:0,inclusive:!1,message:a.toString(e)})}nonpositive(e){return this._addCheck({kind:"max",value:0,inclusive:!0,message:a.toString(e)})}nonnegative(e){return this._addCheck({kind:"min",value:0,inclusive:!0,message:a.toString(e)})}multipleOf(e,t){return this._addCheck({kind:"multipleOf",value:e,message:a.toString(t)})}finite(e){return this._addCheck({kind:"finite",message:a.toString(e)})}safe(e){return this._addCheck({kind:"min",inclusive:!0,value:Number.MIN_SAFE_INTEGER,message:a.toString(e)})._addCheck({kind:"max",inclusive:!0,value:Number.MAX_SAFE_INTEGER,message:a.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)}}D.create=e=>new D({checks:[],typeName:s.ZodNumber,coerce:e?.coerce||!1,...x(e)});class F extends w{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,a.toString(t))}gt(e,t){return this.setLimit("min",e,!1,a.toString(t))}lte(e,t){return this.setLimit("max",e,!0,a.toString(t))}lt(e,t){return this.setLimit("max",e,!1,a.toString(t))}setLimit(e,t,r,n){return new F({...this._def,checks:[...this._def.checks,{kind:e,value:t,inclusive:r,message:a.toString(n)}]})}_addCheck(e){return new F({...this._def,checks:[...this._def.checks,e]})}positive(e){return this._addCheck({kind:"min",value:BigInt(0),inclusive:!1,message:a.toString(e)})}negative(e){return this._addCheck({kind:"max",value:BigInt(0),inclusive:!1,message:a.toString(e)})}nonpositive(e){return this._addCheck({kind:"max",value:BigInt(0),inclusive:!0,message:a.toString(e)})}nonnegative(e){return this._addCheck({kind:"min",value:BigInt(0),inclusive:!0,message:a.toString(e)})}multipleOf(e,t){return this._addCheck({kind:"multipleOf",value:e,message:a.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}}F.create=e=>new F({checks:[],typeName:s.ZodBigInt,coerce:e?.coerce??!1,...x(e)});class Z extends w{_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)}}Z.create=e=>new Z({typeName:s.ZodBoolean,coerce:e?.coerce||!1,...x(e)});class W extends w{_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 W({...this._def,checks:[...this._def.checks,e]})}min(e,t){return this._addCheck({kind:"min",value:e.getTime(),message:a.toString(t)})}max(e,t){return this._addCheck({kind:"max",value:e.getTime(),message:a.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}}W.create=e=>new W({checks:[],coerce:e?.coerce||!1,typeName:s.ZodDate,...x(e)});class q extends w{_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)}}q.create=e=>new q({typeName:s.ZodSymbol,...x(e)});class V extends w{_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,...x(e)});class H extends w{_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)}}H.create=e=>new H({typeName:s.ZodNull,...x(e)});class U extends w{constructor(){super(...arguments),this._any=!0}_parse(e){return g(e.data)}}U.create=e=>new U({typeName:s.ZodAny,...x(e)});class G extends w{constructor(){super(...arguments),this._unknown=!0}_parse(e){return g(e.data)}}G.create=e=>new G({typeName:s.ZodUnknown,...x(e)});class X extends w{_parse(e){let t=this._getOrReturnCtx(e);return d(t,{code:l.eq.invalid_type,expected:u.Zp.never,received:t.parsedType}),h}}X.create=e=>new X({typeName:s.ZodNever,...x(e)});class Y extends w{_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)}}Y.create=e=>new Y({typeName:s.ZodVoid,...x(e)});class K extends w{_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 K({...this._def,minLength:{value:e,message:a.toString(t)}})}max(e,t){return new K({...this._def,maxLength:{value:e,message:a.toString(t)}})}length(e,t){return new K({...this._def,exactLength:{value:e,message:a.toString(t)}})}nonempty(e){return this.min(1,e)}}K.create=(e,t)=>new K({type:e,minLength:null,maxLength:null,exactLength:null,typeName:s.ZodArray,...x(t)});class J extends w{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(),o=[];if(!(this._def.catchall instanceof X&&"strip"===this._def.unknownKeys))for(let e in r.data)i.includes(e)||o.push(e);let a=[];for(let e of i){let t=n[e],i=r.data[e];a.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 X){let e=this._def.unknownKeys;if("passthrough"===e)for(let e of o)a.push({key:{status:"valid",value:e},value:{status:"valid",value:r.data[e]}});else if("strict"===e)o.length>0&&(d(r,{code:l.eq.unrecognized_keys,keys:o}),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 o){let n=r.data[t];a.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 a){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,a)}get shape(){return this._def.shape()}strict(e){return a.errToObj,new J({...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:a.errToObj(e).message??n}:{message:n}}}:{}})}strip(){return new J({...this._def,unknownKeys:"strip"})}passthrough(){return new J({...this._def,unknownKeys:"passthrough"})}extend(e){return new J({...this._def,shape:()=>({...this._def.shape(),...e})})}merge(e){return new J({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 J({...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 J({...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 J({...this._def,shape:()=>t})}deepPartial(){return function e(t){if(t instanceof J){let r={};for(let n in t.shape){let i=t.shape[n];r[n]=em.create(e(i))}return new J({...t._def,shape:()=>r})}if(t instanceof K)return new K({...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 J({...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 J({...this._def,shape:()=>t})}keyof(){return ec(u.ZS.objectKeys(this.shape))}}J.create=(e,t)=>new J({shape:()=>e,unknownKeys:"strip",catchall:X.create(),typeName:s.ZodObject,...x(t)}),J.strictCreate=(e,t)=>new J({shape:()=>e,unknownKeys:"strict",catchall:X.create(),typeName:s.ZodObject,...x(t)}),J.lazycreate=(e,t)=>new J({shape:e,unknownKeys:"strip",catchall:X.create(),typeName:s.ZodObject,...x(t)});class Q extends w{_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},o=i._parseSync({data:t.data,path:t.path,parent:r});if("valid"===o.status)return o;"dirty"!==o.status||e||(e={result:o,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}}Q.create=(e,t)=>new Q({options:e,typeName:s.ZodUnion,...x(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 H)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 ex)return ee(e.unwrap());else if(e instanceof eA)return ee(e.unwrap());else if(e instanceof ey)return ee(e._def.innerType);else return[]};class et extends w{_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,...x(r)})}}class er extends w{_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)),o={...t,...r};for(let n of i){let i=e(t[n],r[n]);if(!i.valid)return{valid:!1};o[n]=i.data}return{valid:!0,data:o}}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 o=e(t[i],r[i]);if(!o.valid)return{valid:!1};n.push(o.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,...x(r)});class en extends w{_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,...x(t)})};class ei extends w{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,o=this._def.valueType;for(let e in r.data)n.push({key:i._parse(new y(r,e,r.path,e)),value:o._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 w?{keyType:e,valueType:t,typeName:s.ZodRecord,...x(r)}:{keyType:L.create(),valueType:e,typeName:s.ZodRecord,...x(t)})}}class eo extends w{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,o=[...r.data.entries()].map(([e,t],o)=>({key:n._parse(new y(r,e,r.path,[o,"key"])),value:i._parse(new y(r,t,r.path,[o,"value"]))}));if(r.common.async){let e=new Map;return Promise.resolve().then(async()=>{for(let r of o){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 o){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}}}}eo.create=(e,t,r)=>new eo({valueType:t,keyType:e,typeName:s.ZodMap,...x(r)});class ea extends w{_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 o(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 a=[...r.data.values()].map((e,t)=>i._parse(new y(r,e,r.path,t)));return r.common.async?Promise.all(a).then(e=>o(e)):o(a)}min(e,t){return new ea({...this._def,minSize:{value:e,message:a.toString(t)}})}max(e,t){return new ea({...this._def,maxSize:{value:e,message:a.toString(t)}})}size(e,t){return this.min(e,t).max(e,t)}nonempty(e){return this.min(1,e)}}ea.create=(e,t)=>new ea({valueType:e,minSize:null,maxSize:null,typeName:s.ZodSet,...x(t)});class es extends w{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},o=t.data;if(this._def.returns instanceof ef){let e=this;return g(async function(...t){let a=new l.G([]),s=await e._def.args.parseAsync(t,i).catch(e=>{throw a.addIssue(r(t,e)),a}),u=await Reflect.apply(o,this,s);return await e._def.returns._def.type.parseAsync(u,i).catch(e=>{throw a.addIssue(n(u,e)),a})})}{let e=this;return g(function(...t){let a=e._def.args.safeParse(t,i);if(!a.success)throw new l.G([r(t,a.error)]);let s=Reflect.apply(o,this,a.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(G.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(G.create()),returns:t||G.create(),typeName:s.ZodFunction,...x(r)})}}class el extends w{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,...x(t)});class eu extends w{_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,...x(t)})}eu.create=(e,t)=>new eu({value:e,typeName:s.ZodLiteral,...x(t)});class ep extends w{_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 w{_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,...x(t)});class ef extends w{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,...x(t)});class eh extends w{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 o=n.transform(e.value,i);if(o instanceof Promise)throw Error("Asynchronous transform encountered during synchronous parse operation. Use .parseAsync instead.");return{status:t.value,value:o}}u.ZS.assertNever(n)}}eh.create=(e,t,r)=>new eh({schema:e,typeName:s.ZodEffects,effect:t,...x(r)}),eh.createWithPreprocess=(e,t,r)=>new eh({schema:t,effect:{type:"preprocess",transform:e},typeName:s.ZodEffects,...x(r)});class em extends w{_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,...x(t)});class eg extends w{_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,...x(t)});class ev extends w{_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,...x(t)});class ey extends w{_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,...x(t)});class eb extends w{_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,...x(e)}),Symbol("zod_brand");class ex extends w{_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 ew extends w{_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 ew({in:e,out:t,typeName:s.ZodPipeline})}}class eA extends w{_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}}eA.create=(e,t)=>new eA({innerType:e,typeName:s.ZodReadonly,...x(t)}),J.lazycreate,(o=s||(s={})).ZodString="ZodString",o.ZodNumber="ZodNumber",o.ZodNaN="ZodNaN",o.ZodBigInt="ZodBigInt",o.ZodBoolean="ZodBoolean",o.ZodDate="ZodDate",o.ZodSymbol="ZodSymbol",o.ZodUndefined="ZodUndefined",o.ZodNull="ZodNull",o.ZodAny="ZodAny",o.ZodUnknown="ZodUnknown",o.ZodNever="ZodNever",o.ZodVoid="ZodVoid",o.ZodArray="ZodArray",o.ZodObject="ZodObject",o.ZodUnion="ZodUnion",o.ZodDiscriminatedUnion="ZodDiscriminatedUnion",o.ZodIntersection="ZodIntersection",o.ZodTuple="ZodTuple",o.ZodRecord="ZodRecord",o.ZodMap="ZodMap",o.ZodSet="ZodSet",o.ZodFunction="ZodFunction",o.ZodLazy="ZodLazy",o.ZodLiteral="ZodLiteral",o.ZodEnum="ZodEnum",o.ZodEffects="ZodEffects",o.ZodNativeEnum="ZodNativeEnum",o.ZodOptional="ZodOptional",o.ZodNullable="ZodNullable",o.ZodDefault="ZodDefault",o.ZodCatch="ZodCatch",o.ZodPromise="ZodPromise",o.ZodBranded="ZodBranded",o.ZodPipeline="ZodPipeline",o.ZodReadonly="ZodReadonly";let e_=L.create,eS=D.create;eb.create,F.create;let eM=Z.create;W.create,q.create,V.create,H.create;let ek=U.create;G.create,X.create,Y.create;let eN=K.create,eO=J.create;J.strictCreate;let eC=Q.create,e$=et.create;er.create,en.create;let eE=ei.create;eo.create,ea.create,es.create,el.create;let eT=eu.create,eR=ep.create;ed.create,ef.create,eh.create,em.create,eg.create,eh.createWithPreprocess,ew.create}}]);