PageSourceSearch

https://xmacna.ai/_nuxt/CP5dzy76.js

js xmacna.ai collected 2026-10-05 13:24:05 UTC 13,266 bytes, 1 lines download raw bytes

1import{i as ie,n as Re,f as le,u as ne,d as x,P as U,N as S,S as A,E as se,T as ke,t as Pe,q as Ce,b as Me,w as Ne,$ as He,z as Be,c as oe}from"./CNUNWXew.js";import{A as J,o as w,u as I,i as de,l as xe,a as W,N as re}from"./BclhCOHB.js";import{t as ce,o as fe}from"./5UZX8MeU.js";import{d as K,s as g,k as d,H as R,I as N,a2 as T,F as We,J as Q,G as Y,ap as je,a3 as X,a4 as Z,a1 as Ue}from"./Bcc8-a-q.js";import{o as Ie}from"./C1Wiwm26.js";function Ye(e){function t(){document.readyState!=="loading"&&(e(),document.removeEventListener("DOMContentLoaded",t))}typeof window<"u"&&typeof document<"u"&&(document.addEventListener("DOMContentLoaded",t),t())}let F=[];Ye(()=>{function e(t){t.target instanceof HTMLElement&&t.target!==document.body&&F[0]!==t.target&&(F.unshift(t.target),F=F.filter(a=>a!=null&&a.isConnected),F.splice(10))}window.addEventListener("click",e,{capture:!0}),window.addEventListener("mousedown",e,{capture:!0}),window.addEventListener("focus",e,{capture:!0}),document.body.addEventListener("click",e,{capture:!0}),document.body.addEventListener("mousedown",e,{capture:!0}),document.body.addEventListener("focus",e,{capture:!0})});function ve(e){if(!e)return new Set;if(typeof e=="function")return new Set(e());let t=new Set;for(let a of e.value){let n=w(a);n instanceof HTMLElement&&t.add(n)}return t}var pe=(e=>(e[e.None=1]="None",e[e.InitialFocus=2]="InitialFocus",e[e.TabLock=4]="TabLock",e[e.FocusLock=8]="FocusLock",e[e.RestoreFocus=16]="RestoreFocus",e[e.All=30]="All",e))(pe||{});let C=Object.assign(K({name:"FocusTrap",props:{as:{type:[Object,String],default:"div"},initialFocus:{type:Object,default:null},features:{type:Number,default:30},containers:{type:[Object,Function],default:g(new Set)}},inheritAttrs:!1,setup(e,{attrs:t,slots:a,expose:n}){let l=g(null);n({el:l,$el:l});let o=d(()=>ie(l)),i=g(!1);R(()=>i.value=!0),N(()=>i.value=!1),Ve({ownerDocument:o},d(()=>i.value&&!!(e.features&16)));let u=ze({ownerDocument:o,container:l,initialFocus:d(()=>e.initialFocus)},d(()=>i.value&&!!(e.features&2)));Ge({ownerDocument:o,container:l,containers:e.containers,previousActiveElement:u},d(()=>i.value&&!!(e.features&8)));let r=Re();function c(p){let v=w(l);v&&(h=>h())(()=>{I(r.value,{[x.Forwards]:()=>{U(v,S.First,{skipElements:[p.relatedTarget]})},[x.Backwards]:()=>{U(v,S.Last,{skipElements:[p.relatedTarget]})}})})}let m=g(!1);function b(p){p.key==="Tab"&&(m.value=!0,requestAnimationFrame(()=>{m.value=!1}))}function E(p){if(!i.value)return;let v=ve(e.containers);w(l)instanceof HTMLElement&&v.add(w(l));let h=p.relatedTarget;h instanceof HTMLElement&&h.dataset.headlessuiFocusGuard!=="true"&&(me(v,h)||(m.value?U(w(l),I(r.value,{[x.Forwards]:()=>S.Next,[x.Backwards]:()=>S.Previous})|S.WrapAround,{relativeTo:p.target}):p.target instanceof HTMLElement&&A(p.target)))}return()=>{let p={},v={ref:l,onKeydown:b,onFocusout:E},{features:h,initialFocus:y,containers:k,...O}=e;return T(We,[!!(h&4)&&T(le,{as:"button",type:"button","data-headlessui-focus-guard":!0,onFocus:c,features:ne.Focusable}),J({ourProps:v,theirProps:{...t,...O},slot:p,attrs:t,slots:a,name:"FocusTrap"}),!!(h&4)&&T(le,{as:"button",type:"button","data-headlessui-focus-guard":!0,onFocus:c,features:ne.Focusable})])}}}),{features:pe});function qe(e){let t=g(F.slice());return Y([e],([a],[n])=>{n===!0&&a===!1?ce(()=>{t.value.splice(0)}):n===!1&&a===!0&&(t.value=F.slice())},{flush:"post"}),()=>{var a;return(a=t.value.find(n=>n!=null&&n.isConnected))!=null?a:null}}function Ve({ownerDocument:e},t){let a=qe(t);R(()=>{Q(()=>{var n,l;t.value||((n=e.value)==null?void 0:n.activeElement)===((l=e.value)==null?void 0:l.body)&&A(a())},{flush:"post"})}),N(()=>{t.value&&A(a())})}function ze({ownerDocument:e,container:t,initialFocus:a},n){let l=g(null),o=g(!1);return R(()=>o.value=!0),N(()=>o.value=!1),R(()=>{Y([t,a,n],(i,u)=>{if(i.every((c,m)=>(u==null?void 0:u[m])===c)||!n.value)return;let r=w(t);r&&ce(()=>{var c,m;if(!o.value)return;let b=w(a),E=(c=e.value)==null?void 0:c.activeElement;if(b){if(b===E){l.value=E;return}}else if(r.contains(E)){l.value=E;return}b?A(b):U(r,S.First|S.NoScroll)===ke.Error&&console.warn("There are no focu
1sable elements inside the <FocusTrap />"),l.value=(m=e.value)==null?void 0:m.activeElement})},{immediate:!0,flush:"post"})}),l}function Ge({ownerDocument:e,container:t,containers:a,previousActiveElement:n},l){var o;se((o=e.value)==null?void 0:o.defaultView,"focus",i=>{if(!l.value)return;let u=ve(a);w(t)instanceof HTMLElement&&u.add(w(t));let r=n.value;if(!r)return;let c=i.target;c&&c instanceof HTMLElement?me(u,c)?(n.value=c,A(c)):(i.preventDefault(),i.stopPropagation(),A(r)):A(n.value)},!0)}function me(e,t){for(let a of e)if(a.contains(t))return!0;return!1}function _e(e){let t=je(e.getSnapshot());return N(e.subscribe(()=>{t.value=e.getSnapshot()})),t}function Je(e,t){let a=e(),n=new Set;return{getSnapshot(){return a},subscribe(l){return n.add(l),()=>n.delete(l)},dispatch(l,...o){let i=t[l].call(a,...o);i&&(a=i,n.forEach(u=>u()))}}}function Ke(){let e;return{before({doc:t}){var a;let n=t.documentElement;e=((a=t.defaultView)!=null?a:window).innerWidth-n.clientWidth},after({doc:t,d:a}){let n=t.documentElement,l=n.clientWidth-n.offsetWidth,o=e-l;a.style(n,"paddingRight",`${o}px`)}}}function Qe(){return Pe()?{before({doc:e,d:t,meta:a}){function n(l){return a.containers.flatMap(o=>o()).some(o=>o.contains(l))}t.microTask(()=>{var l;if(window.getComputedStyle(e.documentElement).scrollBehavior!=="auto"){let u=fe();u.style(e.documentElement,"scrollBehavior","auto"),t.add(()=>t.microTask(()=>u.dispose()))}let o=(l=window.scrollY)!=null?l:window.pageYOffset,i=null;t.addEventListener(e,"click",u=>{if(u.target instanceof HTMLElement)try{let r=u.target.closest("a");if(!r)return;let{hash:c}=new URL(r.href),m=e.querySelector(c);m&&!n(m)&&(i=m)}catch{}},!0),t.addEventListener(e,"touchstart",u=>{if(u.target instanceof HTMLElement)if(n(u.target)){let r=u.target;for(;r.parentElement&&n(r.parentElement);)r=r.parentElement;t.style(r,"overscrollBehavior","contain")}else t.style(u.target,"touchAction","none")}),t.addEventListener(e,"touchmove",u=>{if(u.target instanceof HTMLElement){if(u.target.tagName==="INPUT")return;if(n(u.target)){let r=u.target;for(;r.parentElement&&r.dataset.headlessuiPortal!==""&&!(r.scrollHeight>r.clientHeight||r.scrollWidth>r.clientWidth);)r=r.parentElement;r.dataset.headlessuiPortal===""&&u.preventDefault()}else u.preventDefault()}},{passive:!1}),t.add(()=>{var u;let r=(u=window.scrollY)!=null?u:window.pageYOffset;o!==r&&window.scrollTo(0,o),i&&i.isConnected&&(i.scrollIntoView({block:"nearest"}),i=null)})})}}:{}}function Xe(){return{before({doc:e,d:t}){t.style(e.documentElement,"overflow","hidden")}}}function Ze(e){let t={};for(let a of e)Object.assign(t,a(t));return t}let D=Je(()=>new Map,{PUSH(e,t){var a;let n=(a=this.get(e))!=null?a:{doc:e,count:0,d:fe(),meta:new Set};return n.count++,n.meta.add(t),this.set(e,n),this},POP(e,t){let a=this.get(e);return a&&(a.count--,a.meta.delete(t)),this},SCROLL_PREVENT({doc:e,d:t,meta:a}){let n={doc:e,d:t,meta:Ze(a)},l=[Qe(),Ke(),Xe()];l.forEach(({before:o})=>o==null?void 0:o(n)),l.forEach(({after:o})=>o==null?void 0:o(n))},SCROLL_ALLOW({d:e}){e.dispose()},TEARDOWN({doc:e}){this.delete(e)}});D.subscribe(()=>{let e=D.getSnapshot(),t=new Map;for(let[a]of e)t.set(a,a.documentElement.style.overflow);for(let a of e.values()){let n=t.get(a.doc)==="hidden",l=a.count!==0;(l&&!n||!l&&n)&&D.dispatch(a.count>0?"SCROLL_PREVENT":"SCROLL_ALLOW",a),a.count===0&&D.dispatch("TEARDOWN",a)}});function et(e,t,a){let n=_e(D),l=d(()=>{let o=e.value?n.value.get(e.value):void 0;return o?o.count>0:!1});return Y([e,t],([o,i],[u],r)=>{if(!o||!i)return;D.dispatch("PUSH",o,a);let c=!1;r(()=>{c||(D.dispatch("POP",u??o,a),c=!0)})},{immediate:!0}),l}let z=new Map,M=new Map;function ue(e,t=g(!0)){Q(a=>{var n;if(!t.value)return;let l=w(e);if(!l)return;a(function(){var i;if(!l)return;let u=(i=M.get(l))!=null?i:1;if(u===1?M.delete(l):M.set(l,u-1),u!==1)return;let r=z.get(l);r&&(r["aria-hidden"]===null?l.removeAttribute("aria-hidden"):l.setAttribute("aria-hidden",r["aria-hidden"]),l.inert=r.inert,z.delete(l))});let o=(n=M.get(l))!=null?n:0;M.set(l,o+1),o===0&&(z.set(l,{"aria-hidden":l.getAttribute("aria-hidden"),inert:l.inert}),l.setAttribute("aria-hidden","true"),l.inert=!0)})}let ge=Symbol("StackContext");var G=(e=>(e[e.Add=0]="Add",e[e.Remove=1]="Remove",e))(G||{});function tt(){return X(ge,()=>{})}
1function at({type:e,enabled:t,element:a,onUpdate:n}){let l=tt();function o(...i){n==null||n(...i),l(...i)}R(()=>{Y(t,(i,u)=>{i?o(0,e,a):u===!0&&o(1,e,a)},{immediate:!0,flush:"sync"})}),N(()=>{t.value&&o(1,e,a)}),Z(ge,o)}let lt=Symbol("DescriptionContext");function nt({slot:e=g({}),name:t="Description",props:a={}}={}){let n=g([]);function l(o){return n.value.push(o),()=>{let i=n.value.indexOf(o);i!==-1&&n.value.splice(i,1)}}return Z(lt,{register:l,slot:e,name:t,props:a}),d(()=>n.value.length>0?n.value.join(" "):void 0)}var ot=(e=>(e[e.Open=0]="Open",e[e.Closed=1]="Closed",e))(ot||{});let _=Symbol("DialogContext");function he(e){let t=X(_,null);if(t===null){let a=new Error(`<${e} /> is missing a parent <Dialog /> component.`);throw Error.captureStackTrace&&Error.captureStackTrace(a,he),a}return t}let j="DC8F892D-2EBD-447C-A4C8-A03058436FF4",ct=K({name:"Dialog",inheritAttrs:!1,props:{as:{type:[Object,String],default:"div"},static:{type:Boolean,default:!1},unmount:{type:Boolean,default:!0},open:{type:[Boolean,String],default:j},initialFocus:{type:Object,default:null},id:{type:String,default:null},role:{type:String,default:"dialog"}},emits:{close:e=>!0},setup(e,{emit:t,attrs:a,slots:n,expose:l}){var o,i;let u=(o=e.id)!=null?o:`headlessui-dialog-${de()}`,r=g(!1);R(()=>{r.value=!0});let c=!1,m=d(()=>e.role==="dialog"||e.role==="alertdialog"?e.role:(c||(c=!0,console.warn(`Invalid role [${m}] passed to <Dialog />. Only \`dialog\` and and \`alertdialog\` are supported. Using \`dialog\` instead.`)),"dialog")),b=g(0),E=xe(),p=d(()=>e.open===j&&E!==null?(E.value&W.Open)===W.Open:e.open),v=g(null),h=d(()=>ie(v));if(l({el:v,$el:v}),!(e.open!==j||E!==null))throw new Error("You forgot to provide an `open` prop to the `Dialog`.");if(typeof p.value!="boolean")throw new Error(`You provided an \`open\` prop to the \`Dialog\`, but the value is not a boolean. Received: ${p.value===j?void 0:e.open}`);let y=d(()=>r.value&&p.value?0:1),k=d(()=>y.value===0),O=d(()=>b.value>1),ee=X(_,null)!==null,[we,Ee]=Ce(),{resolveContainers:q,mainTreeNodeRef:te,MainTreeNode:be}=Me({portals:we,defaultContainers:[d(()=>{var s;return(s=P.panelRef.value)!=null?s:v.value})]}),ye=d(()=>
1O.value?"parent":"leaf"),ae=d(()=>E!==null?(E.value&W.Closing)===W.Closing:!1),$e=d(()=>ee||ae.value?!1:k.value),Le=d(()=>{var s,f,$;return($=Array.from((f=(s=h.value)==null?void 0:s.querySelectorAll("body > *"))!=null?f:[]).find(L=>L.id==="headlessui-portal-root"?!1:L.contains(w(te))&&L instanceof HTMLElement))!=null?$:null});ue(Le,$e);let Te=d(()=>O.value?!0:k.value),Se=d(()=>{var s,f,$;return($=Array.from((f=(s=h.value)==null?void 0:s.querySelectorAll("[data-headlessui-portal]"))!=null?f:[]).find(L=>L.contains(w(te))&&L instanceof HTMLElement))!=null?$:null});ue(Se,Te),at({type:"Dialog",enabled:d(()=>y.value===0),element:v,onUpdate:(s,f)=>{if(f==="Dialog")return I(s,{[G.Add]:()=>b.value+=1,[G.Remove]:()=>b.value-=1})}});let Fe=nt({name:"DialogDescription",slot:d(()=>({open:p.value}))}),H=g(null),P={titleId:H,panelRef:g(null),dialogState:y,setTitleId(s){H.value!==s&&(H.value=s)},close(){t("close",!1)}};Z(_,P);let De=d(()=>!(!k.value||O.value));Ne(q,(s,f)=>{s.preventDefault(),P.close(),Ue(()=>f==null?void 0:f.focus())},De);let Ae=d(()=>!(O.value||y.value!==0));se((i=h.value)==null?void 0:i.defaultView,"keydown",s=>{Ae.value&&(s.defaultPrevented||s.key===Ie.Escape&&(s.preventDefault(),s.stopPropagation(),P.close()))});let Oe=d(()=>!(ae.value||y.value!==0||ee));return et(h,Oe,s=>{var f;return{containers:[...(f=s.containers)!=null?f:[],q]}}),Q(s=>{if(y.value!==0)return;let f=w(v);if(!f)return;let $=new ResizeObserver(L=>{for(let V of L){let B=V.target.getBoundingClientRect();B.x===0&&B.y===0&&B.width===0&&B.height===0&&P.close()}});$.observe(f),s(()=>$.disconnect())}),()=>{let{open:s,initialFocus:f,...$}=e,L={...a,ref:v,id:u,role:m.value,"aria-modal":y.value===0?!0:void 0,"aria-labelledby":H.value,"aria-describedby":Fe.value},V={open:y.value===0};return T(oe,{force:!0},()=>[T(He,()=>T(Be,{target:v.value},()=>T(oe,{force:!1},()=>T(C,{initialFocus:f,containers:q,features:k.value?I(ye.value,{parent:C.features.RestoreFocus,leaf:C.features.All&~C.features.FocusLock}):C.features.None},()=>T(Ee,{},()=>J({ourProps:L,theirProps:{...$,...a},slot:V,attrs:a,slots:n,visible:y.value===0,features:re.RenderStrategy|re.Static,name:"Dialog"})))))),T(be)])}}}),ft=K({name:"DialogPanel",props:{as:{type:[Object,String],default:"div"},id:{type:String,default:null}},setup(e,{attrs:t,slots:a,expose:n}){var l;let o=(l=e.id)!=null?l:`headlessui-dialog-panel-${de()}`,i=he("DialogPanel");n({el:i.panelRef,$el:i.panelRef});function u(r){r.stopPropagation()}return()=>{let{...r}=e,c={id:o,ref:i.panelRef,onClick:u};return J({ourProps:c,theirProps:r,slot:{open:i.dialogState.value===0},attrs:t,slots:a,name:"DialogPanel"})}}});export{ft as G,ct as Y,F 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.