dash-core-components 4.4.0 → 4.5.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dash_core_components/async-datepicker.js +2 -1
- package/dash_core_components/async-datepicker.js.map +1 -1
- package/dash_core_components/async-dropdown.js +1 -1
- package/dash_core_components/async-dropdown.js.map +1 -1
- package/dash_core_components/async-graph.js +1 -1
- package/dash_core_components/async-graph.js.map +1 -1
- package/dash_core_components/async-highlight.js +1 -1
- package/dash_core_components/async-highlight.js.map +1 -1
- package/dash_core_components/async-markdown.js +1 -1
- package/dash_core_components/async-markdown.js.map +1 -1
- package/dash_core_components/async-mathjax.js +1 -1
- package/dash_core_components/async-slider.js +1 -1
- package/dash_core_components/async-slider.js.map +1 -1
- package/dash_core_components/async-upload.js +1 -1
- package/dash_core_components/async-upload.js.map +1 -1
- package/dash_core_components/dash_core_components-shared.js +1 -2
- package/dash_core_components/dash_core_components-shared.js.map +1 -1
- package/dash_core_components/dash_core_components.js +1 -1
- package/dash_core_components/dash_core_components.js.map +1 -1
- package/dash_core_components/proptypes.js +19 -0
- package/lib/components/Graph.react.js +1 -1
- package/lib/components/Input.tsx +3 -3
- package/lib/components/Link.tsx +74 -0
- package/lib/components/Markdown.tsx +35 -0
- package/lib/fragments/Graph.react.js +31 -25
- package/lib/fragments/Markdown.tsx +101 -0
- package/lib/fragments/Upload.react.js +39 -27
- package/lib/index.ts +2 -2
- package/lib/types.ts +127 -0
- package/lib/utils/LazyLoader/markdown.ts +2 -0
- package/lib/utils/LazyLoader/third-party/highlight.ts +42 -0
- package/lib/utils/LazyLoader/third-party/hljs.ts +18 -0
- package/lib/utils/LazyLoader/third-party/mathjax.ts +23 -0
- package/lib/utils/LazyLoader/third-party/tex-svg.ts +5 -0
- package/lib/utils/markdown/components/Code.tsx +37 -0
- package/lib/utils/markdown/components/DccLink.tsx +25 -0
- package/lib/utils/markdown/components/DccMarkdown.tsx +13 -0
- package/lib/utils/markdown/components/MathJax.tsx +26 -0
- package/lib/utils/markdown/components/index.ts +13 -0
- package/lib/utils/markdown/components/jsx-renderers.d.ts +14 -0
- package/lib/utils/markdown/components/types.ts +15 -0
- package/lib/utils/markdown/context.ts +18 -0
- package/lib/utils/markdown/plugins/index.ts +28 -0
- package/lib/utils/markdown/plugins/rehypeDashMath.ts +69 -0
- package/lib/utils/markdown/plugins/rehypeDccComponents.ts +33 -0
- package/lib/utils/markdown/plugins/rehypeStripTags.ts +23 -0
- package/lib/utils/markdown/text.ts +64 -0
- package/package.json +13 -10
- package/lib/components/Link.react.js +0 -150
- package/lib/components/Markdown.react.js +0 -124
- package/lib/fragments/Markdown.react.js +0 -195
- package/lib/fragments/Math.react.js +0 -72
- package/lib/third-party/highlight.js +0 -46
- package/lib/utils/LazyLoader/hljs.js +0 -11
- package/lib/utils/LazyLoader/markdown.js +0 -9
- package/lib/utils/LazyLoader/mathjax.js +0 -11
- package/lib/utils/MarkdownHighlighter.js +0 -23
- package/lib/utils/mathjax.js +0 -4
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
"use strict";(self.webpackChunkdash_core_components=self.webpackChunkdash_core_components||[]).push([[737],{9316:function(e,r,t){t.r(r),t.d(r,{default:function(){return Vr}});var n=t(1609),o=t.n(n);function a(e,r){(null==r||r>e.length)&&(r=e.length);for(var t=0,n=Array(r);t<r;t++)n[t]=e[t];return n}function i(e,r){var t,n,o=(n=2,function(e){if(Array.isArray(e))return e}(t=r)||function(e,r){var t=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=t){var n,o,a,i,l=[],u=!0,c=!1;try{if(a=(t=t.call(e)).next,0===r){if(Object(t)!==t)return;u=!1}else for(;!(u=(n=a.call(t)).done)&&(l.push(n.value),l.length!==r);u=!0);}catch(e){c=!0,o=e}finally{try{if(!u&&null!=t.return&&(i=t.return(),Object(i)!==i))return}finally{if(c)throw o}}return l}}(t,n)||function(e,r){if(e){if("string"==typeof e)return a(e,r);var t={}.toString.call(e).slice(8,-1);return"Object"===t&&e.constructor&&(t=e.constructor.name),"Map"===t||"Set"===t?Array.from(e):"Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t)?a(e,r):void 0}}(t,n)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()),i=o[0],l=o[1];return Math.min(l,Math.max(i,e))}var l=t(7549),u=t(855),c=t(9309),s=t(2847),f=t(4848),d=n.createContext(void 0),m=t(4881),p=t(1592),v=t(1050),h=["scope","children"];function y(e,r){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);r&&(n=n.filter(function(r){return Object.getOwnPropertyDescriptor(e,r).enumerable})),t.push.apply(t,n)}return t}function b(e){for(var r=1;r<arguments.length;r++){var t=null!=arguments[r]?arguments[r]:{};r%2?y(Object(t),!0).forEach(function(r){g(e,r,t[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):y(Object(t)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(t,r))})}return e}function g(e,r,t){return(r=function(e){var r=function(e){if("object"!=typeof e||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var t=r.call(e,"string");if("object"!=typeof t)return t;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==typeof r?r:r+""}(r))in e?Object.defineProperty(e,r,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[r]=t,e}function w(e,r){return function(e){if(Array.isArray(e))return e}(e)||function(e,r){var t=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=t){var n,o,a,i,l=[],u=!0,c=!1;try{if(a=(t=t.call(e)).next,0===r){if(Object(t)!==t)return;u=!1}else for(;!(u=(n=a.call(t)).done)&&(l.push(n.value),l.length!==r);u=!0);}catch(e){c=!0,o=e}finally{try{if(!u&&null!=t.return&&(i=t.return(),Object(i)!==i))return}finally{if(c)throw o}}return l}}(e,r)||S(e,r)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function S(e,r){if(e){if("string"==typeof e)return x(e,r);var t={}.toString.call(e).slice(8,-1);return"Object"===t&&e.constructor&&(t=e.constructor.name),"Map"===t||"Set"===t?Array.from(e):"Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t)?x(e,r):void 0}}function x(e,r){(null==r||r>e.length)&&(r=e.length);for(var t=0,n=Array(r);t<r;t++)n[t]=e[t];return n}Map;var j=["name","min","max","step","orientation","disabled","minStepsBetweenThumbs","defaultValue","value","onValueChange","onValueCommit","inverted","form"],O=["min","max","dir","inverted","onSlideStart","onSlideMove","onSlideEnd","onStepKeyDown"],M=["min","max","inverted","onSlideStart","onSlideMove","onSlideEnd","onStepKeyDown"],A=["__scopeSlider","onSlideStart","onSlideMove","onSlideEnd","onHomeKeyDown","onEndKeyDown","onStepKeyDown"],_=["__scopeSlider"],k=["__scopeSlider"],P=["__scopeSlider","index","name"],E=["__scopeSlider","value"];function D(e,r){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);r&&(n=n.filter(function(r){return Object.getOwnPropertyDescriptor(e,r).enumerable})),t.push.apply(t,n)}return t}function N(e){for(var r=1;r<arguments.length;r++){var t=null!=arguments[r]?arguments[r]:{};r%2?D(Object(t),!0).forEach(function(r){I(e,r,t[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):D(Object(t)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(t,r))})}return e}function I(e,r,t){return(r=function(e){var r=function(e){if("object"!=typeof e||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var t=r.call(e,"string");if("object"!=typeof t)return t;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==typeof r?r:r+""}(r))in e?Object.defineProperty(e,r,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[r]=t,e}function C(e,r){if(null==e)return{};var t,n,o=function(e,r){if(null==e)return{};var t={};for(var n in e)if({}.hasOwnProperty.call(e,n)){if(-1!==r.indexOf(n))continue;t[n]=e[n]}return t}(e,r);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(n=0;n<a.length;n++)t=a[n],-1===r.indexOf(t)&&{}.propertyIsEnumerable.call(e,t)&&(o[t]=e[t])}return o}function R(e,r){return function(e){if(Array.isArray(e))return e}(e)||function(e,r){var t=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=t){var n,o,a,i,l=[],u=!0,c=!1;try{if(a=(t=t.call(e)).next,0===r){if(Object(t)!==t)return;u=!1}else for(;!(u=(n=a.call(t)).done)&&(l.push(n.value),l.length!==r);u=!0);}catch(e){c=!0,o=e}finally{try{if(!u&&null!=t.return&&(i=t.return(),Object(i)!==i))return}finally{if(c)throw o}}return l}}(e,r)||function(e,r){if(e){if("string"==typeof e)return T(e,r);var t={}.toString.call(e).slice(8,-1);return"Object"===t&&e.constructor&&(t=e.constructor.name),"Map"===t||"Set"===t?Array.from(e):"Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t)?T(e,r):void 0}}(e,r)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function T(e,r){(null==r||r>e.length)&&(r=e.length);for(var t=0,n=Array(r);t<r;t++)n[t]=e[t];return n}var K=["PageUp","PageDown"],F=["ArrowUp","ArrowDown","ArrowLeft","ArrowRight"],z={"from-left":["Home","PageDown","ArrowDown","ArrowLeft"],"from-right":["Home","PageDown","ArrowDown","ArrowRight"],"from-bottom":["Home","PageDown","ArrowDown","ArrowLeft"],"from-top":["Home","PageDown","ArrowUp","ArrowLeft"]},U="Slider",$=function(e){var r=e+"CollectionProvider",t=w((0,c.A)(r),2),o=t[0],a=t[1],i=w(o(r,{collectionRef:{current:null},itemMap:new Map}),2),l=i[0],s=i[1],d=e=>{var r=e.scope,t=e.children,o=n.useRef(null),a=n.useRef(new Map).current;return(0,f.jsx)(l,{scope:r,itemMap:a,collectionRef:o,children:t})};d.displayName=r;var m=e+"CollectionSlot",p=(0,v.TL)(m),y=n.forwardRef((e,r)=>{var t=e.scope,n=e.children,o=s(m,t),a=(0,u.s)(r,o.collectionRef);return(0,f.jsx)(p,{ref:a,children:n})});y.displayName=m;var g=e+"CollectionItemSlot",S="data-radix-collection-item",x=(0,v.TL)(g),j=n.forwardRef((e,r)=>{var t=e.scope,o=e.children,a=function(e,r){if(null==e)return{};var t,n,o=function(e,r){if(null==e)return{};var t={};for(var n in e)if({}.hasOwnProperty.call(e,n)){if(-1!==r.indexOf(n))continue;t[n]=e[n]}return t}(e,r);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(n=0;n<a.length;n++)t=a[n],-1===r.indexOf(t)&&{}.propertyIsEnumerable.call(e,t)&&(o[t]=e[t])}return o}(e,h),i=n.useRef(null),l=(0,u.s)(r,i),c=s(g,t);return n.useEffect(()=>(c.itemMap.set(i,b({ref:i},a)),()=>{c.itemMap.delete(i)})),(0,f.jsx)(x,b(b({},{[S]:""}),{},{ref:l,children:o}))});return j.displayName=g,[{Provider:d,Slot:y,ItemSlot:j},function(r){var t=s(e+"CollectionConsumer",r);return n.useCallback(()=>{var e=t.collectionRef.current;if(!e)return[];var r=Array.from(e.querySelectorAll("[".concat(S,"]")));return Array.from(t.itemMap.values()).sort((e,t)=>r.indexOf(e.ref.current)-r.indexOf(t.ref.current))},[t.collectionRef,t.itemMap])},a]}(U),L=R($,3),B=L[0],H=L[1],V=L[2],X=R((0,c.A)(U,[V]),2),G=X[0],Y=(X[1],R(G(U),2)),W=Y[0],q=Y[1],J=n.forwardRef((e,r)=>{var t=e.name,o=e.min,a=void 0===o?0:o,u=e.max,c=void 0===u?100:u,d=e.step,m=void 0===d?1:d,p=e.orientation,v=void 0===p?"horizontal":p,h=e.disabled,y=void 0!==h&&h,b=e.minStepsBetweenThumbs,g=void 0===b?0:b,w=e.defaultValue,S=void 0===w?[a]:w,x=e.value,O=e.onValueChange,M=void 0===O?()=>{}:O,A=e.onValueCommit,_=void 0===A?()=>{}:A,k=e.inverted,P=void 0!==k&&k,E=e.form,D=C(e,j),I=n.useRef(new Set),T=n.useRef(0),z="horizontal"===v?re:te,U=R((0,s.i)({prop:x,defaultProp:S,onChange:e=>{var r;null===(r=[...I.current][T.current])||void 0===r||r.focus(),M(e)}}),2),$=U[0],L=void 0===$?[]:$,H=U[1],V=n.useRef(L);function X(e,r){var t=(arguments.length>2&&void 0!==arguments[2]?arguments[2]:{commit:!1}).commit,n=function(e){return(String(e).split(".")[1]||"").length}(m),o=function(e,r){var t=Math.pow(10,r);return Math.round(e*t)/t}(Math.round((e-a)/m)*m+a,n),l=i(o,[a,c]);H(function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],n=function(){var e=arguments.length>1?arguments[1]:void 0,r=[...arguments.length>0&&void 0!==arguments[0]?arguments[0]:[]];return r[arguments.length>2?arguments[2]:void 0]=e,r.sort((e,r)=>e-r)}(e,l,r);if(function(e,r){if(r>0){var t=function(e){return e.slice(0,-1).map((r,t)=>e[t+1]-r)}(e);return Math.min(...t)>=r}return!0}(n,g*m)){T.current=n.indexOf(l);var o=String(n)!==String(e);return o&&t&&_(n),o?n:e}return e})}return(0,f.jsx)(W,{scope:e.__scopeSlider,name:t,disabled:y,min:a,max:c,valueIndexToChangeRef:T,thumbs:I.current,values:L,orientation:v,form:E,children:(0,f.jsx)(B.Provider,{scope:e.__scopeSlider,children:(0,f.jsx)(B.Slot,{scope:e.__scopeSlider,children:(0,f.jsx)(z,N(N({"aria-disabled":y,"data-disabled":y?"":void 0},D),{},{ref:r,onPointerDown:(0,l.mK)(D.onPointerDown,()=>{y||(V.current=L)}),min:a,max:c,inverted:P,onSlideStart:y?void 0:function(e){var r=function(e,r){if(1===e.length)return 0;var t=e.map(e=>Math.abs(e-r)),n=Math.min(...t);return t.indexOf(n)}(L,e);X(e,r)},onSlideMove:y?void 0:function(e){X(e,T.current)},onSlideEnd:y?void 0:function(){var e=V.current[T.current];L[T.current]!==e&&_(L)},onHomeKeyDown:()=>!y&&X(a,0,{commit:!0}),onEndKeyDown:()=>!y&&X(c,L.length-1,{commit:!0}),onStepKeyDown:e=>{var r=e.event,t=e.direction;if(!y){var n=K.includes(r.key)||r.shiftKey&&F.includes(r.key)?10:1,o=T.current;X(L[o]+m*n*t,o,{commit:!0})}}}))})})})});J.displayName=U;var Z=R(G(U,{startEdge:"left",endEdge:"right",size:"width",direction:1}),2),Q=Z[0],ee=Z[1],re=n.forwardRef((e,r)=>{var t,o,a=e.min,i=e.max,l=e.dir,c=e.inverted,s=e.onSlideStart,m=e.onSlideMove,p=e.onSlideEnd,v=e.onStepKeyDown,h=C(e,O),y=R(n.useState(null),2),b=y[0],g=y[1],w=(0,u.s)(r,e=>g(e)),S=n.useRef(void 0),x=(t=l,o=n.useContext(d),t||o||"ltr"),j="ltr"===x,M=j&&!c||!j&&c;function A(e){var r=S.current||b.getBoundingClientRect(),t=me([0,r.width],M?[a,i]:[i,a]);return S.current=r,t(e-r.left)}return(0,f.jsx)(Q,{scope:e.__scopeSlider,startEdge:M?"left":"right",endEdge:M?"right":"left",direction:M?1:-1,size:"width",children:(0,f.jsx)(ne,N(N({dir:x,"data-orientation":"horizontal"},h),{},{ref:w,style:N(N({},h.style),{},{"--radix-slider-thumb-transform":"translateX(-50%)"}),onSlideStart:e=>{var r=A(e.clientX);null==s||s(r)},onSlideMove:e=>{var r=A(e.clientX);null==m||m(r)},onSlideEnd:()=>{S.current=void 0,null==p||p()},onStepKeyDown:e=>{var r=z[M?"from-left":"from-right"].includes(e.key);null==v||v({event:e,direction:r?-1:1})}}))})}),te=n.forwardRef((e,r)=>{var t=e.min,o=e.max,a=e.inverted,i=e.onSlideStart,l=e.onSlideMove,c=e.onSlideEnd,s=e.onStepKeyDown,d=C(e,M),m=n.useRef(null),p=(0,u.s)(r,m),v=n.useRef(void 0),h=!a;function y(e){var r=v.current||m.current.getBoundingClientRect(),n=me([0,r.height],h?[o,t]:[t,o]);return v.current=r,n(e-r.top)}return(0,f.jsx)(Q,{scope:e.__scopeSlider,startEdge:h?"bottom":"top",endEdge:h?"top":"bottom",size:"height",direction:h?1:-1,children:(0,f.jsx)(ne,N(N({"data-orientation":"vertical"},d),{},{ref:p,style:N(N({},d.style),{},{"--radix-slider-thumb-transform":"translateY(50%)"}),onSlideStart:e=>{var r=y(e.clientY);null==i||i(r)},onSlideMove:e=>{var r=y(e.clientY);null==l||l(r)},onSlideEnd:()=>{v.current=void 0,null==c||c()},onStepKeyDown:e=>{var r=z[h?"from-bottom":"from-top"].includes(e.key);null==s||s({event:e,direction:r?-1:1})}}))})}),ne=n.forwardRef((e,r)=>{var t=e.__scopeSlider,n=e.onSlideStart,o=e.onSlideMove,a=e.onSlideEnd,i=e.onHomeKeyDown,u=e.onEndKeyDown,c=e.onStepKeyDown,s=C(e,A),d=q(U,t);return(0,f.jsx)(p.sG.span,N(N({},s),{},{ref:r,onKeyDown:(0,l.mK)(e.onKeyDown,e=>{"Home"===e.key?(i(e),e.preventDefault()):"End"===e.key?(u(e),e.preventDefault()):K.concat(F).includes(e.key)&&(c(e),e.preventDefault())}),onPointerDown:(0,l.mK)(e.onPointerDown,e=>{var r=e.target;r.setPointerCapture(e.pointerId),e.preventDefault(),d.thumbs.has(r)?r.focus():n(e)}),onPointerMove:(0,l.mK)(e.onPointerMove,e=>{e.target.hasPointerCapture(e.pointerId)&&o(e)}),onPointerUp:(0,l.mK)(e.onPointerUp,e=>{var r=e.target;r.hasPointerCapture(e.pointerId)&&(r.releasePointerCapture(e.pointerId),a(e))})}))}),oe="SliderTrack",ae=n.forwardRef((e,r)=>{var t=e.__scopeSlider,n=C(e,_),o=q(oe,t);return(0,f.jsx)(p.sG.span,N(N({"data-disabled":o.disabled?"":void 0,"data-orientation":o.orientation},n),{},{ref:r}))});ae.displayName=oe;var ie="SliderRange",le=n.forwardRef((e,r)=>{var t=e.__scopeSlider,o=C(e,k),a=q(ie,t),i=ee(ie,t),l=n.useRef(null),c=(0,u.s)(r,l),s=a.values.length,d=a.values.map(e=>de(e,a.min,a.max)),m=s>1?Math.min(...d):0,v=100-Math.max(...d);return(0,f.jsx)(p.sG.span,N(N({"data-orientation":a.orientation,"data-disabled":a.disabled?"":void 0},o),{},{ref:c,style:N(N({},e.style),{},{[i.startEdge]:m+"%",[i.endEdge]:v+"%"})}))});le.displayName=ie;var ue="SliderThumb",ce=n.forwardRef((e,r)=>{var t=H(e.__scopeSlider),o=R(n.useState(null),2),a=o[0],i=o[1],l=(0,u.s)(r,e=>i(e)),c=n.useMemo(()=>a?t().findIndex(e=>e.ref.current===a):-1,[t,a]);return(0,f.jsx)(se,N(N({},e),{},{ref:l,index:c}))}),se=n.forwardRef((e,r)=>{var t,o,a,i,c,s=e.__scopeSlider,d=e.index,v=e.name,h=C(e,P),y=q(ue,s),b=ee(ue,s),g=R(n.useState(null),2),w=g[0],S=g[1],x=(0,u.s)(r,e=>S(e)),j=!w||y.form||!!w.closest("form"),O=(0,m.X)(w),M=y.values[d],A=void 0===M?0:de(M,y.min,y.max),_=function(e,r){return r>2?"Value ".concat(e+1," of ").concat(r):2===r?["Minimum","Maximum"][e]:void 0}(d,y.values.length),k=null==O?void 0:O[b.size],E=k?(t=k,o=A,a=b.direction,c=me([0,50],[0,i=t/2]),(i-c(o)*a)*a):0;return n.useEffect(()=>{if(w)return y.thumbs.add(w),()=>{y.thumbs.delete(w)}},[w,y.thumbs]),(0,f.jsxs)("span",{style:{transform:"var(--radix-slider-thumb-transform)",position:"absolute",[b.startEdge]:"calc(".concat(A,"% + ").concat(E,"px)")},children:[(0,f.jsx)(B.ItemSlot,{scope:e.__scopeSlider,children:(0,f.jsx)(p.sG.span,N(N({role:"slider","aria-label":e["aria-label"]||_,"aria-valuemin":y.min,"aria-valuenow":M,"aria-valuemax":y.max,"aria-orientation":y.orientation,"data-orientation":y.orientation,"data-disabled":y.disabled?"":void 0,tabIndex:y.disabled?void 0:0},h),{},{ref:x,style:void 0===M?{display:"none"}:e.style,onFocus:(0,l.mK)(e.onFocus,()=>{y.valueIndexToChangeRef.current=d})}))}),j&&(0,f.jsx)(fe,{name:null!=v?v:y.name?y.name+(y.values.length>1?"[]":""):void 0,form:y.form,value:M},d)]})});ce.displayName=ue;var fe=n.forwardRef((e,r)=>{e.__scopeSlider;var t=e.value,o=C(e,E),a=n.useRef(null),i=(0,u.s)(a,r),l=function(e){var r=n.useRef({value:e,previous:e});return n.useMemo(()=>(r.current.value!==e&&(r.current.previous=r.current.value,r.current.value=e),r.current.previous),[e])}(t);return n.useEffect(()=>{var e=a.current;if(e){var r=window.HTMLInputElement.prototype,n=Object.getOwnPropertyDescriptor(r,"value").set;if(l!==t&&n){var o=new Event("input",{bubbles:!0});n.call(e,t),e.dispatchEvent(o)}}},[l,t]),(0,f.jsx)(p.sG.input,N(N({style:{display:"none"}},o),{},{ref:i,defaultValue:t}))});function de(e,r,t){return i(100/(t-r)*(e-r),[0,100])}function me(e,r){return t=>{if(e[0]===e[1]||r[0]===r[1])return r[0];var n=(r[1]-r[0])/(e[1]-e[0]);return r[0]+n*(t-e[0])}}fe.displayName="RadioBubbleInput";var pe=J,ve=ae,he=le,ye=ce,be=t(1647),ge=t(2254),we=(0,ge.A)(function(e,r){var t={};for(var n in r)e(r[n],n,r)&&(t[n]=r[n]);return t}),Se=t(4376);function xe(e,r){if((t=(e=r?e.toExponential(r-1):e.toExponential()).indexOf("e"))<0)return null;var t,n=e.slice(0,t);return[n.length>1?n[0]+n.slice(2):n,+e.slice(t+1)]}var je,Oe=/^(?:(.)?([<>=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i;function Me(e){if(!(r=Oe.exec(e)))throw new Error("invalid format: "+e);var r;return new Ae({fill:r[1],align:r[2],sign:r[3],symbol:r[4],zero:r[5],width:r[6],comma:r[7],precision:r[8]&&r[8].slice(1),trim:r[9],type:r[10]})}function Ae(e){this.fill=void 0===e.fill?" ":e.fill+"",this.align=void 0===e.align?">":e.align+"",this.sign=void 0===e.sign?"-":e.sign+"",this.symbol=void 0===e.symbol?"":e.symbol+"",this.zero=!!e.zero,this.width=void 0===e.width?void 0:+e.width,this.comma=!!e.comma,this.precision=void 0===e.precision?void 0:+e.precision,this.trim=!!e.trim,this.type=void 0===e.type?"":e.type+""}function _e(e,r){var t=xe(e,r);if(!t)return e+"";var n=t[0],o=t[1];return o<0?"0."+new Array(-o).join("0")+n:n.length>o+1?n.slice(0,o+1)+"."+n.slice(o+1):n+new Array(o-n.length+2).join("0")}Me.prototype=Ae.prototype,Ae.prototype.toString=function(){return this.fill+this.align+this.sign+this.symbol+(this.zero?"0":"")+(void 0===this.width?"":Math.max(1,0|this.width))+(this.comma?",":"")+(void 0===this.precision?"":"."+Math.max(0,0|this.precision))+(this.trim?"~":"")+this.type};var ke={"%":function(e,r){return(100*e).toFixed(r)},b:function(e){return Math.round(e).toString(2)},c:function(e){return e+""},d:function(e){return Math.abs(e=Math.round(e))>=1e21?e.toLocaleString("en").replace(/,/g,""):e.toString(10)},e:function(e,r){return e.toExponential(r)},f:function(e,r){return e.toFixed(r)},g:function(e,r){return e.toPrecision(r)},o:function(e){return Math.round(e).toString(8)},p:function(e,r){return _e(100*e,r)},r:_e,s:function(e,r){var t=xe(e,r);if(!t)return e+"";var n=t[0],o=t[1],a=o-(je=3*Math.max(-8,Math.min(8,Math.floor(o/3))))+1,i=n.length;return a===i?n:a>i?n+new Array(a-i+1).join("0"):a>0?n.slice(0,a)+"."+n.slice(a):"0."+new Array(1-a).join("0")+xe(e,Math.max(0,r+a-1))[0]},X:function(e){return Math.round(e).toString(16).toUpperCase()},x:function(e){return Math.round(e).toString(16)}};function Pe(e){return e}var Ee,De,Ne=Array.prototype.map,Ie=["y","z","a","f","p","n","µ","m","","k","M","G","T","P","E","Z","Y"];function Ce(e){return function(e){if(Array.isArray(e))return Te(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||Re(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Re(e,r){if(e){if("string"==typeof e)return Te(e,r);var t={}.toString.call(e).slice(8,-1);return"Object"===t&&e.constructor&&(t=e.constructor.name),"Map"===t||"Set"===t?Array.from(e):"Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t)?Te(e,r):void 0}}function Te(e,r){(null==r||r>e.length)&&(r=e.length);for(var t=0,n=Array(r);t<r;t++)n[t]=e[t];return n}Ee=function(e){var r,t,n=void 0===e.grouping||void 0===e.thousands?Pe:(r=Ne.call(e.grouping,Number),t=e.thousands+"",function(e,n){for(var o=e.length,a=[],i=0,l=r[0],u=0;o>0&&l>0&&(u+l+1>n&&(l=Math.max(1,n-u)),a.push(e.substring(o-=l,o+l)),!((u+=l+1)>n));)l=r[i=(i+1)%r.length];return a.reverse().join(t)}),o=void 0===e.currency?"":e.currency[0]+"",a=void 0===e.currency?"":e.currency[1]+"",i=void 0===e.decimal?".":e.decimal+"",l=void 0===e.numerals?Pe:function(e){return function(r){return r.replace(/[0-9]/g,function(r){return e[+r]})}}(Ne.call(e.numerals,String)),u=void 0===e.percent?"%":e.percent+"",c=void 0===e.minus?"-":e.minus+"",s=void 0===e.nan?"NaN":e.nan+"";function f(e){var r=(e=Me(e)).fill,t=e.align,f=e.sign,d=e.symbol,m=e.zero,p=e.width,v=e.comma,h=e.precision,y=e.trim,b=e.type;"n"===b?(v=!0,b="g"):ke[b]||(void 0===h&&(h=12),y=!0,b="g"),(m||"0"===r&&"="===t)&&(m=!0,r="0",t="=");var g="$"===d?o:"#"===d&&/[boxX]/.test(b)?"0"+b.toLowerCase():"",w="$"===d?a:/[%p]/.test(b)?u:"",S=ke[b],x=/[defgprs%]/.test(b);function j(e){var o,a,u,d=g,j=w;if("c"===b)j=S(e)+j,e="";else{var O=(e=+e)<0||1/e<0;if(e=isNaN(e)?s:S(Math.abs(e),h),y&&(e=function(e){e:for(var r,t=e.length,n=1,o=-1;n<t;++n)switch(e[n]){case".":o=r=n;break;case"0":0===o&&(o=n),r=n;break;default:if(!+e[n])break e;o>0&&(o=0)}return o>0?e.slice(0,o)+e.slice(r+1):e}(e)),O&&0===+e&&"+"!==f&&(O=!1),d=(O?"("===f?f:c:"-"===f||"("===f?"":f)+d,j=("s"===b?Ie[8+je/3]:"")+j+(O&&"("===f?")":""),x)for(o=-1,a=e.length;++o<a;)if(48>(u=e.charCodeAt(o))||u>57){j=(46===u?i+e.slice(o+1):e.slice(o))+j,e=e.slice(0,o);break}}v&&!m&&(e=n(e,1/0));var M=d.length+e.length+j.length,A=M<p?new Array(p-M+1).join(r):"";switch(v&&m&&(e=n(A+e,A.length?p-j.length:1/0),A=""),t){case"<":e=d+e+j+A;break;case"=":e=d+A+e+j;break;case"^":e=A.slice(0,M=A.length>>1)+d+e+j+A.slice(M);break;default:e=A+d+e+j}return l(e)}return h=void 0===h?6:/[gprs]/.test(b)?Math.max(1,Math.min(21,h)):Math.max(0,Math.min(20,h)),j.toString=function(){return e+""},j}return{format:f,formatPrefix:function(e,r){var t,n=f(((e=Me(e)).type="f",e)),o=3*Math.max(-8,Math.min(8,Math.floor((t=r,((t=xe(Math.abs(t)))?t[1]:NaN)/3)))),a=Math.pow(10,-o),i=Ie[8+o/3];return function(e){return n(a*e)+i}}}}({decimal:".",thousands:",",grouping:[3],currency:["$",""],minus:"-"}),Ee.format,De=Ee.formatPrefix;var Ke=function(e){return String(e).split(".").length>1?String(e).split(".")[1].length:0},Fe=function(e,r){return Ke(r)<1?function(e,r){return r<10?e:parseInt((t=e/r,n=t.toString().match(/^-?\d+(?:\.\d{0,0})?/),(n?parseInt(n[0],10):0)*r).toFixed(Ke(r)),10);var t,n}(e,r):function(e,r){return r<10?parseFloat(e.toFixed(Ke(r))):parseFloat((parseFloat((e/r).toFixed(0))*r).toFixed(Ke(r)))}(e,r)},ze=function(e,r,t){var n=Math.log10(Math.abs(e));if(0===e||n>-3&&n<4)return String(e);var o=(Math.abs(t)+Math.abs(r))/2,a=De(",.0",o);return String(a(e))},Ue=function(e,r,t){if(t)return t;if((0,be.A)(e)||(0,be.A)(r))return 1;var n=r>e?r-e:e-r,o=(Math.abs(n)+Number.EPSILON)/100,a=Math.floor(Math.log10(o));return[Number(Math.pow(10,a)),2*Math.pow(10,a),5*Math.pow(10,a)].sort(function(e,r){return Math.abs(e-o)-Math.abs(r-o)})[0]},$e=function(e,r,t){var n={min_mark:null!=e?e:0,max_mark:null!=r?r:1};if((0,be.A)(t))return n;var o=Object.keys(t).map(Number);return(0,be.A)(e)&&(n.min_mark=Math.min.apply(Math,Ce(o))),(0,be.A)(r)&&(n.max_mark=Math.max.apply(Math,Ce(o))),n},Le=function(e,r,t,n){var o,a,i=[],l=function(e,r,t,n){var o,a=ze(e,e,r),i=ze(r,e,r),l=10*Math.max(a.length,i.length)+20,u=n||330,c=Math.floor(u/l)+1,s=(r-e)/((c=Math.max(3,Math.min(c,50)))-1)/t,f=Math.pow(10,Math.floor(Math.log10(s))),d=s/f;o=d<=1.5?1:d<=2.25?2:d<=3.5?2.5:d<=5?5:10;var m=t*Math.max(1,o*f),p=Math.round(m/t),v=p*t;return[e+Math.max(1,p)*t,v,t]}(e,r,null!=t?t:1,n),u=(a=3,function(e){if(Array.isArray(e))return e}(o=l)||function(e,r){var t=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=t){var n,o,a,i,l=[],u=!0,c=!1;try{if(a=(t=t.call(e)).next,0===r){if(Object(t)!==t)return;u=!1}else for(;!(u=(n=a.call(t)).done)&&(l.push(n.value),l.length!==r);u=!0);}catch(e){c=!0,o=e}finally{try{if(!u&&null!=t.return&&(i=t.return(),Object(i)!==i))return}finally{if(c)throw o}}return l}}(o,a)||Re(o,a)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()),c=u[0],s=u[1],f=u[2],d=c;if((r-d)/s>0){for(;d<r;){i.push(Fe(d,f));var m=d;if((d+=s)<=m)break}i.length>=2&&r-i[i.length-2]<=1.5*s&&i.pop()}var p={};return i.forEach(function(t){p[t]=ze(t,e,r)}),p[e]=ze(e,e,r),p[r]=ze(r,e,r),p},Be=function(e){var r=e.min,t=e.max,n=e.marks,o=e.step,a=e.sliderWidth,i=$e(r,t,n),l=i.min_mark,u=i.max_mark,c=n&&!1===(0,Se.A)(n)?function(e,r,t){return we(function(t,n){return n>=e&&n<=r},t)}(l,u,n):n;return c&&!1===(0,Se.A)(c)?c:Le(l,u,o,a)},He=function(e,r){var t=Object.keys(r).map(Number);return 0===t.length?e:t.reduce(function(r,t){return Math.abs(t-e)<Math.abs(r-e)?t:r})};function Ve(e){return Ve="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Ve(e)}function Xe(e,r){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);r&&(n=n.filter(function(r){return Object.getOwnPropertyDescriptor(e,r).enumerable})),t.push.apply(t,n)}return t}function Ge(e){for(var r=1;r<arguments.length;r++){var t=null!=arguments[r]?arguments[r]:{};r%2?Xe(Object(t),!0).forEach(function(r){Ye(e,r,t[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):Xe(Object(t)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(t,r))})}return e}function Ye(e,r,t){return(r=function(e){var r=function(e){if("object"!=Ve(e)||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var t=r.call(e,"string");if("object"!=Ve(t))return t;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==Ve(r)?r:r+""}(r))in e?Object.defineProperty(e,r,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[r]=t,e}function We(e,r){(null==r||r>e.length)&&(r=e.length);for(var t=0,n=Array(r);t<r;t++)n[t]=e[t];return n}var qe=function(e,r){var t,n,o,a=arguments.length>2&&void 0!==arguments[2]?arguments[2]:16,i=function(e,r,t){var n=100/(t-r)*(e-r);return Math.max(0,Math.min(100,n))}(e,r.min_mark,r.max_mark),l=1*((o=a/2)-1*(t=[0,50],n=[0,o],function(e){return t[0]===t[1]||n[0]===n[1]?n[0]:n[0]+(n[1]-n[0])/(t[1]-t[0])*(e-t[0])})(i));return{percentage:i,offset:l}},Je=function(e,r,t){var n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:[],a=arguments.length>4?arguments[4]:void 0,i=arguments.length>5&&void 0!==arguments[5]&&arguments[5];return Object.entries(e).map(function(e){var l,u,c=(u=2,function(e){if(Array.isArray(e))return e}(l=e)||function(e,r){var t=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=t){var n,o,a,i,l=[],u=!0,c=!1;try{if(a=(t=t.call(e)).next,0===r){if(Object(t)!==t)return;u=!1}else for(;!(u=(n=a.call(t)).done)&&(l.push(n.value),l.length!==r);u=!0);}catch(e){c=!0,o=e}finally{try{if(!u&&null!=t.return&&(i=t.return(),Object(i)!==i))return}finally{if(c)throw o}}return l}}(l,u)||function(e,r){if(e){if("string"==typeof e)return We(e,r);var t={}.toString.call(e).slice(8,-1);return"Object"===t&&e.constructor&&(t=e.constructor.name),"Map"===t||"Set"===t?Array.from(e):"Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t)?We(e,r):void 0}}(l,u)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()),s=c[0],f=c[1],d=parseFloat(s),m=i?t.max_mark-d+t.min_mark:d,p=qe(m,t),v=r?{bottom:"calc(".concat(p.percentage,"% + ").concat(p.offset,"px - 13px)"),left:"calc(100% + 8px)",transform:"translateY(-50%)"}:{left:"calc(".concat(p.percentage,"% + ").concat(p.offset,"px)"),bottom:0,transform:"translateX(-50%)"},h=!1;if(1===n.length)h=d>n[0];else if(n.length>1){var y=[n[0],n[n.length-1]];h=d<y[0]||d>y[1]}var b=h?"dash-slider-mark-outside-selection":"",g="dash-slider-mark ".concat(a?"with-dots":""," ").concat(b).trim();return o().createElement("div",{key:s,className:g,style:Ge(Ge({},v),"object"===Ve(f)&&f.style?f.style:{})},"string"==typeof f?f:(null==f?void 0:f.label)||d)})},Ze=function(e,r){var t=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[],n=arguments.length>3?arguments[3]:void 0,a=arguments.length>4&&void 0!==arguments[4]&&arguments[4];if(e<=1)return null;var i=Math.floor((r.max_mark-r.min_mark)/e)+1;return i>100?null:Array.from({length:i},function(i,l){var u=r.min_mark+l*e,c=a?r.max_mark-u+r.min_mark:u,s=qe(c,r),f=n?{bottom:"calc(".concat(s.percentage,"% + ").concat(s.offset,"px)"),left:"2px",transform:"translate(50%, 50%)"}:{left:"calc(".concat(s.percentage,"% + ").concat(s.offset,"px)"),top:"0",transform:"translate(-50%, 50%)"},d=!1;if(1===t.length)d=u>t[0];else if(t.length>1){var m=[t[0],t[t.length-1]];d=u<m[0]||u>m[1]}var p=d?"dash-slider-dot dash-slider-dot-outside-selection":"dash-slider-dot";return o().createElement("div",{key:l,className:p,style:Ge({},f)})})},Qe=t(2057),er=t(2173),rr=(0,er.A)(function(e,r,t){return t.replace(e,r)});function tr(e,r){switch(e){case 0:return function(){return r.apply(this,arguments)};case 1:return function(e){return r.apply(this,arguments)};case 2:return function(e,t){return r.apply(this,arguments)};case 3:return function(e,t,n){return r.apply(this,arguments)};case 4:return function(e,t,n,o){return r.apply(this,arguments)};case 5:return function(e,t,n,o,a){return r.apply(this,arguments)};case 6:return function(e,t,n,o,a,i){return r.apply(this,arguments)};case 7:return function(e,t,n,o,a,i,l){return r.apply(this,arguments)};case 8:return function(e,t,n,o,a,i,l,u){return r.apply(this,arguments)};case 9:return function(e,t,n,o,a,i,l,u,c){return r.apply(this,arguments)};case 10:return function(e,t,n,o,a,i,l,u,c,s){return r.apply(this,arguments)};default:throw new Error("First argument to _arity must be a non-negative integer no greater than ten")}}function nr(e,r){return function(){return r.call(this,e.apply(this,arguments))}}var or=t(3579),ar=t(5564),ir=t(8228),lr=(0,or.A)(function(e){return!!(0,ar.A)(e)||!!e&&"object"==typeof e&&!(0,ir.A)(e)&&(0===e.length||e.length>0&&e.hasOwnProperty(0)&&e.hasOwnProperty(e.length-1))}),ur="undefined"!=typeof Symbol?Symbol.iterator:"@@iterator";function cr(e,r,t){return function(n,o,a){if(lr(a))return e(n,o,a);if(null==a)return o;if("function"==typeof a["fantasy-land/reduce"])return r(n,o,a,"fantasy-land/reduce");if(null!=a[ur])return t(n,o,a[ur]());if("function"==typeof a.next)return t(n,o,a);if("function"==typeof a.reduce)return r(n,o,a,"reduce");throw new TypeError("reduce: list must be array or iterable")}}function sr(e,r,t){for(var n=0,o=t.length;n<o;){if((r=e["@@transducer/step"](r,t[n]))&&r["@@transducer/reduced"]){r=r["@@transducer/value"];break}n+=1}return e["@@transducer/result"](r)}var fr=(0,ge.A)(function(e,r){return tr(e.length,function(){return e.apply(r,arguments)})}),dr=fr;function mr(e,r,t){for(var n=t.next();!n.done;){if((r=e["@@transducer/step"](r,n.value))&&r["@@transducer/reduced"]){r=r["@@transducer/value"];break}n=t.next()}return e["@@transducer/result"](r)}function pr(e,r,t,n){return e["@@transducer/result"](t[n](dr(e["@@transducer/step"],e),r))}var vr=cr(sr,pr,mr),hr=function(){function e(e){this.f=e}return e.prototype["@@transducer/init"]=function(){throw new Error("init not implemented on XWrap")},e.prototype["@@transducer/result"]=function(e){return e},e.prototype["@@transducer/step"]=function(e,r){return this.f(e,r)},e}(),yr=(0,er.A)(function(e,r,t){return vr("function"==typeof e?new hr(e):e,r,t)});function br(e,r){return function(){var t=arguments.length;if(0===t)return r();var n=arguments[t-1];return(0,ar.A)(n)||"function"!=typeof n[e]?r.apply(this,arguments):n[e].apply(n,Array.prototype.slice.call(arguments,0,t-1))}}var gr=(0,er.A)(br("slice",function(e,r,t){return Array.prototype.slice.call(t,e,r)})),wr=(0,or.A)(br("tail",gr(1,1/0))),Sr=t(3893),xr=t(2808);function jr(e,r,t){return function(){for(var n=[],o=0,a=e,i=0,l=!1;i<r.length||o<arguments.length;){var u;i<r.length&&(!(0,xr.A)(r[i])||o>=arguments.length)?u=r[i]:(u=arguments[o],o+=1),n[i]=u,(0,xr.A)(u)?l=!0:a-=1,i+=1}return!l&&a<=0?t.apply(this,n):tr(Math.max(0,a),jr(e,n,t))}}var Or=(0,ge.A)(function(e,r){return 1===e?(0,or.A)(r):tr(e,jr(e,[],r))}),Mr=t(7596),Ar=(0,ge.A)(function(e,r){return Or(e+1,function(){var t=arguments[e];if(null!=t&&(0,Sr.A)(t[r]))return t[r].apply(t,Array.prototype.slice.call(arguments,0,e));throw new TypeError((0,Mr.A)(t)+' does not have a method named "'+r+'"')})}),_r=Ar(1,"split"),kr=t(7866),Pr=Number.isInteger||function(e){return(0|e)===e};function Er(e,r){return r[e<0?r.length+e:e]}function Dr(e,r){for(var t=r,n=0;n<e.length;n+=1){if(null==t)return;var o=e[n];t=Pr(o)?Er(o,t):t[o]}return t}var Nr=(0,ge.A)(Dr),Ir=function(e){var r,t=e.tooltip,n=e.value,a=e.index,i=e.id,l=["dash-slider-tooltip",t.always_visible?"always-visible":""],u=(null!==(r=t.placement)&&void 0!==r?r:"top").toLowerCase(),c={transform:""};return u.includes("top")?c.bottom="calc(100% + var(--Dash-Spacing))":u.includes("bottom")?c.top="calc(100% + var(--Dash-Spacing))":(c.top="50%",c.transform+="translateY(-50%)"),u.includes("left")?c.right="calc(100% + var(--Dash-Spacing))":u.includes("right")?c.left="calc(100% + var(--Dash-Spacing))":(c.left="50%",c.transform+="translateX(-50%)"),o().createElement("div",{className:l.join(" "),style:c},function(e,r){var n=e;return null!=t&&t.transform&&(n=function(e,r){var t=function(){if(0===arguments.length)throw new Error("pipe requires at least one argument");return tr(arguments[0].length,yr(nr,arguments[0],wr(arguments)))}(_r("."),function(e){return(0,kr.A)(["dccFunctions"],e)},function(e){return Nr(e,window)})(e);if(!t)throw new Error("Invalid func for slider tooltip transform: ".concat(e));return t(r)}(t.transform,e)),o().createElement("div",{id:"".concat(i,"-tooltip-").concat(r+1,"-content"),style:null==t?void 0:t.style},function(e,r){return rr("{value}","".concat(r),e)}((null==t?void 0:t.template)||"{value}",n))}(n,a))},Cr=t(6763);function Rr(){return Rr=Object.assign?Object.assign.bind():function(e){for(var r=1;r<arguments.length;r++){var t=arguments[r];for(var n in t)({}).hasOwnProperty.call(t,n)&&(e[n]=t[n])}return e},Rr.apply(null,arguments)}function Tr(e,r){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);r&&(n=n.filter(function(r){return Object.getOwnPropertyDescriptor(e,r).enumerable})),t.push.apply(t,n)}return t}function Kr(e){for(var r=1;r<arguments.length;r++){var t=null!=arguments[r]?arguments[r]:{};r%2?Tr(Object(t),!0).forEach(function(r){Fr(e,r,t[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):Tr(Object(t)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(t,r))})}return e}function Fr(e,r,t){return(r=function(e){var r=function(e){if("object"!=Ur(e)||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var t=r.call(e,"string");if("object"!=Ur(t))return t;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==Ur(r)?r:r+""}(r))in e?Object.defineProperty(e,r,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[r]=t,e}function zr(e){return function(e){if(Array.isArray(e))return Br(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||Lr(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Ur(e){return Ur="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Ur(e)}function $r(e,r){return function(e){if(Array.isArray(e))return e}(e)||function(e,r){var t=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=t){var n,o,a,i,l=[],u=!0,c=!1;try{if(a=(t=t.call(e)).next,0===r){if(Object(t)!==t)return;u=!1}else for(;!(u=(n=a.call(t)).done)&&(l.push(n.value),l.length!==r);u=!0);}catch(e){c=!0,o=e}finally{try{if(!u&&null!=t.return&&(i=t.return(),Object(i)!==i))return}finally{if(c)throw o}}return l}}(e,r)||Lr(e,r)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Lr(e,r){if(e){if("string"==typeof e)return Br(e,r);var t={}.toString.call(e).slice(8,-1);return"Object"===t&&e.constructor&&(t=e.constructor.name),"Map"===t||"Set"===t?Array.from(e):"Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t)?Br(e,r):void 0}}function Br(e,r){(null==r||r>e.length)&&(r=e.length);for(var t=0,n=Array(r);t<r;t++)n[t]=e[t];return n}var Hr=500;function Vr(e){var r=e.className,t=e.id,a=e.setProps,i=e.tooltip,l=e.updatemode,u=e.min,c=e.max,s=e.marks,f=e.step,d=e.vertical,m=e.verticalHeight,p=e.value,v=e.disabled,h=e.dots,y=e.included,b=(e.allowCross,e.pushable),g=(e.count,e.reverse),w=e.allow_direct_input,S=void 0===w||w,x=$r((0,n.useState)(p||[]),2),j=x[0],O=x[1],M=$r((0,n.useState)(null),2),A=M[0],_=M[1],k=(0,n.useRef)(null),P=(0,n.useRef)(null);(0,n.useEffect)(function(){if(p&&p.length>0)a({drag_value:p}),O(p);else{var e=[null!=u?u:p?p[0]:0];O(e)}},[]),(0,n.useEffect)(function(){if(k.current){var e=function(){if(k.current){var e=k.current.getBoundingClientRect(),r=d?e.height:e.width;r>0&&_(r)}};e();var r=new ResizeObserver(function(){e()});return r.observe(k.current),function(){r.disconnect()}}},[d]),(0,n.useEffect)(function(){p&&JSON.stringify(p)!==JSON.stringify(j)&&(a({drag_value:p}),O(p))},[p]);var E=s;if(s&&"object"===Ur(s)&&null!==s){var D=Object.keys(s).length;D>Hr&&(Cr.error("Slider: Too many marks (".concat(D,") provided. ")+"For performance reasons, marks are limited to 500. Using auto-generated marks instead."),E=void 0)}var N=(0,n.useMemo)(function(){return $e(u,c,E)},[u,c,E]),I=(0,n.useMemo)(function(){return null===f&&(0,be.A)(E)?void 0:Ue(u,c,f)},[u,c,E,f]),C=(0,n.useMemo)(function(){return null===E?null:Be({min:u,max:c,marks:E,step:f,sliderWidth:A})},[u,c,E,f,A]),R=(0,n.useMemo)(function(){var e,r,t=Math.max(String(Math.floor(N.max_mark)).length,String(Math.floor(N.min_mark)).length),n=Math.min((null!==(e=null===(r=String(I).split(".")[1])||void 0===r?void 0:r.length)&&void 0!==e?e:-1)+1,3);return"calc(".concat(t+n,"ch + calc(var(--Dash-Spacing) * 2))")},[N.min_mark,N.max_mark,I]),T=function(e){if(e<N.min_mark||e>N.max_mark)return!1;if(void 0!==I){var r=N.min_mark,t=e-r,n=Math.abs(t%I),o=1e-4;if(n>o&&n<I-o)return!1}return null!==f||!E||"object"!==Ur(E)||Object.keys(E).map(Number).some(function(r){return Math.abs(e-r)<1e-4})},K=function(e){var r=Math.max(N.min_mark,Math.min(N.max_mark,e));if(null===f&&E&&"object"===Ur(E))return He(r,E);if(void 0!==I){var t=N.min_mark;r=t+Math.round((r-t)/I)*I;var n=I.toString(),o=n.includes(".")?n.split(".")[1].length:0;r=Number(r.toFixed(o)),r=Math.max(N.min_mark,Math.min(N.max_mark,r))}return r},F=function(e){var r=e;if(null===f&&E&&"object"===Ur(E)){var t=E;r=e.map(function(e){return He(e,t)})}O(r),a("drag"===l?{value:r,drag_value:r}:{drag_value:r})},z=function(e){"mouseup"===l&&a({value:e})},U=["dash-slider-container",r].filter(Boolean),$=!1!==S&&null!==f&&j.length<=2&&!d;return o().createElement(Qe.A,null,function(e){return o().createElement("div",Rr({id:t,className:U.join(" ")},e),$&&2===j.length&&o().createElement("input",{type:"number",className:"dash-input-container dash-range-slider-input dash-range-slider-min-input",style:{width:R},value:isNaN(j[0])?"":j[0],onChange:function(e){var r=e.target.value,t=parseFloat(r),n=[t,j[1]];O(n),T(t)&&a("drag"===l?{value:n,drag_value:n}:{drag_value:n})},onBlur:function(e){var r,t,n=e.target.value;""===n?t=isNaN(j[0])?N.min_mark:j[0]:(t=parseFloat(n),t=isNaN(t)?N.min_mark:t),t=Math.min(null!==(r=j[1])&&void 0!==r?r:N.max_mark,t);var o=[K(t),j[1]];O(o),"mouseup"===l&&a({value:o})},pattern:"^\\\\d*\\\\.?\\\\d*$",min:N.min_mark,max:isNaN(j[1])?c:j[1],step:f||void 0,disabled:v}),$&&o().createElement("input",{ref:P,type:"number",className:"dash-input-container dash-range-slider-input dash-range-slider-max-input",style:{width:R},value:isNaN(j[j.length-1])?"":j[j.length-1],onChange:function(e){var r=e.target.value,t=parseFloat(r),n=zr(j);n[n.length-1]=t,O(n),T(t)&&a("drag"===l?{value:n,drag_value:n}:{drag_value:n})},onBlur:function(e){var r,t,n=e.target.value;""===n?t=isNaN(j[j.length-1])?N.max_mark:j[j.length-1]:(t=parseFloat(n),t=isNaN(t)?N.max_mark:t),t=Math.max(null!==(r=j[0])&&void 0!==r?r:N.min_mark,t);var o=K(t),i=zr(j);i[i.length-1]=o,O(i),"mouseup"===l&&a({value:i})},pattern:"^\\\\d*\\\\.?\\\\d*$",min:1===j.length?N.min_mark:j[0],max:isNaN(N.max_mark)?c:N.max_mark,step:f||void 0,disabled:v}),o().createElement("div",{className:"dash-slider-wrapper",onClickCapture:function(e){return e.preventDefault()}},o().createElement(pe,{ref:k,className:"dash-slider-root ".concat(C?"has-marks":"").trim(),style:Kr({},d&&{height:"".concat(m,"px")}),value:j,onValueChange:F,onValueCommit:z,min:N.min_mark,max:N.max_mark,step:I,disabled:v,orientation:d?"vertical":"horizontal",inverted:g,"data-included":!1!==y,minStepsBetweenThumbs:"number"==typeof b?b:void 0},o().createElement(ve,{className:"dash-slider-track"},!1!==y&&o().createElement(he,{className:"dash-slider-range"})),C&&Je(C,!!d,N,j,!!h,!!g),h&&I&&Ze(I,N,j,!!d,!!g),j.map(function(e,r){var n="dash-slider-thumb dash-slider-thumb-".concat(r+1);return o().createElement(ye,{key:"thumb"+r,className:n},i&&o().createElement(Ir,{id:t,index:r,value:e,tooltip:i}))}))))})}}}]);
|
|
1
|
+
"use strict";(self.webpackChunkdash_core_components=self.webpackChunkdash_core_components||[]).push([[737],{9316:function(e,t,r){r.r(t),r.d(t,{default:function(){return _r}});var n=r(1609),i=r.n(n);function o(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);r<t;r++)n[r]=e[r];return n}function a(e,t){var r,n,i=(n=2,function(e){if(Array.isArray(e))return e}(r=t)||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var n,i,o,a,l=[],u=!0,c=!1;try{if(o=(r=r.call(e)).next,0===t){if(Object(r)!==r)return;u=!1}else for(;!(u=(n=o.call(r)).done)&&(l.push(n.value),l.length!==t);u=!0);}catch(e){c=!0,i=e}finally{try{if(!u&&null!=r.return&&(a=r.return(),Object(a)!==a))return}finally{if(c)throw i}}return l}}(r,n)||function(e,t){if(e){if("string"==typeof e)return o(e,t);var r={}.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?o(e,t):void 0}}(r,n)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()),a=i[0],l=i[1];return Math.min(l,Math.max(a,e))}(0,Object.defineProperty)(a,"name",{value:"clamp",configurable:!0});var l=r(7549),u=r(855),c=r(9309),s=r(7899),f=r(9969),d=Object.defineProperty,m=n.createContext(void 0);function h(e){var t=n.useContext(m);return e||t||"ltr"}d(h,"name",{value:"useDirection",configurable:!0});var v=Object.defineProperty;function p(e){var t=n.useRef({value:e,previous:e});return n.useMemo(()=>(t.current.value!==e&&(t.current.previous=t.current.value,t.current.value=e),t.current.previous),[e])}(e=>{v(e,"name",{value:"usePrevious",configurable:!0})})(p);var y,b,g=r(4881),S=r(1592),w=r(1050),x=["scope","children"],O=["state"],j=["scope","children"];function M(e,t){var r="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!r){if(Array.isArray(e)||(r=R(e))||t&&e&&"number"==typeof e.length){r&&(e=r);var n=0,i=function(){};return{s:i,n:function(){return n>=e.length?{done:!0}:{done:!1,value:e[n++]}},e:function(e){throw e},f:i}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var o,a=!0,l=!1;return{s:function(){r=r.call(e)},n:function(){var e=r.next();return a=e.done,e},e:function(e){l=!0,o=e},f:function(){try{a||null==r.return||r.return()}finally{if(l)throw o}}}}function A(e,t){return e.get(P(e,t))}function _(e,t,r){return e.set(P(e,t),r),r}function P(e,t,r){if("function"==typeof e?e===t:e.has(t))return arguments.length<3?t:r;throw new TypeError("Private element is not present on this object")}function E(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}function k(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?E(Object(r),!0).forEach(function(t){C(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):E(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}function C(e,t,r){return(t=function(e){var t=function(e){if("object"!=typeof e||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var r=t.call(e,"string");if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function I(e,t){if(null==e)return{};var r,n,i=function(e,t){if(null==e)return{};var r={};for(var n in e)if({}.hasOwnProperty.call(e,n)){if(-1!==t.indexOf(n))continue;r[n]=e[n]}return r}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(n=0;n<o.length;n++)r=o[n],-1===t.indexOf(r)&&{}.propertyIsEnumerable.call(e,r)&&(i[r]=e[r])}return i}function D(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var n,i,o,a,l=[],u=!0,c=!1;try{if(o=(r=r.call(e)).next,0===t){if(Object(r)!==r)return;u=!1}else for(;!(u=(n=o.call(r)).done)&&(l.push(n.value),l.length!==t);u=!0);}catch(e){c=!0,i=e}finally{try{if(!u&&null!=r.return&&(a=r.return(),Object(a)!==a))return}finally{if(c)throw i}}return l}}(e,t)||R(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function R(e,t){if(e){if("string"==typeof e)return N(e,t);var r={}.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?N(e,t):void 0}}function N(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);r<t;r++)n[r]=e[r];return n}var T=Object.defineProperty,z=(e,t)=>T(e,"name",{value:t,configurable:!0});function F(e){var t=e+"CollectionProvider",r=D((0,c.A)(t),2),i=r[0],o=r[1],a=D(i(t,{collectionRef:{current:null},itemMap:new Map}),2),l=a[0],s=a[1],d=z(e=>{var t=e.scope,r=e.children,i=n.useRef(null),o=n.useRef(new Map).current;return(0,f.jsx)(l,{scope:t,itemMap:o,collectionRef:i,children:r})},"CollectionProvider");d.displayName=t;var m=e+"CollectionSlot",h=(0,w.TL)(m),v=n.forwardRef((e,t)=>{var r=e.scope,n=e.children,i=s(m,r),o=(0,u.s)(t,i.collectionRef);return(0,f.jsx)(h,{ref:o,children:n})});v.displayName=m;var p=e+"CollectionItemSlot",y="data-radix-collection-item",b=(0,w.TL)(p),g=n.forwardRef((e,t)=>{var r=e.scope,i=e.children,o=I(e,x),a=n.useRef(null),l=(0,u.s)(t,a),c=s(p,r);return n.useEffect(()=>(c.itemMap.set(a,k({ref:a},o)),()=>{c.itemMap.delete(a)})),(0,f.jsx)(b,k(k({},{[y]:""}),{},{ref:l,children:i}))});function S(t){var r=s(e+"CollectionConsumer",t);return n.useCallback(()=>{var e=r.collectionRef.current;if(!e)return[];var t=Array.from(e.querySelectorAll("[".concat(y,"]")));return Array.from(r.itemMap.values()).sort((e,r)=>t.indexOf(e.ref.current)-t.indexOf(r.ref.current))},[r.collectionRef,r.itemMap])}return g.displayName=p,z(S,"useCollection"),[{Provider:d,Slot:v,ItemSlot:g},S,o]}z(F,"createCollection");var V=new WeakMap,K=(b=new WeakMap,y=class e extends Map{constructor(e){var t,r,n;super(e),n=void 0,function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")}(t=this,r=b),r.set(t,n),_(b,this,[...super.keys()]),V.set(this,!0)}set(e,t){return V.get(this)&&(this.has(e)?A(b,this)[A(b,this).indexOf(e)]=e:A(b,this).push(e)),super.set(e,t),this}insert(e,t,r){var n=this.has(t),i=A(b,this).length,o=U(e),a=o>=0?o:i+o,l=a<0||a>=i?-1:a;if(l===this.size||n&&l===this.size-1||-1===l)return this.set(t,r),this;var u=this.size+(n?0:1);o<0&&a++;for(var c,s=[...A(b,this)],f=!1,d=a;d<u;d++)if(a===d){var m=s[d];s[d]===t&&(m=s[d+1]),n&&this.delete(t),c=this.get(m),this.set(t,r)}else{f||s[d-1]!==t||(f=!0);var h=s[f?d:d-1],v=c;c=this.get(h),this.delete(h),this.set(h,v)}return this}with(t,r,n){var i=new e(this);return i.insert(t,r,n),i}before(e){var t=A(b,this).indexOf(e)-1;if(!(t<0))return this.entryAt(t)}setBefore(e,t,r){var n=A(b,this).indexOf(e);return-1===n?this:this.insert(n,t,r)}after(e){var t=A(b,this).indexOf(e);if(-1!==(t=-1===t||t===this.size-1?-1:t+1))return this.entryAt(t)}setAfter(e,t,r){var n=A(b,this).indexOf(e);return-1===n?this:this.insert(n+1,t,r)}first(){return this.entryAt(0)}last(){return this.entryAt(-1)}clear(){return _(b,this,[]),super.clear()}delete(e){var t=super.delete(e);return t&&A(b,this).splice(A(b,this).indexOf(e),1),t}deleteAt(e){var t=this.keyAt(e);return void 0!==t&&this.delete(t)}at(e){var t=L(A(b,this),e);if(void 0!==t)return this.get(t)}entryAt(e){var t=L(A(b,this),e);if(void 0!==t)return[t,this.get(t)]}indexOf(e){return A(b,this).indexOf(e)}keyAt(e){return L(A(b,this),e)}from(e,t){var r=this.indexOf(e);if(-1!==r){var n=r+t;return n<0&&(n=0),n>=this.size&&(n=this.size-1),this.at(n)}}keyFrom(e,t){var r=this.indexOf(e);if(-1!==r){var n=r+t;return n<0&&(n=0),n>=this.size&&(n=this.size-1),this.keyAt(n)}}find(e,t){var r,n=0,i=M(this);try{for(i.s();!(r=i.n()).done;){var o=r.value;if(Reflect.apply(e,t,[o,n,this]))return o;n++}}catch(e){i.e(e)}finally{i.f()}}findIndex(e,t){var r,n=0,i=M(this);try{for(i.s();!(r=i.n()).done;){var o=r.value;if(Reflect.apply(e,t,[o,n,this]))return n;n++}}catch(e){i.e(e)}finally{i.f()}return-1}filter(t,r){var n,i=[],o=0,a=M(this);try{for(a.s();!(n=a.n()).done;){var l=n.value;Reflect.apply(t,r,[l,o,this])&&i.push(l),o++}}catch(e){a.e(e)}finally{a.f()}return new e(i)}map(t,r){var n,i=[],o=0,a=M(this);try{for(a.s();!(n=a.n()).done;){var l=n.value;i.push([l[0],Reflect.apply(t,r,[l,o,this])]),o++}}catch(e){a.e(e)}finally{a.f()}return new e(i)}reduce(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];var n,i=t[0],o=t[1],a=0,l=null!=o?o:this.at(0),u=M(this);try{for(u.s();!(n=u.n()).done;){var c=n.value;l=0===a&&1===t.length?c:Reflect.apply(i,this,[l,c,a,this]),a++}}catch(e){u.e(e)}finally{u.f()}return l}reduceRight(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];for(var n=t[0],i=t[1],o=null!=i?i:this.at(-1),a=this.size-1;a>=0;a--){var l=this.at(a);o=a===this.size-1&&1===t.length?l:Reflect.apply(n,this,[o,l,a,this])}return o}toSorted(t){var r=[...this.entries()].sort(t);return new e(r)}toReversed(){for(var t=new e,r=this.size-1;r>=0;r--){var n=this.keyAt(r),i=this.get(n);t.set(n,i)}return t}toSpliced(){var t=[...this.entries()];return t.splice(...arguments),new e(t)}slice(t,r){var n=new e,i=this.size-1;if(void 0===t)return n;t<0&&(t+=this.size),void 0!==r&&r>0&&(i=r-1);for(var o=t;o<=i;o++){var a=this.keyAt(o),l=this.get(a);n.set(a,l)}return n}every(e,t){var r,n=0,i=M(this);try{for(i.s();!(r=i.n()).done;){var o=r.value;if(!Reflect.apply(e,t,[o,n,this]))return!1;n++}}catch(e){i.e(e)}finally{i.f()}return!0}some(e,t){var r,n=0,i=M(this);try{for(i.s();!(r=i.n()).done;){var o=r.value;if(Reflect.apply(e,t,[o,n,this]))return!0;n++}}catch(e){i.e(e)}finally{i.f()}return!1}},z(y,"OrderedDict"),y);function L(e,t){if("at"in Array.prototype)return Array.prototype.at.call(e,t);var r=B(e,t);return-1===r?void 0:e[r]}function B(e,t){var r=e.length,n=U(t),i=n>=0?n:r+n;return i<0||i>=r?-1:i}function U(e){return e!=e||0===e?0:Math.trunc(e)}function $(e,t){if(e===t)return!0;if("object"!=typeof e||"object"!=typeof t)return!1;if(null==e||null==t)return!1;var r=Object.keys(e),n=Object.keys(t);if(r.length!==n.length)return!1;for(var i=0,o=r;i<o.length;i++){var a=o[i];if(!Object.prototype.hasOwnProperty.call(t,a))return!1;if(e[a]!==t[a])return!1}return!0}function H(e,t){return!!(t.compareDocumentPosition(e)&Node.DOCUMENT_POSITION_PRECEDING)}function X(e,t){return e[1].element&&t[1].element?H(e[1].element,t[1].element)?-1:1:0}function G(e){return new MutationObserver(t=>{var r,n=M(t);try{for(n.s();!(r=n.n()).done;)if("childList"===r.value.type)return void e()}catch(e){n.e(e)}finally{n.f()}})}z(L,"at"),z(B,"toSafeIndex"),z(U,"toSafeInteger"),z(function(e){var t=e+"CollectionProvider",r=D((0,c.A)(t),2),i=r[0],o=r[1],a=D(i(t,{collectionElement:null,collectionRef:{current:null},collectionRefObject:{current:null},itemMap:new K,setItemMap:z(()=>{},"setItemMap")}),2),l=a[0],s=a[1],d=z(e=>{var t=e.state,r=I(e,O);return t?(0,f.jsx)(h,k(k({},r),{},{state:t})):(0,f.jsx)(m,k({},r))},"CollectionProvider");d.displayName=t;var m=z(e=>{var t=M();return(0,f.jsx)(h,k(k({},e),{},{state:t}))},"CollectionInit");m.displayName=t+"Init";var h=z(e=>{var t=e.scope,r=e.children,i=e.state,o=n.useRef(null),a=D(n.useState(null),2),c=a[0],s=a[1],d=(0,u.s)(o,s),m=D(i,2),h=m[0],v=m[1];return n.useEffect(()=>{if(c){var e=G(()=>{});return e.observe(c,{childList:!0,subtree:!0}),()=>{e.disconnect()}}},[c]),(0,f.jsx)(l,{scope:t,itemMap:h,setItemMap:v,collectionRef:d,collectionRefObject:o,collectionElement:c,children:r})},"CollectionProviderImpl");h.displayName=t+"Impl";var v=e+"CollectionSlot",p=(0,w.TL)(v),y=n.forwardRef((e,t)=>{var r=e.scope,n=e.children,i=s(v,r),o=(0,u.s)(t,i.collectionRef);return(0,f.jsx)(p,{ref:o,children:n})});y.displayName=v;var b=e+"CollectionItemSlot",g="data-radix-collection-item",S=(0,w.TL)(b),x=n.forwardRef((e,t)=>{var r=e.scope,i=e.children,o=I(e,j),a=n.useRef(null),l=D(n.useState(null),2),c=l[0],d=l[1],m=(0,u.s)(t,a,d),h=s(b,r).setItemMap,v=n.useRef(o);$(v.current,o)||(v.current=o);var p=v.current;return n.useEffect(()=>{var e=p;return h(t=>c?t.has(c)?t.set(c,k(k({},e),{},{element:c})).toSorted(X):(t.set(c,k(k({},e),{},{element:c})),t.toSorted(X)):t),()=>{h(e=>c&&e.has(c)?(e.delete(c),new K(e)):e)}},[c,p,h]),(0,f.jsx)(S,k(k({},{[g]:""}),{},{ref:m,children:i}))});function M(){return n.useState(new K)}function A(t){return s(e+"CollectionConsumer",t).itemMap}return x.displayName=b,z(M,"useInitCollection"),z(A,"useCollection"),[{Provider:d,Slot:y,ItemSlot:x},{createCollectionScope:o,useCollection:A,useInitCollection:M}]},"createCollection"),z($,"shallowEqual"),z(H,"isElementPreceding"),z(X,"sortByDocumentPosition"),z(G,"getChildListObserver");var Y=["name","min","max","step","orientation","disabled","minStepsBetweenThumbs","defaultValue","value","onValueChange","onValueCommit","inverted","form"],W=["min","max","dir","inverted","onSlideStart","onSlideMove","onSlideEnd","onStepKeyDown"],q=["min","max","inverted","onSlideStart","onSlideMove","onSlideEnd","onStepKeyDown"],J=["__scopeSlider","onSlideStart","onSlideMove","onSlideEnd","onHomeKeyDown","onEndKeyDown","onStepKeyDown"],Z=["__scopeSlider"],Q=["__scopeSlider"],ee=["__scopeSlider"],te=["__scopeSlider","name"],re=["__scopeSlider"];function ne(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}function ie(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?ne(Object(r),!0).forEach(function(t){oe(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):ne(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}function oe(e,t,r){return(t=function(e){var t=function(e){if("object"!=typeof e||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var r=t.call(e,"string");if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function ae(e,t){if(null==e)return{};var r,n,i=function(e,t){if(null==e)return{};var r={};for(var n in e)if({}.hasOwnProperty.call(e,n)){if(-1!==t.indexOf(n))continue;r[n]=e[n]}return r}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(n=0;n<o.length;n++)r=o[n],-1===t.indexOf(r)&&{}.propertyIsEnumerable.call(e,r)&&(i[r]=e[r])}return i}function le(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var n,i,o,a,l=[],u=!0,c=!1;try{if(o=(r=r.call(e)).next,0===t){if(Object(r)!==r)return;u=!1}else for(;!(u=(n=o.call(r)).done)&&(l.push(n.value),l.length!==t);u=!0);}catch(e){c=!0,i=e}finally{try{if(!u&&null!=r.return&&(a=r.return(),Object(a)!==a))return}finally{if(c)throw i}}return l}}(e,t)||function(e,t){if(e){if("string"==typeof e)return ue(e,t);var r={}.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?ue(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function ue(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);r<t;r++)n[r]=e[r];return n}var ce=Object.defineProperty,se=(e,t)=>ce(e,"name",{value:t,configurable:!0}),fe=["PageUp","PageDown"],de=["ArrowUp","ArrowDown","ArrowLeft","ArrowRight"],me={"from-left":["Home","PageDown","ArrowDown","ArrowLeft"],"from-right":["Home","PageDown","ArrowDown","ArrowRight"],"from-bottom":["Home","PageDown","ArrowDown","ArrowLeft"],"from-top":["Home","PageDown","ArrowUp","ArrowLeft"]},he="Slider",ve=le(F(he),3),pe=ve[0],ye=ve[1],be=ve[2],ge=le((0,c.A)(he,[be]),2),Se=ge[0],we=(ge[1],le(Se(he),2)),xe=we[0],Oe=we[1],je=n.forwardRef(se(function(e,t){var r=e.name,i=e.min,o=void 0===i?0:i,c=e.max,d=void 0===c?100:c,m=e.step,h=void 0===m?1:m,v=e.orientation,p=void 0===v?"horizontal":v,y=e.disabled,b=void 0!==y&&y,g=e.minStepsBetweenThumbs,S=void 0===g?0:g,w=e.defaultValue,x=void 0===w?[o]:w,O=e.value,j=e.onValueChange,M=void 0===j?se(()=>{},"onValueChange"):j,A=e.onValueCommit,_=void 0===A?se(()=>{},"onValueCommit"):A,P=e.inverted,E=void 0!==P&&P,k=e.form,C=ae(e,Y),I=n.useRef(new Set),D=n.useRef(0),R=n.useRef(!1),N="horizontal"===p?Pe:Ee,T=le(n.useState(null),2),z=T[0],F=T[1],V=(0,u.s)(t,F),K=le((0,s.i)({prop:O,defaultProp:x,onChange:se(e=>{var t;null===(t=[...I.current][D.current])||void 0===t||t.focus({preventScroll:!0,focusVisible:R.current}),R.current=!1,M(e)},"onChange")}),2),L=K[0],B=void 0===L?[]:L,U=K[1],$=n.useRef(B),H=n.useRef(B);function X(e){q(e,He(B,e))}function G(e){q(e,D.current)}function W(){String(B)!==String($.current)&&_(B)}function q(e,t){var r=(arguments.length>2&&void 0!==arguments[2]?arguments[2]:{commit:!1}).commit,n=qe(h),i=a(Je(Math.round((e-o)/h)*h+o,n),[o,d]);U(function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],n=Be(e,i,t);if(Ye(n,S*h)){D.current=n.indexOf(i);var o=String(n)!==String(e);return o&&r&&_(n),o?n:e}return e})}return n.useEffect(()=>{var e=k?null==z?void 0:z.ownerDocument.getElementById(k):null==z?void 0:z.closest("form");if(e instanceof HTMLFormElement){var t=se(()=>U(H.current),"reset");return e.addEventListener("reset",t),()=>e.removeEventListener("reset",t)}},[z,k,U]),se(X,"handleSlideStart"),se(G,"handleSlideMove"),se(W,"handleSlideEnd"),se(q,"updateValues"),(0,f.jsx)(xe,{scope:e.__scopeSlider,name:r,disabled:b,min:o,max:d,valueIndexToChangeRef:D,thumbs:I.current,values:B,orientation:p,form:k,children:(0,f.jsx)(pe.Provider,{scope:e.__scopeSlider,children:(0,f.jsx)(pe.Slot,{scope:e.__scopeSlider,children:(0,f.jsx)(N,ie(ie({"aria-disabled":b,"data-disabled":b?"":void 0},C),{},{ref:V,onPointerDown:(0,l.mK)(C.onPointerDown,()=>{b||($.current=B,R.current=!1)}),min:o,max:d,inverted:E,onSlideStart:b?void 0:X,onSlideMove:b?void 0:G,onSlideEnd:b?void 0:W,onHomeKeyDown:()=>{b||(R.current=!0,q(o,0,{commit:!0}))},onEndKeyDown:()=>{b||(R.current=!0,q(d,B.length-1,{commit:!0}))},onStepKeyDown:e=>{var t=e.event,r=e.direction;if(!b){R.current=!0;var n=fe.includes(t.key)||t.shiftKey&&de.includes(t.key)?10:1,i=D.current;q(Ze(B[i],{min:o,step:h,direction:r,multiplier:n}),i,{commit:!0})}}}))})})})},"Slider")),Me=le(Se(he,{startEdge:"left",endEdge:"right",size:"width",direction:1}),2),Ae=Me[0],_e=Me[1],Pe=n.forwardRef(se(function(e,t){var r=e.min,i=e.max,o=e.dir,a=e.inverted,l=e.onSlideStart,c=e.onSlideMove,s=e.onSlideEnd,d=e.onStepKeyDown,m=ae(e,W),v=le(n.useState(null),2),p=v[0],y=v[1],b=(0,u.s)(t,y),g=n.useRef(void 0),S=h(o),w="ltr"===S,x=w&&!a||!w&&a;function O(e){var t=g.current||p.getBoundingClientRect(),n=We([0,t.width],x?[r,i]:[i,r]);return g.current=t,n(e-t.left)}return se(O,"getValueFromPointer"),(0,f.jsx)(Ae,{scope:e.__scopeSlider,startEdge:x?"left":"right",endEdge:x?"right":"left",direction:x?1:-1,size:"width",children:(0,f.jsx)(ke,ie(ie({dir:S,"data-orientation":"horizontal"},m),{},{ref:b,style:ie(ie({},m.style),{},{"--radix-slider-thumb-transform":"translateX(-50%)"}),onSlideStart:e=>{var t=O(e.clientX);null==l||l(t)},onSlideMove:e=>{var t=O(e.clientX);null==c||c(t)},onSlideEnd:()=>{g.current=void 0,null==s||s()},onStepKeyDown:e=>{var t=me[x?"from-left":"from-right"].includes(e.key);null==d||d({event:e,direction:t?-1:1})}}))})},"SliderHorizontal")),Ee=n.forwardRef(se(function(e,t){var r=e.min,i=e.max,o=e.inverted,a=e.onSlideStart,l=e.onSlideMove,c=e.onSlideEnd,s=e.onStepKeyDown,d=ae(e,q),m=n.useRef(null),h=(0,u.s)(t,m),v=n.useRef(void 0),p=!o;function y(e){var t=v.current||m.current.getBoundingClientRect(),n=We([0,t.height],p?[i,r]:[r,i]);return v.current=t,n(e-t.top)}return se(y,"getValueFromPointer"),(0,f.jsx)(Ae,{scope:e.__scopeSlider,startEdge:p?"bottom":"top",endEdge:p?"top":"bottom",size:"height",direction:p?1:-1,children:(0,f.jsx)(ke,ie(ie({"data-orientation":"vertical"},d),{},{ref:h,style:ie(ie({},d.style),{},{"--radix-slider-thumb-transform":"translateY(50%)"}),onSlideStart:e=>{var t=y(e.clientY);null==a||a(t)},onSlideMove:e=>{var t=y(e.clientY);null==l||l(t)},onSlideEnd:()=>{v.current=void 0,null==c||c()},onStepKeyDown:e=>{var t=me[p?"from-bottom":"from-top"].includes(e.key);null==s||s({event:e,direction:t?-1:1})}}))})},"SliderVertical")),ke=n.forwardRef(se(function(e,t){var r=e.__scopeSlider,n=e.onSlideStart,i=e.onSlideMove,o=e.onSlideEnd,a=e.onHomeKeyDown,u=e.onEndKeyDown,c=e.onStepKeyDown,s=ae(e,J),d=Oe(he,r);return(0,f.jsx)(S.sG.span,ie(ie({},s),{},{ref:t,onKeyDown:(0,l.mK)(e.onKeyDown,e=>{"Home"===e.key?(a(e),e.preventDefault()):"End"===e.key?(u(e),e.preventDefault()):fe.concat(de).includes(e.key)&&(c(e),e.preventDefault())}),onPointerDown:(0,l.mK)(e.onPointerDown,e=>{var t=e.target;t.setPointerCapture(e.pointerId),e.preventDefault(),d.thumbs.has(t)?t.focus({preventScroll:!0,focusVisible:!1}):n(e)}),onPointerMove:(0,l.mK)(e.onPointerMove,e=>{e.target.hasPointerCapture(e.pointerId)&&i(e)}),onPointerUp:(0,l.mK)(e.onPointerUp,e=>{var t=e.target;t.hasPointerCapture(e.pointerId)&&(t.releasePointerCapture(e.pointerId),o(e))})}))},"SliderImpl")),Ce=n.forwardRef(se(function(e,t){var r=e.__scopeSlider,n=ae(e,Z),i=Oe("SliderTrack",r);return(0,f.jsx)(S.sG.span,ie(ie({"data-disabled":i.disabled?"":void 0,"data-orientation":i.orientation},n),{},{ref:t}))},"SliderTrack")),Ie="SliderRange",De=n.forwardRef(se(function(e,t){var r=e.__scopeSlider,i=ae(e,Q),o=Oe(Ie,r),a=_e(Ie,r),l=n.useRef(null),c=(0,u.s)(t,l),s=o.values.length,d=o.values.map(e=>Ue(e,o.min,o.max)),m=s>1?Math.min(...d):0,h=100-Math.max(...d);return(0,f.jsx)(S.sG.span,ie(ie({"data-orientation":o.orientation,"data-disabled":o.disabled?"":void 0},i),{},{ref:c,style:ie(ie({},e.style),{},{[a.startEdge]:m+"%",[a.endEdge]:h+"%"})}))},"SliderRange")),Re=le(Se("SliderThumb"),2),Ne=Re[0],Te=Re[1];function ze(e){var t=e.__scopeSlider,r=e.name,i=e.children,o=e.internal_do_not_use_render,a=Oe("SliderThumbProvider",t),l=ye(t),u=le(n.useState(null),2),c=u[0],s=u[1],d=n.useMemo(()=>c?l().findIndex(e=>e.ref.current===c):-1,[l,c]),m=(0,g.X)(c),h=!c||!!a.form||!!c.closest("form"),v=a.values[d],p=null!=r?r:a.name?a.name+(a.values.length>1?"[]":""):void 0,y=void 0===v?0:Ue(v,a.min,a.max);n.useEffect(()=>{if(c)return a.thumbs.add(c),()=>{a.thumbs.delete(c)}},[c,a.thumbs]);var b={value:v,name:p,form:a.form,isFormControl:h,index:d,thumb:c,onThumbChange:s,percent:y,size:m};return(0,f.jsx)(Ne,ie(ie({scope:t},b),{},{children:Qe(o)?o(b):i}))}se(ze,"SliderThumbProvider");var Fe="SliderThumbTrigger",Ve=n.forwardRef(se(function(e,t){var r=e.__scopeSlider,n=ae(e,ee),i=Oe(Fe,r),o=_e(Fe,r),a=Te(Fe,r),c=a.index,s=a.value,d=a.percent,m=a.size,h=a.onThumbChange,v=(0,u.s)(t,h),p=$e(c,i.values.length),y=null==m?void 0:m[o.size],b=y?Xe(y,d,o.direction):0;return(0,f.jsx)("span",{style:{transform:"var(--radix-slider-thumb-transform)",position:"absolute",[o.startEdge]:"calc(".concat(d,"% + ").concat(b,"px)")},children:(0,f.jsx)(pe.ItemSlot,{scope:r,children:(0,f.jsx)(S.sG.span,ie(ie({role:"slider","aria-label":e["aria-label"]||p,"aria-valuemin":i.min,"aria-valuenow":s,"aria-valuemax":i.max,"aria-orientation":i.orientation,"data-orientation":i.orientation,"data-disabled":i.disabled?"":void 0,tabIndex:i.disabled?void 0:0},n),{},{ref:v,style:void 0===s?{display:"none"}:e.style,onFocus:(0,l.mK)(e.onFocus,()=>{i.valueIndexToChangeRef.current=c})}))})})},"SliderThumbTrigger")),Ke=n.forwardRef(se(function(e,t){var r=e.__scopeSlider,n=e.name,i=ae(e,te);return(0,f.jsx)(ze,{__scopeSlider:r,name:n,internal_do_not_use_render:e=>{var n=e.index,o=e.isFormControl;return(0,f.jsxs)(f.Fragment,{children:[(0,f.jsx)(Ve,ie(ie({},i),{},{ref:t,__scopeSlider:r})),o?(0,f.jsx)(Le,{__scopeSlider:r},n):null]})}})},"SliderThumb")),Le=n.forwardRef(se(function(e,t){var r=e.__scopeSlider,i=ae(e,re),o=Te("SliderBubbleInput",r),a=o.value,l=o.name,c=o.form,s=n.useRef(null),d=(0,u.s)(s,t),m=p(a);return n.useEffect(()=>{var e=s.current;if(e){var t=window.HTMLInputElement.prototype,r=Object.getOwnPropertyDescriptor(t,"value").set;if(m!==a&&r){var n=new Event("input",{bubbles:!0});r.call(e,a),e.dispatchEvent(n)}}},[m,a]),(0,f.jsx)(S.sG.input,ie(ie({style:{display:"none"},name:l,form:c},i),{},{ref:d,defaultValue:a}))},"SliderBubbleInput"));function Be(){var e=arguments.length>1?arguments[1]:void 0,t=[...arguments.length>0&&void 0!==arguments[0]?arguments[0]:[]];return t[arguments.length>2?arguments[2]:void 0]=e,t.sort((e,t)=>e-t)}function Ue(e,t,r){return a(100/(r-t)*(e-t),[0,100])}function $e(e,t){return t>2?"Value ".concat(e+1," of ").concat(t):2===t?["Minimum","Maximum"][e]:void 0}function He(e,t){if(1===e.length)return 0;var r=e.map(e=>Math.abs(e-t)),n=Math.min(...r);return r.indexOf(n)}function Xe(e,t,r){var n=e/2;return(n-We([0,50],[0,n])(t)*r)*r}function Ge(e){return e.slice(0,-1).map((t,r)=>e[r+1]-t)}function Ye(e,t){if(t>0){var r=Ge(e);return Math.min(...r)>=t}return!0}function We(e,t){return r=>{if(e[0]===e[1]||t[0]===t[1])return t[0];var n=(t[1]-t[0])/(e[1]-e[0]);return t[0]+n*(r-e[0])}}function qe(e){if(!Number.isFinite(e))return 0;var t=e.toString();if(t.includes("e")){var r=le(t.split("e"),2),n=r[0],i=r[1],o=n.split(".")[1]||"",a=Number(i);return Math.max(0,o.length-a)}var l=t.split(".")[1];return l?l.length:0}function Je(e,t){var r=Math.pow(10,t);return Math.round(e*r)/r}function Ze(e,t){var r=t.min,n=t.step,i=t.direction,o=t.multiplier,a=qe(n),l=(e-r)/n,u=Math.round(l),c=Je(u*n+r,a)===Je(e,a);return Je((c?u+o*i:i>0?Math.ceil(l):Math.floor(l))*n+r,a)}function Qe(e){return"function"==typeof e}se(Be,"getNextSortedValues"),se(Ue,"convertValueToPercentage"),se($e,"getLabel"),se(He,"getClosestValueIndex"),se(Xe,"getThumbInBoundsOffset"),se(Ge,"getStepsBetweenValues"),se(Ye,"hasMinStepsBetweenValues"),se(We,"linearScale"),se(qe,"getDecimalCount"),se(Je,"roundValue"),se(Ze,"getNextStepValue"),se(Qe,"isFunction");var et=r(1647),tt=r(2254),rt=(0,tt.A)(function(e,t){var r={};for(var n in t)e(t[n],n,t)&&(r[n]=t[n]);return r}),nt=r(4376);function it(e,t){if((r=(e=t?e.toExponential(t-1):e.toExponential()).indexOf("e"))<0)return null;var r,n=e.slice(0,r);return[n.length>1?n[0]+n.slice(2):n,+e.slice(r+1)]}var ot,at=/^(?:(.)?([<>=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i;function lt(e){if(!(t=at.exec(e)))throw new Error("invalid format: "+e);var t;return new ut({fill:t[1],align:t[2],sign:t[3],symbol:t[4],zero:t[5],width:t[6],comma:t[7],precision:t[8]&&t[8].slice(1),trim:t[9],type:t[10]})}function ut(e){this.fill=void 0===e.fill?" ":e.fill+"",this.align=void 0===e.align?">":e.align+"",this.sign=void 0===e.sign?"-":e.sign+"",this.symbol=void 0===e.symbol?"":e.symbol+"",this.zero=!!e.zero,this.width=void 0===e.width?void 0:+e.width,this.comma=!!e.comma,this.precision=void 0===e.precision?void 0:+e.precision,this.trim=!!e.trim,this.type=void 0===e.type?"":e.type+""}function ct(e,t){var r=it(e,t);if(!r)return e+"";var n=r[0],i=r[1];return i<0?"0."+new Array(-i).join("0")+n:n.length>i+1?n.slice(0,i+1)+"."+n.slice(i+1):n+new Array(i-n.length+2).join("0")}lt.prototype=ut.prototype,ut.prototype.toString=function(){return this.fill+this.align+this.sign+this.symbol+(this.zero?"0":"")+(void 0===this.width?"":Math.max(1,0|this.width))+(this.comma?",":"")+(void 0===this.precision?"":"."+Math.max(0,0|this.precision))+(this.trim?"~":"")+this.type};var st={"%":function(e,t){return(100*e).toFixed(t)},b:function(e){return Math.round(e).toString(2)},c:function(e){return e+""},d:function(e){return Math.abs(e=Math.round(e))>=1e21?e.toLocaleString("en").replace(/,/g,""):e.toString(10)},e:function(e,t){return e.toExponential(t)},f:function(e,t){return e.toFixed(t)},g:function(e,t){return e.toPrecision(t)},o:function(e){return Math.round(e).toString(8)},p:function(e,t){return ct(100*e,t)},r:ct,s:function(e,t){var r=it(e,t);if(!r)return e+"";var n=r[0],i=r[1],o=i-(ot=3*Math.max(-8,Math.min(8,Math.floor(i/3))))+1,a=n.length;return o===a?n:o>a?n+new Array(o-a+1).join("0"):o>0?n.slice(0,o)+"."+n.slice(o):"0."+new Array(1-o).join("0")+it(e,Math.max(0,t+o-1))[0]},X:function(e){return Math.round(e).toString(16).toUpperCase()},x:function(e){return Math.round(e).toString(16)}};function ft(e){return e}var dt,mt,ht=Array.prototype.map,vt=["y","z","a","f","p","n","µ","m","","k","M","G","T","P","E","Z","Y"];function pt(e){return function(e){if(Array.isArray(e))return bt(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||yt(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function yt(e,t){if(e){if("string"==typeof e)return bt(e,t);var r={}.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?bt(e,t):void 0}}function bt(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);r<t;r++)n[r]=e[r];return n}dt=function(e){var t,r,n=void 0===e.grouping||void 0===e.thousands?ft:(t=ht.call(e.grouping,Number),r=e.thousands+"",function(e,n){for(var i=e.length,o=[],a=0,l=t[0],u=0;i>0&&l>0&&(u+l+1>n&&(l=Math.max(1,n-u)),o.push(e.substring(i-=l,i+l)),!((u+=l+1)>n));)l=t[a=(a+1)%t.length];return o.reverse().join(r)}),i=void 0===e.currency?"":e.currency[0]+"",o=void 0===e.currency?"":e.currency[1]+"",a=void 0===e.decimal?".":e.decimal+"",l=void 0===e.numerals?ft:function(e){return function(t){return t.replace(/[0-9]/g,function(t){return e[+t]})}}(ht.call(e.numerals,String)),u=void 0===e.percent?"%":e.percent+"",c=void 0===e.minus?"-":e.minus+"",s=void 0===e.nan?"NaN":e.nan+"";function f(e){var t=(e=lt(e)).fill,r=e.align,f=e.sign,d=e.symbol,m=e.zero,h=e.width,v=e.comma,p=e.precision,y=e.trim,b=e.type;"n"===b?(v=!0,b="g"):st[b]||(void 0===p&&(p=12),y=!0,b="g"),(m||"0"===t&&"="===r)&&(m=!0,t="0",r="=");var g="$"===d?i:"#"===d&&/[boxX]/.test(b)?"0"+b.toLowerCase():"",S="$"===d?o:/[%p]/.test(b)?u:"",w=st[b],x=/[defgprs%]/.test(b);function O(e){var i,o,u,d=g,O=S;if("c"===b)O=w(e)+O,e="";else{var j=(e=+e)<0||1/e<0;if(e=isNaN(e)?s:w(Math.abs(e),p),y&&(e=function(e){e:for(var t,r=e.length,n=1,i=-1;n<r;++n)switch(e[n]){case".":i=t=n;break;case"0":0===i&&(i=n),t=n;break;default:if(!+e[n])break e;i>0&&(i=0)}return i>0?e.slice(0,i)+e.slice(t+1):e}(e)),j&&0===+e&&"+"!==f&&(j=!1),d=(j?"("===f?f:c:"-"===f||"("===f?"":f)+d,O=("s"===b?vt[8+ot/3]:"")+O+(j&&"("===f?")":""),x)for(i=-1,o=e.length;++i<o;)if(48>(u=e.charCodeAt(i))||u>57){O=(46===u?a+e.slice(i+1):e.slice(i))+O,e=e.slice(0,i);break}}v&&!m&&(e=n(e,1/0));var M=d.length+e.length+O.length,A=M<h?new Array(h-M+1).join(t):"";switch(v&&m&&(e=n(A+e,A.length?h-O.length:1/0),A=""),r){case"<":e=d+e+O+A;break;case"=":e=d+A+e+O;break;case"^":e=A.slice(0,M=A.length>>1)+d+e+O+A.slice(M);break;default:e=A+d+e+O}return l(e)}return p=void 0===p?6:/[gprs]/.test(b)?Math.max(1,Math.min(21,p)):Math.max(0,Math.min(20,p)),O.toString=function(){return e+""},O}return{format:f,formatPrefix:function(e,t){var r,n=f(((e=lt(e)).type="f",e)),i=3*Math.max(-8,Math.min(8,Math.floor((r=t,((r=it(Math.abs(r)))?r[1]:NaN)/3)))),o=Math.pow(10,-i),a=vt[8+i/3];return function(e){return n(o*e)+a}}}}({decimal:".",thousands:",",grouping:[3],currency:["$",""],minus:"-"}),dt.format,mt=dt.formatPrefix;var gt=function(e){return String(e).split(".").length>1?String(e).split(".")[1].length:0},St=function(e,t){return gt(t)<1?function(e,t){return t<10?e:parseInt((r=e/t,n=r.toString().match(/^-?\d+(?:\.\d{0,0})?/),(n?parseInt(n[0],10):0)*t).toFixed(gt(t)),10);var r,n}(e,t):function(e,t){return t<10?parseFloat(e.toFixed(gt(t))):parseFloat((parseFloat((e/t).toFixed(0))*t).toFixed(gt(t)))}(e,t)},wt=function(e,t,r){var n=Math.log10(Math.abs(e));if(0===e||n>-3&&n<4)return String(e);var i=(Math.abs(r)+Math.abs(t))/2,o=mt(",.0",i);return String(o(e))},xt=function(e,t,r){if(r)return r;if((0,et.A)(e)||(0,et.A)(t))return 1;var n=t>e?t-e:e-t,i=(Math.abs(n)+Number.EPSILON)/100,o=Math.floor(Math.log10(i));return[Number(Math.pow(10,o)),2*Math.pow(10,o),5*Math.pow(10,o)].sort(function(e,t){return Math.abs(e-i)-Math.abs(t-i)})[0]},Ot=function(e,t,r){var n={min_mark:null!=e?e:0,max_mark:null!=t?t:1};if((0,et.A)(r))return n;var i=Object.keys(r).map(Number);return(0,et.A)(e)&&(n.min_mark=Math.min.apply(Math,pt(i))),(0,et.A)(t)&&(n.max_mark=Math.max.apply(Math,pt(i))),n},jt=function(e,t,r,n){var i,o,a=[],l=function(e,t,r,n){var i,o=wt(e,e,t),a=wt(t,e,t),l=10*Math.max(o.length,a.length)+20,u=n||330,c=Math.floor(u/l)+1,s=(t-e)/((c=Math.max(3,Math.min(c,50)))-1)/r,f=Math.pow(10,Math.floor(Math.log10(s))),d=s/f;i=d<=1.5?1:d<=2.25?2:d<=3.5?2.5:d<=5?5:10;var m=r*Math.max(1,i*f),h=Math.round(m/r),v=h*r;return[e+Math.max(1,h)*r,v,r]}(e,t,null!=r?r:1,n),u=(o=3,function(e){if(Array.isArray(e))return e}(i=l)||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var n,i,o,a,l=[],u=!0,c=!1;try{if(o=(r=r.call(e)).next,0===t){if(Object(r)!==r)return;u=!1}else for(;!(u=(n=o.call(r)).done)&&(l.push(n.value),l.length!==t);u=!0);}catch(e){c=!0,i=e}finally{try{if(!u&&null!=r.return&&(a=r.return(),Object(a)!==a))return}finally{if(c)throw i}}return l}}(i,o)||yt(i,o)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()),c=u[0],s=u[1],f=u[2],d=c;if((t-d)/s>0){for(;d<t;){a.push(St(d,f));var m=d;if((d+=s)<=m)break}a.length>=2&&t-a[a.length-2]<=1.5*s&&a.pop()}var h={};return a.forEach(function(r){h[r]=wt(r,e,t)}),h[e]=wt(e,e,t),h[t]=wt(t,e,t),h},Mt=function(e){var t=e.min,r=e.max,n=e.marks,i=e.step,o=e.sliderWidth,a=Ot(t,r,n),l=a.min_mark,u=a.max_mark,c=n&&!1===(0,nt.A)(n)?function(e,t,r){return rt(function(r,n){return n>=e&&n<=t},r)}(l,u,n):n;return c&&!1===(0,nt.A)(c)?c:jt(l,u,i,o)},At=function(e,t){var r=Object.keys(t).map(Number);return 0===r.length?e:r.reduce(function(t,r){return Math.abs(r-e)<Math.abs(t-e)?r:t})};function _t(e){return _t="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},_t(e)}function Pt(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}function Et(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?Pt(Object(r),!0).forEach(function(t){kt(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Pt(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}function kt(e,t,r){return(t=function(e){var t=function(e){if("object"!=_t(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var r=t.call(e,"string");if("object"!=_t(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==_t(t)?t:t+""}(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Ct(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);r<t;r++)n[r]=e[r];return n}var It=function(e,t){var r,n,i,o,a=arguments.length>2&&void 0!==arguments[2]?arguments[2]:16,l=function(e,t,r){var n=100/(r-t)*(e-t);return Math.max(0,Math.min(100,n))}(e,t.min_mark,t.max_mark),u=(r=[0,50],n=[0,i=a/2],o=function(e){return r[0]===r[1]||n[0]===n[1]?n[0]:n[0]+(n[1]-n[0])/(r[1]-r[0])*(e-r[0])},1*(i-1*o(l)));return{percentage:l,offset:u}},Dt=function(e,t,r){var n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:[],o=arguments.length>4?arguments[4]:void 0,a=arguments.length>5&&void 0!==arguments[5]&&arguments[5];return Object.entries(e).map(function(e){var l,u,c=(u=2,function(e){if(Array.isArray(e))return e}(l=e)||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var n,i,o,a,l=[],u=!0,c=!1;try{if(o=(r=r.call(e)).next,0===t){if(Object(r)!==r)return;u=!1}else for(;!(u=(n=o.call(r)).done)&&(l.push(n.value),l.length!==t);u=!0);}catch(e){c=!0,i=e}finally{try{if(!u&&null!=r.return&&(a=r.return(),Object(a)!==a))return}finally{if(c)throw i}}return l}}(l,u)||function(e,t){if(e){if("string"==typeof e)return Ct(e,t);var r={}.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?Ct(e,t):void 0}}(l,u)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()),s=c[0],f=c[1],d=parseFloat(s),m=a?r.max_mark-d+r.min_mark:d,h=It(m,r),v=t?{bottom:"calc(".concat(h.percentage,"% + ").concat(h.offset,"px - 13px)"),left:"calc(100% + 8px)",transform:"translateY(-50%)"}:{left:"calc(".concat(h.percentage,"% + ").concat(h.offset,"px)"),bottom:0,transform:"translateX(-50%)"},p=!1;if(1===n.length)p=d>n[0];else if(n.length>1){var y=[n[0],n[n.length-1]];p=d<y[0]||d>y[1]}var b=p?"dash-slider-mark-outside-selection":"",g="dash-slider-mark ".concat(o?"with-dots":""," ").concat(b).trim();return i().createElement("div",{key:s,className:g,style:Et(Et({},v),"object"===_t(f)&&f.style?f.style:{})},"string"==typeof f?f:(null==f?void 0:f.label)||d)})},Rt=function(e,t){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[],n=arguments.length>3?arguments[3]:void 0,o=arguments.length>4&&void 0!==arguments[4]&&arguments[4];if(e<=1)return null;var a=Math.floor((t.max_mark-t.min_mark)/e)+1;return a>100?null:Array.from({length:a},function(a,l){var u=t.min_mark+l*e,c=o?t.max_mark-u+t.min_mark:u,s=It(c,t),f=n?{bottom:"calc(".concat(s.percentage,"% + ").concat(s.offset,"px)"),left:"2px",transform:"translate(50%, 50%)"}:{left:"calc(".concat(s.percentage,"% + ").concat(s.offset,"px)"),top:"0",transform:"translate(-50%, 50%)"},d=!1;if(1===r.length)d=u>r[0];else if(r.length>1){var m=[r[0],r[r.length-1]];d=u<m[0]||u>m[1]}var h=d?"dash-slider-dot dash-slider-dot-outside-selection":"dash-slider-dot";return i().createElement("div",{key:l,className:h,style:Et({},f)})})},Nt=r(2057),Tt=r(2173),zt=(0,Tt.A)(function(e,t,r){return r.replace(e,t)});function Ft(e,t){switch(e){case 0:return function(){return t.apply(this,arguments)};case 1:return function(e){return t.apply(this,arguments)};case 2:return function(e,r){return t.apply(this,arguments)};case 3:return function(e,r,n){return t.apply(this,arguments)};case 4:return function(e,r,n,i){return t.apply(this,arguments)};case 5:return function(e,r,n,i,o){return t.apply(this,arguments)};case 6:return function(e,r,n,i,o,a){return t.apply(this,arguments)};case 7:return function(e,r,n,i,o,a,l){return t.apply(this,arguments)};case 8:return function(e,r,n,i,o,a,l,u){return t.apply(this,arguments)};case 9:return function(e,r,n,i,o,a,l,u,c){return t.apply(this,arguments)};case 10:return function(e,r,n,i,o,a,l,u,c,s){return t.apply(this,arguments)};default:throw new Error("First argument to _arity must be a non-negative integer no greater than ten")}}function Vt(e,t){return function(){return t.call(this,e.apply(this,arguments))}}var Kt=r(3579),Lt=r(5564),Bt=r(8228),Ut=(0,Kt.A)(function(e){return!!(0,Lt.A)(e)||!!e&&"object"==typeof e&&!(0,Bt.A)(e)&&(0===e.length||e.length>0&&e.hasOwnProperty(0)&&e.hasOwnProperty(e.length-1))}),$t="undefined"!=typeof Symbol?Symbol.iterator:"@@iterator";function Ht(e,t,r){return function(n,i,o){if(Ut(o))return e(n,i,o);if(null==o)return i;if("function"==typeof o["fantasy-land/reduce"])return t(n,i,o,"fantasy-land/reduce");if(null!=o[$t])return r(n,i,o[$t]());if("function"==typeof o.next)return r(n,i,o);if("function"==typeof o.reduce)return t(n,i,o,"reduce");throw new TypeError("reduce: list must be array or iterable")}}function Xt(e,t,r){for(var n=0,i=r.length;n<i;){if((t=e["@@transducer/step"](t,r[n]))&&t["@@transducer/reduced"]){t=t["@@transducer/value"];break}n+=1}return e["@@transducer/result"](t)}var Gt=(0,tt.A)(function(e,t){return Ft(e.length,function(){return e.apply(t,arguments)})}),Yt=Gt;function Wt(e,t,r){for(var n=r.next();!n.done;){if((t=e["@@transducer/step"](t,n.value))&&t["@@transducer/reduced"]){t=t["@@transducer/value"];break}n=r.next()}return e["@@transducer/result"](t)}function qt(e,t,r,n){return e["@@transducer/result"](r[n](Yt(e["@@transducer/step"],e),t))}var Jt=Ht(Xt,qt,Wt),Zt=function(){function e(e){this.f=e}return e.prototype["@@transducer/init"]=function(){throw new Error("init not implemented on XWrap")},e.prototype["@@transducer/result"]=function(e){return e},e.prototype["@@transducer/step"]=function(e,t){return this.f(e,t)},e}(),Qt=(0,Tt.A)(function(e,t,r){return Jt("function"==typeof e?new Zt(e):e,t,r)});function er(e,t){return function(){var r=arguments.length;if(0===r)return t();var n=arguments[r-1];return(0,Lt.A)(n)||"function"!=typeof n[e]?t.apply(this,arguments):n[e].apply(n,Array.prototype.slice.call(arguments,0,r-1))}}var tr=(0,Tt.A)(er("slice",function(e,t,r){return Array.prototype.slice.call(r,e,t)})),rr=(0,Kt.A)(er("tail",tr(1,1/0))),nr=r(3893),ir=r(2808);function or(e,t,r){return function(){for(var n=[],i=0,o=e,a=0,l=!1;a<t.length||i<arguments.length;){var u;a<t.length&&(!(0,ir.A)(t[a])||i>=arguments.length)?u=t[a]:(u=arguments[i],i+=1),n[a]=u,(0,ir.A)(u)?l=!0:o-=1,a+=1}return!l&&o<=0?r.apply(this,n):Ft(Math.max(0,o),or(e,n,r))}}var ar=(0,tt.A)(function(e,t){return 1===e?(0,Kt.A)(t):Ft(e,or(e,[],t))}),lr=r(7596),ur=(0,tt.A)(function(e,t){return ar(e+1,function(){var r=arguments[e];if(null!=r&&(0,nr.A)(r[t]))return r[t].apply(r,Array.prototype.slice.call(arguments,0,e));throw new TypeError((0,lr.A)(r)+' does not have a method named "'+t+'"')})}),cr=ur(1,"split"),sr=r(7866),fr=Number.isInteger||function(e){return(0|e)===e};function dr(e,t){return t[e<0?t.length+e:e]}function mr(e,t){for(var r=t,n=0;n<e.length;n+=1){if(null==r)return;var i=e[n];r=fr(i)?dr(i,r):r[i]}return r}var hr=(0,tt.A)(mr),vr=function(e){var t,r=e.tooltip,n=e.value,o=e.index,a=e.id,l=["dash-slider-tooltip",r.always_visible?"always-visible":""],u=(null!==(t=r.placement)&&void 0!==t?t:"top").toLowerCase(),c={transform:""};return u.includes("top")?c.bottom="calc(100% + var(--Dash-Spacing))":u.includes("bottom")?c.top="calc(100% + var(--Dash-Spacing))":(c.top="50%",c.transform+="translateY(-50%)"),u.includes("left")?c.right="calc(100% + var(--Dash-Spacing))":u.includes("right")?c.left="calc(100% + var(--Dash-Spacing))":(c.left="50%",c.transform+="translateX(-50%)"),i().createElement("div",{className:l.join(" "),style:c},function(e,t){var n=e;return null!=r&&r.transform&&(n=function(e,t){var r=function(){if(0===arguments.length)throw new Error("pipe requires at least one argument");return Ft(arguments[0].length,Qt(Vt,arguments[0],rr(arguments)))}(cr("."),function(e){return(0,sr.A)(["dccFunctions"],e)},function(e){return hr(e,window)})(e);if(!r)throw new Error("Invalid func for slider tooltip transform: ".concat(e));return r(t)}(r.transform,e)),i().createElement("div",{id:"".concat(a,"-tooltip-").concat(t+1,"-content"),style:null==r?void 0:r.style},function(e,t){return zt("{value}","".concat(t),e)}((null==r?void 0:r.template)||"{value}",n))}(n,o))},pr=r(6763);function yr(){return yr=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)({}).hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},yr.apply(null,arguments)}function br(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}function gr(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?br(Object(r),!0).forEach(function(t){Sr(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):br(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}function Sr(e,t,r){return(t=function(e){var t=function(e){if("object"!=xr(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var r=t.call(e,"string");if("object"!=xr(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==xr(t)?t:t+""}(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function wr(e){return function(e){if(Array.isArray(e))return Mr(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||jr(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function xr(e){return xr="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},xr(e)}function Or(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var n,i,o,a,l=[],u=!0,c=!1;try{if(o=(r=r.call(e)).next,0===t){if(Object(r)!==r)return;u=!1}else for(;!(u=(n=o.call(r)).done)&&(l.push(n.value),l.length!==t);u=!0);}catch(e){c=!0,i=e}finally{try{if(!u&&null!=r.return&&(a=r.return(),Object(a)!==a))return}finally{if(c)throw i}}return l}}(e,t)||jr(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function jr(e,t){if(e){if("string"==typeof e)return Mr(e,t);var r={}.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?Mr(e,t):void 0}}function Mr(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);r<t;r++)n[r]=e[r];return n}var Ar=500;function _r(e){var t=e.className,r=e.id,o=e.setProps,a=e.tooltip,l=e.updatemode,u=e.min,c=e.max,s=e.marks,f=e.step,d=e.vertical,m=e.verticalHeight,h=e.value,v=e.disabled,p=e.dots,y=e.included,b=(e.allowCross,e.pushable),g=(e.count,e.reverse),S=e.allow_direct_input,w=void 0===S||S,x=Or((0,n.useState)(h||[]),2),O=x[0],j=x[1],M=Or((0,n.useState)(null),2),A=M[0],_=M[1],P=(0,n.useRef)(null),E=(0,n.useRef)(null);(0,n.useEffect)(function(){if(h&&h.length>0)o({drag_value:h}),j(h);else{var e=[null!=u?u:h?h[0]:0];j(e)}},[]),(0,n.useEffect)(function(){if(P.current){var e=function(){if(P.current){var e=P.current.getBoundingClientRect(),t=d?e.height:e.width;t>0&&_(t)}};e();var t=new ResizeObserver(function(){e()});return t.observe(P.current),function(){t.disconnect()}}},[d]),(0,n.useEffect)(function(){h&&JSON.stringify(h)!==JSON.stringify(O)&&(o({drag_value:h}),j(h))},[h]);var k=s;if(s&&"object"===xr(s)&&null!==s){var C=Object.keys(s).length;C>Ar&&(pr.error("Slider: Too many marks (".concat(C,") provided. ")+"For performance reasons, marks are limited to 500. Using auto-generated marks instead."),k=void 0)}var I=(0,n.useMemo)(function(){return Ot(u,c,k)},[u,c,k]),D=(0,n.useMemo)(function(){return null===f&&(0,et.A)(k)?void 0:xt(u,c,f)},[u,c,k,f]),R=(0,n.useMemo)(function(){return null===k?null:Mt({min:u,max:c,marks:k,step:f,sliderWidth:A})},[u,c,k,f,A]),N=(0,n.useMemo)(function(){var e,t,r=Math.max(String(Math.floor(I.max_mark)).length,String(Math.floor(I.min_mark)).length),n=Math.min((null!==(e=null===(t=String(D).split(".")[1])||void 0===t?void 0:t.length)&&void 0!==e?e:-1)+1,3);return"calc(".concat(r+n,"ch + calc(var(--Dash-Spacing) * 2))")},[I.min_mark,I.max_mark,D]),T=function(e){if(e<I.min_mark||e>I.max_mark)return!1;if(void 0!==D){var t=I.min_mark,r=e-t,n=Math.abs(r%D),i=1e-4;if(n>i&&n<D-i)return!1}return null!==f||!k||"object"!==xr(k)||Object.keys(k).map(Number).some(function(t){return Math.abs(e-t)<1e-4})},z=function(e){var t=Math.max(I.min_mark,Math.min(I.max_mark,e));if(null===f&&k&&"object"===xr(k))return At(t,k);if(void 0!==D){var r=I.min_mark;t=r+Math.round((t-r)/D)*D;var n=D.toString(),i=n.includes(".")?n.split(".")[1].length:0;t=Number(t.toFixed(i)),t=Math.max(I.min_mark,Math.min(I.max_mark,t))}return t},F=function(e){var t=e;if(null===f&&k&&"object"===xr(k)){var r=k;t=e.map(function(e){return At(e,r)})}j(t),o("drag"===l?{value:t,drag_value:t}:{drag_value:t})},V=function(e){"mouseup"===l&&o({value:e})},K=["dash-slider-container",t].filter(Boolean),L=!1!==w&&null!==f&&O.length<=2&&!d;return i().createElement(Nt.A,null,function(e){return i().createElement("div",yr({id:r,className:K.join(" ")},e),L&&2===O.length&&i().createElement("input",{type:"number",className:"dash-input-container dash-range-slider-input dash-range-slider-min-input",style:{width:N},value:isNaN(O[0])?"":O[0],onChange:function(e){var t=e.target.value,r=parseFloat(t),n=[r,O[1]];j(n),T(r)&&o("drag"===l?{value:n,drag_value:n}:{drag_value:n})},onBlur:function(e){var t,r,n=e.target.value;""===n?r=isNaN(O[0])?I.min_mark:O[0]:(r=parseFloat(n),r=isNaN(r)?I.min_mark:r),r=Math.min(null!==(t=O[1])&&void 0!==t?t:I.max_mark,r);var i=[z(r),O[1]];j(i),"mouseup"===l&&o({value:i})},pattern:"^\\\\d*\\\\.?\\\\d*$",min:I.min_mark,max:isNaN(O[1])?c:O[1],step:f||void 0,disabled:v}),L&&i().createElement("input",{ref:E,type:"number",className:"dash-input-container dash-range-slider-input dash-range-slider-max-input",style:{width:N},value:isNaN(O[O.length-1])?"":O[O.length-1],onChange:function(e){var t=e.target.value,r=parseFloat(t),n=wr(O);n[n.length-1]=r,j(n),T(r)&&o("drag"===l?{value:n,drag_value:n}:{drag_value:n})},onBlur:function(e){var t,r,n=e.target.value;""===n?r=isNaN(O[O.length-1])?I.max_mark:O[O.length-1]:(r=parseFloat(n),r=isNaN(r)?I.max_mark:r),r=Math.max(null!==(t=O[0])&&void 0!==t?t:I.min_mark,r);var i=z(r),a=wr(O);a[a.length-1]=i,j(a),"mouseup"===l&&o({value:a})},pattern:"^\\\\d*\\\\.?\\\\d*$",min:1===O.length?I.min_mark:O[0],max:isNaN(I.max_mark)?c:I.max_mark,step:f||void 0,disabled:v}),i().createElement("div",{className:"dash-slider-wrapper",onClickCapture:function(e){return e.preventDefault()}},i().createElement(je,{ref:P,className:"dash-slider-root ".concat(R?"has-marks":"").trim(),style:gr({},d&&{height:"".concat(m,"px")}),value:O,onValueChange:F,onValueCommit:V,min:I.min_mark,max:I.max_mark,step:D,disabled:v,orientation:d?"vertical":"horizontal",inverted:g,"data-included":!1!==y,minStepsBetweenThumbs:"number"==typeof b?b:void 0},i().createElement(Ce,{className:"dash-slider-track"},!1!==y&&i().createElement(De,{className:"dash-slider-range"})),R&&Dt(R,!!d,I,O,!!p,!!g),p&&D&&Rt(D,I,O,!!d,!!g),O.map(function(e,t){var n="dash-slider-thumb dash-slider-thumb-".concat(t+1);return i().createElement(Ke,{key:"thumb"+t,className:n},a&&i().createElement(vr,{id:r,index:t,value:e,tooltip:a}))}))))})}}}]);
|
|
2
2
|
//# sourceMappingURL=async-slider.js.map
|