vendor: 5,103 bytes, lines 1-2
1const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/mermaid.core-BNWplO9u.js","assets/vendor-DEQJ8JeM.js","assets/SlideViewer-B4MRz6ER.js","assets/ui-DGr5S02S.js","assets/slides-yea08vaa.js","assets/SlideViewer-D1_xtAAX.css"])))=>i.map(i=>d[i]); 2import{Q as Xj,j as f,u as pn,c as Fn,d as nn,L as st,e as Qj,B as _w,F as Jj,R as Wj,f as Dw,P as ek,X as _r,H as ap,K as ip,g as wh,U as Rw,h as Qc,i as tk,k as nk,l as rk,a as lp,m as op,n as ak,o as ms,E as ik,p as Ow,q as lk,r as sp,s as ya,t as zw,v as Mw,G as ql,T as As,w as Ea,x as Zl,y as ok,z as Lw,A as Bw,D as $l,I as sk,J as uk,N as Fw,O as Sh,V as ck,W as dk,Z as Eh,Y as Iw,_ as fk,$ as mk,a0 as Uw,a1 as hk}from"./ui-DGr5S02S.js";import{a as Pw,b as pk,g as Jc,r as S,L as Mn,u as up,O as gk,N as yk,R as Vw,c as Ai,d as $e,e as vk,f as Hw,h as Wc,i as cp,j as bk,k as xk}from"./vendor-DEQJ8JeM.js";import{i as wk,g as Sk,a as Ek,G as Nk,o as Ck,s as jk,b as kk,d as Fe,c as Kt,e as hs,f as Ft,q as tn,h as yr,w as Et,j as It,k as gn,l as Nc,u as va,m as Qa,n as Cc,T as qw,p as Zw}from"./firebase-Cb2OD_en.js";(function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const o of document.querySelectorAll('link[rel="modulepreload"]'))i(o);new MutationObserver(o=>{for(const s of o)if(s.type==="childList")for(const u of s.addedNodes)u.tagName==="LINK"&&u.rel==="modulepreload"&&i(u)}).observe(document,{childList:!0,subtree:!0});function r(o){const s={};return o.integrity&&(s.integrity=o.integrity),o.referrerPolicy&&(s.referrerPolicy=o.referrerPolicy),o.crossOrigin==="use-credentials"?s.credentials="include":o.crossOrigin==="anonymous"?s.credentials="omit":s.credentials="same-origin",s}function i(o){if(o.ep)return;o.ep=!0;const s=r(o);fetch(o.href,s)}})();var Pm={exports:{}},Go={},Vm={exports:{}},Hm={};var lx;function Ak(){return lx||(lx=1,(function(e){function t(R,K){var q=R.length;R.push(K);e:for(;0<q;){var ne=q-1>>>1,A=R[ne];if(0<o(A,K))R[ne]=K,R[q]=A,q=ne;else break e}}function r(R){return R.length===0?null:R[0]}function i(R){if(R.length===0)return null;var K=R[0],q=R.pop();if(q!==K){R[0]=q;e:for(var ne=0,A=R.length,pe=A>>>1;ne<pe;){var ce=2*(ne+1)-1,D=R[ce],ge=ce+1,ke=R[ge];if(0>o(D,q))ge<A&&0>o(ke,D)?(R[ne]=ke,R[ge]=q,ne=ge):(R[ne]=D,R[ce]=q,ne=ce);else if(ge<A&&0>o(ke,q))R[ne]=ke,R[ge]=q,ne=ge;else break e}}return K}function o(R,K){var q=R.sortIndex-K.sortIndex;return q!==0?q:R.id-K.id}if(e.unstable_now=void 0,typeof performance=="object"&&typeof performance.now=="function"){var s=performance;e.unstable_now=function(){return s.now()}}else{var u=Date,d=u.now();e.unstable_now=function(){return u.now()-d}}var p=[],h=[],y=1,v=null,x=3,b=!1,E=!1,N=!1,C=!1,k=typeof setTimeout=="function"?setTimeout:null,M=typeof clearTimeout=="function"?clearTimeout:null,O=typeof setImmediate<"u"?setImmediate:null;function B(R){for(var K=r(h);K!==null;){if(K.callback===null)i(h);else if(K.startTime<=R)i(h),K.sortIndex=K.expirationTime,t(p,K);else break;K=r(h)}}function T(R){if(N=!1,B(R),!E)if(r(p)!==null)E=!0,L||(L=!0,$());else{var K=r(h);K!==null&&z(T,K.startTime-R)}}var L=!1,I=-1,_=5,X=-1;function V(){return C?!0:!(e.unstable_now()-X<_)}function G(){if(C=!1,L){var R=e.unstable_now();X=R;var K=!0;try{e:{E=!1,N&&(N=!1,M(I),I=-1),b=!0;var q=x;try{t:{for(B(R),v=r(p);v!==null&&!(v.expirationTime>R&&V());){var ne=v.callback;if(typeof ne=="function"){v.callback=null,x=v.priorityLevel;var A=ne(v.expirationTime<=R);if(R=e.unstable_now(),typeof A=="function"){v.callback=A,B(R),K=!0;break t}v===r(p)&&i(p),B(R)}else i(p);v=r(p)}if(v!==null)K=!0;else{var pe=r(h);pe!==null&&z(T,pe.startTime-R),K=!1}}break e}finally{v=null,x=q,b=!1}K=void 0}}finally{K?$():L=!1}}}var $;if(typeof O=="function")$=function(){O(G)};else if(typeof MessageChannel<"u"){var Q=new MessageChannel,F=Q.port2;Q.port1.onmessage=G,$=function(){F.postMessage(null)}}else $=function(){k(G,0)};function z(R,K){I=k(function(){R(e.unstable_now())},K)}e.unstable_IdlePriority=5,e.unstable_ImmediatePriority=1,e.unstable_LowPriority=4,e.unstable_NormalPriority=3,e.unstable_Profiling=null,e.unstable_UserBlockingPriority=2,e.unstable_cancelCallback=function(R){R.callback=null},e.unstable_forceFrameRate=function(R){0>R||125<R?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):_=0<R?Math.floor(1e3/R):5},e.unstable_getCurrentPriorityLevel=function(){return x},e.unstable_next=function(R){switch(x){case 1:case 2:case 3:var K=3;break;default:K=x}var q=x;x=K;try{return R()}finally{x=q}},e.unstable_requestPaint=function(){C=!0},e.unstable_runWithPriority=function(R,K){switch(R){case 1:case 2:case 3:case 4:case 5:break;default:R=3}var q=x;x=R;try{return K()}finally{x=q}},e.unstable_scheduleCallback=function(R,K,q){var ne=e.unstable_now();switch(typeof q=="object"&&q!==null?(q=q.delay,q=typeof q=="number"&&0<q?ne+q:ne):q=ne,R){case 1:var A=-1;break;case 2:A=250;break;case 5:A=1073741823;break;case 4:A=1e4;break;default:A=5e3}return A=q+A,R={id:y++,callback:K,priorityLevel:R,startTime:q,expirationTime:A,s
vendor: 5,345 bytes, lines 2-4
2ortIndex:-1},q>ne?(R.sortIndex=q,t(h,R),r(p)===null&&R===r(h)&&(N?(M(I),I=-1):N=!0,z(T,q-ne))):(R.sortIndex=A,t(p,R),E||b||(E=!0,L||(L=!0,$()))),R},e.unstable_shouldYield=V,e.unstable_wrapCallback=function(R){var K=x;return function(){var q=x;x=K;try{return R.apply(this,arguments)}finally{x=q}}}})(Hm)),Hm}var ox;function Tk(){return ox||(ox=1,Vm.exports=Ak()),Vm.exports}var sx;function _k(){if(sx)return Go;sx=1;var e=Tk(),t=Pw(),r=pk();function i(n){var a="https://react.dev/errors/"+n;if(1<arguments.length){a+="?args[]="+encodeURIComponent(arguments[1]);for(var l=2;l<arguments.length;l++)a+="&args[]="+encodeURIComponent(arguments[l])}return"Minified React error #"+n+"; visit "+a+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function o(n){return!(!n||n.nodeType!==1&&n.nodeType!==9&&n.nodeType!==11)}function s(n){var a=n,l=n;if(n.alternate)for(;a.return;)a=a.return;else{n=a;do a=n,(a.flags&4098)!==0&&(l=a.return),n=a.return;while(n)}return a.tag===3?l:null}function u(n){if(n.tag===13){var a=n.memoizedState;if(a===null&&(n=n.alternate,n!==null&&(a=n.memoizedState)),a!==null)return a.dehydrated}return null}function d(n){if(n.tag===31){var a=n.memoizedState;if(a===null&&(n=n.alternate,n!==null&&(a=n.memoizedState)),a!==null)return a.dehydrated}return null}function p(n){if(s(n)!==n)throw Error(i(188))}function h(n){var a=n.alternate;if(!a){if(a=s(n),a===null)throw Error(i(188));return a!==n?null:n}for(var l=n,c=a;;){var m=l.return;if(m===null)break;var g=m.alternate;if(g===null){if(c=m.return,c!==null){l=c;continue}break}if(m.child===g.child){for(g=m.child;g;){if(g===l)return p(m),n;if(g===c)return p(m),a;g=g.sibling}throw Error(i(188))}if(l.return!==c.return)l=m,c=g;else{for(var w=!1,j=m.child;j;){if(j===l){w=!0,l=m,c=g;break}if(j===c){w=!0,c=m,l=g;break}j=j.sibling}if(!w){for(j=g.child;j;){if(j===l){w=!0,l=g,c=m;break}if(j===c){w=!0,c=g,l=m;break}j=j.sibling}if(!w)throw Error(i(189))}}if(l.alternate!==c)throw Error(i(190))}if(l.tag!==3)throw Error(i(188));return l.stateNode.current===l?n:a}function y(n){var a=n.tag;if(a===5||a===26||a===27||a===6)return n;for(n=n.child;n!==null;){if(a=y(n),a!==null)return a;n=n.sibling}return null}var v=Object.assign,x=Symbol.for("react.element"),b=Symbol.for("react.transitional.element"),E=Symbol.for("react.portal"),N=Symbol.for("react.fragment"),C=Symbol.for("react.strict_mode"),k=Symbol.for("react.profiler"),M=Symbol.for("react.consumer"),O=Symbol.for("react.context"),B=Symbol.for("react.forward_ref"),T=Symbol.for("react.suspense"),L=Symbol.for("react.suspense_list"),I=Symbol.for("react.memo"),_=Symbol.for("react.lazy"),X=Symbol.for("react.activity"),V=Symbol.for("react.memo_cache_sentinel"),G=Symbol.iterator;function $(n){return n===null||typeof n!="object"?null:(n=G&&n[G]||n["@@iterator"],typeof n=="function"?n:null)}var Q=Symbol.for("react.client.reference");function F(n){if(n==null)return null;if(typeof n=="function")return n.$$typeof===Q?null:n.displayName||n.name||null;if(typeof n=="string")return n;switch(n){case N:return"Fragment";case k:return"Profiler";case C:return"StrictMode";case T:return"Suspense";case L:return"SuspenseList";case X:return"Activity"}if(typeof n=="object")switch(n.$$typeof){case E:return"Portal";case O:return n.displayName||"Context";case M:return(n._context.displayName||"Context")+".Consumer";case B:var a=n.render;return n=n.displayName,n||(n=a.displayName||a.name||"",n=n!==""?"ForwardRef("+n+")":"ForwardRef"),n;case I:return a=n.displayName||null,a!==null?a:F(n.type)||"Memo";case _:a=n._payload,n=n._init;try{return F(n(a))}catch{}}return null}var z=Array.isArray,R=t.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,K=r.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,q={pending:!1,data:null,method:null,action:null},ne=[],A=-1;function pe(n){return{current:n}}function ce(n){0>A||(n.current=ne[A],ne[A]=null,A--)}function D(n,a){A++,ne[A]=n.current,n.current=a}var ge=pe(null),ke=pe(null),ve=pe(null),be=pe(null);function Le(n,a){switch(D(ve,a),D(ke,n),D(ge,null),a.nodeType){case 9:case 11:n=(n=a.documentElement)&&(n=n.namespaceURI)?Tb(n):0;break;default:if(n=a.tagName,a=a.namespaceURI)a=Tb(a),n=_b(a,n);else switch(n){case"svg":n=1;break;case"math":n=2;break;default:n=0}}ce(ge),D(ge,n)}function Ie(){ce(ge),ce(ke),ce(ve)}function Te(n){n.memoizedState!==null&&D(be,n);var a=ge.current,l=_b(a,n.type);a!==l&&(D(ke,n),D(ge,l))}function ft(n){ke.current===n&&(ce(ge),ce(ke)),be.current===n&&(ce(be),qo._currentValue=q)}var mt,Pt;function Nt(n){if(mt===void 0)try{throw Error()}catch(l){var a=l.stack.trim().match(/\n( *(at )?)/);mt=a&&a[1]||"",Pt=-1<l.stack.indexOf(` 3 at`)?" (<anonymous>)":-1<l.stack.indexOf("@")?"@unknown:0:0":""}return` 4`+mt+n+Pt}var dn=!1;function fn(n,a){if(!n||dn)return"";dn=!0;var l=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{var c={DetermineComponentFrameRoot:function(){try{if(a){var se=function(){throw Error()};if(Object.defineProperty(se.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(se,[])}catch(ae){var te=ae}Reflect.construct(n,[],se)}else{try{se.call()}catch(ae){te=ae}n.call(se.prototype)}}else{try{throw Error()}catch(ae){te=ae}(se=n())&&typeof se.catch=="function"&&se.catch(function(){})}}
vendor: 8,843 bytes, lines 4-9
4catch(ae){if(ae&&te&&typeof ae.stack=="string")return[ae.stack,te.stack]}return[null,null]}};c.DetermineComponentFrameRoot.displayName="DetermineComponentFrameRoot";var m=Object.getOwnPropertyDescriptor(c.DetermineComponentFrameRoot,"name");m&&m.configurable&&Object.defineProperty(c.DetermineComponentFrameRoot,"name",{value:"DetermineComponentFrameRoot"});var g=c.DetermineComponentFrameRoot(),w=g[0],j=g[1];if(w&&j){var U=w.split(` 5`),ee=j.split(` 6`);for(m=c=0;c<U.length&&!U[c].includes("DetermineComponentFrameRoot");)c++;for(;m<ee.length&&!ee[m].includes("DetermineComponentFrameRoot");)m++;if(c===U.length||m===ee.length)for(c=U.length-1,m=ee.length-1;1<=c&&0<=m&&U[c]!==ee[m];)m--;for(;1<=c&&0<=m;c--,m--)if(U[c]!==ee[m]){if(c!==1||m!==1)do if(c--,m--,0>m||U[c]!==ee[m]){var le=` 7`+U[c].replace(" at new "," at ");return n.displayName&&le.includes("<anonymous>")&&(le=le.replace("<anonymous>",n.displayName)),le}while(1<=c&&0<=m);break}}}finally{dn=!1,Error.prepareStackTrace=l}return(l=n?n.displayName||n.name:"")?Nt(l):""}function $r(n,a){switch(n.tag){case 26:case 27:case 5:return Nt(n.type);case 16:return Nt("Lazy");case 13:return n.child!==a&&a!==null?Nt("Suspense Fallback"):Nt("Suspense");case 19:return Nt("SuspenseList");case 0:case 15:return fn(n.type,!1);case 11:return fn(n.type.render,!1);case 1:return fn(n.type,!0);case 31:return Nt("Activity");default:return""}}function Kr(n){try{var a="",l=null;do a+=$r(n,l),l=n,n=n.return;while(n);return a}catch(c){return` 8Error generating stack: `+c.message+` 9`+c.stack}}var br=Object.prototype.hasOwnProperty,Yt=e.unstable_scheduleCallback,P=e.unstable_cancelCallback,J=e.unstable_shouldYield,ie=e.unstable_requestPaint,fe=e.unstable_now,he=e.unstable_getCurrentPriorityLevel,H=e.unstable_ImmediatePriority,re=e.unstable_UserBlockingPriority,me=e.unstable_NormalPriority,ye=e.unstable_LowPriority,De=e.unstable_IdlePriority,it=e.log,Ct=e.unstable_setDisableYieldValue,Vt=null,ht=null;function xt(n){if(typeof it=="function"&&Ct(n),ht&&typeof ht.setStrictMode=="function")try{ht.setStrictMode(Vt,n)}catch{}}var Ye=Math.clz32?Math.clz32:Ui,Pn=Math.log,mn=Math.LN2;function Ui(n){return n>>>=0,n===0?32:31-(Pn(n)/mn|0)|0}var Pi=256,Vi=262144,jt=4194304;function kt(n){var a=n&42;if(a!==0)return a;switch(n&-n){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:return 64;case 128:return 128;case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:return n&261888;case 262144:case 524288:case 1048576:case 2097152:return n&3932160;case 4194304:case 8388608:case 16777216:case 33554432:return n&62914560;case 67108864:return 67108864;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 0;default:return n}}function Xt(n,a,l){var c=n.pendingLanes;if(c===0)return 0;var m=0,g=n.suspendedLanes,w=n.pingedLanes;n=n.warmLanes;var j=c&134217727;return j!==0?(c=j&~g,c!==0?m=kt(c):(w&=j,w!==0?m=kt(w):l||(l=j&~n,l!==0&&(m=kt(l))))):(j=c&~g,j!==0?m=kt(j):w!==0?m=kt(w):l||(l=c&~n,l!==0&&(m=kt(l)))),m===0?0:a!==0&&a!==m&&(a&g)===0&&(g=m&-m,l=a&-a,g>=l||g===32&&(l&4194048)!==0)?a:m}function En(n,a){return(n.pendingLanes&~(n.suspendedLanes&~n.pingedLanes)&a)===0}function Nn(n,a){switch(n){case 1:case 2:case 4:case 8:case 64:return a+250;case 16:case 32:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return a+5e3;case 4194304:case 8388608:case 16777216:case 33554432:return-1;case 67108864:case 134217728:case 268435456:case 536870912:case 1073741824:return-1;default:return-1}}function hn(){var n=jt;return jt<<=1,(jt&62914560)===0&&(jt=4194304),n}function Cn(n){for(var a=[],l=0;31>l;l++)a.push(n);return a}function tr(n,a){n.pendingLanes|=a,a!==268435456&&(n.suspendedLanes=0,n.pingedLanes=0,n.warmLanes=0)}function Ht(n,a,l,c,m,g){var w=n.pendingLanes;n.pendingLanes=l,n.suspendedLanes=0,n.pingedLanes=0,n.warmLanes=0,n.expiredLanes&=l,n.entangledLanes&=l,n.errorRecoveryDisabledLanes&=l,n.shellSuspendCounter=0;var j=n.entanglements,U=n.expirationTimes,ee=n.hiddenUpdates;for(l=w&~l;0<l;){var le=31-Ye(l),se=1<<le;j[le]=0,U[le]=-1;var te=ee[le];if(te!==null)for(ee[le]=null,le=0;le<te.length;le++){var ae=te[le];ae!==null&&(ae.lane&=-536870913)}l&=~se}c!==0&&xr(n,c,0),g!==0&&m===0&&n.tag!==0&&(n.suspendedLanes|=g&~(w&~a))}function xr(n,a,l){n.pendingLanes|=a,n.suspendedLanes&=~a;var c=31-Ye(a);n.entangledLanes|=a,n.entanglements[c]=n.entanglements[c]|1073741824|l&261930}function Vn(n,a){var l=n.entangledLanes|=a;for(n=n.entanglements;l;){var c=31-Ye(l),m=1<<c;m&a|n[c]&a&&(n[c]|=a),l&=~m}}function nr(n,a){var l=a&-a;return l=(l&42)!==0?1:Gr(l),(l&(n.suspendedLanes|a))!==0?0:l}function Gr(n){switch(n){case 2:n=1;break;case 8:n=4;break;case 32:n=16;break;case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:case 4194304:case 8388608:case 16777216:case 33554432:n=128;break;case 268435456:n=134217728;break;default:n=0}return n}function Yr(n){return n&=-n,2<n?8<n?(n&134217727)!==0?32:268435456:8:2}function wr(){var n=K.p;return n!==0?n:(n=window.event,n===void 0?32:Wb(n.type))}function Na(n,a){var l=K.p;try{return K.p=n,a()}finally{K.p=l}}var rr=Math.random().toString(36).slice(2),an="__reactFiber$"+rr,jn="__reactProps$"+rr,Hi="__reactContainer$"+rr,Dd="__reactEvents$"+rr,IN="__reactListeners$"+rr,UN="__reactHandles$"+rr,gg="__reactResources$"+rr,ao="__reactMarker$"+rr;function Rd(n){delete n[an],delete n[jn],delete n[Dd],delete n[IN],delete n[UN]}function qi(n){var a=n[an];if(a)return a;for(var l=n.parentNode;l;){if(a=l[Hi]||l[an]){if(l=a.alternate,a.child!==null||l!==null&&l.child!==null)for(n=Bb(n);n!==null;){if(l=n[an])return l;n=Bb(n)}return a}n=l,l=n.parentNode}return null}function Zi(n){if(n=n[an]||n[Hi]){var a=n.tag;if(a===5||a===6||a===13||a===31||a===26||a===27||a===3)return n}return null}function io(n){var a=n.tag;if(a===5||a===26||a===27||a===6)return n.stateNode;throw Error(i(33))}function $i(n){var a=n[gg];return a||(a=n[gg]={hoistableStyles:new Map,hoistableScripts:new Map}),a}function Qt(n){n[ao]=!0}var yg=new Set,vg={};function si(n,a){Ki(n,a),Ki(n+"Capture",a)}function Ki(n,a){for(vg[n]=a,n=0;n<a.length;n++)yg.add(a[n])}var PN=RegExp("^[:A-Z_a-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD][:A-Z_a-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD\\-.0-9\\u00B7\\u0300-\\u036F\\u203F-\\u2040]*$"),bg={},xg={};function VN(n){return br.call(xg,n)?!0:br.call(bg,n)?!1:PN.test(n)?xg[n]=!0:(bg[n]=!0,!1)}function Ps(n,a,l){if(VN(a))if(l===null)n.removeAttribute(a);else{switch(typeof l){case"undefined":case"function":case"symbol":n.removeAttribute(a);return;case"boolean":var c=a.toLowerCase().slice(0,5);if(c!=="data-"&&c!=="aria-"){n.removeAttribute(a);return}}n.setAttribute(a,""+l)}}function Vs(n,a,l){if(l===null)n.removeAttribute(a);else{switch(typeof l){case"undefined":case"function":case"symbol":case"boolean":n.removeAttribute(a);return}n.setAttribute(a,""+l)}}function Xr(n,a,l,c){if(c===null)n.removeAttribute(l);else{switch(typeof c){case"undefined":case"function":case"symbol":case"boolean":n.removeAttribute(l);return}n.setAttributeNS(a,l,""+c)}}function ar(n){switch(typeof n){case"bigint":case"boolean":case"number":case"string":case"undefined":return n;case"object":return n;default:return""}}function wg(n){var a=n.type;return(n=n.nodeName)&&n.toLowerCase()==="input"&&(a==="checkbox"||a==="radio")}function HN(n,a,l){var c=Object.getOwnPropertyDescriptor(n.constructor.prototype,a);if(!n.hasOwnProperty(a)&&typeof c<"u"&&typeof c.get=="function"&&typeof c.set=="function"){var m=c.get,g=c.set;return Object.defineProperty(n,a,{configurable:!0,get:function(){return m.call(this)},set:function(w){l=""+w,g.call(this,w)}}),Object.defineProperty(n,a,{enumerable:c.enumerable}),{getValue:function(){return l},setValue:function(w){l=""+w},stopTracking:function(){n._valueTracker=null,delete n[a]}}}}function Od(n){if(!n._valueTracker){var a=wg(n)?"checked":"value";n._valueTracker=HN(n,a,""+n[a])}}function Sg(n){if(!n)return!1;var a=n._valueTracker;if(!a)return!0;var l=a.getValue(),c="";return n&&(c=wg(n)?n.checked?"true":"false":n.value),n=c,n!==l?(a.setValue(n),!0):!1}function Hs(n){if(n=n||(typeof document<"u"?document:void 0),typeof n>"u")return null;try{return n.activeElement||n.body}catch{return n.body}}var qN=/[\n"\\]/g;function ir(n){return n.replace(qN,function(a){return"\\"+a.charCo
vendor: 4,417 bytes, line 9
9deAt(0).toString(16)+" "})}function zd(n,a,l,c,m,g,w,j){n.name="",w!=null&&typeof w!="function"&&typeof w!="symbol"&&typeof w!="boolean"?n.type=w:n.removeAttribute("type"),a!=null?w==="number"?(a===0&&n.value===""||n.value!=a)&&(n.value=""+ar(a)):n.value!==""+ar(a)&&(n.value=""+ar(a)):w!=="submit"&&w!=="reset"||n.removeAttribute("value"),a!=null?Md(n,w,ar(a)):l!=null?Md(n,w,ar(l)):c!=null&&n.removeAttribute("value"),m==null&&g!=null&&(n.defaultChecked=!!g),m!=null&&(n.checked=m&&typeof m!="function"&&typeof m!="symbol"),j!=null&&typeof j!="function"&&typeof j!="symbol"&&typeof j!="boolean"?n.name=""+ar(j):n.removeAttribute("name")}function Eg(n,a,l,c,m,g,w,j){if(g!=null&&typeof g!="function"&&typeof g!="symbol"&&typeof g!="boolean"&&(n.type=g),a!=null||l!=null){if(!(g!=="submit"&&g!=="reset"||a!=null)){Od(n);return}l=l!=null?""+ar(l):"",a=a!=null?""+ar(a):l,j||a===n.value||(n.value=a),n.defaultValue=a}c=c??m,c=typeof c!="function"&&typeof c!="symbol"&&!!c,n.checked=j?n.checked:!!c,n.defaultChecked=!!c,w!=null&&typeof w!="function"&&typeof w!="symbol"&&typeof w!="boolean"&&(n.name=w),Od(n)}function Md(n,a,l){a==="number"&&Hs(n.ownerDocument)===n||n.defaultValue===""+l||(n.defaultValue=""+l)}function Gi(n,a,l,c){if(n=n.options,a){a={};for(var m=0;m<l.length;m++)a["$"+l[m]]=!0;for(l=0;l<n.length;l++)m=a.hasOwnProperty("$"+n[l].value),n[l].selected!==m&&(n[l].selected=m),m&&c&&(n[l].defaultSelected=!0)}else{for(l=""+ar(l),a=null,m=0;m<n.length;m++){if(n[m].value===l){n[m].selected=!0,c&&(n[m].defaultSelected=!0);return}a!==null||n[m].disabled||(a=n[m])}a!==null&&(a.selected=!0)}}function Ng(n,a,l){if(a!=null&&(a=""+ar(a),a!==n.value&&(n.value=a),l==null)){n.defaultValue!==a&&(n.defaultValue=a);return}n.defaultValue=l!=null?""+ar(l):""}function Cg(n,a,l,c){if(a==null){if(c!=null){if(l!=null)throw Error(i(92));if(z(c)){if(1<c.length)throw Error(i(93));c=c[0]}l=c}l==null&&(l=""),a=l}l=ar(a),n.defaultValue=l,c=n.textContent,c===l&&c!==""&&c!==null&&(n.value=c),Od(n)}function Yi(n,a){if(a){var l=n.firstChild;if(l&&l===n.lastChild&&l.nodeType===3){l.nodeValue=a;return}}n.textContent=a}var ZN=new Set("animationIterationCount aspectRatio borderImageOutset borderImageSlice borderImageWidth boxFlex boxFlexGroup boxOrdinalGroup columnCount columns flex flexGrow flexPositive flexShrink flexNegative flexOrder gridArea gridRow gridRowEnd gridRowSpan gridRowStart gridColumn gridColumnEnd gridColumnSpan gridColumnStart fontWeight lineClamp lineHeight opacity order orphans scale tabSize widows zIndex zoom fillOpacity floodOpacity stopOpacity strokeDasharray strokeDashoffset strokeMiterlimit strokeOpacity strokeWidth MozAnimationIterationCount MozBoxFlex MozBoxFlexGroup MozLineClamp msAnimationIterationCount msFlex msZoom msFlexGrow msFlexNegative msFlexOrder msFlexPositive msFlexShrink msGridColumn msGridColumnSpan msGridRow msGridRowSpan WebkitAnimationIterationCount WebkitBoxFlex WebKitBoxFlexGroup WebkitBoxOrdinalGroup WebkitColumnCount WebkitColumns WebkitFlex WebkitFlexGrow WebkitFlexPositive WebkitFlexShrink WebkitLineClamp".split(" "));function jg(n,a,l){var c=a.indexOf("--")===0;l==null||typeof l=="boolean"||l===""?c?n.setProperty(a,""):a==="float"?n.cssFloat="":n[a]="":c?n.setProperty(a,l):typeof l!="number"||l===0||ZN.has(a)?a==="float"?n.cssFloat=l:n[a]=(""+l).trim():n[a]=l+"px"}function kg(n,a,l){if(a!=null&&typeof a!="object")throw Error(i(62));if(n=n.style,l!=null){for(var c in l)!l.hasOwnProperty(c)||a!=null&&a.hasOwnProperty(c)||(c.indexOf("--")===0?n.setProperty(c,""):c==="float"?n.cssFloat="":n[c]="");for(var m in a)c=a[m],a.hasOwnProperty(m)&&l[m]!==c&&jg(n,m,c)}else for(var g in a)a.hasOwnProperty(g)&&jg(n,g,a[g])}function Ld(n){if(n.indexOf("-")===-1)return!1;switch(n){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}var $N=new Map([["acceptCharset","accept-charset"],["htmlFor","for"],["httpEquiv","http-equiv"],["crossOrigin","crossorigin"],["accentHeight","accent-height"],["alignmentBaseline","alignment-baseline"],["arabicForm","arabic-form"],["baselineShift","baseline-shift"],["capHeight","cap-height"],["clipPath","clip-path"],["clipRule","clip-rule"],["colorInterpolation","color-interpolation"],["colorInterpolationFilters","color-interpolation-filters"],["colorProfile","color-profile"],["colorRen
9dering","color-rendering"],["dominantBaseline","dominant-baseline"],["enableBackground","enable-background"],["fillOpacity","fill-opacity"],["fillRule","fill-rule"],["floodColor","flood-color"],["floodOpacity","flood-opacity"],["fontFamily","font-family"],["fontSize","font-size"],["fontSizeAdjust","font-size-adjust"],["fontStretch","font-stretch"],["fontStyle","font-style"],["fontVariant","font-variant"],["fontWeight","font-weight"],["glyphName","glyph-name"],["glyphOrientationHorizontal","glyph-orientation-horizontal"],["glyphOrientationVertical","glyph-orientation-vertical"],["horizAdvX","horiz-adv-x"],["horizOriginX","horiz-origin-x"],["imageRendering","image-rendering"],["letterSpacing","letter-spacing"],["lightingColor","lighting-color"],["markerEnd","marker-end"],["markerMid","marker-mid"],["markerStart","marker-start"],["overlinePosition","overline-position"],["overlineThickness","overline-thickness"],["paintOrder","paint-order"],["panose-1","panose-1"],["pointerEvents","pointer-events"],["renderingIntent","rendering-intent"],["shapeRendering","shape-rendering"],["stopColor","stop-color"],["stopOpacity","stop-opacity"],["strikethroughPosition","strikethrough-position"],["strikethroughThickness","strikethrough-thickness"],["strokeDasharray","stroke-dasharray"],["strokeDashoffset","stroke-dashoffset"],["strokeLinecap","stroke-linecap"],["strokeLinejoin","stroke-linejoin"],["strokeMiterlimit","stroke-miterlimit"],["strokeOpacity","stroke-opacity"],["strokeWidth","stroke-width"],["textAnchor","text-anchor"],["textDecoration","text-decoration"],["textRendering","text-rendering"],["transformOrigin","transform-origin"],["underlinePosition","underline-position"],["underlineThickness","underline-thickness"],["unicodeBidi","unicode-bidi"],["unicodeRange","unicode-range"],["unitsPerEm","units-per-em"],["vAlphabetic","v-alphabetic"],["vHanging","v-hanging"],["vIdeographic","v-ideographic"],["vMathematical","v-mathematical"],["vectorEffect","vector-effect"],["vertAdvY","vert-adv-y"],["vertOriginX","vert-origin-x"],["vertOriginY","vert-origin-y"],["wordSpacing","word-spacing"],["writingMode","writing-mode"],["xmlnsXlink","xmlns:xlink"],["xHeight","x-height"]]),KN=/^[\u0000-\u001F ]*j[\r\n\t]*a[\r\n\t]*v[\r\n\t]*a[\r\n\t]*s[\r\n\t]*c[\r\n\t]*r[\r\n\t]*i[\r\n\t]*p[\r\n\t]*t[\r\n\t]*:/i;function qs(n){return KN.test(""+n)?"javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')":n}function Qr(){}var Bd=null;function Fd(n){return n=n.target||n.srcElement||window,n.correspondingUseElement&&(n=n.correspondingUseElement),n.nodeType===3?n.parentNode:n}var Xi=null,Qi=null;function Ag(n){var a=Zi(n);if(a&&(n=a.stateNode)){var l=n[jn]||null;e:switch(n=a.stateNode,a.type){case"input":if(zd(n,l.value,l.defaultValue,l.defaultValue,l.checked,l.defaultChecked,l.type,l.name),a=l.name,l.type==="radio"&&a!=null){for(l=n;l.parentNode;)l=l.parentNode;for(l=l.querySelectorAll('input[name="'+ir(""+a)+'"][type="radio"]'),a=0;a<l.length;a++){var c=l[a];if(c!==n&&c.form===n.form){var m=c[jn]||null;if(!m)throw Error(i(90));zd(c,m.value,m.defaultValue,m.defaultValue,m.checked,m.defaultChecked,m.type,m.name)}}for(a=0;a<l.length;a++)c=l[a],c.form===n.form&&Sg(c)}break e;case"textarea":Ng(n,l.value,l.defaultValue);break e;case"select":a=l.value,a!=null&&Gi(n,!!l.multiple,a,!1)}}}var Id=!1;function Tg(n,a,l){if(Id)return n(a,l);Id=!0;try{var c=n(a);return c}finally{if(Id=!1,(Xi!==null||Qi!==null)&&(Du(),Xi&&(a=Xi,n=Qi,Qi=Xi=null,Ag(a),n)))for(a=0;a<n.length;a++)Ag(n[a])}}function lo(n,a){var l=n.stateNode;if(l===null)return null;var c=l[jn]||null;if(c===null)return null;l=c[a];e:switch(a){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(c=!c.disabled)||(n=n.type,c=!(n==="button"||n==="input"||n==="select"||n==="textarea")),n=!c;break e;default:n=!1}if(n)return null;if(l&&typeof l!="function")throw Error(i(231,a,typeof l));return l}var Jr=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),Ud=!1;if(Jr)try{var oo={};Object.defineProperty(oo,"passive",{get:function(){Ud=!0}}),window.addEventListener("test",oo,oo),window.removeEventListener("test",oo,oo)}catch{Ud=!1}var Ca=null,Pd=null,Zs=null;function _g(){if(Zs)return Zs;var n,a=Pd,l=a.length,c,m="value"in Ca?Ca.value:Ca.textContent,g=m.length;for(n=0;n<l&&a[n]===m[n];n++);var w=l-n;for(c=1;c<=w&&a[l-c]===m[g-c];c++);return Zs=m.slice(n,1<c?1-c:void 0)}function $s(n){var a=n.keyCode;return"charCode"in n?(n=n.charCode,n===0&&a===13&&(n=13)):n=a,n===10&&(n=13),32<=n||n===13?n:0}function Ks(){return!0}function Dg(){return!1}function kn(n){function a(l,c,m,g,w){this._reactName=l,this._targetInst=m,this.type=c,this.nativeEvent=g,this.target=w,this.currentTarget=null;for(var j in n)n.hasOwnProperty(j)&&(l=n[j],this[j]=l?l(g):g[j]);return this.isDefaultPrevented=(g.defaultPrevented!=null?g.defaultPrevented:g.returnValue===!1)?Ks:Dg,this.isPropagationStopped=Dg,this}return v(a.prototype,{preventDefault:function(){this.defaultPrevented=!0;var l=this.nativeEvent;l&&(l.preventDefault?l.preventDefault():typeof l.returnValue!="unknown"&&(l.returnValue=!1),this.isDefaultPrevented=Ks)},stopPropagation:function(){var l=this.nativeEvent;l&&(l.stopPropagation?l.stopPropagation():typeof l.cancelBubble!="unknown"&&(l.cancelBubble=!0),this.isPropagationStopped=Ks)},persist:function(){},isPersistent:Ks}),a}var ui={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(n){return n.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},Gs=kn(ui),so=v({},ui,{view:0,detail:0}),GN=kn(so),Vd,Hd,uo,Ys=v({},so,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:Zd,button:0,buttons:0,relatedTarget:function(n){return n.relatedTarget===void 0?n.fromElement===n.srcElement?n.toElement:n.fromElement:n.relatedTarget},movementX:function(n){return"movementX"in n?n.movementX:(n!==uo&&(uo&&n.type==="mousemove"?(Vd=n.screenX-uo.screenX,Hd=n.screenY-uo.screenY):Hd=Vd=0,uo=n),Vd)},movementY:function(n){return"movementY"in n?n.movementY:Hd}}),Rg=kn(Ys),YN=v({},Ys,{dataTransfer:0}),XN=kn(YN),QN=v({},so,{relatedTarget:0}),qd=kn(QN),JN=v({},ui,{animationName:0,elapsedTime:0,pseudoElement:0}),WN=kn(JN),eC=v({},ui,{clipboardData:function(n){return"clipboardData"in n?n.clipboardData:window.clipboardData}}),tC=kn(eC),nC=v({},ui,{data:0}),Og=kn(nC),rC={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},aC={8:"Backspace",9:"Tab",12:"Clear",13:"Enter",16:"Shift",17:"Control",18:"Alt",19:"Pause",20:"CapsLock",27:"Escape",32:" ",33:"PageUp",34:"PageDown",35:"End",36:"Home",37:"ArrowLeft",38:"ArrowUp",39:"ArrowRight",40:"ArrowDown",45:"Insert",46:"Delete",112:"F1",113:"F2",114:"F3",115:"F4",116:"F5",117:"F6",118:"F7",119:"F8",120:"F9",121:"F10",122:"F11",123:"F12",144:"NumLock",145:"ScrollLock",224:"Meta"},iC={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function lC(n){var a=this.nativeEvent;return a.getModifierState?a.getModifierState(n):(n=iC[n])?!!a[n]:!1}function Zd(){return lC}var oC=v({},so,{key:function(n){if(n.key){var a=rC[n.key]||n.key;if(a!=="Unidentified")return a}
vendor: 2,411 bytes, line 9
9return n.type==="keypress"?(n=$s(n),n===13?"Enter":String.fromCharCode(n)):n.type==="keydown"||n.type==="keyup"?aC[n.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:Zd,charCode:function(n){return n.type==="keypress"?$s(n):0},keyCode:function(n){return n.type==="keydown"||n.type==="keyup"?n.keyCode:0},which:function(n){return n.type==="keypress"?$s(n):n.type==="keydown"||n.type==="keyup"?n.keyCode:0}}),sC=kn(oC),uC=v({},Ys,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),zg=kn(uC),cC=v({},so,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:Zd}),dC=kn(cC),fC=v({},ui,{propertyName:0,elapsedTime:0,pseudoElement:0}),mC=kn(fC),hC=v({},Ys,{deltaX:function(n){return"deltaX"in n?n.deltaX:"wheelDeltaX"in n?-n.wheelDeltaX:0},deltaY:function(n){return"deltaY"in n?n.deltaY:"wheelDeltaY"in n?-n.wheelDeltaY:"wheelDelta"in n?-n.wheelDelta:0},deltaZ:0,deltaMode:0}),pC=kn(hC),gC=v({},ui,{newState:0,oldState:0}),yC=kn(gC),vC=[9,13,27,32],$d=Jr&&"CompositionEvent"in window,co=null;Jr&&"documentMode"in document&&(co=document.documentMode);var bC=Jr&&"TextEvent"in window&&!co,Mg=Jr&&(!$d||co&&8<co&&11>=co),Lg=" ",Bg=!1;function Fg(n,a){switch(n){case"keyup":return vC.indexOf(a.keyCode)!==-1;case"keydown":return a.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function Ig(n){return n=n.detail,typeof n=="object"&&"data"in n?n.data:null}var Ji=!1;function xC(n,a){switch(n){case"compositionend":return Ig(a);case"keypress":return a.which!==32?null:(Bg=!0,Lg);case"textInput":return n=a.data,n===Lg&&Bg?null:n;default:return null}}function wC(n,a){if(Ji)return n==="compositionend"||!$d&&Fg(n,a)?(n=_g(),Zs=Pd=Ca=null,Ji=!1,n):null;switch(n){case"paste":return null;case"keypress":if(!(a.ctrlKey||a.altKey||a.metaKey)||a.ctrlKey&&a.altKey){if(a.char&&1<a.char.length)return a.char;if(a.which)return String.fromCharCode(a.which)}return null;case"compositionend":return Mg&&a.locale!=="ko"?null:a.data;default:return null}}var SC={color:!0,date:!0,datetime:!0,"datetime-local":!0,email:!0,month:!0,number:!0,password:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0};function Ug(n){var a=n&&n.nodeName&&n.nodeName.toLowerCase();return a==="input"?!!SC[n.type]:a==="textarea"}
vendor: 6,273 bytes, line 9
9function Pg(n,a,l,c){Xi?Qi?Qi.push(c):Qi=[c]:Xi=c,a=Fu(a,"onChange"),0<a.length&&(l=new Gs("onChange","change",null,l,c),n.push({event:l,listeners:a}))}var fo=null,mo=null;function EC(n){Eb(n,0)}function Xs(n){var a=io(n);if(Sg(a))return n}function Vg(n,a){if(n==="change")return a}var Hg=!1;if(Jr){var Kd;if(Jr){var Gd="oninput"in document;if(!Gd){var qg=document.createElement("div");qg.setAttribute("oninput","return;"),Gd=typeof qg.oninput=="function"}Kd=Gd}else Kd=!1;Hg=Kd&&(!document.documentMode||9<document.documentMode)}function Zg(){fo&&(fo.detachEvent("onpropertychange",$g),mo=fo=null)}function $g(n){if(n.propertyName==="value"&&Xs(mo)){var a=[];Pg(a,mo,n,Fd(n)),Tg(EC,a)}}function NC(n,a,l){n==="focusin"?(Zg(),fo=a,mo=l,fo.attachEvent("onpropertychange",$g)):n==="focusout"&&Zg()}function CC(n){if(n==="selectionchange"||n==="keyup"||n==="keydown")return Xs(mo)}function jC(n,a){if(n==="click")return Xs(a)}function kC(n,a){if(n==="input"||n==="change")return Xs(a)}function AC(n,a){return n===a&&(n!==0||1/n===1/a)||n!==n&&a!==a}var Hn=typeof Object.is=="function"?Object.is:AC;function ho(n,a){if(Hn(n,a))return!0;if(typeof n!="object"||n===null||typeof a!="object"||a===null)return!1;var l=Object.keys(n),c=Object.keys(a);if(l.length!==c.length)return!1;for(c=0;c<l.length;c++){var m=l[c];if(!br.call(a,m)||!Hn(n[m],a[m]))return!1}return!0}function Kg(n){for(;n&&n.firstChild;)n=n.firstChild;return n}function Gg(n,a){var l=Kg(n);n=0;for(var c;l;){if(l.nodeType===3){if(c=n+l.textContent.length,n<=a&&c>=a)return{node:l,offset:a-n};n=c}e:{for(;l;){if(l.nextSibling){l=l.nextSibling;break e}l=l.parentNode}l=void 0}l=Kg(l)}}function Yg(n,a){return n&&a?n===a?!0:n&&n.nodeType===3?!1:a&&a.nodeType===3?Yg(n,a.parentNode):"contains"in n?n.contains(a):n.compareDocumentPosition?!!(n.compareDocumentPosition(a)&16):!1:!1}function Xg(n){n=n!=null&&n.ownerDocument!=null&&n.ownerDocument.defaultView!=null?n.ownerDocument.defaultView:window;for(var a=Hs(n.document);a instanceof n.HTMLIFrameElement;){try{var l=typeof a.contentWindow.location.href=="string"}catch{l=!1}if(l)n=a.contentWindow;else break;a=Hs(n.document)}return a}function Yd(n){var a=n&&n.nodeName&&n.nodeName.toLowerCase();return a&&(a==="input"&&(n.type==="text"||n.type==="search"||n.type==="tel"||n.type==="url"||n.type==="password")||a==="textarea"||n.contentEditable==="true")}var TC=Jr&&"documentMode"in document&&11>=document.documentMode,Wi=null,Xd=null,po=null,Qd=!1;function Qg(n,a,l){var c=l.window===l?l.document:l.nodeType===9?l:l.ownerDocument;Qd||Wi==null||Wi!==Hs(c)||(c=Wi,"selectionStart"in c&&Yd(c)?c={start:c.selectionStart,end:c.selectionEnd}:(c=(c.ownerDocument&&c.ownerDocument.defaultView||window).getSelection(),c={anchorNode:c.anchorNode,anchorOffset:c.anchorOffset,focusNode:c.focusNode,focusOffset:c.focusOffset}),po&&ho(po,c)||(po=c,c=Fu(Xd,"onSelect"),0<c.length&&(a=new Gs("onSelect","select",null,a,l),n.push({event:a,listeners:c}),a.target=Wi)))}function ci(n,a){var l={};return l[n.toLowerCase()]=a.toLowerCase(),l["Webkit"+n]="webkit"+a,l["Moz"+n]="moz"+a,l}var el={animationend:ci("Animation","AnimationEnd"),animationiteration:ci("Animation","AnimationIteration"),animationstart:ci("Animation","AnimationStart"),transitionrun:ci("Transition","TransitionRun"),transitionstart:ci("Transition","TransitionStart"),transitioncancel:ci("Transition","TransitionCancel"),transitionend:ci("Transition","TransitionEnd")},Jd={},Jg={};Jr&&(Jg=document.createElement("div").style,"AnimationEvent"in window||(delete el.animationend.animation,delete el.animationiteration.animation,delete el.animationstart.animation),"TransitionEvent"in window||delete el.transitionend.transition);function di(n){if(Jd[n])return Jd[n];if(!el[n])return n;var a=el[n],l;for(l in a)if(a.hasOwnProperty(l)&&l in Jg)return Jd[n]=a[l];return n}var Wg=di("animationend"),ey=di("animationiteration"),ty=di("animationstart"),_C=di("transitionrun"),DC=di("transitionstart"),RC=di("transitioncancel"),ny=di("transitionend"),ry=new Map,Wd="abort auxClick beforeToggle cancel canPlay canPlayThrough click close contextMenu copy cut drag dragEnd dragEnter dragExit dragLeave dragOver dragStart drop durationChange emptied encrypted ended error gotPointerCapture input invalid keyDown keyPress keyUp load loadedData loadedMetadata loadStart lostPointerCapture mouseDown mouseMove mouseOut mouseOver mouseUp paste pause play playing pointerCancel pointerDown pointerMove pointerOut pointerOver pointerUp progress rateChange reset resize seeked seeking stalled submit suspend timeUpdate touchCancel touchEnd touchStart volumeChange scroll toggle touchMove waiting wheel".split(" ");Wd.push("scrollEnd");function Sr(n,a){ry.set(n,a),si(a,[n])}var Qs=typeof reportError=="function"?reportError:function(n){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var a=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof n=="object"&&n!==null&&typeof n.message=="string"?String(n.message):String(n),error:n});if(!window.dispatchEvent(a))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",n);return}console.error(n)},lr=[],tl=0,ef=0;function Js(){for(var n=tl,a=ef=tl=0;a<n;){var l=lr[a];lr[a++]=null;var c=lr[a];lr[a++]=null;var m=lr[a];lr[a++]=null;var g=lr[a];if(lr[a++]=null,c!==null&&m!==null){var w=c.pending;w===null?m.next=m:(m.next=w.next,w.next=m),c.pending=m}g!==0&&ay(l,m,g)}}function Ws(n,a,l,c){lr[tl++]=n,lr[tl++]=a,lr[tl++]=l,lr[tl++]=c,ef|=c,n.lanes|=c,n=n.alternate,n!==null&&(n.lanes|=c)}function tf(n,a,l,c){return Ws(n,a,l,c),eu(n)}function fi(n,a){return Ws(n,null,null,a),eu(n)}function ay(n,a,l){n.lanes|=l;var c=n.alternate;c!==null&&(c.lanes|=l);for(var m=!1,g=n.return;g!==null;)g.childLanes|=l,c=g.alternate,c!==null&&(c.childLanes|=l),g.tag===22&&(n=g.stateNode,n===null||n._visibility&1||(m=!0)),n=g,g=g.return;return n.tag===3?(g=n.stateNode,m&&a!==null&&(m=31-Ye(l),n=g.hiddenUpdates,c=n[m],c===null?n[m]=[a]:c.push(a),a.lane=l|536870912),g):null}function eu(n){if(50<Bo)throw Bo=0,dm=null,Error(i(185));for(var a=n.return;a!==null;)n=a,a=n.return;return n.tag===3?n.stateNode:null}var nl={};function OC(n,a,l,c){this.tag=n,this.key=l,this.sibling=this.child=this.return=this.stateNode=this.t
vendor: 10,093 bytes, line 9
9ype=this.elementType=null,this.index=0,this.refCleanup=this.ref=null,this.pendingProps=a,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=c,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function qn(n,a,l,c){return new OC(n,a,l,c)}function nf(n){return n=n.prototype,!(!n||!n.isReactComponent)}function Wr(n,a){var l=n.alternate;return l===null?(l=qn(n.tag,a,n.key,n.mode),l.elementType=n.elementType,l.type=n.type,l.stateNode=n.stateNode,l.alternate=n,n.alternate=l):(l.pendingProps=a,l.type=n.type,l.flags=0,l.subtreeFlags=0,l.deletions=null),l.flags=n.flags&65011712,l.childLanes=n.childLanes,l.lanes=n.lanes,l.child=n.child,l.memoizedProps=n.memoizedProps,l.memoizedState=n.memoizedState,l.updateQueue=n.updateQueue,a=n.dependencies,l.dependencies=a===null?null:{lanes:a.lanes,firstContext:a.firstContext},l.sibling=n.sibling,l.index=n.index,l.ref=n.ref,l.refCleanup=n.refCleanup,l}function iy(n,a){n.flags&=65011714;var l=n.alternate;return l===null?(n.childLanes=0,n.lanes=a,n.child=null,n.subtreeFlags=0,n.memoizedProps=null,n.memoizedState=null,n.updateQueue=null,n.dependencies=null,n.stateNode=null):(n.childLanes=l.childLanes,n.lanes=l.lanes,n.child=l.child,n.subtreeFlags=0,n.deletions=null,n.memoizedProps=l.memoizedProps,n.memoizedState=l.memoizedState,n.updateQueue=l.updateQueue,n.type=l.type,a=l.dependencies,n.dependencies=a===null?null:{lanes:a.lanes,firstContext:a.firstContext}),n}function tu(n,a,l,c,m,g){var w=0;if(c=n,typeof n=="function")nf(n)&&(w=1);else if(typeof n=="string")w=Fj(n,l,ge.current)?26:n==="html"||n==="head"||n==="body"?27:5;else e:switch(n){case X:return n=qn(31,l,a,m),n.elementType=X,n.lanes=g,n;case N:return mi(l.children,m,g,a);case C:w=8,m|=24;break;case k:return n=qn(12,l,a,m|2),n.elementType=k,n.lanes=g,n;case T:return n=qn(13,l,a,m),n.elementType=T,n.lanes=g,n;case L:return n=qn(19,l,a,m),n.elementType=L,n.lanes=g,n;default:if(typeof n=="object"&&n!==null)switch(n.$$typeof){case O:w=10;break e;case M:w=9;break e;case B:w=11;break e;case I:w=14;break e;case _:w=16,c=null;break e}w=29,l=Error(i(130,n===null?"null":typeof n,"")),c=null}return a=qn(w,l,a,m),a.elementType=n,a.type=c,a.lanes=g,a}function mi(n,a,l,c){return n=qn(7,n,c,a),n.lanes=l,n}function rf(n,a,l){return n=qn(6,n,null,a),n.lanes=l,n}function ly(n){var a=qn(18,null,null,0);return a.stateNode=n,a}function af(n,a,l){return a=qn(4,n.children!==null?n.children:[],n.key,a),a.lanes=l,a.stateNode={containerInfo:n.containerInfo,pendingChildren:null,implementation:n.implementation},a}var oy=new WeakMap;function or(n,a){if(typeof n=="object"&&n!==null){var l=oy.get(n);return l!==void 0?l:(a={value:n,source:a,stack:Kr(a)},oy.set(n,a),a)}return{value:n,source:a,stack:Kr(a)}}var rl=[],al=0,nu=null,go=0,sr=[],ur=0,ja=null,Dr=1,Rr="";function ea(n,a){rl[al++]=go,rl[al++]=nu,nu=n,go=a}function sy(n,a,l){sr[ur++]=Dr,sr[ur++]=Rr,sr[ur++]=ja,ja=n;var c=Dr;n=Rr;var m=32-Ye(c)-1;c&=~(1<<m),l+=1;var g=32-Ye(a)+m;if(30<g){var w=m-m%5;g=(c&(1<<w)-1).toString(32),c>>=w,m-=w,Dr=1<<32-Ye(a)+m|l<<m|c,Rr=g+n}else Dr=1<<g|l<<m|c,Rr=n}function lf(n){n.return!==null&&(ea(n,1),sy(n,1,0))}function of(n){for(;n===nu;)nu=rl[--al],rl[al]=null,go=rl[--al],rl[al]=null;for(;n===ja;)ja=sr[--ur],sr[ur]=null,Rr=sr[--ur],sr[ur]=null,Dr=sr[--ur],sr[ur]=null}function uy(n,a){sr[ur++]=Dr,sr[ur++]=Rr,sr[ur++]=ja,Dr=a.id,Rr=a.overflow,ja=n}var ln=null,pt=null,qe=!1,ka=null,cr=!1,sf=Error(i(519));function Aa(n){var a=Error(i(418,1<arguments.length&&arguments[1]!==void 0&&arguments[1]?"text":"HTML",""));throw yo(or(a,n)),sf}function cy(n){var a=n.stateNode,l=n.type,c=n.memoizedProps;switch(a[an]=n,a[jn]=c,l){case"dialog":Pe("cancel",a),Pe("close",a);break;case"iframe":case"object":case"embed":Pe("load",a);break;case"video":case"audio":for(l=0;l<Io.length;l++)Pe(Io[l],a);break;case"source":Pe("error",a);break;case"img":case"image":case"link":Pe("error",a),Pe("load",a);break;case"details":Pe("toggle",a);break;case"input":Pe("invalid",a),Eg(a,c.value,c.defaultValue,c.checked,c.defaultChecked,c.type,c.name,!0);break;case"select":Pe("invalid",a);break;case"textarea":Pe("invalid",a),Cg(a,c.value,c.defaultValue,c.children)}l=c.children,typeof l!="string"&&typeof l!="number"&&typeof l!="bigint"||a.textContent===""+l||c.suppressHydrationWarning===!0||kb(a.textContent,l)?(c.popover!=null&&(Pe("beforetoggle",a),Pe("toggle",a)),c.onScroll!=null&&Pe("scroll",a),c.onScrollEnd!=null&&Pe("scrollend",a),c.onClick!=null&&(a.onclick=Qr),a=!0):a=!1,a||Aa(n,!0)}function dy(n){for(ln=n.return;ln;)switch(ln.tag){case 5:case 31:case 13:cr=!1;return;case 27:case 3:cr=!0;return;default:ln=ln.return}}function il(n){if(n!==ln)return!1;if(!qe)return dy(n),qe=!0,!1;var a=n.tag,l;if((l=a!==3&&a!==27)&&((l=a===5)&&(l=n.type,l=!(l!=="form"&&l!=="button")||jm(n.type,n.memoizedProps)),l=!l),l&&pt&&Aa(n),dy(n),a===13){if(n=n.memoizedState,n=n!==null?n.dehydrated:null,!n)throw Error(i(317));pt=Lb(n)}else if(a===31){if(n=n.memoizedState,n=n!==null?n.dehydrated:null,!n)throw Error(i(317));pt=Lb(n)}else a===27?(a=pt,Va(n.type)?(n=Dm,Dm=null,pt=n):pt=a):pt=ln?fr(n.stateNode.nextSibling):null;return!0}function hi(){pt=ln=null,qe=!1}function uf(){var n=ka;return n!==null&&(Dn===null?Dn=n:Dn.push.apply(Dn,n),ka=null),n}function yo(n){ka===null?ka=[n]:ka.push(n)}var cf=pe(null),pi=null,ta=null;function Ta(n,a,l){D(cf,a._currentValue),a._currentValue=l}function na(n){n._currentValue=cf.current,ce(cf)}function df(n,a,l){for(;n!==null;){var c=n.alternate;if((n.childLanes&a)!==a?(n.childLanes|=a,c!==null&&(c.childLanes|=a)):c!==null&&(c.childLanes&a)!==a&&(c.childLanes|=a),n===l)break;n=n.return}}function ff(n,a,l,c){var m=n.child;for(m!==null&&(m.return=n);m!==null;){var g=m.dependencies;if(g!==null){var w=m.child;g=g.firstContext;e:for(;g!==null;){var j=g;g=m;for(var U=0;U<a.length;U++)if(j.context===a[U]){g.lanes|=l,j=g.alternate,j!==null&&(j.lanes|=l),df(g.return,l,n),c||(w=null);break e}g=j.next}}else if(m.tag===18){if(w=m.return,w===null)throw Error(i(341));w.lanes|=l,g=w.alternate,g!==null&&(g.lanes|=l),df(w,l,n),w=null}else w=m.child;if(w!==null)w.return=m;else for(w=m;w!==null;){if(w===n){w=null;break}if(m=w.sibling,m!==null){m.return=w.return,w=m;break}w=w.return}m=w}}function ll(n,a,l,c){n=null;for(var m=a,g=!1;m!==null;){if(!g){if((m.flags&524288)!==0)g=!0;else if((m.flags&262144)!==0)break}if(m.tag===10){var w=m.alternate;if(w===null)throw Error(i(387));if(w=w.memoizedProps,w!==null){var j=m.type;Hn(m.pendingProps.value,w.value)||(n!==null?n.push(j):n=[j])}}else if(m===be.current){if(w=m.alternate,w===null)throw Error(i(387));w.memoizedState.memoizedState!==m.memoizedState.memoizedState&&(n!==null?n.push(qo):n=[qo])}m=m.return}n!==null&&ff(a,n,l,c),a.flags|=262144}function ru(n){for(n=n.firstContext;n!==null;){if(!Hn(n.context._currentValue,n.memoizedValue))return!0;n=n.next}return!1}function gi(n){pi=n,ta=null,n=n.dependencies,n!==null&&(n.firstContext=null)}function on(n){return fy(pi,n)}function au(n,a){return pi===null&&gi(n),fy(n,a)}function fy(n,a){var l=a._currentValue;if(a={context:a,memoizedValue:l,next:null},ta===null){if(n===null)throw Error(i(308));ta=a,n.dependencies={lanes:0,firstContext:a},n.flags|=524288}else ta=ta.next=a;return l}var zC=typeof AbortController<"u"?AbortController:function(){var n=[],a=this.signal={aborted:!1,addEventListener:function(l,c){n.push(c)}};this.abort=function(){a.aborted=!0,n.forEach(function(l){return l()})}},MC=e.unstable_scheduleCallback,LC=e.unstable_NormalPriority,Rt={$$typeof:O,Consumer:null,Provider:null,_currentValue:null,_currentValue2:null,_threadCount:0};function mf(){return{controller:new zC,data:new Map,refCount:0}}function vo(n){n.refCount--,n.refCount===0&&MC(LC,function(){n.controller.abort()})}var bo=null,hf=0,ol=0,sl=null;function BC(n,a){if(bo===null){var l=bo=[];hf=0,ol=ym(),sl={status:"pending",value:void 0,then:function(c){l.push(c)}}}return hf++,a.then(my,my),a}function my(){if(--hf===0&&bo!==null){sl!==null&&(sl.status="fulfilled");var n=bo;bo=null,ol=0,sl=null;for(var a=0;a<n.length;a++)(0,n[a])()}}function FC(n,a){var l=[],c={status:"pending",value:null,reason:null,then:function(m){l.push(m)}};return n.then(function(){c.status="fulfilled",c.value=a;for(var m=0;m<l.length;m++)(0,l[m])(a)},function(m){for(c.status="rejected",c.reason=m,m=0;m<l.length;m++)(0,l[m])(void 0)}),c}var hy=R.S;R.S=function(n,a){Qv=fe(),typeof a=="object"&&a!==null&&typeof a.then=="function"&&BC(n,a),hy!==null&&hy(n,a)};var yi=pe(null);function pf(){var n=yi.current;return n!==null?n:lt.pooledCache}function iu(n,a){a===null?D(yi,yi.current):D(yi,a.pool)}function py(){var n=pf();return n===null?null:{parent:Rt._currentValue,pool:n}}var ul=Error(i(460)),gf=Error(i(474)),lu=Error(i(542)),ou={then:function(){}};function gy(n){return n=n.status,n==="fulfilled"||n==="rejected"}function yy(n,a,l){switch(l=n[l],l===void 0?n.push(a):l!==a&&(a.then(Qr,Qr),a=l),a.status){case"fulfilled":return a.value;case"rejected":throw n=a.reason,by(n),n;default:if(typeof a.status=="string")a.then(Qr,Qr);else{if(n=lt,n!==null&&100<n.shellSuspendCounter)throw Error(i(482));n=a,n.status="pending",n.then(function(c){if(a.status==="pending"){var m=a;m.status="fulfilled",m.value=c}},function(c){if(a.status==="pending"){var m=a;m.status="rejected",m.reason=c}})}switch(a.status){case"fulfilled":return a.value;case"rejected":throw n=a.reason,by(n),n}throw bi=a,ul}}function vi(n){try{var a=n._init;return a(n._payload)}catch(l){throw l!==null&&typeof l=="object"&&typeof l.then=="function"?(bi=l,ul):l}}var bi=null;function vy(){if(bi===null)throw Error(i(459));var n=bi;return bi=null,n}function by(n){if(n===ul||n===lu)throw Error(i(483))}var cl=null,xo=0;function su(n){var a=xo;return xo+=1,cl===null&&(cl=[]),yy(cl,n,a)}function wo(n,a){a=a.props.ref,n.ref=a!==void 0?a:null}function uu(n,a){throw a.$$typeof===x?Error(i(525)):(n=Object.prototype.toString.call(a),Error(i(31,n==="[object Object]"?"object with keys {"+Object.keys(a).join(", ")+"}":n)))}function xy(n){function a(Y,Z){if(n){var W=Y.deletions;
vendor: 8,759 bytes, line 9
9W===null?(Y.deletions=[Z],Y.flags|=16):W.push(Z)}}function l(Y,Z){if(!n)return null;for(;Z!==null;)a(Y,Z),Z=Z.sibling;return null}function c(Y){for(var Z=new Map;Y!==null;)Y.key!==null?Z.set(Y.key,Y):Z.set(Y.index,Y),Y=Y.sibling;return Z}function m(Y,Z){return Y=Wr(Y,Z),Y.index=0,Y.sibling=null,Y}function g(Y,Z,W){return Y.index=W,n?(W=Y.alternate,W!==null?(W=W.index,W<Z?(Y.flags|=67108866,Z):W):(Y.flags|=67108866,Z)):(Y.flags|=1048576,Z)}function w(Y){return n&&Y.alternate===null&&(Y.flags|=67108866),Y}function j(Y,Z,W,oe){return Z===null||Z.tag!==6?(Z=rf(W,Y.mode,oe),Z.return=Y,Z):(Z=m(Z,W),Z.return=Y,Z)}function U(Y,Z,W,oe){var je=W.type;return je===N?le(Y,Z,W.props.children,oe,W.key):Z!==null&&(Z.elementType===je||typeof je=="object"&&je!==null&&je.$$typeof===_&&vi(je)===Z.type)?(Z=m(Z,W.props),wo(Z,W),Z.return=Y,Z):(Z=tu(W.type,W.key,W.props,null,Y.mode,oe),wo(Z,W),Z.return=Y,Z)}function ee(Y,Z,W,oe){return Z===null||Z.tag!==4||Z.stateNode.containerInfo!==W.containerInfo||Z.stateNode.implementation!==W.implementation?(Z=af(W,Y.mode,oe),Z.return=Y,Z):(Z=m(Z,W.children||[]),Z.return=Y,Z)}function le(Y,Z,W,oe,je){return Z===null||Z.tag!==7?(Z=mi(W,Y.mode,oe,je),Z.return=Y,Z):(Z=m(Z,W),Z.return=Y,Z)}function se(Y,Z,W){if(typeof Z=="string"&&Z!==""||typeof Z=="number"||typeof Z=="bigint")return Z=rf(""+Z,Y.mode,W),Z.return=Y,Z;if(typeof Z=="object"&&Z!==null){switch(Z.$$typeof){case b:return W=tu(Z.type,Z.key,Z.props,null,Y.mode,W),wo(W,Z),W.return=Y,W;case E:return Z=af(Z,Y.mode,W),Z.return=Y,Z;case _:return Z=vi(Z),se(Y,Z,W)}if(z(Z)||$(Z))return Z=mi(Z,Y.mode,W,null),Z.return=Y,Z;if(typeof Z.then=="function")return se(Y,su(Z),W);if(Z.$$typeof===O)return se(Y,au(Y,Z),W);uu(Y,Z)}return null}function te(Y,Z,W,oe){var je=Z!==null?Z.key:null;if(typeof W=="string"&&W!==""||typeof W=="number"||typeof W=="bigint")return je!==null?null:j(Y,Z,""+W,oe);if(typeof W=="object"&&W!==null){switch(W.$$typeof){case b:return W.key===je?U(Y,Z,W,oe):null;case E:return W.key===je?ee(Y,Z,W,oe):null;case _:return W=vi(W),te(Y,Z,W,oe)}if(z(W)||$(W))return je!==null?null:le(Y,Z,W,oe,null);if(typeof W.then=="function")return te(Y,Z,su(W),oe);if(W.$$typeof===O)return te(Y,Z,au(Y,W),oe);uu(Y,W)}return null}function ae(Y,Z,W,oe,je){if(typeof oe=="string"&&oe!==""||typeof oe=="number"||typeof oe=="bigint")return Y=Y.get(W)||null,j(Z,Y,""+oe,je);if(typeof oe=="object"&&oe!==null){switch(oe.$$typeof){case b:return Y=Y.get(oe.key===null?W:oe.key)||null,U(Z,Y,oe,je);case E:return Y=Y.get(oe.key===null?W:oe.key)||null,ee(Z,Y,oe,je);case _:return oe=vi(oe),ae(Y,Z,W,oe,je)}if(z(oe)||$(oe))return Y=Y.get(W)||null,le(Z,Y,oe,je,null);if(typeof oe.then=="function")return ae(Y,Z,W,su(oe),je);if(oe.$$typeof===O)return ae(Y,Z,W,au(Z,oe),je);uu(Z,oe)}return null}function xe(Y,Z,W,oe){for(var je=null,Xe=null,Ce=Z,ze=Z=0,He=null;Ce!==null&&ze<W.length;ze++){Ce.index>ze?(He=Ce,Ce=null):He=Ce.sibling;var Qe=te(Y,Ce,W[ze],oe);if(Qe===null){Ce===null&&(Ce=He);break}n&&Ce&&Qe.alternate===null&&a(Y,Ce),Z=g(Qe,Z,ze),Xe===null?je=Qe:Xe.sibling=Qe,Xe=Qe,Ce=He}if(ze===W.length)return l(Y,Ce),qe&&ea(Y,ze),je;if(Ce===null){for(;ze<W.length;ze++)Ce=se(Y,W[ze],oe),Ce!==null&&(Z=g(Ce,Z,ze),Xe===null?je=Ce:Xe.sibling=Ce,Xe=Ce);return qe&&ea(Y,ze),je}for(Ce=c(Ce);ze<W.length;ze++)He=ae(Ce,Y,ze,W[ze],oe),He!==null&&(n&&He.alternate!==null&&Ce.delete(He.key===null?ze:He.key),Z=g(He,Z,ze),Xe===null?je=He:Xe.sibling=He,Xe=He);return n&&Ce.forEach(function(Ka){return a(Y,Ka)}),qe&&ea(Y,ze),je}function Ae(Y,Z,W,oe){if(W==null)throw Error(i(151));for(var je=null,Xe=null,Ce=Z,ze=Z=0,He=null,Qe=W.next();Ce!==null&&!Qe.done;ze++,Qe=W.next()){Ce.index>ze?(He=Ce,Ce=null):He=Ce.sibling;var Ka=te(Y,Ce,Qe.value,oe);if(Ka===null){Ce===null&&(Ce=He);break}n&&Ce&&Ka.alternate===null&&a(Y,Ce),Z=g(Ka,Z,ze),Xe===null?je=Ka:Xe.sibling=Ka,Xe=Ka,Ce=He}if(Qe.done)return l(Y,Ce),qe&&ea(Y,ze),je;if(Ce===null){for(;!Qe.done;ze++,Qe=W.next())Qe=se(Y,Qe.value,oe),Qe!==null&&(Z=g(Qe,Z,ze),Xe===null?je=Qe:Xe.sibling=Qe,Xe=Qe);return qe&&ea(Y,ze),je}for(Ce=c(Ce);!Qe.done;ze++,Qe=W.next())Qe=ae(Ce,Y,ze,Qe.value,oe),Qe!==null&&(n&&Qe.alternate!==null&&Ce.delete(Qe.key===null?ze:Qe.key),Z=g(Qe,Z,ze),Xe===null?je=Qe:Xe.sibling=Qe,Xe=Qe);return n&&Ce.forEach(function(Yj){return a(Y,Yj)}),qe&&ea(Y,ze),je}function at(Y,Z,W,oe){if(typeof W=="object"&&W!==null&&W.type===N&&W.key===null&&(W=W.props.children),typeof W=="object"&&W!==null){switch(W.$$typeof){case b:e:{for(var je=W.key;Z!==null;){if(Z.key===je){if(je=W.type,je===N){if(Z.tag===7){l(Y,Z.sibling),oe=m(Z,W.props.children),oe.return=Y,Y=oe;break e}}else if(Z.elementType===je||typeof je=="object"&&je!==null&&je.$$typeof===_&&vi(je)===Z.type){l(Y,Z.sibling),oe=m(Z,W.props),wo(oe,W),oe.return=Y,Y=oe;break e}l(Y,Z);break}else a(Y,Z);Z=Z.sibling}W.type===N?(oe=mi(W.props.children,Y.mode,oe,W.key),oe.return=Y,Y=oe):(oe=tu(W.type,W.key,W.props,null,Y.mode,oe),wo(oe,W),oe.return=Y,Y=oe)}return w(Y);case E:e:{for(je=W.key;Z!==null;){if(Z.key===je)if(Z.tag===4&&Z.stateNode.containerInfo===W.containerInfo&&Z.stateNode.implementation===W.implementation){l(Y,Z.sibling),oe=m(Z,W.children||[]),oe.return=Y,Y=oe;break e}else{l(Y,Z);break}else a(Y,Z);Z=Z.sibling}oe=af(W,Y.mode,oe),oe.return=Y,Y=oe}return w(Y);case _:return W=vi(W),at(Y,Z,W,oe)}if(z(W))return xe(Y,Z,W,oe);if($(W)){if(je=$(W),typeof je!="function")throw Error(i(150));return W=je.call(W),Ae(Y,Z,W,oe)}if(typeof W.then=="function")return at(Y,Z,su(W),oe);if(W.$$typeof===O)return at(Y,Z,au(Y,W),oe);uu(Y,W)}return typeof W=="string"&&W!==""||typeof W=="number"||typeof W=="bigint"?(W=""+W,Z!==null&&Z.tag===6?(l(Y,Z.sibling),oe=m(Z,W),oe.return=Y,Y=oe):(l(Y,Z),oe=rf(W,Y.mode,oe),oe.return=Y,Y=oe),w(Y)):l(Y,Z)}return function(Y,Z,W,oe){try{xo=0;var je=at(Y,Z,W,oe);return cl=null,je}catch(Ce){if(Ce===ul||Ce===lu)throw Ce;var Xe=qn(29,Ce,null,Y.mode);return Xe.lanes=oe,Xe.return=Y,Xe}}}var xi=xy(!0),wy=xy(!1),_a=!1;function yf(n){n.updateQueue={baseState:n.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function vf(n,a){n=n.updateQueue,a.updateQueue===n&&(a.updateQueue={baseState:n.baseState,firstBaseUpdate:n.firstBaseUpdate,lastBaseUpdate:n.lastBaseUpdate,shared:n.shared,callbacks:null})}function Da(n){return{lane:n,tag:0,payload:null,callback:null,next:null}}function Ra(n,a,l){var c=n.updateQueue;if(c===null)return null;if(c=c.shared,(Je&2)!==0){var m=c.pending;return m===null?a.next=a:(a.next=m.next,m.next=a),c.pending=a,a=eu(n),ay(n,null,l),a}return Ws(n,c,a,l),eu(n)}function So(n,a,l){if(a=a.updateQueue,a!==null&&(a=a.shared,(l&4194048)!==0)){var c=a.lanes;c&=n.pendingLanes,l|=c,a.lanes=l,Vn(n,l)}}function bf(n,a){var l=n.updateQueue,c=n.alternate;if(c!==null&&(c=c.updateQueue,l===c)){var m=null,g=null;if(l=l.firstBaseUpdate,l!==null){do{var w={lane:l.lane,tag:l.tag,payload:l.payload,callback:null,next:null};g===null?m=g=w:g=g.next=w,l=l.next}while(l!==null);g===null?m=g=a:g=g.next=a}else m=g=a;l={baseState:c.baseState,firstBaseUpdate:m,lastBaseUpdate:g,shared:c.shared,callbacks:c.callbacks},n.updateQueue=l;return}n=l.lastBaseUpdate,n===null?l.firstBaseUpdate=a:n.next=a,l.lastBaseUpdate=a}var xf=!1;function Eo(){if(xf){var n=sl;if(n!==null)throw n}}function No(n,a,l,c){xf=!1;var m=n.updateQueue;_a=!1;var g=m.firstBaseUpdate,w=m.lastBaseUpdate,j=m.shared.pending;if(j!==null){m.shared.pending=null;var U=j,ee=U.next;U.next=null,w===null?g=ee:w.next=ee,w=U;var le=n.alternate;le!==null&&(le=le.updateQueue,j=le.lastBaseUpdate,j!==w&&(j===null?le.firstBaseUpdate=ee:j.next=ee,le.lastBaseUpdate=U))}if(g!==null){var se=m.baseState;w=0,le=ee=U=null,j=g;do{var te=j.lane&-536870913,ae=te!==j.lane;if(ae?(Ve&te)===te:(c&te)===te){te!==0&&te===ol&&(xf=!0),le!==null&&(le=le.next={lane:0,tag:j.tag,payload:j.payload,callback:null,next:null});e:{var xe=n,Ae=j;te=a;var at=l;switch(Ae.tag){case 1:if(xe=Ae.payload,typeof xe=="function"){se=xe.call(at,se,te);break e}se=xe;break e;case 3:xe.flags=xe.flags&-65537|128;case 0:if(xe=Ae.payload,te=typeof xe=="function"?xe.call(at,se,te):xe,te==null)break e;se=v({},se,te);break e;case 2:_a=!0}}te=j.callback,te!==null&&(n.flags|=64,ae&&(n.flags|=8192),ae=m.callbacks,ae===null?m.callbacks=[te]:ae.push(te))}else ae={lane:te,tag:j.tag,payload:j.payload,callback:j.callback,next:null},le===null?(ee=le=ae,U=se):le=le.next=ae,w|=te;if(j=j.next,j===null){if(j=m.shared.pending,j===null)break;ae=j,j=ae.next,ae.next=null,m.lastBaseUpdate=ae,m.shared.pending=null}}while(!0);le===null&&(U=se),m.baseState=U,m.firstBaseUpdate=ee,m.lastBaseUpdate=le,g===null&&(m.shared.lanes=0),Ba|=w,n.lanes=w,n.memoizedState=se}}function Sy(n,a){if(typeof n!="function")throw Error(i(191,n));n.call(a)}function Ey(n,a){var l=n.callbacks;
vendor: 5,022 bytes, line 9
9if(l!==null)for(n.callbacks=null,n=0;n<l.length;n++)Sy(l[n],a)}var dl=pe(null),cu=pe(0);function Ny(n,a){n=da,D(cu,n),D(dl,a),da=n|a.baseLanes}function wf(){D(cu,da),D(dl,dl.current)}function Sf(){da=cu.current,ce(dl),ce(cu)}var Zn=pe(null),dr=null;function Oa(n){var a=n.alternate;D(At,At.current&1),D(Zn,n),dr===null&&(a===null||dl.current!==null||a.memoizedState!==null)&&(dr=n)}function Ef(n){D(At,At.current),D(Zn,n),dr===null&&(dr=n)}function Cy(n){n.tag===22?(D(At,At.current),D(Zn,n),dr===null&&(dr=n)):za()}function za(){D(At,At.current),D(Zn,Zn.current)}function $n(n){ce(Zn),dr===n&&(dr=null),ce(At)}var At=pe(0);function du(n){for(var a=n;a!==null;){if(a.tag===13){var l=a.memoizedState;if(l!==null&&(l=l.dehydrated,l===null||Tm(l)||_m(l)))return a}else if(a.tag===19&&(a.memoizedProps.revealOrder==="forwards"||a.memoizedProps.revealOrder==="backwards"||a.memoizedProps.revealOrder==="unstable_legacy-backwards"||a.memoizedProps.revealOrder==="together")){if((a.flags&128)!==0)return a}else if(a.child!==null){a.child.return=a,a=a.child;continue}if(a===n)break;for(;a.sibling===null;){if(a.return===null||a.return===n)return null;a=a.return}a.sibling.return=a.return,a=a.sibling}return null}var ra=0,Oe=null,nt=null,Ot=null,fu=!1,fl=!1,wi=!1,mu=0,Co=0,ml=null,IC=0;function wt(){throw Error(i(321))}function Nf(n,a){if(a===null)return!1;for(var l=0;l<a.length&&l<n.length;l++)if(!Hn(n[l],a[l]))return!1;return!0}function Cf(n,a,l,c,m,g){return ra=g,Oe=a,a.memoizedState=null,a.updateQueue=null,a.lanes=0,R.H=n===null||n.memoizedState===null?sv:Uf,wi=!1,g=l(c,m),wi=!1,fl&&(g=ky(a,l,c,m)),jy(n),g}function jy(n){R.H=Ao;var a=nt!==null&&nt.next!==null;if(ra=0,Ot=nt=Oe=null,fu=!1,Co=0,ml=null,a)throw Error(i(300));n===null||zt||(n=n.dependencies,n!==null&&ru(n)&&(zt=!0))}function ky(n,a,l,c){Oe=n;var m=0;do{if(fl&&(ml=null),Co=0,fl=!1,25<=m)throw Error(i(301));if(m+=1,Ot=nt=null,n.updateQueue!=null){var g=n.updateQueue;g.lastEffect=null,g.events=null,g.stores=null,g.memoCache!=null&&(g.memoCache.index=0)}R.H=uv,g=a(l,c)}while(fl);return g}function UC(){var n=R.H,a=n.useState()[0];return a=typeof a.then=="function"?jo(a):a,n=n.useState()[0],(nt!==null?nt.memoizedState:null)!==n&&(Oe.flags|=1024),a}function jf(){var n=mu!==0;return mu=0,n}function kf(n,a,l){a.updateQueue=n.updateQueue,a.flags&=-2053,n.lanes&=~l}function Af(n){if(fu){for(n=n.memoizedState;n!==null;){var a=n.queue;a!==null&&(a.pending=null),n=n.next}fu=!1}ra=0,Ot=nt=Oe=null,fl=!1,Co=mu=0,ml=null}function vn(){var n={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return Ot===null?Oe.memoizedState=Ot=n:Ot=Ot.next=n,Ot}function Tt(){if(nt===null){var n=Oe.alternate;n=n!==null?n.memoizedState:null}else n=nt.next;var a=Ot===null?Oe.memoizedState:Ot.next;if(a!==null)Ot=a,nt=n;else{if(n===null)throw Oe.alternate===null?Error(i(467)):Error(i(310));nt=n,n={memoizedState:nt.memoizedState,baseState:nt.baseState,baseQueue:nt.baseQueue,queue:nt.queue,next:null},Ot===null?Oe.memoizedState=Ot=n:Ot=Ot.next=n}return Ot}function hu(){return{lastEffect:null,events:null,stores:null,memoCache:null}}function jo(n){var a=Co;return Co+=1,ml===null&&(ml=[]),n=yy(ml,n,a),a=Oe,(Ot===null?a.memoizedState:Ot.next)===null&&(a=a.alternate,R.H=a===null||a.memoizedState===null?sv:Uf),n}function pu(n){if(n!==null&&typeof n=="object"){if(typeof n.then=="function")return jo(n);if(n.$$typeof===O)return on(n)}throw Error(i(438,String(n)))}function Tf(n){var a=null,l=Oe.updateQueue;if(l!==null&&(a=l.memoCache),a==null){var c=Oe.alternate;c!==null&&(c=c.updateQueue,c!==null&&(c=c.memoCache,c!=null&&(a={data:c.data.map(function(m){return m.slice()}),index:0})))}if(a==null&&(a={data:[],index:0}),l===null&&(l=hu(),Oe.updateQueue=l),l.memoCache=a,l=a.data[a.index],l===void 0)for(l=a.data[a.index]=Array(n),c=0;c<n;c++)l[c]=V;return a.index++,l}function aa(n,a){return typeof a=="function"?a(n):a}function gu(n){var a=Tt();return _f(a,nt,n)}function _f(n,a,l){var c=n.queue;if(c===null)throw Error(i(311));c.lastRenderedReducer=l;var m=n.baseQueue,g=c.pending;if(g!==null){if(m!==null){var w=m.next;m.next=g.next,g.next=w}a.baseQueue=m=g,c.pending=null}if(g=n.baseState,m===null)n.memoizedState=g;else{a=m.next;var j=w=null,U=null,ee=a,le=!1;do{var se=ee.lane&-536870913;if(se!==ee.lane?(Ve&se)===se:(ra&se)===se){var te=ee.revertLane;if(te===0)U!==null&&(U=U.next={lane:0,revertLane:0,gesture:null,action:ee.action,hasEagerState:ee.hasEagerState,eagerState:ee.eagerState,next:null}),se===ol&&(le=!0);else if((ra&te)===te){ee=ee.next,te===ol&&(le=!0);continue}else se={lane:0,revertLane:ee.revertLane,gesture:null,action:ee.action,hasEagerState:ee.hasEagerState,eagerState:ee.eagerState,next:null},U===null?(j=U=se,w=g):U=U.next=se,Oe.lanes|=te,Ba|=te;se=ee.action,wi&&l(g,se),g=ee.hasEagerState?ee.eagerState:l(g,se)}else te={lane:se,revertLane:ee.revertLane,gesture:ee.gesture,action:ee.action,hasEagerState:ee.hasEagerState,eagerState:ee.eagerState,next:null},U===null?(j=U=te,w=g):U=U.next=te,Oe.lanes|=se,Ba|=se;ee=ee.next}
vendor: 8,022 bytes, line 9
9while(ee!==null&&ee!==a);if(U===null?w=g:U.next=j,!Hn(g,n.memoizedState)&&(zt=!0,le&&(l=sl,l!==null)))throw l;n.memoizedState=g,n.baseState=w,n.baseQueue=U,c.lastRenderedState=g}return m===null&&(c.lanes=0),[n.memoizedState,c.dispatch]}function Df(n){var a=Tt(),l=a.queue;if(l===null)throw Error(i(311));l.lastRenderedReducer=n;var c=l.dispatch,m=l.pending,g=a.memoizedState;if(m!==null){l.pending=null;var w=m=m.next;do g=n(g,w.action),w=w.next;while(w!==m);Hn(g,a.memoizedState)||(zt=!0),a.memoizedState=g,a.baseQueue===null&&(a.baseState=g),l.lastRenderedState=g}return[g,c]}function Ay(n,a,l){var c=Oe,m=Tt(),g=qe;if(g){if(l===void 0)throw Error(i(407));l=l()}else l=a();var w=!Hn((nt||m).memoizedState,l);if(w&&(m.memoizedState=l,zt=!0),m=m.queue,zf(Dy.bind(null,c,m,n),[n]),m.getSnapshot!==a||w||Ot!==null&&Ot.memoizedState.tag&1){if(c.flags|=2048,hl(9,{destroy:void 0},_y.bind(null,c,m,l,a),null),lt===null)throw Error(i(349));g||(ra&127)!==0||Ty(c,a,l)}return l}function Ty(n,a,l){n.flags|=16384,n={getSnapshot:a,value:l},a=Oe.updateQueue,a===null?(a=hu(),Oe.updateQueue=a,a.stores=[n]):(l=a.stores,l===null?a.stores=[n]:l.push(n))}function _y(n,a,l,c){a.value=l,a.getSnapshot=c,Ry(a)&&Oy(n)}function Dy(n,a,l){return l(function(){Ry(a)&&Oy(n)})}function Ry(n){var a=n.getSnapshot;n=n.value;try{var l=a();return!Hn(n,l)}catch{return!0}}function Oy(n){var a=fi(n,2);a!==null&&Rn(a,n,2)}function Rf(n){var a=vn();if(typeof n=="function"){var l=n;if(n=l(),wi){xt(!0);try{l()}finally{xt(!1)}}}return a.memoizedState=a.baseState=n,a.queue={pending:null,lanes:0,dispatch:null,lastRenderedReducer:aa,lastRenderedState:n},a}function zy(n,a,l,c){return n.baseState=l,_f(n,nt,typeof c=="function"?c:aa)}function PC(n,a,l,c,m){if(bu(n))throw Error(i(485));if(n=a.action,n!==null){var g={payload:m,action:n,next:null,isTransition:!0,status:"pending",value:null,reason:null,listeners:[],then:function(w){g.listeners.push(w)}};R.T!==null?l(!0):g.isTransition=!1,c(g),l=a.pending,l===null?(g.next=a.pending=g,My(a,g)):(g.next=l.next,a.pending=l.next=g)}}function My(n,a){var l=a.action,c=a.payload,m=n.state;if(a.isTransition){var g=R.T,w={};R.T=w;try{var j=l(m,c),U=R.S;U!==null&&U(w,j),Ly(n,a,j)}catch(ee){Of(n,a,ee)}finally{g!==null&&w.types!==null&&(g.types=w.types),R.T=g}}else try{g=l(m,c),Ly(n,a,g)}catch(ee){Of(n,a,ee)}}function Ly(n,a,l){l!==null&&typeof l=="object"&&typeof l.then=="function"?l.then(function(c){By(n,a,c)},function(c){return Of(n,a,c)}):By(n,a,l)}function By(n,a,l){a.status="fulfilled",a.value=l,Fy(a),n.state=l,a=n.pending,a!==null&&(l=a.next,l===a?n.pending=null:(l=l.next,a.next=l,My(n,l)))}function Of(n,a,l){var c=n.pending;if(n.pending=null,c!==null){c=c.next;do a.status="rejected",a.reason=l,Fy(a),a=a.next;while(a!==c)}n.action=null}function Fy(n){n=n.listeners;for(var a=0;a<n.length;a++)(0,n[a])()}function Iy(n,a){return a}function Uy(n,a){if(qe){var l=lt.formState;if(l!==null){e:{var c=Oe;if(qe){if(pt){t:{for(var m=pt,g=cr;m.nodeType!==8;){if(!g){m=null;break t}if(m=fr(m.nextSibling),m===null){m=null;break t}}g=m.data,m=g==="F!"||g==="F"?m:null}if(m){pt=fr(m.nextSibling),c=m.data==="F!";break e}}Aa(c)}c=!1}c&&(a=l[0])}}return l=vn(),l.memoizedState=l.baseState=a,c={pending:null,lanes:0,dispatch:null,lastRenderedReducer:Iy,lastRenderedState:a},l.queue=c,l=iv.bind(null,Oe,c),c.dispatch=l,c=Rf(!1),g=If.bind(null,Oe,!1,c.queue),c=vn(),m={state:a,dispatch:null,action:n,pending:null},c.queue=m,l=PC.bind(null,Oe,m,g,l),m.dispatch=l,c.memoizedState=n,[a,l,!1]}function Py(n){var a=Tt();return Vy(a,nt,n)}function Vy(n,a,l){if(a=_f(n,a,Iy)[0],n=gu(aa)[0],typeof a=="object"&&a!==null&&typeof a.then=="function")try{var c=jo(a)}catch(w){throw w===ul?lu:w}else c=a;a=Tt();var m=a.queue,g=m.dispatch;return l!==a.memoizedState&&(Oe.flags|=2048,hl(9,{destroy:void 0},VC.bind(null,m,l),null)),[c,g,n]}function VC(n,a){n.action=a}function Hy(n){var a=Tt(),l=nt;if(l!==null)return Vy(a,l,n);Tt(),a=a.memoizedState,l=Tt();var c=l.queue.dispatch;return l.memoizedState=n,[a,c,!1]}function hl(n,a,l,c){return n={tag:n,create:l,deps:c,inst:a,next:null},a=Oe.updateQueue,a===null&&(a=hu(),Oe.updateQueue=a),l=a.lastEffect,l===null?a.lastEffect=n.next=n:(c=l.next,l.next=n,n.next=c,a.lastEffect=n),n}function qy(){return Tt().memoizedState}function yu(n,a,l,c){var m=vn();Oe.flags|=n,m.memoizedState=hl(1|a,{destroy:void 0},l,c===void 0?null:c)}function vu(n,a,l,c){var m=Tt();c=c===void 0?null:c;var g=m.memoizedState.inst;nt!==null&&c!==null&&Nf(c,nt.memoizedState.deps)?m.memoizedState=hl(a,g,l,c):(Oe.flags|=n,m.memoizedState=hl(1|a,g,l,c))}function Zy(n,a){yu(8390656,8,n,a)}function zf(n,a){vu(2048,8,n,a)}function HC(n){Oe.flags|=4;var a=Oe.updateQueue;if(a===null)a=hu(),Oe.updateQueue=a,a.events=[n];else{var l=a.events;l===null?a.events=[n]:l.push(n)}}function $y(n){var a=Tt().memoizedState;return HC({ref:a,nextImpl:n}),function(){if((Je&2)!==0)throw Error(i(440));return a.impl.apply(void 0,arguments)}}function Ky(n,a){return vu(4,2,n,a)}function Gy(n,a){return vu(4,4,n,a)}function Yy(n,a){if(typeof a=="function"){n=n();var l=a(n);return function(){typeof l=="function"?l():a(null)}}if(a!=null)return n=n(),a.current=n,function(){a.current=null}}function Xy(n,a,l){l=l!=null?l.concat([n]):null,vu(4,4,Yy.bind(null,a,n),l)}function Mf(){}function Qy(n,a){var l=Tt();a=a===void 0?null:a;var c=l.memoizedState;return a!==null&&Nf(a,c[1])?c[0]:(l.memoizedState=[n,a],n)}function Jy(n,a){var l=Tt();a=a===void 0?null:a;var c=l.memoizedState;if(a!==null&&Nf(a,c[1]))return c[0];if(c=n(),wi){xt(!0);try{n()}finally{xt(!1)}}return l.memoizedState=[c,a],c}function Lf(n,a,l){return l===void 0||(ra&1073741824)!==0&&(Ve&261930)===0?n.memoizedState=a:(n.memoizedState=l,n=Wv(),Oe.lanes|=n,Ba|=n,l)}function Wy(n,a,l,c){return Hn(l,a)?l:dl.current!==null?(n=Lf(n,l,c),Hn(n,a)||(zt=!0),n):(ra&42)===0||(ra&1073741824)!==0&&(Ve&261930)===0?(zt=!0,n.memoizedState=l):(n=Wv(),Oe.lanes|=n,Ba|=n,a)}function ev(n,a,l,c,m){var g=K.p;K.p=g!==0&&8>g?g:8;var w=R.T,j={};R.T=j,If(n,!1,a,l);try{var U=m(),ee=R.S;if(ee!==null&&ee(j,U),U!==null&&typeof U=="object"&&typeof U.then=="function"){var le=FC(U,c);ko(n,a,le,Yn(n))}else ko(n,a,c,Yn(n))}catch(se){ko(n,a,{then:function(){},status:"rejected",reason:se},Yn())}finally{K.p=g,w!==null&&j.types!==null&&(w.types=j.types),R.T=w}}function qC(){}function Bf(n,a,l,c){if(n.tag!==5)throw Error(i(476));var m=tv(n).queue;ev(n,m,a,q,l===null?qC:function(){return nv(n),l(c)})}function tv(n){var a=n.memoizedState;if(a!==null)return a;a={memoizedState:q,baseState:q,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:aa,lastRenderedState:q},next:null};var l={};return a.next={memoizedState:l,baseState:l,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:aa,lastRenderedState:l},next:null},n.memoizedState=a,n=n.alternate,n!==null&&(n.memoizedState=a),a}function nv(n){var a=tv(n);a.next===null&&(a=n.alternate.memoizedState),ko(n,a.next.queue,{},Yn())}function Ff(){return on(qo)}function rv(){return Tt().memoizedState}function av(){return Tt().memoizedState}function ZC(n){for(var a=n.return;a!==null;){switch(a.tag){case 24:case 3:var l=Yn();n=Da(l);var c=Ra(a,n,l);c!==null&&(Rn(c,a,l),So(c,a,l)),a={cache:mf()},n.payload=a;return}a=a.return}}function $C(n,a,l){var c=Yn();l={lane:c,revertLane:0,gesture:null,action:l,hasEagerState:!1,eagerState:null,next:null},bu(n)?lv(a,l):(l=tf(n,a,l,c),l!==null&&(Rn(l,n,c),ov(l,a,c)))}function iv(n,a,l){var c=Yn();ko(n,a,l,c)}function ko(n,a,l,c){var m={lane:c,revertLane:0,gesture:null,action:l,hasEagerState:!1,eagerState:null,next:null};if(bu(n))lv(a,m);else{var g=n.alternate;if(n.lanes===0&&(g===null||g.lanes===0)&&(g=a.lastRenderedReducer,g!==null))try{var w=a.lastRenderedState,j=g(w,l);if(m.hasEagerState=!0,m.eagerState=j,Hn(j,w))return Ws(n,a,m,0),lt===null&&Js(),!1}catch{}if(l=tf(n,a,m,c),l!==null)return Rn(l,n,c),ov(l,a,c),!0}return!1}function If(n,a,l,c){if(c={lane:2,revertLane:ym(),gesture:null,action:c,hasEagerState:!1,eagerState:null,next:null}
vendor: 5,921 bytes, line 9
9,bu(n)){if(a)throw Error(i(479))}else a=tf(n,l,c,2),a!==null&&Rn(a,n,2)}function bu(n){var a=n.alternate;return n===Oe||a!==null&&a===Oe}function lv(n,a){fl=fu=!0;var l=n.pending;l===null?a.next=a:(a.next=l.next,l.next=a),n.pending=a}function ov(n,a,l){if((l&4194048)!==0){var c=a.lanes;c&=n.pendingLanes,l|=c,a.lanes=l,Vn(n,l)}}var Ao={readContext:on,use:pu,useCallback:wt,useContext:wt,useEffect:wt,useImperativeHandle:wt,useLayoutEffect:wt,useInsertionEffect:wt,useMemo:wt,useReducer:wt,useRef:wt,useState:wt,useDebugValue:wt,useDeferredValue:wt,useTransition:wt,useSyncExternalStore:wt,useId:wt,useHostTransitionStatus:wt,useFormState:wt,useActionState:wt,useOptimistic:wt,useMemoCache:wt,useCacheRefresh:wt};Ao.useEffectEvent=wt;var sv={readContext:on,use:pu,useCallback:function(n,a){return vn().memoizedState=[n,a===void 0?null:a],n},useContext:on,useEffect:Zy,useImperativeHandle:function(n,a,l){l=l!=null?l.concat([n]):null,yu(4194308,4,Yy.bind(null,a,n),l)},useLayoutEffect:function(n,a){return yu(4194308,4,n,a)},useInsertionEffect:function(n,a){yu(4,2,n,a)},useMemo:function(n,a){var l=vn();a=a===void 0?null:a;var c=n();if(wi){xt(!0);try{n()}finally{xt(!1)}}return l.memoizedState=[c,a],c},useReducer:function(n,a,l){var c=vn();if(l!==void 0){var m=l(a);if(wi){xt(!0);try{l(a)}finally{xt(!1)}}}else m=a;return c.memoizedState=c.baseState=m,n={pending:null,lanes:0,dispatch:null,lastRenderedReducer:n,lastRenderedState:m},c.queue=n,n=n.dispatch=$C.bind(null,Oe,n),[c.memoizedState,n]},useRef:function(n){var a=vn();return n={current:n},a.memoizedState=n},useState:function(n){n=Rf(n);var a=n.queue,l=iv.bind(null,Oe,a);return a.dispatch=l,[n.memoizedState,l]},useDebugValue:Mf,useDeferredValue:function(n,a){var l=vn();return Lf(l,n,a)},useTransition:function(){var n=Rf(!1);return n=ev.bind(null,Oe,n.queue,!0,!1),vn().memoizedState=n,[!1,n]},useSyncExternalStore:function(n,a,l){var c=Oe,m=vn();if(qe){if(l===void 0)throw Error(i(407));l=l()}else{if(l=a(),lt===null)throw Error(i(349));(Ve&127)!==0||Ty(c,a,l)}m.memoizedState=l;var g={value:l,getSnapshot:a};return m.queue=g,Zy(Dy.bind(null,c,g,n),[n]),c.flags|=2048,hl(9,{destroy:void 0},_y.bind(null,c,g,l,a),null),l},useId:function(){var n=vn(),a=lt.identifierPrefix;if(qe){var l=Rr,c=Dr;l=(c&~(1<<32-Ye(c)-1)).toString(32)+l,a="_"+a+"R_"+l,l=mu++,0<l&&(a+="H"+l.toString(32)),a+="_"}else l=IC++,a="_"+a+"r_"+l.toString(32)+"_";return n.memoizedState=a},useHostTransitionStatus:Ff,useFormState:Uy,useActionState:Uy,useOptimistic:function(n){var a=vn();a.memoizedState=a.baseState=n;var l={pending:null,lanes:0,dispatch:null,lastRenderedReducer:null,lastRenderedState:null};return a.queue=l,a=If.bind(null,Oe,!0,l),l.dispatch=a,[n,a]},useMemoCache:Tf,useCacheRefresh:function(){return vn().memoizedState=ZC.bind(null,Oe)},useEffectEvent:function(n){var a=vn(),l={impl:n};return a.memoizedState=l,function(){if((Je&2)!==0)throw Error(i(440));return l.impl.apply(void 0,arguments)}}},Uf={readContext:on,use:pu,useCallback:Qy,useContext:on,useEffect:zf,useImperativeHandle:Xy,useInsertionEffect:Ky,useLayoutEffect:Gy,useMemo:Jy,useReducer:gu,useRef:qy,useState:function(){return gu(aa)},useDebugValue:Mf,useDeferredValue:function(n,a){var l=Tt();return Wy(l,nt.memoizedState,n,a)},useTransition:function(){var n=gu(aa)[0],a=Tt().memoizedState;return[typeof n=="boolean"?n:jo(n),a]},useSyncExternalStore:Ay,useId:rv,useHostTransitionStatus:Ff,useFormState:Py,useActionState:Py,useOptimistic:function(n,a){var l=Tt();return zy(l,nt,n,a)},useMemoCache:Tf,useCacheRefresh:av};Uf.useEffectEvent=$y;var uv={readContext:on,use:pu,useCallback:Qy,useContext:on,useEffect:zf,useImperativeHandle:Xy,useInsertionEffect:Ky,useLayoutEffect:Gy,useMemo:Jy,useReducer:Df,useRef:qy,useState:function(){return Df(aa)},useDebugValue:Mf,useDeferredValue:function(n,a){var l=Tt();return nt===null?Lf(l,n,a):Wy(l,nt.memoizedState,n,a)},useTransition:function(){var n=Df(aa)[0],a=Tt().memoizedState;return[typeof n=="boolean"?n:jo(n),a]},useSyncExternalStore:Ay,useId:rv,useHostTransitionStatus:Ff,useFormState:Hy,useActionState:Hy,useOptimistic:function(n,a){var l=Tt();return nt!==null?zy(l,nt,n,a):(l.baseState=n,[n,l.queue.dispatch])},useMemoCache:Tf,useCacheRefresh:av};uv.useEffectEvent=$y;function Pf(n,a,l,c){a=n.memoizedState,l=l(c,a),l=l==null?a:v({},a,l),n.memoizedState=l,n.lanes===0&&(n.updateQueue.baseState=l)}var Vf={enqueueSetState:function(n,a,l){n=n._reactInternals;var c=Yn(),m=Da(c);m.payload=a,l!=null&&(m.callback=l),a=Ra(n,m,c),a!==null&&(Rn(a,n,c),So(a,n,c))},enqueueReplaceState:function(n,a,l){n=n._reactInternals;var c=Yn(),m=Da(c);m.tag=1,m.payload=a,l!=null&&(m.callback=l),a=Ra(n,m,c),a!==null&&(Rn(a,n,c),So(a,n,c))},enqueueForceUpdate:function(n,a){n=n._reactInternals;var l=Yn(),c=Da(l);c.tag=2,a!=null&&(c.callback=a),a=Ra(n,c,l),a!==null&&(Rn(a,n,l),So(a,n,l))}};function cv(n,a,l,c,m,g,w){return n=n.stateNode,typeof n.shouldComponentUpdate=="function"?n.shouldComponentUpdate(c,g,w):a.prototype&&a.prototype.isPureReactComponent?!ho(l,c)||!ho(m,g):!0}function dv(n,a,l,c){n=a.state,typeof a.componentWillReceiveProps=="function"&&a.componentWillReceiveProps(l,c),typeof a.UNSAFE_componentWillReceiveProps=="function"&&a.UNSAFE_componentWillReceiveProps(l,c),a.state!==n&&Vf.enqueueReplaceState(a,a.state,null)}function Si(n,a){var l=a;if("ref"in a){l={};for(var c in a)c!=="ref"&&(l[c]=a[c])}if(n=n.defaultProps){l===a&&(l=v({},l));for(var m in n)l[m]===void 0&&(l[m]=n[m])}return l}function fv(n){Qs(n)}function mv(n){console.error(n)}function hv(n){Qs(n)}function xu(n,a){try{var l=n.onUncaughtError;l(a.value,{componentStack:a.stack})}catch(c){setTimeout(function(){throw c})}}function pv(n,a,l){try{var c=n.onCaughtError;c(l.value,{componentStack:l.stack,errorBoundary:a.tag===1?a.stateNode:null})}catch(m){setTimeout(function(){throw m})}}function Hf(n,a,l){return l=Da(l),l.tag=3,l.payload={element:null},l.callback=function(){xu(n,a)},l}
vendor: 12,244 bytes, line 9
9function gv(n){return n=Da(n),n.tag=3,n}function yv(n,a,l,c){var m=l.type.getDerivedStateFromError;if(typeof m=="function"){var g=c.value;n.payload=function(){return m(g)},n.callback=function(){pv(a,l,c)}}var w=l.stateNode;w!==null&&typeof w.componentDidCatch=="function"&&(n.callback=function(){pv(a,l,c),typeof m!="function"&&(Fa===null?Fa=new Set([this]):Fa.add(this));var j=c.stack;this.componentDidCatch(c.value,{componentStack:j!==null?j:""})})}function KC(n,a,l,c,m){if(l.flags|=32768,c!==null&&typeof c=="object"&&typeof c.then=="function"){if(a=l.alternate,a!==null&&ll(a,l,m,!0),l=Zn.current,l!==null){switch(l.tag){case 31:case 13:return dr===null?Ru():l.alternate===null&&St===0&&(St=3),l.flags&=-257,l.flags|=65536,l.lanes=m,c===ou?l.flags|=16384:(a=l.updateQueue,a===null?l.updateQueue=new Set([c]):a.add(c),hm(n,c,m)),!1;case 22:return l.flags|=65536,c===ou?l.flags|=16384:(a=l.updateQueue,a===null?(a={transitions:null,markerInstances:null,retryQueue:new Set([c])},l.updateQueue=a):(l=a.retryQueue,l===null?a.retryQueue=new Set([c]):l.add(c)),hm(n,c,m)),!1}throw Error(i(435,l.tag))}return hm(n,c,m),Ru(),!1}if(qe)return a=Zn.current,a!==null?((a.flags&65536)===0&&(a.flags|=256),a.flags|=65536,a.lanes=m,c!==sf&&(n=Error(i(422),{cause:c}),yo(or(n,l)))):(c!==sf&&(a=Error(i(423),{cause:c}),yo(or(a,l))),n=n.current.alternate,n.flags|=65536,m&=-m,n.lanes|=m,c=or(c,l),m=Hf(n.stateNode,c,m),bf(n,m),St!==4&&(St=2)),!1;var g=Error(i(520),{cause:c});if(g=or(g,l),Lo===null?Lo=[g]:Lo.push(g),St!==4&&(St=2),a===null)return!0;c=or(c,l),l=a;do{switch(l.tag){case 3:return l.flags|=65536,n=m&-m,l.lanes|=n,n=Hf(l.stateNode,c,n),bf(l,n),!1;case 1:if(a=l.type,g=l.stateNode,(l.flags&128)===0&&(typeof a.getDerivedStateFromError=="function"||g!==null&&typeof g.componentDidCatch=="function"&&(Fa===null||!Fa.has(g))))return l.flags|=65536,m&=-m,l.lanes|=m,m=gv(m),yv(m,n,l,c),bf(l,m),!1}l=l.return}while(l!==null);return!1}var qf=Error(i(461)),zt=!1;function sn(n,a,l,c){a.child=n===null?wy(a,null,l,c):xi(a,n.child,l,c)}function vv(n,a,l,c,m){l=l.render;var g=a.ref;if("ref"in c){var w={};for(var j in c)j!=="ref"&&(w[j]=c[j])}else w=c;return gi(a),c=Cf(n,a,l,w,g,m),j=jf(),n!==null&&!zt?(kf(n,a,m),ia(n,a,m)):(qe&&j&&lf(a),a.flags|=1,sn(n,a,c,m),a.child)}function bv(n,a,l,c,m){if(n===null){var g=l.type;return typeof g=="function"&&!nf(g)&&g.defaultProps===void 0&&l.compare===null?(a.tag=15,a.type=g,xv(n,a,g,c,m)):(n=tu(l.type,null,c,a,a.mode,m),n.ref=a.ref,n.return=a,a.child=n)}if(g=n.child,!Jf(n,m)){var w=g.memoizedProps;if(l=l.compare,l=l!==null?l:ho,l(w,c)&&n.ref===a.ref)return ia(n,a,m)}return a.flags|=1,n=Wr(g,c),n.ref=a.ref,n.return=a,a.child=n}function xv(n,a,l,c,m){if(n!==null){var g=n.memoizedProps;if(ho(g,c)&&n.ref===a.ref)if(zt=!1,a.pendingProps=c=g,Jf(n,m))(n.flags&131072)!==0&&(zt=!0);else return a.lanes=n.lanes,ia(n,a,m)}return Zf(n,a,l,c,m)}function wv(n,a,l,c){var m=c.children,g=n!==null?n.memoizedState:null;if(n===null&&a.stateNode===null&&(a.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),c.mode==="hidden"){if((a.flags&128)!==0){if(g=g!==null?g.baseLanes|l:l,n!==null){for(c=a.child=n.child,m=0;c!==null;)m=m|c.lanes|c.childLanes,c=c.sibling;c=m&~g}else c=0,a.child=null;return Sv(n,a,g,l,c)}if((l&536870912)!==0)a.memoizedState={baseLanes:0,cachePool:null},n!==null&&iu(a,g!==null?g.cachePool:null),g!==null?Ny(a,g):wf(),Cy(a);else return c=a.lanes=536870912,Sv(n,a,g!==null?g.baseLanes|l:l,l,c)}else g!==null?(iu(a,g.cachePool),Ny(a,g),za(),a.memoizedState=null):(n!==null&&iu(a,null),wf(),za());return sn(n,a,m,l),a.child}function To(n,a){return n!==null&&n.tag===22||a.stateNode!==null||(a.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),a.sibling}function Sv(n,a,l,c,m){var g=pf();return g=g===null?null:{parent:Rt._currentValue,pool:g},a.memoizedState={baseLanes:l,cachePool:g},n!==null&&iu(a,null),wf(),Cy(a),n!==null&&ll(n,a,c,!0),a.childLanes=m,null}function wu(n,a){return a=Eu({mode:a.mode,children:a.children},n.mode),a.ref=n.ref,n.child=a,a.return=n,a}function Ev(n,a,l){return xi(a,n.child,null,l),n=wu(a,a.pendingProps),n.flags|=2,$n(a),a.memoizedState=null,n}function GC(n,a,l){var c=a.pendingProps,m=(a.flags&128)!==0;if(a.flags&=-129,n===null){if(qe){if(c.mode==="hidden")return n=wu(a,c),a.lanes=536870912,To(null,n);if(Ef(a),(n=pt)?(n=Mb(n,cr),n=n!==null&&n.data==="&"?n:null,n!==null&&(a.memoizedState={dehydrated:n,treeContext:ja!==null?{id:Dr,overflow:Rr}:null,retryLane:536870912,hydrationErrors:null},l=ly(n),l.return=a,a.child=l,ln=a,pt=null)):n=null,n===null)throw Aa(a);return a.lanes=536870912,null}return wu(a,c)}var g=n.memoizedState;if(g!==null){var w=g.dehydrated;if(Ef(a),m)if(a.flags&256)a.flags&=-257,a=Ev(n,a,l);else if(a.memoizedState!==null)a.child=n.child,a.flags|=128,a=null;else throw Error(i(558));else if(zt||ll(n,a,l,!1),m=(l&n.childLanes)!==0,zt||m){if(c=lt,c!==null&&(w=nr(c,l),w!==0&&w!==g.retryLane))throw g.retryLane=w,fi(n,w),Rn(c,n,w),qf;Ru(),a=Ev(n,a,l)}else n=g.treeContext,pt=fr(w.nextSibling),ln=a,qe=!0,ka=null,cr=!1,n!==null&&uy(a,n),a=wu(a,c),a.flags|=4096;return a}return n=Wr(n.child,{mode:c.mode,children:c.children}),n.ref=a.ref,a.child=n,n.return=a,n}function Su(n,a){var l=a.ref;if(l===null)n!==null&&n.ref!==null&&(a.flags|=4194816);else{if(typeof l!="function"&&typeof l!="object")throw Error(i(284));(n===null||n.ref!==l)&&(a.flags|=4194816)}}function Zf(n,a,l,c,m){return gi(a),l=Cf(n,a,l,c,void 0,m),c=jf(),n!==null&&!zt?(kf(n,a,m),ia(n,a,m)):(qe&&c&&lf(a),a.flags|=1,sn(n,a,l,m),a.child)}function Nv(n,a,l,c,m,g){return gi(a),a.updateQueue=null,l=ky(a,c,l,m),jy(n),c=jf(),n!==null&&!zt?(kf(n,a,g),ia(n,a,g)):(qe&&c&&lf(a),a.flags|=1,sn(n,a,l,g),a.child)}function Cv(n,a,l,c,m){if(gi(a),a.stateNode===null){var g=nl,w=l.contextType;typeof w=="object"&&w!==null&&(g=on(w)),g=new l(c,g),a.memoizedState=g.state!==null&&g.state!==void 0?g.state:null,g.updater=Vf,a.stateNode=g,g._reactInternals=a,g=a.stateNode,g.props=c,g.state=a.memoizedState,g.refs={},yf(a),w=l.contextType,g.context=typeof w=="object"&&w!==null?on(w):nl,g.state=a.memoizedState,w=l.getDerivedStateFromProps,typeof w=="function"&&(Pf(a,l,w,c),g.state=a.memoizedState),typeof l.getDerivedStateFromProps=="function"||typeof g.getSnapshotBeforeUpdate=="function"||typeof g.UNSAFE_componentWillMount!="function"&&typeof g.componentWillMount!="function"||(w=g.state,typeof g.componentWillMount=="function"&&g.componentWillMount(),typeof g.UNSAFE_componentWillMount=="function"&&g.UNSAFE_componentWillMount(),w!==g.state&&Vf.enqueueReplaceState(g,g.state,null),No(a,c,g,m),Eo(),g.state=a.memoizedState),typeof g.componentDidMount=="function"&&(a.flags|=4194308),c=!0}else if(n===null){g=a.stateNode;var j=a.memoizedProps,U=Si(l,j);g.props=U;var ee=g.context,le=l.contextType;w=nl,typeof le=="object"&&le!==null&&(w=on(le));var se=l.getDerivedStateFromProps;le=typeof se=="function"||typeof g.getSnapshotBeforeUpdate=="function",j=a.pendingProps!==j,le||typeof g.UNSAFE_componentWillReceiveProps!="function"&&typeof g.componentWillReceiveProps!="function"||(j||ee!==w)&&dv(a,g,c,w),_a=!1;var te=a.memoizedState;g.state=te,No(a,c,g,m),Eo(),ee=a.memoizedState,j||te!==ee||_a?(typeof se=="function"&&(Pf(a,l,se,c),ee=a.memoizedState),(U=_a||cv(a,l,U,c,te,ee,w))?(le||typeof g.UNSAFE_componentWillMount!="function"&&typeof g.componentWillMount!="function"||(typeof g.componentWillMount=="function"&&g.componentWillMount(),typeof g.UNSAFE_componentWillMount=="function"&&g.UNSAFE_componentWillMount()),typeof g.componentDidMount=="function"&&(a.flags|=4194308)):(typeof g.componentDidMount=="function"&&(a.flags|=4194308),a.memoizedProps=c,a.memoizedState=ee),g.props=c,g.state=ee,g.context=w,c=U):(typeof g.componentDidMount=="function"&&(a.flags|=4194308),c=!1)}else{g=a.stateNode,vf(n,a),w=a.memoizedProps,le=Si(l,w),g.props=le,se=a.pendingProps,te=g.context,ee=l.contextType,U=nl,typeof ee=="object"&&ee!==null&&(U=on(ee)),j=l.getDerivedStateFromProps,(ee=typeof j=="function"||typeof g.getSnapshotBeforeUpdate=="function")||typeof g.UNSAFE_componentWillReceiveProps!="function"&&typeof g.componentWillReceiveProps!="function"||(w!==se||te!==U)&&dv(a,g,c,U),_a=!1,te=a.memoizedState,g.state=te,No(a,c,g,m),Eo();var ae=a.memoizedState;w!==se||te!==ae||_a||n!==null&&n.dependencies!==null&&ru(n.dependencies)?(typeof j=="function"&&(Pf(a,l,j,c),ae=a.memoizedState),(le=_a||cv(a,l,le,c,te,ae,U)||n!==null&&n.dependencies!==null&&ru(n.dependencies))?(ee||typeof g.UNSAFE_componentWillUpdate!="function"&&typeof g.componentWillUpdate!="function"||(typeof g.componentWillUpdate=="function"&&g.componentWillUpdate(c,ae,U),typeof g.UNSAFE_componentWillUpdate=="function"&&g.UNSAFE_componentWillUpdate(c,ae,U)),typeof g.componentDidUpdate=="function"&&(a.flags|=4),typeof g.getSnapshotBeforeUpdate=="function"&&(a.flags|=1024)):(typeof g.componentDidUpdate!="function"||w===n.memoizedProps&&te===n.memoizedState||(a.flags|=4),typeof g.getSnapshotBeforeUpdate!="function"||w===n.memoizedProps&&te===n.memoizedState||(a.flags|=1024),a.memoizedProps=c,a.memoizedState=ae),g.props=c,g.state=ae,g.context=U,c=le):(typeof g.componentDidUpdate!="function"||w===n.memoizedProps&&te===n.memoizedState||(a.flags|=4),typeof g.getSnapshotBeforeUpdate!="function"||w===n.memoizedProps&&te===n.memoizedState||(a.flags|=1024),c=!1)}return g=c,Su(n,a),c=(a.flags&128)!==0,g||c?(g=a.stateNode,l=c&&typeof l.getDerivedStateFromError!="function"?null:g.render(),a.flags|=1,n!==null&&c?(a.child=xi(a,n.child,null,m),a.child=xi(a,null,l,m)):sn(n,a,l,m),a.memoizedState=g.state,n=a.child):n=ia(n,a,m),n}function jv(n,a,l,c){return hi(),a.flags|=256,sn(n,a,l,c),a.child}var $f={dehydrated:null,treeContext:null,retryLane:0,hydrationErrors:null};function Kf(n){return{baseLanes:n,cachePool:py()}}function Gf(n,a,l){return n=n!==null?n.childLanes&~l:0,a&&(n|=Gn),n}function kv(n,a,l){var c=a.pendingProps,m=!1,g=(a.flags&128)!==0,w;if((w=g)||(w=n!==null&&n.memoizedState===null?!1:(At.current&2)!==0),w&&(m=!0,a.flags&=-129),w=(a.flags&32)!==0,a.flags&=-33,n===null){if(qe){if(m?Oa(a):za(),(n=pt)?(n=Mb(n,cr),n=n!==null&&n.data!=="&"?n:null,n!==null&&(a.memoizedState={dehydrated:n,treeContext:ja!==null?{id:Dr,overflow:Rr}:null,retryLane:536870912,hydrationErrors:null},l=ly(n),l.return=a,a.child=l,ln=a,pt=null)):n=null,n===null)throw Aa(a);return _m(n)?a.lanes=32:a.lanes=536870912,null}var j=c.children;return c=c.fallback,m?(za(),m=a.mode,j=Eu({mode:"hidden",children:j},m),c=mi(c,m,l,null),j.return=a,c.return=a,j.sibling=c,a.child=j,c=a.child,c.memoizedState=Kf(l),c.childLanes=Gf(n,w,l),a.memoizedState=$f,To(null,c)):(Oa(a),Yf(a,j))}var U=n.memoizedState;if(U!==null&&(j=U.dehydrated,j!==null)){if(g)a.flags&256?(Oa(a),a.flags&=-257,a=Xf(n,a,l)):a.memoizedState!==null?(za(),a.child=n.child,a.flags|=128,a=null):(za(),j=c.fallback,m=a.mode,c=Eu({mode:"visible",children:c.children},m),j=mi(j,m,l,null),j.flags|=2,c.return=a,j.return=a,c.sibling=j,a.child=c,xi(a,n.child,null,l),c=a.child,c.memoizedState=Kf(l),c.childLanes=Gf(n,w,l),a.memoizedState=$f,a=To(null,c));else if(Oa(a),_m(j)){if(w=j.nextSibling&&j.nextSibling.dataset,w)var ee=w.dgst;w=ee,c=Error(i(419)),c.stack="",c.digest=w,yo({value:c,source:null,stack:null}),a=Xf(n,a,l)}else if(zt||ll(n,a,l,!1),w=(l&n.childLanes)!==0,zt||w){if(w=lt,w!==null&&(c=nr(w,l),c!==0&&c!==U.retryLane))throw U.retryLane=c,fi(n,c),Rn(w,n,c),qf;Tm(j)||Ru(),a=Xf(n,a,l)}else Tm(j)?(a.flags|=192,a.child=n.child,a=null):(n=U.treeContext,pt=fr(j.nextSibling),ln=a,qe=!0,ka=null,cr=!1,n!==null&&uy(a,n),a=Yf(a,c.children),a.flags|=4096);return a}return m?(za(),j=c.fallback,m=a.mode,U=n.child,ee=U.sibling,c=Wr(U,{mode:"hidden",children:c.children}),c.subtreeFlags=U.subtreeFlags&65011712,ee!==null?j=Wr(ee,j):(j=mi(j,m,l,null),j.flags|=2),j.return=a,c.return=a,c.sibling=j,a.child=c,To(null,c),c=a.child,j=n.child.memoizedState,j===null?j=Kf(l):(m=j.cachePool,m!==null?(U=Rt._currentValue,m=m.parent!==U?{parent:U,pool:U}:m):m=py(),j={baseLanes:j.baseLanes|l,cachePool:m}),c.memoizedState=j,c.childLanes=Gf(n,w,l),a.memoizedState=$f,To(n.child,c)):(Oa(a),l=n.child,n=l.sibling,l=Wr(l,{mode:"visible",children:c.children}),l.return=a,l.sibling=null,n!==null&&(w=a.deletions,w===null?(a.deleti
vendor: 9,501 bytes, line 9
9ons=[n],a.flags|=16):w.push(n)),a.child=l,a.memoizedState=null,l)}function Yf(n,a){return a=Eu({mode:"visible",children:a},n.mode),a.return=n,n.child=a}function Eu(n,a){return n=qn(22,n,null,a),n.lanes=0,n}function Xf(n,a,l){return xi(a,n.child,null,l),n=Yf(a,a.pendingProps.children),n.flags|=2,a.memoizedState=null,n}function Av(n,a,l){n.lanes|=a;var c=n.alternate;c!==null&&(c.lanes|=a),df(n.return,a,l)}function Qf(n,a,l,c,m,g){var w=n.memoizedState;w===null?n.memoizedState={isBackwards:a,rendering:null,renderingStartTime:0,last:c,tail:l,tailMode:m,treeForkCount:g}:(w.isBackwards=a,w.rendering=null,w.renderingStartTime=0,w.last=c,w.tail=l,w.tailMode=m,w.treeForkCount=g)}function Tv(n,a,l){var c=a.pendingProps,m=c.revealOrder,g=c.tail;c=c.children;var w=At.current,j=(w&2)!==0;if(j?(w=w&1|2,a.flags|=128):w&=1,D(At,w),sn(n,a,c,l),c=qe?go:0,!j&&n!==null&&(n.flags&128)!==0)e:for(n=a.child;n!==null;){if(n.tag===13)n.memoizedState!==null&&Av(n,l,a);else if(n.tag===19)Av(n,l,a);else if(n.child!==null){n.child.return=n,n=n.child;continue}if(n===a)break e;for(;n.sibling===null;){if(n.return===null||n.return===a)break e;n=n.return}n.sibling.return=n.return,n=n.sibling}switch(m){case"forwards":for(l=a.child,m=null;l!==null;)n=l.alternate,n!==null&&du(n)===null&&(m=l),l=l.sibling;l=m,l===null?(m=a.child,a.child=null):(m=l.sibling,l.sibling=null),Qf(a,!1,m,l,g,c);break;case"backwards":case"unstable_legacy-backwards":for(l=null,m=a.child,a.child=null;m!==null;){if(n=m.alternate,n!==null&&du(n)===null){a.child=m;break}n=m.sibling,m.sibling=l,l=m,m=n}Qf(a,!0,l,null,g,c);break;case"together":Qf(a,!1,null,null,void 0,c);break;default:a.memoizedState=null}return a.child}function ia(n,a,l){if(n!==null&&(a.dependencies=n.dependencies),Ba|=a.lanes,(l&a.childLanes)===0)if(n!==null){if(ll(n,a,l,!1),(l&a.childLanes)===0)return null}else return null;if(n!==null&&a.child!==n.child)throw Error(i(153));if(a.child!==null){for(n=a.child,l=Wr(n,n.pendingProps),a.child=l,l.return=a;n.sibling!==null;)n=n.sibling,l=l.sibling=Wr(n,n.pendingProps),l.return=a;l.sibling=null}return a.child}function Jf(n,a){return(n.lanes&a)!==0?!0:(n=n.dependencies,!!(n!==null&&ru(n)))}function YC(n,a,l){switch(a.tag){case 3:Le(a,a.stateNode.containerInfo),Ta(a,Rt,n.memoizedState.cache),hi();break;case 27:case 5:Te(a);break;case 4:Le(a,a.stateNode.containerInfo);break;case 10:Ta(a,a.type,a.memoizedProps.value);break;case 31:if(a.memoizedState!==null)return a.flags|=128,Ef(a),null;break;case 13:var c=a.memoizedState;if(c!==null)return c.dehydrated!==null?(Oa(a),a.flags|=128,null):(l&a.child.childLanes)!==0?kv(n,a,l):(Oa(a),n=ia(n,a,l),n!==null?n.sibling:null);Oa(a);break;case 19:var m=(n.flags&128)!==0;if(c=(l&a.childLanes)!==0,c||(ll(n,a,l,!1),c=(l&a.childLanes)!==0),m){if(c)return Tv(n,a,l);a.flags|=128}if(m=a.memoizedState,m!==null&&(m.rendering=null,m.tail=null,m.lastEffect=null),D(At,At.current),c)break;return null;case 22:return a.lanes=0,wv(n,a,l,a.pendingProps);case 24:Ta(a,Rt,n.memoizedState.cache)}return ia(n,a,l)}function _v(n,a,l){if(n!==null)if(n.memoizedProps!==a.pendingProps)zt=!0;else{if(!Jf(n,l)&&(a.flags&128)===0)return zt=!1,YC(n,a,l);zt=(n.flags&131072)!==0}else zt=!1,qe&&(a.flags&1048576)!==0&&sy(a,go,a.index);switch(a.lanes=0,a.tag){case 16:e:{var c=a.pendingProps;if(n=vi(a.elementType),a.type=n,typeof n=="function")nf(n)?(c=Si(n,c),a.tag=1,a=Cv(null,a,n,c,l)):(a.tag=0,a=Zf(null,a,n,c,l));else{if(n!=null){var m=n.$$typeof;if(m===B){a.tag=11,a=vv(null,a,n,c,l);break e}else if(m===I){a.tag=14,a=bv(null,a,n,c,l);break e}}throw a=F(n)||n,Error(i(306,a,""))}}return a;case 0:return Zf(n,a,a.type,a.pendingProps,l);case 1:return c=a.type,m=Si(c,a.pendingProps),Cv(n,a,c,m,l);case 3:e:{if(Le(a,a.stateNode.containerInfo),n===null)throw Error(i(387));c=a.pendingProps;var g=a.memoizedState;m=g.element,vf(n,a),No(a,c,null,l);var w=a.memoizedState;if(c=w.cache,Ta(a,Rt,c),c!==g.cache&&ff(a,[Rt],l,!0),Eo(),c=w.element,g.isDehydrated)if(g={element:c,isDehydrated:!1,cache:w.cache},a.updateQueue.baseState=g,a.memoizedState=g,a.flags&256){a=jv(n,a,c,l);break e}else if(c!==m){m=or(Error(i(424)),a),yo(m),a=jv(n,a,c,l);break e}else for(n=a.stateNode.containerInfo,n.nodeType===9?n=n.body:n=n.nodeName==="HTML"?n.ownerDocument.body:n,pt=fr(n.firstChild),ln=a,qe=!0,ka=null,cr=!0,l=wy(a,null,c,l),a.child=l;l;)l.flags=l.flags&-3|4096,l=l.sibling;else{if(hi(),c===m){a=ia(n,a,l);break e}sn(n,a,c,l)}a=a.child}return a;case 26:return Su(n,a),n===null?(l=Pb(a.type,null,a.pendingProps,null))?a.memoizedState=l:qe||(l=a.type,n=a.pendingProps,c=Iu(ve.current).createElement(l),c[an]=a,c[jn]=n,un(c,l,n),Qt(c),a.stateNode=c):a.memoizedState=Pb(a.type,n.memoizedProps,a.pendingProps,n.memoizedState),null;case 27:return Te(a),n===null&&qe&&(c=a.stateNode=Fb(a.type,a.pendingProps,ve.current),ln=a,cr=!0,m=pt,Va(a.type)?(Dm=m,pt=fr(c.firstChild)):pt=m),sn(n,a,a.pendingProps.children,l),Su(n,a),n===null&&(a.flags|=4194304),a.child;case 5:return n===null&&qe&&((m=c=pt)&&(c=Cj(c,a.type,a.pendingProps,cr),c!==null?(a.stateNode=c,ln=a,pt=fr(c.firstChild),cr=!1,m=!0):m=!1),m||Aa(a)),Te(a),m=a.type,g=a.pendingProps,w=n!==null?n.memoizedProps:null,c=g.children,jm(m,g)?c=null:w!==null&&jm(m,w)&&(a.flags|=32),a.memoizedState!==null&&(m=Cf(n,a,UC,null,null,l),qo._currentValue=m),Su(n,a),sn(n,a,c,l),a.child;case 6:return n===null&&qe&&((n=l=pt)&&(l=jj(l,a.pendingProps,cr),l!==null?(a.stateNode=l,ln=a,pt=null,n=!0):n=!1),n||Aa(a)),null;case 13:return kv(n,a,l);case 4:return Le(a,a.stateNode.containerInfo),c=a.pendingProps,n===null?a.child=xi(a,null,c,l):sn(n,a,c,l),a.child;case 11:return vv(n,a,a.type,a.pendingProps,l);case 7:return sn(n,a,a.pendingProps,l),a.child;case 8:return sn(n,a,a.pendingProps.children,l),a.child;case 12:return sn(n,a,a.pendingProps.children,l),a.child;case 10:return c=a.pendingProps,Ta(a,a.type,c.value),sn(n,a,c.children,l),a.child;case 9:return m=a.type._context,c=a.pendingProps.children,gi(a),m=on(m),c=c(m),a.flags|=1,sn(n,a,c,l),a.child;case 14:return bv(n,a,a.type,a.pendingProps,l);case 15:return xv(n,a,a.type,a.pendingProps,l);case 19:return Tv(n,a,l);case 31:return GC(n,a,l);case 22:return wv(n,a,l,a.pendingProps);case 24:return gi(a),c=on(Rt),n===null?(m=pf(),m===null&&(m=lt,g=mf(),m.pooledCache=g,g.refCount++,g!==null&&(m.pooledCacheLanes|=l),m=g),a.memoizedState={parent:c,cache:m},yf(a),Ta(a,Rt,m)):((n.lanes&l)!==0&&(vf(n,a),No(a,null,null,l),Eo()),m=n.memoizedState,g=a.memoizedState,m.parent!==c?(m={parent:c,cache:c},a.memoizedState=m,a.lanes===0&&(a.memoizedState=a.updateQueue.baseState=m),Ta(a,Rt,c)):(c=g.cache,Ta(a,Rt,c),c!==m.cache&&ff(a,[Rt],l,!0))),sn(n,a,a.pendingProps.children,l),a.child;case 29:throw a.pendingProps}throw Error(i(156,a.tag))}function la(n){n.flags|=4}function Wf(n,a,l,c,m){if((a=(n.mode&32)!==0)&&(a=!1),a){if(n.flags|=16777216,(m&335544128)===m)if(n.stateNode.complete)n.flags|=8192;else if(rb())n.flags|=8192;else throw bi=ou,gf}else n.flags&=-16777217}function Dv(n,a){if(a.type!=="stylesheet"||(a.state.loading&4)!==0)n.flags&=-16777217;else if(n.flags|=16777216,!$b(a))if(rb())n.flags|=8192;else throw bi=ou,gf}function Nu(n,a){a!==null&&(n.flags|=4),n.flags&16384&&(a=n.tag!==22?hn():536870912,n.lanes|=a,vl|=a)}function _o(n,a){if(!qe)switch(n.tailMode){case"hidden":a=n.tail;for(var l=null;a!==null;)a.alternate!==null&&(l=a),a=a.sibling;l===null?n.tail=null:l.sibling=null;break;case"collapsed":l=n.tail;for(var c=null;l!==null;)l.alternate!==null&&(c=l),l=l.sibling;c===null?a||n.tail===null?n.tail=null:n.tail.sibling=null:c.sibling=null}}function gt(n){var a=n.alternate!==null&&n.alternate.child===n.child,l=0,c=0;if(a)for(var m=n.child;m!==null;)l|=m.lanes|m.childLanes,c|=m.subtreeFlags&65011712,c|=m.flags&65011712,m.return=n,m=m.sibling;else for(m=n.child;m!==null;)l|=m.lanes|m.childLanes,c|=m.subtreeFlags,c|=m.flags,m.return=n,m=m.sibling;return n.subtreeFlags|=c,n.childLanes=l,a}function XC(n,a,l){var c=a.pendingProps;switch(of(a),a.tag){case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return gt(a),null;case 1:return gt(a),null;case 3:return l=a.stateNode,c=null,n!==null&&(c=n.memoizedState.cache),a.memoizedState.cache!==c&&(a.flags|=2048),na(Rt),Ie(),l.pendingContext&&(l.context=l.pendingContext,l.pendingContext=null),(n===null||n.child===null)&&(il(a)?la(a):n===null||n.memoizedState.isDehydrated&&(a.flags&256)===0||(a.flags|=1024,uf())),gt(a),null;case 26:var m=a.type,g=a.memoizedState;return n===null?(la(a),g!==null?(gt(a),Dv(a,g)):(gt(a),Wf(a,m,null,c,l))):g?g!==n.memoizedState?(la(a),gt(a),Dv(a,g)):(gt(a),a.flags&=-16777217):(n=n.memoizedProps,n!==c&&la(a),gt(a),Wf(a,m,n,c,l)),null;case 27:if(ft(a),l=ve.current,m=a.type,n!==null&&a.stateNode!=null)n.memoizedProps!==c&&la(a);else{if(!c){if(a.stateNode===null)throw Error(i(166));return gt(a),null}n=ge.current,il(a)?cy(a):(n=Fb(m,c,l),a.stateNode=n,la(a))}return gt(a),null;case 5:if(ft(a),m=a.type,n!==null&&a.stateNode!=null)n.memoizedProps!==c&&la(a);else{if(!c){if(a.stateNode===null)throw Error(i(166));return gt(a),null}if(g=ge.current,il(a))cy(a);else{var w=Iu(ve.current);switch(g){case 1:g=w.createElementNS("http://www.w3.org/2000/svg",m);break;case 2:g=w.createElementNS("http://www.w3.org/1998/Math/MathML",m);break;default:switch(m){case"svg":g=w.createElementNS("http://www.w3.org/2000/svg",m);break;case"math":g=w.createElementNS("http://www.w3.org/1998/Math/MathML",m);break;case"script":g=w.createElement("div"),g.innerHTML="<script><\/script>",g=g.removeChild(g.firstChild);break;
vendor: 5,837 bytes, line 9
9case"select":g=typeof c.is=="string"?w.createElement("select",{is:c.is}):w.createElement("select"),c.multiple?g.multiple=!0:c.size&&(g.size=c.size);break;default:g=typeof c.is=="string"?w.createElement(m,{is:c.is}):w.createElement(m)}}g[an]=a,g[jn]=c;e:for(w=a.child;w!==null;){if(w.tag===5||w.tag===6)g.appendChild(w.stateNode);else if(w.tag!==4&&w.tag!==27&&w.child!==null){w.child.return=w,w=w.child;continue}if(w===a)break e;for(;w.sibling===null;){if(w.return===null||w.return===a)break e;w=w.return}w.sibling.return=w.return,w=w.sibling}a.stateNode=g;e:switch(un(g,m,c),m){case"button":case"input":case"select":case"textarea":c=!!c.autoFocus;break e;case"img":c=!0;break e;default:c=!1}c&&la(a)}}return gt(a),Wf(a,a.type,n===null?null:n.memoizedProps,a.pendingProps,l),null;case 6:if(n&&a.stateNode!=null)n.memoizedProps!==c&&la(a);else{if(typeof c!="string"&&a.stateNode===null)throw Error(i(166));if(n=ve.current,il(a)){if(n=a.stateNode,l=a.memoizedProps,c=null,m=ln,m!==null)switch(m.tag){case 27:case 5:c=m.memoizedProps}n[an]=a,n=!!(n.nodeValue===l||c!==null&&c.suppressHydrationWarning===!0||kb(n.nodeValue,l)),n||Aa(a,!0)}else n=Iu(n).createTextNode(c),n[an]=a,a.stateNode=n}return gt(a),null;case 31:if(l=a.memoizedState,n===null||n.memoizedState!==null){if(c=il(a),l!==null){if(n===null){if(!c)throw Error(i(318));if(n=a.memoizedState,n=n!==null?n.dehydrated:null,!n)throw Error(i(557));n[an]=a}else hi(),(a.flags&128)===0&&(a.memoizedState=null),a.flags|=4;gt(a),n=!1}else l=uf(),n!==null&&n.memoizedState!==null&&(n.memoizedState.hydrationErrors=l),n=!0;if(!n)return a.flags&256?($n(a),a):($n(a),null);if((a.flags&128)!==0)throw Error(i(558))}return gt(a),null;case 13:if(c=a.memoizedState,n===null||n.memoizedState!==null&&n.memoizedState.dehydrated!==null){if(m=il(a),c!==null&&c.dehydrated!==null){if(n===null){if(!m)throw Error(i(318));if(m=a.memoizedState,m=m!==null?m.dehydrated:null,!m)throw Error(i(317));m[an]=a}else hi(),(a.flags&128)===0&&(a.memoizedState=null),a.flags|=4;gt(a),m=!1}else m=uf(),n!==null&&n.memoizedState!==null&&(n.memoizedState.hydrationErrors=m),m=!0;if(!m)return a.flags&256?($n(a),a):($n(a),null)}return $n(a),(a.flags&128)!==0?(a.lanes=l,a):(l=c!==null,n=n!==null&&n.memoizedState!==null,l&&(c=a.child,m=null,c.alternate!==null&&c.alternate.memoizedState!==null&&c.alternate.memoizedState.cachePool!==null&&(m=c.alternate.memoizedState.cachePool.pool),g=null,c.memoizedState!==null&&c.memoizedState.cachePool!==null&&(g=c.memoizedState.cachePool.pool),g!==m&&(c.flags|=2048)),l!==n&&l&&(a.child.flags|=8192),Nu(a,a.updateQueue),gt(a),null);case 4:return Ie(),n===null&&wm(a.stateNode.containerInfo),gt(a),null;case 10:return na(a.type),gt(a),null;case 19:if(ce(At),c=a.memoizedState,c===null)return gt(a),null;if(m=(a.flags&128)!==0,g=c.rendering,g===null)if(m)_o(c,!1);else{if(St!==0||n!==null&&(n.flags&128)!==0)for(n=a.child;n!==null;){if(g=du(n),g!==null){for(a.flags|=128,_o(c,!1),n=g.updateQueue,a.updateQueue=n,Nu(a,n),a.subtreeFlags=0,n=l,l=a.child;l!==null;)iy(l,n),l=l.sibling;return D(At,At.current&1|2),qe&&ea(a,c.treeForkCount),a.child}n=n.sibling}c.tail!==null&&fe()>Tu&&(a.flags|=128,m=!0,_o(c,!1),a.lanes=4194304)}else{if(!m)if(n=du(g),n!==null){if(a.flags|=128,m=!0,n=n.updateQueue,a.updateQueue=n,Nu(a,n),_o(c,!0),c.tail===null&&c.tailMode==="hidden"&&!g.alternate&&!qe)return gt(a),null}else 2*fe()-c.renderingStartTime>Tu&&l!==536870912&&(a.flags|=128,m=!0,_o(c,!1),a.lanes=4194304);c.isBackwards?(g.sibling=a.child,a.child=g):(n=c.last,n!==null?n.sibling=g:a.child=g,c.last=g)}return c.tail!==null?(n=c.tail,c.rendering=n,c.tail=n.sibling,c.renderingStartTime=fe(),n.sibling=null,l=At.current,D(At,m?l&1|2:l&1),qe&&ea(a,c.treeForkCount),n):(gt(a),null);case 22:case 23:return $n(a),Sf(),c=a.memoizedState!==null,n!==null?n.memoizedState!==null!==c&&(a.flags|=8192):c&&(a.flags|=8192),c?(l&536870912)!==0&&(a.flags&128)===0&&(gt(a),a.subtreeFlags&6&&(a.flags|=8192)):gt(a),l=a.updateQueue,l!==null&&Nu(a,l.retryQueue),l=null,n!==null&&n.memoizedState!==null&&n.memoizedState.cachePool!==null&&(l=n.memoizedState.cachePool.pool),c=null,a.memoizedState!==null&&a.memoizedState.cachePool!==null&&(c=a.memoizedState.cachePool.pool),c!==l&&(a.flags|=2048),n!==null&&ce(yi),null;case 24:return l=null,n!==null&&(l=n.memoizedState.cache),a.memoizedState.cache!==l&&(a.flags|=2048),na(Rt),gt(a),null;case 25:return null;case 30:return null}throw Error(i(156,a.tag))}function QC(n,a){switch(of(a),a.tag){case 1:return n=a.flags,n&65536?(a.flags=n&-65537|128,a):null;case 3:return na(Rt),Ie(),n=a.flags,(n&65536)!==0&&(n&128)===0?(a.flags=n&-65537|128,a):null;case 26:case 27:case 5:return ft(a),null;case 31:if(a.memoizedState!==null){if($n(a),a.alternate===null)throw Error(i(340));hi()}return n=a.flags,n&65536?(a.flags=n&-65537|128,a):null;case 13:if($n(a),n=a.memoizedState,n!==null&&n.dehydrated!==null){if(a.alternate===null)throw Error(i(340));hi()}return n=a.flags,n&65536?(a.flags=n&-65537|128,a):null;case 19:return ce(At),null;case 4:return Ie(),null;case 10:return na(a.type),null;case 22:case 23:return $n(a),Sf(),n!==null&&ce(yi),n=a.flags,n&65536?(a.flags=n&-65537|128,a):null;case 24:return na(Rt),null;case 25:return null;default:return null}}function Rv(n,a){switch(of(a),a.tag){case 3:na(Rt),Ie();break;case 26:case 27:case 5:ft(a);break;case 4:Ie();break;case 31:a.memoizedState!==null&&$n(a);break;case 13:$n(a);break;case 19:ce(At);break;case 10:na(a.type);break;case 22:case 23:$n(a),Sf(),n!==null&&ce(yi);break;case 24:na(Rt)}}function Do(n,a){try{var l=a.updateQueue,c=l!==null?l.lastEffect:null;if(c!==null){var m=c.next;l=m;do{if((l.tag&n)===n){c=void 0;var g=l.create,w=l.inst;c=g(),w.destroy=c}l=l.next}while(l!==m)}}catch(j){tt(a,a.return,j)}}function Ma(n,a,l){try{var c=a.updateQueue,m=c!==null?c.lastEffect:null;if(m!==null){var g=m.next;c=g;
vendor: 18,696 bytes, line 9
9do{if((c.tag&n)===n){var w=c.inst,j=w.destroy;if(j!==void 0){w.destroy=void 0,m=a;var U=l,ee=j;try{ee()}catch(le){tt(m,U,le)}}}c=c.next}while(c!==g)}}catch(le){tt(a,a.return,le)}}function Ov(n){var a=n.updateQueue;if(a!==null){var l=n.stateNode;try{Ey(a,l)}catch(c){tt(n,n.return,c)}}}function zv(n,a,l){l.props=Si(n.type,n.memoizedProps),l.state=n.memoizedState;try{l.componentWillUnmount()}catch(c){tt(n,a,c)}}function Ro(n,a){try{var l=n.ref;if(l!==null){switch(n.tag){case 26:case 27:case 5:var c=n.stateNode;break;case 30:c=n.stateNode;break;default:c=n.stateNode}typeof l=="function"?n.refCleanup=l(c):l.current=c}}catch(m){tt(n,a,m)}}function Or(n,a){var l=n.ref,c=n.refCleanup;if(l!==null)if(typeof c=="function")try{c()}catch(m){tt(n,a,m)}finally{n.refCleanup=null,n=n.alternate,n!=null&&(n.refCleanup=null)}else if(typeof l=="function")try{l(null)}catch(m){tt(n,a,m)}else l.current=null}function Mv(n){var a=n.type,l=n.memoizedProps,c=n.stateNode;try{e:switch(a){case"button":case"input":case"select":case"textarea":l.autoFocus&&c.focus();break e;case"img":l.src?c.src=l.src:l.srcSet&&(c.srcset=l.srcSet)}}catch(m){tt(n,n.return,m)}}function em(n,a,l){try{var c=n.stateNode;bj(c,n.type,l,a),c[jn]=a}catch(m){tt(n,n.return,m)}}function Lv(n){return n.tag===5||n.tag===3||n.tag===26||n.tag===27&&Va(n.type)||n.tag===4}function tm(n){e:for(;;){for(;n.sibling===null;){if(n.return===null||Lv(n.return))return null;n=n.return}for(n.sibling.return=n.return,n=n.sibling;n.tag!==5&&n.tag!==6&&n.tag!==18;){if(n.tag===27&&Va(n.type)||n.flags&2||n.child===null||n.tag===4)continue e;n.child.return=n,n=n.child}if(!(n.flags&2))return n.stateNode}}function nm(n,a,l){var c=n.tag;if(c===5||c===6)n=n.stateNode,a?(l.nodeType===9?l.body:l.nodeName==="HTML"?l.ownerDocument.body:l).insertBefore(n,a):(a=l.nodeType===9?l.body:l.nodeName==="HTML"?l.ownerDocument.body:l,a.appendChild(n),l=l._reactRootContainer,l!=null||a.onclick!==null||(a.onclick=Qr));else if(c!==4&&(c===27&&Va(n.type)&&(l=n.stateNode,a=null),n=n.child,n!==null))for(nm(n,a,l),n=n.sibling;n!==null;)nm(n,a,l),n=n.sibling}function Cu(n,a,l){var c=n.tag;if(c===5||c===6)n=n.stateNode,a?l.insertBefore(n,a):l.appendChild(n);else if(c!==4&&(c===27&&Va(n.type)&&(l=n.stateNode),n=n.child,n!==null))for(Cu(n,a,l),n=n.sibling;n!==null;)Cu(n,a,l),n=n.sibling}function Bv(n){var a=n.stateNode,l=n.memoizedProps;try{for(var c=n.type,m=a.attributes;m.length;)a.removeAttributeNode(m[0]);un(a,c,l),a[an]=n,a[jn]=l}catch(g){tt(n,n.return,g)}}var oa=!1,Mt=!1,rm=!1,Fv=typeof WeakSet=="function"?WeakSet:Set,Jt=null;function JC(n,a){if(n=n.containerInfo,Nm=$u,n=Xg(n),Yd(n)){if("selectionStart"in n)var l={start:n.selectionStart,end:n.selectionEnd};else e:{l=(l=n.ownerDocument)&&l.defaultView||window;var c=l.getSelection&&l.getSelection();if(c&&c.rangeCount!==0){l=c.anchorNode;var m=c.anchorOffset,g=c.focusNode;c=c.focusOffset;try{l.nodeType,g.nodeType}catch{l=null;break e}var w=0,j=-1,U=-1,ee=0,le=0,se=n,te=null;t:for(;;){for(var ae;se!==l||m!==0&&se.nodeType!==3||(j=w+m),se!==g||c!==0&&se.nodeType!==3||(U=w+c),se.nodeType===3&&(w+=se.nodeValue.length),(ae=se.firstChild)!==null;)te=se,se=ae;for(;;){if(se===n)break t;if(te===l&&++ee===m&&(j=w),te===g&&++le===c&&(U=w),(ae=se.nextSibling)!==null)break;se=te,te=se.parentNode}se=ae}l=j===-1||U===-1?null:{start:j,end:U}}else l=null}l=l||{start:0,end:0}}else l=null;for(Cm={focusedElem:n,selectionRange:l},$u=!1,Jt=a;Jt!==null;)if(a=Jt,n=a.child,(a.subtreeFlags&1028)!==0&&n!==null)n.return=a,Jt=n;else for(;Jt!==null;){switch(a=Jt,g=a.alternate,n=a.flags,a.tag){case 0:if((n&4)!==0&&(n=a.updateQueue,n=n!==null?n.events:null,n!==null))for(l=0;l<n.length;l++)m=n[l],m.ref.impl=m.nextImpl;break;case 11:case 15:break;case 1:if((n&1024)!==0&&g!==null){n=void 0,l=a,m=g.memoizedProps,g=g.memoizedState,c=l.stateNode;try{var xe=Si(l.type,m);n=c.getSnapshotBeforeUpdate(xe,g),c.__reactInternalSnapshotBeforeUpdate=n}catch(Ae){tt(l,l.return,Ae)}}break;case 3:if((n&1024)!==0){if(n=a.stateNode.containerInfo,l=n.nodeType,l===9)Am(n);else if(l===1)switch(n.nodeName){case"HEAD":case"HTML":case"BODY":Am(n);break;default:n.textContent=""}}break;case 5:case 26:case 27:case 6:case 4:case 17:break;default:if((n&1024)!==0)throw Error(i(163))}if(n=a.sibling,n!==null){n.return=a.return,Jt=n;break}Jt=a.return}}function Iv(n,a,l){var c=l.flags;switch(l.tag){case 0:case 11:case 15:ua(n,l),c&4&&Do(5,l);break;case 1:if(ua(n,l),c&4)if(n=l.stateNode,a===null)try{n.componentDidMount()}catch(w){tt(l,l.return,w)}else{var m=Si(l.type,a.memoizedProps);a=a.memoizedState;try{n.componentDidUpdate(m,a,n.__reactInternalSnapshotBeforeUpdate)}catch(w){tt(l,l.return,w)}}c&64&&Ov(l),c&512&&Ro(l,l.return);break;case 3:if(ua(n,l),c&64&&(n=l.updateQueue,n!==null)){if(a=null,l.child!==null)switch(l.child.tag){case 27:case 5:a=l.child.stateNode;break;case 1:a=l.child.stateNode}try{Ey(n,a)}catch(w){tt(l,l.return,w)}}break;case 27:a===null&&c&4&&Bv(l);case 26:case 5:ua(n,l),a===null&&c&4&&Mv(l),c&512&&Ro(l,l.return);break;case 12:ua(n,l);break;case 31:ua(n,l),c&4&&Vv(n,l);break;case 13:ua(n,l),c&4&&Hv(n,l),c&64&&(n=l.memoizedState,n!==null&&(n=n.dehydrated,n!==null&&(l=oj.bind(null,l),kj(n,l))));break;case 22:if(c=l.memoizedState!==null||oa,!c){a=a!==null&&a.memoizedState!==null||Mt,m=oa;var g=Mt;oa=c,(Mt=a)&&!g?ca(n,l,(l.subtreeFlags&8772)!==0):ua(n,l),oa=m,Mt=g}break;case 30:break;default:ua(n,l)}}function Uv(n){var a=n.alternate;a!==null&&(n.alternate=null,Uv(a)),n.child=null,n.deletions=null,n.sibling=null,n.tag===5&&(a=n.stateNode,a!==null&&Rd(a)),n.stateNode=null,n.return=null,n.dependencies=null,n.memoizedProps=null,n.memoizedState=null,n.pendingProps=null,n.stateNode=null,n.updateQueue=null}var yt=null,An=!1;function sa(n,a,l){for(l=l.child;l!==null;)Pv(n,a,l),l=l.sibling}function Pv(n,a,l){if(ht&&typeof ht.onCommitFiberUnmount=="function")try{ht.onCommitFiberUnmount(Vt,l)}catch{}switch(l.tag){case 26:Mt||Or(l,a),sa(n,a,l),l.memoizedState?l.memoizedState.count--:l.stateNode&&(l=l.stateNode,l.parentNode.removeChild(l));break;case 27:Mt||Or(l,a);var c=yt,m=An;Va(l.type)&&(yt=l.stateNode,An=!1),sa(n,a,l),Po(l.stateNode),yt=c,An=m;break;case 5:Mt||Or(l,a);case 6:if(c=yt,m=An,yt=null,sa(n,a,l),yt=c,An=m,yt!==null)if(An)try{(yt.nodeType===9?yt.body:yt.nodeName==="HTML"?yt.ownerDocument.body:yt).removeChild(l.stateNode)}catch(g){tt(l,a,g)}else try{yt.removeChild(l.stateNode)}catch(g){tt(l,a,g)}break;case 18:yt!==null&&(An?(n=yt,Ob(n.nodeType===9?n.body:n.nodeName==="HTML"?n.ownerDocument.body:n,l.stateNode),jl(n)):Ob(yt,l.stateNode));break;case 4:c=yt,m=An,yt=l.stateNode.containerInfo,An=!0,sa(n,a,l),yt=c,An=m;break;case 0:case 11:case 14:case 15:Ma(2,l,a),Mt||Ma(4,l,a),sa(n,a,l);break;case 1:Mt||(Or(l,a),c=l.stateNode,typeof c.componentWillUnmount=="function"&&zv(l,a,c)),sa(n,a,l);break;case 21:sa(n,a,l);break;case 22:Mt=(c=Mt)||l.memoizedState!==null,sa(n,a,l),Mt=c;break;default:sa(n,a,l)}}function Vv(n,a){if(a.memoizedState===null&&(n=a.alternate,n!==null&&(n=n.memoizedState,n!==null))){n=n.dehydrated;try{jl(n)}catch(l){tt(a,a.return,l)}}}function Hv(n,a){if(a.memoizedState===null&&(n=a.alternate,n!==null&&(n=n.memoizedState,n!==null&&(n=n.dehydrated,n!==null))))try{jl(n)}catch(l){tt(a,a.return,l)}}function WC(n){switch(n.tag){case 31:case 13:case 19:var a=n.stateNode;return a===null&&(a=n.stateNode=new Fv),a;case 22:return n=n.stateNode,a=n._retryCache,a===null&&(a=n._retryCache=new Fv),a;default:throw Error(i(435,n.tag))}}function ju(n,a){var l=WC(n);a.forEach(function(c){if(!l.has(c)){l.add(c);var m=sj.bind(null,n,c);c.then(m,m)}})}function Tn(n,a){var l=a.deletions;if(l!==null)for(var c=0;c<l.length;c++){var m=l[c],g=n,w=a,j=w;e:for(;j!==null;){switch(j.tag){case 27:if(Va(j.type)){yt=j.stateNode,An=!1;break e}break;case 5:yt=j.stateNode,An=!1;break e;case 3:case 4:yt=j.stateNode.containerInfo,An=!0;break e}j=j.return}if(yt===null)throw Error(i(160));Pv(g,w,m),yt=null,An=!1,g=m.alternate,g!==null&&(g.return=null),m.return=null}if(a.subtreeFlags&13886)for(a=a.child;a!==null;)qv(a,n),a=a.sibling}var Er=null;function qv(n,a){var l=n.alternate,c=n.flags;switch(n.tag){case 0:case 11:case 14:case 15:Tn(a,n),_n(n),c&4&&(Ma(3,n,n.return),Do(3,n),Ma(5,n,n.return));break;case 1:Tn(a,n),_n(n),c&512&&(Mt||l===null||Or(l,l.return)),c&64&&oa&&(n=n.updateQueue,n!==null&&(c=n.callbacks,c!==null&&(l=n.shared.hiddenCallbacks,n.shared.hiddenCallbacks=l===null?c:l.concat(c))));break;case 26:var m=Er;if(Tn(a,n),_n(n),c&512&&(Mt||l===null||Or(l,l.return)),c&4){var g=l!==null?l.memoizedState:null;if(c=n.memoizedState,l===null)if(c===null)if(n.stateNode===null){e:{c=n.type,l=n.memoizedProps,m=m.ownerDocument||m;t:switch(c){case"title":g=m.getElementsByTagName("title")[0],(!g||g[ao]||g[an]||g.namespaceURI==="http://www.w3.org/2000/svg"||g.hasAttribute("itemprop"))&&(g=m.createElement(c),m.head.insertBefore(g,m.querySelector("head > title"))),un(g,c,l),g[an]=n,Qt(g),c=g;break e;case"link":var w=qb("link","href",m).get(c+(l.href||""));if(w){for(var j=0;j<w.length;j++)if(g=w[j],g.getAttribute("href")===(l.href==null||l.href===""?null:l.href)&&g.getAttribute("rel")===(l.rel==null?null:l.rel)&&g.getAttribute("title")===(l.title==null?null:l.title)&&g.getAttribute("crossorigin")===(l.crossOrigin==null?null:l.crossOrigin)){w.splice(j,1);break t}}g=m.createElement(c),un(g,c,l),m.head.appendChild(g);break;case"meta":if(w=qb("meta","content",m).get(c+(l.content||""))){for(j=0;j<w.length;j++)if(g=w[j],g.getAttribute("content")===(l.content==null?null:""+l.content)&&g.getAttribute("name")===(l.name==null?null:l.name)&&g.getAttribute("property")===(l.property==null?null:l.property)&&g.getAttribute("http-equiv")===(l.httpEquiv==null?null:l.httpEquiv)&&g.getAttribute("charset")===(l.charSet==null?null:l.charSet)){w.splice(j,1);break t}}g=m.createElement(c),un(g,c,l),m.head.appendChild(g);break;default:throw Error(i(468,c))}g[an]=n,Qt(g),c=g}n.stateNode=c}else Zb(m,n.type,n.stateNode);else n.stateNode=Hb(m,c,n.memoizedProps);else g!==c?(g===null?l.stateNode!==null&&(l=l.stateNode,l.parentNode.removeChild(l)):g.count--,c===null?Zb(m,n.type,n.stateNode):Hb(m,c,n.memoizedProps)):c===null&&n.stateNode!==null&&em(n,n.memoizedProps,l.memoizedProps)}break;case 27:Tn(a,n),_n(n),c&512&&(Mt||l===null||Or(l,l.return)),l!==null&&c&4&&em(n,n.memoizedProps,l.memoizedProps);break;case 5:if(Tn(a,n),_n(n),c&512&&(Mt||l===null||Or(l,l.return)),n.flags&32){m=n.stateNode;try{Yi(m,"")}catch(xe){tt(n,n.return,xe)}}c&4&&n.stateNode!=null&&(m=n.memoizedProps,em(n,m,l!==null?l.memoizedProps:m)),c&1024&&(rm=!0);break;case 6:if(Tn(a,n),_n(n),c&4){if(n.stateNode===null)throw Error(i(162));c=n.memoizedProps,l=n.stateNode;try{l.nodeValue=c}catch(xe){tt(n,n.return,xe)}}break;case 3:if(Vu=null,m=Er,Er=Uu(a.containerInfo),Tn(a,n),Er=m,_n(n),c&4&&l!==null&&l.memoizedState.isDehydrated)try{jl(a.containerInfo)}catch(xe){tt(n,n.return,xe)}rm&&(rm=!1,Zv(n));break;case 4:c=Er,Er=Uu(n.stateNode.containerInfo),Tn(a,n),_n(n),Er=c;break;case 12:Tn(a,n),_n(n);break;case 31:Tn(a,n),_n(n),c&4&&(c=n.updateQueue,c!==null&&(n.updateQueue=null,ju(n,c)));break;case 13:Tn(a,n),_n(n),n.child.flags&8192&&n.memoizedState!==null!=(l!==null&&l.memoizedState!==null)&&(Au=fe()),c&4&&(c=n.updateQueue,c!==null&&(n.updateQueue=null,ju(n,c)));break;case 22:m=n.memoizedState!==null;var U=l!==null&&l.memoizedState!==null,ee=oa,le=Mt;if(oa=ee||m,Mt=le||U,Tn(a,n),Mt=le,oa=ee,_n(n),c&8192)e:for(a=n.stateNode,a._visibility=m?a._visibility&-2:a._visibility|1,m&&(l===null||U||oa||Mt||Ei(n)),l=null,a=n;;){if(a.tag===5||a.tag===26){if(l===null){U=l=a;try{if(g=U.stateNode,m)w=g.style,typeof w.setProperty=="function"?w.setProperty("display","none","important"):w.display="none";else{j=U.stateNode;var se=U.memoizedProps.style,te=se!=null&&se.hasOwnProperty("display")?se.display:null;j.style.display=te==null||typeof te=="boolean"?"":(""+te).trim()}}catch(xe){tt(U,U.return,xe)}}}else if(a.tag===6){if(l===null){U=a;try{U.stateNode.nodeValue=m?"":U.memoizedProps}catch(xe){tt(U,U.return,xe)}}}else if(a.tag===18){if(l===null){U=a;try{var ae=U.stateNode;m?zb(ae,!0):zb(U.stateNode,!1)}catch(xe){tt(U,U.return,xe)}}}else if((a.tag!==22&&a.tag!==23||a.memoizedState===null||a===n)&&a.child!==null){a.child.return=a,a=a.child;continue}if(a===n)break e;for(;a.sibling===null;){if(a.return===null||a.return===n)break e;l===a&&(l=null),a=a.return}l===a&&(l=null),a.sibling.return=a.return,a=a.sibling}c&4&&(c=n.updateQueue,c!==null&&(l=c.retryQueue,l!==null&&(c.retryQueue=null,ju(n,l))));break;case 19:Tn(a,n),_n(n),c&4&&(c=n.updateQueue,c!==null&&(n.updateQueue=null,ju(n,c)));break;case 30:break;case 21:break;default:Tn(a,n),_n(n)}}function _n(n){var a=n.flags;if(a&2){try{for(var l,c=n.return;c!==null;){if(Lv(c)){l=c;break}c=c.return}if(l==null)throw Error(i(160));switch(l.tag){case 27:var m=l.stateNode,g=tm(n);Cu(n,g,m);break;case 5:var w=l.stateNode;l.flags&32&&(Yi(w,""),l.flags&=-33);var j=tm(n);Cu(n,j,w);break;case 3:case 4:var U=l.stateNode.containerInfo,ee=tm(n);nm(n,ee,U);break;default:throw Error(i(161))}}catch(le){tt(n,n.return,le)}n.flags&=-3}a&4096&&(n.flags&=-4097)}function Zv(n){if(n.subtreeFlags&1024)for(n=n.child;n!==null;){var a=n;Zv(a),a.tag===5&&a.flags&1024&&a.stateNode.reset(),n=n.sibling}}function ua(n,a){if(a.subtreeFlags&8772)for(a=a.child;a!==null;)Iv(n,a.alternate,a),a=a.sibling}function Ei(n){for(n=n.child;n!==null;){var a=n;switch(a.tag){case 0:case 11:case 14:case 15:Ma(4,a,a.return),Ei(a);break;case 1:Or(a,a.return);var l=a.stateNode;typeof l.componentWillUnmount=="function"&&zv(a,a.return,l),Ei(a);break;case 27:Po(a.stateNode);case 26:case 5:Or(a,a.return),Ei(a);break;case 22:a.memoizedState===null&&Ei(a);break;case 30:Ei(a);break;default:Ei(a)}n=n.sibling}}function ca(n,a,l){for(l=l&&(a.subtreeFlags&8772)!==0,a=a.child;a!==null;){var c=a.alternate,m=n,g=a,w=g.flags;switch(g.tag){case 0:case 11:case 15:ca(m,g,l),Do(4,g);break;case 1:if(ca(m,g,l),c=g,m=c.stateNode,typeof m.componentDidMount=="function")try{m.componentDidMount()}catch(ee){tt(c,c.return,ee)}if(c=g,m=c.updateQueue,m!==null){var j=c.stateNode;try{var U=m.shared.hiddenCallbacks;if(U!==null)for(m.shared.hiddenCallbacks=null,m=0;m<U.length;m++)Sy(U[m],j)}catch(ee){tt(c,c.return,ee)}}l&&w&64&&Ov(g),Ro(g,g.return);break;case 27:Bv(g);case 26:case 5:ca(m,g,l),l&&c===null&&w&4&&Mv(g),Ro(g,g.return);break;case 12:ca(m,g,l);break;case 31:ca(m,g,l),l&&w&4&&Vv(m,g);break;case 13:ca(m,g,l),l&&w&4&&Hv(m,g);break;case 22:g.memoizedState===null&&ca(m,g,l),Ro(g,g.return);break;case 30:break;default:ca(m,g,l)}a=a.sibling}}function am(n,a){var l=null;n!==null&&n.memoizedState!==null&&n.memoizedState.cachePool!==null&&(l=n.memoizedState.cachePool.pool),n=null,a.memoizedState!==null&&a.memoizedState.cachePool!==null&&(n=a.memoizedState.cachePool.pool),n!==l&&(n!=null&&n.refCount++,l!=null&&vo(l))}function im(n,a){n=null,a.alternate!==null&&(n=a.alternate.memoizedState.cache),a=a.memoizedState.cache,a!==n&&(a.refCount++,n!=null&&vo(n))}function Nr(n,a,l,c){if(a.subtreeFlags&10256)for(a=a.child;a!==null;)$v(n,a,l,c),a=a.sibling}function $v(n,a,l,c){var m=a.flags;switch(a.tag){case 0:case 11:case 15:Nr(n,a,l,c),m&2048&&Do(9,a);break;case 1:Nr(n,a,l,c);break;case 3:Nr(n,a,l,c),m&2048&&(n=null,a.alternate!==null&&(n=a.alternate.memoizedState.cache),a=a.memoizedState.cache,a!==n&&(a.refCount++,n!=null&&vo(n)));break;case 12:if(m&2048){Nr(n,a,l,c),n=a.stateNode;try{var g=a.memoizedProps,w=g.id,j=g.onPostCommit;typeof j=="function"&&j(w,a.alternate===null?"mount":"update",n.passiveEffectDuration,-0)}catch(U){tt(a,a.return,U)}}else Nr(n,a,l,c);break;case 31:Nr(n,a,l,c);break;case 13:Nr(n,a,l,c);break;case 23:break;case 22:g=a.stateNode,w=a.alternate,a.memoizedState!==null?g._visibility&2?Nr(n,a,l,c):Oo(n,a):g._visibility&2?Nr(n,a,l,c):(g._visibility|=2,pl(n,a,l,c,(a.subtreeFlags&10256)!==0||!1)),m&2048&&am(w,a);break;case 24:Nr(n,a,l,c),m&2048&&im(a.alternate,a);break;default:Nr(n,a,l,c)}}function pl(n,a,l,c,m){for(m=m&&((a.subtreeFlags&10256)!==0||!1),a=a.child;a!==null;){var g=n,w=a,j=l,U=c,ee=w.flags;switch(w.tag){case 0:case 11:case 15:pl(g,w,j,U,m),Do(8,w);break;case 23:break;case 22:var le=w.stateNode;w.memoizedState!==null?le._visibility&2?pl(g,w,j,U,m):Oo(g,w):(le._visibility|=2,pl(g,w,j,U,m)),m&&ee&2048&&am(w.alternate,w);break;case 24:pl(g,w,j,U,m),m&&ee&2048&&im(w.alternate,w);break;default:pl(g,w,j,U,m)}a=a.sibling}}function Oo(n,a){if(a.subtreeFlags&10256)for(a=a.child;a!==null;){var l=n,c=a,m=c.flags;switch(c.tag){case 22:Oo(l,c),m&2048&&am(c.alternate,c);break;case 24:Oo(l,c),m&2048&&im(c.alternate,c);break;default:Oo(l,c)}a=a.sibling}}var zo=8192;function gl(n,a,l){if(n.subtreeFlags&zo)for(n=n.child;n!==null;)Kv(n,a,l),n=n.sibling}function Kv(n,a,l){switch(n.tag){case 26:gl(n,a,l),n.flags&zo&&n.memoizedState!==null&&Ij(l,Er,n.memoizedState,n.memoizedProps);break;case 5:gl(n,a,l);break;case 3:case 4:var c=Er;Er=Uu(n.stateNode.containerInfo),gl(n,a,l),Er=c;break;case 22:n.memoizedState===null&&(c=n.alternate,c!==null&&c.memoizedState!==null?(c=zo,zo=16777216,gl(n,a,l),zo=c):gl(n,a,l));break;default:gl(n,a,l)}}function Gv(n){var a=n.alternate;if(a!==null&&(n=a.child,n!==null)){a.child=null;do a=n.sibling,n.sibling=null,n=a;while(n!==null)}}function Mo(n){var a=n.deletions;if((n.flags&16)!==0){if(a!==null)for(var l=0;l<a.length;l++){var c=a[l];Jt=c,Xv(c,n)}Gv(n)}if(n.subtreeFlags&10256)for(n=n.child;n!==null;)Yv(n),n=n.sibling}function Yv(n){switch(n.tag){case 0:case 11:case 15:Mo(n),n.flags&2048&&Ma(9,n,n.return);break;case 3:Mo(n);break;case 12:Mo(n);break;case 22:var a=n.stateNode;n.memoizedState!==null&&a._visibility&2&&(n.return===null||n.return.tag!==13)?(a._visibility&=-3,ku(n)):Mo(n);break;default:Mo(n)}}function ku(n){var a=n.deletions;if((n.flags&16)!==0){if(a!==null)for(var l=0;l<a.length;l++){var c=a[l];Jt=c,Xv(c,n)}Gv(n)}for(n=n.child;n!==null;){switch(a=n,a.tag){case 0:case 11:case 15:Ma(8,a,a.return),ku(a);break;case 22:l=a.stateNode,l._visibility&2&&(l._visibility&=-3,ku(a));break;default:ku(a)}n=n.sibling}}function Xv(n,a){for(;Jt!==null;){var l=Jt;switch(l.tag){case 0:case 11:case 15:Ma(8,l,a);break;case 23:case 22:if(l.memoizedState!==null&&l.memoizedState.cachePool!==null){var c=l.memoizedState.cachePool.pool;c!=null&&c.refCount++}break;case 24:vo(l.memoizedState.cache)}if(c=l.child,c!==null)c.return=l,Jt=c;else e:for(l=n;Jt!==null;){c=Jt;var m=c.sibling,g=c.return;if(Uv(c),c===l){Jt=null;break e}if(m!==null){m.return=g,Jt=m;break e}Jt=g}}}var ej={getCacheForType:function(n){var a=on(Rt),l=a.data.get(n);return l===void 0&&(l=n(),a.data.set(n,l)),l},cacheSignal:function(){return on(Rt).controller.signal}},tj=typeof WeakMap=="function"?WeakMap:Map,Je=0,lt=null,Ue=null,Ve=0,et=0,Kn=null,
vendor: 23,277 bytes, lines 9-10
9La=!1,yl=!1,lm=!1,da=0,St=0,Ba=0,Ni=0,om=0,Gn=0,vl=0,Lo=null,Dn=null,sm=!1,Au=0,Qv=0,Tu=1/0,_u=null,Fa=null,qt=0,Ia=null,bl=null,fa=0,um=0,cm=null,Jv=null,Bo=0,dm=null;function Yn(){return(Je&2)!==0&&Ve!==0?Ve&-Ve:R.T!==null?ym():wr()}function Wv(){if(Gn===0)if((Ve&536870912)===0||qe){var n=Vi;Vi<<=1,(Vi&3932160)===0&&(Vi=262144),Gn=n}else Gn=536870912;return n=Zn.current,n!==null&&(n.flags|=32),Gn}function Rn(n,a,l){(n===lt&&(et===2||et===9)||n.cancelPendingCommit!==null)&&(xl(n,0),Ua(n,Ve,Gn,!1)),tr(n,l),((Je&2)===0||n!==lt)&&(n===lt&&((Je&2)===0&&(Ni|=l),St===4&&Ua(n,Ve,Gn,!1)),zr(n))}function eb(n,a,l){if((Je&6)!==0)throw Error(i(327));var c=!l&&(a&127)===0&&(a&n.expiredLanes)===0||En(n,a),m=c?aj(n,a):mm(n,a,!0),g=c;do{if(m===0){yl&&!c&&Ua(n,a,0,!1);break}else{if(l=n.current.alternate,g&&!nj(l)){m=mm(n,a,!1),g=!1;continue}if(m===2){if(g=a,n.errorRecoveryDisabledLanes&g)var w=0;else w=n.pendingLanes&-536870913,w=w!==0?w:w&536870912?536870912:0;if(w!==0){a=w;e:{var j=n;m=Lo;var U=j.current.memoizedState.isDehydrated;if(U&&(xl(j,w).flags|=256),w=mm(j,w,!1),w!==2){if(lm&&!U){j.errorRecoveryDisabledLanes|=g,Ni|=g,m=4;break e}g=Dn,Dn=m,g!==null&&(Dn===null?Dn=g:Dn.push.apply(Dn,g))}m=w}if(g=!1,m!==2)continue}}if(m===1){xl(n,0),Ua(n,a,0,!0);break}e:{switch(c=n,g=m,g){case 0:case 1:throw Error(i(345));case 4:if((a&4194048)!==a)break;case 6:Ua(c,a,Gn,!La);break e;case 2:Dn=null;break;case 3:case 5:break;default:throw Error(i(329))}if((a&62914560)===a&&(m=Au+300-fe(),10<m)){if(Ua(c,a,Gn,!La),Xt(c,0,!0)!==0)break e;fa=a,c.timeoutHandle=Db(tb.bind(null,c,l,Dn,_u,sm,a,Gn,Ni,vl,La,g,"Throttled",-0,0),m);break e}tb(c,l,Dn,_u,sm,a,Gn,Ni,vl,La,g,null,-0,0)}}break}while(!0);zr(n)}function tb(n,a,l,c,m,g,w,j,U,ee,le,se,te,ae){if(n.timeoutHandle=-1,se=a.subtreeFlags,se&8192||(se&16785408)===16785408){se={stylesheets:null,count:0,imgCount:0,imgBytes:0,suspenseyImages:[],waitingForImages:!0,waitingForViewTransition:!1,unsuspend:Qr},Kv(a,g,se);var xe=(g&62914560)===g?Au-fe():(g&4194048)===g?Qv-fe():0;if(xe=Uj(se,xe),xe!==null){fa=g,n.cancelPendingCommit=xe(ub.bind(null,n,a,g,l,c,m,w,j,U,le,se,null,te,ae)),Ua(n,g,w,!ee);return}}ub(n,a,g,l,c,m,w,j,U)}function nj(n){for(var a=n;;){var l=a.tag;if((l===0||l===11||l===15)&&a.flags&16384&&(l=a.updateQueue,l!==null&&(l=l.stores,l!==null)))for(var c=0;c<l.length;c++){var m=l[c],g=m.getSnapshot;m=m.value;try{if(!Hn(g(),m))return!1}catch{return!1}}if(l=a.child,a.subtreeFlags&16384&&l!==null)l.return=a,a=l;else{if(a===n)break;for(;a.sibling===null;){if(a.return===null||a.return===n)return!0;a=a.return}a.sibling.return=a.return,a=a.sibling}}return!0}function Ua(n,a,l,c){a&=~om,a&=~Ni,n.suspendedLanes|=a,n.pingedLanes&=~a,c&&(n.warmLanes|=a),c=n.expirationTimes;for(var m=a;0<m;){var g=31-Ye(m),w=1<<g;c[g]=-1,m&=~w}l!==0&&xr(n,l,a)}function Du(){return(Je&6)===0?(Fo(0),!1):!0}function fm(){if(Ue!==null){if(et===0)var n=Ue.return;else n=Ue,ta=pi=null,Af(n),cl=null,xo=0,n=Ue;for(;n!==null;)Rv(n.alternate,n),n=n.return;Ue=null}}function xl(n,a){var l=n.timeoutHandle;l!==-1&&(n.timeoutHandle=-1,Sj(l)),l=n.cancelPendingCommit,l!==null&&(n.cancelPendingCommit=null,l()),fa=0,fm(),lt=n,Ue=l=Wr(n.current,null),Ve=a,et=0,Kn=null,La=!1,yl=En(n,a),lm=!1,vl=Gn=om=Ni=Ba=St=0,Dn=Lo=null,sm=!1,(a&8)!==0&&(a|=a&32);var c=n.entangledLanes;if(c!==0)for(n=n.entanglements,c&=a;0<c;){var m=31-Ye(c),g=1<<m;a|=n[m],c&=~g}return da=a,Js(),l}function nb(n,a){Oe=null,R.H=Ao,a===ul||a===lu?(a=vy(),et=3):a===gf?(a=vy(),et=4):et=a===qf?8:a!==null&&typeof a=="object"&&typeof a.then=="function"?6:1,Kn=a,Ue===null&&(St=1,xu(n,or(a,n.current)))}function rb(){var n=Zn.current;return n===null?!0:(Ve&4194048)===Ve?dr===null:(Ve&62914560)===Ve||(Ve&536870912)!==0?n===dr:!1}function ab(){var n=R.H;return R.H=Ao,n===null?Ao:n}function ib(){var n=R.A;return R.A=ej,n}function Ru(){St=4,La||(Ve&4194048)!==Ve&&Zn.current!==null||(yl=!0),(Ba&134217727)===0&&(Ni&134217727)===0||lt===null||Ua(lt,Ve,Gn,!1)}function mm(n,a,l){var c=Je;Je|=2;var m=ab(),g=ib();(lt!==n||Ve!==a)&&(_u=null,xl(n,a)),a=!1;var w=St;e:do try{if(et!==0&&Ue!==null){var j=Ue,U=Kn;switch(et){case 8:fm(),w=6;break e;case 3:case 2:case 9:case 6:Zn.current===null&&(a=!0);var ee=et;if(et=0,Kn=null,wl(n,j,U,ee),l&&yl){w=0;break e}break;default:ee=et,et=0,Kn=null,wl(n,j,U,ee)}}rj(),w=St;break}catch(le){nb(n,le)}while(!0);return a&&n.shellSuspendCounter++,ta=pi=null,Je=c,R.H=m,R.A=g,Ue===null&&(lt=null,Ve=0,Js()),w}function rj(){for(;Ue!==null;)lb(Ue)}function aj(n,a){var l=Je;Je|=2;var c=ab(),m=ib();lt!==n||Ve!==a?(_u=null,Tu=fe()+500,xl(n,a)):yl=En(n,a);e:do try{if(et!==0&&Ue!==null){a=Ue;var g=Kn;t:switch(et){case 1:et=0,Kn=null,wl(n,a,g,1);break;case 2:case 9:if(gy(g)){et=0,Kn=null,ob(a);break}a=function(){et!==2&&et!==9||lt!==n||(et=7),zr(n)},g.then(a,a);break e;case 3:et=7;break e;case 4:et=5;break e;case 7:gy(g)?(et=0,Kn=null,ob(a)):(et=0,Kn=null,wl(n,a,g,7));break;case 5:var w=null;switch(Ue.tag){case 26:w=Ue.memoizedState;case 5:case 27:var j=Ue;if(w?$b(w):j.stateNode.complete){et=0,Kn=null;var U=j.sibling;if(U!==null)Ue=U;else{var ee=j.return;ee!==null?(Ue=ee,Ou(ee)):Ue=null}break t}}et=0,Kn=null,wl(n,a,g,5);break;case 6:et=0,Kn=null,wl(n,a,g,6);break;case 8:fm(),St=6;break e;default:throw Error(i(462))}}ij();break}catch(le){nb(n,le)}while(!0);return ta=pi=null,R.H=c,R.A=m,Je=l,Ue!==null?0:(lt=null,Ve=0,Js(),St)}function ij(){for(;Ue!==null&&!J();)lb(Ue)}function lb(n){var a=_v(n.alternate,n,da);n.memoizedProps=n.pendingProps,a===null?Ou(n):Ue=a}function ob(n){var a=n,l=a.alternate;switch(a.tag){case 15:case 0:a=Nv(l,a,a.pendingProps,a.type,void 0,Ve);break;case 11:a=Nv(l,a,a.pendingProps,a.type.render,a.ref,Ve);break;case 5:Af(a);default:Rv(l,a),a=Ue=iy(a,da),a=_v(l,a,da)}n.memoizedProps=n.pendingProps,a===null?Ou(n):Ue=a}function wl(n,a,l,c){ta=pi=null,Af(a),cl=null,xo=0;var m=a.return;try{if(KC(n,m,a,l,Ve)){St=1,xu(n,or(l,n.current)),Ue=null;return}}catch(g){if(m!==null)throw Ue=m,g;St=1,xu(n,or(l,n.current)),Ue=null;return}a.flags&32768?(qe||c===1?n=!0:yl||(Ve&536870912)!==0?n=!1:(La=n=!0,(c===2||c===9||c===3||c===6)&&(c=Zn.current,c!==null&&c.tag===13&&(c.flags|=16384))),sb(a,n)):Ou(a)}function Ou(n){var a=n;do{if((a.flags&32768)!==0){sb(a,La);return}n=a.return;var l=XC(a.alternate,a,da);if(l!==null){Ue=l;return}if(a=a.sibling,a!==null){Ue=a;return}Ue=a=n}while(a!==null);St===0&&(St=5)}function sb(n,a){do{var l=QC(n.alternate,n);if(l!==null){l.flags&=32767,Ue=l;return}if(l=n.return,l!==null&&(l.flags|=32768,l.subtreeFlags=0,l.deletions=null),!a&&(n=n.sibling,n!==null)){Ue=n;return}Ue=n=l}while(n!==null);St=6,Ue=null}function ub(n,a,l,c,m,g,w,j,U){n.cancelPendingCommit=null;do zu();while(qt!==0);if((Je&6)!==0)throw Error(i(327));if(a!==null){if(a===n.current)throw Error(i(177));if(g=a.lanes|a.childLanes,g|=ef,Ht(n,l,g,w,j,U),n===lt&&(Ue=lt=null,Ve=0),bl=a,Ia=n,fa=l,um=g,cm=m,Jv=c,(a.subtreeFlags&10256)!==0||(a.flags&10256)!==0?(n.callbackNode=null,n.callbackPriority=0,uj(me,function(){return hb(),null})):(n.callbackNode=null,n.callbackPriority=0),c=(a.flags&13878)!==0,(a.subtreeFlags&13878)!==0||c){c=R.T,R.T=null,m=K.p,K.p=2,w=Je,Je|=4;try{JC(n,a,l)}finally{Je=w,K.p=m,R.T=c}}qt=1,cb(),db(),fb()}}function cb(){if(qt===1){qt=0;var n=Ia,a=bl,l=(a.flags&13878)!==0;if((a.subtreeFlags&13878)!==0||l){l=R.T,R.T=null;var c=K.p;K.p=2;var m=Je;Je|=4;try{qv(a,n);var g=Cm,w=Xg(n.containerInfo),j=g.focusedElem,U=g.selectionRange;if(w!==j&&j&&j.ownerDocument&&Yg(j.ownerDocument.documentElement,j)){if(U!==null&&Yd(j)){var ee=U.start,le=U.end;if(le===void 0&&(le=ee),"selectionStart"in j)j.selectionStart=ee,j.selectionEnd=Math.min(le,j.value.length);else{var se=j.ownerDocument||document,te=se&&se.defaultView||window;if(te.getSelection){var ae=te.getSelection(),xe=j.textContent.length,Ae=Math.min(U.start,xe),at=U.end===void 0?Ae:Math.min(U.end,xe);!ae.extend&&Ae>at&&(w=at,at=Ae,Ae=w);var Y=Gg(j,Ae),Z=Gg(j,at);if(Y&&Z&&(ae.rangeCount!==1||ae.anchorNode!==Y.node||ae.anchorOffset!==Y.offset||ae.focusNode!==Z.node||ae.focusOffset!==Z.offset)){var W=se.createRange();W.setStart(Y.node,Y.offset),ae.removeAllRanges(),Ae>at?(ae.addRange(W),ae.extend(Z.node,Z.offset)):(W.setEnd(Z.node,Z.offset),ae.addRange(W))}}}}for(se=[],ae=j;ae=ae.parentNode;)ae.nodeType===1&&se.push({element:ae,left:ae.scrollLeft,top:ae.scrollTop});for(typeof j.focus=="function"&&j.focus(),j=0;j<se.length;j++){var oe=se[j];oe.element.scrollLeft=oe.left,oe.element.scrollTop=oe.top}}$u=!!Nm,Cm=Nm=null}finally{Je=m,K.p=c,R.T=l}}n.current=a,qt=2}}function db(){if(qt===2){qt=0;var n=Ia,a=bl,l=(a.flags&8772)!==0;if((a.subtreeFlags&8772)!==0||l){l=R.T,R.T=null;var c=K.p;K.p=2;var m=Je;Je|=4;try{Iv(n,a.alternate,a)}finally{Je=m,K.p=c,R.T=l}}qt=3}}function fb(){if(qt===4||qt===3){qt=0,ie();var n=Ia,a=bl,l=fa,c=Jv;(a.subtreeFlags&10256)!==0||(a.flags&10256)!==0?qt=5:(qt=0,bl=Ia=null,mb(n,n.pendingLanes));var m=n.pendingLanes;if(m===0&&(Fa=null),Yr(l),a=a.stateNode,ht&&typeof ht.onCommitFiberRoot=="function")try{ht.onCommitFiberRoot(Vt,a,void 0,(a.current.flags&128)===128)}catch{}if(c!==null){a=R.T,m=K.p,K.p=2,R.T=null;try{for(var g=n.onRecoverableError,w=0;w<c.length;w++){var j=c[w];g(j.value,{componentStack:j.stack})}}finally{R.T=a,K.p=m}}(fa&3)!==0&&zu(),zr(n),m=n.pendingLanes,(l&261930)!==0&&(m&42)!==0?n===dm?Bo++:(Bo=0,dm=n):Bo=0,Fo(0)}}function mb(n,a){(n.pooledCacheLanes&=a)===0&&(a=n.pooledCache,a!=null&&(n.pooledCache=null,vo(a)))}function zu(){return cb(),db(),fb(),hb()}function hb(){if(qt!==5)return!1;var n=Ia,a=um;um=0;var l=Yr(fa),c=R.T,m=K.p;try{K.p=32>l?32:l,R.T=null,l=cm,cm=null;var g=Ia,w=fa;if(qt=0,bl=Ia=null,fa=0,(Je&6)!==0)throw Error(i(331));var j=Je;if(Je|=4,Yv(g.current),$v(g,g.current,w,l),Je=j,Fo(0,!1),ht&&typeof ht.onPostCommitFiberRoot=="function")try{ht.onPostCommitFiberRoot(Vt,g)}catch{}return!0}finally{K.p=m,R.T=c,mb(n,a)}}function pb(n,a,l){a=or(l,a),a=Hf(n.stateNode,a,2),n=Ra(n,a,2),n!==null&&(tr(n,2),zr(n))}function tt(n,a,l){if(n.tag===3)pb(n,n,l);else for(;a!==null;){if(a.tag===3){pb(a,n,l);break}else if(a.tag===1){var c=a.stateNode;if(typeof a.type.getDerivedStateFromError=="function"||typeof c.componentDidCatch=="function"&&(Fa===null||!Fa.has(c))){n=or(l,n),l=gv(2),c=Ra(a,l,2),c!==null&&(yv(l,c,a,n),tr(c,2),zr(c));break}}a=a.return}}function hm(n,a,l){var c=n.pingCache;if(c===null){c=n.pingCache=new tj;var m=new Set;c.set(a,m)}else m=c.get(a),m===void 0&&(m=new Set,c.set(a,m));m.has(l)||(lm=!0,m.add(l),n=lj.bind(null,n,a,l),a.then(n,n))}function lj(n,a,l){var c=n.pingCache;c!==null&&c.delete(a),n.pingedLanes|=n.suspendedLanes&l,n.warmLanes&=~l,lt===n&&(Ve&l)===l&&(St===4||St===3&&(Ve&62914560)===Ve&&300>fe()-Au?(Je&2)===0&&xl(n,0):om|=l,vl===Ve&&(vl=0)),zr(n)}function gb(n,a){a===0&&(a=hn()),n=fi(n,a),n!==null&&(tr(n,a),zr(n))}function oj(n){var a=n.memoizedState,l=0;a!==null&&(l=a.retryLane),gb(n,l)}function sj(n,a){var l=0;switch(n.tag){case 31:case 13:var c=n.stateNode,m=n.memoizedState;m!==null&&(l=m.retryLane);break;case 19:c=n.stateNode;break;case 22:c=n.stateNode._retryCache;break;default:throw Error(i(314))}c!==null&&c.delete(a),gb(n,l)}function uj(n,a){return Yt(n,a)}var Mu=null,Sl=null,pm=!1,Lu=!1,gm=!1,Pa=0;function zr(n){n!==Sl&&n.next===null&&(Sl===null?Mu=Sl=n:Sl=Sl.next=n),Lu=!0,pm||(pm=!0,dj())}function Fo(n,a){if(!gm&&Lu){gm=!0;do for(var l=!1,c=Mu;c!==null;){if(n!==0){var m=c.pendingLanes;if(m===0)var g=0;else{var w=c.suspendedLanes,j=c.pingedLanes;g=(1<<31-Ye(42|n)+1)-1,g&=m&~(w&~j),g=g&201326741?g&201326741|1:g?g|2:0}g!==0&&(l=!0,xb(c,g))}else g=Ve,g=Xt(c,c===lt?g:0,c.cancelPendingCommit!==null||c.timeoutHandle!==-1),(g&3)===0||En(c,g)||(l=!0,xb(c,g));c=c.next}while(l);gm=!1}}function cj(){yb()}function yb(){Lu=pm=!1;var n=0;Pa!==0&&wj()&&(n=Pa);for(var a=fe(),l=null,c=Mu;c!==null;){var m=c.next,g=vb(c,a);g===0?(c.next=null,l===null?Mu=m:l.next=m,m===null&&(Sl=l)):(l=c,(n!==0||(g&3)!==0)&&(Lu=!0)),c=m}qt!==0&&qt!==5||Fo(n),Pa!==0&&(Pa=0)}function vb(n,a){for(var l=n.suspendedLanes,c=n.pingedLanes,m=n.expirationTimes,g=n.pendingLanes&-62914561;0<g;){var w=31-Ye(g),j=1<<w,U=m[w];U===-1?((j&l)===0||(j&c)!==0)&&(m[w]=Nn(j,a)):U<=a&&(n.expiredLanes|=j),g&=~j}if(a=lt,l=Ve,l=Xt(n,n===a?l:0,n.cancelPendingCommit!==null||n.timeoutHandle!==-1),c=n.callbackNode,l===0||n===a&&(et===2||et===9)||n.cancelPendingCommit!==null)return c!==null&&c!==null&&P(c),n.callbackNode=null,n.callbackPriority=0;if((l&3)===0||En(n,l)){if(a=l&-l,a===n.callbackPriority)return a;switch(c!==null&&P(c),Yr(l)){case 2:case 8:l=re;break;case 32:l=me;break;case 268435456:l=De;break;default:l=me}return c=bb.bind(null,n),l=Yt(l,c),n.callbackPriority=a,n.callbackNode=l,a}return c!==null&&c!==null&&P(c),n.callbackPriority=2,n.callbackNode=null,2}function bb(n,a){if(qt!==0&&qt!==5)return n.callbackNode=null,n.callbackPriority=0,null;var l=n.callbackNode;if(zu()&&n.callbackNode!==l)return null;var c=Ve;return c=Xt(n,n===lt?c:0,n.cancelPendingCommit!==null||n.timeoutHandle!==-1),c===0?null:(eb(n,c,a),vb(n,fe()),n.callbackNode!=null&&n.callbackNode===l?bb.bind(null,n):null)}function xb(n,a){if(zu())return null;eb(n,a,!0)}function dj(){Ej(function(){(Je&6)!==0?Yt(H,cj):yb()})}function ym(){if(Pa===0){var n=ol;n===0&&(n=Pi,Pi<<=1,(Pi&261888)===0&&(Pi=256)),Pa=n}return Pa}function wb(n){return n==null||typeof n=="symbol"||typeof n=="boolean"?null:typeof n=="function"?n:qs(""+n)}function Sb(n,a){var l=a.ownerDocument.createElement("input");return l.name=a.name,l.value=a.value,n.id&&l.setAttribute("form",n.id),a.parentNode.insertBefore(l,a),n=new FormData(n),l.parentNode.removeChild(l),n}function fj(n,a,l,c,m){if(a==="submit"&&l&&l.stateNode===m){var g=wb((m[jn]||null).action),w=c.submitter;w&&(a=(a=w[jn]||null)?wb(a.formAction):w.getAttribute("formAction"),a!==null&&(g=a,w=null));var j=new Gs("action","action",null,c,m);n.push({event:j,listeners:[{instance:null,listener:function(){if(c.defaultPrevented){if(Pa!==0){var U=w?Sb(m,w):new FormData(m);Bf(l,{pending:!0,data:U,method:m.method,action:g},null,U)}}else typeof g=="function"&&(j.preventDefault(),U=w?Sb(m,w):new FormData(m),Bf(l,{pending:!0,data:U,method:m.method,action:g},g,U))},currentTarget:m}]})}}for(var vm=0;vm<Wd.length;vm++){var bm=Wd[vm],mj=bm.toLowerCase(),hj=bm[0].toUpperCase()+bm.slice(1);Sr(mj,"on"+hj)}Sr(Wg,"onAnimationEnd"),Sr(ey,"onAnimationIteration"),Sr(ty,"onAnimationStart"),Sr("dblclick","onDoubleClick"),Sr("focusin","onFocus"),Sr("focusout","onBlur"),Sr(_C,"onTransitionRun"),Sr(DC,"onTransitionStart"),Sr(RC,"onTransitionCancel"),Sr(ny,"onTransitionEnd"),Ki("onMouseEnter",["mouseout","mouseover"]),Ki("onMouseLeave",["mouseout","mouseover"]),Ki("onPointerEnter",["pointerout","pointerover"]),Ki("onPointerLeave",["pointerout","pointerover"]),si("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),si("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),si("onBeforeInput",["compositionend","keypress","textInput","paste"]),si("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),si("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),si("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var Io="abort canplay canplaythrough durationchange emptied encrypted ended error loadeddata loadedmetadata loadstart pause play playing progress ratechange resize seeked seeking stalled suspend timeupdate volumechange waiting".split(" "),pj=new Set("beforetoggle cancel close invalid load scroll scrollend toggle".split(" ").concat(Io));function Eb(n,a){a=(a&4)!==0;for(var l=0;l<n.length;l++){var c=n[l],m=c.event;c=c.listeners;e:{var g=void 0;if(a)for(var w=c.length-1;0<=w;w--){var j=c[w],U=j.instance,ee=j.currentTarget;if(j=j.listener,U!==g&&m.isPropagationStopped())break e;g=j,m.currentTarget=ee;try{g(m)}catch(le){Qs(le)}m.currentTarget=null,g=U}else for(w=0;w<c.length;w++){if(j=c[w],U=j.instance,ee=j.currentTarget,j=j.listener,U!==g&&m.isPropagationStopped())break e;g=j,m.currentTarget=ee;try{g(m)}catch(le){Qs(le)}m.currentTarget=null,g=U}}}}function Pe(n,a){var l=a[Dd];l===void 0&&(l=a[Dd]=new Set);var c=n+"__bubble";l.has(c)||(Nb(a,n,2,!1),l.add(c))}function xm(n,a,l){var c=0;a&&(c|=4),Nb(l,n,c,a)}var Bu="_reactListening"+Math.random().toString(36).slice(2);function wm(n){if(!n[Bu]){n[Bu]=!0,yg.forEach(function(l){l!=="selectionchange"&&(pj.has(l)||xm(l,!1,n),xm(l,!0,n))});var a=n.nodeType===9?n:n.ownerDocument;a===null||a[Bu]||(a[Bu]=!0,xm("selectionchange",!1,a))}}function Nb(n,a,l,c){switch(Wb(a)){case 2:var m=Hj;break;case 8:m=qj;break;default:m=Lm}l=m.bind(null,a,l,n),m=void 0,!Ud||a!=="touchstart"&&a!=="touchmove"&&a!=="wheel"||(m=!0),c?m!==void 0?n.addEventListener(a,l,{capture:!0,passive:m}):n.addEventListener(a,l,!0):m!==void 0?n.addEventListener(a,l,{passive:m}):n.addEventListener(a,l,!1)}function Sm(n,a,l,c,m){var g=c;if((a&1)===0&&(a&2)===0&&c!==null)e:for(;;){if(c===null)return;var w=c.tag;if(w===3||w===4){var j=c.stateNode.containerInfo;if(j===m)break;if(w===4)for(w=c.return;w!==null;){var U=w.tag;if((U===3||U===4)&&w.stateNode.containerInfo===m)return;w=w.return}for(;j!==null;){if(w=qi(j),w===null)return;if(U=w.tag,U===5||U===6||U===26||U===27){c=g=w;continue e}j=j.parentNode}}c=c.return}Tg(function(){var ee=g,le=Fd(l),se=[];e:{var te=ry.get(n);if(te!==void 0){var ae=Gs,xe=n;switch(n){case"keypress":if($s(l)===0)break e;case"keydown":case"keyup":ae=sC;break;case"focusin":xe="focus",ae=qd;break;case"focusout":xe="blur",ae=qd;break;case"beforeblur":case"afterblur":ae=qd;break;case"click":if(l.button===2)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":ae=Rg;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":ae=XN;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":ae=dC;break;case Wg:case ey:case ty:ae=WN;break;case ny:ae=mC;break;case"scroll":case"scrollend":ae=GN;break;case"wheel":ae=pC;break;case"copy":case"cut":case"paste":ae=tC;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":ae=zg;break;case"toggle":case"beforetoggle":ae=yC}var Ae=(a&4)!==0,at=!Ae&&(n==="scroll"||n==="scrollend"),Y=Ae?te!==null?te+"Capture":null:te;Ae=[];for(var Z=ee,W;Z!==null;){var oe=Z;if(W=oe.stateNode,oe=oe.tag,oe!==5&&oe!==26&&oe!==27||W===null||Y===null||(oe=lo(Z,Y),oe!=null&&Ae.push(Uo(Z,oe,W))),at)break;Z=Z.return}0<Ae.length&&(te=new ae(te,xe,null,l,le),se.push({event:te,listeners:Ae}))}}if((a&7)===0){e:{if(te=n==="mouseover"||n==="pointerover",ae=n==="mouseout"||n==="pointerout",te&&l!==Bd&&(xe=l.relatedTarget||l.fromElement)&&(qi(xe)||xe[Hi]))break e;if((ae||te)&&(te=le.window===le?le:(te=le.ownerDocument)?te.defaultView||te.parentWindow:window,ae?(xe=l.relatedTarget||l.toElement,ae=ee,xe=xe?qi(xe):null,xe!==null&&(at=s(xe),Ae=xe.tag,xe!==at||Ae!==5&&Ae!==27&&Ae!==6)&&(xe=null)):(ae=null,xe=ee),ae!==xe)){if(Ae=Rg,oe="onMouseLeave",Y="onMouseEnter",Z="mouse",(n==="pointerout"||n==="pointerover")&&(Ae=zg,oe="onPointerLeave",Y="onPointerEnter",Z="pointer"),at=ae==null?te:io(ae),W=xe==null?te:io(xe),te=new Ae(oe,Z+"leave",ae,l,le),te.target=at,te.relatedTarget=W,oe=null,qi(le)===ee&&(Ae=new Ae(Y,Z+"enter",xe,l,le),Ae.target=W,Ae.relatedTarget=at,oe=Ae),at=oe,ae&&xe)t:{for(Ae=gj,Y=ae,Z=xe,W=0,oe=Y;oe;oe=Ae(oe))W++;oe=0;for(var je=Z;je;je=Ae(je))oe++;for(;0<W-oe;)Y=Ae(Y),W--;for(;0<oe-W;)Z=Ae(Z),oe--;for(;W--;){if(Y===Z||Z!==null&&Y===Z.alternate){Ae=Y;break t}Y=Ae(Y),Z=Ae(Z)}Ae=null}else Ae=null;ae!==null&&Cb(se,te,ae,Ae,!1),xe!==null&&at!==null&&Cb(se,at,xe,Ae,!0)}}e:{if(te=ee?io(ee):window,ae=te.nodeName&&te.nodeName.toLowerCase(),ae==="select"||ae==="input"&&te.type==="file")var Xe=Vg;else if(Ug(te))if(Hg)Xe=kC;else{Xe=CC;var Ce=NC}else ae=te.nodeName,!ae||ae.toLowerCase()!=="input"||te.type!=="checkbox"&&te.type!=="radio"?ee&&Ld(ee.elementType)&&(Xe=Vg):Xe=jC;if(Xe&&(Xe=Xe(n,ee))){Pg(se,Xe,l,le);break e}Ce&&Ce(n,te,ee),n==="focusout"&&ee&&te.type==="number"&&ee.memoizedProps.value!=null&&Md(te,"number",te.value)}switch(Ce=ee?io(ee):window,n){case"focusin":(Ug(Ce)||Ce.contentEditable==="true")&&(Wi=Ce,Xd=ee,po=null);break;case"focusout":po=Xd=Wi=null;break;case"mousedown":Qd=!0;break;case"contextmenu":case"mouseup":case"dragend":Qd=!1,Qg(se,l,le);break;case"selectionchange":if(TC)break;case"keydown":case"keyup":Qg(se,l,le)}var ze;if($d)e:{switch(n){case"compositionstart":var He="onCompositionStart";break e;case"compositionend":He="onCompositionEnd";break e;case"compositionupdate":He="onCompositionUpdate";break e}He=void 0}else Ji?Fg(n,l)&&(He="onCompositionEnd"):n==="keydown"&&l.keyCode===229&&(He="onCompositionStart");He&&(Mg&&l.locale!=="ko"&&(Ji||He!=="onCompositionStart"?He==="onCompositionEnd"&&Ji&&(ze=_g()):(Ca=le,Pd="value"in Ca?Ca.value:Ca.textContent,Ji=!0)),Ce=Fu(ee,He),0<Ce.length&&(He=new Og(He,n,null,l,le),se.push({event:He,listeners:Ce}),ze?He.data=ze:(ze=Ig(l),ze!==null&&(He.data=ze)))),(ze=bC?xC(n,l):wC(n,l))&&(He=Fu(ee,"onBeforeInput"),0<He.length&&(Ce=new Og("onBeforeInput","beforeinput",null,l,le),se.push({event:Ce,listeners:He}),Ce.data=ze)),fj(se,n,ee,l,le)}Eb(se,a)})}function Uo(n,a,l){return{instance:n,listener:a,currentTarget:l}}function Fu(n,a){for(var l=a+"Capture",c=[];n!==null;){var m=n,g=m.stateNode;if(m=m.tag,m!==5&&m!==26&&m!==27||g===null||(m=lo(n,l),m!=null&&c.unshift(Uo(n,m,g)),m=lo(n,a),m!=null&&c.push(Uo(n,m,g))),n.tag===3)return c;n=n.return}return[]}function gj(n){if(n===null)return null;do n=n.return;while(n&&n.tag!==5&&n.tag!==27);return n||null}function Cb(n,a,l,c,m){for(var g=a._reactName,w=[];l!==null&&l!==c;){var j=l,U=j.alternate,ee=j.stateNode;if(j=j.tag,U!==null&&U===c)break;j!==5&&j!==26&&j!==27||ee===null||(U=ee,m?(ee=lo(l,g),ee!=null&&w.unshift(Uo(l,ee,U))):m||(ee=lo(l,g),ee!=null&&w.push(Uo(l,ee,U)))),l=l.return}w.length!==0&&n.push({event:a,listeners:w})}var yj=/\r\n?/g,vj=/\u0000|\uFFFD/g;function jb(n){return(typeof n=="string"?n:""+n).replace(yj,` 10`).replace(vj,"")}function kb(n,a){return a=jb(a),jb(n)===a}function rt(n,a,l,c,m,g){switch(l){case"children":typeof c=="string"?a==="body"||a==="textarea"&&c===""||Yi(n,c):(typeof c=="number"||typeof c=="bigint")&&a!=="body"&&Yi(n,""+c);break;case"className":Vs(n,"class",c);break;case"tabIndex":Vs(n,"tabindex",c);break;case"dir":case"role":case"viewBox":case"width":case"height":Vs(n,l,c);break;case"style":kg(n,c,g);break;case"data":if(a!=="object"){Vs(n,"data",c);break}case"src":case"href":if(c===""&&(a!=="a"||l!=="href")){n.removeAttribute(l);break}if(c==null||typeof c=="function"||typeof c=="symbol"||typeof c=="boolean"){n.removeAttribute(l);break}c=qs(""+c),n.setAttribute(l,c);break;case"action":case"formAction":if(typeof c=="function"){n.setAttribute(l,"javascript:throw new Error('A React form was unexpectedly submitted. If you called form.submit() manually, consider using form.requestSubmit() instead. If you\\'re trying to use event.stopPropagation() in a submit event handler, consider also calling event.preventDefault().')");break}else typeof g=="function"&&(l==="formAction"?(a!=="input"&&rt(n,a,"n
10ame",m.name,m,null),rt(n,a,"formEncType",m.formEncType,m,null),rt(n,a,"formMethod",m.formMethod,m,null),rt(n,a,"formTarget",m.formTarget,m,null)):(rt(n,a,"encType",m.encType,m,null),rt(n,a,"method",m.method,m,null),rt(n,a,"target",m.target,m,null)));if(c==null||typeof c=="symbol"||typeof c=="boolean"){n.removeAttribute(l);break}c=qs(""+c),n.setAttribute(l,c);break;case"onClick":c!=null&&(n.onclick=Qr);break;case"onScroll":c!=null&&Pe("scroll",n);break;case"onScrollEnd":c!=null&&Pe("scrollend",n);break;case"dangerouslySetInnerHTML":if(c!=null){if(typeof c!="object"||!("__html"in c))throw Error(i(61));if(l=c.__html,l!=null){if(m.children!=null)throw Error(i(60));n.innerHTML=l}}break;case"multiple":n.multiple=c&&typeof c!="function"&&typeof c!="symbol";break;case"muted":n.muted=c&&typeof c!="function"&&typeof c!="symbol";break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"defaultValue":case"defaultChecked":case"innerHTML":case"ref":break;case"autoFocus":break;case"xlinkHref":if(c==null||typeof c=="function"||typeof c=="boolean"||typeof c=="symbol"){n.removeAttribute("xlink:href");break}l=qs(""+c),n.setAttributeNS("http://www.w3.org/1999/xlink","xlink:href",l);break;case"contentEditable":case"spellCheck":case"draggable":case"value":case"autoReverse":case"externalResourcesRequired":case"focusable":case"preserveAlpha":c!=null&&typeof c!="function"&&typeof c!="symbol"?n.setAttribute(l,""+c):n.removeAttribute(l);break;case"inert":case"allowFullScreen":case"async":case"autoPlay":case"controls":case"default":case"defer":case"disabled":case"disablePictureInPicture":case"disableRemotePlayback":case"formNoValidate":case"hidden":case"loop":case"noModule":case"noValidate":case"open":case"playsInline":case"readOnly":case"required":case"reversed":case"scoped":case"seamless":case"itemScope":c&&typeof c!="function"&&typeof c!="symbol"?n.setAttribute(l,""):n.removeAttribute(l);break;case"capture":case"download":c===!0?n.setAttribute(l,""):c!==!1&&c!=null&&typeof c!="function"&&typeof c!="symbol"?n.setAttribute(l,c):n.removeAttribute(l);break;case"cols":case"rows":case"size":case"span":c!=null&&typeof c!="function"&&typeof c!="symbol"&&!isNaN(c)&&1<=c?n.setAttribute(l,c):n.removeAttribute(l);break;case"rowSpan":case"start":c==null||typeof c=="function"||typeof c=="symbol"||isNaN(c)?n.removeAttribute(l):n.setAttribute(l,c);break;case"popover":Pe("beforetoggle",n),Pe("toggle",n),Ps(n,"popover",c);break;case"xlinkActuate":Xr(n,"http://www.w3.org/1999/xlink","xlink:actuate",c);break;case"xlinkArcrole":Xr(n,"http://www.w3.org/1999/xlink","xlink:arcrole",c);break;case"xlinkRole":Xr(n,"http://www.w3.org/1999/xlink","xlink:role",c);break;case"xlinkShow":Xr(n,"http://www.w3.org/1999/xlink","xlink:show",c);break;case"xlinkTitle":Xr(n,"http://www.w3.org/1999/xlink","xlink:title",c);break;case"xlinkType":Xr(n,"http://www.w3.org/1999/xlink","xlink:type",c);break;case"xmlBase":Xr(n,"http://www.w3.org/XML/1998/namespace","xml:base",c);break;case"xmlLang":Xr(n,"http://www.w3.org/XML/1998/namespace","xml:lang",c);break;case"xmlSpace":Xr(n,"http://www.w3.org/XML/1998/namespace","xml:space",c);break;case"is":Ps(n,"is",c);break;case"innerText":case"textContent":break;default:(!(2<l.length)||l[0]!=="o"&&l[0]!=="O"||l[1]!=="n"&&l[1]!=="N")&&(l=$N.get(l)||l,Ps(n,l,c))}}function Em(n,a,l,c,m,g){switch(l){case"style":kg(n,c,g);break;case"dangerouslySetInnerHTML":if(c!=null){if(typeof c!="object"||!("__html"in c))throw Error(i(61));if(l=c.__html,l!=null){if(m.children!=null)throw Error(i(60));n.innerHTML=l}}break;case"children":typeof c=="string"?Yi(n,c):(typeof c=="number"||typeof c=="bigint")&&Yi(n,""+c);break;case"onScroll":c!=null&&Pe("scroll",n);break;case"onScrollEnd":c!=null&&Pe("scrollend",n);break;case"onClick":c!=null&&(n.onclick=Qr);break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"innerHTML":case"ref":break;case"innerText":case"textContent":break;default:if(!vg.hasOwnProperty(l))e:{if(l[0]==="o"&&l[1]==="n"&&(m=l.endsWith("Capture"),a=l.slice(2,m?l.length-7:void 0),g=n[jn]||null,g=g!=null?g[l]:null,typeof g=="function"&&n.removeEventListener(a,g,m),t
vendor: 6,202 bytes, line 10
10ypeof c=="function")){typeof g!="function"&&g!==null&&(l in n?n[l]=null:n.hasAttribute(l)&&n.removeAttribute(l)),n.addEventListener(a,c,m);break e}l in n?n[l]=c:c===!0?n.setAttribute(l,""):Ps(n,l,c)}}}function un(n,a,l){switch(a){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"img":Pe("error",n),Pe("load",n);var c=!1,m=!1,g;for(g in l)if(l.hasOwnProperty(g)){var w=l[g];if(w!=null)switch(g){case"src":c=!0;break;case"srcSet":m=!0;break;case"children":case"dangerouslySetInnerHTML":throw Error(i(137,a));default:rt(n,a,g,w,l,null)}}m&&rt(n,a,"srcSet",l.srcSet,l,null),c&&rt(n,a,"src",l.src,l,null);return;case"input":Pe("invalid",n);var j=g=w=m=null,U=null,ee=null;for(c in l)if(l.hasOwnProperty(c)){var le=l[c];if(le!=null)switch(c){case"name":m=le;break;case"type":w=le;break;case"checked":U=le;break;case"defaultChecked":ee=le;break;case"value":g=le;break;case"defaultValue":j=le;break;case"children":case"dangerouslySetInnerHTML":if(le!=null)throw Error(i(137,a));break;default:rt(n,a,c,le,l,null)}}Eg(n,g,j,U,ee,w,m,!1);return;case"select":Pe("invalid",n),c=w=g=null;for(m in l)if(l.hasOwnProperty(m)&&(j=l[m],j!=null))switch(m){case"value":g=j;break;case"defaultValue":w=j;break;case"multiple":c=j;default:rt(n,a,m,j,l,null)}a=g,l=w,n.multiple=!!c,a!=null?Gi(n,!!c,a,!1):l!=null&&Gi(n,!!c,l,!0);return;case"textarea":Pe("invalid",n),g=m=c=null;for(w in l)if(l.hasOwnProperty(w)&&(j=l[w],j!=null))switch(w){case"value":c=j;break;case"defaultValue":m=j;break;case"children":g=j;break;case"dangerouslySetInnerHTML":if(j!=null)throw Error(i(91));break;default:rt(n,a,w,j,l,null)}Cg(n,c,m,g);return;case"option":for(U in l)l.hasOwnProperty(U)&&(c=l[U],c!=null)&&(U==="selected"?n.selected=c&&typeof c!="function"&&typeof c!="symbol":rt(n,a,U,c,l,null));return;case"dialog":Pe("beforetoggle",n),Pe("toggle",n),Pe("cancel",n),Pe("close",n);break;case"iframe":case"object":Pe("load",n);break;case"video":case"audio":for(c=0;c<Io.length;c++)Pe(Io[c],n);break;case"image":Pe("error",n),Pe("load",n);break;case"details":Pe("toggle",n);break;case"embed":case"source":case"link":Pe("error",n),Pe("load",n);case"area":case"base":case"br":case"col":case"hr":case"keygen":case"meta":case"param":case"track":case"wbr":case"menuitem":for(ee in l)if(l.hasOwnProperty(ee)&&(c=l[ee],c!=null))switch(ee){case"children":case"dangerouslySetInnerHTML":throw Error(i(137,a));default:rt(n,a,ee,c,l,null)}return;default:if(Ld(a)){for(le in l)l.hasOwnProperty(le)&&(c=l[le],c!==void 0&&Em(n,a,le,c,l,void 0));return}}for(j in l)l.hasOwnProperty(j)&&(c=l[j],c!=null&&rt(n,a,j,c,l,null))}function bj(n,a,l,c){switch(a){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"input":var m=null,g=null,w=null,j=null,U=null,ee=null,le=null;for(ae in l){var se=l[ae];if(l.hasOwnProperty(ae)&&se!=null)switch(ae){case"checked":break;case"value":break;case"defaultValue":U=se;default:c.hasOwnProperty(ae)||rt(n,a,ae,null,c,se)}}for(var te in c){var ae=c[te];if(se=l[te],c.hasOwnProperty(te)&&(ae!=null||se!=null))switch(te){case"type":g=ae;break;case"name":m=ae;break;case"checked":ee=ae;break;case"defaultChecked":le=ae;break;case"value":w=ae;break;case"defaultValue":j=ae;break;case"children":case"dangerouslySetInnerHTML":if(ae!=null)throw Error(i(137,a));break;default:ae!==se&&rt(n,a,te,ae,c,se)}}zd(n,w,j,U,ee,le,g,m);return;case"select":ae=w=j=te=null;for(g in l)if(U=l[g],l.hasOwnProperty(g)&&U!=null)switch(g){case"value":break;case"multiple":ae=U;default:c.hasOwnProperty(g)||rt(n,a,g,null,c,U)}for(m in c)if(g=c[m],U=l[m],c.hasOwnProperty(m)&&(g!=null||U!=null))switch(m){case"value":te=g;break;case"defaultValue":j=g;break;case"multiple":w=g;default:g!==U&&rt(n,a,m,g,c,U)}a=j,l=w,c=ae,te!=null?Gi(n,!!l,te,!1):!!c!=!!l&&(a!=null?Gi(n,!!l,a,!0):Gi(n,!!l,l?[]:"",!1));return;case"textarea":ae=te=null;for(j in l)if(m=l[j],l.hasOwnProperty(j)&&m!=null&&!c.hasOwnProperty(j))switch(j){case"value":break;case"children":break;default:rt(n,a,j,null,c,m)}for(w in c)if(m=c[w],g=l[w],c.hasOwnProperty(w)&&(m!=null||g!=null))switch(w){case"value":te=m;break;case"defaultValue":ae=m;break;case"children":break;case"dangerouslySetInnerHTML":if(m!=null)throw Error(i(91));break;default:m!==g&&rt(n,a,w,m,c,g)}Ng(n,te,ae);return;case"option":for(var xe in l)te=l[xe],l.hasOwnProperty(xe)&&te!=null&&!c.hasOwnProperty(xe)&&(xe==="selected"?n.selected=!1:rt(n,a,xe,null,c,te));for(U in c)te=c[U],ae=l[U],c.hasOwnProperty(U)&&te!==ae&&(te!=null||ae!=null)&&(U==="selected"?n.selected=te&&typeof te!="function"&&typeof te!="symbol":rt(n,a,U,te,c,ae));return;case"img":case"link":case"area":case"base":case"br":case"col":case"embed":case"hr":case"keygen":case"meta":case"param":case"source":case"track":case"wbr":case"menuitem":for(var Ae in l)te=l[Ae],l.hasOwnProperty(Ae)&&te!=null&&!c.hasOwnProperty(Ae)&&rt(n,a,Ae,null,c,te);for(ee in c)if(te=c[ee],ae=l[ee],c.hasOwnProperty(ee)&&te!==ae&&(te!=null||ae!=null))switch(ee){case"children":case"dangerouslySetInnerHTML":if(te!=null)throw Error(i(137,a));break;default:rt(n,a,ee,te,c,ae)}return;default:if(Ld(a)){for(var at in l)te=l[at],l.hasOwnProperty(at)&&te!==void 0&&!c.hasOwnProperty(at)&&Em(n,a,at,void 0,c,te);for(le in c)te=c[le],ae=l[le],!c.hasOwnProperty(le)||te===ae||te===void 0&&ae===void 0||Em(n,a,le,te,c,ae);return}}for(var Y in l)te=l[Y],l.hasOwnProperty(Y)&&te!=null&&!c.hasOwnProperty(Y)&&rt(n,a,Y,null,c,te);for(se in c)te=c[se],ae=l[se],!c.hasOwnProperty(se)||te===ae||te==null&&ae==null||rt(n,a,se,te,c,ae)}function Ab(n){switch(n){case"css":case"script":case"font":case"img":case"image":case"input":case"link":return!0;default:return!1}}function xj(){if(typeof performance.getEntriesByType=="function"){for(var n=0,a=0,l=performance.getEntriesByType("resource"),c=0;c<l.length;c++){var m=l[c],g=m.transferSize,w=m.initiatorType,j=m.duration;if(g&&j&&Ab(w)){for(w=0,j=m.responseEnd,c+=1;c<l.length;c++){var U=l[c],ee=U.startTime;if(ee>j)break;var le=U.transferSize,se=U.initiatorType;le&&Ab(se)&&(U=U.responseEnd,w+=le*(U<j?1:(j-ee)/(U-ee)))}if(--c,a+=8*(g+w)/(m.duration/1e3),n++,10<n)break}}if(0<n)return a/n/1e6}return navigator.connection&&(n=navigator.connection.downlink,typeof n=="number")?
vendor: 8,602 bytes, line 10
10n:5}var Nm=null,Cm=null;function Iu(n){return n.nodeType===9?n:n.ownerDocument}function Tb(n){switch(n){case"http://www.w3.org/2000/svg":return 1;case"http://www.w3.org/1998/Math/MathML":return 2;default:return 0}}function _b(n,a){if(n===0)switch(a){case"svg":return 1;case"math":return 2;default:return 0}return n===1&&a==="foreignObject"?0:n}function jm(n,a){return n==="textarea"||n==="noscript"||typeof a.children=="string"||typeof a.children=="number"||typeof a.children=="bigint"||typeof a.dangerouslySetInnerHTML=="object"&&a.dangerouslySetInnerHTML!==null&&a.dangerouslySetInnerHTML.__html!=null}var km=null;function wj(){var n=window.event;return n&&n.type==="popstate"?n===km?!1:(km=n,!0):(km=null,!1)}var Db=typeof setTimeout=="function"?setTimeout:void 0,Sj=typeof clearTimeout=="function"?clearTimeout:void 0,Rb=typeof Promise=="function"?Promise:void 0,Ej=typeof queueMicrotask=="function"?queueMicrotask:typeof Rb<"u"?function(n){return Rb.resolve(null).then(n).catch(Nj)}:Db;function Nj(n){setTimeout(function(){throw n})}function Va(n){return n==="head"}function Ob(n,a){var l=a,c=0;do{var m=l.nextSibling;if(n.removeChild(l),m&&m.nodeType===8)if(l=m.data,l==="/$"||l==="/&"){if(c===0){n.removeChild(m),jl(a);return}c--}else if(l==="$"||l==="$?"||l==="$~"||l==="$!"||l==="&")c++;else if(l==="html")Po(n.ownerDocument.documentElement);else if(l==="head"){l=n.ownerDocument.head,Po(l);for(var g=l.firstChild;g;){var w=g.nextSibling,j=g.nodeName;g[ao]||j==="SCRIPT"||j==="STYLE"||j==="LINK"&&g.rel.toLowerCase()==="stylesheet"||l.removeChild(g),g=w}}else l==="body"&&Po(n.ownerDocument.body);l=m}while(l);jl(a)}function zb(n,a){var l=n;n=0;do{var c=l.nextSibling;if(l.nodeType===1?a?(l._stashedDisplay=l.style.display,l.style.display="none"):(l.style.display=l._stashedDisplay||"",l.getAttribute("style")===""&&l.removeAttribute("style")):l.nodeType===3&&(a?(l._stashedText=l.nodeValue,l.nodeValue=""):l.nodeValue=l._stashedText||""),c&&c.nodeType===8)if(l=c.data,l==="/$"){if(n===0)break;n--}else l!=="$"&&l!=="$?"&&l!=="$~"&&l!=="$!"||n++;l=c}while(l)}function Am(n){var a=n.firstChild;for(a&&a.nodeType===10&&(a=a.nextSibling);a;){var l=a;switch(a=a.nextSibling,l.nodeName){case"HTML":case"HEAD":case"BODY":Am(l),Rd(l);continue;case"SCRIPT":case"STYLE":continue;case"LINK":if(l.rel.toLowerCase()==="stylesheet")continue}n.removeChild(l)}}function Cj(n,a,l,c){for(;n.nodeType===1;){var m=l;if(n.nodeName.toLowerCase()!==a.toLowerCase()){if(!c&&(n.nodeName!=="INPUT"||n.type!=="hidden"))break}else if(c){if(!n[ao])switch(a){case"meta":if(!n.hasAttribute("itemprop"))break;return n;case"link":if(g=n.getAttribute("rel"),g==="stylesheet"&&n.hasAttribute("data-precedence"))break;if(g!==m.rel||n.getAttribute("href")!==(m.href==null||m.href===""?null:m.href)||n.getAttribute("crossorigin")!==(m.crossOrigin==null?null:m.crossOrigin)||n.getAttribute("title")!==(m.title==null?null:m.title))break;return n;case"style":if(n.hasAttribute("data-precedence"))break;return n;case"script":if(g=n.getAttribute("src"),(g!==(m.src==null?null:m.src)||n.getAttribute("type")!==(m.type==null?null:m.type)||n.getAttribute("crossorigin")!==(m.crossOrigin==null?null:m.crossOrigin))&&g&&n.hasAttribute("async")&&!n.hasAttribute("itemprop"))break;return n;default:return n}}else if(a==="input"&&n.type==="hidden"){var g=m.name==null?null:""+m.name;if(m.type==="hidden"&&n.getAttribute("name")===g)return n}else return n;if(n=fr(n.nextSibling),n===null)break}return null}function jj(n,a,l){if(a==="")return null;for(;n.nodeType!==3;)if((n.nodeType!==1||n.nodeName!=="INPUT"||n.type!=="hidden")&&!l||(n=fr(n.nextSibling),n===null))return null;return n}function Mb(n,a){for(;n.nodeType!==8;)if((n.nodeType!==1||n.nodeName!=="INPUT"||n.type!=="hidden")&&!a||(n=fr(n.nextSibling),n===null))return null;return n}function Tm(n){return n.data==="$?"||n.data==="$~"}function _m(n){return n.data==="$!"||n.data==="$?"&&n.ownerDocument.readyState!=="loading"}function kj(n,a){var l=n.ownerDocument;if(n.data==="$~")n._reactRetry=a;else if(n.data!=="$?"||l.readyState!=="loading")a();else{var c=function(){a(),l.removeEventListener("DOMContentLoaded",c)};l.addEventListener("DOMContentLoaded",c),n._reactRetry=c}}function fr(n){for(;n!=null;n=n.nextSibling){var a=n.nodeType;if(a===1||a===3)break;if(a===8){if(a=n.data,a==="$"||a==="$!"||a==="$?"||a==="$~"||a==="&"||a==="F!"||a==="F")break;if(a==="/$"||a==="/&")return null}}return n}var Dm=null;function Lb(n){n=n.nextSibling;for(var a=0;n;){if(n.nodeType===8){var l=n.data;if(l==="/$"||l==="/&"){if(a===0)return fr(n.nextSibling);a--}else l!=="$"&&l!=="$!"&&l!=="$?"&&l!=="$~"&&l!=="&"||a++}n=n.nextSibling}return null}function Bb(n){n=n.previousSibling;for(var a=0;n;){if(n.nodeType===8){var l=n.data;if(l==="$"||l==="$!"||l==="$?"||l==="$~"||l==="&"){if(a===0)return n;a--}else l!=="/$"&&l!=="/&"||a++}n=n.previousSibling}return null}function Fb(n,a,l){switch(a=Iu(l),n){case"html":if(n=a.documentElement,!n)throw Error(i(452));return n;case"head":if(n=a.head,!n)throw Error(i(453));return n;case"body":if(n=a.body,!n)throw Error(i(454));return n;default:throw Error(i(451))}}function Po(n){for(var a=n.attributes;a.length;)n.removeAttributeNode(a[0]);Rd(n)}var mr=new Map,Ib=new Set;function Uu(n){return typeof n.getRootNode=="function"?n.getRootNode():n.nodeType===9?n:n.ownerDocument}var ma=K.d;K.d={f:Aj,r:Tj,D:_j,C:Dj,L:Rj,m:Oj,X:Mj,S:zj,M:Lj};function Aj(){var n=ma.f(),a=Du();return n||a}function Tj(n){var a=Zi(n);a!==null&&a.tag===5&&a.type==="form"?nv(a):ma.r(n)}var El=typeof document>"u"?null:document;function Ub(n,a,l){var c=El;if(c&&typeof a=="string"&&a){var m=ir(a);m='link[rel="'+n+'"][href="'+m+'"]',typeof l=="string"&&(m+='[crossorigin="'+l+'"]'),Ib.has(m)||(Ib.add(m),n={rel:n,crossOrigin:l,href:a},c.querySelector(m)===null&&(a=c.createElement("link"),un(a,"link",n),Qt(a),c.head.appendChild(a)))}}function _j(n){ma.D(n),Ub("dns-prefetch",n,null)}function Dj(n,a){ma.C(n,a),Ub("preconnect",n,a)}function Rj(n,a,l){ma.L(n,a,l);var c=El;if(c&&n&&a){var m='link[rel="preload"][as="'+ir(a)+'"]';a==="image"&&l&&l.imageSrcSet?(m+='[imagesrcset="'+ir(l.imageSrcSet)+'"]',typeof l.imageSizes=="string"&&(m+='[imagesizes="'+ir(l.imageSizes)+'"]')):m+='[href="'+ir(n)+'"]';var g=m;switch(a){case"style":g=Nl(n);break;case"script":g=Cl(n)}mr.has(g)||(n=v({rel:"preload",href:a==="image"&&l&&l.imageSrcSet?void 0:n,as:a},l),mr.set(g,n),c.querySelector(m)!==null||a==="style"&&c.querySelector(Vo(g))||a==="script"&&c.querySelector(Ho(g))||(a=c.createElement("link"),un(a,"link",n),Qt(a),c.head.appendChild(a)))}}function Oj(n,a){ma.m(n,a);var l=El;if(l&&n){var c=a&&typeof a.as=="string"?a.as:"script",m='link[rel="modulepreload"][as="'+ir(c)+'"][href="'+ir(n)+'"]',g=m;switch(c){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":g=Cl(n)}if(!mr.has(g)&&(n=v({rel:"modulepreload",href:n},a),mr.set(g,n),l.querySelector(m)===null)){switch(c){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":if(l.querySelector(Ho(g)))return}c=l.createElement("link"),un(c,"link",n),Qt(c),l.head.appendChild(c)}}}function zj(n,a,l){ma.S(n,a,l);var c=El;if(c&&n){var m=$i(c).hoistableStyles,g=Nl(n);a=a||"default";var w=m.get(g);if(!w){var j={loading:0,preload:null};if(w=c.querySelector(Vo(g)))j.loading=5;else{n=v({rel:"stylesheet",href:n,"data-precedence":a},l),(l=mr.get(g))&&Rm(n,l);var U=w=c.createElement("link");Qt(U),un(U,"link",n),U._p=new Promise(function(ee,le){U.onload=ee,U.onerror=le}),U.addEventListener("load",function(){j.loading|=1}),U.addEventListener("error",function(){j.loading|=2}),j.loading|=4,Pu(w,a,c)}w={type:"stylesheet",instance:w,count:1,state:j},m.set(g,w)}}}function Mj(n,a){ma.X(n,a);var l=El;if(l&&n){var c=$i(l).hoistableScripts,m=Cl(n),g=c.get(m);g||(g=l.querySelector(Ho(m)),g||(n=v({src:n,async:!0},a),(a=mr.get(m))&&Om(n,a),g=l.createElement("script"),Qt(g),un(g,"link",n),l.head.appendChild(g)),g={type:"script",instance:g,count:1,state:null},c.set(m,g))}}function Lj(n,a){ma.M(n,a);var l=El;if(l&&n){var c=$i(l).hoistableScripts,m=Cl(n),g=c.get(m);g||(g=l.querySelector(Ho(m)),g||(n=v({src:n,async:!0,type:"module"},a),(a=mr.get(m))&&Om(n,a),g=l.createElement("script"),Qt(g),un(g,"link",n),l.head.appendChild(g)),g={type:"script",instance:g,count:1,state:null},c.set(m,g))}}function Pb(n,a,l,c){var m=(m=ve.current)?Uu(m):null;if(!m)throw Error(i(446));switch(n){case"meta":case"title":return null;case"style":return typeof l.precedence=="string"&&typeof l.href=="string"?(a=Nl(l.href),l=$i(m).hoistableStyles,c=l.get(a),c||
vendor: 4,571 bytes, line 10
10(c={type:"style",instance:null,count:0,state:null},l.set(a,c)),c):{type:"void",instance:null,count:0,state:null};case"link":if(l.rel==="stylesheet"&&typeof l.href=="string"&&typeof l.precedence=="string"){n=Nl(l.href);var g=$i(m).hoistableStyles,w=g.get(n);if(w||(m=m.ownerDocument||m,w={type:"stylesheet",instance:null,count:0,state:{loading:0,preload:null}},g.set(n,w),(g=m.querySelector(Vo(n)))&&!g._p&&(w.instance=g,w.state.loading=5),mr.has(n)||(l={rel:"preload",as:"style",href:l.href,crossOrigin:l.crossOrigin,integrity:l.integrity,media:l.media,hrefLang:l.hrefLang,referrerPolicy:l.referrerPolicy},mr.set(n,l),g||Bj(m,n,l,w.state))),a&&c===null)throw Error(i(528,""));return w}if(a&&c!==null)throw Error(i(529,""));return null;case"script":return a=l.async,l=l.src,typeof l=="string"&&a&&typeof a!="function"&&typeof a!="symbol"?(a=Cl(l),l=$i(m).hoistableScripts,c=l.get(a),c||(c={type:"script",instance:null,count:0,state:null},l.set(a,c)),c):{type:"void",instance:null,count:0,state:null};default:throw Error(i(444,n))}}function Nl(n){return'href="'+ir(n)+'"'}function Vo(n){return'link[rel="stylesheet"]['+n+"]"}function Vb(n){return v({},n,{"data-precedence":n.precedence,precedence:null})}function Bj(n,a,l,c){n.querySelector('link[rel="preload"][as="style"]['+a+"]")?c.loading=1:(a=n.createElement("link"),c.preload=a,a.addEventListener("load",function(){return c.loading|=1}),a.addEventListener("error",function(){return c.loading|=2}),un(a,"link",l),Qt(a),n.head.appendChild(a))}function Cl(n){return'[src="'+ir(n)+'"]'}function Ho(n){return"script[async]"+n}function Hb(n,a,l){if(a.count++,a.instance===null)switch(a.type){case"style":var c=n.querySelector('style[data-href~="'+ir(l.href)+'"]');if(c)return a.instance=c,Qt(c),c;var m=v({},l,{"data-href":l.href,"data-precedence":l.precedence,href:null,precedence:null});return c=(n.ownerDocument||n).createElement("style"),Qt(c),un(c,"style",m),Pu(c,l.precedence,n),a.instance=c;case"stylesheet":m=Nl(l.href);var g=n.querySelector(Vo(m));if(g)return a.state.loading|=4,a.instance=g,Qt(g),g;c=Vb(l),(m=mr.get(m))&&Rm(c,m),g=(n.ownerDocument||n).createElement("link"),Qt(g);var w=g;return w._p=new Promise(function(j,U){w.onload=j,w.onerror=U}),un(g,"link",c),a.state.loading|=4,Pu(g,l.precedence,n),a.instance=g;case"script":return g=Cl(l.src),(m=n.querySelector(Ho(g)))?(a.instance=m,Qt(m),m):(c=l,(m=mr.get(g))&&(c=v({},l),Om(c,m)),n=n.ownerDocument||n,m=n.createElement("script"),Qt(m),un(m,"link",c),n.head.appendChild(m),a.instance=m);case"void":return null;default:throw Error(i(443,a.type))}else a.type==="stylesheet"&&(a.state.loading&4)===0&&(c=a.instance,a.state.loading|=4,Pu(c,l.precedence,n));return a.instance}function Pu(n,a,l){for(var c=l.querySelectorAll('link[rel="stylesheet"][data-precedence],style[data-precedence]'),m=c.length?c[c.length-1]:null,g=m,w=0;w<c.length;w++){var j=c[w];if(j.dataset.precedence===a)g=j;else if(g!==m)break}g?g.parentNode.insertBefore(n,g.nextSibling):(a=l.nodeType===9?l.head:l,a.insertBefore(n,a.firstChild))}function Rm(n,a){n.crossOrigin==null&&(n.crossOrigin=a.crossOrigin),n.referrerPolicy==null&&(n.referrerPolicy=a.referrerPolicy),n.title==null&&(n.title=a.title)}function Om(n,a){n.crossOrigin==null&&(n.crossOrigin=a.crossOrigin),n.referrerPolicy==null&&(n.referrerPolicy=a.referrerPolicy),n.integrity==null&&(n.integrity=a.integrity)}var Vu=null;function qb(n,a,l){if(Vu===null){var c=new Map,m=Vu=new Map;m.set(l,c)}else m=Vu,c=m.get(l),c||(c=new Map,m.set(l,c));if(c.has(n))return c;for(c.set(n,null),l=l.getElementsByTagName(n),m=0;m<l.length;m++){var g=l[m];if(!(g[ao]||g[an]||n==="link"&&g.getAttribute("rel")==="stylesheet")&&g.namespaceURI!=="http://www.w3.org/2000/svg"){var w=g.getAttribute(a)||"";w=n+w;var j=c.get(w);j?j.push(g):c.set(w,[g])}}return c}function Zb(n,a,l){n=n.ownerDocument||n,n.head.insertBefore(l,a==="title"?n.querySelector("head > title"):null)}function Fj(n,a,l){if(l===1||a.itemProp!=null)return!1;switch(n){case"meta":case"title":return!0;case"style":if(typeof a.precedence!="string"||typeof a.href!="string"||a.href==="")break;return!0;case"link":if(typeof a.rel!="string"||typeof a.href!="string"||a.href===""||a.onLoad||a.onError)break;return a.rel==="stylesheet"?(n=a.disabled,typeof a.precedence=="string"&&n==null):!0;case"script":if(a.async&&typeof a.async!="function"&&typeof a.async!="symbol"&&!a.onLoad&&!a.onError&&a.src&&typeof a.src=="string")return!0}return!1}function $b(n){return!(n.type==="stylesheet"&&(n.state.loading&3)===0)}function Ij(n,a,l,c){if(l.type==="stylesheet"&&(typeof c.media!="str
10ing"||matchMedia(c.media).matches!==!1)&&(l.state.loading&4)===0){if(l.instance===null){var m=Nl(c.href),g=a.querySelector(Vo(m));if(g){a=g._p,a!==null&&typeof a=="object"&&typeof a.then=="function"&&(n.count++,n=Hu.bind(n),a.then(n,n)),l.state.loading|=4,l.instance=g,Qt(g);return}g=a.ownerDocument||a,c=Vb(c),(m=mr.get(m))&&Rm(c,m),g=g.createElement("link"),Qt(g);var w=g;w._p=new Promise(function(j,U){w.onload=j,w.onerror=U}),un(g,"link",c),l.instance=g}n.stylesheets===null&&(n.stylesheets=new Map),n.stylesheets.set(l,a),(a=l.state.preload)&&(l.state.loading&3)===0&&(n.count++,l=Hu.bind(n),a.addEventListener("load",l),a.addEventListener("error",l))}}var zm=0;function Uj(n,a){return n.stylesheets&&n.count===0&&Zu(n,n.stylesheets),0<n.count||0<n.imgCount?function(l){var c=setTimeout(function(){if(n.stylesheets&&Zu(n,n.stylesheets),n.unsuspend){var g=n.unsuspend;n.unsuspend=null,g()}},6e4+a);0<n.imgBytes&&zm===0&&(zm=62500*xj());var m=setTimeout(function(){if(n.waitingForImages=!1,n.count===0&&(n.stylesheets&&Zu(n,n.stylesheets),n.unsuspend)){var g=n.unsuspend;n.unsuspend=null,g()}},(n.imgBytes>zm?50:800)+a);return n.unsuspend=l,function(){n.unsuspend=null,clearTimeout(c),clearTimeout(m)}}:null}function Hu(){if(this.count--,this.count===0&&(this.imgCount===0||!this.waitingForImages)){if(this.stylesheets)Zu(this,this.stylesheets);else if(this.unsuspend){var n=this.unsuspend;this.unsuspend=null,n()}}}var qu=null;function Zu(n,a){n.stylesheets=null,n.unsuspend!==null&&(n.count++,qu=new Map,a.forEach(Pj,n),qu=null,Hu.call(n))}function Pj(n,a){if(!(a.state.loading&4)){var l=qu.get(n);if(l)var c=l.get(null);else{l=new Map,qu.set(n,l);for(var m=n.querySelectorAll("link[data-precedence],style[data-precedence]"),g=0;g<m.length;g++){var w=m[g];(w.nodeName==="LINK"||w.getAttribute("media")!=="not all")&&(l.set(w.dataset.precedence,w),c=w)}c&&l.set(null,c)}m=a.instance,w=m.getAttribute("data-precedence"),g=l.get(w)||c,g===c&&l.set(null,m),l.set(w,m),this.count++,c=Hu.bind(this),m.addEventListener("load",c),m.addEventListener("error",c),g?g.parentNode.insertBefore(m,g.nextSibling):(n=n.nodeType===9?n.head:n,n.insertBefore(m,n.firstChild)),a.state.loading|=4}}var qo={$$typeof:O,Provider:null,Consumer:null,_currentValue:q,_currentValue2:q,_threadCount:0};function Vj(n,a,l,c,m,g,w,j,U){this.tag=1,this.containerInfo=n,this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.next=this.pendingContext=this.context=this.cancelPendingCommit=null,this.callbackPriority=0,this.expirationTimes=Cn(-1),this.entangledLanes=this.shellSuspendCounter=this.errorRecoveryDisabledLanes=this.expiredLanes=this.warmLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=Cn(0),this.hiddenUpdates=Cn(null),this.identifierPrefix=c,this.onUncaughtError=m,this.onCaughtError=g,this.onRecoverableError=w,this.pooledCache=null,this.pooledCacheLanes=0,this.formState=U,this.incompleteTransitions=new Map}function Kb(n,a,l,c,m,g,w,j,U,ee,le,se){return n=new Vj(n,a,l,w,U,ee,le,se,j),a=1,g===!0&&(a|=24),g=qn(3,null,null,a),n.current=g,g.stateNode=n,a=mf(),a.refCount++,n.pooledCache=a,a.refCount++,g.memoizedState={element:c,isDehydrated:l,cache:a},yf(g),n}function Gb(n){return n?(n=nl,n):nl}function Yb(n,a,l,c,m,g){m=Gb(m),c.context===null?c.context=m:c.pendingContext=m,c=Da(a),c.payload={element:l},g=g===void 0?null:g,g!==null&&(c.callback=g),l=Ra(n,c,a),l!==null&&(Rn(l,n,a),So(l,n,a))}function Xb(n,a){if(n=n.memoizedState,n!==null&&n.dehydrated!==null){var l=n.retryLane;n.retryLane=l!==0&&l<a?l:a}}function Mm(n,a){Xb(n,a),(n=n.alternate)&&Xb(n,a)}function Qb(n){if(n.tag===13||n.tag===31){var a=fi(n,67108864);a!==null&&Rn(a,n,67108864),Mm(n,67108864)}}function Jb(n){if(n.tag===13||n.tag===31){var a=Yn();a=Gr(a);var l=fi(n,a);l!==null&&Rn(l,n,a),Mm(n,a)}}var $u=!0;function Hj(n,a,l,c){var m=R.T;R.T=null;var g=K.p;try{K.p=2,Lm(n,a,l,c)}finally{K.p=g,R.T=m}}function qj(n,a,l,c){var m=R.T;R.T=null;var g=K.p;try{K.p=8,Lm(n,a,l,c)}finally{K.p=g,R.T=m}}function Lm(n,a,l,c){if($u){var m=Bm(c);if(m===null)Sm(n,a,c,Ku,l),ex(n,c);else if($j(m,n,a,l,c))c.stopPropagation();else if(ex(n,c),a&4&&-1<Zj.indexOf(n)){for(;m!==null;){var g=Zi(m);if(g!==null)switch(g.tag){case 3:if(g=g.stateNode,g.current.memoizedState.isDehydrated){var w=kt(g.pendingLanes);if(w!==0){var j=g;for(j.pendingLanes|=2,j.entangledLanes|=2;w;){var U=1<<31-Ye(w);j.entanglements[1]|=U,w&=~U}zr(g),(Je&6)===0&&(Tu=fe()+500,Fo(0))}}break;case 31:case 13:j=fi(g,2),j!==null&&Rn(j,g,2),Du(),Mm(g,2)}if(g=Bm(c),g===null&&Sm(n,a,c,Ku,l),g===m)break;m=g}m!==null&&c.stopPropagation()}else Sm(n,a,c,null,l)}}function Bm(n){return n=Fd(n),Fm(n)}var Ku=null;function Fm(n){if(Ku=null,n=qi(n),n!==null){var a=s(n);if(a===null)n=null;else{var l=a.tag;if(l===13){if(n=u(a),n!==null)return n;n=null}else if(l===31){if(n=d(a),n!==null)return n;n=null}else if(l===3){if(a.stateNode.current.memoizedState.isDehydrated)return a.tag===3?a.stateNode.containerInfo:null;n=null}else a!==n&&(n=null)}}return Ku=n,null}function Wb(n){switch(n){case"beforetoggle":case"cancel":case"click":case"close"
vendor: 5,404 bytes, line 10
10:case"contextmenu":case"copy":case"cut":case"auxclick":case"dblclick":case"dragend":case"dragstart":case"drop":case"focusin":case"focusout":case"input":case"invalid":case"keydown":case"keypress":case"keyup":case"mousedown":case"mouseup":case"paste":case"pause":case"play":case"pointercancel":case"pointerdown":case"pointerup":case"ratechange":case"reset":case"resize":case"seeked":case"submit":case"toggle":case"touchcancel":case"touchend":case"touchstart":case"volumechange":case"change":case"selectionchange":case"textInput":case"compositionstart":case"compositionend":case"compositionupdate":case"beforeblur":case"afterblur":case"beforeinput":case"blur":case"fullscreenchange":case"focus":case"hashchange":case"popstate":case"select":case"selectstart":return 2;case"drag":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"mousemove":case"mouseout":case"mouseover":case"pointermove":case"pointerout":case"pointerover":case"scroll":case"touchmove":case"wheel":case"mouseenter":case"mouseleave":case"pointerenter":case"pointerleave":return 8;case"message":switch(he()){case H:return 2;case re:return 8;case me:case ye:return 32;case De:return 268435456;default:return 32}default:return 32}}var Im=!1,Ha=null,qa=null,Za=null,Zo=new Map,$o=new Map,$a=[],Zj="mousedown mouseup touchcancel touchend touchstart auxclick dblclick pointercancel pointerdown pointerup dragend dragstart drop compositionend compositionstart keydown keypress keyup input textInput copy cut paste click change contextmenu reset".split(" ");function ex(n,a){switch(n){case"focusin":case"focusout":Ha=null;break;case"dragenter":case"dragleave":qa=null;break;case"mouseover":case"mouseout":Za=null;break;case"pointerover":case"pointerout":Zo.delete(a.pointerId);break;case"gotpointercapture":case"lostpointercapture":$o.delete(a.pointerId)}}function Ko(n,a,l,c,m,g){return n===null||n.nativeEvent!==g?(n={blockedOn:a,domEventName:l,eventSystemFlags:c,nativeEvent:g,targetContainers:[m]},a!==null&&(a=Zi(a),a!==null&&Qb(a)),n):(n.eventSystemFlags|=c,a=n.targetContainers,m!==null&&a.indexOf(m)===-1&&a.push(m),n)}function $j(n,a,l,c,m){switch(a){case"focusin":return Ha=Ko(Ha,n,a,l,c,m),!0;case"dragenter":return qa=Ko(qa,n,a,l,c,m),!0;case"mouseover":return Za=Ko(Za,n,a,l,c,m),!0;case"pointerover":var g=m.pointerId;return Zo.set(g,Ko(Zo.get(g)||null,n,a,l,c,m)),!0;case"gotpointercapture":return g=m.pointerId,$o.set(g,Ko($o.get(g)||null,n,a,l,c,m)),!0}return!1}function tx(n){var a=qi(n.target);if(a!==null){var l=s(a);if(l!==null){if(a=l.tag,a===13){if(a=u(l),a!==null){n.blockedOn=a,Na(n.priority,function(){Jb(l)});return}}else if(a===31){if(a=d(l),a!==null){n.blockedOn=a,Na(n.priority,function(){Jb(l)});return}}else if(a===3&&l.stateNode.current.memoizedState.isDehydrated){n.blockedOn=l.tag===3?l.stateNode.containerInfo:null;return}}}n.blockedOn=null}function Gu(n){if(n.blockedOn!==null)return!1;for(var a=n.targetContainers;0<a.length;){var l=Bm(n.nativeEvent);if(l===null){l=n.nativeEvent;var c=new l.constructor(l.type,l);Bd=c,l.target.dispatchEvent(c),Bd=null}else return a=Zi(l),a!==null&&Qb(a),n.blockedOn=l,!1;a.shift()}return!0}function nx(n,a,l){Gu(n)&&l.delete(a)}function Kj(){Im=!1,Ha!==null&&Gu(Ha)&&(Ha=null),qa!==null&&Gu(qa)&&(qa=null),Za!==null&&Gu(Za)&&(Za=null),Zo.forEach(nx),$o.forEach(nx)}function Yu(n,a){n.blockedOn===a&&(n.blockedOn=null,Im||(Im=!0,e.unstable_scheduleCallback(e.unstable_NormalPriority,Kj)))}var Xu=null;function rx(n){Xu!==n&&(Xu=n,e.unstable_scheduleCallback(e.unstable_NormalPriority,function(){Xu===n&&(Xu=null);for(var a=0;a<n.length;a+=3){var l=n[a],c=n[a+1],m=n[a+2];if(typeof c!="function"){if(Fm(c||l)===null)continue;break}var g=Zi(l);g!==null&&(n.splice(a,3),a-=3,Bf(g,{pending:!0,data:m,method:l.method,action:c},c,m))}}))}function jl(n){function a(U){return Yu(U,n)}Ha!==null&&Yu(Ha,n),qa!==null&&Yu(qa,n),Za!==null&&Yu(Za,n),Zo.forEach(a),$o.forEach(a);for(var l=0;l<$a.length;l++){var c=$a[l];c.blockedOn===n&&(c.blockedOn=null)}for(;0<$a.length&&(l=$a[0],l.blockedOn===null);)tx(l),l.blockedOn===null&&$a.shift();if(l=(n.ownerDocument||n).$$reactFormReplay,l!=null)for(c=0;c<l.length;c+=3){var m=l[c],g=l[c+1],w=m[jn]||null;if(typeof g=="function")w||rx(l);else if(w){var j=null;if(g&&g.hasAttribute("formAction")){if(m=g,w=g[jn]||null)j=w.formAction;else if(Fm(m)!==null)continue}else j=w.action;typeof j=="function"?l[c+1]=j:(l.splice(c,3),c-=3),rx(l)}}}function ax(){function n(g){g.canIntercept&&g.info==="react-transition"&&g.intercept({handler:function(){return new Promise(function(w){return m=w})},focusReset:"manual",scroll:"manual"})}function a(){m!==null&&(m(),m=null),c||setTimeout(l,20)}function l(){if(!c&&!navigation.transition){var g=navigation.currentEntry;g&&g.url!=null&&navigation.navigate(g.url,{state:g.getState(),info:"react-transition",history:"replace"})}}if(typeof navigation=="object"){var c=!1,m=null;return navigation.addEventListener("navigate",n),navigation.addEventListener("navigatesuccess",a),navigation.addEventListener("navigateerror",a),setTimeout(l,100),function(){c=!0,navigation.removeEventListener("navigate",n),navigation.removeEventListener("navigatesuccess",a),navigation.removeEventListener("navigateerror",a),m!==null&&(m(),m=null)}}}function Um(n){this._internalRoot=n}Qu.prototype.render=Um.prototype.render=function(n){var a=this._internalRoot;if(a===null)throw Error(i(409));var l=a.current,c=Yn();
10Yb(l,c,n,a,null,null)},Qu.prototype.unmount=Um.prototype.unmount=function(){var n=this._internalRoot;if(n!==null){this._internalRoot=null;var a=n.containerInfo;Yb(n.current,2,null,n,null,null),Du(),a[Hi]=null}};function Qu(n){this._internalRoot=n}Qu.prototype.unstable_scheduleHydration=function(n){if(n){var a=wr();n={blockedOn:null,target:n,priority:a};for(var l=0;l<$a.length&&a!==0&&a<$a[l].priority;l++);$a.splice(l,0,n),l===0&&tx(n)}};var ix=t.version;if(ix!=="19.2.3")throw Error(i(527,ix,"19.2.3"));K.findDOMNode=function(n){var a=n._reactInternals;if(a===void 0)throw typeof n.render=="function"?Error(i(188)):(n=Object.keys(n).join(","),Error(i(268,n)));return n=h(a),n=n!==null?y(n):null,n=n===null?null:n.stateNode,n};var Gj={bundleType:0,version:"19.2.3",rendererPackageName:"react-dom",currentDispatcherRef:R,reconcilerVersion:"19.2.3"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var Ju=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!Ju.isDisabled&&Ju.supportsFiber)try{Vt=Ju.inject(Gj),ht=Ju}catch{}}return Go.createRoot=function(n,a){if(!o(n))throw Error(i(299));var l=!1,c="",m=fv,g=mv,w=hv;return a!=null&&(a.unstable_strictMode===!0&&(l=!0),a.identifierPrefix!==void 0&&(c=a.identifierPrefix),a.onUncaughtError!==void 0&&(m=a.onUncaughtError),a.onCaughtError!==void 0&&(g=a.onCaughtError),a.onRecoverableError!==void 0&&(w=a.onRecoverableError)),a=Kb(n,1,!1,null,null,l,c,null,m,g,w,ax),n[Hi]=a.current,wm(n),new Um(a)},Go.hydrateRoot=function(n,a,l){if(!o(n))throw Error(i(299));var c=!1,m="",g=fv,w=mv,j=hv,U=null;return l!=null&&(l.unstable_strictMode===!0&&(c=!0),l.identifierPrefix!==void 0&&(m=l.identifierPrefix),l.onUncaughtError!==void 0&&(g=l.onUncaughtError),l.onCaughtError!==void 0&&(w=l.onCaughtError),l.onRecoverableError!==void 0&&(j=l.onRecoverableError),l.formState!==void 0&&(U=l.formState)),a=Kb(n,1,!0,a,l??null,c,m,U,g,w,j,ax),a.context=Gb(null),l=a.current,c=Yn(),c=Gr(c),m=Da(c),m.callback=null,Ra(l,m,c),l=c,a.current.lanes=l,tr(a,l),zr(a),n[Hi]=a.current,wm(n),new Qu(a)},Go.version="19.2.3",Go}var ux;function Dk(){if(ux)return Pm.exports;ux=1;function e(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(e)}catch(t){console.error(t)}}return e(),Pm.exports=_k(),Pm.exports}var Rk=Dk();const Ok=Jc(Rk),zk=new Xj({defaultOptions:{queries:{staleTime:1e3*60*5,retry:1}}}),Mk={apiKey:"AIzaSyDt5NaK07alP1K5i2vN7-8YI62rZzPftEg",authDomain:"ferrous-phoenix-482414-h0.firebaseapp.com",projectId:"ferrous-phoenix-482414-h0",storageBucket:"ferrous-phoenix-482414-h0.firebasestorage.app",messagingSenderId:"618318521446",appId:"1:618318521446:web:c474b0e4857377c97ef9a7"},$w=wk(Mk),Bl=Sk($w),Ne=Ek($w);function Lk(e){return e?{uid:e.uid,email:e.email,displayName:e.displayName,photoURL:e.photoURL}:null}const Kw=S.createContext(null),Bk=new Nk,Fk="https://ingress.surfacedocs.dev";function Ik({children:e}){const[t,r]=S.useState({user:null,isLoading:!0,isAuthenticated:!1});S.useEffect(()=>{const s=Ck(Bl,async u=>{const d=Lk(u);if(d){try{await Uk(d)}catch(p){console.error("Failed to initialize user document:",p)}Pk().catch(p=>{console.error("Failed to resolve pending shares:",p)})}r({user:d,isLoading:!1,isAuthenticated:!!d})});return()=>s()},[]);const i=async()=>{try{await kk(Bl,Bk)}catch(s){throw console.error("Sign in error:",s),s}},o=async()=>{try{await jk(Bl)}catch(s){throw console.error("Sign out error:",s),s}};return f.jsx(Kw.Provider,{value:{...t,signInWithGoogle:i,signOut:o},children:e})}async function Uk(e){const t=Fe(Ne,"users",e.uid);if(!(await Kt(t)).exists()){await hs(t,{email:e.email,displayName:e.displayName,photoURL:e.photoURL,plan:"free",lastSeenVersion:null,notificationsLastSeenAt:null,createdAt:Ft(),updatedAt:Ft()});const i=`folder_${e.uid}_root`;await hs(Fe(Ne,"folders",i),{userId:e.uid,name:"Root",parentId:null,path:"/",depth:0,createdAt:Ft(),updatedAt:Ft()})}}async function Pk(){const e=Bl.currentUser;if(e)try{const t=await e.getIdToken();await fetch(`${Fk}/v1/sharing/resolve-pending`,{method:"POST",headers:{Authorization:`Bearer ${t}`,"Content-Type":"application/json"}})}catch{}}class Vk extends S.Component{state={hasError:!1};static getDerivedStateFromError(t){return{hasError:!0,error:t}}componentDidCatch(t,r){console.error("ErrorBoundary caught:",t,r)}render(){return this.state.hasError?this.props.fallback||f.jsx("div",{className:"min-h-screen flex items-center justify-center p-4",children:f.jsxs("div",{className:"text-center max-w-md",children:[f.jsx("h2",{className:"text-xl font-semibold mb-2",children:"Something went wrong"}),f.jsx("p",{className:"text-muted-foreground mb-4",children:"An unexpected error occurred. Please try refreshing the page."}),f.jsx("button",{type:"button",onClick:()=>{this.setState({hasError:!1,error:void 0}),window.location.reload()},className:"px-4 py-2 bg-primary text-primary-foreground rounded-md hover:bg-primary/90",children:"Refresh page"})]})}):this.props.children}}function Gw(e){var t,r,i="";if(typeof e=="string"||typeof e=="number")i+=e;else if(typeof e=="object")if(Array.isArray(e)){var o=e.length;for(t=0;t<o;t++)e[t]&&(r=Gw(e[t]))&&(i&&(i+=" "),i+=r)}else for(r in e)e[r]&&(i&&(i+=" "),i+=r);return i}function Hk(){for(var e,t,r=0,i="",o=arguments.length;r<o;r++)(e=arguments[r])&&(t=Gw(e))&&(i&&(i+=" "),i+=t);return i}const qk=(e,t)=>{const r=new Array(e.length+t.length);for(let i=0;i<e.length;i++)r[i]=e[i];for(let i=0;i<t.length;i++)r[e.length+i]=t[i];return r},Zk=(e,t)=>({classGroupId:e,validator:t}),Yw=(e=new Map,t=null,r)=>({nextPart:e,validators:t,classGroupId:r}),jc="-",cx=[],$k="arbitrary..",Kk=e=>{const t=Yk(e),{conflictingClassGroups:r,conflictingClassGroupModifiers:i}=e;return{getClassGroupId:u=>{if(u.startsWith("[")&&u.endsWith("]"))return Gk(u);const d=u.split(jc),p=d[0]===""&&d.length>1?1:0;return Xw(d,p,t)},getConflictingClassGroupIds:(u,d)=>{if(d){const p=i[u],h=r[u];return p?h?qk(h,p):p:h||cx}return r[u]||cx}}},Xw=(e,t,r)=>{if(e.length-t===0)return r.classGroupId;const o=e[t],s=r.nextPart.get(o);if(s){const h=Xw(e,t+1,s);if(h)return h}const u=r.validators;if(u===null)return;const d=t===0?e.join(jc):e.slice(t).join(jc),p=u.length;for(let h=0;h<p;h++){const y=u[h];if(y.validator(d))return y.classGroupId}},Gk=e=>e.slice(1,-1).indexOf(":")===-1?void 0:(()=>{const t=e.slice(1,-1),r=t.indexOf(":"),i=t.slice(0,r);return i?$k+i:void 0})(),Yk=e=>{const{theme:t,classGroups:r}=e;return Xk(r,t)},Xk=(e,t)=>{const r=Yw();for(const i in e){const o=e[i];dp(o,r,i,t)}return r},dp=(e,t,r,i)=>{const o=e.length;for(let s=0;s<o;s++){const u=e[s];Qk(u,t,r,i)}},Qk=(e,t,r,i)=>{if(typeof e=="string"){Jk(e,t,r);return}if(typeof e=="function"){Wk(e,t,r,i);return}
vendor: 6,738 bytes, line 10
10eA(e,t,r,i)},Jk=(e,t,r)=>{const i=e===""?t:Qw(t,e);i.classGroupId=r},Wk=(e,t,r,i)=>{if(tA(e)){dp(e(i),t,r,i);return}t.validators===null&&(t.validators=[]),t.validators.push(Zk(r,e))},eA=(e,t,r,i)=>{const o=Object.entries(e),s=o.length;for(let u=0;u<s;u++){const[d,p]=o[u];dp(p,Qw(t,d),r,i)}},Qw=(e,t)=>{let r=e;const i=t.split(jc),o=i.length;for(let s=0;s<o;s++){const u=i[s];let d=r.nextPart.get(u);d||(d=Yw(),r.nextPart.set(u,d)),r=d}return r},tA=e=>"isThemeGetter"in e&&e.isThemeGetter===!0,nA=e=>{if(e<1)return{get:()=>{},set:()=>{}};let t=0,r=Object.create(null),i=Object.create(null);const o=(s,u)=>{r[s]=u,t++,t>e&&(t=0,i=r,r=Object.create(null))};return{get(s){let u=r[s];if(u!==void 0)return u;if((u=i[s])!==void 0)return o(s,u),u},set(s,u){s in r?r[s]=u:o(s,u)}}},Nh="!",dx=":",rA=[],fx=(e,t,r,i,o)=>({modifiers:e,hasImportantModifier:t,baseClassName:r,maybePostfixModifierPosition:i,isExternal:o}),aA=e=>{const{prefix:t,experimentalParseClassName:r}=e;let i=o=>{const s=[];let u=0,d=0,p=0,h;const y=o.length;for(let N=0;N<y;N++){const C=o[N];if(u===0&&d===0){if(C===dx){s.push(o.slice(p,N)),p=N+1;continue}if(C==="/"){h=N;continue}}C==="["?u++:C==="]"?u--:C==="("?d++:C===")"&&d--}const v=s.length===0?o:o.slice(p);let x=v,b=!1;v.endsWith(Nh)?(x=v.slice(0,-1),b=!0):v.startsWith(Nh)&&(x=v.slice(1),b=!0);const E=h&&h>p?h-p:void 0;return fx(s,b,x,E)};if(t){const o=t+dx,s=i;i=u=>u.startsWith(o)?s(u.slice(o.length)):fx(rA,!1,u,void 0,!0)}if(r){const o=i;i=s=>r({className:s,parseClassName:o})}return i},iA=e=>{const t=new Map;return e.orderSensitiveModifiers.forEach((r,i)=>{t.set(r,1e6+i)}),r=>{const i=[];let o=[];for(let s=0;s<r.length;s++){const u=r[s],d=u[0]==="[",p=t.has(u);d||p?(o.length>0&&(o.sort(),i.push(...o),o=[]),i.push(u)):o.push(u)}return o.length>0&&(o.sort(),i.push(...o)),i}},lA=e=>({cache:nA(e.cacheSize),parseClassName:aA(e),sortModifiers:iA(e),...Kk(e)}),oA=/\s+/,sA=(e,t)=>{const{parseClassName:r,getClassGroupId:i,getConflictingClassGroupIds:o,sortModifiers:s}=t,u=[],d=e.trim().split(oA);let p="";for(let h=d.length-1;h>=0;h-=1){const y=d[h],{isExternal:v,modifiers:x,hasImportantModifier:b,baseClassName:E,maybePostfixModifierPosition:N}=r(y);if(v){p=y+(p.length>0?" "+p:p);continue}let C=!!N,k=i(C?E.substring(0,N):E);if(!k){if(!C){p=y+(p.length>0?" "+p:p);continue}if(k=i(E),!k){p=y+(p.length>0?" "+p:p);continue}C=!1}const M=x.length===0?"":x.length===1?x[0]:s(x).join(":"),O=b?M+Nh:M,B=O+k;if(u.indexOf(B)>-1)continue;u.push(B);const T=o(k,C);for(let L=0;L<T.length;++L){const I=T[L];u.push(O+I)}p=y+(p.length>0?" "+p:p)}return p},uA=(...e)=>{let t=0,r,i,o="";for(;t<e.length;)(r=e[t++])&&(i=Jw(r))&&(o&&(o+=" "),o+=i);return o},Jw=e=>{if(typeof e=="string")return e;let t,r="";for(let i=0;i<e.length;i++)e[i]&&(t=Jw(e[i]))&&(r&&(r+=" "),r+=t);return r},cA=(e,...t)=>{let r,i,o,s;const u=p=>{const h=t.reduce((y,v)=>v(y),e());return r=lA(h),i=r.cache.get,o=r.cache.set,s=d,d(p)},d=p=>{const h=i(p);if(h)return h;const y=sA(p,r);return o(p,y),y};return s=u,(...p)=>s(uA(...p))},dA=[],Zt=e=>{const t=r=>r[e]||dA;return t.isThemeGetter=!0,t},Ww=/^\[(?:(\w[\w-]*):)?(.+)\]$/i,eS=/^\((?:(\w[\w-]*):)?(.+)\)$/i,fA=/^\d+\/\d+$/,mA=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,hA=/\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$/,pA=/^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix)\(.+\)$/,gA=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,yA=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,kl=e=>fA.test(e),Be=e=>!!e&&!Number.isNaN(Number(e)),Ga=e=>!!e&&Number.isInteger(Number(e)),qm=e=>e.endsWith("%")&&Be(e.slice(0,-1)),ha=e=>mA.test(e),vA=()=>!0,bA=e=>hA.test(e)&&!pA.test(e),tS=()=>!1,xA=e=>gA.test(e),wA=e=>yA.test(e),SA=e=>!we(e)&&!Se(e),EA=e=>Gl(e,aS,tS),we=e=>Ww.test(e),Ci=e=>Gl(e,iS,bA),Zm=e=>Gl(e,AA,Be),mx=e=>Gl(e,nS,tS),NA=e=>Gl(e,rS,wA),Wu=e=>Gl(e,lS,xA),Se=e=>eS.test(e),Yo=e=>Yl(e,iS),CA=e=>Yl(e,TA),hx=e=>Yl(e,nS),jA=e=>Yl(e,aS),kA=e=>Yl(e,rS),ec=e=>Yl(e,lS,!0),Gl=(e,t,r)=>{const i=Ww.exec(e);return i?i[1]?t(i[1]):r(i[2]):!1},Yl=(e,t,r=!1)=>{const i=eS.exec(e);return i?i[1]?t(i[1]):r:!1},nS=e=>e==="position"||e==="percentage",rS=e=>e==="image"||e==="url",aS=e=>e==="length"||e==="size"||e==="bg-size",iS=e=>e==="length",AA=e=>e==="number",TA=e=>e==="family-name",lS=e=>e==="shadow",_A=()=>{const e=Zt("color"),t=Zt("font"),r=Zt("text"),i=Zt("font-weight"),o=Zt("tracking"),s=Zt("leading"),u=Zt("breakpoint"),d=Zt("container"),p=Zt("spacing"),h=Zt("radius"),y=Zt("shadow"),v=Zt("inset-shadow"),x=Zt("text-shadow"),b=Zt("drop-shadow"),E=Zt("blur"),N=Zt("perspective"),C=Zt("aspect"),k=Zt("ease"),M=Zt("animate"),O=()=>["auto","avoid","all","avoid-page","page","left","right","column"],B=()=>["center","top","bottom","left","right","top-left","left-top","top-right","right-top","bottom-right","right-bottom","bottom-left","left-bottom"],T=()=>[...B(),Se,we],L=()=>["auto","hidden","clip","visible","scroll"],I=()=>["auto","contain","none"],_=()=>[Se,we,p],X=()=>[kl,"full","auto",..._()],V=()=>[Ga,"none","subgrid",Se,we],G=()=>["auto",{span:["full",Ga,Se,we]},Ga,Se,we],$=()=>[Ga,"auto",Se,we],Q=()=>["auto","min","max","fr",Se,we],F=()=>["start","end","center","between","around","evenly","stretch","baseline","center-safe","end-safe"],z=()=>["start","end","center","stretch","center-safe","end-safe"],R=()=>["auto",..._()],K=()=>[kl,"auto","full","dvw","dvh","lvw","lvh","svw","svh","min","max","fit",..._()],q=()=>[e,Se,we],ne=()=>[...B(),hx,mx,{position:[Se,we]}],A=()=>["no-repeat",{repeat:["","x","y","space","round"]}],pe=()=>["auto","cover","contain",jA,EA,{size:[Se,we]}],ce=()=>[qm,Yo,Ci],D=()=>["","none","full",h,Se,we],ge=()=>["",Be,Yo,Ci],ke=()=>["solid","dashed","dotted","double"],ve=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],be=()=>[Be,qm,hx,mx],Le=()=>["","none",E,Se,we],Ie=()=>["none",Be,Se,we],Te=()=>["none",Be,Se,we],ft=()=>[Be,Se,we],mt=()=>[kl,"full",..._()];return{cacheSize:500,theme:{animate:["spin","ping","pulse","bounce"],aspect:["video"],blur:[ha],breakpoint:[ha],color:[vA],container:[ha],"drop-shadow":[ha],ease:["in","out","in-out"],font:[SA],"font-weight":["thin","extralight","light","normal","medium","semibold","bold","extrabold","black"],"inset-shadow":[ha],leading:["none","tight","snug","normal","relaxed","loose"],perspective:["dramatic","near","normal","midrange","distant","none"],radius:[ha],shadow:[ha],spacing:["px",Be],text:[ha],"text-shadow":[ha],tracking:["tighter","tight","normal","wide","wider","widest"]},classGroups:{aspect:[{aspect:["auto","square",kl,we,Se,C]}
vendor: 12,864 bytes, line 10
10],container:["container"],columns:[{columns:[Be,we,Se,d]}],"break-after":[{"break-after":O()}],"break-before":[{"break-before":O()}],"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:T()}],overflow:[{overflow:L()}],"overflow-x":[{"overflow-x":L()}],"overflow-y":[{"overflow-y":L()}],overscroll:[{overscroll:I()}],"overscroll-x":[{"overscroll-x":I()}],"overscroll-y":[{"overscroll-y":I()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:X()}],"inset-x":[{"inset-x":X()}],"inset-y":[{"inset-y":X()}],start:[{start:X()}],end:[{end:X()}],top:[{top:X()}],right:[{right:X()}],bottom:[{bottom:X()}],left:[{left:X()}],visibility:["visible","invisible","collapse"],z:[{z:[Ga,"auto",Se,we]}],basis:[{basis:[kl,"full","auto",d,..._()]}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["nowrap","wrap","wrap-reverse"]}],flex:[{flex:[Be,kl,"auto","initial","none",we]}],grow:[{grow:["",Be,Se,we]}],shrink:[{shrink:["",Be,Se,we]}],order:[{order:[Ga,"first","last","none",Se,we]}],"grid-cols":[{"grid-cols":V()}],"col-start-end":[{col:G()}],"col-start":[{"col-start":$()}],"col-end":[{"col-end":$()}],"grid-rows":[{"grid-rows":V()}],"row-start-end":[{row:G()}],"row-start":[{"row-start":$()}],"row-end":[{"row-end":$()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":Q()}],"auto-rows":[{"auto-rows":Q()}],gap:[{gap:_()}],"gap-x":[{"gap-x":_()}],"gap-y":[{"gap-y":_()}],"justify-content":[{justify:[...F(),"normal"]}],"justify-items":[{"justify-items":[...z(),"normal"]}],"justify-self":[{"justify-self":["auto",...z()]}],"align-content":[{content:["normal",...F()]}],"align-items":[{items:[...z(),{baseline:["","last"]}]}],"align-self":[{self:["auto",...z(),{baseline:["","last"]}]}],"place-content":[{"place-content":F()}],"place-items":[{"place-items":[...z(),"baseline"]}],"place-self":[{"place-self":["auto",...z()]}],p:[{p:_()}],px:[{px:_()}],py:[{py:_()}],ps:[{ps:_()}],pe:[{pe:_()}],pt:[{pt:_()}],pr:[{pr:_()}],pb:[{pb:_()}],pl:[{pl:_()}],m:[{m:R()}],mx:[{mx:R()}],my:[{my:R()}],ms:[{ms:R()}],me:[{me:R()}],mt:[{mt:R()}],mr:[{mr:R()}],mb:[{mb:R()}],ml:[{ml:R()}],"space-x":[{"space-x":_()}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":_()}],"space-y-reverse":["space-y-reverse"],size:[{size:K()}],w:[{w:[d,"screen",...K()]}],"min-w":[{"min-w":[d,"screen","none",...K()]}],"max-w":[{"max-w":[d,"screen","none","prose",{screen:[u]},...K()]}],h:[{h:["screen","lh",...K()]}],"min-h":[{"min-h":["screen","lh","none",...K()]}],"max-h":[{"max-h":["screen","lh",...K()]}],"font-size":[{text:["base",r,Yo,Ci]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:[i,Se,Zm]}],"font-stretch":[{"font-stretch":["ultra-condensed","extra-condensed","condensed","semi-condensed","normal","semi-expanded","expanded","extra-expanded","ultra-expanded",qm,we]}],"font-family":[{font:[CA,we,t]}],"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:[o,Se,we]}],"line-clamp":[{"line-clamp":[Be,"none",Se,Zm]}],leading:[{leading:[s,..._()]}],"list-image":[{"list-image":["none",Se,we]}],"list-style-position":[{list:["inside","outside"]}],"list-style-type":[{list:["disc","decimal","none",Se,we]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"placeholder-color":[{placeholder:q()}],"text-color":[{text:q()}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...ke(),"wavy"]}],"text-decoration-thickness":[{decoration:[Be,"from-font","auto",Se,Ci]}],"text-decoration-color":[{decoration:q()}],"underline-offset":[{"underline-offset":[Be,"auto",Se,we]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:_()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",Se,we]}],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",Se,we]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:ne()}],"bg-repeat":[{bg:A()}],"bg-size":[{bg:pe()}],"bg-image":[{bg:["none",{linear:[{to:["t","tr","r","br","b","bl","l","tl"]},Ga,Se,we],radial:["",Se,we],conic:[Ga,Se,we]},kA,NA]}],"bg-color":[{bg:q()}],"gradient-from-pos":[{from:ce()}],"gradient-via-pos":[{via:ce()}],"gradient-to-pos":[{to:ce()}],"gradient-from":[{from:q()}],"gradient-via":[{via:q()}],"gradient-to":[{to:q()}],rounded:[{rounded:D()}],"rounded-s":[{"rounded-s":D()}],"rounded-e":[{"rounded-e":D()}],"rounded-t":[{"rounded-t":D()}],"rounded-r":[{"rounded-r":D()}],"rounded-b":[{"rounded-b":D()}],"rounded-l":[{"rounded-l":D()}],"rounded-ss":[{"rounded-ss":D()}],"rounded-se":[{"rounded-se":D()}],"rounded-ee":[{"rounded-ee":D()}],"rounded-es":[{"rounded-es":D()}],"rounded-tl":[{"rounded-tl":D()}],"rounded-tr":[{"rounded-tr":D()}],"rounded-br":[{"rounded-br":D()}],"rounded-bl":[{"rounded-bl":D()}],"border-w":[{border:ge()}],"border-w-x":[{"border-x":ge()}],"border-w-y":[{"border-y":ge()}],"border-w-s":[{"border-s":ge()}],"border-w-e":[{"border-e":ge()}],"border-w-t":[{"border-t":ge()}],"border-w-r":[{"border-r":ge()}],"border-w-b":[{"border-b":ge()}],"border-w-l":[{"border-l":ge()}],"divide-x":[{"divide-x":ge()}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":ge()}],"divide-y-reverse":["divide-y-reverse"],"border-style":[{border:[...ke(),"hidden","none"]}],"divide-style":[{divide:[...ke(),"hidden","none"]}],"border-color":[{border:q()}],"border-color-x":[{"border-x":q()}],"border-color-y":[{"border-y":q()}],"border-color-s":[{"border-s":q()}],"border-color-e":[{"border-e":q()}],"border-color-t":[{"border-t":q()}],"border-color-r":[{"border-r":q()}],"border-color-b":[{"border-b":q()}],"border-color-l":[{"border-l":q()}],"divide-color":[{divide:q()}],"outline-style":[{outline:[...ke(),"none","hidden"]}],"outline-offset":[{"outline-offset":[Be,Se,we]}],"outline-w":[{outline:["",Be,Yo,Ci]}],"outline-color":[{outline:q()}],shadow:[{shadow:["","none",y,ec,Wu]}],"shadow-color":[{shadow:q()}],"inset-shadow":[{"inset-shadow":["none",v,ec,Wu]}],"inset-shadow-color":[{"inset-shadow":q()}],"ring-w":[{ring:ge()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:q()}],"ring-offset-w":[{"ring-offset":[Be,Ci]}],"ring-offset-color":[{"ring-offset":q()}],"inset-ring-w":[{"inset-ring":ge()}],"inset-ring-color":[{"inset-ring":q()}],"text-shadow":[{"text-shadow":["none",x,ec,Wu]}],"text-shadow-color":[{"text-shadow":q()}],opacity:[{opacity:[Be,Se,we]}],"mix-blend":[{"mix-blend":[...ve(),"plus-darker","plus-lighter"]}],"bg-blend":[{"bg-blend":ve()}],"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":[Be]}],"mask-image-linear-from-pos":[{"mask-linear-from":be()}],"mask-image-linear-to-pos":[{"mask-linear-to":be()}],"mask-image-linear-from-color":[{"mask-linear-from":q()}],"mask-image-linear-to-color":[{"mask-linear-to":q()}],"mask-image-t-from-pos":[{"mask-t-from":be()}],"mask-image-t-to-pos":[{"mask-t-to":be()}],"mask-image-t-from-color":[{"mask-t-from":q()}],"mask-image-t-to-color":[{"mask-t-to":q()}],"mask-image-r-from-pos":[{"mask-r-from":be()}],"mask-image-r-to-pos":[{"mask-r-to":be()}],"mask-image-r-from-color":[{"mask-r-from":q()}],"mask-image-r-to-color":[{"mask-r-to":q()}],"mask-image-b-from-pos":[{"mask-b-from":be()}],"mask-image-b-to-pos":[{"mask-b-to":be()}],"mask-image-b-from-color":[{"mask-b-from":q()}],"mask-image-b-to-color":[{"mask-b-to":q()}],"mask-image-l-from-pos":[{"mask-l-from":be()}],"mask-image-l-to-pos":[{"mask-l-to":be()}],"mask-image-l-from-color":[{"mask-l-from":q()}],"mask-image-l-to-color":[{"mask-l-to":q()}],"mask-image-x-from-pos":[{"mask-x-from":be()}],"mask-image-x-to-pos":[{"mask-x-to":be()}],"mask-image-x-from-color":[{"mask-x-from":q()}],"mask-image-x-to-color":[{"mask-x-to":q()}],"mask-image-y-from-pos":[{"mask-y-from":be()}],"mask-image-y-to-pos":[{"mask-y-to":be()}],"mask-image-y-from-color":[{"mask-y-from":q()}],"mask-image-y-to-color":[{"mask-y-to":q()}],"mask-image-radial":[{"mask-radial":[Se,we]}],"mask-image-radial-from-pos":[{"mask-radial-from":be()}],"mask-image-radial-to-pos":[{"mask-radial-to":be()}],"mask-image-radial-from-color":[{"mask-radial-from":q()}],"mask-image-radial-to-color":[{"mask-radial-to":q()}],"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":B()}],"mask-image-conic-pos":[{"mask-conic":[Be]}],"mask-image-conic-from-pos":[{"mask-conic-from":be()}],"mask-image-conic-to-pos":[{"mask-conic-to":be()}],"mask-image-conic-from-color":[{"mask-conic-from":q()}],"mask-image-conic-to-color":[{"mask-conic-to":q()}],"mask-mode":[{mask:["alpha","luminance","match"]}],"mask-origin":[{"mask-origin":["border","padding","content","fill","stroke","view"]}],"mask-position":[{mask:ne()}],"mask-repeat":[{mask:A()}],"mask-size":[{mask:pe()}],"mask-type":[{"mask-type":["alpha","luminance"]}],"mask-image":[{mask:["none",Se,we]}],filter:[{filter:["","none",Se,we]}],blur:[{blur:Le()}],brightness:[{brightness:[Be,Se,we]}],contrast:[{contrast:[Be,Se,we]}],"drop-shadow":[{"drop-shadow":["","none",b,ec,Wu]}],"drop-shadow-color":[{"drop-shadow":q()}],grayscale:[{grayscale:["",Be,Se,we]}],"hue-rotate":[{"hue-rotate":[Be,Se,we]}],invert:[{invert:["",Be,Se,we]}],saturate:[{saturate:[Be,Se,we]}],sepia:[{sepia:["",Be,Se,we]}],"backdrop-filter":[{"backdrop-filter":["","none",Se,we]}],"backdrop-blur":[{"backdrop-blur":Le()}],"backdrop-brightness":[{"backdrop-brightness":[Be,Se,we]}],"backdrop-contrast":[{"backdrop-contrast":[Be,Se,we]}],"backdrop-grayscale":[{"backdrop-grayscale":["",Be,Se,we]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[Be,Se,we]}],"backdrop-invert":[{"backdrop-invert":["",Be,Se,we]}],"backdrop-opacity":[{"backdrop-opacity":[Be,Se,we]}],"backdrop-saturate":[{"backdrop-saturate":[Be,Se,we]}],"backdrop-sepia":[{"backdrop-sepia":["",Be,Se,we]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":_()}],"border-spacing-x":[{"border-spacing-x":_()}],"border-spacing-y":[{"border-spacing-y":_()}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["","all","colors","opacity","shadow","transform","none",Se,we]}],"transition-behavior":[{transition:["normal","discrete"]}],duration:[{duration:[Be,"initial",Se,we]}],ease:[{ease:["linear","initial",k,Se,we]}],delay:[{delay:[Be,Se,we]}],animate:[{animate:["none",M,Se,we]}],backface:[{backface:["hidden","visible"]}],perspective:[{perspective:[N,Se,we]}],"perspective-origin":[{"perspective-origin":T()}],rotate:[{rotate:Ie()}],"rotate-x":[{"rotate-x":Ie()}],"rotate-y":[{"rotate-y":Ie()}],"rotate-z":[{"rotate-z":Ie()}],scale:[{scale:Te()}],"scale-x":[{"scale-x":Te()}],"scale-y":[{"scale-y":Te()}],"scale-z":[{"scale-z":Te()}],"scale-3d":["scale-3d"],skew:[{skew:ft()}],"skew-x":[{"skew-x":ft()}],"skew-y":[{"skew-y":ft()}],transform:[{transform:[Se,we,"","none","gpu","cpu"]}],"transform-origin":[{origin:T()}],"transform-style":[{transform:["3d","flat"]}],translate:[{translate:mt()}],"translate-x":[{"translate-x":mt()}],"translate-y":[{"translate-y":mt()}],"translate-z":[{"translate-z":mt()}],"translate-none":["translate-none"],accent:[{accent:q()}],appearance:[{appearance:["none","auto"]}],"caret-color":[{caret:q()}
vendor: 4,695 bytes, line 10
10],"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",Se,we]}],"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":_()}],"scroll-mx":[{"scroll-mx":_()}],"scroll-my":[{"scroll-my":_()}],"scroll-ms":[{"scroll-ms":_()}],"scroll-me":[{"scroll-me":_()}],"scroll-mt":[{"scroll-mt":_()}],"scroll-mr":[{"scroll-mr":_()}],"scroll-mb":[{"scroll-mb":_()}],"scroll-ml":[{"scroll-ml":_()}],"scroll-p":[{"scroll-p":_()}],"scroll-px":[{"scroll-px":_()}],"scroll-py":[{"scroll-py":_()}],"scroll-ps":[{"scroll-ps":_()}],"scroll-pe":[{"scroll-pe":_()}],"scroll-pt":[{"scroll-pt":_()}],"scroll-pr":[{"scroll-pr":_()}],"scroll-pb":[{"scroll-pb":_()}],"scroll-pl":[{"scroll-pl":_()}],"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",Se,we]}],fill:[{fill:["none",...q()]}],"stroke-w":[{stroke:[Be,Yo,Ci,Zm]}],stroke:[{stroke:["none",...q()]}],"forced-color-adjust":[{"forced-color-adjust":["auto","none"]}]},conflictingClassGroups:{overflow:["overflow-x","overflow-y"],overscroll:["overscroll-x","overscroll-y"],inset:["inset-x","inset-y","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","pt","pr","pb","pl"],px:["pr","pl"],py:["pt","pb"],m:["mx","my","ms","me","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-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-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-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-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"]}},DA=cA(_A);function Ge(...e){return DA(Hk(e))}function Dt(){const e=S.useContext(Kw);if(!e)throw new Error("useAuth must be used within an AuthProvider");return e}function RA(e,t){const{user:r}=Dt(),i=t||r?.uid;return pn({queryKey:["folderContents",e,i],queryFn:async()=>
10{if(!r||!i)throw new Error("Not authenticated");const o=tn(It(Ne,"folders"),Et("userId","==",i),Et("parentId","==",e),yr("name")),s=tn(It(Ne,"documents"),Et("userId","==",i),Et("folderId","==",e),yr("updatedAt","desc")),[u,d]=await Promise.all([gn(o),gn(s)]),p=u.docs.map(y=>({id:y.id,...y.data()})),h=d.docs.map(y=>({id:y.id,...y.data()}));return{folders:p,documents:h}},enabled:!!r&&!!i})}function oS(){const{user:e}=Dt();return pn({queryKey:["rootFolder",e?.uid],queryFn:async()=>{if(!e)throw new Error("Not authenticated");const t=tn(It(Ne,"folders"),Et("userId","==",e.uid),Et("parentId","==",null),Nc(1)),r=await gn(t);if(r.empty)return null;const i=r.docs[0];return{id:i.id,...i.data()}},enabled:!!e})}function sS(){const{user:e}=Dt();return pn({queryKey:["allFolders",e?.uid],queryFn:async()=>{if(!e)throw new Error("Not authenticated");const t=tn(It(Ne,"folders"),Et("userId","==",e.uid),yr("path"));return(await gn(t)).docs.map(i=>({id:i.id,...i.data()}))},enabled:!!e})}function uS(e){const{data:t,isLoading:r}=sS();return{data:S.useMemo(()=>{if(!e||!t)return[];const o=new Map(t.map(d=>[d.id,d])),s=[];let u=e;for(;u;){const d=o.get(u);if(!d)break;s.unshift({id:u,name:d.name,path:d.parentId?`/folder/${u}`:"/",depth:d.depth}),u=d.parentId}return s},[e,t]),isLoading:r}}async function OA(e,t){const r=`${e}_${t}`,i=await Kt(Fe(Ne,"folderShares",r));if(i.exists())return{hasAccess:!0,role:i.data().role};const o=await Kt(Fe(Ne,"folders",t));if(o.exists()){const s=o.data()?.parentId;if(s){const u=await Kt(Fe(Ne,"folderShares",`${e}_${s}`));if(u.exists())return{hasAccess:!0,role:u.data().role}}}return{hasAccess:!1,role:null}}function zA(e,t){const{user:r}=Dt();return pn({queryKey:["document",e,r?.uid,t],queryFn:async()=>{if(!r||!e)return null;const i=Fe(Ne,"documents",e),o=await Kt(i);if(!o.exists())return null;const s=o.data();if(s.userId!==r.uid){const{hasAccess:x}=await OA(r.uid,s.folderId);if(!x)return null}const u=s.currentVersion,p=t!=null&&u!=null&&t!==u?It(Ne,"documents",e,"versions",String(t),"blocks"):It(Ne,"documents",e,"blocks"),h=tn(p,yr("order","asc")),v=(await gn(h)).docs.map(x=>({id:x.id,...x.data()}));return{id:e,...s,blocks:v}},enabled:!!r&&!!e})}function MA(e,t){return pn({queryKey:["public-document",e,t],queryFn:async()=>{if(!e)return null;const r=Fe(Ne,"documents",e),i=await Kt(r);if(!i.exists())return null;const o=i.data(),s=o.currentVersion,d=t!=null&&s!=null&&t!==s?It(Ne,"documents",e,"versions",String(t),"blocks"):It(Ne,"documents",e,"blocks"),p=tn(d,yr("order","asc")),y=(await gn(p)).docs.map(v=>({id:v.id,...v.data()}));return{id:e,...o,blocks:y}},enabled:!!e,retry:!1})}function cS(){const e=Fn();return nn({mutationFn:async({documentId:t,visibility:r})=>{const i=Fe(Ne,"documents",t);await va(i,{visibility:r,updatedAt:Ft()})},onSuccess:(t,{documentId:r})=>{e.invalidateQueries({queryKey:["document",r]}),e.invalidateQueries({queryKey:["public-document",r]}),e.invalidateQueries({queryKey:["folderContents"]})}})}function LA(){const e="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789";return`sd_live_${Array.from(crypto.getRandomValues(new Uint8Array(32)),r=>e[r%e.length]).join("")}`}function BA(e){return e.substring(0,12)}async function FA(e){const t=new TextEncoder,i=t.encode("bc5af25f9ebaeac81e2aaea94a9ed09ded4cbc40c29959ec96221b8cf8c5e4f8"),o=await crypto.subtle.importKey("raw",i,{name:"HMAC",hash:"SHA-256"},!1,["sign"]),s=await crypto.subtle.sign("HMAC",o,t.encode(e));return Array.from(new Uint8Array(s)).map(d=>d.toString(16).padStart(2,"0")).join("")}function IA(){const{user:e}=Dt();return pn({queryKey:["apiKeys",e?.uid],queryFn:async()=>{if(!e)throw new Error("Not authenticated");const t=tn(It(Ne,"apiKeys"),Et("userId","==",e.uid),Et("revokedAt","==",null),yr("createdAt","desc"));return(await gn(t)).docs.map(i=>({id:i.id,...i.data()}))},enabled:!!e})}function UA(){const{user:e}=Dt(),t=Fn();return nn({mutationFn:async r=>{if(!e)throw new Error("Not authenticated");const i=LA(),o=BA(i),s=await FA(i),u=s;return await hs(Fe(Ne,"apiKeys",u),{userId:e.uid,keyHash:s,keyPrefix:o,name:r.name,roles:r.roles,lastUsedAt:null,expiresAt:null,createdAt:Ft(),revokedAt:null}),{id:u,key:i,keyPrefix:o,name:r.name,roles:r.roles,createdAt:new Date}},onSuccess:()=>{t.invalidateQueries({queryKey:["apiKeys"]})}})}function PA(){const{user:e}=Dt(),t=Fn();return nn({mutationFn:async r=>{if(!e)throw new Error("Not authenticated");await va(Fe(Ne,"apiKeys",r),{revokedAt:Ft()})},onSuccess:()=>{t.invalidateQueries({queryKey:["apiKeys"]})}})}function VA(){const{user:e}=Dt(),t=Fn();return nn({mutationFn:async r=>{if(!e)throw new Error("Not authenticated");const i=It(Ne,"folders"),o=Fe(i),s={userId:e.uid,parentId:r.parentId,name:r.name.trim(),path:r.parentPath==="/"?`/${r.name.trim()}`:`${r.parentPath}/${r.name.trim()}`,depth:r.parentDepth+1,createdAt:Ft(),updatedAt:Ft()};return await hs(o,s),{id:o.id,...s}},onSuccess:()=>{t.invalidateQueries({queryKey:["folders"]}),t.invalidateQueries({queryKey:["folderContents"]}),t.invalidateQueries({queryKey:["allFolders"]})}})}function ed(){const{user:e}=Dt(),t=Fn();return nn({mutationFn:async({itemId:r,itemType:i,newName:o})=>{if(!e)throw new Error("Not authenticated");const s=i==="folder"?"folders":"documents",u=i==="folder"?"name":"title";await va(Fe(Ne,s,r),{[u]:o,...i==="document"?{titleLower:o.toLowerCase()}:{},updatedAt:Ft()})},onSuccess:(r,{itemType:i})=>{t.invalidateQueries({queryKey:["folders"]}),t.invalidateQueries({queryKey:["folderContents"]}),t.invalidateQueries({queryKey:["allFolders"]}),i==="document"&&t.invalidateQueries({queryKey:["document"]})}})}function fp(){const{user:e}=Dt(),t=Fn();return nn({mutationFn:async({itemId:r,itemType:i,targetFolderId:o})=>{if(!e)throw new Error("Not authenticated");const s=await Kt(Fe(Ne,"folders",o));if(!s.exists())throw new Error("Target folder not found");const u={id:s.id,...s.data()},d=i==="folder"?"folders":"documents";if(i==="folder"){const p=await Kt(Fe(Ne,"folders",r));if(!p.exists())throw new Error("Folder not found");const h=p.data(),y=u.path==="/"?`/${h.name}`:`${u.path}/${h.name}`;await va(Fe(Ne,d,r),{parentId:o,path:y,depth:u.depth+1,updatedAt:Ft()})}else await va(Fe(Ne,d,r),{folderId:o,updatedAt:Ft()})},onSuccess:()=>{t.invalidateQueries({queryKey:["folders"]}),t.invalidateQueries({queryKey:["folderContents"]}),t.invalidateQueries({queryKey:["allFolders"]}),t.invalidateQueries({queryKey:["document"]})}})}async function dS(e,t){const r=tn(It(Ne,"documents"),Et("userId","==",t),Et("folderId","==",e)),i=await gn(r);for(const u of i.docs){const d=await gn(It(u.ref,"blocks"));if(!d.empty){const p=Qa(Ne);d.docs.forEach(h=>{p.delete(h.ref)}),await p.commit()}await Cc(u.ref)}const o=tn(It(Ne,"folders"),Et("userId","==",t),Et("parentId","==",e)),s=await gn(o);for(const u of s.docs)await dS(u.id,t);await Cc(Fe(Ne,"folders",e))}function mp(){const{user:e}=Dt(),t=Fn();return nn({mutationFn:async({itemId:r,itemType:i})=>{if(!e)throw new Error("Not authenticated");if(i==="document"){const o=Fe(Ne,"documents",r),s=await gn(It(o,"blocks"));if(!s.empty){const u=Qa(Ne);s.docs.forEach(d=>{u.delete(d.ref)}),await u.commit()}await Cc(o)}else await dS(r,e.uid)},onSuccess:()=>{t.invalidateQueries({queryKey:["folders"]}),t.invalidateQueries({queryKey:["folderContents"]}),t.invalidateQueries({queryKey:["allFolders"]})}})}function HA(){const e=Date.now().toString(36),t=Math.random().toString(36).slice(2,8);return`block_${e}_${t}`}function qA(e){const{user:t}=Dt(),r=Fn(),i=async()=>{const d=Fe(Ne,"documents",e);await va(d,{updatedAt:Ft()})},o=nn({mutationFn:async({blockId:d,updates:p})=>{if(!t)throw new Error("Not authenticated");const h=Fe(Ne,"documents",e,"blocks",d);await va(h,{...p,updatedAt:Ft()}),await i()},onSuccess:()=>{r.invalidateQueries({queryKey:["document",e]})}}),s=nn({mutationFn:async({order:d,type:p,content:h,metadata:y})=>{if(!t)throw new Error("Not authenticated");const v=HA(),x=Fe(Ne,"documents",e,"blocks",v),b=qw.now(),E={id:v,order:d,type:p,content:h,metadata:y,createdAt:b,updatedAt:b};return await hs(x,{order:d,type:p,content:h,metadata:y||null,createdAt:Ft(),updatedAt:Ft()}),await i(),E},onSuccess:()=>{r.invalidateQueries({queryKey:["document",e]})}}),u=nn({mutationFn:async d=>{if(!t)throw new Error("Not authenticated");const p=Fe(Ne,"documents",e,"blocks",d);await Cc(p),await i()},onSuccess:()=>{r.invalidateQueries({queryKey:["document",e]})}});return{updateBlock:o,addBlock:s,deleteBlock:u}}const hp=S.createContext(null);function zi(){const e=S.useContext(hp);if(!e)throw new Error("useDocumentEdit must be used within a DocumentEditProvider");return e}const pp="https://ingress.surfacedocs.dev";async function gp(){const e=Bl.currentUser;if(!e)throw new Error("Not authenticated");return{Authorization:`Bearer ${await e.getIdToken()}`,"Content-Type":"application/json"}}function td(){const{user:e}=Dt(),[t,r]=S.useState("free"),[i,o]=S.useState(null),[s,u]=S.useState(!0);S.useEffect(()=>{if(!e)return;const h=Zw(Fe(Ne,"users",e.uid),y=>
10{if(y.exists()){const v=y.data();r(v.plan||"free"),o(v.stripeCustomerId??null)}u(!1)});return()=>h()},[e]);const{data:d,isLoading:p}=pn({queryKey:["billing-usage",e?.uid],queryFn:async()=>{const h=await gp(),y=await fetch(`${pp}/v1/billing/usage`,{headers:h});if(!y.ok)throw new Error("Failed to fetch usage");return y.json()},enabled:!!e,staleTime:1e3*60*5,retry:1});return{plan:t,usage:d?.documents_used??0,limit:d?.documents_limit??100,resetDate:d?.reset_date??"",stripeCustomerId:i,isLoading:s||p}}function ZA(){return nn({mutationFn:async()=>{const e=await gp(),t=await fetch(`${pp}/v1/billing/checkout`,{method:"POST",headers:e,body:JSON.stringify({})});if(!t.ok)throw new Error("Failed to create checkout session");return(await t.json()).url}})}function $A(){return nn({mutationFn:async()=>{const e=await gp(),t=await fetch(`${pp}/v1/billing/portal`,{method:"POST",headers:e,body:JSON.stringify({})});if(!t.ok)throw new Error("Failed to create portal session");return(await t.json()).url}})}function KA(){const{user:e}=Dt(),[t,r]=S.useState([]),[i,o]=S.useState(!0);return S.useEffect(()=>{if(!e)return;const s=tn(It(Ne,"folderShares"),Et("sharedWithUserId","==",e.uid),Et("status","==","active")),u=Zw(s,d=>{const p=d.docs.map(h=>({id:h.id,...h.data()}));r(p),o(!1)},d=>{console.error("Failed to listen for shared folders:",d),r([]),o(!1)});return()=>u()},[e]),e?{shares:t,isLoading:i}:{shares:[],isLoading:!1}}const nd="https://ingress.surfacedocs.dev";async function rd(){const e=Bl.currentUser;if(!e)throw new Error("Not authenticated");return{Authorization:`Bearer ${await e.getIdToken()}`,"Content-Type":"application/json"}}function GA(e){return pn({queryKey:["folderShares",e],queryFn:async()=>{const t=await rd(),r=await fetch(`${nd}/v1/sharing/folders/${e}/shares`,{headers:t});if(!r.ok)throw new Error("Failed to fetch shares");return(await r.json()).shares},enabled:!!e})}function YA(){const e=Fn();return nn({mutationFn:async({folderId:t,email:r,role:i})=>{const o=await rd(),s=await fetch(`${nd}/v1/sharing/folders/${t}/share`,{method:"POST",headers:o,body:JSON.stringify({email:r,role:i})});if(!s.ok){const u=await s.json();throw new Error(u.error?.message||"Failed to share folder")}return s.json()},onSuccess:(t,r)=>{e.invalidateQueries({queryKey:["folderShares",r.folderId]})}})}function XA(){const e=Fn();return nn({mutationFn:async({shareId:t,role:r})=>{const i=await rd(),o=await fetch(`${nd}/v1/sharing/shares/${t}`,{method:"PATCH",headers:i,body:JSON.stringify({role:r})});if(!o.ok)throw new Error("Failed to update share role");return o.json()},onSuccess:(t,r)=>{e.invalidateQueries({queryKey:["folderShares",r.folderId]})}})}function QA(){const e=Fn();return nn({mutationFn:async({shareId:t})=>{const r=await rd(),i=await fetch(`${nd}/v1/sharing/shares/${t}`,{method:"DELETE",headers:r});if(!i.ok)throw new Error("Failed to remove share");return i.json()},onSuccess:(t,r)=>{e.invalidateQueries({queryKey:["folderShares",r.folderId]})}})}function JA(e){const{user:t}=Dt();return pn({queryKey:["shareAccess",e,t?.uid],queryFn:async()=>{if(!t||!e)return{isShared:!1,role:null,ownerId:null,ownerDisplayName:null};const r=`${t.uid}_${e}`,i=Fe(Ne,"folderShares",r),o=await Kt(i);if(o.exists()){const d=o.data();return{isShared:!0,role:d.role,ownerId:d.ownerId,ownerDisplayName:d.ownerDisplayName||null}}const s=Fe(Ne,"folders",e),u=await Kt(s);if(u.exists()){const p=u.data()?.parentId;if(p){const h=`${t.uid}_${p}`,y=Fe(Ne,"folderShares",h),v=await Kt(y);if(v.exists()){const E=v.data();return{isShared:!0,role:E.role,ownerId:E.ownerId,ownerDisplayName:E.ownerDisplayName||null}}const x=Fe(Ne,"folders",p),b=await Kt(x);if(b.exists()){const N=b.data()?.parentId;if(N){const C=`${t.uid}_${N}`,k=Fe(Ne,"folderShares",C),M=await Kt(k);if(M.exists()){const O=M.data();return{isShared:!0,role:O.role,ownerId:O.ownerId,ownerDisplayName:O.ownerDisplayName||null}}}}}}return{isShared:!1,role:null,ownerId:null,ownerDisplayName:null}},enabled:!!t&&!!e})}function WA(){const{user:e}=Dt(),t=Fn(),{data:r}=pn({queryKey:["userData",e?.uid],queryFn:async()=>{if(!e)return null;const y=await Kt(Fe(Ne,"users",e.uid));return y.exists()?y.data():null},enabled:!!e,staleTime:1e3*60*5}),[i]=S.useState(()=>qw.fromDate(new Date(Date.now()-10080*60*1e3))),o=r?.notificationsLastSeenAt??i,{data:s=[],isLoading:u,error:d}=pn({queryKey:["notifications",e?.uid,o.toMillis()],queryFn:async()=>
10{if(!e)return[];const y=tn(It(Ne,"documents"),Et("userId","==",e.uid),Et("updatedAt",">",o),yr("updatedAt","desc"),Nc(20));return(await gn(y)).docs.map(x=>{const b=x.data(),E=b.createdAt.toMillis()>o.toMillis()?"new":"updated";return{id:x.id,documentId:x.id,title:b.title,category:E,updatedAt:b.updatedAt}})},enabled:!!e&&!!r,staleTime:1e3*60*2}),{mutate:p,isPending:h}=nn({mutationFn:async()=>{if(!e)throw new Error("Not authenticated");await va(Fe(Ne,"users",e.uid),{notificationsLastSeenAt:Ft()})},onSuccess:()=>{t.invalidateQueries({queryKey:["userData"]}),t.invalidateQueries({queryKey:["notifications"]})}});return{notifications:s,unreadCount:s.length,isLoading:u,error:d,markAllAsRead:p,isMarkingRead:h}}function fS(e){return pn({queryKey:["document-versions",e],queryFn:async()=>{if(!e)return[];const t=tn(It(Ne,"documents",e,"versions"),yr("versionNumber","desc"));return(await gn(t)).docs.map(i=>({...i.data()}))},enabled:!!e})}function eT(){const e=Fn();return nn({mutationFn:async({documentId:t,versionNumber:r})=>{const i=Fe(Ne,"documents",t),o=await Kt(i);if(!o.exists())throw new Error("Document not found");const s=o.data(),u=s.currentVersion??1,d=s.versionCount??1,p=tn(It(Ne,"documents",t,"blocks"),yr("order","asc")),h=await gn(p),y=tn(It(Ne,"documents",t,"versions",String(r),"blocks"),yr("order","asc")),v=await gn(y),x=Fe(Ne,"documents",t,"versions",String(r)),b=await Kt(x);if(!b.exists())throw new Error("Version not found");const E=500,N=Fe(Ne,"documents",t,"versions",String(u));let C=Qa(Ne),k=0;C.set(N,{versionNumber:u,title:s.title,blockCount:s.blockCount??0,metadata:s.metadata??null,createdAt:s.createdAt??Ft()}),k++;for(const T of h.docs){const L=Fe(Ne,"documents",t,"versions",String(u),"blocks",T.id);C.set(L,T.data()),k++,k>=E&&(await C.commit(),C=Qa(Ne),k=0)}k>0&&(await C.commit(),C=Qa(Ne),k=0);for(const T of h.docs)C.delete(T.ref),k++,k>=E&&(await C.commit(),C=Qa(Ne),k=0);k>0&&(await C.commit(),C=Qa(Ne),k=0);const M=b.data();for(const T of v.docs){const L=Fe(Ne,"documents",t,"blocks",T.id);C.set(L,T.data()),k++,k>=E&&(await C.commit(),C=Qa(Ne),k=0)}const O=u+1,B=d+1;return C.update(i,{title:M.title,blockCount:M.blockCount??v.size,metadata:M.metadata??null,currentVersion:O,versionCount:B,updatedAt:Ft()}),k++,k>0&&await C.commit(),{newVersion:O,newVersionCount:B}},onSuccess:(t,r)=>{e.invalidateQueries({queryKey:["document",r.documentId]}),e.invalidateQueries({queryKey:["document-versions",r.documentId]})}})}function tT({q:e,tag:t,folderId:r}){const{user:i}=Dt(),o=!!e&&e.length>=2,s=!!t&&t.length>0;return pn({queryKey:["searchDocuments",e,t,r],queryFn:async()=>{if(!i)throw new Error("Not authenticated");let d=tn(It(Ne,"documents"),Et("userId","==",i.uid));if(r&&(d=tn(d,Et("folderId","==",r))),o){const y=e.toLowerCase();d=tn(d,Et("titleLower",">=",y),Et("titleLower","<=",y+""),yr("titleLower"),Nc(s?60:20))}else s&&(d=tn(d,Et("metadata.tags","array-contains",t),yr("updatedAt","desc"),Nc(20)));let h=(await gn(d)).docs.map(y=>({id:y.id,...y.data()}));return o&&s&&(h=h.filter(y=>y.metadata?.tags?.includes(t)??!1)),h.slice(0,20)},enabled:!!i&&(o||s),staleTime:3e4})}function nT(e){const r=Date.now()-e.toMillis(),i=Math.floor(r/1e3),o=Math.floor(i/60),s=Math.floor(o/60),u=Math.floor(s/24);return i<60?"just now":o<60?`${o}m ago`:s<24?`${s}h ago`:u===1?"Yesterday":u<7?`${u}d ago`:e.toDate().toLocaleDateString()}function rT({notifications:e,isLoading:t,markAllAsRead:r,isMarkingRead:i,onClose:o,align:s="right"}){return f.jsxs("div",{className:`absolute top-full mt-2 w-80 max-w-[calc(100vw-2rem)] bg-card border rounded-lg shadow-lg z-50 ${s==="left"?"left-0":"right-0"}`,children:[f.jsxs("div",{className:"flex items-center justify-between px-4 py-3 border-b",children:[f.jsx("h3",{className:"font-semibold text-sm",children:"Notifications"}),e.length>0&&f.jsxs("button",{type:"button",onClick:()=>r(),disabled:i,className:"flex items-center gap-1 text-xs text-muted-foreground hover:text-foreground transition-colors disabled:opacity-50",children:[i?f.jsx(st,{className:"h-3.5 w-3.5 animate-spin"}):f.jsx(Qj,{className:"h-3.5 w-3.5"}),"Mark all read"]})]}),t?f.jsx("div",{className:"flex justify-center py-8",children:f.jsx(st,{className:"h-5 w-5 animate-spin text-muted-foreground"})}):e.length===0?f.jsxs("div",{className:"py-8 text-center",children:[f.jsx(_w,{className:"h-8 w-8 mx-auto text-muted-foreground
10/50 mb-2"}),f.jsx("p",{className:"text-sm font-medium text-muted-foreground",children:"No new activity"}),f.jsx("p",{className:"text-xs text-muted-foreground/70 mt-1",children:"You're all caught up!"})]}):f.jsx("div",{className:"max-h-[400px] overflow-y-auto",children:e.map(u=>f.jsxs(Mn,{to:`/d/${u.documentId}`,onClick:o,className:"flex items-start gap-3 px-4 py-3 hover:bg-accent transition-colors border-b last:border-b-0",children:[u.category==="new"?f.jsxs("span",{className:"flex items-center gap-1 text-[10px] font-medium px-1.5 py-0.5 rounded-full bg-green-100 text-green-700 dark:bg-green-900/30 dark:text-green-400 flex-shrink-0 mt-0.5",children:[f.jsx(Jj,{className:"h-3 w-3"}),"New"]}):f.jsxs("span",{className:"flex items-center gap-1 text-[10px] font-medium px-1.5 py-0.5 rounded-full bg-blue-100 text-blue-700 dark:bg-blue-900/30 dark:text-blue-400 flex-shrink-0 mt-0.5",children:[f.jsx(Wj,{className:"h-3 w-3"}),"Updated"]}),f.jsxs("div",{className:"min-w-0 flex-1",children:[f.jsx("p",{className:"text-sm font-medium truncate",children:u.title}),f.jsx("p",{className:"text-xs text-muted-foreground mt-0.5",children:nT(u.updatedAt)})]})]},u.id))})]})}function mS({align:e="right"}){const[t,r]=S.useState(!1),i=S.useRef(null),{notifications:o,unreadCount:s,isLoading:u,markAllAsRead:d,isMarkingRead:p}=WA();S.useEffect(()=>{function y(x){i.current&&!i.current.contains(x.target)&&r(!1)}function v(x){x.key==="Escape"&&r(!1)}return t&&(document.addEventListener("mousedown",y),document.addEventListener("keydown",v)),()=>{document.removeEventListener("mousedown",y),document.removeEventListener("keydown",v)}},[t]);const h=s>99?"99+":s;return f.jsxs("div",{ref:i,className:"relative",children:[f.jsxs("button",{type:"button",onClick:()=>r(!t),className:"p-2 hover:bg-accent rounded-md transition-colors relative","aria-label":`Notifications${s>0?` (${s} unread)`:""}`,children:[f.jsx(_w,{className:"h-5 w-5"}),s>0&&f.jsx("span",{className:"absolute -top-0.5 -right-0.5 min-w-[18px] h-[18px] flex items-center justify-center rounded-full bg-red-500 text-white text-[10px] font-bold px-1 leading-none",children:h})]}),t&&f.jsx(rT,{notifications:o,isLoading:u,markAllAsRead:d,isMarkingRead:p,onClose:()=>r(!1),align:e})]})}const aT=[{name:"Dashboard",href:"/",icon:ap},{name:"API Keys",href:"/settings/api-keys",icon:ip},{name:"Billing",href:"/settings/billing",icon:wh}];function iT({open:e,onClose:t,collapsed:r,onToggleCollapse:i}){const o=up(),{user:s,signOut:u}=Dt(),{shares:d,isLoading:p}=KA(),h=async()=>{try{await u()}catch(y){console.error("Failed to sign out:",y)}};return f.jsxs(f.Fragment,{children:[e&&f.jsx("div",{className:"fixed inset-0 z-40 bg-black/50 md:hidden",onClick:t}),f.jsxs("aside",{className:Ge("fixed inset-y-0 left-0 z-50 w-64 bg-card border-r transform transition-transform duration-200 ease-in-out flex flex-col",r?"md:-translate-x-full":"md:translate-x-0",e?"translate-x-0":"-translate-x-full"),children:[f.jsxs("div",{className:"flex h-16 items-center justify-between px-4 border-b flex-shrink-0",children:[f.jsxs(Mn,{to:"/",className:"flex items-center gap-2 font-semibold",children:[f.jsx(Dw,{className:"h-6 w-6"}),f.jsx("span",{children:"SurfaceDocs"})]}),f.jsxs("div",{className:"flex items-center gap-1",children:[f.jsx(mS,{align:"left"}),f.jsx("button",{type:"button",onClick:i,className:"hidden md:inline-flex p-2 hover:bg-accent rounded-md","aria-label":"Collapse sidebar",children:f.jsx(ek,{className:"h-5 w-5 text-muted-foreground"})}),f.jsx("button",{type:"button",onClick:t,className:"md:hidden p-2 hover:bg-accent rounded-md","aria-label":"Close sidebar",children:f.jsx(_r,{className:"h-5 w-5"})})]})]}),f.jsx("nav",{className:"p-4 space-y-1 flex-shrink-0",children:aT.map(y=>{const v=o.pathname===y.href;return f.jsxs(Mn,{to:y.href,onClick:t,className:Ge("flex items-center gap-3 px-3 py-2 rounded-md text-sm font-medium transition-colors",v?"bg-primary text-primary-foreground":"text-muted-foreground hover:bg-accent hover:text-accent-foreground"),children:[f.jsx(y.icon,{className:"h-5 w-5"}),y.name]},y.name)})}),f.jsxs("div",{className:"flex-1 border-t overflow-y-auto",children:[f.jsx("div",{className:"px-4 py-3",children:f.jsx("p",{className:"text-xs font-medium text-muted-foreground uppercase tracking-wider",children:"Shared with you"})}),p?f.jsx("div",{className:"flex justify-center py-4",children:f.jsx(st,{className:"h-5 w-5 animate-spin text-muted-foreground"})}):d.length===0?f.jsxs("div",{className:"px-4 py-8 text-center",children:[f.jsx(Rw,{className:"h-8 w-8 mx-auto text-muted-foreground
10/50 mb-2"}),f.jsx("p",{className:"text-sm text-muted-foreground",children:"No shared folders"})]}):f.jsx("div",{className:"px-2 space-y-0.5",children:d.map(y=>{const v=o.pathname===`/folder/${y.folderId}`;return f.jsxs(Mn,{to:`/folder/${y.folderId}`,onClick:t,className:Ge("flex items-center gap-2 px-3 py-2 rounded-md text-sm transition-colors",v?"bg-primary text-primary-foreground":"text-muted-foreground hover:bg-accent hover:text-accent-foreground"),children:[f.jsx(Qc,{className:"h-4 w-4 text-amber-500 flex-shrink-0"}),f.jsxs("div",{className:"min-w-0 flex-1",children:[f.jsx("p",{className:"truncate font-medium text-sm",children:y.folderName}),f.jsx("p",{className:"truncate text-xs opacity-70",children:y.ownerDisplayName||y.ownerEmail})]}),f.jsx("span",{className:Ge("text-[10px] px-1.5 py-0.5 rounded-full flex-shrink-0",y.role==="editor"?"bg-blue-100 text-blue-700 dark:bg-blue-900/30 dark:text-blue-400":"bg-gray-100 text-gray-600 dark:bg-gray-800 dark:text-gray-400"),children:y.role})]},y.id)})})]}),f.jsx("div",{className:"border-t p-4 flex-shrink-0",children:s&&f.jsxs("div",{className:"flex items-center gap-3",children:[s.photoURL?f.jsx("img",{src:s.photoURL,alt:s.displayName||"User",className:"h-9 w-9 rounded-full",referrerPolicy:"no-referrer"}):f.jsx("div",{className:"h-9 w-9 rounded-full bg-primary flex items-center justify-center text-primary-foreground text-sm font-medium",children:s.displayName?.charAt(0)||s.email?.charAt(0)||"?"}),f.jsxs("div",{className:"flex-1 min-w-0",children:[f.jsx("p",{className:"text-sm font-medium truncate",children:s.displayName||"User"}),f.jsx("p",{className:"text-xs text-muted-foreground truncate",children:s.email})]}),f.jsx("button",{type:"button",onClick:h,className:"p-2 hover:bg-accent rounded-md transition-colors","aria-label":"Sign out",title:"Sign out",children:f.jsx(tk,{className:"h-4 w-4 text-muted-foreground"})})]})})]})]})}const hS="surfacedocs:sidebar-collapsed";function lT(){try{return localStorage.getItem(hS)==="true"}catch{return!1}}function oT(){const[e,t]=S.useState(!1),[r,i]=S.useState(lT);S.useEffect(()=>{try{localStorage.setItem(hS,String(r))}catch{}},[r]);const o=S.useCallback(()=>{i(s=>!s)},[]);return f.jsxs("div",{className:"min-h-screen bg-background",children:[f.jsx(iT,{open:e,onClose:()=>t(!1),collapsed:r,onToggleCollapse:o}),f.jsxs("div",{className:r?"transition-[padding] duration-200 ease-in-out":"md:pl-64 transition-[padding] duration-200 ease-in-out",children:[f.jsxs("div",{className:"sticky top-0 z-30 flex md:hidden h-14 items-center gap-4 border-b bg-background/95 backdrop-blur px-4",children:[f.jsx("button",{type:"button",onClick:()=>t(!0),className:"p-2 hover:bg-accent rounded-md","aria-label":"Open menu",children:f.jsx(nk,{className:"h-5 w-5"})}),f.jsx("span",{className:"font-semibold flex-1",children:"SurfaceDocs"}),f.jsx(mS,{})]}),r&&f.jsx("button",{type:"button",onClick:o,className:"hidden md:flex fixed top-3 left-3 z-30 p-2 hover:bg-accent bg-background border rounded-md shadow-sm transition-opacity","aria-label":"Expand sidebar",children:f.jsx(rk,{className:"h-5 w-5 text-muted-foreground"})}),f.jsx("main",{className:"p-4 md:p-6",children:f.jsx(gk,{})})]})]})}function sT({children:e}){const{isAuthenticated:t,isLoading:r}=Dt(),i=up();return r?f.jsx("div",{className:"min-h-screen flex items-center justify-center",children:f.jsx(st,{className:"h-8 w-8 animate-spin text-muted-foreground"})}):t?f.jsx(f.Fragment,{children:e}):f.jsx(yk,{to:"/login",state:{from:i},replace:!0})}function uT(){const{user:e}=Dt(),t=Fn(),{data:r,isLoading:i}=pn({queryKey:["appConfig"],queryFn:async()=>{const E=Fe(Ne,"config","app"),N=await Kt(E);return N.exists()?N.data():null},staleTime:1e3*60*5}),{data:o,isLoading:s}=pn({queryKey:["userData",e?.uid],queryFn:async()=>{if(!e)return null;const E=Fe(Ne,"users",e.uid),N=await Kt(E);return N.exists()?N.data():null},enabled:!!e,staleTime:1e3*60*5}),u=r?.currentVersion,d=o?.lastSeenVersion,p=!!(u&&e&&u!==d),{data:h,isLoading:y}=pn({queryKey:["release",u],queryFn:async()=>{if(!u)return null;const E=Fe(Ne,"releases",u),N=await Kt(E);if(!N.exists())return null;const C=N.data();return C.isActive?C:null},enabled:p&&!!u}),v=nn({mutationFn:async()=>
10{if(!e||!u)return;const E=Fe(Ne,"users",e.uid);await va(E,{lastSeenVersion:u,updatedAt:Ft()})},onSuccess:()=>{t.invalidateQueries({queryKey:["userData",e?.uid]})}});return{showModal:p&&!!h,release:h??null,isLoading:i||s||p&&y,dismiss:()=>{v.mutate()}}}function cT({items:e,className:t}){return f.jsxs("nav",{className:Ge("flex items-center text-sm",t),children:[f.jsxs(Mn,{to:"/",className:"flex items-center text-muted-foreground hover:text-foreground transition-colors",children:[f.jsx(ap,{className:"h-4 w-4"}),f.jsx("span",{className:"sr-only",children:"Home"})]}),e.map((r,i)=>{const o=i===e.length-1;return r.path==="/"?null:f.jsxs("div",{className:"flex items-center",children:[f.jsx(lp,{className:"h-4 w-4 mx-2 text-muted-foreground"}),o?f.jsx("span",{className:"font-medium text-foreground",children:r.name}):f.jsx(Mn,{to:r.path,className:"text-muted-foreground hover:text-foreground transition-colors",children:r.name})]},r.id)})]})}function dT({type:e,className:t}){const r=e==="root";return f.jsxs("div",{className:Ge("flex flex-col items-center justify-center py-16 text-center",t),children:[f.jsx("div",{className:"rounded-full bg-muted p-4 mb-4",children:r?f.jsx(op,{className:"h-8 w-8 text-muted-foreground"}):f.jsx(ak,{className:"h-8 w-8 text-muted-foreground"})}),f.jsx("h3",{className:"text-lg font-medium mb-2",children:r?"No documents yet":"This folder is empty"}),f.jsx("p",{className:"text-muted-foreground max-w-sm",children:r?"Create an API key and start pushing documents from your code.":"Documents added to this folder will appear here."}),r&&f.jsxs("a",{href:"/settings/api-keys",className:"mt-4 inline-flex items-center gap-2 text-sm font-medium text-primary hover:underline",children:[f.jsx(ms,{className:"h-4 w-4"}),"Create an API key"]})]})}function Ke(e,t,{checkForDefaultPrevented:r=!0}={}){return function(o){if(e?.(o),r===!1||!o.defaultPrevented)return t?.(o)}}function px(e,t){if(typeof e=="function")return e(t);e!=null&&(e.current=t)}function ad(...e){return t=>{let r=!1;const i=e.map(o=>{const s=px(o,t);return!r&&typeof s=="function"&&(r=!0),s});if(r)return()=>{for(let o=0;o<i.length;o++){const s=i[o];typeof s=="function"?s():px(e[o],null)}}}}function Bn(...e){return S.useCallback(ad(...e),e)}function Ts(e,t=[]){let r=[];function i(s,u){const d=S.createContext(u),p=r.length;r=[...r,u];const h=v=>{const{scope:x,children:b,...E}=v,N=x?.[e]?.[p]||d,C=S.useMemo(()=>E,Object.values(E));return f.jsx(N.Provider,{value:C,children:b})};h.displayName=s+"Provider";function y(v,x){const b=x?.[e]?.[p]||d,E=S.useContext(b);if(E)return E;if(u!==void 0)return u;throw new Error(`\`${v}\` must be used within \`${s}\``)}return[h,y]}const o=()=>{const s=r.map(u=>S.createContext(u));return function(d){const p=d?.[e]||s;return S.useMemo(()=>({[`__scope${e}`]:{...d,[e]:p}}),[d,p])}};return o.scopeName=e,[i,fT(o,...t)]}function fT(...e){const t=e[0];if(e.length===1)return t;const r=()=>{const i=e.map(o=>({useScope:o(),scopeName:o.scopeName}));return function(s){const u=i.reduce((d,{useScope:p,scopeName:h})=>{const v=p(s)[`__scope${h}`];return{...d,...v}},{});return S.useMemo(()=>({[`__scope${t.scopeName}`]:u}),[u])}};return r.scopeName=t.scopeName,r}var ti=globalThis?.document?S.useLayoutEffect:()=>{},mT=Vw[" useInsertionEffect ".trim().toString()]||ti;function pS({prop:e,defaultProp:t,onChange:r=()=>{},caller:i}){const[o,s,u]=hT({defaultProp:t,onChange:r}),d=e!==void 0,p=d?e:o;{const y=S.useRef(e!==void 0);S.useEffect(()=>{const v=y.current;v!==d&&console.warn(`${i} is changing from ${v?"controlled":"uncontrolled"} to ${d?"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.`),y.current=d},[d,i])}const h=S.useCallback(y=>{if(d){const v=pT(y)?y(e):y;v!==e&&u.current?.(v)}else s(y)},[d,e,s,u]);return[p,h]}function hT({defaultProp:e,onChange:t}){const[r,i]=S.useState(e),o=S.useRef(r),s=S.useRef(t);return mT(()=>{s.current=t},[t]),S.useEffect(()=>{o.current!==r&&(s.current?.(r),o.current=r)},[r,o]),[r,i,s]}function pT(e){return typeof e=="function"}function kc(e){const t=gT(e),r=S.forwardRef((i,o)=>{const{children:s,...u}=i,d=S.Children.toArray(s),p=d.find(vT);if(p){const h=p.props.children,y=d.map(v=>v===p?S.Children.count(h)>1?S.Children.only(null):S.isValidElement(h)?h.props.children:null:v);return f.jsx(t,{...u,ref:o,children:S.isValidElement(h)?S.cloneElement(h,void 0,y):null})}return f.jsx(t,{...u,ref:o,children:s})});return r.displayName=`${e}.Slot`,r}function gT(e){const t=S.forwardRef((r,i)=>{const{children:o,...s}=r;if(S.isValidElement(o)){const u=xT(o),d=bT(s,o.props);return o.type!==S.Fragment&&(d.ref=i?ad(i,u):u),S.cloneElement(o,d)}return S.Children.count(o)>1?S.Children.only(null):null});return t.displayName=`${e}.SlotClone`,t}var yT=Symbol("radix.slottable");function vT(e){return S.isValidElement(e)&&typeof e.type=="function"&&"__radixId"in e.type&&e.type.__radixId===yT}function bT(e,t){const r={...t};for(const i in t){const o=e[i],s=t[i];/^on[A-Z]/.test(i)?o&&s?r[i]=(...d)=>{const p=s(...d);return o(...d),p}:o&&(r[i]=o):i==="style"?r[i]={...o,...s}
vendor: 4,177 bytes, line 10
10:i==="className"&&(r[i]=[o,s].filter(Boolean).join(" "))}return{...e,...r}}function xT(e){let t=Object.getOwnPropertyDescriptor(e.props,"ref")?.get,r=t&&"isReactWarning"in t&&t.isReactWarning;return r?e.ref:(t=Object.getOwnPropertyDescriptor(e,"ref")?.get,r=t&&"isReactWarning"in t&&t.isReactWarning,r?e.props.ref:e.props.ref||e.ref)}var wT=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],wn=wT.reduce((e,t)=>{const r=kc(`Primitive.${t}`),i=S.forwardRef((o,s)=>{const{asChild:u,...d}=o,p=u?r:t;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),f.jsx(p,{...d,ref:s})});return i.displayName=`Primitive.${t}`,{...e,[t]:i}},{});function gS(e,t){e&&Ai.flushSync(()=>e.dispatchEvent(t))}function yS(e){const t=e+"CollectionProvider",[r,i]=Ts(t),[o,s]=r(t,{collectionRef:{current:null},itemMap:new Map}),u=N=>{const{scope:C,children:k}=N,M=$e.useRef(null),O=$e.useRef(new Map).current;return f.jsx(o,{scope:C,itemMap:O,collectionRef:M,children:k})};u.displayName=t;const d=e+"CollectionSlot",p=kc(d),h=$e.forwardRef((N,C)=>{const{scope:k,children:M}=N,O=s(d,k),B=Bn(C,O.collectionRef);return f.jsx(p,{ref:B,children:M})});h.displayName=d;const y=e+"CollectionItemSlot",v="data-radix-collection-item",x=kc(y),b=$e.forwardRef((N,C)=>{const{scope:k,children:M,...O}=N,B=$e.useRef(null),T=Bn(C,B),L=s(y,k);return $e.useEffect(()=>(L.itemMap.set(B,{ref:B,...O}),()=>{L.itemMap.delete(B)})),f.jsx(x,{[v]:"",ref:T,children:M})});b.displayName=y;function E(N){const C=s(e+"CollectionConsumer",N);return $e.useCallback(()=>{const M=C.collectionRef.current;if(!M)return[];const O=Array.from(M.querySelectorAll(`[${v}]`));return Array.from(C.itemMap.values()).sort((L,I)=>O.indexOf(L.ref.current)-O.indexOf(I.ref.current))},[C.collectionRef,C.itemMap])}return[{Provider:u,Slot:h,ItemSlot:b},E,i]}var ST=S.createContext(void 0);function vS(e){const t=S.useContext(ST);return e||t||"ltr"}function ba(e){const t=S.useRef(e);return S.useEffect(()=>{t.current=e}),S.useMemo(()=>(...r)=>t.current?.(...r),[])}function ET(e,t=globalThis?.document){const r=ba(e);S.useEffect(()=>{const i=o=>{o.key==="Escape"&&r(o)};return t.addEventListener("keydown",i,{capture:!0}),()=>t.removeEventListener("keydown",i,{capture:!0})},[r,t])}var NT="DismissableLayer",Ch="dismissableLayer.update",CT="dismissableLayer.pointerDownOutside",jT="dismissableLayer.focusOutside",gx,bS=S.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),xS=S.forwardRef((e,t)=>{const{disableOutsidePointerEvents:r=!1,onEscapeKeyDown:i,onPointerDownOutside:o,onFocusOutside:s,onInteractOutside:u,onDismiss:d,...p}=e,h=S.useContext(bS),[y,v]=S.useState(null),x=y?.ownerDocument??globalThis?.document,[,b]=S.useState({}),E=Bn(t,I=>v(I)),N=Array.from(h.layers),[C]=[...h.layersWithOutsidePointerEventsDisabled].slice(-1),k=N.indexOf(C),M=y?N.indexOf(y):-1,O=h.layersWithOutsidePointerEventsDisabled.size>0,B=M>=k,T=TT(I=>{const _=I.target,X=[...h.branches].some(V=>V.contains(_));!B||X||(o?.(I),u?.(I),I.defaultPrevented||d?.())},x),L=_T(I=>{const _=I.target;[...h.branches].some(V=>V.contains(_))||(s?.(I),u?.(I),I.defaultPrevented||d?.())},x);return ET(I=>{M===h.layers.size-1&&(i?.(I),!I.defaultPrevented&&d&&(I.preventDefault(),d()))},x),S.useEffect(()=>{if(y)return r&&(h.layersWithOutsidePointerEventsDisabled.size===0&&(gx=x.body.style.pointerEvents,x.body.style.pointerEvents="none"),h.layersWithOutsidePointerEventsDisabled.add(y)),h.layers.add(y),yx(),()=>{r&&h.layersWithOutsidePointerEventsDisabled.size===1&&(x.body.style.pointerEvents=gx)}},[y,x,r,h]),S.useEffect(()=>()=>{y&&(h.layers.delete(y),h.layersWithOutsidePointerEventsDisabled.delete(y),yx())},[y,h]),S.useEffect(()=>{const I=()=>b({});return document.addEventListener(Ch,I),()=>document.removeEventListener(Ch,I)},[]),f.jsx(wn.div,{...p,ref:E,style:{pointerEvents:O?B?"auto":"none":void 0,...e.style},onFocusCapture:Ke(e.onFocusCapture,L.onFocusCapture),onBlurCapture:Ke(e.onBlurCapture,L.onBlurCapture),onPointerDownCapture:Ke(e.onPointerDownCapture,T.onPointerDownCapture)})});xS.displayName=NT;var kT="DismissableLayerBranch",AT=S.forwardRef((e,t)=>
vendor: 5,409 bytes, line 10
10{const r=S.useContext(bS),i=S.useRef(null),o=Bn(t,i);return S.useEffect(()=>{const s=i.current;if(s)return r.branches.add(s),()=>{r.branches.delete(s)}},[r.branches]),f.jsx(wn.div,{...e,ref:o})});AT.displayName=kT;function TT(e,t=globalThis?.document){const r=ba(e),i=S.useRef(!1),o=S.useRef(()=>{});return S.useEffect(()=>{const s=d=>{if(d.target&&!i.current){let p=function(){wS(CT,r,h,{discrete:!0})};const h={originalEvent:d};d.pointerType==="touch"?(t.removeEventListener("click",o.current),o.current=p,t.addEventListener("click",o.current,{once:!0})):p()}else t.removeEventListener("click",o.current);i.current=!1},u=window.setTimeout(()=>{t.addEventListener("pointerdown",s)},0);return()=>{window.clearTimeout(u),t.removeEventListener("pointerdown",s),t.removeEventListener("click",o.current)}},[t,r]),{onPointerDownCapture:()=>i.current=!0}}function _T(e,t=globalThis?.document){const r=ba(e),i=S.useRef(!1);return S.useEffect(()=>{const o=s=>{s.target&&!i.current&&wS(jT,r,{originalEvent:s},{discrete:!1})};return t.addEventListener("focusin",o),()=>t.removeEventListener("focusin",o)},[t,r]),{onFocusCapture:()=>i.current=!0,onBlurCapture:()=>i.current=!1}}function yx(){const e=new CustomEvent(Ch);document.dispatchEvent(e)}function wS(e,t,r,{discrete:i}){const o=r.originalEvent.target,s=new CustomEvent(e,{bubbles:!1,cancelable:!0,detail:r});t&&o.addEventListener(e,t,{once:!0}),i?gS(o,s):o.dispatchEvent(s)}var $m=0;function DT(){S.useEffect(()=>{const e=document.querySelectorAll("[data-radix-focus-guard]");return document.body.insertAdjacentElement("afterbegin",e[0]??vx()),document.body.insertAdjacentElement("beforeend",e[1]??vx()),$m++,()=>{$m===1&&document.querySelectorAll("[data-radix-focus-guard]").forEach(t=>t.remove()),$m--}},[])}function vx(){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 Km="focusScope.autoFocusOnMount",Gm="focusScope.autoFocusOnUnmount",bx={bubbles:!1,cancelable:!0},RT="FocusScope",SS=S.forwardRef((e,t)=>{const{loop:r=!1,trapped:i=!1,onMountAutoFocus:o,onUnmountAutoFocus:s,...u}=e,[d,p]=S.useState(null),h=ba(o),y=ba(s),v=S.useRef(null),x=Bn(t,N=>p(N)),b=S.useRef({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;S.useEffect(()=>{if(i){let N=function(O){if(b.paused||!d)return;const B=O.target;d.contains(B)?v.current=B:Xa(v.current,{select:!0})},C=function(O){if(b.paused||!d)return;const B=O.relatedTarget;B!==null&&(d.contains(B)||Xa(v.current,{select:!0}))},k=function(O){if(document.activeElement===document.body)for(const T of O)T.removedNodes.length>0&&Xa(d)};document.addEventListener("focusin",N),document.addEventListener("focusout",C);const M=new MutationObserver(k);return d&&M.observe(d,{childList:!0,subtree:!0}),()=>{document.removeEventListener("focusin",N),document.removeEventListener("focusout",C),M.disconnect()}}},[i,d,b.paused]),S.useEffect(()=>{if(d){wx.add(b);const N=document.activeElement;if(!d.contains(N)){const k=new CustomEvent(Km,bx);d.addEventListener(Km,h),d.dispatchEvent(k),k.defaultPrevented||(OT(FT(ES(d)),{select:!0}),document.activeElement===N&&Xa(d))}return()=>{d.removeEventListener(Km,h),setTimeout(()=>{const k=new CustomEvent(Gm,bx);d.addEventListener(Gm,y),d.dispatchEvent(k),k.defaultPrevented||Xa(N??document.body,{select:!0}),d.removeEventListener(Gm,y),wx.remove(b)},0)}}},[d,h,y,b]);const E=S.useCallback(N=>{if(!r&&!i||b.paused)return;const C=N.key==="Tab"&&!N.altKey&&!N.ctrlKey&&!N.metaKey,k=document.activeElement;if(C&&k){const M=N.currentTarget,[O,B]=zT(M);O&&B?!N.shiftKey&&k===B?(N.preventDefault(),r&&Xa(O,{select:!0})):N.shiftKey&&k===O&&(N.preventDefault(),r&&Xa(B,{select:!0})):k===M&&N.preventDefault()}},[r,i,b.paused]);return f.jsx(wn.div,{tabIndex:-1,...u,ref:x,onKeyDown:E})});SS.displayName=RT;function OT(e,{select:t=!1}={}){const r=document.activeElement;for(const i of e)if(Xa(i,{select:t}),document.activeElement!==r)return}function zT(e){const t=ES(e),r=xx(t,e),i=xx(t.reverse(),e);return[r,i]}function ES(e){const t=[],r=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:i=>{const o=i.tagName==="INPUT"&&i.type==="hidden";return i.disabled||i.hidden||o?NodeFilter.FILTER_SKIP:i.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;r.nextNode();)t.push(r.currentNode);return t}function xx(e,t){for(const r of e)if(!MT(r,{upTo:t}))return r}function MT(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 LT(e){return e instanceof HTMLInputElement&&"select"in e}function Xa(e,{select:t=!1}={}){if(e&&e.focus){const r=document.activeElement;e.focus({preventScroll:!0}),e!==r&<(e)&&t&&e.select()}}var wx=BT();function BT(){let e=[];return{add(t){const r=e[0];t!==r&&r?.pause(),e=Sx(e,t),e.unshift(t)},remove(t){e=Sx(e,t),e[0]?.resume()}}}function Sx(e,t){const r=[...e],i=r.indexOf(t);return i!==-1&&r.splice(i,1),r}function FT(e){return e.filter(t=>t.tagName!=="A")}var IT=Vw[" useId ".trim().toString()]||(()=>{}),UT=0;function jh(e){const[t,r]=S.useState(IT());return ti(()=>{r(i=>i??String(UT++))},[e]),e||(t?`radix-${t}`:"")}const PT=["top","right","bottom","left"],ni=Math.min,Qn=Math.max,Ac=Math.round,tc=Math.floor,Ur=e=>({x:e,y:e}
vendor: 18,150 bytes, line 10
10),VT={left:"right",right:"left",bottom:"top",top:"bottom"},HT={start:"end",end:"start"};function kh(e,t,r){return Qn(e,ni(t,r))}function xa(e,t){return typeof e=="function"?e(t):e}function wa(e){return e.split("-")[0]}function Xl(e){return e.split("-")[1]}function yp(e){return e==="x"?"y":"x"}function vp(e){return e==="y"?"height":"width"}const qT=new Set(["top","bottom"]);function Ir(e){return qT.has(wa(e))?"y":"x"}function bp(e){return yp(Ir(e))}function ZT(e,t,r){r===void 0&&(r=!1);const i=Xl(e),o=bp(e),s=vp(o);let u=o==="x"?i===(r?"end":"start")?"right":"left":i==="start"?"bottom":"top";return t.reference[s]>t.floating[s]&&(u=Tc(u)),[u,Tc(u)]}function $T(e){const t=Tc(e);return[Ah(e),t,Ah(t)]}function Ah(e){return e.replace(/start|end/g,t=>HT[t])}const Ex=["left","right"],Nx=["right","left"],KT=["top","bottom"],GT=["bottom","top"];function YT(e,t,r){switch(e){case"top":case"bottom":return r?t?Nx:Ex:t?Ex:Nx;case"left":case"right":return t?KT:GT;default:return[]}}function XT(e,t,r,i){const o=Xl(e);let s=YT(wa(e),r==="start",i);return o&&(s=s.map(u=>u+"-"+o),t&&(s=s.concat(s.map(Ah)))),s}function Tc(e){return e.replace(/left|right|bottom|top/g,t=>VT[t])}function QT(e){return{top:0,right:0,bottom:0,left:0,...e}}function NS(e){return typeof e!="number"?QT(e):{top:e,right:e,bottom:e,left:e}}function _c(e){const{x:t,y:r,width:i,height:o}=e;return{width:i,height:o,top:r,left:t,right:t+i,bottom:r+o,x:t,y:r}}function Cx(e,t,r){let{reference:i,floating:o}=e;const s=Ir(t),u=bp(t),d=vp(u),p=wa(t),h=s==="y",y=i.x+i.width/2-o.width/2,v=i.y+i.height/2-o.height/2,x=i[d]/2-o[d]/2;let b;switch(p){case"top":b={x:y,y:i.y-o.height};break;case"bottom":b={x:y,y:i.y+i.height};break;case"right":b={x:i.x+i.width,y:v};break;case"left":b={x:i.x-o.width,y:v};break;default:b={x:i.x,y:i.y}}switch(Xl(t)){case"start":b[u]-=x*(r&&h?-1:1);break;case"end":b[u]+=x*(r&&h?-1:1);break}return b}const JT=async(e,t,r)=>{const{placement:i="bottom",strategy:o="absolute",middleware:s=[],platform:u}=r,d=s.filter(Boolean),p=await(u.isRTL==null?void 0:u.isRTL(t));let h=await u.getElementRects({reference:e,floating:t,strategy:o}),{x:y,y:v}=Cx(h,i,p),x=i,b={},E=0;for(let N=0;N<d.length;N++){const{name:C,fn:k}=d[N],{x:M,y:O,data:B,reset:T}=await k({x:y,y:v,initialPlacement:i,placement:x,strategy:o,middlewareData:b,rects:h,platform:u,elements:{reference:e,floating:t}});y=M??y,v=O??v,b={...b,[C]:{...b[C],...B}},T&&E<=50&&(E++,typeof T=="object"&&(T.placement&&(x=T.placement),T.rects&&(h=T.rects===!0?await u.getElementRects({reference:e,floating:t,strategy:o}):T.rects),{x:y,y:v}=Cx(h,x,p)),N=-1)}return{x:y,y:v,placement:x,strategy:o,middlewareData:b}};async function ps(e,t){var r;t===void 0&&(t={});const{x:i,y:o,platform:s,rects:u,elements:d,strategy:p}=e,{boundary:h="clippingAncestors",rootBoundary:y="viewport",elementContext:v="floating",altBoundary:x=!1,padding:b=0}=xa(t,e),E=NS(b),C=d[x?v==="floating"?"reference":"floating":v],k=_c(await s.getClippingRect({element:(r=await(s.isElement==null?void 0:s.isElement(C)))==null||r?C:C.contextElement||await(s.getDocumentElement==null?void 0:s.getDocumentElement(d.floating)),boundary:h,rootBoundary:y,strategy:p})),M=v==="floating"?{x:i,y:o,width:u.floating.width,height:u.floating.height}:u.reference,O=await(s.getOffsetParent==null?void 0:s.getOffsetParent(d.floating)),B=await(s.isElement==null?void 0:s.isElement(O))?await(s.getScale==null?void 0:s.getScale(O))||{x:1,y:1}:{x:1,y:1},T=_c(s.convertOffsetParentRelativeRectToViewportRelativeRect?await s.convertOffsetParentRelativeRectToViewportRelativeRect({elements:d,rect:M,offsetParent:O,strategy:p}):M);return{top:(k.top-T.top+E.top)/B.y,bottom:(T.bottom-k.bottom+E.bottom)/B.y,left:(k.left-T.left+E.left)/B.x,right:(T.right-k.right+E.right)/B.x}}const WT=e=>({name:"arrow",options:e,async fn(t){const{x:r,y:i,placement:o,rects:s,platform:u,elements:d,middlewareData:p}=t,{element:h,padding:y=0}=xa(e,t)||{};if(h==null)return{};const v=NS(y),x={x:r,y:i},b=bp(o),E=vp(b),N=await u.getDimensions(h),C=b==="y",k=C?"top":"left",M=C?"bottom":"right",O=C?"clientHeight":"clientWidth",B=s.reference[E]+s.reference[b]-x[b]-s.floating[E],T=x[b]-s.reference[b],L=await(u.getOffsetParent==null?void 0:u.getOffsetParent(h));let I=L?L[O]:0;(!I||!await(u.isElement==null?void 0:u.isElement(L)))&&(I=d.floating[O]||s.floating[E]);const _=B/2-T/2,X=I/2-N[E]/2-1,V=ni(v[k],X),G=ni(v[M],X),$=V,Q=I-N[E]-G,F=I/2-N[E]/2+_,z=kh($,F,Q),R=!p.arrow&&Xl(o)!=null&&F!==z&&s.reference[E]/2-(F<$?V:G)-N[E]/2<0,K=R?F<$?F-$:F-Q:0;return{[b]:x[b]+K,data:{[b]:z,centerOffset:F-z-K,...R&&{alignmentOffset:K}},reset:R}}}),e_=function(e){return e===void 0&&(e={}),{name:"flip",options:e,async fn(t){var r,i;const{placement:o,middlewareData:s,rects:u,initialPlacement:d,platform:p,elements:h}=t,{mainAxis:y=!0,crossAxis:v=!0,fallbackPlacements:x,fallbackStrategy:b="bestFit",fallbackAxisSideDirection:E="none",flipAlignment:N=!0,...C}=xa(e,t);if((r=s.arrow)!=null&&r.alignmentOffset)return{};const k=wa(o),M=Ir(d),O=wa(d)===d,B=await(p.isRTL==null?void 0:p.isRTL(h.floating)),T=x||(O||!N?[Tc(d)]:$T(d)),L=E!=="none";!x&&L&&T.push(...XT(d,N,E,B));const I=[d,...T],_=await ps(t,C),X=[];let V=((i=s.flip)==null?void 0:i.overflows)||[];if(y&&X.push(_[k]),v){const F=ZT(o,u,B);X.push(_[F[0]],_[F[1]])}if(V=[...V,{placement:o,overflows:X}],!X.every(F=>F<=0)){var G,$;const F=(((G=s.flip)==null?void 0:G.index)||0)+1,z=I[F];if(z&&(!(v==="alignment"?M!==Ir(z):!1)||V.every(q=>Ir(q.placement)===M?q.overflows[0]>0:!0)))return{data:{index:F,overflows:V},reset:{placement:z}};let R=($=V.filter(K=>K.overflows[0]<=0).sort((K,q)=>K.overflows[1]-q.overflows[1])[0])==null?void 0:$.placement;if(!R)switch(b){case"bestFit":{var Q;const K=(Q=V.filter(q=>{if(L){const ne=Ir(q.placement);return ne===M||ne==="y"}return!0}).map(q=>[q.placement,q.overflows.filter(ne=>ne>0).reduce((ne,A)=>ne+A,0)]).sort((q,ne)=>q[1]-ne[1])[0])==null?void 0:Q[0];K&&(R=K);break}case"initialPlacement":R=d;break}if(o!==R)return{reset:{placement:R}}}return{}}}};function jx(e,t){return{top:e.top-t.height,right:e.right-t.width,bottom:e.bottom-t.height,left:e.left-t.width}}function kx(e){return PT.some(t=>e[t]>=0)}const t_=function(e){return e===void 0&&(e={}),{name:"hide",options:e,async fn(t){const{rects:r}=t,{strategy:i="referenceHidden",...o}=xa(e,t);switch(i){case"referenceHidden":{const s=await ps(t,{...o,elementContext:"reference"}),u=jx(s,r.reference);return{data:{referenceHiddenOffsets:u,referenceHidden:kx(u)}}}case"escaped":{const s=await ps(t,{...o,altBoundary:!0}),u=jx(s,r.floating);return{data:{escapedOffsets:u,escaped:kx(u)}}}default:return{}}}}},CS=new Set(["left","top"]);async function n_(e,t){const{placement:r,platform:i,elements:o}=e,s=await(i.isRTL==null?void 0:i.isRTL(o.floating)),u=wa(r),d=Xl(r),p=Ir(r)==="y",h=CS.has(u)?-1:1,y=s&&p?-1:1,v=xa(t,e);let{mainAxis:x,crossAxis:b,alignmentAxis:E}=typeof v=="number"?{mainAxis:v,crossAxis:0,alignmentAxis:null}:{mainAxis:v.mainAxis||0,crossAxis:v.crossAxis||0,alignmentAxis:v.alignmentAxis};return d&&typeof E=="number"&&(b=d==="end"?E*-1:E),p?{x:b*y,y:x*h}:{x:x*h,y:b*y}}const r_=function(e){return e===void 0&&(e=0),{name:"offset",options:e,async fn(t){var r,i;const{x:o,y:s,placement:u,middlewareData:d}=t,p=await n_(t,e);return u===((r=d.offset)==null?void 0:r.placement)&&(i=d.arrow)!=null&&i.alignmentOffset?{}:{x:o+p.x,y:s+p.y,data:{...p,placement:u}}}}},a_=function(e){return e===void 0&&(e={}),{name:"shift",options:e,async fn(t){const{x:r,y:i,placement:o}=t,{mainAxis:s=!0,crossAxis:u=!1,limiter:d={fn:C=>{let{x:k,y:M}=C;return{x:k,y:M}}},...p}=xa(e,t),h={x:r,y:i},y=await ps(t,p),v=Ir(wa(o)),x=yp(v);let b=h[x],E=h[v];if(s){const C=x==="y"?"top":"left",k=x==="y"?"bottom":"right",M=b+y[C],O=b-y[k];b=kh(M,b,O)}if(u){const C=v==="y"?"top":"left",k=v==="y"?"bottom":"right",M=E+y[C],O=E-y[k];E=kh(M,E,O)}const N=d.fn({...t,[x]:b,[v]:E});return{...N,data:{x:N.x-r,y:N.y-i,enabled:{[x]:s,[v]:u}}}}}},i_=function(e){return e===void 0&&(e={}),{options:e,fn(t){const{x:r,y:i,placement:o,rects:s,middlewareData:u}=t,{offset:d=0,mainAxis:p=!0,crossAxis:h=!0}=xa(e,t),y={x:r,y:i},v=Ir(o),x=yp(v);let b=y[x],E=y[v];const N=xa(d,t),C=typeof N=="number"?{mainAxis:N,crossAxis:0}:{mainAxis:0,crossAxis:0,...N};if(p){const O=x==="y"?"height":"width",B=s.reference[x]-s.floating[O]+C.mainAxis,T=s.reference[x]+s.reference[O]-C.mainAxis;b<B?b=B:b>T&&(b=T)}if(h){var k,M;const O=x==="y"?"width":"height",B=CS.has(wa(o)),T=s.reference[v]-s.floating[O]+(B&&((k=u.offset)==null?void 0:k[v])||0)+(B?0:C.crossAxis),L=s.reference[v]+s.reference[O]+(B?0:((M=u.offset)==null?void 0:M[v])||0)-(B?C.crossAxis:0);E<T?E=T:E>L&&(E=L)}return{[x]:b,[v]:E}}}},l_=function(e){return e===void 0&&(e={}),{name:"size",options:e,async fn(t){var r,i;const{placement:o,rects:s,platform:u,elements:d}=t,{apply:p=()=>{},...h}=xa(e,t),y=await ps(t,h),v=wa(o),x=Xl(o),b=Ir(o)==="y",{width:E,height:N}=s.floating;let C,k;v==="top"||v==="bottom"?(C=v,k=x===(await(u.isRTL==null?void 0:u.isRTL(d.floating))?"start":"end")?"left":"right"):(k=v,C=x==="end"?"top":"bottom");const M=N-y.top-y.bottom,O=E-y.left-y.right,B=ni(N-y[C],M),T=ni(E-y[k],O),L=!t.middlewareData.shift;let I=B,_=T;if((r=t.middlewareData.shift)!=null&&r.enabled.x&&(_=O),(i=t.middlewareData.shift)!=null&&i.enabled.y&&(I=M),L&&!x){const V=Qn(y.left,0),G=Qn(y.right,0),$=Qn(y.top,0),Q=Qn(y.bottom,0);b?_=E-2*(V!==0||G!==0?V+G:Qn(y.left,y.right)):I=N-2*($!==0||Q!==0?$+Q:Qn(y.top,y.bottom))}await p({...t,availableWidth:_,availableHeight:I});const X=await u.getDimensions(d.floating);return E!==X.width||N!==X.height?{reset:{rects:!0}}:{}}}};function id(){return typeof window<"u"}function Ql(e){return jS(e)?(e.nodeName||"").toLowerCase():"#document"}function er(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function qr(e){var t;return(t=(jS(e)?e.ownerDocument:e.document)||window.document)==null?void 0:t.documentElement}function jS(e){return id()?e instanceof Node||e instanceof er(e).Node:!1}function kr(e){return id()?e instanceof Element||e instanceof er(e).Element:!1}function Pr(e){return id()?e instanceof HTMLElement||e instanceof er(e).HTMLElement:!1}function Ax(e){return!id()||typeof ShadowRoot>"u"?!1:e instanceof ShadowRoot||e instanceof er(e).ShadowRoot}const o_=new Set(["inline","contents"]);function _s(e){const{overflow:t,overflowX:r,overflowY:i,display:o}=Ar(e);return/auto|scroll|overlay|hidden|clip/.test(t+i+r)&&!o_.has(o)}const s_=new Set(["table","td","th"]);function u_(e){return s_.has(Ql(e))}const c_=[":popover-open",":modal"];function ld(e){return c_.some(t=>{try{return e.matches(t)}catch{return!1}})}const d_=["transform","translate","scale","rotate","perspective"],f_=["transform","translate","scale","rotate","perspective","filter"],m_=["paint","layout","strict","content"];function xp(e){const t=wp(),r=kr(e)?Ar(e):e;return d_.some(i=>r[i]?r[i]!=="none":!1)||(r.containerType?r.containerType!=="normal":!1)||!t&&(r.backdropFilter?r.backdropFilter!=="none":!1)||!t&&(r.filter?r.filter!=="none":!1)||f_.some(i=>(r.willChange||"").includes(i))||m_.some(i=>(r.contain||"").includes(i))}function h_(e){let t=ri(e);for(;Pr(t)&&!Kl(t);){if(xp(t))return t;if(ld(t))return null;t=ri(t)}return null}function wp(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}const p_=new Set(["html","body","#document"]);function Kl(e){return p_.has(Ql(e))}function Ar(e){return er(e).getComputedStyle(e)}function od(e){return kr(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function ri(e){if(Ql(e)==="html")return e;const t=e.assignedSlot||e.parentNode||Ax(e)&&e.host||qr(e);return Ax(t)?t.host:t}function kS(e){const t=ri(e);return Kl(t)?e.ownerDocument?e.ownerDocument.body:e.body:Pr(t)&&_s(t)?t:kS(t)}function gs(e,t,r){var i;t===void 0&&(t=[]),r===void 0&&(r=!0);const o=kS(e),s=o===((i=e.ownerDocument)==null?void 0:i.body),u=er(o);if(s){const d=Th(u);return t.concat(u,u.visualViewport||[],_s(o)?o:[],d&&r?gs(d):[])}return t.concat(o,gs(o,[],r))}function Th(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function AS(e){const t=Ar(e);let r=parseFloat(t.width)||0,i=parseFloat(t.height)||0;const o=Pr(e),s=o?e.offsetWidth:r,u=o?e.offsetHeight:i,d=Ac(r)!==s||Ac(i)!==u;return d&&(r=s,i=u),{width:r,height:i,$:d}}function Sp(e){return kr(e)?e:e.contextElement}function Fl(e){const t=Sp(e);if(!Pr(t))return Ur(1);const r=t.getBoundingClientRect(),{width:i,height:o,$:s}=AS(t);let u=(s?Ac(r.width):r.width)/i,d=(s?Ac(r.height):r.height)/o;return(!u||!Number.isFinite(u))&&(u=1),(!d||!Number.isFinite(d))&&(d=1),{x:u,y:d}}const g_=Ur(0);function TS(e){const t=er(e);return!wp()||!t.visualViewport?g_:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function y_(e,t,r){return t===void 0&&(t=!1),!r||t&&r!==er(e)?!1:t}function _i(e,t,r,i){t===void 0&&(t=!1),r===void 0&&(r=!1);const o=e.getBoundingClientRect(),s=Sp(e);let u=Ur(1);t&&(i?kr(i)&&(u=Fl(i)):u=Fl(e));const d=y_(s,r,i)?TS(s):Ur(0);let p=(o.left+d.x)/u.x,h=(o.top+d.y)/u.y,y=o.width/u.x,v=o.height/u.y;if(s){const x=er(s),b=i&&kr(i)?er(i):i;let E=x,N=Th(E);for(;N&&i&&b!==E;){const C=Fl(N),k=N.getBoundingClientRect(),M=Ar(N),O=k.left+(N.clientLeft+parseFloat(M.paddingLeft))*C.x,B=k.top+(N.clientTop+parseFloat(M.paddingTop))*C.y;p*=C.x,h*=C.y,y*=C.x,v*=C.y,p+=O,h+=B,E=er(N),N=Th(E)}}return _c({width:y,height:v,x:p,y:h})}function sd(e,t){const r=od(e).scrollLeft;return t?t.left+r:_i(qr(e)).left+r}function _S(e,t){const r=e.getBoundingClientRect(),i=r.left+t.scrollLeft-sd(e,r),o=r.top+t.scrollTop;return{x:i,y:o}}function v_(e){let{elements:t,rect:r,offsetParent:i,strategy:o}=e;const s=o==="fixed",u=qr(i),d=t?ld(t.floating):!1;if(i===u||d&&s)return r;let p={scrollLeft:0,scrollTop:0},h=Ur(1);const y=Ur(0),v=Pr(i);if((v||!v&&!s)&&((Ql(i)!=="body"||_s(u))&&(p=od(i)),Pr(i))){const b=_i(i);h=Fl(i),y.x=b.x+i.clientLeft,y.y=b.y+i.clientTop}const x=u&&!v&&!s?_S(u,p):Ur(0);return{width:r.width*h.x,height:r.height*h.y,x:r.x*h.x-p.scrollLeft*h.x+y.x+x.x,y:r.y*h.y-p.scrollTop*h.y+y.y+x.y}}function b_(e){return Array.from(e.getClientRects())}function x_(e){const t=qr(e),r=od(e),i=e.ownerDocument.body,o=Qn(t.scrollWidth,t.clientWidth,i.scrollWidth,i.clientWidth),s=Qn(t.scrollHeight,t.clientHeight,i.scrollHeight,i.clientHeight);let u=-r.scrollLeft+sd(e);const d=-r.scrollTop;return Ar(i).direction==="rtl"&&(u+=Qn(t.clientWidth,i.clientWidth)-o),{width:o,height:s,x:u,y:d}}const Tx=25;function w_(e,t){const r=er(e),i=qr(e),o=r.visualViewport;let s=i.clientWidth,u=i.clientHeight,d=0,p=0;if(o){s=o.width,u=o.height;const y=wp();(!y||y&&t==="fixed")&&(d=o.offsetLeft,p=o.offsetTop)}const h=sd(i);if(h<=0){const y=i.ownerDocument,v=y.body,x=getComputedStyle(v),b=y.compatMode==="CSS1Compat"&&parseFloat(x.marginLeft)+parseFloat(x.marginRight)||0,E=Math.abs(i.clientWidth-v.clientWidth-b);E<=Tx&&(s-=E)}else h<=Tx&&(s+=h);return{width:s,height:u,x:d,y:p}}const S_=new Set(["absolute","fixed"]);function E_(e,t){const r=_i(e,!0,t==="fixed"),i=r.top+e.clientTop,o=r.left+e.clientLeft,s=Pr(e)?Fl(e):Ur(1),u=e.clientWidth*s.x,d=e.clientHeight*s.y,p=o*s.x,h=i*s.y;return{width:u,height:d,x:p,y:h}}function _x(e,t,r){let i;if(t==="viewport")i=w_(e,r);else if(t==="document")i=x_(qr(e));else if(kr(t))i=E_(t,r);else{const o=TS(e);i={x:t.x-o.x,y:t.y-o.y,width:t.width,height:t.height}}return _c(i)}function DS(e,t){const r=ri(e);return r===t||!kr(r)||Kl(r)?!1:Ar(r).position==="fixed"||DS(r,t)}function N_(e,t){const r=t.get(e);if(r)return r;let i=gs(e,[],!1).filter(d=>kr(d)&&Ql(d)!=="body"),o=null;const s=Ar(e).position==="fixed";let u=s?ri(e):e;for(;kr(u)&&!Kl(u);){const d=Ar(u),p=xp(u);!p&&d.position==="fixed"&&(o=null),(s?!p&&!o:!p&&d.position==="static"&&!!o&&S_.has(o.position)||_s(u)&&!p&&DS(e,u))?i=i.filter(y=>y!==u):o=d,u=ri(u)}return t.set(e,i),i}function C_(e){let{element:t,boundary:r,rootBoundary:i,strategy:o}=e;const u=[...r==="clippingAncestors"?ld(t)?[]:N_(t,this._c):[].concat(r),i],d=u[0],p=u.reduce((h,y)=>{const v=_x(t,y,o);return h.top=Qn(v.top,h.top),h.right=ni(v.right,h.right),h.bottom=ni(v.bottom,h.bottom),h.left=Qn(v.left,h.left),h},_x(t,d,o));return{width:p.right-p.left,height:p.bottom-p.top,x:p.left,y:p.top}}function j_(e){const{width:t,height:r}=AS(e);return{width:t,height:r}}function k_(e,t,r){const i=Pr(t),o=qr(t),s=r==="fixed",u=_i(e,!0,s,t);let d={scrollLeft:0,scrollTop:0};const p=Ur(0);function h(){p.x=sd(o)}if(i||!i&&!s)if((Ql(t)!=="body"||_s(o))&&(d=od(t)),i){const b=_i(t,!0,s,t);p.x=b.x+t.clientLeft,p.y=b.y+t.clientTop}else o&&h();s&&!i&&o&&h();const y=o&&!i&&!s?_S(o,d):Ur(0),v=u.left+d.scrollLeft-p.x-y.x,x=u.top+d.scrollTop-p.y-y.y;return{x:v,y:x,width:u.width,height:u.height}}function Ym(e){return Ar(e).position==="static"}function Dx(e,t){if(!Pr(e)||Ar(e).position==="fixed")return null;if(t)return t(e);let r=e.offsetParent;return qr(e)===r&&(r=r.ownerDocument.body),r}function RS(e,t){const r=er(e);if(ld(e))return r;if(!Pr(e)){let o=ri(e);for(;o&&!Kl(o);){if(kr(o)&&!Ym(o))return o;o=ri(o)}return r}let i=Dx(e,t);for(;i&&u_(i)&&Ym(i);)i=Dx(i,t);return i&&Kl(i)&&Ym(i)&&!xp(i)?r:i||h_(e)||r}const A_=async function(e){const t=this.getOffsetParent||RS,r=this.getDimensions,i=await r(e.floating);return{reference:k_(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:i.width,height:i.height}}};function T_(e){return Ar(e).direction==="rtl"}const __={convertOffsetParentRelativeRectToViewportRelativeRect:v_,getDocumentElement:qr,getClippingRect:C_,getOffsetParent:RS,getElementRects:A_,getClientRects:b_,getDimensions:j_,getScale:Fl,isElement:kr,isRTL:T_};function OS(e,t){return e.x===t.x&&e.y===t.y&&e.width===t.width&&e.height===t.height}function D_(e,t){let r=null,i;const o=qr(e);function s(){var d;clearTimeout(i),(d=r)==null||d.disconnect(),r=null}function u(d,p){d===void 0&&(d=!1),p===void 0&&(p=1),s();const h=e.getBoundingClientRect(),{left:y,top:v,width:x,height:b}=h;if(d||t(),!x||!b)return;const E=tc(v),N=tc(o.clientWidth-(y+x)),C=tc(o.clientHeight-(v+b)),k=tc(y),O={rootMargin:-E+"px "+-N+"px "+-C+"px "+-k+"px",threshold:Qn(0,ni(1,p))||1};let B=!0;function T(L){const I=L[0].intersectionRatio;
vendor: 16,155 bytes, line 10
10if(I!==p){if(!B)return u();I?u(!1,I):i=setTimeout(()=>{u(!1,1e-7)},1e3)}I===1&&!OS(h,e.getBoundingClientRect())&&u(),B=!1}try{r=new IntersectionObserver(T,{...O,root:o.ownerDocument})}catch{r=new IntersectionObserver(T,O)}r.observe(e)}return u(!0),s}function R_(e,t,r,i){i===void 0&&(i={});const{ancestorScroll:o=!0,ancestorResize:s=!0,elementResize:u=typeof ResizeObserver=="function",layoutShift:d=typeof IntersectionObserver=="function",animationFrame:p=!1}=i,h=Sp(e),y=o||s?[...h?gs(h):[],...gs(t)]:[];y.forEach(k=>{o&&k.addEventListener("scroll",r,{passive:!0}),s&&k.addEventListener("resize",r)});const v=h&&d?D_(h,r):null;let x=-1,b=null;u&&(b=new ResizeObserver(k=>{let[M]=k;M&&M.target===h&&b&&(b.unobserve(t),cancelAnimationFrame(x),x=requestAnimationFrame(()=>{var O;(O=b)==null||O.observe(t)})),r()}),h&&!p&&b.observe(h),b.observe(t));let E,N=p?_i(e):null;p&&C();function C(){const k=_i(e);N&&!OS(N,k)&&r(),N=k,E=requestAnimationFrame(C)}return r(),()=>{var k;y.forEach(M=>{o&&M.removeEventListener("scroll",r),s&&M.removeEventListener("resize",r)}),v?.(),(k=b)==null||k.disconnect(),b=null,p&&cancelAnimationFrame(E)}}const O_=r_,z_=a_,M_=e_,L_=l_,B_=t_,Rx=WT,F_=i_,I_=(e,t,r)=>{const i=new Map,o={platform:__,...r},s={...o.platform,_c:i};return JT(e,t,{...o,platform:s})};var U_=typeof document<"u",P_=function(){},vc=U_?S.useLayoutEffect:P_;function Dc(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 r,i,o;if(e&&t&&typeof e=="object"){if(Array.isArray(e)){if(r=e.length,r!==t.length)return!1;for(i=r;i--!==0;)if(!Dc(e[i],t[i]))return!1;return!0}if(o=Object.keys(e),r=o.length,r!==Object.keys(t).length)return!1;for(i=r;i--!==0;)if(!{}.hasOwnProperty.call(t,o[i]))return!1;for(i=r;i--!==0;){const s=o[i];if(!(s==="_owner"&&e.$$typeof)&&!Dc(e[s],t[s]))return!1}return!0}return e!==e&&t!==t}function zS(e){return typeof window>"u"?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function Ox(e,t){const r=zS(e);return Math.round(t*r)/r}function Xm(e){const t=S.useRef(e);return vc(()=>{t.current=e}),t}function V_(e){e===void 0&&(e={});const{placement:t="bottom",strategy:r="absolute",middleware:i=[],platform:o,elements:{reference:s,floating:u}={},transform:d=!0,whileElementsMounted:p,open:h}=e,[y,v]=S.useState({x:0,y:0,strategy:r,placement:t,middlewareData:{},isPositioned:!1}),[x,b]=S.useState(i);Dc(x,i)||b(i);const[E,N]=S.useState(null),[C,k]=S.useState(null),M=S.useCallback(q=>{q!==L.current&&(L.current=q,N(q))},[]),O=S.useCallback(q=>{q!==I.current&&(I.current=q,k(q))},[]),B=s||E,T=u||C,L=S.useRef(null),I=S.useRef(null),_=S.useRef(y),X=p!=null,V=Xm(p),G=Xm(o),$=Xm(h),Q=S.useCallback(()=>{if(!L.current||!I.current)return;const q={placement:t,strategy:r,middleware:x};G.current&&(q.platform=G.current),I_(L.current,I.current,q).then(ne=>{const A={...ne,isPositioned:$.current!==!1};F.current&&!Dc(_.current,A)&&(_.current=A,Ai.flushSync(()=>{v(A)}))})},[x,t,r,G,$]);vc(()=>{h===!1&&_.current.isPositioned&&(_.current.isPositioned=!1,v(q=>({...q,isPositioned:!1})))},[h]);const F=S.useRef(!1);vc(()=>(F.current=!0,()=>{F.current=!1}),[]),vc(()=>{if(B&&(L.current=B),T&&(I.current=T),B&&T){if(V.current)return V.current(B,T,Q);Q()}},[B,T,Q,V,X]);const z=S.useMemo(()=>({reference:L,floating:I,setReference:M,setFloating:O}),[M,O]),R=S.useMemo(()=>({reference:B,floating:T}),[B,T]),K=S.useMemo(()=>{const q={position:r,left:0,top:0};if(!R.floating)return q;const ne=Ox(R.floating,y.x),A=Ox(R.floating,y.y);return d?{...q,transform:"translate("+ne+"px, "+A+"px)",...zS(R.floating)>=1.5&&{willChange:"transform"}}:{position:r,left:ne,top:A}},[r,d,R.floating,y.x,y.y]);return S.useMemo(()=>({...y,update:Q,refs:z,elements:R,floatingStyles:K}),[y,Q,z,R,K])}const H_=e=>{function t(r){return{}.hasOwnProperty.call(r,"current")}return{name:"arrow",options:e,fn(r){const{element:i,padding:o}=typeof e=="function"?e(r):e;return i&&t(i)?i.current!=null?Rx({element:i.current,padding:o}).fn(r):{}:i?Rx({element:i,padding:o}).fn(r):{}}}},q_=(e,t)=>({...O_(e),options:[e,t]}),Z_=(e,t)=>({...z_(e),options:[e,t]}),$_=(e,t)=>({...F_(e),options:[e,t]}),K_=(e,t)=>({...M_(e),options:[e,t]}),G_=(e,t)=>({...L_(e),options:[e,t]}),Y_=(e,t)=>({...B_(e),options:[e,t]}),X_=(e,t)=>({...H_(e),options:[e,t]});var Q_="Arrow",MS=S.forwardRef((e,t)=>{const{children:r,width:i=10,height:o=5,...s}=e;return f.jsx(wn.svg,{...s,ref:t,width:i,height:o,viewBox:"0 0 30 10",preserveAspectRatio:"none",children:e.asChild?r:f.jsx("polygon",{points:"0,0 30,0 15,10"})})});MS.displayName=Q_;var J_=MS;function W_(e){const[t,r]=S.useState(void 0);return ti(()=>{if(e){r({width:e.offsetWidth,height:e.offsetHeight});const i=new ResizeObserver(o=>{if(!Array.isArray(o)||!o.length)return;const s=o[0];let u,d;if("borderBoxSize"in s){const p=s.borderBoxSize,h=Array.isArray(p)?p[0]:p;u=h.inlineSize,d=h.blockSize}else u=e.offsetWidth,d=e.offsetHeight;r({width:u,height:d})});return i.observe(e,{box:"border-box"}),()=>i.unobserve(e)}else r(void 0)},[e]),t}var Ep="Popper",[LS,BS]=Ts(Ep),[e2,FS]=LS(Ep),IS=e=>{const{__scopePopper:t,children:r}=e,[i,o]=S.useState(null);return f.jsx(e2,{scope:t,anchor:i,onAnchorChange:o,children:r})};IS.displayName=Ep;var US="PopperAnchor",PS=S.forwardRef((e,t)=>{const{__scopePopper:r,virtualRef:i,...o}=e,s=FS(US,r),u=S.useRef(null),d=Bn(t,u),p=S.useRef(null);return S.useEffect(()=>{const h=p.current;p.current=i?.current||u.current,h!==p.current&&s.onAnchorChange(p.current)}),i?null:f.jsx(wn.div,{...o,ref:d})});PS.displayName=US;var Np="PopperContent",[t2,n2]=LS(Np),VS=S.forwardRef((e,t)=>{const{__scopePopper:r,side:i="bottom",sideOffset:o=0,align:s="center",alignOffset:u=0,arrowPadding:d=0,avoidCollisions:p=!0,collisionBoundary:h=[],collisionPadding:y=0,sticky:v="partial",hideWhenDetached:x=!1,updatePositionStrategy:b="optimized",onPlaced:E,...N}=e,C=FS(Np,r),[k,M]=S.useState(null),O=Bn(t,be=>M(be)),[B,T]=S.useState(null),L=W_(B),I=L?.width??0,_=L?.height??0,X=i+(s!=="center"?"-"+s:""),V=typeof y=="number"?y:{top:0,right:0,bottom:0,left:0,...y},G=Array.isArray(h)?h:[h],$=G.length>0,Q={padding:V,boundary:G.filter(a2),altBoundary:$},{refs:F,floatingStyles:z,placement:R,isPositioned:K,middlewareData:q}=V_({strategy:"fixed",placement:X,whileElementsMounted:(...be)=>R_(...be,{animationFrame:b==="always"}),elements:{reference:C.anchor},middleware:[q_({mainAxis:o+_,alignmentAxis:u}),p&&Z_({mainAxis:!0,crossAxis:!1,limiter:v==="partial"?$_():void 0,...Q}),p&&K_({...Q}),G_({...Q,apply:({elements:be,rects:Le,availableWidth:Ie,availableHeight:Te})=>{const{width:ft,height:mt}=Le.reference,Pt=be.floating.style;Pt.setProperty("--radix-popper-available-width",`${Ie}px`),Pt.setProperty("--radix-popper-available-height",`${Te}px`),Pt.setProperty("--radix-popper-anchor-width",`${ft}px`),Pt.setProperty("--radix-popper-anchor-height",`${mt}px`)}}),B&&X_({element:B,padding:d}),i2({arrowWidth:I,arrowHeight:_}),x&&Y_({strategy:"referenceHidden",...Q})]}),[ne,A]=ZS(R),pe=ba(E);ti(()=>{K&&pe?.()},[K,pe]);const ce=q.arrow?.x,D=q.arrow?.y,ge=q.arrow?.centerOffset!==0,[ke,ve]=S.useState();return ti(()=>{k&&ve(window.getComputedStyle(k).zIndex)},[k]),f.jsx("div",{ref:F.setFloating,"data-radix-popper-content-wrapper":"",style:{...z,transform:K?z.transform:"translate(0, -200%)",minWidth:"max-content",zIndex:ke,"--radix-popper-transform-origin":[q.transformOrigin?.x,q.transformOrigin?.y].join(" "),...q.hide?.referenceHidden&&{visibility:"hidden",pointerEvents:"none"}},dir:e.dir,children:f.jsx(t2,{scope:r,placedSide:ne,onArrowChange:T,arrowX:ce,arrowY:D,shouldHideArrow:ge,children:f.jsx(wn.div,{"data-side":ne,"data-align":A,...N,ref:O,style:{...N.style,animation:K?void 0:"none"}})})})});VS.displayName=Np;var HS="PopperArrow",r2={top:"bottom",right:"left",bottom:"top",left:"right"},qS=S.forwardRef(function(t,r){const{__scopePopper:i,...o}=t,s=n2(HS,i),u=r2[s.placedSide];return f.jsx("span",{ref:s.onArrowChange,style:{position:"absolute",left:s.arrowX,top:s.arrowY,[u]: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:f.jsx(J_,{...o,ref:r,style:{...o.style,display:"block"}})})});qS.displayName=HS;function a2(e){return e!==null}var i2=e=>({name:"transformOrigin",options:e,fn(t){const{placement:r,rects:i,middlewareData:o}=t,u=o.arrow?.centerOffset!==0,d=u?0:e.arrowWidth,p=u?0:e.arrowHeight,[h,y]=ZS(r),v={start:"0%",center:"50%",end:"100%"}[y],x=(o.arrow?.x??0)+d/2,b=(o.arrow?.y??0)+p/2;let E="",N="";return h==="bottom"?(E=u?v:`${x}px`,N=`${-p}px`):h==="top"?(E=u?v:`${x}px`,N=`${i.floating.height+p}px`):h==="right"?(E=`${-p}px`,N=u?v:`${b}px`):h==="left"&&(E=`${i.floating.width+p}px`,N=u?v:`${b}px`),{data:{x:E,y:N}}}});function ZS(e){const[t,r="center"]=e.split("-");return[t,r]}var l2=IS,o2=PS,s2=VS,u2=qS,c2="Portal",$S=S.forwardRef((e,t)=>{const{container:r,...i}=e,[o,s]=S.useState(!1);ti(()=>s(!0),[]);const u=r||o&&globalThis?.document?.body;return u?vk.createPortal(f.jsx(wn.div,{...i,ref:t}),u):null});$S.displayName=c2;function d2(e,t){return S.useReducer((r,i)=>t[r][i]??r,e)}var Ds=e=>{const{present:t,children:r}=e,i=f2(t),o=typeof r=="function"?r({present:i.isPresent}):S.Children.only(r),s=Bn(i.ref,m2(o));return typeof r=="function"||i.isPresent?S.cloneElement(o,{ref:s}):null};Ds.displayName="Presence";function f2(e){const[t,r]=S.useState(),i=S.useRef(null),o=S.useRef(e),s=S.useRef("none"),u=e?"mounted":"unmounted",[d,p]=d2(u,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return S.useEffect(()=>{const h=nc(i.current);s.current=d==="mounted"?h:"none"},[d]),ti(()=>{const h=i.current,y=o.current;if(y!==e){const x=s.current,b=nc(h);e?p("MOUNT"):b==="none"||h?.display==="none"?p("UNMOUNT"):p(y&&x!==b?"ANIMATION_OUT":"UNMOUNT"),o.current=e}},[e,p]),ti(()=>{if(t){let h;const y=t.ownerDocument.defaultView??window,v=b=>{const N=nc(i.current).includes(CSS.escape(b.animationName));if(b.target===t&&N&&(p("ANIMATION_END"),!o.current)){const C=t.style.animationFillMode;t.style.animationFillMode="forwards",h=y.setTimeout(()=>{t.style.animationFillMode==="forwards"&&(t.style.animationFillMode=C)})}},x=b=>{b.target===t&&(s.current=nc(i.current))};return t.addEventListener("animationstart",x),t.addEventListener("animationcancel",v),t.addEventListener("animationend",v),()=>{y.clearTimeout(h),t.removeEventListener("animationstart",x),t.removeEventListener("animationcancel",v),t.removeEventListener("animationend",v)}}else p("ANIMATION_END")},[t,p]),{isPresent:["mounted","unmountSuspended"].includes(d),ref:S.useCallback(h=>{i.current=h?getComputedStyle(h):null,r(h)},[])}}function nc(e){return e?.animationName||"none"}function m2(e){let t=Object.getOwnPropertyDescriptor(e.props,"ref")?.get,r=t&&"isReactWarning"in t&&t.isReactWarning;return r?e.ref:(t=Object.getOwnPropertyDescriptor(e,"ref")?.get,r=t&&"isReactWarning"in t&&t.isReactWarning,r?e.props.ref:e.props.ref||e.ref)}var Qm="rovingFocusGroup.onEntryFocus",h2={bubbles:!1,cancelable:!0},Rs="RovingFocusGroup",[_h,KS,p2]=yS(Rs),[g2,GS]=Ts(Rs,[p2]),[y2,v2]=g2(Rs),YS=S.forwardRef((e,t)=>f.jsx(_h.Provider,{scope:e.__scopeRovingFocusGroup,children:f.jsx(_h.Slot,{scope:e.__scopeRovingFocusGroup,children:f.jsx(b2,{...e,ref:t})})}));YS.displayName=Rs;var b2=S.forwardRef((e,t)=>{const{__scopeRovingFocusGroup:r,orientation:i,loop:o=!1,dir:s,currentTabStopId:u,defaultCurrentTabStopId:d,onCurrentTabStopIdChange:p,onEntryFocus:h,preventScrollOnEntryFocus:y=!1,...v}=e,x=S.useRef(null),b=Bn(t,x),E=vS(s),[N,C]=pS({prop:u,defaultProp:d??null,onChange:p,caller:Rs}),[k,M]=S.useState(!1),O=ba(h),B=KS(r),T=S.useRef(!1),[L,I]=S.useState(0);return S.useEffect(()=>{const _=x.current;if(_)return _.addEventListener(Qm,O),()=>_.removeEventListener(Qm,O)},[O]),f.jsx(y2,{scope:r,orientation:i,dir:E,loop:o,currentTabStopId:N,onItemFocus:S.useCallback(_=>C(_),[C]),onItemShiftTab:S.useCallback(()=>M(!0),[]),onFocusableItemAdd:S.useCallback(()=>I(_=>_+1),[]),onFocusableItemRemove:S.useCallback(()=>I(_=>_-1),[]),children:f.jsx(wn.div,{tabIndex:k||L===0?-1:0,"data-orientation":i,...v,ref:b,style:{outline:"none",...e.style},onMouseDown:Ke(e.onMouseDown,()=>{T.current=!0}),onFocus:Ke(e.onFocus,_=>{const X=!T.current;if(_.target===_.currentTarget&&X&&!k){const V=new CustomEvent(Qm,h2);if(_.currentTarget.dispatchEvent(V),!V.defaultPrevented){const G=B().filter(R=>R.focusable),$=G.find(R=>R.active),Q=G.find(R=>R.id===N),z=[$,Q,...G].filter(Boolean).map(R=>R.ref.current);JS(z,y)}}T.current=!1}),onBlur:Ke(e.onBlur,()=>M(!1))})})}),XS="RovingFocusGroupItem",QS=S.forwardRef((e,t)=>{const{__scopeRovingFocusGroup:r,focusable:i=!0,active:o=!1,tabStopId:s,children:u,...d}=e,p=jh(),h=s||p,y=v2(XS,r),v=y.currentTabStopId===h,x=KS(r),{onFocusableItemAdd:b,onFocusableItemRemove:E,currentTabStopId:N}=y;return S.useEffect(()=>{if(i)return b(),()=>E()},[i,b,E]),f.jsx(_h.ItemSlot,{scope:r,id:h,focusable:i,active:o,children:f.jsx(wn.span,{tabIndex:v?0:-1,"data-orientation":y.orientation,...d,ref:t,onMouseDown:Ke(e.onMouseDown,C=>{i?y.onItemFocus(h):C.preventDefault()}),onFocus:Ke(e.onFocus,()=>y.onItemFocus(h)),onKeyDown:Ke(e.onKeyDown,C=>{if(C.key==="Tab"&&C.shiftKey){y.onItemShiftTab();return}if(C.target!==C.currentTarget)return;const k=S2(C,y.orientation,y.dir);if(k!==void 0){if(C.metaKey||C.ctrlKey||C.altKey||C.shiftKey)return;C.preventDefault();let O=x().filter(B=>B.focusable).map(B=>B.ref.current);if(k==="last")O.reverse();else if(k==="prev"||k==="next"){k==="prev"&&O.reverse();const B=O.indexOf(C.currentTarget);O=y.loop?E2(O,B+1):O.slice(B+1)}setTimeout(()=>JS(O))}}),children:typeof u=="function"?u({isCurrentTabStop:v,hasTabStop:N!=null}):u})})});QS.displayName=XS;var x2={ArrowLeft:"prev",ArrowUp:"prev",ArrowRight:"next",ArrowDown:"next",PageUp:"first",Home:"first",PageDown:"last",End:"last"};function w2(e,t){return t!=="rtl"?e:e==="ArrowLeft"?"ArrowRight":e==="ArrowRight"?"ArrowLeft":e}function S2(e,t,r){const i=w2(e.key,r);if(!(t==="vertical"&&["ArrowLeft","ArrowRight"].includes(i))&&!(t==="horizontal"&&["ArrowUp","ArrowDown"].includes(i)))return x2[i]}function JS(e,t=!1){const r=document.activeElement;for(const i of e)if(i===r||(i.focus({preventScroll:t}),document.activeElement!==r))return}function E2(e,t){return e.map((r,i)=>e[(t+i)%e.length])}var N2=YS,C2=QS,j2=function(e){if(typeof document>"u")return null;var t=Array.isArray(e)?e[0]:e;return t.ownerDocument.body},Al=new WeakMap,rc=new WeakMap,ac={},Jm=0,WS=function(e){return e&&(e.host||WS(e.parentNode))},k2=function(e,t){return t.map(function(r){if(e.contains(r))return r;var i=WS(r);return i&&e.contains(i)?i:(console.error("aria-hidden",r,"in not contained inside",e,". Doing nothing"),null)}).filter(function(r){return!!r})},A2=function(e,t,r,i){var o=k2(t,Array.isArray(e)?e:[e]);ac[r]||(ac[r]=new WeakMap);var s=ac[r],u=[],d=new Set,p=new Set(o),h=function(v){!v||d.has(v)||(d.add(v),h(v.parentNode))};o.forEach(h);var y=function(v){!v||p.has(v)||Array.prototype.forEach.call(v.children,function(x){if(d.has(x))y(x);else try{var b=x.getAttribute(i),E=b!==null&&b!=="false",N=(Al.get(x)||0)+1,C=(s.get(x)||0)+1;Al.set(x,N),s.set(x,C),u.push(x),N===1&&E&&rc.set(x,!0),C===1&&x.setAttribute(r,"true"),E||x.setAttribute(i,"true")}catch(k){console.error("aria-hidden: cannot operate on ",x,k)}})};return y(t),d.clear(),Jm++,function(){u.forEach(function(v){var x=Al.get(v)-1,b=s.get(v)-1;Al.set(v,x),s.set(v,b),x||(rc.has(v)||v.removeAttribute(i),rc.delete(v)),b||v.removeAttribute(r)}),Jm--,Jm||(Al=new WeakMap,Al=new WeakMap,rc=new WeakMap,ac={})}},T2=function(e,t,r){r===void 0&&(r="data-aria-hidden");var i=Array.from(Array.isArray(e)?e:[e]),o=j2(e);return o?(i.push.apply(i,Array.from(o.querySelectorAll("[aria-live], script"))),A2(i,o,r,"aria-hidden")):function(){return null}},Br=function(){return Br=Object.assign||function(t){for(var r,i=1,o=arguments.length;i<o;i++){r=arguments[i];
vendor: 5,485 bytes, lines 10-25
10for(var s in r)Object.prototype.hasOwnProperty.call(r,s)&&(t[s]=r[s])}return t},Br.apply(this,arguments)};function e1(e,t){var r={};for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&t.indexOf(i)<0&&(r[i]=e[i]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,i=Object.getOwnPropertySymbols(e);o<i.length;o++)t.indexOf(i[o])<0&&Object.prototype.propertyIsEnumerable.call(e,i[o])&&(r[i[o]]=e[i[o]]);return r}function _2(e,t,r){if(r||arguments.length===2)for(var i=0,o=t.length,s;i<o;i++)(s||!(i in t))&&(s||(s=Array.prototype.slice.call(t,0,i)),s[i]=t[i]);return e.concat(s||Array.prototype.slice.call(t))}var bc="right-scroll-bar-position",xc="width-before-scroll-bar",D2="with-scroll-bars-hidden",R2="--removed-body-scroll-bar-size";function Wm(e,t){return typeof e=="function"?e(t):e&&(e.current=t),e}function O2(e,t){var r=S.useState(function(){return{value:e,callback:t,facade:{get current(){return r.value},set current(i){var o=r.value;o!==i&&(r.value=i,r.callback(i,o))}}}})[0];return r.callback=t,r.facade}var z2=typeof window<"u"?S.useLayoutEffect:S.useEffect,zx=new WeakMap;function M2(e,t){var r=O2(null,function(i){return e.forEach(function(o){return Wm(o,i)})});return z2(function(){var i=zx.get(r);if(i){var o=new Set(i),s=new Set(e),u=r.current;o.forEach(function(d){s.has(d)||Wm(d,null)}),s.forEach(function(d){o.has(d)||Wm(d,u)})}zx.set(r,e)},[e]),r}function L2(e){return e}function B2(e,t){t===void 0&&(t=L2);var r=[],i=!1,o={read:function(){if(i)throw new Error("Sidecar: could not `read` from an `assigned` medium. `read` could be used only with `useMedium`.");return r.length?r[r.length-1]:e},useMedium:function(s){var u=t(s,i);return r.push(u),function(){r=r.filter(function(d){return d!==u})}},assignSyncMedium:function(s){for(i=!0;r.length;){var u=r;r=[],u.forEach(s)}r={push:function(d){return s(d)},filter:function(){return r}}},assignMedium:function(s){i=!0;var u=[];if(r.length){var d=r;r=[],d.forEach(s),u=r}var p=function(){var y=u;u=[],y.forEach(s)},h=function(){return Promise.resolve().then(p)};h(),r={push:function(y){u.push(y),h()},filter:function(y){return u=u.filter(y),r}}}};return o}function F2(e){e===void 0&&(e={});var t=B2(null);return t.options=Br({async:!0,ssr:!1},e),t}var t1=function(e){var t=e.sideCar,r=e1(e,["sideCar"]);if(!t)throw new Error("Sidecar: please provide `sideCar` property to import the right car");var i=t.read();if(!i)throw new Error("Sidecar medium not found");return S.createElement(i,Br({},r))};t1.isSideCarExport=!0;function I2(e,t){return e.useMedium(t),t1}var n1=F2(),eh=function(){},ud=S.forwardRef(function(e,t){var r=S.useRef(null),i=S.useState({onScrollCapture:eh,onWheelCapture:eh,onTouchMoveCapture:eh}),o=i[0],s=i[1],u=e.forwardProps,d=e.children,p=e.className,h=e.removeScrollBar,y=e.enabled,v=e.shards,x=e.sideCar,b=e.noRelative,E=e.noIsolation,N=e.inert,C=e.allowPinchZoom,k=e.as,M=k===void 0?"div":k,O=e.gapMode,B=e1(e,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noRelative","noIsolation","inert","allowPinchZoom","as","gapMode"]),T=x,L=M2([r,t]),I=Br(Br({},B),o);return S.createElement(S.Fragment,null,y&&S.createElement(T,{sideCar:n1,removeScrollBar:h,shards:v,noRelative:b,noIsolation:E,inert:N,setCallbacks:s,allowPinchZoom:!!C,lockRef:r,gapMode:O}),u?S.cloneElement(S.Children.only(d),Br(Br({},I),{ref:L})):S.createElement(M,Br({},I,{className:p,ref:L}),d))});ud.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1};ud.classNames={fullWidth:xc,zeroRight:bc};var U2=function(){if(typeof __webpack_nonce__<"u")return __webpack_nonce__};function P2(){if(!document)return null;var e=document.createElement("style");e.type="text/css";var t=U2();return t&&e.setAttribute("nonce",t),e}function V2(e,t){e.styleSheet?e.styleSheet.cssText=t:e.appendChild(document.createTextNode(t))}function H2(e){var t=document.head||document.getElementsByTagName("head")[0];t.appendChild(e)}var q2=function(){var e=0,t=null;return{add:function(r){e==0&&(t=P2())&&(V2(t,r),H2(t)),e++},remove:function(){e--,!e&&t&&(t.parentNode&&t.parentNode.removeChild(t),t=null)}}},Z2=function(){var e=q2();return function(t,r){S.useEffect(function(){return e.add(t),function(){e.remove()}},[t&&r])}},r1=function(){var e=Z2(),t=function(r){var i=r.styles,o=r.dynamic;return e(i,o),null};return t},$2={left:0,top:0,right:0,gap:0},th=function(e){return parseInt(e||"",10)||0},K2=function(e){var t=window.getComputedStyle(document.body),r=t[e==="padding"?"paddingLeft":"marginLeft"],i=t[e==="padding"?"paddingTop":"marginTop"],o=t[e==="padding"?"paddingRight":"marginRight"];return[th(r),th(i),th(o)]},G2=function(e){if(e===void 0&&(e="margin"),typeof window>"u")return $2;var t=K2(e),r=document.documentElement.clientWidth,i=window.innerWidth;return{left:t[0],top:t[1],right:t[2],gap:Math.max(0,i-r+t[2]-t[0])}},Y2=r1(),Il="data-scroll-locked",X2=function(e,t,r,i){var o=e.left,s=e.top,u=e.right,d=e.gap;return r===void 0&&(r="margin"),` 11 .`.concat(D2,` { 12 overflow: hidden `).concat(i,`; 13 padding-right: `).concat(d,"px ").concat(i,`; 14 } 15 body[`).concat(Il,`] { 16 overflow: hidden `).concat(i,`; 17 overscroll-behavior: contain; 18 `).concat([t&&"position: relative ".concat(i,";"),r==="margin"&&` 19 padding-left: `.concat(o,`px; 20 padding-top: `).concat(s,`px; 21 padding-right: `).concat(u,`px; 22 margin-left:0; 23 margin-top:0; 24 margin-right: `).concat(d,"px ").concat(i,`; 25 `),r==="padding"&&"padding-right: ".concat(d,"px ").concat(i,";
25")].filter(Boolean).join(""),` 26 } 27 28 .`).concat(bc,` { 29 right: `).concat(d,"px ").concat(i,`; 30 } 31 32 .`).concat(xc,` { 33 margin-right: `).concat(d,"px ").concat(i,`; 34 } 35 36 .`).concat(bc," .").concat(bc,` { 37 right: 0 `).concat(i,`; 38 } 39 40 .`).concat(xc," .").concat(xc,` { 41 margin-right: 0 `).concat(i,`; 42 } 43 44 body[`).concat(Il,`] { 45 `).concat(R2,": ").concat(d,`px; 46 } 47`)},Mx=function(){var e=parseInt(document.body.getAttribute(Il)||"0",10);return isFinite(e)?e:0},Q2=function(){S.useEffect(function(){return document.body.setAttribute(Il,(Mx()+1).toString()),function(){var e=Mx()-1;e<=0?document.body.removeAttribute(Il):document.body.setAttribute(Il,e.toString())}},[])},J2=function(e){var t=e.noRelative,r=e.noImportant,i=e.gapMode,o=i===void 0?"margin":i;Q2();var s=S.useMemo(function(){return G2(o)},[o]);return S.createElement(Y2,{styles:X2(s,!t,o,r?"":"!important")})},Dh=!1;if(typeof window<"u")try{var ic=Object.defineProperty({},"passive",{get:function(){return Dh=!0,!0}});window.addEventListener("test",ic,ic),window.removeEventListener("test",ic,ic)}catch{Dh=!1}var Tl=Dh?{passive:!1}:!1,W2=function(e){return e.tagName==="TEXTAREA"},a1=function(e,t){if(!(e instanceof Element))return!1;var r=window.getComputedStyle(e);return r[t]!=="hidden"&&!(r.overflowY===r.overflowX&&!W2(e)&&r[t]==="visible")},eD=function(e){return a1(e,"overflowY")},tD=function(e){return a1(e,"overflowX")},Lx=function(e,t){var r=t.ownerDocument,i=t;do{typeof ShadowRoot<"u"&&i instanceof ShadowRoot&&(i=i.host);var o=i1(e,i);if(o){var s=l1(e,i),u=s[1],d=s[2];if(u>d)return!0}i=i.parentNode}while(i&&i!==r.body);return!1},nD=function(e){var t=e.scrollTop,r=e.scrollHeight,i=e.clientHeight;return[t,r,i]},rD=function(e){var t=e.scrollLeft,r=e.scrollWidth,i=e.clientWidth;return[t,r,i]},i1=function(e,t){return e==="v"?eD(t):tD(t)},l1=function(e,t){return e==="v"?nD(t):rD(t)},aD=function(e,t){return e==="h"&&t==="rtl"?-1:1},iD=function(e,t,r,i,o){var s=aD(e,window.getComputedStyle(t).direction),u=s*i,d=r.target,p=t.contains(d),h=!1,y=u>0,v=0,x=0;do{if(!d)break;var b=l1(e,d),E=b[0],N=b[1],C=b[2],k=N-C-s*E;(E||k)&&i1(e,d)&&(v+=k,x+=E);var M=d.parentNode;d=M&&M.nodeType===Node.DOCUMENT_FRAGMENT_NODE?M.host:M}while(!p&&d!==document.body||p&&(t.contains(d)||t===d));return(y&&Math.abs(v)<1||!y&&Math.abs(x)<1)&&(h=!0),h},lc=function(e){return"changedTouches"in e?[e.changedTouches[0].clientX,e.changedTouches[0].clientY]:[0,0]},Bx=function(e){return[e.deltaX,e.deltaY]},Fx=function(e){return e&&"current"in e?e.current:e},lD=function(e,t){return e[0]===t[0]&&e[1]===t[1]},oD=function(e){return` 48 .block-interactivity-`.concat(e,` {pointer-events: none;} 49 .allow-interactivity-`).concat(e,` {pointer-events: all;} 50`)},sD=0,_l=[];function uD(e){var t=S.useRef([]),r=S.useRef([0,0]),i=S.useRef(),o=S.useState(sD++)[0],s=S.useState(r1)[0],u=S.useRef(e);S.useEffect(function(){u.current=e},[e]),S.useEffect(function(){if(e.inert){document.body.classList.add("block-interactivity-".concat(o));var N=_2([e.lockRef.current],(e.shards||[]).map(Fx),!0).filter(Boolean);return N.forEach(function(C){return C.classList.add("allow-interactivity-".concat(o))}),function(){document.body.classList.remove("block-interactivity-".concat(o)),N.forEach(function(C){return C.classList.remove("allow-interactivity-".concat(o))})}}},[e.inert,e.lockRef.current,e.shards]);var d=S.useCallback(function(N,C){if("touches"in N&&N.touches.length===2||N.type==="wheel"&&N.ctrlKey)return!u.current.allowPinchZoom;var k=lc(N),M=r.current,O="deltaX"in N?N.deltaX:M[0]-k[0],B="deltaY"in N?N.deltaY:M[1]-k[1],T,L=N.target,I=Math.abs(O)>Math.abs(B)?"h":"v";if("touches"in N&&I==="h"&&L.type==="range")return!1;var _=window.getSelection(),X=_&&_.anchorNode,V=X?X===L||X.contains(L):!1;if(V)return!1;var G=Lx(I,L);if(!G)return!0;if(G?T=I:(T=I==="v"?"h":"v",G=Lx(I,L)),!G)return!1;if(!i.current&&"changedTouches"in N&&(O||B)&&(i.current=T),!T)return!0;var $=i.current||T;return iD($,C,N,$==="h"?O:B)},[]),p=S.useCallback(function(N){var C=N;if(!(!_l.length||_l[_l.length-1]!==s)){var k="deltaY"in C?Bx(C):lc(C),M=t.current.filter(function(T){return T.name===C.type&&(T.target===C.target||C.target===T.shadowParent)&&lD(T.delta,k)})[0];if(M&&M.should){C.cancelable&&C.preventDefault();return}
vendor: 15,238 bytes, line 50
50if(!M){var O=(u.current.shards||[]).map(Fx).filter(Boolean).filter(function(T){return T.contains(C.target)}),B=O.length>0?d(C,O[0]):!u.current.noIsolation;B&&C.cancelable&&C.preventDefault()}}},[]),h=S.useCallback(function(N,C,k,M){var O={name:N,delta:C,target:k,should:M,shadowParent:cD(k)};t.current.push(O),setTimeout(function(){t.current=t.current.filter(function(B){return B!==O})},1)},[]),y=S.useCallback(function(N){r.current=lc(N),i.current=void 0},[]),v=S.useCallback(function(N){h(N.type,Bx(N),N.target,d(N,e.lockRef.current))},[]),x=S.useCallback(function(N){h(N.type,lc(N),N.target,d(N,e.lockRef.current))},[]);S.useEffect(function(){return _l.push(s),e.setCallbacks({onScrollCapture:v,onWheelCapture:v,onTouchMoveCapture:x}),document.addEventListener("wheel",p,Tl),document.addEventListener("touchmove",p,Tl),document.addEventListener("touchstart",y,Tl),function(){_l=_l.filter(function(N){return N!==s}),document.removeEventListener("wheel",p,Tl),document.removeEventListener("touchmove",p,Tl),document.removeEventListener("touchstart",y,Tl)}},[]);var b=e.removeScrollBar,E=e.inert;return S.createElement(S.Fragment,null,E?S.createElement(s,{styles:oD(o)}):null,b?S.createElement(J2,{noRelative:e.noRelative,gapMode:e.gapMode}):null)}function cD(e){for(var t=null;e!==null;)e instanceof ShadowRoot&&(t=e.host,e=e.host),e=e.parentNode;return t}const dD=I2(n1,uD);var o1=S.forwardRef(function(e,t){return S.createElement(ud,Br({},e,{ref:t,sideCar:dD}))});o1.classNames=ud.classNames;var Rh=["Enter"," "],fD=["ArrowDown","PageUp","Home"],s1=["ArrowUp","PageDown","End"],mD=[...fD,...s1],hD={ltr:[...Rh,"ArrowRight"],rtl:[...Rh,"ArrowLeft"]},pD={ltr:["ArrowLeft"],rtl:["ArrowRight"]},Os="Menu",[ys,gD,yD]=yS(Os),[Mi,u1]=Ts(Os,[yD,BS,GS]),cd=BS(),c1=GS(),[vD,Li]=Mi(Os),[bD,zs]=Mi(Os),d1=e=>{const{__scopeMenu:t,open:r=!1,children:i,dir:o,onOpenChange:s,modal:u=!0}=e,d=cd(t),[p,h]=S.useState(null),y=S.useRef(!1),v=ba(s),x=vS(o);return S.useEffect(()=>{const b=()=>{y.current=!0,document.addEventListener("pointerdown",E,{capture:!0,once:!0}),document.addEventListener("pointermove",E,{capture:!0,once:!0})},E=()=>y.current=!1;return document.addEventListener("keydown",b,{capture:!0}),()=>{document.removeEventListener("keydown",b,{capture:!0}),document.removeEventListener("pointerdown",E,{capture:!0}),document.removeEventListener("pointermove",E,{capture:!0})}},[]),f.jsx(l2,{...d,children:f.jsx(vD,{scope:t,open:r,onOpenChange:v,content:p,onContentChange:h,children:f.jsx(bD,{scope:t,onClose:S.useCallback(()=>v(!1),[v]),isUsingKeyboardRef:y,dir:x,modal:u,children:i})})})};d1.displayName=Os;var xD="MenuAnchor",Cp=S.forwardRef((e,t)=>{const{__scopeMenu:r,...i}=e,o=cd(r);return f.jsx(o2,{...o,...i,ref:t})});Cp.displayName=xD;var jp="MenuPortal",[wD,f1]=Mi(jp,{forceMount:void 0}),m1=e=>{const{__scopeMenu:t,forceMount:r,children:i,container:o}=e,s=Li(jp,t);return f.jsx(wD,{scope:t,forceMount:r,children:f.jsx(Ds,{present:r||s.open,children:f.jsx($S,{asChild:!0,container:o,children:i})})})};m1.displayName=jp;var gr="MenuContent",[SD,kp]=Mi(gr),h1=S.forwardRef((e,t)=>{const r=f1(gr,e.__scopeMenu),{forceMount:i=r.forceMount,...o}=e,s=Li(gr,e.__scopeMenu),u=zs(gr,e.__scopeMenu);return f.jsx(ys.Provider,{scope:e.__scopeMenu,children:f.jsx(Ds,{present:i||s.open,children:f.jsx(ys.Slot,{scope:e.__scopeMenu,children:u.modal?f.jsx(ED,{...o,ref:t}):f.jsx(ND,{...o,ref:t})})})})}),ED=S.forwardRef((e,t)=>{const r=Li(gr,e.__scopeMenu),i=S.useRef(null),o=Bn(t,i);return S.useEffect(()=>{const s=i.current;if(s)return T2(s)},[]),f.jsx(Ap,{...e,ref:o,trapFocus:r.open,disableOutsidePointerEvents:r.open,disableOutsideScroll:!0,onFocusOutside:Ke(e.onFocusOutside,s=>s.preventDefault(),{checkForDefaultPrevented:!1}),onDismiss:()=>r.onOpenChange(!1)})}),ND=S.forwardRef((e,t)=>{const r=Li(gr,e.__scopeMenu);return f.jsx(Ap,{...e,ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,disableOutsideScroll:!1,onDismiss:()=>r.onOpenChange(!1)})}),CD=kc("MenuContent.ScrollLock"),Ap=S.forwardRef((e,t)=>{const{__scopeMenu:r,loop:i=!1,trapFocus:o,onOpenAutoFocus:s,onCloseAutoFocus:u,disableOutsidePointerEvents:d,onEntryFocus:p,onEscapeKeyDown:h,onPointerDownOutside:y,onFocusOutside:v,onInteractOutside:x,onDismiss:b,disableOutsideScroll:E,...N}=e,C=Li(gr,r),k=zs(gr,r),M=cd(r),O=c1(r),B=gD(r),[T,L]=S.useState(null),I=S.useRef(null),_=Bn(t,I,C.onContentChange),X=S.useRef(0),V=S.useRef(""),G=S.useRef(0),$=S.useRef(null),Q=S.useRef("right"),F=S.useRef(0),z=E?o1:S.Fragment,R=E?{as:CD,allowPinchZoom:!0}:void 0,K=ne=>{const A=V.current+ne,pe=B().filter(be=>!be.disabled),ce=document.activeElement,D=pe.find(be=>be.ref.current===ce)?.textValue,ge=pe.map(be=>be.textValue),ke=BD(ge,A,D),ve=pe.find(be=>be.textValue===ke)?.ref.current;(function be(Le){V.current=Le,window.clearTimeout(X.current),Le!==""&&(X.current=window.setTimeout(()=>be(""),1e3))})(A),ve&&setTimeout(()=>ve.focus())};S.useEffect(()=>()=>window.clearTimeout(X.current),[]),DT();const q=S.useCallback(ne=>Q.current===$.current?.side&&ID(ne,$.current?.area),[]);return f.jsx(SD,{scope:r,searchRef:V,onItemEnter:S.useCallback(ne=>{q(ne)&&ne.preventDefault()},[q]),onItemLeave:S.useCallback(ne=>{q(ne)||(I.current?.focus(),L(null))},[q]),onTriggerLeave:S.useCallback(ne=>{q(ne)&&ne.preventDefault()},[q]),pointerGraceTimerRef:G,onPointerGraceIntentChange:S.useCallback(ne=>{$.current=ne},[]),children:f.jsx(z,{...R,children:f.jsx(SS,{asChild:!0,trapped:o,onMountAutoFocus:Ke(s,ne=>{ne.preventDefault(),I.current?.focus({preventScroll:!0})}),onUnmountAutoFocus:u,children:f.jsx(xS,{asChild:!0,disableOutsidePointerEvents:d,onEscapeKeyDown:h,onPointerDownOutside:y,onFocusOutside:v,onInteractOutside:x,onDismiss:b,children:f.jsx(N2,{asChild:!0,...O,dir:k.dir,orientation:"vertical",loop:i,currentTabStopId:T,onCurrentTabStopIdChange:L,onEntryFocus:Ke(p,ne=>{k.isUsingKeyboardRef.current||ne.preventDefault()}),preventScrollOnEntryFocus:!0,children:f.jsx(s2,{role:"menu","aria-orientation":"vertical","data-state":_1(C.open),"data-radix-menu-content":"",dir:k.dir,...M,...N,ref:_,style:{outline:"none",...N.style},onKeyDown:Ke(N.onKeyDown,ne=>{const pe=ne.target.closest("[data-radix-menu-content]")===ne.currentTarget,ce=ne.ctrlKey||ne.altKey||ne.metaKey,D=ne.key.length===1;pe&&(ne.key==="Tab"&&ne.preventDefault(),!ce&&D&&K(ne.key));const ge=I.current;if(ne.target!==ge||!mD.includes(ne.key))return;ne.preventDefault();const ve=B().filter(be=>!be.disabled).map(be=>be.ref.current);s1.includes(ne.key)&&ve.reverse(),MD(ve)}),onBlur:Ke(e.onBlur,ne=>{ne.currentTarget.contains(ne.target)||(window.clearTimeout(X.current),V.current="")}),onPointerMove:Ke(e.onPointerMove,vs(ne=>{const A=ne.target,pe=F.current!==ne.clientX;if(ne.currentTarget.contains(A)&&pe){const ce=ne.clientX>F.current?"right":"left";Q.current=ce,F.current=ne.clientX}}))})})})})})})});h1.displayName=gr;var jD="MenuGroup",Tp=S.forwardRef((e,t)=>{const{__scopeMenu:r,...i}=e;return f.jsx(wn.div,{role:"group",...i,ref:t})});Tp.displayName=jD;var kD="MenuLabel",p1=S.forwardRef((e,t)=>{const{__scopeMenu:r,...i}=e;return f.jsx(wn.div,{...i,ref:t})});p1.displayName=kD;var Rc="MenuItem",Ix="menu.itemSelect",dd=S.forwardRef((e,t)=>{const{disabled:r=!1,onSelect:i,...o}=e,s=S.useRef(null),u=zs(Rc,e.__scopeMenu),d=kp(Rc,e.__scopeMenu),p=Bn(t,s),h=S.useRef(!1),y=()=>{const v=s.current;if(!r&&v){const x=new CustomEvent(Ix,{bubbles:!0,cancelable:!0});v.addEventListener(Ix,b=>i?.(b),{once:!0}),gS(v,x),x.defaultPrevented?h.current=!1:u.onClose()}};return f.jsx(g1,{...o,ref:p,disabled:r,onClick:Ke(e.onClick,y),onPointerDown:v=>{e.onPointerDown?.(v),h.current=!0},onPointerUp:Ke(e.onPointerUp,v=>{h.current||v.currentTarget?.click()}),onKeyDown:Ke(e.onKeyDown,v=>{const x=d.searchRef.current!=="";r||x&&v.key===" "||Rh.includes(v.key)&&(v.currentTarget.click(),v.preventDefault())})})});dd.displayName=Rc;var g1=S.forwardRef((e,t)=>{const{__scopeMenu:r,disabled:i=!1,textValue:o,...s}=e,u=kp(Rc,r),d=c1(r),p=S.useRef(null),h=Bn(t,p),[y,v]=S.useState(!1),[x,b]=S.useState("");return S.useEffect(()=>{const E=p.current;E&&b((E.textContent??"").trim())},[s.children]),f.jsx(ys.ItemSlot,{scope:r,disabled:i,textValue:o??x,children:f.jsx(C2,{asChild:!0,...d,focusable:!i,children:f.jsx(wn.div,{role:"menuitem","data-highlighted":y?"":void 0,"aria-disabled":i||void 0,"data-disabled":i?"":void 0,...s,ref:h,onPointerMove:Ke(e.onPointerMove,vs(E=>{i?u.onItemLeave(E):(u.onItemEnter(E),E.defaultPrevented||E.currentTarget.focus({preventScroll:!0}))})),onPointerLeave:Ke(e.onPointerLeave,vs(E=>u.onItemLeave(E))),onFocus:Ke(e.onFocus,()=>v(!0)),onBlur:Ke(e.onBlur,()=>v(!1))})})})}),AD="MenuCheckboxItem",y1=S.forwardRef((e,t)=>{const{checked:r=!1,onCheckedChange:i,...o}=e;return f.jsx(S1,{scope:e.__scopeMenu,checked:r,children:f.jsx(dd,{role:"menuitemcheckbox","aria-checked":Oc(r)?"mixed":r,...o,ref:t,"data-state":Dp(r),onSelect:Ke(o.onSelect,()=>i?.(Oc(r)?!0:!r),{checkForDefaultPrevented:!1})})})});y1.displayName=AD;var v1="MenuRadioGroup",[TD,_D]=Mi(v1,{value:void 0,onValueChange:()=>{}}),b1=S.forwardRef((e,t)=>{const{value:r,onValueChange:i,...o}=e,s=ba(i);return f.jsx(TD,{scope:e.__scopeMenu,value:r,onValueChange:s,children:f.jsx(Tp,{...o,ref:t})})});b1.displayName=v1;var x1="MenuRadioItem",w1=S.forwardRef((e,t)=>{const{value:r,...i}=e,o=_D(x1,e.__scopeMenu),s=r===o.value;return f.jsx(S1,{scope:e.__scopeMenu,checked:s,children:f.jsx(dd,{role:"menuitemradio","aria-checked":s,...i,ref:t,"data-state":Dp(s),onSelect:Ke(i.onSelect,()=>o.onValueChange?.(r),{checkForDefaultPrevented:!1})})})});w1.displayName=x1;var _p="MenuItemIndicator",[S1,DD]=Mi(_p,{checked:!1}),E1=S.forwardRef((e,t)=>{const{__scopeMenu:r,forceMount:i,...o}=e,s=DD(_p,r);return f.jsx(Ds,{present:i||Oc(s.checked)||s.checked===!0,children:f.jsx(wn.span,{...o,ref:t,"data-state":Dp(s.checked)})})});E1.displayName=_p;var RD="MenuSeparator",N1=S.forwardRef((e,t)=>{const{__scopeMenu:r,...i}=e;return f.jsx(wn.div,{role:"separator","aria-orientation":"horizontal",...i,ref:t})});N1.displayName=RD;var OD="MenuArrow",C1=S.forwardRef((e,t)=>{const{__scopeMenu:r,...i}=e,o=cd(r);return f.jsx(u2,{...o,...i,ref:t})});C1.displayName=OD;var zD="MenuSub",[a8,j1]=Mi(zD),ns="MenuSubTrigger",k1=S.forwardRef((e,t)=>{const r=Li(ns,e.__scopeMenu),i=zs(ns,e.__scopeMenu),o=j1(ns,e.__scopeMenu),s=kp(ns,e.__scopeMenu),u=S.useRef(null),{pointerGraceTimerRef:d,onPointerGraceIntentChange:p}=s,h={__scopeMenu:e.__scopeMenu},y=S.useCallback(()=>{u.current&&window.clearTimeout(u.current),u.current=null},[]);return S.useEffect(()=>y,[y]),S.useEffect(()=>{const v=d.current;return()=>{window.clearTimeout(v),p(null)}},[d,p]),f.jsx(Cp,{asChild:!0,...h,children:f.jsx(g1,{id:o.triggerId,"aria-haspopup":"menu","aria-expanded":r.open,"aria-controls":o.contentId,"data-state":_1(r.open),...e,ref:ad(t,o.onTriggerChange),onClick:v=>{e.onClick?.(v),!(e.disabled||v.defaultPrevented)&&(v.currentTarget.focus(),r.open||r.onOpenChange(!0))},onPointerMove:Ke(e.onPointerMove,vs(v=>{s.onItemEnter(v),!v.defaultPrevented&&!e.disabled&&!r.open&&!u.current&&(s.onPointerGraceIntentChange(null),u.current=window.setTimeout(()=>{r.onOpenChange(!0),y()},100))})),onPointerLeave:Ke(e.onPointerLeave,vs(v=>{y();const x=r.content?.getBoundingClientRect();if(x){const b=r.content?.dataset.side,E=b==="right",N=E?-5:5,C=x[E?"left":"right"],k=x[E?"right":"left"];s.onPointerGraceIntentChange({area:[{x:v.clientX+N,y:v.clientY},{x:C,y:x.top},{x:k,y:x.top},{x:k,y:x.bottom},{x:C,y:x.bottom}],side:b}),window.clearTimeout(d.current),d.current=window.setTimeout(()=>s.onPointerGraceIntentChange(null),300)}else{if(s.onTriggerLeave(v),v.defaultPrevented)return;s.onPointerGraceIntentChange(null)}})),onKeyDown:Ke(e.onKeyDown,v=>{const x=s.searchRef.current!=="";e.disabled||x&&v.key===" "||hD[i.dir].includes(v.key)&&(r.onOpenChange(!0),r.content?.focus(),v.preventDefault())})})})});k1.displayName=ns;var A1="MenuSubContent",T1=S.forwardRef((e,t)=>{const r=f1(gr,e.__scopeMenu),{forceMount:i=r.forceMount,...o}=e,s=Li(gr,e.__scopeMenu),u=zs(gr,e.__scopeMenu),d=j1(A1,e.__scopeMenu),p=S.useRef(null),h=Bn(t,p);return f.jsx(ys.Provider,{scope:e.__scopeMenu,children:f.jsx(Ds,{present:i||s.open,children:f.jsx(ys.Slot,{scope:e.__scopeMenu,children:f.jsx(Ap,{id:d.contentId,"aria-labelledby":d.triggerId,...o,ref:h,align:"start",side:u.dir==="rtl"?"left":"right",disableOutsidePointerEvents:!1,disableOutsideScroll:!1,trapFocus:!1,onOpenAutoFocus:y=>{u.isUsingKeyboardRef.current&&p.current?.focus(),y.preventDefault()},onCloseAutoFocus:y=>y.preventDefault(),onFocusOutside:Ke(e.onFocusOutside,y=>{y.target!==d.trigger&&s.onOpenChange(!1)}),onEscapeKeyDown:Ke(e.onEscapeKeyDown,y=>{u.onClose(),y.preventDefault()}),onKeyDown:Ke(e.onKeyDown,y=>{const v=y.currentTarget.contains(y.target),x=pD[u.dir].includes(y.key);v&&x&&(s.onOpenChange(!1),d.trigger?.focus(),y.preventDefault())})})})})})});T1.displayName=A1;function _1(e){return e?"open":"closed"}function Oc(e){return e==="indeterminate"}function Dp(e){return Oc(e)?"indeterminate":e?"checked":"unchecked"}function MD(e){const t=document.activeElement;for(const r of e)if(r===t||(r.focus(),document.activeElement!==t))return}function LD(e,t){return e.map((r,i)=>e[(t+i)%e.length])}function BD(e,t,r){const o=t.length>1&&Array.from(t).every(h=>h===t[0])?t[0]:t,s=r?e.indexOf(r):-1;let u=LD(e,Math.max(s,0));o.length===1&&(u=u.filter(h=>h!==r));const p=u.find(h=>h.toLowerCase().startsWith(o.toLowerCase()));return p!==r?p:void 0}function FD(e,t){const{x:r,y:i}=e;let o=!1;for(let s=0,u=t.length-1;s<t.length;u=s++){const d=t[s],p=t[u],h=d.x,y=d.y,v=p.x,x=p.y;y>i!=x>i&&r<(v-h)*(i-y)/(x-y)+h&&(o=!o)}return o}function ID(e,t){if(!t)return!1;const r={x:e.clientX,y:e.clientY};return FD(r,t)}function vs(e){return t=>t.pointerType==="mouse"?e(t):void 0}var UD=d1,PD=Cp,VD=m1,HD=h1,qD=Tp,ZD=p1,$D=dd,KD=y1,GD=b1,YD=w1,XD=E1,QD=N1,JD=C1,WD=k1,eR=T1,fd="DropdownMenu",[tR]=Ts(fd,[u1]),Sn=u1(),[nR,D1]=tR(fd),R1=e=>{const{__scopeDropdownMenu:t,children:r,dir:i,open:o,defaultOpen:s,onOpenChange:u,modal:d=!0}=e,p=Sn(t),h=S.useRef(null),[y,v]=pS({prop:o,defaultProp:s??!1,onChange:u,caller:fd});return f.jsx(nR,{scope:t,triggerId:jh(),triggerRef:h,contentId:jh(),open:y,onOpenChange:v,onOpenToggle:S.useCallback(()=>v(x=>!x),[v]),modal:d,children:f.jsx(UD,{...p,open:y,onOpenChange:v,dir:i,modal:d,children:r})})};R1.displayName=fd;var O1="DropdownMenuTrigger",z1=S.forwardRef((e,t)=>{const{__scopeDropdownMenu:r,disabled:i=!1,...o}=e,s=D1(O1,r),u=Sn(r);return f.jsx(PD,{asChild:!0,...u,children:f.jsx(wn.button,{type:"button",id:s.triggerId,"aria-haspopup":"menu","aria-expanded":s.open,"aria-controls":s.open?s.contentId:void 0,"data-state":s.open?"open":"closed","data-disabled":i?"":void 0,disabled:i,...o,ref:ad(t,s.triggerRef),onPointerDown:Ke(e.onPointerDown,d=>{!i&&d.button===0&&d.ctrlKey===!1&&(s.onOpenToggle(),s.open||d.preventDefault())}),onKeyDown:Ke(e.onKeyDown,d=>{i||(["Enter"," "].includes(d.key)&&s.onOpenToggle(),d.key==="ArrowDown"&&s.onOpenChange(!0),["Enter"," ","ArrowDown"].includes(d.key)&&d.preventDefault())})})})});z1.displayName=O1;var rR="DropdownMenuPortal",M1=e=>{const{__scopeDropdownMenu:t,...r}=e,i=Sn(t);return f.jsx(VD,{...i,...r})};M1.displayName=rR;var L1="DropdownMenuContent",B1=S.forwardRef((e,t)=>
50{const{__scopeDropdownMenu:r,...i}=e,o=D1(L1,r),s=Sn(r),u=S.useRef(!1);return f.jsx(HD,{id:o.contentId,"aria-labelledby":o.triggerId,...s,...i,ref:t,onCloseAutoFocus:Ke(e.onCloseAutoFocus,d=>{u.current||o.triggerRef.current?.focus(),u.current=!1,d.preventDefault()}),onInteractOutside:Ke(e.onInteractOutside,d=>{const p=d.detail.originalEvent,h=p.button===0&&p.ctrlKey===!0,y=p.button===2||h;(!o.modal||y)&&(u.current=!0)}),style:{...e.style,"--radix-dropdown-menu-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-dropdown-menu-content-available-width":"var(--radix-popper-available-width)","--radix-dropdown-menu-content-available-height":"var(--radix-popper-available-height)","--radix-dropdown-menu-trigger-width":"var(--radix-popper-anchor-width)","--radix-dropdown-menu-trigger-height":"var(--radix-popper-anchor-height)"}})});B1.displayName=L1;var aR="DropdownMenuGroup",iR=S.forwardRef((e,t)=>{const{__scopeDropdownMenu:r,...i}=e,o=Sn(r);return f.jsx(qD,{...o,...i,ref:t})});iR.displayName=aR;var lR="DropdownMenuLabel",oR=S.forwardRef((e,t)=>{const{__scopeDropdownMenu:r,...i}=e,o=Sn(r);return f.jsx(ZD,{...o,...i,ref:t})});oR.displayName=lR;var sR="DropdownMenuItem",F1=S.forwardRef((e,t)=>{const{__scopeDropdownMenu:r,...i}=e,o=Sn(r);return f.jsx($D,{...o,...i,ref:t})});F1.displayName=sR;var uR="DropdownMenuCheckboxItem",cR=S.forwardRef((e,t)=>{const{__scopeDropdownMenu:r,...i}=e,o=Sn(r);return f.jsx(KD,{...o,...i,ref:t})});cR.displayName=uR;var dR="DropdownMenuRadioGroup",fR=S.forwardRef((e,t)=>{const{__scopeDropdownMenu:r,...i}=e,o=Sn(r);return f.jsx(GD,{...o,...i,ref:t})});fR.displayName=dR;var mR="DropdownMenuRadioItem",hR=S.forwardRef((e,t)=>{const{__scopeDropdownMenu:r,...i}=e,o=Sn(r);return f.jsx(YD,{...o,...i,ref:t})});hR.displayName=mR;var pR="DropdownMenuItemIndicator",gR=S.forwardRef((e,t)=>{const{__scopeDropdownMenu:r,...i}=e,o=Sn(r);return f.jsx(XD,{...o,...i,ref:t})});gR.displayName=pR;var yR="DropdownMenuSeparator",I1=S.forwardRef((e,t)=>{const{__scopeDropdownMenu:r,...i}=e,o=Sn(r);return f.jsx(QD,{...o,...i,ref:t})});I1.displayName=yR;var vR="DropdownMenuArrow",bR=S.forwardRef((e,t)=>{const{__scopeDropdownMenu:r,...i}=e,o=Sn(r);return f.jsx(JD,{...o,...i,ref:t})});bR.displayName=vR;var xR="DropdownMenuSubTrigger",wR=S.forwardRef((e,t)=>{const{__scopeDropdownMenu:r,...i}=e,o=Sn(r);return f.jsx(WD,{...o,...i,ref:t})});wR.displayName=xR;var SR="DropdownMenuSubContent",ER=S.forwardRef((e,t)=>{const{__scopeDropdownMenu:r,...i}=e,o=Sn(r);return f.jsx(eR,{...o,...i,ref:t,style:{...e.style,"--radix-dropdown-menu-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-dropdown-menu-content-available-width":"var(--radix-popper-available-width)","--radix-dropdown-menu-content-available-height":"var(--radix-popper-available-height)","--radix-dropdown-menu-trigger-width":"var(--radix-popper-anchor-width)","--radix-dropdown-menu-trigger-height":"var(--radix-popper-anchor-height)"}})});ER.displayName=SR;var NR=R1,CR=z1,jR=M1,kR=B1,ji=F1,Ux=I1;function zc({itemId:e,itemType:t,itemName:r,visibility:i,onRename:o,onMove:s,onDelete:u,onMakePublic:d,onMakePrivate:p,onShare:h,className:y}){const[v,x]=S.useState(!1),[b,E]=S.useState(!1),N=t==="document",C=t==="folder",k=i==="public",M=async()=>{const O=`${window.location.origin}/public/d/${e}`;await navigator.clipboard.writeText(O),E(!0),setTimeout(()=>E(!1),2e3)};return f.jsxs(NR,{open:v,onOpenChange:x,children:[f.jsx(CR,{asChild:!0,children:f.jsx("button",{type:"button",className:Ge("p-1.5 rounded-md hover:bg-accent transition-colors","focus:outline-none focus:ring-2 focus:ring-primary",y),"aria-label":`Actions for ${r}`,onClick:O=>O.preventDefault(),children:f.jsx(ik,{className:"h-4 w-4 text-muted-foreground"})})}),f.jsx(jR,{children:f.jsxs(kR,{className:"min-w-[160px] bg-popover rounded-md border shadow-md p-1 z-50",sideOffset:5,align:"end",onClick:O=>O.stopPropagation(),children:[f.jsxs(ji,{className:"flex items-center gap-2 px-2 py-1.5 text-sm rounded-sm cursor-pointer hover:bg-accent focus:bg-accent focus:outline-none",onSelect:o,children:[f.jsx(Ow,{className:"h-4 w-4"}),"Rename"]}),f.jsxs(ji,{className:"flex items-center gap-2 px-2 py-1.5 text-sm rounded-sm cursor-pointer hover:bg-accent focus:bg-accent focus:outline-none",onSelect:s,children:[f.jsx(lk,{className:"h-4 w-4"}),"Move to..."]}),C&&h&&f.jsxs(ji,{className:"flex items-center gap-2 px-2 py-1.5 text-sm rounded-sm cursor-pointer hover:bg-accent focus:bg-accent focus:outline-none",onSelect:h,children:[f.jsx(sp,{className:"h-4 w-4"}),"Share"]}),N&&f.jsxs(f.Fragment,{children:[f.jsx(Ux,{className:"h-px bg-border my-1"}),k?f.jsxs(f.Fragment,{children:[f.jsx(ji,{className:"flex items-center gap-2 px-2 py-1.5 text-sm rounded-sm cursor-pointer hover:bg-accent focus:bg-accent focus:outline-none",onSelect:M,children:b?f.jsxs(f.Fragment,{children:[f.jsx(ya,{className:"h-4 w-4 text-green-500"}),"Copied!"]}):f.jsxs(f.Fragment,{children:[f.jsx(zw,{className:"h-4 w-4"}),"Copy public link"]})}),f.jsxs(ji,{className:"flex items-center gap-2 px-2 py-1.5 text-sm rounded-sm cursor-pointer hover:bg-accent focus:bg-accent focus:outline-none",onSelect:p,children:[f.jsx(Mw,{className:"h-4 w-4"}),"Make private"]})]}):f.jsxs(ji,{className:"flex items-center gap-2 px-2 py-1.5 text-sm rounded-sm cursor-pointer hover:bg-accent focus:bg-accent focus:outline-none",onSelect:d,children:[f.jsx(ql,{className:"h-4 w-4"}),"Make public"]})]}),f.jsx(Ux,{className:"h-px bg-border my-1"}),f.jsxs(ji,{className:"flex items-center gap-2 px-2 py-1.5 text-sm rounded-sm cursor-pointer text-destructive hover:bg-destructive/10 focus:bg-destructive/10 focus:outline-none",onSelect:u,children:[f.jsx(As,{className:"h-4 w-4"}),"Delete"]})]})})]})}var Ms=e=>e.type==="checkbox",Ti=e=>e instanceof Date,zn=e=>e==null;const U1=e=>typeof e=="object";var Ut=e=>!zn(e)&&!Array.isArray(e)&&U1(e)&&!Ti(e),AR=e=>Ut(e)&&e.target?Ms(e.target)?e.target.checked:e.target.value:e,TR=e=>e.substring(0,e.search(/\.\d+(\.|$)/))||e,_R=(e,t)=>e.has(TR(t)),DR=e=>{const t=e.constructor&&e.constructor.prototype;return Ut(t)&&t.hasOwnProperty("isPrototypeOf")},Rp=typeof window<"u"&&typeof window.HTMLElement<"u"&&typeof document<"u";function Wt(e){if(e instanceof Date)return new Date(e);const t=typeof FileList<"u"&&e instanceof FileList;if(Rp&&(e instanceof Blob||t))return e;const r=Array.isArray(e);if(!r&&!(Ut(e)&&DR(e)))return e;const i=r?[]:Object.create(Object.getPrototypeOf(e));for(const o in e)Object.prototype.hasOwnProperty.call(e,o)&&(i[o]=Wt(e[o]));return i}var md=e=>/^\w*$/.test(e),_t=e=>e===void 0,Op=e=>Array.isArray(e)?e.filter(Boolean):[],zp=e=>Op(e.replace(/["|']|\]/g,"").split(/\.|\[/)),Ee=(e,t,r)=>{if(!t||!Ut(e))return r;const i=(md(t)?[t]:zp(t)).reduce((o,s)=>zn(o)?o:o[s],e);return _t(i)||i===e?_t(e[t])?r:e[t]:i},Lr=e=>typeof e=="boolean",Cr=e=>typeof e=="function",ot=(e,t,r)=>{let i=-1;const o=md(t)?[t]:zp(t),s=o.length,u=s-1;for(;++i<s;){const d=o[i];let p=r;if(i!==u){const h=e[d];p=Ut(h)||Array.isArray(h)?h:isNaN(+o[i+1])?{}:[]}if(d==="__proto__"||d==="constructor"||d==="prototype")return;e[d]=p,e=e[d]}};const Px={BLUR:"blur",FOCUS_OUT:"focusout"},jr={onBlur:"onBlur",onChange:"onChange",onSubmit:"onSubmit",onTouched:"onTouched",all:"all"},pa={max:"max",min:"min",maxLength:"maxLength",minLength:"minLength",pattern:"pattern",required:"required",validate:"validate"},RR=$e.createContext(null);RR.displayName="HookFormContext";var OR=(e,t,r,i=!0)=>{const o={defaultValues:t._defaultValues};for(const s in e)Object.defineProperty(o,s,{get:()=>{const u=s;return t._proxyFormState[u]!==jr.all&&(t._proxyFormState[u]=!i||jr.all),e[u]}});return o};const zR=typeof window<"u"?$e.useLayoutEffect:$e.useEffect;var Jn=e=>typeof e=="string",MR=(e,t,r,i,o)=>Jn(e)?(i&&t.watch.add(e),Ee(r,e,o)):Array.isArray(e)?e.map(s=>(i&&t.watch.add(s),Ee(r,s))):(i&&(t.watchAll=!0),r),Oh=e=>zn(e)||!U1(e);function Wa(e,t,r=new WeakSet){if(Oh(e)||Oh(t))return Object.is(e,t);if(Ti(e)&&Ti(t))return e.getTime()===t.getTime();const i=Object.keys(e),o=Object.keys(t);if(i.length!==o.length)return!1;if(r.has(e)||r.has(t))return!0;r.add(e),r.add(t);for(const s of i){const u=e[s];if(!o.includes(s))return!1;if(s!=="ref"){const d=t[s];if(Ti(u)&&Ti(d)||Ut(u)&&Ut(d)||Array.isArray(u)&&Array.isArray(d)?!Wa(u,d,r):!Object.is(u,d))return!1}}return!0}var Mp=(e,t,r,i,o)=>t?{...r[e],types:{...r[e]&&r[e].types?r[e].types:{},[i]:o||!0}}:{},as=e=>Array.isArray(e)?e:[e],Vx=()=>{let e=[];return{get observers(){return e},next:o=>{for(const s of e)s.next&&s.next(o)},subscribe:o=>(e.push(o),{unsubscribe:()=>{e=e.filter(s=>s!==o)}}),unsubscribe:()=>{e=[]}}};function P1(e,t){const r={};for(const i in e)if(e.hasOwnProperty(i)){const o=e[i],s=t[i];if(o&&Ut(o)&&s){const u=P1(o,s);Ut(u)&&(r[i]=u)}else e[i]&&(r[i]=s)}return r}var xn=e=>Ut(e)&&!Object.keys(e).length,Lp=e=>e.type==="file",Mc=e=>{if(!Rp)return!1;const t=e?e.ownerDocument:0;return e instanceof(t&&t.defaultView?t.defaultView.HTMLElement:HTMLElement)}
50,V1=e=>e.type==="select-multiple",Bp=e=>e.type==="radio",LR=e=>Bp(e)||Ms(e),nh=e=>Mc(e)&&e.isConnected;function BR(e,t){const r=t.slice(0,-1).length;let i=0;for(;i<r;)e=_t(e)?i++:e[t[i++]];return e}function FR(e){for(const t in e)if(e.hasOwnProperty(t)&&!_t(e[t]))return!1;return!0}function Lt(e,t){const r=Array.isArray(t)?t:md(t)?[t]:zp(t),i=r.length===1?e:BR(e,r),o=r.length-1,s=r[o];return i&&delete i[s],o!==0&&(Ut(i)&&xn(i)||Array.isArray(i)&&FR(i))&&Lt(e,r.slice(0,-1)),e}var IR=e=>{for(const t in e)if(Cr(e[t]))return!0;return!1};function H1(e){return Array.isArray(e)||Ut(e)&&!IR(e)}function zh(e,t={}){for(const r in e){const i=e[r];H1(i)?(t[r]=Array.isArray(i)?[]:{},zh(i,t[r])):_t(i)||(t[r]=!0)}return t}function Ml(e,t,r){r||(r=zh(t));for(const i in e){const o=e[i];if(H1(o))_t(t)||Oh(r[i])?r[i]=zh(o,Array.isArray(o)?[]:{}):Ml(o,zn(t)?{}:t[i],r[i]);else{const s=t[i];r[i]=!Wa(o,s)}}return r}const Hx={value:!1,isValid:!1},qx={value:!0,isValid:!0};var q1=e=>{if(Array.isArray(e)){if(e.length>1){const t=e.filter(r=>r&&r.checked&&!r.disabled).map(r=>r.value);return{value:t,isValid:!!t.length}}return e[0].checked&&!e[0].disabled?e[0].attributes&&!_t(e[0].attributes.value)?_t(e[0].value)||e[0].value===""?qx:{value:e[0].value,isValid:!0}:qx:Hx}return Hx},Z1=(e,{valueAsNumber:t,valueAsDate:r,setValueAs:i})=>_t(e)?e:t?e===""?NaN:e&&+e:r&&Jn(e)?new Date(e):i?i(e):e;const Zx={isValid:!1,value:null};var $1=e=>Array.isArray(e)?e.reduce((t,r)=>r&&r.checked&&!r.disabled?{isValid:!0,value:r.value}:t,Zx):Zx;function $x(e){const t=e.ref;return Lp(t)?t.files:Bp(t)?$1(e.refs).value:V1(t)?[...t.selectedOptions].map(({value:r})=>r):Ms(t)?q1(e.refs).value:Z1(_t(t.value)?e.ref.value:t.value,e)}var UR=(e,t,r,i)=>{const o={};for(const s of e){const u=Ee(t,s);u&&ot(o,s,u._f)}return{criteriaMode:r,names:[...e],fields:o,shouldUseNativeValidation:i}},Lc=e=>e instanceof RegExp,Xo=e=>_t(e)?e:Lc(e)?e.source:Ut(e)?Lc(e.value)?e.value.source:e.value:e,Kx=e=>({isOnSubmit:!e||e===jr.onSubmit,isOnBlur:e===jr.onBlur,isOnChange:e===jr.onChange,isOnAll:e===jr.all,isOnTouch:e===jr.onTouched});const Gx="AsyncFunction";var PR=e=>!!e&&!!e.validate&&!!(Cr(e.validate)&&e.validate.constructor.name===Gx||Ut(e.validate)&&Object.values(e.validate).find(t=>t.constructor.name===Gx)),VR=e=>e.mount&&(e.required||e.min||e.max||e.maxLength||e.minLength||e.pattern||e.validate),Yx=(e,t,r)=>!r&&(t.watchAll||t.watch.has(e)||[...t.watch].some(i=>e.startsWith(i)&&/^\.\w+/.test(e.slice(i.length))));const is=(e,t,r,i)=>{for(const o of r||Object.keys(e)){const s=Ee(e,o);if(s){const{_f:u,...d}=s;if(u){if(u.refs&&u.refs[0]&&t(u.refs[0],o)&&!i)return!0;if(u.ref&&t(u.ref,u.name)&&!i)return!0;if(is(d,t))break}else if(Ut(d)&&is(d,t))break}}};function Xx(e,t,r){const i=Ee(e,r);if(i||md(r))return{error:i,name:r};const o=r.split(".");for(;o.length;){const s=o.join("."),u=Ee(t,s),d=Ee(e,s);if(u&&!Array.isArray(u)&&r!==s)return{name:r};if(d&&d.type)return{name:s,error:d};if(d&&d.root&&d.root.type)return{name:`${s}.root`,error:d.root};o.pop()}return{name:r}}var HR=(e,t,r,i)=>{r(e);const{name:o,...s}=e;return xn(s)||Object.keys(s).length>=Object.keys(t).length||Object.keys(s).find(u=>t[u]===(!i||jr.all))},qR=(e,t,r)=>!e||!t||e===t||as(e).some(i=>i&&(r?i===t:i.startsWith(t)||t.startsWith(i))),ZR=(e,t,r,i,o)=>o.isOnAll?!1:!r&&o.isOnTouch?!(t||e):(r?i.isOnBlur:o.isOnBlur)?!e:(r?i.isOnChange:o.isOnChange)?e:!0,$R=(e,t)=>!Op(Ee(e,t)).length&&Lt(e,t),KR=(e,t,r)=>{const i=as(Ee(e,r));return ot(i,"root",t[r]),ot(e,r,i),e};function Qx(e,t,r="validate"){if(Jn(e)||Array.isArray(e)&&e.every(Jn)||Lr(e)&&!e)return{type:r,message:Jn(e)?e:"",ref:t}}var Dl=e=>Ut(e)&&!Lc(e)?e:{value:e,message:""},Jx=async(e,t,r,i,o,s)=>{const{ref:u,refs:d,required:p,maxLength:h,minLength:y,min:v,max:x,pattern:b,validate:E,name:N,valueAsNumber:C,mount:k}=e._f,M=Ee(r,N);if(!k||t.has(N))return{};const O=d?d[0]:u,B=$=>{o&&O.reportValidity&&(O.setCustomValidity(Lr($)?"":$||""),O.reportValidity())},T={},L=Bp(u),I=Ms(u),_=L||I,X=(C||Lp(u))&&_t(u.value)&&_t(M)||Mc(u)&&u.value===""||M===""||Array.isArray(M)&&!M.length,V=Mp.bind(null,N,i,T),G=($,Q,F,z=pa.maxLength,R=pa.minLength)=>{const K=$?Q:F;T[N]={type:$?z:R,message:K,ref:u,...V($?z:R,K)}};if(s?!Array.isArray(M)||!M.length:p&&(!_&&(X||zn(M))||Lr(M)&&!M||I&&!q1(d).isValid||L&&!$
vendor: 1,063 bytes, line 50
501(d).isValid)){const{value:$,message:Q}=Jn(p)?{value:!!p,message:p}:Dl(p);if($&&(T[N]={type:pa.required,message:Q,ref:O,...V(pa.required,Q)},!i))return B(Q),T}if(!X&&(!zn(v)||!zn(x))){let $,Q;const F=Dl(x),z=Dl(v);if(!zn(M)&&!isNaN(M)){const R=u.valueAsNumber||M&&+M;zn(F.value)||($=R>F.value),zn(z.value)||(Q=R<z.value)}else{const R=u.valueAsDate||new Date(M),K=A=>new Date(new Date().toDateString()+" "+A),q=u.type=="time",ne=u.type=="week";Jn(F.value)&&M&&($=q?K(M)>K(F.value):ne?M>F.value:R>new Date(F.value)),Jn(z.value)&&M&&(Q=q?K(M)<K(z.value):ne?M<z.value:R<new Date(z.value))}if(($||Q)&&(G(!!$,F.message,z.message,pa.max,pa.min),!i))return B(T[N].message),T}if((h||y)&&!X&&(Jn(M)||s&&Array.isArray(M))){const $=Dl(h),Q=Dl(y),F=!zn($.value)&&M.length>+$.value,z=!zn(Q.value)&&M.length<+Q.value;if((F||z)&&(G(F,$.message,Q.message),!i))return B(T[N].message),T}if(b&&!X&&Jn(M)){const{value:$,message:Q}=Dl(b);if(Lc($)&&!M.match($)&&(T[N]={type:pa.pattern,message:Q,ref:u,...V(pa.pattern,Q)},!i))return B(Q),T}if(E){if(Cr(E)){const $=await E(M,r),Q=Qx($,O);
50if(Q&&(T[N]={...Q,...V(pa.validate,Q.message)},!i))return B(Q.message),T}else if(Ut(E)){let $={};for(const Q in E){if(!xn($)&&!i)break;const F=Qx(await E[Q](M,r),O,Q);F&&($={...F,...V(Q,F.message)},B(F.message),i&&(T[N]=$))}if(!xn($)&&(T[N]={ref:O,...$},!i))return T}}return B(!0),T};const GR={mode:jr.onSubmit,reValidateMode:jr.onChange,shouldFocusError:!0};function YR(e={}){let t={...GR,...e},r={submitCount:0,isDirty:!1,isReady:!1,isLoading:Cr(t.defaultValues),isValidating:!1,isSubmitted:!1,isSubmitting:!1,isSubmitSuccessful:!1,isValid:!1,touchedFields:{},dirtyFields:{},validatingFields:{},errors:t.errors||{},disabled:t.disabled||!1},i={},o=Ut(t.defaultValues)||Ut(t.values)?Wt(t.defaultValues||t.values)||{}:{},s=t.shouldUnregister?{}:Wt(o),u={action:!1,mount:!1,watch:!1,keepIsValid:!1},d={mount:new Set,disabled:new Set,unMount:new Set,array:new Set,watch:new Set},p,h=0;const y={isDirty:!1,dirtyFields:!1,validatingFields:!1,touchedFields:!1,isValidating:!1,isValid:!1,errors:!1},v={...y};let x={...v};const b={array:Vx(),state:Vx()},E=t.criteriaMode===jr.all,N=P=>J=>{clearTimeout(h),h=setTimeout(P,J)},C=async P=>{if(!u.keepIsValid&&!t.disabled&&(v.isValid||x.isValid||P)){let J;t.resolver?(J=xn((await _()).errors),k()):J=await V(i,!0),J!==r.isValid&&b.state.next({isValid:J})}},k=(P,J)=>{!t.disabled&&(v.isValidating||v.validatingFields||x.isValidating||x.validatingFields)&&((P||Array.from(d.mount)).forEach(ie=>{ie&&(J?ot(r.validatingFields,ie,J):Lt(r.validatingFields,ie))}),b.state.next({validatingFields:r.validatingFields,isValidating:!xn(r.validatingFields)}))},M=(P,J=[],ie,fe,he=!0,H=!0)=>{if(fe&&ie&&!t.disabled){if(u.action=!0,H&&Array.isArray(Ee(i,P))){const re=ie(Ee(i,P),fe.argA,fe.argB);he&&ot(i,P,re)}if(H&&Array.isArray(Ee(r.errors,P))){const re=ie(Ee(r.errors,P),fe.argA,fe.argB);he&&ot(r.errors,P,re),$R(r.errors,P)}if((v.touchedFields||x.touchedFields)&&H&&Array.isArray(Ee(r.touchedFields,P))){const re=ie(Ee(r.touchedFields,P),fe.argA,fe.argB);he&&ot(r.touchedFields,P,re)}(v.dirtyFields||x.dirtyFields)&&(r.dirtyFields=Ml(o,s)),b.state.next({name:P,isDirty:$(P,J),dirtyFields:r.dirtyFields,errors:r.errors,isValid:r.isValid})}else ot(s,P,J)},O=(P,J)=>{ot(r.errors,P,J),b.state.next({errors:r.errors})},B=P=>{r.errors=P,b.state.next({errors:r.errors,isValid:!1})},T=(P,J,ie,fe)=>{const he=Ee(i,P);if(he){const H=Ee(s,P,_t(ie)?Ee(o,P):ie);_t(H)||fe&&fe.defaultChecked||J?ot(s,P,J?H:$x(he._f)):z(P,H),u.mount&&!u.action&&C()}},L=(P,J,ie,fe,he)=>{let H=!1,re=!1;const me={name:P};if(!t.disabled){if(!ie||fe){(v.isDirty||x.isDirty)&&(re=r.isDirty,r.isDirty=me.isDirty=$(),H=re!==me.isDirty);const ye=Wa(Ee(o,P),J);re=!!Ee(r.dirtyFields,P),ye?Lt(r.dirtyFields,P):ot(r.dirtyFields,P,!0),me.dirtyFields=r.dirtyFields,H=H||(v.dirtyFields||x.dirtyFields)&&re!==!ye}if(ie){const ye=Ee(r.touchedFields,P);ye||(ot(r.touchedFields,P,ie),me.touchedFields=r.touchedFields,H=H||(v.touchedFields||x.touchedFields)&&ye!==ie)}H&&he&&b.state.next(me)}return H?me:{}},I=(P,J,ie,fe)=>{const he=Ee(r.errors,P),H=(v.isValid||x.isValid)&&Lr(J)&&r.isValid!==J;if(t.delayError&&ie?(p=N(()=>O(P,ie)),p(t.delayError)):(clearTimeout(h),p=null,ie?ot(r.errors,P,ie):Lt(r.errors,P)),(ie?!Wa(he,ie):he)||!xn(fe)||H){const re={...fe,...H&&Lr(J)?{isValid:J}:{},errors:r.errors,name:P};r={...r,...re},b.state.next(re)}},_=async P=>(k(P,!0),await t.resolver(s,t.context,UR(P||d.mount,i,t.criteriaMode,t.shouldUseNativeValidation))),X=async P=>{const{errors:J}=await _(P);if(k(P),P)for(const ie of P){const fe=Ee(J,ie);fe?ot(r.errors,ie,fe):Lt(r.errors,ie)}else r.errors=J;return J},V=async(P,J,ie={valid:!0})=>{for(const fe in P){const he=P[fe];if(he){const{_f:H,...re}=he;if(H){const me=d.array.has(H.name),ye=he._f&&PR(he._f);ye&&v.validatingFields&&k([H.name],!0);const De=await Jx(he,d.disabled,s,E,t.shouldUseNativeValidation&&!J,me);if(ye&&v.validatingFields&&k([H.name]),De[H.name]&&(ie.valid=!1,J))break;!J&&(Ee(De,H.name)?me?KR(r.errors,De,H.name):ot(r.errors,H.name,De[H.name]):Lt(r.errors,H.name))}!xn(re)&&await V(re,J,ie)}}return ie.valid},G=()=>{for(const P of d.unMount){const J=Ee(i,P);J&&(J._f.refs?J._f.refs.every(ie=>!nh(ie)):!nh(J._f.ref))&&Le(P)}d.unMount=new Set},$=(P,J)=>!t.disabled&&(P&&J&&ot(s,P,J),!Wa(pe(),o)),Q=(P,J,ie)=>MR(P,d,{...u.mount?s:_t(J)?o:Jn(P)?{[P]:J}:J},ie,J),F=P=>Op(Ee(u.mount?s:o,P,t.shouldUnregister?Ee(o,P,[]):[])),z=(P,J,ie={})=>{const fe=Ee(i,P);let he=J;if(fe){const H=fe._f;H&&(!H.disabled&&ot(s,P,Z1(J,H)),he=Mc(H.ref)&&zn(J)?"":J,V1(H.ref)?[...H.ref.options].forEac
50h(re=>re.selected=he.includes(re.value)):H.refs?Ms(H.ref)?H.refs.forEach(re=>{(!re.defaultChecked||!re.disabled)&&(Array.isArray(he)?re.checked=!!he.find(me=>me===re.value):re.checked=he===re.value||!!he)}):H.refs.forEach(re=>re.checked=re.value===he):Lp(H.ref)?H.ref.value="":(H.ref.value=he,H.ref.type||b.state.next({name:P,values:Wt(s)})))}(ie.shouldDirty||ie.shouldTouch)&&L(P,he,ie.shouldTouch,ie.shouldDirty,!0),ie.shouldValidate&&A(P)},R=(P,J,ie)=>{for(const fe in J){if(!J.hasOwnProperty(fe))return;const he=J[fe],H=P+"."+fe,re=Ee(i,H);(d.array.has(P)||Ut(he)||re&&!re._f)&&!Ti(he)?R(H,he,ie):z(H,he,ie)}},K=(P,J,ie={})=>{const fe=Ee(i,P),he=d.array.has(P),H=Wt(J);ot(s,P,H),he?(b.array.next({name:P,values:Wt(s)}),(v.isDirty||v.dirtyFields||x.isDirty||x.dirtyFields)&&ie.shouldDirty&&b.state.next({name:P,dirtyFields:Ml(o,s),isDirty:$(P,H)})):fe&&!fe._f&&!zn(H)?R(P,H,ie):z(P,H,ie),Yx(P,d)&&b.state.next({...r,name:P}),b.state.next({name:u.mount?P:void 0,values:Wt(s)})},q=async P=>{u.mount=!0;const J=P.target;let ie=J.name,fe=!0;const he=Ee(i,ie),H=ye=>{fe=Number.isNaN(ye)||Ti(ye)&&isNaN(ye.getTime())||Wa(ye,Ee(s,ie,ye))},re=Kx(t.mode),me=Kx(t.reValidateMode);if(he){let ye,De;const it=J.type?$x(he._f):AR(P),Ct=P.type===Px.BLUR||P.type===Px.FOCUS_OUT,Vt=!VR(he._f)&&!t.resolver&&!Ee(r.errors,ie)&&!he._f.deps||ZR(Ct,Ee(r.touchedFields,ie),r.isSubmitted,me,re),ht=Yx(ie,d,Ct);ot(s,ie,it),Ct?(!J||!J.readOnly)&&(he._f.onBlur&&he._f.onBlur(P),p&&p(0)):he._f.onChange&&he._f.onChange(P);const xt=L(ie,it,Ct),Ye=!xn(xt)||ht;if(!Ct&&b.state.next({name:ie,type:P.type,values:Wt(s)}),Vt)return(v.isValid||x.isValid)&&(t.mode==="onBlur"?Ct&&C():Ct||C()),Ye&&b.state.next({name:ie,...ht?{}:xt});if(!Ct&&ht&&b.state.next({...r}),t.resolver){const{errors:Pn}=await _([ie]);if(k([ie]),H(it),fe){const mn=Xx(r.errors,i,ie),Ui=Xx(Pn,i,mn.name||ie);ye=Ui.error,ie=Ui.name,De=xn(Pn)}}else k([ie],!0),ye=(await Jx(he,d.disabled,s,E,t.shouldUseNativeValidation))[ie],k([ie]),H(it),fe&&(ye?De=!1:(v.isValid||x.isValid)&&(De=await V(i,!0)));fe&&(he._f.deps&&(!Array.isArray(he._f.deps)||he._f.deps.length>0)&&A(he._f.deps),I(ie,De,ye,xt))}},ne=(P,J)=>{if(Ee(r.errors,J)&&P.focus)return P.focus(),1},A=async(P,J={})=>{let ie,fe;const he=as(P);if(t.resolver){const H=await X(_t(P)?P:he);ie=xn(H),fe=P?!he.some(re=>Ee(H,re)):ie}else P?(fe=(await Promise.all(he.map(async H=>{const re=Ee(i,H);return await V(re&&re._f?{[H]:re}:re)}))).every(Boolean),!(!fe&&!r.isValid)&&C()):fe=ie=await V(i);return b.state.next({...!Jn(P)||(v.isValid||x.isValid)&&ie!==r.isValid?{}:{name:P},...t.resolver||!P?{isValid:ie}:{},errors:r.errors}),J.shouldFocus&&!fe&&is(i,ne,P?he:d.mount),fe},pe=(P,J)=>{let ie={...u.mount?s:o};return J&&(ie=P1(J.dirtyFields?r.dirtyFields:r.touchedFields,ie)),_t(P)?ie:Jn(P)?Ee(ie,P):P.map(fe=>Ee(ie,fe))},ce=(P,J)=>({invalid:!!Ee((J||r).errors,P),isDirty:!!Ee((J||r).dirtyFields,P),error:Ee((J||r).errors,P),isValidating:!!Ee(r.validatingFields,P),isTouched:!!Ee((J||r).touchedFields,P)}),D=P=>{P&&as(P).forEach(J=>Lt(r.errors,J)),b.state.next({errors:P?r.errors:{}})},ge=(P,J,ie)=>{const fe=(Ee(i,P,{_f:{}})._f||{}).ref,he=Ee(r.errors,P)||{},{ref:H,message:re,type:me,...ye}=he;ot(r.errors,P,{...ye,...J,ref:fe}),b.state.next({name:P,errors:r.errors,isValid:!1}),ie&&ie.shouldFocus&&fe&&fe.focus&&fe.focus()},ke=(P,J)=>Cr(P)?b.state.subscribe({next:ie=>"values"in ie&&P(Q(void 0,J),ie)}):Q(P,J,!0),ve=P=>b.state.subscribe({next:J=>{qR(P.name,J.name,P.exact)&&HR(J,P.formState||v,Kr,P.reRenderRoot)&&P.callback({values:{...s},...r,...J,defaultValues:o})}}).unsubscribe,be=P=>(u.mount=!0,x={...x,...P.formState},ve({...P,formState:{...y,...P.formState}})),Le=(P,J={})=>
50{for(const ie of P?as(P):d.mount)d.mount.delete(ie),d.array.delete(ie),J.keepValue||(Lt(i,ie),Lt(s,ie)),!J.keepError&&Lt(r.errors,ie),!J.keepDirty&&Lt(r.dirtyFields,ie),!J.keepTouched&&Lt(r.touchedFields,ie),!J.keepIsValidating&&Lt(r.validatingFields,ie),!t.shouldUnregister&&!J.keepDefaultValue&&Lt(o,ie);b.state.next({values:Wt(s)}),b.state.next({...r,...J.keepDirty?{isDirty:$()}:{}}),!J.keepIsValid&&C()},Ie=({disabled:P,name:J})=>{(Lr(P)&&u.mount||P||d.disabled.has(J))&&(P?d.disabled.add(J):d.disabled.delete(J))},Te=(P,J={})=>{let ie=Ee(i,P);const fe=Lr(J.disabled)||Lr(t.disabled);return ot(i,P,{...ie||{},_f:{...ie&&ie._f?ie._f:{ref:{name:P}},name:P,mount:!0,...J}}),d.mount.add(P),ie?Ie({disabled:Lr(J.disabled)?J.disabled:t.disabled,name:P}):T(P,!0,J.value),{...fe?{disabled:J.disabled||t.disabled}:{},...t.progressive?{required:!!J.required,min:Xo(J.min),max:Xo(J.max),minLength:Xo(J.minLength),maxLength:Xo(J.maxLength),pattern:Xo(J.pattern)}:{},name:P,onChange:q,onBlur:q,ref:he=>{if(he){Te(P,J),ie=Ee(i,P);const H=_t(he.value)&&he.querySelectorAll&&he.querySelectorAll("input,select,textarea")[0]||he,re=LR(H),me=ie._f.refs||[];if(re?me.find(ye=>ye===H):H===ie._f.ref)return;ot(i,P,{_f:{...ie._f,...re?{refs:[...me.filter(nh),H,...Array.isArray(Ee(o,P))?[{}]:[]],ref:{type:H.type,name:P}}:{ref:H}}}),T(P,!1,void 0,H)}else ie=Ee(i,P,{}),ie._f&&(ie._f.mount=!1),(t.shouldUnregister||J.shouldUnregister)&&!(_R(d.array,P)&&u.action)&&d.unMount.add(P)}}},ft=()=>t.shouldFocusError&&is(i,ne,d.mount),mt=P=>{Lr(P)&&(b.state.next({disabled:P}),is(i,(J,ie)=>{const fe=Ee(i,ie);fe&&(J.disabled=fe._f.disabled||P,Array.isArray(fe._f.refs)&&fe._f.refs.forEach(he=>{he.disabled=fe._f.disabled||P}))},0,!1))},Pt=(P,J)=>async ie=>{let fe;ie&&(ie.preventDefault&&ie.preventDefault(),ie.persist&&ie.persist());let he=Wt(s);if(b.state.next({isSubmitting:!0}),t.resolver){const{errors:H,values:re}=await _();k(),r.errors=H,he=Wt(re)}else await V(i);if(d.disabled.size)for(const H of d.disabled)Lt(he,H);if(Lt(r.errors,"root"),xn(r.errors)){b.state.next({errors:{}});try{await P(he,ie)}catch(H){fe=H}}else J&&await J({...r.errors},ie),ft(),setTimeout(ft);if(b.state.next({isSubmitted:!0,isSubmitting:!1,isSubmitSuccessful:xn(r.errors)&&!fe,submitCount:r.submitCount+1,errors:r.errors}),fe)throw fe},Nt=(P,J={})=>{Ee(i,P)&&(_t(J.defaultValue)?K(P,Wt(Ee(o,P))):(K(P,J.defaultValue),ot(o,P,Wt(J.defaultValue))),J.keepTouched||Lt(r.touchedFields,P),J.keepDirty||(Lt(r.dirtyFields,P),r.isDirty=J.defaultValue?$(P,Wt(Ee(o,P))):$()),J.keepError||(Lt(r.errors,P),v.isValid&&C()),b.state.next({...r}))},dn=(P,J={})=>{const ie=P?Wt(P):o,fe=Wt(ie),he=xn(P),H=he?o:fe;if(J.keepDefaultValues||(o=ie),!J.keepValues){if(J.keepDirtyValues){const re=new Set([...d.mount,...Object.keys(Ml(o,s))]);for(const me of Array.from(re))Ee(r.dirtyFields,me)?ot(H,me,Ee(s,me)):K(me,Ee(H,me))}else{if(Rp&&_t(P))for(const re of d.mount){const me=Ee(i,re);if(me&&me._f){const ye=Array.isArray(me._f.refs)?me._f.refs[0]:me._f.ref;if(Mc(ye)){const De=ye.closest("form");if(De){De.reset();break}}}}if(J.keepFieldsRef)for(const re of d.mount)K(re,Ee(H,re));else i={}}s=t.shouldUnregister?J.keepDefaultValues?Wt(o):{}:Wt(H),b.array.next({values:{...H}}),b.state.next({values:{...H}})}d={mount:J.keepDirtyValues?d.mount:new Set,unMount:new Set,array:new Set,disabled:new Set,watch:new Set,watchAll:!1,focus:""},u.mount=!v.isValid||!!J.keepIsValid||!!J.keepDirtyValues||!t.shouldUnregister&&!xn(H),u.watch=!!t.shouldUnregister,u.keepIsValid=!!J.keepIsValid,u.action=!1,J.keepErrors||(r.errors={}),b.state.next({submitCount:J.keepSubmitCount?r.submitCount:0,isDirty:he?!1:J.keepDirty?r.isDirty:!!(J.keepDefaultValues&&!Wa(P,o)),isSubmitted:J.keepIsSubmitted?r.isSubmitted:!1,dirtyFields:he?{}:J.keepDirtyValues?J.keepDefaultValues&&s?Ml(o,s):r.dirtyFields:J.keepDefaultValues&&P?Ml(o,P):J.keepDirty?r.dirtyFields:{},touchedFields:J.keepTouched?r.touchedFields:{},errors:J.keepErrors?r.errors:{},isSubmitSuccessful:J.keepIsSubmitSuccessful?r.isSubmitSuccessful:!1,isSubmitting:!1,defaultValues:o})},fn=(P,J)=>dn(Cr(P)?P(s):P,{...t.resetOptions,...J}),$r=(P,J={})=>{const ie=Ee(i,P),fe=ie&&ie._f;if(fe){const he=fe.refs?fe.refs[0]:fe.ref;he.focus&&setTimeout(()=>{he.focus(),J.shouldSelect&&Cr(he.select)&&he.select()})}},Kr=P=>{r={...r,...P}},Yt={control:{register:Te,unregister:Le,getFieldState:ce,handleSubmit:Pt,setError:ge,_subscribe:ve,_runSchema:_,_updateIsValidating:k,_focusError:ft,_getWatch:Q,_getDirty:$,_setValid:C,_setFieldArray:M,_setDisabledField:Ie,_setErrors:B,_getFieldArray:F,_reset:dn,_resetDefaultValues:()=>Cr(t.defaultValues)&&t.defaultValues().then(P=>{fn(P,t.resetOptions),b.state.next({isLoading:!1})}),_removeUnmounted:G,_disableForm:mt,_subjects:b,_proxyFormState:v,get _fields(){return i},get _formValues(){return s},get _state(){return u},set _state(P){u=P},get _defaultValues(){return o},get _names(){return d},set _names(P){d=P},get _formState(){return r},get _options(){return t},set _options(P){t={...t,...P}}},subscribe:be,trigger:A,register:Te,handleSubmit:Pt,watch:ke,setValue:K,getValues:pe,reset:fn,resetField:Nt,clearErrors:D,unregister:Le,setError:ge,setFocus:$r,getFieldState:ce};return{...Yt,formControl:Yt}}function hd(e={}){const t=$e.useRef(void 0),r=$e.useRef(void 0),[i,o]=$e.useState({isDirty:!1,isValidating:!1,isLoading:Cr(e.defaultValues),isSubmitted:!1,isSubmitting:!1,isSubmitSuccessful:!1,isValid:!1,submitCount:0,dirtyFields:{},touchedFields:{},validatingFields:{},errors:e.errors||{},disabled:e.disabled||!1,isReady:!1,defaultValues:Cr(e.defaultValues)?void 0:e.defaultValues});if(!t.current)if(e.formControl)t.current={...e.formControl,formState:i},e.defaultValues&&!Cr(e.defaultValues)&&e.formControl.reset(e.defaultValues,e.resetOptions);else{const{formControl:u,...d}=YR(e);t.current={...d,formState:i}}const s=t.current.control;return s._options=e,zR(()=>{const u=s._subscribe({formState:s._proxyFormState,callback:()=>o({...s._formState}
50),reRenderRoot:!0});return o(d=>({...d,isReady:!0})),s._formState.isReady=!0,u},[s]),$e.useEffect(()=>s._disableForm(e.disabled),[s,e.disabled]),$e.useEffect(()=>{e.mode&&(s._options.mode=e.mode),e.reValidateMode&&(s._options.reValidateMode=e.reValidateMode)},[s,e.mode,e.reValidateMode]),$e.useEffect(()=>{e.errors&&(s._setErrors(e.errors),s._focusError())},[s,e.errors]),$e.useEffect(()=>{e.shouldUnregister&&s._subjects.state.next({values:s._getWatch()})},[s,e.shouldUnregister]),$e.useEffect(()=>{if(s._proxyFormState.isDirty){const u=s._getDirty();u!==i.isDirty&&s._subjects.state.next({isDirty:u})}},[s,i.isDirty]),$e.useEffect(()=>{var u;e.values&&!Wa(e.values,r.current)?(s._reset(e.values,{keepFieldsRef:!0,...s._options.resetOptions}),!((u=s._options.resetOptions)===null||u===void 0)&&u.keepIsValid||s._setValid(),r.current=e.values,o(d=>({...d}))):s._resetDefaultValues()},[s,e.values]),$e.useEffect(()=>{s._state.mount||(s._setValid(),s._state.mount=!0),s._state.watch&&(s._state.watch=!1,s._subjects.state.next({...s._formState})),s._removeUnmounted()}),t.current.formState=OR(i,s),t.current}const Wx=(e,t,r)=>{if(e&&"reportValidity"in e){const i=Ee(r,t);e.setCustomValidity(i&&i.message||""),e.reportValidity()}},Mh=(e,t)=>{for(const r in t.fields){const i=t.fields[r];i&&i.ref&&"reportValidity"in i.ref?Wx(i.ref,r,e):i&&i.refs&&i.refs.forEach(o=>Wx(o,r,e))}},e0=(e,t)=>{t.shouldUseNativeValidation&&Mh(e,t);const r={};for(const i in e){const o=Ee(t.fields,i),s=Object.assign(e[i]||{},{ref:o&&o.ref});if(XR(t.names||Object.keys(e),i)){const u=Object.assign({},Ee(r,i));ot(u,"root",s),ot(r,i,u)}else ot(r,i,s)}return r},XR=(e,t)=>{const r=t0(t);return e.some(i=>t0(i).match(`^${r}\\.\\d+`))};function t0(e){return e.replace(/\]|\[/g,"")}function ue(e,t,r){function i(d,p){if(d._zod||Object.defineProperty(d,"_zod",{value:{def:p,constr:u,traits:new Set},enumerable:!1}),d._zod.traits.has(e))return;d._zod.traits.add(e),t(d,p);const h=u.prototype,y=Object.keys(h);for(let v=0;v<y.length;v++){const x=y[v];x in d||(d[x]=h[x].bind(d))}}const o=r?.Parent??Object;class s extends o{}Object.defineProperty(s,"name",{value:e});function u(d){var p;const h=r?.Parent?new s:this;i(h,d),(p=h._zod).deferred??(p.deferred=[]);for(const y of h._zod.deferred)y();return h}return Object.defineProperty(u,"init",{value:i}),Object.defineProperty(u,Symbol.hasInstance,{value:d=>r?.Parent&&d instanceof r.Parent?!0:d?._zod?.traits?.has(e)}),Object.defineProperty(u,"name",{value:e}),u}class Ul extends Error{constructor(){super("Encountered Promise during synchronous parse. Use .parseAsync() instead.")}}class K1 extends Error{constructor(t){super(`Encountered unidirectional transform during encode: ${t}`),this.name="ZodEncodeError"}}const G1={};function Di(e){return G1}function Y1(e){const t=Object.values(e).filter(i=>typeof i=="number");return Object.entries(e).filter(([i,o])=>t.indexOf(+i)===-1).map(([i,o])=>o)}function Lh(e,t){return typeof t=="bigint"?t.toString():t}function Fp(e){return{get value(){{const t=e();return Object.defineProperty(this,"value",{value:t}),t}}}}function Ip(e){return e==null}function Up(e){const t=e.startsWith("^")?1:0,r=e.endsWith("$")?e.length-1:e.length;return e.slice(t,r)}const n0=Symbol("evaluating");function dt(e,t,r){let i;Object.defineProperty(e,t,{get(){if(i!==n0)return i===void 0&&(i=n0,i=r()),i},set(o){Object.defineProperty(e,t,{value:o})},configurable:!0})}function Bi(e,t,r){Object.defineProperty(e,t,{value:r,writable:!0,enumerable:!0,configurable:!0})}function Fi(...e){const t={};for(const r of e){const i=Object.getOwnPropertyDescriptors(r);Object.assign(t,i)}return Object.defineProperties({},t)}function r0(e){return JSON.stringify(e)}function QR(e){return e.toLowerCase().trim().replace(/[^\w\s-]/g,"").replace(/[\s_-]+/g,"-").replace(/^-+|-+$/g,"")}const X1="captureStackTrace"in Error?Error.captureStackTrace:(...e)=>{};function Bc(e){return typeof e=="object"&&e!==null&&!Array.isArray(e)}const JR=Fp(()=>{if(typeof navigator<"u"&&navigator?.userAgent?.includes("Cloudflare"))return!1;try{const e=Function;return new e(""),!0}catch{return!1}});function bs(e){if(Bc(e)===!1)return!1;const t=e.constructor;if(t===void 0||typeof t!="function")return!0;const r=t.prototype;return!(Bc(r)===!1||Object.prototype.hasOwnProperty.call(r,"isPrototypeOf")===!1)}function Q1(e){return bs(e)?{...e}:Array.isArray(e)?[...e]:e}const WR=new Set(["string","number","symbol"]);function pd(e){return e.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}function ii(e,t,r){const i=new e._zod.constr(t??e._zod.def);return(!t||r?.parent)&&(i._zod.parent=e),i}function Re(e){const t=e;if(!t)return{};if(typeof t=="string")return{error:()=>t};if(t?.message!==void 0){if(t?.error!==void 0)throw new Error("Cannot specify both `message` and `error` params");t.error=t.message}return delete t.message,typeof t.error=="string"?{...t,error:()=>t.error}:t}function eO(e){return Object.keys(e).filter(t=>e[t]._zod.optin==="optional"&&e[t]._zod.optout==="optional")}function tO(e,t){const r=e._zod.def,i=Fi(e._zod.def,{get shape(){const o={};for(const s in t){if(!(s in r.shape))throw new Error(`Unrecognized key: "${s}"`);t[s]&&(o[s]=r.shape[s])}return Bi(this,"shape",o),o},checks:[]});return ii(e,i)}function nO(e,t){const r=e._zod.def,i=Fi(e._zod.def,{get shape(){const o={...e._zod.def.shape};for(const s in t){if(!(s in r.shape))throw new Error(`Unrecognized key: "${s}"`);t[s]&&delete o[s]}return Bi(this,"shape",o),o},checks:[]});return ii(e,i)}function rO(e,t){if(!bs(t))throw new Error("Invalid input to extend: expected a plain object");const r=e._zod.def.checks;if(r&&r.length>0)throw new Error("Object schemas containing refinements cannot be extended. Use `.safeExtend()` instead.");const o=Fi(e._zod.def,{get shape(){const s={...e._zod.def.shape,...t};return Bi(this,"shape",s),s},checks:[]});return ii(e,o)}function aO(e,t){if(!bs(t))throw new Error("Invalid input to safeExtend: expected a plain object");const r={...e._zod.def,get shape(){const i={...e._zod.def.shape,...t};return Bi(this,"shape",i),i},checks:e._zod.def.checks};return ii(e,r)}function iO(e,t){const r=Fi(e._zod.def,{get shape(){const i={...e._zod.def.shape,...t._zod.def.shape};return Bi(this,"shape",i),i},get catchall(){return t._zod.def.catchall},checks:[]});return ii(e,r)}function lO(e,t,r){const i=Fi(t._zod.def,{get shape(){const o=t._zod.def.shape,s={...o};if(r)for(const u in r){if(!(u in o))throw new Error(`Unrecognized key: "${u}"`);r[u]&&(s[u]=e?new e({type:"optional",innerType:o[u]}):o[u])}else for(const u in o)s[u]=e?new e({type:"optional",innerType:o[u]}):o[u];return Bi(this,"shape",s),s},checks:[]});return ii(t,i)}function oO(e,t,r){const i=Fi(t._zod.def,{get shape(){const o=t._zod.def.shape,s={...o};if(r)for(const u in r){if(!(u in s))throw new Error(`Unrecognized key: "${u}"`);r[u]&&(s[u]=new e({type:"nonoptional",innerType:o[u]}))}else for(const u in o)s[u]=new e({type:"nonoptional",innerType:o[u]});return Bi(this,"shape",s),s},checks:[]});return ii(t,i)}function Ll(e,t=0){if(e.aborted===!0)return!0;for(let r=t;r<e.issues.length;r++)if(e.issues[r]?.continue!==!0)return!0;return!1}function J1(e,t){return t.map(r=>{var i;return(i=r).path??(i.path=[]),r.path.unshift(e),r})}function oc(e){return typeof e=="string"?e:e?.message}function Ri(e,t,r){const i={...e,path:e.path??[]};if(!e.message){const o=oc(e.inst?._zod.def?.error?.(e))??oc(t?.error?.(e))??oc(r.customError?.(e))??oc(r.localeError?.(e))??"Invalid input";i.message=o}return delete i.inst,delete i.continue,t?.reportInput||delete i.input,i}function Pp(e){return Array.isArray(e)?"array":typeof e=="string"?"string":"unknown"}function xs(...e){const[t,r,i]=e;return typeof t=="string"?{message:t,code:"custom",input:r,inst:i}:{...t}}const W1=(e,t)=>{e.name="$ZodError",Object.defineProperty(e,"_zod",{value:e._zod,enumerable:!1}),Object.defineProperty(e,"issues",{value:t,enumerable:!1}),e.message=JSON.stringify(t,Lh,2),Object.defineProperty(e,"toString",{value:()=>e.message,enumerable:!1})},Vp=ue("$ZodError",W1),gd=ue("$ZodError",W1,{Parent:Error});function sO(e,t=r=>r.message){const r={},i=[];for(const o of e.issues)o.path.length>0?(r[o.path[0]]=r[o.path[0]]||[],r[o.path[0]].push(t(o))):i.push(t(o));return{formErrors:i,fieldErrors:r}}function uO(e,t=r=>r.message){const r={_errors:[]},i=o=>{for(const s of o.issues)if(s.code==="invalid_union"&&s.errors.length)s.errors.map(u=>i({issues:u}));else if(s.code==="invalid_key")i({issues:s.issues});else if(s.code==="invalid_element")i({issues:s.issues});else if(s.path.length===0)r._errors.push(t(s));else{let u=r,d=0;for(;d<s.path.length;){const p=s.path[d];d===s.path.length-1?(u[p]=u[p]||{_errors:[]},u[p]._errors.push(t(s))):u[p]=u[p]||{_errors:[]},u=u[p],d++}}};return i(e),r}const yd=e=>(t,r,i,o)=>{const s=i?Object.assign(i,{async:!1}):{async:!1},u=t._zod.run({value:r,issues:[]},s);if(u instanceof Promise)throw new Ul;if(u.issues.length){const d=new(o?.Err??e)(u.issues.map(p=>Ri(p,s,Di())));throw X1(d,o?.callee),d}return u.value},cO=yd(gd),vd=e=>async(t,r,i,o)=>{const s=i?Object.assign(i,{async:!0}):{async:!0};let u=t._zod.run({value:r,issues:[]},s);if(u instanceof Promise&&(u=await u),u.issues.length){const d=new(o?.Err??e)(u.issues.map(p=>Ri(p,s,Di())));throw X1(d,o?.callee),d}return u.value},dO=vd(gd),bd=e=>(t,r,i)=>{const o=i?{...i,async:!1}:{async:!1},s=t._zod.run({value:r,issues:[]},o);if(s instanceof Promise)throw new Ul;return s.issues.length?{success:!1,error:new(e??Vp)(s.issues.map(u=>Ri(u,o,Di())))}:{success:!0,data:s.value}},fO=bd(gd),xd=e=>async(t,r,i)=>{const o=i?Object.assign(i,{async:!0}):{async:!0};let s=t._zod.run({value:r,issues:[]},o);return s instanceof Promise&&(s=await s),s.issues.length?{success:!1,error:new e(s.issues.map(u=>Ri(u,o,Di())))}:{success:!0,data:s.value}},mO=xd(gd),hO=e=>(t,r,i)=>{const o=i?Object.assign(i,{direction:"backward"}):{direction:"backward"};return yd(e)(t,r,o)},pO=e=>(t,r,i)=>yd(e)(t,r,i),gO=e=>async(t,r,i)=>{const o=i?Object.assign(i,{direction:"backward"}):{direction:"backward"};return vd(e)(t,r,o)},yO=e=>async(t,r,i)=>vd(e)(t,r,i),vO=e=>(t,r,i)=>{const o=i?Object.assign(i,{direction:"backward"}):{direction:"backward"};return bd(e)(t,r,o)},bO=e=>(t,r,i)=>bd(e)(t,r,i),xO=e=>async(t,r,i)=>{const o=i?Object.assign(i,{direction:"backward"}):{direction:"backward"};return xd(e)(t,r,o)},wO=e=>async(t,r,i)=>xd(e)(t,r,i),SO=/^[cC][^\s-]{8,}
vendor: 5,353 bytes, line 50
50$/,EO=/^[0-9a-z]+$/,NO=/^[0-9A-HJKMNP-TV-Za-hjkmnp-tv-z]{26}$/,CO=/^[0-9a-vA-V]{20}$/,jO=/^[A-Za-z0-9]{27}$/,kO=/^[a-zA-Z0-9_-]{21}$/,AO=/^P(?:(\d+W)|(?!.*W)(?=\d|T\d)(\d+Y)?(\d+M)?(\d+D)?(T(?=\d)(\d+H)?(\d+M)?(\d+([.,]\d+)?S)?)?)$/,TO=/^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$/,a0=e=>e?new RegExp(`^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-${e}[0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12})$`):/^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$/,_O=/^(?!\.)(?!.*\.\.)([A-Za-z0-9_'+\-\.]*)[A-Za-z0-9_+-]@([A-Za-z0-9][A-Za-z0-9\-]*\.)+[A-Za-z]{2,}$/,DO="^(\\p{Extended_Pictographic}|\\p{Emoji_Component})+$";function RO(){return new RegExp(DO,"u")}const OO=/^(?:(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.){3}(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])$/,zO=/^(([0-9a-fA-F]{1,4}:){7}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,7}:|([0-9a-fA-F]{1,4}:){1,6}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}(:[0-9a-fA-F]{1,4}){1,2}|([0-9a-fA-F]{1,4}:){1,4}(:[0-9a-fA-F]{1,4}){1,3}|([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){1,4}|([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){1,5}|[0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){1,6})|:((:[0-9a-fA-F]{1,4}){1,7}|:))$/,MO=/^((25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.){3}(25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\/([0-9]|[1-2][0-9]|3[0-2])$/,LO=/^(([0-9a-fA-F]{1,4}:){7}[0-9a-fA-F]{1,4}|::|([0-9a-fA-F]{1,4})?::([0-9a-fA-F]{1,4}:?){0,6})\/(12[0-8]|1[01][0-9]|[1-9]?[0-9])$/,BO=/^$|^(?:[0-9a-zA-Z+/]{4})*(?:(?:[0-9a-zA-Z+/]{2}==)|(?:[0-9a-zA-Z+/]{3}=))?$/,eE=/^[A-Za-z0-9_-]*$/,FO=/^\+(?:[0-9]){6,14}[0-9]$/,tE="(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))",IO=new RegExp(`^${tE}$`);function nE(e){const t="(?:[01]\\d|2[0-3]):[0-5]\\d";return typeof e.precision=="number"?e.precision===-1?`${t}`:e.precision===0?`${t}:[0-5]\\d`:`${t}:[0-5]\\d\\.\\d{${e.precision}}`:`${t}(?::[0-5]\\d(?:\\.\\d+)?)?`}function UO(e){return new RegExp(`^${nE(e)}$`)}function PO(e){const t=nE({precision:e.precision}),r=["Z"];e.local&&r.push(""),e.offset&&r.push("([+-](?:[01]\\d|2[0-3]):[0-5]\\d)");const i=`${t}(?:${r.join("|")})`;return new RegExp(`^${tE}T(?:${i})$`)}const VO=e=>{const t=e?`[\\s\\S]{${e?.minimum??0},${e?.maximum??""}}`:"[\\s\\S]*";return new RegExp(`^${t}$`)},HO=/^[^A-Z]*$/,qO=/^[^a-z]*$/,Zr=ue("$ZodCheck",(e,t)=>{var r;e._zod??(e._zod={}),e._zod.def=t,(r=e._zod).onattach??(r.onattach=[])}),ZO=ue("$ZodCheckMaxLength",(e,t)=>{var r;Zr.init(e,t),(r=e._zod.def).when??(r.when=i=>{const o=i.value;return!Ip(o)&&o.length!==void 0}),e._zod.onattach.push(i=>{const o=i._zod.bag.maximum??Number.POSITIVE_INFINITY;t.maximum<o&&(i._zod.bag.maximum=t.maximum)}),e._zod.check=i=>{const o=i.value;if(o.length<=t.maximum)return;const u=Pp(o);i.issues.push({origin:u,code:"too_big",maximum:t.maximum,inclusive:!0,input:o,inst:e,continue:!t.abort})}}),$O=ue("$ZodCheckMinLength",(e,t)=>{var r;Zr.init(e,t),(r=e._zod.def).when??(r.when=i=>{const o=i.value;return!Ip(o)&&o.length!==void 0}),e._zod.onattach.push(i=>{const o=i._zod.bag.minimum??Number.NEGATIVE_INFINITY;t.minimum>o&&(i._zod.bag.minimum=t.minimum)}),e._zod.check=i=>{const o=i.value;if(o.length>=t.minimum)return;const u=Pp(o);i.issues.push({origin:u,code:"too_small",minimum:t.minimum,inclusive:!0,input:o,inst:e,continue:!t.abort})}}),KO=ue("$ZodCheckLengthEquals",(e,t)=>{var r;Zr.init(e,t),(r=e._zod.def).when??(r.when=i=>{const o=i.value;return!Ip(o)&&o.length!==void 0}),e._zod.onattach.push(i=>{const o=i._zod.bag;o.minimum=t.length,o.maximum=t.length,o.length=t.length}),e._zod.check=i=>{const o=i.value,s=o.length;if(s===t.length)return;const u=Pp(o),d=s>t.length;i.issues.push({origin:u,...d?{code:"too_big",maximum:t.length}:{code:"too_small",minimum:t.length},inclusive:!0,exact:!0,input:i.value,inst:e,continue:!t.abort})}}),wd=ue("$ZodCheckStringFormat",(e,t)=>{var r,i;Zr.init(e,t),e._zod.onattach.push(o=>{const s=o._zod.bag;s.format=t.format,t.pattern&&(s.patterns??(s.patterns=new Set),s.patterns.add(t.pattern))}),t.pattern?(r=e._zod).check??(r.check=o=>{t.pattern.lastIndex=0,!t.pattern.test(o.value)&&o.issues.push({origin:"string",code:"invalid_format",format:t.format,input:o.value,...t.pattern?{pattern:t.pattern.toString()}:{},inst:e,continue:!t.abort})}):(i=e._zod).check??(i.check=()=>{})}),GO=ue("$ZodCheckRegex",(e,t)=>{wd.init(e,t),e._zod.check=r=>{t.pattern.lastIndex=0,!t.pattern.test(r.value)&&r.issues.push({origin:"string",code:"invalid_format",format:"regex",input:r.value,pattern:t.pattern.toString(),inst:e,continue:!t.abort})}}),YO=ue("$ZodCheckLowerCase",(e,t)=>{t.pattern??(t.pattern=HO),wd.init(e,t)}),XO=ue("$ZodCheckUpperCase",(e,t)=>{t.pattern??(t.pattern=qO),wd.init(e,t)}),QO=ue("$ZodCheckIncludes",(e,t)=>{Zr.init(e,t);const r=pd(t.includes),i=new RegExp(typeof t.position=="number"?`^.{${t.position}}${r}`:r);t.pattern=i,e._zod.onattach.push(o=>{const s=o._zod.bag;s.patterns??(s.patterns=new Set),s.patterns.add(i)}),e._zod.check=o=>{o.value.includes(t.includes,t.position)||o.issues.push({origin:"string",code:"invalid_format",format:"includes",includes:t.includes,input
vendor: 13,235 bytes, lines 50-69
50:o.value,inst:e,continue:!t.abort})}}),JO=ue("$ZodCheckStartsWith",(e,t)=>{Zr.init(e,t);const r=new RegExp(`^${pd(t.prefix)}.*`);t.pattern??(t.pattern=r),e._zod.onattach.push(i=>{const o=i._zod.bag;o.patterns??(o.patterns=new Set),o.patterns.add(r)}),e._zod.check=i=>{i.value.startsWith(t.prefix)||i.issues.push({origin:"string",code:"invalid_format",format:"starts_with",prefix:t.prefix,input:i.value,inst:e,continue:!t.abort})}}),WO=ue("$ZodCheckEndsWith",(e,t)=>{Zr.init(e,t);const r=new RegExp(`.*${pd(t.suffix)}$`);t.pattern??(t.pattern=r),e._zod.onattach.push(i=>{const o=i._zod.bag;o.patterns??(o.patterns=new Set),o.patterns.add(r)}),e._zod.check=i=>{i.value.endsWith(t.suffix)||i.issues.push({origin:"string",code:"invalid_format",format:"ends_with",suffix:t.suffix,input:i.value,inst:e,continue:!t.abort})}}),ez=ue("$ZodCheckOverwrite",(e,t)=>{Zr.init(e,t),e._zod.check=r=>{r.value=t.tx(r.value)}});class tz{constructor(t=[]){this.content=[],this.indent=0,this&&(this.args=t)}indented(t){this.indent+=1,t(this),this.indent-=1}write(t){if(typeof t=="function"){t(this,{execution:"sync"}),t(this,{execution:"async"});return}const i=t.split(` 51`).filter(u=>u),o=Math.min(...i.map(u=>u.length-u.trimStart().length)),s=i.map(u=>u.slice(o)).map(u=>" ".repeat(this.indent*2)+u);for(const u of s)this.content.push(u)}compile(){const t=Function,r=this?.args,o=[...(this?.content??[""]).map(s=>` ${s}`)];return new t(...r,o.join(` 52`))}}const nz={major:4,minor:2,patch:1},Gt=ue("$ZodType",(e,t)=>{var r;e??(e={}),e._zod.def=t,e._zod.bag=e._zod.bag||{},e._zod.version=nz;const i=[...e._zod.def.checks??[]];e._zod.traits.has("$ZodCheck")&&i.unshift(e);for(const o of i)for(const s of o._zod.onattach)s(e);if(i.length===0)(r=e._zod).deferred??(r.deferred=[]),e._zod.deferred?.push(()=>{e._zod.run=e._zod.parse});else{const o=(u,d,p)=>{let h=Ll(u),y;for(const v of d){if(v._zod.def.when){if(!v._zod.def.when(u))continue}else if(h)continue;const x=u.issues.length,b=v._zod.check(u);if(b instanceof Promise&&p?.async===!1)throw new Ul;if(y||b instanceof Promise)y=(y??Promise.resolve()).then(async()=>{await b,u.issues.length!==x&&(h||(h=Ll(u,x)))});else{if(u.issues.length===x)continue;h||(h=Ll(u,x))}}return y?y.then(()=>u):u},s=(u,d,p)=>{if(Ll(u))return u.aborted=!0,u;const h=o(d,i,p);if(h instanceof Promise){if(p.async===!1)throw new Ul;return h.then(y=>e._zod.parse(y,p))}return e._zod.parse(h,p)};e._zod.run=(u,d)=>{if(d.skipChecks)return e._zod.parse(u,d);if(d.direction==="backward"){const h=e._zod.parse({value:u.value,issues:[]},{...d,skipChecks:!0});return h instanceof Promise?h.then(y=>s(y,u,d)):s(h,u,d)}const p=e._zod.parse(u,d);if(p instanceof Promise){if(d.async===!1)throw new Ul;return p.then(h=>o(h,i,d))}return o(p,i,d)}}e["~standard"]={validate:o=>{try{const s=fO(e,o);return s.success?{value:s.data}:{issues:s.error?.issues}}catch{return mO(e,o).then(u=>u.success?{value:u.data}:{issues:u.error?.issues})}},vendor:"zod",version:1}}),Hp=ue("$ZodString",(e,t)=>{Gt.init(e,t),e._zod.pattern=[...e?._zod.bag?.patterns??[]].pop()??VO(e._zod.bag),e._zod.parse=(r,i)=>{if(t.coerce)try{r.value=String(r.value)}catch{}return typeof r.value=="string"||r.issues.push({expected:"string",code:"invalid_type",input:r.value,inst:e}),r}}),vt=ue("$ZodStringFormat",(e,t)=>{wd.init(e,t),Hp.init(e,t)}),rz=ue("$ZodGUID",(e,t)=>{t.pattern??(t.pattern=TO),vt.init(e,t)}),az=ue("$ZodUUID",(e,t)=>{if(t.version){const i={v1:1,v2:2,v3:3,v4:4,v5:5,v6:6,v7:7,v8:8}[t.version];if(i===void 0)throw new Error(`Invalid UUID version: "${t.version}"`);t.pattern??(t.pattern=a0(i))}else t.pattern??(t.pattern=a0());vt.init(e,t)}),iz=ue("$ZodEmail",(e,t)=>{t.pattern??(t.pattern=_O),vt.init(e,t)}),lz=ue("$ZodURL",(e,t)=>{vt.init(e,t),e._zod.check=r=>{try{const i=r.value.trim(),o=new URL(i);t.hostname&&(t.hostname.lastIndex=0,t.hostname.test(o.hostname)||r.issues.push({code:"invalid_format",format:"url",note:"Invalid hostname",pattern:t.hostname.source,input:r.value,inst:e,continue:!t.abort})),t.protocol&&(t.protocol.lastIndex=0,t.protocol.test(o.protocol.endsWith(":")?o.protocol.slice(0,-1):o.protocol)||r.issues.push({code:"invalid_format",format:"url",note:"Invalid protocol",pattern:t.protocol.source,input:r.value,inst:e,continue:!t.abort})),t.normalize?r.value=o.href:r.value=i;return}catch{r.issues.push({code:"invalid_format",format:"url",input:r.value,inst:e,continue:!t.abort})}}}),oz=ue("$ZodEmoji",(e,t)=>{t.pattern??(t.pattern=RO()),vt.init(e,t)}),sz=ue("$ZodNanoID",(e,t)=>{t.pattern??(t.pattern=kO),vt.init(e,t)}),uz=ue("$ZodCUID",(e,t)=>{t.pattern??(t.pattern=SO),vt.init(e,t)}),cz=ue("$ZodCUID2",(e,t)=>{t.pattern??(t.pattern=EO),vt.init(e,t)}),dz=ue("$ZodULID",(e,t)=>{t.pattern??(t.pattern=NO),vt.init(e,t)}),fz=ue("$ZodXID",(e,t)=>{t.pattern??(t.pattern=CO),vt.init(e,t)}),mz=ue("$ZodKSUID",(e,t)=>{t.pattern??(t.pattern=jO),vt.init(e,t)}),hz=ue("$ZodISODateTime",(e,t)=>{t.pattern??(t.pattern=PO(t)),vt.init(e,t)}),pz=ue("$ZodISODate",(e,t)=>{t.pattern??(t.pattern=IO),vt.init(e,t)}),gz=ue("$ZodISOTime",(e,t)=>{t.pattern??(t.pattern=UO(t)),vt.init(e,t)}),yz=ue("$ZodISODuration",(e,t)=>{t.pattern??(t.pattern=AO),vt.init(e,t)}),vz=ue("$ZodIPv4",(e,t)=>{t.pattern??(t.pattern=OO),vt.init(e,t),e._zod.bag.format="ipv4"}),bz=ue("$ZodIPv6",(e,t)=>{t.pattern??(t.pattern=zO),vt.init(e,t),e._zod.bag.format="ipv6",e._zod.check=r=>{try{new URL(`http://[${r.value}]`)}catch{r.issues.push({code:"invalid_format",format:"ipv6",input:r.value,inst:e,continue:!t.abort})}}}),xz=ue("$ZodCIDRv4",(e,t)=>{t.pattern??(t.pattern=MO),vt.init(e,t)}),wz=ue("$ZodCIDRv6",(e,t)=>{t.pattern??(t.pattern=LO),vt.init(e,t),e._zod.check=r=>{const i=r.value.split("/");try{if(i.length!==2)throw new Error;const[o,s]=i;if(!s)throw new Error;const u=Number(s);if(`${u}`!==s)throw new Error;if(u<0||u>128)throw new Error;new URL(`http://[${o}]`)}catch{r.issues.push({code:"invalid_format",format:"cidrv6",input:r.value,inst:e,continue:!t.abort})}}});function rE(e){if(e==="")return!0;if(e.length%4!==0)return!1;try{return atob(e),!0}catch{return!1}}const Sz=ue("$ZodBase64",(e,t)=>{t.pattern??(t.pattern=BO),vt.init(e,t),e._zod.bag.contentEncoding="base64",e._zod.check=r=>{rE(r.value)||r.issues.push({code:"invalid_format",format:"base64",input:r.value,inst:e,continue:!t.abort})}});function Ez(e){if(!eE.test(e))return!1;const t=e.replace(/[-_]/g,i=>i==="-"?"+":"/"),r=t.padEnd(Math.ceil(t.length/4)*4,"=");return rE(r)}const Nz=ue("$ZodBase64URL",(e,t)=>{t.pattern??(t.pattern=eE),vt.init(e,t),e._zod.bag.contentEncoding="base64url",e._zod.check=r=>{Ez(r.value)||r.issues.push({code:"invalid_format",format:"base64url",input:r.value,inst:e,continue:!t.abort})}}),Cz=ue("$ZodE164",(e,t)=>{t.pattern??(t.pattern=FO),vt.init(e,t)});function jz(e,t=null){try{const r=e.split(".");if(r.length!==3)return!1;const[i]=r;if(!i)return!1;const o=JSON.parse(atob(i));return!("typ"in o&&o?.typ!=="JWT"||!o.alg||t&&(!("alg"in o)||o.alg!==t))}catch{return!1}}const kz=ue("$ZodJWT",(e,t)=>{vt.init(e,t),e._zod.check=r=>{jz(r.value,t.alg)||r.issues.push({code:"invalid_format",format:"jwt",input:r.value,inst:e,continue:!t.abort})}}),Az=ue("$ZodUnknown",(e,t)=>{Gt.init(e,t),e._zod.parse=r=>r}),Tz=ue("$ZodNever",(e,t)=>{Gt.init(e,t),e._zod.parse=(r,i)=>(r.issues.push({expected:"never",code:"invalid_type",input:r.value,inst:e}),r)});function i0(e,t,r){e.issues.length&&t.issues.push(...J1(r,e.issues)),t.value[r]=e.value}const _z=ue("$ZodArray",(e,t)=>{Gt.init(e,t),e._zod.parse=(r,i)=>{const o=r.value;if(!Array.isArray(o))return r.issues.push({expected:"array",code:"invalid_type",input:o,inst:e}),r;r.value=Array(o.length);const s=[];for(let u=0;u<o.length;u++){const d=o[u],p=t.element._zod.run({value:d,issues:[]},i);p instanceof Promise?s.push(p.then(h=>i0(h,r,u))):i0(p,r,u)}return s.length?Promise.all(s).then(()=>r):r}});function Fc(e,t,r,i){e.issues.length&&t.issues.push(...J1(r,e.issues)),e.value===void 0?r in i&&(t.value[r]=void 0):t.value[r]=e.value}function aE(e){const t=Object.keys(e.shape);for(const i of t)if(!e.shape?.[i]?._zod?.traits?.has("$ZodType"))throw new Error(`Invalid element at key "${i}": expected a Zod schema`);const r=eO(e.shape);return{...e,keys:t,keySet:new Set(t),numKeys:t.length,optionalKeys:new Set(r)}}function iE(e,t,r,i,o,s){const u=[],d=o.keySet,p=o.catchall._zod,h=p.def.type;for(const y in t){if(d.has(y))continue;if(h==="never"){u.push(y);continue}const v=p.run({value:t[y],issues:[]},i);v instanceof Promise?e.push(v.then(x=>Fc(x,r,y,t))):Fc(v,r,y,t)}return u.length&&r.issues.push({code:"unrecognized_keys",keys:u,input:t,inst:s}),e.length?Promise.all(e).then(()=>r):r}const Dz=ue("$ZodObject",(e,t)=>{if(Gt.init(e,t),!Object.getOwnPropertyDescriptor(t,"shape")?.get){const d=t.shape;Object.defineProperty(t,"shape",{get:()=>{const p={...d};return Object.defineProperty(t,"shape",{value:p}),p}})}const i=Fp(()=>aE(t));dt(e._zod,"propValues",()=>{const d=t.shape,p={};for(const h in d){const y=d[h]._zod;if(y.values){p[h]??(p[h]=new Set);for(const v of y.values)p[h].add(v)}}return p});const o=Bc,s=t.catchall;let u;e._zod.parse=(d,p)=>{u??(u=i.value);const h=d.value;if(!o(h))return d.issues.push({expected:"object",code:"invalid_type",input:h,inst:e}),d;d.value={};const y=[],v=u.shape;for(const x of u.keys){const E=v[x]._zod.run({value:h[x],issues:[]},p);E instanceof Promise?y.push(E.then(N=>Fc(N,d,x,h))):Fc(E,d,x,h)}return s?iE(y,h,d,p,i.value,e):y.length?Promise.all(y).then(()=>d):d}}),Rz=ue("$ZodObjectJIT",(e,t)=>{Dz.init(e,t);const r=e._zod.parse,i=Fp(()=>aE(t)),o=x=>{const b=new tz(["shape","payload","ctx"]),E=i.value,N=O=>{const B=r0(O);return`shape[${B}]._zod.run({ value: input[${B}], issues: [] }, ctx)`};b.write("const input = payload.value;");const C=Object.create(null);let k=0;for(const O of E.keys)C[O]=`key_${k++}`;b.write("const newResult = {};");for(const O of E.keys){const B=C[O],T=r0(O);b.write(`const ${B} = ${N(O)};`),b.write(` 53 if (${B}.issues.length) { 54 payload.issues = payload.issues.concat(${B}.issues.map(iss => ({ 55 ...iss, 56 path: iss.path ? [${T}, ...iss.path] : [${T}] 57 }))); 58 } 59 60 61 if (${B}.value === undefined) { 62 if (${T} in input) { 63 newResult[${T}] = undefined; 64 } 65 } else { 66 newResult[${T}] = ${B}.value; 67 } 68 69 `)}b.write("payload.value = newResult;"),b.write("return payload;");const M=b.compile();return(O,B)=>M(x,O,B)};let s;const u=Bc,d=!G1.jitless,h=d&&JR.value,y=t.catchall;let v;e._zod.parse=(x,b)=>{v??(v=i.value);const E=x.value;return u(E)?d&&h&&b?.async===!1&&b.jitless!==!0?(s||(s=o(t.shape)),x=s(x,b),y?iE([],E,x,b,v,e):x):r(x,b):(x.issues.push({expected:"object",code:"invalid_type",input:E,inst:e}),x)}});function l0(e,t,r,i){for(const s of e)if(s.issues.length===0)return t.value=s.value,t;const o=e.filter(s=>!Ll(s));return o.length===1?(t.value=o[0].value,o[0]):(t.issues.push({code:"invalid_union",input:t.value,inst:r,errors:e.map(s=>s.issues.map(u=>Ri(u,i,Di())))}),t)}const Oz=ue("$ZodUnion",(e,t)=>{Gt.init(e,t),dt(e._zod,"optin",()=>t.options.some(o=>o._zod.optin==="optional")?"optional":void 0),dt(e._zod,"optout",()=>t.options.some(o=>o._zod.optout==="optional")?"optional":void 0),dt(e._zod,"values",()=>{if(t.options.every(o=>o._zod.values))return new Set(t.options.flatMap(o=>Array.from(o._zod.values)))}),dt(e._zod,"pattern",()=>{if(t.options.every(o=>o._zod.pattern)){const o=t.options.map(s=>s._zod.pattern);return new RegExp(`^(${o.map(s=>Up(s.source)).join("|")})$`)}});const r=t.options.length===1,i=t.options[0]._zod.run;e._zod.parse=(o,s)=>{if(r)return i(o,s);let u=!1;const d=[];for(const p of t.options){const h=p._zod.run({value:o.value,issues:[]},s);if(h instanceof Promise)d.push(h),u=!0;else{if(h.issues.length===0)return h;d.push(h)}}return u?Promise.all(d).then(p=>l0(p,o,e,s)):l0(d,o,e,s)}}),zz=ue("$ZodIntersection",(e,t)=>{Gt.init(e,t),e._zod.parse=(r,i)=>{const o=r.value,s=t.left._zod.run({value:o,issues:[]},i),u=t.right._zod.run({value:o,issues:[]},i);return s instanceof Promise||u instanceof Promise?Promise.all([s,u]).then(([p,h])=>o0(r,p,h)):o0(r,s,u)}});function Bh(e,t){if(e===t)return{valid:!0,data:e};if(e instanceof Date&&t instanceof Date&&+e==+t)return{valid:!0,data:e};if(bs(e)&&bs(t)){const r=Object.keys(t),i=Object.keys(e).filter(s=>r.indexOf(s)!==-1),o={...e,...t};for(const s of i){const u=Bh(e[s],t[s]);if(!u.valid)return{valid:!1,mergeErrorPath:[s,...u.mergeErrorPath]};o[s]=u.data}return{valid:!0,data:o}}if(Array.isArray(e)&&Array.isArray(t)){if(e.length!==t.length)return{valid:!1,mergeErrorPath:[]};const r=[];for(let i=0;i<e.length;i++){const o=e[i],s=t[i],u=Bh(o,s);if(!u.valid)return{valid:!1,mergeErrorPath:[i,...u.mergeErrorPath]};r.push(u.data)}return{valid:!0,data:r}}return{valid:!1,mergeErrorPath:[]}}function o0(e,t,r){if(t.issues.length&&e.issues.push(...t.issues),r.issues.length&&e.issues.push(...r.issues),Ll(e))return e;const i=Bh(t.value,r.value);if(!i.valid)throw new Error(`Unmergable intersection. Error path: ${JSON.stringify(i.mergeErrorPath)}`);return e.value=i.data,e}const Mz=ue("$ZodEnum",(e,t)=>{Gt.init(e,t);const r=Y1(t.entries),i=new Set(r);e._zod.values=i,e._zod.pattern=new RegExp(`^(${r.filter(o=>WR.has(typeof o)).map(o=>
69typeof o=="string"?pd(o):o.toString()).join("|")})$`),e._zod.parse=(o,s)=>{const u=o.value;return i.has(u)||o.issues.push({code:"invalid_value",values:r,input:u,inst:e}),o}}),Lz=ue("$ZodTransform",(e,t)=>{Gt.init(e,t),e._zod.parse=(r,i)=>{if(i.direction==="backward")throw new K1(e.constructor.name);const o=t.transform(r.value,r);if(i.async)return(o instanceof Promise?o:Promise.resolve(o)).then(u=>(r.value=u,r));if(o instanceof Promise)throw new Ul;return r.value=o,r}});function s0(e,t){return e.issues.length&&t===void 0?{issues:[],value:void 0}:e}const Bz=ue("$ZodOptional",(e,t)=>{Gt.init(e,t),e._zod.optin="optional",e._zod.optout="optional",dt(e._zod,"values",()=>t.innerType._zod.values?new Set([...t.innerType._zod.values,void 0]):void 0),dt(e._zod,"pattern",()=>{const r=t.innerType._zod.pattern;return r?new RegExp(`^(${Up(r.source)})?$`):void 0}),e._zod.parse=(r,i)=>{if(t.innerType._zod.optin==="optional"){const o=t.innerType._zod.run(r,i);return o instanceof Promise?o.then(s=>s0(s,r.value)):s0(o,r.value)}return r.value===void 0?r:t.innerType._zod.run(r,i)}}),Fz=ue("$ZodNullable",(e,t)=>{Gt.init(e,t),dt(e._zod,"optin",()=>t.innerType._zod.optin),dt(e._zod,"optout",()=>t.innerType._zod.optout),dt(e._zod,"pattern",()=>{const r=t.innerType._zod.pattern;return r?new RegExp(`^(${Up(r.source)}|null)$`):void 0}),dt(e._zod,"values",()=>t.innerType._zod.values?new Set([...t.innerType._zod.values,null]):void 0),e._zod.parse=(r,i)=>r.value===null?r:t.innerType._zod.run(r,i)}),Iz=ue("$ZodDefault",(e,t)=>{Gt.init(e,t),e._zod.optin="optional",dt(e._zod,"values",()=>t.innerType._zod.values),e._zod.parse=(r,i)=>{if(i.direction==="backward")return t.innerType._zod.run(r,i);if(r.value===void 0)return r.value=t.defaultValue,r;const o=t.innerType._zod.run(r,i);return o instanceof Promise?o.then(s=>u0(s,t)):u0(o,t)}});function u0(e,t){return e.value===void 0&&(e.value=t.defaultValue),e}const Uz=ue("$ZodPrefault",(e,t)=>{Gt.init(e,t),e._zod.optin="optional",dt(e._zod,"values",()=>t.innerType._zod.values),e._zod.parse=(r,i)=>(i.direction==="backward"||r.value===void 0&&(r.value=t.defaultValue),t.innerType._zod.run(r,i))}),Pz=ue("$ZodNonOptional",(e,t)=>{Gt.init(e,t),dt(e._zod,"values",()=>{const r=t.innerType._zod.values;return r?new Set([...r].filter(i=>i!==void 0)):void 0}),e._zod.parse=(r,i)=>{const o=t.innerType._zod.run(r,i);return o instanceof Promise?o.then(s=>c0(s,e)):c0(o,e)}});function c0(e,t){return!e.issues.length&&e.value===void 0&&e.issues.push({code:"invalid_type",expected:"nonoptional",input:e.value,inst:t}),e}const Vz=ue("$ZodCatch",(e,t)=>{Gt.init(e,t),dt(e._zod,"optin",()=>t.innerType._zod.optin),dt(e._zod,"optout",()=>t.innerType._zod.optout),dt(e._zod,"values",()=>t.innerType._zod.values),e._zod.parse=(r,i)=>{if(i.direction==="backward")return t.innerType._zod.run(r,i);const o=t.innerType._zod.run(r,i);return o instanceof Promise?o.then(s=>(r.value=s.value,s.issues.length&&(r.value=t.catchValue({...r,error:{issues:s.issues.map(u=>Ri(u,i,Di()))},input:r.value}),r.issues=[]),r)):(r.value=o.value,o.issues.length&&(r.value=t.catchValue({...r,error:{issues:o.issues.map(s=>Ri(s,i,Di()))},input:r.value}),r.issues=[]),r)}}),Hz=ue("$ZodPipe",(e,t)=>{Gt.init(e,t),dt(e._zod,"values",()=>t.in._zod.values),dt(e._zod,"optin",()=>t.in._zod.optin),dt(e._zod,"optout",()=>t.out._zod.optout),dt(e._zod,"propValues",()=>t.in._zod.propValues),e._zod.parse=(r,i)=>{if(i.direction==="backward"){const s=t.out._zod.run(r,i);return s instanceof Promise?s.then(u=>sc(u,t.in,i)):sc(s,t.in,i)}const o=t.in._zod.run(r,i);return o instanceof Promise?o.then(s=>sc(s,t.out,i)):sc(o,t.out,i)}});function sc(e,t,r){return e.issues.length?(e.aborted=!0,e):t._zod.run({value:e.value,issues:e.issues},r)}const qz=ue("$ZodReadonly",(e,t)=>{Gt.init(e,t),dt(e._zod,"propValues",()=>t.innerType._zod.propValues),dt(e._zod,"values",()=>t.innerType._zod.values),dt(e._zod,"optin",()=>t.innerType?._zod?.optin),dt(e._zod,"optout",()=>t.innerType?._zod?.optout),e._zod.parse=(r,i)=>{if(i.direction==="backward")return t.innerType._zod.run(r,i);const o=t.innerType._zod.run(r,i);return o instanceof Promise?o.then(d0):d0(o)}});function d0(e){return e.value=Object.freeze(e.value),e}const Zz=ue("$ZodCustom",(e,t)=>{Zr.init(e,t),Gt.init(e,t),e._zod.parse=(r,i)=>r,e._zod.check=r=>{const i=r.value,o=t.fn(i);if(o instanceof Promise)return o.then(s=>f0(s,r,i,e));f0(o,r,i,e)}});function f0(e,t,r,i){if(!e){const o={code:"custom",input:r,inst:i,path:[...i._zod.def.path??[]],continue:!i._zod.def.abort};i._zod.def.params&&(o.params=i._zod.def.params),t.issues.push(xs(o))}}var m0;class $z{constructor(){this._map=new WeakMap,this._idmap=new Map}add(t,...r){const i=r[0];if(this._map.set(t,i),i&&typeof i=="object"&&"id"in i){if(this._idmap.has(i.id))throw new Error(`ID ${i.id} already exists in the registry`);this._idmap.set(i.id,t)}return this}clear(){return this._map=new WeakMap,this._idmap=new Map,this}remove(t){const r=this._map.get(t);return r&&typeof r=="object"&&"id"in r&&this._idmap.delete(r.id),this._map.delete(t),this}get(t){const r=t._zod.parent;if(r){const i={...this.get(r)??{}};delete i.id;const o={...i,...this._map.get(t)};return Object.keys(o).length?o:void 0}return this._map.get(t)}has(t){return this._map.has(t)}}function Kz(){return new $z}(m0=globalThis).__zod_globalRegistry??(m0.__zod_globalRegistry=Kz());const rs=globalThis.__zod_globalRegistry;function Gz(e,t){return new e({type:"string",...Re(t)})}function Yz(e,t){return new e({type:"string",format:"email",check:"string_format",abort:!1,...Re(t)})}function h0(e,t){return new e({type:"string",format:"guid",check:"string_format",abort:!1,...Re(t)})}function Xz(e,t){return new e({type:"string",format:"uuid",check:"string_format",abort:!1,...Re(t)})}function Qz(e,t){return new e({type:"string",format:"uuid",check:"string_format",abort:!1,version:"v4",...Re(t)})}function Jz(e,t){return new e({type:"string",format:"uuid",check:"string_format",abort:!1,version:"v6",...Re(t)})}function Wz(e,t){return new e({type:"string",format:"uuid",check:"string_format",abort:!1,version:"v7",...Re(t)})}function eM(e,t){return new e({type:"string",format:"url",check:"string_format",abort:!1,...Re(t)})}function tM(e,t){return new e({type:"string",format:"emoji",check:"string_format",abort:!1,...Re(t)})}function nM(e,t){return new e({type:"string",format:"nanoid",check:"string_format",abort:!1,...Re(t)})}function rM(e,t){return new e({type:"string",format:"cuid",check:"string_format",abort:!1,...Re(t)})}function aM(e,t){return new e({type:"string",format:"cuid2",check:"string_format",abort:!1,...Re(t)})}function iM(e,t){return new e({type:"string",format:"ulid",check:"string_format",abort:!1,...Re(t)})}function lM(e,t){return new e({type:"string",format:"xid",check:"string_format",abort:!1,...Re(t)})}function oM(e,t){return new e({type:"string",format:"ksuid",check:"string_format",abort:!1,...Re(t)})}function sM(e,t){return new e({type:"string",format:"ipv4",check:"string_format",abort:!1,...Re(t)})}function uM(e,t){return new e({type:"string",format:"ipv6",check:"string_format",abort:!1,...Re(t)})}function cM(e,t){return new e({type:"string",format:"cidrv4",check:"string_format",abort:!1,...Re(t)})}function dM(e,t){return new e({type:"string",format:"cidrv6",check:"string_format",abort:!1,...Re(t)})}function fM(e,t){return new e({type:"string",format:"base64",check:"string_format",abort:!1,...Re(t)})}function mM(e,t){return new e({type:"string",format:"base64url",check:"string_format",abort:!1,...Re(t)})}function hM(e,t){return new e({type:"string",format:"e164",check:"string_format",abort:!1,...Re(t)})}function pM(e,t){return new e({type:"string",format:"jwt",check:"string_format",abort:!1,...Re(t)})}function gM(e,t){return new e({type:"string",format:"datetime",check:"string_format",offset:!1,local:!1,precision:null,...Re(t)})}function yM(e,t){return new e({type:"string",format:"date",check:"string_format",...Re(t)})}function vM(e,t){return new e({type:"string",format:"time",check:"string_format",precision:null,...Re(t)})}function bM(e,t){return new e({type:"string",format:"duration",check:"string_format",...Re(t)})}function xM(e){return new e({type:"unknown"})}function wM(e,t){return new e({type:"never",...Re(t)})}function lE(e,t){return new ZO({check:"max_length",...Re(t),maximum:e})}function Ic(e,t){return new $O({check:"min_length",...Re(t),minimum:e})}function oE(e,t){return new KO({check:"length_equals",...Re(t),length:e})}function SM(e,t){return new GO({check:"string_format",format:"regex",...Re(t),pattern:e})}function EM(e){return new YO({check:"string_format",format:"lowercase",...Re(e)})}
vendor: 8,475 bytes, lines 69-71
69function NM(e){return new XO({check:"string_format",format:"uppercase",...Re(e)})}function CM(e,t){return new QO({check:"string_format",format:"includes",...Re(t),includes:e})}function jM(e,t){return new JO({check:"string_format",format:"starts_with",...Re(t),prefix:e})}function kM(e,t){return new WO({check:"string_format",format:"ends_with",...Re(t),suffix:e})}function Jl(e){return new ez({check:"overwrite",tx:e})}function AM(e){return Jl(t=>t.normalize(e))}function TM(){return Jl(e=>e.trim())}function _M(){return Jl(e=>e.toLowerCase())}function DM(){return Jl(e=>e.toUpperCase())}function RM(){return Jl(e=>QR(e))}function OM(e,t,r){return new e({type:"array",element:t,...Re(r)})}function zM(e,t,r){return new e({type:"custom",check:"custom",fn:t,...Re(r)})}function MM(e){const t=LM(r=>(r.addIssue=i=>{if(typeof i=="string")r.issues.push(xs(i,r.value,t._zod.def));else{const o=i;o.fatal&&(o.continue=!1),o.code??(o.code="custom"),o.input??(o.input=r.value),o.inst??(o.inst=t),o.continue??(o.continue=!t._zod.def.abort),r.issues.push(xs(o))}},e(r.value,r)));return t}function LM(e,t){const r=new Zr({check:"custom",...Re(t)});return r._zod.check=e,r}function sE(e){let t=e?.target??"draft-2020-12";return t==="draft-4"&&(t="draft-04"),t==="draft-7"&&(t="draft-07"),{processors:e.processors??{},metadataRegistry:e?.metadata??rs,target:t,unrepresentable:e?.unrepresentable??"throw",override:e?.override??(()=>{}),io:e?.io??"output",counter:0,seen:new Map,cycles:e?.cycles??"ref",reused:e?.reused??"inline",external:e?.external??void 0}}function cn(e,t,r={path:[],schemaPath:[]}){var i;const o=e._zod.def,s=t.seen.get(e);if(s)return s.count++,r.schemaPath.includes(e)&&(s.cycle=r.path),s.schema;const u={schema:{},count:1,cycle:void 0,path:r.path};t.seen.set(e,u);const d=e._zod.toJSONSchema?.();if(d)u.schema=d;else{const y={...r,schemaPath:[...r.schemaPath,e],path:r.path},v=e._zod.parent;if(v)u.ref=v,cn(v,t,y),t.seen.get(v).isParent=!0;else if(e._zod.processJSONSchema)e._zod.processJSONSchema(t,u.schema,y);else{const x=u.schema,b=t.processors[o.type];if(!b)throw new Error(`[toJSONSchema]: Non-representable type encountered: ${o.type}`);b(e,t,x,y)}}const p=t.metadataRegistry.get(e);return p&&Object.assign(u.schema,p),t.io==="input"&&bn(e)&&(delete u.schema.examples,delete u.schema.default),t.io==="input"&&u.schema._prefault&&((i=u.schema).default??(i.default=u.schema._prefault)),delete u.schema._prefault,t.seen.get(e).schema}function uE(e,t){const r=e.seen.get(t);if(!r)throw new Error("Unprocessed schema. This is a bug in Zod.");const i=s=>{const u=e.target==="draft-2020-12"?"$defs":"definitions";if(e.external){const y=e.external.registry.get(s[0])?.id,v=e.external.uri??(b=>b);if(y)return{ref:v(y)};const x=s[1].defId??s[1].schema.id??`schema${e.counter++}`;return s[1].defId=x,{defId:x,ref:`${v("__shared")}#/${u}/${x}`}}if(s[1]===r)return{ref:"#"};const p=`#/${u}/`,h=s[1].schema.id??`__schema${e.counter++}`;return{defId:h,ref:p+h}},o=s=>{if(s[1].schema.$ref)return;const u=s[1],{ref:d,defId:p}=i(s);u.def={...u.schema},p&&(u.defId=p);const h=u.schema;for(const y in h)delete h[y];h.$ref=d};if(e.cycles==="throw")for(const s of e.seen.entries()){const u=s[1];if(u.cycle)throw new Error(`Cycle detected: #/${u.cycle?.join("/")}/<root> 70 71Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.`)}for(const s of e.seen.entries()){const u=s[1];if(t===s[0]){o(s);continue}if(e.external){const p=e.external.registry.get(s[0])?.id;if(t!==s[0]&&p){o(s);continue}}if(e.metadataRegistry.get(s[0])?.id){o(s);continue}if(u.cycle){o(s);continue}if(u.count>1&&e.reused==="ref"){o(s);continue}}}function cE(e,t){const r=e.seen.get(t);if(!r)throw new Error("Unprocessed schema. This is a bug in Zod.");const i=u=>{const d=e.seen.get(u),p=d.def??d.schema,h={...p};if(d.ref===null)return;const y=d.ref;if(d.ref=null,y){i(y);const v=e.seen.get(y).schema;v.$ref&&(e.target==="draft-07"||e.target==="draft-04"||e.target==="openapi-3.0")?(p.allOf=p.allOf??[],p.allOf.push(v)):(Object.assign(p,v),Object.assign(p,h))}d.isParent||e.override({zodSchema:u,jsonSchema:p,path:d.path??[]})};for(const u of[...e.seen.entries()].reverse())i(u[0]);const o={};if(e.target==="draft-2020-12"?o.$schema="https://json-schema.org/draft/2020-12/schema":e.target==="draft-07"?o.$schema="http://json-schema.org/draft-07/schema#":e.target==="draft-04"?o.$schema="http://json-schema.org/draft-04/schema#":e.target,e.external?.uri){const u=e.external.registry.get(t)?.id;if(!u)throw new Error("Schema is missing an `id` property");o.$id=e.external.uri(u)}Object.assign(o,r.def??r.schema);const s=e.external?.defs??{};for(const u of e.seen.entries()){const d=u[1];d.def&&d.defId&&(s[d.defId]=d.def)}e.external||Object.keys(s).length>0&&(e.target==="draft-2020-12"?o.$defs=s:o.definitions=s);try{const u=JSON.parse(JSON.stringify(o));return Object.defineProperty(u,"~standard",{value:{...t["~standard"],jsonSchema:{input:Uc(t,"input"),output:Uc(t,"output")}},enumerable:!1,writable:!1}),u}catch{throw new Error("Error converting schema to JSON.")}}function bn(e,t){const r=t??{seen:new Set};if(r.seen.has(e))return!1;r.seen.add(e);const i=e._zod.def;if(i.type==="transform")return!0;if(i.type==="array")return bn(i.element,r);if(i.type==="set")return bn(i.valueType,r);if(i.type==="lazy")return bn(i.getter(),r);if(i.type==="promise"||i.type==="optional"||i.type==="nonoptional"||i.type==="nullable"||i.type==="readonly"||i.type==="default"||i.type==="prefault")return bn(i.innerType,r);if(i.type==="intersection")return bn(i.left,r)||bn(i.right,r);if(i.type==="record"||i.type==="map")return bn(i.keyType,r)||bn(i.valueType,r);if(i.type==="pipe")return bn(i.in,r)||bn(i.out,r);if(i.type==="object"){for(const o in i.shape)if(bn(i.shape[o],r))return!0;return!1}if(i.type==="union"){for(const o of i.options)if(bn(o,r))return!0;return!1}if(i.type==="tuple"){for(const o of i.items)if(bn(o,r))return!0;return!!(i.rest&&bn(i.rest,r))}return!1}const BM=(e,t={})=>r=>{const i=sE({...r,processors:t});return cn(e,i),uE(i,e),cE(i,e)},Uc=(e,t)=>r=>{const{libraryOptions:i,target:o}=r??{},s=sE({...i??{},target:o,io:t,processors:{}});return cn(e,s),uE(s,e),cE(s,e)},FM={guid:"uuid",url:"uri",datetime:"date-time",json_string:"json-string",regex:""},IM=(e,t,r,i)=>{const o=r;o.type="string";const{minimum:s,maximum:u,format:d,patterns:p,contentEncoding:h}=e._zod.bag;if(typeof s=="number"&&(o.minLength=s),typeof u=="number"&&(o.maxLength=u),d&&(o.format=FM[d]??d,o.format===""&&delete o.format),h&&(o.contentEncoding=h),p&&p.size>0){const y=[...p];y.length===1?o.pattern=y[0].source:y.length>1&&(o.allOf=[...y.map(v=>({...t.target==="draft-07"||t.target==="draft-04"||t.target==="openapi-3.0"?{type:"string"}:{},pattern:v.source}))])}},UM=(e,t,r,i)=>{r.not={}},PM=(e,t,r,i)=>{},VM=(e,t,r,i)=>{const o=e._zod.def,s=Y1(o.entries);s.every(u=>typeof u=="number")&&(r.type="number"),s.every(u=>typeof u=="string")&&(r.type="string"),r.enum=s},HM=(e,t,r,i)=>{if(t.unrepresentable==="throw")throw new Error("Custom types cannot be represented in JSON Schema")},qM=(e,t,r,i)=>{if(t.unrepresentable==="throw")throw new Error("Transforms cannot be represented in JSON Schema")},ZM=(e,t,r,i)=>{const o=r,s=e._zod.def,{minimum:u,maximum:d}=e._zod.bag;typeof u=="number"&&(o.minItems=u),typeof d=="number"&&(o.maxItems=d),o.type="array",o.items=cn(s.element,t,{...i,path:[...i.path,"items"]})},$M=(e,t,r,i)=>{const o=r,s=e._zod.def;o.type="object",o.properties={};const u=s.shape;for(const h in u)o.properties[h]=cn(u[h],t,{...i,path:[...i.path,"properties",h]});const d=new Set(Object.keys(u)),p=new Set([...d].filter(h=>{const y=s.shape[h]._zod;return t.io==="input"?y.optin===void 0:y.optout===void 0}));p.size>0&&(o.required=Array.from(p)),s.catchall?._zod.def.type==="never"?o.additionalProperties=!1:s.catchall?s.catchall&&(o.additionalProperties=cn(s.catchall,t,{...i,path:[...i.path,"additionalProperties"]})):t.io==="output"&&(o.additionalProperties=!1)},KM=(e,t,r,i)=>{const o=e._zod.def,s=o.inclusive===!1,u=o.options.map((d,p)=>cn(d,t,{...i,path:[...i.path,s?"oneOf":"anyOf",p]}));s?r.oneOf=u:r.anyOf=u},GM=(e,t,r,i)=>{const o=e._zod.def,s=cn(o.left,t,{...i,path:[...i.path,"allOf",0]}),u=cn(o.right,t,{...i,path:[...i.path,"allOf",1]}),d=h=>"allOf"in h&&Object.keys(h).length===1,p=[...d(s)?s.allOf:[s],...d(u)?u.allOf:[u]];r.allOf=p},YM=(e,t,r,i)=>{const o=e._zod.def,s=cn(o.innerType,t,i),u=t.seen.get(e);t.target==="openapi-3.0"?(u.ref=o.innerType,r.nullable=!0):r.anyOf=[s,{t
71ype:"null"}]},XM=(e,t,r,i)=>{const o=e._zod.def;cn(o.innerType,t,i);const s=t.seen.get(e);s.ref=o.innerType},QM=(e,t,r,i)=>{const o=e._zod.def;cn(o.innerType,t,i);const s=t.seen.get(e);s.ref=o.innerType,r.default=JSON.parse(JSON.stringify(o.defaultValue))},JM=(e,t,r,i)=>{const o=e._zod.def;cn(o.innerType,t,i);const s=t.seen.get(e);s.ref=o.innerType,t.io==="input"&&(r._prefault=JSON.parse(JSON.stringify(o.defaultValue)))},WM=(e,t,r,i)=>{const o=e._zod.def;cn(o.innerType,t,i);const s=t.seen.get(e);s.ref=o.innerType;let u;try{u=o.catchValue(void 0)}catch{throw new Error("Dynamic catch values are not supported in JSON Schema")}r.default=u},e4=(e,t,r,i)=>{const o=e._zod.def,s=t.io==="input"?o.in._zod.def.type==="transform"?o.out:o.in:o.out;cn(s,t,i);const u=t.seen.get(e);u.ref=s},t4=(e,t,r,i)=>{const o=e._zod.def;cn(o.innerType,t,i);const s=t.seen.get(e);s.ref=o.innerType,r.readOnly=!0},n4=(e,t,r,i)=>{const o=e._zod.def;cn(o.innerType,t,i);const s=t.seen.get(e);s.ref=o.innerType};function p0(e,t){try{var r=e()}catch(i){return t(i)}return r&&r.then?r.then(void 0,t):r}function r4(e,t){for(var r={};e.length;){var i=e[0],o=i.code,s=i.message,u=i.path.join(".");if(!r[u])if("unionErrors"in i){var d=i.unionErrors[0].errors[0];r[u]={message:d.message,type:d.code}}else r[u]={message:s,type:o};if("unionErrors"in i&&i.unionErrors.forEach(function(y){return y.errors.forEach(function(v){return e.push(v)})}),t){var p=r[u].types,h=p&&p[i.code];r[u]=Mp(u,t,r,o,h?[].concat(h,i.message):i.message)}e.shift()}return r}function a4(e,t){for(var r={};e.length;){var i=e[0],o=i.code,s=i.message,u=i.path.join(".");if(!r[u])if(i.code==="invalid_union"&&i.errors.length>0){var d=i.errors[0][0];r[u]={message:d.message,type:d.code}}else r[u]={message:s,type:o};if(i.code==="invalid_union"&&i.errors.forEach(function(y){return y.forEach(function(v){return e.push(v)})}),t){var p=r[u].types,h=p&&p[i.code];r[u]=Mp(u,t,r,o,h?[].concat(h,i.message):i.message)}e.shift()}return r}function Sd(e,t,r){if(r===void 0&&(r={}),(function(i){return"_def"in i&&typeof i._def=="object"&&"typeName"in i._def})(e))return function(i,o,s){try{return Promise.resolve(p0(function(){return Promise.resolve(e[r.mode==="sync"?"parse":"parseAsync"](i,t)).then(function(u){return s.shouldUseNativeValidation&&Mh({},s),{errors:{},values:r.raw?Object.assign({},i):u}})},function(u){if((function(d){return Array.isArray(d?.issues)})(u))return{values:{},errors:e0(r4(u.errors,!s.shouldUseNativeValidation&&s.criteriaMode==="all"),s)};throw u}))}catch(u){return Promise.reject(u)}};if((function(i){return"_zod"in i&&typeof i._zod=="object"})(e))return function(i,o,s){try{return Promise.resolve(p0(function(){return Promise.resolve((r.mode==="sync"?cO:dO)(e,i,t)).then(function(u){return s.shouldUseNativeValidation&&Mh({},s),{errors:{},values:r.raw?Object.assign({},i):u}})},function(u){if((function(d){return d instanceof Vp})(u))return{values:{},errors:e0(a4(u.issues,!s.shouldUseNativeValidation&&s.criteriaMode==="all"),s)};throw u}))}catch(u){return Promise.reject(u)}};throw new Error("Invalid input: not a Zod schema")}const i4=ue("ZodISODateTime",(e,t)=>{hz.init(e,t),bt.init(e,t)});function l4(e){return gM(i4,e)}const o4=ue("ZodISODate",(e,t)=>{pz.init(e,t),bt.init(e,t)});function s4(e){return yM(o4,e)}const u4=ue("ZodISOTime",(e,t)=>{gz.init(e,t),bt.init(e,t)});function c4(e){return vM(u4,e)}const d4=ue("ZodISODuration",(e,t)=>{yz.init(e,t),bt.init(e,t)});function f4(e){return bM(d4,e)}const m4=(e,t)=>{Vp.init(e,t),e.name="ZodError",Object.defineProperties(e,{format:{value:r=>uO(e,r)},flatten:{value:r=>sO(e,r)},addIssue:{value:r=>{e.issues.push(r),e.message=JSON.stringify(e.issues,Lh,2)}},addIssues:{value:r=>{e.issues.push(...r),e.message=JSON.stringify(e.issues,Lh,2)}},isEmpty:{get(){return e.issues.length===0}}})},vr=ue("ZodError",m4,{Parent:Error}),h4=yd(vr),p4=vd(vr),g4=bd(vr),y4=xd(vr),v4=hO(vr),b4=pO(vr),x4=gO(vr),w4=yO(vr),S4=vO(vr),E4=bO(vr),N4=xO(vr),C4=wO(vr),rn=ue("ZodType",(e,t)=>(Gt.init(e,t),Object.assign(e["~standard"],{jsonSchema:{input:Uc(e,"input"),output:Uc(e,"output")}}),e.toJSONSchema=BM(e,{}),e.def=t,e.type=t.type,Object.defineProperty(e,"_def",{value:t}),e.check=(...r)=>e.clone(Fi(t,{checks:[...t.checks??[],...r.map(i=>typeof i=="function"?{_zod:{check:i,def:{check:"custom"},onattach:[]}}:i)]})),e.clone=(r,i)=>ii(e,r,i),e.brand=()=>e,e.register=((r,i)=>(r.add(e,i),e)),e.parse=(r,i)=>h4(e,r,i,{callee:e.parse}),e.safeParse=(r,i)=>g4(e,r,i),e.parseAsync=async(r,i)=>p4(e,r,i,{callee:e.parseAsync}),e.safeParseAsync=async(r,i)=>y4(e,r,i),e.spa=e.safeParseAsync,e.encode=(r,i)=>v4(e,r,i),e.decode=(r,i)=>b4(e,r,i),e.encodeAsync=async(r,i)=>x4(e,r,i),e.decodeAsync=async(r,i)=>w4(e,r,i),e.safeEncode=(r,i)=>S4(e,r,i),e.safeDecode=(r,i)=>E4(e,r,i),e.safeEncodeAsync=async(r,i)=>N4(e,r,i),e.safeDecodeAsync=async(r,i)=>C4(e,r,i),e.refine=(r,i)=>e.check(m3(r,i)),e.superRefine=r=>e.check(h3(r)),e.overwrite=r=>
vendor: 4,595 bytes, line 71
71e.check(Jl(r)),e.optional=()=>v0(e),e.nullable=()=>b0(e),e.nullish=()=>v0(b0(e)),e.nonoptional=r=>l3(e,r),e.array=()=>fE(e),e.or=r=>X4([e,r]),e.and=r=>J4(e,r),e.transform=r=>x0(e,e3(r)),e.default=r=>r3(e,r),e.prefault=r=>i3(e,r),e.catch=r=>s3(e,r),e.pipe=r=>x0(e,r),e.readonly=()=>d3(e),e.describe=r=>{const i=e.clone();return rs.add(i,{description:r}),i},Object.defineProperty(e,"description",{get(){return rs.get(e)?.description},configurable:!0}),e.meta=(...r)=>{if(r.length===0)return rs.get(e);const i=e.clone();return rs.add(i,r[0]),i},e.isOptional=()=>e.safeParse(void 0).success,e.isNullable=()=>e.safeParse(null).success,e)),dE=ue("_ZodString",(e,t)=>{Hp.init(e,t),rn.init(e,t),e._zod.processJSONSchema=(i,o,s)=>IM(e,i,o);const r=e._zod.bag;e.format=r.format??null,e.minLength=r.minimum??null,e.maxLength=r.maximum??null,e.regex=(...i)=>e.check(SM(...i)),e.includes=(...i)=>e.check(CM(...i)),e.startsWith=(...i)=>e.check(jM(...i)),e.endsWith=(...i)=>e.check(kM(...i)),e.min=(...i)=>e.check(Ic(...i)),e.max=(...i)=>e.check(lE(...i)),e.length=(...i)=>e.check(oE(...i)),e.nonempty=(...i)=>e.check(Ic(1,...i)),e.lowercase=i=>e.check(EM(i)),e.uppercase=i=>e.check(NM(i)),e.trim=()=>e.check(TM()),e.normalize=(...i)=>e.check(AM(...i)),e.toLowerCase=()=>e.check(_M()),e.toUpperCase=()=>e.check(DM()),e.slugify=()=>e.check(RM())}),j4=ue("ZodString",(e,t)=>{Hp.init(e,t),dE.init(e,t),e.email=r=>e.check(Yz(k4,r)),e.url=r=>e.check(eM(A4,r)),e.jwt=r=>e.check(pM(H4,r)),e.emoji=r=>e.check(tM(T4,r)),e.guid=r=>e.check(h0(g0,r)),e.uuid=r=>e.check(Xz(uc,r)),e.uuidv4=r=>e.check(Qz(uc,r)),e.uuidv6=r=>e.check(Jz(uc,r)),e.uuidv7=r=>e.check(Wz(uc,r)),e.nanoid=r=>e.check(nM(_4,r)),e.guid=r=>e.check(h0(g0,r)),e.cuid=r=>e.check(rM(D4,r)),e.cuid2=r=>e.check(aM(R4,r)),e.ulid=r=>e.check(iM(O4,r)),e.base64=r=>e.check(fM(U4,r)),e.base64url=r=>e.check(mM(P4,r)),e.xid=r=>e.check(lM(z4,r)),e.ksuid=r=>e.check(oM(M4,r)),e.ipv4=r=>e.check(sM(L4,r)),e.ipv6=r=>e.check(uM(B4,r)),e.cidrv4=r=>e.check(cM(F4,r)),e.cidrv6=r=>e.check(dM(I4,r)),e.e164=r=>e.check(hM(V4,r)),e.datetime=r=>e.check(l4(r)),e.date=r=>e.check(s4(r)),e.time=r=>e.check(c4(r)),e.duration=r=>e.check(f4(r))});function ws(e){return Gz(j4,e)}const bt=ue("ZodStringFormat",(e,t)=>{vt.init(e,t),dE.init(e,t)}),k4=ue("ZodEmail",(e,t)=>{iz.init(e,t),bt.init(e,t)}),g0=ue("ZodGUID",(e,t)=>{rz.init(e,t),bt.init(e,t)}),uc=ue("ZodUUID",(e,t)=>{az.init(e,t),bt.init(e,t)}),A4=ue("ZodURL",(e,t)=>{lz.init(e,t),bt.init(e,t)}),T4=ue("ZodEmoji",(e,t)=>{oz.init(e,t),bt.init(e,t)}),_4=ue("ZodNanoID",(e,t)=>{sz.init(e,t),bt.init(e,t)}),D4=ue("ZodCUID",(e,t)=>{uz.init(e,t),bt.init(e,t)}),R4=ue("ZodCUID2",(e,t)=>{cz.init(e,t),bt.init(e,t)}),O4=ue("ZodULID",(e,t)=>{dz.init(e,t),bt.init(e,t)}),z4=ue("ZodXID",(e,t)=>{fz.init(e,t),bt.init(e,t)}),M4=ue("ZodKSUID",(e,t)=>{mz.init(e,t),bt.init(e,t)}),L4=ue("ZodIPv4",(e,t)=>{vz.init(e,t),bt.init(e,t)}),B4=ue("ZodIPv6",(e,t)=>{bz.init(e,t),bt.init(e,t)}),F4=ue("ZodCIDRv4",(e,t)=>{xz.init(e,t),bt.init(e,t)}),I4=ue("ZodCIDRv6",(e,t)=>{wz.init(e,t),bt.init(e,t)}),U4=ue("ZodBase64",(e,t)=>{Sz.init(e,t),bt.init(e,t)}),P4=ue("ZodBase64URL",(e,t)=>{Nz.init(e,t),bt.init(e,t)}),V4=ue("ZodE164",(e,t)=>{Cz.init(e,t),bt.init(e,t)}),H4=ue("ZodJWT",(e,t)=>{kz.init(e,t),bt.init(e,t)}),q4=ue("ZodUnknown",(e,t)=>{Az.init(e,t),rn.init(e,t),e._zod.processJSONSchema=(r,i,o)=>PM()});function y0(){return xM(q4)}const Z4=ue("ZodNever",(e,t)=>{Tz.init(e,t),rn.init(e,t),e._zod.processJSONSchema=(r,i,o)=>UM(e,r,i)});function $4(e){return wM(Z4,e)}const K4=ue("ZodArray",(e,t)=>{_z.init(e,t),rn.init(e,t),e._zod.processJSONSchema=(r,i,o)=>ZM(e,r,i,o),e.element=t.element,e.min=(r,i)=>e.check(Ic(r,i)),e.nonempty=r=>e.check(Ic(1,r)),e.max=(r,i)=>e.check(lE(r,i)),e.length=(r,i)=>e.check(oE(r,i)),e.unwrap=()=>e.element});function fE(e,t){return OM(K4,e,t)}const G4=ue("ZodObject",(e,t)=>{Rz.init(e,t),rn.init(e,t),e._zod.processJSONSchema=(r,i,o)=>$M(e,r,i,o),dt(e,"shape",()=>t.shape),e.keyof=()=>mE(Object.keys(e._zod.def.shape)),e.catchall=r=>e.clone({...e._zod.def,catchall:r}),e.passthrough=()=>e.clone({...e._zod.def,catchall:y0()}),e.loose=()=>e.clone({...e._zod.def,catchall:y0()}),e.strict=()=>e.clone({...e._zod.def,catchall:$4()}),e.strip=()=>e.clone({...e._zod.def,catchall:void 0}),e.extend=r=>rO(e,r),e.safeExtend=r=>aO(e,r),e.merge=r=>iO(e,r),e.pick=r=>tO(e,r),e.omit=r=>nO(e,r),e.partial=(...r)=>lO(hE,e,r[0]),e.required=(...r)=>oO(pE,e,r[0])});function Ed(e,t){const r={type:"object",shape:e??{},...Re(t)};return new G4(r)}const Y4=ue("ZodUnion",(e,t)=>{Oz.init(e,t),rn.init(e,t),e._zod.processJSONSchema=(r,i,o)=>
vendor: 7,461 bytes, line 71
71KM(e,r,i,o),e.options=t.options});function X4(e,t){return new Y4({type:"union",options:e,...Re(t)})}const Q4=ue("ZodIntersection",(e,t)=>{zz.init(e,t),rn.init(e,t),e._zod.processJSONSchema=(r,i,o)=>GM(e,r,i,o)});function J4(e,t){return new Q4({type:"intersection",left:e,right:t})}const Fh=ue("ZodEnum",(e,t)=>{Mz.init(e,t),rn.init(e,t),e._zod.processJSONSchema=(i,o,s)=>VM(e,i,o),e.enum=t.entries,e.options=Object.values(t.entries);const r=new Set(Object.keys(t.entries));e.extract=(i,o)=>{const s={};for(const u of i)if(r.has(u))s[u]=t.entries[u];else throw new Error(`Key ${u} not found in enum`);return new Fh({...t,checks:[],...Re(o),entries:s})},e.exclude=(i,o)=>{const s={...t.entries};for(const u of i)if(r.has(u))delete s[u];else throw new Error(`Key ${u} not found in enum`);return new Fh({...t,checks:[],...Re(o),entries:s})}});function mE(e,t){const r=Array.isArray(e)?Object.fromEntries(e.map(i=>[i,i])):e;return new Fh({type:"enum",entries:r,...Re(t)})}const W4=ue("ZodTransform",(e,t)=>{Lz.init(e,t),rn.init(e,t),e._zod.processJSONSchema=(r,i,o)=>qM(e,r),e._zod.parse=(r,i)=>{if(i.direction==="backward")throw new K1(e.constructor.name);r.addIssue=s=>{if(typeof s=="string")r.issues.push(xs(s,r.value,t));else{const u=s;u.fatal&&(u.continue=!1),u.code??(u.code="custom"),u.input??(u.input=r.value),u.inst??(u.inst=e),r.issues.push(xs(u))}};const o=t.transform(r.value,r);return o instanceof Promise?o.then(s=>(r.value=s,r)):(r.value=o,r)}});function e3(e){return new W4({type:"transform",transform:e})}const hE=ue("ZodOptional",(e,t)=>{Bz.init(e,t),rn.init(e,t),e._zod.processJSONSchema=(r,i,o)=>n4(e,r,i,o),e.unwrap=()=>e._zod.def.innerType});function v0(e){return new hE({type:"optional",innerType:e})}const t3=ue("ZodNullable",(e,t)=>{Fz.init(e,t),rn.init(e,t),e._zod.processJSONSchema=(r,i,o)=>YM(e,r,i,o),e.unwrap=()=>e._zod.def.innerType});function b0(e){return new t3({type:"nullable",innerType:e})}const n3=ue("ZodDefault",(e,t)=>{Iz.init(e,t),rn.init(e,t),e._zod.processJSONSchema=(r,i,o)=>QM(e,r,i,o),e.unwrap=()=>e._zod.def.innerType,e.removeDefault=e.unwrap});function r3(e,t){return new n3({type:"default",innerType:e,get defaultValue(){return typeof t=="function"?t():Q1(t)}})}const a3=ue("ZodPrefault",(e,t)=>{Uz.init(e,t),rn.init(e,t),e._zod.processJSONSchema=(r,i,o)=>JM(e,r,i,o),e.unwrap=()=>e._zod.def.innerType});function i3(e,t){return new a3({type:"prefault",innerType:e,get defaultValue(){return typeof t=="function"?t():Q1(t)}})}const pE=ue("ZodNonOptional",(e,t)=>{Pz.init(e,t),rn.init(e,t),e._zod.processJSONSchema=(r,i,o)=>XM(e,r,i,o),e.unwrap=()=>e._zod.def.innerType});function l3(e,t){return new pE({type:"nonoptional",innerType:e,...Re(t)})}const o3=ue("ZodCatch",(e,t)=>{Vz.init(e,t),rn.init(e,t),e._zod.processJSONSchema=(r,i,o)=>WM(e,r,i,o),e.unwrap=()=>e._zod.def.innerType,e.removeCatch=e.unwrap});function s3(e,t){return new o3({type:"catch",innerType:e,catchValue:typeof t=="function"?t:()=>t})}const u3=ue("ZodPipe",(e,t)=>{Hz.init(e,t),rn.init(e,t),e._zod.processJSONSchema=(r,i,o)=>e4(e,r,i,o),e.in=t.in,e.out=t.out});function x0(e,t){return new u3({type:"pipe",in:e,out:t})}const c3=ue("ZodReadonly",(e,t)=>{qz.init(e,t),rn.init(e,t),e._zod.processJSONSchema=(r,i,o)=>t4(e,r,i,o),e.unwrap=()=>e._zod.def.innerType});function d3(e){return new c3({type:"readonly",innerType:e})}const f3=ue("ZodCustom",(e,t)=>{Zz.init(e,t),rn.init(e,t),e._zod.processJSONSchema=(r,i,o)=>HM(e,r)});function m3(e,t={}){return zM(f3,e,t)}function h3(e){return MM(e)}var cc={exports:{}};var gE=["input:not([inert])","select:not([inert])","textarea:not([inert])","a[href]:not([inert])","button:not([inert])","[tabindex]:not(slot):not([inert])","audio[controls]:not([inert])","video[controls]:not([inert])",'[contenteditable]:not([contenteditable="false"]):not([inert])',"details>summary:first-of-type:not([inert])","details:not([inert])"],Pc=gE.join(","),yE=typeof Element>"u",Oi=yE?function(){}:Element.prototype.matches||Element.prototype.msMatchesSelector||Element.prototype.webkitMatchesSelector,Vc=!yE&&Element.prototype.getRootNode?function(e){var t;return e==null||(t=e.getRootNode)===null||t===void 0?void 0:t.call(e)}:function(e){return e?.ownerDocument},Ss=function(t,r){var i;r===void 0&&(r=!0);var o=t==null||(i=t.getAttribute)===null||i===void 0?void 0:i.call(t,"inert"),s=o===""||o==="true",u=s||r&&t&&Ss(t.parentNode);return u},p3=function(t){var r,i=t==null||(r=t.getAttribute)===null||r===void 0?void 0:r.call(t,"contenteditable");return i===""||i==="true"},vE=function(t,r,i){if(Ss(t))return[];var o=Array.prototype.slice.apply(t.querySelectorAll(Pc));return r&&Oi.call(t,Pc)&&o.unshift(t),o=o.filter(i),o},Hc=function(t,r,i){for(var o=[],s=Array.from(t);s.length;){var u=s.shift();if(!Ss(u,!1))if(u.tagName==="SLOT"){var d=u.assignedElements(),p=d.length?d:u.children,h=Hc(p,!0,i);i.flatten?o.push.apply(o,h):o.push({scopeParent:u,candidates:h})}else{var y=Oi.call(u,Pc);y&&i.filter(u)&&(r||!t.includes(u))&&o.push(u);var v=u.shadowRoot||typeof i.getShadowRoot=="function"&&i.getShadowRoot(u),x=!Ss(v,!1)&&(!i.shadowRootFilter||i.shadowRootFilter(u));if(v&&x){var b=Hc(v===!0?u.children:v.children,!0,i);i.flatten?o.push.apply(o,b):o.push({scopeParent:u,candidates:b})}else s.unshift.apply(s,u.children)}}return o},bE=function(t){return!isNaN(parseInt(t.getAttribute("tabindex"),10))},ei=function(t){if(!t)throw new Error("No node provided");return t.tabIndex<0&&(/^(AUDIO|VIDEO|DETAILS)$/.test(t.tagName)||p3(t))&&!bE(t)?0:t.tabIndex},g3=function(t,r){var i=ei(t);return i<0&&r&&!bE(t)?0:i},y3=function(t,r){return t.tabIndex===r.tabIndex?t.documentOrder-r.documentOrder:t.tabIndex-r.tabIndex},xE=function(t){return t.tagName==="INPUT"},v3=function(t){return xE(t)&&t.type==="hidden"},b3=function(t){var r=t.tagName==="DETAILS"&&Array.prototype.slice.apply(t.children).some(function(i){return i.tagName==="SUMMARY"});return r},x3=function(t,r){for(var i=0;i<t.length;i++)if(t[i].checked&&t[i].form===r)return t[i]},w3=function(t){if(!t.name)return!0;var r=t.form||Vc(t),i=function(d){return r.querySelectorAll('input[type="radio"][name="'+d+'"]')},o;if(typeof window<"u"&&typeof window.CSS<"u"&&typeof window.CSS.escape=="function")o=i(window.CSS.escape(t.name));else try{o=i(t.name)}catch(u){return console.error("Looks like you have a radio button with a name attribute containing invalid CSS selector characters and need the CSS.escape polyfill: %s",u.message),!1}var s=x3(o,t.form);return!s||s===t},S3=function(t){return xE(t)&&t.type==="radio"},E3=function(t){return S3(t)&&!w3(t)},N3=function(t){var r,i=t&&Vc(t),o=(r=i)===null||r===void 0?void 0:r.host,s=!1;if(i&&i!==t){var u,d,p;for(s=!!((u=o)!==null&&u!==void 0&&(d=u.ownerDocument)!==null&&d!==void 0&&d.contains(o)||t!=null&&(p=t.ownerDocument)!==null&&p!==void 0&&p.contains(t));!s&&o;){var h,y,v;i=Vc(o),o=(h=i)===null||h===void 0?void 0:h.host,s=!!((y=o)!==null&&y!==void 0&&(v=y.ownerDocument)!==null&&v!==void 0&&v.contains(o))}}return s},w0=function(t){var r=t.getBoundingClientRect(),i=r.width,o=r.height;return i===0&&o===0},C3=function(t,r){var i=r.displayCheck,o=r.getShadowRoot;if(i==="full-native"&&"checkVisibility"in t){var s=t.checkVisibility({checkOpacity:!1,opacityProperty:!1,contentVisibilityAuto:!0,visibilityProperty:!0,checkVisibilityCSS:!0});return!s}if(getComputedStyle(t).visibility==="hidden")return!0;var u=Oi.call(t,"details>summary:first-of-type"),d=u?t.parentElement:t;if(Oi.call(d,"details:not([open]) *"))return!0;
vendor: 10,036 bytes, lines 71-73
71if(!i||i==="full"||i==="full-native"||i==="legacy-full"){if(typeof o=="function"){for(var p=t;t;){var h=t.parentElement,y=Vc(t);if(h&&!h.shadowRoot&&o(h)===!0)return w0(t);t.assignedSlot?t=t.assignedSlot:!h&&y!==t.ownerDocument?t=y.host:t=h}t=p}if(N3(t))return!t.getClientRects().length;if(i!=="legacy-full")return!0}else if(i==="non-zero-area")return w0(t);return!1},j3=function(t){if(/^(INPUT|BUTTON|SELECT|TEXTAREA)$/.test(t.tagName))for(var r=t.parentElement;r;){if(r.tagName==="FIELDSET"&&r.disabled){for(var i=0;i<r.children.length;i++){var o=r.children.item(i);if(o.tagName==="LEGEND")return Oi.call(r,"fieldset[disabled] *")?!0:!o.contains(t)}return!0}r=r.parentElement}return!1},qc=function(t,r){return!(r.disabled||Ss(r)||v3(r)||C3(r,t)||b3(r)||j3(r))},Ih=function(t,r){return!(E3(r)||ei(r)<0||!qc(t,r))},k3=function(t){var r=parseInt(t.getAttribute("tabindex"),10);return!!(isNaN(r)||r>=0)},wE=function(t){var r=[],i=[];return t.forEach(function(o,s){var u=!!o.scopeParent,d=u?o.scopeParent:o,p=g3(d,u),h=u?wE(o.candidates):d;p===0?u?r.push.apply(r,h):r.push(d):i.push({documentOrder:s,tabIndex:p,item:o,isScope:u,content:h})}),i.sort(y3).reduce(function(o,s){return s.isScope?o.push.apply(o,s.content):o.push(s.content),o},[]).concat(r)},SE=function(t,r){r=r||{};var i;return r.getShadowRoot?i=Hc([t],r.includeContainer,{filter:Ih.bind(null,r),flatten:!1,getShadowRoot:r.getShadowRoot,shadowRootFilter:k3}):i=vE(t,r.includeContainer,Ih.bind(null,r)),wE(i)},EE=function(t,r){r=r||{};var i;return r.getShadowRoot?i=Hc([t],r.includeContainer,{filter:qc.bind(null,r),flatten:!0,getShadowRoot:r.getShadowRoot}):i=vE(t,r.includeContainer,qc.bind(null,r)),i},ki=function(t,r){if(r=r||{},!t)throw new Error("No node provided");return Oi.call(t,Pc)===!1?!1:Ih(r,t)},A3=gE.concat("iframe").join(","),wc=function(t,r){if(r=r||{},!t)throw new Error("No node provided");return Oi.call(t,A3)===!1?!1:qc(r,t)};const T3=Object.freeze(Object.defineProperty({__proto__:null,focusable:EE,getTabIndex:ei,isFocusable:wc,isTabbable:ki,tabbable:SE},Symbol.toStringTag,{value:"Module"}));function Uh(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,i=Array(t);r<t;r++)i[r]=e[r];return i}function _3(e){if(Array.isArray(e))return Uh(e)}function S0(e,t){var r=typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(!r){if(Array.isArray(e)||(r=NE(e))||t){r&&(e=r);var i=0,o=function(){};return{s:o,n:function(){return i>=e.length?{done:!0}:{done:!1,value:e[i++]}},e:function(p){throw p},f:o}}throw new TypeError(`Invalid attempt to iterate non-iterable instance. 72In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var s,u=!0,d=!1;return{s:function(){r=r.call(e)},n:function(){var p=r.next();return u=p.done,p},e:function(p){d=!0,s=p},f:function(){try{u||r.return==null||r.return()}finally{if(d)throw s}}}}function D3(e,t,r){return(t=L3(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function R3(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function O3(){throw new TypeError(`Invalid attempt to spread non-iterable instance. 73In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function E0(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),r.push.apply(r,i)}return r}function N0(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?E0(Object(r),!0).forEach(function(i){D3(e,i,r[i])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):E0(Object(r)).forEach(function(i){Object.defineProperty(e,i,Object.getOwnPropertyDescriptor(r,i))})}return e}function z3(e){return _3(e)||R3(e)||NE(e)||O3()}function M3(e,t){if(typeof e!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var i=r.call(e,t);if(typeof i!="object")return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function L3(e){var t=M3(e,"string");return typeof t=="symbol"?t:t+""}function NE(e,t){if(e){if(typeof e=="string")return Uh(e,t);var r={}.toString.call(e).slice(8,-1);return r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set"?Array.from(e):r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?Uh(e,t):void 0}}var ga={getActiveTrap:function(t){return t?.length>0?t[t.length-1]:null},activateTrap:function(t,r){var i=ga.getActiveTrap(t);r!==i&&ga.pauseTrap(t);var o=t.indexOf(r);o===-1||t.splice(o,1),t.push(r)},deactivateTrap:function(t,r){var i=t.indexOf(r);i!==-1&&t.splice(i,1),ga.unpauseTrap(t)},pauseTrap:function(t){var r=ga.getActiveTrap(t);r?._setPausedState(!0)},unpauseTrap:function(t){var r=ga.getActiveTrap(t);r&&!r._isManuallyPaused()&&r._setPausedState(!1)}},B3=function(t){return t.tagName&&t.tagName.toLowerCase()==="input"&&typeof t.select=="function"},F3=function(t){return t?.key==="Escape"||t?.key==="Esc"||t?.keyCode===27},ls=function(t){return t?.key==="Tab"||t?.keyCode===9},I3=function(t){return ls(t)&&!t.shiftKey},U3=function(t){return ls(t)&&t.shiftKey},C0=function(t){return setTimeout(t,0)},Qo=function(t){for(var r=arguments.length,i=new Array(r>1?r-1:0),o=1;o<r;o++)i[o-1]=arguments[o];return typeof t=="function"?t.apply(void 0,i):t},dc=function(t){return t.target.shadowRoot&&typeof t.composedPath=="function"?t.composedPath()[0]:t.target},P3=[],V3=function(t,r){var i=r?.document||document,o=r?.trapStack||P3,s=N0({returnFocusOnDeactivate:!0,escapeDeactivates:!0,delayInitialFocus:!0,isolateSubtrees:!1,isKeyForward:I3,isKeyBackward:U3},r),u={containers:[],containerGroups:[],tabbableGroups:[],adjacentElements:new Set,alreadyInert:new Set,nodeFocusedBeforeActivation:null,mostRecentlyFocusedNode:null,active:!1,paused:!1,manuallyPaused:!1,delayInitialFocusTimer:void 0,recentNavEvent:void 0},d,p=function(F,z,R){return F&&F[z]!==void 0?F[z]:s[R||z]},h=function(F,z){var R=typeof z?.composedPath=="function"?z.composedPath():void 0;return u.containerGroups.findIndex(function(K){var q=K.container,ne=K.tabbableNodes;return q.contains(F)||R?.includes(q)||ne.find(function(A){return A===F})})},y=function(F){var z=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},R=z.hasFallback,K=R===void 0?!1:R,q=z.params,ne=q===void 0?[]:q,A=s[F];if(typeof A=="function"&&(A=A.apply(void 0,z3(ne))),A===!0&&(A=void 0),!A){if(A===void 0||A===!1)return A;throw new Error("`".concat(F,"` was specified but was not a node, or did not return a node"))}var pe=A;if(typeof A=="string"){try{pe=i.querySelector(A)}catch(ce){throw new Error("`".concat(F,'` appears to be an invalid selector; error="').concat(ce.message,'"'))}if(!pe&&!K)throw new Error("`".concat(F,"` as selector refers to no known node"))}return pe},v=function(){var F=y("initialFocus",{hasFallback:!0});if(F===!1)return!1;if(F===void 0||F&&!wc(F,s.tabbableOptions))if(h(i.activeElement)>=0)F=i.activeElement;else{var z=u.tabbableGroups[0],R=z&&z.firstTabbableNode;F=R||y("fallbackFocus")}else F===null&&(F=y("fallbackFocus"));if(!F)throw new Error("Your focus-trap needs to have at least one focusable element");return F},x=function(){if(u.containerGroups=u.containers.map(function(F){var z=SE(F,s.tabbableOptions),R=EE(F,s.tabbableOptions),K=z.length>0?z[0]:void 0,q=z.length>0?z[z.length-1]:void 0,ne=R.find(function(ce){return ki(ce)}),A=R.slice().reverse().find(function(ce){return ki(ce)}),pe=!!z.find(function(ce){return ei(ce)>0});return{container:F,tabbableNodes:z,focusableNodes:R,posTabIndexesFound:pe,firstTabbableNode:K,lastTabbableNode:q,firstDomTabbableNode:ne,lastDomTabbableNode:A,nextTabbableNode:function(D){var ge=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0,ke=z.indexOf(D);return ke<0?ge?R.slice(R.indexOf(D)+1).find(function(ve){return ki(ve)}):R.slice(0,R.indexOf(D)).reverse().find(function(ve){return ki(ve)}):z[ke+(ge?1:-1)]}}}),u.tabbableGroups=u.containerGroups.filter(function(F){return F.tabbableNodes.length>0}),u.tabbableGroups.length<=0&&!y("fallbackFocus"))throw new Error("Your focus-trap must have at least one container with at least one tabbable node in it at all times");if(u.containerGroups.find(function(F){return F.posTabIndexesFound})&&u.containerGroups.length>1)throw new Error("At least one node with a positive tabindex was found in one of your focus-trap's multiple containers. Positive tabindexes are only supported in single-container focus-traps.")},b=function(F){var z=F.activeElement;if(z)return z.shadowRoot&&z.shadowRoot.activeElement!==null?b(z.shadowRoot):z},E=function(F){if(F!==!1&&F!==b(document)){if(!F||!F.focus){E(v());return}F.focus({preventScroll:!!s.preventScroll}),u.mostRecentlyFocusedNode=F,B3(F)&&F.select()}},N=function(F){var z=y("setReturnFocus",{params:[F]});return z||(z===!1?!1:F)},C=function(F){var z=F.target,R=F.event,K=F.isBackward,q=K===void 0?!1:K;z=z||dc(R),x();var ne=null;if(u.tabbableGroups.length>0){var A=h(z,R),pe=A>=0?u.containerGroups[A]:void 0;if(A<0)q?ne=u.tabbableGroups[u.tabbableGroups.length-1].lastTabbableNode:ne=u.tabbableGroups[0].firstTabbableNode;else if(q){var ce=u.tabbableGroups.findIndex(function(Le){var Ie=Le.firstTabbableNode;return z===Ie});if(ce<0&&(pe.container===z||wc(z,s.tabbableOptions)&&!ki(z,s.tabbableOptions)&&!pe.nextTabbableNode(z,!1))&&(ce=A),ce>=0){var D=ce===0?u.tabbableGroups.length-1:ce-1,ge=u.tabbableGroups[D];ne=ei(z)>=0?ge.lastTabbableNode:ge.lastDomTabbableNode}else ls(R)||(ne=pe.nextTabbableNode(z,!1))}else{var ke=u.tabbableGroups.findIndex(function(Le){var Ie=Le.lastTabbableNode;return z===Ie});if(ke<0&&(pe.container===z||wc(z,s.tabbableOptions)&&!ki(z,s.tabbableOptions)&&!pe.nextTabbableNode(z))&&(ke=A),ke>=0){var ve=ke===u.tabbableGroups.length-1?0:ke+1,be=u.tabbableGroups[ve];ne=ei(z)>=0?be.firstTabbableNode:be.firstDomTabbableNode}else ls(R)||(ne=pe.nextTabbableNode(z))}}else ne=y("fallbackFocus");return ne},k=function(F){var z=dc(F);if(!(h(z,F)>
73=0)){if(Qo(s.clickOutsideDeactivates,F)){d.deactivate({returnFocus:s.returnFocusOnDeactivate});return}Qo(s.allowOutsideClick,F)||F.preventDefault()}},M=function(F){var z=dc(F),R=h(z,F)>=0;if(R||z instanceof Document)R&&(u.mostRecentlyFocusedNode=z);else{F.stopImmediatePropagation();var K,q=!0;if(u.mostRecentlyFocusedNode)if(ei(u.mostRecentlyFocusedNode)>0){var ne=h(u.mostRecentlyFocusedNode),A=u.containerGroups[ne].tabbableNodes;if(A.length>0){var pe=A.findIndex(function(ce){return ce===u.mostRecentlyFocusedNode});pe>=0&&(s.isKeyForward(u.recentNavEvent)?pe+1<A.length&&(K=A[pe+1],q=!1):pe-1>=0&&(K=A[pe-1],q=!1))}}else u.containerGroups.some(function(ce){return ce.tabbableNodes.some(function(D){return ei(D)>0})})||(q=!1);else q=!1;q&&(K=C({target:u.mostRecentlyFocusedNode,isBackward:s.isKeyBackward(u.recentNavEvent)})),E(K||u.mostRecentlyFocusedNode||v())}u.recentNavEvent=void 0},O=function(F){var z=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;u.recentNavEvent=F;var R=C({event:F,isBackward:z});R&&(ls(F)&&F.preventDefault(),E(R))},B=function(F){(s.isKeyForward(F)||s.isKeyBackward(F))&&O(F,s.isKeyBackward(F))},T=function(F){F3(F)&&Qo(s.escapeDeactivates,F)!==!1&&(F.preventDefault(),d.deactivate())},L=function(F){var z=dc(F);h(z,F)>=0||Qo(s.clickOutsideDeactivates,F)||Qo(s.allowOutsideClick,F)||(F.preventDefault(),F.stopImmediatePropagation())},I=function(){if(u.active)return ga.activateTrap(o,d),u.delayInitialFocusTimer=s.delayInitialFocus?C0(function(){E(v())}):E(v()),i.addEventListener("focusin",M,!0),i.addEventListener("mousedown",k,{capture:!0,passive:!1}),i.addEventListener("touchstart",k,{capture:!0,passive:!1}),i.addEventListener("click",L,{capture:!0,passive:!1}),i.addEventListener("keydown",B,{capture:!0,passive:!1}),i.addEventListener("keydown",T),d},_=function(F){u.active&&!u.paused&&d._setSubtreeIsolation(!1),u.adjacentElements.clear(),u.alreadyInert.clear();var z=new Set,R=new Set,K=S0(F),q;try{for(K.s();!(q=K.n()).done;){var ne=q.value;z.add(ne);for(var A=typeof ShadowRoot<"u"&&ne.getRootNode()instanceof ShadowRoot,pe=ne;pe;){z.add(pe);var ce=pe.parentElement,D=[];ce?D=ce.children:!ce&&A&&(D=pe.getRootNode().children,ce=pe.getRootNode().host,A=typeof ShadowRoot<"u"&&ce.getRootNode()instanceof ShadowRoot);var ge=S0(D),ke;try{for(ge.s();!(ke=ge.n()).done;){var ve=ke.value;R.add(ve)}}catch(be){ge.e(be)}finally{ge.f()}pe=ce}}}catch(be){K.e(be)}finally{K.f()}z.forEach(function(be){R.delete(be)}),u.adjacentElements=R},X=function(){if(u.active)return i.removeEventListener("focusin",M,!0),i.removeEventListener("mousedown",k,!0),i.removeEventListener("touchstart",k,!0),i.removeEventListener("click",L,!0),i.removeEventListener("keydown",B,!0),i.removeEventListener("keydown",T),d},V=function(F){var z=F.some(function(R){var K=Array.from(R.removedNodes);return K.some(function(q){return q===u.mostRecentlyFocusedNode})});z&&E(v())},G=typeof window<"u"&&"MutationObserver"in window?new MutationObserver(V):void 0,$=function(){G&&(G.disconnect(),u.active&&!u.paused&&u.containers.map(function(F){G.observe(F,{subtree:!0,childList:!0})}))};return d={get active(){return u.active},get paused(){return u.paused},activate:function(F){if(u.active)return this;var z=p(F,"onActivate"),R=p(F,"onPostActivate"),K=p(F,"checkCanFocusTrap"),q=ga.getActiveTrap(o),ne=!1;q&&!q.paused&&(q._setSubtreeIsolation(!1),ne=!0);try{K||x(),u.active=!0,u.paused=!1,u.nodeFocusedBeforeActivation=b(i),z?.();var A=function(){K&&x(),I(),$(),s.isolateSubtrees&&d._setSubtreeIsolation(!0),R?.()};if(K)return K(u.containers.concat()).then(A,A),this;A()}catch(pe){throw q===ga.getActiveTrap(o)&&ne&&q._setSubtreeIsolation(!0),pe}return this},deactivate:function(F){if(!u.active)return this;var z=N0({onDeactivate:s.onDeactivate,onPostDeactivate:s.onPostDeactivate,checkCanReturnFocus:s.checkCanReturnFocus},F);clearTimeout(u.delayInitialFocusTimer),u.delayInitialFocusTimer=void 0,u.paused||d._setSubtreeIsolation(!1),u.alreadyInert.clear(),X(),u.active=!1,u.paused=!1,$(),ga.deactivateTrap(o,d);var R=p(z,"onDeactivate"),K=p(z,"onPostDeactivate"),q=p(z,"checkCanReturnFocus"),ne=p(z,"returnFocus","returnFocusOnDeactivate");R?.();var A=function(){C0(function(){ne&&E(N(u.nodeFocusedBeforeActivation)),K?.()})};
73return ne&&q?(q(N(u.nodeFocusedBeforeActivation)).then(A,A),this):(A(),this)},pause:function(F){return u.active?(u.manuallyPaused=!0,this._setPausedState(!0,F)):this},unpause:function(F){return u.active?(u.manuallyPaused=!1,o[o.length-1]!==this?this:this._setPausedState(!1,F)):this},updateContainerElements:function(F){var z=[].concat(F).filter(Boolean);return u.containers=z.map(function(R){return typeof R=="string"?i.querySelector(R):R}),s.isolateSubtrees&&_(u.containers),u.active&&(x(),s.isolateSubtrees&&!u.paused&&d._setSubtreeIsolation(!0)),$(),this}},Object.defineProperties(d,{_isManuallyPaused:{value:function(){return u.manuallyPaused}},_setPausedState:{value:function(F,z){if(u.paused===F)return this;if(u.paused=F,F){var R=p(z,"onPause"),K=p(z,"onPostPause");R?.(),X(),$(),d._setSubtreeIsolation(!1),K?.()}else{var q=p(z,"onUnpause"),ne=p(z,"onPostUnpause");q?.(),d._setSubtreeIsolation(!0),x(),I(),$(),ne?.()}return this}},_setSubtreeIsolation:{value:function(F){s.isolateSubtrees&&u.adjacentElements.forEach(function(z){if(F){var R=z.inert||z.hasAttribute("inert");R&&u.alreadyInert.add(z),z.inert=!0}else u.alreadyInert.has(z)||(z.inert=!1)})}}}),d.updateContainerElements(t),d};const H3=Object.freeze(Object.defineProperty({__proto__:null,createFocusTrap:V3},Symbol.toStringTag,{value:"Module"})),q3=Hw(H3),Z3=Hw(T3);var j0;function $3(){if(j0)return cc.exports;j0=1;function e(I){"@babel/helpers - typeof";return e=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(_){return typeof _}:function(_){return _&&typeof Symbol=="function"&&_.constructor===Symbol&&_!==Symbol.prototype?"symbol":typeof _},e(I)}var t,r;function i(I,_){if(!(I instanceof _))throw new TypeError("Cannot call a class as a function")}function o(I,_){for(var X=0;X<_.length;X++){var V=_[X];V.enumerable=V.enumerable||!1,V.configurable=!0,"value"in V&&(V.writable=!0),Object.defineProperty(I,E(V.key),V)}}function s(I,_,X){return _&&o(I.prototype,_),Object.defineProperty(I,"prototype",{writable:!1}),I}function u(I,_,X){return _=y(_),d(I,h()?Reflect.construct(_,X||[],y(I).constructor):_.apply(I,X))}function d(I,_){if(_&&(e(_)=="object"||typeof _=="function"))return _;if(_!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return p(I)}function p(I){if(I===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return I}function h(){try{var I=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(h=function(){return!!I})()}function y(I){return y=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(_){return _.__proto__||Object.getPrototypeOf(_)},y(I)}function v(I,_){if(typeof _!="function"&&_!==null)throw new TypeError("Super expression must either be null or a function");I.prototype=Object.create(_&&_.prototype,{constructor:{value:I,writable:!0,configurable:!0}}),Object.defineProperty(I,"prototype",{writable:!1}),_&&x(I,_)}function x(I,_){return x=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(X,V){return X.__proto__=V,X},x(I,_)}function b(I,_,X){return(_=E(_))in I?Object.defineProperty(I,_,{value:X,enumerable:!0,configurable:!0,writable:!0}):I[_]=X,I}function E(I){var _=N(I,"string");return e(_)=="symbol"?_:_+""}function N(I,_){if(e(I)!="object"||!I)return I;var X=I[Symbol.toPrimitive];if(X!==void 0){var V=X.call(I,_);if(e(V)!="object")return V;throw new TypeError("@@toPrimitive must return a primitive value.")}return(_==="string"?String:Number)(I)}var C=Pw(),k=q3,M=k.createFocusTrap,O=Z3,B=O.isFocusable,T=parseInt((t=(r=/^(\d+)\./.exec(C.version))===null||r===void 0?void 0:r[1])!==null&&t!==void 0?t:0,10),L=(function(I){function _(X){var V;i(this,_),V=u(this,_,[X]),b(V,"getNodeForOption",function(Q){var F,z=(F=this.internalOptions[Q])!==null&&F!==void 0?F:this.originalOptions[Q];if(typeof z=="function"){for(var R=arguments.length,K=new Array(R>1?R-1:0),q=1;q<R;q++)K[q-1]=arguments[q];z=z.apply(void 0,K)}if(z===!0&&(z=void 0),!z){if(z===void 0||z===!1)return z;throw new Error("`".concat(Q,"` was specified but was not a node, or did not return a node"))}var ne=z;if(typeof z=="string"){var A;if(ne=(A=this.getDocument())===null||A===void 0?void 0:A.querySelector(z),!ne)throw new Error("`".concat(Q,"` as selector refers to no known node"))}return ne}),V.handleDeactivate=V.handleDeactivate.bind(V),V.handlePostDeactivate=V.handlePostDeactivate.bind(V),V.handleClickOutsideDeactivates=V.handleClickOutsideDeactivates.bind(V),V.internalOptions={returnFocusOnDeactivate:!1,checkCanReturnFocus:null,onDeactivate:V.handleDeactivate,onPostDeactivate:V.handlePostDeactivate,clickOutsideDeactivates:V.handleClickOutsideDeactivates},V.originalOptions={returnFocusOnDeactivate:!0,onDeactivate:null,onPostDeactivate:null,checkCanReturnFocus:null,clickOutsideDeactivates:!1};var G=X.focusTrapOptions;for(var $ in G)if(Object.prototype.hasOwnProperty.call(G,$)){if($==="returnFocusOnDeactivate"||$==="onDeactivate"||$==="onPostDeactivate"||$==="checkCanReturnFocus"||$==="clickOutsideDeactivates"){V.originalOptions[$]=G[$];continue}V.internalOptions[$]=G[$]}return V.outsideClick=null,V.focusTrapElements=X.containerElements||[],V.updatePreviousElement(),V}return v(_,I),s(_,[{key:"getDocument",value:function(){return this.props.focusTrapOptions.document||(typeof document<"u"?document:void 0)}},{key:"getReturnFocusNode",value:function(){var V=this.getNodeForOption("setReturnFocus",this.previouslyFocusedElement);return V||(V===!1?!1:this.previouslyFocusedElement)}},{key:"updatePreviousElement",value:function(){var V=this.getDocument();V&&(this.previouslyFocusedElement=V.activeElement)}},{key:"deactivateTrap",value:function(){!this.focusTrap||!this.focusTrap.active||this.focusTrap.deactivate({returnFocus:!1,checkCanReturnFocus:null,onDeactivate:this.originalOptions.onDeactivate})}},{key:"handleClickOutsideDeactivates",value:function(V){var G=typeof this.originalOptions.clickOutsideDeactivates=="function"?this.originalOptions.clickOutsideDeactivates.call(null,V):this.originalOptions.clickOutsideDeactivates;return G&&(this.outsideClick={target:V.target,allowDeactivation:G}),G}},{key:"handleDeactivate",value:function(){this.originalOptions.onDeactivate&&this.originalOptions.onDeactivate.call(null),this.deactivateTrap()}},{key:"handlePostDeactivate",value:function(){var V=this,G=function(){var Q=V.getReturnFocusNode(),F=!!(V.originalOptions.returnFocusOnDeactivate&&Q!==null&&Q!==void 0&&Q.focus&&(!V.outsideClick||V.outsideClick.allowDeactivation&&!B(V.outsideClick.target,V.internalOptions.tabbableOptions))),z=V.internalOptions.preventScroll,R=z===void 0?!1:z;F&&Q.focus({preventScroll:R}),V.originalOptions.onPostDeactivate&&V.originalOptions.onPostDeactivate.call(null),V.outsideClick=null};this.originalOptions.checkCanReturnFocus?this.originalOptions.checkCanReturnFocus.call(null,this.getReturnFocusNode()).then(G,G):G()}},{key:"setupFocusTrap",value:function(){if(this.focusTrap)this.props.active&&!this.focusTrap.active&&(this.focusTrap.activate(),this.props.paused&&this.focusTrap.pause());else{var V=this.focusTrapElements.some(Boolean);V&&(this.focusTrap=this.props._createFocusTrap(this.focusTrapElements,this.internalOptions),this.props.active&&this.focusTrap.activate(),this.props.paused&&this.focusTrap.pause())}}},{key:"componentDidMount",value:function(){this.props.active&&this.setupFocusTrap()}},{key:"componentDidUpdate",value:function(V){if(this.focusTrap){V.containerElements!==this.props.containerElements&&this.focusTrap.updateContainerElements(this.props.containerElements);var G=!V.active&&this.props.active,$=V.active&&!this.props.active,Q=!V.paused&&this.props.paused,F=V.paused&&!this.props.paused;if(G&&(this.updatePreviousElement(),this.focusTrap.activate()),$){this.deactivateTrap();return}Q&&this.focusTrap.pause(),F&&this.focusTrap.unpause()}else V.containerElements!==this.props.containerElements&&(this.focusTrapElements=this.props.containerElements),this.props.active&&(this.updatePreviousElement(),this.setupFocusTrap())}},{key:"componentWillUnmount",value:function(){this.deactivateTrap()}},{key:"render",value:function(){var V=this,G=this.props.children?C.Children.only(this.props.children):void 0;if(G){if(G.type&&G.type===C.Fragment)throw new Error("A focus-trap cannot use a Fragment as its child container. Try replacing it with a <div> element.");var $=function(z){var R=V.props.containerElements;G&&(T>=19?typeof G.props.ref=="function"?G.props.ref(z):G.props.ref&&(G.props.ref.current=z):typeof G.ref=="function"?G.ref(z):G.ref&&(G.ref.current=z)),V.focusTrapElements=R||[z]},Q=C.cloneElement(G,{ref:$});return Q}return null}}])})(C.Component);return L.defaultProps={active:!0,paused:!1,focusTrapOptions:{},_createFocusTrap:M},cc.exports=L,cc.exports.FocusTrap=L,cc.exports}var K3=$3();const li=Jc(K3),G3=Ed({name:ws().min(1,"Name is required").max(255,"Name must be 255 characters or less").regex(/^[^/\\:*?"<>|]+$/,'Name cannot contain / \\ : * ? " < > |')});function qp({isOpen:e,onClose:t,onSubmit:r,currentName:i,itemType:
73o,isRenaming:s,error:u}){const d=S.useRef(null),{register:p,handleSubmit:h,reset:y,formState:{errors:v}}=hd({resolver:Sd(G3),defaultValues:{name:i}}),{ref:x,...b}=p("name");if(S.useEffect(()=>{e&&(y({name:i}),setTimeout(()=>{d.current?.focus(),d.current?.select()},100))},[e,i,y]),S.useEffect(()=>{const N=C=>{C.key==="Escape"&&e&&!s&&t()};return window.addEventListener("keydown",N),()=>window.removeEventListener("keydown",N)},[e,s,t]),!e)return null;const E=async N=>{N.name.trim()!==i?await r(N.name.trim()):t()};return f.jsxs("div",{className:"fixed inset-0 z-50 flex items-center justify-center p-4",children:[f.jsx("div",{className:"fixed inset-0 bg-black/50",onClick:s?void 0:t,"aria-hidden":"true"}),f.jsx(li,{children:f.jsxs("div",{className:"relative w-full max-w-md bg-card rounded-lg shadow-lg border",children:[f.jsxs("div",{className:"flex items-center justify-between p-4 border-b",children:[f.jsxs("h2",{className:"text-lg font-semibold",children:["Rename ",o==="folder"?"Folder":"Document"]}),f.jsx("button",{type:"button",onClick:t,disabled:s,className:"p-1 hover:bg-accent rounded-md transition-colors disabled:opacity-50","aria-label":"Close modal",children:f.jsx(_r,{className:"h-5 w-5"})})]}),f.jsxs("form",{onSubmit:h(E),className:"p-4 space-y-4",children:[f.jsxs("div",{className:"space-y-2",children:[f.jsx("label",{htmlFor:"itemName",className:"text-sm font-medium",children:"Name"}),f.jsx("input",{...b,ref:N=>{x(N),d.current=N},id:"itemName",type:"text",disabled:s,className:Ge("w-full px-3 py-2 border rounded-md bg-background","focus:outline-none focus:ring-2 focus:ring-primary focus:border-transparent","disabled:opacity-50 disabled:cursor-not-allowed",v.name&&"border-destructive focus:ring-destructive"),autoComplete:"off"}),v.name&&f.jsx("p",{className:"text-sm text-destructive",children:v.name.message})]}),u&&f.jsxs("div",{className:"flex items-center gap-2 p-3 rounded-md bg-destructive/10 text-destructive",children:[f.jsx(Ea,{className:"h-4 w-4 flex-shrink-0"}),f.jsx("p",{className:"text-sm",children:u})]}),f.jsxs("div",{className:"flex justify-end gap-3 pt-2",children:[f.jsx("button",{type:"button",onClick:t,disabled:s,className:"px-4 py-2 text-sm font-medium rounded-md hover:bg-accent transition-colors disabled:opacity-50",children:"Cancel"}),f.jsx("button",{type:"submit",disabled:s,className:Ge("px-4 py-2 text-sm font-medium rounded-md","bg-primary text-primary-foreground","hover:bg-primary/90 transition-colors","disabled:opacity-50 disabled:cursor-not-allowed","flex items-center gap-2"),children:s?f.jsxs(f.Fragment,{children:[f.jsx(st,{className:"h-4 w-4 animate-spin"}),"Renaming..."]}):"Rename"})]})]})]})})]})}function Zp({isOpen:e,onClose:t,onSubmit:r,itemName:i,currentFolderId:o,itemId:s,isMoving:u,error:d}){const{data:p=[]}=sS(),{data:h}=oS(),[y,v]=S.useState(null),[x,b]=S.useState(new Set),E=S.useCallback(()=>{v(null),t()},[t]);if(S.useEffect(()=>{const B=T=>{T.key==="Escape"&&e&&!u&&E()};return window.addEventListener("keydown",B),()=>window.removeEventListener("keydown",B)},[e,u,E]),!e)return null;const N=B=>p.filter(T=>T.parentId===B&&T.id!==s).sort((T,L)=>T.name.localeCompare(L.name)),C=B=>{b(T=>{const L=new Set(T);return L.has(B)?L.delete(B):L.add(B),L})},k=(B,T=0)=>{const L=N(B.id),I=L.length>0,_=x.has(B.id),X=y===B.id,V=B.id===o;return f.jsxs("div",{children:[f.jsxs("button",{type:"button",onClick:()=>v(B.id),disabled:V,className:Ge("w-full flex items-center gap-2 px-2 py-1.5 rounded-md text-sm text-left","hover:bg-accent transition-colors","disabled:opacity-50 disabled:cursor-not-allowed",X&&"bg-primary text-primary-foreground hover:bg-primary",V&&"bg-muted"),style:{paddingLeft:`${T*16+8}px`},children:[I&&f.jsx("button",{type:"button",onClick:G=>{G.stopPropagation(),C(B.id)},className:"p-0.5 hover:bg-accent/50 rounded",children:f.jsx(lp,{className:Ge("h-3 w-3 transition-transform",_&&"rotate-90")})}),!I&&f.jsx("span",{className:"w-4"}),f.jsx(Qc,{className:"h-4 w-4 flex-shrink-0"}),f.jsx("span",{className:"truncate",children:B.name}),V&&f.jsx("span",{className:"text-xs text-muted-foreground ml-auto",children:"(current)"})]}),_&&I&&f.jsx("div",{children:L.map(G=>k(G,T+1))})]},B.id)},M=async()=>{y&&y!==o&&await r(y)},O=h?N(h.id):[];return f.jsxs("div",{className:"fixed inset-0 z-50 flex items-center justify-center p-4",children:[f.jsx("div",{className:"fixed inset-0 bg-black/50",onClick:u?void 0:E,"aria-hidden":"true"}),f.jsx(li,{children:f.jsxs("div",{className:"relative w-full max-w-md bg-card rounded-lg shadow-lg border max-h-[80vh] flex flex-col",children:[f.jsxs("div",{className:"flex items-center justify-between p-4 border-b flex-shrink-0",children:[f.jsxs("h2",{className:"text-lg font-semibold",children:['Move "',i,'"']}),f.jsx("button",{type:"button",onClick:E,disabled:u,className:"p-1 hover:bg-accent rounded-md transition-colors disabled:opacity-50","aria-label":"Close modal",children:f.jsx(_r,{className:"h-5 w-5"})})]}),f.jsxs("div",{className:"p-4 overflow-y-auto flex-1",children:[f.jsx("p",{className:"text-sm text-muted-foreground mb-3",children:"Select a destination folder:"}),h&&f.jsxs("button",{type:"button",onClick:()=>v(h.id),disabled:h.id===o,className:Ge("w-full flex items-center gap-2 px-2 py-1.5 rounded-md text-sm text-left mb-1","hover:bg-accent transition-colors","disabled:opacity-50 disabled:cursor-not-allowed",y===h.id&&"bg-primary text-primary-foreground hover:bg-primary",h.id===o&&"bg-muted"),children:[f.jsx(ap,{className:"h-4 w-4"}),f.jsx("span",{children:"My Documents"}),h.id===o&&f.jsx("span",{className:"text-xs text-muted-foreground ml-auto",children:"(current)"})]}),f.jsx("div",{className:"space-y-0.5",children:O.map(B=>k(B))}),O.length===0&&f.jsx("p",{className:"text-sm text-muted-foreground text-center py-4",children:"No other folders available"})]}),d&&f.jsx("div",{className:"px-4 pb-2",children:f.jsxs("div",{className:"flex items-center gap-2 p-3 rounded-md bg-destructive/10 text-destructive",children:[f.jsx(Ea,{className:"h-4 w-4 flex-shrink-0"}),f.jsx("p",{className:"text-sm",children:d})]})}),f.jsxs("div",{className:"flex justify-end gap-3 p-4 border-t flex-shrink-0",children:[f.jsx("button",{type:"button",onClick:E,disabled:u,className:"px-4 py-2 text-sm font-medium rounded-md hover:bg-accent transition-colors disabled:opacity-50",children:"Cancel"}),f.jsx("button",{type:"button",onClick:M,disabled:u||!y||y===o,className:Ge("px-4 py-2 text-sm font-medium rounded-md","bg-primary text-primary-foreground","hover:bg-primary/90 transition-colors","disabled:opacity-50 disabled:cursor-not-allowed","flex items-center gap-2"),children:u?f.jsxs(f.Fragment,{children:[f.jsx(st,{className:"h-4 w-4 animate-spin"}),"Moving..."]}):"Move here"})]})]})})]})}function $p({isOpen:e,onClose:t,onConfirm:r,itemName:i,itemType:
73o,isDeleting:s,error:u}){return S.useEffect(()=>{const d=p=>{p.key==="Escape"&&e&&!s&&t()};return window.addEventListener("keydown",d),()=>window.removeEventListener("keydown",d)},[e,s,t]),e?f.jsxs("div",{className:"fixed inset-0 z-50 flex items-center justify-center p-4",children:[f.jsx("div",{className:"fixed inset-0 bg-black/50",onClick:s?void 0:t,"aria-hidden":"true"}),f.jsx(li,{children:f.jsxs("div",{className:"relative w-full max-w-md bg-card rounded-lg shadow-lg border",children:[f.jsxs("div",{className:"flex items-center justify-between p-4 border-b",children:[f.jsxs("div",{className:"flex items-center gap-2 text-destructive",children:[f.jsx(Zl,{className:"h-5 w-5"}),f.jsxs("h2",{className:"text-lg font-semibold",children:["Delete ",o==="folder"?"Folder":"Document"]})]}),f.jsx("button",{type:"button",onClick:t,disabled:s,className:"p-1 hover:bg-accent rounded-md transition-colors disabled:opacity-50","aria-label":"Close modal",children:f.jsx(_r,{className:"h-5 w-5"})})]}),f.jsxs("div",{className:"p-4 space-y-4",children:[f.jsxs("p",{className:"text-sm text-muted-foreground",children:["Are you sure you want to delete"," ",f.jsxs("strong",{className:"text-foreground",children:['"',i,'"']}),"?",o==="folder"&&f.jsx("span",{className:"block mt-2 text-destructive",children:"This will also delete all documents and subfolders inside it."})]}),u&&f.jsxs("div",{className:"flex items-center gap-2 p-3 rounded-md bg-destructive/10 text-destructive",children:[f.jsx(Zl,{className:"h-4 w-4 flex-shrink-0"}),f.jsx("p",{className:"text-sm",children:u})]}),f.jsxs("div",{className:"flex justify-end gap-3 pt-2",children:[f.jsx("button",{type:"button",onClick:t,disabled:s,className:"px-4 py-2 text-sm font-medium rounded-md hover:bg-accent transition-colors disabled:opacity-50",children:"Cancel"}),f.jsx("button",{type:"button",onClick:r,disabled:s,className:Ge("px-4 py-2 text-sm font-medium rounded-md","bg-destructive text-destructive-foreground","hover:bg-destructive/90 transition-colors","disabled:opacity-50 disabled:cursor-not-allowed","flex items-center gap-2"),children:s?f.jsxs(f.Fragment,{children:[f.jsx(st,{className:"h-4 w-4 animate-spin"}),"Deleting..."]}):"Delete"})]})]})]})})]}):null}function Y3({folder:e,className:t,readOnly:r}){const[i,o]=S.useState(null),[s,u]=S.useState(null),d=ed(),p=fp(),h=mp(),y=async E=>{u(null);try{await d.mutateAsync({itemId:e.id,itemType:"folder",newName:E}),o(null)}catch(N){u(N instanceof Error?N.message:"Failed to rename folder")}},v=async E=>{u(null);try{await p.mutateAsync({itemId:e.id,itemType:"folder",targetFolderId:E}),o(null)}catch(N){u(N instanceof Error?N.message:"Failed to move folder")}},x=async()=>{u(null);try{await h.mutateAsync({itemId:e.id,itemType:"folder"}),o(null)}catch(E){u(E instanceof Error?E.message:"Failed to delete folder")}},b=()=>{o(null),u(null)};return f.jsxs(f.Fragment,{children:[f.jsxs("div",{className:Ge("group relative flex items-center gap-3 p-4 rounded-lg border bg-card hover:bg-accent transition-colors",t),children:[f.jsxs(Mn,{to:`/folder/${e.id}`,className:"flex items-center gap-3 flex-1 min-w-0 focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2 rounded-md",children:[f.jsx("div",{className:"flex-shrink-0",children:f.jsx(Qc,{className:"h-8 w-8 text-amber-500"})}),f.jsxs("div",{className:"min-w-0 flex-1",children:[f.jsx("p",{className:"font-medium truncate",children:e.name}),f.jsx("p",{className:"text-sm text-muted-foreground",children:"Folder"})]})]}),!r&&f.jsx("div",{className:"flex-shrink-0 md:opacity-0 md:group-hover:opacity-100 transition-opacity",children:f.jsx(zc,{itemId:e.id,itemName:e.name,itemType:"folder",onRename:()=>o("rename"),onMove:()=>o("move"),onDelete:()=>o("delete")})})]}),f.jsx(qp,{isOpen:i==="rename",onClose:b,onSubmit:y,currentName:e.name,itemType:"folder",isRenaming:d.isPending,error:s}),f.jsx(Zp,{isOpen:i==="move",onClose:b,onSubmit:v,itemName:e.name,itemType:"folder",currentFolderId:e.parentId,itemId:e.id,isMoving:p.isPending,error:s}),f.jsx($p,{isOpen:i==="delete",onClose:b,onConfirm:x,itemName:e.name,itemType:"folder",isDeleting:h.isPending,error:s})]})}function Sa(e,t){if(!e)return"Never";const r=e instanceof Date?e:"toDate"in e?e.toDate():e;return new Intl.DateTimeFormat("en-US",t??{month:"short",day:"numeric",year:"numeric"}).format(r)}function X3({status:e,lastSavedAt:t}){if(e==="idle"&&!t)return null;const r=i=>i.toLocaleTimeString(void 0,{hour:"numeric",minute:"2-digit"});return f.jsxs("div",{className:"flex items-center gap-1.5 text-xs text-muted-foreground",children:[e==="saving"&&f.jsxs(f.Fragment,{children:[f.jsx(st,{className:"h-3 w-3 animate-spin"}),f.jsx("span",{children:"Saving..."})]}),e==="saved"&&f.jsxs(f.Fragment,{children:[f.jsx(ya,{className:"h-3 w-3 text-green-500"}),f.jsx("span",{children:"Saved"})]}),e==="error"&&f.jsxs(f.Fragment,{children:[f.jsx(Ea,{className:"h-3 w-3 text-destructive"}),f.jsx("span",{className:"text-destructive",children:"Error saving"})]}),e==="idle"&&t&&f.jsxs("span",{children:["Last saved ",r(t)]})]})}function Q3({documentId:e,versions:t,currentVersion:r,activeVersion:i,isPublic:o=!1}){const[s,u]=S.useState(!1),d=S.useRef(null),p=Wc();S.useEffect(()=>{function x(E){d.current&&!d.current.contains(E.target)&&u(!1)}function b(E){E.key==="Escape"&&u(!1)}return s&&(document.addEventListener("mousedown",x),document.addEventListener("keydown",b)),()=>{document.removeEventListener("mousedown",x),document.removeEventListener("keydown",b)}},[s]);const h=i??r,y=r,v=x=>{u(!1);const b=o?"/public":"";p(x===r?`${b}/d/${e}`:`${b}/d/${e}/v/${x}`)};return f.jsxs("div",{className:"relative",ref:d,children:[f.jsxs("button",{onClick:()=>u(!s),className:"flex items-center gap-1.5 px-2 py-1 text-sm text-muted-foreground hover:text-foreground hover:bg-muted rounded transition-colors",children:[f.jsx(ok,{className:"h-4 w-4"}),f.jsxs("span",{children:["Version ",h," of ",y]})]}),s&&f.jsxs("div",{className:"absolute top-full left-0 mt-1 w-64 bg-popover border border-border rounded-lg shadow-lg z-50 py-1 max-h-64 overflow-y-auto",children:[f.jsx("button",{onClick:()=>v(r),className:`w-full text-left px-3 py-2 text-sm hover:bg-muted transition-colors ${h===r?"bg-muted font-medium":""}`,children:f.jsx("div",{className:"flex items-center justify-between",children:f.jsxs("span",{children:["Version ",r," (latest)"]})})}),t.map(x=>f.jsxs("button",{onClick:()=>v(x.versionNumber),className:`w-full text-left px-3 py-2 text-sm hover:bg-muted transition-colors ${h===x.versionNumber?"bg-muted font-medium":""}`,children:[f.jsxs("div",{className:"flex items-center justify-between",children:[f.jsxs("span",{children:["Version ",x.versionNumber]}),f.jsx("span",{className:"text-xs text-muted-foreground",children:Sa(x.createdAt)})]}),x.title&&f.jsx("div",{className:"text-xs text-muted-foreground truncate mt-0.5",children:x.title})]},x.versionNumber))]})]})}const J3=/[/\\:*?"<>|]/,W3=255,e5={month:"long",day:"numeric",year:"numeric"};function Ph({document:e,blocks:t,isOwner:r=!0,versions:i,activeVersion:o,isPublic:s}){const u=S.useContext(hp),[d,p]=S.useState(!1),[h,y]=S.useState(!1),[v,x]=S.useState(""),[b,E]=S.useState(null),N=S.useRef(null),C=ed();S.useEffect(()=>{d&&N.current&&(N.current.focus(),N.current.select())},[d]);const k=S.useCallback(()=>{r&&(x(e.title),E(null),p(!0))},[r,e.title]),M=S.useCallback(()=>{p(!1),E(null)},[]),O=S.useCallback(_=>{const X=_.trim();return X.length===0?"Name is required":X.length>W3?"Name must be 255 characters or less":J3.test(X)?'Name cannot contain / \\ : * ? " < > |':null},[]),B=S.useCallback(async()=>{const _=v.trim(),X=O(_);
73if(X){E(X);return}if(_===e.title){M();return}try{await C.mutateAsync({itemId:e.id,itemType:"document",newName:_}),p(!1),E(null)}catch{E("Failed to rename document")}},[v,O,e.title,e.id,M,C]),T=S.useCallback(_=>{_.key==="Enter"?(_.preventDefault(),B()):_.key==="Escape"&&(_.preventDefault(),M())},[B,M]),L=S.useCallback(async()=>{if(!t||t.length===0)return;const _=t.map(X=>X.content).join(` 74 75`);await navigator.clipboard.writeText(_),y(!0),setTimeout(()=>y(!1),2e3)},[t]),I=C.isPending;return f.jsxs("div",{className:"mb-8",children:[f.jsxs("div",{className:"flex items-center gap-3 mb-4",children:[d?f.jsxs("div",{className:"flex-1 min-w-0",children:[f.jsx("input",{ref:N,type:"text",value:v,onChange:_=>{x(_.target.value),E(null)},onKeyDown:T,onBlur:B,disabled:I,className:"w-full text-3xl md:text-4xl font-bold bg-transparent border-b-2 border-primary outline-none disabled:opacity-50",autoComplete:"off"}),b&&f.jsx("p",{className:"mt-1 text-sm text-destructive",children:b})]}):f.jsxs("h1",{className:r?"group text-3xl md:text-4xl font-bold cursor-pointer inline-flex items-center gap-2":"text-3xl md:text-4xl font-bold",onClick:r?k:void 0,children:[e.title,r&&f.jsx(Ow,{className:"h-5 w-5 text-muted-foreground opacity-0 group-hover:opacity-100 transition-opacity"})]}),e.visibility==="public"&&f.jsxs("span",{className:"inline-flex items-center gap-1 px-2 py-1 bg-primary/10 text-primary rounded-md text-sm",title:"This document is publicly accessible",children:[f.jsx(ql,{className:"h-4 w-4"}),r&&f.jsx("span",{children:"Public"})]}),u&&f.jsx(X3,{status:u.saveStatus,lastSavedAt:u.lastSavedAt})]}),f.jsxs("div",{className:"flex flex-wrap items-center gap-4 text-sm text-muted-foreground",children:[f.jsxs("div",{className:"flex items-center gap-1.5",children:[f.jsx(Lw,{className:"h-4 w-4"}),f.jsxs("span",{children:["Updated ",Sa(e.updatedAt,e5)]})]}),e.currentVersion!=null&&e.currentVersion>1&&f.jsx(Q3,{documentId:e.id,versions:i??[],currentVersion:e.currentVersion,activeVersion:o,isPublic:s}),e.metadata?.source&&f.jsx("div",{className:"flex items-center gap-1.5",children:f.jsx("span",{className:"px-2 py-0.5 bg-muted rounded text-xs",children:e.metadata.source})}),e.metadata?.tags&&e.metadata.tags.length>0&&f.jsxs("div",{className:"flex items-center gap-1.5",children:[f.jsx(Bw,{className:"h-4 w-4"}),f.jsx("div",{className:"flex gap-1",children:e.metadata.tags.map(_=>f.jsx("span",{className:"px-2 py-0.5 bg-muted rounded-full text-xs",children:_},_))})]}),t&&t.length>0&&f.jsx("button",{onClick:L,className:"flex items-center gap-1.5 hover:text-foreground transition-colors",title:"Copy all document text",children:h?f.jsxs(f.Fragment,{children:[f.jsx(ya,{className:"h-4 w-4 text-green-500"}),f.jsx("span",{className:"text-green-500",children:"Copied!"})]}):f.jsxs(f.Fragment,{children:[f.jsx($l,{className:"h-4 w-4"}),f.jsx("span",{children:"Copy all"})]})})]})]})}const t5="modulepreload",n5=function(e){return"/"+e},k0={},CE=function(t,r,i){let o=Promise.resolve();if(r&&r.length>0){let p=function(h){return Promise.all(h.map(y=>Promise.resolve(y).then(v=>({status:"fulfilled",value:v}),v=>({status:"rejected",reason:v}))))};document.getElementsByTagName("link");const u=document.querySelector("meta[property=csp-nonce]"),d=u?.nonce||u?.getAttribute("nonce");o=p(r.map(h=>{if(h=n5(h),h in k0)return;k0[h]=!0;const y=h.endsWith(".css"),v=y?'[rel="stylesheet"]':"";if(document.querySelector(`link[href="${h}"]${v}`))return;const x=document.createElement("link");if(x.rel=y?"stylesheet":t5,y||(x.as="script"),x.crossOrigin="",x.href=h,d&&x.setAttribute("nonce",d),document.head.appendChild(x),y)return new Promise((b,E)=>{x.addEventListener("load",b),x.addEventListener("error",()=>E(new Error(`Unable to preload CSS for ${h}`)))})}))}function s(u){const d=new Event("vite:preloadError",{cancelable:!0});if(d.payload=u,window.dispatchEvent(d),!d.defaultPrevented)throw u}return o.then(u=>{for(const d of u||[])d.status==="rejected"&&s(d.reason);return t().catch(s)})};function r5(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return S.useMemo(()=>i=>{t.forEach(o=>o(i))},t)}const Nd=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u";function Wl(e){const t=Object.prototype.toString.call(e);return t==="[object Window]"||t==="[object global]"}function Kp(e){return"nodeType"in e}function In(e){var t,r;return e?Wl(e)?e:Kp(e)&&(t=(r=e.ownerDocument)==null?void 0:r.defaultView)!=null?t:window:window}function Gp(e){const{Document:t}=In(e);return e instanceof t}function Ls(e){return Wl(e)?!1:e instanceof In(e).HTMLElement}function jE(e){return e instanceof In(e).SVGElement}function eo(e){return e?Wl(e)?e.document:Kp(e)?Gp(e)?e:Ls(e)||jE(e)?e.ownerDocument:document:document:document}const Vr=Nd?S.useLayoutEffect:S.useEffect;function Yp(e){const t=S.useRef(e);return Vr(()=>{t.current=e}),S.useCallback(function(){for(var r=arguments.length,i=new Array(r),o=0;o<r;o++)i[o]=arguments[o];return t.current==null?void 0:t.current(...i)},[])}function a5(){const e=S.useRef(null),t=S.useCallback((i,o)=>{e.current=setInterval(i,o)},[]),r=S.useCallback(()=>{e.current!==null&&(clearInterval(e.current),e.current=null)},[]);return[t,r]}function Es(e,t){t===void 0&&(t=[e]);const r=S.useRef(e);return Vr(()=>{r.current!==e&&(r.current=e)},t),r}function Bs(e,t){const r=S.useRef();return S.useMemo(()=>{const i=e(r.current);return r.current=i,i},[...t])}function Zc(e){const t=Yp(e),r=S.useRef(null),i=S.useCallback(o=>{o!==r.current&&t?.(o,r.current),r.current=o},[]);return[r,i]}function Vh(e){const t=S.useRef();return S.useEffect(()=>{t.current=e},[e]),t.current}let rh={};function Fs(e,t){return S.useMemo(()=>
75{if(t)return t;const r=rh[e]==null?0:rh[e]+1;return rh[e]=r,e+"-"+r},[e,t])}function kE(e){return function(t){for(var r=arguments.length,i=new Array(r>1?r-1:0),o=1;o<r;o++)i[o-1]=arguments[o];return i.reduce((s,u)=>{const d=Object.entries(u);for(const[p,h]of d){const y=s[p];y!=null&&(s[p]=y+e*h)}return s},{...t})}}const Pl=kE(1),Ns=kE(-1);function i5(e){return"clientX"in e&&"clientY"in e}function Xp(e){if(!e)return!1;const{KeyboardEvent:t}=In(e.target);return t&&e instanceof t}function l5(e){if(!e)return!1;const{TouchEvent:t}=In(e.target);return t&&e instanceof t}function Hh(e){if(l5(e)){if(e.touches&&e.touches.length){const{clientX:t,clientY:r}=e.touches[0];return{x:t,y:r}}else if(e.changedTouches&&e.changedTouches.length){const{clientX:t,clientY:r}=e.changedTouches[0];return{x:t,y:r}}}return i5(e)?{x:e.clientX,y:e.clientY}:null}const Cs=Object.freeze({Translate:{toString(e){if(!e)return;const{x:t,y:r}=e;return"translate3d("+(t?Math.round(t):0)+"px, "+(r?Math.round(r):0)+"px, 0)"}},Scale:{toString(e){if(!e)return;const{scaleX:t,scaleY:r}=e;return"scaleX("+t+") scaleY("+r+")"}},Transform:{toString(e){if(e)return[Cs.Translate.toString(e),Cs.Scale.toString(e)].join(" ")}},Transition:{toString(e){let{property:t,duration:r,easing:i}=e;return t+" "+r+"ms "+i}}}),A0="a,frame,iframe,input:not([type=hidden]):not(:disabled),select:not(:disabled),textarea:not(:disabled),button:not(:disabled),*[tabindex]";function o5(e){return e.matches(A0)?e:e.querySelector(A0)}const s5={display:"none"};function u5(e){let{id:t,value:r}=e;return $e.createElement("div",{id:t,style:s5},r)}function c5(e){let{id:t,announcement:r,ariaLiveType:i="assertive"}=e;const o={position:"fixed",top:0,left:0,width:1,height:1,margin:-1,border:0,padding:0,overflow:"hidden",clip:"rect(0 0 0 0)",clipPath:"inset(100%)",whiteSpace:"nowrap"};return $e.createElement("div",{id:t,style:o,role:"status","aria-live":i,"aria-atomic":!0},r)}function d5(){const[e,t]=S.useState("");return{announce:S.useCallback(i=>{i!=null&&t(i)},[]),announcement:e}}const AE=S.createContext(null);function f5(e){const t=S.useContext(AE);S.useEffect(()=>{if(!t)throw new Error("useDndMonitor must be used within a children of <DndContext>");return t(e)},[e,t])}function m5(){const[e]=S.useState(()=>new Set),t=S.useCallback(i=>(e.add(i),()=>e.delete(i)),[e]);return[S.useCallback(i=>{let{type:o,event:s}=i;e.forEach(u=>{var d;return(d=u[o])==null?void 0:d.call(u,s)})},[e]),t]}const h5={draggable:` 76 To pick up a draggable item, press the space bar. 77 While dragging, use the arrow keys to move the item. 78 Press space again to drop the item in its new position, or press escape to cancel. 79 `},p5={onDragStart(e){let{active:t}=e;return"Picked up draggable item "+t.id+"."},onDragOver(e){let{active:t,over:r}=e;return r?"Draggable item "+t.id+" was moved over droppable area "+r.id+".":"Draggable item "+t.id+" is no longer over a droppable area."},onDragEnd(e){let{active:t,over:r}=e;return r?"Draggable item "+t.id+" was dropped over droppable area "+r.id:"Draggable item "+t.id+" was dropped."},onDragCancel(e){let{active:t}=e;return"Dragging was cancelled. Draggable item "+t.id+" was dropped."}};function g5(e){let{announcements:t=p5,container:r,hiddenTextDescribedById:i,screenReaderInstructions:o=h5}=e;const{announce:s,announcement:u}=d5(),d=Fs("DndLiveRegion"),[p,h]=S.useState(!1);if(S.useEffect(()=>{h(!0)},[]),f5(S.useMemo(()=>({onDragStart(v){let{active:x}=v;s(t.onDragStart({active:x}))},onDragMove(v){let{active:x,over:b}=v;t.onDragMove&&s(t.onDragMove({active:x,over:b}))},onDragOver(v){let{active:x,over:b}=v;s(t.onDragOver({active:x,over:b}))},onDragEnd(v){let{active:x,over:b}=v;s(t.onDragEnd({active:x,over:b}))},onDragCancel(v){let{active:x,over:b}=v;s(t.onDragCancel({active:x,over:b}))}}),[s,t])),!p)return null;const y=$e.createElement($e.Fragment,null,$e.createElement(u5,{id:i,value:o.draggable}),$e.createElement(c5,{id:d,announcement:u}));return r?Ai.createPortal(y,r):y}var $t;(function(e){e.DragStart="dragStart",e.DragMove="dragMove",e.DragEnd="dragEnd",e.DragCancel="dragCancel",e.DragOver="dragOver",e.RegisterDroppable="registerDroppable",e.SetDroppableDisabled="setDroppableDisabled",e.UnregisterDroppable="unregisterDroppable"})($t||($t={}));function $c(){}function T0(e,t){return S.useMemo(()=>({sensor:e,options:t??{}}),[e,t])}function y5(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return S.useMemo(()=>[...t].filter(i=>i!=null),[...t])}const Tr=Object.freeze({x:0,y:0});function TE(e,t){return Math.sqrt(Math.pow(e.x-t.x,2)+Math.pow(e.y-t.y,2))}function _E(e,t){let{data:{value:r}}=e,{data:{value:i}}=t;return r-i}function v5(e,t){let{data:{value:r}}=e,{data:{value:i}}=t;return i-r}function _0(e){let{left:t,top:r,height:i,width:o}=e;return[{x:t,y:r},{x:t+o,y:r},{x:t,y:r+i},{x:t+o,y:r+i}]}function DE(e,t){if(!e||e.length===0)return null;const[r]=e;return r[t]}function D0(e,t,r){return t===void 0&&(t=e.left),r===void 0&&(r=e.top),{x:t+e.width*.5,y:r+e.height*.5}}const b5=e=>{let{collisionRect:t,droppableRects:r,droppableContainers:i}=e;const o=D0(t,t.left,t.top),s=[];for(const u of i){const{id:d}=u,p=r.get(d);if(p){const h=TE(D0(p),o);s.push({id:d,data:{droppableContainer:u,value:h}})}}return s.sort(_E)},x5=e=>{let{collisionRect:t,droppableRects:r,droppableContainers:i}=e;const o=_0(t),s=[];for(const u of i){const{id:d}=u,p=r.get(d);if(p){const h=_0(p),y=o.reduce((x,b,E)=>x+TE(h[E],b),0),v=Number((y/4).toFixed(4));s.push({id:d,data:{droppableContainer:u,value:v}})}}return s.sort(_E)};function w5(e,t){const r=Math.max(t.top,e.top),i=Math.max(t.left,e.left),o=Math.min(t.left+t.width,e.left+e.width),s=Math.min(t.top+t.height,e.top+e.height),u=o-i,d=s-r;if(i<o&&r<s){const p=t.width*t.height,h=e.width*e.height,y=u*d,v=y/(p+h-y);return Number(v.toFixed(4))}return 0}const S5=e=>{let{collisionRect:t,droppableRects:r,droppableContainers:i}=e;const o=[];for(const s of i){const{id:u}=s,d=r.get(u);if(d){const p=w5(d,t);p>0&&o.push({id:u,data:{droppableContainer:s,value:p}})}}return o.sort(v5)};function E5(e,t,r){return{...e,scaleX:t&&r?t.width/r.width:1,scaleY:t&&r?t.height/r.height:1}}function RE(e,t){return e&&t?{x:e.left-t.left,y:e.top-t.top}:Tr}function N5(e){return function(r){for(var i=arguments.length,o=new Array(i>1?i-1:0),s=1;s<i;s++)o[s-1]=arguments[s];return o.reduce((u,d)=>({...u,top:u.top+e*d.y,bottom:u.bottom+e*d.y,left:u.left+e*d.x,right:u.right+e*d.x}),{...r})}}const C5=N5(1);function j5(e){if(e.startsWith("matrix3d(")){const t=e.slice(9,-1).split(/, /);return{x:+t[12],y:+t[13],scaleX:+t[0],scaleY:+t[5]}}else if(e.startsWith("matrix(")){const t=e.slice(7,-1).split(/, /);return{x:+t[4],y:+t[5],scaleX:+t[0],scaleY:+t[3]}}return null}function k5(e,t,r){const i=j5(t);if(!i)return e;const{scaleX:o,scaleY:s,x:u,y:d}=i,p=e.left-u-(1-o)*parseFloat(r),h=e.top-d-(1-s)*parseFloat(r.slice(r.indexOf(" ")+1)),y=o?e.width/o:e.width,v=s?e.height/s:e.height;return{width:y,height:v,top:h,right:p+y,bottom:h+v,left:p}}const A5={ignoreTransform:!1};function to(e,t){t===void 0&&(t=A5);let r=e.getBoundingClientRect();if(t.ignoreTransform){const{transform:h,transformOrigin:y}=In(e).getComputedStyle(e);h&&(r=k5(r,h,y))}const{top:i,left:o,width:s,height:u,bottom:d,right:p}=r;return{top:i,left:o,width:s,height:u,bottom:d,right:p}}function R0(e){return to(e,{ignoreTransform:!0})}
79function T5(e){const t=e.innerWidth,r=e.innerHeight;return{top:0,left:0,right:t,bottom:r,width:t,height:r}}function _5(e,t){return t===void 0&&(t=In(e).getComputedStyle(e)),t.position==="fixed"}function D5(e,t){t===void 0&&(t=In(e).getComputedStyle(e));const r=/(auto|scroll|overlay)/;return["overflow","overflowX","overflowY"].some(o=>{const s=t[o];return typeof s=="string"?r.test(s):!1})}function Cd(e,t){const r=[];function i(o){if(t!=null&&r.length>=t||!o)return r;if(Gp(o)&&o.scrollingElement!=null&&!r.includes(o.scrollingElement))return r.push(o.scrollingElement),r;if(!Ls(o)||jE(o)||r.includes(o))return r;const s=In(e).getComputedStyle(o);return o!==e&&D5(o,s)&&r.push(o),_5(o,s)?r:i(o.parentNode)}return e?i(e):r}function OE(e){const[t]=Cd(e,1);return t??null}function ah(e){return!Nd||!e?null:Wl(e)?e:Kp(e)?Gp(e)||e===eo(e).scrollingElement?window:Ls(e)?e:null:null}function zE(e){return Wl(e)?e.scrollX:e.scrollLeft}function ME(e){return Wl(e)?e.scrollY:e.scrollTop}function qh(e){return{x:zE(e),y:ME(e)}}var en;(function(e){e[e.Forward=1]="Forward",e[e.Backward=-1]="Backward"})(en||(en={}));function LE(e){return!Nd||!e?!1:e===document.scrollingElement}function BE(e){const t={x:0,y:0},r=LE(e)?{height:window.innerHeight,width:window.innerWidth}:{height:e.clientHeight,width:e.clientWidth},i={x:e.scrollWidth-r.width,y:e.scrollHeight-r.height},o=e.scrollTop<=t.y,s=e.scrollLeft<=t.x,u=e.scrollTop>=i.y,d=e.scrollLeft>=i.x;return{isTop:o,isLeft:s,isBottom:u,isRight:d,maxScroll:i,minScroll:t}}const R5={x:.2,y:.2};function O5(e,t,r,i,o){let{top:s,left:u,right:d,bottom:p}=r;i===void 0&&(i=10),o===void 0&&(o=R5);const{isTop:h,isBottom:y,isLeft:v,isRight:x}=BE(e),b={x:0,y:0},E={x:0,y:0},N={height:t.height*o.y,width:t.width*o.x};return!h&&s<=t.top+N.height?(b.y=en.Backward,E.y=i*Math.abs((t.top+N.height-s)/N.height)):!y&&p>=t.bottom-N.height&&(b.y=en.Forward,E.y=i*Math.abs((t.bottom-N.height-p)/N.height)),!x&&d>=t.right-N.width?(b.x=en.Forward,E.x=i*Math.abs((t.right-N.width-d)/N.width)):!v&&u<=t.left+N.width&&(b.x=en.Backward,E.x=i*Math.abs((t.left+N.width-u)/N.width)),{direction:b,speed:E}}function z5(e){if(e===document.scrollingElement){const{innerWidth:s,innerHeight:u}=window;return{top:0,left:0,right:s,bottom:u,width:s,height:u}}const{top:t,left:r,right:i,bottom:o}=e.getBoundingClientRect();return{top:t,left:r,right:i,bottom:o,width:e.clientWidth,height:e.clientHeight}}function FE(e){return e.reduce((t,r)=>Pl(t,qh(r)),Tr)}function M5(e){return e.reduce((t,r)=>t+zE(r),0)}function L5(e){return e.reduce((t,r)=>t+ME(r),0)}function B5(e,t){if(t===void 0&&(t=to),!e)return;const{top:r,left:i,bottom:o,right:s}=t(e);OE(e)&&(o<=0||s<=0||r>=window.innerHeight||i>=window.innerWidth)&&e.scrollIntoView({block:"center",inline:"center"})}const F5=[["x",["left","right"],M5],["y",["top","bottom"],L5]];class Qp{constructor(t,r){this.rect=void 0,this.width=void 0,this.height=void 0,this.top=void 0,this.bottom=void 0,this.right=void 0,this.left=void 0;const i=Cd(r),o=FE(i);this.rect={...t},this.width=t.width,this.height=t.height;for(const[s,u,d]of F5)for(const p of u)Object.defineProperty(this,p,{get:()=>{const h=d(i),y=o[s]-h;return this.rect[p]+y},enumerable:!0});Object.defineProperty(this,"rect",{enumerable:!1})}}class os{constructor(t){this.target=void 0,this.listeners=[],this.removeAll=()=>{this.listeners.forEach(r=>{var i;return(i=this.target)==null?void 0:i.removeEventListener(...r)})},this.target=t}add(t,r,i){var o;(o=this.target)==null||o.addEventListener(t,r,i),this.listeners.push([t,r,i])}}function I5(e){const{EventTarget:t}=In(e);return e instanceof t?e:eo(e)}function ih(e,t){const r=Math.abs(e.x),i=Math.abs(e.y);return typeof t=="number"?Math.sqrt(r**2+i**2)>t:"x"in t&&"y"in t?r>t.x&&i>t.y:"x"in t?r>t.x:"y"in t?i>t.y:!1}var hr;(function(e){e.Click="click",e.DragStart="dragstart",e.Keydown="keydown",e.ContextMenu="contextmenu",e.Resize="resize",e.SelectionChange="selectionchange",e.VisibilityChange="visibilitychange"})(hr||(hr={}));function O0(e){e.preventDefault()}function U5(e){e.stopPropagation()}var Ze;(function(e){e.Space="Space",e.Down="ArrowDown",e.Right="ArrowRight",e.Left="ArrowLeft",e.Up="ArrowUp",e.Esc="Escape",e.Enter="Enter",e.Tab="Tab"})(Ze||(Ze={}));const IE={start:[Ze.Space,Ze.Enter],cancel:[Ze.Esc],end:[Ze.Space,Ze.Enter,Ze.Tab]},P5=(e,t)=>{let{currentCoordinates:r}=t;switch(e.code){case Ze.Right:return{...r,x:r.x+25};case Ze.Left:return{...r,x:r.x-25};case Ze.Down:return{...r,y:r.y+25};case Ze.Up:return{...r,y:r.y-25}}};class Jp{constructor(t){this.props=void 0,this.autoScrollEnabled=!1,this.referenceCoordinates=void 0,this.listeners=void 0,this.windowListeners=void 0,this.props=t;const{event:{target:r}}=t;this.props=t,this.listeners=new os(eo(r)),this.windowListeners=new os(In(r)),this.handleKeyDown=this.handleKeyDown.bind(this),this.handleCancel=this.handleCancel.bind(this),this.attach()}attach(){this.handleStart(),this.windowListeners.add(hr.Resize,this.handleCancel),this.windowListeners.add(hr.VisibilityChange,this.handleCancel),setTimeout(()=>this.listeners.add(hr.Keydown,this.handleKeyDown))}handleStart(){const{activeNode:t,onStart:r}=this.props,i=t.node.current;i&&B5(i),r(Tr)}handleKeyDown(t){if(Xp(t)){const{active:r,context:i,options:o}=this.props,{keyboardCodes:s=IE,coordinateGetter:u=P5,scrollBehavior:d="smooth"}
79=o,{code:p}=t;if(s.end.includes(p)){this.handleEnd(t);return}if(s.cancel.includes(p)){this.handleCancel(t);return}const{collisionRect:h}=i.current,y=h?{x:h.left,y:h.top}:Tr;this.referenceCoordinates||(this.referenceCoordinates=y);const v=u(t,{active:r,context:i.current,currentCoordinates:y});if(v){const x=Ns(v,y),b={x:0,y:0},{scrollableAncestors:E}=i.current;for(const N of E){const C=t.code,{isTop:k,isRight:M,isLeft:O,isBottom:B,maxScroll:T,minScroll:L}=BE(N),I=z5(N),_={x:Math.min(C===Ze.Right?I.right-I.width/2:I.right,Math.max(C===Ze.Right?I.left:I.left+I.width/2,v.x)),y:Math.min(C===Ze.Down?I.bottom-I.height/2:I.bottom,Math.max(C===Ze.Down?I.top:I.top+I.height/2,v.y))},X=C===Ze.Right&&!M||C===Ze.Left&&!O,V=C===Ze.Down&&!B||C===Ze.Up&&!k;if(X&&_.x!==v.x){const G=N.scrollLeft+x.x,$=C===Ze.Right&&G<=T.x||C===Ze.Left&&G>=L.x;if($&&!x.y){N.scrollTo({left:G,behavior:d});return}$?b.x=N.scrollLeft-G:b.x=C===Ze.Right?N.scrollLeft-T.x:N.scrollLeft-L.x,b.x&&N.scrollBy({left:-b.x,behavior:d});break}else if(V&&_.y!==v.y){const G=N.scrollTop+x.y,$=C===Ze.Down&&G<=T.y||C===Ze.Up&&G>=L.y;if($&&!x.x){N.scrollTo({top:G,behavior:d});return}$?b.y=N.scrollTop-G:b.y=C===Ze.Down?N.scrollTop-T.y:N.scrollTop-L.y,b.y&&N.scrollBy({top:-b.y,behavior:d});break}}this.handleMove(t,Pl(Ns(v,this.referenceCoordinates),b))}}}handleMove(t,r){const{onMove:i}=this.props;t.preventDefault(),i(r)}handleEnd(t){const{onEnd:r}=this.props;t.preventDefault(),this.detach(),r()}handleCancel(t){const{onCancel:r}=this.props;t.preventDefault(),this.detach(),r()}detach(){this.listeners.removeAll(),this.windowListeners.removeAll()}}Jp.activators=[{eventName:"onKeyDown",handler:(e,t,r)=>{let{keyboardCodes:i=IE,onActivation:o}=t,{active:s}=r;const{code:u}=e.nativeEvent;if(i.start.includes(u)){const d=s.activatorNode.current;return d&&e.target!==d?!1:(e.preventDefault(),o?.({event:e.nativeEvent}),!0)}return!1}}];function z0(e){return!!(e&&"distance"in e)}function M0(e){return!!(e&&"delay"in e)}class Wp{constructor(t,r,i){var o;i===void 0&&(i=I5(t.event.target)),this.props=void 0,this.events=void 0,this.autoScrollEnabled=!0,this.document=void 0,this.activated=!1,this.initialCoordinates=void 0,this.timeoutId=null,this.listeners=void 0,this.documentListeners=void 0,this.windowListeners=void 0,this.props=t,this.events=r;const{event:s}=t,{target:u}=s;this.props=t,this.events=r,this.document=eo(u),this.documentListeners=new os(this.document),this.listeners=new os(i),this.windowListeners=new os(In(u)),this.initialCoordinates=(o=Hh(s))!=null?o:Tr,this.handleStart=this.handleStart.bind(this),this.handleMove=this.handleMove.bind(this),this.handleEnd=this.handleEnd.bind(this),this.handleCancel=this.handleCancel.bind(this),this.handleKeydown=this.handleKeydown.bind(this),this.removeTextSelection=this.removeTextSelection.bind(this),this.attach()}attach(){const{events:t,props:{options:{activationConstraint:r,bypassActivationConstraint:i}}}=this;if(this.listeners.add(t.move.name,this.handleMove,{passive:!1}),this.listeners.add(t.end.name,this.handleEnd),t.cancel&&this.listeners.add(t.cancel.name,this.handleCancel),this.windowListeners.add(hr.Resize,this.handleCancel),this.windowListeners.add(hr.DragStart,O0),this.windowListeners.add(hr.VisibilityChange,this.handleCancel),this.windowListeners.add(hr.ContextMenu,O0),this.documentListeners.add(hr.Keydown,this.handleKeydown),r){if(i!=null&&i({event:this.props.event,activeNode:this.props.activeNode,options:this.props.options}))return this.handleStart();if(M0(r)){this.timeoutId=setTimeout(this.handleStart,r.delay),this.handlePending(r);return}if(z0(r)){this.handlePending(r);return}}this.handleStart()}detach(){this.listeners.removeAll(),this.windowListeners.removeAll(),setTimeout(this.documentListeners.removeAll,50),this.timeoutId!==null&&(clearTimeout(this.timeoutId),this.timeoutId=null)}handlePending(t,r){const{active:i,onPending:o}=this.props;o(i,t,this.initialCoordinates,r)}handleStart(){const{initialCoordinates:t}=this,{onStart:r}=this.props;t&&(this.activated=!0,this.documentListeners.add(hr.Click,U5,{capture:!0}),this.removeTextSelection(),this.documentListeners.add(hr.SelectionChange,this.removeTextSelection),r(t))}handleMove(t){var r;const{activated:i,initialCoordinates:o,props:s}=this,{onMove:u,options:{activationConstraint:d}}=s;if(!o)return;const p=(r=Hh(t))!=null?r:Tr,h=Ns(o,p);if(!i&&d){if(z0(d)){if(d.tolerance!=null&&ih(h,d.tolerance))return this.handleCancel();if(ih(h,d.distance))return this.handleStart()}if(M0(d)&&ih(h,d.tolerance))return this.handleCancel();this.handlePending(d,h);return}t.cancelable&&t.preventDefault(),u(p)}handleEnd(){const{onAbort:t,onEnd:r}=this.props;this.detach(),this.activated||t(this.props.active),r()}handleCancel(){const{onAbort:t,onCancel:r}=this.props;this.detach(),this.activated||t(this.props.active),r()}handleKeydown(t){t.code===Ze.Esc&&this.handleCancel()}removeTextSelection(){var t;(t=this.document.getSelection())==null||t.removeAllRanges()}}const V5={cancel:{name:"pointercancel"},move:{name:"pointermove"},end:{name:"pointerup"}};class eg extends Wp{constructor(t){const{event:r}=t,i=eo(r.target);super(t,V5,i)}}eg.activators=[{eventName:"onPointerDown",handler:(e,t)=>{let{nativeEvent:r}=e,{onActivation:i}=t;return!r.isPrimary||r.button!==0?!1:(i?.({event:r}),!0)}}];const H5={move:{name:"mousemove"},end:{name:"mouseup"}};var Zh;(function(e){e[e.RightClick=2]="RightClick"})(Zh||(Zh={}));class q5 extends Wp{constructor(t){super(t,H5,eo(t.event.target))}}q5.activators=[{eventName:"onMouseDown",handler:(e,t)=>{let{nativeEvent:r}=e,{onActivation:i}=t;return r.button===Zh.RightClick?!1:(i?.({event:r}),!0)}}];const lh={cancel:{name:"touchcancel"},move:{name:"touchmove"},end:{name:"touchend"}};class Z5 extends Wp{constructor(t){super(t,lh)}static setup(){return window.addEventListener(lh.move.name,t,{capture:!1,passive:!1}),function(){window.removeEventListener(lh.move.name,t)};function t(){}}}Z5.activators=[{eventName:"onTouchStart",handler:(e,t)=>{let{nativeEvent:r}=e,{onActivation:i}=t;const{touches:o}=r;return o.length>1?!1:(i?.({event:r}),!0)}}];var ss;(function(e){e[e.Pointer=0]="Pointer",e[e.DraggableRect=1]="DraggableRect"})(ss||(ss={}));var Kc;(function(e){e[e.TreeOrder=0]="TreeOrder",e[e.ReversedTreeOrder=1]="Rever
79sedTreeOrder"})(Kc||(Kc={}));function $5(e){let{acceleration:t,activator:r=ss.Pointer,canScroll:i,draggingRect:o,enabled:s,interval:u=5,order:d=Kc.TreeOrder,pointerCoordinates:p,scrollableAncestors:h,scrollableAncestorRects:y,delta:v,threshold:x}=e;const b=G5({delta:v,disabled:!s}),[E,N]=a5(),C=S.useRef({x:0,y:0}),k=S.useRef({x:0,y:0}),M=S.useMemo(()=>{switch(r){case ss.Pointer:return p?{top:p.y,bottom:p.y,left:p.x,right:p.x}:null;case ss.DraggableRect:return o}},[r,o,p]),O=S.useRef(null),B=S.useCallback(()=>{const L=O.current;if(!L)return;const I=C.current.x*k.current.x,_=C.current.y*k.current.y;L.scrollBy(I,_)},[]),T=S.useMemo(()=>d===Kc.TreeOrder?[...h].reverse():h,[d,h]);S.useEffect(()=>{if(!s||!h.length||!M){N();return}for(const L of T){if(i?.(L)===!1)continue;const I=h.indexOf(L),_=y[I];if(!_)continue;const{direction:X,speed:V}=O5(L,_,M,t,x);for(const G of["x","y"])b[G][X[G]]||(V[G]=0,X[G]=0);if(V.x>0||V.y>0){N(),O.current=L,E(B,u),C.current=V,k.current=X;return}}C.current={x:0,y:0},k.current={x:0,y:0},N()},[t,B,i,N,s,u,JSON.stringify(M),JSON.stringify(b),E,h,T,y,JSON.stringify(x)])}const K5={x:{[en.Backward]:!1,[en.Forward]:!1},y:{[en.Backward]:!1,[en.Forward]:!1}};function G5(e){let{delta:t,disabled:r}=e;const i=Vh(t);return Bs(o=>{if(r||!i||!o)return K5;const s={x:Math.sign(t.x-i.x),y:Math.sign(t.y-i.y)};return{x:{[en.Backward]:o.x[en.Backward]||s.x===-1,[en.Forward]:o.x[en.Forward]||s.x===1},y:{[en.Backward]:o.y[en.Backward]||s.y===-1,[en.Forward]:o.y[en.Forward]||s.y===1}}},[r,t,i])}function Y5(e,t){const r=t!=null?e.get(t):void 0,i=r?r.node.current:null;return Bs(o=>{var s;return t==null?null:(s=i??o)!=null?s:null},[i,t])}function X5(e,t){return S.useMemo(()=>e.reduce((r,i)=>{const{sensor:o}=i,s=o.activators.map(u=>({eventName:u.eventName,handler:t(u.handler,i)}));return[...r,...s]},[]),[e,t])}var js;(function(e){e[e.Always=0]="Always",e[e.BeforeDragging=1]="BeforeDragging",e[e.WhileDragging=2]="WhileDragging"})(js||(js={}));var $h;(function(e){e.Optimized="optimized"})($h||($h={}));const L0=new Map;function Q5(e,t){let{dragging:r,dependencies:i,config:o}=t;const[s,u]=S.useState(null),{frequency:d,measure:p,strategy:h}=o,y=S.useRef(e),v=C(),x=Es(v),b=S.useCallback(function(k){k===void 0&&(k=[]),!x.current&&u(M=>M===null?k:M.concat(k.filter(O=>!M.includes(O))))},[x]),E=S.useRef(null),N=Bs(k=>{if(v&&!r)return L0;if(!k||k===L0||y.current!==e||s!=null){const M=new Map;for(let O of e){if(!O)continue;if(s&&s.length>0&&!s.includes(O.id)&&O.rect.current){M.set(O.id,O.rect.current);continue}const B=O.node.current,T=B?new Qp(p(B),B):null;O.rect.current=T,T&&M.set(O.id,T)}return M}return k},[e,s,r,v,p]);return S.useEffect(()=>{y.current=e},[e]),S.useEffect(()=>{v||b()},[r,v]),S.useEffect(()=>{s&&s.length>0&&u(null)},[JSON.stringify(s)]),S.useEffect(()=>{v||typeof d!="number"||E.current!==null||(E.current=setTimeout(()=>{b(),E.current=null},d))},[d,v,b,...i]),{droppableRects:N,measureDroppableContainers:b,measuringScheduled:s!=null};function C(){switch(h){case js.Always:return!1;case js.BeforeDragging:return r;default:return!r}}}function UE(e,t){return Bs(r=>e?r||(typeof t=="function"?t(e):e):null,[t,e])}function J5(e,t){return UE(e,t)}function W5(e){let{callback:t,disabled:r}=e;const i=Yp(t),o=S.useMemo(()=>{if(r||typeof window>"u"||typeof window.MutationObserver>"u")return;const{MutationObserver:s}=window;return new s(i)},[i,r]);return S.useEffect(()=>()=>o?.disconnect(),[o]),o}function jd(e){let{callback:t,disabled:r}=e;const i=Yp(t),o=S.useMemo(()=>{if(r||typeof window>"u"||typeof window.ResizeObserver>"u")return;const{ResizeObserver:s}=window;return new s(i)},[r]);return S.useEffect(()=>()=>o?.disconnect(),[o]),o}function eL(e){return new Qp(to(e),e)}function B0(e,t,r){t===void 0&&(t=eL);const[i,o]=S.useState(null);function s(){o(p=>{if(!e)return null;if(e.isConnected===!1){var h;return(h=p??r)!=null?h:null}const y=t(e);return JSON.stringify(p)===JSON.stringify(y)?p:y})}const u=W5({callback(p){if(e)for(const h of p){const{type:y,target:v}=h;if(y==="childList"&&v instanceof HTMLElement&&v.contains(e)){s();break}}}}),d=jd({callback:s});return Vr(()=>{s(),e?(d?.observe(e),u?.observe(document.body,{childList:!0,subtree:!0})):(d?.disconnect(),u?.disconnect())},[e]),i}function tL(e){const t=UE(e);return RE(e,t)}const F0=[];function nL(e){const t=S.useRef(e),r=Bs(i=>e?i&&i!==F0&&e&&t.current&&e.parentNode===t.current.parentNode?i:Cd(e):F0,[e]);return S.useEffect(()=>{t.current=e},[e]),r}function rL(e){const[t,r]=S.useState(null),i=S.useRef(e),o=S.useCallback(s=>{const u=ah(s.target);u&&r(d=>d?(d.set(u,qh(u)),new Map(d)):null)},[]);return S.useEffect(()=>
79{const s=i.current;if(e!==s){u(s);const d=e.map(p=>{const h=ah(p);return h?(h.addEventListener("scroll",o,{passive:!0}),[h,qh(h)]):null}).filter(p=>p!=null);r(d.length?new Map(d):null),i.current=e}return()=>{u(e),u(s)};function u(d){d.forEach(p=>{const h=ah(p);h?.removeEventListener("scroll",o)})}},[o,e]),S.useMemo(()=>e.length?t?Array.from(t.values()).reduce((s,u)=>Pl(s,u),Tr):FE(e):Tr,[e,t])}function I0(e,t){t===void 0&&(t=[]);const r=S.useRef(null);return S.useEffect(()=>{r.current=null},t),S.useEffect(()=>{const i=e!==Tr;i&&!r.current&&(r.current=e),!i&&r.current&&(r.current=null)},[e]),r.current?Ns(e,r.current):Tr}function aL(e){S.useEffect(()=>{if(!Nd)return;const t=e.map(r=>{let{sensor:i}=r;return i.setup==null?void 0:i.setup()});return()=>{for(const r of t)r?.()}},e.map(t=>{let{sensor:r}=t;return r}))}function iL(e,t){return S.useMemo(()=>e.reduce((r,i)=>{let{eventName:o,handler:s}=i;return r[o]=u=>{s(u,t)},r},{}),[e,t])}function PE(e){return S.useMemo(()=>e?T5(e):null,[e])}const U0=[];function lL(e,t){t===void 0&&(t=to);const[r]=e,i=PE(r?In(r):null),[o,s]=S.useState(U0);function u(){s(()=>e.length?e.map(p=>LE(p)?i:new Qp(t(p),p)):U0)}const d=jd({callback:u});return Vr(()=>{d?.disconnect(),u(),e.forEach(p=>d?.observe(p))},[e]),o}function oL(e){if(!e)return null;if(e.children.length>1)return e;const t=e.children[0];return Ls(t)?t:e}function sL(e){let{measure:t}=e;const[r,i]=S.useState(null),o=S.useCallback(h=>{for(const{target:y}of h)if(Ls(y)){i(v=>{const x=t(y);return v?{...v,width:x.width,height:x.height}:x});break}},[t]),s=jd({callback:o}),u=S.useCallback(h=>{const y=oL(h);s?.disconnect(),y&&s?.observe(y),i(y?t(y):null)},[t,s]),[d,p]=Zc(u);return S.useMemo(()=>({nodeRef:d,rect:r,setRef:p}),[r,d,p])}const uL=[{sensor:eg,options:{}},{sensor:Jp,options:{}}],cL={current:{}},Sc={draggable:{measure:R0},droppable:{measure:R0,strategy:js.WhileDragging,frequency:$h.Optimized},dragOverlay:{measure:to}};class us extends Map{get(t){var r;return t!=null&&(r=super.get(t))!=null?r:void 0}toArray(){return Array.from(this.values())}getEnabled(){return this.toArray().filter(t=>{let{disabled:r}=t;return!r})}getNodeFor(t){var r,i;return(r=(i=this.get(t))==null?void 0:i.node.current)!=null?r:void 0}}const dL={activatorEvent:null,active:null,activeNode:null,activeNodeRect:null,collisions:null,containerNodeRect:null,draggableNodes:new Map,droppableRects:new Map,droppableContainers:new us,over:null,dragOverlay:{nodeRef:{current:null},rect:null,setRef:$c},scrollableAncestors:[],scrollableAncestorRects:[],measuringConfiguration:Sc,measureDroppableContainers:$c,windowRect:null,measuringScheduled:!1},fL={activatorEvent:null,activators:[],active:null,activeNodeRect:null,ariaDescribedById:{draggable:""},dispatch:$c,draggableNodes:new Map,over:null,measureDroppableContainers:$c},kd=S.createContext(fL),VE=S.createContext(dL);function mL(){return{draggable:{active:null,initialCoordinates:{x:0,y:0},nodes:new Map,translate:{x:0,y:0}},droppable:{containers:new us}}}function hL(e,t){switch(t.type){case $t.DragStart:return{...e,draggable:{...e.draggable,initialCoordinates:t.initialCoordinates,active:t.active}};case $t.DragMove:return e.draggable.active==null?e:{...e,draggable:{...e.draggable,translate:{x:t.coordinates.x-e.draggable.initialCoordinates.x,y:t.coordinates.y-e.draggable.initialCoordinates.y}}};case $t.DragEnd:case $t.DragCancel:return{...e,draggable:{...e.draggable,active:null,initialCoordinates:{x:0,y:0},translate:{x:0,y:0}}};case $t.RegisterDroppable:{const{element:r}=t,{id:i}=r,o=new us(e.droppable.containers);return o.set(i,r),{...e,droppable:{...e.droppable,containers:o}}}case $t.SetDroppableDisabled:{const{id:r,key:i,disabled:o}=t,s=e.droppable.containers.get(r);if(!s||i!==s.key)return e;const u=new us(e.droppable.containers);return u.set(r,{...s,disabled:o}),{...e,droppable:{...e.droppable,containers:u}}}case $t.UnregisterDroppable:{const{id:r,key:i}=t,o=e.droppable.containers.get(r);if(!o||i!==o.key)return e;const s=new us(e.droppable.containers);return s.delete(r),{...e,droppable:{...e.droppable,containers:s}}}default:return e}}function pL(e){let{disabled:t}=e;const{active:r,activatorEvent:i,draggableNodes:o}=S.useContext(kd),s=Vh(i),u=Vh(r?.id);return S.useEffect(()=>{if(!t&&!i&&s&&u!=null){if(!Xp(s)||document.activeElement===s.target)return;const d=o.get(u);if(!d)return;const{activatorNode:p,node:h}=d;if(!p.current&&!h.current)return;requestAnimationFrame(()=>{for(const y of[p.current,h.current]){if(!y)continue;const v=o5(y);if(v){v.focus();break}}})}},[i,t,o,u,s]),null}function gL(e,t){let{transform:r,...i}=t;return e!=null&&e.length?e.reduce((o,s)=>s({transform:o,...i}),r):r}function yL(e){return S.useMemo(()=>({draggable:{...Sc.draggable,...e?.draggable},droppable:{...Sc.droppable,...e?.droppable},dragOverlay:{...Sc.dragOverlay,...e?.dragOverlay}}),[e?.draggable,e?.droppable,e?.dragOverlay])}function vL(e){let{activeNode:t,measure:r,initialRect:i,config:o=!0}=e;const s=S.useRef(!1),{x:u,y:d}=typeof o=="boolean"?{x:o,y:o}:o;Vr(()=>{if(!u&&!d||!t){s.current=!1;return}if(s.current||!i)return;const h=t?.node.current;if(!h||h.isConnected===!1)return;const y=r(h),v=RE(y,i);if(u||(v.x=0),d||(v.y=0),s.current=!0,Math.abs(v.x)>0||Math.abs(v.y)>0){const x=OE(h);
79x&&x.scrollBy({top:v.y,left:v.x})}},[t,u,d,i,r])}const HE=S.createContext({...Tr,scaleX:1,scaleY:1});var Ja;(function(e){e[e.Uninitialized=0]="Uninitialized",e[e.Initializing=1]="Initializing",e[e.Initialized=2]="Initialized"})(Ja||(Ja={}));const bL=S.memo(function(t){var r,i,o,s;let{id:u,accessibility:d,autoScroll:p=!0,children:h,sensors:y=uL,collisionDetection:v=S5,measuring:x,modifiers:b,...E}=t;const N=S.useReducer(hL,void 0,mL),[C,k]=N,[M,O]=m5(),[B,T]=S.useState(Ja.Uninitialized),L=B===Ja.Initialized,{draggable:{active:I,nodes:_,translate:X},droppable:{containers:V}}=C,G=I!=null?_.get(I):null,$=S.useRef({initial:null,translated:null}),Q=S.useMemo(()=>{var jt;return I!=null?{id:I,data:(jt=G?.data)!=null?jt:cL,rect:$}:null},[I,G]),F=S.useRef(null),[z,R]=S.useState(null),[K,q]=S.useState(null),ne=Es(E,Object.values(E)),A=Fs("DndDescribedBy",u),pe=S.useMemo(()=>V.getEnabled(),[V]),ce=yL(x),{droppableRects:D,measureDroppableContainers:ge,measuringScheduled:ke}=Q5(pe,{dragging:L,dependencies:[X.x,X.y],config:ce.droppable}),ve=Y5(_,I),be=S.useMemo(()=>K?Hh(K):null,[K]),Le=Vi(),Ie=J5(ve,ce.draggable.measure);vL({activeNode:I!=null?_.get(I):null,config:Le.layoutShiftCompensation,initialRect:Ie,measure:ce.draggable.measure});const Te=B0(ve,ce.draggable.measure,Ie),ft=B0(ve?ve.parentElement:null),mt=S.useRef({activatorEvent:null,active:null,activeNode:ve,collisionRect:null,collisions:null,droppableRects:D,draggableNodes:_,draggingNode:null,draggingNodeRect:null,droppableContainers:V,over:null,scrollableAncestors:[],scrollAdjustedTranslate:null}),Pt=V.getNodeFor((r=mt.current.over)==null?void 0:r.id),Nt=sL({measure:ce.dragOverlay.measure}),dn=(i=Nt.nodeRef.current)!=null?i:ve,fn=L?(o=Nt.rect)!=null?o:Te:null,$r=!!(Nt.nodeRef.current&&Nt.rect),Kr=tL($r?null:Te),br=PE(dn?In(dn):null),Yt=nL(L?Pt??ve:null),P=lL(Yt),J=gL(b,{transform:{x:X.x-Kr.x,y:X.y-Kr.y,scaleX:1,scaleY:1},activatorEvent:K,active:Q,activeNodeRect:Te,containerNodeRect:ft,draggingNodeRect:fn,over:mt.current.over,overlayNodeRect:Nt.rect,scrollableAncestors:Yt,scrollableAncestorRects:P,windowRect:br}),ie=be?Pl(be,X):null,fe=rL(Yt),he=I0(fe),H=I0(fe,[Te]),re=Pl(J,he),me=fn?C5(fn,J):null,ye=Q&&me?v({active:Q,collisionRect:me,droppableRects:D,droppableContainers:pe,pointerCoordinates:ie}):null,De=DE(ye,"id"),[it,Ct]=S.useState(null),Vt=$r?J:Pl(J,H),ht=E5(Vt,(s=it?.rect)!=null?s:null,Te),xt=S.useRef(null),Ye=S.useCallback((jt,kt)=>{let{sensor:Xt,options:En}=kt;if(F.current==null)return;const Nn=_.get(F.current);if(!Nn)return;const hn=jt.nativeEvent,Cn=new Xt({active:F.current,activeNode:Nn,event:hn,options:En,context:mt,onAbort(Ht){if(!_.get(Ht))return;const{onDragAbort:Vn}=ne.current,nr={id:Ht};Vn?.(nr),M({type:"onDragAbort",event:nr})},onPending(Ht,xr,Vn,nr){if(!_.get(Ht))return;const{onDragPending:Yr}=ne.current,wr={id:Ht,constraint:xr,initialCoordinates:Vn,offset:nr};Yr?.(wr),M({type:"onDragPending",event:wr})},onStart(Ht){const xr=F.current;if(xr==null)return;const Vn=_.get(xr);if(!Vn)return;const{onDragStart:nr}=ne.current,Gr={activatorEvent:hn,active:{id:xr,data:Vn.data,rect:$}};Ai.unstable_batchedUpdates(()=>{nr?.(Gr),T(Ja.Initializing),k({type:$t.DragStart,initialCoordinates:Ht,active:xr}),M({type:"onDragStart",event:Gr}),R(xt.current),q(hn)})},onMove(Ht){k({type:$t.DragMove,coordinates:Ht})},onEnd:tr($t.DragEnd),onCancel:tr($t.DragCancel)});xt.current=Cn;function tr(Ht){return async function(){const{active:Vn,collisions:nr,over:Gr,scrollAdjustedTranslate:Yr}=mt.current;let wr=null;if(Vn&&Yr){const{cancelDrop:Na}=ne.current;wr={activatorEvent:hn,active:Vn,collisions:nr,delta:Yr,over:Gr},Ht===$t.DragEnd&&typeof Na=="function"&&await Promise.resolve(Na(wr))&&(Ht=$t.DragCancel)}F.current=null,Ai.unstable_batchedUpdates(()=>{k({type:Ht}),T(Ja.Uninitialized),Ct(null),R(null),q(null),xt.current=null;const Na=Ht===$t.DragEnd?"onDragEnd":"onDragCancel";if(wr){const rr=ne.current[Na];rr?.(wr),M({type:Na,event:wr})}})}}},[_]),Pn=S.useCallback((jt,kt)=>(Xt,En)=>{const Nn=Xt.nativeEvent,hn=_.get(En);if(F.current!==null||!hn||Nn.dndKit||Nn.defaultPrevented)return;const Cn={active:hn};jt(Xt,kt.options,Cn)===!0&&(Nn.dndKit={capturedBy:kt.sensor},F.current=En,Ye(Xt,kt))},[_,Ye]),mn=X5(y,Pn);aL(y),Vr(()=>{Te&&B===Ja.Initializing&&T(Ja.Initialized)},[Te,B]),S.useEffect(()=>{const{onDragMove:jt}=ne.current,{active:kt,activatorEvent:Xt,collisions:En,over:Nn}=mt.current;if(!kt||!Xt)return;const hn={active:kt,activatorEvent:Xt,collisions:En,delta:{x:re.x,y:re.y},over:Nn};Ai.unstable_batchedUpdates(()=>{jt?.(hn),M({type:"onDragMove",event:hn})})},[re.x,re.y]),S.useEffect(()=>{const{active:jt,activatorEvent:kt,collisions:Xt,droppableContainers:En,scrollAdjustedTranslate:Nn}=mt.current;if(!jt||F.current==null||!kt||!Nn)return;const{onDragOver:hn}=ne.current,Cn=En.get(De),tr=Cn&&Cn.rect.current?{id:Cn.id,rect:Cn.rect.current,data:Cn.data,disabled:Cn.disabled}:null,Ht={active:jt,activatorEvent:kt,collisions:Xt,delta:{x:Nn.x,y:Nn.y},over:tr};Ai.unstable_batchedUpdates(()=>{Ct(tr),hn?.(Ht),M({type:"onDragOver",event:Ht})})},[De]),Vr(()=>{mt.current={activatorEvent:K,active:Q,activeNode:ve,collisionRect:me,collisions:ye,droppableRects:D,draggableNodes:_,draggingNode:dn,draggingNodeRect:fn,droppableContainers:V,over:it,scrollableAncestors:Yt,scrollAdjustedTranslate:re},$.current={initial:fn,translated:me}},[Q,ve,ye,me,_,dn,fn,D,V,it,Yt,re]),$5({...Le,delta:X,draggingRect:me,pointerCoordinates:ie,scrollableAncestors:Yt,scrollableAncestorRects:P});const Ui=S.useMemo(()=>({active:Q,activeNode:ve,activeNodeRect:Te,activatorEvent:K,collisions:ye,containerNodeRect:ft,dragOverlay:Nt,draggableNodes:_,droppableContainers:V,droppableRects:D,over:it,measureDroppableContainers:ge,scrollableAncestors:Yt,scrollableAncestorRects:P,measuringConfiguration:ce,measuringScheduled:ke,windowRect:br}),[Q,ve,Te,K,ye,ft,Nt,_,V,D,it,ge,Yt,P,ce,ke,br]),Pi=S.useMemo(()=>({activatorEvent:K,activators:mn,active:Q,activeNodeRect:Te,ariaDescribedById:{draggable:A},dispatch:k,draggableNodes:_,over:it,measureDroppableContainers:ge}),[K,mn,Q,Te,k,A,_,it,ge]);return $e.createElement(AE.Provider,{value:O},$e.createElement(kd.Provider,{value:Pi},$e.createElement(VE.Provider,{value:Ui},$e.createElement(HE.Provider,{value:ht},h)),$e.createElement(pL,{disabled:d?.restoreFocus===!1})),$e.createElement(g5,{...d,hiddenTextDescribedById:A}));function Vi(){const jt=z?.autoScrollEnabled===!1,kt=typeof p=="object"?p.enabled===!1:p===!1,Xt=L&&!jt&&!kt;return typeof p=="object"?{...p,enabled:Xt}:{enabled:Xt}}}),xL=S.createContext(null),P0="button",wL="Draggable";function SL(e){let{id:t,data:r,disabled:i=!1,attributes:o}=e;const s=Fs(wL),{activators:u,activatorEvent:d,active:p,activeNodeRect:h,ariaDescribedById:y,draggableNodes:v,over:x}=S.useContext(kd),{role:b=P0,roleDescription:E="draggable",tabIndex:N=0}=o??{}
79,C=p?.id===t,k=S.useContext(C?HE:xL),[M,O]=Zc(),[B,T]=Zc(),L=iL(u,t),I=Es(r);Vr(()=>(v.set(t,{id:t,key:s,node:M,activatorNode:B,data:I}),()=>{const X=v.get(t);X&&X.key===s&&v.delete(t)}),[v,t]);const _=S.useMemo(()=>({role:b,tabIndex:N,"aria-disabled":i,"aria-pressed":C&&b===P0?!0:void 0,"aria-roledescription":E,"aria-describedby":y.draggable}),[i,b,N,C,E,y.draggable]);return{active:p,activatorEvent:d,activeNodeRect:h,attributes:_,isDragging:C,listeners:i?void 0:L,node:M,over:x,setNodeRef:O,setActivatorNodeRef:T,transform:k}}function EL(){return S.useContext(VE)}const NL="Droppable",CL={timeout:25};function jL(e){let{data:t,disabled:r=!1,id:i,resizeObserverConfig:o}=e;const s=Fs(NL),{active:u,dispatch:d,over:p,measureDroppableContainers:h}=S.useContext(kd),y=S.useRef({disabled:r}),v=S.useRef(!1),x=S.useRef(null),b=S.useRef(null),{disabled:E,updateMeasurementsFor:N,timeout:C}={...CL,...o},k=Es(N??i),M=S.useCallback(()=>{if(!v.current){v.current=!0;return}b.current!=null&&clearTimeout(b.current),b.current=setTimeout(()=>{h(Array.isArray(k.current)?k.current:[k.current]),b.current=null},C)},[C]),O=jd({callback:M,disabled:E||!u}),B=S.useCallback((_,X)=>{O&&(X&&(O.unobserve(X),v.current=!1),_&&O.observe(_))},[O]),[T,L]=Zc(B),I=Es(t);return S.useEffect(()=>{!O||!T.current||(O.disconnect(),v.current=!1,O.observe(T.current))},[T,O]),S.useEffect(()=>(d({type:$t.RegisterDroppable,element:{id:i,key:s,disabled:r,node:T,rect:x,data:I}}),()=>d({type:$t.UnregisterDroppable,key:s,id:i})),[i]),S.useEffect(()=>{r!==y.current.disabled&&(d({type:$t.SetDroppableDisabled,id:i,key:s,disabled:r}),y.current.disabled=r)},[i,s,r,d]),{active:u,rect:x,isOver:p?.id===i,node:T,over:p,setNodeRef:L}}function qE(e,t,r){const i=e.slice();return i.splice(r<0?i.length+r:r,0,i.splice(t,1)[0]),i}function kL(e,t){return e.reduce((r,i,o)=>{const s=t.get(i);return s&&(r[o]=s),r},Array(e.length))}function fc(e){return e!==null&&e>=0}function AL(e,t){if(e===t)return!0;if(e.length!==t.length)return!1;for(let r=0;r<e.length;r++)if(e[r]!==t[r])return!1;return!0}function TL(e){return typeof e=="boolean"?{draggable:e,droppable:e}:e}const ZE=e=>{let{rects:t,activeIndex:r,overIndex:i,index:o}=e;const s=qE(t,i,r),u=t[o],d=s[o];return!d||!u?null:{x:d.left-u.left,y:d.top-u.top,scaleX:d.width/u.width,scaleY:d.height/u.height}},mc={scaleX:1,scaleY:1},_L=e=>{var t;let{activeIndex:r,activeNodeRect:i,index:o,rects:s,overIndex:u}=e;const d=(t=s[r])!=null?t:i;if(!d)return null;if(o===r){const h=s[u];return h?{x:0,y:r<u?h.top+h.height-(d.top+d.height):h.top-d.top,...mc}:null}const p=DL(s,o,r);return o>r&&o<=u?{x:0,y:-d.height-p,...mc}:o<r&&o>=u?{x:0,y:d.height+p,...mc}:{x:0,y:0,...mc}};function DL(e,t,r){const i=e[t],o=e[t-1],s=e[t+1];return i?r<t?o?i.top-(o.top+o.height):s?s.top-(i.top+i.height):0:s?s.top-(i.top+i.height):o?i.top-(o.top+o.height):0:0}const $E="Sortable",KE=$e.createContext({activeIndex:-1,containerId:$E,disableTransforms:!1,items:[],overIndex:-1,useDragOverlay:!1,sortedRects:[],strategy:ZE,disabled:{draggable:!1,droppable:!1}});function RL(e){let{children:t,id:r,items:i,strategy:o=ZE,disabled:s=!1}=e;const{active:u,dragOverlay:d,droppableRects:p,over:h,measureDroppableContainers:y}=EL(),v=Fs($E,r),x=d.rect!==null,b=S.useMemo(()=>i.map(L=>typeof L=="object"&&"id"in L?L.id:L),[i]),E=u!=null,N=u?b.indexOf(u.id):-1,C=h?b.indexOf(h.id):-1,k=S.useRef(b),M=!AL(b,k.current),O=C!==-1&&N===-1||M,B=TL(s);Vr(()=>{M&&E&&y(b)},[M,b,E,y]),S.useEffect(()=>{k.current=b},[b]);const T=S.useMemo(()=>({activeIndex:N,containerId:v,disabled:B,disableTransforms:O,items:b,overIndex:C,useDragOverlay:x,sortedRects:kL(b,p),strategy:o}),[N,v,B.draggable,B.droppable,O,b,C,p,x,o]);return $e.createElement(KE.Provider,{value:T},t)}const OL=e=>{let{id:t,items:r,activeIndex:i,overIndex:o}=e;return qE(r,i,o).indexOf(t)},zL=e=>{let{containerId:t,isSorting:r,wasDragging:i,index:o,items:s,newIndex:u,previousItems:d,previousContainerId:p,transition:h}=e;return!h||!i||d!==s&&o===u?!1:r?!0:u!==o&&t===p},ML={duration:200,easing:"ease"},GE="transform",LL=Cs.Transition.toString({property:GE,duration:0,easing:"linear"}),BL={roleDescription:"sortable"};function FL(e){let{disabled:t,index:r,node:i,rect:o}=e;const[s,u]=S.useState(null),d=S.useRef(r);return Vr(()=>{if(!t&&r!==d.current&&i.current){const p=o.current;if(p){const h=to(i.current,{ignoreTransform:!0}),y={x:p.left-h.left,y:p.top-h.top,scaleX:p.width/h.width,scaleY:p.height/h.height};(y.x||y.y)&&u(y)}}r!==d.current&&(d.current=r)},[t,r,i,o]),S.useEffect(()=>{s&&u(null)},[s]),s}function IL(e){let{animateLayoutChanges:t=zL,attributes:r,disabled:i,data:o,getNewIndex:s=OL,id:u,strategy:d,resizeObserverConfig:p,transition:h=ML}=e;const{items:y,containerId:v,activeIndex:x,disabled:b,disableTransforms:E,sortedRects:N,overIndex:C,useDragOverlay:k,strategy:M}=S.useContext(KE),O=UL(i,b),B=y.indexOf(u),T=S.useMemo(()=>({sortable:{containerId:v,index:B,items:y},...o}),[v,o,B,y]),L=S.useMemo(()=>y.slice(y.indexOf(u)),[y,u]),{rect:I,node:_,isOver:X,setNodeRef:V}=jL({id:u,data:T,disabled:O.droppable,resizeObserverConfig:{updateMeasurementsFor:L,...p}}),{active:G,activatorEvent:$,activeNodeRect:Q,attributes:F,setNodeRef:z,listeners:R,isDragging:K,over:q,setActivatorNodeRef:ne,transform:A}=SL({id:u,data:T,attributes:{...BL,...r},disabled:O.draggable}
79),pe=r5(V,z),ce=!!G,D=ce&&!E&&fc(x)&&fc(C),ge=!k&&K,ke=ge&&D?A:null,be=D?ke??(d??M)({rects:N,activeNodeRect:Q,activeIndex:x,overIndex:C,index:B}):null,Le=fc(x)&&fc(C)?s({id:u,items:y,activeIndex:x,overIndex:C}):B,Ie=G?.id,Te=S.useRef({activeId:Ie,items:y,newIndex:Le,containerId:v}),ft=y!==Te.current.items,mt=t({active:G,containerId:v,isDragging:K,isSorting:ce,id:u,index:B,items:y,newIndex:Te.current.newIndex,previousItems:Te.current.items,previousContainerId:Te.current.containerId,transition:h,wasDragging:Te.current.activeId!=null}),Pt=FL({disabled:!mt,index:B,node:_,rect:I});return S.useEffect(()=>{ce&&Te.current.newIndex!==Le&&(Te.current.newIndex=Le),v!==Te.current.containerId&&(Te.current.containerId=v),y!==Te.current.items&&(Te.current.items=y)},[ce,Le,v,y]),S.useEffect(()=>{if(Ie===Te.current.activeId)return;if(Ie!=null&&Te.current.activeId==null){Te.current.activeId=Ie;return}const dn=setTimeout(()=>{Te.current.activeId=Ie},50);return()=>clearTimeout(dn)},[Ie]),{active:G,activeIndex:x,attributes:F,data:T,rect:I,index:B,newIndex:Le,items:y,isOver:X,isSorting:ce,isDragging:K,listeners:R,node:_,overIndex:C,over:q,setNodeRef:pe,setActivatorNodeRef:ne,setDroppableNodeRef:V,setDraggableNodeRef:z,transform:Pt??be,transition:Nt()};function Nt(){if(Pt||ft&&Te.current.newIndex===B)return LL;if(!(ge&&!Xp($)||!h)&&(ce||mt))return Cs.Transition.toString({...h,property:GE})}}function UL(e,t){var r,i;return typeof e=="boolean"?{draggable:e,droppable:!1}:{draggable:(r=e?.draggable)!=null?r:t.draggable,droppable:(i=e?.droppable)!=null?i:t.droppable}}function Gc(e){if(!e)return!1;const t=e.data.current;return!!(t&&"sortable"in t&&typeof t.sortable=="object"&&"containerId"in t.sortable&&"items"in t.sortable&&"index"in t.sortable)}const PL=[Ze.Down,Ze.Right,Ze.Up,Ze.Left],VL=(e,t)=>{let{context:{active:r,collisionRect:i,droppableRects:o,droppableContainers:s,over:u,scrollableAncestors:d}}=t;if(PL.includes(e.code)){if(e.preventDefault(),!r||!i)return;const p=[];s.getEnabled().forEach(v=>{if(!v||v!=null&&v.disabled)return;const x=o.get(v.id);if(x)switch(e.code){case Ze.Down:i.top<x.top&&p.push(v);break;case Ze.Up:i.top>x.top&&p.push(v);break;case Ze.Left:i.left>x.left&&p.push(v);break;case Ze.Right:i.left<x.left&&p.push(v);break}});const h=x5({collisionRect:i,droppableRects:o,droppableContainers:p});let y=DE(h,"id");if(y===u?.id&&h.length>1&&(y=h[1].id),y!=null){const v=s.get(r.id),x=s.get(y),b=x?o.get(x.id):null,E=x?.node.current;if(E&&b&&v&&x){const C=Cd(E).some((L,I)=>d[I]!==L),k=YE(v,x),M=HL(v,x),O=C||!k?{x:0,y:0}:{x:M?i.width-b.width:0,y:M?i.height-b.height:0},B={x:b.left,y:b.top};return O.x&&O.y?B:Ns(B,O)}}}};function YE(e,t){return!Gc(e)||!Gc(t)?!1:e.data.current.sortable.containerId===t.data.current.sortable.containerId}function HL(e,t){return!Gc(e)||!Gc(t)||!YE(e,t)?!1:e.data.current.sortable.index<t.data.current.sortable.index}function qL({block:e}){const t=e.metadata?.level||1,r=Ge("font-bold",{"text-3xl md:text-4xl mt-8 mb-4":t===1,"text-2xl md:text-3xl mt-6 mb-3":t===2,"text-xl md:text-2xl mt-5 mb-2":t===3,"text-lg md:text-xl mt-4 mb-2":t===4,"text-base md:text-lg mt-3 mb-2 font-semibold":t===5,"text-sm md:text-base mt-3 mb-1 font-semibold":t===6});switch(t){case 1:return f.jsx("h1",{className:r,children:e.content});case 2:return f.jsx("h2",{className:r,children:e.content});case 3:return f.jsx("h3",{className:r,children:e.content});case 4:return f.jsx("h4",{className:r,children:e.content});case 5:return f.jsx("h5",{className:r,children:e.content});case 6:return f.jsx("h6",{className:r,children:e.content});default:return f.jsx("h1",{className:r,children:e.content})}}function ZL(e,t){const r={};return(e[e.length-1]===""?[...e,""]:e).join((r.padRight?" ":"")+","+(r.padLeft===!1?"":" ")).trim()}const $L=/^[$_\p{ID_Start}][$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,KL=/^[$_\p{ID_Start}][-$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,GL={};function V0(e,t){return(GL.jsx?KL:$L).test(e)}const YL=/[ \t\n\f\r]/g;function XL(e){return typeof e=="object"?e.type==="text"?H0(e.value):!1:H0(e)}function H0(e){return e.replace(YL,"")===""}
vendor: 5,364 bytes, line 79
79class Is{constructor(t,r,i){this.normal=r,this.property=t,i&&(this.space=i)}}Is.prototype.normal={};Is.prototype.property={};Is.prototype.space=void 0;function XE(e,t){const r={},i={};for(const o of e)Object.assign(r,o.property),Object.assign(i,o.normal);return new Is(r,i,t)}function Kh(e){return e.toLowerCase()}class Un{constructor(t,r){this.attribute=r,this.property=t}}Un.prototype.attribute="";Un.prototype.booleanish=!1;Un.prototype.boolean=!1;Un.prototype.commaOrSpaceSeparated=!1;Un.prototype.commaSeparated=!1;Un.prototype.defined=!1;Un.prototype.mustUseProperty=!1;Un.prototype.number=!1;Un.prototype.overloadedBoolean=!1;Un.prototype.property="";Un.prototype.spaceSeparated=!1;Un.prototype.space=void 0;let QL=0;const Me=Ii(),Bt=Ii(),Gh=Ii(),de=Ii(),ut=Ii(),Vl=Ii(),Xn=Ii();function Ii(){return 2**++QL}const Yh=Object.freeze(Object.defineProperty({__proto__:null,boolean:Me,booleanish:Bt,commaOrSpaceSeparated:Xn,commaSeparated:Vl,number:de,overloadedBoolean:Gh,spaceSeparated:ut},Symbol.toStringTag,{value:"Module"})),oh=Object.keys(Yh);class tg extends Un{constructor(t,r,i,o){let s=-1;if(super(t,r),q0(this,"space",o),typeof i=="number")for(;++s<oh.length;){const u=oh[s];q0(this,oh[s],(i&Yh[u])===Yh[u])}}}tg.prototype.defined=!0;function q0(e,t,r){r&&(e[t]=r)}function no(e){const t={},r={};for(const[i,o]of Object.entries(e.properties)){const s=new tg(i,e.transform(e.attributes||{},i),o,e.space);e.mustUseProperty&&e.mustUseProperty.includes(i)&&(s.mustUseProperty=!0),t[i]=s,r[Kh(i)]=i,r[Kh(s.attribute)]=i}return new Is(t,r,e.space)}const QE=no({properties:{ariaActiveDescendant:null,ariaAtomic:Bt,ariaAutoComplete:null,ariaBusy:Bt,ariaChecked:Bt,ariaColCount:de,ariaColIndex:de,ariaColSpan:de,ariaControls:ut,ariaCurrent:null,ariaDescribedBy:ut,ariaDetails:null,ariaDisabled:Bt,ariaDropEffect:ut,ariaErrorMessage:null,ariaExpanded:Bt,ariaFlowTo:ut,ariaGrabbed:Bt,ariaHasPopup:null,ariaHidden:Bt,ariaInvalid:null,ariaKeyShortcuts:null,ariaLabel:null,ariaLabelledBy:ut,ariaLevel:de,ariaLive:null,ariaModal:Bt,ariaMultiLine:Bt,ariaMultiSelectable:Bt,ariaOrientation:null,ariaOwns:ut,ariaPlaceholder:null,ariaPosInSet:de,ariaPressed:Bt,ariaReadOnly:Bt,ariaRelevant:null,ariaRequired:Bt,ariaRoleDescription:ut,ariaRowCount:de,ariaRowIndex:de,ariaRowSpan:de,ariaSelected:Bt,ariaSetSize:de,ariaSort:null,ariaValueMax:de,ariaValueMin:de,ariaValueNow:de,ariaValueText:null,role:null},transform(e,t){return t==="role"?t:"aria-"+t.slice(4).toLowerCase()}});function JE(e,t){return t in e?e[t]:t}function WE(e,t){return JE(e,t.toLowerCase())}const JL=no({attributes:{acceptcharset:"accept-charset",classname:"class",htmlfor:"for",httpequiv:"http-equiv"},mustUseProperty:["checked","multiple","muted","selected"],properties:{abbr:null,accept:Vl,acceptCharset:ut,accessKey:ut,action:null,allow:null,allowFullScreen:Me,allowPaymentRequest:Me,allowUserMedia:Me,alt:null,as:null,async:Me,autoCapitalize:null,autoComplete:ut,autoFocus:Me,autoPlay:Me,blocking:ut,capture:null,charSet:null,checked:Me,cite:null,className:ut,cols:de,colSpan:null,content:null,contentEditable:Bt,controls:Me,controlsList:ut,coords:de|Vl,crossOrigin:null,data:null,dateTime:null,decoding:null,default:Me,defer:Me,dir:null,dirName:null,disabled:Me,download:Gh,draggable:Bt,encType:null,enterKeyHint:null,fetchPriority:null,form:null,formAction:null,formEncType:null,formMethod:null,formNoValidate:Me,formTarget:null,headers:ut,height:de,hidden:Gh,high:de,href:null,hrefLang:null,htmlFor:ut,httpEquiv:ut,id:null,imageSizes:null,imageSrcSet:null,inert:Me,inputMode:null,integrity:null,is:null,isMap:Me,itemId:null,itemProp:ut,itemRef:ut,itemScope:Me,itemType:ut,kind:null,label:null,lang:null,language:null,list:null,loading:null,loop:Me,low:de,manifest:null,max:null,maxLength:de,media:null,method:null,min:null,minLength:de,multiple:Me,muted:Me,name:null,nonce:null,noModule:Me,noValidate:Me,onAbort:null,onAfterPrint:null,onAuxClick:null,onBeforeMatch:null,onBeforePrint:null,onBeforeToggle:null,onBeforeUnload:null,onBlur:null,onCancel:null,onCanPlay:null,onCanPlayThrough:null,onChange:null,onClick:null,onClose:null,onContextLost:null,onContextMenu:null,onContextRestored:null,onCopy:null,onCueChange:null,onCut:null,onDblClick:null,onDrag:null,onDragEnd:null,onDragEnter:null,onDragExit:null,onDragLeave:null,onDragOver:null,onDragStart:null,onDrop:null,onDurationChange:null,onEmptied:null,onEnded:null,onError:null,onFocus:null,onFormData:null,onHashChange:null,onInput:null,onInvalid:null,onKeyDown:null,onKeyPress:null,onKeyUp:null,onLanguageChange:null,onLoad:null,onLoadedData:null,onLoadedMetadata:null,onLoadEnd:null,onLoadStart:null,onMessage:null,onMessageError:null,onMouseDown:null,onMouseEnter:null,onMouseLeave:null,onMouseMove:null,onMouseOut:null,onMouseOver:null,onMouseUp:null,onOffline:null,onOnline:null,onPageHide:null,onPageShow:null,onPaste:null,onPause:null,onPlay:null,onPlaying:null,onPopState:null,onProgress:null,onRateChange:null,onRejectionHandled:null,onReset:null,onResize:null,onScroll:null,onScrollEnd:null,onSecurityPolicyViolation:null,onSeeked:null,onSeeking:null,onSelect:null,onSlotChange:null,onStalled:null,onStorage:null,onSubmit:null,onSuspend:null,onTimeUpdate:null,onToggle:null,onUnhandledRejection:null,onUnload:null,onVolumeChange:null,onWaiting:null,onWheel:null,open:Me,optimum:de,pattern:null,ping:ut,placeholder:null,playsInl
79ine:Me,popover:null,popoverTarget:null,popoverTargetAction:null,poster:null,preload:null,readOnly:Me,referrerPolicy:null,rel:ut,required:Me,reversed:Me,rows:de,rowSpan:de,sandbox:ut,scope:null,scoped:Me,seamless:Me,selected:Me,shadowRootClonable:Me,shadowRootDelegatesFocus:Me,shadowRootMode:null,shape:null,size:de,sizes:null,slot:null,span:de,spellCheck:Bt,src:null,srcDoc:null,srcLang:null,srcSet:null,start:de,step:null,style:null,tabIndex:de,target:null,title:null,translate:null,type:null,typeMustMatch:Me,useMap:null,value:Bt,width:de,wrap:null,writingSuggestions:null,align:null,aLink:null,archive:ut,axis:null,background:null,bgColor:null,border:de,borderColor:null,bottomMargin:de,cellPadding:null,cellSpacing:null,char:null,charOff:null,classId:null,clear:null,code:null,codeBase:null,codeType:null,color:null,compact:Me,declare:Me,event:null,face:null,frame:null,frameBorder:null,hSpace:de,leftMargin:de,link:null,longDesc:null,lowSrc:null,marginHeight:de,marginWidth:de,noResize:Me,noHref:Me,noShade:Me,noWrap:Me,object:null,profile:null,prompt:null,rev:null,rightMargin:de,rules:null,scheme:null,scrolling:Bt,standby:null,summary:null,text:null,topMargin:de,valueType:null,version:null,vAlign:null,vLink:null,vSpace:de,allowTransparency:null,autoCorrect:null,autoSave:null,disablePictureInPicture:Me,disableRemotePlayback:Me,prefix:null,property:null,results:de,security:null,unselectable:null},space:"html",transform:WE}),WL=no({attributes:{accentHeight:"accent-height",alignmentBaseline:"alignment-baseline",arabicForm:"arabic-form",baselineShift:"baseline-shift",capHeight:"cap-height",className:"class",clipPath:"clip-path",clipRule:"clip-rule",colorInterpolation:"color-interpolation",colorInterpolationFilters:"color-interpolation-filters",colorProfile:"color-profile",colorRendering:"color-rendering",crossOrigin:"crossorigin",dataType:"datatype",dominantBaseline:"dominant-baseline",enableBackground:"enable-background",fillOpacity:"fill-opacity",fillRule:"fill-rule",floodColor:"flood-color",floodOpacity:"flood-opacity",fontFamily:"font-family",fontSize:"font-size",fontSizeAdjust:"font-size-adjust",fontStretch:"font-stretch",fontStyle:"font-style",fontVariant:"font-variant",fontWeight:"font-weight",glyphName:"glyph-name",glyphOrientationHorizontal:"glyph-orientation-horizontal",glyphOrientationVertical:"glyph-orientation-vertical",hrefLang:"hreflang",horizAdvX:"horiz-adv-x",horizOriginX:"horiz-origin-x",horizOriginY:"horiz-origin-y",imageRendering:"image-rendering",letterSpacing:"letter-spacing",lightingColor:"lighting-color",markerEnd:"marker-end",markerMid:"marker-mid",markerStart:"marker-start",navDown:"nav-down",navDownLeft:"nav-down-left",navDownRight:"nav-down-right",navLeft:"nav-left",navNext:"nav-next",navPrev:"nav-prev",navRight:"nav-right",navUp:"nav-up",navUpLeft:"nav
79-up-left",navUpRight:"nav-up-right",onAbort:"onabort",onActivate:"onactivate",onAfterPrint:"onafterprint",onBeforePrint:"onbeforeprint",onBegin:"onbegin",onCancel:"oncancel",onCanPlay:"oncanplay",onCanPlayThrough:"oncanplaythrough",onChange:"onchange",onClick:"onclick",onClose:"onclose",onCopy:"oncopy",onCueChange:"oncuechange",onCut:"oncut",onDblClick:"ondblclick",onDrag:"ondrag",onDragEnd:"ondragend",onDragEnter:"ondragenter",onDragExit:"ondragexit",onDragLeave:"ondragleave",onDragOver:"ondragover",onDragStart:"ondragstart",onDrop:"ondrop",onDurationChange:"ondurationchange",onEmptied:"onemptied",onEnd:"onend",onEnded:"onended",onError:"onerror",onFocus:"onfocus",onFocusIn:"onfocusin",onFocusOut:"onfocusout",onHashChange:"onhashchange",onInput:"oninput",onInvalid:"oninvalid",onKeyDown:"onkeydown",onKeyPress:"onkeypress",onKeyUp:"onkeyup",onLoad:"onload",onLoadedData:"onloadeddata",onLoadedMetadata:"onloadedmetadata",onLoadStart:"onloadstart",onMessage:"onmessage",onMouseDown:"onmousedown",onMouseEnter:"onmouseenter",onMouseLeave:"onmouseleave",onMouseMove:"onmousemove",onMouseOut:"onmouseout",onMouseOver:"onmouseover",onMouseUp:"onmouseup",onMouseWheel:"onmousewheel",onOffline:"onoffline",onOnline:"ononline",onPageHide:"onpagehide",onPageShow:"onpageshow",onPaste:"onpaste",onPause:"onpause",onPlay:"onplay",onPlaying:"onplaying",onPopState:"onpopstate",onProgress:"onprogress",onRateChange:"onratechange",onRepeat:"onrepeat",onReset:"onreset",onResize:"onresize",onScroll:"onscroll",onSeeked:"onseeked",onSeeking:"onseeking",onSelect:"onselect",onShow:"onshow",onStalled:"onstalled",onStorage:"onstorage",onSubmit:"onsubmit",onSuspend:"onsuspend",onTimeUpdate:"ontimeupdate",onToggle:"ontoggle",onUnload:"onunload",onVolumeChange:"onvolumechange",onWaiting:"onwaiting",onZoom:"onzoom",overlinePosition:"overline-position",overlineThickness:"overline-thickness",paintOrder:"paint-order",panose1:"panose-1",pointerEvents:"pointer-events",referrerPolicy:"referrerpolicy",renderingIntent:"rendering-intent",shapeRendering:"shape-rendering",stopColor:"stop-color",stopOpacity:"stop-opacity",strikethroughPosition:"strikethrough-position",strikethroughThickness:"strikethrough-thickness",strokeDashArray:"stroke-dasharray",strokeDashOffset:"stroke-dashoffset",strokeLineCap:"stroke-linecap",strokeLineJoin:"stroke-linejoin",strokeMiterLimit:"stroke-miterlimit",strokeOpacity:"stroke-opacity",strokeWidth:"stroke-width",tabIndex:"tabindex",textAnchor:"text-anchor",textDecoration:"text-decoration",textRendering:"text-rendering",transformOrigin:"transform-origin",typeOf:"typeof",underlinePosition:"underline-position",underlineThickness:"underline-thickness",unicodeBidi:"unicode-bidi",unicodeRange:"unicode-range",unitsPerEm:"units-per-em",vAlphabetic:"v-alphabetic",vHanging:"v-hanging",vIdeographic:"v-ideographic",vMathematical:"v-mathematical",vectorEffect:"vector-effect",vertAdvY:"vert-adv-y",vertOriginX:"vert-origin-x",vertOriginY:"vert-origin-y",wordSpacing:"word-spacing",writingMode:"writing-mode",xHeight:"x-height",playbackOrder:"playbackorder",timelineBegin:"timelinebegin"},properties:{about:Xn,accentHeight:de,accumulate:null,additive:null,alignmentBaseline:null,alphabetic:de,amplitude:de,arabicForm:null,ascent:de,attributeName:null,attributeType:null,azimuth:de,bandwidth:null,baselineShift:null,baseFrequency:null,baseProfile:null,bbox:null,begin:null,bias:de,by:null,calcMode:null,capHeight:de,className:ut,clip:null,clipPath:null,clipPathUnits:null,clipRule:null,color:null,colorInterpolation:null,colorInterpolationFilters:null,colorProfile:null,colorRendering:null,content:null,contentScriptType:null,contentStyleType:null,crossOrigin:null,cursor:null,cx:null,cy:null,d:null,dataType:null,defaultAction:null,descent:de,diffuseConstant:de,direction:null,display:null,dur:null,divisor:de,dominantBaseline:null,download:Me,dx:null,dy:null,edgeMode:null,editable:null,elevation:de,enableBackground:null,end:null,event:null,exponent:de,externalResourcesRequired:null,fill:null,fillOpacity:de,fillRule:null,filter:null,filterRes:null,filterUnits:null,floodColor:null,floodOpacity:null,focusable:null,focusHighlight:null,fontFamily:null,fontSize:null,fontSizeAdjust:null,fontStretch:null,fontStyle:null,fontVariant:null,fontWeight:null,format:null,fr:null,from:null,fx:null,fy:null,g1:Vl,g2:Vl,glyphName:Vl,glyphOrientationHorizontal:null,glyphOrientationVertical:null,glyphRef:null,gradientTransform:null,gradientUnits:null,handler:null,hanging:de,hatchContentUnits:null,hatchUnits:null,height:null,href:null,hrefLang:null,horizAdvX:de,horizOriginX:de,horizOriginY:de,id:null,ideographic:de,imageRendering:null,initialVisibility:null,in:null,in2:null,intercept:de,k:de,k1:de,k2:de,k3:de,k4:de,kernelMatrix:Xn,kernelUnitLength:null,keyPoints:null,keySplines:null,keyTimes:null,kerning:null,lang:null,lengthAdjust:null,letterSpacing:null,lightingColor:null,limitingConeAngle:de,local:null,markerEnd:null,markerMid:null,markerStart:null,markerHeight:null,markerUnits:null,markerWidth:null,mask:null,maskContentUnits:null,maskUnits:null,mathematical:null,max:null,media:null,mediaCharacterEncoding:null,mediaContentEncodings:null,mediaSize:de,mediaTime:null,method:null,min:null,mode:null,name:null,navDown:null,navDownLeft:null,navDownRight:null,navLeft:null,navNext:null,navPrev:null,navRight:null,navUp:null,navUpLeft:null,navUpRight:null,numOctaves:null,observer:null,offset:null,onAbort:null,onActivate:null,onAfterPrint:null,onBeforePrint:null,onBegin:null,onCancel:null,onCanPlay:null,onCanPlayThrough:null,onChange:null,onClick:null,onClose:null,onCopy:null,onCueChange:null,onCut:null,onDblClick:null,onDrag:null,onDragEnd:null,onDragEnter:null,onDragExit:null,onDragLeave:null,onDragOver:null,onDragStart:null,onDrop:null,onDurationChange:null,onEmptied:null,onEnd:null,onEnded:null,onError:null,onFocus:null,onFocusIn:null,onFocusOut:null,onHashChange:null,onInput:null,onInvalid:null,onKeyDown:null,onKeyPress:null,onKeyUp:null,onLoad:null,onLoadedData:null,onLoadedMetadata:null,onLoadStart:null,onMessage:null,onMouseDown:null,onMouseEnter:null,onMouseLeave:null,onMouseMove:null,onMouseOut:null,onMouseOver:null,onMouseUp:null,onMouseWheel:null,onOffline:null,onOnline:null,onPageHide:null,onPageShow:null,onPaste:null,onPause:null,onPlay:null,onPlaying:null,onPopState:null,onProgress:null,onRateChange:null,onRepeat:null,onReset:null,onResize:null,onScroll:null,onSeeked:null,onSeeking:null,onSelect:null,onShow:null,onStalled:null,onStorage:null,onSubmit:null,onSuspend:null,onTimeUpdate:null,onToggle:null,onUnload:null,onVolumeChange:null,onWaiting:null,on
vendor: 7,169 bytes, lines 79-80
79Zoom:null,opacity:null,operator:null,order:null,orient:null,orientation:null,origin:null,overflow:null,overlay:null,overlinePosition:de,overlineThickness:de,paintOrder:null,panose1:null,path:null,pathLength:de,patternContentUnits:null,patternTransform:null,patternUnits:null,phase:null,ping:ut,pitch:null,playbackOrder:null,pointerEvents:null,points:null,pointsAtX:de,pointsAtY:de,pointsAtZ:de,preserveAlpha:null,preserveAspectRatio:null,primitiveUnits:null,propagate:null,property:Xn,r:null,radius:null,referrerPolicy:null,refX:null,refY:null,rel:Xn,rev:Xn,renderingIntent:null,repeatCount:null,repeatDur:null,requiredExtensions:Xn,requiredFeatures:Xn,requiredFonts:Xn,requiredFormats:Xn,resource:null,restart:null,result:null,rotate:null,rx:null,ry:null,scale:null,seed:null,shapeRendering:null,side:null,slope:null,snapshotTime:null,specularConstant:de,specularExponent:de,spreadMethod:null,spacing:null,startOffset:null,stdDeviation:null,stemh:null,stemv:null,stitchTiles:null,stopColor:null,stopOpacity:null,strikethroughPosition:de,strikethroughThickness:de,string:null,stroke:null,strokeDashArray:Xn,strokeDashOffset:null,strokeLineCap:null,strokeLineJoin:null,strokeMiterLimit:de,strokeOpacity:de,strokeWidth:null,style:null,surfaceScale:de,syncBehavior:null,syncBehaviorDefault:null,syncMaster:null,syncTolerance:null,syncToleranceDefault:null,systemLanguage:Xn,tabIndex:de,tableValues:null,target:null,targetX:de,targetY:de,textAnchor:null,textDecoration:null,textRendering:null,textLength:null,timelineBegin:null,title:null,transformBehavior:null,type:null,typeOf:Xn,to:null,transform:null,transformOrigin:null,u1:null,u2:null,underlinePosition:de,underlineThickness:de,unicode:null,unicodeBidi:null,unicodeRange:null,unitsPerEm:de,values:null,vAlphabetic:de,vMathematical:de,vectorEffect:null,vHanging:de,vIdeographic:de,version:null,vertAdvY:de,vertOriginX:de,vertOriginY:de,viewBox:null,viewTarget:null,visibility:null,width:null,widths:null,wordSpacing:null,writingMode:null,x:null,x1:null,x2:null,xChannelSelector:null,xHeight:de,y:null,y1:null,y2:null,yChannelSelector:null,z:null,zoomAndPan:null},space:"svg",transform:JE}),eN=no({properties:{xLinkActuate:null,xLinkArcRole:null,xLinkHref:null,xLinkRole:null,xLinkShow:null,xLinkTitle:null,xLinkType:null},space:"xlink",transform(e,t){return"xlink:"+t.slice(5).toLowerCase()}}),tN=no({attributes:{xmlnsxlink:"xmlns:xlink"},properties:{xmlnsXLink:null,xmlns:null},space:"xmlns",transform:WE}),nN=no({properties:{xmlBase:null,xmlLang:null,xmlSpace:null},space:"xml",transform(e,t){return"xml:"+t.slice(3).toLowerCase()}}),e6={classId:"classID",dataType:"datatype",itemId:"itemID",strokeDashArray:"strokeDasharray",strokeDashOffset:"strokeDashoffset",strokeLineCap:"strokeLinecap",strokeLineJoin:"strokeLinejoin",strokeMiterLimit:"strokeMiterlimit",typeOf:"typeof",xLinkActuate:"xlinkActuate",xLinkArcRole:"xlinkArcrole",xLinkHref:"xlinkHref",xLinkRole:"xlinkRole",xLinkShow:"xlinkShow",xLinkTitle:"xlinkTitle",xLinkType:"xlinkType",xmlnsXLink:"xmlnsXlink"},t6=/[A-Z]/g,Z0=/-[a-z]/g,n6=/^data[-\w.:]+$/i;function r6(e,t){const r=Kh(t);let i=t,o=Un;if(r in e.normal)return e.property[e.normal[r]];if(r.length>4&&r.slice(0,4)==="data"&&n6.test(t)){if(t.charAt(4)==="-"){const s=t.slice(5).replace(Z0,i6);i="data"+s.charAt(0).toUpperCase()+s.slice(1)}else{const s=t.slice(4);if(!Z0.test(s)){let u=s.replace(t6,a6);u.charAt(0)!=="-"&&(u="-"+u),t="data"+u}}o=tg}return new o(i,t)}function a6(e){return"-"+e.toLowerCase()}function i6(e){return e.charAt(1).toUpperCase()}const l6=XE([QE,JL,eN,tN,nN],"html"),ng=XE([QE,WL,eN,tN,nN],"svg");function o6(e){return e.join(" ").trim()}var Rl={},sh,$0;function s6(){if($0)return sh;$0=1;var e=/\/\*[^*]*\*+([^/*][^*]*\*+)*\//g,t=/\n/g,r=/^\s*/,i=/^(\*?[-#/*\\\w]+(\[[0-9a-z_-]+\])?)\s*/,o=/^:\s*/,s=/^((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]*?\)|[^};])+)/,u=/^[;\s]*/,d=/^\s+|\s+$/g,p=` 80`,h="/",y="*",v="",x="comment",b="declaration";function E(C,k){if(typeof C!="string")throw new TypeError("First argument must be a string");if(!C)return[];k=k||{};var M=1,O=1;function B(F){var z=F.match(t);z&&(M+=z.length);var R=F.lastIndexOf(p);O=~R?F.length-R:O+F.length}function T(){var F={line:M,column:O};return function(z){return z.position=new L(F),X(),z}}function L(F){this.start=F,this.end={line:M,column:O},this.source=k.source}L.prototype.content=C;function I(F){var z=new Error(k.source+":"+M+":"+O+": "+F);if(z.reason=F,z.filename=k.source,z.line=M,z.column=O,z.source=C,!k.silent)throw z}function _(F){var z=F.exec(C);if(z){var R=z[0];return B(R),C=C.slice(R.length),z}}function X(){_(r)}function V(F){var z;for(F=F||[];z=G();)z!==!1&&F.push(z);return F}function G(){var F=T();if(!(h!=C.charAt(0)||y!=C.charAt(1))){for(var z=2;v!=C.charAt(z)&&(y!=C.charAt(z)||h!=C.charAt(z+1));)++z;if(z+=2,v===C.charAt(z-1))return I("End of comment missing");var R=C.slice(2,z-2);return O+=2,B(R),C=C.slice(z),O+=2,F({type:x,comment:R})}}function $(){var F=T(),z=_(i);if(z){if(G(),!_(o))return I("property missing ':'");var R=_(s),K=F({type:b,property:N(z[0].replace(e,v)),value:R?N(R[0].replace(e,v)):v});return _(u),K}}function Q(){var F=[];V(F);for(var z;z=$();)z!==!1&&(F.push(z),V(F));return F}return X(),Q()}function N(C){return C?C.replace(d,v):v}return sh=E,sh}var K0;function u6(){if(K0)return Rl;K0=1;var e=Rl&&Rl.__importDefault||function(i){return i&&i.__esModule?i:{default:i}};Object.defineProperty(Rl,"__esModule",{value:!0}),Rl.default=r;const t=e(s6());function r(i,o){let s=null;if(!i||typeof i!="string")return s;const u=(0,t.default)(i),d=typeof o=="function";return u.forEach(p=>{if(p.type!=="declaration")return;const{property:h,value:y}=p;d?o(h,y,p):y&&(s=s||{},s[h]=y)}),s}return Rl}var Jo={},G0;function c6(){if(G0)return Jo;G0=1,Object.defineProperty(Jo,"__esModule",{value:!0}),Jo.camelCase=void 0;var e=/^--[a-zA-Z0-9_-]+$/,t=/-([a-z])/g,r=/^[^-]+$/,i=/^-(webkit|moz|ms|o|khtml)-/,o=/^-(ms)-/,s=function(h){return!h||r.test(h)||e.test(h)},u=function(h,y){return y.toUpperCase()},d=function(h,y){return"".concat(y,"-")},p=function(h,y){return y===void 0&&(y={}),s(h)?h:(h=h.toLowerCase(),y.reactCompat?h=h.replace(o,d):h=h.replace(i,d),h.replace(t,u))};return Jo.camelCase=p,Jo}var Wo,Y0;function d6(){if(Y0)return Wo;Y0=1;var e=Wo&&Wo.__importDefault||function(o){return o&&o.__esModule?o:{default:o}},t=e(u6()),r=c6();function i(o,s){var u={};return!o||typeof o!="string"||(0,t.default)(o,function(d,p){d&&p&&(u[(0,r.camelCase)(d,s)]=p)}),u}return i.default=i,Wo=i,Wo}var f6=d6();const m6=Jc(f6),rN=aN("end"),rg=aN("start");function aN(e){return t;function t(r){const i=r&&r.position&&r.position[e]||{};if(typeof i.line=="number"&&i.line>0&&typeof i.column=="number"&&i.column>0)return{line:i.line,column:i.column,offset:typeof i.offset=="number"&&i.offset>-1?i.offset:void 0}}}function h6(e){const t=rg(e),r=rN(e);if(t&&r)return{start:t,end:r}}function cs(e){return!e||typeof e!="object"?"":"position"in e||"type"in e?X0(e.position):"start"in e||"end"in e?X0(e):"line"in e||"column"in e?Xh(e):""}function Xh(e){return Q0(e&&e.line)+":"+Q0(e&&e.column)}function X0(e){return Xh(e&&e.start)+"-"+Xh(e&&e.end)}function Q0(e){return e&&typeof e=="number"?e:1}
vendor: 1,921 bytes, line 80
80class yn extends Error{constructor(t,r,i){super(),typeof r=="string"&&(i=r,r=void 0);let o="",s={},u=!1;if(r&&("line"in r&&"column"in r?s={place:r}:"start"in r&&"end"in r?s={place:r}:"type"in r?s={ancestors:[r],place:r.position}:s={...r}),typeof t=="string"?o=t:!s.cause&&t&&(u=!0,o=t.message,s.cause=t),!s.ruleId&&!s.source&&typeof i=="string"){const p=i.indexOf(":");p===-1?s.ruleId=i:(s.source=i.slice(0,p),s.ruleId=i.slice(p+1))}if(!s.place&&s.ancestors&&s.ancestors){const p=s.ancestors[s.ancestors.length-1];p&&(s.place=p.position)}const d=s.place&&"start"in s.place?s.place.start:s.place;this.ancestors=s.ancestors||void 0,this.cause=s.cause||void 0,this.column=d?d.column:void 0,this.fatal=void 0,this.file="",this.message=o,this.line=d?d.line:void 0,this.name=cs(s.place)||"1:1",this.place=s.place||void 0,this.reason=this.message,this.ruleId=s.ruleId||void 0,this.source=s.source||void 0,this.stack=u&&s.cause&&typeof s.cause.stack=="string"?s.cause.stack:"",this.actual=void 0,this.expected=void 0,this.note=void 0,this.url=void 0}}yn.prototype.file="";yn.prototype.name="";yn.prototype.reason="";yn.prototype.message="";yn.prototype.stack="";yn.prototype.column=void 0;yn.prototype.line=void 0;yn.prototype.ancestors=void 0;yn.prototype.cause=void 0;yn.prototype.fatal=void 0;yn.prototype.place=void 0;yn.prototype.ruleId=void 0;yn.prototype.source=void 0;const ag={}.hasOwnProperty,p6=new Map,g6=/[A-Z]/g,y6=new Set(["table","tbody","thead","tfoot","tr"]),v6=new Set(["td","th"]),iN="https://github.com/syntax-tree/hast-util-to-jsx-runtime";function b6(e,t){if(!t||t.Fragment===void 0)throw new TypeError("Expected `Fragment` in options");const r=t.filePath||void 0;let i;if(t.development){if(typeof t.jsxDEV!="function")throw new TypeError("Expected `jsxDEV` in options when `development: true`");i=k6(r,t.jsxDEV)}else{if(typeof t.jsx!="function")throw new TypeError("Expected `jsx` in production options");
vendor: 6,363 bytes, line 80
80if(typeof t.jsxs!="function")throw new TypeError("Expected `jsxs` in production options");i=j6(r,t.jsx,t.jsxs)}const o={Fragment:t.Fragment,ancestors:[],components:t.components||{},create:i,elementAttributeNameCase:t.elementAttributeNameCase||"react",evaluater:t.createEvaluater?t.createEvaluater():void 0,filePath:r,ignoreInvalidStyle:t.ignoreInvalidStyle||!1,passKeys:t.passKeys!==!1,passNode:t.passNode||!1,schema:t.space==="svg"?ng:l6,stylePropertyNameCase:t.stylePropertyNameCase||"dom",tableCellAlignToStyle:t.tableCellAlignToStyle!==!1},s=lN(o,e,void 0);return s&&typeof s!="string"?s:o.create(e,o.Fragment,{children:s||void 0},void 0)}function lN(e,t,r){if(t.type==="element")return x6(e,t,r);if(t.type==="mdxFlowExpression"||t.type==="mdxTextExpression")return w6(e,t);if(t.type==="mdxJsxFlowElement"||t.type==="mdxJsxTextElement")return E6(e,t,r);if(t.type==="mdxjsEsm")return S6(e,t);if(t.type==="root")return N6(e,t,r);if(t.type==="text")return C6(e,t)}function x6(e,t,r){const i=e.schema;let o=i;t.tagName.toLowerCase()==="svg"&&i.space==="html"&&(o=ng,e.schema=o),e.ancestors.push(t);const s=sN(e,t.tagName,!1),u=A6(e,t);let d=lg(e,t);return y6.has(t.tagName)&&(d=d.filter(function(p){return typeof p=="string"?!XL(p):!0})),oN(e,u,s,t),ig(u,d),e.ancestors.pop(),e.schema=i,e.create(t,s,u,r)}function w6(e,t){if(t.data&&t.data.estree&&e.evaluater){const i=t.data.estree.body[0];return i.type,e.evaluater.evaluateExpression(i.expression)}ks(e,t.position)}function S6(e,t){if(t.data&&t.data.estree&&e.evaluater)return e.evaluater.evaluateProgram(t.data.estree);ks(e,t.position)}function E6(e,t,r){const i=e.schema;let o=i;t.name==="svg"&&i.space==="html"&&(o=ng,e.schema=o),e.ancestors.push(t);const s=t.name===null?e.Fragment:sN(e,t.name,!0),u=T6(e,t),d=lg(e,t);return oN(e,u,s,t),ig(u,d),e.ancestors.pop(),e.schema=i,e.create(t,s,u,r)}function N6(e,t,r){const i={};return ig(i,lg(e,t)),e.create(t,e.Fragment,i,r)}function C6(e,t){return t.value}function oN(e,t,r,i){typeof r!="string"&&r!==e.Fragment&&e.passNode&&(t.node=i)}function ig(e,t){if(t.length>0){const r=t.length>1?t:t[0];r&&(e.children=r)}}function j6(e,t,r){return i;function i(o,s,u,d){const h=Array.isArray(u.children)?r:t;return d?h(s,u,d):h(s,u)}}function k6(e,t){return r;function r(i,o,s,u){const d=Array.isArray(s.children),p=rg(i);return t(o,s,u,d,{columnNumber:p?p.column-1:void 0,fileName:e,lineNumber:p?p.line:void 0},void 0)}}function A6(e,t){const r={};let i,o;for(o in t.properties)if(o!=="children"&&ag.call(t.properties,o)){const s=_6(e,o,t.properties[o]);if(s){const[u,d]=s;e.tableCellAlignToStyle&&u==="align"&&typeof d=="string"&&v6.has(t.tagName)?i=d:r[u]=d}}if(i){const s=r.style||(r.style={});s[e.stylePropertyNameCase==="css"?"text-align":"textAlign"]=i}return r}function T6(e,t){const r={};for(const i of t.attributes)if(i.type==="mdxJsxExpressionAttribute")if(i.data&&i.data.estree&&e.evaluater){const s=i.data.estree.body[0];s.type;const u=s.expression;u.type;const d=u.properties[0];d.type,Object.assign(r,e.evaluater.evaluateExpression(d.argument))}else ks(e,t.position);else{const o=i.name;let s;if(i.value&&typeof i.value=="object")if(i.value.data&&i.value.data.estree&&e.evaluater){const d=i.value.data.estree.body[0];d.type,s=e.evaluater.evaluateExpression(d.expression)}else ks(e,t.position);else s=i.value===null?!0:i.value;r[o]=s}return r}function lg(e,t){const r=[];let i=-1;const o=e.passKeys?new Map:p6;for(;++i<t.children.length;){const s=t.children[i];let u;if(e.passKeys){const p=s.type==="element"?s.tagName:s.type==="mdxJsxFlowElement"||s.type==="mdxJsxTextElement"?s.name:void 0;if(p){const h=o.get(p)||0;u=p+"-"+h,o.set(p,h+1)}}const d=lN(e,s,u);d!==void 0&&r.push(d)}return r}function _6(e,t,r){const i=r6(e.schema,t);if(!(r==null||typeof r=="number"&&Number.isNaN(r))){if(Array.isArray(r)&&(r=i.commaSeparated?ZL(r):o6(r)),i.property==="style"){let o=typeof r=="object"?r:D6(e,String(r));return e.stylePropertyNameCase==="css"&&(o=R6(o)),["style",o]}return[e.elementAttributeNameCase==="react"&&i.space?e6[i.property]||i.property:i.attribute,r]}}function D6(e,t){try{return m6(t,{reactCompat:!0})}catch(r){if(e.ignoreInvalidStyle)return{};const i=r,o=new yn("Cannot parse `style` attribute",{ancestors:e.ancestors,cause:i,ruleId:"style",source:"hast-util-to-jsx-runtime"});throw o.file=e.filePath||void 0,o.url=iN+"#cannot-parse-style-attribute",o}}function sN(e,t,r){let i;if(!r)i={type:"Literal",value:t};else if(t.includes(".")){const o=t.split(".");let s=-1,u;for(;++s<o.length;){const d=V0(o[s])?{type:"Identifier",name:o[s]}:{type:"Literal",value:o[s]};u=u?{type:"MemberExpression",object:u,property:d,computed:!!(s&&d.type==="Literal"),optional:!1}:d}i=u}else i=V0(t)&&!/^[a-z]/.test(t)?{type:"Identifier",name:t}:{type:"Literal",value:t};if(i.type==="Literal"){const o=i.value;return ag.call(e.components,o)?e.components[o]:o}if(e.evaluater)return e.evaluater.evaluateExpression(i);ks(e)}function ks(e,t){const r=new yn("Cannot handle MDX estrees without `createEvaluater`",{ancestors:e.ancestors,place:t,ruleId:"mdx-estree",source:"hast-util-to-jsx-runtime"});throw r.file=e.filePath||void 0,r.url=iN+"#cannot-handle-mdx-estrees-without-createevaluater",r}function R6(e){const t={};let r;for(r in e)ag.call(e,r)&&(t[O6(r)]=e[r]);return t}function O6(e){let t=e.replace(g6,z6);return t.slice(0,3)==="ms-"&&(t="-"+t),t}function z6(e){return"-"+e.toLowerCase()}const uh={action:["form"],cite:["blockquote","del","ins","q"],data:["object"],formAction:["button","input"],href:["a","area","base","link"],icon:["menuitem"],itemId:null,manifest:["html"],ping:["a","area"],poster:["video"],src:["audio","embed","iframe","img","input","script","source","track","video"]},M6={};function L6(e,t){const r=M6,i=typeof r.includeImageAlt=="boolean"?r.includeImageAlt:!0,o=typeof r.includeHtml=="boolean"?r.includeHtml:!0;return uN(e,i,o)}function uN(e,t,r){if(B6(e)){if("value"in e)return e.type==="html"&&!r?"":e.value;if(t&&"alt"in e&&e.alt)return e.alt;if("children"in e)return J0(e.children,t,r)}return Array.isArray(e)?J0(e,t,r):""}function J0(e,t,r){const i=[];let o=-1;for(;++o<e.length;)i[o]=uN(e[o],t,r);return i.join("")}function B6(e){return!!(e&&typeof e=="object")}const W0=document.createElement("i");function og(e){const t="&"+e+";";W0.innerHTML=t;const r=W0.textContent;return r.charCodeAt(r.length-1)===59&&e!=="semi"||r===t?!1:r}
vendor: 10,819 bytes, line 80
80function Hr(e,t,r,i){const o=e.length;let s=0,u;if(t<0?t=-t>o?0:o+t:t=t>o?o:t,r=r>0?r:0,i.length<1e4)u=Array.from(i),u.unshift(t,r),e.splice(...u);else for(r&&e.splice(t,r);s<i.length;)u=i.slice(s,s+1e4),u.unshift(t,0),e.splice(...u),s+=1e4,t+=1e4}function pr(e,t){return e.length>0?(Hr(e,e.length,0,t),e):t}const ew={}.hasOwnProperty;function F6(e){const t={};let r=-1;for(;++r<e.length;)I6(t,e[r]);return t}function I6(e,t){let r;for(r in t){const o=(ew.call(e,r)?e[r]:void 0)||(e[r]={}),s=t[r];let u;if(s)for(u in s){ew.call(o,u)||(o[u]=[]);const d=s[u];U6(o[u],Array.isArray(d)?d:d?[d]:[])}}}function U6(e,t){let r=-1;const i=[];for(;++r<t.length;)(t[r].add==="after"?e:i).push(t[r]);Hr(e,0,0,i)}function cN(e,t){const r=Number.parseInt(e,t);return r<9||r===11||r>13&&r<32||r>126&&r<160||r>55295&&r<57344||r>64975&&r<65008||(r&65535)===65535||(r&65535)===65534||r>1114111?"�":String.fromCodePoint(r)}function Hl(e){return e.replace(/[\t\n\r ]+/g," ").replace(/^ | $/g,"").toLowerCase().toUpperCase()}const Fr=oi(/[A-Za-z]/),Wn=oi(/[\dA-Za-z]/),P6=oi(/[#-'*+\--9=?A-Z^-~]/);function Qh(e){return e!==null&&(e<32||e===127)}const Jh=oi(/\d/),V6=oi(/[\dA-Fa-f]/),H6=oi(/[!-/:-@[-`{-~]/);function _e(e){return e!==null&&e<-2}function Ln(e){return e!==null&&(e<0||e===32)}function We(e){return e===-2||e===-1||e===32}const q6=oi(new RegExp("\\p{P}|\\p{S}","u")),Z6=oi(/\s/);function oi(e){return t;function t(r){return r!==null&&r>-1&&e.test(String.fromCharCode(r))}}function ro(e){const t=[];let r=-1,i=0,o=0;for(;++r<e.length;){const s=e.charCodeAt(r);let u="";if(s===37&&Wn(e.charCodeAt(r+1))&&Wn(e.charCodeAt(r+2)))o=2;else if(s<128)/[!#$&-;=?-Z_a-z~]/.test(String.fromCharCode(s))||(u=String.fromCharCode(s));else if(s>55295&&s<57344){const d=e.charCodeAt(r+1);s<56320&&d>56319&&d<57344?(u=String.fromCharCode(s,d),o=1):u="�"}else u=String.fromCharCode(s);u&&(t.push(e.slice(i,r),encodeURIComponent(u)),i=r+o+1,u=""),o&&(r+=o,o=0)}return t.join("")+e.slice(i)}function ct(e,t,r,i){const o=i?i-1:Number.POSITIVE_INFINITY;let s=0;return u;function u(p){return We(p)?(e.enter(r),d(p)):t(p)}function d(p){return We(p)&&s++<o?(e.consume(p),d):(e.exit(r),t(p))}}const $6={tokenize:K6};function K6(e){const t=e.attempt(this.parser.constructs.contentInitial,i,o);let r;return t;function i(d){if(d===null){e.consume(d);return}return e.enter("lineEnding"),e.consume(d),e.exit("lineEnding"),ct(e,t,"linePrefix")}function o(d){return e.enter("paragraph"),s(d)}function s(d){const p=e.enter("chunkText",{contentType:"text",previous:r});return r&&(r.next=p),r=p,u(d)}function u(d){if(d===null){e.exit("chunkText"),e.exit("paragraph"),e.consume(d);return}return _e(d)?(e.consume(d),e.exit("chunkText"),s):(e.consume(d),u)}}const G6={tokenize:Y6},tw={tokenize:X6};function Y6(e){const t=this,r=[];let i=0,o,s,u;return d;function d(O){if(i<r.length){const B=r[i];return t.containerState=B[1],e.attempt(B[0].continuation,p,h)(O)}return h(O)}function p(O){if(i++,t.containerState._closeFlow){t.containerState._closeFlow=void 0,o&&M();const B=t.events.length;let T=B,L;for(;T--;)if(t.events[T][0]==="exit"&&t.events[T][1].type==="chunkFlow"){L=t.events[T][1].end;break}k(i);let I=B;for(;I<t.events.length;)t.events[I][1].end={...L},I++;return Hr(t.events,T+1,0,t.events.slice(B)),t.events.length=I,h(O)}return d(O)}function h(O){if(i===r.length){if(!o)return x(O);if(o.currentConstruct&&o.currentConstruct.concrete)return E(O);t.interrupt=!!(o.currentConstruct&&!o._gfmTableDynamicInterruptHack)}return t.containerState={},e.check(tw,y,v)(O)}function y(O){return o&&M(),k(i),x(O)}function v(O){return t.parser.lazy[t.now().line]=i!==r.length,u=t.now().offset,E(O)}function x(O){return t.containerState={},e.attempt(tw,b,E)(O)}function b(O){return i++,r.push([t.currentConstruct,t.containerState]),x(O)}function E(O){if(O===null){o&&M(),k(0),e.consume(O);return}return o=o||t.parser.flow(t.now()),e.enter("chunkFlow",{_tokenizer:o,contentType:"flow",previous:s}),N(O)}function N(O){if(O===null){C(e.exit("chunkFlow"),!0),k(0),e.consume(O);return}return _e(O)?(e.consume(O),C(e.exit("chunkFlow")),i=0,t.interrupt=void 0,d):(e.consume(O),N)}function C(O,B){const T=t.sliceStream(O);if(B&&T.push(null),O.previous=s,s&&(s.next=O),s=O,o.defineSkip(O.start),o.write(T),t.parser.lazy[O.start.line]){let L=o.events.length;for(;L--;)if(o.events[L][1].start.offset<u&&(!o.events[L][1].end||o.events[L][1].end.offset>u))return;const I=t.events.length;let _=I,X,V;for(;_--;)if(t.events[_][0]==="exit"&&t.events[_][1].type==="chunkFlow"){if(X){V=t.events[_][1].end;break}X=!0}for(k(i),L=I;L<t.events.length;)t.events[L][1].end={...V},L++;Hr(t.events,_+1,0,t.events.slice(I)),t.events.length=L}}function k(O){let B=r.length;for(;B-- >O;){const T=r[B];t.containerState=T[1],T[0].exit.call(t,e)}r.length=O}function M(){o.write([null]),s=void 0,o=void 0,t.containerState._closeFlow=void 0}}function X6(e,t,r){return ct(e,e.attempt(this.parser.constructs.document,t,r),"linePrefix",this.parser.constructs.disable.null.includes("codeIndented")?void 0:4)}function nw(e){if(e===null||Ln(e)||Z6(e))return 1;if(q6(e))return 2}function sg(e,t,r){const i=[];let o=-1;for(;++o<e.length;){const s=e[o].resolveAll;s&&!i.includes(s)&&(t=s(t,r),i.push(s))}return t}const Wh={name:"attention",resolveAll:Q6,tokenize:J6};function Q6(e,t){let r=-1,i,o,s,u,d,p,h,y;for(;++r<e.length;)if(e[r][0]==="enter"&&e[r][1].type==="attentionSequence"&&e[r][1]._close){for(i=r;i--;)if(e[i][0]==="exit"&&e[i][1].type==="attentionSequence"&&e[i][1]._open&&t.sliceSerialize(e[i][1]).charCodeAt(0)===t.sliceSerialize(e[r][1]).charCodeAt(0)){if((e[i][1]._close||e[r][1]._open)&&(e[r][1].end.offset-e[r][1].start.offset)%3&&!((e[i][1].end.offset-e[i][1].start.offset+e[r][1].end.offset-e[r][1].start.offset)%3))continue;p=e[i][1].end.offset-e[i][1].start.offset>1&&e[r][1].end.offset-e[r][1].start.offset>1?2:1;const v={...e[i][1].end},x={...e[r][1].start};rw(v,-p),rw(x,p),u={type:p>1?"strongSequence":"emphasisSequence",start:v,end:{...e[i][1].end}},d={type:p>1?"strongSequence":"emphasisSequence",start:{...e[r][1].start},end:x},s={type:p>1?"strongText":"emphasisText",start:{...e[i][1].end},end:{...e[r][1].start}},o={type:p>1?"strong":"emphasis",start:{...u.start},end:{...d.end}},e[i][1].end={...u.start},e[r][1].start={...d.end},h=[],e[i][1].end.offset-e[i][1].start.offset&&(h=pr(h,[["enter",e[i][1],t],["exit",e[i][1],t]])),h=pr(h,[["enter",o,t],["enter",u,t],["exit",u,t],["enter",s,t]]),h=pr(h,sg(t.parser.constructs.insideSpan.null,e.slice(i+1,r),t)),h=pr(h,[["exit",s,t],["enter",d,t],["exit",d,t],["exit",o,t]]),e[r][1].end.offset-e[r][1].start.offset?(y=2,h=pr(h,[["enter",e[r][1],t],["exit",e[r][1],t]])):y=0,Hr(e,i-1,r-i+3,h),r=i+h.length-y-2;break}}for(r=-1;++r<e.length;)e[r][1].type==="attentionSequence"&&(e[r][1].type="data");return e}function J6(e,t){const r=this.parser.constructs.attentionMarkers.null,i=this.previous,o=nw(i);let s;return u;function u(p){return s=p,e.enter("attentionSequence"),d(p)}function d(p){if(p===s)return e.consume(p),d;const h=e.exit("attentionSequence"),y=nw(p),v=!y||y===2&&o||r.includes(p),x=!o||o===2&&y||r.includes(i);return h._open=!!(s===42?v:v&&(o||!x)),h._close=!!(s===42?x:x&&(y||!v)),t(p)}}function rw(e,t){e.column+=t,e.offset+=t,e._bufferIndex+=t}const W6={name:"autolink",tokenize:eB};function eB(e,t,r){let i=0;return o;function o(b){return e.enter("autolink"),e.enter("autolinkMarker"),e.consume(b),e.exit("autolinkMarker"),e.enter("autolinkProtocol"),s}function s(b){return Fr(b)?(e.consume(b),u):b===64?r(b):h(b)}function u(b){return b===43||b===45||b===46||Wn(b)?(i=1,d(b)):h(b)}function d(b){return b===58?(e.consume(b),i=0,p):(b===43||b===45||b===46||Wn(b))&&i++<32?(e.consume(b),d):(i=0,h(b))}function p(b){return b===62?(e.exit("autolinkProtocol"),e.enter("autolinkMarker"),e.consume(b),e.exit("autolinkMarker"),e.exit("autolink"),t):b===null||b===32||b===60||Qh(b)?r(b):(e.consume(b),p)}function h(b){return b===64?(e.consume(b),y):P6(b)?(e.consume(b),h):r(b)}function y(b){return Wn(b)?v(b):r(b)}function v(b){return b===46?(e.consume(b),i=0,y):b===62?(e.exit("autolinkProtocol").type="autolinkEmail",e.enter("autolinkMarker"),e.consume(b),e.exit("autolinkMarker"),e.exit("autolink"),t):x(b)}function x(b){if((b===45||Wn(b))&&i++<63){const E=b===45?x:v;return e.consume(b),E}return r(b)}}const Ad={partial:!0,tokenize:tB};function tB(e,t,r){return i;function i(s){return We(s)?ct(e,o,"linePrefix")(s):o(s)}function o(s){return s===null||_e(s)?t(s):r(s)}}const dN={continuation:{tokenize:rB},exit:aB,name:"blockQuote",tokenize:nB};function nB(e,t,r){const i=this;return o;function o(u){if(u===62){const d=i.containerState;return d.open||(e.enter("blockQuote",{_container:!0}),d.open=!0),e.enter("blockQuotePrefix"),e.enter("blockQuoteMarker"),e.consume(u),e.exit("blockQuoteMarker"),s}return r(u)}function s(u){return We(u)?(e.enter("blockQuotePrefixWhitespace"),e.consume(u),e.exit("blockQuotePrefixWhitespace"),e.exit("blockQuotePrefix"),t):(e.exit("blockQuotePrefix"),t(u))}}function rB(e,t,r){const i=this;return o;function o(u){return We(u)?ct(e,s,"linePrefix",i.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(u):s(u)}function s(u){return e.attempt(dN,t,r)(u)}}function aB(e){e.exit("blockQuote")}const fN={name:"characterEscape",tokenize:iB};function iB(e,t,r){return i;function i(s){return e.enter("characterEscape"),e.enter("escapeMarker"),e.consume(s),e.exit("escapeMarker"),o}function o(s){return H6(s)?(e.enter("characterEscapeValue"),e.consume(s),e.exit("characterEscapeValue"),e.exit("characterEscape"),t):r(s)}}const mN={name:"characterReference",tokenize:lB};function lB(e,t,r){const i=this;let o=0,s,u;return d;function d(v){return e.enter("characterReference"),e.enter("characterReferenceMarker"),e.consume(v),e.exit("characterReferenceMarker"),p}function p(v){return v===35?(e.enter("characterReferenceMarkerNumeric"),e.consume(v),e.exit("characterReferenceMarkerNumeric"),h):(e.enter("characterReferenceValue"),s=31,u=Wn,y(v))}function h(v){return v===88||v===120?(e.enter("characterReferenceMarkerHexadecimal"),e.consume(v),e.exit("characterReferenceMarkerHexadecimal"),e.enter("characterReferenceValue"),s=6,u=V6,y):(e.enter("characterReferenceValue"),s=7,u=Jh,y(v))}function y(v){if(v===59&&o){const x=e.exit("characterReferenceValue");return u===Wn&&!og(i.sliceSerialize(x))?r(v):(e.enter("characterReferenceMarker"),e.consume(v),e.exit("characterReferenceMarker"),e.exit("characterReference"),t)}return u(v)&&o++<s?(e.consume(v),y):r(v)}}const aw={partial:!0,tokenize:sB},iw={concrete:!0,name:"codeFenced",tokenize:oB};function oB(e,t,r){const i=this,o={partial:!0,tokenize:T};let s=0,u=0,d;return p;function p(L){return h(L)}function h(L){const I=i.events[i.events.length-1];return s=I&&I[1].type==="linePrefix"?I[2].sliceSerialize(I[1],!0).length:0,d=L,e.enter("co
80deFenced"),e.enter("codeFencedFence"),e.enter("codeFencedFenceSequence"),y(L)}function y(L){return L===d?(u++,e.consume(L),y):u<3?r(L):(e.exit("codeFencedFenceSequence"),We(L)?ct(e,v,"whitespace")(L):v(L))}function v(L){return L===null||_e(L)?(e.exit("codeFencedFence"),i.interrupt?t(L):e.check(aw,N,B)(L)):(e.enter("codeFencedFenceInfo"),e.enter("chunkString",{contentType:"string"}),x(L))}function x(L){return L===null||_e(L)?(e.exit("chunkString"),e.exit("codeFencedFenceInfo"),v(L)):We(L)?(e.exit("chunkString"),e.exit("codeFencedFenceInfo"),ct(e,b,"whitespace")(L)):L===96&&L===d?r(L):(e.consume(L),x)}function b(L){return L===null||_e(L)?v(L):(e.enter("codeFencedFenceMeta"),e.enter("chunkString",{contentType:"string"}),E(L))}function E(L){return L===null||_e(L)?(e.exit("chunkString"),e.exit("codeFencedFenceMeta"),v(L)):L===96&&L===d?r(L):(e.consume(L),E)}function N(L){return e.attempt(o,B,C)(L)}function C(L){return e.enter("lineEnding"),e.consume(L),e.exit("lineEnding"),k}function k(L){return s>0&&We(L)?ct(e,M,"linePrefix",s+1)(L):M(L)}function M(L){return L===null||_e(L)?e.check(aw,N,B)(L):(e.enter("codeFlowValue"),O(L))}function O(L){return L===null||_e(L)?(e.exit("codeFlowValue"),M(L)):(e.consume(L),O)}function B(L){return e.exit("codeFenced"),t(L)}function T(L,I,_){let X=0;return V;function V(z){return L.enter("lineEnding"),L.consume(z),L.exit("lineEnding"),G}function G(z){return L.enter("codeFencedFence"),We(z)?ct(L,$,"linePrefix",i.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(z):$(z)}function $(z){return z===d?(L.enter("codeFencedFenceSequence"),Q(z)):_(z)}function Q(z){return z===d?(X++,L.consume(z),Q):X>=u?(L.exit("codeFencedFenceSequence"),We(z)?ct(L,F,"whitespace")(z):F(z)):_(z)}function F(z){return z===null||_e(z)?(L.exit("codeFencedFence"),I(z)):_(z)}}}function sB(e,t,r){const i=this;return o;function o(u){return u===null?r(u):(e.enter("lineEnding"),e.consume(u),e.exit("lineEnding"),s)}function s(u){return i.parser.lazy[i.now().line]?r(u):t(u)}}const ch={name:"codeIndented",tokenize:cB},uB={partial:!0,tokenize:dB};function cB(e,t,r){const i=this;return o;function o(h){return e.enter("codeIndented"),ct(e,s,"linePrefix",5)(h)}function s(h){const y=i.events[i.events.length-1];return y&&y[1].type==="linePrefix"&&y[2].sliceSerialize(y[1],!0).length>=4?u(h):r(h)}function u(h){return h===null?p(h):_e(h)?e.attempt(uB,u,p)(h):(e.enter("codeFlowValue"),d(h))}function d(h){return h===null||_e(h)?(e.exit("codeFlowValue"),u(h)):(e.consume(h),d)}function p(h){return e.exit("codeIndented"),t(h)}}function dB(e,t,r){const i=this;return o;function o(u){return i.parser.lazy[i.now().line]?r(u):_e(u)?(e.enter("lineEnding"),e.consume(u),e.exit("lineEnding"),o):ct(e,s,"linePrefix",5)(u)}function s(u){const d=i.events[i.events.length-1];return d&&d[1].type==="linePrefix"&&d[2].sliceSerialize(d[1],!0).length>=4?t(u):_e(u)?o(u):r(u)}}const fB={name:"codeText",previous:hB,resolve:mB,tokenize:pB};function mB(e){let t=e.length-4,r=3,i,o;if((e[r][1].type==="lineEnding"||e[r][1].type==="space")&&(e[t][1].type==="lineEnding"||e[t][1].type==="space")){for(i=r;++i<t;)if(e[i][1].type==="codeTextData"){e[r][1].type="codeTextPadding",e[t][1].type="codeTextPadding",r+=2,t-=2;break}}for(i=r-1,t++;++i<=t;)o===void 0?i!==t&&e[i][1].type!=="lineEnding"&&(o=i):(i===t||e[i][1].type==="lineEnding")&&(e[o][1].type="codeTextData",i!==o+2&&(e[o][1].end=e[i-1][1].end,e.splice(o+2,i-o-2),t-=i-o-2,i=o+2),o=void 0);return e}function hB(e){return e!==96||this.events[this.events.length-1][1].type==="characterEscape"}function pB(e,t,r){let i=0,o,s;return u;function u(v){return e.enter("codeText"),e.enter("codeTextSequence"),d(v)}function d(v){return v===96?(e.consume(v),i++,d):(e.exit("codeTextSequence"),p(v))}function p(v){return v===null?r(v):v===32?(e.enter("space"),e.consume(v),e.exit("space"),p):v===96?(s=e.enter("codeTextSequence"),o=0,y(v)):_e(v)?(e.enter("lineEnding"),e.consume(v),e.exit("lineEnding"),p):(e.enter("codeTextData"),h(v))}function h(v){return v===null||v===32||v===96||_e(v)?(e.exit("codeTextData"),p(v)):(e.consume(v),h)}function y(v){return v===96?(e.consume(v),o++,y):o===i?(e.exit("codeTextSequence"),e.exit("codeText"),t(v)):(s.type="codeTextData",h(v))}}class gB{constructor(t){this.left=t?[...t]:[],this.right=[]}get(t){if(t<0||t>=this.left.length+this.right.length)throw new RangeError("Cannot access index `"+t+"` in a splice buffer of size `"+(this.left.length+this.right.length)+"`");return t<this.left.length?this.left[t]:this.right[this.right.length-t+this.left.length-1]}get length(){return this.left.length+this.right.length}shift(){return this.setCursor(0),this.right.pop()}slice(t,r){const i=r??Number.POSITIVE_INFINITY;return i<this.left.length?this.left.slice(t,i):t>this.left.length?this.right.slice(this.right.length-i+this.left.length,this.right.length-t+this.left.length).reverse():this.left.slice(t).concat(this.right.slice(this.right.length-i+this.left.length).reverse())}splice(t,r,i){const o=r||0;this.setCursor(Math.trunc(t));const s=this.right.splice(this.right.length-o,Number.POSITIVE_INFINITY);return i&&es(this.left,i),s.reverse()}pop(){return this.setCursor(Number.POSITIVE_INFINITY),this.left.pop()}push(t){this.setCursor(Number.POSITIVE_INFINITY),this.left.push(t)}pushMany(t){this.setCursor(Number.POSITIVE_INFINITY),es(this.left,t)}unshift(t){this.setCursor(0),this.right.push(t)}unshiftMany(t){this.setCursor(0),es(this.right,t.reverse())}setCursor(t){if(!(t===this.left.length||t>this.left.length&&this.right.length===0||t<0&&this.left.length===0))if(t<this.left.length){const r=this.left.splice(t,Number.POSITIVE_INFINITY);es(this.right,r.reverse())}else{const r=this.right.splice(this.left.length+this.right.length-t,Number.POSITIVE_INFINITY);es(this.left,r.reverse())}}}function es(e,t){let r=0;if(t.length<1e4)e.push(...t);else for(;r<t.length;)e.push(...t.slice(r,r+1e4)),r+=1e4}function hN(e){const t={};let r=-1,i,o,s,u,d,p,h;const y=new gB(e);for(;++r<y.length;){for(;r in t;)r=t[r];if(i=y.get(r),r&&i[1].type==="chunkFlow"&&y.get(r-1)[1].type==="listItemPrefix"&&(p=i[1]._tokenizer.events,s=0,s<p.length&&p[s][1].type==="lineEndingBlank"&&(s+=2),s<p.length&&p[s][1].type==="content"))for(;++s<p.length&&p[s][1].type!=="content";)p[s][1].type==="chunkText"&&(p[s][1]._isInFirstContentOfListItem=!0,s++);if(i[0]==="enter")i[1].contentType&&(Object.assign(t,yB(y,r)),r=t[r],h=!0);else if(i[1]._container){for(s=r,o=void 0;s--;)if(u=y.get(s),u[1].type==="lineEnding"||u[1].type==="lineEndingBlank")u[0]==="enter"&&(o&&(y.get(o)[1].type="lineEndingBlank"),u[1].type="lineEnding",o=s);else if(!(u[1].type==="linePrefix"||u[1].type==="listItemIndent"))break;o&&(i[1].end={...y.get(o)[1].start},d=y.slice(o,r),d.unshift(i),y.splice(o,r-o+1,d))}}return Hr(e,0,Number.POSITIVE_INFINITY,y.slice(0)),!h}function yB(e,t){const r=e.get(t)[1],i=e.get(t)[2];let o=t-1;const s=[];let u=r._tokenizer;u||(u=i.parser[r.contentType](r.start),r._contentTypeTextTrailing&&(u._contentTypeTextTrailing=!0));const d=u.events,p=[],h={};let y,v,x=-1,b=r,E=0,N=0;const C=[N];for(;b;){for(;e.get(++o)[1]!==b;);s.push(o),b._tokenizer||(y=i.sliceStream(b),b.next||y.push(null),v&&u.defineSki
vendor: 21,787 bytes, line 80
80p(b.start),b._isInFirstContentOfListItem&&(u._gfmTasklistFirstContentOfListItem=!0),u.write(y),b._isInFirstContentOfListItem&&(u._gfmTasklistFirstContentOfListItem=void 0)),v=b,b=b.next}for(b=r;++x<d.length;)d[x][0]==="exit"&&d[x-1][0]==="enter"&&d[x][1].type===d[x-1][1].type&&d[x][1].start.line!==d[x][1].end.line&&(N=x+1,C.push(N),b._tokenizer=void 0,b.previous=void 0,b=b.next);for(u.events=[],b?(b._tokenizer=void 0,b.previous=void 0):C.pop(),x=C.length;x--;){const k=d.slice(C[x],C[x+1]),M=s.pop();p.push([M,M+k.length-1]),e.splice(M,2,k)}for(p.reverse(),x=-1;++x<p.length;)h[E+p[x][0]]=E+p[x][1],E+=p[x][1]-p[x][0]-1;return h}const vB={resolve:xB,tokenize:wB},bB={partial:!0,tokenize:SB};function xB(e){return hN(e),e}function wB(e,t){let r;return i;function i(d){return e.enter("content"),r=e.enter("chunkContent",{contentType:"content"}),o(d)}function o(d){return d===null?s(d):_e(d)?e.check(bB,u,s)(d):(e.consume(d),o)}function s(d){return e.exit("chunkContent"),e.exit("content"),t(d)}function u(d){return e.consume(d),e.exit("chunkContent"),r.next=e.enter("chunkContent",{contentType:"content",previous:r}),r=r.next,o}}function SB(e,t,r){const i=this;return o;function o(u){return e.exit("chunkContent"),e.enter("lineEnding"),e.consume(u),e.exit("lineEnding"),ct(e,s,"linePrefix")}function s(u){if(u===null||_e(u))return r(u);const d=i.events[i.events.length-1];return!i.parser.constructs.disable.null.includes("codeIndented")&&d&&d[1].type==="linePrefix"&&d[2].sliceSerialize(d[1],!0).length>=4?t(u):e.interrupt(i.parser.constructs.flow,r,t)(u)}}function pN(e,t,r,i,o,s,u,d,p){const h=p||Number.POSITIVE_INFINITY;let y=0;return v;function v(k){return k===60?(e.enter(i),e.enter(o),e.enter(s),e.consume(k),e.exit(s),x):k===null||k===32||k===41||Qh(k)?r(k):(e.enter(i),e.enter(u),e.enter(d),e.enter("chunkString",{contentType:"string"}),N(k))}function x(k){return k===62?(e.enter(s),e.consume(k),e.exit(s),e.exit(o),e.exit(i),t):(e.enter(d),e.enter("chunkString",{contentType:"string"}),b(k))}function b(k){return k===62?(e.exit("chunkString"),e.exit(d),x(k)):k===null||k===60||_e(k)?r(k):(e.consume(k),k===92?E:b)}function E(k){return k===60||k===62||k===92?(e.consume(k),b):b(k)}function N(k){return!y&&(k===null||k===41||Ln(k))?(e.exit("chunkString"),e.exit(d),e.exit(u),e.exit(i),t(k)):y<h&&k===40?(e.consume(k),y++,N):k===41?(e.consume(k),y--,N):k===null||k===32||k===40||Qh(k)?r(k):(e.consume(k),k===92?C:N)}function C(k){return k===40||k===41||k===92?(e.consume(k),N):N(k)}}function gN(e,t,r,i,o,s){const u=this;let d=0,p;return h;function h(b){return e.enter(i),e.enter(o),e.consume(b),e.exit(o),e.enter(s),y}function y(b){return d>999||b===null||b===91||b===93&&!p||b===94&&!d&&"_hiddenFootnoteSupport"in u.parser.constructs?r(b):b===93?(e.exit(s),e.enter(o),e.consume(b),e.exit(o),e.exit(i),t):_e(b)?(e.enter("lineEnding"),e.consume(b),e.exit("lineEnding"),y):(e.enter("chunkString",{contentType:"string"}),v(b))}function v(b){return b===null||b===91||b===93||_e(b)||d++>999?(e.exit("chunkString"),y(b)):(e.consume(b),p||(p=!We(b)),b===92?x:v)}function x(b){return b===91||b===92||b===93?(e.consume(b),d++,v):v(b)}}function yN(e,t,r,i,o,s){let u;return d;function d(x){return x===34||x===39||x===40?(e.enter(i),e.enter(o),e.consume(x),e.exit(o),u=x===40?41:x,p):r(x)}function p(x){return x===u?(e.enter(o),e.consume(x),e.exit(o),e.exit(i),t):(e.enter(s),h(x))}function h(x){return x===u?(e.exit(s),p(u)):x===null?r(x):_e(x)?(e.enter("lineEnding"),e.consume(x),e.exit("lineEnding"),ct(e,h,"linePrefix")):(e.enter("chunkString",{contentType:"string"}),y(x))}function y(x){return x===u||x===null||_e(x)?(e.exit("chunkString"),h(x)):(e.consume(x),x===92?v:y)}function v(x){return x===u||x===92?(e.consume(x),y):y(x)}}function ds(e,t){let r;return i;function i(o){return _e(o)?(e.enter("lineEnding"),e.consume(o),e.exit("lineEnding"),r=!0,i):We(o)?ct(e,i,r?"linePrefix":"lineSuffix")(o):t(o)}}const EB={name:"definition",tokenize:CB},NB={partial:!0,tokenize:jB};function CB(e,t,r){const i=this;let o;return s;function s(b){return e.enter("definition"),u(b)}function u(b){return gN.call(i,e,d,r,"definitionLabel","definitionLabelMarker","definitionLabelString")(b)}function d(b){return o=Hl(i.sliceSerialize(i.events[i.events.length-1][1]).slice(1,-1)),b===58?(e.enter("definitionMarker"),e.consume(b),e.exit("definitionMarker"),p):r(b)}function p(b){return Ln(b)?ds(e,h)(b):h(b)}function h(b){return pN(e,y,r,"definitionDestination","definitionDestinationLiteral","definitionDestinationLiteralMarker","definitionDestinationRaw","definitionDestinationString")(b)}function y(b){return e.attempt(NB,v,v)(b)}function v(b){return We(b)?ct(e,x,"whitespace")(b):x(b)}function x(b){return b===null||_e(b)?(e.exit("definition"),i.parser.defined.push(o),t(b)):r(b)}}function jB(e,t,r){return i;function i(d){return Ln(d)?ds(e,o)(d):r(d)}function o(d){return yN(e,s,r,"definitionTitle","definitionTitleMarker","definitionTitleString")(d)}function s(d){return We(d)?ct(e,u,"whitespace")(d):u(d)}function u(d){return d===null||_e(d)?t(d):r(d)}}const kB={name:"hardBreakEscape",tokenize:AB};function AB(e,t,r){return i;function i(s){return e.enter("hardBreakEscape"),e.consume(s),o}function o(s){return _e(s)?(e.exit("hardBreakEscape"),t(s)):r(s)}}const TB={name:"headingAtx",resolve:_B,tokenize:DB};function _B(e,t){let r=e.length-2,i=3,o,s;return e[i][1].type==="whitespace"&&(i+=2),r-2>i&&e[r][1].type==="whitespace"&&(r-=2),e[r][1].type==="atxHeadingSequence"&&(i===r-1||r-4>i&&e[r-2][1].type==="whitespace")&&(r-=i+1===r?2:4),r>i&&(o={type:"atxHeadingText",start:e[i][1].start,end:e[r][1].end},s={type:"chunkText",start:e[i][1].start,end:e[r][1].end,contentType:"text"},Hr(e,i,r-i+1,[["enter",o,t],["enter",s,t],["exit",s,t],["exit",o,t]])),e}function DB(e,t,r){let i=0;return o;function o(y){return e.enter("atxHeading"),s(y)}function s(y){return e.enter("atxHeadingSequence"),u(y)}function u(y){return y===35&&i++<6?(e.consume(y),u):y===null||Ln(y)?(e.exit("atxHeadingSequence"),d(y)):r(y)}function d(y){return y===35?(e.enter("atxHeadingSequence"),p(y)):y===null||_e(y)?(e.exit("atxHeading"),t(y)):We(y)?ct(e,d,"whitespace")(y):(e.enter("atxHeadingText"),h(y))}function p(y){return y===35?(e.consume(y),p):(e.exit("atxHeadingSequence"),d(y))}function h(y){return y===null||y===35||Ln(y)?(e.exit("atxHeadingText"),d(y)):(e.consume(y),h)}}const RB=["address","article","aside","base","basefont","blockquote","body","caption","center","col","colgroup","dd","details","dialog","dir","div","dl","dt","fieldset","figcaption","figure","footer","form","frame","frameset","h1","h2","h3","h4","h5","h6","head","header","hr","html","iframe","legend","li","link","main","menu","menuitem","nav","noframes","ol","optgroup","option","p","param","search","section","summary","table","tbody","td","tfoot","th","thead","title","tr","track","ul"],lw=["pre","script","style","textarea"],OB={concrete:!0,name:"htmlFlow",resolveTo:LB,tokenize:BB},zB={partial:!0,tokenize:IB},MB={partial:!0,tokenize:FB};function LB(e){let t=e.length;for(;t--&&!(e[t][0]==="enter"&&e[t][1].type==="htmlFlow"););return t>1&&e[t-2][1].type==="linePrefix"&&(e[t][1].start=e[t-2][1].start,e[t+1][1].start=e[t-2][1].start,e.splice(t-2,2)),e}function BB(e,t,r){const i=this;let o,s,u,d,p;return h;function h(D){return y(D)}function y(D){return e.enter("htmlFlow"),e.enter("htmlFlowData"),e.consume(D),v}function v(D){return D===33?(e.consume(D),x):D===47?(e.consume(D),s=!0,N):D===63?(e.consume(D),o=3,i.interrupt?t:A):Fr(D)?(e.consume(D),u=String.fromCharCode(D),C):r(D)}function x(D){return D===45?(e.consume(D),o=2,b):D===91?(e.consume(D),o=5,d=0,E):Fr(D)?(e.consume(D),o=4,i.interrupt?t:A):r(D)}function b(D){return D===45?(e.consume(D),i.interrupt?t:A):r(D)}function E(D){const ge="CDATA[";return D===ge.charCodeAt(d++)?(e.consume(D),d===ge.length?i.interrupt?t:$:E):r(D)}function N(D){return Fr(D)?(e.consume(D),u=String.fromCharCode(D),C):r(D)}function C(D){if(D===null||D===47||D===62||Ln(D)){const ge=D===47,ke=u.toLowerCase();return!ge&&!s&&lw.includes(ke)?(o=1,i.interrupt?t(D):$(D)):RB.includes(u.toLowerCase())?(o=6,ge?(e.consume(D),k):i.interrupt?t(D):$(D)):(o=7,i.interrupt&&!i.parser.lazy[i.now().line]?r(D):s?M(D):O(D))}return D===45||Wn(D)?(e.consume(D),u+=String.fromCharCode(D),C):r(D)}function k(D){return D===62?(e.consume(D),i.interrupt?t:$):r(D)}function M(D){return We(D)?(e.consume(D),M):V(D)}function O(D){return D===47?(e.consume(D),V):D===58||D===95||Fr(D)?(e.consume(D),B):We(D)?(e.consume(D),O):V(D)}function B(D){return D===45||D===46||D===58||D===95||Wn(D)?(e.consume(D),B):T(D)}function T(D){return D===61?(e.consume(D),L):We(D)?(e.consume(D),T):O(D)}function L(D){return D===null||D===60||D===61||D===62||D===96?r(D):D===34||D===39?(e.consume(D),p=D,I):We(D)?(e.consume(D),L):_(D)}function I(D){return D===p?(e.consume(D),p=null,X):D===null||_e(D)?r(D):(e.consume(D),I)}function _(D){return D===null||D===34||D===39||D===47||D===60||D===61||D===62||D===96||Ln(D)?T(D):(e.consume(D),_)}function X(D){return D===47||D===62||We(D)?O(D):r(D)}function V(D){return D===62?(e.consume(D),G):r(D)}function G(D){return D===null||_e(D)?$(D):We(D)?(e.consume(D),G):r(D)}function $(D){return D===45&&o===2?(e.consume(D),R):D===60&&o===1?(e.consume(D),K):D===62&&o===4?(e.consume(D),pe):D===63&&o===3?(e.consume(D),A):D===93&&o===5?(e.consume(D),ne):_e(D)&&(o===6||o===7)?(e.exit("htmlFlowData"),e.check(zB,ce,Q)(D)):D===null||_e(D)?(e.exit("htmlFlowData"),Q(D)):(e.consume(D),$)}function Q(D){return e.check(MB,F,ce)(D)}function F(D){return e.enter("lineEnding"),e.consume(D),e.exit("lineEnding"),z}function z(D){return D===null||_e(D)?Q(D):(e.enter("htmlFlowData"),$(D))}function R(D){return D===45?(e.consume(D),A):$(D)}function K(D){return D===47?(e.consume(D),u="",q):$(D)}function q(D){if(D===62){const ge=u.toLowerCase();return lw.includes(ge)?(e.consume(D),pe):$(D)}return Fr(D)&&u.length<8?(e.consume(D),u+=String.fromCharCode(D),q):$(D)}function ne(D){return D===93?(e.consume(D),A):$(D)}function A(D){return D===62?(e.consume(D),pe):D===45&&o===2?(e.consume(D),A):$(D)}function pe(D){return D===null||_e(D)?(e.exit("htmlFlowData"),ce(D)):(e.consume(D),pe)}function ce(D){return e.exit("htmlFlow"),t(D)}}function FB(e,t,r){const i=this;return o;function o(u){return _e(u)?(e.enter("lineEnding"),e.consume(u),e.exit("lineEnding"),s):r(u)}function s(u){return i.parser.lazy[i.now().line]?r(u):t(u)}}function IB(e,t,r){return i;function i(o){return e.enter("lineEnding"),e.consume(o),e.exit("lineEnding"),e.attempt(Ad,t,r)}}const UB={name:"htmlText",tokenize:PB};function PB(e,t,r){const i=this;let o,s,u;return d;function d(A){return e.enter("htmlText"),e.enter("htmlTextData"),e.consume(A),p}function p(A){return A===33?(e.consume(A),h):A===47?(e.consume(A),T):A===63?(e.consume(A),O):Fr(A)?(e.consume(A),_):r(A)}function h(A){return A===45?(e.consume(A),y):A===91?(e.consume(A),s=0,E):Fr(A)?(e.consume(A),M):r(A)}function y(A){return A===45?(e.consume(A),b):r(A)}function v(A){return A===null?r(A):A===45?(e.consume(A),x):_e(A)?(u=v,K(A)):(e.consume(A),v)}function x(A){return A===45?(e.consume(A),b):v(A)}function b(A){return A===62?R(A):A===45?x(A):v(A)}function E(A){const pe="CDATA[";return A===pe.charCodeAt(s++)?(e.consume(A),s===pe.length?N:E):r(A)}function N(A){return A===null?r(A):A===93?(e.consume(A),C):_e(A)?(u=N,K(A)):(e.consume(A),N)}function C(A){return A===93?(e.consume(A),k):N(A)}function k(A){return A===62?R(A):A===93?(e.consume(A),k):N(A)}function M(A){return A===null||A===62?R(A):_e(A)?(u=M,K(A)):(e.consume(A),M)}function O(A){return A===null?r(A):A===63?(e.consume(A),B):_e(A)?(u=O,K(A)):(e.consume(A),O)}function B(A){return A===62?R(A):O(A)}function T(A){return Fr(A)?(e.consume(A),L):r(A)}function L(A){return A===45||Wn(A)?(e.consume(A),L):I(A)}function I(A){return _e(A)?(u=I,K(A)):We(A)?(e.consume(A),I):R(A)}function _(A){return A===45||Wn(A)?(e.consume(A),_):A===47||A===62||Ln(A)?X(A):r(A)}function X(A){return A===47?(e.consume(A),R):A===58||A===95||Fr(A)?(e.consume(A),V):_e(A)?(u=X,K(A)):We(A)?(e.consume(A),X):R(A)}function V(A){return A===45||A===46||A===58||A===95||Wn(A)?(e.consume(A),V):G(A)}function G(A){return A===61?(e.consume(A),$):_e(A)?(u=G,K(A)):We(A)?(e.consume(A),G):X(A)}function $(A){return A===null||A===60||A===61||A===62||A===96?r(A):A===34||A===39?(e.consume(A),o=A,Q):_e(A)?(u=$,K(A)):We(A)?(e.consume(A),$):(e.consume(A),F)}function Q(A){return A===o?(e.consume(A),o=void 0,z):A===null?r(A):_e(A)?(u=Q,K(A)):(e.consume(A),Q)}function F(A){return A===null||A===34||A===39||A===60||A===61||A===96?r(A):A===47||A===62||Ln(A)?X(A):(e.consume(A),F)}function z(A){return A===47||A===62||Ln(A)?X(A):r(A)}function R(A){return A===62?(e.consume(A),e.exit("htmlTextData"),e.exit("htmlText"),t):r(A)}function K(A){return e.exit("htmlTextData"),e.enter("lineEnding"),e.consume(A),e.exit("lineEnding"),q}function q(A){return We(A)?ct(e,ne,"linePrefix",i.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(A):ne(A)}function ne(A){return e.enter("htmlTextData"),u(A)}}const ug={name:"labelEnd",resolveAll:ZB,resolveTo:$B,tokenize:KB},VB={tokenize:GB},HB={tokenize:YB},qB={tokenize:XB};function ZB(e){let t=-1;const r=[];for(;++t<e.length;){const i=e[t][1];if(r.push(e[t]),i.type==="labelImage"||i.type==="labelLink"||i.type==="labelEnd"){const o=i.type==="labelImage"?4:2;i.type="data",t+=o}}return e.length!==r.length&&Hr(e,0,e.length,r),e}function $B(e,t){let r=e.length,i=0,o,s,u,d;for(;r--;)if(o=e[r][1],s){if(o.type==="link"||o.type==="labelLink"&&o._inactive)break;e[r][0]==="enter"&&o.type==="labelLink"&&(o._inactive=!0)}else if(u){if(e[r][0]==="enter"&&(o.type==="labelImage"||o.type==="labelLink")&&!o._balanced&&(s=r,o.type!=="labelLink")){i=2;break}}else o.type==="labelEnd"&&(u=r);const p={type:e[s][1].type==="labelLink"?"link":"image",start:{...e[s][1].start},end:{...e[e.length-1][1].end}},h={type:"label",start:{...e[s][1].start},end:{...e[u][1].end}},y={type:"labelText",start:{...e[s+i+2][1].end},end:{...e[u-2][1].start}};return d=[["enter",p,t],["enter",h,t]],d=pr(d,e.slice(s+1,s+i+3)),d=pr(d,[["enter",y,t]]),d=pr(d,sg(t.parser.constructs.insideSpan.null,e.slice(s+i+4,u-3),t)),d=pr(d,[["exit",y,t],e[u-2],e[u-1],["exit",h,t]]),d=pr(d,e.slice(u+1)),d=pr(d,[["exit",p,t]]),Hr(e,s,e.length,d),e}function KB(e,t,r){const i=this;let o=i.events.length,s,u;for(;o--;)if((i.events[o][1].type==="labelImage"||i.events[o][1].type==="labelLink")&&!i.events[o][1]._balanced){s=i.events[o][1];break}return d;function d(x){return s?s._inactive?v(x):(u=i.parser.defined.includes(Hl(i.sliceSerialize({start:s.end,end:i.now()}))),e.enter("labelEnd"),e.enter("labelMarker"),e.consume(x),e.exit("labelMarker"),e.exit("labelEnd"),p):r(x)}function p(x){return x===40?e.attempt(VB,y,u?y:v)(x):x===91?e.attempt(HB,y,u?h:v)(x):u?y(x):v(x)}function h(x){return e.attempt(qB,y,v)(x)}function y(x){return t(x)}function v(x){return s._balanced=!0,r(x)}}function GB(e,t,r){return i;function i(v){return e.enter("resource"),e.enter("resourceMarker"),e.consume(v),e.exit("resourceMarker"),o}function o(v){return Ln(v)?ds(e,s)(v):s(v)}function s(v){return v===41?y(v):pN(e,u,d,"resourceDestination","resourceDestinationLiteral","resourceDestinationLiteralMarker","resourceDestinationRaw","resourceDestinationString",32)(v)}function u(v){return Ln(v)?ds(e,p)(v):y(v)}function d(v){return r(v)}function p(v){return v===34||v===39||v===40?yN(e,h,r,"resourceTitle","resourceTitleMarker","resourceTitleString")(v):y(v)}function h(v){return Ln(v)?ds(e,y)(v):y(v)}function y(v){return v===41?(e.enter("resourceMarker"),e.consume(v),e.exit("resourceMarker"),e.exit("resource"),t):r(v)}}function YB(e,t,r){const i=this;return o;function o(d){return gN.call(i,e,s,u,"reference","referenceMarker","referenceString")(d)}function s(d){return i.parser.defined.includes(Hl(i.sliceSerialize(i.events[i.events.length-1][1]).slice(1,-1)))?t(d):r(d)}function u(d){return r(d)}}function XB(e,t,r){return i;function i(s){return e.enter("reference"),e.enter("referenceMarker"),e.consume(s),e.exit("referenceMarker"),o}function o(s){return s===93?(e.enter("referenceMarker"),e.consume(s),e.exit("referenceMarker"),e.exit("reference"),t):r(s)}}const QB={name:"labelStartImage",resolveAll:ug.resolveAll,tokenize:JB};function JB(e,t,r){const i=this;return o;function o(d){return e.enter("labelImage"),e.enter("labelImageMarker"),e.consume(d),e.exit("labelImageMarker"),s}function s(d){return d===91?(e.enter("labelMarker"),e.consume(d),e.exit("labelMarker"),e.exit("labelImage"),u):r(d)}function u(d){return d===94&&"_hiddenFootnoteSupport"in i.parser.constructs?r(d):t(d)}}const WB={name:"labelStartLink",resolveAll:ug.resolveAll,tokenize:eF};function eF(e,t,r){const i=this;return o;function o(u){return e.enter("labelLink"),e.enter("labelMarker"),e.consume(u),e.exit("labelMarker"),e.exit("labelLink"),s}function s(u){return u===94&&"_hiddenFootnoteSupport"in i.parser.constructs?r(u):t(u)}}const dh={name:"lineEnding",tokenize:tF};function tF(e,t){return r;function r(i){return e.enter("lineEnding"),e.consume(i),e.exit("lineEnding"),ct(e,t,"linePrefix")}}const Ec={name:"thematicBreak",tokenize:nF};function nF(e,t,r){let i=0,o;return s;function s(h){return e.enter("thematicBreak"),u(h)}function u(h){return o=h,d(h)}function d(h){return h===o?(e.enter("thematicBreakSequence"),p(h)):i>=3&&(h===null||_e(h))?(e.exit("thematicBreak"),t(h)):r(h)}function p(h){return h===o?(e.consume(h),i++,p):(e.exit("thematicBreakSequence"),We(h)?ct(e,d,"whitespace")(h):d(h))}}const On={continuation:{tokenize:lF},exit:sF,name:"list",tokenize:iF},rF={partial:!0,tokenize:uF},aF={partial:!0,tokenize:oF};function iF(e,t,r){const i=this,o=i.events[i.events.length-1];let s=o&&o[1].type==="linePrefix"?o[2].sliceSerialize(o[1],!0).length:0,u=0;return d;function d(b){const E=i.containerState.type||(b===42||b===43||b===45?"listUnordered":"listOrdered");if(E==="listUnordered"?!i.containerState.marker||b===i.containerState.marker:Jh(b)){if(i.containerState.type||(i.containerState.type=E,e.enter(E,{_container:!0})),E==="listUnordered")return e.enter("listItemPrefix"),b===42||b===45?e.check(Ec,r,h)(b):h(b);if(!i.interrupt||b===49)return e.enter("listItemPrefix"),e.enter("listItemValue"),p(b)}return r(b)}function p(b){return Jh(b)&&++u<10?(e.consume(b),p):(!i.interrupt||u<2)&&(i.containerState.marker?b===i.containerState.marker:b===41||b===46)?(e.exit("listItemValue"),h(b)):r(b)}function h(b){return e.enter("listItemMarker"),e.consume(b),e.exit("listItemMarker"),i.containerState.marker=i.containerState.marker||b,e.check(Ad,i.interrupt?r:y,e.attempt(rF,x,v))}function y(b){return i.containerState.initialBlankLine=!0,s++,x(b)}function v(b){return We(b)?(e.enter("listItemPrefixWhitespace"),e.consume(b),e.exit("listItemPrefixWhitespace"),x):r(b)}function x(b){return i.containerState.size=s+i.sliceSerialize(e.exit("listItemPrefix"),!0).length,t(b)}}function lF(e,t,r){const i=this;return i.containerState._closeFlow=void 0,e.check(Ad,o,s);function o(d){return i.containerState.furtherBlankLines=i.containerState.furtherBlankLines||i.containerState.initialBlankLine,ct(e,t,"listItemIndent",i.containerState.size+1)(d)}function s(d){return i.containerState.furtherBlankLines||!We(d)?(i.containerState.furtherBlankLines=void 0,i.containerState.initialBlankLine=void 0,u(d)):(i.containerState.furtherBlankLines=void 0,i.containerState.initialBlankLine=void 0,e.attempt(aF,t,u)(d))}function u(d){return i.containerState._closeFlow=!0,i.interrupt=void 0,ct(e,e.attempt(On,t,r),"linePrefix",i.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(d)}}function oF(e,t,r){const i=this;return ct(e,o,"listItemIndent",i.containerState.size+1);function o(s){const u=i.events[i.events.length-1];return u&&u[1].type==="listItemIndent"&&u[2].sliceSerialize(u[1],!0).length===i.containerState.size?t(s):r(s)}}function sF(e){e.exit(this.containerState.type)}function uF(e,t,r){const i=this;return ct(e,o,"listItemPrefixWhitespace",i.parser.constructs.disable.null.includes("codeIndented")?void 0:5);function o(s){const u=i.events[i.events.length-1];return!We(s)&&u&&u[1].type==="listItemPrefixWhitespace"?t(s):r(s)}}const ow={name:"setextUnderline",resolveTo:cF,tokenize:dF};function cF(e,t){let r=e.length,i,o,s;for(;r--;)if(e[r][0]==="enter"){if(e[r][1].type==="content"){i=r;break}e[r][1].type==="paragraph"&&(o=r)}else e[r][1].type==="content"&&e.splice(r,1),!s&&e[r][1].type==="definition"&&(s=r);const u={type:"setextHeading",start:{...e[i][1].start},end:{...e[e.length-1][1].end}};return e[o][1].type="setextHeadingText",s?(e.splice(o,0,["enter",u,t]),e.splice(s+1,0,["exit",e[i][1],t]),e[i][1].end={...e[s][1].end}):e[i][1]=u,e.push(["exit",u,t]),e}function dF(e,t,r){const i=this;let o;return s;function s(h){let y=i.events.length,v;for(;y--;)if(i.events[y][1].type!=="lineEnding"&&i.events[y][1].type!=="linePrefix"&&i.events[y][1].type!=="content"){v=i.events[y][1].type==="paragraph";break}return!i.parser.lazy[i.now().line]&&(i.interrupt||v)?(e.enter("setextHeadingLine"),o=h,u(h)):r(h)}function u(h){return e.enter("setextHeadingLineSequence"),d(h)}function d(h){return h===o?(e.consume(h),d):(e.exit("setextHeadingLineSequence"),We(h)?ct(e,p,"lineSuffix")(h):p(h))}function p(h){return h===null||_e(h)?(e.exit("setextHeadingLine"),t(h)):r(h)}}const fF={tokenize:mF};function mF(e){const t=this,r=e.attempt(Ad,i,e.attempt(this.parser.constructs.flowInitial,o,ct(e,e.attempt(this.parser.constructs.flow,o,e.attempt(vB,o)),"linePrefix")));return r;function i(s){if(s===null){e.consume(s);return}return e.enter("lineEndingBlank"),e.consume(s),e.exit("lineEndingBlank"),t.currentConstruct=void 0,r}function o(s){if(s===null){e.consume(s);return}return e.enter("lineEnding"),e.consume(s),e.exit("lineEnding"),t.currentConstruct=void 0,r}}const hF={resolveAll:bN()}
vendor: 4,146 bytes, line 80
80,pF=vN("string"),gF=vN("text");function vN(e){return{resolveAll:bN(e==="text"?yF:void 0),tokenize:t};function t(r){const i=this,o=this.parser.constructs[e],s=r.attempt(o,u,d);return u;function u(y){return h(y)?s(y):d(y)}function d(y){if(y===null){r.consume(y);return}return r.enter("data"),r.consume(y),p}function p(y){return h(y)?(r.exit("data"),s(y)):(r.consume(y),p)}function h(y){if(y===null)return!0;const v=o[y];let x=-1;if(v)for(;++x<v.length;){const b=v[x];if(!b.previous||b.previous.call(i,i.previous))return!0}return!1}}}function bN(e){return t;function t(r,i){let o=-1,s;for(;++o<=r.length;)s===void 0?r[o]&&r[o][1].type==="data"&&(s=o,o++):(!r[o]||r[o][1].type!=="data")&&(o!==s+2&&(r[s][1].end=r[o-1][1].end,r.splice(s+2,o-s-2),o=s+2),s=void 0);return e?e(r,i):r}}function yF(e,t){let r=0;for(;++r<=e.length;)if((r===e.length||e[r][1].type==="lineEnding")&&e[r-1][1].type==="data"){const i=e[r-1][1],o=t.sliceStream(i);let s=o.length,u=-1,d=0,p;for(;s--;){const h=o[s];if(typeof h=="string"){for(u=h.length;h.charCodeAt(u-1)===32;)d++,u--;if(u)break;u=-1}else if(h===-2)p=!0,d++;else if(h!==-1){s++;break}}if(t._contentTypeTextTrailing&&r===e.length&&(d=0),d){const h={type:r===e.length||p||d<2?"lineSuffix":"hardBreakTrailing",start:{_bufferIndex:s?u:i.start._bufferIndex+u,_index:i.start._index+s,line:i.end.line,column:i.end.column-d,offset:i.end.offset-d},end:{...i.end}};i.end={...h.start},i.start.offset===i.end.offset?Object.assign(i,h):(e.splice(r,0,["enter",h,t],["exit",h,t]),r+=2)}r++}return e}const vF={42:On,43:On,45:On,48:On,49:On,50:On,51:On,52:On,53:On,54:On,55:On,56:On,57:On,62:dN},bF={91:EB},xF={[-2]:ch,[-1]:ch,32:ch},wF={35:TB,42:Ec,45:[ow,Ec],60:OB,61:ow,95:Ec,96:iw,126:iw},SF={38:mN,92:fN},EF={[-5]:dh,[-4]:dh,[-3]:dh,33:QB,38:mN,42:Wh,60:[W6,UB],91:WB,92:[kB,fN],93:ug,95:Wh,96:fB},NF={null:[Wh,hF]},CF={null:[42,95]},jF={null:[]},kF=Object.freeze(Object.defineProperty({__proto__:null,attentionMarkers:CF,contentInitial:bF,disable:jF,document:vF,flow:wF,flowInitial:xF,insideSpan:NF,string:SF,text:EF},Symbol.toStringTag,{value:"Module"}));function AF(e,t,r){let i={_bufferIndex:-1,_index:0,line:r&&r.line||1,column:r&&r.column||1,offset:r&&r.offset||0};const o={},s=[];let u=[],d=[];const p={attempt:I(T),check:I(L),consume:M,enter:O,exit:B,interrupt:I(L,{interrupt:!0})},h={code:null,containerState:{},defineSkip:N,events:[],now:E,parser:e,previous:null,sliceSerialize:x,sliceStream:b,write:v};let y=t.tokenize.call(h,p);return t.resolveAll&&s.push(t),h;function v(G){return u=pr(u,G),C(),u[u.length-1]!==null?[]:(_(t,0),h.events=sg(s,h.events,h),h.events)}function x(G,$){return _F(b(G),$)}function b(G){return TF(u,G)}function E(){const{_bufferIndex:G,_index:$,line:Q,column:F,offset:z}=i;return{_bufferIndex:G,_index:$,line:Q,column:F,offset:z}}function N(G){o[G.line]=G.column,V()}function C(){let G;for(;i._index<u.length;){const $=u[i._index];if(typeof $=="string")for(G=i._index,i._bufferIndex<0&&(i._bufferIndex=0);i._index===G&&i._bufferIndex<$.length;)k($.charCodeAt(i._bufferIndex));else k($)}}function k(G){y=y(G)}function M(G){_e(G)?(i.line++,i.column=1,i.offset+=G===-3?2:1,V()):G!==-1&&(i.column++,i.offset++),i._bufferIndex<0?i._index++:(i._bufferIndex++,i._bufferIndex===u[i._index].length&&(i._bufferIndex=-1,i._index++)),h.previous=G}function O(G,$){const Q=$||{};return Q.type=G,Q.start=E(),h.events.push(["enter",Q,h]),d.push(Q),Q}function B(G){const $=d.pop();return $.end=E(),h.events.push(["exit",$,h]),$}function T(G,$){_(G,$.from)}function L(G,$){$.restore()}function I(G,$){return Q;function Q(F,z,R){let K,q,ne,A;return Array.isArray(F)?ce(F):"tokenize"in F?ce([F]):pe(F);function pe(ve){return be;function be(Le){const Ie=Le!==null&&ve[Le],Te=Le!==null&&ve.null,ft=[...Array.isArray(Ie)?Ie:Ie?[Ie]:[],...Array.isArray(Te)?Te:Te?[Te]:[]];return ce(ft)(Le)}}function ce(ve){return K=ve,q=0,ve.length===0?R:D(ve[q])}function D(ve){return be;function be(Le){return A=X(),ne=ve,ve.partial||(h.currentConstruct=ve),ve.name&&h.parser.constructs.disable.null.includes(ve.name)?ke():ve.tokenize.call($?Object.assign(Object.create(h),$):h,p,ge,ke)(Le)}}function ge(ve){return G(ne,A),z}
vendor: 12,392 bytes, lines 80-82
80function ke(ve){return A.restore(),++q<K.length?D(K[q]):R}}}function _(G,$){G.resolveAll&&!s.includes(G)&&s.push(G),G.resolve&&Hr(h.events,$,h.events.length-$,G.resolve(h.events.slice($),h)),G.resolveTo&&(h.events=G.resolveTo(h.events,h))}function X(){const G=E(),$=h.previous,Q=h.currentConstruct,F=h.events.length,z=Array.from(d);return{from:F,restore:R};function R(){i=G,h.previous=$,h.currentConstruct=Q,h.events.length=F,d=z,V()}}function V(){i.line in o&&i.column<2&&(i.column=o[i.line],i.offset+=o[i.line]-1)}}function TF(e,t){const r=t.start._index,i=t.start._bufferIndex,o=t.end._index,s=t.end._bufferIndex;let u;if(r===o)u=[e[r].slice(i,s)];else{if(u=e.slice(r,o),i>-1){const d=u[0];typeof d=="string"?u[0]=d.slice(i):u.shift()}s>0&&u.push(e[o].slice(0,s))}return u}function _F(e,t){let r=-1;const i=[];let o;for(;++r<e.length;){const s=e[r];let u;if(typeof s=="string")u=s;else switch(s){case-5:{u="\r";break}case-4:{u=` 81`;break}case-3:{u=`\r 82`;break}case-2:{u=t?" ":" ";break}case-1:{if(!t&&o)continue;u=" ";break}default:u=String.fromCharCode(s)}o=s===-2,i.push(u)}return i.join("")}function DF(e){const i={constructs:F6([kF,...(e||{}).extensions||[]]),content:o($6),defined:[],document:o(G6),flow:o(fF),lazy:{},string:o(pF),text:o(gF)};return i;function o(s){return u;function u(d){return AF(i,s,d)}}}function RF(e){for(;!hN(e););return e}const sw=/[\0\t\n\r]/g;function OF(){let e=1,t="",r=!0,i;return o;function o(s,u,d){const p=[];let h,y,v,x,b;for(s=t+(typeof s=="string"?s.toString():new TextDecoder(u||void 0).decode(s)),v=0,t="",r&&(s.charCodeAt(0)===65279&&v++,r=void 0);v<s.length;){if(sw.lastIndex=v,h=sw.exec(s),x=h&&h.index!==void 0?h.index:s.length,b=s.charCodeAt(x),!h){t=s.slice(v);break}if(b===10&&v===x&&i)p.push(-3),i=void 0;else switch(i&&(p.push(-5),i=void 0),v<x&&(p.push(s.slice(v,x)),e+=x-v),b){case 0:{p.push(65533),e++;break}case 9:{for(y=Math.ceil(e/4)*4,p.push(-2);e++<y;)p.push(-1);break}case 10:{p.push(-4),e=1;break}default:i=!0,e=1}v=x+1}return d&&(i&&p.push(-5),t&&p.push(t),p.push(null)),p}}const zF=/\\([!-/:-@[-`{-~])|&(#(?:\d{1,7}|x[\da-f]{1,6})|[\da-z]{1,31});/gi;function MF(e){return e.replace(zF,LF)}function LF(e,t,r){if(t)return t;if(r.charCodeAt(0)===35){const o=r.charCodeAt(1),s=o===120||o===88;return cN(r.slice(s?2:1),s?16:10)}return og(r)||e}const xN={}.hasOwnProperty;function BF(e,t,r){return typeof t!="string"&&(r=t,t=void 0),FF(r)(RF(DF(r).document().write(OF()(e,t,!0))))}function FF(e){const t={transforms:[],canContainEols:["emphasis","fragment","heading","paragraph","strong"],enter:{autolink:s(br),autolinkProtocol:X,autolinkEmail:X,atxHeading:s(dn),blockQuote:s(Te),characterEscape:X,characterReference:X,codeFenced:s(ft),codeFencedFenceInfo:u,codeFencedFenceMeta:u,codeIndented:s(ft,u),codeText:s(mt,u),codeTextData:X,data:X,codeFlowValue:X,definition:s(Pt),definitionDestinationString:u,definitionLabelString:u,definitionTitleString:u,emphasis:s(Nt),hardBreakEscape:s(fn),hardBreakTrailing:s(fn),htmlFlow:s($r,u),htmlFlowData:X,htmlText:s($r,u),htmlTextData:X,image:s(Kr),label:u,link:s(br),listItem:s(P),listItemValue:x,listOrdered:s(Yt,v),listUnordered:s(Yt),paragraph:s(J),reference:D,referenceString:u,resourceDestinationString:u,resourceTitleString:u,setextHeading:s(dn),strong:s(ie),thematicBreak:s(he)},exit:{atxHeading:p(),atxHeadingSequence:T,autolink:p(),autolinkEmail:Ie,autolinkProtocol:Le,blockQuote:p(),characterEscapeValue:V,characterReferenceMarkerHexadecimal:ke,characterReferenceMarkerNumeric:ke,characterReferenceValue:ve,characterReference:be,codeFenced:p(C),codeFencedFence:N,codeFencedFenceInfo:b,codeFencedFenceMeta:E,codeFlowValue:V,codeIndented:p(k),codeText:p(z),codeTextData:V,data:V,definition:p(),definitionDestinationString:B,definitionLabelString:M,definitionTitleString:O,emphasis:p(),hardBreakEscape:p($),hardBreakTrailing:p($),htmlFlow:p(Q),htmlFlowData:V,htmlText:p(F),htmlTextData:V,image:p(K),label:ne,labelText:q,lineEnding:G,link:p(R),listItem:p(),listOrdered:p(),listUnordered:p(),paragraph:p(),referenceString:ge,resourceDestinationString:A,resourceTitleString:pe,resource:ce,setextHeading:p(_),setextHeadingLineSequence:I,setextHeadingText:L,strong:p(),thematicBreak:p()}};wN(t,(e||{}).mdastExtensions||[]);const r={};return i;function i(H){let re={type:"root",children:[]};const me={stack:[re],tokenStack:[],config:t,enter:d,exit:h,buffer:u,resume:y,data:r},ye=[];let De=-1;for(;++De<H.length;)if(H[De][1].type==="listOrdered"||H[De][1].type==="listUnordered")if(H[De][0]==="enter")ye.push(De);else{const it=ye.pop();De=o(H,it,De)}for(De=-1;++De<H.length;){const it=t[H[De][0]];xN.call(it,H[De][1].type)&&it[H[De][1].type].call(Object.assign({sliceSerialize:H[De][2].sliceSerialize},me),H[De][1])}if(me.tokenStack.length>0){const it=me.tokenStack[me.tokenStack.length-1];(it[1]||uw).call(me,void 0,it[0])}for(re.position={start:Ya(H.length>0?H[0][1].start:{line:1,column:1,offset:0}),end:Ya(H.length>0?H[H.length-2][1].end:{line:1,column:1,offset:0})},De=-1;++De<t.transforms.length;)re=t.transforms[De](re)||re;return re}function o(H,re,me){let ye=re-1,De=-1,it=!1,Ct,Vt,ht,xt;for(;++ye<=me;){const Ye=H[ye];switch(Ye[1].type){case"listUnordered":case"listOrdered":case"blockQuote":{Ye[0]==="enter"?De++:De--,xt=void 0;break}case"lineEndingBlank":{Ye[0]==="enter"&&(Ct&&!xt&&!De&&!ht&&(ht=ye),xt=void 0);break}case"linePrefix":case"listItemValue":case"listItemMarker":case"listItemPrefix":case"listItemPrefixWhitespace":break;default:xt=void 0}if(!De&&Ye[0]==="enter"&&Ye[1].type==="listItemPrefix"||De===-1&&Ye[0]==="exit"&&(Ye[1].type==="listUnordered"||Ye[1].type==="listOrdered")){if(Ct){let Pn=ye;for(Vt=void 0;Pn--;){const mn=H[Pn];if(mn[1].type==="lineEnding"||mn[1].type==="lineEndingBlank"){if(mn[0]==="exit")continue;Vt&&(H[Vt][1].type="lineEndingBlank",it=!0),mn[1].type="lineEnding",Vt=Pn}else if(!(mn[1].type==="linePrefix"||mn[1].type==="blockQuotePrefix"||mn[1].type==="blockQuotePrefixWhitespace"||mn[1].type==="blockQuoteMarker"||mn[1].type==="listItemIndent"))break}ht&&(!Vt||ht<Vt)&&(Ct._spread=!0),Ct.end=Object.assign({},Vt?H[Vt][1].start:Ye[1].end),H.splice(Vt||ye,0,["exit",Ct,Ye[2]]),ye++,me++}if(Ye[1].type==="listItemPrefix"){const Pn={type:"listItem",_spread:!1,start:Object.assign({},Ye[1].start),end:void 0};Ct=Pn,H.splice(ye,0,["enter",Pn,Ye[2]]),ye++,me++,ht=void 0,xt=!0}}}return H[re][1]._spread=it,me}function s(H,re){return me;function me(ye){d.call(this,H(ye),ye),re&&re.call(this,ye)}}function u(){this.stack.push({type:"fragment",children:[]})}function d(H,re,me){this.stack[this.stack.length-1].children.push(H),this.stack.push(H),this.tokenStack.push([re,me||void 0]),H.position={start:Ya(re.start),end:void 0}}function p(H){return re;function re(me){H&&H.call(this,me),h.call(this,me)}}function h(H,re){const me=this.stack.pop(),ye=this.tokenStack.pop();if(ye)ye[0].type!==H.type&&(re?re.call(this,H,ye[0]):(ye[1]||uw).call(this,H,ye[0]));else throw new Error("Cannot close `"+H.type+"` ("+cs({start:H.start,end:H.end})+"): itâs not open");me.position.end=Ya(H.end)}function y(){return L6(this.stack.pop())}function v(){this.data.expectingFirstListItemValue=!0}function x(H){if(this.data.expectingFirstListItemValue){const re=this.stack[this.stack.length-2];re.start=Number.parseInt(this.sliceSerialize(H),10),this.data.expectingFirstListItemValue=void 0}}function b(){const H=this.resume(),re=this.stack[this.stack.length-1];re.lang=H}function E(){const H=this.resume(),re=this.stack[this.stack.length-1];re.meta=H}function N(){this.data.flowCodeInside||(this.buffer(),this.data.flowCodeInside=!0)}function C(){const H=this.resume(),re=this.stack[this.stack.length-1];re.value=H.replace(/^(\r?\n|\r)|(\r?\n|\r)$/g,""),this.data.flowCodeInside=void 0}function k(){const H=this.resume(),re=this.stack[this.stack.length-1];re.value=H.replace(/(\r?\n|\r)$/g,"")}function M(H){const re=this.resume(),me=this.stack[this.stack.length-1];me.label=re,me.identifier=Hl(this.sliceSerialize(H)).toLowerCase()}function O(){const H=this.resume(),re=this.stack[this.stack.length-1];re.title=H}function B(){const H=this.resume(),re=this.stack[this.stack.length-1];re.url=H}function T(H){const re=this.stack[this.stack.length-1];if(!re.depth){const me=this.sliceSerialize(H).length;re.depth=me}}function L(){this.data.setextHeadingSlurpLineEnding=!0}function I(H){const re=this.stack[this.stack.length-1];re.depth=this.sliceSerialize(H).codePointAt(0)===61?1:2}function _(){this.data.setextHeadingSlurpLineEnding=void 0}function X(H){const me=this.stack[this.stack.length-1].children;let ye=me[me.length-1];(!ye||ye.type!=="text")&&(ye=fe(),ye.position={start:Ya(H.start),end:void 0},me.push(ye)),this.stack.push(ye)}function V(H){const re=this.stack.pop();re.value+=this.sliceSerialize(H),re.position.end=Ya(H.end)}function G(H){const re=this.stack[this.stack.length-1];if(this.data.atHardBreak){const me=re.children[re.children.length-1];me.position.end=Ya(H.end),this.data.atHardBreak=void 0;return}!this.data.setextHeadingSlurpLineEnding&&t.canContainEols.includes(re.type)&&(X.call(this,H),V.call(this,H))}function $(){this.data.atHardBreak=!0}function Q(){const H=this.resume(),re=this.stack[this.stack.length-1];re.value=H}function F(){const H=this.resume(),re=this.stack[this.stack.length-1];re.value=H}function z(){const H=this.resume(),re=this.stack[this.stack.length-1];re.value=H}function R(){const H=this.stack[this.stack.length-1];if(this.data.inReference){const re=this.data.referenceType||"shortcut";H.type+="Reference",H.referenceType=re,delete H.url,delete H.title}else delete H.identifier,delete H.label;this.data.referenceType=void 0}function K(){const H=this.stack[this.stack.length-1];if(this.data.inReference){const re=this.data.referenceType||"shortcut";H.type+="Reference",H.referenceType=re,delete H.url,delete H.title}else delete H.identifier,delete H.label;this.data.referenceType=void 0}function q(H){const re=this.sliceSerialize(H),me=this.stack[this.stack.length-2];me.label=MF(re),me.identifier=Hl(re).toLowerCase()}function ne(){const H=this.stack[this.stack.length-1],re=this.resume(),me=this.stack[this.stack.length-1];if(this.data.inReference=!0,me.type==="link"){const ye=H.children;me.children=ye}else me.alt=re}function A(){const H=this.resume(),re=this.stack[this.stack.length-1];re.url=H}function pe(){const H=this.resume(),re=this.stack[this.stack.length-1];re.title=H}function ce(){this.data.inReference=void 0}function D(){this.data.referenceType="collapsed"}function ge(H){const re=this.resume(),me=this.stack[this.stack.length-1];me.label=re,me.identifier=Hl(this.sliceSerialize(H)).toLowerCase(),this.data.referenceType="full"}function ke(H){this.data.characterReferenceType=H.type}function ve(H){const re=this.sliceSerialize(H),me=this.data.characterReferenceType;let ye;me?(ye=cN(re,me==="characterReferenceMarkerNumeric"?10:16),this.data.characterReferenceType=void 0):ye=og(re);const De=this.stack[this.stack.length-1];De.value+=ye}function be(H){const re=this.stack.pop();re.position.end=Ya(H.end)}function Le(H){V.call(this,H);const re=this.stack[this.stack.length-1];re.url=this.sliceSerialize(H)}function Ie(H){V.call(this,H);const re=this.stack[this.stack.length-1];re.url="mailto:"+this.sliceSerialize(H)}function Te(){return{type:"blockquote",children:[]}}function ft(){return{type:"code",lang:null,meta:null,value:""}}function mt(){return{type:"inlineCode",value:""}}function Pt(){return{type:"definition",identifier:"",label:null,title:null,url:""}}function Nt(){return{type:"emphasis",children:[]}}function dn(){return{type:"heading",depth:0,children:[]}}function fn(){return{type:"break"}}function $r(){return{type:"html",value:""}}function Kr(){return{type:"image",title:null,url:"",alt:null}}function br(){return{type:"link",title:null,url:"",children:[]}}function Yt(H){return{type:"list",ordered:H.type==="listOrdered",start:null,spread:H._spread,children:[]}}function P(H){return{type:"listItem",spread:H._spread,checked:null,children:[]}}function J(){return{type:"paragraph",children:[]}}function ie(){return{type:"strong",children:[]}}function fe(){return{type:"text",value:""}}function he(){return{type:"thematicBreak"}}}function Ya(e){return{line:e.line,column:e.column,offset:e.offset}}function wN(e,t){let r=-1;for(;++r<t.length;){const i=t[r];Array.isArray(i)?wN(e,i):IF(e,i)}}function IF(e,t){let r;for(r in t)if(xN.call(t,r))switch(r){case"canContainEols":{const i=t[r];
vendor: 10,921 bytes, lines 82-86
82i&&e[r].push(...i);break}case"transforms":{const i=t[r];i&&e[r].push(...i);break}case"enter":case"exit":{const i=t[r];i&&Object.assign(e[r],i);break}}}function uw(e,t){throw e?new Error("Cannot close `"+e.type+"` ("+cs({start:e.start,end:e.end})+"): a different token (`"+t.type+"`, "+cs({start:t.start,end:t.end})+") is open"):new Error("Cannot close document, a token (`"+t.type+"`, "+cs({start:t.start,end:t.end})+") is still open")}function UF(e){const t=this;t.parser=r;function r(i){return BF(i,{...t.data("settings"),...e,extensions:t.data("micromarkExtensions")||[],mdastExtensions:t.data("fromMarkdownExtensions")||[]})}}function PF(e,t){const r={type:"element",tagName:"blockquote",properties:{},children:e.wrap(e.all(t),!0)};return e.patch(t,r),e.applyData(t,r)}function VF(e,t){const r={type:"element",tagName:"br",properties:{},children:[]};return e.patch(t,r),[e.applyData(t,r),{type:"text",value:` 83`}]}function HF(e,t){const r=t.value?t.value+` 84`:"",i={},o=t.lang?t.lang.split(/\s+/):[];o.length>0&&(i.className=["language-"+o[0]]);let s={type:"element",tagName:"code",properties:i,children:[{type:"text",value:r}]};return t.meta&&(s.data={meta:t.meta}),e.patch(t,s),s=e.applyData(t,s),s={type:"element",tagName:"pre",properties:{},children:[s]},e.patch(t,s),s}function qF(e,t){const r={type:"element",tagName:"del",properties:{},children:e.all(t)};return e.patch(t,r),e.applyData(t,r)}function ZF(e,t){const r={type:"element",tagName:"em",properties:{},children:e.all(t)};return e.patch(t,r),e.applyData(t,r)}function $F(e,t){const r=typeof e.options.clobberPrefix=="string"?e.options.clobberPrefix:"user-content-",i=String(t.identifier).toUpperCase(),o=ro(i.toLowerCase()),s=e.footnoteOrder.indexOf(i);let u,d=e.footnoteCounts.get(i);d===void 0?(d=0,e.footnoteOrder.push(i),u=e.footnoteOrder.length):u=s+1,d+=1,e.footnoteCounts.set(i,d);const p={type:"element",tagName:"a",properties:{href:"#"+r+"fn-"+o,id:r+"fnref-"+o+(d>1?"-"+d:""),dataFootnoteRef:!0,ariaDescribedBy:["footnote-label"]},children:[{type:"text",value:String(u)}]};e.patch(t,p);const h={type:"element",tagName:"sup",properties:{},children:[p]};return e.patch(t,h),e.applyData(t,h)}function KF(e,t){const r={type:"element",tagName:"h"+t.depth,properties:{},children:e.all(t)};return e.patch(t,r),e.applyData(t,r)}function GF(e,t){if(e.options.allowDangerousHtml){const r={type:"raw",value:t.value};return e.patch(t,r),e.applyData(t,r)}}function SN(e,t){const r=t.referenceType;let i="]";if(r==="collapsed"?i+="[]":r==="full"&&(i+="["+(t.label||t.identifier)+"]"),t.type==="imageReference")return[{type:"text",value:"!["+t.alt+i}];const o=e.all(t),s=o[0];s&&s.type==="text"?s.value="["+s.value:o.unshift({type:"text",value:"["});const u=o[o.length-1];return u&&u.type==="text"?u.value+=i:o.push({type:"text",value:i}),o}function YF(e,t){const r=String(t.identifier).toUpperCase(),i=e.definitionById.get(r);if(!i)return SN(e,t);const o={src:ro(i.url||""),alt:t.alt};i.title!==null&&i.title!==void 0&&(o.title=i.title);const s={type:"element",tagName:"img",properties:o,children:[]};return e.patch(t,s),e.applyData(t,s)}function XF(e,t){const r={src:ro(t.url)};t.alt!==null&&t.alt!==void 0&&(r.alt=t.alt),t.title!==null&&t.title!==void 0&&(r.title=t.title);const i={type:"element",tagName:"img",properties:r,children:[]};return e.patch(t,i),e.applyData(t,i)}function QF(e,t){const r={type:"text",value:t.value.replace(/\r?\n|\r/g," ")};e.patch(t,r);const i={type:"element",tagName:"code",properties:{},children:[r]};return e.patch(t,i),e.applyData(t,i)}function JF(e,t){const r=String(t.identifier).toUpperCase(),i=e.definitionById.get(r);if(!i)return SN(e,t);const o={href:ro(i.url||"")};i.title!==null&&i.title!==void 0&&(o.title=i.title);const s={type:"element",tagName:"a",properties:o,children:e.all(t)};return e.patch(t,s),e.applyData(t,s)}function WF(e,t){const r={href:ro(t.url)};t.title!==null&&t.title!==void 0&&(r.title=t.title);const i={type:"element",tagName:"a",properties:r,children:e.all(t)};return e.patch(t,i),e.applyData(t,i)}function eI(e,t,r){const i=e.all(t),o=r?tI(r):EN(t),s={},u=[];if(typeof t.checked=="boolean"){const y=i[0];let v;y&&y.type==="element"&&y.tagName==="p"?v=y:(v={type:"element",tagName:"p",properties:{},children:[]},i.unshift(v)),v.children.length>0&&v.children.unshift({type:"text",value:" "}),v.children.unshift({type:"element",tagName:"input",properties:{type:"checkbox",checked:t.checked,disabled:!0},children:[]}),s.className=["task-list-item"]}let d=-1;for(;++d<i.length;){const y=i[d];(o||d!==0||y.type!=="element"||y.tagName!=="p")&&u.push({type:"text",value:` 85`}),y.type==="element"&&y.tagName==="p"&&!o?u.push(...y.children):u.push(y)}const p=i[i.length-1];p&&(o||p.type!=="element"||p.tagName!=="p")&&u.push({type:"text",value:` 86`});const h={type:"element",tagName:"li",properties:s,children:u};return e.patch(t,h),e.applyData(t,h)}function tI(e){let t=!1;if(e.type==="list"){t=e.spread||!1;const r=e.children;let i=-1;for(;!t&&++i<r.length;)t=EN(r[i])}return t}function EN(e){const t=e.spread;return t??e.children.length>1}function nI(e,t){const r={},i=e.all(t);let o=-1;for(typeof t.start=="number"&&t.start!==1&&(r.start=t.start);++o<i.length;){const u=i[o];if(u.type==="element"&&u.tagName==="li"&&u.properties&&Array.isArray(u.properties.className)&&u.properties.className.includes("task-list-item")){r.className=["contains-task-list"];break}}const s={type:"element",tagName:t.ordered?"ol":"ul",properties:r,children:e.wrap(i,!0)};return e.patch(t,s),e.applyData(t,s)}function rI(e,t){const r={type:"element",tagName:"p",properties:{},children:e.all(t)};return e.patch(t,r),e.applyData(t,r)}function aI(e,t){const r={type:"root",children:e.wrap(e.all(t))};return e.patch(t,r),e.applyData(t,r)}function iI(e,t){const r={type:"element",tagName:"strong",properties:{},children:e.all(t)};return e.patch(t,r),e.applyData(t,r)}function lI(e,t){const r=e.all(t),i=r.shift(),o=[];if(i){const u={type:"element",tagName:"thead",properties:{},children:e.wrap([i],!0)};e.patch(t.children[0],u),o.push(u)}if(r.length>0){const u={type:"element",tagName:"tbody",properties:{},children:e.wrap(r,!0)},d=rg(t.children[1]),p=rN(t.children[t.children.length-1]);d&&p&&(u.position={start:d,end:p}),o.push(u)}const s={type:"element",tagName:"table",properties:{},children:e.wrap(o,!0)};return e.patch(t,s),e.applyData(t,s)}function oI(e,t,r){const i=r?r.children:void 0,s=(i?i.indexOf(t):1)===0?"th":"td",u=r&&r.type==="table"?r.align:void 0,d=u?u.length:t.children.length;let p=-1;const h=[];for(;++p<d;){const v=t.children[p],x={},b=u?u[p]:void 0;b&&(x.align=b);let E={type:"element",tagName:s,properties:x,children:[]};v&&(E.children=e.all(v),e.patch(v,E),E=e.applyData(v,E)),h.push(E)}const y={type:"element",tagName:"tr",properties:{},children:e.wrap(h,!0)};return e.patch(t,y),e.applyData(t,y)}function sI(e,t){const r={type:"element",tagName:"td",properties:{},children:e.all(t)};return e.patch(t,r),e.applyData(t,r)}const cw=9,dw=32;function uI(e){const t=String(e),r=/\r?\n|\r/g;let i=r.exec(t),o=0;const s=[];for(;i;)s.push(fw(t.slice(o,i.index),o>0,!0),i[0]),o=i.index+i[0].length,i=r.exec(t);return s.push(fw(t.slice(o),o>0,!1)),s.join("")}function fw(e,t,r){let i=0,o=e.length;if(t){let s=e.codePointAt(i);for(;s===cw||s===dw;)i++,s=e.codePointAt(i)}if(r){let s=e.codePointAt(o-1);for(;s===cw||s===dw;)o--,s=e.codePointAt(o-1)}return o>i?e.slice(i,o):""}function cI(e,t){const r={type:"text",value:uI(String(t.value))};return e.patch(t,r),e.applyData(t,r)}function dI(e,t){const r={type:"element",tagName:"hr",properties:{},children:[]};return e.patch(t,r),e.applyData(t,r)}const fI={blockquote:PF,break:VF,code:HF,delete:qF,emphasis:ZF,footnoteReference:$F,heading:KF,html:GF,imageReference:YF,image:XF,inlineCode:QF,linkReference:JF,link:WF,listItem:eI,list:nI,paragraph:rI,root:aI,strong:iI,table:lI,tableCell:sI,tableRow:oI,text:cI,thematicBreak:dI,toml:hc,yaml:hc,definition:hc,footnoteDefinition:hc};function hc(){}const NN=-1,Td=0,fs=1,Yc=2,cg=3,dg=4,fg=5,mg=6,CN=7,jN=8,mw=typeof self=="object"?self:globalThis,mI=(e,t)=>{const r=(o,s)=>(e.set(s,o),o),i=o=>{if(e.has(o))return e.get(o);const[s,u]=t[o];switch(s){case Td:case NN:return r(u,o);case fs:{const d=r([],o);for(const p of u)d.push(i(p));return d}case Yc:{const d=r({},o);for(const[p,h]of u)d[i(p)]=i(h);return d}case cg:return r(new Date(u),o);case dg:{const{source:d,flags:p}=u;return r(new RegExp(d,p),o)}case fg:{const d=r(new Map,o);for(const[p,h]of u)d.set(i(p),i(h));return d}case mg:{const d=r(new Set,o);for(const p of u)d.add(i(p));return d}case CN:{const{name:d,message:p}=u;return r(new mw[d](p),o)}case jN:return r(BigInt(u),o);case"BigInt":return r(Object(BigInt(u)),o);case"ArrayBuffer":return r(new Uint8Array(u).buffer,u);case"DataView":{const{buffer:d}=new Uint8Array(u);return r(new DataView(d),u)}}return r(new mw[s](u),o)};return i},hw=e=>mI(new Map,e)(0),Ol="",{toString:hI}={},{keys:pI}=Object,ts=e=>{const t=typeof e;if(t!=="object"||!e)return[Td,t];const r=hI.call(e).slice(8,-1);switch(r){case"Array":return[fs,Ol];case"Object":return[Yc,Ol];case"Date":return[cg,Ol];case"RegExp":return[dg,Ol];case"Map":return[fg,Ol];case"Set":return[mg,Ol];case"DataView":return[fs,r]}return r.includes("Array")?[fs,r]:r.includes("Error")?[CN,r]:[Yc,r]},pc=([e,t])=>e===Td&&(t==="function"||t==="symbol"),gI=(e,t,r,i)=>{const o=(u,d)=>{const p=i.push(u)-1;return r.set(d,p),p},s=u=>{if(r.has(u))return r.get(u);let[d,p]=ts(u);switch(d){case Td:{let y=u;switch(p){case"bigint":d=jN,y=u.toString();break;case"function":case"symbol":if(e)throw new TypeError("unable to serialize "+p);y=null;break;case"undefined":return o([NN],u)}return o([d,y],u)}case fs:{if(p){let x=u;return p==="DataView"?x=new Uint8Array(u.buffer):p==="ArrayBuffer"&&(x=new Uint8Array(u)),o([p,[...x]],u)}const y=[],v=o([d,y],u);for(const x of u)y.push(s(x));return v}case Yc:{if(p)switch(p){case"BigInt":return o([p,u.toString()],u);case"Boolean":case"Number":case"String":return o([p,u.valueOf()],u)}if(t&&"toJSON"in u)return s(u.toJSON());const y=[],v=o([d,y],u);for(const x of pI(u))(e||!pc(ts(u[x])))&&y.push([s(x),s(u[x])]);return v}case cg:return o([d,u.toISOString()],u);case dg:{const{source:y,flags:v}=u;return o([d,{source:y,flags:v}],u)}case fg:{const y=[],v=o([d,y],u);for(const[x,b]of u)(e||!(pc(ts(x))||pc(ts(b))))&&y.push([s(x),s(b)]);return v}case mg:{const y=[],v=o([d,y],u);for(const x of u)(e||!pc(ts(x)))&&y.push(s(x));return v}}const{message:h}=u;return o([d,{name:p,message:h}],u)};return s},pw=(e,{json:t,lossy:r}={})=>{const i=[];return gI(!(t||r),!!t,new Map,i)(e),i},Xc=typeof structuredClone=="function"?(e,t)=>t&&("json"in t||"lossy"in t)?hw(pw(e,t)):structuredClone(e):(e,t)=>hw(pw(e,t));function yI(e,t){const r=[{type:"text",value:"â©"}];return t>1&&r.push({type:"element",tagName:"sup",properties:{},children:[{type:"text",value:String(t)}]}),r}function vI(e,t){return"Back to reference "+(e+1)+(t>1?"-"+t:"")}
vendor: 4,144 bytes, lines 86-88
86function bI(e){const t=typeof e.options.clobberPrefix=="string"?e.options.clobberPrefix:"user-content-",r=e.options.footnoteBackContent||yI,i=e.options.footnoteBackLabel||vI,o=e.options.footnoteLabel||"Footnotes",s=e.options.footnoteLabelTagName||"h2",u=e.options.footnoteLabelProperties||{className:["sr-only"]},d=[];let p=-1;for(;++p<e.footnoteOrder.length;){const h=e.footnoteById.get(e.footnoteOrder[p]);if(!h)continue;const y=e.all(h),v=String(h.identifier).toUpperCase(),x=ro(v.toLowerCase());let b=0;const E=[],N=e.footnoteCounts.get(v);for(;N!==void 0&&++b<=N;){E.length>0&&E.push({type:"text",value:" "});let M=typeof r=="string"?r:r(p,b);typeof M=="string"&&(M={type:"text",value:M}),E.push({type:"element",tagName:"a",properties:{href:"#"+t+"fnref-"+x+(b>1?"-"+b:""),dataFootnoteBackref:"",ariaLabel:typeof i=="string"?i:i(p,b),className:["data-footnote-backref"]},children:Array.isArray(M)?M:[M]})}const C=y[y.length-1];if(C&&C.type==="element"&&C.tagName==="p"){const M=C.children[C.children.length-1];M&&M.type==="text"?M.value+=" ":C.children.push({type:"text",value:" "}),C.children.push(...E)}else y.push(...E);const k={type:"element",tagName:"li",properties:{id:t+"fn-"+x},children:e.wrap(y,!0)};e.patch(h,k),d.push(k)}if(d.length!==0)return{type:"element",tagName:"section",properties:{dataFootnotes:!0,className:["footnotes"]},children:[{type:"element",tagName:s,properties:{...Xc(u),id:"footnote-label"},children:[{type:"text",value:o}]},{type:"text",value:` 87`},{type:"element",tagName:"ol",properties:{},children:e.wrap(d,!0)},{type:"text",value:` 88`}]}}const kN=(function(e){if(e==null)return EI;if(typeof e=="function")return _d(e);if(typeof e=="object")return Array.isArray(e)?xI(e):wI(e);if(typeof e=="string")return SI(e);throw new Error("Expected function, string, or object as test")});function xI(e){const t=[];let r=-1;for(;++r<e.length;)t[r]=kN(e[r]);return _d(i);function i(...o){let s=-1;for(;++s<t.length;)if(t[s].apply(this,o))return!0;return!1}}function wI(e){const t=e;return _d(r);function r(i){const o=i;let s;for(s in e)if(o[s]!==t[s])return!1;return!0}}function SI(e){return _d(t);function t(r){return r&&r.type===e}}function _d(e){return t;function t(r,i,o){return!!(NI(r)&&e.call(this,r,typeof i=="number"?i:void 0,o||void 0))}}function EI(){return!0}function NI(e){return e!==null&&typeof e=="object"&&"type"in e}const AN=[],CI=!0,gw=!1,jI="skip";function kI(e,t,r,i){let o;typeof t=="function"&&typeof r!="function"?(i=r,r=t):o=t;const s=kN(o),u=i?-1:1;d(e,void 0,[])();function d(p,h,y){const v=p&&typeof p=="object"?p:{};if(typeof v.type=="string"){const b=typeof v.tagName=="string"?v.tagName:typeof v.name=="string"?v.name:void 0;Object.defineProperty(x,"name",{value:"node ("+(p.type+(b?"<"+b+">":""))+")"})}return x;function x(){let b=AN,E,N,C;if((!t||s(p,h,y[y.length-1]||void 0))&&(b=AI(r(p,y)),b[0]===gw))return b;if("children"in p&&p.children){const k=p;if(k.children&&b[0]!==jI)for(N=(i?k.children.length:-1)+u,C=y.concat(k);N>-1&&N<k.children.length;){const M=k.children[N];if(E=d(M,N,C)(),E[0]===gw)return E;N=typeof E[1]=="number"?E[1]:N+u}}return b}}}function AI(e){return Array.isArray(e)?e:typeof e=="number"?[CI,e]:e==null?AN:[e]}function TN(e,t,r,i){let o,s,u;typeof t=="function"&&typeof r!="function"?(s=void 0,u=t,o=r):(s=t,u=r,o=i),kI(e,s,d,o);function d(p,h){const y=h[h.length-1],v=y?y.children.indexOf(p):void 0;return u(p,v,y)}}const ep={}.hasOwnProperty,TI={};function _I(e,t){const r=t||TI,i=new Map,o=new Map,s=new Map,u={...fI,...r.handlers},d={all:h,applyData:RI,definitionById:i,footnoteById:o,footnoteCounts:s,footnoteOrder:[],handlers:u,one:p,options:r,patch:DI,wrap:zI};return TN(e,function(y){if(y.type==="definition"||y.type==="footnoteDefinition"){const v=y.type==="definition"?i:o,x=String(y.identifier).toUpperCase();v.has(x)||v.set(x,y)}}),d;function p(y,v){const x=y.type,b=d.handlers[x];if(ep.call(d.handlers,x)&&b)return b(d,y,v);if(d.options.passThrough&&d.options.passThrough.includes(x)){if("children"in y){const{children:N,...C}=y,k=Xc(C);return k.children=d.all(y),k}return Xc(y)}return(d.options.unknownHandler||OI)(d,y,v)}function h(y){const v=[];
vendor: 14,716 bytes, lines 88-92
88if("children"in y){const x=y.children;let b=-1;for(;++b<x.length;){const E=d.one(x[b],y);if(E){if(b&&x[b-1].type==="break"&&(!Array.isArray(E)&&E.type==="text"&&(E.value=yw(E.value)),!Array.isArray(E)&&E.type==="element")){const N=E.children[0];N&&N.type==="text"&&(N.value=yw(N.value))}Array.isArray(E)?v.push(...E):v.push(E)}}}return v}}function DI(e,t){e.position&&(t.position=h6(e))}function RI(e,t){let r=t;if(e&&e.data){const i=e.data.hName,o=e.data.hChildren,s=e.data.hProperties;if(typeof i=="string")if(r.type==="element")r.tagName=i;else{const u="children"in r?r.children:[r];r={type:"element",tagName:i,properties:{},children:u}}r.type==="element"&&s&&Object.assign(r.properties,Xc(s)),"children"in r&&r.children&&o!==null&&o!==void 0&&(r.children=o)}return r}function OI(e,t){const r=t.data||{},i="value"in t&&!(ep.call(r,"hProperties")||ep.call(r,"hChildren"))?{type:"text",value:t.value}:{type:"element",tagName:"div",properties:{},children:e.all(t)};return e.patch(t,i),e.applyData(t,i)}function zI(e,t){const r=[];let i=-1;for(t&&r.push({type:"text",value:` 89`});++i<e.length;)i&&r.push({type:"text",value:` 90`}),r.push(e[i]);return t&&e.length>0&&r.push({type:"text",value:` 91`}),r}function yw(e){let t=0,r=e.charCodeAt(t);for(;r===9||r===32;)t++,r=e.charCodeAt(t);return e.slice(t)}function vw(e,t){const r=_I(e,t),i=r.one(e,void 0),o=bI(r),s=Array.isArray(i)?{type:"root",children:i}:i||{type:"root",children:[]};return o&&s.children.push({type:"text",value:` 92`},o),s}function MI(e,t){return e&&"run"in e?async function(r,i){const o=vw(r,{file:i,...t});await e.run(o,i)}:function(r,i){return vw(r,{file:i,...e||t})}}function bw(e){if(e)throw e}var fh,xw;function LI(){if(xw)return fh;xw=1;var e=Object.prototype.hasOwnProperty,t=Object.prototype.toString,r=Object.defineProperty,i=Object.getOwnPropertyDescriptor,o=function(h){return typeof Array.isArray=="function"?Array.isArray(h):t.call(h)==="[object Array]"},s=function(h){if(!h||t.call(h)!=="[object Object]")return!1;var y=e.call(h,"constructor"),v=h.constructor&&h.constructor.prototype&&e.call(h.constructor.prototype,"isPrototypeOf");if(h.constructor&&!y&&!v)return!1;var x;for(x in h);return typeof x>"u"||e.call(h,x)},u=function(h,y){r&&y.name==="__proto__"?r(h,y.name,{enumerable:!0,configurable:!0,value:y.newValue,writable:!0}):h[y.name]=y.newValue},d=function(h,y){if(y==="__proto__")if(e.call(h,y)){if(i)return i(h,y).value}else return;return h[y]};return fh=function p(){var h,y,v,x,b,E,N=arguments[0],C=1,k=arguments.length,M=!1;for(typeof N=="boolean"&&(M=N,N=arguments[1]||{},C=2),(N==null||typeof N!="object"&&typeof N!="function")&&(N={});C<k;++C)if(h=arguments[C],h!=null)for(y in h)v=d(N,y),x=d(h,y),N!==x&&(M&&x&&(s(x)||(b=o(x)))?(b?(b=!1,E=v&&o(v)?v:[]):E=v&&s(v)?v:{},u(N,{name:y,newValue:p(M,E,x)})):typeof x<"u"&&u(N,{name:y,newValue:x}));return N},fh}var BI=LI();const mh=Jc(BI);function tp(e){if(typeof e!="object"||e===null)return!1;const t=Object.getPrototypeOf(e);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)}function FI(){const e=[],t={run:r,use:i};return t;function r(...o){let s=-1;const u=o.pop();if(typeof u!="function")throw new TypeError("Expected function as last argument, not "+u);d(null,...o);function d(p,...h){const y=e[++s];let v=-1;if(p){u(p);return}for(;++v<o.length;)(h[v]===null||h[v]===void 0)&&(h[v]=o[v]);o=h,y?II(y,d)(...h):u(null,...h)}}function i(o){if(typeof o!="function")throw new TypeError("Expected `middelware` to be a function, not "+o);return e.push(o),t}}function II(e,t){let r;return i;function i(...u){const d=e.length>u.length;let p;d&&u.push(o);try{p=e.apply(this,u)}catch(h){const y=h;if(d&&r)throw y;return o(y)}d||(p&&p.then&&typeof p.then=="function"?p.then(s,o):p instanceof Error?o(p):s(p))}function o(u,...d){r||(r=!0,t(u,...d))}function s(u){o(null,u)}}const Mr={basename:UI,dirname:PI,extname:VI,join:HI,sep:"/"};function UI(e,t){if(t!==void 0&&typeof t!="string")throw new TypeError('"ext" argument must be a string');Us(e);let r=0,i=-1,o=e.length,s;if(t===void 0||t.length===0||t.length>e.length){for(;o--;)if(e.codePointAt(o)===47){if(s){r=o+1;break}}else i<0&&(s=!0,i=o+1);return i<0?"":e.slice(r,i)}if(t===e)return"";let u=-1,d=t.length-1;for(;o--;)if(e.codePointAt(o)===47){if(s){r=o+1;break}}else u<0&&(s=!0,u=o+1),d>-1&&(e.codePointAt(o)===t.codePointAt(d--)?d<0&&(i=o):(d=-1,i=u));return r===i?i=u:i<0&&(i=e.length),e.slice(r,i)}function PI(e){if(Us(e),e.length===0)return".";let t=-1,r=e.length,i;for(;--r;)if(e.codePointAt(r)===47){if(i){t=r;break}}else i||(i=!0);return t<0?e.codePointAt(0)===47?"/":".":t===1&&e.codePointAt(0)===47?"//":e.slice(0,t)}function VI(e){Us(e);let t=e.length,r=-1,i=0,o=-1,s=0,u;for(;t--;){const d=e.codePointAt(t);if(d===47){if(u){i=t+1;break}continue}r<0&&(u=!0,r=t+1),d===46?o<0?o=t:s!==1&&(s=1):o>-1&&(s=-1)}return o<0||r<0||s===0||s===1&&o===r-1&&o===i+1?"":e.slice(o,r)}function HI(...e){let t=-1,r;for(;++t<e.length;)Us(e[t]),e[t]&&(r=r===void 0?e[t]:r+"/"+e[t]);return r===void 0?".":qI(r)}function qI(e){Us(e);const t=e.codePointAt(0)===47;let r=ZI(e,!t);return r.length===0&&!t&&(r="."),r.length>0&&e.codePointAt(e.length-1)===47&&(r+="/"),t?"/"+r:r}function ZI(e,t){let r="",i=0,o=-1,s=0,u=-1,d,p;for(;++u<=e.length;){if(u<e.length)d=e.codePointAt(u);else{if(d===47)break;d=47}if(d===47){if(!(o===u-1||s===1))if(o!==u-1&&s===2){if(r.length<2||i!==2||r.codePointAt(r.length-1)!==46||r.codePointAt(r.length-2)!==46){if(r.length>2){if(p=r.lastIndexOf("/"),p!==r.length-1){p<0?(r="",i=0):(r=r.slice(0,p),i=r.length-1-r.lastIndexOf("/")),o=u,s=0;continue}}else if(r.length>0){r="",i=0,o=u,s=0;continue}}t&&(r=r.length>0?r+"/..":"..",i=2)}else r.length>0?r+="/"+e.slice(o+1,u):r=e.slice(o+1,u),i=u-o-1;o=u,s=0}else d===46&&s>-1?s++:s=-1}return r}function Us(e){if(typeof e!="string")throw new TypeError("Path must be a string. Received "+JSON.stringify(e))}const $I={cwd:KI};function KI(){return"/"}function np(e){return!!(e!==null&&typeof e=="object"&&"href"in e&&e.href&&"protocol"in e&&e.protocol&&e.auth===void 0)}function GI(e){if(typeof e=="string")e=new URL(e);else if(!np(e)){const t=new TypeError('The "path" argument must be of type string or an instance of URL. Received `'+e+"`");throw t.code="ERR_INVALID_ARG_TYPE",t}if(e.protocol!=="file:"){const t=new TypeError("The URL must be of scheme file");throw t.code="ERR_INVALID_URL_SCHEME",t}return YI(e)}function YI(e){if(e.hostname!==""){const i=new TypeError('File URL host must be "localhost" or empty on darwin');throw i.code="ERR_INVALID_FILE_URL_HOST",i}const t=e.pathname;let r=-1;for(;++r<t.length;)if(t.codePointAt(r)===37&&t.codePointAt(r+1)===50){const i=t.codePointAt(r+2);if(i===70||i===102){const o=new TypeError("File URL path must not include encoded / characters");throw o.code="ERR_INVALID_FILE_URL_PATH",o}}return decodeURIComponent(t)}const hh=["history","path","basename","stem","extname","dirname"];class _N{constructor(t){let r;t?np(t)?r={path:t}:typeof t=="string"||XI(t)?r={value:t}:r=t:r={},this.cwd="cwd"in r?"":$I.cwd(),this.data={},this.history=[],this.messages=[],this.value,this.map,this.result,this.stored;let i=-1;for(;++i<hh.length;){const s=hh[i];s in r&&r[s]!==void 0&&r[s]!==null&&(this[s]=s==="history"?[...r[s]]:r[s])}let o;for(o in r)hh.includes(o)||(this[o]=r[o])}get basename(){return typeof this.path=="string"?Mr.basename(this.path):void 0}set basename(t){gh(t,"basename"),ph(t,"basename"),this.path=Mr.join(this.dirname||"",t)}get dirname(){return typeof this.path=="string"?Mr.dirname(this.path):void 0}set dirname(t){ww(this.basename,"dirname"),this.path=Mr.join(t||"",this.basename)}get extname(){return typeof this.path=="string"?Mr.extname(this.path):void 0}set extname(t){if(ph(t,"extname"),ww(this.dirname,"extname"),t){if(t.codePointAt(0)!==46)throw new Error("`extname` must start with `.`");if(t.includes(".",1))throw new Error("`extname` cannot contain multiple dots")}this.path=Mr.join(this.dirname,this.stem+(t||""))}get path(){return this.history[this.history.length-1]}set path(t){np(t)&&(t=GI(t)),gh(t,"path"),this.path!==t&&this.history.push(t)}get stem(){return typeof this.path=="string"?Mr.basename(this.path,this.extname):void 0}set stem(t){gh(t,"stem"),ph(t,"stem"),this.path=Mr.join(this.dirname||"",t+(this.extname||""))}fail(t,r,i){const o=this.message(t,r,i);throw o.fatal=!0,o}info(t,r,i){const o=this.message(t,r,i);return o.fatal=void 0,o}message(t,r,i){const o=new yn(t,r,i);return this.path&&(o.name=this.path+":"+o.name,o.file=this.path),o.fatal=!1,this.messages.push(o),o}toString(t){return this.value===void 0?"":typeof this.value=="string"?this.value:new TextDecoder(t||void 0).decode(this.value)}}function ph(e,t){if(e&&e.includes(Mr.sep))throw new Error("`"+t+"` cannot be a path: did not expect `"+Mr.sep+"`")}function gh(e,t){if(!e)throw new Error("`"+t+"` cannot be empty")}function ww(e,t){if(!e)throw new Error("Setting `"+t+"` requires `path` to be set too")}function XI(e){return!!(e&&typeof e=="object"&&"byteLength"in e&&"byteOffset"in e)}const QI=(function(e){const i=this.constructor.prototype,o=i[e],s=function(){return o.apply(s,arguments)};return Object.setPrototypeOf(s,i),s}),JI={}.hasOwnProperty;class hg extends QI{constructor(){super("copy"),this.Compiler=void 0,this.Parser=void 0,this.attachers=[],this.compiler=void 0,this.freezeIndex=-1,this.frozen=void 0,this.namespace={},this.parser=void 0,this.transformers=FI()}copy(){const t=new hg;let r=-1;for(;++r<this.attachers.length;){const i=this.attachers[r];t.use(...i)}return t.data(mh(!0,{},this.namespace)),t}data(t,r){return typeof t=="string"?arguments.length===2?(bh("data",this.frozen),this.namespace[t]=r,this):JI.call(this.namespace,t)&&this.namespace[t]||void 0:t?(bh("data",this.frozen),this.namespace=t,this):this.namespace}freeze(){if(this.frozen)return this;const t=this;for(;++this.freezeIndex<this.attachers.length;){const[r,...i]=this.attachers[this.freezeIndex];if(i[0]===!1)continue;i[0]===!0&&(i[0]=void 0);const o=r.call(t,...i);typeof o=="function"&&this.transformers.use(o)}return this.frozen=!0,this.freezeIndex=Number.POSITIVE_INFINITY,this}parse(t){this.freeze();const r=gc(t),i=this.parser||this.Parser;return yh("parse",i),i(String(r),r)}process(t,r){const i=this;return this.freeze(),yh("process",this.parser||this.Parser),vh("process",this.compiler||this.Compiler),r?o(void 0,r):new Promise(o);function o(s,u){const d=gc(t),p=i.parse(d);i.run(p,d,function(y,v,x){if(y||!v||!x)return h(y);const b=v,E=i.stringify(b,x);tU(E)?x.value=E:x.result=E,h(y,x)});function h(y,v){y||!v?u(y):s?s(v):r(void 0,v)}}}processSync(t){let r=!1,i;return this.freeze(),yh("processSync",this.parser||this.Parser),vh("processSync",this.compiler||this.Compiler),this.process(t,o),Ew("processSync","process",r),i;function o(s,u){r=!0,bw(s),i=u}}run(t,r,i){Sw(t),this.freeze();const o=this.transformers;return!i&&typeof r=="function"&&(i=r,r=void 0),i?s(void 0,i):new Promise(s);function s(u,d){const p=gc(r);o.run(t,p,h);function h(y,v,x){const b=v||t;y?d(y):u?u(b):i(void 0,b,x)}}}runSync(t,r){let i=!1,o;return this.run(t,r,s),Ew("runSync","run",i),o;function s(u,d){bw(u),o=d,i=!0}}stringify(t,r){this.freeze();const i=gc(r),o=this.compiler||this.Compiler;return vh("stringify",o),Sw(t),o(t,i)}use(t,...r){const i=this.attachers,o=this.namespace;if(bh("use",this.frozen),t!=null)if(typeof t=="function")p(t,r);else if(typeof t=="object")Array.isArray(t)?d(t):u(t);else throw new TypeError("Expected usable value, not `"+t+"`");return this;function s(h){if(typeof h=="function")p(h,[]);else if(typeof h=="object")if(Array.isArray(h)){const[y,...v]=h;p(y,v)}else u(h);else throw new TypeError("Expected usable value, not `"+h+"`")}function u(h){if(!("plugins"in h)&&!("settings"in h))throw new Error("Expected usable value but received an empty preset, which is probably a mistake: presets typically come with `plugins` and sometimes with `settings`, but this has neither");d(h.plugins),h.settings&&(o.settings=mh(!0,o.settings,h.settings))}function d(h){let y=-1;if(h!=null)if(Array.isArray(h))for(;++y<h.length;){const v=h[y];s(v)}else throw new TypeError("Expected a list of plugins, not `"+h+"`")}function p(h,y){let v=-1,x=-1;for(;++v<i.length;)if(i[v][0]===h){x=v;break}if(x===-1)i.push([h,...y]);else if(y.length>0){let[b,...E]=y;const N=i[x][1];tp(N)&&tp(b)&&(b=mh(!0,N,b)),i[x]=[h,b,...E]}}}}const WI=new hg().freeze();function yh(e,t){if(typeof t!="function")throw new TypeError("Cannot `"+e+"` without `parser`")}function vh(e,t){if(typeof t!="function")throw new TypeError("Cannot `"+e+"` without `compiler`")}function bh(e,t){if(t)throw new Error("Cannot call `"+e+"` on a frozen processor.\nCreate a new processor first, by calling it: use `processor()` instead of `processor`.")}function Sw(e){if(!tp(e)||typeof e.type!="string")throw new TypeError("Expected node, got `"+e+"`")}function Ew(e,t,r){if(!r)throw new Error("`"+e+"` finished async. Use `"+t+"` instead")}function gc(e){return eU(e)?e:new _N(e)}function eU(e){return!!(e&&typeof e=="object"&&"message"in e&&"messages"in e)}function tU(e){return typeof e=="string"||nU(e)}function nU(e){return!!(e&&typeof e=="object"&&"byteLength"in e&&"byteOffset"in e)}const rU="https://github.com/remarkjs/react-markdown/blob/main/changelog.md",Nw=[],Cw={allowDangerousHtml:!0},aU=/^(https?|ircs?|mailto|xmpp)$/i,iU=[{from:"astPlugins",id:"remove-buggy-html-in-markdown-parser"},{from:"allowDangerousHtml",id:"remove-buggy-html-in-markdown-parser"},{from:"allowNode",id:"replace-allownode-allowedtypes-and-disallowedtypes",to:"allowElement"},{from:"allowedTypes",id:"replace-allownode-allowedtypes-and-disallowedtypes",to:"allowedElements"},{from:"className",id:"remove-classname"},{from:"disallowedTypes",id:"replace-allownode-allowedtypes-and-disallowedtypes",to:"disallowedElements"},{from:"escapeHtml",id:"remove-buggy-html-in-markdown-parser"},{from:"includeElementIndex",id:"#remove-includeelementindex"},{from:"includeNodeIndex",id:"change-includenodeindex-to-includeelementindex"},{from:"linkTarget",id:"remove-linktarget"},{from:"plugins",id:"change-plugins-to-remarkplugins",to:"remarkPlugins"},{from:"rawSourcePos",id:"#remove-rawsourcepos"},{from:"renderers",id:"change-renderers-to-components",to:"components"},{from:"source",id:"change-source-to-children",to:"children"},{from:"sourcePos",id:"#remove-sourcepos"},{from:"transformImageUri",id:"#add-urltransform",to:"urlTransform"},{from:"transformLinkUri",id:"#add-urltransform",to:"urlTransform"}];function ai(e){const t=lU(e),r=oU(e);return sU(t.runSync(t.parse(r),r),e)}function lU(e){const t=e.rehypePlugins||Nw,r=e.remarkPlugins||Nw,i=e.remarkRehypeOptions?{...e.remarkRehypeOptions,...Cw}:Cw;
92return WI().use(UF).use(r).use(MI,i).use(t)}function oU(e){const t=e.children||"",r=new _N;return typeof t=="string"&&(r.value=t),r}function sU(e,t){const r=t.allowedElements,i=t.allowElement,o=t.components,s=t.disallowedElements,u=t.skipHtml,d=t.unwrapDisallowed,p=t.urlTransform||uU;for(const y of iU)Object.hasOwn(t,y.from)&&(""+y.from+(y.to?"use `"+y.to+"` instead":"remove it")+rU+y.id,void 0);return TN(e,h),b6(e,{Fragment:f.Fragment,components:o,ignoreInvalidStyle:!0,jsx:f.jsx,jsxs:f.jsxs,passKeys:!0,passNode:!0});function h(y,v,x){if(y.type==="raw"&&x&&typeof v=="number")return u?x.children.splice(v,1):x.children[v]={type:"text",value:y.value},v;if(y.type==="element"){let b;for(b in uh)if(Object.hasOwn(uh,b)&&Object.hasOwn(y.properties,b)){const E=y.properties[b],N=uh[b];(N===null||N.includes(y.tagName))&&(y.properties[b]=p(String(E||""),b,y))}}if(y.type==="element"){let b=r?!r.includes(y.tagName):s?s.includes(y.tagName):!1;if(!b&&i&&typeof v=="number"&&(b=!i(y,v,x)),b&&x&&typeof v=="number")return d&&y.children?x.children.splice(v,1,...y.children):x.children.splice(v,1),v}}}function uU(e){const t=e.indexOf(":"),r=e.indexOf("?"),i=e.indexOf("#"),o=e.indexOf("/");return t===-1||o!==-1&&t>o||r!==-1&&t>r||i!==-1&&t>i||aU.test(e.slice(0,t))?e:""}function cU({block:e}){return f.jsx("div",{className:"text-base leading-7 mb-4 text-foreground prose prose-slate dark:prose-invert max-w-none prose-p:my-0 prose-a:text-primary prose-code:bg-muted prose-code:px-1.5 prose-code:py-0.5 prose-code:rounded prose-code:text-sm prose-code:font-mono prose-code:before:content-none prose-code:after:content-none",children:f.jsx(ai,{components:{p:({children:t})=>f.jsx("p",{className:"my-0",children:t}),a:({href:t,children:r})=>f.jsx("a",{href:t,target:"_blank",rel:"noopener noreferrer",className:"text-primary underline decoration-primary/50 hover:decoration-primary transition-colors",children:r})},children:e.content.replace(/\n/g,` 93`)})})}function DN({block:e}){const[t,r]=S.useState(!1),[i,o]=S.useState(!1),s=e.metadata?.language||"text",u=async()=>{try{await navigator.clipboard.writeText(e.content),r(!0),o(!1),setTimeout(()=>r(!1),2e3)}catch(d){console.error("Failed to copy to clipboard:",d),o(!0),setTimeout(()=>o(!1),2e3)}};return f.jsxs("div",{className:"relative group my-4 rounded-lg overflow-hidden",children:[s!=="text"&&f.jsx("div",{className:"absolute top-0 left-0 px-3 py-1 text-xs font-mono text-muted-foreground bg-muted/80 rounded-br",children:s}),f.jsx("button",{type:"button",onClick:u,className:Ge("absolute top-2 right-2 p-2 rounded-md transition-opacity","bg-muted/80 hover:bg-muted text-muted-foreground hover:text-foreground","opacity-0 group-hover:opacity-100 focus:opacity-100",i&&"text-destructive"),title:i?"Failed to copy":"Copy code","aria-label":i?"Failed to copy":t?"Copied":"Copy code",children:t?f.jsx(ya,{className:"h-4 w-4 text-green-500"}):f.jsx($l,{className:"h-4 w-4"})}),f.jsx("pre",{className:"bg-muted p-4 pt-8 overflow-x-auto",children:f.jsx("code",{className:"text-sm font-mono leading-relaxed",children:e.content})})]})}let yc=null,jw=!1,xh=null;async function dU(){return yc||(xh||(xh=(async()=>{yc=(await CE(()=>import("./mermaid.core-BNWplO9u.js").then(t=>t.bC),__vite__mapDeps([0,1]))).default})()),await xh,yc)}function fU(e){jw||(e.initialize({startOnLoad:!1,theme:"neutral",fontFamily:"inherit",securityLevel:"loose"}),jw=!0)}let mU=0;function RN({block:e}){const t=S.useRef(null),[r,i]=S.useState(null),[o,s]=S.useState(!0),u=S.useCallback(async()=>{s(!0),i(null);try{const d=await dU();fU(d);const p=`mermaid-${++mU}`,{svg:h}=await d.render(p,e.content);t.current&&(t.current.innerHTML=h)}catch(d){i(d instanceof Error?d.message:"Failed to render diagram")}finally{s(!1)}},[e.content]);return S.useEffect(()=>{u()},[u]),r?f.jsxs("div",{className:"my-4",children:[f.jsxs("div",{className:"text-xs text-destructive mb-2 px-1",children:["Mermaid diagram error: ",r]}),f.jsx(DN,{block:e})]}):f.jsxs("div",{className:"my-4",children:[o&&f.jsx("div",{className:"bg-muted rounded-lg p-8 flex items-center justify-center",children:f.jsx("span",{className:"text-sm text-muted-foreground",children:"Rendering diagramâ¦"})}),f.jsx("div",{ref:t,className:"bg-muted rounded-lg p-4 overflow-x-auto [&_svg]:mx-auto",style:{display:o?"none":void 0},"data-testid":"mermaid-diagram"})]})}function hU({block:e}){const t=e.metadata?.listType||"bullet",r=e.content.split(` 94`).filter(s=>s.trim()),i=t==="ordered"?"ol":"ul",o=t==="ordered"?"list-decimal list-inside":"list-disc list-inside";return f.jsx(i,{className:`${o} my-4 space-y-1 text-foreground`,children:r.map((s,u)=>f.jsx("li",{className:"leading-7 prose prose-slate dark:prose-invert prose-p:my-0 prose-p:inline prose-a:text-primary prose-code:bg-muted prose-code:px-1.5 prose-code:py-0.5 prose-code:rounded prose-code:text-sm prose-code:font-mono prose-code:before:content-none prose-code:after:content-none",children:f.jsx(ai,{components:{p:({children:d})=>f.jsx(f.Fragment,{children:d}),a:({href:d,children:p})=>f.jsx("a",{href:d,target:"_blank",rel:"noopener noreferrer",className:"text-primary underline decoration-primary/50 hover:decoration-primary transition-colors",children:p})},children:s.replace(/^[-*\d.]\s*/,"")})},u))})}function pU({block:e}){return f.jsx("blockquote",{className:"my-4 pl-4 border-l-4 border-primary/50 italic text-muted-foreground prose prose-slate dark:prose-invert prose-p:my-0 prose-a:text-primary prose-code:bg-muted prose-code:px-1.5 prose-code:py-0.5 prose-code:rounded prose-code:text-sm prose-code:font-mono prose-code:before:content-none prose-code:after:content-none",children:f.jsx(ai,{components:{p:({children:t})=>f.jsx("p",{className:"leading-7",children:t}),a:({href:t,children:r})=>f.jsx("a",{href:t,target:"_blank",rel:"noopener noreferrer",className:"text-primary underline decoration-primary/50 hover:decoration-primary transition-colors",children:r})},children:e.content})})}function gU(e){try{const t=new URL(e);return["http:","https:"].includes(t.protocol)?e:(console.warn("Invalid image URL protocol:",e),"")}catch{return console.warn("Invalid image URL:",e),""}}function ON({block:e}){const t=e.metadata?.url||e.content,r=gU(t),i=e.metadata?.alt||"Image",o=e.metadata?.caption;return r?f.jsxs("figure",{className:"my-6",children:[f.jsx("img",{src:r,alt:i,className:"max-w-full h-auto rounded-lg mx-auto",loading:"lazy"}),o&&f.jsx("figcaption",{className:"mt-2 text-center text-sm text-muted-foreground",children:o})]}):f.jsx("figure",{className:"my-6",children:f.jsx("div",{className:"bg-muted rounded-lg p-8 text-center text-muted-foreground",children:"Invalid or unsupported image URL"})})}function zN({block:e}){const t=o=>{const s=o.trim().split(` 95`).filter(u=>u.trim());if(s.length===0)return{headers:[],rows:[]};if(o.includes("|")){const u=s.filter(h=>!h.match(/^[\s|:-]+$/)).map(h=>h.split("|").map(y=>y.trim()).filter(y=>y)),d=u[0]||[],p=u.slice(1);return{headers:d,rows:p}}try{const u=JSON.parse(o);if(Array.isArray(u)&&u.length>0){const d=Object.keys(u[0]),p=u.map(h=>d.map(y=>String(h[y]||"")));return{headers:d,rows:p}}}catch{}return{headers:[],rows:[]}},{headers:r,rows:i}=t(e.content);return r.length===0?f.jsx("div",{className:"my-4 p-4 bg-muted rounded text-sm text-muted-foreground",children:"Unable to parse table content"}):f.jsx("div",{className:"my-4 overflow-x-auto",children:f.jsxs("table",{className:"w-full border-collapse border border-border rounded-lg",children:[f.jsx("thead",{children:f.jsx("tr",{className:"bg-muted",children:r.map((o,s)=>f.jsx("th",{className:"px-4 py-2 text-left text-sm font-medium border-b border-border prose prose-slate dark:prose-invert prose-p:my-0 prose-a:text-primary prose-code:bg-muted prose-code:px-1.5 prose-code:py-0.5 prose-code:rounded prose-code:text-sm prose-code:font-mono prose-code:before:content-none prose-code:after:content-none",children:f.jsx(ai,{components:{p:({children:u})=>f.jsx(f.Fragment,{children:u}),a:({href:u,children:d})=>f.jsx("a",{href:u,target:"_blank",rel:"noopener noreferrer",className:"text-primary underline decoration-primary/50 hover:decoration-primary transition-colors",children:d})},children:o})},s))})}),f.jsx("tbody",{children:i.map((o,s)=>f.jsx("tr",{className:"hover:bg-muted/50 transition-colors",children:o.map((u,d)=>f.jsx("td",{className:"px-4 py-2 text-sm border-b border-border prose prose-slate dark:prose-invert prose-p:my-0 prose-a:text-primary prose-code:bg-muted prose-code:px-1.5 prose-code:py-0.5 prose-code:rounded prose-code:text-sm prose-code:font-mono prose-code:before:content-none prose-code:after:content-none",children:f.jsx(ai,{components:{p:({children:p})=>f.jsx(f.Fragment,{children:p}),a:({href:p,children:h})=>f.jsx("a",{href:p,target:"_blank",rel:"noopener noreferrer",className:"text-primary underline decoration-primary/50 hover:decoration-primary transition-colors",children:h})},children:u})},d))},s))})]})})}function MN(){return f.jsx("hr",{className:"my-8 border-border"})}function yU({block:e}){switch(e.type){case"heading":return f.jsx(qL,{block:e});case"paragraph":return f.jsx(cU,{block:e});case"code":return e.metadata?.language==="mermaid"?f.jsx(RN,{block:e}):f.jsx(DN,{block:e});case"list":return f.jsx(hU,{block:e});case"quote":return f.jsx(pU,{block:e});case"image":return f.jsx(ON,{block:e});case"table":return f.jsx(zN,{block:e});case"divider":return f.jsx(MN,{});default:return f.jsxs("div",{className:"my-4 p-4 bg-muted/50 rounded text-sm",children:[f.jsxs("p",{className:"text-muted-foreground mb-1",children:["Unknown block type: ",e.type]}),f.jsx("p",{children:e.content})]})}}
95function pg({value:e,onChange:t,onFocus:r,onBlur:i,onKeyDown:o,placeholder:s="Type something...",className:u="",as:d="div",autoFocus:p=!1}){const h=S.useRef(null),y=S.useRef(!1),v=S.useRef(!1);S.useEffect(()=>{if(h.current&&!v.current){const B=e.replace(/\n/g,"<br>");h.current.innerHTML!==B&&(h.current.innerHTML=B)}},[e]),S.useEffect(()=>{if(p&&h.current){h.current.focus();const B=window.getSelection();if(B){const T=document.createRange();T.selectNodeContents(h.current),T.collapse(!1),B.removeAllRanges(),B.addRange(T)}}},[p]);const x=S.useCallback(()=>{if(!y.current&&h.current){const T=h.current.innerHTML.replace(/<br\s*\/?>/gi,` 96`).replace(/<\/div><div>/gi,` 97`).replace(/<\/?div>/gi,"").replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">").replace(/ /g," ").replace(/\n$/,"");t(T)}},[t]),b=S.useCallback(()=>{y.current=!0},[]),E=S.useCallback(()=>{y.current=!1,x()},[x]),N=S.useCallback(B=>{B.preventDefault();const L=B.clipboardData.getData("text/plain").replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">").replace(/\n/g,"<br>");document.execCommand("insertHTML",!1,L)},[]),C=S.useCallback(()=>{v.current=!0,r?.(),h.current&&h.current.textContent===""&&(h.current.dataset.empty="true")},[r]),k=S.useCallback(()=>{v.current=!1,i?.()},[i]),M=S.useCallback(B=>{o?.(B)},[o]),O=!e||e.trim()==="";return f.jsx(d,{ref:h,contentEditable:!0,suppressContentEditableWarning:!0,onInput:x,onCompositionStart:b,onCompositionEnd:E,onPaste:N,onFocus:C,onBlur:k,onKeyDown:M,"data-placeholder":s,"data-empty":O,className:` 98 outline-none 99 min-h-[1.5em] 100 ${O?"empty:before:content-[attr(data-placeholder)] empty:before:text-muted-foreground/50":""} 101 ${u} 102 `})}function vU({block:e,isActive:t,onFocus:r}){const{updateBlockContent:i,addBlock:o,changeBlockType:s,setActiveBlock:u}=zi(),d=e.metadata?.level||1,p=S.useCallback(E=>{i(e.id,E)},[e.id,i]),h=S.useCallback(E=>{E.key==="Enter"&&!E.shiftKey&&(E.preventDefault(),o(e.id,"paragraph")),E.key==="Backspace"&&e.content===""&&(E.preventDefault(),s(e.id,"paragraph")),E.key==="Escape"&&(E.preventDefault(),u(null))},[e.id,e.content,o,s,u]),y=S.useCallback(()=>{u(null)},[u]),v={1:"Heading 1",2:"Heading 2",3:"Heading 3",4:"Heading 4",5:"Heading 5",6:"Heading 6"},x={1:"text-3xl md:text-4xl mt-8 mb-4",2:"text-2xl md:text-3xl mt-6 mb-3",3:"text-xl md:text-2xl mt-5 mb-2",4:"text-lg md:text-xl mt-4 mb-2",5:"text-base md:text-lg mt-3 mb-2 font-semibold",6:"text-sm md:text-base mt-3 mb-1 font-semibold"},b=x[d]||x[1];return t?f.jsx("div",{className:Ge("font-bold rounded-sm bg-muted/30",b),children:f.jsx(pg,{value:e.content,onChange:p,onFocus:r,onBlur:y,onKeyDown:h,placeholder:v[d]||"Heading",className:"px-1 -mx-1",autoFocus:!0})}):f.jsx("div",{onClick:r,onKeyDown:E=>E.key==="Enter"&&r(),role:"button",tabIndex:0,className:Ge("font-bold rounded-sm transition-colors hover:bg-muted/20 cursor-text px-1 -mx-1",b),children:e.content||f.jsx("span",{className:"text-muted-foreground/50",children:v[d]||"Heading"})})}function bU({block:e,isActive:t,onFocus:r}){const{updateBlockContent:i,addBlock:o,deleteBlock:s,setActiveBlock:u}=zi(),d=S.useCallback(y=>{i(e.id,y)},[e.id,i]),p=S.useCallback(y=>{y.key==="Enter"&&!y.shiftKey&&(y.preventDefault(),o(e.id,"paragraph")),y.key==="Backspace"&&e.content===""&&(y.preventDefault(),s(e.id)),y.key==="Escape"&&(y.preventDefault(),u(null))},[e.id,e.content,o,s,u]),h=S.useCallback(()=>{u(null)},[u]);return t?f.jsx("div",{className:"text-base leading-7 mb-4 text-foreground rounded-sm bg-muted/30",children:f.jsx(pg,{value:e.content,onChange:d,onFocus:r,onBlur:h,onKeyDown:p,placeholder:"Type something...",className:"min-h-[1.75rem] px-1 -mx-1",autoFocus:!0})}):f.jsx("div",{onClick:r,onKeyDown:y=>y.key==="Enter"&&r(),role:"button",tabIndex:0,className:"text-base leading-7 mb-4 text-foreground prose prose-slate dark:prose-invert max-w-none prose-p:my-0 prose-a:text-primary prose-code:bg-muted prose-code:px-1.5 prose-code:py-0.5 prose-code:rounded prose-code:text-sm prose-code:font-mono prose-code:before:content-none prose-code:after:content-none rounded-sm hover:bg-muted/20 transition-colors cursor-text px-1 -mx-1",children:e.content?f.jsx(ai,{components:{p:({children:y})=>f.jsx("p",{className:"my-0",children:y}),a:({href:y,children:v})=>f.jsx("a",{href:y,target:"_blank",rel:"noopener noreferrer",className:"text-primary underline decoration-primary/50 hover:decoration-primary transition-colors",onClick:x=>x.stopPropagation(),children:v})},children:e.content.replace(/\n/g,` 103`)}
103):f.jsx("span",{className:"text-muted-foreground/50",children:"Type something..."})})}function xU({block:e,isActive:t,onFocus:r}){const{updateBlockContent:i,addBlock:o,changeBlockType:s,setActiveBlock:u}=zi(),d=S.useCallback(v=>{i(e.id,v)},[e.id,i]),p=S.useCallback(v=>{v.key==="Enter"&&!v.shiftKey&&(v.preventDefault(),o(e.id,"paragraph")),v.key==="Backspace"&&e.content===""&&(v.preventDefault(),s(e.id,"paragraph")),v.key==="Escape"&&(v.preventDefault(),u(null))},[e.id,e.content,o,s,u]),h=S.useCallback(()=>{u(null)},[u]),y="my-4 pl-4 border-l-4 border-primary/50 italic text-muted-foreground rounded-sm transition-colors";return t?f.jsx("blockquote",{className:`${y} bg-muted/30`,children:f.jsx(pg,{value:e.content,onChange:d,onFocus:r,onBlur:h,onKeyDown:p,placeholder:"Type a quote...",className:"leading-7 px-1",autoFocus:!0})}):f.jsx("blockquote",{onClick:r,onKeyDown:v=>v.key==="Enter"&&r(),role:"button",tabIndex:0,className:`${y} hover:bg-muted/20 cursor-text prose prose-slate dark:prose-invert prose-p:my-0 prose-a:text-primary`,children:e.content?f.jsx(ai,{components:{p:({children:v})=>f.jsx("p",{className:"leading-7",children:v}),a:({href:v,children:x})=>f.jsx("a",{href:v,target:"_blank",rel:"noopener noreferrer",className:"text-primary underline decoration-primary/50 hover:decoration-primary transition-colors",onClick:b=>b.stopPropagation(),children:x})},children:e.content}):f.jsx("span",{className:"text-muted-foreground/50 leading-7",children:"Type a quote..."})})}function wU({block:e,isActive:t,onFocus:r}){const{updateBlockContent:i,changeBlockType:o,setActiveBlock:s}=zi(),[u,d]=S.useState(!1),[p,h]=S.useState(!1),y=S.useRef(null),v=e.metadata?.language||"text";S.useEffect(()=>{if(t&&y.current){y.current.focus();const C=y.current.value.length;y.current.setSelectionRange(C,C),y.current.style.height="auto",y.current.style.height=y.current.scrollHeight+"px"}},[t]);const x=async()=>{try{await navigator.clipboard.writeText(e.content),d(!0),h(!1),setTimeout(()=>d(!1),2e3)}catch(C){console.error("Failed to copy to clipboard:",C),h(!0),setTimeout(()=>h(!1),2e3)}},b=S.useCallback(C=>{const k=C.target.value;i(e.id,k),C.target.style.height="auto",C.target.style.height=C.target.scrollHeight+"px"},[e.id,i]),E=S.useCallback(C=>{if(C.key==="Tab"){C.preventDefault();const k=C.currentTarget,M=k.selectionStart,O=k.selectionEnd,B=k.value,T=B.substring(0,M)+" "+B.substring(O);i(e.id,T),setTimeout(()=>{k.selectionStart=k.selectionEnd=M+2},0)}C.key==="Backspace"&&e.content===""&&(C.preventDefault(),o(e.id,"paragraph")),C.key==="Escape"&&(C.preventDefault(),s(null))},[e.id,e.content,i,o,s]),N=S.useCallback(()=>{s(null)},[s]);return t?f.jsxs("div",{className:"relative group my-4 rounded-lg overflow-hidden",children:[v!=="text"&&f.jsx("div",{className:"absolute top-0 left-0 px-3 py-1 text-xs font-mono text-muted-foreground bg-muted/80 rounded-br z-10",children:v}),f.jsx("button",{type:"button",onClick:x,className:Ge("absolute top-2 right-2 p-2 rounded-md transition-opacity z-10","bg-muted/80 hover:bg-muted text-muted-foreground hover:text-foreground",p&&"text-destructive"),title:p?"Failed to copy":"Copy code","aria-label":p?"Failed to copy":u?"Copied":"Copy code",children:u?f.jsx(ya,{className:"h-4 w-4 text-green-500"}):f.jsx($l,{className:"h-4 w-4"})}),f.jsx("textarea",{ref:y,value:e.content,onChange:b,onKeyDown:E,onBlur:N,className:"w-full bg-muted/50 p-4 pt-8 text-sm font-mono leading-relaxed resize-none outline-none ring-2 ring-primary/30",placeholder:"Enter code...",spellCheck:!1})]}):f.jsxs("div",{className:"relative group my-4 rounded-lg overflow-hidden cursor-text",onClick:r,onKeyDown:C=>C.key==="Enter"&&r(),role:"button",tabIndex:0,children:[v!=="text"&&f.jsx("div",{className:"absolute top-0 left-0 px-3 py-1 text-xs font-mono text-muted-foreground bg-muted/80 rounded-br",children:v}),f.jsx("button",{type:"button",onClick:C=>{C.stopPropagation(),x()},className:Ge("absolute top-2 right-2 p-2 rounded-md transition-opacity","bg-muted/80 hover:bg-muted text-muted-foreground hover:text-foreground","opacity-0 group-hover:opacity-100 focus:opacity-100",p&&"text-destructive"),title:p?"Failed to copy":"Copy code","aria-label":p?"Failed to copy":u?"Copied":"Copy code",children:u?f.jsx(ya,{className:"h-4 w-4 text-green-500"}):f.jsx($l,{className:"h-4 w-4"})}),f.jsx("pre",{className:"bg-muted p-4 pt-8 overflow-x-auto hover:bg-muted/80 transition-colors",children:f.jsx("code",{className:"text-sm font-mono leading-relaxed",children:e.content||f.jsx("span",{className:"text-muted-foreground
103/50",children:"Enter code..."})})})]})}function SU({block:e,isActive:t,onFocus:r}){const{updateBlockContent:i,changeBlockType:o,setActiveBlock:s}=zi(),u=S.useRef(null),d=e.metadata?.listType||"bullet";S.useEffect(()=>{if(t&&u.current){u.current.focus();const E=u.current.value.length;u.current.setSelectionRange(E,E),u.current.style.height="auto",u.current.style.height=u.current.scrollHeight+"px"}},[t]);const p=S.useCallback(E=>{const N=E.target.value;i(e.id,N),E.target.style.height="auto",E.target.style.height=E.target.scrollHeight+"px"},[e.id,i]),h=S.useCallback(E=>{const N=E.currentTarget,C=N.value,k=N.selectionStart;if(E.key==="Enter"&&!E.shiftKey){const M=C.split(` 104`),O=C.substring(0,k).split(` 105`).length-1;if(M[O].trim()===""){E.preventDefault();const T=M.filter((L,I)=>I!==O);i(e.id,T.join(` 106`)),s(null);return}}E.key==="Backspace"&&C===""&&(E.preventDefault(),o(e.id,"paragraph")),E.key==="Escape"&&(E.preventDefault(),s(null))},[e.id,i,o,s]),y=S.useCallback(()=>{s(null)},[s]),v=e.content.split(` 107`).filter(E=>E.trim()),x=d==="ordered"?"ol":"ul",b=d==="ordered"?"list-decimal list-inside":"list-disc list-inside";return t?f.jsxs("div",{className:"my-4 rounded-sm bg-muted/30 ring-2 ring-primary/30",children:[f.jsx("textarea",{ref:u,value:e.content,onChange:p,onKeyDown:h,onBlur:y,className:"w-full bg-transparent p-2 text-base leading-7 resize-none outline-none font-inherit",placeholder:d==="ordered"?`1. First item 1082. Second item`:`- First item 109- Second item`,style:{minHeight:"3.5rem"}}),f.jsx("div",{className:"px-2 pb-2 text-xs text-muted-foreground",children:"One item per line. Press Enter on empty line to exit list."})]}):v.length===0?f.jsx("div",{onClick:r,onKeyDown:E=>E.key==="Enter"&&r(),role:"button",tabIndex:0,className:"my-4 p-2 rounded-sm hover:bg-muted/20 transition-colors cursor-text",children:f.jsx("span",{className:"text-muted-foreground/50",children:d==="ordered"?"1. Add list items...":"- Add list items..."})}):f.jsx(x,{className:`${b} my-4 space-y-1 text-foreground rounded-sm hover:bg-muted/20 transition-colors cursor-text p-2 -m-2`,onClick:r,onKeyDown:E=>E.key==="Enter"&&r(),role:"button",tabIndex:0,children:v.map((E,N)=>f.jsx("li",{className:"leading-7 prose prose-slate dark:prose-invert prose-p:my-0 prose-p:inline prose-a:text-primary prose-code:bg-muted prose-code:px-1.5 prose-code:py-0.5 prose-code:rounded prose-code:text-sm prose-code:font-mono prose-code:before:content-none prose-code:after:content-none",children:f.jsx(ai,{components:{p:({children:C})=>f.jsx(f.Fragment,{children:C}),a:({href:C,children:k})=>f.jsx("a",{href:C,target:"_blank",rel:"noopener noreferrer",className:"text-primary underline decoration-primary/50 hover:decoration-primary transition-colors",onClick:M=>M.stopPropagation(),children:k})},children:E.replace(/^[-*\d.]\s*/,"")})},N))})}function EU({blockId:e,blockType:t,children:r}){const[i,o]=S.useState(!1),[s,u]=S.useState(!1),{addBlock:d,deleteBlock:p,blocks:h}=zi(),{attributes:y,listeners:v,setNodeRef:x,transform:b,transition:E,isDragging:N}=IL({id:e}),C={transform:Cs.Transform.toString(b),transition:E,opacity:N?.5:1},k=B=>{d(e,B),u(!1)},M=()=>{p(e)},O=h.length>1;return f.jsxs("div",{ref:x,style:C,className:"relative group",onMouseEnter:()=>o(!0),onMouseLeave:()=>{o(!1),u(!1)},children:[f.jsxs("div",{className:` 110 absolute -left-12 top-1 flex items-center gap-0.5 111 transition-opacity duration-150 112 ${i?"opacity-100":"opacity-0"} 113 `,children:[f.jsx("button",{type:"button",onClick:()=>u(!s),className:"p-1 rounded hover:bg-muted text-muted-foreground hover:text-foreground transition-colors",title:"Add block",children:f.jsx(ms,{className:"h-4 w-4"})}),f.jsx("button",{type:"button",className:"p-1 rounded hover:bg-muted text-muted-foreground hover:text-foreground transition-colors cursor-grab active:cursor-grabbing",title:"Drag to reorder",...y,...v,children:f.jsx(sk,{className:"h-4 w-4"})})]}),O&&f.jsx("button",{type:"button",onClick:M,className:` 114 absolute -right-10 top-1 p-1 rounded 115 hover:bg-destructive/10 text-muted-foreground hover:text-destructive 116 transition-all duration-150 117 ${i?"opacity-100":"opacity-0"} 118 `,title:"Delete block",children:f.jsx(As,{className:"h-4 w-4"})}),s&&f.jsxs("div",{className:"absolute -left-12 top-8 z-50 bg-popover border border-border rounded-md shadow-lg py-1 min-w-[140px]",children:[f.jsx("div",{className:"px-2 py-1 text-xs text-muted-foreground font-medium",children:"Add block"}),f.jsx("button",{type:"button",onClick:()=>k("paragraph"),className:"w-full px-3 py-1.5 text-sm text-left hover:bg-muted transition-colors",children:"Paragraph"}),f.jsx("button",{type:"button",onClick:()=>k("heading"),className:"w-full px-3 py-1.5 text-sm text-left hover:bg-muted transition-colors",children:"Heading"}),f.jsx("button",{type:"button",onClick:()=>k("quote"),className:"w-full px-3 py-1.5 text-sm text-left hover:bg-muted transition-colors",children:"Quote"}),f.jsx("button",{type:"button",onClick:()=>k("code"),className:"w-full px-3 py-1.5 text-sm text-left hover:bg-muted transition-colors",children:"Code"}),f.jsx("button",{type:"button",onClick:()=>k("list"),className:"w-full px-3 py-1.5 text-sm text-left hover:bg-muted transition-colors",children:"List"}),f.jsx("button",{type:"button",onClick:()=>k("divider"),className:"w-full px-3 py-1.5 text-sm text-left hover:bg-muted transition-colors",children:"Divider"})]}),r]})}function NU({block:e,isActive:t,onFocus:r}){const i=()=>{switch(e.type){case"heading":return f.jsx(vU,{block:e,isActive:t,onFocus:r});case"paragraph":return f.jsx(bU,{block:e,isActive:t,onFocus:r});case"quote":return f.jsx(xU,{block:e,isActive:t,onFocus:r});case"code":return e.metadata?.language==="mermaid"?f.jsx(RN,{block:e}):f.jsx(wU,{block:e,isActive:t,onFocus:r});case"list":return f.jsx(SU,{block:e,isActive:t,onFocus:r});case"image":return f.jsx(ON,{block:e});case"table":return f.jsx(zN,{block:e});case"divider":return f.jsx(MN,{});default:return f.jsxs("div",{className:"my-4 p-4 bg-muted/50 rounded text-sm",children:[f.jsxs("p",{className:"text-muted-foreground mb-1",children:["Unknown block type: ",e.type]}),f.jsx("p",{children:e.content})]})}};return f.jsx(EU,{blockId:e.id,blockType:e.type,children:i()})}const CU=S.lazy(()=>CE(()=>import("./SlideViewer-B4MRz6ER.js"),__vite__mapDeps([2,3,1,4,5])).then(e=>({default:e.SlideViewer})));function rp({blocks:e,isEditable:t=!1,contentType:r}){if(r==="slidev"&&e.length>0){const i=e[0].content;return f.jsx(S.Suspense,{fallback:f.jsx("div",{className:"flex items-center justify-center py-16",children:f.jsx(st,{className:"h-8 w-8 animate-spin text-muted-foreground"})}),children:f.jsx(CU,{content:i})})}return t?f.jsx(jU,{}):e.length===0?f.jsx("div",{className:"text-center py-12 text-muted-foreground",children:f.jsx("p",{children:"This document has no content."})}):f.jsx("article",{className:"prose prose-slate dark:prose-invert max-w-none",children:e.map(i=>f.jsx(yU,{block:i},i.id))})}function jU(){const{blocks:e,activeBlockId:t,setActiveBlock:r,addBlock:i,moveBlock:o}=zi(),s=y5(T0(eg,{activationConstraint:{distance:8}}),T0(Jp,{coordinateGetter:VL})),u=d=>{const{active:p,over:h}=d;if(h&&p.id!==h.id){const y=e.findIndex(v=>v.id===h.id);o(p.id,y)}};return e.length===0?f.jsxs("div",{className:"text-center py-12",children:[f.jsx("p",{className:"text-muted-foreground mb-4",children:"This document has no content."}),f.jsx("button",{type:"button",onClick:()=>i(null,"paragraph"),className:"px-4 py-2 bg-primary text-primary-foreground rounded-md hover:bg-primary/90 transition-colors",children:"Add a block"})]}):f.jsx(bL,{sensors:s,collisionDetection:b5,onDragEnd:u,children:f.jsx(RL,{items:e.map(d=>d.id),strategy:_L,children:f.jsx("article",{className:"prose prose-slate dark:prose-invert max-w-none",children:e.map(d=>f.jsx(NU,{block:d,isActive:t===d.id,onFocus:()=>r(d.id)},d.id))})})})}function kU({folderId:e}){const{data:t=[]}=uS(e);return f.jsxs("nav",{className:"flex items-center gap-1 text-sm text-muted-foreground mb-6",children:[f.jsx(Mn,{to:"/",className:"hover:text-foreground transition-colors",children:"/"}),t.slice(1).map(r=>f.jsxs("span",{className:"flex items-center gap-1",children:[f.jsx(lp,{className:"h-3 w-3"}),f.jsx(Mn,{to:r.path,className:"hover:text-foreground transition-colors",children:r.name})]},r.id))]})}function LN({isOpen:e,onClose:t,onConfirm:r,documentName:i,isUpdating:o,error:s}){return S.useEffect(()=>{const u=d=>{d.key==="Escape"&&e&&!o&&t()};return window.addEventListener("keydown",u),()=>window.removeEventListener("keydown",u)},[e,o,t]),e?f.jsxs("div",{className:"fixed inset-0 z-50 flex items-center justify-center p-4",children:[f.jsx("div",{className:"fixed inset-0 bg-black/50",onClick:o?void 0:t,"aria-hidden":"true"}),f.jsx(li,{children:f.jsxs("div",{className:"relative w-full max-w-md bg-card rounded-lg shadow-lg border",children:[f.jsxs("div",{className:"flex items-center justify-between p-4 border-b",children:[f.jsxs("div",{className:"flex items-center gap-2",children:[f.jsx(ql,{className:"h-5 w-5 text-primary"}),f.jsx("h2",{className:"text-lg font-semibold",children:"Make Document Public"})]}),f.jsx("button",{type:"button",onClick:t,disabled:o,className:"p-1 hover:bg-accent rounded-md transition-colors disabled:opacity-50","aria-label":"Close modal",children:f.jsx(_r,{className:"h-5 w-5"})})]}),f.jsxs("div",{className:"p-4 space-y-4",children:[f.jsxs("p",{className:"text-sm text-muted-foreground",children:["Are you sure you want to make"," ",f.jsxs("strong",{className:"text-foreground",children:['"',i,'"']})," ","public?"]}),f.jsxs("div",{className:"flex items-start gap-3 p-3 rounded-md bg-amber-500/10 border border-amber-500/20",children:[f.jsx(Zl,{className:"h-5 w-5 text-amber-500 flex-shrink-0 mt-0.5"}),f.jsxs("div",{className:"text-sm text-amber-700 dark:text-amber-400",children:[f.jsx("p",{className:"font-medium mb-1",children:"This means:"}),f.jsxs("ul",{className:"list-disc list-inside space-y-1 text-amber-600 dar
118k:text-amber-500",children:[f.jsx("li",{children:"Anyone with the link can view this document"}),f.jsx("li",{children:"No sign-in required to view"}),f.jsx("li",{children:"The document URL can be shared freely"})]})]})]}),s&&f.jsxs("div",{className:"flex items-center gap-2 p-3 rounded-md bg-destructive/10 text-destructive",children:[f.jsx(Zl,{className:"h-4 w-4 flex-shrink-0"}),f.jsx("p",{className:"text-sm",children:s})]}),f.jsxs("div",{className:"flex justify-end gap-3 pt-2",children:[f.jsx("button",{type:"button",onClick:t,disabled:o,className:"px-4 py-2 text-sm font-medium rounded-md hover:bg-accent transition-colors disabled:opacity-50",children:"Cancel"}),f.jsx("button",{type:"button",onClick:r,disabled:o,className:Ge("px-4 py-2 text-sm font-medium rounded-md","bg-primary text-primary-foreground","hover:bg-primary/90 transition-colors","disabled:opacity-50 disabled:cursor-not-allowed","flex items-center gap-2"),children:o?f.jsxs(f.Fragment,{children:[f.jsx(st,{className:"h-4 w-4 animate-spin"}),"Updating..."]}):f.jsxs(f.Fragment,{children:[f.jsx(ql,{className:"h-4 w-4"}),"Confirm"]})})]})]})]})})]}):null}function BN({version:e,totalVersions:t,onRestore:r,isRestoring:i=!1}){return f.jsxs("div",{className:"mb-4 p-3 rounded-lg bg-amber-50 border border-amber-200 dark:bg-amber-950/30 dark:border-amber-800 flex items-center justify-between gap-4",children:[f.jsxs("p",{className:"text-sm text-amber-800 dark:text-amber-200",children:["Viewing version ",e," of ",t,". This is a read-only view."]}),r&&f.jsx("button",{onClick:r,disabled:i,className:"flex items-center gap-2 px-3 py-1.5 text-sm font-medium rounded-md bg-amber-600 text-white hover:bg-amber-700 transition-colors disabled:opacity-50",children:i?f.jsxs(f.Fragment,{children:[f.jsx(st,{className:"h-4 w-4 animate-spin"}),"Restoring..."]}):f.jsxs(f.Fragment,{children:[f.jsx(uk,{className:"h-4 w-4"}),"Restore this version"]})})]})}function FN({document:e,className:t,readOnly:r}){const[i,o]=S.useState(null),[s,u]=S.useState(null),d=ed(),p=fp(),h=mp(),y=cS(),v=async k=>{u(null);try{await d.mutateAsync({itemId:e.id,itemType:"document",newName:k}),o(null)}catch(M){u(M instanceof Error?M.message:"Failed to rename document")}},x=async k=>{u(null);try{await p.mutateAsync({itemId:e.id,itemType:"document",targetFolderId:k}),o(null)}catch(M){u(M instanceof Error?M.message:"Failed to move document")}},b=async()=>{u(null);try{await h.mutateAsync({itemId:e.id,itemType:"document"}),o(null)}catch(k){u(k instanceof Error?k.message:"Failed to delete document")}},E=async()=>{u(null);try{await y.mutateAsync({documentId:e.id,visibility:"public"}),o(null)}catch(k){u(k instanceof Error?k.message:"Failed to make document public")}},N=async()=>{u(null);try{await y.mutateAsync({documentId:e.id,visibility:"private"})}catch(k){u(k instanceof Error?k.message:"Failed to make document private")}},C=()=>{o(null),u(null)};return f.jsxs(f.Fragment,{children:[f.jsxs("div",{className:Ge("group relative flex items-start gap-3 p-4 rounded-lg border bg-card hover:bg-accent transition-colors",t),children:[f.jsxs(Mn,{to:`/d/${e.id}`,className:"flex items-start gap-3 flex-1 min-w-0 focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2 rounded-md",children:[f.jsx("div",{className:"flex-shrink-0 mt-0.5",children:e.contentType==="slidev"?f.jsx(Fw,{className:"h-6 w-6 text-orange-500"}):f.jsx(op,{className:"h-6 w-6 text-blue-500"})}),f.jsxs("div",{className:"min-w-0 flex-1",children:[f.jsxs("div",{className:"flex items-center gap-2",children:[f.jsx("p",{className:"font-medium truncate",children:e.title}),e.visibility==="public"&&f.jsx("span",{title:"Public document",children:f.jsx(ql,{className:"h-3.5 w-3.5 text-primary flex-shrink-0"})})]}),f.jsxs("div",{className:"flex items-center gap-2 mt-1 text-sm text-muted-foreground",children:[f.jsx(Lw,{className:"h-3.5 w-3.5"}),f.jsx("span",{children:Sa(e.updatedAt)}),e.metadata?.source&&f.jsxs(f.Fragment,{children:[f.jsx("span",{children:"·"}),f.jsx("span",{children:e.metadata.source})]})]}),e.metadata?.tags&&e.metadata.tags.length>0&&f.jsxs("div",{className:"flex gap-1 mt-2 flex-wrap",children:[e.metadata.tags.slice(0,3).map(k=>f.jsx("span",{className:"px-2 py-0.5 text-xs rounded-full bg-muted text-muted-foreground",children:k},k)),e.metadata.tags.length>3&&f.jsxs("span",{className:"px-2 py-0.5 text-xs text-muted-foreground",children:["+",e.metadata.tags.length-3]})]})]})]}),!r&&f.jsx("div",{className:"flex-shrink-0 md:opacity-0 md:group-hover:opacity-100 transition-opacity",children:f.jsx(zc,{itemId:e.id,itemName:e.title,itemType:"document",visibility:e.visibility,onRename:()=>o("rename"),onMove:()=>o("move"),onDelete:()=>o("delete"),onMakePublic:()=>o("makePublic"),onMakePrivate:N})})]}),f.jsx(qp,{isOpen:i==="rename",onClose:C,onSubmit:v,currentName:e.title,itemType:"document",isRenaming:d.isPending,error:s}),f.jsx(Zp,{isOpen:i==="move",onClose:C,onSubmit:x,itemName:e.title,itemType:"document",currentFolderId:e.folderId,itemId:e.id,isMoving:p.isPending,error:s}),f.jsx($p,{isOpen:i==="delete",onClose:C,onConfirm:b,itemName:e.title,itemType:"document",isDeleting:h.isPending,error:s}),f.jsx(LN,{isOpen:i==="makePublic",onClose:C,onConfirm:E,documentName:e.title,isUpdating:y.isPending,error:s})]})}function AU({folders:e,documents:t,className:r,readOnly:i}
118){const[o,s]=S.useState(null),[u,d]=S.useState(null),[p,h]=S.useState(null),y=ed(),v=fp(),x=mp(),b=cS(),E=(T,L)=>{d(L),s(T),h(null)},N=()=>{s(null),d(null),h(null)},C=async T=>{if(u){h(null);try{await y.mutateAsync({itemId:u.id,itemType:u.type,newName:T}),N()}catch(L){h(L instanceof Error?L.message:`Failed to rename ${u.type}`)}}},k=async T=>{if(u){h(null);try{await v.mutateAsync({itemId:u.id,itemType:u.type,targetFolderId:T}),N()}catch(L){h(L instanceof Error?L.message:`Failed to move ${u.type}`)}}},M=async()=>{if(u){h(null);try{await x.mutateAsync({itemId:u.id,itemType:u.type}),N()}catch(T){h(T instanceof Error?T.message:`Failed to delete ${u.type}`)}}},O=async()=>{if(u){h(null);try{await b.mutateAsync({documentId:u.id,visibility:"public"}),N()}catch(T){h(T instanceof Error?T.message:"Failed to make document public")}}},B=async T=>{h(null);try{await b.mutateAsync({documentId:T,visibility:"private"})}catch(L){h(L instanceof Error?L.message:"Failed to make document private")}};return f.jsxs(f.Fragment,{children:[f.jsx("div",{className:Ge("overflow-hidden rounded-lg border",r),children:f.jsxs("table",{className:"w-full",children:[f.jsx("thead",{children:f.jsxs("tr",{className:"border-b bg-muted/50",children:[f.jsx("th",{className:"px-4 py-3 text-left text-sm font-medium text-muted-foreground",children:"Name"}),f.jsx("th",{className:"px-4 py-3 text-left text-sm font-medium text-muted-foreground hidden md:table-cell",children:"Type"}),f.jsx("th",{className:"px-4 py-3 text-left text-sm font-medium text-muted-foreground hidden lg:table-cell",children:"Source"}),f.jsx("th",{className:"px-4 py-3 text-left text-sm font-medium text-muted-foreground",children:"Modified"}),!i&&f.jsx("th",{className:"px-4 py-3 text-right text-sm font-medium text-muted-foreground w-12",children:f.jsx("span",{className:"sr-only",children:"Actions"})})]})}),f.jsxs("tbody",{children:[e.map(T=>f.jsxs("tr",{className:"group border-b last:border-0 hover:bg-muted/50 transition-colors",children:[f.jsx("td",{className:"px-4 py-3",children:f.jsxs(Mn,{to:`/folder/${T.id}`,className:"flex items-center gap-3 hover:text-primary",children:[f.jsx(Qc,{className:"h-5 w-5 text-amber-500 flex-shrink-0"}),f.jsx("span",{className:"font-medium truncate",children:T.name})]})}),f.jsx("td",{className:"px-4 py-3 text-sm text-muted-foreground hidden md:table-cell",children:"Folder"}),f.jsx("td",{className:"px-4 py-3 text-sm text-muted-foreground hidden lg:table-cell",children:"â"}),f.jsx("td",{className:"px-4 py-3 text-sm text-muted-foreground",children:Sa(T.updatedAt)}),!i&&f.jsx("td",{className:"px-4 py-3 text-right",children:f.jsx("div",{className:"md:opacity-0 md:group-hover:opacity-100 transition-opacity inline-block",children:f.jsx(zc,{itemId:T.id,itemName:T.name,itemType:"folder",onRename:()=>E("rename",{id:T.id,name:T.name,type:"folder",parentId:T.parentId}),onMove:()=>E("move",{id:T.id,name:T.name,type:"folder",parentId:T.parentId}),onDelete:()=>E("delete",{id:T.id,name:T.name,type:"folder",parentId:T.parentId})})})})]},T.id)),t.map(T=>f.jsxs("tr",{className:"group border-b last:border-0 hover:bg-muted/50 transition-colors",children:[f.jsx("td",{className:"px-4 py-3",children:f.jsxs(Mn,{to:`/d/${T.id}`,className:"flex items-center gap-3 hover:text-primary",children:[T.contentType==="slidev"?f.jsx(Fw,{className:"h-5 w-5 text-orange-500 flex-shrink-0"}):f.jsx(op,{className:"h-5 w-5 text-blue-500 flex-shrink-0"}),f.jsx("span",{className:"font-medium truncate",children:T.title}),T.visibility==="public"&&f.jsx("span",{title:"Public document",children:f.jsx(ql,{className:"h-3.5 w-3.5 text-primary flex-shrink-0"})})]})}),f.jsx("td",{className:"px-4 py-3 text-sm text-muted-foreground hidden md:table-cell",children:T.contentType}),f.jsx("td",{className:"px-4 py-3 text-sm text-muted-foreground hidden lg:table-cell",children:T.metadata?.source||"â"}),f.jsx("td",{className:"px-4 py-3 text-sm text-muted-foreground",children:Sa(T.updatedAt)}),!i&&f.jsx("td",{className:"px-4 py-3 text-right",children:f.jsx("div",{className:"md:opacity-0 md:group-hover:opacity-100 transition-opacity inline-block",children:f.jsx(zc,{itemId:T.id,itemName:T.title,itemType:"document",visibility:T.visibility,onRename:()=>E("rename",{id:T.id,name:T.title,type:"document",parentId:T.folderId,visibility:T.visibility}),onMove:()=>E("move",{id:T.id,name:T.title,type:"document",parentId:T.folderId,visibility:T.visibility}),onDelete:()=>E("delete",{id:T.id,name:T.title,type:"document",parentId:T.folderId,visibility:T.visibility}),onMakePublic:()=>E("makePublic",{id:T.id,name:T.title,type:"document",parentId:T.folderId,visibility:T.visibility}),onMakePrivate:()=>B(T.id)})})})]},T.id))]})]})}),u&&f.jsxs(f.Fragment,{children:[f.jsx(qp,{isOpen:o==="rename",onClose:N,onSubmit:C,currentName:u.name,itemType:u.type,isRenaming:y.isPending,error:p}),f.jsx(Zp,{isOpen:o==="move",onClose:N,onSubmit:k,itemName:u.name,itemType:u.type,currentFolderId:u.parentId,itemId:u.id,isMoving:v.isPending,error:p}),f.jsx($p,{isOpen:o==="delete",onClose:N,onConfirm:M,itemName:u.name,itemType:u.type,isDeleting:x.isPending,error:p}),u.type==="document"&&f.jsx(LN,{isOpen:o==="makePublic",onClose:N,onConfirm:O,documentName:u.name,isU
118pdating:b.isPending,error:p})]})]})}function TU({folders:e,documents:t,isRootFolder:r,readOnly:i}){return e.length===0&&t.length===0?f.jsx(dT,{type:r?"root":"folder"}):f.jsxs(f.Fragment,{children:[f.jsxs("div",{className:"md:hidden space-y-3",children:[e.map(s=>f.jsx(Y3,{folder:s,readOnly:i},s.id)),t.map(s=>f.jsx(FN,{document:s,readOnly:i},s.id))]}),f.jsx("div",{className:"hidden md:block",children:f.jsx(AU,{folders:e,documents:t,readOnly:i})})]})}const _U=Ed({name:ws().min(1,"Folder name is required").max(100,"Folder name must be 100 characters or less").regex(/^[^/\\:*?"<>|]+$/,'Folder name cannot contain / \\ : * ? " < > |')});function DU({isOpen:e,onClose:t,onSubmit:r,parentFolderName:i,isCreating:o,error:s}){const u=S.useRef(null),{register:d,handleSubmit:p,reset:h,formState:{errors:y}}=hd({resolver:Sd(_U),defaultValues:{name:""}}),{ref:v,...x}=d("name");if(S.useEffect(()=>{e&&(h({name:""}),setTimeout(()=>u.current?.focus(),100))},[e,h]),S.useEffect(()=>{const E=N=>{N.key==="Escape"&&e&&!o&&t()};return window.addEventListener("keydown",E),()=>window.removeEventListener("keydown",E)},[e,o,t]),!e)return null;const b=async E=>{await r(E.name)};return f.jsxs("div",{className:"fixed inset-0 z-50 flex items-center justify-center p-4",children:[f.jsx("div",{className:"fixed inset-0 bg-black/50",onClick:o?void 0:t,"aria-hidden":"true"}),f.jsx(li,{children:f.jsxs("div",{className:"relative w-full max-w-md bg-card rounded-lg shadow-lg border",children:[f.jsxs("div",{className:"flex items-center justify-between p-4 border-b",children:[f.jsxs("div",{className:"flex items-center gap-2",children:[f.jsx(Sh,{className:"h-5 w-5 text-muted-foreground"}),f.jsx("h2",{className:"text-lg font-semibold",children:"New Folder"})]}),f.jsx("button",{type:"button",onClick:t,disabled:o,className:"p-1 hover:bg-accent rounded-md transition-colors disabled:opacity-50","aria-label":"Close modal",children:f.jsx(_r,{className:"h-5 w-5"})})]}),f.jsxs("form",{onSubmit:p(b),className:"p-4 space-y-4",children:[f.jsxs("p",{className:"text-sm text-muted-foreground",children:["Creating folder in:"," ",f.jsx("span",{className:"font-medium",children:i})]}),f.jsxs("div",{className:"space-y-2",children:[f.jsx("label",{htmlFor:"folderName",className:"text-sm font-medium",children:"Folder name"}),f.jsx("input",{...x,ref:E=>{v(E),u.current=E},id:"folderName",type:"text",placeholder:"My Folder",disabled:o,className:Ge("w-full px-3 py-2 border rounded-md bg-background","focus:outline-none focus:ring-2 focus:ring-primary focus:border-transparent","disabled:opacity-50 disabled:cursor-not-allowed",y.name&&"border-destructive focus:ring-destructive"),autoComplete:"off"}),y.name&&f.jsx("p",{className:"text-sm text-destructive",children:y.name.message})]}),s&&f.jsxs("div",{className:"flex items-center gap-2 p-3 rounded-md bg-destructive/10 text-destructive",children:[f.jsx(Ea,{className:"h-4 w-4 flex-shrink-0"}),f.jsx("p",{className:"text-sm",children:s})]}),f.jsxs("div",{className:"flex justify-end gap-3 pt-2",children:[f.jsx("button",{type:"button",onClick:t,disabled:o,className:"px-4 py-2 text-sm font-medium rounded-md hover:bg-accent transition-colors disabled:opacity-50",children:"Cancel"}),f.jsx("button",{type:"submit",disabled:o,className:Ge("px-4 py-2 text-sm font-medium rounded-md","bg-primary text-primary-foreground","hover:bg-primary/90 transition-colors","disabled:opacity-50 disabled:cursor-not-allowed","flex items-center gap-2"),children:o?f.jsxs(f.Fragment,{children:[f.jsx(st,{className:"h-4 w-4 animate-spin"}),"Creating..."]}):"Create Folder"})]})]})]})})]})}const RU=Ed({email:ws().email("Please enter a valid email address"),role:mE(["viewer","editor"])});function OU({isOpen:e,onClose:t,folderId:r,folderName:i}){const o=S.useRef(null),[s,u]=S.useState(null),{plan:d}=td(),{data:p=[],isLoading:h}=GA(e?r:null),y=YA(),v=XA(),x=QA(),{register:b,handleSubmit:E,reset:N,formState:{errors:C}}=hd({resolver:Sd(RU),defaultValues:{email:"",role:"viewer"}}),{ref:k,...M}=b("email");if(S.useEffect(()=>{e&&(N({email:"",role:"viewer"}),setTimeout(()=>{u(null),o.current?.focus()},100))},[e,N]),S.useEffect(()=>{const I=_=>{_.key==="Escape"&&e&&t()};return window.addEventListener("keydown",I),()=>window.removeEventListener("keydown",I)},[e,t]),!e)return null;const O=d==="pro",B=async I=>{u(null);try{await y.mutateAsync({folderId:r,email:I.email,role:I.role}),N({email:"",role:"viewer"})}catch(_){u(_ instanceof Error?_.message:"Failed to share folder")}},T=async(I,_)=>{try{await v.mutateAsync({shareId:I.id,role:_,folderId:r})}catch{}},L=async I=>{try{await x.mutateAsync({shareId:I.id,folderId:r})}catch{}};return f.jsxs("div",{className:"fixed inset-0 z-50 flex items-center justify-center p-4",children:[f.jsx("div",{className:"fixed inset-0 bg-black/50",onClick:t,"aria-hidden":"true"}),f.jsx(li,{children:f.jsxs("div",{className:"relative w-full max-w-lg bg-card rounded-lg shadow-lg border",children:[f.jsxs("div",{className:"flex items-center justify-between p-4 border-b",children:[f.jsxs("div",{className:"flex items-center gap-2",children:[f.jsx(sp,{className:"h-5 w-5 text-muted-foreground"}),f.jsx("h2",{className:"text-lg font-semibold",children:"Share Folder"})]}),f.jsx("button",{type:"button",onClick:t,className:"p-1 hover:bg-accent rounded-md transition-colors","aria-label":"Close modal",children:f.jsx(_r,{className:"h-5 w-5"})})]}),f.jsxs("div",{className:"p-4 space-y-4",children:[f.jsxs("p",{className:"text-sm text-muted-foreground",children:["Sharing: ",f.jsx("span",{className:"font-medium text-foreground",children:i})]}),O?f.jsxs(f.Fragment,{children:[f.jsxs("form",{onSubmit:E(B),className:"flex gap-2",children:[f.jsxs("div",{className:"flex-1 space-y-1",children:[f.jsx("input",{...M,ref:I=>{k(I),o.current=I},type:"email",placeholder:"Email address",className:Ge("w-full px-3 py-2 border rounded-md bg-background text-sm","focus:outline-none focus:ring-2 focus:ring-primary focus:border-transparent",C.email&&"border-destructive focus:ring-destructive"),autoComplete:"off"}),C.email&&f.jsx("p",{className:"text-xs text-destructive",children:C.email.message})]}),f.jsxs("select",{...b("role"),className:"px-2 py-2 border rounded-md bg-background text-sm focus:outline-none focus:ring-2 focus:ring-primary",children:[f.jsx("option",{value:"viewer",children:"Viewer"}),f.jsx("option",{value:"editor",children:"Editor"})]}),f.jsx("button",{type:"submit",disabled:y.isPending,className:Ge("px-4 py-2 text-sm font-medium rounded-md","bg-primary text-primary-foreground","hover:bg-primary/90 transition-colors","disabled:opacity-50 disabled:cursor-not-allowed","flex items-center gap-2"),children:y.isPending?f.jsx(st,{className:"h-4 w-4 animate-spin"}):"Share"})]}),s&&f.jsxs("div",{className:"flex items-center gap-2 p-3 rounded-md bg-destructive/10 text-destructive",children:[f.jsx(Ea,{className:"h-4 w-4 flex-shrink-0"}),f.jsx("p",{className:"text-sm",children:s})]}),f.jsxs("div",{className:"border-t pt-4",children:[f.jsx("h3",{className:"text-sm font-medium mb-3",children:"People with access"}),h?f.jsx("div",{className:"flex justify-center py-4",children:f.jsx(st,{className:"h-5 w-5 animate-spin text-muted-foreground"})}):p.length===0?f.jsx("p",{className:"text-sm text-muted-foreground text-center py-4",children:"Not shared with anyone yet."}):f.jsx("div",{className:"space-y-2",children:p.map(I=>f.jsxs("div",{className:"flex items-center justify-between gap-2 p-2 rounded-md hover:bg-accent/50",children:[f.jsxs("div",{className:"min-w-0 flex-1",children:[f.jsx("p",{className:"text-sm font-medium truncate",children:I.sharedWithEmail}),f.jsx("div",{className:"flex items-center gap-2 mt-0.5",children:f.jsx("span",{className:Ge("text-xs px-1.5 py-0.5 rounded-full",I.status==="active"?"bg-green-100 text-green-700 dark:bg-green-900/30 dark:text-green-400":"bg-yellow-100 text-yellow-700 dark:bg-yellow-900/30 dark:text-yellow-400"),children:I.status})})]}),f.jsxs("select",{value:I.role,onChange:_=>T(I,_.target.value),className:"px-2 py-1 border rounded-md bg-background text-xs focus:outline-none focus:ring-2 focus:ring-primary",children:[f.jsx("option",{value:"viewer",children:"Viewer"}),f.jsx("option",{value:"editor",children:"Editor"})]}),f.jsx("button",{type:"button",onClick:()=>L(I),className:"p-1.5 hover:bg-destructive/10 rounded-md transition-colors text-muted-foreground hover:text-destructive","aria-label":`Remove ${I.sharedWithEmail}`,children:f.jsx(As,{className:"h-4 w-4"})})]},I.id))})]})]}):f.jsxs("div",{className:"py-6 text-center space-y-3",children:[f.jsx("p",{className:"text-sm text-muted-foreground",children:"Folder sharing is available on the Pro plan."}),f.jsx("a",{href:"/settings/billing",className:"inline-flex items-center gap-2 px-4 py-2 text-sm font-medium rounded-md bg-primary text-primary-foreground hover:bg-primary/90 transition-colors",children:"Upgrade to Pro"})]})]}),f.jsx("div",{className:"flex justify-end p-4 border-t",children:f.jsx("button",{type:"button",onClick:t,className:"px-4 py-2 text-sm font-medium rounded-md hover:bg-accent transition-colors",children:"Done"})})]})})]})}function zU({onSearch:e,isLoading:t}){const[r,i]=S.useState(""),[o,s]=S.useState(""),u=S.useRef(null);S.useEffect(()=>{const h=setTimeout(()=>{e(r.trim(),o.trim())},300);return()=>clearTimeout(h)},[r,o,e]);const d=()=>{i(""),s(""),u.current?.focus()},p=r.length>0||o.length>0;return f.jsxs("div",{className:"flex gap-2 mb-4",children:[f.jsxs("div",{className:"relative flex-1",children:[f.jsx(ck,{className:"absolute left-3 top-1/2 -translate-y-1/2 h-4 w-4 text-muted-foreground"}),f.jsx("input",{ref:u,type:"text",value:r,onChange:h=>i(h.target.value),placeholder:"Search documents...",className:"w-full pl-10 pr-10 py-2 text-sm rounded-md border bg-background focus:outline-none focus:ring-2 focus:ring-ring"}),t&&f.jsx(st,{className:"absolute right-8 top-1/2 -translate-y-1/2 h-4 w-4 animate-spin text-muted-foreground"}),p&&f.jsx("button",{type:"button",onClick:d,className:"absolute right-2 top-1/2 -translate-y-1/2 p-0.5 rounded hover:bg-accent",children:f.jsx(_r,{className:"h-4 w-4 text-muted-foreground"})})]}),f.jsxs("div",{className:"relative w-40",children:[f.jsx(Bw,{className:"absolute left-3 top-1/2 -translate-y-1/2 h-3.5 w-3.5 text-muted-foreground"}),f.jsx("input",{type:"text",value:o,onChange:h=>s(h.target.value),placeholder:"Filter by tag",className:"w-full pl-9 pr-3 py-2 text-sm rounded-md border bg-background focus:outline-none focus:ring-2 focus:ring-ring"})]})]})}function MU({results:e,isLoading:t,query:r,tag:i}){if(t)return f.jsx("div",{className:"flex items-center justify-center py-12",children:f.jsx(st,{className:"h-6 w-6 animate-spin text-muted-foreground"})});const o=[r&&`"${r}"`,i&&`tag: ${i}
118`].filter(Boolean).join(" + ");return e.length===0?f.jsxs("div",{className:"flex flex-col items-center justify-center py-12 text-center",children:[f.jsx(dk,{className:"h-8 w-8 text-muted-foreground mb-3"}),f.jsxs("p",{className:"text-sm text-muted-foreground",children:["No documents found for ",o]})]}):f.jsxs("div",{children:[f.jsxs("p",{className:"text-sm text-muted-foreground mb-3",children:[e.length," result",e.length!==1?"s":""," for ",o]}),f.jsx("div",{className:"space-y-2",children:e.map(s=>f.jsx(FN,{document:s,readOnly:!0},s.id))})]})}function LU(){const{plan:e,usage:t,limit:r,isLoading:i}=td(),[o,s]=S.useState(!1);if(i||o)return null;const u=r>0?t/r*100:0;if(u<80)return null;const d=u>=100;return f.jsxs("div",{className:`mb-4 rounded-lg border px-4 py-3 flex items-center gap-3 ${d?"bg-destructive/10 border-destructive/30":"bg-yellow-50 border-yellow-200 dark:bg-yellow-950/20 dark:border-yellow-800"}`,children:[f.jsx(Zl,{className:`h-5 w-5 flex-shrink-0 ${d?"text-destructive":"text-yellow-600 dark:text-yellow-500"}`}),f.jsxs("div",{className:"flex-1 text-sm",children:[d?f.jsxs("span",{children:["You've reached your monthly document limit (",t,"/",r,")."," "]}):f.jsxs("span",{children:["You've used ",t," of ",r," documents this month (",Math.round(u),"%)."," "]}),e==="free"&&f.jsxs(Mn,{to:"/settings/billing",className:"inline-flex items-center gap-1 font-medium text-primary hover:underline",children:[f.jsx(Eh,{className:"h-3 w-3"}),"Upgrade to Pro"]})]}),f.jsx("button",{type:"button",onClick:()=>s(!0),className:"p-1 hover:bg-accent rounded","aria-label":"Dismiss",children:f.jsx(_r,{className:"h-4 w-4 text-muted-foreground"})})]})}const BU={feature:{icon:Iw,label:"New",className:"bg-green-500/10 text-green-600 dark:text-green-400"},improvement:{icon:mk,label:"Improved",className:"bg-blue-500/10 text-blue-600 dark:text-blue-400"},fix:{icon:fk,label:"Fixed",className:"bg-yellow-500/10 text-yellow-600 dark:text-yellow-400"}};function FU({release:e,onClose:t}){S.useEffect(()=>{const i=o=>{o.key==="Escape"&&t()};return window.addEventListener("keydown",i),()=>window.removeEventListener("keydown",i)},[t]);const r=e.releaseDate?.toDate?e.releaseDate.toDate().toLocaleDateString("en-US",{month:"long",day:"numeric",year:"numeric"}):"";return f.jsxs("div",{className:"fixed inset-0 z-50 flex items-center justify-center p-4",children:[f.jsx("div",{className:"fixed inset-0 bg-black/50",onClick:t,"aria-hidden":"true"}),f.jsx(li,{children:f.jsxs("div",{className:"relative w-full max-w-lg bg-card rounded-lg shadow-lg border overflow-hidden",children:[f.jsxs("div",{className:"flex items-center justify-between p-4 border-b bg-gradient-to-r from-primary/5 to-transparent",children:[f.jsxs("div",{className:"flex items-center gap-3",children:[f.jsx("div",{className:"p-2 rounded-full bg-primary/10",children:f.jsx(Iw,{className:"h-5 w-5 text-primary"})}),f.jsxs("div",{children:[f.jsx("h2",{className:"text-lg font-semibold",children:"What's New"}),f.jsxs("p",{className:"text-sm text-muted-foreground",children:["Version ",e.version,r&&` - ${r}`]})]})]}),f.jsx("button",{type:"button",onClick:t,className:"p-1 hover:bg-accent rounded-md transition-colors","aria-label":"Close modal",children:f.jsx(_r,{className:"h-5 w-5"})})]}),f.jsxs("div",{className:"p-4 max-h-[60vh] overflow-y-auto",children:[e.title&&f.jsx("h3",{className:"text-xl font-semibold mb-4",children:e.title}),f.jsx("ul",{className:"space-y-3",children:e.items.map((i,o)=>{const s=BU[i.category],u=s.icon;return f.jsxs("li",{className:"flex gap-3",children:[f.jsxs("span",{className:`inline-flex items-center gap-1 px-2 py-0.5 rounded-full text-xs font-medium shrink-0 ${s.className}`,children:[f.jsx(u,{className:"h-3 w-3"}),s.label]}),f.jsxs("div",{className:"flex-1",children:[f.jsx("p",{className:"font-medium",children:i.title}),i.description&&f.jsx("p",{className:"text-sm text-muted-foreground mt-0.5",children:i.description})]})]},o)})})]}),f.jsx("div",{className:"p-4 border-t bg-muted/30",children:f.jsx("button",{type:"button",onClick:t,className:"w-full px-4 py-2 text-sm font-medium rounded-md bg-primary text-primary-foreground hover:bg-primary/90 transition-colors",children:"Got it"})})]})})]})}function IU({id:e,label:t="ID",className:r=""}){const[i,o]=S.useState(!1),s=async()=>{await navigator.clipboard.writeText(e),o(!0),setTimeout(()=>
118o(!1),2e3)};return f.jsxs("button",{type:"button",onClick:s,className:` 119 inline-flex items-center gap-1.5 px-2 py-1 120 text-xs font-mono text-muted-foreground 121 bg-muted/50 rounded border border-border/50 122 hover:bg-muted hover:text-foreground 123 transition-colors cursor-pointer 124 ${r} 125 `,title:`Copy ${t}`,children:[f.jsxs("span",{className:"text-muted-foreground/70 font-sans",children:[t,":"]}),f.jsx("span",{className:"truncate max-w-[200px]",children:e}),i?f.jsx(ya,{className:"h-3 w-3 text-green-500 flex-shrink-0"}):f.jsx($l,{className:"h-3 w-3 flex-shrink-0"})]})}function kw(){const{folderId:e}=cp(),[t,r]=S.useState(!1),[i,o]=S.useState(!1),[s,u]=S.useState(null),[d,p]=S.useState(""),[h,y]=S.useState(""),{showModal:v,release:x,dismiss:b}=uT(),{data:E}=JA(e||null),N=E?.isShared??!1,C=E?.role??null,k=E?.ownerId??null,M=E?.ownerDisplayName??null,O=N&&C==="viewer",{data:B,isLoading:T}=oS(),L=e||B?.id||null,{data:I,isLoading:_,error:X}=RA(L,N?k??void 0:void 0),{data:V=[]}=uS(e||null),G=VA(),{plan:$}=td(),Q=d.length>=2||h.length>0,{data:F,isLoading:z}=tT({q:d,tag:h,folderId:e||null}),R=S.useCallback((ke,ve)=>{p(ke),y(ve)},[]),K=T||_,q=!e,ne=e?V[V.length-1]||null:B,A=ne?.name||"Root",pe=ne?.path||"/",ce=ne?.depth??-1,D=async ke=>{u(null);try{await G.mutateAsync({name:ke,parentId:L,parentPath:pe,parentDepth:ce}),r(!1)}catch(ve){u(ve instanceof Error?ve.message:"Failed to create folder")}};if(K)return f.jsx("div",{className:"flex items-center justify-center py-16",children:f.jsx(st,{className:"h-8 w-8 animate-spin text-muted-foreground"})});if(X)return f.jsxs("div",{className:"flex flex-col items-center justify-center py-16 text-center",children:[f.jsx(Ea,{className:"h-8 w-8 text-destructive mb-4"}),f.jsx("h3",{className:"text-lg font-medium mb-2",children:"Failed to load folder"}),f.jsx("p",{className:"text-muted-foreground",children:"There was an error loading this folder. Please try again."})]});const ge=O;return f.jsxs("div",{children:[!N&&f.jsx(LU,{}),N&&f.jsxs("div",{className:"flex items-center gap-2 mb-4 px-3 py-2 rounded-md bg-muted text-sm",children:[f.jsx(Rw,{className:"h-4 w-4 text-muted-foreground"}),f.jsxs("span",{children:["Shared by ",f.jsx("span",{className:"font-medium",children:M||"another user"})]}),f.jsx("span",{className:"ml-auto text-xs px-2 py-0.5 rounded-full bg-primary/10 text-primary font-medium",children:C})]}),f.jsx("div",{className:"mb-6",children:q?f.jsxs("div",{className:"flex items-center justify-between",children:[f.jsx("h1",{className:"text-2xl font-bold",children:"My Documents"}),f.jsxs("button",{type:"button",onClick:()=>r(!0),className:"flex items-center gap-2 px-4 py-2 text-sm font-medium rounded-md bg-primary text-primary-foreground hover:bg-primary/90 transition-colors",children:[f.jsx(Sh,{className:"h-4 w-4"}),"New Folder"]})]}):f.jsxs(f.Fragment,{children:[f.jsx(cT,{items:V,className:"mb-2"}),f.jsxs("div",{className:"flex items-center justify-between",children:[f.jsxs("div",{children:[f.jsx("h1",{className:"text-2xl font-bold",children:V[V.length-1]?.name||"Folder"}),e&&f.jsx(IU,{id:e,label:"folder ID",className:"mt-1"})]}),f.jsxs("div",{className:"flex items-center gap-2",children:[!N&&$==="pro"&&f.jsxs("button",{type:"button",onClick:()=>o(!0),className:"flex items-center gap-2 px-4 py-2 text-sm font-medium rounded-md border hover:bg-accent transition-colors",children:[f.jsx(sp,{className:"h-4 w-4"}),"Share"]}),!ge&&f.jsxs("button",{type:"button",onClick:()=>r(!0),className:"flex items-center gap-2 px-4 py-2 text-sm font-medium rounded-md bg-primary text-primary-foreground hover:bg-primary/90 transition-colors",children:[f.jsx(Sh,{className:"h-4 w-4"}),"New Folder"]})]})]})]})}),!N&&f.jsx(zU,{onSearch:R,isLoading:z}),Q?f.jsx(MU,{results:F||[],isLoading:z,query:d,tag:h}):f.jsx(TU,{folders:I?.folders||[],documents:I?.documents||[],isRootFolder:q,readOnly:ge}),f.jsx(DU,{isOpen:t,onClose:()=>{r(!1),u(null)},onSubmit:D,parentFolderName:A,isCreating:G.isPending,error:s}),e&&f.jsx(OU,{isOpen:i,onClose:()=>o(!1),folderId:e,folderName:V[V.length-1]?.name||"Folder"}),v&&x&&f.jsx(FU,{release:x,onClose:b})]})}function UU(){const{signInWithGoogle:e,isAuthenticated:t,isLoading:r}=Dt(),i=Wc(),s=up().state?.from?.pathname||"/";S.useEffect(()=>{t&&i(s,{replace:!0})},[t,i,s]);const u=async()=>{try{await e()}catch(d){console.error("Failed to sign in:",d)}};return r?f.jsx("div",{className:"min-h-screen flex items-center justify-center bg-background",children:f.jsx(st,{className:"h-8 w-8 animate-spin text-muted-foreground"})}):f.jsx("div",{className:"min-h-screen flex items-center justify-center bg-background",children:f.jsxs("div",{className:"w-full max-w-md p-8",children:[f.jsxs("div",{className:"flex flex-col items-center gap-4 mb-8",children:[f.jsx(Dw,{className:"h-12 w-12"}),f.jsx("h1",{className:"text-2xl font-bold",children:"SurfaceDocs"}),f.jsx("p",{className:"text-muted-foreground text-center",children:"Sign in to access your documents"})]}),f.jsxs("button",{onClick:u,className:"w-full py-3 px-4 bg-primary text-primary-foreground rounded-md font-medium hover:bg-primary/90 transition-colors flex items-center justify-center gap-2",children:[f.jsx(PU,{className:"h-5 w-5"}),"Sign in with Google"]})]})})}function PU({className:e}){return f.jsxs("svg",{className:e,viewBox:"0 0 24 24",children:[f.jsx("path",{fill:"currentColor",d:"M22.56 12.25c0-.78-.07-1.53-.2-2.25H12v4.26h5.92c-.26 1.37-1.04 2.53-2.21 3.31v2.77h3.57c2.08-1.92 3.28-4.74 3.28-8.09z"}),f.jsx("path",{fill:"currentColor",d:"M12 23c2.97 0 5.46-.98 7.28-2.66l-3.57-2.77c-.98.66-2.23 1.06-3.71 1.06-2.86 0-5.29-1.93-6.16-4.53H2.18v2.84C3.99 20.53 7.7 23 12 23z"}),f.jsx("path",{fill:"currentColor",d:"M5.84 14.09c-.22-.66-.35-1.36-.35-2.09s.13-1.43.35-2.09V7.07H2.18C1.43 8.55 1 10.22 1 12s.43 3.45 1.18 4.93l2.85-2.22.81-.62z"}),f.jsx("path",{fill:"currentColor",d:"M12 5.38c1.62 0 3.06.56 4.21 1.64l3.15-3.15C17.45 2.09 14.97 1 12 1 7.7 1 3.99 3.47 2.18 7.07l3.66 2.84c.87-2.6 3.3-4.53 6.16-4.53z"})]})}function VU(e){const t=e.match(/^(#{1,6}) (.*)$/);return t?{type:"heading",level:t[1].length,remainingContent:t[2]}:e.startsWith("> ")?{type:"quote",remainingContent:e.slice(2)}:e.startsWith("- ")||e.startsWith("* ")?{type:"list",listType:"bullet",remainingContent:e.slice(2)}:e.match(/^1\. /)?{type:"list",listType:"ordered",remainingContent:e.slice(3)}:{type:null,remainingContent:e}}function HU({documentId:e,initialBlocks:t,children:r}){const[i,o]=S.useState(t),[s,u]=S.useState(null),[d,p]=S.useState("idle"),[h,y]=S.useState(null),v=S.useRef(new Map),x=S.useRef(null),{updateBlock:b,addBlock:E,deleteBlock:N}=qA(e);S.useEffect(()=>{o(t)},[t]);const C=S.useCallback(()=>{x.current&&clearTimeout(x.current),x.current=setTimeout(async()=>
125{if(v.current.size!==0){p("saving");try{const _=Array.from(v.current.entries());v.current.clear(),await Promise.all(_.map(([X,V])=>b.mutateAsync({blockId:X,updates:V}))),p("saved"),y(new Date),setTimeout(()=>p("idle"),2e3)}catch{p("error")}}},500)},[b]),k=S.useCallback(_=>{u(_)},[]),M=S.useCallback((_,X)=>{const V=VU(X);if(V.type){const $={};V.type==="heading"&&V.level&&($.level=V.level),V.type==="list"&&V.listType&&($.listType=V.listType),o(F=>F.map(z=>z.id===_?{...z,type:V.type,content:V.remainingContent,metadata:Object.keys($).length>0?$:z.metadata}:z));const Q={type:V.type,content:V.remainingContent};Object.keys($).length>0&&(Q.metadata=$),v.current.set(_,{...v.current.get(_),...Q}),C();return}o($=>$.map(Q=>Q.id===_?{...Q,content:X}:Q));const G=v.current.get(_)||{};v.current.set(_,{...G,content:X}),C()},[C]),O=S.useCallback((_,X)=>{o($=>$.map(Q=>Q.id===_?{...Q,metadata:{...Q.metadata,...X}}:Q));const V=v.current.get(_)||{},G=V.metadata||{};v.current.set(_,{...V,metadata:{...G,...X}}),C()},[C]),B=S.useCallback(async(_,X,V="")=>{let G;if(_===null)G=(i.length>0?Math.min(...i.map(Q=>Q.order)):1)-1;else{const $=i.find(z=>z.id===_),Q=i.findIndex(z=>z.id===_),F=i[Q+1];$&&F?G=($.order+F.order)/2:$?G=$.order+1:G=i.length}p("saving");try{const $=await E.mutateAsync({order:G,type:X,content:V,metadata:X==="heading"?{level:2}:void 0});o(Q=>[...Q,$].sort((z,R)=>z.order-R.order)),u($.id),p("saved"),y(new Date),setTimeout(()=>p("idle"),2e3)}catch{p("error")}},[i,E]),T=S.useCallback(async _=>{if(i.length<=1)return;const X=i.findIndex($=>$.id===_);o($=>$.filter(Q=>Q.id!==_));const V=i[X-1],G=i[X+1];u(V?.id||G?.id||null),p("saving");try{await N.mutateAsync(_),p("saved"),y(new Date),setTimeout(()=>p("idle"),2e3)}catch{o(i),p("error")}},[i,N]),L=S.useCallback((_,X,V)=>{o($=>$.map(Q=>Q.id===_?{...Q,type:X,metadata:V||(X==="heading"?{level:2}:{})}:Q));const G={type:X};V?G.metadata=V:X==="heading"&&(G.metadata={level:2}),v.current.set(_,{...v.current.get(_),...G}),C()},[C]),I=S.useCallback((_,X)=>{o(V=>{const G=V.findIndex(z=>z.id===_);if(G===-1||G===X)return V;const $=[...V],[Q]=$.splice(G,1);$.splice(X,0,Q);const F=$.map((z,R)=>({...z,order:R}));return F.forEach(z=>{const R=V.find(K=>K.id===z.id);R&&R.order!==z.order&&v.current.set(z.id,{...v.current.get(z.id),order:z.order})}),C(),F})},[C]);return S.useEffect(()=>()=>{x.current&&clearTimeout(x.current)},[]),f.jsx(hp.Provider,{value:{documentId:e,blocks:i,isEditing:!0,activeBlockId:s,saveStatus:d,lastSavedAt:h,setActiveBlock:k,updateBlockContent:M,updateBlockMetadata:O,addBlock:B,deleteBlock:T,changeBlockType:L,moveBlock:I},children:r})}function Aw(){const{documentId:e,version:t}=cp(),r=Wc(),[i,o]=S.useState(!1),s=t?parseInt(t,10):void 0,{data:u,isLoading:d,error:p}=zA(e,s),{data:h}=fS(e),y=eT(),v=s!=null&&u?.currentVersion!=null&&s!==u.currentVersion,x=async()=>{if(!e)return;const E=`${window.location.origin}/public/d/${e}`;await navigator.clipboard.writeText(E),o(!0),setTimeout(()=>o(!1),2e3)},b=async()=>{!e||s==null||(await y.mutateAsync({documentId:e,versionNumber:s}),r(`/d/${e}`))};return d?f.jsx("div",{className:"flex items-center justify-center py-16",children:f.jsx(st,{className:"h-8 w-8 animate-spin text-muted-foreground"})}):p?f.jsxs("div",{className:"flex flex-col items-center justify-center py-16 text-center",children:[f.jsx(Ea,{className:"h-8 w-8 text-destructive mb-4"}),f.jsx("h2",{className:"text-lg font-medium mb-2",children:"Failed to load document"}),f.jsx("p",{className:"text-muted-foreground mb-4",children:"There was an error loading this document. Please try again."}),f.jsx("button",{onClick:()=>r("/"),className:"px-4 py-2 bg-primary text-primary-foreground rounded-md hover:bg-primary/90 transition-colors",children:"Go back to dashboard"})]}):u?f.jsxs("div",{className:"max-w-4xl mx-auto",children:[f.jsx(kU,{folderId:u.folderId}),v&&f.jsx(BN,{version:s,totalVersions:u.currentVersion,onRestore:b,isRestoring:y.isPending}),u.visibility==="public"&&!v&&f.jsxs("div",{className:"mb-4 p-3 rounded-lg bg-primary/5 border border-primary/20 flex items-center justify-between gap-4",children:[f.jsx("p",{className:"text-sm text-muted-foreground",children:"This document is public. Share the link with anyone."}),f.jsx("button",{onClick:x,className:"flex items-center gap-2 px-3 py-1.5 text-sm font-medium rounded-md bg-primary text-primary-foreground hover:bg-primary/90 transition-colors",children:i?f.jsxs(f.Fragment,{children:[f.jsx(ya,{className:"h-4 w-4"}),"Copied!"]}):f.jsxs(f.Fragment,{children:[f.jsx(zw,{className:"h-4 w-4"}),"Copy link"]})})]}),v?f.jsxs(f.Fragment,{children:[f.jsx(Ph,{document:u,blocks:u.blocks,versions:h,activeVersion:s}),f.jsx(rp,{blocks:u.blocks,contentType:u.contentType})]}):f.jsxs(HU,{documentId:u.id,initialBlocks:u.blocks,children:[f.jsx(Ph,{document:u,blocks:u.blocks,versions:h,activeVersion:s}),f.jsx(rp,{blocks:u.blocks,isEditable:u.contentType!=="slidev",contentType:u.contentType})]})]}):f.jsxs("div",{className:"flex flex-col items-center justify-center py-16 text-center",children:[f.jsx(Uw,{className:"h-8 w-8 text-muted-foreground mb-4"}),f.jsx("h2",{className:"text-lg font-medium mb-2",children:"Document not found"}),f.jsx("p",{className:"text-muted-foreground mb-4",children:"This document doesn't exist or you don't have access to it."}),f.jsx("button",{onClick:()=>r("/"),className:"px-4 py-2 bg-primary text-primary-foreground rounded-md hover:bg-primary/90 transition-colors",children:"Go back to dashboard"})]})}function Tw(){const{documentId:e,version:t}=cp(),r=Wc(),i=t?parseInt(t,10):void 0,{data:o,isLoading:s,error:u}=MA(e,i),{data:d}=fS(e),p=i!=null&&o?.currentVersion!=null&&i!==o.currentVersion;if(s)return f.jsx("div",{className:"min-h-screen flex items-center justify-center bg-background",children:f.jsx(st,{className:"h-8 w-8 animate-spin text-muted-foreground"})});if(u){const h=u?.message||"";return h.includes("permission")||h.includes("Missing or insufficient")?f.jsx("div",{className:"min-h-screen flex items-center justify-center bg-background",children:f.jsxs("div",{className:"flex flex-col items-center justify-center py-16 text-center max-w-md mx-auto px-4",children:[f.jsx(Mw,{className:"h-12 w-12 text-muted-foreground mb-4"}),f.jsx("h2",{className:"text-xl font-semibold mb-2",children:"This document is private"}),f.jsx("p",{className:"text-muted-foreground mb-6",children:"You don't have permission to view this document."}),f.jsx("button",{onClick:()=>
125r("/login"),className:"px-4 py-2 bg-primary text-primary-foreground rounded-md hover:bg-primary/90 transition-colors",children:"Sign in"})]})}):f.jsx("div",{className:"min-h-screen flex items-center justify-center bg-background",children:f.jsxs("div",{className:"flex flex-col items-center justify-center py-16 text-center max-w-md mx-auto px-4",children:[f.jsx(Ea,{className:"h-12 w-12 text-destructive mb-4"}),f.jsx("h2",{className:"text-xl font-semibold mb-2",children:"Failed to load document"}),f.jsx("p",{className:"text-muted-foreground mb-6",children:"There was an error loading this document. Please try again."}),f.jsx("button",{onClick:()=>window.location.reload(),className:"px-4 py-2 bg-primary text-primary-foreground rounded-md hover:bg-primary/90 transition-colors",children:"Retry"})]})})}return o?f.jsx("div",{className:"min-h-screen bg-background",children:f.jsxs("div",{className:"max-w-4xl mx-auto p-4 md:p-8",children:[p&&f.jsx(BN,{version:i,totalVersions:o.currentVersion}),f.jsx(Ph,{document:o,blocks:o.blocks,isOwner:!1,versions:d,activeVersion:i,isPublic:!0}),f.jsx(rp,{blocks:o.blocks,contentType:o.contentType})]})}):f.jsx("div",{className:"min-h-screen flex items-center justify-center bg-background",children:f.jsxs("div",{className:"flex flex-col items-center justify-center py-16 text-center max-w-md mx-auto px-4",children:[f.jsx(Uw,{className:"h-12 w-12 text-muted-foreground mb-4"}),f.jsx("h2",{className:"text-xl font-semibold mb-2",children:"Document not found"}),f.jsx("p",{className:"text-muted-foreground mb-6",children:"This document doesn't exist or has been removed."})]})})}function qU({onCreateClick:e}){return f.jsxs("div",{className:"flex flex-col items-center justify-center py-16 text-center",children:[f.jsx("div",{className:"rounded-full bg-muted p-4 mb-4",children:f.jsx(ip,{className:"h-8 w-8 text-muted-foreground"})}),f.jsx("h3",{className:"text-lg font-medium mb-2",children:"No API keys yet"}),f.jsx("p",{className:"text-muted-foreground max-w-sm mb-6",children:"Create an API key to start pushing documents programmatically using the SurfaceDocs SDK."}),f.jsxs("button",{onClick:e,className:"inline-flex items-center gap-2 px-4 py-2 bg-primary text-primary-foreground rounded-md hover:bg-primary/90 transition-colors",children:[f.jsx(ms,{className:"h-4 w-4"}),"Create API Key"]})]})}function ZU({apiKey:e,onRevoke:t,isRevoking:r}){const[i,o]=S.useState(!1),s=()=>{i?(t(e.id),o(!1)):(o(!0),setTimeout(()=>o(!1),3e3))};return f.jsxs("div",{className:"p-4 rounded-lg border bg-card",children:[f.jsxs("div",{className:"flex items-start justify-between gap-3",children:[f.jsxs("div",{className:"flex items-center gap-3",children:[f.jsx("div",{className:"p-2 rounded-md bg-muted",children:f.jsx(ip,{className:"h-5 w-5 text-muted-foreground"})}),f.jsxs("div",{children:[f.jsx("p",{className:"font-medium",children:e.name}),f.jsxs("code",{className:"font-mono text-sm text-muted-foreground",children:[e.keyPrefix,"..."]})]})]}),f.jsx("button",{type:"button",onClick:s,disabled:r,className:Ge("p-2 rounded-md transition-colors",i?"bg-destructive text-destructive-foreground hover:bg-destructive/90":"hover:bg-muted text-muted-foreground hover:text-foreground"),title:i?"Click again to confirm":"Revoke key","aria-label":i?"Click again to confirm revocation":"Revoke key",children:r?f.jsx(st,{className:"h-4 w-4 animate-spin"}):f.jsx(As,{className:"h-4 w-4"})})]}),f.jsx("div",{className:"mt-3 flex flex-wrap gap-2",children:e.roles.map(u=>f.jsx("span",{className:"px-2 py-0.5 text-xs rounded-full bg-muted text-muted-foreground",children:u},u))}),f.jsxs("div",{className:"mt-3 flex gap-4 text-xs text-muted-foreground",children:[f.jsxs("span",{children:["Created ",Sa(e.createdAt)]}),f.jsxs("span",{children:["Last used ",Sa(e.lastUsedAt)]})]})]})}function $U({apiKeys:e,onRevoke:t,revokingId:r}){const[i,o]=S.useState(null),s=u=>{i===u?(t(u),o(null)):(o(u),setTimeout(()=>o(null),3e3))};return f.jsx("div",{className:"overflow-hidden rounded-lg border",children:f.jsxs("table",{className:"w-full",children:[f.jsx("thead",{children:f.jsxs("tr",{className:"border-b bg-muted/50",children:[f.jsx("th",{className:"px-4 py-3 text-left text-sm font-medium text-muted-foreground",children:"Name"}),f.jsx("th",{className:"px-4 py-3 text-left text-sm font-medium text-muted-foreground",children:"Key Prefix"}),f.jsx("th",{className:"px-4 py-3 text-left text-sm font-medium text-muted-foreground",children:"Permissions"}),f.jsx("th",{className:"px-4 py-3 text-left text-sm font-medium text-muted-foreground",children:"Created"}),f.jsx("th",{className:"px-4 py-3 text-left text-sm font-medium text-muted-foreground",children:"Last Used"}),f.jsx("th",{className:"px-4 py-3 text-right text-sm font-medium text-muted-foreground",children:"Actions"})]})}),f.jsx("tbody",{children:e.map(u=>f.jsxs("tr",{className:"border-b last:border-0 hover:bg-muted/50 transition-colors",children:[f.jsx("td",{className:"px-4 py-3 font-medium",children:u.name}),f.jsx("td",{className:"px-4 py-3",children:f.jsxs("code",{className:"font-mono text-sm text-muted-foreground",children:[u.keyPrefix,"..."]})}),f.jsx("td",{className:"px-4 py-3",children:f.jsx("div",{className:"flex flex-wrap gap-1",children:u.roles.map(d=>f.jsx("span",{className:"px-2 py-0.5 text-xs rounded-full bg-muted text-muted-foreground",children:d},d))})}),f.jsx("td",{className:"px-4 py-3 text-sm text-muted-foreground",children:Sa(u.createdAt)}),f.jsx("td",{className:"px-4 py-3 text-sm text-muted-foreground",children:Sa(u.lastUsedAt)}),f.jsx("td",{className:"px-4 py-3 text-right",children:f.jsx("button",{type:"button",onClick:()=>s(u.id),disabled:r===u.id,className:Ge("p-2 rounded-md transition-colors",i===u.id?"bg-destructive text-destructive-foreground hover:bg-destructive/90":"hover:bg-muted text-muted-foreground hover:text-foreground"),title:i===u.id?"Click again to confirm":"Revoke key","aria-label":i===u.id?"Click again to confirm revocation":"Revoke key",children:r===u.id?f.jsx(st,{className:"h-4 w-4 animate-spin"}):f.jsx(As,{className:"h-4 w-4"})})})]},u.id))})]})})}const KU=Ed({name:ws().min(1,"Name is required").max(100,"Name too long"),roles:fE(ws()).min(1,"Select at least one permission")}),GU=[{value:"documents:write",label:"Write Documents",description:"Create and update documents via API"},{value:"documents:read",label:"Read Documents",description:"Read documents via API (future)"},{value:"folders:write",label:"Write Folders",description:"Create and manage folders via API"},{value:"folders:read",label:"Read Folders",description:"Read folder structure via API (future)"}];function YU({isOpen:e,onClose:t,onCreate:r,isCreating:i}){const[o,s]=S.useState(null),[u,d]=S.useState(!1),[p,h]=S.useState(null),{register:y,handleSubmit:v,reset:x,formState:{errors:b},setValue:E,watch:N}=hd({resolver:Sd(KU),defaultValues:{name:"",roles:["documents:write"]}}),C=N("roles"),k=T=>{const L=C||[];L.includes(T)?E("roles",L.filter(I=>I!==T)):E("roles",[...L,T])},M=async T=>{h(null);try{const L=await r({name:T.name,roles:T.roles});s(L)}catch(L){console.error("Failed to create key:",L),h("Failed to create API key. Please try again.")}},O=async()=>
125{if(o)try{await navigator.clipboard.writeText(o.key),d(!0),setTimeout(()=>d(!1),2e3)}catch(T){console.error("Failed to copy to clipboard:",T)}},B=()=>{s(null),d(!1),h(null),x(),t()};return e?f.jsxs("div",{className:"fixed inset-0 z-50 flex items-center justify-center",children:[f.jsx("div",{className:"absolute inset-0 bg-black/50",onClick:o?void 0:B}),f.jsx(li,{children:f.jsxs("div",{className:"relative w-full max-w-lg mx-4 bg-background rounded-lg shadow-lg",children:[f.jsxs("div",{className:"flex items-center justify-between p-4 border-b",children:[f.jsx("h2",{className:"text-lg font-semibold",children:o?"API Key Created":"Create API Key"}),!o&&f.jsx("button",{type:"button",onClick:B,className:"p-1 hover:bg-muted rounded-md transition-colors","aria-label":"Close modal",children:f.jsx(_r,{className:"h-5 w-5"})})]}),o?f.jsxs("div",{className:"p-4 space-y-4",children:[f.jsxs("div",{className:"flex items-start gap-3 p-3 bg-amber-500/10 border border-amber-500/20 rounded-md",children:[f.jsx(Zl,{className:"h-5 w-5 text-amber-500 flex-shrink-0 mt-0.5"}),f.jsxs("div",{className:"text-sm",children:[f.jsx("p",{className:"font-medium text-amber-500",children:"Copy your API key now"}),f.jsx("p",{className:"text-muted-foreground",children:"You won't be able to see it again. Store it securely."})]})]}),f.jsxs("div",{children:[f.jsx("label",{className:"block text-sm font-medium mb-1",children:"API Key"}),f.jsxs("div",{className:"flex items-center gap-2",children:[f.jsx("code",{className:"flex-1 p-3 bg-muted rounded-md font-mono text-sm break-all",children:o.key}),f.jsx("button",{type:"button",onClick:O,className:Ge("p-3 rounded-md transition-colors",u?"bg-green-500 text-white":"bg-primary text-primary-foreground hover:bg-primary/90"),"aria-label":u?"Copied":"Copy API key",children:u?f.jsx(ya,{className:"h-5 w-5"}):f.jsx($l,{className:"h-5 w-5"})})]})]}),f.jsx("div",{className:"flex justify-end pt-2",children:f.jsx("button",{type:"button",onClick:B,className:"px-4 py-2 bg-primary text-primary-foreground rounded-md hover:bg-primary/90 transition-colors",children:"Done"})})]}):f.jsxs("form",{onSubmit:v(M),className:"p-4 space-y-4",children:[f.jsxs("div",{children:[f.jsx("label",{htmlFor:"name",className:"block text-sm font-medium mb-1",children:"Key Name"}),f.jsx("input",{...y("name"),id:"name",type:"text",placeholder:"e.g., Production CI/CD",className:Ge("w-full px-3 py-2 rounded-md border bg-background","focus:outline-none focus:ring-2 focus:ring-ring",b.name&&"border-destructive")}
125),b.name&&f.jsx("p",{className:"text-sm text-destructive mt-1",children:b.name.message})]}),f.jsxs("div",{children:[f.jsx("label",{className:"block text-sm font-medium mb-2",children:"Permissions"}),f.jsx("div",{className:"space-y-2",children:GU.map(T=>f.jsxs("label",{className:Ge("flex items-start gap-3 p-3 rounded-md border cursor-pointer transition-colors",C?.includes(T.value)?"border-primary bg-primary/5":"hover:bg-muted"),children:[f.jsx("input",{type:"checkbox",checked:C?.includes(T.value),onChange:()=>k(T.value),className:"mt-0.5"}),f.jsxs("div",{children:[f.jsx("p",{className:"font-medium text-sm",children:T.label}),f.jsx("p",{className:"text-xs text-muted-foreground",children:T.description})]})]},T.value))}),b.roles&&f.jsx("p",{className:"text-sm text-destructive mt-1",children:b.roles.message})]}),p&&f.jsx("div",{className:"p-3 bg-destructive/10 border border-destructive/20 rounded-md",children:f.jsx("p",{className:"text-sm text-destructive",children:p})}),f.jsxs("div",{className:"flex justify-end gap-2 pt-2",children:[f.jsx("button",{type:"button",onClick:B,className:"px-4 py-2 rounded-md hover:bg-muted transition-colors",children:"Cancel"}),f.jsxs("button",{type:"submit",disabled:i,className:"inline-flex items-center gap-2 px-4 py-2 bg-primary text-primary-foreground rounded-md hover:bg-primary/90 transition-colors disabled:opacity-50",children:[i&&f.jsx(st,{className:"h-4 w-4 animate-spin"}),"Create Key"]})]})]})]})})]}):null}function XU(){const[e,t]=S.useState(!1),[r,i]=S.useState(null),{data:o,isLoading:s,error:u}=IA(),d=UA(),p=PA(),h=async x=>d.mutateAsync(x),y=async x=>{i(x);try{await p.mutateAsync(x)}finally{i(null)}};if(s)return f.jsx("div",{className:"flex items-center justify-center py-16",children:f.jsx(st,{className:"h-8 w-8 animate-spin text-muted-foreground"})});if(u)return f.jsxs("div",{className:"flex flex-col items-center justify-center py-16 text-center",children:[f.jsx(Ea,{className:"h-8 w-8 text-destructive mb-4"}),f.jsx("h3",{className:"text-lg font-medium mb-2",children:"Failed to load API keys"}),f.jsx("p",{className:"text-muted-foreground",children:"There was an error loading your API keys. Please try again."})]});const v=o&&o.length>0;return f.jsxs("div",{children:[f.jsxs("div",{className:"flex items-center justify-between mb-6",children:[f.jsxs("div",{children:[f.jsx("h1",{className:"text-2xl font-bold",children:"API Keys"}),f.jsx("p",{className:"text-muted-foreground",children:"Manage your API keys for programmatic access."})]}),v&&f.jsxs("button",{onClick:()=>t(!0),className:"hidden sm:inline-flex items-center gap-2 px-4 py-2 bg-primary text-primary-foreground rounded-md hover:bg-primary/90 transition-colors",children:[f.jsx(ms,{className:"h-4 w-4"}),"Create Key"]})]}),v?f.jsxs(f.Fragment,{children:[f.jsx("div",{className:"md:hidden space-y-3",children:o.map(x=>f.jsx(ZU,{apiKey:x,onRevoke:y,isRevoking:r===x.id},x.id))}),f.jsx("div",{className:"hidden md:block",children:f.jsx($U,{apiKeys:o,onRevoke:y,revokingId:r})}),f.jsx("button",{onClick:()=>t(!0),className:"sm:hidden fixed bottom-6 right-6 p-4 bg-primary text-primary-foreground rounded-full shadow-lg hover:bg-primary/90 transition-colors",children:f.jsx(ms,{className:"h-6 w-6"})})]}):f.jsx(qU,{onCreateClick:()=>t(!0)}),f.jsx(YU,{isOpen:e,onClose:()=>t(!1),onCreate:h,isCreating:d.isPending})]})}const zl={free:{docs:"10",rateMin:"20",rateDay:"1,000"},pro:{docs:"1,000",rateMin:"300",rateDay:"50,000"}};function QU(){const{plan:e,usage:t,limit:r,resetDate:i,stripeCustomerId:o,isLoading:s}=td(),u=ZA(),d=$A(),p=async()=>{try{const v=await u.mutateAsync();window.location.href=v}catch(v){console.error("Failed to create checkout session:",v)}},h=async()=>{try{const v=await d.mutateAsync();window.location.href=v}catch(v){console.error("Failed to create portal session:",v)}};if(s)return f.jsx("div",{className:"flex items-center justify-center py-16",children:f.jsx(st,{className:"h-8 w-8 animate-spin text-muted-foreground"})});const y=r>0?Math.min(t/r*100,100):0;return f.jsxs("div",{children:[f.jsxs("div",{className:"mb-8",children:[f.jsx("h1",{className:"text-2xl font-bold",children:"Billing"}),f.jsx("p",{className:"text-muted-foreground",children:"Manage your subscription and monitor usage."})]}),f.jsxs("div",{className:"rounded-lg border bg-card p-6 mb-6",children:[f.jsxs("div",{className:"flex items-center justify-between mb-4",children:[f.jsxs("div",{className:"flex items-center gap-3",children:[f.jsx(wh,{className:"h-5 w-5 text-muted-foreground"}),f.jsx("h2",{className:"text-lg font-semibold",children:"Current Plan"})]}),f.jsxs("span",{className:`inline-flex items-center gap-1 px-3 py-1 rounded-full text-sm font-medium ${e==="pro"?"bg-primary text-primary-foreground":"bg-muted text-muted-foreground"}`,children:[e==="pro"&&f.jsx(Eh,{className:"h-3 w-3"}),e==="pro"?"Pro":"Free"]})]}),f.jsxs("div",{className:"mb-4",children:[f.jsxs("div",{className:"flex items-center justify-between text-sm mb-2",children:[f.jsx("span",{className:"text-muted-foreground",children:"Documents this month"}),f.jsxs("span",{className:"font-medium",children:[t," / ",r.toLocaleStr
125ing()]})]}),f.jsx("div",{className:"h-2 bg-muted rounded-full overflow-hidden",children:f.jsx("div",{className:`h-full rounded-full transition-all duration-300 ${y>=90?"bg-destructive":y>=80?"bg-yellow-500":"bg-primary"}`,style:{width:`${y}%`}})}),i&&f.jsxs("p",{className:"text-xs text-muted-foreground mt-1",children:["Resets on ",i]})]}),e==="free"?f.jsxs("button",{onClick:p,disabled:u.isPending,className:"flex items-center gap-2 px-4 py-2 bg-primary text-primary-foreground rounded-md hover:bg-primary/90 transition-colors disabled:opacity-50",children:[u.isPending?f.jsx(st,{className:"h-4 w-4 animate-spin"}):f.jsx(Eh,{className:"h-4 w-4"}),"Upgrade to Pro"]}):f.jsxs("button",{onClick:h,disabled:d.isPending||!o,className:"flex items-center gap-2 px-4 py-2 border rounded-md hover:bg-accent transition-colors disabled:opacity-50",children:[d.isPending?f.jsx(st,{className:"h-4 w-4 animate-spin"}):f.jsx(wh,{className:"h-4 w-4"}),"Manage Subscription"]})]}),f.jsxs("div",{className:"rounded-lg border bg-card overflow-hidden",children:[f.jsx("div",{className:"px-6 py-4 border-b",children:f.jsx("h2",{className:"text-lg font-semibold",children:"Plan Comparison"})}),f.jsx("div",{className:"overflow-x-auto",children:f.jsxs("table",{className:"w-full",children:[f.jsx("thead",{children:f.jsxs("tr",{className:"border-b bg-muted/50",children:[f.jsx("th",{className:"text-left px-6 py-3 text-sm font-medium text-muted-foreground",children:"Feature"}),f.jsx("th",{className:"text-center px-6 py-3 text-sm font-medium text-muted-foreground",children:"Free"}),f.jsx("th",{className:"text-center px-6 py-3 text-sm font-medium text-muted-foreground",children:"Pro"})]})}),f.jsxs("tbody",{children:[f.jsxs("tr",{className:"border-b",children:[f.jsx("td",{className:"px-6 py-3 text-sm",children:"Documents per month"}),f.jsx("td",{className:"px-6 py-3 text-sm text-center",children:zl.free.docs}),f.jsx("td",{className:"px-6 py-3 text-sm text-center font-medium",children:zl.pro.docs})]}),f.jsxs("tr",{className:"border-b",children:[f.jsx("td",{className:"px-6 py-3 text-sm",children:"API requests per minute"}),f.jsx("td",{className:"px-6 py-3 text-sm text-center",children:zl.free.rateMin}),f.jsx("td",{className:"px-6 py-3 text-sm text-center font-medium",children:zl.pro.rateMin})]}),f.jsxs("tr",{children:[f.jsx("td",{className:"px-6 py-3 text-sm",children:"API requests per day"}),f.jsx("td",{className:"px-6 py-3 text-sm text-center",children:zl.free.rateDay}),f.jsx("td",{className:"px-6 py-3 text-sm text-center font-medium",children:zl.pro.rateDay})]})]})]})})]})]})}function JU(){return f.jsx("div",{className:"min-h-screen flex items-center justify-center",children:f.jsxs("div",{className:"text-center",children:[f.jsx("h1",{className:"text-4xl font-bold mb-2",children:"404"}),f.jsx("p",{className:"text-muted-foreground mb-4",children:"Page not found"}),f.jsx(Mn,{to:"/",className:"text-primary hover:underline",children:"Go back home"})]})})}const WU=bk([{path:"/login",element:f.jsx(UU,{})},{path:"/public/d/:documentId",element:f.jsx(Tw,{})},{path:"/public/d/:documentId/v/:version",element:f.jsx(Tw,{})},{path:"/",element:f.jsx(sT,{children:f.jsx(oT,{})}),children:[{index:!0,element:f.jsx(kw,{})},{path:"folder/:folderId",element:f.jsx(kw,{})},{path:"d/:documentId",element:f.jsx(Aw,{})},{path:"d/:documentId/v/:version",element:f.jsx(Aw,{})},{path:"settings/api-keys",element:f.jsx(XU,{})},{path:"settings/billing",element:f.jsx(QU,{})}]},{path:"*",element:f.jsx(JU,{})}]);function e8(){return f.jsx(Vk,{children:f.jsx(hk,{client:zk,children:f.jsx(Ik,{children:f.jsx(xk,{router:WU})})})})}Ok.createRoot(document.getElementById("root")).render(f.jsx($e.StrictMode,{children:f.jsx(e8,{})}));export{CE as _};
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.