41 lines
58 KiB
JavaScript
41 lines
58 KiB
JavaScript
|
|
import{n as e}from"./rolldown-runtime-Bh1tDfsg.js";import{b as t,i as n}from"./query-B5fiFlYp.js";import{n as r}from"./react-DGbf-iXy.js";var i=e(t()),a=e=>e.replace(/([a-z0-9])([A-Z])/g,`$1-$2`).toLowerCase(),o=e=>e.replace(/^([A-Z])|[\s-_]+(\w)/g,(e,t,n)=>n?n.toUpperCase():t.toLowerCase()),s=e=>{let t=o(e);return t.charAt(0).toUpperCase()+t.slice(1)},c=(...e)=>e.filter((e,t,n)=>!!e&&e.trim()!==``&&n.indexOf(e)===t).join(` `).trim(),l=e=>{for(let t in e)if(t.startsWith(`aria-`)||t===`role`||t===`title`)return!0},u={xmlns:`http://www.w3.org/2000/svg`,width:24,height:24,viewBox:`0 0 24 24`,fill:`none`,stroke:`currentColor`,strokeWidth:2,strokeLinecap:`round`,strokeLinejoin:`round`},d=(0,i.forwardRef)(({color:e=`currentColor`,size:t=24,strokeWidth:n=2,absoluteStrokeWidth:r,className:a=``,children:o,iconNode:s,...d},f)=>(0,i.createElement)(`svg`,{ref:f,...u,width:t,height:t,stroke:e,strokeWidth:r?Number(n)*24/Number(t):n,className:c(`lucide`,a),...!o&&!l(d)&&{"aria-hidden":`true`},...d},[...s.map(([e,t])=>(0,i.createElement)(e,t)),...Array.isArray(o)?o:[o]])),f=(e,t)=>{let n=(0,i.forwardRef)(({className:n,...r},o)=>(0,i.createElement)(d,{ref:o,iconNode:t,className:c(`lucide-${a(s(e))}`,`lucide-${e}`,n),...r}));return n.displayName=s(e),n},p=f(`activity`,[[`path`,{d:`M22 12h-2.48a2 2 0 0 0-1.93 1.46l-2.35 8.36a.25.25 0 0 1-.48 0L9.24 2.18a.25.25 0 0 0-.48 0l-2.35 8.36A2 2 0 0 1 4.49 12H2`,key:`169zse`}]]),m=f(`archive`,[[`rect`,{width:`20`,height:`5`,x:`2`,y:`3`,rx:`1`,key:`1wp1u1`}],[`path`,{d:`M4 8v11a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V8`,key:`1s80jp`}],[`path`,{d:`M10 12h4`,key:`a56b0p`}]]),h=f(`arrow-up-right`,[[`path`,{d:`M7 7h10v10`,key:`1tivn9`}],[`path`,{d:`M7 17 17 7`,key:`1vkiza`}]]),g=f(`arrow-up`,[[`path`,{d:`m5 12 7-7 7 7`,key:`hav0vg`}],[`path`,{d:`M12 19V5`,key:`x0mq9r`}]]),_=f(`bell-ring`,[[`path`,{d:`M10.268 21a2 2 0 0 0 3.464 0`,key:`vwvbt9`}],[`path`,{d:`M22 8c0-2.3-.8-4.3-2-6`,key:`5bb3ad`}],[`path`,{d:`M3.262 15.326A1 1 0 0 0 4 17h16a1 1 0 0 0 .74-1.673C19.41 13.956 18 12.499 18 8A6 6 0 0 0 6 8c0 4.499-1.411 5.956-2.738 7.326`,key:`11g9vi`}],[`path`,{d:`M4 2C2.8 3.7 2 5.7 2 8`,key:`tap9e0`}]]),v=f(`bell`,[[`path`,{d:`M10.268 21a2 2 0 0 0 3.464 0`,key:`vwvbt9`}],[`path`,{d:`M3.262 15.326A1 1 0 0 0 4 17h16a1 1 0 0 0 .74-1.673C19.41 13.956 18 12.499 18 8A6 6 0 0 0 6 8c0 4.499-1.411 5.956-2.738 7.326`,key:`11g9vi`}]]),y=f(`book-open`,[[`path`,{d:`M12 7v14`,key:`1akyts`}],[`path`,{d:`M3 18a1 1 0 0 1-1-1V4a1 1 0 0 1 1-1h5a4 4 0 0 1 4 4 4 4 0 0 1 4-4h5a1 1 0 0 1 1 1v13a1 1 0 0 1-1 1h-6a3 3 0 0 0-3 3 3 3 0 0 0-3-3z`,key:`ruj8y`}]]),b=f(`calendar-clock`,[[`path`,{d:`M16 14v2.2l1.6 1`,key:`fo4ql5`}],[`path`,{d:`M16 2v4`,key:`4m81vk`}],[`path`,{d:`M21 7.5V6a2 2 0 0 0-2-2H5a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h3.5`,key:`1osxxc`}],[`path`,{d:`M3 10h5`,key:`r794hk`}],[`path`,{d:`M8 2v4`,key:`1cmpym`}],[`circle`,{cx:`16`,cy:`16`,r:`6`,key:`qoo3c4`}]]),x=f(`circle-check`,[[`circle`,{cx:`12`,cy:`12`,r:`10`,key:`1mglay`}],[`path`,{d:`m9 12 2 2 4-4`,key:`dzmm74`}]]),S=f(`circle-play`,[[`path`,{d:`M9 9.003a1 1 0 0 1 1.517-.859l4.997 2.997a1 1 0 0 1 0 1.718l-4.997 2.997A1 1 0 0 1 9 14.996z`,key:`kmsa83`}],[`circle`,{cx:`12`,cy:`12`,r:`10`,key:`1mglay`}]]),C=f(`clock-3`,[[`path`,{d:`M12 6v6h4`,key:`135r8i`}],[`circle`,{cx:`12`,cy:`12`,r:`10`,key:`1mglay`}]]),w=f(`clock`,[[`path`,{d:`M12 6v6l4 2`,key:`mmk7yg`}],[`circle`,{cx:`12`,cy:`12`,r:`10`,key:`1mglay`}]]),T=f(`cloud-upload`,[[`path`,{d:`M12 13v8`,key:`1l5pq0`}],[`path`,{d:`M4 14.899A7 7 0 1 1 15.71 8h1.79a4.5 4.5 0 0 1 2.5 8.242`,key:`1pljnt`}],[`path`,{d:`m8 17 4-4 4 4`,key:`1quai1`}]]),E=f(`code-xml`,[[`path`,{d:`m18 16 4-4-4-4`,key:`1inbqp`}],[`path`,{d:`m6 8-4 4 4 4`,key:`15zrgr`}],[`path`,{d:`m14.5 4-5 16`,key:`e7oirm`}]]),D=f(`cpu`,[[`path`,{d:`M12 20v2`,key:`1lh1kg`}],[`path`,{d:`M12 2v2`,key:`tus03m`}],[`path`,{d:`M17 20v2`,key:`1rnc9c`}],[`path`,{d:`M17 2v2`,key:`11trls`}],[`path`,{d:`M2 12h2`,key:`1t8f8n`}],[`path`,{d:`M2 17h2`,key:`7oei6x`}],[`path`,{d:`M2 7h2`,key:`asdhe0`}],[`path`,{d:`M20 12h2`,key:`1q8mjw`}],[`path`,{d:`M20 17h2`,key:`1fpfkl`}],[`path`,{d:`M20 7h2`
|
||
|
|
.${gn} {
|
||
|
|
overflow: hidden ${r};
|
||
|
|
padding-right: ${s}px ${r};
|
||
|
|
}
|
||
|
|
body[${H}] {
|
||
|
|
overflow: hidden ${r};
|
||
|
|
overscroll-behavior: contain;
|
||
|
|
${[t&&`position: relative ${r};`,n===`margin`&&`
|
||
|
|
padding-left: ${i}px;
|
||
|
|
padding-top: ${a}px;
|
||
|
|
padding-right: ${o}px;
|
||
|
|
margin-left:0;
|
||
|
|
margin-top:0;
|
||
|
|
margin-right: ${s}px ${r};
|
||
|
|
`,n===`padding`&&`padding-right: ${s}px ${r};`].filter(Boolean).join(``)}
|
||
|
|
}
|
||
|
|
|
||
|
|
.${mn} {
|
||
|
|
right: ${s}px ${r};
|
||
|
|
}
|
||
|
|
|
||
|
|
.${hn} {
|
||
|
|
margin-right: ${s}px ${r};
|
||
|
|
}
|
||
|
|
|
||
|
|
.${mn} .${mn} {
|
||
|
|
right: 0 ${r};
|
||
|
|
}
|
||
|
|
|
||
|
|
.${hn} .${hn} {
|
||
|
|
margin-right: 0 ${r};
|
||
|
|
}
|
||
|
|
|
||
|
|
body[${H}] {
|
||
|
|
${_n}: ${s}px;
|
||
|
|
}
|
||
|
|
`},Gn=function(){var e=parseInt(document.body.getAttribute(`data-scroll-locked`)||`0`,10);return isFinite(e)?e:0},Kn=function(){i.useEffect(function(){return document.body.setAttribute(H,(Gn()+1).toString()),function(){var e=Gn()-1;e<=0?document.body.removeAttribute(H):document.body.setAttribute(H,e.toString())}},[])},qn=function(e){var t=e.noRelative,n=e.noImportant,r=e.gapMode,a=r===void 0?`margin`:r;Kn();var o=i.useMemo(function(){return Hn(a)},[a]);return i.createElement(Un,{styles:Wn(o,!t,a,n?``:`!important`)})},Jn=!1;if(typeof window<`u`)try{var Yn=Object.defineProperty({},"passive",{get:function(){return Jn=!0,!0}});window.addEventListener(`test`,Yn,Yn),window.removeEventListener(`test`,Yn,Yn)}catch{Jn=!1}var U=Jn?{passive:!1}:!1,Xn=function(e){return e.tagName===`TEXTAREA`},Zn=function(e,t){if(!(e instanceof Element))return!1;var n=window.getComputedStyle(e);return n[t]!==`hidden`&&!(n.overflowY===n.overflowX&&!Xn(e)&&n[t]===`visible`)},Qn=function(e){return Zn(e,`overflowY`)},$n=function(e){return Zn(e,`overflowX`)},er=function(e,t){var n=t.ownerDocument,r=t;do{if(typeof ShadowRoot<`u`&&r instanceof ShadowRoot&&(r=r.host),rr(e,r)){var i=ir(e,r);if(i[1]>i[2])return!0}r=r.parentNode}while(r&&r!==n.body);return!1},tr=function(e){return[e.scrollTop,e.scrollHeight,e.clientHeight]},nr=function(e){return[e.scrollLeft,e.scrollWidth,e.clientWidth]},rr=function(e,t){return e===`v`?Qn(t):$n(t)},ir=function(e,t){return e===`v`?tr(t):nr(t)},ar=function(e,t){return e===`h`&&t===`rtl`?-1:1},or=function(e,t,n,r,i){var a=ar(e,window.getComputedStyle(t).direction),o=a*r,s=n.target,c=t.contains(s),l=!1,u=o>0,d=0,f=0;do{if(!s)break;var p=ir(e,s),m=p[0],h=p[1]-p[2]-a*m;(m||h)&&rr(e,s)&&(d+=h,f+=m);var g=s.parentNode;s=g&&g.nodeType===Node.DOCUMENT_FRAGMENT_NODE?g.host:g}while(!c&&s!==document.body||c&&(t.contains(s)||t===s));return(u&&(i&&Math.abs(d)<1||!i&&o>d)||!u&&(i&&Math.abs(f)<1||!i&&-o>f))&&(l=!0),l},sr=function(e){return`changedTouches`in e?[e.changedTouches[0].clientX,e.changedTouches[0].clientY]:[0,0]},cr=function(e){return[e.deltaX,e.deltaY]},lr=function(e){return e&&`current`in e?e.current:e},ur=function(e,t){return e[0]===t[0]&&e[1]===t[1]},dr=function(e){return`
|
||
|
|
.block-interactivity-${e} {pointer-events: none;}
|
||
|
|
.allow-interactivity-${e} {pointer-events: all;}
|
||
|
|
`},fr=0,W=[];function pr(e){var t=i.useRef([]),n=i.useRef([0,0]),r=i.useRef(),a=i.useState(fr++)[0],o=i.useState(Rn)[0],s=i.useRef(e);i.useEffect(function(){s.current=e},[e]),i.useEffect(function(){if(e.inert){document.body.classList.add(`block-interactivity-${a}`);var t=pn([e.lockRef.current],(e.shards||[]).map(lr),!0).filter(Boolean);return t.forEach(function(e){return e.classList.add(`allow-interactivity-${a}`)}),function(){document.body.classList.remove(`block-interactivity-${a}`),t.forEach(function(e){return e.classList.remove(`allow-interactivity-${a}`)})}}},[e.inert,e.lockRef.current,e.shards]);var c=i.useCallback(function(e,t){if(`touches`in e&&e.touches.length===2||e.type===`wheel`&&e.ctrlKey)return!s.current.allowPinchZoom;var i=sr(e),a=n.current,o=`deltaX`in e?e.deltaX:a[0]-i[0],c=`deltaY`in e?e.deltaY:a[1]-i[1],l,u=e.target,d=Math.abs(o)>Math.abs(c)?`h`:`v`;if(`touches`in e&&d===`h`&&u.type===`range`)return!1;var f=window.getSelection(),p=f&&f.anchorNode;if(p&&(p===u||p.contains(u)))return!1;var m=er(d,u);if(!m)return!0;if(m?l=d:(l=d===`v`?`h`:`v`,m=er(d,u)),!m)return!1;if(!r.current&&`changedTouches`in e&&(o||c)&&(r.current=l),!l)return!0;var h=r.current||l;return or(h,t,e,h===`h`?o:c,!0)},[]),l=i.useCallback(function(e){var n=e;if(!(!W.length||W[W.length-1]!==o)){var r=`deltaY`in n?cr(n):sr(n),i=t.current.filter(function(e){return e.name===n.type&&(e.target===n.target||n.target===e.shadowParent)&&ur(e.delta,r)})[0];if(i&&i.should){n.cancelable&&n.preventDefault();return}if(!i){var a=(s.current.shards||[]).map(lr).filter(Boolean).filter(function(e){return e.contains(n.target)});(a.length>0?c(n,a[0]):!s.current.noIsolation)&&n.cancelable&&n.preventDefault()}}},[]),u=i.useCallback(function(e,n,r,i){var a={name:e,delta:n,target:r,should:i,shadowParent:mr(r)};t.current.push(a),setTimeout(function(){t.current=t.current.filter(function(e){return e!==a})},1)},[]),d=i.useCallback(function(e){n.current=sr(e),r.current=void 0},[]),f=i.useCallback(function(t){u(t.type,cr(t),t.target,c(t,e.lockRef.current))},[]),p=i.useCallback(function(t){u(t.type,sr(t),t.target,c(t,e.lockRef.current))},[]);i.useEffect(function(){return W.push(o),e.setCallbacks({onScrollCapture:f,onWheelCapture:f,onTouchMoveCapture:p}),document.addEventListener(`wheel`,l,U),document.addEventListener(`touchmove`,l,U),document.addEventListener(`touchstart`,d,U),function(){W=W.filter(function(e){return e!==o}),document.removeEventListener(`wheel`,l,U),document.removeEventListener(`touchmove`,l,U),document.removeEventListener(`touchstart`,d,U)}},[]);var m=e.removeScrollBar,h=e.inert;return i.createElement(i.Fragment,null,h?i.createElement(o,{styles:dr(a)}):null,m?i.createElement(qn,{noRelative:e.noRelative,gapMode:e.gapMode}):null)}function mr(e){for(var t=null;e!==null;)e instanceof ShadowRoot&&(t=e.host,e=e.host),e=e.parentNode;return t}var hr=Dn(On,pr),gr=i.forwardRef(function(e,t){return i.createElement(An,V({},e,{ref:t,sideCar:hr}))});gr.classNames=An.classNames;var _r=function(e){return typeof document>`u`?null:(Array.isArray(e)?e[0]:e).ownerDocument.body},G=new WeakMap,vr=new WeakMap,yr={},br=0,xr=function(e){return e&&(e.host||xr(e.parentNode))},Sr=function(e,t){return t.map(function(t){if(e.contains(t))return t;var n=xr(t);return n&&e.contains(n)?n:(console.error(`aria-hidden`,t,`in not contained inside`,e,`. Doing nothing`),null)}).filter(function(e){return!!e})},Cr=function(e,t,n,r){var i=Sr(t,Array.isArray(e)?e:[e]);yr[n]||(yr[n]=new WeakMap);var a=yr[n],o=[],s=new Set,c=new Set(i),l=function(e){!e||s.has(e)||(s.add(e),l(e.parentNode))};i.forEach(l);var u=function(e){!e||c.has(e)||Array.prototype.forEach.call(e.children,function(e){if(s.has(e))u(e);else try{var t=e.getAttribute(r),i=t!==null&&t!==`false`,c=(G.get(e)||0)+1,l=(a.get(e)||0)+1;G.set(e,c),a.set(e,l),o.push(e),c===1&&i&&vr.set(e,!0),l===1&&e.setAttribute(n,`true`),i||e.setAttribute(r,`true`)}catch(t){console.error(`aria-hidden: cannot operate on `,e,t)}})};return u(t),s.clear(),br++,function(){o.forEach(function(e){var t=G.get(e)-1,i=a.get(e)-1;G.set(e,t),a.set(e,i),t||(vr.has(e)||e
|