@stlite/desktop 0.78.1 → 0.79.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (69) hide show
  1. package/bin/dump_artifacts.js +17 -17
  2. package/build/assets/{FileDownload.esm-D2QqHv2c.js → FileDownload.esm-CUqgQU-j.js} +1 -1
  3. package/build/assets/{FormClearHelper-DliGOSkq.js → FormClearHelper-DmeZ2QuQ.js} +1 -1
  4. package/build/assets/{Hooks-Daeq69Zu.js → Hooks-CBIuRW4z.js} +1 -1
  5. package/build/assets/{InputInstructions-BQD8A2_u.js → InputInstructions-iKTPb-Lc.js} +1 -1
  6. package/build/assets/{ProgressBar-DuGylkeS.js → ProgressBar-Dfr9f8u1.js} +1 -1
  7. package/build/assets/{RenderInPortalIfExists-HKy5CC9C.js → RenderInPortalIfExists-CxeJAxCs.js} +1 -1
  8. package/build/assets/{Toolbar-B9grKd8p.js → Toolbar-CG7W1D-O.js} +1 -1
  9. package/build/assets/{base-input-DJ1o9wy-.js → base-input-DoV-1XUt.js} +1 -1
  10. package/build/assets/{createSuper-BCtrEkDw.js → createSuper-CvaFdVoD.js} +1 -1
  11. package/build/assets/{data-grid-overlay-editor-SiNLnLoA.js → data-grid-overlay-editor-CCUG7ReD.js} +1 -1
  12. package/build/assets/{downloader-y7WtJrbZ.js → downloader-B6rOwzu2.js} +1 -1
  13. package/build/assets/{es6-ChzZtMws.js → es6-CTcMcfqp.js} +2 -2
  14. package/build/assets/{getPrototypeOf-jxUzvEiF.js → getPrototypeOf-CFHg57KG.js} +1 -1
  15. package/build/assets/{iframeResizer.contentWindow-VeTSZzxi.js → iframeResizer.contentWindow-DLNn1A7T.js} +1 -1
  16. package/build/assets/{index-Di0b5deS.js → index-0aipcnh6.js} +1 -1
  17. package/build/assets/{index-NW5mgelH.js → index-6rnmC53g.js} +1 -1
  18. package/build/assets/{index-C-G07XIn.js → index-BHysWwrh.js} +1 -1
  19. package/build/assets/{index-lR3NBV82.js → index-BTHCcLIl.js} +1 -1
  20. package/build/assets/{index-B7GLWddS.js → index-BhkIHxDp.js} +1 -1
  21. package/build/assets/{index-JLaGWCy4.js → index-Bp04iQqW.js} +1 -1
  22. package/build/assets/{index-CSRB3KZi.js → index-BpeIvyJQ.js} +1 -1
  23. package/build/assets/{index-CFVMKjCp.js → index-BrRb8POj.js} +1 -1
  24. package/build/assets/{index-C9Os1Tio.js → index-ByOIN0Gm.js} +1 -1
  25. package/build/assets/{index-z2lXC7XI.js → index-BzTZZCvL.js} +4 -4
  26. package/build/assets/{index-Cxp-1GAt.js → index-C4j64dI5.js} +1 -1
  27. package/build/assets/{index-C5VxAqHf.js → index-CGhw9Sdf.js} +1 -1
  28. package/build/assets/{index-GTNwQsph.js → index-CIL1eIZN.js} +1 -1
  29. package/build/assets/{index-Dh5Ef2Om.js → index-CIs9EQe5.js} +1 -1
  30. package/build/assets/{index-CQ8B9Pyu.js → index-CSyyBx79.js} +1 -1
  31. package/build/assets/{index-DXHAdPWu.js → index-CW4i_Lge.js} +1 -1
  32. package/build/assets/{index-UrV00MOE.js → index-CWiqZgRl.js} +1 -1
  33. package/build/assets/{index-CxF9whAo.js → index-CoKgwXo8.js} +1 -1
  34. package/build/assets/{index-CvKkwQxq.js → index-Cua9_98i.js} +1 -1
  35. package/build/assets/{index-BYdd9282.js → index-D-lzdDJ5.js} +1 -1
  36. package/build/assets/{index-j3NobT-r.js → index-D9QNa8Xs.js} +1 -1
  37. package/build/assets/{index-Bia2Aiul.js → index-DHFNQm8n.js} +1 -1
  38. package/build/assets/{index-CnPYErGb.js → index-DURajqPC.js} +1 -1
  39. package/build/assets/{index-DYrQR0Ux.js → index-Df9nIm6O.js} +1 -1
  40. package/build/assets/{index-Dkd6yjmr.js → index-DjQcVgxO.js} +1 -1
  41. package/build/assets/{index-Bsw1C-zM.js → index-DqxtC9MD.js} +1 -1
  42. package/build/assets/{index-CGRaMNW7.js → index-DtrE1h0V.js} +1 -1
  43. package/build/assets/{index-ByZKQf5p.js → index-Dwt05210.js} +1 -1
  44. package/build/assets/{index-Do74AQgb.js → index-N6IvabtE.js} +1 -1
  45. package/build/assets/{index-BqYxHJ94.js → index-OR2HlVVN.js} +1 -1
  46. package/build/assets/{index-B2k4Ofkz.js → index-P_LN9wWJ.js} +1 -1
  47. package/build/assets/{index-Bh9EjD0o.js → index-RhMZ16-Y.js} +1 -1
  48. package/build/assets/{index-C_q5O89K.js → index-fudEipDa.js} +1 -1
  49. package/build/assets/{index-CS3mWYPw.js → index-hsTwnoRn.js} +1 -1
  50. package/build/assets/{index-BCDKFsnk.js → index-qMuFpOqI.js} +1 -1
  51. package/build/assets/{index-DMBd-bc-.js → index-steA8SlM.js} +5 -5
  52. package/build/assets/{index-CpzAXWaZ.js → index-xGO_nKX1.js} +1 -1
  53. package/build/assets/{input-Dhep7xP0.js → input-BrXgmYe9.js} +1 -1
  54. package/build/assets/{memory-BqTZFgXm.js → memory-Bf74T19z.js} +1 -1
  55. package/build/assets/{number-overlay-editor-BywJqzaW.js → number-overlay-editor-20er5Sp-.js} +1 -1
  56. package/build/assets/{sandbox-DmnKum9A.js → sandbox-CV8SMiuv.js} +1 -1
  57. package/build/assets/{slicedToArray-DkF8JK54.js → slicedToArray-tqzlNjPF.js} +1 -1
  58. package/build/assets/{textarea-CCmBHfjM.js → textarea-DMefjquC.js} +1 -1
  59. package/build/assets/{timepicker-DWOLsPBU.js → timepicker-D5Qmkk9Q.js} +1 -1
  60. package/build/assets/{uniqueId-C3qA3EXY.js → uniqueId-IQr2jcrE.js} +1 -1
  61. package/build/assets/{useBasicWidgetState-CDQNZkN8.js → useBasicWidgetState-Cqy4gnzY.js} +1 -1
  62. package/build/assets/{useOnInputChange-FEZNS9DP.js → useOnInputChange-BD_aeagL.js} +1 -1
  63. package/build/assets/{withFullScreenWrapper-dTVQmtO5.js → withFullScreenWrapper-DIS3bwns.js} +1 -1
  64. package/build/assets/worker-B1MO5Shr.js +216 -0
  65. package/build/electron/worker.js +109 -10
  66. package/build/index.html +1 -1
  67. package/package.json +4 -4
  68. package/wheels/streamlit-1.41.0-cp312-none-any.whl +0 -0
  69. package/build/assets/worker-CLbVOjel.js +0 -117
@@ -1 +1 @@
1
- import{r,E as P,_ as $,c as R,ak as se,bZ as ne,F as K,c7 as y,B as m,j as l,a_ as de,a$ as ue,bc as ce,b0 as pe,aK as me,aY as G}from"./index-z2lXC7XI.js";import{s as be}from"./sprintf-C-r3gIuM.js";import{u as ge}from"./uniqueId-C3qA3EXY.js";import{u as fe}from"./FormClearHelper-DliGOSkq.js";import{I as he}from"./InputInstructions-BQD8A2_u.js";import{I as ye}from"./input-Dhep7xP0.js";import"./base-input-DJ1o9wy-.js";var X=r.forwardRef(function(e,t){var a={fill:"currentColor",xmlns:"http://www.w3.org/2000/svg"};return r.createElement(P,$({iconAttrs:a,iconVerticalAlign:"middle",iconViewBox:"0 0 8 8"},e,{ref:t}),r.createElement("path",{d:"M0 3v2h8V3H0z"}))});X.displayName="Minus";var Y=r.forwardRef(function(e,t){var a={fill:"currentColor",xmlns:"http://www.w3.org/2000/svg"};return r.createElement(P,$({iconAttrs:a,iconVerticalAlign:"middle",iconViewBox:"0 0 8 8"},e,{ref:t}),r.createElement("path",{d:"M3 0v3H0v2h3v3h2V5h3V3H5V0H3z"}))});Y.displayName="Plus";const we=R("div",{target:"e116k4er3"})(({theme:e})=>({display:"flex",flexDirection:"row",flexWrap:"nowrap",alignItems:"center",height:e.sizes.minElementHeight,borderWidth:e.sizes.borderWidth,borderStyle:"solid",borderColor:e.colors.widgetBorderColor||e.colors.widgetBackgroundColor||e.colors.bgColor,transitionDuration:"200ms",transitionProperty:"border",transitionTimingFunction:"cubic-bezier(0.2, 0.8, 0.4, 1)",borderRadius:e.radii.default,overflow:"hidden","&.focused":{borderColor:e.colors.primary},input:{MozAppearance:"textfield","&::-webkit-inner-spin-button, &::-webkit-outer-spin-button":{WebkitAppearance:"none",margin:e.spacing.none}}}),""),ve=R("div",{target:"e116k4er2"})({name:"76z9jo",styles:"display:flex;flex-direction:row;align-self:stretch"}),Z=R("button",{target:"e116k4er1"})(({theme:e})=>({margin:e.spacing.none,border:"none",height:e.sizes.full,display:"flex",alignItems:"center",width:e.sizes.numberInputControlsWidth,justifyContent:"center",color:e.colors.bodyText,transition:"color 300ms, backgroundColor 300ms",backgroundColor:e.colors.widgetBackgroundColor||e.colors.secondaryBg,"&:hover:enabled, &:focus:enabled":{color:e.colors.white,backgroundColor:e.colors.primary,transition:"none",outline:"none"},"&:active":{outline:"none",border:"none"},"&:last-of-type":{borderTopRightRadius:e.radii.default,borderBottomRightRadius:e.radii.default},"&:disabled":{cursor:"not-allowed",color:e.colors.fadedText40}}),""),xe=R("div",{target:"e116k4er0"})(({theme:e,clearable:t})=>({position:"absolute",marginRight:e.spacing.twoXS,left:0,right:`calc(${e.sizes.numberInputControlsWidth} * 2 + ${t?"1em":"0em"})`}),"");function Ie(e){return m(e)||e===""?void 0:e}const Te=e=>(e.element.dataType===y.DataType.INT?e.widgetMgr.getIntValue(e.element):e.widgetMgr.getDoubleValue(e.element))??e.element.default??null,q=({step:e,dataType:t})=>e||(t===y.DataType.INT?1:.01),N=({value:e,format:t,step:a,dataType:w})=>{if(m(e))return null;let i=Ie(t);if(m(i)&&K(a)){const c=a.toString();w===y.DataType.FLOAT&&a!==0&&c.includes(".")&&(i=`%0.${c.split(".")[1].length}f`)}if(m(i))return e.toString();try{return be.sprintf(i,e)}catch{return String(e)}},ke=(e,t,a)=>m(e)?!1:e-t>=a,Ce=(e,t,a)=>m(e)?!1:e+t<=a,Re=({disabled:e,element:t,widgetMgr:a,width:w,theme:i,fragmentId:c})=>{var O;const{dataType:S,id:V,formId:p,default:B,format:F}=t,b=t.hasMin?t.min:-1/0,g=t.hasMax?t.max:1/0,[s,J]=r.useState(q(t)),M=Te({element:t,widgetMgr:a}),[f,v]=r.useState(!1),[n,x]=r.useState(M),[W,I]=r.useState(N({value:M,...t,step:s})),[A,U]=r.useState(!1),j=r.useRef(null),H=r.useRef(ge("number_input_")),T=ke(n,s,b),k=Ce(n,s,g),_=ne({formId:p}),Q=_?a.allowFormEnterToSubmit(p):f,ee=A&&w>i.breakpoints.hideWidgetDetails;r.useEffect(()=>{J(q({step:t.step,dataType:t.dataType}))},[t.dataType,t.step]);const d=r.useCallback(({value:o,source:u})=>{var h;if(K(o)&&(b>o||o>g))(h=j.current)==null||h.reportValidity();else{const C=o??B??null;switch(S){case y.DataType.INT:a.setIntValue({id:V,formId:p},C,u,c);break;case y.DataType.FLOAT:a.setDoubleValue({id:V,formId:p},C,u,c);break;default:throw new Error("Invalid data type")}v(!1),x(C),I(N({value:C,dataType:S,format:F,step:s}))}},[b,g,j,a,c,s,S,V,p,B,F]),te=r.useCallback(()=>{f&&d({value:n,source:{fromUi:!0}}),U(!1)},[f,n,d]),re=r.useCallback(()=>{U(!0)},[]),L=r.useCallback(()=>{const{value:o}=t;t.setValue=!1,x(o??null),I(N({value:o??null,...t,step:s})),d({value:o??null,source:{fromUi:!1}})},[t,s,d]);r.useEffect(()=>{t.setValue?L():d({value:n,source:{fromUi:!1}})},[]),t.setValue&&L();const z=m(t.default)&&!e,ae=r.useCallback(()=>{const o=t.default??null;x(o),d({value:o,source:{fromUi:!0}})},[t]);fe({element:t,widgetMgr:a,onFormCleared:ae});const oe=o=>{const{value:u}=o.target;if(u==="")v(!0),x(null),I(null);else{let h;t.dataType===y.DataType.INT?h=parseInt(u,10):h=parseFloat(u),v(!0),x(h),I(u)}},D=r.useCallback(()=>{k&&(v(!0),d({value:(n??b)+s,source:{fromUi:!0}}))},[n,b,s,k]),E=r.useCallback(()=>{T&&(v(!0),d({value:(n??g)-s,source:{fromUi:!0}}))},[n,g,s,T]),ie=r.useCallback(o=>{const{key:u}=o;switch(u){case"ArrowUp":o.preventDefault(),D();break;case"ArrowDown":o.preventDefault(),E();break}},[D,E]),le=r.useCallback(o=>{o.key==="Enter"&&(f&&d({value:n,source:{fromUi:!0}}),a.allowFormEnterToSubmit(p)&&a.submitForm(p,c))},[f,n,d,a,p,c]);return l.jsxs("div",{className:"stNumberInput","data-testid":"stNumberInput",style:{width:w},children:[l.jsx(de,{label:t.label,disabled:e,labelVisibility:ue((O=t.labelVisibility)==null?void 0:O.value),htmlFor:H.current,children:t.help&&l.jsx(ce,{children:l.jsx(pe,{content:t.help,placement:me.TOP_RIGHT})})}),l.jsxs(we,{className:A?"focused":"","data-testid":"stNumberInputContainer",children:[l.jsx(ye,{type:"number",inputRef:j,value:W??"",placeholder:t.placeholder,onBlur:te,onFocus:re,onChange:oe,onKeyPress:le,onKeyDown:ie,clearable:z,clearOnEscape:z,disabled:e,"aria-label":t.label,id:H.current,overrides:{ClearIconContainer:{style:{padding:0}},ClearIcon:{props:{overrides:{Svg:{style:{color:i.colors.darkGray,padding:i.spacing.threeXS,height:i.sizes.clearIconSize,width:i.sizes.clearIconSize,":hover":{fill:i.colors.bodyText}}}}}},Input:{props:{"data-testid":"stNumberInputField",step:s,min:b,max:g,type:"number",inputMode:""},style:{lineHeight:i.lineHeights.inputWidget,paddingRight:i.spacing.sm,paddingLeft:i.spacing.sm,paddingBottom:i.spacing.sm,paddingTop:i.spacing.sm}},InputContainer:{style:()=>({borderTopRightRadius:0,borderBottomRightRadius:0})},Root:{style:{borderTopRightRadius:0,borderBottomRightRadius:0,borderLeftWidth:0,borderRightWidth:0,borderTopWidth:0,borderBottomWidth:0,paddingRight:0}}}}),w>i.breakpoints.hideNumberInputControls&&l.jsxs(ve,{children:[l.jsx(Z,{"data-testid":"stNumberInputStepDown",onClick:E,disabled:!T||e,tabIndex:-1,children:l.jsx(G,{content:X,size:"xs",color:T?"inherit":"disabled"})}),l.jsx(Z,{"data-testid":"stNumberInputStepUp",onClick:D,disabled:!k||e,tabIndex:-1,children:l.jsx(G,{content:Y,size:"xs",color:k?"inherit":"disabled"})})]})]}),ee&&l.jsx(xe,{clearable:z,children:l.jsx(he,{dirty:f,value:W??"",inForm:_,allowEnterToSubmit:Q})})]})},Se=se(Re);export{Se as default};
1
+ import{r,E as P,_ as $,c as R,ak as se,bZ as ne,F as K,c7 as y,B as m,j as l,a_ as de,a$ as ue,bc as ce,b0 as pe,aK as me,aY as G}from"./index-BzTZZCvL.js";import{s as be}from"./sprintf-C-r3gIuM.js";import{u as ge}from"./uniqueId-IQr2jcrE.js";import{u as fe}from"./FormClearHelper-DmeZ2QuQ.js";import{I as he}from"./InputInstructions-iKTPb-Lc.js";import{I as ye}from"./input-BrXgmYe9.js";import"./base-input-DoV-1XUt.js";var X=r.forwardRef(function(e,t){var a={fill:"currentColor",xmlns:"http://www.w3.org/2000/svg"};return r.createElement(P,$({iconAttrs:a,iconVerticalAlign:"middle",iconViewBox:"0 0 8 8"},e,{ref:t}),r.createElement("path",{d:"M0 3v2h8V3H0z"}))});X.displayName="Minus";var Y=r.forwardRef(function(e,t){var a={fill:"currentColor",xmlns:"http://www.w3.org/2000/svg"};return r.createElement(P,$({iconAttrs:a,iconVerticalAlign:"middle",iconViewBox:"0 0 8 8"},e,{ref:t}),r.createElement("path",{d:"M3 0v3H0v2h3v3h2V5h3V3H5V0H3z"}))});Y.displayName="Plus";const we=R("div",{target:"e116k4er3"})(({theme:e})=>({display:"flex",flexDirection:"row",flexWrap:"nowrap",alignItems:"center",height:e.sizes.minElementHeight,borderWidth:e.sizes.borderWidth,borderStyle:"solid",borderColor:e.colors.widgetBorderColor||e.colors.widgetBackgroundColor||e.colors.bgColor,transitionDuration:"200ms",transitionProperty:"border",transitionTimingFunction:"cubic-bezier(0.2, 0.8, 0.4, 1)",borderRadius:e.radii.default,overflow:"hidden","&.focused":{borderColor:e.colors.primary},input:{MozAppearance:"textfield","&::-webkit-inner-spin-button, &::-webkit-outer-spin-button":{WebkitAppearance:"none",margin:e.spacing.none}}}),""),ve=R("div",{target:"e116k4er2"})({name:"76z9jo",styles:"display:flex;flex-direction:row;align-self:stretch"}),Z=R("button",{target:"e116k4er1"})(({theme:e})=>({margin:e.spacing.none,border:"none",height:e.sizes.full,display:"flex",alignItems:"center",width:e.sizes.numberInputControlsWidth,justifyContent:"center",color:e.colors.bodyText,transition:"color 300ms, backgroundColor 300ms",backgroundColor:e.colors.widgetBackgroundColor||e.colors.secondaryBg,"&:hover:enabled, &:focus:enabled":{color:e.colors.white,backgroundColor:e.colors.primary,transition:"none",outline:"none"},"&:active":{outline:"none",border:"none"},"&:last-of-type":{borderTopRightRadius:e.radii.default,borderBottomRightRadius:e.radii.default},"&:disabled":{cursor:"not-allowed",color:e.colors.fadedText40}}),""),xe=R("div",{target:"e116k4er0"})(({theme:e,clearable:t})=>({position:"absolute",marginRight:e.spacing.twoXS,left:0,right:`calc(${e.sizes.numberInputControlsWidth} * 2 + ${t?"1em":"0em"})`}),"");function Ie(e){return m(e)||e===""?void 0:e}const Te=e=>(e.element.dataType===y.DataType.INT?e.widgetMgr.getIntValue(e.element):e.widgetMgr.getDoubleValue(e.element))??e.element.default??null,q=({step:e,dataType:t})=>e||(t===y.DataType.INT?1:.01),N=({value:e,format:t,step:a,dataType:w})=>{if(m(e))return null;let i=Ie(t);if(m(i)&&K(a)){const c=a.toString();w===y.DataType.FLOAT&&a!==0&&c.includes(".")&&(i=`%0.${c.split(".")[1].length}f`)}if(m(i))return e.toString();try{return be.sprintf(i,e)}catch{return String(e)}},ke=(e,t,a)=>m(e)?!1:e-t>=a,Ce=(e,t,a)=>m(e)?!1:e+t<=a,Re=({disabled:e,element:t,widgetMgr:a,width:w,theme:i,fragmentId:c})=>{var O;const{dataType:S,id:V,formId:p,default:B,format:F}=t,b=t.hasMin?t.min:-1/0,g=t.hasMax?t.max:1/0,[s,J]=r.useState(q(t)),M=Te({element:t,widgetMgr:a}),[f,v]=r.useState(!1),[n,x]=r.useState(M),[W,I]=r.useState(N({value:M,...t,step:s})),[A,U]=r.useState(!1),j=r.useRef(null),H=r.useRef(ge("number_input_")),T=ke(n,s,b),k=Ce(n,s,g),_=ne({formId:p}),Q=_?a.allowFormEnterToSubmit(p):f,ee=A&&w>i.breakpoints.hideWidgetDetails;r.useEffect(()=>{J(q({step:t.step,dataType:t.dataType}))},[t.dataType,t.step]);const d=r.useCallback(({value:o,source:u})=>{var h;if(K(o)&&(b>o||o>g))(h=j.current)==null||h.reportValidity();else{const C=o??B??null;switch(S){case y.DataType.INT:a.setIntValue({id:V,formId:p},C,u,c);break;case y.DataType.FLOAT:a.setDoubleValue({id:V,formId:p},C,u,c);break;default:throw new Error("Invalid data type")}v(!1),x(C),I(N({value:C,dataType:S,format:F,step:s}))}},[b,g,j,a,c,s,S,V,p,B,F]),te=r.useCallback(()=>{f&&d({value:n,source:{fromUi:!0}}),U(!1)},[f,n,d]),re=r.useCallback(()=>{U(!0)},[]),L=r.useCallback(()=>{const{value:o}=t;t.setValue=!1,x(o??null),I(N({value:o??null,...t,step:s})),d({value:o??null,source:{fromUi:!1}})},[t,s,d]);r.useEffect(()=>{t.setValue?L():d({value:n,source:{fromUi:!1}})},[]),t.setValue&&L();const z=m(t.default)&&!e,ae=r.useCallback(()=>{const o=t.default??null;x(o),d({value:o,source:{fromUi:!0}})},[t]);fe({element:t,widgetMgr:a,onFormCleared:ae});const oe=o=>{const{value:u}=o.target;if(u==="")v(!0),x(null),I(null);else{let h;t.dataType===y.DataType.INT?h=parseInt(u,10):h=parseFloat(u),v(!0),x(h),I(u)}},D=r.useCallback(()=>{k&&(v(!0),d({value:(n??b)+s,source:{fromUi:!0}}))},[n,b,s,k]),E=r.useCallback(()=>{T&&(v(!0),d({value:(n??g)-s,source:{fromUi:!0}}))},[n,g,s,T]),ie=r.useCallback(o=>{const{key:u}=o;switch(u){case"ArrowUp":o.preventDefault(),D();break;case"ArrowDown":o.preventDefault(),E();break}},[D,E]),le=r.useCallback(o=>{o.key==="Enter"&&(f&&d({value:n,source:{fromUi:!0}}),a.allowFormEnterToSubmit(p)&&a.submitForm(p,c))},[f,n,d,a,p,c]);return l.jsxs("div",{className:"stNumberInput","data-testid":"stNumberInput",style:{width:w},children:[l.jsx(de,{label:t.label,disabled:e,labelVisibility:ue((O=t.labelVisibility)==null?void 0:O.value),htmlFor:H.current,children:t.help&&l.jsx(ce,{children:l.jsx(pe,{content:t.help,placement:me.TOP_RIGHT})})}),l.jsxs(we,{className:A?"focused":"","data-testid":"stNumberInputContainer",children:[l.jsx(ye,{type:"number",inputRef:j,value:W??"",placeholder:t.placeholder,onBlur:te,onFocus:re,onChange:oe,onKeyPress:le,onKeyDown:ie,clearable:z,clearOnEscape:z,disabled:e,"aria-label":t.label,id:H.current,overrides:{ClearIconContainer:{style:{padding:0}},ClearIcon:{props:{overrides:{Svg:{style:{color:i.colors.darkGray,padding:i.spacing.threeXS,height:i.sizes.clearIconSize,width:i.sizes.clearIconSize,":hover":{fill:i.colors.bodyText}}}}}},Input:{props:{"data-testid":"stNumberInputField",step:s,min:b,max:g,type:"number",inputMode:""},style:{lineHeight:i.lineHeights.inputWidget,paddingRight:i.spacing.sm,paddingLeft:i.spacing.sm,paddingBottom:i.spacing.sm,paddingTop:i.spacing.sm}},InputContainer:{style:()=>({borderTopRightRadius:0,borderBottomRightRadius:0})},Root:{style:{borderTopRightRadius:0,borderBottomRightRadius:0,borderLeftWidth:0,borderRightWidth:0,borderTopWidth:0,borderBottomWidth:0,paddingRight:0}}}}),w>i.breakpoints.hideNumberInputControls&&l.jsxs(ve,{children:[l.jsx(Z,{"data-testid":"stNumberInputStepDown",onClick:E,disabled:!T||e,tabIndex:-1,children:l.jsx(G,{content:X,size:"xs",color:T?"inherit":"disabled"})}),l.jsx(Z,{"data-testid":"stNumberInputStepUp",onClick:D,disabled:!k||e,tabIndex:-1,children:l.jsx(G,{content:Y,size:"xs",color:k?"inherit":"disabled"})})]})]}),ee&&l.jsx(xe,{clearable:z,children:l.jsx(he,{dirty:f,value:W??"",inForm:_,allowEnterToSubmit:Q})})]})},Se=se(Re);export{Se as default};
@@ -1,4 +1,4 @@
1
- import{c as r,k as m,r as p,j as n}from"./index-z2lXC7XI.js";import{R as l,P as c}from"./RenderInPortalIfExists-HKy5CC9C.js";const d="/assets/flake-0.DgWaVvm5.png",f="/assets/flake-1.B2r5AHMK.png",g="/assets/flake-2.BnWSExPC.png",o=150,x=150,u=10,$=90,h=4e3,a=(t,e=0)=>Math.random()*(t-e)+e,k=()=>m`
1
+ import{c as r,k as m,r as p,j as n}from"./index-BzTZZCvL.js";import{R as l,P as c}from"./RenderInPortalIfExists-CxeJAxCs.js";const d="/assets/flake-0.DgWaVvm5.png",f="/assets/flake-1.B2r5AHMK.png",g="/assets/flake-2.BnWSExPC.png",o=150,x=150,u=10,$=90,h=4e3,a=(t,e=0)=>Math.random()*(t-e)+e,k=()=>m`
2
2
  from {
3
3
  transform:
4
4
  translateY(0)
@@ -1,4 +1,4 @@
1
- var eO=Object.defineProperty;var iO=(e,t,i)=>t in e?eO(e,t,{enumerable:!0,configurable:!0,writable:!0,value:i}):e[t]=i;var z=(e,t,i)=>iO(e,typeof t!="symbol"?t+"":t,i);var y5,mw;import{g as jf,r as re,U as Ge,p as Ht,e as JE,ap as fu,_ as YE,Z as rO,j as wr,aq as zy,ar as Uy,as as nO,at as oO,au as $E,a6 as sO,av as aO,aj as lO,c as tC,a5 as eC,aw as Gy,ax as iC,$ as cO,M as uO,ay as rC}from"./index-z2lXC7XI.js";import{_ as Gn,C as hO}from"./slicedToArray-DkF8JK54.js";import{b as du,a as pu,_ as jy,c as Vf,d as Vy}from"./getPrototypeOf-jxUzvEiF.js";import{T as fO,a as dO}from"./Toolbar-B9grKd8p.js";import{u as nC,E as oC,w as pO}from"./withFullScreenWrapper-dTVQmtO5.js";import{u as AO}from"./useBasicWidgetState-CDQNZkN8.js";import{c as gO}from"./_commonjs-dynamic-modules-TDtrdbi3.js";import{D as mO,C as _O}from"./threshold-C19zgWBv.js";import"./FormClearHelper-DliGOSkq.js";import"./string-Bl9OLDCw.js";function yO(e,t){for(var i=0;i<t.length;i++){const r=t[i];if(typeof r!="string"&&!Array.isArray(r)){for(const n in r)if(n!=="default"&&!(n in e)){const s=Object.getOwnPropertyDescriptor(r,n);s&&Object.defineProperty(e,n,s.get?s:{enumerable:!0,get:()=>r[n]})}}}return Object.freeze(Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}))}async function Hf(e,t,i,r){return r._parse(e,t,i,r)}function Gr(e,t){if(!e)throw new Error(t||"loader assertion failed.")}const K0=!!(typeof process!="object"||String(process)!=="[object process]"||process.browser),sC=typeof process<"u"&&process.version&&/v([0-9]*)/.exec(process.version);sC&&parseFloat(sC[1]);const Q0=globalThis,Wf=globalThis.process||{},vO=globalThis.navigator||{};function aC(e){var i,r;if(typeof window<"u"&&((i=window.process)==null?void 0:i.type)==="renderer"||typeof process<"u"&&((r=process.versions)!=null&&r.electron))return!0;const t=typeof navigator<"u"&&navigator.userAgent;return!!(t&&t.indexOf("Electron")>=0)}function Au(){return!(typeof process=="object"&&String(process)==="[object process]"&&!(process!=null&&process.browser))||aC()}function bO(e){return Au()?aC()?"Electron":(vO.userAgent||"").indexOf("Edge")>-1?"Edge":globalThis.chrome?"Chrome":globalThis.safari?"Safari":globalThis.mozInnerScreenX?"Firefox":"Unknown":"Node"}const lC="4.0.7";function xO(e){try{const t=window[e],i="__storage_test__";return t.setItem(i,i),t.removeItem(i),t}catch{return null}}class wO{constructor(t,i,r="sessionStorage"){this.storage=xO(r),this.id=t,this.config=i,this._loadConfiguration()}getConfiguration(){return this.config}setConfiguration(t){if(Object.assign(this.config,t),this.storage){const i=JSON.stringify(this.config);this.storage.setItem(this.id,i)}}_loadConfiguration(){let t={};if(this.storage){const i=this.storage.getItem(this.id);t=i?JSON.parse(i):{}}return Object.assign(this.config,t),this}}function EO(e){let t;return e<10?t=`${e.toFixed(2)}ms`:e<100?t=`${e.toFixed(1)}ms`:e<1e3?t=`${e.toFixed(0)}ms`:t=`${(e/1e3).toFixed(2)}s`,t}function CO(e,t=8){const i=Math.max(t-e.length,0);return`${" ".repeat(i)}${e}`}var J0;(function(e){e[e.BLACK=30]="BLACK",e[e.RED=31]="RED",e[e.GREEN=32]="GREEN",e[e.YELLOW=33]="YELLOW",e[e.BLUE=34]="BLUE",e[e.MAGENTA=35]="MAGENTA",e[e.CYAN=36]="CYAN",e[e.WHITE=37]="WHITE",e[e.BRIGHT_BLACK=90]="BRIGHT_BLACK",e[e.BRIGHT_RED=91]="BRIGHT_RED",e[e.BRIGHT_GREEN=92]="BRIGHT_GREEN",e[e.BRIGHT_YELLOW=93]="BRIGHT_YELLOW",e[e.BRIGHT_BLUE=94]="BRIGHT_BLUE",e[e.BRIGHT_MAGENTA=95]="BRIGHT_MAGENTA",e[e.BRIGHT_CYAN=96]="BRIGHT_CYAN",e[e.BRIGHT_WHITE=97]="BRIGHT_WHITE"})(J0||(J0={}));const SO=10;function cC(e){return typeof e!="string"?e:(e=e.toUpperCase(),J0[e]||J0.WHITE)}function TO(e,t,i){return!Au&&typeof e=="string"&&(t&&(e=`\x1B[${cC(t)}m${e}\x1B[39m`),i&&(e=`\x1B[${cC(i)+SO}m${e}\x1B[49m`)),e}function IO(e,t=["constructor"]){const i=Object.getPrototypeOf(e),r=Object.getOwnPropertyNames(i),n=e;for(const s of r){const o=n[s];typeof o=="function"&&(t.find(f=>s===f)||(n[s]=o.bind(e)))}}function Hy(e,t){if(!e)throw new Error("Assertion failed")}function qf(){var t,i,r;let e;if(Au()&&Q0.performance)e=(i=(t=Q0==null?void 0:Q0.performance)==null?void 0:t.now)==null?void 0:i.call(t);else if("hrtime"in Wf){const n=(r=Wf==null?void 0:Wf.hrtime)==null?void 0:r.call(Wf);e=n[0]*1e3+n[1]/1e6}else e=Date.now();return e}const Zf={debug:Au()&&console.debug||console.log,log:console.log,info:console.info,warn:console.warn,error:console.error},PO={enabled:!0,level:0};function Xf(){}const uC={},hC={once:!0};class Kf{constructor({id:t}={id:""}){this.VERSION=lC,this._startTs=qf(),this._deltaTs=qf(),this.userData={},this.LOG_THROTTLE_TIMEOUT=0,this.id=t,this.userData={},this._storage=new wO(`__probe-${this.id}__`,PO),this.timeStamp(`${this.id} started`),IO(this),Object.seal(this)}set level(t){this.setLevel(t)}get level(){return this.getLevel()}isEnabled(){return this._storage.config.enabled}getLevel(){return this._storage.config.level}getTotal(){return Number((qf()-this._startTs).toPrecision(10))}getDelta(){return Number((qf()-this._deltaTs).toPrecision(10))}set priority(t){this.level=t}get priority(){return this.level}getPriority(){return this.level}enable(t=!0){return this._storage.setConfiguration({enabled:t}),this}setLevel(t){return this._storage.setConfiguration({level:t}),this}get(t){return this._storage.config[t]}set(t,i){this._storage.setConfiguration({[t]:i})}settings(){console.table?console.table(this._storage.config):console.log(this._storage.config)}assert(t,i){if(!t)throw new Error(i||"Assertion failed")}warn(t){return this._getLogFunction(0,t,Zf.warn,arguments,hC)}error(t){return this._getLogFunction(0,t,Zf.error,arguments)}deprecated(t,i){return this.warn(`\`${t}\` is deprecated and will be removed in a later version. Use \`${i}\` instead`)}removed(t,i){return this.error(`\`${t}\` has been removed. Use \`${i}\` instead`)}probe(t,i){return this._getLogFunction(t,i,Zf.log,arguments,{time:!0,once:!0})}log(t,i){return this._getLogFunction(t,i,Zf.debug,arguments)}info(t,i){return this._getLogFunction(t,i,console.info,arguments)}once(t,i){return this._getLogFunction(t,i,Zf.debug||Zf.info,arguments,hC)}table(t,i,r){return i?this._getLogFunction(t,i,console.table||Xf,r&&[r],{tag:BO(i)}):Xf}time(t,i){return this._getLogFunction(t,i,console.time?console.time:console.info)}timeEnd(t,i){return this._getLogFunction(t,i,console.timeEnd?console.timeEnd:console.info)}timeStamp(t,i){return this._getLogFunction(t,i,console.timeStamp||Xf)}group(t,i,r={collapsed:!1}){const n=dC({logLevel:t,message:i,opts:r}),{collapsed:s}=r;return n.method=(s?console.groupCollapsed:console.group)||console.info,this._getLogFunction(n)}groupCollapsed(t,i,r={}){return this.group(t,i,Object.assign({},r,{collapsed:!0}))}groupEnd(t){return this._getLogFunction(t,"",console.groupEnd||Xf)}withGroup(t,i,r){this.group(t,i)();try{r()}finally{this.groupEnd(t)()}}trace(){console.trace&&console.trace()}_shouldLog(t){return this.isEnabled()&&this.getLevel()>=fC(t)}_getLogFunction(t,i,r,n,s){if(this._shouldLog(t)){s=dC({logLevel:t,message:i,args:n,opts:s}),r=r||s.method,Hy(r),s.total=this.getTotal(),s.delta=this.getDelta(),this._deltaTs=qf();const o=s.tag||s.message;if(s.once&&o)if(!uC[o])uC[o]=qf();else return Xf;return i=MO(this.id,s.message,s),r.bind(console,i,...s.args)}return Xf}}Kf.VERSION=lC;function fC(e){if(!e)return 0;let t;switch(typeof e){case"number":t=e;break;case"object":t=e.logLevel||e.priority||0;break;default:return 0}return Hy(Number.isFinite(t)&&t>=0),t}function dC(e){const{logLevel:t,message:i}=e;e.logLevel=fC(t);const r=e.args?Array.from(e.args):[];for(;r.length&&r.shift()!==i;);switch(typeof t){case"string":case"function":i!==void 0&&r.unshift(i),e.message=t;break;case"object":Object.assign(e,t);break}typeof e.message=="function"&&(e.message=e.message());const n=typeof e.message;return Hy(n==="string"||n==="object"),Object.assign(e,{args:r},e.opts)}function MO(e,t,i){if(typeof t=="string"){const r=i.time?CO(EO(i.total)):"";t=i.time?`${e}: ${r} ${t}`:`${e}: ${t}`,t=TO(t,i.color,i.background)}return t}function BO(e){for(const t in e)for(const i in e[t])return i||"untitled";return"empty"}globalThis.probe={};const pC=new Kf({id:"@probe.gl/log"}),Wy="4.3.1",RO=Wy[0]>="0"&&Wy[0]<="9"?`v${Wy}`:"";function LO(){const e=new Kf({id:"loaders.gl"});return globalThis.loaders=globalThis.loaders||{},globalThis.loaders.log=e,globalThis.loaders.version=RO,globalThis.probe=globalThis.probe||{},globalThis.probe.loaders=e,e}const AC=LO();function gC(e,t){return mC(e||{},t)}function mC(e,t,i=0){if(i>3)return t;const r={...e};for(const[n,s]of Object.entries(t))s&&typeof s=="object"&&!Array.isArray(s)?r[n]=mC(r[n]||{},t[n],i+1):r[n]=t[n];return r}function DO(e){var t;globalThis.loaders||(globalThis.loaders={}),(t=globalThis.loaders).modules||(t.modules={}),Object.assign(globalThis.loaders.modules,e)}function OO(e){var t,i;return((i=(t=globalThis.loaders)==null?void 0:t.modules)==null?void 0:i[e])||null}const kO="latest";function FO(){var e;return(e=globalThis._loadersgl_)!=null&&e.version||(globalThis._loadersgl_=globalThis._loadersgl_||{},globalThis._loadersgl_.version="4.3.1"),globalThis._loadersgl_.version}const _C=FO();function Ac(e,t){if(!e)throw new Error(t||"loaders.gl assertion failed.")}const va=typeof process!="object"||String(process)!=="[object process]"||process.browser,qy=typeof importScripts=="function",NO=typeof window<"u"&&typeof window.orientation<"u",yC=typeof process<"u"&&process.version&&/v([0-9]*)/.exec(process.version);yC&&parseFloat(yC[1]);class zO{constructor(t,i){z(this,"name");z(this,"workerThread");z(this,"isRunning",!0);z(this,"result");z(this,"_resolve",()=>{});z(this,"_reject",()=>{});this.name=t,this.workerThread=i,this.result=new Promise((r,n)=>{this._resolve=r,this._reject=n})}postMessage(t,i){this.workerThread.postMessage({source:"loaders.gl",type:t,payload:i})}done(t){Ac(this.isRunning),this.isRunning=!1,this._resolve(t)}error(t){Ac(this.isRunning),this.isRunning=!1,this._reject(t)}}class Zy{terminate(){}}const Xy=new Map;function UO(e){Ac(e.source&&!e.url||!e.source&&e.url);let t=Xy.get(e.source||e.url);return t||(e.url&&(t=GO(e.url),Xy.set(e.url,t)),e.source&&(t=vC(e.source),Xy.set(e.source,t))),Ac(t),t}function GO(e){if(!e.startsWith("http"))return e;const t=jO(e);return vC(t)}function vC(e){const t=new Blob([e],{type:"application/javascript"});return URL.createObjectURL(t)}function jO(e){return`try {
1
+ var eO=Object.defineProperty;var iO=(e,t,i)=>t in e?eO(e,t,{enumerable:!0,configurable:!0,writable:!0,value:i}):e[t]=i;var z=(e,t,i)=>iO(e,typeof t!="symbol"?t+"":t,i);var y5,mw;import{g as jf,r as re,U as Ge,p as Ht,e as JE,ap as fu,_ as YE,Z as rO,j as wr,aq as zy,ar as Uy,as as nO,at as oO,au as $E,a6 as sO,av as aO,aj as lO,c as tC,a5 as eC,aw as Gy,ax as iC,$ as cO,M as uO,ay as rC}from"./index-BzTZZCvL.js";import{_ as Gn,C as hO}from"./slicedToArray-tqzlNjPF.js";import{b as du,a as pu,_ as jy,c as Vf,d as Vy}from"./getPrototypeOf-CFHg57KG.js";import{T as fO,a as dO}from"./Toolbar-CG7W1D-O.js";import{u as nC,E as oC,w as pO}from"./withFullScreenWrapper-DIS3bwns.js";import{u as AO}from"./useBasicWidgetState-Cqy4gnzY.js";import{c as gO}from"./_commonjs-dynamic-modules-TDtrdbi3.js";import{D as mO,C as _O}from"./threshold-C19zgWBv.js";import"./FormClearHelper-DmeZ2QuQ.js";import"./string-Bl9OLDCw.js";function yO(e,t){for(var i=0;i<t.length;i++){const r=t[i];if(typeof r!="string"&&!Array.isArray(r)){for(const n in r)if(n!=="default"&&!(n in e)){const s=Object.getOwnPropertyDescriptor(r,n);s&&Object.defineProperty(e,n,s.get?s:{enumerable:!0,get:()=>r[n]})}}}return Object.freeze(Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}))}async function Hf(e,t,i,r){return r._parse(e,t,i,r)}function Gr(e,t){if(!e)throw new Error(t||"loader assertion failed.")}const K0=!!(typeof process!="object"||String(process)!=="[object process]"||process.browser),sC=typeof process<"u"&&process.version&&/v([0-9]*)/.exec(process.version);sC&&parseFloat(sC[1]);const Q0=globalThis,Wf=globalThis.process||{},vO=globalThis.navigator||{};function aC(e){var i,r;if(typeof window<"u"&&((i=window.process)==null?void 0:i.type)==="renderer"||typeof process<"u"&&((r=process.versions)!=null&&r.electron))return!0;const t=typeof navigator<"u"&&navigator.userAgent;return!!(t&&t.indexOf("Electron")>=0)}function Au(){return!(typeof process=="object"&&String(process)==="[object process]"&&!(process!=null&&process.browser))||aC()}function bO(e){return Au()?aC()?"Electron":(vO.userAgent||"").indexOf("Edge")>-1?"Edge":globalThis.chrome?"Chrome":globalThis.safari?"Safari":globalThis.mozInnerScreenX?"Firefox":"Unknown":"Node"}const lC="4.0.7";function xO(e){try{const t=window[e],i="__storage_test__";return t.setItem(i,i),t.removeItem(i),t}catch{return null}}class wO{constructor(t,i,r="sessionStorage"){this.storage=xO(r),this.id=t,this.config=i,this._loadConfiguration()}getConfiguration(){return this.config}setConfiguration(t){if(Object.assign(this.config,t),this.storage){const i=JSON.stringify(this.config);this.storage.setItem(this.id,i)}}_loadConfiguration(){let t={};if(this.storage){const i=this.storage.getItem(this.id);t=i?JSON.parse(i):{}}return Object.assign(this.config,t),this}}function EO(e){let t;return e<10?t=`${e.toFixed(2)}ms`:e<100?t=`${e.toFixed(1)}ms`:e<1e3?t=`${e.toFixed(0)}ms`:t=`${(e/1e3).toFixed(2)}s`,t}function CO(e,t=8){const i=Math.max(t-e.length,0);return`${" ".repeat(i)}${e}`}var J0;(function(e){e[e.BLACK=30]="BLACK",e[e.RED=31]="RED",e[e.GREEN=32]="GREEN",e[e.YELLOW=33]="YELLOW",e[e.BLUE=34]="BLUE",e[e.MAGENTA=35]="MAGENTA",e[e.CYAN=36]="CYAN",e[e.WHITE=37]="WHITE",e[e.BRIGHT_BLACK=90]="BRIGHT_BLACK",e[e.BRIGHT_RED=91]="BRIGHT_RED",e[e.BRIGHT_GREEN=92]="BRIGHT_GREEN",e[e.BRIGHT_YELLOW=93]="BRIGHT_YELLOW",e[e.BRIGHT_BLUE=94]="BRIGHT_BLUE",e[e.BRIGHT_MAGENTA=95]="BRIGHT_MAGENTA",e[e.BRIGHT_CYAN=96]="BRIGHT_CYAN",e[e.BRIGHT_WHITE=97]="BRIGHT_WHITE"})(J0||(J0={}));const SO=10;function cC(e){return typeof e!="string"?e:(e=e.toUpperCase(),J0[e]||J0.WHITE)}function TO(e,t,i){return!Au&&typeof e=="string"&&(t&&(e=`\x1B[${cC(t)}m${e}\x1B[39m`),i&&(e=`\x1B[${cC(i)+SO}m${e}\x1B[49m`)),e}function IO(e,t=["constructor"]){const i=Object.getPrototypeOf(e),r=Object.getOwnPropertyNames(i),n=e;for(const s of r){const o=n[s];typeof o=="function"&&(t.find(f=>s===f)||(n[s]=o.bind(e)))}}function Hy(e,t){if(!e)throw new Error("Assertion failed")}function qf(){var t,i,r;let e;if(Au()&&Q0.performance)e=(i=(t=Q0==null?void 0:Q0.performance)==null?void 0:t.now)==null?void 0:i.call(t);else if("hrtime"in Wf){const n=(r=Wf==null?void 0:Wf.hrtime)==null?void 0:r.call(Wf);e=n[0]*1e3+n[1]/1e6}else e=Date.now();return e}const Zf={debug:Au()&&console.debug||console.log,log:console.log,info:console.info,warn:console.warn,error:console.error},PO={enabled:!0,level:0};function Xf(){}const uC={},hC={once:!0};class Kf{constructor({id:t}={id:""}){this.VERSION=lC,this._startTs=qf(),this._deltaTs=qf(),this.userData={},this.LOG_THROTTLE_TIMEOUT=0,this.id=t,this.userData={},this._storage=new wO(`__probe-${this.id}__`,PO),this.timeStamp(`${this.id} started`),IO(this),Object.seal(this)}set level(t){this.setLevel(t)}get level(){return this.getLevel()}isEnabled(){return this._storage.config.enabled}getLevel(){return this._storage.config.level}getTotal(){return Number((qf()-this._startTs).toPrecision(10))}getDelta(){return Number((qf()-this._deltaTs).toPrecision(10))}set priority(t){this.level=t}get priority(){return this.level}getPriority(){return this.level}enable(t=!0){return this._storage.setConfiguration({enabled:t}),this}setLevel(t){return this._storage.setConfiguration({level:t}),this}get(t){return this._storage.config[t]}set(t,i){this._storage.setConfiguration({[t]:i})}settings(){console.table?console.table(this._storage.config):console.log(this._storage.config)}assert(t,i){if(!t)throw new Error(i||"Assertion failed")}warn(t){return this._getLogFunction(0,t,Zf.warn,arguments,hC)}error(t){return this._getLogFunction(0,t,Zf.error,arguments)}deprecated(t,i){return this.warn(`\`${t}\` is deprecated and will be removed in a later version. Use \`${i}\` instead`)}removed(t,i){return this.error(`\`${t}\` has been removed. Use \`${i}\` instead`)}probe(t,i){return this._getLogFunction(t,i,Zf.log,arguments,{time:!0,once:!0})}log(t,i){return this._getLogFunction(t,i,Zf.debug,arguments)}info(t,i){return this._getLogFunction(t,i,console.info,arguments)}once(t,i){return this._getLogFunction(t,i,Zf.debug||Zf.info,arguments,hC)}table(t,i,r){return i?this._getLogFunction(t,i,console.table||Xf,r&&[r],{tag:BO(i)}):Xf}time(t,i){return this._getLogFunction(t,i,console.time?console.time:console.info)}timeEnd(t,i){return this._getLogFunction(t,i,console.timeEnd?console.timeEnd:console.info)}timeStamp(t,i){return this._getLogFunction(t,i,console.timeStamp||Xf)}group(t,i,r={collapsed:!1}){const n=dC({logLevel:t,message:i,opts:r}),{collapsed:s}=r;return n.method=(s?console.groupCollapsed:console.group)||console.info,this._getLogFunction(n)}groupCollapsed(t,i,r={}){return this.group(t,i,Object.assign({},r,{collapsed:!0}))}groupEnd(t){return this._getLogFunction(t,"",console.groupEnd||Xf)}withGroup(t,i,r){this.group(t,i)();try{r()}finally{this.groupEnd(t)()}}trace(){console.trace&&console.trace()}_shouldLog(t){return this.isEnabled()&&this.getLevel()>=fC(t)}_getLogFunction(t,i,r,n,s){if(this._shouldLog(t)){s=dC({logLevel:t,message:i,args:n,opts:s}),r=r||s.method,Hy(r),s.total=this.getTotal(),s.delta=this.getDelta(),this._deltaTs=qf();const o=s.tag||s.message;if(s.once&&o)if(!uC[o])uC[o]=qf();else return Xf;return i=MO(this.id,s.message,s),r.bind(console,i,...s.args)}return Xf}}Kf.VERSION=lC;function fC(e){if(!e)return 0;let t;switch(typeof e){case"number":t=e;break;case"object":t=e.logLevel||e.priority||0;break;default:return 0}return Hy(Number.isFinite(t)&&t>=0),t}function dC(e){const{logLevel:t,message:i}=e;e.logLevel=fC(t);const r=e.args?Array.from(e.args):[];for(;r.length&&r.shift()!==i;);switch(typeof t){case"string":case"function":i!==void 0&&r.unshift(i),e.message=t;break;case"object":Object.assign(e,t);break}typeof e.message=="function"&&(e.message=e.message());const n=typeof e.message;return Hy(n==="string"||n==="object"),Object.assign(e,{args:r},e.opts)}function MO(e,t,i){if(typeof t=="string"){const r=i.time?CO(EO(i.total)):"";t=i.time?`${e}: ${r} ${t}`:`${e}: ${t}`,t=TO(t,i.color,i.background)}return t}function BO(e){for(const t in e)for(const i in e[t])return i||"untitled";return"empty"}globalThis.probe={};const pC=new Kf({id:"@probe.gl/log"}),Wy="4.3.1",RO=Wy[0]>="0"&&Wy[0]<="9"?`v${Wy}`:"";function LO(){const e=new Kf({id:"loaders.gl"});return globalThis.loaders=globalThis.loaders||{},globalThis.loaders.log=e,globalThis.loaders.version=RO,globalThis.probe=globalThis.probe||{},globalThis.probe.loaders=e,e}const AC=LO();function gC(e,t){return mC(e||{},t)}function mC(e,t,i=0){if(i>3)return t;const r={...e};for(const[n,s]of Object.entries(t))s&&typeof s=="object"&&!Array.isArray(s)?r[n]=mC(r[n]||{},t[n],i+1):r[n]=t[n];return r}function DO(e){var t;globalThis.loaders||(globalThis.loaders={}),(t=globalThis.loaders).modules||(t.modules={}),Object.assign(globalThis.loaders.modules,e)}function OO(e){var t,i;return((i=(t=globalThis.loaders)==null?void 0:t.modules)==null?void 0:i[e])||null}const kO="latest";function FO(){var e;return(e=globalThis._loadersgl_)!=null&&e.version||(globalThis._loadersgl_=globalThis._loadersgl_||{},globalThis._loadersgl_.version="4.3.1"),globalThis._loadersgl_.version}const _C=FO();function Ac(e,t){if(!e)throw new Error(t||"loaders.gl assertion failed.")}const va=typeof process!="object"||String(process)!=="[object process]"||process.browser,qy=typeof importScripts=="function",NO=typeof window<"u"&&typeof window.orientation<"u",yC=typeof process<"u"&&process.version&&/v([0-9]*)/.exec(process.version);yC&&parseFloat(yC[1]);class zO{constructor(t,i){z(this,"name");z(this,"workerThread");z(this,"isRunning",!0);z(this,"result");z(this,"_resolve",()=>{});z(this,"_reject",()=>{});this.name=t,this.workerThread=i,this.result=new Promise((r,n)=>{this._resolve=r,this._reject=n})}postMessage(t,i){this.workerThread.postMessage({source:"loaders.gl",type:t,payload:i})}done(t){Ac(this.isRunning),this.isRunning=!1,this._resolve(t)}error(t){Ac(this.isRunning),this.isRunning=!1,this._reject(t)}}class Zy{terminate(){}}const Xy=new Map;function UO(e){Ac(e.source&&!e.url||!e.source&&e.url);let t=Xy.get(e.source||e.url);return t||(e.url&&(t=GO(e.url),Xy.set(e.url,t)),e.source&&(t=vC(e.source),Xy.set(e.source,t))),Ac(t),t}function GO(e){if(!e.startsWith("http"))return e;const t=jO(e);return vC(t)}function vC(e){const t=new Blob([e],{type:"application/javascript"});return URL.createObjectURL(t)}function jO(e){return`try {
2
2
  importScripts('${e}');
3
3
  } catch (error) {
4
4
  console.error(error);
@@ -1 +1 @@
1
- import{c as l,aD as y,j as i}from"./index-z2lXC7XI.js";import{S as m,T as F}from"./Toolbar-B9grKd8p.js";import{w as b,u as C,E as I}from"./withFullScreenWrapper-dTVQmtO5.js";const S=l("div",{target:"e115fcil2"})(({theme:e})=>({display:"flex",flexDirection:"row",flexWrap:"wrap",rowGap:e.spacing.lg,maxWidth:"100%",width:"fit-content"}),""),W=l("div",{target:"e115fcil1"})({name:"1xf0csu",styles:"display:flex;flex-direction:column;align-items:stretch;width:auto;flex-grow:0"}),v=l("div",{target:"e115fcil0"})(({theme:e})=>({fontFamily:e.genericFonts.bodyFont,fontSize:e.fontSizes.sm,color:e.colors.fadedText60,textAlign:"center",marginTop:e.spacing.xs,wordWrap:"break-word",padding:e.spacing.threeXS}),"");function E({element:e,width:g,endpoints:h,disableFullscreenMode:p}){const x=y(e.imgs),{expanded:s,width:f,height:o,expand:u,collapse:w}=C(I),r=s?f:g;let n;const a=e.width;if([-1,-3,-4].includes(a))n=void 0;else if([-2,-5].includes(a))n=r;else if(a>0)n=a;else throw Error(`Invalid image width: ${a}`);const t={};return o&&s?(t.maxHeight=o,t.objectFit="contain"):(t.width=n,t.maxWidth="100%"),i.jsxs(m,{width:r,height:o,useContainerWidth:s,topCentered:!0,children:[i.jsx(F,{target:m,isFullScreen:s,onExpand:u,onCollapse:w,disableFullscreenMode:p}),i.jsx(S,{className:"stImage","data-testid":"stImage",children:x.map((j,c)=>{const d=j;return i.jsxs(W,{"data-testid":"stImageContainer",children:[i.jsx("img",{style:t,src:h.buildMediaURL(d.url),alt:c.toString()}),d.caption&&i.jsx(v,{"data-testid":"stImageCaption",style:t,children:` ${d.caption} `})]},c)})})]})}const T=b(E);export{T as default};
1
+ import{c as l,aD as y,j as i}from"./index-BzTZZCvL.js";import{S as m,T as F}from"./Toolbar-CG7W1D-O.js";import{w as b,u as C,E as I}from"./withFullScreenWrapper-DIS3bwns.js";const S=l("div",{target:"e115fcil2"})(({theme:e})=>({display:"flex",flexDirection:"row",flexWrap:"wrap",rowGap:e.spacing.lg,maxWidth:"100%",width:"fit-content"}),""),W=l("div",{target:"e115fcil1"})({name:"1xf0csu",styles:"display:flex;flex-direction:column;align-items:stretch;width:auto;flex-grow:0"}),v=l("div",{target:"e115fcil0"})(({theme:e})=>({fontFamily:e.genericFonts.bodyFont,fontSize:e.fontSizes.sm,color:e.colors.fadedText60,textAlign:"center",marginTop:e.spacing.xs,wordWrap:"break-word",padding:e.spacing.threeXS}),"");function E({element:e,width:g,endpoints:h,disableFullscreenMode:p}){const x=y(e.imgs),{expanded:s,width:f,height:o,expand:u,collapse:w}=C(I),r=s?f:g;let n;const a=e.width;if([-1,-3,-4].includes(a))n=void 0;else if([-2,-5].includes(a))n=r;else if(a>0)n=a;else throw Error(`Invalid image width: ${a}`);const t={};return o&&s?(t.maxHeight=o,t.objectFit="contain"):(t.width=n,t.maxWidth="100%"),i.jsxs(m,{width:r,height:o,useContainerWidth:s,topCentered:!0,children:[i.jsx(F,{target:m,isFullScreen:s,onExpand:u,onCollapse:w,disableFullscreenMode:p}),i.jsx(S,{className:"stImage","data-testid":"stImage",children:x.map((j,c)=>{const d=j;return i.jsxs(W,{"data-testid":"stImageContainer",children:[i.jsx("img",{style:t,src:h.buildMediaURL(d.url),alt:c.toString()}),d.caption&&i.jsx(v,{"data-testid":"stImageCaption",style:t,children:` ${d.caption} `})]},c)})})]})}const T=b(E);export{T as default};
@@ -1,4 +1,4 @@
1
- import{r as m,bk as Kt,bl as Xt,bm as Qt,bn as Zt,b as zr,g as Ur,b2 as x,be as ue,bf as ce,bo as qr,bd as Gt,b3 as E,a0 as Jt,bp as Kr,bq as er,br as tr,bs as Xr,b4 as pe,bt as Qr,bu as Zr,bv as Gr,a4 as Jr,a3 as rr,M as en,a6 as tn,G as Ne,B as rn,j as de,a_ as nn,a$ as on,bc as an,b0 as ln,aK as sn}from"./index-z2lXC7XI.js";import{a as un}from"./useBasicWidgetState-CDQNZkN8.js";import{D as oe,a as ae,T as cn,l as Ve}from"./timepicker-DWOLsPBU.js";import{I as pn}from"./input-Dhep7xP0.js";import{I as dn}from"./base-input-DJ1o9wy-.js";import"./FormClearHelper-DliGOSkq.js";import"./getPrototypeOf-jxUzvEiF.js";import"./createSuper-BCtrEkDw.js";var fn=["title","size","color","overrides"];function Ye(){return Ye=Object.assign?Object.assign.bind():function(t){for(var r=1;r<arguments.length;r++){var o=arguments[r];for(var n in o)Object.prototype.hasOwnProperty.call(o,n)&&(t[n]=o[n])}return t},Ye.apply(this,arguments)}function hn(t,r){if(t==null)return{};var o=yn(t,r),n,e;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(t);for(e=0;e<a.length;e++)n=a[e],!(r.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(t,n)&&(o[n]=t[n])}return o}function yn(t,r){if(t==null)return{};var o={},n=Object.keys(t),e,a;for(a=0;a<n.length;a++)e=n[a],!(r.indexOf(e)>=0)&&(o[e]=t[e]);return o}function gn(t,r){return Dn(t)||vn(t,r)||bn(t,r)||mn()}function mn(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
1
+ import{r as m,bk as Kt,bl as Xt,bm as Qt,bn as Zt,b as zr,g as Ur,b2 as x,be as ue,bf as ce,bo as qr,bd as Gt,b3 as E,a0 as Jt,bp as Kr,bq as er,br as tr,bs as Xr,b4 as pe,bt as Qr,bu as Zr,bv as Gr,a4 as Jr,a3 as rr,M as en,a6 as tn,G as Ne,B as rn,j as de,a_ as nn,a$ as on,bc as an,b0 as ln,aK as sn}from"./index-BzTZZCvL.js";import{a as un}from"./useBasicWidgetState-Cqy4gnzY.js";import{D as oe,a as ae,T as cn,l as Ve}from"./timepicker-D5Qmkk9Q.js";import{I as pn}from"./input-BrXgmYe9.js";import{I as dn}from"./base-input-DoV-1XUt.js";import"./FormClearHelper-DmeZ2QuQ.js";import"./getPrototypeOf-CFHg57KG.js";import"./createSuper-CvaFdVoD.js";var fn=["title","size","color","overrides"];function Ye(){return Ye=Object.assign?Object.assign.bind():function(t){for(var r=1;r<arguments.length;r++){var o=arguments[r];for(var n in o)Object.prototype.hasOwnProperty.call(o,n)&&(t[n]=o[n])}return t},Ye.apply(this,arguments)}function hn(t,r){if(t==null)return{};var o=yn(t,r),n,e;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(t);for(e=0;e<a.length;e++)n=a[e],!(r.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(t,n)&&(o[n]=t[n])}return o}function yn(t,r){if(t==null)return{};var o={},n=Object.keys(t),e,a;for(a=0;a<n.length;a++)e=n[a],!(r.indexOf(e)>=0)&&(o[e]=t[e]);return o}function gn(t,r){return Dn(t)||vn(t,r)||bn(t,r)||mn()}function mn(){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 bn(t,r){if(t){if(typeof t=="string")return nr(t,r);var o=Object.prototype.toString.call(t).slice(8,-1);if(o==="Object"&&t.constructor&&(o=t.constructor.name),o==="Map"||o==="Set")return Array.from(t);if(o==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(o))return nr(t,r)}}function nr(t,r){(r==null||r>t.length)&&(r=t.length);for(var o=0,n=new Array(r);o<r;o++)n[o]=t[o];return n}function vn(t,r){var o=t==null?null:typeof Symbol<"u"&&t[Symbol.iterator]||t["@@iterator"];if(o!=null){var n=[],e=!0,a=!1,i,l;try{for(o=o.call(t);!(e=(i=o.next()).done)&&(n.push(i.value),!(r&&n.length===r));e=!0);}catch(u){a=!0,l=u}finally{try{!e&&o.return!=null&&o.return()}finally{if(a)throw l}}return n}}function Dn(t){if(Array.isArray(t))return t}function Sn(t,r){var o=Kt(),n=gn(o,2),e=n[1],a=t.title,i=a===void 0?"Left":a,l=t.size,u=t.color,s=t.overrides,y=s===void 0?{}:s,p=hn(t,fn),d=Xt({component:e.icons&&e.icons.ChevronLeft?e.icons.ChevronLeft:null},y&&y.Svg?Qt(y.Svg):{});return m.createElement(Zt,Ye({viewBox:"0 0 24 24",ref:r,title:i,size:l,color:u,overrides:{Svg:d}},p),m.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M9 12C9 12.2652 9.10536 12.5196 9.29289 12.7071L13.2929 16.7071C13.6834 17.0976 14.3166 17.0976 14.7071 16.7071C15.0976 16.3166 15.0976 15.6834 14.7071 15.2929L11.4142 12L14.7071 8.70711C15.0976 8.31658 15.0976 7.68342 14.7071 7.29289C14.3166 6.90237 13.6834 6.90237 13.2929 7.29289L9.29289 11.2929C9.10536 11.4804 9 11.7348 9 12Z"}))}const or=m.forwardRef(Sn);var On=["title","size","color","overrides"];function We(){return We=Object.assign?Object.assign.bind():function(t){for(var r=1;r<arguments.length;r++){var o=arguments[r];for(var n in o)Object.prototype.hasOwnProperty.call(o,n)&&(t[n]=o[n])}return t},We.apply(this,arguments)}function wn(t,r){if(t==null)return{};var o=kn(t,r),n,e;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(t);for(e=0;e<a.length;e++)n=a[e],!(r.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(t,n)&&(o[n]=t[n])}return o}function kn(t,r){if(t==null)return{};var o={},n=Object.keys(t),e,a;for(a=0;a<n.length;a++)e=n[a],!(r.indexOf(e)>=0)&&(o[e]=t[e]);return o}function Cn(t,r){return Pn(t)||Hn(t,r)||jn(t,r)||Mn()}function Mn(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
3
3
  In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function jn(t,r){if(t){if(typeof t=="string")return ar(t,r);var o=Object.prototype.toString.call(t).slice(8,-1);if(o==="Object"&&t.constructor&&(o=t.constructor.name),o==="Map"||o==="Set")return Array.from(t);if(o==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(o))return ar(t,r)}}function ar(t,r){(r==null||r>t.length)&&(r=t.length);for(var o=0,n=new Array(r);o<r;o++)n[o]=t[o];return n}function Hn(t,r){var o=t==null?null:typeof Symbol<"u"&&t[Symbol.iterator]||t["@@iterator"];if(o!=null){var n=[],e=!0,a=!1,i,l;try{for(o=o.call(t);!(e=(i=o.next()).done)&&(n.push(i.value),!(r&&n.length===r));e=!0);}catch(u){a=!0,l=u}finally{try{!e&&o.return!=null&&o.return()}finally{if(a)throw l}}return n}}function Pn(t){if(Array.isArray(t))return t}function En(t,r){var o=Kt(),n=Cn(o,2),e=n[1],a=t.title,i=a===void 0?"Right":a,l=t.size,u=t.color,s=t.overrides,y=s===void 0?{}:s,p=wn(t,On),d=Xt({component:e.icons&&e.icons.ChevronRight?e.icons.ChevronRight:null},y&&y.Svg?Qt(y.Svg):{});return m.createElement(Zt,We({viewBox:"0 0 24 24",ref:r,title:i,size:l,color:u,overrides:{Svg:d}},p),m.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M9.29289 7.29289C8.90237 7.68342 8.90237 8.31658 9.29289 8.70711L12.5858 12L9.29289 15.2929C8.90237 15.6834 8.90237 16.3166 9.29289 16.7071C9.68342 17.0976 10.3166 17.0976 10.7071 16.7071L14.7071 12.7071C14.8946 12.5196 15 12.2652 15 12C15 11.7348 14.8946 11.4804 14.7071 11.2929L10.7071 7.29289C10.3166 6.90237 9.68342 6.90237 9.29289 7.29289Z"}))}const ir=m.forwardRef(En);var lr={exports:{}};function An(t){return t&&typeof t=="object"&&"default"in t?t.default:t}var _e=An(m),In=zr;function xn(t,r){for(var o=Object.getOwnPropertyNames(r),n=0;n<o.length;n++){var e=o[n],a=Object.getOwnPropertyDescriptor(r,e);a&&a.configurable&&t[e]===void 0&&Object.defineProperty(t,e,a)}return t}function ze(){return(ze=Object.assign||function(t){for(var r=1;r<arguments.length;r++){var o=arguments[r];for(var n in o)Object.prototype.hasOwnProperty.call(o,n)&&(t[n]=o[n])}return t}).apply(this,arguments)}function Rn(t,r){t.prototype=Object.create(r.prototype),xn(t.prototype.constructor=t,r)}function Ln(t,r){if(t==null)return{};var o,n,e={},a=Object.keys(t);for(n=0;n<a.length;n++)o=a[n],0<=r.indexOf(o)||(e[o]=t[o]);return e}function ie(t){if(t===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}var $n=function(t,r,o,n,e,a,i,l){if(!t){var u;if(r===void 0)u=new Error("Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.");else{var s=[o,n,e,a,i,l],y=0;(u=new Error(r.replace(/%s/g,function(){return s[y++]}))).name="Invariant Violation"}throw u.framesToPop=1,u}},sr=$n;function ur(t,r,o){if("selectionStart"in t&&"selectionEnd"in t)t.selectionStart=r,t.selectionEnd=o;else{var n=t.createTextRange();n.collapse(!0),n.moveStart("character",r),n.moveEnd("character",o-r),n.select()}}function Bn(t){var r=0,o=0;if("selectionStart"in t&&"selectionEnd"in t)r=t.selectionStart,o=t.selectionEnd;else{var n=document.selection.createRange();n.parentElement()===t&&(r=-n.moveStart("character",-t.value.length),o=-n.moveEnd("character",-t.value.length))}return{start:r,end:o,length:o-r}}var Tn={9:"[0-9]",a:"[A-Za-z]","*":"[A-Za-z0-9]"},Fn="_";function cr(t,r,o){var n="",e="",a=null,i=[];if(r===void 0&&(r=Fn),o==null&&(o=Tn),!t||typeof t!="string")return{maskChar:r,formatChars:o,mask:null,prefix:null,lastEditablePosition:null,permanents:[]};var l=!1;return t.split("").forEach(function(u){l=!l&&u==="\\"||(l||!o[u]?(i.push(n.length),n.length===i.length-1&&(e+=u)):a=n.length+1,n+=u,!1)}),{maskChar:r,formatChars:o,prefix:e,mask:n,lastEditablePosition:a,permanents:i}}function K(t,r){return t.permanents.indexOf(r)!==-1}function Oe(t,r,o){var n=t.mask,e=t.formatChars;if(!o)return!1;if(K(t,r))return n[r]===o;var a=e[n[r]];return new RegExp(a).test(o)}function pr(t,r){return r.split("").every(function(o,n){return K(t,n)||!Oe(t,n,o)})}function fe(t,r){var o=t.maskChar,n=t.prefix;if(!o){for(;r.length>n.length&&K(t,r.length-1);)r=r.slice(0,r.length-1);return r.length}for(var e=n.length,a=r.length;a>=n.length;a--){var i=r[a];if(!K(t,a)&&Oe(t,a,i)){e=a+1;break}}return e}function dr(t,r){return fe(t,r)===t.mask.length}function te(t,r){var o=t.maskChar,n=t.mask,e=t.prefix;if(!o){for((r=Ue(t,"",r,0)).length<e.length&&(r=e);r.length<n.length&&K(t,r.length);)r+=n[r.length];return r}if(r)return Ue(t,te(t,""),r,0);for(var a=0;a<n.length;a++)K(t,a)?r+=n[a]:r+=o;return r}function Nn(t,r,o,n){var e=o+n,a=t.maskChar,i=t.mask,l=t.prefix,u=r.split("");if(a)return u.map(function(y,p){return p<o||e<=p?y:K(t,p)?i[p]:a}).join("");for(var s=e;s<u.length;s++)K(t,s)&&(u[s]="");return o=Math.max(l.length,o),u.splice(o,e-o),r=u.join(""),te(t,r)}function Ue(t,r,o,n){var e=t.mask,a=t.maskChar,i=t.prefix,l=o.split(""),u=dr(t,r);return!a&&n>r.length&&(r+=e.slice(r.length,n)),l.every(function(s){for(;f=s,K(t,d=n)&&f!==e[d];){if(n>=r.length&&(r+=e[n]),y=s,p=n,a&&K(t,p)&&y===a)return!0;if(++n>=e.length)return!1}var y,p,d,f;return!Oe(t,n,s)&&s!==a||(n<r.length?r=a||u||n<i.length?r.slice(0,n)+s+r.slice(n+1):(r=r.slice(0,n)+s+r.slice(n),te(t,r)):a||(r+=s),++n<e.length)}),r}function Vn(t,r,o,n){var e=t.mask,a=t.maskChar,i=o.split(""),l=n;return i.every(function(u){for(;y=u,K(t,s=n)&&y!==e[s];)if(++n>=e.length)return!1;var s,y;return(Oe(t,n,u)||u===a)&&n++,n<e.length}),n-l}function Yn(t,r){for(var o=r;0<=o;--o)if(!K(t,o))return o;return null}function he(t,r){for(var o=t.mask,n=r;n<o.length;++n)if(!K(t,n))return n;return null}function qe(t){return t||t===0?t+"":""}function Wn(t,r,o,n,e){var a=t.mask,i=t.prefix,l=t.lastEditablePosition,u=r,s="",y=0,p=0,d=Math.min(e.start,o.start);return o.end>e.start?p=(y=Vn(t,n,s=u.slice(e.start,o.end),d))?e.length:0:u.length<n.length&&(p=n.length-u.length),u=n,p&&(p===1&&!e.length&&(d=e.start===o.start?he(t,o.start):Yn(t,o.start)),u=Nn(t,u,d,p)),u=Ue(t,u,s,d),(d+=y)>=a.length?d=a.length:d<i.length&&!y?d=i.length:d>=i.length&&d<l&&y&&(d=he(t,d)),s||(s=null),{value:u=te(t,u),enteredString:s,selection:{start:d,end:d}}}function _n(){var t=new RegExp("windows","i"),r=new RegExp("phone","i"),o=navigator.userAgent;return t.test(o)&&r.test(o)}function q(t){return typeof t=="function"}function zn(){return window.requestAnimationFrame||window.webkitRequestAnimationFrame||window.mozRequestAnimationFrame}function fr(){return window.cancelAnimationFrame||window.webkitCancelRequestAnimationFrame||window.webkitCancelAnimationFrame||window.mozCancelAnimationFrame}function hr(t){return(fr()?zn():function(){return setTimeout(t,1e3/60)})(t)}function Ke(t){(fr()||clearTimeout)(t)}var Un=function(t){function r(n){var e=t.call(this,n)||this;e.focused=!1,e.mounted=!1,e.previousSelection=null,e.selectionDeferId=null,e.saveSelectionLoopDeferId=null,e.saveSelectionLoop=function(){e.previousSelection=e.getSelection(),e.saveSelectionLoopDeferId=hr(e.saveSelectionLoop)},e.runSaveSelectionLoop=function(){e.saveSelectionLoopDeferId===null&&e.saveSelectionLoop()},e.stopSaveSelectionLoop=function(){e.saveSelectionLoopDeferId!==null&&(Ke(e.saveSelectionLoopDeferId),e.saveSelectionLoopDeferId=null,e.previousSelection=null)},e.getInputDOMNode=function(){if(!e.mounted)return null;var c=In.findDOMNode(ie(ie(e))),h=typeof window<"u"&&c instanceof window.Element;if(c&&!h)return null;if(c.nodeName!=="INPUT"&&(c=c.querySelector("input")),!c)throw new Error("react-input-mask: inputComponent doesn't contain input node");return c},e.getInputValue=function(){var c=e.getInputDOMNode();return c?c.value:null},e.setInputValue=function(c){var h=e.getInputDOMNode();h&&(e.value=c,h.value=c)},e.setCursorToEnd=function(){var c=fe(e.maskOptions,e.value),h=he(e.maskOptions,c);h!==null&&e.setCursorPosition(h)},e.setSelection=function(c,h,g){g===void 0&&(g={});var b=e.getInputDOMNode(),v=e.isFocused();b&&v&&(g.deferred||ur(b,c,h),e.selectionDeferId!==null&&Ke(e.selectionDeferId),e.selectionDeferId=hr(function(){e.selectionDeferId=null,ur(b,c,h)}),e.previousSelection={start:c,end:h,length:Math.abs(h-c)})},e.getSelection=function(){return Bn(e.getInputDOMNode())},e.getCursorPosition=function(){return e.getSelection().start},e.setCursorPosition=function(c){e.setSelection(c,c)},e.isFocused=function(){return e.focused},e.getBeforeMaskedValueChangeConfig=function(){var c=e.maskOptions,h=c.mask,g=c.maskChar,b=c.permanents,v=c.formatChars;return{mask:h,maskChar:g,permanents:b,alwaysShowMask:!!e.props.alwaysShowMask,formatChars:v}},e.isInputAutofilled=function(c,h,g,b){var v=e.getInputDOMNode();try{if(v.matches(":-webkit-autofill"))return!0}catch{}return!e.focused||b.end<g.length&&h.end===c.length},e.onChange=function(c){var h=ie(ie(e)).beforePasteState,g=ie(ie(e)).previousSelection,b=e.props.beforeMaskedValueChange,v=e.getInputValue(),D=e.value,S=e.getSelection();e.isInputAutofilled(v,S,D,g)&&(D=te(e.maskOptions,""),g={start:0,end:0,length:0}),h&&(g=h.selection,D=h.value,S={start:g.start+v.length,end:g.start+v.length,length:0},v=D.slice(0,g.start)+v+D.slice(g.end),e.beforePasteState=null);var P=Wn(e.maskOptions,v,S,D,g),j=P.enteredString,k=P.selection,H=P.value;if(q(b)){var O=b({value:H,selection:k},{value:D,selection:g},j,e.getBeforeMaskedValueChangeConfig());H=O.value,k=O.selection}e.setInputValue(H),q(e.props.onChange)&&e.props.onChange(c),e.isWindowsPhoneBrowser?e.setSelection(k.start,k.end,{deferred:!0}):e.setSelection(k.start,k.end)},e.onFocus=function(c){var h=e.props.beforeMaskedValueChange,g=e.maskOptions,b=g.mask,v=g.prefix;if(e.focused=!0,e.mounted=!0,b){if(e.value)fe(e.maskOptions,e.value)<e.maskOptions.mask.length&&e.setCursorToEnd();else{var D=te(e.maskOptions,v),S=te(e.maskOptions,D),P=fe(e.maskOptions,S),j=he(e.maskOptions,P),k={start:j,end:j};if(q(h)){var H=h({value:S,selection:k},{value:e.value,selection:null},null,e.getBeforeMaskedValueChangeConfig());S=H.value,k=H.selection}var O=S!==e.getInputValue();O&&e.setInputValue(S),O&&q(e.props.onChange)&&e.props.onChange(c),e.setSelection(k.start,k.end)}e.runSaveSelectionLoop()}q(e.props.onFocus)&&e.props.onFocus(c)},e.onBlur=function(c){var h=e.props.beforeMaskedValueChange,g=e.maskOptions.mask;if(e.stopSaveSelectionLoop(),e.focused=!1,g&&!e.props.alwaysShowMask&&pr(e.maskOptions,e.value)){var b="";q(h)&&(b=h({value:b,selection:null},{value:e.value,selection:e.previousSelection},null,e.getBeforeMaskedValueChangeConfig()).value);var v=b!==e.getInputValue();v&&e.setInputValue(b),v&&q(e.props.onChange)&&e.props.onChange(c)}q(e.props.onBlur)&&e.props.onBlur(c)},e.onMouseDown=function(c){if(!e.focused&&document.addEventListener){e.mouseDownX=c.clientX,e.mouseDownY=c.clientY,e.mouseDownTime=new Date().getTime();var h=function g(b){if(document.removeEventListener("mouseup",g),e.focused){var v=Math.abs(b.clientX-e.mouseDownX),D=Math.abs(b.clientY-e.mouseDownY),S=Math.max(v,D),P=new Date().getTime()-e.mouseDownTime;(S<=10&&P<=200||S<=5&&P<=300)&&e.setCursorToEnd()}};document.addEventListener("mouseup",h)}q(e.props.onMouseDown)&&e.props.onMouseDown(c)},e.onPaste=function(c){q(e.props.onPaste)&&e.props.onPaste(c),c.defaultPrevented||(e.beforePasteState={value:e.getInputValue(),selection:e.getSelection()},e.setInputValue(""))},e.handleRef=function(c){e.props.children==null&&q(e.props.inputRef)&&e.props.inputRef(c)};var a=n.mask,i=n.maskChar,l=n.formatChars,u=n.alwaysShowMask,s=n.beforeMaskedValueChange,y=n.defaultValue,p=n.value;e.maskOptions=cr(a,i,l),y==null&&(y=""),p==null&&(p=y);var d=qe(p);if(e.maskOptions.mask&&(u||d)&&(d=te(e.maskOptions,d),q(s))){var f=n.value;n.value==null&&(f=y),d=s({value:d,selection:null},{value:f=qe(f),selection:null},null,e.getBeforeMaskedValueChangeConfig()).value}return e.value=d,e}Rn(r,t);var o=r.prototype;return o.componentDidMount=function(){this.mounted=!0,this.getInputDOMNode()&&(this.isWindowsPhoneBrowser=_n(),this.maskOptions.mask&&this.getInputValue()!==this.value&&this.setInputValue(this.value))},o.componentDidUpdate=function(){var n=this.previousSelection,e=this.props,a=e.beforeMaskedValueChange,i=e.alwaysShowMask,l=e.mask,u=e.maskChar,s=e.formatChars,y=this.maskOptions,p=i||this.isFocused(),d=this.props.value!=null,f=d?qe(this.props.value):this.value,c=n?n.start:null;if(this.maskOptions=cr(l,u,s),this.maskOptions.mask){!y.mask&&this.isFocused()&&this.runSaveSelectionLoop();var h=this.maskOptions.mask&&this.maskOptions.mask!==y.mask;if(y.mask||d||(f=this.getInputValue()),(h||this.maskOptions.mask&&(f||p))&&(f=te(this.maskOptions,f)),h){var g=fe(this.maskOptions,f);(c===null||g<c)&&(c=dr(this.maskOptions,f)?g:he(this.maskOptions,g))}!this.maskOptions.mask||!pr(this.maskOptions,f)||p||d&&this.props.value||(f="");var b={start:c,end:c};if(q(a)){var v=a({value:f,selection:b},{value:this.value,selection:this.previousSelection},null,this.getBeforeMaskedValueChangeConfig());f=v.value,b=v.selection}this.value=f;var D=this.getInputValue()!==this.value;D?(this.setInputValue(this.value),this.forceUpdate()):h&&this.forceUpdate();var S=!1;b.start!=null&&b.end!=null&&(S=!n||n.start!==b.start||n.end!==b.end),(S||D)&&this.setSelection(b.start,b.end)}else y.mask&&(this.stopSaveSelectionLoop(),this.forceUpdate())},o.componentWillUnmount=function(){this.mounted=!1,this.selectionDeferId!==null&&Ke(this.selectionDeferId),this.stopSaveSelectionLoop()},o.render=function(){var n,e=this.props,a=(e.mask,e.alwaysShowMask,e.maskChar,e.formatChars,e.inputRef,e.beforeMaskedValueChange,e.children),i=Ln(e,["mask","alwaysShowMask","maskChar","formatChars","inputRef","beforeMaskedValueChange","children"]);if(a){q(a)||sr(!1);var l=["onChange","onPaste","onMouseDown","onFocus","onBlur","value","disabled","readOnly"],u=ze({},i);l.forEach(function(y){return delete u[y]}),n=a(u),l.filter(function(y){return n.props[y]!=null&&n.props[y]!==i[y]}).length&&sr(!1)}else n=_e.createElement("input",ze({ref:this.handleRef},i));var s={onFocus:this.onFocus,onBlur:this.onBlur};return this.maskOptions.mask&&(i.disabled||i.readOnly||(s.onChange=this.onChange,s.onPaste=this.onPaste,s.onMouseDown=this.onMouseDown),i.value!=null&&(s.value=this.value)),n=_e.cloneElement(n,s)},r}(_e.Component),qn=Un;lr.exports=qn;var Kn=lr.exports;const Xn=Ur(Kn);var Qn=["startEnhancer","endEnhancer","error","positive","onChange","onFocus","onBlur","value","disabled","readOnly"],Zn=["Input"],Gn=["mask","maskChar","overrides"];function yr(t,r){var o=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);r&&(n=n.filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable})),o.push.apply(o,n)}return o}function Xe(t){for(var r=1;r<arguments.length;r++){var o=arguments[r]!=null?arguments[r]:{};r%2?yr(Object(o),!0).forEach(function(n){Jn(t,n,o[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(o)):yr(Object(o)).forEach(function(n){Object.defineProperty(t,n,Object.getOwnPropertyDescriptor(o,n))})}return t}function Jn(t,r,o){return r in t?Object.defineProperty(t,r,{value:o,enumerable:!0,configurable:!0,writable:!0}):t[r]=o,t}function we(t){"@babel/helpers - typeof";return we=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(r){return typeof r}:function(r){return r&&typeof Symbol=="function"&&r.constructor===Symbol&&r!==Symbol.prototype?"symbol":typeof r},we(t)}function ye(){return ye=Object.assign?Object.assign.bind():function(t){for(var r=1;r<arguments.length;r++){var o=arguments[r];for(var n in o)Object.prototype.hasOwnProperty.call(o,n)&&(t[n]=o[n])}return t},ye.apply(this,arguments)}function Qe(t,r){if(t==null)return{};var o=eo(t,r),n,e;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(t);for(e=0;e<a.length;e++)n=a[e],!(r.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(t,n)&&(o[n]=t[n])}return o}function eo(t,r){if(t==null)return{};var o={},n=Object.keys(t),e,a;for(a=0;a<n.length;a++)e=n[a],!(r.indexOf(e)>=0)&&(o[e]=t[e]);return o}var gr=m.forwardRef(function(t,r){t.startEnhancer,t.endEnhancer,t.error,t.positive;var o=t.onChange,n=t.onFocus,e=t.onBlur,a=t.value,i=t.disabled,l=t.readOnly,u=Qe(t,Qn);return m.createElement(Xn,ye({onChange:o,onFocus:n,onBlur:e,value:a,disabled:i,readOnly:l},u),function(s){return m.createElement(dn,ye({ref:r,onChange:o,onFocus:n,onBlur:e,value:a,disabled:i,readOnly:l},s))})});gr.displayName="MaskOverride";function mr(t){var r=t.mask,o=t.maskChar,n=t.overrides;n=n===void 0?{}:n;var e=n.Input,a=e===void 0?{}:e,i=Qe(n,Zn),l=Qe(t,Gn),u=gr,s={},y={};typeof a=="function"?u=a:we(a)==="object"&&(u=a.component||u,s=a.props||{},y=a.style||{}),we(s)==="object"&&(s=Xe(Xe({},s),{},{mask:s.mask||r,maskChar:s.maskChar||o}));var p=Xe({Input:{component:u,props:s,style:y}},i);return m.createElement(pn,ye({},l,{overrides:p}))}mr.defaultProps={maskChar:" "};var Ze=Object.freeze({horizontal:"horizontal",vertical:"vertical"}),br=[0,1,2,3,4,5,6],to=[0,1,2,3,4,5,6,7,8,9,10,11],T={high:"high",default:"default"},re={startDate:"startDate",endDate:"endDate"},ro={default:"default",locked:"locked"};function vr(t,r){var o=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);r&&(n=n.filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable})),o.push.apply(o,n)}return o}function le(t){for(var r=1;r<arguments.length;r++){var o=arguments[r]!=null?arguments[r]:{};r%2?vr(Object(o),!0).forEach(function(n){no(t,n,o[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(o)):vr(Object(o)).forEach(function(n){Object.defineProperty(t,n,Object.getOwnPropertyDescriptor(o,n))})}return t}function no(t,r,o){return r in t?Object.defineProperty(t,r,{value:o,enumerable:!0,configurable:!0,writable:!0}):t[r]=o,t}var Ge=x("label",function(t){var r=t.$disabled,o=t.$theme,n=o.colors,e=o.typography;return le(le({},e.font250),{},{width:"100%",color:r?n.contentSecondary:n.contentPrimary,display:"block",paddingTop:0,paddingRight:0,paddingBottom:0,paddingLeft:0})});Ge.displayName="Label",Ge.displayName="Label";var Je=x("span",function(t){var r=t.$theme.sizing;return{display:"flex",width:"100%",marginTop:r.scale300,marginRight:0,marginBottom:r.scale300,marginLeft:0}});Je.displayName="LabelContainer",Je.displayName="LabelContainer";var et=x("span",function(t){var r=t.$disabled,o=t.$counterError,n=t.$theme,e=n.colors,a=n.typography;return le(le({},a.font100),{},{flex:0,width:"100%",color:o?e.negative400:r?e.contentSecondary:e.contentPrimary})});et.displayName="LabelEndEnhancer",et.displayName="LabelEndEnhancer";var tt=x("div",function(t){var r=t.$error,o=t.$positive,n=t.$theme,e=n.colors,a=n.sizing,i=n.typography,l=e.contentSecondary;return r?l=e.negative400:o&&(l=e.positive400),le(le({},i.font100),{},{color:l,paddingTop:0,paddingRight:0,paddingBottom:0,paddingLeft:0,marginTop:a.scale300,marginRight:0,marginBottom:a.scale300,marginLeft:0})});tt.displayName="Caption",tt.displayName="Caption";var rt=x("div",function(t){var r=t.$theme.sizing;return{width:"100%",marginBottom:r.scale600}});rt.displayName="ControlContainer",rt.displayName="ControlContainer";function ne(){return ne=Object.assign?Object.assign.bind():function(t){for(var r=1;r<arguments.length;r++){var o=arguments[r];for(var n in o)Object.prototype.hasOwnProperty.call(o,n)&&(t[n]=o[n])}return t},ne.apply(this,arguments)}function ke(t){"@babel/helpers - typeof";return ke=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(r){return typeof r}:function(r){return r&&typeof Symbol=="function"&&r.constructor===Symbol&&r!==Symbol.prototype?"symbol":typeof r},ke(t)}function oo(t,r){if(!(t instanceof r))throw new TypeError("Cannot call a class as a function")}function ao(t,r){for(var o=0;o<r.length;o++){var n=r[o];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}function io(t,r,o){return ao(t.prototype,r),Object.defineProperty(t,"prototype",{writable:!1}),t}function lo(t,r){if(typeof r!="function"&&r!==null)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(r&&r.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),r&&nt(t,r)}function nt(t,r){return nt=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(o,n){return o.__proto__=n,o},nt(t,r)}function so(t){var r=po();return function(){var o=Ce(t),n;if(r){var e=Ce(this).constructor;n=Reflect.construct(o,arguments,e)}else n=o.apply(this,arguments);return uo(this,n)}}function uo(t,r){if(r&&(ke(r)==="object"||typeof r=="function"))return r;if(r!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return co(t)}function co(t){if(t===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function po(){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 Ce(t){return Ce=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},Ce(t)}function fo(t,r,o){return r in t?Object.defineProperty(t,r,{value:o,enumerable:!0,configurable:!0,writable:!0}):t[r]=o,t}function ho(t,r,o,n){return r&&typeof r!="boolean"?typeof r=="function"?r(n):r:o&&typeof o!="boolean"?typeof o=="function"?o(n):o:t?typeof t=="function"?t(n):t:null}var ot=function(t){lo(o,t);var r=so(o);function o(){return oo(this,o),r.apply(this,arguments)}return io(o,[{key:"render",value:function(){var n=this.props,e=n.overrides,a=e.Label,i=e.LabelEndEnhancer,l=e.LabelContainer,u=e.Caption,s=e.ControlContainer,y=n.label,p=n.caption,d=n.disabled,f=n.error,c=n.positive,h=n.htmlFor,g=n.children,b=n.counter,v=m.Children.only(g).props,D={$disabled:!!d,$error:!!f,$positive:!!c},S=ue(a)||Ge,P=ue(i)||et,j=ue(l)||Je,k=ue(u)||tt,H=ue(s)||rt,O=ho(p,f,c,D),M=this.props.labelEndEnhancer;if(b){var C=null,w=null,I=null;ke(b)==="object"&&(w=b.length,C=b.maxLength,I=b.error),C=C||v.maxLength,w==null&&typeof v.value=="string"&&(w=v.value.length),w==null&&(w=0),D.$length=w,C==null?M||(M="".concat(w)):(D.$maxLength=w,M||(M="".concat(w,"/").concat(C)),w>C&&I==null&&(I=!0)),I&&(D.$error=!0,D.$counterError=!0)}return m.createElement(m.Fragment,null,y&&m.createElement(j,ne({},D,ce(l)),m.createElement(S,ne({"data-baseweb":"form-control-label",htmlFor:h||v.id},D,ce(a)),typeof y=="function"?y(D):y),!!M&&m.createElement(P,ne({},D,ce(i)),typeof M=="function"?M(D):M)),m.createElement(qr,null,function(G){return m.createElement(H,ne({"data-baseweb":"form-control-container"},D,ce(s)),m.Children.map(g,function(z,Se){if(z){var A=z.key||String(Se);return m.cloneElement(z,{key:A,"aria-errormessage":f?G:null,"aria-describedby":p||c?G:null,disabled:v.disabled||d,error:typeof v.error<"u"?v.error:D.$error,positive:typeof v.positive<"u"?v.positive:D.$positive})}}),(!!p||!!f||c)&&m.createElement(k,ne({"data-baseweb":"form-control-caption",id:G},D,ce(u)),O))}))}}]),o}(m.Component);fo(ot,"defaultProps",{overrides:{},label:null,caption:null,disabled:!1,counter:!1});function Dr(t,r){var o=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);r&&(n=n.filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable})),o.push.apply(o,n)}return o}function Sr(t){for(var r=1;r<arguments.length;r++){var o=arguments[r]!=null?arguments[r]:{};r%2?Dr(Object(o),!0).forEach(function(n){yo(t,n,o[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(o)):Dr(Object(o)).forEach(function(n){Object.defineProperty(t,n,Object.getOwnPropertyDescriptor(o,n))})}return t}function yo(t,r,o){return r in t?Object.defineProperty(t,r,{value:o,enumerable:!0,configurable:!0,writable:!0}):t[r]=o,t}var go=function(t){return to.map(function(r){return{id:r.toString(),label:t(r)}})},mo=function(t,r){return t.map(function(o){return r.includes(Number(o.id))?o:Sr(Sr({},o),{},{disabled:!0})})},bo=function(t){var r=t.filterMonthsList,o=t.formatMonthLabel,n=go(o);return r&&(n=mo(n,r)),n};function vo(t){var r=t.$range,o=r===void 0?!1:r,n=t.$disabled,e=n===void 0?!1:n,a=t.$isHighlighted,i=a===void 0?!1:a,l=t.$isHovered,u=l===void 0?!1:l,s=t.$selected,y=s===void 0?!1:s,p=t.$hasRangeSelected,d=p===void 0?!1:p,f=t.$startDate,c=f===void 0?!1:f,h=t.$endDate,g=h===void 0?!1:h,b=t.$pseudoSelected,v=b===void 0?!1:b,D=t.$hasRangeHighlighted,S=D===void 0?!1:D,P=t.$pseudoHighlighted,j=P===void 0?!1:P,k=t.$hasRangeOnRight,H=k===void 0?!1:k,O=t.$startOfMonth,M=O===void 0?!1:O,C=t.$endOfMonth,w=C===void 0?!1:C,I=t.$outsideMonth,G=I===void 0?!1:I;return"".concat(+o).concat(+e).concat(+(i||u)).concat(+y).concat(+d).concat(+c).concat(+g).concat(+v).concat(+S).concat(+j).concat(+(S&&!j&&H)).concat(+(S&&!j&&!H)).concat(+M).concat(+w).concat(+G)}function Do(t,r){return ko(t)||wo(t,r)||Oo(t,r)||So()}function So(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
4
4
  In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Oo(t,r){if(t){if(typeof t=="string")return Or(t,r);var o=Object.prototype.toString.call(t).slice(8,-1);if(o==="Object"&&t.constructor&&(o=t.constructor.name),o==="Map"||o==="Set")return Array.from(t);if(o==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(o))return Or(t,r)}}function Or(t,r){(r==null||r>t.length)&&(r=t.length);for(var o=0,n=new Array(r);o<r;o++)n[o]=t[o];return n}function wo(t,r){var o=t==null?null:typeof Symbol<"u"&&t[Symbol.iterator]||t["@@iterator"];if(o!=null){var n=[],e=!0,a=!1,i,l;try{for(o=o.call(t);!(e=(i=o.next()).done)&&(n.push(i.value),!(r&&n.length===r));e=!0);}catch(u){a=!0,l=u}finally{try{!e&&o.return!=null&&o.return()}finally{if(a)throw l}}return n}}function ko(t){if(Array.isArray(t))return t}function wr(t,r){var o=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);r&&(n=n.filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable})),o.push.apply(o,n)}return o}function B(t){for(var r=1;r<arguments.length;r++){var o=arguments[r]!=null?arguments[r]:{};r%2?wr(Object(o),!0).forEach(function(n){ge(t,n,o[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(o)):wr(Object(o)).forEach(function(n){Object.defineProperty(t,n,Object.getOwnPropertyDescriptor(o,n))})}return t}function ge(t,r,o){return r in t?Object.defineProperty(t,r,{value:o,enumerable:!0,configurable:!0,writable:!0}):t[r]=o,t}var at=x("div",function(t){var r=t.$separateRangeInputs;return B({width:"100%"},r?{display:"flex",justifyContent:"center"}:{})});at.displayName="StyledInputWrapper",at.displayName="StyledInputWrapper";var it=x("div",function(t){var r=t.$theme;return B(B({},r.typography.LabelMedium),{},{marginBottom:r.sizing.scale300})});it.displayName="StyledInputLabel",it.displayName="StyledInputLabel";var lt=x("div",function(t){var r=t.$theme;return{width:"100%",marginRight:r.sizing.scale300}});lt.displayName="StyledStartDate",lt.displayName="StyledStartDate";var st=x("div",function(t){return t.$theme,{width:"100%"}});st.displayName="StyledEndDate",st.displayName="StyledEndDate";var ut=x("div",function(t){var r=t.$theme,o=r.typography,n=r.colors,e=r.borders;return B(B({},o.font200),{},{color:n.calendarForeground,backgroundColor:n.calendarBackground,textAlign:"center",borderTopLeftRadius:e.surfaceBorderRadius,borderTopRightRadius:e.surfaceBorderRadius,borderBottomRightRadius:e.surfaceBorderRadius,borderBottomLeftRadius:e.surfaceBorderRadius,display:"inline-block"})});ut.displayName="StyledRoot",ut.displayName="StyledRoot";var ct=x("div",function(t){var r=t.$orientation;return{display:"flex",flexDirection:r===Ze.vertical?"column":"row"}});ct.displayName="StyledMonthContainer",ct.displayName="StyledMonthContainer";var pt=x("div",function(t){var r=t.$theme.sizing,o=t.$density;return{paddingTop:r.scale300,paddingBottom:o===T.high?r.scale400:r.scale300,paddingLeft:r.scale500,paddingRight:r.scale500}});pt.displayName="StyledCalendarContainer",pt.displayName="StyledCalendarContainer";var Me=x("div",function(t){var r=t.$theme,o=r.direction==="rtl"?"right":"left";return{marginBottom:r.sizing.scale600,paddingLeft:r.sizing.scale600,paddingRight:r.sizing.scale600,textAlign:o}});Me.displayName="StyledSelectorContainer",Me.displayName="StyledSelectorContainer";var dt=x("div",function(t){var r=t.$theme,o=r.typography,n=r.borders,e=r.colors,a=r.sizing,i=t.$density;return B(B({},i===T.high?o.LabelMedium:o.LabelLarge),{},{color:e.calendarHeaderForeground,display:"flex",justifyContent:"space-between",alignItems:"center",paddingTop:a.scale600,paddingBottom:a.scale300,paddingLeft:a.scale600,paddingRight:a.scale600,backgroundColor:e.calendarHeaderBackground,borderTopLeftRadius:n.surfaceBorderRadius,borderTopRightRadius:n.surfaceBorderRadius,borderBottomRightRadius:0,borderBottomLeftRadius:0,minHeight:i===T.high?"calc(".concat(a.scale800," + ").concat(a.scale0,")"):a.scale950})});dt.displayName="StyledCalendarHeader",dt.displayName="StyledCalendarHeader";var ft=x("div",function(t){return{color:t.$theme.colors.calendarHeaderForeground,backgroundColor:t.$theme.colors.calendarHeaderBackground,whiteSpace:"nowrap"}});ft.displayName="StyledMonthHeader",ft.displayName="StyledMonthHeader";var ht=x("button",function(t){var r=t.$theme,o=r.typography,n=r.colors,e=t.$isFocusVisible,a=t.$density;return B(B({},a===T.high?o.LabelMedium:o.LabelLarge),{},{alignItems:"center",backgroundColor:"transparent",borderLeftWidth:0,borderRightWidth:0,borderTopWidth:0,borderBottomWidth:0,color:n.calendarHeaderForeground,cursor:"pointer",display:"flex",outline:"none",":focus":{boxShadow:e?"0 0 0 3px ".concat(n.accent):"none"}})});ht.displayName="StyledMonthYearSelectButton",ht.displayName="StyledMonthYearSelectButton";var yt=x("span",function(t){var r=t.$theme.direction==="rtl"?"marginRight":"marginLeft";return ge({alignItems:"center",display:"flex"},r,t.$theme.sizing.scale500)});yt.displayName="StyledMonthYearSelectIconContainer",yt.displayName="StyledMonthYearSelectIconContainer";function kr(t){var r=t.$theme,o=t.$disabled,n=t.$isFocusVisible;return{boxSizing:"border-box",display:"flex",color:o?r.colors.calendarHeaderForegroundDisabled:r.colors.calendarHeaderForeground,cursor:o?"default":"pointer",backgroundColor:"transparent",borderLeftWidth:0,borderRightWidth:0,borderTopWidth:0,borderBottomWidth:0,paddingTop:"0",paddingBottom:"0",paddingLeft:"0",paddingRight:"0",marginBottom:0,marginTop:0,outline:"none",":focus":o?{}:{boxShadow:n?"0 0 0 3px ".concat(r.colors.accent):"none"}}}var gt=x("button",kr);gt.displayName="StyledPrevButton",gt.displayName="StyledPrevButton";var mt=x("button",kr);mt.displayName="StyledNextButton",mt.displayName="StyledNextButton";var bt=x("div",function(t){return{display:"inline-block"}});bt.displayName="StyledMonth",bt.displayName="StyledMonth";var vt=x("div",function(t){var r=t.$theme.sizing;return{whiteSpace:"nowrap",display:"flex",marginBottom:r.scale0}});vt.displayName="StyledWeek",vt.displayName="StyledWeek";function R(t,r){var o,n=t.substr(0,12)+"1"+t.substr(13),e=t.substr(0,13)+"1"+t.substr(14);return o={},ge(o,t,r),ge(o,n,r),ge(o,e,r),o}function Dt(t,r){var o=r.colors,n={":before":{content:null},":after":{content:null}},e=n,a={color:o.calendarForegroundDisabled,":before":{content:null},":after":{content:null}},i={color:o.calendarForegroundDisabled,":before":{borderTopStyle:"none",borderBottomStyle:"none",borderLeftStyle:"none",borderRightStyle:"none",backgroundColor:"transparent"},":after":{borderTopLeftRadius:"0%",borderTopRightRadius:"0%",borderBottomLeftRadius:"0%",borderBottomRightRadius:"0%",borderTopColor:"transparent",borderBottomColor:"transparent",borderRightColor:"transparent",borderLeftColor:"transparent"}},l={":before":{content:null}},u=1;t&&t[u]==="1"&&(e=a);var s=Object.assign({},R("001000000000000",{color:o.calendarDayForegroundPseudoSelected}),R("000100000000000",{color:o.calendarDayForegroundSelected}),R("001100000000000",{color:o.calendarDayForegroundSelectedHighlighted}),{"010000000000000":{color:o.calendarForegroundDisabled,":after":{content:null}}},{"011000000000000":{color:o.calendarForegroundDisabled,":after":{content:null}}},R("000000000000001",i),R("101000000000000",l),R("101010000000000",l),R("100100000000000",{color:o.calendarDayForegroundSelected}),R("101100000000000",{color:o.calendarDayForegroundSelectedHighlighted,":before":{content:null}}),R("100111100000000",{color:o.calendarDayForegroundSelected,":before":{content:null}}),R("101111100000000",{color:o.calendarDayForegroundSelectedHighlighted,":before":{content:null}}),R("100111000000000",{color:o.calendarDayForegroundSelected}),R("100110100000000",{color:o.calendarDayForegroundSelected,":before":{left:null,right:"50%"}}),R("100100001010000",{color:o.calendarDayForegroundSelected}),R("100100001001000",{color:o.calendarDayForegroundSelected,":before":{left:null,right:"50%"}}),R("101000001010000",{":before":{left:null,right:"50%"}}),{"101000001001000":{}},{"101000001001100":{}},{"101000001001010":{}},R("100010010000000",{color:o.calendarDayForegroundPseudoSelected,":before":{left:"0",width:"100%"},":after":{content:null}}),{"101000001100000":{color:o.calendarDayForegroundPseudoSelected,":before":{left:"0",width:"100%"},":after":{content:null}}},R("100000001100000",{color:o.calendarDayForegroundPseudoSelected,":before":{left:"0",width:"100%"},":after":{content:null}}),R("101111000000000",{color:o.calendarDayForegroundSelectedHighlighted}),R("101110100000000",{color:o.calendarDayForegroundSelectedHighlighted,":before":{left:null,right:"50%"}}),R("101010010000000",{color:o.calendarDayForegroundPseudoSelectedHighlighted,":before":{left:"0",width:"100%"}}),R("100000000000001",i),R("100000001010001",i),R("100000001001001",i),R("100010000000001",i));return s[t]||e}var St=x("div",function(t){var r=t.$disabled,o=t.$isFocusVisible,n=t.$isHighlighted,e=t.$peekNextMonth,a=t.$pseudoSelected,i=t.$range,l=t.$selected,u=t.$outsideMonth,s=t.$outsideMonthWithinRange,y=t.$hasDateLabel,p=t.$density,d=t.$hasLockedBehavior,f=t.$selectedInput,c=t.$value,h=t.$theme,g=h.colors,b=h.typography,v=h.sizing,D=vo(t),S;y?p===T.high?S="60px":S="70px":p===T.high?S="40px":S="48px";var P=Array.isArray(c)?c:[c,null],j=Do(P,2),k=j[0],H=j[1],O=f===re.startDate?H!==null&&typeof H<"u":k!==null&&typeof k<"u",M=i&&!(d&&!O);return B(B(B({},p===T.high?b.ParagraphSmall:b.ParagraphMedium),{},{boxSizing:"border-box",position:"relative",cursor:r||!e&&u?"default":"pointer",color:g.calendarForeground,display:"inline-block",width:p===T.high?"42px":"50px",height:S,lineHeight:p===T.high?v.scale700:v.scale900,textAlign:"center",paddingTop:v.scale300,paddingBottom:v.scale300,paddingLeft:v.scale300,paddingRight:v.scale300,marginTop:0,marginBottom:0,marginLeft:0,marginRight:0,outline:"none",backgroundColor:"transparent",transform:"scale(1)"},Dt(D,t.$theme)),{},{":after":B(B({zIndex:-1,content:'""',boxSizing:"border-box",display:"inline-block",boxShadow:o&&(!u||e)?"0 0 0 3px ".concat(g.accent):"none",backgroundColor:l?g.calendarDayBackgroundSelectedHighlighted:a&&n?g.calendarDayBackgroundPseudoSelectedHighlighted:g.calendarBackground,height:y?"100%":p===T.high?"42px":"50px",width:"100%",position:"absolute",top:y?0:"-1px",left:0,paddingTop:v.scale200,paddingBottom:v.scale200,borderLeftWidth:"2px",borderRightWidth:"2px",borderTopWidth:"2px",borderBottomWidth:"2px",borderLeftStyle:"solid",borderRightStyle:"solid",borderTopStyle:"solid",borderBottomStyle:"solid",borderTopColor:g.borderSelected,borderBottomColor:g.borderSelected,borderRightColor:g.borderSelected,borderLeftColor:g.borderSelected,borderTopLeftRadius:y?v.scale800:"100%",borderTopRightRadius:y?v.scale800:"100%",borderBottomLeftRadius:y?v.scale800:"100%",borderBottomRightRadius:y?v.scale800:"100%"},Dt(D,t.$theme)[":after"]||{}),s?{content:null}:{})},M?{":before":B(B({zIndex:-1,content:'""',boxSizing:"border-box",display:"inline-block",backgroundColor:g.mono300,position:"absolute",height:"100%",width:"50%",top:0,left:"50%",borderTopWidth:"2px",borderBottomWidth:"2px",borderLeftWidth:"0",borderRightWidth:"0",borderTopStyle:"solid",borderBottomStyle:"solid",borderLeftStyle:"solid",borderRightStyle:"solid",borderTopColor:"transparent",borderBottomColor:"transparent",borderLeftColor:"transparent",borderRightColor:"transparent"},Dt(D,t.$theme)[":before"]||{}),s?{backgroundColor:g.mono300,left:"0",width:"100%",content:'""'}:{})}:{})});St.displayName="StyledDay",St.displayName="StyledDay";var Ot=x("div",function(t){var r=t.$theme,o=r.typography,n=r.colors,e=t.$selected;return B(B({},o.ParagraphXSmall),{},{color:e?n.contentInverseTertiary:n.contentTertiary})});Ot.displayName="StyledDayLabel",Ot.displayName="StyledDayLabel";var wt=x("div",function(t){var r=t.$theme,o=r.typography,n=r.colors,e=r.sizing,a=t.$density;return B(B({},o.LabelMedium),{},{color:n.contentTertiary,boxSizing:"border-box",position:"relative",cursor:"default",display:"inline-block",width:a===T.high?"42px":"50px",height:a===T.high?"40px":"48px",textAlign:"center",lineHeight:e.scale900,paddingTop:e.scale300,paddingBottom:e.scale300,paddingLeft:e.scale200,paddingRight:e.scale200,marginTop:0,marginBottom:0,marginLeft:0,marginRight:0,backgroundColor:"transparent"})});wt.displayName="StyledWeekdayHeader",wt.displayName="StyledWeekdayHeader";function kt(t){"@babel/helpers - typeof";return kt=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(r){return typeof r}:function(r){return r&&typeof Symbol=="function"&&r.constructor===Symbol&&r!==Symbol.prototype?"symbol":typeof r},kt(t)}function U(){return U=Object.assign?Object.assign.bind():function(t){for(var r=1;r<arguments.length;r++){var o=arguments[r];for(var n in o)Object.prototype.hasOwnProperty.call(o,n)&&(t[n]=o[n])}return t},U.apply(this,arguments)}function Q(t,r){return Ho(t)||jo(t,r)||Mo(t,r)||Co()}function Co(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
@@ -1,3 +1,3 @@
1
- import{bs as Pe,c0 as Ce,c1 as Ie,c2 as we,c3 as Ee,c4 as Te,bF as De,b2 as xe,bk as Re,c5 as _e,bG as $e,aA as ke,r as P,c6 as Be,c as Me,B as R,M as ze,br as Ne,j as S,a_ as Ae,a$ as Le,bc as Fe,b0 as We,aK as Ze}from"./index-z2lXC7XI.js";import{a as Ve}from"./useBasicWidgetState-CDQNZkN8.js";import{T as He}from"./timepicker-DWOLsPBU.js";import"./FormClearHelper-DliGOSkq.js";import"./getPrototypeOf-jxUzvEiF.js";import"./createSuper-BCtrEkDw.js";var Ue=Pe.Consumer;const Je=Object.freeze(Object.defineProperty({__proto__:null,ThemeConsumer:Ue,ThemeProvider:Ce,createThemedStyled:Ie,createThemedUseStyletron:we,createThemedWithStyle:Ee,expandBorderStyles:Te,hexToRgb:De,styled:xe,useStyletron:Re,withStyle:_e,withWrapper:$e},Symbol.toStringTag,{value:"Module"}));var d={};const _=ke(Je);var g={};Object.defineProperty(g,"__esModule",{value:!0}),g.STATE_CHANGE_TYPE=g.SIZE=g.ENHANCER_POSITION=g.CUSTOM_INPUT_TYPE=g.ADJOINED=void 0;var Ge={change:"change"};g.STATE_CHANGE_TYPE=Ge;var Ye={textarea:"textarea"};g.CUSTOM_INPUT_TYPE=Ye;var qe={none:"none",left:"left",right:"right",both:"both"};g.ADJOINED=qe;var Ke={mini:"mini",default:"default",compact:"compact",large:"large"};g.SIZE=Ke;var Xe={start:"start",end:"end"};g.ENHANCER_POSITION=Xe;var E={},y={},$={};Object.defineProperty($,"__esModule",{value:!0}),$.default=te;function k(e){"@babel/helpers - typeof";return k=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},k(e)}function te(e){e=e||{};for(var t=arguments.length<=1?0:arguments.length-1,r,o,n=0;n<t;n++){r=(n+1<1||arguments.length<=n+1?void 0:arguments[n+1])||{};for(var i in r)k(r[i])!==void 0&&(o=r[i],Qe(o)?e[i]=te(e[i]||Array.isArray(o)&&[]||{},o):e[i]=o)}return e}function Qe(e){return Array.isArray(e)||{}.toString.call(e)=="[object Object]"}Object.defineProperty(y,"__esModule",{value:!0}),y.getOverride=ae,y.getOverrideProps=z,y.getOverrides=le,y.mergeConfigurationOverrides=A,y.mergeOverride=ue,y.mergeOverrides=ot,y.toObjectOverride=N,y.useOverrides=nt;var B=tt(P),re=Be,oe=et($);function et(e){return e.__esModule?e:{default:e}}function ne(e){if(typeof WeakMap!="function")return null;var t=new WeakMap,r=new WeakMap;return(ne=function(o){return o?r:t})(e)}function tt(e,t){if(e&&e.__esModule)return e;if(e===null||v(e)!=="object"&&typeof e!="function")return{default:e};var r=ne(t);if(r&&r.has(e))return r.get(e);var o={},n=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var i in e)if(i!=="default"&&Object.prototype.hasOwnProperty.call(e,i)){var a=n?Object.getOwnPropertyDescriptor(e,i):null;a&&(a.get||a.set)?Object.defineProperty(o,i,a):o[i]=e[i]}return o.default=e,r&&r.set(e,o),o}function M(){return M=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var o in r)Object.prototype.hasOwnProperty.call(r,o)&&(e[o]=r[o])}return e},M.apply(this,arguments)}function ie(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter(function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable})),r.push.apply(r,o)}return r}function C(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?ie(Object(r),!0).forEach(function(o){rt(e,o,r[o])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):ie(Object(r)).forEach(function(o){Object.defineProperty(e,o,Object.getOwnPropertyDescriptor(r,o))})}return e}function rt(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function v(e){"@babel/helpers - typeof";return v=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},v(e)}function ae(e){return(0,re.isValidElementType)(e)?e:e&&v(e)==="object"?e.component:e}function z(e){return e&&v(e)==="object"?v(e.props)==="object"?C(C({},e.props),{},{$style:e.style}):{$style:e.style}:{}}function N(e){return(0,re.isValidElementType)(e)?{component:e}:e||{}}function le(e,t){var r=ae(e)||t;if(e&&v(e)==="object"&&typeof e.props=="function"){var o=B.forwardRef(function(i,a){var c=e.props(i),s=z(C(C({},e),{},{props:c}));return B.createElement(r,M({ref:a},s))});return o.displayName=r.displayName,[o,{}]}var n=z(e);return[r,n]}function ot(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r=Object.assign({},e,t),o=Object.keys(r);return o.reduce(function(n,i){return n[i]=ue(N(e[i]),N(t[i])),n},{})}function ue(e,t){var r=C(C({},e),t);return e.props&&t.props&&(r.props=A(e.props,t.props)),e.style&&t.style&&(r.style=A(e.style,t.style)),r}function A(e,t){return v(e)==="object"&&v(t)==="object"?(0,oe.default)({},e,t):function(){return(0,oe.default)({},typeof e=="function"?e.apply(void 0,arguments):e,typeof t=="function"?t.apply(void 0,arguments):t)}}function nt(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return B.useMemo(function(){return Object.keys(e).reduce(function(r,o){return r[o]=le(t[o],e[o]),r},{})},[t])}var T={},I={};Object.defineProperty(I,"__esModule",{value:!0}),I.Svg=void 0,I.getSvgStyles=se;var it=_;function se(e){var t=e.$theme,r=e.$size,o=e.$color,n=t.sizing.scale600;r&&(t.sizing[r]?n=t.sizing[r]:typeof r=="number"?n="".concat(r,"px"):n=r);var i="currentColor";return o&&(t.colors[o]?i=t.colors[o]:i=o),{display:"inline-block",fill:i,color:i,height:n,width:n}}var L=(0,it.styled)("svg",se);I.Svg=L,L.displayName="Svg",L.displayName="Svg";var F={};Object.defineProperty(F,"__esModule",{value:!0}),F.default=at;function at(e){var t={};for(var r in e)r[0]!=="$"&&(t[r]=e[r]);return t}function W(e){"@babel/helpers - typeof";return W=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},W(e)}Object.defineProperty(T,"__esModule",{value:!0}),T.default=void 0;var Z=dt(P),lt=y,ut=I,ce=ct(F),st=["children","title","size","color","overrides"];function ct(e){return e.__esModule?e:{default:e}}function de(e){if(typeof WeakMap!="function")return null;var t=new WeakMap,r=new WeakMap;return(de=function(o){return o?r:t})(e)}function dt(e,t){if(e&&e.__esModule)return e;if(e===null||W(e)!=="object"&&typeof e!="function")return{default:e};var r=de(t);if(r&&r.has(e))return r.get(e);var o={},n=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var i in e)if(i!=="default"&&Object.prototype.hasOwnProperty.call(e,i)){var a=n?Object.getOwnPropertyDescriptor(e,i):null;a&&(a.get||a.set)?Object.defineProperty(o,i,a):o[i]=e[i]}return o.default=e,r&&r.set(e,o),o}function V(){return V=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var o in r)Object.prototype.hasOwnProperty.call(r,o)&&(e[o]=r[o])}return e},V.apply(this,arguments)}function pe(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter(function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable})),r.push.apply(r,o)}return r}function D(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?pe(Object(r),!0).forEach(function(o){pt(e,o,r[o])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):pe(Object(r)).forEach(function(o){Object.defineProperty(e,o,Object.getOwnPropertyDescriptor(r,o))})}return e}function pt(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function ft(e,t){return mt(e)||yt(e,t)||bt(e,t)||gt()}function gt(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
1
+ import{bs as Pe,c0 as Ce,c1 as Ie,c2 as we,c3 as Ee,c4 as Te,bF as De,b2 as xe,bk as Re,c5 as _e,bG as $e,aA as ke,r as P,c6 as Be,c as Me,B as R,M as ze,br as Ne,j as S,a_ as Ae,a$ as Le,bc as Fe,b0 as We,aK as Ze}from"./index-BzTZZCvL.js";import{a as Ve}from"./useBasicWidgetState-Cqy4gnzY.js";import{T as He}from"./timepicker-D5Qmkk9Q.js";import"./FormClearHelper-DmeZ2QuQ.js";import"./getPrototypeOf-CFHg57KG.js";import"./createSuper-CvaFdVoD.js";var Ue=Pe.Consumer;const Je=Object.freeze(Object.defineProperty({__proto__:null,ThemeConsumer:Ue,ThemeProvider:Ce,createThemedStyled:Ie,createThemedUseStyletron:we,createThemedWithStyle:Ee,expandBorderStyles:Te,hexToRgb:De,styled:xe,useStyletron:Re,withStyle:_e,withWrapper:$e},Symbol.toStringTag,{value:"Module"}));var d={};const _=ke(Je);var g={};Object.defineProperty(g,"__esModule",{value:!0}),g.STATE_CHANGE_TYPE=g.SIZE=g.ENHANCER_POSITION=g.CUSTOM_INPUT_TYPE=g.ADJOINED=void 0;var Ge={change:"change"};g.STATE_CHANGE_TYPE=Ge;var Ye={textarea:"textarea"};g.CUSTOM_INPUT_TYPE=Ye;var qe={none:"none",left:"left",right:"right",both:"both"};g.ADJOINED=qe;var Ke={mini:"mini",default:"default",compact:"compact",large:"large"};g.SIZE=Ke;var Xe={start:"start",end:"end"};g.ENHANCER_POSITION=Xe;var E={},y={},$={};Object.defineProperty($,"__esModule",{value:!0}),$.default=te;function k(e){"@babel/helpers - typeof";return k=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},k(e)}function te(e){e=e||{};for(var t=arguments.length<=1?0:arguments.length-1,r,o,n=0;n<t;n++){r=(n+1<1||arguments.length<=n+1?void 0:arguments[n+1])||{};for(var i in r)k(r[i])!==void 0&&(o=r[i],Qe(o)?e[i]=te(e[i]||Array.isArray(o)&&[]||{},o):e[i]=o)}return e}function Qe(e){return Array.isArray(e)||{}.toString.call(e)=="[object Object]"}Object.defineProperty(y,"__esModule",{value:!0}),y.getOverride=ae,y.getOverrideProps=z,y.getOverrides=le,y.mergeConfigurationOverrides=A,y.mergeOverride=ue,y.mergeOverrides=ot,y.toObjectOverride=N,y.useOverrides=nt;var B=tt(P),re=Be,oe=et($);function et(e){return e.__esModule?e:{default:e}}function ne(e){if(typeof WeakMap!="function")return null;var t=new WeakMap,r=new WeakMap;return(ne=function(o){return o?r:t})(e)}function tt(e,t){if(e&&e.__esModule)return e;if(e===null||v(e)!=="object"&&typeof e!="function")return{default:e};var r=ne(t);if(r&&r.has(e))return r.get(e);var o={},n=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var i in e)if(i!=="default"&&Object.prototype.hasOwnProperty.call(e,i)){var a=n?Object.getOwnPropertyDescriptor(e,i):null;a&&(a.get||a.set)?Object.defineProperty(o,i,a):o[i]=e[i]}return o.default=e,r&&r.set(e,o),o}function M(){return M=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var o in r)Object.prototype.hasOwnProperty.call(r,o)&&(e[o]=r[o])}return e},M.apply(this,arguments)}function ie(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter(function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable})),r.push.apply(r,o)}return r}function C(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?ie(Object(r),!0).forEach(function(o){rt(e,o,r[o])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):ie(Object(r)).forEach(function(o){Object.defineProperty(e,o,Object.getOwnPropertyDescriptor(r,o))})}return e}function rt(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function v(e){"@babel/helpers - typeof";return v=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},v(e)}function ae(e){return(0,re.isValidElementType)(e)?e:e&&v(e)==="object"?e.component:e}function z(e){return e&&v(e)==="object"?v(e.props)==="object"?C(C({},e.props),{},{$style:e.style}):{$style:e.style}:{}}function N(e){return(0,re.isValidElementType)(e)?{component:e}:e||{}}function le(e,t){var r=ae(e)||t;if(e&&v(e)==="object"&&typeof e.props=="function"){var o=B.forwardRef(function(i,a){var c=e.props(i),s=z(C(C({},e),{},{props:c}));return B.createElement(r,M({ref:a},s))});return o.displayName=r.displayName,[o,{}]}var n=z(e);return[r,n]}function ot(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r=Object.assign({},e,t),o=Object.keys(r);return o.reduce(function(n,i){return n[i]=ue(N(e[i]),N(t[i])),n},{})}function ue(e,t){var r=C(C({},e),t);return e.props&&t.props&&(r.props=A(e.props,t.props)),e.style&&t.style&&(r.style=A(e.style,t.style)),r}function A(e,t){return v(e)==="object"&&v(t)==="object"?(0,oe.default)({},e,t):function(){return(0,oe.default)({},typeof e=="function"?e.apply(void 0,arguments):e,typeof t=="function"?t.apply(void 0,arguments):t)}}function nt(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return B.useMemo(function(){return Object.keys(e).reduce(function(r,o){return r[o]=le(t[o],e[o]),r},{})},[t])}var T={},I={};Object.defineProperty(I,"__esModule",{value:!0}),I.Svg=void 0,I.getSvgStyles=se;var it=_;function se(e){var t=e.$theme,r=e.$size,o=e.$color,n=t.sizing.scale600;r&&(t.sizing[r]?n=t.sizing[r]:typeof r=="number"?n="".concat(r,"px"):n=r);var i="currentColor";return o&&(t.colors[o]?i=t.colors[o]:i=o),{display:"inline-block",fill:i,color:i,height:n,width:n}}var L=(0,it.styled)("svg",se);I.Svg=L,L.displayName="Svg",L.displayName="Svg";var F={};Object.defineProperty(F,"__esModule",{value:!0}),F.default=at;function at(e){var t={};for(var r in e)r[0]!=="$"&&(t[r]=e[r]);return t}function W(e){"@babel/helpers - typeof";return W=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},W(e)}Object.defineProperty(T,"__esModule",{value:!0}),T.default=void 0;var Z=dt(P),lt=y,ut=I,ce=ct(F),st=["children","title","size","color","overrides"];function ct(e){return e.__esModule?e:{default:e}}function de(e){if(typeof WeakMap!="function")return null;var t=new WeakMap,r=new WeakMap;return(de=function(o){return o?r:t})(e)}function dt(e,t){if(e&&e.__esModule)return e;if(e===null||W(e)!=="object"&&typeof e!="function")return{default:e};var r=de(t);if(r&&r.has(e))return r.get(e);var o={},n=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var i in e)if(i!=="default"&&Object.prototype.hasOwnProperty.call(e,i)){var a=n?Object.getOwnPropertyDescriptor(e,i):null;a&&(a.get||a.set)?Object.defineProperty(o,i,a):o[i]=e[i]}return o.default=e,r&&r.set(e,o),o}function V(){return V=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var o in r)Object.prototype.hasOwnProperty.call(r,o)&&(e[o]=r[o])}return e},V.apply(this,arguments)}function pe(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter(function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable})),r.push.apply(r,o)}return r}function D(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?pe(Object(r),!0).forEach(function(o){pt(e,o,r[o])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):pe(Object(r)).forEach(function(o){Object.defineProperty(e,o,Object.getOwnPropertyDescriptor(r,o))})}return e}function pt(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function ft(e,t){return mt(e)||yt(e,t)||bt(e,t)||gt()}function gt(){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 bt(e,t){if(e){if(typeof e=="string")return fe(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 fe(e,t)}}function fe(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,o=new Array(t);r<t;r++)o[r]=e[r];return o}function yt(e,t){var r=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(r!=null){var o=[],n=!0,i=!1,a,c;try{for(r=r.call(e);!(n=(a=r.next()).done)&&(o.push(a.value),!(t&&o.length===t));n=!0);}catch(s){i=!0,c=s}finally{try{!n&&r.return!=null&&r.return()}finally{if(i)throw c}}return o}}function mt(e){if(Array.isArray(e))return e}function vt(e,t){if(e==null)return{};var r=ht(e,t),o,n;if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(n=0;n<i.length;n++)o=i[n],!(t.indexOf(o)>=0)&&Object.prototype.propertyIsEnumerable.call(e,o)&&(r[o]=e[o])}return r}function ht(e,t){if(e==null)return{};var r={},o=Object.keys(e),n,i;for(i=0;i<o.length;i++)n=o[i],!(t.indexOf(n)>=0)&&(r[n]=e[n]);return r}var Ot=function(e,t){var r=e.children,o=e.title,n=e.size,i=e.color,a=e.overrides,c=a===void 0?{}:a,s=vt(e,st),l=(0,lt.getOverrides)(c.Svg,ut.Svg),f=ft(l,2),m=f[0],h=f[1],O=m.__STYLETRON__?D(D({title:o,$color:i,$size:n},s),h):D(D({title:o,color:i,size:n},(0,ce.default)(s)),(0,ce.default)(h));return Z.createElement(m,V({"data-baseweb":"icon",ref:t},O),o?Z.createElement("title",null,o):null,r)},St=Z.forwardRef(Ot);T.default=St;function H(e){"@babel/helpers - typeof";return H=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},H(e)}Object.defineProperty(E,"__esModule",{value:!0}),E.default=void 0;var U=wt(P),jt=_,ge=y,Pt=It(T),Ct=["title","size","color","overrides"];function It(e){return e.__esModule?e:{default:e}}function be(e){if(typeof WeakMap!="function")return null;var t=new WeakMap,r=new WeakMap;return(be=function(o){return o?r:t})(e)}function wt(e,t){if(e&&e.__esModule)return e;if(e===null||H(e)!=="object"&&typeof e!="function")return{default:e};var r=be(t);if(r&&r.has(e))return r.get(e);var o={},n=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var i in e)if(i!=="default"&&Object.prototype.hasOwnProperty.call(e,i)){var a=n?Object.getOwnPropertyDescriptor(e,i):null;a&&(a.get||a.set)?Object.defineProperty(o,i,a):o[i]=e[i]}return o.default=e,r&&r.set(e,o),o}function J(){return J=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var o in r)Object.prototype.hasOwnProperty.call(r,o)&&(e[o]=r[o])}return e},J.apply(this,arguments)}function Et(e,t){if(e==null)return{};var r=Tt(e,t),o,n;if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(n=0;n<i.length;n++)o=i[n],!(t.indexOf(o)>=0)&&Object.prototype.propertyIsEnumerable.call(e,o)&&(r[o]=e[o])}return r}function Tt(e,t){if(e==null)return{};var r={},o=Object.keys(e),n,i;for(i=0;i<o.length;i++)n=o[i],!(t.indexOf(n)>=0)&&(r[n]=e[n]);return r}function Dt(e,t){return $t(e)||_t(e,t)||Rt(e,t)||xt()}function xt(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
3
3
  In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Rt(e,t){if(e){if(typeof e=="string")return ye(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 ye(e,t)}}function ye(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,o=new Array(t);r<t;r++)o[r]=e[r];return o}function _t(e,t){var r=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(r!=null){var o=[],n=!0,i=!1,a,c;try{for(r=r.call(e);!(n=(a=r.next()).done)&&(o.push(a.value),!(t&&o.length===t));n=!0);}catch(s){i=!0,c=s}finally{try{!n&&r.return!=null&&r.return()}finally{if(i)throw c}}return o}}function $t(e){if(Array.isArray(e))return e}function kt(e,t){var r=(0,jt.useStyletron)(),o=Dt(r,2),n=o[1],i=e.title,a=i===void 0?"Delete Alt":i,c=e.size,s=e.color,l=e.overrides,f=l===void 0?{}:l,m=Et(e,Ct),h=(0,ge.mergeOverride)({component:n.icons&&n.icons.DeleteAlt?n.icons.DeleteAlt:null},f&&f.Svg?(0,ge.toObjectOverride)(f.Svg):{});return U.createElement(Pt.default,J({viewBox:"0 0 24 24",ref:t,title:a,size:c,color:s,overrides:{Svg:h}},m),U.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M12 20C16.4183 20 20 16.4183 20 12C20 7.58173 16.4183 4 12 4C7.58173 4 4 7.58173 4 12C4 16.4183 7.58173 20 12 20ZM10.0303 8.96967C9.73743 8.67679 9.26257 8.67679 8.96967 8.96967C8.67676 9.26257 8.67676 9.73743 8.96967 10.0303L10.9393 12L8.96967 13.9697C8.67676 14.2626 8.67676 14.7374 8.96967 15.0303C9.26257 15.3232 9.73743 15.3232 10.0303 15.0303L12 13.0607L13.9697 15.0303C14.2626 15.3232 14.7374 15.3232 15.0303 15.0303C15.3232 14.7374 15.3232 14.2626 15.0303 13.9697L13.0607 12L15.0303 10.0303C15.3232 9.73743 15.3232 9.26257 15.0303 8.96967C14.7374 8.67679 14.2626 8.67679 13.9697 8.96967L12 10.9393L10.0303 8.96967Z"}))}var Bt=U.forwardRef(kt);E.default=Bt,Object.defineProperty(d,"__esModule",{value:!0}),d.getRootStyles=d.getInputStyles=d.getInputContainerStyles=d.StyledMaskToggleButton=d.StyledClearIconContainer=ve=d.StyledClearIcon=d.Root=d.InputEnhancer=d.InputContainer=d.Input=void 0;var j=_,u=g,Mt=zt(E);function zt(e){return e.__esModule?e:{default:e}}function me(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter(function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable})),r.push.apply(r,o)}return r}function b(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?me(Object(r),!0).forEach(function(o){p(e,o,r[o])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):me(Object(r)).forEach(function(o){Object.defineProperty(e,o,Object.getOwnPropertyDescriptor(r,o))})}return e}function p(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var G=(0,j.styled)("button",function(e){var t,r=e.$theme,o=e.$size,n=e.$isFocusVisible,i=(t={},p(t,u.SIZE.mini,r.sizing.scale400),p(t,u.SIZE.compact,r.sizing.scale400),p(t,u.SIZE.default,r.sizing.scale300),p(t,u.SIZE.large,r.sizing.scale200),t)[o];return{display:"flex",alignItems:"center",borderTopStyle:"none",borderBottomStyle:"none",borderLeftStyle:"none",borderRightStyle:"none",background:"none",paddingLeft:i,paddingRight:i,outline:n?"solid 3px ".concat(r.colors.accent):"none",color:r.colors.contentPrimary}});d.StyledMaskToggleButton=G,G.displayName="StyledMaskToggleButton",G.displayName="StyledMaskToggleButton";var Y=(0,j.styled)("div",function(e){var t,r=e.$alignTop,o=r===void 0?!1:r,n=e.$size,i=e.$theme,a=(t={},p(t,u.SIZE.mini,i.sizing.scale200),p(t,u.SIZE.compact,i.sizing.scale200),p(t,u.SIZE.default,i.sizing.scale100),p(t,u.SIZE.large,i.sizing.scale0),t)[n];return{display:"flex",alignItems:o?"flex-start":"center",paddingLeft:a,paddingRight:a,paddingTop:o?i.sizing.scale500:"0px",color:i.colors.contentPrimary}});d.StyledClearIconContainer=Y,Y.displayName="StyledClearIconContainer",Y.displayName="StyledClearIconContainer";var q=(0,j.styled)(Mt.default,function(e){var t=e.$theme,r=e.$isFocusVisible;return{cursor:"pointer",outline:r?"solid 3px ".concat(t.colors.accent):"none"}}),ve=d.StyledClearIcon=q;q.displayName="StyledClearIcon",q.displayName="StyledClearIcon";function Nt(e,t){var r;return(r={},p(r,u.SIZE.mini,{paddingTop:t.scale100,paddingBottom:t.scale100,paddingLeft:t.scale550,paddingRight:t.scale550}),p(r,u.SIZE.compact,{paddingTop:t.scale200,paddingBottom:t.scale200,paddingLeft:t.scale550,paddingRight:t.scale550}),p(r,u.SIZE.default,{paddingTop:t.scale400,paddingBottom:t.scale400,paddingLeft:t.scale550,paddingRight:t.scale550}),p(r,u.SIZE.large,{paddingTop:t.scale550,paddingBottom:t.scale550,paddingLeft:t.scale550,paddingRight:t.scale550}),r)[e]}function At(e,t,r,o,n){var i=e===u.ADJOINED.both||e===u.ADJOINED.left&&o!=="rtl"||e===u.ADJOINED.right&&o==="rtl"||n&&o==="rtl",a=e===u.ADJOINED.both||e===u.ADJOINED.right&&o!=="rtl"||e===u.ADJOINED.left&&o==="rtl"||n&&o!=="rtl";return{paddingLeft:i?r.scale550:"0px",paddingRight:a?r.scale550:"0px"}}function x(e,t){var r;return(r={},p(r,u.SIZE.mini,t.font100),p(r,u.SIZE.compact,t.font200),p(r,u.SIZE.default,t.font300),p(r,u.SIZE.large,t.font400),r)[e]}function Lt(e,t,r){var o=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!1,n=arguments.length>4?arguments[4]:void 0;return e?{borderLeftColor:n.inputFillDisabled,borderRightColor:n.inputFillDisabled,borderTopColor:n.inputFillDisabled,borderBottomColor:n.inputFillDisabled,backgroundColor:n.inputFillDisabled}:t?{borderLeftColor:n.borderSelected,borderRightColor:n.borderSelected,borderTopColor:n.borderSelected,borderBottomColor:n.borderSelected,backgroundColor:n.inputFillActive}:r?{borderLeftColor:n.inputBorderError,borderRightColor:n.inputBorderError,borderTopColor:n.inputBorderError,borderBottomColor:n.inputBorderError,backgroundColor:n.inputFillError}:o?{borderLeftColor:n.inputBorderPositive,borderRightColor:n.inputBorderPositive,borderTopColor:n.inputBorderPositive,borderBottomColor:n.inputBorderPositive,backgroundColor:n.inputFillPositive}:{borderLeftColor:n.inputBorder,borderRightColor:n.inputBorder,borderTopColor:n.inputBorder,borderBottomColor:n.inputBorder,backgroundColor:n.inputFill}}function Ft(e,t){var r=t.inputBorderRadius;return e===u.SIZE.mini&&(r=t.inputBorderRadiusMini),{borderTopLeftRadius:r,borderBottomLeftRadius:r,borderTopRightRadius:r,borderBottomRightRadius:r}}var he=function(e){var t=e.$isFocused,r=e.$adjoined,o=e.$error,n=e.$disabled,i=e.$positive,a=e.$size,c=e.$theme,s=e.$theme,l=s.borders,f=s.colors,m=s.sizing,h=s.typography,O=s.animation,w=e.$hasIconTrailing;return b(b(b(b({boxSizing:"border-box",display:"flex",overflow:"hidden",width:"100%",borderLeftWidth:"2px",borderRightWidth:"2px",borderTopWidth:"2px",borderBottomWidth:"2px",borderLeftStyle:"solid",borderRightStyle:"solid",borderTopStyle:"solid",borderBottomStyle:"solid",transitionProperty:"border",transitionDuration:O.timing200,transitionTimingFunction:O.easeOutCurve},Ft(a,l)),x(a,h)),Lt(n,t,o,i,f)),At(r,a,m,c.direction,w))};d.getRootStyles=he;var K=(0,j.styled)("div",he);d.Root=K,K.displayName="Root",K.displayName="Root";function Wt(e,t){var r;return(r={},p(r,u.SIZE.mini,{paddingRight:t.scale400,paddingLeft:t.scale400}),p(r,u.SIZE.compact,{paddingRight:t.scale400,paddingLeft:t.scale400}),p(r,u.SIZE.default,{paddingRight:t.scale300,paddingLeft:t.scale300}),p(r,u.SIZE.large,{paddingRight:t.scale200,paddingLeft:t.scale200}),r)[e]}function Zt(e,t,r,o,n){return e?{color:n.inputEnhancerTextDisabled,backgroundColor:n.inputFillDisabled}:t?{color:n.contentPrimary,backgroundColor:n.inputFillActive}:r?{color:n.contentPrimary,backgroundColor:n.inputFillError}:o?{color:n.contentPrimary,backgroundColor:n.inputFillPositive}:{color:n.contentPrimary,backgroundColor:n.inputFill}}var X=(0,j.styled)("div",function(e){var t=e.$size,r=e.$disabled,o=e.$isFocused,n=e.$error,i=e.$positive,a=e.$theme,c=a.colors,s=a.sizing,l=a.typography,f=a.animation;return b(b(b({display:"flex",alignItems:"center",justifyContent:"center",transitionProperty:"color, background-color",transitionDuration:f.timing200,transitionTimingFunction:f.easeOutCurve},x(t,l)),Wt(t,s)),Zt(r,o,n,i,c))});d.InputEnhancer=X,X.displayName="InputEnhancer",X.displayName="InputEnhancer";function Vt(e,t,r,o,n){return e?{color:n.inputTextDisabled,backgroundColor:n.inputFillDisabled}:t?{color:n.contentPrimary,backgroundColor:n.inputFillActive}:r?{color:n.contentPrimary,backgroundColor:n.inputFillError}:o?{color:n.contentPrimary,backgroundColor:n.inputFillPositive}:{color:n.contentPrimary,backgroundColor:n.inputFill}}var Oe=function(e){var t=e.$isFocused,r=e.$error,o=e.$disabled,n=e.$positive,i=e.$size,a=e.$theme,c=a.colors,s=a.typography,l=a.animation;return b(b({display:"flex",width:"100%",transitionProperty:"background-color",transitionDuration:l.timing200,transitionTimingFunction:l.easeOutCurve},x(i,s)),Vt(o,t,r,n,c))};d.getInputContainerStyles=Oe;var Q=(0,j.styled)("div",Oe);d.InputContainer=Q,Q.displayName="InputContainer",Q.displayName="InputContainer";function Ht(e,t,r,o){return e?{color:o.inputTextDisabled,"-webkit-text-fill-color":o.inputTextDisabled,caretColor:o.contentPrimary,"::placeholder":{color:o.inputPlaceholderDisabled}}:{color:o.contentPrimary,caretColor:o.contentPrimary,"::placeholder":{color:o.inputPlaceholder}}}var Se=function(e){var t=e.$disabled,r=e.$isFocused,o=e.$error,n=e.$size,i=e.$theme,a=i.colors,c=i.sizing,s=i.typography;return b(b(b({boxSizing:"border-box",backgroundColor:"transparent",borderLeftWidth:0,borderRightWidth:0,borderTopWidth:0,borderBottomWidth:0,borderLeftStyle:"none",borderRightStyle:"none",borderTopStyle:"none",borderBottomStyle:"none",outline:"none",width:"100%",minWidth:0,maxWidth:"100%",cursor:t?"not-allowed":"text",margin:"0",paddingTop:"0",paddingBottom:"0",paddingLeft:"0",paddingRight:"0"},x(n,s)),Nt(n,c)),Ht(t,r,o,a))};d.getInputStyles=Se;var ee=(0,j.styled)("input",Se);d.Input=ee,ee.displayName="Input",ee.displayName="Input";const Ut=Me("div",{target:"e1ipygm10"})({name:"1ucqwki",styles:"position:absolute;top:50%;right:2.05em"});function Jt({disabled:e,element:t,widgetMgr:r,width:o,fragmentId:n}){var O;const[i,a]=Ve({getStateFromWidgetMgr:Gt,getDefaultStateFromProto:Yt,getCurrStateFromProto:qt,updateWidgetMgrState:Kt,element:t,widgetMgr:r,fragmentId:n}),c=R(t.default)&&!e,s={width:o},l=ze(),f={Select:{props:{disabled:e,overrides:{ControlContainer:{style:{height:l.sizes.minElementHeight,borderLeftWidth:l.sizes.borderWidth,borderRightWidth:l.sizes.borderWidth,borderTopWidth:l.sizes.borderWidth,borderBottomWidth:l.sizes.borderWidth}},IconsContainer:{style:()=>({paddingRight:l.spacing.sm})},ValueContainer:{style:()=>({lineHeight:l.lineHeights.inputWidget,paddingRight:l.spacing.sm,paddingLeft:l.spacing.sm,paddingBottom:l.spacing.sm,paddingTop:l.spacing.sm})},SingleValue:{props:{"data-testid":"stTimeInputTimeDisplay"}},Dropdown:{style:()=>({paddingTop:l.spacing.none,paddingBottom:l.spacing.none})},DropdownListItem:{style:()=>({paddingRight:l.spacing.lg,paddingLeft:l.spacing.lg,paddingTop:l.spacing.sm,paddingBottom:l.spacing.sm})},Popover:{props:{overrides:{Body:{style:()=>({marginTop:l.spacing.px})}}}},SelectArrow:{component:Ne,props:{overrides:{Svg:{style:()=>({width:l.iconSizes.xl,height:l.iconSizes.xl})}}}}}}}},m=P.useCallback(w=>{const je=w===null?null:Xt(w);a({value:je,fromUi:!0})},[a]),h=P.useCallback(()=>{m(null)},[m]);return S.jsxs("div",{className:"stTimeInput","data-testid":"stTimeInput",style:s,children:[S.jsx(Ae,{label:t.label,disabled:e,labelVisibility:Le((O=t.labelVisibility)==null?void 0:O.value),children:t.help&&S.jsx(Fe,{children:S.jsx(We,{content:t.help,placement:Ze.TOP_RIGHT})})}),S.jsx(He,{format:"24",step:t.step?Number(t.step):900,value:R(i)?void 0:Qt(i),onChange:m,overrides:f,nullable:c,creatable:!0,"aria-label":t.label}),c&&!R(i)&&S.jsx(Ut,{onClick:h,"data-testid":"stTimeInputClearButton",children:S.jsx(ve,{overrides:{Svg:{style:{color:l.colors.darkGray,padding:l.spacing.threeXS,height:l.sizes.clearIconSize,width:l.sizes.clearIconSize,":hover":{fill:l.colors.bodyText}}}},$isFocusVisible:!1})})]})}function Gt(e,t){return e.getStringValue(t)??null}function Yt(e){return e.default??null}function qt(e){return e.value??null}function Kt(e,t,r,o){t.setStringValue(e,r.value,{fromUi:r.fromUi},o)}function Xt(e){const t=e.getHours().toString().padStart(2,"0"),r=e.getMinutes().toString().padStart(2,"0");return`${t}:${r}`}function Qt(e){if(e===null)return null;const[t,r]=e.split(":").map(Number),o=new Date;return o.setHours(t),o.setMinutes(r),o}const er=P.memo(Jt);export{er as default};
@@ -1,2 +1,2 @@
1
- import{r as at,j as bt}from"./index-z2lXC7XI.js";/*! @license DOMPurify 3.1.7 | (c) Cure53 and other contributors | Released under the Apache license 2.0 and Mozilla Public License 2.0 | github.com/cure53/DOMPurify/blob/3.1.7/LICENSE */const{entries:ie,setPrototypeOf:le,isFrozen:Ge,getPrototypeOf:Ye,getOwnPropertyDescriptor:je}=Object;let{freeze:E,seal:b,create:ce}=Object,{apply:St,construct:Rt}=typeof Reflect<"u"&&Reflect;E||(E=function(r){return r}),b||(b=function(r){return r}),St||(St=function(r,o,l){return r.apply(o,l)}),Rt||(Rt=function(r,o){return new r(...o)});const it=A(Array.prototype.forEach),se=A(Array.prototype.pop),X=A(Array.prototype.push),lt=A(String.prototype.toLowerCase),wt=A(String.prototype.toString),ue=A(String.prototype.match),q=A(String.prototype.replace),Xe=A(String.prototype.indexOf),qe=A(String.prototype.trim),S=A(Object.prototype.hasOwnProperty),_=A(RegExp.prototype.test),$=$e(TypeError);function A(r){return function(o){for(var l=arguments.length,i=new Array(l>1?l-1:0),d=1;d<l;d++)i[d-1]=arguments[d];return St(r,o,i)}}function $e(r){return function(){for(var o=arguments.length,l=new Array(o),i=0;i<o;i++)l[i]=arguments[i];return Rt(r,l)}}function a(r,o){let l=arguments.length>2&&arguments[2]!==void 0?arguments[2]:lt;le&&le(r,null);let i=o.length;for(;i--;){let d=o[i];if(typeof d=="string"){const h=l(d);h!==d&&(Ge(o)||(o[i]=h),d=h)}r[d]=!0}return r}function Ke(r){for(let o=0;o<r.length;o++)S(r,o)||(r[o]=null);return r}function x(r){const o=ce(null);for(const[l,i]of ie(r))S(r,l)&&(Array.isArray(i)?o[l]=Ke(i):i&&typeof i=="object"&&i.constructor===Object?o[l]=x(i):o[l]=i);return o}function K(r,o){for(;r!==null;){const i=je(r,o);if(i){if(i.get)return A(i.get);if(typeof i.value=="function")return A(i.value)}r=Ye(r)}function l(){return null}return l}const me=E(["a","abbr","acronym","address","area","article","aside","audio","b","bdi","bdo","big","blink","blockquote","body","br","button","canvas","caption","center","cite","code","col","colgroup","content","data","datalist","dd","decorator","del","details","dfn","dialog","dir","div","dl","dt","element","em","fieldset","figcaption","figure","font","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","img","input","ins","kbd","label","legend","li","main","map","mark","marquee","menu","menuitem","meter","nav","nobr","ol","optgroup","option","output","p","picture","pre","progress","q","rp","rt","ruby","s","samp","section","select","shadow","small","source","spacer","span","strike","strong","style","sub","summary","sup","table","tbody","td","template","textarea","tfoot","th","thead","time","tr","track","tt","u","ul","var","video","wbr"]),Lt=E(["svg","a","altglyph","altglyphdef","altglyphitem","animatecolor","animatemotion","animatetransform","circle","clippath","defs","desc","ellipse","filter","font","g","glyph","glyphref","hkern","image","line","lineargradient","marker","mask","metadata","mpath","path","pattern","polygon","polyline","radialgradient","rect","stop","style","switch","symbol","text","textpath","title","tref","tspan","view","vkern"]),Ct=E(["feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feDropShadow","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence"]),Ve=E(["animate","color-profile","cursor","discard","font-face","font-face-format","font-face-name","font-face-src","font-face-uri","foreignobject","hatch","hatchpath","mesh","meshgradient","meshpatch","meshrow","missing-glyph","script","set","solidcolor","unknown","use"]),vt=E(["math","menclose","merror","mfenced","mfrac","mglyph","mi","mlabeledtr","mmultiscripts","mn","mo","mover","mpadded","mphantom","mroot","mrow","ms","mspace","msqrt","mstyle","msub","msup","msubsup","mtable","mtd","mtext","mtr","munder","munderover","mprescripts"]),Ze=E(["maction","maligngroup","malignmark","mlongdiv","mscarries","mscarry","msgroup","mstack","msline","msrow","semantics","annotation","annotation-xml","mprescripts","none"]),pe=E(["#text"]),fe=E(["accept","action","align","alt","autocapitalize","autocomplete","autopictureinpicture","autoplay","background","bgcolor","border","capture","cellpadding","cellspacing","checked","cite","class","clear","color","cols","colspan","controls","controlslist","coords","crossorigin","datetime","decoding","default","dir","disabled","disablepictureinpicture","disableremoteplayback","download","draggable","enctype","enterkeyhint","face","for","headers","height","hidden","high","href","hreflang","id","inputmode","integrity","ismap","kind","label","lang","list","loading","loop","low","max","maxlength","media","method","min","minlength","multiple","muted","name","nonce","noshade","novalidate","nowrap","open","optimum","pattern","placeholder","playsinline","popover","popovertarget","popovertargetaction","poster","preload","pubdate","radiogroup","readonly","rel","required","rev","reversed","role","rows","rowspan","spellcheck","scope","selected","shape","size","sizes","span","srclang","start","src","srcset","step","style","summary","tabindex","title","translate","type","usemap","valign","value","width","wrap","xmlns","slot"]),Dt=E(["accent-height","accumulate","additive","alignment-baseline","amplitude","ascent","attributename","attributetype","azimuth","basefrequency","baseline-shift","begin","bias","by","class","clip","clippathunits","clip-path","clip-rule","color","color-interpolation","color-interpolation-filters","color-profile","color-rendering","cx","cy","d","dx","dy","diffuseconstant","direction","display","divisor","dur","edgemode","elevation","end","exponent","fill","fill-opacity","fill-rule","filter","filterunits","flood-color","flood-opacity","font-family","font-size","font-size-adjust","font-stretch","font-style","font-variant","font-weight","fx","fy","g1","g2","glyph-name","glyphref","gradientunits","gradienttransform","height","href","id","image-rendering","in","in2","intercept","k","k1","k2","k3","k4","kerning","keypoints","keysplines","keytimes","lang","lengthadjust","letter-spacing","kernelmatrix","kernelunitlength","lighting-color","local","marker-end","marker-mid","marker-start","markerheight","markerunits","markerwidth","maskcontentunits","maskunits","max","mask","media","method","mode","min","name","numoctaves","offset","operator","opacity","order","orient","orientation","origin","overflow","paint-order","path","pathlength","patterncontentunits","patterntransform","patternunits","points","preservealpha","preserveaspectratio","primitiveunits","r","rx","ry","radius","refx","refy","repeatcount","repeatdur","restart","result","rotate","scale","seed","shape-rendering","slope","specularconstant","specularexponent","spreadmethod","startoffset","stddeviation","stitchtiles","stop-color","stop-opacity","stroke-dasharray","stroke-dashoffset","stroke-linecap","stroke-linejoin","stroke-miterlimit","stroke-opacity","stroke","stroke-width","style","surfacescale","systemlanguage","tabindex","tablevalues","targetx","targety","transform","transform-origin","text-anchor","text-decoration","text-rendering","textlength","type","u1","u2","unicode","values","viewbox","visibility","version","vert-adv-y","vert-origin-x","vert-origin-y","width","word-spacing","wrap","writing-mode","xchannelselector","ychannelselector","x","x1","x2","xmlns","y","y1","y2","z","zoomandpan"]),de=E(["accent","accentunder","align","bevelled","close","columnsalign","columnlines","columnspan","denomalign","depth","dir","display","displaystyle","encoding","fence","frame","height","href","id","largeop","length","linethickness","lspace","lquote","mathbackground","mathcolor","mathsize","mathvariant","maxsize","minsize","movablelimits","notation","numalign","open","rowalign","rowlines","rowspacing","rowspan","rspace","rquote","scriptlevel","scriptminsize","scriptsizemultiplier","selection","separator","separators","stretchy","subscriptshift","supscriptshift","symmetric","voffset","width","xmlns"]),ct=E(["xlink:href","xml:id","xlink:title","xml:space","xmlns:xlink"]),Je=b(/\{\{[\w\W]*|[\w\W]*\}\}/gm),Qe=b(/<%[\w\W]*|[\w\W]*%>/gm),tn=b(/\${[\w\W]*}/gm),en=b(/^data-[\-\w.\u00B7-\uFFFF]/),nn=b(/^aria-[\-\w]+$/),ge=b(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),on=b(/^(?:\w+script|data):/i),rn=b(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),he=b(/^html$/i),an=b(/^[a-z][.\w]*(-[.\w]+)+$/i);var Te=Object.freeze({__proto__:null,MUSTACHE_EXPR:Je,ERB_EXPR:Qe,TMPLIT_EXPR:tn,DATA_ATTR:en,ARIA_ATTR:nn,IS_ALLOWED_URI:ge,IS_SCRIPT_OR_DATA:on,ATTR_WHITESPACE:rn,DOCTYPE_NAME:he,CUSTOM_ELEMENT:an});const V={element:1,attribute:2,text:3,cdataSection:4,entityReference:5,entityNode:6,progressingInstruction:7,comment:8,document:9,documentType:10,documentFragment:11,notation:12},ln=function(){return typeof window>"u"?null:window},cn=function(r,o){if(typeof r!="object"||typeof r.createPolicy!="function")return null;let l=null;const i="data-tt-policy-suffix";o&&o.hasAttribute(i)&&(l=o.getAttribute(i));const d="dompurify"+(l?"#"+l:"");try{return r.createPolicy(d,{createHTML(h){return h},createScriptURL(h){return h}})}catch{return console.warn("TrustedTypes policy "+d+" could not be created."),null}};function ye(){let r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:ln();const o=t=>ye(t);if(o.version="3.1.7",o.removed=[],!r||!r.document||r.document.nodeType!==V.document)return o.isSupported=!1,o;let{document:l}=r;const i=l,d=i.currentScript,{DocumentFragment:h,HTMLTemplateElement:Z,Node:k,Element:xt,NodeFilter:z,NamedNodeMap:Ee=r.NamedNodeMap||r.MozNamedAttrMap,HTMLFormElement:_e,DOMParser:Ae,trustedTypes:J}=r,W=xt.prototype,Ne=K(W,"cloneNode"),be=K(W,"remove"),Se=K(W,"nextSibling"),Re=K(W,"childNodes"),Q=K(W,"parentNode");if(typeof Z=="function"){const t=l.createElement("template");t.content&&t.content.ownerDocument&&(l=t.content.ownerDocument)}let T,B="";const{implementation:st,createNodeIterator:we,createDocumentFragment:Le,getElementsByTagName:Ce}=l,{importNode:ve}=i;let R={};o.isSupported=typeof ie=="function"&&typeof Q=="function"&&st&&st.createHTMLDocument!==void 0;const{MUSTACHE_EXPR:ut,ERB_EXPR:mt,TMPLIT_EXPR:pt,DATA_ATTR:De,ARIA_ATTR:Oe,IS_SCRIPT_OR_DATA:xe,ATTR_WHITESPACE:kt,CUSTOM_ELEMENT:ke}=Te;let{IS_ALLOWED_URI:It}=Te,m=null;const Mt=a({},[...me,...Lt,...Ct,...vt,...pe]);let p=null;const Ut=a({},[...fe,...Dt,...de,...ct]);let s=Object.seal(ce(null,{tagNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},allowCustomizedBuiltInElements:{writable:!0,configurable:!1,enumerable:!0,value:!1}})),G=null,ft=null,Pt=!0,dt=!0,Ht=!1,Ft=!0,I=!1,gt=!0,D=!1,ht=!1,Tt=!1,M=!1,tt=!1,et=!1,zt=!0,Wt=!1;const Ie="user-content-";let yt=!0,Y=!1,U={},P=null;const Bt=a({},["annotation-xml","audio","colgroup","desc","foreignobject","head","iframe","math","mi","mn","mo","ms","mtext","noembed","noframes","noscript","plaintext","script","style","svg","template","thead","title","video","xmp"]);let Gt=null;const Yt=a({},["audio","video","img","source","image","track"]);let Et=null;const jt=a({},["alt","class","for","id","label","name","pattern","placeholder","role","summary","title","value","style","xmlns"]),nt="http://www.w3.org/1998/Math/MathML",ot="http://www.w3.org/2000/svg",L="http://www.w3.org/1999/xhtml";let H=L,_t=!1,At=null;const Me=a({},[nt,ot,L],wt);let j=null;const Ue=["application/xhtml+xml","text/html"],Pe="text/html";let f=null,F=null;const He=l.createElement("form"),Xt=function(t){return t instanceof RegExp||t instanceof Function},Nt=function(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};if(!(F&&F===t)){if((!t||typeof t!="object")&&(t={}),t=x(t),j=Ue.indexOf(t.PARSER_MEDIA_TYPE)===-1?Pe:t.PARSER_MEDIA_TYPE,f=j==="application/xhtml+xml"?wt:lt,m=S(t,"ALLOWED_TAGS")?a({},t.ALLOWED_TAGS,f):Mt,p=S(t,"ALLOWED_ATTR")?a({},t.ALLOWED_ATTR,f):Ut,At=S(t,"ALLOWED_NAMESPACES")?a({},t.ALLOWED_NAMESPACES,wt):Me,Et=S(t,"ADD_URI_SAFE_ATTR")?a(x(jt),t.ADD_URI_SAFE_ATTR,f):jt,Gt=S(t,"ADD_DATA_URI_TAGS")?a(x(Yt),t.ADD_DATA_URI_TAGS,f):Yt,P=S(t,"FORBID_CONTENTS")?a({},t.FORBID_CONTENTS,f):Bt,G=S(t,"FORBID_TAGS")?a({},t.FORBID_TAGS,f):{},ft=S(t,"FORBID_ATTR")?a({},t.FORBID_ATTR,f):{},U=S(t,"USE_PROFILES")?t.USE_PROFILES:!1,Pt=t.ALLOW_ARIA_ATTR!==!1,dt=t.ALLOW_DATA_ATTR!==!1,Ht=t.ALLOW_UNKNOWN_PROTOCOLS||!1,Ft=t.ALLOW_SELF_CLOSE_IN_ATTR!==!1,I=t.SAFE_FOR_TEMPLATES||!1,gt=t.SAFE_FOR_XML!==!1,D=t.WHOLE_DOCUMENT||!1,M=t.RETURN_DOM||!1,tt=t.RETURN_DOM_FRAGMENT||!1,et=t.RETURN_TRUSTED_TYPE||!1,Tt=t.FORCE_BODY||!1,zt=t.SANITIZE_DOM!==!1,Wt=t.SANITIZE_NAMED_PROPS||!1,yt=t.KEEP_CONTENT!==!1,Y=t.IN_PLACE||!1,It=t.ALLOWED_URI_REGEXP||ge,H=t.NAMESPACE||L,s=t.CUSTOM_ELEMENT_HANDLING||{},t.CUSTOM_ELEMENT_HANDLING&&Xt(t.CUSTOM_ELEMENT_HANDLING.tagNameCheck)&&(s.tagNameCheck=t.CUSTOM_ELEMENT_HANDLING.tagNameCheck),t.CUSTOM_ELEMENT_HANDLING&&Xt(t.CUSTOM_ELEMENT_HANDLING.attributeNameCheck)&&(s.attributeNameCheck=t.CUSTOM_ELEMENT_HANDLING.attributeNameCheck),t.CUSTOM_ELEMENT_HANDLING&&typeof t.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements=="boolean"&&(s.allowCustomizedBuiltInElements=t.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements),I&&(dt=!1),tt&&(M=!0),U&&(m=a({},pe),p=[],U.html===!0&&(a(m,me),a(p,fe)),U.svg===!0&&(a(m,Lt),a(p,Dt),a(p,ct)),U.svgFilters===!0&&(a(m,Ct),a(p,Dt),a(p,ct)),U.mathMl===!0&&(a(m,vt),a(p,de),a(p,ct))),t.ADD_TAGS&&(m===Mt&&(m=x(m)),a(m,t.ADD_TAGS,f)),t.ADD_ATTR&&(p===Ut&&(p=x(p)),a(p,t.ADD_ATTR,f)),t.ADD_URI_SAFE_ATTR&&a(Et,t.ADD_URI_SAFE_ATTR,f),t.FORBID_CONTENTS&&(P===Bt&&(P=x(P)),a(P,t.FORBID_CONTENTS,f)),yt&&(m["#text"]=!0),D&&a(m,["html","head","body"]),m.table&&(a(m,["tbody"]),delete G.tbody),t.TRUSTED_TYPES_POLICY){if(typeof t.TRUSTED_TYPES_POLICY.createHTML!="function")throw $('TRUSTED_TYPES_POLICY configuration option must provide a "createHTML" hook.');if(typeof t.TRUSTED_TYPES_POLICY.createScriptURL!="function")throw $('TRUSTED_TYPES_POLICY configuration option must provide a "createScriptURL" hook.');T=t.TRUSTED_TYPES_POLICY,B=T.createHTML("")}else T===void 0&&(T=cn(J,d)),T!==null&&typeof B=="string"&&(B=T.createHTML(""));E&&E(t),F=t}},qt=a({},["mi","mo","mn","ms","mtext"]),$t=a({},["annotation-xml"]),Fe=a({},["title","style","font","a","script"]),Kt=a({},[...Lt,...Ct,...Ve]),Vt=a({},[...vt,...Ze]),ze=function(t){let n=Q(t);(!n||!n.tagName)&&(n={namespaceURI:H,tagName:"template"});const e=lt(t.tagName),c=lt(n.tagName);return At[t.namespaceURI]?t.namespaceURI===ot?n.namespaceURI===L?e==="svg":n.namespaceURI===nt?e==="svg"&&(c==="annotation-xml"||qt[c]):!!Kt[e]:t.namespaceURI===nt?n.namespaceURI===L?e==="math":n.namespaceURI===ot?e==="math"&&$t[c]:!!Vt[e]:t.namespaceURI===L?n.namespaceURI===ot&&!$t[c]||n.namespaceURI===nt&&!qt[c]?!1:!Vt[e]&&(Fe[e]||!Kt[e]):!!(j==="application/xhtml+xml"&&At[t.namespaceURI]):!1},O=function(t){X(o.removed,{element:t});try{Q(t).removeChild(t)}catch{be(t)}},rt=function(t,n){try{X(o.removed,{attribute:n.getAttributeNode(t),from:n})}catch{X(o.removed,{attribute:null,from:n})}if(n.removeAttribute(t),t==="is"&&!p[t])if(M||tt)try{O(n)}catch{}else try{n.setAttribute(t,"")}catch{}},Zt=function(t){let n=null,e=null;if(Tt)t="<remove></remove>"+t;else{const u=ue(t,/^[\r\n\t ]+/);e=u&&u[0]}j==="application/xhtml+xml"&&H===L&&(t='<html xmlns="http://www.w3.org/1999/xhtml"><head></head><body>'+t+"</body></html>");const c=T?T.createHTML(t):t;if(H===L)try{n=new Ae().parseFromString(c,j)}catch{}if(!n||!n.documentElement){n=st.createDocument(H,"template",null);try{n.documentElement.innerHTML=_t?B:c}catch{}}const g=n.body||n.documentElement;return t&&e&&g.insertBefore(l.createTextNode(e),g.childNodes[0]||null),H===L?Ce.call(n,D?"html":"body")[0]:D?n.documentElement:g},Jt=function(t){return we.call(t.ownerDocument||t,t,z.SHOW_ELEMENT|z.SHOW_COMMENT|z.SHOW_TEXT|z.SHOW_PROCESSING_INSTRUCTION|z.SHOW_CDATA_SECTION,null)},Qt=function(t){return t instanceof _e&&(typeof t.nodeName!="string"||typeof t.textContent!="string"||typeof t.removeChild!="function"||!(t.attributes instanceof Ee)||typeof t.removeAttribute!="function"||typeof t.setAttribute!="function"||typeof t.namespaceURI!="string"||typeof t.insertBefore!="function"||typeof t.hasChildNodes!="function")},te=function(t){return typeof k=="function"&&t instanceof k},C=function(t,n,e){R[t]&&it(R[t],c=>{c.call(o,n,e,F)})},ee=function(t){let n=null;if(C("beforeSanitizeElements",t,null),Qt(t))return O(t),!0;const e=f(t.nodeName);if(C("uponSanitizeElement",t,{tagName:e,allowedTags:m}),t.hasChildNodes()&&!te(t.firstElementChild)&&_(/<[/\w]/g,t.innerHTML)&&_(/<[/\w]/g,t.textContent)||t.nodeType===V.progressingInstruction||gt&&t.nodeType===V.comment&&_(/<[/\w]/g,t.data))return O(t),!0;if(!m[e]||G[e]){if(!G[e]&&oe(e)&&(s.tagNameCheck instanceof RegExp&&_(s.tagNameCheck,e)||s.tagNameCheck instanceof Function&&s.tagNameCheck(e)))return!1;if(yt&&!P[e]){const c=Q(t)||t.parentNode,g=Re(t)||t.childNodes;if(g&&c){const u=g.length;for(let v=u-1;v>=0;--v){const N=Ne(g[v],!0);N.__removalCount=(t.__removalCount||0)+1,c.insertBefore(N,Se(t))}}}return O(t),!0}return t instanceof xt&&!ze(t)||(e==="noscript"||e==="noembed"||e==="noframes")&&_(/<\/no(script|embed|frames)/i,t.innerHTML)?(O(t),!0):(I&&t.nodeType===V.text&&(n=t.textContent,it([ut,mt,pt],c=>{n=q(n,c," ")}),t.textContent!==n&&(X(o.removed,{element:t.cloneNode()}),t.textContent=n)),C("afterSanitizeElements",t,null),!1)},ne=function(t,n,e){if(zt&&(n==="id"||n==="name")&&(e in l||e in He))return!1;if(!(dt&&!ft[n]&&_(De,n))&&!(Pt&&_(Oe,n))){if(!p[n]||ft[n]){if(!(oe(t)&&(s.tagNameCheck instanceof RegExp&&_(s.tagNameCheck,t)||s.tagNameCheck instanceof Function&&s.tagNameCheck(t))&&(s.attributeNameCheck instanceof RegExp&&_(s.attributeNameCheck,n)||s.attributeNameCheck instanceof Function&&s.attributeNameCheck(n))||n==="is"&&s.allowCustomizedBuiltInElements&&(s.tagNameCheck instanceof RegExp&&_(s.tagNameCheck,e)||s.tagNameCheck instanceof Function&&s.tagNameCheck(e))))return!1}else if(!Et[n]&&!_(It,q(e,kt,""))&&!((n==="src"||n==="xlink:href"||n==="href")&&t!=="script"&&Xe(e,"data:")===0&&Gt[t])&&!(Ht&&!_(xe,q(e,kt,"")))&&e)return!1}return!0},oe=function(t){return t!=="annotation-xml"&&ue(t,ke)},re=function(t){C("beforeSanitizeAttributes",t,null);const{attributes:n}=t;if(!n)return;const e={attrName:"",attrValue:"",keepAttr:!0,allowedAttributes:p};let c=n.length;for(;c--;){const g=n[c],{name:u,namespaceURI:v,value:N}=g,w=f(u);let y=u==="value"?N:qe(N);if(e.attrName=w,e.attrValue=y,e.keepAttr=!0,e.forceKeepAttr=void 0,C("uponSanitizeAttribute",t,e),y=e.attrValue,e.forceKeepAttr||(rt(u,t),!e.keepAttr))continue;if(!Ft&&_(/\/>/i,y)){rt(u,t);continue}I&&it([ut,mt,pt],Be=>{y=q(y,Be," ")});const ae=f(t.nodeName);if(ne(ae,w,y)){if(Wt&&(w==="id"||w==="name")&&(rt(u,t),y=Ie+y),gt&&_(/((--!?|])>)|<\/(style|title)/i,y)){rt(u,t);continue}if(T&&typeof J=="object"&&typeof J.getAttributeType=="function"&&!v)switch(J.getAttributeType(ae,w)){case"TrustedHTML":{y=T.createHTML(y);break}case"TrustedScriptURL":{y=T.createScriptURL(y);break}}try{v?t.setAttributeNS(v,u,y):t.setAttribute(u,y),Qt(t)?O(t):se(o.removed)}catch{}}}C("afterSanitizeAttributes",t,null)},We=function t(n){let e=null;const c=Jt(n);for(C("beforeSanitizeShadowDOM",n,null);e=c.nextNode();)C("uponSanitizeShadowNode",e,null),!ee(e)&&(e.content instanceof h&&t(e.content),re(e));C("afterSanitizeShadowDOM",n,null)};return o.sanitize=function(t){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},e=null,c=null,g=null,u=null;if(_t=!t,_t&&(t="<!-->"),typeof t!="string"&&!te(t))if(typeof t.toString=="function"){if(t=t.toString(),typeof t!="string")throw $("dirty is not a string, aborting")}else throw $("toString is not a function");if(!o.isSupported)return t;if(ht||Nt(n),o.removed=[],typeof t=="string"&&(Y=!1),Y){if(t.nodeName){const w=f(t.nodeName);if(!m[w]||G[w])throw $("root node is forbidden and cannot be sanitized in-place")}}else if(t instanceof k)e=Zt("<!---->"),c=e.ownerDocument.importNode(t,!0),c.nodeType===V.element&&c.nodeName==="BODY"||c.nodeName==="HTML"?e=c:e.appendChild(c);else{if(!M&&!I&&!D&&t.indexOf("<")===-1)return T&&et?T.createHTML(t):t;if(e=Zt(t),!e)return M?null:et?B:""}e&&Tt&&O(e.firstChild);const v=Jt(Y?t:e);for(;g=v.nextNode();)ee(g)||(g.content instanceof h&&We(g.content),re(g));if(Y)return t;if(M){if(tt)for(u=Le.call(e.ownerDocument);e.firstChild;)u.appendChild(e.firstChild);else u=e;return(p.shadowroot||p.shadowrootmode)&&(u=ve.call(i,u,!0)),u}let N=D?e.outerHTML:e.innerHTML;return D&&m["!doctype"]&&e.ownerDocument&&e.ownerDocument.doctype&&e.ownerDocument.doctype.name&&_(he,e.ownerDocument.doctype.name)&&(N="<!DOCTYPE "+e.ownerDocument.doctype.name+`>
1
+ import{r as at,j as bt}from"./index-BzTZZCvL.js";/*! @license DOMPurify 3.1.7 | (c) Cure53 and other contributors | Released under the Apache license 2.0 and Mozilla Public License 2.0 | github.com/cure53/DOMPurify/blob/3.1.7/LICENSE */const{entries:ie,setPrototypeOf:le,isFrozen:Ge,getPrototypeOf:Ye,getOwnPropertyDescriptor:je}=Object;let{freeze:E,seal:b,create:ce}=Object,{apply:St,construct:Rt}=typeof Reflect<"u"&&Reflect;E||(E=function(r){return r}),b||(b=function(r){return r}),St||(St=function(r,o,l){return r.apply(o,l)}),Rt||(Rt=function(r,o){return new r(...o)});const it=A(Array.prototype.forEach),se=A(Array.prototype.pop),X=A(Array.prototype.push),lt=A(String.prototype.toLowerCase),wt=A(String.prototype.toString),ue=A(String.prototype.match),q=A(String.prototype.replace),Xe=A(String.prototype.indexOf),qe=A(String.prototype.trim),S=A(Object.prototype.hasOwnProperty),_=A(RegExp.prototype.test),$=$e(TypeError);function A(r){return function(o){for(var l=arguments.length,i=new Array(l>1?l-1:0),d=1;d<l;d++)i[d-1]=arguments[d];return St(r,o,i)}}function $e(r){return function(){for(var o=arguments.length,l=new Array(o),i=0;i<o;i++)l[i]=arguments[i];return Rt(r,l)}}function a(r,o){let l=arguments.length>2&&arguments[2]!==void 0?arguments[2]:lt;le&&le(r,null);let i=o.length;for(;i--;){let d=o[i];if(typeof d=="string"){const h=l(d);h!==d&&(Ge(o)||(o[i]=h),d=h)}r[d]=!0}return r}function Ke(r){for(let o=0;o<r.length;o++)S(r,o)||(r[o]=null);return r}function x(r){const o=ce(null);for(const[l,i]of ie(r))S(r,l)&&(Array.isArray(i)?o[l]=Ke(i):i&&typeof i=="object"&&i.constructor===Object?o[l]=x(i):o[l]=i);return o}function K(r,o){for(;r!==null;){const i=je(r,o);if(i){if(i.get)return A(i.get);if(typeof i.value=="function")return A(i.value)}r=Ye(r)}function l(){return null}return l}const me=E(["a","abbr","acronym","address","area","article","aside","audio","b","bdi","bdo","big","blink","blockquote","body","br","button","canvas","caption","center","cite","code","col","colgroup","content","data","datalist","dd","decorator","del","details","dfn","dialog","dir","div","dl","dt","element","em","fieldset","figcaption","figure","font","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","img","input","ins","kbd","label","legend","li","main","map","mark","marquee","menu","menuitem","meter","nav","nobr","ol","optgroup","option","output","p","picture","pre","progress","q","rp","rt","ruby","s","samp","section","select","shadow","small","source","spacer","span","strike","strong","style","sub","summary","sup","table","tbody","td","template","textarea","tfoot","th","thead","time","tr","track","tt","u","ul","var","video","wbr"]),Lt=E(["svg","a","altglyph","altglyphdef","altglyphitem","animatecolor","animatemotion","animatetransform","circle","clippath","defs","desc","ellipse","filter","font","g","glyph","glyphref","hkern","image","line","lineargradient","marker","mask","metadata","mpath","path","pattern","polygon","polyline","radialgradient","rect","stop","style","switch","symbol","text","textpath","title","tref","tspan","view","vkern"]),Ct=E(["feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feDropShadow","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence"]),Ve=E(["animate","color-profile","cursor","discard","font-face","font-face-format","font-face-name","font-face-src","font-face-uri","foreignobject","hatch","hatchpath","mesh","meshgradient","meshpatch","meshrow","missing-glyph","script","set","solidcolor","unknown","use"]),vt=E(["math","menclose","merror","mfenced","mfrac","mglyph","mi","mlabeledtr","mmultiscripts","mn","mo","mover","mpadded","mphantom","mroot","mrow","ms","mspace","msqrt","mstyle","msub","msup","msubsup","mtable","mtd","mtext","mtr","munder","munderover","mprescripts"]),Ze=E(["maction","maligngroup","malignmark","mlongdiv","mscarries","mscarry","msgroup","mstack","msline","msrow","semantics","annotation","annotation-xml","mprescripts","none"]),pe=E(["#text"]),fe=E(["accept","action","align","alt","autocapitalize","autocomplete","autopictureinpicture","autoplay","background","bgcolor","border","capture","cellpadding","cellspacing","checked","cite","class","clear","color","cols","colspan","controls","controlslist","coords","crossorigin","datetime","decoding","default","dir","disabled","disablepictureinpicture","disableremoteplayback","download","draggable","enctype","enterkeyhint","face","for","headers","height","hidden","high","href","hreflang","id","inputmode","integrity","ismap","kind","label","lang","list","loading","loop","low","max","maxlength","media","method","min","minlength","multiple","muted","name","nonce","noshade","novalidate","nowrap","open","optimum","pattern","placeholder","playsinline","popover","popovertarget","popovertargetaction","poster","preload","pubdate","radiogroup","readonly","rel","required","rev","reversed","role","rows","rowspan","spellcheck","scope","selected","shape","size","sizes","span","srclang","start","src","srcset","step","style","summary","tabindex","title","translate","type","usemap","valign","value","width","wrap","xmlns","slot"]),Dt=E(["accent-height","accumulate","additive","alignment-baseline","amplitude","ascent","attributename","attributetype","azimuth","basefrequency","baseline-shift","begin","bias","by","class","clip","clippathunits","clip-path","clip-rule","color","color-interpolation","color-interpolation-filters","color-profile","color-rendering","cx","cy","d","dx","dy","diffuseconstant","direction","display","divisor","dur","edgemode","elevation","end","exponent","fill","fill-opacity","fill-rule","filter","filterunits","flood-color","flood-opacity","font-family","font-size","font-size-adjust","font-stretch","font-style","font-variant","font-weight","fx","fy","g1","g2","glyph-name","glyphref","gradientunits","gradienttransform","height","href","id","image-rendering","in","in2","intercept","k","k1","k2","k3","k4","kerning","keypoints","keysplines","keytimes","lang","lengthadjust","letter-spacing","kernelmatrix","kernelunitlength","lighting-color","local","marker-end","marker-mid","marker-start","markerheight","markerunits","markerwidth","maskcontentunits","maskunits","max","mask","media","method","mode","min","name","numoctaves","offset","operator","opacity","order","orient","orientation","origin","overflow","paint-order","path","pathlength","patterncontentunits","patterntransform","patternunits","points","preservealpha","preserveaspectratio","primitiveunits","r","rx","ry","radius","refx","refy","repeatcount","repeatdur","restart","result","rotate","scale","seed","shape-rendering","slope","specularconstant","specularexponent","spreadmethod","startoffset","stddeviation","stitchtiles","stop-color","stop-opacity","stroke-dasharray","stroke-dashoffset","stroke-linecap","stroke-linejoin","stroke-miterlimit","stroke-opacity","stroke","stroke-width","style","surfacescale","systemlanguage","tabindex","tablevalues","targetx","targety","transform","transform-origin","text-anchor","text-decoration","text-rendering","textlength","type","u1","u2","unicode","values","viewbox","visibility","version","vert-adv-y","vert-origin-x","vert-origin-y","width","word-spacing","wrap","writing-mode","xchannelselector","ychannelselector","x","x1","x2","xmlns","y","y1","y2","z","zoomandpan"]),de=E(["accent","accentunder","align","bevelled","close","columnsalign","columnlines","columnspan","denomalign","depth","dir","display","displaystyle","encoding","fence","frame","height","href","id","largeop","length","linethickness","lspace","lquote","mathbackground","mathcolor","mathsize","mathvariant","maxsize","minsize","movablelimits","notation","numalign","open","rowalign","rowlines","rowspacing","rowspan","rspace","rquote","scriptlevel","scriptminsize","scriptsizemultiplier","selection","separator","separators","stretchy","subscriptshift","supscriptshift","symmetric","voffset","width","xmlns"]),ct=E(["xlink:href","xml:id","xlink:title","xml:space","xmlns:xlink"]),Je=b(/\{\{[\w\W]*|[\w\W]*\}\}/gm),Qe=b(/<%[\w\W]*|[\w\W]*%>/gm),tn=b(/\${[\w\W]*}/gm),en=b(/^data-[\-\w.\u00B7-\uFFFF]/),nn=b(/^aria-[\-\w]+$/),ge=b(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),on=b(/^(?:\w+script|data):/i),rn=b(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),he=b(/^html$/i),an=b(/^[a-z][.\w]*(-[.\w]+)+$/i);var Te=Object.freeze({__proto__:null,MUSTACHE_EXPR:Je,ERB_EXPR:Qe,TMPLIT_EXPR:tn,DATA_ATTR:en,ARIA_ATTR:nn,IS_ALLOWED_URI:ge,IS_SCRIPT_OR_DATA:on,ATTR_WHITESPACE:rn,DOCTYPE_NAME:he,CUSTOM_ELEMENT:an});const V={element:1,attribute:2,text:3,cdataSection:4,entityReference:5,entityNode:6,progressingInstruction:7,comment:8,document:9,documentType:10,documentFragment:11,notation:12},ln=function(){return typeof window>"u"?null:window},cn=function(r,o){if(typeof r!="object"||typeof r.createPolicy!="function")return null;let l=null;const i="data-tt-policy-suffix";o&&o.hasAttribute(i)&&(l=o.getAttribute(i));const d="dompurify"+(l?"#"+l:"");try{return r.createPolicy(d,{createHTML(h){return h},createScriptURL(h){return h}})}catch{return console.warn("TrustedTypes policy "+d+" could not be created."),null}};function ye(){let r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:ln();const o=t=>ye(t);if(o.version="3.1.7",o.removed=[],!r||!r.document||r.document.nodeType!==V.document)return o.isSupported=!1,o;let{document:l}=r;const i=l,d=i.currentScript,{DocumentFragment:h,HTMLTemplateElement:Z,Node:k,Element:xt,NodeFilter:z,NamedNodeMap:Ee=r.NamedNodeMap||r.MozNamedAttrMap,HTMLFormElement:_e,DOMParser:Ae,trustedTypes:J}=r,W=xt.prototype,Ne=K(W,"cloneNode"),be=K(W,"remove"),Se=K(W,"nextSibling"),Re=K(W,"childNodes"),Q=K(W,"parentNode");if(typeof Z=="function"){const t=l.createElement("template");t.content&&t.content.ownerDocument&&(l=t.content.ownerDocument)}let T,B="";const{implementation:st,createNodeIterator:we,createDocumentFragment:Le,getElementsByTagName:Ce}=l,{importNode:ve}=i;let R={};o.isSupported=typeof ie=="function"&&typeof Q=="function"&&st&&st.createHTMLDocument!==void 0;const{MUSTACHE_EXPR:ut,ERB_EXPR:mt,TMPLIT_EXPR:pt,DATA_ATTR:De,ARIA_ATTR:Oe,IS_SCRIPT_OR_DATA:xe,ATTR_WHITESPACE:kt,CUSTOM_ELEMENT:ke}=Te;let{IS_ALLOWED_URI:It}=Te,m=null;const Mt=a({},[...me,...Lt,...Ct,...vt,...pe]);let p=null;const Ut=a({},[...fe,...Dt,...de,...ct]);let s=Object.seal(ce(null,{tagNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},allowCustomizedBuiltInElements:{writable:!0,configurable:!1,enumerable:!0,value:!1}})),G=null,ft=null,Pt=!0,dt=!0,Ht=!1,Ft=!0,I=!1,gt=!0,D=!1,ht=!1,Tt=!1,M=!1,tt=!1,et=!1,zt=!0,Wt=!1;const Ie="user-content-";let yt=!0,Y=!1,U={},P=null;const Bt=a({},["annotation-xml","audio","colgroup","desc","foreignobject","head","iframe","math","mi","mn","mo","ms","mtext","noembed","noframes","noscript","plaintext","script","style","svg","template","thead","title","video","xmp"]);let Gt=null;const Yt=a({},["audio","video","img","source","image","track"]);let Et=null;const jt=a({},["alt","class","for","id","label","name","pattern","placeholder","role","summary","title","value","style","xmlns"]),nt="http://www.w3.org/1998/Math/MathML",ot="http://www.w3.org/2000/svg",L="http://www.w3.org/1999/xhtml";let H=L,_t=!1,At=null;const Me=a({},[nt,ot,L],wt);let j=null;const Ue=["application/xhtml+xml","text/html"],Pe="text/html";let f=null,F=null;const He=l.createElement("form"),Xt=function(t){return t instanceof RegExp||t instanceof Function},Nt=function(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};if(!(F&&F===t)){if((!t||typeof t!="object")&&(t={}),t=x(t),j=Ue.indexOf(t.PARSER_MEDIA_TYPE)===-1?Pe:t.PARSER_MEDIA_TYPE,f=j==="application/xhtml+xml"?wt:lt,m=S(t,"ALLOWED_TAGS")?a({},t.ALLOWED_TAGS,f):Mt,p=S(t,"ALLOWED_ATTR")?a({},t.ALLOWED_ATTR,f):Ut,At=S(t,"ALLOWED_NAMESPACES")?a({},t.ALLOWED_NAMESPACES,wt):Me,Et=S(t,"ADD_URI_SAFE_ATTR")?a(x(jt),t.ADD_URI_SAFE_ATTR,f):jt,Gt=S(t,"ADD_DATA_URI_TAGS")?a(x(Yt),t.ADD_DATA_URI_TAGS,f):Yt,P=S(t,"FORBID_CONTENTS")?a({},t.FORBID_CONTENTS,f):Bt,G=S(t,"FORBID_TAGS")?a({},t.FORBID_TAGS,f):{},ft=S(t,"FORBID_ATTR")?a({},t.FORBID_ATTR,f):{},U=S(t,"USE_PROFILES")?t.USE_PROFILES:!1,Pt=t.ALLOW_ARIA_ATTR!==!1,dt=t.ALLOW_DATA_ATTR!==!1,Ht=t.ALLOW_UNKNOWN_PROTOCOLS||!1,Ft=t.ALLOW_SELF_CLOSE_IN_ATTR!==!1,I=t.SAFE_FOR_TEMPLATES||!1,gt=t.SAFE_FOR_XML!==!1,D=t.WHOLE_DOCUMENT||!1,M=t.RETURN_DOM||!1,tt=t.RETURN_DOM_FRAGMENT||!1,et=t.RETURN_TRUSTED_TYPE||!1,Tt=t.FORCE_BODY||!1,zt=t.SANITIZE_DOM!==!1,Wt=t.SANITIZE_NAMED_PROPS||!1,yt=t.KEEP_CONTENT!==!1,Y=t.IN_PLACE||!1,It=t.ALLOWED_URI_REGEXP||ge,H=t.NAMESPACE||L,s=t.CUSTOM_ELEMENT_HANDLING||{},t.CUSTOM_ELEMENT_HANDLING&&Xt(t.CUSTOM_ELEMENT_HANDLING.tagNameCheck)&&(s.tagNameCheck=t.CUSTOM_ELEMENT_HANDLING.tagNameCheck),t.CUSTOM_ELEMENT_HANDLING&&Xt(t.CUSTOM_ELEMENT_HANDLING.attributeNameCheck)&&(s.attributeNameCheck=t.CUSTOM_ELEMENT_HANDLING.attributeNameCheck),t.CUSTOM_ELEMENT_HANDLING&&typeof t.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements=="boolean"&&(s.allowCustomizedBuiltInElements=t.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements),I&&(dt=!1),tt&&(M=!0),U&&(m=a({},pe),p=[],U.html===!0&&(a(m,me),a(p,fe)),U.svg===!0&&(a(m,Lt),a(p,Dt),a(p,ct)),U.svgFilters===!0&&(a(m,Ct),a(p,Dt),a(p,ct)),U.mathMl===!0&&(a(m,vt),a(p,de),a(p,ct))),t.ADD_TAGS&&(m===Mt&&(m=x(m)),a(m,t.ADD_TAGS,f)),t.ADD_ATTR&&(p===Ut&&(p=x(p)),a(p,t.ADD_ATTR,f)),t.ADD_URI_SAFE_ATTR&&a(Et,t.ADD_URI_SAFE_ATTR,f),t.FORBID_CONTENTS&&(P===Bt&&(P=x(P)),a(P,t.FORBID_CONTENTS,f)),yt&&(m["#text"]=!0),D&&a(m,["html","head","body"]),m.table&&(a(m,["tbody"]),delete G.tbody),t.TRUSTED_TYPES_POLICY){if(typeof t.TRUSTED_TYPES_POLICY.createHTML!="function")throw $('TRUSTED_TYPES_POLICY configuration option must provide a "createHTML" hook.');if(typeof t.TRUSTED_TYPES_POLICY.createScriptURL!="function")throw $('TRUSTED_TYPES_POLICY configuration option must provide a "createScriptURL" hook.');T=t.TRUSTED_TYPES_POLICY,B=T.createHTML("")}else T===void 0&&(T=cn(J,d)),T!==null&&typeof B=="string"&&(B=T.createHTML(""));E&&E(t),F=t}},qt=a({},["mi","mo","mn","ms","mtext"]),$t=a({},["annotation-xml"]),Fe=a({},["title","style","font","a","script"]),Kt=a({},[...Lt,...Ct,...Ve]),Vt=a({},[...vt,...Ze]),ze=function(t){let n=Q(t);(!n||!n.tagName)&&(n={namespaceURI:H,tagName:"template"});const e=lt(t.tagName),c=lt(n.tagName);return At[t.namespaceURI]?t.namespaceURI===ot?n.namespaceURI===L?e==="svg":n.namespaceURI===nt?e==="svg"&&(c==="annotation-xml"||qt[c]):!!Kt[e]:t.namespaceURI===nt?n.namespaceURI===L?e==="math":n.namespaceURI===ot?e==="math"&&$t[c]:!!Vt[e]:t.namespaceURI===L?n.namespaceURI===ot&&!$t[c]||n.namespaceURI===nt&&!qt[c]?!1:!Vt[e]&&(Fe[e]||!Kt[e]):!!(j==="application/xhtml+xml"&&At[t.namespaceURI]):!1},O=function(t){X(o.removed,{element:t});try{Q(t).removeChild(t)}catch{be(t)}},rt=function(t,n){try{X(o.removed,{attribute:n.getAttributeNode(t),from:n})}catch{X(o.removed,{attribute:null,from:n})}if(n.removeAttribute(t),t==="is"&&!p[t])if(M||tt)try{O(n)}catch{}else try{n.setAttribute(t,"")}catch{}},Zt=function(t){let n=null,e=null;if(Tt)t="<remove></remove>"+t;else{const u=ue(t,/^[\r\n\t ]+/);e=u&&u[0]}j==="application/xhtml+xml"&&H===L&&(t='<html xmlns="http://www.w3.org/1999/xhtml"><head></head><body>'+t+"</body></html>");const c=T?T.createHTML(t):t;if(H===L)try{n=new Ae().parseFromString(c,j)}catch{}if(!n||!n.documentElement){n=st.createDocument(H,"template",null);try{n.documentElement.innerHTML=_t?B:c}catch{}}const g=n.body||n.documentElement;return t&&e&&g.insertBefore(l.createTextNode(e),g.childNodes[0]||null),H===L?Ce.call(n,D?"html":"body")[0]:D?n.documentElement:g},Jt=function(t){return we.call(t.ownerDocument||t,t,z.SHOW_ELEMENT|z.SHOW_COMMENT|z.SHOW_TEXT|z.SHOW_PROCESSING_INSTRUCTION|z.SHOW_CDATA_SECTION,null)},Qt=function(t){return t instanceof _e&&(typeof t.nodeName!="string"||typeof t.textContent!="string"||typeof t.removeChild!="function"||!(t.attributes instanceof Ee)||typeof t.removeAttribute!="function"||typeof t.setAttribute!="function"||typeof t.namespaceURI!="string"||typeof t.insertBefore!="function"||typeof t.hasChildNodes!="function")},te=function(t){return typeof k=="function"&&t instanceof k},C=function(t,n,e){R[t]&&it(R[t],c=>{c.call(o,n,e,F)})},ee=function(t){let n=null;if(C("beforeSanitizeElements",t,null),Qt(t))return O(t),!0;const e=f(t.nodeName);if(C("uponSanitizeElement",t,{tagName:e,allowedTags:m}),t.hasChildNodes()&&!te(t.firstElementChild)&&_(/<[/\w]/g,t.innerHTML)&&_(/<[/\w]/g,t.textContent)||t.nodeType===V.progressingInstruction||gt&&t.nodeType===V.comment&&_(/<[/\w]/g,t.data))return O(t),!0;if(!m[e]||G[e]){if(!G[e]&&oe(e)&&(s.tagNameCheck instanceof RegExp&&_(s.tagNameCheck,e)||s.tagNameCheck instanceof Function&&s.tagNameCheck(e)))return!1;if(yt&&!P[e]){const c=Q(t)||t.parentNode,g=Re(t)||t.childNodes;if(g&&c){const u=g.length;for(let v=u-1;v>=0;--v){const N=Ne(g[v],!0);N.__removalCount=(t.__removalCount||0)+1,c.insertBefore(N,Se(t))}}}return O(t),!0}return t instanceof xt&&!ze(t)||(e==="noscript"||e==="noembed"||e==="noframes")&&_(/<\/no(script|embed|frames)/i,t.innerHTML)?(O(t),!0):(I&&t.nodeType===V.text&&(n=t.textContent,it([ut,mt,pt],c=>{n=q(n,c," ")}),t.textContent!==n&&(X(o.removed,{element:t.cloneNode()}),t.textContent=n)),C("afterSanitizeElements",t,null),!1)},ne=function(t,n,e){if(zt&&(n==="id"||n==="name")&&(e in l||e in He))return!1;if(!(dt&&!ft[n]&&_(De,n))&&!(Pt&&_(Oe,n))){if(!p[n]||ft[n]){if(!(oe(t)&&(s.tagNameCheck instanceof RegExp&&_(s.tagNameCheck,t)||s.tagNameCheck instanceof Function&&s.tagNameCheck(t))&&(s.attributeNameCheck instanceof RegExp&&_(s.attributeNameCheck,n)||s.attributeNameCheck instanceof Function&&s.attributeNameCheck(n))||n==="is"&&s.allowCustomizedBuiltInElements&&(s.tagNameCheck instanceof RegExp&&_(s.tagNameCheck,e)||s.tagNameCheck instanceof Function&&s.tagNameCheck(e))))return!1}else if(!Et[n]&&!_(It,q(e,kt,""))&&!((n==="src"||n==="xlink:href"||n==="href")&&t!=="script"&&Xe(e,"data:")===0&&Gt[t])&&!(Ht&&!_(xe,q(e,kt,"")))&&e)return!1}return!0},oe=function(t){return t!=="annotation-xml"&&ue(t,ke)},re=function(t){C("beforeSanitizeAttributes",t,null);const{attributes:n}=t;if(!n)return;const e={attrName:"",attrValue:"",keepAttr:!0,allowedAttributes:p};let c=n.length;for(;c--;){const g=n[c],{name:u,namespaceURI:v,value:N}=g,w=f(u);let y=u==="value"?N:qe(N);if(e.attrName=w,e.attrValue=y,e.keepAttr=!0,e.forceKeepAttr=void 0,C("uponSanitizeAttribute",t,e),y=e.attrValue,e.forceKeepAttr||(rt(u,t),!e.keepAttr))continue;if(!Ft&&_(/\/>/i,y)){rt(u,t);continue}I&&it([ut,mt,pt],Be=>{y=q(y,Be," ")});const ae=f(t.nodeName);if(ne(ae,w,y)){if(Wt&&(w==="id"||w==="name")&&(rt(u,t),y=Ie+y),gt&&_(/((--!?|])>)|<\/(style|title)/i,y)){rt(u,t);continue}if(T&&typeof J=="object"&&typeof J.getAttributeType=="function"&&!v)switch(J.getAttributeType(ae,w)){case"TrustedHTML":{y=T.createHTML(y);break}case"TrustedScriptURL":{y=T.createScriptURL(y);break}}try{v?t.setAttributeNS(v,u,y):t.setAttribute(u,y),Qt(t)?O(t):se(o.removed)}catch{}}}C("afterSanitizeAttributes",t,null)},We=function t(n){let e=null;const c=Jt(n);for(C("beforeSanitizeShadowDOM",n,null);e=c.nextNode();)C("uponSanitizeShadowNode",e,null),!ee(e)&&(e.content instanceof h&&t(e.content),re(e));C("afterSanitizeShadowDOM",n,null)};return o.sanitize=function(t){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},e=null,c=null,g=null,u=null;if(_t=!t,_t&&(t="<!-->"),typeof t!="string"&&!te(t))if(typeof t.toString=="function"){if(t=t.toString(),typeof t!="string")throw $("dirty is not a string, aborting")}else throw $("toString is not a function");if(!o.isSupported)return t;if(ht||Nt(n),o.removed=[],typeof t=="string"&&(Y=!1),Y){if(t.nodeName){const w=f(t.nodeName);if(!m[w]||G[w])throw $("root node is forbidden and cannot be sanitized in-place")}}else if(t instanceof k)e=Zt("<!---->"),c=e.ownerDocument.importNode(t,!0),c.nodeType===V.element&&c.nodeName==="BODY"||c.nodeName==="HTML"?e=c:e.appendChild(c);else{if(!M&&!I&&!D&&t.indexOf("<")===-1)return T&&et?T.createHTML(t):t;if(e=Zt(t),!e)return M?null:et?B:""}e&&Tt&&O(e.firstChild);const v=Jt(Y?t:e);for(;g=v.nextNode();)ee(g)||(g.content instanceof h&&We(g.content),re(g));if(Y)return t;if(M){if(tt)for(u=Le.call(e.ownerDocument);e.firstChild;)u.appendChild(e.firstChild);else u=e;return(p.shadowroot||p.shadowrootmode)&&(u=ve.call(i,u,!0)),u}let N=D?e.outerHTML:e.innerHTML;return D&&m["!doctype"]&&e.ownerDocument&&e.ownerDocument.doctype&&e.ownerDocument.doctype.name&&_(he,e.ownerDocument.doctype.name)&&(N="<!DOCTYPE "+e.ownerDocument.doctype.name+`>
2
2
  `+N),I&&it([ut,mt,pt],w=>{N=q(N,w," ")}),T&&et?T.createHTML(N):N},o.setConfig=function(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};Nt(t),ht=!0},o.clearConfig=function(){F=null,ht=!1},o.isValidAttribute=function(t,n,e){F||Nt({});const c=f(t),g=f(n);return ne(c,g,e)},o.addHook=function(t,n){typeof n=="function"&&(R[t]=R[t]||[],X(R[t],n))},o.removeHook=function(t){if(R[t])return se(R[t])},o.removeHooks=function(t){R[t]&&(R[t]=[])},o.removeAllHooks=function(){R={}},o}var sn=ye();const Ot=r=>{const o={USE_PROFILES:{html:!0},FORCE_BODY:!0};return sn.sanitize(r,o)};function un({element:r,width:o}){const{body:l}=r,[i,d]=at.useState(Ot(l)),h=at.useRef(null);return at.useEffect(()=>{Ot(l)!==i&&d(Ot(l))},[l]),at.useEffect(()=>{var Z,k;((Z=h.current)==null?void 0:Z.clientHeight)===0&&((k=h.current.parentElement)==null?void 0:k.childElementCount)===1&&h.current.parentElement.classList.add("stHtml-empty")}),bt.jsx(bt.Fragment,{children:i&&bt.jsx("div",{className:"stHtml","data-testid":"stHtml",ref:h,style:{width:o},dangerouslySetInnerHTML:{__html:i}})})}export{un as default};