@workflow/web 4.1.0-beta.46 → 4.1.0-beta.47
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/build/client/assets/{entry.client-BjpmGyLC.js → entry.client-BiVEcoV8.js} +1 -1
- package/build/client/assets/{highlighted-body-B3W2YXNL-CCnn-bn-.js → highlighted-body-B3W2YXNL-B2Qjtd6a.js} +1 -1
- package/build/client/assets/{home-ClC-EMyL.js → home-3vHAnkef.js} +1 -1
- package/build/client/assets/{index-DklpUtP3.js → index-BmZS3y7B.js} +13 -13
- package/build/client/assets/manifest-54e6ae64.js +1 -0
- package/build/client/assets/{mermaid-3ZIDBTTL-D95wSBpg.js → mermaid-3ZIDBTTL-BFtRJrXs.js} +3 -3
- package/build/client/assets/root-Qfp_mn5S.js +26 -0
- package/build/client/assets/root-aMfmV5uh.css +1 -0
- package/build/client/assets/{run-detail-Brs1Rm25.js → run-detail-DTTdMaKq.js} +1 -1
- package/build/client/assets/server-build-CiTtikBY.css +1 -0
- package/build/client/assets/{workflow-graph-viewer-BZlGoIt2.js → workflow-graph-viewer-kC8rw29h.js} +1 -1
- package/build/server/assets/{app-oogZ8ZwV.js → app-CnRXtjrV.js} +33 -8
- package/build/server/assets/{highlighted-body-B3W2YXNL-z6TbPMtP.js → highlighted-body-B3W2YXNL-Dbvlczoc.js} +2 -2
- package/build/server/assets/{index-BL4Kw0eA.js → index-DymBv9ds.js} +10 -9
- package/build/server/assets/{mermaid-3ZIDBTTL-XSKOerl0.js → mermaid-3ZIDBTTL-DL0Nr5XO.js} +2 -2
- package/build/server/assets/{server-build-BnrnOzxz.js → server-build-VXKZr6Mi.js} +2264 -229
- package/build/server/assets/{token-Ct_osLcf.js → token-BV_eEV9j.js} +2 -2
- package/build/server/assets/{token-util-DQ6afx9q.js → token-util-ClsVcJbP.js} +2 -2
- package/build/server/index.js +2 -2
- package/package.json +6 -6
- package/build/client/assets/manifest-7a6ad03e.js +0 -1
- package/build/client/assets/root-Dae_xV-y.js +0 -26
- package/build/client/assets/root-DtrAdcW8.css +0 -1
- package/build/client/assets/server-build-8B6V768r.css +0 -1
|
@@ -0,0 +1 @@
|
|
|
1
|
+
window.__reactRouterManifest={"entry":{"module":"/assets/entry.client-BiVEcoV8.js","imports":["/assets/index-BmZS3y7B.js"],"css":[]},"routes":{"root":{"id":"root","path":"","hasAction":true,"hasLoader":true,"hasClientAction":false,"hasClientLoader":false,"hasClientMiddleware":false,"hasDefaultExport":true,"hasErrorBoundary":true,"module":"/assets/root-Qfp_mn5S.js","imports":["/assets/index-BmZS3y7B.js","/assets/mermaid-3ZIDBTTL-BFtRJrXs.js"],"css":["/assets/root-aMfmV5uh.css","/assets/mermaid-3ZIDBTTL-DKxHcEOp.css"]},"routes/home":{"id":"routes/home","parentId":"root","index":true,"hasAction":false,"hasLoader":false,"hasClientAction":false,"hasClientLoader":false,"hasClientMiddleware":false,"hasDefaultExport":true,"hasErrorBoundary":false,"module":"/assets/home-3vHAnkef.js","imports":["/assets/index-BmZS3y7B.js","/assets/workflow-graph-viewer-kC8rw29h.js","/assets/mermaid-3ZIDBTTL-BFtRJrXs.js"],"css":["/assets/workflow-graph-viewer-yls6qlc0.css","/assets/mermaid-3ZIDBTTL-DKxHcEOp.css"]},"routes/run-detail":{"id":"routes/run-detail","parentId":"root","path":"run/:runId","hasAction":false,"hasLoader":false,"hasClientAction":false,"hasClientLoader":false,"hasClientMiddleware":false,"hasDefaultExport":true,"hasErrorBoundary":false,"module":"/assets/run-detail-DTTdMaKq.js","imports":["/assets/index-BmZS3y7B.js","/assets/workflow-graph-viewer-kC8rw29h.js","/assets/mermaid-3ZIDBTTL-BFtRJrXs.js","/assets/encryption-8OvC6eoJ.js"],"css":["/assets/workflow-graph-viewer-yls6qlc0.css","/assets/mermaid-3ZIDBTTL-DKxHcEOp.css"]},"routes/api.rpc":{"id":"routes/api.rpc","parentId":"root","path":"api/rpc","hasAction":true,"hasLoader":true,"hasClientAction":false,"hasClientLoader":false,"hasClientMiddleware":false,"hasDefaultExport":false,"hasErrorBoundary":false,"module":"/assets/api.rpc-l0sNRNKZ.js","imports":[],"css":[]},"routes/api.stream.$streamId":{"id":"routes/api.stream.$streamId","parentId":"root","path":"api/stream/:streamId","hasAction":false,"hasLoader":true,"hasClientAction":false,"hasClientLoader":false,"hasClientMiddleware":false,"hasDefaultExport":false,"hasErrorBoundary":false,"module":"/assets/api.stream._streamId-l0sNRNKZ.js","imports":[],"css":[]}},"url":"/assets/manifest-54e6ae64.js","version":"54e6ae64"};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/highlighted-body-B3W2YXNL-
|
|
2
|
-
var _b=Object.defineProperty;var kb=(e,t,n)=>t in e?_b(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n;var Ve=(e,t,n)=>kb(e,typeof t!="symbol"?t+"":t,n);import{r as x,j as g,f as Tu,D as Kh,R as F,A as Xh,G as Qh}from"./index-DklpUtP3.js";function Xn(e,t,{checkForDefaultPrevented:n=!0}={}){return function(i){if(e==null||e(i),n===!1||!i.defaultPrevented)return t==null?void 0:t(i)}}function jc(e,t){if(typeof e=="function")return e(t);e!=null&&(e.current=t)}function Zh(...e){return t=>{let n=!1;const r=e.map(i=>{const s=jc(i,t);return!n&&typeof s=="function"&&(n=!0),s});if(n)return()=>{for(let i=0;i<r.length;i++){const s=r[i];typeof s=="function"?s():jc(e[i],null)}}}}function Yr(...e){return x.useCallback(Zh(...e),e)}function oM(e,t){const n=x.createContext(t),r=s=>{const{children:a,...o}=s,l=x.useMemo(()=>o,Object.values(o));return g.jsx(n.Provider,{value:l,children:a})};r.displayName=e+"Provider";function i(s){const a=x.useContext(n);if(a)return a;if(t!==void 0)return t;throw new Error(`\`${s}\` must be used within \`${e}\``)}return[r,i]}function Jh(e,t=[]){let n=[];function r(s,a){const o=x.createContext(a),l=n.length;n=[...n,a];const u=c=>{var b;const{scope:h,children:p,...m}=c,E=((b=h==null?void 0:h[e])==null?void 0:b[l])||o,T=x.useMemo(()=>m,Object.values(m));return g.jsx(E.Provider,{value:T,children:p})};u.displayName=s+"Provider";function d(c,h){var E;const p=((E=h==null?void 0:h[e])==null?void 0:E[l])||o,m=x.useContext(p);if(m)return m;if(a!==void 0)return a;throw new Error(`\`${c}\` must be used within \`${s}\``)}return[u,d]}const i=()=>{const s=n.map(a=>x.createContext(a));return function(o){const l=(o==null?void 0:o[e])||s;return x.useMemo(()=>({[`__scope${e}`]:{...o,[e]:l}}),[o,l])}};return i.scopeName=e,[r,wb(i,...t)]}function wb(...e){const t=e[0];if(e.length===1)return t;const n=()=>{const r=e.map(i=>({useScope:i(),scopeName:i.scopeName}));return function(s){const a=r.reduce((o,{useScope:l,scopeName:u})=>{const c=l(s)[`__scope${u}`];return{...o,...c}},{});return x.useMemo(()=>({[`__scope${t.scopeName}`]:a}),[a])}};return n.scopeName=t.scopeName,n}function Cb(e){const t=Ab(e),n=x.forwardRef((r,i)=>{const{children:s,...a}=r,o=x.Children.toArray(s),l=o.find(Ib);if(l){const u=l.props.children,d=o.map(c=>c===l?x.Children.count(u)>1?x.Children.only(null):x.isValidElement(u)?u.props.children:null:c);return g.jsx(t,{...a,ref:i,children:x.isValidElement(u)?x.cloneElement(u,void 0,d):null})}return g.jsx(t,{...a,ref:i,children:s})});return n.displayName=`${e}.Slot`,n}function Ab(e){const t=x.forwardRef((n,r)=>{const{children:i,...s}=n;if(x.isValidElement(i)){const a=Rb(i),o=vb(s,i.props);return i.type!==x.Fragment&&(o.ref=r?Zh(r,a):a),x.cloneElement(i,o)}return x.Children.count(i)>1?x.Children.only(null):null});return t.displayName=`${e}.SlotClone`,t}var ep=Symbol("radix.slottable");function Sb(e){const t=({children:n})=>g.jsx(g.Fragment,{children:n});return t.displayName=`${e}.Slottable`,t.__radixId=ep,t}function Ib(e){return x.isValidElement(e)&&typeof e.type=="function"&&"__radixId"in e.type&&e.type.__radixId===ep}function vb(e,t){const n={...t};for(const r in t){const i=e[r],s=t[r];/^on[A-Z]/.test(r)?i&&s?n[r]=(...o)=>{const l=s(...o);return i(...o),l}:i&&(n[r]=i):r==="style"?n[r]={...i,...s}:r==="className"&&(n[r]=[i,s].filter(Boolean).join(" "))}return{...e,...n}}function Rb(e){var r,i;let t=(r=Object.getOwnPropertyDescriptor(e.props,"ref"))==null?void 0:r.get,n=t&&"isReactWarning"in t&&t.isReactWarning;return n?e.ref:(t=(i=Object.getOwnPropertyDescriptor(e,"ref"))==null?void 0:i.get,n=t&&"isReactWarning"in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}var Nb=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],Gr=Nb.reduce((e,t)=>{const n=Cb(`Primitive.${t}`),r=x.forwardRef((i,s)=>{const{asChild:a,...o}=i,l=a?n:t;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),g.jsx(l,{...o,ref:s})});return r.displayName=`Primitive.${t}`,{...e,[t]:r}},{});function Ob(e,t){e&&Tu.flushSync(()=>e.dispatchEvent(t))}function to(e){const t=x.useRef(e);return x.useEffect(()=>{t.current=e}),x.useMemo(()=>(...n)=>{var r;return(r=t.current)==null?void 0:r.call(t,...n)},[])}function Lb(e,t=globalThis==null?void 0:globalThis.document){const n=to(e);x.useEffect(()=>{const r=i=>{i.key==="Escape"&&n(i)};return t.addEventListener("keydown",r,{capture:!0}),()=>t.removeEventListener("keydown",r,{capture:!0})},[n,t])}var Db="DismissableLayer",Tl="dismissableLayer.update",Pb="dismissableLayer.pointerDownOutside",Mb="dismissableLayer.focusOutside",zc,tp=x.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),np=x.forwardRef((e,t)=>{const{disableOutsidePointerEvents:n=!1,onEscapeKeyDown:r,onPointerDownOutside:i,onFocusOutside:s,onInteractOutside:a,onDismiss:o,...l}=e,u=x.useContext(tp),[d,c]=x.useState(null),h=(d==null?void 0:d.ownerDocument)??(globalThis==null?void 0:globalThis.document),[,p]=x.useState({}),m=Yr(t,A=>c(A)),E=Array.from(u.layers),[T]=[...u.layersWithOutsidePointerEventsDisabled].slice(-1),b=E.indexOf(T),y=d?E.indexOf(d):-1,k=u.layersWithOutsidePointerEventsDisabled.size>0,P=y>=b,D=Hb(A=>{const N=A.target,z=[...u.branches].some(R=>R.contains(N));!P||z||(i==null||i(A),a==null||a(A),A.defaultPrevented||o==null||o())},h),v=Ub(A=>{const N=A.target;[...u.branches].some(R=>R.contains(N))||(s==null||s(A),a==null||a(A),A.defaultPrevented||o==null||o())},h);return Lb(A=>{y===u.layers.size-1&&(r==null||r(A),!A.defaultPrevented&&o&&(A.preventDefault(),o()))},h),x.useEffect(()=>{if(d)return n&&(u.layersWithOutsidePointerEventsDisabled.size===0&&(zc=h.body.style.pointerEvents,h.body.style.pointerEvents="none"),u.layersWithOutsidePointerEventsDisabled.add(d)),u.layers.add(d),$c(),()=>{n&&u.layersWithOutsidePointerEventsDisabled.size===1&&(h.body.style.pointerEvents=zc)}},[d,h,n,u]),x.useEffect(()=>()=>{d&&(u.layers.delete(d),u.layersWithOutsidePointerEventsDisabled.delete(d),$c())},[d,u]),x.useEffect(()=>{const A=()=>p({});return document.addEventListener(Tl,A),()=>document.removeEventListener(Tl,A)},[]),g.jsx(Gr.div,{...l,ref:m,style:{pointerEvents:k?P?"auto":"none":void 0,...e.style},onFocusCapture:Xn(e.onFocusCapture,v.onFocusCapture),onBlurCapture:Xn(e.onBlurCapture,v.onBlurCapture),onPointerDownCapture:Xn(e.onPointerDownCapture,D.onPointerDownCapture)})});np.displayName=Db;var Bb="DismissableLayerBranch",Fb=x.forwardRef((e,t)=>{const n=x.useContext(tp),r=x.useRef(null),i=Yr(t,r);return x.useEffect(()=>{const s=r.current;if(s)return n.branches.add(s),()=>{n.branches.delete(s)}},[n.branches]),g.jsx(Gr.div,{...e,ref:i})});Fb.displayName=Bb;function Hb(e,t=globalThis==null?void 0:globalThis.document){const n=to(e),r=x.useRef(!1),i=x.useRef(()=>{});return x.useEffect(()=>{const s=o=>{if(o.target&&!r.current){let l=function(){rp(Pb,n,u,{discrete:!0})};const u={originalEvent:o};o.pointerType==="touch"?(t.removeEventListener("click",i.current),i.current=l,t.addEventListener("click",i.current,{once:!0})):l()}else t.removeEventListener("click",i.current);r.current=!1},a=window.setTimeout(()=>{t.addEventListener("pointerdown",s)},0);return()=>{window.clearTimeout(a),t.removeEventListener("pointerdown",s),t.removeEventListener("click",i.current)}},[t,n]),{onPointerDownCapture:()=>r.current=!0}}function Ub(e,t=globalThis==null?void 0:globalThis.document){const n=to(e),r=x.useRef(!1);return x.useEffect(()=>{const i=s=>{s.target&&!r.current&&rp(Mb,n,{originalEvent:s},{discrete:!1})};return t.addEventListener("focusin",i),()=>t.removeEventListener("focusin",i)},[t,n]),{onFocusCapture:()=>r.current=!0,onBlurCapture:()=>r.current=!1}}function $c(){const e=new CustomEvent(Tl);document.dispatchEvent(e)}function rp(e,t,n,{discrete:r}){const i=n.originalEvent.target,s=new CustomEvent(e,{bubbles:!1,cancelable:!0,detail:n});t&&i.addEventListener(e,t,{once:!0}),r?Ob(i,s):i.dispatchEvent(s)}var Hr=globalThis!=null&&globalThis.document?x.useLayoutEffect:()=>{},jb=Kh[" useId ".trim().toString()]||(()=>{}),zb=0;function $b(e){const[t,n]=x.useState(jb());return Hr(()=>{n(r=>r??String(zb++))},[e]),t?`radix-${t}`:""}const Vb=["top","right","bottom","left"],mr=Math.min,nn=Math.max,La=Math.round,ea=Math.floor,jn=e=>({x:e,y:e}),Wb={left:"right",right:"left",bottom:"top",top:"bottom"},Yb={start:"end",end:"start"};function xl(e,t,n){return nn(e,mr(t,n))}function Jn(e,t){return typeof e=="function"?e(t):e}function er(e){return e.split("-")[0]}function ki(e){return e.split("-")[1]}function xu(e){return e==="x"?"y":"x"}function yu(e){return e==="y"?"height":"width"}const Gb=new Set(["top","bottom"]);function Hn(e){return Gb.has(er(e))?"y":"x"}function _u(e){return xu(Hn(e))}function qb(e,t,n){n===void 0&&(n=!1);const r=ki(e),i=_u(e),s=yu(i);let a=i==="x"?r===(n?"end":"start")?"right":"left":r==="start"?"bottom":"top";return t.reference[s]>t.floating[s]&&(a=Da(a)),[a,Da(a)]}function Kb(e){const t=Da(e);return[yl(e),t,yl(t)]}function yl(e){return e.replace(/start|end/g,t=>Yb[t])}const Vc=["left","right"],Wc=["right","left"],Xb=["top","bottom"],Qb=["bottom","top"];function Zb(e,t,n){switch(e){case"top":case"bottom":return n?t?Wc:Vc:t?Vc:Wc;case"left":case"right":return t?Xb:Qb;default:return[]}}function Jb(e,t,n,r){const i=ki(e);let s=Zb(er(e),n==="start",r);return i&&(s=s.map(a=>a+"-"+i),t&&(s=s.concat(s.map(yl)))),s}function Da(e){return e.replace(/left|right|bottom|top/g,t=>Wb[t])}function eE(e){return{top:0,right:0,bottom:0,left:0,...e}}function ip(e){return typeof e!="number"?eE(e):{top:e,right:e,bottom:e,left:e}}function Pa(e){const{x:t,y:n,width:r,height:i}=e;return{width:r,height:i,top:n,left:t,right:t+r,bottom:n+i,x:t,y:n}}function Yc(e,t,n){let{reference:r,floating:i}=e;const s=Hn(t),a=_u(t),o=yu(a),l=er(t),u=s==="y",d=r.x+r.width/2-i.width/2,c=r.y+r.height/2-i.height/2,h=r[o]/2-i[o]/2;let p;switch(l){case"top":p={x:d,y:r.y-i.height};break;case"bottom":p={x:d,y:r.y+r.height};break;case"right":p={x:r.x+r.width,y:c};break;case"left":p={x:r.x-i.width,y:c};break;default:p={x:r.x,y:r.y}}switch(ki(t)){case"start":p[a]-=h*(n&&u?-1:1);break;case"end":p[a]+=h*(n&&u?-1:1);break}return p}const tE=async(e,t,n)=>{const{placement:r="bottom",strategy:i="absolute",middleware:s=[],platform:a}=n,o=s.filter(Boolean),l=await(a.isRTL==null?void 0:a.isRTL(t));let u=await a.getElementRects({reference:e,floating:t,strategy:i}),{x:d,y:c}=Yc(u,r,l),h=r,p={},m=0;for(let E=0;E<o.length;E++){const{name:T,fn:b}=o[E],{x:y,y:k,data:P,reset:D}=await b({x:d,y:c,initialPlacement:r,placement:h,strategy:i,middlewareData:p,rects:u,platform:a,elements:{reference:e,floating:t}});d=y??d,c=k??c,p={...p,[T]:{...p[T],...P}},D&&m<=50&&(m++,typeof D=="object"&&(D.placement&&(h=D.placement),D.rects&&(u=D.rects===!0?await a.getElementRects({reference:e,floating:t,strategy:i}):D.rects),{x:d,y:c}=Yc(u,h,l)),E=-1)}return{x:d,y:c,placement:h,strategy:i,middlewareData:p}};async function fs(e,t){var n;t===void 0&&(t={});const{x:r,y:i,platform:s,rects:a,elements:o,strategy:l}=e,{boundary:u="clippingAncestors",rootBoundary:d="viewport",elementContext:c="floating",altBoundary:h=!1,padding:p=0}=Jn(t,e),m=ip(p),T=o[h?c==="floating"?"reference":"floating":c],b=Pa(await s.getClippingRect({element:(n=await(s.isElement==null?void 0:s.isElement(T)))==null||n?T:T.contextElement||await(s.getDocumentElement==null?void 0:s.getDocumentElement(o.floating)),boundary:u,rootBoundary:d,strategy:l})),y=c==="floating"?{x:r,y:i,width:a.floating.width,height:a.floating.height}:a.reference,k=await(s.getOffsetParent==null?void 0:s.getOffsetParent(o.floating)),P=await(s.isElement==null?void 0:s.isElement(k))?await(s.getScale==null?void 0:s.getScale(k))||{x:1,y:1}:{x:1,y:1},D=Pa(s.convertOffsetParentRelativeRectToViewportRelativeRect?await s.convertOffsetParentRelativeRectToViewportRelativeRect({elements:o,rect:y,offsetParent:k,strategy:l}):y);return{top:(b.top-D.top+m.top)/P.y,bottom:(D.bottom-b.bottom+m.bottom)/P.y,left:(b.left-D.left+m.left)/P.x,right:(D.right-b.right+m.right)/P.x}}const nE=e=>({name:"arrow",options:e,async fn(t){const{x:n,y:r,placement:i,rects:s,platform:a,elements:o,middlewareData:l}=t,{element:u,padding:d=0}=Jn(e,t)||{};if(u==null)return{};const c=ip(d),h={x:n,y:r},p=_u(i),m=yu(p),E=await a.getDimensions(u),T=p==="y",b=T?"top":"left",y=T?"bottom":"right",k=T?"clientHeight":"clientWidth",P=s.reference[m]+s.reference[p]-h[p]-s.floating[m],D=h[p]-s.reference[p],v=await(a.getOffsetParent==null?void 0:a.getOffsetParent(u));let A=v?v[k]:0;(!A||!await(a.isElement==null?void 0:a.isElement(v)))&&(A=o.floating[k]||s.floating[m]);const N=P/2-D/2,z=A/2-E[m]/2-1,R=mr(c[b],z),W=mr(c[y],z),j=R,w=A-E[m]-W,L=A/2-E[m]/2+N,M=xl(j,L,w),H=!l.arrow&&ki(i)!=null&&L!==M&&s.reference[m]/2-(L<j?R:W)-E[m]/2<0,U=H?L<j?L-j:L-w:0;return{[p]:h[p]+U,data:{[p]:M,centerOffset:L-M-U,...H&&{alignmentOffset:U}},reset:H}}}),rE=function(e){return e===void 0&&(e={}),{name:"flip",options:e,async fn(t){var n,r;const{placement:i,middlewareData:s,rects:a,initialPlacement:o,platform:l,elements:u}=t,{mainAxis:d=!0,crossAxis:c=!0,fallbackPlacements:h,fallbackStrategy:p="bestFit",fallbackAxisSideDirection:m="none",flipAlignment:E=!0,...T}=Jn(e,t);if((n=s.arrow)!=null&&n.alignmentOffset)return{};const b=er(i),y=Hn(o),k=er(o)===o,P=await(l.isRTL==null?void 0:l.isRTL(u.floating)),D=h||(k||!E?[Da(o)]:Kb(o)),v=m!=="none";!h&&v&&D.push(...Jb(o,E,m,P));const A=[o,...D],N=await fs(t,T),z=[];let R=((r=s.flip)==null?void 0:r.overflows)||[];if(d&&z.push(N[b]),c){const L=qb(i,a,P);z.push(N[L[0]],N[L[1]])}if(R=[...R,{placement:i,overflows:z}],!z.every(L=>L<=0)){var W,j;const L=(((W=s.flip)==null?void 0:W.index)||0)+1,M=A[L];if(M&&(!(c==="alignment"?y!==Hn(M):!1)||R.every(G=>Hn(G.placement)===y?G.overflows[0]>0:!0)))return{data:{index:L,overflows:R},reset:{placement:M}};let H=(j=R.filter(U=>U.overflows[0]<=0).sort((U,G)=>U.overflows[1]-G.overflows[1])[0])==null?void 0:j.placement;if(!H)switch(p){case"bestFit":{var w;const U=(w=R.filter(G=>{if(v){const Q=Hn(G.placement);return Q===y||Q==="y"}return!0}).map(G=>[G.placement,G.overflows.filter(Q=>Q>0).reduce((Q,_)=>Q+_,0)]).sort((G,Q)=>G[1]-Q[1])[0])==null?void 0:w[0];U&&(H=U);break}case"initialPlacement":H=o;break}if(i!==H)return{reset:{placement:H}}}return{}}}};function Gc(e,t){return{top:e.top-t.height,right:e.right-t.width,bottom:e.bottom-t.height,left:e.left-t.width}}function qc(e){return Vb.some(t=>e[t]>=0)}const iE=function(e){return e===void 0&&(e={}),{name:"hide",options:e,async fn(t){const{rects:n}=t,{strategy:r="referenceHidden",...i}=Jn(e,t);switch(r){case"referenceHidden":{const s=await fs(t,{...i,elementContext:"reference"}),a=Gc(s,n.reference);return{data:{referenceHiddenOffsets:a,referenceHidden:qc(a)}}}case"escaped":{const s=await fs(t,{...i,altBoundary:!0}),a=Gc(s,n.floating);return{data:{escapedOffsets:a,escaped:qc(a)}}}default:return{}}}}},sp=new Set(["left","top"]);async function sE(e,t){const{placement:n,platform:r,elements:i}=e,s=await(r.isRTL==null?void 0:r.isRTL(i.floating)),a=er(n),o=ki(n),l=Hn(n)==="y",u=sp.has(a)?-1:1,d=s&&l?-1:1,c=Jn(t,e);let{mainAxis:h,crossAxis:p,alignmentAxis:m}=typeof c=="number"?{mainAxis:c,crossAxis:0,alignmentAxis:null}:{mainAxis:c.mainAxis||0,crossAxis:c.crossAxis||0,alignmentAxis:c.alignmentAxis};return o&&typeof m=="number"&&(p=o==="end"?m*-1:m),l?{x:p*d,y:h*u}:{x:h*u,y:p*d}}const aE=function(e){return e===void 0&&(e=0),{name:"offset",options:e,async fn(t){var n,r;const{x:i,y:s,placement:a,middlewareData:o}=t,l=await sE(t,e);return a===((n=o.offset)==null?void 0:n.placement)&&(r=o.arrow)!=null&&r.alignmentOffset?{}:{x:i+l.x,y:s+l.y,data:{...l,placement:a}}}}},oE=function(e){return e===void 0&&(e={}),{name:"shift",options:e,async fn(t){const{x:n,y:r,placement:i}=t,{mainAxis:s=!0,crossAxis:a=!1,limiter:o={fn:T=>{let{x:b,y}=T;return{x:b,y}}},...l}=Jn(e,t),u={x:n,y:r},d=await fs(t,l),c=Hn(er(i)),h=xu(c);let p=u[h],m=u[c];if(s){const T=h==="y"?"top":"left",b=h==="y"?"bottom":"right",y=p+d[T],k=p-d[b];p=xl(y,p,k)}if(a){const T=c==="y"?"top":"left",b=c==="y"?"bottom":"right",y=m+d[T],k=m-d[b];m=xl(y,m,k)}const E=o.fn({...t,[h]:p,[c]:m});return{...E,data:{x:E.x-n,y:E.y-r,enabled:{[h]:s,[c]:a}}}}}},lE=function(e){return e===void 0&&(e={}),{options:e,fn(t){const{x:n,y:r,placement:i,rects:s,middlewareData:a}=t,{offset:o=0,mainAxis:l=!0,crossAxis:u=!0}=Jn(e,t),d={x:n,y:r},c=Hn(i),h=xu(c);let p=d[h],m=d[c];const E=Jn(o,t),T=typeof E=="number"?{mainAxis:E,crossAxis:0}:{mainAxis:0,crossAxis:0,...E};if(l){const k=h==="y"?"height":"width",P=s.reference[h]-s.floating[k]+T.mainAxis,D=s.reference[h]+s.reference[k]-T.mainAxis;p<P?p=P:p>D&&(p=D)}if(u){var b,y;const k=h==="y"?"width":"height",P=sp.has(er(i)),D=s.reference[c]-s.floating[k]+(P&&((b=a.offset)==null?void 0:b[c])||0)+(P?0:T.crossAxis),v=s.reference[c]+s.reference[k]+(P?0:((y=a.offset)==null?void 0:y[c])||0)-(P?T.crossAxis:0);m<D?m=D:m>v&&(m=v)}return{[h]:p,[c]:m}}}},uE=function(e){return e===void 0&&(e={}),{name:"size",options:e,async fn(t){var n,r;const{placement:i,rects:s,platform:a,elements:o}=t,{apply:l=()=>{},...u}=Jn(e,t),d=await fs(t,u),c=er(i),h=ki(i),p=Hn(i)==="y",{width:m,height:E}=s.floating;let T,b;c==="top"||c==="bottom"?(T=c,b=h===(await(a.isRTL==null?void 0:a.isRTL(o.floating))?"start":"end")?"left":"right"):(b=c,T=h==="end"?"top":"bottom");const y=E-d.top-d.bottom,k=m-d.left-d.right,P=mr(E-d[T],y),D=mr(m-d[b],k),v=!t.middlewareData.shift;let A=P,N=D;if((n=t.middlewareData.shift)!=null&&n.enabled.x&&(N=k),(r=t.middlewareData.shift)!=null&&r.enabled.y&&(A=y),v&&!h){const R=nn(d.left,0),W=nn(d.right,0),j=nn(d.top,0),w=nn(d.bottom,0);p?N=m-2*(R!==0||W!==0?R+W:nn(d.left,d.right)):A=E-2*(j!==0||w!==0?j+w:nn(d.top,d.bottom))}await l({...t,availableWidth:N,availableHeight:A});const z=await a.getDimensions(o.floating);return m!==z.width||E!==z.height?{reset:{rects:!0}}:{}}}};function no(){return typeof window<"u"}function wi(e){return ap(e)?(e.nodeName||"").toLowerCase():"#document"}function an(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function $n(e){var t;return(t=(ap(e)?e.ownerDocument:e.document)||window.document)==null?void 0:t.documentElement}function ap(e){return no()?e instanceof Node||e instanceof an(e).Node:!1}function In(e){return no()?e instanceof Element||e instanceof an(e).Element:!1}function zn(e){return no()?e instanceof HTMLElement||e instanceof an(e).HTMLElement:!1}function Kc(e){return!no()||typeof ShadowRoot>"u"?!1:e instanceof ShadowRoot||e instanceof an(e).ShadowRoot}const cE=new Set(["inline","contents"]);function Ps(e){const{overflow:t,overflowX:n,overflowY:r,display:i}=vn(e);return/auto|scroll|overlay|hidden|clip/.test(t+r+n)&&!cE.has(i)}const dE=new Set(["table","td","th"]);function fE(e){return dE.has(wi(e))}const hE=[":popover-open",":modal"];function ro(e){return hE.some(t=>{try{return e.matches(t)}catch{return!1}})}const pE=["transform","translate","scale","rotate","perspective"],mE=["transform","translate","scale","rotate","perspective","filter"],gE=["paint","layout","strict","content"];function ku(e){const t=wu(),n=In(e)?vn(e):e;return pE.some(r=>n[r]?n[r]!=="none":!1)||(n.containerType?n.containerType!=="normal":!1)||!t&&(n.backdropFilter?n.backdropFilter!=="none":!1)||!t&&(n.filter?n.filter!=="none":!1)||mE.some(r=>(n.willChange||"").includes(r))||gE.some(r=>(n.contain||"").includes(r))}function bE(e){let t=gr(e);for(;zn(t)&&!Ei(t);){if(ku(t))return t;if(ro(t))return null;t=gr(t)}return null}function wu(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}const EE=new Set(["html","body","#document"]);function Ei(e){return EE.has(wi(e))}function vn(e){return an(e).getComputedStyle(e)}function io(e){return In(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function gr(e){if(wi(e)==="html")return e;const t=e.assignedSlot||e.parentNode||Kc(e)&&e.host||$n(e);return Kc(t)?t.host:t}function op(e){const t=gr(e);return Ei(t)?e.ownerDocument?e.ownerDocument.body:e.body:zn(t)&&Ps(t)?t:op(t)}function hs(e,t,n){var r;t===void 0&&(t=[]),n===void 0&&(n=!0);const i=op(e),s=i===((r=e.ownerDocument)==null?void 0:r.body),a=an(i);if(s){const o=_l(a);return t.concat(a,a.visualViewport||[],Ps(i)?i:[],o&&n?hs(o):[])}return t.concat(i,hs(i,[],n))}function _l(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function lp(e){const t=vn(e);let n=parseFloat(t.width)||0,r=parseFloat(t.height)||0;const i=zn(e),s=i?e.offsetWidth:n,a=i?e.offsetHeight:r,o=La(n)!==s||La(r)!==a;return o&&(n=s,r=a),{width:n,height:r,$:o}}function Cu(e){return In(e)?e:e.contextElement}function fi(e){const t=Cu(e);if(!zn(t))return jn(1);const n=t.getBoundingClientRect(),{width:r,height:i,$:s}=lp(t);let a=(s?La(n.width):n.width)/r,o=(s?La(n.height):n.height)/i;return(!a||!Number.isFinite(a))&&(a=1),(!o||!Number.isFinite(o))&&(o=1),{x:a,y:o}}const TE=jn(0);function up(e){const t=an(e);return!wu()||!t.visualViewport?TE:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function xE(e,t,n){return t===void 0&&(t=!1),!n||t&&n!==an(e)?!1:t}function Ur(e,t,n,r){t===void 0&&(t=!1),n===void 0&&(n=!1);const i=e.getBoundingClientRect(),s=Cu(e);let a=jn(1);t&&(r?In(r)&&(a=fi(r)):a=fi(e));const o=xE(s,n,r)?up(s):jn(0);let l=(i.left+o.x)/a.x,u=(i.top+o.y)/a.y,d=i.width/a.x,c=i.height/a.y;if(s){const h=an(s),p=r&&In(r)?an(r):r;let m=h,E=_l(m);for(;E&&r&&p!==m;){const T=fi(E),b=E.getBoundingClientRect(),y=vn(E),k=b.left+(E.clientLeft+parseFloat(y.paddingLeft))*T.x,P=b.top+(E.clientTop+parseFloat(y.paddingTop))*T.y;l*=T.x,u*=T.y,d*=T.x,c*=T.y,l+=k,u+=P,m=an(E),E=_l(m)}}return Pa({width:d,height:c,x:l,y:u})}function so(e,t){const n=io(e).scrollLeft;return t?t.left+n:Ur($n(e)).left+n}function cp(e,t){const n=e.getBoundingClientRect(),r=n.left+t.scrollLeft-so(e,n),i=n.top+t.scrollTop;return{x:r,y:i}}function yE(e){let{elements:t,rect:n,offsetParent:r,strategy:i}=e;const s=i==="fixed",a=$n(r),o=t?ro(t.floating):!1;if(r===a||o&&s)return n;let l={scrollLeft:0,scrollTop:0},u=jn(1);const d=jn(0),c=zn(r);if((c||!c&&!s)&&((wi(r)!=="body"||Ps(a))&&(l=io(r)),zn(r))){const p=Ur(r);u=fi(r),d.x=p.x+r.clientLeft,d.y=p.y+r.clientTop}const h=a&&!c&&!s?cp(a,l):jn(0);return{width:n.width*u.x,height:n.height*u.y,x:n.x*u.x-l.scrollLeft*u.x+d.x+h.x,y:n.y*u.y-l.scrollTop*u.y+d.y+h.y}}function _E(e){return Array.from(e.getClientRects())}function kE(e){const t=$n(e),n=io(e),r=e.ownerDocument.body,i=nn(t.scrollWidth,t.clientWidth,r.scrollWidth,r.clientWidth),s=nn(t.scrollHeight,t.clientHeight,r.scrollHeight,r.clientHeight);let a=-n.scrollLeft+so(e);const o=-n.scrollTop;return vn(r).direction==="rtl"&&(a+=nn(t.clientWidth,r.clientWidth)-i),{width:i,height:s,x:a,y:o}}const Xc=25;function wE(e,t){const n=an(e),r=$n(e),i=n.visualViewport;let s=r.clientWidth,a=r.clientHeight,o=0,l=0;if(i){s=i.width,a=i.height;const d=wu();(!d||d&&t==="fixed")&&(o=i.offsetLeft,l=i.offsetTop)}const u=so(r);if(u<=0){const d=r.ownerDocument,c=d.body,h=getComputedStyle(c),p=d.compatMode==="CSS1Compat"&&parseFloat(h.marginLeft)+parseFloat(h.marginRight)||0,m=Math.abs(r.clientWidth-c.clientWidth-p);m<=Xc&&(s-=m)}else u<=Xc&&(s+=u);return{width:s,height:a,x:o,y:l}}const CE=new Set(["absolute","fixed"]);function AE(e,t){const n=Ur(e,!0,t==="fixed"),r=n.top+e.clientTop,i=n.left+e.clientLeft,s=zn(e)?fi(e):jn(1),a=e.clientWidth*s.x,o=e.clientHeight*s.y,l=i*s.x,u=r*s.y;return{width:a,height:o,x:l,y:u}}function Qc(e,t,n){let r;if(t==="viewport")r=wE(e,n);else if(t==="document")r=kE($n(e));else if(In(t))r=AE(t,n);else{const i=up(e);r={x:t.x-i.x,y:t.y-i.y,width:t.width,height:t.height}}return Pa(r)}function dp(e,t){const n=gr(e);return n===t||!In(n)||Ei(n)?!1:vn(n).position==="fixed"||dp(n,t)}function SE(e,t){const n=t.get(e);if(n)return n;let r=hs(e,[],!1).filter(o=>In(o)&&wi(o)!=="body"),i=null;const s=vn(e).position==="fixed";let a=s?gr(e):e;for(;In(a)&&!Ei(a);){const o=vn(a),l=ku(a);!l&&o.position==="fixed"&&(i=null),(s?!l&&!i:!l&&o.position==="static"&&!!i&&CE.has(i.position)||Ps(a)&&!l&&dp(e,a))?r=r.filter(d=>d!==a):i=o,a=gr(a)}return t.set(e,r),r}function IE(e){let{element:t,boundary:n,rootBoundary:r,strategy:i}=e;const a=[...n==="clippingAncestors"?ro(t)?[]:SE(t,this._c):[].concat(n),r],o=a[0],l=a.reduce((u,d)=>{const c=Qc(t,d,i);return u.top=nn(c.top,u.top),u.right=mr(c.right,u.right),u.bottom=mr(c.bottom,u.bottom),u.left=nn(c.left,u.left),u},Qc(t,o,i));return{width:l.right-l.left,height:l.bottom-l.top,x:l.left,y:l.top}}function vE(e){const{width:t,height:n}=lp(e);return{width:t,height:n}}function RE(e,t,n){const r=zn(t),i=$n(t),s=n==="fixed",a=Ur(e,!0,s,t);let o={scrollLeft:0,scrollTop:0};const l=jn(0);function u(){l.x=so(i)}if(r||!r&&!s)if((wi(t)!=="body"||Ps(i))&&(o=io(t)),r){const p=Ur(t,!0,s,t);l.x=p.x+t.clientLeft,l.y=p.y+t.clientTop}else i&&u();s&&!r&&i&&u();const d=i&&!r&&!s?cp(i,o):jn(0),c=a.left+o.scrollLeft-l.x-d.x,h=a.top+o.scrollTop-l.y-d.y;return{x:c,y:h,width:a.width,height:a.height}}function Do(e){return vn(e).position==="static"}function Zc(e,t){if(!zn(e)||vn(e).position==="fixed")return null;if(t)return t(e);let n=e.offsetParent;return $n(e)===n&&(n=n.ownerDocument.body),n}function fp(e,t){const n=an(e);if(ro(e))return n;if(!zn(e)){let i=gr(e);for(;i&&!Ei(i);){if(In(i)&&!Do(i))return i;i=gr(i)}return n}let r=Zc(e,t);for(;r&&fE(r)&&Do(r);)r=Zc(r,t);return r&&Ei(r)&&Do(r)&&!ku(r)?n:r||bE(e)||n}const NE=async function(e){const t=this.getOffsetParent||fp,n=this.getDimensions,r=await n(e.floating);return{reference:RE(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:r.width,height:r.height}}};function OE(e){return vn(e).direction==="rtl"}const LE={convertOffsetParentRelativeRectToViewportRelativeRect:yE,getDocumentElement:$n,getClippingRect:IE,getOffsetParent:fp,getElementRects:NE,getClientRects:_E,getDimensions:vE,getScale:fi,isElement:In,isRTL:OE};function hp(e,t){return e.x===t.x&&e.y===t.y&&e.width===t.width&&e.height===t.height}function DE(e,t){let n=null,r;const i=$n(e);function s(){var o;clearTimeout(r),(o=n)==null||o.disconnect(),n=null}function a(o,l){o===void 0&&(o=!1),l===void 0&&(l=1),s();const u=e.getBoundingClientRect(),{left:d,top:c,width:h,height:p}=u;if(o||t(),!h||!p)return;const m=ea(c),E=ea(i.clientWidth-(d+h)),T=ea(i.clientHeight-(c+p)),b=ea(d),k={rootMargin:-m+"px "+-E+"px "+-T+"px "+-b+"px",threshold:nn(0,mr(1,l))||1};let P=!0;function D(v){const A=v[0].intersectionRatio;if(A!==l){if(!P)return a();A?a(!1,A):r=setTimeout(()=>{a(!1,1e-7)},1e3)}A===1&&!hp(u,e.getBoundingClientRect())&&a(),P=!1}try{n=new IntersectionObserver(D,{...k,root:i.ownerDocument})}catch{n=new IntersectionObserver(D,k)}n.observe(e)}return a(!0),s}function PE(e,t,n,r){r===void 0&&(r={});const{ancestorScroll:i=!0,ancestorResize:s=!0,elementResize:a=typeof ResizeObserver=="function",layoutShift:o=typeof IntersectionObserver=="function",animationFrame:l=!1}=r,u=Cu(e),d=i||s?[...u?hs(u):[],...hs(t)]:[];d.forEach(b=>{i&&b.addEventListener("scroll",n,{passive:!0}),s&&b.addEventListener("resize",n)});const c=u&&o?DE(u,n):null;let h=-1,p=null;a&&(p=new ResizeObserver(b=>{let[y]=b;y&&y.target===u&&p&&(p.unobserve(t),cancelAnimationFrame(h),h=requestAnimationFrame(()=>{var k;(k=p)==null||k.observe(t)})),n()}),u&&!l&&p.observe(u),p.observe(t));let m,E=l?Ur(e):null;l&&T();function T(){const b=Ur(e);E&&!hp(E,b)&&n(),E=b,m=requestAnimationFrame(T)}return n(),()=>{var b;d.forEach(y=>{i&&y.removeEventListener("scroll",n),s&&y.removeEventListener("resize",n)}),c==null||c(),(b=p)==null||b.disconnect(),p=null,l&&cancelAnimationFrame(m)}}const ME=aE,BE=oE,FE=rE,HE=uE,UE=iE,Jc=nE,jE=lE,zE=(e,t,n)=>{const r=new Map,i={platform:LE,...n},s={...i.platform,_c:r};return tE(e,t,{...i,platform:s})};var $E=typeof document<"u",VE=function(){},xa=$E?x.useLayoutEffect:VE;function Ma(e,t){if(e===t)return!0;if(typeof e!=typeof t)return!1;if(typeof e=="function"&&e.toString()===t.toString())return!0;let n,r,i;if(e&&t&&typeof e=="object"){if(Array.isArray(e)){if(n=e.length,n!==t.length)return!1;for(r=n;r--!==0;)if(!Ma(e[r],t[r]))return!1;return!0}if(i=Object.keys(e),n=i.length,n!==Object.keys(t).length)return!1;for(r=n;r--!==0;)if(!{}.hasOwnProperty.call(t,i[r]))return!1;for(r=n;r--!==0;){const s=i[r];if(!(s==="_owner"&&e.$$typeof)&&!Ma(e[s],t[s]))return!1}return!0}return e!==e&&t!==t}function pp(e){return typeof window>"u"?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function ed(e,t){const n=pp(e);return Math.round(t*n)/n}function Po(e){const t=x.useRef(e);return xa(()=>{t.current=e}),t}function WE(e){e===void 0&&(e={});const{placement:t="bottom",strategy:n="absolute",middleware:r=[],platform:i,elements:{reference:s,floating:a}={},transform:o=!0,whileElementsMounted:l,open:u}=e,[d,c]=x.useState({x:0,y:0,strategy:n,placement:t,middlewareData:{},isPositioned:!1}),[h,p]=x.useState(r);Ma(h,r)||p(r);const[m,E]=x.useState(null),[T,b]=x.useState(null),y=x.useCallback(G=>{G!==v.current&&(v.current=G,E(G))},[]),k=x.useCallback(G=>{G!==A.current&&(A.current=G,b(G))},[]),P=s||m,D=a||T,v=x.useRef(null),A=x.useRef(null),N=x.useRef(d),z=l!=null,R=Po(l),W=Po(i),j=Po(u),w=x.useCallback(()=>{if(!v.current||!A.current)return;const G={placement:t,strategy:n,middleware:h};W.current&&(G.platform=W.current),zE(v.current,A.current,G).then(Q=>{const _={...Q,isPositioned:j.current!==!1};L.current&&!Ma(N.current,_)&&(N.current=_,Tu.flushSync(()=>{c(_)}))})},[h,t,n,W,j]);xa(()=>{u===!1&&N.current.isPositioned&&(N.current.isPositioned=!1,c(G=>({...G,isPositioned:!1})))},[u]);const L=x.useRef(!1);xa(()=>(L.current=!0,()=>{L.current=!1}),[]),xa(()=>{if(P&&(v.current=P),D&&(A.current=D),P&&D){if(R.current)return R.current(P,D,w);w()}},[P,D,w,R,z]);const M=x.useMemo(()=>({reference:v,floating:A,setReference:y,setFloating:k}),[y,k]),H=x.useMemo(()=>({reference:P,floating:D}),[P,D]),U=x.useMemo(()=>{const G={position:n,left:0,top:0};if(!H.floating)return G;const Q=ed(H.floating,d.x),_=ed(H.floating,d.y);return o?{...G,transform:"translate("+Q+"px, "+_+"px)",...pp(H.floating)>=1.5&&{willChange:"transform"}}:{position:n,left:Q,top:_}},[n,o,H.floating,d.x,d.y]);return x.useMemo(()=>({...d,update:w,refs:M,elements:H,floatingStyles:U}),[d,w,M,H,U])}const YE=e=>{function t(n){return{}.hasOwnProperty.call(n,"current")}return{name:"arrow",options:e,fn(n){const{element:r,padding:i}=typeof e=="function"?e(n):e;return r&&t(r)?r.current!=null?Jc({element:r.current,padding:i}).fn(n):{}:r?Jc({element:r,padding:i}).fn(n):{}}}},GE=(e,t)=>({...ME(e),options:[e,t]}),qE=(e,t)=>({...BE(e),options:[e,t]}),KE=(e,t)=>({...jE(e),options:[e,t]}),XE=(e,t)=>({...FE(e),options:[e,t]}),QE=(e,t)=>({...HE(e),options:[e,t]}),ZE=(e,t)=>({...UE(e),options:[e,t]}),JE=(e,t)=>({...YE(e),options:[e,t]});var eT="Arrow",mp=x.forwardRef((e,t)=>{const{children:n,width:r=10,height:i=5,...s}=e;return g.jsx(Gr.svg,{...s,ref:t,width:r,height:i,viewBox:"0 0 30 10",preserveAspectRatio:"none",children:e.asChild?n:g.jsx("polygon",{points:"0,0 30,0 15,10"})})});mp.displayName=eT;var tT=mp;function nT(e){const[t,n]=x.useState(void 0);return Hr(()=>{if(e){n({width:e.offsetWidth,height:e.offsetHeight});const r=new ResizeObserver(i=>{if(!Array.isArray(i)||!i.length)return;const s=i[0];let a,o;if("borderBoxSize"in s){const l=s.borderBoxSize,u=Array.isArray(l)?l[0]:l;a=u.inlineSize,o=u.blockSize}else a=e.offsetWidth,o=e.offsetHeight;n({width:a,height:o})});return r.observe(e,{box:"border-box"}),()=>r.unobserve(e)}else n(void 0)},[e]),t}var Au="Popper",[gp,bp]=Jh(Au),[rT,Ep]=gp(Au),Tp=e=>{const{__scopePopper:t,children:n}=e,[r,i]=x.useState(null);return g.jsx(rT,{scope:t,anchor:r,onAnchorChange:i,children:n})};Tp.displayName=Au;var xp="PopperAnchor",yp=x.forwardRef((e,t)=>{const{__scopePopper:n,virtualRef:r,...i}=e,s=Ep(xp,n),a=x.useRef(null),o=Yr(t,a),l=x.useRef(null);return x.useEffect(()=>{const u=l.current;l.current=(r==null?void 0:r.current)||a.current,u!==l.current&&s.onAnchorChange(l.current)}),r?null:g.jsx(Gr.div,{...i,ref:o})});yp.displayName=xp;var Su="PopperContent",[iT,sT]=gp(Su),_p=x.forwardRef((e,t)=>{var qe,X,ue,ke,Me,Ke;const{__scopePopper:n,side:r="bottom",sideOffset:i=0,align:s="center",alignOffset:a=0,arrowPadding:o=0,avoidCollisions:l=!0,collisionBoundary:u=[],collisionPadding:d=0,sticky:c="partial",hideWhenDetached:h=!1,updatePositionStrategy:p="optimized",onPlaced:m,...E}=e,T=Ep(Su,n),[b,y]=x.useState(null),k=Yr(t,ze=>y(ze)),[P,D]=x.useState(null),v=nT(P),A=(v==null?void 0:v.width)??0,N=(v==null?void 0:v.height)??0,z=r+(s!=="center"?"-"+s:""),R=typeof d=="number"?d:{top:0,right:0,bottom:0,left:0,...d},W=Array.isArray(u)?u:[u],j=W.length>0,w={padding:R,boundary:W.filter(oT),altBoundary:j},{refs:L,floatingStyles:M,placement:H,isPositioned:U,middlewareData:G}=WE({strategy:"fixed",placement:z,whileElementsMounted:(...ze)=>PE(...ze,{animationFrame:p==="always"}),elements:{reference:T.anchor},middleware:[GE({mainAxis:i+N,alignmentAxis:a}),l&&qE({mainAxis:!0,crossAxis:!1,limiter:c==="partial"?KE():void 0,...w}),l&&XE({...w}),QE({...w,apply:({elements:ze,rects:Be,availableWidth:nt,availableHeight:Xe})=>{const{width:Re,height:$e}=Be.reference,Ye=ze.floating.style;Ye.setProperty("--radix-popper-available-width",`${nt}px`),Ye.setProperty("--radix-popper-available-height",`${Xe}px`),Ye.setProperty("--radix-popper-anchor-width",`${Re}px`),Ye.setProperty("--radix-popper-anchor-height",`${$e}px`)}}),P&&JE({element:P,padding:o}),lT({arrowWidth:A,arrowHeight:N}),h&&ZE({strategy:"referenceHidden",...w})]}),[Q,_]=Cp(H),se=to(m);Hr(()=>{U&&(se==null||se())},[U,se]);const te=(qe=G.arrow)==null?void 0:qe.x,S=(X=G.arrow)==null?void 0:X.y,ge=((ue=G.arrow)==null?void 0:ue.centerOffset)!==0,[pe,me]=x.useState();return Hr(()=>{b&&me(window.getComputedStyle(b).zIndex)},[b]),g.jsx("div",{ref:L.setFloating,"data-radix-popper-content-wrapper":"",style:{...M,transform:U?M.transform:"translate(0, -200%)",minWidth:"max-content",zIndex:pe,"--radix-popper-transform-origin":[(ke=G.transformOrigin)==null?void 0:ke.x,(Me=G.transformOrigin)==null?void 0:Me.y].join(" "),...((Ke=G.hide)==null?void 0:Ke.referenceHidden)&&{visibility:"hidden",pointerEvents:"none"}},dir:e.dir,children:g.jsx(iT,{scope:n,placedSide:Q,onArrowChange:D,arrowX:te,arrowY:S,shouldHideArrow:ge,children:g.jsx(Gr.div,{"data-side":Q,"data-align":_,...E,ref:k,style:{...E.style,animation:U?void 0:"none"}})})})});_p.displayName=Su;var kp="PopperArrow",aT={top:"bottom",right:"left",bottom:"top",left:"right"},wp=x.forwardRef(function(t,n){const{__scopePopper:r,...i}=t,s=sT(kp,r),a=aT[s.placedSide];return g.jsx("span",{ref:s.onArrowChange,style:{position:"absolute",left:s.arrowX,top:s.arrowY,[a]:0,transformOrigin:{top:"",right:"0 0",bottom:"center 0",left:"100% 0"}[s.placedSide],transform:{top:"translateY(100%)",right:"translateY(50%) rotate(90deg) translateX(-50%)",bottom:"rotate(180deg)",left:"translateY(50%) rotate(-90deg) translateX(50%)"}[s.placedSide],visibility:s.shouldHideArrow?"hidden":void 0},children:g.jsx(tT,{...i,ref:n,style:{...i.style,display:"block"}})})});wp.displayName=kp;function oT(e){return e!==null}var lT=e=>({name:"transformOrigin",options:e,fn(t){var T,b,y;const{placement:n,rects:r,middlewareData:i}=t,a=((T=i.arrow)==null?void 0:T.centerOffset)!==0,o=a?0:e.arrowWidth,l=a?0:e.arrowHeight,[u,d]=Cp(n),c={start:"0%",center:"50%",end:"100%"}[d],h=(((b=i.arrow)==null?void 0:b.x)??0)+o/2,p=(((y=i.arrow)==null?void 0:y.y)??0)+l/2;let m="",E="";return u==="bottom"?(m=a?c:`${h}px`,E=`${-l}px`):u==="top"?(m=a?c:`${h}px`,E=`${r.floating.height+l}px`):u==="right"?(m=`${-l}px`,E=a?c:`${p}px`):u==="left"&&(m=`${r.floating.width+l}px`,E=a?c:`${p}px`),{data:{x:m,y:E}}}});function Cp(e){const[t,n="center"]=e.split("-");return[t,n]}var uT=Tp,cT=yp,dT=_p,fT=wp;function hT(e,t){return x.useReducer((n,r)=>t[n][r]??n,e)}var Ap=e=>{const{present:t,children:n}=e,r=pT(t),i=typeof n=="function"?n({present:r.isPresent}):x.Children.only(n),s=Yr(r.ref,mT(i));return typeof n=="function"||r.isPresent?x.cloneElement(i,{ref:s}):null};Ap.displayName="Presence";function pT(e){const[t,n]=x.useState(),r=x.useRef(null),i=x.useRef(e),s=x.useRef("none"),a=e?"mounted":"unmounted",[o,l]=hT(a,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return x.useEffect(()=>{const u=ta(r.current);s.current=o==="mounted"?u:"none"},[o]),Hr(()=>{const u=r.current,d=i.current;if(d!==e){const h=s.current,p=ta(u);e?l("MOUNT"):p==="none"||(u==null?void 0:u.display)==="none"?l("UNMOUNT"):l(d&&h!==p?"ANIMATION_OUT":"UNMOUNT"),i.current=e}},[e,l]),Hr(()=>{if(t){let u;const d=t.ownerDocument.defaultView??window,c=p=>{const E=ta(r.current).includes(CSS.escape(p.animationName));if(p.target===t&&E&&(l("ANIMATION_END"),!i.current)){const T=t.style.animationFillMode;t.style.animationFillMode="forwards",u=d.setTimeout(()=>{t.style.animationFillMode==="forwards"&&(t.style.animationFillMode=T)})}},h=p=>{p.target===t&&(s.current=ta(r.current))};return t.addEventListener("animationstart",h),t.addEventListener("animationcancel",c),t.addEventListener("animationend",c),()=>{d.clearTimeout(u),t.removeEventListener("animationstart",h),t.removeEventListener("animationcancel",c),t.removeEventListener("animationend",c)}}else l("ANIMATION_END")},[t,l]),{isPresent:["mounted","unmountSuspended"].includes(o),ref:x.useCallback(u=>{r.current=u?getComputedStyle(u):null,n(u)},[])}}function ta(e){return(e==null?void 0:e.animationName)||"none"}function mT(e){var r,i;let t=(r=Object.getOwnPropertyDescriptor(e.props,"ref"))==null?void 0:r.get,n=t&&"isReactWarning"in t&&t.isReactWarning;return n?e.ref:(t=(i=Object.getOwnPropertyDescriptor(e,"ref"))==null?void 0:i.get,n=t&&"isReactWarning"in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}var gT=Kh[" useInsertionEffect ".trim().toString()]||Hr;function bT({prop:e,defaultProp:t,onChange:n=()=>{},caller:r}){const[i,s,a]=ET({defaultProp:t,onChange:n}),o=e!==void 0,l=o?e:i;{const d=x.useRef(e!==void 0);x.useEffect(()=>{const c=d.current;c!==o&&console.warn(`${r} is changing from ${c?"controlled":"uncontrolled"} to ${o?"controlled":"uncontrolled"}. Components should not switch from controlled to uncontrolled (or vice versa). Decide between using a controlled or uncontrolled value for the lifetime of the component.`),d.current=o},[o,r])}const u=x.useCallback(d=>{var c;if(o){const h=TT(d)?d(e):d;h!==e&&((c=a.current)==null||c.call(a,h))}else s(d)},[o,e,s,a]);return[l,u]}function ET({defaultProp:e,onChange:t}){const[n,r]=x.useState(e),i=x.useRef(n),s=x.useRef(t);return gT(()=>{s.current=t},[t]),x.useEffect(()=>{var a;i.current!==n&&((a=s.current)==null||a.call(s,n),i.current=n)},[n,i]),[n,r,s]}function TT(e){return typeof e=="function"}var xT=Object.freeze({position:"absolute",border:0,width:1,height:1,padding:0,margin:-1,overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",wordWrap:"normal"}),yT="VisuallyHidden",Sp=x.forwardRef((e,t)=>g.jsx(Gr.span,{...e,ref:t,style:{...xT,...e.style}}));Sp.displayName=yT;var _T=Sp,[ao]=Jh("Tooltip",[bp]),oo=bp(),Ip="TooltipProvider",kT=700,kl="tooltip.open",[wT,Iu]=ao(Ip),CT=e=>{const{__scopeTooltip:t,delayDuration:n=kT,skipDelayDuration:r=300,disableHoverableContent:i=!1,children:s}=e,a=x.useRef(!0),o=x.useRef(!1),l=x.useRef(0);return x.useEffect(()=>{const u=l.current;return()=>window.clearTimeout(u)},[]),g.jsx(wT,{scope:t,isOpenDelayedRef:a,delayDuration:n,onOpen:x.useCallback(()=>{window.clearTimeout(l.current),a.current=!1},[]),onClose:x.useCallback(()=>{window.clearTimeout(l.current),l.current=window.setTimeout(()=>a.current=!0,r)},[r]),isPointerInTransitRef:o,onPointerInTransitChange:x.useCallback(u=>{o.current=u},[]),disableHoverableContent:i,children:s})};CT.displayName=Ip;var ps="Tooltip",[AT,lo]=ao(ps),vp=e=>{const{__scopeTooltip:t,children:n,open:r,defaultOpen:i,onOpenChange:s,disableHoverableContent:a,delayDuration:o}=e,l=Iu(ps,e.__scopeTooltip),u=oo(t),[d,c]=x.useState(null),h=$b(),p=x.useRef(0),m=a??l.disableHoverableContent,E=o??l.delayDuration,T=x.useRef(!1),[b,y]=bT({prop:r,defaultProp:i??!1,onChange:A=>{A?(l.onOpen(),document.dispatchEvent(new CustomEvent(kl))):l.onClose(),s==null||s(A)},caller:ps}),k=x.useMemo(()=>b?T.current?"delayed-open":"instant-open":"closed",[b]),P=x.useCallback(()=>{window.clearTimeout(p.current),p.current=0,T.current=!1,y(!0)},[y]),D=x.useCallback(()=>{window.clearTimeout(p.current),p.current=0,y(!1)},[y]),v=x.useCallback(()=>{window.clearTimeout(p.current),p.current=window.setTimeout(()=>{T.current=!0,y(!0),p.current=0},E)},[E,y]);return x.useEffect(()=>()=>{p.current&&(window.clearTimeout(p.current),p.current=0)},[]),g.jsx(uT,{...u,children:g.jsx(AT,{scope:t,contentId:h,open:b,stateAttribute:k,trigger:d,onTriggerChange:c,onTriggerEnter:x.useCallback(()=>{l.isOpenDelayedRef.current?v():P()},[l.isOpenDelayedRef,v,P]),onTriggerLeave:x.useCallback(()=>{m?D():(window.clearTimeout(p.current),p.current=0)},[D,m]),onOpen:P,onClose:D,disableHoverableContent:m,children:n})})};vp.displayName=ps;var wl="TooltipTrigger",Rp=x.forwardRef((e,t)=>{const{__scopeTooltip:n,...r}=e,i=lo(wl,n),s=Iu(wl,n),a=oo(n),o=x.useRef(null),l=Yr(t,o,i.onTriggerChange),u=x.useRef(!1),d=x.useRef(!1),c=x.useCallback(()=>u.current=!1,[]);return x.useEffect(()=>()=>document.removeEventListener("pointerup",c),[c]),g.jsx(cT,{asChild:!0,...a,children:g.jsx(Gr.button,{"aria-describedby":i.open?i.contentId:void 0,"data-state":i.stateAttribute,...r,ref:l,onPointerMove:Xn(e.onPointerMove,h=>{h.pointerType!=="touch"&&!d.current&&!s.isPointerInTransitRef.current&&(i.onTriggerEnter(),d.current=!0)}),onPointerLeave:Xn(e.onPointerLeave,()=>{i.onTriggerLeave(),d.current=!1}),onPointerDown:Xn(e.onPointerDown,()=>{i.open&&i.onClose(),u.current=!0,document.addEventListener("pointerup",c,{once:!0})}),onFocus:Xn(e.onFocus,()=>{u.current||i.onOpen()}),onBlur:Xn(e.onBlur,i.onClose),onClick:Xn(e.onClick,i.onClose)})})});Rp.displayName=wl;var ST="TooltipPortal",[lM,IT]=ao(ST,{forceMount:void 0}),Ti="TooltipContent",Np=x.forwardRef((e,t)=>{const n=IT(Ti,e.__scopeTooltip),{forceMount:r=n.forceMount,side:i="top",...s}=e,a=lo(Ti,e.__scopeTooltip);return g.jsx(Ap,{present:r||a.open,children:a.disableHoverableContent?g.jsx(Op,{side:i,...s,ref:t}):g.jsx(vT,{side:i,...s,ref:t})})}),vT=x.forwardRef((e,t)=>{const n=lo(Ti,e.__scopeTooltip),r=Iu(Ti,e.__scopeTooltip),i=x.useRef(null),s=Yr(t,i),[a,o]=x.useState(null),{trigger:l,onClose:u}=n,d=i.current,{onPointerInTransitChange:c}=r,h=x.useCallback(()=>{o(null),c(!1)},[c]),p=x.useCallback((m,E)=>{const T=m.currentTarget,b={x:m.clientX,y:m.clientY},y=DT(b,T.getBoundingClientRect()),k=PT(b,y),P=MT(E.getBoundingClientRect()),D=FT([...k,...P]);o(D),c(!0)},[c]);return x.useEffect(()=>()=>h(),[h]),x.useEffect(()=>{if(l&&d){const m=T=>p(T,d),E=T=>p(T,l);return l.addEventListener("pointerleave",m),d.addEventListener("pointerleave",E),()=>{l.removeEventListener("pointerleave",m),d.removeEventListener("pointerleave",E)}}},[l,d,p,h]),x.useEffect(()=>{if(a){const m=E=>{const T=E.target,b={x:E.clientX,y:E.clientY},y=(l==null?void 0:l.contains(T))||(d==null?void 0:d.contains(T)),k=!BT(b,a);y?h():k&&(h(),u())};return document.addEventListener("pointermove",m),()=>document.removeEventListener("pointermove",m)}},[l,d,a,u,h]),g.jsx(Op,{...e,ref:s})}),[RT,NT]=ao(ps,{isInside:!1}),OT=Sb("TooltipContent"),Op=x.forwardRef((e,t)=>{const{__scopeTooltip:n,children:r,"aria-label":i,onEscapeKeyDown:s,onPointerDownOutside:a,...o}=e,l=lo(Ti,n),u=oo(n),{onClose:d}=l;return x.useEffect(()=>(document.addEventListener(kl,d),()=>document.removeEventListener(kl,d)),[d]),x.useEffect(()=>{if(l.trigger){const c=h=>{const p=h.target;p!=null&&p.contains(l.trigger)&&d()};return window.addEventListener("scroll",c,{capture:!0}),()=>window.removeEventListener("scroll",c,{capture:!0})}},[l.trigger,d]),g.jsx(np,{asChild:!0,disableOutsidePointerEvents:!1,onEscapeKeyDown:s,onPointerDownOutside:a,onFocusOutside:c=>c.preventDefault(),onDismiss:d,children:g.jsxs(dT,{"data-state":l.stateAttribute,...u,...o,ref:t,style:{...o.style,"--radix-tooltip-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-tooltip-content-available-width":"var(--radix-popper-available-width)","--radix-tooltip-content-available-height":"var(--radix-popper-available-height)","--radix-tooltip-trigger-width":"var(--radix-popper-anchor-width)","--radix-tooltip-trigger-height":"var(--radix-popper-anchor-height)"},children:[g.jsx(OT,{children:r}),g.jsx(RT,{scope:n,isInside:!0,children:g.jsx(_T,{id:l.contentId,role:"tooltip",children:i||r})})]})})});Np.displayName=Ti;var Lp="TooltipArrow",LT=x.forwardRef((e,t)=>{const{__scopeTooltip:n,...r}=e,i=oo(n);return NT(Lp,n).isInside?null:g.jsx(fT,{...i,...r,ref:t})});LT.displayName=Lp;function DT(e,t){const n=Math.abs(t.top-e.y),r=Math.abs(t.bottom-e.y),i=Math.abs(t.right-e.x),s=Math.abs(t.left-e.x);switch(Math.min(n,r,i,s)){case s:return"left";case i:return"right";case n:return"top";case r:return"bottom";default:throw new Error("unreachable")}}function PT(e,t,n=5){const r=[];switch(t){case"top":r.push({x:e.x-n,y:e.y+n},{x:e.x+n,y:e.y+n});break;case"bottom":r.push({x:e.x-n,y:e.y-n},{x:e.x+n,y:e.y-n});break;case"left":r.push({x:e.x+n,y:e.y-n},{x:e.x+n,y:e.y+n});break;case"right":r.push({x:e.x-n,y:e.y-n},{x:e.x-n,y:e.y+n});break}return r}function MT(e){const{top:t,right:n,bottom:r,left:i}=e;return[{x:i,y:t},{x:n,y:t},{x:n,y:r},{x:i,y:r}]}function BT(e,t){const{x:n,y:r}=e;let i=!1;for(let s=0,a=t.length-1;s<t.length;a=s++){const o=t[s],l=t[a],u=o.x,d=o.y,c=l.x,h=l.y;d>r!=h>r&&n<(c-u)*(r-d)/(h-d)+u&&(i=!i)}return i}function FT(e){const t=e.slice();return t.sort((n,r)=>n.x<r.x?-1:n.x>r.x?1:n.y<r.y?-1:n.y>r.y?1:0),HT(t)}function HT(e){if(e.length<=1)return e.slice();const t=[];for(let r=0;r<e.length;r++){const i=e[r];for(;t.length>=2;){const s=t[t.length-1],a=t[t.length-2];if((s.x-a.x)*(i.y-a.y)>=(s.y-a.y)*(i.x-a.x))t.pop();else break}t.push(i)}t.pop();const n=[];for(let r=e.length-1;r>=0;r--){const i=e[r];for(;n.length>=2;){const s=n[n.length-1],a=n[n.length-2];if((s.x-a.x)*(i.y-a.y)>=(s.y-a.y)*(i.x-a.x))n.pop();else break}n.push(i)}return n.pop(),t.length===1&&n.length===1&&t[0].x===n[0].x&&t[0].y===n[0].y?t:t.concat(n)}var UT=vp,jT=Rp,Dp=Np;function Pp(e){var t,n,r="";if(typeof e=="string"||typeof e=="number")r+=e;else if(typeof e=="object")if(Array.isArray(e)){var i=e.length;for(t=0;t<i;t++)e[t]&&(n=Pp(e[t]))&&(r&&(r+=" "),r+=n)}else for(n in e)e[n]&&(r&&(r+=" "),r+=n);return r}function Pt(){for(var e,t,n=0,r="",i=arguments.length;n<i;n++)(e=arguments[n])&&(t=Pp(e))&&(r&&(r+=" "),r+=t);return r}const zT=(e,t)=>{const n=new Array(e.length+t.length);for(let r=0;r<e.length;r++)n[r]=e[r];for(let r=0;r<t.length;r++)n[e.length+r]=t[r];return n},$T=(e,t)=>({classGroupId:e,validator:t}),Mp=(e=new Map,t=null,n)=>({nextPart:e,validators:t,classGroupId:n}),Ba="-",td=[],VT="arbitrary..",WT=e=>{const t=GT(e),{conflictingClassGroups:n,conflictingClassGroupModifiers:r}=e;return{getClassGroupId:a=>{if(a.startsWith("[")&&a.endsWith("]"))return YT(a);const o=a.split(Ba),l=o[0]===""&&o.length>1?1:0;return Bp(o,l,t)},getConflictingClassGroupIds:(a,o)=>{if(o){const l=r[a],u=n[a];return l?u?zT(u,l):l:u||td}return n[a]||td}}},Bp=(e,t,n)=>{if(e.length-t===0)return n.classGroupId;const i=e[t],s=n.nextPart.get(i);if(s){const u=Bp(e,t+1,s);if(u)return u}const a=n.validators;if(a===null)return;const o=t===0?e.join(Ba):e.slice(t).join(Ba),l=a.length;for(let u=0;u<l;u++){const d=a[u];if(d.validator(o))return d.classGroupId}},YT=e=>e.slice(1,-1).indexOf(":")===-1?void 0:(()=>{const t=e.slice(1,-1),n=t.indexOf(":"),r=t.slice(0,n);return r?VT+r:void 0})(),GT=e=>{const{theme:t,classGroups:n}=e;return qT(n,t)},qT=(e,t)=>{const n=Mp();for(const r in e){const i=e[r];vu(i,n,r,t)}return n},vu=(e,t,n,r)=>{const i=e.length;for(let s=0;s<i;s++){const a=e[s];KT(a,t,n,r)}},KT=(e,t,n,r)=>{if(typeof e=="string"){XT(e,t,n);return}if(typeof e=="function"){QT(e,t,n,r);return}ZT(e,t,n,r)},XT=(e,t,n)=>{const r=e===""?t:Fp(t,e);r.classGroupId=n},QT=(e,t,n,r)=>{if(JT(e)){vu(e(r),t,n,r);return}t.validators===null&&(t.validators=[]),t.validators.push($T(n,e))},ZT=(e,t,n,r)=>{const i=Object.entries(e),s=i.length;for(let a=0;a<s;a++){const[o,l]=i[a];vu(l,Fp(t,o),n,r)}},Fp=(e,t)=>{let n=e;const r=t.split(Ba),i=r.length;for(let s=0;s<i;s++){const a=r[s];let o=n.nextPart.get(a);o||(o=Mp(),n.nextPart.set(a,o)),n=o}return n},JT=e=>"isThemeGetter"in e&&e.isThemeGetter===!0,ex=e=>{if(e<1)return{get:()=>{},set:()=>{}};let t=0,n=Object.create(null),r=Object.create(null);const i=(s,a)=>{n[s]=a,t++,t>e&&(t=0,r=n,n=Object.create(null))};return{get(s){let a=n[s];if(a!==void 0)return a;if((a=r[s])!==void 0)return i(s,a),a},set(s,a){s in n?n[s]=a:i(s,a)}}},Cl="!",nd=":",tx=[],rd=(e,t,n,r,i)=>({modifiers:e,hasImportantModifier:t,baseClassName:n,maybePostfixModifierPosition:r,isExternal:i}),nx=e=>{const{prefix:t,experimentalParseClassName:n}=e;let r=i=>{const s=[];let a=0,o=0,l=0,u;const d=i.length;for(let E=0;E<d;E++){const T=i[E];if(a===0&&o===0){if(T===nd){s.push(i.slice(l,E)),l=E+1;continue}if(T==="/"){u=E;continue}}T==="["?a++:T==="]"?a--:T==="("?o++:T===")"&&o--}const c=s.length===0?i:i.slice(l);let h=c,p=!1;c.endsWith(Cl)?(h=c.slice(0,-1),p=!0):c.startsWith(Cl)&&(h=c.slice(1),p=!0);const m=u&&u>l?u-l:void 0;return rd(s,p,h,m)};if(t){const i=t+nd,s=r;r=a=>a.startsWith(i)?s(a.slice(i.length)):rd(tx,!1,a,void 0,!0)}if(n){const i=r;r=s=>n({className:s,parseClassName:i})}return r},rx=e=>{const t=new Map;return e.orderSensitiveModifiers.forEach((n,r)=>{t.set(n,1e6+r)}),n=>{const r=[];let i=[];for(let s=0;s<n.length;s++){const a=n[s],o=a[0]==="[",l=t.has(a);o||l?(i.length>0&&(i.sort(),r.push(...i),i=[]),r.push(a)):i.push(a)}return i.length>0&&(i.sort(),r.push(...i)),r}},ix=e=>({cache:ex(e.cacheSize),parseClassName:nx(e),sortModifiers:rx(e),...WT(e)}),sx=/\s+/,ax=(e,t)=>{const{parseClassName:n,getClassGroupId:r,getConflictingClassGroupIds:i,sortModifiers:s}=t,a=[],o=e.trim().split(sx);let l="";for(let u=o.length-1;u>=0;u-=1){const d=o[u],{isExternal:c,modifiers:h,hasImportantModifier:p,baseClassName:m,maybePostfixModifierPosition:E}=n(d);if(c){l=d+(l.length>0?" "+l:l);continue}let T=!!E,b=r(T?m.substring(0,E):m);if(!b){if(!T){l=d+(l.length>0?" "+l:l);continue}if(b=r(m),!b){l=d+(l.length>0?" "+l:l);continue}T=!1}const y=h.length===0?"":h.length===1?h[0]:s(h).join(":"),k=p?y+Cl:y,P=k+b;if(a.indexOf(P)>-1)continue;a.push(P);const D=i(b,T);for(let v=0;v<D.length;++v){const A=D[v];a.push(k+A)}l=d+(l.length>0?" "+l:l)}return l},ox=(...e)=>{let t=0,n,r,i="";for(;t<e.length;)(n=e[t++])&&(r=Hp(n))&&(i&&(i+=" "),i+=r);return i},Hp=e=>{if(typeof e=="string")return e;let t,n="";for(let r=0;r<e.length;r++)e[r]&&(t=Hp(e[r]))&&(n&&(n+=" "),n+=t);return n},lx=(e,...t)=>{let n,r,i,s;const a=l=>{const u=t.reduce((d,c)=>c(d),e());return n=ix(u),r=n.cache.get,i=n.cache.set,s=o,o(l)},o=l=>{const u=r(l);if(u)return u;const d=ax(l,n);return i(l,d),d};return s=a,(...l)=>s(ox(...l))},ux=[],Et=e=>{const t=n=>n[e]||ux;return t.isThemeGetter=!0,t},Up=/^\[(?:(\w[\w-]*):)?(.+)\]$/i,jp=/^\((?:(\w[\w-]*):)?(.+)\)$/i,cx=/^\d+(?:\.\d+)?\/\d+(?:\.\d+)?$/,dx=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,fx=/\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh|cq(w|h|i|b|min|max))|\b(calc|min|max|clamp)\(.+\)|^0$/,hx=/^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix)\(.+\)$/,px=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,mx=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,sr=e=>cx.test(e),Ne=e=>!!e&&!Number.isNaN(Number(e)),ar=e=>!!e&&Number.isInteger(Number(e)),Mo=e=>e.endsWith("%")&&Ne(e.slice(0,-1)),Gn=e=>dx.test(e),zp=()=>!0,gx=e=>fx.test(e)&&!hx.test(e),Ru=()=>!1,bx=e=>px.test(e),Ex=e=>mx.test(e),Tx=e=>!ce(e)&&!fe(e),xx=e=>xr(e,Wp,Ru),ce=e=>Up.test(e),Ir=e=>xr(e,Yp,gx),id=e=>xr(e,Ix,Ne),yx=e=>xr(e,qp,zp),_x=e=>xr(e,Gp,Ru),sd=e=>xr(e,$p,Ru),kx=e=>xr(e,Vp,Ex),na=e=>xr(e,Kp,bx),fe=e=>jp.test(e),Di=e=>qr(e,Yp),wx=e=>qr(e,Gp),ad=e=>qr(e,$p),Cx=e=>qr(e,Wp),Ax=e=>qr(e,Vp),ra=e=>qr(e,Kp,!0),Sx=e=>qr(e,qp,!0),xr=(e,t,n)=>{const r=Up.exec(e);return r?r[1]?t(r[1]):n(r[2]):!1},qr=(e,t,n=!1)=>{const r=jp.exec(e);return r?r[1]?t(r[1]):n:!1},$p=e=>e==="position"||e==="percentage",Vp=e=>e==="image"||e==="url",Wp=e=>e==="length"||e==="size"||e==="bg-size",Yp=e=>e==="length",Ix=e=>e==="number",Gp=e=>e==="family-name",qp=e=>e==="number"||e==="weight",Kp=e=>e==="shadow",vx=()=>{const e=Et("color"),t=Et("font"),n=Et("text"),r=Et("font-weight"),i=Et("tracking"),s=Et("leading"),a=Et("breakpoint"),o=Et("container"),l=Et("spacing"),u=Et("radius"),d=Et("shadow"),c=Et("inset-shadow"),h=Et("text-shadow"),p=Et("drop-shadow"),m=Et("blur"),E=Et("perspective"),T=Et("aspect"),b=Et("ease"),y=Et("animate"),k=()=>["auto","avoid","all","avoid-page","page","left","right","column"],P=()=>["center","top","bottom","left","right","top-left","left-top","top-right","right-top","bottom-right","right-bottom","bottom-left","left-bottom"],D=()=>[...P(),fe,ce],v=()=>["auto","hidden","clip","visible","scroll"],A=()=>["auto","contain","none"],N=()=>[fe,ce,l],z=()=>[sr,"full","auto",...N()],R=()=>[ar,"none","subgrid",fe,ce],W=()=>["auto",{span:["full",ar,fe,ce]},ar,fe,ce],j=()=>[ar,"auto",fe,ce],w=()=>["auto","min","max","fr",fe,ce],L=()=>["start","end","center","between","around","evenly","stretch","baseline","center-safe","end-safe"],M=()=>["start","end","center","stretch","center-safe","end-safe"],H=()=>["auto",...N()],U=()=>[sr,"auto","full","dvw","dvh","lvw","lvh","svw","svh","min","max","fit",...N()],G=()=>[sr,"screen","full","dvw","lvw","svw","min","max","fit",...N()],Q=()=>[sr,"screen","full","lh","dvh","lvh","svh","min","max","fit",...N()],_=()=>[e,fe,ce],se=()=>[...P(),ad,sd,{position:[fe,ce]}],te=()=>["no-repeat",{repeat:["","x","y","space","round"]}],S=()=>["auto","cover","contain",Cx,xx,{size:[fe,ce]}],ge=()=>[Mo,Di,Ir],pe=()=>["","none","full",u,fe,ce],me=()=>["",Ne,Di,Ir],qe=()=>["solid","dashed","dotted","double"],X=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],ue=()=>[Ne,Mo,ad,sd],ke=()=>["","none",m,fe,ce],Me=()=>["none",Ne,fe,ce],Ke=()=>["none",Ne,fe,ce],ze=()=>[Ne,fe,ce],Be=()=>[sr,"full",...N()];return{cacheSize:500,theme:{animate:["spin","ping","pulse","bounce"],aspect:["video"],blur:[Gn],breakpoint:[Gn],color:[zp],container:[Gn],"drop-shadow":[Gn],ease:["in","out","in-out"],font:[Tx],"font-weight":["thin","extralight","light","normal","medium","semibold","bold","extrabold","black"],"inset-shadow":[Gn],leading:["none","tight","snug","normal","relaxed","loose"],perspective:["dramatic","near","normal","midrange","distant","none"],radius:[Gn],shadow:[Gn],spacing:["px",Ne],text:[Gn],"text-shadow":[Gn],tracking:["tighter","tight","normal","wide","wider","widest"]},classGroups:{aspect:[{aspect:["auto","square",sr,ce,fe,T]}],container:["container"],columns:[{columns:[Ne,ce,fe,o]}],"break-after":[{"break-after":k()}],"break-before":[{"break-before":k()}],"break-inside":[{"break-inside":["auto","avoid","avoid-page","avoid-column"]}],"box-decoration":[{"box-decoration":["slice","clone"]}],box:[{box:["border","content"]}],display:["block","inline-block","inline","flex","inline-flex","table","inline-table","table-caption","table-cell","table-column","table-column-group","table-footer-group","table-header-group","table-row-group","table-row","flow-root","grid","inline-grid","contents","list-item","hidden"],sr:["sr-only","not-sr-only"],float:[{float:["right","left","none","start","end"]}],clear:[{clear:["left","right","both","none","start","end"]}],isolation:["isolate","isolation-auto"],"object-fit":[{object:["contain","cover","fill","none","scale-down"]}],"object-position":[{object:D()}],overflow:[{overflow:v()}],"overflow-x":[{"overflow-x":v()}],"overflow-y":[{"overflow-y":v()}],overscroll:[{overscroll:A()}],"overscroll-x":[{"overscroll-x":A()}],"overscroll-y":[{"overscroll-y":A()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:z()}],"inset-x":[{"inset-x":z()}],"inset-y":[{"inset-y":z()}],start:[{"inset-s":z(),start:z()}],end:[{"inset-e":z(),end:z()}],"inset-bs":[{"inset-bs":z()}],"inset-be":[{"inset-be":z()}],top:[{top:z()}],right:[{right:z()}],bottom:[{bottom:z()}],left:[{left:z()}],visibility:["visible","invisible","collapse"],z:[{z:[ar,"auto",fe,ce]}],basis:[{basis:[sr,"full","auto",o,...N()]}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["nowrap","wrap","wrap-reverse"]}],flex:[{flex:[Ne,sr,"auto","initial","none",ce]}],grow:[{grow:["",Ne,fe,ce]}],shrink:[{shrink:["",Ne,fe,ce]}],order:[{order:[ar,"first","last","none",fe,ce]}],"grid-cols":[{"grid-cols":R()}],"col-start-end":[{col:W()}],"col-start":[{"col-start":j()}],"col-end":[{"col-end":j()}],"grid-rows":[{"grid-rows":R()}],"row-start-end":[{row:W()}],"row-start":[{"row-start":j()}],"row-end":[{"row-end":j()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":w()}],"auto-rows":[{"auto-rows":w()}],gap:[{gap:N()}],"gap-x":[{"gap-x":N()}],"gap-y":[{"gap-y":N()}],"justify-content":[{justify:[...L(),"normal"]}],"justify-items":[{"justify-items":[...M(),"normal"]}],"justify-self":[{"justify-self":["auto",...M()]}],"align-content":[{content:["normal",...L()]}],"align-items":[{items:[...M(),{baseline:["","last"]}]}],"align-self":[{self:["auto",...M(),{baseline:["","last"]}]}],"place-content":[{"place-content":L()}],"place-items":[{"place-items":[...M(),"baseline"]}],"place-self":[{"place-self":["auto",...M()]}],p:[{p:N()}],px:[{px:N()}],py:[{py:N()}],ps:[{ps:N()}],pe:[{pe:N()}],pbs:[{pbs:N()}],pbe:[{pbe:N()}],pt:[{pt:N()}],pr:[{pr:N()}],pb:[{pb:N()}],pl:[{pl:N()}],m:[{m:H()}],mx:[{mx:H()}],my:[{my:H()}],ms:[{ms:H()}],me:[{me:H()}],mbs:[{mbs:H()}],mbe:[{mbe:H()}],mt:[{mt:H()}],mr:[{mr:H()}],mb:[{mb:H()}],ml:[{ml:H()}],"space-x":[{"space-x":N()}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":N()}],"space-y-reverse":["space-y-reverse"],size:[{size:U()}],"inline-size":[{inline:["auto",...G()]}],"min-inline-size":[{"min-inline":["auto",...G()]}],"max-inline-size":[{"max-inline":["none",...G()]}],"block-size":[{block:["auto",...Q()]}],"min-block-size":[{"min-block":["auto",...Q()]}],"max-block-size":[{"max-block":["none",...Q()]}],w:[{w:[o,"screen",...U()]}],"min-w":[{"min-w":[o,"screen","none",...U()]}],"max-w":[{"max-w":[o,"screen","none","prose",{screen:[a]},...U()]}],h:[{h:["screen","lh",...U()]}],"min-h":[{"min-h":["screen","lh","none",...U()]}],"max-h":[{"max-h":["screen","lh",...U()]}],"font-size":[{text:["base",n,Di,Ir]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:[r,Sx,yx]}],"font-stretch":[{"font-stretch":["ultra-condensed","extra-condensed","condensed","semi-condensed","normal","semi-expanded","expanded","extra-expanded","ultra-expanded",Mo,ce]}],"font-family":[{font:[wx,_x,t]}],"font-features":[{"font-features":[ce]}],"fvn-normal":["normal-nums"],"fvn-ordinal":["ordinal"],"fvn-slashed-zero":["slashed-zero"],"fvn-figure":["lining-nums","oldstyle-nums"],"fvn-spacing":["proportional-nums","tabular-nums"],"fvn-fraction":["diagonal-fractions","stacked-fractions"],tracking:[{tracking:[i,fe,ce]}],"line-clamp":[{"line-clamp":[Ne,"none",fe,id]}],leading:[{leading:[s,...N()]}],"list-image":[{"list-image":["none",fe,ce]}],"list-style-position":[{list:["inside","outside"]}],"list-style-type":[{list:["disc","decimal","none",fe,ce]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"placeholder-color":[{placeholder:_()}],"text-color":[{text:_()}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...qe(),"wavy"]}],"text-decoration-thickness":[{decoration:[Ne,"from-font","auto",fe,Ir]}],"text-decoration-color":[{decoration:_()}],"underline-offset":[{"underline-offset":[Ne,"auto",fe,ce]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:N()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",fe,ce]}],whitespace:[{whitespace:["normal","nowrap","pre","pre-line","pre-wrap","break-spaces"]}],break:[{break:["normal","words","all","keep"]}],wrap:[{wrap:["break-word","anywhere","normal"]}],hyphens:[{hyphens:["none","manual","auto"]}],content:[{content:["none",fe,ce]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:se()}],"bg-repeat":[{bg:te()}],"bg-size":[{bg:S()}],"bg-image":[{bg:["none",{linear:[{to:["t","tr","r","br","b","bl","l","tl"]},ar,fe,ce],radial:["",fe,ce],conic:[ar,fe,ce]},Ax,kx]}],"bg-color":[{bg:_()}],"gradient-from-pos":[{from:ge()}],"gradient-via-pos":[{via:ge()}],"gradient-to-pos":[{to:ge()}],"gradient-from":[{from:_()}],"gradient-via":[{via:_()}],"gradient-to":[{to:_()}],rounded:[{rounded:pe()}],"rounded-s":[{"rounded-s":pe()}],"rounded-e":[{"rounded-e":pe()}],"rounded-t":[{"rounded-t":pe()}],"rounded-r":[{"rounded-r":pe()}],"rounded-b":[{"rounded-b":pe()}],"rounded-l":[{"rounded-l":pe()}],"rounded-ss":[{"rounded-ss":pe()}],"rounded-se":[{"rounded-se":pe()}],"rounded-ee":[{"rounded-ee":pe()}],"rounded-es":[{"rounded-es":pe()}],"rounded-tl":[{"rounded-tl":pe()}],"rounded-tr":[{"rounded-tr":pe()}],"rounded-br":[{"rounded-br":pe()}],"rounded-bl":[{"rounded-bl":pe()}],"border-w":[{border:me()}],"border-w-x":[{"border-x":me()}],"border-w-y":[{"border-y":me()}],"border-w-s":[{"border-s":me()}],"border-w-e":[{"border-e":me()}],"border-w-bs":[{"border-bs":me()}],"border-w-be":[{"border-be":me()}],"border-w-t":[{"border-t":me()}],"border-w-r":[{"border-r":me()}],"border-w-b":[{"border-b":me()}],"border-w-l":[{"border-l":me()}],"divide-x":[{"divide-x":me()}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":me()}],"divide-y-reverse":["divide-y-reverse"],"border-style":[{border:[...qe(),"hidden","none"]}],"divide-style":[{divide:[...qe(),"hidden","none"]}],"border-color":[{border:_()}],"border-color-x":[{"border-x":_()}],"border-color-y":[{"border-y":_()}],"border-color-s":[{"border-s":_()}],"border-color-e":[{"border-e":_()}],"border-color-bs":[{"border-bs":_()}],"border-color-be":[{"border-be":_()}],"border-color-t":[{"border-t":_()}],"border-color-r":[{"border-r":_()}],"border-color-b":[{"border-b":_()}],"border-color-l":[{"border-l":_()}],"divide-color":[{divide:_()}],"outline-style":[{outline:[...qe(),"none","hidden"]}],"outline-offset":[{"outline-offset":[Ne,fe,ce]}],"outline-w":[{outline:["",Ne,Di,Ir]}],"outline-color":[{outline:_()}],shadow:[{shadow:["","none",d,ra,na]}],"shadow-color":[{shadow:_()}],"inset-shadow":[{"inset-shadow":["none",c,ra,na]}],"inset-shadow-color":[{"inset-shadow":_()}],"ring-w":[{ring:me()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:_()}],"ring-offset-w":[{"ring-offset":[Ne,Ir]}],"ring-offset-color":[{"ring-offset":_()}],"inset-ring-w":[{"inset-ring":me()}],"inset-ring-color":[{"inset-ring":_()}],"text-shadow":[{"text-shadow":["none",h,ra,na]}],"text-shadow-color":[{"text-shadow":_()}],opacity:[{opacity:[Ne,fe,ce]}],"mix-blend":[{"mix-blend":[...X(),"plus-darker","plus-lighter"]}],"bg-blend":[{"bg-blend":X()}],"mask-clip":[{"mask-clip":["border","padding","content","fill","stroke","view"]},"mask-no-clip"],"mask-composite":[{mask:["add","subtract","intersect","exclude"]}],"mask-image-linear-pos":[{"mask-linear":[Ne]}],"mask-image-linear-from-pos":[{"mask-linear-from":ue()}],"mask-image-linear-to-pos":[{"mask-linear-to":ue()}],"mask-image-linear-from-color":[{"mask-linear-from":_()}],"mask-image-linear-to-color":[{"mask-linear-to":_()}],"mask-image-t-from-pos":[{"mask-t-from":ue()}],"mask-image-t-to-pos":[{"mask-t-to":ue()}],"mask-image-t-from-color":[{"mask-t-from":_()}],"mask-image-t-to-color":[{"mask-t-to":_()}],"mask-image-r-from-pos":[{"mask-r-from":ue()}],"mask-image-r-to-pos":[{"mask-r-to":ue()}],"mask-image-r-from-color":[{"mask-r-from":_()}],"mask-image-r-to-color":[{"mask-r-to":_()}],"mask-image-b-from-pos":[{"mask-b-from":ue()}],"mask-image-b-to-pos":[{"mask-b-to":ue()}],"mask-image-b-from-color":[{"mask-b-from":_()}],"mask-image-b-to-color":[{"mask-b-to":_()}],"mask-image-l-from-pos":[{"mask-l-from":ue()}],"mask-image-l-to-pos":[{"mask-l-to":ue()}],"mask-image-l-from-color":[{"mask-l-from":_()}],"mask-image-l-to-color":[{"mask-l-to":_()}],"mask-image-x-from-pos":[{"mask-x-from":ue()}],"mask-image-x-to-pos":[{"mask-x-to":ue()}],"mask-image-x-from-color":[{"mask-x-from":_()}],"mask-image-x-to-color":[{"mask-x-to":_()}],"mask-image-y-from-pos":[{"mask-y-from":ue()}],"mask-image-y-to-pos":[{"mask-y-to":ue()}],"mask-image-y-from-color":[{"mask-y-from":_()}],"mask-image-y-to-color":[{"mask-y-to":_()}],"mask-image-radial":[{"mask-radial":[fe,ce]}],"mask-image-radial-from-pos":[{"mask-radial-from":ue()}],"mask-image-radial-to-pos":[{"mask-radial-to":ue()}],"mask-image-radial-from-color":[{"mask-radial-from":_()}],"mask-image-radial-to-color":[{"mask-radial-to":_()}],"mask-image-radial-shape":[{"mask-radial":["circle","ellipse"]}],"mask-image-radial-size":[{"mask-radial":[{closest:["side","corner"],farthest:["side","corner"]}]}],"mask-image-radial-pos":[{"mask-radial-at":P()}],"mask-image-conic-pos":[{"mask-conic":[Ne]}],"mask-image-conic-from-pos":[{"mask-conic-from":ue()}],"mask-image-conic-to-pos":[{"mask-conic-to":ue()}],"mask-image-conic-from-color":[{"mask-conic-from":_()}],"mask-image-conic-to-color":[{"mask-conic-to":_()}],"mask-mode":[{mask:["alpha","luminance","match"]}],"mask-origin":[{"mask-origin":["border","padding","content","fill","stroke","view"]}],"mask-position":[{mask:se()}],"mask-repeat":[{mask:te()}],"mask-size":[{mask:S()}],"mask-type":[{"mask-type":["alpha","luminance"]}],"mask-image":[{mask:["none",fe,ce]}],filter:[{filter:["","none",fe,ce]}],blur:[{blur:ke()}],brightness:[{brightness:[Ne,fe,ce]}],contrast:[{contrast:[Ne,fe,ce]}],"drop-shadow":[{"drop-shadow":["","none",p,ra,na]}],"drop-shadow-color":[{"drop-shadow":_()}],grayscale:[{grayscale:["",Ne,fe,ce]}],"hue-rotate":[{"hue-rotate":[Ne,fe,ce]}],invert:[{invert:["",Ne,fe,ce]}],saturate:[{saturate:[Ne,fe,ce]}],sepia:[{sepia:["",Ne,fe,ce]}],"backdrop-filter":[{"backdrop-filter":["","none",fe,ce]}],"backdrop-blur":[{"backdrop-blur":ke()}],"backdrop-brightness":[{"backdrop-brightness":[Ne,fe,ce]}],"backdrop-contrast":[{"backdrop-contrast":[Ne,fe,ce]}],"backdrop-grayscale":[{"backdrop-grayscale":["",Ne,fe,ce]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[Ne,fe,ce]}],"backdrop-invert":[{"backdrop-invert":["",Ne,fe,ce]}],"backdrop-opacity":[{"backdrop-opacity":[Ne,fe,ce]}],"backdrop-saturate":[{"backdrop-saturate":[Ne,fe,ce]}],"backdrop-sepia":[{"backdrop-sepia":["",Ne,fe,ce]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":N()}],"border-spacing-x":[{"border-spacing-x":N()}],"border-spacing-y":[{"border-spacing-y":N()}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["","all","colors","opacity","shadow","transform","none",fe,ce]}],"transition-behavior":[{transition:["normal","discrete"]}],duration:[{duration:[Ne,"initial",fe,ce]}],ease:[{ease:["linear","initial",b,fe,ce]}],delay:[{delay:[Ne,fe,ce]}],animate:[{animate:["none",y,fe,ce]}],backface:[{backface:["hidden","visible"]}],perspective:[{perspective:[E,fe,ce]}],"perspective-origin":[{"perspective-origin":D()}],rotate:[{rotate:Me()}],"rotate-x":[{"rotate-x":Me()}],"rotate-y":[{"rotate-y":Me()}],"rotate-z":[{"rotate-z":Me()}],scale:[{scale:Ke()}],"scale-x":[{"scale-x":Ke()}],"scale-y":[{"scale-y":Ke()}],"scale-z":[{"scale-z":Ke()}],"scale-3d":["scale-3d"],skew:[{skew:ze()}],"skew-x":[{"skew-x":ze()}],"skew-y":[{"skew-y":ze()}],transform:[{transform:[fe,ce,"","none","gpu","cpu"]}],"transform-origin":[{origin:D()}],"transform-style":[{transform:["3d","flat"]}],translate:[{translate:Be()}],"translate-x":[{"translate-x":Be()}],"translate-y":[{"translate-y":Be()}],"translate-z":[{"translate-z":Be()}],"translate-none":["translate-none"],accent:[{accent:_()}],appearance:[{appearance:["none","auto"]}],"caret-color":[{caret:_()}],"color-scheme":[{scheme:["normal","dark","light","light-dark","only-dark","only-light"]}],cursor:[{cursor:["auto","default","pointer","wait","text","move","help","not-allowed","none","context-menu","progress","cell","crosshair","vertical-text","alias","copy","no-drop","grab","grabbing","all-scroll","col-resize","row-resize","n-resize","e-resize","s-resize","w-resize","ne-resize","nw-resize","se-resize","sw-resize","ew-resize","ns-resize","nesw-resize","nwse-resize","zoom-in","zoom-out",fe,ce]}],"field-sizing":[{"field-sizing":["fixed","content"]}],"pointer-events":[{"pointer-events":["auto","none"]}],resize:[{resize:["none","","y","x"]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scroll-m":[{"scroll-m":N()}],"scroll-mx":[{"scroll-mx":N()}],"scroll-my":[{"scroll-my":N()}],"scroll-ms":[{"scroll-ms":N()}],"scroll-me":[{"scroll-me":N()}],"scroll-mbs":[{"scroll-mbs":N()}],"scroll-mbe":[{"scroll-mbe":N()}],"scroll-mt":[{"scroll-mt":N()}],"scroll-mr":[{"scroll-mr":N()}],"scroll-mb":[{"scroll-mb":N()}],"scroll-ml":[{"scroll-ml":N()}],"scroll-p":[{"scroll-p":N()}],"scroll-px":[{"scroll-px":N()}],"scroll-py":[{"scroll-py":N()}],"scroll-ps":[{"scroll-ps":N()}],"scroll-pe":[{"scroll-pe":N()}],"scroll-pbs":[{"scroll-pbs":N()}],"scroll-pbe":[{"scroll-pbe":N()}],"scroll-pt":[{"scroll-pt":N()}],"scroll-pr":[{"scroll-pr":N()}],"scroll-pb":[{"scroll-pb":N()}],"scroll-pl":[{"scroll-pl":N()}],"snap-align":[{snap:["start","end","center","align-none"]}],"snap-stop":[{snap:["normal","always"]}],"snap-type":[{snap:["none","x","y","both"]}],"snap-strictness":[{snap:["mandatory","proximity"]}],touch:[{touch:["auto","none","manipulation"]}],"touch-x":[{"touch-pan":["x","left","right"]}],"touch-y":[{"touch-pan":["y","up","down"]}],"touch-pz":["touch-pinch-zoom"],select:[{select:["none","text","all","auto"]}],"will-change":[{"will-change":["auto","scroll","contents","transform",fe,ce]}],fill:[{fill:["none",..._()]}],"stroke-w":[{stroke:[Ne,Di,Ir,id]}],stroke:[{stroke:["none",..._()]}],"forced-color-adjust":[{"forced-color-adjust":["auto","none"]}]},conflictingClassGroups:{overflow:["overflow-x","overflow-y"],overscroll:["overscroll-x","overscroll-y"],inset:["inset-x","inset-y","inset-bs","inset-be","start","end","top","right","bottom","left"],"inset-x":["right","left"],"inset-y":["top","bottom"],flex:["basis","grow","shrink"],gap:["gap-x","gap-y"],p:["px","py","ps","pe","pbs","pbe","pt","pr","pb","pl"],px:["pr","pl"],py:["pt","pb"],m:["mx","my","ms","me","mbs","mbe","mt","mr","mb","ml"],mx:["mr","ml"],my:["mt","mb"],size:["w","h"],"font-size":["leading"],"fvn-normal":["fvn-ordinal","fvn-slashed-zero","fvn-figure","fvn-spacing","fvn-fraction"],"fvn-ordinal":["fvn-normal"],"fvn-slashed-zero":["fvn-normal"],"fvn-figure":["fvn-normal"],"fvn-spacing":["fvn-normal"],"fvn-fraction":["fvn-normal"],"line-clamp":["display","overflow"],rounded:["rounded-s","rounded-e","rounded-t","rounded-r","rounded-b","rounded-l","rounded-ss","rounded-se","rounded-ee","rounded-es","rounded-tl","rounded-tr","rounded-br","rounded-bl"],"rounded-s":["rounded-ss","rounded-es"],"rounded-e":["rounded-se","rounded-ee"],"rounded-t":["rounded-tl","rounded-tr"],"rounded-r":["rounded-tr","rounded-br"],"rounded-b":["rounded-br","rounded-bl"],"rounded-l":["rounded-tl","rounded-bl"],"border-spacing":["border-spacing-x","border-spacing-y"],"border-w":["border-w-x","border-w-y","border-w-s","border-w-e","border-w-bs","border-w-be","border-w-t","border-w-r","border-w-b","border-w-l"],"border-w-x":["border-w-r","border-w-l"],"border-w-y":["border-w-t","border-w-b"],"border-color":["border-color-x","border-color-y","border-color-s","border-color-e","border-color-bs","border-color-be","border-color-t","border-color-r","border-color-b","border-color-l"],"border-color-x":["border-color-r","border-color-l"],"border-color-y":["border-color-t","border-color-b"],translate:["translate-x","translate-y","translate-none"],"translate-none":["translate","translate-x","translate-y","translate-z"],"scroll-m":["scroll-mx","scroll-my","scroll-ms","scroll-me","scroll-mbs","scroll-mbe","scroll-mt","scroll-mr","scroll-mb","scroll-ml"],"scroll-mx":["scroll-mr","scroll-ml"],"scroll-my":["scroll-mt","scroll-mb"],"scroll-p":["scroll-px","scroll-py","scroll-ps","scroll-pe","scroll-pbs","scroll-pbe","scroll-pt","scroll-pr","scroll-pb","scroll-pl"],"scroll-px":["scroll-pr","scroll-pl"],"scroll-py":["scroll-pt","scroll-pb"],touch:["touch-x","touch-y","touch-pz"],"touch-x":["touch"],"touch-y":["touch"],"touch-pz":["touch"]},conflictingClassGroupModifiers:{"font-size":["leading"]},orderSensitiveModifiers:["*","**","after","backdrop","before","details-content","file","first-letter","first-line","marker","placeholder","selection"]}},Nu=lx(vx);/**
|
|
1
|
+
const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/highlighted-body-B3W2YXNL-B2Qjtd6a.js","assets/index-BmZS3y7B.js"])))=>i.map(i=>d[i]);
|
|
2
|
+
var _b=Object.defineProperty;var kb=(e,t,n)=>t in e?_b(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n;var Ve=(e,t,n)=>kb(e,typeof t!="symbol"?t+"":t,n);import{r as x,j as g,f as Tu,H as Kh,R as F,C as Xh,I as Qh}from"./index-BmZS3y7B.js";function Xn(e,t,{checkForDefaultPrevented:n=!0}={}){return function(i){if(e==null||e(i),n===!1||!i.defaultPrevented)return t==null?void 0:t(i)}}function jc(e,t){if(typeof e=="function")return e(t);e!=null&&(e.current=t)}function Zh(...e){return t=>{let n=!1;const r=e.map(i=>{const s=jc(i,t);return!n&&typeof s=="function"&&(n=!0),s});if(n)return()=>{for(let i=0;i<r.length;i++){const s=r[i];typeof s=="function"?s():jc(e[i],null)}}}}function Yr(...e){return x.useCallback(Zh(...e),e)}function oM(e,t){const n=x.createContext(t),r=s=>{const{children:a,...o}=s,l=x.useMemo(()=>o,Object.values(o));return g.jsx(n.Provider,{value:l,children:a})};r.displayName=e+"Provider";function i(s){const a=x.useContext(n);if(a)return a;if(t!==void 0)return t;throw new Error(`\`${s}\` must be used within \`${e}\``)}return[r,i]}function Jh(e,t=[]){let n=[];function r(s,a){const o=x.createContext(a),l=n.length;n=[...n,a];const u=c=>{var b;const{scope:h,children:p,...m}=c,E=((b=h==null?void 0:h[e])==null?void 0:b[l])||o,T=x.useMemo(()=>m,Object.values(m));return g.jsx(E.Provider,{value:T,children:p})};u.displayName=s+"Provider";function d(c,h){var E;const p=((E=h==null?void 0:h[e])==null?void 0:E[l])||o,m=x.useContext(p);if(m)return m;if(a!==void 0)return a;throw new Error(`\`${c}\` must be used within \`${s}\``)}return[u,d]}const i=()=>{const s=n.map(a=>x.createContext(a));return function(o){const l=(o==null?void 0:o[e])||s;return x.useMemo(()=>({[`__scope${e}`]:{...o,[e]:l}}),[o,l])}};return i.scopeName=e,[r,wb(i,...t)]}function wb(...e){const t=e[0];if(e.length===1)return t;const n=()=>{const r=e.map(i=>({useScope:i(),scopeName:i.scopeName}));return function(s){const a=r.reduce((o,{useScope:l,scopeName:u})=>{const c=l(s)[`__scope${u}`];return{...o,...c}},{});return x.useMemo(()=>({[`__scope${t.scopeName}`]:a}),[a])}};return n.scopeName=t.scopeName,n}function Cb(e){const t=Ab(e),n=x.forwardRef((r,i)=>{const{children:s,...a}=r,o=x.Children.toArray(s),l=o.find(Ib);if(l){const u=l.props.children,d=o.map(c=>c===l?x.Children.count(u)>1?x.Children.only(null):x.isValidElement(u)?u.props.children:null:c);return g.jsx(t,{...a,ref:i,children:x.isValidElement(u)?x.cloneElement(u,void 0,d):null})}return g.jsx(t,{...a,ref:i,children:s})});return n.displayName=`${e}.Slot`,n}function Ab(e){const t=x.forwardRef((n,r)=>{const{children:i,...s}=n;if(x.isValidElement(i)){const a=Rb(i),o=vb(s,i.props);return i.type!==x.Fragment&&(o.ref=r?Zh(r,a):a),x.cloneElement(i,o)}return x.Children.count(i)>1?x.Children.only(null):null});return t.displayName=`${e}.SlotClone`,t}var ep=Symbol("radix.slottable");function Sb(e){const t=({children:n})=>g.jsx(g.Fragment,{children:n});return t.displayName=`${e}.Slottable`,t.__radixId=ep,t}function Ib(e){return x.isValidElement(e)&&typeof e.type=="function"&&"__radixId"in e.type&&e.type.__radixId===ep}function vb(e,t){const n={...t};for(const r in t){const i=e[r],s=t[r];/^on[A-Z]/.test(r)?i&&s?n[r]=(...o)=>{const l=s(...o);return i(...o),l}:i&&(n[r]=i):r==="style"?n[r]={...i,...s}:r==="className"&&(n[r]=[i,s].filter(Boolean).join(" "))}return{...e,...n}}function Rb(e){var r,i;let t=(r=Object.getOwnPropertyDescriptor(e.props,"ref"))==null?void 0:r.get,n=t&&"isReactWarning"in t&&t.isReactWarning;return n?e.ref:(t=(i=Object.getOwnPropertyDescriptor(e,"ref"))==null?void 0:i.get,n=t&&"isReactWarning"in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}var Nb=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],Gr=Nb.reduce((e,t)=>{const n=Cb(`Primitive.${t}`),r=x.forwardRef((i,s)=>{const{asChild:a,...o}=i,l=a?n:t;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),g.jsx(l,{...o,ref:s})});return r.displayName=`Primitive.${t}`,{...e,[t]:r}},{});function Ob(e,t){e&&Tu.flushSync(()=>e.dispatchEvent(t))}function to(e){const t=x.useRef(e);return x.useEffect(()=>{t.current=e}),x.useMemo(()=>(...n)=>{var r;return(r=t.current)==null?void 0:r.call(t,...n)},[])}function Lb(e,t=globalThis==null?void 0:globalThis.document){const n=to(e);x.useEffect(()=>{const r=i=>{i.key==="Escape"&&n(i)};return t.addEventListener("keydown",r,{capture:!0}),()=>t.removeEventListener("keydown",r,{capture:!0})},[n,t])}var Db="DismissableLayer",Tl="dismissableLayer.update",Pb="dismissableLayer.pointerDownOutside",Mb="dismissableLayer.focusOutside",zc,tp=x.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),np=x.forwardRef((e,t)=>{const{disableOutsidePointerEvents:n=!1,onEscapeKeyDown:r,onPointerDownOutside:i,onFocusOutside:s,onInteractOutside:a,onDismiss:o,...l}=e,u=x.useContext(tp),[d,c]=x.useState(null),h=(d==null?void 0:d.ownerDocument)??(globalThis==null?void 0:globalThis.document),[,p]=x.useState({}),m=Yr(t,A=>c(A)),E=Array.from(u.layers),[T]=[...u.layersWithOutsidePointerEventsDisabled].slice(-1),b=E.indexOf(T),y=d?E.indexOf(d):-1,k=u.layersWithOutsidePointerEventsDisabled.size>0,P=y>=b,D=Hb(A=>{const N=A.target,z=[...u.branches].some(R=>R.contains(N));!P||z||(i==null||i(A),a==null||a(A),A.defaultPrevented||o==null||o())},h),v=Ub(A=>{const N=A.target;[...u.branches].some(R=>R.contains(N))||(s==null||s(A),a==null||a(A),A.defaultPrevented||o==null||o())},h);return Lb(A=>{y===u.layers.size-1&&(r==null||r(A),!A.defaultPrevented&&o&&(A.preventDefault(),o()))},h),x.useEffect(()=>{if(d)return n&&(u.layersWithOutsidePointerEventsDisabled.size===0&&(zc=h.body.style.pointerEvents,h.body.style.pointerEvents="none"),u.layersWithOutsidePointerEventsDisabled.add(d)),u.layers.add(d),$c(),()=>{n&&u.layersWithOutsidePointerEventsDisabled.size===1&&(h.body.style.pointerEvents=zc)}},[d,h,n,u]),x.useEffect(()=>()=>{d&&(u.layers.delete(d),u.layersWithOutsidePointerEventsDisabled.delete(d),$c())},[d,u]),x.useEffect(()=>{const A=()=>p({});return document.addEventListener(Tl,A),()=>document.removeEventListener(Tl,A)},[]),g.jsx(Gr.div,{...l,ref:m,style:{pointerEvents:k?P?"auto":"none":void 0,...e.style},onFocusCapture:Xn(e.onFocusCapture,v.onFocusCapture),onBlurCapture:Xn(e.onBlurCapture,v.onBlurCapture),onPointerDownCapture:Xn(e.onPointerDownCapture,D.onPointerDownCapture)})});np.displayName=Db;var Bb="DismissableLayerBranch",Fb=x.forwardRef((e,t)=>{const n=x.useContext(tp),r=x.useRef(null),i=Yr(t,r);return x.useEffect(()=>{const s=r.current;if(s)return n.branches.add(s),()=>{n.branches.delete(s)}},[n.branches]),g.jsx(Gr.div,{...e,ref:i})});Fb.displayName=Bb;function Hb(e,t=globalThis==null?void 0:globalThis.document){const n=to(e),r=x.useRef(!1),i=x.useRef(()=>{});return x.useEffect(()=>{const s=o=>{if(o.target&&!r.current){let l=function(){rp(Pb,n,u,{discrete:!0})};const u={originalEvent:o};o.pointerType==="touch"?(t.removeEventListener("click",i.current),i.current=l,t.addEventListener("click",i.current,{once:!0})):l()}else t.removeEventListener("click",i.current);r.current=!1},a=window.setTimeout(()=>{t.addEventListener("pointerdown",s)},0);return()=>{window.clearTimeout(a),t.removeEventListener("pointerdown",s),t.removeEventListener("click",i.current)}},[t,n]),{onPointerDownCapture:()=>r.current=!0}}function Ub(e,t=globalThis==null?void 0:globalThis.document){const n=to(e),r=x.useRef(!1);return x.useEffect(()=>{const i=s=>{s.target&&!r.current&&rp(Mb,n,{originalEvent:s},{discrete:!1})};return t.addEventListener("focusin",i),()=>t.removeEventListener("focusin",i)},[t,n]),{onFocusCapture:()=>r.current=!0,onBlurCapture:()=>r.current=!1}}function $c(){const e=new CustomEvent(Tl);document.dispatchEvent(e)}function rp(e,t,n,{discrete:r}){const i=n.originalEvent.target,s=new CustomEvent(e,{bubbles:!1,cancelable:!0,detail:n});t&&i.addEventListener(e,t,{once:!0}),r?Ob(i,s):i.dispatchEvent(s)}var Hr=globalThis!=null&&globalThis.document?x.useLayoutEffect:()=>{},jb=Kh[" useId ".trim().toString()]||(()=>{}),zb=0;function $b(e){const[t,n]=x.useState(jb());return Hr(()=>{n(r=>r??String(zb++))},[e]),t?`radix-${t}`:""}const Vb=["top","right","bottom","left"],mr=Math.min,nn=Math.max,La=Math.round,ea=Math.floor,jn=e=>({x:e,y:e}),Wb={left:"right",right:"left",bottom:"top",top:"bottom"},Yb={start:"end",end:"start"};function xl(e,t,n){return nn(e,mr(t,n))}function Jn(e,t){return typeof e=="function"?e(t):e}function er(e){return e.split("-")[0]}function ki(e){return e.split("-")[1]}function xu(e){return e==="x"?"y":"x"}function yu(e){return e==="y"?"height":"width"}const Gb=new Set(["top","bottom"]);function Hn(e){return Gb.has(er(e))?"y":"x"}function _u(e){return xu(Hn(e))}function qb(e,t,n){n===void 0&&(n=!1);const r=ki(e),i=_u(e),s=yu(i);let a=i==="x"?r===(n?"end":"start")?"right":"left":r==="start"?"bottom":"top";return t.reference[s]>t.floating[s]&&(a=Da(a)),[a,Da(a)]}function Kb(e){const t=Da(e);return[yl(e),t,yl(t)]}function yl(e){return e.replace(/start|end/g,t=>Yb[t])}const Vc=["left","right"],Wc=["right","left"],Xb=["top","bottom"],Qb=["bottom","top"];function Zb(e,t,n){switch(e){case"top":case"bottom":return n?t?Wc:Vc:t?Vc:Wc;case"left":case"right":return t?Xb:Qb;default:return[]}}function Jb(e,t,n,r){const i=ki(e);let s=Zb(er(e),n==="start",r);return i&&(s=s.map(a=>a+"-"+i),t&&(s=s.concat(s.map(yl)))),s}function Da(e){return e.replace(/left|right|bottom|top/g,t=>Wb[t])}function eE(e){return{top:0,right:0,bottom:0,left:0,...e}}function ip(e){return typeof e!="number"?eE(e):{top:e,right:e,bottom:e,left:e}}function Pa(e){const{x:t,y:n,width:r,height:i}=e;return{width:r,height:i,top:n,left:t,right:t+r,bottom:n+i,x:t,y:n}}function Yc(e,t,n){let{reference:r,floating:i}=e;const s=Hn(t),a=_u(t),o=yu(a),l=er(t),u=s==="y",d=r.x+r.width/2-i.width/2,c=r.y+r.height/2-i.height/2,h=r[o]/2-i[o]/2;let p;switch(l){case"top":p={x:d,y:r.y-i.height};break;case"bottom":p={x:d,y:r.y+r.height};break;case"right":p={x:r.x+r.width,y:c};break;case"left":p={x:r.x-i.width,y:c};break;default:p={x:r.x,y:r.y}}switch(ki(t)){case"start":p[a]-=h*(n&&u?-1:1);break;case"end":p[a]+=h*(n&&u?-1:1);break}return p}const tE=async(e,t,n)=>{const{placement:r="bottom",strategy:i="absolute",middleware:s=[],platform:a}=n,o=s.filter(Boolean),l=await(a.isRTL==null?void 0:a.isRTL(t));let u=await a.getElementRects({reference:e,floating:t,strategy:i}),{x:d,y:c}=Yc(u,r,l),h=r,p={},m=0;for(let E=0;E<o.length;E++){const{name:T,fn:b}=o[E],{x:y,y:k,data:P,reset:D}=await b({x:d,y:c,initialPlacement:r,placement:h,strategy:i,middlewareData:p,rects:u,platform:a,elements:{reference:e,floating:t}});d=y??d,c=k??c,p={...p,[T]:{...p[T],...P}},D&&m<=50&&(m++,typeof D=="object"&&(D.placement&&(h=D.placement),D.rects&&(u=D.rects===!0?await a.getElementRects({reference:e,floating:t,strategy:i}):D.rects),{x:d,y:c}=Yc(u,h,l)),E=-1)}return{x:d,y:c,placement:h,strategy:i,middlewareData:p}};async function fs(e,t){var n;t===void 0&&(t={});const{x:r,y:i,platform:s,rects:a,elements:o,strategy:l}=e,{boundary:u="clippingAncestors",rootBoundary:d="viewport",elementContext:c="floating",altBoundary:h=!1,padding:p=0}=Jn(t,e),m=ip(p),T=o[h?c==="floating"?"reference":"floating":c],b=Pa(await s.getClippingRect({element:(n=await(s.isElement==null?void 0:s.isElement(T)))==null||n?T:T.contextElement||await(s.getDocumentElement==null?void 0:s.getDocumentElement(o.floating)),boundary:u,rootBoundary:d,strategy:l})),y=c==="floating"?{x:r,y:i,width:a.floating.width,height:a.floating.height}:a.reference,k=await(s.getOffsetParent==null?void 0:s.getOffsetParent(o.floating)),P=await(s.isElement==null?void 0:s.isElement(k))?await(s.getScale==null?void 0:s.getScale(k))||{x:1,y:1}:{x:1,y:1},D=Pa(s.convertOffsetParentRelativeRectToViewportRelativeRect?await s.convertOffsetParentRelativeRectToViewportRelativeRect({elements:o,rect:y,offsetParent:k,strategy:l}):y);return{top:(b.top-D.top+m.top)/P.y,bottom:(D.bottom-b.bottom+m.bottom)/P.y,left:(b.left-D.left+m.left)/P.x,right:(D.right-b.right+m.right)/P.x}}const nE=e=>({name:"arrow",options:e,async fn(t){const{x:n,y:r,placement:i,rects:s,platform:a,elements:o,middlewareData:l}=t,{element:u,padding:d=0}=Jn(e,t)||{};if(u==null)return{};const c=ip(d),h={x:n,y:r},p=_u(i),m=yu(p),E=await a.getDimensions(u),T=p==="y",b=T?"top":"left",y=T?"bottom":"right",k=T?"clientHeight":"clientWidth",P=s.reference[m]+s.reference[p]-h[p]-s.floating[m],D=h[p]-s.reference[p],v=await(a.getOffsetParent==null?void 0:a.getOffsetParent(u));let A=v?v[k]:0;(!A||!await(a.isElement==null?void 0:a.isElement(v)))&&(A=o.floating[k]||s.floating[m]);const N=P/2-D/2,z=A/2-E[m]/2-1,R=mr(c[b],z),W=mr(c[y],z),j=R,w=A-E[m]-W,L=A/2-E[m]/2+N,M=xl(j,L,w),H=!l.arrow&&ki(i)!=null&&L!==M&&s.reference[m]/2-(L<j?R:W)-E[m]/2<0,U=H?L<j?L-j:L-w:0;return{[p]:h[p]+U,data:{[p]:M,centerOffset:L-M-U,...H&&{alignmentOffset:U}},reset:H}}}),rE=function(e){return e===void 0&&(e={}),{name:"flip",options:e,async fn(t){var n,r;const{placement:i,middlewareData:s,rects:a,initialPlacement:o,platform:l,elements:u}=t,{mainAxis:d=!0,crossAxis:c=!0,fallbackPlacements:h,fallbackStrategy:p="bestFit",fallbackAxisSideDirection:m="none",flipAlignment:E=!0,...T}=Jn(e,t);if((n=s.arrow)!=null&&n.alignmentOffset)return{};const b=er(i),y=Hn(o),k=er(o)===o,P=await(l.isRTL==null?void 0:l.isRTL(u.floating)),D=h||(k||!E?[Da(o)]:Kb(o)),v=m!=="none";!h&&v&&D.push(...Jb(o,E,m,P));const A=[o,...D],N=await fs(t,T),z=[];let R=((r=s.flip)==null?void 0:r.overflows)||[];if(d&&z.push(N[b]),c){const L=qb(i,a,P);z.push(N[L[0]],N[L[1]])}if(R=[...R,{placement:i,overflows:z}],!z.every(L=>L<=0)){var W,j;const L=(((W=s.flip)==null?void 0:W.index)||0)+1,M=A[L];if(M&&(!(c==="alignment"?y!==Hn(M):!1)||R.every(G=>Hn(G.placement)===y?G.overflows[0]>0:!0)))return{data:{index:L,overflows:R},reset:{placement:M}};let H=(j=R.filter(U=>U.overflows[0]<=0).sort((U,G)=>U.overflows[1]-G.overflows[1])[0])==null?void 0:j.placement;if(!H)switch(p){case"bestFit":{var w;const U=(w=R.filter(G=>{if(v){const Q=Hn(G.placement);return Q===y||Q==="y"}return!0}).map(G=>[G.placement,G.overflows.filter(Q=>Q>0).reduce((Q,_)=>Q+_,0)]).sort((G,Q)=>G[1]-Q[1])[0])==null?void 0:w[0];U&&(H=U);break}case"initialPlacement":H=o;break}if(i!==H)return{reset:{placement:H}}}return{}}}};function Gc(e,t){return{top:e.top-t.height,right:e.right-t.width,bottom:e.bottom-t.height,left:e.left-t.width}}function qc(e){return Vb.some(t=>e[t]>=0)}const iE=function(e){return e===void 0&&(e={}),{name:"hide",options:e,async fn(t){const{rects:n}=t,{strategy:r="referenceHidden",...i}=Jn(e,t);switch(r){case"referenceHidden":{const s=await fs(t,{...i,elementContext:"reference"}),a=Gc(s,n.reference);return{data:{referenceHiddenOffsets:a,referenceHidden:qc(a)}}}case"escaped":{const s=await fs(t,{...i,altBoundary:!0}),a=Gc(s,n.floating);return{data:{escapedOffsets:a,escaped:qc(a)}}}default:return{}}}}},sp=new Set(["left","top"]);async function sE(e,t){const{placement:n,platform:r,elements:i}=e,s=await(r.isRTL==null?void 0:r.isRTL(i.floating)),a=er(n),o=ki(n),l=Hn(n)==="y",u=sp.has(a)?-1:1,d=s&&l?-1:1,c=Jn(t,e);let{mainAxis:h,crossAxis:p,alignmentAxis:m}=typeof c=="number"?{mainAxis:c,crossAxis:0,alignmentAxis:null}:{mainAxis:c.mainAxis||0,crossAxis:c.crossAxis||0,alignmentAxis:c.alignmentAxis};return o&&typeof m=="number"&&(p=o==="end"?m*-1:m),l?{x:p*d,y:h*u}:{x:h*u,y:p*d}}const aE=function(e){return e===void 0&&(e=0),{name:"offset",options:e,async fn(t){var n,r;const{x:i,y:s,placement:a,middlewareData:o}=t,l=await sE(t,e);return a===((n=o.offset)==null?void 0:n.placement)&&(r=o.arrow)!=null&&r.alignmentOffset?{}:{x:i+l.x,y:s+l.y,data:{...l,placement:a}}}}},oE=function(e){return e===void 0&&(e={}),{name:"shift",options:e,async fn(t){const{x:n,y:r,placement:i}=t,{mainAxis:s=!0,crossAxis:a=!1,limiter:o={fn:T=>{let{x:b,y}=T;return{x:b,y}}},...l}=Jn(e,t),u={x:n,y:r},d=await fs(t,l),c=Hn(er(i)),h=xu(c);let p=u[h],m=u[c];if(s){const T=h==="y"?"top":"left",b=h==="y"?"bottom":"right",y=p+d[T],k=p-d[b];p=xl(y,p,k)}if(a){const T=c==="y"?"top":"left",b=c==="y"?"bottom":"right",y=m+d[T],k=m-d[b];m=xl(y,m,k)}const E=o.fn({...t,[h]:p,[c]:m});return{...E,data:{x:E.x-n,y:E.y-r,enabled:{[h]:s,[c]:a}}}}}},lE=function(e){return e===void 0&&(e={}),{options:e,fn(t){const{x:n,y:r,placement:i,rects:s,middlewareData:a}=t,{offset:o=0,mainAxis:l=!0,crossAxis:u=!0}=Jn(e,t),d={x:n,y:r},c=Hn(i),h=xu(c);let p=d[h],m=d[c];const E=Jn(o,t),T=typeof E=="number"?{mainAxis:E,crossAxis:0}:{mainAxis:0,crossAxis:0,...E};if(l){const k=h==="y"?"height":"width",P=s.reference[h]-s.floating[k]+T.mainAxis,D=s.reference[h]+s.reference[k]-T.mainAxis;p<P?p=P:p>D&&(p=D)}if(u){var b,y;const k=h==="y"?"width":"height",P=sp.has(er(i)),D=s.reference[c]-s.floating[k]+(P&&((b=a.offset)==null?void 0:b[c])||0)+(P?0:T.crossAxis),v=s.reference[c]+s.reference[k]+(P?0:((y=a.offset)==null?void 0:y[c])||0)-(P?T.crossAxis:0);m<D?m=D:m>v&&(m=v)}return{[h]:p,[c]:m}}}},uE=function(e){return e===void 0&&(e={}),{name:"size",options:e,async fn(t){var n,r;const{placement:i,rects:s,platform:a,elements:o}=t,{apply:l=()=>{},...u}=Jn(e,t),d=await fs(t,u),c=er(i),h=ki(i),p=Hn(i)==="y",{width:m,height:E}=s.floating;let T,b;c==="top"||c==="bottom"?(T=c,b=h===(await(a.isRTL==null?void 0:a.isRTL(o.floating))?"start":"end")?"left":"right"):(b=c,T=h==="end"?"top":"bottom");const y=E-d.top-d.bottom,k=m-d.left-d.right,P=mr(E-d[T],y),D=mr(m-d[b],k),v=!t.middlewareData.shift;let A=P,N=D;if((n=t.middlewareData.shift)!=null&&n.enabled.x&&(N=k),(r=t.middlewareData.shift)!=null&&r.enabled.y&&(A=y),v&&!h){const R=nn(d.left,0),W=nn(d.right,0),j=nn(d.top,0),w=nn(d.bottom,0);p?N=m-2*(R!==0||W!==0?R+W:nn(d.left,d.right)):A=E-2*(j!==0||w!==0?j+w:nn(d.top,d.bottom))}await l({...t,availableWidth:N,availableHeight:A});const z=await a.getDimensions(o.floating);return m!==z.width||E!==z.height?{reset:{rects:!0}}:{}}}};function no(){return typeof window<"u"}function wi(e){return ap(e)?(e.nodeName||"").toLowerCase():"#document"}function an(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function $n(e){var t;return(t=(ap(e)?e.ownerDocument:e.document)||window.document)==null?void 0:t.documentElement}function ap(e){return no()?e instanceof Node||e instanceof an(e).Node:!1}function In(e){return no()?e instanceof Element||e instanceof an(e).Element:!1}function zn(e){return no()?e instanceof HTMLElement||e instanceof an(e).HTMLElement:!1}function Kc(e){return!no()||typeof ShadowRoot>"u"?!1:e instanceof ShadowRoot||e instanceof an(e).ShadowRoot}const cE=new Set(["inline","contents"]);function Ps(e){const{overflow:t,overflowX:n,overflowY:r,display:i}=vn(e);return/auto|scroll|overlay|hidden|clip/.test(t+r+n)&&!cE.has(i)}const dE=new Set(["table","td","th"]);function fE(e){return dE.has(wi(e))}const hE=[":popover-open",":modal"];function ro(e){return hE.some(t=>{try{return e.matches(t)}catch{return!1}})}const pE=["transform","translate","scale","rotate","perspective"],mE=["transform","translate","scale","rotate","perspective","filter"],gE=["paint","layout","strict","content"];function ku(e){const t=wu(),n=In(e)?vn(e):e;return pE.some(r=>n[r]?n[r]!=="none":!1)||(n.containerType?n.containerType!=="normal":!1)||!t&&(n.backdropFilter?n.backdropFilter!=="none":!1)||!t&&(n.filter?n.filter!=="none":!1)||mE.some(r=>(n.willChange||"").includes(r))||gE.some(r=>(n.contain||"").includes(r))}function bE(e){let t=gr(e);for(;zn(t)&&!Ei(t);){if(ku(t))return t;if(ro(t))return null;t=gr(t)}return null}function wu(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}const EE=new Set(["html","body","#document"]);function Ei(e){return EE.has(wi(e))}function vn(e){return an(e).getComputedStyle(e)}function io(e){return In(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function gr(e){if(wi(e)==="html")return e;const t=e.assignedSlot||e.parentNode||Kc(e)&&e.host||$n(e);return Kc(t)?t.host:t}function op(e){const t=gr(e);return Ei(t)?e.ownerDocument?e.ownerDocument.body:e.body:zn(t)&&Ps(t)?t:op(t)}function hs(e,t,n){var r;t===void 0&&(t=[]),n===void 0&&(n=!0);const i=op(e),s=i===((r=e.ownerDocument)==null?void 0:r.body),a=an(i);if(s){const o=_l(a);return t.concat(a,a.visualViewport||[],Ps(i)?i:[],o&&n?hs(o):[])}return t.concat(i,hs(i,[],n))}function _l(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function lp(e){const t=vn(e);let n=parseFloat(t.width)||0,r=parseFloat(t.height)||0;const i=zn(e),s=i?e.offsetWidth:n,a=i?e.offsetHeight:r,o=La(n)!==s||La(r)!==a;return o&&(n=s,r=a),{width:n,height:r,$:o}}function Cu(e){return In(e)?e:e.contextElement}function fi(e){const t=Cu(e);if(!zn(t))return jn(1);const n=t.getBoundingClientRect(),{width:r,height:i,$:s}=lp(t);let a=(s?La(n.width):n.width)/r,o=(s?La(n.height):n.height)/i;return(!a||!Number.isFinite(a))&&(a=1),(!o||!Number.isFinite(o))&&(o=1),{x:a,y:o}}const TE=jn(0);function up(e){const t=an(e);return!wu()||!t.visualViewport?TE:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function xE(e,t,n){return t===void 0&&(t=!1),!n||t&&n!==an(e)?!1:t}function Ur(e,t,n,r){t===void 0&&(t=!1),n===void 0&&(n=!1);const i=e.getBoundingClientRect(),s=Cu(e);let a=jn(1);t&&(r?In(r)&&(a=fi(r)):a=fi(e));const o=xE(s,n,r)?up(s):jn(0);let l=(i.left+o.x)/a.x,u=(i.top+o.y)/a.y,d=i.width/a.x,c=i.height/a.y;if(s){const h=an(s),p=r&&In(r)?an(r):r;let m=h,E=_l(m);for(;E&&r&&p!==m;){const T=fi(E),b=E.getBoundingClientRect(),y=vn(E),k=b.left+(E.clientLeft+parseFloat(y.paddingLeft))*T.x,P=b.top+(E.clientTop+parseFloat(y.paddingTop))*T.y;l*=T.x,u*=T.y,d*=T.x,c*=T.y,l+=k,u+=P,m=an(E),E=_l(m)}}return Pa({width:d,height:c,x:l,y:u})}function so(e,t){const n=io(e).scrollLeft;return t?t.left+n:Ur($n(e)).left+n}function cp(e,t){const n=e.getBoundingClientRect(),r=n.left+t.scrollLeft-so(e,n),i=n.top+t.scrollTop;return{x:r,y:i}}function yE(e){let{elements:t,rect:n,offsetParent:r,strategy:i}=e;const s=i==="fixed",a=$n(r),o=t?ro(t.floating):!1;if(r===a||o&&s)return n;let l={scrollLeft:0,scrollTop:0},u=jn(1);const d=jn(0),c=zn(r);if((c||!c&&!s)&&((wi(r)!=="body"||Ps(a))&&(l=io(r)),zn(r))){const p=Ur(r);u=fi(r),d.x=p.x+r.clientLeft,d.y=p.y+r.clientTop}const h=a&&!c&&!s?cp(a,l):jn(0);return{width:n.width*u.x,height:n.height*u.y,x:n.x*u.x-l.scrollLeft*u.x+d.x+h.x,y:n.y*u.y-l.scrollTop*u.y+d.y+h.y}}function _E(e){return Array.from(e.getClientRects())}function kE(e){const t=$n(e),n=io(e),r=e.ownerDocument.body,i=nn(t.scrollWidth,t.clientWidth,r.scrollWidth,r.clientWidth),s=nn(t.scrollHeight,t.clientHeight,r.scrollHeight,r.clientHeight);let a=-n.scrollLeft+so(e);const o=-n.scrollTop;return vn(r).direction==="rtl"&&(a+=nn(t.clientWidth,r.clientWidth)-i),{width:i,height:s,x:a,y:o}}const Xc=25;function wE(e,t){const n=an(e),r=$n(e),i=n.visualViewport;let s=r.clientWidth,a=r.clientHeight,o=0,l=0;if(i){s=i.width,a=i.height;const d=wu();(!d||d&&t==="fixed")&&(o=i.offsetLeft,l=i.offsetTop)}const u=so(r);if(u<=0){const d=r.ownerDocument,c=d.body,h=getComputedStyle(c),p=d.compatMode==="CSS1Compat"&&parseFloat(h.marginLeft)+parseFloat(h.marginRight)||0,m=Math.abs(r.clientWidth-c.clientWidth-p);m<=Xc&&(s-=m)}else u<=Xc&&(s+=u);return{width:s,height:a,x:o,y:l}}const CE=new Set(["absolute","fixed"]);function AE(e,t){const n=Ur(e,!0,t==="fixed"),r=n.top+e.clientTop,i=n.left+e.clientLeft,s=zn(e)?fi(e):jn(1),a=e.clientWidth*s.x,o=e.clientHeight*s.y,l=i*s.x,u=r*s.y;return{width:a,height:o,x:l,y:u}}function Qc(e,t,n){let r;if(t==="viewport")r=wE(e,n);else if(t==="document")r=kE($n(e));else if(In(t))r=AE(t,n);else{const i=up(e);r={x:t.x-i.x,y:t.y-i.y,width:t.width,height:t.height}}return Pa(r)}function dp(e,t){const n=gr(e);return n===t||!In(n)||Ei(n)?!1:vn(n).position==="fixed"||dp(n,t)}function SE(e,t){const n=t.get(e);if(n)return n;let r=hs(e,[],!1).filter(o=>In(o)&&wi(o)!=="body"),i=null;const s=vn(e).position==="fixed";let a=s?gr(e):e;for(;In(a)&&!Ei(a);){const o=vn(a),l=ku(a);!l&&o.position==="fixed"&&(i=null),(s?!l&&!i:!l&&o.position==="static"&&!!i&&CE.has(i.position)||Ps(a)&&!l&&dp(e,a))?r=r.filter(d=>d!==a):i=o,a=gr(a)}return t.set(e,r),r}function IE(e){let{element:t,boundary:n,rootBoundary:r,strategy:i}=e;const a=[...n==="clippingAncestors"?ro(t)?[]:SE(t,this._c):[].concat(n),r],o=a[0],l=a.reduce((u,d)=>{const c=Qc(t,d,i);return u.top=nn(c.top,u.top),u.right=mr(c.right,u.right),u.bottom=mr(c.bottom,u.bottom),u.left=nn(c.left,u.left),u},Qc(t,o,i));return{width:l.right-l.left,height:l.bottom-l.top,x:l.left,y:l.top}}function vE(e){const{width:t,height:n}=lp(e);return{width:t,height:n}}function RE(e,t,n){const r=zn(t),i=$n(t),s=n==="fixed",a=Ur(e,!0,s,t);let o={scrollLeft:0,scrollTop:0};const l=jn(0);function u(){l.x=so(i)}if(r||!r&&!s)if((wi(t)!=="body"||Ps(i))&&(o=io(t)),r){const p=Ur(t,!0,s,t);l.x=p.x+t.clientLeft,l.y=p.y+t.clientTop}else i&&u();s&&!r&&i&&u();const d=i&&!r&&!s?cp(i,o):jn(0),c=a.left+o.scrollLeft-l.x-d.x,h=a.top+o.scrollTop-l.y-d.y;return{x:c,y:h,width:a.width,height:a.height}}function Do(e){return vn(e).position==="static"}function Zc(e,t){if(!zn(e)||vn(e).position==="fixed")return null;if(t)return t(e);let n=e.offsetParent;return $n(e)===n&&(n=n.ownerDocument.body),n}function fp(e,t){const n=an(e);if(ro(e))return n;if(!zn(e)){let i=gr(e);for(;i&&!Ei(i);){if(In(i)&&!Do(i))return i;i=gr(i)}return n}let r=Zc(e,t);for(;r&&fE(r)&&Do(r);)r=Zc(r,t);return r&&Ei(r)&&Do(r)&&!ku(r)?n:r||bE(e)||n}const NE=async function(e){const t=this.getOffsetParent||fp,n=this.getDimensions,r=await n(e.floating);return{reference:RE(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:r.width,height:r.height}}};function OE(e){return vn(e).direction==="rtl"}const LE={convertOffsetParentRelativeRectToViewportRelativeRect:yE,getDocumentElement:$n,getClippingRect:IE,getOffsetParent:fp,getElementRects:NE,getClientRects:_E,getDimensions:vE,getScale:fi,isElement:In,isRTL:OE};function hp(e,t){return e.x===t.x&&e.y===t.y&&e.width===t.width&&e.height===t.height}function DE(e,t){let n=null,r;const i=$n(e);function s(){var o;clearTimeout(r),(o=n)==null||o.disconnect(),n=null}function a(o,l){o===void 0&&(o=!1),l===void 0&&(l=1),s();const u=e.getBoundingClientRect(),{left:d,top:c,width:h,height:p}=u;if(o||t(),!h||!p)return;const m=ea(c),E=ea(i.clientWidth-(d+h)),T=ea(i.clientHeight-(c+p)),b=ea(d),k={rootMargin:-m+"px "+-E+"px "+-T+"px "+-b+"px",threshold:nn(0,mr(1,l))||1};let P=!0;function D(v){const A=v[0].intersectionRatio;if(A!==l){if(!P)return a();A?a(!1,A):r=setTimeout(()=>{a(!1,1e-7)},1e3)}A===1&&!hp(u,e.getBoundingClientRect())&&a(),P=!1}try{n=new IntersectionObserver(D,{...k,root:i.ownerDocument})}catch{n=new IntersectionObserver(D,k)}n.observe(e)}return a(!0),s}function PE(e,t,n,r){r===void 0&&(r={});const{ancestorScroll:i=!0,ancestorResize:s=!0,elementResize:a=typeof ResizeObserver=="function",layoutShift:o=typeof IntersectionObserver=="function",animationFrame:l=!1}=r,u=Cu(e),d=i||s?[...u?hs(u):[],...hs(t)]:[];d.forEach(b=>{i&&b.addEventListener("scroll",n,{passive:!0}),s&&b.addEventListener("resize",n)});const c=u&&o?DE(u,n):null;let h=-1,p=null;a&&(p=new ResizeObserver(b=>{let[y]=b;y&&y.target===u&&p&&(p.unobserve(t),cancelAnimationFrame(h),h=requestAnimationFrame(()=>{var k;(k=p)==null||k.observe(t)})),n()}),u&&!l&&p.observe(u),p.observe(t));let m,E=l?Ur(e):null;l&&T();function T(){const b=Ur(e);E&&!hp(E,b)&&n(),E=b,m=requestAnimationFrame(T)}return n(),()=>{var b;d.forEach(y=>{i&&y.removeEventListener("scroll",n),s&&y.removeEventListener("resize",n)}),c==null||c(),(b=p)==null||b.disconnect(),p=null,l&&cancelAnimationFrame(m)}}const ME=aE,BE=oE,FE=rE,HE=uE,UE=iE,Jc=nE,jE=lE,zE=(e,t,n)=>{const r=new Map,i={platform:LE,...n},s={...i.platform,_c:r};return tE(e,t,{...i,platform:s})};var $E=typeof document<"u",VE=function(){},xa=$E?x.useLayoutEffect:VE;function Ma(e,t){if(e===t)return!0;if(typeof e!=typeof t)return!1;if(typeof e=="function"&&e.toString()===t.toString())return!0;let n,r,i;if(e&&t&&typeof e=="object"){if(Array.isArray(e)){if(n=e.length,n!==t.length)return!1;for(r=n;r--!==0;)if(!Ma(e[r],t[r]))return!1;return!0}if(i=Object.keys(e),n=i.length,n!==Object.keys(t).length)return!1;for(r=n;r--!==0;)if(!{}.hasOwnProperty.call(t,i[r]))return!1;for(r=n;r--!==0;){const s=i[r];if(!(s==="_owner"&&e.$$typeof)&&!Ma(e[s],t[s]))return!1}return!0}return e!==e&&t!==t}function pp(e){return typeof window>"u"?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function ed(e,t){const n=pp(e);return Math.round(t*n)/n}function Po(e){const t=x.useRef(e);return xa(()=>{t.current=e}),t}function WE(e){e===void 0&&(e={});const{placement:t="bottom",strategy:n="absolute",middleware:r=[],platform:i,elements:{reference:s,floating:a}={},transform:o=!0,whileElementsMounted:l,open:u}=e,[d,c]=x.useState({x:0,y:0,strategy:n,placement:t,middlewareData:{},isPositioned:!1}),[h,p]=x.useState(r);Ma(h,r)||p(r);const[m,E]=x.useState(null),[T,b]=x.useState(null),y=x.useCallback(G=>{G!==v.current&&(v.current=G,E(G))},[]),k=x.useCallback(G=>{G!==A.current&&(A.current=G,b(G))},[]),P=s||m,D=a||T,v=x.useRef(null),A=x.useRef(null),N=x.useRef(d),z=l!=null,R=Po(l),W=Po(i),j=Po(u),w=x.useCallback(()=>{if(!v.current||!A.current)return;const G={placement:t,strategy:n,middleware:h};W.current&&(G.platform=W.current),zE(v.current,A.current,G).then(Q=>{const _={...Q,isPositioned:j.current!==!1};L.current&&!Ma(N.current,_)&&(N.current=_,Tu.flushSync(()=>{c(_)}))})},[h,t,n,W,j]);xa(()=>{u===!1&&N.current.isPositioned&&(N.current.isPositioned=!1,c(G=>({...G,isPositioned:!1})))},[u]);const L=x.useRef(!1);xa(()=>(L.current=!0,()=>{L.current=!1}),[]),xa(()=>{if(P&&(v.current=P),D&&(A.current=D),P&&D){if(R.current)return R.current(P,D,w);w()}},[P,D,w,R,z]);const M=x.useMemo(()=>({reference:v,floating:A,setReference:y,setFloating:k}),[y,k]),H=x.useMemo(()=>({reference:P,floating:D}),[P,D]),U=x.useMemo(()=>{const G={position:n,left:0,top:0};if(!H.floating)return G;const Q=ed(H.floating,d.x),_=ed(H.floating,d.y);return o?{...G,transform:"translate("+Q+"px, "+_+"px)",...pp(H.floating)>=1.5&&{willChange:"transform"}}:{position:n,left:Q,top:_}},[n,o,H.floating,d.x,d.y]);return x.useMemo(()=>({...d,update:w,refs:M,elements:H,floatingStyles:U}),[d,w,M,H,U])}const YE=e=>{function t(n){return{}.hasOwnProperty.call(n,"current")}return{name:"arrow",options:e,fn(n){const{element:r,padding:i}=typeof e=="function"?e(n):e;return r&&t(r)?r.current!=null?Jc({element:r.current,padding:i}).fn(n):{}:r?Jc({element:r,padding:i}).fn(n):{}}}},GE=(e,t)=>({...ME(e),options:[e,t]}),qE=(e,t)=>({...BE(e),options:[e,t]}),KE=(e,t)=>({...jE(e),options:[e,t]}),XE=(e,t)=>({...FE(e),options:[e,t]}),QE=(e,t)=>({...HE(e),options:[e,t]}),ZE=(e,t)=>({...UE(e),options:[e,t]}),JE=(e,t)=>({...YE(e),options:[e,t]});var eT="Arrow",mp=x.forwardRef((e,t)=>{const{children:n,width:r=10,height:i=5,...s}=e;return g.jsx(Gr.svg,{...s,ref:t,width:r,height:i,viewBox:"0 0 30 10",preserveAspectRatio:"none",children:e.asChild?n:g.jsx("polygon",{points:"0,0 30,0 15,10"})})});mp.displayName=eT;var tT=mp;function nT(e){const[t,n]=x.useState(void 0);return Hr(()=>{if(e){n({width:e.offsetWidth,height:e.offsetHeight});const r=new ResizeObserver(i=>{if(!Array.isArray(i)||!i.length)return;const s=i[0];let a,o;if("borderBoxSize"in s){const l=s.borderBoxSize,u=Array.isArray(l)?l[0]:l;a=u.inlineSize,o=u.blockSize}else a=e.offsetWidth,o=e.offsetHeight;n({width:a,height:o})});return r.observe(e,{box:"border-box"}),()=>r.unobserve(e)}else n(void 0)},[e]),t}var Au="Popper",[gp,bp]=Jh(Au),[rT,Ep]=gp(Au),Tp=e=>{const{__scopePopper:t,children:n}=e,[r,i]=x.useState(null);return g.jsx(rT,{scope:t,anchor:r,onAnchorChange:i,children:n})};Tp.displayName=Au;var xp="PopperAnchor",yp=x.forwardRef((e,t)=>{const{__scopePopper:n,virtualRef:r,...i}=e,s=Ep(xp,n),a=x.useRef(null),o=Yr(t,a),l=x.useRef(null);return x.useEffect(()=>{const u=l.current;l.current=(r==null?void 0:r.current)||a.current,u!==l.current&&s.onAnchorChange(l.current)}),r?null:g.jsx(Gr.div,{...i,ref:o})});yp.displayName=xp;var Su="PopperContent",[iT,sT]=gp(Su),_p=x.forwardRef((e,t)=>{var qe,X,ue,ke,Me,Ke;const{__scopePopper:n,side:r="bottom",sideOffset:i=0,align:s="center",alignOffset:a=0,arrowPadding:o=0,avoidCollisions:l=!0,collisionBoundary:u=[],collisionPadding:d=0,sticky:c="partial",hideWhenDetached:h=!1,updatePositionStrategy:p="optimized",onPlaced:m,...E}=e,T=Ep(Su,n),[b,y]=x.useState(null),k=Yr(t,ze=>y(ze)),[P,D]=x.useState(null),v=nT(P),A=(v==null?void 0:v.width)??0,N=(v==null?void 0:v.height)??0,z=r+(s!=="center"?"-"+s:""),R=typeof d=="number"?d:{top:0,right:0,bottom:0,left:0,...d},W=Array.isArray(u)?u:[u],j=W.length>0,w={padding:R,boundary:W.filter(oT),altBoundary:j},{refs:L,floatingStyles:M,placement:H,isPositioned:U,middlewareData:G}=WE({strategy:"fixed",placement:z,whileElementsMounted:(...ze)=>PE(...ze,{animationFrame:p==="always"}),elements:{reference:T.anchor},middleware:[GE({mainAxis:i+N,alignmentAxis:a}),l&&qE({mainAxis:!0,crossAxis:!1,limiter:c==="partial"?KE():void 0,...w}),l&&XE({...w}),QE({...w,apply:({elements:ze,rects:Be,availableWidth:nt,availableHeight:Xe})=>{const{width:Re,height:$e}=Be.reference,Ye=ze.floating.style;Ye.setProperty("--radix-popper-available-width",`${nt}px`),Ye.setProperty("--radix-popper-available-height",`${Xe}px`),Ye.setProperty("--radix-popper-anchor-width",`${Re}px`),Ye.setProperty("--radix-popper-anchor-height",`${$e}px`)}}),P&&JE({element:P,padding:o}),lT({arrowWidth:A,arrowHeight:N}),h&&ZE({strategy:"referenceHidden",...w})]}),[Q,_]=Cp(H),se=to(m);Hr(()=>{U&&(se==null||se())},[U,se]);const te=(qe=G.arrow)==null?void 0:qe.x,S=(X=G.arrow)==null?void 0:X.y,ge=((ue=G.arrow)==null?void 0:ue.centerOffset)!==0,[pe,me]=x.useState();return Hr(()=>{b&&me(window.getComputedStyle(b).zIndex)},[b]),g.jsx("div",{ref:L.setFloating,"data-radix-popper-content-wrapper":"",style:{...M,transform:U?M.transform:"translate(0, -200%)",minWidth:"max-content",zIndex:pe,"--radix-popper-transform-origin":[(ke=G.transformOrigin)==null?void 0:ke.x,(Me=G.transformOrigin)==null?void 0:Me.y].join(" "),...((Ke=G.hide)==null?void 0:Ke.referenceHidden)&&{visibility:"hidden",pointerEvents:"none"}},dir:e.dir,children:g.jsx(iT,{scope:n,placedSide:Q,onArrowChange:D,arrowX:te,arrowY:S,shouldHideArrow:ge,children:g.jsx(Gr.div,{"data-side":Q,"data-align":_,...E,ref:k,style:{...E.style,animation:U?void 0:"none"}})})})});_p.displayName=Su;var kp="PopperArrow",aT={top:"bottom",right:"left",bottom:"top",left:"right"},wp=x.forwardRef(function(t,n){const{__scopePopper:r,...i}=t,s=sT(kp,r),a=aT[s.placedSide];return g.jsx("span",{ref:s.onArrowChange,style:{position:"absolute",left:s.arrowX,top:s.arrowY,[a]:0,transformOrigin:{top:"",right:"0 0",bottom:"center 0",left:"100% 0"}[s.placedSide],transform:{top:"translateY(100%)",right:"translateY(50%) rotate(90deg) translateX(-50%)",bottom:"rotate(180deg)",left:"translateY(50%) rotate(-90deg) translateX(50%)"}[s.placedSide],visibility:s.shouldHideArrow?"hidden":void 0},children:g.jsx(tT,{...i,ref:n,style:{...i.style,display:"block"}})})});wp.displayName=kp;function oT(e){return e!==null}var lT=e=>({name:"transformOrigin",options:e,fn(t){var T,b,y;const{placement:n,rects:r,middlewareData:i}=t,a=((T=i.arrow)==null?void 0:T.centerOffset)!==0,o=a?0:e.arrowWidth,l=a?0:e.arrowHeight,[u,d]=Cp(n),c={start:"0%",center:"50%",end:"100%"}[d],h=(((b=i.arrow)==null?void 0:b.x)??0)+o/2,p=(((y=i.arrow)==null?void 0:y.y)??0)+l/2;let m="",E="";return u==="bottom"?(m=a?c:`${h}px`,E=`${-l}px`):u==="top"?(m=a?c:`${h}px`,E=`${r.floating.height+l}px`):u==="right"?(m=`${-l}px`,E=a?c:`${p}px`):u==="left"&&(m=`${r.floating.width+l}px`,E=a?c:`${p}px`),{data:{x:m,y:E}}}});function Cp(e){const[t,n="center"]=e.split("-");return[t,n]}var uT=Tp,cT=yp,dT=_p,fT=wp;function hT(e,t){return x.useReducer((n,r)=>t[n][r]??n,e)}var Ap=e=>{const{present:t,children:n}=e,r=pT(t),i=typeof n=="function"?n({present:r.isPresent}):x.Children.only(n),s=Yr(r.ref,mT(i));return typeof n=="function"||r.isPresent?x.cloneElement(i,{ref:s}):null};Ap.displayName="Presence";function pT(e){const[t,n]=x.useState(),r=x.useRef(null),i=x.useRef(e),s=x.useRef("none"),a=e?"mounted":"unmounted",[o,l]=hT(a,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return x.useEffect(()=>{const u=ta(r.current);s.current=o==="mounted"?u:"none"},[o]),Hr(()=>{const u=r.current,d=i.current;if(d!==e){const h=s.current,p=ta(u);e?l("MOUNT"):p==="none"||(u==null?void 0:u.display)==="none"?l("UNMOUNT"):l(d&&h!==p?"ANIMATION_OUT":"UNMOUNT"),i.current=e}},[e,l]),Hr(()=>{if(t){let u;const d=t.ownerDocument.defaultView??window,c=p=>{const E=ta(r.current).includes(CSS.escape(p.animationName));if(p.target===t&&E&&(l("ANIMATION_END"),!i.current)){const T=t.style.animationFillMode;t.style.animationFillMode="forwards",u=d.setTimeout(()=>{t.style.animationFillMode==="forwards"&&(t.style.animationFillMode=T)})}},h=p=>{p.target===t&&(s.current=ta(r.current))};return t.addEventListener("animationstart",h),t.addEventListener("animationcancel",c),t.addEventListener("animationend",c),()=>{d.clearTimeout(u),t.removeEventListener("animationstart",h),t.removeEventListener("animationcancel",c),t.removeEventListener("animationend",c)}}else l("ANIMATION_END")},[t,l]),{isPresent:["mounted","unmountSuspended"].includes(o),ref:x.useCallback(u=>{r.current=u?getComputedStyle(u):null,n(u)},[])}}function ta(e){return(e==null?void 0:e.animationName)||"none"}function mT(e){var r,i;let t=(r=Object.getOwnPropertyDescriptor(e.props,"ref"))==null?void 0:r.get,n=t&&"isReactWarning"in t&&t.isReactWarning;return n?e.ref:(t=(i=Object.getOwnPropertyDescriptor(e,"ref"))==null?void 0:i.get,n=t&&"isReactWarning"in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}var gT=Kh[" useInsertionEffect ".trim().toString()]||Hr;function bT({prop:e,defaultProp:t,onChange:n=()=>{},caller:r}){const[i,s,a]=ET({defaultProp:t,onChange:n}),o=e!==void 0,l=o?e:i;{const d=x.useRef(e!==void 0);x.useEffect(()=>{const c=d.current;c!==o&&console.warn(`${r} is changing from ${c?"controlled":"uncontrolled"} to ${o?"controlled":"uncontrolled"}. Components should not switch from controlled to uncontrolled (or vice versa). Decide between using a controlled or uncontrolled value for the lifetime of the component.`),d.current=o},[o,r])}const u=x.useCallback(d=>{var c;if(o){const h=TT(d)?d(e):d;h!==e&&((c=a.current)==null||c.call(a,h))}else s(d)},[o,e,s,a]);return[l,u]}function ET({defaultProp:e,onChange:t}){const[n,r]=x.useState(e),i=x.useRef(n),s=x.useRef(t);return gT(()=>{s.current=t},[t]),x.useEffect(()=>{var a;i.current!==n&&((a=s.current)==null||a.call(s,n),i.current=n)},[n,i]),[n,r,s]}function TT(e){return typeof e=="function"}var xT=Object.freeze({position:"absolute",border:0,width:1,height:1,padding:0,margin:-1,overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",wordWrap:"normal"}),yT="VisuallyHidden",Sp=x.forwardRef((e,t)=>g.jsx(Gr.span,{...e,ref:t,style:{...xT,...e.style}}));Sp.displayName=yT;var _T=Sp,[ao]=Jh("Tooltip",[bp]),oo=bp(),Ip="TooltipProvider",kT=700,kl="tooltip.open",[wT,Iu]=ao(Ip),CT=e=>{const{__scopeTooltip:t,delayDuration:n=kT,skipDelayDuration:r=300,disableHoverableContent:i=!1,children:s}=e,a=x.useRef(!0),o=x.useRef(!1),l=x.useRef(0);return x.useEffect(()=>{const u=l.current;return()=>window.clearTimeout(u)},[]),g.jsx(wT,{scope:t,isOpenDelayedRef:a,delayDuration:n,onOpen:x.useCallback(()=>{window.clearTimeout(l.current),a.current=!1},[]),onClose:x.useCallback(()=>{window.clearTimeout(l.current),l.current=window.setTimeout(()=>a.current=!0,r)},[r]),isPointerInTransitRef:o,onPointerInTransitChange:x.useCallback(u=>{o.current=u},[]),disableHoverableContent:i,children:s})};CT.displayName=Ip;var ps="Tooltip",[AT,lo]=ao(ps),vp=e=>{const{__scopeTooltip:t,children:n,open:r,defaultOpen:i,onOpenChange:s,disableHoverableContent:a,delayDuration:o}=e,l=Iu(ps,e.__scopeTooltip),u=oo(t),[d,c]=x.useState(null),h=$b(),p=x.useRef(0),m=a??l.disableHoverableContent,E=o??l.delayDuration,T=x.useRef(!1),[b,y]=bT({prop:r,defaultProp:i??!1,onChange:A=>{A?(l.onOpen(),document.dispatchEvent(new CustomEvent(kl))):l.onClose(),s==null||s(A)},caller:ps}),k=x.useMemo(()=>b?T.current?"delayed-open":"instant-open":"closed",[b]),P=x.useCallback(()=>{window.clearTimeout(p.current),p.current=0,T.current=!1,y(!0)},[y]),D=x.useCallback(()=>{window.clearTimeout(p.current),p.current=0,y(!1)},[y]),v=x.useCallback(()=>{window.clearTimeout(p.current),p.current=window.setTimeout(()=>{T.current=!0,y(!0),p.current=0},E)},[E,y]);return x.useEffect(()=>()=>{p.current&&(window.clearTimeout(p.current),p.current=0)},[]),g.jsx(uT,{...u,children:g.jsx(AT,{scope:t,contentId:h,open:b,stateAttribute:k,trigger:d,onTriggerChange:c,onTriggerEnter:x.useCallback(()=>{l.isOpenDelayedRef.current?v():P()},[l.isOpenDelayedRef,v,P]),onTriggerLeave:x.useCallback(()=>{m?D():(window.clearTimeout(p.current),p.current=0)},[D,m]),onOpen:P,onClose:D,disableHoverableContent:m,children:n})})};vp.displayName=ps;var wl="TooltipTrigger",Rp=x.forwardRef((e,t)=>{const{__scopeTooltip:n,...r}=e,i=lo(wl,n),s=Iu(wl,n),a=oo(n),o=x.useRef(null),l=Yr(t,o,i.onTriggerChange),u=x.useRef(!1),d=x.useRef(!1),c=x.useCallback(()=>u.current=!1,[]);return x.useEffect(()=>()=>document.removeEventListener("pointerup",c),[c]),g.jsx(cT,{asChild:!0,...a,children:g.jsx(Gr.button,{"aria-describedby":i.open?i.contentId:void 0,"data-state":i.stateAttribute,...r,ref:l,onPointerMove:Xn(e.onPointerMove,h=>{h.pointerType!=="touch"&&!d.current&&!s.isPointerInTransitRef.current&&(i.onTriggerEnter(),d.current=!0)}),onPointerLeave:Xn(e.onPointerLeave,()=>{i.onTriggerLeave(),d.current=!1}),onPointerDown:Xn(e.onPointerDown,()=>{i.open&&i.onClose(),u.current=!0,document.addEventListener("pointerup",c,{once:!0})}),onFocus:Xn(e.onFocus,()=>{u.current||i.onOpen()}),onBlur:Xn(e.onBlur,i.onClose),onClick:Xn(e.onClick,i.onClose)})})});Rp.displayName=wl;var ST="TooltipPortal",[lM,IT]=ao(ST,{forceMount:void 0}),Ti="TooltipContent",Np=x.forwardRef((e,t)=>{const n=IT(Ti,e.__scopeTooltip),{forceMount:r=n.forceMount,side:i="top",...s}=e,a=lo(Ti,e.__scopeTooltip);return g.jsx(Ap,{present:r||a.open,children:a.disableHoverableContent?g.jsx(Op,{side:i,...s,ref:t}):g.jsx(vT,{side:i,...s,ref:t})})}),vT=x.forwardRef((e,t)=>{const n=lo(Ti,e.__scopeTooltip),r=Iu(Ti,e.__scopeTooltip),i=x.useRef(null),s=Yr(t,i),[a,o]=x.useState(null),{trigger:l,onClose:u}=n,d=i.current,{onPointerInTransitChange:c}=r,h=x.useCallback(()=>{o(null),c(!1)},[c]),p=x.useCallback((m,E)=>{const T=m.currentTarget,b={x:m.clientX,y:m.clientY},y=DT(b,T.getBoundingClientRect()),k=PT(b,y),P=MT(E.getBoundingClientRect()),D=FT([...k,...P]);o(D),c(!0)},[c]);return x.useEffect(()=>()=>h(),[h]),x.useEffect(()=>{if(l&&d){const m=T=>p(T,d),E=T=>p(T,l);return l.addEventListener("pointerleave",m),d.addEventListener("pointerleave",E),()=>{l.removeEventListener("pointerleave",m),d.removeEventListener("pointerleave",E)}}},[l,d,p,h]),x.useEffect(()=>{if(a){const m=E=>{const T=E.target,b={x:E.clientX,y:E.clientY},y=(l==null?void 0:l.contains(T))||(d==null?void 0:d.contains(T)),k=!BT(b,a);y?h():k&&(h(),u())};return document.addEventListener("pointermove",m),()=>document.removeEventListener("pointermove",m)}},[l,d,a,u,h]),g.jsx(Op,{...e,ref:s})}),[RT,NT]=ao(ps,{isInside:!1}),OT=Sb("TooltipContent"),Op=x.forwardRef((e,t)=>{const{__scopeTooltip:n,children:r,"aria-label":i,onEscapeKeyDown:s,onPointerDownOutside:a,...o}=e,l=lo(Ti,n),u=oo(n),{onClose:d}=l;return x.useEffect(()=>(document.addEventListener(kl,d),()=>document.removeEventListener(kl,d)),[d]),x.useEffect(()=>{if(l.trigger){const c=h=>{const p=h.target;p!=null&&p.contains(l.trigger)&&d()};return window.addEventListener("scroll",c,{capture:!0}),()=>window.removeEventListener("scroll",c,{capture:!0})}},[l.trigger,d]),g.jsx(np,{asChild:!0,disableOutsidePointerEvents:!1,onEscapeKeyDown:s,onPointerDownOutside:a,onFocusOutside:c=>c.preventDefault(),onDismiss:d,children:g.jsxs(dT,{"data-state":l.stateAttribute,...u,...o,ref:t,style:{...o.style,"--radix-tooltip-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-tooltip-content-available-width":"var(--radix-popper-available-width)","--radix-tooltip-content-available-height":"var(--radix-popper-available-height)","--radix-tooltip-trigger-width":"var(--radix-popper-anchor-width)","--radix-tooltip-trigger-height":"var(--radix-popper-anchor-height)"},children:[g.jsx(OT,{children:r}),g.jsx(RT,{scope:n,isInside:!0,children:g.jsx(_T,{id:l.contentId,role:"tooltip",children:i||r})})]})})});Np.displayName=Ti;var Lp="TooltipArrow",LT=x.forwardRef((e,t)=>{const{__scopeTooltip:n,...r}=e,i=oo(n);return NT(Lp,n).isInside?null:g.jsx(fT,{...i,...r,ref:t})});LT.displayName=Lp;function DT(e,t){const n=Math.abs(t.top-e.y),r=Math.abs(t.bottom-e.y),i=Math.abs(t.right-e.x),s=Math.abs(t.left-e.x);switch(Math.min(n,r,i,s)){case s:return"left";case i:return"right";case n:return"top";case r:return"bottom";default:throw new Error("unreachable")}}function PT(e,t,n=5){const r=[];switch(t){case"top":r.push({x:e.x-n,y:e.y+n},{x:e.x+n,y:e.y+n});break;case"bottom":r.push({x:e.x-n,y:e.y-n},{x:e.x+n,y:e.y-n});break;case"left":r.push({x:e.x+n,y:e.y-n},{x:e.x+n,y:e.y+n});break;case"right":r.push({x:e.x-n,y:e.y-n},{x:e.x-n,y:e.y+n});break}return r}function MT(e){const{top:t,right:n,bottom:r,left:i}=e;return[{x:i,y:t},{x:n,y:t},{x:n,y:r},{x:i,y:r}]}function BT(e,t){const{x:n,y:r}=e;let i=!1;for(let s=0,a=t.length-1;s<t.length;a=s++){const o=t[s],l=t[a],u=o.x,d=o.y,c=l.x,h=l.y;d>r!=h>r&&n<(c-u)*(r-d)/(h-d)+u&&(i=!i)}return i}function FT(e){const t=e.slice();return t.sort((n,r)=>n.x<r.x?-1:n.x>r.x?1:n.y<r.y?-1:n.y>r.y?1:0),HT(t)}function HT(e){if(e.length<=1)return e.slice();const t=[];for(let r=0;r<e.length;r++){const i=e[r];for(;t.length>=2;){const s=t[t.length-1],a=t[t.length-2];if((s.x-a.x)*(i.y-a.y)>=(s.y-a.y)*(i.x-a.x))t.pop();else break}t.push(i)}t.pop();const n=[];for(let r=e.length-1;r>=0;r--){const i=e[r];for(;n.length>=2;){const s=n[n.length-1],a=n[n.length-2];if((s.x-a.x)*(i.y-a.y)>=(s.y-a.y)*(i.x-a.x))n.pop();else break}n.push(i)}return n.pop(),t.length===1&&n.length===1&&t[0].x===n[0].x&&t[0].y===n[0].y?t:t.concat(n)}var UT=vp,jT=Rp,Dp=Np;function Pp(e){var t,n,r="";if(typeof e=="string"||typeof e=="number")r+=e;else if(typeof e=="object")if(Array.isArray(e)){var i=e.length;for(t=0;t<i;t++)e[t]&&(n=Pp(e[t]))&&(r&&(r+=" "),r+=n)}else for(n in e)e[n]&&(r&&(r+=" "),r+=n);return r}function Pt(){for(var e,t,n=0,r="",i=arguments.length;n<i;n++)(e=arguments[n])&&(t=Pp(e))&&(r&&(r+=" "),r+=t);return r}const zT=(e,t)=>{const n=new Array(e.length+t.length);for(let r=0;r<e.length;r++)n[r]=e[r];for(let r=0;r<t.length;r++)n[e.length+r]=t[r];return n},$T=(e,t)=>({classGroupId:e,validator:t}),Mp=(e=new Map,t=null,n)=>({nextPart:e,validators:t,classGroupId:n}),Ba="-",td=[],VT="arbitrary..",WT=e=>{const t=GT(e),{conflictingClassGroups:n,conflictingClassGroupModifiers:r}=e;return{getClassGroupId:a=>{if(a.startsWith("[")&&a.endsWith("]"))return YT(a);const o=a.split(Ba),l=o[0]===""&&o.length>1?1:0;return Bp(o,l,t)},getConflictingClassGroupIds:(a,o)=>{if(o){const l=r[a],u=n[a];return l?u?zT(u,l):l:u||td}return n[a]||td}}},Bp=(e,t,n)=>{if(e.length-t===0)return n.classGroupId;const i=e[t],s=n.nextPart.get(i);if(s){const u=Bp(e,t+1,s);if(u)return u}const a=n.validators;if(a===null)return;const o=t===0?e.join(Ba):e.slice(t).join(Ba),l=a.length;for(let u=0;u<l;u++){const d=a[u];if(d.validator(o))return d.classGroupId}},YT=e=>e.slice(1,-1).indexOf(":")===-1?void 0:(()=>{const t=e.slice(1,-1),n=t.indexOf(":"),r=t.slice(0,n);return r?VT+r:void 0})(),GT=e=>{const{theme:t,classGroups:n}=e;return qT(n,t)},qT=(e,t)=>{const n=Mp();for(const r in e){const i=e[r];vu(i,n,r,t)}return n},vu=(e,t,n,r)=>{const i=e.length;for(let s=0;s<i;s++){const a=e[s];KT(a,t,n,r)}},KT=(e,t,n,r)=>{if(typeof e=="string"){XT(e,t,n);return}if(typeof e=="function"){QT(e,t,n,r);return}ZT(e,t,n,r)},XT=(e,t,n)=>{const r=e===""?t:Fp(t,e);r.classGroupId=n},QT=(e,t,n,r)=>{if(JT(e)){vu(e(r),t,n,r);return}t.validators===null&&(t.validators=[]),t.validators.push($T(n,e))},ZT=(e,t,n,r)=>{const i=Object.entries(e),s=i.length;for(let a=0;a<s;a++){const[o,l]=i[a];vu(l,Fp(t,o),n,r)}},Fp=(e,t)=>{let n=e;const r=t.split(Ba),i=r.length;for(let s=0;s<i;s++){const a=r[s];let o=n.nextPart.get(a);o||(o=Mp(),n.nextPart.set(a,o)),n=o}return n},JT=e=>"isThemeGetter"in e&&e.isThemeGetter===!0,ex=e=>{if(e<1)return{get:()=>{},set:()=>{}};let t=0,n=Object.create(null),r=Object.create(null);const i=(s,a)=>{n[s]=a,t++,t>e&&(t=0,r=n,n=Object.create(null))};return{get(s){let a=n[s];if(a!==void 0)return a;if((a=r[s])!==void 0)return i(s,a),a},set(s,a){s in n?n[s]=a:i(s,a)}}},Cl="!",nd=":",tx=[],rd=(e,t,n,r,i)=>({modifiers:e,hasImportantModifier:t,baseClassName:n,maybePostfixModifierPosition:r,isExternal:i}),nx=e=>{const{prefix:t,experimentalParseClassName:n}=e;let r=i=>{const s=[];let a=0,o=0,l=0,u;const d=i.length;for(let E=0;E<d;E++){const T=i[E];if(a===0&&o===0){if(T===nd){s.push(i.slice(l,E)),l=E+1;continue}if(T==="/"){u=E;continue}}T==="["?a++:T==="]"?a--:T==="("?o++:T===")"&&o--}const c=s.length===0?i:i.slice(l);let h=c,p=!1;c.endsWith(Cl)?(h=c.slice(0,-1),p=!0):c.startsWith(Cl)&&(h=c.slice(1),p=!0);const m=u&&u>l?u-l:void 0;return rd(s,p,h,m)};if(t){const i=t+nd,s=r;r=a=>a.startsWith(i)?s(a.slice(i.length)):rd(tx,!1,a,void 0,!0)}if(n){const i=r;r=s=>n({className:s,parseClassName:i})}return r},rx=e=>{const t=new Map;return e.orderSensitiveModifiers.forEach((n,r)=>{t.set(n,1e6+r)}),n=>{const r=[];let i=[];for(let s=0;s<n.length;s++){const a=n[s],o=a[0]==="[",l=t.has(a);o||l?(i.length>0&&(i.sort(),r.push(...i),i=[]),r.push(a)):i.push(a)}return i.length>0&&(i.sort(),r.push(...i)),r}},ix=e=>({cache:ex(e.cacheSize),parseClassName:nx(e),sortModifiers:rx(e),...WT(e)}),sx=/\s+/,ax=(e,t)=>{const{parseClassName:n,getClassGroupId:r,getConflictingClassGroupIds:i,sortModifiers:s}=t,a=[],o=e.trim().split(sx);let l="";for(let u=o.length-1;u>=0;u-=1){const d=o[u],{isExternal:c,modifiers:h,hasImportantModifier:p,baseClassName:m,maybePostfixModifierPosition:E}=n(d);if(c){l=d+(l.length>0?" "+l:l);continue}let T=!!E,b=r(T?m.substring(0,E):m);if(!b){if(!T){l=d+(l.length>0?" "+l:l);continue}if(b=r(m),!b){l=d+(l.length>0?" "+l:l);continue}T=!1}const y=h.length===0?"":h.length===1?h[0]:s(h).join(":"),k=p?y+Cl:y,P=k+b;if(a.indexOf(P)>-1)continue;a.push(P);const D=i(b,T);for(let v=0;v<D.length;++v){const A=D[v];a.push(k+A)}l=d+(l.length>0?" "+l:l)}return l},ox=(...e)=>{let t=0,n,r,i="";for(;t<e.length;)(n=e[t++])&&(r=Hp(n))&&(i&&(i+=" "),i+=r);return i},Hp=e=>{if(typeof e=="string")return e;let t,n="";for(let r=0;r<e.length;r++)e[r]&&(t=Hp(e[r]))&&(n&&(n+=" "),n+=t);return n},lx=(e,...t)=>{let n,r,i,s;const a=l=>{const u=t.reduce((d,c)=>c(d),e());return n=ix(u),r=n.cache.get,i=n.cache.set,s=o,o(l)},o=l=>{const u=r(l);if(u)return u;const d=ax(l,n);return i(l,d),d};return s=a,(...l)=>s(ox(...l))},ux=[],Et=e=>{const t=n=>n[e]||ux;return t.isThemeGetter=!0,t},Up=/^\[(?:(\w[\w-]*):)?(.+)\]$/i,jp=/^\((?:(\w[\w-]*):)?(.+)\)$/i,cx=/^\d+(?:\.\d+)?\/\d+(?:\.\d+)?$/,dx=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,fx=/\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh|cq(w|h|i|b|min|max))|\b(calc|min|max|clamp)\(.+\)|^0$/,hx=/^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix)\(.+\)$/,px=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,mx=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,sr=e=>cx.test(e),Ne=e=>!!e&&!Number.isNaN(Number(e)),ar=e=>!!e&&Number.isInteger(Number(e)),Mo=e=>e.endsWith("%")&&Ne(e.slice(0,-1)),Gn=e=>dx.test(e),zp=()=>!0,gx=e=>fx.test(e)&&!hx.test(e),Ru=()=>!1,bx=e=>px.test(e),Ex=e=>mx.test(e),Tx=e=>!ce(e)&&!fe(e),xx=e=>xr(e,Wp,Ru),ce=e=>Up.test(e),Ir=e=>xr(e,Yp,gx),id=e=>xr(e,Ix,Ne),yx=e=>xr(e,qp,zp),_x=e=>xr(e,Gp,Ru),sd=e=>xr(e,$p,Ru),kx=e=>xr(e,Vp,Ex),na=e=>xr(e,Kp,bx),fe=e=>jp.test(e),Di=e=>qr(e,Yp),wx=e=>qr(e,Gp),ad=e=>qr(e,$p),Cx=e=>qr(e,Wp),Ax=e=>qr(e,Vp),ra=e=>qr(e,Kp,!0),Sx=e=>qr(e,qp,!0),xr=(e,t,n)=>{const r=Up.exec(e);return r?r[1]?t(r[1]):n(r[2]):!1},qr=(e,t,n=!1)=>{const r=jp.exec(e);return r?r[1]?t(r[1]):n:!1},$p=e=>e==="position"||e==="percentage",Vp=e=>e==="image"||e==="url",Wp=e=>e==="length"||e==="size"||e==="bg-size",Yp=e=>e==="length",Ix=e=>e==="number",Gp=e=>e==="family-name",qp=e=>e==="number"||e==="weight",Kp=e=>e==="shadow",vx=()=>{const e=Et("color"),t=Et("font"),n=Et("text"),r=Et("font-weight"),i=Et("tracking"),s=Et("leading"),a=Et("breakpoint"),o=Et("container"),l=Et("spacing"),u=Et("radius"),d=Et("shadow"),c=Et("inset-shadow"),h=Et("text-shadow"),p=Et("drop-shadow"),m=Et("blur"),E=Et("perspective"),T=Et("aspect"),b=Et("ease"),y=Et("animate"),k=()=>["auto","avoid","all","avoid-page","page","left","right","column"],P=()=>["center","top","bottom","left","right","top-left","left-top","top-right","right-top","bottom-right","right-bottom","bottom-left","left-bottom"],D=()=>[...P(),fe,ce],v=()=>["auto","hidden","clip","visible","scroll"],A=()=>["auto","contain","none"],N=()=>[fe,ce,l],z=()=>[sr,"full","auto",...N()],R=()=>[ar,"none","subgrid",fe,ce],W=()=>["auto",{span:["full",ar,fe,ce]},ar,fe,ce],j=()=>[ar,"auto",fe,ce],w=()=>["auto","min","max","fr",fe,ce],L=()=>["start","end","center","between","around","evenly","stretch","baseline","center-safe","end-safe"],M=()=>["start","end","center","stretch","center-safe","end-safe"],H=()=>["auto",...N()],U=()=>[sr,"auto","full","dvw","dvh","lvw","lvh","svw","svh","min","max","fit",...N()],G=()=>[sr,"screen","full","dvw","lvw","svw","min","max","fit",...N()],Q=()=>[sr,"screen","full","lh","dvh","lvh","svh","min","max","fit",...N()],_=()=>[e,fe,ce],se=()=>[...P(),ad,sd,{position:[fe,ce]}],te=()=>["no-repeat",{repeat:["","x","y","space","round"]}],S=()=>["auto","cover","contain",Cx,xx,{size:[fe,ce]}],ge=()=>[Mo,Di,Ir],pe=()=>["","none","full",u,fe,ce],me=()=>["",Ne,Di,Ir],qe=()=>["solid","dashed","dotted","double"],X=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],ue=()=>[Ne,Mo,ad,sd],ke=()=>["","none",m,fe,ce],Me=()=>["none",Ne,fe,ce],Ke=()=>["none",Ne,fe,ce],ze=()=>[Ne,fe,ce],Be=()=>[sr,"full",...N()];return{cacheSize:500,theme:{animate:["spin","ping","pulse","bounce"],aspect:["video"],blur:[Gn],breakpoint:[Gn],color:[zp],container:[Gn],"drop-shadow":[Gn],ease:["in","out","in-out"],font:[Tx],"font-weight":["thin","extralight","light","normal","medium","semibold","bold","extrabold","black"],"inset-shadow":[Gn],leading:["none","tight","snug","normal","relaxed","loose"],perspective:["dramatic","near","normal","midrange","distant","none"],radius:[Gn],shadow:[Gn],spacing:["px",Ne],text:[Gn],"text-shadow":[Gn],tracking:["tighter","tight","normal","wide","wider","widest"]},classGroups:{aspect:[{aspect:["auto","square",sr,ce,fe,T]}],container:["container"],columns:[{columns:[Ne,ce,fe,o]}],"break-after":[{"break-after":k()}],"break-before":[{"break-before":k()}],"break-inside":[{"break-inside":["auto","avoid","avoid-page","avoid-column"]}],"box-decoration":[{"box-decoration":["slice","clone"]}],box:[{box:["border","content"]}],display:["block","inline-block","inline","flex","inline-flex","table","inline-table","table-caption","table-cell","table-column","table-column-group","table-footer-group","table-header-group","table-row-group","table-row","flow-root","grid","inline-grid","contents","list-item","hidden"],sr:["sr-only","not-sr-only"],float:[{float:["right","left","none","start","end"]}],clear:[{clear:["left","right","both","none","start","end"]}],isolation:["isolate","isolation-auto"],"object-fit":[{object:["contain","cover","fill","none","scale-down"]}],"object-position":[{object:D()}],overflow:[{overflow:v()}],"overflow-x":[{"overflow-x":v()}],"overflow-y":[{"overflow-y":v()}],overscroll:[{overscroll:A()}],"overscroll-x":[{"overscroll-x":A()}],"overscroll-y":[{"overscroll-y":A()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:z()}],"inset-x":[{"inset-x":z()}],"inset-y":[{"inset-y":z()}],start:[{"inset-s":z(),start:z()}],end:[{"inset-e":z(),end:z()}],"inset-bs":[{"inset-bs":z()}],"inset-be":[{"inset-be":z()}],top:[{top:z()}],right:[{right:z()}],bottom:[{bottom:z()}],left:[{left:z()}],visibility:["visible","invisible","collapse"],z:[{z:[ar,"auto",fe,ce]}],basis:[{basis:[sr,"full","auto",o,...N()]}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["nowrap","wrap","wrap-reverse"]}],flex:[{flex:[Ne,sr,"auto","initial","none",ce]}],grow:[{grow:["",Ne,fe,ce]}],shrink:[{shrink:["",Ne,fe,ce]}],order:[{order:[ar,"first","last","none",fe,ce]}],"grid-cols":[{"grid-cols":R()}],"col-start-end":[{col:W()}],"col-start":[{"col-start":j()}],"col-end":[{"col-end":j()}],"grid-rows":[{"grid-rows":R()}],"row-start-end":[{row:W()}],"row-start":[{"row-start":j()}],"row-end":[{"row-end":j()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":w()}],"auto-rows":[{"auto-rows":w()}],gap:[{gap:N()}],"gap-x":[{"gap-x":N()}],"gap-y":[{"gap-y":N()}],"justify-content":[{justify:[...L(),"normal"]}],"justify-items":[{"justify-items":[...M(),"normal"]}],"justify-self":[{"justify-self":["auto",...M()]}],"align-content":[{content:["normal",...L()]}],"align-items":[{items:[...M(),{baseline:["","last"]}]}],"align-self":[{self:["auto",...M(),{baseline:["","last"]}]}],"place-content":[{"place-content":L()}],"place-items":[{"place-items":[...M(),"baseline"]}],"place-self":[{"place-self":["auto",...M()]}],p:[{p:N()}],px:[{px:N()}],py:[{py:N()}],ps:[{ps:N()}],pe:[{pe:N()}],pbs:[{pbs:N()}],pbe:[{pbe:N()}],pt:[{pt:N()}],pr:[{pr:N()}],pb:[{pb:N()}],pl:[{pl:N()}],m:[{m:H()}],mx:[{mx:H()}],my:[{my:H()}],ms:[{ms:H()}],me:[{me:H()}],mbs:[{mbs:H()}],mbe:[{mbe:H()}],mt:[{mt:H()}],mr:[{mr:H()}],mb:[{mb:H()}],ml:[{ml:H()}],"space-x":[{"space-x":N()}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":N()}],"space-y-reverse":["space-y-reverse"],size:[{size:U()}],"inline-size":[{inline:["auto",...G()]}],"min-inline-size":[{"min-inline":["auto",...G()]}],"max-inline-size":[{"max-inline":["none",...G()]}],"block-size":[{block:["auto",...Q()]}],"min-block-size":[{"min-block":["auto",...Q()]}],"max-block-size":[{"max-block":["none",...Q()]}],w:[{w:[o,"screen",...U()]}],"min-w":[{"min-w":[o,"screen","none",...U()]}],"max-w":[{"max-w":[o,"screen","none","prose",{screen:[a]},...U()]}],h:[{h:["screen","lh",...U()]}],"min-h":[{"min-h":["screen","lh","none",...U()]}],"max-h":[{"max-h":["screen","lh",...U()]}],"font-size":[{text:["base",n,Di,Ir]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:[r,Sx,yx]}],"font-stretch":[{"font-stretch":["ultra-condensed","extra-condensed","condensed","semi-condensed","normal","semi-expanded","expanded","extra-expanded","ultra-expanded",Mo,ce]}],"font-family":[{font:[wx,_x,t]}],"font-features":[{"font-features":[ce]}],"fvn-normal":["normal-nums"],"fvn-ordinal":["ordinal"],"fvn-slashed-zero":["slashed-zero"],"fvn-figure":["lining-nums","oldstyle-nums"],"fvn-spacing":["proportional-nums","tabular-nums"],"fvn-fraction":["diagonal-fractions","stacked-fractions"],tracking:[{tracking:[i,fe,ce]}],"line-clamp":[{"line-clamp":[Ne,"none",fe,id]}],leading:[{leading:[s,...N()]}],"list-image":[{"list-image":["none",fe,ce]}],"list-style-position":[{list:["inside","outside"]}],"list-style-type":[{list:["disc","decimal","none",fe,ce]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"placeholder-color":[{placeholder:_()}],"text-color":[{text:_()}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...qe(),"wavy"]}],"text-decoration-thickness":[{decoration:[Ne,"from-font","auto",fe,Ir]}],"text-decoration-color":[{decoration:_()}],"underline-offset":[{"underline-offset":[Ne,"auto",fe,ce]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:N()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",fe,ce]}],whitespace:[{whitespace:["normal","nowrap","pre","pre-line","pre-wrap","break-spaces"]}],break:[{break:["normal","words","all","keep"]}],wrap:[{wrap:["break-word","anywhere","normal"]}],hyphens:[{hyphens:["none","manual","auto"]}],content:[{content:["none",fe,ce]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:se()}],"bg-repeat":[{bg:te()}],"bg-size":[{bg:S()}],"bg-image":[{bg:["none",{linear:[{to:["t","tr","r","br","b","bl","l","tl"]},ar,fe,ce],radial:["",fe,ce],conic:[ar,fe,ce]},Ax,kx]}],"bg-color":[{bg:_()}],"gradient-from-pos":[{from:ge()}],"gradient-via-pos":[{via:ge()}],"gradient-to-pos":[{to:ge()}],"gradient-from":[{from:_()}],"gradient-via":[{via:_()}],"gradient-to":[{to:_()}],rounded:[{rounded:pe()}],"rounded-s":[{"rounded-s":pe()}],"rounded-e":[{"rounded-e":pe()}],"rounded-t":[{"rounded-t":pe()}],"rounded-r":[{"rounded-r":pe()}],"rounded-b":[{"rounded-b":pe()}],"rounded-l":[{"rounded-l":pe()}],"rounded-ss":[{"rounded-ss":pe()}],"rounded-se":[{"rounded-se":pe()}],"rounded-ee":[{"rounded-ee":pe()}],"rounded-es":[{"rounded-es":pe()}],"rounded-tl":[{"rounded-tl":pe()}],"rounded-tr":[{"rounded-tr":pe()}],"rounded-br":[{"rounded-br":pe()}],"rounded-bl":[{"rounded-bl":pe()}],"border-w":[{border:me()}],"border-w-x":[{"border-x":me()}],"border-w-y":[{"border-y":me()}],"border-w-s":[{"border-s":me()}],"border-w-e":[{"border-e":me()}],"border-w-bs":[{"border-bs":me()}],"border-w-be":[{"border-be":me()}],"border-w-t":[{"border-t":me()}],"border-w-r":[{"border-r":me()}],"border-w-b":[{"border-b":me()}],"border-w-l":[{"border-l":me()}],"divide-x":[{"divide-x":me()}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":me()}],"divide-y-reverse":["divide-y-reverse"],"border-style":[{border:[...qe(),"hidden","none"]}],"divide-style":[{divide:[...qe(),"hidden","none"]}],"border-color":[{border:_()}],"border-color-x":[{"border-x":_()}],"border-color-y":[{"border-y":_()}],"border-color-s":[{"border-s":_()}],"border-color-e":[{"border-e":_()}],"border-color-bs":[{"border-bs":_()}],"border-color-be":[{"border-be":_()}],"border-color-t":[{"border-t":_()}],"border-color-r":[{"border-r":_()}],"border-color-b":[{"border-b":_()}],"border-color-l":[{"border-l":_()}],"divide-color":[{divide:_()}],"outline-style":[{outline:[...qe(),"none","hidden"]}],"outline-offset":[{"outline-offset":[Ne,fe,ce]}],"outline-w":[{outline:["",Ne,Di,Ir]}],"outline-color":[{outline:_()}],shadow:[{shadow:["","none",d,ra,na]}],"shadow-color":[{shadow:_()}],"inset-shadow":[{"inset-shadow":["none",c,ra,na]}],"inset-shadow-color":[{"inset-shadow":_()}],"ring-w":[{ring:me()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:_()}],"ring-offset-w":[{"ring-offset":[Ne,Ir]}],"ring-offset-color":[{"ring-offset":_()}],"inset-ring-w":[{"inset-ring":me()}],"inset-ring-color":[{"inset-ring":_()}],"text-shadow":[{"text-shadow":["none",h,ra,na]}],"text-shadow-color":[{"text-shadow":_()}],opacity:[{opacity:[Ne,fe,ce]}],"mix-blend":[{"mix-blend":[...X(),"plus-darker","plus-lighter"]}],"bg-blend":[{"bg-blend":X()}],"mask-clip":[{"mask-clip":["border","padding","content","fill","stroke","view"]},"mask-no-clip"],"mask-composite":[{mask:["add","subtract","intersect","exclude"]}],"mask-image-linear-pos":[{"mask-linear":[Ne]}],"mask-image-linear-from-pos":[{"mask-linear-from":ue()}],"mask-image-linear-to-pos":[{"mask-linear-to":ue()}],"mask-image-linear-from-color":[{"mask-linear-from":_()}],"mask-image-linear-to-color":[{"mask-linear-to":_()}],"mask-image-t-from-pos":[{"mask-t-from":ue()}],"mask-image-t-to-pos":[{"mask-t-to":ue()}],"mask-image-t-from-color":[{"mask-t-from":_()}],"mask-image-t-to-color":[{"mask-t-to":_()}],"mask-image-r-from-pos":[{"mask-r-from":ue()}],"mask-image-r-to-pos":[{"mask-r-to":ue()}],"mask-image-r-from-color":[{"mask-r-from":_()}],"mask-image-r-to-color":[{"mask-r-to":_()}],"mask-image-b-from-pos":[{"mask-b-from":ue()}],"mask-image-b-to-pos":[{"mask-b-to":ue()}],"mask-image-b-from-color":[{"mask-b-from":_()}],"mask-image-b-to-color":[{"mask-b-to":_()}],"mask-image-l-from-pos":[{"mask-l-from":ue()}],"mask-image-l-to-pos":[{"mask-l-to":ue()}],"mask-image-l-from-color":[{"mask-l-from":_()}],"mask-image-l-to-color":[{"mask-l-to":_()}],"mask-image-x-from-pos":[{"mask-x-from":ue()}],"mask-image-x-to-pos":[{"mask-x-to":ue()}],"mask-image-x-from-color":[{"mask-x-from":_()}],"mask-image-x-to-color":[{"mask-x-to":_()}],"mask-image-y-from-pos":[{"mask-y-from":ue()}],"mask-image-y-to-pos":[{"mask-y-to":ue()}],"mask-image-y-from-color":[{"mask-y-from":_()}],"mask-image-y-to-color":[{"mask-y-to":_()}],"mask-image-radial":[{"mask-radial":[fe,ce]}],"mask-image-radial-from-pos":[{"mask-radial-from":ue()}],"mask-image-radial-to-pos":[{"mask-radial-to":ue()}],"mask-image-radial-from-color":[{"mask-radial-from":_()}],"mask-image-radial-to-color":[{"mask-radial-to":_()}],"mask-image-radial-shape":[{"mask-radial":["circle","ellipse"]}],"mask-image-radial-size":[{"mask-radial":[{closest:["side","corner"],farthest:["side","corner"]}]}],"mask-image-radial-pos":[{"mask-radial-at":P()}],"mask-image-conic-pos":[{"mask-conic":[Ne]}],"mask-image-conic-from-pos":[{"mask-conic-from":ue()}],"mask-image-conic-to-pos":[{"mask-conic-to":ue()}],"mask-image-conic-from-color":[{"mask-conic-from":_()}],"mask-image-conic-to-color":[{"mask-conic-to":_()}],"mask-mode":[{mask:["alpha","luminance","match"]}],"mask-origin":[{"mask-origin":["border","padding","content","fill","stroke","view"]}],"mask-position":[{mask:se()}],"mask-repeat":[{mask:te()}],"mask-size":[{mask:S()}],"mask-type":[{"mask-type":["alpha","luminance"]}],"mask-image":[{mask:["none",fe,ce]}],filter:[{filter:["","none",fe,ce]}],blur:[{blur:ke()}],brightness:[{brightness:[Ne,fe,ce]}],contrast:[{contrast:[Ne,fe,ce]}],"drop-shadow":[{"drop-shadow":["","none",p,ra,na]}],"drop-shadow-color":[{"drop-shadow":_()}],grayscale:[{grayscale:["",Ne,fe,ce]}],"hue-rotate":[{"hue-rotate":[Ne,fe,ce]}],invert:[{invert:["",Ne,fe,ce]}],saturate:[{saturate:[Ne,fe,ce]}],sepia:[{sepia:["",Ne,fe,ce]}],"backdrop-filter":[{"backdrop-filter":["","none",fe,ce]}],"backdrop-blur":[{"backdrop-blur":ke()}],"backdrop-brightness":[{"backdrop-brightness":[Ne,fe,ce]}],"backdrop-contrast":[{"backdrop-contrast":[Ne,fe,ce]}],"backdrop-grayscale":[{"backdrop-grayscale":["",Ne,fe,ce]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[Ne,fe,ce]}],"backdrop-invert":[{"backdrop-invert":["",Ne,fe,ce]}],"backdrop-opacity":[{"backdrop-opacity":[Ne,fe,ce]}],"backdrop-saturate":[{"backdrop-saturate":[Ne,fe,ce]}],"backdrop-sepia":[{"backdrop-sepia":["",Ne,fe,ce]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":N()}],"border-spacing-x":[{"border-spacing-x":N()}],"border-spacing-y":[{"border-spacing-y":N()}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["","all","colors","opacity","shadow","transform","none",fe,ce]}],"transition-behavior":[{transition:["normal","discrete"]}],duration:[{duration:[Ne,"initial",fe,ce]}],ease:[{ease:["linear","initial",b,fe,ce]}],delay:[{delay:[Ne,fe,ce]}],animate:[{animate:["none",y,fe,ce]}],backface:[{backface:["hidden","visible"]}],perspective:[{perspective:[E,fe,ce]}],"perspective-origin":[{"perspective-origin":D()}],rotate:[{rotate:Me()}],"rotate-x":[{"rotate-x":Me()}],"rotate-y":[{"rotate-y":Me()}],"rotate-z":[{"rotate-z":Me()}],scale:[{scale:Ke()}],"scale-x":[{"scale-x":Ke()}],"scale-y":[{"scale-y":Ke()}],"scale-z":[{"scale-z":Ke()}],"scale-3d":["scale-3d"],skew:[{skew:ze()}],"skew-x":[{"skew-x":ze()}],"skew-y":[{"skew-y":ze()}],transform:[{transform:[fe,ce,"","none","gpu","cpu"]}],"transform-origin":[{origin:D()}],"transform-style":[{transform:["3d","flat"]}],translate:[{translate:Be()}],"translate-x":[{"translate-x":Be()}],"translate-y":[{"translate-y":Be()}],"translate-z":[{"translate-z":Be()}],"translate-none":["translate-none"],accent:[{accent:_()}],appearance:[{appearance:["none","auto"]}],"caret-color":[{caret:_()}],"color-scheme":[{scheme:["normal","dark","light","light-dark","only-dark","only-light"]}],cursor:[{cursor:["auto","default","pointer","wait","text","move","help","not-allowed","none","context-menu","progress","cell","crosshair","vertical-text","alias","copy","no-drop","grab","grabbing","all-scroll","col-resize","row-resize","n-resize","e-resize","s-resize","w-resize","ne-resize","nw-resize","se-resize","sw-resize","ew-resize","ns-resize","nesw-resize","nwse-resize","zoom-in","zoom-out",fe,ce]}],"field-sizing":[{"field-sizing":["fixed","content"]}],"pointer-events":[{"pointer-events":["auto","none"]}],resize:[{resize:["none","","y","x"]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scroll-m":[{"scroll-m":N()}],"scroll-mx":[{"scroll-mx":N()}],"scroll-my":[{"scroll-my":N()}],"scroll-ms":[{"scroll-ms":N()}],"scroll-me":[{"scroll-me":N()}],"scroll-mbs":[{"scroll-mbs":N()}],"scroll-mbe":[{"scroll-mbe":N()}],"scroll-mt":[{"scroll-mt":N()}],"scroll-mr":[{"scroll-mr":N()}],"scroll-mb":[{"scroll-mb":N()}],"scroll-ml":[{"scroll-ml":N()}],"scroll-p":[{"scroll-p":N()}],"scroll-px":[{"scroll-px":N()}],"scroll-py":[{"scroll-py":N()}],"scroll-ps":[{"scroll-ps":N()}],"scroll-pe":[{"scroll-pe":N()}],"scroll-pbs":[{"scroll-pbs":N()}],"scroll-pbe":[{"scroll-pbe":N()}],"scroll-pt":[{"scroll-pt":N()}],"scroll-pr":[{"scroll-pr":N()}],"scroll-pb":[{"scroll-pb":N()}],"scroll-pl":[{"scroll-pl":N()}],"snap-align":[{snap:["start","end","center","align-none"]}],"snap-stop":[{snap:["normal","always"]}],"snap-type":[{snap:["none","x","y","both"]}],"snap-strictness":[{snap:["mandatory","proximity"]}],touch:[{touch:["auto","none","manipulation"]}],"touch-x":[{"touch-pan":["x","left","right"]}],"touch-y":[{"touch-pan":["y","up","down"]}],"touch-pz":["touch-pinch-zoom"],select:[{select:["none","text","all","auto"]}],"will-change":[{"will-change":["auto","scroll","contents","transform",fe,ce]}],fill:[{fill:["none",..._()]}],"stroke-w":[{stroke:[Ne,Di,Ir,id]}],stroke:[{stroke:["none",..._()]}],"forced-color-adjust":[{"forced-color-adjust":["auto","none"]}]},conflictingClassGroups:{overflow:["overflow-x","overflow-y"],overscroll:["overscroll-x","overscroll-y"],inset:["inset-x","inset-y","inset-bs","inset-be","start","end","top","right","bottom","left"],"inset-x":["right","left"],"inset-y":["top","bottom"],flex:["basis","grow","shrink"],gap:["gap-x","gap-y"],p:["px","py","ps","pe","pbs","pbe","pt","pr","pb","pl"],px:["pr","pl"],py:["pt","pb"],m:["mx","my","ms","me","mbs","mbe","mt","mr","mb","ml"],mx:["mr","ml"],my:["mt","mb"],size:["w","h"],"font-size":["leading"],"fvn-normal":["fvn-ordinal","fvn-slashed-zero","fvn-figure","fvn-spacing","fvn-fraction"],"fvn-ordinal":["fvn-normal"],"fvn-slashed-zero":["fvn-normal"],"fvn-figure":["fvn-normal"],"fvn-spacing":["fvn-normal"],"fvn-fraction":["fvn-normal"],"line-clamp":["display","overflow"],rounded:["rounded-s","rounded-e","rounded-t","rounded-r","rounded-b","rounded-l","rounded-ss","rounded-se","rounded-ee","rounded-es","rounded-tl","rounded-tr","rounded-br","rounded-bl"],"rounded-s":["rounded-ss","rounded-es"],"rounded-e":["rounded-se","rounded-ee"],"rounded-t":["rounded-tl","rounded-tr"],"rounded-r":["rounded-tr","rounded-br"],"rounded-b":["rounded-br","rounded-bl"],"rounded-l":["rounded-tl","rounded-bl"],"border-spacing":["border-spacing-x","border-spacing-y"],"border-w":["border-w-x","border-w-y","border-w-s","border-w-e","border-w-bs","border-w-be","border-w-t","border-w-r","border-w-b","border-w-l"],"border-w-x":["border-w-r","border-w-l"],"border-w-y":["border-w-t","border-w-b"],"border-color":["border-color-x","border-color-y","border-color-s","border-color-e","border-color-bs","border-color-be","border-color-t","border-color-r","border-color-b","border-color-l"],"border-color-x":["border-color-r","border-color-l"],"border-color-y":["border-color-t","border-color-b"],translate:["translate-x","translate-y","translate-none"],"translate-none":["translate","translate-x","translate-y","translate-z"],"scroll-m":["scroll-mx","scroll-my","scroll-ms","scroll-me","scroll-mbs","scroll-mbe","scroll-mt","scroll-mr","scroll-mb","scroll-ml"],"scroll-mx":["scroll-mr","scroll-ml"],"scroll-my":["scroll-mt","scroll-mb"],"scroll-p":["scroll-px","scroll-py","scroll-ps","scroll-pe","scroll-pbs","scroll-pbe","scroll-pt","scroll-pr","scroll-pb","scroll-pl"],"scroll-px":["scroll-pr","scroll-pl"],"scroll-py":["scroll-pt","scroll-pb"],touch:["touch-x","touch-y","touch-pz"],"touch-x":["touch"],"touch-y":["touch"],"touch-pz":["touch"]},conflictingClassGroupModifiers:{"font-size":["leading"]},orderSensitiveModifiers:["*","**","after","backdrop","before","details-content","file","first-letter","first-line","marker","placeholder","selection"]}},Nu=lx(vx);/**
|
|
3
3
|
* @license lucide-react v0.575.0 - ISC
|
|
4
4
|
*
|
|
5
5
|
* This source code is licensed under the ISC license.
|
|
@@ -157,7 +157,7 @@ ${this.parser.parse(e)}</blockquote>
|
|
|
157
157
|
${e}</tr>
|
|
158
158
|
`}tablecell(e){let t=this.parser.parseInline(e.tokens),n=e.header?"th":"td";return(e.align?`<${n} align="${e.align}">`:`<${n}>`)+t+`</${n}>
|
|
159
159
|
`}strong({tokens:e}){return`<strong>${this.parser.parseInline(e)}</strong>`}em({tokens:e}){return`<em>${this.parser.parseInline(e)}</em>`}codespan({text:e}){return`<code>${Kn(e,!0)}</code>`}br(e){return"<br>"}del({tokens:e}){return`<del>${this.parser.parseInline(e)}</del>`}link({href:e,title:t,tokens:n}){let r=this.parser.parseInline(n),i=lh(e);if(i===null)return r;e=i;let s='<a href="'+e+'"';return t&&(s+=' title="'+Kn(t)+'"'),s+=">"+r+"</a>",s}image({href:e,title:t,text:n,tokens:r}){r&&(n=this.parser.parseInline(r,this.parser.textRenderer));let i=lh(e);if(i===null)return Kn(n);e=i;let s=`<img src="${e}" alt="${n}"`;return t&&(s+=` title="${Kn(t)}"`),s+=">",s}text(e){return"tokens"in e&&e.tokens?this.parser.parseInline(e.tokens):"escaped"in e&&e.escaped?e.text:Kn(e.text)}},Ac=class{strong({text:e}){return e}em({text:e}){return e}codespan({text:e}){return e}del({text:e}){return e}html({text:e}){return e}text({text:e}){return e}link({text:e}){return""+e}image({text:e}){return""+e}br(){return""}checkbox({raw:e}){return e}},wn=class iu{constructor(t){Ve(this,"options");Ve(this,"renderer");Ve(this,"textRenderer");this.options=t||ti,this.options.renderer=this.options.renderer||new Qa,this.renderer=this.options.renderer,this.renderer.options=this.options,this.renderer.parser=this,this.textRenderer=new Ac}static parse(t,n){return new iu(n).parse(t)}static parseInline(t,n){return new iu(n).parseInline(t)}parse(t){var r,i;let n="";for(let s=0;s<t.length;s++){let a=t[s];if((i=(r=this.options.extensions)==null?void 0:r.renderers)!=null&&i[a.type]){let l=a,u=this.options.extensions.renderers[l.type].call({parser:this},l);if(u!==!1||!["space","hr","heading","code","table","blockquote","list","html","def","paragraph","text"].includes(l.type)){n+=u||"";continue}}let o=a;switch(o.type){case"space":{n+=this.renderer.space(o);break}case"hr":{n+=this.renderer.hr(o);break}case"heading":{n+=this.renderer.heading(o);break}case"code":{n+=this.renderer.code(o);break}case"table":{n+=this.renderer.table(o);break}case"blockquote":{n+=this.renderer.blockquote(o);break}case"list":{n+=this.renderer.list(o);break}case"checkbox":{n+=this.renderer.checkbox(o);break}case"html":{n+=this.renderer.html(o);break}case"def":{n+=this.renderer.def(o);break}case"paragraph":{n+=this.renderer.paragraph(o);break}case"text":{n+=this.renderer.text(o);break}default:{let l='Token with "'+o.type+'" type was not found.';if(this.options.silent)return console.error(l),"";throw new Error(l)}}}return n}parseInline(t,n=this.renderer){var i,s;let r="";for(let a=0;a<t.length;a++){let o=t[a];if((s=(i=this.options.extensions)==null?void 0:i.renderers)!=null&&s[o.type]){let u=this.options.extensions.renderers[o.type].call({parser:this},o);if(u!==!1||!["escape","html","link","image","strong","em","codespan","br","del","text"].includes(o.type)){r+=u||"";continue}}let l=o;switch(l.type){case"escape":{r+=n.text(l);break}case"html":{r+=n.html(l);break}case"link":{r+=n.link(l);break}case"image":{r+=n.image(l);break}case"checkbox":{r+=n.checkbox(l);break}case"strong":{r+=n.strong(l);break}case"em":{r+=n.em(l);break}case"codespan":{r+=n.codespan(l);break}case"br":{r+=n.br(l);break}case"del":{r+=n.del(l);break}case"text":{r+=n.text(l);break}default:{let u='Token with "'+l.type+'" type was not found.';if(this.options.silent)return console.error(u),"";throw new Error(u)}}}return r}},Ta,Xi=(Ta=class{constructor(e){Ve(this,"options");Ve(this,"block");this.options=e||ti}preprocess(e){return e}postprocess(e){return e}processAllTokens(e){return e}emStrongMask(e){return e}provideLexer(){return this.block?hn.lex:hn.lexInline}provideParser(){return this.block?wn.parse:wn.parseInline}},Ve(Ta,"passThroughHooks",new Set(["preprocess","postprocess","processAllTokens","emStrongMask"])),Ve(Ta,"passThroughHooksRespectAsync",new Set(["preprocess","postprocess","processAllTokens"])),Ta),ML=class{constructor(...e){Ve(this,"defaults",Ec());Ve(this,"options",this.setOptions);Ve(this,"parse",this.parseMarkdown(!0));Ve(this,"parseInline",this.parseMarkdown(!1));Ve(this,"Parser",wn);Ve(this,"Renderer",Qa);Ve(this,"TextRenderer",Ac);Ve(this,"Lexer",hn);Ve(this,"Tokenizer",Xa);Ve(this,"Hooks",Xi);this.use(...e)}walkTokens(e,t){var r,i;let n=[];for(let s of e)switch(n=n.concat(t.call(this,s)),s.type){case"table":{let a=s;for(let o of a.header)n=n.concat(this.walkTokens(o.tokens,t));for(let o of a.rows)for(let l of o)n=n.concat(this.walkTokens(l.tokens,t));break}case"list":{let a=s;n=n.concat(this.walkTokens(a.items,t));break}default:{let a=s;(i=(r=this.defaults.extensions)==null?void 0:r.childTokens)!=null&&i[a.type]?this.defaults.extensions.childTokens[a.type].forEach(o=>{let l=a[o].flat(1/0);n=n.concat(this.walkTokens(l,t))}):a.tokens&&(n=n.concat(this.walkTokens(a.tokens,t)))}}return n}use(...e){let t=this.defaults.extensions||{renderers:{},childTokens:{}};return e.forEach(n=>{let r={...n};if(r.async=this.defaults.async||r.async||!1,n.extensions&&(n.extensions.forEach(i=>{if(!i.name)throw new Error("extension name required");if("renderer"in i){let s=t.renderers[i.name];s?t.renderers[i.name]=function(...a){let o=i.renderer.apply(this,a);return o===!1&&(o=s.apply(this,a)),o}:t.renderers[i.name]=i.renderer}if("tokenizer"in i){if(!i.level||i.level!=="block"&&i.level!=="inline")throw new Error("extension level must be 'block' or 'inline'");let s=t[i.level];s?s.unshift(i.tokenizer):t[i.level]=[i.tokenizer],i.start&&(i.level==="block"?t.startBlock?t.startBlock.push(i.start):t.startBlock=[i.start]:i.level==="inline"&&(t.startInline?t.startInline.push(i.start):t.startInline=[i.start]))}"childTokens"in i&&i.childTokens&&(t.childTokens[i.name]=i.childTokens)}),r.extensions=t),n.renderer){let i=this.defaults.renderer||new Qa(this.defaults);for(let s in n.renderer){if(!(s in i))throw new Error(`renderer '${s}' does not exist`);if(["options","parser"].includes(s))continue;let a=s,o=n.renderer[a],l=i[a];i[a]=(...u)=>{let d=o.apply(i,u);return d===!1&&(d=l.apply(i,u)),d||""}}r.renderer=i}if(n.tokenizer){let i=this.defaults.tokenizer||new Xa(this.defaults);for(let s in n.tokenizer){if(!(s in i))throw new Error(`tokenizer '${s}' does not exist`);if(["options","rules","lexer"].includes(s))continue;let a=s,o=n.tokenizer[a],l=i[a];i[a]=(...u)=>{let d=o.apply(i,u);return d===!1&&(d=l.apply(i,u)),d}}r.tokenizer=i}if(n.hooks){let i=this.defaults.hooks||new Xi;for(let s in n.hooks){if(!(s in i))throw new Error(`hook '${s}' does not exist`);if(["options","block"].includes(s))continue;let a=s,o=n.hooks[a],l=i[a];Xi.passThroughHooks.has(s)?i[a]=u=>{if(this.defaults.async&&Xi.passThroughHooksRespectAsync.has(s))return(async()=>{let c=await o.call(i,u);return l.call(i,c)})();let d=o.call(i,u);return l.call(i,d)}:i[a]=(...u)=>{if(this.defaults.async)return(async()=>{let c=await o.apply(i,u);return c===!1&&(c=await l.apply(i,u)),c})();let d=o.apply(i,u);return d===!1&&(d=l.apply(i,u)),d}}r.hooks=i}if(n.walkTokens){let i=this.defaults.walkTokens,s=n.walkTokens;r.walkTokens=function(a){let o=[];return o.push(s.call(this,a)),i&&(o=o.concat(i.call(this,a))),o}}this.defaults={...this.defaults,...r}}),this}setOptions(e){return this.defaults={...this.defaults,...e},this}lexer(e,t){return hn.lex(e,t??this.defaults)}parser(e,t){return wn.parse(e,t??this.defaults)}parseMarkdown(e){return(t,n)=>{let r={...n},i={...this.defaults,...r},s=this.onError(!!i.silent,!!i.async);if(this.defaults.async===!0&&r.async===!1)return s(new Error("marked(): The async option was set to true by an extension. Remove async: false from the parse options object to return a Promise."));if(typeof t>"u"||t===null)return s(new Error("marked(): input parameter is undefined or null"));if(typeof t!="string")return s(new Error("marked(): input parameter is of type "+Object.prototype.toString.call(t)+", string expected"));if(i.hooks&&(i.hooks.options=i,i.hooks.block=e),i.async)return(async()=>{let a=i.hooks?await i.hooks.preprocess(t):t,o=await(i.hooks?await i.hooks.provideLexer():e?hn.lex:hn.lexInline)(a,i),l=i.hooks?await i.hooks.processAllTokens(o):o;i.walkTokens&&await Promise.all(this.walkTokens(l,i.walkTokens));let u=await(i.hooks?await i.hooks.provideParser():e?wn.parse:wn.parseInline)(l,i);return i.hooks?await i.hooks.postprocess(u):u})().catch(s);try{i.hooks&&(t=i.hooks.preprocess(t));let a=(i.hooks?i.hooks.provideLexer():e?hn.lex:hn.lexInline)(t,i);i.hooks&&(a=i.hooks.processAllTokens(a)),i.walkTokens&&this.walkTokens(a,i.walkTokens);let o=(i.hooks?i.hooks.provideParser():e?wn.parse:wn.parseInline)(a,i);return i.hooks&&(o=i.hooks.postprocess(o)),o}catch(a){return s(a)}}}onError(e,t){return n=>{if(n.message+=`
|
|
160
|
-
Please report this to https://github.com/markedjs/marked.`,e){let r="<p>An error occurred:</p><pre>"+Kn(n.message+"",!0)+"</pre>";return t?Promise.resolve(r):r}if(t)return Promise.reject(n);throw n}}},Vr=new ML;function Qe(e,t){return Vr.parse(e,t)}Qe.options=Qe.setOptions=function(e){return Vr.setOptions(e),Qe.defaults=Vr.defaults,c1(Qe.defaults),Qe};Qe.getDefaults=Ec;Qe.defaults=ti;Qe.use=function(...e){return Vr.use(...e),Qe.defaults=Vr.defaults,c1(Qe.defaults),Qe};Qe.walkTokens=function(e,t){return Vr.walkTokens(e,t)};Qe.parseInline=Vr.parseInline;Qe.Parser=wn;Qe.parser=wn.parse;Qe.Renderer=Qa;Qe.TextRenderer=Ac;Qe.Lexer=hn;Qe.lexer=hn.lex;Qe.Tokenizer=Xa;Qe.Hooks=Xi;Qe.parse=Qe;Qe.options;Qe.setOptions;Qe.use;Qe.walkTokens;Qe.parseInline;wn.parse;hn.lex;var BL=300,FL="300px",HL=500;function UL(e={}){let{immediate:t=!1,debounceDelay:n=BL,rootMargin:r=FL,idleTimeout:i=HL}=e,[s,a]=x.useState(!1),o=x.useRef(null),l=x.useRef(null),u=x.useRef(null),d=x.useMemo(()=>p=>{let m=Date.now();return window.setTimeout(()=>{p({didTimeout:!1,timeRemaining:()=>Math.max(0,50-(Date.now()-m))})},1)},[]),c=x.useMemo(()=>typeof window<"u"&&window.requestIdleCallback?(p,m)=>window.requestIdleCallback(p,m):d,[d]),h=x.useMemo(()=>typeof window<"u"&&window.cancelIdleCallback?p=>window.cancelIdleCallback(p):p=>{clearTimeout(p)},[]);return x.useEffect(()=>{if(t){a(!0);return}let p=o.current;if(!p)return;l.current&&(clearTimeout(l.current),l.current=null),u.current&&(h(u.current),u.current=null);let m=()=>{l.current&&(clearTimeout(l.current),l.current=null),u.current&&(h(u.current),u.current=null)},E=k=>{u.current=c(P=>{P.timeRemaining()>0||P.didTimeout?(a(!0),k.disconnect()):u.current=c(()=>{a(!0),k.disconnect()},{timeout:i/2})},{timeout:i})},T=k=>{m(),l.current=window.setTimeout(()=>{var P,D;let v=k.takeRecords();(v.length===0||(D=(P=v.at(-1))==null?void 0:P.isIntersecting)!=null&&D)&&E(k)},n)},b=(k,P)=>{k.isIntersecting?T(P):m()},y=new IntersectionObserver(k=>{for(let P of k)b(P,y)},{rootMargin:r,threshold:0});return y.observe(p),()=>{l.current&&clearTimeout(l.current),u.current&&h(u.current),y.disconnect()}},[t,n,r,i,h,c]),{shouldRender:s,containerRef:o}}var _1=/\s/,jL=/^\s+$/,zL=new Set(["code","pre","svg","math","annotation"]),$L=e=>typeof e=="object"&&e!==null&&"type"in e&&e.type==="element",VL=e=>e.some(t=>$L(t)&&zL.has(t.tagName)),WL=e=>{let t=[],n="",r=!1;for(let i of e){let s=_1.test(i);s!==r&&n&&(t.push(n),n=""),n+=i,r=s}return n&&t.push(n),t},YL=e=>{let t=[],n="";for(let r of e)_1.test(r)?n+=r:(n&&(t.push(n),n=""),t.push(r));return n&&t.push(n),t},GL=(e,t,n,r)=>({type:"element",tagName:"span",properties:{"data-sd-animate":!0,style:`--sd-animation:sd-${t};--sd-duration:${n}ms;--sd-easing:${r}`},children:[{type:"text",value:e}]}),qL=(e,t,n)=>{let r=t.at(-1);if(!(r&&"children"in r))return;if(VL(t))return dg;let i=r,s=i.children.indexOf(e);if(s===-1)return;let a=e.value;if(!a.trim())return;let o=(n.sep==="char"?YL(a):WL(a)).map(l=>jL.test(l)?{type:"text",value:l}:GL(l,n.animation,n.duration,n.easing));return i.children.splice(s,1,...o),s+o.length};function su(e){var t,n,r,i;let s={animation:(t=e==null?void 0:e.animation)!=null?t:"fadeIn",duration:(n=e==null?void 0:e.duration)!=null?n:150,easing:(r=e==null?void 0:e.easing)!=null?r:"ease",sep:(i=e==null?void 0:e.sep)!=null?i:"word"};return{name:"animate",type:"animate",rehypePlugin:()=>a=>{fg(a,"text",(o,l)=>qL(o,l,s))}}}su();var k1=x.createContext(!1),KL=()=>x.useContext(k1),ye=(...e)=>Nu(Pt(e)),bi=(e,t,n)=>{let r=typeof t=="string"?new Blob([t],{type:n}):t,i=URL.createObjectURL(r),s=document.createElement("a");s.href=i,s.download=e,document.body.appendChild(s),s.click(),document.body.removeChild(s),URL.revokeObjectURL(i)},XL=ye("block","before:content-[counter(line)]","before:inline-block","before:[counter-increment:line]","before:w-6","before:mr-4","before:text-[13px]","before:text-right","before:text-muted-foreground/50","before:font-mono","before:select-none"),QL=e=>{let t={};for(let n of e.split(";")){let r=n.indexOf(":");if(r>0){let i=n.slice(0,r).trim(),s=n.slice(r+1).trim();i&&s&&(t[i]=s)}}return t},ZL=x.memo(({children:e,result:t,language:n,className:r,...i})=>{let s=x.useMemo(()=>{let a={};return t.bg&&(a["--sdm-bg"]=t.bg),t.fg&&(a["--sdm-fg"]=t.fg),t.rootStyle&&Object.assign(a,QL(t.rootStyle)),a},[t.bg,t.fg,t.rootStyle]);return g.jsx("div",{className:ye(r,"overflow-hidden rounded-md border border-border bg-background p-4 text-sm"),"data-language":n,"data-streamdown":"code-block-body",...i,children:g.jsx("pre",{className:ye(r,"bg-[var(--sdm-bg,inherit]","dark:bg-[var(--shiki-dark-bg,var(--sdm-bg,inherit)]"),style:s,children:g.jsx("code",{className:"[counter-increment:line_0] [counter-reset:line]",children:t.tokens.map((a,o)=>g.jsx("span",{className:XL,children:a.map((l,u)=>{let d={},c=!!l.bgColor;if(l.color&&(d["--sdm-c"]=l.color),l.bgColor&&(d["--sdm-tbg"]=l.bgColor),l.htmlStyle)for(let[h,p]of Object.entries(l.htmlStyle))h==="color"?d["--sdm-c"]=p:h==="background-color"?(d["--sdm-tbg"]=p,c=!0):d[h]=p;return g.jsx("span",{className:ye("text-[var(--sdm-c,inherit)]","dark:text-[var(--shiki-dark,var(--sdm-c,inherit))]",c&&"bg-[var(--sdm-tbg)]",c&&"dark:bg-[var(--shiki-dark-bg,var(--sdm-tbg))]"),style:d,...l.htmlAttrs,children:l.content},u)})},o))})})})},(e,t)=>e.result===t.result&&e.language===t.language&&e.className===t.className),JL=({className:e,language:t,style:n,isIncomplete:r,...i})=>g.jsx("div",{className:ye("my-4 flex w-full flex-col gap-2 rounded-xl border border-border bg-sidebar p-2",e),"data-incomplete":r||void 0,"data-language":t,"data-streamdown":"code-block",style:{contentVisibility:"auto",containIntrinsicSize:"auto 200px",...n},...i}),w1=x.createContext({code:""}),C1=()=>x.useContext(w1),e6=({language:e})=>g.jsx("div",{className:"flex h-8 items-center text-muted-foreground text-xs","data-language":e,"data-streamdown":"code-block-header",children:g.jsx("span",{className:"ml-1 font-mono lowercase",children:e})}),t6=/\n+$/,n6=x.lazy(()=>_s(()=>import("./highlighted-body-B3W2YXNL-
|
|
160
|
+
Please report this to https://github.com/markedjs/marked.`,e){let r="<p>An error occurred:</p><pre>"+Kn(n.message+"",!0)+"</pre>";return t?Promise.resolve(r):r}if(t)return Promise.reject(n);throw n}}},Vr=new ML;function Qe(e,t){return Vr.parse(e,t)}Qe.options=Qe.setOptions=function(e){return Vr.setOptions(e),Qe.defaults=Vr.defaults,c1(Qe.defaults),Qe};Qe.getDefaults=Ec;Qe.defaults=ti;Qe.use=function(...e){return Vr.use(...e),Qe.defaults=Vr.defaults,c1(Qe.defaults),Qe};Qe.walkTokens=function(e,t){return Vr.walkTokens(e,t)};Qe.parseInline=Vr.parseInline;Qe.Parser=wn;Qe.parser=wn.parse;Qe.Renderer=Qa;Qe.TextRenderer=Ac;Qe.Lexer=hn;Qe.lexer=hn.lex;Qe.Tokenizer=Xa;Qe.Hooks=Xi;Qe.parse=Qe;Qe.options;Qe.setOptions;Qe.use;Qe.walkTokens;Qe.parseInline;wn.parse;hn.lex;var BL=300,FL="300px",HL=500;function UL(e={}){let{immediate:t=!1,debounceDelay:n=BL,rootMargin:r=FL,idleTimeout:i=HL}=e,[s,a]=x.useState(!1),o=x.useRef(null),l=x.useRef(null),u=x.useRef(null),d=x.useMemo(()=>p=>{let m=Date.now();return window.setTimeout(()=>{p({didTimeout:!1,timeRemaining:()=>Math.max(0,50-(Date.now()-m))})},1)},[]),c=x.useMemo(()=>typeof window<"u"&&window.requestIdleCallback?(p,m)=>window.requestIdleCallback(p,m):d,[d]),h=x.useMemo(()=>typeof window<"u"&&window.cancelIdleCallback?p=>window.cancelIdleCallback(p):p=>{clearTimeout(p)},[]);return x.useEffect(()=>{if(t){a(!0);return}let p=o.current;if(!p)return;l.current&&(clearTimeout(l.current),l.current=null),u.current&&(h(u.current),u.current=null);let m=()=>{l.current&&(clearTimeout(l.current),l.current=null),u.current&&(h(u.current),u.current=null)},E=k=>{u.current=c(P=>{P.timeRemaining()>0||P.didTimeout?(a(!0),k.disconnect()):u.current=c(()=>{a(!0),k.disconnect()},{timeout:i/2})},{timeout:i})},T=k=>{m(),l.current=window.setTimeout(()=>{var P,D;let v=k.takeRecords();(v.length===0||(D=(P=v.at(-1))==null?void 0:P.isIntersecting)!=null&&D)&&E(k)},n)},b=(k,P)=>{k.isIntersecting?T(P):m()},y=new IntersectionObserver(k=>{for(let P of k)b(P,y)},{rootMargin:r,threshold:0});return y.observe(p),()=>{l.current&&clearTimeout(l.current),u.current&&h(u.current),y.disconnect()}},[t,n,r,i,h,c]),{shouldRender:s,containerRef:o}}var _1=/\s/,jL=/^\s+$/,zL=new Set(["code","pre","svg","math","annotation"]),$L=e=>typeof e=="object"&&e!==null&&"type"in e&&e.type==="element",VL=e=>e.some(t=>$L(t)&&zL.has(t.tagName)),WL=e=>{let t=[],n="",r=!1;for(let i of e){let s=_1.test(i);s!==r&&n&&(t.push(n),n=""),n+=i,r=s}return n&&t.push(n),t},YL=e=>{let t=[],n="";for(let r of e)_1.test(r)?n+=r:(n&&(t.push(n),n=""),t.push(r));return n&&t.push(n),t},GL=(e,t,n,r)=>({type:"element",tagName:"span",properties:{"data-sd-animate":!0,style:`--sd-animation:sd-${t};--sd-duration:${n}ms;--sd-easing:${r}`},children:[{type:"text",value:e}]}),qL=(e,t,n)=>{let r=t.at(-1);if(!(r&&"children"in r))return;if(VL(t))return dg;let i=r,s=i.children.indexOf(e);if(s===-1)return;let a=e.value;if(!a.trim())return;let o=(n.sep==="char"?YL(a):WL(a)).map(l=>jL.test(l)?{type:"text",value:l}:GL(l,n.animation,n.duration,n.easing));return i.children.splice(s,1,...o),s+o.length};function su(e){var t,n,r,i;let s={animation:(t=e==null?void 0:e.animation)!=null?t:"fadeIn",duration:(n=e==null?void 0:e.duration)!=null?n:150,easing:(r=e==null?void 0:e.easing)!=null?r:"ease",sep:(i=e==null?void 0:e.sep)!=null?i:"word"};return{name:"animate",type:"animate",rehypePlugin:()=>a=>{fg(a,"text",(o,l)=>qL(o,l,s))}}}su();var k1=x.createContext(!1),KL=()=>x.useContext(k1),ye=(...e)=>Nu(Pt(e)),bi=(e,t,n)=>{let r=typeof t=="string"?new Blob([t],{type:n}):t,i=URL.createObjectURL(r),s=document.createElement("a");s.href=i,s.download=e,document.body.appendChild(s),s.click(),document.body.removeChild(s),URL.revokeObjectURL(i)},XL=ye("block","before:content-[counter(line)]","before:inline-block","before:[counter-increment:line]","before:w-6","before:mr-4","before:text-[13px]","before:text-right","before:text-muted-foreground/50","before:font-mono","before:select-none"),QL=e=>{let t={};for(let n of e.split(";")){let r=n.indexOf(":");if(r>0){let i=n.slice(0,r).trim(),s=n.slice(r+1).trim();i&&s&&(t[i]=s)}}return t},ZL=x.memo(({children:e,result:t,language:n,className:r,...i})=>{let s=x.useMemo(()=>{let a={};return t.bg&&(a["--sdm-bg"]=t.bg),t.fg&&(a["--sdm-fg"]=t.fg),t.rootStyle&&Object.assign(a,QL(t.rootStyle)),a},[t.bg,t.fg,t.rootStyle]);return g.jsx("div",{className:ye(r,"overflow-hidden rounded-md border border-border bg-background p-4 text-sm"),"data-language":n,"data-streamdown":"code-block-body",...i,children:g.jsx("pre",{className:ye(r,"bg-[var(--sdm-bg,inherit]","dark:bg-[var(--shiki-dark-bg,var(--sdm-bg,inherit)]"),style:s,children:g.jsx("code",{className:"[counter-increment:line_0] [counter-reset:line]",children:t.tokens.map((a,o)=>g.jsx("span",{className:XL,children:a.map((l,u)=>{let d={},c=!!l.bgColor;if(l.color&&(d["--sdm-c"]=l.color),l.bgColor&&(d["--sdm-tbg"]=l.bgColor),l.htmlStyle)for(let[h,p]of Object.entries(l.htmlStyle))h==="color"?d["--sdm-c"]=p:h==="background-color"?(d["--sdm-tbg"]=p,c=!0):d[h]=p;return g.jsx("span",{className:ye("text-[var(--sdm-c,inherit)]","dark:text-[var(--shiki-dark,var(--sdm-c,inherit))]",c&&"bg-[var(--sdm-tbg)]",c&&"dark:bg-[var(--shiki-dark-bg,var(--sdm-tbg))]"),style:d,...l.htmlAttrs,children:l.content},u)})},o))})})})},(e,t)=>e.result===t.result&&e.language===t.language&&e.className===t.className),JL=({className:e,language:t,style:n,isIncomplete:r,...i})=>g.jsx("div",{className:ye("my-4 flex w-full flex-col gap-2 rounded-xl border border-border bg-sidebar p-2",e),"data-incomplete":r||void 0,"data-language":t,"data-streamdown":"code-block",style:{contentVisibility:"auto",containIntrinsicSize:"auto 200px",...n},...i}),w1=x.createContext({code:""}),C1=()=>x.useContext(w1),e6=({language:e})=>g.jsx("div",{className:"flex h-8 items-center text-muted-foreground text-xs","data-language":e,"data-streamdown":"code-block-header",children:g.jsx("span",{className:"ml-1 font-mono lowercase",children:e})}),t6=/\n+$/,n6=x.lazy(()=>_s(()=>import("./highlighted-body-B3W2YXNL-B2Qjtd6a.js"),__vite__mapDeps([0,1])).then(e=>({default:e.HighlightedCodeBlockBody}))),r6=({code:e,language:t,className:n,children:r,isIncomplete:i=!1,...s})=>{let a=x.useMemo(()=>e.replace(t6,""),[e]),o=x.useMemo(()=>({bg:"transparent",fg:"inherit",tokens:a.split(`
|
|
161
161
|
`).map(l=>[{content:l,color:"inherit",bgColor:"transparent",htmlStyle:{},offset:0}])}),[a]);return g.jsx(w1.Provider,{value:{code:e},children:g.jsxs(JL,{isIncomplete:i,language:t,children:[g.jsx(e6,{language:t}),r?g.jsx("div",{className:"pointer-events-none sticky top-2 z-10 -mt-10 flex h-8 items-center justify-end",children:g.jsx("div",{className:"pointer-events-auto flex shrink-0 items-center gap-2 rounded-md border border-sidebar bg-sidebar/80 px-1.5 py-1 supports-[backdrop-filter]:bg-sidebar/70 supports-[backdrop-filter]:backdrop-blur","data-streamdown":"code-block-actions",children:r})}):null,g.jsx(x.Suspense,{fallback:g.jsx(ZL,{className:n,language:t,result:o,...s}),children:g.jsx(n6,{className:n,code:a,language:t,raw:o,...s})})]})})},Sc=e=>g.jsx("svg",{color:"currentColor",height:16,strokeLinejoin:"round",viewBox:"0 0 16 16",width:16,...e,children:g.jsx("path",{clipRule:"evenodd",d:"M15.5607 3.99999L15.0303 4.53032L6.23744 13.3232C5.55403 14.0066 4.44599 14.0066 3.76257 13.3232L4.2929 12.7929L3.76257 13.3232L0.969676 10.5303L0.439346 9.99999L1.50001 8.93933L2.03034 9.46966L4.82323 12.2626C4.92086 12.3602 5.07915 12.3602 5.17678 12.2626L13.9697 3.46966L14.5 2.93933L15.5607 3.99999Z",fill:"currentColor",fillRule:"evenodd"})}),Ic=e=>g.jsx("svg",{color:"currentColor",height:16,strokeLinejoin:"round",viewBox:"0 0 16 16",width:16,...e,children:g.jsx("path",{clipRule:"evenodd",d:"M2.75 0.5C1.7835 0.5 1 1.2835 1 2.25V9.75C1 10.7165 1.7835 11.5 2.75 11.5H3.75H4.5V10H3.75H2.75C2.61193 10 2.5 9.88807 2.5 9.75V2.25C2.5 2.11193 2.61193 2 2.75 2H8.25C8.38807 2 8.5 2.11193 8.5 2.25V3H10V2.25C10 1.2835 9.2165 0.5 8.25 0.5H2.75ZM7.75 4.5C6.7835 4.5 6 5.2835 6 6.25V13.75C6 14.7165 6.7835 15.5 7.75 15.5H13.25C14.2165 15.5 15 14.7165 15 13.75V6.25C15 5.2835 14.2165 4.5 13.25 4.5H7.75ZM7.5 6.25C7.5 6.11193 7.61193 6 7.75 6H13.25C13.3881 6 13.5 6.11193 13.5 6.25V13.75C13.5 13.8881 13.3881 14 13.25 14H7.75C7.61193 14 7.5 13.8881 7.5 13.75V6.25Z",fill:"currentColor",fillRule:"evenodd"})}),Io=e=>g.jsx("svg",{color:"currentColor",height:16,strokeLinejoin:"round",viewBox:"0 0 16 16",width:16,...e,children:g.jsx("path",{clipRule:"evenodd",d:"M8.75 1V1.75V8.68934L10.7197 6.71967L11.25 6.18934L12.3107 7.25L11.7803 7.78033L8.70711 10.8536C8.31658 11.2441 7.68342 11.2441 7.29289 10.8536L4.21967 7.78033L3.68934 7.25L4.75 6.18934L5.28033 6.71967L7.25 8.68934V1.75V1H8.75ZM13.5 9.25V13.5H2.5V9.25V8.5H1V9.25V14C1 14.5523 1.44771 15 2 15H14C14.5523 15 15 14.5523 15 14V9.25V8.5H13.5V9.25Z",fill:"currentColor",fillRule:"evenodd"})}),i6=e=>g.jsxs("svg",{color:"currentColor",height:16,strokeLinejoin:"round",viewBox:"0 0 16 16",width:16,...e,children:[g.jsx("path",{d:"M8 0V4",stroke:"currentColor",strokeWidth:"1.5"}),g.jsx("path",{d:"M8 16V12",opacity:"0.5",stroke:"currentColor",strokeWidth:"1.5"}),g.jsx("path",{d:"M3.29773 1.52783L5.64887 4.7639",opacity:"0.9",stroke:"currentColor",strokeWidth:"1.5"}),g.jsx("path",{d:"M12.7023 1.52783L10.3511 4.7639",opacity:"0.1",stroke:"currentColor",strokeWidth:"1.5"}),g.jsx("path",{d:"M12.7023 14.472L10.3511 11.236",opacity:"0.4",stroke:"currentColor",strokeWidth:"1.5"}),g.jsx("path",{d:"M3.29773 14.472L5.64887 11.236",opacity:"0.6",stroke:"currentColor",strokeWidth:"1.5"}),g.jsx("path",{d:"M15.6085 5.52783L11.8043 6.7639",opacity:"0.2",stroke:"currentColor",strokeWidth:"1.5"}),g.jsx("path",{d:"M0.391602 10.472L4.19583 9.23598",opacity:"0.7",stroke:"currentColor",strokeWidth:"1.5"}),g.jsx("path",{d:"M15.6085 10.4722L11.8043 9.2361",opacity:"0.3",stroke:"currentColor",strokeWidth:"1.5"}),g.jsx("path",{d:"M0.391602 5.52783L4.19583 6.7639",opacity:"0.8",stroke:"currentColor",strokeWidth:"1.5"})]}),s6=e=>g.jsx("svg",{color:"currentColor",height:16,strokeLinejoin:"round",viewBox:"0 0 16 16",width:16,...e,children:g.jsx("path",{clipRule:"evenodd",d:"M1 5.25V6H2.5V5.25V2.5H5.25H6V1H5.25H2C1.44772 1 1 1.44772 1 2V5.25ZM5.25 14.9994H6V13.4994H5.25H2.5V10.7494V9.99939H1V10.7494V13.9994C1 14.5517 1.44772 14.9994 2 14.9994H5.25ZM15 10V10.75V14C15 14.5523 14.5523 15 14 15H10.75H10V13.5H10.75H13.5V10.75V10H15ZM10.75 1H10V2.5H10.75H13.5V5.25V6H15V5.25V2C15 1.44772 14.5523 1 14 1H10.75Z",fill:"currentColor",fillRule:"evenodd"})}),a6=e=>g.jsx("svg",{color:"currentColor",height:16,strokeLinejoin:"round",viewBox:"0 0 16 16",width:16,...e,children:g.jsx("path",{clipRule:"evenodd",d:"M13.5 8C13.5 4.96643 11.0257 2.5 7.96452 2.5C5.42843 2.5 3.29365 4.19393 2.63724 6.5H5.25H6V8H5.25H0.75C0.335787 8 0 7.66421 0 7.25V2.75V2H1.5V2.75V5.23347C2.57851 2.74164 5.06835 1 7.96452 1C11.8461 1 15 4.13001 15 8C15 11.87 11.8461 15 7.96452 15C5.62368 15 3.54872 13.8617 2.27046 12.1122L1.828 11.5066L3.03915 10.6217L3.48161 11.2273C4.48831 12.6051 6.12055 13.5 7.96452 13.5C11.0257 13.5 13.5 11.0336 13.5 8Z",fill:"currentColor",fillRule:"evenodd"})}),A1=e=>g.jsx("svg",{color:"currentColor",height:16,strokeLinejoin:"round",viewBox:"0 0 16 16",width:16,...e,children:g.jsx("path",{clipRule:"evenodd",d:"M12.4697 13.5303L13 14.0607L14.0607 13L13.5303 12.4697L9.06065 7.99999L13.5303 3.53032L14.0607 2.99999L13 1.93933L12.4697 2.46966L7.99999 6.93933L3.53032 2.46966L2.99999 1.93933L1.93933 2.99999L2.46966 3.53032L6.93933 7.99999L2.46966 12.4697L1.93933 13L2.99999 14.0607L3.53032 13.5303L7.99999 9.06065L12.4697 13.5303Z",fill:"currentColor",fillRule:"evenodd"})}),dh=e=>g.jsx("svg",{color:"currentColor",height:16,strokeLinejoin:"round",viewBox:"0 0 16 16",width:16,...e,children:g.jsx("path",{clipRule:"evenodd",d:"M13.5 10.25V13.25C13.5 13.3881 13.3881 13.5 13.25 13.5H2.75C2.61193 13.5 2.5 13.3881 2.5 13.25L2.5 2.75C2.5 2.61193 2.61193 2.5 2.75 2.5H5.75H6.5V1H5.75H2.75C1.7835 1 1 1.7835 1 2.75V13.25C1 14.2165 1.7835 15 2.75 15H13.25C14.2165 15 15 14.2165 15 13.25V10.25V9.5H13.5V10.25ZM9 1H9.75H14.2495C14.6637 1 14.9995 1.33579 14.9995 1.75V6.25V7H13.4995V6.25V3.56066L8.53033 8.52978L8 9.06011L6.93934 7.99945L7.46967 7.46912L12.4388 2.5H9.75H9V1Z",fill:"currentColor",fillRule:"evenodd"})}),o6=e=>g.jsx("svg",{color:"currentColor",height:16,strokeLinejoin:"round",viewBox:"0 0 16 16",width:16,...e,children:g.jsx("path",{clipRule:"evenodd",d:"M1.5 6.5C1.5 3.73858 3.73858 1.5 6.5 1.5C9.26142 1.5 11.5 3.73858 11.5 6.5C11.5 9.26142 9.26142 11.5 6.5 11.5C3.73858 11.5 1.5 9.26142 1.5 6.5ZM6.5 0C2.91015 0 0 2.91015 0 6.5C0 10.0899 2.91015 13 6.5 13C8.02469 13 9.42677 12.475 10.5353 11.596L13.9697 15.0303L14.5 15.5607L15.5607 14.5L15.0303 13.9697L11.596 10.5353C12.475 9.42677 13 8.02469 13 6.5C13 2.91015 10.0899 0 6.5 0ZM4.125 5.875H4.75H5.875V4.75V4.125H7.125V4.75V5.875H8.25H8.875V7.125H8.25H7.125V8.25V8.875H5.875V8.25V7.125H4.75H4.125V5.875Z",fill:"currentColor",fillRule:"evenodd"})}),l6=e=>g.jsx("svg",{color:"currentColor",height:16,strokeLinejoin:"round",viewBox:"0 0 16 16",width:16,...e,children:g.jsx("path",{clipRule:"evenodd",d:"M1.5 6.5C1.5 3.73858 3.73858 1.5 6.5 1.5C9.26142 1.5 11.5 3.73858 11.5 6.5C11.5 9.26142 9.26142 11.5 6.5 11.5C3.73858 11.5 1.5 9.26142 1.5 6.5ZM6.5 0C2.91015 0 0 2.91015 0 6.5C0 10.0899 2.91015 13 6.5 13C8.02469 13 9.42677 12.475 10.5353 11.596L13.9697 15.0303L14.5 15.5607L15.5607 14.5L15.0303 13.9697L11.596 10.5353C12.475 9.42677 13 8.02469 13 6.5C13 2.91015 10.0899 0 6.5 0ZM4.125 5.875H4.75H8.25H8.875V7.125H8.25H4.75H4.125V5.875Z",fill:"currentColor",fillRule:"evenodd"})}),fh=({onCopy:e,onError:t,timeout:n=2e3,children:r,className:i,code:s,...a})=>{let[o,l]=x.useState(!1),u=x.useRef(0),{code:d}=C1(),{isAnimating:c}=x.useContext(En),h=s??d,p=async()=>{var E;if(typeof window>"u"||!((E=navigator==null?void 0:navigator.clipboard)!=null&&E.writeText)){t==null||t(new Error("Clipboard API not available"));return}try{o||(await navigator.clipboard.writeText(h),l(!0),e==null||e(),u.current=window.setTimeout(()=>l(!1),n))}catch(T){t==null||t(T)}};x.useEffect(()=>()=>{window.clearTimeout(u.current)},[]);let m=o?Sc:Ic;return g.jsx("button",{className:ye("cursor-pointer p-1 text-muted-foreground transition-all hover:text-foreground disabled:cursor-not-allowed disabled:opacity-50",i),"data-streamdown":"code-block-copy-button",disabled:c,onClick:p,title:"Copy Code",type:"button",...a,children:r??g.jsx(m,{size:14})})},hh={"1c":"1c","1c-query":"1cq",abap:"abap","actionscript-3":"as",ada:"ada",adoc:"adoc","angular-html":"html","angular-ts":"ts",apache:"conf",apex:"cls",apl:"apl",applescript:"applescript",ara:"ara",asciidoc:"adoc",asm:"asm",astro:"astro",awk:"awk",ballerina:"bal",bash:"sh",bat:"bat",batch:"bat",be:"be",beancount:"beancount",berry:"berry",bibtex:"bib",bicep:"bicep",blade:"blade.php",bsl:"bsl",c:"c","c#":"cs","c++":"cpp",cadence:"cdc",cairo:"cairo",cdc:"cdc",clarity:"clar",clj:"clj",clojure:"clj","closure-templates":"soy",cmake:"cmake",cmd:"cmd",cobol:"cob",codeowners:"CODEOWNERS",codeql:"ql",coffee:"coffee",coffeescript:"coffee","common-lisp":"lisp",console:"sh",coq:"v",cpp:"cpp",cql:"cql",crystal:"cr",cs:"cs",csharp:"cs",css:"css",csv:"csv",cue:"cue",cypher:"cql",d:"d",dart:"dart",dax:"dax",desktop:"desktop",diff:"diff",docker:"dockerfile",dockerfile:"dockerfile",dotenv:"env","dream-maker":"dm",edge:"edge",elisp:"el",elixir:"ex",elm:"elm","emacs-lisp":"el",erb:"erb",erl:"erl",erlang:"erl",f:"f","f#":"fs",f03:"f03",f08:"f08",f18:"f18",f77:"f77",f90:"f90",f95:"f95",fennel:"fnl",fish:"fish",fluent:"ftl",for:"for","fortran-fixed-form":"f","fortran-free-form":"f90",fs:"fs",fsharp:"fs",fsl:"fsl",ftl:"ftl",gdresource:"tres",gdscript:"gd",gdshader:"gdshader",genie:"gs",gherkin:"feature","git-commit":"gitcommit","git-rebase":"gitrebase",gjs:"js",gleam:"gleam","glimmer-js":"js","glimmer-ts":"ts",glsl:"glsl",gnuplot:"plt",go:"go",gql:"gql",graphql:"graphql",groovy:"groovy",gts:"gts",hack:"hack",haml:"haml",handlebars:"hbs",haskell:"hs",haxe:"hx",hbs:"hbs",hcl:"hcl",hjson:"hjson",hlsl:"hlsl",hs:"hs",html:"html","html-derivative":"html",http:"http",hxml:"hxml",hy:"hy",imba:"imba",ini:"ini",jade:"jade",java:"java",javascript:"js",jinja:"jinja",jison:"jison",jl:"jl",js:"js",json:"json",json5:"json5",jsonc:"jsonc",jsonl:"jsonl",jsonnet:"jsonnet",jssm:"jssm",jsx:"jsx",julia:"jl",kotlin:"kt",kql:"kql",kt:"kt",kts:"kts",kusto:"kql",latex:"tex",lean:"lean",lean4:"lean",less:"less",liquid:"liquid",lisp:"lisp",lit:"lit",llvm:"ll",log:"log",logo:"logo",lua:"lua",luau:"luau",make:"mak",makefile:"mak",markdown:"md",marko:"marko",matlab:"m",md:"md",mdc:"mdc",mdx:"mdx",mediawiki:"wiki",mermaid:"mmd",mips:"s",mipsasm:"s",mmd:"mmd",mojo:"mojo",move:"move",nar:"nar",narrat:"narrat",nextflow:"nf",nf:"nf",nginx:"conf",nim:"nim",nix:"nix",nu:"nu",nushell:"nu",objc:"m","objective-c":"m","objective-cpp":"mm",ocaml:"ml",pascal:"pas",perl:"pl",perl6:"p6",php:"php",plsql:"pls",po:"po",polar:"polar",postcss:"pcss",pot:"pot",potx:"potx",powerquery:"pq",powershell:"ps1",prisma:"prisma",prolog:"pl",properties:"properties",proto:"proto",protobuf:"proto",ps:"ps",ps1:"ps1",pug:"pug",puppet:"pp",purescript:"purs",py:"py",python:"py",ql:"ql",qml:"qml",qmldir:"qmldir",qss:"qss",r:"r",racket:"rkt",raku:"raku",razor:"cshtml",rb:"rb",reg:"reg",regex:"regex",regexp:"regexp",rel:"rel",riscv:"s",rs:"rs",rst:"rst",ruby:"rb",rust:"rs",sas:"sas",sass:"sass",scala:"scala",scheme:"scm",scss:"scss",sdbl:"sdbl",sh:"sh",shader:"shader",shaderlab:"shader",shell:"sh",shellscript:"sh",shellsession:"sh",smalltalk:"st",solidity:"sol",soy:"soy",sparql:"rq",spl:"spl",splunk:"spl",sql:"sql","ssh-config":"config",stata:"do",styl:"styl",stylus:"styl",svelte:"svelte",swift:"swift","system-verilog":"sv",systemd:"service",talon:"talon",talonscript:"talon",tasl:"tasl",tcl:"tcl",templ:"templ",terraform:"tf",tex:"tex",tf:"tf",tfvars:"tfvars",toml:"toml",ts:"ts","ts-tags":"ts",tsp:"tsp",tsv:"tsv",tsx:"tsx",turtle:"ttl",twig:"twig",typ:"typ",typescript:"ts",typespec:"tsp",typst:"typ",v:"v",vala:"vala",vb:"vb",verilog:"v",vhdl:"vhdl",vim:"vim",viml:"vim",vimscript:"vim",vue:"vue","vue-html":"html","vue-vine":"vine",vy:"vy",vyper:"vy",wasm:"wasm",wenyan:"wy",wgsl:"wgsl",wiki:"wiki",wikitext:"wiki",wit:"wit",wl:"wl",wolfram:"wl",xml:"xml",xsl:"xsl",yaml:"yaml",yml:"yml",zenscript:"zs",zig:"zig",zsh:"zsh",文言:"wy"},u6=({onDownload:e,onError:t,language:n,children:r,className:i,code:s,...a})=>{let{code:o}=C1(),{isAnimating:l}=x.useContext(En),u=s??o,d=`file.${n&&n in hh?hh[n]:"txt"}`,c="text/plain",h=()=>{try{bi(d,u,c),e==null||e()}catch(p){t==null||t(p)}};return g.jsx("button",{className:ye("cursor-pointer p-1 text-muted-foreground transition-all hover:text-foreground disabled:cursor-not-allowed disabled:opacity-50",i),"data-streamdown":"code-block-download-button",disabled:l,onClick:h,title:"Download file",type:"button",...a,children:r??g.jsx(Io,{size:14})})},c6=()=>g.jsxs("div",{className:"w-full divide-y divide-border overflow-hidden rounded-xl border border-border",children:[g.jsx("div",{className:"h-[46px] w-full bg-muted/80"}),g.jsx("div",{className:"flex w-full items-center justify-center p-4",children:g.jsx(i6,{className:"size-4 animate-spin"})})]}),d6=/\.[^/.]+$/,f6=({node:e,className:t,src:n,alt:r,onLoad:i,onError:s,...a})=>{let o=x.useRef(null),[l,u]=x.useState(!1),[d,c]=x.useState(!1),h=a.width!=null||a.height!=null,p=(l||h)&&!d,m=d&&!h;x.useEffect(()=>{let y=o.current;if(y!=null&&y.complete){let k=y.naturalWidth>0;u(k),c(!k)}},[]);let E=x.useCallback(y=>{u(!0),c(!1),i==null||i(y)},[i]),T=x.useCallback(y=>{u(!1),c(!0),s==null||s(y)},[s]),b=async()=>{if(n)try{let y=await(await fetch(n)).blob(),k=new URL(n,window.location.origin).pathname.split("/").pop()||"",P=k.split(".").pop(),D=k.includes(".")&&P!==void 0&&P.length<=4,v="";if(D)v=k;else{let A=y.type,N="png";A.includes("jpeg")||A.includes("jpg")?N="jpg":A.includes("png")?N="png":A.includes("svg")?N="svg":A.includes("gif")?N="gif":A.includes("webp")&&(N="webp"),v=`${(r||k||"image").replace(d6,"")}.${N}`}bi(v,y,y.type)}catch{window.open(n,"_blank")}};return n?g.jsxs("div",{className:"group relative my-4 inline-block","data-streamdown":"image-wrapper",children:[g.jsx("img",{alt:r,className:ye("max-w-full rounded-lg",m&&"hidden",t),"data-streamdown":"image",onError:T,onLoad:E,ref:o,src:n,...a}),m&&g.jsx("span",{className:"text-muted-foreground text-xs italic","data-streamdown":"image-fallback",children:"Image not available"}),g.jsx("div",{className:"pointer-events-none absolute inset-0 hidden rounded-lg bg-black/10 group-hover:block"}),p&&g.jsx("button",{className:ye("absolute right-2 bottom-2 flex h-8 w-8 cursor-pointer items-center justify-center rounded-md border border-border bg-background/90 shadow-sm backdrop-blur-sm transition-all duration-200 hover:bg-background","opacity-0 group-hover:opacity-100"),onClick:b,title:"Download image",type:"button",children:g.jsx(Io,{size:14})})]}):null},cs=0,h6=()=>{cs+=1,cs===1&&(document.body.style.overflow="hidden")},p6=()=>{cs=Math.max(0,cs-1),cs===0&&(document.body.style.overflow="")},m6=({url:e,isOpen:t,onClose:n,onConfirm:r})=>{let[i,s]=x.useState(!1),a=x.useCallback(async()=>{try{await navigator.clipboard.writeText(e),s(!0),setTimeout(()=>s(!1),2e3)}catch{}},[e]),o=x.useCallback(()=>{r(),n()},[r,n]);return x.useEffect(()=>{if(t){h6();let l=u=>{u.key==="Escape"&&n()};return document.addEventListener("keydown",l),()=>{document.removeEventListener("keydown",l),p6()}}},[t,n]),t?g.jsx("div",{className:"fixed inset-0 z-50 flex items-center justify-center bg-background/50 backdrop-blur-sm","data-streamdown":"link-safety-modal",onClick:n,onKeyDown:l=>{l.key==="Escape"&&n()},role:"button",tabIndex:0,children:g.jsxs("div",{className:"relative mx-4 flex w-full max-w-md flex-col gap-4 rounded-xl border bg-background p-6 shadow-lg",onClick:l=>l.stopPropagation(),onKeyDown:l=>l.stopPropagation(),role:"presentation",children:[g.jsx("button",{className:"absolute top-4 right-4 rounded-md p-1 text-muted-foreground transition-all hover:bg-muted hover:text-foreground",onClick:n,title:"Close",type:"button",children:g.jsx(A1,{size:16})}),g.jsxs("div",{className:"flex flex-col gap-2",children:[g.jsxs("div",{className:"flex items-center gap-2 font-semibold text-lg",children:[g.jsx(dh,{size:20}),g.jsx("span",{children:"Open external link?"})]}),g.jsx("p",{className:"text-muted-foreground text-sm",children:"You're about to visit an external website."})]}),g.jsx("div",{className:ye("break-all rounded-md bg-muted p-3 font-mono text-sm",e.length>100&&"max-h-32 overflow-y-auto"),children:e}),g.jsxs("div",{className:"flex gap-2",children:[g.jsx("button",{className:"flex flex-1 items-center justify-center gap-2 rounded-md border bg-background px-4 py-2 font-medium text-sm transition-all hover:bg-muted",onClick:a,type:"button",children:i?g.jsxs(g.Fragment,{children:[g.jsx(Sc,{size:14}),g.jsx("span",{children:"Copied"})]}):g.jsxs(g.Fragment,{children:[g.jsx(Ic,{size:14}),g.jsx("span",{children:"Copy link"})]})}),g.jsxs("button",{className:"flex flex-1 items-center justify-center gap-2 rounded-md bg-primary px-4 py-2 font-medium text-primary-foreground text-sm transition-all hover:bg-primary/90",onClick:o,type:"button",children:[g.jsx(dh,{size:14}),g.jsx("span",{children:"Open link"})]})]})]})}):null},au=x.createContext(null),S1=()=>x.useContext(au),xM=()=>{var e;let t=S1();return(e=t==null?void 0:t.code)!=null?e:null},vc=()=>{var e;let t=S1();return(e=t==null?void 0:t.mermaid)!=null?e:null},g6=(e,t)=>{var n;let r=(n=void 0)!=null?n:5;return new Promise((i,s)=>{let a="data:image/svg+xml;base64,"+btoa(unescape(encodeURIComponent(e))),o=new Image;o.crossOrigin="anonymous",o.onload=()=>{let l=document.createElement("canvas"),u=o.width*r,d=o.height*r;l.width=u,l.height=d;let c=l.getContext("2d");if(!c){s(new Error("Failed to create 2D canvas context for PNG export"));return}c.drawImage(o,0,0,u,d),l.toBlob(h=>{if(!h){s(new Error("Failed to create PNG blob"));return}i(h)},"image/png")},o.onerror=()=>s(new Error("Failed to load SVG image")),o.src=a})},b6=({chart:e,children:t,className:n,onDownload:r,config:i,onError:s})=>{let[a,o]=x.useState(!1),l=x.useRef(null),{isAnimating:u}=x.useContext(En),d=vc(),c=async h=>{try{if(h==="mmd"){bi("diagram.mmd",e,"text/plain"),o(!1),r==null||r(h);return}if(!d){s==null||s(new Error("Mermaid plugin not available"));return}let p=d.getMermaid(i),m=e.split("").reduce((b,y)=>(b<<5)-b+y.charCodeAt(0)|0,0),E=`mermaid-${Math.abs(m)}-${Date.now()}-${Math.random().toString(36).substring(2,9)}`,{svg:T}=await p.render(E,e);if(!T){s==null||s(new Error("SVG not found. Please wait for the diagram to render."));return}if(h==="svg"){bi("diagram.svg",T,"image/svg+xml"),o(!1),r==null||r(h);return}if(h==="png"){let b=await g6(T);bi("diagram.png",b,"image/png"),r==null||r(h),o(!1);return}}catch(p){s==null||s(p)}};return x.useEffect(()=>{let h=p=>{let m=p.composedPath();l.current&&!m.includes(l.current)&&o(!1)};return document.addEventListener("mousedown",h),()=>{document.removeEventListener("mousedown",h)}},[]),g.jsxs("div",{className:"relative",ref:l,children:[g.jsx("button",{className:ye("cursor-pointer p-1 text-muted-foreground transition-all hover:text-foreground disabled:cursor-not-allowed disabled:opacity-50",n),disabled:u,onClick:()=>o(!a),title:"Download diagram",type:"button",children:t??g.jsx(Io,{size:14})}),a?g.jsxs("div",{className:"absolute top-full right-0 z-10 mt-1 min-w-[120px] overflow-hidden rounded-md border border-border bg-background shadow-lg",children:[g.jsx("button",{className:"w-full px-3 py-2 text-left text-sm transition-colors hover:bg-muted/40",onClick:()=>c("svg"),title:"Download diagram as SVG",type:"button",children:"SVG"}),g.jsx("button",{className:"w-full px-3 py-2 text-left text-sm transition-colors hover:bg-muted/40",onClick:()=>c("png"),title:"Download diagram as PNG",type:"button",children:"PNG"}),g.jsx("button",{className:"w-full px-3 py-2 text-left text-sm transition-colors hover:bg-muted/40",onClick:()=>c("mmd"),title:"Download diagram as MMD",type:"button",children:"MMD"})]}):null]})},ds=0,E6=()=>{ds+=1,ds===1&&(document.body.style.overflow="hidden")},T6=()=>{ds=Math.max(0,ds-1),ds===0&&(document.body.style.overflow="")},x6=({chart:e,config:t,onFullscreen:n,onExit:r,className:i,...s})=>{let[a,o]=x.useState(!1),{isAnimating:l,controls:u}=x.useContext(En),d=(()=>{if(typeof u=="boolean")return u;let h=u.mermaid;return h===!1?!1:h===!0||h===void 0?!0:h.panZoom!==!1})(),c=()=>{o(!a)};return x.useEffect(()=>{if(a){E6();let h=p=>{p.key==="Escape"&&o(!1)};return document.addEventListener("keydown",h),()=>{document.removeEventListener("keydown",h),T6()}}},[a]),x.useEffect(()=>{a?n==null||n():r&&r()},[a,n,r]),g.jsxs(g.Fragment,{children:[g.jsx("button",{className:ye("cursor-pointer p-1 text-muted-foreground transition-all hover:text-foreground disabled:cursor-not-allowed disabled:opacity-50",i),disabled:l,onClick:c,title:"View fullscreen",type:"button",...s,children:g.jsx(s6,{size:14})}),a?Tu.createPortal(g.jsxs("div",{className:"fixed inset-0 z-50 flex items-center justify-center bg-background/95 backdrop-blur-sm",onClick:c,onKeyDown:h=>{h.key==="Escape"&&c()},role:"button",tabIndex:0,children:[g.jsx("button",{className:"absolute top-4 right-4 z-10 rounded-md p-2 text-muted-foreground transition-all hover:bg-muted hover:text-foreground",onClick:c,title:"Exit fullscreen",type:"button",children:g.jsx(A1,{size:20})}),g.jsx("div",{className:"flex size-full items-center justify-center p-4",onClick:h=>h.stopPropagation(),onKeyDown:h=>h.stopPropagation(),role:"presentation",children:g.jsx(nb,{chart:e,className:"size-full [&_svg]:h-auto [&_svg]:w-auto",config:t,fullscreen:!0,showControls:d})})]}),document.body):null]})},I1=e=>{var t,n;let r=[],i=[],s=e.querySelectorAll("thead th");for(let o of s)r.push(((t=o.textContent)==null?void 0:t.trim())||"");let a=e.querySelectorAll("tbody tr");for(let o of a){let l=[],u=o.querySelectorAll("td");for(let d of u)l.push(((n=d.textContent)==null?void 0:n.trim())||"");i.push(l)}return{headers:r,rows:i}},v1=e=>{let{headers:t,rows:n}=e,r=o=>{let l=!1,u=!1;for(let d of o){if(d==='"'){l=!0,u=!0;break}(d===","||d===`
|
|
162
162
|
`)&&(l=!0)}return l?u?`"${o.replace(/"/g,'""')}"`:`"${o}"`:o},i=t.length>0?n.length+1:n.length,s=new Array(i),a=0;t.length>0&&(s[a]=t.map(r).join(","),a+=1);for(let o of n)s[a]=o.map(r).join(","),a+=1;return s.join(`
|
|
163
163
|
`)},y6=e=>{let{headers:t,rows:n}=e,r=o=>{let l=!1;for(let d of o)if(d===" "||d===`
|