PageSourceSearch

https://yaluna.media/build/assets/use-mobile-oKCj5EzX.js

js yaluna.media collected 2026-10-09 00:19:17 UTC 26,751 bytes, 50 lines download raw bytes

vendor: 9,218 bytes, lines 1-6
1import{c as tt}from"./createLucideIcon-SxGmkvIO.js";import{r as c,a as nt,j as p}from"./app-kHafurZ5.js";import{b as Se,a as A,u as rt,c as ot,P as ce,d as at}from"./index-OiJqPrUV.js";import{u as F,a as it}from"./button-CydtzLAX.js";import{P as T,d as ct}from"./index-Qy-X7wV4.js";import{R as st}from"./index-7xVCveOK.js";/**
2 * @license lucide-react v0.475.0 - ISC
3 *
4 * This source code is licensed under the ISC license.
5 * See the LICENSE file in the root directory of this source tree.
6 */const ut=[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]],An=tt("X",ut);var lt=nt[" useId ".trim().toString()]||(()=>{}),dt=0;function Z(e){const[t,n]=c.useState(lt());return Se(()=>{n(r=>r??String(dt++))},[e]),e||(t?`radix-${t}`:"")}function j(e){const t=c.useRef(e);return c.useEffect(()=>{t.current=e}),c.useMemo(()=>(...n)=>{var r;return(r=t.current)==null?void 0:r.call(t,...n)},[])}function ft(e,t=globalThis==null?void 0:globalThis.document){const n=j(e);c.useEffect(()=>{const r=o=>{o.key==="Escape"&&n(o)};return t.addEventListener("keydown",r,{capture:!0}),()=>t.removeEventListener("keydown",r,{capture:!0})},[n,t])}var vt="DismissableLayer",ae="dismissableLayer.update",ht="dismissableLayer.pointerDownOutside",mt="dismissableLayer.focusOutside",de,Re=c.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),De=c.forwardRef((e,t)=>{const{disableOutsidePointerEvents:n=!1,onEscapeKeyDown:r,onPointerDownOutside:o,onFocusOutside:a,onInteractOutside:u,onDismiss:i,...g}=e,l=c.useContext(Re),[d,v]=c.useState(null),h=(d==null?void 0:d.ownerDocument)??(globalThis==null?void 0:globalThis.document),[,E]=c.useState({}),R=F(t,y=>v(y)),s=Array.from(l.layers),[f]=[...l.layersWithOutsidePointerEventsDisabled].slice(-1),m=s.indexOf(f),b=d?s.indexOf(d):-1,C=l.layersWithOutsidePointerEventsDisabled.size>0,w=b>=m,S=yt(y=>{const x=y.target,W=[...l.branches].some(z=>z.contains(x));!w||W||(o==null||o(y),u==null||u(y),y.defaultPrevented||i==null||i())},h),O=Et(y=>{const x=y.target;[...l.branches].some(z=>z.contains(x))||(a==null||a(y),u==null||u(y),y.defaultPrevented||i==null||i())},h);return ft(y=>{b===l.layers.size-1&&(r==null||r(y),!y.defaultPrevented&&i&&(y.preventDefault(),i()))},h),c.useEffect(()=>{if(d)return n&&(l.layersWithOutsidePointerEventsDisabled.size===0&&(de=h.body.style.pointerEvents,h.body.style.pointerEvents="none"),l.layersWithOutsidePointerEventsDisabled.add(d)),l.layers.add(d),fe(),()=>{n&&l.layersWithOutsidePointerEventsDisabled.size===1&&(h.body.style.pointerEvents=de)}},[d,h,n,l]),c.useEffect(()=>()=>{d&&(l.layers.delete(d),l.layersWithOutsidePointerEventsDisabled.delete(d),fe())},[d,l]),c.useEffect(()=>{const y=()=>E({});return document.addEventListener(ae,y),()=>document.removeEventListener(ae,y)},[]),p.jsx(T.div,{...g,ref:R,style:{pointerEvents:C?w?"auto":"none":void 0,...e.style},onFocusCapture:A(e.onFocusCapture,O.onFocusCapture),onBlurCapture:A(e.onBlurCapture,O.onBlurCapture),onPointerDownCapture:A(e.onPointerDownCapture,S.onPointerDownCapture)})});De.displayName=vt;var gt="DismissableLayerBranch",pt=c.forwardRef((e,t)=>{const n=c.useContext(Re),r=c.useRef(null),o=F(t,r);return c.useEffect(()=>{const a=r.current;if(a)return n.branches.add(a),()=>{n.branches.delete(a)}},[n.branches]),p.jsx(T.div,{...e,ref:o})});pt.displayName=gt;function yt(e,t=globalThis==null?void 0:globalThis.document){const n=j(e),r=c.useRef(!1),o=c.useRef(()=>{});return c.useEffect(()=>{const a=i=>{if(i.target&&!r.current){let g=function(){Pe(ht,n,l,{discrete:!0})};const l={originalEvent:i};i.pointerType==="touch"?(t.removeEventListener("click",o.current),o.current=g,t.addEventListener("click",o.current,{once:!0})):g()}else t.removeEventListener("click",o.current);r.current=!1},u=window.setTimeout(()=>{t.addEventListener("pointerdown",a)},0);return()=>{window.clearTimeout(u),t.removeEventListener("pointerdown",a),t.removeEventListener("click",o.current)}},[t,n]),{onPointerDownCapture:()=>r.current=!0}}function Et(e,t=globalThis==null?void 0:globalThis.document){const n=j(e),r=c.useRef(!1);return c.useEffect(()=>{const o=a=>{a.target&&!r.current&&Pe(mt,n,{originalEvent:a},{discrete:!1})};return t.addEventListener("focusin",o),()=>t.removeEventListener("focusin",o)},[t,n]),{onFocusCapture:()=>r.current=!0,onBlurCapture:()=>r.current=!1}}function fe(){const e=new CustomEvent(ae);document.dispatchEvent(e)}function Pe(e,t,n,{discrete:r}){const o=n.originalEvent.target,a=new CustomEvent(e,{bubbles:!1,cancelable:!0,detail:n});t&&o.addEventListener(e,t,{once:!0}),r?ct(o,a):o.dispatchEvent(a)}var q="focusScope.autoFocusOnMount",Q="focusScope.autoFocusOnUnmount",ve={bubbles:!1,cancelable:!0},bt="FocusScope",Oe=c.forwardRef((e,t)=>{const{loop:n=!1,trapped:r=!1,onMountAutoFocus:o,onUnmountAutoFocus:a,...u}=e,[i,g]=c.useState(null),l=j(o),d=j(a),v=c.useRef(null),h=F(t,s=>g(s)),E=c.useRef({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;c.useEffect(()=>{if(r){let s=function(C){if(E.paused||!i)return;const w=C.target;i.contains(w)?v.current=w:N(v.current,{select:!0})},f=function(C){if(E.paused||!i)return;const w=C.relatedTarget;w!==null&&(i.contains(w)||N(v.current,{select:!0}))},m=function(C){if(document.activeElement===document.body)for(const S of C)S.removedNodes.length>0&&N(i)};document.addEventListener("focusin",s),document.addEventListener("focusout",f);const b=new MutationObserver(m);return i&&b.observe(i,{childList:!0,subtree:!0}),()=>{document.removeEventListener("focusin",s),document.removeEventListener("focusout",f),b.disconnect()}}},[r,i,E.paused]),c.useEffect(()=>{if(i){me.add(E);const s=document.activeElement;if(!i.contains(s)){const m=new CustomEvent(q,ve);i.addEventListener(q,l),i.dispatchEvent(m),m.defaultPrevented||(Ct(Pt(xe(i)),{select:!0}),document.activeElement===s&&N(i))}return()=>{i.removeEventListener(q,l),setTimeout(()=>{const m=new CustomEvent(Q,ve);i.addEventListener(Q,d),i.dispatchEvent(m),m.defaultPrevented||N(s??document.body,{select:!0}),i.removeEventListener(Q,d),me.remove(E)},0)}}},[i,l,d,E]);const R=c.useCallback(s=>{if(!n&&!r||E.paused)return;const f=s.key==="Tab"&&!s.altKey&&!s.ctrlKey&&!s.metaKey,m=document.activeElement;if(f&&m){const b=s.currentTarget,[C,w]=wt(b);C&&w?!s.shiftKey&&m===w?(s.preventDefault(),n&&N(C,{select:!0})):s.shiftKey&&m===C&&(s.preventDefault(),n&&N(w,{select:!0})):m===b&&s.preventDefault()}},[n,r,E.paused]);return p.jsx(T.div,{tabIndex:-1,...u,ref:h,onKeyDown:R})});Oe.displayName=bt;function Ct(e,{select:t=!1}={}){const n=document.activeElement;for(const r of e)if(N(r,{select:t}),document.activeElement!==n)return}function wt(e){const t=xe(e),n=he(t,e),r=he(t.reverse(),e);return[n,r]}function xe(e){const t=[],n=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:r=>{const o=r.tagName==="INPUT"&&r.type==="hidden";return r.disabled||r.hidden||o?NodeFilter.FILTER_SKIP:r.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;n.nextNode();)t.push(n.currentNode);return t}function he(e,t){for(const n of e)if(!St(n,{upTo:t}))return n}function St(e,{upTo:t}){if(getComputedStyle(e).visibility==="hidden")return!0;for(;e;){if(t!==void 0&&e===t)return!1;if(getComputedStyle(e).display==="none")return!0;e=e.parentElement}return!1}function Rt(e){return e instanceof HTMLInputElement&&"select"in e}function N(e,{select:t=!1}={}){if(e&&e.focus){const n=document.activeElement;e.focus({preventScroll:!0}),e!==n&&Rt(e)&&t&&e.select()}}var me=Dt();function Dt(){let e=[];return{add(t){const n=e[0];t!==n&&(n==null||n.pause()),e=ge(e,t),e.unshift(t)},remove(t){var n;e=ge(e,t),(n=e[0])==null||n.resume()}}}function ge(e,t){const n=[...e],r=n.indexOf(t);return r!==-1&&n.splice(r,1),n}function Pt(e){return e.filter(t=>t.tagName!=="A")}var Ot="Portal",Te=c.forwardRef((e,t)=>{var i;const{container:n,...r}=e,[o,a]=c.useState(!1);Se(()=>a(!0),[]);const u=n||o&&((i=globalThis==null?void 0:globalThis.document)==null?void 0:i.body);return u?st.createPortal(p.jsx(T.div,{...r,ref:t}),u):null});Te.displayName=Ot;var J=0;function xt(){c.useEffect(()=>{const e=document.querySelectorAll("[data-radix-focus-guard]");return document.body.insertAdjacentElement("afterbegin",e[0]??pe()),document.body.insertAdjacentElement("beforeend",e[1]??pe()),J++,()=>{J===1&&document.querySelectorAll("[data-radix-focus-guard]").forEach(t=>t.remove()),J--}},[])}function pe(){const e=document.createElement("span");return e.setAttribute("data-radix-focus-guard",""),e.tabIndex=0,e.style.outline="none",e.style.opacity="0",e.style.position="fixed",e.style.pointerEvents="none",e}var P=function(){return P=Object.assign||function(t){for(var n,r=1,o=arguments.length;r<o;r++){n=arguments[r];for(var a in n)Object.prototype.hasOwnProperty.call(n,a)&&(t[a]=n[a])}return t},P.apply(this,arguments)};function Ne(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 o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n}function Tt(e,t,n){if(n||arguments.length===2)for(var r=0,o=t.length,a;r<o;
vendor: 4,957 bytes, lines 6-21
6r++)(a||!(r in t))&&(a||(a=Array.prototype.slice.call(t,0,r)),a[r]=t[r]);return e.concat(a||Array.prototype.slice.call(t))}var G="right-scroll-bar-position",V="width-before-scroll-bar",Nt="with-scroll-bars-hidden",At="--removed-body-scroll-bar-size";function ee(e,t){return typeof e=="function"?e(t):e&&(e.current=t),e}function It(e,t){var n=c.useState(function(){return{value:e,callback:t,facade:{get current(){return n.value},set current(r){var o=n.value;o!==r&&(n.value=r,n.callback(r,o))}}}})[0];return n.callback=t,n.facade}var Mt=typeof window<"u"?c.useLayoutEffect:c.useEffect,ye=new WeakMap;function Lt(e,t){var n=It(null,function(r){return e.forEach(function(o){return ee(o,r)})});return Mt(function(){var r=ye.get(n);if(r){var o=new Set(r),a=new Set(e),u=n.current;o.forEach(function(i){a.has(i)||ee(i,null)}),a.forEach(function(i){o.has(i)||ee(i,u)})}ye.set(n,e)},[e]),n}function _t(e){return e}function kt(e,t){t===void 0&&(t=_t);var n=[],r=!1,o={read:function(){if(r)throw new 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(a){var u=t(a,r);return n.push(u),function(){n=n.filter(function(i){return i!==u})}},assignSyncMedium:function(a){for(r=!0;n.length;){var u=n;n=[],u.forEach(a)}n={push:function(i){return a(i)},filter:function(){return n}}},assignMedium:function(a){r=!0;var u=[];if(n.length){var i=n;n=[],i.forEach(a),u=n}var g=function(){var d=u;u=[],d.forEach(a)},l=function(){return Promise.resolve().then(g)};l(),n={push:function(d){u.push(d),l()},filter:function(d){return u=u.filter(d),n}}}};return o}function Ft(e){e===void 0&&(e={});var t=kt(null);return t.options=P({async:!0,ssr:!1},e),t}var Ae=function(e){var t=e.sideCar,n=Ne(e,["sideCar"]);if(!t)throw new Error("Sidecar: please provide `sideCar` property to import the right car");var r=t.read();if(!r)throw new Error("Sidecar medium not found");return c.createElement(r,P({},n))};Ae.isSideCarExport=!0;function Wt(e,t){return e.useMedium(t),Ae}var Ie=Ft(),te=function(){},Y=c.forwardRef(function(e,t){var n=c.useRef(null),r=c.useState({onScrollCapture:te,onWheelCapture:te,onTouchMoveCapture:te}),o=r[0],a=r[1],u=e.forwardProps,i=e.children,g=e.className,l=e.removeScrollBar,d=e.enabled,v=e.shards,h=e.sideCar,E=e.noRelative,R=e.noIsolation,s=e.inert,f=e.allowPinchZoom,m=e.as,b=m===void 0?"div":m,C=e.gapMode,w=Ne(e,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noRelative","noIsolation","inert","allowPinchZoom","as","gapMode"]),S=h,O=Lt([n,t]),y=P(P({},w),o);return c.createElement(c.Fragment,null,d&&c.createElement(S,{sideCar:Ie,removeScrollBar:l,shards:v,noRelative:E,noIsolation:R,inert:s,setCallbacks:a,allowPinchZoom:!!f,lockRef:n,gapMode:C}),u?c.cloneElement(c.Children.only(i),P(P({},y),{ref:O})):c.createElement(b,P({},y,{className:g,ref:O}),i))});Y.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1};Y.classNames={fullWidth:V,zeroRight:G};var jt=function(){if(typeof __webpack_nonce__<"u")return __webpack_nonce__};function Bt(){if(!document)return null;var e=document.createElement("style");e.type="text/css";var t=jt();return t&&e.setAttribute("nonce",t),e}function Ut(e,t){e.styleSheet?e.styleSheet.cssText=t:e.appendChild(document.createTextNode(t))}function Ht(e){var t=document.head||document.getElementsByTagName("head")[0];t.appendChild(e)}var Kt=function(){var e=0,t=null;return{add:function(n){e==0&&(t=Bt())&&(Ut(t,n),Ht(t)),e++},remove:function(){e--,!e&&t&&(t.parentNode&&t.parentNode.removeChild(t),t=null)}}},Gt=function(){var e=Kt();return function(t,n){c.useEffect(function(){return e.add(t),function(){e.remove()}},[t&&n])}},Me=function(){var e=Gt(),t=function(n){var r=n.styles,o=n.dynamic;return e(r,o),null};return t},Vt={left:0,top:0,right:0,gap:0},ne=function(e){return parseInt(e||"",10)||0},Xt=function(e){var t=window.getComputedStyle(document.body),n=t[e==="padding"?"paddingLeft":"marginLeft"],r=t[e==="padding"?"paddingTop":"marginTop"],o=t[e==="padding"?"paddingRight":"marginRight"];return[ne(n),ne(r),ne(o)]},Yt=function(e){if(e===void 0&&(e="margin"),typeof window>"u")return Vt;var t=Xt(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])}},$t=Me(),k="data-scroll-locked",zt=function(e,t,n,r){var o=e.left,a=e.top,u=e.right,i=e.gap;return n===void 0&&(n="margin"),`
7  .`.concat(Nt,` {
8   overflow: hidden `).concat(r,`;
9   padding-right: `).concat(i,"px ").concat(r,`;
10  }
11  body[`).concat(k,`] {
12    overflow: hidden `).concat(r,`;
13    overscroll-behavior: contain;
14    `).concat([t&&"position: relative ".concat(r,";"),n==="margin"&&`
15    padding-left: `.concat(o,`px;
16    padding-top: `).concat(a,`px;
17    padding-right: `).concat(u,`px;
18    margin-left:0;
19    margin-top:0;
20    margin-right: `).concat(i,"px ").concat(r,`;
21    `),n==="padding"&&"padding-right: ".concat(i,"px ").concat(r,";
21")].filter(Boolean).join(""),`
22  }
23  
24  .`).concat(G,` {
25    right: `).concat(i,"px ").concat(r,`;
26  }
27  
28  .`).concat(V,` {
29    margin-right: `).concat(i,"px ").concat(r,`;
30  }
31  
32  .`).concat(G," .").concat(G,` {
33    right: 0 `).concat(r,`;
34  }
35  
36  .`).concat(V," .").concat(V,` {
37    margin-right: 0 `).concat(r,`;
38  }
39  
40  body[`).concat(k,`] {
41    `).concat(At,": ").concat(i,`px;
42  }
43`)},Ee=function(){var e=parseInt(document.body.getAttribute(k)||"0",10);return isFinite(e)?e:0},Zt=function(){c.useEffect(function(){return document.body.setAttribute(k,(Ee()+1).toString()),function(){var e=Ee()-1;e<=0?document.body.removeAttribute(k):document.body.setAttribute(k,e.toString())}},[])},qt=function(e){var t=e.noRelative,n=e.noImportant,r=e.gapMode,o=r===void 0?"margin":r;Zt();var a=c.useMemo(function(){return Yt(o)},[o]);return c.createElement($t,{styles:zt(a,!t,o,n?"":"!important")})},ie=!1;if(typeof window<"u")try{var B=Object.defineProperty({},"passive",{get:function(){return ie=!0,!0}});window.addEventListener("test",B,B),window.removeEventListener("test",B,B)}catch{ie=!1}var M=ie?{passive:!1}:!1,Qt=function(e){return e.tagName==="TEXTAREA"},Le=function(e,t){if(!(e instanceof Element))return!1;var n=window.getComputedStyle(e);return n[t]!=="hidden"&&!(n.overflowY===n.overflowX&&!Qt(e)&&n[t]==="visible")},Jt=function(e){return Le(e,"overflowY")},en=function(e){return Le(e,"overflowX")},be=function(e,t){var n=t.ownerDocument,r=t;do{typeof ShadowRoot<"u"&&r instanceof ShadowRoot&&(r=r.host);var o=_e(e,r);if(o){var a=ke(e,r),u=a[1],i=a[2];if(u>i)return!0}r=r.parentNode}while(r&&r!==n.body);return!1},tn=function(e){var t=e.scrollTop,n=e.scrollHeight,r=e.clientHeight;return[t,n,r]},nn=function(e){var t=e.scrollLeft,n=e.scrollWidth,r=e.clientWidth;return[t,n,r]},_e=function(e,t){return e==="v"?Jt(t):en(t)},ke=function(e,t){return e==="v"?tn(t):nn(t)},rn=function(e,t){return e==="h"&&t==="rtl"?-1:1},on=function(e,t,n,r,o){var a=rn(e,window.getComputedStyle(t).direction),u=a*r,i=n.target,g=t.contains(i),l=!1,d=u>0,v=0,h=0;do{if(!i)break;var E=ke(e,i),R=E[0],s=E[1],f=E[2],m=s-f-a*R;(R||m)&&_e(e,i)&&(v+=m,h+=R);var b=i.parentNode;i=b&&b.nodeType===Node.DOCUMENT_FRAGMENT_NODE?b.host:b}while(!g&&i!==document.body||g&&(t.contains(i)||t===i));return(d&&Math.abs(v)<1||!d&&Math.abs(h)<1)&&(l=!0),l},U=function(e){return"changedTouches"in e?[e.changedTouches[0].clientX,e.changedTouches[0].clientY]:[0,0]},Ce=function(e){return[e.deltaX,e.deltaY]},we=function(e){return e&&"current"in e?e.current:e},an=function(e,t){return e[0]===t[0]&&e[1]===t[1]},cn=function(e){return`
44  .block-interactivity-`.concat(e,` {pointer-events: none;}
45  .allow-interactivity-`).concat(e,` {pointer-events: all;}
46`)},sn=0,L=[];function un(e){var t=c.useRef([]),n=c.useRef([0,0]),r=c.useRef(),o=c.useState(sn++)[0],a=c.useState(Me)[0],u=c.useRef(e);c.useEffect(function(){u.current=e},[e]),c.useEffect(function(){if(e.inert){document.body.classList.add("block-interactivity-".concat(o));var s=Tt([e.lockRef.current],(e.shards||[]).map(we),!0).filter(Boolean);return s.forEach(function(f){return f.classList.add("allow-interactivity-".concat(o))}),function(){document.body.classList.remove("block-interactivity-".concat(o)),s.forEach(function(f){return f.classList.remove("allow-interactivity-".concat(o))})}}},[e.inert,e.lockRef.current,e.shards]);var i=c.useCallback(function(s,f){if("touches"in s&&s.touches.length===2||s.type==="wheel"&&s.ctrlKey)return!u.current.allowPinchZoom;var m=U(s),b=n.current,C="deltaX"in s?s.deltaX:b[0]-m[0],w="deltaY"in s?s.deltaY:b[1]-m[1],S,O=s.target,y=Math.abs(C)>Math.abs(w)?"h":"v";if("touches"in s&&y==="h"&&O.type==="range")return!1;var x=be(y,O);if(!x)return!0;if(x?S=y:(S=y==="v"?"h":"v",x=be(y,O)),!x)return!1;if(!r.current&&"changedTouches"in s&&(C||w)&&(r.current=S),!S)return!0;var W=r.current||S;return on(W,f,s,W==="h"?C:w)},[]),g=c.useCallback(function(s){var f=s;if(!(!L.length||L[L.length-1]!==a)){var m="deltaY"in f?Ce(f):U(f),b=t.current.filter(function(S){return S.name===f.type&&(S.target===f.target||f.target===S.shadowParent)&&an(S.delta,m)})[0];if(b&&b.should){f.cancelable&&f.preventDefault();return}
vendor: 4,291 bytes, line 46
46if(!b){var C=(u.current.shards||[]).map(we).filter(Boolean).filter(function(S){return S.contains(f.target)}),w=C.length>0?i(f,C[0]):!u.current.noIsolation;w&&f.cancelable&&f.preventDefault()}}},[]),l=c.useCallback(function(s,f,m,b){var C={name:s,delta:f,target:m,should:b,shadowParent:ln(m)};t.current.push(C),setTimeout(function(){t.current=t.current.filter(function(w){return w!==C})},1)},[]),d=c.useCallback(function(s){n.current=U(s),r.current=void 0},[]),v=c.useCallback(function(s){l(s.type,Ce(s),s.target,i(s,e.lockRef.current))},[]),h=c.useCallback(function(s){l(s.type,U(s),s.target,i(s,e.lockRef.current))},[]);c.useEffect(function(){return L.push(a),e.setCallbacks({onScrollCapture:v,onWheelCapture:v,onTouchMoveCapture:h}),document.addEventListener("wheel",g,M),document.addEventListener("touchmove",g,M),document.addEventListener("touchstart",d,M),function(){L=L.filter(function(s){return s!==a}),document.removeEventListener("wheel",g,M),document.removeEventListener("touchmove",g,M),document.removeEventListener("touchstart",d,M)}},[]);var E=e.removeScrollBar,R=e.inert;return c.createElement(c.Fragment,null,R?c.createElement(a,{styles:cn(o)}):null,E?c.createElement(qt,{noRelative:e.noRelative,gapMode:e.gapMode}):null)}function ln(e){for(var t=null;e!==null;)e instanceof ShadowRoot&&(t=e.host,e=e.host),e=e.parentNode;return t}const dn=Wt(Ie,un);var Fe=c.forwardRef(function(e,t){return c.createElement(Y,P({},e,{ref:t,sideCar:dn}))});Fe.classNames=Y.classNames;var fn=function(e){if(typeof document>"u")return null;var t=Array.isArray(e)?e[0]:e;return t.ownerDocument.body},_=new WeakMap,H=new WeakMap,K={},re=0,We=function(e){return e&&(e.host||We(e.parentNode))},vn=function(e,t){return t.map(function(n){if(e.contains(n))return n;var r=We(n);return r&&e.contains(r)?r:(console.error("aria-hidden",n,"in not contained inside",e,". Doing nothing"),null)}).filter(function(n){return!!n})},hn=function(e,t,n,r){var o=vn(t,Array.isArray(e)?e:[e]);K[n]||(K[n]=new WeakMap);var a=K[n],u=[],i=new Set,g=new Set(o),l=function(v){!v||i.has(v)||(i.add(v),l(v.parentNode))};o.forEach(l);var d=function(v){!v||g.has(v)||Array.prototype.forEach.call(v.children,function(h){if(i.has(h))d(h);else try{var E=h.getAttribute(r),R=E!==null&&E!=="false",s=(_.get(h)||0)+1,f=(a.get(h)||0)+1;_.set(h,s),a.set(h,f),u.push(h),s===1&&R&&H.set(h,!0),f===1&&h.setAttribute(n,"true"),R||h.setAttribute(r,"true")}catch(m){console.error("aria-hidden: cannot operate on ",h,m)}})};return d(t),i.clear(),re++,function(){u.forEach(function(v){var h=_.get(v)-1,E=a.get(v)-1;_.set(v,h),a.set(v,E),h||(H.has(v)||v.removeAttribute(r),H.delete(v)),E||v.removeAttribute(n)}),re--,re||(_=new WeakMap,_=new WeakMap,H=new WeakMap,K={})}},mn=function(e,t,n){n===void 0&&(n="data-aria-hidden");var r=Array.from(Array.isArray(e)?e:[e]),o=fn(e);return o?(r.push.apply(r,Array.from(o.querySelectorAll("[aria-live], script"))),hn(r,o,n,"aria-hidden")):function(){return null}},$="Dialog",[je,In]=ot($),[gn,D]=je($),Be=e=>{const{__scopeDialog:t,children:n,open:r,defaultOpen:o,onOpenChange:a,modal:u=!0}=e,i=c.useRef(null),g=c.useRef(null),[l,d]=rt({prop:r,defaultProp:o??!1,onChange:a,caller:$});return p.jsx(gn,{scope:t,triggerRef:i,contentRef:g,contentId:Z(),titleId:Z(),descriptionId:Z(),open:l,onOpenChange:d,onOpenToggle:c.useCallback(()=>d(v=>!v),[d]),modal:u,children:n})};Be.displayName=$;var Ue="DialogTrigger",He=c.forwardRef((e,t)=>{const{__scopeDialog:n,...r}=e,o=D(Ue,n),a=F(t,o.triggerRef);return p.jsx(T.button,{type:"button","aria-haspopup":"dialog","aria-expanded":o.open,"aria-controls":o.contentId,"data-state":le(o.open),...r,ref:a,onClick:A(e.onClick,o.onOpenToggle)})});He.displayName=Ue;var se="DialogPortal",[pn,Ke]=je(se,{forceMount:void 0}),Ge=e=>{const{__scopeDialog:t,forceMount:n,children:r,container:o}=e,a=D(se,t);return p.jsx(pn,{scope:t,forceMount:n,children:c.Children.map(r,u=>p.jsx(ce,{present:n||a.open,children:p.jsx(Te,{asChild:!0,container:o,children:u})}))})};Ge.displayName=se;var X="DialogOverlay",Ve=c.forwardRef((e,t)=>{const n=Ke(X,e.__scopeDialog),{forceMount:r=n.forceMount,...o}=e,a=D(X,e.__scopeDialog);return a.modal?p.jsx(ce,{present:r||a.open,children:p.jsx(En,{...o,ref:t})}):null});Ve.displayName=X;var yn=it("DialogOverlay.RemoveScroll"),En=c.forwardRef((e,t)=>
vendor: 4,123 bytes, lines 46-50
46{const{__scopeDialog:n,...r}=e,o=D(X,n);return p.jsx(Fe,{as:yn,allowPinchZoom:!0,shards:[o.contentRef],children:p.jsx(T.div,{"data-state":le(o.open),...r,ref:t,style:{pointerEvents:"auto",...r.style}})})}),I="DialogContent",Xe=c.forwardRef((e,t)=>{const n=Ke(I,e.__scopeDialog),{forceMount:r=n.forceMount,...o}=e,a=D(I,e.__scopeDialog);return p.jsx(ce,{present:r||a.open,children:a.modal?p.jsx(bn,{...o,ref:t}):p.jsx(Cn,{...o,ref:t})})});Xe.displayName=I;var bn=c.forwardRef((e,t)=>{const n=D(I,e.__scopeDialog),r=c.useRef(null),o=F(t,n.contentRef,r);return c.useEffect(()=>{const a=r.current;if(a)return mn(a)},[]),p.jsx(Ye,{...e,ref:o,trapFocus:n.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:A(e.onCloseAutoFocus,a=>{var u;a.preventDefault(),(u=n.triggerRef.current)==null||u.focus()}),onPointerDownOutside:A(e.onPointerDownOutside,a=>{const u=a.detail.originalEvent,i=u.button===0&&u.ctrlKey===!0;(u.button===2||i)&&a.preventDefault()}),onFocusOutside:A(e.onFocusOutside,a=>a.preventDefault())})}),Cn=c.forwardRef((e,t)=>{const n=D(I,e.__scopeDialog),r=c.useRef(!1),o=c.useRef(!1);return p.jsx(Ye,{...e,ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:a=>{var u,i;(u=e.onCloseAutoFocus)==null||u.call(e,a),a.defaultPrevented||(r.current||(i=n.triggerRef.current)==null||i.focus(),a.preventDefault()),r.current=!1,o.current=!1},onInteractOutside:a=>{var g,l;(g=e.onInteractOutside)==null||g.call(e,a),a.defaultPrevented||(r.current=!0,a.detail.originalEvent.type==="pointerdown"&&(o.current=!0));const u=a.target;((l=n.triggerRef.current)==null?void 0:l.contains(u))&&a.preventDefault(),a.detail.originalEvent.type==="focusin"&&o.current&&a.preventDefault()}})}),Ye=c.forwardRef((e,t)=>{const{__scopeDialog:n,trapFocus:r,onOpenAutoFocus:o,onCloseAutoFocus:a,...u}=e,i=D(I,n),g=c.useRef(null),l=F(t,g);return xt(),p.jsxs(p.Fragment,{children:[p.jsx(Oe,{asChild:!0,loop:!0,trapped:r,onMountAutoFocus:o,onUnmountAutoFocus:a,children:p.jsx(De,{role:"dialog",id:i.contentId,"aria-describedby":i.descriptionId,"aria-labelledby":i.titleId,"data-state":le(i.open),...u,ref:l,onDismiss:()=>i.onOpenChange(!1)})}),p.jsxs(p.Fragment,{children:[p.jsx(wn,{titleId:i.titleId}),p.jsx(Rn,{contentRef:g,descriptionId:i.descriptionId})]})]})}),ue="DialogTitle",$e=c.forwardRef((e,t)=>{const{__scopeDialog:n,...r}=e,o=D(ue,n);return p.jsx(T.h2,{id:o.titleId,...r,ref:t})});$e.displayName=ue;var ze="DialogDescription",Ze=c.forwardRef((e,t)=>{const{__scopeDialog:n,...r}=e,o=D(ze,n);return p.jsx(T.p,{id:o.descriptionId,...r,ref:t})});Ze.displayName=ze;var qe="DialogClose",Qe=c.forwardRef((e,t)=>{const{__scopeDialog:n,...r}=e,o=D(qe,n);return p.jsx(T.button,{type:"button",...r,ref:t,onClick:A(e.onClick,()=>o.onOpenChange(!1))})});Qe.displayName=qe;function le(e){return e?"open":"closed"}var Je="DialogTitleWarning",[Mn,et]=at(Je,{contentName:I,titleName:ue,docsSlug:"dialog"}),wn=({titleId:e})=>{const t=et(Je),n=`\`${t.contentName}\` requires a \`${t.titleName}\` for the component to be accessible for screen reader users.
47
48If you want to hide the \`${t.titleName}\`, you can wrap it with our VisuallyHidden component.
49
50For more information, see https://radix-ui.com/primitives/docs/components/${t.docsSlug}`;return c.useEffect(()=>{e&&(document.getElementById(e)||console.error(n))},[n,e]),null},Sn="DialogDescriptionWarning",Rn=({contentRef:e,descriptionId:t})=>{const r=`Warning: Missing \`Description\` or \`aria-describedby={undefined}\` for {${et(Sn).contentName}}.`;return c.useEffect(()=>{var a;const o=(a=e.current)==null?void 0:a.getAttribute("aria-describedby");t&&o&&(document.getElementById(t)||console.warn(r))},[r,e,t]),null},Ln=Be,_n=He,kn=Ge,Fn=Ve,Wn=Xe,jn=$e,Bn=Ze,Un=Qe;const oe=768;function Hn(){const[e,t]=c.useState();return c.useEffect(()=>{const n=window.matchMedia(`(max-width: ${oe-1}px)`),r=()=>{t(window.innerWidth<oe)};return n.addEventListener("change",r),t(window.innerWidth<oe),()=>n.removeEventListener("change",r)},[]),!!e}export{Wn as C,De as D,Oe as F,Fn as O,Te as P,Fe as R,jn as T,An as X,xt as a,j as b,Hn as c,Ln as d,Un as e,Bn as f,_n as g,mn as h,kn as i,Z as u};

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.