vendor: 12,371 bytes, lines 1-41
1import{o as e}from"./rolldown-runtime-DAXXjFlN.js";import{t}from"./react-DEAHbL4P.js";import{t as n}from"./createLucideIcon-sQJtY5vJ.js";var r=n(`monitor`,[[`rect`,{width:`20`,height:`14`,x:`2`,y:`3`,rx:`2`,key:`48i651`}],[`line`,{x1:`8`,x2:`16`,y1:`21`,y2:`21`,key:`1svkeh`}],[`line`,{x1:`12`,x2:`12`,y1:`17`,y2:`21`,key:`vw1qmm`}]]),i=n(`moon`,[[`path`,{d:`M20.985 12.486a9 9 0 1 1-9.473-9.472c.405-.022.617.46.402.803a6 6 0 0 0 8.268 8.268c.344-.215.825-.004.803.401`,key:`kfwtm`}]]),a=n(`sun`,[[`circle`,{cx:`12`,cy:`12`,r:`4`,key:`4exip2`}],[`path`,{d:`M12 2v2`,key:`tus03m`}],[`path`,{d:`M12 20v2`,key:`1lh1kg`}],[`path`,{d:`m4.93 4.93 1.41 1.41`,key:`149t6j`}],[`path`,{d:`m17.66 17.66 1.41 1.41`,key:`ptbguv`}],[`path`,{d:`M2 12h2`,key:`1t8f8n`}],[`path`,{d:`M20 12h2`,key:`1q8mjw`}],[`path`,{d:`m6.34 17.66-1.41 1.41`,key:`1m8zz5`}],[`path`,{d:`m19.07 4.93-1.41 1.41`,key:`1shlcs`}]]),o=e(t()),s=function(){return s=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n],t)Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e},s.apply(this,arguments)};function c(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols==`function`)for(var i=0,r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]]);return n}function l(e,t,n){if(n||arguments.length===2)for(var r=0,i=t.length,a;r<i;r++)(a||!(r in t))&&(a||=Array.prototype.slice.call(t,0,r),a[r]=t[r]);return e.concat(a||Array.prototype.slice.call(t))}var u=`right-scroll-bar-position`,d=`width-before-scroll-bar`,f=`with-scroll-bars-hidden`,p=`--removed-body-scroll-bar-size`;function m(e,t){return typeof e==`function`?e(t):e&&(e.current=t),e}function h(e,t){var n=(0,o.useState)(function(){return{value:e,callback:t,facade:{get current(){return n.value},set current(e){var t=n.value;t!==e&&(n.value=e,n.callback(e,t))}}}})[0];return n.callback=t,n.facade}var g=typeof window<`u`?o.useLayoutEffect:o.useEffect,_=new WeakMap;function ee(e,t){var n=h(t||null,function(t){return e.forEach(function(e){return m(e,t)})});return g(function(){var t=_.get(n);if(t){var r=new Set(t),i=new Set(e),a=n.current;r.forEach(function(e){i.has(e)||m(e,null)}),i.forEach(function(e){r.has(e)||m(e,a)})}_.set(n,e)},[e]),n}function v(e){return e}function y(e,t){t===void 0&&(t=v);var n=[],r=!1;return{read:function(){if(r)throw Error("Sidecar: could not `read` from an `assigned` medium. `read` could be used only with `useMedium`.");return n.length?n[n.length-1]:e},useMedium:function(e){var i=t(e,r);return n.push(i),function(){n=n.filter(function(e){return e!==i})}},assignSyncMedium:function(e){for(r=!0;n.length;){var t=n;n=[],t.forEach(e)}n={push:function(t){return e(t)},filter:function(){return n}}},assignMedium:function(e){r=!0;var t=[];if(n.length){var i=n;n=[],i.forEach(e),t=n}var a=function(){var n=t;t=[],n.forEach(e)},o=function(){return Promise.resolve().then(a)};o(),n={push:function(e){t.push(e),o()},filter:function(e){return t=t.filter(e),n}}}}}function b(e){e===void 0&&(e={});var t=y(null);return t.options=s({async:!0,ssr:!1},e),t}var x=function(e){var t=e.sideCar,n=c(e,[`sideCar`]);if(!t)throw Error("Sidecar: please provide `sideCar` property to import the right car");var r=t.read();if(!r)throw Error(`Sidecar medium not found`);return o.createElement(r,s({},n))};x.isSideCarExport=!0;function S(e,t){return e.useMedium(t),x}var C=b(),w=function(){},T=o.forwardRef(function(e,t){var n=o.useRef(null),r=o.useState({onScrollCapture:w,onWheelCapture:w,onTouchMoveCapture:w}),i=r[0],a=r[1],l=e.forwardProps,u=e.children,d=e.className,f=e.removeScrollBar,p=e.enabled,m=e.shards,h=e.sideCar,g=e.noRelative,_=e.noIsolation,v=e.inert,y=e.allowPinchZoom,b=e.as,x=b===void 0?`div`:b,S=e.gapMode,T=c(e,[`forwardProps`,`children`,`className`,`removeScrollBar`,`enabled`,`shards`,`sideCar`,`noRelative`,`noIsolation`,`inert`,`allowPinchZoom`,`as`,`gapMode`]),E=h,D=ee([n,t]),O=s(s({},T),i);return o.createElement(o.Fragment,null,p&&o.createElement(E,{sideCar:C,removeScrollBar:f,shards:m,noRelative:g,noIsolation:_,inert:v,setCallbacks:a,allowPinchZoom:!!y,lockRef:n,gapMode:S}),l?o.cloneElement(o.Children.only(u),s(s({},O),{ref:D})):o.createElement(x,s({},O,{className:d,ref:D}),u))});T.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1},T.classNames={fullWidth:d,zeroRight:u};var E,D=function(){if(E)return E;if(typeof __webpack_nonce__<`u`)return __webpack_nonce__};function O(){if(!document)return null;var e=document.createElement(`style`);e.type=`text/css`;var t=D();return t&&e.setAttribute(`nonce`,t),e}function te(e,t){e.styleSheet?e.styleSheet.cssText=t:e.appendChild(document.createTextNode(t))}function ne(e){(document.head||document.getElementsByTagName(`head`)[0]).appendChild(e)}var re=function(){var e=0,t=null;return{add:function(n){e==0&&(t=O())&&(te(t,n),ne(t)),e++},remove:function(){e--,!e&&t&&(t.parentNode&&t.parentNode.removeChild(t),t=null)}}},ie=function(){var e=re();return function(t,n){o.useEffect(function(){return e.add(t),function(){e.remove()}},[t&&n])}},k=function(){var e=ie();return function(t){var n=t.styles,r=t.dynamic;return e(n,r),null}},ae={left:0,top:0,right:0,gap:0},A=function(e){return parseInt(e||``,10)||0},oe=function(e){var t=window.getComputedStyle(document.body),n=t[e===`padding`?`paddingLeft`:`marginLeft`],r=t[e===`padding`?`paddingTop`:`marginTop`],i=t[e===`padding`?`paddingRight`:`marginRight`];return[A(n),A(r),A(i)]},j=function(e){if(e===void 0&&(e=`margin`),typeof window>`u`)return ae;var t=oe(e),n=document.documentElement.clientWidth,r=window.innerWidth;return{left:t[0],top:t[1],right:t[2],gap:Math.max(0,r-n+t[2]-t[0])}},se=k(),M=`data-scroll-locked`,ce=function(e,t,n,r){var i=e.left,a=e.top,o=e.right,s=e.gap;return n===void 0&&(n=`margin`),` 2 .${f} { 3 overflow: hidden ${r}; 4 padding-right: ${s}px ${r}; 5 } 6 body[${M}] { 7 overflow: hidden ${r}; 8 overscroll-behavior: contain; 9 ${[t&&`position: relative ${r};`,n===`margin`&&` 10 padding-left: ${i}px; 11 padding-top: ${a}px; 12 padding-right: ${o}px; 13 margin-left:0; 14 margin-top:0; 15 margin-right: ${s}px ${r}; 16 `,n===`padding`&&`padding-right: ${s}px ${r};`].filter(Boolean).join(``)} 17 } 18 19 .${u} { 20 right: ${s}px ${r}; 21 } 22 23 .${d} { 24 margin-right: ${s}px ${r}; 25 } 26 27 .${u} .${u} { 28 right: 0 ${r}; 29 } 30 31 .${d} .${d} { 32 margin-right: 0 ${r}; 33 } 34 35 body[${M}] { 36 ${p}: ${s}px; 37 } 38`},N=function(){var e=parseInt(document.body.getAttribute(`data-scroll-locked`)||`0`,10);return isFinite(e)?e:0},P=function(){o.useEffect(function(){return document.body.setAttribute(M,(N()+1).toString()),function(){var e=N()-1;e<=0?document.body.removeAttribute(M):document.body.setAttribute(M,e.toString())}},[])},le=function(e){var t=e.noRelative,n=e.noImportant,r=e.gapMode,i=r===void 0?`margin`:r;P();var a=o.useMemo(function(){return j(i)},[i]);return o.createElement(se,{styles:ce(a,!t,i,n?``:`!important`)})},F=!1;if(typeof window<`u`)try{var I=Object.defineProperty({},"passive",{get:function(){return F=!0,!0}});window.addEventListener(`test`,I,I),window.removeEventListener(`test`,I,I)}catch{F=!1}var L=F?{passive:!1}:!1,ue=function(e){return e.tagName===`TEXTAREA`},R=function(e,t){if(!(e instanceof Element))return!1;var n=window.getComputedStyle(e);return n[t]!==`hidden`&&!(n.overflowY===n.overflowX&&!ue(e)&&n[t]===`visible`)},de=function(e){return R(e,`overflowY`)},fe=function(e){return R(e,`overflowX`)},z=function(e,t){var n=t.ownerDocument,r=t;do{if(typeof ShadowRoot<`u`&&r instanceof ShadowRoot&&(r=r.host),V(e,r)){var i=H(e,r);if(i[1]>i[2])return!0}r=r.parentNode}while(r&&r!==n.body);return!1},B=function(e){return[e.scrollTop,e.scrollHeight,e.clientHeight]},pe=function(e){return[e.scrollLeft,e.scrollWidth,e.clientWidth]},V=function(e,t){return e===`v`?de(t):fe(t)},H=function(e,t){return e===`v`?B(t):pe(t)},U=function(e,t){return e===`h`&&t===`rtl`?-1:1},me=function(e,t,n,r,i){var a=U(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=H(e,s),m=p[0],h=p[1]-p[2]-a*m;(m||h)&&V(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},W=function(e){return`changedTouches`in e?[e.changedTouches[0].clientX,e.changedTouches[0].clientY]:[0,0]},G=function(e){return[e.deltaX,e.deltaY]},K=function(e){return e&&`current`in e?e.current:e},he=function(e,t){return e[0]===t[0]&&e[1]===t[1]},ge=function(e){return` 39 .block-interactivity-${e} {pointer-events: none;} 40 .allow-interactivity-${e} {pointer-events: all;} 41`},_e=0,q=[];function ve(e){var t=o.useRef([]),n=o.useRef([0,0]),r=o.useRef(),i=o.useState(_e++)[0],a=o.useState(k)[0],s=o.useRef(e);o.useEffect(function(){s.current=e},[e]),o.useEffect(function(){if(e.inert){document.body.classList.add(`block-interactivity-${i}`);var t=l([e.lockRef.current],(e.shards||[]).map(K),!0).filter(Boolean);return t.forEach(function(e){return e.classList.add(`allow-interactivity-${i}`)}),function(){document.body.classList.remove(`block-interactivity-${i}`),t.forEach(function(e){return e.classList.remove(`allow-interactivity-${i}`)})}}},[e.inert,e.lockRef.current,e.shards]);var c=o.useCallback(function(e,t){if(`touches`in e&&e.touches.length===2||e.type===`wheel`&&e.ctrlKey)return!s.current.allowPinchZoom;var i=W(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=z(d,u);if(!m)return!0;if(m?l=d:(l=d===`v`?`h`:`v`,m=z(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 me(h,t,e,h===`h`?o:c,!0)},[]),u=o.useCallback(function(e){var n=e;if(!(!q.length||q[q.length-1]!==a)){var r=`deltaY`in n?G(n):W(n),i=t.current.filter(function(e){return e.name===n.type&&(e.target===n.target||n.target===e.shadowParent)&&he(e.delta,r)})[0];if(i&&i.should){n.cancelable&&n.preventDefault();return}if(!i){var o=(s.current.shards||[]).map(K).filter(Boolean).filter(function(e){return e.contains(n.target)});(o.length>0?c(n,o[0]):!s.current.noIsolation)&&n.cancelable&&n.preventDefault()}}},[]),d=o.useCallback(function(e,n,r,i){var a={name:e,delta:n,target:r,should:i,shadowParent:ye(r)};t.current.push(a),setTimeout(function(){t.current=t.current.filter(function(e){return e!==a})},1)},[]),f=o.useCallback(function(e){n.current=W(e),r.current=void 0},[]),p=o.useCallback(function(t){d(t.type,G(t),t.target,c(t,e.lockRef.current))},[]),m=o.useCallback(function(t){d(t.type,W(t),t.target,c(t,e.lockRef.current))},[]);o.useEffect(function(){return q.push(a),e.setCallbacks({onScrollCapture:p,onWheelCapture:p,onTouchMoveCapture:m}),document.addEventListener(`wheel`,u,L),document.addEventListener(`touchmove`,u,L),document.addEventListener(`touchstart`,f,L),function(){q=q.filter(function(e){return e!==a}),document.removeEventListener(`wheel`,u,L),document.removeEventListener(`touchmove`,u,L),document.removeEventListener(`touchstart`,f,L)}},[]);var h=e.removeScrollBar,g=e.inert;return o.createElement(o.Fragment,null,g?o.createElement(a,{styles:ge(i)}):null,h?o.createElement(le,{noRelative:e.noRelative,gapMode:e.gapMode}):null)}function ye(e){for(var t=null;e!==null;)e instanceof ShadowRoot&&(t=e.host,e=e.host),e=e.parentNode;return t}var be=S(C,ve),J=o.forwardRef(function(e,t){return o.createElement(T,s({},e,{ref:t,sideCar:be}))});J.classNames=T.classNames;var xe=function(e){return typeof document>`u`?null:(Array.isArray(e)?e[0]:e).ownerDocument.body},Y=new WeakMap,X=new WeakMap,Z={},Q=0,$=function(e){return e&&(e.host||$(e.parentNode))},Se=function(e,t){return t.map(function(t){if(e.contains(t))return t;var n=$(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})},Ce=function(e,t,n,r){var i=Se(t,Array.isArray(e)?e:[e]);Z[n]||(Z[n]=new WeakMap);var a=Z[n],o=[],s=new Set,c=new Set(i),l=function(e){!e||s.has(e)||(s.add(e),l(e.parentNode))};
vendor: 905 bytes, line 41
41i.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=(Y.get(e)||0)+1,l=(a.get(e)||0)+1;Y.set(e,c),a.set(e,l),o.push(e),c===1&&i&&X.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(),Q++,function(){o.forEach(function(e){var t=Y.get(e)-1,i=a.get(e)-1;Y.set(e,t),a.set(e,i),t||(X.has(e)||e.removeAttribute(r),X.delete(e)),i||e.removeAttribute(n)}),Q--,Q||(Y=new WeakMap,Y=new WeakMap,X=new WeakMap,Z={})}},we=function(e,t,n){n===void 0&&(n=`data-aria-hidden`);var r=Array.from(Array.isArray(e)?e:[e]),i=t||xe(e);return i?(r.push.apply(r,Array.from(i.querySelectorAll(`[aria-live], script`))),Ce(r,i,n,`aria-hidden`)):function(){return null}};export{r as a,i,J as n,a as r,we as t};
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.