@stlite/desktop 0.88.0 → 0.89.1

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 (78) hide show
  1. package/bin/dump_artifacts.js +2 -2
  2. package/build/assets/{ErrorOutline.esm-D5Ifiwqa.js → ErrorOutline.esm-D2SwfuYU.js} +1 -1
  3. package/build/assets/{FileDownload.esm-DOHSKnrq.js → FileDownload.esm-C2Gywq_5.js} +1 -1
  4. package/build/assets/{FileHelper-BTXiVf4-.js → FileHelper-TEIN3a2s.js} +1 -1
  5. package/build/assets/{FormClearHelper-BC4K9Zmh.js → FormClearHelper-DBsQ33IR.js} +1 -1
  6. package/build/assets/{Hooks-GYU3aDYH.js → Hooks-BdfQKLev.js} +1 -1
  7. package/build/assets/{InputInstructions-CqSmotDL.js → InputInstructions-CtPX8G6i.js} +1 -1
  8. package/build/assets/{Particles-DKyXwmGK.js → Particles-CftaQRnu.js} +1 -1
  9. package/build/assets/{ProgressBar-B7cXo5Zk.js → ProgressBar-M7ATKOrt.js} +1 -1
  10. package/build/assets/{Toolbar-CF99-ktZ.js → Toolbar-AvCHJeN3.js} +1 -1
  11. package/build/assets/{base-input-Bu7lYJya.js → base-input-C1jq7mBd.js} +1 -1
  12. package/build/assets/{checkbox-vy_88iMk.js → checkbox-mkpBvvtC.js} +1 -1
  13. package/build/assets/{createSuper-BZDCsfCp.js → createSuper-BqkNEFMI.js} +1 -1
  14. package/build/assets/{data-grid-overlay-editor-P0wPqvRS.js → data-grid-overlay-editor-Kkg8Jnuo.js} +1 -1
  15. package/build/assets/{downloader-E6SH6tis.js → downloader-D5bOXv0f.js} +1 -1
  16. package/build/assets/{es6-lWl2HAKQ.js → es6-dD9evgqV.js} +2 -2
  17. package/build/assets/{iframeResizer.contentWindow-BblXhc8K.js → iframeResizer.contentWindow-CcIGM7Tj.js} +1 -1
  18. package/build/assets/{index-CHcwRuRz.js → index-65i-IYyx.js} +1 -1
  19. package/build/assets/{index-C0rU7wjo.js → index-6GmirbOq.js} +1 -1
  20. package/build/assets/{index-Bl3t7YE9.js → index-B6MoDIcs.js} +1 -1
  21. package/build/assets/{index-rGN93mnX.js → index-B6dp8D8K.js} +1 -1
  22. package/build/assets/{index-sNwZkMcg.js → index-B_ESKJn8.js} +1 -1
  23. package/build/assets/{index-BHD6dN1i.js → index-Bn07Nrcj.js} +1 -1
  24. package/build/assets/{index-BAt37HPV.js → index-BvsGq1E8.js} +1 -1
  25. package/build/assets/{index-BHYA8KUU.js → index-BwDs6Dqm.js} +1 -1
  26. package/build/assets/{index-NFS9SZBh.js → index-BzxHONei.js} +1 -1
  27. package/build/assets/{index-DKJBdNcR.js → index-C3s_fpYA.js} +1 -1
  28. package/build/assets/{index-D7qhlvAL.js → index-COglCO5Z.js} +5 -5
  29. package/build/assets/{index-UG5gS873.js → index-CRXKMFnY.js} +1 -1
  30. package/build/assets/{index-tGudOCY7.js → index-CZ-g3tsi.js} +1 -1
  31. package/build/assets/{index-9Wb22-Zl.js → index-CaQBKEJy.js} +1 -1
  32. package/build/assets/{index-CcNoZyGq.js → index-Cbwanp8_.js} +1 -1
  33. package/build/assets/{index-DodBZ077.js → index-CmCzhGLu.js} +1 -1
  34. package/build/assets/{index-COVY3it_.js → index-Cmk6T6xH.js} +1 -1
  35. package/build/assets/{index-Ba8Fd3Iw.js → index-CuAJIEXV.js} +1 -1
  36. package/build/assets/{index-oUxYecyl.js → index-CyGIJHIN.js} +1 -1
  37. package/build/assets/{index-E1lgIpin.js → index-D9I-_Axj.js} +1 -1
  38. package/build/assets/{index-Ck8oqwxV.js → index-DRnW2Id8.js} +1 -1
  39. package/build/assets/{index-LjAoKxoo.js → index-Dpl6MGkr.js} +1 -1
  40. package/build/assets/{index-J69gSkQ7.js → index-Du10bw-R.js} +1 -1
  41. package/build/assets/{index-CO2uSAB4.js → index-GIlSUqbu.js} +1 -1
  42. package/build/assets/{index-DPhgZ6z8.js → index-GZIk974x.js} +1 -1
  43. package/build/assets/{index-C9dv_cRO.js → index-GZgkD7uG.js} +1 -1
  44. package/build/assets/{index-C8408c32.js → index-N4aGA-cE.js} +1 -1
  45. package/build/assets/{index-CBgaSeZa.js → index-P6F5Xebr.js} +1 -1
  46. package/build/assets/{index-D1lT9gPf.js → index-XJiwj79b.js} +1 -1
  47. package/build/assets/{index-CESihKoP.js → index-_maoKajI.js} +1 -1
  48. package/build/assets/{index-C_XWYeXZ.js → index-cMy3wqhE.js} +1 -1
  49. package/build/assets/{index-B2QqSXxG.js → index-clm6On2Y.js} +4 -4
  50. package/build/assets/{index-IjmnJRcJ.js → index-i6_APaSl.js} +1 -1
  51. package/build/assets/{index-DDHABoz7.js → index-npEbF0j6.js} +1 -1
  52. package/build/assets/{index-3q7VEUlu.js → index-o_WbG_Oh.js} +1 -1
  53. package/build/assets/{index-DLKkPsKG.js → index-w_HPESMz.js} +1 -1
  54. package/build/assets/{index-CeooaFxj.js → index-yIAfElop.js} +1 -1
  55. package/build/assets/{inherits-CxdXuG_P.js → inherits-D8N0057t.js} +1 -1
  56. package/build/assets/{input-CK3Z1ctS.js → input-D2HjwqoP.js} +1 -1
  57. package/build/assets/{memory-F_WtxrTu.js → memory-DWwc6pLO.js} +1 -1
  58. package/build/assets/{mergeWith-DB-_2-Rw.js → mergeWith-BGcS1SpY.js} +1 -1
  59. package/build/assets/{number-overlay-editor-B9-dA9Oc.js → number-overlay-editor-B6CLC0X9.js} +1 -1
  60. package/build/assets/{sandbox-OL9X-HVr.js → sandbox-C6oygvjW.js} +1 -1
  61. package/build/assets/{slicedToArray-Dcf1iVtV.js → slicedToArray-DOoFLiRi.js} +1 -1
  62. package/build/assets/{timepicker-CNx-qwHe.js → timepicker-C7DrJdVV.js} +1 -1
  63. package/build/assets/{uniqueId-B67KB2Sb.js → uniqueId-C1Mkja_B.js} +1 -1
  64. package/build/assets/{useBasicWidgetState-DVIC6bdr.js → useBasicWidgetState-CCltHZT9.js} +1 -1
  65. package/build/assets/{useTextInputAutoExpand-D9ObUIEt.js → useTextInputAutoExpand-LP-kJAB7.js} +1 -1
  66. package/build/assets/{useUpdateUiValue-BpA660Wd.js → useUpdateUiValue-JsRPimPm.js} +1 -1
  67. package/build/assets/{withFullScreenWrapper-CQbXKdaQ.js → withFullScreenWrapper-CKQjmc-1.js} +1 -1
  68. package/build/assets/{worker-Cet_Vg8m.js → worker-CiNU4sgs.js} +3 -3
  69. package/build/electron/worker.js +3 -3
  70. package/build/index.html +1 -1
  71. package/build/pyodide/pyodide-lock.json +1 -1
  72. package/build/pyodide/pyodide.asm.js +2 -4
  73. package/build/pyodide/pyodide.asm.wasm +0 -0
  74. package/build/pyodide/pyodide.mjs +3 -3
  75. package/build/pyodide/python_stdlib.zip +0 -0
  76. package/package.json +6 -6
  77. package/wheels/streamlit-1.48.0-cp313-none-any.whl +0 -0
  78. package/wheels/streamlit-1.48.0-cp312-none-any.whl +0 -0
@@ -1 +1 @@
1
- import{c as r,r as t,H as i,j as o,bA as c,bB as l,F as d}from"./index-B2QqSXxG.js";const m=r("iframe",{target:"e1u6k47s0"})(({theme:e,disableScrolling:n})=>({width:"100%",colorScheme:"normal",border:"none",padding:e.spacing.none,margin:e.spacing.none,overflow:n?"hidden":void 0}),"");function s(e){return d(e)||e===""?void 0:e}function g({element:e}){const n=s(e.src),a=i(n)?void 0:s(e.srcdoc);return o.jsx(m,{className:"stIFrame","data-testid":"stIFrame",allow:l,disableScrolling:!e.scrolling,src:n,srcDoc:a,height:e.height,scrolling:e.scrolling?"auto":"no",sandbox:c,title:"st.iframe",tabIndex:e.tabIndex??void 0})}const b=t.memo(g);export{b as default};
1
+ import{c as r,r as t,H as i,j as o,bA as c,bB as l,F as d}from"./index-clm6On2Y.js";const m=r("iframe",{target:"e1u6k47s0"})(({theme:e,disableScrolling:n})=>({width:"100%",colorScheme:"normal",border:"none",padding:e.spacing.none,margin:e.spacing.none,overflow:n?"hidden":void 0}),"");function s(e){return d(e)||e===""?void 0:e}function g({element:e}){const n=s(e.src),a=i(n)?void 0:s(e.srcdoc);return o.jsx(m,{className:"stIFrame","data-testid":"stIFrame",allow:l,disableScrolling:!e.scrolling,src:n,srcDoc:a,height:e.height,scrolling:e.scrolling?"auto":"no",sandbox:c,title:"st.iframe",tabIndex:e.tabIndex??void 0})}const b=t.memo(g);export{b as default};
@@ -1,2 +1,2 @@
1
- import{c as Xe,r as ie,j as Rt}from"./index-B2QqSXxG.js";/*! @license DOMPurify 3.2.6 | (c) Cure53 and other contributors | Released under the Apache license 2.0 and Mozilla Public License 2.0 | github.com/cure53/DOMPurify/blob/3.2.6/LICENSE */const{entries:le,setPrototypeOf:se,isFrozen:qe,getPrototypeOf:$e,getOwnPropertyDescriptor:Ke}=Object;let{freeze:y,seal:b,create:ce}=Object,{apply:wt,construct:Ot}=typeof Reflect<"u"&&Reflect;y||(y=function(r){return r}),b||(b=function(r){return r}),wt||(wt=function(r,o,i){return r.apply(o,i)}),Ot||(Ot=function(r,o){return new r(...o)});const it=_(Array.prototype.forEach),Ve=_(Array.prototype.lastIndexOf),ue=_(Array.prototype.pop),X=_(Array.prototype.push),Ze=_(Array.prototype.splice),lt=_(String.prototype.toLowerCase),Lt=_(String.prototype.toString),me=_(String.prototype.match),q=_(String.prototype.replace),Je=_(String.prototype.indexOf),Qe=_(String.prototype.trim),S=_(Object.prototype.hasOwnProperty),A=_(RegExp.prototype.test),$=tn(TypeError);function _(r){return function(o){o instanceof RegExp&&(o.lastIndex=0);for(var i=arguments.length,l=new Array(i>1?i-1:0),h=1;h<i;h++)l[h-1]=arguments[h];return wt(r,o,l)}}function tn(r){return function(){for(var o=arguments.length,i=new Array(o),l=0;l<o;l++)i[l]=arguments[l];return Ot(r,i)}}function a(r,o){let i=arguments.length>2&&arguments[2]!==void 0?arguments[2]:lt;se&&se(r,null);let l=o.length;for(;l--;){let h=o[l];if(typeof h=="string"){const R=i(h);R!==h&&(qe(o)||(o[l]=R),h=R)}r[h]=!0}return r}function en(r){for(let o=0;o<r.length;o++)S(r,o)||(r[o]=null);return r}function D(r){const o=ce(null);for(const[i,l]of le(r))S(r,i)&&(Array.isArray(l)?o[i]=en(l):l&&typeof l=="object"&&l.constructor===Object?o[i]=D(l):o[i]=l);return o}function K(r,o){for(;r!==null;){const l=Ke(r,o);if(l){if(l.get)return _(l.get);if(typeof l.value=="function")return _(l.value)}r=$e(r)}function i(){return null}return i}const pe=y(["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"]),vt=y(["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"]),Dt=y(["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"]),nn=y(["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"]),Ct=y(["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"]),on=y(["maction","maligngroup","malignmark","mlongdiv","mscarries","mscarry","msgroup","mstack","msline","msrow","semantics","annotation","annotation-xml","mprescripts","none"]),fe=y(["#text"]),de=y(["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"]),xt=y(["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"]),ge=y(["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"]),st=y(["xlink:href","xml:id","xlink:title","xml:space","xmlns:xlink"]),rn=b(/\{\{[\w\W]*|[\w\W]*\}\}/gm),an=b(/<%[\w\W]*|[\w\W]*%>/gm),ln=b(/\$\{[\w\W]*/gm),sn=b(/^data-[\-\w.\u00B7-\uFFFF]+$/),cn=b(/^aria-[\-\w]+$/),he=b(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp|matrix):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),un=b(/^(?:\w+script|data):/i),mn=b(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),Te=b(/^html$/i),pn=b(/^[a-z][.\w]*(-[.\w]+)+$/i);var Ee=Object.freeze({__proto__:null,ARIA_ATTR:cn,ATTR_WHITESPACE:mn,CUSTOM_ELEMENT:pn,DATA_ATTR:sn,DOCTYPE_NAME:Te,ERB_EXPR:an,IS_ALLOWED_URI:he,IS_SCRIPT_OR_DATA:un,MUSTACHE_EXPR:rn,TMPLIT_EXPR:ln});const V={element:1,text:3,progressingInstruction:7,comment:8,document:9},fn=function(){return typeof window>"u"?null:window},dn=function(r,o){if(typeof r!="object"||typeof r.createPolicy!="function")return null;let i=null;const l="data-tt-policy-suffix";o&&o.hasAttribute(l)&&(i=o.getAttribute(l));const h="dompurify"+(i?"#"+i:"");try{return r.createPolicy(h,{createHTML(R){return R},createScriptURL(R){return R}})}catch{return console.warn("TrustedTypes policy "+h+" could not be created."),null}},ye=function(){return{afterSanitizeAttributes:[],afterSanitizeElements:[],afterSanitizeShadowDOM:[],beforeSanitizeAttributes:[],beforeSanitizeElements:[],beforeSanitizeShadowDOM:[],uponSanitizeAttribute:[],uponSanitizeElement:[],uponSanitizeShadowNode:[]}};function Ae(){let r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:fn();const o=t=>Ae(t);if(o.version="3.2.6",o.removed=[],!r||!r.document||r.document.nodeType!==V.document||!r.Element)return o.isSupported=!1,o;let{document:i}=r;const l=i,h=l.currentScript,{DocumentFragment:R,HTMLTemplateElement:_e,Node:ct,Element:Mt,NodeFilter:F,NamedNodeMap:be=r.NamedNodeMap||r.MozNamedAttrMap,HTMLFormElement:Ne,DOMParser:Se,trustedTypes:Z}=r,W=Mt.prototype,Re=K(W,"cloneNode"),we=K(W,"remove"),Oe=K(W,"nextSibling"),Le=K(W,"childNodes"),J=K(W,"parentNode");if(typeof _e=="function"){const t=i.createElement("template");t.content&&t.content.ownerDocument&&(i=t.content.ownerDocument)}let T,B="";const{implementation:ut,createNodeIterator:ve,createDocumentFragment:De,getElementsByTagName:Ce}=i,{importNode:xe}=l;let E=ye();o.isSupported=typeof le=="function"&&typeof J=="function"&&ut&&ut.createHTMLDocument!==void 0;const{MUSTACHE_EXPR:mt,ERB_EXPR:pt,TMPLIT_EXPR:ft,DATA_ATTR:ke,ARIA_ATTR:Ie,IS_SCRIPT_OR_DATA:Me,ATTR_WHITESPACE:Ut,CUSTOM_ELEMENT:Ue}=Ee;let{IS_ALLOWED_URI:Pt}=Ee,m=null;const Ht=a({},[...pe,...vt,...Dt,...Ct,...fe]);let f=null;const zt=a({},[...de,...xt,...ge,...st]);let u=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,dt=null,Ft=!0,gt=!0,Wt=!1,Bt=!0,k=!1,Q=!0,C=!1,ht=!1,Tt=!1,I=!1,tt=!1,et=!1,Gt=!0,Yt=!1;const Pe="user-content-";let Et=!0,Y=!1,M={},U=null;const jt=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 Xt=null;const qt=a({},["audio","video","img","source","image","track"]);let yt=null;const $t=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",O="http://www.w3.org/1999/xhtml";let P=O,At=!1,_t=null;const He=a({},[nt,ot,O],Lt);let rt=a({},["mi","mo","mn","ms","mtext"]),at=a({},["annotation-xml"]);const ze=a({},["title","style","font","a","script"]);let j=null;const Fe=["application/xhtml+xml","text/html"],We="text/html";let p=null,H=null;const Be=i.createElement("form"),Kt=function(t){return t instanceof RegExp||t instanceof Function},bt=function(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};if(!(H&&H===t)){if((!t||typeof t!="object")&&(t={}),t=D(t),j=Fe.indexOf(t.PARSER_MEDIA_TYPE)===-1?We:t.PARSER_MEDIA_TYPE,p=j==="application/xhtml+xml"?Lt:lt,m=S(t,"ALLOWED_TAGS")?a({},t.ALLOWED_TAGS,p):Ht,f=S(t,"ALLOWED_ATTR")?a({},t.ALLOWED_ATTR,p):zt,_t=S(t,"ALLOWED_NAMESPACES")?a({},t.ALLOWED_NAMESPACES,Lt):He,yt=S(t,"ADD_URI_SAFE_ATTR")?a(D($t),t.ADD_URI_SAFE_ATTR,p):$t,Xt=S(t,"ADD_DATA_URI_TAGS")?a(D(qt),t.ADD_DATA_URI_TAGS,p):qt,U=S(t,"FORBID_CONTENTS")?a({},t.FORBID_CONTENTS,p):jt,G=S(t,"FORBID_TAGS")?a({},t.FORBID_TAGS,p):D({}),dt=S(t,"FORBID_ATTR")?a({},t.FORBID_ATTR,p):D({}),M=S(t,"USE_PROFILES")?t.USE_PROFILES:!1,Ft=t.ALLOW_ARIA_ATTR!==!1,gt=t.ALLOW_DATA_ATTR!==!1,Wt=t.ALLOW_UNKNOWN_PROTOCOLS||!1,Bt=t.ALLOW_SELF_CLOSE_IN_ATTR!==!1,k=t.SAFE_FOR_TEMPLATES||!1,Q=t.SAFE_FOR_XML!==!1,C=t.WHOLE_DOCUMENT||!1,I=t.RETURN_DOM||!1,tt=t.RETURN_DOM_FRAGMENT||!1,et=t.RETURN_TRUSTED_TYPE||!1,Tt=t.FORCE_BODY||!1,Gt=t.SANITIZE_DOM!==!1,Yt=t.SANITIZE_NAMED_PROPS||!1,Et=t.KEEP_CONTENT!==!1,Y=t.IN_PLACE||!1,Pt=t.ALLOWED_URI_REGEXP||he,P=t.NAMESPACE||O,rt=t.MATHML_TEXT_INTEGRATION_POINTS||rt,at=t.HTML_INTEGRATION_POINTS||at,u=t.CUSTOM_ELEMENT_HANDLING||{},t.CUSTOM_ELEMENT_HANDLING&&Kt(t.CUSTOM_ELEMENT_HANDLING.tagNameCheck)&&(u.tagNameCheck=t.CUSTOM_ELEMENT_HANDLING.tagNameCheck),t.CUSTOM_ELEMENT_HANDLING&&Kt(t.CUSTOM_ELEMENT_HANDLING.attributeNameCheck)&&(u.attributeNameCheck=t.CUSTOM_ELEMENT_HANDLING.attributeNameCheck),t.CUSTOM_ELEMENT_HANDLING&&typeof t.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements=="boolean"&&(u.allowCustomizedBuiltInElements=t.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements),k&&(gt=!1),tt&&(I=!0),M&&(m=a({},fe),f=[],M.html===!0&&(a(m,pe),a(f,de)),M.svg===!0&&(a(m,vt),a(f,xt),a(f,st)),M.svgFilters===!0&&(a(m,Dt),a(f,xt),a(f,st)),M.mathMl===!0&&(a(m,Ct),a(f,ge),a(f,st))),t.ADD_TAGS&&(m===Ht&&(m=D(m)),a(m,t.ADD_TAGS,p)),t.ADD_ATTR&&(f===zt&&(f=D(f)),a(f,t.ADD_ATTR,p)),t.ADD_URI_SAFE_ATTR&&a(yt,t.ADD_URI_SAFE_ATTR,p),t.FORBID_CONTENTS&&(U===jt&&(U=D(U)),a(U,t.FORBID_CONTENTS,p)),Et&&(m["#text"]=!0),C&&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=dn(Z,h)),T!==null&&typeof B=="string"&&(B=T.createHTML(""));y&&y(t),H=t}},Vt=a({},[...vt,...Dt,...nn]),Zt=a({},[...Ct,...on]),Ge=function(t){let n=J(t);(!n||!n.tagName)&&(n={namespaceURI:P,tagName:"template"});const e=lt(t.tagName),s=lt(n.tagName);return _t[t.namespaceURI]?t.namespaceURI===ot?n.namespaceURI===O?e==="svg":n.namespaceURI===nt?e==="svg"&&(s==="annotation-xml"||rt[s]):!!Vt[e]:t.namespaceURI===nt?n.namespaceURI===O?e==="math":n.namespaceURI===ot?e==="math"&&at[s]:!!Zt[e]:t.namespaceURI===O?n.namespaceURI===ot&&!at[s]||n.namespaceURI===nt&&!rt[s]?!1:!Zt[e]&&(ze[e]||!Vt[e]):!!(j==="application/xhtml+xml"&&_t[t.namespaceURI]):!1},x=function(t){X(o.removed,{element:t});try{J(t).removeChild(t)}catch{we(t)}},z=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")if(I||tt)try{x(n)}catch{}else try{n.setAttribute(t,"")}catch{}},Jt=function(t){let n=null,e=null;if(Tt)t="<remove></remove>"+t;else{const c=me(t,/^[\r\n\t ]+/);e=c&&c[0]}j==="application/xhtml+xml"&&P===O&&(t='<html xmlns="http://www.w3.org/1999/xhtml"><head></head><body>'+t+"</body></html>");const s=T?T.createHTML(t):t;if(P===O)try{n=new Se().parseFromString(s,j)}catch{}if(!n||!n.documentElement){n=ut.createDocument(P,"template",null);try{n.documentElement.innerHTML=At?B:s}catch{}}const d=n.body||n.documentElement;return t&&e&&d.insertBefore(i.createTextNode(e),d.childNodes[0]||null),P===O?Ce.call(n,C?"html":"body")[0]:C?n.documentElement:d},Qt=function(t){return ve.call(t.ownerDocument||t,t,F.SHOW_ELEMENT|F.SHOW_COMMENT|F.SHOW_TEXT|F.SHOW_PROCESSING_INSTRUCTION|F.SHOW_CDATA_SECTION,null)},Nt=function(t){return t instanceof Ne&&(typeof t.nodeName!="string"||typeof t.textContent!="string"||typeof t.removeChild!="function"||!(t.attributes instanceof be)||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 ct=="function"&&t instanceof ct};function L(t,n,e){it(t,s=>{s.call(o,n,e,H)})}const ee=function(t){let n=null;if(L(E.beforeSanitizeElements,t,null),Nt(t))return x(t),!0;const e=p(t.nodeName);if(L(E.uponSanitizeElement,t,{tagName:e,allowedTags:m}),Q&&t.hasChildNodes()&&!te(t.firstElementChild)&&A(/<[/\w!]/g,t.innerHTML)&&A(/<[/\w!]/g,t.textContent)||t.nodeType===V.progressingInstruction||Q&&t.nodeType===V.comment&&A(/<[/\w]/g,t.data))return x(t),!0;if(!m[e]||G[e]){if(!G[e]&&oe(e)&&(u.tagNameCheck instanceof RegExp&&A(u.tagNameCheck,e)||u.tagNameCheck instanceof Function&&u.tagNameCheck(e)))return!1;if(Et&&!U[e]){const s=J(t)||t.parentNode,d=Le(t)||t.childNodes;if(d&&s){const c=d.length;for(let v=c-1;v>=0;--v){const N=Re(d[v],!0);N.__removalCount=(t.__removalCount||0)+1,s.insertBefore(N,Oe(t))}}}return x(t),!0}return t instanceof Mt&&!Ge(t)||(e==="noscript"||e==="noembed"||e==="noframes")&&A(/<\/no(script|embed|frames)/i,t.innerHTML)?(x(t),!0):(k&&t.nodeType===V.text&&(n=t.textContent,it([mt,pt,ft],s=>{n=q(n,s," ")}),t.textContent!==n&&(X(o.removed,{element:t.cloneNode()}),t.textContent=n)),L(E.afterSanitizeElements,t,null),!1)},ne=function(t,n,e){if(Gt&&(n==="id"||n==="name")&&(e in i||e in Be))return!1;if(!(gt&&!dt[n]&&A(ke,n))&&!(Ft&&A(Ie,n))){if(!f[n]||dt[n]){if(!(oe(t)&&(u.tagNameCheck instanceof RegExp&&A(u.tagNameCheck,t)||u.tagNameCheck instanceof Function&&u.tagNameCheck(t))&&(u.attributeNameCheck instanceof RegExp&&A(u.attributeNameCheck,n)||u.attributeNameCheck instanceof Function&&u.attributeNameCheck(n))||n==="is"&&u.allowCustomizedBuiltInElements&&(u.tagNameCheck instanceof RegExp&&A(u.tagNameCheck,e)||u.tagNameCheck instanceof Function&&u.tagNameCheck(e))))return!1}else if(!yt[n]&&!A(Pt,q(e,Ut,""))&&!((n==="src"||n==="xlink:href"||n==="href")&&t!=="script"&&Je(e,"data:")===0&&Xt[t])&&!(Wt&&!A(Me,q(e,Ut,"")))&&e)return!1}return!0},oe=function(t){return t!=="annotation-xml"&&me(t,Ue)},re=function(t){L(E.beforeSanitizeAttributes,t,null);const{attributes:n}=t;if(!n||Nt(t))return;const e={attrName:"",attrValue:"",keepAttr:!0,allowedAttributes:f,forceKeepAttr:void 0};let s=n.length;for(;s--;){const d=n[s],{name:c,namespaceURI:v,value:N}=d,w=p(c),St=N;let g=c==="value"?St:Qe(St);if(e.attrName=w,e.attrValue=g,e.keepAttr=!0,e.forceKeepAttr=void 0,L(E.uponSanitizeAttribute,t,e),g=e.attrValue,Yt&&(w==="id"||w==="name")&&(z(c,t),g=Pe+g),Q&&A(/((--!?|])>)|<\/(style|title)/i,g)){z(c,t);continue}if(e.forceKeepAttr)continue;if(!e.keepAttr){z(c,t);continue}if(!Bt&&A(/\/>/i,g)){z(c,t);continue}k&&it([mt,pt,ft],je=>{g=q(g,je," ")});const ae=p(t.nodeName);if(!ne(ae,w,g)){z(c,t);continue}if(T&&typeof Z=="object"&&typeof Z.getAttributeType=="function"&&!v)switch(Z.getAttributeType(ae,w)){case"TrustedHTML":{g=T.createHTML(g);break}case"TrustedScriptURL":{g=T.createScriptURL(g);break}}if(g!==St)try{v?t.setAttributeNS(v,c,g):t.setAttribute(c,g),Nt(t)?x(t):ue(o.removed)}catch{z(c,t)}}L(E.afterSanitizeAttributes,t,null)},Ye=function t(n){let e=null;const s=Qt(n);for(L(E.beforeSanitizeShadowDOM,n,null);e=s.nextNode();)L(E.uponSanitizeShadowNode,e,null),ee(e),re(e),e.content instanceof R&&t(e.content);L(E.afterSanitizeShadowDOM,n,null)};return o.sanitize=function(t){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},e=null,s=null,d=null,c=null;if(At=!t,At&&(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||bt(n),o.removed=[],typeof t=="string"&&(Y=!1),Y){if(t.nodeName){const w=p(t.nodeName);if(!m[w]||G[w])throw $("root node is forbidden and cannot be sanitized in-place")}}else if(t instanceof ct)e=Jt("<!---->"),s=e.ownerDocument.importNode(t,!0),s.nodeType===V.element&&s.nodeName==="BODY"||s.nodeName==="HTML"?e=s:e.appendChild(s);else{if(!I&&!k&&!C&&t.indexOf("<")===-1)return T&&et?T.createHTML(t):t;if(e=Jt(t),!e)return I?null:et?B:""}e&&Tt&&x(e.firstChild);const v=Qt(Y?t:e);for(;d=v.nextNode();)ee(d),re(d),d.content instanceof R&&Ye(d.content);if(Y)return t;if(I){if(tt)for(c=De.call(e.ownerDocument);e.firstChild;)c.appendChild(e.firstChild);else c=e;return(f.shadowroot||f.shadowrootmode)&&(c=xe.call(l,c,!0)),c}let N=C?e.outerHTML:e.innerHTML;return C&&m["!doctype"]&&e.ownerDocument&&e.ownerDocument.doctype&&e.ownerDocument.doctype.name&&A(Te,e.ownerDocument.doctype.name)&&(N="<!DOCTYPE "+e.ownerDocument.doctype.name+`>
1
+ import{c as Xe,r as ie,j as Rt}from"./index-clm6On2Y.js";/*! @license DOMPurify 3.2.6 | (c) Cure53 and other contributors | Released under the Apache license 2.0 and Mozilla Public License 2.0 | github.com/cure53/DOMPurify/blob/3.2.6/LICENSE */const{entries:le,setPrototypeOf:se,isFrozen:qe,getPrototypeOf:$e,getOwnPropertyDescriptor:Ke}=Object;let{freeze:y,seal:b,create:ce}=Object,{apply:wt,construct:Ot}=typeof Reflect<"u"&&Reflect;y||(y=function(r){return r}),b||(b=function(r){return r}),wt||(wt=function(r,o,i){return r.apply(o,i)}),Ot||(Ot=function(r,o){return new r(...o)});const it=_(Array.prototype.forEach),Ve=_(Array.prototype.lastIndexOf),ue=_(Array.prototype.pop),X=_(Array.prototype.push),Ze=_(Array.prototype.splice),lt=_(String.prototype.toLowerCase),Lt=_(String.prototype.toString),me=_(String.prototype.match),q=_(String.prototype.replace),Je=_(String.prototype.indexOf),Qe=_(String.prototype.trim),S=_(Object.prototype.hasOwnProperty),A=_(RegExp.prototype.test),$=tn(TypeError);function _(r){return function(o){o instanceof RegExp&&(o.lastIndex=0);for(var i=arguments.length,l=new Array(i>1?i-1:0),h=1;h<i;h++)l[h-1]=arguments[h];return wt(r,o,l)}}function tn(r){return function(){for(var o=arguments.length,i=new Array(o),l=0;l<o;l++)i[l]=arguments[l];return Ot(r,i)}}function a(r,o){let i=arguments.length>2&&arguments[2]!==void 0?arguments[2]:lt;se&&se(r,null);let l=o.length;for(;l--;){let h=o[l];if(typeof h=="string"){const R=i(h);R!==h&&(qe(o)||(o[l]=R),h=R)}r[h]=!0}return r}function en(r){for(let o=0;o<r.length;o++)S(r,o)||(r[o]=null);return r}function D(r){const o=ce(null);for(const[i,l]of le(r))S(r,i)&&(Array.isArray(l)?o[i]=en(l):l&&typeof l=="object"&&l.constructor===Object?o[i]=D(l):o[i]=l);return o}function K(r,o){for(;r!==null;){const l=Ke(r,o);if(l){if(l.get)return _(l.get);if(typeof l.value=="function")return _(l.value)}r=$e(r)}function i(){return null}return i}const pe=y(["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"]),vt=y(["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"]),Dt=y(["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"]),nn=y(["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"]),Ct=y(["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"]),on=y(["maction","maligngroup","malignmark","mlongdiv","mscarries","mscarry","msgroup","mstack","msline","msrow","semantics","annotation","annotation-xml","mprescripts","none"]),fe=y(["#text"]),de=y(["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"]),xt=y(["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"]),ge=y(["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"]),st=y(["xlink:href","xml:id","xlink:title","xml:space","xmlns:xlink"]),rn=b(/\{\{[\w\W]*|[\w\W]*\}\}/gm),an=b(/<%[\w\W]*|[\w\W]*%>/gm),ln=b(/\$\{[\w\W]*/gm),sn=b(/^data-[\-\w.\u00B7-\uFFFF]+$/),cn=b(/^aria-[\-\w]+$/),he=b(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp|matrix):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),un=b(/^(?:\w+script|data):/i),mn=b(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),Te=b(/^html$/i),pn=b(/^[a-z][.\w]*(-[.\w]+)+$/i);var Ee=Object.freeze({__proto__:null,ARIA_ATTR:cn,ATTR_WHITESPACE:mn,CUSTOM_ELEMENT:pn,DATA_ATTR:sn,DOCTYPE_NAME:Te,ERB_EXPR:an,IS_ALLOWED_URI:he,IS_SCRIPT_OR_DATA:un,MUSTACHE_EXPR:rn,TMPLIT_EXPR:ln});const V={element:1,text:3,progressingInstruction:7,comment:8,document:9},fn=function(){return typeof window>"u"?null:window},dn=function(r,o){if(typeof r!="object"||typeof r.createPolicy!="function")return null;let i=null;const l="data-tt-policy-suffix";o&&o.hasAttribute(l)&&(i=o.getAttribute(l));const h="dompurify"+(i?"#"+i:"");try{return r.createPolicy(h,{createHTML(R){return R},createScriptURL(R){return R}})}catch{return console.warn("TrustedTypes policy "+h+" could not be created."),null}},ye=function(){return{afterSanitizeAttributes:[],afterSanitizeElements:[],afterSanitizeShadowDOM:[],beforeSanitizeAttributes:[],beforeSanitizeElements:[],beforeSanitizeShadowDOM:[],uponSanitizeAttribute:[],uponSanitizeElement:[],uponSanitizeShadowNode:[]}};function Ae(){let r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:fn();const o=t=>Ae(t);if(o.version="3.2.6",o.removed=[],!r||!r.document||r.document.nodeType!==V.document||!r.Element)return o.isSupported=!1,o;let{document:i}=r;const l=i,h=l.currentScript,{DocumentFragment:R,HTMLTemplateElement:_e,Node:ct,Element:Mt,NodeFilter:F,NamedNodeMap:be=r.NamedNodeMap||r.MozNamedAttrMap,HTMLFormElement:Ne,DOMParser:Se,trustedTypes:Z}=r,W=Mt.prototype,Re=K(W,"cloneNode"),we=K(W,"remove"),Oe=K(W,"nextSibling"),Le=K(W,"childNodes"),J=K(W,"parentNode");if(typeof _e=="function"){const t=i.createElement("template");t.content&&t.content.ownerDocument&&(i=t.content.ownerDocument)}let T,B="";const{implementation:ut,createNodeIterator:ve,createDocumentFragment:De,getElementsByTagName:Ce}=i,{importNode:xe}=l;let E=ye();o.isSupported=typeof le=="function"&&typeof J=="function"&&ut&&ut.createHTMLDocument!==void 0;const{MUSTACHE_EXPR:mt,ERB_EXPR:pt,TMPLIT_EXPR:ft,DATA_ATTR:ke,ARIA_ATTR:Ie,IS_SCRIPT_OR_DATA:Me,ATTR_WHITESPACE:Ut,CUSTOM_ELEMENT:Ue}=Ee;let{IS_ALLOWED_URI:Pt}=Ee,m=null;const Ht=a({},[...pe,...vt,...Dt,...Ct,...fe]);let f=null;const zt=a({},[...de,...xt,...ge,...st]);let u=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,dt=null,Ft=!0,gt=!0,Wt=!1,Bt=!0,k=!1,Q=!0,C=!1,ht=!1,Tt=!1,I=!1,tt=!1,et=!1,Gt=!0,Yt=!1;const Pe="user-content-";let Et=!0,Y=!1,M={},U=null;const jt=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 Xt=null;const qt=a({},["audio","video","img","source","image","track"]);let yt=null;const $t=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",O="http://www.w3.org/1999/xhtml";let P=O,At=!1,_t=null;const He=a({},[nt,ot,O],Lt);let rt=a({},["mi","mo","mn","ms","mtext"]),at=a({},["annotation-xml"]);const ze=a({},["title","style","font","a","script"]);let j=null;const Fe=["application/xhtml+xml","text/html"],We="text/html";let p=null,H=null;const Be=i.createElement("form"),Kt=function(t){return t instanceof RegExp||t instanceof Function},bt=function(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};if(!(H&&H===t)){if((!t||typeof t!="object")&&(t={}),t=D(t),j=Fe.indexOf(t.PARSER_MEDIA_TYPE)===-1?We:t.PARSER_MEDIA_TYPE,p=j==="application/xhtml+xml"?Lt:lt,m=S(t,"ALLOWED_TAGS")?a({},t.ALLOWED_TAGS,p):Ht,f=S(t,"ALLOWED_ATTR")?a({},t.ALLOWED_ATTR,p):zt,_t=S(t,"ALLOWED_NAMESPACES")?a({},t.ALLOWED_NAMESPACES,Lt):He,yt=S(t,"ADD_URI_SAFE_ATTR")?a(D($t),t.ADD_URI_SAFE_ATTR,p):$t,Xt=S(t,"ADD_DATA_URI_TAGS")?a(D(qt),t.ADD_DATA_URI_TAGS,p):qt,U=S(t,"FORBID_CONTENTS")?a({},t.FORBID_CONTENTS,p):jt,G=S(t,"FORBID_TAGS")?a({},t.FORBID_TAGS,p):D({}),dt=S(t,"FORBID_ATTR")?a({},t.FORBID_ATTR,p):D({}),M=S(t,"USE_PROFILES")?t.USE_PROFILES:!1,Ft=t.ALLOW_ARIA_ATTR!==!1,gt=t.ALLOW_DATA_ATTR!==!1,Wt=t.ALLOW_UNKNOWN_PROTOCOLS||!1,Bt=t.ALLOW_SELF_CLOSE_IN_ATTR!==!1,k=t.SAFE_FOR_TEMPLATES||!1,Q=t.SAFE_FOR_XML!==!1,C=t.WHOLE_DOCUMENT||!1,I=t.RETURN_DOM||!1,tt=t.RETURN_DOM_FRAGMENT||!1,et=t.RETURN_TRUSTED_TYPE||!1,Tt=t.FORCE_BODY||!1,Gt=t.SANITIZE_DOM!==!1,Yt=t.SANITIZE_NAMED_PROPS||!1,Et=t.KEEP_CONTENT!==!1,Y=t.IN_PLACE||!1,Pt=t.ALLOWED_URI_REGEXP||he,P=t.NAMESPACE||O,rt=t.MATHML_TEXT_INTEGRATION_POINTS||rt,at=t.HTML_INTEGRATION_POINTS||at,u=t.CUSTOM_ELEMENT_HANDLING||{},t.CUSTOM_ELEMENT_HANDLING&&Kt(t.CUSTOM_ELEMENT_HANDLING.tagNameCheck)&&(u.tagNameCheck=t.CUSTOM_ELEMENT_HANDLING.tagNameCheck),t.CUSTOM_ELEMENT_HANDLING&&Kt(t.CUSTOM_ELEMENT_HANDLING.attributeNameCheck)&&(u.attributeNameCheck=t.CUSTOM_ELEMENT_HANDLING.attributeNameCheck),t.CUSTOM_ELEMENT_HANDLING&&typeof t.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements=="boolean"&&(u.allowCustomizedBuiltInElements=t.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements),k&&(gt=!1),tt&&(I=!0),M&&(m=a({},fe),f=[],M.html===!0&&(a(m,pe),a(f,de)),M.svg===!0&&(a(m,vt),a(f,xt),a(f,st)),M.svgFilters===!0&&(a(m,Dt),a(f,xt),a(f,st)),M.mathMl===!0&&(a(m,Ct),a(f,ge),a(f,st))),t.ADD_TAGS&&(m===Ht&&(m=D(m)),a(m,t.ADD_TAGS,p)),t.ADD_ATTR&&(f===zt&&(f=D(f)),a(f,t.ADD_ATTR,p)),t.ADD_URI_SAFE_ATTR&&a(yt,t.ADD_URI_SAFE_ATTR,p),t.FORBID_CONTENTS&&(U===jt&&(U=D(U)),a(U,t.FORBID_CONTENTS,p)),Et&&(m["#text"]=!0),C&&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=dn(Z,h)),T!==null&&typeof B=="string"&&(B=T.createHTML(""));y&&y(t),H=t}},Vt=a({},[...vt,...Dt,...nn]),Zt=a({},[...Ct,...on]),Ge=function(t){let n=J(t);(!n||!n.tagName)&&(n={namespaceURI:P,tagName:"template"});const e=lt(t.tagName),s=lt(n.tagName);return _t[t.namespaceURI]?t.namespaceURI===ot?n.namespaceURI===O?e==="svg":n.namespaceURI===nt?e==="svg"&&(s==="annotation-xml"||rt[s]):!!Vt[e]:t.namespaceURI===nt?n.namespaceURI===O?e==="math":n.namespaceURI===ot?e==="math"&&at[s]:!!Zt[e]:t.namespaceURI===O?n.namespaceURI===ot&&!at[s]||n.namespaceURI===nt&&!rt[s]?!1:!Zt[e]&&(ze[e]||!Vt[e]):!!(j==="application/xhtml+xml"&&_t[t.namespaceURI]):!1},x=function(t){X(o.removed,{element:t});try{J(t).removeChild(t)}catch{we(t)}},z=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")if(I||tt)try{x(n)}catch{}else try{n.setAttribute(t,"")}catch{}},Jt=function(t){let n=null,e=null;if(Tt)t="<remove></remove>"+t;else{const c=me(t,/^[\r\n\t ]+/);e=c&&c[0]}j==="application/xhtml+xml"&&P===O&&(t='<html xmlns="http://www.w3.org/1999/xhtml"><head></head><body>'+t+"</body></html>");const s=T?T.createHTML(t):t;if(P===O)try{n=new Se().parseFromString(s,j)}catch{}if(!n||!n.documentElement){n=ut.createDocument(P,"template",null);try{n.documentElement.innerHTML=At?B:s}catch{}}const d=n.body||n.documentElement;return t&&e&&d.insertBefore(i.createTextNode(e),d.childNodes[0]||null),P===O?Ce.call(n,C?"html":"body")[0]:C?n.documentElement:d},Qt=function(t){return ve.call(t.ownerDocument||t,t,F.SHOW_ELEMENT|F.SHOW_COMMENT|F.SHOW_TEXT|F.SHOW_PROCESSING_INSTRUCTION|F.SHOW_CDATA_SECTION,null)},Nt=function(t){return t instanceof Ne&&(typeof t.nodeName!="string"||typeof t.textContent!="string"||typeof t.removeChild!="function"||!(t.attributes instanceof be)||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 ct=="function"&&t instanceof ct};function L(t,n,e){it(t,s=>{s.call(o,n,e,H)})}const ee=function(t){let n=null;if(L(E.beforeSanitizeElements,t,null),Nt(t))return x(t),!0;const e=p(t.nodeName);if(L(E.uponSanitizeElement,t,{tagName:e,allowedTags:m}),Q&&t.hasChildNodes()&&!te(t.firstElementChild)&&A(/<[/\w!]/g,t.innerHTML)&&A(/<[/\w!]/g,t.textContent)||t.nodeType===V.progressingInstruction||Q&&t.nodeType===V.comment&&A(/<[/\w]/g,t.data))return x(t),!0;if(!m[e]||G[e]){if(!G[e]&&oe(e)&&(u.tagNameCheck instanceof RegExp&&A(u.tagNameCheck,e)||u.tagNameCheck instanceof Function&&u.tagNameCheck(e)))return!1;if(Et&&!U[e]){const s=J(t)||t.parentNode,d=Le(t)||t.childNodes;if(d&&s){const c=d.length;for(let v=c-1;v>=0;--v){const N=Re(d[v],!0);N.__removalCount=(t.__removalCount||0)+1,s.insertBefore(N,Oe(t))}}}return x(t),!0}return t instanceof Mt&&!Ge(t)||(e==="noscript"||e==="noembed"||e==="noframes")&&A(/<\/no(script|embed|frames)/i,t.innerHTML)?(x(t),!0):(k&&t.nodeType===V.text&&(n=t.textContent,it([mt,pt,ft],s=>{n=q(n,s," ")}),t.textContent!==n&&(X(o.removed,{element:t.cloneNode()}),t.textContent=n)),L(E.afterSanitizeElements,t,null),!1)},ne=function(t,n,e){if(Gt&&(n==="id"||n==="name")&&(e in i||e in Be))return!1;if(!(gt&&!dt[n]&&A(ke,n))&&!(Ft&&A(Ie,n))){if(!f[n]||dt[n]){if(!(oe(t)&&(u.tagNameCheck instanceof RegExp&&A(u.tagNameCheck,t)||u.tagNameCheck instanceof Function&&u.tagNameCheck(t))&&(u.attributeNameCheck instanceof RegExp&&A(u.attributeNameCheck,n)||u.attributeNameCheck instanceof Function&&u.attributeNameCheck(n))||n==="is"&&u.allowCustomizedBuiltInElements&&(u.tagNameCheck instanceof RegExp&&A(u.tagNameCheck,e)||u.tagNameCheck instanceof Function&&u.tagNameCheck(e))))return!1}else if(!yt[n]&&!A(Pt,q(e,Ut,""))&&!((n==="src"||n==="xlink:href"||n==="href")&&t!=="script"&&Je(e,"data:")===0&&Xt[t])&&!(Wt&&!A(Me,q(e,Ut,"")))&&e)return!1}return!0},oe=function(t){return t!=="annotation-xml"&&me(t,Ue)},re=function(t){L(E.beforeSanitizeAttributes,t,null);const{attributes:n}=t;if(!n||Nt(t))return;const e={attrName:"",attrValue:"",keepAttr:!0,allowedAttributes:f,forceKeepAttr:void 0};let s=n.length;for(;s--;){const d=n[s],{name:c,namespaceURI:v,value:N}=d,w=p(c),St=N;let g=c==="value"?St:Qe(St);if(e.attrName=w,e.attrValue=g,e.keepAttr=!0,e.forceKeepAttr=void 0,L(E.uponSanitizeAttribute,t,e),g=e.attrValue,Yt&&(w==="id"||w==="name")&&(z(c,t),g=Pe+g),Q&&A(/((--!?|])>)|<\/(style|title)/i,g)){z(c,t);continue}if(e.forceKeepAttr)continue;if(!e.keepAttr){z(c,t);continue}if(!Bt&&A(/\/>/i,g)){z(c,t);continue}k&&it([mt,pt,ft],je=>{g=q(g,je," ")});const ae=p(t.nodeName);if(!ne(ae,w,g)){z(c,t);continue}if(T&&typeof Z=="object"&&typeof Z.getAttributeType=="function"&&!v)switch(Z.getAttributeType(ae,w)){case"TrustedHTML":{g=T.createHTML(g);break}case"TrustedScriptURL":{g=T.createScriptURL(g);break}}if(g!==St)try{v?t.setAttributeNS(v,c,g):t.setAttribute(c,g),Nt(t)?x(t):ue(o.removed)}catch{z(c,t)}}L(E.afterSanitizeAttributes,t,null)},Ye=function t(n){let e=null;const s=Qt(n);for(L(E.beforeSanitizeShadowDOM,n,null);e=s.nextNode();)L(E.uponSanitizeShadowNode,e,null),ee(e),re(e),e.content instanceof R&&t(e.content);L(E.afterSanitizeShadowDOM,n,null)};return o.sanitize=function(t){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},e=null,s=null,d=null,c=null;if(At=!t,At&&(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||bt(n),o.removed=[],typeof t=="string"&&(Y=!1),Y){if(t.nodeName){const w=p(t.nodeName);if(!m[w]||G[w])throw $("root node is forbidden and cannot be sanitized in-place")}}else if(t instanceof ct)e=Jt("<!---->"),s=e.ownerDocument.importNode(t,!0),s.nodeType===V.element&&s.nodeName==="BODY"||s.nodeName==="HTML"?e=s:e.appendChild(s);else{if(!I&&!k&&!C&&t.indexOf("<")===-1)return T&&et?T.createHTML(t):t;if(e=Jt(t),!e)return I?null:et?B:""}e&&Tt&&x(e.firstChild);const v=Qt(Y?t:e);for(;d=v.nextNode();)ee(d),re(d),d.content instanceof R&&Ye(d.content);if(Y)return t;if(I){if(tt)for(c=De.call(e.ownerDocument);e.firstChild;)c.appendChild(e.firstChild);else c=e;return(f.shadowroot||f.shadowrootmode)&&(c=xe.call(l,c,!0)),c}let N=C?e.outerHTML:e.innerHTML;return C&&m["!doctype"]&&e.ownerDocument&&e.ownerDocument.doctype&&e.ownerDocument.doctype.name&&A(Te,e.ownerDocument.doctype.name)&&(N="<!DOCTYPE "+e.ownerDocument.doctype.name+`>
2
2
  `+N),k&&it([mt,pt,ft],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]:{};bt(t),ht=!0},o.clearConfig=function(){H=null,ht=!1},o.isValidAttribute=function(t,n,e){H||bt({});const s=p(t),d=p(n);return ne(s,d,e)},o.addHook=function(t,n){typeof n=="function"&&X(E[t],n)},o.removeHook=function(t,n){if(n!==void 0){const e=Ve(E[t],n);return e===-1?void 0:Ze(E[t],e,1)[0]}return ue(E[t])},o.removeHooks=function(t){E[t]=[]},o.removeAllHooks=function(){E=ye()},o}var kt=Ae();const gn=Xe("div",{target:"e18540fl0"})({name:"1d3w5wq",styles:"width:100%"}),It="data-temp-href-target";kt.addHook("beforeSanitizeAttributes",function(r){r instanceof HTMLElement&&r.hasAttribute("target")&&r.getAttribute("target")==="_blank"&&r.setAttribute(It,"_blank")}),kt.addHook("afterSanitizeAttributes",function(r){r instanceof HTMLElement&&r.hasAttribute(It)&&(r.setAttribute("target","_blank"),r.setAttribute("rel","noopener noreferrer"),r.removeAttribute(It))});const hn=r=>{const o={USE_PROFILES:{html:!0},FORCE_BODY:!0};return kt.sanitize(r,o)};function Tn({element:r}){const{body:o}=r,i=ie.useMemo(()=>hn(o),[o]);return Rt.jsx(Rt.Fragment,{children:i&&Rt.jsx(gn,{className:"stHtml","data-testid":"stHtml",dangerouslySetInnerHTML:{__html:i}})})}const En=ie.memo(Tn);export{En as default};
@@ -1,4 +1,4 @@
1
- import{r as Te,as as Ci,bt as Ae,g as zh,bu as aU,bv as Ou,_ as AB,b0 as cU,j as Yc,c as gB,b8 as mB,bd as yB,K as G_,bw as vB,b4 as lU,L as uU,ap as hU,bx as fU,by as _B}from"./index-B2QqSXxG.js";import{_ as ho,C as dU}from"./slicedToArray-Dcf1iVtV.js";import{a as Lu,b as Fu,_ as j_,c as gd,d as V_}from"./inherits-CxdXuG_P.js";import{E as bB,w as pU}from"./withFullScreenWrapper-CQbXKdaQ.js";import{T as AU,a as gU}from"./Toolbar-CF99-ktZ.js";import{u as mU}from"./useBasicWidgetState-DVIC6bdr.js";import{u as yU,s as vU}from"./threshold-CqET7LYC.js";import"./FormClearHelper-BC4K9Zmh.js";import"./value-CgPGBV_l.js";function _U(e,t){for(var i=0;i<t.length;i++){const n=t[i];if(typeof n!="string"&&!Array.isArray(n)){for(const r in n)if(r!=="default"&&!(r in e)){const s=Object.getOwnPropertyDescriptor(n,r);s&&Object.defineProperty(e,r,s.get?s:{enumerable:!0,get:()=>n[r]})}}}return Object.freeze(Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}))}function Um(e,t){if(!e)throw new Error(t||"loader assertion failed.")}const H_=!!(typeof process!="object"||String(process)!=="[object process]"||process.browser),xB=typeof process<"u"&&process.version&&/v([0-9]*)/.exec(process.version);xB&&parseFloat(xB[1]);const wB=globalThis,CB=globalThis.process||{};function bU(e){if(typeof window<"u"&&window.process?.type==="renderer"||typeof process<"u"&&process.versions?.electron)return!0;const t=typeof navigator<"u"&&navigator.userAgent;return!!(t&&t.indexOf("Electron")>=0)}function W_(){return!(typeof process=="object"&&String(process)==="[object process]"&&!process?.browser)||bU()}const EB="4.0.7";function xU(e){try{const t=window[e],i="__storage_test__";return t.setItem(i,i),t.removeItem(i),t}catch{return null}}let wU=class{constructor(e,t,i="sessionStorage"){this.storage=xU(i),this.id=e,this.config=t,this._loadConfiguration()}getConfiguration(){return this.config}setConfiguration(e){if(Object.assign(this.config,e),this.storage){const t=JSON.stringify(this.config);this.storage.setItem(this.id,t)}}_loadConfiguration(){let e={};if(this.storage){const t=this.storage.getItem(this.id);e=t?JSON.parse(t):{}}return Object.assign(this.config,e),this}};function CU(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 EU(e,t=8){const i=Math.max(t-e.length,0);return`${" ".repeat(i)}${e}`}var zm;(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"})(zm||(zm={}));const BU=10;function BB(e){return typeof e!="string"?e:(e=e.toUpperCase(),zm[e]||zm.WHITE)}function TU(e,t,i){return!W_&&typeof e=="string"&&(t&&(e=`\x1B[${BB(t)}m${e}\x1B[39m`),i&&(e=`\x1B[${BB(i)+BU}m${e}\x1B[49m`)),e}function SU(e,t=["constructor"]){const i=Object.getPrototypeOf(e),n=Object.getOwnPropertyNames(i),r=e;for(const s of n){const o=r[s];typeof o=="function"&&(t.find(c=>s===c)||(r[s]=o.bind(e)))}}function J_(e,t){if(!e)throw new Error("Assertion failed")}function md(){let e;if(W_()&&wB.performance)e=wB?.performance?.now?.();else if("hrtime"in CB){const t=CB?.hrtime?.();e=t[0]*1e3+t[1]/1e6}else e=Date.now();return e}const yd={debug:W_()&&console.debug||console.log,log:console.log,info:console.info,warn:console.warn,error:console.error},IU={enabled:!0,level:0};function vd(){}const TB={},SB={once:!0};let IB=class{constructor({id:e}={id:""}){this.VERSION=EB,this._startTs=md(),this._deltaTs=md(),this.userData={},this.LOG_THROTTLE_TIMEOUT=0,this.id=e,this.userData={},this._storage=new wU(`__probe-${this.id}__`,IU),this.timeStamp(`${this.id} started`),SU(this),Object.seal(this)}set level(e){this.setLevel(e)}get level(){return this.getLevel()}isEnabled(){return this._storage.config.enabled}getLevel(){return this._storage.config.level}getTotal(){return Number((md()-this._startTs).toPrecision(10))}getDelta(){return Number((md()-this._deltaTs).toPrecision(10))}set priority(e){this.level=e}get priority(){return this.level}getPriority(){return this.level}enable(e=!0){return this._storage.setConfiguration({enabled:e}),this}setLevel(e){return this._storage.setConfiguration({level:e}),this}get(e){return this._storage.config[e]}set(e,t){this._storage.setConfiguration({[e]:t})}settings(){console.table?console.table(this._storage.config):console.log(this._storage.config)}assert(e,t){if(!e)throw new Error(t||"Assertion failed")}warn(e){return this._getLogFunction(0,e,yd.warn,arguments,SB)}error(e){return this._getLogFunction(0,e,yd.error,arguments)}deprecated(e,t){return this.warn(`\`${e}\` is deprecated and will be removed in a later version. Use \`${t}\` instead`)}removed(e,t){return this.error(`\`${e}\` has been removed. Use \`${t}\` instead`)}probe(e,t){return this._getLogFunction(e,t,yd.log,arguments,{time:!0,once:!0})}log(e,t){return this._getLogFunction(e,t,yd.debug,arguments)}info(e,t){return this._getLogFunction(e,t,console.info,arguments)}once(e,t){return this._getLogFunction(e,t,yd.debug||yd.info,arguments,SB)}table(e,t,i){return t?this._getLogFunction(e,t,console.table||vd,i&&[i],{tag:PU(t)}):vd}time(e,t){return this._getLogFunction(e,t,console.time?console.time:console.info)}timeEnd(e,t){return this._getLogFunction(e,t,console.timeEnd?console.timeEnd:console.info)}timeStamp(e,t){return this._getLogFunction(e,t,console.timeStamp||vd)}group(e,t,i={collapsed:!1}){const n=PB({logLevel:e,message:t,opts:i}),{collapsed:r}=i;return n.method=(r?console.groupCollapsed:console.group)||console.info,this._getLogFunction(n)}groupCollapsed(e,t,i={}){return this.group(e,t,Object.assign({},i,{collapsed:!0}))}groupEnd(e){return this._getLogFunction(e,"",console.groupEnd||vd)}withGroup(e,t,i){this.group(e,t)();try{i()}finally{this.groupEnd(e)()}}trace(){console.trace&&console.trace()}_shouldLog(e){return this.isEnabled()&&this.getLevel()>=MB(e)}_getLogFunction(e,t,i,n,r){if(this._shouldLog(e)){r=PB({logLevel:e,message:t,args:n,opts:r}),i=i||r.method,J_(i),r.total=this.getTotal(),r.delta=this.getDelta(),this._deltaTs=md();const s=r.tag||r.message;if(r.once&&s)if(!TB[s])TB[s]=md();else return vd;return t=MU(this.id,r.message,r),i.bind(console,t,...r.args)}return vd}};IB.VERSION=EB;function MB(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 J_(Number.isFinite(t)&&t>=0),t}function PB(e){const{logLevel:t,message:i}=e;e.logLevel=MB(t);const n=e.args?Array.from(e.args):[];for(;n.length&&n.shift()!==i;);switch(typeof t){case"string":case"function":i!==void 0&&n.unshift(i),e.message=t;break;case"object":Object.assign(e,t);break}typeof e.message=="function"&&(e.message=e.message());const r=typeof e.message;return J_(r==="string"||r==="object"),Object.assign(e,{args:n},e.opts)}function MU(e,t,i){if(typeof t=="string"){const n=i.time?EU(CU(i.total)):"";t=i.time?`${e}: ${n} ${t}`:`${e}: ${t}`,t=TU(t,i.color,i.background)}return t}function PU(e){for(const t in e)for(const i in e[t])return i||"untitled";return"empty"}const X_="4.3.1",RU=X_[0]>="0"&&X_[0]<="9"?`v${X_}`:"";function DU(){const e=new IB({id:"loaders.gl"});return globalThis.loaders=globalThis.loaders||{},globalThis.loaders.log=e,globalThis.loaders.version=RU,globalThis.probe=globalThis.probe||{},globalThis.probe.loaders=e,e}const OU=DU();function LU(e,t){return RB(e||{},t)}function RB(e,t,i=0){if(i>3)return t;const n={...e};for(const[r,s]of Object.entries(t))s&&typeof s=="object"&&!Array.isArray(s)?n[r]=RB(n[r]||{},t[r],i+1):n[r]=t[r];return n}const FU="latest";function kU(){return globalThis._loadersgl_?.version||(globalThis._loadersgl_=globalThis._loadersgl_||{},globalThis._loadersgl_.version="4.3.1"),globalThis._loadersgl_.version}const NU=kU();function ku(e,t){if(!e)throw new Error(t||"loaders.gl assertion failed.")}const Gh=typeof process!="object"||String(process)!=="[object process]"||process.browser,UU=typeof window<"u"&&typeof window.orientation<"u",DB=typeof process<"u"&&process.version&&/v([0-9]*)/.exec(process.version);DB&&parseFloat(DB[1]);let zU=class{name;workerThread;isRunning=!0;result;_resolve=()=>{};_reject=()=>{};constructor(e,t){this.name=e,this.workerThread=t,this.result=new Promise((i,n)=>{this._resolve=i,this._reject=n})}postMessage(e,t){this.workerThread.postMessage({source:"loaders.gl",type:e,payload:t})}done(e){ku(this.isRunning),this.isRunning=!1,this._resolve(e)}error(e){ku(this.isRunning),this.isRunning=!1,this._reject(e)}},Q_=class{terminate(){}};const K_=new Map;function GU(e){ku(e.source&&!e.url||!e.source&&e.url);let t=K_.get(e.source||e.url);return t||(e.url&&(t=jU(e.url),K_.set(e.url,t)),e.source&&(t=OB(e.source),K_.set(e.source,t))),ku(t),t}function jU(e){if(!e.startsWith("http"))return e;const t=VU(e);return OB(t)}function OB(e){const t=new Blob([e],{type:"application/javascript"});return URL.createObjectURL(t)}function VU(e){return`try {
1
+ import{r as Te,as as Ci,bt as Ae,g as zh,bu as aU,bv as Ou,_ as AB,b0 as cU,j as Yc,c as gB,b8 as mB,bd as yB,K as G_,bw as vB,b4 as lU,L as uU,ap as hU,bx as fU,by as _B}from"./index-clm6On2Y.js";import{_ as ho,C as dU}from"./slicedToArray-DOoFLiRi.js";import{a as Lu,b as Fu,_ as j_,c as gd,d as V_}from"./inherits-D8N0057t.js";import{E as bB,w as pU}from"./withFullScreenWrapper-CKQjmc-1.js";import{T as AU,a as gU}from"./Toolbar-AvCHJeN3.js";import{u as mU}from"./useBasicWidgetState-CCltHZT9.js";import{u as yU,s as vU}from"./threshold-CqET7LYC.js";import"./FormClearHelper-DBsQ33IR.js";import"./value-CgPGBV_l.js";function _U(e,t){for(var i=0;i<t.length;i++){const n=t[i];if(typeof n!="string"&&!Array.isArray(n)){for(const r in n)if(r!=="default"&&!(r in e)){const s=Object.getOwnPropertyDescriptor(n,r);s&&Object.defineProperty(e,r,s.get?s:{enumerable:!0,get:()=>n[r]})}}}return Object.freeze(Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}))}function Um(e,t){if(!e)throw new Error(t||"loader assertion failed.")}const H_=!!(typeof process!="object"||String(process)!=="[object process]"||process.browser),xB=typeof process<"u"&&process.version&&/v([0-9]*)/.exec(process.version);xB&&parseFloat(xB[1]);const wB=globalThis,CB=globalThis.process||{};function bU(e){if(typeof window<"u"&&window.process?.type==="renderer"||typeof process<"u"&&process.versions?.electron)return!0;const t=typeof navigator<"u"&&navigator.userAgent;return!!(t&&t.indexOf("Electron")>=0)}function W_(){return!(typeof process=="object"&&String(process)==="[object process]"&&!process?.browser)||bU()}const EB="4.0.7";function xU(e){try{const t=window[e],i="__storage_test__";return t.setItem(i,i),t.removeItem(i),t}catch{return null}}let wU=class{constructor(e,t,i="sessionStorage"){this.storage=xU(i),this.id=e,this.config=t,this._loadConfiguration()}getConfiguration(){return this.config}setConfiguration(e){if(Object.assign(this.config,e),this.storage){const t=JSON.stringify(this.config);this.storage.setItem(this.id,t)}}_loadConfiguration(){let e={};if(this.storage){const t=this.storage.getItem(this.id);e=t?JSON.parse(t):{}}return Object.assign(this.config,e),this}};function CU(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 EU(e,t=8){const i=Math.max(t-e.length,0);return`${" ".repeat(i)}${e}`}var zm;(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"})(zm||(zm={}));const BU=10;function BB(e){return typeof e!="string"?e:(e=e.toUpperCase(),zm[e]||zm.WHITE)}function TU(e,t,i){return!W_&&typeof e=="string"&&(t&&(e=`\x1B[${BB(t)}m${e}\x1B[39m`),i&&(e=`\x1B[${BB(i)+BU}m${e}\x1B[49m`)),e}function SU(e,t=["constructor"]){const i=Object.getPrototypeOf(e),n=Object.getOwnPropertyNames(i),r=e;for(const s of n){const o=r[s];typeof o=="function"&&(t.find(c=>s===c)||(r[s]=o.bind(e)))}}function J_(e,t){if(!e)throw new Error("Assertion failed")}function md(){let e;if(W_()&&wB.performance)e=wB?.performance?.now?.();else if("hrtime"in CB){const t=CB?.hrtime?.();e=t[0]*1e3+t[1]/1e6}else e=Date.now();return e}const yd={debug:W_()&&console.debug||console.log,log:console.log,info:console.info,warn:console.warn,error:console.error},IU={enabled:!0,level:0};function vd(){}const TB={},SB={once:!0};let IB=class{constructor({id:e}={id:""}){this.VERSION=EB,this._startTs=md(),this._deltaTs=md(),this.userData={},this.LOG_THROTTLE_TIMEOUT=0,this.id=e,this.userData={},this._storage=new wU(`__probe-${this.id}__`,IU),this.timeStamp(`${this.id} started`),SU(this),Object.seal(this)}set level(e){this.setLevel(e)}get level(){return this.getLevel()}isEnabled(){return this._storage.config.enabled}getLevel(){return this._storage.config.level}getTotal(){return Number((md()-this._startTs).toPrecision(10))}getDelta(){return Number((md()-this._deltaTs).toPrecision(10))}set priority(e){this.level=e}get priority(){return this.level}getPriority(){return this.level}enable(e=!0){return this._storage.setConfiguration({enabled:e}),this}setLevel(e){return this._storage.setConfiguration({level:e}),this}get(e){return this._storage.config[e]}set(e,t){this._storage.setConfiguration({[e]:t})}settings(){console.table?console.table(this._storage.config):console.log(this._storage.config)}assert(e,t){if(!e)throw new Error(t||"Assertion failed")}warn(e){return this._getLogFunction(0,e,yd.warn,arguments,SB)}error(e){return this._getLogFunction(0,e,yd.error,arguments)}deprecated(e,t){return this.warn(`\`${e}\` is deprecated and will be removed in a later version. Use \`${t}\` instead`)}removed(e,t){return this.error(`\`${e}\` has been removed. Use \`${t}\` instead`)}probe(e,t){return this._getLogFunction(e,t,yd.log,arguments,{time:!0,once:!0})}log(e,t){return this._getLogFunction(e,t,yd.debug,arguments)}info(e,t){return this._getLogFunction(e,t,console.info,arguments)}once(e,t){return this._getLogFunction(e,t,yd.debug||yd.info,arguments,SB)}table(e,t,i){return t?this._getLogFunction(e,t,console.table||vd,i&&[i],{tag:PU(t)}):vd}time(e,t){return this._getLogFunction(e,t,console.time?console.time:console.info)}timeEnd(e,t){return this._getLogFunction(e,t,console.timeEnd?console.timeEnd:console.info)}timeStamp(e,t){return this._getLogFunction(e,t,console.timeStamp||vd)}group(e,t,i={collapsed:!1}){const n=PB({logLevel:e,message:t,opts:i}),{collapsed:r}=i;return n.method=(r?console.groupCollapsed:console.group)||console.info,this._getLogFunction(n)}groupCollapsed(e,t,i={}){return this.group(e,t,Object.assign({},i,{collapsed:!0}))}groupEnd(e){return this._getLogFunction(e,"",console.groupEnd||vd)}withGroup(e,t,i){this.group(e,t)();try{i()}finally{this.groupEnd(e)()}}trace(){console.trace&&console.trace()}_shouldLog(e){return this.isEnabled()&&this.getLevel()>=MB(e)}_getLogFunction(e,t,i,n,r){if(this._shouldLog(e)){r=PB({logLevel:e,message:t,args:n,opts:r}),i=i||r.method,J_(i),r.total=this.getTotal(),r.delta=this.getDelta(),this._deltaTs=md();const s=r.tag||r.message;if(r.once&&s)if(!TB[s])TB[s]=md();else return vd;return t=MU(this.id,r.message,r),i.bind(console,t,...r.args)}return vd}};IB.VERSION=EB;function MB(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 J_(Number.isFinite(t)&&t>=0),t}function PB(e){const{logLevel:t,message:i}=e;e.logLevel=MB(t);const n=e.args?Array.from(e.args):[];for(;n.length&&n.shift()!==i;);switch(typeof t){case"string":case"function":i!==void 0&&n.unshift(i),e.message=t;break;case"object":Object.assign(e,t);break}typeof e.message=="function"&&(e.message=e.message());const r=typeof e.message;return J_(r==="string"||r==="object"),Object.assign(e,{args:n},e.opts)}function MU(e,t,i){if(typeof t=="string"){const n=i.time?EU(CU(i.total)):"";t=i.time?`${e}: ${n} ${t}`:`${e}: ${t}`,t=TU(t,i.color,i.background)}return t}function PU(e){for(const t in e)for(const i in e[t])return i||"untitled";return"empty"}const X_="4.3.1",RU=X_[0]>="0"&&X_[0]<="9"?`v${X_}`:"";function DU(){const e=new IB({id:"loaders.gl"});return globalThis.loaders=globalThis.loaders||{},globalThis.loaders.log=e,globalThis.loaders.version=RU,globalThis.probe=globalThis.probe||{},globalThis.probe.loaders=e,e}const OU=DU();function LU(e,t){return RB(e||{},t)}function RB(e,t,i=0){if(i>3)return t;const n={...e};for(const[r,s]of Object.entries(t))s&&typeof s=="object"&&!Array.isArray(s)?n[r]=RB(n[r]||{},t[r],i+1):n[r]=t[r];return n}const FU="latest";function kU(){return globalThis._loadersgl_?.version||(globalThis._loadersgl_=globalThis._loadersgl_||{},globalThis._loadersgl_.version="4.3.1"),globalThis._loadersgl_.version}const NU=kU();function ku(e,t){if(!e)throw new Error(t||"loaders.gl assertion failed.")}const Gh=typeof process!="object"||String(process)!=="[object process]"||process.browser,UU=typeof window<"u"&&typeof window.orientation<"u",DB=typeof process<"u"&&process.version&&/v([0-9]*)/.exec(process.version);DB&&parseFloat(DB[1]);let zU=class{name;workerThread;isRunning=!0;result;_resolve=()=>{};_reject=()=>{};constructor(e,t){this.name=e,this.workerThread=t,this.result=new Promise((i,n)=>{this._resolve=i,this._reject=n})}postMessage(e,t){this.workerThread.postMessage({source:"loaders.gl",type:e,payload:t})}done(e){ku(this.isRunning),this.isRunning=!1,this._resolve(e)}error(e){ku(this.isRunning),this.isRunning=!1,this._reject(e)}},Q_=class{terminate(){}};const K_=new Map;function GU(e){ku(e.source&&!e.url||!e.source&&e.url);let t=K_.get(e.source||e.url);return t||(e.url&&(t=jU(e.url),K_.set(e.url,t)),e.source&&(t=OB(e.source),K_.set(e.source,t))),ku(t),t}function jU(e){if(!e.startsWith("http"))return e;const t=VU(e);return OB(t)}function OB(e){const t=new Blob([e],{type:"application/javascript"});return URL.createObjectURL(t)}function VU(e){return`try {
2
2
  importScripts('${e}');
3
3
  } catch (error) {
4
4
  console.error(error);
@@ -1,3 +1,3 @@
1
- import{cA as ce,d5 as se,d6 as de,d7 as pe,d8 as fe,d9 as ge,cQ as ye,c3 as be,cr as me,da as ve,cR as he,db as Oe,h as J,dc as Se,c as je,r as H,cE as Pe,F as Y,ap as Ce,j as L,b$ as Ie,c0 as Ee,ch as Te,c1 as we,bJ as De,cz as xe}from"./index-B2QqSXxG.js";import{a as Re}from"./useBasicWidgetState-DVIC6bdr.js";import{T as $e}from"./timepicker-CNx-qwHe.js";import"./FormClearHelper-BC4K9Zmh.js";import"./inherits-CxdXuG_P.js";import"./createSuper-BZDCsfCp.js";var _e=ce.Consumer;const Be=Object.freeze(Object.defineProperty({__proto__:null,ThemeConsumer:_e,ThemeProvider:se,createThemedStyled:de,createThemedUseStyletron:pe,createThemedWithStyle:fe,expandBorderStyles:ge,hexToRgb:ye,styled:be,useStyletron:me,withStyle:ve,withWrapper:he},Symbol.toStringTag,{value:"Module"}));var P={};const G=Oe(Be);var D={},K;function ke(){if(K)return D;K=1,Object.defineProperty(D,"__esModule",{value:!0}),D.STATE_CHANGE_TYPE=D.SIZE=D.ENHANCER_POSITION=D.CUSTOM_INPUT_TYPE=D.ADJOINED=void 0;var g={change:"change"};D.STATE_CHANGE_TYPE=g;var d={textarea:"textarea"};D.CUSTOM_INPUT_TYPE=d;var h={none:"none",left:"left",right:"right",both:"both"};D.ADJOINED=h;var b={mini:"mini",default:"default",compact:"compact",large:"large"};D.SIZE=b;var v={start:"start",end:"end"};return D.ENHANCER_POSITION=v,D}var F={},$={},U={},Q;function Me(){if(Q)return U;Q=1,Object.defineProperty(U,"__esModule",{value:!0}),U.default=d;function g(b){"@babel/helpers - typeof";return g=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(v){return typeof v}:function(v){return v&&typeof Symbol=="function"&&v.constructor===Symbol&&v!==Symbol.prototype?"symbol":typeof v},g(b)}function d(b){b=b||{};for(var v=arguments.length<=1?0:arguments.length-1,m,y,S=0;S<v;S++){m=(S+1<1||arguments.length<=S+1?void 0:arguments[S+1])||{};for(var f in m)g(m[f])!==void 0&&(y=m[f],h(y)?b[f]=d(b[f]||Array.isArray(y)&&[]||{},y):b[f]=y)}return b}function h(b){return Array.isArray(b)||{}.toString.call(b)=="[object Object]"}return U}var X;function ee(){if(X)return $;X=1,Object.defineProperty($,"__esModule",{value:!0}),$.getOverride=w,$.getOverrideProps=E,$.getOverrides=z,$.mergeConfigurationOverrides=k,$.mergeOverride=R,$.mergeOverrides=B,$.toObjectOverride=x,$.useOverrides=N;var g=m(J()),d=Se(),h=b(Me());function b(i){return i&&i.__esModule?i:{default:i}}function v(i){if(typeof WeakMap!="function")return null;var r=new WeakMap,u=new WeakMap;return(v=function(c){return c?u:r})(i)}function m(i,r){if(i&&i.__esModule)return i;if(i===null||C(i)!=="object"&&typeof i!="function")return{default:i};var u=v(r);if(u&&u.has(i))return u.get(i);var c={},t=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var a in i)if(a!=="default"&&Object.prototype.hasOwnProperty.call(i,a)){var l=t?Object.getOwnPropertyDescriptor(i,a):null;l&&(l.get||l.set)?Object.defineProperty(c,a,l):c[a]=i[a]}return c.default=i,u&&u.set(i,c),c}function y(){return y=Object.assign?Object.assign.bind():function(i){for(var r=1;r<arguments.length;r++){var u=arguments[r];for(var c in u)Object.prototype.hasOwnProperty.call(u,c)&&(i[c]=u[c])}return i},y.apply(this,arguments)}function S(i,r){var u=Object.keys(i);if(Object.getOwnPropertySymbols){var c=Object.getOwnPropertySymbols(i);r&&(c=c.filter(function(t){return Object.getOwnPropertyDescriptor(i,t).enumerable})),u.push.apply(u,c)}return u}function f(i){for(var r=1;r<arguments.length;r++){var u=arguments[r]!=null?arguments[r]:{};r%2?S(Object(u),!0).forEach(function(c){I(i,c,u[c])}):Object.getOwnPropertyDescriptors?Object.defineProperties(i,Object.getOwnPropertyDescriptors(u)):S(Object(u)).forEach(function(c){Object.defineProperty(i,c,Object.getOwnPropertyDescriptor(u,c))})}return i}function I(i,r,u){return r in i?Object.defineProperty(i,r,{value:u,enumerable:!0,configurable:!0,writable:!0}):i[r]=u,i}function C(i){"@babel/helpers - typeof";return C=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},C(i)}function w(i){return(0,d.isValidElementType)(i)?i:i&&C(i)==="object"?i.component:i}function E(i){return i&&C(i)==="object"?C(i.props)==="object"?f(f({},i.props),{},{$style:i.style}):{$style:i.style}:{}}function x(i){return(0,d.isValidElementType)(i)?{component:i}:i||{}}function z(i,r){var u=w(i)||r;if(i&&C(i)==="object"&&typeof i.props=="function"){var c=g.forwardRef(function(a,l){var e=i.props(a),o=E(f(f({},i),{},{props:e}));return g.createElement(u,y({ref:l},o))});return c.displayName=u.displayName,[c,{}]}var t=E(i);return[u,t]}function B(){var i=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},u=Object.assign({},i,r),c=Object.keys(u);return c.reduce(function(t,a){return t[a]=R(x(i[a]),x(r[a])),t},{})}function R(i,r){var u=f(f({},i),r);return i.props&&r.props&&(u.props=k(i.props,r.props)),i.style&&r.style&&(u.style=k(i.style,r.style)),u}function k(i,r){return C(i)==="object"&&C(r)==="object"?(0,h.default)({},i,r):function(){return(0,h.default)({},typeof i=="function"?i.apply(void 0,arguments):i,typeof r=="function"?r.apply(void 0,arguments):r)}}function N(i){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return g.useMemo(function(){return Object.keys(i).reduce(function(u,c){return u[c]=z(r[c],i[c]),u},{})},[r])}return $}var Z={},W={},te;function ze(){if(te)return W;te=1,Object.defineProperty(W,"__esModule",{value:!0}),W.Svg=void 0,W.getSvgStyles=d;var g=G;function d(b){var v=b.$theme,m=b.$size,y=b.$color,S=v.sizing.scale600;m&&(v.sizing[m]?S=v.sizing[m]:typeof m=="number"?S="".concat(m,"px"):S=m);var f="currentColor";return y&&(v.colors[y]?f=v.colors[y]:f=y),{display:"inline-block",fill:f,color:f,height:S,width:S}}var h=(0,g.styled)("svg",d);return W.Svg=h,h.displayName="Svg",h.displayName="Svg",W}var V={},re;function Ne(){if(re)return V;re=1,Object.defineProperty(V,"__esModule",{value:!0}),V.default=g;function g(d){var h={};for(var b in d)b[0]!=="$"&&(h[b]=d[b]);return h}return V}var oe;function Le(){if(oe)return Z;oe=1;function g(t){"@babel/helpers - typeof";return g=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(a){return typeof a}:function(a){return a&&typeof Symbol=="function"&&a.constructor===Symbol&&a!==Symbol.prototype?"symbol":typeof a},g(t)}Object.defineProperty(Z,"__esModule",{value:!0}),Z.default=void 0;var d=f(J()),h=ee(),b=ze(),v=y(Ne()),m=["children","title","size","color","overrides"];function y(t){return t&&t.__esModule?t:{default:t}}function S(t){if(typeof WeakMap!="function")return null;var a=new WeakMap,l=new WeakMap;return(S=function(e){return e?l:a})(t)}function f(t,a){if(t&&t.__esModule)return t;if(t===null||g(t)!=="object"&&typeof t!="function")return{default:t};var l=S(a);if(l&&l.has(t))return l.get(t);var e={},o=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var n in t)if(n!=="default"&&Object.prototype.hasOwnProperty.call(t,n)){var p=o?Object.getOwnPropertyDescriptor(t,n):null;p&&(p.get||p.set)?Object.defineProperty(e,n,p):e[n]=t[n]}return e.default=t,l&&l.set(t,e),e}function I(){return I=Object.assign?Object.assign.bind():function(t){for(var a=1;a<arguments.length;a++){var l=arguments[a];for(var e in l)Object.prototype.hasOwnProperty.call(l,e)&&(t[e]=l[e])}return t},I.apply(this,arguments)}function C(t,a){var l=Object.keys(t);if(Object.getOwnPropertySymbols){var e=Object.getOwnPropertySymbols(t);a&&(e=e.filter(function(o){return Object.getOwnPropertyDescriptor(t,o).enumerable})),l.push.apply(l,e)}return l}function w(t){for(var a=1;a<arguments.length;a++){var l=arguments[a]!=null?arguments[a]:{};a%2?C(Object(l),!0).forEach(function(e){E(t,e,l[e])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(l)):C(Object(l)).forEach(function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(l,e))})}return t}function E(t,a,l){return a in t?Object.defineProperty(t,a,{value:l,enumerable:!0,configurable:!0,writable:!0}):t[a]=l,t}function x(t,a){return N(t)||k(t,a)||B(t,a)||z()}function z(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
1
+ import{cA as ce,d5 as se,d6 as de,d7 as pe,d8 as fe,d9 as ge,cQ as ye,c3 as be,cr as me,da as ve,cR as he,db as Oe,h as J,dc as Se,c as je,r as H,cE as Pe,F as Y,ap as Ce,j as L,b$ as Ie,c0 as Ee,ch as Te,c1 as we,bJ as De,cz as xe}from"./index-clm6On2Y.js";import{a as Re}from"./useBasicWidgetState-CCltHZT9.js";import{T as $e}from"./timepicker-C7DrJdVV.js";import"./FormClearHelper-DBsQ33IR.js";import"./inherits-D8N0057t.js";import"./createSuper-BqkNEFMI.js";var _e=ce.Consumer;const Be=Object.freeze(Object.defineProperty({__proto__:null,ThemeConsumer:_e,ThemeProvider:se,createThemedStyled:de,createThemedUseStyletron:pe,createThemedWithStyle:fe,expandBorderStyles:ge,hexToRgb:ye,styled:be,useStyletron:me,withStyle:ve,withWrapper:he},Symbol.toStringTag,{value:"Module"}));var P={};const G=Oe(Be);var D={},K;function ke(){if(K)return D;K=1,Object.defineProperty(D,"__esModule",{value:!0}),D.STATE_CHANGE_TYPE=D.SIZE=D.ENHANCER_POSITION=D.CUSTOM_INPUT_TYPE=D.ADJOINED=void 0;var g={change:"change"};D.STATE_CHANGE_TYPE=g;var d={textarea:"textarea"};D.CUSTOM_INPUT_TYPE=d;var h={none:"none",left:"left",right:"right",both:"both"};D.ADJOINED=h;var b={mini:"mini",default:"default",compact:"compact",large:"large"};D.SIZE=b;var v={start:"start",end:"end"};return D.ENHANCER_POSITION=v,D}var F={},$={},U={},Q;function Me(){if(Q)return U;Q=1,Object.defineProperty(U,"__esModule",{value:!0}),U.default=d;function g(b){"@babel/helpers - typeof";return g=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(v){return typeof v}:function(v){return v&&typeof Symbol=="function"&&v.constructor===Symbol&&v!==Symbol.prototype?"symbol":typeof v},g(b)}function d(b){b=b||{};for(var v=arguments.length<=1?0:arguments.length-1,m,y,S=0;S<v;S++){m=(S+1<1||arguments.length<=S+1?void 0:arguments[S+1])||{};for(var f in m)g(m[f])!==void 0&&(y=m[f],h(y)?b[f]=d(b[f]||Array.isArray(y)&&[]||{},y):b[f]=y)}return b}function h(b){return Array.isArray(b)||{}.toString.call(b)=="[object Object]"}return U}var X;function ee(){if(X)return $;X=1,Object.defineProperty($,"__esModule",{value:!0}),$.getOverride=w,$.getOverrideProps=E,$.getOverrides=z,$.mergeConfigurationOverrides=k,$.mergeOverride=R,$.mergeOverrides=B,$.toObjectOverride=x,$.useOverrides=N;var g=m(J()),d=Se(),h=b(Me());function b(i){return i&&i.__esModule?i:{default:i}}function v(i){if(typeof WeakMap!="function")return null;var r=new WeakMap,u=new WeakMap;return(v=function(c){return c?u:r})(i)}function m(i,r){if(i&&i.__esModule)return i;if(i===null||C(i)!=="object"&&typeof i!="function")return{default:i};var u=v(r);if(u&&u.has(i))return u.get(i);var c={},t=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var a in i)if(a!=="default"&&Object.prototype.hasOwnProperty.call(i,a)){var l=t?Object.getOwnPropertyDescriptor(i,a):null;l&&(l.get||l.set)?Object.defineProperty(c,a,l):c[a]=i[a]}return c.default=i,u&&u.set(i,c),c}function y(){return y=Object.assign?Object.assign.bind():function(i){for(var r=1;r<arguments.length;r++){var u=arguments[r];for(var c in u)Object.prototype.hasOwnProperty.call(u,c)&&(i[c]=u[c])}return i},y.apply(this,arguments)}function S(i,r){var u=Object.keys(i);if(Object.getOwnPropertySymbols){var c=Object.getOwnPropertySymbols(i);r&&(c=c.filter(function(t){return Object.getOwnPropertyDescriptor(i,t).enumerable})),u.push.apply(u,c)}return u}function f(i){for(var r=1;r<arguments.length;r++){var u=arguments[r]!=null?arguments[r]:{};r%2?S(Object(u),!0).forEach(function(c){I(i,c,u[c])}):Object.getOwnPropertyDescriptors?Object.defineProperties(i,Object.getOwnPropertyDescriptors(u)):S(Object(u)).forEach(function(c){Object.defineProperty(i,c,Object.getOwnPropertyDescriptor(u,c))})}return i}function I(i,r,u){return r in i?Object.defineProperty(i,r,{value:u,enumerable:!0,configurable:!0,writable:!0}):i[r]=u,i}function C(i){"@babel/helpers - typeof";return C=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},C(i)}function w(i){return(0,d.isValidElementType)(i)?i:i&&C(i)==="object"?i.component:i}function E(i){return i&&C(i)==="object"?C(i.props)==="object"?f(f({},i.props),{},{$style:i.style}):{$style:i.style}:{}}function x(i){return(0,d.isValidElementType)(i)?{component:i}:i||{}}function z(i,r){var u=w(i)||r;if(i&&C(i)==="object"&&typeof i.props=="function"){var c=g.forwardRef(function(a,l){var e=i.props(a),o=E(f(f({},i),{},{props:e}));return g.createElement(u,y({ref:l},o))});return c.displayName=u.displayName,[c,{}]}var t=E(i);return[u,t]}function B(){var i=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},u=Object.assign({},i,r),c=Object.keys(u);return c.reduce(function(t,a){return t[a]=R(x(i[a]),x(r[a])),t},{})}function R(i,r){var u=f(f({},i),r);return i.props&&r.props&&(u.props=k(i.props,r.props)),i.style&&r.style&&(u.style=k(i.style,r.style)),u}function k(i,r){return C(i)==="object"&&C(r)==="object"?(0,h.default)({},i,r):function(){return(0,h.default)({},typeof i=="function"?i.apply(void 0,arguments):i,typeof r=="function"?r.apply(void 0,arguments):r)}}function N(i){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return g.useMemo(function(){return Object.keys(i).reduce(function(u,c){return u[c]=z(r[c],i[c]),u},{})},[r])}return $}var Z={},W={},te;function ze(){if(te)return W;te=1,Object.defineProperty(W,"__esModule",{value:!0}),W.Svg=void 0,W.getSvgStyles=d;var g=G;function d(b){var v=b.$theme,m=b.$size,y=b.$color,S=v.sizing.scale600;m&&(v.sizing[m]?S=v.sizing[m]:typeof m=="number"?S="".concat(m,"px"):S=m);var f="currentColor";return y&&(v.colors[y]?f=v.colors[y]:f=y),{display:"inline-block",fill:f,color:f,height:S,width:S}}var h=(0,g.styled)("svg",d);return W.Svg=h,h.displayName="Svg",h.displayName="Svg",W}var V={},re;function Ne(){if(re)return V;re=1,Object.defineProperty(V,"__esModule",{value:!0}),V.default=g;function g(d){var h={};for(var b in d)b[0]!=="$"&&(h[b]=d[b]);return h}return V}var oe;function Le(){if(oe)return Z;oe=1;function g(t){"@babel/helpers - typeof";return g=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(a){return typeof a}:function(a){return a&&typeof Symbol=="function"&&a.constructor===Symbol&&a!==Symbol.prototype?"symbol":typeof a},g(t)}Object.defineProperty(Z,"__esModule",{value:!0}),Z.default=void 0;var d=f(J()),h=ee(),b=ze(),v=y(Ne()),m=["children","title","size","color","overrides"];function y(t){return t&&t.__esModule?t:{default:t}}function S(t){if(typeof WeakMap!="function")return null;var a=new WeakMap,l=new WeakMap;return(S=function(e){return e?l:a})(t)}function f(t,a){if(t&&t.__esModule)return t;if(t===null||g(t)!=="object"&&typeof t!="function")return{default:t};var l=S(a);if(l&&l.has(t))return l.get(t);var e={},o=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var n in t)if(n!=="default"&&Object.prototype.hasOwnProperty.call(t,n)){var p=o?Object.getOwnPropertyDescriptor(t,n):null;p&&(p.get||p.set)?Object.defineProperty(e,n,p):e[n]=t[n]}return e.default=t,l&&l.set(t,e),e}function I(){return I=Object.assign?Object.assign.bind():function(t){for(var a=1;a<arguments.length;a++){var l=arguments[a];for(var e in l)Object.prototype.hasOwnProperty.call(l,e)&&(t[e]=l[e])}return t},I.apply(this,arguments)}function C(t,a){var l=Object.keys(t);if(Object.getOwnPropertySymbols){var e=Object.getOwnPropertySymbols(t);a&&(e=e.filter(function(o){return Object.getOwnPropertyDescriptor(t,o).enumerable})),l.push.apply(l,e)}return l}function w(t){for(var a=1;a<arguments.length;a++){var l=arguments[a]!=null?arguments[a]:{};a%2?C(Object(l),!0).forEach(function(e){E(t,e,l[e])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(l)):C(Object(l)).forEach(function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(l,e))})}return t}function E(t,a,l){return a in t?Object.defineProperty(t,a,{value:l,enumerable:!0,configurable:!0,writable:!0}):t[a]=l,t}function x(t,a){return N(t)||k(t,a)||B(t,a)||z()}function z(){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 B(t,a){if(t){if(typeof t=="string")return R(t,a);var l=Object.prototype.toString.call(t).slice(8,-1);if(l==="Object"&&t.constructor&&(l=t.constructor.name),l==="Map"||l==="Set")return Array.from(t);if(l==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(l))return R(t,a)}}function R(t,a){(a==null||a>t.length)&&(a=t.length);for(var l=0,e=new Array(a);l<a;l++)e[l]=t[l];return e}function k(t,a){var l=t==null?null:typeof Symbol<"u"&&t[Symbol.iterator]||t["@@iterator"];if(l!=null){var e=[],o=!0,n=!1,p,s;try{for(l=l.call(t);!(o=(p=l.next()).done)&&(e.push(p.value),!(a&&e.length===a));o=!0);}catch(O){n=!0,s=O}finally{try{!o&&l.return!=null&&l.return()}finally{if(n)throw s}}return e}}function N(t){if(Array.isArray(t))return t}function i(t,a){if(t==null)return{};var l=r(t,a),e,o;if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);for(o=0;o<n.length;o++)e=n[o],!(a.indexOf(e)>=0)&&Object.prototype.propertyIsEnumerable.call(t,e)&&(l[e]=t[e])}return l}function r(t,a){if(t==null)return{};var l={},e=Object.keys(t),o,n;for(n=0;n<e.length;n++)o=e[n],!(a.indexOf(o)>=0)&&(l[o]=t[o]);return l}var u=function(t,a){var l=t.children,e=t.title,o=t.size,n=t.color,p=t.overrides,s=p===void 0?{}:p,O=i(t,m),j=(0,h.getOverrides)(s.Svg,b.Svg),_=x(j,2),T=_[0],M=_[1],A=T.__STYLETRON__?w(w({title:e,$color:n,$size:o},O),M):w(w({title:e,color:n,size:o},(0,v.default)(O)),(0,v.default)(M));return d.createElement(T,I({"data-baseweb":"icon",ref:a},A),e?d.createElement("title",null,e):null,l)},c=d.forwardRef(u);return Z.default=c,Z}var ne;function Ae(){if(ne)return F;ne=1;function g(r){"@babel/helpers - typeof";return g=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(u){return typeof u}:function(u){return u&&typeof Symbol=="function"&&u.constructor===Symbol&&u!==Symbol.prototype?"symbol":typeof u},g(r)}Object.defineProperty(F,"__esModule",{value:!0}),F.default=void 0;var d=f(J()),h=G,b=ee(),v=y(Le()),m=["title","size","color","overrides"];function y(r){return r&&r.__esModule?r:{default:r}}function S(r){if(typeof WeakMap!="function")return null;var u=new WeakMap,c=new WeakMap;return(S=function(t){return t?c:u})(r)}function f(r,u){if(r&&r.__esModule)return r;if(r===null||g(r)!=="object"&&typeof r!="function")return{default:r};var c=S(u);if(c&&c.has(r))return c.get(r);var t={},a=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var l in r)if(l!=="default"&&Object.prototype.hasOwnProperty.call(r,l)){var e=a?Object.getOwnPropertyDescriptor(r,l):null;e&&(e.get||e.set)?Object.defineProperty(t,l,e):t[l]=r[l]}return t.default=r,c&&c.set(r,t),t}function I(){return I=Object.assign?Object.assign.bind():function(r){for(var u=1;u<arguments.length;u++){var c=arguments[u];for(var t in c)Object.prototype.hasOwnProperty.call(c,t)&&(r[t]=c[t])}return r},I.apply(this,arguments)}function C(r,u){if(r==null)return{};var c=w(r,u),t,a;if(Object.getOwnPropertySymbols){var l=Object.getOwnPropertySymbols(r);for(a=0;a<l.length;a++)t=l[a],!(u.indexOf(t)>=0)&&Object.prototype.propertyIsEnumerable.call(r,t)&&(c[t]=r[t])}return c}function w(r,u){if(r==null)return{};var c={},t=Object.keys(r),a,l;for(l=0;l<t.length;l++)a=t[l],!(u.indexOf(a)>=0)&&(c[a]=r[a]);return c}function E(r,u){return k(r)||R(r,u)||z(r,u)||x()}function x(){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 z(r,u){if(r){if(typeof r=="string")return B(r,u);var c=Object.prototype.toString.call(r).slice(8,-1);if(c==="Object"&&r.constructor&&(c=r.constructor.name),c==="Map"||c==="Set")return Array.from(r);if(c==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(c))return B(r,u)}}function B(r,u){(u==null||u>r.length)&&(u=r.length);for(var c=0,t=new Array(u);c<u;c++)t[c]=r[c];return t}function R(r,u){var c=r==null?null:typeof Symbol<"u"&&r[Symbol.iterator]||r["@@iterator"];if(c!=null){var t=[],a=!0,l=!1,e,o;try{for(c=c.call(r);!(a=(e=c.next()).done)&&(t.push(e.value),!(u&&t.length===u));a=!0);}catch(n){l=!0,o=n}finally{try{!a&&c.return!=null&&c.return()}finally{if(l)throw o}}return t}}function k(r){if(Array.isArray(r))return r}function N(r,u){var c=(0,h.useStyletron)(),t=E(c,2),a=t[1],l=r.title,e=l===void 0?"Delete Alt":l,o=r.size,n=r.color,p=r.overrides,s=p===void 0?{}:p,O=C(r,m),j=(0,b.mergeOverride)({component:a.icons&&a.icons.DeleteAlt?a.icons.DeleteAlt:null},s&&s.Svg?(0,b.toObjectOverride)(s.Svg):{});return d.createElement(v.default,I({viewBox:"0 0 24 24",ref:u,title:e,size:o,color:n,overrides:{Svg:j}},O),d.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M12 20C16.4183 20 20 16.4183 20 12C20 7.58173 16.4183 4 12 4C7.58173 4 4 7.58173 4 12C4 16.4183 7.58173 20 12 20ZM10.0303 8.96967C9.73743 8.67679 9.26257 8.67679 8.96967 8.96967C8.67676 9.26257 8.67676 9.73743 8.96967 10.0303L10.9393 12L8.96967 13.9697C8.67676 14.2626 8.67676 14.7374 8.96967 15.0303C9.26257 15.3232 9.73743 15.3232 10.0303 15.0303L12 13.0607L13.9697 15.0303C14.2626 15.3232 14.7374 15.3232 15.0303 15.0303C15.3232 14.7374 15.3232 14.2626 15.0303 13.9697L13.0607 12L15.0303 10.0303C15.3232 9.73743 15.3232 9.26257 15.0303 8.96967C14.7374 8.67679 14.2626 8.67679 13.9697 8.96967L12 10.9393L10.0303 8.96967Z"}))}var i=d.forwardRef(N);return F.default=i,F}var ie;function We(){if(ie)return P;ie=1,Object.defineProperty(P,"__esModule",{value:!0}),P.getRootStyles=P.getInputStyles=P.getInputContainerStyles=P.StyledMaskToggleButton=P.StyledClearIconContainer=P.StyledClearIcon=P.Root=P.InputEnhancer=P.InputContainer=P.Input=void 0;var g=G,d=ke(),h=b(Ae());function b(e){return e&&e.__esModule?e:{default:e}}function v(e,o){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var p=Object.getOwnPropertySymbols(e);o&&(p=p.filter(function(s){return Object.getOwnPropertyDescriptor(e,s).enumerable})),n.push.apply(n,p)}return n}function m(e){for(var o=1;o<arguments.length;o++){var n=arguments[o]!=null?arguments[o]:{};o%2?v(Object(n),!0).forEach(function(p){y(e,p,n[p])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):v(Object(n)).forEach(function(p){Object.defineProperty(e,p,Object.getOwnPropertyDescriptor(n,p))})}return e}function y(e,o,n){return o in e?Object.defineProperty(e,o,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[o]=n,e}var S=(0,g.styled)("button",function(e){var o,n=e.$theme,p=e.$size,s=e.$isFocusVisible,O=(o={},y(o,d.SIZE.mini,n.sizing.scale400),y(o,d.SIZE.compact,n.sizing.scale400),y(o,d.SIZE.default,n.sizing.scale300),y(o,d.SIZE.large,n.sizing.scale200),o)[p];return{display:"flex",alignItems:"center",borderTopStyle:"none",borderBottomStyle:"none",borderLeftStyle:"none",borderRightStyle:"none",background:"none",paddingLeft:O,paddingRight:O,outline:s?"solid 3px ".concat(n.colors.accent):"none",color:n.colors.contentPrimary}});P.StyledMaskToggleButton=S,S.displayName="StyledMaskToggleButton",S.displayName="StyledMaskToggleButton";var f=(0,g.styled)("div",function(e){var o,n=e.$alignTop,p=n===void 0?!1:n,s=e.$size,O=e.$theme,j=(o={},y(o,d.SIZE.mini,O.sizing.scale200),y(o,d.SIZE.compact,O.sizing.scale200),y(o,d.SIZE.default,O.sizing.scale100),y(o,d.SIZE.large,O.sizing.scale0),o)[s];return{display:"flex",alignItems:p?"flex-start":"center",paddingLeft:j,paddingRight:j,paddingTop:p?O.sizing.scale500:"0px",color:O.colors.contentPrimary}});P.StyledClearIconContainer=f,f.displayName="StyledClearIconContainer",f.displayName="StyledClearIconContainer";var I=(0,g.styled)(h.default,function(e){var o=e.$theme,n=e.$isFocusVisible;return{cursor:"pointer",outline:n?"solid 3px ".concat(o.colors.accent):"none"}});P.StyledClearIcon=I,I.displayName="StyledClearIcon",I.displayName="StyledClearIcon";function C(e,o){var n;return(n={},y(n,d.SIZE.mini,{paddingTop:o.scale100,paddingBottom:o.scale100,paddingLeft:o.scale550,paddingRight:o.scale550}),y(n,d.SIZE.compact,{paddingTop:o.scale200,paddingBottom:o.scale200,paddingLeft:o.scale550,paddingRight:o.scale550}),y(n,d.SIZE.default,{paddingTop:o.scale400,paddingBottom:o.scale400,paddingLeft:o.scale550,paddingRight:o.scale550}),y(n,d.SIZE.large,{paddingTop:o.scale550,paddingBottom:o.scale550,paddingLeft:o.scale550,paddingRight:o.scale550}),n)[e]}function w(e,o,n,p,s){var O=e===d.ADJOINED.both||e===d.ADJOINED.left&&p!=="rtl"||e===d.ADJOINED.right&&p==="rtl"||s&&p==="rtl",j=e===d.ADJOINED.both||e===d.ADJOINED.right&&p!=="rtl"||e===d.ADJOINED.left&&p==="rtl"||s&&p!=="rtl";return{paddingLeft:O?n.scale550:"0px",paddingRight:j?n.scale550:"0px"}}function E(e,o){var n;return(n={},y(n,d.SIZE.mini,o.font100),y(n,d.SIZE.compact,o.font200),y(n,d.SIZE.default,o.font300),y(n,d.SIZE.large,o.font400),n)[e]}function x(e,o,n){var p=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!1,s=arguments.length>4?arguments[4]:void 0;return e?{borderLeftColor:s.inputFillDisabled,borderRightColor:s.inputFillDisabled,borderTopColor:s.inputFillDisabled,borderBottomColor:s.inputFillDisabled,backgroundColor:s.inputFillDisabled}:o?{borderLeftColor:s.borderSelected,borderRightColor:s.borderSelected,borderTopColor:s.borderSelected,borderBottomColor:s.borderSelected,backgroundColor:s.inputFillActive}:n?{borderLeftColor:s.inputBorderError,borderRightColor:s.inputBorderError,borderTopColor:s.inputBorderError,borderBottomColor:s.inputBorderError,backgroundColor:s.inputFillError}:p?{borderLeftColor:s.inputBorderPositive,borderRightColor:s.inputBorderPositive,borderTopColor:s.inputBorderPositive,borderBottomColor:s.inputBorderPositive,backgroundColor:s.inputFillPositive}:{borderLeftColor:s.inputBorder,borderRightColor:s.inputBorder,borderTopColor:s.inputBorder,borderBottomColor:s.inputBorder,backgroundColor:s.inputFill}}function z(e,o){var n=o.inputBorderRadius;return e===d.SIZE.mini&&(n=o.inputBorderRadiusMini),{borderTopLeftRadius:n,borderBottomLeftRadius:n,borderTopRightRadius:n,borderBottomRightRadius:n}}var B=function(e){var o=e.$isFocused,n=e.$adjoined,p=e.$error,s=e.$disabled,O=e.$positive,j=e.$size,_=e.$theme,T=e.$theme,M=T.borders,A=T.colors,ae=T.sizing,le=T.typography,q=T.animation,ue=e.$hasIconTrailing;return m(m(m(m({boxSizing:"border-box",display:"flex",overflow:"hidden",width:"100%",borderLeftWidth:"2px",borderRightWidth:"2px",borderTopWidth:"2px",borderBottomWidth:"2px",borderLeftStyle:"solid",borderRightStyle:"solid",borderTopStyle:"solid",borderBottomStyle:"solid",transitionProperty:"border",transitionDuration:q.timing200,transitionTimingFunction:q.easeOutCurve},z(j,M)),E(j,le)),x(s,o,p,O,A)),w(n,j,ae,_.direction,ue))};P.getRootStyles=B;var R=(0,g.styled)("div",B);P.Root=R,R.displayName="Root",R.displayName="Root";function k(e,o){var n;return(n={},y(n,d.SIZE.mini,{paddingRight:o.scale400,paddingLeft:o.scale400}),y(n,d.SIZE.compact,{paddingRight:o.scale400,paddingLeft:o.scale400}),y(n,d.SIZE.default,{paddingRight:o.scale300,paddingLeft:o.scale300}),y(n,d.SIZE.large,{paddingRight:o.scale200,paddingLeft:o.scale200}),n)[e]}function N(e,o,n,p,s){return e?{color:s.inputEnhancerTextDisabled,backgroundColor:s.inputFillDisabled}:o?{color:s.contentPrimary,backgroundColor:s.inputFillActive}:n?{color:s.contentPrimary,backgroundColor:s.inputFillError}:p?{color:s.contentPrimary,backgroundColor:s.inputFillPositive}:{color:s.contentPrimary,backgroundColor:s.inputFill}}var i=(0,g.styled)("div",function(e){var o=e.$size,n=e.$disabled,p=e.$isFocused,s=e.$error,O=e.$positive,j=e.$theme,_=j.colors,T=j.sizing,M=j.typography,A=j.animation;return m(m(m({display:"flex",alignItems:"center",justifyContent:"center",transitionProperty:"color, background-color",transitionDuration:A.timing200,transitionTimingFunction:A.easeOutCurve},E(o,M)),k(o,T)),N(n,p,s,O,_))});P.InputEnhancer=i,i.displayName="InputEnhancer",i.displayName="InputEnhancer";function r(e,o,n,p,s){return e?{color:s.inputTextDisabled,backgroundColor:s.inputFillDisabled}:o?{color:s.contentPrimary,backgroundColor:s.inputFillActive}:n?{color:s.contentPrimary,backgroundColor:s.inputFillError}:p?{color:s.contentPrimary,backgroundColor:s.inputFillPositive}:{color:s.contentPrimary,backgroundColor:s.inputFill}}var u=function(e){var o=e.$isFocused,n=e.$error,p=e.$disabled,s=e.$positive,O=e.$size,j=e.$theme,_=j.colors,T=j.typography,M=j.animation;return m(m({display:"flex",width:"100%",transitionProperty:"background-color",transitionDuration:M.timing200,transitionTimingFunction:M.easeOutCurve},E(O,T)),r(p,o,n,s,_))};P.getInputContainerStyles=u;var c=(0,g.styled)("div",u);P.InputContainer=c,c.displayName="InputContainer",c.displayName="InputContainer";function t(e,o,n,p){return e?{color:p.inputTextDisabled,"-webkit-text-fill-color":p.inputTextDisabled,caretColor:p.contentPrimary,"::placeholder":{color:p.inputPlaceholderDisabled}}:{color:p.contentPrimary,caretColor:p.contentPrimary,"::placeholder":{color:p.inputPlaceholder}}}var a=function(e){var o=e.$disabled,n=e.$isFocused,p=e.$error,s=e.$size,O=e.$theme,j=O.colors,_=O.sizing,T=O.typography;return m(m(m({boxSizing:"border-box",backgroundColor:"transparent",borderLeftWidth:0,borderRightWidth:0,borderTopWidth:0,borderBottomWidth:0,borderLeftStyle:"none",borderRightStyle:"none",borderTopStyle:"none",borderBottomStyle:"none",outline:"none",width:"100%",minWidth:0,maxWidth:"100%",cursor:o?"not-allowed":"text",margin:"0",paddingTop:"0",paddingBottom:"0",paddingLeft:"0",paddingRight:"0"},E(s,T)),C(s,_)),t(o,n,p,j))};P.getInputStyles=a;var l=(0,g.styled)("input",a);return P.Input=l,l.displayName="Input",l.displayName="Input",P}var Fe=We();const Ze=je("div",{target:"e1ipygm10"})({name:"1ucqwki",styles:"position:absolute;top:50%;right:2.05em"});function He({disabled:g,element:d,widgetMgr:h,fragmentId:b}){const[v,m]=Re({getStateFromWidgetMgr:Ue,getDefaultStateFromProto:Ve,getCurrStateFromProto:Je,updateWidgetMgrState:Ye,element:d,widgetMgr:h,fragmentId:b}),y=H.useContext(Pe),S=Y(d.default)&&!g,f=Ce(),I={Select:{props:{disabled:g,overrides:{ControlContainer:{style:{height:f.sizes.minElementHeight,borderLeftWidth:f.sizes.borderWidth,borderRightWidth:f.sizes.borderWidth,borderTopWidth:f.sizes.borderWidth,borderBottomWidth:f.sizes.borderWidth}},IconsContainer:{style:()=>({paddingRight:f.spacing.sm})},ValueContainer:{style:()=>({lineHeight:f.lineHeights.inputWidget,paddingRight:f.spacing.sm,paddingLeft:f.spacing.md,paddingBottom:f.spacing.sm,paddingTop:f.spacing.sm})},SingleValue:{style:{fontWeight:f.fontWeights.normal},props:{"data-testid":"stTimeInputTimeDisplay"}},Dropdown:{style:()=>({paddingTop:f.spacing.none,paddingBottom:f.spacing.none,boxShadow:"none",maxHeight:f.sizes.maxDropdownHeight})},DropdownListItem:{style:()=>({paddingRight:f.spacing.lg,paddingLeft:f.spacing.lg,paddingTop:f.spacing.sm,paddingBottom:f.spacing.sm})},Popover:{props:{ignoreBoundary:y,overrides:{Body:{style:()=>({marginTop:f.spacing.px})}}}},Placeholder:{style:()=>({color:f.colors.fadedText60})},SelectArrow:{component:xe,props:{overrides:{Svg:{style:()=>({width:f.iconSizes.xl,height:f.iconSizes.xl})}}}}}}}},C=H.useCallback(E=>{const x=E===null?null:Ge(E);m({value:x,fromUi:!0})},[m]),w=H.useCallback(()=>{C(null)},[C]);return L.jsxs("div",{className:"stTimeInput","data-testid":"stTimeInput",children:[L.jsx(Ie,{label:d.label,disabled:g,labelVisibility:Ee(d.labelVisibility?.value),children:d.help&&L.jsx(Te,{children:L.jsx(we,{content:d.help,placement:De.TOP_RIGHT})})}),L.jsx($e,{format:"24",step:d.step?Number(d.step):900,value:Y(v)?void 0:qe(v),onChange:C,overrides:I,nullable:S,creatable:!0,"aria-label":d.label}),S&&!Y(v)&&L.jsx(Ze,{onClick:w,"data-testid":"stTimeInputClearButton",children:L.jsx(Fe.StyledClearIcon,{overrides:{Svg:{style:{color:f.colors.darkGray,padding:f.spacing.threeXS,height:f.sizes.clearIconSize,width:f.sizes.clearIconSize,":hover":{fill:f.colors.bodyText}}}},$isFocusVisible:!1})})]})}function Ue(g,d){return g.getStringValue(d)??null}function Ve(g){return g.default??null}function Je(g){return g.value??null}function Ye(g,d,h,b){d.setStringValue(g,h.value,{fromUi:h.fromUi},b)}function Ge(g){const d=g.getHours().toString().padStart(2,"0"),h=g.getMinutes().toString().padStart(2,"0");return`${d}:${h}`}function qe(g){if(g===null)return null;const[d,h]=g.split(":").map(Number),b=new Date;return b.setHours(d),b.setMinutes(h),b}const Ke=H.memo(He);export{Ke as default};
@@ -1,3 +1,3 @@
1
- import{c3 as w,cn as ge,c4 as O,r as c,ap as ye,j as m,b$ as ve,c9 as we,c1 as Oe,bJ as Re,bc as re,aq as oe,cL as ne,c0 as ke}from"./index-B2QqSXxG.js";import{a as je}from"./useBasicWidgetState-DVIC6bdr.js";import"./FormClearHelper-BC4K9Zmh.js";var ie={vertical:"vertical",horizontal:"horizontal"};function ae(e,t){var o=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable})),o.push.apply(o,r)}return o}function C(e){for(var t=1;t<arguments.length;t++){var o=arguments[t]!=null?arguments[t]:{};t%2?ae(Object(o),!0).forEach(function(r){R(e,r,o[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(o)):ae(Object(o)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(o,r))})}return e}function R(e,t,o){return t in e?Object.defineProperty(e,t,{value:o,enumerable:!0,configurable:!0,writable:!0}):e[t]=o,e}var x=0,E=1,L=2;function T(e){return e.$isActive?L:e.$isHovered?E:x}function Se(e){var t=e.$theme.colors,o=e.$disabled,r=e.$checked,n=e.$isFocusVisible,i=e.$error;if(o)return t.tickFillDisabled;if(r)if(i)switch(T(e)){case x:return t.tickFillErrorSelected;case E:return t.tickFillErrorSelectedHover;case L:return t.tickFillErrorSelectedHoverActive}else switch(T(e)){case x:return t.tickFillSelected;case E:return t.tickFillSelectedHover;case L:return t.tickFillSelectedHoverActive}else return n?t.borderSelected:i?t.tickBorderError:t.tickBorder;return null}function $e(e){var t=e.$theme.colors;if(e.$disabled)return t.tickMarkFillDisabled;if(e.$checked)return t.tickMarkFill;if(e.$error)switch(T(e)){case x:return t.tickFillError;case E:return t.tickFillErrorHover;case L:return t.tickFillErrorHoverActive}else switch(T(e)){case x:return t.tickFill;case E:return t.tickFillHover;case L:return t.tickFillActive}}function Me(e){var t=e.$labelPlacement,o=t===void 0?"":t,r=e.$theme,n;switch(o){case"top":n="Bottom";break;case"bottom":n="Top";break;case"left":n=r.direction==="rtl"?"Left":"Right";break;default:case"right":n=r.direction==="rtl"?"Right":"Left";break}var i=r.sizing,a=i.scale300;return R({},"padding".concat(n),a)}function Fe(e){var t=e.$disabled,o=e.$theme,r=o.colors;return t?r.contentSecondary:r.contentPrimary}var _=w("div",function(e){var t=e.$disabled,o=e.$align;return{display:"flex",flexWrap:"wrap",flexDirection:o==="horizontal"?"row":"column",alignItems:o==="horizontal"?"center":"flex-start",cursor:t?"not-allowed":"pointer","-webkit-tap-highlight-color":"transparent"}});_.displayName="RadioGroupRoot",_.displayName="RadioGroupRoot";var N=w("label",function(e){var t,o=e.$disabled,r=e.$hasDescription,n=e.$labelPlacement,i=e.$theme,a=e.$align,s=i.sizing,u=a==="horizontal",f=i.direction==="rtl"?"Left":"Right";return t={flexDirection:n==="top"||n==="bottom"?"column":"row",display:"flex",alignItems:"center",cursor:o?"not-allowed":"pointer",marginTop:s.scale200},R(t,"margin".concat(f),u?s.scale200:null),R(t,"marginBottom",r&&!u?null:s.scale200),t});N.displayName="Root",N.displayName="Root";var U=w("div",function(e){var t=e.$theme,o=t.animation,r=t.sizing;return{backgroundColor:$e(e),borderTopLeftRadius:"50%",borderTopRightRadius:"50%",borderBottomRightRadius:"50%",borderBottomLeftRadius:"50%",height:e.$checked?r.scale200:r.scale550,transitionDuration:o.timing200,transitionTimingFunction:o.easeOutCurve,width:e.$checked?r.scale200:r.scale550}});U.displayName="RadioMarkInner",U.displayName="RadioMarkInner";var q=w("div",function(e){var t=e.$theme,o=t.animation,r=t.sizing;return{alignItems:"center",backgroundColor:Se(e),borderTopLeftRadius:"50%",borderTopRightRadius:"50%",borderBottomRightRadius:"50%",borderBottomLeftRadius:"50%",boxShadow:e.$isFocusVisible&&e.$checked?"0 0 0 3px ".concat(e.$theme.colors.accent):"none",display:"flex",height:r.scale700,justifyContent:"center",marginTop:r.scale0,marginRight:r.scale0,marginBottom:r.scale0,marginLeft:r.scale0,outline:"none",verticalAlign:"middle",width:r.scale700,flexShrink:0,transitionDuration:o.timing200,transitionTimingFunction:o.easeOutCurve}});q.displayName="RadioMarkOuter",q.displayName="RadioMarkOuter";var G=w("div",function(e){var t=e.$theme.typography;return C(C({verticalAlign:"middle"},Me(e)),{},{color:Fe(e)},t.LabelMedium)});G.displayName="Label",G.displayName="Label";var W=w("input",{width:0,height:0,marginTop:0,marginRight:0,marginBottom:0,marginLeft:0,paddingTop:0,paddingRight:0,paddingBottom:0,paddingLeft:0,clip:"rect(0 0 0 0)",position:"absolute"});W.displayName="Input",W.displayName="Input";var X=w("div",function(e){var t,o=e.$theme,r=e.$align,n=r==="horizontal",i=o.direction==="rtl"?"Right":"Left",a=o.direction==="rtl"?"Left":"Right";return C(C({},o.typography.ParagraphSmall),{},(t={color:o.colors.contentSecondary,cursor:"auto"},R(t,"margin".concat(i),r==="horizontal"?null:o.sizing.scale900),R(t,"margin".concat(a),n?o.sizing.scale200:null),R(t,"maxWidth","240px"),t))});X.displayName="Description",X.displayName="Description";function J(e){"@babel/helpers - typeof";return J=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},J(e)}function K(){return K=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var o=arguments[t];for(var r in o)Object.prototype.hasOwnProperty.call(o,r)&&(e[r]=o[r])}return e},K.apply(this,arguments)}function Pe(e,t){return Ie(e)||Le(e,t)||Ee(e,t)||xe()}function xe(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
1
+ import{c3 as w,cn as ge,c4 as O,r as c,ap as ye,j as m,b$ as ve,c9 as we,c1 as Oe,bJ as Re,bc as re,aq as oe,cL as ne,c0 as ke}from"./index-clm6On2Y.js";import{a as je}from"./useBasicWidgetState-CCltHZT9.js";import"./FormClearHelper-DBsQ33IR.js";var ie={vertical:"vertical",horizontal:"horizontal"};function ae(e,t){var o=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable})),o.push.apply(o,r)}return o}function C(e){for(var t=1;t<arguments.length;t++){var o=arguments[t]!=null?arguments[t]:{};t%2?ae(Object(o),!0).forEach(function(r){R(e,r,o[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(o)):ae(Object(o)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(o,r))})}return e}function R(e,t,o){return t in e?Object.defineProperty(e,t,{value:o,enumerable:!0,configurable:!0,writable:!0}):e[t]=o,e}var x=0,E=1,L=2;function T(e){return e.$isActive?L:e.$isHovered?E:x}function Se(e){var t=e.$theme.colors,o=e.$disabled,r=e.$checked,n=e.$isFocusVisible,i=e.$error;if(o)return t.tickFillDisabled;if(r)if(i)switch(T(e)){case x:return t.tickFillErrorSelected;case E:return t.tickFillErrorSelectedHover;case L:return t.tickFillErrorSelectedHoverActive}else switch(T(e)){case x:return t.tickFillSelected;case E:return t.tickFillSelectedHover;case L:return t.tickFillSelectedHoverActive}else return n?t.borderSelected:i?t.tickBorderError:t.tickBorder;return null}function $e(e){var t=e.$theme.colors;if(e.$disabled)return t.tickMarkFillDisabled;if(e.$checked)return t.tickMarkFill;if(e.$error)switch(T(e)){case x:return t.tickFillError;case E:return t.tickFillErrorHover;case L:return t.tickFillErrorHoverActive}else switch(T(e)){case x:return t.tickFill;case E:return t.tickFillHover;case L:return t.tickFillActive}}function Me(e){var t=e.$labelPlacement,o=t===void 0?"":t,r=e.$theme,n;switch(o){case"top":n="Bottom";break;case"bottom":n="Top";break;case"left":n=r.direction==="rtl"?"Left":"Right";break;default:case"right":n=r.direction==="rtl"?"Right":"Left";break}var i=r.sizing,a=i.scale300;return R({},"padding".concat(n),a)}function Fe(e){var t=e.$disabled,o=e.$theme,r=o.colors;return t?r.contentSecondary:r.contentPrimary}var _=w("div",function(e){var t=e.$disabled,o=e.$align;return{display:"flex",flexWrap:"wrap",flexDirection:o==="horizontal"?"row":"column",alignItems:o==="horizontal"?"center":"flex-start",cursor:t?"not-allowed":"pointer","-webkit-tap-highlight-color":"transparent"}});_.displayName="RadioGroupRoot",_.displayName="RadioGroupRoot";var N=w("label",function(e){var t,o=e.$disabled,r=e.$hasDescription,n=e.$labelPlacement,i=e.$theme,a=e.$align,s=i.sizing,u=a==="horizontal",f=i.direction==="rtl"?"Left":"Right";return t={flexDirection:n==="top"||n==="bottom"?"column":"row",display:"flex",alignItems:"center",cursor:o?"not-allowed":"pointer",marginTop:s.scale200},R(t,"margin".concat(f),u?s.scale200:null),R(t,"marginBottom",r&&!u?null:s.scale200),t});N.displayName="Root",N.displayName="Root";var U=w("div",function(e){var t=e.$theme,o=t.animation,r=t.sizing;return{backgroundColor:$e(e),borderTopLeftRadius:"50%",borderTopRightRadius:"50%",borderBottomRightRadius:"50%",borderBottomLeftRadius:"50%",height:e.$checked?r.scale200:r.scale550,transitionDuration:o.timing200,transitionTimingFunction:o.easeOutCurve,width:e.$checked?r.scale200:r.scale550}});U.displayName="RadioMarkInner",U.displayName="RadioMarkInner";var q=w("div",function(e){var t=e.$theme,o=t.animation,r=t.sizing;return{alignItems:"center",backgroundColor:Se(e),borderTopLeftRadius:"50%",borderTopRightRadius:"50%",borderBottomRightRadius:"50%",borderBottomLeftRadius:"50%",boxShadow:e.$isFocusVisible&&e.$checked?"0 0 0 3px ".concat(e.$theme.colors.accent):"none",display:"flex",height:r.scale700,justifyContent:"center",marginTop:r.scale0,marginRight:r.scale0,marginBottom:r.scale0,marginLeft:r.scale0,outline:"none",verticalAlign:"middle",width:r.scale700,flexShrink:0,transitionDuration:o.timing200,transitionTimingFunction:o.easeOutCurve}});q.displayName="RadioMarkOuter",q.displayName="RadioMarkOuter";var G=w("div",function(e){var t=e.$theme.typography;return C(C({verticalAlign:"middle"},Me(e)),{},{color:Fe(e)},t.LabelMedium)});G.displayName="Label",G.displayName="Label";var W=w("input",{width:0,height:0,marginTop:0,marginRight:0,marginBottom:0,marginLeft:0,paddingTop:0,paddingRight:0,paddingBottom:0,paddingLeft:0,clip:"rect(0 0 0 0)",position:"absolute"});W.displayName="Input",W.displayName="Input";var X=w("div",function(e){var t,o=e.$theme,r=e.$align,n=r==="horizontal",i=o.direction==="rtl"?"Right":"Left",a=o.direction==="rtl"?"Left":"Right";return C(C({},o.typography.ParagraphSmall),{},(t={color:o.colors.contentSecondary,cursor:"auto"},R(t,"margin".concat(i),r==="horizontal"?null:o.sizing.scale900),R(t,"margin".concat(a),n?o.sizing.scale200:null),R(t,"maxWidth","240px"),t))});X.displayName="Description",X.displayName="Description";function J(e){"@babel/helpers - typeof";return J=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},J(e)}function K(){return K=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var o=arguments[t];for(var r in o)Object.prototype.hasOwnProperty.call(o,r)&&(e[r]=o[r])}return e},K.apply(this,arguments)}function Pe(e,t){return Ie(e)||Le(e,t)||Ee(e,t)||xe()}function xe(){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 Ee(e,t){if(e){if(typeof e=="string")return se(e,t);var o=Object.prototype.toString.call(e).slice(8,-1);if(o==="Object"&&e.constructor&&(o=e.constructor.name),o==="Map"||o==="Set")return Array.from(e);if(o==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(o))return se(e,t)}}function se(e,t){(t==null||t>e.length)&&(t=e.length);for(var o=0,r=new Array(t);o<t;o++)r[o]=e[o];return r}function Le(e,t){var o=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(o!=null){var r=[],n=!0,i=!1,a,s;try{for(o=o.call(e);!(n=(a=o.next()).done)&&(r.push(a.value),!(t&&r.length===t));n=!0);}catch(u){i=!0,s=u}finally{try{!n&&o.return!=null&&o.return()}finally{if(i)throw s}}return r}}function Ie(e){if(Array.isArray(e))return e}function Ce(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Te(e,t){for(var o=0;o<t.length;o++){var r=t[o];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function Ae(e,t,o){return t&&Te(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function Be(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&Q(e,t)}function Q(e,t){return Q=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(o,r){return o.__proto__=r,o},Q(e,t)}function De(e){var t=He();return function(){var o=B(e),r;if(t){var n=B(this).constructor;r=Reflect.construct(o,arguments,n)}else r=o.apply(this,arguments);return ze(this,r)}}function ze(e,t){if(t&&(J(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return A(e)}function A(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function He(){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 B(e){return B=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},B(e)}function D(e,t,o){return t in e?Object.defineProperty(e,t,{value:o,enumerable:!0,configurable:!0,writable:!0}):e[t]=o,e}var le=function(e){Be(o,e);var t=De(o);function o(){var r;Ce(this,o);for(var n=arguments.length,i=new Array(n),a=0;a<n;a++)i[a]=arguments[a];return r=t.call.apply(t,[this].concat(i)),D(A(r),"state",{isFocusVisible:!1,focusedRadioIndex:-1}),D(A(r),"handleFocus",function(s,u){ge(s)&&r.setState({isFocusVisible:!0}),r.setState({focusedRadioIndex:u}),r.props.onFocus&&r.props.onFocus(s)}),D(A(r),"handleBlur",function(s,u){r.state.isFocusVisible!==!1&&r.setState({isFocusVisible:!1}),r.setState({focusedRadioIndex:-1}),r.props.onBlur&&r.props.onBlur(s)}),r}return Ae(o,[{key:"render",value:function(){var r=this,n=this.props.overrides,i=n===void 0?{}:n,a=O(i.RadioGroupRoot,_),s=Pe(a,2),u=s[0],f=s[1];return c.createElement(u,K({id:this.props.id,role:"radiogroup","aria-describedby":this.props["aria-describedby"],"aria-errormessage":this.props["aria-errormessage"],"aria-invalid":this.props.error||null,"aria-label":this.props["aria-label"],"aria-labelledby":this.props["aria-labelledby"],$align:this.props.align,$disabled:this.props.disabled,$error:this.props.error,$required:this.props.required},f),c.Children.map(this.props.children,function(p,h){if(!c.isValidElement(p))return null;var l=r.props.value===p.props.value;return c.cloneElement(p,{align:r.props.align,autoFocus:r.props.autoFocus,checked:l,disabled:r.props.disabled||p.props.disabled,error:r.props.error,isFocused:r.state.focusedRadioIndex===h,isFocusVisible:r.state.isFocusVisible,tabIndex:h===0&&!r.props.value||l?"0":"-1",labelPlacement:r.props.labelPlacement,name:r.props.name,onBlur:function(d){return r.handleBlur(d,h)},onFocus:function(d){return r.handleFocus(d,h)},onChange:r.props.onChange,onMouseEnter:r.props.onMouseEnter,onMouseLeave:r.props.onMouseLeave})}))}}]),o}(c.Component);D(le,"defaultProps",{name:"",value:"",disabled:!1,autoFocus:!1,labelPlacement:"right",align:"vertical",error:!1,required:!1,onChange:function(){},onMouseEnter:function(){},onMouseLeave:function(){},onFocus:function(){},onBlur:function(){},overrides:{}});function Y(e){"@babel/helpers - typeof";return Y=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},Y(e)}function v(){return v=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var o=arguments[t];for(var r in o)Object.prototype.hasOwnProperty.call(o,r)&&(e[r]=o[r])}return e},v.apply(this,arguments)}function S(e,t){return Ue(e)||Ne(e,t)||_e(e,t)||Ve()}function Ve(){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 _e(e,t){if(e){if(typeof e=="string")return ce(e,t);var o=Object.prototype.toString.call(e).slice(8,-1);if(o==="Object"&&e.constructor&&(o=e.constructor.name),o==="Map"||o==="Set")return Array.from(e);if(o==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(o))return ce(e,t)}}function ce(e,t){(t==null||t>e.length)&&(t=e.length);for(var o=0,r=new Array(t);o<t;o++)r[o]=e[o];return r}function Ne(e,t){var o=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(o!=null){var r=[],n=!0,i=!1,a,s;try{for(o=o.call(e);!(n=(a=o.next()).done)&&(r.push(a.value),!(t&&r.length===t));n=!0);}catch(u){i=!0,s=u}finally{try{!n&&o.return!=null&&o.return()}finally{if(i)throw s}}return r}}function Ue(e){if(Array.isArray(e))return e}function qe(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Ge(e,t){for(var o=0;o<t.length;o++){var r=t[o];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function We(e,t,o){return t&&Ge(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function Xe(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&Z(e,t)}function Z(e,t){return Z=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(o,r){return o.__proto__=r,o},Z(e,t)}function Je(e){var t=Qe();return function(){var o=z(e),r;if(t){var n=z(this).constructor;r=Reflect.construct(o,arguments,n)}else r=o.apply(this,arguments);return Ke(this,r)}}function Ke(e,t){if(t&&(Y(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return $(e)}function $(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Qe(){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 z(e){return z=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},z(e)}function M(e,t,o){return t in e?Object.defineProperty(e,t,{value:o,enumerable:!0,configurable:!0,writable:!0}):e[t]=o,e}function Ye(e){return e==="top"||e==="left"}function Ze(e){return e==="bottom"||e==="right"}var et=function(e){return e.stopPropagation()},ue=function(e){Xe(o,e);var t=Je(o);function o(){var r;qe(this,o);for(var n=arguments.length,i=new Array(n),a=0;a<n;a++)i[a]=arguments[a];return r=t.call.apply(t,[this].concat(i)),M($(r),"state",{isActive:!1,isHovered:!1}),M($(r),"onMouseEnter",function(s){r.setState({isHovered:!0}),r.props.onMouseEnter&&r.props.onMouseEnter(s)}),M($(r),"onMouseLeave",function(s){r.setState({isHovered:!1}),r.props.onMouseLeave&&r.props.onMouseLeave(s)}),M($(r),"onMouseDown",function(s){r.setState({isActive:!0}),r.props.onMouseDown&&r.props.onMouseDown(s)}),M($(r),"onMouseUp",function(s){r.setState({isActive:!1}),r.props.onMouseUp&&r.props.onMouseUp(s)}),r}return We(o,[{key:"componentDidMount",value:function(){var r;this.props.autoFocus&&(r=this.props.inputRef)!==null&&r!==void 0&&r.current&&this.props.inputRef.current.focus()}},{key:"render",value:function(){var r=this.props.overrides,n=r===void 0?{}:r,i=O(n.Root,N),a=S(i,2),s=a[0],u=a[1],f=O(n.Label,G),p=S(f,2),h=p[0],l=p[1],d=O(n.Input,W),F=S(d,2),H=F[0],k=F[1],V=O(n.Description,X),P=S(V,2),I=P[0],g=P[1],y=O(n.RadioMarkInner,U),b=S(y,2),pe=b[0],de=b[1],fe=O(n.RadioMarkOuter,q),ee=S(fe,2),he=ee[0],be=ee[1],j={$align:this.props.align,$checked:this.props.checked,$disabled:this.props.disabled,$hasDescription:!!this.props.description,$isActive:this.state.isActive,$error:this.props.error,$isFocused:this.props.isFocused,$isFocusVisible:this.props.isFocused&&this.props.isFocusVisible,$isHovered:this.state.isHovered,$labelPlacement:this.props.labelPlacement,$required:this.props.required,$value:this.props.value},te=c.createElement(h,v({},j,l),this.props.containsInteractiveElement?c.createElement("div",{onClick:function(me){return me.preventDefault()}},this.props.children):this.props.children);return c.createElement(c.Fragment,null,c.createElement(s,v({"data-baseweb":"radio",onMouseEnter:this.onMouseEnter,onMouseLeave:this.onMouseLeave,onMouseDown:this.onMouseDown,onMouseUp:this.onMouseUp},j,u),Ye(this.props.labelPlacement)&&te,c.createElement(he,v({},j,be),c.createElement(pe,v({},j,de))),c.createElement(H,v({"aria-invalid":this.props.error||null,checked:this.props.checked,disabled:this.props.disabled,name:this.props.name,onBlur:this.props.onBlur,onFocus:this.props.onFocus,onClick:et,onChange:this.props.onChange,ref:this.props.inputRef,required:this.props.required,tabIndex:this.props.tabIndex,type:"radio",value:this.props.value},j,k)),Ze(this.props.labelPlacement)&&te),!!this.props.description&&c.createElement(I,v({},j,g),this.props.description))}}]),o}(c.Component);M(ue,"defaultProps",{overrides:{},containsInteractiveElement:!1,checked:!1,disabled:!1,autoFocus:!1,inputRef:c.createRef(),align:"vertical",error:!1,onChange:function(){},onMouseEnter:function(){},onMouseLeave:function(){},onMouseDown:function(){},onMouseUp:function(){},onFocus:function(){},onBlur:function(){}});function tt(e){const t=parseFloat(e.sizes.checkbox),o=parseFloat(e.spacing.threeXS),r=oe(t.toString()),n=Math.round(r*.375);let i=Math.round(oe((t-o).toString()));return i>=r&&(i-=1),[ne(n,"px"),ne(i,"px")]}function rt({disabled:e,horizontal:t,value:o,onChange:r,options:n,captions:i,label:a,labelVisibility:s,help:u}){const[f,p]=c.useState(o??null);c.useEffect(()=>{o!==f&&p(o??null)},[o]);const h=c.useCallback(g=>{const y=parseInt(g.target.value,10);p(y),r(y)},[r]),l=ye(),d=i.length>0,F=n.length>0,H=F?n:["No options to select."],k=e||!F,V=g=>g==""&&t&&d?"&nbsp;":g,[P,I]=tt(l);return m.jsxs("div",{className:"stRadio","data-testid":"stRadio",children:[m.jsx(ve,{label:a,disabled:k,labelVisibility:s,children:u&&m.jsx(we,{children:m.jsx(Oe,{content:u,placement:Re.TOP_RIGHT})})}),m.jsx(le,{onChange:h,value:f!==null?f.toString():void 0,disabled:k,align:t?ie.horizontal:ie.vertical,"aria-label":a,"data-testid":"stRadioGroup",overrides:{RadioGroupRoot:{style:{gap:d?l.spacing.sm:l.spacing.none,minHeight:l.sizes.minElementHeight}}},children:H.map((g,y)=>m.jsxs(ue,{value:y.toString(),overrides:{Root:{style:({$isFocusVisible:b})=>({marginBottom:l.spacing.none,marginTop:l.spacing.none,marginRight:d?l.spacing.sm:l.spacing.lg,paddingLeft:l.spacing.none,alignItems:"start",paddingRight:l.spacing.threeXS,backgroundColor:b?l.colors.darkenedBgMix25:""})},RadioMarkOuter:{style:({$checked:b})=>({width:l.sizes.checkbox,height:l.sizes.checkbox,marginTop:"0.35rem",marginRight:l.spacing.none,marginLeft:l.spacing.none,backgroundColor:b&&!k?l.colors.primary:l.colors.fadedText40})},RadioMarkInner:{style:({$checked:b})=>({height:b?P:I,width:b?P:I})},Label:{style:{color:k?l.colors.fadedText40:l.colors.bodyText,position:"relative",top:l.spacing.px}}},children:[m.jsx(re,{source:g,allowHTML:!1,isLabel:!0,largerLabel:!0}),d&&m.jsx(re,{source:V(i[y]),allowHTML:!1,isCaption:!0,isLabel:!0})]},y))})]})}const ot=c.memo(rt);function nt({disabled:e,element:t,widgetMgr:o,fragmentId:r}){const[n,i]=je({getStateFromWidgetMgr:it,getDefaultStateFromProto:at,getCurrStateFromProto:st,updateWidgetMgrState:lt,element:t,widgetMgr:o,fragmentId:r}),a=c.useCallback(d=>{i({value:d,fromUi:!0})},[i]),{horizontal:s,options:u,captions:f,label:p,labelVisibility:h,help:l}=t;return m.jsx(ot,{label:p,onChange:a,options:u,captions:f,disabled:e,horizontal:s,labelVisibility:ke(h?.value),value:n??null,help:l})}function it(e,t){return e.getIntValue(t)}function at(e){return e.default??null}function st(e){return e.value??null}function lt(e,t,o,r){t.setIntValue(e,o.value??null,{fromUi:o.fromUi},r)}const ct=c.memo(nt);export{ct as default};
@@ -1,2 +1,2 @@
1
- import{h as Pe,c3 as Z,r as I,cA as dt,cn as ht,c4 as G,cB as ft,cC as pt,c as Ae,b1 as gt,cf as mt,ap as vt,bl as bt,d0 as yt,j as ee,b$ as wt,c0 as kt,ch as Tt,c1 as xt,bJ as Ot,J as Mt,d1 as Oe}from"./index-B2QqSXxG.js";import{s as Fe}from"./sprintf-D7DtBTRn.js";import{a as Rt}from"./useBasicWidgetState-DVIC6bdr.js";import"./FormClearHelper-BC4K9Zmh.js";var le={},X={},de={},Le={},_e;function Me(){return _e||(_e=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.Direction=void 0,function(n){n.Right="to right",n.Left="to left",n.Down="to bottom",n.Up="to top"}(e.Direction||(e.Direction={}))}(Le)),Le}var ze;function Ve(){return ze||(ze=1,function(e){var n=de&&de.__spreadArray||function(o,s,c){if(c||arguments.length===2)for(var m=0,D=s.length,R;m<D;m++)(R||!(m in s))&&(R||(R=Array.prototype.slice.call(s,0,m)),R[m]=s[m]);return o.concat(R||Array.prototype.slice.call(s))};Object.defineProperty(e,"__esModule",{value:!0}),e.useThumbOverlap=e.assertUnreachable=e.voidFn=e.getTrackBackground=e.replaceAt=e.schd=e.translate=e.getClosestThumbIndex=e.translateThumbs=e.getPaddingAndBorder=e.getMargin=e.checkInitialOverlap=e.checkValuesAgainstBoundaries=e.checkBoundaries=e.isVertical=e.relativeValue=e.normalizeValue=e.isStepDivisible=e.isTouchEvent=e.getStepDecimals=void 0;var r=Pe(),i=Me(),g=function(o){var s=o.toString().split(".")[1];return s?s.length:0};e.getStepDecimals=g;function x(o){return o.touches&&o.touches.length||o.changedTouches&&o.changedTouches.length}e.isTouchEvent=x;function l(o,s,c){var m=(s-o)/c,D=8,R=Number(m.toFixed(D));return parseInt(R.toString(),10)===R}e.isStepDivisible=l;function f(o,s,c,m,D,R,O){var b=1e11;if(o=Math.round(o*b)/b,!R){var $=O[s-1],j=O[s+1];if($&&$>o)return $;if(j&&j<o)return j}if(o>m)return m;if(o<c)return c;var C=Math.floor(o*b-c*b)%Math.floor(D*b),N=Math.floor(o*b-Math.abs(C)),H=C===0?o:N/b,F=Math.abs(C/b)<D/2?H:H+D,U=(0,e.getStepDecimals)(D);return parseFloat(F.toFixed(U))}e.normalizeValue=f;function L(o,s,c){return(o-s)/(c-s)}e.relativeValue=L;function A(o){return o===i.Direction.Up||o===i.Direction.Down}e.isVertical=A;function z(o,s,c){if(s>=c)throw new RangeError("min (".concat(s,") is equal/bigger than max (").concat(c,")"));if(o<s)throw new RangeError("value (".concat(o,") is smaller than min (").concat(s,")"));if(o>c)throw new RangeError("value (".concat(o,") is bigger than max (").concat(c,")"))}e.checkBoundaries=z;function k(o,s,c){return o<s?s:o>c?c:o}e.checkValuesAgainstBoundaries=k;function y(o){if(!(o.length<2)&&!o.slice(1).every(function(s,c){return o[c]<=s}))throw new RangeError("values={[".concat(o,"]} needs to be sorted when allowOverlap={false}"))}e.checkInitialOverlap=y;function h(o){var s=window.getComputedStyle(o);return{top:parseInt(s["margin-top"],10),bottom:parseInt(s["margin-bottom"],10),left:parseInt(s["margin-left"],10),right:parseInt(s["margin-right"],10)}}e.getMargin=h;function t(o){var s=window.getComputedStyle(o);return{top:parseInt(s["padding-top"],10)+parseInt(s["border-top-width"],10),bottom:parseInt(s["padding-bottom"],10)+parseInt(s["border-bottom-width"],10),left:parseInt(s["padding-left"],10)+parseInt(s["border-left-width"],10),right:parseInt(s["padding-right"],10)+parseInt(s["border-right-width"],10)}}e.getPaddingAndBorder=t;function a(o,s,c){var m=c?-1:1;o.forEach(function(D,R){return p(D,m*s[R].x,s[R].y)})}e.translateThumbs=a;function u(o,s,c,m){for(var D=0,R=_(o[0],s,c,m),O=1;O<o.length;O++){var b=_(o[O],s,c,m);b<R&&(R=b,D=O)}return D}e.getClosestThumbIndex=u;function p(o,s,c){o.style.transform="translate(".concat(s,"px, ").concat(c,"px)")}e.translate=p;var d=function(o){var s=[],c=null,m=function(){for(var D=[],R=0;R<arguments.length;R++)D[R]=arguments[R];s=D,!c&&(c=requestAnimationFrame(function(){c=null,o.apply(void 0,s)}))};return m};e.schd=d;function w(o,s,c){var m=o.slice(0);return m[s]=c,m}e.replaceAt=w;function E(o){var s=o.values,c=o.colors,m=o.min,D=o.max,R=o.direction,O=R===void 0?i.Direction.Right:R,b=o.rtl,$=b===void 0?!1:b;$&&O===i.Direction.Right?O=i.Direction.Left:$&&i.Direction.Left&&(O=i.Direction.Right);var j=s.slice(0).sort(function(N,H){return N-H}).map(function(N){return(N-m)/(D-m)*100}),C=j.reduce(function(N,H,F){return"".concat(N,", ").concat(c[F]," ").concat(H,"%, ").concat(c[F+1]," ").concat(H,"%")},"");return"linear-gradient(".concat(O,", ").concat(c[0]," 0%").concat(C,", ").concat(c[c.length-1]," 100%)")}e.getTrackBackground=E;function T(){}e.voidFn=T;function M(o){throw new Error("Didn't expect to get here")}e.assertUnreachable=M;var v=function(o,s,c,m,D){D===void 0&&(D=function(O){return O});var R=Math.ceil(n([o],Array.from(o.children),!0).reduce(function(O,b){var $=Math.ceil(b.getBoundingClientRect().width);if(b.innerText&&b.innerText.includes(c)&&b.childElementCount===0){var j=b.cloneNode(!0);j.innerHTML=D(s.toFixed(m)),j.style.visibility="hidden",document.body.appendChild(j),$=Math.ceil(j.getBoundingClientRect().width),document.body.removeChild(j)}return $>O?$:O},o.getBoundingClientRect().width));return R},B=function(o,s,c,m,D,R,O){O===void 0&&(O=function(j){return j});var b=[],$=function(j){var C=v(c[j],m[j],D,R,O),N=s[j].x;s.forEach(function(H,F){var U=H.x,V=v(c[F],m[F],D,R,O);j!==F&&(N>=U&&N<=U+V||N+C>=U&&N+C<=U+V)&&(b.includes(F)||(b.push(j),b.push(F),b=n(n([],b,!0),[j,F],!1),$(F)))})};return $(o),Array.from(new Set(b.sort()))},S=function(o,s,c,m,D,R){m===void 0&&(m=.1),D===void 0&&(D=" - "),R===void 0&&(R=function(F){return F});var O=(0,e.getStepDecimals)(m),b=(0,r.useState)({}),$=b[0],j=b[1],C=(0,r.useState)(R(s[c].toFixed(O))),N=C[0],H=C[1];return(0,r.useEffect)(function(){if(o){var F=o.getThumbs();if(F.length<1)return;var U={},V=o.getOffsets(),te=B(c,V,F,s,D,O,R),oe=R(s[c].toFixed(O));if(te.length){var ne=te.reduce(function(J,ce,se,ue){return J.length?n(n([],J,!0),[V[ue[se]].x],!1):[V[ue[se]].x]},[]);if(Math.min.apply(Math,ne)===V[c].x){var re=[];te.forEach(function(J){re.push(s[J].toFixed(O))}),oe=Array.from(new Set(re.sort(function(J,ce){return parseFloat(J)-parseFloat(ce)}))).map(R).join(D);var Te=Math.min.apply(Math,ne),ie=Math.max.apply(Math,ne),xe=F[te[ne.indexOf(ie)]].getBoundingClientRect().width;U.left="".concat(Math.abs(Te-(ie+xe))/2,"px"),U.transform="translate(-50%, 0)"}else U.visibility="hidden"}H(oe),j(U)}},[o,s]),[N,$]};e.useThumbOverlap=S;function _(o,s,c,m){var D=o.getBoundingClientRect(),R=D.left,O=D.top,b=D.width,$=D.height;return A(m)?Math.abs(c-(O+$/2)):Math.abs(s-(R+b/2))}}(de)),de}var Ne;function Dt(){if(Ne)return X;Ne=1;var e=X&&X.__extends||function(){var k=function(y,h){return k=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,a){t.__proto__=a}||function(t,a){for(var u in a)Object.prototype.hasOwnProperty.call(a,u)&&(t[u]=a[u])},k(y,h)};return function(y,h){if(typeof h!="function"&&h!==null)throw new TypeError("Class extends value "+String(h)+" is not a constructor or null");k(y,h);function t(){this.constructor=y}y.prototype=h===null?Object.create(h):(t.prototype=h.prototype,new t)}}(),n=X&&X.__createBinding||(Object.create?function(k,y,h,t){t===void 0&&(t=h);var a=Object.getOwnPropertyDescriptor(y,h);(!a||("get"in a?!y.__esModule:a.writable||a.configurable))&&(a={enumerable:!0,get:function(){return y[h]}}),Object.defineProperty(k,t,a)}:function(k,y,h,t){t===void 0&&(t=h),k[t]=y[h]}),r=X&&X.__setModuleDefault||(Object.create?function(k,y){Object.defineProperty(k,"default",{enumerable:!0,value:y})}:function(k,y){k.default=y}),i=X&&X.__importStar||function(k){if(k&&k.__esModule)return k;var y={};if(k!=null)for(var h in k)h!=="default"&&Object.prototype.hasOwnProperty.call(k,h)&&n(y,k,h);return r(y,k),y},g=X&&X.__spreadArray||function(k,y,h){if(h||arguments.length===2)for(var t=0,a=y.length,u;t<a;t++)(u||!(t in y))&&(u||(u=Array.prototype.slice.call(y,0,t)),u[t]=y[t]);return k.concat(u||Array.prototype.slice.call(y))};Object.defineProperty(X,"__esModule",{value:!0});var x=i(Pe()),l=Ve(),f=Me(),L=["ArrowRight","ArrowUp","k","PageUp"],A=["ArrowLeft","ArrowDown","j","PageDown"],z=function(k){e(y,k);function y(h){var t=k.call(this,h)||this;if(t.trackRef=x.createRef(),t.thumbRefs=[],t.state={draggedTrackPos:[-1,-1],draggedThumbIndex:-1,thumbZIndexes:new Array(t.props.values.length).fill(0).map(function(a,u){return u}),isChanged:!1,markOffsets:[]},t.getOffsets=function(){var a=t.props,u=a.direction,p=a.values,d=a.min,w=a.max,E=t.trackRef.current,T=E.getBoundingClientRect(),M=(0,l.getPaddingAndBorder)(E);return t.getThumbs().map(function(v,B){var S={x:0,y:0},_=v.getBoundingClientRect(),o=(0,l.getMargin)(v);switch(u){case f.Direction.Right:return S.x=(o.left+M.left)*-1,S.y=((_.height-T.height)/2+M.top)*-1,S.x+=T.width*(0,l.relativeValue)(p[B],d,w)-_.width/2,S;case f.Direction.Left:return S.x=(o.right+M.right)*-1,S.y=((_.height-T.height)/2+M.top)*-1,S.x+=T.width-T.width*(0,l.relativeValue)(p[B],d,w)-_.width/2,S;case f.Direction.Up:return S.x=((_.width-T.width)/2+o.left+M.left)*-1,S.y=-M.left,S.y+=T.height-T.height*(0,l.relativeValue)(p[B],d,w)-_.height/2,S;case f.Direction.Down:return S.x=((_.width-T.width)/2+o.left+M.left)*-1,S.y=-M.left,S.y+=T.height*(0,l.relativeValue)(p[B],d,w)-_.height/2,S;default:return(0,l.assertUnreachable)(u)}})},t.getThumbs=function(){return t.trackRef&&t.trackRef.current?Array.from(t.trackRef.current.children).filter(function(a){return a.hasAttribute("aria-valuenow")}):(console.warn("No thumbs found in the track container. Did you forget to pass & spread the `props` param in renderTrack?"),[])},t.getTargetIndex=function(a){return t.getThumbs().findIndex(function(u){return u===a.target||u.contains(a.target)})},t.addTouchEvents=function(a){document.addEventListener("touchmove",t.schdOnTouchMove,{passive:!1}),document.addEventListener("touchend",t.schdOnEnd,{passive:!1}),document.addEventListener("touchcancel",t.schdOnEnd,{passive:!1})},t.addMouseEvents=function(a){document.addEventListener("mousemove",t.schdOnMouseMove),document.addEventListener("mouseup",t.schdOnEnd)},t.onMouseDownTrack=function(a){var u;if(a.button===0)if(a.persist(),a.preventDefault(),t.addMouseEvents(a.nativeEvent),t.props.values.length>1&&t.props.draggableTrack){if(t.thumbRefs.some(function(d){var w;return(w=d.current)===null||w===void 0?void 0:w.contains(a.target)}))return;t.setState({draggedTrackPos:[a.clientX,a.clientY]},function(){return t.onMove(a.clientX,a.clientY)})}else{var p=(0,l.getClosestThumbIndex)(t.thumbRefs.map(function(d){return d.current}),a.clientX,a.clientY,t.props.direction);(u=t.thumbRefs[p].current)===null||u===void 0||u.focus(),t.setState({draggedThumbIndex:p},function(){return t.onMove(a.clientX,a.clientY)})}},t.onResize=function(){(0,l.translateThumbs)(t.getThumbs(),t.getOffsets(),t.props.rtl),t.calculateMarkOffsets()},t.onTouchStartTrack=function(a){var u;if(a.persist(),t.addTouchEvents(a.nativeEvent),t.props.values.length>1&&t.props.draggableTrack){if(t.thumbRefs.some(function(d){var w;return(w=d.current)===null||w===void 0?void 0:w.contains(a.target)}))return;t.setState({draggedTrackPos:[a.touches[0].clientX,a.touches[0].clientY]},function(){return t.onMove(a.touches[0].clientX,a.touches[0].clientY)})}else{var p=(0,l.getClosestThumbIndex)(t.thumbRefs.map(function(d){return d.current}),a.touches[0].clientX,a.touches[0].clientY,t.props.direction);(u=t.thumbRefs[p].current)===null||u===void 0||u.focus(),t.setState({draggedThumbIndex:p},function(){return t.onMove(a.touches[0].clientX,a.touches[0].clientY)})}},t.onMouseOrTouchStart=function(a){if(!t.props.disabled){var u=(0,l.isTouchEvent)(a);if(!(!u&&a.button!==0)){var p=t.getTargetIndex(a);p!==-1&&(u?t.addTouchEvents(a):t.addMouseEvents(a),t.setState({draggedThumbIndex:p,thumbZIndexes:t.state.thumbZIndexes.map(function(d,w){return w===p?Math.max.apply(Math,t.state.thumbZIndexes):d<=t.state.thumbZIndexes[p]?d:d-1})}))}}},t.onMouseMove=function(a){a.preventDefault(),t.onMove(a.clientX,a.clientY)},t.onTouchMove=function(a){a.preventDefault(),t.onMove(a.touches[0].clientX,a.touches[0].clientY)},t.onKeyDown=function(a){var u=t.props,p=u.values,d=u.onChange,w=u.step,E=u.rtl,T=u.direction,M=t.state.isChanged,v=t.getTargetIndex(a.nativeEvent),B=E||T===f.Direction.Left||T===f.Direction.Down?-1:1;v!==-1&&(L.includes(a.key)?(a.preventDefault(),t.setState({draggedThumbIndex:v,isChanged:!0}),d((0,l.replaceAt)(p,v,t.normalizeValue(p[v]+B*(a.key==="PageUp"?w*10:w),v)))):A.includes(a.key)?(a.preventDefault(),t.setState({draggedThumbIndex:v,isChanged:!0}),d((0,l.replaceAt)(p,v,t.normalizeValue(p[v]-B*(a.key==="PageDown"?w*10:w),v)))):a.key==="Tab"?t.setState({draggedThumbIndex:-1},function(){M&&t.fireOnFinalChange()}):M&&t.fireOnFinalChange())},t.onKeyUp=function(a){var u=t.state.isChanged;t.setState({draggedThumbIndex:-1},function(){u&&t.fireOnFinalChange()})},t.onMove=function(a,u){var p=t.state,d=p.draggedThumbIndex,w=p.draggedTrackPos,E=t.props,T=E.direction,M=E.min,v=E.max,B=E.onChange,S=E.values,_=E.step,o=E.rtl;if(d===-1&&w[0]===-1&&w[1]===-1)return null;var s=t.trackRef.current;if(!s)return null;var c=s.getBoundingClientRect(),m=(0,l.isVertical)(T)?c.height:c.width;if(w[0]!==-1&&w[1]!==-1){var D=a-w[0],R=u-w[1],O=0;switch(T){case f.Direction.Right:case f.Direction.Left:O=D/m*(v-M);break;case f.Direction.Down:case f.Direction.Up:O=R/m*(v-M);break;default:(0,l.assertUnreachable)(T)}if(o&&(O*=-1),Math.abs(O)>=_/2){for(var b=0;b<t.thumbRefs.length;b++){if(S[b]===v&&Math.sign(O)===1||S[b]===M&&Math.sign(O)===-1)return;var $=S[b]+O;$>v?O=v-S[b]:$<M&&(O=M-S[b])}for(var j=S.slice(0),b=0;b<t.thumbRefs.length;b++)j=(0,l.replaceAt)(j,b,t.normalizeValue(S[b]+O,b));t.setState({draggedTrackPos:[a,u]}),B(j)}}else{var C=0;switch(T){case f.Direction.Right:C=(a-c.left)/m*(v-M)+M;break;case f.Direction.Left:C=(m-(a-c.left))/m*(v-M)+M;break;case f.Direction.Down:C=(u-c.top)/m*(v-M)+M;break;case f.Direction.Up:C=(m-(u-c.top))/m*(v-M)+M;break;default:(0,l.assertUnreachable)(T)}o&&(C=v+M-C),Math.abs(S[d]-C)>=_/2&&B((0,l.replaceAt)(S,d,t.normalizeValue(C,d)))}},t.normalizeValue=function(a,u){var p=t.props,d=p.min,w=p.max,E=p.step,T=p.allowOverlap,M=p.values;return(0,l.normalizeValue)(a,u,d,w,E,T,M)},t.onEnd=function(a){if(a.preventDefault(),document.removeEventListener("mousemove",t.schdOnMouseMove),document.removeEventListener("touchmove",t.schdOnTouchMove),document.removeEventListener("mouseup",t.schdOnEnd),document.removeEventListener("touchend",t.schdOnEnd),document.removeEventListener("touchcancel",t.schdOnEnd),t.state.draggedThumbIndex===-1&&t.state.draggedTrackPos[0]===-1&&t.state.draggedTrackPos[1]===-1)return null;t.setState({draggedThumbIndex:-1,draggedTrackPos:[-1,-1]},function(){t.fireOnFinalChange()})},t.fireOnFinalChange=function(){t.setState({isChanged:!1});var a=t.props,u=a.onFinalChange,p=a.values;u&&u(p)},t.updateMarkRefs=function(a){if(!a.renderMark){t.numOfMarks=void 0,t.markRefs=void 0;return}t.numOfMarks=(a.max-a.min)/t.props.step,t.markRefs=[];for(var u=0;u<t.numOfMarks+1;u++)t.markRefs[u]=x.createRef()},t.calculateMarkOffsets=function(){if(!(!t.props.renderMark||!t.trackRef||!t.numOfMarks||!t.markRefs||t.trackRef.current===null)){for(var a=window.getComputedStyle(t.trackRef.current),u=parseInt(a.width,10),p=parseInt(a.height,10),d=parseInt(a.paddingLeft,10),w=parseInt(a.paddingTop,10),E=[],T=0;T<t.numOfMarks+1;T++){var M=9999,v=9999;if(t.markRefs[T].current){var B=t.markRefs[T].current.getBoundingClientRect();M=B.height,v=B.width}t.props.direction===f.Direction.Left||t.props.direction===f.Direction.Right?E.push([Math.round(u/t.numOfMarks*T+d-v/2),-Math.round((M-p)/2)]):E.push([Math.round(p/t.numOfMarks*T+w-M/2),-Math.round((v-u)/2)])}t.setState({markOffsets:E})}},h.step===0)throw new Error('"step" property should be a positive number');return t.schdOnMouseMove=(0,l.schd)(t.onMouseMove),t.schdOnTouchMove=(0,l.schd)(t.onTouchMove),t.schdOnEnd=(0,l.schd)(t.onEnd),t.thumbRefs=h.values.map(function(){return x.createRef()}),t.updateMarkRefs(h),t}return y.prototype.componentDidMount=function(){var h=this,t=this.props,a=t.values,u=t.min,p=t.step;this.resizeObserver=window.ResizeObserver?new window.ResizeObserver(this.onResize):{observe:function(){return window.addEventListener("resize",h.onResize)},unobserve:function(){return window.removeEventListener("resize",h.onResize)}},document.addEventListener("touchstart",this.onMouseOrTouchStart,{passive:!1}),document.addEventListener("mousedown",this.onMouseOrTouchStart,{passive:!1}),!this.props.allowOverlap&&(0,l.checkInitialOverlap)(this.props.values),this.props.values.forEach(function(d){return(0,l.checkBoundaries)(d,h.props.min,h.props.max)}),this.resizeObserver.observe(this.trackRef.current),(0,l.translateThumbs)(this.getThumbs(),this.getOffsets(),this.props.rtl),this.calculateMarkOffsets(),a.forEach(function(d){(0,l.isStepDivisible)(u,d,p)||console.warn("The `values` property is in conflict with the current `step`, `min`, and `max` properties. Please provide values that are accessible using the min, max, and step values.")})},y.prototype.componentDidUpdate=function(h,t){var a=this.props,u=a.max,p=a.min,d=a.step,w=a.values,E=a.rtl;(h.max!==u||h.min!==p||h.step!==d)&&this.updateMarkRefs(this.props),(0,l.translateThumbs)(this.getThumbs(),this.getOffsets(),E),(h.max!==u||h.min!==p||h.step!==d||t.markOffsets.length!==this.state.markOffsets.length)&&(this.calculateMarkOffsets(),w.forEach(function(T){(0,l.isStepDivisible)(p,T,d)||console.warn("The `values` property is in conflict with the current `step`, `min`, and `max` properties. Please provide values that are accessible using the min, max, and step values.")}))},y.prototype.componentWillUnmount=function(){var h={passive:!1};document.removeEventListener("mousedown",this.onMouseOrTouchStart,h),document.removeEventListener("mousemove",this.schdOnMouseMove),document.removeEventListener("touchmove",this.schdOnTouchMove),document.removeEventListener("touchstart",this.onMouseOrTouchStart),document.removeEventListener("mouseup",this.schdOnEnd),document.removeEventListener("touchend",this.schdOnEnd),this.resizeObserver.unobserve(this.trackRef.current)},y.prototype.render=function(){var h=this,t=this.props,a=t.renderTrack,u=t.renderThumb,p=t.renderMark,d=p===void 0?function(){return null}:p,w=t.values,E=t.min,T=t.max,M=t.allowOverlap,v=t.disabled,B=this.state,S=B.draggedThumbIndex,_=B.thumbZIndexes,o=B.markOffsets;return a({props:{style:{transform:"scale(1)",cursor:S>-1?"grabbing":this.props.draggableTrack?(0,l.isVertical)(this.props.direction)?"ns-resize":"ew-resize":w.length===1&&!v?"pointer":"inherit"},onMouseDown:v?l.voidFn:this.onMouseDownTrack,onTouchStart:v?l.voidFn:this.onTouchStartTrack,ref:this.trackRef},isDragged:this.state.draggedThumbIndex>-1,disabled:v,children:g(g([],o.map(function(s,c,m){return d({props:{style:h.props.direction===f.Direction.Left||h.props.direction===f.Direction.Right?{position:"absolute",left:"".concat(s[0],"px"),marginTop:"".concat(s[1],"px")}:{position:"absolute",top:"".concat(s[0],"px"),marginLeft:"".concat(s[1],"px")},key:"mark".concat(c),ref:h.markRefs[c]},index:c})}),!0),w.map(function(s,c){var m=h.state.draggedThumbIndex===c;return u({index:c,value:s,isDragged:m,props:{style:{position:"absolute",zIndex:_[c],cursor:v?"inherit":m?"grabbing":"grab",userSelect:"none",touchAction:"none",WebkitUserSelect:"none",MozUserSelect:"none",msUserSelect:"none"},key:c,tabIndex:v?void 0:0,"aria-valuemax":M?T:w[c+1]||T,"aria-valuemin":M?E:w[c-1]||E,"aria-valuenow":s,draggable:!1,ref:h.thumbRefs[c],role:"slider",onKeyDown:v?l.voidFn:h.onKeyDown,onKeyUp:v?l.voidFn:h.onKeyUp}})}),!0)})},y.defaultProps={step:1,direction:f.Direction.Right,rtl:!1,disabled:!1,allowOverlap:!1,draggableTrack:!1,min:0,max:100},y}(x.Component);return X.default=z,X}var Ue;function Et(){return Ue||(Ue=1,function(e){var n=le&&le.__importDefault||function(x){return x&&x.__esModule?x:{default:x}};Object.defineProperty(e,"__esModule",{value:!0}),e.checkValuesAgainstBoundaries=e.relativeValue=e.useThumbOverlap=e.Direction=e.getTrackBackground=e.Range=void 0;var r=n(Dt());e.Range=r.default;var i=Ve();Object.defineProperty(e,"getTrackBackground",{enumerable:!0,get:function(){return i.getTrackBackground}}),Object.defineProperty(e,"useThumbOverlap",{enumerable:!0,get:function(){return i.useThumbOverlap}}),Object.defineProperty(e,"relativeValue",{enumerable:!0,get:function(){return i.relativeValue}}),Object.defineProperty(e,"checkValuesAgainstBoundaries",{enumerable:!0,get:function(){return i.checkValuesAgainstBoundaries}});var g=Me();Object.defineProperty(e,"Direction",{enumerable:!0,get:function(){return g.Direction}})}(le)),le}var Xe=Et();function He(e,n){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);n&&(i=i.filter(function(g){return Object.getOwnPropertyDescriptor(e,g).enumerable})),r.push.apply(r,i)}return r}function he(e){for(var n=1;n<arguments.length;n++){var r=arguments[n]!=null?arguments[n]:{};n%2?He(Object(r),!0).forEach(function(i){St(e,i,r[i])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):He(Object(r)).forEach(function(i){Object.defineProperty(e,i,Object.getOwnPropertyDescriptor(r,i))})}return e}function St(e,n,r){return n in e?Object.defineProperty(e,n,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[n]=r,e}var fe=Z("div",{position:"relative",width:"100%"});fe.displayName="Root",fe.displayName="Root",fe.displayName="StyledRoot";var pe=Z("div",function(e){var n=e.$theme,r=e.$value,i=r===void 0?[]:r,g=e.$disabled,x=e.$isDragged,l=n.sizing,f="inherit";return g?f="not-allowed":x?f="grabbing":i.length===1&&(f="pointer"),{paddingTop:l.scale600,paddingBottom:l.scale600,paddingRight:l.scale600,paddingLeft:l.scale600,display:"flex",cursor:f,backgroundColor:n.colors.sliderTrackFill}});pe.displayName="Track",pe.displayName="Track",pe.displayName="StyledTrack";var ge=Z("div",function(e){var n=e.$theme,r=e.$value,i=r===void 0?[]:r,g=e.$min,x=e.$max,l=e.$disabled,f=n.colors,L=n.borders,A=n.direction,z=n.borders.useRoundedCorners?L.radius100:0;return{borderTopLeftRadius:z,borderTopRightRadius:z,borderBottomRightRadius:z,borderBottomLeftRadius:z,background:Xe.getTrackBackground({values:i,colors:i.length===1?[l?f.borderOpaque:f.primary,l?f.backgroundSecondary:f.borderOpaque]:[l?f.backgroundSecondary:f.borderOpaque,l?f.borderOpaque:f.primary,l?f.backgroundSecondary:f.borderOpaque],min:g||0,max:x||0,rtl:A==="rtl"}),height:"2px",width:"100%",alignSelf:"center",cursor:l?"not-allowed":"inherit"}});ge.displayName="InnerTrack",ge.displayName="InnerTrack",ge.displayName="StyledInnerTrack";var me=Z("div",function(e){return{width:"4px",height:"2px",backgroundColor:e.$theme.colors.backgroundPrimary,marginLeft:"16px"}});me.displayName="Mark",me.displayName="Mark",me.displayName="StyledMark";var ve=Z("div",function(e){return he(he({},e.$theme.typography.font200),{},{color:e.$theme.colors.contentPrimary})});ve.displayName="Tick",ve.displayName="Tick",ve.displayName="StyledTick";var be=Z("div",function(e){var n=e.$theme,r=n.sizing;return{display:"flex",justifyContent:"space-between",alignItems:"center",paddingRight:r.scale600,paddingLeft:r.scale600,paddingBottom:r.scale400}});be.displayName="TickBar",be.displayName="TickBar",be.displayName="StyledTickBar";var ye=Z("div",function(e){var n=e.$theme,r=e.$value,i=r===void 0?[]:r,g=e.$thumbIndex,x=e.$disabled,l=i.length===2&&g===0,f=i.length===2&&g===1;return n.direction==="rtl"&&(f||l)&&(l=!l,f=!f),{height:"24px",width:"24px",borderTopLeftRadius:"24px",borderTopRightRadius:"24px",borderBottomLeftRadius:"24px",borderBottomRightRadius:"24px",display:"flex",justifyContent:"center",alignItems:"center",backgroundColor:x?n.colors.sliderHandleFillDisabled:n.colors.sliderHandleFill,outline:"none",boxShadow:e.$isFocusVisible?"0 0 0 3px ".concat(n.colors.accent):"0 1px 4px rgba(0, 0, 0, 0.12)",cursor:x?"not-allowed":"inherit"}});ye.displayName="Thumb",ye.displayName="Thumb",ye.displayName="StyledThumb";var we=Z("div",function(e){var n=e.$disabled,r=e.$theme;return{position:"absolute",top:"-16px",width:"4px",height:"20px",backgroundColor:n?r.colors.sliderHandleFillDisabled:r.colors.sliderHandleInnerFill}});we.displayName="InnerThumb",we.displayName="InnerThumb",we.displayName="StyledInnerThumb";var ke=Z("div",function(e){var n=e.$disabled,r=e.$theme;return he(he({position:"absolute",top:"-".concat(r.sizing.scale1400)},r.typography.font200),{},{backgroundColor:n?r.colors.sliderHandleFillDisabled:r.colors.sliderHandleInnerFill,color:r.colors.contentInversePrimary,paddingLeft:r.sizing.scale600,paddingRight:r.sizing.scale600,paddingTop:r.sizing.scale500,paddingBottom:r.sizing.scale500,borderBottomLeftRadius:"48px",borderBottomRightRadius:"48px",borderTopLeftRadius:"48px",borderTopRightRadius:"48px",whiteSpace:"nowrap"})});ke.displayName="ThumbValue",ke.displayName="ThumbValue",ke.displayName="StyledThumbValue";function qe(e,n){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);n&&(i=i.filter(function(g){return Object.getOwnPropertyDescriptor(e,g).enumerable})),r.push.apply(r,i)}return r}function It(e){for(var n=1;n<arguments.length;n++){var r=arguments[n]!=null?arguments[n]:{};n%2?qe(Object(r),!0).forEach(function(i){jt(e,i,r[i])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):qe(Object(r)).forEach(function(i){Object.defineProperty(e,i,Object.getOwnPropertyDescriptor(r,i))})}return e}function jt(e,n,r){return n in e?Object.defineProperty(e,n,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[n]=r,e}function K(){return K=Object.assign?Object.assign.bind():function(e){for(var n=1;n<arguments.length;n++){var r=arguments[n];for(var i in r)Object.prototype.hasOwnProperty.call(r,i)&&(e[i]=r[i])}return e},K.apply(this,arguments)}function W(e,n){return Pt(e)||Ct(e,n)||$t(e,n)||Bt()}function Bt(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
1
+ import{h as Pe,c3 as Z,r as I,cA as dt,cn as ht,c4 as G,cB as ft,cC as pt,c as Ae,b1 as gt,cf as mt,ap as vt,bl as bt,d0 as yt,j as ee,b$ as wt,c0 as kt,ch as Tt,c1 as xt,bJ as Ot,J as Mt,d1 as Oe}from"./index-clm6On2Y.js";import{s as Fe}from"./sprintf-D7DtBTRn.js";import{a as Rt}from"./useBasicWidgetState-CCltHZT9.js";import"./FormClearHelper-DBsQ33IR.js";var le={},X={},de={},Le={},_e;function Me(){return _e||(_e=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.Direction=void 0,function(n){n.Right="to right",n.Left="to left",n.Down="to bottom",n.Up="to top"}(e.Direction||(e.Direction={}))}(Le)),Le}var ze;function Ve(){return ze||(ze=1,function(e){var n=de&&de.__spreadArray||function(o,s,c){if(c||arguments.length===2)for(var m=0,D=s.length,R;m<D;m++)(R||!(m in s))&&(R||(R=Array.prototype.slice.call(s,0,m)),R[m]=s[m]);return o.concat(R||Array.prototype.slice.call(s))};Object.defineProperty(e,"__esModule",{value:!0}),e.useThumbOverlap=e.assertUnreachable=e.voidFn=e.getTrackBackground=e.replaceAt=e.schd=e.translate=e.getClosestThumbIndex=e.translateThumbs=e.getPaddingAndBorder=e.getMargin=e.checkInitialOverlap=e.checkValuesAgainstBoundaries=e.checkBoundaries=e.isVertical=e.relativeValue=e.normalizeValue=e.isStepDivisible=e.isTouchEvent=e.getStepDecimals=void 0;var r=Pe(),i=Me(),g=function(o){var s=o.toString().split(".")[1];return s?s.length:0};e.getStepDecimals=g;function x(o){return o.touches&&o.touches.length||o.changedTouches&&o.changedTouches.length}e.isTouchEvent=x;function l(o,s,c){var m=(s-o)/c,D=8,R=Number(m.toFixed(D));return parseInt(R.toString(),10)===R}e.isStepDivisible=l;function f(o,s,c,m,D,R,O){var b=1e11;if(o=Math.round(o*b)/b,!R){var $=O[s-1],j=O[s+1];if($&&$>o)return $;if(j&&j<o)return j}if(o>m)return m;if(o<c)return c;var C=Math.floor(o*b-c*b)%Math.floor(D*b),N=Math.floor(o*b-Math.abs(C)),H=C===0?o:N/b,F=Math.abs(C/b)<D/2?H:H+D,U=(0,e.getStepDecimals)(D);return parseFloat(F.toFixed(U))}e.normalizeValue=f;function L(o,s,c){return(o-s)/(c-s)}e.relativeValue=L;function A(o){return o===i.Direction.Up||o===i.Direction.Down}e.isVertical=A;function z(o,s,c){if(s>=c)throw new RangeError("min (".concat(s,") is equal/bigger than max (").concat(c,")"));if(o<s)throw new RangeError("value (".concat(o,") is smaller than min (").concat(s,")"));if(o>c)throw new RangeError("value (".concat(o,") is bigger than max (").concat(c,")"))}e.checkBoundaries=z;function k(o,s,c){return o<s?s:o>c?c:o}e.checkValuesAgainstBoundaries=k;function y(o){if(!(o.length<2)&&!o.slice(1).every(function(s,c){return o[c]<=s}))throw new RangeError("values={[".concat(o,"]} needs to be sorted when allowOverlap={false}"))}e.checkInitialOverlap=y;function h(o){var s=window.getComputedStyle(o);return{top:parseInt(s["margin-top"],10),bottom:parseInt(s["margin-bottom"],10),left:parseInt(s["margin-left"],10),right:parseInt(s["margin-right"],10)}}e.getMargin=h;function t(o){var s=window.getComputedStyle(o);return{top:parseInt(s["padding-top"],10)+parseInt(s["border-top-width"],10),bottom:parseInt(s["padding-bottom"],10)+parseInt(s["border-bottom-width"],10),left:parseInt(s["padding-left"],10)+parseInt(s["border-left-width"],10),right:parseInt(s["padding-right"],10)+parseInt(s["border-right-width"],10)}}e.getPaddingAndBorder=t;function a(o,s,c){var m=c?-1:1;o.forEach(function(D,R){return p(D,m*s[R].x,s[R].y)})}e.translateThumbs=a;function u(o,s,c,m){for(var D=0,R=_(o[0],s,c,m),O=1;O<o.length;O++){var b=_(o[O],s,c,m);b<R&&(R=b,D=O)}return D}e.getClosestThumbIndex=u;function p(o,s,c){o.style.transform="translate(".concat(s,"px, ").concat(c,"px)")}e.translate=p;var d=function(o){var s=[],c=null,m=function(){for(var D=[],R=0;R<arguments.length;R++)D[R]=arguments[R];s=D,!c&&(c=requestAnimationFrame(function(){c=null,o.apply(void 0,s)}))};return m};e.schd=d;function w(o,s,c){var m=o.slice(0);return m[s]=c,m}e.replaceAt=w;function E(o){var s=o.values,c=o.colors,m=o.min,D=o.max,R=o.direction,O=R===void 0?i.Direction.Right:R,b=o.rtl,$=b===void 0?!1:b;$&&O===i.Direction.Right?O=i.Direction.Left:$&&i.Direction.Left&&(O=i.Direction.Right);var j=s.slice(0).sort(function(N,H){return N-H}).map(function(N){return(N-m)/(D-m)*100}),C=j.reduce(function(N,H,F){return"".concat(N,", ").concat(c[F]," ").concat(H,"%, ").concat(c[F+1]," ").concat(H,"%")},"");return"linear-gradient(".concat(O,", ").concat(c[0]," 0%").concat(C,", ").concat(c[c.length-1]," 100%)")}e.getTrackBackground=E;function T(){}e.voidFn=T;function M(o){throw new Error("Didn't expect to get here")}e.assertUnreachable=M;var v=function(o,s,c,m,D){D===void 0&&(D=function(O){return O});var R=Math.ceil(n([o],Array.from(o.children),!0).reduce(function(O,b){var $=Math.ceil(b.getBoundingClientRect().width);if(b.innerText&&b.innerText.includes(c)&&b.childElementCount===0){var j=b.cloneNode(!0);j.innerHTML=D(s.toFixed(m)),j.style.visibility="hidden",document.body.appendChild(j),$=Math.ceil(j.getBoundingClientRect().width),document.body.removeChild(j)}return $>O?$:O},o.getBoundingClientRect().width));return R},B=function(o,s,c,m,D,R,O){O===void 0&&(O=function(j){return j});var b=[],$=function(j){var C=v(c[j],m[j],D,R,O),N=s[j].x;s.forEach(function(H,F){var U=H.x,V=v(c[F],m[F],D,R,O);j!==F&&(N>=U&&N<=U+V||N+C>=U&&N+C<=U+V)&&(b.includes(F)||(b.push(j),b.push(F),b=n(n([],b,!0),[j,F],!1),$(F)))})};return $(o),Array.from(new Set(b.sort()))},S=function(o,s,c,m,D,R){m===void 0&&(m=.1),D===void 0&&(D=" - "),R===void 0&&(R=function(F){return F});var O=(0,e.getStepDecimals)(m),b=(0,r.useState)({}),$=b[0],j=b[1],C=(0,r.useState)(R(s[c].toFixed(O))),N=C[0],H=C[1];return(0,r.useEffect)(function(){if(o){var F=o.getThumbs();if(F.length<1)return;var U={},V=o.getOffsets(),te=B(c,V,F,s,D,O,R),oe=R(s[c].toFixed(O));if(te.length){var ne=te.reduce(function(J,ce,se,ue){return J.length?n(n([],J,!0),[V[ue[se]].x],!1):[V[ue[se]].x]},[]);if(Math.min.apply(Math,ne)===V[c].x){var re=[];te.forEach(function(J){re.push(s[J].toFixed(O))}),oe=Array.from(new Set(re.sort(function(J,ce){return parseFloat(J)-parseFloat(ce)}))).map(R).join(D);var Te=Math.min.apply(Math,ne),ie=Math.max.apply(Math,ne),xe=F[te[ne.indexOf(ie)]].getBoundingClientRect().width;U.left="".concat(Math.abs(Te-(ie+xe))/2,"px"),U.transform="translate(-50%, 0)"}else U.visibility="hidden"}H(oe),j(U)}},[o,s]),[N,$]};e.useThumbOverlap=S;function _(o,s,c,m){var D=o.getBoundingClientRect(),R=D.left,O=D.top,b=D.width,$=D.height;return A(m)?Math.abs(c-(O+$/2)):Math.abs(s-(R+b/2))}}(de)),de}var Ne;function Dt(){if(Ne)return X;Ne=1;var e=X&&X.__extends||function(){var k=function(y,h){return k=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,a){t.__proto__=a}||function(t,a){for(var u in a)Object.prototype.hasOwnProperty.call(a,u)&&(t[u]=a[u])},k(y,h)};return function(y,h){if(typeof h!="function"&&h!==null)throw new TypeError("Class extends value "+String(h)+" is not a constructor or null");k(y,h);function t(){this.constructor=y}y.prototype=h===null?Object.create(h):(t.prototype=h.prototype,new t)}}(),n=X&&X.__createBinding||(Object.create?function(k,y,h,t){t===void 0&&(t=h);var a=Object.getOwnPropertyDescriptor(y,h);(!a||("get"in a?!y.__esModule:a.writable||a.configurable))&&(a={enumerable:!0,get:function(){return y[h]}}),Object.defineProperty(k,t,a)}:function(k,y,h,t){t===void 0&&(t=h),k[t]=y[h]}),r=X&&X.__setModuleDefault||(Object.create?function(k,y){Object.defineProperty(k,"default",{enumerable:!0,value:y})}:function(k,y){k.default=y}),i=X&&X.__importStar||function(k){if(k&&k.__esModule)return k;var y={};if(k!=null)for(var h in k)h!=="default"&&Object.prototype.hasOwnProperty.call(k,h)&&n(y,k,h);return r(y,k),y},g=X&&X.__spreadArray||function(k,y,h){if(h||arguments.length===2)for(var t=0,a=y.length,u;t<a;t++)(u||!(t in y))&&(u||(u=Array.prototype.slice.call(y,0,t)),u[t]=y[t]);return k.concat(u||Array.prototype.slice.call(y))};Object.defineProperty(X,"__esModule",{value:!0});var x=i(Pe()),l=Ve(),f=Me(),L=["ArrowRight","ArrowUp","k","PageUp"],A=["ArrowLeft","ArrowDown","j","PageDown"],z=function(k){e(y,k);function y(h){var t=k.call(this,h)||this;if(t.trackRef=x.createRef(),t.thumbRefs=[],t.state={draggedTrackPos:[-1,-1],draggedThumbIndex:-1,thumbZIndexes:new Array(t.props.values.length).fill(0).map(function(a,u){return u}),isChanged:!1,markOffsets:[]},t.getOffsets=function(){var a=t.props,u=a.direction,p=a.values,d=a.min,w=a.max,E=t.trackRef.current,T=E.getBoundingClientRect(),M=(0,l.getPaddingAndBorder)(E);return t.getThumbs().map(function(v,B){var S={x:0,y:0},_=v.getBoundingClientRect(),o=(0,l.getMargin)(v);switch(u){case f.Direction.Right:return S.x=(o.left+M.left)*-1,S.y=((_.height-T.height)/2+M.top)*-1,S.x+=T.width*(0,l.relativeValue)(p[B],d,w)-_.width/2,S;case f.Direction.Left:return S.x=(o.right+M.right)*-1,S.y=((_.height-T.height)/2+M.top)*-1,S.x+=T.width-T.width*(0,l.relativeValue)(p[B],d,w)-_.width/2,S;case f.Direction.Up:return S.x=((_.width-T.width)/2+o.left+M.left)*-1,S.y=-M.left,S.y+=T.height-T.height*(0,l.relativeValue)(p[B],d,w)-_.height/2,S;case f.Direction.Down:return S.x=((_.width-T.width)/2+o.left+M.left)*-1,S.y=-M.left,S.y+=T.height*(0,l.relativeValue)(p[B],d,w)-_.height/2,S;default:return(0,l.assertUnreachable)(u)}})},t.getThumbs=function(){return t.trackRef&&t.trackRef.current?Array.from(t.trackRef.current.children).filter(function(a){return a.hasAttribute("aria-valuenow")}):(console.warn("No thumbs found in the track container. Did you forget to pass & spread the `props` param in renderTrack?"),[])},t.getTargetIndex=function(a){return t.getThumbs().findIndex(function(u){return u===a.target||u.contains(a.target)})},t.addTouchEvents=function(a){document.addEventListener("touchmove",t.schdOnTouchMove,{passive:!1}),document.addEventListener("touchend",t.schdOnEnd,{passive:!1}),document.addEventListener("touchcancel",t.schdOnEnd,{passive:!1})},t.addMouseEvents=function(a){document.addEventListener("mousemove",t.schdOnMouseMove),document.addEventListener("mouseup",t.schdOnEnd)},t.onMouseDownTrack=function(a){var u;if(a.button===0)if(a.persist(),a.preventDefault(),t.addMouseEvents(a.nativeEvent),t.props.values.length>1&&t.props.draggableTrack){if(t.thumbRefs.some(function(d){var w;return(w=d.current)===null||w===void 0?void 0:w.contains(a.target)}))return;t.setState({draggedTrackPos:[a.clientX,a.clientY]},function(){return t.onMove(a.clientX,a.clientY)})}else{var p=(0,l.getClosestThumbIndex)(t.thumbRefs.map(function(d){return d.current}),a.clientX,a.clientY,t.props.direction);(u=t.thumbRefs[p].current)===null||u===void 0||u.focus(),t.setState({draggedThumbIndex:p},function(){return t.onMove(a.clientX,a.clientY)})}},t.onResize=function(){(0,l.translateThumbs)(t.getThumbs(),t.getOffsets(),t.props.rtl),t.calculateMarkOffsets()},t.onTouchStartTrack=function(a){var u;if(a.persist(),t.addTouchEvents(a.nativeEvent),t.props.values.length>1&&t.props.draggableTrack){if(t.thumbRefs.some(function(d){var w;return(w=d.current)===null||w===void 0?void 0:w.contains(a.target)}))return;t.setState({draggedTrackPos:[a.touches[0].clientX,a.touches[0].clientY]},function(){return t.onMove(a.touches[0].clientX,a.touches[0].clientY)})}else{var p=(0,l.getClosestThumbIndex)(t.thumbRefs.map(function(d){return d.current}),a.touches[0].clientX,a.touches[0].clientY,t.props.direction);(u=t.thumbRefs[p].current)===null||u===void 0||u.focus(),t.setState({draggedThumbIndex:p},function(){return t.onMove(a.touches[0].clientX,a.touches[0].clientY)})}},t.onMouseOrTouchStart=function(a){if(!t.props.disabled){var u=(0,l.isTouchEvent)(a);if(!(!u&&a.button!==0)){var p=t.getTargetIndex(a);p!==-1&&(u?t.addTouchEvents(a):t.addMouseEvents(a),t.setState({draggedThumbIndex:p,thumbZIndexes:t.state.thumbZIndexes.map(function(d,w){return w===p?Math.max.apply(Math,t.state.thumbZIndexes):d<=t.state.thumbZIndexes[p]?d:d-1})}))}}},t.onMouseMove=function(a){a.preventDefault(),t.onMove(a.clientX,a.clientY)},t.onTouchMove=function(a){a.preventDefault(),t.onMove(a.touches[0].clientX,a.touches[0].clientY)},t.onKeyDown=function(a){var u=t.props,p=u.values,d=u.onChange,w=u.step,E=u.rtl,T=u.direction,M=t.state.isChanged,v=t.getTargetIndex(a.nativeEvent),B=E||T===f.Direction.Left||T===f.Direction.Down?-1:1;v!==-1&&(L.includes(a.key)?(a.preventDefault(),t.setState({draggedThumbIndex:v,isChanged:!0}),d((0,l.replaceAt)(p,v,t.normalizeValue(p[v]+B*(a.key==="PageUp"?w*10:w),v)))):A.includes(a.key)?(a.preventDefault(),t.setState({draggedThumbIndex:v,isChanged:!0}),d((0,l.replaceAt)(p,v,t.normalizeValue(p[v]-B*(a.key==="PageDown"?w*10:w),v)))):a.key==="Tab"?t.setState({draggedThumbIndex:-1},function(){M&&t.fireOnFinalChange()}):M&&t.fireOnFinalChange())},t.onKeyUp=function(a){var u=t.state.isChanged;t.setState({draggedThumbIndex:-1},function(){u&&t.fireOnFinalChange()})},t.onMove=function(a,u){var p=t.state,d=p.draggedThumbIndex,w=p.draggedTrackPos,E=t.props,T=E.direction,M=E.min,v=E.max,B=E.onChange,S=E.values,_=E.step,o=E.rtl;if(d===-1&&w[0]===-1&&w[1]===-1)return null;var s=t.trackRef.current;if(!s)return null;var c=s.getBoundingClientRect(),m=(0,l.isVertical)(T)?c.height:c.width;if(w[0]!==-1&&w[1]!==-1){var D=a-w[0],R=u-w[1],O=0;switch(T){case f.Direction.Right:case f.Direction.Left:O=D/m*(v-M);break;case f.Direction.Down:case f.Direction.Up:O=R/m*(v-M);break;default:(0,l.assertUnreachable)(T)}if(o&&(O*=-1),Math.abs(O)>=_/2){for(var b=0;b<t.thumbRefs.length;b++){if(S[b]===v&&Math.sign(O)===1||S[b]===M&&Math.sign(O)===-1)return;var $=S[b]+O;$>v?O=v-S[b]:$<M&&(O=M-S[b])}for(var j=S.slice(0),b=0;b<t.thumbRefs.length;b++)j=(0,l.replaceAt)(j,b,t.normalizeValue(S[b]+O,b));t.setState({draggedTrackPos:[a,u]}),B(j)}}else{var C=0;switch(T){case f.Direction.Right:C=(a-c.left)/m*(v-M)+M;break;case f.Direction.Left:C=(m-(a-c.left))/m*(v-M)+M;break;case f.Direction.Down:C=(u-c.top)/m*(v-M)+M;break;case f.Direction.Up:C=(m-(u-c.top))/m*(v-M)+M;break;default:(0,l.assertUnreachable)(T)}o&&(C=v+M-C),Math.abs(S[d]-C)>=_/2&&B((0,l.replaceAt)(S,d,t.normalizeValue(C,d)))}},t.normalizeValue=function(a,u){var p=t.props,d=p.min,w=p.max,E=p.step,T=p.allowOverlap,M=p.values;return(0,l.normalizeValue)(a,u,d,w,E,T,M)},t.onEnd=function(a){if(a.preventDefault(),document.removeEventListener("mousemove",t.schdOnMouseMove),document.removeEventListener("touchmove",t.schdOnTouchMove),document.removeEventListener("mouseup",t.schdOnEnd),document.removeEventListener("touchend",t.schdOnEnd),document.removeEventListener("touchcancel",t.schdOnEnd),t.state.draggedThumbIndex===-1&&t.state.draggedTrackPos[0]===-1&&t.state.draggedTrackPos[1]===-1)return null;t.setState({draggedThumbIndex:-1,draggedTrackPos:[-1,-1]},function(){t.fireOnFinalChange()})},t.fireOnFinalChange=function(){t.setState({isChanged:!1});var a=t.props,u=a.onFinalChange,p=a.values;u&&u(p)},t.updateMarkRefs=function(a){if(!a.renderMark){t.numOfMarks=void 0,t.markRefs=void 0;return}t.numOfMarks=(a.max-a.min)/t.props.step,t.markRefs=[];for(var u=0;u<t.numOfMarks+1;u++)t.markRefs[u]=x.createRef()},t.calculateMarkOffsets=function(){if(!(!t.props.renderMark||!t.trackRef||!t.numOfMarks||!t.markRefs||t.trackRef.current===null)){for(var a=window.getComputedStyle(t.trackRef.current),u=parseInt(a.width,10),p=parseInt(a.height,10),d=parseInt(a.paddingLeft,10),w=parseInt(a.paddingTop,10),E=[],T=0;T<t.numOfMarks+1;T++){var M=9999,v=9999;if(t.markRefs[T].current){var B=t.markRefs[T].current.getBoundingClientRect();M=B.height,v=B.width}t.props.direction===f.Direction.Left||t.props.direction===f.Direction.Right?E.push([Math.round(u/t.numOfMarks*T+d-v/2),-Math.round((M-p)/2)]):E.push([Math.round(p/t.numOfMarks*T+w-M/2),-Math.round((v-u)/2)])}t.setState({markOffsets:E})}},h.step===0)throw new Error('"step" property should be a positive number');return t.schdOnMouseMove=(0,l.schd)(t.onMouseMove),t.schdOnTouchMove=(0,l.schd)(t.onTouchMove),t.schdOnEnd=(0,l.schd)(t.onEnd),t.thumbRefs=h.values.map(function(){return x.createRef()}),t.updateMarkRefs(h),t}return y.prototype.componentDidMount=function(){var h=this,t=this.props,a=t.values,u=t.min,p=t.step;this.resizeObserver=window.ResizeObserver?new window.ResizeObserver(this.onResize):{observe:function(){return window.addEventListener("resize",h.onResize)},unobserve:function(){return window.removeEventListener("resize",h.onResize)}},document.addEventListener("touchstart",this.onMouseOrTouchStart,{passive:!1}),document.addEventListener("mousedown",this.onMouseOrTouchStart,{passive:!1}),!this.props.allowOverlap&&(0,l.checkInitialOverlap)(this.props.values),this.props.values.forEach(function(d){return(0,l.checkBoundaries)(d,h.props.min,h.props.max)}),this.resizeObserver.observe(this.trackRef.current),(0,l.translateThumbs)(this.getThumbs(),this.getOffsets(),this.props.rtl),this.calculateMarkOffsets(),a.forEach(function(d){(0,l.isStepDivisible)(u,d,p)||console.warn("The `values` property is in conflict with the current `step`, `min`, and `max` properties. Please provide values that are accessible using the min, max, and step values.")})},y.prototype.componentDidUpdate=function(h,t){var a=this.props,u=a.max,p=a.min,d=a.step,w=a.values,E=a.rtl;(h.max!==u||h.min!==p||h.step!==d)&&this.updateMarkRefs(this.props),(0,l.translateThumbs)(this.getThumbs(),this.getOffsets(),E),(h.max!==u||h.min!==p||h.step!==d||t.markOffsets.length!==this.state.markOffsets.length)&&(this.calculateMarkOffsets(),w.forEach(function(T){(0,l.isStepDivisible)(p,T,d)||console.warn("The `values` property is in conflict with the current `step`, `min`, and `max` properties. Please provide values that are accessible using the min, max, and step values.")}))},y.prototype.componentWillUnmount=function(){var h={passive:!1};document.removeEventListener("mousedown",this.onMouseOrTouchStart,h),document.removeEventListener("mousemove",this.schdOnMouseMove),document.removeEventListener("touchmove",this.schdOnTouchMove),document.removeEventListener("touchstart",this.onMouseOrTouchStart),document.removeEventListener("mouseup",this.schdOnEnd),document.removeEventListener("touchend",this.schdOnEnd),this.resizeObserver.unobserve(this.trackRef.current)},y.prototype.render=function(){var h=this,t=this.props,a=t.renderTrack,u=t.renderThumb,p=t.renderMark,d=p===void 0?function(){return null}:p,w=t.values,E=t.min,T=t.max,M=t.allowOverlap,v=t.disabled,B=this.state,S=B.draggedThumbIndex,_=B.thumbZIndexes,o=B.markOffsets;return a({props:{style:{transform:"scale(1)",cursor:S>-1?"grabbing":this.props.draggableTrack?(0,l.isVertical)(this.props.direction)?"ns-resize":"ew-resize":w.length===1&&!v?"pointer":"inherit"},onMouseDown:v?l.voidFn:this.onMouseDownTrack,onTouchStart:v?l.voidFn:this.onTouchStartTrack,ref:this.trackRef},isDragged:this.state.draggedThumbIndex>-1,disabled:v,children:g(g([],o.map(function(s,c,m){return d({props:{style:h.props.direction===f.Direction.Left||h.props.direction===f.Direction.Right?{position:"absolute",left:"".concat(s[0],"px"),marginTop:"".concat(s[1],"px")}:{position:"absolute",top:"".concat(s[0],"px"),marginLeft:"".concat(s[1],"px")},key:"mark".concat(c),ref:h.markRefs[c]},index:c})}),!0),w.map(function(s,c){var m=h.state.draggedThumbIndex===c;return u({index:c,value:s,isDragged:m,props:{style:{position:"absolute",zIndex:_[c],cursor:v?"inherit":m?"grabbing":"grab",userSelect:"none",touchAction:"none",WebkitUserSelect:"none",MozUserSelect:"none",msUserSelect:"none"},key:c,tabIndex:v?void 0:0,"aria-valuemax":M?T:w[c+1]||T,"aria-valuemin":M?E:w[c-1]||E,"aria-valuenow":s,draggable:!1,ref:h.thumbRefs[c],role:"slider",onKeyDown:v?l.voidFn:h.onKeyDown,onKeyUp:v?l.voidFn:h.onKeyUp}})}),!0)})},y.defaultProps={step:1,direction:f.Direction.Right,rtl:!1,disabled:!1,allowOverlap:!1,draggableTrack:!1,min:0,max:100},y}(x.Component);return X.default=z,X}var Ue;function Et(){return Ue||(Ue=1,function(e){var n=le&&le.__importDefault||function(x){return x&&x.__esModule?x:{default:x}};Object.defineProperty(e,"__esModule",{value:!0}),e.checkValuesAgainstBoundaries=e.relativeValue=e.useThumbOverlap=e.Direction=e.getTrackBackground=e.Range=void 0;var r=n(Dt());e.Range=r.default;var i=Ve();Object.defineProperty(e,"getTrackBackground",{enumerable:!0,get:function(){return i.getTrackBackground}}),Object.defineProperty(e,"useThumbOverlap",{enumerable:!0,get:function(){return i.useThumbOverlap}}),Object.defineProperty(e,"relativeValue",{enumerable:!0,get:function(){return i.relativeValue}}),Object.defineProperty(e,"checkValuesAgainstBoundaries",{enumerable:!0,get:function(){return i.checkValuesAgainstBoundaries}});var g=Me();Object.defineProperty(e,"Direction",{enumerable:!0,get:function(){return g.Direction}})}(le)),le}var Xe=Et();function He(e,n){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);n&&(i=i.filter(function(g){return Object.getOwnPropertyDescriptor(e,g).enumerable})),r.push.apply(r,i)}return r}function he(e){for(var n=1;n<arguments.length;n++){var r=arguments[n]!=null?arguments[n]:{};n%2?He(Object(r),!0).forEach(function(i){St(e,i,r[i])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):He(Object(r)).forEach(function(i){Object.defineProperty(e,i,Object.getOwnPropertyDescriptor(r,i))})}return e}function St(e,n,r){return n in e?Object.defineProperty(e,n,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[n]=r,e}var fe=Z("div",{position:"relative",width:"100%"});fe.displayName="Root",fe.displayName="Root",fe.displayName="StyledRoot";var pe=Z("div",function(e){var n=e.$theme,r=e.$value,i=r===void 0?[]:r,g=e.$disabled,x=e.$isDragged,l=n.sizing,f="inherit";return g?f="not-allowed":x?f="grabbing":i.length===1&&(f="pointer"),{paddingTop:l.scale600,paddingBottom:l.scale600,paddingRight:l.scale600,paddingLeft:l.scale600,display:"flex",cursor:f,backgroundColor:n.colors.sliderTrackFill}});pe.displayName="Track",pe.displayName="Track",pe.displayName="StyledTrack";var ge=Z("div",function(e){var n=e.$theme,r=e.$value,i=r===void 0?[]:r,g=e.$min,x=e.$max,l=e.$disabled,f=n.colors,L=n.borders,A=n.direction,z=n.borders.useRoundedCorners?L.radius100:0;return{borderTopLeftRadius:z,borderTopRightRadius:z,borderBottomRightRadius:z,borderBottomLeftRadius:z,background:Xe.getTrackBackground({values:i,colors:i.length===1?[l?f.borderOpaque:f.primary,l?f.backgroundSecondary:f.borderOpaque]:[l?f.backgroundSecondary:f.borderOpaque,l?f.borderOpaque:f.primary,l?f.backgroundSecondary:f.borderOpaque],min:g||0,max:x||0,rtl:A==="rtl"}),height:"2px",width:"100%",alignSelf:"center",cursor:l?"not-allowed":"inherit"}});ge.displayName="InnerTrack",ge.displayName="InnerTrack",ge.displayName="StyledInnerTrack";var me=Z("div",function(e){return{width:"4px",height:"2px",backgroundColor:e.$theme.colors.backgroundPrimary,marginLeft:"16px"}});me.displayName="Mark",me.displayName="Mark",me.displayName="StyledMark";var ve=Z("div",function(e){return he(he({},e.$theme.typography.font200),{},{color:e.$theme.colors.contentPrimary})});ve.displayName="Tick",ve.displayName="Tick",ve.displayName="StyledTick";var be=Z("div",function(e){var n=e.$theme,r=n.sizing;return{display:"flex",justifyContent:"space-between",alignItems:"center",paddingRight:r.scale600,paddingLeft:r.scale600,paddingBottom:r.scale400}});be.displayName="TickBar",be.displayName="TickBar",be.displayName="StyledTickBar";var ye=Z("div",function(e){var n=e.$theme,r=e.$value,i=r===void 0?[]:r,g=e.$thumbIndex,x=e.$disabled,l=i.length===2&&g===0,f=i.length===2&&g===1;return n.direction==="rtl"&&(f||l)&&(l=!l,f=!f),{height:"24px",width:"24px",borderTopLeftRadius:"24px",borderTopRightRadius:"24px",borderBottomLeftRadius:"24px",borderBottomRightRadius:"24px",display:"flex",justifyContent:"center",alignItems:"center",backgroundColor:x?n.colors.sliderHandleFillDisabled:n.colors.sliderHandleFill,outline:"none",boxShadow:e.$isFocusVisible?"0 0 0 3px ".concat(n.colors.accent):"0 1px 4px rgba(0, 0, 0, 0.12)",cursor:x?"not-allowed":"inherit"}});ye.displayName="Thumb",ye.displayName="Thumb",ye.displayName="StyledThumb";var we=Z("div",function(e){var n=e.$disabled,r=e.$theme;return{position:"absolute",top:"-16px",width:"4px",height:"20px",backgroundColor:n?r.colors.sliderHandleFillDisabled:r.colors.sliderHandleInnerFill}});we.displayName="InnerThumb",we.displayName="InnerThumb",we.displayName="StyledInnerThumb";var ke=Z("div",function(e){var n=e.$disabled,r=e.$theme;return he(he({position:"absolute",top:"-".concat(r.sizing.scale1400)},r.typography.font200),{},{backgroundColor:n?r.colors.sliderHandleFillDisabled:r.colors.sliderHandleInnerFill,color:r.colors.contentInversePrimary,paddingLeft:r.sizing.scale600,paddingRight:r.sizing.scale600,paddingTop:r.sizing.scale500,paddingBottom:r.sizing.scale500,borderBottomLeftRadius:"48px",borderBottomRightRadius:"48px",borderTopLeftRadius:"48px",borderTopRightRadius:"48px",whiteSpace:"nowrap"})});ke.displayName="ThumbValue",ke.displayName="ThumbValue",ke.displayName="StyledThumbValue";function qe(e,n){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);n&&(i=i.filter(function(g){return Object.getOwnPropertyDescriptor(e,g).enumerable})),r.push.apply(r,i)}return r}function It(e){for(var n=1;n<arguments.length;n++){var r=arguments[n]!=null?arguments[n]:{};n%2?qe(Object(r),!0).forEach(function(i){jt(e,i,r[i])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):qe(Object(r)).forEach(function(i){Object.defineProperty(e,i,Object.getOwnPropertyDescriptor(r,i))})}return e}function jt(e,n,r){return n in e?Object.defineProperty(e,n,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[n]=r,e}function K(){return K=Object.assign?Object.assign.bind():function(e){for(var n=1;n<arguments.length;n++){var r=arguments[n];for(var i in r)Object.prototype.hasOwnProperty.call(r,i)&&(e[i]=r[i])}return e},K.apply(this,arguments)}function W(e,n){return Pt(e)||Ct(e,n)||$t(e,n)||Bt()}function Bt(){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 $t(e,n){if(e){if(typeof e=="string")return Ke(e,n);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 Ke(e,n)}}function Ke(e,n){(n==null||n>e.length)&&(n=e.length);for(var r=0,i=new Array(n);r<n;r++)i[r]=e[r];return i}function Ct(e,n){var r=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(r!=null){var i=[],g=!0,x=!1,l,f;try{for(r=r.call(e);!(g=(l=r.next()).done)&&(i.push(l.value),!(n&&i.length===n));g=!0);}catch(L){x=!0,f=L}finally{try{!g&&r.return!=null&&r.return()}finally{if(x)throw f}}return i}}function Pt(e){if(Array.isArray(e))return e}var At=function(e){if(e.length>2||e.length===0)throw new Error("the value prop represents positions of thumbs, so its length can be only one or two");return e};function Ft(e){var n=e.overrides,r=n===void 0?{}:n,i=e.disabled,g=i===void 0?!1:i,x=e.marks,l=x===void 0?!1:x,f=e.onChange,L=f===void 0?function(){}:f,A=e.onFinalChange,z=A===void 0?function(){}:A,k=e.min,y=k===void 0?0:k,h=e.max,t=h===void 0?100:h,a=e.step,u=a===void 0?1:a,p=e.persistentThumb,d=p===void 0?!1:p,w=e.valueToLabel,E=w===void 0?function(P){return P}:w,T=e.value,M=I.useContext(dt),v=I.useState(!1),B=W(v,2),S=B[0],_=B[1],o=I.useState(!1),s=W(o,2),c=s[0],m=s[1],D=I.useState(!1),R=W(D,2),O=R[0],b=R[1],$=I.useState(-1),j=W($,2),C=j[0],N=j[1],H=I.useCallback(function(P){ht(P)&&b(!0);var Y=P.target.parentNode.firstChild===P.target?0:1;N(Y)},[]),F=I.useCallback(function(P){O!==!1&&b(!1),N(-1)},[]),U=At(T),V={$disabled:g,$step:u,$min:y,$max:t,$marks:l,$value:U,$isFocusVisible:O},te=G(r.Root,fe),oe=W(te,2),ne=oe[0],re=oe[1],Te=G(r.Track,pe),ie=W(Te,2),xe=ie[0],J=ie[1],ce=G(r.InnerTrack,ge),se=W(ce,2),ue=se[0],We=se[1],Ye=G(r.Thumb,ye),Re=W(Ye,2),Ze=Re[0],Ge=Re[1],Je=G(r.InnerThumb,we),De=W(Je,2),Qe=De[0],et=De[1],tt=G(r.ThumbValue,ke),Ee=W(tt,2),nt=Ee[0],rt=Ee[1],at=G(r.Tick,ve),Se=W(at,2),Ie=Se[0],je=Se[1],ot=G(r.TickBar,be),Be=W(ot,2),it=Be[0],st=Be[1],ct=G(r.Mark,me),$e=W(ct,2),ut=$e[0],lt=$e[1];return I.createElement(ne,K({"data-baseweb":"slider"},V,re,{onFocus:pt(re,H),onBlur:ft(re,F)}),I.createElement(Xe.Range,K({step:u,min:y,max:t,values:U,disabled:g,onChange:function(P){return L({value:P})},onFinalChange:function(P){return z({value:P})},rtl:M.direction==="rtl",renderTrack:function(P){var Y=P.props,q=P.children,Q=P.isDragged;return I.createElement(xe,K({onMouseDown:Y.onMouseDown,onTouchStart:Y.onTouchStart,$isDragged:Q},V,J),I.createElement(ue,K({$isDragged:Q,ref:Y.ref},V,We),q))},renderThumb:function(P){var Y=P.props,q=P.index,Q=P.isDragged,Ce=d||(!!q&&c||!q&&S||Q)&&!g;return I.createElement(Ze,K({},Y,{onMouseEnter:function(){q===0?_(!0):m(!0)},onMouseLeave:function(){q===0?_(!1):m(!1)},$thumbIndex:q,$isDragged:Q,style:It({},Y.style)},V,Ge,{$isFocusVisible:O&&C===q}),Ce&&I.createElement(nt,K({$thumbIndex:q,$isDragged:Q},V,rt),E(U[q])),Ce&&I.createElement(Qe,K({$thumbIndex:q,$isDragged:Q},V,et)))}},l?{renderMark:function(P){var Y=P.props,q=P.index;return I.createElement(ut,K({$markIndex:q},Y,V,lt))}}:{})),I.createElement(it,K({},V,st),I.createElement(Ie,K({},V,je),E(y)),I.createElement(Ie,K({},V,je),E(t))))}const Lt=Ae("div",{target:"ew7r33m1"})(({disabled:e,theme:n})=>({alignItems:"center",backgroundColor:e?n.colors.gray:n.colors.primary,borderTopLeftRadius:"100%",borderTopRightRadius:"100%",borderBottomLeftRadius:"100%",borderBottomRightRadius:"100%",borderTopStyle:"none",borderBottomStyle:"none",borderRightStyle:"none",borderLeftStyle:"none",boxShadow:"none",display:"flex",justifyContent:"center",height:n.sizes.sliderThumb,width:n.sizes.sliderThumb,":focus":{outline:"none"},":focus-visible":{boxShadow:`0 0 0 0.2rem ${gt(n.colors.primary,.5)}`}}),""),_t=Ae("div",{target:"ew7r33m0"})(({disabled:e,theme:n})=>({fontFamily:n.genericFonts.bodyFont,fontSize:n.fontSizes.sm,color:e?n.colors.gray:n.colors.primary,top:"-1.6em",position:"absolute",whiteSpace:"nowrap",backgroundColor:n.colors.transparent,lineHeight:n.lineHeights.base,fontWeight:n.fontWeights.normal,pointerEvents:"none"}),""),zt=200;function Vt({disabled:e,element:n,widgetMgr:r,fragmentId:i}){const[g,x]=Rt({getStateFromWidgetMgr:Nt,getDefaultStateFromProto:Ut,getCurrStateFromProto:Xt,updateWidgetMgrState:Ht,element:n,widgetMgr:r,fragmentId:i}),[l,f]=I.useState(g),L=I.useRef(null),[A]=I.useState([]),[z]=I.useState([]),k=vt(),y=l.map(d=>Kt(d,n)),h=n.label;I.useEffect(()=>{f(g)},[g]);const t=I.useCallback(bt(zt,d=>{x({value:d,fromUi:!0})}),[]),a=I.useCallback(({value:d})=>{f(d),t(d)},[t]),u=I.useCallback(I.forwardRef(function(d,w){const{$thumbIndex:E}=d,T=E||0;A[T]=w,z[T]||=I.createRef();const M=yt(d,["role","style","aria-valuemax","aria-valuemin","aria-valuenow","tabIndex","onKeyUp","onKeyDown","onMouseEnter","onMouseLeave","draggable"]),v=y[T];return ee.jsx(Lt,{...M,disabled:d.$disabled===!0,ref:A[T],"aria-valuetext":v,"aria-label":h,children:ee.jsx(_t,{"data-testid":"stSliderThumbValue",disabled:d.$disabled===!0,ref:z[T],children:v})})}),[]);I.useEffect(()=>{z.map((v,B)=>{v.current&&(v.current.innerText=y[B])}),A.map((v,B)=>{v.current&&v.current.setAttribute("aria-valuetext",y[B])});const d=L.current??null,w=A[0].current,E=A[1]?.current,T=z[0].current,M=z[1]?.current;Yt(d,w,E,T,M)});const p=I.useCallback(({$disabled:d})=>({height:k.spacing.twoXS,...d?{background:k.colors.darkenedBgMix25}:{}}),[k.colors.darkenedBgMix25,k.spacing.twoXS]);return ee.jsxs("div",{ref:L,className:"stSlider","data-testid":"stSlider",children:[ee.jsx(wt,{label:n.label,disabled:e,labelVisibility:kt(n.labelVisibility?.value),children:n.help&&ee.jsx(Tt,{children:ee.jsx(xt,{content:n.help,placement:Ot.TOP_RIGHT})})}),ee.jsx(Ft,{min:n.min,max:n.max,step:n.step,value:Wt(l,n),onChange:a,disabled:e,overrides:{Thumb:u,Track:{style:{backgroundColor:"none !important",paddingLeft:k.spacing.none,paddingRight:k.spacing.none,paddingTop:`calc((${k.sizes.minElementHeight} - ${k.spacing.twoXS}) / 2)`,paddingBottom:`calc((${k.sizes.minElementHeight} - ${k.spacing.twoXS}) / 2)`}},InnerTrack:{style:p},TickBar:()=>null}})]})}function Nt(e,n){return e.getDoubleArrayValue(n)}function Ut(e){return e.default}function Xt(e){return e.value}function Ht(e,n,r,i){n.setDoubleArrayValue(e,r.value,{fromUi:r.fromUi},i)}function qt(e){const{dataType:n}=e;return n===Oe.DataType.DATETIME||n===Oe.DataType.DATE||n===Oe.DataType.TIME}function Kt(e,n){const{format:r,options:i}=n;return qt(n)?Mt.utc(e/1e3).format(r):i.length>0?Fe.sprintf(r,i[e]):Fe.sprintf(r,e)}function Wt(e,n){const{min:r,max:i}=n;let g=e[0],x=e.length>1?e[1]:e[0];return g>x&&(g=x),g<r&&(g=r),g>i&&(g=i),x<r&&(x=r),x>i&&(x=i),e.length>1?[g,x]:[g]}function Yt(e,n,r,i,g){!e||!n||!i||(ae(e,n,i),r&&g&&(ae(e,r,g),Zt(e,n,r,i,g)))}function ae(e,n,r){const i=e.getBoundingClientRect(),g=n.getBoundingClientRect(),x=r.getBoundingClientRect(),l=g.left+g.width/2,f=l-x.width/2<i.left,L=l+x.width/2>i.right;r.style.left=f?"0":"",r.style.right=L?"0":""}function Zt(e,n,r,i,g){const x=e.getBoundingClientRect(),l=n.getBoundingClientRect(),f=r.getBoundingClientRect(),L=i.getBoundingClientRect(),A=g.getBoundingClientRect(),z=x.left+x.width/2,k=l.left+l.width/2,y=f.left+f.width/2,h=k-L.width/2>=x.left,t=y+A.width/2<=x.right,a=l.left-L.width>=x.left,u=f.right+A.width<=x.right,p=h?L.width/2:L.width,d=t?A.width/2:A.width,w=k+p;if(y-d-w>24){ae(e,n,i),ae(e,r,g);return}if(a&&u){i.style.left="",i.style.right=`${Math.round(l.width)}px`,g.style.left=`${Math.round(f.width)}px`,g.style.right="";return}k<z?(ae(e,n,i),g.style.left=`${Math.round(k+p+24-y)}px`,g.style.right=""):(ae(e,r,g),i.style.left="",i.style.right=`${-Math.round(y-d-24-k)}px`)}const Gt=mt(I.memo(Vt));export{Gt as default};
@@ -1 +1 @@
1
- import{c as i,r as c,j as r,cK as u,bW as m,bc as f}from"./index-B2QqSXxG.js";const h=i("div",{target:"e1se5lgy3"})(({theme:e,cache:s})=>({...s?{paddingBottom:e.spacing.lg,background:`linear-gradient(to bottom, ${e.colors.bgColor} 0%, ${e.colors.bgColor} 80%, transparent 100%)`}:null}),""),$=i("div",{target:"e1se5lgy2"})({name:"1x17g94",styles:"display:flex;align-items:center;width:100%"}),p=i("div",{target:"e1se5lgy1"})(({theme:e})=>({display:"flex",gap:e.spacing.sm,alignItems:"baseline"}),""),x=i("div",{target:"e1se5lgy0"})(({theme:e})=>({opacity:.6,fontSize:e.fontSizes.sm}),""),y=e=>{const s=Math.floor(e/3600),t=Math.floor(e%3600/60),n=e%60;if(s===0&&t===0)return`(${n.toFixed(1)} seconds)`;if(s===0){const d=`${t} minute${t===1?"":"s"}`,g=n===0?"":`, ${n.toFixed(1)} seconds`;return`(${d}${g})`}const l=`${s} hour${s===1?"":"s"}`,o=t===0?"":`, ${t} minute${t===1?"":"s"}`,a=n===0?"":`, ${n.toFixed(1)} seconds`;return`(${l}${o}${a})`};function b({element:e}){const{cache:s,showTime:t}=e,[n,l]=c.useState(0),o=c.useRef(null);return c.useEffect(()=>{if(!t)return;o.current=Date.now();const a=()=>{if(o.current!==null){const g=(Date.now()-o.current)/1e3;l(g)}};a();const d=setInterval(a,100);return()=>clearInterval(d)},[t]),r.jsx(h,{className:u({stSpinner:!0,stCacheSpinner:s}),"data-testid":"stSpinner",cache:s,children:r.jsxs($,{children:[r.jsx(m,{size:"base",margin:"0 md 0 0",padding:"0"}),r.jsxs(p,{children:[r.jsx(f,{source:e.text,allowHTML:!1}),t&&r.jsx(x,{children:y(n)})]})]})})}const j=c.memo(b);export{j as default};
1
+ import{c as i,r as c,j as r,cK as u,bW as m,bc as f}from"./index-clm6On2Y.js";const h=i("div",{target:"e1se5lgy3"})(({theme:e,cache:s})=>({...s?{paddingBottom:e.spacing.lg,background:`linear-gradient(to bottom, ${e.colors.bgColor} 0%, ${e.colors.bgColor} 80%, transparent 100%)`}:null}),""),$=i("div",{target:"e1se5lgy2"})({name:"1x17g94",styles:"display:flex;align-items:center;width:100%"}),p=i("div",{target:"e1se5lgy1"})(({theme:e})=>({display:"flex",gap:e.spacing.sm,alignItems:"baseline"}),""),x=i("div",{target:"e1se5lgy0"})(({theme:e})=>({opacity:.6,fontSize:e.fontSizes.sm}),""),y=e=>{const s=Math.floor(e/3600),t=Math.floor(e%3600/60),n=e%60;if(s===0&&t===0)return`(${n.toFixed(1)} seconds)`;if(s===0){const d=`${t} minute${t===1?"":"s"}`,g=n===0?"":`, ${n.toFixed(1)} seconds`;return`(${d}${g})`}const l=`${s} hour${s===1?"":"s"}`,o=t===0?"":`, ${t} minute${t===1?"":"s"}`,a=n===0?"":`, ${n.toFixed(1)} seconds`;return`(${l}${o}${a})`};function b({element:e}){const{cache:s,showTime:t}=e,[n,l]=c.useState(0),o=c.useRef(null);return c.useEffect(()=>{if(!t)return;o.current=Date.now();const a=()=>{if(o.current!==null){const g=(Date.now()-o.current)/1e3;l(g)}};a();const d=setInterval(a,100);return()=>clearInterval(d)},[t]),r.jsx(h,{className:u({stSpinner:!0,stCacheSpinner:s}),"data-testid":"stSpinner",cache:s,children:r.jsxs($,{children:[r.jsx(m,{size:"base",margin:"0 md 0 0",padding:"0"}),r.jsxs(p,{children:[r.jsx(f,{source:e.text,allowHTML:!1}),t&&r.jsx(x,{children:y(n)})]})]})})}const j=c.memo(b);export{j as default};