ocean-brain 0.4.1 → 0.5.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +3 -1
- package/server/client/dist/assets/{Calendar-D4KkvcU8.js → Calendar-BU9XgX2N.js} +1 -1
- package/server/client/dist/assets/Callout-C6tVCxOT.js +1 -0
- package/server/client/dist/assets/{Graph-C8pBdJzV.js → Graph-Dond2hGK.js} +1 -1
- package/server/client/dist/assets/{Image-DlJ4MDo3.js → Image-DxWhlIDG.js} +1 -1
- package/server/client/dist/assets/{Image.es-C8g5NwNt.js → Image.es-BjGK7y6Y.js} +1 -1
- package/server/client/dist/assets/Note-Cr6GtXUM.js +21 -0
- package/server/client/dist/assets/{Plus.es-Bkl1ZXE0.js → Plus.es-EcmtS_uw.js} +1 -1
- package/server/client/dist/assets/{Reminders-FrTR9ny8.js → Reminders-BlLLT_x0.js} +1 -1
- package/server/client/dist/assets/{Search-BPf2LO1Y.js → Search-CrZ0ap8x.js} +1 -1
- package/server/client/dist/assets/{SurfaceCard-WSk7zWeM.js → SurfaceCard-CO0oVxeL.js} +1 -1
- package/server/client/dist/assets/{Tag-uArdLjo1.js → Tag-vws5AfNW.js} +1 -1
- package/server/client/dist/assets/{TagNotes-DDvXHB9I.js → TagNotes-Fmf1Kgim.js} +1 -1
- package/server/client/dist/assets/{Trash.es-DumPfiUz.js → Trash.es-DmwfSy3l.js} +1 -1
- package/server/client/dist/assets/{ViewNotes-BVu9lEs-.js → ViewNotes-BALN7IfH.js} +1 -1
- package/server/client/dist/assets/{Views-D4LGh30P.js → Views-Ccc_Ml5U.js} +1 -1
- package/server/client/dist/assets/{image.api-D3Ei3fbf.js → image.api-DeF9ck7g.js} +1 -1
- package/server/client/dist/assets/{index-C7YGbIuA.js → index-BSVE2cGd.js} +1 -1
- package/server/client/dist/assets/{index-D2gRB1ig.css → index-BZUGWdOU.css} +1 -1
- package/server/client/dist/assets/index-BvKBTjQq.js +246 -0
- package/server/client/dist/assets/{manage-image-DiuREdeE.js → manage-image-IoTXaMBP.js} +1 -1
- package/server/client/dist/assets/{manage-image-detail-D8Eorq3u.js → manage-image-detail-BRTXwOsh.js} +1 -1
- package/server/client/dist/assets/{mcp-CvCGaYSz.js → mcp-Bh743HBz.js} +1 -1
- package/server/client/dist/assets/note-core-Z6kqulGB.js +180 -0
- package/server/client/dist/assets/note-vendor-i1M2FSI2.js +54 -0
- package/server/client/dist/assets/{placeholder-znZDfNAE.js → placeholder-XQqo1Fvr.js} +3 -3
- package/server/client/dist/assets/{trash-R0sww0ur.js → trash-hiJIg6-c.js} +1 -1
- package/server/client/dist/assets/{useReminderMutate-Bkj-oIm4.js → useReminderMutate-D21PurIS.js} +1 -1
- package/server/client/dist/assets/{view-dashboard-ClpF_qLM.js → view-dashboard-BuaZ4MvI.js} +1 -1
- package/server/client/dist/index.html +4 -4
- package/server/dist/app.js +2 -2
- package/server/dist/app.js.map +1 -1
- package/server/dist/features/auth/http/login-page.js +11 -4
- package/server/dist/features/auth/http/login-page.js.map +1 -1
- package/server/dist/features/auth/http/pages.js +3 -2
- package/server/dist/features/auth/http/pages.js.map +1 -1
- package/server/dist/features/note/graphql/note.field.resolver.js +14 -1
- package/server/dist/features/note/graphql/note.field.resolver.js.map +1 -1
- package/server/dist/features/note/graphql/note.mutation.resolver.js +73 -36
- package/server/dist/features/note/graphql/note.mutation.resolver.js.map +1 -1
- package/server/dist/features/note/graphql/note.query.resolver.js +74 -76
- package/server/dist/features/note/graphql/note.query.resolver.js.map +1 -1
- package/server/dist/features/note/graphql/note.resolver.js +3 -2
- package/server/dist/features/note/graphql/note.resolver.js.map +1 -1
- package/server/dist/features/note/graphql/note.type-defs.js +4 -1
- package/server/dist/features/note/graphql/note.type-defs.js.map +1 -1
- package/server/dist/features/note/services/cleanup.js +4 -3
- package/server/dist/features/note/services/cleanup.js.map +1 -1
- package/server/dist/features/note/services/content-blocks.js +113 -0
- package/server/dist/features/note/services/content-blocks.js.map +1 -0
- package/server/dist/features/note/services/search.js +10 -29
- package/server/dist/features/note/services/search.js.map +1 -1
- package/server/dist/features/note/services/snapshot.js +172 -12
- package/server/dist/features/note/services/snapshot.js.map +1 -1
- package/server/dist/features/note/services/write-conflict.js +87 -0
- package/server/dist/features/note/services/write-conflict.js.map +1 -0
- package/server/dist/features/note/services/write.js +107 -0
- package/server/dist/features/note/services/write.js.map +1 -0
- package/server/dist/modules/auth-guard.js +18 -0
- package/server/dist/modules/auth-guard.js.map +1 -1
- package/server/dist/modules/blocknote-tree.js +41 -0
- package/server/dist/modules/blocknote-tree.js.map +1 -0
- package/server/dist/modules/error-handler.js +13 -3
- package/server/dist/modules/error-handler.js.map +1 -1
- package/server/dist/modules/rate-limit.js +18 -0
- package/server/dist/modules/rate-limit.js.map +1 -0
- package/server/dist/modules/recovery-retention.js +2 -2
- package/server/dist/modules/recovery-retention.js.map +1 -1
- package/server/dist/routes/api.js +2 -1
- package/server/dist/routes/api.js.map +1 -1
- package/server/dist/routes/auth-pages.js +2 -1
- package/server/dist/routes/auth-pages.js.map +1 -1
- package/server/client/dist/assets/Callout-CaSzc-1y.js +0 -1
- package/server/client/dist/assets/Note-ODOESft3.js +0 -21
- package/server/client/dist/assets/index-46ZUXbW5.js +0 -232
- package/server/client/dist/assets/note-core-GgFcksAF.js +0 -178
- package/server/client/dist/assets/note-vendor-B0t5F04o.js +0 -54
- package/server/dist/features/note/graphql/note.graphql.shared.js +0 -23
- package/server/dist/features/note/graphql/note.graphql.shared.js.map +0 -1
|
@@ -1,54 +0,0 @@
|
|
|
1
|
-
import{r as qs,g as pv,a as S,R as hv,N as Ve}from"./graph-vendor-CUxe67Lr.js";import{a as tS,f as nS,P as oS,b as lS,y as aS,g as rS,c as Td,D as Uf,d as iS,M as sS,m as cS,e as uS,H as fS,N as dS,h as mS,L as pS,A as hS,B as gS,_ as po,i as ht,j as kt,k as ys,l as Or,p as vS,n as xl,o as Fe,q as Ys,S as Nr,T as yS,r as Xs,s as Gn,I as Ed,t as zg,C as bS,u as xS,v as gv,w as vv,x as yv,z as SS,E as CS,R as Ar,F as wS,G as TS,J as ES,K as MS,O as bv,Q as RS,U as jS,V as Lg,W as _S,X as OS,Y as NS,Z as AS,$ as DS,a0 as Ce,a1 as Md}from"./note-core-GgFcksAF.js";var $f={exports:{}},wr={};var Vg;function HS(){if(Vg)return wr;Vg=1;var t=Symbol.for("react.transitional.element"),o=Symbol.for("react.fragment");function a(r,s,c){var f=null;if(c!==void 0&&(f=""+c),s.key!==void 0&&(f=""+s.key),"key"in s){c={};for(var d in s)d!=="key"&&(c[d]=s[d])}else c=s;return s=c.ref,{$$typeof:t,type:r,key:f,ref:s!==void 0?s:null,props:c}}return wr.Fragment=o,wr.jsx=a,wr.jsxs=a,wr}var kg;function zS(){return kg||(kg=1,$f.exports=HS()),$f.exports}var g=zS(),Gf={exports:{}},Tr={},Zf={exports:{}},qf={};var Bg;function LS(){return Bg||(Bg=1,(function(t){function o(D,U){var V=D.length;D.push(U);e:for(;0<V;){var K=V-1>>>1,W=D[K];if(0<s(W,U))D[K]=U,D[V]=W,V=K;else break e}}function a(D){return D.length===0?null:D[0]}function r(D){if(D.length===0)return null;var U=D[0],V=D.pop();if(V!==U){D[0]=V;e:for(var K=0,W=D.length,de=W>>>1;K<de;){var le=2*(K+1)-1,ae=D[le],ye=le+1,ge=D[ye];if(0>s(ae,V))ye<W&&0>s(ge,ae)?(D[K]=ge,D[ye]=V,K=ye):(D[K]=ae,D[le]=V,K=le);else if(ye<W&&0>s(ge,V))D[K]=ge,D[ye]=V,K=ye;else break e}}return U}function s(D,U){var V=D.sortIndex-U.sortIndex;return V!==0?V:D.id-U.id}if(t.unstable_now=void 0,typeof performance=="object"&&typeof performance.now=="function"){var c=performance;t.unstable_now=function(){return c.now()}}else{var f=Date,d=f.now();t.unstable_now=function(){return f.now()-d}}var p=[],h=[],v=1,y=null,x=3,C=!1,T=!1,w=!1,M=!1,R=typeof setTimeout=="function"?setTimeout:null,_=typeof clearTimeout=="function"?clearTimeout:null,N=typeof setImmediate<"u"?setImmediate:null;function A(D){for(var U=a(h);U!==null;){if(U.callback===null)r(h);else if(U.startTime<=D)r(h),U.sortIndex=U.expirationTime,o(p,U);else break;U=a(h)}}function H(D){if(w=!1,A(D),!T)if(a(p)!==null)T=!0,L||(L=!0,oe());else{var U=a(h);U!==null&&ne(H,U.startTime-D)}}var L=!1,Z=-1,I=5,J=-1;function P(){return M?!0:!(t.unstable_now()-J<I)}function ee(){if(M=!1,L){var D=t.unstable_now();J=D;var U=!0;try{e:{T=!1,w&&(w=!1,_(Z),Z=-1),C=!0;var V=x;try{t:{for(A(D),y=a(p);y!==null&&!(y.expirationTime>D&&P());){var K=y.callback;if(typeof K=="function"){y.callback=null,x=y.priorityLevel;var W=K(y.expirationTime<=D);if(D=t.unstable_now(),typeof W=="function"){y.callback=W,A(D),U=!0;break t}y===a(p)&&r(p),A(D)}else r(p);y=a(p)}if(y!==null)U=!0;else{var de=a(h);de!==null&&ne(H,de.startTime-D),U=!1}}break e}finally{y=null,x=V,C=!1}U=void 0}}finally{U?oe():L=!1}}}var oe;if(typeof N=="function")oe=function(){N(ee)};else if(typeof MessageChannel<"u"){var te=new MessageChannel,B=te.port2;te.port1.onmessage=ee,oe=function(){B.postMessage(null)}}else oe=function(){R(ee,0)};function ne(D,U){Z=R(function(){D(t.unstable_now())},U)}t.unstable_IdlePriority=5,t.unstable_ImmediatePriority=1,t.unstable_LowPriority=4,t.unstable_NormalPriority=3,t.unstable_Profiling=null,t.unstable_UserBlockingPriority=2,t.unstable_cancelCallback=function(D){D.callback=null},t.unstable_forceFrameRate=function(D){0>D||125<D?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):I=0<D?Math.floor(1e3/D):5},t.unstable_getCurrentPriorityLevel=function(){return x},t.unstable_next=function(D){switch(x){case 1:case 2:case 3:var U=3;break;default:U=x}var V=x;x=U;try{return D()}finally{x=V}},t.unstable_requestPaint=function(){M=!0},t.unstable_runWithPriority=function(D,U){switch(D){case 1:case 2:case 3:case 4:case 5:break;default:D=3}var V=x;x=D;try{return U()}finally{x=V}},t.unstable_scheduleCallback=function(D,U,V){var K=t.unstable_now();switch(typeof V=="object"&&V!==null?(V=V.delay,V=typeof V=="number"&&0<V?K+V:K):V=K,D){case 1:var W=-1;break;case 2:W=250;break;case 5:W=1073741823;break;case 4:W=1e4;break;default:W=5e3}return W=V+W,D={id:v++,callback:U,priorityLevel:D,startTime:V,expirationTime:W,sortIndex:-1},V>K?(D.sortIndex=V,o(h,D),a(p)===null&&D===a(h)&&(w?(_(Z),Z=-1):w=!0,ne(H,V-K))):(D.sortIndex=W,o(p,D),T||C||(T=!0,L||(L=!0,oe()))),D},t.unstable_shouldYield=P,t.unstable_wrapCallback=function(D){var U=x;return function(){var V=x;x=U;try{return D.apply(this,arguments)}finally{x=V}}}})(qf)),qf}var Ug;function VS(){return Ug||(Ug=1,Zf.exports=LS()),Zf.exports}var Yf={exports:{}},Tt={};var $g;function kS(){if($g)return Tt;$g=1;var t=qs();function o(p){var h="https://react.dev/errors/"+p;if(1<arguments.length){h+="?args[]="+encodeURIComponent(arguments[1]);for(var v=2;v<arguments.length;v++)h+="&args[]="+encodeURIComponent(arguments[v])}return"Minified React error #"+p+"; visit "+h+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function a(){}var r={d:{f:a,r:function(){throw Error(o(522))},D:a,C:a,L:a,m:a,X:a,S:a,M:a},p:0,findDOMNode:null},s=Symbol.for("react.portal");function c(p,h,v){var y=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:s,key:y==null?null:""+y,children:p,containerInfo:h,implementation:v}}var f=t.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;function d(p,h){if(p==="font")return"";if(typeof h=="string")return h==="use-credentials"?h:""}return Tt.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=r,Tt.createPortal=function(p,h){var v=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!h||h.nodeType!==1&&h.nodeType!==9&&h.nodeType!==11)throw Error(o(299));return c(p,h,null,v)},Tt.flushSync=function(p){var h=f.T,v=r.p;try{if(f.T=null,r.p=2,p)return p()}finally{f.T=h,r.p=v,r.d.f()}},Tt.preconnect=function(p,h){typeof p=="string"&&(h?(h=h.crossOrigin,h=typeof h=="string"?h==="use-credentials"?h:"":void 0):h=null,r.d.C(p,h))},Tt.prefetchDNS=function(p){typeof p=="string"&&r.d.D(p)},Tt.preinit=function(p,h){if(typeof p=="string"&&h&&typeof h.as=="string"){var v=h.as,y=d(v,h.crossOrigin),x=typeof h.integrity=="string"?h.integrity:void 0,C=typeof h.fetchPriority=="string"?h.fetchPriority:void 0;v==="style"?r.d.S(p,typeof h.precedence=="string"?h.precedence:void 0,{crossOrigin:y,integrity:x,fetchPriority:C}):v==="script"&&r.d.X(p,{crossOrigin:y,integrity:x,fetchPriority:C,nonce:typeof h.nonce=="string"?h.nonce:void 0})}},Tt.preinitModule=function(p,h){if(typeof p=="string")if(typeof h=="object"&&h!==null){if(h.as==null||h.as==="script"){var v=d(h.as,h.crossOrigin);r.d.M(p,{crossOrigin:v,integrity:typeof h.integrity=="string"?h.integrity:void 0,nonce:typeof h.nonce=="string"?h.nonce:void 0})}}else h==null&&r.d.M(p)},Tt.preload=function(p,h){if(typeof p=="string"&&typeof h=="object"&&h!==null&&typeof h.as=="string"){var v=h.as,y=d(v,h.crossOrigin);r.d.L(p,v,{crossOrigin:y,integrity:typeof h.integrity=="string"?h.integrity:void 0,nonce:typeof h.nonce=="string"?h.nonce:void 0,type:typeof h.type=="string"?h.type:void 0,fetchPriority:typeof h.fetchPriority=="string"?h.fetchPriority:void 0,referrerPolicy:typeof h.referrerPolicy=="string"?h.referrerPolicy:void 0,imageSrcSet:typeof h.imageSrcSet=="string"?h.imageSrcSet:void 0,imageSizes:typeof h.imageSizes=="string"?h.imageSizes:void 0,media:typeof h.media=="string"?h.media:void 0})}},Tt.preloadModule=function(p,h){if(typeof p=="string")if(h){var v=d(h.as,h.crossOrigin);r.d.m(p,{as:typeof h.as=="string"&&h.as!=="script"?h.as:void 0,crossOrigin:v,integrity:typeof h.integrity=="string"?h.integrity:void 0})}else r.d.m(p)},Tt.requestFormReset=function(p){r.d.r(p)},Tt.unstable_batchedUpdates=function(p,h){return p(h)},Tt.useFormState=function(p,h,v){return f.H.useFormState(p,h,v)},Tt.useFormStatus=function(){return f.H.useHostTransitionStatus()},Tt.version="19.2.4",Tt}var Gg;function xv(){if(Gg)return Yf.exports;Gg=1;function t(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(t)}catch(o){console.error(o)}}return t(),Yf.exports=kS(),Yf.exports}var Zg;function BS(){if(Zg)return Tr;Zg=1;var t=VS(),o=qs(),a=xv();function r(e){var n="https://react.dev/errors/"+e;if(1<arguments.length){n+="?args[]="+encodeURIComponent(arguments[1]);for(var l=2;l<arguments.length;l++)n+="&args[]="+encodeURIComponent(arguments[l])}return"Minified React error #"+e+"; visit "+n+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function s(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11)}function c(e){var n=e,l=e;if(e.alternate)for(;n.return;)n=n.return;else{e=n;do n=e,(n.flags&4098)!==0&&(l=n.return),e=n.return;while(e)}return n.tag===3?l:null}function f(e){if(e.tag===13){var n=e.memoizedState;if(n===null&&(e=e.alternate,e!==null&&(n=e.memoizedState)),n!==null)return n.dehydrated}return null}function d(e){if(e.tag===31){var n=e.memoizedState;if(n===null&&(e=e.alternate,e!==null&&(n=e.memoizedState)),n!==null)return n.dehydrated}return null}function p(e){if(c(e)!==e)throw Error(r(188))}function h(e){var n=e.alternate;if(!n){if(n=c(e),n===null)throw Error(r(188));return n!==e?null:e}for(var l=e,i=n;;){var u=l.return;if(u===null)break;var m=u.alternate;if(m===null){if(i=u.return,i!==null){l=i;continue}break}if(u.child===m.child){for(m=u.child;m;){if(m===l)return p(u),e;if(m===i)return p(u),n;m=m.sibling}throw Error(r(188))}if(l.return!==i.return)l=u,i=m;else{for(var b=!1,E=u.child;E;){if(E===l){b=!0,l=u,i=m;break}if(E===i){b=!0,i=u,l=m;break}E=E.sibling}if(!b){for(E=m.child;E;){if(E===l){b=!0,l=m,i=u;break}if(E===i){b=!0,i=m,l=u;break}E=E.sibling}if(!b)throw Error(r(189))}}if(l.alternate!==i)throw Error(r(190))}if(l.tag!==3)throw Error(r(188));return l.stateNode.current===l?e:n}function v(e){var n=e.tag;if(n===5||n===26||n===27||n===6)return e;for(e=e.child;e!==null;){if(n=v(e),n!==null)return n;e=e.sibling}return null}var y=Object.assign,x=Symbol.for("react.element"),C=Symbol.for("react.transitional.element"),T=Symbol.for("react.portal"),w=Symbol.for("react.fragment"),M=Symbol.for("react.strict_mode"),R=Symbol.for("react.profiler"),_=Symbol.for("react.consumer"),N=Symbol.for("react.context"),A=Symbol.for("react.forward_ref"),H=Symbol.for("react.suspense"),L=Symbol.for("react.suspense_list"),Z=Symbol.for("react.memo"),I=Symbol.for("react.lazy"),J=Symbol.for("react.activity"),P=Symbol.for("react.memo_cache_sentinel"),ee=Symbol.iterator;function oe(e){return e===null||typeof e!="object"?null:(e=ee&&e[ee]||e["@@iterator"],typeof e=="function"?e:null)}var te=Symbol.for("react.client.reference");function B(e){if(e==null)return null;if(typeof e=="function")return e.$$typeof===te?null:e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case w:return"Fragment";case R:return"Profiler";case M:return"StrictMode";case H:return"Suspense";case L:return"SuspenseList";case J:return"Activity"}if(typeof e=="object")switch(e.$$typeof){case T:return"Portal";case N:return e.displayName||"Context";case _:return(e._context.displayName||"Context")+".Consumer";case A:var n=e.render;return e=e.displayName,e||(e=n.displayName||n.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case Z:return n=e.displayName||null,n!==null?n:B(e.type)||"Memo";case I:n=e._payload,e=e._init;try{return B(e(n))}catch{}}return null}var ne=Array.isArray,D=o.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,U=a.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,V={pending:!1,data:null,method:null,action:null},K=[],W=-1;function de(e){return{current:e}}function le(e){0>W||(e.current=K[W],K[W]=null,W--)}function ae(e,n){W++,K[W]=e.current,e.current=n}var ye=de(null),ge=de(null),Ne=de(null),Pe=de(null);function Ee(e,n){switch(ae(Ne,n),ae(ge,e),ae(ye,null),n.nodeType){case 9:case 11:e=(e=n.documentElement)&&(e=e.namespaceURI)?lg(e):0;break;default:if(e=n.tagName,n=n.namespaceURI)n=lg(n),e=ag(n,e);else switch(e){case"svg":e=1;break;case"math":e=2;break;default:e=0}}le(ye),ae(ye,e)}function ve(){le(ye),le(ge),le(Ne)}function We(e){e.memoizedState!==null&&ae(Pe,e);var n=ye.current,l=ag(n,e.type);n!==l&&(ae(ge,e),ae(ye,l))}function rt(e){ge.current===e&&(le(ye),le(ge)),Pe.current===e&&(le(Pe),br._currentValue=V)}var et,ze;function ot(e){if(et===void 0)try{throw Error()}catch(l){var n=l.stack.trim().match(/\n( *(at )?)/);et=n&&n[1]||"",ze=-1<l.stack.indexOf(`
|
|
2
|
-
at`)?" (<anonymous>)":-1<l.stack.indexOf("@")?"@unknown:0:0":""}return`
|
|
3
|
-
`+et+e+ze}var tn=!1;function On(e,n){if(!e||tn)return"";tn=!0;var l=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{var i={DetermineComponentFrameRoot:function(){try{if(n){var Q=function(){throw Error()};if(Object.defineProperty(Q.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(Q,[])}catch(q){var G=q}Reflect.construct(e,[],Q)}else{try{Q.call()}catch(q){G=q}e.call(Q.prototype)}}else{try{throw Error()}catch(q){G=q}(Q=e())&&typeof Q.catch=="function"&&Q.catch(function(){})}}catch(q){if(q&&G&&typeof q.stack=="string")return[q.stack,G.stack]}return[null,null]}};i.DetermineComponentFrameRoot.displayName="DetermineComponentFrameRoot";var u=Object.getOwnPropertyDescriptor(i.DetermineComponentFrameRoot,"name");u&&u.configurable&&Object.defineProperty(i.DetermineComponentFrameRoot,"name",{value:"DetermineComponentFrameRoot"});var m=i.DetermineComponentFrameRoot(),b=m[0],E=m[1];if(b&&E){var j=b.split(`
|
|
4
|
-
`),$=E.split(`
|
|
5
|
-
`);for(u=i=0;i<j.length&&!j[i].includes("DetermineComponentFrameRoot");)i++;for(;u<$.length&&!$[u].includes("DetermineComponentFrameRoot");)u++;if(i===j.length||u===$.length)for(i=j.length-1,u=$.length-1;1<=i&&0<=u&&j[i]!==$[u];)u--;for(;1<=i&&0<=u;i--,u--)if(j[i]!==$[u]){if(i!==1||u!==1)do if(i--,u--,0>u||j[i]!==$[u]){var Y=`
|
|
6
|
-
`+j[i].replace(" at new "," at ");return e.displayName&&Y.includes("<anonymous>")&&(Y=Y.replace("<anonymous>",e.displayName)),Y}while(1<=i&&0<=u);break}}}finally{tn=!1,Error.prepareStackTrace=l}return(l=e?e.displayName||e.name:"")?ot(l):""}function So(e,n){switch(e.tag){case 26:case 27:case 5:return ot(e.type);case 16:return ot("Lazy");case 13:return e.child!==n&&n!==null?ot("Suspense Fallback"):ot("Suspense");case 19:return ot("SuspenseList");case 0:case 15:return On(e.type,!1);case 11:return On(e.type.render,!1);case 1:return On(e.type,!0);case 31:return ot("Activity");default:return""}}function Nn(e){try{var n="",l=null;do n+=So(e,l),l=e,e=e.return;while(e);return n}catch(i){return`
|
|
7
|
-
Error generating stack: `+i.message+`
|
|
8
|
-
`+i.stack}}var wt=Object.prototype.hasOwnProperty,Xn=t.unstable_scheduleCallback,Tl=t.unstable_cancelCallback,Cc=t.unstable_shouldYield,wc=t.unstable_requestPaint,jt=t.unstable_now,Tc=t.unstable_getCurrentPriorityLevel,Oa=t.unstable_ImmediatePriority,ft=t.unstable_UserBlockingPriority,El=t.unstable_NormalPriority,Ec=t.unstable_LowPriority,Xr=t.unstable_IdlePriority,Mc=t.log,Pn=t.unstable_setDisableYieldValue,Na=null,Zt=null;function Co(e){if(typeof Mc=="function"&&Pn(e),Zt&&typeof Zt.setStrictMode=="function")try{Zt.setStrictMode(Na,e)}catch{}}var qt=Math.clz32?Math.clz32:$b,Bb=Math.log,Ub=Math.LN2;function $b(e){return e>>>=0,e===0?32:31-(Bb(e)/Ub|0)|0}var Pr=256,Qr=262144,Ir=4194304;function tl(e){var n=e&42;if(n!==0)return n;switch(e&-e){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 e&261888;case 262144:case 524288:case 1048576:case 2097152:return e&3932160;case 4194304:case 8388608:case 16777216:case 33554432:return e&62914560;case 67108864:return 67108864;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 0;default:return e}}function Kr(e,n,l){var i=e.pendingLanes;if(i===0)return 0;var u=0,m=e.suspendedLanes,b=e.pingedLanes;e=e.warmLanes;var E=i&134217727;return E!==0?(i=E&~m,i!==0?u=tl(i):(b&=E,b!==0?u=tl(b):l||(l=E&~e,l!==0&&(u=tl(l))))):(E=i&~m,E!==0?u=tl(E):b!==0?u=tl(b):l||(l=i&~e,l!==0&&(u=tl(l)))),u===0?0:n!==0&&n!==u&&(n&m)===0&&(m=u&-u,l=n&-n,m>=l||m===32&&(l&4194048)!==0)?n:u}function Aa(e,n){return(e.pendingLanes&~(e.suspendedLanes&~e.pingedLanes)&n)===0}function Gb(e,n){switch(e){case 1:case 2:case 4:case 8:case 64:return n+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 n+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 Bm(){var e=Ir;return Ir<<=1,(Ir&62914560)===0&&(Ir=4194304),e}function Rc(e){for(var n=[],l=0;31>l;l++)n.push(e);return n}function Da(e,n){e.pendingLanes|=n,n!==268435456&&(e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0)}function Zb(e,n,l,i,u,m){var b=e.pendingLanes;e.pendingLanes=l,e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0,e.expiredLanes&=l,e.entangledLanes&=l,e.errorRecoveryDisabledLanes&=l,e.shellSuspendCounter=0;var E=e.entanglements,j=e.expirationTimes,$=e.hiddenUpdates;for(l=b&~l;0<l;){var Y=31-qt(l),Q=1<<Y;E[Y]=0,j[Y]=-1;var G=$[Y];if(G!==null)for($[Y]=null,Y=0;Y<G.length;Y++){var q=G[Y];q!==null&&(q.lane&=-536870913)}l&=~Q}i!==0&&Um(e,i,0),m!==0&&u===0&&e.tag!==0&&(e.suspendedLanes|=m&~(b&~n))}function Um(e,n,l){e.pendingLanes|=n,e.suspendedLanes&=~n;var i=31-qt(n);e.entangledLanes|=n,e.entanglements[i]=e.entanglements[i]|1073741824|l&261930}function $m(e,n){var l=e.entangledLanes|=n;for(e=e.entanglements;l;){var i=31-qt(l),u=1<<i;u&n|e[i]&n&&(e[i]|=n),l&=~u}}function Gm(e,n){var l=n&-n;return l=(l&42)!==0?1:jc(l),(l&(e.suspendedLanes|n))!==0?0:l}function jc(e){switch(e){case 2:e=1;break;case 8:e=4;break;case 32:e=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:e=128;break;case 268435456:e=134217728;break;default:e=0}return e}function _c(e){return e&=-e,2<e?8<e?(e&134217727)!==0?32:268435456:8:2}function Zm(){var e=U.p;return e!==0?e:(e=window.event,e===void 0?32:jg(e.type))}function qm(e,n){var l=U.p;try{return U.p=e,n()}finally{U.p=l}}var wo=Math.random().toString(36).slice(2),vt="__reactFiber$"+wo,Ot="__reactProps$"+wo,Ml="__reactContainer$"+wo,Oc="__reactEvents$"+wo,qb="__reactListeners$"+wo,Yb="__reactHandles$"+wo,Ym="__reactResources$"+wo,Ha="__reactMarker$"+wo;function Nc(e){delete e[vt],delete e[Ot],delete e[Oc],delete e[qb],delete e[Yb]}function Rl(e){var n=e[vt];if(n)return n;for(var l=e.parentNode;l;){if(n=l[Ml]||l[vt]){if(l=n.alternate,n.child!==null||l!==null&&l.child!==null)for(e=dg(e);e!==null;){if(l=e[vt])return l;e=dg(e)}return n}e=l,l=e.parentNode}return null}function jl(e){if(e=e[vt]||e[Ml]){var n=e.tag;if(n===5||n===6||n===13||n===31||n===26||n===27||n===3)return e}return null}function za(e){var n=e.tag;if(n===5||n===26||n===27||n===6)return e.stateNode;throw Error(r(33))}function _l(e){var n=e[Ym];return n||(n=e[Ym]={hoistableStyles:new Map,hoistableScripts:new Map}),n}function mt(e){e[Ha]=!0}var Xm=new Set,Pm={};function nl(e,n){Ol(e,n),Ol(e+"Capture",n)}function Ol(e,n){for(Pm[e]=n,e=0;e<n.length;e++)Xm.add(n[e])}var Xb=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]*$"),Qm={},Im={};function Pb(e){return wt.call(Im,e)?!0:wt.call(Qm,e)?!1:Xb.test(e)?Im[e]=!0:(Qm[e]=!0,!1)}function Fr(e,n,l){if(Pb(n))if(l===null)e.removeAttribute(n);else{switch(typeof l){case"undefined":case"function":case"symbol":e.removeAttribute(n);return;case"boolean":var i=n.toLowerCase().slice(0,5);if(i!=="data-"&&i!=="aria-"){e.removeAttribute(n);return}}e.setAttribute(n,""+l)}}function Jr(e,n,l){if(l===null)e.removeAttribute(n);else{switch(typeof l){case"undefined":case"function":case"symbol":case"boolean":e.removeAttribute(n);return}e.setAttribute(n,""+l)}}function Qn(e,n,l,i){if(i===null)e.removeAttribute(l);else{switch(typeof i){case"undefined":case"function":case"symbol":case"boolean":e.removeAttribute(l);return}e.setAttributeNS(n,l,""+i)}}function nn(e){switch(typeof e){case"bigint":case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function Km(e){var n=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(n==="checkbox"||n==="radio")}function Qb(e,n,l){var i=Object.getOwnPropertyDescriptor(e.constructor.prototype,n);if(!e.hasOwnProperty(n)&&typeof i<"u"&&typeof i.get=="function"&&typeof i.set=="function"){var u=i.get,m=i.set;return Object.defineProperty(e,n,{configurable:!0,get:function(){return u.call(this)},set:function(b){l=""+b,m.call(this,b)}}),Object.defineProperty(e,n,{enumerable:i.enumerable}),{getValue:function(){return l},setValue:function(b){l=""+b},stopTracking:function(){e._valueTracker=null,delete e[n]}}}}function Ac(e){if(!e._valueTracker){var n=Km(e)?"checked":"value";e._valueTracker=Qb(e,n,""+e[n])}}function Fm(e){if(!e)return!1;var n=e._valueTracker;if(!n)return!0;var l=n.getValue(),i="";return e&&(i=Km(e)?e.checked?"true":"false":e.value),e=i,e!==l?(n.setValue(e),!0):!1}function Wr(e){if(e=e||(typeof document<"u"?document:void 0),typeof e>"u")return null;try{return e.activeElement||e.body}catch{return e.body}}var Ib=/[\n"\\]/g;function on(e){return e.replace(Ib,function(n){return"\\"+n.charCodeAt(0).toString(16)+" "})}function Dc(e,n,l,i,u,m,b,E){e.name="",b!=null&&typeof b!="function"&&typeof b!="symbol"&&typeof b!="boolean"?e.type=b:e.removeAttribute("type"),n!=null?b==="number"?(n===0&&e.value===""||e.value!=n)&&(e.value=""+nn(n)):e.value!==""+nn(n)&&(e.value=""+nn(n)):b!=="submit"&&b!=="reset"||e.removeAttribute("value"),n!=null?Hc(e,b,nn(n)):l!=null?Hc(e,b,nn(l)):i!=null&&e.removeAttribute("value"),u==null&&m!=null&&(e.defaultChecked=!!m),u!=null&&(e.checked=u&&typeof u!="function"&&typeof u!="symbol"),E!=null&&typeof E!="function"&&typeof E!="symbol"&&typeof E!="boolean"?e.name=""+nn(E):e.removeAttribute("name")}function Jm(e,n,l,i,u,m,b,E){if(m!=null&&typeof m!="function"&&typeof m!="symbol"&&typeof m!="boolean"&&(e.type=m),n!=null||l!=null){if(!(m!=="submit"&&m!=="reset"||n!=null)){Ac(e);return}l=l!=null?""+nn(l):"",n=n!=null?""+nn(n):l,E||n===e.value||(e.value=n),e.defaultValue=n}i=i??u,i=typeof i!="function"&&typeof i!="symbol"&&!!i,e.checked=E?e.checked:!!i,e.defaultChecked=!!i,b!=null&&typeof b!="function"&&typeof b!="symbol"&&typeof b!="boolean"&&(e.name=b),Ac(e)}function Hc(e,n,l){n==="number"&&Wr(e.ownerDocument)===e||e.defaultValue===""+l||(e.defaultValue=""+l)}function Nl(e,n,l,i){if(e=e.options,n){n={};for(var u=0;u<l.length;u++)n["$"+l[u]]=!0;for(l=0;l<e.length;l++)u=n.hasOwnProperty("$"+e[l].value),e[l].selected!==u&&(e[l].selected=u),u&&i&&(e[l].defaultSelected=!0)}else{for(l=""+nn(l),n=null,u=0;u<e.length;u++){if(e[u].value===l){e[u].selected=!0,i&&(e[u].defaultSelected=!0);return}n!==null||e[u].disabled||(n=e[u])}n!==null&&(n.selected=!0)}}function Wm(e,n,l){if(n!=null&&(n=""+nn(n),n!==e.value&&(e.value=n),l==null)){e.defaultValue!==n&&(e.defaultValue=n);return}e.defaultValue=l!=null?""+nn(l):""}function ep(e,n,l,i){if(n==null){if(i!=null){if(l!=null)throw Error(r(92));if(ne(i)){if(1<i.length)throw Error(r(93));i=i[0]}l=i}l==null&&(l=""),n=l}l=nn(n),e.defaultValue=l,i=e.textContent,i===l&&i!==""&&i!==null&&(e.value=i),Ac(e)}function Al(e,n){if(n){var l=e.firstChild;if(l&&l===e.lastChild&&l.nodeType===3){l.nodeValue=n;return}}e.textContent=n}var Kb=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 tp(e,n,l){var i=n.indexOf("--")===0;l==null||typeof l=="boolean"||l===""?i?e.setProperty(n,""):n==="float"?e.cssFloat="":e[n]="":i?e.setProperty(n,l):typeof l!="number"||l===0||Kb.has(n)?n==="float"?e.cssFloat=l:e[n]=(""+l).trim():e[n]=l+"px"}function np(e,n,l){if(n!=null&&typeof n!="object")throw Error(r(62));if(e=e.style,l!=null){for(var i in l)!l.hasOwnProperty(i)||n!=null&&n.hasOwnProperty(i)||(i.indexOf("--")===0?e.setProperty(i,""):i==="float"?e.cssFloat="":e[i]="");for(var u in n)i=n[u],n.hasOwnProperty(u)&&l[u]!==i&&tp(e,u,i)}else for(var m in n)n.hasOwnProperty(m)&&tp(e,m,n[m])}function zc(e){if(e.indexOf("-")===-1)return!1;switch(e){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 Fb=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"],["colorRendering","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"]]),Jb=/^[\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 ei(e){return Jb.test(""+e)?"javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')":e}function In(){}var Lc=null;function Vc(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var Dl=null,Hl=null;function op(e){var n=jl(e);if(n&&(e=n.stateNode)){var l=e[Ot]||null;e:switch(e=n.stateNode,n.type){case"input":if(Dc(e,l.value,l.defaultValue,l.defaultValue,l.checked,l.defaultChecked,l.type,l.name),n=l.name,l.type==="radio"&&n!=null){for(l=e;l.parentNode;)l=l.parentNode;for(l=l.querySelectorAll('input[name="'+on(""+n)+'"][type="radio"]'),n=0;n<l.length;n++){var i=l[n];if(i!==e&&i.form===e.form){var u=i[Ot]||null;if(!u)throw Error(r(90));Dc(i,u.value,u.defaultValue,u.defaultValue,u.checked,u.defaultChecked,u.type,u.name)}}for(n=0;n<l.length;n++)i=l[n],i.form===e.form&&Fm(i)}break e;case"textarea":Wm(e,l.value,l.defaultValue);break e;case"select":n=l.value,n!=null&&Nl(e,!!l.multiple,n,!1)}}}var kc=!1;function lp(e,n,l){if(kc)return e(n,l);kc=!0;try{var i=e(n);return i}finally{if(kc=!1,(Dl!==null||Hl!==null)&&($i(),Dl&&(n=Dl,e=Hl,Hl=Dl=null,op(n),e)))for(n=0;n<e.length;n++)op(e[n])}}function La(e,n){var l=e.stateNode;if(l===null)return null;var i=l[Ot]||null;if(i===null)return null;l=i[n];e:switch(n){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(i=!i.disabled)||(e=e.type,i=!(e==="button"||e==="input"||e==="select"||e==="textarea")),e=!i;break e;default:e=!1}if(e)return null;if(l&&typeof l!="function")throw Error(r(231,n,typeof l));return l}var Kn=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),Bc=!1;if(Kn)try{var Va={};Object.defineProperty(Va,"passive",{get:function(){Bc=!0}}),window.addEventListener("test",Va,Va),window.removeEventListener("test",Va,Va)}catch{Bc=!1}var To=null,Uc=null,ti=null;function ap(){if(ti)return ti;var e,n=Uc,l=n.length,i,u="value"in To?To.value:To.textContent,m=u.length;for(e=0;e<l&&n[e]===u[e];e++);var b=l-e;for(i=1;i<=b&&n[l-i]===u[m-i];i++);return ti=u.slice(e,1<i?1-i:void 0)}function ni(e){var n=e.keyCode;return"charCode"in e?(e=e.charCode,e===0&&n===13&&(e=13)):e=n,e===10&&(e=13),32<=e||e===13?e:0}function oi(){return!0}function rp(){return!1}function Nt(e){function n(l,i,u,m,b){this._reactName=l,this._targetInst=u,this.type=i,this.nativeEvent=m,this.target=b,this.currentTarget=null;for(var E in e)e.hasOwnProperty(E)&&(l=e[E],this[E]=l?l(m):m[E]);return this.isDefaultPrevented=(m.defaultPrevented!=null?m.defaultPrevented:m.returnValue===!1)?oi:rp,this.isPropagationStopped=rp,this}return y(n.prototype,{preventDefault:function(){this.defaultPrevented=!0;var l=this.nativeEvent;l&&(l.preventDefault?l.preventDefault():typeof l.returnValue!="unknown"&&(l.returnValue=!1),this.isDefaultPrevented=oi)},stopPropagation:function(){var l=this.nativeEvent;l&&(l.stopPropagation?l.stopPropagation():typeof l.cancelBubble!="unknown"&&(l.cancelBubble=!0),this.isPropagationStopped=oi)},persist:function(){},isPersistent:oi}),n}var ol={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},li=Nt(ol),ka=y({},ol,{view:0,detail:0}),Wb=Nt(ka),$c,Gc,Ba,ai=y({},ka,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:qc,button:0,buttons:0,relatedTarget:function(e){return e.relatedTarget===void 0?e.fromElement===e.srcElement?e.toElement:e.fromElement:e.relatedTarget},movementX:function(e){return"movementX"in e?e.movementX:(e!==Ba&&(Ba&&e.type==="mousemove"?($c=e.screenX-Ba.screenX,Gc=e.screenY-Ba.screenY):Gc=$c=0,Ba=e),$c)},movementY:function(e){return"movementY"in e?e.movementY:Gc}}),ip=Nt(ai),e2=y({},ai,{dataTransfer:0}),t2=Nt(e2),n2=y({},ka,{relatedTarget:0}),Zc=Nt(n2),o2=y({},ol,{animationName:0,elapsedTime:0,pseudoElement:0}),l2=Nt(o2),a2=y({},ol,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),r2=Nt(a2),i2=y({},ol,{data:0}),sp=Nt(i2),s2={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},c2={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"},u2={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function f2(e){var n=this.nativeEvent;return n.getModifierState?n.getModifierState(e):(e=u2[e])?!!n[e]:!1}function qc(){return f2}var d2=y({},ka,{key:function(e){if(e.key){var n=s2[e.key]||e.key;if(n!=="Unidentified")return n}return e.type==="keypress"?(e=ni(e),e===13?"Enter":String.fromCharCode(e)):e.type==="keydown"||e.type==="keyup"?c2[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:qc,charCode:function(e){return e.type==="keypress"?ni(e):0},keyCode:function(e){return e.type==="keydown"||e.type==="keyup"?e.keyCode:0},which:function(e){return e.type==="keypress"?ni(e):e.type==="keydown"||e.type==="keyup"?e.keyCode:0}}),m2=Nt(d2),p2=y({},ai,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),cp=Nt(p2),h2=y({},ka,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:qc}),g2=Nt(h2),v2=y({},ol,{propertyName:0,elapsedTime:0,pseudoElement:0}),y2=Nt(v2),b2=y({},ai,{deltaX:function(e){return"deltaX"in e?e.deltaX:"wheelDeltaX"in e?-e.wheelDeltaX:0},deltaY:function(e){return"deltaY"in e?e.deltaY:"wheelDeltaY"in e?-e.wheelDeltaY:"wheelDelta"in e?-e.wheelDelta:0},deltaZ:0,deltaMode:0}),x2=Nt(b2),S2=y({},ol,{newState:0,oldState:0}),C2=Nt(S2),w2=[9,13,27,32],Yc=Kn&&"CompositionEvent"in window,Ua=null;Kn&&"documentMode"in document&&(Ua=document.documentMode);var T2=Kn&&"TextEvent"in window&&!Ua,up=Kn&&(!Yc||Ua&&8<Ua&&11>=Ua),fp=" ",dp=!1;function mp(e,n){switch(e){case"keyup":return w2.indexOf(n.keyCode)!==-1;case"keydown":return n.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function pp(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var zl=!1;function E2(e,n){switch(e){case"compositionend":return pp(n);case"keypress":return n.which!==32?null:(dp=!0,fp);case"textInput":return e=n.data,e===fp&&dp?null:e;default:return null}}function M2(e,n){if(zl)return e==="compositionend"||!Yc&&mp(e,n)?(e=ap(),ti=Uc=To=null,zl=!1,e):null;switch(e){case"paste":return null;case"keypress":if(!(n.ctrlKey||n.altKey||n.metaKey)||n.ctrlKey&&n.altKey){if(n.char&&1<n.char.length)return n.char;if(n.which)return String.fromCharCode(n.which)}return null;case"compositionend":return up&&n.locale!=="ko"?null:n.data;default:return null}}var R2={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 hp(e){var n=e&&e.nodeName&&e.nodeName.toLowerCase();return n==="input"?!!R2[e.type]:n==="textarea"}function gp(e,n,l,i){Dl?Hl?Hl.push(i):Hl=[i]:Dl=i,n=Qi(n,"onChange"),0<n.length&&(l=new li("onChange","change",null,l,i),e.push({event:l,listeners:n}))}var $a=null,Ga=null;function j2(e){J1(e,0)}function ri(e){var n=za(e);if(Fm(n))return e}function vp(e,n){if(e==="change")return n}var yp=!1;if(Kn){var Xc;if(Kn){var Pc="oninput"in document;if(!Pc){var bp=document.createElement("div");bp.setAttribute("oninput","return;"),Pc=typeof bp.oninput=="function"}Xc=Pc}else Xc=!1;yp=Xc&&(!document.documentMode||9<document.documentMode)}function xp(){$a&&($a.detachEvent("onpropertychange",Sp),Ga=$a=null)}function Sp(e){if(e.propertyName==="value"&&ri(Ga)){var n=[];gp(n,Ga,e,Vc(e)),lp(j2,n)}}function _2(e,n,l){e==="focusin"?(xp(),$a=n,Ga=l,$a.attachEvent("onpropertychange",Sp)):e==="focusout"&&xp()}function O2(e){if(e==="selectionchange"||e==="keyup"||e==="keydown")return ri(Ga)}function N2(e,n){if(e==="click")return ri(n)}function A2(e,n){if(e==="input"||e==="change")return ri(n)}function D2(e,n){return e===n&&(e!==0||1/e===1/n)||e!==e&&n!==n}var Yt=typeof Object.is=="function"?Object.is:D2;function Za(e,n){if(Yt(e,n))return!0;if(typeof e!="object"||e===null||typeof n!="object"||n===null)return!1;var l=Object.keys(e),i=Object.keys(n);if(l.length!==i.length)return!1;for(i=0;i<l.length;i++){var u=l[i];if(!wt.call(n,u)||!Yt(e[u],n[u]))return!1}return!0}function Cp(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function wp(e,n){var l=Cp(e);e=0;for(var i;l;){if(l.nodeType===3){if(i=e+l.textContent.length,e<=n&&i>=n)return{node:l,offset:n-e};e=i}e:{for(;l;){if(l.nextSibling){l=l.nextSibling;break e}l=l.parentNode}l=void 0}l=Cp(l)}}function Tp(e,n){return e&&n?e===n?!0:e&&e.nodeType===3?!1:n&&n.nodeType===3?Tp(e,n.parentNode):"contains"in e?e.contains(n):e.compareDocumentPosition?!!(e.compareDocumentPosition(n)&16):!1:!1}function Ep(e){e=e!=null&&e.ownerDocument!=null&&e.ownerDocument.defaultView!=null?e.ownerDocument.defaultView:window;for(var n=Wr(e.document);n instanceof e.HTMLIFrameElement;){try{var l=typeof n.contentWindow.location.href=="string"}catch{l=!1}if(l)e=n.contentWindow;else break;n=Wr(e.document)}return n}function Qc(e){var n=e&&e.nodeName&&e.nodeName.toLowerCase();return n&&(n==="input"&&(e.type==="text"||e.type==="search"||e.type==="tel"||e.type==="url"||e.type==="password")||n==="textarea"||e.contentEditable==="true")}var H2=Kn&&"documentMode"in document&&11>=document.documentMode,Ll=null,Ic=null,qa=null,Kc=!1;function Mp(e,n,l){var i=l.window===l?l.document:l.nodeType===9?l:l.ownerDocument;Kc||Ll==null||Ll!==Wr(i)||(i=Ll,"selectionStart"in i&&Qc(i)?i={start:i.selectionStart,end:i.selectionEnd}:(i=(i.ownerDocument&&i.ownerDocument.defaultView||window).getSelection(),i={anchorNode:i.anchorNode,anchorOffset:i.anchorOffset,focusNode:i.focusNode,focusOffset:i.focusOffset}),qa&&Za(qa,i)||(qa=i,i=Qi(Ic,"onSelect"),0<i.length&&(n=new li("onSelect","select",null,n,l),e.push({event:n,listeners:i}),n.target=Ll)))}function ll(e,n){var l={};return l[e.toLowerCase()]=n.toLowerCase(),l["Webkit"+e]="webkit"+n,l["Moz"+e]="moz"+n,l}var Vl={animationend:ll("Animation","AnimationEnd"),animationiteration:ll("Animation","AnimationIteration"),animationstart:ll("Animation","AnimationStart"),transitionrun:ll("Transition","TransitionRun"),transitionstart:ll("Transition","TransitionStart"),transitioncancel:ll("Transition","TransitionCancel"),transitionend:ll("Transition","TransitionEnd")},Fc={},Rp={};Kn&&(Rp=document.createElement("div").style,"AnimationEvent"in window||(delete Vl.animationend.animation,delete Vl.animationiteration.animation,delete Vl.animationstart.animation),"TransitionEvent"in window||delete Vl.transitionend.transition);function al(e){if(Fc[e])return Fc[e];if(!Vl[e])return e;var n=Vl[e],l;for(l in n)if(n.hasOwnProperty(l)&&l in Rp)return Fc[e]=n[l];return e}var jp=al("animationend"),_p=al("animationiteration"),Op=al("animationstart"),z2=al("transitionrun"),L2=al("transitionstart"),V2=al("transitioncancel"),Np=al("transitionend"),Ap=new Map,Jc="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(" ");Jc.push("scrollEnd");function yn(e,n){Ap.set(e,n),nl(n,[e])}var ii=typeof reportError=="function"?reportError:function(e){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var n=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof e=="object"&&e!==null&&typeof e.message=="string"?String(e.message):String(e),error:e});if(!window.dispatchEvent(n))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",e);return}console.error(e)},ln=[],kl=0,Wc=0;function si(){for(var e=kl,n=Wc=kl=0;n<e;){var l=ln[n];ln[n++]=null;var i=ln[n];ln[n++]=null;var u=ln[n];ln[n++]=null;var m=ln[n];if(ln[n++]=null,i!==null&&u!==null){var b=i.pending;b===null?u.next=u:(u.next=b.next,b.next=u),i.pending=u}m!==0&&Dp(l,u,m)}}function ci(e,n,l,i){ln[kl++]=e,ln[kl++]=n,ln[kl++]=l,ln[kl++]=i,Wc|=i,e.lanes|=i,e=e.alternate,e!==null&&(e.lanes|=i)}function eu(e,n,l,i){return ci(e,n,l,i),ui(e)}function rl(e,n){return ci(e,null,null,n),ui(e)}function Dp(e,n,l){e.lanes|=l;var i=e.alternate;i!==null&&(i.lanes|=l);for(var u=!1,m=e.return;m!==null;)m.childLanes|=l,i=m.alternate,i!==null&&(i.childLanes|=l),m.tag===22&&(e=m.stateNode,e===null||e._visibility&1||(u=!0)),e=m,m=m.return;return e.tag===3?(m=e.stateNode,u&&n!==null&&(u=31-qt(l),e=m.hiddenUpdates,i=e[u],i===null?e[u]=[n]:i.push(n),n.lane=l|536870912),m):null}function ui(e){if(50<dr)throw dr=0,uf=null,Error(r(185));for(var n=e.return;n!==null;)e=n,n=e.return;return e.tag===3?e.stateNode:null}var Bl={};function k2(e,n,l,i){this.tag=e,this.key=l,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.refCleanup=this.ref=null,this.pendingProps=n,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=i,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function Xt(e,n,l,i){return new k2(e,n,l,i)}function tu(e){return e=e.prototype,!(!e||!e.isReactComponent)}function Fn(e,n){var l=e.alternate;return l===null?(l=Xt(e.tag,n,e.key,e.mode),l.elementType=e.elementType,l.type=e.type,l.stateNode=e.stateNode,l.alternate=e,e.alternate=l):(l.pendingProps=n,l.type=e.type,l.flags=0,l.subtreeFlags=0,l.deletions=null),l.flags=e.flags&65011712,l.childLanes=e.childLanes,l.lanes=e.lanes,l.child=e.child,l.memoizedProps=e.memoizedProps,l.memoizedState=e.memoizedState,l.updateQueue=e.updateQueue,n=e.dependencies,l.dependencies=n===null?null:{lanes:n.lanes,firstContext:n.firstContext},l.sibling=e.sibling,l.index=e.index,l.ref=e.ref,l.refCleanup=e.refCleanup,l}function Hp(e,n){e.flags&=65011714;var l=e.alternate;return l===null?(e.childLanes=0,e.lanes=n,e.child=null,e.subtreeFlags=0,e.memoizedProps=null,e.memoizedState=null,e.updateQueue=null,e.dependencies=null,e.stateNode=null):(e.childLanes=l.childLanes,e.lanes=l.lanes,e.child=l.child,e.subtreeFlags=0,e.deletions=null,e.memoizedProps=l.memoizedProps,e.memoizedState=l.memoizedState,e.updateQueue=l.updateQueue,e.type=l.type,n=l.dependencies,e.dependencies=n===null?null:{lanes:n.lanes,firstContext:n.firstContext}),e}function fi(e,n,l,i,u,m){var b=0;if(i=e,typeof e=="function")tu(e)&&(b=1);else if(typeof e=="string")b=Zx(e,l,ye.current)?26:e==="html"||e==="head"||e==="body"?27:5;else e:switch(e){case J:return e=Xt(31,l,n,u),e.elementType=J,e.lanes=m,e;case w:return il(l.children,u,m,n);case M:b=8,u|=24;break;case R:return e=Xt(12,l,n,u|2),e.elementType=R,e.lanes=m,e;case H:return e=Xt(13,l,n,u),e.elementType=H,e.lanes=m,e;case L:return e=Xt(19,l,n,u),e.elementType=L,e.lanes=m,e;default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case N:b=10;break e;case _:b=9;break e;case A:b=11;break e;case Z:b=14;break e;case I:b=16,i=null;break e}b=29,l=Error(r(130,e===null?"null":typeof e,"")),i=null}return n=Xt(b,l,n,u),n.elementType=e,n.type=i,n.lanes=m,n}function il(e,n,l,i){return e=Xt(7,e,i,n),e.lanes=l,e}function nu(e,n,l){return e=Xt(6,e,null,n),e.lanes=l,e}function zp(e){var n=Xt(18,null,null,0);return n.stateNode=e,n}function ou(e,n,l){return n=Xt(4,e.children!==null?e.children:[],e.key,n),n.lanes=l,n.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},n}var Lp=new WeakMap;function an(e,n){if(typeof e=="object"&&e!==null){var l=Lp.get(e);return l!==void 0?l:(n={value:e,source:n,stack:Nn(n)},Lp.set(e,n),n)}return{value:e,source:n,stack:Nn(n)}}var Ul=[],$l=0,di=null,Ya=0,rn=[],sn=0,Eo=null,An=1,Dn="";function Jn(e,n){Ul[$l++]=Ya,Ul[$l++]=di,di=e,Ya=n}function Vp(e,n,l){rn[sn++]=An,rn[sn++]=Dn,rn[sn++]=Eo,Eo=e;var i=An;e=Dn;var u=32-qt(i)-1;i&=~(1<<u),l+=1;var m=32-qt(n)+u;if(30<m){var b=u-u%5;m=(i&(1<<b)-1).toString(32),i>>=b,u-=b,An=1<<32-qt(n)+u|l<<u|i,Dn=m+e}else An=1<<m|l<<u|i,Dn=e}function lu(e){e.return!==null&&(Jn(e,1),Vp(e,1,0))}function au(e){for(;e===di;)di=Ul[--$l],Ul[$l]=null,Ya=Ul[--$l],Ul[$l]=null;for(;e===Eo;)Eo=rn[--sn],rn[sn]=null,Dn=rn[--sn],rn[sn]=null,An=rn[--sn],rn[sn]=null}function kp(e,n){rn[sn++]=An,rn[sn++]=Dn,rn[sn++]=Eo,An=n.id,Dn=n.overflow,Eo=e}var yt=null,Qe=null,je=!1,Mo=null,cn=!1,ru=Error(r(519));function Ro(e){var n=Error(r(418,1<arguments.length&&arguments[1]!==void 0&&arguments[1]?"text":"HTML",""));throw Xa(an(n,e)),ru}function Bp(e){var n=e.stateNode,l=e.type,i=e.memoizedProps;switch(n[vt]=e,n[Ot]=i,l){case"dialog":Te("cancel",n),Te("close",n);break;case"iframe":case"object":case"embed":Te("load",n);break;case"video":case"audio":for(l=0;l<pr.length;l++)Te(pr[l],n);break;case"source":Te("error",n);break;case"img":case"image":case"link":Te("error",n),Te("load",n);break;case"details":Te("toggle",n);break;case"input":Te("invalid",n),Jm(n,i.value,i.defaultValue,i.checked,i.defaultChecked,i.type,i.name,!0);break;case"select":Te("invalid",n);break;case"textarea":Te("invalid",n),ep(n,i.value,i.defaultValue,i.children)}l=i.children,typeof l!="string"&&typeof l!="number"&&typeof l!="bigint"||n.textContent===""+l||i.suppressHydrationWarning===!0||ng(n.textContent,l)?(i.popover!=null&&(Te("beforetoggle",n),Te("toggle",n)),i.onScroll!=null&&Te("scroll",n),i.onScrollEnd!=null&&Te("scrollend",n),i.onClick!=null&&(n.onclick=In),n=!0):n=!1,n||Ro(e,!0)}function Up(e){for(yt=e.return;yt;)switch(yt.tag){case 5:case 31:case 13:cn=!1;return;case 27:case 3:cn=!0;return;default:yt=yt.return}}function Gl(e){if(e!==yt)return!1;if(!je)return Up(e),je=!0,!1;var n=e.tag,l;if((l=n!==3&&n!==27)&&((l=n===5)&&(l=e.type,l=!(l!=="form"&&l!=="button")||Ef(e.type,e.memoizedProps)),l=!l),l&&Qe&&Ro(e),Up(e),n===13){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(r(317));Qe=fg(e)}else if(n===31){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(r(317));Qe=fg(e)}else n===27?(n=Qe,$o(e.type)?(e=Of,Of=null,Qe=e):Qe=n):Qe=yt?fn(e.stateNode.nextSibling):null;return!0}function sl(){Qe=yt=null,je=!1}function iu(){var e=Mo;return e!==null&&(zt===null?zt=e:zt.push.apply(zt,e),Mo=null),e}function Xa(e){Mo===null?Mo=[e]:Mo.push(e)}var su=de(null),cl=null,Wn=null;function jo(e,n,l){ae(su,n._currentValue),n._currentValue=l}function eo(e){e._currentValue=su.current,le(su)}function cu(e,n,l){for(;e!==null;){var i=e.alternate;if((e.childLanes&n)!==n?(e.childLanes|=n,i!==null&&(i.childLanes|=n)):i!==null&&(i.childLanes&n)!==n&&(i.childLanes|=n),e===l)break;e=e.return}}function uu(e,n,l,i){var u=e.child;for(u!==null&&(u.return=e);u!==null;){var m=u.dependencies;if(m!==null){var b=u.child;m=m.firstContext;e:for(;m!==null;){var E=m;m=u;for(var j=0;j<n.length;j++)if(E.context===n[j]){m.lanes|=l,E=m.alternate,E!==null&&(E.lanes|=l),cu(m.return,l,e),i||(b=null);break e}m=E.next}}else if(u.tag===18){if(b=u.return,b===null)throw Error(r(341));b.lanes|=l,m=b.alternate,m!==null&&(m.lanes|=l),cu(b,l,e),b=null}else b=u.child;if(b!==null)b.return=u;else for(b=u;b!==null;){if(b===e){b=null;break}if(u=b.sibling,u!==null){u.return=b.return,b=u;break}b=b.return}u=b}}function Zl(e,n,l,i){e=null;for(var u=n,m=!1;u!==null;){if(!m){if((u.flags&524288)!==0)m=!0;else if((u.flags&262144)!==0)break}if(u.tag===10){var b=u.alternate;if(b===null)throw Error(r(387));if(b=b.memoizedProps,b!==null){var E=u.type;Yt(u.pendingProps.value,b.value)||(e!==null?e.push(E):e=[E])}}else if(u===Pe.current){if(b=u.alternate,b===null)throw Error(r(387));b.memoizedState.memoizedState!==u.memoizedState.memoizedState&&(e!==null?e.push(br):e=[br])}u=u.return}e!==null&&uu(n,e,l,i),n.flags|=262144}function mi(e){for(e=e.firstContext;e!==null;){if(!Yt(e.context._currentValue,e.memoizedValue))return!0;e=e.next}return!1}function ul(e){cl=e,Wn=null,e=e.dependencies,e!==null&&(e.firstContext=null)}function bt(e){return $p(cl,e)}function pi(e,n){return cl===null&&ul(e),$p(e,n)}function $p(e,n){var l=n._currentValue;if(n={context:n,memoizedValue:l,next:null},Wn===null){if(e===null)throw Error(r(308));Wn=n,e.dependencies={lanes:0,firstContext:n},e.flags|=524288}else Wn=Wn.next=n;return l}var B2=typeof AbortController<"u"?AbortController:function(){var e=[],n=this.signal={aborted:!1,addEventListener:function(l,i){e.push(i)}};this.abort=function(){n.aborted=!0,e.forEach(function(l){return l()})}},U2=t.unstable_scheduleCallback,$2=t.unstable_NormalPriority,it={$$typeof:N,Consumer:null,Provider:null,_currentValue:null,_currentValue2:null,_threadCount:0};function fu(){return{controller:new B2,data:new Map,refCount:0}}function Pa(e){e.refCount--,e.refCount===0&&U2($2,function(){e.controller.abort()})}var Qa=null,du=0,ql=0,Yl=null;function G2(e,n){if(Qa===null){var l=Qa=[];du=0,ql=gf(),Yl={status:"pending",value:void 0,then:function(i){l.push(i)}}}return du++,n.then(Gp,Gp),n}function Gp(){if(--du===0&&Qa!==null){Yl!==null&&(Yl.status="fulfilled");var e=Qa;Qa=null,ql=0,Yl=null;for(var n=0;n<e.length;n++)(0,e[n])()}}function Z2(e,n){var l=[],i={status:"pending",value:null,reason:null,then:function(u){l.push(u)}};return e.then(function(){i.status="fulfilled",i.value=n;for(var u=0;u<l.length;u++)(0,l[u])(n)},function(u){for(i.status="rejected",i.reason=u,u=0;u<l.length;u++)(0,l[u])(void 0)}),i}var Zp=D.S;D.S=function(e,n){M1=jt(),typeof n=="object"&&n!==null&&typeof n.then=="function"&&G2(e,n),Zp!==null&&Zp(e,n)};var fl=de(null);function mu(){var e=fl.current;return e!==null?e:Ze.pooledCache}function hi(e,n){n===null?ae(fl,fl.current):ae(fl,n.pool)}function qp(){var e=mu();return e===null?null:{parent:it._currentValue,pool:e}}var Xl=Error(r(460)),pu=Error(r(474)),gi=Error(r(542)),vi={then:function(){}};function Yp(e){return e=e.status,e==="fulfilled"||e==="rejected"}function Xp(e,n,l){switch(l=e[l],l===void 0?e.push(n):l!==n&&(n.then(In,In),n=l),n.status){case"fulfilled":return n.value;case"rejected":throw e=n.reason,Qp(e),e;default:if(typeof n.status=="string")n.then(In,In);else{if(e=Ze,e!==null&&100<e.shellSuspendCounter)throw Error(r(482));e=n,e.status="pending",e.then(function(i){if(n.status==="pending"){var u=n;u.status="fulfilled",u.value=i}},function(i){if(n.status==="pending"){var u=n;u.status="rejected",u.reason=i}})}switch(n.status){case"fulfilled":return n.value;case"rejected":throw e=n.reason,Qp(e),e}throw ml=n,Xl}}function dl(e){try{var n=e._init;return n(e._payload)}catch(l){throw l!==null&&typeof l=="object"&&typeof l.then=="function"?(ml=l,Xl):l}}var ml=null;function Pp(){if(ml===null)throw Error(r(459));var e=ml;return ml=null,e}function Qp(e){if(e===Xl||e===gi)throw Error(r(483))}var Pl=null,Ia=0;function yi(e){var n=Ia;return Ia+=1,Pl===null&&(Pl=[]),Xp(Pl,e,n)}function Ka(e,n){n=n.props.ref,e.ref=n!==void 0?n:null}function bi(e,n){throw n.$$typeof===x?Error(r(525)):(e=Object.prototype.toString.call(n),Error(r(31,e==="[object Object]"?"object with keys {"+Object.keys(n).join(", ")+"}":e)))}function Ip(e){function n(z,O){if(e){var k=z.deletions;k===null?(z.deletions=[O],z.flags|=16):k.push(O)}}function l(z,O){if(!e)return null;for(;O!==null;)n(z,O),O=O.sibling;return null}function i(z){for(var O=new Map;z!==null;)z.key!==null?O.set(z.key,z):O.set(z.index,z),z=z.sibling;return O}function u(z,O){return z=Fn(z,O),z.index=0,z.sibling=null,z}function m(z,O,k){return z.index=k,e?(k=z.alternate,k!==null?(k=k.index,k<O?(z.flags|=67108866,O):k):(z.flags|=67108866,O)):(z.flags|=1048576,O)}function b(z){return e&&z.alternate===null&&(z.flags|=67108866),z}function E(z,O,k,X){return O===null||O.tag!==6?(O=nu(k,z.mode,X),O.return=z,O):(O=u(O,k),O.return=z,O)}function j(z,O,k,X){var ce=k.type;return ce===w?Y(z,O,k.props.children,X,k.key):O!==null&&(O.elementType===ce||typeof ce=="object"&&ce!==null&&ce.$$typeof===I&&dl(ce)===O.type)?(O=u(O,k.props),Ka(O,k),O.return=z,O):(O=fi(k.type,k.key,k.props,null,z.mode,X),Ka(O,k),O.return=z,O)}function $(z,O,k,X){return O===null||O.tag!==4||O.stateNode.containerInfo!==k.containerInfo||O.stateNode.implementation!==k.implementation?(O=ou(k,z.mode,X),O.return=z,O):(O=u(O,k.children||[]),O.return=z,O)}function Y(z,O,k,X,ce){return O===null||O.tag!==7?(O=il(k,z.mode,X,ce),O.return=z,O):(O=u(O,k),O.return=z,O)}function Q(z,O,k){if(typeof O=="string"&&O!==""||typeof O=="number"||typeof O=="bigint")return O=nu(""+O,z.mode,k),O.return=z,O;if(typeof O=="object"&&O!==null){switch(O.$$typeof){case C:return k=fi(O.type,O.key,O.props,null,z.mode,k),Ka(k,O),k.return=z,k;case T:return O=ou(O,z.mode,k),O.return=z,O;case I:return O=dl(O),Q(z,O,k)}if(ne(O)||oe(O))return O=il(O,z.mode,k,null),O.return=z,O;if(typeof O.then=="function")return Q(z,yi(O),k);if(O.$$typeof===N)return Q(z,pi(z,O),k);bi(z,O)}return null}function G(z,O,k,X){var ce=O!==null?O.key:null;if(typeof k=="string"&&k!==""||typeof k=="number"||typeof k=="bigint")return ce!==null?null:E(z,O,""+k,X);if(typeof k=="object"&&k!==null){switch(k.$$typeof){case C:return k.key===ce?j(z,O,k,X):null;case T:return k.key===ce?$(z,O,k,X):null;case I:return k=dl(k),G(z,O,k,X)}if(ne(k)||oe(k))return ce!==null?null:Y(z,O,k,X,null);if(typeof k.then=="function")return G(z,O,yi(k),X);if(k.$$typeof===N)return G(z,O,pi(z,k),X);bi(z,k)}return null}function q(z,O,k,X,ce){if(typeof X=="string"&&X!==""||typeof X=="number"||typeof X=="bigint")return z=z.get(k)||null,E(O,z,""+X,ce);if(typeof X=="object"&&X!==null){switch(X.$$typeof){case C:return z=z.get(X.key===null?k:X.key)||null,j(O,z,X,ce);case T:return z=z.get(X.key===null?k:X.key)||null,$(O,z,X,ce);case I:return X=dl(X),q(z,O,k,X,ce)}if(ne(X)||oe(X))return z=z.get(k)||null,Y(O,z,X,ce,null);if(typeof X.then=="function")return q(z,O,k,yi(X),ce);if(X.$$typeof===N)return q(z,O,k,pi(O,X),ce);bi(O,X)}return null}function re(z,O,k,X){for(var ce=null,De=null,se=O,xe=O=0,Re=null;se!==null&&xe<k.length;xe++){se.index>xe?(Re=se,se=null):Re=se.sibling;var He=G(z,se,k[xe],X);if(He===null){se===null&&(se=Re);break}e&&se&&He.alternate===null&&n(z,se),O=m(He,O,xe),De===null?ce=He:De.sibling=He,De=He,se=Re}if(xe===k.length)return l(z,se),je&&Jn(z,xe),ce;if(se===null){for(;xe<k.length;xe++)se=Q(z,k[xe],X),se!==null&&(O=m(se,O,xe),De===null?ce=se:De.sibling=se,De=se);return je&&Jn(z,xe),ce}for(se=i(se);xe<k.length;xe++)Re=q(se,z,xe,k[xe],X),Re!==null&&(e&&Re.alternate!==null&&se.delete(Re.key===null?xe:Re.key),O=m(Re,O,xe),De===null?ce=Re:De.sibling=Re,De=Re);return e&&se.forEach(function(Xo){return n(z,Xo)}),je&&Jn(z,xe),ce}function me(z,O,k,X){if(k==null)throw Error(r(151));for(var ce=null,De=null,se=O,xe=O=0,Re=null,He=k.next();se!==null&&!He.done;xe++,He=k.next()){se.index>xe?(Re=se,se=null):Re=se.sibling;var Xo=G(z,se,He.value,X);if(Xo===null){se===null&&(se=Re);break}e&&se&&Xo.alternate===null&&n(z,se),O=m(Xo,O,xe),De===null?ce=Xo:De.sibling=Xo,De=Xo,se=Re}if(He.done)return l(z,se),je&&Jn(z,xe),ce;if(se===null){for(;!He.done;xe++,He=k.next())He=Q(z,He.value,X),He!==null&&(O=m(He,O,xe),De===null?ce=He:De.sibling=He,De=He);return je&&Jn(z,xe),ce}for(se=i(se);!He.done;xe++,He=k.next())He=q(se,z,xe,He.value,X),He!==null&&(e&&He.alternate!==null&&se.delete(He.key===null?xe:He.key),O=m(He,O,xe),De===null?ce=He:De.sibling=He,De=He);return e&&se.forEach(function(eS){return n(z,eS)}),je&&Jn(z,xe),ce}function Ge(z,O,k,X){if(typeof k=="object"&&k!==null&&k.type===w&&k.key===null&&(k=k.props.children),typeof k=="object"&&k!==null){switch(k.$$typeof){case C:e:{for(var ce=k.key;O!==null;){if(O.key===ce){if(ce=k.type,ce===w){if(O.tag===7){l(z,O.sibling),X=u(O,k.props.children),X.return=z,z=X;break e}}else if(O.elementType===ce||typeof ce=="object"&&ce!==null&&ce.$$typeof===I&&dl(ce)===O.type){l(z,O.sibling),X=u(O,k.props),Ka(X,k),X.return=z,z=X;break e}l(z,O);break}else n(z,O);O=O.sibling}k.type===w?(X=il(k.props.children,z.mode,X,k.key),X.return=z,z=X):(X=fi(k.type,k.key,k.props,null,z.mode,X),Ka(X,k),X.return=z,z=X)}return b(z);case T:e:{for(ce=k.key;O!==null;){if(O.key===ce)if(O.tag===4&&O.stateNode.containerInfo===k.containerInfo&&O.stateNode.implementation===k.implementation){l(z,O.sibling),X=u(O,k.children||[]),X.return=z,z=X;break e}else{l(z,O);break}else n(z,O);O=O.sibling}X=ou(k,z.mode,X),X.return=z,z=X}return b(z);case I:return k=dl(k),Ge(z,O,k,X)}if(ne(k))return re(z,O,k,X);if(oe(k)){if(ce=oe(k),typeof ce!="function")throw Error(r(150));return k=ce.call(k),me(z,O,k,X)}if(typeof k.then=="function")return Ge(z,O,yi(k),X);if(k.$$typeof===N)return Ge(z,O,pi(z,k),X);bi(z,k)}return typeof k=="string"&&k!==""||typeof k=="number"||typeof k=="bigint"?(k=""+k,O!==null&&O.tag===6?(l(z,O.sibling),X=u(O,k),X.return=z,z=X):(l(z,O),X=nu(k,z.mode,X),X.return=z,z=X),b(z)):l(z,O)}return function(z,O,k,X){try{Ia=0;var ce=Ge(z,O,k,X);return Pl=null,ce}catch(se){if(se===Xl||se===gi)throw se;var De=Xt(29,se,null,z.mode);return De.lanes=X,De.return=z,De}}}var pl=Ip(!0),Kp=Ip(!1),_o=!1;function hu(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function gu(e,n){e=e.updateQueue,n.updateQueue===e&&(n.updateQueue={baseState:e.baseState,firstBaseUpdate:e.firstBaseUpdate,lastBaseUpdate:e.lastBaseUpdate,shared:e.shared,callbacks:null})}function Oo(e){return{lane:e,tag:0,payload:null,callback:null,next:null}}function No(e,n,l){var i=e.updateQueue;if(i===null)return null;if(i=i.shared,(Le&2)!==0){var u=i.pending;return u===null?n.next=n:(n.next=u.next,u.next=n),i.pending=n,n=ui(e),Dp(e,null,l),n}return ci(e,i,n,l),ui(e)}function Fa(e,n,l){if(n=n.updateQueue,n!==null&&(n=n.shared,(l&4194048)!==0)){var i=n.lanes;i&=e.pendingLanes,l|=i,n.lanes=l,$m(e,l)}}function vu(e,n){var l=e.updateQueue,i=e.alternate;if(i!==null&&(i=i.updateQueue,l===i)){var u=null,m=null;if(l=l.firstBaseUpdate,l!==null){do{var b={lane:l.lane,tag:l.tag,payload:l.payload,callback:null,next:null};m===null?u=m=b:m=m.next=b,l=l.next}while(l!==null);m===null?u=m=n:m=m.next=n}else u=m=n;l={baseState:i.baseState,firstBaseUpdate:u,lastBaseUpdate:m,shared:i.shared,callbacks:i.callbacks},e.updateQueue=l;return}e=l.lastBaseUpdate,e===null?l.firstBaseUpdate=n:e.next=n,l.lastBaseUpdate=n}var yu=!1;function Ja(){if(yu){var e=Yl;if(e!==null)throw e}}function Wa(e,n,l,i){yu=!1;var u=e.updateQueue;_o=!1;var m=u.firstBaseUpdate,b=u.lastBaseUpdate,E=u.shared.pending;if(E!==null){u.shared.pending=null;var j=E,$=j.next;j.next=null,b===null?m=$:b.next=$,b=j;var Y=e.alternate;Y!==null&&(Y=Y.updateQueue,E=Y.lastBaseUpdate,E!==b&&(E===null?Y.firstBaseUpdate=$:E.next=$,Y.lastBaseUpdate=j))}if(m!==null){var Q=u.baseState;b=0,Y=$=j=null,E=m;do{var G=E.lane&-536870913,q=G!==E.lane;if(q?(Me&G)===G:(i&G)===G){G!==0&&G===ql&&(yu=!0),Y!==null&&(Y=Y.next={lane:0,tag:E.tag,payload:E.payload,callback:null,next:null});e:{var re=e,me=E;G=n;var Ge=l;switch(me.tag){case 1:if(re=me.payload,typeof re=="function"){Q=re.call(Ge,Q,G);break e}Q=re;break e;case 3:re.flags=re.flags&-65537|128;case 0:if(re=me.payload,G=typeof re=="function"?re.call(Ge,Q,G):re,G==null)break e;Q=y({},Q,G);break e;case 2:_o=!0}}G=E.callback,G!==null&&(e.flags|=64,q&&(e.flags|=8192),q=u.callbacks,q===null?u.callbacks=[G]:q.push(G))}else q={lane:G,tag:E.tag,payload:E.payload,callback:E.callback,next:null},Y===null?($=Y=q,j=Q):Y=Y.next=q,b|=G;if(E=E.next,E===null){if(E=u.shared.pending,E===null)break;q=E,E=q.next,q.next=null,u.lastBaseUpdate=q,u.shared.pending=null}}while(!0);Y===null&&(j=Q),u.baseState=j,u.firstBaseUpdate=$,u.lastBaseUpdate=Y,m===null&&(u.shared.lanes=0),Lo|=b,e.lanes=b,e.memoizedState=Q}}function Fp(e,n){if(typeof e!="function")throw Error(r(191,e));e.call(n)}function Jp(e,n){var l=e.callbacks;if(l!==null)for(e.callbacks=null,e=0;e<l.length;e++)Fp(l[e],n)}var Ql=de(null),xi=de(0);function Wp(e,n){e=co,ae(xi,e),ae(Ql,n),co=e|n.baseLanes}function bu(){ae(xi,co),ae(Ql,Ql.current)}function xu(){co=xi.current,le(Ql),le(xi)}var Pt=de(null),un=null;function Ao(e){var n=e.alternate;ae(lt,lt.current&1),ae(Pt,e),un===null&&(n===null||Ql.current!==null||n.memoizedState!==null)&&(un=e)}function Su(e){ae(lt,lt.current),ae(Pt,e),un===null&&(un=e)}function eh(e){e.tag===22?(ae(lt,lt.current),ae(Pt,e),un===null&&(un=e)):Do()}function Do(){ae(lt,lt.current),ae(Pt,Pt.current)}function Qt(e){le(Pt),un===e&&(un=null),le(lt)}var lt=de(0);function Si(e){for(var n=e;n!==null;){if(n.tag===13){var l=n.memoizedState;if(l!==null&&(l=l.dehydrated,l===null||jf(l)||_f(l)))return n}else if(n.tag===19&&(n.memoizedProps.revealOrder==="forwards"||n.memoizedProps.revealOrder==="backwards"||n.memoizedProps.revealOrder==="unstable_legacy-backwards"||n.memoizedProps.revealOrder==="together")){if((n.flags&128)!==0)return n}else if(n.child!==null){n.child.return=n,n=n.child;continue}if(n===e)break;for(;n.sibling===null;){if(n.return===null||n.return===e)return null;n=n.return}n.sibling.return=n.return,n=n.sibling}return null}var to=0,be=null,Ue=null,st=null,Ci=!1,Il=!1,hl=!1,wi=0,er=0,Kl=null,q2=0;function tt(){throw Error(r(321))}function Cu(e,n){if(n===null)return!1;for(var l=0;l<n.length&&l<e.length;l++)if(!Yt(e[l],n[l]))return!1;return!0}function wu(e,n,l,i,u,m){return to=m,be=n,n.memoizedState=null,n.updateQueue=null,n.lanes=0,D.H=e===null||e.memoizedState===null?Vh:ku,hl=!1,m=l(i,u),hl=!1,Il&&(m=nh(n,l,i,u)),th(e),m}function th(e){D.H=or;var n=Ue!==null&&Ue.next!==null;if(to=0,st=Ue=be=null,Ci=!1,er=0,Kl=null,n)throw Error(r(300));e===null||ct||(e=e.dependencies,e!==null&&mi(e)&&(ct=!0))}function nh(e,n,l,i){be=e;var u=0;do{if(Il&&(Kl=null),er=0,Il=!1,25<=u)throw Error(r(301));if(u+=1,st=Ue=null,e.updateQueue!=null){var m=e.updateQueue;m.lastEffect=null,m.events=null,m.stores=null,m.memoCache!=null&&(m.memoCache.index=0)}D.H=kh,m=n(l,i)}while(Il);return m}function Y2(){var e=D.H,n=e.useState()[0];return n=typeof n.then=="function"?tr(n):n,e=e.useState()[0],(Ue!==null?Ue.memoizedState:null)!==e&&(be.flags|=1024),n}function Tu(){var e=wi!==0;return wi=0,e}function Eu(e,n,l){n.updateQueue=e.updateQueue,n.flags&=-2053,e.lanes&=~l}function Mu(e){if(Ci){for(e=e.memoizedState;e!==null;){var n=e.queue;n!==null&&(n.pending=null),e=e.next}Ci=!1}to=0,st=Ue=be=null,Il=!1,er=wi=0,Kl=null}function _t(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return st===null?be.memoizedState=st=e:st=st.next=e,st}function at(){if(Ue===null){var e=be.alternate;e=e!==null?e.memoizedState:null}else e=Ue.next;var n=st===null?be.memoizedState:st.next;if(n!==null)st=n,Ue=e;else{if(e===null)throw be.alternate===null?Error(r(467)):Error(r(310));Ue=e,e={memoizedState:Ue.memoizedState,baseState:Ue.baseState,baseQueue:Ue.baseQueue,queue:Ue.queue,next:null},st===null?be.memoizedState=st=e:st=st.next=e}return st}function Ti(){return{lastEffect:null,events:null,stores:null,memoCache:null}}function tr(e){var n=er;return er+=1,Kl===null&&(Kl=[]),e=Xp(Kl,e,n),n=be,(st===null?n.memoizedState:st.next)===null&&(n=n.alternate,D.H=n===null||n.memoizedState===null?Vh:ku),e}function Ei(e){if(e!==null&&typeof e=="object"){if(typeof e.then=="function")return tr(e);if(e.$$typeof===N)return bt(e)}throw Error(r(438,String(e)))}function Ru(e){var n=null,l=be.updateQueue;if(l!==null&&(n=l.memoCache),n==null){var i=be.alternate;i!==null&&(i=i.updateQueue,i!==null&&(i=i.memoCache,i!=null&&(n={data:i.data.map(function(u){return u.slice()}),index:0})))}if(n==null&&(n={data:[],index:0}),l===null&&(l=Ti(),be.updateQueue=l),l.memoCache=n,l=n.data[n.index],l===void 0)for(l=n.data[n.index]=Array(e),i=0;i<e;i++)l[i]=P;return n.index++,l}function no(e,n){return typeof n=="function"?n(e):n}function Mi(e){var n=at();return ju(n,Ue,e)}function ju(e,n,l){var i=e.queue;if(i===null)throw Error(r(311));i.lastRenderedReducer=l;var u=e.baseQueue,m=i.pending;if(m!==null){if(u!==null){var b=u.next;u.next=m.next,m.next=b}n.baseQueue=u=m,i.pending=null}if(m=e.baseState,u===null)e.memoizedState=m;else{n=u.next;var E=b=null,j=null,$=n,Y=!1;do{var Q=$.lane&-536870913;if(Q!==$.lane?(Me&Q)===Q:(to&Q)===Q){var G=$.revertLane;if(G===0)j!==null&&(j=j.next={lane:0,revertLane:0,gesture:null,action:$.action,hasEagerState:$.hasEagerState,eagerState:$.eagerState,next:null}),Q===ql&&(Y=!0);else if((to&G)===G){$=$.next,G===ql&&(Y=!0);continue}else Q={lane:0,revertLane:$.revertLane,gesture:null,action:$.action,hasEagerState:$.hasEagerState,eagerState:$.eagerState,next:null},j===null?(E=j=Q,b=m):j=j.next=Q,be.lanes|=G,Lo|=G;Q=$.action,hl&&l(m,Q),m=$.hasEagerState?$.eagerState:l(m,Q)}else G={lane:Q,revertLane:$.revertLane,gesture:$.gesture,action:$.action,hasEagerState:$.hasEagerState,eagerState:$.eagerState,next:null},j===null?(E=j=G,b=m):j=j.next=G,be.lanes|=Q,Lo|=Q;$=$.next}while($!==null&&$!==n);if(j===null?b=m:j.next=E,!Yt(m,e.memoizedState)&&(ct=!0,Y&&(l=Yl,l!==null)))throw l;e.memoizedState=m,e.baseState=b,e.baseQueue=j,i.lastRenderedState=m}return u===null&&(i.lanes=0),[e.memoizedState,i.dispatch]}function _u(e){var n=at(),l=n.queue;if(l===null)throw Error(r(311));l.lastRenderedReducer=e;var i=l.dispatch,u=l.pending,m=n.memoizedState;if(u!==null){l.pending=null;var b=u=u.next;do m=e(m,b.action),b=b.next;while(b!==u);Yt(m,n.memoizedState)||(ct=!0),n.memoizedState=m,n.baseQueue===null&&(n.baseState=m),l.lastRenderedState=m}return[m,i]}function oh(e,n,l){var i=be,u=at(),m=je;if(m){if(l===void 0)throw Error(r(407));l=l()}else l=n();var b=!Yt((Ue||u).memoizedState,l);if(b&&(u.memoizedState=l,ct=!0),u=u.queue,Au(rh.bind(null,i,u,e),[e]),u.getSnapshot!==n||b||st!==null&&st.memoizedState.tag&1){if(i.flags|=2048,Fl(9,{destroy:void 0},ah.bind(null,i,u,l,n),null),Ze===null)throw Error(r(349));m||(to&127)!==0||lh(i,n,l)}return l}function lh(e,n,l){e.flags|=16384,e={getSnapshot:n,value:l},n=be.updateQueue,n===null?(n=Ti(),be.updateQueue=n,n.stores=[e]):(l=n.stores,l===null?n.stores=[e]:l.push(e))}function ah(e,n,l,i){n.value=l,n.getSnapshot=i,ih(n)&&sh(e)}function rh(e,n,l){return l(function(){ih(n)&&sh(e)})}function ih(e){var n=e.getSnapshot;e=e.value;try{var l=n();return!Yt(e,l)}catch{return!0}}function sh(e){var n=rl(e,2);n!==null&&Lt(n,e,2)}function Ou(e){var n=_t();if(typeof e=="function"){var l=e;if(e=l(),hl){Co(!0);try{l()}finally{Co(!1)}}}return n.memoizedState=n.baseState=e,n.queue={pending:null,lanes:0,dispatch:null,lastRenderedReducer:no,lastRenderedState:e},n}function ch(e,n,l,i){return e.baseState=l,ju(e,Ue,typeof i=="function"?i:no)}function X2(e,n,l,i,u){if(_i(e))throw Error(r(485));if(e=n.action,e!==null){var m={payload:u,action:e,next:null,isTransition:!0,status:"pending",value:null,reason:null,listeners:[],then:function(b){m.listeners.push(b)}};D.T!==null?l(!0):m.isTransition=!1,i(m),l=n.pending,l===null?(m.next=n.pending=m,uh(n,m)):(m.next=l.next,n.pending=l.next=m)}}function uh(e,n){var l=n.action,i=n.payload,u=e.state;if(n.isTransition){var m=D.T,b={};D.T=b;try{var E=l(u,i),j=D.S;j!==null&&j(b,E),fh(e,n,E)}catch($){Nu(e,n,$)}finally{m!==null&&b.types!==null&&(m.types=b.types),D.T=m}}else try{m=l(u,i),fh(e,n,m)}catch($){Nu(e,n,$)}}function fh(e,n,l){l!==null&&typeof l=="object"&&typeof l.then=="function"?l.then(function(i){dh(e,n,i)},function(i){return Nu(e,n,i)}):dh(e,n,l)}function dh(e,n,l){n.status="fulfilled",n.value=l,mh(n),e.state=l,n=e.pending,n!==null&&(l=n.next,l===n?e.pending=null:(l=l.next,n.next=l,uh(e,l)))}function Nu(e,n,l){var i=e.pending;if(e.pending=null,i!==null){i=i.next;do n.status="rejected",n.reason=l,mh(n),n=n.next;while(n!==i)}e.action=null}function mh(e){e=e.listeners;for(var n=0;n<e.length;n++)(0,e[n])()}function ph(e,n){return n}function hh(e,n){if(je){var l=Ze.formState;if(l!==null){e:{var i=be;if(je){if(Qe){t:{for(var u=Qe,m=cn;u.nodeType!==8;){if(!m){u=null;break t}if(u=fn(u.nextSibling),u===null){u=null;break t}}m=u.data,u=m==="F!"||m==="F"?u:null}if(u){Qe=fn(u.nextSibling),i=u.data==="F!";break e}}Ro(i)}i=!1}i&&(n=l[0])}}return l=_t(),l.memoizedState=l.baseState=n,i={pending:null,lanes:0,dispatch:null,lastRenderedReducer:ph,lastRenderedState:n},l.queue=i,l=Hh.bind(null,be,i),i.dispatch=l,i=Ou(!1),m=Vu.bind(null,be,!1,i.queue),i=_t(),u={state:n,dispatch:null,action:e,pending:null},i.queue=u,l=X2.bind(null,be,u,m,l),u.dispatch=l,i.memoizedState=e,[n,l,!1]}function gh(e){var n=at();return vh(n,Ue,e)}function vh(e,n,l){if(n=ju(e,n,ph)[0],e=Mi(no)[0],typeof n=="object"&&n!==null&&typeof n.then=="function")try{var i=tr(n)}catch(b){throw b===Xl?gi:b}else i=n;n=at();var u=n.queue,m=u.dispatch;return l!==n.memoizedState&&(be.flags|=2048,Fl(9,{destroy:void 0},P2.bind(null,u,l),null)),[i,m,e]}function P2(e,n){e.action=n}function yh(e){var n=at(),l=Ue;if(l!==null)return vh(n,l,e);at(),n=n.memoizedState,l=at();var i=l.queue.dispatch;return l.memoizedState=e,[n,i,!1]}function Fl(e,n,l,i){return e={tag:e,create:l,deps:i,inst:n,next:null},n=be.updateQueue,n===null&&(n=Ti(),be.updateQueue=n),l=n.lastEffect,l===null?n.lastEffect=e.next=e:(i=l.next,l.next=e,e.next=i,n.lastEffect=e),e}function bh(){return at().memoizedState}function Ri(e,n,l,i){var u=_t();be.flags|=e,u.memoizedState=Fl(1|n,{destroy:void 0},l,i===void 0?null:i)}function ji(e,n,l,i){var u=at();i=i===void 0?null:i;var m=u.memoizedState.inst;Ue!==null&&i!==null&&Cu(i,Ue.memoizedState.deps)?u.memoizedState=Fl(n,m,l,i):(be.flags|=e,u.memoizedState=Fl(1|n,m,l,i))}function xh(e,n){Ri(8390656,8,e,n)}function Au(e,n){ji(2048,8,e,n)}function Q2(e){be.flags|=4;var n=be.updateQueue;if(n===null)n=Ti(),be.updateQueue=n,n.events=[e];else{var l=n.events;l===null?n.events=[e]:l.push(e)}}function Sh(e){var n=at().memoizedState;return Q2({ref:n,nextImpl:e}),function(){if((Le&2)!==0)throw Error(r(440));return n.impl.apply(void 0,arguments)}}function Ch(e,n){return ji(4,2,e,n)}function wh(e,n){return ji(4,4,e,n)}function Th(e,n){if(typeof n=="function"){e=e();var l=n(e);return function(){typeof l=="function"?l():n(null)}}if(n!=null)return e=e(),n.current=e,function(){n.current=null}}function Eh(e,n,l){l=l!=null?l.concat([e]):null,ji(4,4,Th.bind(null,n,e),l)}function Du(){}function Mh(e,n){var l=at();n=n===void 0?null:n;var i=l.memoizedState;return n!==null&&Cu(n,i[1])?i[0]:(l.memoizedState=[e,n],e)}function Rh(e,n){var l=at();n=n===void 0?null:n;var i=l.memoizedState;if(n!==null&&Cu(n,i[1]))return i[0];if(i=e(),hl){Co(!0);try{e()}finally{Co(!1)}}return l.memoizedState=[i,n],i}function Hu(e,n,l){return l===void 0||(to&1073741824)!==0&&(Me&261930)===0?e.memoizedState=n:(e.memoizedState=l,e=j1(),be.lanes|=e,Lo|=e,l)}function jh(e,n,l,i){return Yt(l,n)?l:Ql.current!==null?(e=Hu(e,l,i),Yt(e,n)||(ct=!0),e):(to&42)===0||(to&1073741824)!==0&&(Me&261930)===0?(ct=!0,e.memoizedState=l):(e=j1(),be.lanes|=e,Lo|=e,n)}function _h(e,n,l,i,u){var m=U.p;U.p=m!==0&&8>m?m:8;var b=D.T,E={};D.T=E,Vu(e,!1,n,l);try{var j=u(),$=D.S;if($!==null&&$(E,j),j!==null&&typeof j=="object"&&typeof j.then=="function"){var Y=Z2(j,i);nr(e,n,Y,Ft(e))}else nr(e,n,i,Ft(e))}catch(Q){nr(e,n,{then:function(){},status:"rejected",reason:Q},Ft())}finally{U.p=m,b!==null&&E.types!==null&&(b.types=E.types),D.T=b}}function I2(){}function zu(e,n,l,i){if(e.tag!==5)throw Error(r(476));var u=Oh(e).queue;_h(e,u,n,V,l===null?I2:function(){return Nh(e),l(i)})}function Oh(e){var n=e.memoizedState;if(n!==null)return n;n={memoizedState:V,baseState:V,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:no,lastRenderedState:V},next:null};var l={};return n.next={memoizedState:l,baseState:l,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:no,lastRenderedState:l},next:null},e.memoizedState=n,e=e.alternate,e!==null&&(e.memoizedState=n),n}function Nh(e){var n=Oh(e);n.next===null&&(n=e.alternate.memoizedState),nr(e,n.next.queue,{},Ft())}function Lu(){return bt(br)}function Ah(){return at().memoizedState}function Dh(){return at().memoizedState}function K2(e){for(var n=e.return;n!==null;){switch(n.tag){case 24:case 3:var l=Ft();e=Oo(l);var i=No(n,e,l);i!==null&&(Lt(i,n,l),Fa(i,n,l)),n={cache:fu()},e.payload=n;return}n=n.return}}function F2(e,n,l){var i=Ft();l={lane:i,revertLane:0,gesture:null,action:l,hasEagerState:!1,eagerState:null,next:null},_i(e)?zh(n,l):(l=eu(e,n,l,i),l!==null&&(Lt(l,e,i),Lh(l,n,i)))}function Hh(e,n,l){var i=Ft();nr(e,n,l,i)}function nr(e,n,l,i){var u={lane:i,revertLane:0,gesture:null,action:l,hasEagerState:!1,eagerState:null,next:null};if(_i(e))zh(n,u);else{var m=e.alternate;if(e.lanes===0&&(m===null||m.lanes===0)&&(m=n.lastRenderedReducer,m!==null))try{var b=n.lastRenderedState,E=m(b,l);if(u.hasEagerState=!0,u.eagerState=E,Yt(E,b))return ci(e,n,u,0),Ze===null&&si(),!1}catch{}if(l=eu(e,n,u,i),l!==null)return Lt(l,e,i),Lh(l,n,i),!0}return!1}function Vu(e,n,l,i){if(i={lane:2,revertLane:gf(),gesture:null,action:i,hasEagerState:!1,eagerState:null,next:null},_i(e)){if(n)throw Error(r(479))}else n=eu(e,l,i,2),n!==null&&Lt(n,e,2)}function _i(e){var n=e.alternate;return e===be||n!==null&&n===be}function zh(e,n){Il=Ci=!0;var l=e.pending;l===null?n.next=n:(n.next=l.next,l.next=n),e.pending=n}function Lh(e,n,l){if((l&4194048)!==0){var i=n.lanes;i&=e.pendingLanes,l|=i,n.lanes=l,$m(e,l)}}var or={readContext:bt,use:Ei,useCallback:tt,useContext:tt,useEffect:tt,useImperativeHandle:tt,useLayoutEffect:tt,useInsertionEffect:tt,useMemo:tt,useReducer:tt,useRef:tt,useState:tt,useDebugValue:tt,useDeferredValue:tt,useTransition:tt,useSyncExternalStore:tt,useId:tt,useHostTransitionStatus:tt,useFormState:tt,useActionState:tt,useOptimistic:tt,useMemoCache:tt,useCacheRefresh:tt};or.useEffectEvent=tt;var Vh={readContext:bt,use:Ei,useCallback:function(e,n){return _t().memoizedState=[e,n===void 0?null:n],e},useContext:bt,useEffect:xh,useImperativeHandle:function(e,n,l){l=l!=null?l.concat([e]):null,Ri(4194308,4,Th.bind(null,n,e),l)},useLayoutEffect:function(e,n){return Ri(4194308,4,e,n)},useInsertionEffect:function(e,n){Ri(4,2,e,n)},useMemo:function(e,n){var l=_t();n=n===void 0?null:n;var i=e();if(hl){Co(!0);try{e()}finally{Co(!1)}}return l.memoizedState=[i,n],i},useReducer:function(e,n,l){var i=_t();if(l!==void 0){var u=l(n);if(hl){Co(!0);try{l(n)}finally{Co(!1)}}}else u=n;return i.memoizedState=i.baseState=u,e={pending:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:u},i.queue=e,e=e.dispatch=F2.bind(null,be,e),[i.memoizedState,e]},useRef:function(e){var n=_t();return e={current:e},n.memoizedState=e},useState:function(e){e=Ou(e);var n=e.queue,l=Hh.bind(null,be,n);return n.dispatch=l,[e.memoizedState,l]},useDebugValue:Du,useDeferredValue:function(e,n){var l=_t();return Hu(l,e,n)},useTransition:function(){var e=Ou(!1);return e=_h.bind(null,be,e.queue,!0,!1),_t().memoizedState=e,[!1,e]},useSyncExternalStore:function(e,n,l){var i=be,u=_t();if(je){if(l===void 0)throw Error(r(407));l=l()}else{if(l=n(),Ze===null)throw Error(r(349));(Me&127)!==0||lh(i,n,l)}u.memoizedState=l;var m={value:l,getSnapshot:n};return u.queue=m,xh(rh.bind(null,i,m,e),[e]),i.flags|=2048,Fl(9,{destroy:void 0},ah.bind(null,i,m,l,n),null),l},useId:function(){var e=_t(),n=Ze.identifierPrefix;if(je){var l=Dn,i=An;l=(i&~(1<<32-qt(i)-1)).toString(32)+l,n="_"+n+"R_"+l,l=wi++,0<l&&(n+="H"+l.toString(32)),n+="_"}else l=q2++,n="_"+n+"r_"+l.toString(32)+"_";return e.memoizedState=n},useHostTransitionStatus:Lu,useFormState:hh,useActionState:hh,useOptimistic:function(e){var n=_t();n.memoizedState=n.baseState=e;var l={pending:null,lanes:0,dispatch:null,lastRenderedReducer:null,lastRenderedState:null};return n.queue=l,n=Vu.bind(null,be,!0,l),l.dispatch=n,[e,n]},useMemoCache:Ru,useCacheRefresh:function(){return _t().memoizedState=K2.bind(null,be)},useEffectEvent:function(e){var n=_t(),l={impl:e};return n.memoizedState=l,function(){if((Le&2)!==0)throw Error(r(440));return l.impl.apply(void 0,arguments)}}},ku={readContext:bt,use:Ei,useCallback:Mh,useContext:bt,useEffect:Au,useImperativeHandle:Eh,useInsertionEffect:Ch,useLayoutEffect:wh,useMemo:Rh,useReducer:Mi,useRef:bh,useState:function(){return Mi(no)},useDebugValue:Du,useDeferredValue:function(e,n){var l=at();return jh(l,Ue.memoizedState,e,n)},useTransition:function(){var e=Mi(no)[0],n=at().memoizedState;return[typeof e=="boolean"?e:tr(e),n]},useSyncExternalStore:oh,useId:Ah,useHostTransitionStatus:Lu,useFormState:gh,useActionState:gh,useOptimistic:function(e,n){var l=at();return ch(l,Ue,e,n)},useMemoCache:Ru,useCacheRefresh:Dh};ku.useEffectEvent=Sh;var kh={readContext:bt,use:Ei,useCallback:Mh,useContext:bt,useEffect:Au,useImperativeHandle:Eh,useInsertionEffect:Ch,useLayoutEffect:wh,useMemo:Rh,useReducer:_u,useRef:bh,useState:function(){return _u(no)},useDebugValue:Du,useDeferredValue:function(e,n){var l=at();return Ue===null?Hu(l,e,n):jh(l,Ue.memoizedState,e,n)},useTransition:function(){var e=_u(no)[0],n=at().memoizedState;return[typeof e=="boolean"?e:tr(e),n]},useSyncExternalStore:oh,useId:Ah,useHostTransitionStatus:Lu,useFormState:yh,useActionState:yh,useOptimistic:function(e,n){var l=at();return Ue!==null?ch(l,Ue,e,n):(l.baseState=e,[e,l.queue.dispatch])},useMemoCache:Ru,useCacheRefresh:Dh};kh.useEffectEvent=Sh;function Bu(e,n,l,i){n=e.memoizedState,l=l(i,n),l=l==null?n:y({},n,l),e.memoizedState=l,e.lanes===0&&(e.updateQueue.baseState=l)}var Uu={enqueueSetState:function(e,n,l){e=e._reactInternals;var i=Ft(),u=Oo(i);u.payload=n,l!=null&&(u.callback=l),n=No(e,u,i),n!==null&&(Lt(n,e,i),Fa(n,e,i))},enqueueReplaceState:function(e,n,l){e=e._reactInternals;var i=Ft(),u=Oo(i);u.tag=1,u.payload=n,l!=null&&(u.callback=l),n=No(e,u,i),n!==null&&(Lt(n,e,i),Fa(n,e,i))},enqueueForceUpdate:function(e,n){e=e._reactInternals;var l=Ft(),i=Oo(l);i.tag=2,n!=null&&(i.callback=n),n=No(e,i,l),n!==null&&(Lt(n,e,l),Fa(n,e,l))}};function Bh(e,n,l,i,u,m,b){return e=e.stateNode,typeof e.shouldComponentUpdate=="function"?e.shouldComponentUpdate(i,m,b):n.prototype&&n.prototype.isPureReactComponent?!Za(l,i)||!Za(u,m):!0}function Uh(e,n,l,i){e=n.state,typeof n.componentWillReceiveProps=="function"&&n.componentWillReceiveProps(l,i),typeof n.UNSAFE_componentWillReceiveProps=="function"&&n.UNSAFE_componentWillReceiveProps(l,i),n.state!==e&&Uu.enqueueReplaceState(n,n.state,null)}function gl(e,n){var l=n;if("ref"in n){l={};for(var i in n)i!=="ref"&&(l[i]=n[i])}if(e=e.defaultProps){l===n&&(l=y({},l));for(var u in e)l[u]===void 0&&(l[u]=e[u])}return l}function $h(e){ii(e)}function Gh(e){console.error(e)}function Zh(e){ii(e)}function Oi(e,n){try{var l=e.onUncaughtError;l(n.value,{componentStack:n.stack})}catch(i){setTimeout(function(){throw i})}}function qh(e,n,l){try{var i=e.onCaughtError;i(l.value,{componentStack:l.stack,errorBoundary:n.tag===1?n.stateNode:null})}catch(u){setTimeout(function(){throw u})}}function $u(e,n,l){return l=Oo(l),l.tag=3,l.payload={element:null},l.callback=function(){Oi(e,n)},l}function Yh(e){return e=Oo(e),e.tag=3,e}function Xh(e,n,l,i){var u=l.type.getDerivedStateFromError;if(typeof u=="function"){var m=i.value;e.payload=function(){return u(m)},e.callback=function(){qh(n,l,i)}}var b=l.stateNode;b!==null&&typeof b.componentDidCatch=="function"&&(e.callback=function(){qh(n,l,i),typeof u!="function"&&(Vo===null?Vo=new Set([this]):Vo.add(this));var E=i.stack;this.componentDidCatch(i.value,{componentStack:E!==null?E:""})})}function J2(e,n,l,i,u){if(l.flags|=32768,i!==null&&typeof i=="object"&&typeof i.then=="function"){if(n=l.alternate,n!==null&&Zl(n,l,u,!0),l=Pt.current,l!==null){switch(l.tag){case 31:case 13:return un===null?Gi():l.alternate===null&&nt===0&&(nt=3),l.flags&=-257,l.flags|=65536,l.lanes=u,i===vi?l.flags|=16384:(n=l.updateQueue,n===null?l.updateQueue=new Set([i]):n.add(i),mf(e,i,u)),!1;case 22:return l.flags|=65536,i===vi?l.flags|=16384:(n=l.updateQueue,n===null?(n={transitions:null,markerInstances:null,retryQueue:new Set([i])},l.updateQueue=n):(l=n.retryQueue,l===null?n.retryQueue=new Set([i]):l.add(i)),mf(e,i,u)),!1}throw Error(r(435,l.tag))}return mf(e,i,u),Gi(),!1}if(je)return n=Pt.current,n!==null?((n.flags&65536)===0&&(n.flags|=256),n.flags|=65536,n.lanes=u,i!==ru&&(e=Error(r(422),{cause:i}),Xa(an(e,l)))):(i!==ru&&(n=Error(r(423),{cause:i}),Xa(an(n,l))),e=e.current.alternate,e.flags|=65536,u&=-u,e.lanes|=u,i=an(i,l),u=$u(e.stateNode,i,u),vu(e,u),nt!==4&&(nt=2)),!1;var m=Error(r(520),{cause:i});if(m=an(m,l),fr===null?fr=[m]:fr.push(m),nt!==4&&(nt=2),n===null)return!0;i=an(i,l),l=n;do{switch(l.tag){case 3:return l.flags|=65536,e=u&-u,l.lanes|=e,e=$u(l.stateNode,i,e),vu(l,e),!1;case 1:if(n=l.type,m=l.stateNode,(l.flags&128)===0&&(typeof n.getDerivedStateFromError=="function"||m!==null&&typeof m.componentDidCatch=="function"&&(Vo===null||!Vo.has(m))))return l.flags|=65536,u&=-u,l.lanes|=u,u=Yh(u),Xh(u,e,l,i),vu(l,u),!1}l=l.return}while(l!==null);return!1}var Gu=Error(r(461)),ct=!1;function xt(e,n,l,i){n.child=e===null?Kp(n,null,l,i):pl(n,e.child,l,i)}function Ph(e,n,l,i,u){l=l.render;var m=n.ref;if("ref"in i){var b={};for(var E in i)E!=="ref"&&(b[E]=i[E])}else b=i;return ul(n),i=wu(e,n,l,b,m,u),E=Tu(),e!==null&&!ct?(Eu(e,n,u),oo(e,n,u)):(je&&E&&lu(n),n.flags|=1,xt(e,n,i,u),n.child)}function Qh(e,n,l,i,u){if(e===null){var m=l.type;return typeof m=="function"&&!tu(m)&&m.defaultProps===void 0&&l.compare===null?(n.tag=15,n.type=m,Ih(e,n,m,i,u)):(e=fi(l.type,null,i,n,n.mode,u),e.ref=n.ref,e.return=n,n.child=e)}if(m=e.child,!Ku(e,u)){var b=m.memoizedProps;if(l=l.compare,l=l!==null?l:Za,l(b,i)&&e.ref===n.ref)return oo(e,n,u)}return n.flags|=1,e=Fn(m,i),e.ref=n.ref,e.return=n,n.child=e}function Ih(e,n,l,i,u){if(e!==null){var m=e.memoizedProps;if(Za(m,i)&&e.ref===n.ref)if(ct=!1,n.pendingProps=i=m,Ku(e,u))(e.flags&131072)!==0&&(ct=!0);else return n.lanes=e.lanes,oo(e,n,u)}return Zu(e,n,l,i,u)}function Kh(e,n,l,i){var u=i.children,m=e!==null?e.memoizedState:null;if(e===null&&n.stateNode===null&&(n.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),i.mode==="hidden"){if((n.flags&128)!==0){if(m=m!==null?m.baseLanes|l:l,e!==null){for(i=n.child=e.child,u=0;i!==null;)u=u|i.lanes|i.childLanes,i=i.sibling;i=u&~m}else i=0,n.child=null;return Fh(e,n,m,l,i)}if((l&536870912)!==0)n.memoizedState={baseLanes:0,cachePool:null},e!==null&&hi(n,m!==null?m.cachePool:null),m!==null?Wp(n,m):bu(),eh(n);else return i=n.lanes=536870912,Fh(e,n,m!==null?m.baseLanes|l:l,l,i)}else m!==null?(hi(n,m.cachePool),Wp(n,m),Do(),n.memoizedState=null):(e!==null&&hi(n,null),bu(),Do());return xt(e,n,u,l),n.child}function lr(e,n){return e!==null&&e.tag===22||n.stateNode!==null||(n.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),n.sibling}function Fh(e,n,l,i,u){var m=mu();return m=m===null?null:{parent:it._currentValue,pool:m},n.memoizedState={baseLanes:l,cachePool:m},e!==null&&hi(n,null),bu(),eh(n),e!==null&&Zl(e,n,i,!0),n.childLanes=u,null}function Ni(e,n){return n=Di({mode:n.mode,children:n.children},e.mode),n.ref=e.ref,e.child=n,n.return=e,n}function Jh(e,n,l){return pl(n,e.child,null,l),e=Ni(n,n.pendingProps),e.flags|=2,Qt(n),n.memoizedState=null,e}function W2(e,n,l){var i=n.pendingProps,u=(n.flags&128)!==0;if(n.flags&=-129,e===null){if(je){if(i.mode==="hidden")return e=Ni(n,i),n.lanes=536870912,lr(null,e);if(Su(n),(e=Qe)?(e=ug(e,cn),e=e!==null&&e.data==="&"?e:null,e!==null&&(n.memoizedState={dehydrated:e,treeContext:Eo!==null?{id:An,overflow:Dn}:null,retryLane:536870912,hydrationErrors:null},l=zp(e),l.return=n,n.child=l,yt=n,Qe=null)):e=null,e===null)throw Ro(n);return n.lanes=536870912,null}return Ni(n,i)}var m=e.memoizedState;if(m!==null){var b=m.dehydrated;if(Su(n),u)if(n.flags&256)n.flags&=-257,n=Jh(e,n,l);else if(n.memoizedState!==null)n.child=e.child,n.flags|=128,n=null;else throw Error(r(558));else if(ct||Zl(e,n,l,!1),u=(l&e.childLanes)!==0,ct||u){if(i=Ze,i!==null&&(b=Gm(i,l),b!==0&&b!==m.retryLane))throw m.retryLane=b,rl(e,b),Lt(i,e,b),Gu;Gi(),n=Jh(e,n,l)}else e=m.treeContext,Qe=fn(b.nextSibling),yt=n,je=!0,Mo=null,cn=!1,e!==null&&kp(n,e),n=Ni(n,i),n.flags|=4096;return n}return e=Fn(e.child,{mode:i.mode,children:i.children}),e.ref=n.ref,n.child=e,e.return=n,e}function Ai(e,n){var l=n.ref;if(l===null)e!==null&&e.ref!==null&&(n.flags|=4194816);else{if(typeof l!="function"&&typeof l!="object")throw Error(r(284));(e===null||e.ref!==l)&&(n.flags|=4194816)}}function Zu(e,n,l,i,u){return ul(n),l=wu(e,n,l,i,void 0,u),i=Tu(),e!==null&&!ct?(Eu(e,n,u),oo(e,n,u)):(je&&i&&lu(n),n.flags|=1,xt(e,n,l,u),n.child)}function Wh(e,n,l,i,u,m){return ul(n),n.updateQueue=null,l=nh(n,i,l,u),th(e),i=Tu(),e!==null&&!ct?(Eu(e,n,m),oo(e,n,m)):(je&&i&&lu(n),n.flags|=1,xt(e,n,l,m),n.child)}function e1(e,n,l,i,u){if(ul(n),n.stateNode===null){var m=Bl,b=l.contextType;typeof b=="object"&&b!==null&&(m=bt(b)),m=new l(i,m),n.memoizedState=m.state!==null&&m.state!==void 0?m.state:null,m.updater=Uu,n.stateNode=m,m._reactInternals=n,m=n.stateNode,m.props=i,m.state=n.memoizedState,m.refs={},hu(n),b=l.contextType,m.context=typeof b=="object"&&b!==null?bt(b):Bl,m.state=n.memoizedState,b=l.getDerivedStateFromProps,typeof b=="function"&&(Bu(n,l,b,i),m.state=n.memoizedState),typeof l.getDerivedStateFromProps=="function"||typeof m.getSnapshotBeforeUpdate=="function"||typeof m.UNSAFE_componentWillMount!="function"&&typeof m.componentWillMount!="function"||(b=m.state,typeof m.componentWillMount=="function"&&m.componentWillMount(),typeof m.UNSAFE_componentWillMount=="function"&&m.UNSAFE_componentWillMount(),b!==m.state&&Uu.enqueueReplaceState(m,m.state,null),Wa(n,i,m,u),Ja(),m.state=n.memoizedState),typeof m.componentDidMount=="function"&&(n.flags|=4194308),i=!0}else if(e===null){m=n.stateNode;var E=n.memoizedProps,j=gl(l,E);m.props=j;var $=m.context,Y=l.contextType;b=Bl,typeof Y=="object"&&Y!==null&&(b=bt(Y));var Q=l.getDerivedStateFromProps;Y=typeof Q=="function"||typeof m.getSnapshotBeforeUpdate=="function",E=n.pendingProps!==E,Y||typeof m.UNSAFE_componentWillReceiveProps!="function"&&typeof m.componentWillReceiveProps!="function"||(E||$!==b)&&Uh(n,m,i,b),_o=!1;var G=n.memoizedState;m.state=G,Wa(n,i,m,u),Ja(),$=n.memoizedState,E||G!==$||_o?(typeof Q=="function"&&(Bu(n,l,Q,i),$=n.memoizedState),(j=_o||Bh(n,l,j,i,G,$,b))?(Y||typeof m.UNSAFE_componentWillMount!="function"&&typeof m.componentWillMount!="function"||(typeof m.componentWillMount=="function"&&m.componentWillMount(),typeof m.UNSAFE_componentWillMount=="function"&&m.UNSAFE_componentWillMount()),typeof m.componentDidMount=="function"&&(n.flags|=4194308)):(typeof m.componentDidMount=="function"&&(n.flags|=4194308),n.memoizedProps=i,n.memoizedState=$),m.props=i,m.state=$,m.context=b,i=j):(typeof m.componentDidMount=="function"&&(n.flags|=4194308),i=!1)}else{m=n.stateNode,gu(e,n),b=n.memoizedProps,Y=gl(l,b),m.props=Y,Q=n.pendingProps,G=m.context,$=l.contextType,j=Bl,typeof $=="object"&&$!==null&&(j=bt($)),E=l.getDerivedStateFromProps,($=typeof E=="function"||typeof m.getSnapshotBeforeUpdate=="function")||typeof m.UNSAFE_componentWillReceiveProps!="function"&&typeof m.componentWillReceiveProps!="function"||(b!==Q||G!==j)&&Uh(n,m,i,j),_o=!1,G=n.memoizedState,m.state=G,Wa(n,i,m,u),Ja();var q=n.memoizedState;b!==Q||G!==q||_o||e!==null&&e.dependencies!==null&&mi(e.dependencies)?(typeof E=="function"&&(Bu(n,l,E,i),q=n.memoizedState),(Y=_o||Bh(n,l,Y,i,G,q,j)||e!==null&&e.dependencies!==null&&mi(e.dependencies))?($||typeof m.UNSAFE_componentWillUpdate!="function"&&typeof m.componentWillUpdate!="function"||(typeof m.componentWillUpdate=="function"&&m.componentWillUpdate(i,q,j),typeof m.UNSAFE_componentWillUpdate=="function"&&m.UNSAFE_componentWillUpdate(i,q,j)),typeof m.componentDidUpdate=="function"&&(n.flags|=4),typeof m.getSnapshotBeforeUpdate=="function"&&(n.flags|=1024)):(typeof m.componentDidUpdate!="function"||b===e.memoizedProps&&G===e.memoizedState||(n.flags|=4),typeof m.getSnapshotBeforeUpdate!="function"||b===e.memoizedProps&&G===e.memoizedState||(n.flags|=1024),n.memoizedProps=i,n.memoizedState=q),m.props=i,m.state=q,m.context=j,i=Y):(typeof m.componentDidUpdate!="function"||b===e.memoizedProps&&G===e.memoizedState||(n.flags|=4),typeof m.getSnapshotBeforeUpdate!="function"||b===e.memoizedProps&&G===e.memoizedState||(n.flags|=1024),i=!1)}return m=i,Ai(e,n),i=(n.flags&128)!==0,m||i?(m=n.stateNode,l=i&&typeof l.getDerivedStateFromError!="function"?null:m.render(),n.flags|=1,e!==null&&i?(n.child=pl(n,e.child,null,u),n.child=pl(n,null,l,u)):xt(e,n,l,u),n.memoizedState=m.state,e=n.child):e=oo(e,n,u),e}function t1(e,n,l,i){return sl(),n.flags|=256,xt(e,n,l,i),n.child}var qu={dehydrated:null,treeContext:null,retryLane:0,hydrationErrors:null};function Yu(e){return{baseLanes:e,cachePool:qp()}}function Xu(e,n,l){return e=e!==null?e.childLanes&~l:0,n&&(e|=Kt),e}function n1(e,n,l){var i=n.pendingProps,u=!1,m=(n.flags&128)!==0,b;if((b=m)||(b=e!==null&&e.memoizedState===null?!1:(lt.current&2)!==0),b&&(u=!0,n.flags&=-129),b=(n.flags&32)!==0,n.flags&=-33,e===null){if(je){if(u?Ao(n):Do(),(e=Qe)?(e=ug(e,cn),e=e!==null&&e.data!=="&"?e:null,e!==null&&(n.memoizedState={dehydrated:e,treeContext:Eo!==null?{id:An,overflow:Dn}:null,retryLane:536870912,hydrationErrors:null},l=zp(e),l.return=n,n.child=l,yt=n,Qe=null)):e=null,e===null)throw Ro(n);return _f(e)?n.lanes=32:n.lanes=536870912,null}var E=i.children;return i=i.fallback,u?(Do(),u=n.mode,E=Di({mode:"hidden",children:E},u),i=il(i,u,l,null),E.return=n,i.return=n,E.sibling=i,n.child=E,i=n.child,i.memoizedState=Yu(l),i.childLanes=Xu(e,b,l),n.memoizedState=qu,lr(null,i)):(Ao(n),Pu(n,E))}var j=e.memoizedState;if(j!==null&&(E=j.dehydrated,E!==null)){if(m)n.flags&256?(Ao(n),n.flags&=-257,n=Qu(e,n,l)):n.memoizedState!==null?(Do(),n.child=e.child,n.flags|=128,n=null):(Do(),E=i.fallback,u=n.mode,i=Di({mode:"visible",children:i.children},u),E=il(E,u,l,null),E.flags|=2,i.return=n,E.return=n,i.sibling=E,n.child=i,pl(n,e.child,null,l),i=n.child,i.memoizedState=Yu(l),i.childLanes=Xu(e,b,l),n.memoizedState=qu,n=lr(null,i));else if(Ao(n),_f(E)){if(b=E.nextSibling&&E.nextSibling.dataset,b)var $=b.dgst;b=$,i=Error(r(419)),i.stack="",i.digest=b,Xa({value:i,source:null,stack:null}),n=Qu(e,n,l)}else if(ct||Zl(e,n,l,!1),b=(l&e.childLanes)!==0,ct||b){if(b=Ze,b!==null&&(i=Gm(b,l),i!==0&&i!==j.retryLane))throw j.retryLane=i,rl(e,i),Lt(b,e,i),Gu;jf(E)||Gi(),n=Qu(e,n,l)}else jf(E)?(n.flags|=192,n.child=e.child,n=null):(e=j.treeContext,Qe=fn(E.nextSibling),yt=n,je=!0,Mo=null,cn=!1,e!==null&&kp(n,e),n=Pu(n,i.children),n.flags|=4096);return n}return u?(Do(),E=i.fallback,u=n.mode,j=e.child,$=j.sibling,i=Fn(j,{mode:"hidden",children:i.children}),i.subtreeFlags=j.subtreeFlags&65011712,$!==null?E=Fn($,E):(E=il(E,u,l,null),E.flags|=2),E.return=n,i.return=n,i.sibling=E,n.child=i,lr(null,i),i=n.child,E=e.child.memoizedState,E===null?E=Yu(l):(u=E.cachePool,u!==null?(j=it._currentValue,u=u.parent!==j?{parent:j,pool:j}:u):u=qp(),E={baseLanes:E.baseLanes|l,cachePool:u}),i.memoizedState=E,i.childLanes=Xu(e,b,l),n.memoizedState=qu,lr(e.child,i)):(Ao(n),l=e.child,e=l.sibling,l=Fn(l,{mode:"visible",children:i.children}),l.return=n,l.sibling=null,e!==null&&(b=n.deletions,b===null?(n.deletions=[e],n.flags|=16):b.push(e)),n.child=l,n.memoizedState=null,l)}function Pu(e,n){return n=Di({mode:"visible",children:n},e.mode),n.return=e,e.child=n}function Di(e,n){return e=Xt(22,e,null,n),e.lanes=0,e}function Qu(e,n,l){return pl(n,e.child,null,l),e=Pu(n,n.pendingProps.children),e.flags|=2,n.memoizedState=null,e}function o1(e,n,l){e.lanes|=n;var i=e.alternate;i!==null&&(i.lanes|=n),cu(e.return,n,l)}function Iu(e,n,l,i,u,m){var b=e.memoizedState;b===null?e.memoizedState={isBackwards:n,rendering:null,renderingStartTime:0,last:i,tail:l,tailMode:u,treeForkCount:m}:(b.isBackwards=n,b.rendering=null,b.renderingStartTime=0,b.last=i,b.tail=l,b.tailMode=u,b.treeForkCount=m)}function l1(e,n,l){var i=n.pendingProps,u=i.revealOrder,m=i.tail;i=i.children;var b=lt.current,E=(b&2)!==0;if(E?(b=b&1|2,n.flags|=128):b&=1,ae(lt,b),xt(e,n,i,l),i=je?Ya:0,!E&&e!==null&&(e.flags&128)!==0)e:for(e=n.child;e!==null;){if(e.tag===13)e.memoizedState!==null&&o1(e,l,n);else if(e.tag===19)o1(e,l,n);else if(e.child!==null){e.child.return=e,e=e.child;continue}if(e===n)break e;for(;e.sibling===null;){if(e.return===null||e.return===n)break e;e=e.return}e.sibling.return=e.return,e=e.sibling}switch(u){case"forwards":for(l=n.child,u=null;l!==null;)e=l.alternate,e!==null&&Si(e)===null&&(u=l),l=l.sibling;l=u,l===null?(u=n.child,n.child=null):(u=l.sibling,l.sibling=null),Iu(n,!1,u,l,m,i);break;case"backwards":case"unstable_legacy-backwards":for(l=null,u=n.child,n.child=null;u!==null;){if(e=u.alternate,e!==null&&Si(e)===null){n.child=u;break}e=u.sibling,u.sibling=l,l=u,u=e}Iu(n,!0,l,null,m,i);break;case"together":Iu(n,!1,null,null,void 0,i);break;default:n.memoizedState=null}return n.child}function oo(e,n,l){if(e!==null&&(n.dependencies=e.dependencies),Lo|=n.lanes,(l&n.childLanes)===0)if(e!==null){if(Zl(e,n,l,!1),(l&n.childLanes)===0)return null}else return null;if(e!==null&&n.child!==e.child)throw Error(r(153));if(n.child!==null){for(e=n.child,l=Fn(e,e.pendingProps),n.child=l,l.return=n;e.sibling!==null;)e=e.sibling,l=l.sibling=Fn(e,e.pendingProps),l.return=n;l.sibling=null}return n.child}function Ku(e,n){return(e.lanes&n)!==0?!0:(e=e.dependencies,!!(e!==null&&mi(e)))}function ex(e,n,l){switch(n.tag){case 3:Ee(n,n.stateNode.containerInfo),jo(n,it,e.memoizedState.cache),sl();break;case 27:case 5:We(n);break;case 4:Ee(n,n.stateNode.containerInfo);break;case 10:jo(n,n.type,n.memoizedProps.value);break;case 31:if(n.memoizedState!==null)return n.flags|=128,Su(n),null;break;case 13:var i=n.memoizedState;if(i!==null)return i.dehydrated!==null?(Ao(n),n.flags|=128,null):(l&n.child.childLanes)!==0?n1(e,n,l):(Ao(n),e=oo(e,n,l),e!==null?e.sibling:null);Ao(n);break;case 19:var u=(e.flags&128)!==0;if(i=(l&n.childLanes)!==0,i||(Zl(e,n,l,!1),i=(l&n.childLanes)!==0),u){if(i)return l1(e,n,l);n.flags|=128}if(u=n.memoizedState,u!==null&&(u.rendering=null,u.tail=null,u.lastEffect=null),ae(lt,lt.current),i)break;return null;case 22:return n.lanes=0,Kh(e,n,l,n.pendingProps);case 24:jo(n,it,e.memoizedState.cache)}return oo(e,n,l)}function a1(e,n,l){if(e!==null)if(e.memoizedProps!==n.pendingProps)ct=!0;else{if(!Ku(e,l)&&(n.flags&128)===0)return ct=!1,ex(e,n,l);ct=(e.flags&131072)!==0}else ct=!1,je&&(n.flags&1048576)!==0&&Vp(n,Ya,n.index);switch(n.lanes=0,n.tag){case 16:e:{var i=n.pendingProps;if(e=dl(n.elementType),n.type=e,typeof e=="function")tu(e)?(i=gl(e,i),n.tag=1,n=e1(null,n,e,i,l)):(n.tag=0,n=Zu(null,n,e,i,l));else{if(e!=null){var u=e.$$typeof;if(u===A){n.tag=11,n=Ph(null,n,e,i,l);break e}else if(u===Z){n.tag=14,n=Qh(null,n,e,i,l);break e}}throw n=B(e)||e,Error(r(306,n,""))}}return n;case 0:return Zu(e,n,n.type,n.pendingProps,l);case 1:return i=n.type,u=gl(i,n.pendingProps),e1(e,n,i,u,l);case 3:e:{if(Ee(n,n.stateNode.containerInfo),e===null)throw Error(r(387));i=n.pendingProps;var m=n.memoizedState;u=m.element,gu(e,n),Wa(n,i,null,l);var b=n.memoizedState;if(i=b.cache,jo(n,it,i),i!==m.cache&&uu(n,[it],l,!0),Ja(),i=b.element,m.isDehydrated)if(m={element:i,isDehydrated:!1,cache:b.cache},n.updateQueue.baseState=m,n.memoizedState=m,n.flags&256){n=t1(e,n,i,l);break e}else if(i!==u){u=an(Error(r(424)),n),Xa(u),n=t1(e,n,i,l);break e}else for(e=n.stateNode.containerInfo,e.nodeType===9?e=e.body:e=e.nodeName==="HTML"?e.ownerDocument.body:e,Qe=fn(e.firstChild),yt=n,je=!0,Mo=null,cn=!0,l=Kp(n,null,i,l),n.child=l;l;)l.flags=l.flags&-3|4096,l=l.sibling;else{if(sl(),i===u){n=oo(e,n,l);break e}xt(e,n,i,l)}n=n.child}return n;case 26:return Ai(e,n),e===null?(l=gg(n.type,null,n.pendingProps,null))?n.memoizedState=l:je||(l=n.type,e=n.pendingProps,i=Ii(Ne.current).createElement(l),i[vt]=n,i[Ot]=e,St(i,l,e),mt(i),n.stateNode=i):n.memoizedState=gg(n.type,e.memoizedProps,n.pendingProps,e.memoizedState),null;case 27:return We(n),e===null&&je&&(i=n.stateNode=mg(n.type,n.pendingProps,Ne.current),yt=n,cn=!0,u=Qe,$o(n.type)?(Of=u,Qe=fn(i.firstChild)):Qe=u),xt(e,n,n.pendingProps.children,l),Ai(e,n),e===null&&(n.flags|=4194304),n.child;case 5:return e===null&&je&&((u=i=Qe)&&(i=Ox(i,n.type,n.pendingProps,cn),i!==null?(n.stateNode=i,yt=n,Qe=fn(i.firstChild),cn=!1,u=!0):u=!1),u||Ro(n)),We(n),u=n.type,m=n.pendingProps,b=e!==null?e.memoizedProps:null,i=m.children,Ef(u,m)?i=null:b!==null&&Ef(u,b)&&(n.flags|=32),n.memoizedState!==null&&(u=wu(e,n,Y2,null,null,l),br._currentValue=u),Ai(e,n),xt(e,n,i,l),n.child;case 6:return e===null&&je&&((e=l=Qe)&&(l=Nx(l,n.pendingProps,cn),l!==null?(n.stateNode=l,yt=n,Qe=null,e=!0):e=!1),e||Ro(n)),null;case 13:return n1(e,n,l);case 4:return Ee(n,n.stateNode.containerInfo),i=n.pendingProps,e===null?n.child=pl(n,null,i,l):xt(e,n,i,l),n.child;case 11:return Ph(e,n,n.type,n.pendingProps,l);case 7:return xt(e,n,n.pendingProps,l),n.child;case 8:return xt(e,n,n.pendingProps.children,l),n.child;case 12:return xt(e,n,n.pendingProps.children,l),n.child;case 10:return i=n.pendingProps,jo(n,n.type,i.value),xt(e,n,i.children,l),n.child;case 9:return u=n.type._context,i=n.pendingProps.children,ul(n),u=bt(u),i=i(u),n.flags|=1,xt(e,n,i,l),n.child;case 14:return Qh(e,n,n.type,n.pendingProps,l);case 15:return Ih(e,n,n.type,n.pendingProps,l);case 19:return l1(e,n,l);case 31:return W2(e,n,l);case 22:return Kh(e,n,l,n.pendingProps);case 24:return ul(n),i=bt(it),e===null?(u=mu(),u===null&&(u=Ze,m=fu(),u.pooledCache=m,m.refCount++,m!==null&&(u.pooledCacheLanes|=l),u=m),n.memoizedState={parent:i,cache:u},hu(n),jo(n,it,u)):((e.lanes&l)!==0&&(gu(e,n),Wa(n,null,null,l),Ja()),u=e.memoizedState,m=n.memoizedState,u.parent!==i?(u={parent:i,cache:i},n.memoizedState=u,n.lanes===0&&(n.memoizedState=n.updateQueue.baseState=u),jo(n,it,i)):(i=m.cache,jo(n,it,i),i!==u.cache&&uu(n,[it],l,!0))),xt(e,n,n.pendingProps.children,l),n.child;case 29:throw n.pendingProps}throw Error(r(156,n.tag))}function lo(e){e.flags|=4}function Fu(e,n,l,i,u){if((n=(e.mode&32)!==0)&&(n=!1),n){if(e.flags|=16777216,(u&335544128)===u)if(e.stateNode.complete)e.flags|=8192;else if(A1())e.flags|=8192;else throw ml=vi,pu}else e.flags&=-16777217}function r1(e,n){if(n.type!=="stylesheet"||(n.state.loading&4)!==0)e.flags&=-16777217;else if(e.flags|=16777216,!Sg(n))if(A1())e.flags|=8192;else throw ml=vi,pu}function Hi(e,n){n!==null&&(e.flags|=4),e.flags&16384&&(n=e.tag!==22?Bm():536870912,e.lanes|=n,ta|=n)}function ar(e,n){if(!je)switch(e.tailMode){case"hidden":n=e.tail;for(var l=null;n!==null;)n.alternate!==null&&(l=n),n=n.sibling;l===null?e.tail=null:l.sibling=null;break;case"collapsed":l=e.tail;for(var i=null;l!==null;)l.alternate!==null&&(i=l),l=l.sibling;i===null?n||e.tail===null?e.tail=null:e.tail.sibling=null:i.sibling=null}}function Ie(e){var n=e.alternate!==null&&e.alternate.child===e.child,l=0,i=0;if(n)for(var u=e.child;u!==null;)l|=u.lanes|u.childLanes,i|=u.subtreeFlags&65011712,i|=u.flags&65011712,u.return=e,u=u.sibling;else for(u=e.child;u!==null;)l|=u.lanes|u.childLanes,i|=u.subtreeFlags,i|=u.flags,u.return=e,u=u.sibling;return e.subtreeFlags|=i,e.childLanes=l,n}function tx(e,n,l){var i=n.pendingProps;switch(au(n),n.tag){case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return Ie(n),null;case 1:return Ie(n),null;case 3:return l=n.stateNode,i=null,e!==null&&(i=e.memoizedState.cache),n.memoizedState.cache!==i&&(n.flags|=2048),eo(it),ve(),l.pendingContext&&(l.context=l.pendingContext,l.pendingContext=null),(e===null||e.child===null)&&(Gl(n)?lo(n):e===null||e.memoizedState.isDehydrated&&(n.flags&256)===0||(n.flags|=1024,iu())),Ie(n),null;case 26:var u=n.type,m=n.memoizedState;return e===null?(lo(n),m!==null?(Ie(n),r1(n,m)):(Ie(n),Fu(n,u,null,i,l))):m?m!==e.memoizedState?(lo(n),Ie(n),r1(n,m)):(Ie(n),n.flags&=-16777217):(e=e.memoizedProps,e!==i&&lo(n),Ie(n),Fu(n,u,e,i,l)),null;case 27:if(rt(n),l=Ne.current,u=n.type,e!==null&&n.stateNode!=null)e.memoizedProps!==i&&lo(n);else{if(!i){if(n.stateNode===null)throw Error(r(166));return Ie(n),null}e=ye.current,Gl(n)?Bp(n):(e=mg(u,i,l),n.stateNode=e,lo(n))}return Ie(n),null;case 5:if(rt(n),u=n.type,e!==null&&n.stateNode!=null)e.memoizedProps!==i&&lo(n);else{if(!i){if(n.stateNode===null)throw Error(r(166));return Ie(n),null}if(m=ye.current,Gl(n))Bp(n);else{var b=Ii(Ne.current);switch(m){case 1:m=b.createElementNS("http://www.w3.org/2000/svg",u);break;case 2:m=b.createElementNS("http://www.w3.org/1998/Math/MathML",u);break;default:switch(u){case"svg":m=b.createElementNS("http://www.w3.org/2000/svg",u);break;case"math":m=b.createElementNS("http://www.w3.org/1998/Math/MathML",u);break;case"script":m=b.createElement("div"),m.innerHTML="<script><\/script>",m=m.removeChild(m.firstChild);break;case"select":m=typeof i.is=="string"?b.createElement("select",{is:i.is}):b.createElement("select"),i.multiple?m.multiple=!0:i.size&&(m.size=i.size);break;default:m=typeof i.is=="string"?b.createElement(u,{is:i.is}):b.createElement(u)}}m[vt]=n,m[Ot]=i;e:for(b=n.child;b!==null;){if(b.tag===5||b.tag===6)m.appendChild(b.stateNode);else if(b.tag!==4&&b.tag!==27&&b.child!==null){b.child.return=b,b=b.child;continue}if(b===n)break e;for(;b.sibling===null;){if(b.return===null||b.return===n)break e;b=b.return}b.sibling.return=b.return,b=b.sibling}n.stateNode=m;e:switch(St(m,u,i),u){case"button":case"input":case"select":case"textarea":i=!!i.autoFocus;break e;case"img":i=!0;break e;default:i=!1}i&&lo(n)}}return Ie(n),Fu(n,n.type,e===null?null:e.memoizedProps,n.pendingProps,l),null;case 6:if(e&&n.stateNode!=null)e.memoizedProps!==i&&lo(n);else{if(typeof i!="string"&&n.stateNode===null)throw Error(r(166));if(e=Ne.current,Gl(n)){if(e=n.stateNode,l=n.memoizedProps,i=null,u=yt,u!==null)switch(u.tag){case 27:case 5:i=u.memoizedProps}e[vt]=n,e=!!(e.nodeValue===l||i!==null&&i.suppressHydrationWarning===!0||ng(e.nodeValue,l)),e||Ro(n,!0)}else e=Ii(e).createTextNode(i),e[vt]=n,n.stateNode=e}return Ie(n),null;case 31:if(l=n.memoizedState,e===null||e.memoizedState!==null){if(i=Gl(n),l!==null){if(e===null){if(!i)throw Error(r(318));if(e=n.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(r(557));e[vt]=n}else sl(),(n.flags&128)===0&&(n.memoizedState=null),n.flags|=4;Ie(n),e=!1}else l=iu(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=l),e=!0;if(!e)return n.flags&256?(Qt(n),n):(Qt(n),null);if((n.flags&128)!==0)throw Error(r(558))}return Ie(n),null;case 13:if(i=n.memoizedState,e===null||e.memoizedState!==null&&e.memoizedState.dehydrated!==null){if(u=Gl(n),i!==null&&i.dehydrated!==null){if(e===null){if(!u)throw Error(r(318));if(u=n.memoizedState,u=u!==null?u.dehydrated:null,!u)throw Error(r(317));u[vt]=n}else sl(),(n.flags&128)===0&&(n.memoizedState=null),n.flags|=4;Ie(n),u=!1}else u=iu(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=u),u=!0;if(!u)return n.flags&256?(Qt(n),n):(Qt(n),null)}return Qt(n),(n.flags&128)!==0?(n.lanes=l,n):(l=i!==null,e=e!==null&&e.memoizedState!==null,l&&(i=n.child,u=null,i.alternate!==null&&i.alternate.memoizedState!==null&&i.alternate.memoizedState.cachePool!==null&&(u=i.alternate.memoizedState.cachePool.pool),m=null,i.memoizedState!==null&&i.memoizedState.cachePool!==null&&(m=i.memoizedState.cachePool.pool),m!==u&&(i.flags|=2048)),l!==e&&l&&(n.child.flags|=8192),Hi(n,n.updateQueue),Ie(n),null);case 4:return ve(),e===null&&xf(n.stateNode.containerInfo),Ie(n),null;case 10:return eo(n.type),Ie(n),null;case 19:if(le(lt),i=n.memoizedState,i===null)return Ie(n),null;if(u=(n.flags&128)!==0,m=i.rendering,m===null)if(u)ar(i,!1);else{if(nt!==0||e!==null&&(e.flags&128)!==0)for(e=n.child;e!==null;){if(m=Si(e),m!==null){for(n.flags|=128,ar(i,!1),e=m.updateQueue,n.updateQueue=e,Hi(n,e),n.subtreeFlags=0,e=l,l=n.child;l!==null;)Hp(l,e),l=l.sibling;return ae(lt,lt.current&1|2),je&&Jn(n,i.treeForkCount),n.child}e=e.sibling}i.tail!==null&&jt()>Bi&&(n.flags|=128,u=!0,ar(i,!1),n.lanes=4194304)}else{if(!u)if(e=Si(m),e!==null){if(n.flags|=128,u=!0,e=e.updateQueue,n.updateQueue=e,Hi(n,e),ar(i,!0),i.tail===null&&i.tailMode==="hidden"&&!m.alternate&&!je)return Ie(n),null}else 2*jt()-i.renderingStartTime>Bi&&l!==536870912&&(n.flags|=128,u=!0,ar(i,!1),n.lanes=4194304);i.isBackwards?(m.sibling=n.child,n.child=m):(e=i.last,e!==null?e.sibling=m:n.child=m,i.last=m)}return i.tail!==null?(e=i.tail,i.rendering=e,i.tail=e.sibling,i.renderingStartTime=jt(),e.sibling=null,l=lt.current,ae(lt,u?l&1|2:l&1),je&&Jn(n,i.treeForkCount),e):(Ie(n),null);case 22:case 23:return Qt(n),xu(),i=n.memoizedState!==null,e!==null?e.memoizedState!==null!==i&&(n.flags|=8192):i&&(n.flags|=8192),i?(l&536870912)!==0&&(n.flags&128)===0&&(Ie(n),n.subtreeFlags&6&&(n.flags|=8192)):Ie(n),l=n.updateQueue,l!==null&&Hi(n,l.retryQueue),l=null,e!==null&&e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(l=e.memoizedState.cachePool.pool),i=null,n.memoizedState!==null&&n.memoizedState.cachePool!==null&&(i=n.memoizedState.cachePool.pool),i!==l&&(n.flags|=2048),e!==null&&le(fl),null;case 24:return l=null,e!==null&&(l=e.memoizedState.cache),n.memoizedState.cache!==l&&(n.flags|=2048),eo(it),Ie(n),null;case 25:return null;case 30:return null}throw Error(r(156,n.tag))}function nx(e,n){switch(au(n),n.tag){case 1:return e=n.flags,e&65536?(n.flags=e&-65537|128,n):null;case 3:return eo(it),ve(),e=n.flags,(e&65536)!==0&&(e&128)===0?(n.flags=e&-65537|128,n):null;case 26:case 27:case 5:return rt(n),null;case 31:if(n.memoizedState!==null){if(Qt(n),n.alternate===null)throw Error(r(340));sl()}return e=n.flags,e&65536?(n.flags=e&-65537|128,n):null;case 13:if(Qt(n),e=n.memoizedState,e!==null&&e.dehydrated!==null){if(n.alternate===null)throw Error(r(340));sl()}return e=n.flags,e&65536?(n.flags=e&-65537|128,n):null;case 19:return le(lt),null;case 4:return ve(),null;case 10:return eo(n.type),null;case 22:case 23:return Qt(n),xu(),e!==null&&le(fl),e=n.flags,e&65536?(n.flags=e&-65537|128,n):null;case 24:return eo(it),null;case 25:return null;default:return null}}function i1(e,n){switch(au(n),n.tag){case 3:eo(it),ve();break;case 26:case 27:case 5:rt(n);break;case 4:ve();break;case 31:n.memoizedState!==null&&Qt(n);break;case 13:Qt(n);break;case 19:le(lt);break;case 10:eo(n.type);break;case 22:case 23:Qt(n),xu(),e!==null&&le(fl);break;case 24:eo(it)}}function rr(e,n){try{var l=n.updateQueue,i=l!==null?l.lastEffect:null;if(i!==null){var u=i.next;l=u;do{if((l.tag&e)===e){i=void 0;var m=l.create,b=l.inst;i=m(),b.destroy=i}l=l.next}while(l!==u)}}catch(E){Be(n,n.return,E)}}function Ho(e,n,l){try{var i=n.updateQueue,u=i!==null?i.lastEffect:null;if(u!==null){var m=u.next;i=m;do{if((i.tag&e)===e){var b=i.inst,E=b.destroy;if(E!==void 0){b.destroy=void 0,u=n;var j=l,$=E;try{$()}catch(Y){Be(u,j,Y)}}}i=i.next}while(i!==m)}}catch(Y){Be(n,n.return,Y)}}function s1(e){var n=e.updateQueue;if(n!==null){var l=e.stateNode;try{Jp(n,l)}catch(i){Be(e,e.return,i)}}}function c1(e,n,l){l.props=gl(e.type,e.memoizedProps),l.state=e.memoizedState;try{l.componentWillUnmount()}catch(i){Be(e,n,i)}}function ir(e,n){try{var l=e.ref;if(l!==null){switch(e.tag){case 26:case 27:case 5:var i=e.stateNode;break;case 30:i=e.stateNode;break;default:i=e.stateNode}typeof l=="function"?e.refCleanup=l(i):l.current=i}}catch(u){Be(e,n,u)}}function Hn(e,n){var l=e.ref,i=e.refCleanup;if(l!==null)if(typeof i=="function")try{i()}catch(u){Be(e,n,u)}finally{e.refCleanup=null,e=e.alternate,e!=null&&(e.refCleanup=null)}else if(typeof l=="function")try{l(null)}catch(u){Be(e,n,u)}else l.current=null}function u1(e){var n=e.type,l=e.memoizedProps,i=e.stateNode;try{e:switch(n){case"button":case"input":case"select":case"textarea":l.autoFocus&&i.focus();break e;case"img":l.src?i.src=l.src:l.srcSet&&(i.srcset=l.srcSet)}}catch(u){Be(e,e.return,u)}}function Ju(e,n,l){try{var i=e.stateNode;Tx(i,e.type,l,n),i[Ot]=n}catch(u){Be(e,e.return,u)}}function f1(e){return e.tag===5||e.tag===3||e.tag===26||e.tag===27&&$o(e.type)||e.tag===4}function Wu(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||f1(e.return))return null;e=e.return}for(e.sibling.return=e.return,e=e.sibling;e.tag!==5&&e.tag!==6&&e.tag!==18;){if(e.tag===27&&$o(e.type)||e.flags&2||e.child===null||e.tag===4)continue e;e.child.return=e,e=e.child}if(!(e.flags&2))return e.stateNode}}function ef(e,n,l){var i=e.tag;if(i===5||i===6)e=e.stateNode,n?(l.nodeType===9?l.body:l.nodeName==="HTML"?l.ownerDocument.body:l).insertBefore(e,n):(n=l.nodeType===9?l.body:l.nodeName==="HTML"?l.ownerDocument.body:l,n.appendChild(e),l=l._reactRootContainer,l!=null||n.onclick!==null||(n.onclick=In));else if(i!==4&&(i===27&&$o(e.type)&&(l=e.stateNode,n=null),e=e.child,e!==null))for(ef(e,n,l),e=e.sibling;e!==null;)ef(e,n,l),e=e.sibling}function zi(e,n,l){var i=e.tag;if(i===5||i===6)e=e.stateNode,n?l.insertBefore(e,n):l.appendChild(e);else if(i!==4&&(i===27&&$o(e.type)&&(l=e.stateNode),e=e.child,e!==null))for(zi(e,n,l),e=e.sibling;e!==null;)zi(e,n,l),e=e.sibling}function d1(e){var n=e.stateNode,l=e.memoizedProps;try{for(var i=e.type,u=n.attributes;u.length;)n.removeAttributeNode(u[0]);St(n,i,l),n[vt]=e,n[Ot]=l}catch(m){Be(e,e.return,m)}}var ao=!1,ut=!1,tf=!1,m1=typeof WeakSet=="function"?WeakSet:Set,pt=null;function ox(e,n){if(e=e.containerInfo,wf=ns,e=Ep(e),Qc(e)){if("selectionStart"in e)var l={start:e.selectionStart,end:e.selectionEnd};else e:{l=(l=e.ownerDocument)&&l.defaultView||window;var i=l.getSelection&&l.getSelection();if(i&&i.rangeCount!==0){l=i.anchorNode;var u=i.anchorOffset,m=i.focusNode;i=i.focusOffset;try{l.nodeType,m.nodeType}catch{l=null;break e}var b=0,E=-1,j=-1,$=0,Y=0,Q=e,G=null;t:for(;;){for(var q;Q!==l||u!==0&&Q.nodeType!==3||(E=b+u),Q!==m||i!==0&&Q.nodeType!==3||(j=b+i),Q.nodeType===3&&(b+=Q.nodeValue.length),(q=Q.firstChild)!==null;)G=Q,Q=q;for(;;){if(Q===e)break t;if(G===l&&++$===u&&(E=b),G===m&&++Y===i&&(j=b),(q=Q.nextSibling)!==null)break;Q=G,G=Q.parentNode}Q=q}l=E===-1||j===-1?null:{start:E,end:j}}else l=null}l=l||{start:0,end:0}}else l=null;for(Tf={focusedElem:e,selectionRange:l},ns=!1,pt=n;pt!==null;)if(n=pt,e=n.child,(n.subtreeFlags&1028)!==0&&e!==null)e.return=n,pt=e;else for(;pt!==null;){switch(n=pt,m=n.alternate,e=n.flags,n.tag){case 0:if((e&4)!==0&&(e=n.updateQueue,e=e!==null?e.events:null,e!==null))for(l=0;l<e.length;l++)u=e[l],u.ref.impl=u.nextImpl;break;case 11:case 15:break;case 1:if((e&1024)!==0&&m!==null){e=void 0,l=n,u=m.memoizedProps,m=m.memoizedState,i=l.stateNode;try{var re=gl(l.type,u);e=i.getSnapshotBeforeUpdate(re,m),i.__reactInternalSnapshotBeforeUpdate=e}catch(me){Be(l,l.return,me)}}break;case 3:if((e&1024)!==0){if(e=n.stateNode.containerInfo,l=e.nodeType,l===9)Rf(e);else if(l===1)switch(e.nodeName){case"HEAD":case"HTML":case"BODY":Rf(e);break;default:e.textContent=""}}break;case 5:case 26:case 27:case 6:case 4:case 17:break;default:if((e&1024)!==0)throw Error(r(163))}if(e=n.sibling,e!==null){e.return=n.return,pt=e;break}pt=n.return}}function p1(e,n,l){var i=l.flags;switch(l.tag){case 0:case 11:case 15:io(e,l),i&4&&rr(5,l);break;case 1:if(io(e,l),i&4)if(e=l.stateNode,n===null)try{e.componentDidMount()}catch(b){Be(l,l.return,b)}else{var u=gl(l.type,n.memoizedProps);n=n.memoizedState;try{e.componentDidUpdate(u,n,e.__reactInternalSnapshotBeforeUpdate)}catch(b){Be(l,l.return,b)}}i&64&&s1(l),i&512&&ir(l,l.return);break;case 3:if(io(e,l),i&64&&(e=l.updateQueue,e!==null)){if(n=null,l.child!==null)switch(l.child.tag){case 27:case 5:n=l.child.stateNode;break;case 1:n=l.child.stateNode}try{Jp(e,n)}catch(b){Be(l,l.return,b)}}break;case 27:n===null&&i&4&&d1(l);case 26:case 5:io(e,l),n===null&&i&4&&u1(l),i&512&&ir(l,l.return);break;case 12:io(e,l);break;case 31:io(e,l),i&4&&v1(e,l);break;case 13:io(e,l),i&4&&y1(e,l),i&64&&(e=l.memoizedState,e!==null&&(e=e.dehydrated,e!==null&&(l=dx.bind(null,l),Ax(e,l))));break;case 22:if(i=l.memoizedState!==null||ao,!i){n=n!==null&&n.memoizedState!==null||ut,u=ao;var m=ut;ao=i,(ut=n)&&!m?so(e,l,(l.subtreeFlags&8772)!==0):io(e,l),ao=u,ut=m}break;case 30:break;default:io(e,l)}}function h1(e){var n=e.alternate;n!==null&&(e.alternate=null,h1(n)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(n=e.stateNode,n!==null&&Nc(n)),e.stateNode=null,e.return=null,e.dependencies=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.stateNode=null,e.updateQueue=null}var Je=null,At=!1;function ro(e,n,l){for(l=l.child;l!==null;)g1(e,n,l),l=l.sibling}function g1(e,n,l){if(Zt&&typeof Zt.onCommitFiberUnmount=="function")try{Zt.onCommitFiberUnmount(Na,l)}catch{}switch(l.tag){case 26:ut||Hn(l,n),ro(e,n,l),l.memoizedState?l.memoizedState.count--:l.stateNode&&(l=l.stateNode,l.parentNode.removeChild(l));break;case 27:ut||Hn(l,n);var i=Je,u=At;$o(l.type)&&(Je=l.stateNode,At=!1),ro(e,n,l),gr(l.stateNode),Je=i,At=u;break;case 5:ut||Hn(l,n);case 6:if(i=Je,u=At,Je=null,ro(e,n,l),Je=i,At=u,Je!==null)if(At)try{(Je.nodeType===9?Je.body:Je.nodeName==="HTML"?Je.ownerDocument.body:Je).removeChild(l.stateNode)}catch(m){Be(l,n,m)}else try{Je.removeChild(l.stateNode)}catch(m){Be(l,n,m)}break;case 18:Je!==null&&(At?(e=Je,sg(e.nodeType===9?e.body:e.nodeName==="HTML"?e.ownerDocument.body:e,l.stateNode),ca(e)):sg(Je,l.stateNode));break;case 4:i=Je,u=At,Je=l.stateNode.containerInfo,At=!0,ro(e,n,l),Je=i,At=u;break;case 0:case 11:case 14:case 15:Ho(2,l,n),ut||Ho(4,l,n),ro(e,n,l);break;case 1:ut||(Hn(l,n),i=l.stateNode,typeof i.componentWillUnmount=="function"&&c1(l,n,i)),ro(e,n,l);break;case 21:ro(e,n,l);break;case 22:ut=(i=ut)||l.memoizedState!==null,ro(e,n,l),ut=i;break;default:ro(e,n,l)}}function v1(e,n){if(n.memoizedState===null&&(e=n.alternate,e!==null&&(e=e.memoizedState,e!==null))){e=e.dehydrated;try{ca(e)}catch(l){Be(n,n.return,l)}}}function y1(e,n){if(n.memoizedState===null&&(e=n.alternate,e!==null&&(e=e.memoizedState,e!==null&&(e=e.dehydrated,e!==null))))try{ca(e)}catch(l){Be(n,n.return,l)}}function lx(e){switch(e.tag){case 31:case 13:case 19:var n=e.stateNode;return n===null&&(n=e.stateNode=new m1),n;case 22:return e=e.stateNode,n=e._retryCache,n===null&&(n=e._retryCache=new m1),n;default:throw Error(r(435,e.tag))}}function Li(e,n){var l=lx(e);n.forEach(function(i){if(!l.has(i)){l.add(i);var u=mx.bind(null,e,i);i.then(u,u)}})}function Dt(e,n){var l=n.deletions;if(l!==null)for(var i=0;i<l.length;i++){var u=l[i],m=e,b=n,E=b;e:for(;E!==null;){switch(E.tag){case 27:if($o(E.type)){Je=E.stateNode,At=!1;break e}break;case 5:Je=E.stateNode,At=!1;break e;case 3:case 4:Je=E.stateNode.containerInfo,At=!0;break e}E=E.return}if(Je===null)throw Error(r(160));g1(m,b,u),Je=null,At=!1,m=u.alternate,m!==null&&(m.return=null),u.return=null}if(n.subtreeFlags&13886)for(n=n.child;n!==null;)b1(n,e),n=n.sibling}var bn=null;function b1(e,n){var l=e.alternate,i=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:Dt(n,e),Ht(e),i&4&&(Ho(3,e,e.return),rr(3,e),Ho(5,e,e.return));break;case 1:Dt(n,e),Ht(e),i&512&&(ut||l===null||Hn(l,l.return)),i&64&&ao&&(e=e.updateQueue,e!==null&&(i=e.callbacks,i!==null&&(l=e.shared.hiddenCallbacks,e.shared.hiddenCallbacks=l===null?i:l.concat(i))));break;case 26:var u=bn;if(Dt(n,e),Ht(e),i&512&&(ut||l===null||Hn(l,l.return)),i&4){var m=l!==null?l.memoizedState:null;if(i=e.memoizedState,l===null)if(i===null)if(e.stateNode===null){e:{i=e.type,l=e.memoizedProps,u=u.ownerDocument||u;t:switch(i){case"title":m=u.getElementsByTagName("title")[0],(!m||m[Ha]||m[vt]||m.namespaceURI==="http://www.w3.org/2000/svg"||m.hasAttribute("itemprop"))&&(m=u.createElement(i),u.head.insertBefore(m,u.querySelector("head > title"))),St(m,i,l),m[vt]=e,mt(m),i=m;break e;case"link":var b=bg("link","href",u).get(i+(l.href||""));if(b){for(var E=0;E<b.length;E++)if(m=b[E],m.getAttribute("href")===(l.href==null||l.href===""?null:l.href)&&m.getAttribute("rel")===(l.rel==null?null:l.rel)&&m.getAttribute("title")===(l.title==null?null:l.title)&&m.getAttribute("crossorigin")===(l.crossOrigin==null?null:l.crossOrigin)){b.splice(E,1);break t}}m=u.createElement(i),St(m,i,l),u.head.appendChild(m);break;case"meta":if(b=bg("meta","content",u).get(i+(l.content||""))){for(E=0;E<b.length;E++)if(m=b[E],m.getAttribute("content")===(l.content==null?null:""+l.content)&&m.getAttribute("name")===(l.name==null?null:l.name)&&m.getAttribute("property")===(l.property==null?null:l.property)&&m.getAttribute("http-equiv")===(l.httpEquiv==null?null:l.httpEquiv)&&m.getAttribute("charset")===(l.charSet==null?null:l.charSet)){b.splice(E,1);break t}}m=u.createElement(i),St(m,i,l),u.head.appendChild(m);break;default:throw Error(r(468,i))}m[vt]=e,mt(m),i=m}e.stateNode=i}else xg(u,e.type,e.stateNode);else e.stateNode=yg(u,i,e.memoizedProps);else m!==i?(m===null?l.stateNode!==null&&(l=l.stateNode,l.parentNode.removeChild(l)):m.count--,i===null?xg(u,e.type,e.stateNode):yg(u,i,e.memoizedProps)):i===null&&e.stateNode!==null&&Ju(e,e.memoizedProps,l.memoizedProps)}break;case 27:Dt(n,e),Ht(e),i&512&&(ut||l===null||Hn(l,l.return)),l!==null&&i&4&&Ju(e,e.memoizedProps,l.memoizedProps);break;case 5:if(Dt(n,e),Ht(e),i&512&&(ut||l===null||Hn(l,l.return)),e.flags&32){u=e.stateNode;try{Al(u,"")}catch(re){Be(e,e.return,re)}}i&4&&e.stateNode!=null&&(u=e.memoizedProps,Ju(e,u,l!==null?l.memoizedProps:u)),i&1024&&(tf=!0);break;case 6:if(Dt(n,e),Ht(e),i&4){if(e.stateNode===null)throw Error(r(162));i=e.memoizedProps,l=e.stateNode;try{l.nodeValue=i}catch(re){Be(e,e.return,re)}}break;case 3:if(Ji=null,u=bn,bn=Ki(n.containerInfo),Dt(n,e),bn=u,Ht(e),i&4&&l!==null&&l.memoizedState.isDehydrated)try{ca(n.containerInfo)}catch(re){Be(e,e.return,re)}tf&&(tf=!1,x1(e));break;case 4:i=bn,bn=Ki(e.stateNode.containerInfo),Dt(n,e),Ht(e),bn=i;break;case 12:Dt(n,e),Ht(e);break;case 31:Dt(n,e),Ht(e),i&4&&(i=e.updateQueue,i!==null&&(e.updateQueue=null,Li(e,i)));break;case 13:Dt(n,e),Ht(e),e.child.flags&8192&&e.memoizedState!==null!=(l!==null&&l.memoizedState!==null)&&(ki=jt()),i&4&&(i=e.updateQueue,i!==null&&(e.updateQueue=null,Li(e,i)));break;case 22:u=e.memoizedState!==null;var j=l!==null&&l.memoizedState!==null,$=ao,Y=ut;if(ao=$||u,ut=Y||j,Dt(n,e),ut=Y,ao=$,Ht(e),i&8192)e:for(n=e.stateNode,n._visibility=u?n._visibility&-2:n._visibility|1,u&&(l===null||j||ao||ut||vl(e)),l=null,n=e;;){if(n.tag===5||n.tag===26){if(l===null){j=l=n;try{if(m=j.stateNode,u)b=m.style,typeof b.setProperty=="function"?b.setProperty("display","none","important"):b.display="none";else{E=j.stateNode;var Q=j.memoizedProps.style,G=Q!=null&&Q.hasOwnProperty("display")?Q.display:null;E.style.display=G==null||typeof G=="boolean"?"":(""+G).trim()}}catch(re){Be(j,j.return,re)}}}else if(n.tag===6){if(l===null){j=n;try{j.stateNode.nodeValue=u?"":j.memoizedProps}catch(re){Be(j,j.return,re)}}}else if(n.tag===18){if(l===null){j=n;try{var q=j.stateNode;u?cg(q,!0):cg(j.stateNode,!1)}catch(re){Be(j,j.return,re)}}}else if((n.tag!==22&&n.tag!==23||n.memoizedState===null||n===e)&&n.child!==null){n.child.return=n,n=n.child;continue}if(n===e)break e;for(;n.sibling===null;){if(n.return===null||n.return===e)break e;l===n&&(l=null),n=n.return}l===n&&(l=null),n.sibling.return=n.return,n=n.sibling}i&4&&(i=e.updateQueue,i!==null&&(l=i.retryQueue,l!==null&&(i.retryQueue=null,Li(e,l))));break;case 19:Dt(n,e),Ht(e),i&4&&(i=e.updateQueue,i!==null&&(e.updateQueue=null,Li(e,i)));break;case 30:break;case 21:break;default:Dt(n,e),Ht(e)}}function Ht(e){var n=e.flags;if(n&2){try{for(var l,i=e.return;i!==null;){if(f1(i)){l=i;break}i=i.return}if(l==null)throw Error(r(160));switch(l.tag){case 27:var u=l.stateNode,m=Wu(e);zi(e,m,u);break;case 5:var b=l.stateNode;l.flags&32&&(Al(b,""),l.flags&=-33);var E=Wu(e);zi(e,E,b);break;case 3:case 4:var j=l.stateNode.containerInfo,$=Wu(e);ef(e,$,j);break;default:throw Error(r(161))}}catch(Y){Be(e,e.return,Y)}e.flags&=-3}n&4096&&(e.flags&=-4097)}function x1(e){if(e.subtreeFlags&1024)for(e=e.child;e!==null;){var n=e;x1(n),n.tag===5&&n.flags&1024&&n.stateNode.reset(),e=e.sibling}}function io(e,n){if(n.subtreeFlags&8772)for(n=n.child;n!==null;)p1(e,n.alternate,n),n=n.sibling}function vl(e){for(e=e.child;e!==null;){var n=e;switch(n.tag){case 0:case 11:case 14:case 15:Ho(4,n,n.return),vl(n);break;case 1:Hn(n,n.return);var l=n.stateNode;typeof l.componentWillUnmount=="function"&&c1(n,n.return,l),vl(n);break;case 27:gr(n.stateNode);case 26:case 5:Hn(n,n.return),vl(n);break;case 22:n.memoizedState===null&&vl(n);break;case 30:vl(n);break;default:vl(n)}e=e.sibling}}function so(e,n,l){for(l=l&&(n.subtreeFlags&8772)!==0,n=n.child;n!==null;){var i=n.alternate,u=e,m=n,b=m.flags;switch(m.tag){case 0:case 11:case 15:so(u,m,l),rr(4,m);break;case 1:if(so(u,m,l),i=m,u=i.stateNode,typeof u.componentDidMount=="function")try{u.componentDidMount()}catch($){Be(i,i.return,$)}if(i=m,u=i.updateQueue,u!==null){var E=i.stateNode;try{var j=u.shared.hiddenCallbacks;if(j!==null)for(u.shared.hiddenCallbacks=null,u=0;u<j.length;u++)Fp(j[u],E)}catch($){Be(i,i.return,$)}}l&&b&64&&s1(m),ir(m,m.return);break;case 27:d1(m);case 26:case 5:so(u,m,l),l&&i===null&&b&4&&u1(m),ir(m,m.return);break;case 12:so(u,m,l);break;case 31:so(u,m,l),l&&b&4&&v1(u,m);break;case 13:so(u,m,l),l&&b&4&&y1(u,m);break;case 22:m.memoizedState===null&&so(u,m,l),ir(m,m.return);break;case 30:break;default:so(u,m,l)}n=n.sibling}}function nf(e,n){var l=null;e!==null&&e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(l=e.memoizedState.cachePool.pool),e=null,n.memoizedState!==null&&n.memoizedState.cachePool!==null&&(e=n.memoizedState.cachePool.pool),e!==l&&(e!=null&&e.refCount++,l!=null&&Pa(l))}function of(e,n){e=null,n.alternate!==null&&(e=n.alternate.memoizedState.cache),n=n.memoizedState.cache,n!==e&&(n.refCount++,e!=null&&Pa(e))}function xn(e,n,l,i){if(n.subtreeFlags&10256)for(n=n.child;n!==null;)S1(e,n,l,i),n=n.sibling}function S1(e,n,l,i){var u=n.flags;switch(n.tag){case 0:case 11:case 15:xn(e,n,l,i),u&2048&&rr(9,n);break;case 1:xn(e,n,l,i);break;case 3:xn(e,n,l,i),u&2048&&(e=null,n.alternate!==null&&(e=n.alternate.memoizedState.cache),n=n.memoizedState.cache,n!==e&&(n.refCount++,e!=null&&Pa(e)));break;case 12:if(u&2048){xn(e,n,l,i),e=n.stateNode;try{var m=n.memoizedProps,b=m.id,E=m.onPostCommit;typeof E=="function"&&E(b,n.alternate===null?"mount":"update",e.passiveEffectDuration,-0)}catch(j){Be(n,n.return,j)}}else xn(e,n,l,i);break;case 31:xn(e,n,l,i);break;case 13:xn(e,n,l,i);break;case 23:break;case 22:m=n.stateNode,b=n.alternate,n.memoizedState!==null?m._visibility&2?xn(e,n,l,i):sr(e,n):m._visibility&2?xn(e,n,l,i):(m._visibility|=2,Jl(e,n,l,i,(n.subtreeFlags&10256)!==0||!1)),u&2048&&nf(b,n);break;case 24:xn(e,n,l,i),u&2048&&of(n.alternate,n);break;default:xn(e,n,l,i)}}function Jl(e,n,l,i,u){for(u=u&&((n.subtreeFlags&10256)!==0||!1),n=n.child;n!==null;){var m=e,b=n,E=l,j=i,$=b.flags;switch(b.tag){case 0:case 11:case 15:Jl(m,b,E,j,u),rr(8,b);break;case 23:break;case 22:var Y=b.stateNode;b.memoizedState!==null?Y._visibility&2?Jl(m,b,E,j,u):sr(m,b):(Y._visibility|=2,Jl(m,b,E,j,u)),u&&$&2048&&nf(b.alternate,b);break;case 24:Jl(m,b,E,j,u),u&&$&2048&&of(b.alternate,b);break;default:Jl(m,b,E,j,u)}n=n.sibling}}function sr(e,n){if(n.subtreeFlags&10256)for(n=n.child;n!==null;){var l=e,i=n,u=i.flags;switch(i.tag){case 22:sr(l,i),u&2048&&nf(i.alternate,i);break;case 24:sr(l,i),u&2048&&of(i.alternate,i);break;default:sr(l,i)}n=n.sibling}}var cr=8192;function Wl(e,n,l){if(e.subtreeFlags&cr)for(e=e.child;e!==null;)C1(e,n,l),e=e.sibling}function C1(e,n,l){switch(e.tag){case 26:Wl(e,n,l),e.flags&cr&&e.memoizedState!==null&&qx(l,bn,e.memoizedState,e.memoizedProps);break;case 5:Wl(e,n,l);break;case 3:case 4:var i=bn;bn=Ki(e.stateNode.containerInfo),Wl(e,n,l),bn=i;break;case 22:e.memoizedState===null&&(i=e.alternate,i!==null&&i.memoizedState!==null?(i=cr,cr=16777216,Wl(e,n,l),cr=i):Wl(e,n,l));break;default:Wl(e,n,l)}}function w1(e){var n=e.alternate;if(n!==null&&(e=n.child,e!==null)){n.child=null;do n=e.sibling,e.sibling=null,e=n;while(e!==null)}}function ur(e){var n=e.deletions;if((e.flags&16)!==0){if(n!==null)for(var l=0;l<n.length;l++){var i=n[l];pt=i,E1(i,e)}w1(e)}if(e.subtreeFlags&10256)for(e=e.child;e!==null;)T1(e),e=e.sibling}function T1(e){switch(e.tag){case 0:case 11:case 15:ur(e),e.flags&2048&&Ho(9,e,e.return);break;case 3:ur(e);break;case 12:ur(e);break;case 22:var n=e.stateNode;e.memoizedState!==null&&n._visibility&2&&(e.return===null||e.return.tag!==13)?(n._visibility&=-3,Vi(e)):ur(e);break;default:ur(e)}}function Vi(e){var n=e.deletions;if((e.flags&16)!==0){if(n!==null)for(var l=0;l<n.length;l++){var i=n[l];pt=i,E1(i,e)}w1(e)}for(e=e.child;e!==null;){switch(n=e,n.tag){case 0:case 11:case 15:Ho(8,n,n.return),Vi(n);break;case 22:l=n.stateNode,l._visibility&2&&(l._visibility&=-3,Vi(n));break;default:Vi(n)}e=e.sibling}}function E1(e,n){for(;pt!==null;){var l=pt;switch(l.tag){case 0:case 11:case 15:Ho(8,l,n);break;case 23:case 22:if(l.memoizedState!==null&&l.memoizedState.cachePool!==null){var i=l.memoizedState.cachePool.pool;i!=null&&i.refCount++}break;case 24:Pa(l.memoizedState.cache)}if(i=l.child,i!==null)i.return=l,pt=i;else e:for(l=e;pt!==null;){i=pt;var u=i.sibling,m=i.return;if(h1(i),i===l){pt=null;break e}if(u!==null){u.return=m,pt=u;break e}pt=m}}}var ax={getCacheForType:function(e){var n=bt(it),l=n.data.get(e);return l===void 0&&(l=e(),n.data.set(e,l)),l},cacheSignal:function(){return bt(it).controller.signal}},rx=typeof WeakMap=="function"?WeakMap:Map,Le=0,Ze=null,we=null,Me=0,ke=0,It=null,zo=!1,ea=!1,lf=!1,co=0,nt=0,Lo=0,yl=0,af=0,Kt=0,ta=0,fr=null,zt=null,rf=!1,ki=0,M1=0,Bi=1/0,Ui=null,Vo=null,dt=0,ko=null,na=null,uo=0,sf=0,cf=null,R1=null,dr=0,uf=null;function Ft(){return(Le&2)!==0&&Me!==0?Me&-Me:D.T!==null?gf():Zm()}function j1(){if(Kt===0)if((Me&536870912)===0||je){var e=Qr;Qr<<=1,(Qr&3932160)===0&&(Qr=262144),Kt=e}else Kt=536870912;return e=Pt.current,e!==null&&(e.flags|=32),Kt}function Lt(e,n,l){(e===Ze&&(ke===2||ke===9)||e.cancelPendingCommit!==null)&&(oa(e,0),Bo(e,Me,Kt,!1)),Da(e,l),((Le&2)===0||e!==Ze)&&(e===Ze&&((Le&2)===0&&(yl|=l),nt===4&&Bo(e,Me,Kt,!1)),zn(e))}function _1(e,n,l){if((Le&6)!==0)throw Error(r(327));var i=!l&&(n&127)===0&&(n&e.expiredLanes)===0||Aa(e,n),u=i?cx(e,n):df(e,n,!0),m=i;do{if(u===0){ea&&!i&&Bo(e,n,0,!1);break}else{if(l=e.current.alternate,m&&!ix(l)){u=df(e,n,!1),m=!1;continue}if(u===2){if(m=n,e.errorRecoveryDisabledLanes&m)var b=0;else b=e.pendingLanes&-536870913,b=b!==0?b:b&536870912?536870912:0;if(b!==0){n=b;e:{var E=e;u=fr;var j=E.current.memoizedState.isDehydrated;if(j&&(oa(E,b).flags|=256),b=df(E,b,!1),b!==2){if(lf&&!j){E.errorRecoveryDisabledLanes|=m,yl|=m,u=4;break e}m=zt,zt=u,m!==null&&(zt===null?zt=m:zt.push.apply(zt,m))}u=b}if(m=!1,u!==2)continue}}if(u===1){oa(e,0),Bo(e,n,0,!0);break}e:{switch(i=e,m=u,m){case 0:case 1:throw Error(r(345));case 4:if((n&4194048)!==n)break;case 6:Bo(i,n,Kt,!zo);break e;case 2:zt=null;break;case 3:case 5:break;default:throw Error(r(329))}if((n&62914560)===n&&(u=ki+300-jt(),10<u)){if(Bo(i,n,Kt,!zo),Kr(i,0,!0)!==0)break e;uo=n,i.timeoutHandle=rg(O1.bind(null,i,l,zt,Ui,rf,n,Kt,yl,ta,zo,m,"Throttled",-0,0),u);break e}O1(i,l,zt,Ui,rf,n,Kt,yl,ta,zo,m,null,-0,0)}}break}while(!0);zn(e)}function O1(e,n,l,i,u,m,b,E,j,$,Y,Q,G,q){if(e.timeoutHandle=-1,Q=n.subtreeFlags,Q&8192||(Q&16785408)===16785408){Q={stylesheets:null,count:0,imgCount:0,imgBytes:0,suspenseyImages:[],waitingForImages:!0,waitingForViewTransition:!1,unsuspend:In},C1(n,m,Q);var re=(m&62914560)===m?ki-jt():(m&4194048)===m?M1-jt():0;if(re=Yx(Q,re),re!==null){uo=m,e.cancelPendingCommit=re(k1.bind(null,e,n,m,l,i,u,b,E,j,Y,Q,null,G,q)),Bo(e,m,b,!$);return}}k1(e,n,m,l,i,u,b,E,j)}function ix(e){for(var n=e;;){var l=n.tag;if((l===0||l===11||l===15)&&n.flags&16384&&(l=n.updateQueue,l!==null&&(l=l.stores,l!==null)))for(var i=0;i<l.length;i++){var u=l[i],m=u.getSnapshot;u=u.value;try{if(!Yt(m(),u))return!1}catch{return!1}}if(l=n.child,n.subtreeFlags&16384&&l!==null)l.return=n,n=l;else{if(n===e)break;for(;n.sibling===null;){if(n.return===null||n.return===e)return!0;n=n.return}n.sibling.return=n.return,n=n.sibling}}return!0}function Bo(e,n,l,i){n&=~af,n&=~yl,e.suspendedLanes|=n,e.pingedLanes&=~n,i&&(e.warmLanes|=n),i=e.expirationTimes;for(var u=n;0<u;){var m=31-qt(u),b=1<<m;i[m]=-1,u&=~b}l!==0&&Um(e,l,n)}function $i(){return(Le&6)===0?(mr(0),!1):!0}function ff(){if(we!==null){if(ke===0)var e=we.return;else e=we,Wn=cl=null,Mu(e),Pl=null,Ia=0,e=we;for(;e!==null;)i1(e.alternate,e),e=e.return;we=null}}function oa(e,n){var l=e.timeoutHandle;l!==-1&&(e.timeoutHandle=-1,Rx(l)),l=e.cancelPendingCommit,l!==null&&(e.cancelPendingCommit=null,l()),uo=0,ff(),Ze=e,we=l=Fn(e.current,null),Me=n,ke=0,It=null,zo=!1,ea=Aa(e,n),lf=!1,ta=Kt=af=yl=Lo=nt=0,zt=fr=null,rf=!1,(n&8)!==0&&(n|=n&32);var i=e.entangledLanes;if(i!==0)for(e=e.entanglements,i&=n;0<i;){var u=31-qt(i),m=1<<u;n|=e[u],i&=~m}return co=n,si(),l}function N1(e,n){be=null,D.H=or,n===Xl||n===gi?(n=Pp(),ke=3):n===pu?(n=Pp(),ke=4):ke=n===Gu?8:n!==null&&typeof n=="object"&&typeof n.then=="function"?6:1,It=n,we===null&&(nt=1,Oi(e,an(n,e.current)))}function A1(){var e=Pt.current;return e===null?!0:(Me&4194048)===Me?un===null:(Me&62914560)===Me||(Me&536870912)!==0?e===un:!1}function D1(){var e=D.H;return D.H=or,e===null?or:e}function H1(){var e=D.A;return D.A=ax,e}function Gi(){nt=4,zo||(Me&4194048)!==Me&&Pt.current!==null||(ea=!0),(Lo&134217727)===0&&(yl&134217727)===0||Ze===null||Bo(Ze,Me,Kt,!1)}function df(e,n,l){var i=Le;Le|=2;var u=D1(),m=H1();(Ze!==e||Me!==n)&&(Ui=null,oa(e,n)),n=!1;var b=nt;e:do try{if(ke!==0&&we!==null){var E=we,j=It;switch(ke){case 8:ff(),b=6;break e;case 3:case 2:case 9:case 6:Pt.current===null&&(n=!0);var $=ke;if(ke=0,It=null,la(e,E,j,$),l&&ea){b=0;break e}break;default:$=ke,ke=0,It=null,la(e,E,j,$)}}sx(),b=nt;break}catch(Y){N1(e,Y)}while(!0);return n&&e.shellSuspendCounter++,Wn=cl=null,Le=i,D.H=u,D.A=m,we===null&&(Ze=null,Me=0,si()),b}function sx(){for(;we!==null;)z1(we)}function cx(e,n){var l=Le;Le|=2;var i=D1(),u=H1();Ze!==e||Me!==n?(Ui=null,Bi=jt()+500,oa(e,n)):ea=Aa(e,n);e:do try{if(ke!==0&&we!==null){n=we;var m=It;t:switch(ke){case 1:ke=0,It=null,la(e,n,m,1);break;case 2:case 9:if(Yp(m)){ke=0,It=null,L1(n);break}n=function(){ke!==2&&ke!==9||Ze!==e||(ke=7),zn(e)},m.then(n,n);break e;case 3:ke=7;break e;case 4:ke=5;break e;case 7:Yp(m)?(ke=0,It=null,L1(n)):(ke=0,It=null,la(e,n,m,7));break;case 5:var b=null;switch(we.tag){case 26:b=we.memoizedState;case 5:case 27:var E=we;if(b?Sg(b):E.stateNode.complete){ke=0,It=null;var j=E.sibling;if(j!==null)we=j;else{var $=E.return;$!==null?(we=$,Zi($)):we=null}break t}}ke=0,It=null,la(e,n,m,5);break;case 6:ke=0,It=null,la(e,n,m,6);break;case 8:ff(),nt=6;break e;default:throw Error(r(462))}}ux();break}catch(Y){N1(e,Y)}while(!0);return Wn=cl=null,D.H=i,D.A=u,Le=l,we!==null?0:(Ze=null,Me=0,si(),nt)}function ux(){for(;we!==null&&!Cc();)z1(we)}function z1(e){var n=a1(e.alternate,e,co);e.memoizedProps=e.pendingProps,n===null?Zi(e):we=n}function L1(e){var n=e,l=n.alternate;switch(n.tag){case 15:case 0:n=Wh(l,n,n.pendingProps,n.type,void 0,Me);break;case 11:n=Wh(l,n,n.pendingProps,n.type.render,n.ref,Me);break;case 5:Mu(n);default:i1(l,n),n=we=Hp(n,co),n=a1(l,n,co)}e.memoizedProps=e.pendingProps,n===null?Zi(e):we=n}function la(e,n,l,i){Wn=cl=null,Mu(n),Pl=null,Ia=0;var u=n.return;try{if(J2(e,u,n,l,Me)){nt=1,Oi(e,an(l,e.current)),we=null;return}}catch(m){if(u!==null)throw we=u,m;nt=1,Oi(e,an(l,e.current)),we=null;return}n.flags&32768?(je||i===1?e=!0:ea||(Me&536870912)!==0?e=!1:(zo=e=!0,(i===2||i===9||i===3||i===6)&&(i=Pt.current,i!==null&&i.tag===13&&(i.flags|=16384))),V1(n,e)):Zi(n)}function Zi(e){var n=e;do{if((n.flags&32768)!==0){V1(n,zo);return}e=n.return;var l=tx(n.alternate,n,co);if(l!==null){we=l;return}if(n=n.sibling,n!==null){we=n;return}we=n=e}while(n!==null);nt===0&&(nt=5)}function V1(e,n){do{var l=nx(e.alternate,e);if(l!==null){l.flags&=32767,we=l;return}if(l=e.return,l!==null&&(l.flags|=32768,l.subtreeFlags=0,l.deletions=null),!n&&(e=e.sibling,e!==null)){we=e;return}we=e=l}while(e!==null);nt=6,we=null}function k1(e,n,l,i,u,m,b,E,j){e.cancelPendingCommit=null;do qi();while(dt!==0);if((Le&6)!==0)throw Error(r(327));if(n!==null){if(n===e.current)throw Error(r(177));if(m=n.lanes|n.childLanes,m|=Wc,Zb(e,l,m,b,E,j),e===Ze&&(we=Ze=null,Me=0),na=n,ko=e,uo=l,sf=m,cf=u,R1=i,(n.subtreeFlags&10256)!==0||(n.flags&10256)!==0?(e.callbackNode=null,e.callbackPriority=0,px(El,function(){return Z1(),null})):(e.callbackNode=null,e.callbackPriority=0),i=(n.flags&13878)!==0,(n.subtreeFlags&13878)!==0||i){i=D.T,D.T=null,u=U.p,U.p=2,b=Le,Le|=4;try{ox(e,n,l)}finally{Le=b,U.p=u,D.T=i}}dt=1,B1(),U1(),$1()}}function B1(){if(dt===1){dt=0;var e=ko,n=na,l=(n.flags&13878)!==0;if((n.subtreeFlags&13878)!==0||l){l=D.T,D.T=null;var i=U.p;U.p=2;var u=Le;Le|=4;try{b1(n,e);var m=Tf,b=Ep(e.containerInfo),E=m.focusedElem,j=m.selectionRange;if(b!==E&&E&&E.ownerDocument&&Tp(E.ownerDocument.documentElement,E)){if(j!==null&&Qc(E)){var $=j.start,Y=j.end;if(Y===void 0&&(Y=$),"selectionStart"in E)E.selectionStart=$,E.selectionEnd=Math.min(Y,E.value.length);else{var Q=E.ownerDocument||document,G=Q&&Q.defaultView||window;if(G.getSelection){var q=G.getSelection(),re=E.textContent.length,me=Math.min(j.start,re),Ge=j.end===void 0?me:Math.min(j.end,re);!q.extend&&me>Ge&&(b=Ge,Ge=me,me=b);var z=wp(E,me),O=wp(E,Ge);if(z&&O&&(q.rangeCount!==1||q.anchorNode!==z.node||q.anchorOffset!==z.offset||q.focusNode!==O.node||q.focusOffset!==O.offset)){var k=Q.createRange();k.setStart(z.node,z.offset),q.removeAllRanges(),me>Ge?(q.addRange(k),q.extend(O.node,O.offset)):(k.setEnd(O.node,O.offset),q.addRange(k))}}}}for(Q=[],q=E;q=q.parentNode;)q.nodeType===1&&Q.push({element:q,left:q.scrollLeft,top:q.scrollTop});for(typeof E.focus=="function"&&E.focus(),E=0;E<Q.length;E++){var X=Q[E];X.element.scrollLeft=X.left,X.element.scrollTop=X.top}}ns=!!wf,Tf=wf=null}finally{Le=u,U.p=i,D.T=l}}e.current=n,dt=2}}function U1(){if(dt===2){dt=0;var e=ko,n=na,l=(n.flags&8772)!==0;if((n.subtreeFlags&8772)!==0||l){l=D.T,D.T=null;var i=U.p;U.p=2;var u=Le;Le|=4;try{p1(e,n.alternate,n)}finally{Le=u,U.p=i,D.T=l}}dt=3}}function $1(){if(dt===4||dt===3){dt=0,wc();var e=ko,n=na,l=uo,i=R1;(n.subtreeFlags&10256)!==0||(n.flags&10256)!==0?dt=5:(dt=0,na=ko=null,G1(e,e.pendingLanes));var u=e.pendingLanes;if(u===0&&(Vo=null),_c(l),n=n.stateNode,Zt&&typeof Zt.onCommitFiberRoot=="function")try{Zt.onCommitFiberRoot(Na,n,void 0,(n.current.flags&128)===128)}catch{}if(i!==null){n=D.T,u=U.p,U.p=2,D.T=null;try{for(var m=e.onRecoverableError,b=0;b<i.length;b++){var E=i[b];m(E.value,{componentStack:E.stack})}}finally{D.T=n,U.p=u}}(uo&3)!==0&&qi(),zn(e),u=e.pendingLanes,(l&261930)!==0&&(u&42)!==0?e===uf?dr++:(dr=0,uf=e):dr=0,mr(0)}}function G1(e,n){(e.pooledCacheLanes&=n)===0&&(n=e.pooledCache,n!=null&&(e.pooledCache=null,Pa(n)))}function qi(){return B1(),U1(),$1(),Z1()}function Z1(){if(dt!==5)return!1;var e=ko,n=sf;sf=0;var l=_c(uo),i=D.T,u=U.p;try{U.p=32>l?32:l,D.T=null,l=cf,cf=null;var m=ko,b=uo;if(dt=0,na=ko=null,uo=0,(Le&6)!==0)throw Error(r(331));var E=Le;if(Le|=4,T1(m.current),S1(m,m.current,b,l),Le=E,mr(0,!1),Zt&&typeof Zt.onPostCommitFiberRoot=="function")try{Zt.onPostCommitFiberRoot(Na,m)}catch{}return!0}finally{U.p=u,D.T=i,G1(e,n)}}function q1(e,n,l){n=an(l,n),n=$u(e.stateNode,n,2),e=No(e,n,2),e!==null&&(Da(e,2),zn(e))}function Be(e,n,l){if(e.tag===3)q1(e,e,l);else for(;n!==null;){if(n.tag===3){q1(n,e,l);break}else if(n.tag===1){var i=n.stateNode;if(typeof n.type.getDerivedStateFromError=="function"||typeof i.componentDidCatch=="function"&&(Vo===null||!Vo.has(i))){e=an(l,e),l=Yh(2),i=No(n,l,2),i!==null&&(Xh(l,i,n,e),Da(i,2),zn(i));break}}n=n.return}}function mf(e,n,l){var i=e.pingCache;if(i===null){i=e.pingCache=new rx;var u=new Set;i.set(n,u)}else u=i.get(n),u===void 0&&(u=new Set,i.set(n,u));u.has(l)||(lf=!0,u.add(l),e=fx.bind(null,e,n,l),n.then(e,e))}function fx(e,n,l){var i=e.pingCache;i!==null&&i.delete(n),e.pingedLanes|=e.suspendedLanes&l,e.warmLanes&=~l,Ze===e&&(Me&l)===l&&(nt===4||nt===3&&(Me&62914560)===Me&&300>jt()-ki?(Le&2)===0&&oa(e,0):af|=l,ta===Me&&(ta=0)),zn(e)}function Y1(e,n){n===0&&(n=Bm()),e=rl(e,n),e!==null&&(Da(e,n),zn(e))}function dx(e){var n=e.memoizedState,l=0;n!==null&&(l=n.retryLane),Y1(e,l)}function mx(e,n){var l=0;switch(e.tag){case 31:case 13:var i=e.stateNode,u=e.memoizedState;u!==null&&(l=u.retryLane);break;case 19:i=e.stateNode;break;case 22:i=e.stateNode._retryCache;break;default:throw Error(r(314))}i!==null&&i.delete(n),Y1(e,l)}function px(e,n){return Xn(e,n)}var Yi=null,aa=null,pf=!1,Xi=!1,hf=!1,Uo=0;function zn(e){e!==aa&&e.next===null&&(aa===null?Yi=aa=e:aa=aa.next=e),Xi=!0,pf||(pf=!0,gx())}function mr(e,n){if(!hf&&Xi){hf=!0;do for(var l=!1,i=Yi;i!==null;){if(e!==0){var u=i.pendingLanes;if(u===0)var m=0;else{var b=i.suspendedLanes,E=i.pingedLanes;m=(1<<31-qt(42|e)+1)-1,m&=u&~(b&~E),m=m&201326741?m&201326741|1:m?m|2:0}m!==0&&(l=!0,I1(i,m))}else m=Me,m=Kr(i,i===Ze?m:0,i.cancelPendingCommit!==null||i.timeoutHandle!==-1),(m&3)===0||Aa(i,m)||(l=!0,I1(i,m));i=i.next}while(l);hf=!1}}function hx(){X1()}function X1(){Xi=pf=!1;var e=0;Uo!==0&&Mx()&&(e=Uo);for(var n=jt(),l=null,i=Yi;i!==null;){var u=i.next,m=P1(i,n);m===0?(i.next=null,l===null?Yi=u:l.next=u,u===null&&(aa=l)):(l=i,(e!==0||(m&3)!==0)&&(Xi=!0)),i=u}dt!==0&&dt!==5||mr(e),Uo!==0&&(Uo=0)}function P1(e,n){for(var l=e.suspendedLanes,i=e.pingedLanes,u=e.expirationTimes,m=e.pendingLanes&-62914561;0<m;){var b=31-qt(m),E=1<<b,j=u[b];j===-1?((E&l)===0||(E&i)!==0)&&(u[b]=Gb(E,n)):j<=n&&(e.expiredLanes|=E),m&=~E}if(n=Ze,l=Me,l=Kr(e,e===n?l:0,e.cancelPendingCommit!==null||e.timeoutHandle!==-1),i=e.callbackNode,l===0||e===n&&(ke===2||ke===9)||e.cancelPendingCommit!==null)return i!==null&&i!==null&&Tl(i),e.callbackNode=null,e.callbackPriority=0;if((l&3)===0||Aa(e,l)){if(n=l&-l,n===e.callbackPriority)return n;switch(i!==null&&Tl(i),_c(l)){case 2:case 8:l=ft;break;case 32:l=El;break;case 268435456:l=Xr;break;default:l=El}return i=Q1.bind(null,e),l=Xn(l,i),e.callbackPriority=n,e.callbackNode=l,n}return i!==null&&i!==null&&Tl(i),e.callbackPriority=2,e.callbackNode=null,2}function Q1(e,n){if(dt!==0&&dt!==5)return e.callbackNode=null,e.callbackPriority=0,null;var l=e.callbackNode;if(qi()&&e.callbackNode!==l)return null;var i=Me;return i=Kr(e,e===Ze?i:0,e.cancelPendingCommit!==null||e.timeoutHandle!==-1),i===0?null:(_1(e,i,n),P1(e,jt()),e.callbackNode!=null&&e.callbackNode===l?Q1.bind(null,e):null)}function I1(e,n){if(qi())return null;_1(e,n,!0)}function gx(){jx(function(){(Le&6)!==0?Xn(Oa,hx):X1()})}function gf(){if(Uo===0){var e=ql;e===0&&(e=Pr,Pr<<=1,(Pr&261888)===0&&(Pr=256)),Uo=e}return Uo}function K1(e){return e==null||typeof e=="symbol"||typeof e=="boolean"?null:typeof e=="function"?e:ei(""+e)}function F1(e,n){var l=n.ownerDocument.createElement("input");return l.name=n.name,l.value=n.value,e.id&&l.setAttribute("form",e.id),n.parentNode.insertBefore(l,n),e=new FormData(e),l.parentNode.removeChild(l),e}function vx(e,n,l,i,u){if(n==="submit"&&l&&l.stateNode===u){var m=K1((u[Ot]||null).action),b=i.submitter;b&&(n=(n=b[Ot]||null)?K1(n.formAction):b.getAttribute("formAction"),n!==null&&(m=n,b=null));var E=new li("action","action",null,i,u);e.push({event:E,listeners:[{instance:null,listener:function(){if(i.defaultPrevented){if(Uo!==0){var j=b?F1(u,b):new FormData(u);zu(l,{pending:!0,data:j,method:u.method,action:m},null,j)}}else typeof m=="function"&&(E.preventDefault(),j=b?F1(u,b):new FormData(u),zu(l,{pending:!0,data:j,method:u.method,action:m},m,j))},currentTarget:u}]})}}for(var vf=0;vf<Jc.length;vf++){var yf=Jc[vf],yx=yf.toLowerCase(),bx=yf[0].toUpperCase()+yf.slice(1);yn(yx,"on"+bx)}yn(jp,"onAnimationEnd"),yn(_p,"onAnimationIteration"),yn(Op,"onAnimationStart"),yn("dblclick","onDoubleClick"),yn("focusin","onFocus"),yn("focusout","onBlur"),yn(z2,"onTransitionRun"),yn(L2,"onTransitionStart"),yn(V2,"onTransitionCancel"),yn(Np,"onTransitionEnd"),Ol("onMouseEnter",["mouseout","mouseover"]),Ol("onMouseLeave",["mouseout","mouseover"]),Ol("onPointerEnter",["pointerout","pointerover"]),Ol("onPointerLeave",["pointerout","pointerover"]),nl("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),nl("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),nl("onBeforeInput",["compositionend","keypress","textInput","paste"]),nl("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),nl("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),nl("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var pr="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(" "),xx=new Set("beforetoggle cancel close invalid load scroll scrollend toggle".split(" ").concat(pr));function J1(e,n){n=(n&4)!==0;for(var l=0;l<e.length;l++){var i=e[l],u=i.event;i=i.listeners;e:{var m=void 0;if(n)for(var b=i.length-1;0<=b;b--){var E=i[b],j=E.instance,$=E.currentTarget;if(E=E.listener,j!==m&&u.isPropagationStopped())break e;m=E,u.currentTarget=$;try{m(u)}catch(Y){ii(Y)}u.currentTarget=null,m=j}else for(b=0;b<i.length;b++){if(E=i[b],j=E.instance,$=E.currentTarget,E=E.listener,j!==m&&u.isPropagationStopped())break e;m=E,u.currentTarget=$;try{m(u)}catch(Y){ii(Y)}u.currentTarget=null,m=j}}}}function Te(e,n){var l=n[Oc];l===void 0&&(l=n[Oc]=new Set);var i=e+"__bubble";l.has(i)||(W1(n,e,2,!1),l.add(i))}function bf(e,n,l){var i=0;n&&(i|=4),W1(l,e,i,n)}var Pi="_reactListening"+Math.random().toString(36).slice(2);function xf(e){if(!e[Pi]){e[Pi]=!0,Xm.forEach(function(l){l!=="selectionchange"&&(xx.has(l)||bf(l,!1,e),bf(l,!0,e))});var n=e.nodeType===9?e:e.ownerDocument;n===null||n[Pi]||(n[Pi]=!0,bf("selectionchange",!1,n))}}function W1(e,n,l,i){switch(jg(n)){case 2:var u=Qx;break;case 8:u=Ix;break;default:u=zf}l=u.bind(null,n,l,e),u=void 0,!Bc||n!=="touchstart"&&n!=="touchmove"&&n!=="wheel"||(u=!0),i?u!==void 0?e.addEventListener(n,l,{capture:!0,passive:u}):e.addEventListener(n,l,!0):u!==void 0?e.addEventListener(n,l,{passive:u}):e.addEventListener(n,l,!1)}function Sf(e,n,l,i,u){var m=i;if((n&1)===0&&(n&2)===0&&i!==null)e:for(;;){if(i===null)return;var b=i.tag;if(b===3||b===4){var E=i.stateNode.containerInfo;if(E===u)break;if(b===4)for(b=i.return;b!==null;){var j=b.tag;if((j===3||j===4)&&b.stateNode.containerInfo===u)return;b=b.return}for(;E!==null;){if(b=Rl(E),b===null)return;if(j=b.tag,j===5||j===6||j===26||j===27){i=m=b;continue e}E=E.parentNode}}i=i.return}lp(function(){var $=m,Y=Vc(l),Q=[];e:{var G=Ap.get(e);if(G!==void 0){var q=li,re=e;switch(e){case"keypress":if(ni(l)===0)break e;case"keydown":case"keyup":q=m2;break;case"focusin":re="focus",q=Zc;break;case"focusout":re="blur",q=Zc;break;case"beforeblur":case"afterblur":q=Zc;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":q=ip;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":q=t2;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":q=g2;break;case jp:case _p:case Op:q=l2;break;case Np:q=y2;break;case"scroll":case"scrollend":q=Wb;break;case"wheel":q=x2;break;case"copy":case"cut":case"paste":q=r2;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":q=cp;break;case"toggle":case"beforetoggle":q=C2}var me=(n&4)!==0,Ge=!me&&(e==="scroll"||e==="scrollend"),z=me?G!==null?G+"Capture":null:G;me=[];for(var O=$,k;O!==null;){var X=O;if(k=X.stateNode,X=X.tag,X!==5&&X!==26&&X!==27||k===null||z===null||(X=La(O,z),X!=null&&me.push(hr(O,X,k))),Ge)break;O=O.return}0<me.length&&(G=new q(G,re,null,l,Y),Q.push({event:G,listeners:me}))}}if((n&7)===0){e:{if(G=e==="mouseover"||e==="pointerover",q=e==="mouseout"||e==="pointerout",G&&l!==Lc&&(re=l.relatedTarget||l.fromElement)&&(Rl(re)||re[Ml]))break e;if((q||G)&&(G=Y.window===Y?Y:(G=Y.ownerDocument)?G.defaultView||G.parentWindow:window,q?(re=l.relatedTarget||l.toElement,q=$,re=re?Rl(re):null,re!==null&&(Ge=c(re),me=re.tag,re!==Ge||me!==5&&me!==27&&me!==6)&&(re=null)):(q=null,re=$),q!==re)){if(me=ip,X="onMouseLeave",z="onMouseEnter",O="mouse",(e==="pointerout"||e==="pointerover")&&(me=cp,X="onPointerLeave",z="onPointerEnter",O="pointer"),Ge=q==null?G:za(q),k=re==null?G:za(re),G=new me(X,O+"leave",q,l,Y),G.target=Ge,G.relatedTarget=k,X=null,Rl(Y)===$&&(me=new me(z,O+"enter",re,l,Y),me.target=k,me.relatedTarget=Ge,X=me),Ge=X,q&&re)t:{for(me=Sx,z=q,O=re,k=0,X=z;X;X=me(X))k++;X=0;for(var ce=O;ce;ce=me(ce))X++;for(;0<k-X;)z=me(z),k--;for(;0<X-k;)O=me(O),X--;for(;k--;){if(z===O||O!==null&&z===O.alternate){me=z;break t}z=me(z),O=me(O)}me=null}else me=null;q!==null&&eg(Q,G,q,me,!1),re!==null&&Ge!==null&&eg(Q,Ge,re,me,!0)}}e:{if(G=$?za($):window,q=G.nodeName&&G.nodeName.toLowerCase(),q==="select"||q==="input"&&G.type==="file")var De=vp;else if(hp(G))if(yp)De=A2;else{De=O2;var se=_2}else q=G.nodeName,!q||q.toLowerCase()!=="input"||G.type!=="checkbox"&&G.type!=="radio"?$&&zc($.elementType)&&(De=vp):De=N2;if(De&&(De=De(e,$))){gp(Q,De,l,Y);break e}se&&se(e,G,$),e==="focusout"&&$&&G.type==="number"&&$.memoizedProps.value!=null&&Hc(G,"number",G.value)}switch(se=$?za($):window,e){case"focusin":(hp(se)||se.contentEditable==="true")&&(Ll=se,Ic=$,qa=null);break;case"focusout":qa=Ic=Ll=null;break;case"mousedown":Kc=!0;break;case"contextmenu":case"mouseup":case"dragend":Kc=!1,Mp(Q,l,Y);break;case"selectionchange":if(H2)break;case"keydown":case"keyup":Mp(Q,l,Y)}var xe;if(Yc)e:{switch(e){case"compositionstart":var Re="onCompositionStart";break e;case"compositionend":Re="onCompositionEnd";break e;case"compositionupdate":Re="onCompositionUpdate";break e}Re=void 0}else zl?mp(e,l)&&(Re="onCompositionEnd"):e==="keydown"&&l.keyCode===229&&(Re="onCompositionStart");Re&&(up&&l.locale!=="ko"&&(zl||Re!=="onCompositionStart"?Re==="onCompositionEnd"&&zl&&(xe=ap()):(To=Y,Uc="value"in To?To.value:To.textContent,zl=!0)),se=Qi($,Re),0<se.length&&(Re=new sp(Re,e,null,l,Y),Q.push({event:Re,listeners:se}),xe?Re.data=xe:(xe=pp(l),xe!==null&&(Re.data=xe)))),(xe=T2?E2(e,l):M2(e,l))&&(Re=Qi($,"onBeforeInput"),0<Re.length&&(se=new sp("onBeforeInput","beforeinput",null,l,Y),Q.push({event:se,listeners:Re}),se.data=xe)),vx(Q,e,$,l,Y)}J1(Q,n)})}function hr(e,n,l){return{instance:e,listener:n,currentTarget:l}}function Qi(e,n){for(var l=n+"Capture",i=[];e!==null;){var u=e,m=u.stateNode;if(u=u.tag,u!==5&&u!==26&&u!==27||m===null||(u=La(e,l),u!=null&&i.unshift(hr(e,u,m)),u=La(e,n),u!=null&&i.push(hr(e,u,m))),e.tag===3)return i;e=e.return}return[]}function Sx(e){if(e===null)return null;do e=e.return;while(e&&e.tag!==5&&e.tag!==27);return e||null}function eg(e,n,l,i,u){for(var m=n._reactName,b=[];l!==null&&l!==i;){var E=l,j=E.alternate,$=E.stateNode;if(E=E.tag,j!==null&&j===i)break;E!==5&&E!==26&&E!==27||$===null||(j=$,u?($=La(l,m),$!=null&&b.unshift(hr(l,$,j))):u||($=La(l,m),$!=null&&b.push(hr(l,$,j)))),l=l.return}b.length!==0&&e.push({event:n,listeners:b})}var Cx=/\r\n?/g,wx=/\u0000|\uFFFD/g;function tg(e){return(typeof e=="string"?e:""+e).replace(Cx,`
|
|
9
|
-
`).replace(wx,"")}function ng(e,n){return n=tg(n),tg(e)===n}function $e(e,n,l,i,u,m){switch(l){case"children":typeof i=="string"?n==="body"||n==="textarea"&&i===""||Al(e,i):(typeof i=="number"||typeof i=="bigint")&&n!=="body"&&Al(e,""+i);break;case"className":Jr(e,"class",i);break;case"tabIndex":Jr(e,"tabindex",i);break;case"dir":case"role":case"viewBox":case"width":case"height":Jr(e,l,i);break;case"style":np(e,i,m);break;case"data":if(n!=="object"){Jr(e,"data",i);break}case"src":case"href":if(i===""&&(n!=="a"||l!=="href")){e.removeAttribute(l);break}if(i==null||typeof i=="function"||typeof i=="symbol"||typeof i=="boolean"){e.removeAttribute(l);break}i=ei(""+i),e.setAttribute(l,i);break;case"action":case"formAction":if(typeof i=="function"){e.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 m=="function"&&(l==="formAction"?(n!=="input"&&$e(e,n,"name",u.name,u,null),$e(e,n,"formEncType",u.formEncType,u,null),$e(e,n,"formMethod",u.formMethod,u,null),$e(e,n,"formTarget",u.formTarget,u,null)):($e(e,n,"encType",u.encType,u,null),$e(e,n,"method",u.method,u,null),$e(e,n,"target",u.target,u,null)));if(i==null||typeof i=="symbol"||typeof i=="boolean"){e.removeAttribute(l);break}i=ei(""+i),e.setAttribute(l,i);break;case"onClick":i!=null&&(e.onclick=In);break;case"onScroll":i!=null&&Te("scroll",e);break;case"onScrollEnd":i!=null&&Te("scrollend",e);break;case"dangerouslySetInnerHTML":if(i!=null){if(typeof i!="object"||!("__html"in i))throw Error(r(61));if(l=i.__html,l!=null){if(u.children!=null)throw Error(r(60));e.innerHTML=l}}break;case"multiple":e.multiple=i&&typeof i!="function"&&typeof i!="symbol";break;case"muted":e.muted=i&&typeof i!="function"&&typeof i!="symbol";break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"defaultValue":case"defaultChecked":case"innerHTML":case"ref":break;case"autoFocus":break;case"xlinkHref":if(i==null||typeof i=="function"||typeof i=="boolean"||typeof i=="symbol"){e.removeAttribute("xlink:href");break}l=ei(""+i),e.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":i!=null&&typeof i!="function"&&typeof i!="symbol"?e.setAttribute(l,""+i):e.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":i&&typeof i!="function"&&typeof i!="symbol"?e.setAttribute(l,""):e.removeAttribute(l);break;case"capture":case"download":i===!0?e.setAttribute(l,""):i!==!1&&i!=null&&typeof i!="function"&&typeof i!="symbol"?e.setAttribute(l,i):e.removeAttribute(l);break;case"cols":case"rows":case"size":case"span":i!=null&&typeof i!="function"&&typeof i!="symbol"&&!isNaN(i)&&1<=i?e.setAttribute(l,i):e.removeAttribute(l);break;case"rowSpan":case"start":i==null||typeof i=="function"||typeof i=="symbol"||isNaN(i)?e.removeAttribute(l):e.setAttribute(l,i);break;case"popover":Te("beforetoggle",e),Te("toggle",e),Fr(e,"popover",i);break;case"xlinkActuate":Qn(e,"http://www.w3.org/1999/xlink","xlink:actuate",i);break;case"xlinkArcrole":Qn(e,"http://www.w3.org/1999/xlink","xlink:arcrole",i);break;case"xlinkRole":Qn(e,"http://www.w3.org/1999/xlink","xlink:role",i);break;case"xlinkShow":Qn(e,"http://www.w3.org/1999/xlink","xlink:show",i);break;case"xlinkTitle":Qn(e,"http://www.w3.org/1999/xlink","xlink:title",i);break;case"xlinkType":Qn(e,"http://www.w3.org/1999/xlink","xlink:type",i);break;case"xmlBase":Qn(e,"http://www.w3.org/XML/1998/namespace","xml:base",i);break;case"xmlLang":Qn(e,"http://www.w3.org/XML/1998/namespace","xml:lang",i);break;case"xmlSpace":Qn(e,"http://www.w3.org/XML/1998/namespace","xml:space",i);break;case"is":Fr(e,"is",i);break;case"innerText":case"textContent":break;default:(!(2<l.length)||l[0]!=="o"&&l[0]!=="O"||l[1]!=="n"&&l[1]!=="N")&&(l=Fb.get(l)||l,Fr(e,l,i))}}function Cf(e,n,l,i,u,m){switch(l){case"style":np(e,i,m);break;case"dangerouslySetInnerHTML":if(i!=null){if(typeof i!="object"||!("__html"in i))throw Error(r(61));if(l=i.__html,l!=null){if(u.children!=null)throw Error(r(60));e.innerHTML=l}}break;case"children":typeof i=="string"?Al(e,i):(typeof i=="number"||typeof i=="bigint")&&Al(e,""+i);break;case"onScroll":i!=null&&Te("scroll",e);break;case"onScrollEnd":i!=null&&Te("scrollend",e);break;case"onClick":i!=null&&(e.onclick=In);break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"innerHTML":case"ref":break;case"innerText":case"textContent":break;default:if(!Pm.hasOwnProperty(l))e:{if(l[0]==="o"&&l[1]==="n"&&(u=l.endsWith("Capture"),n=l.slice(2,u?l.length-7:void 0),m=e[Ot]||null,m=m!=null?m[l]:null,typeof m=="function"&&e.removeEventListener(n,m,u),typeof i=="function")){typeof m!="function"&&m!==null&&(l in e?e[l]=null:e.hasAttribute(l)&&e.removeAttribute(l)),e.addEventListener(n,i,u);break e}l in e?e[l]=i:i===!0?e.setAttribute(l,""):Fr(e,l,i)}}}function St(e,n,l){switch(n){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"img":Te("error",e),Te("load",e);var i=!1,u=!1,m;for(m in l)if(l.hasOwnProperty(m)){var b=l[m];if(b!=null)switch(m){case"src":i=!0;break;case"srcSet":u=!0;break;case"children":case"dangerouslySetInnerHTML":throw Error(r(137,n));default:$e(e,n,m,b,l,null)}}u&&$e(e,n,"srcSet",l.srcSet,l,null),i&&$e(e,n,"src",l.src,l,null);return;case"input":Te("invalid",e);var E=m=b=u=null,j=null,$=null;for(i in l)if(l.hasOwnProperty(i)){var Y=l[i];if(Y!=null)switch(i){case"name":u=Y;break;case"type":b=Y;break;case"checked":j=Y;break;case"defaultChecked":$=Y;break;case"value":m=Y;break;case"defaultValue":E=Y;break;case"children":case"dangerouslySetInnerHTML":if(Y!=null)throw Error(r(137,n));break;default:$e(e,n,i,Y,l,null)}}Jm(e,m,E,j,$,b,u,!1);return;case"select":Te("invalid",e),i=b=m=null;for(u in l)if(l.hasOwnProperty(u)&&(E=l[u],E!=null))switch(u){case"value":m=E;break;case"defaultValue":b=E;break;case"multiple":i=E;default:$e(e,n,u,E,l,null)}n=m,l=b,e.multiple=!!i,n!=null?Nl(e,!!i,n,!1):l!=null&&Nl(e,!!i,l,!0);return;case"textarea":Te("invalid",e),m=u=i=null;for(b in l)if(l.hasOwnProperty(b)&&(E=l[b],E!=null))switch(b){case"value":i=E;break;case"defaultValue":u=E;break;case"children":m=E;break;case"dangerouslySetInnerHTML":if(E!=null)throw Error(r(91));break;default:$e(e,n,b,E,l,null)}ep(e,i,u,m);return;case"option":for(j in l)l.hasOwnProperty(j)&&(i=l[j],i!=null)&&(j==="selected"?e.selected=i&&typeof i!="function"&&typeof i!="symbol":$e(e,n,j,i,l,null));return;case"dialog":Te("beforetoggle",e),Te("toggle",e),Te("cancel",e),Te("close",e);break;case"iframe":case"object":Te("load",e);break;case"video":case"audio":for(i=0;i<pr.length;i++)Te(pr[i],e);break;case"image":Te("error",e),Te("load",e);break;case"details":Te("toggle",e);break;case"embed":case"source":case"link":Te("error",e),Te("load",e);case"area":case"base":case"br":case"col":case"hr":case"keygen":case"meta":case"param":case"track":case"wbr":case"menuitem":for($ in l)if(l.hasOwnProperty($)&&(i=l[$],i!=null))switch($){case"children":case"dangerouslySetInnerHTML":throw Error(r(137,n));default:$e(e,n,$,i,l,null)}return;default:if(zc(n)){for(Y in l)l.hasOwnProperty(Y)&&(i=l[Y],i!==void 0&&Cf(e,n,Y,i,l,void 0));return}}for(E in l)l.hasOwnProperty(E)&&(i=l[E],i!=null&&$e(e,n,E,i,l,null))}function Tx(e,n,l,i){switch(n){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"input":var u=null,m=null,b=null,E=null,j=null,$=null,Y=null;for(q in l){var Q=l[q];if(l.hasOwnProperty(q)&&Q!=null)switch(q){case"checked":break;case"value":break;case"defaultValue":j=Q;default:i.hasOwnProperty(q)||$e(e,n,q,null,i,Q)}}for(var G in i){var q=i[G];if(Q=l[G],i.hasOwnProperty(G)&&(q!=null||Q!=null))switch(G){case"type":m=q;break;case"name":u=q;break;case"checked":$=q;break;case"defaultChecked":Y=q;break;case"value":b=q;break;case"defaultValue":E=q;break;case"children":case"dangerouslySetInnerHTML":if(q!=null)throw Error(r(137,n));break;default:q!==Q&&$e(e,n,G,q,i,Q)}}Dc(e,b,E,j,$,Y,m,u);return;case"select":q=b=E=G=null;for(m in l)if(j=l[m],l.hasOwnProperty(m)&&j!=null)switch(m){case"value":break;case"multiple":q=j;default:i.hasOwnProperty(m)||$e(e,n,m,null,i,j)}for(u in i)if(m=i[u],j=l[u],i.hasOwnProperty(u)&&(m!=null||j!=null))switch(u){case"value":G=m;break;case"defaultValue":E=m;break;case"multiple":b=m;default:m!==j&&$e(e,n,u,m,i,j)}n=E,l=b,i=q,G!=null?Nl(e,!!l,G,!1):!!i!=!!l&&(n!=null?Nl(e,!!l,n,!0):Nl(e,!!l,l?[]:"",!1));return;case"textarea":q=G=null;for(E in l)if(u=l[E],l.hasOwnProperty(E)&&u!=null&&!i.hasOwnProperty(E))switch(E){case"value":break;case"children":break;default:$e(e,n,E,null,i,u)}for(b in i)if(u=i[b],m=l[b],i.hasOwnProperty(b)&&(u!=null||m!=null))switch(b){case"value":G=u;break;case"defaultValue":q=u;break;case"children":break;case"dangerouslySetInnerHTML":if(u!=null)throw Error(r(91));break;default:u!==m&&$e(e,n,b,u,i,m)}Wm(e,G,q);return;case"option":for(var re in l)G=l[re],l.hasOwnProperty(re)&&G!=null&&!i.hasOwnProperty(re)&&(re==="selected"?e.selected=!1:$e(e,n,re,null,i,G));for(j in i)G=i[j],q=l[j],i.hasOwnProperty(j)&&G!==q&&(G!=null||q!=null)&&(j==="selected"?e.selected=G&&typeof G!="function"&&typeof G!="symbol":$e(e,n,j,G,i,q));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 me in l)G=l[me],l.hasOwnProperty(me)&&G!=null&&!i.hasOwnProperty(me)&&$e(e,n,me,null,i,G);for($ in i)if(G=i[$],q=l[$],i.hasOwnProperty($)&&G!==q&&(G!=null||q!=null))switch($){case"children":case"dangerouslySetInnerHTML":if(G!=null)throw Error(r(137,n));break;default:$e(e,n,$,G,i,q)}return;default:if(zc(n)){for(var Ge in l)G=l[Ge],l.hasOwnProperty(Ge)&&G!==void 0&&!i.hasOwnProperty(Ge)&&Cf(e,n,Ge,void 0,i,G);for(Y in i)G=i[Y],q=l[Y],!i.hasOwnProperty(Y)||G===q||G===void 0&&q===void 0||Cf(e,n,Y,G,i,q);return}}for(var z in l)G=l[z],l.hasOwnProperty(z)&&G!=null&&!i.hasOwnProperty(z)&&$e(e,n,z,null,i,G);for(Q in i)G=i[Q],q=l[Q],!i.hasOwnProperty(Q)||G===q||G==null&&q==null||$e(e,n,Q,G,i,q)}function og(e){switch(e){case"css":case"script":case"font":case"img":case"image":case"input":case"link":return!0;default:return!1}}function Ex(){if(typeof performance.getEntriesByType=="function"){for(var e=0,n=0,l=performance.getEntriesByType("resource"),i=0;i<l.length;i++){var u=l[i],m=u.transferSize,b=u.initiatorType,E=u.duration;if(m&&E&&og(b)){for(b=0,E=u.responseEnd,i+=1;i<l.length;i++){var j=l[i],$=j.startTime;if($>E)break;var Y=j.transferSize,Q=j.initiatorType;Y&&og(Q)&&(j=j.responseEnd,b+=Y*(j<E?1:(E-$)/(j-$)))}if(--i,n+=8*(m+b)/(u.duration/1e3),e++,10<e)break}}if(0<e)return n/e/1e6}return navigator.connection&&(e=navigator.connection.downlink,typeof e=="number")?e:5}var wf=null,Tf=null;function Ii(e){return e.nodeType===9?e:e.ownerDocument}function lg(e){switch(e){case"http://www.w3.org/2000/svg":return 1;case"http://www.w3.org/1998/Math/MathML":return 2;default:return 0}}function ag(e,n){if(e===0)switch(n){case"svg":return 1;case"math":return 2;default:return 0}return e===1&&n==="foreignObject"?0:e}function Ef(e,n){return e==="textarea"||e==="noscript"||typeof n.children=="string"||typeof n.children=="number"||typeof n.children=="bigint"||typeof n.dangerouslySetInnerHTML=="object"&&n.dangerouslySetInnerHTML!==null&&n.dangerouslySetInnerHTML.__html!=null}var Mf=null;function Mx(){var e=window.event;return e&&e.type==="popstate"?e===Mf?!1:(Mf=e,!0):(Mf=null,!1)}var rg=typeof setTimeout=="function"?setTimeout:void 0,Rx=typeof clearTimeout=="function"?clearTimeout:void 0,ig=typeof Promise=="function"?Promise:void 0,jx=typeof queueMicrotask=="function"?queueMicrotask:typeof ig<"u"?function(e){return ig.resolve(null).then(e).catch(_x)}:rg;function _x(e){setTimeout(function(){throw e})}function $o(e){return e==="head"}function sg(e,n){var l=n,i=0;do{var u=l.nextSibling;if(e.removeChild(l),u&&u.nodeType===8)if(l=u.data,l==="/$"||l==="/&"){if(i===0){e.removeChild(u),ca(n);return}i--}else if(l==="$"||l==="$?"||l==="$~"||l==="$!"||l==="&")i++;else if(l==="html")gr(e.ownerDocument.documentElement);else if(l==="head"){l=e.ownerDocument.head,gr(l);for(var m=l.firstChild;m;){var b=m.nextSibling,E=m.nodeName;m[Ha]||E==="SCRIPT"||E==="STYLE"||E==="LINK"&&m.rel.toLowerCase()==="stylesheet"||l.removeChild(m),m=b}}else l==="body"&&gr(e.ownerDocument.body);l=u}while(l);ca(n)}function cg(e,n){var l=e;e=0;do{var i=l.nextSibling;if(l.nodeType===1?n?(l._stashedDisplay=l.style.display,l.style.display="none"):(l.style.display=l._stashedDisplay||"",l.getAttribute("style")===""&&l.removeAttribute("style")):l.nodeType===3&&(n?(l._stashedText=l.nodeValue,l.nodeValue=""):l.nodeValue=l._stashedText||""),i&&i.nodeType===8)if(l=i.data,l==="/$"){if(e===0)break;e--}else l!=="$"&&l!=="$?"&&l!=="$~"&&l!=="$!"||e++;l=i}while(l)}function Rf(e){var n=e.firstChild;for(n&&n.nodeType===10&&(n=n.nextSibling);n;){var l=n;switch(n=n.nextSibling,l.nodeName){case"HTML":case"HEAD":case"BODY":Rf(l),Nc(l);continue;case"SCRIPT":case"STYLE":continue;case"LINK":if(l.rel.toLowerCase()==="stylesheet")continue}e.removeChild(l)}}function Ox(e,n,l,i){for(;e.nodeType===1;){var u=l;if(e.nodeName.toLowerCase()!==n.toLowerCase()){if(!i&&(e.nodeName!=="INPUT"||e.type!=="hidden"))break}else if(i){if(!e[Ha])switch(n){case"meta":if(!e.hasAttribute("itemprop"))break;return e;case"link":if(m=e.getAttribute("rel"),m==="stylesheet"&&e.hasAttribute("data-precedence"))break;if(m!==u.rel||e.getAttribute("href")!==(u.href==null||u.href===""?null:u.href)||e.getAttribute("crossorigin")!==(u.crossOrigin==null?null:u.crossOrigin)||e.getAttribute("title")!==(u.title==null?null:u.title))break;return e;case"style":if(e.hasAttribute("data-precedence"))break;return e;case"script":if(m=e.getAttribute("src"),(m!==(u.src==null?null:u.src)||e.getAttribute("type")!==(u.type==null?null:u.type)||e.getAttribute("crossorigin")!==(u.crossOrigin==null?null:u.crossOrigin))&&m&&e.hasAttribute("async")&&!e.hasAttribute("itemprop"))break;return e;default:return e}}else if(n==="input"&&e.type==="hidden"){var m=u.name==null?null:""+u.name;if(u.type==="hidden"&&e.getAttribute("name")===m)return e}else return e;if(e=fn(e.nextSibling),e===null)break}return null}function Nx(e,n,l){if(n==="")return null;for(;e.nodeType!==3;)if((e.nodeType!==1||e.nodeName!=="INPUT"||e.type!=="hidden")&&!l||(e=fn(e.nextSibling),e===null))return null;return e}function ug(e,n){for(;e.nodeType!==8;)if((e.nodeType!==1||e.nodeName!=="INPUT"||e.type!=="hidden")&&!n||(e=fn(e.nextSibling),e===null))return null;return e}function jf(e){return e.data==="$?"||e.data==="$~"}function _f(e){return e.data==="$!"||e.data==="$?"&&e.ownerDocument.readyState!=="loading"}function Ax(e,n){var l=e.ownerDocument;if(e.data==="$~")e._reactRetry=n;else if(e.data!=="$?"||l.readyState!=="loading")n();else{var i=function(){n(),l.removeEventListener("DOMContentLoaded",i)};l.addEventListener("DOMContentLoaded",i),e._reactRetry=i}}function fn(e){for(;e!=null;e=e.nextSibling){var n=e.nodeType;if(n===1||n===3)break;if(n===8){if(n=e.data,n==="$"||n==="$!"||n==="$?"||n==="$~"||n==="&"||n==="F!"||n==="F")break;if(n==="/$"||n==="/&")return null}}return e}var Of=null;function fg(e){e=e.nextSibling;for(var n=0;e;){if(e.nodeType===8){var l=e.data;if(l==="/$"||l==="/&"){if(n===0)return fn(e.nextSibling);n--}else l!=="$"&&l!=="$!"&&l!=="$?"&&l!=="$~"&&l!=="&"||n++}e=e.nextSibling}return null}function dg(e){e=e.previousSibling;for(var n=0;e;){if(e.nodeType===8){var l=e.data;if(l==="$"||l==="$!"||l==="$?"||l==="$~"||l==="&"){if(n===0)return e;n--}else l!=="/$"&&l!=="/&"||n++}e=e.previousSibling}return null}function mg(e,n,l){switch(n=Ii(l),e){case"html":if(e=n.documentElement,!e)throw Error(r(452));return e;case"head":if(e=n.head,!e)throw Error(r(453));return e;case"body":if(e=n.body,!e)throw Error(r(454));return e;default:throw Error(r(451))}}function gr(e){for(var n=e.attributes;n.length;)e.removeAttributeNode(n[0]);Nc(e)}var dn=new Map,pg=new Set;function Ki(e){return typeof e.getRootNode=="function"?e.getRootNode():e.nodeType===9?e:e.ownerDocument}var fo=U.d;U.d={f:Dx,r:Hx,D:zx,C:Lx,L:Vx,m:kx,X:Ux,S:Bx,M:$x};function Dx(){var e=fo.f(),n=$i();return e||n}function Hx(e){var n=jl(e);n!==null&&n.tag===5&&n.type==="form"?Nh(n):fo.r(e)}var ra=typeof document>"u"?null:document;function hg(e,n,l){var i=ra;if(i&&typeof n=="string"&&n){var u=on(n);u='link[rel="'+e+'"][href="'+u+'"]',typeof l=="string"&&(u+='[crossorigin="'+l+'"]'),pg.has(u)||(pg.add(u),e={rel:e,crossOrigin:l,href:n},i.querySelector(u)===null&&(n=i.createElement("link"),St(n,"link",e),mt(n),i.head.appendChild(n)))}}function zx(e){fo.D(e),hg("dns-prefetch",e,null)}function Lx(e,n){fo.C(e,n),hg("preconnect",e,n)}function Vx(e,n,l){fo.L(e,n,l);var i=ra;if(i&&e&&n){var u='link[rel="preload"][as="'+on(n)+'"]';n==="image"&&l&&l.imageSrcSet?(u+='[imagesrcset="'+on(l.imageSrcSet)+'"]',typeof l.imageSizes=="string"&&(u+='[imagesizes="'+on(l.imageSizes)+'"]')):u+='[href="'+on(e)+'"]';var m=u;switch(n){case"style":m=ia(e);break;case"script":m=sa(e)}dn.has(m)||(e=y({rel:"preload",href:n==="image"&&l&&l.imageSrcSet?void 0:e,as:n},l),dn.set(m,e),i.querySelector(u)!==null||n==="style"&&i.querySelector(vr(m))||n==="script"&&i.querySelector(yr(m))||(n=i.createElement("link"),St(n,"link",e),mt(n),i.head.appendChild(n)))}}function kx(e,n){fo.m(e,n);var l=ra;if(l&&e){var i=n&&typeof n.as=="string"?n.as:"script",u='link[rel="modulepreload"][as="'+on(i)+'"][href="'+on(e)+'"]',m=u;switch(i){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":m=sa(e)}if(!dn.has(m)&&(e=y({rel:"modulepreload",href:e},n),dn.set(m,e),l.querySelector(u)===null)){switch(i){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":if(l.querySelector(yr(m)))return}i=l.createElement("link"),St(i,"link",e),mt(i),l.head.appendChild(i)}}}function Bx(e,n,l){fo.S(e,n,l);var i=ra;if(i&&e){var u=_l(i).hoistableStyles,m=ia(e);n=n||"default";var b=u.get(m);if(!b){var E={loading:0,preload:null};if(b=i.querySelector(vr(m)))E.loading=5;else{e=y({rel:"stylesheet",href:e,"data-precedence":n},l),(l=dn.get(m))&&Nf(e,l);var j=b=i.createElement("link");mt(j),St(j,"link",e),j._p=new Promise(function($,Y){j.onload=$,j.onerror=Y}),j.addEventListener("load",function(){E.loading|=1}),j.addEventListener("error",function(){E.loading|=2}),E.loading|=4,Fi(b,n,i)}b={type:"stylesheet",instance:b,count:1,state:E},u.set(m,b)}}}function Ux(e,n){fo.X(e,n);var l=ra;if(l&&e){var i=_l(l).hoistableScripts,u=sa(e),m=i.get(u);m||(m=l.querySelector(yr(u)),m||(e=y({src:e,async:!0},n),(n=dn.get(u))&&Af(e,n),m=l.createElement("script"),mt(m),St(m,"link",e),l.head.appendChild(m)),m={type:"script",instance:m,count:1,state:null},i.set(u,m))}}function $x(e,n){fo.M(e,n);var l=ra;if(l&&e){var i=_l(l).hoistableScripts,u=sa(e),m=i.get(u);m||(m=l.querySelector(yr(u)),m||(e=y({src:e,async:!0,type:"module"},n),(n=dn.get(u))&&Af(e,n),m=l.createElement("script"),mt(m),St(m,"link",e),l.head.appendChild(m)),m={type:"script",instance:m,count:1,state:null},i.set(u,m))}}function gg(e,n,l,i){var u=(u=Ne.current)?Ki(u):null;if(!u)throw Error(r(446));switch(e){case"meta":case"title":return null;case"style":return typeof l.precedence=="string"&&typeof l.href=="string"?(n=ia(l.href),l=_l(u).hoistableStyles,i=l.get(n),i||(i={type:"style",instance:null,count:0,state:null},l.set(n,i)),i):{type:"void",instance:null,count:0,state:null};case"link":if(l.rel==="stylesheet"&&typeof l.href=="string"&&typeof l.precedence=="string"){e=ia(l.href);var m=_l(u).hoistableStyles,b=m.get(e);if(b||(u=u.ownerDocument||u,b={type:"stylesheet",instance:null,count:0,state:{loading:0,preload:null}},m.set(e,b),(m=u.querySelector(vr(e)))&&!m._p&&(b.instance=m,b.state.loading=5),dn.has(e)||(l={rel:"preload",as:"style",href:l.href,crossOrigin:l.crossOrigin,integrity:l.integrity,media:l.media,hrefLang:l.hrefLang,referrerPolicy:l.referrerPolicy},dn.set(e,l),m||Gx(u,e,l,b.state))),n&&i===null)throw Error(r(528,""));return b}if(n&&i!==null)throw Error(r(529,""));return null;case"script":return n=l.async,l=l.src,typeof l=="string"&&n&&typeof n!="function"&&typeof n!="symbol"?(n=sa(l),l=_l(u).hoistableScripts,i=l.get(n),i||(i={type:"script",instance:null,count:0,state:null},l.set(n,i)),i):{type:"void",instance:null,count:0,state:null};default:throw Error(r(444,e))}}function ia(e){return'href="'+on(e)+'"'}function vr(e){return'link[rel="stylesheet"]['+e+"]"}function vg(e){return y({},e,{"data-precedence":e.precedence,precedence:null})}function Gx(e,n,l,i){e.querySelector('link[rel="preload"][as="style"]['+n+"]")?i.loading=1:(n=e.createElement("link"),i.preload=n,n.addEventListener("load",function(){return i.loading|=1}),n.addEventListener("error",function(){return i.loading|=2}),St(n,"link",l),mt(n),e.head.appendChild(n))}function sa(e){return'[src="'+on(e)+'"]'}function yr(e){return"script[async]"+e}function yg(e,n,l){if(n.count++,n.instance===null)switch(n.type){case"style":var i=e.querySelector('style[data-href~="'+on(l.href)+'"]');if(i)return n.instance=i,mt(i),i;var u=y({},l,{"data-href":l.href,"data-precedence":l.precedence,href:null,precedence:null});return i=(e.ownerDocument||e).createElement("style"),mt(i),St(i,"style",u),Fi(i,l.precedence,e),n.instance=i;case"stylesheet":u=ia(l.href);var m=e.querySelector(vr(u));if(m)return n.state.loading|=4,n.instance=m,mt(m),m;i=vg(l),(u=dn.get(u))&&Nf(i,u),m=(e.ownerDocument||e).createElement("link"),mt(m);var b=m;return b._p=new Promise(function(E,j){b.onload=E,b.onerror=j}),St(m,"link",i),n.state.loading|=4,Fi(m,l.precedence,e),n.instance=m;case"script":return m=sa(l.src),(u=e.querySelector(yr(m)))?(n.instance=u,mt(u),u):(i=l,(u=dn.get(m))&&(i=y({},l),Af(i,u)),e=e.ownerDocument||e,u=e.createElement("script"),mt(u),St(u,"link",i),e.head.appendChild(u),n.instance=u);case"void":return null;default:throw Error(r(443,n.type))}else n.type==="stylesheet"&&(n.state.loading&4)===0&&(i=n.instance,n.state.loading|=4,Fi(i,l.precedence,e));return n.instance}function Fi(e,n,l){for(var i=l.querySelectorAll('link[rel="stylesheet"][data-precedence],style[data-precedence]'),u=i.length?i[i.length-1]:null,m=u,b=0;b<i.length;b++){var E=i[b];if(E.dataset.precedence===n)m=E;else if(m!==u)break}m?m.parentNode.insertBefore(e,m.nextSibling):(n=l.nodeType===9?l.head:l,n.insertBefore(e,n.firstChild))}function Nf(e,n){e.crossOrigin==null&&(e.crossOrigin=n.crossOrigin),e.referrerPolicy==null&&(e.referrerPolicy=n.referrerPolicy),e.title==null&&(e.title=n.title)}function Af(e,n){e.crossOrigin==null&&(e.crossOrigin=n.crossOrigin),e.referrerPolicy==null&&(e.referrerPolicy=n.referrerPolicy),e.integrity==null&&(e.integrity=n.integrity)}var Ji=null;function bg(e,n,l){if(Ji===null){var i=new Map,u=Ji=new Map;u.set(l,i)}else u=Ji,i=u.get(l),i||(i=new Map,u.set(l,i));if(i.has(e))return i;for(i.set(e,null),l=l.getElementsByTagName(e),u=0;u<l.length;u++){var m=l[u];if(!(m[Ha]||m[vt]||e==="link"&&m.getAttribute("rel")==="stylesheet")&&m.namespaceURI!=="http://www.w3.org/2000/svg"){var b=m.getAttribute(n)||"";b=e+b;var E=i.get(b);E?E.push(m):i.set(b,[m])}}return i}function xg(e,n,l){e=e.ownerDocument||e,e.head.insertBefore(l,n==="title"?e.querySelector("head > title"):null)}function Zx(e,n,l){if(l===1||n.itemProp!=null)return!1;switch(e){case"meta":case"title":return!0;case"style":if(typeof n.precedence!="string"||typeof n.href!="string"||n.href==="")break;return!0;case"link":if(typeof n.rel!="string"||typeof n.href!="string"||n.href===""||n.onLoad||n.onError)break;return n.rel==="stylesheet"?(e=n.disabled,typeof n.precedence=="string"&&e==null):!0;case"script":if(n.async&&typeof n.async!="function"&&typeof n.async!="symbol"&&!n.onLoad&&!n.onError&&n.src&&typeof n.src=="string")return!0}return!1}function Sg(e){return!(e.type==="stylesheet"&&(e.state.loading&3)===0)}function qx(e,n,l,i){if(l.type==="stylesheet"&&(typeof i.media!="string"||matchMedia(i.media).matches!==!1)&&(l.state.loading&4)===0){if(l.instance===null){var u=ia(i.href),m=n.querySelector(vr(u));if(m){n=m._p,n!==null&&typeof n=="object"&&typeof n.then=="function"&&(e.count++,e=Wi.bind(e),n.then(e,e)),l.state.loading|=4,l.instance=m,mt(m);return}m=n.ownerDocument||n,i=vg(i),(u=dn.get(u))&&Nf(i,u),m=m.createElement("link"),mt(m);var b=m;b._p=new Promise(function(E,j){b.onload=E,b.onerror=j}),St(m,"link",i),l.instance=m}e.stylesheets===null&&(e.stylesheets=new Map),e.stylesheets.set(l,n),(n=l.state.preload)&&(l.state.loading&3)===0&&(e.count++,l=Wi.bind(e),n.addEventListener("load",l),n.addEventListener("error",l))}}var Df=0;function Yx(e,n){return e.stylesheets&&e.count===0&&ts(e,e.stylesheets),0<e.count||0<e.imgCount?function(l){var i=setTimeout(function(){if(e.stylesheets&&ts(e,e.stylesheets),e.unsuspend){var m=e.unsuspend;e.unsuspend=null,m()}},6e4+n);0<e.imgBytes&&Df===0&&(Df=62500*Ex());var u=setTimeout(function(){if(e.waitingForImages=!1,e.count===0&&(e.stylesheets&&ts(e,e.stylesheets),e.unsuspend)){var m=e.unsuspend;e.unsuspend=null,m()}},(e.imgBytes>Df?50:800)+n);return e.unsuspend=l,function(){e.unsuspend=null,clearTimeout(i),clearTimeout(u)}}:null}function Wi(){if(this.count--,this.count===0&&(this.imgCount===0||!this.waitingForImages)){if(this.stylesheets)ts(this,this.stylesheets);else if(this.unsuspend){var e=this.unsuspend;this.unsuspend=null,e()}}}var es=null;function ts(e,n){e.stylesheets=null,e.unsuspend!==null&&(e.count++,es=new Map,n.forEach(Xx,e),es=null,Wi.call(e))}function Xx(e,n){if(!(n.state.loading&4)){var l=es.get(e);if(l)var i=l.get(null);else{l=new Map,es.set(e,l);for(var u=e.querySelectorAll("link[data-precedence],style[data-precedence]"),m=0;m<u.length;m++){var b=u[m];(b.nodeName==="LINK"||b.getAttribute("media")!=="not all")&&(l.set(b.dataset.precedence,b),i=b)}i&&l.set(null,i)}u=n.instance,b=u.getAttribute("data-precedence"),m=l.get(b)||i,m===i&&l.set(null,u),l.set(b,u),this.count++,i=Wi.bind(this),u.addEventListener("load",i),u.addEventListener("error",i),m?m.parentNode.insertBefore(u,m.nextSibling):(e=e.nodeType===9?e.head:e,e.insertBefore(u,e.firstChild)),n.state.loading|=4}}var br={$$typeof:N,Provider:null,Consumer:null,_currentValue:V,_currentValue2:V,_threadCount:0};function Px(e,n,l,i,u,m,b,E,j){this.tag=1,this.containerInfo=e,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=Rc(-1),this.entangledLanes=this.shellSuspendCounter=this.errorRecoveryDisabledLanes=this.expiredLanes=this.warmLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=Rc(0),this.hiddenUpdates=Rc(null),this.identifierPrefix=i,this.onUncaughtError=u,this.onCaughtError=m,this.onRecoverableError=b,this.pooledCache=null,this.pooledCacheLanes=0,this.formState=j,this.incompleteTransitions=new Map}function Cg(e,n,l,i,u,m,b,E,j,$,Y,Q){return e=new Px(e,n,l,b,j,$,Y,Q,E),n=1,m===!0&&(n|=24),m=Xt(3,null,null,n),e.current=m,m.stateNode=e,n=fu(),n.refCount++,e.pooledCache=n,n.refCount++,m.memoizedState={element:i,isDehydrated:l,cache:n},hu(m),e}function wg(e){return e?(e=Bl,e):Bl}function Tg(e,n,l,i,u,m){u=wg(u),i.context===null?i.context=u:i.pendingContext=u,i=Oo(n),i.payload={element:l},m=m===void 0?null:m,m!==null&&(i.callback=m),l=No(e,i,n),l!==null&&(Lt(l,e,n),Fa(l,e,n))}function Eg(e,n){if(e=e.memoizedState,e!==null&&e.dehydrated!==null){var l=e.retryLane;e.retryLane=l!==0&&l<n?l:n}}function Hf(e,n){Eg(e,n),(e=e.alternate)&&Eg(e,n)}function Mg(e){if(e.tag===13||e.tag===31){var n=rl(e,67108864);n!==null&&Lt(n,e,67108864),Hf(e,67108864)}}function Rg(e){if(e.tag===13||e.tag===31){var n=Ft();n=jc(n);var l=rl(e,n);l!==null&&Lt(l,e,n),Hf(e,n)}}var ns=!0;function Qx(e,n,l,i){var u=D.T;D.T=null;var m=U.p;try{U.p=2,zf(e,n,l,i)}finally{U.p=m,D.T=u}}function Ix(e,n,l,i){var u=D.T;D.T=null;var m=U.p;try{U.p=8,zf(e,n,l,i)}finally{U.p=m,D.T=u}}function zf(e,n,l,i){if(ns){var u=Lf(i);if(u===null)Sf(e,n,i,os,l),_g(e,i);else if(Fx(u,e,n,l,i))i.stopPropagation();else if(_g(e,i),n&4&&-1<Kx.indexOf(e)){for(;u!==null;){var m=jl(u);if(m!==null)switch(m.tag){case 3:if(m=m.stateNode,m.current.memoizedState.isDehydrated){var b=tl(m.pendingLanes);if(b!==0){var E=m;for(E.pendingLanes|=2,E.entangledLanes|=2;b;){var j=1<<31-qt(b);E.entanglements[1]|=j,b&=~j}zn(m),(Le&6)===0&&(Bi=jt()+500,mr(0))}}break;case 31:case 13:E=rl(m,2),E!==null&&Lt(E,m,2),$i(),Hf(m,2)}if(m=Lf(i),m===null&&Sf(e,n,i,os,l),m===u)break;u=m}u!==null&&i.stopPropagation()}else Sf(e,n,i,null,l)}}function Lf(e){return e=Vc(e),Vf(e)}var os=null;function Vf(e){if(os=null,e=Rl(e),e!==null){var n=c(e);if(n===null)e=null;else{var l=n.tag;if(l===13){if(e=f(n),e!==null)return e;e=null}else if(l===31){if(e=d(n),e!==null)return e;e=null}else if(l===3){if(n.stateNode.current.memoizedState.isDehydrated)return n.tag===3?n.stateNode.containerInfo:null;e=null}else n!==e&&(e=null)}}return os=e,null}function jg(e){switch(e){case"beforetoggle":case"cancel":case"click":case"close":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(Tc()){case Oa:return 2;case ft:return 8;case El:case Ec:return 32;case Xr:return 268435456;default:return 32}default:return 32}}var kf=!1,Go=null,Zo=null,qo=null,xr=new Map,Sr=new Map,Yo=[],Kx="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 _g(e,n){switch(e){case"focusin":case"focusout":Go=null;break;case"dragenter":case"dragleave":Zo=null;break;case"mouseover":case"mouseout":qo=null;break;case"pointerover":case"pointerout":xr.delete(n.pointerId);break;case"gotpointercapture":case"lostpointercapture":Sr.delete(n.pointerId)}}function Cr(e,n,l,i,u,m){return e===null||e.nativeEvent!==m?(e={blockedOn:n,domEventName:l,eventSystemFlags:i,nativeEvent:m,targetContainers:[u]},n!==null&&(n=jl(n),n!==null&&Mg(n)),e):(e.eventSystemFlags|=i,n=e.targetContainers,u!==null&&n.indexOf(u)===-1&&n.push(u),e)}function Fx(e,n,l,i,u){switch(n){case"focusin":return Go=Cr(Go,e,n,l,i,u),!0;case"dragenter":return Zo=Cr(Zo,e,n,l,i,u),!0;case"mouseover":return qo=Cr(qo,e,n,l,i,u),!0;case"pointerover":var m=u.pointerId;return xr.set(m,Cr(xr.get(m)||null,e,n,l,i,u)),!0;case"gotpointercapture":return m=u.pointerId,Sr.set(m,Cr(Sr.get(m)||null,e,n,l,i,u)),!0}return!1}function Og(e){var n=Rl(e.target);if(n!==null){var l=c(n);if(l!==null){if(n=l.tag,n===13){if(n=f(l),n!==null){e.blockedOn=n,qm(e.priority,function(){Rg(l)});return}}else if(n===31){if(n=d(l),n!==null){e.blockedOn=n,qm(e.priority,function(){Rg(l)});return}}else if(n===3&&l.stateNode.current.memoizedState.isDehydrated){e.blockedOn=l.tag===3?l.stateNode.containerInfo:null;return}}}e.blockedOn=null}function ls(e){if(e.blockedOn!==null)return!1;for(var n=e.targetContainers;0<n.length;){var l=Lf(e.nativeEvent);if(l===null){l=e.nativeEvent;var i=new l.constructor(l.type,l);Lc=i,l.target.dispatchEvent(i),Lc=null}else return n=jl(l),n!==null&&Mg(n),e.blockedOn=l,!1;n.shift()}return!0}function Ng(e,n,l){ls(e)&&l.delete(n)}function Jx(){kf=!1,Go!==null&&ls(Go)&&(Go=null),Zo!==null&&ls(Zo)&&(Zo=null),qo!==null&&ls(qo)&&(qo=null),xr.forEach(Ng),Sr.forEach(Ng)}function as(e,n){e.blockedOn===n&&(e.blockedOn=null,kf||(kf=!0,t.unstable_scheduleCallback(t.unstable_NormalPriority,Jx)))}var rs=null;function Ag(e){rs!==e&&(rs=e,t.unstable_scheduleCallback(t.unstable_NormalPriority,function(){rs===e&&(rs=null);for(var n=0;n<e.length;n+=3){var l=e[n],i=e[n+1],u=e[n+2];if(typeof i!="function"){if(Vf(i||l)===null)continue;break}var m=jl(l);m!==null&&(e.splice(n,3),n-=3,zu(m,{pending:!0,data:u,method:l.method,action:i},i,u))}}))}function ca(e){function n(j){return as(j,e)}Go!==null&&as(Go,e),Zo!==null&&as(Zo,e),qo!==null&&as(qo,e),xr.forEach(n),Sr.forEach(n);for(var l=0;l<Yo.length;l++){var i=Yo[l];i.blockedOn===e&&(i.blockedOn=null)}for(;0<Yo.length&&(l=Yo[0],l.blockedOn===null);)Og(l),l.blockedOn===null&&Yo.shift();if(l=(e.ownerDocument||e).$$reactFormReplay,l!=null)for(i=0;i<l.length;i+=3){var u=l[i],m=l[i+1],b=u[Ot]||null;if(typeof m=="function")b||Ag(l);else if(b){var E=null;if(m&&m.hasAttribute("formAction")){if(u=m,b=m[Ot]||null)E=b.formAction;else if(Vf(u)!==null)continue}else E=b.action;typeof E=="function"?l[i+1]=E:(l.splice(i,3),i-=3),Ag(l)}}}function Dg(){function e(m){m.canIntercept&&m.info==="react-transition"&&m.intercept({handler:function(){return new Promise(function(b){return u=b})},focusReset:"manual",scroll:"manual"})}function n(){u!==null&&(u(),u=null),i||setTimeout(l,20)}function l(){if(!i&&!navigation.transition){var m=navigation.currentEntry;m&&m.url!=null&&navigation.navigate(m.url,{state:m.getState(),info:"react-transition",history:"replace"})}}if(typeof navigation=="object"){var i=!1,u=null;return navigation.addEventListener("navigate",e),navigation.addEventListener("navigatesuccess",n),navigation.addEventListener("navigateerror",n),setTimeout(l,100),function(){i=!0,navigation.removeEventListener("navigate",e),navigation.removeEventListener("navigatesuccess",n),navigation.removeEventListener("navigateerror",n),u!==null&&(u(),u=null)}}}function Bf(e){this._internalRoot=e}is.prototype.render=Bf.prototype.render=function(e){var n=this._internalRoot;if(n===null)throw Error(r(409));var l=n.current,i=Ft();Tg(l,i,e,n,null,null)},is.prototype.unmount=Bf.prototype.unmount=function(){var e=this._internalRoot;if(e!==null){this._internalRoot=null;var n=e.containerInfo;Tg(e.current,2,null,e,null,null),$i(),n[Ml]=null}};function is(e){this._internalRoot=e}is.prototype.unstable_scheduleHydration=function(e){if(e){var n=Zm();e={blockedOn:null,target:e,priority:n};for(var l=0;l<Yo.length&&n!==0&&n<Yo[l].priority;l++);Yo.splice(l,0,e),l===0&&Og(e)}};var Hg=o.version;if(Hg!=="19.2.4")throw Error(r(527,Hg,"19.2.4"));U.findDOMNode=function(e){var n=e._reactInternals;if(n===void 0)throw typeof e.render=="function"?Error(r(188)):(e=Object.keys(e).join(","),Error(r(268,e)));return e=h(n),e=e!==null?v(e):null,e=e===null?null:e.stateNode,e};var Wx={bundleType:0,version:"19.2.4",rendererPackageName:"react-dom",currentDispatcherRef:D,reconcilerVersion:"19.2.4"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var ss=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!ss.isDisabled&&ss.supportsFiber)try{Na=ss.inject(Wx),Zt=ss}catch{}}return Tr.createRoot=function(e,n){if(!s(e))throw Error(r(299));var l=!1,i="",u=$h,m=Gh,b=Zh;return n!=null&&(n.unstable_strictMode===!0&&(l=!0),n.identifierPrefix!==void 0&&(i=n.identifierPrefix),n.onUncaughtError!==void 0&&(u=n.onUncaughtError),n.onCaughtError!==void 0&&(m=n.onCaughtError),n.onRecoverableError!==void 0&&(b=n.onRecoverableError)),n=Cg(e,1,!1,null,null,l,i,null,u,m,b,Dg),e[Ml]=n.current,xf(e),new Bf(n)},Tr.hydrateRoot=function(e,n,l){if(!s(e))throw Error(r(299));var i=!1,u="",m=$h,b=Gh,E=Zh,j=null;return l!=null&&(l.unstable_strictMode===!0&&(i=!0),l.identifierPrefix!==void 0&&(u=l.identifierPrefix),l.onUncaughtError!==void 0&&(m=l.onUncaughtError),l.onCaughtError!==void 0&&(b=l.onCaughtError),l.onRecoverableError!==void 0&&(E=l.onRecoverableError),l.formState!==void 0&&(j=l.formState)),n=Cg(e,1,!0,n,l??null,i,u,j,m,b,E,Dg),n.context=wg(null),l=n.current,i=Ft(),i=jc(i),u=Oo(i),u.callback=null,No(l,u,i),l=i,n.current.lanes=l,Da(n,l),zn(n),e[Ml]=n.current,xf(e),new is(n)},Tr.version="19.2.4",Tr}var qg;function US(){if(qg)return Gf.exports;qg=1;function t(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(t)}catch(o){console.error(o)}}return t(),Gf.exports=BS(),Gf.exports}var Sv=US();const lE=pv(Sv);var Xf={exports:{}},Pf={},Qf={exports:{}},If={};var Yg;function $S(){if(Yg)return If;Yg=1;var t=qs();function o(y,x){return y===x&&(y!==0||1/y===1/x)||y!==y&&x!==x}var a=typeof Object.is=="function"?Object.is:o,r=t.useState,s=t.useEffect,c=t.useLayoutEffect,f=t.useDebugValue;function d(y,x){var C=x(),T=r({inst:{value:C,getSnapshot:x}}),w=T[0].inst,M=T[1];return c(function(){w.value=C,w.getSnapshot=x,p(w)&&M({inst:w})},[y,C,x]),s(function(){return p(w)&&M({inst:w}),y(function(){p(w)&&M({inst:w})})},[y]),f(C),C}function p(y){var x=y.getSnapshot;y=y.value;try{var C=x();return!a(y,C)}catch{return!0}}function h(y,x){return x()}var v=typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"?h:d;return If.useSyncExternalStore=t.useSyncExternalStore!==void 0?t.useSyncExternalStore:v,If}var Xg;function Cv(){return Xg||(Xg=1,Qf.exports=$S()),Qf.exports}var Pg;function GS(){if(Pg)return Pf;Pg=1;var t=qs(),o=Cv();function a(h,v){return h===v&&(h!==0||1/h===1/v)||h!==h&&v!==v}var r=typeof Object.is=="function"?Object.is:a,s=o.useSyncExternalStore,c=t.useRef,f=t.useEffect,d=t.useMemo,p=t.useDebugValue;return Pf.useSyncExternalStoreWithSelector=function(h,v,y,x,C){var T=c(null);if(T.current===null){var w={hasValue:!1,value:null};T.current=w}else w=T.current;T=d(function(){function R(L){if(!_){if(_=!0,N=L,L=x(L),C!==void 0&&w.hasValue){var Z=w.value;if(C(Z,L))return A=Z}return A=L}if(Z=A,r(N,L))return Z;var I=x(L);return C!==void 0&&C(Z,I)?(N=L,Z):(N=L,A=I)}var _=!1,N,A,H=y===void 0?null:y;return[function(){return R(v())},H===null?void 0:function(){return R(H())}]},[v,y,x,C]);var M=s(h,T[0],T[1]);return f(function(){w.hasValue=!0,w.value=M},[M]),p(M),M},Pf}var Qg;function ZS(){return Qg||(Qg=1,Xf.exports=GS()),Xf.exports}var qS=ZS(),Zn=xv();const wv=pv(Zn);var Vn=function(){return Vn=Object.assign||function(o){for(var a,r=1,s=arguments.length;r<s;r++){a=arguments[r];for(var c in a)Object.prototype.hasOwnProperty.call(a,c)&&(o[c]=a[c])}return o},Vn.apply(this,arguments)};function Tv(t,o){var a={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&o.indexOf(r)<0&&(a[r]=t[r]);if(t!=null&&typeof Object.getOwnPropertySymbols=="function")for(var s=0,r=Object.getOwnPropertySymbols(t);s<r.length;s++)o.indexOf(r[s])<0&&Object.prototype.propertyIsEnumerable.call(t,r[s])&&(a[r[s]]=t[r[s]]);return a}function YS(t,o,a){if(a||arguments.length===2)for(var r=0,s=o.length,c;r<s;r++)(c||!(r in o))&&(c||(c=Array.prototype.slice.call(o,0,r)),c[r]=o[r]);return t.concat(c||Array.prototype.slice.call(o))}var bs="right-scroll-bar-position",xs="width-before-scroll-bar",XS="with-scroll-bars-hidden",PS="--removed-body-scroll-bar-size";function Kf(t,o){return typeof t=="function"?t(o):t&&(t.current=o),t}function QS(t,o){var a=S.useState(function(){return{value:t,callback:o,facade:{get current(){return a.value},set current(r){var s=a.value;s!==r&&(a.value=r,a.callback(r,s))}}}})[0];return a.callback=o,a.facade}var IS=typeof window<"u"?S.useLayoutEffect:S.useEffect,Ig=new WeakMap;function KS(t,o){var a=QS(null,function(r){return t.forEach(function(s){return Kf(s,r)})});return IS(function(){var r=Ig.get(a);if(r){var s=new Set(r),c=new Set(t),f=a.current;s.forEach(function(d){c.has(d)||Kf(d,null)}),c.forEach(function(d){s.has(d)||Kf(d,f)})}Ig.set(a,t)},[t]),a}function FS(t){return t}function JS(t,o){o===void 0&&(o=FS);var a=[],r=!1,s={read:function(){if(r)throw new Error("Sidecar: could not `read` from an `assigned` medium. `read` could be used only with `useMedium`.");return a.length?a[a.length-1]:t},useMedium:function(c){var f=o(c,r);return a.push(f),function(){a=a.filter(function(d){return d!==f})}},assignSyncMedium:function(c){for(r=!0;a.length;){var f=a;a=[],f.forEach(c)}a={push:function(d){return c(d)},filter:function(){return a}}},assignMedium:function(c){r=!0;var f=[];if(a.length){var d=a;a=[],d.forEach(c),f=a}var p=function(){var v=f;f=[],v.forEach(c)},h=function(){return Promise.resolve().then(p)};h(),a={push:function(v){f.push(v),h()},filter:function(v){return f=f.filter(v),a}}}};return s}function WS(t){t===void 0&&(t={});var o=JS(null);return o.options=Vn({async:!0,ssr:!1},t),o}var Ev=function(t){var o=t.sideCar,a=Tv(t,["sideCar"]);if(!o)throw new Error("Sidecar: please provide `sideCar` property to import the right car");var r=o.read();if(!r)throw new Error("Sidecar medium not found");return S.createElement(r,Vn({},a))};Ev.isSideCarExport=!0;function e4(t,o){return t.useMedium(o),Ev}var Mv=WS(),Ff=function(){},Ps=S.forwardRef(function(t,o){var a=S.useRef(null),r=S.useState({onScrollCapture:Ff,onWheelCapture:Ff,onTouchMoveCapture:Ff}),s=r[0],c=r[1],f=t.forwardProps,d=t.children,p=t.className,h=t.removeScrollBar,v=t.enabled,y=t.shards,x=t.sideCar,C=t.noRelative,T=t.noIsolation,w=t.inert,M=t.allowPinchZoom,R=t.as,_=R===void 0?"div":R,N=t.gapMode,A=Tv(t,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noRelative","noIsolation","inert","allowPinchZoom","as","gapMode"]),H=x,L=KS([a,o]),Z=Vn(Vn({},A),s);return S.createElement(S.Fragment,null,v&&S.createElement(H,{sideCar:Mv,removeScrollBar:h,shards:y,noRelative:C,noIsolation:T,inert:w,setCallbacks:c,allowPinchZoom:!!M,lockRef:a,gapMode:N}),f?S.cloneElement(S.Children.only(d),Vn(Vn({},Z),{ref:L})):S.createElement(_,Vn({},Z,{className:p,ref:L}),d))});Ps.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1};Ps.classNames={fullWidth:xs,zeroRight:bs};var t4=function(){if(typeof __webpack_nonce__<"u")return __webpack_nonce__};function n4(){if(!document)return null;var t=document.createElement("style");t.type="text/css";var o=t4();return o&&t.setAttribute("nonce",o),t}function o4(t,o){t.styleSheet?t.styleSheet.cssText=o:t.appendChild(document.createTextNode(o))}function l4(t){var o=document.head||document.getElementsByTagName("head")[0];o.appendChild(t)}var a4=function(){var t=0,o=null;return{add:function(a){t==0&&(o=n4())&&(o4(o,a),l4(o)),t++},remove:function(){t--,!t&&o&&(o.parentNode&&o.parentNode.removeChild(o),o=null)}}},r4=function(){var t=a4();return function(o,a){S.useEffect(function(){return t.add(o),function(){t.remove()}},[o&&a])}},Rv=function(){var t=r4(),o=function(a){var r=a.styles,s=a.dynamic;return t(r,s),null};return o},i4={left:0,top:0,right:0,gap:0},Jf=function(t){return parseInt(t||"",10)||0},s4=function(t){var o=window.getComputedStyle(document.body),a=o[t==="padding"?"paddingLeft":"marginLeft"],r=o[t==="padding"?"paddingTop":"marginTop"],s=o[t==="padding"?"paddingRight":"marginRight"];return[Jf(a),Jf(r),Jf(s)]},c4=function(t){if(t===void 0&&(t="margin"),typeof window>"u")return i4;var o=s4(t),a=document.documentElement.clientWidth,r=window.innerWidth;return{left:o[0],top:o[1],right:o[2],gap:Math.max(0,r-a+o[2]-o[0])}},u4=Rv(),va="data-scroll-locked",f4=function(t,o,a,r){var s=t.left,c=t.top,f=t.right,d=t.gap;return a===void 0&&(a="margin"),`
|
|
10
|
-
.`.concat(XS,` {
|
|
11
|
-
overflow: hidden `).concat(r,`;
|
|
12
|
-
padding-right: `).concat(d,"px ").concat(r,`;
|
|
13
|
-
}
|
|
14
|
-
body[`).concat(va,`] {
|
|
15
|
-
overflow: hidden `).concat(r,`;
|
|
16
|
-
overscroll-behavior: contain;
|
|
17
|
-
`).concat([o&&"position: relative ".concat(r,";"),a==="margin"&&`
|
|
18
|
-
padding-left: `.concat(s,`px;
|
|
19
|
-
padding-top: `).concat(c,`px;
|
|
20
|
-
padding-right: `).concat(f,`px;
|
|
21
|
-
margin-left:0;
|
|
22
|
-
margin-top:0;
|
|
23
|
-
margin-right: `).concat(d,"px ").concat(r,`;
|
|
24
|
-
`),a==="padding"&&"padding-right: ".concat(d,"px ").concat(r,";")].filter(Boolean).join(""),`
|
|
25
|
-
}
|
|
26
|
-
|
|
27
|
-
.`).concat(bs,` {
|
|
28
|
-
right: `).concat(d,"px ").concat(r,`;
|
|
29
|
-
}
|
|
30
|
-
|
|
31
|
-
.`).concat(xs,` {
|
|
32
|
-
margin-right: `).concat(d,"px ").concat(r,`;
|
|
33
|
-
}
|
|
34
|
-
|
|
35
|
-
.`).concat(bs," .").concat(bs,` {
|
|
36
|
-
right: 0 `).concat(r,`;
|
|
37
|
-
}
|
|
38
|
-
|
|
39
|
-
.`).concat(xs," .").concat(xs,` {
|
|
40
|
-
margin-right: 0 `).concat(r,`;
|
|
41
|
-
}
|
|
42
|
-
|
|
43
|
-
body[`).concat(va,`] {
|
|
44
|
-
`).concat(PS,": ").concat(d,`px;
|
|
45
|
-
}
|
|
46
|
-
`)},Kg=function(){var t=parseInt(document.body.getAttribute(va)||"0",10);return isFinite(t)?t:0},d4=function(){S.useEffect(function(){return document.body.setAttribute(va,(Kg()+1).toString()),function(){var t=Kg()-1;t<=0?document.body.removeAttribute(va):document.body.setAttribute(va,t.toString())}},[])},m4=function(t){var o=t.noRelative,a=t.noImportant,r=t.gapMode,s=r===void 0?"margin":r;d4();var c=S.useMemo(function(){return c4(s)},[s]);return S.createElement(u4,{styles:f4(c,!o,s,a?"":"!important")})},Rd=!1;if(typeof window<"u")try{var cs=Object.defineProperty({},"passive",{get:function(){return Rd=!0,!0}});window.addEventListener("test",cs,cs),window.removeEventListener("test",cs,cs)}catch{Rd=!1}var ua=Rd?{passive:!1}:!1,p4=function(t){return t.tagName==="TEXTAREA"},jv=function(t,o){if(!(t instanceof Element))return!1;var a=window.getComputedStyle(t);return a[o]!=="hidden"&&!(a.overflowY===a.overflowX&&!p4(t)&&a[o]==="visible")},h4=function(t){return jv(t,"overflowY")},g4=function(t){return jv(t,"overflowX")},Fg=function(t,o){var a=o.ownerDocument,r=o;do{typeof ShadowRoot<"u"&&r instanceof ShadowRoot&&(r=r.host);var s=_v(t,r);if(s){var c=Ov(t,r),f=c[1],d=c[2];if(f>d)return!0}r=r.parentNode}while(r&&r!==a.body);return!1},v4=function(t){var o=t.scrollTop,a=t.scrollHeight,r=t.clientHeight;return[o,a,r]},y4=function(t){var o=t.scrollLeft,a=t.scrollWidth,r=t.clientWidth;return[o,a,r]},_v=function(t,o){return t==="v"?h4(o):g4(o)},Ov=function(t,o){return t==="v"?v4(o):y4(o)},b4=function(t,o){return t==="h"&&o==="rtl"?-1:1},x4=function(t,o,a,r,s){var c=b4(t,window.getComputedStyle(o).direction),f=c*r,d=a.target,p=o.contains(d),h=!1,v=f>0,y=0,x=0;do{if(!d)break;var C=Ov(t,d),T=C[0],w=C[1],M=C[2],R=w-M-c*T;(T||R)&&_v(t,d)&&(y+=R,x+=T);var _=d.parentNode;d=_&&_.nodeType===Node.DOCUMENT_FRAGMENT_NODE?_.host:_}while(!p&&d!==document.body||p&&(o.contains(d)||o===d));return(v&&Math.abs(y)<1||!v&&Math.abs(x)<1)&&(h=!0),h},us=function(t){return"changedTouches"in t?[t.changedTouches[0].clientX,t.changedTouches[0].clientY]:[0,0]},Jg=function(t){return[t.deltaX,t.deltaY]},Wg=function(t){return t&&"current"in t?t.current:t},S4=function(t,o){return t[0]===o[0]&&t[1]===o[1]},C4=function(t){return`
|
|
47
|
-
.block-interactivity-`.concat(t,` {pointer-events: none;}
|
|
48
|
-
.allow-interactivity-`).concat(t,` {pointer-events: all;}
|
|
49
|
-
`)},w4=0,fa=[];function T4(t){var o=S.useRef([]),a=S.useRef([0,0]),r=S.useRef(),s=S.useState(w4++)[0],c=S.useState(Rv)[0],f=S.useRef(t);S.useEffect(function(){f.current=t},[t]),S.useEffect(function(){if(t.inert){document.body.classList.add("block-interactivity-".concat(s));var w=YS([t.lockRef.current],(t.shards||[]).map(Wg),!0).filter(Boolean);return w.forEach(function(M){return M.classList.add("allow-interactivity-".concat(s))}),function(){document.body.classList.remove("block-interactivity-".concat(s)),w.forEach(function(M){return M.classList.remove("allow-interactivity-".concat(s))})}}},[t.inert,t.lockRef.current,t.shards]);var d=S.useCallback(function(w,M){if("touches"in w&&w.touches.length===2||w.type==="wheel"&&w.ctrlKey)return!f.current.allowPinchZoom;var R=us(w),_=a.current,N="deltaX"in w?w.deltaX:_[0]-R[0],A="deltaY"in w?w.deltaY:_[1]-R[1],H,L=w.target,Z=Math.abs(N)>Math.abs(A)?"h":"v";if("touches"in w&&Z==="h"&&L.type==="range")return!1;var I=window.getSelection(),J=I&&I.anchorNode,P=J?J===L||J.contains(L):!1;if(P)return!1;var ee=Fg(Z,L);if(!ee)return!0;if(ee?H=Z:(H=Z==="v"?"h":"v",ee=Fg(Z,L)),!ee)return!1;if(!r.current&&"changedTouches"in w&&(N||A)&&(r.current=H),!H)return!0;var oe=r.current||H;return x4(oe,M,w,oe==="h"?N:A)},[]),p=S.useCallback(function(w){var M=w;if(!(!fa.length||fa[fa.length-1]!==c)){var R="deltaY"in M?Jg(M):us(M),_=o.current.filter(function(H){return H.name===M.type&&(H.target===M.target||M.target===H.shadowParent)&&S4(H.delta,R)})[0];if(_&&_.should){M.cancelable&&M.preventDefault();return}if(!_){var N=(f.current.shards||[]).map(Wg).filter(Boolean).filter(function(H){return H.contains(M.target)}),A=N.length>0?d(M,N[0]):!f.current.noIsolation;A&&M.cancelable&&M.preventDefault()}}},[]),h=S.useCallback(function(w,M,R,_){var N={name:w,delta:M,target:R,should:_,shadowParent:E4(R)};o.current.push(N),setTimeout(function(){o.current=o.current.filter(function(A){return A!==N})},1)},[]),v=S.useCallback(function(w){a.current=us(w),r.current=void 0},[]),y=S.useCallback(function(w){h(w.type,Jg(w),w.target,d(w,t.lockRef.current))},[]),x=S.useCallback(function(w){h(w.type,us(w),w.target,d(w,t.lockRef.current))},[]);S.useEffect(function(){return fa.push(c),t.setCallbacks({onScrollCapture:y,onWheelCapture:y,onTouchMoveCapture:x}),document.addEventListener("wheel",p,ua),document.addEventListener("touchmove",p,ua),document.addEventListener("touchstart",v,ua),function(){fa=fa.filter(function(w){return w!==c}),document.removeEventListener("wheel",p,ua),document.removeEventListener("touchmove",p,ua),document.removeEventListener("touchstart",v,ua)}},[]);var C=t.removeScrollBar,T=t.inert;return S.createElement(S.Fragment,null,T?S.createElement(c,{styles:C4(s)}):null,C?S.createElement(m4,{noRelative:t.noRelative,gapMode:t.gapMode}):null)}function E4(t){for(var o=null;t!==null;)t instanceof ShadowRoot&&(o=t.host,t=t.host),t=t.parentNode;return o}const M4=e4(Mv,T4);var R4=S.forwardRef(function(t,o){return S.createElement(Ps,Vn({},t,{ref:o,sideCar:M4}))});R4.classNames=Ps.classNames;function Nv(t){var o,a,r="";if(typeof t=="string"||typeof t=="number")r+=t;else if(typeof t=="object")if(Array.isArray(t)){var s=t.length;for(o=0;o<s;o++)t[o]&&(a=Nv(t[o]))&&(r&&(r+=" "),r+=a)}else for(a in t)t[a]&&(r&&(r+=" "),r+=a);return r}function xo(){for(var t,o,a=0,r="",s=arguments.length;a<s;a++)(t=arguments[a])&&(o=Nv(t))&&(r&&(r+=" "),r+=o);return r}const Av=["top","right","bottom","left"],e0=["start","end"],t0=Av.reduce((t,o)=>t.concat(o,o+"-"+e0[0],o+"-"+e0[1]),[]),Tn=Math.min,Et=Math.max,Ts=Math.round,fs=Math.floor,Un=t=>({x:t,y:t}),j4={left:"right",right:"left",bottom:"top",top:"bottom"},_4={start:"end",end:"start"};function jd(t,o,a){return Et(t,Tn(o,a))}function En(t,o){return typeof t=="function"?t(o):t}function Jt(t){return t.split("-")[0]}function wn(t){return t.split("-")[1]}function kd(t){return t==="x"?"y":"x"}function Bd(t){return t==="y"?"height":"width"}const O4=new Set(["top","bottom"]);function Sn(t){return O4.has(Jt(t))?"y":"x"}function Ud(t){return kd(Sn(t))}function Dv(t,o,a){a===void 0&&(a=!1);const r=wn(t),s=Ud(t),c=Bd(s);let f=s==="x"?r===(a?"end":"start")?"right":"left":r==="start"?"bottom":"top";return o.reference[c]>o.floating[c]&&(f=Ms(f)),[f,Ms(f)]}function N4(t){const o=Ms(t);return[Es(t),o,Es(o)]}function Es(t){return t.replace(/start|end/g,o=>_4[o])}const n0=["left","right"],o0=["right","left"],A4=["top","bottom"],D4=["bottom","top"];function H4(t,o,a){switch(t){case"top":case"bottom":return a?o?o0:n0:o?n0:o0;case"left":case"right":return o?A4:D4;default:return[]}}function z4(t,o,a,r){const s=wn(t);let c=H4(Jt(t),a==="start",r);return s&&(c=c.map(f=>f+"-"+s),o&&(c=c.concat(c.map(Es)))),c}function Ms(t){return t.replace(/left|right|bottom|top/g,o=>j4[o])}function L4(t){return{top:0,right:0,bottom:0,left:0,...t}}function $d(t){return typeof t!="number"?L4(t):{top:t,right:t,bottom:t,left:t}}function ba(t){const{x:o,y:a,width:r,height:s}=t;return{width:r,height:s,top:a,left:o,right:o+r,bottom:a+s,x:o,y:a}}function l0(t,o,a){let{reference:r,floating:s}=t;const c=Sn(o),f=Ud(o),d=Bd(f),p=Jt(o),h=c==="y",v=r.x+r.width/2-s.width/2,y=r.y+r.height/2-s.height/2,x=r[d]/2-s[d]/2;let C;switch(p){case"top":C={x:v,y:r.y-s.height};break;case"bottom":C={x:v,y:r.y+r.height};break;case"right":C={x:r.x+r.width,y};break;case"left":C={x:r.x-s.width,y};break;default:C={x:r.x,y:r.y}}switch(wn(o)){case"start":C[f]-=x*(a&&h?-1:1);break;case"end":C[f]+=x*(a&&h?-1:1);break}return C}async function V4(t,o){var a;o===void 0&&(o={});const{x:r,y:s,platform:c,rects:f,elements:d,strategy:p}=t,{boundary:h="clippingAncestors",rootBoundary:v="viewport",elementContext:y="floating",altBoundary:x=!1,padding:C=0}=En(o,t),T=$d(C),M=d[x?y==="floating"?"reference":"floating":y],R=ba(await c.getClippingRect({element:(a=await(c.isElement==null?void 0:c.isElement(M)))==null||a?M:M.contextElement||await(c.getDocumentElement==null?void 0:c.getDocumentElement(d.floating)),boundary:h,rootBoundary:v,strategy:p})),_=y==="floating"?{x:r,y:s,width:f.floating.width,height:f.floating.height}:f.reference,N=await(c.getOffsetParent==null?void 0:c.getOffsetParent(d.floating)),A=await(c.isElement==null?void 0:c.isElement(N))?await(c.getScale==null?void 0:c.getScale(N))||{x:1,y:1}:{x:1,y:1},H=ba(c.convertOffsetParentRelativeRectToViewportRelativeRect?await c.convertOffsetParentRelativeRectToViewportRelativeRect({elements:d,rect:_,offsetParent:N,strategy:p}):_);return{top:(R.top-H.top+T.top)/A.y,bottom:(H.bottom-R.bottom+T.bottom)/A.y,left:(R.left-H.left+T.left)/A.x,right:(H.right-R.right+T.right)/A.x}}const k4=async(t,o,a)=>{const{placement:r="bottom",strategy:s="absolute",middleware:c=[],platform:f}=a,d=c.filter(Boolean),p=await(f.isRTL==null?void 0:f.isRTL(o));let h=await f.getElementRects({reference:t,floating:o,strategy:s}),{x:v,y}=l0(h,r,p),x=r,C={},T=0;for(let M=0;M<d.length;M++){var w;const{name:R,fn:_}=d[M],{x:N,y:A,data:H,reset:L}=await _({x:v,y,initialPlacement:r,placement:x,strategy:s,middlewareData:C,rects:h,platform:{...f,detectOverflow:(w=f.detectOverflow)!=null?w:V4},elements:{reference:t,floating:o}});v=N??v,y=A??y,C={...C,[R]:{...C[R],...H}},L&&T<=50&&(T++,typeof L=="object"&&(L.placement&&(x=L.placement),L.rects&&(h=L.rects===!0?await f.getElementRects({reference:t,floating:o,strategy:s}):L.rects),{x:v,y}=l0(h,x,p)),M=-1)}return{x:v,y,placement:x,strategy:s,middlewareData:C}},B4=t=>({name:"arrow",options:t,async fn(o){const{x:a,y:r,placement:s,rects:c,platform:f,elements:d,middlewareData:p}=o,{element:h,padding:v=0}=En(t,o)||{};if(h==null)return{};const y=$d(v),x={x:a,y:r},C=Ud(s),T=Bd(C),w=await f.getDimensions(h),M=C==="y",R=M?"top":"left",_=M?"bottom":"right",N=M?"clientHeight":"clientWidth",A=c.reference[T]+c.reference[C]-x[C]-c.floating[T],H=x[C]-c.reference[C],L=await(f.getOffsetParent==null?void 0:f.getOffsetParent(h));let Z=L?L[N]:0;(!Z||!await(f.isElement==null?void 0:f.isElement(L)))&&(Z=d.floating[N]||c.floating[T]);const I=A/2-H/2,J=Z/2-w[T]/2-1,P=Tn(y[R],J),ee=Tn(y[_],J),oe=P,te=Z-w[T]-ee,B=Z/2-w[T]/2+I,ne=jd(oe,B,te),D=!p.arrow&&wn(s)!=null&&B!==ne&&c.reference[T]/2-(B<oe?P:ee)-w[T]/2<0,U=D?B<oe?B-oe:B-te:0;return{[C]:x[C]+U,data:{[C]:ne,centerOffset:B-ne-U,...D&&{alignmentOffset:U}},reset:D}}});function U4(t,o,a){return(t?[...a.filter(s=>wn(s)===t),...a.filter(s=>wn(s)!==t)]:a.filter(s=>Jt(s)===s)).filter(s=>t?wn(s)===t||(o?Es(s)!==s:!1):!0)}const $4=function(t){return t===void 0&&(t={}),{name:"autoPlacement",options:t,async fn(o){var a,r,s;const{rects:c,middlewareData:f,placement:d,platform:p,elements:h}=o,{crossAxis:v=!1,alignment:y,allowedPlacements:x=t0,autoAlignment:C=!0,...T}=En(t,o),w=y!==void 0||x===t0?U4(y||null,C,x):x,M=await p.detectOverflow(o,T),R=((a=f.autoPlacement)==null?void 0:a.index)||0,_=w[R];if(_==null)return{};const N=Dv(_,c,await(p.isRTL==null?void 0:p.isRTL(h.floating)));if(d!==_)return{reset:{placement:w[0]}};const A=[M[Jt(_)],M[N[0]],M[N[1]]],H=[...((r=f.autoPlacement)==null?void 0:r.overflows)||[],{placement:_,overflows:A}],L=w[R+1];if(L)return{data:{index:R+1,overflows:H},reset:{placement:L}};const Z=H.map(P=>{const ee=wn(P.placement);return[P.placement,ee&&v?P.overflows.slice(0,2).reduce((oe,te)=>oe+te,0):P.overflows[0],P.overflows]}).sort((P,ee)=>P[1]-ee[1]),J=((s=Z.filter(P=>P[2].slice(0,wn(P[0])?2:3).every(ee=>ee<=0))[0])==null?void 0:s[0])||Z[0][0];return J!==d?{data:{index:R+1,overflows:H},reset:{placement:J}}:{}}}},G4=function(t){return t===void 0&&(t={}),{name:"flip",options:t,async fn(o){var a,r;const{placement:s,middlewareData:c,rects:f,initialPlacement:d,platform:p,elements:h}=o,{mainAxis:v=!0,crossAxis:y=!0,fallbackPlacements:x,fallbackStrategy:C="bestFit",fallbackAxisSideDirection:T="none",flipAlignment:w=!0,...M}=En(t,o);if((a=c.arrow)!=null&&a.alignmentOffset)return{};const R=Jt(s),_=Sn(d),N=Jt(d)===d,A=await(p.isRTL==null?void 0:p.isRTL(h.floating)),H=x||(N||!w?[Ms(d)]:N4(d)),L=T!=="none";!x&&L&&H.push(...z4(d,w,T,A));const Z=[d,...H],I=await p.detectOverflow(o,M),J=[];let P=((r=c.flip)==null?void 0:r.overflows)||[];if(v&&J.push(I[R]),y){const B=Dv(s,f,A);J.push(I[B[0]],I[B[1]])}if(P=[...P,{placement:s,overflows:J}],!J.every(B=>B<=0)){var ee,oe;const B=(((ee=c.flip)==null?void 0:ee.index)||0)+1,ne=Z[B];if(ne&&(!(y==="alignment"?_!==Sn(ne):!1)||P.every(V=>Sn(V.placement)===_?V.overflows[0]>0:!0)))return{data:{index:B,overflows:P},reset:{placement:ne}};let D=(oe=P.filter(U=>U.overflows[0]<=0).sort((U,V)=>U.overflows[1]-V.overflows[1])[0])==null?void 0:oe.placement;if(!D)switch(C){case"bestFit":{var te;const U=(te=P.filter(V=>{if(L){const K=Sn(V.placement);return K===_||K==="y"}return!0}).map(V=>[V.placement,V.overflows.filter(K=>K>0).reduce((K,W)=>K+W,0)]).sort((V,K)=>V[1]-K[1])[0])==null?void 0:te[0];U&&(D=U);break}case"initialPlacement":D=d;break}if(s!==D)return{reset:{placement:D}}}return{}}}};function a0(t,o){return{top:t.top-o.height,right:t.right-o.width,bottom:t.bottom-o.height,left:t.left-o.width}}function r0(t){return Av.some(o=>t[o]>=0)}const Z4=function(t){return t===void 0&&(t={}),{name:"hide",options:t,async fn(o){const{rects:a,platform:r}=o,{strategy:s="referenceHidden",...c}=En(t,o);switch(s){case"referenceHidden":{const f=await r.detectOverflow(o,{...c,elementContext:"reference"}),d=a0(f,a.reference);return{data:{referenceHiddenOffsets:d,referenceHidden:r0(d)}}}case"escaped":{const f=await r.detectOverflow(o,{...c,altBoundary:!0}),d=a0(f,a.floating);return{data:{escapedOffsets:d,escaped:r0(d)}}}default:return{}}}}};function Hv(t){const o=Tn(...t.map(c=>c.left)),a=Tn(...t.map(c=>c.top)),r=Et(...t.map(c=>c.right)),s=Et(...t.map(c=>c.bottom));return{x:o,y:a,width:r-o,height:s-a}}function q4(t){const o=t.slice().sort((s,c)=>s.y-c.y),a=[];let r=null;for(let s=0;s<o.length;s++){const c=o[s];!r||c.y-r.y>r.height/2?a.push([c]):a[a.length-1].push(c),r=c}return a.map(s=>ba(Hv(s)))}const Y4=function(t){return t===void 0&&(t={}),{name:"inline",options:t,async fn(o){const{placement:a,elements:r,rects:s,platform:c,strategy:f}=o,{padding:d=2,x:p,y:h}=En(t,o),v=Array.from(await(c.getClientRects==null?void 0:c.getClientRects(r.reference))||[]),y=q4(v),x=ba(Hv(v)),C=$d(d);function T(){if(y.length===2&&y[0].left>y[1].right&&p!=null&&h!=null)return y.find(M=>p>M.left-C.left&&p<M.right+C.right&&h>M.top-C.top&&h<M.bottom+C.bottom)||x;if(y.length>=2){if(Sn(a)==="y"){const P=y[0],ee=y[y.length-1],oe=Jt(a)==="top",te=P.top,B=ee.bottom,ne=oe?P.left:ee.left,D=oe?P.right:ee.right,U=D-ne,V=B-te;return{top:te,bottom:B,left:ne,right:D,width:U,height:V,x:ne,y:te}}const M=Jt(a)==="left",R=Et(...y.map(P=>P.right)),_=Tn(...y.map(P=>P.left)),N=y.filter(P=>M?P.left===_:P.right===R),A=N[0].top,H=N[N.length-1].bottom,L=_,Z=R,I=Z-L,J=H-A;return{top:A,bottom:H,left:L,right:Z,width:I,height:J,x:L,y:A}}return x}const w=await c.getElementRects({reference:{getBoundingClientRect:T},floating:r.floating,strategy:f});return s.reference.x!==w.reference.x||s.reference.y!==w.reference.y||s.reference.width!==w.reference.width||s.reference.height!==w.reference.height?{reset:{rects:w}}:{}}}},zv=new Set(["left","top"]);async function X4(t,o){const{placement:a,platform:r,elements:s}=t,c=await(r.isRTL==null?void 0:r.isRTL(s.floating)),f=Jt(a),d=wn(a),p=Sn(a)==="y",h=zv.has(f)?-1:1,v=c&&p?-1:1,y=En(o,t);let{mainAxis:x,crossAxis:C,alignmentAxis:T}=typeof y=="number"?{mainAxis:y,crossAxis:0,alignmentAxis:null}:{mainAxis:y.mainAxis||0,crossAxis:y.crossAxis||0,alignmentAxis:y.alignmentAxis};return d&&typeof T=="number"&&(C=d==="end"?T*-1:T),p?{x:C*v,y:x*h}:{x:x*h,y:C*v}}const P4=function(t){return t===void 0&&(t=0),{name:"offset",options:t,async fn(o){var a,r;const{x:s,y:c,placement:f,middlewareData:d}=o,p=await X4(o,t);return f===((a=d.offset)==null?void 0:a.placement)&&(r=d.arrow)!=null&&r.alignmentOffset?{}:{x:s+p.x,y:c+p.y,data:{...p,placement:f}}}}},Q4=function(t){return t===void 0&&(t={}),{name:"shift",options:t,async fn(o){const{x:a,y:r,placement:s,platform:c}=o,{mainAxis:f=!0,crossAxis:d=!1,limiter:p={fn:R=>{let{x:_,y:N}=R;return{x:_,y:N}}},...h}=En(t,o),v={x:a,y:r},y=await c.detectOverflow(o,h),x=Sn(Jt(s)),C=kd(x);let T=v[C],w=v[x];if(f){const R=C==="y"?"top":"left",_=C==="y"?"bottom":"right",N=T+y[R],A=T-y[_];T=jd(N,T,A)}if(d){const R=x==="y"?"top":"left",_=x==="y"?"bottom":"right",N=w+y[R],A=w-y[_];w=jd(N,w,A)}const M=p.fn({...o,[C]:T,[x]:w});return{...M,data:{x:M.x-a,y:M.y-r,enabled:{[C]:f,[x]:d}}}}}},I4=function(t){return t===void 0&&(t={}),{options:t,fn(o){const{x:a,y:r,placement:s,rects:c,middlewareData:f}=o,{offset:d=0,mainAxis:p=!0,crossAxis:h=!0}=En(t,o),v={x:a,y:r},y=Sn(s),x=kd(y);let C=v[x],T=v[y];const w=En(d,o),M=typeof w=="number"?{mainAxis:w,crossAxis:0}:{mainAxis:0,crossAxis:0,...w};if(p){const N=x==="y"?"height":"width",A=c.reference[x]-c.floating[N]+M.mainAxis,H=c.reference[x]+c.reference[N]-M.mainAxis;C<A?C=A:C>H&&(C=H)}if(h){var R,_;const N=x==="y"?"width":"height",A=zv.has(Jt(s)),H=c.reference[y]-c.floating[N]+(A&&((R=f.offset)==null?void 0:R[y])||0)+(A?0:M.crossAxis),L=c.reference[y]+c.reference[N]+(A?0:((_=f.offset)==null?void 0:_[y])||0)-(A?M.crossAxis:0);T<H?T=H:T>L&&(T=L)}return{[x]:C,[y]:T}}}},K4=function(t){return t===void 0&&(t={}),{name:"size",options:t,async fn(o){var a,r;const{placement:s,rects:c,platform:f,elements:d}=o,{apply:p=()=>{},...h}=En(t,o),v=await f.detectOverflow(o,h),y=Jt(s),x=wn(s),C=Sn(s)==="y",{width:T,height:w}=c.floating;let M,R;y==="top"||y==="bottom"?(M=y,R=x===(await(f.isRTL==null?void 0:f.isRTL(d.floating))?"start":"end")?"left":"right"):(R=y,M=x==="end"?"top":"bottom");const _=w-v.top-v.bottom,N=T-v.left-v.right,A=Tn(w-v[M],_),H=Tn(T-v[R],N),L=!o.middlewareData.shift;let Z=A,I=H;if((a=o.middlewareData.shift)!=null&&a.enabled.x&&(I=N),(r=o.middlewareData.shift)!=null&&r.enabled.y&&(Z=_),L&&!x){const P=Et(v.left,0),ee=Et(v.right,0),oe=Et(v.top,0),te=Et(v.bottom,0);C?I=T-2*(P!==0||ee!==0?P+ee:Et(v.left,v.right)):Z=w-2*(oe!==0||te!==0?oe+te:Et(v.top,v.bottom))}await p({...o,availableWidth:I,availableHeight:Z});const J=await f.getDimensions(d.floating);return T!==J.width||w!==J.height?{reset:{rects:!0}}:{}}}};function Qs(){return typeof window<"u"}function Sa(t){return Lv(t)?(t.nodeName||"").toLowerCase():"#document"}function Ut(t){var o;return(t==null||(o=t.ownerDocument)==null?void 0:o.defaultView)||window}function Yn(t){var o;return(o=(Lv(t)?t.ownerDocument:t.document)||window.document)==null?void 0:o.documentElement}function Lv(t){return Qs()?t instanceof Node||t instanceof Ut(t).Node:!1}function Ye(t){return Qs()?t instanceof Element||t instanceof Ut(t).Element:!1}function Wt(t){return Qs()?t instanceof HTMLElement||t instanceof Ut(t).HTMLElement:!1}function Rs(t){return!Qs()||typeof ShadowRoot>"u"?!1:t instanceof ShadowRoot||t instanceof Ut(t).ShadowRoot}const F4=new Set(["inline","contents"]);function kr(t){const{overflow:o,overflowX:a,overflowY:r,display:s}=hn(t);return/auto|scroll|overlay|hidden|clip/.test(o+r+a)&&!F4.has(s)}const J4=new Set(["table","td","th"]);function W4(t){return J4.has(Sa(t))}const eC=[":popover-open",":modal"];function Is(t){return eC.some(o=>{try{return t.matches(o)}catch{return!1}})}const tC=["transform","translate","scale","rotate","perspective"],nC=["transform","translate","scale","rotate","perspective","filter"],oC=["paint","layout","strict","content"];function Gd(t){const o=Ks(),a=Ye(t)?hn(t):t;return tC.some(r=>a[r]?a[r]!=="none":!1)||(a.containerType?a.containerType!=="normal":!1)||!o&&(a.backdropFilter?a.backdropFilter!=="none":!1)||!o&&(a.filter?a.filter!=="none":!1)||nC.some(r=>(a.willChange||"").includes(r))||oC.some(r=>(a.contain||"").includes(r))}function lC(t){let o=vo(t);for(;Wt(o)&&!ho(o);){if(Gd(o))return o;if(Is(o))return null;o=vo(o)}return null}function Ks(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}const aC=new Set(["html","body","#document"]);function ho(t){return aC.has(Sa(t))}function hn(t){return Ut(t).getComputedStyle(t)}function Fs(t){return Ye(t)?{scrollLeft:t.scrollLeft,scrollTop:t.scrollTop}:{scrollLeft:t.scrollX,scrollTop:t.scrollY}}function vo(t){if(Sa(t)==="html")return t;const o=t.assignedSlot||t.parentNode||Rs(t)&&t.host||Yn(t);return Rs(o)?o.host:o}function Vv(t){const o=vo(t);return ho(o)?t.ownerDocument?t.ownerDocument.body:t.body:Wt(o)&&kr(o)?o:Vv(o)}function go(t,o,a){var r;o===void 0&&(o=[]),a===void 0&&(a=!0);const s=Vv(t),c=s===((r=t.ownerDocument)==null?void 0:r.body),f=Ut(s);if(c){const d=_d(f);return o.concat(f,f.visualViewport||[],kr(s)?s:[],d&&a?go(d):[])}return o.concat(s,go(s,[],a))}function _d(t){return t.parent&&Object.getPrototypeOf(t.parent)?t.frameElement:null}function kv(t){const o=hn(t);let a=parseFloat(o.width)||0,r=parseFloat(o.height)||0;const s=Wt(t),c=s?t.offsetWidth:a,f=s?t.offsetHeight:r,d=Ts(a)!==c||Ts(r)!==f;return d&&(a=c,r=f),{width:a,height:r,$:d}}function Zd(t){return Ye(t)?t:t.contextElement}function ya(t){const o=Zd(t);if(!Wt(o))return Un(1);const a=o.getBoundingClientRect(),{width:r,height:s,$:c}=kv(o);let f=(c?Ts(a.width):a.width)/r,d=(c?Ts(a.height):a.height)/s;return(!f||!Number.isFinite(f))&&(f=1),(!d||!Number.isFinite(d))&&(d=1),{x:f,y:d}}const rC=Un(0);function Bv(t){const o=Ut(t);return!Ks()||!o.visualViewport?rC:{x:o.visualViewport.offsetLeft,y:o.visualViewport.offsetTop}}function iC(t,o,a){return o===void 0&&(o=!1),!a||o&&a!==Ut(t)?!1:o}function Sl(t,o,a,r){o===void 0&&(o=!1),a===void 0&&(a=!1);const s=t.getBoundingClientRect(),c=Zd(t);let f=Un(1);o&&(r?Ye(r)&&(f=ya(r)):f=ya(t));const d=iC(c,a,r)?Bv(c):Un(0);let p=(s.left+d.x)/f.x,h=(s.top+d.y)/f.y,v=s.width/f.x,y=s.height/f.y;if(c){const x=Ut(c),C=r&&Ye(r)?Ut(r):r;let T=x,w=_d(T);for(;w&&r&&C!==T;){const M=ya(w),R=w.getBoundingClientRect(),_=hn(w),N=R.left+(w.clientLeft+parseFloat(_.paddingLeft))*M.x,A=R.top+(w.clientTop+parseFloat(_.paddingTop))*M.y;p*=M.x,h*=M.y,v*=M.x,y*=M.y,p+=N,h+=A,T=Ut(w),w=_d(T)}}return ba({width:v,height:y,x:p,y:h})}function Js(t,o){const a=Fs(t).scrollLeft;return o?o.left+a:Sl(Yn(t)).left+a}function Uv(t,o){const a=t.getBoundingClientRect(),r=a.left+o.scrollLeft-Js(t,a),s=a.top+o.scrollTop;return{x:r,y:s}}function sC(t){let{elements:o,rect:a,offsetParent:r,strategy:s}=t;const c=s==="fixed",f=Yn(r),d=o?Is(o.floating):!1;if(r===f||d&&c)return a;let p={scrollLeft:0,scrollTop:0},h=Un(1);const v=Un(0),y=Wt(r);if((y||!y&&!c)&&((Sa(r)!=="body"||kr(f))&&(p=Fs(r)),Wt(r))){const C=Sl(r);h=ya(r),v.x=C.x+r.clientLeft,v.y=C.y+r.clientTop}const x=f&&!y&&!c?Uv(f,p):Un(0);return{width:a.width*h.x,height:a.height*h.y,x:a.x*h.x-p.scrollLeft*h.x+v.x+x.x,y:a.y*h.y-p.scrollTop*h.y+v.y+x.y}}function cC(t){return Array.from(t.getClientRects())}function uC(t){const o=Yn(t),a=Fs(t),r=t.ownerDocument.body,s=Et(o.scrollWidth,o.clientWidth,r.scrollWidth,r.clientWidth),c=Et(o.scrollHeight,o.clientHeight,r.scrollHeight,r.clientHeight);let f=-a.scrollLeft+Js(t);const d=-a.scrollTop;return hn(r).direction==="rtl"&&(f+=Et(o.clientWidth,r.clientWidth)-s),{width:s,height:c,x:f,y:d}}const i0=25;function fC(t,o){const a=Ut(t),r=Yn(t),s=a.visualViewport;let c=r.clientWidth,f=r.clientHeight,d=0,p=0;if(s){c=s.width,f=s.height;const v=Ks();(!v||v&&o==="fixed")&&(d=s.offsetLeft,p=s.offsetTop)}const h=Js(r);if(h<=0){const v=r.ownerDocument,y=v.body,x=getComputedStyle(y),C=v.compatMode==="CSS1Compat"&&parseFloat(x.marginLeft)+parseFloat(x.marginRight)||0,T=Math.abs(r.clientWidth-y.clientWidth-C);T<=i0&&(c-=T)}else h<=i0&&(c+=h);return{width:c,height:f,x:d,y:p}}const dC=new Set(["absolute","fixed"]);function mC(t,o){const a=Sl(t,!0,o==="fixed"),r=a.top+t.clientTop,s=a.left+t.clientLeft,c=Wt(t)?ya(t):Un(1),f=t.clientWidth*c.x,d=t.clientHeight*c.y,p=s*c.x,h=r*c.y;return{width:f,height:d,x:p,y:h}}function s0(t,o,a){let r;if(o==="viewport")r=fC(t,a);else if(o==="document")r=uC(Yn(t));else if(Ye(o))r=mC(o,a);else{const s=Bv(t);r={x:o.x-s.x,y:o.y-s.y,width:o.width,height:o.height}}return ba(r)}function $v(t,o){const a=vo(t);return a===o||!Ye(a)||ho(a)?!1:hn(a).position==="fixed"||$v(a,o)}function pC(t,o){const a=o.get(t);if(a)return a;let r=go(t,[],!1).filter(d=>Ye(d)&&Sa(d)!=="body"),s=null;const c=hn(t).position==="fixed";let f=c?vo(t):t;for(;Ye(f)&&!ho(f);){const d=hn(f),p=Gd(f);!p&&d.position==="fixed"&&(s=null),(c?!p&&!s:!p&&d.position==="static"&&!!s&&dC.has(s.position)||kr(f)&&!p&&$v(t,f))?r=r.filter(v=>v!==f):s=d,f=vo(f)}return o.set(t,r),r}function hC(t){let{element:o,boundary:a,rootBoundary:r,strategy:s}=t;const f=[...a==="clippingAncestors"?Is(o)?[]:pC(o,this._c):[].concat(a),r],d=f[0],p=f.reduce((h,v)=>{const y=s0(o,v,s);return h.top=Et(y.top,h.top),h.right=Tn(y.right,h.right),h.bottom=Tn(y.bottom,h.bottom),h.left=Et(y.left,h.left),h},s0(o,d,s));return{width:p.right-p.left,height:p.bottom-p.top,x:p.left,y:p.top}}function gC(t){const{width:o,height:a}=kv(t);return{width:o,height:a}}function vC(t,o,a){const r=Wt(o),s=Yn(o),c=a==="fixed",f=Sl(t,!0,c,o);let d={scrollLeft:0,scrollTop:0};const p=Un(0);function h(){p.x=Js(s)}if(r||!r&&!c)if((Sa(o)!=="body"||kr(s))&&(d=Fs(o)),r){const C=Sl(o,!0,c,o);p.x=C.x+o.clientLeft,p.y=C.y+o.clientTop}else s&&h();c&&!r&&s&&h();const v=s&&!r&&!c?Uv(s,d):Un(0),y=f.left+d.scrollLeft-p.x-v.x,x=f.top+d.scrollTop-p.y-v.y;return{x:y,y:x,width:f.width,height:f.height}}function Wf(t){return hn(t).position==="static"}function c0(t,o){if(!Wt(t)||hn(t).position==="fixed")return null;if(o)return o(t);let a=t.offsetParent;return Yn(t)===a&&(a=a.ownerDocument.body),a}function Gv(t,o){const a=Ut(t);if(Is(t))return a;if(!Wt(t)){let s=vo(t);for(;s&&!ho(s);){if(Ye(s)&&!Wf(s))return s;s=vo(s)}return a}let r=c0(t,o);for(;r&&W4(r)&&Wf(r);)r=c0(r,o);return r&&ho(r)&&Wf(r)&&!Gd(r)?a:r||lC(t)||a}const yC=async function(t){const o=this.getOffsetParent||Gv,a=this.getDimensions,r=await a(t.floating);return{reference:vC(t.reference,await o(t.floating),t.strategy),floating:{x:0,y:0,width:r.width,height:r.height}}};function bC(t){return hn(t).direction==="rtl"}const xC={convertOffsetParentRelativeRectToViewportRelativeRect:sC,getDocumentElement:Yn,getClippingRect:hC,getOffsetParent:Gv,getElementRects:yC,getClientRects:cC,getDimensions:gC,getScale:ya,isElement:Ye,isRTL:bC};function Zv(t,o){return t.x===o.x&&t.y===o.y&&t.width===o.width&&t.height===o.height}function SC(t,o){let a=null,r;const s=Yn(t);function c(){var d;clearTimeout(r),(d=a)==null||d.disconnect(),a=null}function f(d,p){d===void 0&&(d=!1),p===void 0&&(p=1),c();const h=t.getBoundingClientRect(),{left:v,top:y,width:x,height:C}=h;if(d||o(),!x||!C)return;const T=fs(y),w=fs(s.clientWidth-(v+x)),M=fs(s.clientHeight-(y+C)),R=fs(v),N={rootMargin:-T+"px "+-w+"px "+-M+"px "+-R+"px",threshold:Et(0,Tn(1,p))||1};let A=!0;function H(L){const Z=L[0].intersectionRatio;if(Z!==p){if(!A)return f();Z?f(!1,Z):r=setTimeout(()=>{f(!1,1e-7)},1e3)}Z===1&&!Zv(h,t.getBoundingClientRect())&&f(),A=!1}try{a=new IntersectionObserver(H,{...N,root:s.ownerDocument})}catch{a=new IntersectionObserver(H,N)}a.observe(t)}return f(!0),c}function js(t,o,a,r){r===void 0&&(r={});const{ancestorScroll:s=!0,ancestorResize:c=!0,elementResize:f=typeof ResizeObserver=="function",layoutShift:d=typeof IntersectionObserver=="function",animationFrame:p=!1}=r,h=Zd(t),v=s||c?[...h?go(h):[],...go(o)]:[];v.forEach(R=>{s&&R.addEventListener("scroll",a,{passive:!0}),c&&R.addEventListener("resize",a)});const y=h&&d?SC(h,a):null;let x=-1,C=null;f&&(C=new ResizeObserver(R=>{let[_]=R;_&&_.target===h&&C&&(C.unobserve(o),cancelAnimationFrame(x),x=requestAnimationFrame(()=>{var N;(N=C)==null||N.observe(o)})),a()}),h&&!p&&C.observe(h),C.observe(o));let T,w=p?Sl(t):null;p&&M();function M(){const R=Sl(t);w&&!Zv(w,R)&&a(),w=R,T=requestAnimationFrame(M)}return a(),()=>{var R;v.forEach(_=>{s&&_.removeEventListener("scroll",a),c&&_.removeEventListener("resize",a)}),y?.(),(R=C)==null||R.disconnect(),C=null,p&&cancelAnimationFrame(T)}}const CC=P4,wC=$4,TC=Q4,EC=G4,MC=K4,RC=Z4,u0=B4,jC=Y4,_C=I4,OC=(t,o,a)=>{const r=new Map,s={platform:xC,...a},c={...s.platform,_c:r};return k4(t,o,{...s,platform:c})};var NC=typeof document<"u",AC=function(){},Ss=NC?S.useLayoutEffect:AC;function _s(t,o){if(t===o)return!0;if(typeof t!=typeof o)return!1;if(typeof t=="function"&&t.toString()===o.toString())return!0;let a,r,s;if(t&&o&&typeof t=="object"){if(Array.isArray(t)){if(a=t.length,a!==o.length)return!1;for(r=a;r--!==0;)if(!_s(t[r],o[r]))return!1;return!0}if(s=Object.keys(t),a=s.length,a!==Object.keys(o).length)return!1;for(r=a;r--!==0;)if(!{}.hasOwnProperty.call(o,s[r]))return!1;for(r=a;r--!==0;){const c=s[r];if(!(c==="_owner"&&t.$$typeof)&&!_s(t[c],o[c]))return!1}return!0}return t!==t&&o!==o}function qv(t){return typeof window>"u"?1:(t.ownerDocument.defaultView||window).devicePixelRatio||1}function f0(t,o){const a=qv(t);return Math.round(o*a)/a}function ed(t){const o=S.useRef(t);return Ss(()=>{o.current=t}),o}function DC(t){t===void 0&&(t={});const{placement:o="bottom",strategy:a="absolute",middleware:r=[],platform:s,elements:{reference:c,floating:f}={},transform:d=!0,whileElementsMounted:p,open:h}=t,[v,y]=S.useState({x:0,y:0,strategy:a,placement:o,middlewareData:{},isPositioned:!1}),[x,C]=S.useState(r);_s(x,r)||C(r);const[T,w]=S.useState(null),[M,R]=S.useState(null),_=S.useCallback(V=>{V!==L.current&&(L.current=V,w(V))},[]),N=S.useCallback(V=>{V!==Z.current&&(Z.current=V,R(V))},[]),A=c||T,H=f||M,L=S.useRef(null),Z=S.useRef(null),I=S.useRef(v),J=p!=null,P=ed(p),ee=ed(s),oe=ed(h),te=S.useCallback(()=>{if(!L.current||!Z.current)return;const V={placement:o,strategy:a,middleware:x};ee.current&&(V.platform=ee.current),OC(L.current,Z.current,V).then(K=>{const W={...K,isPositioned:oe.current!==!1};B.current&&!_s(I.current,W)&&(I.current=W,Zn.flushSync(()=>{y(W)}))})},[x,o,a,ee,oe]);Ss(()=>{h===!1&&I.current.isPositioned&&(I.current.isPositioned=!1,y(V=>({...V,isPositioned:!1})))},[h]);const B=S.useRef(!1);Ss(()=>(B.current=!0,()=>{B.current=!1}),[]),Ss(()=>{if(A&&(L.current=A),H&&(Z.current=H),A&&H){if(P.current)return P.current(A,H,te);te()}},[A,H,te,P,J]);const ne=S.useMemo(()=>({reference:L,floating:Z,setReference:_,setFloating:N}),[_,N]),D=S.useMemo(()=>({reference:A,floating:H}),[A,H]),U=S.useMemo(()=>{const V={position:a,left:0,top:0};if(!D.floating)return V;const K=f0(D.floating,v.x),W=f0(D.floating,v.y);return d?{...V,transform:"translate("+K+"px, "+W+"px)",...qv(D.floating)>=1.5&&{willChange:"transform"}}:{position:a,left:K,top:W}},[a,d,D.floating,v.x,v.y]);return S.useMemo(()=>({...v,update:te,refs:ne,elements:D,floatingStyles:U}),[v,te,ne,D,U])}const HC=t=>{function o(a){return{}.hasOwnProperty.call(a,"current")}return{name:"arrow",options:t,fn(a){const{element:r,padding:s}=typeof t=="function"?t(a):t;return r&&o(r)?r.current!=null?u0({element:r.current,padding:s}).fn(a):{}:r?u0({element:r,padding:s}).fn(a):{}}}},mn=(t,o)=>({...CC(t),options:[t,o]}),Io=(t,o)=>({...TC(t),options:[t,o]}),d0=(t,o)=>({..._C(t),options:[t,o]}),yo=(t,o)=>({...EC(t),options:[t,o]}),Dr=(t,o)=>({...MC(t),options:[t,o]}),Yv=(t,o)=>({...wC(t),options:[t,o]}),zC=(t,o)=>({...RC(t),options:[t,o]}),jr=(t,o)=>({...jC(t),options:[t,o]}),Xv=(t,o)=>({...HC(t),options:[t,o]}),LC="modulepreload",VC=function(t){return"/"+t},m0={},Os=function(o,a,r){let s=Promise.resolve();if(a&&a.length>0){let p=function(h){return Promise.all(h.map(v=>Promise.resolve(v).then(y=>({status:"fulfilled",value:y}),y=>({status:"rejected",reason:y}))))};document.getElementsByTagName("link");const f=document.querySelector("meta[property=csp-nonce]"),d=f?.nonce||f?.getAttribute("nonce");s=p(a.map(h=>{if(h=VC(h),h in m0)return;m0[h]=!0;const v=h.endsWith(".css"),y=v?'[rel="stylesheet"]':"";if(document.querySelector(`link[href="${h}"]${y}`))return;const x=document.createElement("link");if(x.rel=v?"stylesheet":LC,v||(x.as="script"),x.crossOrigin="",x.href=h,d&&x.setAttribute("nonce",d),document.head.appendChild(x),v)return new Promise((C,T)=>{x.addEventListener("load",C),x.addEventListener("error",()=>T(new Error(`Unable to preload CSS for ${h}`)))})}))}function c(f){const d=new Event("vite:preloadError",{cancelable:!0});if(d.payload=f,window.dispatchEvent(d),!d.defaultPrevented)throw f}return s.then(f=>{for(const d of f||[])d.status==="rejected"&&c(d.reason);return o().catch(c)})};var kC=Object.defineProperty,BC=(t,o,a)=>o in t?kC(t,o,{enumerable:!0,configurable:!0,writable:!0,value:a}):t[o]=a,p0=(t,o,a)=>BC(t,typeof o!="symbol"?o+"":o,a);const h0=sS.create({name:"comment",excludes:"",inclusive:!1,keepOnSplit:!0,addAttributes(){return{orphan:{parseHTML:t=>!!t.getAttribute("data-orphan"),renderHTML:t=>t.orphan?{"data-orphan":"true"}:{},default:!1},threadId:{parseHTML:t=>t.getAttribute("data-bn-thread-id"),renderHTML:t=>({"data-bn-thread-id":t.threadId}),default:""}}},renderHTML({HTMLAttributes:t}){return["span",cS(t,{class:"bn-thread-mark"})]},parseHTML(){return[{tag:"span.bn-thread-mark"}]},extendMarkSchema(t){return t.name==="comment"?{blocknoteIgnore:!0}:{}}});let UC=class extends uS{constructor(o){super(),p0(this,"userCache",new Map),p0(this,"loadingUsers",new Set),this.resolveUsers=o}async loadUsers(o){const a=o.filter(r=>!this.userCache.has(r)&&!this.loadingUsers.has(r));if(a.length!==0){for(const r of a)this.loadingUsers.add(r);try{const r=await this.resolveUsers(a);for(const s of r)this.userCache.set(s.id,s);this.emit("update",this.userCache)}finally{for(const r of a)this.loadingUsers.delete(r)}}}getUser(o){return this.userCache.get(o)}subscribe(o){return this.on("update",o)}};const ds=new oS("blocknote-comments");function $C(t,o){const a=new Map;return t.descendants((r,s)=>{r.marks.forEach(c=>{if(c.type.name===o){const f=c.attrs.threadId;if(!f)return;const d=s,p=d+r.nodeSize,h=a.get(f)??{from:1/0,to:0};a.set(f,{from:Math.min(d,h.from),to:Math.max(p,h.to)})}})}),a}const gn=tS(({editor:t,options:{schema:o,threadStore:a,resolveUsers:r}})=>{if(!r)throw new Error("resolveUsers is required to be defined when using comments");if(!a)throw new Error("threadStore is required to be defined when using comments");const s=h0.name,c=new UC(r),f=nS({pendingComment:!1,selectedThreadId:void 0,threadPositions:new Map},{onUpdate(){f.state.selectedThreadId!==f.prevState.selectedThreadId&&t.transact(p=>p.setMeta(ds,!0))}}),d=p=>{t.transact(h=>{h.doc.descendants((v,y)=>{v.marks.forEach(x=>{if(x.type.name===s){const C=x.type,T=x.attrs.threadId,w=p.get(T),M=!!(!w||w.resolved||w.deletedAt);if(M!==x.attrs.orphan){const R=Math.max(y,0),_=Math.min(y+v.nodeSize,h.doc.content.size-1,h.doc.content.size-1);h.removeMark(R,_,x),h.addMark(R,_,C.create({...x.attrs,orphan:M})),M&&f.state.selectedThreadId===T&&f.setState(N=>({...N,selectedThreadId:void 0}))}}})})})};return{key:"comments",store:f,prosemirrorPlugins:[new lS({key:ds,state:{init(){return{decorations:Uf.empty}},apply(p,h){const v=p.getMeta(ds);if(!p.docChanged&&!v)return h;const y=p.docChanged?$C(p.doc,s):f.state.threadPositions;(y.size>0||f.state.threadPositions.size>0)&&f.setState(C=>({...C,threadPositions:y}));const x=[];if(f.state.selectedThreadId){const C=y.get(f.state.selectedThreadId);C&&x.push(iS.inline(C.from,C.to,{class:"bn-thread-mark-selected"}))}return{decorations:Uf.create(p.doc,x)}}},props:{decorations(p){var h;return((h=ds.getState(p))==null?void 0:h.decorations)??Uf.empty},handleClick:(p,h,v)=>{if(v.button!==0)return;const y=p.state.doc.nodeAt(h);if(!y){f.setState(T=>({...T,selectedThreadId:void 0}));return}const x=y.marks.find(T=>T.type.name===s&&T.attrs.orphan!==!0),C=x?.attrs.threadId;C!==f.state.selectedThreadId&&f.setState(T=>({...T,selectedThreadId:C}))}}})],threadStore:a,mount(){const p=a.subscribe(d);d(a.getThreads());const h=t.onSelectionChange(()=>{f.state.pendingComment&&f.setState(v=>({...v,pendingComment:!1}))});return()=>{p(),h()}},selectThread(p,h=!0){var v,y;if(f.state.selectedThreadId!==p&&(f.setState(x=>({...x,pendingComment:!1,selectedThreadId:p})),p&&h)){const x=f.state.threadPositions.get(p);if(!x)return;(y=(v=t.prosemirrorView)==null?void 0:v.domAtPos(x.from).node)==null||y.scrollIntoView({behavior:"smooth",block:"center"})}},startPendingComment(){var p;f.setState(h=>({...h,selectedThreadId:void 0,pendingComment:!0})),(p=t.getExtension(Td))==null||p.showSelection(!0,"comments")},stopPendingComment(){var p;f.setState(h=>({...h,selectedThreadId:void 0,pendingComment:!1})),(p=t.getExtension(Td))==null||p.showSelection(!1,"comments")},async createThread(p){const h=await a.createThread(p);if(a.addThreadToDocument){const v=t.prosemirrorView,y=v.state.selection,x=aS.getState(v.state),C={prosemirror:{head:y.head,anchor:y.anchor},yjs:x?rS(x.binding,v.state):void 0};await a.addThreadToDocument({threadId:h.id,selection:C})}else t._tiptapEditor.commands.setMark(s,{orphan:!1,threadId:h.id})},userStore:c,commentEditorSchema:o,tiptapExtensions:[h0]}});let td;async function GC(){return td||(td=(async()=>{const[t,o]=await Promise.all([Os(()=>import("./module-RjUF93sV.js"),[]),Os(()=>import("./native-48B9X9Wg.js"),[])]),a="default"in t?t.default:t,r="default"in o?o.default:o;return await a.init({data:r}),{emojiMart:a,emojiData:r}})(),td)}async function ZC(t,o){if(!("text"in t.schema.inlineContentSchema)||t.schema.inlineContentSchema.text!==fS.text)return[];const{emojiData:a,emojiMart:r}=await GC();return(o.trim()===""?Object.values(a.emojis):await r.SearchIndex.search(o)).map(s=>({id:s.skins[0].native,onItemClick:()=>t.insertInlineContent(s.skins[0].native+" ")}))}function qC(){const t=navigator.userAgentData;return t!=null&&t.platform?t.platform:navigator.platform}function YC(){const t=navigator.userAgentData;return t&&Array.isArray(t.brands)?t.brands.map(o=>{let{brand:a,version:r}=o;return a+"/"+r}).join(" "):navigator.userAgent}function XC(){return/apple/i.test(navigator.vendor)}function PC(){return qC().toLowerCase().startsWith("mac")&&!navigator.maxTouchPoints}function QC(){return YC().includes("jsdom/")}const g0="data-floating-ui-focusable",IC="input:not([type='hidden']):not([disabled]),[contenteditable]:not([contenteditable='false']),textarea:not([disabled])";function v0(t){let o=t.activeElement;for(;((a=o)==null||(a=a.shadowRoot)==null?void 0:a.activeElement)!=null;){var a;o=o.shadowRoot.activeElement}return o}function Hr(t,o){if(!t||!o)return!1;const a=o.getRootNode==null?void 0:o.getRootNode();if(t.contains(o))return!0;if(a&&Rs(a)){let r=o;for(;r;){if(t===r)return!0;r=r.parentNode||r.host}}return!1}function ga(t){return"composedPath"in t?t.composedPath()[0]:t.target}function nd(t,o){if(o==null)return!1;if("composedPath"in t)return t.composedPath().includes(o);const a=t;return a.target!=null&&o.contains(a.target)}function KC(t){return t.matches("html,body")}function bl(t){return t?.ownerDocument||document}function FC(t){return Wt(t)&&t.matches(IC)}function JC(t){if(!t||QC())return!0;try{return t.matches(":focus-visible")}catch{return!0}}function WC(t){return t?t.hasAttribute(g0)?t:t.querySelector("["+g0+"]")||t:null}function Cs(t,o,a){return a===void 0&&(a=!0),t.filter(s=>{var c;return s.parentId===o&&(!a||((c=s.context)==null?void 0:c.open))}).flatMap(s=>[s,...Cs(t,s.id,a)])}function e5(t){return"nativeEvent"in t}function Od(t,o){const a=["mouse","pen"];return a.push("",void 0),a.includes(t)}var t5=typeof document<"u",n5=function(){},pn=t5?S.useLayoutEffect:n5;const o5={...hv};function Po(t){const o=S.useRef(t);return pn(()=>{o.current=t}),o}const l5=o5.useInsertionEffect,a5=l5||(t=>t());function kn(t){const o=S.useRef(()=>{});return a5(()=>{o.current=t}),S.useCallback(function(){for(var a=arguments.length,r=new Array(a),s=0;s<a;s++)r[s]=arguments[s];return o.current==null?void 0:o.current(...r)},[])}function r5(t){const o=S.useRef(void 0),a=S.useCallback(r=>{const s=t.map(c=>{if(c!=null){if(typeof c=="function"){const f=c,d=f(r);return typeof d=="function"?d:()=>{f(null)}}return c.current=r,()=>{c.current=null}}});return()=>{s.forEach(c=>c?.())}},t);return S.useMemo(()=>t.every(r=>r==null)?null:r=>{o.current&&(o.current(),o.current=void 0),r!=null&&(o.current=a(r))},t)}const i5="data-floating-ui-focusable",y0="active",b0="selected",s5={...hv};let x0=!1,c5=0;const S0=()=>"floating-ui-"+Math.random().toString(36).slice(2,6)+c5++;function u5(){const[t,o]=S.useState(()=>x0?S0():void 0);return pn(()=>{t==null&&o(S0())},[]),S.useEffect(()=>{x0=!0},[]),t}const f5=s5.useId,Pv=f5||u5;function d5(){const t=new Map;return{emit(o,a){var r;(r=t.get(o))==null||r.forEach(s=>s(a))},on(o,a){t.has(o)||t.set(o,new Set),t.get(o).add(a)},off(o,a){var r;(r=t.get(o))==null||r.delete(a)}}}const m5=S.createContext(null),p5=S.createContext(null),qd=()=>{var t;return((t=S.useContext(m5))==null?void 0:t.id)||null},Yd=()=>S.useContext(p5);function Xd(t){return"data-floating-ui-"+t}function Vt(t){t.current!==-1&&(clearTimeout(t.current),t.current=-1)}const C0=Xd("safe-polygon");function ws(t,o,a){if(a&&!Od(a))return 0;if(typeof t=="number")return t;if(typeof t=="function"){const r=t();return typeof r=="number"?r:r?.[o]}return t?.[o]}function od(t){return typeof t=="function"?t():t}function Qv(t,o){o===void 0&&(o={});const{open:a,onOpenChange:r,dataRef:s,events:c,elements:f}=t,{enabled:d=!0,delay:p=0,handleClose:h=null,mouseOnly:v=!1,restMs:y=0,move:x=!0}=o,C=Yd(),T=qd(),w=Po(h),M=Po(p),R=Po(a),_=Po(y),N=S.useRef(),A=S.useRef(-1),H=S.useRef(),L=S.useRef(-1),Z=S.useRef(!0),I=S.useRef(!1),J=S.useRef(()=>{}),P=S.useRef(!1),ee=kn(()=>{var U;const V=(U=s.current.openEvent)==null?void 0:U.type;return V?.includes("mouse")&&V!=="mousedown"});S.useEffect(()=>{if(!d)return;function U(V){let{open:K}=V;K||(Vt(A),Vt(L),Z.current=!0,P.current=!1)}return c.on("openchange",U),()=>{c.off("openchange",U)}},[d,c]),S.useEffect(()=>{if(!d||!w.current||!a)return;function U(K){ee()&&r(!1,K,"hover")}const V=bl(f.floating).documentElement;return V.addEventListener("mouseleave",U),()=>{V.removeEventListener("mouseleave",U)}},[f.floating,a,r,d,w,ee]);const oe=S.useCallback(function(U,V,K){V===void 0&&(V=!0),K===void 0&&(K="hover");const W=ws(M.current,"close",N.current);W&&!H.current?(Vt(A),A.current=window.setTimeout(()=>r(!1,U,K),W)):V&&(Vt(A),r(!1,U,K))},[M,r]),te=kn(()=>{J.current(),H.current=void 0}),B=kn(()=>{if(I.current){const U=bl(f.floating).body;U.style.pointerEvents="",U.removeAttribute(C0),I.current=!1}}),ne=kn(()=>s.current.openEvent?["click","mousedown"].includes(s.current.openEvent.type):!1);S.useEffect(()=>{if(!d)return;function U(le){if(Vt(A),Z.current=!1,v&&!Od(N.current)||od(_.current)>0&&!ws(M.current,"open"))return;const ae=ws(M.current,"open",N.current);ae?A.current=window.setTimeout(()=>{R.current||r(!0,le,"hover")},ae):a||r(!0,le,"hover")}function V(le){if(ne()){B();return}J.current();const ae=bl(f.floating);if(Vt(L),P.current=!1,w.current&&s.current.floatingContext){a||Vt(A),H.current=w.current({...s.current.floatingContext,tree:C,x:le.clientX,y:le.clientY,onClose(){B(),te(),ne()||oe(le,!0,"safe-polygon")}});const ge=H.current;ae.addEventListener("mousemove",ge),J.current=()=>{ae.removeEventListener("mousemove",ge)};return}(N.current!=="touch"||!Hr(f.floating,le.relatedTarget))&&oe(le)}function K(le){ne()||s.current.floatingContext&&(w.current==null||w.current({...s.current.floatingContext,tree:C,x:le.clientX,y:le.clientY,onClose(){B(),te(),ne()||oe(le)}})(le))}function W(){Vt(A)}function de(le){ne()||oe(le,!1)}if(Ye(f.domReference)){const le=f.domReference,ae=f.floating;return a&&le.addEventListener("mouseleave",K),x&&le.addEventListener("mousemove",U,{once:!0}),le.addEventListener("mouseenter",U),le.addEventListener("mouseleave",V),ae&&(ae.addEventListener("mouseleave",K),ae.addEventListener("mouseenter",W),ae.addEventListener("mouseleave",de)),()=>{a&&le.removeEventListener("mouseleave",K),x&&le.removeEventListener("mousemove",U),le.removeEventListener("mouseenter",U),le.removeEventListener("mouseleave",V),ae&&(ae.removeEventListener("mouseleave",K),ae.removeEventListener("mouseenter",W),ae.removeEventListener("mouseleave",de))}}},[f,d,t,v,x,oe,te,B,r,a,R,C,M,w,s,ne,_]),pn(()=>{var U;if(d&&a&&(U=w.current)!=null&&(U=U.__options)!=null&&U.blockPointerEvents&&ee()){I.current=!0;const K=f.floating;if(Ye(f.domReference)&&K){var V;const W=bl(f.floating).body;W.setAttribute(C0,"");const de=f.domReference,le=C==null||(V=C.nodesRef.current.find(ae=>ae.id===T))==null||(V=V.context)==null?void 0:V.elements.floating;return le&&(le.style.pointerEvents=""),W.style.pointerEvents="none",de.style.pointerEvents="auto",K.style.pointerEvents="auto",()=>{W.style.pointerEvents="",de.style.pointerEvents="",K.style.pointerEvents=""}}}},[d,a,T,f,C,w,ee]),pn(()=>{a||(N.current=void 0,P.current=!1,te(),B())},[a,te,B]),S.useEffect(()=>()=>{te(),Vt(A),Vt(L),B()},[d,f.domReference,te,B]);const D=S.useMemo(()=>{function U(V){N.current=V.pointerType}return{onPointerDown:U,onPointerEnter:U,onMouseMove(V){const{nativeEvent:K}=V;function W(){!Z.current&&!R.current&&r(!0,K,"hover")}v&&!Od(N.current)||a||od(_.current)===0||P.current&&V.movementX**2+V.movementY**2<2||(Vt(L),N.current==="touch"?W():(P.current=!0,L.current=window.setTimeout(W,od(_.current))))}}},[v,r,a,R,_]);return S.useMemo(()=>d?{reference:D}:{},[d,D])}const Nd=()=>{},Iv=S.createContext({delay:0,initialDelay:0,timeoutMs:0,currentId:null,setCurrentId:Nd,setState:Nd,isInstantPhase:!1}),h5=()=>S.useContext(Iv);function g5(t){const{children:o,delay:a,timeoutMs:r=0}=t,[s,c]=S.useReducer((p,h)=>({...p,...h}),{delay:a,timeoutMs:r,initialDelay:a,currentId:null,isInstantPhase:!1}),f=S.useRef(null),d=S.useCallback(p=>{c({currentId:p})},[]);return pn(()=>{s.currentId?f.current===null?f.current=s.currentId:s.isInstantPhase||c({isInstantPhase:!0}):(s.isInstantPhase&&c({isInstantPhase:!1}),f.current=null)},[s.currentId,s.isInstantPhase]),g.jsx(Iv.Provider,{value:S.useMemo(()=>({...s,setState:c,setCurrentId:d}),[s,d]),children:o})}function v5(t,o){o===void 0&&(o={});const{open:a,onOpenChange:r,floatingId:s}=t,{id:c,enabled:f=!0}=o,d=c??s,p=h5(),{currentId:h,setCurrentId:v,initialDelay:y,setState:x,timeoutMs:C}=p;return pn(()=>{f&&h&&(x({delay:{open:1,close:ws(y,"close")}}),h!==d&&r(!1))},[f,d,r,x,h,y]),pn(()=>{function T(){r(!1),x({delay:y,currentId:null})}if(f&&h&&!a&&h===d){if(C){const w=window.setTimeout(T,C);return()=>{clearTimeout(w)}}T()}},[f,a,x,h,d,r,y,C]),pn(()=>{f&&(v===Nd||!a||v(d))},[f,a,v,d]),p}function ld(t,o){if(!t||!o)return!1;const a=o.getRootNode==null?void 0:o.getRootNode();if(t.contains(o))return!0;if(a&&Rs(a)){let r=o;for(;r;){if(t===r)return!0;r=r.parentNode||r.host}}return!1}function y5(t){return"composedPath"in t?t.composedPath()[0]:t.target}const b5={pointerdown:"onPointerDown",mousedown:"onMouseDown",click:"onClick"},x5={pointerdown:"onPointerDownCapture",mousedown:"onMouseDownCapture",click:"onClickCapture"},w0=t=>{var o,a;return{escapeKey:typeof t=="boolean"?t:(o=t?.escapeKey)!=null?o:!1,outsidePress:typeof t=="boolean"?t:(a=t?.outsidePress)!=null?a:!0}};function Kv(t,o){o===void 0&&(o={});const{open:a,onOpenChange:r,elements:s,dataRef:c}=t,{enabled:f=!0,escapeKey:d=!0,outsidePress:p=!0,outsidePressEvent:h="pointerdown",referencePress:v=!1,referencePressEvent:y="pointerdown",ancestorScroll:x=!1,bubbles:C,capture:T}=o,w=Yd(),M=kn(typeof p=="function"?p:()=>!1),R=typeof p=="function"?M:p,_=S.useRef(!1),{escapeKey:N,outsidePress:A}=w0(C),{escapeKey:H,outsidePress:L}=w0(T),Z=S.useRef(!1),I=kn(B=>{var ne;if(!a||!f||!d||B.key!=="Escape"||Z.current)return;const D=(ne=c.current.floatingContext)==null?void 0:ne.nodeId,U=w?Cs(w.nodesRef.current,D):[];if(!N&&(B.stopPropagation(),U.length>0)){let V=!0;if(U.forEach(K=>{var W;if((W=K.context)!=null&&W.open&&!K.context.dataRef.current.__escapeKeyBubbles){V=!1;return}}),!V)return}r(!1,e5(B)?B.nativeEvent:B,"escape-key")}),J=kn(B=>{var ne;const D=()=>{var U;I(B),(U=ga(B))==null||U.removeEventListener("keydown",D)};(ne=ga(B))==null||ne.addEventListener("keydown",D)}),P=kn(B=>{var ne;const D=c.current.insideReactTree;c.current.insideReactTree=!1;const U=_.current;if(_.current=!1,h==="click"&&U||D||typeof R=="function"&&!R(B))return;const V=ga(B),K="["+Xd("inert")+"]",W=bl(s.floating).querySelectorAll(K);let de=Ye(V)?V:null;for(;de&&!ho(de);){const ge=vo(de);if(ho(ge)||!Ye(ge))break;de=ge}if(W.length&&Ye(V)&&!KC(V)&&!Hr(V,s.floating)&&Array.from(W).every(ge=>!Hr(de,ge)))return;if(Wt(V)&&te){const ge=ho(V),Ne=hn(V),Pe=/auto|scroll/,Ee=ge||Pe.test(Ne.overflowX),ve=ge||Pe.test(Ne.overflowY),We=Ee&&V.clientWidth>0&&V.scrollWidth>V.clientWidth,rt=ve&&V.clientHeight>0&&V.scrollHeight>V.clientHeight,et=Ne.direction==="rtl",ze=rt&&(et?B.offsetX<=V.offsetWidth-V.clientWidth:B.offsetX>V.clientWidth),ot=We&&B.offsetY>V.clientHeight;if(ze||ot)return}const le=(ne=c.current.floatingContext)==null?void 0:ne.nodeId,ae=w&&Cs(w.nodesRef.current,le).some(ge=>{var Ne;return nd(B,(Ne=ge.context)==null?void 0:Ne.elements.floating)});if(nd(B,s.floating)||nd(B,s.domReference)||ae)return;const ye=w?Cs(w.nodesRef.current,le):[];if(ye.length>0){let ge=!0;if(ye.forEach(Ne=>{var Pe;if((Pe=Ne.context)!=null&&Pe.open&&!Ne.context.dataRef.current.__outsidePressBubbles){ge=!1;return}}),!ge)return}r(!1,B,"outside-press")}),ee=kn(B=>{var ne;const D=()=>{var U;P(B),(U=ga(B))==null||U.removeEventListener(h,D)};(ne=ga(B))==null||ne.addEventListener(h,D)});S.useEffect(()=>{if(!a||!f)return;c.current.__escapeKeyBubbles=N,c.current.__outsidePressBubbles=A;let B=-1;function ne(W){r(!1,W,"ancestor-scroll")}function D(){window.clearTimeout(B),Z.current=!0}function U(){B=window.setTimeout(()=>{Z.current=!1},Ks()?5:0)}const V=bl(s.floating);d&&(V.addEventListener("keydown",H?J:I,H),V.addEventListener("compositionstart",D),V.addEventListener("compositionend",U)),R&&V.addEventListener(h,L?ee:P,L);let K=[];return x&&(Ye(s.domReference)&&(K=go(s.domReference)),Ye(s.floating)&&(K=K.concat(go(s.floating))),!Ye(s.reference)&&s.reference&&s.reference.contextElement&&(K=K.concat(go(s.reference.contextElement)))),K=K.filter(W=>{var de;return W!==((de=V.defaultView)==null?void 0:de.visualViewport)}),K.forEach(W=>{W.addEventListener("scroll",ne,{passive:!0})}),()=>{d&&(V.removeEventListener("keydown",H?J:I,H),V.removeEventListener("compositionstart",D),V.removeEventListener("compositionend",U)),R&&V.removeEventListener(h,L?ee:P,L),K.forEach(W=>{W.removeEventListener("scroll",ne)}),window.clearTimeout(B)}},[c,s,d,R,h,a,r,x,f,N,A,I,H,J,P,L,ee]),S.useEffect(()=>{c.current.insideReactTree=!1},[c,R,h]);const oe=S.useMemo(()=>({onKeyDown:I,...v&&{[b5[y]]:B=>{r(!1,B.nativeEvent,"reference-press")},...y!=="click"&&{onClick(B){r(!1,B.nativeEvent,"reference-press")}}}}),[I,r,v,y]),te=S.useMemo(()=>({onKeyDown:I,onMouseDown(){_.current=!0},onMouseUp(){_.current=!0},[x5[h]]:()=>{c.current.insideReactTree=!0}}),[I,h,c]);return S.useMemo(()=>f?{reference:oe,floating:te}:{},[f,oe,te])}function S5(t){const{open:o=!1,onOpenChange:a,elements:r}=t,s=Pv(),c=S.useRef({}),[f]=S.useState(()=>d5()),d=qd()!=null,[p,h]=S.useState(r.reference),v=kn((C,T,w)=>{c.current.openEvent=C?T:void 0,f.emit("openchange",{open:C,event:T,reason:w,nested:d}),a?.(C,T,w)}),y=S.useMemo(()=>({setPositionReference:h}),[]),x=S.useMemo(()=>({reference:p||r.reference||null,floating:r.floating||null,domReference:r.reference}),[p,r.reference,r.floating]);return S.useMemo(()=>({dataRef:c,open:o,onOpenChange:v,elements:x,events:f,floatingId:s,refs:y}),[o,v,x,f,s,y])}function Ws(t){t===void 0&&(t={});const{nodeId:o}=t,a=S5({...t,elements:{reference:null,floating:null,...t.elements}}),r=t.rootContext||a,s=r.elements,[c,f]=S.useState(null),[d,p]=S.useState(null),v=s?.domReference||c,y=S.useRef(null),x=Yd();pn(()=>{v&&(y.current=v)},[v]);const C=DC({...t,elements:{...s,...d&&{reference:d}}}),T=S.useCallback(N=>{const A=Ye(N)?{getBoundingClientRect:()=>N.getBoundingClientRect(),getClientRects:()=>N.getClientRects(),contextElement:N}:N;p(A),C.refs.setReference(A)},[C.refs]),w=S.useCallback(N=>{(Ye(N)||N===null)&&(y.current=N,f(N)),(Ye(C.refs.reference.current)||C.refs.reference.current===null||N!==null&&!Ye(N))&&C.refs.setReference(N)},[C.refs]),M=S.useMemo(()=>({...C.refs,setReference:w,setPositionReference:T,domReference:y}),[C.refs,w,T]),R=S.useMemo(()=>({...C.elements,domReference:v}),[C.elements,v]),_=S.useMemo(()=>({...C,...r,refs:M,elements:R,nodeId:o}),[C,M,R,o,r]);return pn(()=>{r.dataRef.current.floatingContext=_;const N=x?.nodesRef.current.find(A=>A.id===o);N&&(N.context=_)}),S.useMemo(()=>({...C,context:_,refs:M,elements:R}),[C,M,R,_])}function ad(){return PC()&&XC()}function C5(t,o){o===void 0&&(o={});const{open:a,onOpenChange:r,events:s,dataRef:c,elements:f}=t,{enabled:d=!0,visibleOnly:p=!0}=o,h=S.useRef(!1),v=S.useRef(-1),y=S.useRef(!0);S.useEffect(()=>{if(!d)return;const C=Ut(f.domReference);function T(){!a&&Wt(f.domReference)&&f.domReference===v0(bl(f.domReference))&&(h.current=!0)}function w(){y.current=!0}function M(){y.current=!1}return C.addEventListener("blur",T),ad()&&(C.addEventListener("keydown",w,!0),C.addEventListener("pointerdown",M,!0)),()=>{C.removeEventListener("blur",T),ad()&&(C.removeEventListener("keydown",w,!0),C.removeEventListener("pointerdown",M,!0))}},[f.domReference,a,d]),S.useEffect(()=>{if(!d)return;function C(T){let{reason:w}=T;(w==="reference-press"||w==="escape-key")&&(h.current=!0)}return s.on("openchange",C),()=>{s.off("openchange",C)}},[s,d]),S.useEffect(()=>()=>{Vt(v)},[]);const x=S.useMemo(()=>({onMouseLeave(){h.current=!1},onFocus(C){if(h.current)return;const T=ga(C.nativeEvent);if(p&&Ye(T)){if(ad()&&!C.relatedTarget){if(!y.current&&!FC(T))return}else if(!JC(T))return}r(!0,C.nativeEvent,"focus")},onBlur(C){h.current=!1;const T=C.relatedTarget,w=C.nativeEvent,M=Ye(T)&&T.hasAttribute(Xd("focus-guard"))&&T.getAttribute("data-type")==="outside";v.current=window.setTimeout(()=>{var R;const _=v0(f.domReference?f.domReference.ownerDocument:document);!T&&_===f.domReference||Hr((R=c.current.floatingContext)==null?void 0:R.refs.floating.current,_)||Hr(f.domReference,_)||M||r(!1,w,"focus")})}}),[c,f.domReference,r,p]);return S.useMemo(()=>d?{reference:x}:{},[d,x])}function rd(t,o,a){const r=new Map,s=a==="item";let c=t;if(s&&t){const{[y0]:f,[b0]:d,...p}=t;c=p}return{...a==="floating"&&{tabIndex:-1,[i5]:""},...c,...o.map(f=>{const d=f?f[a]:null;return typeof d=="function"?t?d(t):null:d}).concat(t).reduce((f,d)=>(d&&Object.entries(d).forEach(p=>{let[h,v]=p;if(!(s&&[y0,b0].includes(h)))if(h.indexOf("on")===0){if(r.has(h)||r.set(h,[]),typeof v=="function"){var y;(y=r.get(h))==null||y.push(v),f[h]=function(){for(var x,C=arguments.length,T=new Array(C),w=0;w<C;w++)T[w]=arguments[w];return(x=r.get(h))==null?void 0:x.map(M=>M(...T)).find(M=>M!==void 0)}}}else f[h]=v}),f),{})}}function Fv(t){t===void 0&&(t=[]);const o=t.map(d=>d?.reference),a=t.map(d=>d?.floating),r=t.map(d=>d?.item),s=S.useCallback(d=>rd(d,t,"reference"),o),c=S.useCallback(d=>rd(d,t,"floating"),a),f=S.useCallback(d=>rd(d,t,"item"),r);return S.useMemo(()=>({getReferenceProps:s,getFloatingProps:c,getItemProps:f}),[s,c,f])}const w5=new Map([["select","listbox"],["combobox","listbox"],["label",!1]]);function T5(t,o){var a,r;o===void 0&&(o={});const{open:s,elements:c,floatingId:f}=t,{enabled:d=!0,role:p="dialog"}=o,h=Pv(),v=((a=c.domReference)==null?void 0:a.id)||h,y=S.useMemo(()=>{var _;return((_=WC(c.floating))==null?void 0:_.id)||f},[c.floating,f]),x=(r=w5.get(p))!=null?r:p,T=qd()!=null,w=S.useMemo(()=>x==="tooltip"||p==="label"?{["aria-"+(p==="label"?"labelledby":"describedby")]:s?y:void 0}:{"aria-expanded":s?"true":"false","aria-haspopup":x==="alertdialog"?"dialog":x,"aria-controls":s?y:void 0,...x==="listbox"&&{role:"combobox"},...x==="menu"&&{id:v},...x==="menu"&&T&&{role:"menuitem"},...p==="select"&&{"aria-autocomplete":"none"},...p==="combobox"&&{"aria-autocomplete":"list"}},[x,y,T,s,v,p]),M=S.useMemo(()=>{const _={id:y,...x&&{role:x}};return x==="tooltip"||p==="label"?_:{..._,...x==="menu"&&{"aria-labelledby":v}}},[x,y,v,p]),R=S.useCallback(_=>{let{active:N,selected:A}=_;const H={role:"option",...N&&{id:y+"-fui-option"}};switch(p){case"select":case"combobox":return{...H,"aria-selected":A}}return{}},[y,p]);return S.useMemo(()=>d?{reference:w,floating:M,item:R}:{},[d,w,M,R])}const T0=t=>t.replace(/[A-Z]+(?![a-z])|[A-Z]/g,(o,a)=>(a?"-":"")+o.toLowerCase());function da(t,o){return typeof t=="function"?t(o):t}function E5(t,o){const[a,r]=S.useState(t);return t&&!a&&r(!0),S.useEffect(()=>{if(!t&&a){const s=setTimeout(()=>r(!1),o);return()=>clearTimeout(s)}},[t,a,o]),a}function Jv(t,o){o===void 0&&(o={});const{open:a,elements:{floating:r}}=t,{duration:s=250}=o,f=(typeof s=="number"?s:s.close)||0,[d,p]=S.useState("unmounted"),h=E5(a,f);return!h&&d==="close"&&p("unmounted"),pn(()=>{if(r){if(a){p("initial");const v=requestAnimationFrame(()=>{Zn.flushSync(()=>{p("open")})});return()=>{cancelAnimationFrame(v)}}p("close")}},[a,r]),{isMounted:h,status:d}}function M5(t,o){o===void 0&&(o={});const{initial:a={opacity:0},open:r,close:s,common:c,duration:f=250}=o,d=t.placement,p=d.split("-")[0],h=S.useMemo(()=>({side:p,placement:d}),[p,d]),v=typeof f=="number",y=(v?f:f.open)||0,x=(v?f:f.close)||0,[C,T]=S.useState(()=>({...da(c,h),...da(a,h)})),{isMounted:w,status:M}=Jv(t,{duration:f}),R=Po(a),_=Po(r),N=Po(s),A=Po(c);return pn(()=>{const H=da(R.current,h),L=da(N.current,h),Z=da(A.current,h),I=da(_.current,h)||Object.keys(H).reduce((J,P)=>(J[P]="",J),{});if(M==="initial"&&T(J=>({transitionProperty:J.transitionProperty,...Z,...H})),M==="open"&&T({transitionProperty:Object.keys(I).map(T0).join(","),transitionDuration:y+"ms",...Z,...I}),M==="close"){const J=L||H;T({transitionProperty:Object.keys(J).map(T0).join(","),transitionDuration:x+"ms",...Z,...J})}},[x,N,R,_,A,y,M,h]),{isMounted:w,styles:C}}function Wv(t,o,a){return a===void 0&&(a=!0),t.filter(s=>{var c;return s.parentId===o&&(!a||((c=s.context)==null?void 0:c.open))}).flatMap(s=>[s,...Wv(t,s.id,a)])}function E0(t,o){const[a,r]=t;let s=!1;const c=o.length;for(let f=0,d=c-1;f<c;d=f++){const[p,h]=o[f]||[0,0],[v,y]=o[d]||[0,0];h>=r!=y>=r&&a<=(v-p)*(r-h)/(y-h)+p&&(s=!s)}return s}function R5(t,o){return t[0]>=o.x&&t[0]<=o.x+o.width&&t[1]>=o.y&&t[1]<=o.y+o.height}function j5(t){t===void 0&&(t={});const{buffer:o=.5,blockPointerEvents:a=!1,requireIntent:r=!0}=t,s={current:-1};let c=!1,f=null,d=null,p=typeof performance<"u"?performance.now():0;function h(y,x){const C=performance.now(),T=C-p;if(f===null||d===null||T===0)return f=y,d=x,p=C,null;const w=y-f,M=x-d,_=Math.sqrt(w*w+M*M)/T;return f=y,d=x,p=C,_}const v=y=>{let{x,y:C,placement:T,elements:w,onClose:M,nodeId:R,tree:_}=y;return function(A){function H(){Vt(s),M()}if(Vt(s),!w.domReference||!w.floating||T==null||x==null||C==null)return;const{clientX:L,clientY:Z}=A,I=[L,Z],J=y5(A),P=A.type==="mouseleave",ee=ld(w.floating,J),oe=ld(w.domReference,J),te=w.domReference.getBoundingClientRect(),B=w.floating.getBoundingClientRect(),ne=T.split("-")[0],D=x>B.right-B.width/2,U=C>B.bottom-B.height/2,V=R5(I,te),K=B.width>te.width,W=B.height>te.height,de=(K?te:B).left,le=(K?te:B).right,ae=(W?te:B).top,ye=(W?te:B).bottom;if(ee&&(c=!0,!P))return;if(oe&&(c=!1),oe&&!P){c=!0;return}if(P&&Ye(A.relatedTarget)&&ld(w.floating,A.relatedTarget)||_&&Wv(_.nodesRef.current,R).length)return;if(ne==="top"&&C>=te.bottom-1||ne==="bottom"&&C<=te.top+1||ne==="left"&&x>=te.right-1||ne==="right"&&x<=te.left+1)return H();let ge=[];switch(ne){case"top":ge=[[de,te.top+1],[de,B.bottom-1],[le,B.bottom-1],[le,te.top+1]];break;case"bottom":ge=[[de,B.top+1],[de,te.bottom-1],[le,te.bottom-1],[le,B.top+1]];break;case"left":ge=[[B.right-1,ye],[B.right-1,ae],[te.left+1,ae],[te.left+1,ye]];break;case"right":ge=[[te.right-1,ye],[te.right-1,ae],[B.left+1,ae],[B.left+1,ye]];break}function Ne(Pe){let[Ee,ve]=Pe;switch(ne){case"top":{const We=[K?Ee+o/2:D?Ee+o*4:Ee-o*4,ve+o+1],rt=[K?Ee-o/2:D?Ee+o*4:Ee-o*4,ve+o+1],et=[[B.left,D||K?B.bottom-o:B.top],[B.right,D?K?B.bottom-o:B.top:B.bottom-o]];return[We,rt,...et]}case"bottom":{const We=[K?Ee+o/2:D?Ee+o*4:Ee-o*4,ve-o],rt=[K?Ee-o/2:D?Ee+o*4:Ee-o*4,ve-o],et=[[B.left,D||K?B.top+o:B.bottom],[B.right,D?K?B.top+o:B.bottom:B.top+o]];return[We,rt,...et]}case"left":{const We=[Ee+o+1,W?ve+o/2:U?ve+o*4:ve-o*4],rt=[Ee+o+1,W?ve-o/2:U?ve+o*4:ve-o*4];return[...[[U||W?B.right-o:B.left,B.top],[U?W?B.right-o:B.left:B.right-o,B.bottom]],We,rt]}case"right":{const We=[Ee-o,W?ve+o/2:U?ve+o*4:ve-o*4],rt=[Ee-o,W?ve-o/2:U?ve+o*4:ve-o*4],et=[[U||W?B.left+o:B.right,B.top],[U?W?B.left+o:B.right:B.left+o,B.bottom]];return[We,rt,...et]}}}if(!E0([L,Z],ge)){if(c&&!V)return H();if(!P&&r){const Pe=h(A.clientX,A.clientY);if(Pe!==null&&Pe<.1)return H()}E0([L,Z],Ne([x,C]))?!c&&r&&(s.current=window.setTimeout(H,40)):H()}}};return v.__options={blockPointerEvents:a},v}function _5(t,o=a=>a){return qS.useSyncExternalStoreWithSelector(t.subscribe,()=>t.state,()=>t.state,o,O5)}function O5(t,o){if(Object.is(t,o))return!0;if(typeof t!="object"||t===null||typeof o!="object"||o===null)return!1;if(t instanceof Map&&o instanceof Map){if(t.size!==o.size)return!1;for(const[r,s]of t)if(!o.has(r)||!Object.is(s,o.get(r)))return!1;return!0}if(t instanceof Set&&o instanceof Set){if(t.size!==o.size)return!1;for(const r of t)if(!o.has(r))return!1;return!0}if(t instanceof Date&&o instanceof Date)return t.getTime()===o.getTime();const a=M0(t);if(a.length!==M0(o).length)return!1;for(let r=0;r<a.length;r++)if(!Object.prototype.hasOwnProperty.call(o,a[r])||!Object.is(t[a[r]],o[a[r]]))return!1;return!0}function M0(t){return Object.keys(t).concat(Object.getOwnPropertySymbols(t))}var N5=Cv(),A5=(...t)=>o=>{t.forEach(a=>{typeof a=="function"?a(o):a&&(a.current=o)})},D5=({contentComponent:t})=>{const o=N5.useSyncExternalStore(t.subscribe,t.getSnapshot,t.getServerSnapshot);return g.jsx(g.Fragment,{children:Object.values(o)})};function H5(){const t=new Set;let o={};return{subscribe(a){return t.add(a),()=>{t.delete(a)}},getSnapshot(){return o},getServerSnapshot(){return o},setRenderer(a,r){o={...o,[a]:wv.createPortal(r.reactElement,r.element,a)},t.forEach(s=>s())},removeRenderer(a){const r={...o};delete r[a],o=r,t.forEach(s=>s())}}}var z5=class extends Ve.Component{constructor(t){var o;super(t),this.editorContentRef=Ve.createRef(),this.initialized=!1,this.state={hasContentComponentInitialized:!!((o=t.editor)!=null&&o.contentComponent)}}componentDidMount(){this.init()}componentDidUpdate(){this.init()}init(){var t;const o=this.props.editor;if(o&&!o.isDestroyed&&((t=o.view.dom)!=null&&t.parentNode)){if(o.contentComponent)return;const a=this.editorContentRef.current;a.append(...o.view.dom.parentNode.childNodes),o.setOptions({element:a}),o.contentComponent=H5(),this.state.hasContentComponentInitialized||(this.unsubscribeToContentComponent=o.contentComponent.subscribe(()=>{this.setState(r=>r.hasContentComponentInitialized?r:{hasContentComponentInitialized:!0}),this.unsubscribeToContentComponent&&this.unsubscribeToContentComponent()})),o.createNodeViews(),this.initialized=!0}}componentWillUnmount(){var t;const o=this.props.editor;if(o){this.initialized=!1,o.isDestroyed||o.view.setProps({nodeViews:{}}),this.unsubscribeToContentComponent&&this.unsubscribeToContentComponent(),o.contentComponent=null;try{if(!((t=o.view.dom)!=null&&t.parentNode))return;const a=document.createElement("div");a.append(...o.view.dom.parentNode.childNodes),o.setOptions({element:a})}catch{}}}render(){const{editor:t,innerRef:o,...a}=this.props;return g.jsxs(g.Fragment,{children:[g.jsx("div",{ref:A5(o,this.editorContentRef),...a}),t?.contentComponent&&g.jsx(D5,{contentComponent:t.contentComponent})]})}},L5=S.forwardRef((t,o)=>{const a=Ve.useMemo(()=>Math.floor(Math.random()*4294967295).toString(),[t.editor]);return Ve.createElement(z5,{key:a,innerRef:o,...t})}),V5=Ve.memo(L5),ey=S.createContext({editor:null});ey.Consumer;var ty=S.createContext({onDragStart:()=>{},nodeViewContentChildren:void 0,nodeViewContentRef:()=>{}}),Pd=()=>S.useContext(ty),ny=Ve.forwardRef((t,o)=>{const{onDragStart:a}=Pd(),r=t.as||"div";return g.jsx(r,{...t,ref:o,"data-node-view-wrapper":"",onDragStart:a,style:{whiteSpace:"normal",...t.style}})});function R0(t){return!!(typeof t=="function"&&t.prototype&&t.prototype.isReactComponent)}function j0(t){return!!(typeof t=="object"&&t.$$typeof&&(t.$$typeof.toString()==="Symbol(react.forward_ref)"||t.$$typeof.description==="react.forward_ref"))}function k5(t){return!!(typeof t=="object"&&t.$$typeof&&(t.$$typeof.toString()==="Symbol(react.memo)"||t.$$typeof.description==="react.memo"))}function B5(t){if(R0(t)||j0(t))return!0;if(k5(t)){const o=t.type;if(o)return R0(o)||j0(o)}return!1}function U5(){try{if(S.version)return parseInt(S.version.split(".")[0],10)>=19}catch{}return!1}var $5=class{constructor(t,{editor:o,props:a={},as:r="div",className:s=""}){this.ref=null,this.destroyed=!1,this.id=Math.floor(Math.random()*4294967295).toString(),this.component=t,this.editor=o,this.props=a,this.element=document.createElement(r),this.element.classList.add("react-renderer"),s&&this.element.classList.add(...s.split(" ")),this.editor.isInitialized?Zn.flushSync(()=>{this.render()}):queueMicrotask(()=>{this.destroyed||this.render()})}render(){var t;if(this.destroyed)return;const o=this.component,a=this.props,r=this.editor,s=U5(),c=B5(o),f={...a};f.ref&&!(s||c)&&delete f.ref,!f.ref&&(s||c)&&(f.ref=d=>{this.ref=d}),this.reactElement=g.jsx(o,{...f}),(t=r?.contentComponent)==null||t.setRenderer(this.id,this)}updateProps(t={}){this.destroyed||(this.props={...this.props,...t},this.render())}destroy(){var t;this.destroyed=!0;const o=this.editor;(t=o?.contentComponent)==null||t.removeRenderer(this.id);try{this.element&&this.element.parentNode&&this.element.parentNode.removeChild(this.element)}catch{}}updateAttributes(t){Object.keys(t).forEach(o=>{this.element.setAttribute(o,t[o])})}};Ve.createContext({markViewContentRef:()=>{}});var G5=class extends dS{constructor(t,o,a){if(super(t,o,a),this.selectionRafId=null,this.cachedExtensionWithSyncedStorage=null,!this.node.isLeaf){this.options.contentDOMElementTag?this.contentDOMElement=document.createElement(this.options.contentDOMElementTag):this.contentDOMElement=document.createElement(this.node.isInline?"span":"div"),this.contentDOMElement.dataset.nodeViewContentReact="",this.contentDOMElement.dataset.nodeViewWrapper="",this.contentDOMElement.style.whiteSpace="inherit";const r=this.dom.querySelector("[data-node-view-content]");if(!r)return;r.appendChild(this.contentDOMElement)}}get extensionWithSyncedStorage(){if(!this.cachedExtensionWithSyncedStorage){const t=this.editor,o=this.extension;this.cachedExtensionWithSyncedStorage=new Proxy(o,{get(a,r,s){var c;return r==="storage"?(c=t.storage[o.name])!=null?c:{}:Reflect.get(a,r,s)}})}return this.cachedExtensionWithSyncedStorage}mount(){const t={editor:this.editor,node:this.node,decorations:this.decorations,innerDecorations:this.innerDecorations,view:this.view,selected:!1,extension:this.extensionWithSyncedStorage,HTMLAttributes:this.HTMLAttributes,getPos:()=>this.getPos(),updateAttributes:(p={})=>this.updateAttributes(p),deleteNode:()=>this.deleteNode(),ref:S.createRef()};if(!this.component.displayName){const p=h=>h.charAt(0).toUpperCase()+h.substring(1);this.component.displayName=p(this.extension.name)}const r={onDragStart:this.onDragStart.bind(this),nodeViewContentRef:p=>{p&&this.contentDOMElement&&p.firstChild!==this.contentDOMElement&&(p.hasAttribute("data-node-view-wrapper")&&p.removeAttribute("data-node-view-wrapper"),p.appendChild(this.contentDOMElement))}},s=this.component,c=S.memo(p=>g.jsx(ty.Provider,{value:r,children:S.createElement(s,p)}));c.displayName="ReactNodeView";let f=this.node.isInline?"span":"div";this.options.as&&(f=this.options.as);const{className:d=""}=this.options;this.handleSelectionUpdate=this.handleSelectionUpdate.bind(this),this.renderer=new $5(c,{editor:this.editor,props:t,as:f,className:`node-${this.node.type.name} ${d}`.trim()}),this.editor.on("selectionUpdate",this.handleSelectionUpdate),this.updateElementAttributes()}get dom(){var t;if(this.renderer.element.firstElementChild&&!((t=this.renderer.element.firstElementChild)!=null&&t.hasAttribute("data-node-view-wrapper")))throw Error("Please use the NodeViewWrapper component for your node view.");return this.renderer.element}get contentDOM(){return this.node.isLeaf?null:this.contentDOMElement}handleSelectionUpdate(){this.selectionRafId&&(cancelAnimationFrame(this.selectionRafId),this.selectionRafId=null),this.selectionRafId=requestAnimationFrame(()=>{this.selectionRafId=null;const{from:t,to:o}=this.editor.state.selection,a=this.getPos();if(typeof a=="number")if(t<=a&&o>=a+this.node.nodeSize){if(this.renderer.props.selected)return;this.selectNode()}else{if(!this.renderer.props.selected)return;this.deselectNode()}})}update(t,o,a){const r=s=>{this.renderer.updateProps(s),typeof this.options.attrs=="function"&&this.updateElementAttributes()};if(t.type!==this.node.type)return!1;if(typeof this.options.update=="function"){const s=this.node,c=this.decorations,f=this.innerDecorations;return this.node=t,this.decorations=o,this.innerDecorations=a,this.options.update({oldNode:s,oldDecorations:c,newNode:t,newDecorations:o,oldInnerDecorations:f,innerDecorations:a,updateProps:()=>r({node:t,decorations:o,innerDecorations:a,extension:this.extensionWithSyncedStorage})})}return t===this.node&&this.decorations===o&&this.innerDecorations===a||(this.node=t,this.decorations=o,this.innerDecorations=a,r({node:t,decorations:o,innerDecorations:a,extension:this.extensionWithSyncedStorage})),!0}selectNode(){this.renderer.updateProps({selected:!0}),this.renderer.element.classList.add("ProseMirror-selectednode")}deselectNode(){this.renderer.updateProps({selected:!1}),this.renderer.element.classList.remove("ProseMirror-selectednode")}destroy(){this.renderer.destroy(),this.editor.off("selectionUpdate",this.handleSelectionUpdate),this.contentDOMElement=null,this.selectionRafId&&(cancelAnimationFrame(this.selectionRafId),this.selectionRafId=null)}updateElementAttributes(){if(this.options.attrs){let t={};if(typeof this.options.attrs=="function"){const o=this.editor.extensionManager.attributes,a=mS(this.node,o);t=this.options.attrs({node:this.node,HTMLAttributes:a})}else t=this.options.attrs;this.renderer.updateAttributes(t)}}};function oy(t,o){return a=>a.editor.contentComponent?new G5(t,a,o):{}}var Qd=S.createContext({get editor(){throw new Error("useTiptap must be used within a <Tiptap> provider")}});Qd.displayName="TiptapContext";var Z5=()=>S.useContext(Qd);function ly({editor:t,instance:o,children:a}){const r=t??o;if(!r)throw new Error("Tiptap: An editor instance is required. Pass a non-null `editor` prop.");const s=S.useMemo(()=>({editor:r}),[r]),c=S.useMemo(()=>({editor:r}),[r]);return g.jsx(ey.Provider,{value:c,children:g.jsx(Qd.Provider,{value:s,children:a})})}ly.displayName="Tiptap";function ay({...t}){const{editor:o}=Z5();return g.jsx(V5,{editor:o,...t})}ay.displayName="Tiptap.Content";Object.assign(ly,{Content:ay});var q5=Object.defineProperty,Y5=(t,o,a)=>o in t?q5(t,o,{enumerable:!0,configurable:!0,writable:!0,value:a}):t[o]=a,Er=(t,o,a)=>Y5(t,typeof o!="symbol"?o+"":o,a);const ry=S.createContext(void 0);function Mn(t){return S.useContext(ry)}const iy=S.createContext(void 0);function ue(){return S.useContext(iy)}function pe(t){const o=Mn();if(!(o!=null&&o.editor))throw new Error("useBlockNoteEditor was called outside of a BlockNoteContext provider or BlockNoteView component");return o.editor}function Se(){return Mn().editor.dictionary}const X5=t=>{const o=ue(),a=Se(),r=pe(),s=r.getBlock(t.blockId),[c,f]=S.useState(""),d=S.useCallback(v=>{f(v.currentTarget.value)},[]),p=S.useCallback(v=>{v.key==="Enter"&&!v.nativeEvent.isComposing&&(v.preventDefault(),r.updateBlock(s.id,{props:{name:zg(c),url:c}}))},[r,s.id,c]),h=S.useCallback(()=>{r.updateBlock(s.id,{props:{name:zg(c),url:c}})},[r,s.id,c]);return g.jsxs(o.FilePanel.TabPanel,{className:"bn-tab-panel",children:[g.jsx(o.FilePanel.TextInput,{className:"bn-text-input",placeholder:a.file_panel.embed.url_placeholder,value:c,onChange:d,onKeyDown:p,"data-test":"embed-input"}),g.jsx(o.FilePanel.Button,{className:"bn-button",onClick:h,"data-test":"embed-input-button",children:a.file_panel.embed.embed_button[s.type]||a.file_panel.embed.embed_button.file})]})},P5=t=>{var o,a;const r=ue(),s=Se(),{setLoading:c}=t,f=pe(),d=f.getBlock(t.blockId),[p,h]=S.useState(!1);S.useEffect(()=>{p&&setTimeout(()=>{h(!1)},3e3)},[p]);const v=S.useCallback(C=>{if(C===null)return;async function T(w){if(c(!0),f.uploadFile!==void 0)try{let M=await f.uploadFile(w,t.blockId);typeof M=="string"&&(M={props:{name:w.name,url:M}}),f.updateBlock(t.blockId,M)}catch{h(!0)}finally{c(!1)}}T(C)},[t.blockId,f,c]),y=f.schema.blockSpecs[d.type],x=(a=(o=y.implementation.meta)==null?void 0:o.fileBlockAccept)!=null&&a.length?y.implementation.meta.fileBlockAccept.join(","):"*/*";return g.jsxs(r.FilePanel.TabPanel,{className:"bn-tab-panel",children:[g.jsx(r.FilePanel.FileInput,{className:"bn-file-input","data-test":"upload-input",accept:x,placeholder:s.file_panel.upload.file_placeholder[d.type]||s.file_panel.upload.file_placeholder.file,value:null,onChange:v}),p&&g.jsx("div",{className:"bn-error-text",children:s.file_panel.upload.upload_error})]})},sy=t=>{const o=ue(),a=Se(),r=pe(),[s,c]=S.useState(!1),f=t.tabs??[...r.uploadFile!==void 0?[{name:a.file_panel.upload.title,tabPanel:g.jsx(P5,{blockId:t.blockId,setLoading:c})}]:[],{name:a.file_panel.embed.title,tabPanel:g.jsx(X5,{blockId:t.blockId})}],[d,p]=S.useState(t.defaultOpenTab||f[0].name);return g.jsx(o.FilePanel.Root,{className:"bn-panel",defaultOpenTab:d,openTab:d,setOpenTab:p,tabs:f,loading:s})};function Q5(t){let o=new DOMRect;const a="getBoundingClientRect"in t?()=>t.getBoundingClientRect():()=>t.element.getBoundingClientRect();return()=>"element"in t&&(t.cacheMountedBoundingClientRect??!0)?(t.element.isConnected&&(o=a()),o):a()}const Bn=t=>{var o,a,r;const{refs:s,floatingStyles:c,context:f}=Ws({whileElementsMounted:js,...t.useFloatingOptions}),{isMounted:d,styles:p}=M5(f,t.useTransitionStylesProps),{status:h}=Jv(f,t.useTransitionStatusProps),v=Kv(f,t.useDismissProps),y=Qv(f,{enabled:!1,...t.useHoverProps}),{getFloatingProps:x}=Fv([v,y]),C=S.useRef(""),T=S.useRef(null),w=r5([T,s.setFloating]);if(S.useEffect(()=>{if(t.reference){const R="element"in t.reference?t.reference.element:void 0;R!==void 0&&s.setReference(R),s.setPositionReference({getBoundingClientRect:Q5(t.reference),contextElement:R})}},[t.reference,s]),S.useEffect(()=>{var R;(h==="initial"||h==="open")&&(R=T.current)!=null&&R.innerHTML&&(C.current=T.current.innerHTML)},[h,t.reference,t.children]),!d)return!1;const M={...t.elementProps,style:{display:"flex",...(o=t.elementProps)==null?void 0:o.style,zIndex:`calc(var(--bn-ui-base-z-index) + ${((r=(a=t.elementProps)==null?void 0:a.style)==null?void 0:r.zIndex)||0})`,...c,...p},...x()};return h==="close"?g.jsx("div",{ref:w,...M,dangerouslySetInnerHTML:{__html:C.current}}):g.jsx("div",{ref:w,...M,children:t.children})},cy=t=>{const{blockId:o,children:a,...r}=t,s=pe(),c=S.useMemo(()=>s.transact(f=>{if(!o)return;const d=gv(o,f.doc);if(!d)return;const{node:p}=s.prosemirrorView.domAtPos(d.posBeforeNode+1);if(p instanceof Element)return{element:p}}),[s,o]);return g.jsx(Bn,{reference:c,...r,children:o!==void 0&&a})};function Ae(t,o){const a=(o?.editor??pe()).getExtension(t);if(!a)throw new Error("Extension not found",{cause:{plugin:t}});return a}function qe(t,o){const{store:a}=Ae(t,o);if(!a)throw new Error("Store not found on plugin",{cause:{plugin:t}});return _5(a,o?.selector)}const I5=t=>{const o=pe(),a=Ae(Ed),r=qe(Ed),s=S.useMemo(()=>{var f,d;return{...t.floatingUIOptions,useFloatingOptions:{open:!!r,onOpenChange:(p,h,v)=>{p||a.closeMenu(),v==="escape-key"&&o.focus()},middleware:[mn(10),yo()],...(f=t.floatingUIOptions)==null?void 0:f.useFloatingOptions},elementProps:{style:{zIndex:90},...(d=t.floatingUIOptions)==null?void 0:d.elementProps}}},[r,o,a,t.floatingUIOptions]),c=t.filePanel||sy;return g.jsx(cy,{blockId:r,...s,children:r&&g.jsx(c,{blockId:r})})};function K5(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}var F5=function t(o,a){if(o===a)return!0;if(o&&a&&typeof o=="object"&&typeof a=="object"){if(o.constructor!==a.constructor)return!1;var r,s,c;if(Array.isArray(o)){if(r=o.length,r!=a.length)return!1;for(s=r;s--!==0;)if(!t(o[s],a[s]))return!1;return!0}if(o instanceof Map&&a instanceof Map){if(o.size!==a.size)return!1;for(s of o.entries())if(!a.has(s[0]))return!1;for(s of o.entries())if(!t(s[1],a.get(s[0])))return!1;return!0}if(o instanceof Set&&a instanceof Set){if(o.size!==a.size)return!1;for(s of o.entries())if(!a.has(s[0]))return!1;return!0}if(ArrayBuffer.isView(o)&&ArrayBuffer.isView(a)){if(r=o.length,r!=a.length)return!1;for(s=r;s--!==0;)if(o[s]!==a[s])return!1;return!0}if(o.constructor===RegExp)return o.source===a.source&&o.flags===a.flags;if(o.valueOf!==Object.prototype.valueOf)return o.valueOf()===a.valueOf();if(o.toString!==Object.prototype.toString)return o.toString()===a.toString();if(c=Object.keys(o),r=c.length,r!==Object.keys(a).length)return!1;for(s=r;s--!==0;)if(!Object.prototype.hasOwnProperty.call(a,c[s]))return!1;for(s=r;s--!==0;){var f=c[s];if(!(f==="_owner"&&o.$$typeof)&&!t(o[f],a[f]))return!1}return!0}return o!==o&&a!==a};const J5=K5(F5);var uy={exports:{}},id={},_0={exports:{}},sd={};var O0;function W5(){if(O0)return sd;O0=1;var t=Ve;function o(y,x){return y===x&&(y!==0||1/y===1/x)||y!==y&&x!==x}var a=typeof Object.is=="function"?Object.is:o,r=t.useState,s=t.useEffect,c=t.useLayoutEffect,f=t.useDebugValue;function d(y,x){var C=x(),T=r({inst:{value:C,getSnapshot:x}}),w=T[0].inst,M=T[1];return c(function(){w.value=C,w.getSnapshot=x,p(w)&&M({inst:w})},[y,C,x]),s(function(){return p(w)&&M({inst:w}),y(function(){p(w)&&M({inst:w})})},[y]),f(C),C}function p(y){var x=y.getSnapshot;y=y.value;try{var C=x();return!a(y,C)}catch{return!0}}function h(y,x){return x()}var v=typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"?h:d;return sd.useSyncExternalStore=t.useSyncExternalStore!==void 0?t.useSyncExternalStore:v,sd}var N0;function e3(){return N0||(N0=1,_0.exports=W5()),_0.exports}var A0;function t3(){if(A0)return id;A0=1;var t=Ve,o=e3();function a(h,v){return h===v&&(h!==0||1/h===1/v)||h!==h&&v!==v}var r=typeof Object.is=="function"?Object.is:a,s=o.useSyncExternalStore,c=t.useRef,f=t.useEffect,d=t.useMemo,p=t.useDebugValue;return id.useSyncExternalStoreWithSelector=function(h,v,y,x,C){var T=c(null);if(T.current===null){var w={hasValue:!1,value:null};T.current=w}else w=T.current;T=d(function(){function R(L){if(!_){if(_=!0,N=L,L=x(L),C!==void 0&&w.hasValue){var Z=w.value;if(C(Z,L))return A=Z}return A=L}if(Z=A,r(N,L))return Z;var I=x(L);return C!==void 0&&C(Z,I)?(N=L,Z):(N=L,A=I)}var _=!1,N,A,H=y===void 0?null:y;return[function(){return R(v())},H===null?void 0:function(){return R(H())}]},[v,y,x,C]);var M=s(h,T[0],T[1]);return f(function(){w.hasValue=!0,w.value=M},[M]),p(M),M},id}uy.exports=t3();var n3=uy.exports;const o3=typeof window<"u"?S.useLayoutEffect:S.useEffect;class l3{constructor(o){Er(this,"transactionNumber",0),Er(this,"lastTransactionNumber",0),Er(this,"lastSnapshot"),Er(this,"editor"),Er(this,"subscribers",new Set),this.editor=o,this.lastSnapshot={editor:o,transactionNumber:0},this.getSnapshot=this.getSnapshot.bind(this),this.getServerSnapshot=this.getServerSnapshot.bind(this),this.watch=this.watch.bind(this),this.subscribe=this.subscribe.bind(this)}getSnapshot(){return this.transactionNumber===this.lastTransactionNumber?this.lastSnapshot:(this.lastTransactionNumber=this.transactionNumber,this.lastSnapshot={editor:this.editor,transactionNumber:this.transactionNumber},this.lastSnapshot)}getServerSnapshot(){return{editor:null,transactionNumber:0}}subscribe(o){return this.subscribers.add(o),()=>{this.subscribers.delete(o)}}watch(o,a){if(this.editor=o,this.editor){const r=()=>{this.transactionNumber+=1,this.subscribers.forEach(f=>f())},s=this.editor._tiptapEditor,c={all:"transaction",selection:"selectionUpdate",change:"update"};return s.on(c[a],r),()=>{s.off(c[a],r)}}}}function gt(t){const o=Mn(),a=t.editor||o?.editor||null,r=t.on||"all",[s]=S.useState(()=>new l3(a)),c=n3.useSyncExternalStoreWithSelector(s.subscribe,s.getSnapshot,s.getServerSnapshot,t.selector,t.equalityFn??J5);return o3(()=>s.watch(a,r),[a,s,r]),S.useDebugValue(c),c}const Id=t=>{const{position:o,children:a,...r}=t,{from:s,to:c}=o||{},f=pe(),d=S.useMemo(()=>{var p;if(!(s===void 0||c===void 0))return{element:((p=f.domElement)==null?void 0:p.firstElementChild)||void 0,getBoundingClientRect:()=>vS(f.prosemirrorView,s,c??s)}},[f,s,c]);return g.jsx(Bn,{reference:d,...r,children:o!==void 0&&a})};var fy={color:void 0,size:void 0,className:void 0,style:void 0,attr:void 0},D0=Ve.createContext&&Ve.createContext(fy),a3=["attr","size","title"];function r3(t,o){if(t==null)return{};var a=i3(t,o),r,s;if(Object.getOwnPropertySymbols){var c=Object.getOwnPropertySymbols(t);for(s=0;s<c.length;s++)r=c[s],!(o.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(t,r)&&(a[r]=t[r])}return a}function i3(t,o){if(t==null)return{};var a={};for(var r in t)if(Object.prototype.hasOwnProperty.call(t,r)){if(o.indexOf(r)>=0)continue;a[r]=t[r]}return a}function Ns(){return Ns=Object.assign?Object.assign.bind():function(t){for(var o=1;o<arguments.length;o++){var a=arguments[o];for(var r in a)Object.prototype.hasOwnProperty.call(a,r)&&(t[r]=a[r])}return t},Ns.apply(this,arguments)}function H0(t,o){var a=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);o&&(r=r.filter(function(s){return Object.getOwnPropertyDescriptor(t,s).enumerable})),a.push.apply(a,r)}return a}function As(t){for(var o=1;o<arguments.length;o++){var a=arguments[o]!=null?arguments[o]:{};o%2?H0(Object(a),!0).forEach(function(r){s3(t,r,a[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(a)):H0(Object(a)).forEach(function(r){Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(a,r))})}return t}function s3(t,o,a){return o=c3(o),o in t?Object.defineProperty(t,o,{value:a,enumerable:!0,configurable:!0,writable:!0}):t[o]=a,t}function c3(t){var o=u3(t,"string");return typeof o=="symbol"?o:o+""}function u3(t,o){if(typeof t!="object"||!t)return t;var a=t[Symbol.toPrimitive];if(a!==void 0){var r=a.call(t,o);if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(o==="string"?String:Number)(t)}function dy(t){return t&&t.map((o,a)=>Ve.createElement(o.tag,As({key:a},o.attr),dy(o.child)))}function fe(t){return o=>Ve.createElement(f3,Ns({attr:As({},t.attr)},o),dy(t.child))}function f3(t){var o=a=>{var{attr:r,size:s,title:c}=t,f=r3(t,a3),d=s||a.size||"1em",p;return a.className&&(p=a.className),t.className&&(p=(p?p+" ":"")+t.className),Ve.createElement("svg",Ns({stroke:"currentColor",fill:"currentColor",strokeWidth:"0"},a.attr,r,f,{className:p,style:As(As({color:t.color||a.color},a.style),t.style),height:d,width:d,xmlns:"http://www.w3.org/2000/svg"}),c&&Ve.createElement("title",null,c),t.children)};return D0!==void 0?Ve.createElement(D0.Consumer,null,a=>o(a)):o(fy)}function d3(t){return fe({attr:{viewBox:"0 0 24 24",fill:"currentColor"},child:[{tag:"path",attr:{d:"M8 7V11L2 6L8 1V5H13C17.4183 5 21 8.58172 21 13C21 17.4183 17.4183 21 13 21H4V19H13C16.3137 19 19 16.3137 19 13C19 9.68629 16.3137 7 13 7H8Z"},child:[]}]})(t)}function my(t){return fe({attr:{viewBox:"0 0 24 24",fill:"currentColor"},child:[{tag:"path",attr:{d:"M7.29117 20.8242L2 22L3.17581 16.7088C2.42544 15.3056 2 13.7025 2 12C2 6.47715 6.47715 2 12 2C17.5228 2 22 6.47715 22 12C22 17.5228 17.5228 22 12 22C10.2975 22 8.6944 21.5746 7.29117 20.8242ZM7.58075 18.711L8.23428 19.0605C9.38248 19.6745 10.6655 20 12 20C16.4183 20 20 16.4183 20 12C20 7.58172 16.4183 4 12 4C7.58172 4 4 7.58172 4 12C4 13.3345 4.32549 14.6175 4.93949 15.7657L5.28896 16.4192L4.63416 19.3658L7.58075 18.711Z"},child:[]}]})(t)}function m3(t){return fe({attr:{viewBox:"0 0 24 24",fill:"currentColor"},child:[{tag:"path",attr:{d:"M7.24264 17.9967H3V13.754L14.435 2.319C14.8256 1.92848 15.4587 1.92848 15.8492 2.319L18.6777 5.14743C19.0682 5.53795 19.0682 6.17112 18.6777 6.56164L7.24264 17.9967ZM3 19.9967H21V21.9967H3V19.9967Z"},child:[]}]})(t)}function p3(t){return fe({attr:{viewBox:"0 0 24 24",fill:"currentColor"},child:[{tag:"path",attr:{d:"M23 12L15.9289 19.0711L14.5147 17.6569L20.1716 12L14.5147 6.34317L15.9289 4.92896L23 12ZM3.82843 12L9.48528 17.6569L8.07107 19.0711L1 12L8.07107 4.92896L9.48528 6.34317L3.82843 12Z"},child:[]}]})(t)}function h3(t){return fe({attr:{viewBox:"0 0 24 24",fill:"currentColor"},child:[{tag:"path",attr:{d:"M3 8L9.00319 2H19.9978C20.5513 2 21 2.45531 21 2.9918V21.0082C21 21.556 20.5551 22 20.0066 22H3.9934C3.44476 22 3 21.5501 3 20.9932V8ZM10 4V9H5V20H19V4H10Z"},child:[]}]})(t)}function g3(t){return fe({attr:{viewBox:"0 0 24 24",fill:"currentColor"},child:[{tag:"path",attr:{d:"M3 4H21V6H3V4ZM5 19H19V21H5V19ZM3 14H21V16H3V14ZM5 9H19V11H5V9Z"},child:[]}]})(t)}function v3(t){return fe({attr:{viewBox:"0 0 24 24",fill:"currentColor"},child:[{tag:"path",attr:{d:"M3 4H21V6H3V4ZM3 19H21V21H3V19ZM3 14H21V16H3V14ZM3 9H21V11H3V9Z"},child:[]}]})(t)}function y3(t){return fe({attr:{viewBox:"0 0 24 24",fill:"currentColor"},child:[{tag:"path",attr:{d:"M3 4H21V6H3V4ZM3 19H17V21H3V19ZM3 14H21V16H3V14ZM3 9H17V11H3V9Z"},child:[]}]})(t)}function b3(t){return fe({attr:{viewBox:"0 0 24 24",fill:"currentColor"},child:[{tag:"path",attr:{d:"M3 4H21V6H3V4ZM7 19H21V21H7V19ZM3 14H21V16H3V14ZM7 9H21V11H7V9Z"},child:[]}]})(t)}function x3(t){return fe({attr:{viewBox:"0 0 24 24",fill:"currentColor"},child:[{tag:"path",attr:{d:"M8 11H12.5C13.8807 11 15 9.88071 15 8.5C15 7.11929 13.8807 6 12.5 6H8V11ZM18 15.5C18 17.9853 15.9853 20 13.5 20H6V4H12.5C14.9853 4 17 6.01472 17 8.5C17 9.70431 16.5269 10.7981 15.7564 11.6058C17.0979 12.3847 18 13.837 18 15.5ZM8 13V18H13.5C14.8807 18 16 16.8807 16 15.5C16 14.1193 14.8807 13 13.5 13H8Z"},child:[]}]})(t)}function S3(t){return fe({attr:{viewBox:"0 0 24 24",fill:"currentColor"},child:[{tag:"path",attr:{d:"M3.41436 5.99995L5.70726 3.70706L4.29304 2.29285L0.585938 5.99995L4.29304 9.70706L5.70726 8.29285L3.41436 5.99995ZM9.58594 5.99995L7.29304 3.70706L8.70726 2.29285L12.4144 5.99995L8.70726 9.70706L7.29304 8.29285L9.58594 5.99995ZM14.0002 2.99995H21.0002C21.5524 2.99995 22.0002 3.44767 22.0002 3.99995V20C22.0002 20.5522 21.5524 21 21.0002 21H3.00015C2.44787 21 2.00015 20.5522 2.00015 20V12H4.00015V19H20.0002V4.99995H14.0002V2.99995Z"},child:[]}]})(t)}function z0(t){return fe({attr:{viewBox:"0 0 24 24",fill:"currentColor"},child:[{tag:"path",attr:{d:"M5.55397 22H3.3999L10.9999 3H12.9999L20.5999 22H18.4458L16.0458 16H7.95397L5.55397 22ZM8.75397 14H15.2458L11.9999 5.88517L8.75397 14Z"},child:[]}]})(t)}function Ds(t){return fe({attr:{viewBox:"0 0 24 24",fill:"currentColor"},child:[{tag:"path",attr:{d:"M13 20H11V13H4V20H2V4H4V11H11V4H13V20ZM21.0005 8V20H19.0005L19 10.204L17 10.74V8.67L19.5005 8H21.0005Z"},child:[]}]})(t)}function Hs(t){return fe({attr:{viewBox:"0 0 24 24",fill:"currentColor"},child:[{tag:"path",attr:{d:"M4 4V11H11V4H13V20H11V13H4V20H2V4H4ZM18.5 8C20.5711 8 22.25 9.67893 22.25 11.75C22.25 12.6074 21.9623 13.3976 21.4781 14.0292L21.3302 14.2102L18.0343 18H22V20H15L14.9993 18.444L19.8207 12.8981C20.0881 12.5908 20.25 12.1893 20.25 11.75C20.25 10.7835 19.4665 10 18.5 10C17.5818 10 16.8288 10.7071 16.7558 11.6065L16.75 11.75H14.75C14.75 9.67893 16.4289 8 18.5 8Z"},child:[]}]})(t)}function zs(t){return fe({attr:{viewBox:"0 0 24 24",fill:"currentColor"},child:[{tag:"path",attr:{d:"M22 8L21.9984 10L19.4934 12.883C21.0823 13.3184 22.25 14.7728 22.25 16.5C22.25 18.5711 20.5711 20.25 18.5 20.25C16.674 20.25 15.1528 18.9449 14.8184 17.2166L16.7821 16.8352C16.9384 17.6413 17.6481 18.25 18.5 18.25C19.4665 18.25 20.25 17.4665 20.25 16.5C20.25 15.5335 19.4665 14.75 18.5 14.75C18.214 14.75 17.944 14.8186 17.7056 14.9403L16.3992 13.3932L19.3484 10H15V8H22ZM4 4V11H11V4H13V20H11V13H4V20H2V4H4Z"},child:[]}]})(t)}function py(t){return fe({attr:{viewBox:"0 0 24 24",fill:"currentColor"},child:[{tag:"path",attr:{d:"M13 20H11V13H4V20H2V4H4V11H11V4H13V20ZM22 8V16H23.5V18H22V20H20V18H14.5V16.66L19.5 8H22ZM20 11.133L17.19 16H20V11.133Z"},child:[]}]})(t)}function hy(t){return fe({attr:{viewBox:"0 0 24 24",fill:"currentColor"},child:[{tag:"path",attr:{d:"M22 8V10H17.6769L17.2126 12.6358C17.5435 12.5472 17.8912 12.5 18.25 12.5C20.4591 12.5 22.25 14.2909 22.25 16.5C22.25 18.7091 20.4591 20.5 18.25 20.5C16.4233 20.5 14.8827 19.2756 14.4039 17.6027L16.3271 17.0519C16.5667 17.8881 17.3369 18.5 18.25 18.5C19.3546 18.5 20.25 17.6046 20.25 16.5C20.25 15.3954 19.3546 14.5 18.25 14.5C17.6194 14.5 17.057 14.7918 16.6904 15.2478L14.8803 14.3439L16 8H22ZM4 4V11H11V4H13V20H11V13H4V20H2V4H4Z"},child:[]}]})(t)}function gy(t){return fe({attr:{viewBox:"0 0 24 24",fill:"currentColor"},child:[{tag:"path",attr:{d:"M21.097 8L18.499 12.5C20.7091 12.5 22.5 14.2909 22.5 16.5C22.5 18.7091 20.7091 20.5 18.5 20.5C16.2909 20.5 14.5 18.7091 14.5 16.5C14.5 15.7636 14.699 15.0737 15.0461 14.4811L18.788 8H21.097ZM4 4V11H11V4H13V20H11V13H4V20H2V4H4ZM18.5 14.5C17.3954 14.5 16.5 15.3954 16.5 16.5C16.5 17.6046 17.3954 18.5 18.5 18.5C19.6046 18.5 20.5 17.6046 20.5 16.5C20.5 15.3954 19.6046 14.5 18.5 14.5Z"},child:[]}]})(t)}function C3(t){return fe({attr:{viewBox:"0 0 24 24",fill:"currentColor"},child:[{tag:"path",attr:{d:"M3 4H21V6H3V4ZM3 19H21V21H3V19ZM11 14H21V16H11V14ZM11 9H21V11H11V9ZM3 12.5L7 9V16L3 12.5Z"},child:[]}]})(t)}function w3(t){return fe({attr:{viewBox:"0 0 24 24",fill:"currentColor"},child:[{tag:"path",attr:{d:"M3 4H21V6H3V4ZM3 19H21V21H3V19ZM11 14H21V16H11V14ZM11 9H21V11H11V9ZM7 12.5L3 16V9L7 12.5Z"},child:[]}]})(t)}function L0(t){return fe({attr:{viewBox:"0 0 24 24",fill:"currentColor"},child:[{tag:"path",attr:{d:"M8 5H11V19H8V21H16V19H13V5H16V3H8V5ZM2 7C1.44772 7 1 7.44772 1 8V16C1 16.5523 1.44772 17 2 17H8V15H3V9H8V7H2ZM16 9H21V15H16V17H22C22.5523 17 23 16.5523 23 16V8C23 7.44772 22.5523 7 22 7H16V9Z"},child:[]}]})(t)}function T3(t){return fe({attr:{viewBox:"0 0 24 24",fill:"currentColor"},child:[{tag:"path",attr:{d:"M15 20H7V18H9.92661L12.0425 6H9V4H17V6H14.0734L11.9575 18H15V20Z"},child:[]}]})(t)}function E3(t){return fe({attr:{viewBox:"0 0 24 24",fill:"currentColor"},child:[{tag:"path",attr:{d:"M17 17H22V19H19V22H17V17ZM7 7H2V5H5V2H7V7ZM18.364 15.5355L16.9497 14.1213L18.364 12.7071C20.3166 10.7545 20.3166 7.58866 18.364 5.63604C16.4113 3.68342 13.2455 3.68342 11.2929 5.63604L9.87868 7.05025L8.46447 5.63604L9.87868 4.22183C12.6123 1.48816 17.0445 1.48816 19.7782 4.22183C22.5118 6.9555 22.5118 11.3877 19.7782 14.1213L18.364 15.5355ZM15.5355 18.364L14.1213 19.7782C11.3877 22.5118 6.9555 22.5118 4.22183 19.7782C1.48816 17.0445 1.48816 12.6123 4.22183 9.87868L5.63604 8.46447L7.05025 9.87868L5.63604 11.2929C3.68342 13.2455 3.68342 16.4113 5.63604 18.364C7.58866 20.3166 10.7545 20.3166 12.7071 18.364L14.1213 16.9497L15.5355 18.364ZM14.8284 7.75736L16.2426 9.17157L9.17157 16.2426L7.75736 14.8284L14.8284 7.75736Z"},child:[]}]})(t)}function vy(t){return fe({attr:{viewBox:"0 0 24 24",fill:"currentColor"},child:[{tag:"path",attr:{d:"M18.3638 15.5355L16.9496 14.1213L18.3638 12.7071C20.3164 10.7545 20.3164 7.58866 18.3638 5.63604C16.4112 3.68341 13.2453 3.68341 11.2927 5.63604L9.87849 7.05025L8.46428 5.63604L9.87849 4.22182C12.6122 1.48815 17.0443 1.48815 19.778 4.22182C22.5117 6.95549 22.5117 11.3876 19.778 14.1213L18.3638 15.5355ZM15.5353 18.364L14.1211 19.7782C11.3875 22.5118 6.95531 22.5118 4.22164 19.7782C1.48797 17.0445 1.48797 12.6123 4.22164 9.87868L5.63585 8.46446L7.05007 9.87868L5.63585 11.2929C3.68323 13.2455 3.68323 16.4113 5.63585 18.364C7.58847 20.3166 10.7543 20.3166 12.7069 18.364L14.1211 16.9497L15.5353 18.364ZM14.8282 7.75736L16.2425 9.17157L9.17139 16.2426L7.75717 14.8284L14.8282 7.75736Z"},child:[]}]})(t)}function yy(t){return fe({attr:{viewBox:"0 0 24 24",fill:"currentColor"},child:[{tag:"path",attr:{d:"M8.00008 6V9H5.00008V6H8.00008ZM3.00008 4V11H10.0001V4H3.00008ZM13.0001 4H21.0001V6H13.0001V4ZM13.0001 11H21.0001V13H13.0001V11ZM13.0001 18H21.0001V20H13.0001V18ZM10.7072 16.2071L9.29297 14.7929L6.00008 18.0858L4.20718 16.2929L2.79297 17.7071L6.00008 20.9142L10.7072 16.2071Z"},child:[]}]})(t)}function by(t){return fe({attr:{viewBox:"0 0 24 24",fill:"currentColor"},child:[{tag:"path",attr:{d:"M8 4H21V6H8V4ZM5 3V6H6V7H3V6H4V4H3V3H5ZM3 14V11.5H5V11H3V10H6V12.5H4V13H6V14H3ZM5 19.5H3V18.5H5V18H3V17H6V21H3V20H5V19.5ZM8 11H21V13H8V11ZM8 18H21V20H8V18Z"},child:[]}]})(t)}function xy(t){return fe({attr:{viewBox:"0 0 24 24",fill:"currentColor"},child:[{tag:"path",attr:{d:"M8 4H21V6H8V4ZM4.5 6.5C3.67157 6.5 3 5.82843 3 5C3 4.17157 3.67157 3.5 4.5 3.5C5.32843 3.5 6 4.17157 6 5C6 5.82843 5.32843 6.5 4.5 6.5ZM4.5 13.5C3.67157 13.5 3 12.8284 3 12C3 11.1716 3.67157 10.5 4.5 10.5C5.32843 10.5 6 11.1716 6 12C6 12.8284 5.32843 13.5 4.5 13.5ZM4.5 20.4C3.67157 20.4 3 19.7284 3 18.9C3 18.0716 3.67157 17.4 4.5 17.4C5.32843 17.4 6 18.0716 6 18.9C6 19.7284 5.32843 20.4 4.5 20.4ZM8 11H21V13H8V11ZM8 18H21V20H8V18Z"},child:[]}]})(t)}function M3(t){return fe({attr:{viewBox:"0 0 24 24",fill:"currentColor"},child:[{tag:"path",attr:{d:"M20 3C20.5523 3 21 3.44772 21 4V20C21 20.5523 20.5523 21 20 21H4C3.44772 21 3 20.5523 3 20V4C3 3.44772 3.44772 3 4 3H20ZM11 5H5V10.999H7V9L10 12L7 15V13H5V19H11V17H13V19H19V13H17V15L14 12L17 9V10.999H19V5H13V7H11V5ZM13 13V15H11V13H13ZM13 9V11H11V9H13Z"},child:[]}]})(t)}function R3(t){return fe({attr:{viewBox:"0 0 24 24",fill:"currentColor"},child:[{tag:"path",attr:{d:"M21 20C21 20.5523 20.5523 21 20 21H4C3.44772 21 3 20.5523 3 20V4C3 3.44772 3.44772 3 4 3H20C20.5523 3 21 3.44772 21 4V20ZM19 11V5H13.001V7H15L12 10L9 7H11V5H5V11H7V13H5V19H11V17H9L12 14L15 17H13.001V19H19V13H17V11H19ZM11 13H9V11H11V13ZM15 13H13V11H15V13Z"},child:[]}]})(t)}function Sy(t){return fe({attr:{viewBox:"0 0 24 24",fill:"currentColor"},child:[{tag:"path",attr:{d:"M21 4H3V6H21V4ZM21 11H8V13H21V11ZM21 18H8V20H21V18ZM5 11H3V20H5V11Z"},child:[]}]})(t)}function j3(t){return fe({attr:{viewBox:"0 0 24 24",fill:"currentColor"},child:[{tag:"path",attr:{d:"M17.1538 14C17.3846 14.5161 17.5 15.0893 17.5 15.7196C17.5 17.0625 16.9762 18.1116 15.9286 18.867C14.8809 19.6223 13.4335 20 11.5862 20C9.94674 20 8.32335 19.6185 6.71592 18.8555V16.6009C8.23538 17.4783 9.7908 17.917 11.3822 17.917C13.9333 17.917 15.2128 17.1846 15.2208 15.7196C15.2208 15.0939 15.0049 14.5598 14.5731 14.1173C14.5339 14.0772 14.4939 14.0381 14.4531 14H3V12H21V14H17.1538ZM13.076 11H7.62908C7.4566 10.8433 7.29616 10.6692 7.14776 10.4778C6.71592 9.92084 6.5 9.24559 6.5 8.45207C6.5 7.21602 6.96583 6.165 7.89749 5.299C8.82916 4.43299 10.2706 4 12.2219 4C13.6934 4 15.1009 4.32808 16.4444 4.98426V7.13591C15.2448 6.44921 13.9293 6.10587 12.4978 6.10587C10.0187 6.10587 8.77917 6.88793 8.77917 8.45207C8.77917 8.87172 8.99709 9.23796 9.43293 9.55079C9.86878 9.86362 10.4066 10.1135 11.0463 10.3004C11.6665 10.4816 12.3431 10.7148 13.076 11H13.076Z"},child:[]}]})(t)}function _3(t){return fe({attr:{viewBox:"0 0 24 24",fill:"currentColor"},child:[{tag:"path",attr:{d:"M13 10V14H19V10H13ZM11 10H5V14H11V10ZM13 19H19V16H13V19ZM11 19V16H5V19H11ZM13 5V8H19V5H13ZM11 5H5V8H11V5ZM4 3H20C20.5523 3 21 3.44772 21 4V20C21 20.5523 20.5523 21 20 21H4C3.44772 21 3 20.5523 3 20V4C3 3.44772 3.44772 3 4 3Z"},child:[]}]})(t)}function Kd(t){return fe({attr:{viewBox:"0 0 24 24",fill:"currentColor"},child:[{tag:"path",attr:{d:"M13 6V21H11V6H5V4H19V6H13Z"},child:[]}]})(t)}function O3(t){return fe({attr:{viewBox:"0 0 24 24",fill:"currentColor"},child:[{tag:"path",attr:{d:"M8 3V12C8 14.2091 9.79086 16 12 16C14.2091 16 16 14.2091 16 12V3H18V12C18 15.3137 15.3137 18 12 18C8.68629 18 6 15.3137 6 12V3H8ZM4 20H20V22H4V20Z"},child:[]}]})(t)}function N3(t){return fe({attr:{viewBox:"0 0 24 24",fill:"currentColor"},child:[{tag:"path",attr:{d:"M2 3.9934C2 3.44476 2.45531 3 2.9918 3H21.0082C21.556 3 22 3.44495 22 3.9934V20.0066C22 20.5552 21.5447 21 21.0082 21H2.9918C2.44405 21 2 20.5551 2 20.0066V3.9934ZM8 5V19H16V5H8ZM4 5V7H6V5H4ZM18 5V7H20V5H18ZM4 9V11H6V9H4ZM18 9V11H20V9H18ZM4 13V15H6V13H4ZM18 13V15H20V13H18ZM4 17V19H6V17H4ZM18 17V19H20V17H18Z"},child:[]}]})(t)}function A3(t){return fe({attr:{viewBox:"0 0 24 24",fill:"currentColor"},child:[{tag:"path",attr:{d:"M5 11.1005L7 9.1005L12.5 14.6005L16 11.1005L19 14.1005V5H5V11.1005ZM4 3H20C20.5523 3 21 3.44772 21 4V20C21 20.5523 20.5523 21 20 21H4C3.44772 21 3 20.5523 3 20V4C3 3.44772 3.44772 3 4 3ZM15.5 10C14.6716 10 14 9.32843 14 8.5C14 7.67157 14.6716 7 15.5 7C16.3284 7 17 7.67157 17 8.5C17 9.32843 16.3284 10 15.5 10Z"},child:[]}]})(t)}function D3(t){return fe({attr:{viewBox:"0 0 24 24",fill:"currentColor"},child:[{tag:"path",attr:{d:"M21 15V18H24V20H21V23H19V20H16V18H19V15H21ZM21.0082 3C21.556 3 22 3.44495 22 3.9934L22.0007 13.3417C21.3749 13.1204 20.7015 13 20 13V5H4L4.001 19L13.2929 9.70715C13.6528 9.34604 14.22 9.31823 14.6123 9.62322L14.7065 9.70772L18.2521 13.2586C15.791 14.0069 14 16.2943 14 19C14 19.7015 14.1204 20.3749 14.3417 21.0007L2.9918 21C2.44405 21 2 20.5551 2 20.0066V3.9934C2 3.44476 2.45531 3 2.9918 3H21.0082ZM8 7C9.10457 7 10 7.89543 10 9C10 10.1046 9.10457 11 8 11C6.89543 11 6 10.1046 6 9C6 7.89543 6.89543 7 8 7Z"},child:[]}]})(t)}function H3(t){return fe({attr:{viewBox:"0 0 24 24",fill:"currentColor"},child:[{tag:"path",attr:{d:"M20 3C20.5523 3 21 3.44772 21 4V5.757L19 7.757V5H5V13.1L9 9.1005L13.328 13.429L12.0012 14.7562L11.995 18.995L16.2414 19.0012L17.571 17.671L18.8995 19H19V16.242L21 14.242V20C21 20.5523 20.5523 21 20 21H4C3.44772 21 3 20.5523 3 20V4C3 3.44772 3.44772 3 4 3H20ZM21.7782 7.80761L23.1924 9.22183L15.4142 17L13.9979 16.9979L14 15.5858L21.7782 7.80761ZM15.5 7C16.3284 7 17 7.67157 17 8.5C17 9.32843 16.3284 10 15.5 10C14.6716 10 14 9.32843 14 8.5C14 7.67157 14.6716 7 15.5 7Z"},child:[]}]})(t)}function Cy(t){return fe({attr:{viewBox:"0 0 24 24",fill:"currentColor"},child:[{tag:"path",attr:{d:"M22 18V20H2V18H22ZM2 3.5L10 8.5L2 13.5V3.5ZM22 11V13H12V11H22ZM22 4V6H12V4H22Z"},child:[]}]})(t)}function z3(t){return fe({attr:{viewBox:"0 0 24 24",fill:"currentColor"},child:[{tag:"path",attr:{d:"M2 16.0001H5.88889L11.1834 20.3319C11.2727 20.405 11.3846 20.4449 11.5 20.4449C11.7761 20.4449 12 20.2211 12 19.9449V4.05519C12 3.93977 11.9601 3.8279 11.887 3.73857C11.7121 3.52485 11.3971 3.49335 11.1834 3.66821L5.88889 8.00007H2C1.44772 8.00007 1 8.44778 1 9.00007V15.0001C1 15.5524 1.44772 16.0001 2 16.0001ZM23 12C23 15.292 21.5539 18.2463 19.2622 20.2622L17.8445 18.8444C19.7758 17.1937 21 14.7398 21 12C21 9.26016 19.7758 6.80629 17.8445 5.15557L19.2622 3.73779C21.5539 5.75368 23 8.70795 23 12ZM18 12C18 10.0883 17.106 8.38548 15.7133 7.28673L14.2842 8.71584C15.3213 9.43855 16 10.64 16 12C16 13.36 15.3213 14.5614 14.2842 15.2841L15.7133 16.7132C17.106 15.6145 18 13.9116 18 12Z"},child:[]}]})(t)}function L3(t){return fe({attr:{viewBox:"0 0 24 24",fill:"currentColor"},child:[{tag:"path",attr:{d:"M11 11V5H13V11H19V13H13V19H11V13H5V11H11Z"},child:[]}]})(t)}function V3(t){return fe({attr:{viewBox:"0 0 24 24",fill:"currentColor"},child:[{tag:"path",attr:{d:"M9.9997 15.1709L19.1921 5.97852L20.6063 7.39273L9.9997 17.9993L3.63574 11.6354L5.04996 10.2212L9.9997 15.1709Z"},child:[]}]})(t)}function k3(t){return fe({attr:{viewBox:"0 0 24 24",fill:"currentColor"},child:[{tag:"path",attr:{d:"M17 6H22V8H20V21C20 21.5523 19.5523 22 19 22H5C4.44772 22 4 21.5523 4 21V8H2V6H7V3C7 2.44772 7.44772 2 8 2H16C16.5523 2 17 2.44772 17 3V6ZM18 8H6V20H18V8ZM9 4V6H15V4H9Z"},child:[]}]})(t)}function B3(t){return fe({attr:{viewBox:"0 0 24 24",fill:"currentColor"},child:[{tag:"path",attr:{d:"M17 6H22V8H20V21C20 21.5523 19.5523 22 19 22H5C4.44772 22 4 21.5523 4 21V8H2V6H7V3C7 2.44772 7.44772 2 8 2H16C16.5523 2 17 2.44772 17 3V6ZM9 11V17H11V11H9ZM13 11V17H15V11H13ZM9 4V6H15V4H9Z"},child:[]}]})(t)}function U3(t){return fe({attr:{viewBox:"0 0 24 24",fill:"currentColor"},child:[{tag:"path",attr:{d:"M4 19H20V12H22V20C22 20.5523 21.5523 21 21 21H3C2.44772 21 2 20.5523 2 20V12H4V19ZM14 9H19L12 16L5 9H10V3H14V9Z"},child:[]}]})(t)}function $3(t){return fe({attr:{viewBox:"0 0 24 24",fill:"currentColor"},child:[{tag:"path",attr:{d:"M10 6V8H5V19H16V14H18V20C18 20.5523 17.5523 21 17 21H4C3.44772 21 3 20.5523 3 20V7C3 6.44772 3.44772 6 4 6H10ZM21 3V12L17.206 8.207L11.2071 14.2071L9.79289 12.7929L15.792 6.793L12 3H21Z"},child:[]}]})(t)}function G3(t){return fe({attr:{viewBox:"0 0 24 24",fill:"currentColor"},child:[{tag:"path",attr:{d:"M5 10C3.9 10 3 10.9 3 12C3 13.1 3.9 14 5 14C6.1 14 7 13.1 7 12C7 10.9 6.1 10 5 10ZM19 10C17.9 10 17 10.9 17 12C17 13.1 17.9 14 19 14C20.1 14 21 13.1 21 12C21 10.9 20.1 10 19 10ZM12 10C10.9 10 10 10.9 10 12C10 13.1 10.9 14 12 14C13.1 14 14 13.1 14 12C14 10.9 13.1 10 12 10Z"},child:[]}]})(t)}function Z3(t){return fe({attr:{viewBox:"0 0 24 24",fill:"currentColor"},child:[{tag:"path",attr:{d:"M5 11V13H19V11H5Z"},child:[]}]})(t)}function q3(t){return fe({attr:{viewBox:"0 0 24 24",fill:"currentColor"},child:[{tag:"path",attr:{d:"M12 22C6.47715 22 2 17.5228 2 12C2 6.47715 6.47715 2 12 2C17.5228 2 22 6.47715 22 12C22 17.5228 17.5228 22 12 22ZM8 13C8 15.2091 9.79086 17 12 17C14.2091 17 16 15.2091 16 13H8ZM8 11C8.82843 11 9.5 10.3284 9.5 9.5C9.5 8.67157 8.82843 8 8 8C7.17157 8 6.5 8.67157 6.5 9.5C6.5 10.3284 7.17157 11 8 11ZM16 11C16.8284 11 17.5 10.3284 17.5 9.5C17.5 8.67157 16.8284 8 16 8C15.1716 8 14.5 8.67157 14.5 9.5C14.5 10.3284 15.1716 11 16 11Z"},child:[]}]})(t)}function V0(t){return fe({attr:{viewBox:"0 0 24 24",fill:"currentColor"},child:[{tag:"path",attr:{d:"M12 22C6.47715 22 2 17.5228 2 12C2 6.47715 6.47715 2 12 2C17.5228 2 22 6.47715 22 12C22 17.5228 17.5228 22 12 22ZM12 20C16.4183 20 20 16.4183 20 12C20 7.58172 16.4183 4 12 4C7.58172 4 4 7.58172 4 12C4 16.4183 7.58172 20 12 20ZM8 13H16C16 15.2091 14.2091 17 12 17C9.79086 17 8 15.2091 8 13ZM8 11C7.17157 11 6.5 10.3284 6.5 9.5C6.5 8.67157 7.17157 8 8 8C8.82843 8 9.5 8.67157 9.5 9.5C9.5 10.3284 8.82843 11 8 11ZM16 11C15.1716 11 14.5 10.3284 14.5 9.5C14.5 8.67157 15.1716 8 16 8C16.8284 8 17.5 8.67157 17.5 9.5C17.5 10.3284 16.8284 11 16 11Z"},child:[]}]})(t)}const Y3={bold:x3,italic:T3,underline:O3,strike:j3,code:p3};function X3(t,o){return t in o.schema.styleSchema&&o.schema.styleSchema[t].type===t&&o.schema.styleSchema[t].propSchema==="boolean"}const ms=t=>{const o=Se(),a=ue(),r=pe(),s=gt({editor:r,selector:({editor:d})=>{var p;if(!(!d.isEditable||!X3(t.basicTextStyle,d)||!(((p=d.getSelection())==null?void 0:p.blocks)||[d.getTextCursorPosition().block]).find(h=>h.content!==void 0)))return t.basicTextStyle in d.getActiveStyles()?{active:!0}:{active:!1}}}),c=S.useCallback(d=>{r.focus(),r.toggleStyles({[d]:!0})},[r,t]);if(s===void 0)return null;const f=Y3[t.basicTextStyle];return g.jsx(a.FormattingToolbar.Button,{className:"bn-button","data-test":t.basicTextStyle,onClick:()=>c(t.basicTextStyle),isSelected:s.active,label:o.formatting_toolbar[t.basicTextStyle].tooltip,mainTooltip:o.formatting_toolbar[t.basicTextStyle].tooltip,secondaryTooltip:Ys(o.formatting_toolbar[t.basicTextStyle].secondary_tooltip,o.generic.ctrl_shortcut),icon:g.jsx(f,{})})},Ad=t=>{const o=t.textColor||"default",a=t.backgroundColor||"default",r=t.size||16,s=S.useMemo(()=>({pointerEvents:"none",fontSize:(r*.75).toString()+"px",height:r.toString()+"px",lineHeight:r.toString()+"px",textAlign:"center",width:r.toString()+"px"}),[r]);return g.jsx("div",{className:"bn-color-icon","data-background-color":a,"data-text-color":o,style:s,children:"A"})},k0=["default","gray","brown","red","orange","yellow","green","blue","purple","pink"],ec=t=>{const o=ue(),a=Se();return g.jsxs(g.Fragment,{children:[g.jsx(()=>t.text?g.jsxs(g.Fragment,{children:[g.jsx(o.Generic.Menu.Label,{children:a.color_picker.text_title}),k0.map(r=>g.jsx(o.Generic.Menu.Item,{onClick:()=>{t.onClick&&t.onClick(),t.text.setColor(r)},"data-test":"text-color-"+r,icon:g.jsx(Ad,{textColor:r,size:t.iconSize}),checked:t.text.color===r,children:a.color_picker.colors[r]},"text-color-"+r))]}):null,{}),g.jsx(()=>t.background?g.jsxs(g.Fragment,{children:[g.jsx(o.Generic.Menu.Label,{children:a.color_picker.background_title}),k0.map(r=>g.jsx(o.Generic.Menu.Item,{onClick:()=>{t.onClick&&t.onClick(),t.background.setColor(r)},"data-test":"background-color-"+r,icon:g.jsx(Ad,{backgroundColor:r,size:t.iconSize}),checked:t.background.color===r,children:a.color_picker.colors[r]},"background-color-"+r))]}):null,{})]})};function ps(t,o){return`${t}Color`in o.schema.styleSchema&&o.schema.styleSchema[`${t}Color`].type===`${t}Color`&&o.schema.styleSchema[`${t}Color`].propSchema==="string"}const P3=()=>{const t=ue(),o=Se(),a=pe(),r=ps("text",a),s=ps("background",a),c=gt({editor:a,selector:({editor:p})=>{var h;if(!p.isEditable||!(((h=p.getSelection())==null?void 0:h.blocks)||[p.getTextCursorPosition().block]).find(x=>x.content!==void 0))return;const v=ps("text",p),y=ps("background",p);if(!(!v&&!y))return{textColor:v?p.getActiveStyles().textColor||"default":void 0,backgroundColor:y?p.getActiveStyles().backgroundColor||"default":void 0}}}),f=S.useCallback(p=>{if(!r)throw Error("Tried to set text color, but style does not exist in editor schema.");p==="default"?a.removeStyles({textColor:p}):a.addStyles({textColor:p}),setTimeout(()=>{a.focus()})},[a,r]),d=S.useCallback(p=>{if(!s)throw Error("Tried to set background color, but style does not exist in editor schema.");p==="default"?a.removeStyles({backgroundColor:p}):a.addStyles({backgroundColor:p}),setTimeout(()=>{a.focus()})},[s,a]);return c===void 0?null:g.jsxs(t.Generic.Menu.Root,{children:[g.jsx(t.Generic.Menu.Trigger,{children:g.jsx(t.FormattingToolbar.Button,{className:"bn-button","data-test":"colors",label:o.formatting_toolbar.colors.tooltip,mainTooltip:o.formatting_toolbar.colors.tooltip,icon:g.jsx(Ad,{textColor:c.textColor,backgroundColor:c.backgroundColor,size:20})})}),g.jsx(t.Generic.Menu.Dropdown,{className:"bn-menu-dropdown bn-color-picker-dropdown",children:g.jsx(ec,{text:c.textColor?{color:c.textColor,setColor:f}:void 0,background:c.backgroundColor?{color:c.backgroundColor,setColor:d}:void 0})})]})},B0=t=>{for(const o of bS)if(t.startsWith(o))return t;return`${xS}://${t}`},wy=t=>{const o=ue(),a=Se(),{editLink:r}=Ae(Xs),{url:s,text:c,showTextField:f}=t,[d,p]=S.useState(s),[h,v]=S.useState(c);S.useEffect(()=>{p(s),v(c)},[c,s]);const y=S.useCallback(w=>{var M,R;w.key==="Enter"&&!w.nativeEvent.isComposing&&(w.preventDefault(),r(B0(d),h,t.range.from),(M=t.setToolbarOpen)==null||M.call(t,!1),(R=t.setToolbarPositionFrozen)==null||R.call(t,!1))},[r,d,h,t]),x=S.useCallback(w=>p(w.currentTarget.value),[]),C=S.useCallback(w=>v(w.currentTarget.value),[]),T=S.useCallback(()=>{var w,M;r(B0(d),h,t.range.from),(w=t.setToolbarOpen)==null||w.call(t,!1),(M=t.setToolbarPositionFrozen)==null||M.call(t,!1)},[r,d,h,t]);return g.jsxs(o.Generic.Form.Root,{children:[g.jsx(o.Generic.Form.TextInput,{className:"bn-text-input",name:"url",icon:g.jsx(vy,{}),autoFocus:!0,placeholder:a.link_toolbar.form.url_placeholder,value:d,onKeyDown:y,onChange:x,onSubmit:T}),f!==!1&&g.jsx(o.Generic.Form.TextInput,{className:"bn-text-input",name:"title",icon:g.jsx(Kd,{}),placeholder:a.link_toolbar.form.title_placeholder,value:h,onKeyDown:y,onChange:C,onSubmit:T})]})};function Q3(t){return"link"in t.schema.inlineContentSchema&&t.schema.inlineContentSchema.link==="link"}const I3=()=>{const t=pe(),o=ue(),a=Se(),r=Ae(Or),{showSelection:s}=Ae(Td),[c,f]=S.useState(!1);S.useEffect(()=>(s(c,"createLinkButton"),()=>s(!1,"createLinkButton")),[c,s]);const d=gt({editor:t,selector:({editor:p})=>{var h;if(!(!p.isEditable||!Q3(p)||yS(p.prosemirrorState.selection)||!(((h=p.getSelection())==null?void 0:h.blocks)||[p.getTextCursorPosition().block]).find(v=>v.content!==void 0)))return{url:p.getSelectedLinkUrl(),text:p.getSelectedText(),range:{from:p.prosemirrorState.selection.from,to:p.prosemirrorState.selection.to}}}});return S.useEffect(()=>{f(!1)},[d]),S.useEffect(()=>{const p=v=>{(v.ctrlKey||v.metaKey)&&v.key==="k"&&(f(!0),v.preventDefault())},h=t.domElement;return h?.addEventListener("keydown",p),()=>{h?.removeEventListener("keydown",p)}},[t.domElement]),d===void 0?null:g.jsxs(o.Generic.Popover.Root,{open:c,onOpenChange:f,children:[g.jsx(o.Generic.Popover.Trigger,{children:g.jsx(o.FormattingToolbar.Button,{className:"bn-button","data-test":"createLink",label:a.formatting_toolbar.link.tooltip,mainTooltip:a.formatting_toolbar.link.tooltip,secondaryTooltip:Ys(a.formatting_toolbar.link.secondary_tooltip,a.generic.ctrl_shortcut),icon:g.jsx(vy,{}),onClick:()=>f(p=>!p)})}),g.jsx(o.Generic.Popover.Content,{className:"bn-popover-content bn-form-popover",variant:"form-popover",children:g.jsx(wy,{url:d.url||"",text:d.text,range:d.range,showTextField:!1,setToolbarOpen:p=>r.store.setState(p)})})]})},K3=()=>{const t=Se(),o=ue(),a=pe(),r=gt({editor:a,selector:({editor:p})=>{var h;if(!p.isEditable)return;const v=((h=p.getSelection())==null?void 0:h.blocks)||[p.getTextCursorPosition().block];if(v.length!==1)return;const y=v[0];if(kt(y,p,y.type,{url:"string",caption:"string"}))return y}}),[s,c]=S.useState();S.useEffect(()=>{r!==void 0&&c(r.props.caption)},[r]);const f=S.useCallback(p=>c(p.currentTarget.value),[]),d=S.useCallback(p=>{r!==void 0&&xl(a,r.type,{caption:"string"})&&p.key==="Enter"&&!p.nativeEvent.isComposing&&(p.preventDefault(),a.updateBlock(r.id,{props:{caption:s}}))},[r,s,a]);return r===void 0?null:g.jsxs(o.Generic.Popover.Root,{children:[g.jsx(o.Generic.Popover.Trigger,{children:g.jsx(o.FormattingToolbar.Button,{className:"bn-button",label:t.formatting_toolbar.file_caption.tooltip,mainTooltip:t.formatting_toolbar.file_caption.tooltip,icon:g.jsx(L0,{})})}),g.jsx(o.Generic.Popover.Content,{className:"bn-popover-content bn-form-popover",variant:"form-popover",children:g.jsx(o.Generic.Form.Root,{children:g.jsx(o.Generic.Form.TextInput,{name:"file-caption",icon:g.jsx(L0,{}),value:s||"",autoFocus:!0,placeholder:t.formatting_toolbar.file_caption.input_placeholder,onKeyDown:d,onChange:f})})})]})},F3=()=>{const t=Se(),o=ue(),a=pe(),r=gt({editor:a,selector:({editor:c})=>{var f;if(!c.isEditable)return;const d=((f=c.getSelection())==null?void 0:f.blocks)||[c.getTextCursorPosition().block];if(d.length!==1)return;const p=d[0];if(kt(p,c,p.type,{url:"string"}))return p}}),s=S.useCallback(()=>{r!==void 0&&(a.focus(),a.removeBlocks([r.id]))},[r,a]);return r===void 0?null:g.jsx(o.FormattingToolbar.Button,{className:"bn-button",label:t.formatting_toolbar.file_delete.tooltip[r.type]||t.formatting_toolbar.file_delete.tooltip.file,mainTooltip:t.formatting_toolbar.file_delete.tooltip[r.type]||t.formatting_toolbar.file_delete.tooltip.file,icon:g.jsx(k3,{}),onClick:s})},J3=()=>{const t=Se(),o=ue(),a=pe(),r=gt({editor:a,selector:({editor:p})=>{var h;if(!p.isEditable)return;const v=((h=p.getSelection())==null?void 0:h.blocks)||[p.getTextCursorPosition().block];if(v.length!==1)return;const y=v[0];if(kt(y,p,y.type,{url:"string",name:"string"}))return y}}),[s,c]=S.useState();S.useEffect(()=>{r!==void 0&&c(r.props.name)},[r]);const f=S.useCallback(p=>c(p.currentTarget.value),[]),d=S.useCallback(p=>{r!==void 0&&xl(a,r.type,{name:"string"})&&p.key==="Enter"&&!p.nativeEvent.isComposing&&(p.preventDefault(),a.updateBlock(r.id,{props:{name:s}}))},[r,s,a]);return r===void 0?null:g.jsxs(o.Generic.Popover.Root,{children:[g.jsx(o.Generic.Popover.Trigger,{children:g.jsx(o.FormattingToolbar.Button,{className:"bn-button",label:t.formatting_toolbar.file_rename.tooltip[r.type]||t.formatting_toolbar.file_rename.tooltip.file,mainTooltip:t.formatting_toolbar.file_rename.tooltip[r.type]||t.formatting_toolbar.file_rename.tooltip.file,icon:g.jsx(z0,{})})}),g.jsx(o.Generic.Popover.Content,{className:"bn-popover-content bn-form-popover",variant:"form-popover",children:g.jsx(o.Generic.Form.Root,{children:g.jsx(o.Generic.Form.TextInput,{name:"file-name",icon:g.jsx(z0,{}),value:s||"",autoFocus:!0,placeholder:t.formatting_toolbar.file_rename.input_placeholder[r.type]||t.formatting_toolbar.file_rename.input_placeholder.file,onKeyDown:d,onChange:f})})})]})},W3=()=>{const t=Se(),o=ue(),a=pe(),r=gt({editor:a,selector:({editor:s})=>{var c;if(!s.isEditable)return;const f=((c=s.getSelection())==null?void 0:c.blocks)||[s.getTextCursorPosition().block];if(f.length!==1)return;const d=f[0];if(kt(d,s,d.type,{url:"string"}))return d}});return r===void 0?null:g.jsxs(o.Generic.Popover.Root,{position:"bottom",children:[g.jsx(o.Generic.Popover.Trigger,{children:g.jsx(o.FormattingToolbar.Button,{className:"bn-button",mainTooltip:t.formatting_toolbar.file_replace.tooltip[r.type]||t.formatting_toolbar.file_replace.tooltip.file,label:t.formatting_toolbar.file_replace.tooltip[r.type]||t.formatting_toolbar.file_replace.tooltip.file,icon:g.jsx(H3,{})})}),g.jsx(o.Generic.Popover.Content,{className:"bn-popover-content bn-panel-popover",variant:"panel-popover",children:g.jsx(sy,{blockId:r.id})})]})},e8=()=>{const t=Se(),o=ue(),a=pe(),r=gt({editor:a,selector:({editor:c})=>{var f;if(!(!c.isEditable||!(((f=c.getSelection())==null?void 0:f.blocks)||[c.getTextCursorPosition().block]).find(d=>d.content!==void 0)))return{canNestBlock:c.canNestBlock()}}}),s=S.useCallback(()=>{r!==void 0&&r.canNestBlock&&(a.focus(),a.nestBlock())},[a,r]);return r===void 0?null:g.jsx(o.FormattingToolbar.Button,{className:"bn-button","data-test":"nestBlock",onClick:s,isDisabled:!r.canNestBlock,label:t.formatting_toolbar.nest.tooltip,mainTooltip:t.formatting_toolbar.nest.tooltip,secondaryTooltip:Ys(t.formatting_toolbar.nest.secondary_tooltip,t.generic.ctrl_shortcut),icon:g.jsx(w3,{})})},t8=()=>{const t=Se(),o=ue(),a=pe(),r=gt({editor:a,selector:({editor:c})=>{var f;if(!(!c.isEditable||!(((f=c.getSelection())==null?void 0:f.blocks)||[c.getTextCursorPosition().block]).find(d=>d.content!==void 0)))return{canUnnestBlock:c.canUnnestBlock()}}}),s=S.useCallback(()=>{r!==void 0&&r.canUnnestBlock&&(a.focus(),a.unnestBlock())},[a,r]);return r===void 0?null:g.jsx(o.FormattingToolbar.Button,{className:"bn-button","data-test":"unnestBlock",onClick:s,isDisabled:!r.canUnnestBlock,label:t.formatting_toolbar.unnest.tooltip,mainTooltip:t.formatting_toolbar.unnest.tooltip,secondaryTooltip:Ys(t.formatting_toolbar.unnest.secondary_tooltip,t.generic.ctrl_shortcut),icon:g.jsx(C3,{})})},n8=t=>[{name:t.slash_menu.paragraph.title,type:"paragraph",icon:Kd},{name:t.slash_menu.heading.title,type:"heading",props:{level:1,isToggleable:!1},icon:Ds},{name:t.slash_menu.heading_2.title,type:"heading",props:{level:2,isToggleable:!1},icon:Hs},{name:t.slash_menu.heading_3.title,type:"heading",props:{level:3,isToggleable:!1},icon:zs},{name:t.slash_menu.heading_4.title,type:"heading",props:{level:4,isToggleable:!1},icon:py},{name:t.slash_menu.heading_5.title,type:"heading",props:{level:5,isToggleable:!1},icon:hy},{name:t.slash_menu.heading_6.title,type:"heading",props:{level:6,isToggleable:!1},icon:gy},{name:t.slash_menu.toggle_heading.title,type:"heading",props:{level:1,isToggleable:!0},icon:Ds},{name:t.slash_menu.toggle_heading_2.title,type:"heading",props:{level:2,isToggleable:!0},icon:Hs},{name:t.slash_menu.toggle_heading_3.title,type:"heading",props:{level:3,isToggleable:!0},icon:zs},{name:t.slash_menu.quote.title,type:"quote",icon:Sy},{name:t.slash_menu.toggle_list.title,type:"toggleListItem",icon:Cy},{name:t.slash_menu.bullet_list.title,type:"bulletListItem",icon:xy},{name:t.slash_menu.numbered_list.title,type:"numberedListItem",icon:by},{name:t.slash_menu.check_list.title,type:"checkListItem",icon:yy}],o8=t=>{const o=ue(),a=pe(),r=gt({editor:a,selector:({editor:d})=>{var p;return((p=d.getSelection())==null?void 0:p.blocks)||[d.getTextCursorPosition().block]}}),s=r[0],c=S.useMemo(()=>(t.items||n8(a.dictionary)).filter(d=>xl(a,d.type,Object.fromEntries(Object.entries(d.props||{}).map(([p,h])=>[p,typeof h])))),[a,t.items]),f=S.useMemo(()=>c.map(d=>{const p=d.icon,h=d.type===s.type,v=Object.entries(d.props||{}).filter(([y,x])=>x!==s.props[y]).length===0;return{text:d.name,icon:g.jsx(p,{size:16}),onClick:()=>{a.focus(),a.transact(()=>{for(const y of r)a.updateBlock(y,{type:d.type,props:d.props})})},isSelected:h&&v}}),[a,c,s.props,s.type,r]);return!S.useMemo(()=>f.find(d=>d.isSelected)!==void 0,[f])||!a.isEditable?null:g.jsx(o.FormattingToolbar.Select,{className:"bn-select",items:f})},l8=()=>{const t=Se(),o=ue(),a=Ae("comments"),{store:r}=Ae(Or),s=S.useCallback(()=>{a.startPendingComment(),r.setState(!1)},[a,r]);return g.jsx(o.FormattingToolbar.Button,{className:"bn-button",label:t.formatting_toolbar.comment.tooltip,mainTooltip:t.formatting_toolbar.comment.tooltip,icon:g.jsx(my,{}),onClick:s})},a8=()=>pe().getExtension("comments")?g.jsx(l8,{}):null,r8=()=>{const t=Se(),o=ue(),a=pe(),r=S.useCallback(()=>{a._tiptapEditor.chain().focus().addPendingComment().run()},[a]);return!a._tiptapEditor.commands.addPendingComment||!a.isEditable?null:g.jsx(o.FormattingToolbar.Button,{className:"bn-button",label:t.formatting_toolbar.comment.tooltip,mainTooltip:t.formatting_toolbar.comment.tooltip,icon:g.jsx(my,{}),onClick:r})};function Dd(t,o){try{const a=new URL(t,o);if(a.protocol!=="javascript:")return a.href}catch{}return"#"}const i8=()=>{const t=Se(),o=ue(),a=pe(),r=gt({editor:a,selector:({editor:c})=>{var f;const d=((f=c.getSelection())==null?void 0:f.blocks)||[c.getTextCursorPosition().block];if(d.length!==1)return;const p=d[0];if(kt(p,c,p.type,{url:"string"}))return p}}),s=S.useCallback(()=>{r!==void 0&&(a.focus(),a.resolveFileUrl?a.resolveFileUrl(r.props.url).then(c=>window.open(Dd(c,window.location.href))):window.open(Dd(r.props.url,window.location.href)))},[r,a]);return r===void 0?null:g.jsx(o.FormattingToolbar.Button,{className:"bn-button",label:t.formatting_toolbar.file_download.tooltip[r.type]||t.formatting_toolbar.file_download.tooltip.file,mainTooltip:t.formatting_toolbar.file_download.tooltip[r.type]||t.formatting_toolbar.file_download.tooltip.file,icon:g.jsx(U3,{}),onClick:s})},s8=()=>{const t=Se(),o=ue(),a=pe(),r=gt({editor:a,selector:({editor:c})=>{var f;if(!c.isEditable)return;const d=((f=c.getSelection())==null?void 0:f.blocks)||[c.getTextCursorPosition().block];if(d.length!==1)return;const p=d[0];if(kt(p,c,p.type,{url:"string",showPreview:"boolean"}))return p}}),s=S.useCallback(()=>{r!==void 0&&xl(a,r.type,{showPreview:"boolean"})&&a.updateBlock(r.id,{props:{showPreview:!r.props.showPreview}})},[r,a]);return r===void 0?null:g.jsx(o.FormattingToolbar.Button,{className:"bn-button",label:"Toggle preview",mainTooltip:t.formatting_toolbar.file_preview_toggle.tooltip,icon:g.jsx(D3,{}),isSelected:r.props.showPreview,onClick:s})},c8=()=>{const t=Se(),o=ue(),a=pe(),r=Ae(Fe),s=gt({editor:a,selector:({editor:f})=>{var d;if(!f.isEditable||!f.settings.tables.splitCells)return;const p=((d=f.getSelection())==null?void 0:d.blocks)||[f.getTextCursorPosition().block];if(p.length!==1)return;const h=p[0];if(h.type==="table")return{mergeDirection:r.getMergeDirection(h)}}}),c=S.useCallback(()=>{r?.mergeCells()},[r]);return s===void 0?null:g.jsx(o.FormattingToolbar.Button,{className:"bn-button",label:t.formatting_toolbar.table_cell_merge.tooltip,mainTooltip:t.formatting_toolbar.table_cell_merge.tooltip,icon:s.mergeDirection==="horizontal"?g.jsx(M3,{}):g.jsx(R3,{}),onClick:c})},u8=()=>pe().getExtension(Fe)?g.jsx(c8,{}):null,f8={left:y3,center:g3,right:b3,justify:v3},cd=t=>{const o=ue(),a=Se(),r=pe(),s=gt({editor:r,selector:({editor:d})=>{var p,h;if(!d.isEditable)return;const v=((p=d.getSelection())==null?void 0:p.blocks)||[d.getTextCursorPosition().block],y=v[0];if(kt(y,d,y.type,{textAlignment:ys.textAlignment}))return{textAlignment:y.props.textAlignment,blocks:v};if(v.length===1&&kt(y,d,"table"))return(h=d.getExtension(Fe))!=null&&h.getCellSelection()?{textAlignment:Nr(y.content.rows[0].cells[0]).props.textAlignment,blocks:[y]}:void 0}}),c=S.useCallback(d=>{var p;if(s!==void 0){r.focus();for(const h of s.blocks)if(kt(h,r,h.type,{textAlignment:ys.textAlignment})&&xl(r,h.type,{textAlignment:ys.textAlignment}))r.updateBlock(h,{props:{textAlignment:d}});else if(h.type==="table"){const v=(p=r.getExtension(Fe))==null?void 0:p.getCellSelection();if(!v)continue;const y=h.content.rows.map(x=>({...x,cells:x.cells.map(C=>Nr(C))}));v.cells.forEach(({row:x,col:C})=>{y[x].cells[C].props.textAlignment=d}),r.updateBlock(h,{type:"table",content:{...h.content,type:"tableContent",rows:y}}),r.setTextCursorPosition(h)}}},[r,s]);if(s===void 0)return null;const f=f8[t.textAlignment];return g.jsx(o.FormattingToolbar.Button,{className:"bn-button","data-test":`alignText${t.textAlignment.slice(0,1).toUpperCase()+t.textAlignment.slice(1)}`,onClick:()=>c(t.textAlignment),isSelected:s.textAlignment===t.textAlignment,label:a.formatting_toolbar[`align_${t.textAlignment}`].tooltip,mainTooltip:a.formatting_toolbar[`align_${t.textAlignment}`].tooltip,icon:g.jsx(f,{})})},Ty=t=>[g.jsx(o8,{items:t},"blockTypeSelect"),g.jsx(u8,{},"tableCellMergeButton"),g.jsx(K3,{},"fileCaptionButton"),g.jsx(W3,{},"replaceFileButton"),g.jsx(J3,{},"fileRenameButton"),g.jsx(F3,{},"fileDeleteButton"),g.jsx(i8,{},"fileDownloadButton"),g.jsx(s8,{},"filePreviewButton"),g.jsx(ms,{basicTextStyle:"bold"},"boldStyleButton"),g.jsx(ms,{basicTextStyle:"italic"},"italicStyleButton"),g.jsx(ms,{basicTextStyle:"underline"},"underlineStyleButton"),g.jsx(ms,{basicTextStyle:"strike"},"strikeStyleButton"),g.jsx(cd,{textAlignment:"left"},"textAlignLeftButton"),g.jsx(cd,{textAlignment:"center"},"textAlignCenterButton"),g.jsx(cd,{textAlignment:"right"},"textAlignRightButton"),g.jsx(P3,{},"colorStyleButton"),g.jsx(e8,{},"nestBlockButton"),g.jsx(t8,{},"unnestBlockButton"),g.jsx(I3,{},"createLinkButton"),g.jsx(a8,{},"addCommentButton"),g.jsx(r8,{},"addTiptapCommentButton")],Ey=t=>{const o=ue();return g.jsx(o.FormattingToolbar.Root,{className:"bn-toolbar bn-formatting-toolbar",children:t.children||Ty(t.blockTypeSelectItems)})},d8=t=>{switch(t){case"left":return"top-start";case"center":return"top";case"right":return"top-end";default:return"top-start"}},My=t=>{const o=pe(),a=Ae(Or,{editor:o}),r=qe(Or,{editor:o}),s=gt({editor:o,selector:({editor:p})=>a.store.state?{from:p.prosemirrorState.selection.from,to:p.prosemirrorState.selection.to}:void 0}),c=gt({editor:o,selector:({editor:p})=>{const h=p.getTextCursorPosition().block;return kt(h,p,h.type,{textAlignment:ys.textAlignment})?d8(h.props.textAlignment):"top-start"}}),f=S.useMemo(()=>{var p,h;return{...t.floatingUIOptions,useFloatingOptions:{open:r,onOpenChange:(v,y,x)=>{a.store.setState(v),x==="escape-key"&&o.focus()},placement:c,middleware:[mn(10),Io(),yo()],...(p=t.floatingUIOptions)==null?void 0:p.useFloatingOptions},elementProps:{style:{zIndex:40},...(h=t.floatingUIOptions)==null?void 0:h.elementProps}}},[r,c,t.floatingUIOptions,a.store,o]),d=t.formattingToolbar||Ey;return g.jsx(Id,{position:s,...f,children:r&&g.jsx(d,{})})},m8=t=>{const o=ue(),a=Se(),{deleteLink:r}=Ae(Xs);return g.jsx(o.LinkToolbar.Button,{className:"bn-button",label:a.link_toolbar.delete.tooltip,mainTooltip:a.link_toolbar.delete.tooltip,isSelected:!1,onClick:()=>{var s;r(t.range.from),(s=t.setToolbarOpen)==null||s.call(t,!1)},icon:g.jsx(E3,{})})},p8=t=>{const o=ue(),a=Se();return g.jsxs(o.Generic.Popover.Root,{onOpenChange:t.setToolbarPositionFrozen,children:[g.jsx(o.Generic.Popover.Trigger,{children:g.jsx(o.LinkToolbar.Button,{className:"bn-button",mainTooltip:a.link_toolbar.edit.tooltip,isSelected:!1,children:a.link_toolbar.edit.text})}),g.jsx(o.Generic.Popover.Content,{className:"bn-popover-content bn-form-popover",variant:"form-popover",children:g.jsx(wy,{url:t.url,text:t.text,range:t.range,setToolbarOpen:t.setToolbarOpen,setToolbarPositionFrozen:t.setToolbarPositionFrozen})})]})},h8=t=>{const o=ue(),a=Se();return g.jsx(o.LinkToolbar.Button,{className:"bn-button",mainTooltip:a.link_toolbar.open.tooltip,label:a.link_toolbar.open.tooltip,isSelected:!1,onClick:()=>{window.open(Dd(t.url,window.location.href),"_blank")},icon:g.jsx($3,{})})},g8=t=>{const o=ue();return g.jsx(o.LinkToolbar.Root,{className:"bn-toolbar bn-link-toolbar",children:t.children||g.jsxs(g.Fragment,{children:[g.jsx(p8,{url:t.url,text:t.text,range:t.range,setToolbarOpen:t.setToolbarOpen,setToolbarPositionFrozen:t.setToolbarPositionFrozen}),g.jsx(h8,{url:t.url}),g.jsx(m8,{range:t.range,setToolbarOpen:t.setToolbarOpen})]})})},v8=t=>{const o=pe(),[a,r]=S.useState(!1),[s,c]=S.useState(!1),f=Ae(Xs),[d,p]=S.useState(void 0);S.useEffect(()=>{const x=()=>{const R=f.getLinkAtSelection();if(!R){p(void 0),s||r(!1);return}p({cursorType:"text",url:R.mark.attrs.href,text:R.text,range:R.range,element:f.getLinkElementAtPos(R.range.from)}),s||r(!0)},C=R=>{if(d!==void 0&&d.cursorType==="text"||!(R.target instanceof HTMLElement))return;const _=f.getLinkAtElement(R.target);_&&p({cursorType:"mouse",url:_.mark.attrs.href,text:_.text,range:_.range,element:f.getLinkElementAtPos(_.range.from)})},T=o.onChange(x),w=o.onSelectionChange(x),M=o.domElement;return M?.addEventListener("mouseover",C),()=>{T(),w(),M?.removeEventListener("mouseover",C)}},[o,o.domElement,f,d,s]);const h=S.useMemo(()=>{var x,C,T;return{...t.floatingUIOptions,useFloatingOptions:{open:a,onOpenChange:(w,M,R)=>{s||d!==void 0&&d.cursorType==="text"&&R==="hover"||(R==="escape-key"&&o.focus(),r(w))},placement:"top-start",middleware:[mn(10),yo()],...(x=t.floatingUIOptions)==null?void 0:x.useFloatingOptions},useHoverProps:{enabled:d!==void 0&&d.cursorType==="mouse",delay:{open:250,close:250},handleClose:j5(),...(C=t.floatingUIOptions)==null?void 0:C.useHoverProps},elementProps:{style:{zIndex:50},...(T=t.floatingUIOptions)==null?void 0:T.elementProps}}},[o,d,t.floatingUIOptions,a,s]),v=S.useMemo(()=>d!=null&&d.element?{element:d.element}:void 0,[d?.element]);if(!o.isEditable)return null;const y=t.linkToolbar||g8;return g.jsx(Bn,{reference:v,...h,children:d&&g.jsx(y,{url:d.url,text:d.text,range:d.range,setToolbarOpen:r,setToolbarPositionFrozen:c})})};function y8(t){return fe({attr:{viewBox:"0 0 1024 1024"},child:[{tag:"path",attr:{d:"M482 152h60q8 0 8 8v704q0 8-8 8h-60q-8 0-8-8V160q0-8 8-8Z"},child:[]},{tag:"path",attr:{d:"M192 474h672q8 0 8 8v60q0 8-8 8H160q-8 0-8-8v-60q0-8 8-8Z"},child:[]}]})(t)}const b8=()=>{const t=ue(),o=Se(),a=pe(),r=Ae(po),s=qe(Gn,{editor:a,selector:f=>f?.block}),c=S.useCallback(()=>{if(s===void 0)return;const f=s.content;if(f!==void 0&&Array.isArray(f)&&f.length===0)a.setTextCursorPosition(s),r.openSuggestionMenu("/");else{const d=a.insertBlocks([{type:"paragraph"}],s,"after")[0];a.setTextCursorPosition(d),r.openSuggestionMenu("/")}},[s,a,r]);return s===void 0?null:g.jsx(t.SideMenu.Button,{className:"bn-button",label:o.side_menu.add_block_label,icon:g.jsx(y8,{size:24,onClick:c,"data-test":"dragHandleAdd"})})};function Ry(t){return fe({attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0V0z"},child:[]},{tag:"path",attr:{d:"M11 18c0 1.1-.9 2-2 2s-2-.9-2-2 .9-2 2-2 2 .9 2 2zm-2-8c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2zm0-6c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2zm6 4c1.1 0 2-.9 2-2s-.9-2-2-2-2 .9-2 2 .9 2 2 2zm0 2c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2zm0 6c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2z"},child:[]}]})(t)}function x8(t){return fe({attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"},child:[]},{tag:"path",attr:{d:"m7 10 5 5 5-5z"},child:[]}]})(t)}const S8=t=>{const o=ue(),a=pe(),r=qe(Gn,{editor:a,selector:s=>s?.block});return r===void 0||!kt(r,a,r.type,{textColor:"string"})&&!kt(r,a,r.type,{backgroundColor:"string"})?null:g.jsxs(o.Generic.Menu.Root,{position:"right",sub:!0,children:[g.jsx(o.Generic.Menu.Trigger,{sub:!0,children:g.jsx(o.Generic.Menu.Item,{className:"bn-menu-item",subTrigger:!0,children:t.children})}),g.jsx(o.Generic.Menu.Dropdown,{sub:!0,className:"bn-menu-dropdown bn-color-picker-dropdown",children:g.jsx(ec,{iconSize:18,text:kt(r,a,r.type,{textColor:"string"})&&xl(a,r.type,{textColor:"string"})?{color:r.props.textColor,setColor:s=>a.updateBlock(r,{type:r.type,props:{textColor:s}})}:void 0,background:kt(r,a,r.type,{backgroundColor:"string"})&&xl(a,r.type,{backgroundColor:"string"})?{color:r.props.backgroundColor,setColor:s=>a.updateBlock(r,{props:{backgroundColor:s}})}:void 0})})]})},C8=t=>{const o=ue(),a=pe(),r=qe(Gn,{editor:a,selector:s=>s?.block});return r===void 0?null:g.jsx(o.Generic.Menu.Item,{className:"bn-menu-item",onClick:()=>a.removeBlocks([r]),children:t.children})},w8=t=>{const o=ue(),a=pe(),r=qe(Gn,{editor:a,selector:c=>c?.block});if(r===void 0||r.type!=="table"||!a.settings.tables.headers)return null;const s=!!r.content.headerRows;return g.jsx(o.Generic.Menu.Item,{className:"bn-menu-item",checked:s,onClick:()=>{a.updateBlock(r,{content:{...r.content,headerRows:s?void 0:1}})},children:t.children})},T8=t=>{const o=ue(),a=pe(),r=qe(Gn,{editor:a,selector:c=>c?.block});if(r===void 0||r.type!=="table"||!a.settings.tables.headers)return null;const s=!!r.content.headerCols;return g.jsx(o.Generic.Menu.Item,{className:"bn-menu-item",checked:s,onClick:()=>{a.updateBlock(r,{content:{...r.content,headerCols:s?void 0:1}})},children:t.children})},E8=t=>{const o=ue(),a=Se();return g.jsx(o.Generic.Menu.Dropdown,{className:"bn-menu-dropdown bn-drag-handle-menu",children:t.children||g.jsxs(g.Fragment,{children:[g.jsx(C8,{children:a.drag_handle.delete_menuitem}),g.jsx(S8,{children:a.drag_handle.colors_menuitem}),g.jsx(w8,{children:a.drag_handle.header_row_menuitem}),g.jsx(T8,{children:a.drag_handle.header_column_menuitem})]})})},M8=t=>{const o=ue(),a=Se(),r=Ae(Gn),s=qe(Gn,{selector:f=>f?.block});if(s===void 0)return null;const c=t.dragHandleMenu||E8;return g.jsxs(o.Generic.Menu.Root,{onOpenChange:f=>{f?r.freezeMenu():r.unfreezeMenu()},position:"left",children:[g.jsx(o.Generic.Menu.Trigger,{children:g.jsx(o.SideMenu.Button,{label:a.side_menu.drag_handle_label,draggable:!0,onDragStart:f=>r.blockDragStart(f,s),onDragEnd:r.blockDragEnd,className:"bn-button",icon:g.jsx(Ry,{size:24,"data-test":"dragHandle"})})}),g.jsx(c,{children:t.children})]})},R8=t=>{const o=ue(),a=pe(),r=qe(Gn,{editor:a,selector:c=>c?.block}),s=S.useMemo(()=>{var c;if(r===void 0)return{};const f={"data-block-type":r.type};return r.type==="heading"&&(f["data-level"]=r.props.level.toString()),(c=a.schema.blockSpecs[r.type].implementation.meta)!=null&&c.fileBlockAccept&&(r.props.url?f["data-url"]="true":f["data-url"]="false"),f},[r,a.schema.blockSpecs]);return g.jsx(o.SideMenu.Root,{className:"bn-side-menu",...s,children:t.children||g.jsxs(g.Fragment,{children:[g.jsx(b8,{}),g.jsx(M8,{dragHandleMenu:t.dragHandleMenu})]})})},j8=t=>{const o=qe(Gn,{selector:f=>f!==void 0?{show:f.show,block:f.block}:void 0}),{show:a,block:r}=o||{},s=S.useMemo(()=>{var f,d,p;return{...t.floatingUIOptions,useFloatingOptions:{open:a,placement:"left-start",...(f=t.floatingUIOptions)==null?void 0:f.useFloatingOptions},useDismissProps:{enabled:!1,...(d=t.floatingUIOptions)==null?void 0:d.useDismissProps},elementProps:{style:{zIndex:20},...(p=t.floatingUIOptions)==null?void 0:p.elementProps}}},[t.floatingUIOptions,a]),c=t.sideMenu||R8;return g.jsx(cy,{blockId:a?r?.id:void 0,...s,children:r?.id&&g.jsx(c,{})})};async function _8(t,o){return(await ZC(t,o)).map(({id:a,onItemClick:r})=>({id:a,onItemClick:r,icon:a}))}function O8(t){const o=ue(),a=Se(),{items:r,loadingState:s,selectedIndex:c,onItemClick:f,columns:d}=t,p=s==="loading-initial"||s==="loading"?g.jsx(o.GridSuggestionMenu.Loader,{className:"bn-grid-suggestion-menu-loader",columns:d}):null,h=S.useMemo(()=>{const v=[];for(let y=0;y<r.length;y++){const x=r[y];v.push(g.jsx(o.GridSuggestionMenu.Item,{className:"bn-grid-suggestion-menu-item",item:x,id:`bn-grid-suggestion-menu-item-${y}`,isSelected:y===c,onClick:()=>f?.(x)},x.id))}return v},[o,r,f,c]);return g.jsxs(o.GridSuggestionMenu.Root,{id:"bn-grid-suggestion-menu",columns:d,className:"bn-grid-suggestion-menu",children:[p,h,h.length===0&&t.loadingState==="loaded"&&g.jsx(o.GridSuggestionMenu.EmptyItem,{className:"bn-grid-suggestion-menu-empty-item",columns:d,children:a.suggestion_menu.no_items_title})]})}function jy(t,o,a,r=3){const s=S.useRef(0);S.useEffect(()=>{o!==void 0&&(t.length>0?s.current=o.length:o.length-s.current>r&&a())},[a,r,t.length,o])}function _y(t,o){const[a,r]=S.useState([]),[s,c]=S.useState(!1),f=S.useRef(void 0),d=S.useRef(void 0);return S.useEffect(()=>{const p=t;f.current=t,c(!0),o(t).then(h=>{f.current===p&&(r(h),c(!1),d.current=p)})},[t,o]),{items:a||[],usedQuery:d.current,loadingState:d.current===void 0?"loading-initial":s?"loading":"loaded"}}function N8(t,o,a,r,s){const[c,f]=S.useState(0),d=r!==void 0&&r>1;return S.useEffect(()=>{const p=v=>(v.key==="ArrowLeft"&&(v.preventDefault(),a.length&&f((c-1+a.length)%a.length)),v.key==="ArrowRight"&&(v.preventDefault(),a.length&&f((c+1+a.length)%a.length)),v.key==="ArrowUp"?(v.preventDefault(),a.length&&f((c-r+a.length)%a.length),!0):v.key==="ArrowDown"?(v.preventDefault(),a.length&&f((c+r)%a.length),!0):v.key==="Enter"&&!v.isComposing?(v.stopPropagation(),v.preventDefault(),a.length&&s?.(a[c]),!0):!1),h=t.domElement;return h?.addEventListener("keydown",p,!0),()=>{h?.removeEventListener("keydown",p,!0)}},[t.domElement,a,c,s,r,d]),S.useEffect(()=>{f(0)},[o]),{selectedIndex:a.length===0?void 0:c}}function A8(t){const o=Mn().setContentEditableProps,a=pe(),{getItems:r,gridSuggestionMenuComponent:s,query:c,clearQuery:f,closeMenu:d,onItemClick:p,columns:h}=t,v=S.useCallback(w=>{d(),f(),p?.(w)},[p,d,f]),{items:y,usedQuery:x,loadingState:C}=_y(c,r);jy(y,x,d);const{selectedIndex:T}=N8(a,c,y,h,v);return S.useEffect(()=>(o(w=>({...w,"aria-expanded":!0,"aria-controls":"bn-suggestion-menu"})),()=>{o(w=>({...w,"aria-expanded":!1,"aria-controls":void 0}))}),[o]),S.useEffect(()=>(o(w=>({...w,"aria-activedescendant":T?"bn-suggestion-menu-item-"+T:void 0})),()=>{o(w=>({...w,"aria-activedescendant":void 0}))}),[o,T]),g.jsx(s,{items:y,onItemClick:v,loadingState:C,selectedIndex:T,columns:h})}function D8(t){const o=pe(),{triggerCharacter:a,gridSuggestionMenuComponent:r,columns:s,minQueryLength:c,onItemClick:f,getItems:d}=t,p=S.useMemo(()=>f||(T=>{T.onItemClick(o)}),[o,f]),h=S.useMemo(()=>d||(async T=>await _8(o,T)),[o,d]),v=Ae(po);S.useEffect(()=>{v.addTriggerCharacter(a)},[v,a]);const y=qe(po),x=qe(po,{selector:T=>{var w;return{element:((w=o.domElement)==null?void 0:w.firstChild)||void 0,getBoundingClientRect:()=>T?.referencePos||new DOMRect}}}),C=S.useMemo(()=>{var T,w;return{...t.floatingUIOptions,useFloatingOptions:{open:y?.show&&y?.triggerCharacter===a,onOpenChange:M=>{M||v.closeMenu()},placement:"bottom-start",middleware:[mn(10),Yv({allowedPlacements:["bottom-start","top-start"],padding:10}),Io(),Dr({apply({elements:M,availableHeight:R}){M.floating.style.maxHeight=`${Math.max(0,R)}px`},padding:10})],...(T=t.floatingUIOptions)==null?void 0:T.useFloatingOptions},elementProps:{onMouseDownCapture:M=>M.preventDefault(),style:{zIndex:70},...(w=t.floatingUIOptions)==null?void 0:w.elementProps}}},[t.floatingUIOptions,y?.show,y?.triggerCharacter,v,a]);return!y||!y.ignoreQueryLength&&c&&(y.query.startsWith(" ")||y.query.length<c)?null:g.jsx(Bn,{reference:x,...C,children:a&&g.jsx(A8,{query:y.query,closeMenu:v.closeMenu,clearQuery:v.clearQuery,getItems:h,columns:s,gridSuggestionMenuComponent:r||O8,onItemClick:p})})}function H8(t){const o=ue(),a=Se(),{items:r,loadingState:s,selectedIndex:c,onItemClick:f}=t,d=s==="loading-initial"||s==="loading"?g.jsx(o.SuggestionMenu.Loader,{className:"bn-suggestion-menu-loader"}):null,p=S.useMemo(()=>{let h;const v=[];for(let y=0;y<r.length;y++){const x=r[y];x.group!==h&&(h=x.group,v.push(g.jsx(o.SuggestionMenu.Label,{className:"bn-suggestion-menu-label",children:h},h))),v.push(g.jsx(o.SuggestionMenu.Item,{className:ht("bn-suggestion-menu-item",x.size==="small"?"bn-suggestion-menu-item-small":""),item:x,id:`bn-suggestion-menu-item-${y}`,isSelected:y===c,onClick:()=>f?.(x)},x.title))}return v},[o,r,f,c]);return g.jsxs(o.SuggestionMenu.Root,{id:"bn-suggestion-menu",className:"bn-suggestion-menu",children:[p,p.length===0&&(t.loadingState==="loading"||t.loadingState==="loaded")&&g.jsx(o.SuggestionMenu.EmptyItem,{className:"bn-suggestion-menu-item",children:a.suggestion_menu.no_items_title}),d]})}function z8(t,o){const[a,r]=S.useState(0);return{selectedIndex:a,setSelectedIndex:r,handler:s=>{if(s.key==="ArrowUp")return s.preventDefault(),t.length&&r((a-1+t.length)%t.length),!0;if(s.key==="ArrowDown")return s.preventDefault(),t.length&&r((a+1)%t.length),!0;if(s.key==="PageUp")return s.preventDefault(),t.length&&r(0),!0;if(s.key==="PageDown")return s.preventDefault(),t.length&&r(t.length-1),!0;const c=L8(s)?s.nativeEvent.isComposing:s.isComposing;return s.key==="Enter"&&!c?(s.preventDefault(),s.stopPropagation(),t.length&&o?.(t[a]),!0):!1}}}function L8(t){return t.nativeEvent!==void 0}function V8(t,o,a,r,s){const{selectedIndex:c,setSelectedIndex:f,handler:d}=z8(a,r);return S.useEffect(()=>{const p=t.domElement;return p?.addEventListener("keydown",d,!0),()=>{p?.removeEventListener("keydown",d,!0)}},[t.domElement,a,c,r,s,d]),S.useEffect(()=>{f(0)},[o,f]),{selectedIndex:a.length===0?void 0:c}}function k8(t){const o=Mn().setContentEditableProps,a=pe(),{getItems:r,suggestionMenuComponent:s,query:c,clearQuery:f,closeMenu:d,onItemClick:p}=t,h=S.useCallback(T=>{d(),f(),p?.(T)},[p,d,f]),{items:v,usedQuery:y,loadingState:x}=_y(c,r);jy(v,y,d);const{selectedIndex:C}=V8(a,c,v,h);return S.useEffect(()=>(o(T=>({...T,"aria-expanded":!0,"aria-controls":"bn-suggestion-menu"})),()=>{o(T=>({...T,"aria-expanded":!1,"aria-controls":void 0}))}),[o]),S.useEffect(()=>(o(T=>({...T,"aria-activedescendant":C?"bn-suggestion-menu-item-"+C:void 0})),()=>{o(T=>({...T,"aria-activedescendant":void 0}))}),[o,C]),g.jsx(s,{items:v,onItemClick:h,loadingState:x,selectedIndex:C})}const B8={heading:Ds,heading_2:Hs,heading_3:zs,heading_4:py,heading_5:hy,heading_6:gy,toggle_heading:Ds,toggle_heading_2:Hs,toggle_heading_3:zs,quote:Sy,toggle_list:Cy,numbered_list:by,bullet_list:xy,check_list:yy,paragraph:Kd,table:_3,image:A3,video:N3,audio:z3,file:h3,emoji:q3,code_block:S3,divider:Z3};function U8(t){return gS(t).map(o=>{const a=B8[o.key];return{...o,icon:g.jsx(a,{size:18})}})}function $8(t){const o=pe(),{triggerCharacter:a,suggestionMenuComponent:r,minQueryLength:s,onItemClick:c,getItems:f}=t,d=S.useMemo(()=>c||(C=>{C.onItemClick(o)}),[o,c]),p=S.useMemo(()=>f||(async C=>hS(U8(o),C)),[o,f]),h=Ae(po);S.useEffect(()=>{h.addTriggerCharacter(a)},[h,a]);const v=qe(po),y=qe(po,{selector:C=>{var T;return{element:((T=o.domElement)==null?void 0:T.firstChild)||void 0,getBoundingClientRect:()=>C?.referencePos||new DOMRect}}}),x=S.useMemo(()=>{var C,T;return{...t.floatingUIOptions,useFloatingOptions:{open:v?.show&&v?.triggerCharacter===a,onOpenChange:w=>{w||h.closeMenu()},placement:"bottom-start",middleware:[mn(10),Yv({allowedPlacements:["bottom-start","top-start"],padding:10}),Io(),Dr({apply({elements:w,availableHeight:M}){w.floating.style.maxHeight=`${Math.max(0,M)}px`},padding:10})],...(C=t.floatingUIOptions)==null?void 0:C.useFloatingOptions},elementProps:{onMouseDownCapture:w=>w.preventDefault(),style:{zIndex:80},...(T=t.floatingUIOptions)==null?void 0:T.elementProps}}},[t.floatingUIOptions,v?.show,v?.triggerCharacter,h,a]);return!v||!v.ignoreQueryLength&&s&&(v.query.startsWith(" ")||v.query.length<s)?null:g.jsx(Bn,{reference:y,...x,children:a&&g.jsx(k8,{query:v.query,closeMenu:h.closeMenu,clearQuery:h.clearQuery,getItems:p,suggestionMenuComponent:r||H8,onItemClick:d})})}const G8=(t,o=.3)=>{const a=Math.floor(t)+o,r=Math.ceil(t)-o;return t>=a&&t<=r?Math.round(t):t<a?Math.floor(t):Math.ceil(t)},Z8=t=>{const o=ue(),a=pe(),r=Ae(Fe),s=qe(Fe,{selector:v=>v?.block}),c=S.useRef(!1),[f,d]=S.useState(),p=S.useCallback(v=>{r.freezeHandles(),t.hideOtherElements(!0),s&&(d({originalContent:s.content,originalCroppedContent:{rows:r.cropEmptyRowsOrColumns(s,t.orientation==="addOrRemoveColumns"?"columns":"rows")},startPos:t.orientation==="addOrRemoveColumns"?v.clientX:v.clientY}),c.current=!1,v.preventDefault())},[s,t,r]),h=S.useCallback(()=>{!s||c.current||a.updateBlock(s,{type:"table",content:{...s.content,rows:t.orientation==="addOrRemoveColumns"?r.addRowsOrColumns(s,"columns",1):r.addRowsOrColumns(s,"rows",1)}})},[s,a,t.orientation,r]);return S.useEffect(()=>{const v=y=>{var x,C;if(!s)return;if(!f)throw new Error("editingState is undefined");c.current=!0;const T=(t.orientation==="addOrRemoveColumns"?y.clientX:y.clientY)-f.startPos,w=t.orientation==="addOrRemoveColumns"?((x=f.originalCroppedContent.rows[0])==null?void 0:x.cells.length)??0:f.originalCroppedContent.rows.length,M=t.orientation==="addOrRemoveColumns"?((C=f.originalContent.rows[0])==null?void 0:C.cells.length)??0:f.originalContent.rows.length,R=t.orientation==="addOrRemoveColumns"?s.content.rows[0].cells.length:s.content.rows.length,_=M+G8(T/(t.orientation==="addOrRemoveColumns"?SS:CS),.3);_>=w&&_>0&&_!==R&&(a.updateBlock(s,{type:"table",content:{...s.content,rows:t.orientation==="addOrRemoveColumns"?r.addRowsOrColumns({type:"table",content:f.originalCroppedContent},"columns",_-w):r.addRowsOrColumns({type:"table",content:f.originalCroppedContent},"rows",_-w)}}),s.content&&a.setTextCursorPosition(s))};return f&&window.addEventListener("mousemove",v),()=>{window.removeEventListener("mousemove",v)}},[s,f,a,t.orientation,r]),S.useEffect(()=>{const v=()=>{t.hideOtherElements(!1),r.unfreezeHandles(),d(void 0)};return f&&window.addEventListener("mouseup",v),()=>{window.removeEventListener("mouseup",v)}},[f,t,r]),a.isEditable?g.jsx(o.TableHandle.ExtendButton,{className:ht("bn-extend-button",t.orientation==="addOrRemoveColumns"?"bn-extend-button-add-remove-columns":"bn-extend-button-add-remove-rows",f!==null?"bn-extend-button-editing":""),onClick:h,onMouseDown:p,children:t.children||g.jsx(L3,{size:18,"data-test":"extendButton"})}):null},U0=t=>{const o=ue(),a=Se(),r=Ae(Fe),s=qe(Fe,{selector:c=>t.orientation==="column"?c?.colIndex:c?.rowIndex});return r===void 0||s===void 0?null:g.jsx(o.Generic.Menu.Item,{onClick:()=>{r.addRowOrColumn(s,t.orientation==="row"?{orientation:"row",side:t.side}:{orientation:"column",side:t.side})},children:a.table_handle[`add_${t.side}_menuitem`]})},q8=t=>{const o=ue(),a=Se(),r=Ae(Fe),s=qe(Fe,{selector:c=>t.orientation==="column"?c?.colIndex:c?.rowIndex});return r===void 0||s===void 0?null:g.jsx(o.Generic.Menu.Item,{onClick:()=>r.removeRowOrColumn(s,t.orientation),children:t.orientation==="row"?a.table_handle.delete_row_menuitem:a.table_handle.delete_column_menuitem})},Y8=t=>{const o=ue(),a=Se(),r=pe(),s=Ae(Fe),{block:c,index:f}=qe(Fe,{selector:v=>({block:v?.block,index:t.orientation==="column"?v?.colIndex:v?.rowIndex})}),d=S.useMemo(()=>s===void 0||c===void 0||f===void 0?[]:t.orientation==="row"?s.getCellsAtRowHandle(c,f):s.getCellsAtColumnHandle(c,f),[c,f,t.orientation,s]),p=(v,y)=>{if(c===void 0)return;const x=c.content.rows.map(C=>({...C,cells:C.cells.map(T=>Nr(T))}));d.forEach(({row:C,col:T})=>{y==="text"?x[C].cells[T].props.textColor=v:x[C].cells[T].props.backgroundColor=v}),r.updateBlock(c,{type:"table",content:{...c.content,rows:x}}),r.setTextCursorPosition(c)};if(!d||!d[0]||!s||r.settings.tables.cellTextColor===!1&&r.settings.tables.cellBackgroundColor===!1)return null;const h=Nr(d[0].cell);return g.jsxs(o.Generic.Menu.Root,{position:"right",sub:!0,children:[g.jsx(o.Generic.Menu.Trigger,{sub:!0,children:g.jsx(o.Generic.Menu.Item,{className:"bn-menu-item",subTrigger:!0,children:t.children||a.drag_handle.colors_menuitem})}),g.jsx(o.Generic.Menu.Dropdown,{sub:!0,className:"bn-menu-dropdown bn-color-picker-dropdown",children:g.jsx(ec,{iconSize:18,text:r.settings.tables.cellTextColor?{color:d.every(({cell:v})=>Ar(v)&&v.props.textColor===h.props.textColor)?h.props.textColor:"default",setColor:v=>{p(v,"text")}}:void 0,background:r.settings.tables.cellBackgroundColor?{color:d.every(({cell:v})=>Ar(v)&&v.props.backgroundColor===h.props.backgroundColor)?h.props.backgroundColor:"default",setColor:v=>p(v,"background")}:void 0})})]})},X8=t=>{const o=ue(),a=Se(),r=pe(),s=Ae(Fe),{block:c,index:f}=qe(Fe,{selector:p=>({block:p?.block,index:t.orientation==="column"?p?.colIndex:p?.rowIndex})});if(s===void 0||c===void 0||f!==0||t.orientation!=="row"||!r.settings.tables.headers)return null;const d=!!c.content.headerRows;return g.jsx(o.Generic.Menu.Item,{className:"bn-menu-item",checked:d,onClick:()=>{r.updateBlock(c,{...c,content:{...c.content,headerRows:d?void 0:1}})},children:a.drag_handle.header_row_menuitem})},P8=t=>{const o=ue(),a=Se(),r=pe(),s=Ae(Fe),c=qe(Fe,{selector:p=>p?.block}),f=qe(Fe,{selector:p=>t.orientation==="column"?p?.colIndex:p?.rowIndex});if(!s||f!==0||!c||t.orientation!=="column"||!r.settings.tables.headers)return null;const d=!!c.content.headerCols;return g.jsx(o.Generic.Menu.Item,{className:"bn-menu-item",checked:d,onClick:()=>{r.updateBlock(c,{...c,content:{...c.content,headerCols:d?void 0:1}})},children:a.drag_handle.header_column_menuitem})},Q8=t=>{const o=ue();return g.jsx(o.Generic.Menu.Dropdown,{className:"bn-table-handle-menu",children:t.children||g.jsxs(g.Fragment,{children:[g.jsx(q8,{orientation:t.orientation}),g.jsx(U0,{orientation:t.orientation,side:t.orientation==="row"?"above":"left"}),g.jsx(U0,{orientation:t.orientation,side:t.orientation==="row"?"below":"right"}),g.jsx(X8,{orientation:t.orientation}),g.jsx(P8,{orientation:t.orientation}),g.jsx(Y8,{orientation:t.orientation})]})})},I8=t=>{const o=pe(),a=ue(),[r,s]=S.useState(!1),c=t.tableHandleMenu||Q8,f=Ae(Fe),d=qe(Fe),p=S.useMemo(()=>!f||!d||!d.block||d.block.type!=="table"?!1:t.orientation==="column"?f.getCellsAtColumnHandle(d.block,d.colIndex).every(({cell:h})=>vv(h)===1):f.getCellsAtRowHandle(d.block,d.rowIndex).every(({cell:h})=>yv(h)===1),[t.orientation,d,f]);return d?g.jsxs(a.Generic.Menu.Root,{onOpenChange:h=>{h?(f.freezeHandles(),t.hideOtherElements(!0)):(f.unfreezeHandles(),t.hideOtherElements(!1),o.focus())},position:"right",children:[g.jsx(a.Generic.Menu.Trigger,{children:g.jsx(a.TableHandle.Root,{className:ht("bn-table-handle",r?"bn-table-handle-dragging":"",p?"":"bn-table-handle-not-draggable"),draggable:p,onDragStart:h=>{s(!0),t.hideOtherElements(!0),t.orientation==="column"?f.colDragStart(h):f.rowDragStart(h)},onDragEnd:()=>{f.dragEnd(),t.hideOtherElements(!1),s(!1)},style:t.orientation==="column"?{transform:"rotate(0.25turn)"}:void 0,children:t.children||g.jsx(Ry,{size:24,"data-test":"tableHandle"})})}),g.jsx(c,{orientation:t.orientation})]}):null},K8=t=>{var o,a;const r=ue(),s=Se(),c=pe(),{block:f,colIndex:d,rowIndex:p}=qe(Fe,{selector:y=>({block:y?.block,colIndex:y?.colIndex,rowIndex:y?.rowIndex})}),h=(y,x)=>{if(f===void 0||d===void 0||p===void 0)return;const C=f.content.rows.map(T=>({...T,cells:T.cells.map(w=>Nr(w))}));x==="text"?C[p].cells[d].props.textColor=y:C[p].cells[d].props.backgroundColor=y,c.updateBlock(f,{type:"table",content:{...f.content,rows:C}}),c.setTextCursorPosition(f)};if(f===void 0||d===void 0||p===void 0)return null;const v=(a=(o=f.content.rows[p])==null?void 0:o.cells)==null?void 0:a[d];return!v||c.settings.tables.cellTextColor===!1&&c.settings.tables.cellBackgroundColor===!1?null:g.jsxs(r.Generic.Menu.Root,{position:"right",sub:!0,children:[g.jsx(r.Generic.Menu.Trigger,{sub:!0,children:g.jsx(r.Generic.Menu.Item,{className:"bn-menu-item",subTrigger:!0,children:t.children||s.drag_handle.colors_menuitem})}),g.jsx(r.Generic.Menu.Dropdown,{sub:!0,className:"bn-menu-dropdown bn-color-picker-dropdown",children:g.jsx(ec,{iconSize:18,text:c.settings.tables.cellTextColor?{color:Ar(v)?v.props.textColor:"default",setColor:y=>h(y,"text")}:void 0,background:c.settings.tables.cellBackgroundColor?{color:Ar(v)?v.props.backgroundColor:"default",setColor:y=>h(y,"background")}:void 0})})]})},F8=()=>{var t,o;const a=ue(),r=Se(),s=pe(),c=Ae(Fe),{block:f,colIndex:d,rowIndex:p}=qe(Fe,{selector:v=>({block:v?.block,colIndex:v?.colIndex,rowIndex:v?.rowIndex})});if(f===void 0||d===void 0||p===void 0)return null;const h=(o=(t=f.content.rows[p])==null?void 0:t.cells)==null?void 0:o[d];return!h||!Ar(h)||yv(h)===1&&vv(h)===1||!s.settings.tables.splitCells?null:g.jsx(a.Generic.Menu.Item,{onClick:()=>{c.splitCell({row:p,col:d})},children:r.table_handle.split_cell_menuitem})},J8=t=>{const o=ue();return g.jsx(o.Generic.Menu.Dropdown,{className:"bn-menu-dropdown bn-table-handle-menu",children:t.children||g.jsxs(g.Fragment,{children:[g.jsx(F8,{}),g.jsx(K8,{})]})})},W8=t=>{const o=ue(),a=pe(),r=Ae(Fe),s=t.tableCellMenu||J8;return!a.settings.tables.splitCells&&!a.settings.tables.cellBackgroundColor&&!a.settings.tables.cellTextColor?null:g.jsxs(o.Generic.Menu.Root,{onOpenChange:c=>{c?(r.freezeHandles(),t.hideOtherElements(!0)):(r.unfreezeHandles(),t.hideOtherElements(!1),a.focus())},position:"right",children:[g.jsx(o.Generic.Menu.Trigger,{children:g.jsx(o.Generic.Menu.Button,{className:"bn-table-cell-handle",children:t.children||g.jsx(x8,{size:12,"data-test":"tableCellHandle"})})}),g.jsx(s,{})]})},e7=t=>{const o=pe(),[a,r]=S.useState(),s=qe(Fe),c=S.useMemo(()=>{const v={};if(s===void 0)return{};const y=gv(s.block.id,o.prosemirrorState.doc);if(!y)return{};const x=y.posBeforeNode+1,C=o.prosemirrorView.domAtPos(x+1).node;if(!(C instanceof Element))return{};if(v.tableReference={element:C},s.rowIndex===void 0||s.colIndex===void 0)return v;const T=o.prosemirrorState.doc.resolve(x+1).posAtIndex(s.rowIndex),w=o.prosemirrorState.doc.resolve(T+1).posAtIndex(s.colIndex),M=o.prosemirrorView.domAtPos(w+1).node;return M instanceof Element?(v.cellReference={element:M},v.rowReference={element:C,getBoundingClientRect:()=>{const R=C.getBoundingClientRect(),_=M.getBoundingClientRect();return new DOMRect(R.x,s.draggingState&&s.draggingState.draggedCellOrientation==="row"?s.draggingState.mousePos-_.height/2:_.y,R.width,_.height)}},v.columnReference={element:C,getBoundingClientRect:()=>{const R=C.getBoundingClientRect(),_=M.getBoundingClientRect();return new DOMRect(s.draggingState&&s.draggingState.draggedCellOrientation==="col"?s.draggingState.mousePos-_.width/2:_.x,R.y,_.width,R.height)}},v):{}},[o,s]),f=S.useMemo(()=>s!==void 0?{rowTableHandle:{useFloatingOptions:{open:s.show&&s.rowIndex!==void 0&&(!a||a==="rowTableHandle"),placement:"left",middleware:[mn(-10)]},elementProps:{style:{zIndex:10}}},columnTableHandle:{useFloatingOptions:{open:s.show&&s.colIndex!==void 0&&(!a||a==="columnTableHandle"),placement:"top",middleware:[mn(-12)]},elementProps:{style:{zIndex:10}}},tableCellHandle:{useFloatingOptions:{open:s.show&&s.rowIndex!==void 0&&s.colIndex!==void 0&&(!a||a==="tableCellHandle"),placement:"top-end",middleware:[mn({mainAxis:-15,crossAxis:-1})]},elementProps:{style:{zIndex:10}}},extendRowsButton:{useFloatingOptions:{open:s.show&&s.showAddOrRemoveRowsButton&&(!a||a==="extendRowsButton"),placement:"bottom",middleware:[Dr({apply({rects:v,elements:y}){Object.assign(y.floating.style,{width:`${v.reference.width}px`})}})]},elementProps:{style:{zIndex:10}}},extendColumnsButton:{useFloatingOptions:{open:s.show&&s.showAddOrRemoveColumnsButton&&(!a||a==="extendColumnsButton"),placement:"right",middleware:[Dr({apply({rects:v,elements:y}){Object.assign(y.floating.style,{height:`${v.reference.height}px`})}})]},elementProps:{style:{zIndex:10}}}}:void 0,[a,s]);if(!s)return null;const d=t.tableHandle||I8,p=t.extendButton||Z8,h=t.tableCellHandle||W8;return g.jsxs(g.Fragment,{children:[g.jsx(Bn,{reference:c?.rowReference,...f?.rowTableHandle,children:s.show&&s.rowIndex!==void 0&&(!a||a==="rowTableHandle")&&g.jsx(d,{orientation:"row",hideOtherElements:v=>r(v?"rowTableHandle":void 0)})}),g.jsx(Bn,{reference:c?.columnReference,...f?.columnTableHandle,children:s.show&&s.colIndex!==void 0&&(!a||a==="columnTableHandle")&&g.jsx(d,{orientation:"column",hideOtherElements:v=>r(v?"columnTableHandle":void 0)})}),g.jsx(Bn,{reference:c?.cellReference,...f?.tableCellHandle,children:s.show&&s.rowIndex!==void 0&&s.colIndex!==void 0&&(!a||a==="tableCellHandle")&&g.jsx(h,{hideOtherElements:v=>r(v?"tableCellHandle":void 0)})}),g.jsx(Bn,{reference:c?.tableReference,...f?.extendRowsButton,children:s.show&&s.showAddOrRemoveRowsButton&&(!a||a==="extendRowsButton")&&g.jsx(p,{orientation:"addOrRemoveRows",hideOtherElements:v=>r(v?"extendRowsButton":void 0)})}),g.jsx(Bn,{reference:c?.tableReference,...f?.extendColumnsButton,children:s.show&&s.showAddOrRemoveColumnsButton&&(!a||a==="extendColumnsButton")&&g.jsx(p,{orientation:"addOrRemoveColumns",hideOtherElements:v=>r(v?"extendColumnsButton":void 0)})})]})},t7=S.lazy(()=>Promise.resolve().then(()=>T7)),n7=S.lazy(()=>Promise.resolve().then(()=>R7));function o7(t){const o=pe();if(!o)throw new Error("BlockNoteDefaultUI must be used within a BlockNoteContext.Provider");return g.jsxs(g.Fragment,{children:[o.getExtension(Or)&&t.formattingToolbar!==!1&&g.jsx(My,{}),o.getExtension(Xs)&&t.linkToolbar!==!1&&g.jsx(v8,{}),o.getExtension(po)&&t.slashMenu!==!1&&g.jsx($8,{triggerCharacter:"/"}),o.getExtension(po)&&t.emojiPicker!==!1&&g.jsx(D8,{triggerCharacter:":",columns:10,minQueryLength:2}),o.getExtension(Gn)&&t.sideMenu!==!1&&g.jsx(j8,{}),o.getExtension(Ed)&&t.filePanel!==!1&&g.jsx(I5,{}),o.getExtension(Fe)&&t.tableHandles!==!1&&g.jsx(e7,{}),o.getExtension(gn)&&t.comments!==!1&&g.jsxs(S.Suspense,{children:[g.jsx(t7,{}),g.jsx(n7,{})]})]})}function l7(t,o){const a=Mn();o||(o=a?.editor),S.useEffect(()=>{if(!o)throw new Error("'editor' is required, either from BlockNoteContext or as a function argument");return o.onChange(t)},[t,o])}function a7(t,o,a){const r=Mn();o||(o=r?.editor),S.useEffect(()=>{if(!o)throw new Error("'editor' is required, either from BlockNoteContext or as a function argument");return o.onSelectionChange(t,a)},[t,o,a])}const Oy=()=>{const t=S.useMemo(()=>{var f;return(f=window.matchMedia)==null?void 0:f.call(window,"(prefers-color-scheme: dark)")},[]),o=S.useMemo(()=>{var f;return(f=window.matchMedia)==null?void 0:f.call(window,"(prefers-color-scheme: light)")},[]),a=t?.matches,r=o?.matches,[s,c]=S.useState(a?"dark":r?"light":"no-preference");return S.useEffect(()=>{c(a?"dark":r?"light":"no-preference")},[a,r]),S.useEffect(()=>{if(typeof t?.addEventListener=="function"){const f=({matches:p})=>p&&c("dark"),d=({matches:p})=>p&&c("light");return t?.addEventListener("change",f),o?.addEventListener("change",d),()=>{t?.removeEventListener("change",f),o?.removeEventListener("change",d)}}else{const f=()=>c(t.matches?"dark":o.matches?"light":"no-preference");return t?.addEventListener("change",f),o?.addEventListener("change",f),()=>{t?.removeEventListener("change",f),o?.removeEventListener("change",f)}}},[t,o]),s},Ny=S.createContext(void 0);function r7(){return S.useContext(Ny)}function i7(){const t=new Set;let o={};return{subscribe(a){return t.add(a),()=>{t.delete(a)}},getSnapshot(){return o},getServerSnapshot(){return o},setRenderer(a,r){o={...o,[a]:Zn.createPortal(r.reactElement,r.element,a)},t.forEach(s=>s())},removeRenderer(a){const r={...o};delete r[a],o=r,t.forEach(s=>s())}}}const s7=({contentComponent:t})=>{const o=S.useSyncExternalStore(t.subscribe,t.getSnapshot,t.getServerSnapshot);return g.jsx(g.Fragment,{children:Object.values(o)})},c7=S.forwardRef((t,o)=>{const[a,r]=S.useState();return S.useImperativeHandle(o,()=>(s,c)=>{Zn.flushSync(()=>{r({node:s,container:c})}),r(void 0)},[]),g.jsx(g.Fragment,{children:a&&Zn.createPortal(a.node,a.container)})}),$0=()=>{};function u7(t,o){const{editor:a,className:r,theme:s,children:c,editable:f,onSelectionChange:d,onChange:p,formattingToolbar:h,linkToolbar:v,slashMenu:y,emojiPicker:x,sideMenu:C,filePanel:T,tableHandles:w,comments:M,autoFocus:R,renderEditor:_=!0,...N}=t,[A,H]=S.useState(),L=Mn(),Z=Oy(),I=L?.colorSchemePreference||Z,J=s||(I==="dark"?"dark":"light");l7(p||$0,a),a7(d||$0,a);const P=S.useCallback(te=>{a.elementRenderer=te},[a]),ee=S.useMemo(()=>({...L,editor:a,setContentEditableProps:H,colorSchemePreference:J}),[L,a,J]),oe=S.useMemo(()=>({editorProps:{autoFocus:R,contentEditableProps:A,editable:f},defaultUIProps:{formattingToolbar:h,linkToolbar:v,slashMenu:y,emojiPicker:x,sideMenu:C,filePanel:T,tableHandles:w,comments:M}}),[R,A,f,h,v,y,x,C,T,w,M]);return g.jsx(ry.Provider,{value:ee,children:g.jsxs(Ny.Provider,{value:oe,children:[g.jsx(c7,{ref:P}),g.jsx(f7,{className:r,renderEditor:_,editorColorScheme:J,ref:o,...N,children:c})]})})}const f7=Ve.forwardRef(({className:t,renderEditor:o,editorColorScheme:a,children:r,...s},c)=>g.jsx("div",{className:ht("bn-container",a,t),"data-color-scheme":a,...s,ref:c,children:o?g.jsx(m7,{children:r}):r})),d7=Ve.forwardRef(u7),m7=t=>{const o=r7(),a=pe(),r=S.useMemo(()=>i7(),[]),s=S.useCallback(c=>{a.isEditable=o.editorProps.editable!==!1,a._tiptapEditor.contentComponent=r,c?a.mount(c):a.unmount()},[o.editorProps.editable,a,r]);return g.jsxs(g.Fragment,{children:[g.jsx(s7,{contentComponent:r}),g.jsx(p7,{...o.editorProps,...t,mount:s}),g.jsx(o7,{...o.defaultUIProps}),t.children]})},p7=t=>{const{autoFocus:o,mount:a,contentEditableProps:r}=t;return g.jsx("div",{"aria-autocomplete":"list","aria-haspopup":"listbox","data-bn-autofocus":o,ref:a,...r})};function _r(t,o){let a;const r=document.createElement("div");let s;if(o!=null&&o.elementRenderer)o.elementRenderer(t(p=>a=p||void 0),r);else{if(!(o!=null&&o.headless))throw new Error("elementRenderer not available, expected headless editor");s=Sv.createRoot(r),Zn.flushSync(()=>{s.render(t(p=>a=p||void 0))})}if(!r.childElementCount)return console.warn("ReactInlineContentSpec: renderHTML() failed"),{dom:document.createElement("span")};a?.setAttribute("data-tmp-find","true");const c=r.cloneNode(!0),f=c.firstElementChild,d=c.querySelector("[data-tmp-find]");return d?.removeAttribute("data-tmp-find"),s?.unmount(),{dom:f,contentDOM:d||void 0}}function ud(t){var o;return g.jsx(ny,{onDragOver:a=>a.preventDefault(),...Object.fromEntries(Object.entries(t.domAttributes||{}).filter(([a])=>a!=="class")),className:ht("bn-block-content",((o=t.domAttributes)==null?void 0:o.class)||""),"data-content-type":t.blockType,...Object.fromEntries(Object.entries(t.blockProps).filter(([a,r])=>{const s=t.propSchema[a];return r!==s.default}).map(([a,r])=>[bv(a),r])),"data-file-block":t.isFileBlock===!0||void 0,children:t.children})}function rE(t,o,a){return(r={})=>{const s=typeof t=="function"?t(r):t,c=typeof o=="function"?o(r):o,f=a?typeof a=="function"?a(r):a:void 0;return{config:s,implementation:{...c,toExternalHTML(d,p,h){const v=c.toExternalHTML||c.render;return _r(y=>g.jsx(ud,{blockType:d.type,blockProps:d.props,propSchema:s.propSchema,domAttributes:this.blockContentDOMAttributes,children:g.jsx(v,{block:d,editor:p,contentRef:x=>{y(x),x&&(x.className=ht("bn-inline-content",x.className))},context:h})}),p)},render(d,p){if(this.renderType==="nodeView")return oy(h=>{var v;const y=MS(h.getPos,p,h.editor,s.type),x=Pd().nodeViewContentRef;if(!x)throw new Error("nodeViewContentRef is not set");const C=c.render;return g.jsx(ud,{blockType:y.type,blockProps:y.props,propSchema:s.propSchema,isFileBlock:!!((v=c.meta)!=null&&v.fileBlockAccept),domAttributes:this.blockContentDOMAttributes,children:g.jsx(C,{block:y,editor:p,contentRef:T=>{x(T),T&&(T.className=ht("bn-inline-content",T.className),T.dataset.nodeViewContent="")}})})},{className:"bn-react-node-view-renderer"})(this.props);{const h=c.render;return _r(v=>g.jsx(ud,{blockType:d.type,blockProps:d.props,propSchema:s.propSchema,domAttributes:this.blockContentDOMAttributes,children:g.jsx(h,{block:d,editor:p,contentRef:y=>{v(y),y&&(y.className=ht("bn-inline-content",y.className))}})}),p)}}},extensions:f}}}const Fd=(t={},o=[])=>S.useMemo(()=>{const a=pS.create(t);return window&&(window.ProseMirror=a._tiptapEditor),a},o),Jd=t=>{const[o,a]=S.useState(!1),r=gt({editor:t.editor,selector:({editor:d})=>d.isEmpty}),s=ue(),c=S.useCallback(()=>{a(!0)},[]),f=S.useCallback(()=>{a(!1)},[]);return S.useEffect(()=>{t.editable&&t.autoFocus&&t.editor.focus()},[t.autoFocus,t.editable,t.editor]),g.jsxs(g.Fragment,{children:[g.jsx(s.Comments.Editor,{autoFocus:t.autoFocus,className:"bn-comment-editor",editor:t.editor,onFocus:c,onBlur:f,editable:t.editable}),t.actions&&g.jsx("div",{className:"bn-comment-actions-wrapper",children:g.jsx(t.actions,{isFocused:o,isEmpty:r})})]})};let fd;async function h7(){return fd||(fd=(async()=>{const[t,o]=await Promise.all([Os(()=>import("./module-RjUF93sV.js"),[]),Os(()=>import("./native-48B9X9Wg.js"),[])]),a="default"in t?t.default:t,r="default"in o?o.default:o;return await a.init({data:r}),{emojiMart:a,emojiData:r}})(),fd)}function g7(t){const o=S.useRef(null),a=S.useRef(null);return a.current&&a.current.update(t),S.useEffect(()=>((async()=>{const{emojiMart:r}=await h7();a.current=new r.Picker({...t,ref:o})})(),()=>{a.current=null}),[]),Ve.createElement("div",{ref:o})}const G0=t=>{var o;const[a,r]=S.useState(!1),s=ue(),c=pe(),f=Mn();return g.jsxs(s.Generic.Popover.Root,{open:a,children:[g.jsx(s.Generic.Popover.Trigger,{children:g.jsx("div",{onClick:d=>{var p;d.preventDefault(),d.stopPropagation(),r(!a),(p=t.onOpenChange)==null||p.call(t,!a)},style:{display:"flex",justifyContent:"center",alignItems:"center"},children:t.children})}),((o=c.domElement)==null?void 0:o.parentElement)&&Zn.createPortal(g.jsx(s.Generic.Popover.Content,{className:"bn-emoji-picker-popover",variant:"panel-popover",children:g.jsx(g7,{perLine:7,onClickOutside:()=>{var d;r(!1),(d=t.onOpenChange)==null||d.call(t,!1)},onEmojiSelect:d=>{var p;t.onEmojiSelect(d),r(!1),(p=t.onOpenChange)==null||p.call(t,!1)},theme:f?.colorSchemePreference})}),c.domElement.parentElement)]})};function v7(t){return Wd([t]).get(t)}function Wd(t){const o=Ae(gn).userStore,a=S.useCallback(()=>{const c=new Map;for(const f of t){const d=o.getUser(f);d&&c.set(f,d)}return c},[o,t]),r=S.useMemo(()=>({current:a()}),[a]),s=S.useCallback(c=>{const f=o.subscribe(d=>{r.current=a(),c()});return o.loadUsers(t),f},[o,a,t,r]);return S.useSyncExternalStore(s,()=>r.current)}const y7=t=>{const o=ue(),a=Se(),r=Ae(gn),s=t.comment.reactions.find(p=>p.emoji===t.emoji);if(!s)throw new Error("Trying to render reaction badge for non-existing reaction");const[c,f]=S.useState([]),d=Wd(c);return g.jsx(o.Generic.Badge.Root,{className:ht("bn-badge","bn-comment-reaction"),text:s.userIds.length.toString(),icon:s.emoji,isSelected:r.threadStore.auth.canDeleteReaction(t.comment,s.emoji),onClick:()=>t.onReactionSelect(s.emoji),onMouseEnter:()=>f(s.userIds),mainTooltip:a.comments.reactions.reacted_by,secondaryTooltip:`${Array.from(d.values()).map(p=>p.username).join(`
|
|
50
|
-
`)}`},s.emoji)},{textColor:iE,backgroundColor:sE,...b7}=TS,em=wS.create({blockSpecs:{paragraph:ES()},styleSpecs:b7}),x7=({comment:t,thread:o,showResolveButton:a})=>{const r=Ae(gn),s=Se(),c=Fd({initialContent:t.body,trailingBlock:!1,dictionary:{...s,placeholders:{emptyDocument:s.placeholders.edit_comment}},schema:r.commentEditorSchema||em}),f=ue(),[d,p]=S.useState(!1),[h,v]=S.useState(!1),y=r.threadStore,x=S.useCallback(()=>{p(!0)},[]),C=S.useCallback(()=>{c.replaceBlocks(c.document,t.body),p(!1)},[c,t.body]),T=S.useCallback(async P=>{await y.updateComment({commentId:t.id,comment:{body:c.document},threadId:o.id}),p(!1)},[t,o.id,c,y]),w=S.useCallback(async()=>{await y.deleteComment({commentId:t.id,threadId:o.id})},[t,o.id,y]),M=S.useCallback(async P=>{y.auth.canAddReaction(t,P)?await y.addReaction({threadId:o.id,commentId:t.id,emoji:P}):y.auth.canDeleteReaction(t,P)&&await y.deleteReaction({threadId:o.id,commentId:t.id,emoji:P})},[y,t,o.id]),R=S.useCallback(async()=>{await y.resolveThread({threadId:o.id})},[o.id,y]),_=S.useCallback(async()=>{await y.unresolveThread({threadId:o.id})},[o.id,y]),N=v7(t.userId);if(!t.body)return null;let A;const H=y.auth.canAddReaction(t),L=y.auth.canDeleteComment(t),Z=y.auth.canUpdateComment(t),I=a&&(o.resolved?y.auth.canUnresolveThread(o):y.auth.canResolveThread(o));d||(A=g.jsxs(f.Generic.Toolbar.Root,{className:ht("bn-action-toolbar","bn-comment-actions"),variant:"action-toolbar",children:[H&&g.jsx(G0,{onEmojiSelect:P=>M(P.native),onOpenChange:v,children:g.jsx(f.Generic.Toolbar.Button,{mainTooltip:s.comments.actions.add_reaction,variant:"compact",children:g.jsx(V0,{size:16})},"add-reaction")}),I&&(o.resolved?g.jsx(f.Generic.Toolbar.Button,{mainTooltip:"Re-open",variant:"compact",onClick:_,children:g.jsx(d3,{size:16})},"reopen"):g.jsx(f.Generic.Toolbar.Button,{mainTooltip:s.comments.actions.resolve,variant:"compact",onClick:R,children:g.jsx(V3,{size:16})},"resolve")),(L||Z)&&g.jsxs(f.Generic.Menu.Root,{position:"bottom-start",children:[g.jsx(f.Generic.Menu.Trigger,{children:g.jsx(f.Generic.Toolbar.Button,{mainTooltip:s.comments.actions.more_actions,variant:"compact",children:g.jsx(G3,{size:16})},"more-actions")}),g.jsxs(f.Generic.Menu.Dropdown,{className:"bn-menu-dropdown",children:[Z&&g.jsx(f.Generic.Menu.Item,{icon:g.jsx(m3,{}),onClick:x,children:s.comments.actions.edit_comment},"edit-comment"),L&&g.jsx(f.Generic.Menu.Item,{icon:g.jsx(B3,{}),onClick:w,children:s.comments.actions.delete_comment},"delete-comment")]})]})]}));const J=t.createdAt.toLocaleDateString(void 0,{month:"short",day:"numeric"});if(!t.body)throw new Error("soft deletes are not yet supported");return g.jsx(f.Comments.Comment,{authorInfo:N??"loading",timeString:J,edited:t.updatedAt.getTime()!==t.createdAt.getTime(),showActions:"hover",actions:A,className:"bn-thread-comment",emojiPickerOpen:h,children:g.jsx(Jd,{autoFocus:d,editor:c,editable:d,actions:t.reactions.length>0||d?({isEmpty:P})=>g.jsxs(g.Fragment,{children:[t.reactions.length>0&&!d&&g.jsxs(f.Generic.Badge.Group,{className:ht("bn-badge-group","bn-comment-reactions"),children:[t.reactions.map(ee=>g.jsx(y7,{comment:t,emoji:ee.emoji,onReactionSelect:M},ee.emoji)),H&&g.jsx(G0,{onEmojiSelect:ee=>M(ee.native),onOpenChange:v,children:g.jsx(f.Generic.Badge.Root,{className:ht("bn-badge","bn-comment-add-reaction"),text:"+",icon:g.jsx(V0,{size:16}),mainTooltip:s.comments.actions.add_reaction})})]}),d&&g.jsxs(f.Generic.Toolbar.Root,{variant:"action-toolbar",className:ht("bn-action-toolbar","bn-comment-actions"),children:[g.jsx(f.Generic.Toolbar.Button,{mainTooltip:s.comments.save_button_text,variant:"compact",onClick:T,isDisabled:P,children:s.comments.save_button_text}),g.jsx(f.Generic.Toolbar.Button,{className:"bn-button",mainTooltip:s.comments.cancel_button_text,variant:"compact",onClick:C,children:s.comments.cancel_button_text})]})]}):void 0})})},S7=({thread:t,maxCommentsBeforeCollapse:o})=>{const a=ue(),r=Se(),s=Wd(t.resolvedBy?[t.resolvedBy]:[]),c=t.comments.map((f,d)=>g.jsx(x7,{thread:t,comment:f,showResolveButton:d===0},f.id+JSON.stringify(f.body||"{}")));if(t.resolved&&t.resolvedUpdatedAt&&t.resolvedBy){if(!s.get(t.resolvedBy))throw new Error(`User ${t.resolvedBy} resolved thread ${t.id}, but their data could not be found.`);const f=t.comments.findLastIndex(d=>t.resolvedUpdatedAt.getTime()>d.createdAt.getTime())+1;c.splice(f,0,g.jsx(a.Comments.Comment,{className:"bn-thread-comment",authorInfo:t.resolvedBy&&s.get(t.resolvedBy)||"loading",timeString:t.resolvedUpdatedAt.toLocaleDateString(void 0,{month:"short",day:"numeric"}),edited:!1,showActions:!1,children:g.jsx("div",{className:"bn-resolved-text",children:r.comments.sidebar.marked_as_resolved})},"resolved-comment"))}return o&&c.length>o&&c.splice(1,c.length-2,g.jsx(a.Comments.ExpandSectionsPrompt,{className:"bn-thread-expand-prompt",children:r.comments.sidebar.more_replies(t.comments.length-2)},"expand-prompt")),c};function C7(){const t=Ae(gn),o=ue(),a=Se(),r=Fd({trailingBlock:!1,dictionary:{...a,placeholders:{emptyDocument:a.placeholders.new_comment}},schema:t.commentEditorSchema||em});return g.jsx(o.Comments.Card,{className:"bn-thread",children:g.jsx(Jd,{autoFocus:!0,editable:!0,editor:r,actions:({isEmpty:s})=>g.jsx(o.Generic.Toolbar.Root,{className:ht("bn-action-toolbar","bn-comment-actions"),variant:"action-toolbar",children:g.jsx(o.Generic.Toolbar.Button,{className:"bn-button",mainTooltip:"Save",variant:"compact",isDisabled:s,onClick:async()=>{await t.createThread({initialComment:{body:r.document}}),t.stopPendingComment()},children:"Save"})})})})}function w7(t){const o=pe(),a=Ae(gn),r=qe(gn,{editor:o,selector:d=>d.pendingComment}),s=gt({editor:o,selector:({editor:d})=>r?{from:d.prosemirrorState.selection.from,to:d.prosemirrorState.selection.to}:void 0}),c=S.useMemo(()=>{var d,p;return{...t.floatingUIOptions,useFloatingOptions:{open:!!r,onOpenChange:h=>{h||(a.stopPendingComment(),o.focus())},placement:"bottom",middleware:[mn(10),Io(),yo()],...(d=t.floatingUIOptions)==null?void 0:d.useFloatingOptions},elementProps:{style:{zIndex:60},...(p=t.floatingUIOptions)==null?void 0:p.elementProps}}},[a,o,r,t.floatingUIOptions]),f=t.floatingComposer||C7;return g.jsx(Id,{position:s,...c,children:g.jsx(f,{})})}const T7=Object.freeze(Object.defineProperty({__proto__:null,default:w7},Symbol.toStringTag,{value:"Module"})),Ay=({thread:t,selected:o,referenceText:a,maxCommentsBeforeCollapse:r,onFocus:s,onBlur:c,tabIndex:f})=>{const d=ue(),p=Se(),h=Ae(gn),v=Fd({trailingBlock:!1,dictionary:{...p,placeholders:{emptyDocument:p.placeholders.comment_reply}},schema:h.commentEditorSchema||em}),y=S.useCallback(async()=>{await h.threadStore.addComment({comment:{body:v.document},threadId:t.id}),v.removeBlocks(v.document)},[h,v,t.id]);return g.jsxs(d.Comments.Card,{className:"bn-thread",headerText:a,onFocus:s,onBlur:c,selected:o,tabIndex:f,children:[g.jsx(d.Comments.CardSection,{className:"bn-thread-comments",children:g.jsx(S7,{thread:t,maxCommentsBeforeCollapse:o?void 0:r||5})}),o&&g.jsx(d.Comments.CardSection,{className:"bn-thread-composer",children:g.jsx(Jd,{autoFocus:!1,editable:!0,editor:v,actions:({isEmpty:x})=>x?null:g.jsx(d.Generic.Toolbar.Root,{variant:"action-toolbar",className:ht("bn-action-toolbar","bn-comment-actions"),children:g.jsx(d.Generic.Toolbar.Button,{mainTooltip:p.comments.save_button_text,variant:"compact",isDisabled:x,onClick:y,children:p.comments.save_button_text})})})})]})};function E7(){const t=Ae(gn).threadStore,o=S.useRef(void 0);o.current||(o.current=t.getThreads());const a=S.useCallback(r=>t.subscribe(s=>{o.current=s,r()}),[t]);return S.useSyncExternalStore(a,()=>o.current)}function M7(t){const o=pe(),a=Ae(gn),r=qe(gn,{editor:o,selector:p=>p.selectedThreadId?{id:p.selectedThreadId,position:p.threadPositions.get(p.selectedThreadId)}:void 0}),s=E7(),c=S.useMemo(()=>r?s.get(r.id):void 0,[r,s]),f=S.useMemo(()=>{var p,h;return{...t.floatingUIOptions,useFloatingOptions:{open:!!r,onOpenChange:(v,y,x)=>{x==="escape-key"&&o.focus(),v||a.selectThread(void 0)},placement:"bottom",middleware:[mn(10),Io(),yo()],...(p=t.floatingUIOptions)==null?void 0:p.useFloatingOptions},elementProps:{style:{zIndex:30},...(h=t.floatingUIOptions)==null?void 0:h.elementProps}}},[a,o,t.floatingUIOptions,r]),d=t.floatingThread||Ay;return g.jsx(Id,{position:r?.position,...f,children:c&&g.jsx(d,{thread:c,selected:!0})})}const R7=Object.freeze(Object.defineProperty({__proto__:null,default:M7},Symbol.toStringTag,{value:"Module"}));Ve.memo(({thread:t,selectedThreadId:o,maxCommentsBeforeCollapse:a,referenceText:r})=>{const s=Ae(gn),c=S.useCallback(d=>{d.target.closest(".bn-action-toolbar")||s.selectThread(t.id)},[s,t.id]),f=S.useCallback(d=>{if(!d.relatedTarget||d.relatedTarget.closest(".bn-action-toolbar"))return;const p=d.target instanceof Node?d.target:null,h=d.relatedTarget instanceof Node?d.relatedTarget.closest(".bn-thread"):null;(!p||!h||!h.contains(p))&&s.selectThread(void 0)},[s]);return g.jsx(Ay,{thread:t,selected:t.id===o,referenceText:r,maxCommentsBeforeCollapse:a,onFocus:c,onBlur:f,tabIndex:0})});function dd(t){return g.jsx(ny,{as:"span",className:"bn-inline-content-section","data-inline-content-type":t.inlineContentType,...Object.fromEntries(Object.entries(t.inlineContentProps).filter(([o,a])=>{const r=t.propSchema[o];return a!==r.default}).map(([o,a])=>[bv(o),a])),children:t.children})}function cE(t,o){var a;const r=RS.create({name:t.type,inline:!0,group:"inline",selectable:t.content==="styled",atom:t.content==="none",draggable:(a=o.meta)==null?void 0:a.draggable,content:t.content==="styled"?"inline*":"",addAttributes(){return AS(t.propSchema)},addKeyboardShortcuts(){return NS(t)},parseHTML(){return OS(t,o.parse)},renderHTML({node:s}){const c=this.options.editor,f=Lg(s,c.schema.inlineContentSchema,c.schema.styleSchema),d=o.toExternalHTML||o.render,p=_r(h=>g.jsx(d,{contentRef:v=>{h(v),v&&(v.dataset.editable="")},inlineContent:f,updateInlineContent:()=>{},editor:c}),c);return _S(p,t.type,s.attrs,t.propSchema)},addNodeView(){const s=this.options.editor;return c=>oy(f=>{const d=Pd().nodeViewContentRef;if(!d)throw new Error("nodeViewContentRef is not set");const p=o.render;return g.jsx(dd,{inlineContentProps:f.node.attrs,inlineContentType:t.type,propSchema:t.propSchema,children:g.jsx(p,{contentRef:h=>{d(h),h&&(h.dataset.editable="")},editor:s,inlineContent:Lg(f.node,s.schema.inlineContentSchema,s.schema.styleSchema),updateInlineContent:h=>{const v=jS([h],s.pmSchema),y=f.getPos();y!==void 0&&s.transact(x=>x.replaceWith(y,y+f.node.nodeSize,v))}})})},{className:"bn-ic-react-node-view-renderer",as:"span"})(c)}});return DS(t,{...o,node:r,render(s,c,f){const d=o.render;return _r(p=>g.jsx(dd,{inlineContentProps:s.props,inlineContentType:t.type,propSchema:t.propSchema,children:g.jsx(d,{contentRef:h=>{p(h),h&&(h.dataset.editable="")},editor:f,inlineContent:s,updateInlineContent:c})}),f)},toExternalHTML(s,c){const f=o.toExternalHTML||o.render;return _r(d=>g.jsx(dd,{inlineContentProps:s.props,inlineContentType:t.type,propSchema:t.propSchema,children:g.jsx(f,{contentRef:p=>{d(p),p&&(p.dataset.editable="")},editor:c,inlineContent:s,updateInlineContent:()=>{}})}),c)}})}function Dy(t,o){const a=t.getBoundingClientRect(),r=o.getBoundingClientRect(),s=a.top<r.top,c=a.bottom>r.bottom;return s&&c?"both":s?"top":c?"bottom":"none"}function j7(t){return o=>{t.forEach(a=>{typeof a=="function"?a(o):a!=null&&(a.current=o)})}}function $n(t){return Object.keys(t)}function md(t){return t&&typeof t=="object"&&!Array.isArray(t)}function tm(t,o){const a={...t},r=o;return md(t)&&md(o)&&Object.keys(o).forEach(s=>{md(r[s])&&s in t?a[s]=tm(a[s],r[s]):a[s]=r[s]}),a}function _7(t){return t.replace(/[A-Z]/g,o=>`-${o.toLowerCase()}`)}function O7(t){return typeof t!="string"||!t.includes("var(--mantine-scale)")?t:t.match(/^calc\((.*?)\)$/)?.[1].split("*")[0].trim()}function N7(t){const o=O7(t);return typeof o=="number"?o:typeof o=="string"?o.includes("calc")||o.includes("var")?o:o.includes("px")?Number(o.replace("px","")):o.includes("rem")?Number(o.replace("rem",""))*16:o.includes("em")?Number(o.replace("em",""))*16:Number(o):NaN}function Z0(t){return t==="0rem"?"0rem":`calc(${t} * var(--mantine-scale))`}function Hy(t,{shouldScale:o=!1}={}){function a(r){if(r===0||r==="0")return`0${t}`;if(typeof r=="number"){const s=`${r/16}${t}`;return o?Z0(s):s}if(typeof r=="string"){if(r===""||r.startsWith("calc(")||r.startsWith("clamp(")||r.includes("rgba("))return r;if(r.includes(","))return r.split(",").map(c=>a(c)).join(",");if(r.includes(" "))return r.split(" ").map(c=>a(c)).join(" ");const s=r.replace("px","");if(!Number.isNaN(Number(s))){const c=`${Number(s)/16}${t}`;return o?Z0(c):c}}return r}return a}const F=Hy("rem",{shouldScale:!0}),q0=Hy("em");function tc(t){return Object.keys(t).reduce((o,a)=>(t[a]!==void 0&&(o[a]=t[a]),o),{})}function zy(t){if(typeof t=="number")return!0;if(typeof t=="string"){if(t.startsWith("calc(")||t.startsWith("var(")||t.includes(" ")&&t.trim()!=="")return!0;const o=/^[+-]?[0-9]+(\.[0-9]+)?(px|em|rem|ex|ch|lh|rlh|vw|vh|vmin|vmax|vb|vi|svw|svh|lvw|lvh|dvw|dvh|cm|mm|in|pt|pc|q|cqw|cqh|cqi|cqb|cqmin|cqmax|%)?$/;return t.trim().split(/\s+/).every(r=>o.test(r))}return!1}function Ly(t){return Array.isArray(t)||t===null?!1:typeof t=="object"?t.type!==S.Fragment:!1}function nc(t){const o=S.createContext(null);return[({children:s,value:c})=>g.jsx(o.Provider,{value:c,children:s}),()=>{const s=S.useContext(o);if(s===null)throw new Error(t);return s}]}function oc(t=null){const o=S.createContext(t);return[({children:s,value:c})=>g.jsx(o.Provider,{value:c,children:s}),()=>S.useContext(o)]}function Y0(t,o){return a=>{if(typeof a!="string"||a.trim().length===0)throw new Error(o);return`${t}-${a}`}}function Ls(t,o){let a=t;for(;(a=a.parentElement)&&!a.matches(o););return a}function A7(t,o,a){for(let r=t-1;r>=0;r-=1)if(!o[r].disabled)return r;if(a){for(let r=o.length-1;r>-1;r-=1)if(!o[r].disabled)return r}return t}function D7(t,o,a){for(let r=t+1;r<o.length;r+=1)if(!o[r].disabled)return r;if(a){for(let r=0;r<o.length;r+=1)if(!o[r].disabled)return r}return t}function H7(t,o,a){return Ls(t,a)===Ls(o,a)}function nm({parentSelector:t,siblingSelector:o,onKeyDown:a,loop:r=!0,activateOnFocus:s=!1,dir:c="rtl",orientation:f}){return d=>{a?.(d);const p=Array.from(Ls(d.currentTarget,t)?.querySelectorAll(o)||[]).filter(T=>H7(d.currentTarget,T,t)),h=p.findIndex(T=>d.currentTarget===T),v=D7(h,p,r),y=A7(h,p,r),x=c==="rtl"?y:v,C=c==="rtl"?v:y;switch(d.key){case"ArrowRight":{f==="horizontal"&&(d.stopPropagation(),d.preventDefault(),p[x].focus(),s&&p[x].click());break}case"ArrowLeft":{f==="horizontal"&&(d.stopPropagation(),d.preventDefault(),p[C].focus(),s&&p[C].click());break}case"ArrowUp":{f==="vertical"&&(d.stopPropagation(),d.preventDefault(),p[y].focus(),s&&p[y].click());break}case"ArrowDown":{f==="vertical"&&(d.stopPropagation(),d.preventDefault(),p[v].focus(),s&&p[v].click());break}case"Home":{d.stopPropagation(),d.preventDefault(),!p[0].disabled&&p[0].focus();break}case"End":{d.stopPropagation(),d.preventDefault();const T=p.length-1;!p[T].disabled&&p[T].focus();break}}}}const z7={app:100,modal:200,popover:300,overlay:400,max:9999};function Br(t){return z7[t]}const L7=()=>{};function V7(t,o={active:!0}){return typeof t!="function"||!o.active?o.onKeyDown||L7:a=>{a.key==="Escape"&&(t(a),o.onTrigger?.())}}function Xe(t,o="size",a=!0){if(t!==void 0)return zy(t)?a?F(t):t:`var(--${o}-${t})`}function Ur(t){return Xe(t,"mantine-spacing")}function Mt(t){return t===void 0?"var(--mantine-radius-default)":Xe(t,"mantine-radius")}function $t(t){return Xe(t,"mantine-font-size")}function k7(t){return Xe(t,"mantine-line-height",!1)}function Vy(t){if(t)return Xe(t,"mantine-shadow",!1)}function Bt(t,o){return a=>{t?.(a),o?.(a)}}function B7(t,o,a){return a?Array.from(Ls(a,o)?.querySelectorAll(t)||[]).findIndex(r=>r===a):null}function U7(t="mantine-"){return`${t}${Math.random().toString(36).slice(2,11)}`}function X0(t){const o=S.useRef(t);return S.useEffect(()=>{o.current=t}),S.useMemo(()=>((...a)=>o.current?.(...a)),[])}const $7=["mousedown","touchstart"];function G7(t,o,a){const r=S.useRef(null),s=o||$7;return S.useEffect(()=>{const c=f=>{const{target:d}=f??{};if(Array.isArray(a)){const p=!document.body.contains(d)&&d?.tagName!=="HTML";a.every(v=>!!v&&!f.composedPath().includes(v))&&!p&&t(f)}else r.current&&!r.current.contains(d)&&t(f)};return s.forEach(f=>document.addEventListener(f,c)),()=>{s.forEach(f=>document.removeEventListener(f,c))}},[r,t,a]),r}function Z7(t,o){try{return t.addEventListener("change",o),()=>t.removeEventListener("change",o)}catch{return t.addListener(o),()=>t.removeListener(o)}}function q7(t,o){return typeof window<"u"&&"matchMedia"in window?window.matchMedia(t).matches:!1}function Y7(t,o,{getInitialValueInEffect:a}={getInitialValueInEffect:!0}){const[r,s]=S.useState(a?o:q7(t));return S.useEffect(()=>{try{const c=window.matchMedia(t);return s(c.matches),Z7(c,f=>s(f.matches))}catch{return}},[t]),r||!1}const $r=typeof document<"u"?S.useLayoutEffect:S.useEffect;function zr(t,o){const a=S.useRef(!1);S.useEffect(()=>()=>{a.current=!1},[]),S.useEffect(()=>{if(a.current)return t();a.current=!0},o)}function X7({opened:t,shouldReturnFocus:o=!0}){const a=S.useRef(null),r=()=>{a.current&&"focus"in a.current&&typeof a.current.focus=="function"&&a.current?.focus({preventScroll:!0})};return zr(()=>{let s=-1;const c=f=>{f.key==="Tab"&&window.clearTimeout(s)};return document.addEventListener("keydown",c),t?a.current=document.activeElement:o&&(s=window.setTimeout(r,10)),()=>{window.clearTimeout(s),document.removeEventListener("keydown",c)}},[t,o]),r}const P7=/input|select|textarea|button|object/,ky="a, input, select, textarea, button, object, [tabindex]";function Q7(t){return t.style.display==="none"}function I7(t){if(t.getAttribute("aria-hidden")||t.getAttribute("hidden")||t.getAttribute("type")==="hidden")return!1;let a=t;for(;a&&!(a===document.body||a.nodeType===11);){if(Q7(a))return!1;a=a.parentNode}return!0}function By(t){let o=t.getAttribute("tabindex");return o===null&&(o=void 0),parseInt(o,10)}function Hd(t){const o=t.nodeName.toLowerCase(),a=!Number.isNaN(By(t));return(P7.test(o)&&!t.disabled||t instanceof HTMLAnchorElement&&t.href||a)&&I7(t)}function Uy(t){const o=By(t);return(Number.isNaN(o)||o>=0)&&Hd(t)}function K7(t){return Array.from(t.querySelectorAll(ky)).filter(Uy)}function F7(t,o){const a=K7(t);if(!a.length){o.preventDefault();return}const r=a[o.shiftKey?0:a.length-1],s=t.getRootNode();let c=r===s.activeElement||t===s.activeElement;const f=s.activeElement;if(f.tagName==="INPUT"&&f.getAttribute("type")==="radio"&&(c=a.filter(v=>v.getAttribute("type")==="radio"&&v.getAttribute("name")===f.getAttribute("name")).includes(r)),!c)return;o.preventDefault();const p=a[o.shiftKey?a.length-1:0];p&&p.focus()}function $y(t=!0){const o=S.useRef(null),a=s=>{let c=s.querySelector("[data-autofocus]");if(!c){const f=Array.from(s.querySelectorAll(ky));c=f.find(Uy)||f.find(Hd)||null,!c&&Hd(s)&&(c=s)}c&&c.focus({preventScroll:!0})},r=S.useCallback(s=>{t&&s!==null&&o.current!==s&&(s?(setTimeout(()=>{s.getRootNode()&&a(s)}),o.current=s):o.current=null)},[t]);return S.useEffect(()=>{if(!t)return;o.current&&setTimeout(()=>a(o.current));const s=c=>{c.key==="Tab"&&o.current&&F7(o.current,c)};return document.addEventListener("keydown",s),()=>document.removeEventListener("keydown",s)},[t]),r}const J7=Ve.useId||(()=>{});function W7(){const t=J7();return t?`mantine-${t.replace(/:/g,"")}`:""}function Ca(t){const o=W7(),[a,r]=S.useState(o);return $r(()=>{r(U7())},[]),typeof t=="string"?t:typeof window>"u"?o:a}function Vs(t,o){if(typeof t=="function")return t(o);typeof t=="object"&&t!==null&&"current"in t&&(t.current=o)}function lc(...t){const o=new Map;return a=>{if(t.forEach(r=>{const s=Vs(r,a);s&&o.set(r,s)}),o.size>0)return()=>{t.forEach(r=>{const s=o.get(r);s&&typeof s=="function"?s():Vs(r,null)}),o.clear()}}}function Rn(...t){return S.useCallback(lc(...t),t)}function wa({value:t,defaultValue:o,finalValue:a,onChange:r=()=>{}}){const[s,c]=S.useState(o!==void 0?o:a),f=(d,...p)=>{c(d),r?.(d,...p)};return t!==void 0?[t,r,!0]:[s,f,!1]}function e9(t,o){return Y7("(prefers-reduced-motion: reduce)",t,o)}function t9(){const[t,o]=S.useState(!1),a=S.useRef(null),r=S.useCallback(()=>{o(!0)},[]),s=S.useCallback(()=>{o(!1)},[]);return{ref:S.useCallback(f=>{a.current&&(a.current.removeEventListener("mouseenter",r),a.current.removeEventListener("mouseleave",s)),f&&(f.addEventListener("mouseenter",r),f.addEventListener("mouseleave",s)),a.current=f},[r,s]),hovered:t}}function n9(t=!1,o={}){const[a,r]=S.useState(t),s=S.useCallback(()=>{r(d=>d||(o.onOpen?.(),!0))},[o.onOpen]),c=S.useCallback(()=>{r(d=>d&&(o.onClose?.(),!1))},[o.onClose]),f=S.useCallback(()=>{a?c():s()},[c,s,a]);return[a,{open:s,close:c,toggle:f}]}function o9(t){return t.currentTarget instanceof HTMLElement&&t.relatedTarget instanceof HTMLElement?t.currentTarget.contains(t.relatedTarget):!1}function l9({onBlur:t,onFocus:o}={}){const[a,r]=S.useState(!1),s=S.useRef(!1),c=S.useRef(null),f=X0(o),d=X0(t),p=S.useCallback(x=>{r(x),s.current=x},[]),h=S.useCallback(x=>{s.current||(p(!0),f(x))},[]),v=S.useCallback(x=>{s.current&&!o9(x)&&(p(!1),d(x))},[]),y=S.useCallback(x=>{x&&(c.current&&(c.current.removeEventListener("focusin",h),c.current.removeEventListener("focusout",v)),x.addEventListener("focusin",h),x.addEventListener("focusout",v),c.current=x)},[h,v]);return S.useEffect(()=>()=>{c.current&&(c.current.removeEventListener("focusin",h),c.current.removeEventListener("focusout",v))},[]),{ref:y,focused:a}}function om(t){const o=Ve.version;return typeof Ve.version!="string"||o.startsWith("18.")?t?.ref:t?.props?.ref}function Gr(t){const o=S.Children.toArray(t);return o.length!==1||!Ly(o[0])?null:o[0]}const a9={};function r9(t){const o={};return t.forEach(a=>{Object.entries(a).forEach(([r,s])=>{o[r]?o[r]=xo(o[r],s):o[r]=s})}),o}function ac({theme:t,classNames:o,props:a,stylesCtx:r}){const c=(Array.isArray(o)?o:[o]).map(f=>typeof f=="function"?f(t,a,r):f||a9);return r9(c)}function ks({theme:t,styles:o,props:a,stylesCtx:r}){return(Array.isArray(o)?o:[o]).reduce((c,f)=>typeof f=="function"?{...c,...f(t,a,r)}:{...c,...f},{})}const lm=S.createContext(null);function Ko(){const t=S.useContext(lm);if(!t)throw new Error("[@mantine/core] MantineProvider was not found in tree");return t}function i9(){return Ko().cssVariablesResolver}function s9(){return Ko().classNamesPrefix}function am(){return Ko().getStyleNonce}function c9(){return Ko().withStaticClasses}function u9(){return Ko().headless}function f9(){return Ko().stylesTransform?.sx}function d9(){return Ko().stylesTransform?.styles}function rc(){return Ko().env||"default"}function m9(t){return/^#?([0-9A-F]{3}){1,2}([0-9A-F]{2})?$/i.test(t)}function p9(t){let o=t.replace("#","");if(o.length===3){const f=o.split("");o=[f[0],f[0],f[1],f[1],f[2],f[2]].join("")}if(o.length===8){const f=parseInt(o.slice(6,8),16)/255;return{r:parseInt(o.slice(0,2),16),g:parseInt(o.slice(2,4),16),b:parseInt(o.slice(4,6),16),a:f}}const a=parseInt(o,16),r=a>>16&255,s=a>>8&255,c=a&255;return{r,g:s,b:c,a:1}}function h9(t){const[o,a,r,s]=t.replace(/[^0-9,./]/g,"").split(/[/,]/).map(Number);return{r:o,g:a,b:r,a:s===void 0?1:s}}function g9(t){const o=/^hsla?\(\s*(\d+)\s*,\s*(\d+%)\s*,\s*(\d+%)\s*(,\s*(0?\.\d+|\d+(\.\d+)?))?\s*\)$/i,a=t.match(o);if(!a)return{r:0,g:0,b:0,a:1};const r=parseInt(a[1],10),s=parseInt(a[2],10)/100,c=parseInt(a[3],10)/100,f=a[5]?parseFloat(a[5]):void 0,d=(1-Math.abs(2*c-1))*s,p=r/60,h=d*(1-Math.abs(p%2-1)),v=c-d/2;let y,x,C;return p>=0&&p<1?(y=d,x=h,C=0):p>=1&&p<2?(y=h,x=d,C=0):p>=2&&p<3?(y=0,x=d,C=h):p>=3&&p<4?(y=0,x=h,C=d):p>=4&&p<5?(y=h,x=0,C=d):(y=d,x=0,C=h),{r:Math.round((y+v)*255),g:Math.round((x+v)*255),b:Math.round((C+v)*255),a:f||1}}function rm(t){return m9(t)?p9(t):t.startsWith("rgb")?h9(t):t.startsWith("hsl")?g9(t):{r:0,g:0,b:0,a:1}}function hs(t,o){if(t.startsWith("var("))return`color-mix(in srgb, ${t}, black ${o*100}%)`;const{r:a,g:r,b:s,a:c}=rm(t),f=1-o,d=p=>Math.round(p*f);return`rgba(${d(a)}, ${d(r)}, ${d(s)}, ${c})`}function Lr(t,o){return typeof t.primaryShade=="number"?t.primaryShade:o==="dark"?t.primaryShade.dark:t.primaryShade.light}function pd(t){return t<=.03928?t/12.92:((t+.055)/1.055)**2.4}function v9(t){const o=t.match(/oklch\((.*?)%\s/);return o?parseFloat(o[1]):null}function y9(t){if(t.startsWith("oklch("))return(v9(t)||0)/100;const{r:o,g:a,b:r}=rm(t),s=o/255,c=a/255,f=r/255,d=pd(s),p=pd(c),h=pd(f);return .2126*d+.7152*p+.0722*h}function Mr(t,o=.179){return t.startsWith("var(")?!1:y9(t)>o}function Cl({color:t,theme:o,colorScheme:a}){if(typeof t!="string")throw new Error(`[@mantine/core] Failed to parse color. Expected color to be a string, instead got ${typeof t}`);if(t==="bright")return{color:t,value:a==="dark"?o.white:o.black,shade:void 0,isThemeColor:!1,isLight:Mr(a==="dark"?o.white:o.black,o.luminanceThreshold),variable:"--mantine-color-bright"};if(t==="dimmed")return{color:t,value:a==="dark"?o.colors.dark[2]:o.colors.gray[7],shade:void 0,isThemeColor:!1,isLight:Mr(a==="dark"?o.colors.dark[2]:o.colors.gray[6],o.luminanceThreshold),variable:"--mantine-color-dimmed"};if(t==="white"||t==="black")return{color:t,value:t==="white"?o.white:o.black,shade:void 0,isThemeColor:!1,isLight:Mr(t==="white"?o.white:o.black,o.luminanceThreshold),variable:`--mantine-color-${t}`};const[r,s]=t.split("."),c=s?Number(s):void 0,f=r in o.colors;if(f){const d=c!==void 0?o.colors[r][c]:o.colors[r][Lr(o,a||"light")];return{color:r,value:d,shade:c,isThemeColor:f,isLight:Mr(d,o.luminanceThreshold),variable:s?`--mantine-color-${r}-${c}`:`--mantine-color-${r}-filled`}}return{color:t,value:t,isThemeColor:f,isLight:Mr(t,o.luminanceThreshold),shade:c,variable:void 0}}function bo(t,o){const a=Cl({color:t||o.primaryColor,theme:o});return a.variable?`var(${a.variable})`:t}function zd(t,o){const a={from:t?.from||o.defaultGradient.from,to:t?.to||o.defaultGradient.to,deg:t?.deg??o.defaultGradient.deg??0},r=bo(a.from,o),s=bo(a.to,o);return`linear-gradient(${a.deg}deg, ${r} 0%, ${s} 100%)`}function Ln(t,o){if(typeof t!="string"||o>1||o<0)return"rgba(0, 0, 0, 1)";if(t.startsWith("var(")){const c=(1-o)*100;return`color-mix(in srgb, ${t}, transparent ${c}%)`}if(t.startsWith("oklch"))return t.includes("/")?t.replace(/\/\s*[\d.]+\s*\)/,`/ ${o})`):t.replace(")",` / ${o})`);const{r:a,g:r,b:s}=rm(t);return`rgba(${a}, ${r}, ${s}, ${o})`}const ma=Ln,b9=({color:t,theme:o,variant:a,gradient:r,autoContrast:s})=>{const c=Cl({color:t,theme:o}),f=typeof s=="boolean"?s:o.autoContrast;if(a==="none")return{background:"transparent",hover:"transparent",color:"inherit",border:"none"};if(a==="filled"){const d=f&&c.isLight?"var(--mantine-color-black)":"var(--mantine-color-white)";return c.isThemeColor?c.shade===void 0?{background:`var(--mantine-color-${t}-filled)`,hover:`var(--mantine-color-${t}-filled-hover)`,color:d,border:`${F(1)} solid transparent`}:{background:`var(--mantine-color-${c.color}-${c.shade})`,hover:`var(--mantine-color-${c.color}-${c.shade===9?8:c.shade+1})`,color:d,border:`${F(1)} solid transparent`}:{background:t,hover:hs(t,.1),color:d,border:`${F(1)} solid transparent`}}if(a==="light"){if(c.isThemeColor){if(c.shade===void 0)return{background:`var(--mantine-color-${t}-light)`,hover:`var(--mantine-color-${t}-light-hover)`,color:`var(--mantine-color-${t}-light-color)`,border:`${F(1)} solid transparent`};const d=o.colors[c.color][c.shade];return{background:Ln(d,.1),hover:Ln(d,.12),color:`var(--mantine-color-${c.color}-${Math.min(c.shade,6)})`,border:`${F(1)} solid transparent`}}return{background:Ln(t,.1),hover:Ln(t,.12),color:t,border:`${F(1)} solid transparent`}}if(a==="outline")return c.isThemeColor?c.shade===void 0?{background:"transparent",hover:`var(--mantine-color-${t}-outline-hover)`,color:`var(--mantine-color-${t}-outline)`,border:`${F(1)} solid var(--mantine-color-${t}-outline)`}:{background:"transparent",hover:Ln(o.colors[c.color][c.shade],.05),color:`var(--mantine-color-${c.color}-${c.shade})`,border:`${F(1)} solid var(--mantine-color-${c.color}-${c.shade})`}:{background:"transparent",hover:Ln(t,.05),color:t,border:`${F(1)} solid ${t}`};if(a==="subtle"){if(c.isThemeColor){if(c.shade===void 0)return{background:"transparent",hover:`var(--mantine-color-${t}-light-hover)`,color:`var(--mantine-color-${t}-light-color)`,border:`${F(1)} solid transparent`};const d=o.colors[c.color][c.shade];return{background:"transparent",hover:Ln(d,.12),color:`var(--mantine-color-${c.color}-${Math.min(c.shade,6)})`,border:`${F(1)} solid transparent`}}return{background:"transparent",hover:Ln(t,.12),color:t,border:`${F(1)} solid transparent`}}return a==="transparent"?c.isThemeColor?c.shade===void 0?{background:"transparent",hover:"transparent",color:`var(--mantine-color-${t}-light-color)`,border:`${F(1)} solid transparent`}:{background:"transparent",hover:"transparent",color:`var(--mantine-color-${c.color}-${Math.min(c.shade,6)})`,border:`${F(1)} solid transparent`}:{background:"transparent",hover:"transparent",color:t,border:`${F(1)} solid transparent`}:a==="white"?c.isThemeColor?c.shade===void 0?{background:"var(--mantine-color-white)",hover:hs(o.white,.01),color:`var(--mantine-color-${t}-filled)`,border:`${F(1)} solid transparent`}:{background:"var(--mantine-color-white)",hover:hs(o.white,.01),color:`var(--mantine-color-${c.color}-${c.shade})`,border:`${F(1)} solid transparent`}:{background:"var(--mantine-color-white)",hover:hs(o.white,.01),color:t,border:`${F(1)} solid transparent`}:a==="gradient"?{background:zd(r,o),hover:zd(r,o),color:"var(--mantine-color-white)",border:"none"}:a==="default"?{background:"var(--mantine-color-default)",hover:"var(--mantine-color-default-hover)",color:"var(--mantine-color-default-color)",border:`${F(1)} solid var(--mantine-color-default-border)`}:{}},x9={dark:["#C9C9C9","#b8b8b8","#828282","#696969","#424242","#3b3b3b","#2e2e2e","#242424","#1f1f1f","#141414"],gray:["#f8f9fa","#f1f3f5","#e9ecef","#dee2e6","#ced4da","#adb5bd","#868e96","#495057","#343a40","#212529"],red:["#fff5f5","#ffe3e3","#ffc9c9","#ffa8a8","#ff8787","#ff6b6b","#fa5252","#f03e3e","#e03131","#c92a2a"],pink:["#fff0f6","#ffdeeb","#fcc2d7","#faa2c1","#f783ac","#f06595","#e64980","#d6336c","#c2255c","#a61e4d"],grape:["#f8f0fc","#f3d9fa","#eebefa","#e599f7","#da77f2","#cc5de8","#be4bdb","#ae3ec9","#9c36b5","#862e9c"],violet:["#f3f0ff","#e5dbff","#d0bfff","#b197fc","#9775fa","#845ef7","#7950f2","#7048e8","#6741d9","#5f3dc4"],indigo:["#edf2ff","#dbe4ff","#bac8ff","#91a7ff","#748ffc","#5c7cfa","#4c6ef5","#4263eb","#3b5bdb","#364fc7"],blue:["#e7f5ff","#d0ebff","#a5d8ff","#74c0fc","#4dabf7","#339af0","#228be6","#1c7ed6","#1971c2","#1864ab"],cyan:["#e3fafc","#c5f6fa","#99e9f2","#66d9e8","#3bc9db","#22b8cf","#15aabf","#1098ad","#0c8599","#0b7285"],teal:["#e6fcf5","#c3fae8","#96f2d7","#63e6be","#38d9a9","#20c997","#12b886","#0ca678","#099268","#087f5b"],green:["#ebfbee","#d3f9d8","#b2f2bb","#8ce99a","#69db7c","#51cf66","#40c057","#37b24d","#2f9e44","#2b8a3e"],lime:["#f4fce3","#e9fac8","#d8f5a2","#c0eb75","#a9e34b","#94d82d","#82c91e","#74b816","#66a80f","#5c940d"],yellow:["#fff9db","#fff3bf","#ffec99","#ffe066","#ffd43b","#fcc419","#fab005","#f59f00","#f08c00","#e67700"],orange:["#fff4e6","#ffe8cc","#ffd8a8","#ffc078","#ffa94d","#ff922b","#fd7e14","#f76707","#e8590c","#d9480f"]},P0="-apple-system, BlinkMacSystemFont, Segoe UI, Roboto, Helvetica, Arial, sans-serif, Apple Color Emoji, Segoe UI Emoji",im={scale:1,fontSmoothing:!0,focusRing:"auto",white:"#fff",black:"#000",colors:x9,primaryShade:{light:6,dark:8},primaryColor:"blue",variantColorResolver:b9,autoContrast:!1,luminanceThreshold:.3,fontFamily:P0,fontFamilyMonospace:"ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, Liberation Mono, Courier New, monospace",respectReducedMotion:!1,cursorType:"default",defaultGradient:{from:"blue",to:"cyan",deg:45},defaultRadius:"sm",activeClassName:"mantine-active",focusClassName:"",headings:{fontFamily:P0,fontWeight:"700",textWrap:"wrap",sizes:{h1:{fontSize:F(34),lineHeight:"1.3"},h2:{fontSize:F(26),lineHeight:"1.35"},h3:{fontSize:F(22),lineHeight:"1.4"},h4:{fontSize:F(18),lineHeight:"1.45"},h5:{fontSize:F(16),lineHeight:"1.5"},h6:{fontSize:F(14),lineHeight:"1.5"}}},fontSizes:{xs:F(12),sm:F(14),md:F(16),lg:F(18),xl:F(20)},lineHeights:{xs:"1.4",sm:"1.45",md:"1.55",lg:"1.6",xl:"1.65"},radius:{xs:F(2),sm:F(4),md:F(8),lg:F(16),xl:F(32)},spacing:{xs:F(10),sm:F(12),md:F(16),lg:F(20),xl:F(32)},breakpoints:{xs:"36em",sm:"48em",md:"62em",lg:"75em",xl:"88em"},shadows:{xs:`0 ${F(1)} ${F(3)} rgba(0, 0, 0, 0.05), 0 ${F(1)} ${F(2)} rgba(0, 0, 0, 0.1)`,sm:`0 ${F(1)} ${F(3)} rgba(0, 0, 0, 0.05), rgba(0, 0, 0, 0.05) 0 ${F(10)} ${F(15)} ${F(-5)}, rgba(0, 0, 0, 0.04) 0 ${F(7)} ${F(7)} ${F(-5)}`,md:`0 ${F(1)} ${F(3)} rgba(0, 0, 0, 0.05), rgba(0, 0, 0, 0.05) 0 ${F(20)} ${F(25)} ${F(-5)}, rgba(0, 0, 0, 0.04) 0 ${F(10)} ${F(10)} ${F(-5)}`,lg:`0 ${F(1)} ${F(3)} rgba(0, 0, 0, 0.05), rgba(0, 0, 0, 0.05) 0 ${F(28)} ${F(23)} ${F(-7)}, rgba(0, 0, 0, 0.04) 0 ${F(12)} ${F(12)} ${F(-7)}`,xl:`0 ${F(1)} ${F(3)} rgba(0, 0, 0, 0.05), rgba(0, 0, 0, 0.05) 0 ${F(36)} ${F(28)} ${F(-7)}, rgba(0, 0, 0, 0.04) 0 ${F(17)} ${F(17)} ${F(-7)}`},other:{},components:{}};function Q0(t){return t==="auto"||t==="dark"||t==="light"}function S9({key:t="mantine-color-scheme-value"}={}){let o;return{get:a=>{if(typeof window>"u")return a;try{const r=window.localStorage.getItem(t);return Q0(r)?r:a}catch{return a}},set:a=>{try{window.localStorage.setItem(t,a)}catch(r){console.warn("[@mantine/core] Local storage color scheme manager was unable to save color scheme.",r)}},subscribe:a=>{o=r=>{r.storageArea===window.localStorage&&r.key===t&&Q0(r.newValue)&&a(r.newValue)},window.addEventListener("storage",o)},unsubscribe:()=>{window.removeEventListener("storage",o)},clear:()=>{window.localStorage.removeItem(t)}}}const C9="[@mantine/core] MantineProvider: Invalid theme.primaryColor, it accepts only key of theme.colors, learn more – https://mantine.dev/theming/colors/#primary-color",I0="[@mantine/core] MantineProvider: Invalid theme.primaryShade, it accepts only 0-9 integers or an object { light: 0-9, dark: 0-9 }";function hd(t){return t<0||t>9?!1:parseInt(t.toString(),10)===t}function K0(t){if(!(t.primaryColor in t.colors))throw new Error(C9);if(typeof t.primaryShade=="object"&&(!hd(t.primaryShade.dark)||!hd(t.primaryShade.light)))throw new Error(I0);if(typeof t.primaryShade=="number"&&!hd(t.primaryShade))throw new Error(I0)}function w9(t,o){if(!o)return K0(t),t;const a=tm(t,o);return o.fontFamily&&!o.headings?.fontFamily&&(a.headings.fontFamily=o.fontFamily),K0(a),a}const sm=S.createContext(null),T9=()=>S.useContext(sm)||im;function Gt(){const t=S.useContext(sm);if(!t)throw new Error("@mantine/core: MantineProvider was not found in component tree, make sure you have it in your app");return t}function Gy({theme:t,children:o,inherit:a=!0}){const r=T9(),s=S.useMemo(()=>w9(a?r:im,t),[t,r,a]);return g.jsx(sm.Provider,{value:s,children:o})}Gy.displayName="@mantine/core/MantineThemeProvider";function E9(){const t=Gt(),o=am(),a=$n(t.breakpoints).reduce((r,s)=>{const c=t.breakpoints[s].includes("px"),f=N7(t.breakpoints[s]),d=c?`${f-.1}px`:q0(f-.1),p=c?`${f}px`:q0(f);return`${r}@media (max-width: ${d}) {.mantine-visible-from-${s} {display: none !important;}}@media (min-width: ${p}) {.mantine-hidden-from-${s} {display: none !important;}}`},"");return g.jsx("style",{"data-mantine-styles":"classes",nonce:o?.(),dangerouslySetInnerHTML:{__html:a}})}function gd(t){return Object.entries(t).map(([o,a])=>`${o}: ${a};`).join("")}function Zy(t,o){const a=o?[o]:[":root",":host"],r=gd(t.variables),s=r?`${a.join(", ")}{${r}}`:"",c=gd(t.dark),f=gd(t.light),d=v=>a.map(y=>y===":host"?`${y}([data-mantine-color-scheme="${v}"])`:`${y}[data-mantine-color-scheme="${v}"]`).join(", "),p=c?`${d("dark")}{${c}}`:"",h=f?`${d("light")}{${f}}`:"";return`${s}
|
|
51
|
-
|
|
52
|
-
${p}
|
|
53
|
-
|
|
54
|
-
${h}`}function qy({color:t,theme:o,autoContrast:a}){return(typeof a=="boolean"?a:o.autoContrast)&&Cl({color:t||o.primaryColor,theme:o}).isLight?"var(--mantine-color-black)":"var(--mantine-color-white)"}function F0(t,o){return qy({color:t.colors[t.primaryColor][Lr(t,o)],theme:t,autoContrast:null})}function gs({theme:t,color:o,colorScheme:a,name:r=o,withColorValues:s=!0}){if(!t.colors[o])return{};if(a==="light"){const d=Lr(t,"light"),p={[`--mantine-color-${r}-text`]:`var(--mantine-color-${r}-filled)`,[`--mantine-color-${r}-filled`]:`var(--mantine-color-${r}-${d})`,[`--mantine-color-${r}-filled-hover`]:`var(--mantine-color-${r}-${d===9?8:d+1})`,[`--mantine-color-${r}-light`]:ma(t.colors[o][d],.1),[`--mantine-color-${r}-light-hover`]:ma(t.colors[o][d],.12),[`--mantine-color-${r}-light-color`]:`var(--mantine-color-${r}-${d})`,[`--mantine-color-${r}-outline`]:`var(--mantine-color-${r}-${d})`,[`--mantine-color-${r}-outline-hover`]:ma(t.colors[o][d],.05)};return s?{[`--mantine-color-${r}-0`]:t.colors[o][0],[`--mantine-color-${r}-1`]:t.colors[o][1],[`--mantine-color-${r}-2`]:t.colors[o][2],[`--mantine-color-${r}-3`]:t.colors[o][3],[`--mantine-color-${r}-4`]:t.colors[o][4],[`--mantine-color-${r}-5`]:t.colors[o][5],[`--mantine-color-${r}-6`]:t.colors[o][6],[`--mantine-color-${r}-7`]:t.colors[o][7],[`--mantine-color-${r}-8`]:t.colors[o][8],[`--mantine-color-${r}-9`]:t.colors[o][9],...p}:p}const c=Lr(t,"dark"),f={[`--mantine-color-${r}-text`]:`var(--mantine-color-${r}-4)`,[`--mantine-color-${r}-filled`]:`var(--mantine-color-${r}-${c})`,[`--mantine-color-${r}-filled-hover`]:`var(--mantine-color-${r}-${c===9?8:c+1})`,[`--mantine-color-${r}-light`]:ma(t.colors[o][Math.max(0,c-2)],.15),[`--mantine-color-${r}-light-hover`]:ma(t.colors[o][Math.max(0,c-2)],.2),[`--mantine-color-${r}-light-color`]:`var(--mantine-color-${r}-${Math.max(c-5,0)})`,[`--mantine-color-${r}-outline`]:`var(--mantine-color-${r}-${Math.max(c-4,0)})`,[`--mantine-color-${r}-outline-hover`]:ma(t.colors[o][Math.max(c-4,0)],.05)};return s?{[`--mantine-color-${r}-0`]:t.colors[o][0],[`--mantine-color-${r}-1`]:t.colors[o][1],[`--mantine-color-${r}-2`]:t.colors[o][2],[`--mantine-color-${r}-3`]:t.colors[o][3],[`--mantine-color-${r}-4`]:t.colors[o][4],[`--mantine-color-${r}-5`]:t.colors[o][5],[`--mantine-color-${r}-6`]:t.colors[o][6],[`--mantine-color-${r}-7`]:t.colors[o][7],[`--mantine-color-${r}-8`]:t.colors[o][8],[`--mantine-color-${r}-9`]:t.colors[o][9],...f}:f}function M9(t){return!!t&&typeof t=="object"&&"mantine-virtual-color"in t}function pa(t,o,a){$n(o).forEach(r=>Object.assign(t,{[`--mantine-${a}-${r}`]:o[r]}))}const Yy=t=>{const o=Lr(t,"light"),a=t.defaultRadius in t.radius?t.radius[t.defaultRadius]:F(t.defaultRadius),r={variables:{"--mantine-z-index-app":"100","--mantine-z-index-modal":"200","--mantine-z-index-popover":"300","--mantine-z-index-overlay":"400","--mantine-z-index-max":"9999","--mantine-scale":t.scale.toString(),"--mantine-cursor-type":t.cursorType,"--mantine-webkit-font-smoothing":t.fontSmoothing?"antialiased":"unset","--mantine-moz-font-smoothing":t.fontSmoothing?"grayscale":"unset","--mantine-color-white":t.white,"--mantine-color-black":t.black,"--mantine-line-height":t.lineHeights.md,"--mantine-font-family":t.fontFamily,"--mantine-font-family-monospace":t.fontFamilyMonospace,"--mantine-font-family-headings":t.headings.fontFamily,"--mantine-heading-font-weight":t.headings.fontWeight,"--mantine-heading-text-wrap":t.headings.textWrap,"--mantine-radius-default":a,"--mantine-primary-color-filled":`var(--mantine-color-${t.primaryColor}-filled)`,"--mantine-primary-color-filled-hover":`var(--mantine-color-${t.primaryColor}-filled-hover)`,"--mantine-primary-color-light":`var(--mantine-color-${t.primaryColor}-light)`,"--mantine-primary-color-light-hover":`var(--mantine-color-${t.primaryColor}-light-hover)`,"--mantine-primary-color-light-color":`var(--mantine-color-${t.primaryColor}-light-color)`},light:{"--mantine-color-scheme":"light","--mantine-primary-color-contrast":F0(t,"light"),"--mantine-color-bright":"var(--mantine-color-black)","--mantine-color-text":t.black,"--mantine-color-body":t.white,"--mantine-color-error":"var(--mantine-color-red-6)","--mantine-color-placeholder":"var(--mantine-color-gray-5)","--mantine-color-anchor":`var(--mantine-color-${t.primaryColor}-${o})`,"--mantine-color-default":"var(--mantine-color-white)","--mantine-color-default-hover":"var(--mantine-color-gray-0)","--mantine-color-default-color":"var(--mantine-color-black)","--mantine-color-default-border":"var(--mantine-color-gray-4)","--mantine-color-dimmed":"var(--mantine-color-gray-6)","--mantine-color-disabled":"var(--mantine-color-gray-2)","--mantine-color-disabled-color":"var(--mantine-color-gray-5)","--mantine-color-disabled-border":"var(--mantine-color-gray-3)"},dark:{"--mantine-color-scheme":"dark","--mantine-primary-color-contrast":F0(t,"dark"),"--mantine-color-bright":"var(--mantine-color-white)","--mantine-color-text":"var(--mantine-color-dark-0)","--mantine-color-body":"var(--mantine-color-dark-7)","--mantine-color-error":"var(--mantine-color-red-8)","--mantine-color-placeholder":"var(--mantine-color-dark-3)","--mantine-color-anchor":`var(--mantine-color-${t.primaryColor}-4)`,"--mantine-color-default":"var(--mantine-color-dark-6)","--mantine-color-default-hover":"var(--mantine-color-dark-5)","--mantine-color-default-color":"var(--mantine-color-white)","--mantine-color-default-border":"var(--mantine-color-dark-4)","--mantine-color-dimmed":"var(--mantine-color-dark-2)","--mantine-color-disabled":"var(--mantine-color-dark-6)","--mantine-color-disabled-color":"var(--mantine-color-dark-3)","--mantine-color-disabled-border":"var(--mantine-color-dark-4)"}};pa(r.variables,t.breakpoints,"breakpoint"),pa(r.variables,t.spacing,"spacing"),pa(r.variables,t.fontSizes,"font-size"),pa(r.variables,t.lineHeights,"line-height"),pa(r.variables,t.shadows,"shadow"),pa(r.variables,t.radius,"radius"),t.colors[t.primaryColor].forEach((c,f)=>{r.variables[`--mantine-primary-color-${f}`]=`var(--mantine-color-${t.primaryColor}-${f})`}),$n(t.colors).forEach(c=>{const f=t.colors[c];if(M9(f)){Object.assign(r.light,gs({theme:t,name:f.name,color:f.light,colorScheme:"light",withColorValues:!0})),Object.assign(r.dark,gs({theme:t,name:f.name,color:f.dark,colorScheme:"dark",withColorValues:!0}));return}f.forEach((d,p)=>{r.variables[`--mantine-color-${c}-${p}`]=d}),Object.assign(r.light,gs({theme:t,color:c,colorScheme:"light",withColorValues:!1})),Object.assign(r.dark,gs({theme:t,color:c,colorScheme:"dark",withColorValues:!1}))});const s=t.headings.sizes;return $n(s).forEach(c=>{r.variables[`--mantine-${c}-font-size`]=s[c].fontSize,r.variables[`--mantine-${c}-line-height`]=s[c].lineHeight,r.variables[`--mantine-${c}-font-weight`]=s[c].fontWeight||t.headings.fontWeight}),r};function R9({theme:t,generator:o}){const a=Yy(t),r=o?.(t);return r?tm(a,r):a}const vd=Yy(im);function j9(t){const o={variables:{},light:{},dark:{}};return $n(t.variables).forEach(a=>{vd.variables[a]!==t.variables[a]&&(o.variables[a]=t.variables[a])}),$n(t.light).forEach(a=>{vd.light[a]!==t.light[a]&&(o.light[a]=t.light[a])}),$n(t.dark).forEach(a=>{vd.dark[a]!==t.dark[a]&&(o.dark[a]=t.dark[a])}),o}function _9(t){return Zy({variables:{},dark:{"--mantine-color-scheme":"dark"},light:{"--mantine-color-scheme":"light"}},t)}function Xy({cssVariablesSelector:t,deduplicateCssVariables:o}){const a=Gt(),r=am(),s=i9(),c=R9({theme:a,generator:s}),f=(t===void 0||t===":root"||t===":host")&&o,d=f?j9(c):c,p=Zy(d,t);return p?g.jsx("style",{"data-mantine-styles":!0,nonce:r?.(),dangerouslySetInnerHTML:{__html:`${p}${f?"":_9(t)}`}}):null}Xy.displayName="@mantine/CssVariables";function ha(t,o){const a=typeof window<"u"&&"matchMedia"in window&&window.matchMedia("(prefers-color-scheme: dark)")?.matches,r=t!=="auto"?t:a?"dark":"light";o()?.setAttribute("data-mantine-color-scheme",r)}function O9({manager:t,defaultColorScheme:o,getRootElement:a,forceColorScheme:r}){const s=S.useRef(null),[c,f]=S.useState(()=>t.get(o)),d=r||c,p=S.useCallback(v=>{r||(ha(v,a),f(v),t.set(v))},[t.set,d,r]),h=S.useCallback(()=>{f(o),ha(o,a),t.clear()},[t.clear,o]);return S.useEffect(()=>(t.subscribe(p),t.unsubscribe),[t.subscribe,t.unsubscribe]),$r(()=>{ha(t.get(o),a)},[]),S.useEffect(()=>{if(r)return ha(r,a),()=>{};r===void 0&&ha(c,a),typeof window<"u"&&"matchMedia"in window&&(s.current=window.matchMedia("(prefers-color-scheme: dark)"));const v=y=>{c==="auto"&&ha(y.matches?"dark":"light",a)};return s.current?.addEventListener("change",v),()=>s.current?.removeEventListener("change",v)},[c,r]),{colorScheme:d,setColorScheme:p,clearColorScheme:h}}function N9({respectReducedMotion:t,getRootElement:o}){$r(()=>{t&&o()?.setAttribute("data-respect-reduced-motion","true")},[t])}function Py({theme:t,children:o,getStyleNonce:a,withStaticClasses:r=!0,withGlobalClasses:s=!0,deduplicateCssVariables:c=!0,withCssVariables:f=!0,cssVariablesSelector:d,classNamesPrefix:p="mantine",colorSchemeManager:h=S9(),defaultColorScheme:v="light",getRootElement:y=()=>document.documentElement,cssVariablesResolver:x,forceColorScheme:C,stylesTransform:T,env:w}){const{colorScheme:M,setColorScheme:R,clearColorScheme:_}=O9({defaultColorScheme:v,forceColorScheme:C,manager:h,getRootElement:y});return N9({respectReducedMotion:t?.respectReducedMotion||!1,getRootElement:y}),g.jsx(lm.Provider,{value:{colorScheme:M,setColorScheme:R,clearColorScheme:_,getRootElement:y,classNamesPrefix:p,getStyleNonce:a,cssVariablesResolver:x,cssVariablesSelector:d??":root",withStaticClasses:r,stylesTransform:T,env:w},children:g.jsxs(Gy,{theme:t,children:[f&&g.jsx(Xy,{cssVariablesSelector:d,deduplicateCssVariables:c}),s&&g.jsx(E9,{}),o]})})}Py.displayName="@mantine/core/MantineProvider";function ic({classNames:t,styles:o,props:a,stylesCtx:r}){const s=Gt();return{resolvedClassNames:ac({theme:s,classNames:t,props:a,stylesCtx:r||void 0}),resolvedStyles:ks({theme:s,styles:o,props:a,stylesCtx:r||void 0})}}const A9={always:"mantine-focus-always",auto:"mantine-focus-auto",never:"mantine-focus-never"};function D9({theme:t,options:o,unstyled:a}){return xo(o?.focusable&&!a&&(t.focusClassName||A9[t.focusRing]),o?.active&&!a&&t.activeClassName)}function H9({selector:t,stylesCtx:o,options:a,props:r,theme:s}){return ac({theme:s,classNames:a?.classNames,props:a?.props||r,stylesCtx:o})[t]}function J0({selector:t,stylesCtx:o,theme:a,classNames:r,props:s}){return ac({theme:a,classNames:r,props:s,stylesCtx:o})[t]}function z9({rootSelector:t,selector:o,className:a}){return t===o?a:void 0}function L9({selector:t,classes:o,unstyled:a}){return a?void 0:o[t]}function V9({themeName:t,classNamesPrefix:o,selector:a,withStaticClass:r}){return r===!1?[]:t.map(s=>`${o}-${s}-${a}`)}function k9({themeName:t,theme:o,selector:a,props:r,stylesCtx:s}){return t.map(c=>ac({theme:o,classNames:o.components[c]?.classNames,props:r,stylesCtx:s})?.[a])}function B9({options:t,classes:o,selector:a,unstyled:r}){return t?.variant&&!r?o[`${a}--${t.variant}`]:void 0}function U9({theme:t,options:o,themeName:a,selector:r,classNamesPrefix:s,classNames:c,classes:f,unstyled:d,className:p,rootSelector:h,props:v,stylesCtx:y,withStaticClasses:x,headless:C,transformedStyles:T}){return xo(D9({theme:t,options:o,unstyled:d||C}),k9({theme:t,themeName:a,selector:r,props:v,stylesCtx:y}),B9({options:o,classes:f,selector:r,unstyled:d}),J0({selector:r,stylesCtx:y,theme:t,classNames:c,props:v}),J0({selector:r,stylesCtx:y,theme:t,classNames:T,props:v}),H9({selector:r,stylesCtx:y,options:o,props:v,theme:t}),z9({rootSelector:h,selector:r,className:p}),L9({selector:r,classes:f,unstyled:d||C}),x&&!C&&V9({themeName:a,classNamesPrefix:s,selector:r,withStaticClass:o?.withStaticClass}),o?.className)}function $9({theme:t,themeName:o,props:a,stylesCtx:r,selector:s}){return o.map(c=>ks({theme:t,styles:t.components[c]?.styles,props:a,stylesCtx:r})[s]).reduce((c,f)=>({...c,...f}),{})}function Ld({style:t,theme:o}){return Array.isArray(t)?[...t].reduce((a,r)=>({...a,...Ld({style:r,theme:o})}),{}):typeof t=="function"?t(o):t??{}}function G9(t){return t.reduce((o,a)=>(a&&Object.keys(a).forEach(r=>{o[r]={...o[r],...tc(a[r])}}),o),{})}function Z9({vars:t,varsResolver:o,theme:a,props:r,stylesCtx:s,selector:c,themeName:f,headless:d}){return G9([d?{}:o?.(a,r,s),...f.map(p=>a.components?.[p]?.vars?.(a,r,s)),t?.(a,r,s)])?.[c]}function q9({theme:t,themeName:o,selector:a,options:r,props:s,stylesCtx:c,rootSelector:f,styles:d,style:p,vars:h,varsResolver:v,headless:y,withStylesTransform:x}){return{...!x&&$9({theme:t,themeName:o,props:s,stylesCtx:c,selector:a}),...!x&&ks({theme:t,styles:d,props:s,stylesCtx:c})[a],...!x&&ks({theme:t,styles:r?.styles,props:r?.props||s,stylesCtx:c})[a],...Z9({theme:t,props:s,stylesCtx:c,vars:h,varsResolver:v,selector:a,themeName:o,headless:y}),...f===a?Ld({style:p,theme:t}):null,...Ld({style:r?.style,theme:t})}}function Y9({props:t,stylesCtx:o,themeName:a}){const r=Gt(),s=d9()?.();return{getTransformedStyles:f=>s?[...f.map(p=>s(p,{props:t,theme:r,ctx:o})),...a.map(p=>s(r.components[p]?.styles,{props:t,theme:r,ctx:o}))].filter(Boolean):[],withStylesTransform:!!s}}function _e({name:t,classes:o,props:a,stylesCtx:r,className:s,style:c,rootSelector:f="root",unstyled:d,classNames:p,styles:h,vars:v,varsResolver:y,attributes:x}){const C=Gt(),T=s9(),w=c9(),M=u9(),R=(Array.isArray(t)?t:[t]).filter(A=>A),{withStylesTransform:_,getTransformedStyles:N}=Y9({props:a,stylesCtx:r,themeName:R});return(A,H)=>({className:U9({theme:C,options:H,themeName:R,selector:A,classNamesPrefix:T,classNames:p,classes:o,unstyled:d,className:s,rootSelector:f,props:a,stylesCtx:r,withStaticClasses:w,headless:M,transformedStyles:N([H?.styles,h])}),style:q9({theme:C,themeName:R,selector:A,options:H,props:a,stylesCtx:r,rootSelector:f,styles:h,style:c,vars:v,varsResolver:y,headless:M,withStylesTransform:_}),...x?.[A]})}function X9(t,o){return typeof t=="boolean"?t:o.autoContrast}function ie(t,o,a){const r=Gt(),s=r.components[t]?.defaultProps,c=typeof s=="function"?s(r):s;return{...o,...c,...tc(a)}}function yd(t){return $n(t).reduce((o,a)=>t[a]!==void 0?`${o}${_7(a)}:${t[a]};`:o,"").trim()}function P9({selector:t,styles:o,media:a,container:r}){const s=o?yd(o):"",c=Array.isArray(a)?a.map(d=>`@media${d.query}{${t}{${yd(d.styles)}}}`):[],f=Array.isArray(r)?r.map(d=>`@container ${d.query}{${t}{${yd(d.styles)}}}`):[];return`${s?`${t}{${s}}`:""}${c.join("")}${f.join("")}`.trim()}function Qy(t){const o=am();return g.jsx("style",{"data-mantine-styles":"inline",nonce:o?.(),dangerouslySetInnerHTML:{__html:P9(t)}})}function sc(t){const{m:o,mx:a,my:r,mt:s,mb:c,ml:f,mr:d,me:p,ms:h,p:v,px:y,py:x,pt:C,pb:T,pl:w,pr:M,pe:R,ps:_,bd:N,bdrs:A,bg:H,c:L,opacity:Z,ff:I,fz:J,fw:P,lts:ee,ta:oe,lh:te,fs:B,tt:ne,td:D,w:U,miw:V,maw:K,h:W,mih:de,mah:le,bgsz:ae,bgp:ye,bgr:ge,bga:Ne,pos:Pe,top:Ee,left:ve,bottom:We,right:rt,inset:et,display:ze,flex:ot,hiddenFrom:tn,visibleFrom:On,lightHidden:So,darkHidden:Nn,sx:wt,...Xn}=t;return{styleProps:tc({m:o,mx:a,my:r,mt:s,mb:c,ml:f,mr:d,me:p,ms:h,p:v,px:y,py:x,pt:C,pb:T,pl:w,pr:M,pe:R,ps:_,bd:N,bg:H,c:L,opacity:Z,ff:I,fz:J,fw:P,lts:ee,ta:oe,lh:te,fs:B,tt:ne,td:D,w:U,miw:V,maw:K,h:W,mih:de,mah:le,bgsz:ae,bgp:ye,bgr:ge,bga:Ne,pos:Pe,top:Ee,left:ve,bottom:We,right:rt,inset:et,display:ze,flex:ot,bdrs:A,hiddenFrom:tn,visibleFrom:On,lightHidden:So,darkHidden:Nn,sx:wt}),rest:Xn}}const Q9={m:{type:"spacing",property:"margin"},mt:{type:"spacing",property:"marginTop"},mb:{type:"spacing",property:"marginBottom"},ml:{type:"spacing",property:"marginLeft"},mr:{type:"spacing",property:"marginRight"},ms:{type:"spacing",property:"marginInlineStart"},me:{type:"spacing",property:"marginInlineEnd"},mx:{type:"spacing",property:"marginInline"},my:{type:"spacing",property:"marginBlock"},p:{type:"spacing",property:"padding"},pt:{type:"spacing",property:"paddingTop"},pb:{type:"spacing",property:"paddingBottom"},pl:{type:"spacing",property:"paddingLeft"},pr:{type:"spacing",property:"paddingRight"},ps:{type:"spacing",property:"paddingInlineStart"},pe:{type:"spacing",property:"paddingInlineEnd"},px:{type:"spacing",property:"paddingInline"},py:{type:"spacing",property:"paddingBlock"},bd:{type:"border",property:"border"},bdrs:{type:"radius",property:"borderRadius"},bg:{type:"color",property:"background"},c:{type:"textColor",property:"color"},opacity:{type:"identity",property:"opacity"},ff:{type:"fontFamily",property:"fontFamily"},fz:{type:"fontSize",property:"fontSize"},fw:{type:"identity",property:"fontWeight"},lts:{type:"size",property:"letterSpacing"},ta:{type:"identity",property:"textAlign"},lh:{type:"lineHeight",property:"lineHeight"},fs:{type:"identity",property:"fontStyle"},tt:{type:"identity",property:"textTransform"},td:{type:"identity",property:"textDecoration"},w:{type:"spacing",property:"width"},miw:{type:"spacing",property:"minWidth"},maw:{type:"spacing",property:"maxWidth"},h:{type:"spacing",property:"height"},mih:{type:"spacing",property:"minHeight"},mah:{type:"spacing",property:"maxHeight"},bgsz:{type:"size",property:"backgroundSize"},bgp:{type:"identity",property:"backgroundPosition"},bgr:{type:"identity",property:"backgroundRepeat"},bga:{type:"identity",property:"backgroundAttachment"},pos:{type:"identity",property:"position"},top:{type:"size",property:"top"},left:{type:"size",property:"left"},bottom:{type:"size",property:"bottom"},right:{type:"size",property:"right"},inset:{type:"size",property:"inset"},display:{type:"identity",property:"display"},flex:{type:"identity",property:"flex"}};function cm(t,o){const a=Cl({color:t,theme:o});return a.color==="dimmed"?"var(--mantine-color-dimmed)":a.color==="bright"?"var(--mantine-color-bright)":a.variable?`var(${a.variable})`:a.color}function I9(t,o){const a=Cl({color:t,theme:o});return a.isThemeColor&&a.shade===void 0?`var(--mantine-color-${a.color}-text)`:cm(t,o)}function K9(t,o){if(typeof t=="number")return F(t);if(typeof t=="string"){const[a,r,...s]=t.split(" ").filter(f=>f.trim()!=="");let c=`${F(a)}`;return r&&(c+=` ${r}`),s.length>0&&(c+=` ${cm(s.join(" "),o)}`),c.trim()}return t}const W0={text:"var(--mantine-font-family)",mono:"var(--mantine-font-family-monospace)",monospace:"var(--mantine-font-family-monospace)",heading:"var(--mantine-font-family-headings)",headings:"var(--mantine-font-family-headings)"};function F9(t){return typeof t=="string"&&t in W0?W0[t]:t}const J9=["h1","h2","h3","h4","h5","h6"];function W9(t,o){return typeof t=="string"&&t in o.fontSizes?`var(--mantine-font-size-${t})`:typeof t=="string"&&J9.includes(t)?`var(--mantine-${t}-font-size)`:typeof t=="number"||typeof t=="string"?F(t):t}function ew(t){return t}const tw=["h1","h2","h3","h4","h5","h6"];function nw(t,o){return typeof t=="string"&&t in o.lineHeights?`var(--mantine-line-height-${t})`:typeof t=="string"&&tw.includes(t)?`var(--mantine-${t}-line-height)`:t}function ow(t,o){return typeof t=="string"&&t in o.radius?`var(--mantine-radius-${t})`:typeof t=="number"||typeof t=="string"?F(t):t}function lw(t){return typeof t=="number"?F(t):t}function aw(t,o){if(typeof t=="number")return F(t);if(typeof t=="string"){const a=t.replace("-","");if(!(a in o.spacing))return F(t);const r=`--mantine-spacing-${a}`;return t.startsWith("-")?`calc(var(${r}) * -1)`:`var(${r})`}return t}const bd={color:cm,textColor:I9,fontSize:W9,spacing:aw,radius:ow,identity:ew,size:lw,lineHeight:nw,fontFamily:F9,border:K9};function ev(t){return t.replace("(min-width: ","").replace("em)","")}function rw({media:t,...o}){const r=Object.keys(t).sort((s,c)=>Number(ev(s))-Number(ev(c))).map(s=>({query:s,styles:t[s]}));return{...o,media:r}}function iw(t){if(typeof t!="object"||t===null)return!1;const o=Object.keys(t);return!(o.length===1&&o[0]==="base")}function sw(t){return typeof t=="object"&&t!==null?"base"in t?t.base:void 0:t}function cw(t){return typeof t=="object"&&t!==null?$n(t).filter(o=>o!=="base"):[]}function uw(t,o){return typeof t=="object"&&t!==null&&o in t?t[o]:t}function Iy({styleProps:t,data:o,theme:a}){return rw($n(t).reduce((r,s)=>{if(s==="hiddenFrom"||s==="visibleFrom"||s==="sx")return r;const c=o[s],f=Array.isArray(c.property)?c.property:[c.property],d=sw(t[s]);if(!iw(t[s]))return f.forEach(h=>{r.inlineStyles[h]=bd[c.type](d,a)}),r;r.hasResponsiveStyles=!0;const p=cw(t[s]);return f.forEach(h=>{d!=null&&(r.styles[h]=bd[c.type](d,a)),p.forEach(v=>{const y=`(min-width: ${a.breakpoints[v]})`;r.media[y]={...r.media[y],[h]:bd[c.type](uw(t[s],v),a)}})}),r},{hasResponsiveStyles:!1,styles:{},inlineStyles:{},media:{}}))}function Ky(){return`__m__-${S.useId().replace(/[:«»]/g,"")}`}function Fy(t,o){return Array.isArray(t)?[...t].reduce((a,r)=>({...a,...Fy(r,o)}),{}):typeof t=="function"?t(o):t??{}}function Jy(t){return t.startsWith("data-")?t:`data-${t}`}function fw(t){return Object.keys(t).reduce((o,a)=>{const r=t[a];return r===void 0||r===""||r===!1||r===null||(o[Jy(a)]=t[a]),o},{})}function Wy(t){return t?typeof t=="string"?{[Jy(t)]:!0}:Array.isArray(t)?[...t].reduce((o,a)=>({...o,...Wy(a)}),{}):fw(t):null}function Vd(t,o){return Array.isArray(t)?[...t].reduce((a,r)=>({...a,...Vd(r,o)}),{}):typeof t=="function"?t(o):t??{}}function dw({theme:t,style:o,vars:a,styleProps:r}){const s=Vd(o,t),c=Vd(a,t);return{...s,...c,...r}}const eb=S.forwardRef(({component:t,style:o,__vars:a,className:r,variant:s,mod:c,size:f,hiddenFrom:d,visibleFrom:p,lightHidden:h,darkHidden:v,renderRoot:y,__size:x,...C},T)=>{const w=Gt(),M=t||"div",{styleProps:R,rest:_}=sc(C),A=f9()?.()?.(R.sx),H=Ky(),L=Iy({styleProps:R,theme:w,data:Q9}),Z={ref:T,style:dw({theme:w,style:o,vars:a,styleProps:L.inlineStyles}),className:xo(r,A,{[H]:L.hasResponsiveStyles,"mantine-light-hidden":h,"mantine-dark-hidden":v,[`mantine-hidden-from-${d}`]:d,[`mantine-visible-from-${p}`]:p}),"data-variant":s,"data-size":zy(f)?void 0:f||void 0,size:x,...Wy(c),..._};return g.jsxs(g.Fragment,{children:[L.hasResponsiveStyles&&g.jsx(Qy,{selector:`.${H}`,styles:L.styles,media:L.media}),typeof y=="function"?y(Z):g.jsx(M,{...Z})]})});eb.displayName="@mantine/core/Box";const he=eb;function tb(t){return t}function mw(t){const o=t;return a=>{const r=S.forwardRef((s,c)=>g.jsx(o,{...a,...s,ref:c}));return r.extend=o.extend,r.displayName=`WithProps(${o.displayName})`,r}}function Oe(t){const o=S.forwardRef(t);return o.extend=tb,o.withProps=a=>{const r=S.forwardRef((s,c)=>g.jsx(o,{...a,...s,ref:c}));return r.extend=o.extend,r.displayName=`WithProps(${o.displayName})`,r},o}function Rt(t){const o=S.forwardRef(t);return o.withProps=a=>{const r=S.forwardRef((s,c)=>g.jsx(o,{...a,...s,ref:c}));return r.extend=o.extend,r.displayName=`WithProps(${o.displayName})`,r},o.extend=tb,o}const pw=S.createContext({dir:"ltr",toggleDirection:()=>{},setDirection:()=>{}});function Ta(){return S.useContext(pw)}var nb={root:"m_87cf2631"};const hw={__staticSelector:"UnstyledButton"},Fo=Rt((t,o)=>{const a=ie("UnstyledButton",hw,t),{className:r,component:s="button",__staticSelector:c,unstyled:f,classNames:d,styles:p,style:h,attributes:v,...y}=a,x=_e({name:c,props:a,classes:nb,className:r,style:h,classNames:d,styles:p,unstyled:f,attributes:v});return g.jsx(he,{...x("root",{focusable:!0}),component:s,ref:o,type:s==="button"?"button":void 0,...y})});Fo.classes=nb;Fo.displayName="@mantine/core/UnstyledButton";var ob={root:"m_515a97f8"};const um=Oe((t,o)=>{const a=ie("VisuallyHidden",null,t),{classNames:r,className:s,style:c,styles:f,unstyled:d,vars:p,attributes:h,...v}=a,y=_e({name:"VisuallyHidden",classes:ob,props:a,className:s,style:c,classNames:r,styles:f,unstyled:d,attributes:h});return g.jsx(he,{component:"span",ref:o,...y("root"),...v})});um.classes=ob;um.displayName="@mantine/core/VisuallyHidden";var lb={root:"m_1b7284a3"};const gw=(t,{radius:o,shadow:a})=>({root:{"--paper-radius":o===void 0?void 0:Mt(o),"--paper-shadow":Vy(a)}}),fm=Rt((t,o)=>{const a=ie("Paper",null,t),{classNames:r,className:s,style:c,styles:f,unstyled:d,withBorder:p,vars:h,radius:v,shadow:y,variant:x,mod:C,attributes:T,...w}=a,M=_e({name:"Paper",props:a,classes:lb,className:s,style:c,classNames:r,styles:f,unstyled:d,attributes:T,vars:h,varsResolver:gw});return g.jsx(he,{ref:o,mod:[{"data-with-border":p},C],...M("root"),variant:x,...w})});fm.classes=lb;fm.displayName="@mantine/core/Paper";function tv(t,o,a,r){return t==="center"||r==="center"?{top:o}:t==="end"?{bottom:a}:t==="start"?{top:a}:{}}function nv(t,o,a,r,s){return t==="center"||r==="center"?{left:o}:t==="end"?{[s==="ltr"?"right":"left"]:a}:t==="start"?{[s==="ltr"?"left":"right"]:a}:{}}const vw={bottom:"borderTopLeftRadius",left:"borderTopRightRadius",right:"borderBottomLeftRadius",top:"borderBottomRightRadius"};function yw({position:t,arrowSize:o,arrowOffset:a,arrowRadius:r,arrowPosition:s,arrowX:c,arrowY:f,dir:d}){const[p,h="center"]=t.split("-"),v={width:o,height:o,transform:"rotate(45deg)",position:"absolute",[vw[p]]:r},y=-o/2;return p==="left"?{...v,...tv(h,f,a,s),right:y,borderLeftColor:"transparent",borderBottomColor:"transparent",clipPath:"polygon(100% 0, 0 0, 100% 100%)"}:p==="right"?{...v,...tv(h,f,a,s),left:y,borderRightColor:"transparent",borderTopColor:"transparent",clipPath:"polygon(0 100%, 0 0, 100% 100%)"}:p==="top"?{...v,...nv(h,c,a,s,d),bottom:y,borderTopColor:"transparent",borderLeftColor:"transparent",clipPath:"polygon(0 100%, 100% 100%, 100% 0)"}:p==="bottom"?{...v,...nv(h,c,a,s,d),top:y,borderBottomColor:"transparent",borderRightColor:"transparent",clipPath:"polygon(0 100%, 0 0, 100% 0)"}:{}}const Bs=S.forwardRef(({position:t,arrowSize:o,arrowOffset:a,arrowRadius:r,arrowPosition:s,visible:c,arrowX:f,arrowY:d,style:p,...h},v)=>{const{dir:y}=Ta();return c?g.jsx("div",{...h,ref:v,style:{...p,...yw({position:t,arrowSize:o,arrowOffset:a,arrowRadius:r,arrowPosition:s,dir:y,arrowX:f,arrowY:d})}}):null});Bs.displayName="@mantine/core/FloatingArrow";function ab(t,o){if(t==="rtl"&&(o.includes("right")||o.includes("left"))){const[a,r]=o.split("-"),s=a==="right"?"left":"right";return r===void 0?s:`${s}-${r}`}return o}var rb={root:"m_9814e45f"};const bw={zIndex:Br("modal")},xw=(t,{gradient:o,color:a,backgroundOpacity:r,blur:s,radius:c,zIndex:f})=>({root:{"--overlay-bg":o||(a!==void 0||r!==void 0)&&Ln(a||"#000",r??.6)||void 0,"--overlay-filter":s?`blur(${F(s)})`:void 0,"--overlay-radius":c===void 0?void 0:Mt(c),"--overlay-z-index":f?.toString()}}),Vr=Rt((t,o)=>{const a=ie("Overlay",bw,t),{classNames:r,className:s,style:c,styles:f,unstyled:d,vars:p,fixed:h,center:v,children:y,radius:x,zIndex:C,gradient:T,blur:w,color:M,backgroundOpacity:R,mod:_,attributes:N,...A}=a,H=_e({name:"Overlay",props:a,classes:rb,className:s,style:c,classNames:r,styles:f,unstyled:d,attributes:N,vars:p,varsResolver:xw});return g.jsx(he,{ref:o,...H("root"),mod:[{center:v,fixed:h},_],...A,children:y})});Vr.classes=rb;Vr.displayName="@mantine/core/Overlay";function xd(t){const o=document.createElement("div");return o.setAttribute("data-portal","true"),typeof t.className=="string"&&o.classList.add(...t.className.split(" ").filter(Boolean)),typeof t.style=="object"&&Object.assign(o.style,t.style),typeof t.id=="string"&&o.setAttribute("id",t.id),o}function Sw({target:t,reuseTargetNode:o,...a}){if(t)return typeof t=="string"?document.querySelector(t)||xd(a):t;if(o){const r=document.querySelector("[data-mantine-shared-portal-node]");if(r)return r;const s=xd(a);return s.setAttribute("data-mantine-shared-portal-node","true"),document.body.appendChild(s),s}return xd(a)}const Cw={reuseTargetNode:!0},ib=Oe((t,o)=>{const{children:a,target:r,reuseTargetNode:s,...c}=ie("Portal",Cw,t),[f,d]=S.useState(!1),p=S.useRef(null);return $r(()=>(d(!0),p.current=Sw({target:r,reuseTargetNode:s,...c}),Vs(o,p.current),!r&&!s&&p.current&&document.body.appendChild(p.current),()=>{!r&&!s&&p.current&&document.body.removeChild(p.current)}),[r]),!f||!p.current?null:Zn.createPortal(g.jsx(g.Fragment,{children:a}),p.current)});ib.displayName="@mantine/core/Portal";const xa=Oe(({withinPortal:t=!0,children:o,...a},r)=>rc()==="test"||!t?g.jsx(g.Fragment,{children:o}):g.jsx(ib,{ref:r,...a,children:o}));xa.displayName="@mantine/core/OptionalPortal";const Rr=t=>({in:{opacity:1,transform:"scale(1)"},out:{opacity:0,transform:`scale(.9) translateY(${t==="bottom"?10:-10}px)`},transitionProperty:"transform, opacity"}),vs={fade:{in:{opacity:1},out:{opacity:0},transitionProperty:"opacity"},"fade-up":{in:{opacity:1,transform:"translateY(0)"},out:{opacity:0,transform:"translateY(30px)"},transitionProperty:"opacity, transform"},"fade-down":{in:{opacity:1,transform:"translateY(0)"},out:{opacity:0,transform:"translateY(-30px)"},transitionProperty:"opacity, transform"},"fade-left":{in:{opacity:1,transform:"translateX(0)"},out:{opacity:0,transform:"translateX(30px)"},transitionProperty:"opacity, transform"},"fade-right":{in:{opacity:1,transform:"translateX(0)"},out:{opacity:0,transform:"translateX(-30px)"},transitionProperty:"opacity, transform"},scale:{in:{opacity:1,transform:"scale(1)"},out:{opacity:0,transform:"scale(0)"},common:{transformOrigin:"top"},transitionProperty:"transform, opacity"},"scale-y":{in:{opacity:1,transform:"scaleY(1)"},out:{opacity:0,transform:"scaleY(0)"},common:{transformOrigin:"top"},transitionProperty:"transform, opacity"},"scale-x":{in:{opacity:1,transform:"scaleX(1)"},out:{opacity:0,transform:"scaleX(0)"},common:{transformOrigin:"left"},transitionProperty:"transform, opacity"},"skew-up":{in:{opacity:1,transform:"translateY(0) skew(0deg, 0deg)"},out:{opacity:0,transform:"translateY(-20px) skew(-10deg, -5deg)"},common:{transformOrigin:"top"},transitionProperty:"transform, opacity"},"skew-down":{in:{opacity:1,transform:"translateY(0) skew(0deg, 0deg)"},out:{opacity:0,transform:"translateY(20px) skew(-10deg, -5deg)"},common:{transformOrigin:"bottom"},transitionProperty:"transform, opacity"},"rotate-left":{in:{opacity:1,transform:"translateY(0) rotate(0deg)"},out:{opacity:0,transform:"translateY(20px) rotate(-5deg)"},common:{transformOrigin:"bottom"},transitionProperty:"transform, opacity"},"rotate-right":{in:{opacity:1,transform:"translateY(0) rotate(0deg)"},out:{opacity:0,transform:"translateY(20px) rotate(5deg)"},common:{transformOrigin:"top"},transitionProperty:"transform, opacity"},"slide-down":{in:{opacity:1,transform:"translateY(0)"},out:{opacity:0,transform:"translateY(-100%)"},common:{transformOrigin:"top"},transitionProperty:"transform, opacity"},"slide-up":{in:{opacity:1,transform:"translateY(0)"},out:{opacity:0,transform:"translateY(100%)"},common:{transformOrigin:"bottom"},transitionProperty:"transform, opacity"},"slide-left":{in:{opacity:1,transform:"translateX(0)"},out:{opacity:0,transform:"translateX(100%)"},common:{transformOrigin:"left"},transitionProperty:"transform, opacity"},"slide-right":{in:{opacity:1,transform:"translateX(0)"},out:{opacity:0,transform:"translateX(-100%)"},common:{transformOrigin:"right"},transitionProperty:"transform, opacity"},pop:{...Rr("bottom"),common:{transformOrigin:"center center"}},"pop-bottom-left":{...Rr("bottom"),common:{transformOrigin:"bottom left"}},"pop-bottom-right":{...Rr("bottom"),common:{transformOrigin:"bottom right"}},"pop-top-left":{...Rr("top"),common:{transformOrigin:"top left"}},"pop-top-right":{...Rr("top"),common:{transformOrigin:"top right"}}},ov={entering:"in",entered:"in",exiting:"out",exited:"out","pre-exiting":"out","pre-entering":"out"};function ww({transition:t,state:o,duration:a,timingFunction:r}){const s={WebkitBackfaceVisibility:"hidden",transitionDuration:`${a}ms`,transitionTimingFunction:r};return typeof t=="string"?t in vs?{transitionProperty:vs[t].transitionProperty,...s,...vs[t].common,...vs[t][ov[o]]}:{}:{transitionProperty:t.transitionProperty,...s,...t.common,...t[ov[o]]}}function Tw({duration:t,exitDuration:o,timingFunction:a,mounted:r,onEnter:s,onExit:c,onEntered:f,onExited:d,enterDelay:p,exitDelay:h}){const v=Gt(),y=e9(),x=v.respectReducedMotion?y:!1,[C,T]=S.useState(x?0:t),[w,M]=S.useState(r?"entered":"exited"),R=S.useRef(-1),_=S.useRef(-1),N=S.useRef(-1);function A(){window.clearTimeout(R.current),window.clearTimeout(_.current),cancelAnimationFrame(N.current)}const H=Z=>{A();const I=Z?s:c,J=Z?f:d,P=x?0:Z?t:o;T(P),P===0?(typeof I=="function"&&I(),typeof J=="function"&&J(),M(Z?"entered":"exited")):N.current=requestAnimationFrame(()=>{wv.flushSync(()=>{M(Z?"pre-entering":"pre-exiting")}),N.current=requestAnimationFrame(()=>{typeof I=="function"&&I(),M(Z?"entering":"exiting"),R.current=window.setTimeout(()=>{typeof J=="function"&&J(),M(Z?"entered":"exited")},P)})})},L=Z=>{if(A(),typeof(Z?p:h)!="number"){H(Z);return}_.current=window.setTimeout(()=>{H(Z)},Z?p:h)};return zr(()=>{L(r)},[r]),S.useEffect(()=>()=>{A()},[]),{transitionDuration:C,transitionStatus:w,transitionTimingFunction:a||"ease"}}function Qo({keepMounted:t,transition:o="fade",duration:a=250,exitDuration:r=a,mounted:s,children:c,timingFunction:f="ease",onExit:d,onEntered:p,onEnter:h,onExited:v,enterDelay:y,exitDelay:x}){const C=rc(),{transitionDuration:T,transitionStatus:w,transitionTimingFunction:M}=Tw({mounted:s,exitDuration:r,duration:a,timingFunction:f,onExit:d,onEntered:p,onEnter:h,onExited:v,enterDelay:y,exitDelay:x});return T===0||C==="test"?s?g.jsx(g.Fragment,{children:c({})}):t?c({display:"none"}):null:w==="exited"?t?c({display:"none"}):null:g.jsx(g.Fragment,{children:c(ww({transition:o,duration:T,state:w,timingFunction:M}))})}Qo.displayName="@mantine/core/Transition";const[Ew,sb]=nc("Popover component was not found in the tree");var cb={dropdown:"m_38a85659",arrow:"m_a31dc6c1",overlay:"m_3d7bc908"};function dm({children:t,active:o=!0,refProp:a="ref",innerRef:r}){const s=$y(o),c=Rn(s,r),f=Gr(t);return f?S.cloneElement(f,{[a]:c}):t}function ub(t){return g.jsx(um,{tabIndex:-1,"data-autofocus":!0,...t})}dm.displayName="@mantine/core/FocusTrap";ub.displayName="@mantine/core/FocusTrapInitialFocus";dm.InitialFocus=ub;const cc=Oe((t,o)=>{const a=ie("PopoverDropdown",null,t),{className:r,style:s,vars:c,children:f,onKeyDownCapture:d,variant:p,classNames:h,styles:v,...y}=a,x=sb(),C=X7({opened:x.opened,shouldReturnFocus:x.returnFocus}),T=x.withRoles?{"aria-labelledby":x.getTargetId(),id:x.getDropdownId(),role:"dialog",tabIndex:-1}:{},w=Rn(o,x.floating);return x.disabled?null:g.jsx(xa,{...x.portalProps,withinPortal:x.withinPortal,children:g.jsx(Qo,{mounted:x.opened,...x.transitionProps,transition:x.transitionProps?.transition||"fade",duration:x.transitionProps?.duration??150,keepMounted:x.keepMounted,exitDuration:typeof x.transitionProps?.exitDuration=="number"?x.transitionProps.exitDuration:x.transitionProps?.duration,children:M=>g.jsx(dm,{active:x.trapFocus&&x.opened,innerRef:w,children:g.jsxs(he,{...T,...y,variant:p,onKeyDownCapture:V7(()=>{x.onClose?.(),x.onDismiss?.()},{active:x.closeOnEscape,onTrigger:C,onKeyDown:d}),"data-position":x.placement,"data-fixed":x.floatingStrategy==="fixed"||void 0,...x.getStyles("dropdown",{className:r,props:a,classNames:h,styles:v,style:[{...M,zIndex:x.zIndex,top:x.y??0,left:x.x??0,width:x.width==="target"?void 0:F(x.width),...x.referenceHidden?{display:"none"}:null},x.resolvedStyles.dropdown,v?.dropdown,s]}),children:[f,g.jsx(Bs,{ref:x.arrowRef,arrowX:x.arrowX,arrowY:x.arrowY,visible:x.withArrow,position:x.placement,arrowSize:x.arrowSize,arrowRadius:x.arrowRadius,arrowOffset:x.arrowOffset,arrowPosition:x.arrowPosition,...x.getStyles("arrow",{props:a,classNames:h,styles:v})})]})})})})});cc.classes=cb;cc.displayName="@mantine/core/PopoverDropdown";const Mw={refProp:"ref",popupType:"dialog"},mm=Oe((t,o)=>{const{children:a,refProp:r,popupType:s,...c}=ie("PopoverTarget",Mw,t),f=Gr(a);if(!f)throw new Error("Popover.Target component children should be an element or a component that accepts ref. Fragments, strings, numbers and other primitive values are not supported");const d=c,p=sb(),h=Rn(p.reference,om(f),o),v=p.withRoles?{"aria-haspopup":s,"aria-expanded":p.opened,"aria-controls":p.opened?p.getDropdownId():void 0,id:p.getTargetId()}:{},y=f.props;return S.cloneElement(f,{...d,...v,...p.targetProps,className:xo(p.targetProps.className,d.className,y.className),[r]:h,...p.controlled?null:{onClick:()=>{p.onToggle(),y.onClick?.()}}})});mm.displayName="@mantine/core/PopoverTarget";function Rw(t){if(t===void 0)return{shift:!0,flip:!0};const o={...t};return t.shift===void 0&&(o.shift=!0),t.flip===void 0&&(o.flip=!0),o}function jw(t,o,a){const r=Rw(t.middlewares),s=[mn(t.offset),zC()];return t.dropdownVisible&&a!=="test"&&t.preventPositionChangeWhenVisible&&(r.flip=!1),r.flip&&s.push(typeof r.flip=="boolean"?yo():yo(r.flip)),r.shift&&s.push(Io(typeof r.shift=="boolean"?{limiter:d0(),padding:5}:{limiter:d0(),padding:5,...r.shift})),r.inline&&s.push(typeof r.inline=="boolean"?jr():jr(r.inline)),s.push(Xv({element:t.arrowRef,padding:t.arrowOffset})),(r.size||t.width==="target")&&s.push(Dr({...typeof r.size=="boolean"?{}:r.size,apply({rects:c,availableWidth:f,availableHeight:d,...p}){const v=o().refs.floating.current?.style??{};r.size&&(typeof r.size=="object"&&r.size.apply?r.size.apply({rects:c,availableWidth:f,availableHeight:d,...p}):Object.assign(v,{maxWidth:`${f}px`,maxHeight:`${d}px`})),t.width==="target"&&Object.assign(v,{width:`${c.reference.width}px`})}})),s}function _w(t){const o=rc(),[a,r]=wa({value:t.opened,defaultValue:t.defaultOpened,finalValue:!1,onChange:t.onChange}),s=S.useRef(a),c=()=>{a&&!t.disabled&&r(!1)},f=()=>{t.disabled||r(!a)},d=Ws({strategy:t.strategy,placement:t.preventPositionChangeWhenVisible?t.positionRef.current:t.position,middleware:jw(t,()=>d,o),whileElementsMounted:t.keepMounted?void 0:js});return S.useEffect(()=>{if(!(!d.refs.reference.current||!d.refs.floating.current)&&a)return js(d.refs.reference.current,d.refs.floating.current,d.update)},[a,d.update]),zr(()=>{t.onPositionChange?.(d.placement),t.positionRef.current=d.placement},[d.placement,t.preventPositionChangeWhenVisible]),zr(()=>{a!==s.current&&(a?t.onOpen?.():t.onClose?.()),s.current=a},[a,t.onClose,t.onOpen]),$r(()=>{let p=-1;return a&&(p=window.setTimeout(()=>t.setDropdownVisible(!0),4)),()=>{window.clearTimeout(p)}},[a,t.position]),{floating:d,controlled:typeof t.opened=="boolean",opened:a,onClose:c,onToggle:f}}const Ow={position:"bottom",offset:8,positionDependencies:[],transitionProps:{transition:"fade",duration:150},middlewares:{flip:!0,shift:!0,inline:!1},arrowSize:7,arrowOffset:5,arrowRadius:0,arrowPosition:"side",closeOnClickOutside:!0,withinPortal:!0,closeOnEscape:!0,trapFocus:!1,withRoles:!0,returnFocus:!1,withOverlay:!1,hideDetached:!0,clickOutsideEvents:["mousedown","touchstart"],zIndex:Br("popover"),__staticSelector:"Popover",width:"max-content"},Nw=(t,{radius:o,shadow:a})=>({dropdown:{"--popover-radius":o===void 0?void 0:Mt(o),"--popover-shadow":Vy(a)}});function jn(t){const o=ie("Popover",Ow,t),{children:a,position:r,offset:s,onPositionChange:c,positionDependencies:f,opened:d,transitionProps:p,onExitTransitionEnd:h,onEnterTransitionEnd:v,width:y,middlewares:x,withArrow:C,arrowSize:T,arrowOffset:w,arrowRadius:M,arrowPosition:R,unstyled:_,classNames:N,styles:A,closeOnClickOutside:H,withinPortal:L,portalProps:Z,closeOnEscape:I,clickOutsideEvents:J,trapFocus:P,onClose:ee,onDismiss:oe,onOpen:te,onChange:B,zIndex:ne,radius:D,shadow:U,id:V,defaultOpened:K,__staticSelector:W,withRoles:de,disabled:le,returnFocus:ae,variant:ye,keepMounted:ge,vars:Ne,floatingStrategy:Pe,withOverlay:Ee,overlayProps:ve,hideDetached:We,attributes:rt,preventPositionChangeWhenVisible:et,...ze}=o,ot=_e({name:W,props:o,classes:cb,classNames:N,styles:A,unstyled:_,attributes:rt,rootSelector:"dropdown",vars:Ne,varsResolver:Nw}),{resolvedStyles:tn}=ic({classNames:N,styles:A,props:o}),[On,So]=S.useState(d??K??!1),Nn=S.useRef(r),wt=S.useRef(null),[Xn,Tl]=S.useState(null),[Cc,wc]=S.useState(null),{dir:jt}=Ta(),Tc=rc(),Oa=Ca(V),ft=_w({middlewares:x,width:y,position:ab(jt,r),offset:typeof s=="number"?s+(C?T/2:0):s,arrowRef:wt,arrowOffset:w,onPositionChange:c,positionDependencies:f,opened:d,defaultOpened:K,onChange:B,onOpen:te,onClose:ee,onDismiss:oe,strategy:Pe,dropdownVisible:On,setDropdownVisible:So,positionRef:Nn,disabled:le,preventPositionChangeWhenVisible:et,keepMounted:ge});G7(()=>{H&&(ft.onClose(),oe?.())},J,[Xn,Cc]);const El=S.useCallback(Pn=>{Tl(Pn),ft.floating.refs.setReference(Pn)},[ft.floating.refs.setReference]),Ec=S.useCallback(Pn=>{wc(Pn),ft.floating.refs.setFloating(Pn)},[ft.floating.refs.setFloating]),Xr=S.useCallback(()=>{p?.onExited?.(),h?.(),So(!1),et||(Nn.current=r)},[p?.onExited,h,et,r]),Mc=S.useCallback(()=>{p?.onEntered?.(),v?.()},[p?.onEntered,v]);return g.jsxs(Ew,{value:{returnFocus:ae,disabled:le,controlled:ft.controlled,reference:El,floating:Ec,x:ft.floating.x,y:ft.floating.y,arrowX:ft.floating?.middlewareData?.arrow?.x,arrowY:ft.floating?.middlewareData?.arrow?.y,opened:ft.opened,arrowRef:wt,transitionProps:{...p,onExited:Xr,onEntered:Mc},width:y,withArrow:C,arrowSize:T,arrowOffset:w,arrowRadius:M,arrowPosition:R,placement:ft.floating.placement,trapFocus:P,withinPortal:L,portalProps:Z,zIndex:ne,radius:D,shadow:U,closeOnEscape:I,onDismiss:oe,onClose:ft.onClose,onToggle:ft.onToggle,getTargetId:()=>`${Oa}-target`,getDropdownId:()=>`${Oa}-dropdown`,withRoles:de,targetProps:ze,__staticSelector:W,classNames:N,styles:A,unstyled:_,variant:ye,keepMounted:ge,getStyles:ot,resolvedStyles:tn,floatingStrategy:Pe,referenceHidden:We&&Tc!=="test"?ft.floating.middlewareData.hide?.referenceHidden:!1},children:[a,Ee&&g.jsx(Qo,{transition:"fade",mounted:ft.opened,duration:p?.duration||250,exitDuration:p?.exitDuration||250,children:Pn=>g.jsx(xa,{withinPortal:L,children:g.jsx(Vr,{...ve,...ot("overlay",{className:ve?.className,style:[Pn,ve?.style]})})})})]})}jn.Target=mm;jn.Dropdown=cc;jn.displayName="@mantine/core/Popover";jn.extend=t=>t;var Cn={root:"m_5ae2e3c",barsLoader:"m_7a2bd4cd",bar:"m_870bb79","bars-loader-animation":"m_5d2b3b9d",dotsLoader:"m_4e3f22d7",dot:"m_870c4af","loader-dots-animation":"m_aac34a1",ovalLoader:"m_b34414df","oval-loader-animation":"m_f8e89c4b"};const fb=S.forwardRef(({className:t,...o},a)=>g.jsxs(he,{component:"span",className:xo(Cn.barsLoader,t),...o,ref:a,children:[g.jsx("span",{className:Cn.bar}),g.jsx("span",{className:Cn.bar}),g.jsx("span",{className:Cn.bar})]}));fb.displayName="@mantine/core/Bars";const db=S.forwardRef(({className:t,...o},a)=>g.jsxs(he,{component:"span",className:xo(Cn.dotsLoader,t),...o,ref:a,children:[g.jsx("span",{className:Cn.dot}),g.jsx("span",{className:Cn.dot}),g.jsx("span",{className:Cn.dot})]}));db.displayName="@mantine/core/Dots";const mb=S.forwardRef(({className:t,...o},a)=>g.jsx(he,{component:"span",className:xo(Cn.ovalLoader,t),...o,ref:a}));mb.displayName="@mantine/core/Oval";const pb={bars:fb,oval:mb,dots:db},Aw={loaders:pb,type:"oval"},Dw=(t,{size:o,color:a})=>({root:{"--loader-size":Xe(o,"loader-size"),"--loader-color":a?bo(a,t):void 0}}),Jo=Oe((t,o)=>{const a=ie("Loader",Aw,t),{size:r,color:s,type:c,vars:f,className:d,style:p,classNames:h,styles:v,unstyled:y,loaders:x,variant:C,children:T,attributes:w,...M}=a,R=_e({name:"Loader",props:a,classes:Cn,className:d,style:p,classNames:h,styles:v,unstyled:y,attributes:w,vars:f,varsResolver:Dw});return T?g.jsx(he,{...R("root"),ref:o,...M,children:T}):g.jsx(he,{...R("root"),ref:o,component:x[c],variant:C,size:r,...M})});Jo.defaultLoaders=pb;Jo.classes=Cn;Jo.displayName="@mantine/core/Loader";var Ea={root:"m_8d3f4000",icon:"m_8d3afb97",loader:"m_302b9fb1",group:"m_1a0f1b21",groupSection:"m_437b6484"};const lv={orientation:"horizontal"},Hw=(t,{borderWidth:o})=>({group:{"--ai-border-width":F(o)}}),pm=Oe((t,o)=>{const a=ie("ActionIconGroup",lv,t),{className:r,style:s,classNames:c,styles:f,unstyled:d,orientation:p,vars:h,borderWidth:v,variant:y,mod:x,attributes:C,...T}=ie("ActionIconGroup",lv,t),w=_e({name:"ActionIconGroup",props:a,classes:Ea,className:r,style:s,classNames:c,styles:f,unstyled:d,attributes:C,vars:h,varsResolver:Hw,rootSelector:"group"});return g.jsx(he,{...w("group"),ref:o,variant:y,mod:[{"data-orientation":p},x],role:"group",...T})});pm.classes=Ea;pm.displayName="@mantine/core/ActionIconGroup";const zw=(t,{radius:o,color:a,gradient:r,variant:s,autoContrast:c,size:f})=>{const d=t.variantColorResolver({color:a||t.primaryColor,theme:t,gradient:r,variant:s||"filled",autoContrast:c});return{groupSection:{"--section-height":Xe(f,"section-height"),"--section-padding-x":Xe(f,"section-padding-x"),"--section-fz":$t(f),"--section-radius":o===void 0?void 0:Mt(o),"--section-bg":a||s?d.background:void 0,"--section-color":d.color,"--section-bd":a||s?d.border:void 0}}},hm=Oe((t,o)=>{const a=ie("ActionIconGroupSection",null,t),{className:r,style:s,classNames:c,styles:f,unstyled:d,vars:p,variant:h,gradient:v,radius:y,autoContrast:x,attributes:C,...T}=a,w=_e({name:"ActionIconGroupSection",props:a,classes:Ea,className:r,style:s,classNames:c,styles:f,unstyled:d,attributes:C,vars:p,varsResolver:zw,rootSelector:"groupSection"});return g.jsx(he,{...w("groupSection"),ref:o,variant:h,...T})});hm.classes=Ea;hm.displayName="@mantine/core/ActionIconGroupSection";const Lw=(t,{size:o,radius:a,variant:r,gradient:s,color:c,autoContrast:f})=>{const d=t.variantColorResolver({color:c||t.primaryColor,theme:t,gradient:s,variant:r||"filled",autoContrast:f});return{root:{"--ai-size":Xe(o,"ai-size"),"--ai-radius":a===void 0?void 0:Mt(a),"--ai-bg":c||r?d.background:void 0,"--ai-hover":c||r?d.hover:void 0,"--ai-hover-color":c||r?d.hoverColor:void 0,"--ai-color":d.color,"--ai-bd":c||r?d.border:void 0}}},wl=Rt((t,o)=>{const a=ie("ActionIcon",null,t),{className:r,unstyled:s,variant:c,classNames:f,styles:d,style:p,loading:h,loaderProps:v,size:y,color:x,radius:C,__staticSelector:T,gradient:w,vars:M,children:R,disabled:_,"data-disabled":N,autoContrast:A,mod:H,attributes:L,...Z}=a,I=_e({name:["ActionIcon",T],props:a,className:r,style:p,classes:Ea,classNames:f,styles:d,unstyled:s,attributes:L,vars:M,varsResolver:Lw});return g.jsxs(Fo,{...I("root",{active:!_&&!h&&!N}),...Z,unstyled:s,variant:c,size:y,disabled:_||h,ref:o,mod:[{loading:h,disabled:_||N},H],children:[typeof h=="boolean"&&g.jsx(Qo,{mounted:h,transition:"slide-down",duration:150,children:J=>g.jsx(he,{component:"span",...I("loader",{style:J}),"aria-hidden":!0,children:g.jsx(Jo,{color:"var(--ai-color)",size:"calc(var(--ai-size) * 0.55)",...v})})}),g.jsx(he,{component:"span",mod:{loading:h},...I("icon"),children:R})]})});wl.classes=Ea;wl.displayName="@mantine/core/ActionIcon";wl.Group=pm;wl.GroupSection=hm;const hb=S.forwardRef(({size:t="var(--cb-icon-size, 70%)",style:o,...a},r)=>g.jsx("svg",{viewBox:"0 0 15 15",fill:"none",xmlns:"http://www.w3.org/2000/svg",style:{...o,width:t,height:t},ref:r,...a,children:g.jsx("path",{d:"M11.7816 4.03157C12.0062 3.80702 12.0062 3.44295 11.7816 3.2184C11.5571 2.99385 11.193 2.99385 10.9685 3.2184L7.50005 6.68682L4.03164 3.2184C3.80708 2.99385 3.44301 2.99385 3.21846 3.2184C2.99391 3.44295 2.99391 3.80702 3.21846 4.03157L6.68688 7.49999L3.21846 10.9684C2.99391 11.193 2.99391 11.557 3.21846 11.7816C3.44301 12.0061 3.80708 12.0061 4.03164 11.7816L7.50005 8.31316L10.9685 11.7816C11.193 12.0061 11.5571 12.0061 11.7816 11.7816C12.0062 11.557 12.0062 11.193 11.7816 10.9684L8.31322 7.49999L11.7816 4.03157Z",fill:"currentColor",fillRule:"evenodd",clipRule:"evenodd"})}));hb.displayName="@mantine/core/CloseIcon";var gb={root:"m_86a44da5","root--subtle":"m_220c80f2"};const Vw={variant:"subtle"},kw=(t,{size:o,radius:a,iconSize:r})=>({root:{"--cb-size":Xe(o,"cb-size"),"--cb-radius":a===void 0?void 0:Mt(a),"--cb-icon-size":F(r)}}),uc=Rt((t,o)=>{const a=ie("CloseButton",Vw,t),{iconSize:r,children:s,vars:c,radius:f,className:d,classNames:p,style:h,styles:v,unstyled:y,"data-disabled":x,disabled:C,variant:T,icon:w,mod:M,attributes:R,__staticSelector:_,...N}=a,A=_e({name:_||"CloseButton",props:a,className:d,style:h,classes:gb,classNames:p,styles:v,unstyled:y,attributes:R,vars:c,varsResolver:kw});return g.jsxs(Fo,{ref:o,...N,unstyled:y,variant:T,disabled:C,mod:[{disabled:C||x},M],...A("root",{variant:T,active:!C&&!x}),children:[w||g.jsx(hb,{}),s]})});uc.classes=gb;uc.displayName="@mantine/core/CloseButton";function Bw(t){return S.Children.toArray(t).filter(Boolean)}var vb={root:"m_4081bf90"};const Uw={preventGrowOverflow:!0,gap:"md",align:"center",justify:"flex-start",wrap:"wrap"},$w=(t,{grow:o,preventGrowOverflow:a,gap:r,align:s,justify:c,wrap:f},{childWidth:d})=>({root:{"--group-child-width":o&&a?d:void 0,"--group-gap":Ur(r),"--group-align":s,"--group-justify":c,"--group-wrap":f}}),Ct=Oe((t,o)=>{const a=ie("Group",Uw,t),{classNames:r,className:s,style:c,styles:f,unstyled:d,children:p,gap:h,align:v,justify:y,wrap:x,grow:C,preventGrowOverflow:T,vars:w,variant:M,__size:R,mod:_,attributes:N,...A}=a,H=Bw(p),L=H.length,Z=Ur(h??"md"),J={childWidth:`calc(${100/L}% - (${Z} - ${Z} / ${L}))`},P=_e({name:"Group",props:a,stylesCtx:J,className:s,style:c,classes:vb,classNames:r,styles:f,unstyled:d,attributes:N,vars:w,varsResolver:$w});return g.jsx(he,{...P("root"),ref:o,variant:M,mod:[{grow:C},_],size:R,...A,children:H})});Ct.classes=vb;Ct.displayName="@mantine/core/Group";const[Gw,Zw]=oc({size:"sm"});var vn={wrapper:"m_6c018570",input:"m_8fb7ebe7",section:"m_82577fc2",placeholder:"m_88bacfd0",root:"m_46b77525",label:"m_8fdc1311",required:"m_78a94662",error:"m_8f816625",description:"m_fe47ce59"};const yb=Oe((t,o)=>{const a=ie("InputClearButton",null,t),{size:r,variant:s,vars:c,classNames:f,styles:d,...p}=a,h=Zw(),{resolvedClassNames:v,resolvedStyles:y}=ic({classNames:f,styles:d,props:a});return g.jsx(uc,{variant:s||"transparent",ref:o,size:r||h?.size||"sm",classNames:v,styles:y,__staticSelector:"InputClearButton",style:{pointerEvents:"all",background:"var(--input-bg)",...p.style},...p})});yb.displayName="@mantine/core/InputClearButton";const qw={xs:7,sm:8,md:10,lg:12,xl:15};function Yw({__clearable:t,__clearSection:o,rightSection:a,__defaultRightSection:r,size:s="sm"}){const c=t&&o;return c&&(a||r)?g.jsxs("div",{"data-combined-clear-section":!0,style:{display:"flex",gap:2,alignItems:"center",paddingInlineEnd:qw[s]},children:[c,a||r]}):a===null?null:a||c||r}const[Xw,fc]=oc({offsetBottom:!1,offsetTop:!1,describedBy:void 0,getStyles:null,inputId:void 0,labelId:void 0}),Pw=(t,{size:o})=>({description:{"--input-description-size":o===void 0?void 0:`calc(${$t(o)} - ${F(2)})`}}),dc=Oe((t,o)=>{const a=ie("InputDescription",null,t),{classNames:r,className:s,style:c,styles:f,unstyled:d,vars:p,size:h,__staticSelector:v,__inheritStyles:y=!0,attributes:x,variant:C,...T}=ie("InputDescription",null,a),w=fc(),M=_e({name:["InputWrapper",v],props:a,classes:vn,className:s,style:c,classNames:r,styles:f,unstyled:d,attributes:x,rootSelector:"description",vars:p,varsResolver:Pw}),R=y&&w?.getStyles||M;return g.jsx(he,{component:"p",ref:o,variant:C,size:h,...R("description",w?.getStyles?{className:s,style:c}:void 0),...T})});dc.classes=vn;dc.displayName="@mantine/core/InputDescription";const Qw=(t,{size:o})=>({error:{"--input-error-size":o===void 0?void 0:`calc(${$t(o)} - ${F(2)})`}}),mc=Oe((t,o)=>{const a=ie("InputError",null,t),{classNames:r,className:s,style:c,styles:f,unstyled:d,vars:p,size:h,attributes:v,__staticSelector:y,__inheritStyles:x=!0,variant:C,...T}=a,w=_e({name:["InputWrapper",y],props:a,classes:vn,className:s,style:c,classNames:r,styles:f,unstyled:d,attributes:v,rootSelector:"error",vars:p,varsResolver:Qw}),M=fc(),R=x&&M?.getStyles||w;return g.jsx(he,{component:"p",ref:o,variant:C,size:h,...R("error",M?.getStyles?{className:s,style:c}:void 0),...T})});mc.classes=vn;mc.displayName="@mantine/core/InputError";const av={labelElement:"label"},Iw=(t,{size:o})=>({label:{"--input-label-size":$t(o),"--input-asterisk-color":void 0}}),pc=Oe((t,o)=>{const a=ie("InputLabel",av,t),{classNames:r,className:s,style:c,styles:f,unstyled:d,vars:p,labelElement:h,size:v,required:y,htmlFor:x,onMouseDown:C,children:T,__staticSelector:w,variant:M,mod:R,attributes:_,...N}=ie("InputLabel",av,a),A=_e({name:["InputWrapper",w],props:a,classes:vn,className:s,style:c,classNames:r,styles:f,unstyled:d,attributes:_,rootSelector:"label",vars:p,varsResolver:Iw}),H=fc(),L=H?.getStyles||A;return g.jsxs(he,{...L("label",H?.getStyles?{className:s,style:c}:void 0),component:h,variant:M,size:v,ref:o,htmlFor:h==="label"?x:void 0,mod:[{required:y},R],onMouseDown:Z=>{C?.(Z),!Z.defaultPrevented&&Z.detail>1&&Z.preventDefault()},...N,children:[T,y&&g.jsx("span",{...L("required"),"aria-hidden":!0,children:" *"})]})});pc.classes=vn;pc.displayName="@mantine/core/InputLabel";const gm=Oe((t,o)=>{const a=ie("InputPlaceholder",null,t),{classNames:r,className:s,style:c,styles:f,unstyled:d,vars:p,__staticSelector:h,variant:v,error:y,mod:x,attributes:C,...T}=a,w=_e({name:["InputPlaceholder",h],props:a,classes:vn,className:s,style:c,classNames:r,styles:f,unstyled:d,attributes:C,rootSelector:"placeholder"});return g.jsx(he,{...w("placeholder"),mod:[{error:!!y},x],component:"span",variant:v,ref:o,...T})});gm.classes=vn;gm.displayName="@mantine/core/InputPlaceholder";function Kw(t,{hasDescription:o,hasError:a}){const r=t.findIndex(p=>p==="input"),s=t.slice(0,r),c=t.slice(r+1),f=o&&s.includes("description")||a&&s.includes("error");return{offsetBottom:o&&c.includes("description")||a&&c.includes("error"),offsetTop:f}}const Fw={labelElement:"label",inputContainer:t=>t,inputWrapperOrder:["label","description","input","error"]},Jw=(t,{size:o})=>({label:{"--input-label-size":$t(o),"--input-asterisk-color":void 0},error:{"--input-error-size":o===void 0?void 0:`calc(${$t(o)} - ${F(2)})`},description:{"--input-description-size":o===void 0?void 0:`calc(${$t(o)} - ${F(2)})`}}),vm=Oe((t,o)=>{const a=ie("InputWrapper",Fw,t),{classNames:r,className:s,style:c,styles:f,unstyled:d,vars:p,size:h,variant:v,__staticSelector:y,inputContainer:x,inputWrapperOrder:C,label:T,error:w,description:M,labelProps:R,descriptionProps:_,errorProps:N,labelElement:A,children:H,withAsterisk:L,id:Z,required:I,__stylesApiProps:J,mod:P,attributes:ee,...oe}=a,te=_e({name:["InputWrapper",y],props:J||a,classes:vn,className:s,style:c,classNames:r,styles:f,unstyled:d,attributes:ee,vars:p,varsResolver:Jw}),B={size:h,variant:v,__staticSelector:y},ne=Ca(Z),D=typeof L=="boolean"?L:I,U=N?.id||`${ne}-error`,V=_?.id||`${ne}-description`,K=ne,W=!!w&&typeof w!="boolean",de=!!M,le=`${W?U:""} ${de?V:""}`,ae=le.trim().length>0?le.trim():void 0,ye=R?.id||`${ne}-label`,ge=T&&g.jsx(pc,{labelElement:A,id:ye,htmlFor:K,required:D,...B,...R,children:T},"label"),Ne=de&&g.jsx(dc,{..._,...B,size:_?.size||B.size,id:_?.id||V,children:M},"description"),Pe=g.jsx(S.Fragment,{children:x(H)},"input"),Ee=W&&S.createElement(mc,{...N,...B,size:N?.size||B.size,key:"error",id:N?.id||U},w),ve=C.map(We=>{switch(We){case"label":return ge;case"input":return Pe;case"description":return Ne;case"error":return Ee;default:return null}});return g.jsx(Xw,{value:{getStyles:te,describedBy:ae,inputId:K,labelId:ye,...Kw(C,{hasDescription:de,hasError:W})},children:g.jsx(he,{ref:o,variant:v,size:h,mod:[{error:!!w},P],...te("root"),...oe,children:ve})})});vm.classes=vn;vm.displayName="@mantine/core/InputWrapper";const Ww={variant:"default",leftSectionPointerEvents:"none",rightSectionPointerEvents:"none",withAria:!0,withErrorStyles:!0,size:"sm"},e6=(t,o,a)=>({wrapper:{"--input-margin-top":a.offsetTop?"calc(var(--mantine-spacing-xs) / 2)":void 0,"--input-margin-bottom":a.offsetBottom?"calc(var(--mantine-spacing-xs) / 2)":void 0,"--input-height":Xe(o.size,"input-height"),"--input-fz":$t(o.size),"--input-radius":o.radius===void 0?void 0:Mt(o.radius),"--input-left-section-width":o.leftSectionWidth!==void 0?F(o.leftSectionWidth):void 0,"--input-right-section-width":o.rightSectionWidth!==void 0?F(o.rightSectionWidth):void 0,"--input-padding-y":o.multiline?Xe(o.size,"input-padding-y"):void 0,"--input-left-section-pointer-events":o.leftSectionPointerEvents,"--input-right-section-pointer-events":o.rightSectionPointerEvents}}),en=Rt((t,o)=>{const a=ie("Input",Ww,t),{classNames:r,className:s,style:c,styles:f,unstyled:d,required:p,__staticSelector:h,__stylesApiProps:v,size:y,wrapperProps:x,error:C,disabled:T,leftSection:w,leftSectionProps:M,leftSectionWidth:R,rightSection:_,rightSectionProps:N,rightSectionWidth:A,rightSectionPointerEvents:H,leftSectionPointerEvents:L,variant:Z,vars:I,pointer:J,multiline:P,radius:ee,id:oe,withAria:te,withErrorStyles:B,mod:ne,inputSize:D,attributes:U,__clearSection:V,__clearable:K,__defaultRightSection:W,...de}=a,{styleProps:le,rest:ae}=sc(de),ye=fc(),ge={offsetBottom:ye?.offsetBottom,offsetTop:ye?.offsetTop},Ne=_e({name:["Input",h],props:v||a,classes:vn,className:s,style:c,classNames:r,styles:f,unstyled:d,attributes:U,stylesCtx:ge,rootSelector:"wrapper",vars:I,varsResolver:e6}),Pe=te?{required:p,disabled:T,"aria-invalid":!!C,"aria-describedby":ye?.describedBy,id:ye?.inputId||oe}:{},Ee=Yw({__clearable:K,__clearSection:V,rightSection:_,__defaultRightSection:W,size:y});return g.jsx(Gw,{value:{size:y||"sm"},children:g.jsxs(he,{...Ne("wrapper"),...le,...x,mod:[{error:!!C&&B,pointer:J,disabled:T,multiline:P,"data-with-right-section":!!Ee,"data-with-left-section":!!w},ne],variant:Z,size:y,children:[w&&g.jsx("div",{...M,"data-position":"left",...Ne("section",{className:M?.className,style:M?.style}),children:w}),g.jsx(he,{component:"input",...ae,...Pe,ref:o,required:p,mod:{disabled:T,error:!!C&&B},variant:Z,__size:D,...Ne("input")}),Ee&&g.jsx("div",{...N,"data-position":"right",...Ne("section",{className:N?.className,style:N?.style}),children:Ee})]})})});en.classes=vn;en.Wrapper=vm;en.Label=pc;en.Error=mc;en.Description=dc;en.Placeholder=gm;en.ClearButton=yb;en.displayName="@mantine/core/Input";function t6(t,o,a){const r=ie(t,o,a),{label:s,description:c,error:f,required:d,classNames:p,styles:h,className:v,unstyled:y,__staticSelector:x,__stylesApiProps:C,errorProps:T,labelProps:w,descriptionProps:M,wrapperProps:R,id:_,size:N,style:A,inputContainer:H,inputWrapperOrder:L,withAsterisk:Z,variant:I,vars:J,mod:P,attributes:ee,...oe}=r,{styleProps:te,rest:B}=sc(oe),ne={label:s,description:c,error:f,required:d,classNames:p,className:v,__staticSelector:x,__stylesApiProps:C||r,errorProps:T,labelProps:w,descriptionProps:M,unstyled:y,styles:h,size:N,style:A,inputContainer:H,inputWrapperOrder:L,withAsterisk:Z,variant:I,id:_,mod:P,attributes:ee,...R};return{...B,classNames:p,styles:h,unstyled:y,wrapperProps:{...ne,...te},inputProps:{required:d,classNames:p,styles:h,unstyled:y,size:N,__staticSelector:x,__stylesApiProps:C||r,error:f,variant:I,id:_,attributes:ee}}}const n6={__staticSelector:"InputBase",withAria:!0,size:"sm"},Ma=Rt((t,o)=>{const{inputProps:a,wrapperProps:r,...s}=t6("InputBase",n6,t);return g.jsx(en.Wrapper,{...r,children:g.jsx(en,{...a,...s,ref:o})})});Ma.classes={...en.classes,...en.Wrapper.classes};Ma.displayName="@mantine/core/InputBase";const o6={gap:{type:"spacing",property:"gap"},rowGap:{type:"spacing",property:"rowGap"},columnGap:{type:"spacing",property:"columnGap"},align:{type:"identity",property:"alignItems"},justify:{type:"identity",property:"justifyContent"},wrap:{type:"identity",property:"flexWrap"},direction:{type:"identity",property:"flexDirection"}};var bb={root:"m_8bffd616"};const ym=Rt((t,o)=>{const a=ie("Flex",null,t),{classNames:r,className:s,style:c,styles:f,unstyled:d,vars:p,gap:h,rowGap:v,columnGap:y,align:x,justify:C,wrap:T,direction:w,attributes:M,...R}=a,_=_e({name:"Flex",classes:bb,props:a,className:s,style:c,classNames:r,styles:f,unstyled:d,attributes:M,vars:p}),N=Gt(),A=Ky(),H=Iy({styleProps:{gap:h,rowGap:v,columnGap:y,align:x,justify:C,wrap:T,direction:w},theme:N,data:o6});return g.jsxs(g.Fragment,{children:[H.hasResponsiveStyles&&g.jsx(Qy,{selector:`.${A}`,styles:H.styles,media:H.media}),g.jsx(he,{ref:o,..._("root",{className:A,style:tc(H.inlineStyles)}),...R})]})});ym.classes=bb;ym.displayName="@mantine/core/Flex";function xb({open:t,close:o,openDelay:a,closeDelay:r}){const s=S.useRef(-1),c=S.useRef(-1),f=()=>{window.clearTimeout(s.current),window.clearTimeout(c.current)},d=()=>{f(),a===0||a===void 0?t():s.current=window.setTimeout(t,a)},p=()=>{f(),r===0||r===void 0?o():c.current=window.setTimeout(o,r)};return S.useEffect(()=>f,[]),{openDropdown:d,closeDropdown:p}}function Sb({style:t,size:o=16,...a}){return g.jsx("svg",{viewBox:"0 0 15 15",fill:"none",xmlns:"http://www.w3.org/2000/svg",style:{...t,width:F(o),height:F(o),display:"block"},...a,children:g.jsx("path",{d:"M3.13523 6.15803C3.3241 5.95657 3.64052 5.94637 3.84197 6.13523L7.5 9.56464L11.158 6.13523C11.3595 5.94637 11.6759 5.95657 11.8648 6.15803C12.0536 6.35949 12.0434 6.67591 11.842 6.86477L7.84197 10.6148C7.64964 10.7951 7.35036 10.7951 7.15803 10.6148L3.15803 6.86477C2.95657 6.67591 2.94637 6.35949 3.13523 6.15803Z",fill:"currentColor",fillRule:"evenodd",clipRule:"evenodd"})})}Sb.displayName="@mantine/core/AccordionChevron";var Cb={root:"m_b6d8b162"};function l6(t){if(t==="start")return"start";if(t==="end"||t)return"end"}const a6={inherit:!1},r6=(t,{variant:o,lineClamp:a,gradient:r,size:s,color:c})=>({root:{"--text-fz":$t(s),"--text-lh":k7(s),"--text-gradient":o==="gradient"?zd(r,t):void 0,"--text-line-clamp":typeof a=="number"?a.toString():void 0,"--text-color":c?bo(c,t):void 0}}),qn=Rt((t,o)=>{const a=ie("Text",a6,t),{lineClamp:r,truncate:s,inline:c,inherit:f,gradient:d,span:p,__staticSelector:h,vars:v,className:y,style:x,classNames:C,styles:T,unstyled:w,variant:M,mod:R,size:_,attributes:N,...A}=a,H=_e({name:["Text",h],props:a,classes:Cb,className:y,style:x,classNames:C,styles:T,unstyled:w,attributes:N,vars:v,varsResolver:r6});return g.jsx(he,{...H("root",{focusable:!0}),ref:o,component:p?"span":"p",variant:M,mod:[{"data-truncate":l6(s),"data-line-clamp":typeof r=="number","data-inline":c,"data-inherit":f},R],size:_,...A})});qn.classes=Cb;qn.displayName="@mantine/core/Text";function Us({size:t,style:o,...a}){const r=t!==void 0?{width:F(t),height:F(t),...o}:o;return g.jsx("svg",{viewBox:"0 0 10 7",fill:"none",xmlns:"http://www.w3.org/2000/svg",style:r,"aria-hidden":!0,...a,children:g.jsx("path",{d:"M4 4.586L1.707 2.293A1 1 0 1 0 .293 3.707l3 3a.997.997 0 0 0 1.414 0l5-5A1 1 0 1 0 8.293.293L4 4.586z",fill:"currentColor",fillRule:"evenodd",clipRule:"evenodd"})})}var hc={group:"m_11def92b",root:"m_f85678b6",image:"m_11f8ac07",placeholder:"m_104cd71f"};const wb=S.createContext(null),i6=wb.Provider;function s6(){return{withinGroup:!!S.useContext(wb)}}const c6=(t,{spacing:o})=>({group:{"--ag-spacing":Ur(o)}}),bm=Oe((t,o)=>{const a=ie("AvatarGroup",null,t),{classNames:r,className:s,style:c,styles:f,unstyled:d,vars:p,spacing:h,attributes:v,...y}=a,x=_e({name:"AvatarGroup",classes:hc,props:a,className:s,style:c,classNames:r,styles:f,unstyled:d,attributes:v,vars:p,varsResolver:c6,rootSelector:"group"});return g.jsx(i6,{value:!0,children:g.jsx(he,{ref:o,...x("group"),...y})})});bm.classes=hc;bm.displayName="@mantine/core/AvatarGroup";function u6(t){return g.jsx("svg",{...t,"data-avatar-placeholder-icon":!0,viewBox:"0 0 15 15",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:g.jsx("path",{d:"M0.877014 7.49988C0.877014 3.84219 3.84216 0.877045 7.49985 0.877045C11.1575 0.877045 14.1227 3.84219 14.1227 7.49988C14.1227 11.1575 11.1575 14.1227 7.49985 14.1227C3.84216 14.1227 0.877014 11.1575 0.877014 7.49988ZM7.49985 1.82704C4.36683 1.82704 1.82701 4.36686 1.82701 7.49988C1.82701 8.97196 2.38774 10.3131 3.30727 11.3213C4.19074 9.94119 5.73818 9.02499 7.50023 9.02499C9.26206 9.02499 10.8093 9.94097 11.6929 11.3208C12.6121 10.3127 13.1727 8.97172 13.1727 7.49988C13.1727 4.36686 10.6328 1.82704 7.49985 1.82704ZM10.9818 11.9787C10.2839 10.7795 8.9857 9.97499 7.50023 9.97499C6.01458 9.97499 4.71624 10.7797 4.01845 11.9791C4.97952 12.7272 6.18765 13.1727 7.49985 13.1727C8.81227 13.1727 10.0206 12.727 10.9818 11.9787ZM5.14999 6.50487C5.14999 5.207 6.20212 4.15487 7.49999 4.15487C8.79786 4.15487 9.84999 5.207 9.84999 6.50487C9.84999 7.80274 8.79786 8.85487 7.49999 8.85487C6.20212 8.85487 5.14999 7.80274 5.14999 6.50487ZM7.49999 5.10487C6.72679 5.10487 6.09999 5.73167 6.09999 6.50487C6.09999 7.27807 6.72679 7.90487 7.49999 7.90487C8.27319 7.90487 8.89999 7.27807 8.89999 6.50487C8.89999 5.73167 8.27319 5.10487 7.49999 5.10487Z",fill:"currentColor",fillRule:"evenodd",clipRule:"evenodd"})})}function f6(t){let o=0;for(let a=0;a<t.length;a+=1){const r=t.charCodeAt(a);o=(o<<5)-o+r,o|=0}return o}const d6=["blue","cyan","grape","green","indigo","lime","orange","pink","red","teal","violet"];function m6(t,o=d6){const a=f6(t),r=Math.abs(a)%o.length;return o[r]}function p6(t,o=2){const a=t.split(" ");return a.length===1?t.slice(0,o).toUpperCase():a.map(r=>r[0]).slice(0,o).join("").toUpperCase()}const h6=(t,{size:o,radius:a,variant:r,gradient:s,color:c,autoContrast:f,name:d,allowedInitialsColors:p})=>{const h=c==="initials"&&typeof d=="string"?m6(d,p):c,v=t.variantColorResolver({color:h||"gray",theme:t,gradient:s,variant:r||"light",autoContrast:f});return{root:{"--avatar-size":Xe(o,"avatar-size"),"--avatar-radius":a===void 0?void 0:Mt(a),"--avatar-bg":h||r?v.background:void 0,"--avatar-color":h||r?v.color:void 0,"--avatar-bd":h||r?v.border:void 0}}},gc=Rt((t,o)=>{const a=ie("Avatar",null,t),{classNames:r,className:s,style:c,styles:f,unstyled:d,vars:p,src:h,alt:v,radius:y,color:x,gradient:C,imageProps:T,children:w,autoContrast:M,mod:R,name:_,allowedInitialsColors:N,attributes:A,...H}=a,L=s6(),[Z,I]=S.useState(!h),J=_e({name:"Avatar",props:a,classes:hc,className:s,style:c,classNames:r,styles:f,unstyled:d,attributes:A,vars:p,varsResolver:h6});return S.useEffect(()=>I(!h),[h]),g.jsx(he,{...J("root"),mod:[{"within-group":L.withinGroup},R],ref:o,...H,children:Z||!h?g.jsx("span",{...J("placeholder"),title:v,children:w||typeof _=="string"&&p6(_)||g.jsx(u6,{})}):g.jsx("img",{...T,...J("image"),src:h,alt:v,onError:P=>{I(!0),T?.onError?.(P)}})})});gc.classes=hc;gc.displayName="@mantine/core/Avatar";gc.Group=bm;var Tb={root:"m_347db0ec","root--dot":"m_fbd81e3d",label:"m_5add502a",section:"m_91fdda9b"};const g6=(t,{radius:o,color:a,gradient:r,variant:s,size:c,autoContrast:f,circle:d})=>{const p=t.variantColorResolver({color:a||t.primaryColor,theme:t,gradient:r,variant:s||"filled",autoContrast:f});return{root:{"--badge-height":Xe(c,"badge-height"),"--badge-padding-x":Xe(c,"badge-padding-x"),"--badge-fz":Xe(c,"badge-fz"),"--badge-radius":d||o===void 0?void 0:Mt(o),"--badge-bg":a||s?p.background:void 0,"--badge-color":a||s?p.color:void 0,"--badge-bd":a||s?p.border:void 0,"--badge-dot-color":s==="dot"?bo(a,t):void 0}}},xm=Rt((t,o)=>{const a=ie("Badge",null,t),{classNames:r,className:s,style:c,styles:f,unstyled:d,vars:p,radius:h,color:v,gradient:y,leftSection:x,rightSection:C,children:T,variant:w,fullWidth:M,autoContrast:R,circle:_,mod:N,attributes:A,...H}=a,L=_e({name:"Badge",props:a,classes:Tb,className:s,style:c,classNames:r,styles:f,unstyled:d,attributes:A,vars:p,varsResolver:g6});return g.jsxs(he,{variant:w,mod:[{block:M,circle:_,"with-right-section":!!C,"with-left-section":!!x},N],...L("root",{variant:w}),ref:o,...H,children:[x&&g.jsx("span",{...L("section"),"data-position":"left",children:x}),g.jsx("span",{...L("label"),children:T}),C&&g.jsx("span",{...L("section"),"data-position":"right",children:C})]})});xm.classes=Tb;xm.displayName="@mantine/core/Badge";var Ra={root:"m_77c9d27d",inner:"m_80f1301b",label:"m_811560b9",section:"m_a74036a",loader:"m_a25b86ee",group:"m_80d6d844",groupSection:"m_70be2a01"};const rv={orientation:"horizontal"},v6=(t,{borderWidth:o})=>({group:{"--button-border-width":F(o)}}),Sm=Oe((t,o)=>{const a=ie("ButtonGroup",rv,t),{className:r,style:s,classNames:c,styles:f,unstyled:d,orientation:p,vars:h,borderWidth:v,variant:y,mod:x,attributes:C,...T}=ie("ButtonGroup",rv,t),w=_e({name:"ButtonGroup",props:a,classes:Ra,className:r,style:s,classNames:c,styles:f,unstyled:d,attributes:C,vars:h,varsResolver:v6,rootSelector:"group"});return g.jsx(he,{...w("group"),ref:o,variant:y,mod:[{"data-orientation":p},x],role:"group",...T})});Sm.classes=Ra;Sm.displayName="@mantine/core/ButtonGroup";const y6=(t,{radius:o,color:a,gradient:r,variant:s,autoContrast:c,size:f})=>{const d=t.variantColorResolver({color:a||t.primaryColor,theme:t,gradient:r,variant:s||"filled",autoContrast:c});return{groupSection:{"--section-height":Xe(f,"section-height"),"--section-padding-x":Xe(f,"section-padding-x"),"--section-fz":f?.includes("compact")?$t(f.replace("compact-","")):$t(f),"--section-radius":o===void 0?void 0:Mt(o),"--section-bg":a||s?d.background:void 0,"--section-color":d.color,"--section-bd":a||s?d.border:void 0}}},Cm=Oe((t,o)=>{const a=ie("ButtonGroupSection",null,t),{className:r,style:s,classNames:c,styles:f,unstyled:d,vars:p,variant:h,gradient:v,radius:y,autoContrast:x,attributes:C,...T}=a,w=_e({name:"ButtonGroupSection",props:a,classes:Ra,className:r,style:s,classNames:c,styles:f,unstyled:d,attributes:C,vars:p,varsResolver:y6,rootSelector:"groupSection"});return g.jsx(he,{...w("groupSection"),ref:o,variant:h,...T})});Cm.classes=Ra;Cm.displayName="@mantine/core/ButtonGroupSection";const b6={in:{opacity:1,transform:`translate(-50%, calc(-50% + ${F(1)}))`},out:{opacity:0,transform:"translate(-50%, -200%)"},common:{transformOrigin:"center"},transitionProperty:"transform, opacity"},x6=(t,{radius:o,color:a,gradient:r,variant:s,size:c,justify:f,autoContrast:d})=>{const p=t.variantColorResolver({color:a||t.primaryColor,theme:t,gradient:r,variant:s||"filled",autoContrast:d});return{root:{"--button-justify":f,"--button-height":Xe(c,"button-height"),"--button-padding-x":Xe(c,"button-padding-x"),"--button-fz":c?.includes("compact")?$t(c.replace("compact-","")):$t(c),"--button-radius":o===void 0?void 0:Mt(o),"--button-bg":a||s?p.background:void 0,"--button-hover":a||s?p.hover:void 0,"--button-color":p.color,"--button-bd":a||s?p.border:void 0,"--button-hover-color":a||s?p.hoverColor:void 0}}},_n=Rt((t,o)=>{const a=ie("Button",null,t),{style:r,vars:s,className:c,color:f,disabled:d,children:p,leftSection:h,rightSection:v,fullWidth:y,variant:x,radius:C,loading:T,loaderProps:w,gradient:M,classNames:R,styles:_,unstyled:N,"data-disabled":A,autoContrast:H,mod:L,attributes:Z,...I}=a,J=_e({name:"Button",props:a,classes:Ra,className:c,style:r,classNames:R,styles:_,unstyled:N,attributes:Z,vars:s,varsResolver:x6}),P=!!h,ee=!!v;return g.jsxs(Fo,{ref:o,...J("root",{active:!d&&!T&&!A}),unstyled:N,variant:x,disabled:d||T,mod:[{disabled:d||A,loading:T,block:y,"with-left-section":P,"with-right-section":ee},L],...I,children:[typeof T=="boolean"&&g.jsx(Qo,{mounted:T,transition:b6,duration:150,children:oe=>g.jsx(he,{component:"span",...J("loader",{style:oe}),"aria-hidden":!0,children:g.jsx(Jo,{color:"var(--button-color)",size:"calc(var(--button-height) / 1.8)",...w})})}),g.jsxs("span",{...J("inner"),children:[h&&g.jsx(he,{component:"span",...J("section"),mod:{position:"left"},children:h}),g.jsx(he,{component:"span",mod:{loading:T},...J("label"),children:p}),v&&g.jsx(he,{component:"span",...J("section"),mod:{position:"right"},children:v})]})]})});_n.classes=Ra;_n.displayName="@mantine/core/Button";_n.Group=Sm;_n.GroupSection=Cm;const[S6,C6]=nc("Card component was not found in tree");var wm={root:"m_e615b15f",section:"m_599a2148"};const vc=Rt((t,o)=>{const a=ie("CardSection",null,t),{classNames:r,className:s,style:c,styles:f,vars:d,withBorder:p,inheritPadding:h,mod:v,...y}=a,x=C6();return g.jsx(he,{ref:o,mod:[{"with-border":p,"inherit-padding":h},v],...x.getStyles("section",{className:s,style:c,styles:f,classNames:r}),...y})});vc.classes=wm;vc.displayName="@mantine/core/CardSection";const w6=(t,{padding:o})=>({root:{"--card-padding":Ur(o)}}),Zr=Rt((t,o)=>{const a=ie("Card",null,t),{classNames:r,className:s,style:c,styles:f,unstyled:d,vars:p,children:h,padding:v,attributes:y,...x}=a,C=_e({name:"Card",props:a,classes:wm,className:s,style:c,classNames:r,styles:f,unstyled:d,attributes:y,vars:p,varsResolver:w6}),T=S.Children.toArray(h),w=T.map((M,R)=>typeof M=="object"&&M&&"type"in M&&M.type===vc?S.cloneElement(M,{"data-first-section":R===0||void 0,"data-last-section":R===T.length-1||void 0}):M);return g.jsx(S6,{value:{getStyles:C},children:g.jsx(fm,{ref:o,unstyled:d,...C("root"),...x,children:w})})});Zr.classes=wm;Zr.displayName="@mantine/core/Card";Zr.Section=vc;var Eb={root:"m_f59ffda3",label:"m_be049a53","label--outline":"m_3904c1af","label--filled":"m_fa109255","label--light":"m_f7e165c3",iconWrapper:"m_9ac86df9",checkIcon:"m_d6d72580",input:"m_bde07329"};const[T6,E6]=oc();function Mb(t){const{value:o,defaultValue:a,onChange:r,multiple:s,children:c}=ie("ChipGroup",null,t),[f,d]=wa({value:o,defaultValue:a,finalValue:s?[]:null,onChange:r}),p=v=>Array.isArray(f)?f.includes(v):v===f,h=v=>{const y=v.currentTarget.value;Array.isArray(f)?d(f.includes(y)?f.filter(x=>x!==y):[...f,y]):d(y)};return g.jsx(T6,{value:{isChipSelected:p,onChange:h,multiple:s},children:c})}Mb.displayName="@mantine/core/ChipGroup";const M6={type:"checkbox"},R6=(t,{size:o,radius:a,variant:r,color:s,autoContrast:c})=>{const f=t.variantColorResolver({color:s||t.primaryColor,theme:t,variant:r||"filled",autoContrast:c});return{root:{"--chip-fz":$t(o),"--chip-size":Xe(o,"chip-size"),"--chip-radius":a===void 0?void 0:Mt(a),"--chip-checked-padding":Xe(o,"chip-checked-padding"),"--chip-padding":Xe(o,"chip-padding"),"--chip-icon-size":Xe(o,"chip-icon-size"),"--chip-bg":s||r?f.background:void 0,"--chip-hover":s||r?f.hover:void 0,"--chip-color":s||r?f.color:void 0,"--chip-bd":s||r?f.border:void 0,"--chip-spacing":Xe(o,"chip-spacing")}}},yc=Oe((t,o)=>{const a=ie("Chip",M6,t),{classNames:r,className:s,style:c,styles:f,unstyled:d,vars:p,id:h,checked:v,defaultChecked:y,onChange:x,value:C,wrapperProps:T,type:w,disabled:M,children:R,size:_,variant:N,icon:A,rootRef:H,autoContrast:L,mod:Z,attributes:I,...J}=a,P=_e({name:"Chip",classes:Eb,props:a,className:s,style:c,classNames:r,styles:f,unstyled:d,attributes:I,vars:p,varsResolver:R6}),ee=E6(),oe=Ca(h),{styleProps:te,rest:B}=sc(J),[ne,D]=wa({value:v,defaultValue:y,finalValue:!1,onChange:x}),U=ee?{checked:ee.isChipSelected(C),onChange:K=>{ee.onChange(K),x?.(K.currentTarget.checked)},type:ee.multiple?"checkbox":"radio"}:{},V=U.checked||ne;return g.jsxs(he,{size:_,variant:N,ref:H,mod:Z,...P("root"),...te,...T,children:[g.jsx("input",{type:w,...P("input"),checked:V,onChange:K=>D(K.currentTarget.checked),id:oe,disabled:M,ref:o,value:C,...U,...B}),g.jsxs("label",{htmlFor:oe,"data-checked":V||void 0,"data-disabled":M||void 0,...P("label",{variant:N||"filled"}),children:[V&&A!==null&&A!==!1&&g.jsx("span",{...P("iconWrapper"),children:A===void 0?g.jsx(Us,{...P("checkIcon")}):A}),g.jsx("span",{children:R})]})]})});yc.classes=Eb;yc.displayName="@mantine/core/Chip";yc.Group=Mb;var Rb={root:"m_3eebeb36",label:"m_9e365f20"};const j6={orientation:"horizontal"},_6=(t,{color:o,variant:a,size:r})=>({root:{"--divider-color":o?bo(o,t):void 0,"--divider-border-style":a,"--divider-size":Xe(r,"divider-size")}}),Tm=Oe((t,o)=>{const a=ie("Divider",j6,t),{classNames:r,className:s,style:c,styles:f,unstyled:d,vars:p,color:h,orientation:v,label:y,labelPosition:x,mod:C,attributes:T,...w}=a,M=_e({name:"Divider",classes:Rb,props:a,className:s,style:c,classNames:r,styles:f,unstyled:d,attributes:T,vars:p,varsResolver:_6});return g.jsx(he,{ref:o,mod:[{orientation:v,"with-label":!!y},C],...M("root"),...w,role:"separator",children:y&&g.jsx(he,{component:"span",mod:{position:x},...M("label"),children:y})})});Tm.classes=Rb;Tm.displayName="@mantine/core/Divider";const O6={multiple:!1},jb=S.forwardRef((t,o)=>{const{onChange:a,children:r,multiple:s,accept:c,name:f,form:d,resetRef:p,disabled:h,capture:v,inputProps:y,...x}=ie("FileButton",O6,t),C=S.useRef(null),T=()=>{!h&&C.current?.click()},w=R=>{if(R.currentTarget.files===null)return a(s?[]:null);a(s?Array.from(R.currentTarget.files):R.currentTarget.files[0]||null)};return Vs(p,()=>{C.current&&(C.current.value="")}),g.jsxs(g.Fragment,{children:[g.jsx("input",{style:{display:"none"},type:"file",accept:c,multiple:s,onChange:w,ref:Rn(o,C),name:f,form:d,capture:v,...y}),r({onClick:T,...x})]})});jb.displayName="@mantine/core/FileButton";const N6=({value:t})=>g.jsx("div",{style:{overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},children:Array.isArray(t)?t.map(o=>o.name).join(", "):t?.name}),A6={valueComponent:N6,size:"sm"},Em=Oe((t,o)=>{const a=ie("FileInput",A6,t),{unstyled:r,vars:s,onChange:c,value:f,defaultValue:d,multiple:p,accept:h,name:v,form:y,valueComponent:x,clearable:C,clearButtonProps:T,readOnly:w,capture:M,fileInputProps:R,rightSection:_,size:N,placeholder:A,component:H,resetRef:L,classNames:Z,styles:I,attributes:J,...P}=a,ee=S.useRef(null),{resolvedClassNames:oe,resolvedStyles:te}=ic({classNames:Z,styles:I,props:a}),[B,ne]=wa({value:f,defaultValue:d,onChange:c,finalValue:p?[]:null}),D=Array.isArray(B)?B.length!==0:B!==null,U=_||(C&&D&&!w?g.jsx(uc,{...T,variant:"subtle",onClick:()=>ne(p?[]:null),size:N,unstyled:r}):null);return S.useEffect(()=>{(Array.isArray(B)&&B.length===0||B===null)&&ee.current?.()},[B]),g.jsx(jb,{onChange:ne,multiple:p,accept:h,name:v,form:y,resetRef:Rn(ee,L),disabled:w,capture:M,inputProps:R,children:V=>g.jsx(Ma,{component:H||"button",ref:o,rightSection:U,...V,...P,__staticSelector:"FileInput",multiline:!0,type:"button",pointer:!0,__stylesApiProps:a,unstyled:r,size:N,classNames:Z,styles:I,attributes:J,children:D?g.jsx(x,{value:B}):g.jsx(en.Placeholder,{__staticSelector:"FileInput",classNames:oe,styles:te,attributes:J,children:A})})})});Em.classes=Ma.classes;Em.displayName="@mantine/core/FileInput";const D6=Em;var _b={root:"m_6e45937b",loader:"m_e8eb006c",overlay:"m_df587f17"};const iv={transitionProps:{transition:"fade",duration:0},overlayProps:{backgroundOpacity:.75},zIndex:Br("overlay")},H6=(t,{zIndex:o})=>({root:{"--lo-z-index":o?.toString()}}),Mm=Oe((t,o)=>{const a=ie("LoadingOverlay",iv,t),{classNames:r,className:s,style:c,styles:f,unstyled:d,vars:p,transitionProps:h,loaderProps:v,overlayProps:y,visible:x,zIndex:C,attributes:T,...w}=a,M=Gt(),R=_e({name:"LoadingOverlay",classes:_b,props:a,className:s,style:c,classNames:r,styles:f,unstyled:d,attributes:T,vars:p,varsResolver:H6}),_={...iv.overlayProps,...y};return g.jsx(Qo,{transition:"fade",...h,mounted:!!x,children:N=>g.jsxs(he,{...R("root",{style:N}),ref:o,...w,children:[g.jsx(Jo,{...R("loader"),unstyled:d,...v}),g.jsx(Vr,{..._,...R("overlay"),darkHidden:!0,unstyled:d,color:y?.color||M.white}),g.jsx(Vr,{..._,...R("overlay"),lightHidden:!0,unstyled:d,color:y?.color||M.colors.dark[5]})]})})});Mm.classes=_b;Mm.displayName="@mantine/core/LoadingOverlay";const[z6,Wo]=nc("Menu component was not found in the tree");var el={dropdown:"m_dc9b7c9f",label:"m_9bfac126",divider:"m_efdf90cb",item:"m_99ac2aa1",itemLabel:"m_5476e0d3",itemSection:"m_8b75e504",chevron:"m_b85b0bed"};const Rm=Oe((t,o)=>{const{classNames:a,className:r,style:s,styles:c,vars:f,...d}=ie("MenuDivider",null,t),p=Wo();return g.jsx(he,{ref:o,...p.getStyles("divider",{className:r,style:s,styles:c,classNames:a}),...d})});Rm.classes=el;Rm.displayName="@mantine/core/MenuDivider";const jm=Oe((t,o)=>{const{classNames:a,className:r,style:s,styles:c,vars:f,onMouseEnter:d,onMouseLeave:p,onKeyDown:h,children:v,...y}=ie("MenuDropdown",null,t),x=S.useRef(null),C=Wo(),T=Bt(h,R=>{(R.key==="ArrowUp"||R.key==="ArrowDown")&&(R.preventDefault(),x.current?.querySelectorAll("[data-menu-item]:not(:disabled)")[0]?.focus())}),w=Bt(d,()=>(C.trigger==="hover"||C.trigger==="click-hover")&&C.openDropdown()),M=Bt(p,()=>(C.trigger==="hover"||C.trigger==="click-hover")&&C.closeDropdown());return g.jsxs(jn.Dropdown,{...y,onMouseEnter:w,onMouseLeave:M,role:"menu","aria-orientation":"vertical",ref:Rn(o,x),...C.getStyles("dropdown",{className:r,style:s,styles:c,classNames:a,withStaticClass:!1}),tabIndex:-1,"data-menu-dropdown":!0,onKeyDown:T,children:[C.withInitialFocusPlaceholder&&g.jsx("div",{tabIndex:-1,"data-autofocus":!0,"data-mantine-stop-propagation":!0,style:{outline:0}}),v]})});jm.classes=el;jm.displayName="@mantine/core/MenuDropdown";const[L6,bc]=oc(),_m=Rt((t,o)=>{const{classNames:a,className:r,style:s,styles:c,vars:f,color:d,closeMenuOnClick:p,leftSection:h,rightSection:v,children:y,disabled:x,"data-disabled":C,...T}=ie("MenuItem",null,t),w=Wo(),M=bc(),R=Gt(),{dir:_}=Ta(),N=S.useRef(null),A=T,H=Bt(A.onClick,()=>{C||(typeof p=="boolean"?p&&w.closeDropdownImmediately():w.closeOnItemClick&&w.closeDropdownImmediately())}),L=d?R.variantColorResolver({color:d,theme:R,variant:"light"}):void 0,Z=d?Cl({color:d,theme:R}):null,I=Bt(A.onKeyDown,J=>{J.key==="ArrowLeft"&&M&&(M.close(),M.focusParentItem())});return g.jsxs(Fo,{onMouseDown:J=>J.preventDefault(),...T,unstyled:w.unstyled,tabIndex:w.menuItemTabIndex,...w.getStyles("item",{className:r,style:s,styles:c,classNames:a}),ref:Rn(N,o),role:"menuitem",disabled:x,"data-menu-item":!0,"data-disabled":x||C||void 0,"data-mantine-stop-propagation":!0,onClick:H,onKeyDown:nm({siblingSelector:"[data-menu-item]:not([data-disabled])",parentSelector:"[data-menu-dropdown]",activateOnFocus:!1,loop:w.loop,dir:_,orientation:"vertical",onKeyDown:I}),__vars:{"--menu-item-color":Z?.isThemeColor&&Z?.shade===void 0?`var(--mantine-color-${Z.color}-6)`:L?.color,"--menu-item-hover":L?.hover},children:[h&&g.jsx("div",{...w.getStyles("itemSection",{styles:c,classNames:a}),"data-position":"left",children:h}),y&&g.jsx("div",{...w.getStyles("itemLabel",{styles:c,classNames:a}),children:y}),v&&g.jsx("div",{...w.getStyles("itemSection",{styles:c,classNames:a}),"data-position":"right",children:v})]})});_m.classes=el;_m.displayName="@mantine/core/MenuItem";const Om=Oe((t,o)=>{const{classNames:a,className:r,style:s,styles:c,vars:f,...d}=ie("MenuLabel",null,t),p=Wo();return g.jsx(he,{ref:o,...p.getStyles("label",{className:r,style:s,styles:c,classNames:a}),...d})});Om.classes=el;Om.displayName="@mantine/core/MenuLabel";const Nm=Oe((t,o)=>{const{classNames:a,className:r,style:s,styles:c,vars:f,onMouseEnter:d,onMouseLeave:p,onKeyDown:h,children:v,...y}=ie("MenuSubDropdown",null,t),x=S.useRef(null),C=Wo(),T=bc(),w=Bt(d,T?.open),M=Bt(p,T?.close);return g.jsx(jn.Dropdown,{...y,onMouseEnter:w,onMouseLeave:M,role:"menu","aria-orientation":"vertical",ref:Rn(o,x),...C.getStyles("dropdown",{className:r,style:s,styles:c,classNames:a,withStaticClass:!1}),tabIndex:-1,"data-menu-dropdown":!0,children:v})});Nm.classes=el;Nm.displayName="@mantine/core/MenuSubDropdown";const Am=Rt((t,o)=>{const{classNames:a,className:r,style:s,styles:c,vars:f,color:d,leftSection:p,rightSection:h,children:v,disabled:y,"data-disabled":x,closeMenuOnClick:C,...T}=ie("MenuSubItem",null,t),w=Wo(),M=bc(),R=Gt(),{dir:_}=Ta(),N=S.useRef(null),A=T,H=d?R.variantColorResolver({color:d,theme:R,variant:"light"}):void 0,L=d?Cl({color:d,theme:R}):null,Z=Bt(A.onKeyDown,ee=>{ee.key==="ArrowRight"&&(M?.open(),M?.focusFirstItem()),ee.key==="ArrowLeft"&&M?.parentContext&&(M.parentContext.close(),M.parentContext.focusParentItem())}),I=Bt(A.onClick,()=>{!x&&C&&w.closeDropdownImmediately()}),J=Bt(A.onMouseEnter,M?.open),P=Bt(A.onMouseLeave,M?.close);return g.jsxs(Fo,{onMouseDown:ee=>ee.preventDefault(),...T,unstyled:w.unstyled,tabIndex:w.menuItemTabIndex,...w.getStyles("item",{className:r,style:s,styles:c,classNames:a}),ref:Rn(N,o),role:"menuitem",disabled:y,"data-menu-item":!0,"data-sub-menu-item":!0,"data-disabled":y||x||void 0,"data-mantine-stop-propagation":!0,onMouseEnter:J,onMouseLeave:P,onClick:I,onKeyDown:nm({siblingSelector:"[data-menu-item]:not([data-disabled])",parentSelector:"[data-menu-dropdown]",activateOnFocus:!1,loop:w.loop,dir:_,orientation:"vertical",onKeyDown:Z}),__vars:{"--menu-item-color":L?.isThemeColor&&L?.shade===void 0?`var(--mantine-color-${L.color}-6)`:H?.color,"--menu-item-hover":H?.hover},children:[p&&g.jsx("div",{...w.getStyles("itemSection",{styles:c,classNames:a}),"data-position":"left",children:p}),v&&g.jsx("div",{...w.getStyles("itemLabel",{styles:c,classNames:a}),children:v}),g.jsx("div",{...w.getStyles("itemSection",{styles:c,classNames:a}),"data-position":"right",children:h||g.jsx(Sb,{...w.getStyles("chevron"),size:14})})]})});Am.classes=el;Am.displayName="@mantine/core/MenuSubItem";function Ob({children:t,refProp:o}){if(!Ly(t))throw new Error("Menu.Sub.Target component children should be an element or a component that accepts ref. Fragments, strings, numbers and other primitive values are not supported");return Wo(),g.jsx(jn.Target,{refProp:o,popupType:"menu",children:t})}Ob.displayName="@mantine/core/MenuSubTarget";const V6={offset:0,position:"right-start",transitionProps:{duration:0},openDelay:0,middlewares:{shift:{crossAxis:!0}}};function ja(t){const{children:o,closeDelay:a,openDelay:r,...s}=ie("MenuSub",V6,t),c=Ca(),[f,{open:d,close:p}]=n9(!1),h=bc(),{openDropdown:v,closeDropdown:y}=xb({open:d,close:p,closeDelay:a,openDelay:r}),x=()=>window.setTimeout(()=>{document.getElementById(`${c}-dropdown`)?.querySelectorAll("[data-menu-item]:not([data-disabled])")[0]?.focus()},16),C=()=>window.setTimeout(()=>{document.getElementById(`${c}-target`)?.focus()},16);return g.jsx(L6,{value:{opened:f,close:y,open:v,focusFirstItem:x,focusParentItem:C,parentContext:h},children:g.jsx(jn,{opened:f,withinPortal:!1,withArrow:!1,id:c,...s,children:o})})}ja.extend=t=>t;ja.displayName="@mantine/core/MenuSub";ja.Target=Ob;ja.Dropdown=Nm;ja.Item=Am;const k6={refProp:"ref"},Nb=S.forwardRef((t,o)=>{const{children:a,refProp:r,...s}=ie("MenuTarget",k6,t),c=Gr(a);if(!c)throw new Error("Menu.Target component children should be an element or a component that accepts ref. Fragments, strings, numbers and other primitive values are not supported");const f=Wo(),d=c.props,p=Bt(d.onClick,()=>{f.trigger==="click"?f.toggleDropdown():f.trigger==="click-hover"&&(f.setOpenedViaClick(!0),f.opened||f.openDropdown())}),h=Bt(d.onMouseEnter,()=>(f.trigger==="hover"||f.trigger==="click-hover")&&f.openDropdown()),v=Bt(d.onMouseLeave,()=>{(f.trigger==="hover"||f.trigger==="click-hover"&&!f.openedViaClick)&&f.closeDropdown()});return g.jsx(jn.Target,{refProp:r,popupType:"menu",ref:o,...s,children:S.cloneElement(c,{onClick:p,onMouseEnter:h,onMouseLeave:v,"data-expanded":f.opened?!0:void 0})})});Nb.displayName="@mantine/core/MenuTarget";const B6={trapFocus:!0,closeOnItemClick:!0,withInitialFocusPlaceholder:!0,clickOutsideEvents:["mousedown","touchstart","keydown"],loop:!0,trigger:"click",openDelay:0,closeDelay:100,menuItemTabIndex:-1};function Ke(t){const o=ie("Menu",B6,t),{children:a,onOpen:r,onClose:s,opened:c,defaultOpened:f,trapFocus:d,onChange:p,closeOnItemClick:h,loop:v,closeOnEscape:y,trigger:x,openDelay:C,closeDelay:T,classNames:w,styles:M,unstyled:R,variant:_,vars:N,menuItemTabIndex:A,keepMounted:H,withInitialFocusPlaceholder:L,attributes:Z,...I}=o,J=_e({name:"Menu",classes:el,props:o,classNames:w,styles:M,unstyled:R,attributes:Z}),[P,ee]=wa({value:c,defaultValue:f,finalValue:!1,onChange:p}),[oe,te]=S.useState(!1),B=()=>{ee(!1),te(!1),P&&s?.()},ne=()=>{ee(!0),!P&&r?.()},D=()=>{P?B():ne()},{openDropdown:U,closeDropdown:V}=xb({open:ne,close:B,closeDelay:T,openDelay:C}),K=le=>B7("[data-menu-item]","[data-menu-dropdown]",le),{resolvedClassNames:W,resolvedStyles:de}=ic({classNames:w,styles:M,props:o});return g.jsx(z6,{value:{getStyles:J,opened:P,toggleDropdown:D,getItemIndex:K,openedViaClick:oe,setOpenedViaClick:te,closeOnItemClick:h,closeDropdown:x==="click"?B:V,openDropdown:x==="click"?ne:U,closeDropdownImmediately:B,loop:v,trigger:x,unstyled:R,menuItemTabIndex:A,withInitialFocusPlaceholder:L},children:g.jsx(jn,{returnFocus:!0,...I,opened:P,onChange:D,defaultOpened:f,trapFocus:H?!1:d,closeOnEscape:y,__staticSelector:"Menu",classNames:W,styles:de,unstyled:R,variant:_,keepMounted:H,children:a})})}Ke.extend=t=>t;Ke.withProps=mw(Ke);Ke.classes=el;Ke.displayName="@mantine/core/Menu";Ke.Item=_m;Ke.Label=Om;Ke.Dropdown=jm;Ke.Target=Nb;Ke.Divider=Rm;Ke.Sub=ja;const U6={duration:100,transition:"fade"};function sv(t,o){return{...U6,...o,...t}}var xc={tooltip:"m_1b3c8819",arrow:"m_f898399f"};function $6({offset:t,position:o,defaultOpened:a}){const[r,s]=S.useState(a),c=S.useRef(null),{x:f,y:d,elements:p,refs:h,update:v,placement:y}=Ws({placement:o,middleware:[Io({crossAxis:!0,padding:5,rootBoundary:"document"})]}),x=y.includes("right")?t:o.includes("left")?t*-1:0,C=y.includes("bottom")?t:o.includes("top")?t*-1:0,T=S.useCallback(({clientX:w,clientY:M})=>{h.setPositionReference({getBoundingClientRect(){return{width:0,height:0,x:w,y:M,left:w+x,top:M+C,right:w,bottom:M}}})},[p.reference]);return S.useEffect(()=>{if(h.floating.current){const w=c.current;w.addEventListener("mousemove",T);const M=go(h.floating.current);return M.forEach(R=>{R.addEventListener("scroll",v)}),()=>{w.removeEventListener("mousemove",T),M.forEach(R=>{R.removeEventListener("scroll",v)})}}},[p.reference,h.floating.current,v,T,r]),{handleMouseMove:T,x:f,y:d,opened:r,setOpened:s,boundaryRef:c,floating:h.setFloating}}const G6={refProp:"ref",withinPortal:!0,offset:10,position:"right",zIndex:Br("popover")},Z6=(t,{radius:o,color:a})=>({tooltip:{"--tooltip-radius":o===void 0?void 0:Mt(o),"--tooltip-bg":a?bo(a,t):void 0,"--tooltip-color":a?"var(--mantine-color-white)":void 0}}),Dm=Oe((t,o)=>{const a=ie("TooltipFloating",G6,t),{children:r,refProp:s,withinPortal:c,style:f,className:d,classNames:p,styles:h,unstyled:v,radius:y,color:x,label:C,offset:T,position:w,multiline:M,zIndex:R,disabled:_,defaultOpened:N,variant:A,vars:H,portalProps:L,attributes:Z,...I}=a,J=Gt(),P=_e({name:"TooltipFloating",props:a,classes:xc,className:d,style:f,classNames:p,styles:h,unstyled:v,attributes:Z,rootSelector:"tooltip",vars:H,varsResolver:Z6}),{handleMouseMove:ee,x:oe,y:te,opened:B,boundaryRef:ne,floating:D,setOpened:U}=$6({offset:T,position:w,defaultOpened:N}),V=Gr(r);if(!V)throw new Error("[@mantine/core] Tooltip.Floating component children should be an element or a component that accepts ref, fragments, strings, numbers and other primitive values are not supported");const K=Rn(ne,om(V),o),W=V.props,de=ae=>{W.onMouseEnter?.(ae),ee(ae),U(!0)},le=ae=>{W.onMouseLeave?.(ae),U(!1)};return g.jsxs(g.Fragment,{children:[g.jsx(xa,{...L,withinPortal:c,children:g.jsx(he,{...I,...P("tooltip",{style:{...Fy(f,J),zIndex:R,display:!_&&B?"block":"none",top:(te&&Math.round(te))??"",left:(oe&&Math.round(oe))??""}}),variant:A,ref:D,mod:{multiline:M},children:C})}),S.cloneElement(V,{...W,[s]:K,onMouseEnter:de,onMouseLeave:le})]})});Dm.classes=xc;Dm.displayName="@mantine/core/TooltipFloating";const Ab=S.createContext(!1),q6=Ab.Provider,Y6=()=>S.useContext(Ab),X6={openDelay:0,closeDelay:0};function Hm(t){const{openDelay:o,closeDelay:a,children:r}=ie("TooltipGroup",X6,t);return g.jsx(q6,{value:!0,children:g.jsx(g5,{delay:{open:o,close:a},children:r})})}Hm.displayName="@mantine/core/TooltipGroup";Hm.extend=t=>t;function P6(t){if(t===void 0)return{shift:!0,flip:!0};const o={...t};return t.shift===void 0&&(o.shift=!0),t.flip===void 0&&(o.flip=!0),o}function Q6(t){const o=P6(t.middlewares),a=[mn(t.offset)];return o.shift&&a.push(Io(typeof o.shift=="boolean"?{padding:8}:{padding:8,...o.shift})),o.flip&&a.push(typeof o.flip=="boolean"?yo():yo(o.flip)),a.push(Xv({element:t.arrowRef,padding:t.arrowOffset})),o.inline?a.push(typeof o.inline=="boolean"?jr():jr(o.inline)):t.inline&&a.push(jr()),a}function I6(t){const[o,a]=S.useState(t.defaultOpened),s=typeof t.opened=="boolean"?t.opened:o,c=Y6(),f=Ca(),d=S.useCallback(H=>{a(H),H&&R(f)},[f]),{x:p,y:h,context:v,refs:y,placement:x,middlewareData:{arrow:{x:C,y:T}={}}}=Ws({strategy:t.strategy,placement:t.position,open:s,onOpenChange:d,middleware:Q6(t),whileElementsMounted:js}),{delay:w,currentId:M,setCurrentId:R}=v5(v,{id:f}),{getReferenceProps:_,getFloatingProps:N}=Fv([Qv(v,{enabled:t.events?.hover,delay:c?w:{open:t.openDelay,close:t.closeDelay},mouseOnly:!t.events?.touch}),C5(v,{enabled:t.events?.focus,visibleOnly:!0}),T5(v,{role:"tooltip"}),Kv(v,{enabled:typeof t.opened>"u"})]);zr(()=>{t.onPositionChange?.(x)},[x]);const A=s&&M&&M!==f;return{x:p,y:h,arrowX:C,arrowY:T,reference:y.setReference,floating:y.setFloating,getFloatingProps:N,getReferenceProps:_,isGroupPhase:A,opened:s,placement:x}}const cv={position:"top",refProp:"ref",withinPortal:!0,arrowSize:4,arrowOffset:5,arrowRadius:0,arrowPosition:"side",offset:5,transitionProps:{duration:100,transition:"fade"},events:{hover:!0,focus:!1,touch:!1},zIndex:Br("popover"),positionDependencies:[],middlewares:{flip:!0,shift:!0,inline:!1}},K6=(t,{radius:o,color:a,variant:r,autoContrast:s})=>{const c=t.variantColorResolver({theme:t,color:a||t.primaryColor,autoContrast:s,variant:r||"filled"});return{tooltip:{"--tooltip-radius":o===void 0?void 0:Mt(o),"--tooltip-bg":a?c.background:void 0,"--tooltip-color":a?c.color:void 0}}},_a=Oe((t,o)=>{const a=ie("Tooltip",cv,t),{children:r,position:s,refProp:c,label:f,openDelay:d,closeDelay:p,onPositionChange:h,opened:v,defaultOpened:y,withinPortal:x,radius:C,color:T,classNames:w,styles:M,unstyled:R,style:_,className:N,withArrow:A,arrowSize:H,arrowOffset:L,arrowRadius:Z,arrowPosition:I,offset:J,transitionProps:P,multiline:ee,events:oe,zIndex:te,disabled:B,positionDependencies:ne,onClick:D,onMouseEnter:U,onMouseLeave:V,inline:K,variant:W,keepMounted:de,vars:le,portalProps:ae,mod:ye,floatingStrategy:ge,middlewares:Ne,autoContrast:Pe,attributes:Ee,target:ve,...We}=ie("Tooltip",cv,a),{dir:rt}=Ta(),et=S.useRef(null),ze=I6({position:ab(rt,s),closeDelay:p,openDelay:d,onPositionChange:h,opened:v,defaultOpened:y,events:oe,arrowRef:et,arrowOffset:L,offset:typeof J=="number"?J+(A?H/2:0):J,positionDependencies:[...ne,ve??r],inline:K,strategy:ge,middlewares:Ne});S.useEffect(()=>{const wt=ve instanceof HTMLElement?ve:typeof ve=="string"?document.querySelector(ve):ve?.current||null;wt&&ze.reference(wt)},[ve,ze]);const ot=_e({name:"Tooltip",props:a,classes:xc,className:N,style:_,classNames:w,styles:M,unstyled:R,attributes:Ee,rootSelector:"tooltip",vars:le,varsResolver:K6}),tn=Gr(r);if(!ve&&!tn)throw new Error("[@mantine/core] Tooltip component children should be an element or a component that accepts ref, fragments, strings, numbers and other primitive values are not supported");if(ve){const wt=sv(P,{duration:100,transition:"fade"});return g.jsx(g.Fragment,{children:g.jsx(xa,{...ae,withinPortal:x,children:g.jsx(Qo,{...wt,keepMounted:de,mounted:!B&&!!ze.opened,duration:ze.isGroupPhase?10:wt.duration,children:Xn=>g.jsxs(he,{...We,"data-fixed":ge==="fixed"||void 0,variant:W,mod:[{multiline:ee},ye],...ze.getFloatingProps({ref:ze.floating,className:ot("tooltip").className,style:{...ot("tooltip").style,...Xn,zIndex:te,top:ze.y??0,left:ze.x??0}}),children:[f,g.jsx(Bs,{ref:et,arrowX:ze.arrowX,arrowY:ze.arrowY,visible:A,position:ze.placement,arrowSize:H,arrowOffset:L,arrowRadius:Z,arrowPosition:I,...ot("arrow")})]})})})})}const On=tn.props,So=Rn(ze.reference,om(tn),o),Nn=sv(P,{duration:100,transition:"fade"});return g.jsxs(g.Fragment,{children:[g.jsx(xa,{...ae,withinPortal:x,children:g.jsx(Qo,{...Nn,keepMounted:de,mounted:!B&&!!ze.opened,duration:ze.isGroupPhase?10:Nn.duration,children:wt=>g.jsxs(he,{...We,"data-fixed":ge==="fixed"||void 0,variant:W,mod:[{multiline:ee},ye],...ze.getFloatingProps({ref:ze.floating,className:ot("tooltip").className,style:{...ot("tooltip").style,...wt,zIndex:te,top:ze.y??0,left:ze.x??0}}),children:[f,g.jsx(Bs,{ref:et,arrowX:ze.arrowX,arrowY:ze.arrowY,visible:A,position:ze.placement,arrowSize:H,arrowOffset:L,arrowRadius:Z,arrowPosition:I,...ot("arrow")})]})})}),S.cloneElement(tn,ze.getReferenceProps({onClick:D,onMouseEnter:U,onMouseLeave:V,onMouseMove:a.onMouseMove,onPointerDown:a.onPointerDown,onPointerEnter:a.onPointerEnter,...On,className:xo(N,On.className),[c]:So}))]})});_a.classes=xc;_a.displayName="@mantine/core/Tooltip";_a.Floating=Dm;_a.Group=Hm;var Db={root:"m_18320242","skeleton-fade":"m_299c329c"};const F6={visible:!0,animate:!0},J6=(t,{width:o,height:a,radius:r,circle:s})=>({root:{"--skeleton-height":F(a),"--skeleton-width":F(s?a:o),"--skeleton-radius":s?"1000px":r===void 0?void 0:Mt(r)}}),$s=Oe((t,o)=>{const a=ie("Skeleton",F6,t),{classNames:r,className:s,style:c,styles:f,unstyled:d,vars:p,width:h,height:v,circle:y,visible:x,radius:C,animate:T,mod:w,attributes:M,...R}=a,_=_e({name:"Skeleton",classes:Db,props:a,className:s,style:c,classNames:r,styles:f,unstyled:d,attributes:M,vars:p,varsResolver:J6});return g.jsx(he,{ref:o,..._("root"),mod:[{visible:x,animate:T},w],...R})});$s.classes=Db;$s.displayName="@mantine/core/Skeleton";var Hb={root:"m_6d731127"};const W6={gap:"md",align:"stretch",justify:"flex-start"},eT=(t,{gap:o,align:a,justify:r})=>({root:{"--stack-gap":Ur(o),"--stack-align":a,"--stack-justify":r}}),qr=Oe((t,o)=>{const a=ie("Stack",W6,t),{classNames:r,className:s,style:c,styles:f,unstyled:d,vars:p,align:h,justify:v,gap:y,variant:x,attributes:C,...T}=a,w=_e({name:"Stack",props:a,classes:Hb,className:s,style:c,classNames:r,styles:f,unstyled:d,attributes:C,vars:p,varsResolver:eT});return g.jsx(he,{ref:o,...w("root"),variant:x,...T})});qr.classes=Hb;qr.displayName="@mantine/core/Stack";const[tT,zm]=nc("Tabs component was not found in the tree");var Yr={root:"m_89d60db1","list--default":"m_576c9d4",list:"m_89d33d6d",tab:"m_4ec4dce6",panel:"m_b0c91715",tabSection:"m_fc420b1f",tabLabel:"m_42bbd1ae","tab--default":"m_539e827b","list--outline":"m_6772fbd5","tab--outline":"m_b59ab47c","tab--pills":"m_c3381914"};const Lm=Oe((t,o)=>{const a=ie("TabsList",null,t),{children:r,className:s,grow:c,justify:f,classNames:d,styles:p,style:h,mod:v,...y}=a,x=zm();return g.jsx(he,{...y,...x.getStyles("list",{className:s,style:h,classNames:d,styles:p,props:a,variant:x.variant}),ref:o,role:"tablist",variant:x.variant,mod:[{grow:c,orientation:x.orientation,placement:x.orientation==="vertical"&&x.placement,inverted:x.inverted},v],"aria-orientation":x.orientation,__vars:{"--tabs-justify":f},children:r})});Lm.classes=Yr;Lm.displayName="@mantine/core/TabsList";const Vm=Oe((t,o)=>{const a=ie("TabsPanel",null,t),{children:r,className:s,value:c,classNames:f,styles:d,style:p,mod:h,keepMounted:v,...y}=a,x=zm(),C=x.value===c,T=x.keepMounted||v||C?r:null;return g.jsx(he,{...x.getStyles("panel",{className:s,classNames:f,styles:d,style:[p,C?void 0:{display:"none"}],props:a}),ref:o,mod:[{orientation:x.orientation},h],role:"tabpanel",id:x.getPanelId(c),"aria-labelledby":x.getTabId(c),...y,children:T})});Vm.classes=Yr;Vm.displayName="@mantine/core/TabsPanel";const km=Oe((t,o)=>{const a=ie("TabsTab",null,t),{className:r,children:s,rightSection:c,leftSection:f,value:d,onClick:p,onKeyDown:h,disabled:v,color:y,style:x,classNames:C,styles:T,vars:w,mod:M,tabIndex:R,..._}=a,N=Gt(),{dir:A}=Ta(),H=zm(),L=d===H.value,Z=J=>{H.onChange(H.allowTabDeactivation&&d===H.value?null:d),p?.(J)},I={classNames:C,styles:T,props:a};return g.jsxs(Fo,{...H.getStyles("tab",{className:r,style:x,variant:H.variant,...I}),disabled:v,unstyled:H.unstyled,variant:H.variant,mod:[{active:L,disabled:v,orientation:H.orientation,inverted:H.inverted,placement:H.orientation==="vertical"&&H.placement},M],ref:o,role:"tab",id:H.getTabId(d),"aria-selected":L,tabIndex:R!==void 0?R:L||H.value===null?0:-1,"aria-controls":H.getPanelId(d),onClick:Z,__vars:{"--tabs-color":y?bo(y,N):void 0},onKeyDown:nm({siblingSelector:'[role="tab"]',parentSelector:'[role="tablist"]',activateOnFocus:H.activateTabWithKeyboard,loop:H.loop,orientation:H.orientation||"horizontal",dir:A,onKeyDown:h}),..._,children:[f&&g.jsx("span",{...H.getStyles("tabSection",I),"data-position":"left",children:f}),s&&g.jsx("span",{...H.getStyles("tabLabel",I),children:s}),c&&g.jsx("span",{...H.getStyles("tabSection",I),"data-position":"right",children:c})]})});km.classes=Yr;km.displayName="@mantine/core/TabsTab";const uv="Tabs.Tab or Tabs.Panel component was rendered with invalid value or without value",nT={keepMounted:!0,orientation:"horizontal",loop:!0,activateTabWithKeyboard:!0,variant:"default",placement:"left"},oT=(t,{radius:o,color:a,autoContrast:r})=>({root:{"--tabs-radius":Mt(o),"--tabs-color":bo(a,t),"--tabs-text-color":X9(r,t)?qy({color:a,theme:t,autoContrast:r}):void 0}}),mo=Oe((t,o)=>{const a=ie("Tabs",nT,t),{defaultValue:r,value:s,onChange:c,orientation:f,children:d,loop:p,id:h,activateTabWithKeyboard:v,allowTabDeactivation:y,variant:x,color:C,radius:T,inverted:w,placement:M,keepMounted:R,classNames:_,styles:N,unstyled:A,className:H,style:L,vars:Z,autoContrast:I,mod:J,attributes:P,...ee}=a,oe=Ca(h),[te,B]=wa({value:s,defaultValue:r,finalValue:null,onChange:c}),ne=_e({name:"Tabs",props:a,classes:Yr,className:H,style:L,classNames:_,styles:N,unstyled:A,attributes:P,vars:Z,varsResolver:oT});return g.jsx(tT,{value:{placement:M,value:te,orientation:f,id:oe,loop:p,activateTabWithKeyboard:v,getTabId:Y0(`${oe}-tab`,uv),getPanelId:Y0(`${oe}-panel`,uv),onChange:B,allowTabDeactivation:y,variant:x,color:C,radius:T,inverted:w,keepMounted:R,unstyled:A,getStyles:ne},children:g.jsx(he,{ref:o,id:oe,variant:x,mod:[{orientation:f,inverted:f==="horizontal"&&w,placement:f==="vertical"&&M},J],...ne("root"),...ee,children:d})})});mo.classes=Yr;mo.displayName="@mantine/core/Tabs";mo.Tab=km;mo.Panel=Vm;mo.List=Lm;const Sc=Oe((t,o)=>{const a=ie("TextInput",null,t);return g.jsx(Ma,{component:"input",ref:o,...a,__staticSelector:"TextInput"})});Sc.classes=Ma.classes;Sc.displayName="@mantine/core/TextInput";const zb=(t,o,a=!1)=>{const r=[];function s(c,f="--bn"){for(const d in c){const p=d.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase(),h=`${f}-${p}`;typeof c[d]!="object"?(typeof c[d]=="number"&&(c[d]=`${c[d]}px`),a?o.style.removeProperty(h):o.style.setProperty(h,c[d].toString())):s(c[d],h)}}return s(t),r},fv=(t,o)=>zb(t,o),lT={colors:{editor:{text:void 0,background:void 0},menu:{text:void 0,background:void 0},tooltip:{text:void 0,background:void 0},hovered:{text:void 0,background:void 0},selected:{text:void 0,background:void 0},disabled:{text:void 0,background:void 0},shadow:void 0,border:void 0,sideMenu:void 0,highlights:{gray:{text:void 0,background:void 0},brown:{text:void 0,background:void 0},red:{text:void 0,background:void 0},orange:{text:void 0,background:void 0},yellow:{text:void 0,background:void 0},green:{text:void 0,background:void 0},blue:{text:void 0,background:void 0},purple:{text:void 0,background:void 0},pink:{text:void 0,background:void 0}}},borderRadius:void 0,fontFamily:void 0},aT=t=>zb(lT,t,!0),Lb=t=>g.jsxs(qr,{gap:0,className:"bn-tooltip",children:[g.jsx(qn,{size:"sm",lineClamp:5,children:t.mainTooltip}),t.secondaryTooltip&&g.jsx(qn,{size:"xs",lineClamp:5,children:t.secondaryTooltip})]}),Sd=S.forwardRef((t,o)=>{const{className:a,children:r,mainTooltip:s,secondaryTooltip:c,icon:f,isSelected:d,isDisabled:p,onClick:h,label:v,variant:y,...x}=t;Ce(x,!1);const[C,T]=S.useState(!1),w=r?g.jsx(_n,{"aria-label":v,className:a,onMouseDown:M=>{Md()&&M.currentTarget.focus()},onClick:M=>{T(!0),h?.(M)},onPointerLeave:()=>T(!1),"aria-pressed":d,"data-selected":d||void 0,"data-test":s?s.slice(0,1).toLowerCase()+s.replace(/\s+/g,"").slice(1):void 0,size:y==="compact"?"compact-xs":"xs",disabled:p||!1,ref:o,...x,children:r}):g.jsx(wl,{className:a,"aria-label":v,onMouseDown:M=>{Md()&&M.currentTarget.focus()},onClick:M=>{T(!0),h?.(M)},onPointerLeave:()=>T(!1),"aria-pressed":d,"data-selected":d||void 0,"data-test":s?s.slice(0,1).toLowerCase()+s.replace(/\s+/g,"").slice(1):void 0,size:y==="compact"?20:30,disabled:p||!1,ref:o,...x,children:f});return s?g.jsx(_a,{disabled:C,withinPortal:!1,label:g.jsx(Lb,{mainTooltip:s,secondaryTooltip:c}),children:w}):w}),rT=S.forwardRef((t,o)=>{const{className:a,text:r,icon:s,isSelected:c,mainTooltip:f,secondaryTooltip:d,onClick:p,onMouseEnter:h,...v}=t;Ce(v,!1);const[y,x]=S.useState(!1),C=g.jsxs(yc,{className:a,checked:c===!0,wrapperProps:{onMouseEnter:h,onMouseLeave:()=>x(!1),onClick:T=>{x(!0),p?.(T)}},variant:"light",icon:null,ref:o,children:[g.jsx("span",{children:s}),g.jsx("span",{children:r})]});return!f||y?C:g.jsx(_a,{refProp:"rootRef",withinPortal:!1,label:g.jsx(Lb,{mainTooltip:f,secondaryTooltip:d}),children:C})}),iT=S.forwardRef((t,o)=>{const{className:a,children:r,...s}=t;return Ce(s),g.jsx(Ct,{className:a,ref:o,children:r})}),sT=S.forwardRef((t,o)=>{const{className:a,children:r,headerText:s,selected:c,onFocus:f,onBlur:d,tabIndex:p,...h}=t;return Ce(h,!1),g.jsxs(Zr,{className:ht(a,c?"selected":""),onFocus:f,onBlur:d,tabIndex:p,ref:o,children:[s&&g.jsx(qn,{className:"bn-header-text",children:s}),r]})}),cT=S.forwardRef((t,o)=>{const{className:a,children:r,...s}=t;return Ce(s,!1),g.jsx(Zr.Section,{className:a,ref:o,children:r})}),uT=S.forwardRef((t,o)=>{const{className:a,children:r,...s}=t;return Ce(s,!1),g.jsx(Tm,{className:a,label:g.jsx(qn,{children:r}),ref:o})}),fT=S.forwardRef((t,o)=>{const{authorInfo:a,timeString:r,edited:s,...c}=t,f=Se();return Ce(c,!1),a==="loading"?g.jsxs(Ct,{children:[g.jsx($s,{height:24,width:24}),g.jsx("div",{children:g.jsx($s,{height:12,width:100})})]}):g.jsxs(Ct,{children:[g.jsx(gc,{src:a.avatarUrl,alt:a.username,radius:"xl",size:"sm",color:"initials"}),g.jsxs(qn,{fz:"sm",fw:"bold",children:[a.username,g.jsxs(qn,{fz:"xs",c:"dimmed",span:!0,ml:"xs",children:[r," ",s&&`(${f.comments.edited})`]})]})]})}),dT=S.forwardRef((t,o)=>{const{className:a,showActions:r,authorInfo:s,timeString:c,edited:f,actions:d,emojiPickerOpen:p,children:h,...v}=t,{hovered:y,ref:x}=t9(),C=j7([o,x]);return Ce(v,!1),g.jsxs(Ct,{pos:"relative",ref:C,className:a,children:[d&&(r===!0||r===void 0||r==="hover"&&y||p)?g.jsx(Ct,{style:{position:"absolute",right:0,top:0,zIndex:10},children:d}):null,g.jsx(fT,{...t}),h]})}),mT=S.forwardRef((t,o)=>{const{className:a,autoFocus:r,onFocus:s,onBlur:c,editor:f,editable:d,...p}=t;Ce(p,!1);const h=Mn();return g.jsx(tE,{autoFocus:r,className:a,editor:t.editor,sideMenu:!1,slashMenu:!1,tableHandles:!1,filePanel:!1,formattingToolbar:!1,editable:d,theme:h?.colorSchemePreference,ref:o,onFocus:s,onBlur:c,children:g.jsx(My,{formattingToolbar:pT})})}),pT=()=>{const t=Ty([]).filter(o=>o.key!=="nestBlockButton"&&o.key!=="unnestBlockButton");return g.jsx(Ey,{blockTypeSelectItems:[],children:t})},hT=S.forwardRef((t,o)=>{const{className:a,name:r,label:s,variant:c,icon:f,value:d,autoFocus:p,placeholder:h,disabled:v,onKeyDown:y,onChange:x,onSubmit:C,autoComplete:T,rightSection:w,...M}=t;return Ce(M),g.jsx(Sc,{size:"xs",className:ht(a||"",c==="large"?"bn-mt-input-large":""),ref:o,name:r,label:s,leftSection:f,value:d,autoFocus:p,"data-autofocus":p?"true":void 0,rightSection:w,placeholder:h,disabled:v,onKeyDown:y,onChange:x,onSubmit:C,autoComplete:T})}),gT=S.createContext(void 0),vT=t=>{const{children:o,onOpenChange:a,position:r,sub:s,...c}=t;return Ce(c),s?g.jsx(Ke.Sub,{transitionProps:{duration:250,exitDelay:250},withinPortal:!1,middlewares:{flip:!0,shift:!0,inline:!1,size:!0},onChange:a,position:r,children:o}):g.jsx(Ke,{withinPortal:!1,middlewares:{flip:!0,shift:!0,inline:!1,size:!0},onChange:a,position:r,returnFocus:!1,children:o})},yT=S.forwardRef((t,o)=>{const{className:a,children:r,icon:s,checked:c,subTrigger:f,onClick:d,...p}=t;return Ce(p,!1),f?g.jsx(Ke.Sub.Item,{className:a,ref:o,leftSection:s,rightSection:c?g.jsx(Us,{size:10}):c===!1?g.jsx("div",{className:"bn-tick-space"}):null,onClick:d,...p,children:r}):g.jsx(Ke.Item,{className:a,ref:o,leftSection:s,rightSection:c?g.jsx(Us,{size:10}):c===!1?g.jsx("div",{className:"bn-tick-space"}):null,onClick:d,...p,children:r})}),bT=t=>{const{children:o,sub:a,...r}=t;return Ce(r),a?g.jsx(Ke.Sub.Target,{children:o}):g.jsx(Ke.Target,{children:o})},xT=S.forwardRef((t,o)=>{const{className:a,children:r,sub:s,...c}=t;Ce(c);const f=S.useContext(gT);return s?g.jsx(Ke.Sub.Dropdown,{className:a,ref:o,onMouseOver:f?.onMenuMouseOver,onMouseLeave:f?.onMenuMouseLeave,children:r}):g.jsx(Ke.Dropdown,{className:a,ref:o,onMouseOver:f?.onMenuMouseOver,onMouseLeave:f?.onMenuMouseLeave,children:r})}),ST=S.forwardRef((t,o)=>{const{className:a,...r}=t;return Ce(r),g.jsx(Ke.Divider,{className:a,ref:o})}),CT=S.forwardRef((t,o)=>{const{className:a,children:r,...s}=t;return Ce(s),g.jsx(Ke.Label,{className:a,ref:o,children:r})}),wT=S.forwardRef((t,o)=>{const{className:a,children:r,icon:s,onClick:c,onDragEnd:f,onDragStart:d,draggable:p,label:h,...v}=t;return Ce(v,!1),s?g.jsx(wl,{size:24,className:a,ref:o,onClick:c,onDragEnd:f,onDragStart:d,draggable:p,"aria-label":h,...v,children:s}):g.jsx(_n,{className:a,ref:o,onClick:c,onDragEnd:f,onDragStart:d,draggable:p,"aria-label":h,...v,children:r})}),TT=S.forwardRef((t,o)=>{const{className:a,tabs:r,defaultOpenTab:s,openTab:c,setOpenTab:f,loading:d,...p}=t;return Ce(p),g.jsx(Ct,{className:a,ref:o,children:g.jsxs(mo,{value:c,defaultValue:s,onChange:f,children:[d&&g.jsx(Mm,{visible:d}),g.jsx(mo.List,{children:r.map(h=>g.jsx(mo.Tab,{"data-test":`${h.name.toLowerCase()}-tab`,value:h.name,children:h.name},h.name))}),r.map(h=>g.jsx(mo.Panel,{value:h.name,children:h.tabPanel},h.name))]})})}),ET=S.forwardRef((t,o)=>{const{className:a,children:r,onClick:s,label:c,...f}=t;return Ce(f),g.jsx(_n,{size:"xs","aria-label":c,className:a,ref:o,onClick:s,...f,children:r})}),MT=S.forwardRef((t,o)=>{const{className:a,accept:r,value:s,placeholder:c,onChange:f,...d}=t;return Ce(d),g.jsx(D6,{size:"xs",className:a,ref:o,accept:r,value:s,placeholder:c,onChange:f,...d})}),RT=S.forwardRef((t,o)=>{const{className:a,children:r,...s}=t;return Ce(s),g.jsx("div",{className:a,ref:o,children:r})}),jT=S.forwardRef((t,o)=>{const{className:a,value:r,placeholder:s,onKeyDown:c,onChange:f,...d}=t;return Ce(d),g.jsx(Sc,{size:"xs","data-test":"embed-input",className:a,ref:o,value:r,placeholder:s,onKeyDown:c,onChange:f})}),_T=t=>{const{open:o,onOpenChange:a,position:r,children:s,...c}=t;return Ce(c),g.jsx(jn,{middlewares:{size:{padding:20}},withinPortal:!1,opened:o,onChange:a,position:r,zIndex:1e4,children:s})},OT=t=>{const{children:o,...a}=t;return Ce(a),g.jsx(mm,{children:o})},NT=S.forwardRef((t,o)=>{const{className:a,children:r,variant:s,...c}=t;return Ce(c),g.jsx(cc,{className:a,ref:o,children:r})}),AT=S.forwardRef((t,o)=>{const{className:a,children:r,...s}=t;return Ce(s,!1),g.jsx(Ct,{align:"center",gap:0,className:a,ref:o,...s,children:r})}),DT=S.forwardRef((t,o)=>{const{className:a,children:r,icon:s,onClick:c,onDragEnd:f,onDragStart:d,draggable:p,label:h,...v}=t;return Ce(v,!1),s?g.jsx(wl,{size:24,className:a,ref:o,onClick:c,onDragEnd:f,onDragStart:d,draggable:p,"aria-label":h,...v,children:s}):g.jsx(_n,{className:a,ref:o,onClick:c,onDragEnd:f,onDragStart:d,draggable:p,"aria-label":h,...v,children:r})}),HT=S.forwardRef((t,o)=>{const{className:a,children:r,id:s,...c}=t;return Ce(c),g.jsx(qr,{gap:0,className:a,ref:o,id:s,role:"listbox",children:r})}),zT=S.forwardRef((t,o)=>{const{className:a,children:r,...s}=t;return Ce(s),g.jsx(Ct,{className:a,ref:o,children:g.jsx(Ct,{className:"bn-mt-suggestion-menu-item-title",children:r})})}),LT=S.forwardRef((t,o)=>{const{className:a,isSelected:r,onClick:s,item:c,id:f,...d}=t;Ce(d);const p=S.useRef(null);return S.useEffect(()=>{if(!p.current||!r)return;const h=Dy(p.current,p.current.closest(".bn-suggestion-menu, #ai-suggestion-menu"));h==="top"?p.current.scrollIntoView(!0):h==="bottom"&&p.current.scrollIntoView(!1)},[r]),g.jsxs(Ct,{gap:0,className:a,ref:lc(o,p),id:f,role:"option",onMouseDown:h=>h.preventDefault(),onClick:s,"aria-selected":r||void 0,children:[c.icon&&g.jsx(Ct,{className:"bn-mt-suggestion-menu-item-section","data-position":"left",children:c.icon}),g.jsxs(qr,{gap:0,className:"bn-mt-suggestion-menu-item-body",children:[g.jsx(qn,{className:"bn-mt-suggestion-menu-item-title",children:c.title}),g.jsx(qn,{className:"bn-mt-suggestion-menu-item-subtitle",children:c.subtext})]}),c.badge&&g.jsx(Ct,{"data-position":"right",className:"bn-mt-suggestion-menu-item-section",children:g.jsx(xm,{size:"xs",children:c.badge})})]})}),VT=S.forwardRef((t,o)=>{const{className:a,children:r,...s}=t;return Ce(s),g.jsx(Ct,{className:a,ref:o,children:r})}),kT=S.forwardRef((t,o)=>{const{className:a,...r}=t;return Ce(r),g.jsx(Jo,{className:a,type:"dots",size:16,ref:o})}),BT=S.forwardRef((t,o)=>{const{className:a,children:r,id:s,columns:c,...f}=t;return Ce(f),g.jsx("div",{className:a,style:{gridTemplateColumns:`repeat(${c}, 1fr)`},ref:o,id:s,role:"grid",children:r})}),UT=S.forwardRef((t,o)=>{const{className:a,children:r,columns:s,...c}=t;return Ce(c),g.jsx(Ct,{className:a,style:{gridColumn:`1 / ${s+1}`},ref:o,children:g.jsx(Ct,{className:"bn-mt-suggestion-menu-item-title",children:r})})}),$T=S.forwardRef((t,o)=>{const{className:a,isSelected:r,onClick:s,item:c,id:f,...d}=t;Ce(d);const p=S.useRef(null);return S.useEffect(()=>{if(!p.current||!r)return;const h=Dy(p.current,p.current.closest(".bn-grid-suggestion-menu"));h==="top"?p.current.scrollIntoView(!0):h==="bottom"&&p.current.scrollIntoView(!1)},[r]),g.jsx("div",{className:a,ref:lc(o,p),id:f,role:"option",onClick:s,"aria-selected":r||void 0,children:c.icon})}),GT=S.forwardRef((t,o)=>{const{className:a,children:r,columns:s,...c}=t;return Ce(c),g.jsx(Jo,{className:a,style:{gridColumn:`1 / ${s+1}`},type:"dots",ref:o})}),ZT=S.forwardRef((t,o)=>{const{children:a,className:r,onMouseDown:s,onClick:c,...f}=t;return Ce(f,!1),g.jsx(_n,{className:r,ref:o,onMouseDown:s,onClick:c,...f,children:a})}),qT=S.forwardRef((t,o)=>{const{className:a,children:r,draggable:s,onDragStart:c,onDragEnd:f,style:d,label:p,...h}=t;return Ce(h,!1),g.jsx(_n,{className:a,ref:o,"aria-label":p,draggable:s,onDragStart:c,onDragEnd:f,style:d,...h,children:r})}),Cd=S.forwardRef((t,o)=>{const{className:a,children:r,onMouseEnter:s,onMouseLeave:c,variant:f,...d}=t;Ce(d);const{ref:p,focused:h}=l9(),v=$y(h),y=lc(o,p,v);return g.jsx(ym,{className:a,ref:y,role:"toolbar",onMouseEnter:s,onMouseLeave:c,gap:f==="action-toolbar"?2:void 0,children:r})});var Vb={color:void 0,size:void 0,className:void 0,style:void 0,attr:void 0},dv=Ve.createContext&&Ve.createContext(Vb),YT=["attr","size","title"];function XT(t,o){if(t==null)return{};var a=PT(t,o),r,s;if(Object.getOwnPropertySymbols){var c=Object.getOwnPropertySymbols(t);for(s=0;s<c.length;s++)r=c[s],!(o.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(t,r)&&(a[r]=t[r])}return a}function PT(t,o){if(t==null)return{};var a={};for(var r in t)if(Object.prototype.hasOwnProperty.call(t,r)){if(o.indexOf(r)>=0)continue;a[r]=t[r]}return a}function Gs(){return Gs=Object.assign?Object.assign.bind():function(t){for(var o=1;o<arguments.length;o++){var a=arguments[o];for(var r in a)Object.prototype.hasOwnProperty.call(a,r)&&(t[r]=a[r])}return t},Gs.apply(this,arguments)}function mv(t,o){var a=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);o&&(r=r.filter(function(s){return Object.getOwnPropertyDescriptor(t,s).enumerable})),a.push.apply(a,r)}return a}function Zs(t){for(var o=1;o<arguments.length;o++){var a=arguments[o]!=null?arguments[o]:{};o%2?mv(Object(a),!0).forEach(function(r){QT(t,r,a[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(a)):mv(Object(a)).forEach(function(r){Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(a,r))})}return t}function QT(t,o,a){return o=IT(o),o in t?Object.defineProperty(t,o,{value:a,enumerable:!0,configurable:!0,writable:!0}):t[o]=a,t}function IT(t){var o=KT(t,"string");return typeof o=="symbol"?o:o+""}function KT(t,o){if(typeof t!="object"||!t)return t;var a=t[Symbol.toPrimitive];if(a!==void 0){var r=a.call(t,o);if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(o==="string"?String:Number)(t)}function kb(t){return t&&t.map((o,a)=>Ve.createElement(o.tag,Zs({key:a},o.attr),kb(o.child)))}function FT(t){return o=>Ve.createElement(JT,Gs({attr:Zs({},t.attr)},o),kb(t.child))}function JT(t){var o=a=>{var{attr:r,size:s,title:c}=t,f=XT(t,YT),d=s||a.size||"1em",p;return a.className&&(p=a.className),t.className&&(p=(p?p+" ":"")+t.className),Ve.createElement("svg",Gs({stroke:"currentColor",fill:"currentColor",strokeWidth:"0"},a.attr,r,f,{className:p,style:Zs(Zs({color:t.color||a.color},a.style),t.style),height:d,width:d,xmlns:"http://www.w3.org/2000/svg"}),c&&Ve.createElement("title",null,c),t.children)};return dv!==void 0?Ve.createElement(dv.Consumer,null,a=>o(a)):o(Vb)}function WT(t){return FT({attr:{viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true"},child:[{tag:"path",attr:{fillRule:"evenodd",d:"M5.293 7.293a1 1 0 011.414 0L10 10.586l3.293-3.293a1 1 0 111.414 1.414l-4 4a1 1 0 01-1.414 0l-4-4a1 1 0 010-1.414z",clipRule:"evenodd"},child:[]}]})(t)}const wd=S.forwardRef((t,o)=>{const{className:a,items:r,isDisabled:s,...c}=t;Ce(c);const f=r.filter(d=>d.isSelected)[0];return f?g.jsxs(Ke,{withinPortal:!1,transitionProps:{exitDuration:0},disabled:s,middlewares:{flip:!0,shift:!0,inline:!1,size:!0},children:[g.jsx(Ke.Target,{children:g.jsx(_n,{onMouseDown:d=>{Md()&&d.currentTarget.focus()},leftSection:f.icon,rightSection:g.jsx(WT,{}),size:"xs",variant:"subtle",disabled:s,children:f.text})}),g.jsx(Ke.Dropdown,{className:a,ref:o,children:r.map(d=>g.jsx(Ke.Item,{onClick:d.onClick,leftSection:d.icon,rightSection:d.isSelected?g.jsx(Us,{size:10,className:"bn-tick-icon"}):g.jsx("div",{className:"bn-tick-space"}),disabled:d.isDisabled,children:d.text},d.text))})]}):null}),eE={FormattingToolbar:{Root:Cd,Button:Sd,Select:wd},FilePanel:{Root:TT,Button:ET,FileInput:MT,TabPanel:RT,TextInput:jT},GridSuggestionMenu:{Root:BT,Item:$T,EmptyItem:UT,Loader:GT},LinkToolbar:{Root:Cd,Button:Sd,Select:wd},SideMenu:{Root:AT,Button:DT},SuggestionMenu:{Root:HT,Item:LT,EmptyItem:zT,Label:VT,Loader:kT},TableHandle:{Root:qT,ExtendButton:ZT},Generic:{Badge:{Root:rT,Group:iT},Form:{Root:t=>g.jsx("div",{children:t.children}),TextInput:hT},Menu:{Root:vT,Trigger:bT,Dropdown:xT,Divider:ST,Label:CT,Item:yT,Button:wT},Popover:{Root:_T,Trigger:OT,Content:NT},Toolbar:{Root:Cd,Button:Sd,Select:wd}},Comments:{Comment:dT,Editor:mT,Card:sT,CardSection:cT,ExpandSectionsPrompt:uT}},tE=t=>{const{className:o,theme:a,...r}=t,s=Mn(),c=Oy(),f=s?.colorSchemePreference||c,d=S.useCallback(y=>{if(y&&(aT(y),typeof a=="object")){if("light"in a&&"dark"in a){fv(a[f==="dark"?"dark":"light"],y);return}fv(a,y);return}},[f,a]),p=S.useContext(lm),h=typeof a=="string"?a:f!=="no-preference"?f:"light",v=g.jsx(iy.Provider,{value:eE,children:g.jsx(d7,{"data-mantine-color-scheme":h,className:ht("bn-mantine",o||""),theme:typeof a=="object"?void 0:a,...r,ref:d})});return p?v:g.jsx(Py,{withCssVariables:!1,getRootElement:()=>{},children:v})};export{tE as F,wv as R,cE as U,Fd as X,Os as _,R4 as a,Dr as b,xo as c,Xv as d,js as e,yo as f,lE as g,zC as h,$8 as i,g as j,U8 as k,d0 as l,mn as o,Zn as r,Io as s,DC as u,pe as v,qS as w,rE as y};
|