@stlite/desktop 0.96.0 → 0.97.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 (159) hide show
  1. package/CHANGELOG.md +6 -0
  2. package/bin/dump_artifacts.js +1 -1
  3. package/build/assets/{ErrorOutline.esm-_LuTQzkr-BFWi9Uuj.js → ErrorOutline.esm-lsdlHF0t-DG4LSxex.js} +1 -1
  4. package/build/assets/{FileDownload.esm-CUqXYNk4-DieQ2Qle.js → FileDownload.esm-B67hf_fm-CYQKuYJG.js} +1 -1
  5. package/build/assets/FileHelper-CfZ5yPb2-CNHTcjh9.js +5 -0
  6. package/build/assets/{FormClearHelper-C58X4iX0-CI3cpm91.js → FormClearHelper-XrLdNEJa-DVEjd1cV.js} +1 -1
  7. package/build/assets/{InputInstructions-BSpH125g-CSupbuK3.js → InputInstructions-UPXPLzmg-Q7bu80af.js} +2 -2
  8. package/build/assets/Particles-BG5hjQKX-C7A0Knla.js +1 -0
  9. package/build/assets/{ProgressBar-CQHaVJeY-Bo6RDYz5.js → ProgressBar-E3DTwBEC-BjaNqN1B.js} +2 -2
  10. package/build/assets/StreamlitSyntaxHighlighter-CzihVVQU-DKtwdTjA.js +9 -0
  11. package/build/assets/TableChart.esm-DTCdMC22-C2aHYx-P.js +1 -0
  12. package/build/assets/Toolbar-DencJ98c--L3IVNu_.js +1 -0
  13. package/build/assets/UploadFileInfo-DdcsXhjv-m2CBXl3F.js +1 -0
  14. package/build/assets/WidgetLabelHelpIconInline-DFAc7fKv-BB1k3kRL.js +1 -0
  15. package/build/assets/_baseAssignValue-D2hePX0_-CX8WO6Yp.js +1 -0
  16. package/build/assets/{base-input-CAXjxi6E-LJzeEbPm.js → base-input-BPl9JMAl-yC1GT4Gd.js} +3 -3
  17. package/build/assets/{checkbox-OEhCo8NJ-C1rXZb97.js → checkbox-BCtTdZut-CgBE95kP.js} +2 -2
  18. package/build/assets/createDownloadLinkElement-D-zJ1ZGH-MUElf4MM.js +1 -0
  19. package/build/assets/createSuper-Csct9QVD-vLz3pY3G.js +1 -0
  20. package/build/assets/data-grid-overlay-editor-58Vv1cYM-BTQbyoqC.js +1 -0
  21. package/build/assets/{downloader-DcCTL3Wz-Dj-02g6N.js → downloader-DcCTL3Wz-CCWe5qlA.js} +1 -1
  22. package/build/assets/{embed-DJe7ZhON-C4OnDOK-.js → embed-4M_Y1tyc-DYkZAF8O.js} +14 -14
  23. package/build/assets/{es6--XPcqeHG-2BbC2xK9.js → es6--XPcqeHG-7ATg0sOb.js} +2 -2
  24. package/build/assets/formatMoment-DEtsTHwA-BeQagUzn.js +1 -0
  25. package/build/assets/formatNumber-ep44bWil-jKcj-W8C.js +1 -0
  26. package/build/assets/iconPosition-D6yC8Xnj-BF1h45AJ.js +1 -0
  27. package/build/assets/iframeResizer.contentWindow-nTwp-zqr-CtsMNeCZ.js +1 -0
  28. package/build/assets/index--TzMnXzp-DAvnEXlj.js +1 -0
  29. package/build/assets/index--qHBza9B-Cw3TTMgu.js +1 -0
  30. package/build/assets/index-B-mlHTWW-DxFrd5NG.js +1 -0
  31. package/build/assets/{index-Cbq5ClnA-Ct1ftt5G.js → index-B-vlNoRi-Cx4hHKp7.js} +1 -1
  32. package/build/assets/{index-CF9SDiIL-0Yw8O39Y.js → index-B7jXK8tg-DQuHfWI9.js} +1 -1
  33. package/build/assets/index-BFmSYBo1-C1-2gL1R.js +2 -0
  34. package/build/assets/{index-Cp-N8m1m-CSwdpflI.js → index-BIskStic-GEaJjVf4.js} +3 -3
  35. package/build/assets/index-BmOxzNZt-CNMeXzFc.js +1 -0
  36. package/build/assets/{index-DfPnrVLL-B6NKOBTt.js → index-BmPxToPj-BM0EGyRT.js} +1 -1
  37. package/build/assets/index-BmXuG0WA-D_Ql4e0d.js +3 -0
  38. package/build/assets/index-BtV4cH-G-DZqE8EFk.js +1 -0
  39. package/build/assets/index-BwXCTp7d-CbCsXHhb.js +6 -0
  40. package/build/assets/index-BwaRZjpn-BcW7Mc-p.js +1 -0
  41. package/build/assets/index-BzkAb_Ru-BoJQq1Du.js +1 -0
  42. package/build/assets/{index-NPM6VaN3-C-0cbqN2.js → index-C5pyI-9n-BoqvCp9L.js} +1 -1
  43. package/build/assets/index-CHTMxzEE-CdrOqTD2.js +1 -0
  44. package/build/assets/index-CJJUSpBk-Cjx3_stH.js +2 -0
  45. package/build/assets/{index-Bck9VlwE-zB2PlFuX.js → index-CWwI7Day-CBbcYz7C.js} +3 -3
  46. package/build/assets/{index-DttfDE80-GomZzukD.js → index-CYKyPdc--DXQt2pbH.js} +1 -1
  47. package/build/assets/index-CYavJtAA-CEB9mFy5.js +11 -0
  48. package/build/assets/index-C_AtJDfm-C2sFKVUp.js +1 -0
  49. package/build/assets/index-Cc93rxqK-qmLHI1ce.js +1 -0
  50. package/build/assets/index-CgwImjw9-vhGwcoU0.js +1 -0
  51. package/build/assets/{index-CY18be0x-Bq4JW-41.js → index-CiGWj_Vp-n6pbS_He.js} +1 -1
  52. package/build/assets/index-Cp9lKUfY-DCgJbJZE.js +1 -0
  53. package/build/assets/index-CrLOtTTY-_bXB7Npw.js +2 -0
  54. package/build/assets/{index-BHN72E4J-BztQAHMJ.js → index-CuAftQdk-D76l7Kt4.js} +1 -1
  55. package/build/assets/{index-R0bDPfYF-CRQIdCoC.js → index-D0DUjycF-DZpBbVrj.js} +2 -2
  56. package/build/assets/index-D1pkaPju-DGUZOgpo.js +1 -0
  57. package/build/assets/index-D6IEgvdJ-B-rltr1-.js +1 -0
  58. package/build/assets/index-D9TZavtE.css +1 -0
  59. package/build/assets/{index-BwqdV017-BaIzlXlX.js → index-DQ7wfL_P-DAp2jN40.js} +2 -2
  60. package/build/assets/{index-BrYfiXJ9-D7No2wma.js → index-DR-j-FYy-DJdOMdE8.js} +1 -1
  61. package/build/assets/index-DUNdG0N4-BKyH_Fci.js +2 -0
  62. package/build/assets/index-Df-1Z3LJ-bsVAaBS1.js +1 -0
  63. package/build/assets/index-Dfye6cAn-CH-9suNF.js +1 -0
  64. package/build/assets/index-DhMU6AlU-DzPhysZa.js +3789 -0
  65. package/build/assets/index-DjAHjI25-oZ9XAxp1.js +27 -0
  66. package/build/assets/index-DlPzHASD-B0KSeIYY.js +1 -0
  67. package/build/assets/index-DrLK8ov3-Stod2ydK.js +2 -0
  68. package/build/assets/index-DtFJwl5H-Dn2VZIyI.js +1 -0
  69. package/build/assets/{index-CJA4Tdig-Rs7zFCTh.js → index-DuZXLtJ1-BxktJ87b.js} +1 -1
  70. package/build/assets/index-H5hDyygX-DMvEgj-E.js +1 -0
  71. package/build/assets/index-LD7yKakY-9tfSlqzu.js +1 -0
  72. package/build/assets/index-LeNVxf2A-B46Z4XAZ.js +1 -0
  73. package/build/assets/index-QsvFitQg-IS60zSNc.js +1 -0
  74. package/build/assets/index-YCKUmi7k-wKVbmOTE.js +1 -0
  75. package/build/assets/index-f_0uAugs-KaRkqnk8.js +1 -0
  76. package/build/assets/index-nhNM5UeG.js +185 -0
  77. package/build/assets/index-pi_S-NOw-DHRw2FEx.js +198 -0
  78. package/build/assets/index-saRTHQRt-Cep0ox_U.js +1 -0
  79. package/build/assets/{input-5gXdrXd2-J6HaBKjM.js → input-BZGQFBY5-B-EqzVpf.js} +2 -2
  80. package/build/assets/{main-DvFfgny--BkQIK2a9.js → main-DD_nsVBV-B-nG1zNN.js} +1 -1
  81. package/build/assets/{memory-B3L1Fctl-mli5o0A1.js → memory-B3L1Fctl-Dwxd_AN8.js} +1 -1
  82. package/build/assets/number-overlay-editor--_WCmOH8-DebLrQQ4.js +9 -0
  83. package/build/assets/numbro-CBbENDeu-C6X7Pww4.js +1 -0
  84. package/build/assets/{pandasStylerUtils-BvB3vP-L-D9viw-G9.js → pandasStylerUtils-DlCnQunN-DDd07kWa.js} +1 -1
  85. package/build/assets/possibleConstructorReturn-i7eTFBhJ-BnzuGOIJ.js +1 -0
  86. package/build/assets/record-CvRL89xC-Cpipd1Kv.js +1 -0
  87. package/build/assets/{sandbox-ChAzL-i--CSnZJIg8.js → sandbox-ChAzL-i--CrJOWfYj.js} +1 -1
  88. package/build/assets/{styled-components-DkuYntx5-DrGZZlKf.js → styled-components-Dq_iSDU9-i1eh3pWs.js} +1 -1
  89. package/build/assets/{timepicker-BMxsIjZb-Uq5-wJ6H.js → timepicker-CL-801So-Sc5MVKGZ.js} +3 -3
  90. package/build/assets/toConsumableArray-CCohTQYb-ClE5WF0y.js +3 -0
  91. package/build/assets/uniqueId-CWWNkcH4-CJJowNJ2.js +1 -0
  92. package/build/assets/{useBasicWidgetState-CzHHKP20-CGMCneWD.js → useBasicWidgetState-BYeS5Lnw-COvJBdtg.js} +1 -1
  93. package/build/assets/{useIntlLocale-5C0LAQxq-ow_F-T5t.js → useIntlLocale-D1zv6Q2y-BpOVDRdF.js} +9 -9
  94. package/build/assets/{useTextInputAutoExpand-BMCOrWKx-DmoV3o2_.js → useTextInputAutoExpand-DEesfW0v-Cv12Lx8Q.js} +2 -2
  95. package/build/assets/{useUpdateUiValue-BtVkPggP-4VTS40xs.js → useUpdateUiValue-DDoOKBFH-DrpUtoEl.js} +1 -1
  96. package/build/assets/{useWaveformController-DuJh2iwj-BQGl9KsR.js → useWaveformController-Betfr4kn-B9JLTJ93.js} +1 -1
  97. package/build/assets/wavesurfer.esm-idh1jvYE-D4Wwdy60.js +74 -0
  98. package/build/assets/withCalculatedWidth-ZZ9bYZZd-CtbnrMaD.js +1 -0
  99. package/build/assets/{withFullScreenWrapper-wajYPLRg-e8FnO2xN.js → withFullScreenWrapper-B-PKqZVg-DWJ8sEV7.js} +1 -1
  100. package/build/index.html +2 -2
  101. package/package.json +3 -3
  102. package/wheels/streamlit-1.53.1-cp313-none-any.whl +0 -0
  103. package/build/assets/FileHelper-DbeeBEs5-Co0d-OBP.js +0 -5
  104. package/build/assets/Particles-6ak5Hlgw-4VTgCETZ.js +0 -1
  105. package/build/assets/StreamlitSyntaxHighlighter-DSYWFRjz-B77VB7yz.js +0 -8
  106. package/build/assets/Toolbar-Cr9ArNQU-D5-awBnv.js +0 -1
  107. package/build/assets/UploadFileInfo-B5SttewO-BfvME59S.js +0 -1
  108. package/build/assets/_baseAssignValue-3fAevQ7t-BOcc6F75.js +0 -1
  109. package/build/assets/createDownloadLinkElement-CbRjLJ8e-NbV49OP9.js +0 -1
  110. package/build/assets/createSuper-bIcQlS98-B8MWK81T.js +0 -1
  111. package/build/assets/data-grid-overlay-editor-DbHL3o_S-CiO7EIHu.js +0 -1
  112. package/build/assets/iframeResizer.contentWindow-9ByjY9IM-BBpPzlnE.js +0 -1
  113. package/build/assets/index-10RiWKwV-Cn-PcXb4.js +0 -3
  114. package/build/assets/index-47jAZmzN-8ZV_muwb.js +0 -1
  115. package/build/assets/index-99W3Zegr-DhiLonYo.js +0 -1
  116. package/build/assets/index-BGCCnxH2-jQwb1QhH.js +0 -1
  117. package/build/assets/index-BSOGSXpv-Bd9gyoUy.js +0 -27
  118. package/build/assets/index-BVhYQGzc-Do7aV0dQ.js +0 -1
  119. package/build/assets/index-BVuioNdm-CVDd_GaD.js +0 -1
  120. package/build/assets/index-BYGDMULw-4dwQq_lE.js +0 -1
  121. package/build/assets/index-B_94eI3S-ADuW4ppz.js +0 -6
  122. package/build/assets/index-Bdi0ug4X.js +0 -181
  123. package/build/assets/index-C6MBr137-B6bz_i6a.js +0 -1
  124. package/build/assets/index-CAtZcI5--D0BcKLsl.js +0 -2
  125. package/build/assets/index-CFA5JkEa-DUK-7VD7.js +0 -1
  126. package/build/assets/index-CaWaI2PT-DvorZu2G.js +0 -2
  127. package/build/assets/index-CceTm1nk-D-m7sDsR.js +0 -1
  128. package/build/assets/index-CucLKMvI-CdFsTlcF.js +0 -1
  129. package/build/assets/index-CxZCITs0-CLi85oo1.js +0 -1
  130. package/build/assets/index-D3vT_IC--BZlisRXs.js +0 -3789
  131. package/build/assets/index-D5L-gN8f-Bny7-WhK.js +0 -11
  132. package/build/assets/index-D7zRUNKG-2cwkh8qP.js +0 -1
  133. package/build/assets/index-D8RPh1xj-BLIXkU4c.js +0 -1
  134. package/build/assets/index-DNE2UpRK-CMtd92Tg.js +0 -1
  135. package/build/assets/index-D_5mY4iN-C3O2lE89.js +0 -1
  136. package/build/assets/index-DnTjZ9IR.css +0 -1
  137. package/build/assets/index-Do4wh7Iw-cPdQGRDQ.js +0 -1
  138. package/build/assets/index-DwedDN1c-C-Y3cCQP.js +0 -1
  139. package/build/assets/index-Fvxtopfe-CxLnCat0.js +0 -1
  140. package/build/assets/index-G4vqu33f-DO7BfNY6.js +0 -1
  141. package/build/assets/index-KWOwopwF-CN_5PcLU.js +0 -2
  142. package/build/assets/index-Q4xI4OhR-D81jje-l.js +0 -1
  143. package/build/assets/index-R1QyBsfg-tcyjJ4fb.js +0 -1
  144. package/build/assets/index-YOustUZZ-CX09XTf8.js +0 -2
  145. package/build/assets/index-b6W2ubHd-BapgUWLx.js +0 -1
  146. package/build/assets/index-h-ZgFEXT-DdL6EMUv.js +0 -2
  147. package/build/assets/index-lGTf3abu-B6CGTEed.js +0 -1
  148. package/build/assets/index-nXfHwIms-cOwCevci.js +0 -198
  149. package/build/assets/index-tU7dWFCN-DURbp79P.js +0 -1
  150. package/build/assets/inherits-Byw8NQvD-DdaLbWVP.js +0 -1
  151. package/build/assets/number-overlay-editor-BQ0qCmxT-5g_cUv4i.js +0 -9
  152. package/build/assets/record-DJsfODTt-CK8X1liM.js +0 -1
  153. package/build/assets/slicedToArray-CrkrjOeW-7_omneg6.js +0 -2
  154. package/build/assets/toConsumableArray-BpgQ3N5A-AHKfFeLf.js +0 -2
  155. package/build/assets/uniqueId-BrCTHDA7-CGglDaT_.js +0 -1
  156. package/build/assets/unsupportedIterableToArray-CFN3yOc2-C4SckrTc.js +0 -1
  157. package/build/assets/wavesurfer.esm-CzjpjtNs-CtBzisOM.js +0 -74
  158. package/build/assets/withCalculatedWidth-C0lBnc3E-BAFtxM9t.js +0 -1
  159. package/wheels/streamlit-1.52.2-cp313-none-any.whl +0 -0
@@ -1 +0,0 @@
1
- import{r as s,K as ye,aL as W,T as Se,l as F,aS as je,m as l,B as g,aR as ze,al as Ce,bC as ve,an as Ie,ao as Ue,aU as Fe,aT as Ee,as as Me,aV as E,ag as ke,ac as M,bl as Re,ap as I,I as R,_ as B}from"./index-Bdi0ug4X.js";import{m as Be}from"./FormClearHelper-C58X4iX0-CI3cpm91.js";import{q as De,C as Le,E as Ae,S as Ve,f as ee,A as k,P as Te,_ as Ne}from"./FileHelper-DbeeBEs5-Co0d-OBP.js";import{K as He,U as Pe}from"./ProgressBar-CQHaVJeY-Bo6RDYz5.js";import{t as P}from"./UploadFileInfo-B5SttewO-BfvME59S.js";const $e=e=>{const t=s.useRef();return s.useEffect(()=>{t.current=e},[e]),t.current};var te=s.forwardRef(function(e,t){var a={fill:"currentColor",xmlns:"http://www.w3.org/2000/svg"};return s.createElement(R,B({iconAttrs:a,iconVerticalAlign:"middle",iconViewBox:"0 0 24 24"},e,{ref:t}),s.createElement("path",{fill:"none",d:"M0 0h24v24H0V0z"}),s.createElement("path",{d:"M15.41 7.41L14 6l-6 6 6 6 1.41-1.41L10.83 12l4.58-4.59z"}))});te.displayName="ChevronLeft";var ae=s.forwardRef(function(e,t){var a={fill:"currentColor",xmlns:"http://www.w3.org/2000/svg"};return s.createElement(R,B({iconAttrs:a,iconVerticalAlign:"middle",iconViewBox:"0 0 24 24"},e,{ref:t}),s.createElement("path",{fill:"none",d:"M0 0h24v24H0V0z"}),s.createElement("path",{d:"M10 6L8.59 7.41 13.17 12l-4.58 4.59L10 18l6-6-6-6z"}))});ae.displayName="ChevronRight";var se=s.forwardRef(function(e,t){var a={fill:"currentColor",xmlns:"http://www.w3.org/2000/svg"};return s.createElement(R,B({iconAttrs:a,iconVerticalAlign:"middle",iconViewBox:"0 0 24 24"},e,{ref:t}),s.createElement("path",{fill:"none",d:"M0 0h24v24H0V0z"}),s.createElement("path",{d:"M19.35 10.04A7.49 7.49 0 0012 4C9.11 4 6.6 5.64 5.35 8.04A5.994 5.994 0 000 14c0 3.31 2.69 6 6 6h13c2.76 0 5-2.24 5-5 0-2.64-2.05-4.78-4.65-4.96zM19 18H6c-2.21 0-4-1.79-4-4 0-2.05 1.53-3.76 3.56-3.97l1.07-.11.5-.95A5.469 5.469 0 0112 6c2.62 0 4.88 1.86 5.39 4.43l.3 1.5 1.53.11A2.98 2.98 0 0122 15c0 1.65-1.35 3-3 3zM8 13h2.55v3h2.9v-3H16l-4-4z"}))});se.displayName="CloudUpload";var le=s.forwardRef(function(e,t){var a={fill:"currentColor",xmlns:"http://www.w3.org/2000/svg"};return s.createElement(R,B({iconAttrs:a,iconVerticalAlign:"middle",iconViewBox:"0 0 24 24"},e,{ref:t}),s.createElement("path",{d:"M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm1 15h-2v-2h2v2zm0-4h-2V7h2v6z"}))});le.displayName="Error";const ie=g("section",{target:"e1b2p2ww17"})(({isDisabled:e,theme:t})=>({display:"flex",gap:t.spacing.lg,alignItems:"center",padding:t.spacing.lg,backgroundColor:t.colors.secondaryBg,borderRadius:t.radii.default,border:t.colors.widgetBorderColor?`${t.sizes.borderWidth} solid ${t.colors.widgetBorderColor}`:void 0,height:t.sizes.largestElementHeight,":focus":{outline:"none"},":focus-visible":{boxShadow:`0 0 0 1px ${t.colors.primary}`},cursor:e?"not-allowed":"pointer"}),""),Xe=g("div",{target:"e1b2p2ww16"})(({theme:e})=>({marginRight:"auto",alignItems:"center",display:"flex",gap:e.spacing.lg,minWidth:0,width:"100%"}),""),ne=g("span",{target:"e1b2p2ww15"})(({theme:e})=>({color:e.colors.darkenedBgMix100}),""),re=g("span",{target:"e1b2p2ww14"})(({theme:e,disabled:t})=>({color:t?e.colors.fadedText40:e.colors.bodyText}),""),Oe=g("span",{target:"e1b2p2ww13"})(({theme:e,disabled:t})=>({fontSize:e.fontSizes.sm,color:t?e.colors.fadedText40:e.colors.fadedText60,display:"block",textOverflow:"ellipsis",overflow:"hidden",whiteSpace:"nowrap",maxWidth:"100%"}),""),_e=g("div",{target:"e1b2p2ww12"})({name:"1s8jot1",styles:"display:flex;flex-direction:column;min-width:0;max-width:100%"}),qe=g("span",{target:"e1b2p2ww11"})({name:"1bmnxg7",styles:"white-space:nowrap"}),oe=g("div",{target:"e1b2p2ww10"})(({theme:e})=>({left:0,right:0,lineHeight:e.lineHeights.tight,paddingTop:e.spacing.md,paddingLeft:e.spacing.lg,paddingRight:e.spacing.lg}),""),Ke=g("ul",{target:"e1b2p2ww9"})(({theme:e})=>({listStyleType:"none",margin:e.spacing.none,padding:e.spacing.none}),""),de=g("li",{target:"e1b2p2ww8"})(({theme:e})=>({margin:e.spacing.none,padding:e.spacing.none}),""),ce=g("div",{target:"e1b2p2ww7"})(({theme:e})=>({display:"flex",alignItems:"baseline",flex:1,paddingLeft:e.spacing.lg,overflow:"hidden"}),""),pe=g("div",{target:"e1b2p2ww6"})(({theme:e,disabled:t})=>({marginRight:e.spacing.sm,marginBottom:e.spacing.twoXS,overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap",color:t?e.colors.fadedText40:e.colors.bodyText}),""),ge=g("div",{target:"e1b2p2ww5"})(({theme:e})=>({display:"flex",alignItems:"center",marginBottom:e.spacing.twoXS}),""),Ye=g("span",{target:"e1b2p2ww4"})(({theme:e})=>({marginRight:e.spacing.twoXS}),""),Qe=g("div",{target:"e1b2p2ww3"})(({theme:e,disabled:t})=>({display:"flex",padding:e.spacing.twoXS,color:t?e.colors.fadedText40:e.colors.darkenedBgMix100}),""),me=g("small",{target:"e1b2p2ww2"})(({theme:e})=>({color:e.colors.redTextColor,fontSize:e.fontSizes.sm,height:e.fontSizes.sm,lineHeight:e.fontSizes.sm,display:"flex",alignItems:"center",whiteSpace:"nowrap"}),""),ue=g("span",{target:"e1b2p2ww1"})({name:"0",styles:""}),Ze=e=>({[ie]:{display:"flex",flexDirection:"column",alignItems:"flex-start",height:"auto",gap:e.spacing.sm},[ne]:{display:"none"},[re]:{marginBottom:e.spacing.twoXS},[oe]:{paddingRight:e.spacing.lg},[ge]:{maxWidth:"inherit",flex:1,alignItems:"flex-start",marginBottom:e.spacing.sm},[pe]:{width:e.sizes.full},[ce]:{flexDirection:"column"},[me]:{height:"auto",whiteSpace:"initial"},[ue]:{display:"none"},[de]:{margin:e.spacing.none,padding:e.spacing.none}}),Je=g("div",{target:"e1b2p2ww0"})(({theme:e,width:t})=>{if(t<Me("23rem"))return Ze(e)},""),We=({multiple:e,acceptedExtensions:t,maxSizeBytes:a,acceptDirectory:o=!1,disabled:d})=>{const c=()=>o?"directories":e?"files":"file",p=()=>t.length?` • ${t.map(j=>j.replace(/^\./,"").toUpperCase()).join(", ")}`:null,u=()=>`Limit ${ee(a,k.Byte,0)} per file`;return l.jsxs(Xe,{"data-testid":"stFileUploaderDropzoneInstructions",children:[l.jsx(ne,{children:l.jsx(I,{content:se,size:"threeXL"})}),l.jsxs(_e,{children:[l.jsxs(re,{disabled:d,children:["Drag and drop ",c()," here"]}),l.jsxs(Oe,{disabled:d,children:[u(),p()]})]})]})},Ge=s.memo(We),et=({onDrop:e,multiple:t,acceptedExtensions:a,maxSizeBytes:o,disabled:d,label:c,acceptDirectory:p=!1})=>l.jsx(Ae,{onDrop:e,multiple:t,accept:Ve(a),maxSize:o,disabled:d,useFsAccessApi:!1,children:({getRootProps:u,getInputProps:j})=>{const w=j({multiple:t||!!p});return l.jsxs(ie,{...u(),"data-testid":"stFileUploaderDropzone",isDisabled:d,"aria-label":c,"aria-disabled":d,children:[l.jsx("input",{"data-testid":"stFileUploaderDropzoneInput",...w,...p&&{webkitdirectory:""}}),l.jsx(Ge,{multiple:t,acceptedExtensions:a,maxSizeBytes:o,acceptDirectory:p,disabled:d}),l.jsx(qe,{children:l.jsx(E,{kind:M.SECONDARY,disabled:d,size:ke.SMALL,children:p?"Browse directories":"Browse files"})})]})}}),tt=s.memo(et),fe=g("small",{target:"e1bju1570"})(({kind:e,disabled:t,theme:a})=>{const{redTextColor:o,fadedText60:d,fadedText40:c}=a.colors;let p=d;return t&&(p=c),e==="danger"&&(p=o),{color:p,fontSize:a.fontSizes.sm,lineHeight:a.lineHeights.tight}},""),at=({fileInfo:e,disabled:t})=>e.status.type==="uploading"?l.jsx(He,{value:e.status.progress,size:Pe.SMALL}):e.status.type==="error"?l.jsxs(me,{children:[l.jsx(Ye,{"data-testid":"stFileUploaderFileErrorMessage",children:e.status.errorMessage}),l.jsx(ue,{children:l.jsx(I,{content:le,size:"lg"})})]}):e.status.type==="uploaded"?l.jsx(fe,{disabled:t,children:ee(e.size,k.Byte)}):null,st=({fileInfo:e,onDelete:t,disabled:a})=>l.jsxs(ge,{className:"stFileUploaderFile","data-testid":"stFileUploaderFile",children:[l.jsx(Qe,{disabled:a,children:l.jsx(I,{content:Te,size:"twoXL"})}),l.jsxs(ce,{className:"stFileUploaderFileData",children:[l.jsx(pe,{className:"stFileUploaderFileName","data-testid":"stFileUploaderFileName",title:e.name,disabled:a,children:e.name}),l.jsx(at,{fileInfo:e,disabled:a})]}),l.jsx("div",{"data-testid":"stFileUploaderDeleteBtn",children:l.jsx(E,{onClick:()=>t(e.id),kind:M.MINIMAL,disabled:a,"aria-label":`Remove ${e.name}`,children:l.jsx(I,{content:Ne,size:"lg"})})})]}),lt=s.memo(st),it=g("div",{target:"e1nlpozb1"})(({theme:e})=>({display:"flex",alignItems:"center",justifyContent:"space-between",paddingBottom:e.spacing.twoXS,marginBottom:e.spacing.twoXS}),""),nt=g("div",{target:"e1nlpozb0"})(({theme:e})=>({display:"flex",alignItems:"center",justifyContent:"center",color:e.colors.fadedText40}),""),rt=({currentPage:e,totalPages:t,onNext:a,onPrevious:o})=>l.jsxs(it,{"data-testid":"stFileUploaderPagination",children:[l.jsx(fe,{children:`Showing page ${e} of ${t}`}),l.jsxs(nt,{children:[l.jsx(E,{onClick:o,kind:M.MINIMAL,children:l.jsx(I,{content:te,size:"xl"})}),l.jsx(E,{onClick:a,kind:M.MINIMAL,children:l.jsx(I,{content:ae,size:"xl"})})]})]}),ot=s.memo(rt),G=(e,t)=>Math.ceil(e.length/t),dt=e=>Re(({pageSize:t,items:a,resetOnAdd:o,...d})=>{const[c,p]=s.useState(0),[u,j]=s.useState(()=>G(a,t)),w=$e(a);s.useEffect(()=>{w&&w.length!==a.length&&j(G(a,t)),w&&w.length<a.length?o&&p(0):c+1>=u&&p(u-1)},[a,c,t,w,o,u]);const b=()=>{p(Math.min(c+1,u-1))},D=()=>{p(Math.max(0,c-1))},z=a.slice(c*t,c*t+t);return l.jsxs(l.Fragment,{children:[l.jsx(e,{items:z,...d}),a.length>t?l.jsx(ot,{pageSize:t,totalPages:u,currentPage:c+1,onNext:b,onPrevious:D}):null]})},e),ct=({items:e,onDelete:t,disabled:a})=>l.jsx(Ke,{children:e.map(o=>l.jsx(de,{children:l.jsx(lt,{fileInfo:o,onDelete:t,disabled:a})},o.id))}),pt=dt(ct),gt=e=>l.jsx(oe,{children:l.jsx(pt,{...e})}),mt=s.memo(gt),ut=(e,t)=>{const a=t.getFileUploaderStateValue(e);if(F(a))return{files:[],nextLocalId:1};const{uploadedFileInfo:o}=a;if(F(o)||o.length===0)return{files:[],nextLocalId:1};let d=1;return{files:o.map(c=>{const p=c.name,u=c.size,j=c.fileId,w=c.fileUrls,b=new P(p,u,d,{type:"uploaded",fileId:j,fileUrls:w});return d+=1,b}),nextLocalId:d}},H=e=>{const t=e.filter(a=>a.status.type==="uploaded").map(a=>{const{name:o,size:d,status:c}=a,{fileId:p,fileUrls:u}=c;return new Fe({fileId:p,fileUrls:u,name:o,size:d})});return new Ee({uploadedFileInfo:t})},ft=({disabled:e,element:t,widgetMgr:a,uploadClient:o,fragmentId:d})=>{const{width:c,elementRef:p}=ye(),{files:u,nextLocalId:j}=s.useMemo(()=>ut(t,a),[t,a]),w=s.useRef(j),[b,D]=s.useState(()=>u),z=s.useRef(b);s.useEffect(()=>{z.current=b},[b]);const[he,$]=s.useState(!1),U=s.useCallback(()=>{const i=w.current;return w.current+=1,i},[]),L=s.useMemo(()=>{const i=t.maxUploadSizeMb;return De(i,k.Megabyte,k.Byte)},[t.maxUploadSizeMb]),S=s.useCallback(i=>{W.flushSync(()=>{D(n=>{const r=typeof i=="function"?i(n):i;return z.current=r,r})})},[]),A=s.useCallback(i=>{W.flushSync(()=>{$(i)})},[$]),X=s.useCallback(i=>{S(n=>[...n,i])},[S]),V=s.useCallback(i=>{i.length!==0&&S(n=>[...n,...i])},[S]),O=s.useCallback(i=>{S(n=>n.filter(r=>r.id!==i))},[S]),C=s.useCallback((i,n)=>{S(r=>r.map(m=>m.id===i?n:m))},[S]),v=s.useCallback(i=>z.current.find(n=>n.id===i),[]),_=b.some(i=>i.status.type==="uploading")||he?"updating":"ready";s.useEffect(()=>{a.getFileUploaderStateValue(t)===void 0&&a.setFileUploaderStateValue(t,H(z.current),{fromUi:!1},d)},[a,t,d]),s.useEffect(()=>{if(_!=="ready")return;const i=H(b),n=a.getFileUploaderStateValue(t);Se(i,n)||a.setFileUploaderStateValue(t,i,{fromUi:!0},d)},[_,b,a,t,d]);const xe=s.useCallback(()=>{S(()=>[]);const i=H([]);a.setFileUploaderStateValue(t,i,{fromUi:!0},d)},[t,d,S,a]);Be({element:t,widgetMgr:a,onFormCleared:xe});const q=s.useCallback(i=>{const n=t.type;if(!n||n.length===0)return!0;const r=i.name.toLowerCase();return n.some(m=>r.endsWith(m.toLowerCase()))},[t.type]),K=s.useCallback(i=>{const n=[],r=[];return i.forEach(m=>{q(m)?n.push(m):r.push({file:m,errors:[{code:"file-invalid-type",message:`${m.type} files are not allowed.`}]})}),{accepted:n,rejected:r}},[q]),Y=s.useCallback((i,n)=>{const r=v(i);F(r)||r.status.type!=="uploading"||C(r.id,r.setStatus({type:"uploaded",fileId:n.fileId,fileUrls:n}))},[v,C]),Q=s.useCallback((i,n)=>{const r=v(n);if(F(r)||r.status.type!=="uploading")return;const m=Math.round(i.loaded*100/i.total);r.status.progress!==m&&C(n,r.setStatus({type:"uploading",abortController:r.status.abortController,progress:m}))},[v,C]),Z=s.useCallback((i,n)=>{const r=new AbortController,m=n.webkitRelativePath||n.name,f=new P(m,n.size,U(),{type:"uploading",abortController:r,progress:1});X(f),o.uploadFile(t,i.uploadUrl,n,h=>Q(h,f.id),r.signal).then(()=>Y(f.id,i)).catch(h=>{h instanceof DOMException&&h.name==="AbortError"||C(f.id,f.setStatus({type:"error",errorMessage:h?h.toString():"Unknown error"}))})},[X,t,U,Y,Q,C,o]),T=s.useCallback(i=>{if(e)return;const n=v(i);F(n)||(n.status.type==="uploading"&&n.status.abortController.abort(),n.status.type==="uploaded"&&n.status.fileUrls.deleteUrl&&o.deleteFile(n.status.fileUrls.deleteUrl),O(i))},[e,v,O,o]),we=s.useCallback((i,n)=>{const{multipleFiles:r}=t,m=!!t.acceptDirectory;let f=[...i],h=[...n];if(m&&f.length>0){const{accepted:y,rejected:x}=K(f);f=y,h=[...h,...x]}if(!r&&f.length===0&&h.length>1){const y=h.findIndex(x=>x.errors.length===1&&x.errors[0].code==="too-many-files");y>=0&&(f.push(h[y].file),h.splice(y,1))}if(o.fetchFileURLs(f).then(y=>{if(!r&&f.length>0){const x=z.current.find(N=>N.status.type!=="error");if(x){A(!0);try{T(x.id)}finally{A(!1)}}}je(y,f).forEach(([x,N])=>{Z(x,N)})}).catch(y=>{V(f.map(x=>new P(x.name,x.size,U(),{type:"error",errorMessage:y})))}),h.length>0){const y=h.map(x=>Le(x,U(),L));V(y)}},[V,T,t,K,L,U,o,Z,A]),J=s.useMemo(()=>b.slice().reverse(),[b]),be=t.type;return l.jsxs(Je,{className:"stFileUploader","data-testid":"stFileUploader",width:c,ref:p,children:[l.jsx(ze,{label:t.label,disabled:e,labelVisibility:Ce(t.labelVisibility?.value),children:t.help&&l.jsx(ve,{children:l.jsx(Ie,{content:t.help,placement:Ue.TOP_RIGHT})})}),l.jsx(tt,{onDrop:we,multiple:t.multipleFiles,acceptedExtensions:be,maxSizeBytes:L,label:t.label,disabled:e,acceptDirectory:!!t.acceptDirectory}),J.length>0&&l.jsx(mt,{items:J,pageSize:3,onDelete:T,resetOnAdd:!0,disabled:e})]})},St=s.memo(ft);export{St as default};
@@ -1 +0,0 @@
1
- import{r as i,O as S,m as o,B as f,aC as T,F as v,aN as n,aO as R,aP as z,a1 as j,R as C}from"./index-Bdi0ug4X.js";const B=f("button",{target:"elibz2u2"})(({theme:e})=>({fontSize:e.fontSizes.sm,lineHeight:e.lineHeights.base,color:e.colors.fadedText60,backgroundColor:e.colors.transparent,fontFamily:"inherit",margin:e.spacing.none,border:"none",boxShadow:"none",padding:e.spacing.none,"&:hover, &:active, &:focus":{border:"none",outline:"none",boxShadow:"none"},"&:hover":{color:e.colors.primary}}),""),E=f("div",{target:"elibz2u1"})(({theme:e})=>({display:"flex",flexDirection:"row",gap:e.spacing.lg,"> span":{marginTop:e.spacing.twoXS}}),""),H=f("div",{target:"elibz2u0"})(({theme:e})=>({display:"flex",flexDirection:"column",gap:e.spacing.sm,alignItems:"start",justifyContent:"center",overflow:"hidden",minHeight:"100%",fontSize:e.fontSizes.sm,lineHeight:e.lineHeights.base,div:{display:"inline-flex"}}),"");function I(e){const t=j(e);return{Body:{props:{"data-testid":"stToast",className:"stToast"},style:{display:"flex",flexDirection:"row",gap:e.spacing.md,width:e.sizes.toastWidth,marginTop:e.spacing.sm,borderTopLeftRadius:e.radii.default,borderTopRightRadius:e.radii.default,borderBottomLeftRadius:e.radii.default,borderBottomRightRadius:e.radii.default,paddingTop:e.spacing.lg,paddingBottom:e.spacing.lg,paddingLeft:e.spacing.twoXL,paddingRight:e.spacing.twoXL,backgroundColor:e.colors.bgColor,filter:t?"brightness(0.98)":"brightness(1.2)",color:e.colors.bodyText,boxShadow:t?"0px 4px 16px rgba(0, 0, 0, 0.16)":"0px 4px 16px rgba(0, 0, 0, 0.7)"}},CloseIcon:{style:{color:e.colors.fadedText40,width:e.fontSizes.lg,height:e.fontSizes.lg,marginRight:`calc(-1 * ${e.spacing.lg} / 2)`,":hover":{color:e.colors.bodyText}}}}}function L(e){if(e.length>104){let t=e.replace(/^(.{104}[^\s]*).*/,"$1");return t.length>104&&(t=t.substring(0,104).split(" ").slice(0,-1).join(" ")),t.trim()}return e}function k({element:e}){const{body:t,icon:r,duration:d}=e,a=S(),c=L(t),l=t!==c,[s,b]=i.useState(!l),[m,x]=i.useState(0),h=i.useCallback(()=>{b(!s)},[s]),g=i.useMemo(()=>I(a),[a]),p=i.useMemo(()=>o.jsxs(E,{expanded:s,children:[r&&o.jsx(T,{iconValue:r,size:"xl",testid:"stToastDynamicIcon"}),o.jsxs(H,{children:[o.jsx(v,{source:s?t:c,allowHTML:!1,isToast:!0}),l&&o.jsx(B,{"data-testid":"stToastViewButton",onClick:h,children:s?"view less":"view more"})]})]}),[l,s,t,r,c,h]);i.useEffect(()=>{if(a.inSidebar)return;const w=C(d)?d===0?0:d*1e3:4e3,u=n.info(p,{overrides:{...g},autoHideDuration:w});return x(u),()=>{n.update(u,{overrides:{Body:{style:{display:"none"}}}}),n.clear(u)}},[]),i.useEffect(()=>{n.update(m,{children:p,overrides:{...g}})},[m,p,g]);const y=o.jsx(R,{kind:z.ERROR,body:"Streamlit API Error: `st.toast` cannot be called directly on the sidebar with `st.sidebar.toast`.\n See our `st.toast` API [docs](https://docs.streamlit.io/develop/api-reference/status/st.toast) for more information."});return o.jsx(o.Fragment,{children:a.inSidebar&&y})}const A=i.memo(k);export{A as default};
@@ -1,6 +0,0 @@
1
- function He(e,t){return function(){return e.apply(t,arguments)}}const{toString:ht}=Object.prototype,{getPrototypeOf:be}=Object,{iterator:te,toStringTag:Je}=Symbol,re=(e=>t=>{const r=ht.call(t);return e[r]||(e[r]=r.slice(8,-1).toLowerCase())})(Object.create(null)),A=e=>(e=e.toLowerCase(),t=>re(t)===e),ne=e=>t=>typeof t===e,{isArray:q}=Array,D=ne("undefined");function H(e){return e!==null&&!D(e)&&e.constructor!==null&&!D(e.constructor)&&R(e.constructor.isBuffer)&&e.constructor.isBuffer(e)}const We=A("ArrayBuffer");function mt(e){let t;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?t=ArrayBuffer.isView(e):t=e&&e.buffer&&We(e.buffer),t}const bt=ne("string"),R=ne("function"),$e=ne("number"),J=e=>e!==null&&typeof e=="object",gt=e=>e===!0||e===!1,Q=e=>{if(re(e)!=="object")return!1;const t=be(e);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(Je in e)&&!(te in e)},yt=e=>{if(!J(e)||H(e))return!1;try{return Object.keys(e).length===0&&Object.getPrototypeOf(e)===Object.prototype}catch{return!1}},wt=A("Date"),Et=A("File"),Ot=A("Blob"),St=A("FileList"),Rt=e=>J(e)&&R(e.pipe),Tt=e=>{let t;return e&&(typeof FormData=="function"&&e instanceof FormData||R(e.append)&&((t=re(e))==="formdata"||t==="object"&&R(e.toString)&&e.toString()==="[object FormData]"))},At=A("URLSearchParams"),[Ct,vt,xt,Nt]=["ReadableStream","Request","Response","Headers"].map(A),jt=e=>e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function W(e,t,{allOwnKeys:r=!1}={}){if(e===null||typeof e>"u")return;let n,o;if(typeof e!="object"&&(e=[e]),q(e))for(n=0,o=e.length;n<o;n++)t.call(null,e[n],n,e);else{if(H(e))return;const i=r?Object.getOwnPropertyNames(e):Object.keys(e),s=i.length;let l;for(n=0;n<s;n++)l=i[n],t.call(null,e[l],l,e)}}function Ke(e,t){if(H(e))return null;t=t.toLowerCase();const r=Object.keys(e);let n=r.length,o;for(;n-- >0;)if(o=r[n],t===o.toLowerCase())return o;return null}const L=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:global,Ve=e=>!D(e)&&e!==L;function de(){const{caseless:e,skipUndefined:t}=Ve(this)&&this||{},r={},n=(o,i)=>{const s=e&&Ke(r,i)||i;Q(r[s])&&Q(o)?r[s]=de(r[s],o):Q(o)?r[s]=de({},o):q(o)?r[s]=o.slice():(!t||!D(o))&&(r[s]=o)};for(let o=0,i=arguments.length;o<i;o++)arguments[o]&&W(arguments[o],n);return r}const Ut=(e,t,r,{allOwnKeys:n}={})=>(W(t,(o,i)=>{r&&R(o)?e[i]=He(o,r):e[i]=o},{allOwnKeys:n}),e),Pt=e=>(e.charCodeAt(0)===65279&&(e=e.slice(1)),e),Ft=(e,t,r,n)=>{e.prototype=Object.create(t.prototype,n),e.prototype.constructor=e,Object.defineProperty(e,"super",{value:t.prototype}),r&&Object.assign(e.prototype,r)},Lt=(e,t,r,n)=>{let o,i,s;const l={};if(t=t||{},e==null)return t;do{for(o=Object.getOwnPropertyNames(e),i=o.length;i-- >0;)s=o[i],(!n||n(s,e,t))&&!l[s]&&(t[s]=e[s],l[s]=!0);e=r!==!1&&be(e)}while(e&&(!r||r(e,t))&&e!==Object.prototype);return t},_t=(e,t,r)=>{e=String(e),(r===void 0||r>e.length)&&(r=e.length),r-=t.length;const n=e.indexOf(t,r);return n!==-1&&n===r},kt=e=>{if(!e)return null;if(q(e))return e;let t=e.length;if(!$e(t))return null;const r=new Array(t);for(;t-- >0;)r[t]=e[t];return r},Bt=(e=>t=>e&&t instanceof e)(typeof Uint8Array<"u"&&be(Uint8Array)),Dt=(e,t)=>{const r=(e&&e[te]).call(e);let n;for(;(n=r.next())&&!n.done;){const o=n.value;t.call(e,o[0],o[1])}},qt=(e,t)=>{let r;const n=[];for(;(r=e.exec(t))!==null;)n.push(r);return n},It=A("HTMLFormElement"),Mt=e=>e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(t,r,n){return r.toUpperCase()+n}),ve=(({hasOwnProperty:e})=>(t,r)=>e.call(t,r))(Object.prototype),zt=A("RegExp"),Xe=(e,t)=>{const r=Object.getOwnPropertyDescriptors(e),n={};W(r,(o,i)=>{let s;(s=t(o,i,e))!==!1&&(n[i]=s||o)}),Object.defineProperties(e,n)},Ht=e=>{Xe(e,(t,r)=>{if(R(e)&&["arguments","caller","callee"].indexOf(r)!==-1)return!1;const n=e[r];if(R(n)){if(t.enumerable=!1,"writable"in t){t.writable=!1;return}t.set||(t.set=()=>{throw Error("Can not rewrite read-only method '"+r+"'")})}})},Jt=(e,t)=>{const r={},n=o=>{o.forEach(i=>{r[i]=!0})};return q(e)?n(e):n(String(e).split(t)),r},Wt=()=>{},$t=(e,t)=>e!=null&&Number.isFinite(e=+e)?e:t;function Kt(e){return!!(e&&R(e.append)&&e[Je]==="FormData"&&e[te])}const Vt=e=>{const t=new Array(10),r=(n,o)=>{if(J(n)){if(t.indexOf(n)>=0)return;if(H(n))return n;if(!("toJSON"in n)){t[o]=n;const i=q(n)?[]:{};return W(n,(s,l)=>{const f=r(s,o+1);!D(f)&&(i[l]=f)}),t[o]=void 0,i}}return n};return r(e,0)},Xt=A("AsyncFunction"),Gt=e=>e&&(J(e)||R(e))&&R(e.then)&&R(e.catch),Ge=((e,t)=>e?setImmediate:t?((r,n)=>(L.addEventListener("message",({source:o,data:i})=>{o===L&&i===r&&n.length&&n.shift()()},!1),o=>{n.push(o),L.postMessage(r,"*")}))(`axios@${Math.random()}`,[]):r=>setTimeout(r))(typeof setImmediate=="function",R(L.postMessage)),Qt=typeof queueMicrotask<"u"?queueMicrotask.bind(L):typeof process<"u"&&process.nextTick||Ge,Zt=e=>e!=null&&R(e[te]),a={isArray:q,isArrayBuffer:We,isBuffer:H,isFormData:Tt,isArrayBufferView:mt,isString:bt,isNumber:$e,isBoolean:gt,isObject:J,isPlainObject:Q,isEmptyObject:yt,isReadableStream:Ct,isRequest:vt,isResponse:xt,isHeaders:Nt,isUndefined:D,isDate:wt,isFile:Et,isBlob:Ot,isRegExp:zt,isFunction:R,isStream:Rt,isURLSearchParams:At,isTypedArray:Bt,isFileList:St,forEach:W,merge:de,extend:Ut,trim:jt,stripBOM:Pt,inherits:Ft,toFlatObject:Lt,kindOf:re,kindOfTest:A,endsWith:_t,toArray:kt,forEachEntry:Dt,matchAll:qt,isHTMLForm:It,hasOwnProperty:ve,hasOwnProp:ve,reduceDescriptors:Xe,freezeMethods:Ht,toObjectSet:Jt,toCamelCase:Mt,noop:Wt,toFiniteNumber:$t,findKey:Ke,global:L,isContextDefined:Ve,isSpecCompliantForm:Kt,toJSONObject:Vt,isAsyncFn:Xt,isThenable:Gt,setImmediate:Ge,asap:Qt,isIterable:Zt};function m(e,t,r,n,o){Error.call(this),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error().stack,this.message=e,this.name="AxiosError",t&&(this.code=t),r&&(this.config=r),n&&(this.request=n),o&&(this.response=o,this.status=o.status?o.status:null)}a.inherits(m,Error,{toJSON:function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:a.toJSONObject(this.config),code:this.code,status:this.status}}});const Qe=m.prototype,Ze={};["ERR_BAD_OPTION_VALUE","ERR_BAD_OPTION","ECONNABORTED","ETIMEDOUT","ERR_NETWORK","ERR_FR_TOO_MANY_REDIRECTS","ERR_DEPRECATED","ERR_BAD_RESPONSE","ERR_BAD_REQUEST","ERR_CANCELED","ERR_NOT_SUPPORT","ERR_INVALID_URL"].forEach(e=>{Ze[e]={value:e}});Object.defineProperties(m,Ze);Object.defineProperty(Qe,"isAxiosError",{value:!0});m.from=(e,t,r,n,o,i)=>{const s=Object.create(Qe);a.toFlatObject(e,s,function(c){return c!==Error.prototype},c=>c!=="isAxiosError");const l=e&&e.message?e.message:"Error",f=t==null&&e?e.code:t;return m.call(s,l,f,r,n,o),e&&s.cause==null&&Object.defineProperty(s,"cause",{value:e,configurable:!0}),s.name=e&&e.name||"Error",i&&Object.assign(s,i),s};const Yt=null;function pe(e){return a.isPlainObject(e)||a.isArray(e)}function Ye(e){return a.endsWith(e,"[]")?e.slice(0,-2):e}function xe(e,t,r){return e?e.concat(t).map(function(n,o){return n=Ye(n),!r&&o?"["+n+"]":n}).join(r?".":""):t}function er(e){return a.isArray(e)&&!e.some(pe)}const tr=a.toFlatObject(a,{},null,function(e){return/^is[A-Z]/.test(e)});function oe(e,t,r){if(!a.isObject(e))throw new TypeError("target must be an object");t=t||new FormData,r=a.toFlatObject(r,{metaTokens:!0,dots:!1,indexes:!1},!1,function(h,p){return!a.isUndefined(p[h])});const n=r.metaTokens,o=r.visitor||c,i=r.dots,s=r.indexes,l=(r.Blob||typeof Blob<"u"&&Blob)&&a.isSpecCompliantForm(t);if(!a.isFunction(o))throw new TypeError("visitor must be a function");function f(h){if(h===null)return"";if(a.isDate(h))return h.toISOString();if(a.isBoolean(h))return h.toString();if(!l&&a.isBlob(h))throw new m("Blob is not supported. Use a Buffer instead.");return a.isArrayBuffer(h)||a.isTypedArray(h)?l&&typeof Blob=="function"?new Blob([h]):Buffer.from(h):h}function c(h,p,d){let E=h;if(h&&!d&&typeof h=="object"){if(a.endsWith(p,"{}"))p=n?p:p.slice(0,-2),h=JSON.stringify(h);else if(a.isArray(h)&&er(h)||(a.isFileList(h)||a.endsWith(p,"[]"))&&(E=a.toArray(h)))return p=Ye(p),E.forEach(function(O,w){!(a.isUndefined(O)||O===null)&&t.append(s===!0?xe([p],w,i):s===null?p:p+"[]",f(O))}),!1}return pe(h)?!0:(t.append(xe(d,p,i),f(h)),!1)}const u=[],b=Object.assign(tr,{defaultVisitor:c,convertValue:f,isVisitable:pe});function g(h,p){if(!a.isUndefined(h)){if(u.indexOf(h)!==-1)throw Error("Circular reference detected in "+p.join("."));u.push(h),a.forEach(h,function(d,E){(!(a.isUndefined(d)||d===null)&&o.call(t,d,a.isString(E)?E.trim():E,p,b))===!0&&g(d,p?p.concat(E):[E])}),u.pop()}}if(!a.isObject(e))throw new TypeError("data must be an object");return g(e),t}function Ne(e){const t={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(e).replace(/[!'()~]|%20|%00/g,function(r){return t[r]})}function ge(e,t){this._pairs=[],e&&oe(e,this,t)}const et=ge.prototype;et.append=function(e,t){this._pairs.push([e,t])};et.toString=function(e){const t=e?function(r){return e.call(this,r,Ne)}:Ne;return this._pairs.map(function(r){return t(r[0])+"="+t(r[1])},"").join("&")};function rr(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+")}function tt(e,t,r){if(!t)return e;const n=r&&r.encode||rr;a.isFunction(r)&&(r={serialize:r});const o=r&&r.serialize;let i;if(o?i=o(t,r):i=a.isURLSearchParams(t)?t.toString():new ge(t,r).toString(n),i){const s=e.indexOf("#");s!==-1&&(e=e.slice(0,s)),e+=(e.indexOf("?")===-1?"?":"&")+i}return e}class je{constructor(){this.handlers=[]}use(t,r,n){return this.handlers.push({fulfilled:t,rejected:r,synchronous:n?n.synchronous:!1,runWhen:n?n.runWhen:null}),this.handlers.length-1}eject(t){this.handlers[t]&&(this.handlers[t]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(t){a.forEach(this.handlers,function(r){r!==null&&t(r)})}}const rt={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},nr=typeof URLSearchParams<"u"?URLSearchParams:ge,or=typeof FormData<"u"?FormData:null,sr=typeof Blob<"u"?Blob:null,ir={isBrowser:!0,classes:{URLSearchParams:nr,FormData:or,Blob:sr},protocols:["http","https","file","blob","url","data"]},ye=typeof window<"u"&&typeof document<"u",he=typeof navigator=="object"&&navigator||void 0,ar=ye&&(!he||["ReactNative","NativeScript","NS"].indexOf(he.product)<0),cr=typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function",lr=ye&&window.location.href||"http://localhost",ur=Object.freeze(Object.defineProperty({__proto__:null,hasBrowserEnv:ye,hasStandardBrowserEnv:ar,hasStandardBrowserWebWorkerEnv:cr,navigator:he,origin:lr},Symbol.toStringTag,{value:"Module"})),S={...ur,...ir};function fr(e,t){return oe(e,new S.classes.URLSearchParams,{visitor:function(r,n,o,i){return S.isNode&&a.isBuffer(r)?(this.append(n,r.toString("base64")),!1):i.defaultVisitor.apply(this,arguments)},...t})}function dr(e){return a.matchAll(/\w+|\[(\w*)]/g,e).map(t=>t[0]==="[]"?"":t[1]||t[0])}function pr(e){const t={},r=Object.keys(e);let n;const o=r.length;let i;for(n=0;n<o;n++)i=r[n],t[i]=e[i];return t}function nt(e){function t(r,n,o,i){let s=r[i++];if(s==="__proto__")return!0;const l=Number.isFinite(+s),f=i>=r.length;return s=!s&&a.isArray(o)?o.length:s,f?(a.hasOwnProp(o,s)?o[s]=[o[s],n]:o[s]=n,!l):((!o[s]||!a.isObject(o[s]))&&(o[s]=[]),t(r,n,o[s],i)&&a.isArray(o[s])&&(o[s]=pr(o[s])),!l)}if(a.isFormData(e)&&a.isFunction(e.entries)){const r={};return a.forEachEntry(e,(n,o)=>{t(dr(n),o,r,0)}),r}return null}function hr(e,t,r){if(a.isString(e))try{return(t||JSON.parse)(e),a.trim(e)}catch(n){if(n.name!=="SyntaxError")throw n}return(r||JSON.stringify)(e)}const $={transitional:rt,adapter:["xhr","http","fetch"],transformRequest:[function(e,t){const r=t.getContentType()||"",n=r.indexOf("application/json")>-1,o=a.isObject(e);if(o&&a.isHTMLForm(e)&&(e=new FormData(e)),a.isFormData(e))return n?JSON.stringify(nt(e)):e;if(a.isArrayBuffer(e)||a.isBuffer(e)||a.isStream(e)||a.isFile(e)||a.isBlob(e)||a.isReadableStream(e))return e;if(a.isArrayBufferView(e))return e.buffer;if(a.isURLSearchParams(e))return t.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),e.toString();let i;if(o){if(r.indexOf("application/x-www-form-urlencoded")>-1)return fr(e,this.formSerializer).toString();if((i=a.isFileList(e))||r.indexOf("multipart/form-data")>-1){const s=this.env&&this.env.FormData;return oe(i?{"files[]":e}:e,s&&new s,this.formSerializer)}}return o||n?(t.setContentType("application/json",!1),hr(e)):e}],transformResponse:[function(e){const t=this.transitional||$.transitional,r=t&&t.forcedJSONParsing,n=this.responseType==="json";if(a.isResponse(e)||a.isReadableStream(e))return e;if(e&&a.isString(e)&&(r&&!this.responseType||n)){const o=!(t&&t.silentJSONParsing)&&n;try{return JSON.parse(e,this.parseReviver)}catch(i){if(o)throw i.name==="SyntaxError"?m.from(i,m.ERR_BAD_RESPONSE,this,null,this.response):i}}return e}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:S.classes.FormData,Blob:S.classes.Blob},validateStatus:function(e){return e>=200&&e<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};a.forEach(["delete","get","head","post","put","patch"],e=>{$.headers[e]={}});const mr=a.toObjectSet(["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"]),br=e=>{const t={};let r,n,o;return e&&e.split(`
2
- `).forEach(function(i){o=i.indexOf(":"),r=i.substring(0,o).trim().toLowerCase(),n=i.substring(o+1).trim(),!(!r||t[r]&&mr[r])&&(r==="set-cookie"?t[r]?t[r].push(n):t[r]=[n]:t[r]=t[r]?t[r]+", "+n:n)}),t},Ue=Symbol("internals");function z(e){return e&&String(e).trim().toLowerCase()}function Z(e){return e===!1||e==null?e:a.isArray(e)?e.map(Z):String(e)}function gr(e){const t=Object.create(null),r=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;let n;for(;n=r.exec(e);)t[n[1]]=n[2];return t}const yr=e=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim());function le(e,t,r,n,o){if(a.isFunction(n))return n.call(this,t,r);if(o&&(t=r),!!a.isString(t)){if(a.isString(n))return t.indexOf(n)!==-1;if(a.isRegExp(n))return n.test(t)}}function wr(e){return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(t,r,n)=>r.toUpperCase()+n)}function Er(e,t){const r=a.toCamelCase(" "+t);["get","set","has"].forEach(n=>{Object.defineProperty(e,n+r,{value:function(o,i,s){return this[n].call(this,t,o,i,s)},configurable:!0})})}let T=class{constructor(e){e&&this.set(e)}set(e,t,r){const n=this;function o(s,l,f){const c=z(l);if(!c)throw new Error("header name must be a non-empty string");const u=a.findKey(n,c);(!u||n[u]===void 0||f===!0||f===void 0&&n[u]!==!1)&&(n[u||l]=Z(s))}const i=(s,l)=>a.forEach(s,(f,c)=>o(f,c,l));if(a.isPlainObject(e)||e instanceof this.constructor)i(e,t);else if(a.isString(e)&&(e=e.trim())&&!yr(e))i(br(e),t);else if(a.isObject(e)&&a.isIterable(e)){let s={},l,f;for(const c of e){if(!a.isArray(c))throw TypeError("Object iterator must return a key-value pair");s[f=c[0]]=(l=s[f])?a.isArray(l)?[...l,c[1]]:[l,c[1]]:c[1]}i(s,t)}else e!=null&&o(t,e,r);return this}get(e,t){if(e=z(e),e){const r=a.findKey(this,e);if(r){const n=this[r];if(!t)return n;if(t===!0)return gr(n);if(a.isFunction(t))return t.call(this,n,r);if(a.isRegExp(t))return t.exec(n);throw new TypeError("parser must be boolean|regexp|function")}}}has(e,t){if(e=z(e),e){const r=a.findKey(this,e);return!!(r&&this[r]!==void 0&&(!t||le(this,this[r],r,t)))}return!1}delete(e,t){const r=this;let n=!1;function o(i){if(i=z(i),i){const s=a.findKey(r,i);s&&(!t||le(r,r[s],s,t))&&(delete r[s],n=!0)}}return a.isArray(e)?e.forEach(o):o(e),n}clear(e){const t=Object.keys(this);let r=t.length,n=!1;for(;r--;){const o=t[r];(!e||le(this,this[o],o,e,!0))&&(delete this[o],n=!0)}return n}normalize(e){const t=this,r={};return a.forEach(this,(n,o)=>{const i=a.findKey(r,o);if(i){t[i]=Z(n),delete t[o];return}const s=e?wr(o):String(o).trim();s!==o&&delete t[o],t[s]=Z(n),r[s]=!0}),this}concat(...e){return this.constructor.concat(this,...e)}toJSON(e){const t=Object.create(null);return a.forEach(this,(r,n)=>{r!=null&&r!==!1&&(t[n]=e&&a.isArray(r)?r.join(", "):r)}),t}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map(([e,t])=>e+": "+t).join(`
3
- `)}getSetCookie(){return this.get("set-cookie")||[]}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(e){return e instanceof this?e:new this(e)}static concat(e,...t){const r=new this(e);return t.forEach(n=>r.set(n)),r}static accessor(e){const t=(this[Ue]=this[Ue]={accessors:{}}).accessors,r=this.prototype;function n(o){const i=z(o);t[i]||(Er(r,o),t[i]=!0)}return a.isArray(e)?e.forEach(n):n(e),this}};T.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]);a.reduceDescriptors(T.prototype,({value:e},t)=>{let r=t[0].toUpperCase()+t.slice(1);return{get:()=>e,set(n){this[r]=n}}});a.freezeMethods(T);function ue(e,t){const r=this||$,n=t||r,o=T.from(n.headers);let i=n.data;return a.forEach(e,function(s){i=s.call(r,i,o.normalize(),t?t.status:void 0)}),o.normalize(),i}function ot(e){return!!(e&&e.__CANCEL__)}function I(e,t,r){m.call(this,e??"canceled",m.ERR_CANCELED,t,r),this.name="CanceledError"}a.inherits(I,m,{__CANCEL__:!0});function st(e,t,r){const n=r.config.validateStatus;!r.status||!n||n(r.status)?e(r):t(new m("Request failed with status code "+r.status,[m.ERR_BAD_REQUEST,m.ERR_BAD_RESPONSE][Math.floor(r.status/100)-4],r.config,r.request,r))}function Or(e){const t=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return t&&t[1]||""}function Sr(e,t){e=e||10;const r=new Array(e),n=new Array(e);let o=0,i=0,s;return t=t!==void 0?t:1e3,function(l){const f=Date.now(),c=n[i];s||(s=f),r[o]=l,n[o]=f;let u=i,b=0;for(;u!==o;)b+=r[u++],u=u%e;if(o=(o+1)%e,o===i&&(i=(i+1)%e),f-s<t)return;const g=c&&f-c;return g?Math.round(b*1e3/g):void 0}}function Rr(e,t){let r=0,n=1e3/t,o,i;const s=(l,f=Date.now())=>{r=f,o=null,i&&(clearTimeout(i),i=null),e(...l)};return[(...l)=>{const f=Date.now(),c=f-r;c>=n?s(l,f):(o=l,i||(i=setTimeout(()=>{i=null,s(o)},n-c)))},()=>o&&s(o)]}const ee=(e,t,r=3)=>{let n=0;const o=Sr(50,250);return Rr(i=>{const s=i.loaded,l=i.lengthComputable?i.total:void 0,f=s-n,c=o(f),u=s<=l;n=s;const b={loaded:s,total:l,progress:l?s/l:void 0,bytes:f,rate:c||void 0,estimated:c&&l&&u?(l-s)/c:void 0,event:i,lengthComputable:l!=null,[t?"download":"upload"]:!0};e(b)},r)},Pe=(e,t)=>{const r=e!=null;return[n=>t[0]({lengthComputable:r,total:e,loaded:n}),t[1]]},Fe=e=>(...t)=>a.asap(()=>e(...t)),Tr=S.hasStandardBrowserEnv?((e,t)=>r=>(r=new URL(r,S.origin),e.protocol===r.protocol&&e.host===r.host&&(t||e.port===r.port)))(new URL(S.origin),S.navigator&&/(msie|trident)/i.test(S.navigator.userAgent)):()=>!0,Ar=S.hasStandardBrowserEnv?{write(e,t,r,n,o,i,s){if(typeof document>"u")return;const l=[`${e}=${encodeURIComponent(t)}`];a.isNumber(r)&&l.push(`expires=${new Date(r).toUTCString()}`),a.isString(n)&&l.push(`path=${n}`),a.isString(o)&&l.push(`domain=${o}`),i===!0&&l.push("secure"),a.isString(s)&&l.push(`SameSite=${s}`),document.cookie=l.join("; ")},read(e){if(typeof document>"u")return null;const t=document.cookie.match(new RegExp("(?:^|; )"+e+"=([^;]*)"));return t?decodeURIComponent(t[1]):null},remove(e){this.write(e,"",Date.now()-864e5,"/")}}:{write(){},read(){return null},remove(){}};function Cr(e){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(e)}function vr(e,t){return t?e.replace(/\/?\/$/,"")+"/"+t.replace(/^\/+/,""):e}function it(e,t,r){let n=!Cr(t);return e&&(n||r==!1)?vr(e,t):t}const Le=e=>e instanceof T?{...e}:e;function k(e,t){t=t||{};const r={};function n(c,u,b,g){return a.isPlainObject(c)&&a.isPlainObject(u)?a.merge.call({caseless:g},c,u):a.isPlainObject(u)?a.merge({},u):a.isArray(u)?u.slice():u}function o(c,u,b,g){if(a.isUndefined(u)){if(!a.isUndefined(c))return n(void 0,c,b,g)}else return n(c,u,b,g)}function i(c,u){if(!a.isUndefined(u))return n(void 0,u)}function s(c,u){if(a.isUndefined(u)){if(!a.isUndefined(c))return n(void 0,c)}else return n(void 0,u)}function l(c,u,b){if(b in t)return n(c,u);if(b in e)return n(void 0,c)}const f={url:i,method:i,data:i,baseURL:s,transformRequest:s,transformResponse:s,paramsSerializer:s,timeout:s,timeoutMessage:s,withCredentials:s,withXSRFToken:s,adapter:s,responseType:s,xsrfCookieName:s,xsrfHeaderName:s,onUploadProgress:s,onDownloadProgress:s,decompress:s,maxContentLength:s,maxBodyLength:s,beforeRedirect:s,transport:s,httpAgent:s,httpsAgent:s,cancelToken:s,socketPath:s,responseEncoding:s,validateStatus:l,headers:(c,u,b)=>o(Le(c),Le(u),b,!0)};return a.forEach(Object.keys({...e,...t}),function(c){const u=f[c]||o,b=u(e[c],t[c],c);a.isUndefined(b)&&u!==l||(r[c]=b)}),r}const at=e=>{const t=k({},e);let{data:r,withXSRFToken:n,xsrfHeaderName:o,xsrfCookieName:i,headers:s,auth:l}=t;if(t.headers=s=T.from(s),t.url=tt(it(t.baseURL,t.url,t.allowAbsoluteUrls),e.params,e.paramsSerializer),l&&s.set("Authorization","Basic "+btoa((l.username||"")+":"+(l.password?unescape(encodeURIComponent(l.password)):""))),a.isFormData(r)){if(S.hasStandardBrowserEnv||S.hasStandardBrowserWebWorkerEnv)s.setContentType(void 0);else if(a.isFunction(r.getHeaders)){const f=r.getHeaders(),c=["content-type","content-length"];Object.entries(f).forEach(([u,b])=>{c.includes(u.toLowerCase())&&s.set(u,b)})}}if(S.hasStandardBrowserEnv&&(n&&a.isFunction(n)&&(n=n(t)),n||n!==!1&&Tr(t.url))){const f=o&&i&&Ar.read(i);f&&s.set(o,f)}return t},xr=typeof XMLHttpRequest<"u",Nr=xr&&function(e){return new Promise(function(t,r){const n=at(e);let o=n.data;const i=T.from(n.headers).normalize();let{responseType:s,onUploadProgress:l,onDownloadProgress:f}=n,c,u,b,g,h;function p(){g&&g(),h&&h(),n.cancelToken&&n.cancelToken.unsubscribe(c),n.signal&&n.signal.removeEventListener("abort",c)}let d=new XMLHttpRequest;d.open(n.method.toUpperCase(),n.url,!0),d.timeout=n.timeout;function E(){if(!d)return;const w=T.from("getAllResponseHeaders"in d&&d.getAllResponseHeaders()),C={data:!s||s==="text"||s==="json"?d.responseText:d.response,status:d.status,statusText:d.statusText,headers:w,config:e,request:d};st(function(N){t(N),p()},function(N){r(N),p()},C),d=null}"onloadend"in d?d.onloadend=E:d.onreadystatechange=function(){!d||d.readyState!==4||d.status===0&&!(d.responseURL&&d.responseURL.indexOf("file:")===0)||setTimeout(E)},d.onabort=function(){d&&(r(new m("Request aborted",m.ECONNABORTED,e,d)),d=null)},d.onerror=function(w){const C=w&&w.message?w.message:"Network Error",N=new m(C,m.ERR_NETWORK,e,d);N.event=w||null,r(N),d=null},d.ontimeout=function(){let w=n.timeout?"timeout of "+n.timeout+"ms exceeded":"timeout exceeded";const C=n.transitional||rt;n.timeoutErrorMessage&&(w=n.timeoutErrorMessage),r(new m(w,C.clarifyTimeoutError?m.ETIMEDOUT:m.ECONNABORTED,e,d)),d=null},o===void 0&&i.setContentType(null),"setRequestHeader"in d&&a.forEach(i.toJSON(),function(w,C){d.setRequestHeader(C,w)}),a.isUndefined(n.withCredentials)||(d.withCredentials=!!n.withCredentials),s&&s!=="json"&&(d.responseType=n.responseType),f&&([b,h]=ee(f,!0),d.addEventListener("progress",b)),l&&d.upload&&([u,g]=ee(l),d.upload.addEventListener("progress",u),d.upload.addEventListener("loadend",g)),(n.cancelToken||n.signal)&&(c=w=>{d&&(r(!w||w.type?new I(null,e,d):w),d.abort(),d=null)},n.cancelToken&&n.cancelToken.subscribe(c),n.signal&&(n.signal.aborted?c():n.signal.addEventListener("abort",c)));const O=Or(n.url);if(O&&S.protocols.indexOf(O)===-1){r(new m("Unsupported protocol "+O+":",m.ERR_BAD_REQUEST,e));return}d.send(o||null)})},jr=(e,t)=>{const{length:r}=e=e?e.filter(Boolean):[];if(t||r){let n=new AbortController,o;const i=function(c){if(!o){o=!0,l();const u=c instanceof Error?c:this.reason;n.abort(u instanceof m?u:new I(u instanceof Error?u.message:u))}};let s=t&&setTimeout(()=>{s=null,i(new m(`timeout ${t} of ms exceeded`,m.ETIMEDOUT))},t);const l=()=>{e&&(s&&clearTimeout(s),s=null,e.forEach(c=>{c.unsubscribe?c.unsubscribe(i):c.removeEventListener("abort",i)}),e=null)};e.forEach(c=>c.addEventListener("abort",i));const{signal:f}=n;return f.unsubscribe=()=>a.asap(l),f}},Ur=function*(e,t){let r=e.byteLength;if(r<t){yield e;return}let n=0,o;for(;n<r;)o=n+t,yield e.slice(n,o),n=o},Pr=async function*(e,t){for await(const r of Fr(e))yield*Ur(r,t)},Fr=async function*(e){if(e[Symbol.asyncIterator]){yield*e;return}const t=e.getReader();try{for(;;){const{done:r,value:n}=await t.read();if(r)break;yield n}}finally{await t.cancel()}},_e=(e,t,r,n)=>{const o=Pr(e,t);let i=0,s,l=f=>{s||(s=!0,n&&n(f))};return new ReadableStream({async pull(f){try{const{done:c,value:u}=await o.next();if(c){l(),f.close();return}let b=u.byteLength;if(r){let g=i+=b;r(g)}f.enqueue(new Uint8Array(u))}catch(c){throw l(c),c}},cancel(f){return l(f),o.return()}},{highWaterMark:2})},ke=64*1024,{isFunction:G}=a,Lr=(({Request:e,Response:t})=>({Request:e,Response:t}))(a.global),{ReadableStream:Be,TextEncoder:De}=a.global,qe=(e,...t)=>{try{return!!e(...t)}catch{return!1}},_r=e=>{e=a.merge.call({skipUndefined:!0},Lr,e);const{fetch:t,Request:r,Response:n}=e,o=t?G(t):typeof fetch=="function",i=G(r),s=G(n);if(!o)return!1;const l=o&&G(Be),f=o&&(typeof De=="function"?(p=>d=>p.encode(d))(new De):async p=>new Uint8Array(await new r(p).arrayBuffer())),c=i&&l&&qe(()=>{let p=!1;const d=new r(S.origin,{body:new Be,method:"POST",get duplex(){return p=!0,"half"}}).headers.has("Content-Type");return p&&!d}),u=s&&l&&qe(()=>a.isReadableStream(new n("").body)),b={stream:u&&(p=>p.body)};o&&["text","arrayBuffer","blob","formData","stream"].forEach(p=>{!b[p]&&(b[p]=(d,E)=>{let O=d&&d[p];if(O)return O.call(d);throw new m(`Response type '${p}' is not supported`,m.ERR_NOT_SUPPORT,E)})});const g=async p=>{if(p==null)return 0;if(a.isBlob(p))return p.size;if(a.isSpecCompliantForm(p))return(await new r(S.origin,{method:"POST",body:p}).arrayBuffer()).byteLength;if(a.isArrayBufferView(p)||a.isArrayBuffer(p))return p.byteLength;if(a.isURLSearchParams(p)&&(p=p+""),a.isString(p))return(await f(p)).byteLength},h=async(p,d)=>a.toFiniteNumber(p.getContentLength())??g(d);return async p=>{let{url:d,method:E,data:O,signal:w,cancelToken:C,timeout:N,onDownloadProgress:ie,onUploadProgress:Ee,responseType:j,headers:ae,withCredentials:K="same-origin",fetchOptions:Oe}=at(p),Se=t||fetch;j=j?(j+"").toLowerCase():"text";let V=jr([w,C&&C.toAbortSignal()],N),M=null;const F=V&&V.unsubscribe&&(()=>{V.unsubscribe()});let Re;try{if(Ee&&c&&E!=="get"&&E!=="head"&&(Re=await h(ae,O))!==0){let P=new r(d,{method:"POST",body:O,duplex:"half"}),B;if(a.isFormData(O)&&(B=P.headers.get("content-type"))&&ae.setContentType(B),P.body){const[ce,X]=Pe(Re,ee(Fe(Ee)));O=_e(P.body,ke,ce,X)}}a.isString(K)||(K=K?"include":"omit");const v=i&&"credentials"in r.prototype,Te={...Oe,signal:V,method:E.toUpperCase(),headers:ae.normalize().toJSON(),body:O,duplex:"half",credentials:v?K:void 0};M=i&&new r(d,Te);let U=await(i?Se(M,Oe):Se(d,Te));const Ae=u&&(j==="stream"||j==="response");if(u&&(ie||Ae&&F)){const P={};["status","statusText","headers"].forEach(Ce=>{P[Ce]=U[Ce]});const B=a.toFiniteNumber(U.headers.get("content-length")),[ce,X]=ie&&Pe(B,ee(Fe(ie),!0))||[];U=new n(_e(U.body,ke,ce,()=>{X&&X(),F&&F()}),P)}j=j||"text";let pt=await b[a.findKey(b,j)||"text"](U,p);return!Ae&&F&&F(),await new Promise((P,B)=>{st(P,B,{data:pt,headers:T.from(U.headers),status:U.status,statusText:U.statusText,config:p,request:M})})}catch(v){throw F&&F(),v&&v.name==="TypeError"&&/Load failed|fetch/i.test(v.message)?Object.assign(new m("Network Error",m.ERR_NETWORK,p,M),{cause:v.cause||v}):m.from(v,v&&v.code,p,M)}}},kr=new Map,ct=e=>{let t=e&&e.env||{};const{fetch:r,Request:n,Response:o}=t,i=[n,o,r];let s=i.length,l=s,f,c,u=kr;for(;l--;)f=i[l],c=u.get(f),c===void 0&&u.set(f,c=l?new Map:_r(t)),u=c;return c};ct();const we={http:Yt,xhr:Nr,fetch:{get:ct}};a.forEach(we,(e,t)=>{if(e){try{Object.defineProperty(e,"name",{value:t})}catch{}Object.defineProperty(e,"adapterName",{value:t})}});const Ie=e=>`- ${e}`,Br=e=>a.isFunction(e)||e===null||e===!1;function Dr(e,t){e=a.isArray(e)?e:[e];const{length:r}=e;let n,o;const i={};for(let s=0;s<r;s++){n=e[s];let l;if(o=n,!Br(n)&&(o=we[(l=String(n)).toLowerCase()],o===void 0))throw new m(`Unknown adapter '${l}'`);if(o&&(a.isFunction(o)||(o=o.get(t))))break;i[l||"#"+s]=o}if(!o){const s=Object.entries(i).map(([f,c])=>`adapter ${f} `+(c===!1?"is not supported by the environment":"is not available in the build"));let l=r?s.length>1?`since :
4
- `+s.map(Ie).join(`
5
- `):" "+Ie(s[0]):"as no adapter specified";throw new m("There is no suitable adapter to dispatch the request "+l,"ERR_NOT_SUPPORT")}return o}const lt={getAdapter:Dr,adapters:we};function fe(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new I(null,e)}function Me(e){return fe(e),e.headers=T.from(e.headers),e.data=ue.call(e,e.transformRequest),["post","put","patch"].indexOf(e.method)!==-1&&e.headers.setContentType("application/x-www-form-urlencoded",!1),lt.getAdapter(e.adapter||$.adapter,e)(e).then(function(t){return fe(e),t.data=ue.call(e,e.transformResponse,t),t.headers=T.from(t.headers),t},function(t){return ot(t)||(fe(e),t&&t.response&&(t.response.data=ue.call(e,e.transformResponse,t.response),t.response.headers=T.from(t.response.headers))),Promise.reject(t)})}const ut="1.13.2",se={};["object","boolean","number","function","string","symbol"].forEach((e,t)=>{se[e]=function(r){return typeof r===e||"a"+(t<1?"n ":" ")+e}});const ze={};se.transitional=function(e,t,r){function n(o,i){return"[Axios v"+ut+"] Transitional option '"+o+"'"+i+(r?". "+r:"")}return(o,i,s)=>{if(e===!1)throw new m(n(i," has been removed"+(t?" in "+t:"")),m.ERR_DEPRECATED);return t&&!ze[i]&&(ze[i]=!0,console.warn(n(i," has been deprecated since v"+t+" and will be removed in the near future"))),e?e(o,i,s):!0}};se.spelling=function(e){return(t,r)=>(console.warn(`${r} is likely a misspelling of ${e}`),!0)};function qr(e,t,r){if(typeof e!="object")throw new m("options must be an object",m.ERR_BAD_OPTION_VALUE);const n=Object.keys(e);let o=n.length;for(;o-- >0;){const i=n[o],s=t[i];if(s){const l=e[i],f=l===void 0||s(l,i,e);if(f!==!0)throw new m("option "+i+" must be "+f,m.ERR_BAD_OPTION_VALUE);continue}if(r!==!0)throw new m("Unknown option "+i,m.ERR_BAD_OPTION)}}const Y={assertOptions:qr,validators:se},x=Y.validators;let _=class{constructor(e){this.defaults=e||{},this.interceptors={request:new je,response:new je}}async request(e,t){try{return await this._request(e,t)}catch(r){if(r instanceof Error){let n={};Error.captureStackTrace?Error.captureStackTrace(n):n=new Error;const o=n.stack?n.stack.replace(/^.+\n/,""):"";try{r.stack?o&&!String(r.stack).endsWith(o.replace(/^.+\n.+\n/,""))&&(r.stack+=`
6
- `+o):r.stack=o}catch{}}throw r}}_request(e,t){typeof e=="string"?(t=t||{},t.url=e):t=e||{},t=k(this.defaults,t);const{transitional:r,paramsSerializer:n,headers:o}=t;r!==void 0&&Y.assertOptions(r,{silentJSONParsing:x.transitional(x.boolean),forcedJSONParsing:x.transitional(x.boolean),clarifyTimeoutError:x.transitional(x.boolean)},!1),n!=null&&(a.isFunction(n)?t.paramsSerializer={serialize:n}:Y.assertOptions(n,{encode:x.function,serialize:x.function},!0)),t.allowAbsoluteUrls!==void 0||(this.defaults.allowAbsoluteUrls!==void 0?t.allowAbsoluteUrls=this.defaults.allowAbsoluteUrls:t.allowAbsoluteUrls=!0),Y.assertOptions(t,{baseUrl:x.spelling("baseURL"),withXsrfToken:x.spelling("withXSRFToken")},!0),t.method=(t.method||this.defaults.method||"get").toLowerCase();let i=o&&a.merge(o.common,o[t.method]);o&&a.forEach(["delete","get","head","post","put","patch","common"],h=>{delete o[h]}),t.headers=T.concat(i,o);const s=[];let l=!0;this.interceptors.request.forEach(function(h){typeof h.runWhen=="function"&&h.runWhen(t)===!1||(l=l&&h.synchronous,s.unshift(h.fulfilled,h.rejected))});const f=[];this.interceptors.response.forEach(function(h){f.push(h.fulfilled,h.rejected)});let c,u=0,b;if(!l){const h=[Me.bind(this),void 0];for(h.unshift(...s),h.push(...f),b=h.length,c=Promise.resolve(t);u<b;)c=c.then(h[u++],h[u++]);return c}b=s.length;let g=t;for(;u<b;){const h=s[u++],p=s[u++];try{g=h(g)}catch(d){p.call(this,d);break}}try{c=Me.call(this,g)}catch(h){return Promise.reject(h)}for(u=0,b=f.length;u<b;)c=c.then(f[u++],f[u++]);return c}getUri(e){e=k(this.defaults,e);const t=it(e.baseURL,e.url,e.allowAbsoluteUrls);return tt(t,e.params,e.paramsSerializer)}};a.forEach(["delete","get","head","options"],function(e){_.prototype[e]=function(t,r){return this.request(k(r||{},{method:e,url:t,data:(r||{}).data}))}});a.forEach(["post","put","patch"],function(e){function t(r){return function(n,o,i){return this.request(k(i||{},{method:e,headers:r?{"Content-Type":"multipart/form-data"}:{},url:n,data:o}))}}_.prototype[e]=t(),_.prototype[e+"Form"]=t(!0)});let Ir=class ft{constructor(t){if(typeof t!="function")throw new TypeError("executor must be a function.");let r;this.promise=new Promise(function(o){r=o});const n=this;this.promise.then(o=>{if(!n._listeners)return;let i=n._listeners.length;for(;i-- >0;)n._listeners[i](o);n._listeners=null}),this.promise.then=o=>{let i;const s=new Promise(l=>{n.subscribe(l),i=l}).then(o);return s.cancel=function(){n.unsubscribe(i)},s},t(function(o,i,s){n.reason||(n.reason=new I(o,i,s),r(n.reason))})}throwIfRequested(){if(this.reason)throw this.reason}subscribe(t){if(this.reason){t(this.reason);return}this._listeners?this._listeners.push(t):this._listeners=[t]}unsubscribe(t){if(!this._listeners)return;const r=this._listeners.indexOf(t);r!==-1&&this._listeners.splice(r,1)}toAbortSignal(){const t=new AbortController,r=n=>{t.abort(n)};return this.subscribe(r),t.signal.unsubscribe=()=>this.unsubscribe(r),t.signal}static source(){let t;return{token:new ft(function(r){t=r}),cancel:t}}};function Mr(e){return function(t){return e.apply(null,t)}}function zr(e){return a.isObject(e)&&e.isAxiosError===!0}const me={Continue:100,SwitchingProtocols:101,Processing:102,EarlyHints:103,Ok:200,Created:201,Accepted:202,NonAuthoritativeInformation:203,NoContent:204,ResetContent:205,PartialContent:206,MultiStatus:207,AlreadyReported:208,ImUsed:226,MultipleChoices:300,MovedPermanently:301,Found:302,SeeOther:303,NotModified:304,UseProxy:305,Unused:306,TemporaryRedirect:307,PermanentRedirect:308,BadRequest:400,Unauthorized:401,PaymentRequired:402,Forbidden:403,NotFound:404,MethodNotAllowed:405,NotAcceptable:406,ProxyAuthenticationRequired:407,RequestTimeout:408,Conflict:409,Gone:410,LengthRequired:411,PreconditionFailed:412,PayloadTooLarge:413,UriTooLong:414,UnsupportedMediaType:415,RangeNotSatisfiable:416,ExpectationFailed:417,ImATeapot:418,MisdirectedRequest:421,UnprocessableEntity:422,Locked:423,FailedDependency:424,TooEarly:425,UpgradeRequired:426,PreconditionRequired:428,TooManyRequests:429,RequestHeaderFieldsTooLarge:431,UnavailableForLegalReasons:451,InternalServerError:500,NotImplemented:501,BadGateway:502,ServiceUnavailable:503,GatewayTimeout:504,HttpVersionNotSupported:505,VariantAlsoNegotiates:506,InsufficientStorage:507,LoopDetected:508,NotExtended:510,NetworkAuthenticationRequired:511,WebServerIsDown:521,ConnectionTimedOut:522,OriginIsUnreachable:523,TimeoutOccurred:524,SslHandshakeFailed:525,InvalidSslCertificate:526};Object.entries(me).forEach(([e,t])=>{me[t]=e});function dt(e){const t=new _(e),r=He(_.prototype.request,t);return a.extend(r,_.prototype,t,{allOwnKeys:!0}),a.extend(r,t,null,{allOwnKeys:!0}),r.create=function(n){return dt(k(e,n))},r}const y=dt($);y.Axios=_;y.CanceledError=I;y.CancelToken=Ir;y.isCancel=ot;y.VERSION=ut;y.toFormData=oe;y.AxiosError=m;y.Cancel=y.CanceledError;y.all=function(e){return Promise.all(e)};y.spread=Mr;y.isAxiosError=zr;y.mergeConfig=k;y.AxiosHeaders=T;y.formToJSON=e=>nt(a.isHTMLForm(e)?new FormData(e):e);y.getAdapter=lt.getAdapter;y.HttpStatusCode=me;y.default=y;const{Axios:Hr,AxiosError:Jr,CanceledError:Wr,isCancel:$r,CancelToken:Kr,VERSION:Vr,all:Xr,Cancel:Gr,isAxiosError:Qr,spread:Zr,toFormData:Yr,AxiosHeaders:en,HttpStatusCode:tn,formToJSON:rn,getAdapter:nn,mergeConfig:on}=y;export{Hr as Axios,Jr as AxiosError,en as AxiosHeaders,Gr as Cancel,Kr as CancelToken,Wr as CanceledError,tn as HttpStatusCode,Vr as VERSION,Xr as all,y as default,rn as formToJSON,nn as getAdapter,Qr as isAxiosError,$r as isCancel,on as mergeConfig,Zr as spread,Yr as toFormData};