streamlit-nightly 1.53.2.dev20260125__py3-none-any.whl → 1.53.2.dev20260128__py3-none-any.whl

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 (125) hide show
  1. streamlit/commands/logo.py +81 -25
  2. streamlit/config.py +11 -0
  3. streamlit/deprecation_util.py +19 -1
  4. streamlit/elements/arrow.py +2 -1
  5. streamlit/elements/lib/built_in_chart_utils.py +2 -2
  6. streamlit/elements/lib/options_selector_utils.py +72 -22
  7. streamlit/elements/widgets/select_slider.py +123 -37
  8. streamlit/hello/plotting_demo.py +19 -12
  9. streamlit/proto/Logo_pb2.py +5 -3
  10. streamlit/proto/Logo_pb2.pyi +25 -1
  11. streamlit/proto/NewSession_pb2.py +24 -22
  12. streamlit/proto/NewSession_pb2.pyi +23 -1
  13. streamlit/proto/Slider_pb2.py +6 -6
  14. streamlit/proto/Slider_pb2.pyi +9 -1
  15. streamlit/runtime/app_session.py +19 -0
  16. streamlit/runtime/scriptrunner/script_runner.py +17 -0
  17. streamlit/runtime/scriptrunner_utils/script_run_context.py +13 -10
  18. streamlit/runtime/state/__init__.py +7 -1
  19. streamlit/runtime/state/common.py +13 -0
  20. streamlit/runtime/state/query_params.py +494 -6
  21. streamlit/runtime/state/session_state.py +178 -3
  22. streamlit/runtime/state/widgets.py +26 -1
  23. streamlit/static/index.html +1 -1
  24. streamlit/static/manifest.json +299 -299
  25. streamlit/static/static/js/{ErrorOutline.esm.CIFYUdwC.js → ErrorOutline.esm.D71F8ziR.js} +1 -1
  26. streamlit/static/static/js/{FileDownload.esm.DWVTnTHm.js → FileDownload.esm.yTkppsJy.js} +1 -1
  27. streamlit/static/static/js/{FileHelper.BPYQIPd1.js → FileHelper.hUOqtbwa.js} +1 -1
  28. streamlit/static/static/js/{FormClearHelper.CypmvhYZ.js → FormClearHelper.DN8D_YXO.js} +1 -1
  29. streamlit/static/static/js/{InputInstructions.Bi62hDTQ.js → InputInstructions.DbssY6d4.js} +1 -1
  30. streamlit/static/static/js/{Particles.yebG0VuV.js → Particles.BznyVdfo.js} +1 -1
  31. streamlit/static/static/js/{ProgressBar.Dy9CI6w4.js → ProgressBar.C5uBOtcx.js} +1 -1
  32. streamlit/static/static/js/{StreamlitSyntaxHighlighter.Btk92CPv.js → StreamlitSyntaxHighlighter.Nf1895x-.js} +1 -1
  33. streamlit/static/static/js/{TableChart.esm.DBeVaFNt.js → TableChart.esm.DHKzVs3a.js} +1 -1
  34. streamlit/static/static/js/{Toolbar.DC2Tp-qb.js → Toolbar.CQsWYXer.js} +1 -1
  35. streamlit/static/static/js/{WidgetLabelHelpIconInline.3DnEd9BK.js → WidgetLabelHelpIconInline.6xCU76OE.js} +1 -1
  36. streamlit/static/static/js/{base-input.7Sj6pVk0.js → base-input.Cs-E6S71.js} +1 -1
  37. streamlit/static/static/js/{checkbox.CcUx3XuQ.js → checkbox.OTGupu18.js} +1 -1
  38. streamlit/static/static/js/{createDownloadLinkElement.DZuwkCqy.js → createDownloadLinkElement.DnBEQQbK.js} +1 -1
  39. streamlit/static/static/js/{data-grid-overlay-editor.Dw-AewlN.js → data-grid-overlay-editor.COiiMi5r.js} +1 -1
  40. streamlit/static/static/js/{downloader.Bsx5M2Du.js → downloader.K0GUNeuj.js} +1 -1
  41. streamlit/static/static/js/embed.o8HvK3mH.js +193 -0
  42. streamlit/static/static/js/{es6.BpAqZaR_.js → es6.BHy5pqTP.js} +2 -2
  43. streamlit/static/static/js/{formatNumber.DjehVPVS.js → formatNumber.BK7h0k2z.js} +1 -1
  44. streamlit/static/static/js/{iconPosition.D02OPE-d.js → iconPosition.2YynQUxu.js} +1 -1
  45. streamlit/static/static/js/{iframeResizer.contentWindow.xtstqPd7.js → iframeResizer.contentWindow.D5h3hQuU.js} +1 -1
  46. streamlit/static/static/js/{index.5H98WqjT.js → index.5zqfJ-in.js} +1 -1
  47. streamlit/static/static/js/{index.B5tD5YeV.js → index.6c-qDsD7.js} +1 -1
  48. streamlit/static/static/js/{index.CA0RmxJF.js → index.8MlRyIxN.js} +1 -1
  49. streamlit/static/static/js/{index.DSSapl3Q.js → index.BIqcOZ_u.js} +1 -1
  50. streamlit/static/static/js/{index.DJjSqPAx.js → index.BPdmXoYW.js} +1 -1
  51. streamlit/static/static/js/{index.iXzAofuY.js → index.BZ-GJVxB.js} +2 -2
  52. streamlit/static/static/js/{index.CKUBdVQ9.js → index.BfMPq234.js} +1 -1
  53. streamlit/static/static/js/{index.B8-HOwf1.js → index.Bfo1cXfC.js} +1 -1
  54. streamlit/static/static/js/{index.-faJDV20.js → index.Bgf49D1Z.js} +1 -1
  55. streamlit/static/static/js/{index.CgARjn28.js → index.Bqmx23jK.js} +1 -1
  56. streamlit/static/static/js/{index.D6Z9hKJY.js → index.BtRWcqZV.js} +1 -1
  57. streamlit/static/static/js/{index.ZIA43eTF.js → index.BtuskCwg.js} +1 -1
  58. streamlit/static/static/js/{index.BV6XgCij.js → index.BzTVI_BY.js} +1 -1
  59. streamlit/static/static/js/{index.DDu_qTm0.js → index.C2EoeVjP.js} +1 -1
  60. streamlit/static/static/js/{index.8FPw0_gD.js → index.C65jHNhe.js} +1 -1
  61. streamlit/static/static/js/{index.D6J2UPzF.js → index.C6wyTXhz.js} +1 -1
  62. streamlit/static/static/js/{index.CGbvkEtg.js → index.C7wst9Tm.js} +1 -1
  63. streamlit/static/static/js/{index.BIcJe97b.js → index.COh5V_89.js} +1 -1
  64. streamlit/static/static/js/index.CSPY26T2.js +1 -0
  65. streamlit/static/static/js/{index.CEwnDCn9.js → index.CUkhn-vu.js} +1 -1
  66. streamlit/static/static/js/{index.DO2T-QzF.js → index.CX0KdFyR.js} +1 -1
  67. streamlit/static/static/js/{index.BDlI2pRp.js → index.CYhhEdja.js} +1 -1
  68. streamlit/static/static/js/{index.DgLRJfs3.js → index.CZf7Go1Z.js} +1 -1
  69. streamlit/static/static/js/{index.DZv5AoR1.js → index.Cb03y5I8.js} +1 -1
  70. streamlit/static/static/js/{index.BVhVdVeE.js → index.CdsyTabv.js} +1 -1
  71. streamlit/static/static/js/{index.JL0uGAeJ.js → index.CgVv04GM.js} +1 -1
  72. streamlit/static/static/js/index.CjRU8O1O.js +2 -0
  73. streamlit/static/static/js/{index.BqfJJr3c.js → index.CwtpGPHA.js} +1 -1
  74. streamlit/static/static/js/{index.iF5zYERg.js → index.CxWzt6oi.js} +1 -1
  75. streamlit/static/static/js/{index.m3dn5Bai.js → index.DBPWUJsj.js} +5 -5
  76. streamlit/static/static/js/{index.D9RL5sRp.js → index.DJfMW0Gy.js} +1 -1
  77. streamlit/static/static/js/{index.BOkpEbJS.js → index.DLUSo6de.js} +1 -1
  78. streamlit/static/static/js/{index.S-mjkUeF.js → index.DL_yE83J.js} +1 -1
  79. streamlit/static/static/js/{index.BK9S5qug.js → index.DVRCyxMp.js} +1 -1
  80. streamlit/static/static/js/{index.D_TIyPF4.js → index.Dc5-tFdw.js} +1 -1
  81. streamlit/static/static/js/index.DcngUOyD.js +2 -0
  82. streamlit/static/static/js/{index.B9gbSNsw.js → index.Dh3PJIlq.js} +1 -1
  83. streamlit/static/static/js/{index.BvZbnSMC.js → index.DlgcEr0f.js} +1 -1
  84. streamlit/static/static/js/{index.Bo1ztye0.js → index.DxGXuhh6.js} +1 -1
  85. streamlit/static/static/js/{index.x1B588Xu.js → index.DxfYCrPp.js} +1 -1
  86. streamlit/static/static/js/{index.CyDHwK5P.js → index.HmRK3HyC.js} +1 -1
  87. streamlit/static/static/js/{index.DdxofXV8.js → index.TjMWsKSH.js} +3 -3
  88. streamlit/static/static/js/{index.Bri1T2TS.js → index.VwDKazgt.js} +1 -1
  89. streamlit/static/static/js/{index.BB_iwaVr.js → index.aCorc3Yt.js} +34 -34
  90. streamlit/static/static/js/{index.CdRwiHPm.js → index.cfuZ69LI.js} +1 -1
  91. streamlit/static/static/js/{index.C9v49R-a.js → index.hlAfdSqC.js} +1 -1
  92. streamlit/static/static/js/{index.BGTMh3Uu.js → index.iUV9rb8C.js} +1 -1
  93. streamlit/static/static/js/{index.XFMDBL5n.js → index.q0ceUXt6.js} +1 -1
  94. streamlit/static/static/js/{input.VYKyGuhi.js → input.CXGIJ7D6.js} +1 -1
  95. streamlit/static/static/js/{main.u5Bb3MY7.js → main.CCVkbuxC.js} +1 -1
  96. streamlit/static/static/js/{memory.BOMt4yAV.js → memory.CNbnYs2A.js} +1 -1
  97. streamlit/static/static/js/{number-overlay-editor.CihlAHgl.js → number-overlay-editor.CvI6wkld.js} +1 -1
  98. streamlit/static/static/js/{pandasStylerUtils.BuqSgXpk.js → pandasStylerUtils.CFSReOTm.js} +1 -1
  99. streamlit/static/static/js/{sandbox.COGR4pqz.js → sandbox.Bld0L3us.js} +1 -1
  100. streamlit/static/static/js/{styled-components.BEf3c4IJ.js → styled-components.BoUHK6TA.js} +1 -1
  101. streamlit/static/static/js/{throttle.Bl-XsA9N.js → throttle.ByDFm7WV.js} +1 -1
  102. streamlit/static/static/js/{timepicker.B-HgBYlK.js → timepicker.CN6CUZEL.js} +1 -1
  103. streamlit/static/static/js/{toConsumableArray.BrQebwtE.js → toConsumableArray.DwMycSpg.js} +1 -1
  104. streamlit/static/static/js/uniqueId.DcCWa2cf.js +1 -0
  105. streamlit/static/static/js/{useBasicWidgetState.8WwISl9r.js → useBasicWidgetState.Bg0ZMUt5.js} +1 -1
  106. streamlit/static/static/js/{useIntlLocale.D37LWdCR.js → useIntlLocale.DgBUDcPA.js} +1 -1
  107. streamlit/static/static/js/{useTextInputAutoExpand.Bb_KqJvq.js → useTextInputAutoExpand.DDBezxks.js} +1 -1
  108. streamlit/static/static/js/{useUpdateUiValue.D1BLS5t7.js → useUpdateUiValue.Df1h6fXC.js} +1 -1
  109. streamlit/static/static/js/{useWaveformController.Ce0-qTws.js → useWaveformController.DbWw5MEk.js} +1 -1
  110. streamlit/static/static/js/{withCalculatedWidth.BX2K3UVv.js → withCalculatedWidth.YaK0HIIP.js} +1 -1
  111. streamlit/static/static/js/{withFullScreenWrapper.CqfGs8T2.js → withFullScreenWrapper.CcWCKoY8.js} +1 -1
  112. streamlit/testing/v1/element_tree.py +23 -8
  113. streamlit/web/bootstrap.py +5 -2
  114. streamlit/web/server/server_util.py +22 -0
  115. {streamlit_nightly-1.53.2.dev20260125.dist-info → streamlit_nightly-1.53.2.dev20260128.dist-info}/METADATA +1 -1
  116. {streamlit_nightly-1.53.2.dev20260125.dist-info → streamlit_nightly-1.53.2.dev20260128.dist-info}/RECORD +120 -120
  117. streamlit/static/static/js/embed.C7by6AoE.js +0 -195
  118. streamlit/static/static/js/index.Bhy8EBYI.js +0 -2
  119. streamlit/static/static/js/index.C5ehUqNt.js +0 -2
  120. streamlit/static/static/js/index.m4WkwGMu.js +0 -1
  121. streamlit/static/static/js/uniqueId.8R4hbkYl.js +0 -1
  122. {streamlit_nightly-1.53.2.dev20260125.data → streamlit_nightly-1.53.2.dev20260128.data}/scripts/streamlit.cmd +0 -0
  123. {streamlit_nightly-1.53.2.dev20260125.dist-info → streamlit_nightly-1.53.2.dev20260128.dist-info}/WHEEL +0 -0
  124. {streamlit_nightly-1.53.2.dev20260125.dist-info → streamlit_nightly-1.53.2.dev20260128.dist-info}/entry_points.txt +0 -0
  125. {streamlit_nightly-1.53.2.dev20260125.dist-info → streamlit_nightly-1.53.2.dev20260128.dist-info}/top_level.txt +0 -0
@@ -1 +1 @@
1
- import{z as f,r as s,l as v,o as x,j as i,Y as m,q as L,Z as r,$ as R,m as C,n as k,a0 as z,a1 as B}from"./index.BB_iwaVr.js";const E=f("button",{target:"e1a81sb30"})(({theme:o})=>({fontSize:o.fontSizes.sm,lineHeight:o.lineHeights.base,color:o.colors.fadedText60,backgroundColor:o.colors.transparent,fontFamily:"inherit",margin:o.spacing.none,border:"none",boxShadow:"none",padding:o.spacing.none,"&:hover, &:active, &:focus":{border:"none",outline:"none",boxShadow:"none"},"&:hover":{color:o.colors.primary}})),H=f("div",{target:"e1a81sb31"})(({theme:o})=>({display:"flex",flexDirection:"row",gap:o.spacing.lg,"> span":{marginTop:o.spacing.twoXS}})),D=f("div",{target:"e1a81sb32"})(({theme:o})=>({display:"flex",flexDirection:"column",gap:o.spacing.sm,alignItems:"start",justifyContent:"center",overflow:"hidden",minHeight:"100%",fontSize:o.fontSizes.sm,lineHeight:o.lineHeights.base,div:{display:"inline-flex"}}));function M(o){const a=C(o);return{Body:{props:{"data-testid":"stToast",className:"stToast"},style:{display:"flex",flexDirection:"row",gap:o.spacing.md,width:o.sizes.toastWidth,marginTop:o.spacing.sm,borderTopLeftRadius:o.radii.default,borderTopRightRadius:o.radii.default,borderBottomLeftRadius:o.radii.default,borderBottomRightRadius:o.radii.default,paddingTop:o.spacing.lg,paddingBottom:o.spacing.lg,paddingLeft:o.spacing.twoXL,paddingRight:o.spacing.twoXL,backgroundColor:o.colors.bgColor,filter:a?"brightness(0.98)":"brightness(1.2)",color:o.colors.bodyText,boxShadow:o.shadows.popover}},CloseIcon:{style:{color:o.colors.fadedText40,width:o.fontSizes.lg,height:o.fontSizes.lg,marginRight:`calc(-1 * ${o.spacing.lg} / 2)`,":hover":{color:o.colors.bodyText}}}}}function I(o){if(o.length>104){let t=o.replace(/^(.{104}[^\s]*).*/,"$1");return t.length>104&&(t=t.substring(0,104).split(" ").slice(0,-1).join(" ")),t.trim()}return o}function j({element:o}){const{body:a,icon:t,duration:d}=o,n=v(),c=I(a),l=a!==c,[e,T]=s.useState(!l),[b,w]=s.useState(0),y=s.useCallback(()=>{T(!e)},[e]),g=s.useMemo(()=>M(n),[n]),p=s.useMemo(()=>x(H,{expanded:e,children:[t&&i(m,{iconValue:t,size:"xl",testid:"stToastDynamicIcon"}),x(D,{children:[i(L,{source:e?a:c,allowHTML:!1,isToast:!0}),l&&i(E,{"data-testid":"stToastViewButton",onClick:y,children:e?"view less":"view more"})]})]}),[l,e,a,t,c,y]);s.useEffect(()=>{if(n.inSidebar)return;const h=k(d)?d===0?0:d*1e3:4e3,u=r.info(p,{overrides:{...g},autoHideDuration:h});return w(u),()=>{r.update(u,{overrides:{Body:{style:{display:"none"}}}}),r.clear(u)}},[]),s.useEffect(()=>{r.update(b,{children:p,overrides:{...g}})},[b,p,g]);const S=i(B,{kind:z.ERROR,body:"Streamlit API Error: `st.toast` cannot be called directly on the sidebar with `st.sidebar.toast`. See our `st.toast` API [docs](https://docs.streamlit.io/develop/api-reference/status/st.toast) for more information."});return i(R,{children:n.inSidebar&&S})}const O=s.memo(j);export{O as default};
1
+ import{z as f,r as s,l as v,o as x,j as i,Y as m,q as L,Z as r,$ as R,m as C,n as k,a0 as z,a1 as B}from"./index.aCorc3Yt.js";const E=f("button",{target:"e1a81sb30"})(({theme:o})=>({fontSize:o.fontSizes.sm,lineHeight:o.lineHeights.base,color:o.colors.fadedText60,backgroundColor:o.colors.transparent,fontFamily:"inherit",margin:o.spacing.none,border:"none",boxShadow:"none",padding:o.spacing.none,"&:hover, &:active, &:focus":{border:"none",outline:"none",boxShadow:"none"},"&:hover":{color:o.colors.primary}})),H=f("div",{target:"e1a81sb31"})(({theme:o})=>({display:"flex",flexDirection:"row",gap:o.spacing.lg,"> span":{marginTop:o.spacing.twoXS}})),D=f("div",{target:"e1a81sb32"})(({theme:o})=>({display:"flex",flexDirection:"column",gap:o.spacing.sm,alignItems:"start",justifyContent:"center",overflow:"hidden",minHeight:"100%",fontSize:o.fontSizes.sm,lineHeight:o.lineHeights.base,div:{display:"inline-flex"}}));function M(o){const a=C(o);return{Body:{props:{"data-testid":"stToast",className:"stToast"},style:{display:"flex",flexDirection:"row",gap:o.spacing.md,width:o.sizes.toastWidth,marginTop:o.spacing.sm,borderTopLeftRadius:o.radii.default,borderTopRightRadius:o.radii.default,borderBottomLeftRadius:o.radii.default,borderBottomRightRadius:o.radii.default,paddingTop:o.spacing.lg,paddingBottom:o.spacing.lg,paddingLeft:o.spacing.twoXL,paddingRight:o.spacing.twoXL,backgroundColor:o.colors.bgColor,filter:a?"brightness(0.98)":"brightness(1.2)",color:o.colors.bodyText,boxShadow:o.shadows.popover}},CloseIcon:{style:{color:o.colors.fadedText40,width:o.fontSizes.lg,height:o.fontSizes.lg,marginRight:`calc(-1 * ${o.spacing.lg} / 2)`,":hover":{color:o.colors.bodyText}}}}}function I(o){if(o.length>104){let t=o.replace(/^(.{104}[^\s]*).*/,"$1");return t.length>104&&(t=t.substring(0,104).split(" ").slice(0,-1).join(" ")),t.trim()}return o}function j({element:o}){const{body:a,icon:t,duration:d}=o,n=v(),c=I(a),l=a!==c,[e,T]=s.useState(!l),[b,w]=s.useState(0),y=s.useCallback(()=>{T(!e)},[e]),g=s.useMemo(()=>M(n),[n]),p=s.useMemo(()=>x(H,{expanded:e,children:[t&&i(m,{iconValue:t,size:"xl",testid:"stToastDynamicIcon"}),x(D,{children:[i(L,{source:e?a:c,allowHTML:!1,isToast:!0}),l&&i(E,{"data-testid":"stToastViewButton",onClick:y,children:e?"view less":"view more"})]})]}),[l,e,a,t,c,y]);s.useEffect(()=>{if(n.inSidebar)return;const h=k(d)?d===0?0:d*1e3:4e3,u=r.info(p,{overrides:{...g},autoHideDuration:h});return w(u),()=>{r.update(u,{overrides:{Body:{style:{display:"none"}}}}),r.clear(u)}},[]),s.useEffect(()=>{r.update(b,{children:p,overrides:{...g}})},[b,p,g]);const S=i(B,{kind:z.ERROR,body:"Streamlit API Error: `st.toast` cannot be called directly on the sidebar with `st.sidebar.toast`. See our `st.toast` API [docs](https://docs.streamlit.io/develop/api-reference/status/st.toast) for more information."});return i(R,{children:n.inSidebar&&S})}const O=s.memo(j);export{O as default};
@@ -1 +1 @@
1
- import{z as f,r as o,R as g,j as l,V as v}from"./index.BB_iwaVr.js";const T=f("div",{target:"e1z085g90"})(()=>({lineHeight:0})),y=f("audio",{target:"e1z085g91"})(({theme:t})=>({width:"100%",height:t.sizes.minElementHeight,margin:0,padding:0})),h=v.getLogger("Audio");function L({element:t,endpoints:a,elementMgr:s}){const i=o.useRef(null),{startTime:n,endTime:d,loop:u,autoplay:p}=t,E=o.useMemo(()=>{if(!t.id)return!0;const e=s.getElementState(t.id,"preventAutoplay");return e||s.setElementState(t.id,"preventAutoplay",!0),e??!1},[t.id,s]);o.useEffect(()=>{i.current&&(i.current.currentTime=n)},[n]),o.useEffect(()=>{const e=i.current,r=()=>{e&&(e.currentTime=t.startTime)};return e&&e.addEventListener("loadedmetadata",r),()=>{e&&e.removeEventListener("loadedmetadata",r)}},[t]),o.useEffect(()=>{const e=i.current;if(!e)return;let r=!1;const c=()=>{d>0&&e.currentTime>=d&&(u?(e.currentTime=n||0,e.play()):r||(r=!0,e.pause()))};return d>0&&e.addEventListener("timeupdate",c),()=>{e&&d>0&&e.removeEventListener("timeupdate",c)}},[d,u,n]),o.useEffect(()=>{const e=i.current;if(!e)return;const r=()=>{u&&(e.currentTime=n||0,e.play())};return e.addEventListener("ended",r),()=>{e&&e.removeEventListener("ended",r)}},[u,n]);const m=g(t.url),A=a.buildMediaURL(t.url);return l(T,{children:l(y,{className:"stAudio","data-testid":"stAudio",ref:i,controls:!0,autoPlay:p&&!E,src:A,onError:e=>{const r=e.currentTarget.src;h.error(`Client Error: Audio source error - ${r}`),a.sendClientErrorToHost("Audio","Audio source failed to load","onerror triggered",r)},crossOrigin:m})})}const z=o.memo(L);export{z as default};
1
+ import{z as f,r as o,R as g,j as l,V as v}from"./index.aCorc3Yt.js";const T=f("div",{target:"e1z085g90"})(()=>({lineHeight:0})),y=f("audio",{target:"e1z085g91"})(({theme:t})=>({width:"100%",height:t.sizes.minElementHeight,margin:0,padding:0})),h=v.getLogger("Audio");function L({element:t,endpoints:a,elementMgr:s}){const i=o.useRef(null),{startTime:n,endTime:d,loop:u,autoplay:p}=t,E=o.useMemo(()=>{if(!t.id)return!0;const e=s.getElementState(t.id,"preventAutoplay");return e||s.setElementState(t.id,"preventAutoplay",!0),e??!1},[t.id,s]);o.useEffect(()=>{i.current&&(i.current.currentTime=n)},[n]),o.useEffect(()=>{const e=i.current,r=()=>{e&&(e.currentTime=t.startTime)};return e&&e.addEventListener("loadedmetadata",r),()=>{e&&e.removeEventListener("loadedmetadata",r)}},[t]),o.useEffect(()=>{const e=i.current;if(!e)return;let r=!1;const c=()=>{d>0&&e.currentTime>=d&&(u?(e.currentTime=n||0,e.play()):r||(r=!0,e.pause()))};return d>0&&e.addEventListener("timeupdate",c),()=>{e&&d>0&&e.removeEventListener("timeupdate",c)}},[d,u,n]),o.useEffect(()=>{const e=i.current;if(!e)return;const r=()=>{u&&(e.currentTime=n||0,e.play())};return e.addEventListener("ended",r),()=>{e&&e.removeEventListener("ended",r)}},[u,n]);const m=g(t.url),A=a.buildMediaURL(t.url);return l(T,{children:l(y,{className:"stAudio","data-testid":"stAudio",ref:i,controls:!0,autoPlay:p&&!E,src:A,onError:e=>{const r=e.currentTarget.src;h.error(`Client Error: Audio source error - ${r}`),a.sendClientErrorToHost("Audio","Audio source failed to load","onerror triggered",r)},crossOrigin:m})})}const z=o.memo(L);export{z as default};
@@ -1 +1 @@
1
- import{r,E as S,_ as E,V as ct,z as m,ct as b,cr as Fe,o as A,j as a,P as ue,ax as V,ay as pe,$ as K,b as dt,B as ut,Y as Me,bU as pt,l as gt,k as ft,b6 as ht,cu as mt,e as ie,bP as Re,bQ as wt,aa as vt}from"./index.BB_iwaVr.js";import{u as ke,I as Ct,g as Ve,F as Y,E as ce,b as xt,s as yt,a as Ae}from"./FileHelper.BPYQIPd1.js";import{u as bt}from"./useWaveformController.Ce0-qTws.js";import{I as St}from"./InputInstructions.Bi62hDTQ.js";import{u as Et,T as It}from"./useTextInputAutoExpand.Bb_KqJvq.js";import{i as zt}from"./inputUtils.CptNuJwn.js";import{T as Rt}from"./TableChart.esm.DBeVaFNt.js";import{E as Vt}from"./ErrorOutline.esm.CIFYUdwC.js";import{U as Te}from"./UploadFileInfo.Dr-zDST7.js";import"./base-input.7Sj6pVk0.js";var Ue=r.forwardRef(function(e,t){var o={fill:"currentColor",xmlns:"http://www.w3.org/2000/svg"};return r.createElement(S,E({iconAttrs:o,iconVerticalAlign:"middle",iconViewBox:"0 0 24 24"},e,{ref:t}),r.createElement("rect",{width:24,height:24,fill:"none"}),r.createElement("path",{d:"M19 5v14H5V5h14m0-2H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2z"}),r.createElement("path",{d:"M14 17H7v-2h7v2zm3-4H7v-2h10v2zm0-4H7V7h10v2z"}))});Ue.displayName="Article";var De=r.forwardRef(function(e,t){var o={fill:"currentColor",xmlns:"http://www.w3.org/2000/svg"};return r.createElement(S,E({iconAttrs:o,iconVerticalAlign:"middle",iconViewBox:"0 0 24 24"},e,{ref:t}),r.createElement("path",{fill:"none",d:"M0 0h24v24H0V0z"}),r.createElement("path",{d:"M9.4 16.6L4.8 12l4.6-4.6L8 6l-6 6 6 6 1.4-1.4zm5.2 0l4.6-4.6-4.6-4.6L16 6l6 6-6 6-1.4-1.4z"}))});De.displayName="Code";var He=r.forwardRef(function(e,t){var o={fill:"currentColor",xmlns:"http://www.w3.org/2000/svg"};return r.createElement(S,E({iconAttrs:o,iconVerticalAlign:"middle",iconViewBox:"0 0 24 24"},e,{ref:t}),r.createElement("path",{fill:"none",d:"M0 0h24v24H0V0z"}),r.createElement("path",{d:"M8 16h8v2H8zm0-4h8v2H8zm6-10H6c-1.1 0-2 .9-2 2v16c0 1.1.89 2 1.99 2H18c1.1 0 2-.9 2-2V8l-6-6zm4 18H6V4h7v5h5v11z"}))});He.displayName="Description";var Le=r.forwardRef(function(e,t){var o={fill:"currentColor",xmlns:"http://www.w3.org/2000/svg"};return r.createElement(S,E({iconAttrs:o,iconVerticalAlign:"middle",iconViewBox:"0 0 24 24"},e,{ref:t}),r.createElement("path",{fill:"none",d:"M0 0h24v24H0V0z"}),r.createElement("path",{d:"M9.17 6l2 2H20v10H4V6h5.17M10 4H4c-1.1 0-1.99.9-1.99 2L2 18c0 1.1.9 2 2 2h16c1.1 0 2-.9 2-2V8c0-1.1-.9-2-2-2h-8l-2-2z"}))});Le.displayName="Folder";var Ne=r.forwardRef(function(e,t){var o={fill:"currentColor",xmlns:"http://www.w3.org/2000/svg"};return r.createElement(S,E({iconAttrs:o,iconVerticalAlign:"middle",iconViewBox:"0 0 24 24"},e,{ref:t}),r.createElement("path",{fill:"none",d:"M0 0h24v24H0V0z"}),r.createElement("path",{d:"M19 5v14H5V5h14m0-2H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zm-4.86 8.86l-3 3.87L9 13.14 6 17h12l-3.86-5.14z"}))});Ne.displayName="Image";var Be=r.forwardRef(function(e,t){var o={fill:"currentColor",xmlns:"http://www.w3.org/2000/svg"};return r.createElement(S,E({iconAttrs:o,iconVerticalAlign:"middle",iconViewBox:"0 0 24 24"},e,{ref:t}),r.createElement("path",{fill:"none",d:"M0 0h24v24H0V0z"}),r.createElement("path",{d:"M12 3l.01 10.55c-.59-.34-1.27-.55-2-.55a4.001 4.001 0 100 8c2.22 0 3.99-1.79 3.99-4V7h4V3h-6zm-1.99 16c-1.1 0-2-.9-2-2s.9-2 2-2 2 .9 2 2-.9 2-2 2z"}))});Be.displayName="MusicNote";var Pe=r.forwardRef(function(e,t){var o={fill:"currentColor",xmlns:"http://www.w3.org/2000/svg"};return r.createElement(S,E({iconAttrs:o,iconVerticalAlign:"middle",iconViewBox:"0 0 24 24"},e,{ref:t}),r.createElement("path",{fill:"none",d:"M0 0h24v24H0V0z"}),r.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 3zm-1-9c0-.55.45-1 1-1s1 .45 1 1v6c0 .55-.45 1-1 1s-1-.45-1-1V5zm6 6c0 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"}))});Pe.displayName="MicNone";var We=r.forwardRef(function(e,t){var o={fill:"currentColor",xmlns:"http://www.w3.org/2000/svg"};return r.createElement(S,E({iconAttrs:o,iconVerticalAlign:"middle",iconViewBox:"0 0 24 24"},e,{ref:t}),r.createElement("path",{fill:"none",d:"M0 0h24v24H0V0z"}),r.createElement("path",{d:"M15 8v8H5V8h10m1-2H4c-.55 0-1 .45-1 1v10c0 .55.45 1 1 1h12c.55 0 1-.45 1-1v-3.5l4 4v-11l-4 4V7c0-.55-.45-1-1-1z"}))});We.displayName="Videocam";var Oe=r.forwardRef(function(e,t){var o={fill:"currentColor",xmlns:"http://www.w3.org/2000/svg"};return r.createElement(S,E({iconAttrs:o,iconVerticalAlign:"middle",iconViewBox:"0 0 24 24"},e,{ref:t}),r.createElement("rect",{width:24,height:24,fill:"none"}),r.createElement("path",{d:"M18 13h-5v5c0 .55-.45 1-1 1s-1-.45-1-1v-5H6c-.55 0-1-.45-1-1s.45-1 1-1h5V6c0-.55.45-1 1-1s1 .45 1 1v5h5c.55 0 1 .45 1 1s-.45 1-1 1z"}))});Oe.displayName="Add";var $e=r.forwardRef(function(e,t){var o={fill:"currentColor",xmlns:"http://www.w3.org/2000/svg"};return r.createElement(S,E({iconAttrs:o,iconVerticalAlign:"middle",iconViewBox:"0 0 24 24"},e,{ref:t}),r.createElement("path",{fill:"none",d:"M0 0h24v24H0V0z"}),r.createElement("path",{d:"M13 19V7.83l4.88 4.88c.39.39 1.03.39 1.42 0a.996.996 0 000-1.41l-6.59-6.59a.996.996 0 00-1.41 0l-6.6 6.58a.996.996 0 101.41 1.41L11 7.83V19c0 .55.45 1 1 1s1-.45 1-1z"}))});$e.displayName="ArrowUpward";var Xe=r.forwardRef(function(e,t){var o={fill:"currentColor",xmlns:"http://www.w3.org/2000/svg"};return r.createElement(S,E({iconAttrs:o,iconVerticalAlign:"middle",iconViewBox:"0 0 24 24"},e,{ref:t}),r.createElement("path",{fill:"none",d:"M0 0h24v24H0V0z"}),r.createElement("path",{d:"M12 2C6.47 2 2 6.47 2 12s4.47 10 10 10 10-4.47 10-10S17.53 2 12 2zm4.29 12.89a.996.996 0 11-1.41 1.41L12 13.41 9.11 16.3a.996.996 0 11-1.41-1.41L10.59 12 7.71 9.11A.996.996 0 119.12 7.7L12 10.59l2.89-2.89a.996.996 0 111.41 1.41L13.41 12l2.88 2.89z"}))});Xe.displayName="Cancel";var je=r.forwardRef(function(e,t){var o={fill:"currentColor",xmlns:"http://www.w3.org/2000/svg"};return r.createElement(S,E({iconAttrs:o,iconVerticalAlign:"middle",iconViewBox:"0 0 24 24"},e,{ref:t}),r.createElement("path",{fill:"none",d:"M0 0h24v24H0V0z"}),r.createElement("path",{d:"M18 6.7l-8.48 8.48-3.54-3.54a.996.996 0 10-1.41 1.41l4.24 4.24c.39.39 1.02.39 1.41 0l9.18-9.18a.999.999 0 00-.01-1.42c-.37-.38-1-.38-1.39.01z"}))});je.displayName="Check";var _e=r.forwardRef(function(e,t){var o={fill:"currentColor",xmlns:"http://www.w3.org/2000/svg"};return r.createElement(S,E({iconAttrs:o,iconVerticalAlign:"middle",iconViewBox:"0 0 24 24"},e,{ref:t}),r.createElement("path",{fill:"none",d:"M0 0h24v24H0V0z"}),r.createElement("path",{d:"M18.3 5.71a.996.996 0 00-1.41 0L12 10.59 7.11 5.7A.996.996 0 105.7 7.11L10.59 12 5.7 16.89a.996.996 0 101.41 1.41L12 13.41l4.89 4.89a.996.996 0 101.41-1.41L13.41 12l4.89-4.89c.38-.38.38-1.02 0-1.4z"}))});_e.displayName="Close";var Ke=r.forwardRef(function(e,t){var o={fill:"currentColor",xmlns:"http://www.w3.org/2000/svg"};return r.createElement(S,E({iconAttrs:o,iconVerticalAlign:"middle",iconViewBox:"0 0 24 24"},e,{ref:t}),r.createElement("rect",{width:24,height:24,fill:"none"}),r.createElement("path",{d:"M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm0 11c-.55 0-1-.45-1-1V8c0-.55.45-1 1-1s1 .45 1 1v4c0 .55-.45 1-1 1zm0 4c-.55 0-1-.45-1-1s.45-1 1-1 1 .45 1 1-.45 1-1 1z"}))});Ke.displayName="ErrorOutline";const _=ct.getLogger("ChatInput"),At=m("div",{target:"e15xmbo00"})({position:"relative",display:"flex",flexDirection:"column"}),Ft=m("div",{target:"e15xmbo01"})(({theme:e})=>({backgroundColor:e.colors.secondaryBg,border:`${e.sizes.borderWidth} solid`,borderColor:e.colors.widgetBorderColor??e.colors.transparent,position:"relative",display:"flex",flexDirection:"column",alignItems:"stretch",flex:1,paddingTop:e.spacing.md,paddingBottom:e.spacing.md,paddingLeft:e.spacing.lg,paddingRight:e.spacing.lg,gap:e.spacing.sm,borderRadius:e.radii.default,boxSizing:"border-box",":focus-within":{borderColor:e.colors.primary}})),Mt=m("div",{target:"e15xmbo02"})(({theme:e})=>({display:"flex",flexWrap:"wrap",gap:e.spacing.sm})),kt=m("div",{target:"e15xmbo03"})(({theme:e,isStacked:t})=>({display:"flex",flexDirection:"row",alignItems:"center",justifyContent:"space-between",width:"100%",gap:e.spacing.sm,flexWrap:t?"wrap":"nowrap"})),Tt=m("div",{target:"e15xmbo04"})(({isStacked:e})=>({flex:e?"none":1,width:e?"100%":"auto",order:e?-1:0,display:"flex",alignItems:"center",minWidth:0})),Ut=m("div",{target:"e15xmbo05"})(({theme:e})=>({display:"flex",flexDirection:"row",flexShrink:0,gap:e.spacing.sm,alignItems:"center"})),Dt=m("div",{target:"e15xmbo06"})(({theme:e})=>({display:"flex",flexDirection:"row",gap:e.spacing.sm,alignItems:"center"})),Ht=m("div",{target:"e15xmbo07"})(({theme:e})=>({position:"absolute",top:e.spacing.twoXS,right:e.spacing.lg,color:e.colors.fadedText60,fontSize:e.fontSizes.twoSm,textAlign:"right",whiteSpace:"nowrap",pointerEvents:"auto",cursor:"text",zIndex:e.zIndices.priority,"& .stChatInputInstructions":{position:"static"}})),k=m("button",{target:"e15xmbo08"})(({theme:e,disabled:t,hasError:o,primary:p})=>{if(p)return{border:"none",backgroundColor:t?e.colors.darkenedBgMix15:e.colors.primary,borderRadius:e.radii.button,display:"inline-flex",alignItems:"center",justifyContent:"center",lineHeight:e.lineHeights.none,margin:e.spacing.none,padding:e.spacing.xs,width:e.sizes.chatInputPrimaryButtonSize,height:e.sizes.chatInputPrimaryButtonSize,color:t?e.colors.fadedText40:e.colors.white,cursor:t?"not-allowed":"pointer",transition:"background-color 200ms ease","&:focus":{outline:"none"},":focus":{outline:"none"},"&:focus-visible":{boxShadow:e.shadows.focusRing},"&:hover":{backgroundColor:t?e.colors.darkenedBgMix15:e.colors.primary}};const l=()=>o?e.colors.redTextColor:t?e.colors.fadedText40:e.colors.fadedText60;return{border:"none",backgroundColor:e.colors.transparent,borderRadius:e.radii.default,display:"inline-flex",alignItems:"center",justifyContent:"center",lineHeight:e.lineHeights.none,margin:e.spacing.none,padding:e.spacing.none,color:l(),pointerEvents:"auto","&:focus":{outline:"none"},":focus":{outline:"none"},"&:focus-visible":{boxShadow:e.shadows.focusRing},"&:hover":{color:o?e.colors.redColor:e.colors.bodyText},"&:active":{color:e.colors.primary},"&:disabled, &:disabled:hover, &:disabled:active":{backgroundColor:e.colors.transparent,borderColor:e.colors.transparent,color:e.colors.fadedText40,cursor:"not-allowed"},"& svg":{width:e.iconSizes.lg,height:e.iconSizes.lg}}}),Lt=m("div",{target:"e15xmbo09"})(({isRecording:e})=>({display:e?"flex":"none",flex:1,alignItems:"center",minWidth:0})),Nt=m("div",{target:"e15xmbo010"})(({theme:e})=>({position:"relative",width:"100%",height:e.sizes.chatInputPrimaryButtonSize,borderRadius:e.radii.default,overflow:"hidden","& > div":{position:"absolute",inset:0}})),Ye=(e,t)=>t===b.Directory?{...e,webkitdirectory:"",multiple:!0}:e,Bt=(e,t)=>{if(!t||t.length===0)return!0;const o=e.name.toLowerCase(),p=o.lastIndexOf(".");if(p===-1||p===o.length-1)return t.some(d=>d===""||d===".");const l=o.substring(p),w=o.substring(p+1);return t.some(d=>{const v=d.toLowerCase();return v.startsWith(".")?l===v:w===v})},Pt=(e,t)=>Bt(e,t)?{isValid:!0}:{isValid:!1,errorMessage:`${e.type||"This type of"} files are not allowed.`},de=e=>{switch(e){case b.None:return"a file";case b.Single:return"a file";case b.Multiple:return"files";case b.Directory:return"a directory";default:return Fe(e),"a file"}},Wt=m("div",{target:"e1lsn30a0"})(({theme:e})=>({backgroundColor:e.colors.transparent,position:"absolute",inset:0,zIndex:e.zIndices.priority,borderRadius:e.radii.chatInput})),Ot=m("div",{target:"e1lsn30a1"})(({theme:e})=>({position:"absolute",inset:0,border:`${e.sizes.borderWidth} solid`,borderColor:e.colors.primary,borderRadius:e.radii.chatInput,backgroundColor:e.colors.secondaryBg,color:e.colors.primary,display:"flex",alignItems:"center",justifyContent:"center",fontWeight:e.fontWeights.bold,pointerEvents:"none",zIndex:e.zIndices.priority})),$t=m("div",{target:"e1lsn30a2"})(({disabled:e})=>({pointerEvents:e?"none":"auto"})),Xt=m("div",{target:"e1lsn30a3"})(({theme:e})=>({lineHeight:e.lineHeights.tight})),jt=m("div",{target:"e1lsn30a4"})(({theme:e})=>({display:"flex",flexWrap:"wrap",gap:e.spacing.sm})),_t=m("div",{target:"e1lsn30a5"})({flex:"0 0 auto",maxWidth:"100%"}),Kt=m("div",{target:"e1lsn30a6"})(({theme:e,isError:t,isClickable:o})=>({position:"relative",display:"inline-flex",alignItems:"center",width:"fit-content",minWidth:"9rem",maxWidth:"100%",backgroundColor:t?e.colors.redBackgroundColor:e.colors.bgColor,padding:e.spacing.twoXS,paddingRight:e.spacing.twoXL,borderRadius:e.radii.default,gap:e.spacing.sm,cursor:o?"pointer":"default"})),Yt=m("div",{target:"e1lsn30a7"})({display:"flex",flexDirection:"column",minWidth:0}),Gt=m("div",{target:"e1lsn30a8"})(({theme:e,fileStatus:t})=>({display:"flex",alignItems:"center",justifyContent:"center",borderRadius:e.radii.default,width:e.sizes.chatInputFileIconSize,height:e.sizes.chatInputFileIconSize,flexShrink:0,overflow:"hidden",...t==="uploaded"&&{backgroundColor:e.colors.bodyText,color:e.colors.bgColor},...t==="uploading"&&{backgroundColor:e.colors.fadedText10,color:e.colors.fadedText60},...t==="error"&&{backgroundColor:e.colors.redBackgroundColor,color:e.colors.redTextColor}})),qt=m("img",{target:"e1lsn30a9"})({width:"100%",height:"100%",objectFit:"cover"}),Qt=m("div",{target:"e1lsn30a10"})(({theme:e,fileStatus:t})=>({overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap",color:t.type==="uploading"?e.colors.fadedText60:e.colors.bodyText})),Jt=m("div",{target:"e1lsn30a11"})(({theme:e})=>({color:e.colors.fadedText60,fontSize:e.fontSizes.sm})),Zt=m("small",{target:"e1lsn30a12"})(({theme:e,isError:t})=>({position:"absolute",top:e.spacing.twoXS,right:e.spacing.twoXS,display:"flex",alignItems:"center",justifyContent:"center",lineHeight:0,"& button":{display:"flex",alignItems:"center",justifyContent:"center",width:"fit-content",height:"fit-content",minHeight:"unset",minWidth:"unset",maxHeight:"unset",maxWidth:"unset",borderRadius:"50%",backgroundColor:"transparent",color:t?e.colors.redTextColor:e.colors.fadedText60,padding:0,overflow:"hidden",boxSizing:"border-box",lineHeight:0,"&:hover":{backgroundColor:"transparent",color:t?e.colors.redColor:e.colors.bodyText}}})),er=m("span",{target:"e1lsn30a13"})({position:"absolute",width:"1px",height:"1px",padding:0,margin:"-1px",overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",border:0}),tr=({onDrop:e,multiple:t,accept:o,maxSize:p,acceptFile:l,disabled:w})=>{const{getRootProps:d,getInputProps:v}=ke({onDrop:e,multiple:t,accept:o,maxSize:p,useFsAccessApi:!1}),C=Ye(v(),l),c=d({tabIndex:-1});return A($t,{"data-testid":"stChatInputFileUploadButton",disabled:w,...c,children:[a("input",{...C}),a(pe,{content:`Upload or drag and drop ${de(l)}`,placement:ue.TOP,onMouseEnterDelay:500,children:a(k,{type:"button",disabled:w,"aria-label":`Upload ${de(l)}`,children:a(V,{content:Oe,size:"xl",color:"inherit"})})})]})},rr=r.memo(tr),or=({getRootProps:e,getInputProps:t,acceptFile:o})=>{const p=Ye(t(),o);return A(K,{children:[a(Wt,{...e(),children:a("input",{...p})}),a(Ot,{children:`Drag and drop ${de(o)} here`})]})},nr=r.memo(or),Ge=new Set(["jpg","jpeg","png","gif","webp","svg","bmp"]),ar=new Set(["pdf"]),ir=new Set(["csv","tsv","xlsx","xls"]),sr=new Set(["txt","md","json","xml","yaml","yml"]),lr=new Set(["py","js","ts","jsx","tsx","css","html","java","cpp","c","go","rs","rb","php","swift","kt","scala","sh","bash","sql"]),cr=new Set(["mp3","wav","m4a","ogg","flac","aac"]),dr=new Set(["mp4","webm","mov","avi","mkv","wmv"]),ur=new Set(["zip","tar","gz","rar","7z","bz2"]);function qe(e){const t=e.lastIndexOf(".");return t===-1||t===e.length-1?"":e.slice(t+1).toLowerCase()}function pr(e){const t=qe(e);return Ge.has(t)?Ne:ar.has(t)?Ue:ir.has(t)?Rt:sr.has(t)?He:lr.has(t)?De:cr.has(t)?Be:dr.has(t)?We:ur.has(t)?Le:Ct}function gr(e){const t=qe(e);return Ge.has(t)}const fr=20;function hr(e,t=fr){if(e.length<=t)return e;const o=e.lastIndexOf(".");if(!(o>0&&o<e.length-1)){const f=Math.floor((t-3)/2),g=f>0?e.slice(-f):"";return`${e.slice(0,f)}...${g}`}const l=e.slice(o),w=e.slice(0,o),d=t-l.length-3;if(d<=0){const f=Math.floor((t-3)/2),g=f>0?e.slice(-f):"";return`${e.slice(0,f)}...${g}`}const v=Math.ceil(d/2),C=Math.floor(d/2),c=C>0?w.slice(-C):"";return`${w.slice(0,v)}...${c}${l}`}function mr(e,t){const o=r.useMemo(()=>!e||!gr(t)?null:URL.createObjectURL(e),[e,t]);return r.useEffect(()=>()=>{o&&URL.revokeObjectURL(o)},[o]),o}const wr=({fileInfo:e,imagePreviewUrl:t})=>{const{type:o}=e.status;switch(o){case"uploading":return a(Me,{iconValue:"spinner",testid:"stChatInputFileIconSpinner",size:"lg"});case"error":return a(V,{content:Vt,size:"lg",testid:"stChatInputFileIconError"});case"uploaded":return t?a(qt,{src:t,alt:e.name,"data-testid":"stChatInputFileImagePreview"}):a(V,{content:pr(e.name),size:"lg"});default:return Fe(o),null}},vr=({fileInfo:e,onDelete:t,onRetry:o})=>{const p=e.status.type,l=p==="error",w=p==="uploading",d=l&&o!==void 0&&e.file!==void 0,v=r.useId(),C=mr(e.file,e.name),c=e.status.type==="error"?e.status.errorMessage:"Upload failed",f=r.useCallback(()=>{d&&o(e)},[d,o,e]),g=r.useCallback(x=>{d&&(x.key==="Enter"||x.key===" ")&&(x.preventDefault(),o(e))},[d,o,e]),h=r.useCallback(x=>{x.stopPropagation(),t(e.id)},[t,e.id]),T=w?`Cancel upload of ${e.name}`:`Remove ${e.name}`,G=Ve(e.size,Y.Byte),P=`${e.name}, ${G}`,U=A(Kt,{className:"stChatInputFile","data-testid":"stChatInputFile",isError:l,isClickable:d,onClick:d?f:void 0,onKeyDown:d?g:void 0,title:d?"Click to retry upload":void 0,role:d?"button":void 0,tabIndex:d?0:void 0,"aria-label":P,"aria-invalid":l||void 0,"aria-describedby":l?v:void 0,children:[a(Gt,{fileStatus:p,children:a(wr,{fileInfo:e,imagePreviewUrl:C})}),A(Yt,{children:[a(Qt,{className:"stChatInputFileName","data-testid":"stChatInputFileName",title:e.name,fileStatus:e.status,children:hr(e.name)}),a(Jt,{children:Ve(e.size,Y.Byte)})]}),a(Zt,{"data-testid":"stChatInputDeleteBtn",isError:l,children:a(dt,{onClick:h,kind:ut.MINIMAL,"aria-label":T,children:a(V,{content:Xe,size:"md"})})}),l&&A(er,{id:v,role:"alert",children:["Error: ",c]})]});return l?a(pe,{content:c,placement:ue.TOP,error:!0,children:U}):U},Cr=r.memo(vr),xr=({items:e,onDelete:t,onRetry:o})=>a(Xt,{"data-testid":"stChatUploadedFiles",children:a(jt,{children:e.map(p=>a(_t,{children:a(Cr,{fileInfo:p,onDelete:t,onRetry:o})},p.id))})}),yr=r.memo(xr),br=(e,t,o)=>{const p=[],l=[];return e.forEach(w=>{if(w.size>o){l.push({file:w,errors:[{code:ce.FileTooLarge,message:`File is too large. Maximum size is ${o} bytes.`}]});return}const d=Pt(w,t.fileType);if(!d.isValid){l.push({file:w,errors:[{code:ce.FileInvalidType,message:d.errorMessage||"File type not allowed."}]});return}p.push(w)}),{accepted:p,rejected:l}},Sr=({acceptMultipleFiles:e,maxFileSize:t,uploadClient:o,uploadFile:p,addFiles:l,getNextLocalFileId:w,deleteExistingFiles:d,onUploadComplete:v,element:C})=>(c,f)=>{if(c.length>0){const{accepted:g,rejected:h}=br(c,C,t);c=g,f=[...f,...h]}if(!e&&c.length===0&&f.length>1){const g=f.findIndex(h=>h.errors?.[0].code===ce.TooManyFiles);g>=0&&(c.push(f[g].file),f.splice(g,1))}if(!e&&c.length>0&&d(),o.fetchFileURLs(c).then(g=>{pt(g,c).forEach(([h,T])=>{p(h,T)})}).catch(g=>{l(c.map(h=>new Te(h.name,h.size,w(),{type:"error",errorMessage:g},h)))}),f.length>0){const g=f.map(h=>xt(h,w(),t));l(g)}v()},Er=({getNextLocalFileId:e,addFiles:t,updateFile:o,uploadClient:p,element:l,onUploadProgress:w,onUploadComplete:d})=>(v,C)=>{const c=C.webkitRelativePath||C.name,f=new AbortController,g=new Te(c,C.size,e(),{type:"uploading",abortController:f,progress:1},C);t([g]),p.uploadFile({formId:"",...l},v.uploadUrl,C,h=>w(h,g.id),f.signal).then(()=>d(g.id,v)).catch(h=>{h instanceof DOMException&&h.name==="AbortError"||o(g.id,g.setStatus({type:"error",errorMessage:h?h.toString():"Unknown error"}))})};function Ir(e,t,o){return{Root:{style:{minHeight:e.sizes.chatInputTextareaMinHeight,outline:"none",borderLeftWidth:"0",borderRightWidth:"0",borderTopWidth:"0",borderBottomWidth:"0",borderTopLeftRadius:"0",borderTopRightRadius:"0",borderBottomRightRadius:"0",borderBottomLeftRadius:"0",...o}},Input:{props:{"data-testid":"stChatInputTextArea"},style:{fontWeight:e.fontWeights.normal,lineHeight:e.lineHeights.inputWidget,"::placeholder":{color:e.colors.fadedText60},height:t.isExtended?t.height:"auto",maxHeight:t.maxHeight,overflowY:"auto",paddingLeft:e.spacing.none,paddingRight:e.spacing.none,paddingBottom:e.spacing.twoXS,paddingTop:e.spacing.twoXS,width:"100%"}}}}const se=(e,t,o)=>o.map(p=>p.id===e?t:p),le=(e,t)=>t.find(o=>o.id===e);function zr({disabled:e,element:t,widgetMgr:o,fragmentId:p,uploadClient:l}){const w=gt(),{placeholder:d,maxChars:v}=t,C=r.useRef(0),c=r.useRef(null),f=r.useRef(!1),g=r.useRef(null),h=r.useRef(null),{width:T,elementRef:G}=ft(),{innerWidth:P,innerHeight:U}=ht(),[x,q]=r.useState(t.default),[z,F]=r.useState([]),[D,Q]=r.useState(!1),[H,ge]=r.useState(!1),[J,L]=r.useState(null),[M,Z]=r.useState(!1),[Qe,fe]=r.useState(0),ee=t.acceptAudio??!1;r.useEffect(()=>()=>{h.current&&h.current.abort()},[]);const W=Et({textareaRef:c,dependencies:[d,M]}),O=r.useRef(""),$=r.useRef(0),te=r.useRef(null),he=r.useRef(null),N=r.useCallback(n=>{const i=getComputedStyle(n);O.current=`${i.fontWeight} ${i.fontSize} ${i.fontFamily}`;const u=parseFloat(i.paddingLeft)||0,s=parseFloat(i.paddingRight)||0;$.current=n.clientWidth-u-s},[]);r.useLayoutEffect(()=>{const n=c.current;if(!n)return;N(n);const i=new ResizeObserver(()=>N(n));return i.observe(n),()=>i.disconnect()},[N,M]),r.useEffect(()=>{if(x===""){Z(!1);return}if(M)return;const n=c.current;if(!n||(($.current<=0||!O.current)&&N(n),$.current<=0||!O.current))return;te.current||(te.current=document.createElement("canvas"),he.current=te.current.getContext("2d"));const i=he.current;i&&(i.font=O.current,i.measureText(x).width>$.current-10&&Z(!0))},[x,M,N]);const X=r.useMemo(()=>z.some(n=>n.status.type==="uploading")?!1:x!==""||z.length>0,[z,x]),I=mt(t.acceptFile),re=yt(t.maxUploadSizeMb,Y.Megabyte,Y.Byte),me=r.useCallback(n=>F(i=>[...i,...n]),[]),we=r.useCallback(n=>{n.status.type==="uploading"&&n.status.abortController.abort(),n.status.type==="uploaded"&&n.status.fileUrls.deleteUrl&&l.deleteFile(n.status.fileUrls.deleteUrl).catch(i=>{_.error("Failed to delete file from server:",i)})},[l]),ve=r.useCallback(n=>{F(i=>{const u=le(n,i);if(ie(u))return i;we(u);const s=i.filter(y=>y.id!==n);return s.length===0&&fe(y=>y+1),s})},[we]),oe=r.useRef(null),Je=r.useCallback(n=>{!n.file||n.status.type!=="error"||(F(i=>i.filter(u=>u.id!==n.id)),oe.current&&oe.current([n.file],[]))},[]),Ce=r.useCallback(()=>{const n=z.filter(i=>i.status.type==="uploaded").map(i=>{const{name:u,size:s,status:y}=i,{fileId:ae,fileUrls:lt}=y;return new Re({fileId:ae,fileUrls:lt,name:u,size:s})});return new wt({uploadedFileInfo:n})},[z]),xe=()=>C.current++,ne=Sr({acceptMultipleFiles:I===b.Multiple||I===b.Directory,maxFileSize:re,uploadClient:l,uploadFile:Er({getNextLocalFileId:xe,addFiles:me,updateFile:(n,i)=>{F(u=>se(n,i,u))},uploadClient:l,element:t,onUploadProgress:(n,i)=>{F(u=>{const s=le(i,u);if(ie(s)||s.status.type!=="uploading")return u;const y=Math.round(n.loaded*100/n.total);return s.status.progress===y?u:se(i,s.setStatus({type:"uploading",abortController:s.status.abortController,progress:y}),u)})},onUploadComplete:(n,i)=>{F(u=>{const s=le(n,u);return ie(s)||s.status.type!=="uploading"?u:se(s.id,s.setStatus({type:"uploaded",fileId:i.fileId,fileUrls:i}),u)})}}),addFiles:me,getNextLocalFileId:xe,deleteExistingFiles:()=>z.forEach(n=>ve(n.id)),onUploadComplete:()=>{c.current&&c.current.focus()},element:t});oe.current=ne;const{getRootProps:Ze,getInputProps:et}=ke({onDrop:ne,multiple:I===b.Multiple||I===b.Directory,accept:Ae(t.fileType),maxSize:re,useFsAccessApi:!1}),j=r.useCallback(n=>{if(c.current&&c.current.focus(),!X&&!n||e)return;const i=Ce(),u={data:x,fileUploaderState:i,audioFileInfo:n};o.setChatInputValue(t,u,{fromUi:!0},p),z.length>0&&fe(s=>s+1),F([]),q(""),Z(!1),W.clearScrollHeight()},[X,e,x,z.length,Ce,o,t,p,W]),ye=r.useCallback(async n=>{const i=new Date().toISOString().replace(/[:.]/g,"-"),u=new File([n],`audio-${i}.wav`,{type:"audio/wav"});try{ge(!0);const s=await l.fetchFileURLs([u]);if(s.length===0)throw new Error("Failed to get upload URL for audio file");const y=s[0];h.current=new AbortController,await l.uploadFile({formId:"",...t},y.uploadUrl,u,()=>{},h.current.signal);const ae=new Re({fileId:y.fileId,fileUrls:y,name:u.name,size:u.size});j(ae)}catch(s){const y="Recording failed";_.error("Audio upload failed:",s),L(y),c.current&&c.current.focus()}finally{ge(!1)}},[l,t,j]),tt=r.useMemo(()=>({onApprove:ye,onPermissionDenied:()=>{const n="Microphone access denied";L(n),_.error("Permission denied:",n)},onError:n=>{L("Recording failed"),_.error("Recording error:",n)},onRecordStart:()=>{L(null)}}),[ye]),R=bt({containerRef:g,sampleRate:t.audioSampleRate??void 0,events:tt}),be=r.useCallback(()=>{j()},[j]),rt=n=>{const{metaKey:i,ctrlKey:u,shiftKey:s}=n;zt(n)&&!s&&!u&&!i&&(n.preventDefault(),be())},ot=n=>{const{value:i}=n.target;v!==0&&i.length>v||(q(i),W.updateScrollHeight(),J&&L(null))},Se=r.useCallback(async n=>{n.preventDefault(),n.stopPropagation(),!(!ee||e||R.state==="recording")&&await R.start()},[ee,e,R]),nt=r.useCallback(()=>{R.cancel(),c.current&&c.current.focus()},[R]),Ee=r.useCallback(async()=>{const{blob:n}=await R.stop();await R.approve(n)},[R]),Ie=r.useCallback(n=>{Se(n)},[Se]),at=r.useCallback(()=>{Ee()},[Ee]),it=r.useCallback(()=>{c.current&&c.current.focus()},[]);r.useEffect(()=>{if(t.setValue&&!f.current){f.current=!0;const n=t.value||"";q(n)}},[t.setValue,t.value]),r.useEffect(()=>{f.current=!1},[t]),r.useEffect(()=>{const n=s=>{s.preventDefault(),s.stopPropagation(),!D&&s.dataTransfer?.types.includes("Files")&&Q(!0)},i=s=>{s.preventDefault(),s.stopPropagation(),D&&(s.clientX<=0&&s.clientY<=0||s.clientX>=P&&s.clientY>=U)&&Q(!1)},u=s=>{s.preventDefault(),s.stopPropagation(),D&&Q(!1)};return window.addEventListener("dragover",n),window.addEventListener("drop",u),window.addEventListener("dragleave",i),()=>{window.removeEventListener("dragover",n),window.removeEventListener("drop",u),window.removeEventListener("dragleave",i)}},[D,P,U]);const st=I!==b.None&&D,B=R.state==="recording",ze=!B&&T>vt(w.breakpoints.hideWidgetDetails)&&v>0;return a(At,{className:"stChatInput","data-testid":"stChatInput",ref:G,children:A(Ft,{children:[ze&&a(Ht,{onClick:it,id:"stChatInputInstructions",children:a(St,{dirty:X,value:x,maxLength:v,type:"chat",inForm:!1,className:"stChatInputInstructions"})}),st&&a(nr,{getRootProps:Ze,getInputProps:et,acceptFile:I}),I!==b.None&&z.length>0&&a(Mt,{children:a(yr,{items:[...z],onDelete:ve,onRetry:Je})}),A(kt,{isStacked:M,children:[a(Ut,{children:I!==b.None&&!B&&a(rr,{onDrop:ne,multiple:I===b.Multiple||I===b.Directory,accept:Ae(t.fileType),maxSize:re,acceptFile:I,disabled:e},Qe)}),a(Lt,{isRecording:B,children:a(Nt,{ref:g})}),!B&&a(Tt,{isStacked:M,children:a(It,{inputRef:c,value:x,placeholder:d,onChange:ot,onKeyDown:rt,"aria-label":d,disabled:e,rows:1,"aria-describedby":ze?"stChatInputInstructions":void 0,overrides:Ir(w,W,{width:"100%"})})}),a(Dt,{children:B?A(K,{children:[a(k,{onClick:nt,disabled:e,"data-testid":"stChatInputCancelButton","aria-label":"Cancel recording",children:a(V,{content:_e,size:"lg",color:"inherit"})}),a(k,{onClick:at,disabled:e||H,"data-testid":"stChatInputApproveButton","aria-label":"Submit recording",children:H?a(Me,{size:"lg",iconValue:"spinner"}):a(V,{content:je,size:"lg",color:"inherit"})})]}):A(K,{children:[ee&&a(K,{children:J?a(pe,{content:J,placement:ue.TOP,error:!0,children:a(k,{onClick:Ie,disabled:e||H,hasError:!0,"data-testid":"stChatInputMicButton","aria-label":"Start recording",children:a(V,{content:Ke,size:"xl",color:"inherit"})})}):a(k,{onClick:Ie,disabled:e||H,"data-testid":"stChatInputMicButton","aria-label":"Start recording",children:a(V,{content:Pe,size:"xl",color:"inherit"})})}),a(k,{onClick:be,disabled:!X||e||H,"data-testid":"stChatInputSubmitButton","aria-label":"Send message",primary:!0,children:a(V,{content:$e,size:"lg",color:"inherit"})})]})})]})]})})}const Lr=r.memo(zr);export{Lr as default};
1
+ import{r,E as S,_ as E,V as ct,z as m,cv as b,ct as Fe,o as A,j as a,P as ue,ax as V,ay as pe,$ as K,b as dt,B as ut,Y as Me,bW as pt,l as gt,k as ft,b6 as ht,cw as mt,e as ie,bP as Re,bQ as wt,aa as vt}from"./index.aCorc3Yt.js";import{u as ke,I as Ct,g as Ve,F as Y,E as ce,b as xt,s as yt,a as Ae}from"./FileHelper.hUOqtbwa.js";import{u as bt}from"./useWaveformController.DbWw5MEk.js";import{I as St}from"./InputInstructions.DbssY6d4.js";import{u as Et,T as It}from"./useTextInputAutoExpand.DDBezxks.js";import{i as zt}from"./inputUtils.CptNuJwn.js";import{T as Rt}from"./TableChart.esm.DHKzVs3a.js";import{E as Vt}from"./ErrorOutline.esm.D71F8ziR.js";import{U as Te}from"./UploadFileInfo.Dr-zDST7.js";import"./base-input.Cs-E6S71.js";var De=r.forwardRef(function(e,t){var o={fill:"currentColor",xmlns:"http://www.w3.org/2000/svg"};return r.createElement(S,E({iconAttrs:o,iconVerticalAlign:"middle",iconViewBox:"0 0 24 24"},e,{ref:t}),r.createElement("rect",{width:24,height:24,fill:"none"}),r.createElement("path",{d:"M19 5v14H5V5h14m0-2H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2z"}),r.createElement("path",{d:"M14 17H7v-2h7v2zm3-4H7v-2h10v2zm0-4H7V7h10v2z"}))});De.displayName="Article";var Ue=r.forwardRef(function(e,t){var o={fill:"currentColor",xmlns:"http://www.w3.org/2000/svg"};return r.createElement(S,E({iconAttrs:o,iconVerticalAlign:"middle",iconViewBox:"0 0 24 24"},e,{ref:t}),r.createElement("path",{fill:"none",d:"M0 0h24v24H0V0z"}),r.createElement("path",{d:"M9.4 16.6L4.8 12l4.6-4.6L8 6l-6 6 6 6 1.4-1.4zm5.2 0l4.6-4.6-4.6-4.6L16 6l6 6-6 6-1.4-1.4z"}))});Ue.displayName="Code";var He=r.forwardRef(function(e,t){var o={fill:"currentColor",xmlns:"http://www.w3.org/2000/svg"};return r.createElement(S,E({iconAttrs:o,iconVerticalAlign:"middle",iconViewBox:"0 0 24 24"},e,{ref:t}),r.createElement("path",{fill:"none",d:"M0 0h24v24H0V0z"}),r.createElement("path",{d:"M8 16h8v2H8zm0-4h8v2H8zm6-10H6c-1.1 0-2 .9-2 2v16c0 1.1.89 2 1.99 2H18c1.1 0 2-.9 2-2V8l-6-6zm4 18H6V4h7v5h5v11z"}))});He.displayName="Description";var Le=r.forwardRef(function(e,t){var o={fill:"currentColor",xmlns:"http://www.w3.org/2000/svg"};return r.createElement(S,E({iconAttrs:o,iconVerticalAlign:"middle",iconViewBox:"0 0 24 24"},e,{ref:t}),r.createElement("path",{fill:"none",d:"M0 0h24v24H0V0z"}),r.createElement("path",{d:"M9.17 6l2 2H20v10H4V6h5.17M10 4H4c-1.1 0-1.99.9-1.99 2L2 18c0 1.1.9 2 2 2h16c1.1 0 2-.9 2-2V8c0-1.1-.9-2-2-2h-8l-2-2z"}))});Le.displayName="Folder";var Ne=r.forwardRef(function(e,t){var o={fill:"currentColor",xmlns:"http://www.w3.org/2000/svg"};return r.createElement(S,E({iconAttrs:o,iconVerticalAlign:"middle",iconViewBox:"0 0 24 24"},e,{ref:t}),r.createElement("path",{fill:"none",d:"M0 0h24v24H0V0z"}),r.createElement("path",{d:"M19 5v14H5V5h14m0-2H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zm-4.86 8.86l-3 3.87L9 13.14 6 17h12l-3.86-5.14z"}))});Ne.displayName="Image";var Be=r.forwardRef(function(e,t){var o={fill:"currentColor",xmlns:"http://www.w3.org/2000/svg"};return r.createElement(S,E({iconAttrs:o,iconVerticalAlign:"middle",iconViewBox:"0 0 24 24"},e,{ref:t}),r.createElement("path",{fill:"none",d:"M0 0h24v24H0V0z"}),r.createElement("path",{d:"M12 3l.01 10.55c-.59-.34-1.27-.55-2-.55a4.001 4.001 0 100 8c2.22 0 3.99-1.79 3.99-4V7h4V3h-6zm-1.99 16c-1.1 0-2-.9-2-2s.9-2 2-2 2 .9 2 2-.9 2-2 2z"}))});Be.displayName="MusicNote";var We=r.forwardRef(function(e,t){var o={fill:"currentColor",xmlns:"http://www.w3.org/2000/svg"};return r.createElement(S,E({iconAttrs:o,iconVerticalAlign:"middle",iconViewBox:"0 0 24 24"},e,{ref:t}),r.createElement("path",{fill:"none",d:"M0 0h24v24H0V0z"}),r.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 3zm-1-9c0-.55.45-1 1-1s1 .45 1 1v6c0 .55-.45 1-1 1s-1-.45-1-1V5zm6 6c0 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"}))});We.displayName="MicNone";var Pe=r.forwardRef(function(e,t){var o={fill:"currentColor",xmlns:"http://www.w3.org/2000/svg"};return r.createElement(S,E({iconAttrs:o,iconVerticalAlign:"middle",iconViewBox:"0 0 24 24"},e,{ref:t}),r.createElement("path",{fill:"none",d:"M0 0h24v24H0V0z"}),r.createElement("path",{d:"M15 8v8H5V8h10m1-2H4c-.55 0-1 .45-1 1v10c0 .55.45 1 1 1h12c.55 0 1-.45 1-1v-3.5l4 4v-11l-4 4V7c0-.55-.45-1-1-1z"}))});Pe.displayName="Videocam";var Oe=r.forwardRef(function(e,t){var o={fill:"currentColor",xmlns:"http://www.w3.org/2000/svg"};return r.createElement(S,E({iconAttrs:o,iconVerticalAlign:"middle",iconViewBox:"0 0 24 24"},e,{ref:t}),r.createElement("rect",{width:24,height:24,fill:"none"}),r.createElement("path",{d:"M18 13h-5v5c0 .55-.45 1-1 1s-1-.45-1-1v-5H6c-.55 0-1-.45-1-1s.45-1 1-1h5V6c0-.55.45-1 1-1s1 .45 1 1v5h5c.55 0 1 .45 1 1s-.45 1-1 1z"}))});Oe.displayName="Add";var $e=r.forwardRef(function(e,t){var o={fill:"currentColor",xmlns:"http://www.w3.org/2000/svg"};return r.createElement(S,E({iconAttrs:o,iconVerticalAlign:"middle",iconViewBox:"0 0 24 24"},e,{ref:t}),r.createElement("path",{fill:"none",d:"M0 0h24v24H0V0z"}),r.createElement("path",{d:"M13 19V7.83l4.88 4.88c.39.39 1.03.39 1.42 0a.996.996 0 000-1.41l-6.59-6.59a.996.996 0 00-1.41 0l-6.6 6.58a.996.996 0 101.41 1.41L11 7.83V19c0 .55.45 1 1 1s1-.45 1-1z"}))});$e.displayName="ArrowUpward";var Xe=r.forwardRef(function(e,t){var o={fill:"currentColor",xmlns:"http://www.w3.org/2000/svg"};return r.createElement(S,E({iconAttrs:o,iconVerticalAlign:"middle",iconViewBox:"0 0 24 24"},e,{ref:t}),r.createElement("path",{fill:"none",d:"M0 0h24v24H0V0z"}),r.createElement("path",{d:"M12 2C6.47 2 2 6.47 2 12s4.47 10 10 10 10-4.47 10-10S17.53 2 12 2zm4.29 12.89a.996.996 0 11-1.41 1.41L12 13.41 9.11 16.3a.996.996 0 11-1.41-1.41L10.59 12 7.71 9.11A.996.996 0 119.12 7.7L12 10.59l2.89-2.89a.996.996 0 111.41 1.41L13.41 12l2.88 2.89z"}))});Xe.displayName="Cancel";var je=r.forwardRef(function(e,t){var o={fill:"currentColor",xmlns:"http://www.w3.org/2000/svg"};return r.createElement(S,E({iconAttrs:o,iconVerticalAlign:"middle",iconViewBox:"0 0 24 24"},e,{ref:t}),r.createElement("path",{fill:"none",d:"M0 0h24v24H0V0z"}),r.createElement("path",{d:"M18 6.7l-8.48 8.48-3.54-3.54a.996.996 0 10-1.41 1.41l4.24 4.24c.39.39 1.02.39 1.41 0l9.18-9.18a.999.999 0 00-.01-1.42c-.37-.38-1-.38-1.39.01z"}))});je.displayName="Check";var _e=r.forwardRef(function(e,t){var o={fill:"currentColor",xmlns:"http://www.w3.org/2000/svg"};return r.createElement(S,E({iconAttrs:o,iconVerticalAlign:"middle",iconViewBox:"0 0 24 24"},e,{ref:t}),r.createElement("path",{fill:"none",d:"M0 0h24v24H0V0z"}),r.createElement("path",{d:"M18.3 5.71a.996.996 0 00-1.41 0L12 10.59 7.11 5.7A.996.996 0 105.7 7.11L10.59 12 5.7 16.89a.996.996 0 101.41 1.41L12 13.41l4.89 4.89a.996.996 0 101.41-1.41L13.41 12l4.89-4.89c.38-.38.38-1.02 0-1.4z"}))});_e.displayName="Close";var Ke=r.forwardRef(function(e,t){var o={fill:"currentColor",xmlns:"http://www.w3.org/2000/svg"};return r.createElement(S,E({iconAttrs:o,iconVerticalAlign:"middle",iconViewBox:"0 0 24 24"},e,{ref:t}),r.createElement("rect",{width:24,height:24,fill:"none"}),r.createElement("path",{d:"M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm0 11c-.55 0-1-.45-1-1V8c0-.55.45-1 1-1s1 .45 1 1v4c0 .55-.45 1-1 1zm0 4c-.55 0-1-.45-1-1s.45-1 1-1 1 .45 1 1-.45 1-1 1z"}))});Ke.displayName="ErrorOutline";const _=ct.getLogger("ChatInput"),At=m("div",{target:"e15xmbo00"})({position:"relative",display:"flex",flexDirection:"column"}),Ft=m("div",{target:"e15xmbo01"})(({theme:e})=>({backgroundColor:e.colors.secondaryBg,border:`${e.sizes.borderWidth} solid`,borderColor:e.colors.widgetBorderColor??e.colors.transparent,position:"relative",display:"flex",flexDirection:"column",alignItems:"stretch",flex:1,paddingTop:e.spacing.md,paddingBottom:e.spacing.md,paddingLeft:e.spacing.lg,paddingRight:e.spacing.lg,gap:e.spacing.sm,borderRadius:e.radii.default,boxSizing:"border-box",":focus-within":{borderColor:e.colors.primary}})),Mt=m("div",{target:"e15xmbo02"})(({theme:e})=>({display:"flex",flexWrap:"wrap",gap:e.spacing.sm})),kt=m("div",{target:"e15xmbo03"})(({theme:e,isStacked:t})=>({display:"flex",flexDirection:"row",alignItems:"center",justifyContent:"space-between",width:"100%",gap:e.spacing.sm,flexWrap:t?"wrap":"nowrap"})),Tt=m("div",{target:"e15xmbo04"})(({isStacked:e})=>({flex:e?"none":1,width:e?"100%":"auto",order:e?-1:0,display:"flex",alignItems:"center",minWidth:0})),Dt=m("div",{target:"e15xmbo05"})(({theme:e})=>({display:"flex",flexDirection:"row",flexShrink:0,gap:e.spacing.sm,alignItems:"center"})),Ut=m("div",{target:"e15xmbo06"})(({theme:e})=>({display:"flex",flexDirection:"row",gap:e.spacing.sm,alignItems:"center"})),Ht=m("div",{target:"e15xmbo07"})(({theme:e})=>({position:"absolute",top:e.spacing.twoXS,right:e.spacing.lg,color:e.colors.fadedText60,fontSize:e.fontSizes.twoSm,textAlign:"right",whiteSpace:"nowrap",pointerEvents:"auto",cursor:"text",zIndex:e.zIndices.priority,"& .stChatInputInstructions":{position:"static"}})),k=m("button",{target:"e15xmbo08"})(({theme:e,disabled:t,hasError:o,primary:p})=>{if(p)return{border:"none",backgroundColor:t?e.colors.darkenedBgMix15:e.colors.primary,borderRadius:e.radii.button,display:"inline-flex",alignItems:"center",justifyContent:"center",lineHeight:e.lineHeights.none,margin:e.spacing.none,padding:e.spacing.xs,width:e.sizes.chatInputPrimaryButtonSize,height:e.sizes.chatInputPrimaryButtonSize,color:t?e.colors.fadedText40:e.colors.white,cursor:t?"not-allowed":"pointer",transition:"background-color 200ms ease","&:focus":{outline:"none"},":focus":{outline:"none"},"&:focus-visible":{boxShadow:e.shadows.focusRing},"&:hover":{backgroundColor:t?e.colors.darkenedBgMix15:e.colors.primary}};const l=()=>o?e.colors.redTextColor:t?e.colors.fadedText40:e.colors.fadedText60;return{border:"none",backgroundColor:e.colors.transparent,borderRadius:e.radii.default,display:"inline-flex",alignItems:"center",justifyContent:"center",lineHeight:e.lineHeights.none,margin:e.spacing.none,padding:e.spacing.none,color:l(),pointerEvents:"auto","&:focus":{outline:"none"},":focus":{outline:"none"},"&:focus-visible":{boxShadow:e.shadows.focusRing},"&:hover":{color:o?e.colors.redColor:e.colors.bodyText},"&:active":{color:e.colors.primary},"&:disabled, &:disabled:hover, &:disabled:active":{backgroundColor:e.colors.transparent,borderColor:e.colors.transparent,color:e.colors.fadedText40,cursor:"not-allowed"},"& svg":{width:e.iconSizes.lg,height:e.iconSizes.lg}}}),Lt=m("div",{target:"e15xmbo09"})(({isRecording:e})=>({display:e?"flex":"none",flex:1,alignItems:"center",minWidth:0})),Nt=m("div",{target:"e15xmbo010"})(({theme:e})=>({position:"relative",width:"100%",height:e.sizes.chatInputPrimaryButtonSize,borderRadius:e.radii.default,overflow:"hidden","& > div":{position:"absolute",inset:0}})),Ye=(e,t)=>t===b.Directory?{...e,webkitdirectory:"",multiple:!0}:e,Bt=(e,t)=>{if(!t||t.length===0)return!0;const o=e.name.toLowerCase(),p=o.lastIndexOf(".");if(p===-1||p===o.length-1)return t.some(d=>d===""||d===".");const l=o.substring(p),w=o.substring(p+1);return t.some(d=>{const v=d.toLowerCase();return v.startsWith(".")?l===v:w===v})},Wt=(e,t)=>Bt(e,t)?{isValid:!0}:{isValid:!1,errorMessage:`${e.type||"This type of"} files are not allowed.`},de=e=>{switch(e){case b.None:return"a file";case b.Single:return"a file";case b.Multiple:return"files";case b.Directory:return"a directory";default:return Fe(e),"a file"}},Pt=m("div",{target:"e1lsn30a0"})(({theme:e})=>({backgroundColor:e.colors.transparent,position:"absolute",inset:0,zIndex:e.zIndices.priority,borderRadius:e.radii.chatInput})),Ot=m("div",{target:"e1lsn30a1"})(({theme:e})=>({position:"absolute",inset:0,border:`${e.sizes.borderWidth} solid`,borderColor:e.colors.primary,borderRadius:e.radii.chatInput,backgroundColor:e.colors.secondaryBg,color:e.colors.primary,display:"flex",alignItems:"center",justifyContent:"center",fontWeight:e.fontWeights.bold,pointerEvents:"none",zIndex:e.zIndices.priority})),$t=m("div",{target:"e1lsn30a2"})(({disabled:e})=>({pointerEvents:e?"none":"auto"})),Xt=m("div",{target:"e1lsn30a3"})(({theme:e})=>({lineHeight:e.lineHeights.tight})),jt=m("div",{target:"e1lsn30a4"})(({theme:e})=>({display:"flex",flexWrap:"wrap",gap:e.spacing.sm})),_t=m("div",{target:"e1lsn30a5"})({flex:"0 0 auto",maxWidth:"100%"}),Kt=m("div",{target:"e1lsn30a6"})(({theme:e,isError:t,isClickable:o})=>({position:"relative",display:"inline-flex",alignItems:"center",width:"fit-content",minWidth:"9rem",maxWidth:"100%",backgroundColor:t?e.colors.redBackgroundColor:e.colors.bgColor,padding:e.spacing.twoXS,paddingRight:e.spacing.twoXL,borderRadius:e.radii.default,gap:e.spacing.sm,cursor:o?"pointer":"default"})),Yt=m("div",{target:"e1lsn30a7"})({display:"flex",flexDirection:"column",minWidth:0}),Gt=m("div",{target:"e1lsn30a8"})(({theme:e,fileStatus:t})=>({display:"flex",alignItems:"center",justifyContent:"center",borderRadius:e.radii.default,width:e.sizes.chatInputFileIconSize,height:e.sizes.chatInputFileIconSize,flexShrink:0,overflow:"hidden",...t==="uploaded"&&{backgroundColor:e.colors.bodyText,color:e.colors.bgColor},...t==="uploading"&&{backgroundColor:e.colors.fadedText10,color:e.colors.fadedText60},...t==="error"&&{backgroundColor:e.colors.redBackgroundColor,color:e.colors.redTextColor}})),qt=m("img",{target:"e1lsn30a9"})({width:"100%",height:"100%",objectFit:"cover"}),Qt=m("div",{target:"e1lsn30a10"})(({theme:e,fileStatus:t})=>({overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap",color:t.type==="uploading"?e.colors.fadedText60:e.colors.bodyText})),Jt=m("div",{target:"e1lsn30a11"})(({theme:e})=>({color:e.colors.fadedText60,fontSize:e.fontSizes.sm})),Zt=m("small",{target:"e1lsn30a12"})(({theme:e,isError:t})=>({position:"absolute",top:e.spacing.twoXS,right:e.spacing.twoXS,display:"flex",alignItems:"center",justifyContent:"center",lineHeight:0,"& button":{display:"flex",alignItems:"center",justifyContent:"center",width:"fit-content",height:"fit-content",minHeight:"unset",minWidth:"unset",maxHeight:"unset",maxWidth:"unset",borderRadius:"50%",backgroundColor:"transparent",color:t?e.colors.redTextColor:e.colors.fadedText60,padding:0,overflow:"hidden",boxSizing:"border-box",lineHeight:0,"&:hover":{backgroundColor:"transparent",color:t?e.colors.redColor:e.colors.bodyText}}})),er=m("span",{target:"e1lsn30a13"})({position:"absolute",width:"1px",height:"1px",padding:0,margin:"-1px",overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",border:0}),tr=({onDrop:e,multiple:t,accept:o,maxSize:p,acceptFile:l,disabled:w})=>{const{getRootProps:d,getInputProps:v}=ke({onDrop:e,multiple:t,accept:o,maxSize:p,useFsAccessApi:!1}),C=Ye(v(),l),c=d({tabIndex:-1});return A($t,{"data-testid":"stChatInputFileUploadButton",disabled:w,...c,children:[a("input",{...C}),a(pe,{content:`Upload or drag and drop ${de(l)}`,placement:ue.TOP,onMouseEnterDelay:500,children:a(k,{type:"button",disabled:w,"aria-label":`Upload ${de(l)}`,children:a(V,{content:Oe,size:"xl",color:"inherit"})})})]})},rr=r.memo(tr),or=({getRootProps:e,getInputProps:t,acceptFile:o})=>{const p=Ye(t(),o);return A(K,{children:[a(Pt,{...e(),children:a("input",{...p})}),a(Ot,{children:`Drag and drop ${de(o)} here`})]})},nr=r.memo(or),Ge=new Set(["jpg","jpeg","png","gif","webp","svg","bmp"]),ar=new Set(["pdf"]),ir=new Set(["csv","tsv","xlsx","xls"]),sr=new Set(["txt","md","json","xml","yaml","yml"]),lr=new Set(["py","js","ts","jsx","tsx","css","html","java","cpp","c","go","rs","rb","php","swift","kt","scala","sh","bash","sql"]),cr=new Set(["mp3","wav","m4a","ogg","flac","aac"]),dr=new Set(["mp4","webm","mov","avi","mkv","wmv"]),ur=new Set(["zip","tar","gz","rar","7z","bz2"]);function qe(e){const t=e.lastIndexOf(".");return t===-1||t===e.length-1?"":e.slice(t+1).toLowerCase()}function pr(e){const t=qe(e);return Ge.has(t)?Ne:ar.has(t)?De:ir.has(t)?Rt:sr.has(t)?He:lr.has(t)?Ue:cr.has(t)?Be:dr.has(t)?Pe:ur.has(t)?Le:Ct}function gr(e){const t=qe(e);return Ge.has(t)}const fr=20;function hr(e,t=fr){if(e.length<=t)return e;const o=e.lastIndexOf(".");if(!(o>0&&o<e.length-1)){const f=Math.floor((t-3)/2),g=f>0?e.slice(-f):"";return`${e.slice(0,f)}...${g}`}const l=e.slice(o),w=e.slice(0,o),d=t-l.length-3;if(d<=0){const f=Math.floor((t-3)/2),g=f>0?e.slice(-f):"";return`${e.slice(0,f)}...${g}`}const v=Math.ceil(d/2),C=Math.floor(d/2),c=C>0?w.slice(-C):"";return`${w.slice(0,v)}...${c}${l}`}function mr(e,t){const o=r.useMemo(()=>!e||!gr(t)?null:URL.createObjectURL(e),[e,t]);return r.useEffect(()=>()=>{o&&URL.revokeObjectURL(o)},[o]),o}const wr=({fileInfo:e,imagePreviewUrl:t})=>{const{type:o}=e.status;switch(o){case"uploading":return a(Me,{iconValue:"spinner",testid:"stChatInputFileIconSpinner",size:"lg"});case"error":return a(V,{content:Vt,size:"lg",testid:"stChatInputFileIconError"});case"uploaded":return t?a(qt,{src:t,alt:e.name,"data-testid":"stChatInputFileImagePreview"}):a(V,{content:pr(e.name),size:"lg"});default:return Fe(o),null}},vr=({fileInfo:e,onDelete:t,onRetry:o})=>{const p=e.status.type,l=p==="error",w=p==="uploading",d=l&&o!==void 0&&e.file!==void 0,v=r.useId(),C=mr(e.file,e.name),c=e.status.type==="error"?e.status.errorMessage:"Upload failed",f=r.useCallback(()=>{d&&o(e)},[d,o,e]),g=r.useCallback(x=>{d&&(x.key==="Enter"||x.key===" ")&&(x.preventDefault(),o(e))},[d,o,e]),h=r.useCallback(x=>{x.stopPropagation(),t(e.id)},[t,e.id]),T=w?`Cancel upload of ${e.name}`:`Remove ${e.name}`,G=Ve(e.size,Y.Byte),W=`${e.name}, ${G}`,D=A(Kt,{className:"stChatInputFile","data-testid":"stChatInputFile",isError:l,isClickable:d,onClick:d?f:void 0,onKeyDown:d?g:void 0,title:d?"Click to retry upload":void 0,role:d?"button":void 0,tabIndex:d?0:void 0,"aria-label":W,"aria-invalid":l||void 0,"aria-describedby":l?v:void 0,children:[a(Gt,{fileStatus:p,children:a(wr,{fileInfo:e,imagePreviewUrl:C})}),A(Yt,{children:[a(Qt,{className:"stChatInputFileName","data-testid":"stChatInputFileName",title:e.name,fileStatus:e.status,children:hr(e.name)}),a(Jt,{children:Ve(e.size,Y.Byte)})]}),a(Zt,{"data-testid":"stChatInputDeleteBtn",isError:l,children:a(dt,{onClick:h,kind:ut.MINIMAL,"aria-label":T,children:a(V,{content:Xe,size:"md"})})}),l&&A(er,{id:v,role:"alert",children:["Error: ",c]})]});return l?a(pe,{content:c,placement:ue.TOP,error:!0,children:D}):D},Cr=r.memo(vr),xr=({items:e,onDelete:t,onRetry:o})=>a(Xt,{"data-testid":"stChatUploadedFiles",children:a(jt,{children:e.map(p=>a(_t,{children:a(Cr,{fileInfo:p,onDelete:t,onRetry:o})},p.id))})}),yr=r.memo(xr),br=(e,t,o)=>{const p=[],l=[];return e.forEach(w=>{if(w.size>o){l.push({file:w,errors:[{code:ce.FileTooLarge,message:`File is too large. Maximum size is ${o} bytes.`}]});return}const d=Wt(w,t.fileType);if(!d.isValid){l.push({file:w,errors:[{code:ce.FileInvalidType,message:d.errorMessage||"File type not allowed."}]});return}p.push(w)}),{accepted:p,rejected:l}},Sr=({acceptMultipleFiles:e,maxFileSize:t,uploadClient:o,uploadFile:p,addFiles:l,getNextLocalFileId:w,deleteExistingFiles:d,onUploadComplete:v,element:C})=>(c,f)=>{if(c.length>0){const{accepted:g,rejected:h}=br(c,C,t);c=g,f=[...f,...h]}if(!e&&c.length===0&&f.length>1){const g=f.findIndex(h=>h.errors?.[0].code===ce.TooManyFiles);g>=0&&(c.push(f[g].file),f.splice(g,1))}if(!e&&c.length>0&&d(),o.fetchFileURLs(c).then(g=>{pt(g,c).forEach(([h,T])=>{p(h,T)})}).catch(g=>{l(c.map(h=>new Te(h.name,h.size,w(),{type:"error",errorMessage:g},h)))}),f.length>0){const g=f.map(h=>xt(h,w(),t));l(g)}v()},Er=({getNextLocalFileId:e,addFiles:t,updateFile:o,uploadClient:p,element:l,onUploadProgress:w,onUploadComplete:d})=>(v,C)=>{const c=C.webkitRelativePath||C.name,f=new AbortController,g=new Te(c,C.size,e(),{type:"uploading",abortController:f,progress:1},C);t([g]),p.uploadFile({formId:"",...l},v.uploadUrl,C,h=>w(h,g.id),f.signal).then(()=>d(g.id,v)).catch(h=>{h instanceof DOMException&&h.name==="AbortError"||o(g.id,g.setStatus({type:"error",errorMessage:h?h.toString():"Unknown error"}))})};function Ir(e,t,o){return{Root:{style:{minHeight:e.sizes.chatInputTextareaMinHeight,outline:"none",borderLeftWidth:"0",borderRightWidth:"0",borderTopWidth:"0",borderBottomWidth:"0",borderTopLeftRadius:"0",borderTopRightRadius:"0",borderBottomRightRadius:"0",borderBottomLeftRadius:"0",...o}},Input:{props:{"data-testid":"stChatInputTextArea"},style:{fontWeight:e.fontWeights.normal,lineHeight:e.lineHeights.inputWidget,"::placeholder":{color:e.colors.fadedText60},height:t.isExtended?t.height:"auto",maxHeight:t.maxHeight,overflowY:"auto",paddingLeft:e.spacing.none,paddingRight:e.spacing.none,paddingBottom:e.spacing.twoXS,paddingTop:e.spacing.twoXS,width:"100%"}}}}const se=(e,t,o)=>o.map(p=>p.id===e?t:p),le=(e,t)=>t.find(o=>o.id===e);function zr({disabled:e,element:t,widgetMgr:o,fragmentId:p,uploadClient:l}){const w=gt(),{placeholder:d,maxChars:v}=t,C=r.useRef(0),c=r.useRef(null),f=r.useRef(!1),g=r.useRef(null),h=r.useRef(null),{width:T,elementRef:G}=ft(),{innerWidth:W,innerHeight:D}=ht(),[x,q]=r.useState(t.default),[z,F]=r.useState([]),[U,Q]=r.useState(!1),[H,ge]=r.useState(!1),[J,L]=r.useState(null),[M,Z]=r.useState(!1),[Qe,fe]=r.useState(0),ee=t.acceptAudio??!1;r.useEffect(()=>()=>{h.current&&h.current.abort()},[]);const P=Et({textareaRef:c,dependencies:[d,M]}),O=r.useRef(""),$=r.useRef(0),te=r.useRef(null),he=r.useRef(null),N=r.useCallback(n=>{const i=getComputedStyle(n);O.current=`${i.fontWeight} ${i.fontSize} ${i.fontFamily}`;const u=parseFloat(i.paddingLeft)||0,s=parseFloat(i.paddingRight)||0;$.current=n.clientWidth-u-s},[]);r.useLayoutEffect(()=>{const n=c.current;if(!n)return;N(n);const i=new ResizeObserver(()=>N(n));return i.observe(n),()=>i.disconnect()},[N,M]),r.useEffect(()=>{if(x===""){Z(!1);return}if(M)return;const n=c.current;if(!n||(($.current<=0||!O.current)&&N(n),$.current<=0||!O.current))return;te.current||(te.current=document.createElement("canvas"),he.current=te.current.getContext("2d"));const i=he.current;i&&(i.font=O.current,i.measureText(x).width>$.current-10&&Z(!0))},[x,M,N]);const X=r.useMemo(()=>z.some(n=>n.status.type==="uploading")?!1:x!==""||z.length>0,[z,x]),I=mt(t.acceptFile),re=yt(t.maxUploadSizeMb,Y.Megabyte,Y.Byte),me=r.useCallback(n=>F(i=>[...i,...n]),[]),we=r.useCallback(n=>{n.status.type==="uploading"&&n.status.abortController.abort(),n.status.type==="uploaded"&&n.status.fileUrls.deleteUrl&&l.deleteFile(n.status.fileUrls.deleteUrl).catch(i=>{_.error("Failed to delete file from server:",i)})},[l]),ve=r.useCallback(n=>{F(i=>{const u=le(n,i);if(ie(u))return i;we(u);const s=i.filter(y=>y.id!==n);return s.length===0&&fe(y=>y+1),s})},[we]),oe=r.useRef(null),Je=r.useCallback(n=>{!n.file||n.status.type!=="error"||(F(i=>i.filter(u=>u.id!==n.id)),oe.current&&oe.current([n.file],[]))},[]),Ce=r.useCallback(()=>{const n=z.filter(i=>i.status.type==="uploaded").map(i=>{const{name:u,size:s,status:y}=i,{fileId:ae,fileUrls:lt}=y;return new Re({fileId:ae,fileUrls:lt,name:u,size:s})});return new wt({uploadedFileInfo:n})},[z]),xe=()=>C.current++,ne=Sr({acceptMultipleFiles:I===b.Multiple||I===b.Directory,maxFileSize:re,uploadClient:l,uploadFile:Er({getNextLocalFileId:xe,addFiles:me,updateFile:(n,i)=>{F(u=>se(n,i,u))},uploadClient:l,element:t,onUploadProgress:(n,i)=>{F(u=>{const s=le(i,u);if(ie(s)||s.status.type!=="uploading")return u;const y=Math.round(n.loaded*100/n.total);return s.status.progress===y?u:se(i,s.setStatus({type:"uploading",abortController:s.status.abortController,progress:y}),u)})},onUploadComplete:(n,i)=>{F(u=>{const s=le(n,u);return ie(s)||s.status.type!=="uploading"?u:se(s.id,s.setStatus({type:"uploaded",fileId:i.fileId,fileUrls:i}),u)})}}),addFiles:me,getNextLocalFileId:xe,deleteExistingFiles:()=>z.forEach(n=>ve(n.id)),onUploadComplete:()=>{c.current&&c.current.focus()},element:t});oe.current=ne;const{getRootProps:Ze,getInputProps:et}=ke({onDrop:ne,multiple:I===b.Multiple||I===b.Directory,accept:Ae(t.fileType),maxSize:re,useFsAccessApi:!1}),j=r.useCallback(n=>{if(c.current&&c.current.focus(),!X&&!n||e)return;const i=Ce(),u={data:x,fileUploaderState:i,audioFileInfo:n};o.setChatInputValue(t,u,{fromUi:!0},p),z.length>0&&fe(s=>s+1),F([]),q(""),Z(!1),P.clearScrollHeight()},[X,e,x,z.length,Ce,o,t,p,P]),ye=r.useCallback(async n=>{const i=new Date().toISOString().replace(/[:.]/g,"-"),u=new File([n],`audio-${i}.wav`,{type:"audio/wav"});try{ge(!0);const s=await l.fetchFileURLs([u]);if(s.length===0)throw new Error("Failed to get upload URL for audio file");const y=s[0];h.current=new AbortController,await l.uploadFile({formId:"",...t},y.uploadUrl,u,()=>{},h.current.signal);const ae=new Re({fileId:y.fileId,fileUrls:y,name:u.name,size:u.size});j(ae)}catch(s){const y="Recording failed";_.error("Audio upload failed:",s),L(y),c.current&&c.current.focus()}finally{ge(!1)}},[l,t,j]),tt=r.useMemo(()=>({onApprove:ye,onPermissionDenied:()=>{const n="Microphone access denied";L(n),_.error("Permission denied:",n)},onError:n=>{L("Recording failed"),_.error("Recording error:",n)},onRecordStart:()=>{L(null)}}),[ye]),R=bt({containerRef:g,sampleRate:t.audioSampleRate??void 0,events:tt}),be=r.useCallback(()=>{j()},[j]),rt=n=>{const{metaKey:i,ctrlKey:u,shiftKey:s}=n;zt(n)&&!s&&!u&&!i&&(n.preventDefault(),be())},ot=n=>{const{value:i}=n.target;v!==0&&i.length>v||(q(i),P.updateScrollHeight(),J&&L(null))},Se=r.useCallback(async n=>{n.preventDefault(),n.stopPropagation(),!(!ee||e||R.state==="recording")&&await R.start()},[ee,e,R]),nt=r.useCallback(()=>{R.cancel(),c.current&&c.current.focus()},[R]),Ee=r.useCallback(async()=>{const{blob:n}=await R.stop();await R.approve(n)},[R]),Ie=r.useCallback(n=>{Se(n)},[Se]),at=r.useCallback(()=>{Ee()},[Ee]),it=r.useCallback(()=>{c.current&&c.current.focus()},[]);r.useEffect(()=>{if(t.setValue&&!f.current){f.current=!0;const n=t.value||"";q(n)}},[t.setValue,t.value]),r.useEffect(()=>{f.current=!1},[t]),r.useEffect(()=>{const n=s=>{s.preventDefault(),s.stopPropagation(),!U&&s.dataTransfer?.types.includes("Files")&&Q(!0)},i=s=>{s.preventDefault(),s.stopPropagation(),U&&(s.clientX<=0&&s.clientY<=0||s.clientX>=W&&s.clientY>=D)&&Q(!1)},u=s=>{s.preventDefault(),s.stopPropagation(),U&&Q(!1)};return window.addEventListener("dragover",n),window.addEventListener("drop",u),window.addEventListener("dragleave",i),()=>{window.removeEventListener("dragover",n),window.removeEventListener("drop",u),window.removeEventListener("dragleave",i)}},[U,W,D]);const st=I!==b.None&&U,B=R.state==="recording",ze=!B&&T>vt(w.breakpoints.hideWidgetDetails)&&v>0;return a(At,{className:"stChatInput","data-testid":"stChatInput",ref:G,children:A(Ft,{children:[ze&&a(Ht,{onClick:it,id:"stChatInputInstructions",children:a(St,{dirty:X,value:x,maxLength:v,type:"chat",inForm:!1,className:"stChatInputInstructions"})}),st&&a(nr,{getRootProps:Ze,getInputProps:et,acceptFile:I}),I!==b.None&&z.length>0&&a(Mt,{children:a(yr,{items:[...z],onDelete:ve,onRetry:Je})}),A(kt,{isStacked:M,children:[a(Dt,{children:I!==b.None&&!B&&a(rr,{onDrop:ne,multiple:I===b.Multiple||I===b.Directory,accept:Ae(t.fileType),maxSize:re,acceptFile:I,disabled:e},Qe)}),a(Lt,{isRecording:B,children:a(Nt,{ref:g})}),!B&&a(Tt,{isStacked:M,children:a(It,{inputRef:c,value:x,placeholder:d,onChange:ot,onKeyDown:rt,"aria-label":d,disabled:e,rows:1,"aria-describedby":ze?"stChatInputInstructions":void 0,overrides:Ir(w,P,{width:"100%"})})}),a(Ut,{children:B?A(K,{children:[a(k,{onClick:nt,disabled:e,"data-testid":"stChatInputCancelButton","aria-label":"Cancel recording",children:a(V,{content:_e,size:"lg",color:"inherit"})}),a(k,{onClick:at,disabled:e||H,"data-testid":"stChatInputApproveButton","aria-label":"Submit recording",children:H?a(Me,{size:"lg",iconValue:"spinner"}):a(V,{content:je,size:"lg",color:"inherit"})})]}):A(K,{children:[ee&&a(K,{children:J?a(pe,{content:J,placement:ue.TOP,error:!0,children:a(k,{onClick:Ie,disabled:e||H,hasError:!0,"data-testid":"stChatInputMicButton","aria-label":"Start recording",children:a(V,{content:Ke,size:"xl",color:"inherit"})})}):a(k,{onClick:Ie,disabled:e||H,"data-testid":"stChatInputMicButton","aria-label":"Start recording",children:a(V,{content:We,size:"xl",color:"inherit"})})}),a(k,{onClick:be,disabled:!X||e||H,"data-testid":"stChatInputSubmitButton","aria-label":"Send message",primary:!0,children:a(V,{content:$e,size:"lg",color:"inherit"})})]})})]})]})})}const Lr=r.memo(zr);export{Lr as default};
@@ -1 +1 @@
1
- import{z as c,ah as e,c as t,r as n,B as l,j as a,u as C,a as x,D as L,d as S}from"./index.BB_iwaVr.js";import{m as $}from"./iconPosition.D02OPE-d.js";function R(o,r){switch(o){case t.XSMALL:return{padding:`${r.spacing.twoXS} ${r.spacing.sm}`,fontSize:r.fontSizes.sm};case t.SMALL:return{padding:`${r.spacing.twoXS} ${r.spacing.md}`};case t.LARGE:return{padding:`${r.spacing.md} ${r.spacing.md}`};default:return{padding:`${r.spacing.xs} ${r.spacing.md}`}}}const f=c("a",{target:"e1hofpsd0"})(({containerWidth:o,size:r,theme:i})=>({display:"inline-flex",alignItems:"center",justifyContent:"center",fontWeight:i.fontWeights.normal,padding:`${i.spacing.xs} ${i.spacing.md}`,borderRadius:i.radii.button,minHeight:i.sizes.minElementHeight,margin:0,lineHeight:i.lineHeights.base,color:i.colors.primary,textDecoration:"none",width:o?"100%":"auto",userSelect:"none","&:visited":{color:i.colors.primary},"&:focus":{outline:"none"},"&:focus-visible":{boxShadow:i.shadows.focusRing},"&:hover":{textDecoration:"none"},"&:active":{textDecoration:"none"},...R(r,i)})),T=c(f,{target:"e1hofpsd1"})(({theme:o})=>({backgroundColor:o.colors.primary,color:o.colors.white,border:`${o.sizes.borderWidth} solid ${o.colors.primary}`,"&:hover, &:focus-visible":{backgroundColor:e(o.colors.primary,.15),borderColor:e(o.colors.primary,.15)},"&:active":{backgroundColor:o.colors.primary,borderColor:e(o.colors.primary,.15)},"&:visited:not(:active)":{color:o.colors.white},"&[disabled], &[disabled]:hover, &[disabled]:active, &[disabled]:visited":{borderColor:o.colors.borderColor,backgroundColor:o.colors.transparent,color:o.colors.fadedText40,cursor:"not-allowed"}})),w=c(f,{target:"e1hofpsd2"})(({theme:o})=>({backgroundColor:o.colors.lightenedBg05,color:o.colors.bodyText,border:`${o.sizes.borderWidth} solid ${o.colors.borderColor}`,"&:visited":{color:o.colors.bodyText},"&:hover, &:focus-visible":{backgroundColor:o.colors.darkenedBgMix15},"&:active":{backgroundColor:o.colors.darkenedBgMix25},"&[disabled], &[disabled]:hover, &[disabled]:active":{borderColor:o.colors.borderColor,backgroundColor:o.colors.transparent,color:o.colors.fadedText40,cursor:"not-allowed"}})),z=c(f,{target:"e1hofpsd3"})(({theme:o})=>({padding:o.spacing.none,backgroundColor:o.colors.transparent,color:o.colors.bodyText,border:"none","&:visited":{color:o.colors.bodyText},"&:hover, &:focus-visible":{color:o.colors.primary},"&:hover:not([disabled]), &:focus-visible:not([disabled])":{"span.stMarkdownColoredText":{color:"inherit !important"}},"&:active":{color:e(o.colors.primary,.25)},"&[disabled], &[disabled]:hover, &[disabled]:active":{backgroundColor:o.colors.transparent,color:o.colors.fadedText40,cursor:"not-allowed"}})),y=n.forwardRef(function({kind:r,size:i,disabled:s,children:d,autoFocus:u,href:b,rel:p,target:k,onClick:B},v){let g=T;return r===l.SECONDARY?g=w:r===l.TERTIARY&&(g=z),a(g,{ref:v,kind:r,size:i||t.MEDIUM,containerWidth:!0,disabled:s||!1,autoFocus:u||!1,href:b,target:k,rel:p,onClick:B,tabIndex:s?-1:0,"data-testid":`stBaseLinkButton-${r}`,children:d})});y.displayName="BaseLinkButton";const A=n.memo(y);function D(o){const{element:r}=o,i=r.shortcut?r.shortcut:void 0;let s=l.SECONDARY;r.type==="primary"?s=l.PRIMARY:r.type==="tertiary"&&(s=l.TERTIARY);const d=n.useRef(null),u=n.useCallback(()=>{r.disabled||d.current?.click()},[r.disabled]),b=n.useCallback(p=>{r.disabled&&p.preventDefault()},[r.disabled]);return C({shortcut:i,disabled:r.disabled,onActivate:u}),a(S,{className:"stLinkButton","data-testid":"stLinkButton",children:a(x,{help:r.help,containerWidth:!0,children:a(A,{ref:d,kind:s,size:t.SMALL,disabled:r.disabled,onClick:b,href:r.url,target:"_blank",rel:"noreferrer","aria-disabled":r.disabled,children:a(L,{icon:r.icon,iconPosition:$(r.iconPosition),label:r.label,shortcut:i})})})})}const I=n.memo(D);export{I as default};
1
+ import{z as c,ah as e,c as t,r as n,B as l,j as a,u as C,a as x,D as L,d as S}from"./index.aCorc3Yt.js";import{m as $}from"./iconPosition.2YynQUxu.js";function R(o,r){switch(o){case t.XSMALL:return{padding:`${r.spacing.twoXS} ${r.spacing.sm}`,fontSize:r.fontSizes.sm};case t.SMALL:return{padding:`${r.spacing.twoXS} ${r.spacing.md}`};case t.LARGE:return{padding:`${r.spacing.md} ${r.spacing.md}`};default:return{padding:`${r.spacing.xs} ${r.spacing.md}`}}}const f=c("a",{target:"e1hofpsd0"})(({containerWidth:o,size:r,theme:i})=>({display:"inline-flex",alignItems:"center",justifyContent:"center",fontWeight:i.fontWeights.normal,padding:`${i.spacing.xs} ${i.spacing.md}`,borderRadius:i.radii.button,minHeight:i.sizes.minElementHeight,margin:0,lineHeight:i.lineHeights.base,color:i.colors.primary,textDecoration:"none",width:o?"100%":"auto",userSelect:"none","&:visited":{color:i.colors.primary},"&:focus":{outline:"none"},"&:focus-visible":{boxShadow:i.shadows.focusRing},"&:hover":{textDecoration:"none"},"&:active":{textDecoration:"none"},...R(r,i)})),T=c(f,{target:"e1hofpsd1"})(({theme:o})=>({backgroundColor:o.colors.primary,color:o.colors.white,border:`${o.sizes.borderWidth} solid ${o.colors.primary}`,"&:hover, &:focus-visible":{backgroundColor:e(o.colors.primary,.15),borderColor:e(o.colors.primary,.15)},"&:active":{backgroundColor:o.colors.primary,borderColor:e(o.colors.primary,.15)},"&:visited:not(:active)":{color:o.colors.white},"&[disabled], &[disabled]:hover, &[disabled]:active, &[disabled]:visited":{borderColor:o.colors.borderColor,backgroundColor:o.colors.transparent,color:o.colors.fadedText40,cursor:"not-allowed"}})),w=c(f,{target:"e1hofpsd2"})(({theme:o})=>({backgroundColor:o.colors.lightenedBg05,color:o.colors.bodyText,border:`${o.sizes.borderWidth} solid ${o.colors.borderColor}`,"&:visited":{color:o.colors.bodyText},"&:hover, &:focus-visible":{backgroundColor:o.colors.darkenedBgMix15},"&:active":{backgroundColor:o.colors.darkenedBgMix25},"&[disabled], &[disabled]:hover, &[disabled]:active":{borderColor:o.colors.borderColor,backgroundColor:o.colors.transparent,color:o.colors.fadedText40,cursor:"not-allowed"}})),z=c(f,{target:"e1hofpsd3"})(({theme:o})=>({padding:o.spacing.none,backgroundColor:o.colors.transparent,color:o.colors.bodyText,border:"none","&:visited":{color:o.colors.bodyText},"&:hover, &:focus-visible":{color:o.colors.primary},"&:hover:not([disabled]), &:focus-visible:not([disabled])":{"span.stMarkdownColoredText":{color:"inherit !important"}},"&:active":{color:e(o.colors.primary,.25)},"&[disabled], &[disabled]:hover, &[disabled]:active":{backgroundColor:o.colors.transparent,color:o.colors.fadedText40,cursor:"not-allowed"}})),y=n.forwardRef(function({kind:r,size:i,disabled:s,children:d,autoFocus:u,href:b,rel:p,target:k,onClick:B},v){let g=T;return r===l.SECONDARY?g=w:r===l.TERTIARY&&(g=z),a(g,{ref:v,kind:r,size:i||t.MEDIUM,containerWidth:!0,disabled:s||!1,autoFocus:u||!1,href:b,target:k,rel:p,onClick:B,tabIndex:s?-1:0,"data-testid":`stBaseLinkButton-${r}`,children:d})});y.displayName="BaseLinkButton";const A=n.memo(y);function D(o){const{element:r}=o,i=r.shortcut?r.shortcut:void 0;let s=l.SECONDARY;r.type==="primary"?s=l.PRIMARY:r.type==="tertiary"&&(s=l.TERTIARY);const d=n.useRef(null),u=n.useCallback(()=>{r.disabled||d.current?.click()},[r.disabled]),b=n.useCallback(p=>{r.disabled&&p.preventDefault()},[r.disabled]);return C({shortcut:i,disabled:r.disabled,onActivate:u}),a(S,{className:"stLinkButton","data-testid":"stLinkButton",children:a(x,{help:r.help,containerWidth:!0,children:a(A,{ref:d,kind:s,size:t.SMALL,disabled:r.disabled,onClick:b,href:r.url,target:"_blank",rel:"noreferrer","aria-disabled":r.disabled,children:a(L,{icon:r.icon,iconPosition:$(r.iconPosition),label:r.label,shortcut:i})})})})}const I=n.memo(D);export{I as default};
@@ -1,2 +1,2 @@
1
- import{w as v,r as l,x as q,y as w,A as p}from"./index.BB_iwaVr.js";import{R as C,I as S,g as J,B as M}from"./base-input.7Sj6pVk0.js";function _(e){"@babel/helpers - typeof";return _=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},_(e)}var U=["Root","StartEnhancer","EndEnhancer"],Z=["startEnhancer","endEnhancer","overrides"];function f(){return f=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},f.apply(this,arguments)}function O(e,t){return V(e)||Q(e,t)||K(e,t)||G()}function G(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
1
+ import{w as v,r as l,x as q,y as w,A as p}from"./index.aCorc3Yt.js";import{R as C,I as S,g as J,B as M}from"./base-input.Cs-E6S71.js";function _(e){"@babel/helpers - typeof";return _=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},_(e)}var U=["Root","StartEnhancer","EndEnhancer"],Z=["startEnhancer","endEnhancer","overrides"];function f(){return f=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},f.apply(this,arguments)}function O(e,t){return V(e)||Q(e,t)||K(e,t)||G()}function G(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
2
2
  In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function K(e,t){if(e){if(typeof e=="string")return j(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return j(e,t)}}function j(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function Q(e,t){var r=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(r!=null){var n=[],o=!0,a=!1,i,u;try{for(r=r.call(e);!(o=(i=r.next()).done)&&(n.push(i.value),!(t&&n.length===t));o=!0);}catch(b){a=!0,u=b}finally{try{!o&&r.return!=null&&r.return()}finally{if(a)throw u}}return n}}function V(e){if(Array.isArray(e))return e}function I(e,t){if(e==null)return{};var r=X(e,t),n,o;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(o=0;o<a.length;o++)n=a[o],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function X(e,t){if(e==null)return{};var r={},n=Object.keys(e),o,a;for(a=0;a<n.length;a++)o=n[a],!(t.indexOf(o)>=0)&&(r[o]=e[o]);return r}function Y(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function ee(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function te(e,t,r){return t&&ee(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function re(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&m(e,t)}function m(e,t){return m=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,o){return n.__proto__=o,n},m(e,t)}function ne(e){var t=ae();return function(){var n=h(e),o;if(t){var a=h(this).constructor;o=Reflect.construct(n,arguments,a)}else o=n.apply(this,arguments);return oe(this,o)}}function oe(e,t){if(t&&(_(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return y(e)}function y(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function ae(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function h(e){return h=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},h(e)}function d(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var ie=(function(e){re(r,e);var t=ne(r);function r(){var n;Y(this,r);for(var o=arguments.length,a=new Array(o),i=0;i<o;i++)a[i]=arguments[i];return n=t.call.apply(t,[this].concat(a)),d(y(n),"state",{isFocused:n.props.autoFocus||!1}),d(y(n),"onFocus",function(u){n.setState({isFocused:!0}),n.props.onFocus(u)}),d(y(n),"onBlur",function(u){n.setState({isFocused:!1}),n.props.onBlur(u)}),n}return te(r,[{key:"render",value:function(){var o=this.props,a=o.startEnhancer,i=o.endEnhancer,u=o.overrides,b=u.Root,A=u.StartEnhancer,x=u.EndEnhancer,B=I(u,U),F=I(o,Z),T=v(b,C),g=O(T,2),$=g[0],N=g[1],D=v(A,S),E=O(D,2),W=E[0],z=E[1],H=v(x,S),P=O(H,2),L=P[0],k=P[1],c=J(this.props,this.state);return l.createElement($,f({"data-baseweb":"input"},c,N,{$adjoined:R(a,i),$hasIconTrailing:this.props.clearable||this.props.type=="password"}),s(a)&&l.createElement(W,f({},c,z,{$position:w.start}),typeof a=="function"?a(c):a),l.createElement(M,f({},F,{overrides:B,adjoined:R(a,i),onFocus:this.onFocus,onBlur:this.onBlur})),s(i)&&l.createElement(L,f({},c,k,{$position:w.end}),typeof i=="function"?i(c):i))}}]),r})(l.Component);d(ie,"defaultProps",{autoComplete:"on",autoFocus:!1,disabled:!1,name:"",onBlur:function(){},onFocus:function(){},overrides:{},required:!1,size:q.default,startEnhancer:null,endEnhancer:null,clearable:!1,type:"text",readOnly:!1});function R(e,t){return s(e)&&s(t)?p.both:s(e)?p.left:s(t)?p.right:p.none}function s(e){return!!(e||e===0)}export{ie as I};
@@ -1,4 +1,4 @@
1
- import{al as Ot,ag as Ct}from"./index.BB_iwaVr.js";var ut={exports:{}},St=ut.exports,yt;function wt(){return yt||(yt=1,(function(gt,Mt){(function(ht,i){gt.exports=i(Ot())})(St,(function(ht){return(function(i){var r={};function e(s){if(r[s])return r[s].exports;var u=r[s]={i:s,l:!1,exports:{}};return i[s].call(u.exports,u,u.exports,e),u.l=!0,u.exports}return e.m=i,e.c=r,e.d=function(s,u,p){e.o(s,u)||Object.defineProperty(s,u,{enumerable:!0,get:p})},e.r=function(s){typeof Symbol<"u"&&Symbol.toStringTag&&Object.defineProperty(s,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(s,"__esModule",{value:!0})},e.t=function(s,u){if(1&u&&(s=e(s)),8&u||4&u&&typeof s=="object"&&s&&s.__esModule)return s;var p=Object.create(null);if(e.r(p),Object.defineProperty(p,"default",{enumerable:!0,value:s}),2&u&&typeof s!="string")for(var f in s)e.d(p,f,(function(d){return s[d]}).bind(null,f));return p},e.n=function(s){var u=s&&s.__esModule?function(){return s.default}:function(){return s};return e.d(u,"a",u),u},e.o=function(s,u){return Object.prototype.hasOwnProperty.call(s,u)},e.p="",e(e.s=48)})([function(i,r){i.exports=ht},function(i,r){var e=i.exports={version:"2.6.12"};typeof __e=="number"&&(__e=e)},function(i,r,e){var s=e(26)("wks"),u=e(17),p=e(3).Symbol,f=typeof p=="function";(i.exports=function(d){return s[d]||(s[d]=f&&p[d]||(f?p:u)("Symbol."+d))}).store=s},function(i,r){var e=i.exports=typeof window<"u"&&window.Math==Math?window:typeof self<"u"&&self.Math==Math?self:Function("return this")();typeof __g=="number"&&(__g=e)},function(i,r,e){i.exports=!e(8)((function(){return Object.defineProperty({},"a",{get:function(){return 7}}).a!=7}))},function(i,r){var e={}.hasOwnProperty;i.exports=function(s,u){return e.call(s,u)}},function(i,r,e){var s=e(7),u=e(16);i.exports=e(4)?function(p,f,d){return s.f(p,f,u(1,d))}:function(p,f,d){return p[f]=d,p}},function(i,r,e){var s=e(10),u=e(35),p=e(23),f=Object.defineProperty;r.f=e(4)?Object.defineProperty:function(d,b,E){if(s(d),b=p(b,!0),s(E),u)try{return f(d,b,E)}catch{}if("get"in E||"set"in E)throw TypeError("Accessors not supported!");return"value"in E&&(d[b]=E.value),d}},function(i,r){i.exports=function(e){try{return!!e()}catch{return!0}}},function(i,r,e){var s=e(40),u=e(22);i.exports=function(p){return s(u(p))}},function(i,r,e){var s=e(11);i.exports=function(u){if(!s(u))throw TypeError(u+" is not an object!");return u}},function(i,r){i.exports=function(e){return typeof e=="object"?e!==null:typeof e=="function"}},function(i,r){i.exports={}},function(i,r,e){var s=e(39),u=e(27);i.exports=Object.keys||function(p){return s(p,u)}},function(i,r){i.exports=!0},function(i,r,e){var s=e(3),u=e(1),p=e(53),f=e(6),d=e(5),b=function(E,_,P){var D,V,Q,L=E&b.F,Z=E&b.G,t=E&b.S,F=E&b.P,R=E&b.B,B=E&b.W,N=Z?u:u[_]||(u[_]={}),j=N.prototype,C=Z?s:t?s[_]:(s[_]||{}).prototype;for(D in Z&&(P=_),P)(V=!L&&C&&C[D]!==void 0)&&d(N,D)||(Q=V?C[D]:P[D],N[D]=Z&&typeof C[D]!="function"?P[D]:R&&V?p(Q,s):B&&C[D]==Q?(function(M){var z=function(g,$,K){if(this instanceof M){switch(arguments.length){case 0:return new M;case 1:return new M(g);case 2:return new M(g,$)}return new M(g,$,K)}return M.apply(this,arguments)};return z.prototype=M.prototype,z})(Q):F&&typeof Q=="function"?p(Function.call,Q):Q,F&&((N.virtual||(N.virtual={}))[D]=Q,E&b.R&&j&&!j[D]&&f(j,D,Q)))};b.F=1,b.G=2,b.S=4,b.P=8,b.B=16,b.W=32,b.U=64,b.R=128,i.exports=b},function(i,r){i.exports=function(e,s){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:s}}},function(i,r){var e=0,s=Math.random();i.exports=function(u){return"Symbol(".concat(u===void 0?"":u,")_",(++e+s).toString(36))}},function(i,r,e){var s=e(22);i.exports=function(u){return Object(s(u))}},function(i,r){r.f={}.propertyIsEnumerable},function(i,r,e){var s=e(52)(!0);e(34)(String,"String",(function(u){this._t=String(u),this._i=0}),(function(){var u,p=this._t,f=this._i;return f>=p.length?{value:void 0,done:!0}:(u=s(p,f),this._i+=u.length,{value:u,done:!1})}))},function(i,r){var e=Math.ceil,s=Math.floor;i.exports=function(u){return isNaN(u=+u)?0:(u>0?s:e)(u)}},function(i,r){i.exports=function(e){if(e==null)throw TypeError("Can't call method on "+e);return e}},function(i,r,e){var s=e(11);i.exports=function(u,p){if(!s(u))return u;var f,d;if(p&&typeof(f=u.toString)=="function"&&!s(d=f.call(u))||typeof(f=u.valueOf)=="function"&&!s(d=f.call(u))||!p&&typeof(f=u.toString)=="function"&&!s(d=f.call(u)))return d;throw TypeError("Can't convert object to primitive value")}},function(i,r){var e={}.toString;i.exports=function(s){return e.call(s).slice(8,-1)}},function(i,r,e){var s=e(26)("keys"),u=e(17);i.exports=function(p){return s[p]||(s[p]=u(p))}},function(i,r,e){var s=e(1),u=e(3),p=u["__core-js_shared__"]||(u["__core-js_shared__"]={});(i.exports=function(f,d){return p[f]||(p[f]=d!==void 0?d:{})})("versions",[]).push({version:s.version,mode:e(14)?"pure":"global",copyright:"© 2020 Denis Pushkarev (zloirock.ru)"})},function(i,r){i.exports="constructor,hasOwnProperty,isPrototypeOf,propertyIsEnumerable,toLocaleString,toString,valueOf".split(",")},function(i,r,e){var s=e(7).f,u=e(5),p=e(2)("toStringTag");i.exports=function(f,d,b){f&&!u(f=b?f:f.prototype,p)&&s(f,p,{configurable:!0,value:d})}},function(i,r,e){e(62);for(var s=e(3),u=e(6),p=e(12),f=e(2)("toStringTag"),d="CSSRuleList,CSSStyleDeclaration,CSSValueList,ClientRectList,DOMRectList,DOMStringList,DOMTokenList,DataTransferItemList,FileList,HTMLAllCollection,HTMLCollection,HTMLFormElement,HTMLSelectElement,MediaList,MimeTypeArray,NamedNodeMap,NodeList,PaintRequestList,Plugin,PluginArray,SVGLengthList,SVGNumberList,SVGPathSegList,SVGPointList,SVGStringList,SVGTransformList,SourceBufferList,StyleSheetList,TextTrackCueList,TextTrackList,TouchList".split(","),b=0;b<d.length;b++){var E=d[b],_=s[E],P=_&&_.prototype;P&&!P[f]&&u(P,f,E),p[E]=p.Array}},function(i,r,e){r.f=e(2)},function(i,r,e){var s=e(3),u=e(1),p=e(14),f=e(30),d=e(7).f;i.exports=function(b){var E=u.Symbol||(u.Symbol=p?{}:s.Symbol||{});b.charAt(0)=="_"||b in E||d(E,b,{value:f.f(b)})}},function(i,r){r.f=Object.getOwnPropertySymbols},function(i,r){i.exports=function(e,s,u){return Math.min(Math.max(e,s),u)}},function(i,r,e){var s=e(14),u=e(15),p=e(37),f=e(6),d=e(12),b=e(55),E=e(28),_=e(61),P=e(2)("iterator"),D=!([].keys&&"next"in[].keys()),V=function(){return this};i.exports=function(Q,L,Z,t,F,R,B){b(Z,L,t);var N,j,C,M=function(W){if(!D&&W in K)return K[W];switch(W){case"keys":case"values":return function(){return new Z(this,W)}}return function(){return new Z(this,W)}},z=L+" Iterator",g=F=="values",$=!1,K=Q.prototype,O=K[P]||K["@@iterator"]||F&&K[F],U=O||M(F),le=F?g?M("entries"):U:void 0,ne=L=="Array"&&K.entries||O;if(ne&&(C=_(ne.call(new Q)))!==Object.prototype&&C.next&&(E(C,z,!0),s||typeof C[P]=="function"||f(C,P,V)),g&&O&&O.name!=="values"&&($=!0,U=function(){return O.call(this)}),s&&!B||!D&&!$&&K[P]||f(K,P,U),d[L]=U,d[z]=V,F)if(N={values:g?U:M("values"),keys:R?U:M("keys"),entries:le},B)for(j in N)j in K||p(K,j,N[j]);else u(u.P+u.F*(D||$),L,N);return N}},function(i,r,e){i.exports=!e(4)&&!e(8)((function(){return Object.defineProperty(e(36)("div"),"a",{get:function(){return 7}}).a!=7}))},function(i,r,e){var s=e(11),u=e(3).document,p=s(u)&&s(u.createElement);i.exports=function(f){return p?u.createElement(f):{}}},function(i,r,e){i.exports=e(6)},function(i,r,e){var s=e(10),u=e(56),p=e(27),f=e(25)("IE_PROTO"),d=function(){},b=function(){var E,_=e(36)("iframe"),P=p.length;for(_.style.display="none",e(60).appendChild(_),_.src="javascript:",(E=_.contentWindow.document).open(),E.write("<script>document.F=Object<\/script>"),E.close(),b=E.F;P--;)delete b.prototype[p[P]];return b()};i.exports=Object.create||function(E,_){var P;return E!==null?(d.prototype=s(E),P=new d,d.prototype=null,P[f]=E):P=b(),_===void 0?P:u(P,_)}},function(i,r,e){var s=e(5),u=e(9),p=e(57)(!1),f=e(25)("IE_PROTO");i.exports=function(d,b){var E,_=u(d),P=0,D=[];for(E in _)E!=f&&s(_,E)&&D.push(E);for(;b.length>P;)s(_,E=b[P++])&&(~p(D,E)||D.push(E));return D}},function(i,r,e){var s=e(24);i.exports=Object("z").propertyIsEnumerable(0)?Object:function(u){return s(u)=="String"?u.split(""):Object(u)}},function(i,r,e){var s=e(39),u=e(27).concat("length","prototype");r.f=Object.getOwnPropertyNames||function(p){return s(p,u)}},function(i,r,e){var s=e(24),u=e(2)("toStringTag"),p=s((function(){return arguments})())=="Arguments";i.exports=function(f){var d,b,E;return f===void 0?"Undefined":f===null?"Null":typeof(b=(function(_,P){try{return _[P]}catch{}})(d=Object(f),u))=="string"?b:p?s(d):(E=s(d))=="Object"&&typeof d.callee=="function"?"Arguments":E}},function(i,r){var e;e=(function(){return this})();try{e=e||new Function("return this")()}catch{typeof window=="object"&&(e=window)}i.exports=e},function(i,r){var e=/-?\d+(\.\d+)?%?/g;i.exports=function(s){return s.match(e)}},function(i,r,e){Object.defineProperty(r,"__esModule",{value:!0}),r.getBase16Theme=r.createStyling=r.invertTheme=void 0;var s=V(e(49)),u=V(e(76)),p=V(e(81)),f=V(e(89)),d=V(e(93)),b=(function(j){if(j&&j.__esModule)return j;var C={};if(j!=null)for(var M in j)Object.prototype.hasOwnProperty.call(j,M)&&(C[M]=j[M]);return C.default=j,C})(e(94)),E=V(e(132)),_=V(e(133)),P=V(e(138)),D=e(139);function V(j){return j&&j.__esModule?j:{default:j}}var Q=b.default,L=(0,f.default)(Q),Z=(0,P.default)(_.default,D.rgb2yuv,(function(j){var C,M=(0,p.default)(j,3),z=M[0],g=M[1],$=M[2];return[(C=z,C<.25?1:C<.5?.9-C:1.1-C),g,$]}),D.yuv2rgb,E.default),t=function(j){return function(C){return{className:[C.className,j.className].filter(Boolean).join(" "),style:(0,u.default)({},C.style||{},j.style||{})}}},F=function(j,C){var M=(0,f.default)(C);for(var z in j)M.indexOf(z)===-1&&M.push(z);return M.reduce((function(g,$){return g[$]=(function(K,O){if(K===void 0)return O;if(O===void 0)return K;var U=K===void 0?"undefined":(0,s.default)(K),le=O===void 0?"undefined":(0,s.default)(O);switch(U){case"string":switch(le){case"string":return[O,K].filter(Boolean).join(" ");case"object":return t({className:K,style:O});case"function":return function(ne){for(var W=arguments.length,re=Array(W>1?W-1:0),G=1;G<W;G++)re[G-1]=arguments[G];return t({className:K})(O.apply(void 0,[ne].concat(re)))}}case"object":switch(le){case"string":return t({className:O,style:K});case"object":return(0,u.default)({},O,K);case"function":return function(ne){for(var W=arguments.length,re=Array(W>1?W-1:0),G=1;G<W;G++)re[G-1]=arguments[G];return t({style:K})(O.apply(void 0,[ne].concat(re)))}}case"function":switch(le){case"string":return function(ne){for(var W=arguments.length,re=Array(W>1?W-1:0),G=1;G<W;G++)re[G-1]=arguments[G];return K.apply(void 0,[t(ne)({className:O})].concat(re))};case"object":return function(ne){for(var W=arguments.length,re=Array(W>1?W-1:0),G=1;G<W;G++)re[G-1]=arguments[G];return K.apply(void 0,[t(ne)({style:O})].concat(re))};case"function":return function(ne){for(var W=arguments.length,re=Array(W>1?W-1:0),G=1;G<W;G++)re[G-1]=arguments[G];return K.apply(void 0,[O.apply(void 0,[ne].concat(re))].concat(re))}}}})(j[$],C[$]),g}),{})},R=function(j,C){for(var M=arguments.length,z=Array(M>2?M-2:0),g=2;g<M;g++)z[g-2]=arguments[g];if(C===null)return j;Array.isArray(C)||(C=[C]);var $=C.map((function(O){return j[O]})).filter(Boolean),K=$.reduce((function(O,U){return typeof U=="string"?O.className=[O.className,U].filter(Boolean).join(" "):(U===void 0?"undefined":(0,s.default)(U))==="object"?O.style=(0,u.default)({},O.style,U):typeof U=="function"&&(O=(0,u.default)({},O,U.apply(void 0,[O].concat(z)))),O}),{className:"",style:{}});return K.className||delete K.className,(0,f.default)(K.style).length===0&&delete K.style,K},B=r.invertTheme=function(j){return(0,f.default)(j).reduce((function(C,M){return C[M]=/^base/.test(M)?Z(j[M]):M==="scheme"?j[M]+":inverted":j[M],C}),{})},N=(r.createStyling=(0,d.default)((function(j){for(var C=arguments.length,M=Array(C>3?C-3:0),z=3;z<C;z++)M[z-3]=arguments[z];var g=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},$=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},K=g.defaultBase16,O=K===void 0?Q:K,U=g.base16Themes,le=U===void 0?null:U,ne=N($,le);ne&&($=(0,u.default)({},ne,$));var W=L.reduce((function(pe,Oe){return pe[Oe]=$[Oe]||O[Oe],pe}),{}),re=(0,f.default)($).reduce((function(pe,Oe){return L.indexOf(Oe)===-1&&(pe[Oe]=$[Oe]),pe}),{}),G=j(W),ue=F(re,G);return(0,d.default)(R,2).apply(void 0,[ue].concat(M))}),3),r.getBase16Theme=function(j,C){if(j&&j.extend&&(j=j.extend),typeof j=="string"){var M=j.split(":"),z=(0,p.default)(M,2),g=z[0],$=z[1];j=(C||{})[g]||b[g],$==="inverted"&&(j=B(j))}return j&&j.hasOwnProperty("base00")?j:void 0})},function(i,r,e){var s,u=typeof Reflect=="object"?Reflect:null,p=u&&typeof u.apply=="function"?u.apply:function(t,F,R){return Function.prototype.apply.call(t,F,R)};s=u&&typeof u.ownKeys=="function"?u.ownKeys:Object.getOwnPropertySymbols?function(t){return Object.getOwnPropertyNames(t).concat(Object.getOwnPropertySymbols(t))}:function(t){return Object.getOwnPropertyNames(t)};var f=Number.isNaN||function(t){return t!=t};function d(){d.init.call(this)}i.exports=d,i.exports.once=function(t,F){return new Promise((function(R,B){function N(){j!==void 0&&t.removeListener("error",j),R([].slice.call(arguments))}var j;F!=="error"&&(j=function(C){t.removeListener(F,N),B(C)},t.once("error",j)),t.once(F,N)}))},d.EventEmitter=d,d.prototype._events=void 0,d.prototype._eventsCount=0,d.prototype._maxListeners=void 0;var b=10;function E(t){if(typeof t!="function")throw new TypeError('The "listener" argument must be of type Function. Received type '+typeof t)}function _(t){return t._maxListeners===void 0?d.defaultMaxListeners:t._maxListeners}function P(t,F,R,B){var N,j,C,M;if(E(R),(j=t._events)===void 0?(j=t._events=Object.create(null),t._eventsCount=0):(j.newListener!==void 0&&(t.emit("newListener",F,R.listener?R.listener:R),j=t._events),C=j[F]),C===void 0)C=j[F]=R,++t._eventsCount;else if(typeof C=="function"?C=j[F]=B?[R,C]:[C,R]:B?C.unshift(R):C.push(R),(N=_(t))>0&&C.length>N&&!C.warned){C.warned=!0;var z=new Error("Possible EventEmitter memory leak detected. "+C.length+" "+String(F)+" listeners added. Use emitter.setMaxListeners() to increase limit");z.name="MaxListenersExceededWarning",z.emitter=t,z.type=F,z.count=C.length,M=z,console&&console.warn&&console.warn(M)}return t}function D(){if(!this.fired)return this.target.removeListener(this.type,this.wrapFn),this.fired=!0,arguments.length===0?this.listener.call(this.target):this.listener.apply(this.target,arguments)}function V(t,F,R){var B={fired:!1,wrapFn:void 0,target:t,type:F,listener:R},N=D.bind(B);return N.listener=R,B.wrapFn=N,N}function Q(t,F,R){var B=t._events;if(B===void 0)return[];var N=B[F];return N===void 0?[]:typeof N=="function"?R?[N.listener||N]:[N]:R?(function(j){for(var C=new Array(j.length),M=0;M<C.length;++M)C[M]=j[M].listener||j[M];return C})(N):Z(N,N.length)}function L(t){var F=this._events;if(F!==void 0){var R=F[t];if(typeof R=="function")return 1;if(R!==void 0)return R.length}return 0}function Z(t,F){for(var R=new Array(F),B=0;B<F;++B)R[B]=t[B];return R}Object.defineProperty(d,"defaultMaxListeners",{enumerable:!0,get:function(){return b},set:function(t){if(typeof t!="number"||t<0||f(t))throw new RangeError('The value of "defaultMaxListeners" is out of range. It must be a non-negative number. Received '+t+".");b=t}}),d.init=function(){this._events!==void 0&&this._events!==Object.getPrototypeOf(this)._events||(this._events=Object.create(null),this._eventsCount=0),this._maxListeners=this._maxListeners||void 0},d.prototype.setMaxListeners=function(t){if(typeof t!="number"||t<0||f(t))throw new RangeError('The value of "n" is out of range. It must be a non-negative number. Received '+t+".");return this._maxListeners=t,this},d.prototype.getMaxListeners=function(){return _(this)},d.prototype.emit=function(t){for(var F=[],R=1;R<arguments.length;R++)F.push(arguments[R]);var B=t==="error",N=this._events;if(N!==void 0)B=B&&N.error===void 0;else if(!B)return!1;if(B){var j;if(F.length>0&&(j=F[0]),j instanceof Error)throw j;var C=new Error("Unhandled error."+(j?" ("+j.message+")":""));throw C.context=j,C}var M=N[t];if(M===void 0)return!1;if(typeof M=="function")p(M,this,F);else{var z=M.length,g=Z(M,z);for(R=0;R<z;++R)p(g[R],this,F)}return!0},d.prototype.addListener=function(t,F){return P(this,t,F,!1)},d.prototype.on=d.prototype.addListener,d.prototype.prependListener=function(t,F){return P(this,t,F,!0)},d.prototype.once=function(t,F){return E(F),this.on(t,V(this,t,F)),this},d.prototype.prependOnceListener=function(t,F){return E(F),this.prependListener(t,V(this,t,F)),this},d.prototype.removeListener=function(t,F){var R,B,N,j,C;if(E(F),(B=this._events)===void 0)return this;if((R=B[t])===void 0)return this;if(R===F||R.listener===F)--this._eventsCount==0?this._events=Object.create(null):(delete B[t],B.removeListener&&this.emit("removeListener",t,R.listener||F));else if(typeof R!="function"){for(N=-1,j=R.length-1;j>=0;j--)if(R[j]===F||R[j].listener===F){C=R[j].listener,N=j;break}if(N<0)return this;N===0?R.shift():(function(M,z){for(;z+1<M.length;z++)M[z]=M[z+1];M.pop()})(R,N),R.length===1&&(B[t]=R[0]),B.removeListener!==void 0&&this.emit("removeListener",t,C||F)}return this},d.prototype.off=d.prototype.removeListener,d.prototype.removeAllListeners=function(t){var F,R,B;if((R=this._events)===void 0)return this;if(R.removeListener===void 0)return arguments.length===0?(this._events=Object.create(null),this._eventsCount=0):R[t]!==void 0&&(--this._eventsCount==0?this._events=Object.create(null):delete R[t]),this;if(arguments.length===0){var N,j=Object.keys(R);for(B=0;B<j.length;++B)(N=j[B])!=="removeListener"&&this.removeAllListeners(N);return this.removeAllListeners("removeListener"),this._events=Object.create(null),this._eventsCount=0,this}if(typeof(F=R[t])=="function")this.removeListener(t,F);else if(F!==void 0)for(B=F.length-1;B>=0;B--)this.removeListener(t,F[B]);return this},d.prototype.listeners=function(t){return Q(this,t,!0)},d.prototype.rawListeners=function(t){return Q(this,t,!1)},d.listenerCount=function(t,F){return typeof t.listenerCount=="function"?t.listenerCount(F):L.call(t,F)},d.prototype.listenerCount=L,d.prototype.eventNames=function(){return this._eventsCount>0?s(this._events):[]}},function(i,r,e){i.exports.Dispatcher=e(140)},function(i,r,e){i.exports=e(142)},function(i,r,e){r.__esModule=!0;var s=f(e(50)),u=f(e(65)),p=typeof u.default=="function"&&typeof s.default=="symbol"?function(d){return typeof d}:function(d){return d&&typeof u.default=="function"&&d.constructor===u.default&&d!==u.default.prototype?"symbol":typeof d};function f(d){return d&&d.__esModule?d:{default:d}}r.default=typeof u.default=="function"&&p(s.default)==="symbol"?function(d){return d===void 0?"undefined":p(d)}:function(d){return d&&typeof u.default=="function"&&d.constructor===u.default&&d!==u.default.prototype?"symbol":d===void 0?"undefined":p(d)}},function(i,r,e){i.exports={default:e(51),__esModule:!0}},function(i,r,e){e(20),e(29),i.exports=e(30).f("iterator")},function(i,r,e){var s=e(21),u=e(22);i.exports=function(p){return function(f,d){var b,E,_=String(u(f)),P=s(d),D=_.length;return P<0||P>=D?p?"":void 0:(b=_.charCodeAt(P))<55296||b>56319||P+1===D||(E=_.charCodeAt(P+1))<56320||E>57343?p?_.charAt(P):b:p?_.slice(P,P+2):E-56320+(b-55296<<10)+65536}}},function(i,r,e){var s=e(54);i.exports=function(u,p,f){if(s(u),p===void 0)return u;switch(f){case 1:return function(d){return u.call(p,d)};case 2:return function(d,b){return u.call(p,d,b)};case 3:return function(d,b,E){return u.call(p,d,b,E)}}return function(){return u.apply(p,arguments)}}},function(i,r){i.exports=function(e){if(typeof e!="function")throw TypeError(e+" is not a function!");return e}},function(i,r,e){var s=e(38),u=e(16),p=e(28),f={};e(6)(f,e(2)("iterator"),(function(){return this})),i.exports=function(d,b,E){d.prototype=s(f,{next:u(1,E)}),p(d,b+" Iterator")}},function(i,r,e){var s=e(7),u=e(10),p=e(13);i.exports=e(4)?Object.defineProperties:function(f,d){u(f);for(var b,E=p(d),_=E.length,P=0;_>P;)s.f(f,b=E[P++],d[b]);return f}},function(i,r,e){var s=e(9),u=e(58),p=e(59);i.exports=function(f){return function(d,b,E){var _,P=s(d),D=u(P.length),V=p(E,D);if(f&&b!=b){for(;D>V;)if((_=P[V++])!=_)return!0}else for(;D>V;V++)if((f||V in P)&&P[V]===b)return f||V||0;return!f&&-1}}},function(i,r,e){var s=e(21),u=Math.min;i.exports=function(p){return p>0?u(s(p),9007199254740991):0}},function(i,r,e){var s=e(21),u=Math.max,p=Math.min;i.exports=function(f,d){return(f=s(f))<0?u(f+d,0):p(f,d)}},function(i,r,e){var s=e(3).document;i.exports=s&&s.documentElement},function(i,r,e){var s=e(5),u=e(18),p=e(25)("IE_PROTO"),f=Object.prototype;i.exports=Object.getPrototypeOf||function(d){return d=u(d),s(d,p)?d[p]:typeof d.constructor=="function"&&d instanceof d.constructor?d.constructor.prototype:d instanceof Object?f:null}},function(i,r,e){var s=e(63),u=e(64),p=e(12),f=e(9);i.exports=e(34)(Array,"Array",(function(d,b){this._t=f(d),this._i=0,this._k=b}),(function(){var d=this._t,b=this._k,E=this._i++;return!d||E>=d.length?(this._t=void 0,u(1)):u(0,b=="keys"?E:b=="values"?d[E]:[E,d[E]])}),"values"),p.Arguments=p.Array,s("keys"),s("values"),s("entries")},function(i,r){i.exports=function(){}},function(i,r){i.exports=function(e,s){return{value:s,done:!!e}}},function(i,r,e){i.exports={default:e(66),__esModule:!0}},function(i,r,e){e(67),e(73),e(74),e(75),i.exports=e(1).Symbol},function(i,r,e){var s=e(3),u=e(5),p=e(4),f=e(15),d=e(37),b=e(68).KEY,E=e(8),_=e(26),P=e(28),D=e(17),V=e(2),Q=e(30),L=e(31),Z=e(69),t=e(70),F=e(10),R=e(11),B=e(18),N=e(9),j=e(23),C=e(16),M=e(38),z=e(71),g=e(72),$=e(32),K=e(7),O=e(13),U=g.f,le=K.f,ne=z.f,W=s.Symbol,re=s.JSON,G=re&&re.stringify,ue=V("_hidden"),pe=V("toPrimitive"),Oe={}.propertyIsEnumerable,me=_("symbol-registry"),Ee=_("symbols"),ce=_("op-symbols"),de=Object.prototype,we=typeof W=="function"&&!!$.f,Ne=s.QObject,Ke=!Ne||!Ne.prototype||!Ne.prototype.findChild,We=p&&E((function(){return M(le({},"a",{get:function(){return le(this,"a",{value:7}).a}})).a!=7}))?function(y,w,I){var T=U(de,w);T&&delete de[w],le(y,w,I),T&&y!==de&&le(de,w,T)}:le,He=function(y){var w=Ee[y]=M(W.prototype);return w._k=y,w},Ue=we&&typeof W.iterator=="symbol"?function(y){return typeof y=="symbol"}:function(y){return y instanceof W},ze=function(y,w,I){return y===de&&ze(ce,w,I),F(y),w=j(w,!0),F(I),u(Ee,w)?(I.enumerable?(u(y,ue)&&y[ue][w]&&(y[ue][w]=!1),I=M(I,{enumerable:C(0,!1)})):(u(y,ue)||le(y,ue,C(1,{})),y[ue][w]=!0),We(y,w,I)):le(y,w,I)},Je=function(y,w){F(y);for(var I,T=Z(w=N(w)),X=0,J=T.length;J>X;)ze(y,I=T[X++],w[I]);return y},Ye=function(y){var w=Oe.call(this,y=j(y,!0));return!(this===de&&u(Ee,y)&&!u(ce,y))&&(!(w||!u(this,y)||!u(Ee,y)||u(this,ue)&&this[ue][y])||w)},Ge=function(y,w){if(y=N(y),w=j(w,!0),y!==de||!u(Ee,w)||u(ce,w)){var I=U(y,w);return!I||!u(Ee,w)||u(y,ue)&&y[ue][w]||(I.enumerable=!0),I}},Qe=function(y){for(var w,I=ne(N(y)),T=[],X=0;I.length>X;)u(Ee,w=I[X++])||w==ue||w==b||T.push(w);return T},Te=function(y){for(var w,I=y===de,T=ne(I?ce:N(y)),X=[],J=0;T.length>J;)!u(Ee,w=T[J++])||I&&!u(de,w)||X.push(Ee[w]);return X};we||(d((W=function(){if(this instanceof W)throw TypeError("Symbol is not a constructor!");var y=D(arguments.length>0?arguments[0]:void 0),w=function(I){this===de&&w.call(ce,I),u(this,ue)&&u(this[ue],y)&&(this[ue][y]=!1),We(this,y,C(1,I))};return p&&Ke&&We(de,y,{configurable:!0,set:w}),He(y)}).prototype,"toString",(function(){return this._k})),g.f=Ge,K.f=ze,e(41).f=z.f=Qe,e(19).f=Ye,$.f=Te,p&&!e(14)&&d(de,"propertyIsEnumerable",Ye,!0),Q.f=function(y){return He(V(y))}),f(f.G+f.W+f.F*!we,{Symbol:W});for(var Fe="hasInstance,isConcatSpreadable,iterator,match,replace,search,species,split,toPrimitive,toStringTag,unscopables".split(","),je=0;Fe.length>je;)V(Fe[je++]);for(var $e=O(V.store),S=0;$e.length>S;)L($e[S++]);f(f.S+f.F*!we,"Symbol",{for:function(y){return u(me,y+="")?me[y]:me[y]=W(y)},keyFor:function(y){if(!Ue(y))throw TypeError(y+" is not a symbol!");for(var w in me)if(me[w]===y)return w},useSetter:function(){Ke=!0},useSimple:function(){Ke=!1}}),f(f.S+f.F*!we,"Object",{create:function(y,w){return w===void 0?M(y):Je(M(y),w)},defineProperty:ze,defineProperties:Je,getOwnPropertyDescriptor:Ge,getOwnPropertyNames:Qe,getOwnPropertySymbols:Te});var m=E((function(){$.f(1)}));f(f.S+f.F*m,"Object",{getOwnPropertySymbols:function(y){return $.f(B(y))}}),re&&f(f.S+f.F*(!we||E((function(){var y=W();return G([y])!="[null]"||G({a:y})!="{}"||G(Object(y))!="{}"}))),"JSON",{stringify:function(y){for(var w,I,T=[y],X=1;arguments.length>X;)T.push(arguments[X++]);if(I=w=T[1],(R(w)||y!==void 0)&&!Ue(y))return t(w)||(w=function(J,oe){if(typeof I=="function"&&(oe=I.call(this,J,oe)),!Ue(oe))return oe}),T[1]=w,G.apply(re,T)}}),W.prototype[pe]||e(6)(W.prototype,pe,W.prototype.valueOf),P(W,"Symbol"),P(Math,"Math",!0),P(s.JSON,"JSON",!0)},function(i,r,e){var s=e(17)("meta"),u=e(11),p=e(5),f=e(7).f,d=0,b=Object.isExtensible||function(){return!0},E=!e(8)((function(){return b(Object.preventExtensions({}))})),_=function(D){f(D,s,{value:{i:"O"+ ++d,w:{}}})},P=i.exports={KEY:s,NEED:!1,fastKey:function(D,V){if(!u(D))return typeof D=="symbol"?D:(typeof D=="string"?"S":"P")+D;if(!p(D,s)){if(!b(D))return"F";if(!V)return"E";_(D)}return D[s].i},getWeak:function(D,V){if(!p(D,s)){if(!b(D))return!0;if(!V)return!1;_(D)}return D[s].w},onFreeze:function(D){return E&&P.NEED&&b(D)&&!p(D,s)&&_(D),D}}},function(i,r,e){var s=e(13),u=e(32),p=e(19);i.exports=function(f){var d=s(f),b=u.f;if(b)for(var E,_=b(f),P=p.f,D=0;_.length>D;)P.call(f,E=_[D++])&&d.push(E);return d}},function(i,r,e){var s=e(24);i.exports=Array.isArray||function(u){return s(u)=="Array"}},function(i,r,e){var s=e(9),u=e(41).f,p={}.toString,f=typeof window=="object"&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[];i.exports.f=function(d){return f&&p.call(d)=="[object Window]"?(function(b){try{return u(b)}catch{return f.slice()}})(d):u(s(d))}},function(i,r,e){var s=e(19),u=e(16),p=e(9),f=e(23),d=e(5),b=e(35),E=Object.getOwnPropertyDescriptor;r.f=e(4)?E:function(_,P){if(_=p(_),P=f(P,!0),b)try{return E(_,P)}catch{}if(d(_,P))return u(!s.f.call(_,P),_[P])}},function(i,r){},function(i,r,e){e(31)("asyncIterator")},function(i,r,e){e(31)("observable")},function(i,r,e){r.__esModule=!0;var s,u=e(77),p=(s=u)&&s.__esModule?s:{default:s};r.default=p.default||function(f){for(var d=1;d<arguments.length;d++){var b=arguments[d];for(var E in b)Object.prototype.hasOwnProperty.call(b,E)&&(f[E]=b[E])}return f}},function(i,r,e){i.exports={default:e(78),__esModule:!0}},function(i,r,e){e(79),i.exports=e(1).Object.assign},function(i,r,e){var s=e(15);s(s.S+s.F,"Object",{assign:e(80)})},function(i,r,e){var s=e(4),u=e(13),p=e(32),f=e(19),d=e(18),b=e(40),E=Object.assign;i.exports=!E||e(8)((function(){var _={},P={},D=Symbol(),V="abcdefghijklmnopqrst";return _[D]=7,V.split("").forEach((function(Q){P[Q]=Q})),E({},_)[D]!=7||Object.keys(E({},P)).join("")!=V}))?function(_,P){for(var D=d(_),V=arguments.length,Q=1,L=p.f,Z=f.f;V>Q;)for(var t,F=b(arguments[Q++]),R=L?u(F).concat(L(F)):u(F),B=R.length,N=0;B>N;)t=R[N++],s&&!Z.call(F,t)||(D[t]=F[t]);return D}:E},function(i,r,e){r.__esModule=!0;var s=p(e(82)),u=p(e(85));function p(f){return f&&f.__esModule?f:{default:f}}r.default=function(f,d){if(Array.isArray(f))return f;if((0,s.default)(Object(f)))return(function(b,E){var _=[],P=!0,D=!1,V=void 0;try{for(var Q,L=(0,u.default)(b);!(P=(Q=L.next()).done)&&(_.push(Q.value),!E||_.length!==E);P=!0);}catch(Z){D=!0,V=Z}finally{try{!P&&L.return&&L.return()}finally{if(D)throw V}}return _})(f,d);throw new TypeError("Invalid attempt to destructure non-iterable instance")}},function(i,r,e){i.exports={default:e(83),__esModule:!0}},function(i,r,e){e(29),e(20),i.exports=e(84)},function(i,r,e){var s=e(42),u=e(2)("iterator"),p=e(12);i.exports=e(1).isIterable=function(f){var d=Object(f);return d[u]!==void 0||"@@iterator"in d||p.hasOwnProperty(s(d))}},function(i,r,e){i.exports={default:e(86),__esModule:!0}},function(i,r,e){e(29),e(20),i.exports=e(87)},function(i,r,e){var s=e(10),u=e(88);i.exports=e(1).getIterator=function(p){var f=u(p);if(typeof f!="function")throw TypeError(p+" is not iterable!");return s(f.call(p))}},function(i,r,e){var s=e(42),u=e(2)("iterator"),p=e(12);i.exports=e(1).getIteratorMethod=function(f){if(f!=null)return f[u]||f["@@iterator"]||p[s(f)]}},function(i,r,e){i.exports={default:e(90),__esModule:!0}},function(i,r,e){e(91),i.exports=e(1).Object.keys},function(i,r,e){var s=e(18),u=e(13);e(92)("keys",(function(){return function(p){return u(s(p))}}))},function(i,r,e){var s=e(15),u=e(1),p=e(8);i.exports=function(f,d){var b=(u.Object||{})[f]||Object[f],E={};E[f]=d(b),s(s.S+s.F*p((function(){b(1)})),"Object",E)}},function(i,r,e){(function(s){var u=[["ary",128],["bind",1],["bindKey",2],["curry",8],["curryRight",16],["flip",512],["partial",32],["partialRight",64],["rearg",256]],p=/^\s+|\s+$/g,f=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,d=/\{\n\/\* \[wrapped with (.+)\] \*/,b=/,? & /,E=/^[-+]0x[0-9a-f]+$/i,_=/^0b[01]+$/i,P=/^\[object .+?Constructor\]$/,D=/^0o[0-7]+$/i,V=/^(?:0|[1-9]\d*)$/,Q=parseInt,L=typeof s=="object"&&s&&s.Object===Object&&s,Z=typeof self=="object"&&self&&self.Object===Object&&self,t=L||Z||Function("return this")();function F(S,m,y){switch(y.length){case 0:return S.call(m);case 1:return S.call(m,y[0]);case 2:return S.call(m,y[0],y[1]);case 3:return S.call(m,y[0],y[1],y[2])}return S.apply(m,y)}function R(S,m){return!!(S&&S.length)&&(function(y,w,I){if(w!=w)return(function(J,oe,be,he){for(var xe=J.length,fe=be+-1;++fe<xe;)if(oe(J[fe],fe,J))return fe;return-1})(y,B,I);for(var T=I-1,X=y.length;++T<X;)if(y[T]===w)return T;return-1})(S,m,0)>-1}function B(S){return S!=S}function N(S,m){for(var y=S.length,w=0;y--;)S[y]===m&&w++;return w}function j(S,m){for(var y=-1,w=S.length,I=0,T=[];++y<w;){var X=S[y];X!==m&&X!=="__lodash_placeholder__"||(S[y]="__lodash_placeholder__",T[I++]=y)}return T}var C,M,z,g=Function.prototype,$=Object.prototype,K=t["__core-js_shared__"],O=(C=/[^.]+$/.exec(K&&K.keys&&K.keys.IE_PROTO||""))?"Symbol(src)_1."+C:"",U=g.toString,le=$.hasOwnProperty,ne=$.toString,W=RegExp("^"+U.call(le).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),re=Object.create,G=Math.max,ue=Math.min,pe=(M=He(Object,"defineProperty"),(z=He.name)&&z.length>2?M:void 0);function Oe(S){return Fe(S)?re(S):{}}function me(S){return!(!Fe(S)||(function(m){return!!O&&O in m})(S))&&((function(m){var y=Fe(m)?ne.call(m):"";return y=="[object Function]"||y=="[object GeneratorFunction]"})(S)||(function(m){var y=!1;if(m!=null&&typeof m.toString!="function")try{y=!!(m+"")}catch{}return y})(S)?W:P).test((function(m){if(m!=null){try{return U.call(m)}catch{}try{return m+""}catch{}}return""})(S))}function Ee(S,m,y,w){for(var I=-1,T=S.length,X=y.length,J=-1,oe=m.length,be=G(T-X,0),he=Array(oe+be),xe=!w;++J<oe;)he[J]=m[J];for(;++I<X;)(xe||I<T)&&(he[y[I]]=S[I]);for(;be--;)he[J++]=S[I++];return he}function ce(S,m,y,w){for(var I=-1,T=S.length,X=-1,J=y.length,oe=-1,be=m.length,he=G(T-J,0),xe=Array(he+be),fe=!w;++I<he;)xe[I]=S[I];for(var Se=I;++oe<be;)xe[Se+oe]=m[oe];for(;++X<J;)(fe||I<T)&&(xe[Se+y[X]]=S[I++]);return xe}function de(S){return function(){var m=arguments;switch(m.length){case 0:return new S;case 1:return new S(m[0]);case 2:return new S(m[0],m[1]);case 3:return new S(m[0],m[1],m[2]);case 4:return new S(m[0],m[1],m[2],m[3]);case 5:return new S(m[0],m[1],m[2],m[3],m[4]);case 6:return new S(m[0],m[1],m[2],m[3],m[4],m[5]);case 7:return new S(m[0],m[1],m[2],m[3],m[4],m[5],m[6])}var y=Oe(S.prototype),w=S.apply(y,m);return Fe(w)?w:y}}function we(S,m,y,w,I,T,X,J,oe,be){var he=128&m,xe=1&m,fe=2&m,Se=24&m,Ae=512&m,Le=fe?void 0:de(S);return function De(){for(var ye=arguments.length,te=Array(ye),_e=ye;_e--;)te[_e]=arguments[_e];if(Se)var Ce=We(De),Be=N(te,Ce);if(w&&(te=Ee(te,w,I,Se)),T&&(te=ce(te,T,X,Se)),ye-=Be,Se&&ye<be){var Ie=j(te,Ce);return Ne(S,m,we,De.placeholder,y,te,Ie,J,oe,be-ye)}var Me=xe?y:this,Re=fe?Me[S]:S;return ye=te.length,J?te=Ye(te,J):Ae&&ye>1&&te.reverse(),he&&oe<ye&&(te.length=oe),this&&this!==t&&this instanceof De&&(Re=Le||de(Re)),Re.apply(Me,te)}}function Ne(S,m,y,w,I,T,X,J,oe,be){var he=8&m;m|=he?32:64,4&(m&=~(he?64:32))||(m&=-4);var xe=y(S,m,I,he?T:void 0,he?X:void 0,he?void 0:T,he?void 0:X,J,oe,be);return xe.placeholder=w,Ge(xe,S,m)}function Ke(S,m,y,w,I,T,X,J){var oe=2&m;if(!oe&&typeof S!="function")throw new TypeError("Expected a function");var be=w?w.length:0;if(be||(m&=-97,w=I=void 0),X=X===void 0?X:G($e(X),0),J=J===void 0?J:$e(J),be-=I?I.length:0,64&m){var he=w,xe=I;w=I=void 0}var fe=[S,m,y,w,I,he,xe,T,X,J];if(S=fe[0],m=fe[1],y=fe[2],w=fe[3],I=fe[4],!(J=fe[9]=fe[9]==null?oe?0:S.length:G(fe[9]-be,0))&&24&m&&(m&=-25),m&&m!=1)Se=m==8||m==16?(function(Ae,Le,De){var ye=de(Ae);return function te(){for(var _e=arguments.length,Ce=Array(_e),Be=_e,Ie=We(te);Be--;)Ce[Be]=arguments[Be];var Me=_e<3&&Ce[0]!==Ie&&Ce[_e-1]!==Ie?[]:j(Ce,Ie);if((_e-=Me.length)<De)return Ne(Ae,Le,we,te.placeholder,void 0,Ce,Me,void 0,void 0,De-_e);var Re=this&&this!==t&&this instanceof te?ye:Ae;return F(Re,this,Ce)}})(S,m,J):m!=32&&m!=33||I.length?we.apply(void 0,fe):(function(Ae,Le,De,ye){var te=1&Le,_e=de(Ae);return function Ce(){for(var Be=-1,Ie=arguments.length,Me=-1,Re=ye.length,Ze=Array(Re+Ie),rt=this&&this!==t&&this instanceof Ce?_e:Ae;++Me<Re;)Ze[Me]=ye[Me];for(;Ie--;)Ze[Me++]=arguments[++Be];return F(rt,te?De:this,Ze)}})(S,m,y,w);else var Se=(function(Ae,Le,De){var ye=1&Le,te=de(Ae);return function _e(){var Ce=this&&this!==t&&this instanceof _e?te:Ae;return Ce.apply(ye?De:this,arguments)}})(S,m,y);return Ge(Se,S,m)}function We(S){return S.placeholder}function He(S,m){var y=(function(w,I){return w?.[I]})(S,m);return me(y)?y:void 0}function Ue(S){var m=S.match(d);return m?m[1].split(b):[]}function ze(S,m){var y=m.length,w=y-1;return m[w]=(y>1?"& ":"")+m[w],m=m.join(y>2?", ":" "),S.replace(f,`{
1
+ import{al as Ot,ag as Ct}from"./index.aCorc3Yt.js";var ut={exports:{}},St=ut.exports,yt;function wt(){return yt||(yt=1,(function(gt,Mt){(function(ht,i){gt.exports=i(Ot())})(St,(function(ht){return(function(i){var r={};function e(s){if(r[s])return r[s].exports;var u=r[s]={i:s,l:!1,exports:{}};return i[s].call(u.exports,u,u.exports,e),u.l=!0,u.exports}return e.m=i,e.c=r,e.d=function(s,u,p){e.o(s,u)||Object.defineProperty(s,u,{enumerable:!0,get:p})},e.r=function(s){typeof Symbol<"u"&&Symbol.toStringTag&&Object.defineProperty(s,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(s,"__esModule",{value:!0})},e.t=function(s,u){if(1&u&&(s=e(s)),8&u||4&u&&typeof s=="object"&&s&&s.__esModule)return s;var p=Object.create(null);if(e.r(p),Object.defineProperty(p,"default",{enumerable:!0,value:s}),2&u&&typeof s!="string")for(var f in s)e.d(p,f,(function(d){return s[d]}).bind(null,f));return p},e.n=function(s){var u=s&&s.__esModule?function(){return s.default}:function(){return s};return e.d(u,"a",u),u},e.o=function(s,u){return Object.prototype.hasOwnProperty.call(s,u)},e.p="",e(e.s=48)})([function(i,r){i.exports=ht},function(i,r){var e=i.exports={version:"2.6.12"};typeof __e=="number"&&(__e=e)},function(i,r,e){var s=e(26)("wks"),u=e(17),p=e(3).Symbol,f=typeof p=="function";(i.exports=function(d){return s[d]||(s[d]=f&&p[d]||(f?p:u)("Symbol."+d))}).store=s},function(i,r){var e=i.exports=typeof window<"u"&&window.Math==Math?window:typeof self<"u"&&self.Math==Math?self:Function("return this")();typeof __g=="number"&&(__g=e)},function(i,r,e){i.exports=!e(8)((function(){return Object.defineProperty({},"a",{get:function(){return 7}}).a!=7}))},function(i,r){var e={}.hasOwnProperty;i.exports=function(s,u){return e.call(s,u)}},function(i,r,e){var s=e(7),u=e(16);i.exports=e(4)?function(p,f,d){return s.f(p,f,u(1,d))}:function(p,f,d){return p[f]=d,p}},function(i,r,e){var s=e(10),u=e(35),p=e(23),f=Object.defineProperty;r.f=e(4)?Object.defineProperty:function(d,b,E){if(s(d),b=p(b,!0),s(E),u)try{return f(d,b,E)}catch{}if("get"in E||"set"in E)throw TypeError("Accessors not supported!");return"value"in E&&(d[b]=E.value),d}},function(i,r){i.exports=function(e){try{return!!e()}catch{return!0}}},function(i,r,e){var s=e(40),u=e(22);i.exports=function(p){return s(u(p))}},function(i,r,e){var s=e(11);i.exports=function(u){if(!s(u))throw TypeError(u+" is not an object!");return u}},function(i,r){i.exports=function(e){return typeof e=="object"?e!==null:typeof e=="function"}},function(i,r){i.exports={}},function(i,r,e){var s=e(39),u=e(27);i.exports=Object.keys||function(p){return s(p,u)}},function(i,r){i.exports=!0},function(i,r,e){var s=e(3),u=e(1),p=e(53),f=e(6),d=e(5),b=function(E,_,P){var D,V,Q,L=E&b.F,Z=E&b.G,t=E&b.S,F=E&b.P,R=E&b.B,B=E&b.W,N=Z?u:u[_]||(u[_]={}),j=N.prototype,C=Z?s:t?s[_]:(s[_]||{}).prototype;for(D in Z&&(P=_),P)(V=!L&&C&&C[D]!==void 0)&&d(N,D)||(Q=V?C[D]:P[D],N[D]=Z&&typeof C[D]!="function"?P[D]:R&&V?p(Q,s):B&&C[D]==Q?(function(M){var z=function(g,$,K){if(this instanceof M){switch(arguments.length){case 0:return new M;case 1:return new M(g);case 2:return new M(g,$)}return new M(g,$,K)}return M.apply(this,arguments)};return z.prototype=M.prototype,z})(Q):F&&typeof Q=="function"?p(Function.call,Q):Q,F&&((N.virtual||(N.virtual={}))[D]=Q,E&b.R&&j&&!j[D]&&f(j,D,Q)))};b.F=1,b.G=2,b.S=4,b.P=8,b.B=16,b.W=32,b.U=64,b.R=128,i.exports=b},function(i,r){i.exports=function(e,s){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:s}}},function(i,r){var e=0,s=Math.random();i.exports=function(u){return"Symbol(".concat(u===void 0?"":u,")_",(++e+s).toString(36))}},function(i,r,e){var s=e(22);i.exports=function(u){return Object(s(u))}},function(i,r){r.f={}.propertyIsEnumerable},function(i,r,e){var s=e(52)(!0);e(34)(String,"String",(function(u){this._t=String(u),this._i=0}),(function(){var u,p=this._t,f=this._i;return f>=p.length?{value:void 0,done:!0}:(u=s(p,f),this._i+=u.length,{value:u,done:!1})}))},function(i,r){var e=Math.ceil,s=Math.floor;i.exports=function(u){return isNaN(u=+u)?0:(u>0?s:e)(u)}},function(i,r){i.exports=function(e){if(e==null)throw TypeError("Can't call method on "+e);return e}},function(i,r,e){var s=e(11);i.exports=function(u,p){if(!s(u))return u;var f,d;if(p&&typeof(f=u.toString)=="function"&&!s(d=f.call(u))||typeof(f=u.valueOf)=="function"&&!s(d=f.call(u))||!p&&typeof(f=u.toString)=="function"&&!s(d=f.call(u)))return d;throw TypeError("Can't convert object to primitive value")}},function(i,r){var e={}.toString;i.exports=function(s){return e.call(s).slice(8,-1)}},function(i,r,e){var s=e(26)("keys"),u=e(17);i.exports=function(p){return s[p]||(s[p]=u(p))}},function(i,r,e){var s=e(1),u=e(3),p=u["__core-js_shared__"]||(u["__core-js_shared__"]={});(i.exports=function(f,d){return p[f]||(p[f]=d!==void 0?d:{})})("versions",[]).push({version:s.version,mode:e(14)?"pure":"global",copyright:"© 2020 Denis Pushkarev (zloirock.ru)"})},function(i,r){i.exports="constructor,hasOwnProperty,isPrototypeOf,propertyIsEnumerable,toLocaleString,toString,valueOf".split(",")},function(i,r,e){var s=e(7).f,u=e(5),p=e(2)("toStringTag");i.exports=function(f,d,b){f&&!u(f=b?f:f.prototype,p)&&s(f,p,{configurable:!0,value:d})}},function(i,r,e){e(62);for(var s=e(3),u=e(6),p=e(12),f=e(2)("toStringTag"),d="CSSRuleList,CSSStyleDeclaration,CSSValueList,ClientRectList,DOMRectList,DOMStringList,DOMTokenList,DataTransferItemList,FileList,HTMLAllCollection,HTMLCollection,HTMLFormElement,HTMLSelectElement,MediaList,MimeTypeArray,NamedNodeMap,NodeList,PaintRequestList,Plugin,PluginArray,SVGLengthList,SVGNumberList,SVGPathSegList,SVGPointList,SVGStringList,SVGTransformList,SourceBufferList,StyleSheetList,TextTrackCueList,TextTrackList,TouchList".split(","),b=0;b<d.length;b++){var E=d[b],_=s[E],P=_&&_.prototype;P&&!P[f]&&u(P,f,E),p[E]=p.Array}},function(i,r,e){r.f=e(2)},function(i,r,e){var s=e(3),u=e(1),p=e(14),f=e(30),d=e(7).f;i.exports=function(b){var E=u.Symbol||(u.Symbol=p?{}:s.Symbol||{});b.charAt(0)=="_"||b in E||d(E,b,{value:f.f(b)})}},function(i,r){r.f=Object.getOwnPropertySymbols},function(i,r){i.exports=function(e,s,u){return Math.min(Math.max(e,s),u)}},function(i,r,e){var s=e(14),u=e(15),p=e(37),f=e(6),d=e(12),b=e(55),E=e(28),_=e(61),P=e(2)("iterator"),D=!([].keys&&"next"in[].keys()),V=function(){return this};i.exports=function(Q,L,Z,t,F,R,B){b(Z,L,t);var N,j,C,M=function(W){if(!D&&W in K)return K[W];switch(W){case"keys":case"values":return function(){return new Z(this,W)}}return function(){return new Z(this,W)}},z=L+" Iterator",g=F=="values",$=!1,K=Q.prototype,O=K[P]||K["@@iterator"]||F&&K[F],U=O||M(F),le=F?g?M("entries"):U:void 0,ne=L=="Array"&&K.entries||O;if(ne&&(C=_(ne.call(new Q)))!==Object.prototype&&C.next&&(E(C,z,!0),s||typeof C[P]=="function"||f(C,P,V)),g&&O&&O.name!=="values"&&($=!0,U=function(){return O.call(this)}),s&&!B||!D&&!$&&K[P]||f(K,P,U),d[L]=U,d[z]=V,F)if(N={values:g?U:M("values"),keys:R?U:M("keys"),entries:le},B)for(j in N)j in K||p(K,j,N[j]);else u(u.P+u.F*(D||$),L,N);return N}},function(i,r,e){i.exports=!e(4)&&!e(8)((function(){return Object.defineProperty(e(36)("div"),"a",{get:function(){return 7}}).a!=7}))},function(i,r,e){var s=e(11),u=e(3).document,p=s(u)&&s(u.createElement);i.exports=function(f){return p?u.createElement(f):{}}},function(i,r,e){i.exports=e(6)},function(i,r,e){var s=e(10),u=e(56),p=e(27),f=e(25)("IE_PROTO"),d=function(){},b=function(){var E,_=e(36)("iframe"),P=p.length;for(_.style.display="none",e(60).appendChild(_),_.src="javascript:",(E=_.contentWindow.document).open(),E.write("<script>document.F=Object<\/script>"),E.close(),b=E.F;P--;)delete b.prototype[p[P]];return b()};i.exports=Object.create||function(E,_){var P;return E!==null?(d.prototype=s(E),P=new d,d.prototype=null,P[f]=E):P=b(),_===void 0?P:u(P,_)}},function(i,r,e){var s=e(5),u=e(9),p=e(57)(!1),f=e(25)("IE_PROTO");i.exports=function(d,b){var E,_=u(d),P=0,D=[];for(E in _)E!=f&&s(_,E)&&D.push(E);for(;b.length>P;)s(_,E=b[P++])&&(~p(D,E)||D.push(E));return D}},function(i,r,e){var s=e(24);i.exports=Object("z").propertyIsEnumerable(0)?Object:function(u){return s(u)=="String"?u.split(""):Object(u)}},function(i,r,e){var s=e(39),u=e(27).concat("length","prototype");r.f=Object.getOwnPropertyNames||function(p){return s(p,u)}},function(i,r,e){var s=e(24),u=e(2)("toStringTag"),p=s((function(){return arguments})())=="Arguments";i.exports=function(f){var d,b,E;return f===void 0?"Undefined":f===null?"Null":typeof(b=(function(_,P){try{return _[P]}catch{}})(d=Object(f),u))=="string"?b:p?s(d):(E=s(d))=="Object"&&typeof d.callee=="function"?"Arguments":E}},function(i,r){var e;e=(function(){return this})();try{e=e||new Function("return this")()}catch{typeof window=="object"&&(e=window)}i.exports=e},function(i,r){var e=/-?\d+(\.\d+)?%?/g;i.exports=function(s){return s.match(e)}},function(i,r,e){Object.defineProperty(r,"__esModule",{value:!0}),r.getBase16Theme=r.createStyling=r.invertTheme=void 0;var s=V(e(49)),u=V(e(76)),p=V(e(81)),f=V(e(89)),d=V(e(93)),b=(function(j){if(j&&j.__esModule)return j;var C={};if(j!=null)for(var M in j)Object.prototype.hasOwnProperty.call(j,M)&&(C[M]=j[M]);return C.default=j,C})(e(94)),E=V(e(132)),_=V(e(133)),P=V(e(138)),D=e(139);function V(j){return j&&j.__esModule?j:{default:j}}var Q=b.default,L=(0,f.default)(Q),Z=(0,P.default)(_.default,D.rgb2yuv,(function(j){var C,M=(0,p.default)(j,3),z=M[0],g=M[1],$=M[2];return[(C=z,C<.25?1:C<.5?.9-C:1.1-C),g,$]}),D.yuv2rgb,E.default),t=function(j){return function(C){return{className:[C.className,j.className].filter(Boolean).join(" "),style:(0,u.default)({},C.style||{},j.style||{})}}},F=function(j,C){var M=(0,f.default)(C);for(var z in j)M.indexOf(z)===-1&&M.push(z);return M.reduce((function(g,$){return g[$]=(function(K,O){if(K===void 0)return O;if(O===void 0)return K;var U=K===void 0?"undefined":(0,s.default)(K),le=O===void 0?"undefined":(0,s.default)(O);switch(U){case"string":switch(le){case"string":return[O,K].filter(Boolean).join(" ");case"object":return t({className:K,style:O});case"function":return function(ne){for(var W=arguments.length,re=Array(W>1?W-1:0),G=1;G<W;G++)re[G-1]=arguments[G];return t({className:K})(O.apply(void 0,[ne].concat(re)))}}case"object":switch(le){case"string":return t({className:O,style:K});case"object":return(0,u.default)({},O,K);case"function":return function(ne){for(var W=arguments.length,re=Array(W>1?W-1:0),G=1;G<W;G++)re[G-1]=arguments[G];return t({style:K})(O.apply(void 0,[ne].concat(re)))}}case"function":switch(le){case"string":return function(ne){for(var W=arguments.length,re=Array(W>1?W-1:0),G=1;G<W;G++)re[G-1]=arguments[G];return K.apply(void 0,[t(ne)({className:O})].concat(re))};case"object":return function(ne){for(var W=arguments.length,re=Array(W>1?W-1:0),G=1;G<W;G++)re[G-1]=arguments[G];return K.apply(void 0,[t(ne)({style:O})].concat(re))};case"function":return function(ne){for(var W=arguments.length,re=Array(W>1?W-1:0),G=1;G<W;G++)re[G-1]=arguments[G];return K.apply(void 0,[O.apply(void 0,[ne].concat(re))].concat(re))}}}})(j[$],C[$]),g}),{})},R=function(j,C){for(var M=arguments.length,z=Array(M>2?M-2:0),g=2;g<M;g++)z[g-2]=arguments[g];if(C===null)return j;Array.isArray(C)||(C=[C]);var $=C.map((function(O){return j[O]})).filter(Boolean),K=$.reduce((function(O,U){return typeof U=="string"?O.className=[O.className,U].filter(Boolean).join(" "):(U===void 0?"undefined":(0,s.default)(U))==="object"?O.style=(0,u.default)({},O.style,U):typeof U=="function"&&(O=(0,u.default)({},O,U.apply(void 0,[O].concat(z)))),O}),{className:"",style:{}});return K.className||delete K.className,(0,f.default)(K.style).length===0&&delete K.style,K},B=r.invertTheme=function(j){return(0,f.default)(j).reduce((function(C,M){return C[M]=/^base/.test(M)?Z(j[M]):M==="scheme"?j[M]+":inverted":j[M],C}),{})},N=(r.createStyling=(0,d.default)((function(j){for(var C=arguments.length,M=Array(C>3?C-3:0),z=3;z<C;z++)M[z-3]=arguments[z];var g=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},$=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},K=g.defaultBase16,O=K===void 0?Q:K,U=g.base16Themes,le=U===void 0?null:U,ne=N($,le);ne&&($=(0,u.default)({},ne,$));var W=L.reduce((function(pe,Oe){return pe[Oe]=$[Oe]||O[Oe],pe}),{}),re=(0,f.default)($).reduce((function(pe,Oe){return L.indexOf(Oe)===-1&&(pe[Oe]=$[Oe]),pe}),{}),G=j(W),ue=F(re,G);return(0,d.default)(R,2).apply(void 0,[ue].concat(M))}),3),r.getBase16Theme=function(j,C){if(j&&j.extend&&(j=j.extend),typeof j=="string"){var M=j.split(":"),z=(0,p.default)(M,2),g=z[0],$=z[1];j=(C||{})[g]||b[g],$==="inverted"&&(j=B(j))}return j&&j.hasOwnProperty("base00")?j:void 0})},function(i,r,e){var s,u=typeof Reflect=="object"?Reflect:null,p=u&&typeof u.apply=="function"?u.apply:function(t,F,R){return Function.prototype.apply.call(t,F,R)};s=u&&typeof u.ownKeys=="function"?u.ownKeys:Object.getOwnPropertySymbols?function(t){return Object.getOwnPropertyNames(t).concat(Object.getOwnPropertySymbols(t))}:function(t){return Object.getOwnPropertyNames(t)};var f=Number.isNaN||function(t){return t!=t};function d(){d.init.call(this)}i.exports=d,i.exports.once=function(t,F){return new Promise((function(R,B){function N(){j!==void 0&&t.removeListener("error",j),R([].slice.call(arguments))}var j;F!=="error"&&(j=function(C){t.removeListener(F,N),B(C)},t.once("error",j)),t.once(F,N)}))},d.EventEmitter=d,d.prototype._events=void 0,d.prototype._eventsCount=0,d.prototype._maxListeners=void 0;var b=10;function E(t){if(typeof t!="function")throw new TypeError('The "listener" argument must be of type Function. Received type '+typeof t)}function _(t){return t._maxListeners===void 0?d.defaultMaxListeners:t._maxListeners}function P(t,F,R,B){var N,j,C,M;if(E(R),(j=t._events)===void 0?(j=t._events=Object.create(null),t._eventsCount=0):(j.newListener!==void 0&&(t.emit("newListener",F,R.listener?R.listener:R),j=t._events),C=j[F]),C===void 0)C=j[F]=R,++t._eventsCount;else if(typeof C=="function"?C=j[F]=B?[R,C]:[C,R]:B?C.unshift(R):C.push(R),(N=_(t))>0&&C.length>N&&!C.warned){C.warned=!0;var z=new Error("Possible EventEmitter memory leak detected. "+C.length+" "+String(F)+" listeners added. Use emitter.setMaxListeners() to increase limit");z.name="MaxListenersExceededWarning",z.emitter=t,z.type=F,z.count=C.length,M=z,console&&console.warn&&console.warn(M)}return t}function D(){if(!this.fired)return this.target.removeListener(this.type,this.wrapFn),this.fired=!0,arguments.length===0?this.listener.call(this.target):this.listener.apply(this.target,arguments)}function V(t,F,R){var B={fired:!1,wrapFn:void 0,target:t,type:F,listener:R},N=D.bind(B);return N.listener=R,B.wrapFn=N,N}function Q(t,F,R){var B=t._events;if(B===void 0)return[];var N=B[F];return N===void 0?[]:typeof N=="function"?R?[N.listener||N]:[N]:R?(function(j){for(var C=new Array(j.length),M=0;M<C.length;++M)C[M]=j[M].listener||j[M];return C})(N):Z(N,N.length)}function L(t){var F=this._events;if(F!==void 0){var R=F[t];if(typeof R=="function")return 1;if(R!==void 0)return R.length}return 0}function Z(t,F){for(var R=new Array(F),B=0;B<F;++B)R[B]=t[B];return R}Object.defineProperty(d,"defaultMaxListeners",{enumerable:!0,get:function(){return b},set:function(t){if(typeof t!="number"||t<0||f(t))throw new RangeError('The value of "defaultMaxListeners" is out of range. It must be a non-negative number. Received '+t+".");b=t}}),d.init=function(){this._events!==void 0&&this._events!==Object.getPrototypeOf(this)._events||(this._events=Object.create(null),this._eventsCount=0),this._maxListeners=this._maxListeners||void 0},d.prototype.setMaxListeners=function(t){if(typeof t!="number"||t<0||f(t))throw new RangeError('The value of "n" is out of range. It must be a non-negative number. Received '+t+".");return this._maxListeners=t,this},d.prototype.getMaxListeners=function(){return _(this)},d.prototype.emit=function(t){for(var F=[],R=1;R<arguments.length;R++)F.push(arguments[R]);var B=t==="error",N=this._events;if(N!==void 0)B=B&&N.error===void 0;else if(!B)return!1;if(B){var j;if(F.length>0&&(j=F[0]),j instanceof Error)throw j;var C=new Error("Unhandled error."+(j?" ("+j.message+")":""));throw C.context=j,C}var M=N[t];if(M===void 0)return!1;if(typeof M=="function")p(M,this,F);else{var z=M.length,g=Z(M,z);for(R=0;R<z;++R)p(g[R],this,F)}return!0},d.prototype.addListener=function(t,F){return P(this,t,F,!1)},d.prototype.on=d.prototype.addListener,d.prototype.prependListener=function(t,F){return P(this,t,F,!0)},d.prototype.once=function(t,F){return E(F),this.on(t,V(this,t,F)),this},d.prototype.prependOnceListener=function(t,F){return E(F),this.prependListener(t,V(this,t,F)),this},d.prototype.removeListener=function(t,F){var R,B,N,j,C;if(E(F),(B=this._events)===void 0)return this;if((R=B[t])===void 0)return this;if(R===F||R.listener===F)--this._eventsCount==0?this._events=Object.create(null):(delete B[t],B.removeListener&&this.emit("removeListener",t,R.listener||F));else if(typeof R!="function"){for(N=-1,j=R.length-1;j>=0;j--)if(R[j]===F||R[j].listener===F){C=R[j].listener,N=j;break}if(N<0)return this;N===0?R.shift():(function(M,z){for(;z+1<M.length;z++)M[z]=M[z+1];M.pop()})(R,N),R.length===1&&(B[t]=R[0]),B.removeListener!==void 0&&this.emit("removeListener",t,C||F)}return this},d.prototype.off=d.prototype.removeListener,d.prototype.removeAllListeners=function(t){var F,R,B;if((R=this._events)===void 0)return this;if(R.removeListener===void 0)return arguments.length===0?(this._events=Object.create(null),this._eventsCount=0):R[t]!==void 0&&(--this._eventsCount==0?this._events=Object.create(null):delete R[t]),this;if(arguments.length===0){var N,j=Object.keys(R);for(B=0;B<j.length;++B)(N=j[B])!=="removeListener"&&this.removeAllListeners(N);return this.removeAllListeners("removeListener"),this._events=Object.create(null),this._eventsCount=0,this}if(typeof(F=R[t])=="function")this.removeListener(t,F);else if(F!==void 0)for(B=F.length-1;B>=0;B--)this.removeListener(t,F[B]);return this},d.prototype.listeners=function(t){return Q(this,t,!0)},d.prototype.rawListeners=function(t){return Q(this,t,!1)},d.listenerCount=function(t,F){return typeof t.listenerCount=="function"?t.listenerCount(F):L.call(t,F)},d.prototype.listenerCount=L,d.prototype.eventNames=function(){return this._eventsCount>0?s(this._events):[]}},function(i,r,e){i.exports.Dispatcher=e(140)},function(i,r,e){i.exports=e(142)},function(i,r,e){r.__esModule=!0;var s=f(e(50)),u=f(e(65)),p=typeof u.default=="function"&&typeof s.default=="symbol"?function(d){return typeof d}:function(d){return d&&typeof u.default=="function"&&d.constructor===u.default&&d!==u.default.prototype?"symbol":typeof d};function f(d){return d&&d.__esModule?d:{default:d}}r.default=typeof u.default=="function"&&p(s.default)==="symbol"?function(d){return d===void 0?"undefined":p(d)}:function(d){return d&&typeof u.default=="function"&&d.constructor===u.default&&d!==u.default.prototype?"symbol":d===void 0?"undefined":p(d)}},function(i,r,e){i.exports={default:e(51),__esModule:!0}},function(i,r,e){e(20),e(29),i.exports=e(30).f("iterator")},function(i,r,e){var s=e(21),u=e(22);i.exports=function(p){return function(f,d){var b,E,_=String(u(f)),P=s(d),D=_.length;return P<0||P>=D?p?"":void 0:(b=_.charCodeAt(P))<55296||b>56319||P+1===D||(E=_.charCodeAt(P+1))<56320||E>57343?p?_.charAt(P):b:p?_.slice(P,P+2):E-56320+(b-55296<<10)+65536}}},function(i,r,e){var s=e(54);i.exports=function(u,p,f){if(s(u),p===void 0)return u;switch(f){case 1:return function(d){return u.call(p,d)};case 2:return function(d,b){return u.call(p,d,b)};case 3:return function(d,b,E){return u.call(p,d,b,E)}}return function(){return u.apply(p,arguments)}}},function(i,r){i.exports=function(e){if(typeof e!="function")throw TypeError(e+" is not a function!");return e}},function(i,r,e){var s=e(38),u=e(16),p=e(28),f={};e(6)(f,e(2)("iterator"),(function(){return this})),i.exports=function(d,b,E){d.prototype=s(f,{next:u(1,E)}),p(d,b+" Iterator")}},function(i,r,e){var s=e(7),u=e(10),p=e(13);i.exports=e(4)?Object.defineProperties:function(f,d){u(f);for(var b,E=p(d),_=E.length,P=0;_>P;)s.f(f,b=E[P++],d[b]);return f}},function(i,r,e){var s=e(9),u=e(58),p=e(59);i.exports=function(f){return function(d,b,E){var _,P=s(d),D=u(P.length),V=p(E,D);if(f&&b!=b){for(;D>V;)if((_=P[V++])!=_)return!0}else for(;D>V;V++)if((f||V in P)&&P[V]===b)return f||V||0;return!f&&-1}}},function(i,r,e){var s=e(21),u=Math.min;i.exports=function(p){return p>0?u(s(p),9007199254740991):0}},function(i,r,e){var s=e(21),u=Math.max,p=Math.min;i.exports=function(f,d){return(f=s(f))<0?u(f+d,0):p(f,d)}},function(i,r,e){var s=e(3).document;i.exports=s&&s.documentElement},function(i,r,e){var s=e(5),u=e(18),p=e(25)("IE_PROTO"),f=Object.prototype;i.exports=Object.getPrototypeOf||function(d){return d=u(d),s(d,p)?d[p]:typeof d.constructor=="function"&&d instanceof d.constructor?d.constructor.prototype:d instanceof Object?f:null}},function(i,r,e){var s=e(63),u=e(64),p=e(12),f=e(9);i.exports=e(34)(Array,"Array",(function(d,b){this._t=f(d),this._i=0,this._k=b}),(function(){var d=this._t,b=this._k,E=this._i++;return!d||E>=d.length?(this._t=void 0,u(1)):u(0,b=="keys"?E:b=="values"?d[E]:[E,d[E]])}),"values"),p.Arguments=p.Array,s("keys"),s("values"),s("entries")},function(i,r){i.exports=function(){}},function(i,r){i.exports=function(e,s){return{value:s,done:!!e}}},function(i,r,e){i.exports={default:e(66),__esModule:!0}},function(i,r,e){e(67),e(73),e(74),e(75),i.exports=e(1).Symbol},function(i,r,e){var s=e(3),u=e(5),p=e(4),f=e(15),d=e(37),b=e(68).KEY,E=e(8),_=e(26),P=e(28),D=e(17),V=e(2),Q=e(30),L=e(31),Z=e(69),t=e(70),F=e(10),R=e(11),B=e(18),N=e(9),j=e(23),C=e(16),M=e(38),z=e(71),g=e(72),$=e(32),K=e(7),O=e(13),U=g.f,le=K.f,ne=z.f,W=s.Symbol,re=s.JSON,G=re&&re.stringify,ue=V("_hidden"),pe=V("toPrimitive"),Oe={}.propertyIsEnumerable,me=_("symbol-registry"),Ee=_("symbols"),ce=_("op-symbols"),de=Object.prototype,we=typeof W=="function"&&!!$.f,Ne=s.QObject,Ke=!Ne||!Ne.prototype||!Ne.prototype.findChild,We=p&&E((function(){return M(le({},"a",{get:function(){return le(this,"a",{value:7}).a}})).a!=7}))?function(y,w,I){var T=U(de,w);T&&delete de[w],le(y,w,I),T&&y!==de&&le(de,w,T)}:le,He=function(y){var w=Ee[y]=M(W.prototype);return w._k=y,w},Ue=we&&typeof W.iterator=="symbol"?function(y){return typeof y=="symbol"}:function(y){return y instanceof W},ze=function(y,w,I){return y===de&&ze(ce,w,I),F(y),w=j(w,!0),F(I),u(Ee,w)?(I.enumerable?(u(y,ue)&&y[ue][w]&&(y[ue][w]=!1),I=M(I,{enumerable:C(0,!1)})):(u(y,ue)||le(y,ue,C(1,{})),y[ue][w]=!0),We(y,w,I)):le(y,w,I)},Je=function(y,w){F(y);for(var I,T=Z(w=N(w)),X=0,J=T.length;J>X;)ze(y,I=T[X++],w[I]);return y},Ye=function(y){var w=Oe.call(this,y=j(y,!0));return!(this===de&&u(Ee,y)&&!u(ce,y))&&(!(w||!u(this,y)||!u(Ee,y)||u(this,ue)&&this[ue][y])||w)},Ge=function(y,w){if(y=N(y),w=j(w,!0),y!==de||!u(Ee,w)||u(ce,w)){var I=U(y,w);return!I||!u(Ee,w)||u(y,ue)&&y[ue][w]||(I.enumerable=!0),I}},Qe=function(y){for(var w,I=ne(N(y)),T=[],X=0;I.length>X;)u(Ee,w=I[X++])||w==ue||w==b||T.push(w);return T},Te=function(y){for(var w,I=y===de,T=ne(I?ce:N(y)),X=[],J=0;T.length>J;)!u(Ee,w=T[J++])||I&&!u(de,w)||X.push(Ee[w]);return X};we||(d((W=function(){if(this instanceof W)throw TypeError("Symbol is not a constructor!");var y=D(arguments.length>0?arguments[0]:void 0),w=function(I){this===de&&w.call(ce,I),u(this,ue)&&u(this[ue],y)&&(this[ue][y]=!1),We(this,y,C(1,I))};return p&&Ke&&We(de,y,{configurable:!0,set:w}),He(y)}).prototype,"toString",(function(){return this._k})),g.f=Ge,K.f=ze,e(41).f=z.f=Qe,e(19).f=Ye,$.f=Te,p&&!e(14)&&d(de,"propertyIsEnumerable",Ye,!0),Q.f=function(y){return He(V(y))}),f(f.G+f.W+f.F*!we,{Symbol:W});for(var Fe="hasInstance,isConcatSpreadable,iterator,match,replace,search,species,split,toPrimitive,toStringTag,unscopables".split(","),je=0;Fe.length>je;)V(Fe[je++]);for(var $e=O(V.store),S=0;$e.length>S;)L($e[S++]);f(f.S+f.F*!we,"Symbol",{for:function(y){return u(me,y+="")?me[y]:me[y]=W(y)},keyFor:function(y){if(!Ue(y))throw TypeError(y+" is not a symbol!");for(var w in me)if(me[w]===y)return w},useSetter:function(){Ke=!0},useSimple:function(){Ke=!1}}),f(f.S+f.F*!we,"Object",{create:function(y,w){return w===void 0?M(y):Je(M(y),w)},defineProperty:ze,defineProperties:Je,getOwnPropertyDescriptor:Ge,getOwnPropertyNames:Qe,getOwnPropertySymbols:Te});var m=E((function(){$.f(1)}));f(f.S+f.F*m,"Object",{getOwnPropertySymbols:function(y){return $.f(B(y))}}),re&&f(f.S+f.F*(!we||E((function(){var y=W();return G([y])!="[null]"||G({a:y})!="{}"||G(Object(y))!="{}"}))),"JSON",{stringify:function(y){for(var w,I,T=[y],X=1;arguments.length>X;)T.push(arguments[X++]);if(I=w=T[1],(R(w)||y!==void 0)&&!Ue(y))return t(w)||(w=function(J,oe){if(typeof I=="function"&&(oe=I.call(this,J,oe)),!Ue(oe))return oe}),T[1]=w,G.apply(re,T)}}),W.prototype[pe]||e(6)(W.prototype,pe,W.prototype.valueOf),P(W,"Symbol"),P(Math,"Math",!0),P(s.JSON,"JSON",!0)},function(i,r,e){var s=e(17)("meta"),u=e(11),p=e(5),f=e(7).f,d=0,b=Object.isExtensible||function(){return!0},E=!e(8)((function(){return b(Object.preventExtensions({}))})),_=function(D){f(D,s,{value:{i:"O"+ ++d,w:{}}})},P=i.exports={KEY:s,NEED:!1,fastKey:function(D,V){if(!u(D))return typeof D=="symbol"?D:(typeof D=="string"?"S":"P")+D;if(!p(D,s)){if(!b(D))return"F";if(!V)return"E";_(D)}return D[s].i},getWeak:function(D,V){if(!p(D,s)){if(!b(D))return!0;if(!V)return!1;_(D)}return D[s].w},onFreeze:function(D){return E&&P.NEED&&b(D)&&!p(D,s)&&_(D),D}}},function(i,r,e){var s=e(13),u=e(32),p=e(19);i.exports=function(f){var d=s(f),b=u.f;if(b)for(var E,_=b(f),P=p.f,D=0;_.length>D;)P.call(f,E=_[D++])&&d.push(E);return d}},function(i,r,e){var s=e(24);i.exports=Array.isArray||function(u){return s(u)=="Array"}},function(i,r,e){var s=e(9),u=e(41).f,p={}.toString,f=typeof window=="object"&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[];i.exports.f=function(d){return f&&p.call(d)=="[object Window]"?(function(b){try{return u(b)}catch{return f.slice()}})(d):u(s(d))}},function(i,r,e){var s=e(19),u=e(16),p=e(9),f=e(23),d=e(5),b=e(35),E=Object.getOwnPropertyDescriptor;r.f=e(4)?E:function(_,P){if(_=p(_),P=f(P,!0),b)try{return E(_,P)}catch{}if(d(_,P))return u(!s.f.call(_,P),_[P])}},function(i,r){},function(i,r,e){e(31)("asyncIterator")},function(i,r,e){e(31)("observable")},function(i,r,e){r.__esModule=!0;var s,u=e(77),p=(s=u)&&s.__esModule?s:{default:s};r.default=p.default||function(f){for(var d=1;d<arguments.length;d++){var b=arguments[d];for(var E in b)Object.prototype.hasOwnProperty.call(b,E)&&(f[E]=b[E])}return f}},function(i,r,e){i.exports={default:e(78),__esModule:!0}},function(i,r,e){e(79),i.exports=e(1).Object.assign},function(i,r,e){var s=e(15);s(s.S+s.F,"Object",{assign:e(80)})},function(i,r,e){var s=e(4),u=e(13),p=e(32),f=e(19),d=e(18),b=e(40),E=Object.assign;i.exports=!E||e(8)((function(){var _={},P={},D=Symbol(),V="abcdefghijklmnopqrst";return _[D]=7,V.split("").forEach((function(Q){P[Q]=Q})),E({},_)[D]!=7||Object.keys(E({},P)).join("")!=V}))?function(_,P){for(var D=d(_),V=arguments.length,Q=1,L=p.f,Z=f.f;V>Q;)for(var t,F=b(arguments[Q++]),R=L?u(F).concat(L(F)):u(F),B=R.length,N=0;B>N;)t=R[N++],s&&!Z.call(F,t)||(D[t]=F[t]);return D}:E},function(i,r,e){r.__esModule=!0;var s=p(e(82)),u=p(e(85));function p(f){return f&&f.__esModule?f:{default:f}}r.default=function(f,d){if(Array.isArray(f))return f;if((0,s.default)(Object(f)))return(function(b,E){var _=[],P=!0,D=!1,V=void 0;try{for(var Q,L=(0,u.default)(b);!(P=(Q=L.next()).done)&&(_.push(Q.value),!E||_.length!==E);P=!0);}catch(Z){D=!0,V=Z}finally{try{!P&&L.return&&L.return()}finally{if(D)throw V}}return _})(f,d);throw new TypeError("Invalid attempt to destructure non-iterable instance")}},function(i,r,e){i.exports={default:e(83),__esModule:!0}},function(i,r,e){e(29),e(20),i.exports=e(84)},function(i,r,e){var s=e(42),u=e(2)("iterator"),p=e(12);i.exports=e(1).isIterable=function(f){var d=Object(f);return d[u]!==void 0||"@@iterator"in d||p.hasOwnProperty(s(d))}},function(i,r,e){i.exports={default:e(86),__esModule:!0}},function(i,r,e){e(29),e(20),i.exports=e(87)},function(i,r,e){var s=e(10),u=e(88);i.exports=e(1).getIterator=function(p){var f=u(p);if(typeof f!="function")throw TypeError(p+" is not iterable!");return s(f.call(p))}},function(i,r,e){var s=e(42),u=e(2)("iterator"),p=e(12);i.exports=e(1).getIteratorMethod=function(f){if(f!=null)return f[u]||f["@@iterator"]||p[s(f)]}},function(i,r,e){i.exports={default:e(90),__esModule:!0}},function(i,r,e){e(91),i.exports=e(1).Object.keys},function(i,r,e){var s=e(18),u=e(13);e(92)("keys",(function(){return function(p){return u(s(p))}}))},function(i,r,e){var s=e(15),u=e(1),p=e(8);i.exports=function(f,d){var b=(u.Object||{})[f]||Object[f],E={};E[f]=d(b),s(s.S+s.F*p((function(){b(1)})),"Object",E)}},function(i,r,e){(function(s){var u=[["ary",128],["bind",1],["bindKey",2],["curry",8],["curryRight",16],["flip",512],["partial",32],["partialRight",64],["rearg",256]],p=/^\s+|\s+$/g,f=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,d=/\{\n\/\* \[wrapped with (.+)\] \*/,b=/,? & /,E=/^[-+]0x[0-9a-f]+$/i,_=/^0b[01]+$/i,P=/^\[object .+?Constructor\]$/,D=/^0o[0-7]+$/i,V=/^(?:0|[1-9]\d*)$/,Q=parseInt,L=typeof s=="object"&&s&&s.Object===Object&&s,Z=typeof self=="object"&&self&&self.Object===Object&&self,t=L||Z||Function("return this")();function F(S,m,y){switch(y.length){case 0:return S.call(m);case 1:return S.call(m,y[0]);case 2:return S.call(m,y[0],y[1]);case 3:return S.call(m,y[0],y[1],y[2])}return S.apply(m,y)}function R(S,m){return!!(S&&S.length)&&(function(y,w,I){if(w!=w)return(function(J,oe,be,he){for(var xe=J.length,fe=be+-1;++fe<xe;)if(oe(J[fe],fe,J))return fe;return-1})(y,B,I);for(var T=I-1,X=y.length;++T<X;)if(y[T]===w)return T;return-1})(S,m,0)>-1}function B(S){return S!=S}function N(S,m){for(var y=S.length,w=0;y--;)S[y]===m&&w++;return w}function j(S,m){for(var y=-1,w=S.length,I=0,T=[];++y<w;){var X=S[y];X!==m&&X!=="__lodash_placeholder__"||(S[y]="__lodash_placeholder__",T[I++]=y)}return T}var C,M,z,g=Function.prototype,$=Object.prototype,K=t["__core-js_shared__"],O=(C=/[^.]+$/.exec(K&&K.keys&&K.keys.IE_PROTO||""))?"Symbol(src)_1."+C:"",U=g.toString,le=$.hasOwnProperty,ne=$.toString,W=RegExp("^"+U.call(le).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),re=Object.create,G=Math.max,ue=Math.min,pe=(M=He(Object,"defineProperty"),(z=He.name)&&z.length>2?M:void 0);function Oe(S){return Fe(S)?re(S):{}}function me(S){return!(!Fe(S)||(function(m){return!!O&&O in m})(S))&&((function(m){var y=Fe(m)?ne.call(m):"";return y=="[object Function]"||y=="[object GeneratorFunction]"})(S)||(function(m){var y=!1;if(m!=null&&typeof m.toString!="function")try{y=!!(m+"")}catch{}return y})(S)?W:P).test((function(m){if(m!=null){try{return U.call(m)}catch{}try{return m+""}catch{}}return""})(S))}function Ee(S,m,y,w){for(var I=-1,T=S.length,X=y.length,J=-1,oe=m.length,be=G(T-X,0),he=Array(oe+be),xe=!w;++J<oe;)he[J]=m[J];for(;++I<X;)(xe||I<T)&&(he[y[I]]=S[I]);for(;be--;)he[J++]=S[I++];return he}function ce(S,m,y,w){for(var I=-1,T=S.length,X=-1,J=y.length,oe=-1,be=m.length,he=G(T-J,0),xe=Array(he+be),fe=!w;++I<he;)xe[I]=S[I];for(var Se=I;++oe<be;)xe[Se+oe]=m[oe];for(;++X<J;)(fe||I<T)&&(xe[Se+y[X]]=S[I++]);return xe}function de(S){return function(){var m=arguments;switch(m.length){case 0:return new S;case 1:return new S(m[0]);case 2:return new S(m[0],m[1]);case 3:return new S(m[0],m[1],m[2]);case 4:return new S(m[0],m[1],m[2],m[3]);case 5:return new S(m[0],m[1],m[2],m[3],m[4]);case 6:return new S(m[0],m[1],m[2],m[3],m[4],m[5]);case 7:return new S(m[0],m[1],m[2],m[3],m[4],m[5],m[6])}var y=Oe(S.prototype),w=S.apply(y,m);return Fe(w)?w:y}}function we(S,m,y,w,I,T,X,J,oe,be){var he=128&m,xe=1&m,fe=2&m,Se=24&m,Ae=512&m,Le=fe?void 0:de(S);return function De(){for(var ye=arguments.length,te=Array(ye),_e=ye;_e--;)te[_e]=arguments[_e];if(Se)var Ce=We(De),Be=N(te,Ce);if(w&&(te=Ee(te,w,I,Se)),T&&(te=ce(te,T,X,Se)),ye-=Be,Se&&ye<be){var Ie=j(te,Ce);return Ne(S,m,we,De.placeholder,y,te,Ie,J,oe,be-ye)}var Me=xe?y:this,Re=fe?Me[S]:S;return ye=te.length,J?te=Ye(te,J):Ae&&ye>1&&te.reverse(),he&&oe<ye&&(te.length=oe),this&&this!==t&&this instanceof De&&(Re=Le||de(Re)),Re.apply(Me,te)}}function Ne(S,m,y,w,I,T,X,J,oe,be){var he=8&m;m|=he?32:64,4&(m&=~(he?64:32))||(m&=-4);var xe=y(S,m,I,he?T:void 0,he?X:void 0,he?void 0:T,he?void 0:X,J,oe,be);return xe.placeholder=w,Ge(xe,S,m)}function Ke(S,m,y,w,I,T,X,J){var oe=2&m;if(!oe&&typeof S!="function")throw new TypeError("Expected a function");var be=w?w.length:0;if(be||(m&=-97,w=I=void 0),X=X===void 0?X:G($e(X),0),J=J===void 0?J:$e(J),be-=I?I.length:0,64&m){var he=w,xe=I;w=I=void 0}var fe=[S,m,y,w,I,he,xe,T,X,J];if(S=fe[0],m=fe[1],y=fe[2],w=fe[3],I=fe[4],!(J=fe[9]=fe[9]==null?oe?0:S.length:G(fe[9]-be,0))&&24&m&&(m&=-25),m&&m!=1)Se=m==8||m==16?(function(Ae,Le,De){var ye=de(Ae);return function te(){for(var _e=arguments.length,Ce=Array(_e),Be=_e,Ie=We(te);Be--;)Ce[Be]=arguments[Be];var Me=_e<3&&Ce[0]!==Ie&&Ce[_e-1]!==Ie?[]:j(Ce,Ie);if((_e-=Me.length)<De)return Ne(Ae,Le,we,te.placeholder,void 0,Ce,Me,void 0,void 0,De-_e);var Re=this&&this!==t&&this instanceof te?ye:Ae;return F(Re,this,Ce)}})(S,m,J):m!=32&&m!=33||I.length?we.apply(void 0,fe):(function(Ae,Le,De,ye){var te=1&Le,_e=de(Ae);return function Ce(){for(var Be=-1,Ie=arguments.length,Me=-1,Re=ye.length,Ze=Array(Re+Ie),rt=this&&this!==t&&this instanceof Ce?_e:Ae;++Me<Re;)Ze[Me]=ye[Me];for(;Ie--;)Ze[Me++]=arguments[++Be];return F(rt,te?De:this,Ze)}})(S,m,y,w);else var Se=(function(Ae,Le,De){var ye=1&Le,te=de(Ae);return function _e(){var Ce=this&&this!==t&&this instanceof _e?te:Ae;return Ce.apply(ye?De:this,arguments)}})(S,m,y);return Ge(Se,S,m)}function We(S){return S.placeholder}function He(S,m){var y=(function(w,I){return w?.[I]})(S,m);return me(y)?y:void 0}function Ue(S){var m=S.match(d);return m?m[1].split(b):[]}function ze(S,m){var y=m.length,w=y-1;return m[w]=(y>1?"& ":"")+m[w],m=m.join(y>2?", ":" "),S.replace(f,`{
2
2
  /* [wrapped with `+m+`] */
3
3
  `)}function Je(S,m){return!!(m=m??9007199254740991)&&(typeof S=="number"||V.test(S))&&S>-1&&S%1==0&&S<m}function Ye(S,m){for(var y=S.length,w=ue(m.length,y),I=(function(X,J){var oe=-1,be=X.length;for(J||(J=Array(be));++oe<be;)J[oe]=X[oe];return J})(S);w--;){var T=m[w];S[w]=Je(T,y)?I[T]:void 0}return S}var Ge=pe?function(S,m,y){var w,I=m+"";return pe(S,"toString",{configurable:!0,enumerable:!1,value:(w=ze(I,Qe(Ue(I),y)),function(){return w})})}:function(S){return S};function Qe(S,m){return(function(y,w){for(var I=-1,T=y?y.length:0;++I<T&&w(y[I],I,y)!==!1;);})(u,(function(y){var w="_."+y[0];m&y[1]&&!R(S,w)&&S.push(w)})),S.sort()}function Te(S,m,y){var w=Ke(S,8,void 0,void 0,void 0,void 0,void 0,m=y?void 0:m);return w.placeholder=Te.placeholder,w}function Fe(S){var m=typeof S;return!!S&&(m=="object"||m=="function")}function je(S){return S?(S=(function(m){if(typeof m=="number")return m;if((function(I){return typeof I=="symbol"||(function(T){return!!T&&typeof T=="object"})(I)&&ne.call(I)=="[object Symbol]"})(m))return NaN;if(Fe(m)){var y=typeof m.valueOf=="function"?m.valueOf():m;m=Fe(y)?y+"":y}if(typeof m!="string")return m===0?m:+m;m=m.replace(p,"");var w=_.test(m);return w||D.test(m)?Q(m.slice(2),w?2:8):E.test(m)?NaN:+m})(S))===1/0||S===-1/0?17976931348623157e292*(S<0?-1:1):S==S?S:0:S===0?S:0}function $e(S){var m=je(S),y=m%1;return m==m?y?m-y:m:0}Te.placeholder={},i.exports=Te}).call(this,e(43))},function(i,r,e){function s(ce){return ce&&ce.__esModule?ce.default:ce}r.__esModule=!0;var u=e(95);r.threezerotwofour=s(u);var p=e(96);r.apathy=s(p);var f=e(97);r.ashes=s(f);var d=e(98);r.atelierDune=s(d);var b=e(99);r.atelierForest=s(b);var E=e(100);r.atelierHeath=s(E);var _=e(101);r.atelierLakeside=s(_);var P=e(102);r.atelierSeaside=s(P);var D=e(103);r.bespin=s(D);var V=e(104);r.brewer=s(V);var Q=e(105);r.bright=s(Q);var L=e(106);r.chalk=s(L);var Z=e(107);r.codeschool=s(Z);var t=e(108);r.colors=s(t);var F=e(109);r.default=s(F);var R=e(110);r.eighties=s(R);var B=e(111);r.embers=s(B);var N=e(112);r.flat=s(N);var j=e(113);r.google=s(j);var C=e(114);r.grayscale=s(C);var M=e(115);r.greenscreen=s(M);var z=e(116);r.harmonic=s(z);var g=e(117);r.hopscotch=s(g);var $=e(118);r.isotope=s($);var K=e(119);r.marrakesh=s(K);var O=e(120);r.mocha=s(O);var U=e(121);r.monokai=s(U);var le=e(122);r.ocean=s(le);var ne=e(123);r.paraiso=s(ne);var W=e(124);r.pop=s(W);var re=e(125);r.railscasts=s(re);var G=e(126);r.shapeshifter=s(G);var ue=e(127);r.solarized=s(ue);var pe=e(128);r.summerfruit=s(pe);var Oe=e(129);r.tomorrow=s(Oe);var me=e(130);r.tube=s(me);var Ee=e(131);r.twilight=s(Ee)},function(i,r,e){r.__esModule=!0,r.default={scheme:"threezerotwofour",author:"jan t. sott (http://github.com/idleberg)",base00:"#090300",base01:"#3a3432",base02:"#4a4543",base03:"#5c5855",base04:"#807d7c",base05:"#a5a2a2",base06:"#d6d5d4",base07:"#f7f7f7",base08:"#db2d20",base09:"#e8bbd0",base0A:"#fded02",base0B:"#01a252",base0C:"#b5e4f4",base0D:"#01a0e4",base0E:"#a16a94",base0F:"#cdab53"},i.exports=r.default},function(i,r,e){r.__esModule=!0,r.default={scheme:"apathy",author:"jannik siebert (https://github.com/janniks)",base00:"#031A16",base01:"#0B342D",base02:"#184E45",base03:"#2B685E",base04:"#5F9C92",base05:"#81B5AC",base06:"#A7CEC8",base07:"#D2E7E4",base08:"#3E9688",base09:"#3E7996",base0A:"#3E4C96",base0B:"#883E96",base0C:"#963E4C",base0D:"#96883E",base0E:"#4C963E",base0F:"#3E965B"},i.exports=r.default},function(i,r,e){r.__esModule=!0,r.default={scheme:"ashes",author:"jannik siebert (https://github.com/janniks)",base00:"#1C2023",base01:"#393F45",base02:"#565E65",base03:"#747C84",base04:"#ADB3BA",base05:"#C7CCD1",base06:"#DFE2E5",base07:"#F3F4F5",base08:"#C7AE95",base09:"#C7C795",base0A:"#AEC795",base0B:"#95C7AE",base0C:"#95AEC7",base0D:"#AE95C7",base0E:"#C795AE",base0F:"#C79595"},i.exports=r.default},function(i,r,e){r.__esModule=!0,r.default={scheme:"atelier dune",author:"bram de haan (http://atelierbram.github.io/syntax-highlighting/atelier-schemes/dune)",base00:"#20201d",base01:"#292824",base02:"#6e6b5e",base03:"#7d7a68",base04:"#999580",base05:"#a6a28c",base06:"#e8e4cf",base07:"#fefbec",base08:"#d73737",base09:"#b65611",base0A:"#cfb017",base0B:"#60ac39",base0C:"#1fad83",base0D:"#6684e1",base0E:"#b854d4",base0F:"#d43552"},i.exports=r.default},function(i,r,e){r.__esModule=!0,r.default={scheme:"atelier forest",author:"bram de haan (http://atelierbram.github.io/syntax-highlighting/atelier-schemes/forest)",base00:"#1b1918",base01:"#2c2421",base02:"#68615e",base03:"#766e6b",base04:"#9c9491",base05:"#a8a19f",base06:"#e6e2e0",base07:"#f1efee",base08:"#f22c40",base09:"#df5320",base0A:"#d5911a",base0B:"#5ab738",base0C:"#00ad9c",base0D:"#407ee7",base0E:"#6666ea",base0F:"#c33ff3"},i.exports=r.default},function(i,r,e){r.__esModule=!0,r.default={scheme:"atelier heath",author:"bram de haan (http://atelierbram.github.io/syntax-highlighting/atelier-schemes/heath)",base00:"#1b181b",base01:"#292329",base02:"#695d69",base03:"#776977",base04:"#9e8f9e",base05:"#ab9bab",base06:"#d8cad8",base07:"#f7f3f7",base08:"#ca402b",base09:"#a65926",base0A:"#bb8a35",base0B:"#379a37",base0C:"#159393",base0D:"#516aec",base0E:"#7b59c0",base0F:"#cc33cc"},i.exports=r.default},function(i,r,e){r.__esModule=!0,r.default={scheme:"atelier lakeside",author:"bram de haan (http://atelierbram.github.io/syntax-highlighting/atelier-schemes/lakeside/)",base00:"#161b1d",base01:"#1f292e",base02:"#516d7b",base03:"#5a7b8c",base04:"#7195a8",base05:"#7ea2b4",base06:"#c1e4f6",base07:"#ebf8ff",base08:"#d22d72",base09:"#935c25",base0A:"#8a8a0f",base0B:"#568c3b",base0C:"#2d8f6f",base0D:"#257fad",base0E:"#5d5db1",base0F:"#b72dd2"},i.exports=r.default},function(i,r,e){r.__esModule=!0,r.default={scheme:"atelier seaside",author:"bram de haan (http://atelierbram.github.io/syntax-highlighting/atelier-schemes/seaside/)",base00:"#131513",base01:"#242924",base02:"#5e6e5e",base03:"#687d68",base04:"#809980",base05:"#8ca68c",base06:"#cfe8cf",base07:"#f0fff0",base08:"#e6193c",base09:"#87711d",base0A:"#c3c322",base0B:"#29a329",base0C:"#1999b3",base0D:"#3d62f5",base0E:"#ad2bee",base0F:"#e619c3"},i.exports=r.default},function(i,r,e){r.__esModule=!0,r.default={scheme:"bespin",author:"jan t. sott",base00:"#28211c",base01:"#36312e",base02:"#5e5d5c",base03:"#666666",base04:"#797977",base05:"#8a8986",base06:"#9d9b97",base07:"#baae9e",base08:"#cf6a4c",base09:"#cf7d34",base0A:"#f9ee98",base0B:"#54be0d",base0C:"#afc4db",base0D:"#5ea6ea",base0E:"#9b859d",base0F:"#937121"},i.exports=r.default},function(i,r,e){r.__esModule=!0,r.default={scheme:"brewer",author:"timothée poisot (http://github.com/tpoisot)",base00:"#0c0d0e",base01:"#2e2f30",base02:"#515253",base03:"#737475",base04:"#959697",base05:"#b7b8b9",base06:"#dadbdc",base07:"#fcfdfe",base08:"#e31a1c",base09:"#e6550d",base0A:"#dca060",base0B:"#31a354",base0C:"#80b1d3",base0D:"#3182bd",base0E:"#756bb1",base0F:"#b15928"},i.exports=r.default},function(i,r,e){r.__esModule=!0,r.default={scheme:"bright",author:"chris kempson (http://chriskempson.com)",base00:"#000000",base01:"#303030",base02:"#505050",base03:"#b0b0b0",base04:"#d0d0d0",base05:"#e0e0e0",base06:"#f5f5f5",base07:"#ffffff",base08:"#fb0120",base09:"#fc6d24",base0A:"#fda331",base0B:"#a1c659",base0C:"#76c7b7",base0D:"#6fb3d2",base0E:"#d381c3",base0F:"#be643c"},i.exports=r.default},function(i,r,e){r.__esModule=!0,r.default={scheme:"chalk",author:"chris kempson (http://chriskempson.com)",base00:"#151515",base01:"#202020",base02:"#303030",base03:"#505050",base04:"#b0b0b0",base05:"#d0d0d0",base06:"#e0e0e0",base07:"#f5f5f5",base08:"#fb9fb1",base09:"#eda987",base0A:"#ddb26f",base0B:"#acc267",base0C:"#12cfc0",base0D:"#6fc2ef",base0E:"#e1a3ee",base0F:"#deaf8f"},i.exports=r.default},function(i,r,e){r.__esModule=!0,r.default={scheme:"codeschool",author:"brettof86",base00:"#232c31",base01:"#1c3657",base02:"#2a343a",base03:"#3f4944",base04:"#84898c",base05:"#9ea7a6",base06:"#a7cfa3",base07:"#b5d8f6",base08:"#2a5491",base09:"#43820d",base0A:"#a03b1e",base0B:"#237986",base0C:"#b02f30",base0D:"#484d79",base0E:"#c59820",base0F:"#c98344"},i.exports=r.default},function(i,r,e){r.__esModule=!0,r.default={scheme:"colors",author:"mrmrs (http://clrs.cc)",base00:"#111111",base01:"#333333",base02:"#555555",base03:"#777777",base04:"#999999",base05:"#bbbbbb",base06:"#dddddd",base07:"#ffffff",base08:"#ff4136",base09:"#ff851b",base0A:"#ffdc00",base0B:"#2ecc40",base0C:"#7fdbff",base0D:"#0074d9",base0E:"#b10dc9",base0F:"#85144b"},i.exports=r.default},function(i,r,e){r.__esModule=!0,r.default={scheme:"default",author:"chris kempson (http://chriskempson.com)",base00:"#181818",base01:"#282828",base02:"#383838",base03:"#585858",base04:"#b8b8b8",base05:"#d8d8d8",base06:"#e8e8e8",base07:"#f8f8f8",base08:"#ab4642",base09:"#dc9656",base0A:"#f7ca88",base0B:"#a1b56c",base0C:"#86c1b9",base0D:"#7cafc2",base0E:"#ba8baf",base0F:"#a16946"},i.exports=r.default},function(i,r,e){r.__esModule=!0,r.default={scheme:"eighties",author:"chris kempson (http://chriskempson.com)",base00:"#2d2d2d",base01:"#393939",base02:"#515151",base03:"#747369",base04:"#a09f93",base05:"#d3d0c8",base06:"#e8e6df",base07:"#f2f0ec",base08:"#f2777a",base09:"#f99157",base0A:"#ffcc66",base0B:"#99cc99",base0C:"#66cccc",base0D:"#6699cc",base0E:"#cc99cc",base0F:"#d27b53"},i.exports=r.default},function(i,r,e){r.__esModule=!0,r.default={scheme:"embers",author:"jannik siebert (https://github.com/janniks)",base00:"#16130F",base01:"#2C2620",base02:"#433B32",base03:"#5A5047",base04:"#8A8075",base05:"#A39A90",base06:"#BEB6AE",base07:"#DBD6D1",base08:"#826D57",base09:"#828257",base0A:"#6D8257",base0B:"#57826D",base0C:"#576D82",base0D:"#6D5782",base0E:"#82576D",base0F:"#825757"},i.exports=r.default},function(i,r,e){r.__esModule=!0,r.default={scheme:"flat",author:"chris kempson (http://chriskempson.com)",base00:"#2C3E50",base01:"#34495E",base02:"#7F8C8D",base03:"#95A5A6",base04:"#BDC3C7",base05:"#e0e0e0",base06:"#f5f5f5",base07:"#ECF0F1",base08:"#E74C3C",base09:"#E67E22",base0A:"#F1C40F",base0B:"#2ECC71",base0C:"#1ABC9C",base0D:"#3498DB",base0E:"#9B59B6",base0F:"#be643c"},i.exports=r.default},function(i,r,e){r.__esModule=!0,r.default={scheme:"google",author:"seth wright (http://sethawright.com)",base00:"#1d1f21",base01:"#282a2e",base02:"#373b41",base03:"#969896",base04:"#b4b7b4",base05:"#c5c8c6",base06:"#e0e0e0",base07:"#ffffff",base08:"#CC342B",base09:"#F96A38",base0A:"#FBA922",base0B:"#198844",base0C:"#3971ED",base0D:"#3971ED",base0E:"#A36AC7",base0F:"#3971ED"},i.exports=r.default},function(i,r,e){r.__esModule=!0,r.default={scheme:"grayscale",author:"alexandre gavioli (https://github.com/alexx2/)",base00:"#101010",base01:"#252525",base02:"#464646",base03:"#525252",base04:"#ababab",base05:"#b9b9b9",base06:"#e3e3e3",base07:"#f7f7f7",base08:"#7c7c7c",base09:"#999999",base0A:"#a0a0a0",base0B:"#8e8e8e",base0C:"#868686",base0D:"#686868",base0E:"#747474",base0F:"#5e5e5e"},i.exports=r.default},function(i,r,e){r.__esModule=!0,r.default={scheme:"green screen",author:"chris kempson (http://chriskempson.com)",base00:"#001100",base01:"#003300",base02:"#005500",base03:"#007700",base04:"#009900",base05:"#00bb00",base06:"#00dd00",base07:"#00ff00",base08:"#007700",base09:"#009900",base0A:"#007700",base0B:"#00bb00",base0C:"#005500",base0D:"#009900",base0E:"#00bb00",base0F:"#005500"},i.exports=r.default},function(i,r,e){r.__esModule=!0,r.default={scheme:"harmonic16",author:"jannik siebert (https://github.com/janniks)",base00:"#0b1c2c",base01:"#223b54",base02:"#405c79",base03:"#627e99",base04:"#aabcce",base05:"#cbd6e2",base06:"#e5ebf1",base07:"#f7f9fb",base08:"#bf8b56",base09:"#bfbf56",base0A:"#8bbf56",base0B:"#56bf8b",base0C:"#568bbf",base0D:"#8b56bf",base0E:"#bf568b",base0F:"#bf5656"},i.exports=r.default},function(i,r,e){r.__esModule=!0,r.default={scheme:"hopscotch",author:"jan t. sott",base00:"#322931",base01:"#433b42",base02:"#5c545b",base03:"#797379",base04:"#989498",base05:"#b9b5b8",base06:"#d5d3d5",base07:"#ffffff",base08:"#dd464c",base09:"#fd8b19",base0A:"#fdcc59",base0B:"#8fc13e",base0C:"#149b93",base0D:"#1290bf",base0E:"#c85e7c",base0F:"#b33508"},i.exports=r.default},function(i,r,e){r.__esModule=!0,r.default={scheme:"isotope",author:"jan t. sott",base00:"#000000",base01:"#404040",base02:"#606060",base03:"#808080",base04:"#c0c0c0",base05:"#d0d0d0",base06:"#e0e0e0",base07:"#ffffff",base08:"#ff0000",base09:"#ff9900",base0A:"#ff0099",base0B:"#33ff00",base0C:"#00ffff",base0D:"#0066ff",base0E:"#cc00ff",base0F:"#3300ff"},i.exports=r.default},function(i,r,e){r.__esModule=!0,r.default={scheme:"marrakesh",author:"alexandre gavioli (http://github.com/alexx2/)",base00:"#201602",base01:"#302e00",base02:"#5f5b17",base03:"#6c6823",base04:"#86813b",base05:"#948e48",base06:"#ccc37a",base07:"#faf0a5",base08:"#c35359",base09:"#b36144",base0A:"#a88339",base0B:"#18974e",base0C:"#75a738",base0D:"#477ca1",base0E:"#8868b3",base0F:"#b3588e"},i.exports=r.default},function(i,r,e){r.__esModule=!0,r.default={scheme:"mocha",author:"chris kempson (http://chriskempson.com)",base00:"#3B3228",base01:"#534636",base02:"#645240",base03:"#7e705a",base04:"#b8afad",base05:"#d0c8c6",base06:"#e9e1dd",base07:"#f5eeeb",base08:"#cb6077",base09:"#d28b71",base0A:"#f4bc87",base0B:"#beb55b",base0C:"#7bbda4",base0D:"#8ab3b5",base0E:"#a89bb9",base0F:"#bb9584"},i.exports=r.default},function(i,r,e){r.__esModule=!0,r.default={scheme:"monokai",author:"wimer hazenberg (http://www.monokai.nl)",base00:"#272822",base01:"#383830",base02:"#49483e",base03:"#75715e",base04:"#a59f85",base05:"#f8f8f2",base06:"#f5f4f1",base07:"#f9f8f5",base08:"#f92672",base09:"#fd971f",base0A:"#f4bf75",base0B:"#a6e22e",base0C:"#a1efe4",base0D:"#66d9ef",base0E:"#ae81ff",base0F:"#cc6633"},i.exports=r.default},function(i,r,e){r.__esModule=!0,r.default={scheme:"ocean",author:"chris kempson (http://chriskempson.com)",base00:"#2b303b",base01:"#343d46",base02:"#4f5b66",base03:"#65737e",base04:"#a7adba",base05:"#c0c5ce",base06:"#dfe1e8",base07:"#eff1f5",base08:"#bf616a",base09:"#d08770",base0A:"#ebcb8b",base0B:"#a3be8c",base0C:"#96b5b4",base0D:"#8fa1b3",base0E:"#b48ead",base0F:"#ab7967"},i.exports=r.default},function(i,r,e){r.__esModule=!0,r.default={scheme:"paraiso",author:"jan t. sott",base00:"#2f1e2e",base01:"#41323f",base02:"#4f424c",base03:"#776e71",base04:"#8d8687",base05:"#a39e9b",base06:"#b9b6b0",base07:"#e7e9db",base08:"#ef6155",base09:"#f99b15",base0A:"#fec418",base0B:"#48b685",base0C:"#5bc4bf",base0D:"#06b6ef",base0E:"#815ba4",base0F:"#e96ba8"},i.exports=r.default},function(i,r,e){r.__esModule=!0,r.default={scheme:"pop",author:"chris kempson (http://chriskempson.com)",base00:"#000000",base01:"#202020",base02:"#303030",base03:"#505050",base04:"#b0b0b0",base05:"#d0d0d0",base06:"#e0e0e0",base07:"#ffffff",base08:"#eb008a",base09:"#f29333",base0A:"#f8ca12",base0B:"#37b349",base0C:"#00aabb",base0D:"#0e5a94",base0E:"#b31e8d",base0F:"#7a2d00"},i.exports=r.default},function(i,r,e){r.__esModule=!0,r.default={scheme:"railscasts",author:"ryan bates (http://railscasts.com)",base00:"#2b2b2b",base01:"#272935",base02:"#3a4055",base03:"#5a647e",base04:"#d4cfc9",base05:"#e6e1dc",base06:"#f4f1ed",base07:"#f9f7f3",base08:"#da4939",base09:"#cc7833",base0A:"#ffc66d",base0B:"#a5c261",base0C:"#519f50",base0D:"#6d9cbe",base0E:"#b6b3eb",base0F:"#bc9458"},i.exports=r.default},function(i,r,e){r.__esModule=!0,r.default={scheme:"shapeshifter",author:"tyler benziger (http://tybenz.com)",base00:"#000000",base01:"#040404",base02:"#102015",base03:"#343434",base04:"#555555",base05:"#ababab",base06:"#e0e0e0",base07:"#f9f9f9",base08:"#e92f2f",base09:"#e09448",base0A:"#dddd13",base0B:"#0ed839",base0C:"#23edda",base0D:"#3b48e3",base0E:"#f996e2",base0F:"#69542d"},i.exports=r.default},function(i,r,e){r.__esModule=!0,r.default={scheme:"solarized",author:"ethan schoonover (http://ethanschoonover.com/solarized)",base00:"#002b36",base01:"#073642",base02:"#586e75",base03:"#657b83",base04:"#839496",base05:"#93a1a1",base06:"#eee8d5",base07:"#fdf6e3",base08:"#dc322f",base09:"#cb4b16",base0A:"#b58900",base0B:"#859900",base0C:"#2aa198",base0D:"#268bd2",base0E:"#6c71c4",base0F:"#d33682"},i.exports=r.default},function(i,r,e){r.__esModule=!0,r.default={scheme:"summerfruit",author:"christopher corley (http://cscorley.github.io/)",base00:"#151515",base01:"#202020",base02:"#303030",base03:"#505050",base04:"#B0B0B0",base05:"#D0D0D0",base06:"#E0E0E0",base07:"#FFFFFF",base08:"#FF0086",base09:"#FD8900",base0A:"#ABA800",base0B:"#00C918",base0C:"#1faaaa",base0D:"#3777E6",base0E:"#AD00A1",base0F:"#cc6633"},i.exports=r.default},function(i,r,e){r.__esModule=!0,r.default={scheme:"tomorrow",author:"chris kempson (http://chriskempson.com)",base00:"#1d1f21",base01:"#282a2e",base02:"#373b41",base03:"#969896",base04:"#b4b7b4",base05:"#c5c8c6",base06:"#e0e0e0",base07:"#ffffff",base08:"#cc6666",base09:"#de935f",base0A:"#f0c674",base0B:"#b5bd68",base0C:"#8abeb7",base0D:"#81a2be",base0E:"#b294bb",base0F:"#a3685a"},i.exports=r.default},function(i,r,e){r.__esModule=!0,r.default={scheme:"london tube",author:"jan t. sott",base00:"#231f20",base01:"#1c3f95",base02:"#5a5758",base03:"#737171",base04:"#959ca1",base05:"#d9d8d8",base06:"#e7e7e8",base07:"#ffffff",base08:"#ee2e24",base09:"#f386a1",base0A:"#ffd204",base0B:"#00853e",base0C:"#85cebc",base0D:"#009ddc",base0E:"#98005d",base0F:"#b06110"},i.exports=r.default},function(i,r,e){r.__esModule=!0,r.default={scheme:"twilight",author:"david hart (http://hart-dev.com)",base00:"#1e1e1e",base01:"#323537",base02:"#464b50",base03:"#5f5a60",base04:"#838184",base05:"#a7a7a7",base06:"#c3c3c3",base07:"#ffffff",base08:"#cf6a4c",base09:"#cda869",base0A:"#f9ee98",base0B:"#8f9d6a",base0C:"#afc4db",base0D:"#7587a6",base0E:"#9b859d",base0F:"#9b703f"},i.exports=r.default},function(i,r,e){var s=e(33);function u(p){var f=Math.round(s(p,0,255)).toString(16);return f.length==1?"0"+f:f}i.exports=function(p){var f=p.length===4?u(255*p[3]):"";return"#"+u(p[0])+u(p[1])+u(p[2])+f}},function(i,r,e){var s=e(134),u=e(135),p=e(136),f=e(137),d={"#":u,hsl:function(E){var _=s(E),P=f(_);return _.length===4&&P.push(_[3]),P},rgb:p};function b(E){for(var _ in d)if(E.indexOf(_)===0)return d[_](E)}b.rgb=p,b.hsl=s,b.hex=u,i.exports=b},function(i,r,e){var s=e(44),u=e(33);function p(f,d){switch(f=parseFloat(f),d){case 0:return u(f,0,360);case 1:case 2:return u(f,0,100);case 3:return u(f,0,1)}}i.exports=function(f){return s(f).map(p)}},function(i,r){i.exports=function(e){e.length!==4&&e.length!==5||(e=(function(p){for(var f="#",d=1;d<p.length;d++){var b=p.charAt(d);f+=b+b}return f})(e));var s=[parseInt(e.substring(1,3),16),parseInt(e.substring(3,5),16),parseInt(e.substring(5,7),16)];if(e.length===9){var u=parseFloat((parseInt(e.substring(7,9),16)/255).toFixed(2));s.push(u)}return s}},function(i,r,e){var s=e(44),u=e(33);function p(f,d){return d<3?f.indexOf("%")!=-1?Math.round(255*u(parseInt(f,10),0,100)/100):u(parseInt(f,10),0,255):u(parseFloat(f),0,1)}i.exports=function(f){return s(f).map(p)}},function(i,r){i.exports=function(e){var s,u,p,f,d,b=e[0]/360,E=e[1]/100,_=e[2]/100;if(E==0)return[d=255*_,d,d];s=2*_-(u=_<.5?_*(1+E):_+E-_*E),f=[0,0,0];for(var P=0;P<3;P++)(p=b+1/3*-(P-1))<0&&p++,p>1&&p--,d=6*p<1?s+6*(u-s)*p:2*p<1?u:3*p<2?s+(u-s)*(2/3-p)*6:s,f[P]=255*d;return f}},function(i,r,e){(function(s){var u=typeof s=="object"&&s&&s.Object===Object&&s,p=typeof self=="object"&&self&&self.Object===Object&&self,f=u||p||Function("return this")();function d(j,C,M){switch(M.length){case 0:return j.call(C);case 1:return j.call(C,M[0]);case 2:return j.call(C,M[0],M[1]);case 3:return j.call(C,M[0],M[1],M[2])}return j.apply(C,M)}function b(j,C){for(var M=-1,z=C.length,g=j.length;++M<z;)j[g+M]=C[M];return j}var E=Object.prototype,_=E.hasOwnProperty,P=E.toString,D=f.Symbol,V=E.propertyIsEnumerable,Q=D?D.isConcatSpreadable:void 0,L=Math.max;function Z(j){return t(j)||(function(C){return(function(M){return(function(z){return!!z&&typeof z=="object"})(M)&&(function(z){return z!=null&&(function(g){return typeof g=="number"&&g>-1&&g%1==0&&g<=9007199254740991})(z.length)&&!(function(g){var $=(function(K){var O=typeof K;return!!K&&(O=="object"||O=="function")})(g)?P.call(g):"";return $=="[object Function]"||$=="[object GeneratorFunction]"})(z)})(M)})(C)&&_.call(C,"callee")&&(!V.call(C,"callee")||P.call(C)=="[object Arguments]")})(j)||!!(Q&&j&&j[Q])}var t=Array.isArray,F,R,B,N=(R=function(j){var C=(j=(function(g,$,K,O,U){var le=-1,ne=g.length;for(K||(K=Z),U||(U=[]);++le<ne;){var W=g[le];K(W)?b(U,W):U[U.length]=W}return U})(j)).length,M=C;for(F;M--;)if(typeof j[M]!="function")throw new TypeError("Expected a function");return function(){for(var z=0,g=C?j[z].apply(this,arguments):arguments[0];++z<C;)g=j[z].call(this,g);return g}},B=L(B===void 0?R.length-1:B,0),function(){for(var j=arguments,C=-1,M=L(j.length-B,0),z=Array(M);++C<M;)z[C]=j[B+C];C=-1;for(var g=Array(B+1);++C<B;)g[C]=j[C];return g[B]=z,d(R,this,g)});i.exports=N}).call(this,e(43))},function(i,r,e){Object.defineProperty(r,"__esModule",{value:!0}),r.yuv2rgb=function(s){var u,p,f,d=s[0],b=s[1],E=s[2];return u=1*d+0*b+1.13983*E,p=1*d+-.39465*b+-.5806*E,f=1*d+2.02311*b+0*E,u=Math.min(Math.max(0,u),1),p=Math.min(Math.max(0,p),1),f=Math.min(Math.max(0,f),1),[255*u,255*p,255*f]},r.rgb2yuv=function(s){var u=s[0]/255,p=s[1]/255,f=s[2]/255;return[.299*u+.587*p+.114*f,-.14713*u+-.28886*p+.436*f,.615*u+-.51499*p+-.10001*f]}},function(i,r,e){function s(f,d,b){return d in f?Object.defineProperty(f,d,{value:b,enumerable:!0,configurable:!0,writable:!0}):f[d]=b,f}var u=e(141),p=(function(){function f(){s(this,"_callbacks",void 0),s(this,"_isDispatching",void 0),s(this,"_isHandled",void 0),s(this,"_isPending",void 0),s(this,"_lastID",void 0),s(this,"_pendingPayload",void 0),this._callbacks={},this._isDispatching=!1,this._isHandled={},this._isPending={},this._lastID=1}var d=f.prototype;return d.register=function(b){var E="ID_"+this._lastID++;return this._callbacks[E]=b,E},d.unregister=function(b){this._callbacks[b]||u(!1),delete this._callbacks[b]},d.waitFor=function(b){this._isDispatching||u(!1);for(var E=0;E<b.length;E++){var _=b[E];this._isPending[_]?this._isHandled[_]||u(!1):(this._callbacks[_]||u(!1),this._invokeCallback(_))}},d.dispatch=function(b){this._isDispatching&&u(!1),this._startDispatching(b);try{for(var E in this._callbacks)this._isPending[E]||this._invokeCallback(E)}finally{this._stopDispatching()}},d.isDispatching=function(){return this._isDispatching},d._invokeCallback=function(b){this._isPending[b]=!0,this._callbacks[b](this._pendingPayload),this._isHandled[b]=!0},d._startDispatching=function(b){for(var E in this._callbacks)this._isPending[E]=!1,this._isHandled[E]=!1;this._pendingPayload=b,this._isDispatching=!0},d._stopDispatching=function(){delete this._pendingPayload,this._isDispatching=!1},f})();i.exports=p},function(i,r,e){i.exports=function(s,u){for(var p=arguments.length,f=new Array(p>2?p-2:0),d=2;d<p;d++)f[d-2]=arguments[d];if(!s){var b;if(u===void 0)b=new Error("Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.");else{var E=0;(b=new Error(u.replace(/%s/g,(function(){return String(f[E++])})))).name="Invariant Violation"}throw b.framesToPop=1,b}}},function(i,r,e){function s(c,l,a){return l in c?Object.defineProperty(c,l,{value:a,enumerable:!0,configurable:!0,writable:!0}):c[l]=a,c}function u(c,l){var a=Object.keys(c);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(c);l&&(n=n.filter((function(o){return Object.getOwnPropertyDescriptor(c,o).enumerable}))),a.push.apply(a,n)}return a}function p(c){for(var l=1;l<arguments.length;l++){var a=arguments[l]!=null?arguments[l]:{};l%2?u(Object(a),!0).forEach((function(n){s(c,n,a[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(c,Object.getOwnPropertyDescriptors(a)):u(Object(a)).forEach((function(n){Object.defineProperty(c,n,Object.getOwnPropertyDescriptor(a,n))}))}return c}function f(c,l){if(!(c instanceof l))throw new TypeError("Cannot call a class as a function")}function d(c,l){for(var a=0;a<l.length;a++){var n=l[a];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(c,n.key,n)}}function b(c,l,a){return l&&d(c.prototype,l),a&&d(c,a),c}function E(c,l){return(E=Object.setPrototypeOf||function(a,n){return a.__proto__=n,a})(c,l)}function _(c,l){if(typeof l!="function"&&l!==null)throw new TypeError("Super expression must either be null or a function");c.prototype=Object.create(l&&l.prototype,{constructor:{value:c,writable:!0,configurable:!0}}),l&&E(c,l)}function P(c){return(P=Object.setPrototypeOf?Object.getPrototypeOf:function(l){return l.__proto__||Object.getPrototypeOf(l)})(c)}function D(c){return(D=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})(c)}function V(c){if(c===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return c}function Q(c,l){return!l||D(l)!=="object"&&typeof l!="function"?V(c):l}function L(c){var l=(function(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch{return!1}})();return function(){var a,n=P(c);if(l){var o=P(this).constructor;a=Reflect.construct(n,arguments,o)}else a=n.apply(this,arguments);return Q(this,a)}}e.r(r);var Z=e(0),t=e.n(Z);function F(){var c=this.constructor.getDerivedStateFromProps(this.props,this.state);c!=null&&this.setState(c)}function R(c){this.setState((function(l){var a=this.constructor.getDerivedStateFromProps(c,l);return a??null}).bind(this))}function B(c,l){try{var a=this.props,n=this.state;this.props=c,this.state=l,this.__reactInternalSnapshotFlag=!0,this.__reactInternalSnapshot=this.getSnapshotBeforeUpdate(a,n)}finally{this.props=a,this.state=n}}function N(c){var l=c.prototype;if(!l||!l.isReactComponent)throw new Error("Can only polyfill class components");if(typeof c.getDerivedStateFromProps!="function"&&typeof l.getSnapshotBeforeUpdate!="function")return c;var a=null,n=null,o=null;if(typeof l.componentWillMount=="function"?a="componentWillMount":typeof l.UNSAFE_componentWillMount=="function"&&(a="UNSAFE_componentWillMount"),typeof l.componentWillReceiveProps=="function"?n="componentWillReceiveProps":typeof l.UNSAFE_componentWillReceiveProps=="function"&&(n="UNSAFE_componentWillReceiveProps"),typeof l.componentWillUpdate=="function"?o="componentWillUpdate":typeof l.UNSAFE_componentWillUpdate=="function"&&(o="UNSAFE_componentWillUpdate"),a!==null||n!==null||o!==null){var v=c.displayName||c.name,k=typeof c.getDerivedStateFromProps=="function"?"getDerivedStateFromProps()":"getSnapshotBeforeUpdate()";throw Error(`Unsafe legacy lifecycles will not be called for components using new component APIs.
4
4
 
@@ -1 +1 @@
1
- import{c as p,e as c}from"./es6.BpAqZaR_.js";import"./index.BB_iwaVr.js";const{File:n,Blob:_,DOMException:s}=p,{INVALID:z,GONE:r,MISMATCH:w,MOD_ERR:b,SYNTAX:a,SECURITY:I,DISALLOWED:m}=c;class g{constructor(e,i){this.fileHandle=e,this.file=i,this.size=i.size,this.position=0}write(e){let i=this.file;if(typeof e=="object"){if(e.type==="write"){if(Number.isInteger(e.position)&&e.position>=0&&(this.position=e.position,this.size<e.position&&(this.file=new n([this.file,new ArrayBuffer(e.position-this.size)],this.file.name,this.file))),!("data"in e))throw new s(...a("write requires a data argument"));e=e.data}else if(e.type==="seek")if(Number.isInteger(e.position)&&e.position>=0){if(this.size<e.position)throw new s(...z);this.position=e.position;return}else throw new s(...a("seek requires a position argument"));else if(e.type==="truncate")if(Number.isInteger(e.size)&&e.size>=0){i=e.size<this.size?new n([i.slice(0,e.size)],i.name,i):new n([i,new Uint8Array(e.size-this.size)],i.name),this.size=i.size,this.position>i.size&&(this.position=i.size),this.file=i;return}else throw new s(...a("truncate requires a size argument"))}e=new _([e]);let t=this.file;const o=t.slice(0,this.position),y=t.slice(this.position+e.size);let l=this.position-o.size;l<0&&(l=0),t=new n([o,new Uint8Array(l),e,y],t.name),this.size=t.size,this.position+=e.size,this.file=t}close(){if(this.fileHandle._deleted)throw new s(...r);this.fileHandle._file=this.file,this.file=this.position=this.size=null,this.fileHandle.onclose&&this.fileHandle.onclose(this.fileHandle)}}class f{constructor(e="",i=new n([],e),t=!0){this._file=i,this.name=e,this.kind="file",this._deleted=!1,this.writable=t,this.readable=!0}async getFile(){if(this._deleted)throw new s(...r);return this._file}async createWritable(e){if(!this.writable)throw new s(...m);if(this._deleted)throw new s(...r);const i=e.keepExistingData?await this.getFile():new n([],this.name);return new g(this,i)}async isSameEntry(e){return this===e}async _destroy(){this._deleted=!0,this._file=null}}class h{constructor(e,i=!0){this.name=e,this.kind="directory",this._deleted=!1,this._entries={},this.writable=i,this.readable=!0}async*entries(){if(this._deleted)throw new s(...r);yield*Object.entries(this._entries)}async isSameEntry(e){return this===e}async getDirectoryHandle(e,i){if(this._deleted)throw new s(...r);const t=this._entries[e];if(t){if(t instanceof f)throw new s(...w);return t}else{if(i.create)return this._entries[e]=new h(e);throw new s(...r)}}async getFileHandle(e,i){const t=this._entries[e],o=t instanceof f;if(t&&o)return t;if(t&&!o)throw new s(...w);if(!t&&!i.create)throw new s(...r);if(!t&&i.create)return this._entries[e]=new f(e)}async removeEntry(e,i){const t=this._entries[e];if(!t)throw new s(...r);await t._destroy(i.recursive),delete this._entries[e]}async _destroy(e){for(let i of Object.values(this._entries)){if(!e)throw new s(...b);await i._destroy(e)}this._entries={},this._deleted=!0}}const u=new h(""),A=()=>u;export{f as FileHandle,h as FolderHandle,g as Sink,A as default};
1
+ import{c as p,e as c}from"./es6.BHy5pqTP.js";import"./index.aCorc3Yt.js";const{File:n,Blob:_,DOMException:s}=p,{INVALID:z,GONE:r,MISMATCH:w,MOD_ERR:b,SYNTAX:a,SECURITY:I,DISALLOWED:m}=c;class g{constructor(e,i){this.fileHandle=e,this.file=i,this.size=i.size,this.position=0}write(e){let i=this.file;if(typeof e=="object"){if(e.type==="write"){if(Number.isInteger(e.position)&&e.position>=0&&(this.position=e.position,this.size<e.position&&(this.file=new n([this.file,new ArrayBuffer(e.position-this.size)],this.file.name,this.file))),!("data"in e))throw new s(...a("write requires a data argument"));e=e.data}else if(e.type==="seek")if(Number.isInteger(e.position)&&e.position>=0){if(this.size<e.position)throw new s(...z);this.position=e.position;return}else throw new s(...a("seek requires a position argument"));else if(e.type==="truncate")if(Number.isInteger(e.size)&&e.size>=0){i=e.size<this.size?new n([i.slice(0,e.size)],i.name,i):new n([i,new Uint8Array(e.size-this.size)],i.name),this.size=i.size,this.position>i.size&&(this.position=i.size),this.file=i;return}else throw new s(...a("truncate requires a size argument"))}e=new _([e]);let t=this.file;const o=t.slice(0,this.position),y=t.slice(this.position+e.size);let l=this.position-o.size;l<0&&(l=0),t=new n([o,new Uint8Array(l),e,y],t.name),this.size=t.size,this.position+=e.size,this.file=t}close(){if(this.fileHandle._deleted)throw new s(...r);this.fileHandle._file=this.file,this.file=this.position=this.size=null,this.fileHandle.onclose&&this.fileHandle.onclose(this.fileHandle)}}class f{constructor(e="",i=new n([],e),t=!0){this._file=i,this.name=e,this.kind="file",this._deleted=!1,this.writable=t,this.readable=!0}async getFile(){if(this._deleted)throw new s(...r);return this._file}async createWritable(e){if(!this.writable)throw new s(...m);if(this._deleted)throw new s(...r);const i=e.keepExistingData?await this.getFile():new n([],this.name);return new g(this,i)}async isSameEntry(e){return this===e}async _destroy(){this._deleted=!0,this._file=null}}class h{constructor(e,i=!0){this.name=e,this.kind="directory",this._deleted=!1,this._entries={},this.writable=i,this.readable=!0}async*entries(){if(this._deleted)throw new s(...r);yield*Object.entries(this._entries)}async isSameEntry(e){return this===e}async getDirectoryHandle(e,i){if(this._deleted)throw new s(...r);const t=this._entries[e];if(t){if(t instanceof f)throw new s(...w);return t}else{if(i.create)return this._entries[e]=new h(e);throw new s(...r)}}async getFileHandle(e,i){const t=this._entries[e],o=t instanceof f;if(t&&o)return t;if(t&&!o)throw new s(...w);if(!t&&!i.create)throw new s(...r);if(!t&&i.create)return this._entries[e]=new f(e)}async removeEntry(e,i){const t=this._entries[e];if(!t)throw new s(...r);await t._destroy(i.recursive),delete this._entries[e]}async _destroy(e){for(let i of Object.values(this._entries)){if(!e)throw new s(...b);await i._destroy(e)}this._entries={},this._deleted=!0}}const u=new h(""),A=()=>u;export{f as FileHandle,h as FolderHandle,g as Sink,A as default};