@stlite/desktop 0.95.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 (158) hide show
  1. package/CHANGELOG.md +12 -0
  2. package/bin/dump_artifacts.js +1 -1
  3. package/build/assets/{ErrorOutline.esm-C-dv9Xq1-skkXNqDc.js → ErrorOutline.esm-lsdlHF0t-DG4LSxex.js} +1 -1
  4. package/build/assets/{FileDownload.esm-ORp-UC-S-BrsUfuH5.js → FileDownload.esm-B67hf_fm-CYQKuYJG.js} +1 -1
  5. package/build/assets/FileHelper-CfZ5yPb2-CNHTcjh9.js +5 -0
  6. package/build/assets/{FormClearHelper-DtwjWakY-CxfcniD6.js → FormClearHelper-XrLdNEJa-DVEjd1cV.js} +1 -1
  7. package/build/assets/IFrameUtil-8kJzIdKx-BKMrKnrz.js +1 -0
  8. package/build/assets/{InputInstructions-CshBE9XZ-BbegIdTI.js → InputInstructions-UPXPLzmg-Q7bu80af.js} +2 -2
  9. package/build/assets/Particles-BG5hjQKX-C7A0Knla.js +1 -0
  10. package/build/assets/ProgressBar-E3DTwBEC-BjaNqN1B.js +2 -0
  11. package/build/assets/StreamlitSyntaxHighlighter-CzihVVQU-DKtwdTjA.js +9 -0
  12. package/build/assets/TableChart.esm-DTCdMC22-C2aHYx-P.js +1 -0
  13. package/build/assets/{Toolbar-Cc8tCeKL-JHIp2NvW.js → Toolbar-DencJ98c--L3IVNu_.js} +1 -1
  14. package/build/assets/UploadFileInfo-DdcsXhjv-m2CBXl3F.js +1 -0
  15. package/build/assets/WidgetLabelHelpIconInline-DFAc7fKv-BB1k3kRL.js +1 -0
  16. package/build/assets/_baseAssignValue-D2hePX0_-CX8WO6Yp.js +1 -0
  17. package/build/assets/_baseIndexOf-OsCSwRmV--aVpkM1d.js +1 -0
  18. package/build/assets/{base-input-DbV2D5sF-DJkpBRM1.js → base-input-BPl9JMAl-yC1GT4Gd.js} +4 -4
  19. package/build/assets/{checkbox-CG80fxUD-CavQvTtP.js → checkbox-BCtTdZut-CgBE95kP.js} +2 -2
  20. package/build/assets/createDownloadLinkElement-D-zJ1ZGH-MUElf4MM.js +1 -0
  21. package/build/assets/createSuper-Csct9QVD-vLz3pY3G.js +1 -0
  22. package/build/assets/data-grid-overlay-editor-58Vv1cYM-BTQbyoqC.js +1 -0
  23. package/build/assets/{downloader-DcCTL3Wz-CqotLrf1.js → downloader-DcCTL3Wz-CCWe5qlA.js} +1 -1
  24. package/build/assets/embed-4M_Y1tyc-DYkZAF8O.js +195 -0
  25. package/build/assets/{es6--XPcqeHG-DdkxL8eW.js → es6--XPcqeHG-7ATg0sOb.js} +2 -2
  26. package/build/assets/formatMoment-DEtsTHwA-BeQagUzn.js +1 -0
  27. package/build/assets/formatNumber-ep44bWil-jKcj-W8C.js +1 -0
  28. package/build/assets/iconPosition-D6yC8Xnj-BF1h45AJ.js +1 -0
  29. package/build/assets/iframeResizer.contentWindow-nTwp-zqr-CtsMNeCZ.js +1 -0
  30. package/build/assets/index--TzMnXzp-DAvnEXlj.js +1 -0
  31. package/build/assets/index--qHBza9B-Cw3TTMgu.js +1 -0
  32. package/build/assets/index-B-mlHTWW-DxFrd5NG.js +1 -0
  33. package/build/assets/{index-CiBn_-AR-CMINgD7R.js → index-B-vlNoRi-Cx4hHKp7.js} +1 -1
  34. package/build/assets/index-B7jXK8tg-DQuHfWI9.js +1 -0
  35. package/build/assets/index-BFmSYBo1-C1-2gL1R.js +2 -0
  36. package/build/assets/{index-SbKh1OIB-BjfuWdcF.js → index-BIskStic-GEaJjVf4.js} +4 -4
  37. package/build/assets/index-BmOxzNZt-CNMeXzFc.js +1 -0
  38. package/build/assets/index-BmPxToPj-BM0EGyRT.js +1 -0
  39. package/build/assets/index-BmXuG0WA-D_Ql4e0d.js +3 -0
  40. package/build/assets/index-BtV4cH-G-DZqE8EFk.js +1 -0
  41. package/build/assets/index-BwXCTp7d-CbCsXHhb.js +6 -0
  42. package/build/assets/index-BwaRZjpn-BcW7Mc-p.js +1 -0
  43. package/build/assets/index-BzkAb_Ru-BoJQq1Du.js +1 -0
  44. package/build/assets/index-C5pyI-9n-BoqvCp9L.js +3 -0
  45. package/build/assets/index-CHTMxzEE-CdrOqTD2.js +1 -0
  46. package/build/assets/index-CJJUSpBk-Cjx3_stH.js +2 -0
  47. package/build/assets/index-CVld_lKx-CBWAU0gM.js +14 -0
  48. package/build/assets/index-CWwI7Day-CBbcYz7C.js +3 -0
  49. package/build/assets/{index-D2j0kQLw-67iH-2yA.js → index-CYKyPdc--DXQt2pbH.js} +1 -1
  50. package/build/assets/index-CYavJtAA-CEB9mFy5.js +11 -0
  51. package/build/assets/index-C_AtJDfm-C2sFKVUp.js +1 -0
  52. package/build/assets/index-Cc93rxqK-qmLHI1ce.js +1 -0
  53. package/build/assets/index-CgwImjw9-vhGwcoU0.js +1 -0
  54. package/build/assets/{index-BqCY3Zlk-mm_Bt8ZF.js → index-CiGWj_Vp-n6pbS_He.js} +1 -1
  55. package/build/assets/index-Cp9lKUfY-DCgJbJZE.js +1 -0
  56. package/build/assets/index-CrLOtTTY-_bXB7Npw.js +2 -0
  57. package/build/assets/{index-CNKtyIol-BPke8suV.js → index-CuAftQdk-D76l7Kt4.js} +1 -1
  58. package/build/assets/index-D0DUjycF-DZpBbVrj.js +263 -0
  59. package/build/assets/index-D1pkaPju-DGUZOgpo.js +1 -0
  60. package/build/assets/index-D6IEgvdJ-B-rltr1-.js +1 -0
  61. package/build/assets/index-D9TZavtE.css +1 -0
  62. package/build/assets/index-DQ7wfL_P-DAp2jN40.js +2 -0
  63. package/build/assets/{index-y3ITDERN-Ccy-wRE2.js → index-DR-j-FYy-DJdOMdE8.js} +1 -1
  64. package/build/assets/index-DUNdG0N4-BKyH_Fci.js +2 -0
  65. package/build/assets/index-Df-1Z3LJ-bsVAaBS1.js +1 -0
  66. package/build/assets/index-Dfye6cAn-CH-9suNF.js +1 -0
  67. package/build/assets/index-DhMU6AlU-DzPhysZa.js +3789 -0
  68. package/build/assets/index-DjAHjI25-oZ9XAxp1.js +27 -0
  69. package/build/assets/index-DlPzHASD-B0KSeIYY.js +1 -0
  70. package/build/assets/index-DrLK8ov3-Stod2ydK.js +2 -0
  71. package/build/assets/index-DtFJwl5H-Dn2VZIyI.js +1 -0
  72. package/build/assets/index-DuZXLtJ1-BxktJ87b.js +1 -0
  73. package/build/assets/index-H5hDyygX-DMvEgj-E.js +1 -0
  74. package/build/assets/index-LD7yKakY-9tfSlqzu.js +1 -0
  75. package/build/assets/index-LeNVxf2A-B46Z4XAZ.js +1 -0
  76. package/build/assets/index-QsvFitQg-IS60zSNc.js +1 -0
  77. package/build/assets/index-YCKUmi7k-wKVbmOTE.js +1 -0
  78. package/build/assets/{index-DeKEPgyN-DF3OyxuW.js → index-f_0uAugs-KaRkqnk8.js} +1 -1
  79. package/build/assets/index-nhNM5UeG.js +185 -0
  80. package/build/assets/index-pi_S-NOw-DHRw2FEx.js +198 -0
  81. package/build/assets/index-saRTHQRt-Cep0ox_U.js +1 -0
  82. package/build/assets/{input-DNUwcYWK-C9eVW6-S.js → input-BZGQFBY5-B-EqzVpf.js} +2 -2
  83. package/build/assets/main-DD_nsVBV-B-nG1zNN.js +13 -0
  84. package/build/assets/{memory-B3L1Fctl-CQ-Y_gc6.js → memory-B3L1Fctl-Dwxd_AN8.js} +1 -1
  85. package/build/assets/moment-CU6QKNej-DcQX_LE0.js +4 -0
  86. package/build/assets/number-overlay-editor--_WCmOH8-DebLrQQ4.js +9 -0
  87. package/build/assets/numbro-CBbENDeu-C6X7Pww4.js +1 -0
  88. package/build/assets/pandasStylerUtils-DlCnQunN-DDd07kWa.js +1 -0
  89. package/build/assets/possibleConstructorReturn-i7eTFBhJ-BnzuGOIJ.js +1 -0
  90. package/build/assets/record-CvRL89xC-Cpipd1Kv.js +1 -0
  91. package/build/assets/{sandbox-ChAzL-i--DqMwo4R7.js → sandbox-ChAzL-i--CrJOWfYj.js} +1 -1
  92. package/build/assets/styled-components-Dq_iSDU9-i1eh3pWs.js +1 -0
  93. package/build/assets/threshold-eWsxmMyL-jpRnj60B.js +1 -0
  94. package/build/assets/{timepicker-CkLW19xP-CTuglWU6.js → timepicker-CL-801So-Sc5MVKGZ.js} +3 -3
  95. package/build/assets/timer-DAAwtI0i-CB52lra-.js +1 -0
  96. package/build/assets/toConsumableArray-CCohTQYb-ClE5WF0y.js +3 -0
  97. package/build/assets/uniqueId-CWWNkcH4-CJJowNJ2.js +1 -0
  98. package/build/assets/urls-CuMqgoDl-BWqF1s4U.js +1 -0
  99. package/build/assets/{useBasicWidgetState-BTyLgyXa-DI96f9E0.js → useBasicWidgetState-BYeS5Lnw-COvJBdtg.js} +1 -1
  100. package/build/assets/useIntlLocale-D1zv6Q2y-BpOVDRdF.js +12 -0
  101. package/build/assets/{useTextInputAutoExpand-YLx_K1sh-DhWKaGOV.js → useTextInputAutoExpand-DEesfW0v-Cv12Lx8Q.js} +2 -2
  102. package/build/assets/{useUpdateUiValue-B9j1K8e5-CIeTAxHC.js → useUpdateUiValue-DDoOKBFH-DrpUtoEl.js} +1 -1
  103. package/build/assets/useWaveformController-Betfr4kn-B9JLTJ93.js +1 -0
  104. package/build/assets/value-DwxUZIyI-CNuykc50.js +1 -0
  105. package/build/assets/wavesurfer.esm-idh1jvYE-D4Wwdy60.js +74 -0
  106. package/build/assets/withCalculatedWidth-ZZ9bYZZd-CtbnrMaD.js +1 -0
  107. package/build/assets/withFullScreenWrapper-B-PKqZVg-DWJ8sEV7.js +1 -0
  108. package/build/index.html +2 -2
  109. package/package.json +3 -3
  110. package/wheels/streamlit-1.53.1-cp313-none-any.whl +0 -0
  111. package/build/assets/FileHelper-DQKV3o5U-qFf0CL_R.js +0 -5
  112. package/build/assets/Particles-DbEEaBdi-Cslh0fnd.js +0 -1
  113. package/build/assets/ProgressBar-ohpf-YR2-PWD0xacp.js +0 -2
  114. package/build/assets/UploadFileInfo-B5SttewO-BfvME59S.js +0 -1
  115. package/build/assets/createDownloadLinkElement-CbRjLJ8e-NbV49OP9.js +0 -1
  116. package/build/assets/createSuper-BlgWzn8_-h1vcwEzv.js +0 -1
  117. package/build/assets/data-grid-overlay-editor-DsmOmCoE-DU0EvyVM.js +0 -1
  118. package/build/assets/iframeResizer.contentWindow-DEXh82Lp-CG3rnwWO.js +0 -1
  119. package/build/assets/index-3Q8l-56I-Bp9UZWPZ.js +0 -27
  120. package/build/assets/index-8FM--PX3-C2rsm2es.js +0 -1
  121. package/build/assets/index-B1y_Hrx0-DDwLQ3XW.js +0 -1
  122. package/build/assets/index-BECG__WC-DerPiN--.js +0 -1
  123. package/build/assets/index-BQn4Faen-CVQ5ESXY.js +0 -3
  124. package/build/assets/index-BReUOw2L-emeACiGh.js +0 -1371
  125. package/build/assets/index-BiS_E3zu-CwIGZcqG.js +0 -1
  126. package/build/assets/index-BmlZuG1z-BtaDcb9o.js +0 -1
  127. package/build/assets/index-BvblFOYP.js +0 -691
  128. package/build/assets/index-Bzy7yu67-C3L4ShMk.js +0 -2
  129. package/build/assets/index-C7cG_aL6-BWm5S1-m.js +0 -3789
  130. package/build/assets/index-CO05R5cS-DHfFy15g.js +0 -1
  131. package/build/assets/index-CQfw52g6-BJ-a84bb.js +0 -1
  132. package/build/assets/index-CTvmRzFN-By1zFrdQ.js +0 -2
  133. package/build/assets/index-Cb_C2vCk-DrzTyNQF.js +0 -198
  134. package/build/assets/index-CnMc0ayy-CKIU12h5.js +0 -1
  135. package/build/assets/index-D0Ry9mHz-DBJluHQV.js +0 -3
  136. package/build/assets/index-D42P77wj-jZCT0fQL.js +0 -1
  137. package/build/assets/index-D7LfqMh3-DvKIa3UK.js +0 -1
  138. package/build/assets/index-DD64_I3e-Cxdt0Oji.js +0 -1
  139. package/build/assets/index-DEYeMrzr-DP5rSRot.js +0 -1
  140. package/build/assets/index-DTog-cZN-vTBq72Ci.js +0 -1
  141. package/build/assets/index-DU0kTHM_-CInhbPr8.js +0 -12
  142. package/build/assets/index-DnTjZ9IR.css +0 -1
  143. package/build/assets/index-DrS8S2M--C4mGh6T8.js +0 -1
  144. package/build/assets/index-DxTzjSNF-B-v_CQEN.js +0 -2
  145. package/build/assets/index-IXLMpVV4-D8dPiMEz.js +0 -2
  146. package/build/assets/index-Ray843Xd-CpBr9wfH.js +0 -1
  147. package/build/assets/index-S-A7KecP-DJ0BKtLt.js +0 -1
  148. package/build/assets/index-Uvv6so0Q-Lbl8GAad.js +0 -1
  149. package/build/assets/index-YbT2v6Cb-CoC81Jcm.js +0 -1
  150. package/build/assets/index-vRM8HrbM-CZbE9IiJ.js +0 -3
  151. package/build/assets/inherits-CYghrBFU-Cf4k8aUQ.js +0 -1
  152. package/build/assets/number-overlay-editor-C2e7pY6x-BnC-vP7l.js +0 -9
  153. package/build/assets/record-DJsfODTt-CK8X1liM.js +0 -1
  154. package/build/assets/slicedToArray-D4uL3Bzl-95JmZlNK.js +0 -2
  155. package/build/assets/uniqueId-C6wp_e1D-D_RnWRJW.js +0 -1
  156. package/build/assets/wavesurfer.esm-CzjpjtNs-CtBzisOM.js +0 -74
  157. package/build/assets/withFullScreenWrapper-DqrJMIkm-BwrYir6f.js +0 -1
  158. package/wheels/streamlit-1.51.0-cp313-none-any.whl +0 -0
@@ -0,0 +1 @@
1
+ import{r as i,L as V,cg as B,cy as E,cz as O,k as u,cA as $,aP as j,ao as k,aQ as F,y as A,ci as N,cB as P,cl as H,cC as D,ch as U,cD as Y,cE as K,cF as G}from"./index-nhNM5UeG.js";import{S as Q}from"./useBasicWidgetState-BYeS5Lnw-COvJBdtg.js";import{c as X}from"./_baseIndexOf-OsCSwRmV--aVpkM1d.js";import"./FormClearHelper-XrLdNEJa-DVEjd1cV.js";function Z(o,t){var l=o==null?0:o.length;return!!l&&X(o,t,0)>-1}var q=200;function J(o,t,l,p){var e=-1,h=Z,n=!0,g=o.length,s=[],f=t.length;if(!g)return s;t.length>=q&&(h=G,n=!1,t=new K(t));e:for(;++e<g;){var a=o[e],c=a;if(a=a!==0?a:0,n&&c===c){for(var m=f;m--;)if(t[m]===c)continue e;s.push(a)}else h(t,c,p)||s.push(a)}return s}var _=E(function(o,t){return Y(o)?J(o,t):[]});const ee=A("div",{target:"e6zijwc0"})(({theme:o})=>({"span[aria-disabled='true']":{background:o.colors.fadedText05}}),""),te=(o,t)=>o.getStringArrayValue(t),oe=o=>o.default.map(t=>o.options[t])??null,re=o=>o.rawValues??null,se=(o,t,l,p)=>{t.setStringArrayValue(o,l.value,{fromUi:l.fromUi},p)},ie=o=>{const{element:t,widgetMgr:l,fragmentId:p}=o,e=V(),h=i.useContext(B),n=i.useRef(null),g=i.useRef(0),[s,f]=Q({getStateFromWidgetMgr:te,getDefaultStateFromProto:oe,getCurrStateFromProto:re,updateWidgetMgrState:se,element:t,widgetMgr:l,fragmentId:p}),a=t.maxSelections>0&&s.length>=t.maxSelections,c=i.useMemo(()=>{if(t.maxSelections===0)return"No results";if(s.length===t.maxSelections){const r=t.maxSelections!==1?"options":"option";return`You can only select up to ${t.maxSelections} ${r}. Remove an option first.`}return"No results"},[t.maxSelections,s.length]),m=i.useCallback(r=>{switch(r.type){case"remove":return _(s,r.option?.value);case"clear":return[];case"select":return s.concat([r.option?.value]);default:throw new Error(`State transition is unknown: ${r.type}`)}},[s]),v=i.useCallback(r=>{t.maxSelections&&r.type==="select"&&s.length>=t.maxSelections||f({value:m(r),fromUi:!0})},[t.maxSelections,m,f,s.length]),{options:C}=t,{placeholder:z,disabled:R,selectOptions:w,inputReadOnly:T,valuesToUiMulti:S,createFilterOptions:y}=O({options:C,isMulti:!0,acceptNewOptions:t.acceptNewOptions??!1,placeholderInput:t.placeholder}),M=i.useCallback((r,d)=>a?[]:y(s)(r,d),[y,a,s]),b=o.disabled||R,W=i.useMemo(()=>S(s),[S,s]),L=i.useMemo(()=>{const r=e.fontSizes.baseFontSize*1.6+14;return`${Math.round(r*4.25)}px`},[e.fontSizes.baseFontSize]);i.useLayoutEffect(()=>{n.current&&(n.current.scrollTop=g.current)});const x=i.useCallback(r=>{g.current=r.currentTarget.scrollTop},[]),I=i.useMemo(()=>(function(r){return u.jsx($,{...r,ref:n,onScroll:x})}),[x]);return u.jsxs("div",{className:"stMultiSelect","data-testid":"stMultiSelect",children:[u.jsx(j,{label:t.label,disabled:b,labelVisibility:k(t.labelVisibility?.value),children:t.help&&u.jsx(F,{content:t.help,label:t.label})}),u.jsx(ee,{children:u.jsx(N,{creatable:t.acceptNewOptions??!1,options:w,labelKey:"label",valueKey:"value","aria-label":t.label,placeholder:z,type:D.select,multi:!0,onChange:v,value:W,disabled:b,size:"compact",noResultsMsg:c,filterOptions:M,closeOnSelect:!1,ignoreCase:!1,overrides:{Popover:{props:{ignoreBoundary:h,overrides:{Body:{style:()=>({marginTop:e.spacing.px})}}}},SelectArrow:{component:H,props:{style:{cursor:"pointer"},overrides:{Svg:{style:()=>({width:e.iconSizes.xl,height:e.iconSizes.xl})}}}},IconsContainer:{style:()=>({paddingRight:e.spacing.sm})},ControlContainer:{style:({$isFocused:r})=>{const d=U(e.colors,r);return{maxHeight:L,minHeight:e.sizes.minElementHeight,borderLeftWidth:e.sizes.borderWidth,borderRightWidth:e.sizes.borderWidth,borderTopWidth:e.sizes.borderWidth,borderBottomWidth:e.sizes.borderWidth,borderTopColor:d,borderRightColor:d,borderBottomColor:d,borderLeftColor:d}}},Placeholder:{style:()=>({flex:"inherit",color:b?e.colors.fadedText40:e.colors.fadedText60})},ValueContainer:{component:I,style:()=>({overflowY:"auto",paddingLeft:e.spacing.sm,paddingTop:e.spacing.none,paddingBottom:e.spacing.none,paddingRight:e.spacing.none})},ClearIcon:{props:{overrides:{Svg:{style:{color:e.colors.grayTextColor,padding:e.spacing.threeXS,height:e.sizes.clearIconSize,width:e.sizes.clearIconSize,cursor:"pointer",":hover":{fill:e.colors.bodyText}}}}}},SearchIcon:{style:{color:e.colors.grayTextColor}},Tag:{props:{overrides:{Root:{style:{fontWeight:e.fontWeights.normal,borderTopLeftRadius:e.radii.md,borderTopRightRadius:e.radii.md,borderBottomRightRadius:e.radii.md,borderBottomLeftRadius:e.radii.md,fontSize:e.fontSizes.md,paddingLeft:e.spacing.sm,marginLeft:e.spacing.none,marginRight:e.spacing.sm,height:`calc(${e.sizes.minElementHeight} - 2 * ${e.spacing.xs})`,maxWidth:`calc(100% - ${e.spacing.lg})`,cursor:"default !important"}},Action:{style:{paddingLeft:0}},ActionIcon:{props:{overrides:{Svg:{style:{width:"0.625em",height:"0.625em"}}}}}}}},MultiValue:{props:{overrides:{Root:{style:{fontSize:e.fontSizes.sm}}}}},Input:{props:{readOnly:T}},Dropdown:{component:P}}})})]})},de=i.memo(ie);export{de as default};
@@ -0,0 +1,2 @@
1
+ import{r as R,L as ht,cL as pt,k as W,y as oe,B as Ee,br as Z,aP as gt,ao as mt,aQ as vt,af as ze,cn as bt,bM as yt,bs as G,cM as ue,Q as qe,c8 as wt,c9 as kt}from"./index-nhNM5UeG.js";import{l as Tt}from"./moment-CU6QKNej-DcQX_LE0.js";import{o as xt}from"./withCalculatedWidth-ZZ9bYZZd-CtbnrMaD.js";import{S as Ot}from"./useBasicWidgetState-BYeS5Lnw-COvJBdtg.js";import{s as Mt}from"./formatMoment-DEtsTHwA-BeQagUzn.js";import{l as St}from"./formatNumber-ep44bWil-jKcj-W8C.js";import"./FormClearHelper-XrLdNEJa-DVEjd1cV.js";import"./numbro-CBbENDeu-C6X7Pww4.js";import"./sprintf-D5E86llw-6tzWM3a-.js";var me={},X={},ve={},se={},Ne;function Ce(){if(Ne)return se;Ne=1,Object.defineProperty(se,"__esModule",{value:!0}),se.Direction=void 0;var e;return(function(r){r.Right="to right",r.Left="to left",r.Down="to bottom",r.Up="to top"})(e||(se.Direction=e={})),se}var _e;function We(){return _e||(_e=1,(function(e){var r=ve&&ve.__spreadArray||function(o,i,u){if(u||arguments.length===2)for(var h=0,v=i.length,f;h<v;h++)(f||!(h in i))&&(f||(f=Array.prototype.slice.call(i,0,h)),f[h]=i[h]);return o.concat(f||Array.prototype.slice.call(i))};Object.defineProperty(e,"__esModule",{value:!0}),e.isIOS=e.useThumbOverlap=e.assertUnreachable=e.voidFn=e.getTrackBackground=e.replaceAt=e.schd=e.translate=e.getClosestThumbIndex=e.translateThumbs=e.getPaddingAndBorder=e.getMargin=e.checkInitialOverlap=e.checkValuesAgainstBoundaries=e.checkBoundaries=e.isVertical=e.relativeValue=e.normalizeValue=e.isStepDivisible=e.isTouchEvent=e.getStepDecimals=void 0;var n=qe,s=Ce(),m=function(o){var i=o.toString().split(".")[1];return i?i.length:0};e.getStepDecimals=m;function k(o){return o.touches&&o.touches.length||o.changedTouches&&o.changedTouches.length}e.isTouchEvent=k;function l(o,i,u){var h=(i-o)/u,v=8,f=Number(h.toFixed(v));return parseInt(f.toString(),10)===f}e.isStepDivisible=l;function g(o,i,u,h,v,f,y){var S=1e11;if(o=Math.round(o*S)/S,!f){var L=y[i-1],C=y[i+1];if(L&&L>o)return L;if(C&&C<o)return C}if(o>h)return h;if(o<u)return u;var U=Math.floor(o*S-u*S)%Math.floor(v*S),N=Math.floor(o*S-Math.abs(U)),H=U===0?o:N/S,B=Math.abs(U/S)<v/2?H:H+v,A=(0,e.getStepDecimals)(v);return parseFloat(B.toFixed(A))}e.normalizeValue=g;function F(o,i,u){return(o-i)/(u-i)}e.relativeValue=F;function z(o){return o===s.Direction.Up||o===s.Direction.Down}e.isVertical=z;function _(o,i,u){if(i>=u)throw new RangeError("min (".concat(i,") is equal/bigger than max (").concat(u,")"));if(o<i)throw new RangeError("value (".concat(o,") is smaller than min (").concat(i,")"));if(o>u)throw new RangeError("value (".concat(o,") is bigger than max (").concat(u,")"))}e.checkBoundaries=_;function D(o,i,u){return o<i?i:o>u?u:o}e.checkValuesAgainstBoundaries=D;function w(o){if(!(o.length<2)&&!o.slice(1).every(function(i,u){return o[u]<=i}))throw new RangeError("values={[".concat(o,"]} needs to be sorted when allowOverlap={false}"))}e.checkInitialOverlap=w;function p(o){var i=window.getComputedStyle(o);return{top:parseInt(i["margin-top"],10),bottom:parseInt(i["margin-bottom"],10),left:parseInt(i["margin-left"],10),right:parseInt(i["margin-right"],10)}}e.getMargin=p;function t(o){var i=window.getComputedStyle(o);return{top:parseInt(i["padding-top"],10)+parseInt(i["border-top-width"],10),bottom:parseInt(i["padding-bottom"],10)+parseInt(i["border-bottom-width"],10),left:parseInt(i["padding-left"],10)+parseInt(i["border-left-width"],10),right:parseInt(i["padding-right"],10)+parseInt(i["border-right-width"],10)}}e.getPaddingAndBorder=t;function a(o,i,u){var h=u?-1:1;o.forEach(function(v,f){return d(v,h*i[f].x,i[f].y)})}e.translateThumbs=a;function c(o,i,u,h){for(var v=0,f=$(o[0],i,u,h),y=1;y<o.length;y++){var S=$(o[y],i,u,h);S<f&&(f=S,v=y)}return v}e.getClosestThumbIndex=c;function d(o,i,u){o.style.transform="translate(".concat(i,"px, ").concat(u,"px)")}e.translate=d;var b=function(o){var i=[],u=null,h=function(){for(var v=[],f=0;f<arguments.length;f++)v[f]=arguments[f];i=v,!u&&(u=requestAnimationFrame(function(){u=null,o.apply(void 0,i)}))};return h};e.schd=b;function T(o,i,u){var h=o.slice(0);return h[i]=u,h}e.replaceAt=T;function j(o){var i=o.values,u=o.colors,h=o.min,v=o.max,f=o.direction,y=f===void 0?s.Direction.Right:f,S=o.rtl,L=S===void 0?!1:S;L&&y===s.Direction.Right?y=s.Direction.Left:L&&s.Direction.Left&&(y=s.Direction.Right);var C=i.slice(0).sort(function(N,H){return N-H}).map(function(N){return(N-h)/(v-h)*100}),U=C.reduce(function(N,H,B){return"".concat(N,", ").concat(u[B]," ").concat(H,"%, ").concat(u[B+1]," ").concat(H,"%")},"");return"linear-gradient(".concat(y,", ").concat(u[0]," 0%").concat(U,", ").concat(u[u.length-1]," 100%)")}e.getTrackBackground=j;function x(){}e.voidFn=x;function O(o){throw new Error("Didn't expect to get here")}e.assertUnreachable=O;var E=function(o,i,u,h,v){v===void 0&&(v=function(y){return y});var f=Math.ceil(r([o],Array.from(o.children),!0).reduce(function(y,S){var L=Math.ceil(S.getBoundingClientRect().width);if(S.innerText&&S.innerText.includes(u)&&S.childElementCount===0){var C=S.cloneNode(!0);C.innerHTML=v(i.toFixed(h)),C.style.visibility="hidden",document.body.appendChild(C),L=Math.ceil(C.getBoundingClientRect().width),document.body.removeChild(C)}return L>y?L:y},o.getBoundingClientRect().width));return f},P=function(o,i,u,h,v,f,y){y===void 0&&(y=function(C){return C});var S=[],L=function(C){var U=E(u[C],h[C],v,f,y),N=i[C].x;i.forEach(function(H,B){var A=H.x,Q=E(u[B],h[B],v,f,y);C!==B&&(N>=A&&N<=A+Q||N+U>=A&&N+U<=A+Q)&&(S.includes(B)||(S.push(C),S.push(B),S=r(r([],S,!0),[C,B],!1),L(B)))})};return L(o),Array.from(new Set(S.sort()))},M=function(o,i,u,h,v,f){h===void 0&&(h=.1),v===void 0&&(v=" - "),f===void 0&&(f=function(B){return B});var y=(0,e.getStepDecimals)(h),S=(0,n.useState)({}),L=S[0],C=S[1],U=(0,n.useState)(f(i[u].toFixed(y))),N=U[0],H=U[1];return(0,n.useEffect)(function(){if(o){var B=o.getThumbs();if(B.length<1)return;var A={},Q=o.getOffsets(),re=P(u,Q,B,i,v,y,f),le=f(i[u].toFixed(y));if(re.length){var ee=re.reduce(function(te,ie,pe,ge){return te.length?r(r([],te,!0),[Q[ge[pe]].x],!1):[Q[ge[pe]].x]},[]);if(Math.min.apply(Math,ee)===Q[u].x){var de=[];re.forEach(function(te){de.push(i[te].toFixed(y))}),le=Array.from(new Set(de.sort(function(te,ie){return parseFloat(te)-parseFloat(ie)}))).map(f).join(v);var fe=Math.min.apply(Math,ee),he=Math.max.apply(Math,ee),Re=B[re[ee.indexOf(he)]].getBoundingClientRect().width;A.left="".concat(Math.abs(fe-(he+Re))/2,"px"),A.transform="translate(-50%, 0)"}else A.visibility="hidden"}H(le),C(A)}},[o,i]),[N,L]};e.useThumbOverlap=M;function $(o,i,u,h){var v=o.getBoundingClientRect(),f=v.left,y=v.top,S=v.width,L=v.height;return z(h)?Math.abs(u-(y+L/2)):Math.abs(i-(f+S/2))}var I=function(){var o,i=((o=navigator.userAgentData)===null||o===void 0?void 0:o.platform)||navigator.platform;return["iPad Simulator","iPhone Simulator","iPod Simulator","iPad","iPhone","iPod"].includes(i)||navigator.userAgent.includes("Mac")&&"ontouchend"in document};e.isIOS=I})(ve)),ve}var Ue;function Dt(){if(Ue)return X;Ue=1;var e=X&&X.__extends||(function(){var D=function(w,p){return D=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,a){t.__proto__=a}||function(t,a){for(var c in a)Object.prototype.hasOwnProperty.call(a,c)&&(t[c]=a[c])},D(w,p)};return function(w,p){if(typeof p!="function"&&p!==null)throw new TypeError("Class extends value "+String(p)+" is not a constructor or null");D(w,p);function t(){this.constructor=w}w.prototype=p===null?Object.create(p):(t.prototype=p.prototype,new t)}})(),r=X&&X.__createBinding||(Object.create?function(D,w,p,t){t===void 0&&(t=p);var a=Object.getOwnPropertyDescriptor(w,p);(!a||("get"in a?!w.__esModule:a.writable||a.configurable))&&(a={enumerable:!0,get:function(){return w[p]}}),Object.defineProperty(D,t,a)}:function(D,w,p,t){t===void 0&&(t=p),D[t]=w[p]}),n=X&&X.__setModuleDefault||(Object.create?function(D,w){Object.defineProperty(D,"default",{enumerable:!0,value:w})}:function(D,w){D.default=w}),s=X&&X.__importStar||function(D){if(D&&D.__esModule)return D;var w={};if(D!=null)for(var p in D)p!=="default"&&Object.prototype.hasOwnProperty.call(D,p)&&r(w,D,p);return n(w,D),w},m=X&&X.__spreadArray||function(D,w,p){if(p||arguments.length===2)for(var t=0,a=w.length,c;t<a;t++)(c||!(t in w))&&(c||(c=Array.prototype.slice.call(w,0,t)),c[t]=w[t]);return D.concat(c||Array.prototype.slice.call(w))};Object.defineProperty(X,"__esModule",{value:!0});var k=s(qe),l=We(),g=Ce(),F=["ArrowRight","ArrowUp","k","PageUp"],z=["ArrowLeft","ArrowDown","j","PageDown"],_=(function(D){e(w,D);function w(p){var t=D.call(this,p)||this;if(t.trackRef=k.createRef(),t.thumbRefs=[],t.state={draggedTrackPos:[-1,-1],draggedThumbIndex:-1,thumbZIndexes:new Array(t.props.values.length).fill(0).map(function(a,c){return c}),isChanged:!1,markOffsets:[]},t.getOffsets=function(){var a=t.props,c=a.direction,d=a.values,b=a.min,T=a.max,j=t.trackRef.current;if(!j)return console.warn("No track element found."),[];var x=j.getBoundingClientRect(),O=(0,l.getPaddingAndBorder)(j);return t.getThumbs().map(function(E,P){var M={x:0,y:0},$=E.getBoundingClientRect(),I=(0,l.getMargin)(E);switch(c){case g.Direction.Right:return M.x=(I.left+O.left)*-1,M.y=(($.height-x.height)/2+O.top)*-1,M.x+=x.width*(0,l.relativeValue)(d[P],b,T)-$.width/2,M;case g.Direction.Left:return M.x=(I.right+O.right)*-1,M.y=(($.height-x.height)/2+O.top)*-1,M.x+=x.width-x.width*(0,l.relativeValue)(d[P],b,T)-$.width/2,M;case g.Direction.Up:return M.x=(($.width-x.width)/2+I.left+O.left)*-1,M.y=-O.left,M.y+=x.height-x.height*(0,l.relativeValue)(d[P],b,T)-$.height/2,M;case g.Direction.Down:return M.x=(($.width-x.width)/2+I.left+O.left)*-1,M.y=-O.left,M.y+=x.height*(0,l.relativeValue)(d[P],b,T)-$.height/2,M;default:return(0,l.assertUnreachable)(c)}})},t.getThumbs=function(){return t.trackRef&&t.trackRef.current?Array.from(t.trackRef.current.children).filter(function(a){return a.hasAttribute("aria-valuenow")}):(console.warn("No thumbs found in the track container. Did you forget to pass & spread the `props` param in renderTrack?"),[])},t.getTargetIndex=function(a){return t.getThumbs().findIndex(function(c){return c===a.target||c.contains(a.target)})},t.addTouchEvents=function(a){document.addEventListener("touchmove",t.schdOnTouchMove,{passive:!1}),document.addEventListener("touchend",t.schdOnEnd,{passive:!1}),document.addEventListener("touchcancel",t.schdOnEnd,{passive:!1})},t.addMouseEvents=function(a){document.addEventListener("mousemove",t.schdOnMouseMove),document.addEventListener("mouseup",t.schdOnEnd)},t.onMouseDownTrack=function(a){var c;if(!(a.button!==0||(0,l.isIOS)()))if(a.persist(),a.preventDefault(),t.addMouseEvents(a.nativeEvent),t.props.values.length>1&&t.props.draggableTrack){if(t.thumbRefs.some(function(b){var T;return(T=b.current)===null||T===void 0?void 0:T.contains(a.target)}))return;t.setState({draggedTrackPos:[a.clientX,a.clientY]},function(){return t.onMove(a.clientX,a.clientY)})}else{var d=(0,l.getClosestThumbIndex)(t.thumbRefs.map(function(b){return b.current}),a.clientX,a.clientY,t.props.direction);(c=t.thumbRefs[d].current)===null||c===void 0||c.focus(),t.setState({draggedThumbIndex:d},function(){return t.onMove(a.clientX,a.clientY)})}},t.onResize=function(){(0,l.translateThumbs)(t.getThumbs(),t.getOffsets(),t.props.rtl),t.calculateMarkOffsets()},t.onTouchStartTrack=function(a){var c;if(a.persist(),t.addTouchEvents(a.nativeEvent),t.props.values.length>1&&t.props.draggableTrack){if(t.thumbRefs.some(function(b){var T;return(T=b.current)===null||T===void 0?void 0:T.contains(a.target)}))return;t.setState({draggedTrackPos:[a.touches[0].clientX,a.touches[0].clientY]},function(){return t.onMove(a.touches[0].clientX,a.touches[0].clientY)})}else{var d=(0,l.getClosestThumbIndex)(t.thumbRefs.map(function(b){return b.current}),a.touches[0].clientX,a.touches[0].clientY,t.props.direction);(c=t.thumbRefs[d].current)===null||c===void 0||c.focus(),t.setState({draggedThumbIndex:d},function(){return t.onMove(a.touches[0].clientX,a.touches[0].clientY)})}},t.onMouseOrTouchStart=function(a){if(!t.props.disabled){var c=(0,l.isTouchEvent)(a);if(!(!c&&a.button!==0)){var d=t.getTargetIndex(a);d!==-1&&(c?t.addTouchEvents(a):t.addMouseEvents(a),t.setState({draggedThumbIndex:d,thumbZIndexes:t.state.thumbZIndexes.map(function(b,T){return T===d?Math.max.apply(Math,t.state.thumbZIndexes):b<=t.state.thumbZIndexes[d]?b:b-1})}))}}},t.onMouseMove=function(a){a.preventDefault(),t.onMove(a.clientX,a.clientY)},t.onTouchMove=function(a){a.preventDefault(),t.onMove(a.touches[0].clientX,a.touches[0].clientY)},t.onKeyDown=function(a){var c=t.props,d=c.values,b=c.onChange,T=c.step,j=c.rtl,x=c.direction,O=t.state.isChanged,E=t.getTargetIndex(a.nativeEvent),P=j||x===g.Direction.Left||x===g.Direction.Down?-1:1;E!==-1&&(F.includes(a.key)?(a.preventDefault(),t.setState({draggedThumbIndex:E,isChanged:!0}),b((0,l.replaceAt)(d,E,t.normalizeValue(d[E]+P*(a.key==="PageUp"?T*10:T),E)))):z.includes(a.key)?(a.preventDefault(),t.setState({draggedThumbIndex:E,isChanged:!0}),b((0,l.replaceAt)(d,E,t.normalizeValue(d[E]-P*(a.key==="PageDown"?T*10:T),E)))):a.key==="Tab"?t.setState({draggedThumbIndex:-1},function(){O&&t.fireOnFinalChange()}):O&&t.fireOnFinalChange())},t.onKeyUp=function(a){var c=t.state.isChanged;t.setState({draggedThumbIndex:-1},function(){c&&t.fireOnFinalChange()})},t.onMove=function(a,c){var d=t.state,b=d.draggedThumbIndex,T=d.draggedTrackPos,j=t.props,x=j.direction,O=j.min,E=j.max,P=j.onChange,M=j.values,$=j.step,I=j.rtl;if(b===-1&&T[0]===-1&&T[1]===-1)return null;var o=t.trackRef.current;if(!o)return null;var i=o.getBoundingClientRect(),u=(0,l.isVertical)(x)?i.height:i.width;if(T[0]!==-1&&T[1]!==-1){var h=a-T[0],v=c-T[1],f=0;switch(x){case g.Direction.Right:case g.Direction.Left:f=h/u*(E-O);break;case g.Direction.Down:case g.Direction.Up:f=v/u*(E-O);break;default:(0,l.assertUnreachable)(x)}if(I&&(f*=-1),Math.abs(f)>=$/2){for(var y=0;y<t.thumbRefs.length;y++){if(M[y]===E&&Math.sign(f)===1||M[y]===O&&Math.sign(f)===-1)return;var S=M[y]+f;S>E?f=E-M[y]:S<O&&(f=O-M[y])}for(var L=M.slice(0),y=0;y<t.thumbRefs.length;y++)L=(0,l.replaceAt)(L,y,t.normalizeValue(M[y]+f,y));t.setState({draggedTrackPos:[a,c]}),P(L)}}else{var C=0;switch(x){case g.Direction.Right:C=(a-i.left)/u*(E-O)+O;break;case g.Direction.Left:C=(u-(a-i.left))/u*(E-O)+O;break;case g.Direction.Down:C=(c-i.top)/u*(E-O)+O;break;case g.Direction.Up:C=(u-(c-i.top))/u*(E-O)+O;break;default:(0,l.assertUnreachable)(x)}I&&(C=E+O-C),Math.abs(M[b]-C)>=$/2&&P((0,l.replaceAt)(M,b,t.normalizeValue(C,b)))}},t.normalizeValue=function(a,c){var d=t.props,b=d.min,T=d.max,j=d.step,x=d.allowOverlap,O=d.values;return(0,l.normalizeValue)(a,c,b,T,j,x,O)},t.onEnd=function(a){if(a.preventDefault(),document.removeEventListener("mousemove",t.schdOnMouseMove),document.removeEventListener("touchmove",t.schdOnTouchMove),document.removeEventListener("mouseup",t.schdOnEnd),document.removeEventListener("touchend",t.schdOnEnd),document.removeEventListener("touchcancel",t.schdOnEnd),t.state.draggedThumbIndex===-1&&t.state.draggedTrackPos[0]===-1&&t.state.draggedTrackPos[1]===-1)return null;t.setState({draggedThumbIndex:-1,draggedTrackPos:[-1,-1]},function(){t.fireOnFinalChange()})},t.fireOnFinalChange=function(){t.setState({isChanged:!1});var a=t.props,c=a.onFinalChange,d=a.values;c&&c(d)},t.updateMarkRefs=function(a){if(!a.renderMark){t.numOfMarks=void 0,t.markRefs=void 0;return}t.numOfMarks=(a.max-a.min)/t.props.step,t.markRefs=[];for(var c=0;c<t.numOfMarks+1;c++)t.markRefs[c]=k.createRef()},t.calculateMarkOffsets=function(){if(!(!t.props.renderMark||!t.trackRef||!t.numOfMarks||!t.markRefs||t.trackRef.current===null)){for(var a=window.getComputedStyle(t.trackRef.current),c=parseInt(a.width,10),d=parseInt(a.height,10),b=parseInt(a.paddingLeft,10),T=parseInt(a.paddingTop,10),j=[],x=0;x<t.numOfMarks+1;x++){var O=9999,E=9999;if(t.markRefs[x].current){var P=t.markRefs[x].current.getBoundingClientRect();O=P.height,E=P.width}t.props.direction===g.Direction.Left||t.props.direction===g.Direction.Right?j.push([Math.round(c/t.numOfMarks*x+b-E/2),-Math.round((O-d)/2)]):j.push([Math.round(d/t.numOfMarks*x+T-O/2),-Math.round((E-c)/2)])}t.setState({markOffsets:j})}},p.step===0)throw new Error('"step" property should be a positive number');return t.schdOnMouseMove=(0,l.schd)(t.onMouseMove),t.schdOnTouchMove=(0,l.schd)(t.onTouchMove),t.schdOnEnd=(0,l.schd)(t.onEnd),t.thumbRefs=p.values.map(function(){return k.createRef()}),t.updateMarkRefs(p),t}return w.prototype.componentDidMount=function(){var p=this,t=this.props,a=t.values,c=t.min,d=t.step;this.resizeObserver=window.ResizeObserver?new window.ResizeObserver(this.onResize):{observe:function(){return window.addEventListener("resize",p.onResize)},unobserve:function(){return window.removeEventListener("resize",p.onResize)}},document.addEventListener("touchstart",this.onMouseOrTouchStart,{passive:!1}),document.addEventListener("mousedown",this.onMouseOrTouchStart,{passive:!1}),!this.props.allowOverlap&&(0,l.checkInitialOverlap)(this.props.values),this.props.values.forEach(function(b){return(0,l.checkBoundaries)(b,p.props.min,p.props.max)}),this.resizeObserver.observe(this.trackRef.current),(0,l.translateThumbs)(this.getThumbs(),this.getOffsets(),this.props.rtl),this.calculateMarkOffsets(),a.forEach(function(b){(0,l.isStepDivisible)(c,b,d)||console.warn("The `values` property is in conflict with the current `step`, `min`, and `max` properties. Please provide values that are accessible using the min, max, and step values.")})},w.prototype.componentDidUpdate=function(p,t){var a=this.props,c=a.max,d=a.min,b=a.step,T=a.values,j=a.rtl;(p.max!==c||p.min!==d||p.step!==b)&&this.updateMarkRefs(this.props),(0,l.translateThumbs)(this.getThumbs(),this.getOffsets(),j),(p.max!==c||p.min!==d||p.step!==b||t.markOffsets.length!==this.state.markOffsets.length)&&(this.calculateMarkOffsets(),T.forEach(function(x){(0,l.isStepDivisible)(d,x,b)||console.warn("The `values` property is in conflict with the current `step`, `min`, and `max` properties. Please provide values that are accessible using the min, max, and step values.")}))},w.prototype.componentWillUnmount=function(){var p={passive:!1};document.removeEventListener("mousedown",this.onMouseOrTouchStart,p),document.removeEventListener("mousemove",this.schdOnMouseMove),document.removeEventListener("touchmove",this.schdOnTouchMove),document.removeEventListener("touchstart",this.onMouseOrTouchStart),document.removeEventListener("mouseup",this.schdOnEnd),document.removeEventListener("touchend",this.schdOnEnd),this.resizeObserver.unobserve(this.trackRef.current)},w.prototype.render=function(){var p=this,t=this.props,a=t.label,c=t.labelledBy,d=t.renderTrack,b=t.renderThumb,T=t.renderMark,j=T===void 0?function(){return null}:T,x=t.values,O=t.min,E=t.max,P=t.allowOverlap,M=t.disabled,$=this.state,I=$.draggedThumbIndex,o=$.thumbZIndexes,i=$.markOffsets;return d({props:{style:{transform:"scale(1)",cursor:I>-1?"grabbing":this.props.draggableTrack?(0,l.isVertical)(this.props.direction)?"ns-resize":"ew-resize":x.length===1&&!M?"pointer":"inherit"},onMouseDown:M?l.voidFn:this.onMouseDownTrack,onTouchStart:M?l.voidFn:this.onTouchStartTrack,ref:this.trackRef},isDragged:this.state.draggedThumbIndex>-1,disabled:M,children:m(m([],i.map(function(u,h,v){return j({props:{style:p.props.direction===g.Direction.Left||p.props.direction===g.Direction.Right?{position:"absolute",left:"".concat(u[0],"px"),marginTop:"".concat(u[1],"px")}:{position:"absolute",top:"".concat(u[0],"px"),marginLeft:"".concat(u[1],"px")},key:"mark".concat(h),ref:p.markRefs[h]},index:h})}),!0),x.map(function(u,h){var v=p.state.draggedThumbIndex===h;return b({index:h,value:u,isDragged:v,props:{style:{position:"absolute",zIndex:o[h],cursor:M?"inherit":v?"grabbing":"grab",userSelect:"none",touchAction:"none",WebkitUserSelect:"none",MozUserSelect:"none",msUserSelect:"none"},key:h,tabIndex:M?void 0:0,"aria-valuemax":P?E:x[h+1]||E,"aria-valuemin":P?O:x[h-1]||O,"aria-valuenow":u,draggable:!1,ref:p.thumbRefs[h],"aria-label":a,"aria-labelledby":c,role:"slider",onKeyDown:M?l.voidFn:p.onKeyDown,onKeyUp:M?l.voidFn:p.onKeyUp}})}),!0)})},w.defaultProps={label:"Accessibility label",labelledBy:null,step:1,direction:g.Direction.Right,rtl:!1,disabled:!1,allowOverlap:!1,draggableTrack:!1,min:0,max:100},w})(k.Component);return X.default=_,X}var Xe;function Rt(){return Xe||(Xe=1,(function(e){var r=me&&me.__importDefault||function(k){return k&&k.__esModule?k:{default:k}};Object.defineProperty(e,"__esModule",{value:!0}),e.checkValuesAgainstBoundaries=e.relativeValue=e.useThumbOverlap=e.Direction=e.getTrackBackground=e.Range=void 0;var n=r(Dt());e.Range=n.default;var s=We();Object.defineProperty(e,"getTrackBackground",{enumerable:!0,get:function(){return s.getTrackBackground}}),Object.defineProperty(e,"useThumbOverlap",{enumerable:!0,get:function(){return s.useThumbOverlap}}),Object.defineProperty(e,"relativeValue",{enumerable:!0,get:function(){return s.relativeValue}}),Object.defineProperty(e,"checkValuesAgainstBoundaries",{enumerable:!0,get:function(){return s.checkValuesAgainstBoundaries}});var m=Ce();Object.defineProperty(e,"Direction",{enumerable:!0,get:function(){return m.Direction}})})(me)),me}var Je=Rt();function He(e,r){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(e);r&&(s=s.filter(function(m){return Object.getOwnPropertyDescriptor(e,m).enumerable})),n.push.apply(n,s)}return n}function ye(e){for(var r=1;r<arguments.length;r++){var n=arguments[r]!=null?arguments[r]:{};r%2?He(Object(n),!0).forEach(function(s){Et(e,s,n[s])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):He(Object(n)).forEach(function(s){Object.defineProperty(e,s,Object.getOwnPropertyDescriptor(n,s))})}return e}function Et(e,r,n){return r in e?Object.defineProperty(e,r,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[r]=n,e}var we=Z("div",{position:"relative",width:"100%"});we.displayName="Root";we.displayName="Root";we.displayName="StyledRoot";var ke=Z("div",function(e){var r=e.$theme,n=e.$value,s=n===void 0?[]:n,m=e.$disabled,k=e.$isDragged,l=r.sizing,g="inherit";return m?g="not-allowed":k?g="grabbing":s.length===1&&(g="pointer"),{paddingTop:l.scale600,paddingBottom:l.scale600,paddingRight:l.scale600,paddingLeft:l.scale600,display:"flex",cursor:g,backgroundColor:r.colors.sliderTrackFill}});ke.displayName="Track";ke.displayName="Track";ke.displayName="StyledTrack";var ce=Z("div",function(e){var r=e.$theme,n=e.$value,s=n===void 0?[]:n,m=e.$min,k=e.$max,l=e.$disabled,g=r.colors,F=r.borders,z=r.direction,_=r.borders.useRoundedCorners?F.radius100:0;return{borderTopLeftRadius:_,borderTopRightRadius:_,borderBottomRightRadius:_,borderBottomLeftRadius:_,background:Je.getTrackBackground({values:s,colors:s.length===1?[l?g.borderOpaque:g.primary,l?g.backgroundSecondary:g.borderOpaque]:[l?g.backgroundSecondary:g.borderOpaque,l?g.borderOpaque:g.primary,l?g.backgroundSecondary:g.borderOpaque],min:m||0,max:k||0,rtl:z==="rtl"}),height:"2px",width:"100%",alignSelf:"center",cursor:l?"not-allowed":"inherit"}});ce.displayName="InnerTrack";ce.displayName="InnerTrack";ce.displayName="StyledInnerTrack";var Te=Z("div",function(e){return{width:"4px",height:"2px",backgroundColor:e.$theme.colors.backgroundPrimary,marginLeft:"16px"}});Te.displayName="Mark";Te.displayName="Mark";Te.displayName="StyledMark";var xe=Z("div",function(e){return ye(ye({},e.$theme.typography.font200),{},{color:e.$theme.colors.contentPrimary})});xe.displayName="Tick";xe.displayName="Tick";xe.displayName="StyledTick";var Oe=Z("div",function(e){var r=e.$theme,n=r.sizing;return{display:"flex",justifyContent:"space-between",alignItems:"center",paddingRight:n.scale600,paddingLeft:n.scale600,paddingBottom:n.scale400}});Oe.displayName="TickBar";Oe.displayName="TickBar";Oe.displayName="StyledTickBar";var Me=Z("div",function(e){var r=e.$theme,n=e.$value,s=n===void 0?[]:n,m=e.$thumbIndex,k=e.$disabled,l=s.length===2&&m===0,g=s.length===2&&m===1;return r.direction==="rtl"&&(g||l)&&(l=!l,g=!g),{height:"24px",width:"24px",borderTopLeftRadius:"24px",borderTopRightRadius:"24px",borderBottomLeftRadius:"24px",borderBottomRightRadius:"24px",display:"flex",justifyContent:"center",alignItems:"center",backgroundColor:k?r.colors.sliderHandleFillDisabled:r.colors.sliderHandleFill,outline:"none",boxShadow:e.$isFocusVisible?"0 0 0 3px ".concat(r.colors.accent):"0 1px 4px rgba(0, 0, 0, 0.12)",cursor:k?"not-allowed":"inherit"}});Me.displayName="Thumb";Me.displayName="Thumb";Me.displayName="StyledThumb";var Se=Z("div",function(e){var r=e.$disabled,n=e.$theme;return{position:"absolute",top:"-16px",width:"4px",height:"20px",backgroundColor:r?n.colors.sliderHandleFillDisabled:n.colors.sliderHandleInnerFill}});Se.displayName="InnerThumb";Se.displayName="InnerThumb";Se.displayName="StyledInnerThumb";var De=Z("div",function(e){var r=e.$disabled,n=e.$theme;return ye(ye({position:"absolute",top:"-".concat(n.sizing.scale1400)},n.typography.font200),{},{backgroundColor:r?n.colors.sliderHandleFillDisabled:n.colors.sliderHandleInnerFill,color:n.colors.contentInversePrimary,paddingLeft:n.sizing.scale600,paddingRight:n.sizing.scale600,paddingTop:n.sizing.scale500,paddingBottom:n.sizing.scale500,borderBottomLeftRadius:"48px",borderBottomRightRadius:"48px",borderTopLeftRadius:"48px",borderTopRightRadius:"48px",whiteSpace:"nowrap"})});De.displayName="ThumbValue";De.displayName="ThumbValue";De.displayName="StyledThumbValue";function Ye(e,r){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(e);r&&(s=s.filter(function(m){return Object.getOwnPropertyDescriptor(e,m).enumerable})),n.push.apply(n,s)}return n}function Ct(e){for(var r=1;r<arguments.length;r++){var n=arguments[r]!=null?arguments[r]:{};r%2?Ye(Object(n),!0).forEach(function(s){It(e,s,n[s])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Ye(Object(n)).forEach(function(s){Object.defineProperty(e,s,Object.getOwnPropertyDescriptor(n,s))})}return e}function It(e,r,n){return r in e?Object.defineProperty(e,r,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[r]=n,e}function q(){return q=Object.assign?Object.assign.bind():function(e){for(var r=1;r<arguments.length;r++){var n=arguments[r];for(var s in n)Object.prototype.hasOwnProperty.call(n,s)&&(e[s]=n[s])}return e},q.apply(this,arguments)}function K(e,r){return $t(e)||Pt(e,r)||Lt(e,r)||jt()}function jt(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
2
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Lt(e,r){if(e){if(typeof e=="string")return Ke(e,r);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return Ke(e,r)}}function Ke(e,r){(r==null||r>e.length)&&(r=e.length);for(var n=0,s=new Array(r);n<r;n++)s[n]=e[n];return s}function Pt(e,r){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var s=[],m=!0,k=!1,l,g;try{for(n=n.call(e);!(m=(l=n.next()).done)&&(s.push(l.value),!(r&&s.length===r));m=!0);}catch(F){k=!0,g=F}finally{try{!m&&n.return!=null&&n.return()}finally{if(k)throw g}}return s}}function $t(e){if(Array.isArray(e))return e}var Bt=function(e){if(e.length>2||e.length===0)throw new Error("the value prop represents positions of thumbs, so its length can be only one or two");return e};function At(e){var r=e.overrides,n=r===void 0?{}:r,s=e.disabled,m=s===void 0?!1:s,k=e.marks,l=k===void 0?!1:k,g=e.onChange,F=g===void 0?function(){}:g,z=e.onFinalChange,_=z===void 0?function(){}:z,D=e.min,w=D===void 0?0:D,p=e.max,t=p===void 0?100:p,a=e.step,c=a===void 0?1:a,d=e.persistentThumb,b=d===void 0?!1:d,T=e.valueToLabel,j=T===void 0?function(V){return V}:T,x=e.value,O=R.useContext(bt),E=R.useState(!1),P=K(E,2),M=P[0],$=P[1],I=R.useState(!1),o=K(I,2),i=o[0],u=o[1],h=R.useState(!1),v=K(h,2),f=v[0],y=v[1],S=R.useState(-1),L=K(S,2),C=L[0],U=L[1],N=R.useCallback(function(V){yt(V)&&y(!0);var J=V.target.parentNode.firstChild===V.target?0:1;U(J)},[]),H=R.useCallback(function(V){f!==!1&&y(!1),U(-1)},[]),B=Bt(x),A={$disabled:m,$step:c,$min:w,$max:t,$marks:l,$value:B,$isFocusVisible:f},Q=G(n.Root,we),re=K(Q,2),le=re[0],ee=re[1],de=G(n.Track,ke),fe=K(de,2),he=fe[0],Re=fe[1],te=G(n.InnerTrack,ce),ie=K(te,2),pe=ie[0],ge=ie[1],Qe=G(n.Thumb,Me),Ie=K(Qe,2),Ge=Ie[0],Ze=Ie[1],et=G(n.InnerThumb,Se),je=K(et,2),tt=je[0],rt=je[1],nt=G(n.ThumbValue,De),Le=K(nt,2),at=Le[0],ot=Le[1],it=G(n.Tick,xe),Pe=K(it,2),$e=Pe[0],Be=Pe[1],st=G(n.TickBar,Oe),Ae=K(st,2),ut=Ae[0],ct=Ae[1],lt=G(n.Mark,Te),Ve=K(lt,2),dt=Ve[0],ft=Ve[1];return R.createElement(le,q({"data-baseweb":"slider"},A,ee,{onFocus:kt(ee,N),onBlur:wt(ee,H)}),R.createElement(Je.Range,q({step:c,min:w,max:t,values:B,disabled:m,onChange:function(V){return F({value:V})},onFinalChange:function(V){return _({value:V})},rtl:O.direction==="rtl",renderTrack:function(V){var J=V.props,Y=V.children,ne=V.isDragged;return R.createElement(he,q({onMouseDown:J.onMouseDown,onTouchStart:J.onTouchStart,$isDragged:ne},A,Re),R.createElement(pe,q({$isDragged:ne,ref:J.ref},A,ge),Y))},renderThumb:function(V){var J=V.props,Y=V.index,ne=V.isDragged,Fe=b||(!!Y&&i||!Y&&M||ne)&&!m;return R.createElement(Ge,q({},J,{onMouseEnter:function(){Y===0?$(!0):u(!0)},onMouseLeave:function(){Y===0?$(!1):u(!1)},$thumbIndex:Y,$isDragged:ne,style:Ct({},J.style)},A,Ze,{$isFocusVisible:f&&C===Y}),Fe&&R.createElement(at,q({$thumbIndex:Y,$isDragged:ne},A,ot),j(B[Y])),Fe&&R.createElement(tt,q({$thumbIndex:Y,$isDragged:ne},A,rt)))}},l?{renderMark:function(V){var J=V.props,Y=V.index;return R.createElement(dt,q({$markIndex:Y},J,A,ft))}}:{})),R.createElement(ut,q({},A,ct),R.createElement($e,q({},A,Be),j(w)),R.createElement($e,q({},A,Be),j(t))))}const Vt=oe("div",{target:"ew7r33m5"})({name:"igqoeg",styles:"position:relative;:focus-within:has(:focus-visible){--slider-focused:1;}"}),Ft=oe("div",{target:"ew7r33m4"})(({disabled:e,theme:r,isDragged:n})=>({alignItems:"center",backgroundColor:e?r.colors.gray60:r.colors.primary,borderTopLeftRadius:"100%",borderTopRightRadius:"100%",borderBottomLeftRadius:"100%",borderBottomRightRadius:"100%",borderTopStyle:"none",borderBottomStyle:"none",borderRightStyle:"none",borderLeftStyle:"none",display:"flex",justifyContent:"center",height:r.sizes.sliderThumb,width:r.sizes.sliderThumb,boxShadow:n?ze(r):"none",":focus":{outline:"none"},":focus-visible":{boxShadow:ze(r)}}),""),zt=oe("div",{target:"ew7r33m3"})(({disabled:e,theme:r})=>({fontFamily:r.genericFonts.bodyFont,fontSize:r.fontSizes.sm,color:e?r.colors.gray60:r.colors.primary,top:"-1.6em",position:"absolute",whiteSpace:"nowrap",backgroundColor:r.colors.transparent,lineHeight:r.lineHeights.base,fontWeight:r.fontWeights.normal,pointerEvents:"none"}),""),Nt=oe("div",{target:"ew7r33m2"})({name:"82a6rk",styles:"flex:1"}),_t=oe("div",{target:"ew7r33m1"})(({theme:e})=>({position:"absolute",height:e.spacing.twoXS,left:`calc(${e.sizes.sliderThumb} / 2)`,right:`calc(${e.sizes.sliderThumb} / 2)`}),""),Ut=oe("div",{target:"ew7r33m0"})(({theme:e,isHovered:r,isDisabled:n})=>({position:"absolute",left:0,right:0,top:"100%",display:"flex",justifyContent:"space-between",pointerEvents:"none",marginTop:`-${e.spacing.md}`,fontSize:e.fontSizes.sm,lineHeight:e.lineHeights.base,fontWeight:e.fontWeights.normal,color:n?e.colors.fadedText40:e.colors.fadedText60,opacity:r?1:"var(--slider-focused, 0)",transition:r?"none":"opacity 300ms 200ms"}),"");function Xt({minLabel:e,maxLabel:r,isHovered:n,isDisabled:s}){return W.jsxs(Ut,{"data-testid":"stSliderTickBar",isHovered:n,isDisabled:s,children:[W.jsx(Ee,{source:e,allowHTML:!1,inheritFont:!0,isLabel:!0}),W.jsx(Ee,{source:r,allowHTML:!1,inheritFont:!0,isLabel:!0})]})}function Ht({disabled:e,element:r,widgetMgr:n,fragmentId:s}){const[m,k]=Ot({getStateFromWidgetMgr:Yt,getDefaultStateFromProto:Kt,getCurrStateFromProto:qt,updateWidgetMgrState:Wt,element:r,widgetMgr:n,fragmentId:s}),[l,g]=R.useState(m),[F,z]=R.useState(!1),[_,D]=R.useState(!1),w=R.useCallback(()=>z(!0),[]),p=R.useCallback(()=>z(!1),[]),t=R.useRef(null),[a]=R.useState([]),[c]=R.useState([]),d=ht(),b=R.useRef(r);b.current=r;const T=l.map(I=>be(I,r)),j=be(r.min,r),x=be(r.max,r);R.useEffect(()=>{g(m)},[m]);const O=R.useCallback(({value:I})=>{k({value:I,fromUi:!0}),D(!1)},[k]),E=R.useCallback(({value:I})=>{g(I),D(!0)},[]),P=R.useCallback(R.forwardRef(function(I,o){const{$thumbIndex:i,$value:u}=I,h=i||0;a[h]=o,c[h]||=R.createRef();const v=pt(I,["role","style","aria-valuemax","aria-valuemin","aria-valuenow","tabIndex","onKeyUp","onKeyDown","onMouseEnter","onMouseLeave","draggable"]),f=b.current,y=(u??[f.min])[h]??f.min,S=be(y,f);return W.jsx(Ft,{...v,disabled:I.$disabled===!0,isDragged:I.$isDragged===!0,ref:a[h],"aria-valuetext":S,"aria-label":f.label,children:W.jsx(zt,{"data-testid":"stSliderThumbValue",disabled:I.$disabled===!0,ref:c[h],children:W.jsx(Ee,{source:S,allowHTML:!1,inheritFont:!0,isLabel:!0})})})}),[]);R.useLayoutEffect(()=>{a.forEach((v,f)=>{v.current&&v.current.setAttribute("aria-valuetext",T[f])});const I=t.current??null,o=a[0].current,i=a[1]?.current,u=c[0].current,h=c[1]?.current;Zt(I,o,i,u,h)});const M=R.useCallback(({$disabled:I})=>({height:d.spacing.twoXS,...I?{background:d.colors.darkenedBgMix25}:{}}),[d.colors.darkenedBgMix25,d.spacing.twoXS]),$=R.useCallback(R.forwardRef(function(I,o){const{children:i,...u}=I;return W.jsxs(Nt,{children:[W.jsx(_t,{ref:o,children:i}),W.jsx(ce,{...u,style:M({$disabled:I.$disabled})})]})}),[]);return W.jsxs(Vt,{ref:t,className:"stSlider","data-testid":"stSlider",onMouseEnter:w,onMouseLeave:p,children:[W.jsx(gt,{label:r.label,disabled:e,labelVisibility:mt(r.labelVisibility?.value),children:r.help&&W.jsx(vt,{content:r.help,label:r.label})}),W.jsx(At,{min:r.min,max:r.max,step:r.step,value:Gt(l,r),onChange:E,onFinalChange:O,disabled:e,overrides:{Thumb:P,Track:{style:{backgroundColor:"none !important",paddingLeft:d.spacing.none,paddingRight:d.spacing.none,paddingTop:`calc((${d.sizes.minElementHeight} - ${d.spacing.twoXS}) / 2)`,paddingBottom:`calc((${d.sizes.minElementHeight} - ${d.spacing.twoXS}) / 2)`}},InnerTrack:$,TickBar:{component:Xt,props:{minLabel:j,maxLabel:x,isHovered:F||_,isDisabled:e}}}})]})}function Yt(e,r){return e.getDoubleArrayValue(r)}function Kt(e){return e.default}function qt(e){return e.value}function Wt(e,r,n,s){r.setDoubleArrayValue(e,n.value,{fromUi:n.fromUi},s)}function Jt(e){const{dataType:r}=e;return r===ue.DataType.DATETIME||r===ue.DataType.DATE||r===ue.DataType.TIME}function Qt(e){const{dataType:r}=e;return r===ue.DataType.DATE?"date":r===ue.DataType.TIME?"time":"datetime"}function be(e,r){const{format:n,options:s}=r;if(s.length>0)return s[e]??"";if(Jt(r)){const m=Tt.utc(e/1e3);return Mt(m,n,Qt(r))}return St(e,n)}function Gt(e,r){const{min:n,max:s}=r;let m=e[0],k=e.length>1?e[1]:e[0];return m>k&&(m=k),m<n&&(m=n),m>s&&(m=s),k<n&&(k=n),k>s&&(k=s),e.length>1?[m,k]:[m]}function Zt(e,r,n,s,m){!e||!r||!s||(ae(e,r,s),n&&m&&(ae(e,n,m),er(e,r,n,s,m)))}function ae(e,r,n){const s=e.getBoundingClientRect(),m=r.getBoundingClientRect(),k=n.getBoundingClientRect(),l=m.left+m.width/2,g=l-k.width/2<s.left,F=l+k.width/2>s.right;n.style.left=g?"0":"",n.style.right=F?"0":""}function er(e,r,n,s,m){const k=e.getBoundingClientRect(),l=r.getBoundingClientRect(),g=n.getBoundingClientRect(),F=s.getBoundingClientRect(),z=m.getBoundingClientRect(),_=k.left+k.width/2,D=l.left+l.width/2,w=g.left+g.width/2,p=D-F.width/2>=k.left,t=w+z.width/2<=k.right,a=l.left-F.width>=k.left,c=g.right+z.width<=k.right,d=p?F.width/2:F.width,b=t?z.width/2:z.width,T=D+d;if(w-b-T>24){ae(e,r,s),ae(e,n,m);return}if(a&&c){s.style.left="",s.style.right=`${Math.round(l.width)}px`,m.style.left=`${Math.round(g.width)}px`,m.style.right="";return}D<_?(ae(e,r,s),m.style.left=`${Math.round(D+d+24-w)}px`,m.style.right=""):(ae(e,n,m),s.style.left="",s.style.right=`${-Math.round(w-b-24-D)}px`)}const lr=xt(R.memo(Ht));export{lr as default};
@@ -0,0 +1,14 @@
1
+ var W=/[\u1680\u2000-\u200A\u202F\u205F\u3000]/,Y=/[\xAA\xB5\xBA\xC0-\xD6\xD8-\xF6\xF8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0370-\u0374\u0376\u0377\u037A-\u037D\u037F\u0386\u0388-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5\u03F7-\u0481\u048A-\u052F\u0531-\u0556\u0559\u0561-\u0587\u05D0-\u05EA\u05F0-\u05F2\u0620-\u064A\u066E\u066F\u0671-\u06D3\u06D5\u06E5\u06E6\u06EE\u06EF\u06FA-\u06FC\u06FF\u0710\u0712-\u072F\u074D-\u07A5\u07B1\u07CA-\u07EA\u07F4\u07F5\u07FA\u0800-\u0815\u081A\u0824\u0828\u0840-\u0858\u0860-\u086A\u08A0-\u08B4\u08B6-\u08BD\u0904-\u0939\u093D\u0950\u0958-\u0961\u0971-\u0980\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2\u09B6-\u09B9\u09BD\u09CE\u09DC\u09DD\u09DF-\u09E1\u09F0\u09F1\u09FC\u0A05-\u0A0A\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39\u0A59-\u0A5C\u0A5E\u0A72-\u0A74\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABD\u0AD0\u0AE0\u0AE1\u0AF9\u0B05-\u0B0C\u0B0F\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B35-\u0B39\u0B3D\u0B5C\u0B5D\u0B5F-\u0B61\u0B71\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99\u0B9A\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BD0\u0C05-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C39\u0C3D\u0C58-\u0C5A\u0C60\u0C61\u0C80\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3\u0CB5-\u0CB9\u0CBD\u0CDE\u0CE0\u0CE1\u0CF1\u0CF2\u0D05-\u0D0C\u0D0E-\u0D10\u0D12-\u0D3A\u0D3D\u0D4E\u0D54-\u0D56\u0D5F-\u0D61\u0D7A-\u0D7F\u0D85-\u0D96\u0D9A-\u0DB1\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0E01-\u0E30\u0E32\u0E33\u0E40-\u0E46\u0E81\u0E82\u0E84\u0E87\u0E88\u0E8A\u0E8D\u0E94-\u0E97\u0E99-\u0E9F\u0EA1-\u0EA3\u0EA5\u0EA7\u0EAA\u0EAB\u0EAD-\u0EB0\u0EB2\u0EB3\u0EBD\u0EC0-\u0EC4\u0EC6\u0EDC-\u0EDF\u0F00\u0F40-\u0F47\u0F49-\u0F6C\u0F88-\u0F8C\u1000-\u102A\u103F\u1050-\u1055\u105A-\u105D\u1061\u1065\u1066\u106E-\u1070\u1075-\u1081\u108E\u10A0-\u10C5\u10C7\u10CD\u10D0-\u10FA\u10FC-\u1248\u124A-\u124D\u1250-\u1256\u1258\u125A-\u125D\u1260-\u1288\u128A-\u128D\u1290-\u12B0\u12B2-\u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310\u1312-\u1315\u1318-\u135A\u1380-\u138F\u13A0-\u13F5\u13F8-\u13FD\u1401-\u166C\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u16EE-\u16F8\u1700-\u170C\u170E-\u1711\u1720-\u1731\u1740-\u1751\u1760-\u176C\u176E-\u1770\u1780-\u17B3\u17D7\u17DC\u1820-\u1877\u1880-\u1884\u1887-\u18A8\u18AA\u18B0-\u18F5\u1900-\u191E\u1950-\u196D\u1970-\u1974\u1980-\u19AB\u19B0-\u19C9\u1A00-\u1A16\u1A20-\u1A54\u1AA7\u1B05-\u1B33\u1B45-\u1B4B\u1B83-\u1BA0\u1BAE\u1BAF\u1BBA-\u1BE5\u1C00-\u1C23\u1C4D-\u1C4F\u1C5A-\u1C7D\u1C80-\u1C88\u1CE9-\u1CEC\u1CEE-\u1CF1\u1CF5\u1CF6\u1D00-\u1DBF\u1E00-\u1F15\u1F18-\u1F1D\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D\u1F5F-\u1F7D\u1F80-\u1FB4\u1FB6-\u1FBC\u1FBE\u1FC2-\u1FC4\u1FC6-\u1FCC\u1FD0-\u1FD3\u1FD6-\u1FDB\u1FE0-\u1FEC\u1FF2-\u1FF4\u1FF6-\u1FFC\u2071\u207F\u2090-\u209C\u2102\u2107\u210A-\u2113\u2115\u2119-\u211D\u2124\u2126\u2128\u212A-\u212D\u212F-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2160-\u2188\u2C00-\u2C2E\u2C30-\u2C5E\u2C60-\u2CE4\u2CEB-\u2CEE\u2CF2\u2CF3\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D80-\u2D96\u2DA0-\u2DA6\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE\u2DD0-\u2DD6\u2DD8-\u2DDE\u2E2F\u3005-\u3007\u3021-\u3029\u3031-\u3035\u3038-\u303C\u3041-\u3096\u309D-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312E\u3131-\u318E\u31A0-\u31BA\u31F0-\u31FF\u3400-\u4DB5\u4E00-\u9FEA\uA000-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA61F\uA62A\uA62B\uA640-\uA66E\uA67F-\uA69D\uA6A0-\uA6EF\uA717-\uA71F\uA722-\uA788\uA78B-\uA7AE\uA7B0-\uA7B7\uA7F7-\uA801\uA803-\uA805\uA807-\uA80A\uA80C-\uA822\uA840-\uA873\uA882-\uA8B3\uA8F2-\uA8F7\uA8FB\uA8FD\uA90A-\uA925\uA930-\uA946\uA960-\uA97C\uA984-\uA9B2\uA9CF\uA9E0-\uA9E4\uA9E6-\uA9EF\uA9FA-\uA9FE\uAA00-\uAA28\uAA40-\uAA42\uAA44-\uAA4B\uAA60-\uAA76\uAA7A\uAA7E-\uAAAF\uAAB1\uAAB5\uAAB6\uAAB9-\uAABD\uAAC0\uAAC2\uAADB-\uAADD\uAAE0-\uAAEA\uAAF2-\uAAF4\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E\uAB30-\uAB5A\uAB5C-\uAB65\uAB70-\uABE2\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFA6D\uFA70-\uFAD9\uFB00-\uFB06\uFB13-\uFB17\uFB1D\uFB1F-\uFB28\uFB2A-\uFB36\uFB38-\uFB3C\uFB3E\uFB40\uFB41\uFB43\uFB44\uFB46-\uFBB1\uFBD3-\uFD3D\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFB\uFE70-\uFE74\uFE76-\uFEFC\uFF21-\uFF3A\uFF41-\uFF5A\uFF66-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF\uFFD2-\uFFD7\uFFDA-\uFFDC]|\uD800[\uDC00-\uDC0B\uDC0D-\uDC26\uDC28-\uDC3A\uDC3C\uDC3D\uDC3F-\uDC4D\uDC50-\uDC5D\uDC80-\uDCFA\uDD40-\uDD74\uDE80-\uDE9C\uDEA0-\uDED0\uDF00-\uDF1F\uDF2D-\uDF4A\uDF50-\uDF75\uDF80-\uDF9D\uDFA0-\uDFC3\uDFC8-\uDFCF\uDFD1-\uDFD5]|\uD801[\uDC00-\uDC9D\uDCB0-\uDCD3\uDCD8-\uDCFB\uDD00-\uDD27\uDD30-\uDD63\uDE00-\uDF36\uDF40-\uDF55\uDF60-\uDF67]|\uD802[\uDC00-\uDC05\uDC08\uDC0A-\uDC35\uDC37\uDC38\uDC3C\uDC3F-\uDC55\uDC60-\uDC76\uDC80-\uDC9E\uDCE0-\uDCF2\uDCF4\uDCF5\uDD00-\uDD15\uDD20-\uDD39\uDD80-\uDDB7\uDDBE\uDDBF\uDE00\uDE10-\uDE13\uDE15-\uDE17\uDE19-\uDE33\uDE60-\uDE7C\uDE80-\uDE9C\uDEC0-\uDEC7\uDEC9-\uDEE4\uDF00-\uDF35\uDF40-\uDF55\uDF60-\uDF72\uDF80-\uDF91]|\uD803[\uDC00-\uDC48\uDC80-\uDCB2\uDCC0-\uDCF2]|\uD804[\uDC03-\uDC37\uDC83-\uDCAF\uDCD0-\uDCE8\uDD03-\uDD26\uDD50-\uDD72\uDD76\uDD83-\uDDB2\uDDC1-\uDDC4\uDDDA\uDDDC\uDE00-\uDE11\uDE13-\uDE2B\uDE80-\uDE86\uDE88\uDE8A-\uDE8D\uDE8F-\uDE9D\uDE9F-\uDEA8\uDEB0-\uDEDE\uDF05-\uDF0C\uDF0F\uDF10\uDF13-\uDF28\uDF2A-\uDF30\uDF32\uDF33\uDF35-\uDF39\uDF3D\uDF50\uDF5D-\uDF61]|\uD805[\uDC00-\uDC34\uDC47-\uDC4A\uDC80-\uDCAF\uDCC4\uDCC5\uDCC7\uDD80-\uDDAE\uDDD8-\uDDDB\uDE00-\uDE2F\uDE44\uDE80-\uDEAA\uDF00-\uDF19]|\uD806[\uDCA0-\uDCDF\uDCFF\uDE00\uDE0B-\uDE32\uDE3A\uDE50\uDE5C-\uDE83\uDE86-\uDE89\uDEC0-\uDEF8]|\uD807[\uDC00-\uDC08\uDC0A-\uDC2E\uDC40\uDC72-\uDC8F\uDD00-\uDD06\uDD08\uDD09\uDD0B-\uDD30\uDD46]|\uD808[\uDC00-\uDF99]|\uD809[\uDC00-\uDC6E\uDC80-\uDD43]|[\uD80C\uD81C-\uD820\uD840-\uD868\uD86A-\uD86C\uD86F-\uD872\uD874-\uD879][\uDC00-\uDFFF]|\uD80D[\uDC00-\uDC2E]|\uD811[\uDC00-\uDE46]|\uD81A[\uDC00-\uDE38\uDE40-\uDE5E\uDED0-\uDEED\uDF00-\uDF2F\uDF40-\uDF43\uDF63-\uDF77\uDF7D-\uDF8F]|\uD81B[\uDF00-\uDF44\uDF50\uDF93-\uDF9F\uDFE0\uDFE1]|\uD821[\uDC00-\uDFEC]|\uD822[\uDC00-\uDEF2]|\uD82C[\uDC00-\uDD1E\uDD70-\uDEFB]|\uD82F[\uDC00-\uDC6A\uDC70-\uDC7C\uDC80-\uDC88\uDC90-\uDC99]|\uD835[\uDC00-\uDC54\uDC56-\uDC9C\uDC9E\uDC9F\uDCA2\uDCA5\uDCA6\uDCA9-\uDCAC\uDCAE-\uDCB9\uDCBB\uDCBD-\uDCC3\uDCC5-\uDD05\uDD07-\uDD0A\uDD0D-\uDD14\uDD16-\uDD1C\uDD1E-\uDD39\uDD3B-\uDD3E\uDD40-\uDD44\uDD46\uDD4A-\uDD50\uDD52-\uDEA5\uDEA8-\uDEC0\uDEC2-\uDEDA\uDEDC-\uDEFA\uDEFC-\uDF14\uDF16-\uDF34\uDF36-\uDF4E\uDF50-\uDF6E\uDF70-\uDF88\uDF8A-\uDFA8\uDFAA-\uDFC2\uDFC4-\uDFCB]|\uD83A[\uDC00-\uDCC4\uDD00-\uDD43]|\uD83B[\uDE00-\uDE03\uDE05-\uDE1F\uDE21\uDE22\uDE24\uDE27\uDE29-\uDE32\uDE34-\uDE37\uDE39\uDE3B\uDE42\uDE47\uDE49\uDE4B\uDE4D-\uDE4F\uDE51\uDE52\uDE54\uDE57\uDE59\uDE5B\uDE5D\uDE5F\uDE61\uDE62\uDE64\uDE67-\uDE6A\uDE6C-\uDE72\uDE74-\uDE77\uDE79-\uDE7C\uDE7E\uDE80-\uDE89\uDE8B-\uDE9B\uDEA1-\uDEA3\uDEA5-\uDEA9\uDEAB-\uDEBB]|\uD869[\uDC00-\uDED6\uDF00-\uDFFF]|\uD86D[\uDC00-\uDF34\uDF40-\uDFFF]|\uD86E[\uDC00-\uDC1D\uDC20-\uDFFF]|\uD873[\uDC00-\uDEA1\uDEB0-\uDFFF]|\uD87A[\uDC00-\uDFE0]|\uD87E[\uDC00-\uDE1D]/,uu=/[\xAA\xB5\xBA\xC0-\xD6\xD8-\xF6\xF8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0300-\u0374\u0376\u0377\u037A-\u037D\u037F\u0386\u0388-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5\u03F7-\u0481\u0483-\u0487\u048A-\u052F\u0531-\u0556\u0559\u0561-\u0587\u0591-\u05BD\u05BF\u05C1\u05C2\u05C4\u05C5\u05C7\u05D0-\u05EA\u05F0-\u05F2\u0610-\u061A\u0620-\u0669\u066E-\u06D3\u06D5-\u06DC\u06DF-\u06E8\u06EA-\u06FC\u06FF\u0710-\u074A\u074D-\u07B1\u07C0-\u07F5\u07FA\u0800-\u082D\u0840-\u085B\u0860-\u086A\u08A0-\u08B4\u08B6-\u08BD\u08D4-\u08E1\u08E3-\u0963\u0966-\u096F\u0971-\u0983\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2\u09B6-\u09B9\u09BC-\u09C4\u09C7\u09C8\u09CB-\u09CE\u09D7\u09DC\u09DD\u09DF-\u09E3\u09E6-\u09F1\u09FC\u0A01-\u0A03\u0A05-\u0A0A\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39\u0A3C\u0A3E-\u0A42\u0A47\u0A48\u0A4B-\u0A4D\u0A51\u0A59-\u0A5C\u0A5E\u0A66-\u0A75\u0A81-\u0A83\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABC-\u0AC5\u0AC7-\u0AC9\u0ACB-\u0ACD\u0AD0\u0AE0-\u0AE3\u0AE6-\u0AEF\u0AF9-\u0AFF\u0B01-\u0B03\u0B05-\u0B0C\u0B0F\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B35-\u0B39\u0B3C-\u0B44\u0B47\u0B48\u0B4B-\u0B4D\u0B56\u0B57\u0B5C\u0B5D\u0B5F-\u0B63\u0B66-\u0B6F\u0B71\u0B82\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99\u0B9A\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BBE-\u0BC2\u0BC6-\u0BC8\u0BCA-\u0BCD\u0BD0\u0BD7\u0BE6-\u0BEF\u0C00-\u0C03\u0C05-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C39\u0C3D-\u0C44\u0C46-\u0C48\u0C4A-\u0C4D\u0C55\u0C56\u0C58-\u0C5A\u0C60-\u0C63\u0C66-\u0C6F\u0C80-\u0C83\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3\u0CB5-\u0CB9\u0CBC-\u0CC4\u0CC6-\u0CC8\u0CCA-\u0CCD\u0CD5\u0CD6\u0CDE\u0CE0-\u0CE3\u0CE6-\u0CEF\u0CF1\u0CF2\u0D00-\u0D03\u0D05-\u0D0C\u0D0E-\u0D10\u0D12-\u0D44\u0D46-\u0D48\u0D4A-\u0D4E\u0D54-\u0D57\u0D5F-\u0D63\u0D66-\u0D6F\u0D7A-\u0D7F\u0D82\u0D83\u0D85-\u0D96\u0D9A-\u0DB1\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0DCA\u0DCF-\u0DD4\u0DD6\u0DD8-\u0DDF\u0DE6-\u0DEF\u0DF2\u0DF3\u0E01-\u0E3A\u0E40-\u0E4E\u0E50-\u0E59\u0E81\u0E82\u0E84\u0E87\u0E88\u0E8A\u0E8D\u0E94-\u0E97\u0E99-\u0E9F\u0EA1-\u0EA3\u0EA5\u0EA7\u0EAA\u0EAB\u0EAD-\u0EB9\u0EBB-\u0EBD\u0EC0-\u0EC4\u0EC6\u0EC8-\u0ECD\u0ED0-\u0ED9\u0EDC-\u0EDF\u0F00\u0F18\u0F19\u0F20-\u0F29\u0F35\u0F37\u0F39\u0F3E-\u0F47\u0F49-\u0F6C\u0F71-\u0F84\u0F86-\u0F97\u0F99-\u0FBC\u0FC6\u1000-\u1049\u1050-\u109D\u10A0-\u10C5\u10C7\u10CD\u10D0-\u10FA\u10FC-\u1248\u124A-\u124D\u1250-\u1256\u1258\u125A-\u125D\u1260-\u1288\u128A-\u128D\u1290-\u12B0\u12B2-\u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310\u1312-\u1315\u1318-\u135A\u135D-\u135F\u1380-\u138F\u13A0-\u13F5\u13F8-\u13FD\u1401-\u166C\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u16EE-\u16F8\u1700-\u170C\u170E-\u1714\u1720-\u1734\u1740-\u1753\u1760-\u176C\u176E-\u1770\u1772\u1773\u1780-\u17D3\u17D7\u17DC\u17DD\u17E0-\u17E9\u180B-\u180D\u1810-\u1819\u1820-\u1877\u1880-\u18AA\u18B0-\u18F5\u1900-\u191E\u1920-\u192B\u1930-\u193B\u1946-\u196D\u1970-\u1974\u1980-\u19AB\u19B0-\u19C9\u19D0-\u19D9\u1A00-\u1A1B\u1A20-\u1A5E\u1A60-\u1A7C\u1A7F-\u1A89\u1A90-\u1A99\u1AA7\u1AB0-\u1ABD\u1B00-\u1B4B\u1B50-\u1B59\u1B6B-\u1B73\u1B80-\u1BF3\u1C00-\u1C37\u1C40-\u1C49\u1C4D-\u1C7D\u1C80-\u1C88\u1CD0-\u1CD2\u1CD4-\u1CF9\u1D00-\u1DF9\u1DFB-\u1F15\u1F18-\u1F1D\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D\u1F5F-\u1F7D\u1F80-\u1FB4\u1FB6-\u1FBC\u1FBE\u1FC2-\u1FC4\u1FC6-\u1FCC\u1FD0-\u1FD3\u1FD6-\u1FDB\u1FE0-\u1FEC\u1FF2-\u1FF4\u1FF6-\u1FFC\u203F\u2040\u2054\u2071\u207F\u2090-\u209C\u20D0-\u20DC\u20E1\u20E5-\u20F0\u2102\u2107\u210A-\u2113\u2115\u2119-\u211D\u2124\u2126\u2128\u212A-\u212D\u212F-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2160-\u2188\u2C00-\u2C2E\u2C30-\u2C5E\u2C60-\u2CE4\u2CEB-\u2CF3\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D7F-\u2D96\u2DA0-\u2DA6\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE\u2DD0-\u2DD6\u2DD8-\u2DDE\u2DE0-\u2DFF\u2E2F\u3005-\u3007\u3021-\u302F\u3031-\u3035\u3038-\u303C\u3041-\u3096\u3099\u309A\u309D-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312E\u3131-\u318E\u31A0-\u31BA\u31F0-\u31FF\u3400-\u4DB5\u4E00-\u9FEA\uA000-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA62B\uA640-\uA66F\uA674-\uA67D\uA67F-\uA6F1\uA717-\uA71F\uA722-\uA788\uA78B-\uA7AE\uA7B0-\uA7B7\uA7F7-\uA827\uA840-\uA873\uA880-\uA8C5\uA8D0-\uA8D9\uA8E0-\uA8F7\uA8FB\uA8FD\uA900-\uA92D\uA930-\uA953\uA960-\uA97C\uA980-\uA9C0\uA9CF-\uA9D9\uA9E0-\uA9FE\uAA00-\uAA36\uAA40-\uAA4D\uAA50-\uAA59\uAA60-\uAA76\uAA7A-\uAAC2\uAADB-\uAADD\uAAE0-\uAAEF\uAAF2-\uAAF6\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E\uAB30-\uAB5A\uAB5C-\uAB65\uAB70-\uABEA\uABEC\uABED\uABF0-\uABF9\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFA6D\uFA70-\uFAD9\uFB00-\uFB06\uFB13-\uFB17\uFB1D-\uFB28\uFB2A-\uFB36\uFB38-\uFB3C\uFB3E\uFB40\uFB41\uFB43\uFB44\uFB46-\uFBB1\uFBD3-\uFD3D\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFB\uFE00-\uFE0F\uFE20-\uFE2F\uFE33\uFE34\uFE4D-\uFE4F\uFE70-\uFE74\uFE76-\uFEFC\uFF10-\uFF19\uFF21-\uFF3A\uFF3F\uFF41-\uFF5A\uFF66-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF\uFFD2-\uFFD7\uFFDA-\uFFDC]|\uD800[\uDC00-\uDC0B\uDC0D-\uDC26\uDC28-\uDC3A\uDC3C\uDC3D\uDC3F-\uDC4D\uDC50-\uDC5D\uDC80-\uDCFA\uDD40-\uDD74\uDDFD\uDE80-\uDE9C\uDEA0-\uDED0\uDEE0\uDF00-\uDF1F\uDF2D-\uDF4A\uDF50-\uDF7A\uDF80-\uDF9D\uDFA0-\uDFC3\uDFC8-\uDFCF\uDFD1-\uDFD5]|\uD801[\uDC00-\uDC9D\uDCA0-\uDCA9\uDCB0-\uDCD3\uDCD8-\uDCFB\uDD00-\uDD27\uDD30-\uDD63\uDE00-\uDF36\uDF40-\uDF55\uDF60-\uDF67]|\uD802[\uDC00-\uDC05\uDC08\uDC0A-\uDC35\uDC37\uDC38\uDC3C\uDC3F-\uDC55\uDC60-\uDC76\uDC80-\uDC9E\uDCE0-\uDCF2\uDCF4\uDCF5\uDD00-\uDD15\uDD20-\uDD39\uDD80-\uDDB7\uDDBE\uDDBF\uDE00-\uDE03\uDE05\uDE06\uDE0C-\uDE13\uDE15-\uDE17\uDE19-\uDE33\uDE38-\uDE3A\uDE3F\uDE60-\uDE7C\uDE80-\uDE9C\uDEC0-\uDEC7\uDEC9-\uDEE6\uDF00-\uDF35\uDF40-\uDF55\uDF60-\uDF72\uDF80-\uDF91]|\uD803[\uDC00-\uDC48\uDC80-\uDCB2\uDCC0-\uDCF2]|\uD804[\uDC00-\uDC46\uDC66-\uDC6F\uDC7F-\uDCBA\uDCD0-\uDCE8\uDCF0-\uDCF9\uDD00-\uDD34\uDD36-\uDD3F\uDD50-\uDD73\uDD76\uDD80-\uDDC4\uDDCA-\uDDCC\uDDD0-\uDDDA\uDDDC\uDE00-\uDE11\uDE13-\uDE37\uDE3E\uDE80-\uDE86\uDE88\uDE8A-\uDE8D\uDE8F-\uDE9D\uDE9F-\uDEA8\uDEB0-\uDEEA\uDEF0-\uDEF9\uDF00-\uDF03\uDF05-\uDF0C\uDF0F\uDF10\uDF13-\uDF28\uDF2A-\uDF30\uDF32\uDF33\uDF35-\uDF39\uDF3C-\uDF44\uDF47\uDF48\uDF4B-\uDF4D\uDF50\uDF57\uDF5D-\uDF63\uDF66-\uDF6C\uDF70-\uDF74]|\uD805[\uDC00-\uDC4A\uDC50-\uDC59\uDC80-\uDCC5\uDCC7\uDCD0-\uDCD9\uDD80-\uDDB5\uDDB8-\uDDC0\uDDD8-\uDDDD\uDE00-\uDE40\uDE44\uDE50-\uDE59\uDE80-\uDEB7\uDEC0-\uDEC9\uDF00-\uDF19\uDF1D-\uDF2B\uDF30-\uDF39]|\uD806[\uDCA0-\uDCE9\uDCFF\uDE00-\uDE3E\uDE47\uDE50-\uDE83\uDE86-\uDE99\uDEC0-\uDEF8]|\uD807[\uDC00-\uDC08\uDC0A-\uDC36\uDC38-\uDC40\uDC50-\uDC59\uDC72-\uDC8F\uDC92-\uDCA7\uDCA9-\uDCB6\uDD00-\uDD06\uDD08\uDD09\uDD0B-\uDD36\uDD3A\uDD3C\uDD3D\uDD3F-\uDD47\uDD50-\uDD59]|\uD808[\uDC00-\uDF99]|\uD809[\uDC00-\uDC6E\uDC80-\uDD43]|[\uD80C\uD81C-\uD820\uD840-\uD868\uD86A-\uD86C\uD86F-\uD872\uD874-\uD879][\uDC00-\uDFFF]|\uD80D[\uDC00-\uDC2E]|\uD811[\uDC00-\uDE46]|\uD81A[\uDC00-\uDE38\uDE40-\uDE5E\uDE60-\uDE69\uDED0-\uDEED\uDEF0-\uDEF4\uDF00-\uDF36\uDF40-\uDF43\uDF50-\uDF59\uDF63-\uDF77\uDF7D-\uDF8F]|\uD81B[\uDF00-\uDF44\uDF50-\uDF7E\uDF8F-\uDF9F\uDFE0\uDFE1]|\uD821[\uDC00-\uDFEC]|\uD822[\uDC00-\uDEF2]|\uD82C[\uDC00-\uDD1E\uDD70-\uDEFB]|\uD82F[\uDC00-\uDC6A\uDC70-\uDC7C\uDC80-\uDC88\uDC90-\uDC99\uDC9D\uDC9E]|\uD834[\uDD65-\uDD69\uDD6D-\uDD72\uDD7B-\uDD82\uDD85-\uDD8B\uDDAA-\uDDAD\uDE42-\uDE44]|\uD835[\uDC00-\uDC54\uDC56-\uDC9C\uDC9E\uDC9F\uDCA2\uDCA5\uDCA6\uDCA9-\uDCAC\uDCAE-\uDCB9\uDCBB\uDCBD-\uDCC3\uDCC5-\uDD05\uDD07-\uDD0A\uDD0D-\uDD14\uDD16-\uDD1C\uDD1E-\uDD39\uDD3B-\uDD3E\uDD40-\uDD44\uDD46\uDD4A-\uDD50\uDD52-\uDEA5\uDEA8-\uDEC0\uDEC2-\uDEDA\uDEDC-\uDEFA\uDEFC-\uDF14\uDF16-\uDF34\uDF36-\uDF4E\uDF50-\uDF6E\uDF70-\uDF88\uDF8A-\uDFA8\uDFAA-\uDFC2\uDFC4-\uDFCB\uDFCE-\uDFFF]|\uD836[\uDE00-\uDE36\uDE3B-\uDE6C\uDE75\uDE84\uDE9B-\uDE9F\uDEA1-\uDEAF]|\uD838[\uDC00-\uDC06\uDC08-\uDC18\uDC1B-\uDC21\uDC23\uDC24\uDC26-\uDC2A]|\uD83A[\uDC00-\uDCC4\uDCD0-\uDCD6\uDD00-\uDD4A\uDD50-\uDD59]|\uD83B[\uDE00-\uDE03\uDE05-\uDE1F\uDE21\uDE22\uDE24\uDE27\uDE29-\uDE32\uDE34-\uDE37\uDE39\uDE3B\uDE42\uDE47\uDE49\uDE4B\uDE4D-\uDE4F\uDE51\uDE52\uDE54\uDE57\uDE59\uDE5B\uDE5D\uDE5F\uDE61\uDE62\uDE64\uDE67-\uDE6A\uDE6C-\uDE72\uDE74-\uDE77\uDE79-\uDE7C\uDE7E\uDE80-\uDE89\uDE8B-\uDE9B\uDEA1-\uDEA3\uDEA5-\uDEA9\uDEAB-\uDEBB]|\uD869[\uDC00-\uDED6\uDF00-\uDFFF]|\uD86D[\uDC00-\uDF34\uDF40-\uDFFF]|\uD86E[\uDC00-\uDC1D\uDC20-\uDFFF]|\uD873[\uDC00-\uDEA1\uDEB0-\uDFFF]|\uD87A[\uDC00-\uDFE0]|\uD87E[\uDC00-\uDE1D]|\uDB40[\uDD00-\uDDEF]/,J={Space_Separator:W,ID_Start:Y,ID_Continue:uu},a={isSpaceSeparator(D){return typeof D=="string"&&J.Space_Separator.test(D)},isIdStartChar(D){return typeof D=="string"&&(D>="a"&&D<="z"||D>="A"&&D<="Z"||D==="$"||D==="_"||J.ID_Start.test(D))},isIdContinueChar(D){return typeof D=="string"&&(D>="a"&&D<="z"||D>="A"&&D<="Z"||D>="0"&&D<="9"||D==="$"||D==="_"||D==="‌"||D==="‍"||J.ID_Continue.test(D))},isDigit(D){return typeof D=="string"&&/[0-9]/.test(D)},isHexDigit(D){return typeof D=="string"&&/[0-9A-Fa-f]/.test(D)}};let H,h,w,k,v,g,l,T,$;var Du=function(D,C){H=String(D),h="start",w=[],k=0,v=1,g=0,l=void 0,T=void 0,$=void 0;do l=eu(),Au[h]();while(l.type!=="eof");return typeof C=="function"?z({"":$},"",C):$};function z(D,C,B){const o=D[C];if(o!=null&&typeof o=="object")if(Array.isArray(o))for(let c=0;c<o.length;c++){const m=String(c),P=z(o,m,B);P===void 0?delete o[m]:Object.defineProperty(o,m,{value:P,writable:!0,enumerable:!0,configurable:!0})}else for(const c in o){const m=z(o,c,B);m===void 0?delete o[c]:Object.defineProperty(o,c,{value:m,writable:!0,enumerable:!0,configurable:!0})}return B.call(D,C,o)}let A,e,O,y,r;function eu(){for(A="default",e="",O=!1,y=1;;){r=b();const D=X[A]();if(D)return D}}function b(){if(H[k])return String.fromCodePoint(H.codePointAt(k))}function u(){const D=b();return D===`
2
+ `?(v++,g=0):D?g+=D.length:g++,D&&(k+=D.length),D}const X={default(){switch(r){case" ":case"\v":case"\f":case" ":case" ":case"\uFEFF":case`
3
+ `:case"\r":case"\u2028":case"\u2029":u();return;case"/":u(),A="comment";return;case void 0:return u(),E("eof")}if(a.isSpaceSeparator(r)){u();return}return X[h]()},comment(){switch(r){case"*":u(),A="multiLineComment";return;case"/":u(),A="singleLineComment";return}throw n(u())},multiLineComment(){switch(r){case"*":u(),A="multiLineCommentAsterisk";return;case void 0:throw n(u())}u()},multiLineCommentAsterisk(){switch(r){case"*":u();return;case"/":u(),A="default";return;case void 0:throw n(u())}u(),A="multiLineComment"},singleLineComment(){switch(r){case`
4
+ `:case"\r":case"\u2028":case"\u2029":u(),A="default";return;case void 0:return u(),E("eof")}u()},value(){switch(r){case"{":case"[":return E("punctuator",u());case"n":return u(),S("ull"),E("null",null);case"t":return u(),S("rue"),E("boolean",!0);case"f":return u(),S("alse"),E("boolean",!1);case"-":case"+":u()==="-"&&(y=-1),A="sign";return;case".":e=u(),A="decimalPointLeading";return;case"0":e=u(),A="zero";return;case"1":case"2":case"3":case"4":case"5":case"6":case"7":case"8":case"9":e=u(),A="decimalInteger";return;case"I":return u(),S("nfinity"),E("numeric",1/0);case"N":return u(),S("aN"),E("numeric",NaN);case'"':case"'":O=u()==='"',e="",A="string";return}throw n(u())},identifierNameStartEscape(){if(r!=="u")throw n(u());u();const D=M();switch(D){case"$":case"_":break;default:if(!a.isIdStartChar(D))throw R();break}e+=D,A="identifierName"},identifierName(){switch(r){case"$":case"_":case"‌":case"‍":e+=u();return;case"\\":u(),A="identifierNameEscape";return}if(a.isIdContinueChar(r)){e+=u();return}return E("identifier",e)},identifierNameEscape(){if(r!=="u")throw n(u());u();const D=M();switch(D){case"$":case"_":case"‌":case"‍":break;default:if(!a.isIdContinueChar(D))throw R();break}e+=D,A="identifierName"},sign(){switch(r){case".":e=u(),A="decimalPointLeading";return;case"0":e=u(),A="zero";return;case"1":case"2":case"3":case"4":case"5":case"6":case"7":case"8":case"9":e=u(),A="decimalInteger";return;case"I":return u(),S("nfinity"),E("numeric",y*(1/0));case"N":return u(),S("aN"),E("numeric",NaN)}throw n(u())},zero(){switch(r){case".":e+=u(),A="decimalPoint";return;case"e":case"E":e+=u(),A="decimalExponent";return;case"x":case"X":e+=u(),A="hexadecimal";return}return E("numeric",y*0)},decimalInteger(){switch(r){case".":e+=u(),A="decimalPoint";return;case"e":case"E":e+=u(),A="decimalExponent";return}if(a.isDigit(r)){e+=u();return}return E("numeric",y*Number(e))},decimalPointLeading(){if(a.isDigit(r)){e+=u(),A="decimalFraction";return}throw n(u())},decimalPoint(){switch(r){case"e":case"E":e+=u(),A="decimalExponent";return}if(a.isDigit(r)){e+=u(),A="decimalFraction";return}return E("numeric",y*Number(e))},decimalFraction(){switch(r){case"e":case"E":e+=u(),A="decimalExponent";return}if(a.isDigit(r)){e+=u();return}return E("numeric",y*Number(e))},decimalExponent(){switch(r){case"+":case"-":e+=u(),A="decimalExponentSign";return}if(a.isDigit(r)){e+=u(),A="decimalExponentInteger";return}throw n(u())},decimalExponentSign(){if(a.isDigit(r)){e+=u(),A="decimalExponentInteger";return}throw n(u())},decimalExponentInteger(){if(a.isDigit(r)){e+=u();return}return E("numeric",y*Number(e))},hexadecimal(){if(a.isHexDigit(r)){e+=u(),A="hexadecimalInteger";return}throw n(u())},hexadecimalInteger(){if(a.isHexDigit(r)){e+=u();return}return E("numeric",y*Number(e))},string(){switch(r){case"\\":u(),e+=Fu();return;case'"':if(O)return u(),E("string",e);e+=u();return;case"'":if(!O)return u(),E("string",e);e+=u();return;case`
5
+ `:case"\r":throw n(u());case"\u2028":case"\u2029":ru(r);break;case void 0:throw n(u())}e+=u()},start(){switch(r){case"{":case"[":return E("punctuator",u())}A="value"},beforePropertyName(){switch(r){case"$":case"_":e=u(),A="identifierName";return;case"\\":u(),A="identifierNameStartEscape";return;case"}":return E("punctuator",u());case'"':case"'":O=u()==='"',A="string";return}if(a.isIdStartChar(r)){e+=u(),A="identifierName";return}throw n(u())},afterPropertyName(){if(r===":")return E("punctuator",u());throw n(u())},beforePropertyValue(){A="value"},afterPropertyValue(){switch(r){case",":case"}":return E("punctuator",u())}throw n(u())},beforeArrayValue(){if(r==="]")return E("punctuator",u());A="value"},afterArrayValue(){switch(r){case",":case"]":return E("punctuator",u())}throw n(u())},end(){throw n(u())}};function E(D,C){return{type:D,value:C,line:v,column:g}}function S(D){for(const C of D){if(b()!==C)throw n(u());u()}}function Fu(){switch(b()){case"b":return u(),"\b";case"f":return u(),"\f";case"n":return u(),`
6
+ `;case"r":return u(),"\r";case"t":return u()," ";case"v":return u(),"\v";case"0":if(u(),a.isDigit(b()))throw n(u());return"\0";case"x":return u(),Cu();case"u":return u(),M();case`
7
+ `:case"\u2028":case"\u2029":return u(),"";case"\r":return u(),b()===`
8
+ `&&u(),"";case"1":case"2":case"3":case"4":case"5":case"6":case"7":case"8":case"9":throw n(u());case void 0:throw n(u())}return u()}function Cu(){let D="",C=b();if(!a.isHexDigit(C)||(D+=u(),C=b(),!a.isHexDigit(C)))throw n(u());return D+=u(),String.fromCodePoint(parseInt(D,16))}function M(){let D="",C=4;for(;C-- >0;){const B=b();if(!a.isHexDigit(B))throw n(u());D+=u()}return String.fromCodePoint(parseInt(D,16))}const Au={start(){if(l.type==="eof")throw N();L()},beforePropertyName(){switch(l.type){case"identifier":case"string":T=l.value,h="afterPropertyName";return;case"punctuator":j();return;case"eof":throw N()}},afterPropertyName(){if(l.type==="eof")throw N();h="beforePropertyValue"},beforePropertyValue(){if(l.type==="eof")throw N();L()},beforeArrayValue(){if(l.type==="eof")throw N();if(l.type==="punctuator"&&l.value==="]"){j();return}L()},afterPropertyValue(){if(l.type==="eof")throw N();switch(l.value){case",":h="beforePropertyName";return;case"}":j()}},afterArrayValue(){if(l.type==="eof")throw N();switch(l.value){case",":h="beforeArrayValue";return;case"]":j()}},end(){}};function L(){let D;switch(l.type){case"punctuator":switch(l.value){case"{":D={};break;case"[":D=[];break}break;case"null":case"boolean":case"numeric":case"string":D=l.value;break}if($===void 0)$=D;else{const C=w[w.length-1];Array.isArray(C)?C.push(D):Object.defineProperty(C,T,{value:D,writable:!0,enumerable:!0,configurable:!0})}if(D!==null&&typeof D=="object")w.push(D),Array.isArray(D)?h="beforeArrayValue":h="beforePropertyName";else{const C=w[w.length-1];C==null?h="end":Array.isArray(C)?h="afterArrayValue":h="afterPropertyValue"}}function j(){w.pop();const D=w[w.length-1];D==null?h="end":Array.isArray(D)?h="afterArrayValue":h="afterPropertyValue"}function n(D){return Z(D===void 0?`JSON5: invalid end of input at ${v}:${g}`:`JSON5: invalid character '${G(D)}' at ${v}:${g}`)}function N(){return Z(`JSON5: invalid end of input at ${v}:${g}`)}function R(){return g-=5,Z(`JSON5: invalid identifier character at ${v}:${g}`)}function ru(D){console.warn(`JSON5: '${G(D)}' in strings is not valid ECMAScript; consider escaping`)}function G(D){const C={"'":"\\'",'"':'\\"',"\\":"\\\\","\b":"\\b","\f":"\\f","\n":"\\n","\r":"\\r"," ":"\\t","\v":"\\v","\0":"\\0","\u2028":"\\u2028","\u2029":"\\u2029"};if(C[D])return C[D];if(D<" "){const B=D.charCodeAt(0).toString(16);return"\\x"+("00"+B).substring(B.length)}return D}function Z(D){const C=new SyntaxError(D);return C.lineNumber=v,C.columnNumber=g,C}var tu=function(D,C,B){const o=[];let c="",m,P,x="",q;if(C!=null&&typeof C=="object"&&!Array.isArray(C)&&(B=C.space,q=C.quote,C=C.replacer),typeof C=="function")P=C;else if(Array.isArray(C)){m=[];for(const t of C){let i;typeof t=="string"?i=t:(typeof t=="number"||t instanceof String||t instanceof Number)&&(i=String(t)),i!==void 0&&m.indexOf(i)<0&&m.push(i)}}return B instanceof Number?B=Number(B):B instanceof String&&(B=String(B)),typeof B=="number"?B>0&&(B=Math.min(10,Math.floor(B)),x=" ".substr(0,B)):typeof B=="string"&&(x=B.substr(0,10)),_("",{"":D});function _(t,i){let F=i[t];switch(F!=null&&(typeof F.toJSON5=="function"?F=F.toJSON5(t):typeof F.toJSON=="function"&&(F=F.toJSON(t))),P&&(F=P.call(i,t,F)),F instanceof Number?F=Number(F):F instanceof String?F=String(F):F instanceof Boolean&&(F=F.valueOf()),F){case null:return"null";case!0:return"true";case!1:return"false"}if(typeof F=="string")return V(F);if(typeof F=="number")return String(F);if(typeof F=="object")return Array.isArray(F)?U(F):K(F)}function V(t){const i={"'":.1,'"':.2},F={"'":"\\'",'"':'\\"',"\\":"\\\\","\b":"\\b","\f":"\\f","\n":"\\n","\r":"\\r"," ":"\\t","\v":"\\v","\0":"\\0","\u2028":"\\u2028","\u2029":"\\u2029"};let f="";for(let s=0;s<t.length;s++){const p=t[s];switch(p){case"'":case'"':i[p]++,f+=p;continue;case"\0":if(a.isDigit(t[s+1])){f+="\\x00";continue}}if(F[p]){f+=F[p];continue}if(p<" "){let I=p.charCodeAt(0).toString(16);f+="\\x"+("00"+I).substring(I.length);continue}f+=p}const d=q||Object.keys(i).reduce((s,p)=>i[s]<i[p]?s:p);return f=f.replace(new RegExp(d,"g"),F[d]),d+f+d}function K(t){if(o.indexOf(t)>=0)throw TypeError("Converting circular structure to JSON5");o.push(t);let i=c;c=c+x;let F=m||Object.keys(t),f=[];for(const s of F){const p=_(s,t);if(p!==void 0){let I=Q(s)+":";x!==""&&(I+=" "),I+=p,f.push(I)}}let d;if(f.length===0)d="{}";else{let s;if(x==="")s=f.join(","),d="{"+s+"}";else{let p=`,
9
+ `+c;s=f.join(p),d=`{
10
+ `+c+s+`,
11
+ `+i+"}"}}return o.pop(),c=i,d}function Q(t){if(t.length===0)return V(t);const i=String.fromCodePoint(t.codePointAt(0));if(!a.isIdStartChar(i))return V(t);for(let F=i.length;F<t.length;F++)if(!a.isIdContinueChar(String.fromCodePoint(t.codePointAt(F))))return V(t);return t}function U(t){if(o.indexOf(t)>=0)throw TypeError("Converting circular structure to JSON5");o.push(t);let i=c;c=c+x;let F=[];for(let d=0;d<t.length;d++){const s=_(String(d),t);F.push(s!==void 0?s:"null")}let f;if(F.length===0)f="[]";else if(x==="")f="["+F.join(",")+"]";else{let d=`,
12
+ `+c,s=F.join(d);f=`[
13
+ `+c+s+`,
14
+ `+i+"]"}return o.pop(),c=i,f}};const Eu={parse:Du,stringify:tu};var nu=Eu;export{nu as i};
@@ -0,0 +1,3 @@
1
+ import{r as U,cg as ce,j as J,L as se,k as W,aP as de,ao as pe,aQ as fe,cl as ge,ch as ye,bi as be,b_ as me,cO as ve,ca as he,br as Oe,bZ as Se,cP as je,cQ as Ce,cR as Pe,cS as Ie,cT as we,cn as Te,Q as Y,cU as Ee}from"./index-nhNM5UeG.js";import{S as xe}from"./useBasicWidgetState-BYeS5Lnw-COvJBdtg.js";import{g as De,i as Re}from"./styled-components-Dq_iSDU9-i1eh3pWs.js";import{w as $e}from"./timepicker-CL-801So-Sc5MVKGZ.js";import"./FormClearHelper-XrLdNEJa-DVEjd1cV.js";import"./possibleConstructorReturn-i7eTFBhJ-BnzuGOIJ.js";import"./createSuper-Csct9QVD-vLz3pY3G.js";var _e=Te.Consumer;const Be=Object.freeze(Object.defineProperty({__proto__:null,ThemeConsumer:_e,ThemeProvider:we,createThemedStyled:Ie,createThemedUseStyletron:Pe,createThemedWithStyle:Ce,expandBorderStyles:je,hexToRgb:Se,styled:Oe,useStyletron:he,withStyle:ve,withWrapper:me},Symbol.toStringTag,{value:"Module"}));var C={};const Q=be(Be);var D={},G;function Me(){if(G)return D;G=1,Object.defineProperty(D,"__esModule",{value:!0}),D.STATE_CHANGE_TYPE=D.SIZE=D.ENHANCER_POSITION=D.CUSTOM_INPUT_TYPE=D.ADJOINED=void 0;var g={change:"change"};D.STATE_CHANGE_TYPE=g;var d={textarea:"textarea"};D.CUSTOM_INPUT_TYPE=d;var h={none:"none",left:"left",right:"right",both:"both"};D.ADJOINED=h;var b={mini:"mini",default:"default",compact:"compact",large:"large"};D.SIZE=b;var v={start:"start",end:"end"};return D.ENHANCER_POSITION=v,D}var F={},$={},H={},K;function ke(){if(K)return H;K=1,Object.defineProperty(H,"__esModule",{value:!0}),H.default=d;function g(b){"@babel/helpers - typeof";return g=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(v){return typeof v}:function(v){return v&&typeof Symbol=="function"&&v.constructor===Symbol&&v!==Symbol.prototype?"symbol":typeof v},g(b)}function d(b){b=b||{};for(var v=arguments.length<=1?0:arguments.length-1,m,y,S=0;S<v;S++){m=(S+1<1||arguments.length<=S+1?void 0:arguments[S+1])||{};for(var f in m)g(m[f])!==void 0&&(y=m[f],h(y)?b[f]=d(b[f]||Array.isArray(y)&&[]||{},y):b[f]=y)}return b}function h(b){return Array.isArray(b)||{}.toString.call(b)=="[object Object]"}return H}var X;function ie(){if(X)return $;X=1,Object.defineProperty($,"__esModule",{value:!0}),$.getOverride=x,$.getOverrideProps=I,$.getOverrides=N,$.mergeConfigurationOverrides=M,$.mergeOverride=R,$.mergeOverrides=B,$.toObjectOverride=w,$.useOverrides=z;var g=m(Y),d=Ee(),h=b(ke());function b(i){return i&&i.__esModule?i:{default:i}}function v(i){if(typeof WeakMap!="function")return null;var r=new WeakMap,u=new WeakMap;return(v=function(c){return c?u:r})(i)}function m(i,r){if(i&&i.__esModule)return i;if(i===null||P(i)!=="object"&&typeof i!="function")return{default:i};var u=v(r);if(u&&u.has(i))return u.get(i);var c={},t=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var l in i)if(l!=="default"&&Object.prototype.hasOwnProperty.call(i,l)){var a=t?Object.getOwnPropertyDescriptor(i,l):null;a&&(a.get||a.set)?Object.defineProperty(c,l,a):c[l]=i[l]}return c.default=i,u&&u.set(i,c),c}function y(){return y=Object.assign?Object.assign.bind():function(i){for(var r=1;r<arguments.length;r++){var u=arguments[r];for(var c in u)Object.prototype.hasOwnProperty.call(u,c)&&(i[c]=u[c])}return i},y.apply(this,arguments)}function S(i,r){var u=Object.keys(i);if(Object.getOwnPropertySymbols){var c=Object.getOwnPropertySymbols(i);r&&(c=c.filter(function(t){return Object.getOwnPropertyDescriptor(i,t).enumerable})),u.push.apply(u,c)}return u}function f(i){for(var r=1;r<arguments.length;r++){var u=arguments[r]!=null?arguments[r]:{};r%2?S(Object(u),!0).forEach(function(c){T(i,c,u[c])}):Object.getOwnPropertyDescriptors?Object.defineProperties(i,Object.getOwnPropertyDescriptors(u)):S(Object(u)).forEach(function(c){Object.defineProperty(i,c,Object.getOwnPropertyDescriptor(u,c))})}return i}function T(i,r,u){return r in i?Object.defineProperty(i,r,{value:u,enumerable:!0,configurable:!0,writable:!0}):i[r]=u,i}function P(i){"@babel/helpers - typeof";return P=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(r){return typeof r}:function(r){return r&&typeof Symbol=="function"&&r.constructor===Symbol&&r!==Symbol.prototype?"symbol":typeof r},P(i)}function x(i){return(0,d.isValidElementType)(i)?i:i&&P(i)==="object"?i.component:i}function I(i){return i&&P(i)==="object"?P(i.props)==="object"?f(f({},i.props),{},{$style:i.style}):{$style:i.style}:{}}function w(i){return(0,d.isValidElementType)(i)?{component:i}:i||{}}function N(i,r){var u=x(i)||r;if(i&&P(i)==="object"&&typeof i.props=="function"){var c=g.forwardRef(function(l,a){var e=i.props(l),o=I(f(f({},i),{},{props:e}));return g.createElement(u,y({ref:a},o))});return c.displayName=u.displayName,[c,{}]}var t=I(i);return[u,t]}function B(){var i=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},u=Object.assign({},i,r),c=Object.keys(u);return c.reduce(function(t,l){return t[l]=R(w(i[l]),w(r[l])),t},{})}function R(i,r){var u=f(f({},i),r);return i.props&&r.props&&(u.props=M(i.props,r.props)),i.style&&r.style&&(u.style=M(i.style,r.style)),u}function M(i,r){return P(i)==="object"&&P(r)==="object"?(0,h.default)({},i,r):function(){return(0,h.default)({},typeof i=="function"?i.apply(void 0,arguments):i,typeof r=="function"?r.apply(void 0,arguments):r)}}function z(i){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return g.useMemo(function(){return Object.keys(i).reduce(function(u,c){return u[c]=N(r[c],i[c]),u},{})},[r])}return $}var Z={},A={},ee;function Ne(){if(ee)return A;ee=1,Object.defineProperty(A,"__esModule",{value:!0}),A.Svg=void 0,A.getSvgStyles=d;var g=Q;function d(b){var v=b.$theme,m=b.$size,y=b.$color,S=v.sizing.scale600;m&&(v.sizing[m]?S=v.sizing[m]:typeof m=="number"?S="".concat(m,"px"):S=m);var f="currentColor";return y&&(v.colors[y]?f=v.colors[y]:f=y),{display:"inline-block",fill:f,color:f,height:S,width:S}}var h=(0,g.styled)("svg",d);return A.Svg=h,h.displayName="Svg",h.displayName="Svg",A}var V={},te;function ze(){if(te)return V;te=1,Object.defineProperty(V,"__esModule",{value:!0}),V.default=g;function g(d){var h={};for(var b in d)b[0]!=="$"&&(h[b]=d[b]);return h}return V}var re;function Le(){if(re)return Z;re=1;function g(t){"@babel/helpers - typeof";return g=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(l){return typeof l}:function(l){return l&&typeof Symbol=="function"&&l.constructor===Symbol&&l!==Symbol.prototype?"symbol":typeof l},g(t)}Object.defineProperty(Z,"__esModule",{value:!0}),Z.default=void 0;var d=f(Y),h=ie(),b=Ne(),v=y(ze()),m=["children","title","size","color","overrides"];function y(t){return t&&t.__esModule?t:{default:t}}function S(t){if(typeof WeakMap!="function")return null;var l=new WeakMap,a=new WeakMap;return(S=function(e){return e?a:l})(t)}function f(t,l){if(t&&t.__esModule)return t;if(t===null||g(t)!=="object"&&typeof t!="function")return{default:t};var a=S(l);if(a&&a.has(t))return a.get(t);var e={},o=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var n in t)if(n!=="default"&&Object.prototype.hasOwnProperty.call(t,n)){var p=o?Object.getOwnPropertyDescriptor(t,n):null;p&&(p.get||p.set)?Object.defineProperty(e,n,p):e[n]=t[n]}return e.default=t,a&&a.set(t,e),e}function T(){return T=Object.assign?Object.assign.bind():function(t){for(var l=1;l<arguments.length;l++){var a=arguments[l];for(var e in a)Object.prototype.hasOwnProperty.call(a,e)&&(t[e]=a[e])}return t},T.apply(this,arguments)}function P(t,l){var a=Object.keys(t);if(Object.getOwnPropertySymbols){var e=Object.getOwnPropertySymbols(t);l&&(e=e.filter(function(o){return Object.getOwnPropertyDescriptor(t,o).enumerable})),a.push.apply(a,e)}return a}function x(t){for(var l=1;l<arguments.length;l++){var a=arguments[l]!=null?arguments[l]:{};l%2?P(Object(a),!0).forEach(function(e){I(t,e,a[e])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(a)):P(Object(a)).forEach(function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(a,e))})}return t}function I(t,l,a){return l in t?Object.defineProperty(t,l,{value:a,enumerable:!0,configurable:!0,writable:!0}):t[l]=a,t}function w(t,l){return z(t)||M(t,l)||B(t,l)||N()}function N(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
2
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function B(t,l){if(t){if(typeof t=="string")return R(t,l);var a=Object.prototype.toString.call(t).slice(8,-1);if(a==="Object"&&t.constructor&&(a=t.constructor.name),a==="Map"||a==="Set")return Array.from(t);if(a==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(a))return R(t,l)}}function R(t,l){(l==null||l>t.length)&&(l=t.length);for(var a=0,e=new Array(l);a<l;a++)e[a]=t[a];return e}function M(t,l){var a=t==null?null:typeof Symbol<"u"&&t[Symbol.iterator]||t["@@iterator"];if(a!=null){var e=[],o=!0,n=!1,p,s;try{for(a=a.call(t);!(o=(p=a.next()).done)&&(e.push(p.value),!(l&&e.length===l));o=!0);}catch(O){n=!0,s=O}finally{try{!o&&a.return!=null&&a.return()}finally{if(n)throw s}}return e}}function z(t){if(Array.isArray(t))return t}function i(t,l){if(t==null)return{};var a=r(t,l),e,o;if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);for(o=0;o<n.length;o++)e=n[o],!(l.indexOf(e)>=0)&&Object.prototype.propertyIsEnumerable.call(t,e)&&(a[e]=t[e])}return a}function r(t,l){if(t==null)return{};var a={},e=Object.keys(t),o,n;for(n=0;n<e.length;n++)o=e[n],!(l.indexOf(o)>=0)&&(a[o]=t[o]);return a}var u=function(t,l){var a=t.children,e=t.title,o=t.size,n=t.color,p=t.overrides,s=p===void 0?{}:p,O=i(t,m),j=(0,h.getOverrides)(s.Svg,b.Svg),_=w(j,2),E=_[0],k=_[1],L=E.__STYLETRON__?x(x({title:e,$color:n,$size:o},O),k):x(x({title:e,color:n,size:o},(0,v.default)(O)),(0,v.default)(k));return d.createElement(E,T({"data-baseweb":"icon",ref:l},L),e?d.createElement("title",null,e):null,a)},c=d.forwardRef(u);return Z.default=c,Z}var oe;function We(){if(oe)return F;oe=1;function g(r){"@babel/helpers - typeof";return g=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(u){return typeof u}:function(u){return u&&typeof Symbol=="function"&&u.constructor===Symbol&&u!==Symbol.prototype?"symbol":typeof u},g(r)}Object.defineProperty(F,"__esModule",{value:!0}),F.default=void 0;var d=f(Y),h=Q,b=ie(),v=y(Le()),m=["title","size","color","overrides"];function y(r){return r&&r.__esModule?r:{default:r}}function S(r){if(typeof WeakMap!="function")return null;var u=new WeakMap,c=new WeakMap;return(S=function(t){return t?c:u})(r)}function f(r,u){if(r&&r.__esModule)return r;if(r===null||g(r)!=="object"&&typeof r!="function")return{default:r};var c=S(u);if(c&&c.has(r))return c.get(r);var t={},l=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var a in r)if(a!=="default"&&Object.prototype.hasOwnProperty.call(r,a)){var e=l?Object.getOwnPropertyDescriptor(r,a):null;e&&(e.get||e.set)?Object.defineProperty(t,a,e):t[a]=r[a]}return t.default=r,c&&c.set(r,t),t}function T(){return T=Object.assign?Object.assign.bind():function(r){for(var u=1;u<arguments.length;u++){var c=arguments[u];for(var t in c)Object.prototype.hasOwnProperty.call(c,t)&&(r[t]=c[t])}return r},T.apply(this,arguments)}function P(r,u){if(r==null)return{};var c=x(r,u),t,l;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(r);for(l=0;l<a.length;l++)t=a[l],!(u.indexOf(t)>=0)&&Object.prototype.propertyIsEnumerable.call(r,t)&&(c[t]=r[t])}return c}function x(r,u){if(r==null)return{};var c={},t=Object.keys(r),l,a;for(a=0;a<t.length;a++)l=t[a],!(u.indexOf(l)>=0)&&(c[l]=r[l]);return c}function I(r,u){return M(r)||R(r,u)||N(r,u)||w()}function w(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
3
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function N(r,u){if(r){if(typeof r=="string")return B(r,u);var c=Object.prototype.toString.call(r).slice(8,-1);if(c==="Object"&&r.constructor&&(c=r.constructor.name),c==="Map"||c==="Set")return Array.from(r);if(c==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(c))return B(r,u)}}function B(r,u){(u==null||u>r.length)&&(u=r.length);for(var c=0,t=new Array(u);c<u;c++)t[c]=r[c];return t}function R(r,u){var c=r==null?null:typeof Symbol<"u"&&r[Symbol.iterator]||r["@@iterator"];if(c!=null){var t=[],l=!0,a=!1,e,o;try{for(c=c.call(r);!(l=(e=c.next()).done)&&(t.push(e.value),!(u&&t.length===u));l=!0);}catch(n){a=!0,o=n}finally{try{!l&&c.return!=null&&c.return()}finally{if(a)throw o}}return t}}function M(r){if(Array.isArray(r))return r}function z(r,u){var c=(0,h.useStyletron)(),t=I(c,2),l=t[1],a=r.title,e=a===void 0?"Delete Alt":a,o=r.size,n=r.color,p=r.overrides,s=p===void 0?{}:p,O=P(r,m),j=(0,b.mergeOverride)({component:l.icons&&l.icons.DeleteAlt?l.icons.DeleteAlt:null},s&&s.Svg?(0,b.toObjectOverride)(s.Svg):{});return d.createElement(v.default,T({viewBox:"0 0 24 24",ref:u,title:e,size:o,color:n,overrides:{Svg:j}},O),d.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M12 20C16.4183 20 20 16.4183 20 12C20 7.58173 16.4183 4 12 4C7.58173 4 4 7.58173 4 12C4 16.4183 7.58173 20 12 20ZM10.0303 8.96967C9.73743 8.67679 9.26257 8.67679 8.96967 8.96967C8.67676 9.26257 8.67676 9.73743 8.96967 10.0303L10.9393 12L8.96967 13.9697C8.67676 14.2626 8.67676 14.7374 8.96967 15.0303C9.26257 15.3232 9.73743 15.3232 10.0303 15.0303L12 13.0607L13.9697 15.0303C14.2626 15.3232 14.7374 15.3232 15.0303 15.0303C15.3232 14.7374 15.3232 14.2626 15.0303 13.9697L13.0607 12L15.0303 10.0303C15.3232 9.73743 15.3232 9.26257 15.0303 8.96967C14.7374 8.67679 14.2626 8.67679 13.9697 8.96967L12 10.9393L10.0303 8.96967Z"}))}var i=d.forwardRef(z);return F.default=i,F}var ne;function Ae(){if(ne)return C;ne=1,Object.defineProperty(C,"__esModule",{value:!0}),C.getRootStyles=C.getInputStyles=C.getInputContainerStyles=C.StyledMaskToggleButton=C.StyledClearIconContainer=C.StyledClearIcon=C.Root=C.InputEnhancer=C.InputContainer=C.Input=void 0;var g=Q,d=Me(),h=b(We());function b(e){return e&&e.__esModule?e:{default:e}}function v(e,o){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var p=Object.getOwnPropertySymbols(e);o&&(p=p.filter(function(s){return Object.getOwnPropertyDescriptor(e,s).enumerable})),n.push.apply(n,p)}return n}function m(e){for(var o=1;o<arguments.length;o++){var n=arguments[o]!=null?arguments[o]:{};o%2?v(Object(n),!0).forEach(function(p){y(e,p,n[p])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):v(Object(n)).forEach(function(p){Object.defineProperty(e,p,Object.getOwnPropertyDescriptor(n,p))})}return e}function y(e,o,n){return o in e?Object.defineProperty(e,o,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[o]=n,e}var S=(0,g.styled)("button",function(e){var o,n=e.$theme,p=e.$size,s=e.$isFocusVisible,O=(o={},y(o,d.SIZE.mini,n.sizing.scale400),y(o,d.SIZE.compact,n.sizing.scale400),y(o,d.SIZE.default,n.sizing.scale300),y(o,d.SIZE.large,n.sizing.scale200),o)[p];return{display:"flex",alignItems:"center",borderTopStyle:"none",borderBottomStyle:"none",borderLeftStyle:"none",borderRightStyle:"none",background:"none",paddingLeft:O,paddingRight:O,outline:s?"solid 3px ".concat(n.colors.accent):"none",color:n.colors.contentPrimary}});C.StyledMaskToggleButton=S,S.displayName="StyledMaskToggleButton",S.displayName="StyledMaskToggleButton";var f=(0,g.styled)("div",function(e){var o,n=e.$alignTop,p=n===void 0?!1:n,s=e.$size,O=e.$theme,j=(o={},y(o,d.SIZE.mini,O.sizing.scale200),y(o,d.SIZE.compact,O.sizing.scale200),y(o,d.SIZE.default,O.sizing.scale100),y(o,d.SIZE.large,O.sizing.scale0),o)[s];return{display:"flex",alignItems:p?"flex-start":"center",paddingLeft:j,paddingRight:j,paddingTop:p?O.sizing.scale500:"0px",color:O.colors.contentPrimary}});C.StyledClearIconContainer=f,f.displayName="StyledClearIconContainer",f.displayName="StyledClearIconContainer";var T=(0,g.styled)(h.default,function(e){var o=e.$theme,n=e.$isFocusVisible;return{cursor:"pointer",outline:n?"solid 3px ".concat(o.colors.accent):"none"}});C.StyledClearIcon=T,T.displayName="StyledClearIcon",T.displayName="StyledClearIcon";function P(e,o){var n;return(n={},y(n,d.SIZE.mini,{paddingTop:o.scale100,paddingBottom:o.scale100,paddingLeft:o.scale550,paddingRight:o.scale550}),y(n,d.SIZE.compact,{paddingTop:o.scale200,paddingBottom:o.scale200,paddingLeft:o.scale550,paddingRight:o.scale550}),y(n,d.SIZE.default,{paddingTop:o.scale400,paddingBottom:o.scale400,paddingLeft:o.scale550,paddingRight:o.scale550}),y(n,d.SIZE.large,{paddingTop:o.scale550,paddingBottom:o.scale550,paddingLeft:o.scale550,paddingRight:o.scale550}),n)[e]}function x(e,o,n,p,s){var O=e===d.ADJOINED.both||e===d.ADJOINED.left&&p!=="rtl"||e===d.ADJOINED.right&&p==="rtl"||s&&p==="rtl",j=e===d.ADJOINED.both||e===d.ADJOINED.right&&p!=="rtl"||e===d.ADJOINED.left&&p==="rtl"||s&&p!=="rtl";return{paddingLeft:O?n.scale550:"0px",paddingRight:j?n.scale550:"0px"}}function I(e,o){var n;return(n={},y(n,d.SIZE.mini,o.font100),y(n,d.SIZE.compact,o.font200),y(n,d.SIZE.default,o.font300),y(n,d.SIZE.large,o.font400),n)[e]}function w(e,o,n){var p=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!1,s=arguments.length>4?arguments[4]:void 0;return e?{borderLeftColor:s.inputFillDisabled,borderRightColor:s.inputFillDisabled,borderTopColor:s.inputFillDisabled,borderBottomColor:s.inputFillDisabled,backgroundColor:s.inputFillDisabled}:o?{borderLeftColor:s.borderSelected,borderRightColor:s.borderSelected,borderTopColor:s.borderSelected,borderBottomColor:s.borderSelected,backgroundColor:s.inputFillActive}:n?{borderLeftColor:s.inputBorderError,borderRightColor:s.inputBorderError,borderTopColor:s.inputBorderError,borderBottomColor:s.inputBorderError,backgroundColor:s.inputFillError}:p?{borderLeftColor:s.inputBorderPositive,borderRightColor:s.inputBorderPositive,borderTopColor:s.inputBorderPositive,borderBottomColor:s.inputBorderPositive,backgroundColor:s.inputFillPositive}:{borderLeftColor:s.inputBorder,borderRightColor:s.inputBorder,borderTopColor:s.inputBorder,borderBottomColor:s.inputBorder,backgroundColor:s.inputFill}}function N(e,o){var n=o.inputBorderRadius;return e===d.SIZE.mini&&(n=o.inputBorderRadiusMini),{borderTopLeftRadius:n,borderBottomLeftRadius:n,borderTopRightRadius:n,borderBottomRightRadius:n}}var B=function(e){var o=e.$isFocused,n=e.$adjoined,p=e.$error,s=e.$disabled,O=e.$positive,j=e.$size,_=e.$theme,E=e.$theme,k=E.borders,L=E.colors,le=E.sizing,ae=E.typography,q=E.animation,ue=e.$hasIconTrailing;return m(m(m(m({boxSizing:"border-box",display:"flex",overflow:"hidden",width:"100%",borderLeftWidth:"2px",borderRightWidth:"2px",borderTopWidth:"2px",borderBottomWidth:"2px",borderLeftStyle:"solid",borderRightStyle:"solid",borderTopStyle:"solid",borderBottomStyle:"solid",transitionProperty:"border",transitionDuration:q.timing200,transitionTimingFunction:q.easeOutCurve},N(j,k)),I(j,ae)),w(s,o,p,O,L)),x(n,j,le,_.direction,ue))};C.getRootStyles=B;var R=(0,g.styled)("div",B);C.Root=R,R.displayName="Root",R.displayName="Root";function M(e,o){var n;return(n={},y(n,d.SIZE.mini,{paddingRight:o.scale400,paddingLeft:o.scale400}),y(n,d.SIZE.compact,{paddingRight:o.scale400,paddingLeft:o.scale400}),y(n,d.SIZE.default,{paddingRight:o.scale300,paddingLeft:o.scale300}),y(n,d.SIZE.large,{paddingRight:o.scale200,paddingLeft:o.scale200}),n)[e]}function z(e,o,n,p,s){return e?{color:s.inputEnhancerTextDisabled,backgroundColor:s.inputFillDisabled}:o?{color:s.contentPrimary,backgroundColor:s.inputFillActive}:n?{color:s.contentPrimary,backgroundColor:s.inputFillError}:p?{color:s.contentPrimary,backgroundColor:s.inputFillPositive}:{color:s.contentPrimary,backgroundColor:s.inputFill}}var i=(0,g.styled)("div",function(e){var o=e.$size,n=e.$disabled,p=e.$isFocused,s=e.$error,O=e.$positive,j=e.$theme,_=j.colors,E=j.sizing,k=j.typography,L=j.animation;return m(m(m({display:"flex",alignItems:"center",justifyContent:"center",transitionProperty:"color, background-color",transitionDuration:L.timing200,transitionTimingFunction:L.easeOutCurve},I(o,k)),M(o,E)),z(n,p,s,O,_))});C.InputEnhancer=i,i.displayName="InputEnhancer",i.displayName="InputEnhancer";function r(e,o,n,p,s){return e?{color:s.inputTextDisabled,backgroundColor:s.inputFillDisabled}:o?{color:s.contentPrimary,backgroundColor:s.inputFillActive}:n?{color:s.contentPrimary,backgroundColor:s.inputFillError}:p?{color:s.contentPrimary,backgroundColor:s.inputFillPositive}:{color:s.contentPrimary,backgroundColor:s.inputFill}}var u=function(e){var o=e.$isFocused,n=e.$error,p=e.$disabled,s=e.$positive,O=e.$size,j=e.$theme,_=j.colors,E=j.typography,k=j.animation;return m(m({display:"flex",width:"100%",transitionProperty:"background-color",transitionDuration:k.timing200,transitionTimingFunction:k.easeOutCurve},I(O,E)),r(p,o,n,s,_))};C.getInputContainerStyles=u;var c=(0,g.styled)("div",u);C.InputContainer=c,c.displayName="InputContainer",c.displayName="InputContainer";function t(e,o,n,p){return e?{color:p.inputTextDisabled,"-webkit-text-fill-color":p.inputTextDisabled,caretColor:p.contentPrimary,"::placeholder":{color:p.inputPlaceholderDisabled}}:{color:p.contentPrimary,caretColor:p.contentPrimary,"::placeholder":{color:p.inputPlaceholder}}}var l=function(e){var o=e.$disabled,n=e.$isFocused,p=e.$error,s=e.$size,O=e.$theme,j=O.colors,_=O.sizing,E=O.typography;return m(m(m({boxSizing:"border-box",backgroundColor:"transparent",borderLeftWidth:0,borderRightWidth:0,borderTopWidth:0,borderBottomWidth:0,borderLeftStyle:"none",borderRightStyle:"none",borderTopStyle:"none",borderBottomStyle:"none",outline:"none",width:"100%",minWidth:0,maxWidth:"100%",cursor:o?"not-allowed":"text",margin:"0",paddingTop:"0",paddingBottom:"0",paddingLeft:"0",paddingRight:"0"},I(s,E)),P(s,_)),t(o,n,p,j))};C.getInputStyles=l;var a=(0,g.styled)("input",l);return C.Input=a,a.displayName="Input",a.displayName="Input",C}var Fe=Ae();function Ze({disabled:g,element:d,widgetMgr:h,fragmentId:b}){const[v,m]=xe({getStateFromWidgetMgr:He,getDefaultStateFromProto:Ve,getCurrStateFromProto:Ue,updateWidgetMgrState:Je,element:d,widgetMgr:h,fragmentId:b}),y=U.useContext(ce),S=J(d.default)&&!g,f=se(),T={Select:{props:{disabled:g,overrides:{ControlContainer:{style:({$isFocused:I})=>{const w=ye(f.colors,I);return{height:f.sizes.minElementHeight,borderLeftWidth:f.sizes.borderWidth,borderRightWidth:f.sizes.borderWidth,borderTopWidth:f.sizes.borderWidth,borderBottomWidth:f.sizes.borderWidth,borderTopColor:w,borderRightColor:w,borderBottomColor:w,borderLeftColor:w}}},IconsContainer:{style:()=>({paddingRight:f.spacing.sm})},ValueContainer:{style:()=>({lineHeight:f.lineHeights.inputWidget,paddingRight:f.spacing.sm,paddingLeft:f.spacing.md,paddingBottom:f.spacing.sm,paddingTop:f.spacing.sm})},SingleValue:{style:{fontWeight:f.fontWeights.normal},props:{"data-testid":"stTimeInputTimeDisplay"}},Dropdown:{style:()=>({paddingTop:f.spacing.none,paddingBottom:f.spacing.none,boxShadow:"none",maxHeight:f.sizes.maxDropdownHeight})},DropdownListItem:{component:De},Popover:{props:{ignoreBoundary:y,overrides:{Body:{style:()=>({marginTop:f.spacing.px})}}}},Placeholder:{style:()=>({color:f.colors.fadedText60})},SelectArrow:{component:ge,props:{overrides:{Svg:{style:()=>({width:f.iconSizes.xl,height:f.iconSizes.xl})}}}}}}}},P=U.useCallback(I=>{const w=I===null?null:Ye(I);m({value:w,fromUi:!0})},[m]),x=U.useCallback(()=>{P(null)},[P]);return W.jsxs("div",{className:"stTimeInput","data-testid":"stTimeInput",children:[W.jsx(de,{label:d.label,disabled:g,labelVisibility:pe(d.labelVisibility?.value),children:d.help&&W.jsx(fe,{content:d.help,label:d.label})}),W.jsx($e,{format:"24",step:d.step?Number(d.step):900,value:J(v)?void 0:Qe(v),onChange:P,overrides:T,nullable:S,creatable:!0,"aria-label":d.label}),S&&!J(v)&&W.jsx(Re,{onClick:x,"data-testid":"stTimeInputClearButton",children:W.jsx(Fe.StyledClearIcon,{overrides:{Svg:{style:{color:f.colors.grayTextColor,padding:f.spacing.threeXS,height:f.sizes.clearIconSize,width:f.sizes.clearIconSize,":hover":{fill:f.colors.bodyText}}}},$isFocusVisible:!1})})]})}function He(g,d){return g.getStringValue(d)??null}function Ve(g){return g.default??null}function Ue(g){return g.value??null}function Je(g,d,h,b){d.setStringValue(g,h.value,{fromUi:h.fromUi},b)}function Ye(g){const d=g.getHours().toString().padStart(2,"0"),h=g.getMinutes().toString().padStart(2,"0");return`${d}:${h}`}function Qe(g){if(g===null)return null;const[d,h]=g.split(":").map(Number),b=new Date;return b.setHours(d),b.setMinutes(h),b}const ot=U.memo(Ze);export{ot as default};
@@ -1 +1 @@
1
- import{r as t,j as s,c as a,H as r}from"./index-BvblFOYP.js";import{q as o}from"./ProgressBar-ohpf-YR2-PWD0xacp.js";const i=a("div",{target:"e18r7x300"})(({theme:e})=>({paddingBottom:e.spacing.sm,lineHeight:"normal"}),"");function l({element:e}){return s.jsxs("div",{className:"stProgress","data-testid":"stProgress",children:[s.jsx(i,{children:s.jsx(r,{source:e.text,allowHTML:!1,isLabel:!0})}),s.jsx(o,{value:e.value})]})}const d=t.memo(l);export{d as default};
1
+ import{r as t,k as s,y as a,B as r}from"./index-nhNM5UeG.js";import{J as o}from"./ProgressBar-E3DTwBEC-BjaNqN1B.js";const i=a("div",{target:"e18r7x300"})(({theme:e})=>({paddingBottom:e.spacing.sm,lineHeight:"normal"}),"");function l({element:e}){return s.jsxs("div",{className:"stProgress","data-testid":"stProgress",children:[s.jsx(i,{children:s.jsx(r,{source:e.text,allowHTML:!1,isLabel:!0})}),s.jsx(o,{value:e.value})]})}const d=t.memo(l);export{d as default};
@@ -0,0 +1,11 @@
1
+ import{r as f,L as de,bu as D,E as Q,k as w,aa as ge,bv as ye,bw as V,aM as be,aN as he,bx as Ee,y as we,a9 as Ce,N as Ne,by as ke,j as X,bz as ve,aJ as R,bA as je}from"./index-nhNM5UeG.js";import{bB as rt}from"./index-nhNM5UeG.js";import{o as Se}from"./withCalculatedWidth-ZZ9bYZZd-CtbnrMaD.js";import{t as H,s as Y}from"./urls-CuMqgoDl-BWqF1s4U.js";import{a as Oe,o as Fe}from"./IFrameUtil-8kJzIdKx-BKMrKnrz.js";const Z="%[a-f0-9]{2}",q=new RegExp("("+Z+")|([^%]+?)","gi"),z=new RegExp("("+Z+")+","gi");function $(e,t){try{return[decodeURIComponent(e.join(""))]}catch{}if(e.length===1)return e;t=t||1;const r=e.slice(0,t),n=e.slice(t);return Array.prototype.concat.call([],$(r),$(n))}function Re(e){try{return decodeURIComponent(e)}catch{let t=e.match(q)||[];for(let r=1;r<t.length;r++)e=$(t,r).join(""),t=e.match(q)||[];return e}}function $e(e){const t={"%FE%FF":"��","%FF%FE":"��"};let r=z.exec(e);for(;r;){try{t[r[0]]=decodeURIComponent(r[0])}catch{const o=Re(r[0]);o!==r[0]&&(t[r[0]]=o)}r=z.exec(e)}t["%C2"]="�";const n=Object.keys(t);for(const o of n)e=e.replace(new RegExp(o,"g"),t[o]);return e}function xe(e){if(typeof e!="string")throw new TypeError("Expected `encodedURI` to be of type `string`, got `"+typeof e+"`");try{return decodeURIComponent(e)}catch{return $e(e)}}function Ae(e,t){const r={};if(Array.isArray(t))for(const n of t){const o=Object.getOwnPropertyDescriptor(e,n);o?.enumerable&&Object.defineProperty(r,n,o)}else for(const n of Reflect.ownKeys(e)){const o=Object.getOwnPropertyDescriptor(e,n);if(o.enumerable){const a=e[n];t(n,a,e)&&Object.defineProperty(r,n,o)}}return r}function ee(e,t){if(!(typeof e=="string"&&typeof t=="string"))throw new TypeError("Expected the arguments to be of type `string`");if(e===""||t==="")return[];const r=e.indexOf(t);return r===-1?[]:[e.slice(0,r),e.slice(r+t.length)]}const Ie=e=>e==null,Te=e=>encodeURIComponent(e).replaceAll(/[!'()*]/g,t=>`%${t.charCodeAt(0).toString(16).toUpperCase()}`),x=Symbol("encodeFragmentIdentifier");function Ue(e){switch(e.arrayFormat){case"index":return t=>(r,n)=>{const o=r.length;return n===void 0||e.skipNull&&n===null||e.skipEmptyString&&n===""?r:n===null?[...r,[c(t,e),"[",o,"]"].join("")]:[...r,[c(t,e),"[",c(o,e),"]=",c(n,e)].join("")]};case"bracket":return t=>(r,n)=>n===void 0||e.skipNull&&n===null||e.skipEmptyString&&n===""?r:n===null?[...r,[c(t,e),"[]"].join("")]:[...r,[c(t,e),"[]=",c(n,e)].join("")];case"colon-list-separator":return t=>(r,n)=>n===void 0||e.skipNull&&n===null||e.skipEmptyString&&n===""?r:n===null?[...r,[c(t,e),":list="].join("")]:[...r,[c(t,e),":list=",c(n,e)].join("")];case"comma":case"separator":case"bracket-separator":{const t=e.arrayFormat==="bracket-separator"?"[]=":"=";return r=>(n,o)=>o===void 0||e.skipNull&&o===null||e.skipEmptyString&&o===""?n:(o=o===null?"":o,n.length===0?[[c(r,e),t,c(o,e)].join("")]:[[n,c(o,e)].join(e.arrayFormatSeparator)])}default:return t=>(r,n)=>n===void 0||e.skipNull&&n===null||e.skipEmptyString&&n===""?r:n===null?[...r,c(t,e)]:[...r,[c(t,e),"=",c(n,e)].join("")]}}function _e(e){let t;switch(e.arrayFormat){case"index":return(r,n,o)=>{if(t=/\[(\d*)]$/.exec(r),r=r.replace(/\[\d*]$/,""),!t){o[r]=n;return}o[r]===void 0&&(o[r]={}),o[r][t[1]]=n};case"bracket":return(r,n,o)=>{if(t=/(\[])$/.exec(r),r=r.replace(/\[]$/,""),!t){o[r]=n;return}if(o[r]===void 0){o[r]=[n];return}o[r]=[...o[r],n]};case"colon-list-separator":return(r,n,o)=>{if(t=/(:list)$/.exec(r),r=r.replace(/:list$/,""),!t){o[r]=n;return}if(o[r]===void 0){o[r]=[n];return}o[r]=[...o[r],n]};case"comma":case"separator":return(r,n,o)=>{const a=typeof n=="string"&&n.includes(e.arrayFormatSeparator)?n.split(e.arrayFormatSeparator).map(s=>g(s,e)):n===null?n:g(n,e);o[r]=a};case"bracket-separator":return(r,n,o)=>{const a=/(\[])$/.test(r);if(r=r.replace(/\[]$/,""),!a){o[r]=n&&g(n,e);return}const s=n===null?[]:g(n,e).split(e.arrayFormatSeparator);if(o[r]===void 0){o[r]=s;return}o[r]=[...o[r],...s]};default:return(r,n,o)=>{if(o[r]===void 0){o[r]=n;return}o[r]=[...[o[r]].flat(),n]}}}function te(e){if(typeof e!="string"||e.length!==1)throw new TypeError("arrayFormatSeparator must be single character string")}function c(e,t){return t.encode?t.strict?Te(e):encodeURIComponent(e):e}function g(e,t){return t.decode?xe(e):e}function re(e){return Array.isArray(e)?e.sort():typeof e=="object"?re(Object.keys(e)).sort((t,r)=>Number(t)-Number(r)).map(t=>e[t]):e}function ne(e){const t=e.indexOf("#");return t!==-1&&(e=e.slice(0,t)),e}function Le(e){let t="";const r=e.indexOf("#");return r!==-1&&(t=e.slice(r)),t}function B(e,t,r){return r==="string"&&typeof e=="string"?e:typeof r=="function"&&typeof e=="string"?r(e):r==="boolean"&&e===null?!0:r==="boolean"&&e!==null&&(e.toLowerCase()==="true"||e.toLowerCase()==="false")?e.toLowerCase()==="true":r==="boolean"&&e!==null&&(e.toLowerCase()==="1"||e.toLowerCase()==="0")?e.toLowerCase()==="1":r==="string[]"&&t.arrayFormat!=="none"&&typeof e=="string"?[e]:r==="number[]"&&t.arrayFormat!=="none"&&!Number.isNaN(Number(e))&&typeof e=="string"&&e.trim()!==""?[Number(e)]:r==="number"&&!Number.isNaN(Number(e))&&typeof e=="string"&&e.trim()!==""?Number(e):t.parseBooleans&&e!==null&&(e.toLowerCase()==="true"||e.toLowerCase()==="false")?e.toLowerCase()==="true":t.parseNumbers&&!Number.isNaN(Number(e))&&typeof e=="string"&&e.trim()!==""?Number(e):e}function A(e){e=ne(e);const t=e.indexOf("?");return t===-1?"":e.slice(t+1)}function I(e,t){t={decode:!0,sort:!0,arrayFormat:"none",arrayFormatSeparator:",",parseNumbers:!1,parseBooleans:!1,types:Object.create(null),...t},te(t.arrayFormatSeparator);const r=_e(t),n=Object.create(null);if(typeof e!="string"||(e=e.trim().replace(/^[?#&]/,""),!e))return n;for(const o of e.split("&")){if(o==="")continue;const a=t.decode?o.replaceAll("+"," "):o;let[s,i]=ee(a,"=");s===void 0&&(s=a),i=i===void 0?null:["comma","separator","bracket-separator"].includes(t.arrayFormat)?i:g(i,t),r(g(s,t),i,n)}for(const[o,a]of Object.entries(n))if(typeof a=="object"&&a!==null&&t.types[o]!=="string")for(const[s,i]of Object.entries(a)){const p=t.types[o],u=typeof p=="function"?p:p?p.replace("[]",""):void 0;a[s]=B(i,t,u)}else typeof a=="object"&&a!==null&&t.types[o]==="string"?n[o]=Object.values(a).join(t.arrayFormatSeparator):n[o]=B(a,t,t.types[o]);return t.sort===!1?n:(t.sort===!0?Object.keys(n).sort():Object.keys(n).sort(t.sort)).reduce((o,a)=>{const s=n[a];return o[a]=s&&typeof s=="object"&&!Array.isArray(s)?re(s):s,o},Object.create(null))}function oe(e,t){if(!e)return"";t={encode:!0,strict:!0,arrayFormat:"none",arrayFormatSeparator:",",...t},te(t.arrayFormatSeparator);const r=s=>t.skipNull&&Ie(e[s])||t.skipEmptyString&&e[s]==="",n=Ue(t),o={};for(const[s,i]of Object.entries(e))r(s)||(o[s]=i);const a=Object.keys(o);return t.sort!==!1&&a.sort(t.sort),a.map(s=>{let i=e[s];if(t.replacer&&(i=t.replacer(s,i),i===void 0)||i===void 0)return"";if(i===null)return c(s,t);if(Array.isArray(i)){if(i.length===0&&t.arrayFormat==="bracket-separator")return c(s,t)+"[]";let p=i;return t.replacer&&(p=i.map((u,l)=>t.replacer(`${s}[${l}]`,u)).filter(u=>u!==void 0)),p.reduce(n(s),[]).join("&")}return c(s,t)+"="+c(i,t)}).filter(s=>s.length>0).join("&")}function ae(e,t){t={decode:!0,...t};let[r,n]=ee(e,"#");return r===void 0&&(r=e),{url:r?.split("?")?.[0]??"",query:I(A(e),t),...t&&t.parseFragmentIdentifier&&n?{fragmentIdentifier:g(n,t)}:{}}}function se(e,t){t={encode:!0,strict:!0,[x]:!0,...t};const r=ne(e.url).split("?")[0]||"",n=A(e.url),o={...I(n,{sort:!1,...t}),...e.query};let a=oe(o,t);a&&=`?${a}`;let s=Le(e.url);if(typeof e.fragmentIdentifier=="string"){const i=new URL(r);i.hash=e.fragmentIdentifier,s=t[x]?i.hash:`#${e.fragmentIdentifier}`}return`${r}${a}${s}`}function ie(e,t,r){r={parseFragmentIdentifier:!0,[x]:!1,...r};const{url:n,query:o,fragmentIdentifier:a}=ae(e,r);return se({url:n,query:Ae(o,t),fragmentIdentifier:a},r)}function Me(e,t,r){const n=Array.isArray(t)?o=>!t.includes(o):(o,a)=>!t(o,a);return ie(e,n,r)}const Pe=Object.freeze(Object.defineProperty({__proto__:null,exclude:Me,extract:A,parse:I,parseUrl:ae,pick:ie,stringify:oe,stringifyUrl:se},Symbol.toStringTag,{value:"Module"}));var C=(e=>(e.COMPONENT_READY="streamlit:componentReady",e.SET_COMPONENT_VALUE="streamlit:setComponentValue",e.SET_FRAME_HEIGHT="streamlit:setFrameHeight",e))(C||{}),ce=(e=>(e.RENDER="streamlit:render",e))(ce||{});const De=1,N=Q.getLogger("componentUtils");function Ve(e){return(t,r)=>{if(!e.current)return;const{isReady:n,element:o,widgetMgr:a,setComponentError:s,componentReadyCallback:i,frameHeightCallback:p,fragmentId:u}=e.current,l=n();switch(t){case C.COMPONENT_READY:{const{apiVersion:y}=r;y!==De?s(new Error(`Unrecognized component API version: '${y}'`)):i();break}case C.SET_COMPONENT_VALUE:l?Ye(G(r,"value"),r.dataType,{fromUi:!0},o,a,u):N.warn(`Got ${t} before ${C.COMPONENT_READY}!`);break;case C.SET_FRAME_HEIGHT:l?p(G(r,"height")):N.warn(`Got ${t} before ${C.COMPONENT_READY}!`);break;default:N.warn(`Unrecognized ComponentBackMsgType: ${t}`)}}}function He(e,t){const r=JSON.parse(e),n=[];for(const o of t){const{key:a}=o;switch(o.value?.toLowerCase()){case"arrowdataframe":n.push({key:a,value:je.toObject(o.arrowDataframe)});break;case"bytes":r[a]=o.bytes;break;default:throw new Error(`Unrecognized SpecialArg type: ${o.value}`)}}return[r,n]}function W(e,t,r,n,o){if(!o){N.warn("Can't send ForwardMsg; missing our iframe!");return}if(X(o.contentWindow)){N.warn("Can't send ForwardMsg; iframe has no contentWindow!");return}o.contentWindow.postMessage({type:ce.RENDER,args:e,dfs:t,disabled:r,theme:{...ve(n),font:n.genericFonts.bodyFont}},"*")}function Ye(e,t,r,n,o,a){if(e===void 0){N.warn("handleSetComponentValue: missing 'value' prop");return}switch(t){case"dataframe":o.setArrowValue(n,e,r,a);break;case"bytes":o.setBytesValue(n,e,r,a);break;default:o.setJsonValue(n,e,r,a)}}function G(e,t,r=void 0){return Object.hasOwn(e,t)?e[t]:r}const qe=we("iframe",{target:"e1fjvnnc0"})(({theme:e,componentReady:t})=>({colorScheme:"normal",border:"none",padding:e.spacing.none,margin:e.spacing.none,display:t?"initial":"none"}),""),O=Q.getLogger("ComponentInstance"),J=6e4;function ze(e,t,r){let n;Ne(r)&&r!==""?n=r:n=t.getComponentURL(e,"index.html");const o=ke.CUSTOM_COMPONENT_CLIENT_ID,a=new URL(window.location.href);return n=Pe.stringifyUrl({url:n,query:{streamlitUrl:a.origin+a.pathname,...o&&{__streamlit_parent_client_id:o}}}),n}function K(e,t){let r;return t&&t!==""?r=`Your app is having trouble loading the **${e}** component.
2
+ The app is attempting to load the component from **${t}**,
3
+ and hasn't received its \`Streamlit.setComponentReady()\` message.
4
+
5
+ If this is a development build, have you started the dev server?
6
+
7
+ For more troubleshooting help, please see the [Streamlit Component docs](${H}) or visit our [forums](${Y}).`:r=`Your app is having trouble loading the **${e}** component.
8
+
9
+ If this is an installed component that works locally, the app may be having trouble accessing the component frontend assets due to network latency or proxy settings in your app deployment.
10
+
11
+ For more troubleshooting help, please see the [Streamlit Component docs](${H}) or visit our [forums](${Y}).`,r}function Be(e,t,r,n){if(!n)try{return He(e,t)}catch(o){const a=Ce(o);r(a)}return[{},[]]}function We(e,t){return e===t||e.length===t.length&&e.every((r,n)=>{const o=t[n];return r.key===o.key&&r.value===o.value})}function Ge(e){const t=de(),[r,n]=f.useState(),{disabled:o,element:a,widgetMgr:s,width:i,fragmentId:p,componentRegistry:u}=e,{componentName:l,jsonArgs:y,specialArgs:ue,url:j}=a,[F,T]=Be(y,ue,n,r),k=f.useMemo(()=>ze(l,u,j),[l,u,j]),m=f.useRef({args:{},dataframeArgs:[]}),U=We(m.current.dataframeArgs,T);m.current.args=F,m.current.dataframeArgs=T;const[v,_]=f.useState(),[b,le]=f.useState(()=>isNaN(F.height)?void 0:F.height),d=f.useRef(!1),h=f.useRef(null),L=f.useRef(),{clear:M}=D(()=>O.warn(K(l,j)),J/4),{clear:P}=D(()=>{R.flushSync(()=>{_(!0)})},J);if(f.useEffect(()=>{u.checkSourceUrlResponse(k,l)},[k,l,u]),f.useEffect(()=>{v&&!d.current&&(O.error(`Client Error: Custom Component ${l} timeout error`),u.sendTimeoutError(k,l))},[v,k,l,u]),f.useEffect(()=>{d.current&&W(m.current.args,m.current.dataframeArgs,o,t,h.current??void 0)},[o,b,U,y,t,i]),f.useEffect(()=>{const E=S=>{if(S===void 0){O.warn("handleSetFrameHeight: missing 'height' prop");return}if(S!==b){if(X(h.current)){O.warn("handleSetFrameHeight: missing our iframeRef!");return}h.current.height=S.toString(),R.flushSync(()=>{le(S)})}},me=()=>{W(m.current.args,m.current.dataframeArgs,o,t,h.current??void 0),M(),P(),d.current=!0,R.flushSync(()=>{_(!1)})};L.current={isReady:()=>d.current,element:a,widgetMgr:s,setComponentError:n,componentReadyCallback:me,frameHeightCallback:E,fragmentId:p}},[l,o,a,b,U,v,y,t,s,P,M,p]),f.useEffect(()=>{const E=h.current?.contentWindow??void 0;if(E)return u.registerListener(E,Ve(L)),()=>{E&&u.deregisterListener(E)}},[u,l]),r)return w.jsx(ge,{name:r.name,message:r.message});const fe=!d.current&&!v&&b!==0&&w.jsx(ye,{element:V.create({height:b,style:V.SkeletonStyle.ELEMENT})}),pe=!d.current&&v?w.jsx(be,{body:K(l,j),kind:he.WARNING}):null;return w.jsxs(w.Fragment,{children:[fe,pe,w.jsx(Ee,{IframeComponent:qe,className:"stCustomComponentV1","data-testid":"stCustomComponentV1",allow:Fe,ref:h,src:k,width:i,height:b??0,scrolling:"no",sandbox:Oe,title:l,componentReady:d.current,tabIndex:a.tabIndex??void 0})]})}const Ze=Se(f.memo(Ge));export{Ze as ComponentInstance,rt as ComponentRegistry};
@@ -0,0 +1 @@
1
+ import{r as t,L as Fe,N as P,ar as Me,j as de,k as n,y as g,aP as Le,ao as Ve,aQ as ze,ap as Te,a9 as oe,aR as Be,aS as Ne,aT as Oe,Y as $e,ae as We,aU as Xe,ag as De,aq as He,F as M,_ as L}from"./index-nhNM5UeG.js";import{c as _e}from"./useWaveformController-Betfr4kn-B9JLTJ93.js";import{y as qe,X as se}from"./Toolbar-DencJ98c--L3IVNu_.js";import{d as Ye,m as Qe}from"./FormClearHelper-XrLdNEJa-DVEjd1cV.js";import{s as Ge}from"./createDownloadLinkElement-D-zJ1ZGH-MUElf4MM.js";import{o as Ke}from"./urls-CuMqgoDl-BWqF1s4U.js";import{i as Je,o as Ze}from"./FileDownload.esm-B67hf_fm-CYQKuYJG.js";var ue=t.forwardRef(function(e,r){var a={fill:"currentColor",xmlns:"http://www.w3.org/2000/svg"};return t.createElement(M,L({iconAttrs:a,iconVerticalAlign:"middle",iconViewBox:"0 0 24 24"},e,{ref:r}),t.createElement("g",{fill:"none"},t.createElement("rect",{width:24,height:24}),t.createElement("rect",{width:24,height:24}),t.createElement("rect",{width:24,height:24})),t.createElement("path",{d:"M12 14c1.66 0 3-1.34 3-3V5c0-1.66-1.34-3-3-3S9 3.34 9 5v6c0 1.66 1.34 3 3 3z"}),t.createElement("path",{d:"M17 11c0 2.76-2.24 5-5 5s-5-2.24-5-5H5c0 3.53 2.61 6.43 6 6.92V21h2v-3.08c3.39-.49 6-3.39 6-6.92h-2z"}))});ue.displayName="Mic";var ge=t.forwardRef(function(e,r){var a={fill:"currentColor",xmlns:"http://www.w3.org/2000/svg"};return t.createElement(M,L({iconAttrs:a,iconVerticalAlign:"middle",iconViewBox:"0 0 24 24"},e,{ref:r}),t.createElement("rect",{width:24,height:24,fill:"none"}),t.createElement("path",{d:"M8 19c1.1 0 2-.9 2-2V7c0-1.1-.9-2-2-2s-2 .9-2 2v10c0 1.1.9 2 2 2zm6-12v10c0 1.1.9 2 2 2s2-.9 2-2V7c0-1.1-.9-2-2-2s-2 .9-2 2z"}))});ge.displayName="Pause";var fe=t.forwardRef(function(e,r){var a={fill:"currentColor",xmlns:"http://www.w3.org/2000/svg"};return t.createElement(M,L({iconAttrs:a,iconVerticalAlign:"middle",iconViewBox:"0 0 24 24"},e,{ref:r}),t.createElement("rect",{width:24,height:24,fill:"none"}),t.createElement("path",{d:"M8 6.82v10.36c0 .79.87 1.27 1.54.84l8.14-5.18a1 1 0 000-1.69L9.54 5.98A.998.998 0 008 6.82z"}))});fe.displayName="PlayArrow";var me=t.forwardRef(function(e,r){var a={fill:"currentColor",xmlns:"http://www.w3.org/2000/svg"};return t.createElement(M,L({iconAttrs:a,iconVerticalAlign:"middle",iconViewBox:"0 0 24 24"},e,{ref:r}),t.createElement("path",{fill:"none",d:"M0 0h24v24H0V0z"}),t.createElement("path",{d:"M17.65 6.35a7.95 7.95 0 00-6.48-2.31c-3.67.37-6.69 3.35-7.1 7.02C3.52 15.91 7.27 20 12 20a7.98 7.98 0 007.21-4.56c.32-.67-.16-1.44-.9-1.44-.37 0-.72.2-.88.53a5.994 5.994 0 01-6.8 3.31c-2.22-.49-4.01-2.3-4.48-4.52A6.002 6.002 0 0112 6c1.66 0 3.14.69 4.22 1.78l-1.51 1.51c-.63.63-.19 1.71.7 1.71H19c.55 0 1-.45 1-1V6.41c0-.89-1.08-1.34-1.71-.71l-.64.65z"}))});me.displayName="Refresh";var pe=t.forwardRef(function(e,r){var a={fill:"currentColor",xmlns:"http://www.w3.org/2000/svg"};return t.createElement(M,L({iconAttrs:a,iconVerticalAlign:"middle",iconViewBox:"0 0 24 24"},e,{ref:r}),t.createElement("g",{fill:"none"},t.createElement("rect",{width:24,height:24}),t.createElement("rect",{width:24,height:24})),t.createElement("path",{fillRule:"evenodd",d:"M9 16h6c.55 0 1-.45 1-1V9c0-.55-.45-1-1-1H9c-.55 0-1 .45-1 1v6c0 .55.45 1 1 1zm3-14C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2z"}))});pe.displayName="StopCircle";const et=(e,r)=>{const{enforceDownloadInNewTab:a=!1}=t.useContext($e);return t.useCallback(()=>{if(!e)return;const l=Ge({enforceDownloadInNewTab:a,url:e,filename:r});l.style.display="none",document.body.appendChild(l),l.click(),document.body.removeChild(l)},[e,a,r])},X=({widgetMgr:e,id:r,formId:a,key:l,defaultValue:s})=>{t.useEffect(()=>{const o=e.getElementState(r,l);de(o)&&P(s)&&e.setElementState(r,l,s)},[e,r,l,s]);const[k,p]=t.useState(e.getElementState(r,l)??s),c=t.useCallback(o=>{e.setElementState(r,l,o),p(o)},[e,r,l]),b=t.useMemo(()=>({formId:a||""}),[a]),v=t.useCallback(()=>c(s),[s,c]);return Qe({element:b,widgetMgr:e,onFormCleared:v}),[k,c]},tt=async({files:e,uploadClient:r,widgetMgr:a,widgetInfo:l,fragmentId:s,signal:k})=>{let p=[];try{p=await r.fetchFileURLs(e)}catch(o){return{successfulUploads:[],failedUploads:e.map(d=>({file:d,error:oe(o)}))}}const c=Be(e,p),b=[],v=[];return await Promise.all(c.map(async([o,d])=>{if(!o||!d?.uploadUrl||!d.fileId)return{file:o,fileUrl:d,error:new Error("No upload URL found")};try{await r.uploadFile({id:d.fileId,formId:l.formId||""},d.uploadUrl,o,void 0,k),b.push({fileUrl:d,file:o})}catch(h){const O=oe(h);v.push({file:o,error:O})}})),a.setFileUploaderStateValue(l,new Ne({uploadedFileInfo:b.map(({file:o,fileUrl:d})=>new Oe({fileId:d.fileId,fileUrls:d,name:o.webkitRelativePath||o.name,size:o.size}))}),{fromUi:!0},s),{successfulUploads:b,failedUploads:v}},rt=g("div",{target:"e12wn80j14"})(""),ce=g("div",{target:"e12wn80j13"})(({theme:e,disabled:r})=>({height:e.sizes.largestElementHeight,width:"100%",background:e.colors.secondaryBg,borderRadius:e.radii.default,marginBottom:e.spacing.twoXS,display:"flex",alignItems:"center",position:"relative",paddingLeft:e.spacing.xs,paddingRight:e.spacing.sm,border:e.colors.widgetBorderColor?`${e.sizes.borderWidth} solid ${e.colors.widgetBorderColor}`:void 0,cursor:r?"not-allowed":"auto",overflow:"hidden"}),""),at=g("div",{target:"e12wn80j12"})({name:"82a6rk",styles:"flex:1"}),nt=g("div",{target:"e12wn80j11"})(({show:e,theme:r})=>({display:e?"block":"none",position:"relative",height:r.sizes.largestElementHeight,"& > div":{position:"absolute",top:0,left:0,width:"100%",height:"100%",display:"flex",alignItems:"center"}}),""),lt=g("span",{target:"e12wn80j10"})(({theme:e,isPlayingOrRecording:r,disabled:a})=>({margin:e.spacing.sm,fontFamily:e.fonts.monospace,color:a?e.colors.fadedText40:r?e.colors.bodyText:e.colors.fadedText60,backgroundColor:e.colors.secondaryBg,fontSize:e.fontSizes.sm}),""),he=g("div",{target:"e12wn80j9"})({name:"1kyw74z",styles:"width:100%;text-align:center;overflow:hidden"}),we=g("span",{target:"e12wn80j8"})(({theme:e})=>({color:e.colors.bodyText}),""),it=g("a",{target:"e12wn80j7"})(({theme:e})=>({color:e.colors.link,textDecoration:e.linkUnderline?"underline":"none"}),""),ot=g("div",{target:"e12wn80j6"})(({theme:e})=>({flex:1,height:e.sizes.largestElementHeight,display:"flex",justifyContent:"center",alignItems:"center"}),""),st=g("div",{target:"e12wn80j5"})(({theme:e})=>{const r="0.625em";return{opacity:.2,width:"100%",height:r,backgroundSize:r,backgroundImage:`radial-gradient(${e.colors.fadedText10} 40%, transparent 40%)`,backgroundRepeat:"repeat"}},""),ct=g("span",{target:"e12wn80j4"})(({theme:e})=>({"& > button":{color:e.colors.primary,padding:e.spacing.threeXS},"& > button:hover, & > button:focus":{color:e.colors.redColor}}),""),dt=g("span",{target:"e12wn80j3"})(({theme:e})=>({"& > button":{padding:e.spacing.threeXS,color:e.colors.fadedText60},"& > button:hover, & > button:focus":{color:e.colors.bodyText}}),""),be=g("span",{target:"e12wn80j2"})(({theme:e})=>({"& > button":{padding:e.spacing.threeXS,color:e.colors.fadedText60},"& > button:hover, & > button:focus":{color:e.colors.bodyText}}),""),D=g("div",{target:"e12wn80j1"})(({theme:e})=>({display:"flex",justifyContent:"center",alignItems:"center",flexGrow:0,flexShrink:1,padding:e.spacing.xs,gap:e.spacing.twoXS,marginRight:e.spacing.twoXS}),""),F=({onClick:e,disabled:r,ariaLabel:a,iconContent:l})=>n.jsx(Xe,{kind:De.BORDERLESS_ICON,onClick:e,disabled:r,"aria-label":a,containerWidth:!0,"data-testid":"stAudioInputActionButton",children:n.jsx(He,{content:l,size:"lg",color:"inherit"})}),ut=({disabled:e,stopRecording:r})=>n.jsx(ct,{children:n.jsx(F,{onClick:r,disabled:e,ariaLabel:"Stop recording",iconContent:pe})}),gt=({disabled:e,isPlaying:r,onClickPlayPause:a})=>n.jsx(be,{children:r?n.jsx(F,{onClick:a,disabled:e,ariaLabel:"Pause",iconContent:ge}):n.jsx(F,{onClick:a,disabled:e,ariaLabel:"Play",iconContent:fe})}),ft=({disabled:e,startRecording:r})=>n.jsx(dt,{children:n.jsx(F,{onClick:r,disabled:e,ariaLabel:"Record",iconContent:ue})}),mt=({onClick:e})=>n.jsx(be,{children:n.jsx(F,{disabled:!1,onClick:e,ariaLabel:"Reset",iconContent:me})}),pt=({disabled:e,isRecording:r,isPlaying:a,isUploading:l,isError:s,recordingUrlExists:k,startRecording:p,stopRecording:c,onClickPlayPause:b,onClear:v})=>s?n.jsx(D,{children:n.jsx(mt,{onClick:v})}):l?n.jsx(D,{children:n.jsx(We,{size:"base",iconValue:"spinner"})}):n.jsxs(D,{children:[r?n.jsx(ut,{disabled:e,stopRecording:c}):n.jsx(ft,{disabled:e,startRecording:p}),k&&n.jsx(gt,{disabled:e,isPlaying:a,onClickPlayPause:b})]}),ht=t.memo(pt),wt=()=>n.jsx(he,{children:n.jsx(we,{children:"An error has occurred, please try again."})}),bt=t.memo(wt),j="00:00",I=e=>{const r=Math.floor(e/1e3),a=Math.floor(r/60),l=Math.floor(a/60),s=r%60,k=a%60,p=s.toString().padStart(2,"0"),c=k.toString().padStart(2,"0"),b=l.toString().padStart(2,"0");return a<60?`${c}:${p}`:`${b}:${c}:${p}`},yt=()=>n.jsxs(he,{children:[n.jsx(we,{children:"This app would like to use your microphone."})," ",n.jsx(it,{href:Ke,rel:"noopener noreferrer",target:"_blank",children:"Learn how to allow access."})]}),xt=t.memo(yt),Ct=()=>n.jsx(ot,{children:n.jsx(st,{})}),jt=t.memo(Ct),kt=({element:e,uploadClient:r,widgetMgr:a,fragmentId:l,disabled:s})=>{const k=Fe(),p=t.useRef(null),[c,b]=t.useState(!1),[v,o]=t.useState(!1),[d,h]=t.useState(!1),[O,w]=t.useState(j),[V,z]=X({widgetMgr:a,id:e.id,key:"deleteFileUrl",defaultValue:null}),[f,T]=X({widgetMgr:a,id:e.id,key:"recordingUrl",defaultValue:null}),[$,U]=X({widgetMgr:a,id:e.id,formId:e.formId,key:"recordingTime",defaultValue:j}),E=t.useRef(null),x=t.useRef(null),u=t.useRef(null),H=e.id,C=e.formId,ye=t.useCallback(async i=>{E.current&&E.current.abort();const m=new AbortController;E.current=m;try{if(o(!0),P(C)&&a.setFormsWithUploadsInProgress(new Set([C])),m.signal.aborted)return;let y;try{y=URL.createObjectURL(i),x.current&&x.current!==y&&URL.revokeObjectURL(x.current),x.current=y}catch{h(!0),o(!1),P(C)&&a.setFormsWithUploadsInProgress(new Set);return}if(m.signal.aborted){URL.revokeObjectURL(y),x.current=null;return}T(y);const Ee=new Date().toISOString().slice(0,16).replace(/:/g,"-"),Se=new File([i],`${Ee}_audio.wav`,{type:i.type});try{const{successfulUploads:Pe,failedUploads:Ae}=await tt({files:[Se],uploadClient:r,widgetMgr:a,widgetInfo:{id:H,formId:C},fragmentId:l,signal:m.signal});if(m.signal.aborted)return;if(Ae.length>0){h(!0);return}h(!1);const ie=Pe[0];ie?.fileUrl?.deleteUrl&&z(ie.fileUrl.deleteUrl)}catch{m.signal.aborted||h(!0)}finally{P(C)&&a.setFormsWithUploadsInProgress(new Set),m.signal.aborted||o(!1)}}catch{m.signal.aborted||(h(!0),o(!1)),P(C)&&a.setFormsWithUploadsInProgress(new Set)}},[r,a,H,C,l,z,T]),B=t.useRef(null),_=_e({containerRef:p,sampleRate:e.sampleRate??void 0,waveformPadding:Me(k.spacing.twoXS),events:{onPermissionDenied:()=>{b(!0)},onError:()=>{h(!0)},onRecordStart:()=>{U(j),w(j)},onRecordReady:()=>{const i=I(B.current?.playback.getDurationMs()??0);U(i),w(i)},onApprove:ye,onCancel:()=>{U(j),w(j)},onProgressMs:i=>{U(I(i))},onPlaybackPause:()=>{w(I(B.current?.playback.getCurrentTimeMs()??0))},onPlaybackFinish:()=>{w(I(B.current?.playback.getDurationMs()??0))}}});B.current=_;const{state:N,isPlaybackPlaying:S,start:q,stop:Y,approve:Q,cancel:G,playback:{play:K,pause:J,load:Z,getCurrentTimeMs:A,getDurationMs:ee}}=_,R=t.useCallback(async({updateWidgetManager:i,deleteFile:m})=>{const y=f;if(y&&x.current===y&&(URL.revokeObjectURL(y),x.current=null),u.current&&(cancelAnimationFrame(u.current),u.current=null),T(null),z(null),w(j),U(j),G(),i&&a.setFileUploaderStateValue(e,{},{fromUi:!0},l),m&&V)try{await r.deleteFile(V)}catch{}P(y)&&URL.revokeObjectURL(y)},[V,f,r,G,e,a,l,U,z,T]);t.useEffect(()=>{const i=()=>{S&&(w(I(A())),u.current=requestAnimationFrame(i))};return S?u.current=requestAnimationFrame(i):u.current&&(cancelAnimationFrame(u.current),u.current=null),()=>{u.current&&(cancelAnimationFrame(u.current),u.current=null)}},[S,A]),t.useEffect(()=>{if(!f)return;let i=!1;return w($),(async()=>{try{if(await Z(f),i)return;const m=ee();m>0&&w(I(m))}catch{i||h(!0)}})(),()=>{i=!0}},[f,$,Z,ee]),t.useEffect(()=>{if(de(C))return;const i=new Ye;return i.manageFormClearListener(a,C,()=>{R({updateWidgetManager:!0,deleteFile:!1})}),()=>i.disconnect()},[C,R,a]),t.useEffect(()=>()=>{E.current&&(E.current.abort(),E.current=null),u.current&&(cancelAnimationFrame(u.current),u.current=null),x.current&&(URL.revokeObjectURL(x.current),x.current=null)},[]);const xe=t.useCallback(async()=>{try{if(S){const i=A();J(),w(I(i))}else N==="idle"&&f&&(A()<=100&&w(j),await K())}catch{h(!0)}},[S,A,J,K,f,N]),te=t.useCallback(async()=>{f&&await R({updateWidgetManager:!1,deleteFile:!0});try{w(j),await q()}catch{}},[R,f,q]),re=t.useCallback(async()=>{try{const{blob:i}=await Y();await Q(i)}catch{h(!0)}},[Q,Y]),ae=et(f,"recording.wav"),Ce=t.useCallback(()=>{te()},[te]),je=t.useCallback(()=>{re()},[re]),ke=t.useCallback(()=>{R({updateWidgetManager:!1,deleteFile:!0}),h(!1)},[R]),ve=t.useCallback(()=>{ae()},[ae]),Re=t.useCallback(()=>{R({updateWidgetManager:!0,deleteFile:!0})},[R]),W=N==="recording",ne=S,Ie=W?$:O,le=N==="idle"&&!c&&!f,Ue=c||le||d;return n.jsxs(rt,{className:"stAudioInput","data-testid":"stAudioInput",children:[n.jsx(Le,{label:e.label,disabled:s,labelVisibility:Ve(e.labelVisibility?.value),children:e.help&&n.jsx(ze,{content:e.help,placement:Te.TOP,label:e.label})}),n.jsxs(ce,{disabled:s,children:[n.jsxs(qe,{isFullScreen:!1,disableFullscreenMode:!0,target:ce,children:[f&&n.jsx(se,{label:"Download as WAV",icon:Je,onClick:ve}),V&&n.jsx(se,{label:"Clear recording",icon:Ze,onClick:Re})]}),n.jsx(ht,{isRecording:W,isPlaying:ne,isUploading:v,isError:d,recordingUrlExists:!!f,startRecording:Ce,stopRecording:je,onClickPlayPause:()=>void xe(),onClear:ke,disabled:s||c}),n.jsxs(at,{children:[d&&n.jsx(bt,{}),le&&n.jsx(jt,{}),c&&n.jsx(xt,{}),n.jsx(nt,{"data-testid":"stAudioInputWaveSurfer",ref:p,show:!Ue})]}),n.jsx(lt,{isPlayingOrRecording:W||ne,disabled:s,"data-testid":"stAudioInputWaveformTimeCode",children:Ie})]})]})},At=t.memo(kt);export{At as default};
@@ -0,0 +1 @@
1
+ import{r as i,H as G,L as N,cG as W,ar as _,k as m,y as $,aP as J,ao as v,aQ as K,ch as O,at as Q}from"./index-nhNM5UeG.js";import{e as X}from"./InputInstructions-UPXPLzmg-Q7bu80af.js";import{S as Y}from"./useBasicWidgetState-BYeS5Lnw-COvJBdtg.js";import{v as Z,a as q,c as ee}from"./useUpdateUiValue-DDoOKBFH-DrpUtoEl.js";import{p as te,r as oe}from"./useTextInputAutoExpand-DEesfW0v-Cv12Lx8Q.js";import{u as re}from"./uniqueId-CWWNkcH4-CJJowNJ2.js";import"./FormClearHelper-XrLdNEJa-DVEjd1cV.js";import"./inputUtils-DCYiajnz-DsrlAoKH.js";import"./base-input-BPl9JMAl-yC1GT4Gd.js";const ie=(t,e)=>{let r="auto";if(t.heightConfig?.useStretch)r="100%";else if(t.heightConfig?.pixelHeight&&t.heightConfig.pixelHeight>0){const l=v(e.labelVisibility?.value)===Q.Collapsed?2:30,s=t.heightConfig.pixelHeight-l;r=`${Math.max(0,s)}px`}return r},le=$("div",{target:"ezh4s2r0"})({name:"kdbhus",styles:"height:100%;display:flex;flex-direction:column"}),y=(t,e)=>t.getStringValue(e)??e.default??null,ae=t=>t.default??null,se=t=>t.value??null,de=(t,e,r,l)=>{e.setStringValue(t,r.value,{fromUi:r.fromUi},l)},ne=({disabled:t,element:e,widgetMgr:r,fragmentId:l,outerElement:s})=>{const b=i.useRef(re("text_area_")).current,{width:H,elementRef:T}=G(),[a,h]=i.useState(!1),[I,x]=i.useState(!1),d=s.heightConfig?.useContent??!1,R=s.heightConfig?.useStretch??!1,F=ie(s,e),C=i.useRef(null),[n,g]=i.useState(()=>y(r,e)??null),E=i.useCallback(()=>{g(e.default??null),h(!0)},[e]),[V,f]=Y({getStateFromWidgetMgr:y,getDefaultStateFromProto:ae,getCurrStateFromProto:se,updateWidgetMgrState:de,element:e,widgetMgr:r,fragmentId:l,onFormCleared:E});Z(V,n,g,a);const o=N(),{height:L,maxHeight:k,updateScrollHeight:S}=te({textareaRef:C,dependencies:[e.placeholder]}),p=i.useCallback(()=>{h(!1),f({value:n,fromUi:!0})},[n,f]),z=i.useCallback(()=>{a&&p(),x(!1)},[a,p]),w=i.useCallback(()=>{x(!0)},[]),j=i.useCallback(()=>{d&&S()},[d,S]),B=q({formId:e.formId,maxChars:e.maxChars,setDirty:h,setUiValue:g,setValueWithSource:f,additionalAction:j}),M=ee(e.formId,p,a,r,l,!0),{placeholder:A,formId:c}=e,D=W({formId:c})?r.allowFormEnterToSubmit(c):a,P=I&&H>_(o.breakpoints.hideWidgetDetails);return m.jsxs(le,{className:"stTextArea","data-testid":"stTextArea",ref:T,children:[m.jsx(J,{label:e.label,disabled:t,labelVisibility:v(e.labelVisibility?.value),htmlFor:b,children:e.help&&m.jsx(K,{content:e.help,label:e.label})}),m.jsx(oe,{inputRef:d?C:void 0,value:n??"",placeholder:A,onBlur:z,onFocus:w,onChange:B,onKeyDown:M,"aria-label":e.label,disabled:t,id:b,overrides:{Input:{style:{fontWeight:o.fontWeights.normal,lineHeight:o.lineHeights.inputWidget,height:d?L:F,maxHeight:d?k:"",minHeight:o.sizes.largestElementHeight,resize:R?"none":"vertical",paddingRight:o.spacing.md,paddingLeft:o.spacing.md,paddingBottom:o.spacing.md,paddingTop:o.spacing.md,"::placeholder":{color:o.colors.fadedText60}}},Root:{props:{"data-testid":"stTextAreaRootElement"},style:({$isFocused:U})=>{const u=O(o.colors,U);return{borderLeftWidth:o.sizes.borderWidth,borderRightWidth:o.sizes.borderWidth,borderTopWidth:o.sizes.borderWidth,borderBottomWidth:o.sizes.borderWidth,borderTopColor:u,borderRightColor:u,borderBottomColor:u,borderLeftColor:u,flexGrow:1}}}}}),P&&m.jsx(X,{dirty:a,value:n??"",maxLength:e.maxChars,type:"multiline",inForm:W({formId:c}),allowEnterToSubmit:D})]})},Ce=i.memo(ne);export{Ce as default};
@@ -0,0 +1 @@
1
+ import{r as i,L as S,k as o,y as f,ae as T,B as v,aL as n,aM as R,aN as z,Z as j,N as L}from"./index-nhNM5UeG.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}}),""),C=f("div",{target:"elibz2u1"})(({theme:e})=>({display:"flex",flexDirection:"row",gap:e.spacing.lg,"> span":{marginTop:e.spacing.twoXS}}),""),k=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 E(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 H(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 I({element:e}){const{body:t,icon:r,duration:d}=e,a=S(),c=H(t),l=t!==c,[s,b]=i.useState(!l),[m,x]=i.useState(0),h=i.useCallback(()=>{b(!s)},[s]),g=i.useMemo(()=>E(a),[a]),p=i.useMemo(()=>o.jsxs(C,{expanded:s,children:[r&&o.jsx(T,{iconValue:r,size:"xl",testid:"stToastDynamicIcon"}),o.jsxs(k,{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=L(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 M=i.memo(I);export{M as default};
@@ -1 +1 @@
1
- import{r as s,u as V,ah as M,a as N,aG as R,j as p,c as j,l as x}from"./index-BvblFOYP.js";const U=j("iframe",{target:"evvcert0"})(({theme:r})=>({colorScheme:"normal",border:"none",padding:r.spacing.none,margin:r.spacing.none,width:"100%",aspectRatio:"16 / 9"}),""),O=x.getLogger("Video"),P={width:"100%"};function $({element:r,endpoints:o,elementMgr:m}){const i=s.useRef(null),{type:h,url:v,startTime:a,subtitles:y,endTime:n,loop:d,autoplay:f,muted:g}=r,l=V(v),c=M(y);let S=N(l);const T=s.useMemo(()=>{if(!r.id)return!0;const e=m.getElementState(r.id,"preventAutoplay");return e||m.setElementState(r.id,"preventAutoplay",!0),e??!1},[r.id,m]),E=s.useMemo(()=>JSON.stringify(c?c.map(e=>o.buildMediaURL(`${e.url}`)):[]),[c,o]);s.useEffect(()=>{const e=JSON.parse(E);e.length!==0&&e.forEach(t=>{o.checkSourceUrlResponse(t,"Video Subtitle")})},[E,o]),s.useEffect(()=>{i.current&&(i.current.currentTime=a)},[a]),s.useEffect(()=>{const e=i.current,t=()=>{e&&(e.currentTime=r.startTime)};return e&&e.addEventListener("loadedmetadata",t),()=>{e&&e.removeEventListener("loadedmetadata",t)}},[r]),s.useEffect(()=>{const e=i.current;if(!e)return;let t=!1;const u=()=>{n>0&&e.currentTime>=n&&(d?(e.currentTime=a||0,e.play()):t||(t=!0,e.pause()))};return n>0&&e.addEventListener("timeupdate",u),()=>{e&&n>0&&e.removeEventListener("timeupdate",u)}},[n,d,a]),s.useEffect(()=>{const e=i.current;if(!e)return;const t=()=>{d&&(e.currentTime=a||0,e.play())};return e.addEventListener("ended",t),()=>{e&&e.removeEventListener("ended",t)}},[d,a]);const b=e=>{const t=new URL(e);if(a&&!isNaN(a)&&t.searchParams.append("start",a.toString()),n&&!isNaN(n)&&t.searchParams.append("end",n.toString()),d){t.searchParams.append("loop","1");const u=t.pathname.split("/").pop();u&&t.searchParams.append("playlist",u)}return f&&t.searchParams.append("autoplay","1"),g&&t.searchParams.append("mute","1"),t.toString()};if(h===R.Type.YOUTUBE_IFRAME)return p.jsx(U,{className:"stVideo","data-testid":"stVideo",title:l,src:b(l),allow:"autoplay; encrypted-media",allowFullScreen:!0});const L=e=>{const t=e.currentTarget.src;O.error(`Client Error: Video source error - ${t}`),o.sendClientErrorToHost("Video","Video source failed to load","onerror triggered",t)};return p.jsx("video",{className:"stVideo","data-testid":"stVideo",ref:i,controls:!0,muted:g,autoPlay:f&&!T,src:o.buildMediaURL(l),style:P,crossOrigin:S,onError:L,children:c?.map((e,t)=>p.jsx("track",{kind:"captions",src:o.buildMediaURL(`${e.url}`),label:`${e.label}`,default:t===0,"data-testid":"stVideoSubtitle"},t))})}const A=s.memo($);export{A as default};
1
+ import{r as s,U as L,a7 as M,V as N,aO as R,k as p,y as U,E as x}from"./index-nhNM5UeG.js";const O=U("iframe",{target:"evvcert0"})(({theme:r})=>({colorScheme:"normal",border:"none",padding:r.spacing.none,margin:r.spacing.none,width:"100%",aspectRatio:"16 / 9"}),""),j=x.getLogger("Video"),P={width:"100%"};function $({element:r,endpoints:o,elementMgr:m}){const i=s.useRef(null),{type:y,url:v,startTime:a,subtitles:S,endTime:n,loop:d,autoplay:f,muted:E}=r,l=L(v),c=M(S);let h=N(l);const T=s.useMemo(()=>{if(!r.id)return!0;const e=m.getElementState(r.id,"preventAutoplay");return e||m.setElementState(r.id,"preventAutoplay",!0),e??!1},[r.id,m]),g=s.useMemo(()=>JSON.stringify(c?c.map(e=>o.buildMediaURL(`${e.url}`)):[]),[c,o]);s.useEffect(()=>{const e=JSON.parse(g);e.length!==0&&e.forEach(t=>{o.checkSourceUrlResponse(t,"Video Subtitle")})},[g,o]),s.useEffect(()=>{i.current&&(i.current.currentTime=a)},[a]),s.useEffect(()=>{const e=i.current,t=()=>{e&&(e.currentTime=r.startTime)};return e&&e.addEventListener("loadedmetadata",t),()=>{e&&e.removeEventListener("loadedmetadata",t)}},[r]),s.useEffect(()=>{const e=i.current;if(!e)return;let t=!1;const u=()=>{n>0&&e.currentTime>=n&&(d?(e.currentTime=a||0,e.play()):t||(t=!0,e.pause()))};return n>0&&e.addEventListener("timeupdate",u),()=>{e&&n>0&&e.removeEventListener("timeupdate",u)}},[n,d,a]),s.useEffect(()=>{const e=i.current;if(!e)return;const t=()=>{d&&(e.currentTime=a||0,e.play())};return e.addEventListener("ended",t),()=>{e&&e.removeEventListener("ended",t)}},[d,a]);const b=e=>{const t=new URL(e);if(a&&!isNaN(a)&&t.searchParams.append("start",a.toString()),n&&!isNaN(n)&&t.searchParams.append("end",n.toString()),d){t.searchParams.append("loop","1");const u=t.pathname.split("/").pop();u&&t.searchParams.append("playlist",u)}return f&&t.searchParams.append("autoplay","1"),E&&t.searchParams.append("mute","1"),t.toString()};if(y===R.Type.YOUTUBE_IFRAME)return p.jsx(O,{className:"stVideo","data-testid":"stVideo",title:l,src:b(l),allow:"autoplay; encrypted-media",allowFullScreen:!0});const V=e=>{const t=e.currentTarget.src;j.error(`Client Error: Video source error - ${t}`),o.sendClientErrorToHost("Video","Video source failed to load","onerror triggered",t)};return p.jsx("video",{className:"stVideo","data-testid":"stVideo",ref:i,controls:!0,muted:E,autoPlay:f&&!T,src:o.buildMediaURL(l),style:P,crossOrigin:h,onError:V,children:c?.map((e,t)=>p.jsx("track",{kind:"captions",src:o.buildMediaURL(`${e.url}`),label:`${e.label}`,default:t===0,"data-testid":"stVideoSubtitle"},t))})}const k=s.memo($);export{k as default};
@@ -0,0 +1 @@
1
+ import{r as a,H as Se,aJ as G,O as je,j as F,aR as ve,k as l,y as g,aP as ze,ao as Ce,aQ as Ie,aT as Ue,aS as Fe,ar as Ee,aU as k,ak as Me,ag as R,bk as ke,aq as I,F as E,_ as M}from"./index-nhNM5UeG.js";import{m as Re}from"./FormClearHelper-XrLdNEJa-DVEjd1cV.js";import{S as Be,T as De,b as Le,I as Ve,v as ee,E as B,a as Ae}from"./FileHelper-CfZ5yPb2-CNHTcjh9.js";import{J as Ne,U as Te}from"./ProgressBar-E3DTwBEC-BjaNqN1B.js";import{t as $}from"./UploadFileInfo-DdcsXhjv-m2CBXl3F.js";const He=e=>{const t=a.useRef();return a.useEffect(()=>{t.current=e},[e]),t.current};var te=a.forwardRef(function(e,t){var s={fill:"currentColor",xmlns:"http://www.w3.org/2000/svg"};return a.createElement(E,M({iconAttrs:s,iconVerticalAlign:"middle",iconViewBox:"0 0 24 24"},e,{ref:t}),a.createElement("path",{fill:"none",d:"M0 0h24v24H0V0z"}),a.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=a.forwardRef(function(e,t){var s={fill:"currentColor",xmlns:"http://www.w3.org/2000/svg"};return a.createElement(E,M({iconAttrs:s,iconVerticalAlign:"middle",iconViewBox:"0 0 24 24"},e,{ref:t}),a.createElement("path",{fill:"none",d:"M0 0h24v24H0V0z"}),a.createElement("path",{d:"M10 6L8.59 7.41 13.17 12l-4.58 4.59L10 18l6-6-6-6z"}))});ae.displayName="ChevronRight";var se=a.forwardRef(function(e,t){var s={fill:"currentColor",xmlns:"http://www.w3.org/2000/svg"};return a.createElement(E,M({iconAttrs:s,iconVerticalAlign:"middle",iconViewBox:"0 0 24 24"},e,{ref:t}),a.createElement("path",{fill:"none",d:"M0 0h24v24H0V0z"}),a.createElement("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 12 19 6.41z"}))});se.displayName="Clear";var le=a.forwardRef(function(e,t){var s={fill:"currentColor",xmlns:"http://www.w3.org/2000/svg"};return a.createElement(E,M({iconAttrs:s,iconVerticalAlign:"middle",iconViewBox:"0 0 24 24"},e,{ref:t}),a.createElement("path",{fill:"none",d:"M0 0h24v24H0V0z"}),a.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"}))});le.displayName="CloudUpload";var ie=a.forwardRef(function(e,t){var s={fill:"currentColor",xmlns:"http://www.w3.org/2000/svg"};return a.createElement(E,M({iconAttrs:s,iconVerticalAlign:"middle",iconViewBox:"0 0 24 24"},e,{ref:t}),a.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"}))});ie.displayName="Error";const re=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"}),""),$e=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}),""),oe=g("span",{target:"e1b2p2ww14"})(({theme:e,disabled:t})=>({color:t?e.colors.fadedText40:e.colors.bodyText}),""),Pe=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%"}),""),Xe=g("div",{target:"e1b2p2ww12"})({name:"1s8jot1",styles:"display:flex;flex-direction:column;min-width:0;max-width:100%"}),Oe=g("span",{target:"e1b2p2ww11"})({name:"1bmnxg7",styles:"white-space:nowrap"}),de=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}),""),qe=g("ul",{target:"e1b2p2ww9"})(({theme:e})=>({listStyleType:"none",margin:e.spacing.none,padding:e.spacing.none}),""),ce=g("li",{target:"e1b2p2ww8"})(({theme:e})=>({margin:e.spacing.none,padding:e.spacing.none}),""),pe=g("div",{target:"e1b2p2ww7"})(({theme:e})=>({display:"flex",alignItems:"baseline",flex:1,paddingLeft:e.spacing.lg,overflow:"hidden"}),""),ge=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}),""),me=g("div",{target:"e1b2p2ww5"})(({theme:e})=>({display:"flex",alignItems:"center",marginBottom:e.spacing.twoXS}),""),_e=g("span",{target:"e1b2p2ww4"})(({theme:e})=>({marginRight:e.spacing.twoXS}),""),Je=g("div",{target:"e1b2p2ww3"})(({theme:e,disabled:t})=>({display:"flex",padding:e.spacing.twoXS,color:t?e.colors.fadedText40:e.colors.darkenedBgMix100}),""),ue=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"}),""),fe=g("span",{target:"e1b2p2ww1"})({name:"0",styles:""}),Ye=e=>({[re]:{display:"flex",flexDirection:"column",alignItems:"flex-start",height:"auto",gap:e.spacing.sm},[ne]:{display:"none"},[oe]:{marginBottom:e.spacing.twoXS},[de]:{paddingRight:e.spacing.lg},[me]:{maxWidth:"inherit",flex:1,alignItems:"flex-start",marginBottom:e.spacing.sm},[ge]:{width:e.sizes.full},[pe]:{flexDirection:"column"},[ue]:{height:"auto",whiteSpace:"initial"},[fe]:{display:"none"},[ce]:{margin:e.spacing.none,padding:e.spacing.none}}),Ke=g("div",{target:"e1b2p2ww0"})(({theme:e,width:t})=>{if(t<Ee("23rem"))return Ye(e)},""),Qe=({multiple:e,acceptedExtensions:t,maxSizeBytes:s,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(s,B.Byte,0)} per file`;return l.jsxs($e,{"data-testid":"stFileUploaderDropzoneInstructions",children:[l.jsx(ne,{children:l.jsx(I,{content:le,size:"threeXL"})}),l.jsxs(Xe,{children:[l.jsxs(oe,{disabled:d,children:["Drag and drop ",c()," here"]}),l.jsxs(Pe,{disabled:d,children:[u(),p()]})]})]})},Ze=a.memo(Qe),Ge=({onDrop:e,multiple:t,acceptedExtensions:s,maxSizeBytes:o,disabled:d,label:c,acceptDirectory:p=!1})=>l.jsx(Le,{onDrop:e,multiple:t,accept:Ve(s),maxSize:o,disabled:d,useFsAccessApi:!1,children:({getRootProps:u,getInputProps:j})=>{const w=j({multiple:t||!!p});return l.jsxs(re,{...u(),"data-testid":"stFileUploaderDropzone",isDisabled:d,"aria-label":c,"aria-disabled":d,children:[l.jsx("input",{"data-testid":"stFileUploaderDropzoneInput",...w,...p&&{webkitdirectory:""}}),l.jsx(Ze,{multiple:t,acceptedExtensions:s,maxSizeBytes:o,acceptDirectory:p,disabled:d}),l.jsx(Oe,{children:l.jsx(k,{kind:R.SECONDARY,disabled:d,size:Me.SMALL,children:p?"Browse directories":"Browse files"})})]})}}),We=a.memo(Ge),he=g("small",{target:"e1bju1570"})(({kind:e,disabled:t,theme:s})=>{const{redTextColor:o,fadedText60:d,fadedText40:c}=s.colors;let p=d;return t&&(p=c),e==="danger"&&(p=o),{color:p,fontSize:s.fontSizes.sm,lineHeight:s.lineHeights.tight}},""),et=({fileInfo:e,disabled:t})=>e.status.type==="uploading"?l.jsx(Ne,{value:e.status.progress,size:Te.SMALL}):e.status.type==="error"?l.jsxs(ue,{children:[l.jsx(_e,{"data-testid":"stFileUploaderFileErrorMessage",children:e.status.errorMessage}),l.jsx(fe,{children:l.jsx(I,{content:ie,size:"lg"})})]}):e.status.type==="uploaded"?l.jsx(he,{disabled:t,children:ee(e.size,B.Byte)}):null,tt=({fileInfo:e,onDelete:t,disabled:s})=>l.jsxs(me,{className:"stFileUploaderFile","data-testid":"stFileUploaderFile",children:[l.jsx(Je,{disabled:s,children:l.jsx(I,{content:Ae,size:"twoXL"})}),l.jsxs(pe,{className:"stFileUploaderFileData",children:[l.jsx(ge,{className:"stFileUploaderFileName","data-testid":"stFileUploaderFileName",title:e.name,disabled:s,children:e.name}),l.jsx(et,{fileInfo:e,disabled:s})]}),l.jsx("div",{"data-testid":"stFileUploaderDeleteBtn",children:l.jsx(k,{onClick:()=>t(e.id),kind:R.MINIMAL,disabled:s,"aria-label":`Remove ${e.name}`,children:l.jsx(I,{content:se,size:"lg"})})})]}),at=a.memo(tt),st=g("div",{target:"e1nlpozb1"})(({theme:e})=>({display:"flex",alignItems:"center",justifyContent:"space-between",paddingBottom:e.spacing.twoXS,marginBottom:e.spacing.twoXS}),""),lt=g("div",{target:"e1nlpozb0"})(({theme:e})=>({display:"flex",alignItems:"center",justifyContent:"center",color:e.colors.fadedText40}),""),it=({currentPage:e,totalPages:t,onNext:s,onPrevious:o})=>l.jsxs(st,{"data-testid":"stFileUploaderPagination",children:[l.jsx(he,{children:`Showing page ${e} of ${t}`}),l.jsxs(lt,{children:[l.jsx(k,{onClick:o,kind:R.MINIMAL,children:l.jsx(I,{content:te,size:"xl"})}),l.jsx(k,{onClick:s,kind:R.MINIMAL,children:l.jsx(I,{content:ae,size:"xl"})})]})]}),rt=a.memo(it),W=(e,t)=>Math.ceil(e.length/t),nt=e=>ke(({pageSize:t,items:s,resetOnAdd:o,...d})=>{const[c,p]=a.useState(0),[u,j]=a.useState(()=>W(s,t)),w=He(s);a.useEffect(()=>{w&&w.length!==s.length&&j(W(s,t)),w&&w.length<s.length?o&&p(0):c+1>=u&&p(u-1)},[s,c,t,w,o,u]);const b=()=>{p(Math.min(c+1,u-1))},D=()=>{p(Math.max(0,c-1))},v=s.slice(c*t,c*t+t);return l.jsxs(l.Fragment,{children:[l.jsx(e,{items:v,...d}),s.length>t?l.jsx(rt,{pageSize:t,totalPages:u,currentPage:c+1,onNext:b,onPrevious:D}):null]})},e),ot=({items:e,onDelete:t,disabled:s})=>l.jsx(qe,{children:e.map(o=>l.jsx(ce,{children:l.jsx(at,{fileInfo:o,onDelete:t,disabled:s})},o.id))}),dt=nt(ot),ct=e=>l.jsx(de,{children:l.jsx(dt,{...e})}),pt=a.memo(ct),gt=(e,t)=>{const s=t.getFileUploaderStateValue(e);if(F(s))return{files:[],nextLocalId:1};const{uploadedFileInfo:o}=s;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,u,d,{type:"uploaded",fileId:j,fileUrls:w});return d+=1,b}),nextLocalId:d}},H=e=>{const t=e.filter(s=>s.status.type==="uploaded").map(s=>{const{name:o,size:d,status:c}=s,{fileId:p,fileUrls:u}=c;return new Ue({fileId:p,fileUrls:u,name:o,size:d})});return new Fe({uploadedFileInfo:t})},mt=({disabled:e,element:t,widgetMgr:s,uploadClient:o,fragmentId:d})=>{const{width:c,elementRef:p}=Se(),{files:u,nextLocalId:j}=a.useMemo(()=>gt(t,s),[t,s]),w=a.useRef(j),[b,D]=a.useState(()=>u),v=a.useRef(b);a.useEffect(()=>{v.current=b},[b]);const[xe,P]=a.useState(!1),U=a.useCallback(()=>{const i=w.current;return w.current+=1,i},[]),L=a.useMemo(()=>{const i=t.maxUploadSizeMb;return Be(i,B.Megabyte,B.Byte)},[t.maxUploadSizeMb]),S=a.useCallback(i=>{G.flushSync(()=>{D(r=>{const n=typeof i=="function"?i(r):i;return v.current=n,n})})},[]),V=a.useCallback(i=>{G.flushSync(()=>{P(i)})},[P]),X=a.useCallback(i=>{S(r=>[...r,i])},[S]),A=a.useCallback(i=>{i.length!==0&&S(r=>[...r,...i])},[S]),O=a.useCallback(i=>{S(r=>r.filter(n=>n.id!==i))},[S]),z=a.useCallback((i,r)=>{S(n=>n.map(m=>m.id===i?r:m))},[S]),C=a.useCallback(i=>v.current.find(r=>r.id===i),[]),q=b.some(i=>i.status.type==="uploading")||xe?"updating":"ready";a.useEffect(()=>{s.getFileUploaderStateValue(t)===void 0&&s.setFileUploaderStateValue(t,H(v.current),{fromUi:!1},d)},[s,t,d]),a.useEffect(()=>{if(q!=="ready")return;const i=H(b),r=s.getFileUploaderStateValue(t);je(i,r)||s.setFileUploaderStateValue(t,i,{fromUi:!0},d)},[q,b,s,t,d]);const we=a.useCallback(()=>{S(()=>[]);const i=H([]);s.setFileUploaderStateValue(t,i,{fromUi:!0},d)},[t,d,S,s]);Re({element:t,widgetMgr:s,onFormCleared:we});const _=a.useCallback(i=>{const r=t.type;if(!r||r.length===0)return!0;const n=i.name.toLowerCase();return r.some(m=>n.endsWith(m.toLowerCase()))},[t.type]),J=a.useCallback(i=>{const r=[],n=[];return i.forEach(m=>{_(m)?r.push(m):n.push({file:m,errors:[{code:"file-invalid-type",message:`${m.type} files are not allowed.`}]})}),{accepted:r,rejected:n}},[_]),Y=a.useCallback((i,r)=>{const n=C(i);F(n)||n.status.type!=="uploading"||z(n.id,n.setStatus({type:"uploaded",fileId:r.fileId,fileUrls:r}))},[C,z]),K=a.useCallback((i,r)=>{const n=C(r);if(F(n)||n.status.type!=="uploading")return;const m=Math.round(i.loaded*100/i.total);n.status.progress!==m&&z(r,n.setStatus({type:"uploading",abortController:n.status.abortController,progress:m}))},[C,z]),Q=a.useCallback((i,r)=>{const n=new AbortController,m=r.webkitRelativePath||r.name,f=new $(m,r.size,U(),{type:"uploading",abortController:n,progress:1});X(f),o.uploadFile(t,i.uploadUrl,r,h=>K(h,f.id),n.signal).then(()=>Y(f.id,i)).catch(h=>{h instanceof DOMException&&h.name==="AbortError"||z(f.id,f.setStatus({type:"error",errorMessage:h?h.toString():"Unknown error"}))})},[X,t,U,Y,K,z,o]),N=a.useCallback(i=>{if(e)return;const r=C(i);F(r)||(r.status.type==="uploading"&&r.status.abortController.abort(),r.status.type==="uploaded"&&r.status.fileUrls.deleteUrl&&o.deleteFile(r.status.fileUrls.deleteUrl),O(i))},[e,C,O,o]),be=a.useCallback((i,r)=>{const{multipleFiles:n}=t,m=!!t.acceptDirectory;let f=[...i],h=[...r];if(m&&f.length>0){const{accepted:y,rejected:x}=J(f);f=y,h=[...h,...x]}if(!n&&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(!n&&f.length>0){const x=v.current.find(T=>T.status.type!=="error");if(x){V(!0);try{N(x.id)}finally{V(!1)}}}ve(y,f).forEach(([x,T])=>{Q(x,T)})}).catch(y=>{A(f.map(x=>new $(x.name,x.size,U(),{type:"error",errorMessage:y})))}),h.length>0){const y=h.map(x=>De(x,U(),L));A(y)}},[A,N,t,J,L,U,o,Q,V]),Z=a.useMemo(()=>b.slice().reverse(),[b]),ye=t.type;return l.jsxs(Ke,{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(Ie,{content:t.help,label:t.label})}),l.jsx(We,{onDrop:be,multiple:t.multipleFiles,acceptedExtensions:ye,maxSizeBytes:L,label:t.label,disabled:e,acceptDirectory:!!t.acceptDirectory}),Z.length>0&&l.jsx(pt,{items:Z,pageSize:3,onDelete:N,resetOnAdd:!0,disabled:e})]})},bt=a.memo(mt);export{bt as default};
@@ -0,0 +1,2 @@
1
+ import{r,L as h,a8 as x,a9 as C,k as s,aa as T,Z as y,y as f,ab as S,ac as k,ad as v,ae as R,af as j}from"./index-nhNM5UeG.js";import{i as E}from"./index-CVld_lKx-CBWAU0gM.js";import{D as w}from"./main-DD_nsVBV-B-nG1zNN.js";const B=f("div",{target:"e1xfr5s3"})(({theme:e})=>({overflowY:"auto",position:"relative",".react-json-view .copy-icon svg":{fontSize:"1em !important",marginRight:`${e.spacing.threeXS} !important`,verticalAlign:"middle !important"}}),""),L=f("div",{target:"e1xfr5s2"})(({theme:e})=>({display:"flex",alignItems:"center",gap:e.spacing.sm,padding:e.spacing.sm,paddingLeft:e.spacing.md,fontFamily:e.genericFonts.codeFont,fontSize:e.fontSizes.twoSm,color:e.colors.bodyText,maxWidth:"90vw",wordBreak:"break-all"}),""),$=f("button",{target:"e1xfr5s1"})(({theme:e})=>({display:"flex",alignItems:"center",justifyContent:"center",padding:e.spacing.threeXS,backgroundColor:"transparent",border:"none",borderRadius:e.radii.md,cursor:"pointer",color:e.colors.fadedText60,transition:"color 0.15s ease, background-color 0.15s ease","&:hover":{backgroundColor:e.colors.darkenedBgMix15,color:e.colors.bodyText},"&:active":{backgroundColor:e.colors.darkenedBgMix25},"&:focus":{outline:"none"},"&:focus-visible":{boxShadow:j(e)}}),""),I=f("div",{target:"e1xfr5s0"})(({top:e,left:o})=>({position:"fixed",top:e,left:o}),"");function z({top:e,left:o,path:t,clearTooltip:l}){const[c,n]=r.useState(!0),i=h(),{colors:d,radii:a}=i,{isCopied:p,copyToClipboard:u,label:m}=x(),g=r.useCallback(()=>{n(!1),l()},[l]),b=r.useCallback(()=>{u(t)},[u,t]);return s.jsx(S,{content:s.jsxs(L,{"data-testid":"stJsonPathTooltip",children:[s.jsx("code",{children:t}),s.jsx($,{onClick:b,title:m,"aria-label":m,autoFocus:!0,children:s.jsx(R,{size:"sm",iconValue:p?":material/check:":":material/content_copy:"})})]}),placement:v.top,accessibilityType:k.tooltip,showArrow:!1,popoverMargin:15,onClickOutside:g,onEsc:g,overrides:{Body:{style:{borderTopLeftRadius:a.default,borderTopRightRadius:a.default,borderBottomLeftRadius:a.default,borderBottomRightRadius:a.default,paddingTop:"0 !important",paddingBottom:"0 !important",paddingLeft:"0 !important",paddingRight:"0 !important",backgroundColor:"transparent"}},Inner:{style:{backgroundColor:y(i)?d.bgColor:d.secondaryBg,color:d.bodyText,borderTopLeftRadius:a.default,borderTopRightRadius:a.default,borderBottomLeftRadius:a.default,borderBottomRightRadius:a.default,paddingTop:"0 !important",paddingBottom:"0 !important",paddingLeft:"0 !important",paddingRight:"0 !important"}}},isOpen:c,children:s.jsx(I,{"data-testid":"stJsonPathTooltipTarget",top:e,left:o})})}const F=r.memo(z);function J(e){return e.length===0?"$":e.reduce((o,t,l)=>{if(t===null)return o;if(/^\d+$/.test(t))return`${o}[${t}]`;if(t===""||/[^a-zA-Z0-9_$]/.test(t)||/^\d/.test(t)){const c=t.replace(/\\/g,"\\\\").replace(/"/g,'\\"');return`${o}["${c}"]`}return l===0||o===""?t:`${o}.${t}`},"")}function P(){const[e,o]=r.useState(null),t=r.useRef({x:0,y:0});r.useEffect(()=>{const n=i=>{t.current={x:i.clientX,y:i.clientY}};return document.addEventListener("mousedown",n),()=>document.removeEventListener("mousedown",n)},[]);const l=r.useCallback(n=>{const{x:i,y:d}=t.current,a=[...n.namespace,n.name],p=J(a);o({path:p,x:i,y:d})},[]),c=r.useCallback(()=>{o(null)},[]);return{tooltip:e,handleSelect:l,clearTooltip:c}}function A({element:e}){const o=h(),{tooltip:t,handleSelect:l,clearTooltip:c}=P(),{copyToClipboard:n}=x(),i=r.useCallback(p=>{n(JSON.stringify(p.src))},[n]);let d;try{d=JSON.parse(e.body)}catch(p){const u=C(p);try{d=E.parse(e.body)}catch{const m=parseInt(u.message.replace(/[^0-9]/g,""),10);return u.message+=`
2
+ ${e.body.substring(0,m+1)} ← here`,s.jsx(T,{name:"Json Parse Error",message:u.message})}}const a=y(o)?"rjv-default":"monokai";return s.jsxs(B,{className:"stJson","data-testid":"stJson",children:[s.jsx(w,{src:d,collapsed:e.maxExpandDepth??!e.expanded,displayDataTypes:!1,displayObjectSize:!1,name:!1,theme:a,enableClipboard:i,onSelect:l,style:{fontFamily:o.genericFonts.codeFont,fontSize:o.fontSizes.codeFontSize,fontWeight:o.fontWeights.code,backgroundColor:o.colors.bgColor,whiteSpace:"pre-wrap"}}),t&&s.jsx(F,{top:t.y,left:t.x,path:t.path,clearTooltip:c})]})}const Z=r.memo(A);export{Z as default};