!function(){try{var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:{};e.SENTRY_RELEASE={id:"substack@538433c"};var t=(new e.Error).stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]="45bdff5f-2943-4d91-ae35-03f584b5937d",e._sentryDebugIdIdentifier="sentry-dbid-45bdff5f-2943-4d91-ae35-03f584b5937d")}catch(e){}}(),(self.webpackChunksubstack=self.webpackChunksubstack||[]).push([["42985"],{88055:function(e,t,r){var n=r(9999);e.exports=function(e){return n(e,5)}},6924:function(e,t,r){var n=r(85250);e.exports=r(20999)(function(e,t,r,a){n(e,t,r,a)})},11256:function(e,t,r){"use strict";r.d(t,{A:()=>n});let n=(0,r(81315).A)("arrow-right-to-line",[["path",{d:"M17 12H3",key:"8awo09"}],["path",{d:"m11 18 6-6-6-6",key:"8c2y43"}],["path",{d:"M21 5v14",key:"nzette"}]])},89505:function(e,t,r){"use strict";r.d(t,{A:()=>n});let n=(0,r(81315).A)("baby",[["path",{d:"M9 12h.01",key:"157uk2"}],["path",{d:"M15 12h.01",key:"1k8ypt"}],["path",{d:"M10 16c.5.3 1.2.5 2 .5s1.5-.2 2-.5",key:"1u7htd"}],["path",{d:"M19 6.3a9 9 0 0 1 1.8 3.9 2 2 0 0 1 0 3.6 9 9 0 0 1-17.6 0 2 2 0 0 1 0-3.6A9 9 0 0 1 12 3c2 0 3.5 1.1 3.5 2.5s-.9 2.5-2 2.5c-.8 0-1.5-.4-1.5-1",key:"5yv0yz"}]])},22247:function(e,t,r){"use strict";r.d(t,{A:()=>n});let n=(0,r(81315).A)("beaker",[["path",{d:"M4.5 3h15",key:"c7n0jr"}],["path",{d:"M6 3v16a2 2 0 0 0 2 2h8a2 2 0 0 0 2-2V3",key:"m1uhx7"}],["path",{d:"M6 14h12",key:"4cwo0f"}]])},54067:function(e,t,r){"use strict";r.d(t,{A:()=>n});let n=(0,r(81315).A)("bitcoin",[["path",{d:"M11.767 19.089c4.924.868 6.14-6.025 1.216-6.894m-1.216 6.894L5.86 18.047m5.908 1.042-.347 1.97m1.563-8.864c4.924.869 6.14-6.025 1.215-6.893m-1.215 6.893-3.94-.694m5.155-6.2L8.29 4.26m5.908 1.042.348-1.97M7.48 20.364l3.126-17.727",key:"yr8idg"}]])},60665:function(e,t,r){"use strict";r.d(t,{A:()=>n});let n=(0,r(81315).A)("book-open",[["path",{d:"M12 7v14",key:"1akyts"}],["path",{d:"M3 18a1 1 0 0 1-1-1V4a1 1 0 0 1 1-1h5a4 4 0 0 1 4 4 4 4 0 0 1 4-4h5a1 1 0 0 1 1 1v13a1 1 0 0 1-1 1h-6a3 3 0 0 0-3 3 3 3 0 0 0-3-3z",key:"ruj8y"}]])},72201:function(e,t,r){"use strict";r.d(t,{A:()=>n});let n=(0,r(81315).A)("briefcase",[["path",{d:"M16 20V4a2 2 0 0 0-2-2h-4a2 2 0 0 0-2 2v16",key:"jecpp"}],["rect",{width:"20",height:"14",x:"2",y:"6",rx:"2",key:"i6l2r4"}]])},66509:function(e,t,r){"use strict";r.d(t,{A:()=>n});let n=(0,r(81315).A)("brush",[["path",{d:"m9.06 11.9 8.07-8.06a2.85 2.85 0 1 1 4.03 4.03l-8.06 8.08",key:"1styjt"}],["path",{d:"M7.07 14.94c-1.66 0-3 1.35-3 3.02 0 1.33-2.5 1.52-2 2.02 1.08 1.1 2.49 2.02 4 2.02 2.2 0 4-1.8 4-4.04a3.01 3.01 0 0 0-3-3.02z",key:"z0l1mu"}]])},24517:function(e,t,r){"use strict";r.d(t,{A:()=>n});let n=(0,r(81315).A)("cloudy",[["path",{d:"M17.5 21H9a7 7 0 1 1 6.71-9h1.79a4.5 4.5 0 1 1 0 9Z",key:"gqqjvc"}],["path",{d:"M22 10a3 3 0 0 0-3-3h-2.207a5.502 5.502 0 0 0-10.702.5",key:"1p2s76"}]])},79907:function(e,t,r){"use strict";r.d(t,{A:()=>n});let n=(0,r(81315).A)("cpu",[["rect",{width:"16",height:"16",x:"4",y:"4",rx:"2",key:"14l7u7"}],["rect",{width:"6",height:"6",x:"9",y:"9",rx:"1",key:"5aljv4"}],["path",{d:"M15 2v2",key:"13l42r"}],["path",{d:"M15 20v2",key:"15mkzm"}],["path",{d:"M2 15h2",key:"1gxd5l"}],["path",{d:"M2 9h2",key:"1bbxkp"}],["path",{d:"M20 15h2",key:"19e6y8"}],["path",{d:"M20 9h2",key:"19tzq7"}],["path",{d:"M9 2v2",key:"165o2o"}],["path",{d:"M9 20v2",key:"i2bqo8"}]])},4330:function(e,t,r){"use strict";r.d(t,{A:()=>n});let n=(0,r(81315).A)("drama",[["path",{d:"M10 11h.01",key:"d2at3l"}],["path",{d:"M14 6h.01",key:"k028ub"}],["path",{d:"M18 6h.01",key:"1v4wsw"}],["path",{d:"M6.5 13.1h.01",key:"1748ia"}],["path",{d:"M22 5c0 9-4 12-6 12s-6-3-6-12c0-2 2-3 6-3s6 1 6 3",key:"172yzv"}],["path",{d:"M17.4 9.9c-.8.8-2 .8-2.8 0",key:"1obv0w"}],["path",{d:"M10.1 7.1C9 7.2 7.7 7.7 6 8.6c-3.5 2-4.7 3.9-3.7 5.6 4.5 7.8 9.5 8.4 11.2 7.4.9-.5 1.9-2.1 1.9-4.7",key:"rqjl8i"}],["path",{d:"M9.1 16.5c.3-1.1 1.4-1.7 2.4-1.4",key:"1mr6wy"}]])},41233:function(e,t,r){"use strict";r.d(t,{A:()=>n});let n=(0,r(81315).A)("earth",[["path",{d:"M21.54 15H17a2 2 0 0 0-2 2v4.54",key:"1djwo0"}],["path",{d:"M7 3.34V5a3 3 0 0 0 3 3a2 2 0 0 1 2 2c0 1.1.9 2 2 2a2 2 0 0 0 2-2c0-1.1.9-2 2-2h3.17",key:"1tzkfa"}],["path",{d:"M11 21.95V18a2 2 0 0 0-2-2a2 2 0 0 1-2-2v-1a2 2 0 0 0-2-2H2.05",key:"14pb5j"}],["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}]])},30684:function(e,t,r){"use strict";r.d(t,{A:()=>n});let n=(0,r(81315).A)("globe",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M12 2a14.5 14.5 0 0 0 0 20 14.5 14.5 0 0 0 0-20",key:"13o1zl"}],["path",{d:"M2 12h20",key:"9i4pu4"}]])},9044:function(e,t,r){"use strict";r.d(t,{A:()=>n});let n=(0,r(81315).A)("graduation-cap",[["path",{d:"M21.42 10.922a1 1 0 0 0-.019-1.838L12.83 5.18a2 2 0 0 0-1.66 0L2.6 9.08a1 1 0 0 0 0 1.832l8.57 3.908a2 2 0 0 0 1.66 0z",key:"j76jl0"}],["path",{d:"M22 10v6",key:"1lu8f3"}],["path",{d:"M6 12.5V16a6 3 0 0 0 12 0v-3.5",key:"1r8lef"}]])},36433:function(e,t,r){"use strict";r.d(t,{A:()=>n});let n=(0,r(81315).A)("landmark",[["line",{x1:"3",x2:"21",y1:"22",y2:"22",key:"j8o0r"}],["line",{x1:"6",x2:"6",y1:"18",y2:"11",key:"10tf0k"}],["line",{x1:"10",x2:"10",y1:"18",y2:"11",key:"54lgf6"}],["line",{x1:"14",x2:"14",y1:"18",y2:"11",key:"380y"}],["line",{x1:"18",x2:"18",y1:"18",y2:"11",key:"1kevvc"}],["polygon",{points:"12 2 20 7 4 7",key:"jkujk7"}]])},80680:function(e,t,r){"use strict";r.d(t,{A:()=>n});let n=(0,r(81315).A)("laugh",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M18 13a6 6 0 0 1-6 5 6 6 0 0 1-6-5h12Z",key:"b2q4dd"}],["line",{x1:"9",x2:"9.01",y1:"9",y2:"9",key:"yxxnd0"}],["line",{x1:"15",x2:"15.01",y1:"9",y2:"9",key:"1p4y9e"}]])},51089:function(e,t,r){"use strict";r.d(t,{A:()=>n});let n=(0,r(81315).A)("leaf",[["path",{d:"M11 20A7 7 0 0 1 9.8 6.1C15.5 5 17 4.48 19 2c1 2 2 4.18 2 8 0 5.5-4.78 10-10 10Z",key:"nnexq3"}],["path",{d:"M2 21c0-3 1.85-5.36 5.08-6C9.5 14.52 12 13 13 12",key:"mt58a7"}]])},43598:function(e,t,r){"use strict";r.d(t,{A:()=>n});let n=(0,r(81315).A)("lightbulb",[["path",{d:"M15 14c.2-1 .7-1.7 1.5-2.5 1-.9 1.5-2.2 1.5-3.5A6 6 0 0 0 6 8c0 1 .2 2.2 1.5 3.5.7.7 1.3 1.5 1.5 2.5",key:"1gvzjb"}],["path",{d:"M9 18h6",key:"x1upvd"}],["path",{d:"M10 22h4",key:"ceow96"}]])},31887:function(e,t,r){"use strict";r.d(t,{A:()=>n});let n=(0,r(81315).A)("mouse-pointer-click",[["path",{d:"M14 4.1 12 6",key:"ita8i4"}],["path",{d:"m5.1 8-2.9-.8",key:"1go3kf"}],["path",{d:"m6 12-1.9 2",key:"mnht97"}],["path",{d:"M7.2 2.2 8 5.1",key:"1cfko1"}],["path",{d:"M9.037 9.69a.498.498 0 0 1 .653-.653l11 4.5a.5.5 0 0 1-.074.949l-4.349 1.041a1 1 0 0 0-.74.739l-1.04 4.35a.5.5 0 0 1-.95.074z",key:"s0h3yz"}]])},97167:function(e,t,r){"use strict";r.d(t,{A:()=>n});let n=(0,r(81315).A)("music-4",[["path",{d:"M9 18V5l12-2v13",key:"1jmyc2"}],["path",{d:"m9 9 12-2",key:"1e64n2"}],["circle",{cx:"6",cy:"18",r:"3",key:"fqmcym"}],["circle",{cx:"18",cy:"16",r:"3",key:"1hluhg"}]])},30960:function(e,t,r){"use strict";r.d(t,{A:()=>n});let n=(0,r(81315).A)("panels-top-left",[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",key:"afitv7"}],["path",{d:"M3 9h18",key:"1pudct"}],["path",{d:"M9 21V9",key:"1oto5p"}]])},5913:function(e,t,r){"use strict";r.d(t,{A:()=>n});let n=(0,r(81315).A)("pencil-ruler",[["path",{d:"M13 7 8.7 2.7a2.41 2.41 0 0 0-3.4 0L2.7 5.3a2.41 2.41 0 0 0 0 3.4L7 13",key:"orapub"}],["path",{d:"m8 6 2-2",key:"115y1s"}],["path",{d:"m18 16 2-2",key:"ee94s4"}],["path",{d:"m17 11 4.3 4.3c.94.94.94 2.46 0 3.4l-2.6 2.6c-.94.94-2.46.94-3.4 0L11 17",key:"cfq27r"}],["path",{d:"M21.174 6.812a1 1 0 0 0-3.986-3.987L3.842 16.174a2 2 0 0 0-.5.83l-1.321 4.352a.5.5 0 0 0 .623.622l4.353-1.32a2 2 0 0 0 .83-.497z",key:"1a8usu"}],["path",{d:"m15 5 4 4",key:"1mk7zo"}]])},19171:function(e,t,r){"use strict";r.d(t,{A:()=>n});let n=(0,r(81315).A)("plane",[["path",{d:"M17.8 19.2 16 11l3.5-3.5C21 6 21.5 4 21 3c-1-.5-3 0-4.5 1.5L13 8 4.8 6.2c-.5-.1-.9.1-1.1.5l-.3.5c-.2.5-.1 1 .3 1.3L9 12l-2 3H4l-1 1 3 2 2 3 1-1v-3l3-2 3.5 5.3c.3.4.8.5 1.3.3l.5-.2c.4-.3.6-.7.5-1.2z",key:"1v9wt8"}]])},92176:function(e,t,r){"use strict";r.d(t,{A:()=>n});let n=(0,r(81315).A)("scroll",[["path",{d:"M19 17V5a2 2 0 0 0-2-2H4",key:"zz82l3"}],["path",{d:"M8 21h12a2 2 0 0 0 2-2v-1a1 1 0 0 0-1-1H11a1 1 0 0 0-1 1v1a2 2 0 1 1-4 0V5a2 2 0 1 0-4 0v2a1 1 0 0 0 1 1h3",key:"1ph1d7"}]])},92577:function(e,t,r){"use strict";r.d(t,{A:()=>n});let n=(0,r(81315).A)("shirt",[["path",{d:"M20.38 3.46 16 2a4 4 0 0 1-8 0L3.62 3.46a2 2 0 0 0-1.34 2.23l.58 3.47a1 1 0 0 0 .99.84H6v10c0 1.1.9 2 2 2h8a2 2 0 0 0 2-2V10h2.15a1 1 0 0 0 .99-.84l.58-3.47a2 2 0 0 0-1.34-2.23z",key:"1wgbhj"}]])},77681:function(e,t,r){"use strict";r.d(t,{A:()=>n});let n=(0,r(81315).A)("square-user-round",[["path",{d:"M18 21a6 6 0 0 0-12 0",key:"kaz2du"}],["circle",{cx:"12",cy:"11",r:"4",key:"1gt34v"}],["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",key:"afitv7"}]])},45899:function(e,t,r){"use strict";r.d(t,{A:()=>n});let n=(0,r(81315).A)("trophy",[["path",{d:"M6 9H4.5a2.5 2.5 0 0 1 0-5H6",key:"17hqa7"}],["path",{d:"M18 9h1.5a2.5 2.5 0 0 0 0-5H18",key:"lmptdp"}],["path",{d:"M4 22h16",key:"57wxv0"}],["path",{d:"M10 14.66V17c0 .55-.47.98-.97 1.21C7.85 18.75 7 20.24 7 22",key:"1nw9bq"}],["path",{d:"M14 14.66V17c0 .55.47.98.97 1.21C16.15 18.75 17 20.24 17 22",key:"1np0yb"}],["path",{d:"M18 2H6v7a6 6 0 0 0 12 0V2Z",key:"u46fv3"}]])},78579:function(e,t,r){"use strict";r.d(t,{CC:()=>U,zi:()=>F,bL:()=>Z,Q6:()=>B});var n=r(17402);function a(e,[t,r]){return Math.min(r,Math.max(t,e))}function i(e,t,{checkForDefaultPrevented:r=!0}={}){return function(n){if(e?.(n),!1===r||!n.defaultPrevented)return t?.(n)}}function o(e,t){if("function"==typeof e)return e(t);null!=e&&(e.current=t)}function l(...e){return t=>{let r=!1,n=e.map(e=>{let n=o(e,t);return r||"function"!=typeof n||(r=!0),n});if(r)return()=>{for(let t=0;t{var r,a;let i,o,d,c=(a=r=`Primitive.${t}`,(i=n.forwardRef((e,t)=>{let{children:r,...a}=e;if(n.isValidElement(r)){var i;let e,o,d=(i=r,(o=(e=Object.getOwnPropertyDescriptor(i.props,"ref")?.get)&&"isReactWarning"in e&&e.isReactWarning)?i.ref:(o=(e=Object.getOwnPropertyDescriptor(i,"ref")?.get)&&"isReactWarning"in e&&e.isReactWarning)?i.props.ref:i.props.ref||i.ref),u=function(e,t){let r={...t};for(let n in t){let a=e[n],i=t[n];/^on[A-Z]/.test(n)?a&&i?r[n]=(...e)=>{let t=i(...e);return a(...e),t}:a&&(r[n]=a):"style"===n?r[n]={...a,...i}:"className"===n&&(r[n]=[a,i].filter(Boolean).join(" "))}return{...e,...r}}(a,r.props);return r.type!==n.Fragment&&(u.ref=t?l(t,d):d),n.cloneElement(r,u)}return n.Children.count(r)>1?n.Children.only(null):null})).displayName=`${a}.SlotClone`,o=i,(d=n.forwardRef((e,t)=>{let{children:r,...a}=e,i=n.Children.toArray(r),l=i.find(y);if(l){let e=l.props.children,r=i.map(t=>t!==l?t:n.Children.count(e)>1?n.Children.only(null):n.isValidElement(e)?e.props.children:null);return(0,u.Y)(o,{...a,ref:t,children:n.isValidElement(e)?n.cloneElement(e,void 0,r):null})}return(0,u.Y)(o,{...a,ref:t,children:r})})).displayName=`${r}.Slot`,d),s=n.forwardRef((e,r)=>{let{asChild:n,...a}=e;return"undefined"!=typeof window&&(window[Symbol.for("radix-ui")]=!0),(0,u.Y)(n?c:t,{...a,ref:r})});return s.displayName=`Primitive.${t}`,{...e,[t]:s}},{}),k=r(6218),v=["PageUp","PageDown"],w=["ArrowUp","ArrowDown","ArrowLeft","ArrowRight"],g={"from-left":["Home","PageDown","ArrowDown","ArrowLeft"],"from-right":["Home","PageDown","ArrowDown","ArrowRight"],"from-bottom":["Home","PageDown","ArrowDown","ArrowLeft"],"from-top":["Home","PageDown","ArrowUp","ArrowLeft"]},M="Slider",[b,A,x]=(0,k.N)(M),[S,R]=function(e,t=[]){let r=[],a=()=>{let t=r.map(e=>n.createContext(e));return function(r){let a=r?.[e]||t;return n.useMemo(()=>({[`__scope${e}`]:{...r,[e]:a}}),[r,a])}};return a.scopeName=e,[function(t,a){let i=n.createContext(a),o=r.length;r=[...r,a];let l=t=>{let{scope:r,children:a,...l}=t,d=r?.[e]?.[o]||i,c=n.useMemo(()=>l,Object.values(l));return(0,u.Y)(d.Provider,{value:c,children:a})};return l.displayName=t+"Provider",[l,function(r,l){let d=l?.[e]?.[o]||i,u=n.useContext(d);if(u)return u;if(void 0!==a)return a;throw Error(`\`${r}\` must be used within \`${t}\``)}]},function(...e){let t=e[0];if(1===e.length)return t;let r=()=>{let r=e.map(e=>({useScope:e(),scopeName:e.scopeName}));return function(e){let a=r.reduce((t,{useScope:r,scopeName:n})=>{let a=r(e)[`__scope${n}`];return{...t,...a}},{});return n.useMemo(()=>({[`__scope${t.scopeName}`]:a}),[a])}};return r.scopeName=t.scopeName,r}(a,...t)]}(M,[x]),[D,E]=S(M),C=n.forwardRef((e,t)=>{let{name:r,min:o=0,max:l=100,step:d=1,orientation:s="horizontal",disabled:p=!1,minStepsBetweenThumbs:f=0,defaultValue:h=[o],value:y,onValueChange:m=()=>{},onValueCommit:k=()=>{},inverted:g=!1,form:M,...A}=e,x=n.useRef(new Set),S=n.useRef(0),R="horizontal"===s,[E=[],C]=(0,c.i)({prop:y,defaultProp:h,onChange:e=>{let t=[...x.current];t[S.current]?.focus(),m(e)}}),z=n.useRef(E);function _(e,t,{commit:r}={commit:!1}){let n,i=(String(d).split(".")[1]||"").length,u=a(Math.round((Math.round((e-o)/d)*d+o)*(n=Math.pow(10,i)))/n,[o,l]);C((e=[])=>{let n=function(e=[],t,r){let n=[...e];return n[r]=t,n.sort((e,t)=>e-t)}(e,u,t);if(!function(e,t){if(t>0)return Math.min(...e.slice(0,-1).map((t,r)=>e[r+1]-t))>=t;return!0}(n,f*d))return e;{S.current=n.indexOf(u);let t=String(n)!==String(e);return t&&r&&k(n),t?n:e}})}return(0,u.Y)(D,{scope:e.__scopeSlider,name:r,disabled:p,min:o,max:l,valueIndexToChangeRef:S,thumbs:x.current,values:E,orientation:s,form:M,children:(0,u.Y)(b.Provider,{scope:e.__scopeSlider,children:(0,u.Y)(b.Slot,{scope:e.__scopeSlider,children:(0,u.Y)(R?P:Y,{"aria-disabled":p,"data-disabled":p?"":void 0,...A,ref:t,onPointerDown:i(A.onPointerDown,()=>{p||(z.current=E)}),min:o,max:l,inverted:g,onSlideStart:p?void 0:function(e){let t=function(e,t){if(1===e.length)return 0;let r=e.map(e=>Math.abs(e-t)),n=Math.min(...r);return r.indexOf(n)}(E,e);_(e,t)},onSlideMove:p?void 0:function(e){_(e,S.current)},onSlideEnd:p?void 0:function(){let e=z.current[S.current];E[S.current]!==e&&k(E)},onHomeKeyDown:()=>!p&&_(o,0,{commit:!0}),onEndKeyDown:()=>!p&&_(l,E.length-1,{commit:!0}),onStepKeyDown:({event:e,direction:t})=>{if(!p){let r=v.includes(e.key)||e.shiftKey&&w.includes(e.key),n=S.current;_(E[n]+d*(r?10:1)*t,n,{commit:!0})}}})})})})});C.displayName=M;var[z,_]=S(M,{startEdge:"left",endEdge:"right",size:"width",direction:1}),P=n.forwardRef((e,t)=>{let r,{min:a,max:i,dir:o,inverted:l,onSlideStart:c,onSlideMove:p,onSlideEnd:f,onStepKeyDown:h,...y}=e,[m,k]=n.useState(null),v=d(t,e=>k(e)),w=n.useRef(void 0),M=(r=n.useContext(s),o||r||"ltr"),b="ltr"===M,A=b&&!l||!b&&l;function x(e){let t=w.current||m.getBoundingClientRect(),r=T([0,t.width],A?[a,i]:[i,a]);return w.current=t,r(e-t.left)}return(0,u.Y)(z,{scope:e.__scopeSlider,startEdge:A?"left":"right",endEdge:A?"right":"left",direction:A?1:-1,size:"width",children:(0,u.Y)(j,{dir:M,"data-orientation":"horizontal",...y,ref:v,style:{...y.style,"--radix-slider-thumb-transform":"translateX(-50%)"},onSlideStart:e=>{let t=x(e.clientX);c?.(t)},onSlideMove:e=>{let t=x(e.clientX);p?.(t)},onSlideEnd:()=>{w.current=void 0,f?.()},onStepKeyDown:e=>{let t=g[A?"from-left":"from-right"].includes(e.key);h?.({event:e,direction:t?-1:1})}})})}),Y=n.forwardRef((e,t)=>{let{min:r,max:a,inverted:i,onSlideStart:o,onSlideMove:l,onSlideEnd:c,onStepKeyDown:s,...p}=e,f=n.useRef(null),h=d(t,f),y=n.useRef(void 0),m=!i;function k(e){let t=y.current||f.current.getBoundingClientRect(),n=T([0,t.height],m?[a,r]:[r,a]);return y.current=t,n(e-t.top)}return(0,u.Y)(z,{scope:e.__scopeSlider,startEdge:m?"bottom":"top",endEdge:m?"top":"bottom",size:"height",direction:m?1:-1,children:(0,u.Y)(j,{"data-orientation":"vertical",...p,ref:h,style:{...p.style,"--radix-slider-thumb-transform":"translateY(50%)"},onSlideStart:e=>{let t=k(e.clientY);o?.(t)},onSlideMove:e=>{let t=k(e.clientY);l?.(t)},onSlideEnd:()=>{y.current=void 0,c?.()},onStepKeyDown:e=>{let t=g[m?"from-bottom":"from-top"].includes(e.key);s?.({event:e,direction:t?-1:1})}})})}),j=n.forwardRef((e,t)=>{let{__scopeSlider:r,onSlideStart:n,onSlideMove:a,onSlideEnd:o,onHomeKeyDown:l,onEndKeyDown:d,onStepKeyDown:c,...s}=e,p=E(M,r);return(0,u.Y)(m.span,{...s,ref:t,onKeyDown:i(e.onKeyDown,e=>{"Home"===e.key?(l(e),e.preventDefault()):"End"===e.key?(d(e),e.preventDefault()):v.concat(w).includes(e.key)&&(c(e),e.preventDefault())}),onPointerDown:i(e.onPointerDown,e=>{let t=e.target;t.setPointerCapture(e.pointerId),e.preventDefault(),p.thumbs.has(t)?t.focus():n(e)}),onPointerMove:i(e.onPointerMove,e=>{e.target.hasPointerCapture(e.pointerId)&&a(e)}),onPointerUp:i(e.onPointerUp,e=>{let t=e.target;t.hasPointerCapture(e.pointerId)&&(t.releasePointerCapture(e.pointerId),o(e))})})}),V="SliderTrack",H=n.forwardRef((e,t)=>{let{__scopeSlider:r,...n}=e,a=E(V,r);return(0,u.Y)(m.span,{"data-disabled":a.disabled?"":void 0,"data-orientation":a.orientation,...n,ref:t})});H.displayName=V;var L="SliderRange",N=n.forwardRef((e,t)=>{let{__scopeSlider:r,...a}=e,i=E(L,r),o=_(L,r),l=d(t,n.useRef(null)),c=i.values.length,s=i.values.map(e=>K(e,i.min,i.max)),p=c>1?Math.min(...s):0,f=100-Math.max(...s);return(0,u.Y)(m.span,{"data-orientation":i.orientation,"data-disabled":i.disabled?"":void 0,...a,ref:l,style:{...e.style,[o.startEdge]:p+"%",[o.endEdge]:f+"%"}})});N.displayName=L;var I="SliderThumb",$=n.forwardRef((e,t)=>{let r=A(e.__scopeSlider),[a,i]=n.useState(null),o=d(t,e=>i(e)),l=n.useMemo(()=>a?r().findIndex(e=>e.ref.current===a):-1,[r,a]);return(0,u.Y)(q,{...e,ref:o,index:l})}),q=n.forwardRef((e,t)=>{var r,a,o,l,c;let s,p,{__scopeSlider:h,index:y,name:k,...v}=e,w=E(I,h),g=_(I,h),[M,A]=n.useState(null),x=d(t,e=>A(e)),S=!M||w.form||!!M.closest("form"),R=(0,f.X)(M),D=w.values[y],C=void 0===D?0:K(D,w.min,w.max),z=(r=y,(a=w.values.length)>2?`Value ${r+1} of ${a}`:2===a?["Minimum","Maximum"][r]:void 0),P=R?.[g.size],Y=P?(o=P,l=C,c=g.direction,p=T([0,50],[0,s=o/2]),(s-p(l)*c)*c):0;return n.useEffect(()=>{if(M)return w.thumbs.add(M),()=>{w.thumbs.delete(M)}},[M,w.thumbs]),(0,u.FD)("span",{style:{transform:"var(--radix-slider-thumb-transform)",position:"absolute",[g.startEdge]:`calc(${C}% + ${Y}px)`},children:[(0,u.Y)(b.ItemSlot,{scope:e.__scopeSlider,children:(0,u.Y)(m.span,{role:"slider","aria-label":e["aria-label"]||z,"aria-valuemin":w.min,"aria-valuenow":D,"aria-valuemax":w.max,"aria-orientation":w.orientation,"data-orientation":w.orientation,"data-disabled":w.disabled?"":void 0,tabIndex:w.disabled?void 0:0,...v,ref:x,style:void 0===D?{display:"none"}:e.style,onFocus:i(e.onFocus,()=>{w.valueIndexToChangeRef.current=y})})}),S&&(0,u.Y)(O,{name:k??(w.name?w.name+(w.values.length>1?"[]":""):void 0),form:w.form,value:D},y)]})});$.displayName=I;var O=n.forwardRef(({__scopeSlider:e,value:t,...r},a)=>{let i=n.useRef(null),o=d(i,a),l=(0,p.Z)(t);return n.useEffect(()=>{let e=i.current;if(!e)return;let r=Object.getOwnPropertyDescriptor(window.HTMLInputElement.prototype,"value").set;if(l!==t&&r){let n=new Event("input",{bubbles:!0});r.call(e,t),e.dispatchEvent(n)}},[l,t]),(0,u.Y)(m.input,{style:{display:"none"},...r,ref:o,defaultValue:t})});function K(e,t,r){return a(100/(r-t)*(e-t),[0,100])}function T(e,t){return r=>{if(e[0]===e[1]||t[0]===t[1])return t[0];let n=(t[1]-t[0])/(e[1]-e[0]);return t[0]+n*(r-e[0])}}O.displayName="RadioBubbleInput";var Z=C,U=H,B=N,F=$}}]);